Fix several typos in calendars, READMEs and other files.
[dragonfly.git] / gnu / usr.bin / cc80 / drivers / cc / gcc.1
1 .\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35)
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 >0, 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 "2019-02-22" "gcc-8.3.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 or more stages 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 usual way to run \s-1GCC\s0 is to run the executable called \fBgcc\fR, or
175 \&\fImachine\fR\fB\-gcc\fR when cross-compiling, or
176 \&\fImachine\fR\fB\-gcc\-\fR\fIversion\fR to run a specific version of \s-1GCC.\s0
177 When you compile \*(C+ programs, you should invoke \s-1GCC\s0 as \fBg++\fR 
178 instead.
179 .PP
180 The \fBgcc\fR program accepts options and file names as operands.  Many
181 options have multi-letter names; therefore multiple single-letter options
182 may \fInot\fR be grouped: \fB\-dv\fR is very different from \fB\-d\ \-v\fR.
183 .PP
184 You can mix options and other arguments.  For the most part, the order
185 you use doesn't matter.  Order does matter when you use several
186 options of the same kind; for example, if you specify \fB\-L\fR more
187 than once, the directories are searched in the order specified.  Also,
188 the placement of the \fB\-l\fR option is significant.
189 .PP
190 Many options have long names starting with \fB\-f\fR or with
191 \&\fB\-W\fR\-\-\-for example,
192 \&\fB\-fmove\-loop\-invariants\fR, \fB\-Wformat\fR and so on.  Most of
193 these have both positive and negative forms; the negative form of
194 \&\fB\-ffoo\fR is \fB\-fno\-foo\fR.  This manual documents
195 only one of these two forms, whichever one is not the default.
196 .SH "OPTIONS"
197 .IX Header "OPTIONS"
198 .SS "Option Summary"
199 .IX Subsection "Option Summary"
200 Here is a summary of all the options, grouped by type.  Explanations are
201 in the following sections.
202 .IP "\fIOverall Options\fR" 4
203 .IX Item "Overall Options"
204 \&\fB\-c  \-S  \-E  \-o\fR \fIfile\fR  \fB\-x\fR \fIlanguage\fR  
205 \&\fB\-v  \-###  \-\-help\fR[\fB=\fR\fIclass\fR[\fB,...\fR]]  \fB\-\-target\-help  \-\-version 
206 \&\-pass\-exit\-codes  \-pipe  \-specs=\fR\fIfile\fR  \fB\-wrapper  
207 @\fR\fIfile\fR  \fB\-ffile\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR  
208 \&\fB\-fplugin=\fR\fIfile\fR  \fB\-fplugin\-arg\-\fR\fIname\fR\fB=\fR\fIarg\fR  
209 \&\fB\-fdump\-ada\-spec\fR[\fB\-slim\fR]  \fB\-fada\-spec\-parent=\fR\fIunit\fR  \fB\-fdump\-go\-spec=\fR\fIfile\fR
210 .IP "\fIC Language Options\fR" 4
211 .IX Item "C Language Options"
212 \&\fB\-ansi  \-std=\fR\fIstandard\fR  \fB\-fgnu89\-inline 
213 \&\-fpermitted\-flt\-eval\-methods=\fR\fIstandard\fR 
214 \&\fB\-aux\-info\fR \fIfilename\fR  \fB\-fallow\-parameterless\-variadic\-functions 
215 \&\-fno\-asm  \-fno\-builtin  \-fno\-builtin\-\fR\fIfunction\fR  \fB\-fgimple
216 \&\-fhosted  \-ffreestanding  \-fopenacc  \-fopenmp  \-fopenmp\-simd 
217 \&\-fms\-extensions  \-fplan9\-extensions  \-fsso\-struct=\fR\fIendianness\fR 
218 \&\fB\-fallow\-single\-precision  \-fcond\-mismatch  \-flax\-vector\-conversions 
219 \&\-fsigned\-bitfields  \-fsigned\-char 
220 \&\-funsigned\-bitfields  \-funsigned\-char\fR
221 .IP "\fI\*(C+ Language Options\fR" 4
222 .IX Item " Language Options"
223 \&\fB\-fabi\-version=\fR\fIn\fR  \fB\-fno\-access\-control 
224 \&\-faligned\-new=\fR\fIn\fR  \fB\-fargs\-in\-order=\fR\fIn\fR  \fB\-fcheck\-new 
225 \&\-fconstexpr\-depth=\fR\fIn\fR  \fB\-fconstexpr\-loop\-limit=\fR\fIn\fR 
226 \&\fB\-ffriend\-injection 
227 \&\-fno\-elide\-constructors 
228 \&\-fno\-enforce\-eh\-specs 
229 \&\-ffor\-scope  \-fno\-for\-scope  \-fno\-gnu\-keywords 
230 \&\-fno\-implicit\-templates 
231 \&\-fno\-implicit\-inline\-templates 
232 \&\-fno\-implement\-inlines  \-fms\-extensions 
233 \&\-fnew\-inheriting\-ctors 
234 \&\-fnew\-ttp\-matching 
235 \&\-fno\-nonansi\-builtins  \-fnothrow\-opt  \-fno\-operator\-names 
236 \&\-fno\-optional\-diags  \-fpermissive 
237 \&\-fno\-pretty\-templates 
238 \&\-frepo  \-fno\-rtti  \-fsized\-deallocation 
239 \&\-ftemplate\-backtrace\-limit=\fR\fIn\fR 
240 \&\fB\-ftemplate\-depth=\fR\fIn\fR 
241 \&\fB\-fno\-threadsafe\-statics  \-fuse\-cxa\-atexit 
242 \&\-fno\-weak  \-nostdinc++ 
243 \&\-fvisibility\-inlines\-hidden 
244 \&\-fvisibility\-ms\-compat 
245 \&\-fext\-numeric\-literals 
246 \&\-Wabi=\fR\fIn\fR  \fB\-Wabi\-tag  \-Wconversion\-null  \-Wctor\-dtor\-privacy 
247 \&\-Wdelete\-non\-virtual\-dtor  \-Wliteral\-suffix  \-Wmultiple\-inheritance 
248 \&\-Wnamespaces  \-Wnarrowing 
249 \&\-Wnoexcept  \-Wnoexcept\-type  \-Wclass\-memaccess 
250 \&\-Wnon\-virtual\-dtor  \-Wreorder  \-Wregister 
251 \&\-Weffc++  \-Wstrict\-null\-sentinel  \-Wtemplates 
252 \&\-Wno\-non\-template\-friend  \-Wold\-style\-cast 
253 \&\-Woverloaded\-virtual  \-Wno\-pmf\-conversions 
254 \&\-Wsign\-promo  \-Wvirtual\-inheritance\fR
255 .IP "\fIObjective-C and Objective\-\*(C+ Language Options\fR" 4
256 .IX Item "Objective-C and Objective- Language Options"
257 \&\fB\-fconstant\-string\-class=\fR\fIclass-name\fR 
258 \&\fB\-fgnu\-runtime  \-fnext\-runtime 
259 \&\-fno\-nil\-receivers 
260 \&\-fobjc\-abi\-version=\fR\fIn\fR 
261 \&\fB\-fobjc\-call\-cxx\-cdtors 
262 \&\-fobjc\-direct\-dispatch 
263 \&\-fobjc\-exceptions 
264 \&\-fobjc\-gc 
265 \&\-fobjc\-nilcheck 
266 \&\-fobjc\-std=objc1 
267 \&\-fno\-local\-ivars 
268 \&\-fivar\-visibility=\fR[\fBpublic\fR|\fBprotected\fR|\fBprivate\fR|\fBpackage\fR] 
269 \&\fB\-freplace\-objc\-classes 
270 \&\-fzero\-link 
271 \&\-gen\-decls 
272 \&\-Wassign\-intercept 
273 \&\-Wno\-protocol  \-Wselector 
274 \&\-Wstrict\-selector\-match 
275 \&\-Wundeclared\-selector\fR
276 .IP "\fIDiagnostic Message Formatting Options\fR" 4
277 .IX Item "Diagnostic Message Formatting Options"
278 \&\fB\-fmessage\-length=\fR\fIn\fR  
279 \&\fB\-fdiagnostics\-show\-location=\fR[\fBonce\fR|\fBevery-line\fR]  
280 \&\fB\-fdiagnostics\-color=\fR[\fBauto\fR|\fBnever\fR|\fBalways\fR]  
281 \&\fB\-fno\-diagnostics\-show\-option  \-fno\-diagnostics\-show\-caret 
282 \&\-fdiagnostics\-parseable\-fixits  \-fdiagnostics\-generate\-patch 
283 \&\-fdiagnostics\-show\-template\-tree \-fno\-elide\-type 
284 \&\-fno\-show\-column\fR
285 .IP "\fIWarning Options\fR" 4
286 .IX Item "Warning Options"
287 \&\fB\-fsyntax\-only  \-fmax\-errors=\fR\fIn\fR  \fB\-Wpedantic 
288 \&\-pedantic\-errors 
289 \&\-w  \-Wextra  \-Wall  \-Waddress  \-Waggregate\-return  \-Waligned\-new 
290 \&\-Walloc\-zero  \-Walloc\-size\-larger\-than=\fR\fIn\fR
291 \&\fB\-Walloca  \-Walloca\-larger\-than=\fR\fIn\fR 
292 \&\fB\-Wno\-aggressive\-loop\-optimizations  \-Warray\-bounds  \-Warray\-bounds=\fR\fIn\fR 
293 \&\fB\-Wno\-attributes  \-Wbool\-compare  \-Wbool\-operation 
294 \&\-Wno\-builtin\-declaration\-mismatch 
295 \&\-Wno\-builtin\-macro\-redefined  \-Wc90\-c99\-compat  \-Wc99\-c11\-compat 
296 \&\-Wc++\-compat  \-Wc++11\-compat  \-Wc++14\-compat  
297 \&\-Wcast\-align  \-Wcast\-align=strict  \-Wcast\-function\-type  \-Wcast\-qual  
298 \&\-Wchar\-subscripts  \-Wchkp  \-Wcatch\-value  \-Wcatch\-value=\fR\fIn\fR 
299 \&\fB\-Wclobbered  \-Wcomment  \-Wconditionally\-supported 
300 \&\-Wconversion  \-Wcoverage\-mismatch  \-Wno\-cpp  \-Wdangling\-else  \-Wdate\-time 
301 \&\-Wdelete\-incomplete 
302 \&\-Wno\-deprecated  \-Wno\-deprecated\-declarations  \-Wno\-designated\-init 
303 \&\-Wdisabled\-optimization 
304 \&\-Wno\-discarded\-qualifiers  \-Wno\-discarded\-array\-qualifiers 
305 \&\-Wno\-div\-by\-zero  \-Wdouble\-promotion 
306 \&\-Wduplicated\-branches  \-Wduplicated\-cond 
307 \&\-Wempty\-body  \-Wenum\-compare  \-Wno\-endif\-labels  \-Wexpansion\-to\-defined 
308 \&\-Werror  \-Werror=*  \-Wextra\-semi  \-Wfatal\-errors 
309 \&\-Wfloat\-equal  \-Wformat  \-Wformat=2 
310 \&\-Wno\-format\-contains\-nul  \-Wno\-format\-extra\-args  
311 \&\-Wformat\-nonliteral \-Wformat\-overflow=\fR\fIn\fR 
312 \&\fB\-Wformat\-security  \-Wformat\-signedness  \-Wformat\-truncation=\fR\fIn\fR 
313 \&\fB\-Wformat\-y2k  \-Wframe\-address 
314 \&\-Wframe\-larger\-than=\fR\fIlen\fR  \fB\-Wno\-free\-nonheap\-object  \-Wjump\-misses\-init 
315 \&\-Wif\-not\-aligned 
316 \&\-Wignored\-qualifiers  \-Wignored\-attributes  \-Wincompatible\-pointer\-types 
317 \&\-Wimplicit  \-Wimplicit\-fallthrough  \-Wimplicit\-fallthrough=\fR\fIn\fR 
318 \&\fB\-Wimplicit\-function\-declaration  \-Wimplicit\-int 
319 \&\-Winit\-self  \-Winline  \-Wno\-int\-conversion  \-Wint\-in\-bool\-context 
320 \&\-Wno\-int\-to\-pointer\-cast  \-Winvalid\-memory\-model  \-Wno\-invalid\-offsetof 
321 \&\-Winvalid\-pch  \-Wlarger\-than=\fR\fIlen\fR 
322 \&\fB\-Wlogical\-op  \-Wlogical\-not\-parentheses  \-Wlong\-long 
323 \&\-Wmain  \-Wmaybe\-uninitialized  \-Wmemset\-elt\-size  \-Wmemset\-transposed\-args 
324 \&\-Wmisleading\-indentation  \-Wmissing\-attributes \-Wmissing\-braces 
325 \&\-Wmissing\-field\-initializers  \-Wmissing\-include\-dirs 
326 \&\-Wno\-multichar  \-Wmultistatement\-macros  \-Wnonnull  \-Wnonnull\-compare 
327 \&\-Wnormalized=\fR[\fBnone\fR|\fBid\fR|\fBnfc\fR|\fBnfkc\fR] 
328 \&\fB\-Wnull\-dereference  \-Wodr  \-Wno\-overflow  \-Wopenmp\-simd  
329 \&\-Woverride\-init\-side\-effects  \-Woverlength\-strings 
330 \&\-Wpacked  \-Wpacked\-bitfield\-compat \-Wpacked\-not\-aligned \-Wpadded 
331 \&\-Wparentheses  \-Wno\-pedantic\-ms\-format 
332 \&\-Wplacement\-new  \-Wplacement\-new=\fR\fIn\fR 
333 \&\fB\-Wpointer\-arith  \-Wpointer\-compare  \-Wno\-pointer\-to\-int\-cast 
334 \&\-Wno\-pragmas  \-Wredundant\-decls  \-Wrestrict  \-Wno\-return\-local\-addr 
335 \&\-Wreturn\-type  \-Wsequence\-point  \-Wshadow  \-Wno\-shadow\-ivar 
336 \&\-Wshadow=global,  \-Wshadow=local,  \-Wshadow=compatible\-local 
337 \&\-Wshift\-overflow  \-Wshift\-overflow=\fR\fIn\fR 
338 \&\fB\-Wshift\-count\-negative  \-Wshift\-count\-overflow  \-Wshift\-negative\-value 
339 \&\-Wsign\-compare  \-Wsign\-conversion  \-Wfloat\-conversion 
340 \&\-Wno\-scalar\-storage\-order  \-Wsizeof\-pointer\-div 
341 \&\-Wsizeof\-pointer\-memaccess  \-Wsizeof\-array\-argument 
342 \&\-Wstack\-protector  \-Wstack\-usage=\fR\fIlen\fR  \fB\-Wstrict\-aliasing 
343 \&\-Wstrict\-aliasing=n  \-Wstrict\-overflow  \-Wstrict\-overflow=\fR\fIn\fR 
344 \&\fB\-Wstringop\-overflow=\fR\fIn\fR \fB\-Wstringop\-truncation 
345 \&\-Wsuggest\-attribute=\fR[\fBpure\fR|\fBconst\fR|\fBnoreturn\fR|\fBformat\fR|\fBmalloc\fR] 
346 \&\fB\-Wsuggest\-final\-types   \-Wsuggest\-final\-methods  \-Wsuggest\-override 
347 \&\-Wmissing\-format\-attribute  \-Wsubobject\-linkage 
348 \&\-Wswitch  \-Wswitch\-bool  \-Wswitch\-default  \-Wswitch\-enum 
349 \&\-Wswitch\-unreachable  \-Wsync\-nand 
350 \&\-Wsystem\-headers  \-Wtautological\-compare  \-Wtrampolines  \-Wtrigraphs 
351 \&\-Wtype\-limits  \-Wundef 
352 \&\-Wuninitialized  \-Wunknown\-pragmas 
353 \&\-Wunsuffixed\-float\-constants  \-Wunused  \-Wunused\-function 
354 \&\-Wunused\-label  \-Wunused\-local\-typedefs  \-Wunused\-macros 
355 \&\-Wunused\-parameter  \-Wno\-unused\-result 
356 \&\-Wunused\-value  \-Wunused\-variable 
357 \&\-Wunused\-const\-variable  \-Wunused\-const\-variable=\fR\fIn\fR 
358 \&\fB\-Wunused\-but\-set\-parameter  \-Wunused\-but\-set\-variable 
359 \&\-Wuseless\-cast  \-Wvariadic\-macros  \-Wvector\-operation\-performance 
360 \&\-Wvla  \-Wvla\-larger\-than=\fR\fIn\fR  \fB\-Wvolatile\-register\-var  \-Wwrite\-strings 
361 \&\-Wzero\-as\-null\-pointer\-constant  \-Whsa\fR
362 .IP "\fIC and Objective-C-only Warning Options\fR" 4
363 .IX Item "C and Objective-C-only Warning Options"
364 \&\fB\-Wbad\-function\-cast  \-Wmissing\-declarations 
365 \&\-Wmissing\-parameter\-type  \-Wmissing\-prototypes  \-Wnested\-externs 
366 \&\-Wold\-style\-declaration  \-Wold\-style\-definition 
367 \&\-Wstrict\-prototypes  \-Wtraditional  \-Wtraditional\-conversion 
368 \&\-Wdeclaration\-after\-statement  \-Wpointer\-sign\fR
369 .IP "\fIDebugging Options\fR" 4
370 .IX Item "Debugging Options"
371 \&\fB\-g  \-g\fR\fIlevel\fR  \fB\-gdwarf  \-gdwarf\-\fR\fIversion\fR 
372 \&\fB\-ggdb  \-grecord\-gcc\-switches  \-gno\-record\-gcc\-switches 
373 \&\-gstabs  \-gstabs+  \-gstrict\-dwarf  \-gno\-strict\-dwarf 
374 \&\-gas\-loc\-support  \-gno\-as\-loc\-support 
375 \&\-gas\-locview\-support  \-gno\-as\-locview\-support 
376 \&\-gcolumn\-info  \-gno\-column\-info 
377 \&\-gstatement\-frontiers  \-gno\-statement\-frontiers 
378 \&\-gvariable\-location\-views  \-gno\-variable\-location\-views 
379 \&\-ginternal\-reset\-location\-views  \-gno\-internal\-reset\-location\-views 
380 \&\-ginline\-points  \-gno\-inline\-points 
381 \&\-gvms  \-gxcoff  \-gxcoff+  \-gz\fR[\fB=\fR\fItype\fR] 
382 \&\fB\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR  \fB\-fdebug\-types\-section 
383 \&\-fno\-eliminate\-unused\-debug\-types 
384 \&\-femit\-struct\-debug\-baseonly  \-femit\-struct\-debug\-reduced 
385 \&\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR] 
386 \&\fB\-feliminate\-unused\-debug\-symbols  \-femit\-class\-debug\-always 
387 \&\-fno\-merge\-debug\-strings  \-fno\-dwarf2\-cfi\-asm 
388 \&\-fvar\-tracking  \-fvar\-tracking\-assignments\fR
389 .IP "\fIOptimization Options\fR" 4
390 .IX Item "Optimization Options"
391 \&\fB\-faggressive\-loop\-optimizations  \-falign\-functions[=\fR\fIn\fR\fB] 
392 \&\-falign\-jumps[=\fR\fIn\fR\fB] 
393 \&\-falign\-labels[=\fR\fIn\fR\fB]  \-falign\-loops[=\fR\fIn\fR\fB] 
394 \&\-fassociative\-math  \-fauto\-profile  \-fauto\-profile[=\fR\fIpath\fR\fB] 
395 \&\-fauto\-inc\-dec  \-fbranch\-probabilities 
396 \&\-fbranch\-target\-load\-optimize  \-fbranch\-target\-load\-optimize2 
397 \&\-fbtr\-bb\-exclusive  \-fcaller\-saves 
398 \&\-fcombine\-stack\-adjustments  \-fconserve\-stack 
399 \&\-fcompare\-elim  \-fcprop\-registers  \-fcrossjumping 
400 \&\-fcse\-follow\-jumps  \-fcse\-skip\-blocks  \-fcx\-fortran\-rules 
401 \&\-fcx\-limited\-range 
402 \&\-fdata\-sections  \-fdce  \-fdelayed\-branch 
403 \&\-fdelete\-null\-pointer\-checks  \-fdevirtualize  \-fdevirtualize\-speculatively 
404 \&\-fdevirtualize\-at\-ltrans  \-fdse 
405 \&\-fearly\-inlining  \-fipa\-sra  \-fexpensive\-optimizations  \-ffat\-lto\-objects 
406 \&\-ffast\-math  \-ffinite\-math\-only  \-ffloat\-store  \-fexcess\-precision=\fR\fIstyle\fR 
407 \&\fB\-fforward\-propagate  \-ffp\-contract=\fR\fIstyle\fR  \fB\-ffunction\-sections 
408 \&\-fgcse  \-fgcse\-after\-reload  \-fgcse\-las  \-fgcse\-lm  \-fgraphite\-identity 
409 \&\-fgcse\-sm  \-fhoist\-adjacent\-loads  \-fif\-conversion 
410 \&\-fif\-conversion2  \-findirect\-inlining 
411 \&\-finline\-functions  \-finline\-functions\-called\-once  \-finline\-limit=\fR\fIn\fR 
412 \&\fB\-finline\-small\-functions  \-fipa\-cp  \-fipa\-cp\-clone 
413 \&\-fipa\-bit\-cp \-fipa\-vrp 
414 \&\-fipa\-pta  \-fipa\-profile  \-fipa\-pure\-const  \-fipa\-reference  \-fipa\-icf 
415 \&\-fira\-algorithm=\fR\fIalgorithm\fR 
416 \&\fB\-fira\-region=\fR\fIregion\fR  \fB\-fira\-hoist\-pressure 
417 \&\-fira\-loop\-pressure  \-fno\-ira\-share\-save\-slots 
418 \&\-fno\-ira\-share\-spill\-slots 
419 \&\-fisolate\-erroneous\-paths\-dereference  \-fisolate\-erroneous\-paths\-attribute 
420 \&\-fivopts  \-fkeep\-inline\-functions  \-fkeep\-static\-functions 
421 \&\-fkeep\-static\-consts  \-flimit\-function\-alignment  \-flive\-range\-shrinkage 
422 \&\-floop\-block  \-floop\-interchange  \-floop\-strip\-mine 
423 \&\-floop\-unroll\-and\-jam  \-floop\-nest\-optimize 
424 \&\-floop\-parallelize\-all  \-flra\-remat  \-flto  \-flto\-compression\-level 
425 \&\-flto\-partition=\fR\fIalg\fR  \fB\-fmerge\-all\-constants 
426 \&\-fmerge\-constants  \-fmodulo\-sched  \-fmodulo\-sched\-allow\-regmoves 
427 \&\-fmove\-loop\-invariants  \-fno\-branch\-count\-reg 
428 \&\-fno\-defer\-pop  \-fno\-fp\-int\-builtin\-inexact  \-fno\-function\-cse 
429 \&\-fno\-guess\-branch\-probability  \-fno\-inline  \-fno\-math\-errno  \-fno\-peephole 
430 \&\-fno\-peephole2  \-fno\-printf\-return\-value  \-fno\-sched\-interblock 
431 \&\-fno\-sched\-spec  \-fno\-signed\-zeros 
432 \&\-fno\-toplevel\-reorder  \-fno\-trapping\-math  \-fno\-zero\-initialized\-in\-bss 
433 \&\-fomit\-frame\-pointer  \-foptimize\-sibling\-calls 
434 \&\-fpartial\-inlining  \-fpeel\-loops  \-fpredictive\-commoning 
435 \&\-fprefetch\-loop\-arrays 
436 \&\-fprofile\-correction 
437 \&\-fprofile\-use  \-fprofile\-use=\fR\fIpath\fR  \fB\-fprofile\-values 
438 \&\-fprofile\-reorder\-functions 
439 \&\-freciprocal\-math  \-free  \-frename\-registers  \-freorder\-blocks 
440 \&\-freorder\-blocks\-algorithm=\fR\fIalgorithm\fR 
441 \&\fB\-freorder\-blocks\-and\-partition  \-freorder\-functions 
442 \&\-frerun\-cse\-after\-loop  \-freschedule\-modulo\-scheduled\-loops 
443 \&\-frounding\-math  \-fsched2\-use\-superblocks  \-fsched\-pressure 
444 \&\-fsched\-spec\-load  \-fsched\-spec\-load\-dangerous 
445 \&\-fsched\-stalled\-insns\-dep[=\fR\fIn\fR\fB]  \-fsched\-stalled\-insns[=\fR\fIn\fR\fB] 
446 \&\-fsched\-group\-heuristic  \-fsched\-critical\-path\-heuristic 
447 \&\-fsched\-spec\-insn\-heuristic  \-fsched\-rank\-heuristic 
448 \&\-fsched\-last\-insn\-heuristic  \-fsched\-dep\-count\-heuristic 
449 \&\-fschedule\-fusion 
450 \&\-fschedule\-insns  \-fschedule\-insns2  \-fsection\-anchors 
451 \&\-fselective\-scheduling  \-fselective\-scheduling2 
452 \&\-fsel\-sched\-pipelining  \-fsel\-sched\-pipelining\-outer\-loops 
453 \&\-fsemantic\-interposition  \-fshrink\-wrap  \-fshrink\-wrap\-separate 
454 \&\-fsignaling\-nans 
455 \&\-fsingle\-precision\-constant  \-fsplit\-ivs\-in\-unroller  \-fsplit\-loops
456 \&\-fsplit\-paths 
457 \&\-fsplit\-wide\-types  \-fssa\-backprop  \-fssa\-phiopt 
458 \&\-fstdarg\-opt  \-fstore\-merging  \-fstrict\-aliasing 
459 \&\-fthread\-jumps  \-ftracer  \-ftree\-bit\-ccp 
460 \&\-ftree\-builtin\-call\-dce  \-ftree\-ccp  \-ftree\-ch 
461 \&\-ftree\-coalesce\-vars  \-ftree\-copy\-prop  \-ftree\-dce  \-ftree\-dominator\-opts 
462 \&\-ftree\-dse  \-ftree\-forwprop  \-ftree\-fre  \-fcode\-hoisting 
463 \&\-ftree\-loop\-if\-convert  \-ftree\-loop\-im 
464 \&\-ftree\-phiprop  \-ftree\-loop\-distribution  \-ftree\-loop\-distribute\-patterns 
465 \&\-ftree\-loop\-ivcanon  \-ftree\-loop\-linear  \-ftree\-loop\-optimize 
466 \&\-ftree\-loop\-vectorize 
467 \&\-ftree\-parallelize\-loops=\fR\fIn\fR  \fB\-ftree\-pre  \-ftree\-partial\-pre  \-ftree\-pta 
468 \&\-ftree\-reassoc  \-ftree\-sink  \-ftree\-slsr  \-ftree\-sra 
469 \&\-ftree\-switch\-conversion  \-ftree\-tail\-merge 
470 \&\-ftree\-ter  \-ftree\-vectorize  \-ftree\-vrp  \-funconstrained\-commons 
471 \&\-funit\-at\-a\-time  \-funroll\-all\-loops  \-funroll\-loops 
472 \&\-funsafe\-math\-optimizations  \-funswitch\-loops 
473 \&\-fipa\-ra  \-fvariable\-expansion\-in\-unroller  \-fvect\-cost\-model  \-fvpt 
474 \&\-fweb  \-fwhole\-program  \-fwpa  \-fuse\-linker\-plugin 
475 \&\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR
476 \&\fB\-O  \-O0  \-O1  \-O2  \-O3  \-Os  \-Ofast  \-Og\fR
477 .IP "\fIProgram Instrumentation Options\fR" 4
478 .IX Item "Program Instrumentation Options"
479 \&\fB\-p  \-pg  \-fprofile\-arcs  \-\-coverage  \-ftest\-coverage 
480 \&\-fprofile\-abs\-path 
481 \&\-fprofile\-dir=\fR\fIpath\fR  \fB\-fprofile\-generate  \-fprofile\-generate=\fR\fIpath\fR 
482 \&\fB\-fsanitize=\fR\fIstyle\fR  \fB\-fsanitize\-recover  \-fsanitize\-recover=\fR\fIstyle\fR 
483 \&\fB\-fasan\-shadow\-offset=\fR\fInumber\fR  \fB\-fsanitize\-sections=\fR\fIs1\fR\fB,\fR\fIs2\fR\fB,... 
484 \&\-fsanitize\-undefined\-trap\-on\-error  \-fbounds\-check 
485 \&\-fcheck\-pointer\-bounds  \-fchkp\-check\-incomplete\-type 
486 \&\-fchkp\-first\-field\-has\-own\-bounds  \-fchkp\-narrow\-bounds 
487 \&\-fchkp\-narrow\-to\-innermost\-array  \-fchkp\-optimize 
488 \&\-fchkp\-use\-fast\-string\-functions  \-fchkp\-use\-nochk\-string\-functions 
489 \&\-fchkp\-use\-static\-bounds  \-fchkp\-use\-static\-const\-bounds 
490 \&\-fchkp\-treat\-zero\-dynamic\-size\-as\-infinite  \-fchkp\-check\-read 
491 \&\-fchkp\-check\-read  \-fchkp\-check\-write  \-fchkp\-store\-bounds 
492 \&\-fchkp\-instrument\-calls  \-fchkp\-instrument\-marked\-only 
493 \&\-fchkp\-use\-wrappers  \-fchkp\-flexible\-struct\-trailing\-arrays
494 \&\-fcf\-protection=\fR[\fBfull\fR|\fBbranch\fR|\fBreturn\fR|\fBnone\fR] 
495 \&\fB\-fstack\-protector  \-fstack\-protector\-all  \-fstack\-protector\-strong 
496 \&\-fstack\-protector\-explicit  \-fstack\-check 
497 \&\-fstack\-limit\-register=\fR\fIreg\fR  \fB\-fstack\-limit\-symbol=\fR\fIsym\fR 
498 \&\fB\-fno\-stack\-limit  \-fsplit\-stack 
499 \&\-fvtable\-verify=\fR[\fBstd\fR|\fBpreinit\fR|\fBnone\fR] 
500 \&\fB\-fvtv\-counts  \-fvtv\-debug 
501 \&\-finstrument\-functions 
502 \&\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,... 
503 \&\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,...\fR
504 .IP "\fIPreprocessor Options\fR" 4
505 .IX Item "Preprocessor Options"
506 \&\fB\-A\fR\fIquestion\fR\fB=\fR\fIanswer\fR 
507 \&\fB\-A\-\fR\fIquestion\fR[\fB=\fR\fIanswer\fR] 
508 \&\fB\-C  \-CC  \-D\fR\fImacro\fR[\fB=\fR\fIdefn\fR] 
509 \&\fB\-dD  \-dI  \-dM  \-dN  \-dU 
510 \&\-fdebug\-cpp  \-fdirectives\-only  \-fdollars\-in\-identifiers  
511 \&\-fexec\-charset=\fR\fIcharset\fR  \fB\-fextended\-identifiers  
512 \&\-finput\-charset=\fR\fIcharset\fR \fB\-fmacro\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR  
513 \&\fB\-fno\-canonical\-system\-headers  \-fpch\-deps  \-fpch\-preprocess  
514 \&\-fpreprocessed \-ftabstop=\fR\fIwidth\fR  \fB\-ftrack\-macro\-expansion  
515 \&\-fwide\-exec\-charset=\fR\fIcharset\fR  \fB\-fworking\-directory 
516 \&\-H  \-imacros\fR \fIfile\fR  \fB\-include\fR \fIfile\fR 
517 \&\fB\-M  \-MD  \-MF  \-MG  \-MM  \-MMD  \-MP  \-MQ  \-MT 
518 \&\-no\-integrated\-cpp  \-P  \-pthread  \-remap 
519 \&\-traditional  \-traditional\-cpp  \-trigraphs 
520 \&\-U\fR\fImacro\fR  \fB\-undef  
521 \&\-Wp,\fR\fIoption\fR  \fB\-Xpreprocessor\fR \fIoption\fR
522 .IP "\fIAssembler Options\fR" 4
523 .IX Item "Assembler Options"
524 \&\fB\-Wa,\fR\fIoption\fR  \fB\-Xassembler\fR \fIoption\fR
525 .IP "\fILinker Options\fR" 4
526 .IX Item "Linker Options"
527 \&\fIobject-file-name\fR  \fB\-fuse\-ld=\fR\fIlinker\fR  \fB\-l\fR\fIlibrary\fR 
528 \&\fB\-nostartfiles  \-nodefaultlibs  \-nostdlib  \-pie  \-pthread  \-rdynamic 
529 \&\-s  \-static \-static\-pie \-static\-libgcc  \-static\-libstdc++ 
530 \&\-static\-libasan  \-static\-libtsan  \-static\-liblsan  \-static\-libubsan 
531 \&\-static\-libmpx  \-static\-libmpxwrappers 
532 \&\-shared  \-shared\-libgcc  \-symbolic 
533 \&\-T\fR \fIscript\fR  \fB\-Wl,\fR\fIoption\fR  \fB\-Xlinker\fR \fIoption\fR 
534 \&\fB\-u\fR \fIsymbol\fR  \fB\-z\fR \fIkeyword\fR
535 .IP "\fIDirectory Options\fR" 4
536 .IX Item "Directory Options"
537 \&\fB\-B\fR\fIprefix\fR  \fB\-I\fR\fIdir\fR  \fB\-I\- 
538 \&\-idirafter\fR \fIdir\fR 
539 \&\fB\-imacros\fR \fIfile\fR  \fB\-imultilib\fR \fIdir\fR 
540 \&\fB\-iplugindir=\fR\fIdir\fR  \fB\-iprefix\fR \fIfile\fR 
541 \&\fB\-iquote\fR \fIdir\fR  \fB\-isysroot\fR \fIdir\fR  \fB\-isystem\fR \fIdir\fR 
542 \&\fB\-iwithprefix\fR \fIdir\fR  \fB\-iwithprefixbefore\fR \fIdir\fR  
543 \&\fB\-L\fR\fIdir\fR  \fB\-no\-canonical\-prefixes  \-\-no\-sysroot\-suffix 
544 \&\-nostdinc  \-nostdinc++  \-\-sysroot=\fR\fIdir\fR
545 .IP "\fICode Generation Options\fR" 4
546 .IX Item "Code Generation Options"
547 \&\fB\-fcall\-saved\-\fR\fIreg\fR  \fB\-fcall\-used\-\fR\fIreg\fR 
548 \&\fB\-ffixed\-\fR\fIreg\fR  \fB\-fexceptions 
549 \&\-fnon\-call\-exceptions  \-fdelete\-dead\-exceptions  \-funwind\-tables 
550 \&\-fasynchronous\-unwind\-tables 
551 \&\-fno\-gnu\-unique 
552 \&\-finhibit\-size\-directive  \-fno\-common  \-fno\-ident 
553 \&\-fpcc\-struct\-return  \-fpic  \-fPIC  \-fpie  \-fPIE  \-fno\-plt 
554 \&\-fno\-jump\-tables 
555 \&\-frecord\-gcc\-switches 
556 \&\-freg\-struct\-return  \-fshort\-enums  \-fshort\-wchar 
557 \&\-fverbose\-asm  \-fpack\-struct[=\fR\fIn\fR\fB]  
558 \&\-fleading\-underscore  \-ftls\-model=\fR\fImodel\fR 
559 \&\fB\-fstack\-reuse=\fR\fIreuse_level\fR 
560 \&\fB\-ftrampolines  \-ftrapv  \-fwrapv 
561 \&\-fvisibility=\fR[\fBdefault\fR|\fBinternal\fR|\fBhidden\fR|\fBprotected\fR] 
562 \&\fB\-fstrict\-volatile\-bitfields  \-fsync\-libcalls\fR
563 .IP "\fIDeveloper Options\fR" 4
564 .IX Item "Developer Options"
565 \&\fB\-d\fR\fIletters\fR  \fB\-dumpspecs  \-dumpmachine  \-dumpversion 
566 \&\-dumpfullversion  \-fchecking  \-fchecking=\fR\fIn\fR  \fB\-fdbg\-cnt\-list 
567 \&\-fdbg\-cnt=\fR\fIcounter-value-list\fR 
568 \&\fB\-fdisable\-ipa\-\fR\fIpass_name\fR 
569 \&\fB\-fdisable\-rtl\-\fR\fIpass_name\fR 
570 \&\fB\-fdisable\-rtl\-\fR\fIpass-name\fR\fB=\fR\fIrange-list\fR 
571 \&\fB\-fdisable\-tree\-\fR\fIpass_name\fR 
572 \&\fB\-fdisable\-tree\-\fR\fIpass-name\fR\fB=\fR\fIrange-list\fR 
573 \&\fB\-fdump\-noaddr  \-fdump\-unnumbered  \-fdump\-unnumbered\-links 
574 \&\-fdump\-class\-hierarchy\fR[\fB\-\fR\fIn\fR] 
575 \&\fB\-fdump\-final\-insns\fR[\fB=\fR\fIfile\fR] 
576 \&\fB\-fdump\-ipa\-all  \-fdump\-ipa\-cgraph  \-fdump\-ipa\-inline 
577 \&\-fdump\-lang\-all 
578 \&\-fdump\-lang\-\fR\fIswitch\fR 
579 \&\fB\-fdump\-lang\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR 
580 \&\fB\-fdump\-lang\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR 
581 \&\fB\-fdump\-passes 
582 \&\-fdump\-rtl\-\fR\fIpass\fR  \fB\-fdump\-rtl\-\fR\fIpass\fR\fB=\fR\fIfilename\fR 
583 \&\fB\-fdump\-statistics 
584 \&\-fdump\-tree\-all 
585 \&\-fdump\-tree\-\fR\fIswitch\fR 
586 \&\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR 
587 \&\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR 
588 \&\fB\-fcompare\-debug\fR[\fB=\fR\fIopts\fR]  \fB\-fcompare\-debug\-second 
589 \&\-fenable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR 
590 \&\fB\-fenable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR 
591 \&\fB\-fira\-verbose=\fR\fIn\fR 
592 \&\fB\-flto\-report  \-flto\-report\-wpa  \-fmem\-report\-wpa 
593 \&\-fmem\-report  \-fpre\-ipa\-mem\-report  \-fpost\-ipa\-mem\-report 
594 \&\-fopt\-info  \-fopt\-info\-\fR\fIoptions\fR[\fB=\fR\fIfile\fR] 
595 \&\fB\-fprofile\-report 
596 \&\-frandom\-seed=\fR\fIstring\fR  \fB\-fsched\-verbose=\fR\fIn\fR 
597 \&\fB\-fsel\-sched\-verbose  \-fsel\-sched\-dump\-cfg  \-fsel\-sched\-pipelining\-verbose 
598 \&\-fstats  \-fstack\-usage  \-ftime\-report  \-ftime\-report\-details 
599 \&\-fvar\-tracking\-assignments\-toggle  \-gtoggle 
600 \&\-print\-file\-name=\fR\fIlibrary\fR  \fB\-print\-libgcc\-file\-name 
601 \&\-print\-multi\-directory  \-print\-multi\-lib  \-print\-multi\-os\-directory 
602 \&\-print\-prog\-name=\fR\fIprogram\fR  \fB\-print\-search\-dirs  \-Q 
603 \&\-print\-sysroot  \-print\-sysroot\-headers\-suffix 
604 \&\-save\-temps  \-save\-temps=cwd  \-save\-temps=obj \-save\-temps=objects 
605 \&\-time\fR[\fB=\fR\fIfile\fR]
606 .IP "\fIMachine-Dependent Options\fR" 4
607 .IX Item "Machine-Dependent Options"
608 \&\fIAArch64 Options\fR
609 \&\fB\-mabi=\fR\fIname\fR  \fB\-mbig\-endian  \-mlittle\-endian 
610 \&\-mgeneral\-regs\-only 
611 \&\-mcmodel=tiny  \-mcmodel=small  \-mcmodel=large 
612 \&\-mstrict\-align 
613 \&\-momit\-leaf\-frame\-pointer 
614 \&\-mtls\-dialect=desc  \-mtls\-dialect=traditional 
615 \&\-mtls\-size=\fR\fIsize\fR 
616 \&\fB\-mfix\-cortex\-a53\-835769  \-mfix\-cortex\-a53\-843419 
617 \&\-mlow\-precision\-recip\-sqrt  \-mlow\-precision\-sqrt  \-mlow\-precision\-div 
618 \&\-mpc\-relative\-literal\-loads 
619 \&\-msign\-return\-address=\fR\fIscope\fR 
620 \&\fB\-march=\fR\fIname\fR  \fB\-mcpu=\fR\fIname\fR  \fB\-mtune=\fR\fIname\fR  
621 \&\fB\-moverride=\fR\fIstring\fR  \fB\-mverbose\-cost\-dump\fR
622 .Sp
623 \&\fIAdapteva Epiphany Options\fR
624 \&\fB\-mhalf\-reg\-file  \-mprefer\-short\-insn\-regs 
625 \&\-mbranch\-cost=\fR\fInum\fR  \fB\-mcmove  \-mnops=\fR\fInum\fR  \fB\-msoft\-cmpsf 
626 \&\-msplit\-lohi  \-mpost\-inc  \-mpost\-modify  \-mstack\-offset=\fR\fInum\fR 
627 \&\fB\-mround\-nearest  \-mlong\-calls  \-mshort\-calls  \-msmall16 
628 \&\-mfp\-mode=\fR\fImode\fR  \fB\-mvect\-double  \-max\-vect\-align=\fR\fInum\fR 
629 \&\fB\-msplit\-vecmove\-early  \-m1reg\-\fR\fIreg\fR
630 .Sp
631 \&\fI\s-1ARC\s0 Options\fR
632 \&\fB\-mbarrel\-shifter \-mjli\-always 
633 \&\-mcpu=\fR\fIcpu\fR  \fB\-mA6  \-mARC600  \-mA7  \-mARC700 
634 \&\-mdpfp  \-mdpfp\-compact  \-mdpfp\-fast  \-mno\-dpfp\-lrsr 
635 \&\-mea  \-mno\-mpy  \-mmul32x16  \-mmul64  \-matomic 
636 \&\-mnorm  \-mspfp  \-mspfp\-compact  \-mspfp\-fast  \-msimd  \-msoft\-float  \-mswap 
637 \&\-mcrc  \-mdsp\-packa  \-mdvbf  \-mlock  \-mmac\-d16  \-mmac\-24  \-mrtsc  \-mswape 
638 \&\-mtelephony  \-mxy  \-misize  \-mannotate\-align  \-marclinux  \-marclinux_prof 
639 \&\-mlong\-calls  \-mmedium\-calls  \-msdata \-mirq\-ctrl\-saved 
640 \&\-mrgf\-banked\-regs \-mlpc\-width=\fR\fIwidth\fR \fB\-G\fR \fInum\fR 
641 \&\fB\-mvolatile\-cache  \-mtp\-regno=\fR\fIregno\fR 
642 \&\fB\-malign\-call  \-mauto\-modify\-reg  \-mbbit\-peephole  \-mno\-brcc 
643 \&\-mcase\-vector\-pcrel  \-mcompact\-casesi  \-mno\-cond\-exec  \-mearly\-cbranchsi 
644 \&\-mexpand\-adddi  \-mindexed\-loads  \-mlra  \-mlra\-priority\-none 
645 \&\-mlra\-priority\-compact mlra-priority-noncompact  \-mno\-millicode 
646 \&\-mmixed\-code  \-mq\-class  \-mRcq  \-mRcw  \-msize\-level=\fR\fIlevel\fR 
647 \&\fB\-mtune=\fR\fIcpu\fR  \fB\-mmultcost=\fR\fInum\fR 
648 \&\fB\-munalign\-prob\-threshold=\fR\fIprobability\fR  \fB\-mmpy\-option=\fR\fImulto\fR 
649 \&\fB\-mdiv\-rem  \-mcode\-density  \-mll64  \-mfpu=\fR\fIfpu\fR \fB\-mrf16\fR
650 .Sp
651 \&\fI\s-1ARM\s0 Options\fR
652 \&\fB\-mapcs\-frame  \-mno\-apcs\-frame 
653 \&\-mabi=\fR\fIname\fR 
654 \&\fB\-mapcs\-stack\-check  \-mno\-apcs\-stack\-check 
655 \&\-mapcs\-reentrant  \-mno\-apcs\-reentrant 
656 \&\-msched\-prolog  \-mno\-sched\-prolog 
657 \&\-mlittle\-endian  \-mbig\-endian 
658 \&\-mbe8 \-mbe32 
659 \&\-mfloat\-abi=\fR\fIname\fR 
660 \&\fB\-mfp16\-format=\fR\fIname\fR
661 \&\fB\-mthumb\-interwork  \-mno\-thumb\-interwork 
662 \&\-mcpu=\fR\fIname\fR  \fB\-march=\fR\fIname\fR  \fB\-mfpu=\fR\fIname\fR  
663 \&\fB\-mtune=\fR\fIname\fR  \fB\-mprint\-tune\-info 
664 \&\-mstructure\-size\-boundary=\fR\fIn\fR 
665 \&\fB\-mabort\-on\-noreturn 
666 \&\-mlong\-calls  \-mno\-long\-calls 
667 \&\-msingle\-pic\-base  \-mno\-single\-pic\-base 
668 \&\-mpic\-register=\fR\fIreg\fR 
669 \&\fB\-mnop\-fun\-dllimport 
670 \&\-mpoke\-function\-name 
671 \&\-mthumb  \-marm  \-mflip\-thumb 
672 \&\-mtpcs\-frame  \-mtpcs\-leaf\-frame 
673 \&\-mcaller\-super\-interworking  \-mcallee\-super\-interworking 
674 \&\-mtp=\fR\fIname\fR  \fB\-mtls\-dialect=\fR\fIdialect\fR 
675 \&\fB\-mword\-relocations 
676 \&\-mfix\-cortex\-m3\-ldrd 
677 \&\-munaligned\-access 
678 \&\-mneon\-for\-64bits 
679 \&\-mslow\-flash\-data 
680 \&\-masm\-syntax\-unified 
681 \&\-mrestrict\-it 
682 \&\-mverbose\-cost\-dump 
683 \&\-mpure\-code 
684 \&\-mcmse\fR
685 .Sp
686 \&\fI\s-1AVR\s0 Options\fR
687 \&\fB\-mmcu=\fR\fImcu\fR  \fB\-mabsdata  \-maccumulate\-args 
688 \&\-mbranch\-cost=\fR\fIcost\fR 
689 \&\fB\-mcall\-prologues  \-mgas\-isr\-prologues  \-mint8 
690 \&\-mn_flash=\fR\fIsize\fR  \fB\-mno\-interrupts 
691 \&\-mmain\-is\-OS_task \-mrelax  \-mrmw  \-mstrict\-X  \-mtiny\-stack 
692 \&\-mfract\-convert\-truncate 
693 \&\-mshort\-calls  \-nodevicelib 
694 \&\-Waddr\-space\-convert  \-Wmisspelled\-isr\fR
695 .Sp
696 \&\fIBlackfin Options\fR
697 \&\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR] 
698 \&\fB\-msim  \-momit\-leaf\-frame\-pointer  \-mno\-omit\-leaf\-frame\-pointer 
699 \&\-mspecld\-anomaly  \-mno\-specld\-anomaly  \-mcsync\-anomaly  \-mno\-csync\-anomaly 
700 \&\-mlow\-64k  \-mno\-low64k  \-mstack\-check\-l1  \-mid\-shared\-library 
701 \&\-mno\-id\-shared\-library  \-mshared\-library\-id=\fR\fIn\fR 
702 \&\fB\-mleaf\-id\-shared\-library  \-mno\-leaf\-id\-shared\-library 
703 \&\-msep\-data  \-mno\-sep\-data  \-mlong\-calls  \-mno\-long\-calls 
704 \&\-mfast\-fp  \-minline\-plt  \-mmulticore  \-mcorea  \-mcoreb  \-msdram 
705 \&\-micplb\fR
706 .Sp
707 \&\fIC6X Options\fR
708 \&\fB\-mbig\-endian  \-mlittle\-endian  \-march=\fR\fIcpu\fR 
709 \&\fB\-msim  \-msdata=\fR\fIsdata-type\fR
710 .Sp
711 \&\fI\s-1CRIS\s0 Options\fR
712 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-march=\fR\fIcpu\fR  \fB\-mtune=\fR\fIcpu\fR 
713 \&\fB\-mmax\-stack\-frame=\fR\fIn\fR  \fB\-melinux\-stacksize=\fR\fIn\fR 
714 \&\fB\-metrax4  \-metrax100  \-mpdebug  \-mcc\-init  \-mno\-side\-effects 
715 \&\-mstack\-align  \-mdata\-align  \-mconst\-align 
716 \&\-m32\-bit  \-m16\-bit  \-m8\-bit  \-mno\-prologue\-epilogue  \-mno\-gotplt 
717 \&\-melf  \-maout  \-melinux  \-mlinux  \-sim  \-sim2 
718 \&\-mmul\-bug\-workaround  \-mno\-mul\-bug\-workaround\fR
719 .Sp
720 \&\fI\s-1CR16\s0 Options\fR
721 \&\fB\-mmac 
722 \&\-mcr16cplus  \-mcr16c 
723 \&\-msim  \-mint32  \-mbit\-ops
724 \&\-mdata\-model=\fR\fImodel\fR
725 .Sp
726 \&\fIDarwin Options\fR
727 \&\fB\-all_load  \-allowable_client  \-arch  \-arch_errors_fatal 
728 \&\-arch_only  \-bind_at_load  \-bundle  \-bundle_loader 
729 \&\-client_name  \-compatibility_version  \-current_version 
730 \&\-dead_strip 
731 \&\-dependency\-file  \-dylib_file  \-dylinker_install_name 
732 \&\-dynamic  \-dynamiclib  \-exported_symbols_list 
733 \&\-filelist  \-flat_namespace  \-force_cpusubtype_ALL 
734 \&\-force_flat_namespace  \-headerpad_max_install_names 
735 \&\-iframework 
736 \&\-image_base  \-init  \-install_name  \-keep_private_externs 
737 \&\-multi_module  \-multiply_defined  \-multiply_defined_unused 
738 \&\-noall_load   \-no_dead_strip_inits_and_terms 
739 \&\-nofixprebinding  \-nomultidefs  \-noprebind  \-noseglinkedit 
740 \&\-pagezero_size  \-prebind  \-prebind_all_twolevel_modules 
741 \&\-private_bundle  \-read_only_relocs  \-sectalign 
742 \&\-sectobjectsymbols  \-whyload  \-seg1addr 
743 \&\-sectcreate  \-sectobjectsymbols  \-sectorder 
744 \&\-segaddr  \-segs_read_only_addr  \-segs_read_write_addr 
745 \&\-seg_addr_table  \-seg_addr_table_filename  \-seglinkedit 
746 \&\-segprot  \-segs_read_only_addr  \-segs_read_write_addr 
747 \&\-single_module  \-static  \-sub_library  \-sub_umbrella 
748 \&\-twolevel_namespace  \-umbrella  \-undefined 
749 \&\-unexported_symbols_list  \-weak_reference_mismatches 
750 \&\-whatsloaded  \-F  \-gused  \-gfull  \-mmacosx\-version\-min=\fR\fIversion\fR 
751 \&\fB\-mkernel  \-mone\-byte\-bool\fR
752 .Sp
753 \&\fI\s-1DEC\s0 Alpha Options\fR
754 \&\fB\-mno\-fp\-regs  \-msoft\-float 
755 \&\-mieee  \-mieee\-with\-inexact  \-mieee\-conformant 
756 \&\-mfp\-trap\-mode=\fR\fImode\fR  \fB\-mfp\-rounding\-mode=\fR\fImode\fR 
757 \&\fB\-mtrap\-precision=\fR\fImode\fR  \fB\-mbuild\-constants 
758 \&\-mcpu=\fR\fIcpu-type\fR  \fB\-mtune=\fR\fIcpu-type\fR 
759 \&\fB\-mbwx  \-mmax  \-mfix  \-mcix 
760 \&\-mfloat\-vax  \-mfloat\-ieee 
761 \&\-mexplicit\-relocs  \-msmall\-data  \-mlarge\-data 
762 \&\-msmall\-text  \-mlarge\-text 
763 \&\-mmemory\-latency=\fR\fItime\fR
764 .Sp
765 \&\fI\s-1FR30\s0 Options\fR
766 \&\fB\-msmall\-model  \-mno\-lsim\fR
767 .Sp
768 \&\fI\s-1FT32\s0 Options\fR
769 \&\fB\-msim  \-mlra  \-mnodiv  \-mft32b  \-mcompress  \-mnopm\fR
770 .Sp
771 \&\fI\s-1FRV\s0 Options\fR
772 \&\fB\-mgpr\-32  \-mgpr\-64  \-mfpr\-32  \-mfpr\-64 
773 \&\-mhard\-float  \-msoft\-float 
774 \&\-malloc\-cc  \-mfixed\-cc  \-mdword  \-mno\-dword 
775 \&\-mdouble  \-mno\-double 
776 \&\-mmedia  \-mno\-media  \-mmuladd  \-mno\-muladd 
777 \&\-mfdpic  \-minline\-plt  \-mgprel\-ro  \-multilib\-library\-pic 
778 \&\-mlinked\-fp  \-mlong\-calls  \-malign\-labels 
779 \&\-mlibrary\-pic  \-macc\-4  \-macc\-8 
780 \&\-mpack  \-mno\-pack  \-mno\-eflags  \-mcond\-move  \-mno\-cond\-move 
781 \&\-moptimize\-membar  \-mno\-optimize\-membar 
782 \&\-mscc  \-mno\-scc  \-mcond\-exec  \-mno\-cond\-exec 
783 \&\-mvliw\-branch  \-mno\-vliw\-branch 
784 \&\-mmulti\-cond\-exec  \-mno\-multi\-cond\-exec  \-mnested\-cond\-exec 
785 \&\-mno\-nested\-cond\-exec  \-mtomcat\-stats 
786 \&\-mTLS  \-mtls 
787 \&\-mcpu=\fR\fIcpu\fR
788 .Sp
789 \&\fIGNU/Linux Options\fR
790 \&\fB\-mglibc  \-muclibc  \-mmusl  \-mbionic  \-mandroid 
791 \&\-tno\-android\-cc  \-tno\-android\-ld\fR
792 .Sp
793 \&\fIH8/300 Options\fR
794 \&\fB\-mrelax  \-mh  \-ms  \-mn  \-mexr  \-mno\-exr  \-mint32  \-malign\-300\fR
795 .Sp
796 \&\fI\s-1HPPA\s0 Options\fR
797 \&\fB\-march=\fR\fIarchitecture-type\fR 
798 \&\fB\-mcaller\-copies  \-mdisable\-fpregs  \-mdisable\-indexing 
799 \&\-mfast\-indirect\-calls  \-mgas  \-mgnu\-ld   \-mhp\-ld 
800 \&\-mfixed\-range=\fR\fIregister-range\fR 
801 \&\fB\-mjump\-in\-delay  \-mlinker\-opt  \-mlong\-calls 
802 \&\-mlong\-load\-store  \-mno\-disable\-fpregs 
803 \&\-mno\-disable\-indexing  \-mno\-fast\-indirect\-calls  \-mno\-gas 
804 \&\-mno\-jump\-in\-delay  \-mno\-long\-load\-store 
805 \&\-mno\-portable\-runtime  \-mno\-soft\-float 
806 \&\-mno\-space\-regs  \-msoft\-float  \-mpa\-risc\-1\-0 
807 \&\-mpa\-risc\-1\-1  \-mpa\-risc\-2\-0  \-mportable\-runtime 
808 \&\-mschedule=\fR\fIcpu-type\fR  \fB\-mspace\-regs  \-msio  \-mwsio 
809 \&\-munix=\fR\fIunix-std\fR  \fB\-nolibdld  \-static  \-threads\fR
810 .Sp
811 \&\fI\s-1IA\-64\s0 Options\fR
812 \&\fB\-mbig\-endian  \-mlittle\-endian  \-mgnu\-as  \-mgnu\-ld  \-mno\-pic 
813 \&\-mvolatile\-asm\-stop  \-mregister\-names  \-msdata  \-mno\-sdata 
814 \&\-mconstant\-gp  \-mauto\-pic  \-mfused\-madd 
815 \&\-minline\-float\-divide\-min\-latency 
816 \&\-minline\-float\-divide\-max\-throughput 
817 \&\-mno\-inline\-float\-divide 
818 \&\-minline\-int\-divide\-min\-latency 
819 \&\-minline\-int\-divide\-max\-throughput  
820 \&\-mno\-inline\-int\-divide 
821 \&\-minline\-sqrt\-min\-latency  \-minline\-sqrt\-max\-throughput 
822 \&\-mno\-inline\-sqrt 
823 \&\-mdwarf2\-asm  \-mearly\-stop\-bits 
824 \&\-mfixed\-range=\fR\fIregister-range\fR  \fB\-mtls\-size=\fR\fItls-size\fR 
825 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-milp32  \-mlp64 
826 \&\-msched\-br\-data\-spec  \-msched\-ar\-data\-spec  \-msched\-control\-spec 
827 \&\-msched\-br\-in\-data\-spec  \-msched\-ar\-in\-data\-spec  \-msched\-in\-control\-spec 
828 \&\-msched\-spec\-ldc  \-msched\-spec\-control\-ldc 
829 \&\-msched\-prefer\-non\-data\-spec\-insns  \-msched\-prefer\-non\-control\-spec\-insns 
830 \&\-msched\-stop\-bits\-after\-every\-cycle  \-msched\-count\-spec\-in\-critical\-path 
831 \&\-msel\-sched\-dont\-check\-control\-spec  \-msched\-fp\-mem\-deps\-zero\-cost 
832 \&\-msched\-max\-memory\-insns\-hard\-limit  \-msched\-max\-memory\-insns=\fR\fImax-insns\fR
833 .Sp
834 \&\fI\s-1LM32\s0 Options\fR
835 \&\fB\-mbarrel\-shift\-enabled  \-mdivide\-enabled  \-mmultiply\-enabled 
836 \&\-msign\-extend\-enabled  \-muser\-enabled\fR
837 .Sp
838 \&\fIM32R/D Options\fR
839 \&\fB\-m32r2  \-m32rx  \-m32r 
840 \&\-mdebug 
841 \&\-malign\-loops  \-mno\-align\-loops 
842 \&\-missue\-rate=\fR\fInumber\fR 
843 \&\fB\-mbranch\-cost=\fR\fInumber\fR 
844 \&\fB\-mmodel=\fR\fIcode-size-model-type\fR 
845 \&\fB\-msdata=\fR\fIsdata-type\fR 
846 \&\fB\-mno\-flush\-func  \-mflush\-func=\fR\fIname\fR 
847 \&\fB\-mno\-flush\-trap  \-mflush\-trap=\fR\fInumber\fR 
848 \&\fB\-G\fR \fInum\fR
849 .Sp
850 \&\fIM32C Options\fR
851 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-msim  \-memregs=\fR\fInumber\fR
852 .Sp
853 \&\fIM680x0 Options\fR
854 \&\fB\-march=\fR\fIarch\fR  \fB\-mcpu=\fR\fIcpu\fR  \fB\-mtune=\fR\fItune\fR 
855 \&\fB\-m68000  \-m68020  \-m68020\-40  \-m68020\-60  \-m68030  \-m68040 
856 \&\-m68060  \-mcpu32  \-m5200  \-m5206e  \-m528x  \-m5307  \-m5407 
857 \&\-mcfv4e  \-mbitfield  \-mno\-bitfield  \-mc68000  \-mc68020 
858 \&\-mnobitfield  \-mrtd  \-mno\-rtd  \-mdiv  \-mno\-div  \-mshort 
859 \&\-mno\-short  \-mhard\-float  \-m68881  \-msoft\-float  \-mpcrel 
860 \&\-malign\-int  \-mstrict\-align  \-msep\-data  \-mno\-sep\-data 
861 \&\-mshared\-library\-id=n  \-mid\-shared\-library  \-mno\-id\-shared\-library 
862 \&\-mxgot  \-mno\-xgot  \-mlong\-jump\-table\-offsets\fR
863 .Sp
864 \&\fIMCore Options\fR
865 \&\fB\-mhardlit  \-mno\-hardlit  \-mdiv  \-mno\-div  \-mrelax\-immediates 
866 \&\-mno\-relax\-immediates  \-mwide\-bitfields  \-mno\-wide\-bitfields 
867 \&\-m4byte\-functions  \-mno\-4byte\-functions  \-mcallgraph\-data 
868 \&\-mno\-callgraph\-data  \-mslow\-bytes  \-mno\-slow\-bytes  \-mno\-lsim 
869 \&\-mlittle\-endian  \-mbig\-endian  \-m210  \-m340  \-mstack\-increment\fR
870 .Sp
871 \&\fIMeP Options\fR
872 \&\fB\-mabsdiff  \-mall\-opts  \-maverage  \-mbased=\fR\fIn\fR  \fB\-mbitops 
873 \&\-mc=\fR\fIn\fR  \fB\-mclip  \-mconfig=\fR\fIname\fR  \fB\-mcop  \-mcop32  \-mcop64  \-mivc2 
874 \&\-mdc  \-mdiv  \-meb  \-mel  \-mio\-volatile  \-ml  \-mleadz  \-mm  \-mminmax 
875 \&\-mmult  \-mno\-opts  \-mrepeat  \-ms  \-msatur  \-msdram  \-msim  \-msimnovec  \-mtf 
876 \&\-mtiny=\fR\fIn\fR
877 .Sp
878 \&\fIMicroBlaze Options\fR
879 \&\fB\-msoft\-float  \-mhard\-float  \-msmall\-divides  \-mcpu=\fR\fIcpu\fR 
880 \&\fB\-mmemcpy  \-mxl\-soft\-mul  \-mxl\-soft\-div  \-mxl\-barrel\-shift 
881 \&\-mxl\-pattern\-compare  \-mxl\-stack\-check  \-mxl\-gp\-opt  \-mno\-clearbss 
882 \&\-mxl\-multiply\-high  \-mxl\-float\-convert  \-mxl\-float\-sqrt 
883 \&\-mbig\-endian  \-mlittle\-endian  \-mxl\-reorder  \-mxl\-mode\-\fR\fIapp-model\fR
884 .Sp
885 \&\fI\s-1MIPS\s0 Options\fR
886 \&\fB\-EL  \-EB  \-march=\fR\fIarch\fR  \fB\-mtune=\fR\fIarch\fR 
887 \&\fB\-mips1  \-mips2  \-mips3  \-mips4  \-mips32  \-mips32r2  \-mips32r3  \-mips32r5 
888 \&\-mips32r6  \-mips64  \-mips64r2  \-mips64r3  \-mips64r5  \-mips64r6 
889 \&\-mips16  \-mno\-mips16  \-mflip\-mips16 
890 \&\-minterlink\-compressed  \-mno\-interlink\-compressed 
891 \&\-minterlink\-mips16  \-mno\-interlink\-mips16 
892 \&\-mabi=\fR\fIabi\fR  \fB\-mabicalls  \-mno\-abicalls 
893 \&\-mshared  \-mno\-shared  \-mplt  \-mno\-plt  \-mxgot  \-mno\-xgot 
894 \&\-mgp32  \-mgp64  \-mfp32  \-mfpxx  \-mfp64  \-mhard\-float  \-msoft\-float 
895 \&\-mno\-float  \-msingle\-float  \-mdouble\-float 
896 \&\-modd\-spreg  \-mno\-odd\-spreg 
897 \&\-mabs=\fR\fImode\fR  \fB\-mnan=\fR\fIencoding\fR 
898 \&\fB\-mdsp  \-mno\-dsp  \-mdspr2  \-mno\-dspr2 
899 \&\-mmcu  \-mmno\-mcu 
900 \&\-meva  \-mno\-eva 
901 \&\-mvirt  \-mno\-virt 
902 \&\-mxpa  \-mno\-xpa 
903 \&\-mmicromips  \-mno\-micromips 
904 \&\-mmsa  \-mno\-msa 
905 \&\-mfpu=\fR\fIfpu-type\fR 
906 \&\fB\-msmartmips  \-mno\-smartmips 
907 \&\-mpaired\-single  \-mno\-paired\-single  \-mdmx  \-mno\-mdmx 
908 \&\-mips3d  \-mno\-mips3d  \-mmt  \-mno\-mt  \-mllsc  \-mno\-llsc 
909 \&\-mlong64  \-mlong32  \-msym32  \-mno\-sym32 
910 \&\-G\fR\fInum\fR  \fB\-mlocal\-sdata  \-mno\-local\-sdata 
911 \&\-mextern\-sdata  \-mno\-extern\-sdata  \-mgpopt  \-mno\-gopt 
912 \&\-membedded\-data  \-mno\-embedded\-data 
913 \&\-muninit\-const\-in\-rodata  \-mno\-uninit\-const\-in\-rodata 
914 \&\-mcode\-readable=\fR\fIsetting\fR 
915 \&\fB\-msplit\-addresses  \-mno\-split\-addresses 
916 \&\-mexplicit\-relocs  \-mno\-explicit\-relocs 
917 \&\-mcheck\-zero\-division  \-mno\-check\-zero\-division 
918 \&\-mdivide\-traps  \-mdivide\-breaks 
919 \&\-mload\-store\-pairs  \-mno\-load\-store\-pairs 
920 \&\-mmemcpy  \-mno\-memcpy  \-mlong\-calls  \-mno\-long\-calls 
921 \&\-mmad  \-mno\-mad  \-mimadd  \-mno\-imadd  \-mfused\-madd  \-mno\-fused\-madd  \-nocpp 
922 \&\-mfix\-24k  \-mno\-fix\-24k 
923 \&\-mfix\-r4000  \-mno\-fix\-r4000  \-mfix\-r4400  \-mno\-fix\-r4400 
924 \&\-mfix\-r10000  \-mno\-fix\-r10000  \-mfix\-rm7000  \-mno\-fix\-rm7000 
925 \&\-mfix\-vr4120  \-mno\-fix\-vr4120 
926 \&\-mfix\-vr4130  \-mno\-fix\-vr4130  \-mfix\-sb1  \-mno\-fix\-sb1 
927 \&\-mflush\-func=\fR\fIfunc\fR  \fB\-mno\-flush\-func 
928 \&\-mbranch\-cost=\fR\fInum\fR  \fB\-mbranch\-likely  \-mno\-branch\-likely 
929 \&\-mcompact\-branches=\fR\fIpolicy\fR 
930 \&\fB\-mfp\-exceptions  \-mno\-fp\-exceptions 
931 \&\-mvr4130\-align  \-mno\-vr4130\-align  \-msynci  \-mno\-synci 
932 \&\-mlxc1\-sxc1 \-mno\-lxc1\-sxc1 \-mmadd4 \-mno\-madd4 
933 \&\-mrelax\-pic\-calls  \-mno\-relax\-pic\-calls  \-mmcount\-ra\-address 
934 \&\-mframe\-header\-opt  \-mno\-frame\-header\-opt\fR
935 .Sp
936 \&\fI\s-1MMIX\s0 Options\fR
937 \&\fB\-mlibfuncs  \-mno\-libfuncs  \-mepsilon  \-mno\-epsilon  \-mabi=gnu 
938 \&\-mabi=mmixware  \-mzero\-extend  \-mknuthdiv  \-mtoplevel\-symbols 
939 \&\-melf  \-mbranch\-predict  \-mno\-branch\-predict  \-mbase\-addresses 
940 \&\-mno\-base\-addresses  \-msingle\-exit  \-mno\-single\-exit\fR
941 .Sp
942 \&\fI\s-1MN10300\s0 Options\fR
943 \&\fB\-mmult\-bug  \-mno\-mult\-bug 
944 \&\-mno\-am33  \-mam33  \-mam33\-2  \-mam34 
945 \&\-mtune=\fR\fIcpu-type\fR 
946 \&\fB\-mreturn\-pointer\-on\-d0 
947 \&\-mno\-crt0  \-mrelax  \-mliw  \-msetlb\fR
948 .Sp
949 \&\fIMoxie Options\fR
950 \&\fB\-meb  \-mel  \-mmul.x  \-mno\-crt0\fR
951 .Sp
952 \&\fI\s-1MSP430\s0 Options\fR
953 \&\fB\-msim  \-masm\-hex  \-mmcu=  \-mcpu=  \-mlarge  \-msmall  \-mrelax 
954 \&\-mwarn\-mcu 
955 \&\-mcode\-region=  \-mdata\-region= 
956 \&\-msilicon\-errata=  \-msilicon\-errata\-warn= 
957 \&\-mhwmult=  \-minrt\fR
958 .Sp
959 \&\fI\s-1NDS32\s0 Options\fR
960 \&\fB\-mbig\-endian  \-mlittle\-endian 
961 \&\-mreduced\-regs  \-mfull\-regs 
962 \&\-mcmov  \-mno\-cmov 
963 \&\-mext\-perf  \-mno\-ext\-perf 
964 \&\-mext\-perf2  \-mno\-ext\-perf2 
965 \&\-mext\-string  \-mno\-ext\-string 
966 \&\-mv3push  \-mno\-v3push 
967 \&\-m16bit  \-mno\-16bit 
968 \&\-misr\-vector\-size=\fR\fInum\fR 
969 \&\fB\-mcache\-block\-size=\fR\fInum\fR 
970 \&\fB\-march=\fR\fIarch\fR 
971 \&\fB\-mcmodel=\fR\fIcode-model\fR 
972 \&\fB\-mctor\-dtor  \-mrelax\fR
973 .Sp
974 \&\fINios \s-1II\s0 Options\fR
975 \&\fB\-G\fR \fInum\fR  \fB\-mgpopt=\fR\fIoption\fR  \fB\-mgpopt  \-mno\-gpopt 
976 \&\-mgprel\-sec=\fR\fIregexp\fR \fB\-mr0rel\-sec=\fR\fIregexp\fR 
977 \&\fB\-mel  \-meb 
978 \&\-mno\-bypass\-cache  \-mbypass\-cache 
979 \&\-mno\-cache\-volatile  \-mcache\-volatile 
980 \&\-mno\-fast\-sw\-div  \-mfast\-sw\-div 
981 \&\-mhw\-mul  \-mno\-hw\-mul  \-mhw\-mulx  \-mno\-hw\-mulx  \-mno\-hw\-div  \-mhw\-div 
982 \&\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR  \fB\-mno\-custom\-\fR\fIinsn\fR 
983 \&\fB\-mcustom\-fpu\-cfg=\fR\fIname\fR 
984 \&\fB\-mhal  \-msmallc  \-msys\-crt0=\fR\fIname\fR  \fB\-msys\-lib=\fR\fIname\fR 
985 \&\fB\-march=\fR\fIarch\fR  \fB\-mbmx  \-mno\-bmx  \-mcdx  \-mno\-cdx\fR
986 .Sp
987 \&\fINvidia \s-1PTX\s0 Options\fR
988 \&\fB\-m32  \-m64  \-mmainkernel  \-moptimize\fR
989 .Sp
990 \&\fI\s-1PDP\-11\s0 Options\fR
991 \&\fB\-mfpu  \-msoft\-float  \-mac0  \-mno\-ac0  \-m40  \-m45  \-m10 
992 \&\-mbcopy  \-mbcopy\-builtin  \-mint32  \-mno\-int16 
993 \&\-mint16  \-mno\-int32  \-mfloat32  \-mno\-float64 
994 \&\-mfloat64  \-mno\-float32  \-mabshi  \-mno\-abshi 
995 \&\-mbranch\-expensive  \-mbranch\-cheap 
996 \&\-munix\-asm  \-mdec\-asm\fR
997 .Sp
998 \&\fIpicoChip Options\fR
999 \&\fB\-mae=\fR\fIae_type\fR  \fB\-mvliw\-lookahead=\fR\fIN\fR 
1000 \&\fB\-msymbol\-as\-address  \-mno\-inefficient\-warnings\fR
1001 .Sp
1002 \&\fIPowerPC Options\fR
1003 See \s-1RS/6000\s0 and PowerPC Options.
1004 .Sp
1005 \&\fIPowerPC \s-1SPE\s0 Options\fR
1006 \&\fB\-mcpu=\fR\fIcpu-type\fR 
1007 \&\fB\-mtune=\fR\fIcpu-type\fR 
1008 \&\fB\-mmfcrf  \-mno\-mfcrf  \-mpopcntb  \-mno\-popcntb 
1009 \&\-mfull\-toc   \-mminimal\-toc  \-mno\-fp\-in\-toc  \-mno\-sum\-in\-toc 
1010 \&\-m32  \-mxl\-compat  \-mno\-xl\-compat 
1011 \&\-malign\-power  \-malign\-natural 
1012 \&\-msoft\-float  \-mhard\-float  \-mmultiple  \-mno\-multiple 
1013 \&\-msingle\-float  \-mdouble\-float 
1014 \&\-mupdate  \-mno\-update 
1015 \&\-mavoid\-indexed\-addresses  \-mno\-avoid\-indexed\-addresses 
1016 \&\-mstrict\-align  \-mno\-strict\-align  \-mrelocatable 
1017 \&\-mno\-relocatable  \-mrelocatable\-lib  \-mno\-relocatable\-lib 
1018 \&\-mtoc  \-mno\-toc  \-mlittle  \-mlittle\-endian  \-mbig  \-mbig\-endian 
1019 \&\-msingle\-pic\-base 
1020 \&\-mprioritize\-restricted\-insns=\fR\fIpriority\fR 
1021 \&\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR 
1022 \&\fB\-minsert\-sched\-nops=\fR\fIscheme\fR 
1023 \&\fB\-mcall\-sysv  \-mcall\-netbsd 
1024 \&\-maix\-struct\-return  \-msvr4\-struct\-return 
1025 \&\-mabi=\fR\fIabi-type\fR  \fB\-msecure\-plt  \-mbss\-plt 
1026 \&\-mblock\-move\-inline\-limit=\fR\fInum\fR 
1027 \&\fB\-misel  \-mno\-isel 
1028 \&\-misel=yes  \-misel=no 
1029 \&\-mspe  \-mno\-spe 
1030 \&\-mspe=yes  \-mspe=no 
1031 \&\-mfloat\-gprs=yes  \-mfloat\-gprs=no  \-mfloat\-gprs=single  \-mfloat\-gprs=double 
1032 \&\-mprototype  \-mno\-prototype 
1033 \&\-msim  \-mmvme  \-mads  \-myellowknife  \-memb  \-msdata 
1034 \&\-msdata=\fR\fIopt\fR  \fB\-mvxworks  \-G\fR \fInum\fR 
1035 \&\fB\-mrecip  \-mrecip=\fR\fIopt\fR  \fB\-mno\-recip  \-mrecip\-precision 
1036 \&\-mno\-recip\-precision 
1037 \&\-mpointers\-to\-nested\-functions  \-mno\-pointers\-to\-nested\-functions 
1038 \&\-msave\-toc\-indirect  \-mno\-save\-toc\-indirect 
1039 \&\-mcompat\-align\-parm  \-mno\-compat\-align\-parm 
1040 \&\-mfloat128  \-mno\-float128 
1041 \&\-mgnu\-attribute  \-mno\-gnu\-attribute 
1042 \&\-mstack\-protector\-guard=\fR\fIguard\fR \fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR 
1043 \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR
1044 .Sp
1045 \&\fIRISC-V Options\fR
1046 \&\fB\-mbranch\-cost=\fR\fIN\-instruction\fR 
1047 \&\fB\-mplt  \-mno\-plt 
1048 \&\-mabi=\fR\fIABI-string\fR 
1049 \&\fB\-mfdiv  \-mno\-fdiv 
1050 \&\-mdiv  \-mno\-div 
1051 \&\-march=\fR\fIISA-string\fR 
1052 \&\fB\-mtune=\fR\fIprocessor-string\fR 
1053 \&\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR 
1054 \&\fB\-msmall\-data\-limit=\fR\fIN\-bytes\fR 
1055 \&\fB\-msave\-restore  \-mno\-save\-restore 
1056 \&\-mstrict\-align \-mno\-strict\-align 
1057 \&\-mcmodel=medlow \-mcmodel=medany 
1058 \&\-mexplicit\-relocs  \-mno\-explicit\-relocs 
1059 \&\-mrelax \-mno\-relax\fR
1060 .Sp
1061 \&\fI\s-1RL78\s0 Options\fR
1062 \&\fB\-msim  \-mmul=none  \-mmul=g13  \-mmul=g14  \-mallregs 
1063 \&\-mcpu=g10  \-mcpu=g13  \-mcpu=g14  \-mg10  \-mg13  \-mg14 
1064 \&\-m64bit\-doubles  \-m32bit\-doubles  \-msave\-mduc\-in\-interrupts\fR
1065 .Sp
1066 \&\fI\s-1RS/6000\s0 and PowerPC Options\fR
1067 \&\fB\-mcpu=\fR\fIcpu-type\fR 
1068 \&\fB\-mtune=\fR\fIcpu-type\fR 
1069 \&\fB\-mcmodel=\fR\fIcode-model\fR 
1070 \&\fB\-mpowerpc64 
1071 \&\-maltivec  \-mno\-altivec 
1072 \&\-mpowerpc\-gpopt  \-mno\-powerpc\-gpopt 
1073 \&\-mpowerpc\-gfxopt  \-mno\-powerpc\-gfxopt 
1074 \&\-mmfcrf  \-mno\-mfcrf  \-mpopcntb  \-mno\-popcntb  \-mpopcntd  \-mno\-popcntd 
1075 \&\-mfprnd  \-mno\-fprnd 
1076 \&\-mcmpb  \-mno\-cmpb  \-mmfpgpr  \-mno\-mfpgpr  \-mhard\-dfp  \-mno\-hard\-dfp 
1077 \&\-mfull\-toc   \-mminimal\-toc  \-mno\-fp\-in\-toc  \-mno\-sum\-in\-toc 
1078 \&\-m64  \-m32  \-mxl\-compat  \-mno\-xl\-compat  \-mpe 
1079 \&\-malign\-power  \-malign\-natural 
1080 \&\-msoft\-float  \-mhard\-float  \-mmultiple  \-mno\-multiple 
1081 \&\-msingle\-float  \-mdouble\-float  \-msimple\-fpu 
1082 \&\-mupdate  \-mno\-update 
1083 \&\-mavoid\-indexed\-addresses  \-mno\-avoid\-indexed\-addresses 
1084 \&\-mfused\-madd  \-mno\-fused\-madd  \-mbit\-align  \-mno\-bit\-align 
1085 \&\-mstrict\-align  \-mno\-strict\-align  \-mrelocatable 
1086 \&\-mno\-relocatable  \-mrelocatable\-lib  \-mno\-relocatable\-lib 
1087 \&\-mtoc  \-mno\-toc  \-mlittle  \-mlittle\-endian  \-mbig  \-mbig\-endian 
1088 \&\-mdynamic\-no\-pic  \-maltivec  \-mswdiv  \-msingle\-pic\-base 
1089 \&\-mprioritize\-restricted\-insns=\fR\fIpriority\fR 
1090 \&\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR 
1091 \&\fB\-minsert\-sched\-nops=\fR\fIscheme\fR 
1092 \&\fB\-mcall\-aixdesc  \-mcall\-eabi  \-mcall\-freebsd  
1093 \&\-mcall\-linux  \-mcall\-netbsd  \-mcall\-openbsd  
1094 \&\-mcall\-sysv  \-mcall\-sysv\-eabi  \-mcall\-sysv\-noeabi 
1095 \&\-mtraceback=\fR\fItraceback_type\fR 
1096 \&\fB\-maix\-struct\-return  \-msvr4\-struct\-return 
1097 \&\-mabi=\fR\fIabi-type\fR  \fB\-msecure\-plt  \-mbss\-plt 
1098 \&\-mblock\-move\-inline\-limit=\fR\fInum\fR 
1099 \&\fB\-mblock\-compare\-inline\-limit=\fR\fInum\fR 
1100 \&\fB\-mblock\-compare\-inline\-loop\-limit=\fR\fInum\fR 
1101 \&\fB\-mstring\-compare\-inline\-limit=\fR\fInum\fR 
1102 \&\fB\-misel  \-mno\-isel 
1103 \&\-misel=yes  \-misel=no 
1104 \&\-mpaired 
1105 \&\-mvrsave  \-mno\-vrsave 
1106 \&\-mmulhw  \-mno\-mulhw 
1107 \&\-mdlmzb  \-mno\-dlmzb 
1108 \&\-mprototype  \-mno\-prototype 
1109 \&\-msim  \-mmvme  \-mads  \-myellowknife  \-memb  \-msdata 
1110 \&\-msdata=\fR\fIopt\fR  \fB\-mreadonly\-in\-sdata  \-mvxworks  \-G\fR \fInum\fR 
1111 \&\fB\-mrecip  \-mrecip=\fR\fIopt\fR  \fB\-mno\-recip  \-mrecip\-precision 
1112 \&\-mno\-recip\-precision 
1113 \&\-mveclibabi=\fR\fItype\fR  \fB\-mfriz  \-mno\-friz 
1114 \&\-mpointers\-to\-nested\-functions  \-mno\-pointers\-to\-nested\-functions 
1115 \&\-msave\-toc\-indirect  \-mno\-save\-toc\-indirect 
1116 \&\-mpower8\-fusion  \-mno\-mpower8\-fusion  \-mpower8\-vector  \-mno\-power8\-vector 
1117 \&\-mcrypto  \-mno\-crypto  \-mhtm  \-mno\-htm 
1118 \&\-mquad\-memory  \-mno\-quad\-memory 
1119 \&\-mquad\-memory\-atomic  \-mno\-quad\-memory\-atomic 
1120 \&\-mcompat\-align\-parm  \-mno\-compat\-align\-parm 
1121 \&\-mfloat128  \-mno\-float128  \-mfloat128\-hardware  \-mno\-float128\-hardware 
1122 \&\-mgnu\-attribute  \-mno\-gnu\-attribute 
1123 \&\-mstack\-protector\-guard=\fR\fIguard\fR \fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR 
1124 \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR
1125 .Sp
1126 \&\fI\s-1RX\s0 Options\fR
1127 \&\fB\-m64bit\-doubles  \-m32bit\-doubles  \-fpu  \-nofpu
1128 \&\-mcpu=
1129 \&\-mbig\-endian\-data  \-mlittle\-endian\-data 
1130 \&\-msmall\-data 
1131 \&\-msim  \-mno\-sim
1132 \&\-mas100\-syntax  \-mno\-as100\-syntax
1133 \&\-mrelax
1134 \&\-mmax\-constant\-size=
1135 \&\-mint\-register=
1136 \&\-mpid
1137 \&\-mallow\-string\-insns  \-mno\-allow\-string\-insns
1138 \&\-mjsr
1139 \&\-mno\-warn\-multiple\-fast\-interrupts
1140 \&\-msave\-acc\-in\-interrupts\fR
1141 .Sp
1142 \&\fIS/390 and zSeries Options\fR
1143 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
1144 \&\fB\-mhard\-float  \-msoft\-float  \-mhard\-dfp  \-mno\-hard\-dfp 
1145 \&\-mlong\-double\-64  \-mlong\-double\-128 
1146 \&\-mbackchain  \-mno\-backchain  \-mpacked\-stack  \-mno\-packed\-stack 
1147 \&\-msmall\-exec  \-mno\-small\-exec  \-mmvcle  \-mno\-mvcle 
1148 \&\-m64  \-m31  \-mdebug  \-mno\-debug  \-mesa  \-mzarch 
1149 \&\-mhtm  \-mvx  \-mzvector 
1150 \&\-mtpf\-trace  \-mno\-tpf\-trace  \-mfused\-madd  \-mno\-fused\-madd 
1151 \&\-mwarn\-framesize  \-mwarn\-dynamicstack  \-mstack\-size  \-mstack\-guard 
1152 \&\-mhotpatch=\fR\fIhalfwords\fR\fB,\fR\fIhalfwords\fR
1153 .Sp
1154 \&\fIScore Options\fR
1155 \&\fB\-meb  \-mel 
1156 \&\-mnhwloop 
1157 \&\-muls 
1158 \&\-mmac 
1159 \&\-mscore5  \-mscore5u  \-mscore7  \-mscore7d\fR
1160 .Sp
1161 \&\fI\s-1SH\s0 Options\fR
1162 \&\fB\-m1  \-m2  \-m2e 
1163 \&\-m2a\-nofpu  \-m2a\-single\-only  \-m2a\-single  \-m2a 
1164 \&\-m3  \-m3e 
1165 \&\-m4\-nofpu  \-m4\-single\-only  \-m4\-single  \-m4 
1166 \&\-m4a\-nofpu  \-m4a\-single\-only  \-m4a\-single  \-m4a  \-m4al 
1167 \&\-mb  \-ml  \-mdalign  \-mrelax 
1168 \&\-mbigtable  \-mfmovd  \-mrenesas  \-mno\-renesas  \-mnomacsave 
1169 \&\-mieee  \-mno\-ieee  \-mbitops  \-misize  \-minline\-ic_invalidate  \-mpadstruct 
1170 \&\-mprefergot  \-musermode  \-multcost=\fR\fInumber\fR  \fB\-mdiv=\fR\fIstrategy\fR 
1171 \&\fB\-mdivsi3_libfunc=\fR\fIname\fR  \fB\-mfixed\-range=\fR\fIregister-range\fR 
1172 \&\fB\-maccumulate\-outgoing\-args 
1173 \&\-matomic\-model=\fR\fIatomic-model\fR 
1174 \&\fB\-mbranch\-cost=\fR\fInum\fR  \fB\-mzdcbranch  \-mno\-zdcbranch 
1175 \&\-mcbranch\-force\-delay\-slot 
1176 \&\-mfused\-madd  \-mno\-fused\-madd  \-mfsca  \-mno\-fsca  \-mfsrra  \-mno\-fsrra 
1177 \&\-mpretend\-cmove  \-mtas\fR
1178 .Sp
1179 \&\fISolaris 2 Options\fR
1180 \&\fB\-mclear\-hwcap  \-mno\-clear\-hwcap  \-mimpure\-text  \-mno\-impure\-text 
1181 \&\-pthreads\fR
1182 .Sp
1183 \&\fI\s-1SPARC\s0 Options\fR
1184 \&\fB\-mcpu=\fR\fIcpu-type\fR 
1185 \&\fB\-mtune=\fR\fIcpu-type\fR 
1186 \&\fB\-mcmodel=\fR\fIcode-model\fR 
1187 \&\fB\-mmemory\-model=\fR\fImem-model\fR 
1188 \&\fB\-m32  \-m64  \-mapp\-regs  \-mno\-app\-regs 
1189 \&\-mfaster\-structs  \-mno\-faster\-structs  \-mflat  \-mno\-flat 
1190 \&\-mfpu  \-mno\-fpu  \-mhard\-float  \-msoft\-float 
1191 \&\-mhard\-quad\-float  \-msoft\-quad\-float 
1192 \&\-mstack\-bias  \-mno\-stack\-bias 
1193 \&\-mstd\-struct\-return  \-mno\-std\-struct\-return 
1194 \&\-munaligned\-doubles  \-mno\-unaligned\-doubles 
1195 \&\-muser\-mode  \-mno\-user\-mode 
1196 \&\-mv8plus  \-mno\-v8plus  \-mvis  \-mno\-vis 
1197 \&\-mvis2  \-mno\-vis2  \-mvis3  \-mno\-vis3 
1198 \&\-mvis4 \-mno\-vis4 \-mvis4b \-mno\-vis4b 
1199 \&\-mcbcond  \-mno\-cbcond  \-mfmaf  \-mno\-fmaf  \-mfsmuld  \-mno\-fsmuld  
1200 \&\-mpopc  \-mno\-popc  \-msubxc  \-mno\-subxc 
1201 \&\-mfix\-at697f  \-mfix\-ut699  \-mfix\-ut700  \-mfix\-gr712rc 
1202 \&\-mlra  \-mno\-lra\fR
1203 .Sp
1204 \&\fI\s-1SPU\s0 Options\fR
1205 \&\fB\-mwarn\-reloc  \-merror\-reloc 
1206 \&\-msafe\-dma  \-munsafe\-dma 
1207 \&\-mbranch\-hints 
1208 \&\-msmall\-mem  \-mlarge\-mem  \-mstdmain 
1209 \&\-mfixed\-range=\fR\fIregister-range\fR 
1210 \&\fB\-mea32  \-mea64 
1211 \&\-maddress\-space\-conversion  \-mno\-address\-space\-conversion 
1212 \&\-mcache\-size=\fR\fIcache-size\fR 
1213 \&\fB\-matomic\-updates  \-mno\-atomic\-updates\fR
1214 .Sp
1215 \&\fISystem V Options\fR
1216 \&\fB\-Qy  \-Qn  \-YP,\fR\fIpaths\fR  \fB\-Ym,\fR\fIdir\fR
1217 .Sp
1218 \&\fITILE-Gx Options\fR
1219 \&\fB\-mcpu=CPU  \-m32  \-m64  \-mbig\-endian  \-mlittle\-endian 
1220 \&\-mcmodel=\fR\fIcode-model\fR
1221 .Sp
1222 \&\fITILEPro Options\fR
1223 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-m32\fR
1224 .Sp
1225 \&\fIV850 Options\fR
1226 \&\fB\-mlong\-calls  \-mno\-long\-calls  \-mep  \-mno\-ep 
1227 \&\-mprolog\-function  \-mno\-prolog\-function  \-mspace 
1228 \&\-mtda=\fR\fIn\fR  \fB\-msda=\fR\fIn\fR  \fB\-mzda=\fR\fIn\fR 
1229 \&\fB\-mapp\-regs  \-mno\-app\-regs 
1230 \&\-mdisable\-callt  \-mno\-disable\-callt 
1231 \&\-mv850e2v3  \-mv850e2  \-mv850e1  \-mv850es 
1232 \&\-mv850e  \-mv850  \-mv850e3v5 
1233 \&\-mloop 
1234 \&\-mrelax 
1235 \&\-mlong\-jumps 
1236 \&\-msoft\-float 
1237 \&\-mhard\-float 
1238 \&\-mgcc\-abi 
1239 \&\-mrh850\-abi 
1240 \&\-mbig\-switch\fR
1241 .Sp
1242 \&\fI\s-1VAX\s0 Options\fR
1243 \&\fB\-mg  \-mgnu  \-munix\fR
1244 .Sp
1245 \&\fIVisium Options\fR
1246 \&\fB\-mdebug  \-msim  \-mfpu  \-mno\-fpu  \-mhard\-float  \-msoft\-float 
1247 \&\-mcpu=\fR\fIcpu-type\fR  \fB\-mtune=\fR\fIcpu-type\fR  \fB\-msv\-mode  \-muser\-mode\fR
1248 .Sp
1249 \&\fI\s-1VMS\s0 Options\fR
1250 \&\fB\-mvms\-return\-codes  \-mdebug\-main=\fR\fIprefix\fR  \fB\-mmalloc64 
1251 \&\-mpointer\-size=\fR\fIsize\fR
1252 .Sp
1253 \&\fIVxWorks Options\fR
1254 \&\fB\-mrtp  \-non\-static  \-Bstatic  \-Bdynamic 
1255 \&\-Xbind\-lazy  \-Xbind\-now\fR
1256 .Sp
1257 \&\fIx86 Options\fR
1258 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
1259 \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR  \fB\-mdump\-tune\-features  \-mno\-default 
1260 \&\-mfpmath=\fR\fIunit\fR 
1261 \&\fB\-masm=\fR\fIdialect\fR  \fB\-mno\-fancy\-math\-387 
1262 \&\-mno\-fp\-ret\-in\-387  \-m80387  \-mhard\-float  \-msoft\-float 
1263 \&\-mno\-wide\-multiply  \-mrtd  \-malign\-double 
1264 \&\-mpreferred\-stack\-boundary=\fR\fInum\fR 
1265 \&\fB\-mincoming\-stack\-boundary=\fR\fInum\fR 
1266 \&\fB\-mcld  \-mcx16  \-msahf  \-mmovbe  \-mcrc32 
1267 \&\-mrecip  \-mrecip=\fR\fIopt\fR 
1268 \&\fB\-mvzeroupper  \-mprefer\-avx128 \-mprefer\-vector\-width=\fR\fIopt\fR 
1269 \&\fB\-mmmx  \-msse  \-msse2  \-msse3  \-mssse3  \-msse4.1  \-msse4.2  \-msse4  \-mavx 
1270 \&\-mavx2  \-mavx512f  \-mavx512pf  \-mavx512er  \-mavx512cd  \-mavx512vl 
1271 \&\-mavx512bw  \-mavx512dq  \-mavx512ifma  \-mavx512vbmi  \-msha  \-maes 
1272 \&\-mpclmul  \-mfsgsbase  \-mrdrnd  \-mf16c  \-mfma \-mpconfig \-mwbnoinvd 
1273 \&\-mprefetchwt1  \-mclflushopt  \-mclwb  \-mxsavec  \-mxsaves 
1274 \&\-msse4a  \-m3dnow  \-m3dnowa  \-mpopcnt  \-mabm  \-mbmi  \-mtbm  \-mfma4  \-mxop 
1275 \&\-madx  \-mlzcnt  \-mbmi2  \-mfxsr  \-mxsave  \-mxsaveopt  \-mrtm  \-mlwp  \-mmpx  
1276 \&\-mmwaitx  \-mclzero  \-mpku  \-mthreads \-mgfni  \-mvaes  
1277 \&\-mshstk \-mforce\-indirect\-call \-mavx512vbmi2 
1278 \&\-mvpclmulqdq \-mavx512bitalg \-mmovdiri \-mmovdir64b \-mavx512vpopcntdq 
1279 \&\-mavx5124fmaps  \-mavx512vnni  \-mavx5124vnniw  \-mprfchw  \-mrdpid 
1280 \&\-mrdseed  \-msgx 
1281 \&\-mms\-bitfields  \-mno\-align\-stringops  \-minline\-all\-stringops 
1282 \&\-minline\-stringops\-dynamically  \-mstringop\-strategy=\fR\fIalg\fR 
1283 \&\fB\-mmemcpy\-strategy=\fR\fIstrategy\fR  \fB\-mmemset\-strategy=\fR\fIstrategy\fR 
1284 \&\fB\-mpush\-args  \-maccumulate\-outgoing\-args  \-m128bit\-long\-double 
1285 \&\-m96bit\-long\-double  \-mlong\-double\-64  \-mlong\-double\-80  \-mlong\-double\-128 
1286 \&\-mregparm=\fR\fInum\fR  \fB\-msseregparm 
1287 \&\-mveclibabi=\fR\fItype\fR  \fB\-mvect8\-ret\-in\-mem 
1288 \&\-mpc32  \-mpc64  \-mpc80  \-mstackrealign 
1289 \&\-momit\-leaf\-frame\-pointer  \-mno\-red\-zone  \-mno\-tls\-direct\-seg\-refs 
1290 \&\-mcmodel=\fR\fIcode-model\fR  \fB\-mabi=\fR\fIname\fR  \fB\-maddress\-mode=\fR\fImode\fR 
1291 \&\fB\-m32  \-m64  \-mx32  \-m16  \-miamcu  \-mlarge\-data\-threshold=\fR\fInum\fR 
1292 \&\fB\-msse2avx  \-mfentry  \-mrecord\-mcount  \-mnop\-mcount  \-m8bit\-idiv 
1293 \&\-mavx256\-split\-unaligned\-load  \-mavx256\-split\-unaligned\-store 
1294 \&\-malign\-data=\fR\fItype\fR  \fB\-mstack\-protector\-guard=\fR\fIguard\fR 
1295 \&\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR 
1296 \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR 
1297 \&\fB\-mstack\-protector\-guard\-symbol=\fR\fIsymbol\fR \fB\-mmitigate\-rop 
1298 \&\-mgeneral\-regs\-only \-mcall\-ms2sysv\-xlogues 
1299 \&\-mindirect\-branch=\fR\fIchoice\fR \fB\-mfunction\-return=\fR\fIchoice\fR 
1300 \&\fB\-mindirect\-branch\-register\fR
1301 .Sp
1302 \&\fIx86 Windows Options\fR
1303 \&\fB\-mconsole  \-mcygwin  \-mno\-cygwin  \-mdll 
1304 \&\-mnop\-fun\-dllimport  \-mthread 
1305 \&\-municode  \-mwin32  \-mwindows  \-fno\-set\-stack\-executable\fR
1306 .Sp
1307 \&\fIXstormy16 Options\fR
1308 \&\fB\-msim\fR
1309 .Sp
1310 \&\fIXtensa Options\fR
1311 \&\fB\-mconst16  \-mno\-const16 
1312 \&\-mfused\-madd  \-mno\-fused\-madd 
1313 \&\-mforce\-no\-pic 
1314 \&\-mserialize\-volatile  \-mno\-serialize\-volatile 
1315 \&\-mtext\-section\-literals  \-mno\-text\-section\-literals 
1316 \&\-mauto\-litpools  \-mno\-auto\-litpools 
1317 \&\-mtarget\-align  \-mno\-target\-align 
1318 \&\-mlongcalls  \-mno\-longcalls\fR
1319 .Sp
1320 \&\fIzSeries Options\fR
1321 See S/390 and zSeries Options.
1322 .SS "Options Controlling the Kind of Output"
1323 .IX Subsection "Options Controlling the Kind of Output"
1324 Compilation can involve up to four stages: preprocessing, compilation
1325 proper, assembly and linking, always in that order.  \s-1GCC\s0 is capable of
1326 preprocessing and compiling several files either into several
1327 assembler input files, or into one assembler input file; then each
1328 assembler input file produces an object file, and linking combines all
1329 the object files (those newly compiled, and those specified as input)
1330 into an executable file.
1331 .PP
1332 For any given input file, the file name suffix determines what kind of
1333 compilation is done:
1334 .IP "\fIfile\fR\fB.c\fR" 4
1335 .IX Item "file.c"
1336 C source code that must be preprocessed.
1337 .IP "\fIfile\fR\fB.i\fR" 4
1338 .IX Item "file.i"
1339 C source code that should not be preprocessed.
1340 .IP "\fIfile\fR\fB.ii\fR" 4
1341 .IX Item "file.ii"
1342 \&\*(C+ source code that should not be preprocessed.
1343 .IP "\fIfile\fR\fB.m\fR" 4
1344 .IX Item "file.m"
1345 Objective-C source code.  Note that you must link with the \fIlibobjc\fR
1346 library to make an Objective-C program work.
1347 .IP "\fIfile\fR\fB.mi\fR" 4
1348 .IX Item "file.mi"
1349 Objective-C source code that should not be preprocessed.
1350 .IP "\fIfile\fR\fB.mm\fR" 4
1351 .IX Item "file.mm"
1352 .PD 0
1353 .IP "\fIfile\fR\fB.M\fR" 4
1354 .IX Item "file.M"
1355 .PD
1356 Objective\-\*(C+ source code.  Note that you must link with the \fIlibobjc\fR
1357 library to make an Objective\-\*(C+ program work.  Note that \fB.M\fR refers
1358 to a literal capital M.
1359 .IP "\fIfile\fR\fB.mii\fR" 4
1360 .IX Item "file.mii"
1361 Objective\-\*(C+ source code that should not be preprocessed.
1362 .IP "\fIfile\fR\fB.h\fR" 4
1363 .IX Item "file.h"
1364 C, \*(C+, Objective-C or Objective\-\*(C+ header file to be turned into a
1365 precompiled header (default), or C, \*(C+ header file to be turned into an
1366 Ada spec (via the \fB\-fdump\-ada\-spec\fR switch).
1367 .IP "\fIfile\fR\fB.cc\fR" 4
1368 .IX Item "file.cc"
1369 .PD 0
1370 .IP "\fIfile\fR\fB.cp\fR" 4
1371 .IX Item "file.cp"
1372 .IP "\fIfile\fR\fB.cxx\fR" 4
1373 .IX Item "file.cxx"
1374 .IP "\fIfile\fR\fB.cpp\fR" 4
1375 .IX Item "file.cpp"
1376 .IP "\fIfile\fR\fB.CPP\fR" 4
1377 .IX Item "file.CPP"
1378 .IP "\fIfile\fR\fB.c++\fR" 4
1379 .IX Item "file.c++"
1380 .IP "\fIfile\fR\fB.C\fR" 4
1381 .IX Item "file.C"
1382 .PD
1383 \&\*(C+ source code that must be preprocessed.  Note that in \fB.cxx\fR,
1384 the last two letters must both be literally \fBx\fR.  Likewise,
1385 \&\fB.C\fR refers to a literal capital C.
1386 .IP "\fIfile\fR\fB.mm\fR" 4
1387 .IX Item "file.mm"
1388 .PD 0
1389 .IP "\fIfile\fR\fB.M\fR" 4
1390 .IX Item "file.M"
1391 .PD
1392 Objective\-\*(C+ source code that must be preprocessed.
1393 .IP "\fIfile\fR\fB.mii\fR" 4
1394 .IX Item "file.mii"
1395 Objective\-\*(C+ source code that should not be preprocessed.
1396 .IP "\fIfile\fR\fB.hh\fR" 4
1397 .IX Item "file.hh"
1398 .PD 0
1399 .IP "\fIfile\fR\fB.H\fR" 4
1400 .IX Item "file.H"
1401 .IP "\fIfile\fR\fB.hp\fR" 4
1402 .IX Item "file.hp"
1403 .IP "\fIfile\fR\fB.hxx\fR" 4
1404 .IX Item "file.hxx"
1405 .IP "\fIfile\fR\fB.hpp\fR" 4
1406 .IX Item "file.hpp"
1407 .IP "\fIfile\fR\fB.HPP\fR" 4
1408 .IX Item "file.HPP"
1409 .IP "\fIfile\fR\fB.h++\fR" 4
1410 .IX Item "file.h++"
1411 .IP "\fIfile\fR\fB.tcc\fR" 4
1412 .IX Item "file.tcc"
1413 .PD
1414 \&\*(C+ header file to be turned into a precompiled header or Ada spec.
1415 .IP "\fIfile\fR\fB.f\fR" 4
1416 .IX Item "file.f"
1417 .PD 0
1418 .IP "\fIfile\fR\fB.for\fR" 4
1419 .IX Item "file.for"
1420 .IP "\fIfile\fR\fB.ftn\fR" 4
1421 .IX Item "file.ftn"
1422 .PD
1423 Fixed form Fortran source code that should not be preprocessed.
1424 .IP "\fIfile\fR\fB.F\fR" 4
1425 .IX Item "file.F"
1426 .PD 0
1427 .IP "\fIfile\fR\fB.FOR\fR" 4
1428 .IX Item "file.FOR"
1429 .IP "\fIfile\fR\fB.fpp\fR" 4
1430 .IX Item "file.fpp"
1431 .IP "\fIfile\fR\fB.FPP\fR" 4
1432 .IX Item "file.FPP"
1433 .IP "\fIfile\fR\fB.FTN\fR" 4
1434 .IX Item "file.FTN"
1435 .PD
1436 Fixed form Fortran source code that must be preprocessed (with the traditional
1437 preprocessor).
1438 .IP "\fIfile\fR\fB.f90\fR" 4
1439 .IX Item "file.f90"
1440 .PD 0
1441 .IP "\fIfile\fR\fB.f95\fR" 4
1442 .IX Item "file.f95"
1443 .IP "\fIfile\fR\fB.f03\fR" 4
1444 .IX Item "file.f03"
1445 .IP "\fIfile\fR\fB.f08\fR" 4
1446 .IX Item "file.f08"
1447 .PD
1448 Free form Fortran source code that should not be preprocessed.
1449 .IP "\fIfile\fR\fB.F90\fR" 4
1450 .IX Item "file.F90"
1451 .PD 0
1452 .IP "\fIfile\fR\fB.F95\fR" 4
1453 .IX Item "file.F95"
1454 .IP "\fIfile\fR\fB.F03\fR" 4
1455 .IX Item "file.F03"
1456 .IP "\fIfile\fR\fB.F08\fR" 4
1457 .IX Item "file.F08"
1458 .PD
1459 Free form Fortran source code that must be preprocessed (with the
1460 traditional preprocessor).
1461 .IP "\fIfile\fR\fB.go\fR" 4
1462 .IX Item "file.go"
1463 Go source code.
1464 .IP "\fIfile\fR\fB.brig\fR" 4
1465 .IX Item "file.brig"
1466 \&\s-1BRIG\s0 files (binary representation of \s-1HSAIL\s0).
1467 .IP "\fIfile\fR\fB.ads\fR" 4
1468 .IX Item "file.ads"
1469 Ada source code file that contains a library unit declaration (a
1470 declaration of a package, subprogram, or generic, or a generic
1471 instantiation), or a library unit renaming declaration (a package,
1472 generic, or subprogram renaming declaration).  Such files are also
1473 called \fIspecs\fR.
1474 .IP "\fIfile\fR\fB.adb\fR" 4
1475 .IX Item "file.adb"
1476 Ada source code file containing a library unit body (a subprogram or
1477 package body).  Such files are also called \fIbodies\fR.
1478 .IP "\fIfile\fR\fB.s\fR" 4
1479 .IX Item "file.s"
1480 Assembler code.
1481 .IP "\fIfile\fR\fB.S\fR" 4
1482 .IX Item "file.S"
1483 .PD 0
1484 .IP "\fIfile\fR\fB.sx\fR" 4
1485 .IX Item "file.sx"
1486 .PD
1487 Assembler code that must be preprocessed.
1488 .IP "\fIother\fR" 4
1489 .IX Item "other"
1490 An object file to be fed straight into linking.
1491 Any file name with no recognized suffix is treated this way.
1492 .PP
1493 You can specify the input language explicitly with the \fB\-x\fR option:
1494 .IP "\fB\-x\fR \fIlanguage\fR" 4
1495 .IX Item "-x language"
1496 Specify explicitly the \fIlanguage\fR for the following input files
1497 (rather than letting the compiler choose a default based on the file
1498 name suffix).  This option applies to all following input files until
1499 the next \fB\-x\fR option.  Possible values for \fIlanguage\fR are:
1500 .Sp
1501 .Vb 9
1502 \&        c  c\-header  cpp\-output
1503 \&        c++  c++\-header  c++\-cpp\-output
1504 \&        objective\-c  objective\-c\-header  objective\-c\-cpp\-output
1505 \&        objective\-c++ objective\-c++\-header objective\-c++\-cpp\-output
1506 \&        assembler  assembler\-with\-cpp
1507 \&        ada
1508 \&        f77  f77\-cpp\-input f95  f95\-cpp\-input
1509 \&        go
1510 \&        brig
1511 .Ve
1512 .IP "\fB\-x none\fR" 4
1513 .IX Item "-x none"
1514 Turn off any specification of a language, so that subsequent files are
1515 handled according to their file name suffixes (as they are if \fB\-x\fR
1516 has not been used at all).
1517 .PP
1518 If you only want some of the stages of compilation, you can use
1519 \&\fB\-x\fR (or filename suffixes) to tell \fBgcc\fR where to start, and
1520 one of the options \fB\-c\fR, \fB\-S\fR, or \fB\-E\fR to say where
1521 \&\fBgcc\fR is to stop.  Note that some combinations (for example,
1522 \&\fB\-x cpp-output \-E\fR) instruct \fBgcc\fR to do nothing at all.
1523 .IP "\fB\-c\fR" 4
1524 .IX Item "-c"
1525 Compile or assemble the source files, but do not link.  The linking
1526 stage simply is not done.  The ultimate output is in the form of an
1527 object file for each source file.
1528 .Sp
1529 By default, the object file name for a source file is made by replacing
1530 the suffix \fB.c\fR, \fB.i\fR, \fB.s\fR, etc., with \fB.o\fR.
1531 .Sp
1532 Unrecognized input files, not requiring compilation or assembly, are
1533 ignored.
1534 .IP "\fB\-S\fR" 4
1535 .IX Item "-S"
1536 Stop after the stage of compilation proper; do not assemble.  The output
1537 is in the form of an assembler code file for each non-assembler input
1538 file specified.
1539 .Sp
1540 By default, the assembler file name for a source file is made by
1541 replacing the suffix \fB.c\fR, \fB.i\fR, etc., with \fB.s\fR.
1542 .Sp
1543 Input files that don't require compilation are ignored.
1544 .IP "\fB\-E\fR" 4
1545 .IX Item "-E"
1546 Stop after the preprocessing stage; do not run the compiler proper.  The
1547 output is in the form of preprocessed source code, which is sent to the
1548 standard output.
1549 .Sp
1550 Input files that don't require preprocessing are ignored.
1551 .IP "\fB\-o\fR \fIfile\fR" 4
1552 .IX Item "-o file"
1553 Place output in file \fIfile\fR.  This applies to whatever
1554 sort of output is being produced, whether it be an executable file,
1555 an object file, an assembler file or preprocessed C code.
1556 .Sp
1557 If \fB\-o\fR is not specified, the default is to put an executable
1558 file in \fIa.out\fR, the object file for
1559 \&\fI\fIsource\fI.\fIsuffix\fI\fR in \fI\fIsource\fI.o\fR, its
1560 assembler file in \fI\fIsource\fI.s\fR, a precompiled header file in
1561 \&\fI\fIsource\fI.\fIsuffix\fI.gch\fR, and all preprocessed C source on
1562 standard output.
1563 .IP "\fB\-v\fR" 4
1564 .IX Item "-v"
1565 Print (on standard error output) the commands executed to run the stages
1566 of compilation.  Also print the version number of the compiler driver
1567 program and of the preprocessor and the compiler proper.
1568 .IP "\fB\-###\fR" 4
1569 .IX Item "-###"
1570 Like \fB\-v\fR except the commands are not executed and arguments
1571 are quoted unless they contain only alphanumeric characters or \f(CW\*(C`./\-_\*(C'\fR.
1572 This is useful for shell scripts to capture the driver-generated command lines.
1573 .IP "\fB\-\-help\fR" 4
1574 .IX Item "--help"
1575 Print (on the standard output) a description of the command-line options
1576 understood by \fBgcc\fR.  If the \fB\-v\fR option is also specified
1577 then \fB\-\-help\fR is also passed on to the various processes
1578 invoked by \fBgcc\fR, so that they can display the command-line options
1579 they accept.  If the \fB\-Wextra\fR option has also been specified
1580 (prior to the \fB\-\-help\fR option), then command-line options that
1581 have no documentation associated with them are also displayed.
1582 .IP "\fB\-\-target\-help\fR" 4
1583 .IX Item "--target-help"
1584 Print (on the standard output) a description of target-specific command-line
1585 options for each tool.  For some targets extra target-specific
1586 information may also be printed.
1587 .IP "\fB\-\-help={\fR\fIclass\fR|[\fB^\fR]\fIqualifier\fR\fB}\fR[\fB,...\fR]" 4
1588 .IX Item "--help={class|[^]qualifier}[,...]"
1589 Print (on the standard output) a description of the command-line
1590 options understood by the compiler that fit into all specified classes
1591 and qualifiers.  These are the supported classes:
1592 .RS 4
1593 .IP "\fBoptimizers\fR" 4
1594 .IX Item "optimizers"
1595 Display all of the optimization options supported by the
1596 compiler.
1597 .IP "\fBwarnings\fR" 4
1598 .IX Item "warnings"
1599 Display all of the options controlling warning messages
1600 produced by the compiler.
1601 .IP "\fBtarget\fR" 4
1602 .IX Item "target"
1603 Display target-specific options.  Unlike the
1604 \&\fB\-\-target\-help\fR option however, target-specific options of the
1605 linker and assembler are not displayed.  This is because those
1606 tools do not currently support the extended \fB\-\-help=\fR syntax.
1607 .IP "\fBparams\fR" 4
1608 .IX Item "params"
1609 Display the values recognized by the \fB\-\-param\fR
1610 option.
1611 .IP "\fIlanguage\fR" 4
1612 .IX Item "language"
1613 Display the options supported for \fIlanguage\fR, where
1614 \&\fIlanguage\fR is the name of one of the languages supported in this
1615 version of \s-1GCC.\s0
1616 .IP "\fBcommon\fR" 4
1617 .IX Item "common"
1618 Display the options that are common to all languages.
1619 .RE
1620 .RS 4
1621 .Sp
1622 These are the supported qualifiers:
1623 .IP "\fBundocumented\fR" 4
1624 .IX Item "undocumented"
1625 Display only those options that are undocumented.
1626 .IP "\fBjoined\fR" 4
1627 .IX Item "joined"
1628 Display options taking an argument that appears after an equal
1629 sign in the same continuous piece of text, such as:
1630 \&\fB\-\-help=target\fR.
1631 .IP "\fBseparate\fR" 4
1632 .IX Item "separate"
1633 Display options taking an argument that appears as a separate word
1634 following the original option, such as: \fB\-o output-file\fR.
1635 .RE
1636 .RS 4
1637 .Sp
1638 Thus for example to display all the undocumented target-specific
1639 switches supported by the compiler, use:
1640 .Sp
1641 .Vb 1
1642 \&        \-\-help=target,undocumented
1643 .Ve
1644 .Sp
1645 The sense of a qualifier can be inverted by prefixing it with the
1646 \&\fB^\fR character, so for example to display all binary warning
1647 options (i.e., ones that are either on or off and that do not take an
1648 argument) that have a description, use:
1649 .Sp
1650 .Vb 1
1651 \&        \-\-help=warnings,^joined,^undocumented
1652 .Ve
1653 .Sp
1654 The argument to \fB\-\-help=\fR should not consist solely of inverted
1655 qualifiers.
1656 .Sp
1657 Combining several classes is possible, although this usually
1658 restricts the output so much that there is nothing to display.  One
1659 case where it does work, however, is when one of the classes is
1660 \&\fItarget\fR.  For example, to display all the target-specific
1661 optimization options, use:
1662 .Sp
1663 .Vb 1
1664 \&        \-\-help=target,optimizers
1665 .Ve
1666 .Sp
1667 The \fB\-\-help=\fR option can be repeated on the command line.  Each
1668 successive use displays its requested class of options, skipping
1669 those that have already been displayed.
1670 .Sp
1671 If the \fB\-Q\fR option appears on the command line before the
1672 \&\fB\-\-help=\fR option, then the descriptive text displayed by
1673 \&\fB\-\-help=\fR is changed.  Instead of describing the displayed
1674 options, an indication is given as to whether the option is enabled,
1675 disabled or set to a specific value (assuming that the compiler
1676 knows this at the point where the \fB\-\-help=\fR option is used).
1677 .Sp
1678 Here is a truncated example from the \s-1ARM\s0 port of \fBgcc\fR:
1679 .Sp
1680 .Vb 5
1681 \&          % gcc \-Q \-mabi=2 \-\-help=target \-c
1682 \&          The following options are target specific:
1683 \&          \-mabi=                                2
1684 \&          \-mabort\-on\-noreturn                   [disabled]
1685 \&          \-mapcs                                [disabled]
1686 .Ve
1687 .Sp
1688 The output is sensitive to the effects of previous command-line
1689 options, so for example it is possible to find out which optimizations
1690 are enabled at \fB\-O2\fR by using:
1691 .Sp
1692 .Vb 1
1693 \&        \-Q \-O2 \-\-help=optimizers
1694 .Ve
1695 .Sp
1696 Alternatively you can discover which binary optimizations are enabled
1697 by \fB\-O3\fR by using:
1698 .Sp
1699 .Vb 3
1700 \&        gcc \-c \-Q \-O3 \-\-help=optimizers > /tmp/O3\-opts
1701 \&        gcc \-c \-Q \-O2 \-\-help=optimizers > /tmp/O2\-opts
1702 \&        diff /tmp/O2\-opts /tmp/O3\-opts | grep enabled
1703 .Ve
1704 .RE
1705 .IP "\fB\-\-version\fR" 4
1706 .IX Item "--version"
1707 Display the version number and copyrights of the invoked \s-1GCC.\s0
1708 .IP "\fB\-pass\-exit\-codes\fR" 4
1709 .IX Item "-pass-exit-codes"
1710 Normally the \fBgcc\fR program exits with the code of 1 if any
1711 phase of the compiler returns a non-success return code.  If you specify
1712 \&\fB\-pass\-exit\-codes\fR, the \fBgcc\fR program instead returns with
1713 the numerically highest error produced by any phase returning an error
1714 indication.  The C, \*(C+, and Fortran front ends return 4 if an internal
1715 compiler error is encountered.
1716 .IP "\fB\-pipe\fR" 4
1717 .IX Item "-pipe"
1718 Use pipes rather than temporary files for communication between the
1719 various stages of compilation.  This fails to work on some systems where
1720 the assembler is unable to read from a pipe; but the \s-1GNU\s0 assembler has
1721 no trouble.
1722 .IP "\fB\-specs=\fR\fIfile\fR" 4
1723 .IX Item "-specs=file"
1724 Process \fIfile\fR after the compiler reads in the standard \fIspecs\fR
1725 file, in order to override the defaults which the \fBgcc\fR driver
1726 program uses when determining what switches to pass to \fBcc1\fR,
1727 \&\fBcc1plus\fR, \fBas\fR, \fBld\fR, etc.  More than one
1728 \&\fB\-specs=\fR\fIfile\fR can be specified on the command line, and they
1729 are processed in order, from left to right.
1730 .IP "\fB\-wrapper\fR" 4
1731 .IX Item "-wrapper"
1732 Invoke all subcommands under a wrapper program.  The name of the
1733 wrapper program and its parameters are passed as a comma separated
1734 list.
1735 .Sp
1736 .Vb 1
1737 \&        gcc \-c t.c \-wrapper gdb,\-\-args
1738 .Ve
1739 .Sp
1740 This invokes all subprograms of \fBgcc\fR under
1741 \&\fBgdb \-\-args\fR, thus the invocation of \fBcc1\fR is
1742 \&\fBgdb \-\-args cc1 ...\fR.
1743 .IP "\fB\-ffile\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR" 4
1744 .IX Item "-ffile-prefix-map=old=new"
1745 When compiling files residing in directory \fI\fIold\fI\fR, record
1746 any references to them in the result of the compilation as if the
1747 files resided in directory \fI\fInew\fI\fR instead.  Specifying this
1748 option is equivalent to specifying all the individual
1749 \&\fB\-f*\-prefix\-map\fR options.  This can be used to make reproducible
1750 builds that are location independent.  See also
1751 \&\fB\-fmacro\-prefix\-map\fR and \fB\-fdebug\-prefix\-map\fR.
1752 .IP "\fB\-fplugin=\fR\fIname\fR\fB.so\fR" 4
1753 .IX Item "-fplugin=name.so"
1754 Load the plugin code in file \fIname\fR.so, assumed to be a
1755 shared object to be dlopen'd by the compiler.  The base name of
1756 the shared object file is used to identify the plugin for the
1757 purposes of argument parsing (See
1758 \&\fB\-fplugin\-arg\-\fR\fIname\fR\fB\-\fR\fIkey\fR\fB=\fR\fIvalue\fR below).
1759 Each plugin should define the callback functions specified in the
1760 Plugins \s-1API.\s0
1761 .IP "\fB\-fplugin\-arg\-\fR\fIname\fR\fB\-\fR\fIkey\fR\fB=\fR\fIvalue\fR" 4
1762 .IX Item "-fplugin-arg-name-key=value"
1763 Define an argument called \fIkey\fR with a value of \fIvalue\fR
1764 for the plugin called \fIname\fR.
1765 .IP "\fB\-fdump\-ada\-spec\fR[\fB\-slim\fR]" 4
1766 .IX Item "-fdump-ada-spec[-slim]"
1767 For C and \*(C+ source and include files, generate corresponding Ada specs.
1768 .IP "\fB\-fada\-spec\-parent=\fR\fIunit\fR" 4
1769 .IX Item "-fada-spec-parent=unit"
1770 In conjunction with \fB\-fdump\-ada\-spec\fR[\fB\-slim\fR] above, generate
1771 Ada specs as child units of parent \fIunit\fR.
1772 .IP "\fB\-fdump\-go\-spec=\fR\fIfile\fR" 4
1773 .IX Item "-fdump-go-spec=file"
1774 For input files in any language, generate corresponding Go
1775 declarations in \fIfile\fR.  This generates Go \f(CW\*(C`const\*(C'\fR,
1776 \&\f(CW\*(C`type\*(C'\fR, \f(CW\*(C`var\*(C'\fR, and \f(CW\*(C`func\*(C'\fR declarations which may be a
1777 useful way to start writing a Go interface to code written in some
1778 other language.
1779 .IP "\fB@\fR\fIfile\fR" 4
1780 .IX Item "@file"
1781 Read command-line options from \fIfile\fR.  The options read are
1782 inserted in place of the original @\fIfile\fR option.  If \fIfile\fR
1783 does not exist, or cannot be read, then the option will be treated
1784 literally, and not removed.
1785 .Sp
1786 Options in \fIfile\fR are separated by whitespace.  A whitespace
1787 character may be included in an option by surrounding the entire
1788 option in either single or double quotes.  Any character (including a
1789 backslash) may be included by prefixing the character to be included
1790 with a backslash.  The \fIfile\fR may itself contain additional
1791 @\fIfile\fR options; any such options will be processed recursively.
1792 .SS "Compiling \*(C+ Programs"
1793 .IX Subsection "Compiling Programs"
1794 \&\*(C+ source files conventionally use one of the suffixes \fB.C\fR,
1795 \&\fB.cc\fR, \fB.cpp\fR, \fB.CPP\fR, \fB.c++\fR, \fB.cp\fR, or
1796 \&\fB.cxx\fR; \*(C+ header files often use \fB.hh\fR, \fB.hpp\fR,
1797 \&\fB.H\fR, or (for shared template code) \fB.tcc\fR; and
1798 preprocessed \*(C+ files use the suffix \fB.ii\fR.  \s-1GCC\s0 recognizes
1799 files with these names and compiles them as \*(C+ programs even if you
1800 call the compiler the same way as for compiling C programs (usually
1801 with the name \fBgcc\fR).
1802 .PP
1803 However, the use of \fBgcc\fR does not add the \*(C+ library.
1804 \&\fBg++\fR is a program that calls \s-1GCC\s0 and automatically specifies linking
1805 against the \*(C+ library.  It treats \fB.c\fR,
1806 \&\fB.h\fR and \fB.i\fR files as \*(C+ source files instead of C source
1807 files unless \fB\-x\fR is used.  This program is also useful when
1808 precompiling a C header file with a \fB.h\fR extension for use in \*(C+
1809 compilations.  On many systems, \fBg++\fR is also installed with
1810 the name \fBc++\fR.
1811 .PP
1812 When you compile \*(C+ programs, you may specify many of the same
1813 command-line options that you use for compiling programs in any
1814 language; or command-line options meaningful for C and related
1815 languages; or options that are meaningful only for \*(C+ programs.
1816 .SS "Options Controlling C Dialect"
1817 .IX Subsection "Options Controlling C Dialect"
1818 The following options control the dialect of C (or languages derived
1819 from C, such as \*(C+, Objective-C and Objective\-\*(C+) that the compiler
1820 accepts:
1821 .IP "\fB\-ansi\fR" 4
1822 .IX Item "-ansi"
1823 In C mode, this is equivalent to \fB\-std=c90\fR. In \*(C+ mode, it is
1824 equivalent to \fB\-std=c++98\fR.
1825 .Sp
1826 This turns off certain features of \s-1GCC\s0 that are incompatible with \s-1ISO
1827 C90\s0 (when compiling C code), or of standard \*(C+ (when compiling \*(C+ code),
1828 such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, and
1829 predefined macros such as \f(CW\*(C`unix\*(C'\fR and \f(CW\*(C`vax\*(C'\fR that identify the
1830 type of system you are using.  It also enables the undesirable and
1831 rarely used \s-1ISO\s0 trigraph feature.  For the C compiler,
1832 it disables recognition of \*(C+ style \fB//\fR comments as well as
1833 the \f(CW\*(C`inline\*(C'\fR keyword.
1834 .Sp
1835 The alternate keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_extension_\|_\*(C'\fR,
1836 \&\f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR continue to work despite
1837 \&\fB\-ansi\fR.  You would not want to use them in an \s-1ISO C\s0 program, of
1838 course, but it is useful to put them in header files that might be included
1839 in compilations done with \fB\-ansi\fR.  Alternate predefined macros
1840 such as \f(CW\*(C`_\|_unix_\|_\*(C'\fR and \f(CW\*(C`_\|_vax_\|_\*(C'\fR are also available, with or
1841 without \fB\-ansi\fR.
1842 .Sp
1843 The \fB\-ansi\fR option does not cause non-ISO programs to be
1844 rejected gratuitously.  For that, \fB\-Wpedantic\fR is required in
1845 addition to \fB\-ansi\fR.
1846 .Sp
1847 The macro \f(CW\*(C`_\|_STRICT_ANSI_\|_\*(C'\fR is predefined when the \fB\-ansi\fR
1848 option is used.  Some header files may notice this macro and refrain
1849 from declaring certain functions or defining certain macros that the
1850 \&\s-1ISO\s0 standard doesn't call for; this is to avoid interfering with any
1851 programs that might use these names for other things.
1852 .Sp
1853 Functions that are normally built in but do not have semantics
1854 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
1855 functions when \fB\-ansi\fR is used.
1856 .IP "\fB\-std=\fR" 4
1857 .IX Item "-std="
1858 Determine the language standard.   This option
1859 is currently only supported when compiling C or \*(C+.
1860 .Sp
1861 The compiler can accept several base standards, such as \fBc90\fR or
1862 \&\fBc++98\fR, and \s-1GNU\s0 dialects of those standards, such as
1863 \&\fBgnu90\fR or \fBgnu++98\fR.  When a base standard is specified, the
1864 compiler accepts all programs following that standard plus those
1865 using \s-1GNU\s0 extensions that do not contradict it.  For example,
1866 \&\fB\-std=c90\fR turns off certain features of \s-1GCC\s0 that are
1867 incompatible with \s-1ISO C90,\s0 such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR
1868 keywords, but not other \s-1GNU\s0 extensions that do not have a meaning in
1869 \&\s-1ISO C90,\s0 such as omitting the middle term of a \f(CW\*(C`?:\*(C'\fR
1870 expression. On the other hand, when a \s-1GNU\s0 dialect of a standard is
1871 specified, all features supported by the compiler are enabled, even when
1872 those features change the meaning of the base standard.  As a result, some
1873 strict-conforming programs may be rejected.  The particular standard
1874 is used by \fB\-Wpedantic\fR to identify which features are \s-1GNU\s0
1875 extensions given that version of the standard. For example
1876 \&\fB\-std=gnu90 \-Wpedantic\fR warns about \*(C+ style \fB//\fR
1877 comments, while \fB\-std=gnu99 \-Wpedantic\fR does not.
1878 .Sp
1879 A value for this option must be provided; possible values are
1880 .RS 4
1881 .IP "\fBc90\fR" 4
1882 .IX Item "c90"
1883 .PD 0
1884 .IP "\fBc89\fR" 4
1885 .IX Item "c89"
1886 .IP "\fBiso9899:1990\fR" 4
1887 .IX Item "iso9899:1990"
1888 .PD
1889 Support all \s-1ISO C90\s0 programs (certain \s-1GNU\s0 extensions that conflict
1890 with \s-1ISO C90\s0 are disabled). Same as \fB\-ansi\fR for C code.
1891 .IP "\fBiso9899:199409\fR" 4
1892 .IX Item "iso9899:199409"
1893 \&\s-1ISO C90\s0 as modified in amendment 1.
1894 .IP "\fBc99\fR" 4
1895 .IX Item "c99"
1896 .PD 0
1897 .IP "\fBc9x\fR" 4
1898 .IX Item "c9x"
1899 .IP "\fBiso9899:1999\fR" 4
1900 .IX Item "iso9899:1999"
1901 .IP "\fBiso9899:199x\fR" 4
1902 .IX Item "iso9899:199x"
1903 .PD
1904 \&\s-1ISO C99.\s0  This standard is substantially completely supported, modulo
1905 bugs and floating-point issues
1906 (mainly but not entirely relating to optional C99 features from
1907 Annexes F and G).  See
1908 <\fBhttp://gcc.gnu.org/c99status.html\fR> for more information.  The
1909 names \fBc9x\fR and \fBiso9899:199x\fR are deprecated.
1910 .IP "\fBc11\fR" 4
1911 .IX Item "c11"
1912 .PD 0
1913 .IP "\fBc1x\fR" 4
1914 .IX Item "c1x"
1915 .IP "\fBiso9899:2011\fR" 4
1916 .IX Item "iso9899:2011"
1917 .PD
1918 \&\s-1ISO C11,\s0 the 2011 revision of the \s-1ISO C\s0 standard.  This standard is
1919 substantially completely supported, modulo bugs, floating-point issues
1920 (mainly but not entirely relating to optional C11 features from
1921 Annexes F and G) and the optional Annexes K (Bounds-checking
1922 interfaces) and L (Analyzability).  The name \fBc1x\fR is deprecated.
1923 .IP "\fBc17\fR" 4
1924 .IX Item "c17"
1925 .PD 0
1926 .IP "\fBc18\fR" 4
1927 .IX Item "c18"
1928 .IP "\fBiso9899:2017\fR" 4
1929 .IX Item "iso9899:2017"
1930 .IP "\fBiso9899:2018\fR" 4
1931 .IX Item "iso9899:2018"
1932 .PD
1933 \&\s-1ISO C17,\s0 the 2017 revision of the \s-1ISO C\s0 standard (expected to be
1934 published in 2018).  This standard is
1935 same as C11 except for corrections of defects (all of which are also
1936 applied with \fB\-std=c11\fR) and a new value of
1937 \&\f(CW\*(C`_\|_STDC_VERSION_\|_\*(C'\fR, and so is supported to the same extent as C11.
1938 .IP "\fBgnu90\fR" 4
1939 .IX Item "gnu90"
1940 .PD 0
1941 .IP "\fBgnu89\fR" 4
1942 .IX Item "gnu89"
1943 .PD
1944 \&\s-1GNU\s0 dialect of \s-1ISO C90\s0 (including some C99 features).
1945 .IP "\fBgnu99\fR" 4
1946 .IX Item "gnu99"
1947 .PD 0
1948 .IP "\fBgnu9x\fR" 4
1949 .IX Item "gnu9x"
1950 .PD
1951 \&\s-1GNU\s0 dialect of \s-1ISO C99.\s0  The name \fBgnu9x\fR is deprecated.
1952 .IP "\fBgnu11\fR" 4
1953 .IX Item "gnu11"
1954 .PD 0
1955 .IP "\fBgnu1x\fR" 4
1956 .IX Item "gnu1x"
1957 .PD
1958 \&\s-1GNU\s0 dialect of \s-1ISO C11.\s0
1959 The name \fBgnu1x\fR is deprecated.
1960 .IP "\fBgnu17\fR" 4
1961 .IX Item "gnu17"
1962 .PD 0
1963 .IP "\fBgnu18\fR" 4
1964 .IX Item "gnu18"
1965 .PD
1966 \&\s-1GNU\s0 dialect of \s-1ISO C17.\s0  This is the default for C code.
1967 .IP "\fBc++98\fR" 4
1968 .IX Item "c++98"
1969 .PD 0
1970 .IP "\fBc++03\fR" 4
1971 .IX Item "c++03"
1972 .PD
1973 The 1998 \s-1ISO \*(C+\s0 standard plus the 2003 technical corrigendum and some
1974 additional defect reports. Same as \fB\-ansi\fR for \*(C+ code.
1975 .IP "\fBgnu++98\fR" 4
1976 .IX Item "gnu++98"
1977 .PD 0
1978 .IP "\fBgnu++03\fR" 4
1979 .IX Item "gnu++03"
1980 .PD
1981 \&\s-1GNU\s0 dialect of \fB\-std=c++98\fR.
1982 .IP "\fBc++11\fR" 4
1983 .IX Item "c++11"
1984 .PD 0
1985 .IP "\fBc++0x\fR" 4
1986 .IX Item "c++0x"
1987 .PD
1988 The 2011 \s-1ISO \*(C+\s0 standard plus amendments.
1989 The name \fBc++0x\fR is deprecated.
1990 .IP "\fBgnu++11\fR" 4
1991 .IX Item "gnu++11"
1992 .PD 0
1993 .IP "\fBgnu++0x\fR" 4
1994 .IX Item "gnu++0x"
1995 .PD
1996 \&\s-1GNU\s0 dialect of \fB\-std=c++11\fR.
1997 The name \fBgnu++0x\fR is deprecated.
1998 .IP "\fBc++14\fR" 4
1999 .IX Item "c++14"
2000 .PD 0
2001 .IP "\fBc++1y\fR" 4
2002 .IX Item "c++1y"
2003 .PD
2004 The 2014 \s-1ISO \*(C+\s0 standard plus amendments.
2005 The name \fBc++1y\fR is deprecated.
2006 .IP "\fBgnu++14\fR" 4
2007 .IX Item "gnu++14"
2008 .PD 0
2009 .IP "\fBgnu++1y\fR" 4
2010 .IX Item "gnu++1y"
2011 .PD
2012 \&\s-1GNU\s0 dialect of \fB\-std=c++14\fR.
2013 This is the default for \*(C+ code.
2014 The name \fBgnu++1y\fR is deprecated.
2015 .IP "\fBc++17\fR" 4
2016 .IX Item "c++17"
2017 .PD 0
2018 .IP "\fBc++1z\fR" 4
2019 .IX Item "c++1z"
2020 .PD
2021 The 2017 \s-1ISO \*(C+\s0 standard plus amendments.
2022 The name \fBc++1z\fR is deprecated.
2023 .IP "\fBgnu++17\fR" 4
2024 .IX Item "gnu++17"
2025 .PD 0
2026 .IP "\fBgnu++1z\fR" 4
2027 .IX Item "gnu++1z"
2028 .PD
2029 \&\s-1GNU\s0 dialect of \fB\-std=c++17\fR.
2030 The name \fBgnu++1z\fR is deprecated.
2031 .IP "\fBc++2a\fR" 4
2032 .IX Item "c++2a"
2033 The next revision of the \s-1ISO \*(C+\s0 standard, tentatively planned for
2034 2020.  Support is highly experimental, and will almost certainly
2035 change in incompatible ways in future releases.
2036 .IP "\fBgnu++2a\fR" 4
2037 .IX Item "gnu++2a"
2038 \&\s-1GNU\s0 dialect of \fB\-std=c++2a\fR.  Support is highly experimental,
2039 and will almost certainly change in incompatible ways in future
2040 releases.
2041 .RE
2042 .RS 4
2043 .RE
2044 .IP "\fB\-fgnu89\-inline\fR" 4
2045 .IX Item "-fgnu89-inline"
2046 The option \fB\-fgnu89\-inline\fR tells \s-1GCC\s0 to use the traditional
2047 \&\s-1GNU\s0 semantics for \f(CW\*(C`inline\*(C'\fR functions when in C99 mode.
2048 .Sp
2049 Using this option is roughly equivalent to adding the
2050 \&\f(CW\*(C`gnu_inline\*(C'\fR function attribute to all inline functions.
2051 .Sp
2052 The option \fB\-fno\-gnu89\-inline\fR explicitly tells \s-1GCC\s0 to use the
2053 C99 semantics for \f(CW\*(C`inline\*(C'\fR when in C99 or gnu99 mode (i.e., it
2054 specifies the default behavior).
2055 This option is not supported in \fB\-std=c90\fR or
2056 \&\fB\-std=gnu90\fR mode.
2057 .Sp
2058 The preprocessor macros \f(CW\*(C`_\|_GNUC_GNU_INLINE_\|_\*(C'\fR and
2059 \&\f(CW\*(C`_\|_GNUC_STDC_INLINE_\|_\*(C'\fR may be used to check which semantics are
2060 in effect for \f(CW\*(C`inline\*(C'\fR functions.
2061 .IP "\fB\-fpermitted\-flt\-eval\-methods=\fR\fIstyle\fR" 4
2062 .IX Item "-fpermitted-flt-eval-methods=style"
2063 \&\s-1ISO/IEC TS 18661\-3\s0 defines new permissible values for
2064 \&\f(CW\*(C`FLT_EVAL_METHOD\*(C'\fR that indicate that operations and constants with
2065 a semantic type that is an interchange or extended format should be
2066 evaluated to the precision and range of that type.  These new values are
2067 a superset of those permitted under C99/C11, which does not specify the
2068 meaning of other positive values of \f(CW\*(C`FLT_EVAL_METHOD\*(C'\fR.  As such, code
2069 conforming to C11 may not have been written expecting the possibility of
2070 the new values.
2071 .Sp
2072 \&\fB\-fpermitted\-flt\-eval\-methods\fR specifies whether the compiler
2073 should allow only the values of \f(CW\*(C`FLT_EVAL_METHOD\*(C'\fR specified in C99/C11,
2074 or the extended set of values specified in \s-1ISO/IEC TS 18661\-3.\s0
2075 .Sp
2076 \&\fIstyle\fR is either \f(CW\*(C`c11\*(C'\fR or \f(CW\*(C`ts\-18661\-3\*(C'\fR as appropriate.
2077 .Sp
2078 The default when in a standards compliant mode (\fB\-std=c11\fR or similar)
2079 is \fB\-fpermitted\-flt\-eval\-methods=c11\fR.  The default when in a \s-1GNU\s0
2080 dialect (\fB\-std=gnu11\fR or similar) is
2081 \&\fB\-fpermitted\-flt\-eval\-methods=ts\-18661\-3\fR.
2082 .IP "\fB\-aux\-info\fR \fIfilename\fR" 4
2083 .IX Item "-aux-info filename"
2084 Output to the given filename prototyped declarations for all functions
2085 declared and/or defined in a translation unit, including those in header
2086 files.  This option is silently ignored in any language other than C.
2087 .Sp
2088 Besides declarations, the file indicates, in comments, the origin of
2089 each declaration (source file and line), whether the declaration was
2090 implicit, prototyped or unprototyped (\fBI\fR, \fBN\fR for new or
2091 \&\fBO\fR for old, respectively, in the first character after the line
2092 number and the colon), and whether it came from a declaration or a
2093 definition (\fBC\fR or \fBF\fR, respectively, in the following
2094 character).  In the case of function definitions, a K&R\-style list of
2095 arguments followed by their declarations is also provided, inside
2096 comments, after the declaration.
2097 .IP "\fB\-fallow\-parameterless\-variadic\-functions\fR" 4
2098 .IX Item "-fallow-parameterless-variadic-functions"
2099 Accept variadic functions without named parameters.
2100 .Sp
2101 Although it is possible to define such a function, this is not very
2102 useful as it is not possible to read the arguments.  This is only
2103 supported for C as this construct is allowed by \*(C+.
2104 .IP "\fB\-fno\-asm\fR" 4
2105 .IX Item "-fno-asm"
2106 Do not recognize \f(CW\*(C`asm\*(C'\fR, \f(CW\*(C`inline\*(C'\fR or \f(CW\*(C`typeof\*(C'\fR as a
2107 keyword, so that code can use these words as identifiers.  You can use
2108 the keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR
2109 instead.  \fB\-ansi\fR implies \fB\-fno\-asm\fR.
2110 .Sp
2111 In \*(C+, this switch only affects the \f(CW\*(C`typeof\*(C'\fR keyword, since
2112 \&\f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`inline\*(C'\fR are standard keywords.  You may want to
2113 use the \fB\-fno\-gnu\-keywords\fR flag instead, which has the same
2114 effect.  In C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this
2115 switch only affects the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, since
2116 \&\f(CW\*(C`inline\*(C'\fR is a standard keyword in \s-1ISO C99.\s0
2117 .IP "\fB\-fno\-builtin\fR" 4
2118 .IX Item "-fno-builtin"
2119 .PD 0
2120 .IP "\fB\-fno\-builtin\-\fR\fIfunction\fR" 4
2121 .IX Item "-fno-builtin-function"
2122 .PD
2123 Don't recognize built-in functions that do not begin with
2124 \&\fB_\|_builtin_\fR as prefix.
2125 .Sp
2126 \&\s-1GCC\s0 normally generates special code to handle certain built-in functions
2127 more efficiently; for instance, calls to \f(CW\*(C`alloca\*(C'\fR may become single
2128 instructions which adjust the stack directly, and calls to \f(CW\*(C`memcpy\*(C'\fR
2129 may become inline copy loops.  The resulting code is often both smaller
2130 and faster, but since the function calls no longer appear as such, you
2131 cannot set a breakpoint on those calls, nor can you change the behavior
2132 of the functions by linking with a different library.  In addition,
2133 when a function is recognized as a built-in function, \s-1GCC\s0 may use
2134 information about that function to warn about problems with calls to
2135 that function, or to generate more efficient code, even if the
2136 resulting code still contains calls to that function.  For example,
2137 warnings are given with \fB\-Wformat\fR for bad calls to
2138 \&\f(CW\*(C`printf\*(C'\fR when \f(CW\*(C`printf\*(C'\fR is built in and \f(CW\*(C`strlen\*(C'\fR is
2139 known not to modify global memory.
2140 .Sp
2141 With the \fB\-fno\-builtin\-\fR\fIfunction\fR option
2142 only the built-in function \fIfunction\fR is
2143 disabled.  \fIfunction\fR must not begin with \fB_\|_builtin_\fR.  If a
2144 function is named that is not built-in in this version of \s-1GCC,\s0 this
2145 option is ignored.  There is no corresponding
2146 \&\fB\-fbuiltin\-\fR\fIfunction\fR option; if you wish to enable
2147 built-in functions selectively when using \fB\-fno\-builtin\fR or
2148 \&\fB\-ffreestanding\fR, you may define macros such as:
2149 .Sp
2150 .Vb 2
2151 \&        #define abs(n)          _\|_builtin_abs ((n))
2152 \&        #define strcpy(d, s)    _\|_builtin_strcpy ((d), (s))
2153 .Ve
2154 .IP "\fB\-fgimple\fR" 4
2155 .IX Item "-fgimple"
2156 Enable parsing of function definitions marked with \f(CW\*(C`_\|_GIMPLE\*(C'\fR.
2157 This is an experimental feature that allows unit testing of \s-1GIMPLE\s0
2158 passes.
2159 .IP "\fB\-fhosted\fR" 4
2160 .IX Item "-fhosted"
2161 Assert that compilation targets a hosted environment.  This implies
2162 \&\fB\-fbuiltin\fR.  A hosted environment is one in which the
2163 entire standard library is available, and in which \f(CW\*(C`main\*(C'\fR has a return
2164 type of \f(CW\*(C`int\*(C'\fR.  Examples are nearly everything except a kernel.
2165 This is equivalent to \fB\-fno\-freestanding\fR.
2166 .IP "\fB\-ffreestanding\fR" 4
2167 .IX Item "-ffreestanding"
2168 Assert that compilation targets a freestanding environment.  This
2169 implies \fB\-fno\-builtin\fR.  A freestanding environment
2170 is one in which the standard library may not exist, and program startup may
2171 not necessarily be at \f(CW\*(C`main\*(C'\fR.  The most obvious example is an \s-1OS\s0 kernel.
2172 This is equivalent to \fB\-fno\-hosted\fR.
2173 .IP "\fB\-fopenacc\fR" 4
2174 .IX Item "-fopenacc"
2175 Enable handling of OpenACC directives \f(CW\*(C`#pragma acc\*(C'\fR in C/\*(C+ and
2176 \&\f(CW\*(C`!$acc\*(C'\fR in Fortran.  When \fB\-fopenacc\fR is specified, the
2177 compiler generates accelerated code according to the OpenACC Application
2178 Programming Interface v2.0 <\fBhttps://www.openacc.org\fR>.  This option
2179 implies \fB\-pthread\fR, and thus is only supported on targets that
2180 have support for \fB\-pthread\fR.
2181 .IP "\fB\-fopenacc\-dim=\fR\fIgeom\fR" 4
2182 .IX Item "-fopenacc-dim=geom"
2183 Specify default compute dimensions for parallel offload regions that do
2184 not explicitly specify.  The \fIgeom\fR value is a triple of
2185 \&':'\-separated sizes, in order 'gang', 'worker' and, 'vector'.  A size
2186 can be omitted, to use a target-specific default value.
2187 .IP "\fB\-fopenmp\fR" 4
2188 .IX Item "-fopenmp"
2189 Enable handling of OpenMP directives \f(CW\*(C`#pragma omp\*(C'\fR in C/\*(C+ and
2190 \&\f(CW\*(C`!$omp\*(C'\fR in Fortran.  When \fB\-fopenmp\fR is specified, the
2191 compiler generates parallel code according to the OpenMP Application
2192 Program Interface v4.5 <\fBhttp://www.openmp.org/\fR>.  This option
2193 implies \fB\-pthread\fR, and thus is only supported on targets that
2194 have support for \fB\-pthread\fR. \fB\-fopenmp\fR implies
2195 \&\fB\-fopenmp\-simd\fR.
2196 .IP "\fB\-fopenmp\-simd\fR" 4
2197 .IX Item "-fopenmp-simd"
2198 Enable handling of OpenMP's \s-1SIMD\s0 directives with \f(CW\*(C`#pragma omp\*(C'\fR
2199 in C/\*(C+ and \f(CW\*(C`!$omp\*(C'\fR in Fortran. Other OpenMP directives
2200 are ignored.
2201 .IP "\fB\-fgnu\-tm\fR" 4
2202 .IX Item "-fgnu-tm"
2203 When the option \fB\-fgnu\-tm\fR is specified, the compiler
2204 generates code for the Linux variant of Intel's current Transactional
2205 Memory \s-1ABI\s0 specification document (Revision 1.1, May 6 2009).  This is
2206 an experimental feature whose interface may change in future versions
2207 of \s-1GCC,\s0 as the official specification changes.  Please note that not
2208 all architectures are supported for this feature.
2209 .Sp
2210 For more information on \s-1GCC\s0's support for transactional memory,
2211 .Sp
2212 Note that the transactional memory feature is not supported with
2213 non-call exceptions (\fB\-fnon\-call\-exceptions\fR).
2214 .IP "\fB\-fms\-extensions\fR" 4
2215 .IX Item "-fms-extensions"
2216 Accept some non-standard constructs used in Microsoft header files.
2217 .Sp
2218 In \*(C+ code, this allows member names in structures to be similar
2219 to previous types declarations.
2220 .Sp
2221 .Vb 4
2222 \&        typedef int UOW;
2223 \&        struct ABC {
2224 \&          UOW UOW;
2225 \&        };
2226 .Ve
2227 .Sp
2228 Some cases of unnamed fields in structures and unions are only
2229 accepted with this option.
2230 .Sp
2231 Note that this option is off for all targets but x86 
2232 targets using ms-abi.
2233 .IP "\fB\-fplan9\-extensions\fR" 4
2234 .IX Item "-fplan9-extensions"
2235 Accept some non-standard constructs used in Plan 9 code.
2236 .Sp
2237 This enables \fB\-fms\-extensions\fR, permits passing pointers to
2238 structures with anonymous fields to functions that expect pointers to
2239 elements of the type of the field, and permits referring to anonymous
2240 fields declared using a typedef.    This is only
2241 supported for C, not \*(C+.
2242 .IP "\fB\-fcond\-mismatch\fR" 4
2243 .IX Item "-fcond-mismatch"
2244 Allow conditional expressions with mismatched types in the second and
2245 third arguments.  The value of such an expression is void.  This option
2246 is not supported for \*(C+.
2247 .IP "\fB\-flax\-vector\-conversions\fR" 4
2248 .IX Item "-flax-vector-conversions"
2249 Allow implicit conversions between vectors with differing numbers of
2250 elements and/or incompatible element types.  This option should not be
2251 used for new code.
2252 .IP "\fB\-funsigned\-char\fR" 4
2253 .IX Item "-funsigned-char"
2254 Let the type \f(CW\*(C`char\*(C'\fR be unsigned, like \f(CW\*(C`unsigned char\*(C'\fR.
2255 .Sp
2256 Each kind of machine has a default for what \f(CW\*(C`char\*(C'\fR should
2257 be.  It is either like \f(CW\*(C`unsigned char\*(C'\fR by default or like
2258 \&\f(CW\*(C`signed char\*(C'\fR by default.
2259 .Sp
2260 Ideally, a portable program should always use \f(CW\*(C`signed char\*(C'\fR or
2261 \&\f(CW\*(C`unsigned char\*(C'\fR when it depends on the signedness of an object.
2262 But many programs have been written to use plain \f(CW\*(C`char\*(C'\fR and
2263 expect it to be signed, or expect it to be unsigned, depending on the
2264 machines they were written for.  This option, and its inverse, let you
2265 make such a program work with the opposite default.
2266 .Sp
2267 The type \f(CW\*(C`char\*(C'\fR is always a distinct type from each of
2268 \&\f(CW\*(C`signed char\*(C'\fR or \f(CW\*(C`unsigned char\*(C'\fR, even though its behavior
2269 is always just like one of those two.
2270 .IP "\fB\-fsigned\-char\fR" 4
2271 .IX Item "-fsigned-char"
2272 Let the type \f(CW\*(C`char\*(C'\fR be signed, like \f(CW\*(C`signed char\*(C'\fR.
2273 .Sp
2274 Note that this is equivalent to \fB\-fno\-unsigned\-char\fR, which is
2275 the negative form of \fB\-funsigned\-char\fR.  Likewise, the option
2276 \&\fB\-fno\-signed\-char\fR is equivalent to \fB\-funsigned\-char\fR.
2277 .IP "\fB\-fsigned\-bitfields\fR" 4
2278 .IX Item "-fsigned-bitfields"
2279 .PD 0
2280 .IP "\fB\-funsigned\-bitfields\fR" 4
2281 .IX Item "-funsigned-bitfields"
2282 .IP "\fB\-fno\-signed\-bitfields\fR" 4
2283 .IX Item "-fno-signed-bitfields"
2284 .IP "\fB\-fno\-unsigned\-bitfields\fR" 4
2285 .IX Item "-fno-unsigned-bitfields"
2286 .PD
2287 These options control whether a bit-field is signed or unsigned, when the
2288 declaration does not use either \f(CW\*(C`signed\*(C'\fR or \f(CW\*(C`unsigned\*(C'\fR.  By
2289 default, such a bit-field is signed, because this is consistent: the
2290 basic integer types such as \f(CW\*(C`int\*(C'\fR are signed types.
2291 .IP "\fB\-fsso\-struct=\fR\fIendianness\fR" 4
2292 .IX Item "-fsso-struct=endianness"
2293 Set the default scalar storage order of structures and unions to the
2294 specified endianness.  The accepted values are \fBbig-endian\fR,
2295 \&\fBlittle-endian\fR and \fBnative\fR for the native endianness of
2296 the target (the default).  This option is not supported for \*(C+.
2297 .Sp
2298 \&\fBWarning:\fR the \fB\-fsso\-struct\fR switch causes \s-1GCC\s0 to generate
2299 code that is not binary compatible with code generated without it if the
2300 specified endianness is not the native endianness of the target.
2301 .SS "Options Controlling \*(C+ Dialect"
2302 .IX Subsection "Options Controlling Dialect"
2303 This section describes the command-line options that are only meaningful
2304 for \*(C+ programs.  You can also use most of the \s-1GNU\s0 compiler options
2305 regardless of what language your program is in.  For example, you
2306 might compile a file \fIfirstClass.C\fR like this:
2307 .PP
2308 .Vb 1
2309 \&        g++ \-g \-fstrict\-enums \-O \-c firstClass.C
2310 .Ve
2311 .PP
2312 In this example, only \fB\-fstrict\-enums\fR is an option meant
2313 only for \*(C+ programs; you can use the other options with any
2314 language supported by \s-1GCC.\s0
2315 .PP
2316 Some options for compiling C programs, such as \fB\-std\fR, are also
2317 relevant for \*(C+ programs.
2318 .PP
2319 Here is a list of options that are \fIonly\fR for compiling \*(C+ programs:
2320 .IP "\fB\-fabi\-version=\fR\fIn\fR" 4
2321 .IX Item "-fabi-version=n"
2322 Use version \fIn\fR of the \*(C+ \s-1ABI.\s0  The default is version 0.
2323 .Sp
2324 Version 0 refers to the version conforming most closely to
2325 the \*(C+ \s-1ABI\s0 specification.  Therefore, the \s-1ABI\s0 obtained using version 0
2326 will change in different versions of G++ as \s-1ABI\s0 bugs are fixed.
2327 .Sp
2328 Version 1 is the version of the \*(C+ \s-1ABI\s0 that first appeared in G++ 3.2.
2329 .Sp
2330 Version 2 is the version of the \*(C+ \s-1ABI\s0 that first appeared in G++
2331 3.4, and was the default through G++ 4.9.
2332 .Sp
2333 Version 3 corrects an error in mangling a constant address as a
2334 template argument.
2335 .Sp
2336 Version 4, which first appeared in G++ 4.5, implements a standard
2337 mangling for vector types.
2338 .Sp
2339 Version 5, which first appeared in G++ 4.6, corrects the mangling of
2340 attribute const/volatile on function pointer types, decltype of a
2341 plain decl, and use of a function parameter in the declaration of
2342 another parameter.
2343 .Sp
2344 Version 6, which first appeared in G++ 4.7, corrects the promotion
2345 behavior of \*(C+11 scoped enums and the mangling of template argument
2346 packs, const/static_cast, prefix ++ and \-\-, and a class scope function
2347 used as a template argument.
2348 .Sp
2349 Version 7, which first appeared in G++ 4.8, that treats nullptr_t as a
2350 builtin type and corrects the mangling of lambdas in default argument
2351 scope.
2352 .Sp
2353 Version 8, which first appeared in G++ 4.9, corrects the substitution
2354 behavior of function types with function-cv-qualifiers.
2355 .Sp
2356 Version 9, which first appeared in G++ 5.2, corrects the alignment of
2357 \&\f(CW\*(C`nullptr_t\*(C'\fR.
2358 .Sp
2359 Version 10, which first appeared in G++ 6.1, adds mangling of
2360 attributes that affect type identity, such as ia32 calling convention
2361 attributes (e.g. \fBstdcall\fR).
2362 .Sp
2363 Version 11, which first appeared in G++ 7, corrects the mangling of
2364 sizeof... expressions and operator names.  For multiple entities with
2365 the same name within a function, that are declared in different scopes,
2366 the mangling now changes starting with the twelfth occurrence.  It also
2367 implies \fB\-fnew\-inheriting\-ctors\fR.
2368 .Sp
2369 Version 12, which first appeared in G++ 8, corrects the calling
2370 conventions for empty classes on the x86_64 target and for classes
2371 with only deleted copy/move constructors.  It accidentally changes the
2372 calling convention for classes with a deleted copy constructor and a
2373 trivial move constructor.
2374 .Sp
2375 Version 13, which first appeared in G++ 8.2, fixes the accidental
2376 change in version 12.
2377 .Sp
2378 See also \fB\-Wabi\fR.
2379 .IP "\fB\-fabi\-compat\-version=\fR\fIn\fR" 4
2380 .IX Item "-fabi-compat-version=n"
2381 On targets that support strong aliases, G++
2382 works around mangling changes by creating an alias with the correct
2383 mangled name when defining a symbol with an incorrect mangled name.
2384 This switch specifies which \s-1ABI\s0 version to use for the alias.
2385 .Sp
2386 With \fB\-fabi\-version=0\fR (the default), this defaults to 11 (\s-1GCC 7\s0
2387 compatibility).  If another \s-1ABI\s0 version is explicitly selected, this
2388 defaults to 0.  For compatibility with \s-1GCC\s0 versions 3.2 through 4.9,
2389 use \fB\-fabi\-compat\-version=2\fR.
2390 .Sp
2391 If this option is not provided but \fB\-Wabi=\fR\fIn\fR is, that
2392 version is used for compatibility aliases.  If this option is provided
2393 along with \fB\-Wabi\fR (without the version), the version from this
2394 option is used for the warning.
2395 .IP "\fB\-fno\-access\-control\fR" 4
2396 .IX Item "-fno-access-control"
2397 Turn off all access checking.  This switch is mainly useful for working
2398 around bugs in the access control code.
2399 .IP "\fB\-faligned\-new\fR" 4
2400 .IX Item "-faligned-new"
2401 Enable support for \*(C+17 \f(CW\*(C`new\*(C'\fR of types that require more
2402 alignment than \f(CW\*(C`void* ::operator new(std::size_t)\*(C'\fR provides.  A
2403 numeric argument such as \f(CW\*(C`\-faligned\-new=32\*(C'\fR can be used to
2404 specify how much alignment (in bytes) is provided by that function,
2405 but few users will need to override the default of
2406 \&\f(CW\*(C`alignof(std::max_align_t)\*(C'\fR.
2407 .Sp
2408 This flag is enabled by default for \fB\-std=c++17\fR.
2409 .IP "\fB\-fcheck\-new\fR" 4
2410 .IX Item "-fcheck-new"
2411 Check that the pointer returned by \f(CW\*(C`operator new\*(C'\fR is non-null
2412 before attempting to modify the storage allocated.  This check is
2413 normally unnecessary because the \*(C+ standard specifies that
2414 \&\f(CW\*(C`operator new\*(C'\fR only returns \f(CW0\fR if it is declared
2415 \&\f(CW\*(C`throw()\*(C'\fR, in which case the compiler always checks the
2416 return value even without this option.  In all other cases, when
2417 \&\f(CW\*(C`operator new\*(C'\fR has a non-empty exception specification, memory
2418 exhaustion is signalled by throwing \f(CW\*(C`std::bad_alloc\*(C'\fR.  See also
2419 \&\fBnew (nothrow)\fR.
2420 .IP "\fB\-fconcepts\fR" 4
2421 .IX Item "-fconcepts"
2422 Enable support for the \*(C+ Extensions for Concepts Technical
2423 Specification, \s-1ISO 19217\s0 (2015), which allows code like
2424 .Sp
2425 .Vb 2
2426 \&        template <class T> concept bool Addable = requires (T t) { t + t; };
2427 \&        template <Addable T> T add (T a, T b) { return a + b; }
2428 .Ve
2429 .IP "\fB\-fconstexpr\-depth=\fR\fIn\fR" 4
2430 .IX Item "-fconstexpr-depth=n"
2431 Set the maximum nested evaluation depth for \*(C+11 constexpr functions
2432 to \fIn\fR.  A limit is needed to detect endless recursion during
2433 constant expression evaluation.  The minimum specified by the standard
2434 is 512.
2435 .IP "\fB\-fconstexpr\-loop\-limit=\fR\fIn\fR" 4
2436 .IX Item "-fconstexpr-loop-limit=n"
2437 Set the maximum number of iterations for a loop in \*(C+14 constexpr functions
2438 to \fIn\fR.  A limit is needed to detect infinite loops during
2439 constant expression evaluation.  The default is 262144 (1<<18).
2440 .IP "\fB\-fdeduce\-init\-list\fR" 4
2441 .IX Item "-fdeduce-init-list"
2442 Enable deduction of a template type parameter as
2443 \&\f(CW\*(C`std::initializer_list\*(C'\fR from a brace-enclosed initializer list, i.e.
2444 .Sp
2445 .Vb 4
2446 \&        template <class T> auto forward(T t) \-> decltype (realfn (t))
2447 \&        {
2448 \&          return realfn (t);
2449 \&        }
2450 \&        
2451 \&        void f()
2452 \&        {
2453 \&          forward({1,2}); // call forward<std::initializer_list<int>>
2454 \&        }
2455 .Ve
2456 .Sp
2457 This deduction was implemented as a possible extension to the
2458 originally proposed semantics for the \*(C+11 standard, but was not part
2459 of the final standard, so it is disabled by default.  This option is
2460 deprecated, and may be removed in a future version of G++.
2461 .IP "\fB\-ffriend\-injection\fR" 4
2462 .IX Item "-ffriend-injection"
2463 Inject friend functions into the enclosing namespace, so that they are
2464 visible outside the scope of the class in which they are declared.
2465 Friend functions were documented to work this way in the old Annotated
2466 \&\*(C+ Reference Manual.  
2467 However, in \s-1ISO \*(C+\s0 a friend function that is not declared
2468 in an enclosing scope can only be found using argument dependent
2469 lookup.  \s-1GCC\s0 defaults to the standard behavior.
2470 .Sp
2471 This option is deprecated and will be removed.
2472 .IP "\fB\-fno\-elide\-constructors\fR" 4
2473 .IX Item "-fno-elide-constructors"
2474 The \*(C+ standard allows an implementation to omit creating a temporary
2475 that is only used to initialize another object of the same type.
2476 Specifying this option disables that optimization, and forces G++ to
2477 call the copy constructor in all cases.  This option also causes G++
2478 to call trivial member functions which otherwise would be expanded inline.
2479 .Sp
2480 In \*(C+17, the compiler is required to omit these temporaries, but this
2481 option still affects trivial member functions.
2482 .IP "\fB\-fno\-enforce\-eh\-specs\fR" 4
2483 .IX Item "-fno-enforce-eh-specs"
2484 Don't generate code to check for violation of exception specifications
2485 at run time.  This option violates the \*(C+ standard, but may be useful
2486 for reducing code size in production builds, much like defining
2487 \&\f(CW\*(C`NDEBUG\*(C'\fR.  This does not give user code permission to throw
2488 exceptions in violation of the exception specifications; the compiler
2489 still optimizes based on the specifications, so throwing an
2490 unexpected exception results in undefined behavior at run time.
2491 .IP "\fB\-fextern\-tls\-init\fR" 4
2492 .IX Item "-fextern-tls-init"
2493 .PD 0
2494 .IP "\fB\-fno\-extern\-tls\-init\fR" 4
2495 .IX Item "-fno-extern-tls-init"
2496 .PD
2497 The \*(C+11 and OpenMP standards allow \f(CW\*(C`thread_local\*(C'\fR and
2498 \&\f(CW\*(C`threadprivate\*(C'\fR variables to have dynamic (runtime)
2499 initialization.  To support this, any use of such a variable goes
2500 through a wrapper function that performs any necessary initialization.
2501 When the use and definition of the variable are in the same
2502 translation unit, this overhead can be optimized away, but when the
2503 use is in a different translation unit there is significant overhead
2504 even if the variable doesn't actually need dynamic initialization.  If
2505 the programmer can be sure that no use of the variable in a
2506 non-defining \s-1TU\s0 needs to trigger dynamic initialization (either
2507 because the variable is statically initialized, or a use of the
2508 variable in the defining \s-1TU\s0 will be executed before any uses in
2509 another \s-1TU\s0), they can avoid this overhead with the
2510 \&\fB\-fno\-extern\-tls\-init\fR option.
2511 .Sp
2512 On targets that support symbol aliases, the default is
2513 \&\fB\-fextern\-tls\-init\fR.  On targets that do not support symbol
2514 aliases, the default is \fB\-fno\-extern\-tls\-init\fR.
2515 .IP "\fB\-ffor\-scope\fR" 4
2516 .IX Item "-ffor-scope"
2517 .PD 0
2518 .IP "\fB\-fno\-for\-scope\fR" 4
2519 .IX Item "-fno-for-scope"
2520 .PD
2521 If \fB\-ffor\-scope\fR is specified, the scope of variables declared in
2522 a \fIfor-init-statement\fR is limited to the \f(CW\*(C`for\*(C'\fR loop itself,
2523 as specified by the \*(C+ standard.
2524 If \fB\-fno\-for\-scope\fR is specified, the scope of variables declared in
2525 a \fIfor-init-statement\fR extends to the end of the enclosing scope,
2526 as was the case in old versions of G++, and other (traditional)
2527 implementations of \*(C+.
2528 .Sp
2529 This option is deprecated and the associated non-standard
2530 functionality will be removed.
2531 .IP "\fB\-fno\-gnu\-keywords\fR" 4
2532 .IX Item "-fno-gnu-keywords"
2533 Do not recognize \f(CW\*(C`typeof\*(C'\fR as a keyword, so that code can use this
2534 word as an identifier.  You can use the keyword \f(CW\*(C`_\|_typeof_\|_\*(C'\fR instead.
2535 This option is implied by the strict \s-1ISO \*(C+\s0 dialects: \fB\-ansi\fR,
2536 \&\fB\-std=c++98\fR, \fB\-std=c++11\fR, etc.
2537 .IP "\fB\-fno\-implicit\-templates\fR" 4
2538 .IX Item "-fno-implicit-templates"
2539 Never emit code for non-inline templates that are instantiated
2540 implicitly (i.e. by use); only emit code for explicit instantiations.
2541 .IP "\fB\-fno\-implicit\-inline\-templates\fR" 4
2542 .IX Item "-fno-implicit-inline-templates"
2543 Don't emit code for implicit instantiations of inline templates, either.
2544 The default is to handle inlines differently so that compiles with and
2545 without optimization need the same set of explicit instantiations.
2546 .IP "\fB\-fno\-implement\-inlines\fR" 4
2547 .IX Item "-fno-implement-inlines"
2548 To save space, do not emit out-of-line copies of inline functions
2549 controlled by \f(CW\*(C`#pragma implementation\*(C'\fR.  This causes linker
2550 errors if these functions are not inlined everywhere they are called.
2551 .IP "\fB\-fms\-extensions\fR" 4
2552 .IX Item "-fms-extensions"
2553 Disable Wpedantic warnings about constructs used in \s-1MFC,\s0 such as implicit
2554 int and getting a pointer to member function via non-standard syntax.
2555 .IP "\fB\-fnew\-inheriting\-ctors\fR" 4
2556 .IX Item "-fnew-inheriting-ctors"
2557 Enable the P0136 adjustment to the semantics of \*(C+11 constructor
2558 inheritance.  This is part of \*(C+17 but also considered to be a Defect
2559 Report against \*(C+11 and \*(C+14.  This flag is enabled by default
2560 unless \fB\-fabi\-version=10\fR or lower is specified.
2561 .IP "\fB\-fnew\-ttp\-matching\fR" 4
2562 .IX Item "-fnew-ttp-matching"
2563 Enable the P0522 resolution to Core issue 150, template template
2564 parameters and default arguments: this allows a template with default
2565 template arguments as an argument for a template template parameter
2566 with fewer template parameters.  This flag is enabled by default for
2567 \&\fB\-std=c++17\fR.
2568 .IP "\fB\-fno\-nonansi\-builtins\fR" 4
2569 .IX Item "-fno-nonansi-builtins"
2570 Disable built-in declarations of functions that are not mandated by
2571 \&\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,
2572 \&\f(CW\*(C`index\*(C'\fR, \f(CW\*(C`bzero\*(C'\fR, \f(CW\*(C`conjf\*(C'\fR, and other related functions.
2573 .IP "\fB\-fnothrow\-opt\fR" 4
2574 .IX Item "-fnothrow-opt"
2575 Treat a \f(CW\*(C`throw()\*(C'\fR exception specification as if it were a
2576 \&\f(CW\*(C`noexcept\*(C'\fR specification to reduce or eliminate the text size
2577 overhead relative to a function with no exception specification.  If
2578 the function has local variables of types with non-trivial
2579 destructors, the exception specification actually makes the
2580 function smaller because the \s-1EH\s0 cleanups for those variables can be
2581 optimized away.  The semantic effect is that an exception thrown out of
2582 a function with such an exception specification results in a call
2583 to \f(CW\*(C`terminate\*(C'\fR rather than \f(CW\*(C`unexpected\*(C'\fR.
2584 .IP "\fB\-fno\-operator\-names\fR" 4
2585 .IX Item "-fno-operator-names"
2586 Do not treat the operator name keywords \f(CW\*(C`and\*(C'\fR, \f(CW\*(C`bitand\*(C'\fR,
2587 \&\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
2588 synonyms as keywords.
2589 .IP "\fB\-fno\-optional\-diags\fR" 4
2590 .IX Item "-fno-optional-diags"
2591 Disable diagnostics that the standard says a compiler does not need to
2592 issue.  Currently, the only such diagnostic issued by G++ is the one for
2593 a name having multiple meanings within a class.
2594 .IP "\fB\-fpermissive\fR" 4
2595 .IX Item "-fpermissive"
2596 Downgrade some diagnostics about nonconformant code from errors to
2597 warnings.  Thus, using \fB\-fpermissive\fR allows some
2598 nonconforming code to compile.
2599 .IP "\fB\-fno\-pretty\-templates\fR" 4
2600 .IX Item "-fno-pretty-templates"
2601 When an error message refers to a specialization of a function
2602 template, the compiler normally prints the signature of the
2603 template followed by the template arguments and any typedefs or
2604 typenames in the signature (e.g. \f(CW\*(C`void f(T) [with T = int]\*(C'\fR
2605 rather than \f(CW\*(C`void f(int)\*(C'\fR) so that it's clear which template is
2606 involved.  When an error message refers to a specialization of a class
2607 template, the compiler omits any template arguments that match
2608 the default template arguments for that template.  If either of these
2609 behaviors make it harder to understand the error message rather than
2610 easier, you can use \fB\-fno\-pretty\-templates\fR to disable them.
2611 .IP "\fB\-frepo\fR" 4
2612 .IX Item "-frepo"
2613 Enable automatic template instantiation at link time.  This option also
2614 implies \fB\-fno\-implicit\-templates\fR.
2615 .IP "\fB\-fno\-rtti\fR" 4
2616 .IX Item "-fno-rtti"
2617 Disable generation of information about every class with virtual
2618 functions for use by the \*(C+ run-time type identification features
2619 (\f(CW\*(C`dynamic_cast\*(C'\fR and \f(CW\*(C`typeid\*(C'\fR).  If you don't use those parts
2620 of the language, you can save some space by using this flag.  Note that
2621 exception handling uses the same information, but G++ generates it as
2622 needed. The \f(CW\*(C`dynamic_cast\*(C'\fR operator can still be used for casts that
2623 do not require run-time type information, i.e. casts to \f(CW\*(C`void *\*(C'\fR or to
2624 unambiguous base classes.
2625 .IP "\fB\-fsized\-deallocation\fR" 4
2626 .IX Item "-fsized-deallocation"
2627 Enable the built-in global declarations
2628 .Sp
2629 .Vb 2
2630 \&        void operator delete (void *, std::size_t) noexcept;
2631 \&        void operator delete[] (void *, std::size_t) noexcept;
2632 .Ve
2633 .Sp
2634 as introduced in \*(C+14.  This is useful for user-defined replacement
2635 deallocation functions that, for example, use the size of the object
2636 to make deallocation faster.  Enabled by default under
2637 \&\fB\-std=c++14\fR and above.  The flag \fB\-Wsized\-deallocation\fR
2638 warns about places that might want to add a definition.
2639 .IP "\fB\-fstrict\-enums\fR" 4
2640 .IX Item "-fstrict-enums"
2641 Allow the compiler to optimize using the assumption that a value of
2642 enumerated type can only be one of the values of the enumeration (as
2643 defined in the \*(C+ standard; basically, a value that can be
2644 represented in the minimum number of bits needed to represent all the
2645 enumerators).  This assumption may not be valid if the program uses a
2646 cast to convert an arbitrary integer value to the enumerated type.
2647 .IP "\fB\-fstrong\-eval\-order\fR" 4
2648 .IX Item "-fstrong-eval-order"
2649 Evaluate member access, array subscripting, and shift expressions in
2650 left-to-right order, and evaluate assignment in right-to-left order,
2651 as adopted for \*(C+17.  Enabled by default with \fB\-std=c++17\fR.
2652 \&\fB\-fstrong\-eval\-order=some\fR enables just the ordering of member
2653 access and shift expressions, and is the default without
2654 \&\fB\-std=c++17\fR.
2655 .IP "\fB\-ftemplate\-backtrace\-limit=\fR\fIn\fR" 4
2656 .IX Item "-ftemplate-backtrace-limit=n"
2657 Set the maximum number of template instantiation notes for a single
2658 warning or error to \fIn\fR.  The default value is 10.
2659 .IP "\fB\-ftemplate\-depth=\fR\fIn\fR" 4
2660 .IX Item "-ftemplate-depth=n"
2661 Set the maximum instantiation depth for template classes to \fIn\fR.
2662 A limit on the template instantiation depth is needed to detect
2663 endless recursions during template class instantiation.  \s-1ANSI/ISO \*(C+\s0
2664 conforming programs must not rely on a maximum depth greater than 17
2665 (changed to 1024 in \*(C+11).  The default value is 900, as the compiler
2666 can run out of stack space before hitting 1024 in some situations.
2667 .IP "\fB\-fno\-threadsafe\-statics\fR" 4
2668 .IX Item "-fno-threadsafe-statics"
2669 Do not emit the extra code to use the routines specified in the \*(C+
2670 \&\s-1ABI\s0 for thread-safe initialization of local statics.  You can use this
2671 option to reduce code size slightly in code that doesn't need to be
2672 thread-safe.
2673 .IP "\fB\-fuse\-cxa\-atexit\fR" 4
2674 .IX Item "-fuse-cxa-atexit"
2675 Register destructors for objects with static storage duration with the
2676 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR function rather than the \f(CW\*(C`atexit\*(C'\fR function.
2677 This option is required for fully standards-compliant handling of static
2678 destructors, but only works if your C library supports
2679 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR.
2680 .IP "\fB\-fno\-use\-cxa\-get\-exception\-ptr\fR" 4
2681 .IX Item "-fno-use-cxa-get-exception-ptr"
2682 Don't use the \f(CW\*(C`_\|_cxa_get_exception_ptr\*(C'\fR runtime routine.  This
2683 causes \f(CW\*(C`std::uncaught_exception\*(C'\fR to be incorrect, but is necessary
2684 if the runtime routine is not available.
2685 .IP "\fB\-fvisibility\-inlines\-hidden\fR" 4
2686 .IX Item "-fvisibility-inlines-hidden"
2687 This switch declares that the user does not attempt to compare
2688 pointers to inline functions or methods where the addresses of the two functions
2689 are taken in different shared objects.
2690 .Sp
2691 The effect of this is that \s-1GCC\s0 may, effectively, mark inline methods with
2692 \&\f(CW\*(C`_\|_attribute_\|_ ((visibility ("hidden")))\*(C'\fR so that they do not
2693 appear in the export table of a \s-1DSO\s0 and do not require a \s-1PLT\s0 indirection
2694 when used within the \s-1DSO.\s0  Enabling this option can have a dramatic effect
2695 on load and link times of a \s-1DSO\s0 as it massively reduces the size of the
2696 dynamic export table when the library makes heavy use of templates.
2697 .Sp
2698 The behavior of this switch is not quite the same as marking the
2699 methods as hidden directly, because it does not affect static variables
2700 local to the function or cause the compiler to deduce that
2701 the function is defined in only one shared object.
2702 .Sp
2703 You may mark a method as having a visibility explicitly to negate the
2704 effect of the switch for that method.  For example, if you do want to
2705 compare pointers to a particular inline method, you might mark it as
2706 having default visibility.  Marking the enclosing class with explicit
2707 visibility has no effect.
2708 .Sp
2709 Explicitly instantiated inline methods are unaffected by this option
2710 as their linkage might otherwise cross a shared library boundary.
2711 .IP "\fB\-fvisibility\-ms\-compat\fR" 4
2712 .IX Item "-fvisibility-ms-compat"
2713 This flag attempts to use visibility settings to make \s-1GCC\s0's \*(C+
2714 linkage model compatible with that of Microsoft Visual Studio.
2715 .Sp
2716 The flag makes these changes to \s-1GCC\s0's linkage model:
2717 .RS 4
2718 .IP "1." 4
2719 .IX Item "1."
2720 It sets the default visibility to \f(CW\*(C`hidden\*(C'\fR, like
2721 \&\fB\-fvisibility=hidden\fR.
2722 .IP "2." 4
2723 .IX Item "2."
2724 Types, but not their members, are not hidden by default.
2725 .IP "3." 4
2726 .IX Item "3."
2727 The One Definition Rule is relaxed for types without explicit
2728 visibility specifications that are defined in more than one
2729 shared object: those declarations are permitted if they are
2730 permitted when this option is not used.
2731 .RE
2732 .RS 4
2733 .Sp
2734 In new code it is better to use \fB\-fvisibility=hidden\fR and
2735 export those classes that are intended to be externally visible.
2736 Unfortunately it is possible for code to rely, perhaps accidentally,
2737 on the Visual Studio behavior.
2738 .Sp
2739 Among the consequences of these changes are that static data members
2740 of the same type with the same name but defined in different shared
2741 objects are different, so changing one does not change the other;
2742 and that pointers to function members defined in different shared
2743 objects may not compare equal.  When this flag is given, it is a
2744 violation of the \s-1ODR\s0 to define types with the same name differently.
2745 .RE
2746 .IP "\fB\-fno\-weak\fR" 4
2747 .IX Item "-fno-weak"
2748 Do not use weak symbol support, even if it is provided by the linker.
2749 By default, G++ uses weak symbols if they are available.  This
2750 option exists only for testing, and should not be used by end-users;
2751 it results in inferior code and has no benefits.  This option may
2752 be removed in a future release of G++.
2753 .IP "\fB\-nostdinc++\fR" 4
2754 .IX Item "-nostdinc++"
2755 Do not search for header files in the standard directories specific to
2756 \&\*(C+, but do still search the other standard directories.  (This option
2757 is used when building the \*(C+ library.)
2758 .PP
2759 In addition, these optimization, warning, and code generation options
2760 have meanings only for \*(C+ programs:
2761 .IP "\fB\-Wabi\fR (C, Objective-C, \*(C+ and Objective\-\*(C+ only)" 4
2762 .IX Item "-Wabi (C, Objective-C, and Objective- only)"
2763 Warn when G++ it generates code that is probably not compatible with
2764 the vendor-neutral \*(C+ \s-1ABI.\s0  Since G++ now defaults to updating the
2765 \&\s-1ABI\s0 with each major release, normally \fB\-Wabi\fR will warn only if
2766 there is a check added later in a release series for an \s-1ABI\s0 issue
2767 discovered since the initial release.  \fB\-Wabi\fR will warn about
2768 more things if an older \s-1ABI\s0 version is selected (with
2769 \&\fB\-fabi\-version=\fR\fIn\fR).
2770 .Sp
2771 \&\fB\-Wabi\fR can also be used with an explicit version number to
2772 warn about compatibility with a particular \fB\-fabi\-version\fR
2773 level, e.g. \fB\-Wabi=2\fR to warn about changes relative to
2774 \&\fB\-fabi\-version=2\fR.
2775 .Sp
2776 If an explicit version number is provided and
2777 \&\fB\-fabi\-compat\-version\fR is not specified, the version number
2778 from this option is used for compatibility aliases.  If no explicit
2779 version number is provided with this option, but
2780 \&\fB\-fabi\-compat\-version\fR is specified, that version number is
2781 used for \s-1ABI\s0 warnings.
2782 .Sp
2783 Although an effort has been made to warn about
2784 all such cases, there are probably some cases that are not warned about,
2785 even though G++ is generating incompatible code.  There may also be
2786 cases where warnings are emitted even though the code that is generated
2787 is compatible.
2788 .Sp
2789 You should rewrite your code to avoid these warnings if you are
2790 concerned about the fact that code generated by G++ may not be binary
2791 compatible with code generated by other compilers.
2792 .Sp
2793 Known incompatibilities in \fB\-fabi\-version=2\fR (which was the
2794 default from \s-1GCC 3.4\s0 to 4.9) include:
2795 .RS 4
2796 .IP "*" 4
2797 A template with a non-type template parameter of reference type was
2798 mangled incorrectly:
2799 .Sp
2800 .Vb 3
2801 \&        extern int N;
2802 \&        template <int &> struct S {};
2803 \&        void n (S<N>) {2}
2804 .Ve
2805 .Sp
2806 This was fixed in \fB\-fabi\-version=3\fR.
2807 .IP "*" 4
2808 \&\s-1SIMD\s0 vector types declared using \f(CW\*(C`_\|_attribute ((vector_size))\*(C'\fR were
2809 mangled in a non-standard way that does not allow for overloading of
2810 functions taking vectors of different sizes.
2811 .Sp
2812 The mangling was changed in \fB\-fabi\-version=4\fR.
2813 .IP "*" 4
2814 \&\f(CW\*(C`_\|_attribute ((const))\*(C'\fR and \f(CW\*(C`noreturn\*(C'\fR were mangled as type
2815 qualifiers, and \f(CW\*(C`decltype\*(C'\fR of a plain declaration was folded away.
2816 .Sp
2817 These mangling issues were fixed in \fB\-fabi\-version=5\fR.
2818 .IP "*" 4
2819 Scoped enumerators passed as arguments to a variadic function are
2820 promoted like unscoped enumerators, causing \f(CW\*(C`va_arg\*(C'\fR to complain.
2821 On most targets this does not actually affect the parameter passing
2822 \&\s-1ABI,\s0 as there is no way to pass an argument smaller than \f(CW\*(C`int\*(C'\fR.
2823 .Sp
2824 Also, the \s-1ABI\s0 changed the mangling of template argument packs,
2825 \&\f(CW\*(C`const_cast\*(C'\fR, \f(CW\*(C`static_cast\*(C'\fR, prefix increment/decrement, and
2826 a class scope function used as a template argument.
2827 .Sp
2828 These issues were corrected in \fB\-fabi\-version=6\fR.
2829 .IP "*" 4
2830 Lambdas in default argument scope were mangled incorrectly, and the
2831 \&\s-1ABI\s0 changed the mangling of \f(CW\*(C`nullptr_t\*(C'\fR.
2832 .Sp
2833 These issues were corrected in \fB\-fabi\-version=7\fR.
2834 .IP "*" 4
2835 When mangling a function type with function-cv-qualifiers, the
2836 un-qualified function type was incorrectly treated as a substitution
2837 candidate.
2838 .Sp
2839 This was fixed in \fB\-fabi\-version=8\fR, the default for \s-1GCC 5.1.\s0
2840 .IP "*" 4
2841 \&\f(CW\*(C`decltype(nullptr)\*(C'\fR incorrectly had an alignment of 1, leading to
2842 unaligned accesses.  Note that this did not affect the \s-1ABI\s0 of a
2843 function with a \f(CW\*(C`nullptr_t\*(C'\fR parameter, as parameters have a
2844 minimum alignment.
2845 .Sp
2846 This was fixed in \fB\-fabi\-version=9\fR, the default for \s-1GCC 5.2.\s0
2847 .IP "*" 4
2848 Target-specific attributes that affect the identity of a type, such as
2849 ia32 calling conventions on a function type (stdcall, regparm, etc.),
2850 did not affect the mangled name, leading to name collisions when
2851 function pointers were used as template arguments.
2852 .Sp
2853 This was fixed in \fB\-fabi\-version=10\fR, the default for \s-1GCC 6.1.\s0
2854 .RE
2855 .RS 4
2856 .Sp
2857 It also warns about psABI-related changes.  The known psABI changes at this
2858 point include:
2859 .IP "*" 4
2860 For SysV/x86\-64, unions with \f(CW\*(C`long double\*(C'\fR members are 
2861 passed in memory as specified in psABI.  For example:
2862 .Sp
2863 .Vb 4
2864 \&        union U {
2865 \&          long double ld;
2866 \&          int i;
2867 \&        };
2868 .Ve
2869 .Sp
2870 \&\f(CW\*(C`union U\*(C'\fR is always passed in memory.
2871 .RE
2872 .RS 4
2873 .RE
2874 .IP "\fB\-Wabi\-tag\fR (\*(C+ and Objective\-\*(C+ only)" 4
2875 .IX Item "-Wabi-tag ( and Objective- only)"
2876 Warn when a type with an \s-1ABI\s0 tag is used in a context that does not
2877 have that \s-1ABI\s0 tag.  See \fB\*(C+ Attributes\fR for more information
2878 about \s-1ABI\s0 tags.
2879 .IP "\fB\-Wctor\-dtor\-privacy\fR (\*(C+ and Objective\-\*(C+ only)" 4
2880 .IX Item "-Wctor-dtor-privacy ( and Objective- only)"
2881 Warn when a class seems unusable because all the constructors or
2882 destructors in that class are private, and it has neither friends nor
2883 public static member functions.  Also warn if there are no non-private
2884 methods, and there's at least one private member function that isn't
2885 a constructor or destructor.
2886 .IP "\fB\-Wdelete\-non\-virtual\-dtor\fR (\*(C+ and Objective\-\*(C+ only)" 4
2887 .IX Item "-Wdelete-non-virtual-dtor ( and Objective- only)"
2888 Warn when \f(CW\*(C`delete\*(C'\fR is used to destroy an instance of a class that
2889 has virtual functions and non-virtual destructor. It is unsafe to delete
2890 an instance of a derived class through a pointer to a base class if the
2891 base class does not have a virtual destructor.  This warning is enabled
2892 by \fB\-Wall\fR.
2893 .IP "\fB\-Wliteral\-suffix\fR (\*(C+ and Objective\-\*(C+ only)" 4
2894 .IX Item "-Wliteral-suffix ( and Objective- only)"
2895 Warn when a string or character literal is followed by a ud-suffix which does
2896 not begin with an underscore.  As a conforming extension, \s-1GCC\s0 treats such
2897 suffixes as separate preprocessing tokens in order to maintain backwards
2898 compatibility with code that uses formatting macros from \f(CW\*(C`<inttypes.h>\*(C'\fR.
2899 For example:
2900 .Sp
2901 .Vb 3
2902 \&        #define _\|_STDC_FORMAT_MACROS
2903 \&        #include <inttypes.h>
2904 \&        #include <stdio.h>
2905 \&        
2906 \&        int main() {
2907 \&          int64_t i64 = 123;
2908 \&          printf("My int64: %" PRId64"\en", i64);
2909 \&        }
2910 .Ve
2911 .Sp
2912 In this case, \f(CW\*(C`PRId64\*(C'\fR is treated as a separate preprocessing token.
2913 .Sp
2914 Additionally, warn when a user-defined literal operator is declared with
2915 a literal suffix identifier that doesn't begin with an underscore. Literal
2916 suffix identifiers that don't begin with an underscore are reserved for
2917 future standardization.
2918 .Sp
2919 This warning is enabled by default.
2920 .IP "\fB\-Wlto\-type\-mismatch\fR" 4
2921 .IX Item "-Wlto-type-mismatch"
2922 During the link-time optimization warn about type mismatches in
2923 global declarations from different compilation units.
2924 Requires \fB\-flto\fR to be enabled.  Enabled by default.
2925 .IP "\fB\-Wno\-narrowing\fR (\*(C+ and Objective\-\*(C+ only)" 4
2926 .IX Item "-Wno-narrowing ( and Objective- only)"
2927 For \*(C+11 and later standards, narrowing conversions are diagnosed by default,
2928 as required by the standard.  A narrowing conversion from a constant produces
2929 an error, and a narrowing conversion from a non-constant produces a warning,
2930 but \fB\-Wno\-narrowing\fR suppresses the diagnostic.
2931 Note that this does not affect the meaning of well-formed code;
2932 narrowing conversions are still considered ill-formed in \s-1SFINAE\s0 contexts.
2933 .Sp
2934 With \fB\-Wnarrowing\fR in \*(C+98, warn when a narrowing
2935 conversion prohibited by \*(C+11 occurs within
2936 \&\fB{ }\fR, e.g.
2937 .Sp
2938 .Vb 1
2939 \&        int i = { 2.2 }; // error: narrowing from double to int
2940 .Ve
2941 .Sp
2942 This flag is included in \fB\-Wall\fR and \fB\-Wc++11\-compat\fR.
2943 .IP "\fB\-Wnoexcept\fR (\*(C+ and Objective\-\*(C+ only)" 4
2944 .IX Item "-Wnoexcept ( and Objective- only)"
2945 Warn when a noexcept-expression evaluates to false because of a call
2946 to a function that does not have a non-throwing exception
2947 specification (i.e. \f(CW\*(C`throw()\*(C'\fR or \f(CW\*(C`noexcept\*(C'\fR) but is known by
2948 the compiler to never throw an exception.
2949 .IP "\fB\-Wnoexcept\-type\fR (\*(C+ and Objective\-\*(C+ only)" 4
2950 .IX Item "-Wnoexcept-type ( and Objective- only)"
2951 Warn if the \*(C+17 feature making \f(CW\*(C`noexcept\*(C'\fR part of a function
2952 type changes the mangled name of a symbol relative to \*(C+14.  Enabled
2953 by \fB\-Wabi\fR and \fB\-Wc++17\-compat\fR.
2954 .Sp
2955 As an example:
2956 .Sp
2957 .Vb 3
2958 \&        template <class T> void f(T t) { t(); };
2959 \&        void g() noexcept;
2960 \&        void h() { f(g); }
2961 .Ve
2962 .Sp
2963 In \*(C+14, \f(CW\*(C`f\*(C'\fR calls \f(CW\*(C`f<void(*)()>\*(C'\fR, but in
2964 \&\*(C+17 it calls \f(CW\*(C`f<void(*)()noexcept>\*(C'\fR.
2965 .IP "\fB\-Wclass\-memaccess\fR (\*(C+ and Objective\-\*(C+ only)" 4
2966 .IX Item "-Wclass-memaccess ( and Objective- only)"
2967 Warn when the destination of a call to a raw memory function such as
2968 \&\f(CW\*(C`memset\*(C'\fR or \f(CW\*(C`memcpy\*(C'\fR is an object of class type, and when writing
2969 into such an object might bypass the class non-trivial or deleted constructor
2970 or copy assignment, violate const-correctness or encapsulation, or corrupt
2971 virtual table pointers.  Modifying the representation of such objects may
2972 violate invariants maintained by member functions of the class.  For example,
2973 the call to \f(CW\*(C`memset\*(C'\fR below is undefined because it modifies a non-trivial
2974 class object and is, therefore, diagnosed.  The safe way to either initialize
2975 or clear the storage of objects of such types is by using the appropriate
2976 constructor or assignment operator, if one is available.
2977 .Sp
2978 .Vb 2
2979 \&        std::string str = "abc";
2980 \&        memset (&str, 0, sizeof str);
2981 .Ve
2982 .Sp
2983 The \fB\-Wclass\-memaccess\fR option is enabled by \fB\-Wall\fR.
2984 Explicitly casting the pointer to the class object to \f(CW\*(C`void *\*(C'\fR or
2985 to a type that can be safely accessed by the raw memory function suppresses
2986 the warning.
2987 .IP "\fB\-Wnon\-virtual\-dtor\fR (\*(C+ and Objective\-\*(C+ only)" 4
2988 .IX Item "-Wnon-virtual-dtor ( and Objective- only)"
2989 Warn when a class has virtual functions and an accessible non-virtual
2990 destructor itself or in an accessible polymorphic base class, in which
2991 case it is possible but unsafe to delete an instance of a derived
2992 class through a pointer to the class itself or base class.  This
2993 warning is automatically enabled if \fB\-Weffc++\fR is specified.
2994 .IP "\fB\-Wregister\fR (\*(C+ and Objective\-\*(C+ only)" 4
2995 .IX Item "-Wregister ( and Objective- only)"
2996 Warn on uses of the \f(CW\*(C`register\*(C'\fR storage class specifier, except
2997 when it is part of the \s-1GNU\s0 \fBExplicit Register Variables\fR extension.
2998 The use of the \f(CW\*(C`register\*(C'\fR keyword as storage class specifier has
2999 been deprecated in \*(C+11 and removed in \*(C+17.
3000 Enabled by default with \fB\-std=c++17\fR.
3001 .IP "\fB\-Wreorder\fR (\*(C+ and Objective\-\*(C+ only)" 4
3002 .IX Item "-Wreorder ( and Objective- only)"
3003 Warn when the order of member initializers given in the code does not
3004 match the order in which they must be executed.  For instance:
3005 .Sp
3006 .Vb 5
3007 \&        struct A {
3008 \&          int i;
3009 \&          int j;
3010 \&          A(): j (0), i (1) { }
3011 \&        };
3012 .Ve
3013 .Sp
3014 The compiler rearranges the member initializers for \f(CW\*(C`i\*(C'\fR
3015 and \f(CW\*(C`j\*(C'\fR to match the declaration order of the members, emitting
3016 a warning to that effect.  This warning is enabled by \fB\-Wall\fR.
3017 .IP "\fB\-fext\-numeric\-literals\fR (\*(C+ and Objective\-\*(C+ only)" 4
3018 .IX Item "-fext-numeric-literals ( and Objective- only)"
3019 Accept imaginary, fixed-point, or machine-defined
3020 literal number suffixes as \s-1GNU\s0 extensions.
3021 When this option is turned off these suffixes are treated
3022 as \*(C+11 user-defined literal numeric suffixes.
3023 This is on by default for all pre\-\*(C+11 dialects and all \s-1GNU\s0 dialects:
3024 \&\fB\-std=c++98\fR, \fB\-std=gnu++98\fR, \fB\-std=gnu++11\fR,
3025 \&\fB\-std=gnu++14\fR.
3026 This option is off by default
3027 for \s-1ISO \*(C+11\s0 onwards (\fB\-std=c++11\fR, ...).
3028 .PP
3029 The following \fB\-W...\fR options are not affected by \fB\-Wall\fR.
3030 .IP "\fB\-Weffc++\fR (\*(C+ and Objective\-\*(C+ only)" 4
3031 .IX Item "-Weffc++ ( and Objective- only)"
3032 Warn about violations of the following style guidelines from Scott Meyers'
3033 \&\fIEffective \*(C+\fR series of books:
3034 .RS 4
3035 .IP "*" 4
3036 Define a copy constructor and an assignment operator for classes
3037 with dynamically-allocated memory.
3038 .IP "*" 4
3039 Prefer initialization to assignment in constructors.
3040 .IP "*" 4
3041 Have \f(CW\*(C`operator=\*(C'\fR return a reference to \f(CW*this\fR.
3042 .IP "*" 4
3043 Don't try to return a reference when you must return an object.
3044 .IP "*" 4
3045 Distinguish between prefix and postfix forms of increment and
3046 decrement operators.
3047 .IP "*" 4
3048 Never overload \f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`||\*(C'\fR, or \f(CW\*(C`,\*(C'\fR.
3049 .RE
3050 .RS 4
3051 .Sp
3052 This option also enables \fB\-Wnon\-virtual\-dtor\fR, which is also
3053 one of the effective \*(C+ recommendations.  However, the check is
3054 extended to warn about the lack of virtual destructor in accessible
3055 non-polymorphic bases classes too.
3056 .Sp
3057 When selecting this option, be aware that the standard library
3058 headers do not obey all of these guidelines; use \fBgrep \-v\fR
3059 to filter out those warnings.
3060 .RE
3061 .IP "\fB\-Wstrict\-null\-sentinel\fR (\*(C+ and Objective\-\*(C+ only)" 4
3062 .IX Item "-Wstrict-null-sentinel ( and Objective- only)"
3063 Warn about the use of an uncasted \f(CW\*(C`NULL\*(C'\fR as sentinel.  When
3064 compiling only with \s-1GCC\s0 this is a valid sentinel, as \f(CW\*(C`NULL\*(C'\fR is defined
3065 to \f(CW\*(C`_\|_null\*(C'\fR.  Although it is a null pointer constant rather than a
3066 null pointer, it is guaranteed to be of the same size as a pointer.
3067 But this use is not portable across different compilers.
3068 .IP "\fB\-Wno\-non\-template\-friend\fR (\*(C+ and Objective\-\*(C+ only)" 4
3069 .IX Item "-Wno-non-template-friend ( and Objective- only)"
3070 Disable warnings when non-template friend functions are declared
3071 within a template.  In very old versions of \s-1GCC\s0 that predate implementation
3072 of the \s-1ISO\s0 standard, declarations such as 
3073 \&\fBfriend int foo(int)\fR, where the name of the friend is an unqualified-id,
3074 could be interpreted as a particular specialization of a template
3075 function; the warning exists to diagnose compatibility problems, 
3076 and is enabled by default.
3077 .IP "\fB\-Wold\-style\-cast\fR (\*(C+ and Objective\-\*(C+ only)" 4
3078 .IX Item "-Wold-style-cast ( and Objective- only)"
3079 Warn if an old-style (C\-style) cast to a non-void type is used within
3080 a \*(C+ program.  The new-style casts (\f(CW\*(C`dynamic_cast\*(C'\fR,
3081 \&\f(CW\*(C`static_cast\*(C'\fR, \f(CW\*(C`reinterpret_cast\*(C'\fR, and \f(CW\*(C`const_cast\*(C'\fR) are
3082 less vulnerable to unintended effects and much easier to search for.
3083 .IP "\fB\-Woverloaded\-virtual\fR (\*(C+ and Objective\-\*(C+ only)" 4
3084 .IX Item "-Woverloaded-virtual ( and Objective- only)"
3085 Warn when a function declaration hides virtual functions from a
3086 base class.  For example, in:
3087 .Sp
3088 .Vb 3
3089 \&        struct A {
3090 \&          virtual void f();
3091 \&        };
3092 \&        
3093 \&        struct B: public A {
3094 \&          void f(int);
3095 \&        };
3096 .Ve
3097 .Sp
3098 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
3099 like:
3100 .Sp
3101 .Vb 2
3102 \&        B* b;
3103 \&        b\->f();
3104 .Ve
3105 .Sp
3106 fails to compile.
3107 .IP "\fB\-Wno\-pmf\-conversions\fR (\*(C+ and Objective\-\*(C+ only)" 4
3108 .IX Item "-Wno-pmf-conversions ( and Objective- only)"
3109 Disable the diagnostic for converting a bound pointer to member function
3110 to a plain pointer.
3111 .IP "\fB\-Wsign\-promo\fR (\*(C+ and Objective\-\*(C+ only)" 4
3112 .IX Item "-Wsign-promo ( and Objective- only)"
3113 Warn when overload resolution chooses a promotion from unsigned or
3114 enumerated type to a signed type, over a conversion to an unsigned type of
3115 the same size.  Previous versions of G++ tried to preserve
3116 unsignedness, but the standard mandates the current behavior.
3117 .IP "\fB\-Wtemplates\fR (\*(C+ and Objective\-\*(C+ only)" 4
3118 .IX Item "-Wtemplates ( and Objective- only)"
3119 Warn when a primary template declaration is encountered.  Some coding
3120 rules disallow templates, and this may be used to enforce that rule.
3121 The warning is inactive inside a system header file, such as the \s-1STL,\s0 so
3122 one can still use the \s-1STL.\s0  One may also instantiate or specialize
3123 templates.
3124 .IP "\fB\-Wmultiple\-inheritance\fR (\*(C+ and Objective\-\*(C+ only)" 4
3125 .IX Item "-Wmultiple-inheritance ( and Objective- only)"
3126 Warn when a class is defined with multiple direct base classes.  Some
3127 coding rules disallow multiple inheritance, and this may be used to
3128 enforce that rule.  The warning is inactive inside a system header file,
3129 such as the \s-1STL,\s0 so one can still use the \s-1STL.\s0  One may also define
3130 classes that indirectly use multiple inheritance.
3131 .IP "\fB\-Wvirtual\-inheritance\fR" 4
3132 .IX Item "-Wvirtual-inheritance"
3133 Warn when a class is defined with a virtual direct base class.  Some
3134 coding rules disallow multiple inheritance, and this may be used to
3135 enforce that rule.  The warning is inactive inside a system header file,
3136 such as the \s-1STL,\s0 so one can still use the \s-1STL.\s0  One may also define
3137 classes that indirectly use virtual inheritance.
3138 .IP "\fB\-Wnamespaces\fR" 4
3139 .IX Item "-Wnamespaces"
3140 Warn when a namespace definition is opened.  Some coding rules disallow
3141 namespaces, and this may be used to enforce that rule.  The warning is
3142 inactive inside a system header file, such as the \s-1STL,\s0 so one can still
3143 use the \s-1STL.\s0  One may also use using directives and qualified names.
3144 .IP "\fB\-Wno\-terminate\fR (\*(C+ and Objective\-\*(C+ only)" 4
3145 .IX Item "-Wno-terminate ( and Objective- only)"
3146 Disable the warning about a throw-expression that will immediately
3147 result in a call to \f(CW\*(C`terminate\*(C'\fR.
3148 .SS "Options Controlling Objective-C and Objective\-\*(C+ Dialects"
3149 .IX Subsection "Options Controlling Objective-C and Objective- Dialects"
3150 (\s-1NOTE:\s0 This manual does not describe the Objective-C and Objective\-\*(C+
3151 languages themselves.
3152 .PP
3153 This section describes the command-line options that are only meaningful
3154 for Objective-C and Objective\-\*(C+ programs.  You can also use most of
3155 the language-independent \s-1GNU\s0 compiler options.
3156 For example, you might compile a file \fIsome_class.m\fR like this:
3157 .PP
3158 .Vb 1
3159 \&        gcc \-g \-fgnu\-runtime \-O \-c some_class.m
3160 .Ve
3161 .PP
3162 In this example, \fB\-fgnu\-runtime\fR is an option meant only for
3163 Objective-C and Objective\-\*(C+ programs; you can use the other options with
3164 any language supported by \s-1GCC.\s0
3165 .PP
3166 Note that since Objective-C is an extension of the C language, Objective-C
3167 compilations may also use options specific to the C front-end (e.g.,
3168 \&\fB\-Wtraditional\fR).  Similarly, Objective\-\*(C+ compilations may use
3169 \&\*(C+\-specific options (e.g., \fB\-Wabi\fR).
3170 .PP
3171 Here is a list of options that are \fIonly\fR for compiling Objective-C
3172 and Objective\-\*(C+ programs:
3173 .IP "\fB\-fconstant\-string\-class=\fR\fIclass-name\fR" 4
3174 .IX Item "-fconstant-string-class=class-name"
3175 Use \fIclass-name\fR as the name of the class to instantiate for each
3176 literal string specified with the syntax \f(CW\*(C`@"..."\*(C'\fR.  The default
3177 class name is \f(CW\*(C`NXConstantString\*(C'\fR if the \s-1GNU\s0 runtime is being used, and
3178 \&\f(CW\*(C`NSConstantString\*(C'\fR if the NeXT runtime is being used (see below).  The
3179 \&\fB\-fconstant\-cfstrings\fR option, if also present, overrides the
3180 \&\fB\-fconstant\-string\-class\fR setting and cause \f(CW\*(C`@"..."\*(C'\fR literals
3181 to be laid out as constant CoreFoundation strings.
3182 .IP "\fB\-fgnu\-runtime\fR" 4
3183 .IX Item "-fgnu-runtime"
3184 Generate object code compatible with the standard \s-1GNU\s0 Objective-C
3185 runtime.  This is the default for most types of systems.
3186 .IP "\fB\-fnext\-runtime\fR" 4
3187 .IX Item "-fnext-runtime"
3188 Generate output compatible with the NeXT runtime.  This is the default
3189 for NeXT-based systems, including Darwin and Mac \s-1OS X.\s0  The macro
3190 \&\f(CW\*(C`_\|_NEXT_RUNTIME_\|_\*(C'\fR is predefined if (and only if) this option is
3191 used.
3192 .IP "\fB\-fno\-nil\-receivers\fR" 4
3193 .IX Item "-fno-nil-receivers"
3194 Assume that all Objective-C message dispatches (\f(CW\*(C`[receiver
3195 message:arg]\*(C'\fR) in this translation unit ensure that the receiver is
3196 not \f(CW\*(C`nil\*(C'\fR.  This allows for more efficient entry points in the
3197 runtime to be used.  This option is only available in conjunction with
3198 the NeXT runtime and \s-1ABI\s0 version 0 or 1.
3199 .IP "\fB\-fobjc\-abi\-version=\fR\fIn\fR" 4
3200 .IX Item "-fobjc-abi-version=n"
3201 Use version \fIn\fR of the Objective-C \s-1ABI\s0 for the selected runtime.
3202 This option is currently supported only for the NeXT runtime.  In that
3203 case, Version 0 is the traditional (32\-bit) \s-1ABI\s0 without support for
3204 properties and other Objective-C 2.0 additions.  Version 1 is the
3205 traditional (32\-bit) \s-1ABI\s0 with support for properties and other
3206 Objective-C 2.0 additions.  Version 2 is the modern (64\-bit) \s-1ABI.\s0  If
3207 nothing is specified, the default is Version 0 on 32\-bit target
3208 machines, and Version 2 on 64\-bit target machines.
3209 .IP "\fB\-fobjc\-call\-cxx\-cdtors\fR" 4
3210 .IX Item "-fobjc-call-cxx-cdtors"
3211 For each Objective-C class, check if any of its instance variables is a
3212 \&\*(C+ object with a non-trivial default constructor.  If so, synthesize a
3213 special \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR instance method which runs
3214 non-trivial default constructors on any such instance variables, in order,
3215 and then return \f(CW\*(C`self\*(C'\fR.  Similarly, check if any instance variable
3216 is a \*(C+ object with a non-trivial destructor, and if so, synthesize a
3217 special \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR method which runs
3218 all such default destructors, in reverse order.
3219 .Sp
3220 The \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR and \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR
3221 methods thusly generated only operate on instance variables
3222 declared in the current Objective-C class, and not those inherited
3223 from superclasses.  It is the responsibility of the Objective-C
3224 runtime to invoke all such methods in an object's inheritance
3225 hierarchy.  The \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR methods are invoked
3226 by the runtime immediately after a new object instance is allocated;
3227 the \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods are invoked immediately
3228 before the runtime deallocates an object instance.
3229 .Sp
3230 As of this writing, only the NeXT runtime on Mac \s-1OS X 10.4\s0 and later has
3231 support for invoking the \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR and
3232 \&\f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods.
3233 .IP "\fB\-fobjc\-direct\-dispatch\fR" 4
3234 .IX Item "-fobjc-direct-dispatch"
3235 Allow fast jumps to the message dispatcher.  On Darwin this is
3236 accomplished via the comm page.
3237 .IP "\fB\-fobjc\-exceptions\fR" 4
3238 .IX Item "-fobjc-exceptions"
3239 Enable syntactic support for structured exception handling in
3240 Objective-C, similar to what is offered by \*(C+.  This option
3241 is required to use the Objective-C keywords \f(CW@try\fR,
3242 \&\f(CW@throw\fR, \f(CW@catch\fR, \f(CW@finally\fR and
3243 \&\f(CW@synchronized\fR.  This option is available with both the \s-1GNU\s0
3244 runtime and the NeXT runtime (but not available in conjunction with
3245 the NeXT runtime on Mac \s-1OS X 10.2\s0 and earlier).
3246 .IP "\fB\-fobjc\-gc\fR" 4
3247 .IX Item "-fobjc-gc"
3248 Enable garbage collection (\s-1GC\s0) in Objective-C and Objective\-\*(C+
3249 programs.  This option is only available with the NeXT runtime; the
3250 \&\s-1GNU\s0 runtime has a different garbage collection implementation that
3251 does not require special compiler flags.
3252 .IP "\fB\-fobjc\-nilcheck\fR" 4
3253 .IX Item "-fobjc-nilcheck"
3254 For the NeXT runtime with version 2 of the \s-1ABI,\s0 check for a nil
3255 receiver in method invocations before doing the actual method call.
3256 This is the default and can be disabled using
3257 \&\fB\-fno\-objc\-nilcheck\fR.  Class methods and super calls are never
3258 checked for nil in this way no matter what this flag is set to.
3259 Currently this flag does nothing when the \s-1GNU\s0 runtime, or an older
3260 version of the NeXT runtime \s-1ABI,\s0 is used.
3261 .IP "\fB\-fobjc\-std=objc1\fR" 4
3262 .IX Item "-fobjc-std=objc1"
3263 Conform to the language syntax of Objective-C 1.0, the language
3264 recognized by \s-1GCC 4.0.\s0  This only affects the Objective-C additions to
3265 the C/\*(C+ language; it does not affect conformance to C/\*(C+ standards,
3266 which is controlled by the separate C/\*(C+ dialect option flags.  When
3267 this option is used with the Objective-C or Objective\-\*(C+ compiler,
3268 any Objective-C syntax that is not recognized by \s-1GCC 4.0\s0 is rejected.
3269 This is useful if you need to make sure that your Objective-C code can
3270 be compiled with older versions of \s-1GCC.\s0
3271 .IP "\fB\-freplace\-objc\-classes\fR" 4
3272 .IX Item "-freplace-objc-classes"
3273 Emit a special marker instructing \fB\fBld\fB\|(1)\fR not to statically link in
3274 the resulting object file, and allow \fB\fBdyld\fB\|(1)\fR to load it in at
3275 run time instead.  This is used in conjunction with the Fix-and-Continue
3276 debugging mode, where the object file in question may be recompiled and
3277 dynamically reloaded in the course of program execution, without the need
3278 to restart the program itself.  Currently, Fix-and-Continue functionality
3279 is only available in conjunction with the NeXT runtime on Mac \s-1OS X 10.3\s0
3280 and later.
3281 .IP "\fB\-fzero\-link\fR" 4
3282 .IX Item "-fzero-link"
3283 When compiling for the NeXT runtime, the compiler ordinarily replaces calls
3284 to \f(CW\*(C`objc_getClass("...")\*(C'\fR (when the name of the class is known at
3285 compile time) with static class references that get initialized at load time,
3286 which improves run-time performance.  Specifying the \fB\-fzero\-link\fR flag
3287 suppresses this behavior and causes calls to \f(CW\*(C`objc_getClass("...")\*(C'\fR
3288 to be retained.  This is useful in Zero-Link debugging mode, since it allows
3289 for individual class implementations to be modified during program execution.
3290 The \s-1GNU\s0 runtime currently always retains calls to \f(CW\*(C`objc_get_class("...")\*(C'\fR
3291 regardless of command-line options.
3292 .IP "\fB\-fno\-local\-ivars\fR" 4
3293 .IX Item "-fno-local-ivars"
3294 By default instance variables in Objective-C can be accessed as if
3295 they were local variables from within the methods of the class they're
3296 declared in.  This can lead to shadowing between instance variables
3297 and other variables declared either locally inside a class method or
3298 globally with the same name.  Specifying the \fB\-fno\-local\-ivars\fR
3299 flag disables this behavior thus avoiding variable shadowing issues.
3300 .IP "\fB\-fivar\-visibility=\fR[\fBpublic\fR|\fBprotected\fR|\fBprivate\fR|\fBpackage\fR]" 4
3301 .IX Item "-fivar-visibility=[public|protected|private|package]"
3302 Set the default instance variable visibility to the specified option
3303 so that instance variables declared outside the scope of any access
3304 modifier directives default to the specified visibility.
3305 .IP "\fB\-gen\-decls\fR" 4
3306 .IX Item "-gen-decls"
3307 Dump interface declarations for all classes seen in the source file to a
3308 file named \fI\fIsourcename\fI.decl\fR.
3309 .IP "\fB\-Wassign\-intercept\fR (Objective-C and Objective\-\*(C+ only)" 4
3310 .IX Item "-Wassign-intercept (Objective-C and Objective- only)"
3311 Warn whenever an Objective-C assignment is being intercepted by the
3312 garbage collector.
3313 .IP "\fB\-Wno\-protocol\fR (Objective-C and Objective\-\*(C+ only)" 4
3314 .IX Item "-Wno-protocol (Objective-C and Objective- only)"
3315 If a class is declared to implement a protocol, a warning is issued for
3316 every method in the protocol that is not implemented by the class.  The
3317 default behavior is to issue a warning for every method not explicitly
3318 implemented in the class, even if a method implementation is inherited
3319 from the superclass.  If you use the \fB\-Wno\-protocol\fR option, then
3320 methods inherited from the superclass are considered to be implemented,
3321 and no warning is issued for them.
3322 .IP "\fB\-Wselector\fR (Objective-C and Objective\-\*(C+ only)" 4
3323 .IX Item "-Wselector (Objective-C and Objective- only)"
3324 Warn if multiple methods of different types for the same selector are
3325 found during compilation.  The check is performed on the list of methods
3326 in the final stage of compilation.  Additionally, a check is performed
3327 for each selector appearing in a \f(CW\*(C`@selector(...)\*(C'\fR
3328 expression, and a corresponding method for that selector has been found
3329 during compilation.  Because these checks scan the method table only at
3330 the end of compilation, these warnings are not produced if the final
3331 stage of compilation is not reached, for example because an error is
3332 found during compilation, or because the \fB\-fsyntax\-only\fR option is
3333 being used.
3334 .IP "\fB\-Wstrict\-selector\-match\fR (Objective-C and Objective\-\*(C+ only)" 4
3335 .IX Item "-Wstrict-selector-match (Objective-C and Objective- only)"
3336 Warn if multiple methods with differing argument and/or return types are
3337 found for a given selector when attempting to send a message using this
3338 selector to a receiver of type \f(CW\*(C`id\*(C'\fR or \f(CW\*(C`Class\*(C'\fR.  When this flag
3339 is off (which is the default behavior), the compiler omits such warnings
3340 if any differences found are confined to types that share the same size
3341 and alignment.
3342 .IP "\fB\-Wundeclared\-selector\fR (Objective-C and Objective\-\*(C+ only)" 4
3343 .IX Item "-Wundeclared-selector (Objective-C and Objective- only)"
3344 Warn if a \f(CW\*(C`@selector(...)\*(C'\fR expression referring to an
3345 undeclared selector is found.  A selector is considered undeclared if no
3346 method with that name has been declared before the
3347 \&\f(CW\*(C`@selector(...)\*(C'\fR expression, either explicitly in an
3348 \&\f(CW@interface\fR or \f(CW@protocol\fR declaration, or implicitly in
3349 an \f(CW@implementation\fR section.  This option always performs its
3350 checks as soon as a \f(CW\*(C`@selector(...)\*(C'\fR expression is found,
3351 while \fB\-Wselector\fR only performs its checks in the final stage of
3352 compilation.  This also enforces the coding style convention
3353 that methods and selectors must be declared before being used.
3354 .IP "\fB\-print\-objc\-runtime\-info\fR" 4
3355 .IX Item "-print-objc-runtime-info"
3356 Generate C header describing the largest structure that is passed by
3357 value, if any.
3358 .SS "Options to Control Diagnostic Messages Formatting"
3359 .IX Subsection "Options to Control Diagnostic Messages Formatting"
3360 Traditionally, diagnostic messages have been formatted irrespective of
3361 the output device's aspect (e.g. its width, ...).  You can use the
3362 options described below
3363 to control the formatting algorithm for diagnostic messages, 
3364 e.g. how many characters per line, how often source location
3365 information should be reported.  Note that some language front ends may not
3366 honor these options.
3367 .IP "\fB\-fmessage\-length=\fR\fIn\fR" 4
3368 .IX Item "-fmessage-length=n"
3369 Try to format error messages so that they fit on lines of about
3370 \&\fIn\fR characters.  If \fIn\fR is zero, then no line-wrapping is
3371 done; each error message appears on a single line.  This is the
3372 default for all front ends.
3373 .IP "\fB\-fdiagnostics\-show\-location=once\fR" 4
3374 .IX Item "-fdiagnostics-show-location=once"
3375 Only meaningful in line-wrapping mode.  Instructs the diagnostic messages
3376 reporter to emit source location information \fIonce\fR; that is, in
3377 case the message is too long to fit on a single physical line and has to
3378 be wrapped, the source location won't be emitted (as prefix) again,
3379 over and over, in subsequent continuation lines.  This is the default
3380 behavior.
3381 .IP "\fB\-fdiagnostics\-show\-location=every\-line\fR" 4
3382 .IX Item "-fdiagnostics-show-location=every-line"
3383 Only meaningful in line-wrapping mode.  Instructs the diagnostic
3384 messages reporter to emit the same source location information (as
3385 prefix) for physical lines that result from the process of breaking
3386 a message which is too long to fit on a single line.
3387 .IP "\fB\-fdiagnostics\-color[=\fR\fI\s-1WHEN\s0\fR\fB]\fR" 4
3388 .IX Item "-fdiagnostics-color[=WHEN]"
3389 .PD 0
3390 .IP "\fB\-fno\-diagnostics\-color\fR" 4
3391 .IX Item "-fno-diagnostics-color"
3392 .PD
3393 Use color in diagnostics.  \fI\s-1WHEN\s0\fR is \fBnever\fR, \fBalways\fR,
3394 or \fBauto\fR.  The default depends on how the compiler has been configured,
3395 it can be any of the above \fI\s-1WHEN\s0\fR options or also \fBnever\fR
3396 if \fB\s-1GCC_COLORS\s0\fR environment variable isn't present in the environment,
3397 and \fBauto\fR otherwise.
3398 \&\fBauto\fR means to use color only when the standard error is a terminal.
3399 The forms \fB\-fdiagnostics\-color\fR and \fB\-fno\-diagnostics\-color\fR are
3400 aliases for \fB\-fdiagnostics\-color=always\fR and
3401 \&\fB\-fdiagnostics\-color=never\fR, respectively.
3402 .Sp
3403 The colors are defined by the environment variable \fB\s-1GCC_COLORS\s0\fR.
3404 Its value is a colon-separated list of capabilities and Select Graphic
3405 Rendition (\s-1SGR\s0) substrings. \s-1SGR\s0 commands are interpreted by the
3406 terminal or terminal emulator.  (See the section in the documentation
3407 of your text terminal for permitted values and their meanings as
3408 character attributes.)  These substring values are integers in decimal
3409 representation and can be concatenated with semicolons.
3410 Common values to concatenate include
3411 \&\fB1\fR for bold,
3412 \&\fB4\fR for underline,
3413 \&\fB5\fR for blink,
3414 \&\fB7\fR for inverse,
3415 \&\fB39\fR for default foreground color,
3416 \&\fB30\fR to \fB37\fR for foreground colors,
3417 \&\fB90\fR to \fB97\fR for 16\-color mode foreground colors,
3418 \&\fB38;5;0\fR to \fB38;5;255\fR
3419 for 88\-color and 256\-color modes foreground colors,
3420 \&\fB49\fR for default background color,
3421 \&\fB40\fR to \fB47\fR for background colors,
3422 \&\fB100\fR to \fB107\fR for 16\-color mode background colors,
3423 and \fB48;5;0\fR to \fB48;5;255\fR
3424 for 88\-color and 256\-color modes background colors.
3425 .Sp
3426 The default \fB\s-1GCC_COLORS\s0\fR is
3427 .Sp
3428 .Vb 4
3429 \&        error=01;31:warning=01;35:note=01;36:range1=32:range2=34:locus=01:\e
3430 \&        quote=01:fixit\-insert=32:fixit\-delete=31:\e
3431 \&        diff\-filename=01:diff\-hunk=32:diff\-delete=31:diff\-insert=32:\e
3432 \&        type\-diff=01;32
3433 .Ve
3434 .Sp
3435 where \fB01;31\fR is bold red, \fB01;35\fR is bold magenta,
3436 \&\fB01;36\fR is bold cyan, \fB32\fR is green, \fB34\fR is blue,
3437 \&\fB01\fR is bold, and \fB31\fR is red.
3438 Setting \fB\s-1GCC_COLORS\s0\fR to the empty string disables colors.
3439 Supported capabilities are as follows.
3440 .RS 4
3441 .ie n .IP """error=""" 4
3442 .el .IP "\f(CWerror=\fR" 4
3443 .IX Item "error="
3444 \&\s-1SGR\s0 substring for error: markers.
3445 .ie n .IP """warning=""" 4
3446 .el .IP "\f(CWwarning=\fR" 4
3447 .IX Item "warning="
3448 \&\s-1SGR\s0 substring for warning: markers.
3449 .ie n .IP """note=""" 4
3450 .el .IP "\f(CWnote=\fR" 4
3451 .IX Item "note="
3452 \&\s-1SGR\s0 substring for note: markers.
3453 .ie n .IP """range1=""" 4
3454 .el .IP "\f(CWrange1=\fR" 4
3455 .IX Item "range1="
3456 \&\s-1SGR\s0 substring for first additional range.
3457 .ie n .IP """range2=""" 4
3458 .el .IP "\f(CWrange2=\fR" 4
3459 .IX Item "range2="
3460 \&\s-1SGR\s0 substring for second additional range.
3461 .ie n .IP """locus=""" 4
3462 .el .IP "\f(CWlocus=\fR" 4
3463 .IX Item "locus="
3464 \&\s-1SGR\s0 substring for location information, \fBfile:line\fR or
3465 \&\fBfile:line:column\fR etc.
3466 .ie n .IP """quote=""" 4
3467 .el .IP "\f(CWquote=\fR" 4
3468 .IX Item "quote="
3469 \&\s-1SGR\s0 substring for information printed within quotes.
3470 .ie n .IP """fixit\-insert=""" 4
3471 .el .IP "\f(CWfixit\-insert=\fR" 4
3472 .IX Item "fixit-insert="
3473 \&\s-1SGR\s0 substring for fix-it hints suggesting text to
3474 be inserted or replaced.
3475 .ie n .IP """fixit\-delete=""" 4
3476 .el .IP "\f(CWfixit\-delete=\fR" 4
3477 .IX Item "fixit-delete="
3478 \&\s-1SGR\s0 substring for fix-it hints suggesting text to
3479 be deleted.
3480 .ie n .IP """diff\-filename=""" 4
3481 .el .IP "\f(CWdiff\-filename=\fR" 4
3482 .IX Item "diff-filename="
3483 \&\s-1SGR\s0 substring for filename headers within generated patches.
3484 .ie n .IP """diff\-hunk=""" 4
3485 .el .IP "\f(CWdiff\-hunk=\fR" 4
3486 .IX Item "diff-hunk="
3487 \&\s-1SGR\s0 substring for the starts of hunks within generated patches.
3488 .ie n .IP """diff\-delete=""" 4
3489 .el .IP "\f(CWdiff\-delete=\fR" 4
3490 .IX Item "diff-delete="
3491 \&\s-1SGR\s0 substring for deleted lines within generated patches.
3492 .ie n .IP """diff\-insert=""" 4
3493 .el .IP "\f(CWdiff\-insert=\fR" 4
3494 .IX Item "diff-insert="
3495 \&\s-1SGR\s0 substring for inserted lines within generated patches.
3496 .ie n .IP """type\-diff=""" 4
3497 .el .IP "\f(CWtype\-diff=\fR" 4
3498 .IX Item "type-diff="
3499 \&\s-1SGR\s0 substring for highlighting mismatching types within template
3500 arguments in the \*(C+ frontend.
3501 .RE
3502 .RS 4
3503 .RE
3504 .IP "\fB\-fno\-diagnostics\-show\-option\fR" 4
3505 .IX Item "-fno-diagnostics-show-option"
3506 By default, each diagnostic emitted includes text indicating the
3507 command-line option that directly controls the diagnostic (if such an
3508 option is known to the diagnostic machinery).  Specifying the
3509 \&\fB\-fno\-diagnostics\-show\-option\fR flag suppresses that behavior.
3510 .IP "\fB\-fno\-diagnostics\-show\-caret\fR" 4
3511 .IX Item "-fno-diagnostics-show-caret"
3512 By default, each diagnostic emitted includes the original source line
3513 and a caret \fB^\fR indicating the column.  This option suppresses this
3514 information.  The source line is truncated to \fIn\fR characters, if
3515 the \fB\-fmessage\-length=n\fR option is given.  When the output is done
3516 to the terminal, the width is limited to the width given by the
3517 \&\fB\s-1COLUMNS\s0\fR environment variable or, if not set, to the terminal width.
3518 .IP "\fB\-fdiagnostics\-parseable\-fixits\fR" 4
3519 .IX Item "-fdiagnostics-parseable-fixits"
3520 Emit fix-it hints in a machine-parseable format, suitable for consumption
3521 by IDEs.  For each fix-it, a line will be printed after the relevant
3522 diagnostic, starting with the string \*(L"fix-it:\*(R".  For example:
3523 .Sp
3524 .Vb 1
3525 \&        fix\-it:"test.c":{45:3\-45:21}:"gtk_widget_show_all"
3526 .Ve
3527 .Sp
3528 The location is expressed as a half-open range, expressed as a count of
3529 bytes, starting at byte 1 for the initial column.  In the above example,
3530 bytes 3 through 20 of line 45 of \*(L"test.c\*(R" are to be replaced with the
3531 given string:
3532 .Sp
3533 .Vb 5
3534 \&        00000000011111111112222222222
3535 \&        12345678901234567890123456789
3536 \&          gtk_widget_showall (dlg);
3537 \&          ^^^^^^^^^^^^^^^^^^
3538 \&          gtk_widget_show_all
3539 .Ve
3540 .Sp
3541 The filename and replacement string escape backslash as \*(L"\e\e\*(R", tab as \*(L"\et\*(R",
3542 newline as \*(L"\en\*(R", double quotes as \*(L"\e\*(R"\*(L", non-printable characters as octal
3543 (e.g. vertical tab as \*(R"\e013").
3544 .Sp
3545 An empty replacement string indicates that the given range is to be removed.
3546 An empty range (e.g. \*(L"45:3\-45:3\*(R") indicates that the string is to
3547 be inserted at the given position.
3548 .IP "\fB\-fdiagnostics\-generate\-patch\fR" 4
3549 .IX Item "-fdiagnostics-generate-patch"
3550 Print fix-it hints to stderr in unified diff format, after any diagnostics
3551 are printed.  For example:
3552 .Sp
3553 .Vb 3
3554 \&        \-\-\- test.c
3555 \&        +++ test.c
3556 \&        @ \-42,5 +42,5 @
3557 \&        
3558 \&         void show_cb(GtkDialog *dlg)
3559 \&         {
3560 \&        \-  gtk_widget_showall(dlg);
3561 \&        +  gtk_widget_show_all(dlg);
3562 \&         }
3563 .Ve
3564 .Sp
3565 The diff may or may not be colorized, following the same rules
3566 as for diagnostics (see \fB\-fdiagnostics\-color\fR).
3567 .IP "\fB\-fdiagnostics\-show\-template\-tree\fR" 4
3568 .IX Item "-fdiagnostics-show-template-tree"
3569 In the \*(C+ frontend, when printing diagnostics showing mismatching
3570 template types, such as:
3571 .Sp
3572 .Vb 2
3573 \&          could not convert \*(Aqstd::map<int, std::vector<double> >()\*(Aq
3574 \&            from \*(Aqmap<[...],vector<double>>\*(Aq to \*(Aqmap<[...],vector<float>>
3575 .Ve
3576 .Sp
3577 the \fB\-fdiagnostics\-show\-template\-tree\fR flag enables printing a
3578 tree-like structure showing the common and differing parts of the types,
3579 such as:
3580 .Sp
3581 .Vb 4
3582 \&          map<
3583 \&            [...],
3584 \&            vector<
3585 \&              [double != float]>>
3586 .Ve
3587 .Sp
3588 The parts that differ are highlighted with color (\*(L"double\*(R" and
3589 \&\*(L"float\*(R" in this case).
3590 .IP "\fB\-fno\-elide\-type\fR" 4
3591 .IX Item "-fno-elide-type"
3592 By default when the \*(C+ frontend prints diagnostics showing mismatching
3593 template types, common parts of the types are printed as \*(L"[...]\*(R" to
3594 simplify the error message.  For example:
3595 .Sp
3596 .Vb 2
3597 \&          could not convert \*(Aqstd::map<int, std::vector<double> >()\*(Aq
3598 \&            from \*(Aqmap<[...],vector<double>>\*(Aq to \*(Aqmap<[...],vector<float>>
3599 .Ve
3600 .Sp
3601 Specifying the \fB\-fno\-elide\-type\fR flag suppresses that behavior.
3602 This flag also affects the output of the
3603 \&\fB\-fdiagnostics\-show\-template\-tree\fR flag.
3604 .IP "\fB\-fno\-show\-column\fR" 4
3605 .IX Item "-fno-show-column"
3606 Do not print column numbers in diagnostics.  This may be necessary if
3607 diagnostics are being scanned by a program that does not understand the
3608 column numbers, such as \fBdejagnu\fR.
3609 .SS "Options to Request or Suppress Warnings"
3610 .IX Subsection "Options to Request or Suppress Warnings"
3611 Warnings are diagnostic messages that report constructions that
3612 are not inherently erroneous but that are risky or suggest there
3613 may have been an error.
3614 .PP
3615 The following language-independent options do not enable specific
3616 warnings but control the kinds of diagnostics produced by \s-1GCC.\s0
3617 .IP "\fB\-fsyntax\-only\fR" 4
3618 .IX Item "-fsyntax-only"
3619 Check the code for syntax errors, but don't do anything beyond that.
3620 .IP "\fB\-fmax\-errors=\fR\fIn\fR" 4
3621 .IX Item "-fmax-errors=n"
3622 Limits the maximum number of error messages to \fIn\fR, at which point
3623 \&\s-1GCC\s0 bails out rather than attempting to continue processing the source
3624 code.  If \fIn\fR is 0 (the default), there is no limit on the number
3625 of error messages produced.  If \fB\-Wfatal\-errors\fR is also
3626 specified, then \fB\-Wfatal\-errors\fR takes precedence over this
3627 option.
3628 .IP "\fB\-w\fR" 4
3629 .IX Item "-w"
3630 Inhibit all warning messages.
3631 .IP "\fB\-Werror\fR" 4
3632 .IX Item "-Werror"
3633 Make all warnings into errors.
3634 .IP "\fB\-Werror=\fR" 4
3635 .IX Item "-Werror="
3636 Make the specified warning into an error.  The specifier for a warning
3637 is appended; for example \fB\-Werror=switch\fR turns the warnings
3638 controlled by \fB\-Wswitch\fR into errors.  This switch takes a
3639 negative form, to be used to negate \fB\-Werror\fR for specific
3640 warnings; for example \fB\-Wno\-error=switch\fR makes
3641 \&\fB\-Wswitch\fR warnings not be errors, even when \fB\-Werror\fR
3642 is in effect.
3643 .Sp
3644 The warning message for each controllable warning includes the
3645 option that controls the warning.  That option can then be used with
3646 \&\fB\-Werror=\fR and \fB\-Wno\-error=\fR as described above.
3647 (Printing of the option in the warning message can be disabled using the
3648 \&\fB\-fno\-diagnostics\-show\-option\fR flag.)
3649 .Sp
3650 Note that specifying \fB\-Werror=\fR\fIfoo\fR automatically implies
3651 \&\fB\-W\fR\fIfoo\fR.  However, \fB\-Wno\-error=\fR\fIfoo\fR does not
3652 imply anything.
3653 .IP "\fB\-Wfatal\-errors\fR" 4
3654 .IX Item "-Wfatal-errors"
3655 This option causes the compiler to abort compilation on the first error
3656 occurred rather than trying to keep going and printing further error
3657 messages.
3658 .PP
3659 You can request many specific warnings with options beginning with
3660 \&\fB\-W\fR, for example \fB\-Wimplicit\fR to request warnings on
3661 implicit declarations.  Each of these specific warning options also
3662 has a negative form beginning \fB\-Wno\-\fR to turn off warnings; for
3663 example, \fB\-Wno\-implicit\fR.  This manual lists only one of the
3664 two forms, whichever is not the default.  For further
3665 language-specific options also refer to \fB\*(C+ Dialect Options\fR and
3666 \&\fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
3667 .PP
3668 Some options, such as \fB\-Wall\fR and \fB\-Wextra\fR, turn on other
3669 options, such as \fB\-Wunused\fR, which may turn on further options,
3670 such as \fB\-Wunused\-value\fR. The combined effect of positive and
3671 negative forms is that more specific options have priority over less
3672 specific ones, independently of their position in the command-line. For
3673 options of the same specificity, the last one takes effect. Options
3674 enabled or disabled via pragmas take effect
3675 as if they appeared at the end of the command-line.
3676 .PP
3677 When an unrecognized warning option is requested (e.g.,
3678 \&\fB\-Wunknown\-warning\fR), \s-1GCC\s0 emits a diagnostic stating
3679 that the option is not recognized.  However, if the \fB\-Wno\-\fR form
3680 is used, the behavior is slightly different: no diagnostic is
3681 produced for \fB\-Wno\-unknown\-warning\fR unless other diagnostics
3682 are being produced.  This allows the use of new \fB\-Wno\-\fR options
3683 with old compilers, but if something goes wrong, the compiler
3684 warns that an unrecognized option is present.
3685 .IP "\fB\-Wpedantic\fR" 4
3686 .IX Item "-Wpedantic"
3687 .PD 0
3688 .IP "\fB\-pedantic\fR" 4
3689 .IX Item "-pedantic"
3690 .PD
3691 Issue all the warnings demanded by strict \s-1ISO C\s0 and \s-1ISO \*(C+\s0;
3692 reject all programs that use forbidden extensions, and some other
3693 programs that do not follow \s-1ISO C\s0 and \s-1ISO \*(C+.\s0  For \s-1ISO C,\s0 follows the
3694 version of the \s-1ISO C\s0 standard specified by any \fB\-std\fR option used.
3695 .Sp
3696 Valid \s-1ISO C\s0 and \s-1ISO \*(C+\s0 programs should compile properly with or without
3697 this option (though a rare few require \fB\-ansi\fR or a
3698 \&\fB\-std\fR option specifying the required version of \s-1ISO C\s0).  However,
3699 without this option, certain \s-1GNU\s0 extensions and traditional C and \*(C+
3700 features are supported as well.  With this option, they are rejected.
3701 .Sp
3702 \&\fB\-Wpedantic\fR does not cause warning messages for use of the
3703 alternate keywords whose names begin and end with \fB_\|_\fR.  Pedantic
3704 warnings are also disabled in the expression that follows
3705 \&\f(CW\*(C`_\|_extension_\|_\*(C'\fR.  However, only system header files should use
3706 these escape routes; application programs should avoid them.
3707 .Sp
3708 Some users try to use \fB\-Wpedantic\fR to check programs for strict \s-1ISO
3709 C\s0 conformance.  They soon find that it does not do quite what they want:
3710 it finds some non-ISO practices, but not all\-\-\-only those for which
3711 \&\s-1ISO C\s0 \fIrequires\fR a diagnostic, and some others for which
3712 diagnostics have been added.
3713 .Sp
3714 A feature to report any failure to conform to \s-1ISO C\s0 might be useful in
3715 some instances, but would require considerable additional work and would
3716 be quite different from \fB\-Wpedantic\fR.  We don't have plans to
3717 support such a feature in the near future.
3718 .Sp
3719 Where the standard specified with \fB\-std\fR represents a \s-1GNU\s0
3720 extended dialect of C, such as \fBgnu90\fR or \fBgnu99\fR, there is a
3721 corresponding \fIbase standard\fR, the version of \s-1ISO C\s0 on which the \s-1GNU\s0
3722 extended dialect is based.  Warnings from \fB\-Wpedantic\fR are given
3723 where they are required by the base standard.  (It does not make sense
3724 for such warnings to be given only for features not in the specified \s-1GNU
3725 C\s0 dialect, since by definition the \s-1GNU\s0 dialects of C include all
3726 features the compiler supports with the given option, and there would be
3727 nothing to warn about.)
3728 .IP "\fB\-pedantic\-errors\fR" 4
3729 .IX Item "-pedantic-errors"
3730 Give an error whenever the \fIbase standard\fR (see \fB\-Wpedantic\fR)
3731 requires a diagnostic, in some cases where there is undefined behavior
3732 at compile-time and in some other cases that do not prevent compilation
3733 of programs that are valid according to the standard. This is not
3734 equivalent to \fB\-Werror=pedantic\fR, since there are errors enabled
3735 by this option and not enabled by the latter and vice versa.
3736 .IP "\fB\-Wall\fR" 4
3737 .IX Item "-Wall"
3738 This enables all the warnings about constructions that some users
3739 consider questionable, and that are easy to avoid (or modify to
3740 prevent the warning), even in conjunction with macros.  This also
3741 enables some language-specific warnings described in \fB\*(C+ Dialect
3742 Options\fR and \fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
3743 .Sp
3744 \&\fB\-Wall\fR turns on the following warning flags:
3745 .Sp
3746 \&\fB\-Waddress   
3747 \&\-Warray\-bounds=1\fR (only with\fB \fR\fB\-O2\fR)  
3748 \&\fB\-Wbool\-compare  
3749 \&\-Wbool\-operation  
3750 \&\-Wc++11\-compat  \-Wc++14\-compat  
3751 \&\-Wcatch\-value\fR (\*(C+ and Objective\-\*(C+ only)  
3752 \&\fB\-Wchar\-subscripts  
3753 \&\-Wcomment  
3754 \&\-Wduplicate\-decl\-specifier\fR (C and Objective-C only) 
3755 \&\fB\-Wenum\-compare\fR (in C/ObjC; this is on by default in \*(C+) 
3756 \&\fB\-Wformat   
3757 \&\-Wint\-in\-bool\-context  
3758 \&\-Wimplicit\fR (C and Objective-C only) 
3759 \&\fB\-Wimplicit\-int\fR (C and Objective-C only) 
3760 \&\fB\-Wimplicit\-function\-declaration\fR (C and Objective-C only) 
3761 \&\fB\-Winit\-self\fR (only for \*(C+) 
3762 \&\fB\-Wlogical\-not\-parentheses 
3763 \&\-Wmain\fR (only for C/ObjC and unless\fB \fR\fB\-ffreestanding\fR)  
3764 \&\fB\-Wmaybe\-uninitialized 
3765 \&\-Wmemset\-elt\-size 
3766 \&\-Wmemset\-transposed\-args 
3767 \&\-Wmisleading\-indentation\fR (only for C/\*(C+) 
3768 \&\fB\-Wmissing\-attributes 
3769 \&\-Wmissing\-braces\fR (only for C/ObjC) 
3770 \&\fB\-Wmultistatement\-macros  
3771 \&\-Wnarrowing\fR (only for \*(C+)  
3772 \&\fB\-Wnonnull  
3773 \&\-Wnonnull\-compare  
3774 \&\-Wopenmp\-simd 
3775 \&\-Wparentheses  
3776 \&\-Wpointer\-sign  
3777 \&\-Wreorder   
3778 \&\-Wrestrict   
3779 \&\-Wreturn\-type  
3780 \&\-Wsequence\-point  
3781 \&\-Wsign\-compare\fR (only in \*(C+)  
3782 \&\fB\-Wsizeof\-pointer\-div 
3783 \&\-Wsizeof\-pointer\-memaccess 
3784 \&\-Wstrict\-aliasing  
3785 \&\-Wstrict\-overflow=1  
3786 \&\-Wstringop\-truncation  
3787 \&\-Wswitch  
3788 \&\-Wtautological\-compare  
3789 \&\-Wtrigraphs  
3790 \&\-Wuninitialized  
3791 \&\-Wunknown\-pragmas  
3792 \&\-Wunused\-function  
3793 \&\-Wunused\-label     
3794 \&\-Wunused\-value     
3795 \&\-Wunused\-variable  
3796 \&\-Wvolatile\-register\-var\fR
3797 .Sp
3798 Note that some warning flags are not implied by \fB\-Wall\fR.  Some of
3799 them warn about constructions that users generally do not consider
3800 questionable, but which occasionally you might wish to check for;
3801 others warn about constructions that are necessary or hard to avoid in
3802 some cases, and there is no simple way to modify the code to suppress
3803 the warning. Some of them are enabled by \fB\-Wextra\fR but many of
3804 them must be enabled individually.
3805 .IP "\fB\-Wextra\fR" 4
3806 .IX Item "-Wextra"
3807 This enables some extra warning flags that are not enabled by
3808 \&\fB\-Wall\fR. (This option used to be called \fB\-W\fR.  The older
3809 name is still supported, but the newer name is more descriptive.)
3810 .Sp
3811 \&\fB\-Wclobbered  
3812 \&\-Wcast\-function\-type  
3813 \&\-Wempty\-body  
3814 \&\-Wignored\-qualifiers 
3815 \&\-Wimplicit\-fallthrough=3 
3816 \&\-Wmissing\-field\-initializers  
3817 \&\-Wmissing\-parameter\-type\fR (C only)  
3818 \&\fB\-Wold\-style\-declaration\fR (C only)  
3819 \&\fB\-Woverride\-init  
3820 \&\-Wsign\-compare\fR (C only) 
3821 \&\fB\-Wtype\-limits  
3822 \&\-Wuninitialized  
3823 \&\-Wshift\-negative\-value\fR (in \*(C+03 and in C99 and newer)  
3824 \&\fB\-Wunused\-parameter\fR (only with\fB \fR\fB\-Wunused\fR\fB \fRor\fB \fR\fB\-Wall\fR) 
3825 \&\fB\-Wunused\-but\-set\-parameter\fR (only with\fB \fR\fB\-Wunused\fR\fB \fRor\fB \fR\fB\-Wall\fR)  \fB \fR
3826 .Sp
3827 The option \fB\-Wextra\fR also prints warning messages for the
3828 following cases:
3829 .RS 4
3830 .IP "*" 4
3831 A pointer is compared against integer zero with \f(CW\*(C`<\*(C'\fR, \f(CW\*(C`<=\*(C'\fR,
3832 \&\f(CW\*(C`>\*(C'\fR, or \f(CW\*(C`>=\*(C'\fR.
3833 .IP "*" 4
3834 (\*(C+ only) An enumerator and a non-enumerator both appear in a
3835 conditional expression.
3836 .IP "*" 4
3837 (\*(C+ only) Ambiguous virtual bases.
3838 .IP "*" 4
3839 (\*(C+ only) Subscripting an array that has been declared \f(CW\*(C`register\*(C'\fR.
3840 .IP "*" 4
3841 (\*(C+ only) Taking the address of a variable that has been declared
3842 \&\f(CW\*(C`register\*(C'\fR.
3843 .IP "*" 4
3844 (\*(C+ only) A base class is not initialized in the copy constructor
3845 of a derived class.
3846 .RE
3847 .RS 4
3848 .RE
3849 .IP "\fB\-Wchar\-subscripts\fR" 4
3850 .IX Item "-Wchar-subscripts"
3851 Warn if an array subscript has type \f(CW\*(C`char\*(C'\fR.  This is a common cause
3852 of error, as programmers often forget that this type is signed on some
3853 machines.
3854 This warning is enabled by \fB\-Wall\fR.
3855 .IP "\fB\-Wchkp\fR" 4
3856 .IX Item "-Wchkp"
3857 Warn about an invalid memory access that is found by Pointer Bounds Checker
3858 (\fB\-fcheck\-pointer\-bounds\fR).
3859 .IP "\fB\-Wno\-coverage\-mismatch\fR" 4
3860 .IX Item "-Wno-coverage-mismatch"
3861 Warn if feedback profiles do not match when using the
3862 \&\fB\-fprofile\-use\fR option.
3863 If a source file is changed between compiling with \fB\-fprofile\-gen\fR and
3864 with \fB\-fprofile\-use\fR, the files with the profile feedback can fail
3865 to match the source file and \s-1GCC\s0 cannot use the profile feedback
3866 information.  By default, this warning is enabled and is treated as an
3867 error.  \fB\-Wno\-coverage\-mismatch\fR can be used to disable the
3868 warning or \fB\-Wno\-error=coverage\-mismatch\fR can be used to
3869 disable the error.  Disabling the error for this warning can result in
3870 poorly optimized code and is useful only in the
3871 case of very minor changes such as bug fixes to an existing code-base.
3872 Completely disabling the warning is not recommended.
3873 .IP "\fB\-Wno\-cpp\fR" 4
3874 .IX Item "-Wno-cpp"
3875 (C, Objective-C, \*(C+, Objective\-\*(C+ and Fortran only)
3876 .Sp
3877 Suppress warning messages emitted by \f(CW\*(C`#warning\*(C'\fR directives.
3878 .IP "\fB\-Wdouble\-promotion\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
3879 .IX Item "-Wdouble-promotion (C, , Objective-C and Objective- only)"
3880 Give a warning when a value of type \f(CW\*(C`float\*(C'\fR is implicitly
3881 promoted to \f(CW\*(C`double\*(C'\fR.  CPUs with a 32\-bit \*(L"single-precision\*(R"
3882 floating-point unit implement \f(CW\*(C`float\*(C'\fR in hardware, but emulate
3883 \&\f(CW\*(C`double\*(C'\fR in software.  On such a machine, doing computations
3884 using \f(CW\*(C`double\*(C'\fR values is much more expensive because of the
3885 overhead required for software emulation.
3886 .Sp
3887 It is easy to accidentally do computations with \f(CW\*(C`double\*(C'\fR because
3888 floating-point literals are implicitly of type \f(CW\*(C`double\*(C'\fR.  For
3889 example, in:
3890 .Sp
3891 .Vb 4
3892 \&        float area(float radius)
3893 \&        {
3894 \&           return 3.14159 * radius * radius;
3895 \&        }
3896 .Ve
3897 .Sp
3898 the compiler performs the entire computation with \f(CW\*(C`double\*(C'\fR
3899 because the floating-point literal is a \f(CW\*(C`double\*(C'\fR.
3900 .IP "\fB\-Wduplicate\-decl\-specifier\fR (C and Objective-C only)" 4
3901 .IX Item "-Wduplicate-decl-specifier (C and Objective-C only)"
3902 Warn if a declaration has duplicate \f(CW\*(C`const\*(C'\fR, \f(CW\*(C`volatile\*(C'\fR,
3903 \&\f(CW\*(C`restrict\*(C'\fR or \f(CW\*(C`_Atomic\*(C'\fR specifier.  This warning is enabled by
3904 \&\fB\-Wall\fR.
3905 .IP "\fB\-Wformat\fR" 4
3906 .IX Item "-Wformat"
3907 .PD 0
3908 .IP "\fB\-Wformat=\fR\fIn\fR" 4
3909 .IX Item "-Wformat=n"
3910 .PD
3911 Check calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR, etc., to make sure that
3912 the arguments supplied have types appropriate to the format string
3913 specified, and that the conversions specified in the format string make
3914 sense.  This includes standard functions, and others specified by format
3915 attributes, in the \f(CW\*(C`printf\*(C'\fR,
3916 \&\f(CW\*(C`scanf\*(C'\fR, \f(CW\*(C`strftime\*(C'\fR and \f(CW\*(C`strfmon\*(C'\fR (an X/Open extension,
3917 not in the C standard) families (or other target-specific families).
3918 Which functions are checked without format attributes having been
3919 specified depends on the standard version selected, and such checks of
3920 functions without the attribute specified are disabled by
3921 \&\fB\-ffreestanding\fR or \fB\-fno\-builtin\fR.
3922 .Sp
3923 The formats are checked against the format features supported by \s-1GNU\s0
3924 libc version 2.2.  These include all \s-1ISO C90\s0 and C99 features, as well
3925 as features from the Single Unix Specification and some \s-1BSD\s0 and \s-1GNU\s0
3926 extensions.  Other library implementations may not support all these
3927 features; \s-1GCC\s0 does not support warning about features that go beyond a
3928 particular library's limitations.  However, if \fB\-Wpedantic\fR is used
3929 with \fB\-Wformat\fR, warnings are given about format features not
3930 in the selected standard version (but not for \f(CW\*(C`strfmon\*(C'\fR formats,
3931 since those are not in any version of the C standard).
3932 .RS 4
3933 .IP "\fB\-Wformat=1\fR" 4
3934 .IX Item "-Wformat=1"
3935 .PD 0
3936 .IP "\fB\-Wformat\fR" 4
3937 .IX Item "-Wformat"
3938 .PD
3939 Option \fB\-Wformat\fR is equivalent to \fB\-Wformat=1\fR, and
3940 \&\fB\-Wno\-format\fR is equivalent to \fB\-Wformat=0\fR.  Since
3941 \&\fB\-Wformat\fR also checks for null format arguments for several
3942 functions, \fB\-Wformat\fR also implies \fB\-Wnonnull\fR.  Some
3943 aspects of this level of format checking can be disabled by the
3944 options: \fB\-Wno\-format\-contains\-nul\fR,
3945 \&\fB\-Wno\-format\-extra\-args\fR, and \fB\-Wno\-format\-zero\-length\fR.
3946 \&\fB\-Wformat\fR is enabled by \fB\-Wall\fR.
3947 .IP "\fB\-Wno\-format\-contains\-nul\fR" 4
3948 .IX Item "-Wno-format-contains-nul"
3949 If \fB\-Wformat\fR is specified, do not warn about format strings that
3950 contain \s-1NUL\s0 bytes.
3951 .IP "\fB\-Wno\-format\-extra\-args\fR" 4
3952 .IX Item "-Wno-format-extra-args"
3953 If \fB\-Wformat\fR is specified, do not warn about excess arguments to a
3954 \&\f(CW\*(C`printf\*(C'\fR or \f(CW\*(C`scanf\*(C'\fR format function.  The C standard specifies
3955 that such arguments are ignored.
3956 .Sp
3957 Where the unused arguments lie between used arguments that are
3958 specified with \fB$\fR operand number specifications, normally
3959 warnings are still given, since the implementation could not know what
3960 type to pass to \f(CW\*(C`va_arg\*(C'\fR to skip the unused arguments.  However,
3961 in the case of \f(CW\*(C`scanf\*(C'\fR formats, this option suppresses the
3962 warning if the unused arguments are all pointers, since the Single
3963 Unix Specification says that such unused arguments are allowed.
3964 .IP "\fB\-Wformat\-overflow\fR" 4
3965 .IX Item "-Wformat-overflow"
3966 .PD 0
3967 .IP "\fB\-Wformat\-overflow=\fR\fIlevel\fR" 4
3968 .IX Item "-Wformat-overflow=level"
3969 .PD
3970 Warn about calls to formatted input/output functions such as \f(CW\*(C`sprintf\*(C'\fR
3971 and \f(CW\*(C`vsprintf\*(C'\fR that might overflow the destination buffer.  When the
3972 exact number of bytes written by a format directive cannot be determined
3973 at compile-time it is estimated based on heuristics that depend on the
3974 \&\fIlevel\fR argument and on optimization.  While enabling optimization
3975 will in most cases improve the accuracy of the warning, it may also
3976 result in false positives.
3977 .RS 4
3978 .IP "\fB\-Wformat\-overflow\fR" 4
3979 .IX Item "-Wformat-overflow"
3980 .PD 0
3981 .IP "\fB\-Wformat\-overflow=1\fR" 4
3982 .IX Item "-Wformat-overflow=1"
3983 .PD
3984 Level \fI1\fR of \fB\-Wformat\-overflow\fR enabled by \fB\-Wformat\fR
3985 employs a conservative approach that warns only about calls that most
3986 likely overflow the buffer.  At this level, numeric arguments to format
3987 directives with unknown values are assumed to have the value of one, and
3988 strings of unknown length to be empty.  Numeric arguments that are known
3989 to be bounded to a subrange of their type, or string arguments whose output
3990 is bounded either by their directive's precision or by a finite set of
3991 string literals, are assumed to take on the value within the range that
3992 results in the most bytes on output.  For example, the call to \f(CW\*(C`sprintf\*(C'\fR
3993 below is diagnosed because even with both \fIa\fR and \fIb\fR equal to zero,
3994 the terminating \s-1NUL\s0 character (\f(CW\*(Aq\e0\*(Aq\fR) appended by the function
3995 to the destination buffer will be written past its end.  Increasing
3996 the size of the buffer by a single byte is sufficient to avoid the
3997 warning, though it may not be sufficient to avoid the overflow.
3998 .Sp
3999 .Vb 5
4000 \&        void f (int a, int b)
4001 \&        {
4002 \&          char buf [13];
4003 \&          sprintf (buf, "a = %i, b = %i\en", a, b);
4004 \&        }
4005 .Ve
4006 .IP "\fB\-Wformat\-overflow=2\fR" 4
4007 .IX Item "-Wformat-overflow=2"
4008 Level \fI2\fR warns also about calls that might overflow the destination
4009 buffer given an argument of sufficient length or magnitude.  At level
4010 \&\fI2\fR, unknown numeric arguments are assumed to have the minimum
4011 representable value for signed types with a precision greater than 1, and
4012 the maximum representable value otherwise.  Unknown string arguments whose
4013 length cannot be assumed to be bounded either by the directive's precision,
4014 or by a finite set of string literals they may evaluate to, or the character
4015 array they may point to, are assumed to be 1 character long.
4016 .Sp
4017 At level \fI2\fR, the call in the example above is again diagnosed, but
4018 this time because with \fIa\fR equal to a 32\-bit \f(CW\*(C`INT_MIN\*(C'\fR the first
4019 \&\f(CW%i\fR directive will write some of its digits beyond the end of
4020 the destination buffer.  To make the call safe regardless of the values
4021 of the two variables, the size of the destination buffer must be increased
4022 to at least 34 bytes.  \s-1GCC\s0 includes the minimum size of the buffer in
4023 an informational note following the warning.
4024 .Sp
4025 An alternative to increasing the size of the destination buffer is to
4026 constrain the range of formatted values.  The maximum length of string
4027 arguments can be bounded by specifying the precision in the format
4028 directive.  When numeric arguments of format directives can be assumed
4029 to be bounded by less than the precision of their type, choosing
4030 an appropriate length modifier to the format specifier will reduce
4031 the required buffer size.  For example, if \fIa\fR and \fIb\fR in the
4032 example above can be assumed to be within the precision of
4033 the \f(CW\*(C`short int\*(C'\fR type then using either the \f(CW%hi\fR format
4034 directive or casting the argument to \f(CW\*(C`short\*(C'\fR reduces the maximum
4035 required size of the buffer to 24 bytes.
4036 .Sp
4037 .Vb 5
4038 \&        void f (int a, int b)
4039 \&        {
4040 \&          char buf [23];
4041 \&          sprintf (buf, "a = %hi, b = %i\en", a, (short)b);
4042 \&        }
4043 .Ve
4044 .RE
4045 .RS 4
4046 .RE
4047 .IP "\fB\-Wno\-format\-zero\-length\fR" 4
4048 .IX Item "-Wno-format-zero-length"
4049 If \fB\-Wformat\fR is specified, do not warn about zero-length formats.
4050 The C standard specifies that zero-length formats are allowed.
4051 .IP "\fB\-Wformat=2\fR" 4
4052 .IX Item "-Wformat=2"
4053 Enable \fB\-Wformat\fR plus additional format checks.  Currently
4054 equivalent to \fB\-Wformat \-Wformat\-nonliteral \-Wformat\-security
4055 \&\-Wformat\-y2k\fR.
4056 .IP "\fB\-Wformat\-nonliteral\fR" 4
4057 .IX Item "-Wformat-nonliteral"
4058 If \fB\-Wformat\fR is specified, also warn if the format string is not a
4059 string literal and so cannot be checked, unless the format function
4060 takes its format arguments as a \f(CW\*(C`va_list\*(C'\fR.
4061 .IP "\fB\-Wformat\-security\fR" 4
4062 .IX Item "-Wformat-security"
4063 If \fB\-Wformat\fR is specified, also warn about uses of format
4064 functions that represent possible security problems.  At present, this
4065 warns about calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR functions where the
4066 format string is not a string literal and there are no format arguments,
4067 as in \f(CW\*(C`printf (foo);\*(C'\fR.  This may be a security hole if the format
4068 string came from untrusted input and contains \fB\f(CB%n\fB\fR.  (This is
4069 currently a subset of what \fB\-Wformat\-nonliteral\fR warns about, but
4070 in future warnings may be added to \fB\-Wformat\-security\fR that are not
4071 included in \fB\-Wformat\-nonliteral\fR.)
4072 .IP "\fB\-Wformat\-signedness\fR" 4
4073 .IX Item "-Wformat-signedness"
4074 If \fB\-Wformat\fR is specified, also warn if the format string
4075 requires an unsigned argument and the argument is signed and vice versa.
4076 .IP "\fB\-Wformat\-truncation\fR" 4
4077 .IX Item "-Wformat-truncation"
4078 .PD 0
4079 .IP "\fB\-Wformat\-truncation=\fR\fIlevel\fR" 4
4080 .IX Item "-Wformat-truncation=level"
4081 .PD
4082 Warn about calls to formatted input/output functions such as \f(CW\*(C`snprintf\*(C'\fR
4083 and \f(CW\*(C`vsnprintf\*(C'\fR that might result in output truncation.  When the exact
4084 number of bytes written by a format directive cannot be determined at
4085 compile-time it is estimated based on heuristics that depend on
4086 the \fIlevel\fR argument and on optimization.  While enabling optimization
4087 will in most cases improve the accuracy of the warning, it may also result
4088 in false positives.  Except as noted otherwise, the option uses the same
4089 logic \fB\-Wformat\-overflow\fR.
4090 .RS 4
4091 .IP "\fB\-Wformat\-truncation\fR" 4
4092 .IX Item "-Wformat-truncation"
4093 .PD 0
4094 .IP "\fB\-Wformat\-truncation=1\fR" 4
4095 .IX Item "-Wformat-truncation=1"
4096 .PD
4097 Level \fI1\fR of \fB\-Wformat\-truncation\fR enabled by \fB\-Wformat\fR
4098 employs a conservative approach that warns only about calls to bounded
4099 functions whose return value is unused and that will most likely result
4100 in output truncation.
4101 .IP "\fB\-Wformat\-truncation=2\fR" 4
4102 .IX Item "-Wformat-truncation=2"
4103 Level \fI2\fR warns also about calls to bounded functions whose return
4104 value is used and that might result in truncation given an argument of
4105 sufficient length or magnitude.
4106 .RE
4107 .RS 4
4108 .RE
4109 .IP "\fB\-Wformat\-y2k\fR" 4
4110 .IX Item "-Wformat-y2k"
4111 If \fB\-Wformat\fR is specified, also warn about \f(CW\*(C`strftime\*(C'\fR
4112 formats that may yield only a two-digit year.
4113 .RE
4114 .RS 4
4115 .RE
4116 .IP "\fB\-Wnonnull\fR" 4
4117 .IX Item "-Wnonnull"
4118 Warn about passing a null pointer for arguments marked as
4119 requiring a non-null value by the \f(CW\*(C`nonnull\*(C'\fR function attribute.
4120 .Sp
4121 \&\fB\-Wnonnull\fR is included in \fB\-Wall\fR and \fB\-Wformat\fR.  It
4122 can be disabled with the \fB\-Wno\-nonnull\fR option.
4123 .IP "\fB\-Wnonnull\-compare\fR" 4
4124 .IX Item "-Wnonnull-compare"
4125 Warn when comparing an argument marked with the \f(CW\*(C`nonnull\*(C'\fR
4126 function attribute against null inside the function.
4127 .Sp
4128 \&\fB\-Wnonnull\-compare\fR is included in \fB\-Wall\fR.  It
4129 can be disabled with the \fB\-Wno\-nonnull\-compare\fR option.
4130 .IP "\fB\-Wnull\-dereference\fR" 4
4131 .IX Item "-Wnull-dereference"
4132 Warn if the compiler detects paths that trigger erroneous or
4133 undefined behavior due to dereferencing a null pointer.  This option
4134 is only active when \fB\-fdelete\-null\-pointer\-checks\fR is active,
4135 which is enabled by optimizations in most targets.  The precision of
4136 the warnings depends on the optimization options used.
4137 .IP "\fB\-Winit\-self\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
4138 .IX Item "-Winit-self (C, , Objective-C and Objective- only)"
4139 Warn about uninitialized variables that are initialized with themselves.
4140 Note this option can only be used with the \fB\-Wuninitialized\fR option.
4141 .Sp
4142 For example, \s-1GCC\s0 warns about \f(CW\*(C`i\*(C'\fR being uninitialized in the
4143 following snippet only when \fB\-Winit\-self\fR has been specified:
4144 .Sp
4145 .Vb 5
4146 \&        int f()
4147 \&        {
4148 \&          int i = i;
4149 \&          return i;
4150 \&        }
4151 .Ve
4152 .Sp
4153 This warning is enabled by \fB\-Wall\fR in \*(C+.
4154 .IP "\fB\-Wimplicit\-int\fR (C and Objective-C only)" 4
4155 .IX Item "-Wimplicit-int (C and Objective-C only)"
4156 Warn when a declaration does not specify a type.
4157 This warning is enabled by \fB\-Wall\fR.
4158 .IP "\fB\-Wimplicit\-function\-declaration\fR (C and Objective-C only)" 4
4159 .IX Item "-Wimplicit-function-declaration (C and Objective-C only)"
4160 Give a warning whenever a function is used before being declared. In
4161 C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this warning is
4162 enabled by default and it is made into an error by
4163 \&\fB\-pedantic\-errors\fR. This warning is also enabled by
4164 \&\fB\-Wall\fR.
4165 .IP "\fB\-Wimplicit\fR (C and Objective-C only)" 4
4166 .IX Item "-Wimplicit (C and Objective-C only)"
4167 Same as \fB\-Wimplicit\-int\fR and \fB\-Wimplicit\-function\-declaration\fR.
4168 This warning is enabled by \fB\-Wall\fR.
4169 .IP "\fB\-Wimplicit\-fallthrough\fR" 4
4170 .IX Item "-Wimplicit-fallthrough"
4171 \&\fB\-Wimplicit\-fallthrough\fR is the same as \fB\-Wimplicit\-fallthrough=3\fR
4172 and \fB\-Wno\-implicit\-fallthrough\fR is the same as
4173 \&\fB\-Wimplicit\-fallthrough=0\fR.
4174 .IP "\fB\-Wimplicit\-fallthrough=\fR\fIn\fR" 4
4175 .IX Item "-Wimplicit-fallthrough=n"
4176 Warn when a switch case falls through.  For example:
4177 .Sp
4178 .Vb 11
4179 \&        switch (cond)
4180 \&          {
4181 \&          case 1:
4182 \&            a = 1;
4183 \&            break;
4184 \&          case 2:
4185 \&            a = 2;
4186 \&          case 3:
4187 \&            a = 3;
4188 \&            break;
4189 \&          }
4190 .Ve
4191 .Sp
4192 This warning does not warn when the last statement of a case cannot
4193 fall through, e.g. when there is a return statement or a call to function
4194 declared with the noreturn attribute.  \fB\-Wimplicit\-fallthrough=\fR
4195 also takes into account control flow statements, such as ifs, and only
4196 warns when appropriate.  E.g.
4197 .Sp
4198 .Vb 10
4199 \&        switch (cond)
4200 \&          {
4201 \&          case 1:
4202 \&            if (i > 3) {
4203 \&              bar (5);
4204 \&              break;
4205 \&            } else if (i < 1) {
4206 \&              bar (0);
4207 \&            } else
4208 \&              return;
4209 \&          default:
4210 \&            ...
4211 \&          }
4212 .Ve
4213 .Sp
4214 Since there are occasions where a switch case fall through is desirable,
4215 \&\s-1GCC\s0 provides an attribute, \f(CW\*(C`_\|_attribute_\|_ ((fallthrough))\*(C'\fR, that is
4216 to be used along with a null statement to suppress this warning that
4217 would normally occur:
4218 .Sp
4219 .Vb 8
4220 \&        switch (cond)
4221 \&          {
4222 \&          case 1:
4223 \&            bar (0);
4224 \&            _\|_attribute_\|_ ((fallthrough));
4225 \&          default:
4226 \&            ...
4227 \&          }
4228 .Ve
4229 .Sp
4230 \&\*(C+17 provides a standard way to suppress the \fB\-Wimplicit\-fallthrough\fR
4231 warning using \f(CW\*(C`[[fallthrough]];\*(C'\fR instead of the \s-1GNU\s0 attribute.  In \*(C+11
4232 or \*(C+14 users can use \f(CW\*(C`[[gnu::fallthrough]];\*(C'\fR, which is a \s-1GNU\s0 extension.
4233 Instead of these attributes, it is also possible to add a fallthrough comment
4234 to silence the warning.  The whole body of the C or \*(C+ style comment should
4235 match the given regular expressions listed below.  The option argument \fIn\fR
4236 specifies what kind of comments are accepted:
4237 .RS 4
4238 .IP "*<\fB\-Wimplicit\-fallthrough=0\fR disables the warning altogether.>" 4
4239 .IX Item "*<-Wimplicit-fallthrough=0 disables the warning altogether.>"
4240 .PD 0
4241 .ie n .IP "*<\fB\-Wimplicit\-fallthrough=1\fR matches "".*"" regular>" 4
4242 .el .IP "*<\fB\-Wimplicit\-fallthrough=1\fR matches \f(CW.*\fR regular>" 4
4243 .IX Item "*<-Wimplicit-fallthrough=1 matches .* regular>"
4244 .PD
4245 expression, any comment is used as fallthrough comment.
4246 .IP "*<\fB\-Wimplicit\-fallthrough=2\fR case insensitively matches>" 4
4247 .IX Item "*<-Wimplicit-fallthrough=2 case insensitively matches>"
4248 \&\f(CW\*(C`.*falls?[ \et\-]*thr(ough|u).*\*(C'\fR regular expression.
4249 .IP "*<\fB\-Wimplicit\-fallthrough=3\fR case sensitively matches one of the>" 4
4250 .IX Item "*<-Wimplicit-fallthrough=3 case sensitively matches one of the>"
4251 following regular expressions:
4252 .RS 4
4253 .ie n .IP "*<""\-fallthrough"">" 4
4254 .el .IP "*<\f(CW\-fallthrough\fR>" 4
4255 .IX Item "*<-fallthrough>"
4256 .PD 0
4257 .ie n .IP "*<""@fallthrough@"">" 4
4258 .el .IP "*<\f(CW@fallthrough@\fR>" 4
4259 .IX Item "*<@fallthrough@>"
4260 .ie n .IP "*<""lint \-fallthrough[ \et]*"">" 4
4261 .el .IP "*<\f(CWlint \-fallthrough[ \et]*\fR>" 4
4262 .IX Item "*<lint -fallthrough[ t]*>"
4263 .ie n .IP "*<""[ \et.!]*(ELSE,? |INTENTIONAL(LY)? )?FALL(S | |\-)?THR(OUGH|U)[ \et.!]*(\-[^\en\er]*)?"">" 4
4264 .el .IP "*<\f(CW[ \et.!]*(ELSE,? |INTENTIONAL(LY)? )?FALL(S | |\-)?THR(OUGH|U)[ \et.!]*(\-[^\en\er]*)?\fR>" 4
4265 .IX Item "*<[ t.!]*(ELSE,? |INTENTIONAL(LY)? )?FALL(S | |-)?THR(OUGH|U)[ t.!]*(-[^nr]*)?>"
4266 .ie n .IP "*<""[ \et.!]*(Else,? |Intentional(ly)? )?Fall((s | |\-)[Tt]|t)hr(ough|u)[ \et.!]*(\-[^\en\er]*)?"">" 4
4267 .el .IP "*<\f(CW[ \et.!]*(Else,? |Intentional(ly)? )?Fall((s | |\-)[Tt]|t)hr(ough|u)[ \et.!]*(\-[^\en\er]*)?\fR>" 4
4268 .IX Item "*<[ t.!]*(Else,? |Intentional(ly)? )?Fall((s | |-)[Tt]|t)hr(ough|u)[ t.!]*(-[^nr]*)?>"
4269 .ie n .IP "*<""[ \et.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?fall(s | |\-)?thr(ough|u)[ \et.!]*(\-[^\en\er]*)?"">" 4
4270 .el .IP "*<\f(CW[ \et.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?fall(s | |\-)?thr(ough|u)[ \et.!]*(\-[^\en\er]*)?\fR>" 4
4271 .IX Item "*<[ t.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?fall(s | |-)?thr(ough|u)[ t.!]*(-[^nr]*)?>"
4272 .RE
4273 .RS 4
4274 .RE
4275 .IP "*<\fB\-Wimplicit\-fallthrough=4\fR case sensitively matches one of the>" 4
4276 .IX Item "*<-Wimplicit-fallthrough=4 case sensitively matches one of the>"
4277 .PD
4278 following regular expressions:
4279 .RS 4
4280 .ie n .IP "*<""\-fallthrough"">" 4
4281 .el .IP "*<\f(CW\-fallthrough\fR>" 4
4282 .IX Item "*<-fallthrough>"
4283 .PD 0
4284 .ie n .IP "*<""@fallthrough@"">" 4
4285 .el .IP "*<\f(CW@fallthrough@\fR>" 4
4286 .IX Item "*<@fallthrough@>"
4287 .ie n .IP "*<""lint \-fallthrough[ \et]*"">" 4
4288 .el .IP "*<\f(CWlint \-fallthrough[ \et]*\fR>" 4
4289 .IX Item "*<lint -fallthrough[ t]*>"
4290 .ie n .IP "*<""[ \et]*FALLTHR(OUGH|U)[ \et]*"">" 4
4291 .el .IP "*<\f(CW[ \et]*FALLTHR(OUGH|U)[ \et]*\fR>" 4
4292 .IX Item "*<[ t]*FALLTHR(OUGH|U)[ t]*>"
4293 .RE
4294 .RS 4
4295 .RE
4296 .IP "*<\fB\-Wimplicit\-fallthrough=5\fR doesn't recognize any comments as>" 4
4297 .IX Item "*<-Wimplicit-fallthrough=5 doesn't recognize any comments as>"
4298 .PD
4299 fallthrough comments, only attributes disable the warning.
4300 .RE
4301 .RS 4
4302 .Sp
4303 The comment needs to be followed after optional whitespace and other comments
4304 by \f(CW\*(C`case\*(C'\fR or \f(CW\*(C`default\*(C'\fR keywords or by a user label that precedes some
4305 \&\f(CW\*(C`case\*(C'\fR or \f(CW\*(C`default\*(C'\fR label.
4306 .Sp
4307 .Vb 8
4308 \&        switch (cond)
4309 \&          {
4310 \&          case 1:
4311 \&            bar (0);
4312 \&            /* FALLTHRU */
4313 \&          default:
4314 \&            ...
4315 \&          }
4316 .Ve
4317 .Sp
4318 The \fB\-Wimplicit\-fallthrough=3\fR warning is enabled by \fB\-Wextra\fR.
4319 .RE
4320 .IP "\fB\-Wif\-not\-aligned\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
4321 .IX Item "-Wif-not-aligned (C, , Objective-C and Objective- only)"
4322 Control if warning triggered by the \f(CW\*(C`warn_if_not_aligned\*(C'\fR attribute
4323 should be issued.  This is enabled by default.
4324 Use \fB\-Wno\-if\-not\-aligned\fR to disable it.
4325 .IP "\fB\-Wignored\-qualifiers\fR (C and \*(C+ only)" 4
4326 .IX Item "-Wignored-qualifiers (C and only)"
4327 Warn if the return type of a function has a type qualifier
4328 such as \f(CW\*(C`const\*(C'\fR.  For \s-1ISO C\s0 such a type qualifier has no effect,
4329 since the value returned by a function is not an lvalue.
4330 For \*(C+, the warning is only emitted for scalar types or \f(CW\*(C`void\*(C'\fR.
4331 \&\s-1ISO C\s0 prohibits qualified \f(CW\*(C`void\*(C'\fR return types on function
4332 definitions, so such return types always receive a warning
4333 even without this option.
4334 .Sp
4335 This warning is also enabled by \fB\-Wextra\fR.
4336 .IP "\fB\-Wignored\-attributes\fR (C and \*(C+ only)" 4
4337 .IX Item "-Wignored-attributes (C and only)"
4338 Warn when an attribute is ignored.  This is different from the
4339 \&\fB\-Wattributes\fR option in that it warns whenever the compiler decides
4340 to drop an attribute, not that the attribute is either unknown, used in a
4341 wrong place, etc.  This warning is enabled by default.
4342 .IP "\fB\-Wmain\fR" 4
4343 .IX Item "-Wmain"
4344 Warn if the type of \f(CW\*(C`main\*(C'\fR is suspicious.  \f(CW\*(C`main\*(C'\fR should be
4345 a function with external linkage, returning int, taking either zero
4346 arguments, two, or three arguments of appropriate types.  This warning
4347 is enabled by default in \*(C+ and is enabled by either \fB\-Wall\fR
4348 or \fB\-Wpedantic\fR.
4349 .IP "\fB\-Wmisleading\-indentation\fR (C and \*(C+ only)" 4
4350 .IX Item "-Wmisleading-indentation (C and only)"
4351 Warn when the indentation of the code does not reflect the block structure.
4352 Specifically, a warning is issued for \f(CW\*(C`if\*(C'\fR, \f(CW\*(C`else\*(C'\fR, \f(CW\*(C`while\*(C'\fR, and
4353 \&\f(CW\*(C`for\*(C'\fR clauses with a guarded statement that does not use braces,
4354 followed by an unguarded statement with the same indentation.
4355 .Sp
4356 In the following example, the call to \*(L"bar\*(R" is misleadingly indented as
4357 if it were guarded by the \*(L"if\*(R" conditional.
4358 .Sp
4359 .Vb 3
4360 \&          if (some_condition ())
4361 \&            foo ();
4362 \&            bar ();  /* Gotcha: this is not guarded by the "if".  */
4363 .Ve
4364 .Sp
4365 In the case of mixed tabs and spaces, the warning uses the
4366 \&\fB\-ftabstop=\fR option to determine if the statements line up
4367 (defaulting to 8).
4368 .Sp
4369 The warning is not issued for code involving multiline preprocessor logic
4370 such as the following example.
4371 .Sp
4372 .Vb 6
4373 \&          if (flagA)
4374 \&            foo (0);
4375 \&        #if SOME_CONDITION_THAT_DOES_NOT_HOLD
4376 \&          if (flagB)
4377 \&        #endif
4378 \&            foo (1);
4379 .Ve
4380 .Sp
4381 The warning is not issued after a \f(CW\*(C`#line\*(C'\fR directive, since this
4382 typically indicates autogenerated code, and no assumptions can be made
4383 about the layout of the file that the directive references.
4384 .Sp
4385 This warning is enabled by \fB\-Wall\fR in C and \*(C+.
4386 .IP "\fB\-Wmissing\-attributes\fR" 4
4387 .IX Item "-Wmissing-attributes"
4388 Warn when a declaration of a function is missing one or more attributes
4389 that a related function is declared with and whose absence may adversely
4390 affect the correctness or efficiency of generated code.  For example, in
4391 \&\*(C+, the warning is issued when an explicit specialization of a primary
4392 template declared with attribute \f(CW\*(C`alloc_align\*(C'\fR, \f(CW\*(C`alloc_size\*(C'\fR,
4393 \&\f(CW\*(C`assume_aligned\*(C'\fR, \f(CW\*(C`format\*(C'\fR, \f(CW\*(C`format_arg\*(C'\fR, \f(CW\*(C`malloc\*(C'\fR,
4394 or \f(CW\*(C`nonnull\*(C'\fR is declared without it.  Attributes \f(CW\*(C`deprecated\*(C'\fR,
4395 \&\f(CW\*(C`error\*(C'\fR, and \f(CW\*(C`warning\*(C'\fR suppress the warning..
4396 .Sp
4397 \&\fB\-Wmissing\-attributes\fR is enabled by \fB\-Wall\fR.
4398 .Sp
4399 For example, since the declaration of the primary function template
4400 below makes use of both attribute \f(CW\*(C`malloc\*(C'\fR and \f(CW\*(C`alloc_size\*(C'\fR
4401 the declaration of the explicit specialization of the template is
4402 diagnosed because it is missing one of the attributes.
4403 .Sp
4404 .Vb 3
4405 \&        template <class T>
4406 \&        T* _\|_attribute_\|_ ((malloc, alloc_size (1)))
4407 \&        allocate (size_t);
4408 \&        
4409 \&        template <>
4410 \&        void* _\|_attribute_\|_ ((malloc))   // missing alloc_size
4411 \&        allocate<void> (size_t);
4412 .Ve
4413 .IP "\fB\-Wmissing\-braces\fR" 4
4414 .IX Item "-Wmissing-braces"
4415 Warn if an aggregate or union initializer is not fully bracketed.  In
4416 the following example, the initializer for \f(CW\*(C`a\*(C'\fR is not fully
4417 bracketed, but that for \f(CW\*(C`b\*(C'\fR is fully bracketed.  This warning is
4418 enabled by \fB\-Wall\fR in C.
4419 .Sp
4420 .Vb 2
4421 \&        int a[2][2] = { 0, 1, 2, 3 };
4422 \&        int b[2][2] = { { 0, 1 }, { 2, 3 } };
4423 .Ve
4424 .Sp
4425 This warning is enabled by \fB\-Wall\fR.
4426 .IP "\fB\-Wmissing\-include\-dirs\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
4427 .IX Item "-Wmissing-include-dirs (C, , Objective-C and Objective- only)"
4428 Warn if a user-supplied include directory does not exist.
4429 .IP "\fB\-Wmultistatement\-macros\fR" 4
4430 .IX Item "-Wmultistatement-macros"
4431 Warn about unsafe multiple statement macros that appear to be guarded
4432 by a clause such as \f(CW\*(C`if\*(C'\fR, \f(CW\*(C`else\*(C'\fR, \f(CW\*(C`for\*(C'\fR, \f(CW\*(C`switch\*(C'\fR, or
4433 \&\f(CW\*(C`while\*(C'\fR, in which only the first statement is actually guarded after
4434 the macro is expanded.
4435 .Sp
4436 For example:
4437 .Sp
4438 .Vb 3
4439 \&        #define DOIT x++; y++
4440 \&        if (c)
4441 \&          DOIT;
4442 .Ve
4443 .Sp
4444 will increment \f(CW\*(C`y\*(C'\fR unconditionally, not just when \f(CW\*(C`c\*(C'\fR holds.
4445 The can usually be fixed by wrapping the macro in a do-while loop:
4446 .Sp
4447 .Vb 3
4448 \&        #define DOIT do { x++; y++; } while (0)
4449 \&        if (c)
4450 \&          DOIT;
4451 .Ve
4452 .Sp
4453 This warning is enabled by \fB\-Wall\fR in C and \*(C+.
4454 .IP "\fB\-Wparentheses\fR" 4
4455 .IX Item "-Wparentheses"
4456 Warn if parentheses are omitted in certain contexts, such
4457 as when there is an assignment in a context where a truth value
4458 is expected, or when operators are nested whose precedence people
4459 often get confused about.
4460 .Sp
4461 Also warn if a comparison like \f(CW\*(C`x<=y<=z\*(C'\fR appears; this is
4462 equivalent to \f(CW\*(C`(x<=y ? 1 : 0) <= z\*(C'\fR, which is a different
4463 interpretation from that of ordinary mathematical notation.
4464 .Sp
4465 Also warn for dangerous uses of the \s-1GNU\s0 extension to
4466 \&\f(CW\*(C`?:\*(C'\fR with omitted middle operand. When the condition
4467 in the \f(CW\*(C`?\*(C'\fR: operator is a boolean expression, the omitted value is
4468 always 1.  Often programmers expect it to be a value computed
4469 inside the conditional expression instead.
4470 .Sp
4471 For \*(C+ this also warns for some cases of unnecessary parentheses in
4472 declarations, which can indicate an attempt at a function call instead
4473 of a declaration:
4474 .Sp
4475 .Vb 5
4476 \&        {
4477 \&          // Declares a local variable called mymutex.
4478 \&          std::unique_lock<std::mutex> (mymutex);
4479 \&          // User meant std::unique_lock<std::mutex> lock (mymutex);
4480 \&        }
4481 .Ve
4482 .Sp
4483 This warning is enabled by \fB\-Wall\fR.
4484 .IP "\fB\-Wsequence\-point\fR" 4
4485 .IX Item "-Wsequence-point"
4486 Warn about code that may have undefined semantics because of violations
4487 of sequence point rules in the C and \*(C+ standards.
4488 .Sp
4489 The C and \*(C+ standards define the order in which expressions in a C/\*(C+
4490 program are evaluated in terms of \fIsequence points\fR, which represent
4491 a partial ordering between the execution of parts of the program: those
4492 executed before the sequence point, and those executed after it.  These
4493 occur after the evaluation of a full expression (one which is not part
4494 of a larger expression), after the evaluation of the first operand of a
4495 \&\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
4496 function is called (but after the evaluation of its arguments and the
4497 expression denoting the called function), and in certain other places.
4498 Other than as expressed by the sequence point rules, the order of
4499 evaluation of subexpressions of an expression is not specified.  All
4500 these rules describe only a partial order rather than a total order,
4501 since, for example, if two functions are called within one expression
4502 with no sequence point between them, the order in which the functions
4503 are called is not specified.  However, the standards committee have
4504 ruled that function calls do not overlap.
4505 .Sp
4506 It is not specified when between sequence points modifications to the
4507 values of objects take effect.  Programs whose behavior depends on this
4508 have undefined behavior; the C and \*(C+ standards specify that \*(L"Between
4509 the previous and next sequence point an object shall have its stored
4510 value modified at most once by the evaluation of an expression.
4511 Furthermore, the prior value shall be read only to determine the value
4512 to be stored.\*(R".  If a program breaks these rules, the results on any
4513 particular implementation are entirely unpredictable.
4514 .Sp
4515 Examples of code with undefined behavior are \f(CW\*(C`a = a++;\*(C'\fR, \f(CW\*(C`a[n]
4516 = b[n++]\*(C'\fR and \f(CW\*(C`a[i++] = i;\*(C'\fR.  Some more complicated cases are not
4517 diagnosed by this option, and it may give an occasional false positive
4518 result, but in general it has been found fairly effective at detecting
4519 this sort of problem in programs.
4520 .Sp
4521 The \*(C+17 standard will define the order of evaluation of operands in
4522 more cases: in particular it requires that the right-hand side of an
4523 assignment be evaluated before the left-hand side, so the above
4524 examples are no longer undefined.  But this warning will still warn
4525 about them, to help people avoid writing code that is undefined in C
4526 and earlier revisions of \*(C+.
4527 .Sp
4528 The standard is worded confusingly, therefore there is some debate
4529 over the precise meaning of the sequence point rules in subtle cases.
4530 Links to discussions of the problem, including proposed formal
4531 definitions, may be found on the \s-1GCC\s0 readings page, at
4532 <\fBhttp://gcc.gnu.org/readings.html\fR>.
4533 .Sp
4534 This warning is enabled by \fB\-Wall\fR for C and \*(C+.
4535 .IP "\fB\-Wno\-return\-local\-addr\fR" 4
4536 .IX Item "-Wno-return-local-addr"
4537 Do not warn about returning a pointer (or in \*(C+, a reference) to a
4538 variable that goes out of scope after the function returns.
4539 .IP "\fB\-Wreturn\-type\fR" 4
4540 .IX Item "-Wreturn-type"
4541 Warn whenever a function is defined with a return type that defaults
4542 to \f(CW\*(C`int\*(C'\fR.  Also warn about any \f(CW\*(C`return\*(C'\fR statement with no
4543 return value in a function whose return type is not \f(CW\*(C`void\*(C'\fR
4544 (falling off the end of the function body is considered returning
4545 without a value).
4546 .Sp
4547 For C only, warn about a \f(CW\*(C`return\*(C'\fR statement with an expression in a
4548 function whose return type is \f(CW\*(C`void\*(C'\fR, unless the expression type is
4549 also \f(CW\*(C`void\*(C'\fR.  As a \s-1GNU\s0 extension, the latter case is accepted
4550 without a warning unless \fB\-Wpedantic\fR is used.
4551 .Sp
4552 For \*(C+, a function without return type always produces a diagnostic
4553 message, even when \fB\-Wno\-return\-type\fR is specified.  The only
4554 exceptions are \f(CW\*(C`main\*(C'\fR and functions defined in system headers.
4555 .Sp
4556 This warning is enabled by default for \*(C+ and is enabled by \fB\-Wall\fR.
4557 .IP "\fB\-Wshift\-count\-negative\fR" 4
4558 .IX Item "-Wshift-count-negative"
4559 Warn if shift count is negative. This warning is enabled by default.
4560 .IP "\fB\-Wshift\-count\-overflow\fR" 4
4561 .IX Item "-Wshift-count-overflow"
4562 Warn if shift count >= width of type. This warning is enabled by default.
4563 .IP "\fB\-Wshift\-negative\-value\fR" 4
4564 .IX Item "-Wshift-negative-value"
4565 Warn if left shifting a negative value.  This warning is enabled by
4566 \&\fB\-Wextra\fR in C99 and \*(C+11 modes (and newer).
4567 .IP "\fB\-Wshift\-overflow\fR" 4
4568 .IX Item "-Wshift-overflow"
4569 .PD 0
4570 .IP "\fB\-Wshift\-overflow=\fR\fIn\fR" 4
4571 .IX Item "-Wshift-overflow=n"
4572 .PD
4573 Warn about left shift overflows.  This warning is enabled by
4574 default in C99 and \*(C+11 modes (and newer).
4575 .RS 4
4576 .IP "\fB\-Wshift\-overflow=1\fR" 4
4577 .IX Item "-Wshift-overflow=1"
4578 This is the warning level of \fB\-Wshift\-overflow\fR and is enabled
4579 by default in C99 and \*(C+11 modes (and newer).  This warning level does
4580 not warn about left-shifting 1 into the sign bit.  (However, in C, such
4581 an overflow is still rejected in contexts where an integer constant expression
4582 is required.)
4583 .IP "\fB\-Wshift\-overflow=2\fR" 4
4584 .IX Item "-Wshift-overflow=2"
4585 This warning level also warns about left-shifting 1 into the sign bit,
4586 unless \*(C+14 mode is active.
4587 .RE
4588 .RS 4
4589 .RE
4590 .IP "\fB\-Wswitch\fR" 4
4591 .IX Item "-Wswitch"
4592 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
4593 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
4594 enumeration.  (The presence of a \f(CW\*(C`default\*(C'\fR label prevents this
4595 warning.)  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
4596 provoke warnings when this option is used (even if there is a
4597 \&\f(CW\*(C`default\*(C'\fR label).
4598 This warning is enabled by \fB\-Wall\fR.
4599 .IP "\fB\-Wswitch\-default\fR" 4
4600 .IX Item "-Wswitch-default"
4601 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement does not have a \f(CW\*(C`default\*(C'\fR
4602 case.
4603 .IP "\fB\-Wswitch\-enum\fR" 4
4604 .IX Item "-Wswitch-enum"
4605 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
4606 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
4607 enumeration.  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
4608 provoke warnings when this option is used.  The only difference
4609 between \fB\-Wswitch\fR and this option is that this option gives a
4610 warning about an omitted enumeration code even if there is a
4611 \&\f(CW\*(C`default\*(C'\fR label.
4612 .IP "\fB\-Wswitch\-bool\fR" 4
4613 .IX Item "-Wswitch-bool"
4614 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of boolean type
4615 and the case values are outside the range of a boolean type.
4616 It is possible to suppress this warning by casting the controlling
4617 expression to a type other than \f(CW\*(C`bool\*(C'\fR.  For example:
4618 .Sp
4619 .Vb 4
4620 \&        switch ((int) (a == 4))
4621 \&          {
4622 \&          ...
4623 \&          }
4624 .Ve
4625 .Sp
4626 This warning is enabled by default for C and \*(C+ programs.
4627 .IP "\fB\-Wswitch\-unreachable\fR" 4
4628 .IX Item "-Wswitch-unreachable"
4629 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement contains statements between the
4630 controlling expression and the first case label, which will never be
4631 executed.  For example:
4632 .Sp
4633 .Vb 7
4634 \&        switch (cond)
4635 \&          {
4636 \&           i = 15;
4637 \&          ...
4638 \&           case 5:
4639 \&          ...
4640 \&          }
4641 .Ve
4642 .Sp
4643 \&\fB\-Wswitch\-unreachable\fR does not warn if the statement between the
4644 controlling expression and the first case label is just a declaration:
4645 .Sp
4646 .Vb 8
4647 \&        switch (cond)
4648 \&          {
4649 \&           int i;
4650 \&          ...
4651 \&           case 5:
4652 \&           i = 5;
4653 \&          ...
4654 \&          }
4655 .Ve
4656 .Sp
4657 This warning is enabled by default for C and \*(C+ programs.
4658 .IP "\fB\-Wsync\-nand\fR (C and \*(C+ only)" 4
4659 .IX Item "-Wsync-nand (C and only)"
4660 Warn when \f(CW\*(C`_\|_sync_fetch_and_nand\*(C'\fR and \f(CW\*(C`_\|_sync_nand_and_fetch\*(C'\fR
4661 built-in functions are used.  These functions changed semantics in \s-1GCC 4.4.\s0
4662 .IP "\fB\-Wunused\-but\-set\-parameter\fR" 4
4663 .IX Item "-Wunused-but-set-parameter"
4664 Warn whenever a function parameter is assigned to, but otherwise unused
4665 (aside from its declaration).
4666 .Sp
4667 To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
4668 .Sp
4669 This warning is also enabled by \fB\-Wunused\fR together with
4670 \&\fB\-Wextra\fR.
4671 .IP "\fB\-Wunused\-but\-set\-variable\fR" 4
4672 .IX Item "-Wunused-but-set-variable"
4673 Warn whenever a local variable is assigned to, but otherwise unused
4674 (aside from its declaration).
4675 This warning is enabled by \fB\-Wall\fR.
4676 .Sp
4677 To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
4678 .Sp
4679 This warning is also enabled by \fB\-Wunused\fR, which is enabled
4680 by \fB\-Wall\fR.
4681 .IP "\fB\-Wunused\-function\fR" 4
4682 .IX Item "-Wunused-function"
4683 Warn whenever a static function is declared but not defined or a
4684 non-inline static function is unused.
4685 This warning is enabled by \fB\-Wall\fR.
4686 .IP "\fB\-Wunused\-label\fR" 4
4687 .IX Item "-Wunused-label"
4688 Warn whenever a label is declared but not used.
4689 This warning is enabled by \fB\-Wall\fR.
4690 .Sp
4691 To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
4692 .IP "\fB\-Wunused\-local\-typedefs\fR (C, Objective-C, \*(C+ and Objective\-\*(C+ only)" 4
4693 .IX Item "-Wunused-local-typedefs (C, Objective-C, and Objective- only)"
4694 Warn when a typedef locally defined in a function is not used.
4695 This warning is enabled by \fB\-Wall\fR.
4696 .IP "\fB\-Wunused\-parameter\fR" 4
4697 .IX Item "-Wunused-parameter"
4698 Warn whenever a function parameter is unused aside from its declaration.
4699 .Sp
4700 To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
4701 .IP "\fB\-Wno\-unused\-result\fR" 4
4702 .IX Item "-Wno-unused-result"
4703 Do not warn if a caller of a function marked with attribute
4704 \&\f(CW\*(C`warn_unused_result\*(C'\fR does not use
4705 its return value. The default is \fB\-Wunused\-result\fR.
4706 .IP "\fB\-Wunused\-variable\fR" 4
4707 .IX Item "-Wunused-variable"
4708 Warn whenever a local or static variable is unused aside from its
4709 declaration. This option implies \fB\-Wunused\-const\-variable=1\fR for C,
4710 but not for \*(C+. This warning is enabled by \fB\-Wall\fR.
4711 .Sp
4712 To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
4713 .IP "\fB\-Wunused\-const\-variable\fR" 4
4714 .IX Item "-Wunused-const-variable"
4715 .PD 0
4716 .IP "\fB\-Wunused\-const\-variable=\fR\fIn\fR" 4
4717 .IX Item "-Wunused-const-variable=n"
4718 .PD
4719 Warn whenever a constant static variable is unused aside from its declaration.
4720 \&\fB\-Wunused\-const\-variable=1\fR is enabled by \fB\-Wunused\-variable\fR
4721 for C, but not for \*(C+. In C this declares variable storage, but in \*(C+ this
4722 is not an error since const variables take the place of \f(CW\*(C`#define\*(C'\fRs.
4723 .Sp
4724 To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
4725 .RS 4
4726 .IP "\fB\-Wunused\-const\-variable=1\fR" 4
4727 .IX Item "-Wunused-const-variable=1"
4728 This is the warning level that is enabled by \fB\-Wunused\-variable\fR for
4729 C.  It warns only about unused static const variables defined in the main
4730 compilation unit, but not about static const variables declared in any
4731 header included.
4732 .IP "\fB\-Wunused\-const\-variable=2\fR" 4
4733 .IX Item "-Wunused-const-variable=2"
4734 This warning level also warns for unused constant static variables in
4735 headers (excluding system headers).  This is the warning level of
4736 \&\fB\-Wunused\-const\-variable\fR and must be explicitly requested since
4737 in \*(C+ this isn't an error and in C it might be harder to clean up all
4738 headers included.
4739 .RE
4740 .RS 4
4741 .RE
4742 .IP "\fB\-Wunused\-value\fR" 4
4743 .IX Item "-Wunused-value"
4744 Warn whenever a statement computes a result that is explicitly not
4745 used. To suppress this warning cast the unused expression to
4746 \&\f(CW\*(C`void\*(C'\fR. This includes an expression-statement or the left-hand
4747 side of a comma expression that contains no side effects. For example,
4748 an expression such as \f(CW\*(C`x[i,j]\*(C'\fR causes a warning, while
4749 \&\f(CW\*(C`x[(void)i,j]\*(C'\fR does not.
4750 .Sp
4751 This warning is enabled by \fB\-Wall\fR.
4752 .IP "\fB\-Wunused\fR" 4
4753 .IX Item "-Wunused"
4754 All the above \fB\-Wunused\fR options combined.
4755 .Sp
4756 In order to get a warning about an unused function parameter, you must
4757 either specify \fB\-Wextra \-Wunused\fR (note that \fB\-Wall\fR implies
4758 \&\fB\-Wunused\fR), or separately specify \fB\-Wunused\-parameter\fR.
4759 .IP "\fB\-Wuninitialized\fR" 4
4760 .IX Item "-Wuninitialized"
4761 Warn if an automatic variable is used without first being initialized
4762 or if a variable may be clobbered by a \f(CW\*(C`setjmp\*(C'\fR call. In \*(C+,
4763 warn if a non-static reference or non-static \f(CW\*(C`const\*(C'\fR member
4764 appears in a class without constructors.
4765 .Sp
4766 If you want to warn about code that uses the uninitialized value of the
4767 variable in its own initializer, use the \fB\-Winit\-self\fR option.
4768 .Sp
4769 These warnings occur for individual uninitialized or clobbered
4770 elements of structure, union or array variables as well as for
4771 variables that are uninitialized or clobbered as a whole.  They do
4772 not occur for variables or elements declared \f(CW\*(C`volatile\*(C'\fR.  Because
4773 these warnings depend on optimization, the exact variables or elements
4774 for which there are warnings depends on the precise optimization
4775 options and version of \s-1GCC\s0 used.
4776 .Sp
4777 Note that there may be no warning about a variable that is used only
4778 to compute a value that itself is never used, because such
4779 computations may be deleted by data flow analysis before the warnings
4780 are printed.
4781 .IP "\fB\-Winvalid\-memory\-model\fR" 4
4782 .IX Item "-Winvalid-memory-model"
4783 Warn for invocations of \fB_\|_atomic Builtins\fR, \fB_\|_sync Builtins\fR,
4784 and the C11 atomic generic functions with a memory consistency argument
4785 that is either invalid for the operation or outside the range of values
4786 of the \f(CW\*(C`memory_order\*(C'\fR enumeration.  For example, since the
4787 \&\f(CW\*(C`_\|_atomic_store\*(C'\fR and \f(CW\*(C`_\|_atomic_store_n\*(C'\fR built-ins are only
4788 defined for the relaxed, release, and sequentially consistent memory
4789 orders the following code is diagnosed:
4790 .Sp
4791 .Vb 4
4792 \&        void store (int *i)
4793 \&        {
4794 \&          _\|_atomic_store_n (i, 0, memory_order_consume);
4795 \&        }
4796 .Ve
4797 .Sp
4798 \&\fB\-Winvalid\-memory\-model\fR is enabled by default.
4799 .IP "\fB\-Wmaybe\-uninitialized\fR" 4
4800 .IX Item "-Wmaybe-uninitialized"
4801 For an automatic (i.e. local) variable, if there exists a path from the
4802 function entry to a use of the variable that is initialized, but there exist
4803 some other paths for which the variable is not initialized, the compiler
4804 emits a warning if it cannot prove the uninitialized paths are not
4805 executed at run time.
4806 .Sp
4807 These warnings are only possible in optimizing compilation, because otherwise
4808 \&\s-1GCC\s0 does not keep track of the state of variables.
4809 .Sp
4810 These warnings are made optional because \s-1GCC\s0 may not be able to determine when
4811 the code is correct in spite of appearing to have an error.  Here is one
4812 example of how this can happen:
4813 .Sp
4814 .Vb 12
4815 \&        {
4816 \&          int x;
4817 \&          switch (y)
4818 \&            {
4819 \&            case 1: x = 1;
4820 \&              break;
4821 \&            case 2: x = 4;
4822 \&              break;
4823 \&            case 3: x = 5;
4824 \&            }
4825 \&          foo (x);
4826 \&        }
4827 .Ve
4828 .Sp
4829 If the value of \f(CW\*(C`y\*(C'\fR is always 1, 2 or 3, then \f(CW\*(C`x\*(C'\fR is
4830 always initialized, but \s-1GCC\s0 doesn't know this. To suppress the
4831 warning, you need to provide a default case with \fBassert\fR\|(0) or
4832 similar code.
4833 .Sp
4834 This option also warns when a non-volatile automatic variable might be
4835 changed by a call to \f(CW\*(C`longjmp\*(C'\fR.
4836 The compiler sees only the calls to \f(CW\*(C`setjmp\*(C'\fR.  It cannot know
4837 where \f(CW\*(C`longjmp\*(C'\fR will be called; in fact, a signal handler could
4838 call it at any point in the code.  As a result, you may get a warning
4839 even when there is in fact no problem because \f(CW\*(C`longjmp\*(C'\fR cannot
4840 in fact be called at the place that would cause a problem.
4841 .Sp
4842 Some spurious warnings can be avoided if you declare all the functions
4843 you use that never return as \f(CW\*(C`noreturn\*(C'\fR.
4844 .Sp
4845 This warning is enabled by \fB\-Wall\fR or \fB\-Wextra\fR.
4846 .IP "\fB\-Wunknown\-pragmas\fR" 4
4847 .IX Item "-Wunknown-pragmas"
4848 Warn when a \f(CW\*(C`#pragma\*(C'\fR directive is encountered that is not understood by 
4849 \&\s-1GCC.\s0  If this command-line option is used, warnings are even issued
4850 for unknown pragmas in system header files.  This is not the case if
4851 the warnings are only enabled by the \fB\-Wall\fR command-line option.
4852 .IP "\fB\-Wno\-pragmas\fR" 4
4853 .IX Item "-Wno-pragmas"
4854 Do not warn about misuses of pragmas, such as incorrect parameters,
4855 invalid syntax, or conflicts between pragmas.  See also
4856 \&\fB\-Wunknown\-pragmas\fR.
4857 .IP "\fB\-Wstrict\-aliasing\fR" 4
4858 .IX Item "-Wstrict-aliasing"
4859 This option is only active when \fB\-fstrict\-aliasing\fR is active.
4860 It warns about code that might break the strict aliasing rules that the
4861 compiler is using for optimization.  The warning does not catch all
4862 cases, but does attempt to catch the more common pitfalls.  It is
4863 included in \fB\-Wall\fR.
4864 It is equivalent to \fB\-Wstrict\-aliasing=3\fR
4865 .IP "\fB\-Wstrict\-aliasing=n\fR" 4
4866 .IX Item "-Wstrict-aliasing=n"
4867 This option is only active when \fB\-fstrict\-aliasing\fR is active.
4868 It warns about code that might break the strict aliasing rules that the
4869 compiler is using for optimization.
4870 Higher levels correspond to higher accuracy (fewer false positives).
4871 Higher levels also correspond to more effort, similar to the way \fB\-O\fR 
4872 works.
4873 \&\fB\-Wstrict\-aliasing\fR is equivalent to \fB\-Wstrict\-aliasing=3\fR.
4874 .Sp
4875 Level 1: Most aggressive, quick, least accurate.
4876 Possibly useful when higher levels
4877 do not warn but \fB\-fstrict\-aliasing\fR still breaks the code, as it has very few
4878 false negatives.  However, it has many false positives.
4879 Warns for all pointer conversions between possibly incompatible types,
4880 even if never dereferenced.  Runs in the front end only.
4881 .Sp
4882 Level 2: Aggressive, quick, not too precise.
4883 May still have many false positives (not as many as level 1 though),
4884 and few false negatives (but possibly more than level 1).
4885 Unlike level 1, it only warns when an address is taken.  Warns about
4886 incomplete types.  Runs in the front end only.
4887 .Sp
4888 Level 3 (default for \fB\-Wstrict\-aliasing\fR):
4889 Should have very few false positives and few false
4890 negatives.  Slightly slower than levels 1 or 2 when optimization is enabled.
4891 Takes care of the common pun+dereference pattern in the front end:
4892 \&\f(CW\*(C`*(int*)&some_float\*(C'\fR.
4893 If optimization is enabled, it also runs in the back end, where it deals
4894 with multiple statement cases using flow-sensitive points-to information.
4895 Only warns when the converted pointer is dereferenced.
4896 Does not warn about incomplete types.
4897 .IP "\fB\-Wstrict\-overflow\fR" 4
4898 .IX Item "-Wstrict-overflow"
4899 .PD 0
4900 .IP "\fB\-Wstrict\-overflow=\fR\fIn\fR" 4
4901 .IX Item "-Wstrict-overflow=n"
4902 .PD
4903 This option is only active when signed overflow is undefined.
4904 It warns about cases where the compiler optimizes based on the
4905 assumption that signed overflow does not occur.  Note that it does not
4906 warn about all cases where the code might overflow: it only warns
4907 about cases where the compiler implements some optimization.  Thus
4908 this warning depends on the optimization level.
4909 .Sp
4910 An optimization that assumes that signed overflow does not occur is
4911 perfectly safe if the values of the variables involved are such that
4912 overflow never does, in fact, occur.  Therefore this warning can
4913 easily give a false positive: a warning about code that is not
4914 actually a problem.  To help focus on important issues, several
4915 warning levels are defined.  No warnings are issued for the use of
4916 undefined signed overflow when estimating how many iterations a loop
4917 requires, in particular when determining whether a loop will be
4918 executed at all.
4919 .RS 4
4920 .IP "\fB\-Wstrict\-overflow=1\fR" 4
4921 .IX Item "-Wstrict-overflow=1"
4922 Warn about cases that are both questionable and easy to avoid.  For
4923 example the compiler simplifies
4924 \&\f(CW\*(C`x + 1 > x\*(C'\fR to \f(CW1\fR.  This level of
4925 \&\fB\-Wstrict\-overflow\fR is enabled by \fB\-Wall\fR; higher levels
4926 are not, and must be explicitly requested.
4927 .IP "\fB\-Wstrict\-overflow=2\fR" 4
4928 .IX Item "-Wstrict-overflow=2"
4929 Also warn about other cases where a comparison is simplified to a
4930 constant.  For example: \f(CW\*(C`abs (x) >= 0\*(C'\fR.  This can only be
4931 simplified when signed integer overflow is undefined, because
4932 \&\f(CW\*(C`abs (INT_MIN)\*(C'\fR overflows to \f(CW\*(C`INT_MIN\*(C'\fR, which is less than
4933 zero.  \fB\-Wstrict\-overflow\fR (with no level) is the same as
4934 \&\fB\-Wstrict\-overflow=2\fR.
4935 .IP "\fB\-Wstrict\-overflow=3\fR" 4
4936 .IX Item "-Wstrict-overflow=3"
4937 Also warn about other cases where a comparison is simplified.  For
4938 example: \f(CW\*(C`x + 1 > 1\*(C'\fR is simplified to \f(CW\*(C`x > 0\*(C'\fR.
4939 .IP "\fB\-Wstrict\-overflow=4\fR" 4
4940 .IX Item "-Wstrict-overflow=4"
4941 Also warn about other simplifications not covered by the above cases.
4942 For example: \f(CW\*(C`(x * 10) / 5\*(C'\fR is simplified to \f(CW\*(C`x * 2\*(C'\fR.
4943 .IP "\fB\-Wstrict\-overflow=5\fR" 4
4944 .IX Item "-Wstrict-overflow=5"
4945 Also warn about cases where the compiler reduces the magnitude of a
4946 constant involved in a comparison.  For example: \f(CW\*(C`x + 2 > y\*(C'\fR is
4947 simplified to \f(CW\*(C`x + 1 >= y\*(C'\fR.  This is reported only at the
4948 highest warning level because this simplification applies to many
4949 comparisons, so this warning level gives a very large number of
4950 false positives.
4951 .RE
4952 .RS 4
4953 .RE
4954 .IP "\fB\-Wstringop\-overflow\fR" 4
4955 .IX Item "-Wstringop-overflow"
4956 .PD 0
4957 .IP "\fB\-Wstringop\-overflow=\fR\fItype\fR" 4
4958 .IX Item "-Wstringop-overflow=type"
4959 .PD
4960 Warn for calls to string manipulation functions such as \f(CW\*(C`memcpy\*(C'\fR and
4961 \&\f(CW\*(C`strcpy\*(C'\fR that are determined to overflow the destination buffer.  The
4962 optional argument is one greater than the type of Object Size Checking to
4963 perform to determine the size of the destination.  
4964 The argument is meaningful only for functions that operate on character arrays
4965 but not for raw memory functions like \f(CW\*(C`memcpy\*(C'\fR which always make use
4966 of Object Size type\-0.  The option also warns for calls that specify a size
4967 in excess of the largest possible object or at most \f(CW\*(C`SIZE_MAX / 2\*(C'\fR bytes.
4968 The option produces the best results with optimization enabled but can detect
4969 a small subset of simple buffer overflows even without optimization in
4970 calls to the \s-1GCC\s0 built-in functions like \f(CW\*(C`_\|_builtin_memcpy\*(C'\fR that
4971 correspond to the standard functions.  In any case, the option warns about
4972 just a subset of buffer overflows detected by the corresponding overflow
4973 checking built-ins.  For example, the option will issue a warning for
4974 the \f(CW\*(C`strcpy\*(C'\fR call below because it copies at least 5 characters
4975 (the string \f(CW"blue"\fR including the terminating \s-1NUL\s0) into the buffer
4976 of size 4.
4977 .Sp
4978 .Vb 11
4979 \&        enum Color { blue, purple, yellow };
4980 \&        const char* f (enum Color clr)
4981 \&        {
4982 \&          static char buf [4];
4983 \&          const char *str;
4984 \&          switch (clr)
4985 \&            {
4986 \&              case blue: str = "blue"; break;
4987 \&              case purple: str = "purple"; break;
4988 \&              case yellow: str = "yellow"; break;
4989 \&            }
4990 \&        
4991 \&          return strcpy (buf, str);   // warning here
4992 \&        }
4993 .Ve
4994 .Sp
4995 Option \fB\-Wstringop\-overflow=2\fR is enabled by default.
4996 .RS 4
4997 .IP "\fB\-Wstringop\-overflow\fR" 4
4998 .IX Item "-Wstringop-overflow"
4999 .PD 0
5000 .IP "\fB\-Wstringop\-overflow=1\fR" 4
5001 .IX Item "-Wstringop-overflow=1"
5002 .PD
5003 The \fB\-Wstringop\-overflow=1\fR option uses type-zero Object Size Checking
5004 to determine the sizes of destination objects.  This is the default setting
5005 of the option.  At this setting the option will not warn for writes past
5006 the end of subobjects of larger objects accessed by pointers unless the
5007 size of the largest surrounding object is known.  When the destination may
5008 be one of several objects it is assumed to be the largest one of them.  On
5009 Linux systems, when optimization is enabled at this setting the option warns
5010 for the same code as when the \f(CW\*(C`_FORTIFY_SOURCE\*(C'\fR macro is defined to
5011 a non-zero value.
5012 .IP "\fB\-Wstringop\-overflow=2\fR" 4
5013 .IX Item "-Wstringop-overflow=2"
5014 The \fB\-Wstringop\-overflow=2\fR option uses type-one Object Size Checking
5015 to determine the sizes of destination objects.  At this setting the option
5016 will warn about overflows when writing to members of the largest complete
5017 objects whose exact size is known.  It will, however, not warn for excessive
5018 writes to the same members of unknown objects referenced by pointers since
5019 they may point to arrays containing unknown numbers of elements.
5020 .IP "\fB\-Wstringop\-overflow=3\fR" 4
5021 .IX Item "-Wstringop-overflow=3"
5022 The \fB\-Wstringop\-overflow=3\fR option uses type-two Object Size Checking
5023 to determine the sizes of destination objects.  At this setting the option
5024 warns about overflowing the smallest object or data member.  This is the
5025 most restrictive setting of the option that may result in warnings for safe
5026 code.
5027 .IP "\fB\-Wstringop\-overflow=4\fR" 4
5028 .IX Item "-Wstringop-overflow=4"
5029 The \fB\-Wstringop\-overflow=4\fR option uses type-three Object Size Checking
5030 to determine the sizes of destination objects.  At this setting the option
5031 will warn about overflowing any data members, and when the destination is
5032 one of several objects it uses the size of the largest of them to decide
5033 whether to issue a warning.  Similarly to \fB\-Wstringop\-overflow=3\fR this
5034 setting of the option may result in warnings for benign code.
5035 .RE
5036 .RS 4
5037 .RE
5038 .IP "\fB\-Wstringop\-truncation\fR" 4
5039 .IX Item "-Wstringop-truncation"
5040 Warn for calls to bounded string manipulation functions such as \f(CW\*(C`strncat\*(C'\fR,
5041 \&\f(CW\*(C`strncpy\*(C'\fR, and \f(CW\*(C`stpncpy\*(C'\fR that may either truncate the copied string
5042 or leave the destination unchanged.
5043 .Sp
5044 In the following example, the call to \f(CW\*(C`strncat\*(C'\fR specifies a bound that
5045 is less than the length of the source string.  As a result, the copy of
5046 the source will be truncated and so the call is diagnosed.  To avoid the
5047 warning use \f(CW\*(C`bufsize \- strlen (buf) \- 1)\*(C'\fR as the bound.
5048 .Sp
5049 .Vb 4
5050 \&        void append (char *buf, size_t bufsize)
5051 \&        {
5052 \&          strncat (buf, ".txt", 3);
5053 \&        }
5054 .Ve
5055 .Sp
5056 As another example, the following call to \f(CW\*(C`strncpy\*(C'\fR results in copying
5057 to \f(CW\*(C`d\*(C'\fR just the characters preceding the terminating \s-1NUL,\s0 without
5058 appending the \s-1NUL\s0 to the end.  Assuming the result of \f(CW\*(C`strncpy\*(C'\fR is
5059 necessarily a NUL-terminated string is a common mistake, and so the call
5060 is diagnosed.  To avoid the warning when the result is not expected to be
5061 NUL-terminated, call \f(CW\*(C`memcpy\*(C'\fR instead.
5062 .Sp
5063 .Vb 4
5064 \&        void copy (char *d, const char *s)
5065 \&        {
5066 \&          strncpy (d, s, strlen (s));
5067 \&        }
5068 .Ve
5069 .Sp
5070 In the following example, the call to \f(CW\*(C`strncpy\*(C'\fR specifies the size
5071 of the destination buffer as the bound.  If the length of the source
5072 string is equal to or greater than this size the result of the copy will
5073 not be NUL-terminated.  Therefore, the call is also diagnosed.  To avoid
5074 the warning, specify \f(CW\*(C`sizeof buf \- 1\*(C'\fR as the bound and set the last
5075 element of the buffer to \f(CW\*(C`NUL\*(C'\fR.
5076 .Sp
5077 .Vb 6
5078 \&        void copy (const char *s)
5079 \&        {
5080 \&          char buf[80];
5081 \&          strncpy (buf, s, sizeof buf);
5082 \&          ...
5083 \&        }
5084 .Ve
5085 .Sp
5086 In situations where a character array is intended to store a sequence
5087 of bytes with no terminating \f(CW\*(C`NUL\*(C'\fR such an array may be annotated
5088 with attribute \f(CW\*(C`nonstring\*(C'\fR to avoid this warning.  Such arrays,
5089 however, are not suitable arguments to functions that expect
5090 \&\f(CW\*(C`NUL\*(C'\fR\-terminated strings.  To help detect accidental misuses of
5091 such arrays \s-1GCC\s0 issues warnings unless it can prove that the use is
5092 safe.
5093 .Sp
5094 Option \fB\-Wstringop\-truncation\fR is enabled by \fB\-Wall\fR.
5095 .IP "\fB\-Wsuggest\-attribute=\fR[\fBpure\fR|\fBconst\fR|\fBnoreturn\fR|\fBformat\fR|\fBcold\fR|\fBmalloc\fR]" 4
5096 .IX Item "-Wsuggest-attribute=[pure|const|noreturn|format|cold|malloc]"
5097 Warn for cases where adding an attribute may be beneficial. The
5098 attributes currently supported are listed below.
5099 .RS 4
5100 .IP "\fB\-Wsuggest\-attribute=pure\fR" 4
5101 .IX Item "-Wsuggest-attribute=pure"
5102 .PD 0
5103 .IP "\fB\-Wsuggest\-attribute=const\fR" 4
5104 .IX Item "-Wsuggest-attribute=const"
5105 .IP "\fB\-Wsuggest\-attribute=noreturn\fR" 4
5106 .IX Item "-Wsuggest-attribute=noreturn"
5107 .IP "\fB\-Wsuggest\-attribute=malloc\fR" 4
5108 .IX Item "-Wsuggest-attribute=malloc"
5109 .PD
5110 Warn about functions that might be candidates for attributes
5111 \&\f(CW\*(C`pure\*(C'\fR, \f(CW\*(C`const\*(C'\fR or \f(CW\*(C`noreturn\*(C'\fR or \f(CW\*(C`malloc\*(C'\fR. The compiler
5112 only warns for functions visible in other compilation units or (in the case of
5113 \&\f(CW\*(C`pure\*(C'\fR and \f(CW\*(C`const\*(C'\fR) if it cannot prove that the function returns
5114 normally. A function returns normally if it doesn't contain an infinite loop or
5115 return abnormally by throwing, calling \f(CW\*(C`abort\*(C'\fR or trapping.  This analysis
5116 requires option \fB\-fipa\-pure\-const\fR, which is enabled by default at
5117 \&\fB\-O\fR and higher.  Higher optimization levels improve the accuracy
5118 of the analysis.
5119 .IP "\fB\-Wsuggest\-attribute=format\fR" 4
5120 .IX Item "-Wsuggest-attribute=format"
5121 .PD 0
5122 .IP "\fB\-Wmissing\-format\-attribute\fR" 4
5123 .IX Item "-Wmissing-format-attribute"
5124 .PD
5125 Warn about function pointers that might be candidates for \f(CW\*(C`format\*(C'\fR
5126 attributes.  Note these are only possible candidates, not absolute ones.
5127 \&\s-1GCC\s0 guesses that function pointers with \f(CW\*(C`format\*(C'\fR attributes that
5128 are used in assignment, initialization, parameter passing or return
5129 statements should have a corresponding \f(CW\*(C`format\*(C'\fR attribute in the
5130 resulting type.  I.e. the left-hand side of the assignment or
5131 initialization, the type of the parameter variable, or the return type
5132 of the containing function respectively should also have a \f(CW\*(C`format\*(C'\fR
5133 attribute to avoid the warning.
5134 .Sp
5135 \&\s-1GCC\s0 also warns about function definitions that might be
5136 candidates for \f(CW\*(C`format\*(C'\fR attributes.  Again, these are only
5137 possible candidates.  \s-1GCC\s0 guesses that \f(CW\*(C`format\*(C'\fR attributes
5138 might be appropriate for any function that calls a function like
5139 \&\f(CW\*(C`vprintf\*(C'\fR or \f(CW\*(C`vscanf\*(C'\fR, but this might not always be the
5140 case, and some functions for which \f(CW\*(C`format\*(C'\fR attributes are
5141 appropriate may not be detected.
5142 .IP "\fB\-Wsuggest\-attribute=cold\fR" 4
5143 .IX Item "-Wsuggest-attribute=cold"
5144 Warn about functions that might be candidates for \f(CW\*(C`cold\*(C'\fR attribute.  This
5145 is based on static detection and generally will only warn about functions which
5146 always leads to a call to another \f(CW\*(C`cold\*(C'\fR function such as wrappers of
5147 \&\*(C+ \f(CW\*(C`throw\*(C'\fR or fatal error reporting functions leading to \f(CW\*(C`abort\*(C'\fR.
5148 .RE
5149 .RS 4
5150 .RE
5151 .IP "\fB\-Wsuggest\-final\-types\fR" 4
5152 .IX Item "-Wsuggest-final-types"
5153 Warn about types with virtual methods where code quality would be improved
5154 if the type were declared with the \*(C+11 \f(CW\*(C`final\*(C'\fR specifier, 
5155 or, if possible,
5156 declared in an anonymous namespace. This allows \s-1GCC\s0 to more aggressively
5157 devirtualize the polymorphic calls. This warning is more effective with link
5158 time optimization, where the information about the class hierarchy graph is
5159 more complete.
5160 .IP "\fB\-Wsuggest\-final\-methods\fR" 4
5161 .IX Item "-Wsuggest-final-methods"
5162 Warn about virtual methods where code quality would be improved if the method
5163 were declared with the \*(C+11 \f(CW\*(C`final\*(C'\fR specifier, 
5164 or, if possible, its type were
5165 declared in an anonymous namespace or with the \f(CW\*(C`final\*(C'\fR specifier.
5166 This warning is
5167 more effective with link-time optimization, where the information about the
5168 class hierarchy graph is more complete. It is recommended to first consider
5169 suggestions of \fB\-Wsuggest\-final\-types\fR and then rebuild with new
5170 annotations.
5171 .IP "\fB\-Wsuggest\-override\fR" 4
5172 .IX Item "-Wsuggest-override"
5173 Warn about overriding virtual functions that are not marked with the override
5174 keyword.
5175 .IP "\fB\-Walloc\-zero\fR" 4
5176 .IX Item "-Walloc-zero"
5177 Warn about calls to allocation functions decorated with attribute
5178 \&\f(CW\*(C`alloc_size\*(C'\fR that specify zero bytes, including those to the built-in
5179 forms of the functions \f(CW\*(C`aligned_alloc\*(C'\fR, \f(CW\*(C`alloca\*(C'\fR, \f(CW\*(C`calloc\*(C'\fR,
5180 \&\f(CW\*(C`malloc\*(C'\fR, and \f(CW\*(C`realloc\*(C'\fR.  Because the behavior of these functions
5181 when called with a zero size differs among implementations (and in the case
5182 of \f(CW\*(C`realloc\*(C'\fR has been deprecated) relying on it may result in subtle
5183 portability bugs and should be avoided.
5184 .IP "\fB\-Walloc\-size\-larger\-than=\fR\fIn\fR" 4
5185 .IX Item "-Walloc-size-larger-than=n"
5186 Warn about calls to functions decorated with attribute \f(CW\*(C`alloc_size\*(C'\fR
5187 that attempt to allocate objects larger than the specified number of bytes,
5188 or where the result of the size computation in an integer type with infinite
5189 precision would exceed \f(CW\*(C`SIZE_MAX / 2\*(C'\fR.  The option argument \fIn\fR
5190 may end in one of the standard suffixes designating a multiple of bytes
5191 such as \f(CW\*(C`kB\*(C'\fR and \f(CW\*(C`KiB\*(C'\fR for kilobyte and kibibyte, respectively,
5192 \&\f(CW\*(C`MB\*(C'\fR and \f(CW\*(C`MiB\*(C'\fR for megabyte and mebibyte, and so on.
5193 \&\fB\-Walloc\-size\-larger\-than=\fR\fI\s-1PTRDIFF_MAX\s0\fR is enabled by default.
5194 Warnings controlled by the option can be disabled by specifying \fIn\fR
5195 of \fI\s-1SIZE_MAX\s0\fR or more.
5196 .IP "\fB\-Walloca\fR" 4
5197 .IX Item "-Walloca"
5198 This option warns on all uses of \f(CW\*(C`alloca\*(C'\fR in the source.
5199 .IP "\fB\-Walloca\-larger\-than=\fR\fIn\fR" 4
5200 .IX Item "-Walloca-larger-than=n"
5201 This option warns on calls to \f(CW\*(C`alloca\*(C'\fR that are not bounded by a
5202 controlling predicate limiting its argument of integer type to at most
5203 \&\fIn\fR bytes, or calls to \f(CW\*(C`alloca\*(C'\fR where the bound is unknown.
5204 Arguments of non-integer types are considered unbounded even if they
5205 appear to be constrained to the expected range.
5206 .Sp
5207 For example, a bounded case of \f(CW\*(C`alloca\*(C'\fR could be:
5208 .Sp
5209 .Vb 9
5210 \&        void func (size_t n)
5211 \&        {
5212 \&          void *p;
5213 \&          if (n <= 1000)
5214 \&            p = alloca (n);
5215 \&          else
5216 \&            p = malloc (n);
5217 \&          f (p);
5218 \&        }
5219 .Ve
5220 .Sp
5221 In the above example, passing \f(CW\*(C`\-Walloca\-larger\-than=1000\*(C'\fR would not
5222 issue a warning because the call to \f(CW\*(C`alloca\*(C'\fR is known to be at most
5223 1000 bytes.  However, if \f(CW\*(C`\-Walloca\-larger\-than=500\*(C'\fR were passed,
5224 the compiler would emit a warning.
5225 .Sp
5226 Unbounded uses, on the other hand, are uses of \f(CW\*(C`alloca\*(C'\fR with no
5227 controlling predicate constraining its integer argument.  For example:
5228 .Sp
5229 .Vb 5
5230 \&        void func ()
5231 \&        {
5232 \&          void *p = alloca (n);
5233 \&          f (p);
5234 \&        }
5235 .Ve
5236 .Sp
5237 If \f(CW\*(C`\-Walloca\-larger\-than=500\*(C'\fR were passed, the above would trigger
5238 a warning, but this time because of the lack of bounds checking.
5239 .Sp
5240 Note, that even seemingly correct code involving signed integers could
5241 cause a warning:
5242 .Sp
5243 .Vb 8
5244 \&        void func (signed int n)
5245 \&        {
5246 \&          if (n < 500)
5247 \&            {
5248 \&              p = alloca (n);
5249 \&              f (p);
5250 \&            }
5251 \&        }
5252 .Ve
5253 .Sp
5254 In the above example, \fIn\fR could be negative, causing a larger than
5255 expected argument to be implicitly cast into the \f(CW\*(C`alloca\*(C'\fR call.
5256 .Sp
5257 This option also warns when \f(CW\*(C`alloca\*(C'\fR is used in a loop.
5258 .Sp
5259 This warning is not enabled by \fB\-Wall\fR, and is only active when
5260 \&\fB\-ftree\-vrp\fR is active (default for \fB\-O2\fR and above).
5261 .Sp
5262 See also \fB\-Wvla\-larger\-than=\fR\fIn\fR.
5263 .IP "\fB\-Warray\-bounds\fR" 4
5264 .IX Item "-Warray-bounds"
5265 .PD 0
5266 .IP "\fB\-Warray\-bounds=\fR\fIn\fR" 4
5267 .IX Item "-Warray-bounds=n"
5268 .PD
5269 This option is only active when \fB\-ftree\-vrp\fR is active
5270 (default for \fB\-O2\fR and above). It warns about subscripts to arrays
5271 that are always out of bounds. This warning is enabled by \fB\-Wall\fR.
5272 .RS 4
5273 .IP "\fB\-Warray\-bounds=1\fR" 4
5274 .IX Item "-Warray-bounds=1"
5275 This is the warning level of \fB\-Warray\-bounds\fR and is enabled
5276 by \fB\-Wall\fR; higher levels are not, and must be explicitly requested.
5277 .IP "\fB\-Warray\-bounds=2\fR" 4
5278 .IX Item "-Warray-bounds=2"
5279 This warning level also warns about out of bounds access for
5280 arrays at the end of a struct and for arrays accessed through
5281 pointers. This warning level may give a larger number of
5282 false positives and is deactivated by default.
5283 .RE
5284 .RS 4
5285 .RE
5286 .IP "\fB\-Wattribute\-alias\fR" 4
5287 .IX Item "-Wattribute-alias"
5288 Warn about declarations using the \f(CW\*(C`alias\*(C'\fR and similar attributes whose
5289 target is incompatible with the type of the alias.
5290 .IP "\fB\-Wbool\-compare\fR" 4
5291 .IX Item "-Wbool-compare"
5292 Warn about boolean expression compared with an integer value different from
5293 \&\f(CW\*(C`true\*(C'\fR/\f(CW\*(C`false\*(C'\fR.  For instance, the following comparison is
5294 always false:
5295 .Sp
5296 .Vb 3
5297 \&        int n = 5;
5298 \&        ...
5299 \&        if ((n > 1) == 2) { ... }
5300 .Ve
5301 .Sp
5302 This warning is enabled by \fB\-Wall\fR.
5303 .IP "\fB\-Wbool\-operation\fR" 4
5304 .IX Item "-Wbool-operation"
5305 Warn about suspicious operations on expressions of a boolean type.  For
5306 instance, bitwise negation of a boolean is very likely a bug in the program.
5307 For C, this warning also warns about incrementing or decrementing a boolean,
5308 which rarely makes sense.  (In \*(C+, decrementing a boolean is always invalid.
5309 Incrementing a boolean is invalid in \*(C+17, and deprecated otherwise.)
5310 .Sp
5311 This warning is enabled by \fB\-Wall\fR.
5312 .IP "\fB\-Wduplicated\-branches\fR" 4
5313 .IX Item "-Wduplicated-branches"
5314 Warn when an if-else has identical branches.  This warning detects cases like
5315 .Sp
5316 .Vb 4
5317 \&        if (p != NULL)
5318 \&          return 0;
5319 \&        else
5320 \&          return 0;
5321 .Ve
5322 .Sp
5323 It doesn't warn when both branches contain just a null statement.  This warning
5324 also warn for conditional operators:
5325 .Sp
5326 .Vb 1
5327 \&          int i = x ? *p : *p;
5328 .Ve
5329 .IP "\fB\-Wduplicated\-cond\fR" 4
5330 .IX Item "-Wduplicated-cond"
5331 Warn about duplicated conditions in an if-else-if chain.  For instance,
5332 warn for the following code:
5333 .Sp
5334 .Vb 2
5335 \&        if (p\->q != NULL) { ... }
5336 \&        else if (p\->q != NULL) { ... }
5337 .Ve
5338 .IP "\fB\-Wframe\-address\fR" 4
5339 .IX Item "-Wframe-address"
5340 Warn when the \fB_\|_builtin_frame_address\fR or \fB_\|_builtin_return_address\fR
5341 is called with an argument greater than 0.  Such calls may return indeterminate
5342 values or crash the program.  The warning is included in \fB\-Wall\fR.
5343 .IP "\fB\-Wno\-discarded\-qualifiers\fR (C and Objective-C only)" 4
5344 .IX Item "-Wno-discarded-qualifiers (C and Objective-C only)"
5345 Do not warn if type qualifiers on pointers are being discarded.
5346 Typically, the compiler warns if a \f(CW\*(C`const char *\*(C'\fR variable is
5347 passed to a function that takes a \f(CW\*(C`char *\*(C'\fR parameter.  This option
5348 can be used to suppress such a warning.
5349 .IP "\fB\-Wno\-discarded\-array\-qualifiers\fR (C and Objective-C only)" 4
5350 .IX Item "-Wno-discarded-array-qualifiers (C and Objective-C only)"
5351 Do not warn if type qualifiers on arrays which are pointer targets
5352 are being discarded. Typically, the compiler warns if a
5353 \&\f(CW\*(C`const int (*)[]\*(C'\fR variable is passed to a function that
5354 takes a \f(CW\*(C`int (*)[]\*(C'\fR parameter.  This option can be used to
5355 suppress such a warning.
5356 .IP "\fB\-Wno\-incompatible\-pointer\-types\fR (C and Objective-C only)" 4
5357 .IX Item "-Wno-incompatible-pointer-types (C and Objective-C only)"
5358 Do not warn when there is a conversion between pointers that have incompatible
5359 types.  This warning is for cases not covered by \fB\-Wno\-pointer\-sign\fR,
5360 which warns for pointer argument passing or assignment with different
5361 signedness.
5362 .IP "\fB\-Wno\-int\-conversion\fR (C and Objective-C only)" 4
5363 .IX Item "-Wno-int-conversion (C and Objective-C only)"
5364 Do not warn about incompatible integer to pointer and pointer to integer
5365 conversions.  This warning is about implicit conversions; for explicit
5366 conversions the warnings \fB\-Wno\-int\-to\-pointer\-cast\fR and
5367 \&\fB\-Wno\-pointer\-to\-int\-cast\fR may be used.
5368 .IP "\fB\-Wno\-div\-by\-zero\fR" 4
5369 .IX Item "-Wno-div-by-zero"
5370 Do not warn about compile-time integer division by zero.  Floating-point
5371 division by zero is not warned about, as it can be a legitimate way of
5372 obtaining infinities and NaNs.
5373 .IP "\fB\-Wsystem\-headers\fR" 4
5374 .IX Item "-Wsystem-headers"
5375 Print warning messages for constructs found in system header files.
5376 Warnings from system headers are normally suppressed, on the assumption
5377 that they usually do not indicate real problems and would only make the
5378 compiler output harder to read.  Using this command-line option tells
5379 \&\s-1GCC\s0 to emit warnings from system headers as if they occurred in user
5380 code.  However, note that using \fB\-Wall\fR in conjunction with this
5381 option does \fInot\fR warn about unknown pragmas in system
5382 headers\-\-\-for that, \fB\-Wunknown\-pragmas\fR must also be used.
5383 .IP "\fB\-Wtautological\-compare\fR" 4
5384 .IX Item "-Wtautological-compare"
5385 Warn if a self-comparison always evaluates to true or false.  This
5386 warning detects various mistakes such as:
5387 .Sp
5388 .Vb 3
5389 \&        int i = 1;
5390 \&        ...
5391 \&        if (i > i) { ... }
5392 .Ve
5393 .Sp
5394 This warning also warns about bitwise comparisons that always evaluate
5395 to true or false, for instance:
5396 .Sp
5397 .Vb 1
5398 \&        if ((a & 16) == 10) { ... }
5399 .Ve
5400 .Sp
5401 will always be false.
5402 .Sp
5403 This warning is enabled by \fB\-Wall\fR.
5404 .IP "\fB\-Wtrampolines\fR" 4
5405 .IX Item "-Wtrampolines"
5406 Warn about trampolines generated for pointers to nested functions.
5407 A trampoline is a small piece of data or code that is created at run
5408 time on the stack when the address of a nested function is taken, and is
5409 used to call the nested function indirectly.  For some targets, it is
5410 made up of data only and thus requires no special treatment.  But, for
5411 most targets, it is made up of code and thus requires the stack to be
5412 made executable in order for the program to work properly.
5413 .IP "\fB\-Wfloat\-equal\fR" 4
5414 .IX Item "-Wfloat-equal"
5415 Warn if floating-point values are used in equality comparisons.
5416 .Sp
5417 The idea behind this is that sometimes it is convenient (for the
5418 programmer) to consider floating-point values as approximations to
5419 infinitely precise real numbers.  If you are doing this, then you need
5420 to compute (by analyzing the code, or in some other way) the maximum or
5421 likely maximum error that the computation introduces, and allow for it
5422 when performing comparisons (and when producing output, but that's a
5423 different problem).  In particular, instead of testing for equality, you
5424 should check to see whether the two values have ranges that overlap; and
5425 this is done with the relational operators, so equality comparisons are
5426 probably mistaken.
5427 .IP "\fB\-Wtraditional\fR (C and Objective-C only)" 4
5428 .IX Item "-Wtraditional (C and Objective-C only)"
5429 Warn about certain constructs that behave differently in traditional and
5430 \&\s-1ISO C.\s0  Also warn about \s-1ISO C\s0 constructs that have no traditional C
5431 equivalent, and/or problematic constructs that should be avoided.
5432 .RS 4
5433 .IP "*" 4
5434 Macro parameters that appear within string literals in the macro body.
5435 In traditional C macro replacement takes place within string literals,
5436 but in \s-1ISO C\s0 it does not.
5437 .IP "*" 4
5438 In traditional C, some preprocessor directives did not exist.
5439 Traditional preprocessors only considered a line to be a directive
5440 if the \fB#\fR appeared in column 1 on the line.  Therefore
5441 \&\fB\-Wtraditional\fR warns about directives that traditional C
5442 understands but ignores because the \fB#\fR does not appear as the
5443 first character on the line.  It also suggests you hide directives like
5444 \&\f(CW\*(C`#pragma\*(C'\fR not understood by traditional C by indenting them.  Some
5445 traditional implementations do not recognize \f(CW\*(C`#elif\*(C'\fR, so this option
5446 suggests avoiding it altogether.
5447 .IP "*" 4
5448 A function-like macro that appears without arguments.
5449 .IP "*" 4
5450 The unary plus operator.
5451 .IP "*" 4
5452 The \fBU\fR integer constant suffix, or the \fBF\fR or \fBL\fR floating-point
5453 constant suffixes.  (Traditional C does support the \fBL\fR suffix on integer
5454 constants.)  Note, these suffixes appear in macros defined in the system
5455 headers of most modern systems, e.g. the \fB_MIN\fR/\fB_MAX\fR macros in \f(CW\*(C`<limits.h>\*(C'\fR.
5456 Use of these macros in user code might normally lead to spurious
5457 warnings, however \s-1GCC\s0's integrated preprocessor has enough context to
5458 avoid warning in these cases.
5459 .IP "*" 4
5460 A function declared external in one block and then used after the end of
5461 the block.
5462 .IP "*" 4
5463 A \f(CW\*(C`switch\*(C'\fR statement has an operand of type \f(CW\*(C`long\*(C'\fR.
5464 .IP "*" 4
5465 A non\-\f(CW\*(C`static\*(C'\fR function declaration follows a \f(CW\*(C`static\*(C'\fR one.
5466 This construct is not accepted by some traditional C compilers.
5467 .IP "*" 4
5468 The \s-1ISO\s0 type of an integer constant has a different width or
5469 signedness from its traditional type.  This warning is only issued if
5470 the base of the constant is ten.  I.e. hexadecimal or octal values, which
5471 typically represent bit patterns, are not warned about.
5472 .IP "*" 4
5473 Usage of \s-1ISO\s0 string concatenation is detected.
5474 .IP "*" 4
5475 Initialization of automatic aggregates.
5476 .IP "*" 4
5477 Identifier conflicts with labels.  Traditional C lacks a separate
5478 namespace for labels.
5479 .IP "*" 4
5480 Initialization of unions.  If the initializer is zero, the warning is
5481 omitted.  This is done under the assumption that the zero initializer in
5482 user code appears conditioned on e.g. \f(CW\*(C`_\|_STDC_\|_\*(C'\fR to avoid missing
5483 initializer warnings and relies on default initialization to zero in the
5484 traditional C case.
5485 .IP "*" 4
5486 Conversions by prototypes between fixed/floating\-point values and vice
5487 versa.  The absence of these prototypes when compiling with traditional
5488 C causes serious problems.  This is a subset of the possible
5489 conversion warnings; for the full set use \fB\-Wtraditional\-conversion\fR.
5490 .IP "*" 4
5491 Use of \s-1ISO C\s0 style function definitions.  This warning intentionally is
5492 \&\fInot\fR issued for prototype declarations or variadic functions
5493 because these \s-1ISO C\s0 features appear in your code when using
5494 libiberty's traditional C compatibility macros, \f(CW\*(C`PARAMS\*(C'\fR and
5495 \&\f(CW\*(C`VPARAMS\*(C'\fR.  This warning is also bypassed for nested functions
5496 because that feature is already a \s-1GCC\s0 extension and thus not relevant to
5497 traditional C compatibility.
5498 .RE
5499 .RS 4
5500 .RE
5501 .IP "\fB\-Wtraditional\-conversion\fR (C and Objective-C only)" 4
5502 .IX Item "-Wtraditional-conversion (C and Objective-C only)"
5503 Warn if a prototype causes a type conversion that is different from what
5504 would happen to the same argument in the absence of a prototype.  This
5505 includes conversions of fixed point to floating and vice versa, and
5506 conversions changing the width or signedness of a fixed-point argument
5507 except when the same as the default promotion.
5508 .IP "\fB\-Wdeclaration\-after\-statement\fR (C and Objective-C only)" 4
5509 .IX Item "-Wdeclaration-after-statement (C and Objective-C only)"
5510 Warn when a declaration is found after a statement in a block.  This
5511 construct, known from \*(C+, was introduced with \s-1ISO C99\s0 and is by default
5512 allowed in \s-1GCC.\s0  It is not supported by \s-1ISO C90.\s0
5513 .IP "\fB\-Wshadow\fR" 4
5514 .IX Item "-Wshadow"
5515 Warn whenever a local variable or type declaration shadows another
5516 variable, parameter, type, class member (in \*(C+), or instance variable
5517 (in Objective-C) or whenever a built-in function is shadowed. Note
5518 that in \*(C+, the compiler warns if a local variable shadows an
5519 explicit typedef, but not if it shadows a struct/class/enum.
5520 Same as \fB\-Wshadow=global\fR.
5521 .IP "\fB\-Wno\-shadow\-ivar\fR (Objective-C only)" 4
5522 .IX Item "-Wno-shadow-ivar (Objective-C only)"
5523 Do not warn whenever a local variable shadows an instance variable in an
5524 Objective-C method.
5525 .IP "\fB\-Wshadow=global\fR" 4
5526 .IX Item "-Wshadow=global"
5527 The default for \fB\-Wshadow\fR. Warns for any (global) shadowing.
5528 .IP "\fB\-Wshadow=local\fR" 4
5529 .IX Item "-Wshadow=local"
5530 Warn when a local variable shadows another local variable or parameter.
5531 This warning is enabled by \fB\-Wshadow=global\fR.
5532 .IP "\fB\-Wshadow=compatible\-local\fR" 4
5533 .IX Item "-Wshadow=compatible-local"
5534 Warn when a local variable shadows another local variable or parameter
5535 whose type is compatible with that of the shadowing variable. In \*(C+,
5536 type compatibility here means the type of the shadowing variable can be
5537 converted to that of the shadowed variable. The creation of this flag
5538 (in addition to \fB\-Wshadow=local\fR) is based on the idea that when
5539 a local variable shadows another one of incompatible type, it is most
5540 likely intentional, not a bug or typo, as shown in the following example:
5541 .Sp
5542 .Vb 8
5543 \&        for (SomeIterator i = SomeObj.begin(); i != SomeObj.end(); ++i)
5544 \&        {
5545 \&          for (int i = 0; i < N; ++i)
5546 \&          {
5547 \&            ...
5548 \&          }
5549 \&          ...
5550 \&        }
5551 .Ve
5552 .Sp
5553 Since the two variable \f(CW\*(C`i\*(C'\fR in the example above have incompatible types,
5554 enabling only \fB\-Wshadow=compatible\-local\fR will not emit a warning.
5555 Because their types are incompatible, if a programmer accidentally uses one
5556 in place of the other, type checking will catch that and emit an error or
5557 warning. So not warning (about shadowing) in this case will not lead to
5558 undetected bugs. Use of this flag instead of \fB\-Wshadow=local\fR can
5559 possibly reduce the number of warnings triggered by intentional shadowing.
5560 .Sp
5561 This warning is enabled by \fB\-Wshadow=local\fR.
5562 .IP "\fB\-Wlarger\-than=\fR\fIlen\fR" 4
5563 .IX Item "-Wlarger-than=len"
5564 Warn whenever an object of larger than \fIlen\fR bytes is defined.
5565 .IP "\fB\-Wframe\-larger\-than=\fR\fIlen\fR" 4
5566 .IX Item "-Wframe-larger-than=len"
5567 Warn if the size of a function frame is larger than \fIlen\fR bytes.
5568 The computation done to determine the stack frame size is approximate
5569 and not conservative.
5570 The actual requirements may be somewhat greater than \fIlen\fR
5571 even if you do not get a warning.  In addition, any space allocated
5572 via \f(CW\*(C`alloca\*(C'\fR, variable-length arrays, or related constructs
5573 is not included by the compiler when determining
5574 whether or not to issue a warning.
5575 .IP "\fB\-Wno\-free\-nonheap\-object\fR" 4
5576 .IX Item "-Wno-free-nonheap-object"
5577 Do not warn when attempting to free an object that was not allocated
5578 on the heap.
5579 .IP "\fB\-Wstack\-usage=\fR\fIlen\fR" 4
5580 .IX Item "-Wstack-usage=len"
5581 Warn if the stack usage of a function might be larger than \fIlen\fR bytes.
5582 The computation done to determine the stack usage is conservative.
5583 Any space allocated via \f(CW\*(C`alloca\*(C'\fR, variable-length arrays, or related
5584 constructs is included by the compiler when determining whether or not to
5585 issue a warning.
5586 .Sp
5587 The message is in keeping with the output of \fB\-fstack\-usage\fR.
5588 .RS 4
5589 .IP "*" 4
5590 If the stack usage is fully static but exceeds the specified amount, it's:
5591 .Sp
5592 .Vb 1
5593 \&          warning: stack usage is 1120 bytes
5594 .Ve
5595 .IP "*" 4
5596 If the stack usage is (partly) dynamic but bounded, it's:
5597 .Sp
5598 .Vb 1
5599 \&          warning: stack usage might be 1648 bytes
5600 .Ve
5601 .IP "*" 4
5602 If the stack usage is (partly) dynamic and not bounded, it's:
5603 .Sp
5604 .Vb 1
5605 \&          warning: stack usage might be unbounded
5606 .Ve
5607 .RE
5608 .RS 4
5609 .RE
5610 .IP "\fB\-Wno\-pedantic\-ms\-format\fR (MinGW targets only)" 4
5611 .IX Item "-Wno-pedantic-ms-format (MinGW targets only)"
5612 When used in combination with \fB\-Wformat\fR
5613 and \fB\-pedantic\fR without \s-1GNU\s0 extensions, this option
5614 disables the warnings about non-ISO \f(CW\*(C`printf\*(C'\fR / \f(CW\*(C`scanf\*(C'\fR format
5615 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,
5616 which depend on the \s-1MS\s0 runtime.
5617 .IP "\fB\-Waligned\-new\fR" 4
5618 .IX Item "-Waligned-new"
5619 Warn about a new-expression of a type that requires greater alignment
5620 than the \f(CW\*(C`alignof(std::max_align_t)\*(C'\fR but uses an allocation
5621 function without an explicit alignment parameter. This option is
5622 enabled by \fB\-Wall\fR.
5623 .Sp
5624 Normally this only warns about global allocation functions, but
5625 \&\fB\-Waligned\-new=all\fR also warns about class member allocation
5626 functions.
5627 .IP "\fB\-Wplacement\-new\fR" 4
5628 .IX Item "-Wplacement-new"
5629 .PD 0
5630 .IP "\fB\-Wplacement\-new=\fR\fIn\fR" 4
5631 .IX Item "-Wplacement-new=n"
5632 .PD
5633 Warn about placement new expressions with undefined behavior, such as
5634 constructing an object in a buffer that is smaller than the type of
5635 the object.  For example, the placement new expression below is diagnosed
5636 because it attempts to construct an array of 64 integers in a buffer only
5637 64 bytes large.
5638 .Sp
5639 .Vb 2
5640 \&        char buf [64];
5641 \&        new (buf) int[64];
5642 .Ve
5643 .Sp
5644 This warning is enabled by default.
5645 .RS 4
5646 .IP "\fB\-Wplacement\-new=1\fR" 4
5647 .IX Item "-Wplacement-new=1"
5648 This is the default warning level of \fB\-Wplacement\-new\fR.  At this
5649 level the warning is not issued for some strictly undefined constructs that
5650 \&\s-1GCC\s0 allows as extensions for compatibility with legacy code.  For example,
5651 the following \f(CW\*(C`new\*(C'\fR expression is not diagnosed at this level even
5652 though it has undefined behavior according to the \*(C+ standard because
5653 it writes past the end of the one-element array.
5654 .Sp
5655 .Vb 3
5656 \&        struct S { int n, a[1]; };
5657 \&        S *s = (S *)malloc (sizeof *s + 31 * sizeof s\->a[0]);
5658 \&        new (s\->a)int [32]();
5659 .Ve
5660 .IP "\fB\-Wplacement\-new=2\fR" 4
5661 .IX Item "-Wplacement-new=2"
5662 At this level, in addition to diagnosing all the same constructs as at level
5663 1, a diagnostic is also issued for placement new expressions that construct
5664 an object in the last member of structure whose type is an array of a single
5665 element and whose size is less than the size of the object being constructed.
5666 While the previous example would be diagnosed, the following construct makes
5667 use of the flexible member array extension to avoid the warning at level 2.
5668 .Sp
5669 .Vb 3
5670 \&        struct S { int n, a[]; };
5671 \&        S *s = (S *)malloc (sizeof *s + 32 * sizeof s\->a[0]);
5672 \&        new (s\->a)int [32]();
5673 .Ve
5674 .RE
5675 .RS 4
5676 .RE
5677 .IP "\fB\-Wpointer\-arith\fR" 4
5678 .IX Item "-Wpointer-arith"
5679 Warn about anything that depends on the \*(L"size of\*(R" a function type or
5680 of \f(CW\*(C`void\*(C'\fR.  \s-1GNU C\s0 assigns these types a size of 1, for
5681 convenience in calculations with \f(CW\*(C`void *\*(C'\fR pointers and pointers
5682 to functions.  In \*(C+, warn also when an arithmetic operation involves
5683 \&\f(CW\*(C`NULL\*(C'\fR.  This warning is also enabled by \fB\-Wpedantic\fR.
5684 .IP "\fB\-Wpointer\-compare\fR" 4
5685 .IX Item "-Wpointer-compare"
5686 Warn if a pointer is compared with a zero character constant.  This usually
5687 means that the pointer was meant to be dereferenced.  For example:
5688 .Sp
5689 .Vb 3
5690 \&        const char *p = foo ();
5691 \&        if (p == \*(Aq\e0\*(Aq)
5692 \&          return 42;
5693 .Ve
5694 .Sp
5695 Note that the code above is invalid in \*(C+11.
5696 .Sp
5697 This warning is enabled by default.
5698 .IP "\fB\-Wtype\-limits\fR" 4
5699 .IX Item "-Wtype-limits"
5700 Warn if a comparison is always true or always false due to the limited
5701 range of the data type, but do not warn for constant expressions.  For
5702 example, warn if an unsigned variable is compared against zero with
5703 \&\f(CW\*(C`<\*(C'\fR or \f(CW\*(C`>=\*(C'\fR.  This warning is also enabled by
5704 \&\fB\-Wextra\fR.
5705 .IP "\fB\-Wcomment\fR" 4
5706 .IX Item "-Wcomment"
5707 .PD 0
5708 .IP "\fB\-Wcomments\fR" 4
5709 .IX Item "-Wcomments"
5710 .PD
5711 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
5712 comment, or whenever a backslash-newline appears in a \fB//\fR comment.
5713 This warning is enabled by \fB\-Wall\fR.
5714 .IP "\fB\-Wtrigraphs\fR" 4
5715 .IX Item "-Wtrigraphs"
5716 Warn if any trigraphs are encountered that might change the meaning of
5717 the program.  Trigraphs within comments are not warned about,
5718 except those that would form escaped newlines.
5719 .Sp
5720 This option is implied by \fB\-Wall\fR.  If \fB\-Wall\fR is not
5721 given, this option is still enabled unless trigraphs are enabled.  To
5722 get trigraph conversion without warnings, but get the other
5723 \&\fB\-Wall\fR warnings, use \fB\-trigraphs \-Wall \-Wno\-trigraphs\fR.
5724 .IP "\fB\-Wundef\fR" 4
5725 .IX Item "-Wundef"
5726 Warn if an undefined identifier is evaluated in an \f(CW\*(C`#if\*(C'\fR directive.
5727 Such identifiers are replaced with zero.
5728 .IP "\fB\-Wexpansion\-to\-defined\fR" 4
5729 .IX Item "-Wexpansion-to-defined"
5730 Warn whenever \fBdefined\fR is encountered in the expansion of a macro
5731 (including the case where the macro is expanded by an \fB#if\fR directive).
5732 Such usage is not portable.
5733 This warning is also enabled by \fB\-Wpedantic\fR and \fB\-Wextra\fR.
5734 .IP "\fB\-Wunused\-macros\fR" 4
5735 .IX Item "-Wunused-macros"
5736 Warn about macros defined in the main file that are unused.  A macro
5737 is \fIused\fR if it is expanded or tested for existence at least once.
5738 The preprocessor also warns if the macro has not been used at the
5739 time it is redefined or undefined.
5740 .Sp
5741 Built-in macros, macros defined on the command line, and macros
5742 defined in include files are not warned about.
5743 .Sp
5744 \&\fINote:\fR If a macro is actually used, but only used in skipped
5745 conditional blocks, then the preprocessor reports it as unused.  To avoid the
5746 warning in such a case, you might improve the scope of the macro's
5747 definition by, for example, moving it into the first skipped block.
5748 Alternatively, you could provide a dummy use with something like:
5749 .Sp
5750 .Vb 2
5751 \&        #if defined the_macro_causing_the_warning
5752 \&        #endif
5753 .Ve
5754 .IP "\fB\-Wno\-endif\-labels\fR" 4
5755 .IX Item "-Wno-endif-labels"
5756 Do not warn whenever an \f(CW\*(C`#else\*(C'\fR or an \f(CW\*(C`#endif\*(C'\fR are followed by text.
5757 This sometimes happens in older programs with code of the form
5758 .Sp
5759 .Vb 5
5760 \&        #if FOO
5761 \&        ...
5762 \&        #else FOO
5763 \&        ...
5764 \&        #endif FOO
5765 .Ve
5766 .Sp
5767 The second and third \f(CW\*(C`FOO\*(C'\fR should be in comments.
5768 This warning is on by default.
5769 .IP "\fB\-Wbad\-function\-cast\fR (C and Objective-C only)" 4
5770 .IX Item "-Wbad-function-cast (C and Objective-C only)"
5771 Warn when a function call is cast to a non-matching type.
5772 For example, warn if a call to a function returning an integer type 
5773 is cast to a pointer type.
5774 .IP "\fB\-Wc90\-c99\-compat\fR (C and Objective-C only)" 4
5775 .IX Item "-Wc90-c99-compat (C and Objective-C only)"
5776 Warn about features not present in \s-1ISO C90,\s0 but present in \s-1ISO C99.\s0
5777 For instance, warn about use of variable length arrays, \f(CW\*(C`long long\*(C'\fR
5778 type, \f(CW\*(C`bool\*(C'\fR type, compound literals, designated initializers, and so
5779 on.  This option is independent of the standards mode.  Warnings are disabled
5780 in the expression that follows \f(CW\*(C`_\|_extension_\|_\*(C'\fR.
5781 .IP "\fB\-Wc99\-c11\-compat\fR (C and Objective-C only)" 4
5782 .IX Item "-Wc99-c11-compat (C and Objective-C only)"
5783 Warn about features not present in \s-1ISO C99,\s0 but present in \s-1ISO C11.\s0
5784 For instance, warn about use of anonymous structures and unions,
5785 \&\f(CW\*(C`_Atomic\*(C'\fR type qualifier, \f(CW\*(C`_Thread_local\*(C'\fR storage-class specifier,
5786 \&\f(CW\*(C`_Alignas\*(C'\fR specifier, \f(CW\*(C`Alignof\*(C'\fR operator, \f(CW\*(C`_Generic\*(C'\fR keyword,
5787 and so on.  This option is independent of the standards mode.  Warnings are
5788 disabled in the expression that follows \f(CW\*(C`_\|_extension_\|_\*(C'\fR.
5789 .IP "\fB\-Wc++\-compat\fR (C and Objective-C only)" 4
5790 .IX Item "-Wc++-compat (C and Objective-C only)"
5791 Warn about \s-1ISO C\s0 constructs that are outside of the common subset of
5792 \&\s-1ISO C\s0 and \s-1ISO \*(C+,\s0 e.g. request for implicit conversion from
5793 \&\f(CW\*(C`void *\*(C'\fR to a pointer to non\-\f(CW\*(C`void\*(C'\fR type.
5794 .IP "\fB\-Wc++11\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
5795 .IX Item "-Wc++11-compat ( and Objective- only)"
5796 Warn about \*(C+ constructs whose meaning differs between \s-1ISO \*(C+ 1998\s0
5797 and \s-1ISO \*(C+ 2011,\s0 e.g., identifiers in \s-1ISO \*(C+ 1998\s0 that are keywords
5798 in \s-1ISO \*(C+ 2011.\s0  This warning turns on \fB\-Wnarrowing\fR and is
5799 enabled by \fB\-Wall\fR.
5800 .IP "\fB\-Wc++14\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
5801 .IX Item "-Wc++14-compat ( and Objective- only)"
5802 Warn about \*(C+ constructs whose meaning differs between \s-1ISO \*(C+ 2011\s0
5803 and \s-1ISO \*(C+ 2014.\s0  This warning is enabled by \fB\-Wall\fR.
5804 .IP "\fB\-Wc++17\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
5805 .IX Item "-Wc++17-compat ( and Objective- only)"
5806 Warn about \*(C+ constructs whose meaning differs between \s-1ISO \*(C+ 2014\s0
5807 and \s-1ISO \*(C+ 2017.\s0  This warning is enabled by \fB\-Wall\fR.
5808 .IP "\fB\-Wcast\-qual\fR" 4
5809 .IX Item "-Wcast-qual"
5810 Warn whenever a pointer is cast so as to remove a type qualifier from
5811 the target type.  For example, warn if a \f(CW\*(C`const char *\*(C'\fR is cast
5812 to an ordinary \f(CW\*(C`char *\*(C'\fR.
5813 .Sp
5814 Also warn when making a cast that introduces a type qualifier in an
5815 unsafe way.  For example, casting \f(CW\*(C`char **\*(C'\fR to \f(CW\*(C`const char **\*(C'\fR
5816 is unsafe, as in this example:
5817 .Sp
5818 .Vb 6
5819 \&          /* p is char ** value.  */
5820 \&          const char **q = (const char **) p;
5821 \&          /* Assignment of readonly string to const char * is OK.  */
5822 \&          *q = "string";
5823 \&          /* Now char** pointer points to read\-only memory.  */
5824 \&          **p = \*(Aqb\*(Aq;
5825 .Ve
5826 .IP "\fB\-Wcast\-align\fR" 4
5827 .IX Item "-Wcast-align"
5828 Warn whenever a pointer is cast such that the required alignment of the
5829 target is increased.  For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
5830 an \f(CW\*(C`int *\*(C'\fR on machines where integers can only be accessed at
5831 two\- or four-byte boundaries.
5832 .IP "\fB\-Wcast\-align=strict\fR" 4
5833 .IX Item "-Wcast-align=strict"
5834 Warn whenever a pointer is cast such that the required alignment of the
5835 target is increased.  For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
5836 an \f(CW\*(C`int *\*(C'\fR regardless of the target machine.
5837 .IP "\fB\-Wcast\-function\-type\fR" 4
5838 .IX Item "-Wcast-function-type"
5839 Warn when a function pointer is cast to an incompatible function pointer.
5840 In a cast involving function types with a variable argument list only
5841 the types of initial arguments that are provided are considered.
5842 Any parameter of pointer-type matches any other pointer-type.  Any benign
5843 differences in integral types are ignored, like \f(CW\*(C`int\*(C'\fR vs. \f(CW\*(C`long\*(C'\fR
5844 on \s-1ILP32\s0 targets.  Likewise type qualifiers are ignored.  The function
5845 type \f(CW\*(C`void (*) (void)\*(C'\fR is special and matches everything, which can
5846 be used to suppress this warning.
5847 In a cast involving pointer to member types this warning warns whenever
5848 the type cast is changing the pointer to member type.
5849 This warning is enabled by \fB\-Wextra\fR.
5850 .IP "\fB\-Wwrite\-strings\fR" 4
5851 .IX Item "-Wwrite-strings"
5852 When compiling C, give string constants the type \f(CW\*(C`const
5853 char[\f(CIlength\f(CW]\*(C'\fR so that copying the address of one into a
5854 non\-\f(CW\*(C`const\*(C'\fR \f(CW\*(C`char *\*(C'\fR pointer produces a warning.  These
5855 warnings help you find at compile time code that can try to write
5856 into a string constant, but only if you have been very careful about
5857 using \f(CW\*(C`const\*(C'\fR in declarations and prototypes.  Otherwise, it is
5858 just a nuisance. This is why we did not make \fB\-Wall\fR request
5859 these warnings.
5860 .Sp
5861 When compiling \*(C+, warn about the deprecated conversion from string
5862 literals to \f(CW\*(C`char *\*(C'\fR.  This warning is enabled by default for \*(C+
5863 programs.
5864 .IP "\fB\-Wcatch\-value\fR" 4
5865 .IX Item "-Wcatch-value"
5866 .PD 0
5867 .IP "\fB\-Wcatch\-value=\fR\fIn\fR\fB \fR(\*(C+ and Objective\-\*(C+ only)" 4
5868 .IX Item "-Wcatch-value=n ( and Objective- only)"
5869 .PD
5870 Warn about catch handlers that do not catch via reference.
5871 With \fB\-Wcatch\-value=1\fR (or \fB\-Wcatch\-value\fR for short)
5872 warn about polymorphic class types that are caught by value.
5873 With \fB\-Wcatch\-value=2\fR warn about all class types that are caught
5874 by value. With \fB\-Wcatch\-value=3\fR warn about all types that are
5875 not caught by reference. \fB\-Wcatch\-value\fR is enabled by \fB\-Wall\fR.
5876 .IP "\fB\-Wclobbered\fR" 4
5877 .IX Item "-Wclobbered"
5878 Warn for variables that might be changed by \f(CW\*(C`longjmp\*(C'\fR or
5879 \&\f(CW\*(C`vfork\*(C'\fR.  This warning is also enabled by \fB\-Wextra\fR.
5880 .IP "\fB\-Wconditionally\-supported\fR (\*(C+ and Objective\-\*(C+ only)" 4
5881 .IX Item "-Wconditionally-supported ( and Objective- only)"
5882 Warn for conditionally-supported (\*(C+11 [intro.defs]) constructs.
5883 .IP "\fB\-Wconversion\fR" 4
5884 .IX Item "-Wconversion"
5885 Warn for implicit conversions that may alter a value. This includes
5886 conversions between real and integer, like \f(CW\*(C`abs (x)\*(C'\fR when
5887 \&\f(CW\*(C`x\*(C'\fR is \f(CW\*(C`double\*(C'\fR; conversions between signed and unsigned,
5888 like \f(CW\*(C`unsigned ui = \-1\*(C'\fR; and conversions to smaller types, like
5889 \&\f(CW\*(C`sqrtf (M_PI)\*(C'\fR. Do not warn for explicit casts like \f(CW\*(C`abs
5890 ((int) x)\*(C'\fR and \f(CW\*(C`ui = (unsigned) \-1\*(C'\fR, or if the value is not
5891 changed by the conversion like in \f(CW\*(C`abs (2.0)\*(C'\fR.  Warnings about
5892 conversions between signed and unsigned integers can be disabled by
5893 using \fB\-Wno\-sign\-conversion\fR.
5894 .Sp
5895 For \*(C+, also warn for confusing overload resolution for user-defined
5896 conversions; and conversions that never use a type conversion
5897 operator: conversions to \f(CW\*(C`void\*(C'\fR, the same type, a base class or a
5898 reference to them. Warnings about conversions between signed and
5899 unsigned integers are disabled by default in \*(C+ unless
5900 \&\fB\-Wsign\-conversion\fR is explicitly enabled.
5901 .IP "\fB\-Wno\-conversion\-null\fR (\*(C+ and Objective\-\*(C+ only)" 4
5902 .IX Item "-Wno-conversion-null ( and Objective- only)"
5903 Do not warn for conversions between \f(CW\*(C`NULL\*(C'\fR and non-pointer
5904 types. \fB\-Wconversion\-null\fR is enabled by default.
5905 .IP "\fB\-Wzero\-as\-null\-pointer\-constant\fR (\*(C+ and Objective\-\*(C+ only)" 4
5906 .IX Item "-Wzero-as-null-pointer-constant ( and Objective- only)"
5907 Warn when a literal \fB0\fR is used as null pointer constant.  This can
5908 be useful to facilitate the conversion to \f(CW\*(C`nullptr\*(C'\fR in \*(C+11.
5909 .IP "\fB\-Wsubobject\-linkage\fR (\*(C+ and Objective\-\*(C+ only)" 4
5910 .IX Item "-Wsubobject-linkage ( and Objective- only)"
5911 Warn if a class type has a base or a field whose type uses the anonymous
5912 namespace or depends on a type with no linkage.  If a type A depends on
5913 a type B with no or internal linkage, defining it in multiple
5914 translation units would be an \s-1ODR\s0 violation because the meaning of B
5915 is different in each translation unit.  If A only appears in a single
5916 translation unit, the best way to silence the warning is to give it
5917 internal linkage by putting it in an anonymous namespace as well.  The
5918 compiler doesn't give this warning for types defined in the main .C
5919 file, as those are unlikely to have multiple definitions.
5920 \&\fB\-Wsubobject\-linkage\fR is enabled by default.
5921 .IP "\fB\-Wdangling\-else\fR" 4
5922 .IX Item "-Wdangling-else"
5923 Warn about constructions where there may be confusion to which
5924 \&\f(CW\*(C`if\*(C'\fR statement an \f(CW\*(C`else\*(C'\fR branch belongs.  Here is an example of
5925 such a case:
5926 .Sp
5927 .Vb 7
5928 \&        {
5929 \&          if (a)
5930 \&            if (b)
5931 \&              foo ();
5932 \&          else
5933 \&            bar ();
5934 \&        }
5935 .Ve
5936 .Sp
5937 In C/\*(C+, every \f(CW\*(C`else\*(C'\fR branch belongs to the innermost possible
5938 \&\f(CW\*(C`if\*(C'\fR statement, which in this example is \f(CW\*(C`if (b)\*(C'\fR.  This is
5939 often not what the programmer expected, as illustrated in the above
5940 example by indentation the programmer chose.  When there is the
5941 potential for this confusion, \s-1GCC\s0 issues a warning when this flag
5942 is specified.  To eliminate the warning, add explicit braces around
5943 the innermost \f(CW\*(C`if\*(C'\fR statement so there is no way the \f(CW\*(C`else\*(C'\fR
5944 can belong to the enclosing \f(CW\*(C`if\*(C'\fR.  The resulting code
5945 looks like this:
5946 .Sp
5947 .Vb 9
5948 \&        {
5949 \&          if (a)
5950 \&            {
5951 \&              if (b)
5952 \&                foo ();
5953 \&              else
5954 \&                bar ();
5955 \&            }
5956 \&        }
5957 .Ve
5958 .Sp
5959 This warning is enabled by \fB\-Wparentheses\fR.
5960 .IP "\fB\-Wdate\-time\fR" 4
5961 .IX Item "-Wdate-time"
5962 Warn when macros \f(CW\*(C`_\|_TIME_\|_\*(C'\fR, \f(CW\*(C`_\|_DATE_\|_\*(C'\fR or \f(CW\*(C`_\|_TIMESTAMP_\|_\*(C'\fR
5963 are encountered as they might prevent bit-wise-identical reproducible
5964 compilations.
5965 .IP "\fB\-Wdelete\-incomplete\fR (\*(C+ and Objective\-\*(C+ only)" 4
5966 .IX Item "-Wdelete-incomplete ( and Objective- only)"
5967 Warn when deleting a pointer to incomplete type, which may cause
5968 undefined behavior at runtime.  This warning is enabled by default.
5969 .IP "\fB\-Wuseless\-cast\fR (\*(C+ and Objective\-\*(C+ only)" 4
5970 .IX Item "-Wuseless-cast ( and Objective- only)"
5971 Warn when an expression is casted to its own type.
5972 .IP "\fB\-Wempty\-body\fR" 4
5973 .IX Item "-Wempty-body"
5974 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
5975 while\*(C'\fR statement.  This warning is also enabled by \fB\-Wextra\fR.
5976 .IP "\fB\-Wenum\-compare\fR" 4
5977 .IX Item "-Wenum-compare"
5978 Warn about a comparison between values of different enumerated types.
5979 In \*(C+ enumerated type mismatches in conditional expressions are also
5980 diagnosed and the warning is enabled by default.  In C this warning is 
5981 enabled by \fB\-Wall\fR.
5982 .IP "\fB\-Wextra\-semi\fR (\*(C+, Objective\-\*(C+ only)" 4
5983 .IX Item "-Wextra-semi (, Objective- only)"
5984 Warn about redundant semicolon after in-class function definition.
5985 .IP "\fB\-Wjump\-misses\-init\fR (C, Objective-C only)" 4
5986 .IX Item "-Wjump-misses-init (C, Objective-C only)"
5987 Warn if a \f(CW\*(C`goto\*(C'\fR statement or a \f(CW\*(C`switch\*(C'\fR statement jumps
5988 forward across the initialization of a variable, or jumps backward to a
5989 label after the variable has been initialized.  This only warns about
5990 variables that are initialized when they are declared.  This warning is
5991 only supported for C and Objective-C; in \*(C+ this sort of branch is an
5992 error in any case.
5993 .Sp
5994 \&\fB\-Wjump\-misses\-init\fR is included in \fB\-Wc++\-compat\fR.  It
5995 can be disabled with the \fB\-Wno\-jump\-misses\-init\fR option.
5996 .IP "\fB\-Wsign\-compare\fR" 4
5997 .IX Item "-Wsign-compare"
5998 Warn when a comparison between signed and unsigned values could produce
5999 an incorrect result when the signed value is converted to unsigned.
6000 In \*(C+, this warning is also enabled by \fB\-Wall\fR.  In C, it is
6001 also enabled by \fB\-Wextra\fR.
6002 .IP "\fB\-Wsign\-conversion\fR" 4
6003 .IX Item "-Wsign-conversion"
6004 Warn for implicit conversions that may change the sign of an integer
6005 value, like assigning a signed integer expression to an unsigned
6006 integer variable. An explicit cast silences the warning. In C, this
6007 option is enabled also by \fB\-Wconversion\fR.
6008 .IP "\fB\-Wfloat\-conversion\fR" 4
6009 .IX Item "-Wfloat-conversion"
6010 Warn for implicit conversions that reduce the precision of a real value.
6011 This includes conversions from real to integer, and from higher precision
6012 real to lower precision real values.  This option is also enabled by
6013 \&\fB\-Wconversion\fR.
6014 .IP "\fB\-Wno\-scalar\-storage\-order\fR" 4
6015 .IX Item "-Wno-scalar-storage-order"
6016 Do not warn on suspicious constructs involving reverse scalar storage order.
6017 .IP "\fB\-Wsized\-deallocation\fR (\*(C+ and Objective\-\*(C+ only)" 4
6018 .IX Item "-Wsized-deallocation ( and Objective- only)"
6019 Warn about a definition of an unsized deallocation function
6020 .Sp
6021 .Vb 2
6022 \&        void operator delete (void *) noexcept;
6023 \&        void operator delete[] (void *) noexcept;
6024 .Ve
6025 .Sp
6026 without a definition of the corresponding sized deallocation function
6027 .Sp
6028 .Vb 2
6029 \&        void operator delete (void *, std::size_t) noexcept;
6030 \&        void operator delete[] (void *, std::size_t) noexcept;
6031 .Ve
6032 .Sp
6033 or vice versa.  Enabled by \fB\-Wextra\fR along with
6034 \&\fB\-fsized\-deallocation\fR.
6035 .IP "\fB\-Wsizeof\-pointer\-div\fR" 4
6036 .IX Item "-Wsizeof-pointer-div"
6037 Warn for suspicious divisions of two sizeof expressions that divide
6038 the pointer size by the element size, which is the usual way to compute
6039 the array size but won't work out correctly with pointers.  This warning
6040 warns e.g. about \f(CW\*(C`sizeof (ptr) / sizeof (ptr[0])\*(C'\fR if \f(CW\*(C`ptr\*(C'\fR is
6041 not an array, but a pointer.  This warning is enabled by \fB\-Wall\fR.
6042 .IP "\fB\-Wsizeof\-pointer\-memaccess\fR" 4
6043 .IX Item "-Wsizeof-pointer-memaccess"
6044 Warn for suspicious length parameters to certain string and memory built-in
6045 functions if the argument uses \f(CW\*(C`sizeof\*(C'\fR.  This warning triggers for
6046 example for \f(CW\*(C`memset (ptr, 0, sizeof (ptr));\*(C'\fR if \f(CW\*(C`ptr\*(C'\fR is not
6047 an array, but a pointer, and suggests a possible fix, or about
6048 \&\f(CW\*(C`memcpy (&foo, ptr, sizeof (&foo));\*(C'\fR.  \fB\-Wsizeof\-pointer\-memaccess\fR
6049 also warns about calls to bounded string copy functions like \f(CW\*(C`strncat\*(C'\fR
6050 or \f(CW\*(C`strncpy\*(C'\fR that specify as the bound a \f(CW\*(C`sizeof\*(C'\fR expression of
6051 the source array.  For example, in the following function the call to
6052 \&\f(CW\*(C`strncat\*(C'\fR specifies the size of the source string as the bound.  That
6053 is almost certainly a mistake and so the call is diagnosed.
6054 .Sp
6055 .Vb 7
6056 \&        void make_file (const char *name)
6057 \&        {
6058 \&          char path[PATH_MAX];
6059 \&          strncpy (path, name, sizeof path \- 1);
6060 \&          strncat (path, ".text", sizeof ".text");
6061 \&          ...
6062 \&        }
6063 .Ve
6064 .Sp
6065 The \fB\-Wsizeof\-pointer\-memaccess\fR option is enabled by \fB\-Wall\fR.
6066 .IP "\fB\-Wsizeof\-array\-argument\fR" 4
6067 .IX Item "-Wsizeof-array-argument"
6068 Warn when the \f(CW\*(C`sizeof\*(C'\fR operator is applied to a parameter that is
6069 declared as an array in a function definition.  This warning is enabled by
6070 default for C and \*(C+ programs.
6071 .IP "\fB\-Wmemset\-elt\-size\fR" 4
6072 .IX Item "-Wmemset-elt-size"
6073 Warn for suspicious calls to the \f(CW\*(C`memset\*(C'\fR built-in function, if the
6074 first argument references an array, and the third argument is a number
6075 equal to the number of elements, but not equal to the size of the array
6076 in memory.  This indicates that the user has omitted a multiplication by
6077 the element size.  This warning is enabled by \fB\-Wall\fR.
6078 .IP "\fB\-Wmemset\-transposed\-args\fR" 4
6079 .IX Item "-Wmemset-transposed-args"
6080 Warn for suspicious calls to the \f(CW\*(C`memset\*(C'\fR built-in function, if the
6081 second argument is not zero and the third argument is zero.  This warns e.g.@
6082 about \f(CW\*(C`memset (buf, sizeof buf, 0)\*(C'\fR where most probably
6083 \&\f(CW\*(C`memset (buf, 0, sizeof buf)\*(C'\fR was meant instead.  The diagnostics
6084 is only emitted if the third argument is literal zero.  If it is some
6085 expression that is folded to zero, a cast of zero to some type, etc., 
6086 it is far less likely that the user has mistakenly exchanged the arguments 
6087 and no warning is emitted.  This warning is enabled by \fB\-Wall\fR.
6088 .IP "\fB\-Waddress\fR" 4
6089 .IX Item "-Waddress"
6090 Warn about suspicious uses of memory addresses. These include using
6091 the address of a function in a conditional expression, such as
6092 \&\f(CW\*(C`void func(void); if (func)\*(C'\fR, and comparisons against the memory
6093 address of a string literal, such as \f(CW\*(C`if (x == "abc")\*(C'\fR.  Such
6094 uses typically indicate a programmer error: the address of a function
6095 always evaluates to true, so their use in a conditional usually
6096 indicate that the programmer forgot the parentheses in a function
6097 call; and comparisons against string literals result in unspecified
6098 behavior and are not portable in C, so they usually indicate that the
6099 programmer intended to use \f(CW\*(C`strcmp\*(C'\fR.  This warning is enabled by
6100 \&\fB\-Wall\fR.
6101 .IP "\fB\-Wlogical\-op\fR" 4
6102 .IX Item "-Wlogical-op"
6103 Warn about suspicious uses of logical operators in expressions.
6104 This includes using logical operators in contexts where a
6105 bit-wise operator is likely to be expected.  Also warns when
6106 the operands of a logical operator are the same:
6107 .Sp
6108 .Vb 2
6109 \&        extern int a;
6110 \&        if (a < 0 && a < 0) { ... }
6111 .Ve
6112 .IP "\fB\-Wlogical\-not\-parentheses\fR" 4
6113 .IX Item "-Wlogical-not-parentheses"
6114 Warn about logical not used on the left hand side operand of a comparison.
6115 This option does not warn if the right operand is considered to be a boolean
6116 expression.  Its purpose is to detect suspicious code like the following:
6117 .Sp
6118 .Vb 3
6119 \&        int a;
6120 \&        ...
6121 \&        if (!a > 1) { ... }
6122 .Ve
6123 .Sp
6124 It is possible to suppress the warning by wrapping the \s-1LHS\s0 into
6125 parentheses:
6126 .Sp
6127 .Vb 1
6128 \&        if ((!a) > 1) { ... }
6129 .Ve
6130 .Sp
6131 This warning is enabled by \fB\-Wall\fR.
6132 .IP "\fB\-Waggregate\-return\fR" 4
6133 .IX Item "-Waggregate-return"
6134 Warn if any functions that return structures or unions are defined or
6135 called.  (In languages where you can return an array, this also elicits
6136 a warning.)
6137 .IP "\fB\-Wno\-aggressive\-loop\-optimizations\fR" 4
6138 .IX Item "-Wno-aggressive-loop-optimizations"
6139 Warn if in a loop with constant number of iterations the compiler detects
6140 undefined behavior in some statement during one or more of the iterations.
6141 .IP "\fB\-Wno\-attributes\fR" 4
6142 .IX Item "-Wno-attributes"
6143 Do not warn if an unexpected \f(CW\*(C`_\|_attribute_\|_\*(C'\fR is used, such as
6144 unrecognized attributes, function attributes applied to variables,
6145 etc.  This does not stop errors for incorrect use of supported
6146 attributes.
6147 .IP "\fB\-Wno\-builtin\-declaration\-mismatch\fR" 4
6148 .IX Item "-Wno-builtin-declaration-mismatch"
6149 Warn if a built-in function is declared with the wrong signature or 
6150 as non-function.
6151 This warning is enabled by default.
6152 .IP "\fB\-Wno\-builtin\-macro\-redefined\fR" 4
6153 .IX Item "-Wno-builtin-macro-redefined"
6154 Do not warn if certain built-in macros are redefined.  This suppresses
6155 warnings for redefinition of \f(CW\*(C`_\|_TIMESTAMP_\|_\*(C'\fR, \f(CW\*(C`_\|_TIME_\|_\*(C'\fR,
6156 \&\f(CW\*(C`_\|_DATE_\|_\*(C'\fR, \f(CW\*(C`_\|_FILE_\|_\*(C'\fR, and \f(CW\*(C`_\|_BASE_FILE_\|_\*(C'\fR.
6157 .IP "\fB\-Wstrict\-prototypes\fR (C and Objective-C only)" 4
6158 .IX Item "-Wstrict-prototypes (C and Objective-C only)"
6159 Warn if a function is declared or defined without specifying the
6160 argument types.  (An old-style function definition is permitted without
6161 a warning if preceded by a declaration that specifies the argument
6162 types.)
6163 .IP "\fB\-Wold\-style\-declaration\fR (C and Objective-C only)" 4
6164 .IX Item "-Wold-style-declaration (C and Objective-C only)"
6165 Warn for obsolescent usages, according to the C Standard, in a
6166 declaration. For example, warn if storage-class specifiers like
6167 \&\f(CW\*(C`static\*(C'\fR are not the first things in a declaration.  This warning
6168 is also enabled by \fB\-Wextra\fR.
6169 .IP "\fB\-Wold\-style\-definition\fR (C and Objective-C only)" 4
6170 .IX Item "-Wold-style-definition (C and Objective-C only)"
6171 Warn if an old-style function definition is used.  A warning is given
6172 even if there is a previous prototype.
6173 .IP "\fB\-Wmissing\-parameter\-type\fR (C and Objective-C only)" 4
6174 .IX Item "-Wmissing-parameter-type (C and Objective-C only)"
6175 A function parameter is declared without a type specifier in K&R\-style
6176 functions:
6177 .Sp
6178 .Vb 1
6179 \&        void foo(bar) { }
6180 .Ve
6181 .Sp
6182 This warning is also enabled by \fB\-Wextra\fR.
6183 .IP "\fB\-Wmissing\-prototypes\fR (C and Objective-C only)" 4
6184 .IX Item "-Wmissing-prototypes (C and Objective-C only)"
6185 Warn if a global function is defined without a previous prototype
6186 declaration.  This warning is issued even if the definition itself
6187 provides a prototype.  Use this option to detect global functions
6188 that do not have a matching prototype declaration in a header file.
6189 This option is not valid for \*(C+ because all function declarations
6190 provide prototypes and a non-matching declaration declares an
6191 overload rather than conflict with an earlier declaration.
6192 Use \fB\-Wmissing\-declarations\fR to detect missing declarations in \*(C+.
6193 .IP "\fB\-Wmissing\-declarations\fR" 4
6194 .IX Item "-Wmissing-declarations"
6195 Warn if a global function is defined without a previous declaration.
6196 Do so even if the definition itself provides a prototype.
6197 Use this option to detect global functions that are not declared in
6198 header files.  In C, no warnings are issued for functions with previous
6199 non-prototype declarations; use \fB\-Wmissing\-prototypes\fR to detect
6200 missing prototypes.  In \*(C+, no warnings are issued for function templates,
6201 or for inline functions, or for functions in anonymous namespaces.
6202 .IP "\fB\-Wmissing\-field\-initializers\fR" 4
6203 .IX Item "-Wmissing-field-initializers"
6204 Warn if a structure's initializer has some fields missing.  For
6205 example, the following code causes such a warning, because
6206 \&\f(CW\*(C`x.h\*(C'\fR is implicitly zero:
6207 .Sp
6208 .Vb 2
6209 \&        struct s { int f, g, h; };
6210 \&        struct s x = { 3, 4 };
6211 .Ve
6212 .Sp
6213 This option does not warn about designated initializers, so the following
6214 modification does not trigger a warning:
6215 .Sp
6216 .Vb 2
6217 \&        struct s { int f, g, h; };
6218 \&        struct s x = { .f = 3, .g = 4 };
6219 .Ve
6220 .Sp
6221 In C this option does not warn about the universal zero initializer
6222 \&\fB{ 0 }\fR:
6223 .Sp
6224 .Vb 2
6225 \&        struct s { int f, g, h; };
6226 \&        struct s x = { 0 };
6227 .Ve
6228 .Sp
6229 Likewise, in \*(C+ this option does not warn about the empty { }
6230 initializer, for example:
6231 .Sp
6232 .Vb 2
6233 \&        struct s { int f, g, h; };
6234 \&        s x = { };
6235 .Ve
6236 .Sp
6237 This warning is included in \fB\-Wextra\fR.  To get other \fB\-Wextra\fR
6238 warnings without this one, use \fB\-Wextra \-Wno\-missing\-field\-initializers\fR.
6239 .IP "\fB\-Wno\-multichar\fR" 4
6240 .IX Item "-Wno-multichar"
6241 Do not warn if a multicharacter constant (\fB'\s-1FOOF\s0'\fR) is used.
6242 Usually they indicate a typo in the user's code, as they have
6243 implementation-defined values, and should not be used in portable code.
6244 .IP "\fB\-Wnormalized=\fR[\fBnone\fR|\fBid\fR|\fBnfc\fR|\fBnfkc\fR]" 4
6245 .IX Item "-Wnormalized=[none|id|nfc|nfkc]"
6246 In \s-1ISO C\s0 and \s-1ISO \*(C+,\s0 two identifiers are different if they are
6247 different sequences of characters.  However, sometimes when characters
6248 outside the basic \s-1ASCII\s0 character set are used, you can have two
6249 different character sequences that look the same.  To avoid confusion,
6250 the \s-1ISO 10646\s0 standard sets out some \fInormalization rules\fR which
6251 when applied ensure that two sequences that look the same are turned into
6252 the same sequence.  \s-1GCC\s0 can warn you if you are using identifiers that
6253 have not been normalized; this option controls that warning.
6254 .Sp
6255 There are four levels of warning supported by \s-1GCC.\s0  The default is
6256 \&\fB\-Wnormalized=nfc\fR, which warns about any identifier that is
6257 not in the \s-1ISO 10646 \*(L"C\*(R"\s0 normalized form, \fI\s-1NFC\s0\fR.  \s-1NFC\s0 is the
6258 recommended form for most uses.  It is equivalent to
6259 \&\fB\-Wnormalized\fR.
6260 .Sp
6261 Unfortunately, there are some characters allowed in identifiers by
6262 \&\s-1ISO C\s0 and \s-1ISO \*(C+\s0 that, when turned into \s-1NFC,\s0 are not allowed in 
6263 identifiers.  That is, there's no way to use these symbols in portable
6264 \&\s-1ISO C\s0 or \*(C+ and have all your identifiers in \s-1NFC.\s0
6265 \&\fB\-Wnormalized=id\fR suppresses the warning for these characters.
6266 It is hoped that future versions of the standards involved will correct
6267 this, which is why this option is not the default.
6268 .Sp
6269 You can switch the warning off for all characters by writing
6270 \&\fB\-Wnormalized=none\fR or \fB\-Wno\-normalized\fR.  You should
6271 only do this if you are using some other normalization scheme (like
6272 \&\*(L"D\*(R"), because otherwise you can easily create bugs that are
6273 literally impossible to see.
6274 .Sp
6275 Some characters in \s-1ISO 10646\s0 have distinct meanings but look identical
6276 in some fonts or display methodologies, especially once formatting has
6277 been applied.  For instance \f(CW\*(C`\eu207F\*(C'\fR, \*(L"\s-1SUPERSCRIPT LATIN SMALL
6278 LETTER N\*(R",\s0 displays just like a regular \f(CW\*(C`n\*(C'\fR that has been
6279 placed in a superscript.  \s-1ISO 10646\s0 defines the \fI\s-1NFKC\s0\fR
6280 normalization scheme to convert all these into a standard form as
6281 well, and \s-1GCC\s0 warns if your code is not in \s-1NFKC\s0 if you use
6282 \&\fB\-Wnormalized=nfkc\fR.  This warning is comparable to warning
6283 about every identifier that contains the letter O because it might be
6284 confused with the digit 0, and so is not the default, but may be
6285 useful as a local coding convention if the programming environment 
6286 cannot be fixed to display these characters distinctly.
6287 .IP "\fB\-Wno\-deprecated\fR" 4
6288 .IX Item "-Wno-deprecated"
6289 Do not warn about usage of deprecated features.
6290 .IP "\fB\-Wno\-deprecated\-declarations\fR" 4
6291 .IX Item "-Wno-deprecated-declarations"
6292 Do not warn about uses of functions,
6293 variables, and types marked as deprecated by using the \f(CW\*(C`deprecated\*(C'\fR
6294 attribute.
6295 .IP "\fB\-Wno\-overflow\fR" 4
6296 .IX Item "-Wno-overflow"
6297 Do not warn about compile-time overflow in constant expressions.
6298 .IP "\fB\-Wno\-odr\fR" 4
6299 .IX Item "-Wno-odr"
6300 Warn about One Definition Rule violations during link-time optimization.
6301 Requires \fB\-flto\-odr\-type\-merging\fR to be enabled.  Enabled by default.
6302 .IP "\fB\-Wopenmp\-simd\fR" 4
6303 .IX Item "-Wopenmp-simd"
6304 Warn if the vectorizer cost model overrides the OpenMP
6305 simd directive set by user.  The \fB\-fsimd\-cost\-model=unlimited\fR
6306 option can be used to relax the cost model.
6307 .IP "\fB\-Woverride\-init\fR (C and Objective-C only)" 4
6308 .IX Item "-Woverride-init (C and Objective-C only)"
6309 Warn if an initialized field without side effects is overridden when
6310 using designated initializers.
6311 .Sp
6312 This warning is included in \fB\-Wextra\fR.  To get other
6313 \&\fB\-Wextra\fR warnings without this one, use \fB\-Wextra
6314 \&\-Wno\-override\-init\fR.
6315 .IP "\fB\-Woverride\-init\-side\-effects\fR (C and Objective-C only)" 4
6316 .IX Item "-Woverride-init-side-effects (C and Objective-C only)"
6317 Warn if an initialized field with side effects is overridden when
6318 using designated initializers.  This warning is enabled by default.
6319 .IP "\fB\-Wpacked\fR" 4
6320 .IX Item "-Wpacked"
6321 Warn if a structure is given the packed attribute, but the packed
6322 attribute has no effect on the layout or size of the structure.
6323 Such structures may be mis-aligned for little benefit.  For
6324 instance, in this code, the variable \f(CW\*(C`f.x\*(C'\fR in \f(CW\*(C`struct bar\*(C'\fR
6325 is misaligned even though \f(CW\*(C`struct bar\*(C'\fR does not itself
6326 have the packed attribute:
6327 .Sp
6328 .Vb 8
6329 \&        struct foo {
6330 \&          int x;
6331 \&          char a, b, c, d;
6332 \&        } _\|_attribute_\|_((packed));
6333 \&        struct bar {
6334 \&          char z;
6335 \&          struct foo f;
6336 \&        };
6337 .Ve
6338 .IP "\fB\-Wpacked\-bitfield\-compat\fR" 4
6339 .IX Item "-Wpacked-bitfield-compat"
6340 The 4.1, 4.2 and 4.3 series of \s-1GCC\s0 ignore the \f(CW\*(C`packed\*(C'\fR attribute
6341 on bit-fields of type \f(CW\*(C`char\*(C'\fR.  This has been fixed in \s-1GCC 4.4\s0 but
6342 the change can lead to differences in the structure layout.  \s-1GCC\s0
6343 informs you when the offset of such a field has changed in \s-1GCC 4.4.\s0
6344 For example there is no longer a 4\-bit padding between field \f(CW\*(C`a\*(C'\fR
6345 and \f(CW\*(C`b\*(C'\fR in this structure:
6346 .Sp
6347 .Vb 5
6348 \&        struct foo
6349 \&        {
6350 \&          char a:4;
6351 \&          char b:8;
6352 \&        } _\|_attribute_\|_ ((packed));
6353 .Ve
6354 .Sp
6355 This warning is enabled by default.  Use
6356 \&\fB\-Wno\-packed\-bitfield\-compat\fR to disable this warning.
6357 .IP "\fB\-Wpacked\-not\-aligned\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
6358 .IX Item "-Wpacked-not-aligned (C, , Objective-C and Objective- only)"
6359 Warn if a structure field with explicitly specified alignment in a
6360 packed struct or union is misaligned.  For example, a warning will
6361 be issued on \f(CW\*(C`struct S\*(C'\fR, like, \f(CW\*(C`warning: alignment 1 of
6362 \&\*(Aqstruct S\*(Aq is less than 8\*(C'\fR, in this code:
6363 .Sp
6364 .Vb 4
6365 \&        struct _\|_attribute_\|_ ((aligned (8))) S8 { char a[8]; };
6366 \&        struct _\|_attribute_\|_ ((packed)) S {
6367 \&          struct S8 s8;
6368 \&        };
6369 .Ve
6370 .Sp
6371 This warning is enabled by \fB\-Wall\fR.
6372 .IP "\fB\-Wpadded\fR" 4
6373 .IX Item "-Wpadded"
6374 Warn if padding is included in a structure, either to align an element
6375 of the structure or to align the whole structure.  Sometimes when this
6376 happens it is possible to rearrange the fields of the structure to
6377 reduce the padding and so make the structure smaller.
6378 .IP "\fB\-Wredundant\-decls\fR" 4
6379 .IX Item "-Wredundant-decls"
6380 Warn if anything is declared more than once in the same scope, even in
6381 cases where multiple declaration is valid and changes nothing.
6382 .IP "\fB\-Wno\-restrict\fR" 4
6383 .IX Item "-Wno-restrict"
6384 Warn when an object referenced by a \f(CW\*(C`restrict\*(C'\fR\-qualified parameter
6385 (or, in \*(C+, a \f(CW\*(C`_\|_restrict\*(C'\fR\-qualified parameter) is aliased by another
6386 argument, or when copies between such objects overlap.  For example,
6387 the call to the \f(CW\*(C`strcpy\*(C'\fR function below attempts to truncate the string
6388 by replacing its initial characters with the last four.  However, because
6389 the call writes the terminating \s-1NUL\s0 into \f(CW\*(C`a[4]\*(C'\fR, the copies overlap and
6390 the call is diagnosed.
6391 .Sp
6392 .Vb 6
6393 \&        void foo (void)
6394 \&        {
6395 \&          char a[] = "abcd1234";
6396 \&          strcpy (a, a + 4);
6397 \&          ...
6398 \&        }
6399 .Ve
6400 .Sp
6401 The \fB\-Wrestrict\fR option detects some instances of simple overlap
6402 even without optimization but works best at \fB\-O2\fR and above.  It
6403 is included in \fB\-Wall\fR.
6404 .IP "\fB\-Wnested\-externs\fR (C and Objective-C only)" 4
6405 .IX Item "-Wnested-externs (C and Objective-C only)"
6406 Warn if an \f(CW\*(C`extern\*(C'\fR declaration is encountered within a function.
6407 .IP "\fB\-Wno\-inherited\-variadic\-ctor\fR" 4
6408 .IX Item "-Wno-inherited-variadic-ctor"
6409 Suppress warnings about use of \*(C+11 inheriting constructors when the
6410 base class inherited from has a C variadic constructor; the warning is
6411 on by default because the ellipsis is not inherited.
6412 .IP "\fB\-Winline\fR" 4
6413 .IX Item "-Winline"
6414 Warn if a function that is declared as inline cannot be inlined.
6415 Even with this option, the compiler does not warn about failures to
6416 inline functions declared in system headers.
6417 .Sp
6418 The compiler uses a variety of heuristics to determine whether or not
6419 to inline a function.  For example, the compiler takes into account
6420 the size of the function being inlined and the amount of inlining
6421 that has already been done in the current function.  Therefore,
6422 seemingly insignificant changes in the source program can cause the
6423 warnings produced by \fB\-Winline\fR to appear or disappear.
6424 .IP "\fB\-Wno\-invalid\-offsetof\fR (\*(C+ and Objective\-\*(C+ only)" 4
6425 .IX Item "-Wno-invalid-offsetof ( and Objective- only)"
6426 Suppress warnings from applying the \f(CW\*(C`offsetof\*(C'\fR macro to a non-POD
6427 type.  According to the 2014 \s-1ISO \*(C+\s0 standard, applying \f(CW\*(C`offsetof\*(C'\fR
6428 to a non-standard-layout type is undefined.  In existing \*(C+ implementations,
6429 however, \f(CW\*(C`offsetof\*(C'\fR typically gives meaningful results.
6430 This flag is for users who are aware that they are
6431 writing nonportable code and who have deliberately chosen to ignore the
6432 warning about it.
6433 .Sp
6434 The restrictions on \f(CW\*(C`offsetof\*(C'\fR may be relaxed in a future version
6435 of the \*(C+ standard.
6436 .IP "\fB\-Wint\-in\-bool\-context\fR" 4
6437 .IX Item "-Wint-in-bool-context"
6438 Warn for suspicious use of integer values where boolean values are expected,
6439 such as conditional expressions (?:) using non-boolean integer constants in
6440 boolean context, like \f(CW\*(C`if (a <= b ? 2 : 3)\*(C'\fR.  Or left shifting of signed
6441 integers in boolean context, like \f(CW\*(C`for (a = 0; 1 << a; a++);\*(C'\fR.  Likewise
6442 for all kinds of multiplications regardless of the data type.
6443 This warning is enabled by \fB\-Wall\fR.
6444 .IP "\fB\-Wno\-int\-to\-pointer\-cast\fR" 4
6445 .IX Item "-Wno-int-to-pointer-cast"
6446 Suppress warnings from casts to pointer type of an integer of a
6447 different size. In \*(C+, casting to a pointer type of smaller size is
6448 an error. \fBWint-to-pointer-cast\fR is enabled by default.
6449 .IP "\fB\-Wno\-pointer\-to\-int\-cast\fR (C and Objective-C only)" 4
6450 .IX Item "-Wno-pointer-to-int-cast (C and Objective-C only)"
6451 Suppress warnings from casts from a pointer to an integer type of a
6452 different size.
6453 .IP "\fB\-Winvalid\-pch\fR" 4
6454 .IX Item "-Winvalid-pch"
6455 Warn if a precompiled header is found in
6456 the search path but cannot be used.
6457 .IP "\fB\-Wlong\-long\fR" 4
6458 .IX Item "-Wlong-long"
6459 Warn if \f(CW\*(C`long long\*(C'\fR type is used.  This is enabled by either
6460 \&\fB\-Wpedantic\fR or \fB\-Wtraditional\fR in \s-1ISO C90\s0 and \*(C+98
6461 modes.  To inhibit the warning messages, use \fB\-Wno\-long\-long\fR.
6462 .IP "\fB\-Wvariadic\-macros\fR" 4
6463 .IX Item "-Wvariadic-macros"
6464 Warn if variadic macros are used in \s-1ISO C90\s0 mode, or if the \s-1GNU\s0
6465 alternate syntax is used in \s-1ISO C99\s0 mode.  This is enabled by either
6466 \&\fB\-Wpedantic\fR or \fB\-Wtraditional\fR.  To inhibit the warning
6467 messages, use \fB\-Wno\-variadic\-macros\fR.
6468 .IP "\fB\-Wvarargs\fR" 4
6469 .IX Item "-Wvarargs"
6470 Warn upon questionable usage of the macros used to handle variable
6471 arguments like \f(CW\*(C`va_start\*(C'\fR.  This is default.  To inhibit the
6472 warning messages, use \fB\-Wno\-varargs\fR.
6473 .IP "\fB\-Wvector\-operation\-performance\fR" 4
6474 .IX Item "-Wvector-operation-performance"
6475 Warn if vector operation is not implemented via \s-1SIMD\s0 capabilities of the
6476 architecture.  Mainly useful for the performance tuning.
6477 Vector operation can be implemented \f(CW\*(C`piecewise\*(C'\fR, which means that the
6478 scalar operation is performed on every vector element; 
6479 \&\f(CW\*(C`in parallel\*(C'\fR, which means that the vector operation is implemented
6480 using scalars of wider type, which normally is more performance efficient;
6481 and \f(CW\*(C`as a single scalar\*(C'\fR, which means that vector fits into a
6482 scalar type.
6483 .IP "\fB\-Wno\-virtual\-move\-assign\fR" 4
6484 .IX Item "-Wno-virtual-move-assign"
6485 Suppress warnings about inheriting from a virtual base with a
6486 non-trivial \*(C+11 move assignment operator.  This is dangerous because
6487 if the virtual base is reachable along more than one path, it is
6488 moved multiple times, which can mean both objects end up in the
6489 moved-from state.  If the move assignment operator is written to avoid
6490 moving from a moved-from object, this warning can be disabled.
6491 .IP "\fB\-Wvla\fR" 4
6492 .IX Item "-Wvla"
6493 Warn if a variable-length array is used in the code.
6494 \&\fB\-Wno\-vla\fR prevents the \fB\-Wpedantic\fR warning of
6495 the variable-length array.
6496 .IP "\fB\-Wvla\-larger\-than=\fR\fIn\fR" 4
6497 .IX Item "-Wvla-larger-than=n"
6498 If this option is used, the compiler will warn on uses of
6499 variable-length arrays where the size is either unbounded, or bounded
6500 by an argument that can be larger than \fIn\fR bytes.  This is similar
6501 to how \fB\-Walloca\-larger\-than=\fR\fIn\fR works, but with
6502 variable-length arrays.
6503 .Sp
6504 Note that \s-1GCC\s0 may optimize small variable-length arrays of a known
6505 value into plain arrays, so this warning may not get triggered for
6506 such arrays.
6507 .Sp
6508 This warning is not enabled by \fB\-Wall\fR, and is only active when
6509 \&\fB\-ftree\-vrp\fR is active (default for \fB\-O2\fR and above).
6510 .Sp
6511 See also \fB\-Walloca\-larger\-than=\fR\fIn\fR.
6512 .IP "\fB\-Wvolatile\-register\-var\fR" 4
6513 .IX Item "-Wvolatile-register-var"
6514 Warn if a register variable is declared volatile.  The volatile
6515 modifier does not inhibit all optimizations that may eliminate reads
6516 and/or writes to register variables.  This warning is enabled by
6517 \&\fB\-Wall\fR.
6518 .IP "\fB\-Wdisabled\-optimization\fR" 4
6519 .IX Item "-Wdisabled-optimization"
6520 Warn if a requested optimization pass is disabled.  This warning does
6521 not generally indicate that there is anything wrong with your code; it
6522 merely indicates that \s-1GCC\s0's optimizers are unable to handle the code
6523 effectively.  Often, the problem is that your code is too big or too
6524 complex; \s-1GCC\s0 refuses to optimize programs when the optimization
6525 itself is likely to take inordinate amounts of time.
6526 .IP "\fB\-Wpointer\-sign\fR (C and Objective-C only)" 4
6527 .IX Item "-Wpointer-sign (C and Objective-C only)"
6528 Warn for pointer argument passing or assignment with different signedness.
6529 This option is only supported for C and Objective-C.  It is implied by
6530 \&\fB\-Wall\fR and by \fB\-Wpedantic\fR, which can be disabled with
6531 \&\fB\-Wno\-pointer\-sign\fR.
6532 .IP "\fB\-Wstack\-protector\fR" 4
6533 .IX Item "-Wstack-protector"
6534 This option is only active when \fB\-fstack\-protector\fR is active.  It
6535 warns about functions that are not protected against stack smashing.
6536 .IP "\fB\-Woverlength\-strings\fR" 4
6537 .IX Item "-Woverlength-strings"
6538 Warn about string constants that are longer than the \*(L"minimum
6539 maximum\*(R" length specified in the C standard.  Modern compilers
6540 generally allow string constants that are much longer than the
6541 standard's minimum limit, but very portable programs should avoid
6542 using longer strings.
6543 .Sp
6544 The limit applies \fIafter\fR string constant concatenation, and does
6545 not count the trailing \s-1NUL.\s0  In C90, the limit was 509 characters; in
6546 C99, it was raised to 4095.  \*(C+98 does not specify a normative
6547 minimum maximum, so we do not diagnose overlength strings in \*(C+.
6548 .Sp
6549 This option is implied by \fB\-Wpedantic\fR, and can be disabled with
6550 \&\fB\-Wno\-overlength\-strings\fR.
6551 .IP "\fB\-Wunsuffixed\-float\-constants\fR (C and Objective-C only)" 4
6552 .IX Item "-Wunsuffixed-float-constants (C and Objective-C only)"
6553 Issue a warning for any floating constant that does not have
6554 a suffix.  When used together with \fB\-Wsystem\-headers\fR it
6555 warns about such constants in system header files.  This can be useful
6556 when preparing code to use with the \f(CW\*(C`FLOAT_CONST_DECIMAL64\*(C'\fR pragma
6557 from the decimal floating-point extension to C99.
6558 .IP "\fB\-Wno\-designated\-init\fR (C and Objective-C only)" 4
6559 .IX Item "-Wno-designated-init (C and Objective-C only)"
6560 Suppress warnings when a positional initializer is used to initialize
6561 a structure that has been marked with the \f(CW\*(C`designated_init\*(C'\fR
6562 attribute.
6563 .IP "\fB\-Whsa\fR" 4
6564 .IX Item "-Whsa"
6565 Issue a warning when \s-1HSAIL\s0 cannot be emitted for the compiled function or
6566 OpenMP construct.
6567 .SS "Options for Debugging Your Program"
6568 .IX Subsection "Options for Debugging Your Program"
6569 To tell \s-1GCC\s0 to emit extra information for use by a debugger, in almost 
6570 all cases you need only to add \fB\-g\fR to your other options.
6571 .PP
6572 \&\s-1GCC\s0 allows you to use \fB\-g\fR with
6573 \&\fB\-O\fR.  The shortcuts taken by optimized code may occasionally
6574 be surprising: some variables you declared may not exist
6575 at all; flow of control may briefly move where you did not expect it;
6576 some statements may not be executed because they compute constant
6577 results or their values are already at hand; some statements may
6578 execute in different places because they have been moved out of loops.
6579 Nevertheless it is possible to debug optimized output.  This makes
6580 it reasonable to use the optimizer for programs that might have bugs.
6581 .PP
6582 If you are not using some other optimization option, consider
6583 using \fB\-Og\fR with \fB\-g\fR.  
6584 With no \fB\-O\fR option at all, some compiler passes that collect
6585 information useful for debugging do not run at all, so that
6586 \&\fB\-Og\fR may result in a better debugging experience.
6587 .IP "\fB\-g\fR" 4
6588 .IX Item "-g"
6589 Produce debugging information in the operating system's native format
6590 (stabs, \s-1COFF, XCOFF,\s0 or \s-1DWARF\s0).  \s-1GDB\s0 can work with this debugging
6591 information.
6592 .Sp
6593 On most systems that use stabs format, \fB\-g\fR enables use of extra
6594 debugging information that only \s-1GDB\s0 can use; this extra information
6595 makes debugging work better in \s-1GDB\s0 but probably makes other debuggers
6596 crash or
6597 refuse to read the program.  If you want to control for certain whether
6598 to generate the extra information, use \fB\-gstabs+\fR, \fB\-gstabs\fR,
6599 \&\fB\-gxcoff+\fR, \fB\-gxcoff\fR, or \fB\-gvms\fR (see below).
6600 .IP "\fB\-ggdb\fR" 4
6601 .IX Item "-ggdb"
6602 Produce debugging information for use by \s-1GDB.\s0  This means to use the
6603 most expressive format available (\s-1DWARF,\s0 stabs, or the native format
6604 if neither of those are supported), including \s-1GDB\s0 extensions if at all
6605 possible.
6606 .IP "\fB\-gdwarf\fR" 4
6607 .IX Item "-gdwarf"
6608 .PD 0
6609 .IP "\fB\-gdwarf\-\fR\fIversion\fR" 4
6610 .IX Item "-gdwarf-version"
6611 .PD
6612 Produce debugging information in \s-1DWARF\s0 format (if that is supported).
6613 The value of \fIversion\fR may be either 2, 3, 4 or 5; the default version
6614 for most targets is 4.  \s-1DWARF\s0 Version 5 is only experimental.
6615 .Sp
6616 Note that with \s-1DWARF\s0 Version 2, some ports require and always
6617 use some non-conflicting \s-1DWARF 3\s0 extensions in the unwind tables.
6618 .Sp
6619 Version 4 may require \s-1GDB 7.0\s0 and \fB\-fvar\-tracking\-assignments\fR
6620 for maximum benefit.
6621 .Sp
6622 \&\s-1GCC\s0 no longer supports \s-1DWARF\s0 Version 1, which is substantially
6623 different than Version 2 and later.  For historical reasons, some
6624 other DWARF-related options such as
6625 \&\fB\-fno\-dwarf2\-cfi\-asm\fR) retain a reference to \s-1DWARF\s0 Version 2
6626 in their names, but apply to all currently-supported versions of \s-1DWARF.\s0
6627 .IP "\fB\-gstabs\fR" 4
6628 .IX Item "-gstabs"
6629 Produce debugging information in stabs format (if that is supported),
6630 without \s-1GDB\s0 extensions.  This is the format used by \s-1DBX\s0 on most \s-1BSD\s0
6631 systems.  On \s-1MIPS,\s0 Alpha and System V Release 4 systems this option
6632 produces stabs debugging output that is not understood by \s-1DBX.\s0
6633 On System V Release 4 systems this option requires the \s-1GNU\s0 assembler.
6634 .IP "\fB\-gstabs+\fR" 4
6635 .IX Item "-gstabs+"
6636 Produce debugging information in stabs format (if that is supported),
6637 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
6638 use of these extensions is likely to make other debuggers crash or
6639 refuse to read the program.
6640 .IP "\fB\-gxcoff\fR" 4
6641 .IX Item "-gxcoff"
6642 Produce debugging information in \s-1XCOFF\s0 format (if that is supported).
6643 This is the format used by the \s-1DBX\s0 debugger on \s-1IBM RS/6000\s0 systems.
6644 .IP "\fB\-gxcoff+\fR" 4
6645 .IX Item "-gxcoff+"
6646 Produce debugging information in \s-1XCOFF\s0 format (if that is supported),
6647 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
6648 use of these extensions is likely to make other debuggers crash or
6649 refuse to read the program, and may cause assemblers other than the \s-1GNU\s0
6650 assembler (\s-1GAS\s0) to fail with an error.
6651 .IP "\fB\-gvms\fR" 4
6652 .IX Item "-gvms"
6653 Produce debugging information in Alpha/VMS debug format (if that is
6654 supported).  This is the format used by \s-1DEBUG\s0 on Alpha/VMS systems.
6655 .IP "\fB\-g\fR\fIlevel\fR" 4
6656 .IX Item "-glevel"
6657 .PD 0
6658 .IP "\fB\-ggdb\fR\fIlevel\fR" 4
6659 .IX Item "-ggdblevel"
6660 .IP "\fB\-gstabs\fR\fIlevel\fR" 4
6661 .IX Item "-gstabslevel"
6662 .IP "\fB\-gxcoff\fR\fIlevel\fR" 4
6663 .IX Item "-gxcofflevel"
6664 .IP "\fB\-gvms\fR\fIlevel\fR" 4
6665 .IX Item "-gvmslevel"
6666 .PD
6667 Request debugging information and also use \fIlevel\fR to specify how
6668 much information.  The default level is 2.
6669 .Sp
6670 Level 0 produces no debug information at all.  Thus, \fB\-g0\fR negates
6671 \&\fB\-g\fR.
6672 .Sp
6673 Level 1 produces minimal information, enough for making backtraces in
6674 parts of the program that you don't plan to debug.  This includes
6675 descriptions of functions and external variables, and line number
6676 tables, but no information about local variables.
6677 .Sp
6678 Level 3 includes extra information, such as all the macro definitions
6679 present in the program.  Some debuggers support macro expansion when
6680 you use \fB\-g3\fR.
6681 .Sp
6682 \&\fB\-gdwarf\fR does not accept a concatenated debug level, to avoid
6683 confusion with \fB\-gdwarf\-\fR\fIlevel\fR.
6684 Instead use an additional \fB\-g\fR\fIlevel\fR option to change the
6685 debug level for \s-1DWARF.\s0
6686 .IP "\fB\-feliminate\-unused\-debug\-symbols\fR" 4
6687 .IX Item "-feliminate-unused-debug-symbols"
6688 Produce debugging information in stabs format (if that is supported),
6689 for only symbols that are actually used.
6690 .IP "\fB\-femit\-class\-debug\-always\fR" 4
6691 .IX Item "-femit-class-debug-always"
6692 Instead of emitting debugging information for a \*(C+ class in only one
6693 object file, emit it in all object files using the class.  This option
6694 should be used only with debuggers that are unable to handle the way \s-1GCC\s0
6695 normally emits debugging information for classes because using this
6696 option increases the size of debugging information by as much as a
6697 factor of two.
6698 .IP "\fB\-fno\-merge\-debug\-strings\fR" 4
6699 .IX Item "-fno-merge-debug-strings"
6700 Direct the linker to not merge together strings in the debugging
6701 information that are identical in different object files.  Merging is
6702 not supported by all assemblers or linkers.  Merging decreases the size
6703 of the debug information in the output file at the cost of increasing
6704 link processing time.  Merging is enabled by default.
6705 .IP "\fB\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR" 4
6706 .IX Item "-fdebug-prefix-map=old=new"
6707 When compiling files residing in directory \fI\fIold\fI\fR, record
6708 debugging information describing them as if the files resided in
6709 directory \fI\fInew\fI\fR instead.  This can be used to replace a
6710 build-time path with an install-time path in the debug info.  It can
6711 also be used to change an absolute path to a relative path by using
6712 \&\fI.\fR for \fInew\fR.  This can give more reproducible builds, which
6713 are location independent, but may require an extra command to tell \s-1GDB\s0
6714 where to find the source files. See also \fB\-ffile\-prefix\-map\fR.
6715 .IP "\fB\-fvar\-tracking\fR" 4
6716 .IX Item "-fvar-tracking"
6717 Run variable tracking pass.  It computes where variables are stored at each
6718 position in code.  Better debugging information is then generated
6719 (if the debugging information format supports this information).
6720 .Sp
6721 It is enabled by default when compiling with optimization (\fB\-Os\fR,
6722 \&\fB\-O\fR, \fB\-O2\fR, ...), debugging information (\fB\-g\fR) and
6723 the debug info format supports it.
6724 .IP "\fB\-fvar\-tracking\-assignments\fR" 4
6725 .IX Item "-fvar-tracking-assignments"
6726 Annotate assignments to user variables early in the compilation and
6727 attempt to carry the annotations over throughout the compilation all the
6728 way to the end, in an attempt to improve debug information while
6729 optimizing.  Use of \fB\-gdwarf\-4\fR is recommended along with it.
6730 .Sp
6731 It can be enabled even if var-tracking is disabled, in which case
6732 annotations are created and maintained, but discarded at the end.
6733 By default, this flag is enabled together with \fB\-fvar\-tracking\fR,
6734 except when selective scheduling is enabled.
6735 .IP "\fB\-gsplit\-dwarf\fR" 4
6736 .IX Item "-gsplit-dwarf"
6737 Separate as much \s-1DWARF\s0 debugging information as possible into a
6738 separate output file with the extension \fI.dwo\fR.  This option allows
6739 the build system to avoid linking files with debug information.  To
6740 be useful, this option requires a debugger capable of reading \fI.dwo\fR
6741 files.
6742 .IP "\fB\-gpubnames\fR" 4
6743 .IX Item "-gpubnames"
6744 Generate \s-1DWARF\s0 \f(CW\*(C`.debug_pubnames\*(C'\fR and \f(CW\*(C`.debug_pubtypes\*(C'\fR sections.
6745 .IP "\fB\-ggnu\-pubnames\fR" 4
6746 .IX Item "-ggnu-pubnames"
6747 Generate \f(CW\*(C`.debug_pubnames\*(C'\fR and \f(CW\*(C`.debug_pubtypes\*(C'\fR sections in a format
6748 suitable for conversion into a \s-1GDB\s0 index.  This option is only useful
6749 with a linker that can produce \s-1GDB\s0 index version 7.
6750 .IP "\fB\-fdebug\-types\-section\fR" 4
6751 .IX Item "-fdebug-types-section"
6752 When using \s-1DWARF\s0 Version 4 or higher, type DIEs can be put into
6753 their own \f(CW\*(C`.debug_types\*(C'\fR section instead of making them part of the
6754 \&\f(CW\*(C`.debug_info\*(C'\fR section.  It is more efficient to put them in a separate
6755 comdat sections since the linker can then remove duplicates.
6756 But not all \s-1DWARF\s0 consumers support \f(CW\*(C`.debug_types\*(C'\fR sections yet
6757 and on some objects \f(CW\*(C`.debug_types\*(C'\fR produces larger instead of smaller
6758 debugging information.
6759 .IP "\fB\-grecord\-gcc\-switches\fR" 4
6760 .IX Item "-grecord-gcc-switches"
6761 .PD 0
6762 .IP "\fB\-gno\-record\-gcc\-switches\fR" 4
6763 .IX Item "-gno-record-gcc-switches"
6764 .PD
6765 This switch causes the command-line options used to invoke the
6766 compiler that may affect code generation to be appended to the
6767 DW_AT_producer attribute in \s-1DWARF\s0 debugging information.  The options
6768 are concatenated with spaces separating them from each other and from
6769 the compiler version.  
6770 It is enabled by default.
6771 See also \fB\-frecord\-gcc\-switches\fR for another
6772 way of storing compiler options into the object file.
6773 .IP "\fB\-gstrict\-dwarf\fR" 4
6774 .IX Item "-gstrict-dwarf"
6775 Disallow using extensions of later \s-1DWARF\s0 standard version than selected
6776 with \fB\-gdwarf\-\fR\fIversion\fR.  On most targets using non-conflicting
6777 \&\s-1DWARF\s0 extensions from later standard versions is allowed.
6778 .IP "\fB\-gno\-strict\-dwarf\fR" 4
6779 .IX Item "-gno-strict-dwarf"
6780 Allow using extensions of later \s-1DWARF\s0 standard version than selected with
6781 \&\fB\-gdwarf\-\fR\fIversion\fR.
6782 .IP "\fB\-gas\-loc\-support\fR" 4
6783 .IX Item "-gas-loc-support"
6784 Inform the compiler that the assembler supports \f(CW\*(C`.loc\*(C'\fR directives.
6785 It may then use them for the assembler to generate \s-1DWARF2+\s0 line number
6786 tables.
6787 .Sp
6788 This is generally desirable, because assembler-generated line-number
6789 tables are a lot more compact than those the compiler can generate
6790 itself.
6791 .Sp
6792 This option will be enabled by default if, at \s-1GCC\s0 configure time, the
6793 assembler was found to support such directives.
6794 .IP "\fB\-gno\-as\-loc\-support\fR" 4
6795 .IX Item "-gno-as-loc-support"
6796 Force \s-1GCC\s0 to generate \s-1DWARF2+\s0 line number tables internally, if \s-1DWARF2+\s0
6797 line number tables are to be generated.
6798 .IP "\fBgas-locview-support\fR" 4
6799 .IX Item "gas-locview-support"
6800 Inform the compiler that the assembler supports \f(CW\*(C`view\*(C'\fR assignment
6801 and reset assertion checking in \f(CW\*(C`.loc\*(C'\fR directives.
6802 .Sp
6803 This option will be enabled by default if, at \s-1GCC\s0 configure time, the
6804 assembler was found to support them.
6805 .IP "\fBgno-as-locview-support\fR" 4
6806 .IX Item "gno-as-locview-support"
6807 Force \s-1GCC\s0 to assign view numbers internally, if
6808 \&\fB\-gvariable\-location\-views\fR are explicitly requested.
6809 .IP "\fB\-gcolumn\-info\fR" 4
6810 .IX Item "-gcolumn-info"
6811 .PD 0
6812 .IP "\fB\-gno\-column\-info\fR" 4
6813 .IX Item "-gno-column-info"
6814 .PD
6815 Emit location column information into \s-1DWARF\s0 debugging information, rather
6816 than just file and line.
6817 This option is enabled by default.
6818 .IP "\fB\-gstatement\-frontiers\fR" 4
6819 .IX Item "-gstatement-frontiers"
6820 .PD 0
6821 .IP "\fB\-gno\-statement\-frontiers\fR" 4
6822 .IX Item "-gno-statement-frontiers"
6823 .PD
6824 This option causes \s-1GCC\s0 to create markers in the internal representation
6825 at the beginning of statements, and to keep them roughly in place
6826 throughout compilation, using them to guide the output of \f(CW\*(C`is_stmt\*(C'\fR
6827 markers in the line number table.  This is enabled by default when
6828 compiling with optimization (\fB\-Os\fR, \fB\-O\fR, \fB\-O2\fR,
6829 \&...), and outputting \s-1DWARF 2\s0 debug information at the normal level.
6830 .IP "\fB\-gvariable\-location\-views\fR" 4
6831 .IX Item "-gvariable-location-views"
6832 .PD 0
6833 .IP "\fB\-gvariable\-location\-views=incompat5\fR" 4
6834 .IX Item "-gvariable-location-views=incompat5"
6835 .IP "\fB\-gno\-variable\-location\-views\fR" 4
6836 .IX Item "-gno-variable-location-views"
6837 .PD
6838 Augment variable location lists with progressive view numbers implied
6839 from the line number table.  This enables debug information consumers to
6840 inspect state at certain points of the program, even if no instructions
6841 associated with the corresponding source locations are present at that
6842 point.  If the assembler lacks support for view numbers in line number
6843 tables, this will cause the compiler to emit the line number table,
6844 which generally makes them somewhat less compact.  The augmented line
6845 number tables and location lists are fully backward-compatible, so they
6846 can be consumed by debug information consumers that are not aware of
6847 these augmentations, but they won't derive any benefit from them either.
6848 .Sp
6849 This is enabled by default when outputting \s-1DWARF 2\s0 debug information at
6850 the normal level, as long as there is assembler support,
6851 \&\fB\-fvar\-tracking\-assignments\fR is enabled and
6852 \&\fB\-gstrict\-dwarf\fR is not.  When assembler support is not
6853 available, this may still be enabled, but it will force \s-1GCC\s0 to output
6854 internal line number tables, and if
6855 \&\fB\-ginternal\-reset\-location\-views\fR is not enabled, that will most
6856 certainly lead to silently mismatching location views.
6857 .Sp
6858 There is a proposed representation for view numbers that is not backward
6859 compatible with the location list format introduced in \s-1DWARF 5,\s0 that can
6860 be enabled with \fB\-gvariable\-location\-views=incompat5\fR.  This
6861 option may be removed in the future, is only provided as a reference
6862 implementation of the proposed representation.  Debug information
6863 consumers are not expected to support this extended format, and they
6864 would be rendered unable to decode location lists using it.
6865 .IP "\fB\-ginternal\-reset\-location\-views\fR" 4
6866 .IX Item "-ginternal-reset-location-views"
6867 .PD 0
6868 .IP "\fB\-gnointernal\-reset\-location\-views\fR" 4
6869 .IX Item "-gnointernal-reset-location-views"
6870 .PD
6871 Attempt to determine location views that can be omitted from location
6872 view lists.  This requires the compiler to have very accurate insn
6873 length estimates, which isn't always the case, and it may cause
6874 incorrect view lists to be generated silently when using an assembler
6875 that does not support location view lists.  The \s-1GNU\s0 assembler will flag
6876 any such error as a \f(CW\*(C`view number mismatch\*(C'\fR.  This is only enabled
6877 on ports that define a reliable estimation function.
6878 .IP "\fB\-ginline\-points\fR" 4
6879 .IX Item "-ginline-points"
6880 .PD 0
6881 .IP "\fB\-gno\-inline\-points\fR" 4
6882 .IX Item "-gno-inline-points"
6883 .PD
6884 Generate extended debug information for inlined functions.  Location
6885 view tracking markers are inserted at inlined entry points, so that
6886 address and view numbers can be computed and output in debug
6887 information.  This can be enabled independently of location views, in
6888 which case the view numbers won't be output, but it can only be enabled
6889 along with statement frontiers, and it is only enabled by default if
6890 location views are enabled.
6891 .IP "\fB\-gz\fR[\fB=\fR\fItype\fR]" 4
6892 .IX Item "-gz[=type]"
6893 Produce compressed debug sections in \s-1DWARF\s0 format, if that is supported.
6894 If \fItype\fR is not given, the default type depends on the capabilities
6895 of the assembler and linker used.  \fItype\fR may be one of
6896 \&\fBnone\fR (don't compress debug sections), \fBzlib\fR (use zlib
6897 compression in \s-1ELF\s0 gABI format), or \fBzlib-gnu\fR (use zlib
6898 compression in traditional \s-1GNU\s0 format).  If the linker doesn't support
6899 writing compressed debug sections, the option is rejected.  Otherwise,
6900 if the assembler does not support them, \fB\-gz\fR is silently ignored
6901 when producing object files.
6902 .IP "\fB\-femit\-struct\-debug\-baseonly\fR" 4
6903 .IX Item "-femit-struct-debug-baseonly"
6904 Emit debug information for struct-like types
6905 only when the base name of the compilation source file
6906 matches the base name of file in which the struct is defined.
6907 .Sp
6908 This option substantially reduces the size of debugging information,
6909 but at significant potential loss in type information to the debugger.
6910 See \fB\-femit\-struct\-debug\-reduced\fR for a less aggressive option.
6911 See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
6912 .Sp
6913 This option works only with \s-1DWARF\s0 debug output.
6914 .IP "\fB\-femit\-struct\-debug\-reduced\fR" 4
6915 .IX Item "-femit-struct-debug-reduced"
6916 Emit debug information for struct-like types
6917 only when the base name of the compilation source file
6918 matches the base name of file in which the type is defined,
6919 unless the struct is a template or defined in a system header.
6920 .Sp
6921 This option significantly reduces the size of debugging information,
6922 with some potential loss in type information to the debugger.
6923 See \fB\-femit\-struct\-debug\-baseonly\fR for a more aggressive option.
6924 See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
6925 .Sp
6926 This option works only with \s-1DWARF\s0 debug output.
6927 .IP "\fB\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR]" 4
6928 .IX Item "-femit-struct-debug-detailed[=spec-list]"
6929 Specify the struct-like types
6930 for which the compiler generates debug information.
6931 The intent is to reduce duplicate struct debug information
6932 between different object files within the same program.
6933 .Sp
6934 This option is a detailed version of
6935 \&\fB\-femit\-struct\-debug\-reduced\fR and \fB\-femit\-struct\-debug\-baseonly\fR,
6936 which serves for most needs.
6937 .Sp
6938 A specification has the syntax[\fBdir:\fR|\fBind:\fR][\fBord:\fR|\fBgen:\fR](\fBany\fR|\fBsys\fR|\fBbase\fR|\fBnone\fR)
6939 .Sp
6940 The optional first word limits the specification to
6941 structs that are used directly (\fBdir:\fR) or used indirectly (\fBind:\fR).
6942 A struct type is used directly when it is the type of a variable, member.
6943 Indirect uses arise through pointers to structs.
6944 That is, when use of an incomplete struct is valid, the use is indirect.
6945 An example is
6946 \&\fBstruct one direct; struct two * indirect;\fR.
6947 .Sp
6948 The optional second word limits the specification to
6949 ordinary structs (\fBord:\fR) or generic structs (\fBgen:\fR).
6950 Generic structs are a bit complicated to explain.
6951 For \*(C+, these are non-explicit specializations of template classes,
6952 or non-template classes within the above.
6953 Other programming languages have generics,
6954 but \fB\-femit\-struct\-debug\-detailed\fR does not yet implement them.
6955 .Sp
6956 The third word specifies the source files for those
6957 structs for which the compiler should emit debug information.
6958 The values \fBnone\fR and \fBany\fR have the normal meaning.
6959 The value \fBbase\fR means that
6960 the base of name of the file in which the type declaration appears
6961 must match the base of the name of the main compilation file.
6962 In practice, this means that when compiling \fIfoo.c\fR, debug information
6963 is generated for types declared in that file and \fIfoo.h\fR,
6964 but not other header files.
6965 The value \fBsys\fR means those types satisfying \fBbase\fR
6966 or declared in system or compiler headers.
6967 .Sp
6968 You may need to experiment to determine the best settings for your application.
6969 .Sp
6970 The default is \fB\-femit\-struct\-debug\-detailed=all\fR.
6971 .Sp
6972 This option works only with \s-1DWARF\s0 debug output.
6973 .IP "\fB\-fno\-dwarf2\-cfi\-asm\fR" 4
6974 .IX Item "-fno-dwarf2-cfi-asm"
6975 Emit \s-1DWARF\s0 unwind info as compiler generated \f(CW\*(C`.eh_frame\*(C'\fR section
6976 instead of using \s-1GAS\s0 \f(CW\*(C`.cfi_*\*(C'\fR directives.
6977 .IP "\fB\-fno\-eliminate\-unused\-debug\-types\fR" 4
6978 .IX Item "-fno-eliminate-unused-debug-types"
6979 Normally, when producing \s-1DWARF\s0 output, \s-1GCC\s0 avoids producing debug symbol 
6980 output for types that are nowhere used in the source file being compiled.
6981 Sometimes it is useful to have \s-1GCC\s0 emit debugging
6982 information for all types declared in a compilation
6983 unit, regardless of whether or not they are actually used
6984 in that compilation unit, for example 
6985 if, in the debugger, you want to cast a value to a type that is
6986 not actually used in your program (but is declared).  More often,
6987 however, this results in a significant amount of wasted space.
6988 .SS "Options That Control Optimization"
6989 .IX Subsection "Options That Control Optimization"
6990 These options control various sorts of optimizations.
6991 .PP
6992 Without any optimization option, the compiler's goal is to reduce the
6993 cost of compilation and to make debugging produce the expected
6994 results.  Statements are independent: if you stop the program with a
6995 breakpoint between statements, you can then assign a new value to any
6996 variable or change the program counter to any other statement in the
6997 function and get exactly the results you expect from the source
6998 code.
6999 .PP
7000 Turning on optimization flags makes the compiler attempt to improve
7001 the performance and/or code size at the expense of compilation time
7002 and possibly the ability to debug the program.
7003 .PP
7004 The compiler performs optimization based on the knowledge it has of the
7005 program.  Compiling multiple files at once to a single output file mode allows
7006 the compiler to use information gained from all of the files when compiling
7007 each of them.
7008 .PP
7009 Not all optimizations are controlled directly by a flag.  Only
7010 optimizations that have a flag are listed in this section.
7011 .PP
7012 Most optimizations are only enabled if an \fB\-O\fR level is set on
7013 the command line.  Otherwise they are disabled, even if individual
7014 optimization flags are specified.
7015 .PP
7016 Depending on the target and how \s-1GCC\s0 was configured, a slightly different
7017 set of optimizations may be enabled at each \fB\-O\fR level than
7018 those listed here.  You can invoke \s-1GCC\s0 with \fB\-Q \-\-help=optimizers\fR
7019 to find out the exact set of optimizations that are enabled at each level.
7020 .IP "\fB\-O\fR" 4
7021 .IX Item "-O"
7022 .PD 0
7023 .IP "\fB\-O1\fR" 4
7024 .IX Item "-O1"
7025 .PD
7026 Optimize.  Optimizing compilation takes somewhat more time, and a lot
7027 more memory for a large function.
7028 .Sp
7029 With \fB\-O\fR, the compiler tries to reduce code size and execution
7030 time, without performing any optimizations that take a great deal of
7031 compilation time.
7032 .Sp
7033 \&\fB\-O\fR turns on the following optimization flags:
7034 .Sp
7035 \&\fB\-fauto\-inc\-dec 
7036 \&\-fbranch\-count\-reg 
7037 \&\-fcombine\-stack\-adjustments 
7038 \&\-fcompare\-elim 
7039 \&\-fcprop\-registers 
7040 \&\-fdce 
7041 \&\-fdefer\-pop 
7042 \&\-fdelayed\-branch 
7043 \&\-fdse 
7044 \&\-fforward\-propagate 
7045 \&\-fguess\-branch\-probability 
7046 \&\-fif\-conversion2 
7047 \&\-fif\-conversion 
7048 \&\-finline\-functions\-called\-once 
7049 \&\-fipa\-pure\-const 
7050 \&\-fipa\-profile 
7051 \&\-fipa\-reference 
7052 \&\-fmerge\-constants 
7053 \&\-fmove\-loop\-invariants 
7054 \&\-fomit\-frame\-pointer 
7055 \&\-freorder\-blocks 
7056 \&\-fshrink\-wrap 
7057 \&\-fshrink\-wrap\-separate 
7058 \&\-fsplit\-wide\-types 
7059 \&\-fssa\-backprop 
7060 \&\-fssa\-phiopt 
7061 \&\-ftree\-bit\-ccp 
7062 \&\-ftree\-ccp 
7063 \&\-ftree\-ch 
7064 \&\-ftree\-coalesce\-vars 
7065 \&\-ftree\-copy\-prop 
7066 \&\-ftree\-dce 
7067 \&\-ftree\-dominator\-opts 
7068 \&\-ftree\-dse 
7069 \&\-ftree\-forwprop 
7070 \&\-ftree\-fre 
7071 \&\-ftree\-phiprop 
7072 \&\-ftree\-sink 
7073 \&\-ftree\-slsr 
7074 \&\-ftree\-sra 
7075 \&\-ftree\-pta 
7076 \&\-ftree\-ter 
7077 \&\-funit\-at\-a\-time\fR
7078 .IP "\fB\-O2\fR" 4
7079 .IX Item "-O2"
7080 Optimize even more.  \s-1GCC\s0 performs nearly all supported optimizations
7081 that do not involve a space-speed tradeoff.
7082 As compared to \fB\-O\fR, this option increases both compilation time
7083 and the performance of the generated code.
7084 .Sp
7085 \&\fB\-O2\fR turns on all optimization flags specified by \fB\-O\fR.  It
7086 also turns on the following optimization flags:
7087 \&\fB\-fthread\-jumps 
7088 \&\-falign\-functions  \-falign\-jumps 
7089 \&\-falign\-loops  \-falign\-labels 
7090 \&\-fcaller\-saves 
7091 \&\-fcrossjumping 
7092 \&\-fcse\-follow\-jumps  \-fcse\-skip\-blocks 
7093 \&\-fdelete\-null\-pointer\-checks 
7094 \&\-fdevirtualize \-fdevirtualize\-speculatively 
7095 \&\-fexpensive\-optimizations 
7096 \&\-fgcse  \-fgcse\-lm  
7097 \&\-fhoist\-adjacent\-loads 
7098 \&\-finline\-small\-functions 
7099 \&\-findirect\-inlining 
7100 \&\-fipa\-cp 
7101 \&\-fipa\-bit\-cp 
7102 \&\-fipa\-vrp 
7103 \&\-fipa\-sra 
7104 \&\-fipa\-icf 
7105 \&\-fisolate\-erroneous\-paths\-dereference 
7106 \&\-flra\-remat 
7107 \&\-foptimize\-sibling\-calls 
7108 \&\-foptimize\-strlen 
7109 \&\-fpartial\-inlining 
7110 \&\-fpeephole2 
7111 \&\-freorder\-blocks\-algorithm=stc 
7112 \&\-freorder\-blocks\-and\-partition \-freorder\-functions 
7113 \&\-frerun\-cse\-after\-loop  
7114 \&\-fsched\-interblock  \-fsched\-spec 
7115 \&\-fschedule\-insns  \-fschedule\-insns2 
7116 \&\-fstore\-merging 
7117 \&\-fstrict\-aliasing 
7118 \&\-ftree\-builtin\-call\-dce 
7119 \&\-ftree\-switch\-conversion \-ftree\-tail\-merge 
7120 \&\-fcode\-hoisting 
7121 \&\-ftree\-pre 
7122 \&\-ftree\-vrp 
7123 \&\-fipa\-ra\fR
7124 .Sp
7125 Please note the warning under \fB\-fgcse\fR about
7126 invoking \fB\-O2\fR on programs that use computed gotos.
7127 .IP "\fB\-O3\fR" 4
7128 .IX Item "-O3"
7129 Optimize yet more.  \fB\-O3\fR turns on all optimizations specified
7130 by \fB\-O2\fR and also turns on the following optimization flags:
7131 \&\fB\-finline\-functions 
7132 \&\-funswitch\-loops 
7133 \&\-fpredictive\-commoning 
7134 \&\-fgcse\-after\-reload 
7135 \&\-ftree\-loop\-vectorize 
7136 \&\-ftree\-loop\-distribution 
7137 \&\-ftree\-loop\-distribute\-patterns 
7138 \&\-floop\-interchange 
7139 \&\-floop\-unroll\-and\-jam 
7140 \&\-fsplit\-paths 
7141 \&\-ftree\-slp\-vectorize 
7142 \&\-fvect\-cost\-model 
7143 \&\-ftree\-partial\-pre 
7144 \&\-fpeel\-loops 
7145 \&\-fipa\-cp\-clone\fR
7146 .IP "\fB\-O0\fR" 4
7147 .IX Item "-O0"
7148 Reduce compilation time and make debugging produce the expected
7149 results.  This is the default.
7150 .IP "\fB\-Os\fR" 4
7151 .IX Item "-Os"
7152 Optimize for size.  \fB\-Os\fR enables all \fB\-O2\fR optimizations that
7153 do not typically increase code size.
7154 .Sp
7155 \&\fB\-Os\fR disables the following optimization flags:
7156 \&\fB\-falign\-functions  \-falign\-jumps  \-falign\-loops 
7157 \&\-falign\-labels  \-freorder\-blocks  \-freorder\-blocks\-algorithm=stc 
7158 \&\-freorder\-blocks\-and\-partition  \-fprefetch\-loop\-arrays\fR
7159 .Sp
7160 It also enables \fB\-finline\-functions\fR, causes the compiler to tune for
7161 code size rather than execution speed, and performs further optimizations
7162 designed to reduce code size.
7163 .IP "\fB\-Ofast\fR" 4
7164 .IX Item "-Ofast"
7165 Disregard strict standards compliance.  \fB\-Ofast\fR enables all
7166 \&\fB\-O3\fR optimizations.  It also enables optimizations that are not
7167 valid for all standard-compliant programs.
7168 It turns on \fB\-ffast\-math\fR and the Fortran-specific
7169 \&\fB\-fstack\-arrays\fR, unless \fB\-fmax\-stack\-var\-size\fR is
7170 specified, and \fB\-fno\-protect\-parens\fR.
7171 .IP "\fB\-Og\fR" 4
7172 .IX Item "-Og"
7173 Optimize debugging experience.  \fB\-Og\fR enables optimizations
7174 that do not interfere with debugging. It should be the optimization
7175 level of choice for the standard edit-compile-debug cycle, offering
7176 a reasonable level of optimization while maintaining fast compilation
7177 and a good debugging experience.
7178 .PP
7179 If you use multiple \fB\-O\fR options, with or without level numbers,
7180 the last such option is the one that is effective.
7181 .PP
7182 Options of the form \fB\-f\fR\fIflag\fR specify machine-independent
7183 flags.  Most flags have both positive and negative forms; the negative
7184 form of \fB\-ffoo\fR is \fB\-fno\-foo\fR.  In the table
7185 below, only one of the forms is listed\-\-\-the one you typically 
7186 use.  You can figure out the other form by either removing \fBno\-\fR
7187 or adding it.
7188 .PP
7189 The following options control specific optimizations.  They are either
7190 activated by \fB\-O\fR options or are related to ones that are.  You
7191 can use the following flags in the rare cases when \*(L"fine-tuning\*(R" of
7192 optimizations to be performed is desired.
7193 .IP "\fB\-fno\-defer\-pop\fR" 4
7194 .IX Item "-fno-defer-pop"
7195 Always pop the arguments to each function call as soon as that function
7196 returns.  For machines that must pop arguments after a function call,
7197 the compiler normally lets arguments accumulate on the stack for several
7198 function calls and pops them all at once.
7199 .Sp
7200 Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7201 .IP "\fB\-fforward\-propagate\fR" 4
7202 .IX Item "-fforward-propagate"
7203 Perform a forward propagation pass on \s-1RTL.\s0  The pass tries to combine two
7204 instructions and checks if the result can be simplified.  If loop unrolling
7205 is active, two passes are performed and the second is scheduled after
7206 loop unrolling.
7207 .Sp
7208 This option is enabled by default at optimization levels \fB\-O\fR,
7209 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7210 .IP "\fB\-ffp\-contract=\fR\fIstyle\fR" 4
7211 .IX Item "-ffp-contract=style"
7212 \&\fB\-ffp\-contract=off\fR disables floating-point expression contraction.
7213 \&\fB\-ffp\-contract=fast\fR enables floating-point expression contraction
7214 such as forming of fused multiply-add operations if the target has
7215 native support for them.
7216 \&\fB\-ffp\-contract=on\fR enables floating-point expression contraction
7217 if allowed by the language standard.  This is currently not implemented
7218 and treated equal to \fB\-ffp\-contract=off\fR.
7219 .Sp
7220 The default is \fB\-ffp\-contract=fast\fR.
7221 .IP "\fB\-fomit\-frame\-pointer\fR" 4
7222 .IX Item "-fomit-frame-pointer"
7223 Omit the frame pointer in functions that don't need one.  This avoids the
7224 instructions to save, set up and restore the frame pointer; on many targets
7225 it also makes an extra register available.
7226 .Sp
7227 On some targets this flag has no effect because the standard calling sequence
7228 always uses a frame pointer, so it cannot be omitted.
7229 .Sp
7230 Note that \fB\-fno\-omit\-frame\-pointer\fR doesn't guarantee the frame pointer
7231 is used in all functions.  Several targets always omit the frame pointer in
7232 leaf functions.
7233 .Sp
7234 Enabled by default at \fB\-O\fR and higher.
7235 .IP "\fB\-foptimize\-sibling\-calls\fR" 4
7236 .IX Item "-foptimize-sibling-calls"
7237 Optimize sibling and tail recursive calls.
7238 .Sp
7239 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7240 .IP "\fB\-foptimize\-strlen\fR" 4
7241 .IX Item "-foptimize-strlen"
7242 Optimize various standard C string functions (e.g. \f(CW\*(C`strlen\*(C'\fR,
7243 \&\f(CW\*(C`strchr\*(C'\fR or \f(CW\*(C`strcpy\*(C'\fR) and
7244 their \f(CW\*(C`_FORTIFY_SOURCE\*(C'\fR counterparts into faster alternatives.
7245 .Sp
7246 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
7247 .IP "\fB\-fno\-inline\fR" 4
7248 .IX Item "-fno-inline"
7249 Do not expand any functions inline apart from those marked with
7250 the \f(CW\*(C`always_inline\*(C'\fR attribute.  This is the default when not
7251 optimizing.
7252 .Sp
7253 Single functions can be exempted from inlining by marking them
7254 with the \f(CW\*(C`noinline\*(C'\fR attribute.
7255 .IP "\fB\-finline\-small\-functions\fR" 4
7256 .IX Item "-finline-small-functions"
7257 Integrate functions into their callers when their body is smaller than expected
7258 function call code (so overall size of program gets smaller).  The compiler
7259 heuristically decides which functions are simple enough to be worth integrating
7260 in this way.  This inlining applies to all functions, even those not declared
7261 inline.
7262 .Sp
7263 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7264 .IP "\fB\-findirect\-inlining\fR" 4
7265 .IX Item "-findirect-inlining"
7266 Inline also indirect calls that are discovered to be known at compile
7267 time thanks to previous inlining.  This option has any effect only
7268 when inlining itself is turned on by the \fB\-finline\-functions\fR
7269 or \fB\-finline\-small\-functions\fR options.
7270 .Sp
7271 Enabled at levels \fB\-O3\fR, \fB\-Os\fR.  Also enabled
7272 by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
7273 .IP "\fB\-finline\-functions\fR" 4
7274 .IX Item "-finline-functions"
7275 Consider all functions for inlining, even if they are not declared inline.
7276 The compiler heuristically decides which functions are worth integrating
7277 in this way.
7278 .Sp
7279 If all calls to a given function are integrated, and the function is
7280 declared \f(CW\*(C`static\*(C'\fR, then the function is normally not output as
7281 assembler code in its own right.
7282 .Sp
7283 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7284 .IP "\fB\-finline\-functions\-called\-once\fR" 4
7285 .IX Item "-finline-functions-called-once"
7286 Consider all \f(CW\*(C`static\*(C'\fR functions called once for inlining into their
7287 caller even if they are not marked \f(CW\*(C`inline\*(C'\fR.  If a call to a given
7288 function is integrated, then the function is not output as assembler code
7289 in its own right.
7290 .Sp
7291 Enabled at levels \fB\-O1\fR, \fB\-O2\fR, \fB\-O3\fR and \fB\-Os\fR.
7292 .IP "\fB\-fearly\-inlining\fR" 4
7293 .IX Item "-fearly-inlining"
7294 Inline functions marked by \f(CW\*(C`always_inline\*(C'\fR and functions whose body seems
7295 smaller than the function call overhead early before doing
7296 \&\fB\-fprofile\-generate\fR instrumentation and real inlining pass.  Doing so
7297 makes profiling significantly cheaper and usually inlining faster on programs
7298 having large chains of nested wrapper functions.
7299 .Sp
7300 Enabled by default.
7301 .IP "\fB\-fipa\-sra\fR" 4
7302 .IX Item "-fipa-sra"
7303 Perform interprocedural scalar replacement of aggregates, removal of
7304 unused parameters and replacement of parameters passed by reference
7305 by parameters passed by value.
7306 .Sp
7307 Enabled at levels \fB\-O2\fR, \fB\-O3\fR and \fB\-Os\fR.
7308 .IP "\fB\-finline\-limit=\fR\fIn\fR" 4
7309 .IX Item "-finline-limit=n"
7310 By default, \s-1GCC\s0 limits the size of functions that can be inlined.  This flag
7311 allows coarse control of this limit.  \fIn\fR is the size of functions that
7312 can be inlined in number of pseudo instructions.
7313 .Sp
7314 Inlining is actually controlled by a number of parameters, which may be
7315 specified individually by using \fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR.
7316 The \fB\-finline\-limit=\fR\fIn\fR option sets some of these parameters
7317 as follows:
7318 .RS 4
7319 .IP "\fBmax-inline-insns-single\fR" 4
7320 .IX Item "max-inline-insns-single"
7321 is set to \fIn\fR/2.
7322 .IP "\fBmax-inline-insns-auto\fR" 4
7323 .IX Item "max-inline-insns-auto"
7324 is set to \fIn\fR/2.
7325 .RE
7326 .RS 4
7327 .Sp
7328 See below for a documentation of the individual
7329 parameters controlling inlining and for the defaults of these parameters.
7330 .Sp
7331 \&\fINote:\fR there may be no value to \fB\-finline\-limit\fR that results
7332 in default behavior.
7333 .Sp
7334 \&\fINote:\fR pseudo instruction represents, in this particular context, an
7335 abstract measurement of function's size.  In no way does it represent a count
7336 of assembly instructions and as such its exact meaning might change from one
7337 release to an another.
7338 .RE
7339 .IP "\fB\-fno\-keep\-inline\-dllexport\fR" 4
7340 .IX Item "-fno-keep-inline-dllexport"
7341 This is a more fine-grained version of \fB\-fkeep\-inline\-functions\fR,
7342 which applies only to functions that are declared using the \f(CW\*(C`dllexport\*(C'\fR
7343 attribute or declspec.
7344 .IP "\fB\-fkeep\-inline\-functions\fR" 4
7345 .IX Item "-fkeep-inline-functions"
7346 In C, emit \f(CW\*(C`static\*(C'\fR functions that are declared \f(CW\*(C`inline\*(C'\fR
7347 into the object file, even if the function has been inlined into all
7348 of its callers.  This switch does not affect functions using the
7349 \&\f(CW\*(C`extern inline\*(C'\fR extension in \s-1GNU C90.\s0  In \*(C+, emit any and all
7350 inline functions into the object file.
7351 .IP "\fB\-fkeep\-static\-functions\fR" 4
7352 .IX Item "-fkeep-static-functions"
7353 Emit \f(CW\*(C`static\*(C'\fR functions into the object file, even if the function
7354 is never used.
7355 .IP "\fB\-fkeep\-static\-consts\fR" 4
7356 .IX Item "-fkeep-static-consts"
7357 Emit variables declared \f(CW\*(C`static const\*(C'\fR when optimization isn't turned
7358 on, even if the variables aren't referenced.
7359 .Sp
7360 \&\s-1GCC\s0 enables this option by default.  If you want to force the compiler to
7361 check if a variable is referenced, regardless of whether or not
7362 optimization is turned on, use the \fB\-fno\-keep\-static\-consts\fR option.
7363 .IP "\fB\-fmerge\-constants\fR" 4
7364 .IX Item "-fmerge-constants"
7365 Attempt to merge identical constants (string constants and floating-point
7366 constants) across compilation units.
7367 .Sp
7368 This option is the default for optimized compilation if the assembler and
7369 linker support it.  Use \fB\-fno\-merge\-constants\fR to inhibit this
7370 behavior.
7371 .Sp
7372 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7373 .IP "\fB\-fmerge\-all\-constants\fR" 4
7374 .IX Item "-fmerge-all-constants"
7375 Attempt to merge identical constants and identical variables.
7376 .Sp
7377 This option implies \fB\-fmerge\-constants\fR.  In addition to
7378 \&\fB\-fmerge\-constants\fR this considers e.g. even constant initialized
7379 arrays or initialized constant variables with integral or floating-point
7380 types.  Languages like C or \*(C+ require each variable, including multiple
7381 instances of the same variable in recursive calls, to have distinct locations,
7382 so using this option results in non-conforming
7383 behavior.
7384 .IP "\fB\-fmodulo\-sched\fR" 4
7385 .IX Item "-fmodulo-sched"
7386 Perform swing modulo scheduling immediately before the first scheduling
7387 pass.  This pass looks at innermost loops and reorders their
7388 instructions by overlapping different iterations.
7389 .IP "\fB\-fmodulo\-sched\-allow\-regmoves\fR" 4
7390 .IX Item "-fmodulo-sched-allow-regmoves"
7391 Perform more aggressive SMS-based modulo scheduling with register moves
7392 allowed.  By setting this flag certain anti-dependences edges are
7393 deleted, which triggers the generation of reg-moves based on the
7394 life-range analysis.  This option is effective only with
7395 \&\fB\-fmodulo\-sched\fR enabled.
7396 .IP "\fB\-fno\-branch\-count\-reg\fR" 4
7397 .IX Item "-fno-branch-count-reg"
7398 Avoid running a pass scanning for opportunities to use \*(L"decrement and
7399 branch\*(R" instructions on a count register instead of generating sequences
7400 of instructions that decrement a register, compare it against zero, and
7401 then branch based upon the result.  This option is only meaningful on
7402 architectures that support such instructions, which include x86, PowerPC,
7403 \&\s-1IA\-64\s0 and S/390.  Note that the \fB\-fno\-branch\-count\-reg\fR option
7404 doesn't remove the decrement and branch instructions from the generated
7405 instruction stream introduced by other optimization passes.
7406 .Sp
7407 Enabled by default at \fB\-O1\fR and higher.
7408 .Sp
7409 The default is \fB\-fbranch\-count\-reg\fR.
7410 .IP "\fB\-fno\-function\-cse\fR" 4
7411 .IX Item "-fno-function-cse"
7412 Do not put function addresses in registers; make each instruction that
7413 calls a constant function contain the function's address explicitly.
7414 .Sp
7415 This option results in less efficient code, but some strange hacks
7416 that alter the assembler output may be confused by the optimizations
7417 performed when this option is not used.
7418 .Sp
7419 The default is \fB\-ffunction\-cse\fR
7420 .IP "\fB\-fno\-zero\-initialized\-in\-bss\fR" 4
7421 .IX Item "-fno-zero-initialized-in-bss"
7422 If the target supports a \s-1BSS\s0 section, \s-1GCC\s0 by default puts variables that
7423 are initialized to zero into \s-1BSS.\s0  This can save space in the resulting
7424 code.
7425 .Sp
7426 This option turns off this behavior because some programs explicitly
7427 rely on variables going to the data section\-\-\-e.g., so that the
7428 resulting executable can find the beginning of that section and/or make
7429 assumptions based on that.
7430 .Sp
7431 The default is \fB\-fzero\-initialized\-in\-bss\fR.
7432 .IP "\fB\-fthread\-jumps\fR" 4
7433 .IX Item "-fthread-jumps"
7434 Perform optimizations that check to see if a jump branches to a
7435 location where another comparison subsumed by the first is found.  If
7436 so, the first branch is redirected to either the destination of the
7437 second branch or a point immediately following it, depending on whether
7438 the condition is known to be true or false.
7439 .Sp
7440 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7441 .IP "\fB\-fsplit\-wide\-types\fR" 4
7442 .IX Item "-fsplit-wide-types"
7443 When using a type that occupies multiple registers, such as \f(CW\*(C`long
7444 long\*(C'\fR on a 32\-bit system, split the registers apart and allocate them
7445 independently.  This normally generates better code for those types,
7446 but may make debugging more difficult.
7447 .Sp
7448 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR,
7449 \&\fB\-Os\fR.
7450 .IP "\fB\-fcse\-follow\-jumps\fR" 4
7451 .IX Item "-fcse-follow-jumps"
7452 In common subexpression elimination (\s-1CSE\s0), scan through jump instructions
7453 when the target of the jump is not reached by any other path.  For
7454 example, when \s-1CSE\s0 encounters an \f(CW\*(C`if\*(C'\fR statement with an
7455 \&\f(CW\*(C`else\*(C'\fR clause, \s-1CSE\s0 follows the jump when the condition
7456 tested is false.
7457 .Sp
7458 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7459 .IP "\fB\-fcse\-skip\-blocks\fR" 4
7460 .IX Item "-fcse-skip-blocks"
7461 This is similar to \fB\-fcse\-follow\-jumps\fR, but causes \s-1CSE\s0 to
7462 follow jumps that conditionally skip over blocks.  When \s-1CSE\s0
7463 encounters a simple \f(CW\*(C`if\*(C'\fR statement with no else clause,
7464 \&\fB\-fcse\-skip\-blocks\fR causes \s-1CSE\s0 to follow the jump around the
7465 body of the \f(CW\*(C`if\*(C'\fR.
7466 .Sp
7467 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7468 .IP "\fB\-frerun\-cse\-after\-loop\fR" 4
7469 .IX Item "-frerun-cse-after-loop"
7470 Re-run common subexpression elimination after loop optimizations are
7471 performed.
7472 .Sp
7473 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7474 .IP "\fB\-fgcse\fR" 4
7475 .IX Item "-fgcse"
7476 Perform a global common subexpression elimination pass.
7477 This pass also performs global constant and copy propagation.
7478 .Sp
7479 \&\fINote:\fR When compiling a program using computed gotos, a \s-1GCC\s0
7480 extension, you may get better run-time performance if you disable
7481 the global common subexpression elimination pass by adding
7482 \&\fB\-fno\-gcse\fR to the command line.
7483 .Sp
7484 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7485 .IP "\fB\-fgcse\-lm\fR" 4
7486 .IX Item "-fgcse-lm"
7487 When \fB\-fgcse\-lm\fR is enabled, global common subexpression elimination
7488 attempts to move loads that are only killed by stores into themselves.  This
7489 allows a loop containing a load/store sequence to be changed to a load outside
7490 the loop, and a copy/store within the loop.
7491 .Sp
7492 Enabled by default when \fB\-fgcse\fR is enabled.
7493 .IP "\fB\-fgcse\-sm\fR" 4
7494 .IX Item "-fgcse-sm"
7495 When \fB\-fgcse\-sm\fR is enabled, a store motion pass is run after
7496 global common subexpression elimination.  This pass attempts to move
7497 stores out of loops.  When used in conjunction with \fB\-fgcse\-lm\fR,
7498 loops containing a load/store sequence can be changed to a load before
7499 the loop and a store after the loop.
7500 .Sp
7501 Not enabled at any optimization level.
7502 .IP "\fB\-fgcse\-las\fR" 4
7503 .IX Item "-fgcse-las"
7504 When \fB\-fgcse\-las\fR is enabled, the global common subexpression
7505 elimination pass eliminates redundant loads that come after stores to the
7506 same memory location (both partial and full redundancies).
7507 .Sp
7508 Not enabled at any optimization level.
7509 .IP "\fB\-fgcse\-after\-reload\fR" 4
7510 .IX Item "-fgcse-after-reload"
7511 When \fB\-fgcse\-after\-reload\fR is enabled, a redundant load elimination
7512 pass is performed after reload.  The purpose of this pass is to clean up
7513 redundant spilling.
7514 .IP "\fB\-faggressive\-loop\-optimizations\fR" 4
7515 .IX Item "-faggressive-loop-optimizations"
7516 This option tells the loop optimizer to use language constraints to
7517 derive bounds for the number of iterations of a loop.  This assumes that
7518 loop code does not invoke undefined behavior by for example causing signed
7519 integer overflows or out-of-bound array accesses.  The bounds for the
7520 number of iterations of a loop are used to guide loop unrolling and peeling
7521 and loop exit test optimizations.
7522 This option is enabled by default.
7523 .IP "\fB\-funconstrained\-commons\fR" 4
7524 .IX Item "-funconstrained-commons"
7525 This option tells the compiler that variables declared in common blocks
7526 (e.g. Fortran) may later be overridden with longer trailing arrays. This
7527 prevents certain optimizations that depend on knowing the array bounds.
7528 .IP "\fB\-fcrossjumping\fR" 4
7529 .IX Item "-fcrossjumping"
7530 Perform cross-jumping transformation.
7531 This transformation unifies equivalent code and saves code size.  The
7532 resulting code may or may not perform better than without cross-jumping.
7533 .Sp
7534 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7535 .IP "\fB\-fauto\-inc\-dec\fR" 4
7536 .IX Item "-fauto-inc-dec"
7537 Combine increments or decrements of addresses with memory accesses.
7538 This pass is always skipped on architectures that do not have
7539 instructions to support this.  Enabled by default at \fB\-O\fR and
7540 higher on architectures that support this.
7541 .IP "\fB\-fdce\fR" 4
7542 .IX Item "-fdce"
7543 Perform dead code elimination (\s-1DCE\s0) on \s-1RTL.\s0
7544 Enabled by default at \fB\-O\fR and higher.
7545 .IP "\fB\-fdse\fR" 4
7546 .IX Item "-fdse"
7547 Perform dead store elimination (\s-1DSE\s0) on \s-1RTL.\s0
7548 Enabled by default at \fB\-O\fR and higher.
7549 .IP "\fB\-fif\-conversion\fR" 4
7550 .IX Item "-fif-conversion"
7551 Attempt to transform conditional jumps into branch-less equivalents.  This
7552 includes use of conditional moves, min, max, set flags and abs instructions, and
7553 some tricks doable by standard arithmetics.  The use of conditional execution
7554 on chips where it is available is controlled by \fB\-fif\-conversion2\fR.
7555 .Sp
7556 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7557 .IP "\fB\-fif\-conversion2\fR" 4
7558 .IX Item "-fif-conversion2"
7559 Use conditional execution (where available) to transform conditional jumps into
7560 branch-less equivalents.
7561 .Sp
7562 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7563 .IP "\fB\-fdeclone\-ctor\-dtor\fR" 4
7564 .IX Item "-fdeclone-ctor-dtor"
7565 The \*(C+ \s-1ABI\s0 requires multiple entry points for constructors and
7566 destructors: one for a base subobject, one for a complete object, and
7567 one for a virtual destructor that calls operator delete afterwards.
7568 For a hierarchy with virtual bases, the base and complete variants are
7569 clones, which means two copies of the function.  With this option, the
7570 base and complete variants are changed to be thunks that call a common
7571 implementation.
7572 .Sp
7573 Enabled by \fB\-Os\fR.
7574 .IP "\fB\-fdelete\-null\-pointer\-checks\fR" 4
7575 .IX Item "-fdelete-null-pointer-checks"
7576 Assume that programs cannot safely dereference null pointers, and that
7577 no code or data element resides at address zero.
7578 This option enables simple constant
7579 folding optimizations at all optimization levels.  In addition, other
7580 optimization passes in \s-1GCC\s0 use this flag to control global dataflow
7581 analyses that eliminate useless checks for null pointers; these assume
7582 that a memory access to address zero always results in a trap, so
7583 that if a pointer is checked after it has already been dereferenced,
7584 it cannot be null.
7585 .Sp
7586 Note however that in some environments this assumption is not true.
7587 Use \fB\-fno\-delete\-null\-pointer\-checks\fR to disable this optimization
7588 for programs that depend on that behavior.
7589 .Sp
7590 This option is enabled by default on most targets.  On Nios \s-1II ELF,\s0 it
7591 defaults to off.  On \s-1AVR, CR16,\s0 and \s-1MSP430,\s0 this option is completely disabled.
7592 .Sp
7593 Passes that use the dataflow information
7594 are enabled independently at different optimization levels.
7595 .IP "\fB\-fdevirtualize\fR" 4
7596 .IX Item "-fdevirtualize"
7597 Attempt to convert calls to virtual functions to direct calls.  This
7598 is done both within a procedure and interprocedurally as part of
7599 indirect inlining (\fB\-findirect\-inlining\fR) and interprocedural constant
7600 propagation (\fB\-fipa\-cp\fR).
7601 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7602 .IP "\fB\-fdevirtualize\-speculatively\fR" 4
7603 .IX Item "-fdevirtualize-speculatively"
7604 Attempt to convert calls to virtual functions to speculative direct calls.
7605 Based on the analysis of the type inheritance graph, determine for a given call
7606 the set of likely targets. If the set is small, preferably of size 1, change
7607 the call into a conditional deciding between direct and indirect calls.  The
7608 speculative calls enable more optimizations, such as inlining.  When they seem
7609 useless after further optimization, they are converted back into original form.
7610 .IP "\fB\-fdevirtualize\-at\-ltrans\fR" 4
7611 .IX Item "-fdevirtualize-at-ltrans"
7612 Stream extra information needed for aggressive devirtualization when running
7613 the link-time optimizer in local transformation mode.  
7614 This option enables more devirtualization but
7615 significantly increases the size of streamed data. For this reason it is
7616 disabled by default.
7617 .IP "\fB\-fexpensive\-optimizations\fR" 4
7618 .IX Item "-fexpensive-optimizations"
7619 Perform a number of minor optimizations that are relatively expensive.
7620 .Sp
7621 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7622 .IP "\fB\-free\fR" 4
7623 .IX Item "-free"
7624 Attempt to remove redundant extension instructions.  This is especially
7625 helpful for the x86\-64 architecture, which implicitly zero-extends in 64\-bit
7626 registers after writing to their lower 32\-bit half.
7627 .Sp
7628 Enabled for Alpha, AArch64 and x86 at levels \fB\-O2\fR,
7629 \&\fB\-O3\fR, \fB\-Os\fR.
7630 .IP "\fB\-fno\-lifetime\-dse\fR" 4
7631 .IX Item "-fno-lifetime-dse"
7632 In \*(C+ the value of an object is only affected by changes within its
7633 lifetime: when the constructor begins, the object has an indeterminate
7634 value, and any changes during the lifetime of the object are dead when
7635 the object is destroyed.  Normally dead store elimination will take
7636 advantage of this; if your code relies on the value of the object
7637 storage persisting beyond the lifetime of the object, you can use this
7638 flag to disable this optimization.  To preserve stores before the
7639 constructor starts (e.g. because your operator new clears the object
7640 storage) but still treat the object as dead after the destructor you,
7641 can use \fB\-flifetime\-dse=1\fR.  The default behavior can be
7642 explicitly selected with \fB\-flifetime\-dse=2\fR.
7643 \&\fB\-flifetime\-dse=0\fR is equivalent to \fB\-fno\-lifetime\-dse\fR.
7644 .IP "\fB\-flive\-range\-shrinkage\fR" 4
7645 .IX Item "-flive-range-shrinkage"
7646 Attempt to decrease register pressure through register live range
7647 shrinkage.  This is helpful for fast processors with small or moderate
7648 size register sets.
7649 .IP "\fB\-fira\-algorithm=\fR\fIalgorithm\fR" 4
7650 .IX Item "-fira-algorithm=algorithm"
7651 Use the specified coloring algorithm for the integrated register
7652 allocator.  The \fIalgorithm\fR argument can be \fBpriority\fR, which
7653 specifies Chow's priority coloring, or \fB\s-1CB\s0\fR, which specifies
7654 Chaitin-Briggs coloring.  Chaitin-Briggs coloring is not implemented
7655 for all architectures, but for those targets that do support it, it is
7656 the default because it generates better code.
7657 .IP "\fB\-fira\-region=\fR\fIregion\fR" 4
7658 .IX Item "-fira-region=region"
7659 Use specified regions for the integrated register allocator.  The
7660 \&\fIregion\fR argument should be one of the following:
7661 .RS 4
7662 .IP "\fBall\fR" 4
7663 .IX Item "all"
7664 Use all loops as register allocation regions.
7665 This can give the best results for machines with a small and/or
7666 irregular register set.
7667 .IP "\fBmixed\fR" 4
7668 .IX Item "mixed"
7669 Use all loops except for loops with small register pressure 
7670 as the regions.  This value usually gives
7671 the best results in most cases and for most architectures,
7672 and is enabled by default when compiling with optimization for speed
7673 (\fB\-O\fR, \fB\-O2\fR, ...).
7674 .IP "\fBone\fR" 4
7675 .IX Item "one"
7676 Use all functions as a single region.  
7677 This typically results in the smallest code size, and is enabled by default for
7678 \&\fB\-Os\fR or \fB\-O0\fR.
7679 .RE
7680 .RS 4
7681 .RE
7682 .IP "\fB\-fira\-hoist\-pressure\fR" 4
7683 .IX Item "-fira-hoist-pressure"
7684 Use \s-1IRA\s0 to evaluate register pressure in the code hoisting pass for
7685 decisions to hoist expressions.  This option usually results in smaller
7686 code, but it can slow the compiler down.
7687 .Sp
7688 This option is enabled at level \fB\-Os\fR for all targets.
7689 .IP "\fB\-fira\-loop\-pressure\fR" 4
7690 .IX Item "-fira-loop-pressure"
7691 Use \s-1IRA\s0 to evaluate register pressure in loops for decisions to move
7692 loop invariants.  This option usually results in generation
7693 of faster and smaller code on machines with large register files (>= 32
7694 registers), but it can slow the compiler down.
7695 .Sp
7696 This option is enabled at level \fB\-O3\fR for some targets.
7697 .IP "\fB\-fno\-ira\-share\-save\-slots\fR" 4
7698 .IX Item "-fno-ira-share-save-slots"
7699 Disable sharing of stack slots used for saving call-used hard
7700 registers living through a call.  Each hard register gets a
7701 separate stack slot, and as a result function stack frames are
7702 larger.
7703 .IP "\fB\-fno\-ira\-share\-spill\-slots\fR" 4
7704 .IX Item "-fno-ira-share-spill-slots"
7705 Disable sharing of stack slots allocated for pseudo-registers.  Each
7706 pseudo-register that does not get a hard register gets a separate
7707 stack slot, and as a result function stack frames are larger.
7708 .IP "\fB\-flra\-remat\fR" 4
7709 .IX Item "-flra-remat"
7710 Enable CFG-sensitive rematerialization in \s-1LRA.\s0  Instead of loading
7711 values of spilled pseudos, \s-1LRA\s0 tries to rematerialize (recalculate)
7712 values if it is profitable.
7713 .Sp
7714 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7715 .IP "\fB\-fdelayed\-branch\fR" 4
7716 .IX Item "-fdelayed-branch"
7717 If supported for the target machine, attempt to reorder instructions
7718 to exploit instruction slots available after delayed branch
7719 instructions.
7720 .Sp
7721 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7722 .IP "\fB\-fschedule\-insns\fR" 4
7723 .IX Item "-fschedule-insns"
7724 If supported for the target machine, attempt to reorder instructions to
7725 eliminate execution stalls due to required data being unavailable.  This
7726 helps machines that have slow floating point or memory load instructions
7727 by allowing other instructions to be issued until the result of the load
7728 or floating-point instruction is required.
7729 .Sp
7730 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
7731 .IP "\fB\-fschedule\-insns2\fR" 4
7732 .IX Item "-fschedule-insns2"
7733 Similar to \fB\-fschedule\-insns\fR, but requests an additional pass of
7734 instruction scheduling after register allocation has been done.  This is
7735 especially useful on machines with a relatively small number of
7736 registers and where memory load instructions take more than one cycle.
7737 .Sp
7738 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7739 .IP "\fB\-fno\-sched\-interblock\fR" 4
7740 .IX Item "-fno-sched-interblock"
7741 Don't schedule instructions across basic blocks.  This is normally
7742 enabled by default when scheduling before register allocation, i.e.
7743 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
7744 .IP "\fB\-fno\-sched\-spec\fR" 4
7745 .IX Item "-fno-sched-spec"
7746 Don't allow speculative motion of non-load instructions.  This is normally
7747 enabled by default when scheduling before register allocation, i.e.
7748 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
7749 .IP "\fB\-fsched\-pressure\fR" 4
7750 .IX Item "-fsched-pressure"
7751 Enable register pressure sensitive insn scheduling before register
7752 allocation.  This only makes sense when scheduling before register
7753 allocation is enabled, i.e. with \fB\-fschedule\-insns\fR or at
7754 \&\fB\-O2\fR or higher.  Usage of this option can improve the
7755 generated code and decrease its size by preventing register pressure
7756 increase above the number of available hard registers and subsequent
7757 spills in register allocation.
7758 .IP "\fB\-fsched\-spec\-load\fR" 4
7759 .IX Item "-fsched-spec-load"
7760 Allow speculative motion of some load instructions.  This only makes
7761 sense when scheduling before register allocation, i.e. with
7762 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
7763 .IP "\fB\-fsched\-spec\-load\-dangerous\fR" 4
7764 .IX Item "-fsched-spec-load-dangerous"
7765 Allow speculative motion of more load instructions.  This only makes
7766 sense when scheduling before register allocation, i.e. with
7767 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
7768 .IP "\fB\-fsched\-stalled\-insns\fR" 4
7769 .IX Item "-fsched-stalled-insns"
7770 .PD 0
7771 .IP "\fB\-fsched\-stalled\-insns=\fR\fIn\fR" 4
7772 .IX Item "-fsched-stalled-insns=n"
7773 .PD
7774 Define how many insns (if any) can be moved prematurely from the queue
7775 of stalled insns into the ready list during the second scheduling pass.
7776 \&\fB\-fno\-sched\-stalled\-insns\fR means that no insns are moved
7777 prematurely, \fB\-fsched\-stalled\-insns=0\fR means there is no limit
7778 on how many queued insns can be moved prematurely.
7779 \&\fB\-fsched\-stalled\-insns\fR without a value is equivalent to
7780 \&\fB\-fsched\-stalled\-insns=1\fR.
7781 .IP "\fB\-fsched\-stalled\-insns\-dep\fR" 4
7782 .IX Item "-fsched-stalled-insns-dep"
7783 .PD 0
7784 .IP "\fB\-fsched\-stalled\-insns\-dep=\fR\fIn\fR" 4
7785 .IX Item "-fsched-stalled-insns-dep=n"
7786 .PD
7787 Define how many insn groups (cycles) are examined for a dependency
7788 on a stalled insn that is a candidate for premature removal from the queue
7789 of stalled insns.  This has an effect only during the second scheduling pass,
7790 and only if \fB\-fsched\-stalled\-insns\fR is used.
7791 \&\fB\-fno\-sched\-stalled\-insns\-dep\fR is equivalent to
7792 \&\fB\-fsched\-stalled\-insns\-dep=0\fR.
7793 \&\fB\-fsched\-stalled\-insns\-dep\fR without a value is equivalent to
7794 \&\fB\-fsched\-stalled\-insns\-dep=1\fR.
7795 .IP "\fB\-fsched2\-use\-superblocks\fR" 4
7796 .IX Item "-fsched2-use-superblocks"
7797 When scheduling after register allocation, use superblock scheduling.
7798 This allows motion across basic block boundaries,
7799 resulting in faster schedules.  This option is experimental, as not all machine
7800 descriptions used by \s-1GCC\s0 model the \s-1CPU\s0 closely enough to avoid unreliable
7801 results from the algorithm.
7802 .Sp
7803 This only makes sense when scheduling after register allocation, i.e. with
7804 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
7805 .IP "\fB\-fsched\-group\-heuristic\fR" 4
7806 .IX Item "-fsched-group-heuristic"
7807 Enable the group heuristic in the scheduler.  This heuristic favors
7808 the instruction that belongs to a schedule group.  This is enabled
7809 by default when scheduling is enabled, i.e. with \fB\-fschedule\-insns\fR
7810 or \fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
7811 .IP "\fB\-fsched\-critical\-path\-heuristic\fR" 4
7812 .IX Item "-fsched-critical-path-heuristic"
7813 Enable the critical-path heuristic in the scheduler.  This heuristic favors
7814 instructions on the critical path.  This is enabled by default when
7815 scheduling is enabled, i.e. with \fB\-fschedule\-insns\fR
7816 or \fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
7817 .IP "\fB\-fsched\-spec\-insn\-heuristic\fR" 4
7818 .IX Item "-fsched-spec-insn-heuristic"
7819 Enable the speculative instruction heuristic in the scheduler.  This
7820 heuristic favors speculative instructions with greater dependency weakness.
7821 This is enabled by default when scheduling is enabled, i.e.
7822 with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR
7823 or at \fB\-O2\fR or higher.
7824 .IP "\fB\-fsched\-rank\-heuristic\fR" 4
7825 .IX Item "-fsched-rank-heuristic"
7826 Enable the rank heuristic in the scheduler.  This heuristic favors
7827 the instruction belonging to a basic block with greater size or frequency.
7828 This is enabled by default when scheduling is enabled, i.e.
7829 with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
7830 at \fB\-O2\fR or higher.
7831 .IP "\fB\-fsched\-last\-insn\-heuristic\fR" 4
7832 .IX Item "-fsched-last-insn-heuristic"
7833 Enable the last-instruction heuristic in the scheduler.  This heuristic
7834 favors the instruction that is less dependent on the last instruction
7835 scheduled.  This is enabled by default when scheduling is enabled,
7836 i.e. with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
7837 at \fB\-O2\fR or higher.
7838 .IP "\fB\-fsched\-dep\-count\-heuristic\fR" 4
7839 .IX Item "-fsched-dep-count-heuristic"
7840 Enable the dependent-count heuristic in the scheduler.  This heuristic
7841 favors the instruction that has more instructions depending on it.
7842 This is enabled by default when scheduling is enabled, i.e.
7843 with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
7844 at \fB\-O2\fR or higher.
7845 .IP "\fB\-freschedule\-modulo\-scheduled\-loops\fR" 4
7846 .IX Item "-freschedule-modulo-scheduled-loops"
7847 Modulo scheduling is performed before traditional scheduling.  If a loop
7848 is modulo scheduled, later scheduling passes may change its schedule.  
7849 Use this option to control that behavior.
7850 .IP "\fB\-fselective\-scheduling\fR" 4
7851 .IX Item "-fselective-scheduling"
7852 Schedule instructions using selective scheduling algorithm.  Selective
7853 scheduling runs instead of the first scheduler pass.
7854 .IP "\fB\-fselective\-scheduling2\fR" 4
7855 .IX Item "-fselective-scheduling2"
7856 Schedule instructions using selective scheduling algorithm.  Selective
7857 scheduling runs instead of the second scheduler pass.
7858 .IP "\fB\-fsel\-sched\-pipelining\fR" 4
7859 .IX Item "-fsel-sched-pipelining"
7860 Enable software pipelining of innermost loops during selective scheduling.
7861 This option has no effect unless one of \fB\-fselective\-scheduling\fR or
7862 \&\fB\-fselective\-scheduling2\fR is turned on.
7863 .IP "\fB\-fsel\-sched\-pipelining\-outer\-loops\fR" 4
7864 .IX Item "-fsel-sched-pipelining-outer-loops"
7865 When pipelining loops during selective scheduling, also pipeline outer loops.
7866 This option has no effect unless \fB\-fsel\-sched\-pipelining\fR is turned on.
7867 .IP "\fB\-fsemantic\-interposition\fR" 4
7868 .IX Item "-fsemantic-interposition"
7869 Some object formats, like \s-1ELF,\s0 allow interposing of symbols by the 
7870 dynamic linker.
7871 This means that for symbols exported from the \s-1DSO,\s0 the compiler cannot perform
7872 interprocedural propagation, inlining and other optimizations in anticipation
7873 that the function or variable in question may change. While this feature is
7874 useful, for example, to rewrite memory allocation functions by a debugging
7875 implementation, it is expensive in the terms of code quality.
7876 With \fB\-fno\-semantic\-interposition\fR the compiler assumes that 
7877 if interposition happens for functions the overwriting function will have 
7878 precisely the same semantics (and side effects). 
7879 Similarly if interposition happens
7880 for variables, the constructor of the variable will be the same. The flag
7881 has no effect for functions explicitly declared inline 
7882 (where it is never allowed for interposition to change semantics) 
7883 and for symbols explicitly declared weak.
7884 .IP "\fB\-fshrink\-wrap\fR" 4
7885 .IX Item "-fshrink-wrap"
7886 Emit function prologues only before parts of the function that need it,
7887 rather than at the top of the function.  This flag is enabled by default at
7888 \&\fB\-O\fR and higher.
7889 .IP "\fB\-fshrink\-wrap\-separate\fR" 4
7890 .IX Item "-fshrink-wrap-separate"
7891 Shrink-wrap separate parts of the prologue and epilogue separately, so that
7892 those parts are only executed when needed.
7893 This option is on by default, but has no effect unless \fB\-fshrink\-wrap\fR
7894 is also turned on and the target supports this.
7895 .IP "\fB\-fcaller\-saves\fR" 4
7896 .IX Item "-fcaller-saves"
7897 Enable allocation of values to registers that are clobbered by
7898 function calls, by emitting extra instructions to save and restore the
7899 registers around such calls.  Such allocation is done only when it
7900 seems to result in better code.
7901 .Sp
7902 This option is always enabled by default on certain machines, usually
7903 those which have no call-preserved registers to use instead.
7904 .Sp
7905 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7906 .IP "\fB\-fcombine\-stack\-adjustments\fR" 4
7907 .IX Item "-fcombine-stack-adjustments"
7908 Tracks stack adjustments (pushes and pops) and stack memory references
7909 and then tries to find ways to combine them.
7910 .Sp
7911 Enabled by default at \fB\-O1\fR and higher.
7912 .IP "\fB\-fipa\-ra\fR" 4
7913 .IX Item "-fipa-ra"
7914 Use caller save registers for allocation if those registers are not used by
7915 any called function.  In that case it is not necessary to save and restore
7916 them around calls.  This is only possible if called functions are part of
7917 same compilation unit as current function and they are compiled before it.
7918 .Sp
7919 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR, however the option
7920 is disabled if generated code will be instrumented for profiling
7921 (\fB\-p\fR, or \fB\-pg\fR) or if callee's register usage cannot be known
7922 exactly (this happens on targets that do not expose prologues
7923 and epilogues in \s-1RTL\s0).
7924 .IP "\fB\-fconserve\-stack\fR" 4
7925 .IX Item "-fconserve-stack"
7926 Attempt to minimize stack usage.  The compiler attempts to use less
7927 stack space, even if that makes the program slower.  This option
7928 implies setting the \fBlarge-stack-frame\fR parameter to 100
7929 and the \fBlarge-stack-frame-growth\fR parameter to 400.
7930 .IP "\fB\-ftree\-reassoc\fR" 4
7931 .IX Item "-ftree-reassoc"
7932 Perform reassociation on trees.  This flag is enabled by default
7933 at \fB\-O\fR and higher.
7934 .IP "\fB\-fcode\-hoisting\fR" 4
7935 .IX Item "-fcode-hoisting"
7936 Perform code hoisting.  Code hoisting tries to move the
7937 evaluation of expressions executed on all paths to the function exit
7938 as early as possible.  This is especially useful as a code size
7939 optimization, but it often helps for code speed as well.
7940 This flag is enabled by default at \fB\-O2\fR and higher.
7941 .IP "\fB\-ftree\-pre\fR" 4
7942 .IX Item "-ftree-pre"
7943 Perform partial redundancy elimination (\s-1PRE\s0) on trees.  This flag is
7944 enabled by default at \fB\-O2\fR and \fB\-O3\fR.
7945 .IP "\fB\-ftree\-partial\-pre\fR" 4
7946 .IX Item "-ftree-partial-pre"
7947 Make partial redundancy elimination (\s-1PRE\s0) more aggressive.  This flag is
7948 enabled by default at \fB\-O3\fR.
7949 .IP "\fB\-ftree\-forwprop\fR" 4
7950 .IX Item "-ftree-forwprop"
7951 Perform forward propagation on trees.  This flag is enabled by default
7952 at \fB\-O\fR and higher.
7953 .IP "\fB\-ftree\-fre\fR" 4
7954 .IX Item "-ftree-fre"
7955 Perform full redundancy elimination (\s-1FRE\s0) on trees.  The difference
7956 between \s-1FRE\s0 and \s-1PRE\s0 is that \s-1FRE\s0 only considers expressions
7957 that are computed on all paths leading to the redundant computation.
7958 This analysis is faster than \s-1PRE,\s0 though it exposes fewer redundancies.
7959 This flag is enabled by default at \fB\-O\fR and higher.
7960 .IP "\fB\-ftree\-phiprop\fR" 4
7961 .IX Item "-ftree-phiprop"
7962 Perform hoisting of loads from conditional pointers on trees.  This
7963 pass is enabled by default at \fB\-O\fR and higher.
7964 .IP "\fB\-fhoist\-adjacent\-loads\fR" 4
7965 .IX Item "-fhoist-adjacent-loads"
7966 Speculatively hoist loads from both branches of an if-then-else if the
7967 loads are from adjacent locations in the same structure and the target
7968 architecture has a conditional move instruction.  This flag is enabled
7969 by default at \fB\-O2\fR and higher.
7970 .IP "\fB\-ftree\-copy\-prop\fR" 4
7971 .IX Item "-ftree-copy-prop"
7972 Perform copy propagation on trees.  This pass eliminates unnecessary
7973 copy operations.  This flag is enabled by default at \fB\-O\fR and
7974 higher.
7975 .IP "\fB\-fipa\-pure\-const\fR" 4
7976 .IX Item "-fipa-pure-const"
7977 Discover which functions are pure or constant.
7978 Enabled by default at \fB\-O\fR and higher.
7979 .IP "\fB\-fipa\-reference\fR" 4
7980 .IX Item "-fipa-reference"
7981 Discover which static variables do not escape the
7982 compilation unit.
7983 Enabled by default at \fB\-O\fR and higher.
7984 .IP "\fB\-fipa\-pta\fR" 4
7985 .IX Item "-fipa-pta"
7986 Perform interprocedural pointer analysis and interprocedural modification
7987 and reference analysis.  This option can cause excessive memory and
7988 compile-time usage on large compilation units.  It is not enabled by
7989 default at any optimization level.
7990 .IP "\fB\-fipa\-profile\fR" 4
7991 .IX Item "-fipa-profile"
7992 Perform interprocedural profile propagation.  The functions called only from
7993 cold functions are marked as cold. Also functions executed once (such as
7994 \&\f(CW\*(C`cold\*(C'\fR, \f(CW\*(C`noreturn\*(C'\fR, static constructors or destructors) are identified. Cold
7995 functions and loop less parts of functions executed once are then optimized for
7996 size.
7997 Enabled by default at \fB\-O\fR and higher.
7998 .IP "\fB\-fipa\-cp\fR" 4
7999 .IX Item "-fipa-cp"
8000 Perform interprocedural constant propagation.
8001 This optimization analyzes the program to determine when values passed
8002 to functions are constants and then optimizes accordingly.
8003 This optimization can substantially increase performance
8004 if the application has constants passed to functions.
8005 This flag is enabled by default at \fB\-O2\fR, \fB\-Os\fR and \fB\-O3\fR.
8006 .IP "\fB\-fipa\-cp\-clone\fR" 4
8007 .IX Item "-fipa-cp-clone"
8008 Perform function cloning to make interprocedural constant propagation stronger.
8009 When enabled, interprocedural constant propagation performs function cloning
8010 when externally visible function can be called with constant arguments.
8011 Because this optimization can create multiple copies of functions,
8012 it may significantly increase code size
8013 (see \fB\-\-param ipcp\-unit\-growth=\fR\fIvalue\fR).
8014 This flag is enabled by default at \fB\-O3\fR.
8015 .IP "\fB\-fipa\-bit\-cp\fR" 4
8016 .IX Item "-fipa-bit-cp"
8017 When enabled, perform interprocedural bitwise constant
8018 propagation. This flag is enabled by default at \fB\-O2\fR. It
8019 requires that \fB\-fipa\-cp\fR is enabled.
8020 .IP "\fB\-fipa\-vrp\fR" 4
8021 .IX Item "-fipa-vrp"
8022 When enabled, perform interprocedural propagation of value
8023 ranges. This flag is enabled by default at \fB\-O2\fR. It requires
8024 that \fB\-fipa\-cp\fR is enabled.
8025 .IP "\fB\-fipa\-icf\fR" 4
8026 .IX Item "-fipa-icf"
8027 Perform Identical Code Folding for functions and read-only variables.
8028 The optimization reduces code size and may disturb unwind stacks by replacing
8029 a function by equivalent one with a different name. The optimization works
8030 more effectively with link-time optimization enabled.
8031 .Sp
8032 Nevertheless the behavior is similar to Gold Linker \s-1ICF\s0 optimization, \s-1GCC ICF\s0
8033 works on different levels and thus the optimizations are not same \- there are
8034 equivalences that are found only by \s-1GCC\s0 and equivalences found only by Gold.
8035 .Sp
8036 This flag is enabled by default at \fB\-O2\fR and \fB\-Os\fR.
8037 .IP "\fB\-fisolate\-erroneous\-paths\-dereference\fR" 4
8038 .IX Item "-fisolate-erroneous-paths-dereference"
8039 Detect paths that trigger erroneous or undefined behavior due to
8040 dereferencing a null pointer.  Isolate those paths from the main control
8041 flow and turn the statement with erroneous or undefined behavior into a trap.
8042 This flag is enabled by default at \fB\-O2\fR and higher and depends on
8043 \&\fB\-fdelete\-null\-pointer\-checks\fR also being enabled.
8044 .IP "\fB\-fisolate\-erroneous\-paths\-attribute\fR" 4
8045 .IX Item "-fisolate-erroneous-paths-attribute"
8046 Detect paths that trigger erroneous or undefined behavior due to a null value
8047 being used in a way forbidden by a \f(CW\*(C`returns_nonnull\*(C'\fR or \f(CW\*(C`nonnull\*(C'\fR
8048 attribute.  Isolate those paths from the main control flow and turn the
8049 statement with erroneous or undefined behavior into a trap.  This is not
8050 currently enabled, but may be enabled by \fB\-O2\fR in the future.
8051 .IP "\fB\-ftree\-sink\fR" 4
8052 .IX Item "-ftree-sink"
8053 Perform forward store motion on trees.  This flag is
8054 enabled by default at \fB\-O\fR and higher.
8055 .IP "\fB\-ftree\-bit\-ccp\fR" 4
8056 .IX Item "-ftree-bit-ccp"
8057 Perform sparse conditional bit constant propagation on trees and propagate
8058 pointer alignment information.
8059 This pass only operates on local scalar variables and is enabled by default
8060 at \fB\-O\fR and higher.  It requires that \fB\-ftree\-ccp\fR is enabled.
8061 .IP "\fB\-ftree\-ccp\fR" 4
8062 .IX Item "-ftree-ccp"
8063 Perform sparse conditional constant propagation (\s-1CCP\s0) on trees.  This
8064 pass only operates on local scalar variables and is enabled by default
8065 at \fB\-O\fR and higher.
8066 .IP "\fB\-fssa\-backprop\fR" 4
8067 .IX Item "-fssa-backprop"
8068 Propagate information about uses of a value up the definition chain
8069 in order to simplify the definitions.  For example, this pass strips
8070 sign operations if the sign of a value never matters.  The flag is
8071 enabled by default at \fB\-O\fR and higher.
8072 .IP "\fB\-fssa\-phiopt\fR" 4
8073 .IX Item "-fssa-phiopt"
8074 Perform pattern matching on \s-1SSA PHI\s0 nodes to optimize conditional
8075 code.  This pass is enabled by default at \fB\-O\fR and higher.
8076 .IP "\fB\-ftree\-switch\-conversion\fR" 4
8077 .IX Item "-ftree-switch-conversion"
8078 Perform conversion of simple initializations in a switch to
8079 initializations from a scalar array.  This flag is enabled by default
8080 at \fB\-O2\fR and higher.
8081 .IP "\fB\-ftree\-tail\-merge\fR" 4
8082 .IX Item "-ftree-tail-merge"
8083 Look for identical code sequences.  When found, replace one with a jump to the
8084 other.  This optimization is known as tail merging or cross jumping.  This flag
8085 is enabled by default at \fB\-O2\fR and higher.  The compilation time
8086 in this pass can
8087 be limited using \fBmax-tail-merge-comparisons\fR parameter and
8088 \&\fBmax-tail-merge-iterations\fR parameter.
8089 .IP "\fB\-ftree\-dce\fR" 4
8090 .IX Item "-ftree-dce"
8091 Perform dead code elimination (\s-1DCE\s0) on trees.  This flag is enabled by
8092 default at \fB\-O\fR and higher.
8093 .IP "\fB\-ftree\-builtin\-call\-dce\fR" 4
8094 .IX Item "-ftree-builtin-call-dce"
8095 Perform conditional dead code elimination (\s-1DCE\s0) for calls to built-in functions
8096 that may set \f(CW\*(C`errno\*(C'\fR but are otherwise free of side effects.  This flag is
8097 enabled by default at \fB\-O2\fR and higher if \fB\-Os\fR is not also
8098 specified.
8099 .IP "\fB\-ftree\-dominator\-opts\fR" 4
8100 .IX Item "-ftree-dominator-opts"
8101 Perform a variety of simple scalar cleanups (constant/copy
8102 propagation, redundancy elimination, range propagation and expression
8103 simplification) based on a dominator tree traversal.  This also
8104 performs jump threading (to reduce jumps to jumps). This flag is
8105 enabled by default at \fB\-O\fR and higher.
8106 .IP "\fB\-ftree\-dse\fR" 4
8107 .IX Item "-ftree-dse"
8108 Perform dead store elimination (\s-1DSE\s0) on trees.  A dead store is a store into
8109 a memory location that is later overwritten by another store without
8110 any intervening loads.  In this case the earlier store can be deleted.  This
8111 flag is enabled by default at \fB\-O\fR and higher.
8112 .IP "\fB\-ftree\-ch\fR" 4
8113 .IX Item "-ftree-ch"
8114 Perform loop header copying on trees.  This is beneficial since it increases
8115 effectiveness of code motion optimizations.  It also saves one jump.  This flag
8116 is enabled by default at \fB\-O\fR and higher.  It is not enabled
8117 for \fB\-Os\fR, since it usually increases code size.
8118 .IP "\fB\-ftree\-loop\-optimize\fR" 4
8119 .IX Item "-ftree-loop-optimize"
8120 Perform loop optimizations on trees.  This flag is enabled by default
8121 at \fB\-O\fR and higher.
8122 .IP "\fB\-ftree\-loop\-linear\fR" 4
8123 .IX Item "-ftree-loop-linear"
8124 .PD 0
8125 .IP "\fB\-floop\-strip\-mine\fR" 4
8126 .IX Item "-floop-strip-mine"
8127 .IP "\fB\-floop\-block\fR" 4
8128 .IX Item "-floop-block"
8129 .PD
8130 Perform loop nest optimizations.  Same as
8131 \&\fB\-floop\-nest\-optimize\fR.  To use this code transformation, \s-1GCC\s0 has
8132 to be configured with \fB\-\-with\-isl\fR to enable the Graphite loop
8133 transformation infrastructure.
8134 .IP "\fB\-fgraphite\-identity\fR" 4
8135 .IX Item "-fgraphite-identity"
8136 Enable the identity transformation for graphite.  For every SCoP we generate
8137 the polyhedral representation and transform it back to gimple.  Using
8138 \&\fB\-fgraphite\-identity\fR we can check the costs or benefits of the
8139 \&\s-1GIMPLE\s0 \-> \s-1GRAPHITE\s0 \-> \s-1GIMPLE\s0 transformation.  Some minimal optimizations
8140 are also performed by the code generator isl, like index splitting and
8141 dead code elimination in loops.
8142 .IP "\fB\-floop\-nest\-optimize\fR" 4
8143 .IX Item "-floop-nest-optimize"
8144 Enable the isl based loop nest optimizer.  This is a generic loop nest
8145 optimizer based on the Pluto optimization algorithms.  It calculates a loop
8146 structure optimized for data-locality and parallelism.  This option
8147 is experimental.
8148 .IP "\fB\-floop\-parallelize\-all\fR" 4
8149 .IX Item "-floop-parallelize-all"
8150 Use the Graphite data dependence analysis to identify loops that can
8151 be parallelized.  Parallelize all the loops that can be analyzed to
8152 not contain loop carried dependences without checking that it is
8153 profitable to parallelize the loops.
8154 .IP "\fB\-ftree\-coalesce\-vars\fR" 4
8155 .IX Item "-ftree-coalesce-vars"
8156 While transforming the program out of the \s-1SSA\s0 representation, attempt to
8157 reduce copying by coalescing versions of different user-defined
8158 variables, instead of just compiler temporaries.  This may severely
8159 limit the ability to debug an optimized program compiled with
8160 \&\fB\-fno\-var\-tracking\-assignments\fR.  In the negated form, this flag
8161 prevents \s-1SSA\s0 coalescing of user variables.  This option is enabled by
8162 default if optimization is enabled, and it does very little otherwise.
8163 .IP "\fB\-ftree\-loop\-if\-convert\fR" 4
8164 .IX Item "-ftree-loop-if-convert"
8165 Attempt to transform conditional jumps in the innermost loops to
8166 branch-less equivalents.  The intent is to remove control-flow from
8167 the innermost loops in order to improve the ability of the
8168 vectorization pass to handle these loops.  This is enabled by default
8169 if vectorization is enabled.
8170 .IP "\fB\-ftree\-loop\-distribution\fR" 4
8171 .IX Item "-ftree-loop-distribution"
8172 Perform loop distribution.  This flag can improve cache performance on
8173 big loop bodies and allow further loop optimizations, like
8174 parallelization or vectorization, to take place.  For example, the loop
8175 .Sp
8176 .Vb 4
8177 \&        DO I = 1, N
8178 \&          A(I) = B(I) + C
8179 \&          D(I) = E(I) * F
8180 \&        ENDDO
8181 .Ve
8182 .Sp
8183 is transformed to
8184 .Sp
8185 .Vb 6
8186 \&        DO I = 1, N
8187 \&           A(I) = B(I) + C
8188 \&        ENDDO
8189 \&        DO I = 1, N
8190 \&           D(I) = E(I) * F
8191 \&        ENDDO
8192 .Ve
8193 .IP "\fB\-ftree\-loop\-distribute\-patterns\fR" 4
8194 .IX Item "-ftree-loop-distribute-patterns"
8195 Perform loop distribution of patterns that can be code generated with
8196 calls to a library.  This flag is enabled by default at \fB\-O3\fR.
8197 .Sp
8198 This pass distributes the initialization loops and generates a call to
8199 memset zero.  For example, the loop
8200 .Sp
8201 .Vb 4
8202 \&        DO I = 1, N
8203 \&          A(I) = 0
8204 \&          B(I) = A(I) + I
8205 \&        ENDDO
8206 .Ve
8207 .Sp
8208 is transformed to
8209 .Sp
8210 .Vb 6
8211 \&        DO I = 1, N
8212 \&           A(I) = 0
8213 \&        ENDDO
8214 \&        DO I = 1, N
8215 \&           B(I) = A(I) + I
8216 \&        ENDDO
8217 .Ve
8218 .Sp
8219 and the initialization loop is transformed into a call to memset zero.
8220 .IP "\fB\-floop\-interchange\fR" 4
8221 .IX Item "-floop-interchange"
8222 Perform loop interchange outside of graphite.  This flag can improve cache
8223 performance on loop nest and allow further loop optimizations, like
8224 vectorization, to take place.  For example, the loop
8225 .Sp
8226 .Vb 4
8227 \&        for (int i = 0; i < N; i++)
8228 \&          for (int j = 0; j < N; j++)
8229 \&            for (int k = 0; k < N; k++)
8230 \&              c[i][j] = c[i][j] + a[i][k]*b[k][j];
8231 .Ve
8232 .Sp
8233 is transformed to
8234 .Sp
8235 .Vb 4
8236 \&        for (int i = 0; i < N; i++)
8237 \&          for (int k = 0; k < N; k++)
8238 \&            for (int j = 0; j < N; j++)
8239 \&              c[i][j] = c[i][j] + a[i][k]*b[k][j];
8240 .Ve
8241 .Sp
8242 This flag is enabled by default at \fB\-O3\fR.
8243 .IP "\fB\-floop\-unroll\-and\-jam\fR" 4
8244 .IX Item "-floop-unroll-and-jam"
8245 Apply unroll and jam transformations on feasible loops.  In a loop
8246 nest this unrolls the outer loop by some factor and fuses the resulting
8247 multiple inner loops.  This flag is enabled by default at \fB\-O3\fR.
8248 .IP "\fB\-ftree\-loop\-im\fR" 4
8249 .IX Item "-ftree-loop-im"
8250 Perform loop invariant motion on trees.  This pass moves only invariants that
8251 are hard to handle at \s-1RTL\s0 level (function calls, operations that expand to
8252 nontrivial sequences of insns).  With \fB\-funswitch\-loops\fR it also moves
8253 operands of conditions that are invariant out of the loop, so that we can use
8254 just trivial invariantness analysis in loop unswitching.  The pass also includes
8255 store motion.
8256 .IP "\fB\-ftree\-loop\-ivcanon\fR" 4
8257 .IX Item "-ftree-loop-ivcanon"
8258 Create a canonical counter for number of iterations in loops for which
8259 determining number of iterations requires complicated analysis.  Later
8260 optimizations then may determine the number easily.  Useful especially
8261 in connection with unrolling.
8262 .IP "\fB\-fivopts\fR" 4
8263 .IX Item "-fivopts"
8264 Perform induction variable optimizations (strength reduction, induction
8265 variable merging and induction variable elimination) on trees.
8266 .IP "\fB\-ftree\-parallelize\-loops=n\fR" 4
8267 .IX Item "-ftree-parallelize-loops=n"
8268 Parallelize loops, i.e., split their iteration space to run in n threads.
8269 This is only possible for loops whose iterations are independent
8270 and can be arbitrarily reordered.  The optimization is only
8271 profitable on multiprocessor machines, for loops that are CPU-intensive,
8272 rather than constrained e.g. by memory bandwidth.  This option
8273 implies \fB\-pthread\fR, and thus is only supported on targets
8274 that have support for \fB\-pthread\fR.
8275 .IP "\fB\-ftree\-pta\fR" 4
8276 .IX Item "-ftree-pta"
8277 Perform function-local points-to analysis on trees.  This flag is
8278 enabled by default at \fB\-O\fR and higher.
8279 .IP "\fB\-ftree\-sra\fR" 4
8280 .IX Item "-ftree-sra"
8281 Perform scalar replacement of aggregates.  This pass replaces structure
8282 references with scalars to prevent committing structures to memory too
8283 early.  This flag is enabled by default at \fB\-O\fR and higher.
8284 .IP "\fB\-fstore\-merging\fR" 4
8285 .IX Item "-fstore-merging"
8286 Perform merging of narrow stores to consecutive memory addresses.  This pass
8287 merges contiguous stores of immediate values narrower than a word into fewer
8288 wider stores to reduce the number of instructions.  This is enabled by default
8289 at \fB\-O2\fR and higher as well as \fB\-Os\fR.
8290 .IP "\fB\-ftree\-ter\fR" 4
8291 .IX Item "-ftree-ter"
8292 Perform temporary expression replacement during the \s-1SSA\-\s0>normal phase.  Single
8293 use/single def temporaries are replaced at their use location with their
8294 defining expression.  This results in non-GIMPLE code, but gives the expanders
8295 much more complex trees to work on resulting in better \s-1RTL\s0 generation.  This is
8296 enabled by default at \fB\-O\fR and higher.
8297 .IP "\fB\-ftree\-slsr\fR" 4
8298 .IX Item "-ftree-slsr"
8299 Perform straight-line strength reduction on trees.  This recognizes related
8300 expressions involving multiplications and replaces them by less expensive
8301 calculations when possible.  This is enabled by default at \fB\-O\fR and
8302 higher.
8303 .IP "\fB\-ftree\-vectorize\fR" 4
8304 .IX Item "-ftree-vectorize"
8305 Perform vectorization on trees. This flag enables \fB\-ftree\-loop\-vectorize\fR
8306 and \fB\-ftree\-slp\-vectorize\fR if not explicitly specified.
8307 .IP "\fB\-ftree\-loop\-vectorize\fR" 4
8308 .IX Item "-ftree-loop-vectorize"
8309 Perform loop vectorization on trees. This flag is enabled by default at
8310 \&\fB\-O3\fR and when \fB\-ftree\-vectorize\fR is enabled.
8311 .IP "\fB\-ftree\-slp\-vectorize\fR" 4
8312 .IX Item "-ftree-slp-vectorize"
8313 Perform basic block vectorization on trees. This flag is enabled by default at
8314 \&\fB\-O3\fR and when \fB\-ftree\-vectorize\fR is enabled.
8315 .IP "\fB\-fvect\-cost\-model=\fR\fImodel\fR" 4
8316 .IX Item "-fvect-cost-model=model"
8317 Alter the cost model used for vectorization.  The \fImodel\fR argument
8318 should be one of \fBunlimited\fR, \fBdynamic\fR or \fBcheap\fR.
8319 With the \fBunlimited\fR model the vectorized code-path is assumed
8320 to be profitable while with the \fBdynamic\fR model a runtime check
8321 guards the vectorized code-path to enable it only for iteration
8322 counts that will likely execute faster than when executing the original
8323 scalar loop.  The \fBcheap\fR model disables vectorization of
8324 loops where doing so would be cost prohibitive for example due to
8325 required runtime checks for data dependence or alignment but otherwise
8326 is equal to the \fBdynamic\fR model.
8327 The default cost model depends on other optimization flags and is
8328 either \fBdynamic\fR or \fBcheap\fR.
8329 .IP "\fB\-fsimd\-cost\-model=\fR\fImodel\fR" 4
8330 .IX Item "-fsimd-cost-model=model"
8331 Alter the cost model used for vectorization of loops marked with the OpenMP
8332 simd directive.  The \fImodel\fR argument should be one of
8333 \&\fBunlimited\fR, \fBdynamic\fR, \fBcheap\fR.  All values of \fImodel\fR
8334 have the same meaning as described in \fB\-fvect\-cost\-model\fR and by
8335 default a cost model defined with \fB\-fvect\-cost\-model\fR is used.
8336 .IP "\fB\-ftree\-vrp\fR" 4
8337 .IX Item "-ftree-vrp"
8338 Perform Value Range Propagation on trees.  This is similar to the
8339 constant propagation pass, but instead of values, ranges of values are
8340 propagated.  This allows the optimizers to remove unnecessary range
8341 checks like array bound checks and null pointer checks.  This is
8342 enabled by default at \fB\-O2\fR and higher.  Null pointer check
8343 elimination is only done if \fB\-fdelete\-null\-pointer\-checks\fR is
8344 enabled.
8345 .IP "\fB\-fsplit\-paths\fR" 4
8346 .IX Item "-fsplit-paths"
8347 Split paths leading to loop backedges.  This can improve dead code
8348 elimination and common subexpression elimination.  This is enabled by
8349 default at \fB\-O2\fR and above.
8350 .IP "\fB\-fsplit\-ivs\-in\-unroller\fR" 4
8351 .IX Item "-fsplit-ivs-in-unroller"
8352 Enables expression of values of induction variables in later iterations
8353 of the unrolled loop using the value in the first iteration.  This breaks
8354 long dependency chains, thus improving efficiency of the scheduling passes.
8355 .Sp
8356 A combination of \fB\-fweb\fR and \s-1CSE\s0 is often sufficient to obtain the
8357 same effect.  However, that is not reliable in cases where the loop body
8358 is more complicated than a single basic block.  It also does not work at all
8359 on some architectures due to restrictions in the \s-1CSE\s0 pass.
8360 .Sp
8361 This optimization is enabled by default.
8362 .IP "\fB\-fvariable\-expansion\-in\-unroller\fR" 4
8363 .IX Item "-fvariable-expansion-in-unroller"
8364 With this option, the compiler creates multiple copies of some
8365 local variables when unrolling a loop, which can result in superior code.
8366 .IP "\fB\-fpartial\-inlining\fR" 4
8367 .IX Item "-fpartial-inlining"
8368 Inline parts of functions.  This option has any effect only
8369 when inlining itself is turned on by the \fB\-finline\-functions\fR
8370 or \fB\-finline\-small\-functions\fR options.
8371 .Sp
8372 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8373 .IP "\fB\-fpredictive\-commoning\fR" 4
8374 .IX Item "-fpredictive-commoning"
8375 Perform predictive commoning optimization, i.e., reusing computations
8376 (especially memory loads and stores) performed in previous
8377 iterations of loops.
8378 .Sp
8379 This option is enabled at level \fB\-O3\fR.
8380 .IP "\fB\-fprefetch\-loop\-arrays\fR" 4
8381 .IX Item "-fprefetch-loop-arrays"
8382 If supported by the target machine, generate instructions to prefetch
8383 memory to improve the performance of loops that access large arrays.
8384 .Sp
8385 This option may generate better or worse code; results are highly
8386 dependent on the structure of loops within the source code.
8387 .Sp
8388 Disabled at level \fB\-Os\fR.
8389 .IP "\fB\-fno\-printf\-return\-value\fR" 4
8390 .IX Item "-fno-printf-return-value"
8391 Do not substitute constants for known return value of formatted output
8392 functions such as \f(CW\*(C`sprintf\*(C'\fR, \f(CW\*(C`snprintf\*(C'\fR, \f(CW\*(C`vsprintf\*(C'\fR, and
8393 \&\f(CW\*(C`vsnprintf\*(C'\fR (but not \f(CW\*(C`printf\*(C'\fR of \f(CW\*(C`fprintf\*(C'\fR).  This
8394 transformation allows \s-1GCC\s0 to optimize or even eliminate branches based
8395 on the known return value of these functions called with arguments that
8396 are either constant, or whose values are known to be in a range that
8397 makes determining the exact return value possible.  For example, when
8398 \&\fB\-fprintf\-return\-value\fR is in effect, both the branch and the
8399 body of the \f(CW\*(C`if\*(C'\fR statement (but not the call to \f(CW\*(C`snprint\*(C'\fR)
8400 can be optimized away when \f(CW\*(C`i\*(C'\fR is a 32\-bit or smaller integer
8401 because the return value is guaranteed to be at most 8.
8402 .Sp
8403 .Vb 3
8404 \&        char buf[9];
8405 \&        if (snprintf (buf, "%08x", i) >= sizeof buf)
8406 \&          ...
8407 .Ve
8408 .Sp
8409 The \fB\-fprintf\-return\-value\fR option relies on other optimizations
8410 and yields best results with \fB\-O2\fR and above.  It works in tandem
8411 with the \fB\-Wformat\-overflow\fR and \fB\-Wformat\-truncation\fR
8412 options.  The \fB\-fprintf\-return\-value\fR option is enabled by default.
8413 .IP "\fB\-fno\-peephole\fR" 4
8414 .IX Item "-fno-peephole"
8415 .PD 0
8416 .IP "\fB\-fno\-peephole2\fR" 4
8417 .IX Item "-fno-peephole2"
8418 .PD
8419 Disable any machine-specific peephole optimizations.  The difference
8420 between \fB\-fno\-peephole\fR and \fB\-fno\-peephole2\fR is in how they
8421 are implemented in the compiler; some targets use one, some use the
8422 other, a few use both.
8423 .Sp
8424 \&\fB\-fpeephole\fR is enabled by default.
8425 \&\fB\-fpeephole2\fR enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8426 .IP "\fB\-fno\-guess\-branch\-probability\fR" 4
8427 .IX Item "-fno-guess-branch-probability"
8428 Do not guess branch probabilities using heuristics.
8429 .Sp
8430 \&\s-1GCC\s0 uses heuristics to guess branch probabilities if they are
8431 not provided by profiling feedback (\fB\-fprofile\-arcs\fR).  These
8432 heuristics are based on the control flow graph.  If some branch probabilities
8433 are specified by \f(CW\*(C`_\|_builtin_expect\*(C'\fR, then the heuristics are
8434 used to guess branch probabilities for the rest of the control flow graph,
8435 taking the \f(CW\*(C`_\|_builtin_expect\*(C'\fR info into account.  The interactions
8436 between the heuristics and \f(CW\*(C`_\|_builtin_expect\*(C'\fR can be complex, and in
8437 some cases, it may be useful to disable the heuristics so that the effects
8438 of \f(CW\*(C`_\|_builtin_expect\*(C'\fR are easier to understand.
8439 .Sp
8440 The default is \fB\-fguess\-branch\-probability\fR at levels
8441 \&\fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8442 .IP "\fB\-freorder\-blocks\fR" 4
8443 .IX Item "-freorder-blocks"
8444 Reorder basic blocks in the compiled function in order to reduce number of
8445 taken branches and improve code locality.
8446 .Sp
8447 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8448 .IP "\fB\-freorder\-blocks\-algorithm=\fR\fIalgorithm\fR" 4
8449 .IX Item "-freorder-blocks-algorithm=algorithm"
8450 Use the specified algorithm for basic block reordering.  The
8451 \&\fIalgorithm\fR argument can be \fBsimple\fR, which does not increase
8452 code size (except sometimes due to secondary effects like alignment),
8453 or \fBstc\fR, the \*(L"software trace cache\*(R" algorithm, which tries to
8454 put all often executed code together, minimizing the number of branches
8455 executed by making extra copies of code.
8456 .Sp
8457 The default is \fBsimple\fR at levels \fB\-O\fR, \fB\-Os\fR, and
8458 \&\fBstc\fR at levels \fB\-O2\fR, \fB\-O3\fR.
8459 .IP "\fB\-freorder\-blocks\-and\-partition\fR" 4
8460 .IX Item "-freorder-blocks-and-partition"
8461 In addition to reordering basic blocks in the compiled function, in order
8462 to reduce number of taken branches, partitions hot and cold basic blocks
8463 into separate sections of the assembly and \fI.o\fR files, to improve
8464 paging and cache locality performance.
8465 .Sp
8466 This optimization is automatically turned off in the presence of
8467 exception handling or unwind tables (on targets using setjump/longjump or target specific scheme), for linkonce sections, for functions with a user-defined
8468 section attribute and on any architecture that does not support named
8469 sections.  When \fB\-fsplit\-stack\fR is used this option is not
8470 enabled by default (to avoid linker errors), but may be enabled
8471 explicitly (if using a working linker).
8472 .Sp
8473 Enabled for x86 at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8474 .IP "\fB\-freorder\-functions\fR" 4
8475 .IX Item "-freorder-functions"
8476 Reorder functions in the object file in order to
8477 improve code locality.  This is implemented by using special
8478 subsections \f(CW\*(C`.text.hot\*(C'\fR for most frequently executed functions and
8479 \&\f(CW\*(C`.text.unlikely\*(C'\fR for unlikely executed functions.  Reordering is done by
8480 the linker so object file format must support named sections and linker must
8481 place them in a reasonable way.
8482 .Sp
8483 Also profile feedback must be available to make this option effective.  See
8484 \&\fB\-fprofile\-arcs\fR for details.
8485 .Sp
8486 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8487 .IP "\fB\-fstrict\-aliasing\fR" 4
8488 .IX Item "-fstrict-aliasing"
8489 Allow the compiler to assume the strictest aliasing rules applicable to
8490 the language being compiled.  For C (and \*(C+), this activates
8491 optimizations based on the type of expressions.  In particular, an
8492 object of one type is assumed never to reside at the same address as an
8493 object of a different type, unless the types are almost the same.  For
8494 example, an \f(CW\*(C`unsigned int\*(C'\fR can alias an \f(CW\*(C`int\*(C'\fR, but not a
8495 \&\f(CW\*(C`void*\*(C'\fR or a \f(CW\*(C`double\*(C'\fR.  A character type may alias any other
8496 type.
8497 .Sp
8498 Pay special attention to code like this:
8499 .Sp
8500 .Vb 4
8501 \&        union a_union {
8502 \&          int i;
8503 \&          double d;
8504 \&        };
8505 \&        
8506 \&        int f() {
8507 \&          union a_union t;
8508 \&          t.d = 3.0;
8509 \&          return t.i;
8510 \&        }
8511 .Ve
8512 .Sp
8513 The practice of reading from a different union member than the one most
8514 recently written to (called \*(L"type-punning\*(R") is common.  Even with
8515 \&\fB\-fstrict\-aliasing\fR, type-punning is allowed, provided the memory
8516 is accessed through the union type.  So, the code above works as
8517 expected.    However, this code might not:
8518 .Sp
8519 .Vb 7
8520 \&        int f() {
8521 \&          union a_union t;
8522 \&          int* ip;
8523 \&          t.d = 3.0;
8524 \&          ip = &t.i;
8525 \&          return *ip;
8526 \&        }
8527 .Ve
8528 .Sp
8529 Similarly, access by taking the address, casting the resulting pointer
8530 and dereferencing the result has undefined behavior, even if the cast
8531 uses a union type, e.g.:
8532 .Sp
8533 .Vb 4
8534 \&        int f() {
8535 \&          double d = 3.0;
8536 \&          return ((union a_union *) &d)\->i;
8537 \&        }
8538 .Ve
8539 .Sp
8540 The \fB\-fstrict\-aliasing\fR option is enabled at levels
8541 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8542 .IP "\fB\-falign\-functions\fR" 4
8543 .IX Item "-falign-functions"
8544 .PD 0
8545 .IP "\fB\-falign\-functions=\fR\fIn\fR" 4
8546 .IX Item "-falign-functions=n"
8547 .PD
8548 Align the start of functions to the next power-of-two greater than
8549 \&\fIn\fR, skipping up to \fIn\fR bytes.  For instance,
8550 \&\fB\-falign\-functions=32\fR aligns functions to the next 32\-byte
8551 boundary, but \fB\-falign\-functions=24\fR aligns to the next
8552 32\-byte boundary only if this can be done by skipping 23 bytes or less.
8553 .Sp
8554 \&\fB\-fno\-align\-functions\fR and \fB\-falign\-functions=1\fR are
8555 equivalent and mean that functions are not aligned.
8556 .Sp
8557 Some assemblers only support this flag when \fIn\fR is a power of two;
8558 in that case, it is rounded up.
8559 .Sp
8560 If \fIn\fR is not specified or is zero, use a machine-dependent default.
8561 The maximum allowed \fIn\fR option value is 65536.
8562 .Sp
8563 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8564 .IP "\fB\-flimit\-function\-alignment\fR" 4
8565 .IX Item "-flimit-function-alignment"
8566 If this option is enabled, the compiler tries to avoid unnecessarily
8567 overaligning functions. It attempts to instruct the assembler to align
8568 by the amount specified by \fB\-falign\-functions\fR, but not to
8569 skip more bytes than the size of the function.
8570 .IP "\fB\-falign\-labels\fR" 4
8571 .IX Item "-falign-labels"
8572 .PD 0
8573 .IP "\fB\-falign\-labels=\fR\fIn\fR" 4
8574 .IX Item "-falign-labels=n"
8575 .PD
8576 Align all branch targets to a power-of-two boundary, skipping up to
8577 \&\fIn\fR bytes like \fB\-falign\-functions\fR.  This option can easily
8578 make code slower, because it must insert dummy operations for when the
8579 branch target is reached in the usual flow of the code.
8580 .Sp
8581 \&\fB\-fno\-align\-labels\fR and \fB\-falign\-labels=1\fR are
8582 equivalent and mean that labels are not aligned.
8583 .Sp
8584 If \fB\-falign\-loops\fR or \fB\-falign\-jumps\fR are applicable and
8585 are greater than this value, then their values are used instead.
8586 .Sp
8587 If \fIn\fR is not specified or is zero, use a machine-dependent default
8588 which is very likely to be \fB1\fR, meaning no alignment.
8589 The maximum allowed \fIn\fR option value is 65536.
8590 .Sp
8591 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8592 .IP "\fB\-falign\-loops\fR" 4
8593 .IX Item "-falign-loops"
8594 .PD 0
8595 .IP "\fB\-falign\-loops=\fR\fIn\fR" 4
8596 .IX Item "-falign-loops=n"
8597 .PD
8598 Align loops to a power-of-two boundary, skipping up to \fIn\fR bytes
8599 like \fB\-falign\-functions\fR.  If the loops are
8600 executed many times, this makes up for any execution of the dummy
8601 operations.
8602 .Sp
8603 \&\fB\-fno\-align\-loops\fR and \fB\-falign\-loops=1\fR are
8604 equivalent and mean that loops are not aligned.
8605 The maximum allowed \fIn\fR option value is 65536.
8606 .Sp
8607 If \fIn\fR is not specified or is zero, use a machine-dependent default.
8608 .Sp
8609 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8610 .IP "\fB\-falign\-jumps\fR" 4
8611 .IX Item "-falign-jumps"
8612 .PD 0
8613 .IP "\fB\-falign\-jumps=\fR\fIn\fR" 4
8614 .IX Item "-falign-jumps=n"
8615 .PD
8616 Align branch targets to a power-of-two boundary, for branch targets
8617 where the targets can only be reached by jumping, skipping up to \fIn\fR
8618 bytes like \fB\-falign\-functions\fR.  In this case, no dummy operations
8619 need be executed.
8620 .Sp
8621 \&\fB\-fno\-align\-jumps\fR and \fB\-falign\-jumps=1\fR are
8622 equivalent and mean that loops are not aligned.
8623 .Sp
8624 If \fIn\fR is not specified or is zero, use a machine-dependent default.
8625 The maximum allowed \fIn\fR option value is 65536.
8626 .Sp
8627 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8628 .IP "\fB\-funit\-at\-a\-time\fR" 4
8629 .IX Item "-funit-at-a-time"
8630 This option is left for compatibility reasons. \fB\-funit\-at\-a\-time\fR
8631 has no effect, while \fB\-fno\-unit\-at\-a\-time\fR implies
8632 \&\fB\-fno\-toplevel\-reorder\fR and \fB\-fno\-section\-anchors\fR.
8633 .Sp
8634 Enabled by default.
8635 .IP "\fB\-fno\-toplevel\-reorder\fR" 4
8636 .IX Item "-fno-toplevel-reorder"
8637 Do not reorder top-level functions, variables, and \f(CW\*(C`asm\*(C'\fR
8638 statements.  Output them in the same order that they appear in the
8639 input file.  When this option is used, unreferenced static variables
8640 are not removed.  This option is intended to support existing code
8641 that relies on a particular ordering.  For new code, it is better to
8642 use attributes when possible.
8643 .Sp
8644 Enabled at level \fB\-O0\fR.  When disabled explicitly, it also implies
8645 \&\fB\-fno\-section\-anchors\fR, which is otherwise enabled at \fB\-O0\fR on some
8646 targets.
8647 .IP "\fB\-fweb\fR" 4
8648 .IX Item "-fweb"
8649 Constructs webs as commonly used for register allocation purposes and assign
8650 each web individual pseudo register.  This allows the register allocation pass
8651 to operate on pseudos directly, but also strengthens several other optimization
8652 passes, such as \s-1CSE,\s0 loop optimizer and trivial dead code remover.  It can,
8653 however, make debugging impossible, since variables no longer stay in a
8654 \&\*(L"home register\*(R".
8655 .Sp
8656 Enabled by default with \fB\-funroll\-loops\fR.
8657 .IP "\fB\-fwhole\-program\fR" 4
8658 .IX Item "-fwhole-program"
8659 Assume that the current compilation unit represents the whole program being
8660 compiled.  All public functions and variables with the exception of \f(CW\*(C`main\*(C'\fR
8661 and those merged by attribute \f(CW\*(C`externally_visible\*(C'\fR become static functions
8662 and in effect are optimized more aggressively by interprocedural optimizers.
8663 .Sp
8664 This option should not be used in combination with \fB\-flto\fR.
8665 Instead relying on a linker plugin should provide safer and more precise
8666 information.
8667 .IP "\fB\-flto[=\fR\fIn\fR\fB]\fR" 4
8668 .IX Item "-flto[=n]"
8669 This option runs the standard link-time optimizer.  When invoked
8670 with source code, it generates \s-1GIMPLE\s0 (one of \s-1GCC\s0's internal
8671 representations) and writes it to special \s-1ELF\s0 sections in the object
8672 file.  When the object files are linked together, all the function
8673 bodies are read from these \s-1ELF\s0 sections and instantiated as if they
8674 had been part of the same translation unit.
8675 .Sp
8676 To use the link-time optimizer, \fB\-flto\fR and optimization
8677 options should be specified at compile time and during the final link.
8678 It is recommended that you compile all the files participating in the
8679 same link with the same options and also specify those options at
8680 link time.  
8681 For example:
8682 .Sp
8683 .Vb 3
8684 \&        gcc \-c \-O2 \-flto foo.c
8685 \&        gcc \-c \-O2 \-flto bar.c
8686 \&        gcc \-o myprog \-flto \-O2 foo.o bar.o
8687 .Ve
8688 .Sp
8689 The first two invocations to \s-1GCC\s0 save a bytecode representation
8690 of \s-1GIMPLE\s0 into special \s-1ELF\s0 sections inside \fIfoo.o\fR and
8691 \&\fIbar.o\fR.  The final invocation reads the \s-1GIMPLE\s0 bytecode from
8692 \&\fIfoo.o\fR and \fIbar.o\fR, merges the two files into a single
8693 internal image, and compiles the result as usual.  Since both
8694 \&\fIfoo.o\fR and \fIbar.o\fR are merged into a single image, this
8695 causes all the interprocedural analyses and optimizations in \s-1GCC\s0 to
8696 work across the two files as if they were a single one.  This means,
8697 for example, that the inliner is able to inline functions in
8698 \&\fIbar.o\fR into functions in \fIfoo.o\fR and vice-versa.
8699 .Sp
8700 Another (simpler) way to enable link-time optimization is:
8701 .Sp
8702 .Vb 1
8703 \&        gcc \-o myprog \-flto \-O2 foo.c bar.c
8704 .Ve
8705 .Sp
8706 The above generates bytecode for \fIfoo.c\fR and \fIbar.c\fR,
8707 merges them together into a single \s-1GIMPLE\s0 representation and optimizes
8708 them as usual to produce \fImyprog\fR.
8709 .Sp
8710 The only important thing to keep in mind is that to enable link-time
8711 optimizations you need to use the \s-1GCC\s0 driver to perform the link step.
8712 \&\s-1GCC\s0 then automatically performs link-time optimization if any of the
8713 objects involved were compiled with the \fB\-flto\fR command-line option.  
8714 You generally
8715 should specify the optimization options to be used for link-time
8716 optimization though \s-1GCC\s0 tries to be clever at guessing an
8717 optimization level to use from the options used at compile time
8718 if you fail to specify one at link time.  You can always override
8719 the automatic decision to do link-time optimization
8720 by passing \fB\-fno\-lto\fR to the link command.
8721 .Sp
8722 To make whole program optimization effective, it is necessary to make
8723 certain whole program assumptions.  The compiler needs to know
8724 what functions and variables can be accessed by libraries and runtime
8725 outside of the link-time optimized unit.  When supported by the linker,
8726 the linker plugin (see \fB\-fuse\-linker\-plugin\fR) passes information
8727 to the compiler about used and externally visible symbols.  When
8728 the linker plugin is not available, \fB\-fwhole\-program\fR should be
8729 used to allow the compiler to make these assumptions, which leads
8730 to more aggressive optimization decisions.
8731 .Sp
8732 When \fB\-fuse\-linker\-plugin\fR is not enabled, when a file is
8733 compiled with \fB\-flto\fR, the generated object file is larger than
8734 a regular object file because it contains \s-1GIMPLE\s0 bytecodes and the usual
8735 final code (see \fB\-ffat\-lto\-objects\fR.  This means that
8736 object files with \s-1LTO\s0 information can be linked as normal object
8737 files; if \fB\-fno\-lto\fR is passed to the linker, no
8738 interprocedural optimizations are applied.  Note that when
8739 \&\fB\-fno\-fat\-lto\-objects\fR is enabled the compile stage is faster
8740 but you cannot perform a regular, non-LTO link on them.
8741 .Sp
8742 Additionally, the optimization flags used to compile individual files
8743 are not necessarily related to those used at link time.  For instance,
8744 .Sp
8745 .Vb 3
8746 \&        gcc \-c \-O0 \-ffat\-lto\-objects \-flto foo.c
8747 \&        gcc \-c \-O0 \-ffat\-lto\-objects \-flto bar.c
8748 \&        gcc \-o myprog \-O3 foo.o bar.o
8749 .Ve
8750 .Sp
8751 This produces individual object files with unoptimized assembler
8752 code, but the resulting binary \fImyprog\fR is optimized at
8753 \&\fB\-O3\fR.  If, instead, the final binary is generated with
8754 \&\fB\-fno\-lto\fR, then \fImyprog\fR is not optimized.
8755 .Sp
8756 When producing the final binary, \s-1GCC\s0 only
8757 applies link-time optimizations to those files that contain bytecode.
8758 Therefore, you can mix and match object files and libraries with
8759 \&\s-1GIMPLE\s0 bytecodes and final object code.  \s-1GCC\s0 automatically selects
8760 which files to optimize in \s-1LTO\s0 mode and which files to link without
8761 further processing.
8762 .Sp
8763 There are some code generation flags preserved by \s-1GCC\s0 when
8764 generating bytecodes, as they need to be used during the final link
8765 stage.  Generally options specified at link time override those
8766 specified at compile time.
8767 .Sp
8768 If you do not specify an optimization level option \fB\-O\fR at
8769 link time, then \s-1GCC\s0 uses the highest optimization level 
8770 used when compiling the object files.
8771 .Sp
8772 Currently, the following options and their settings are taken from
8773 the first object file that explicitly specifies them: 
8774 \&\fB\-fPIC\fR, \fB\-fpic\fR, \fB\-fpie\fR, \fB\-fcommon\fR,
8775 \&\fB\-fexceptions\fR, \fB\-fnon\-call\-exceptions\fR, \fB\-fgnu\-tm\fR
8776 and all the \fB\-m\fR target flags.
8777 .Sp
8778 Certain ABI-changing flags are required to match in all compilation units,
8779 and trying to override this at link time with a conflicting value
8780 is ignored.  This includes options such as \fB\-freg\-struct\-return\fR
8781 and \fB\-fpcc\-struct\-return\fR.
8782 .Sp
8783 Other options such as \fB\-ffp\-contract\fR, \fB\-fno\-strict\-overflow\fR,
8784 \&\fB\-fwrapv\fR, \fB\-fno\-trapv\fR or \fB\-fno\-strict\-aliasing\fR
8785 are passed through to the link stage and merged conservatively for
8786 conflicting translation units.  Specifically
8787 \&\fB\-fno\-strict\-overflow\fR, \fB\-fwrapv\fR and \fB\-fno\-trapv\fR take
8788 precedence; and for example \fB\-ffp\-contract=off\fR takes precedence
8789 over \fB\-ffp\-contract=fast\fR.  You can override them at link time.
8790 .Sp
8791 If \s-1LTO\s0 encounters objects with C linkage declared with incompatible
8792 types in separate translation units to be linked together (undefined
8793 behavior according to \s-1ISO C99 6.2.7\s0), a non-fatal diagnostic may be
8794 issued.  The behavior is still undefined at run time.  Similar
8795 diagnostics may be raised for other languages.
8796 .Sp
8797 Another feature of \s-1LTO\s0 is that it is possible to apply interprocedural
8798 optimizations on files written in different languages:
8799 .Sp
8800 .Vb 4
8801 \&        gcc \-c \-flto foo.c
8802 \&        g++ \-c \-flto bar.cc
8803 \&        gfortran \-c \-flto baz.f90
8804 \&        g++ \-o myprog \-flto \-O3 foo.o bar.o baz.o \-lgfortran
8805 .Ve
8806 .Sp
8807 Notice that the final link is done with \fBg++\fR to get the \*(C+
8808 runtime libraries and \fB\-lgfortran\fR is added to get the Fortran
8809 runtime libraries.  In general, when mixing languages in \s-1LTO\s0 mode, you
8810 should use the same link command options as when mixing languages in a
8811 regular (non-LTO) compilation.
8812 .Sp
8813 If object files containing \s-1GIMPLE\s0 bytecode are stored in a library archive, say
8814 \&\fIlibfoo.a\fR, it is possible to extract and use them in an \s-1LTO\s0 link if you
8815 are using a linker with plugin support.  To create static libraries suitable
8816 for \s-1LTO,\s0 use \fBgcc-ar\fR and \fBgcc-ranlib\fR instead of \fBar\fR
8817 and \fBranlib\fR; 
8818 to show the symbols of object files with \s-1GIMPLE\s0 bytecode, use
8819 \&\fBgcc-nm\fR.  Those commands require that \fBar\fR, \fBranlib\fR
8820 and \fBnm\fR have been compiled with plugin support.  At link time, use the
8821 flag \fB\-fuse\-linker\-plugin\fR to ensure that the library participates in
8822 the \s-1LTO\s0 optimization process:
8823 .Sp
8824 .Vb 1
8825 \&        gcc \-o myprog \-O2 \-flto \-fuse\-linker\-plugin a.o b.o \-lfoo
8826 .Ve
8827 .Sp
8828 With the linker plugin enabled, the linker extracts the needed
8829 \&\s-1GIMPLE\s0 files from \fIlibfoo.a\fR and passes them on to the running \s-1GCC\s0
8830 to make them part of the aggregated \s-1GIMPLE\s0 image to be optimized.
8831 .Sp
8832 If you are not using a linker with plugin support and/or do not
8833 enable the linker plugin, then the objects inside \fIlibfoo.a\fR
8834 are extracted and linked as usual, but they do not participate
8835 in the \s-1LTO\s0 optimization process.  In order to make a static library suitable
8836 for both \s-1LTO\s0 optimization and usual linkage, compile its object files with
8837 \&\fB\-flto\fR \fB\-ffat\-lto\-objects\fR.
8838 .Sp
8839 Link-time optimizations do not require the presence of the whole program to
8840 operate.  If the program does not require any symbols to be exported, it is
8841 possible to combine \fB\-flto\fR and \fB\-fwhole\-program\fR to allow
8842 the interprocedural optimizers to use more aggressive assumptions which may
8843 lead to improved optimization opportunities.
8844 Use of \fB\-fwhole\-program\fR is not needed when linker plugin is
8845 active (see \fB\-fuse\-linker\-plugin\fR).
8846 .Sp
8847 The current implementation of \s-1LTO\s0 makes no
8848 attempt to generate bytecode that is portable between different
8849 types of hosts.  The bytecode files are versioned and there is a
8850 strict version check, so bytecode files generated in one version of
8851 \&\s-1GCC\s0 do not work with an older or newer version of \s-1GCC.\s0
8852 .Sp
8853 Link-time optimization does not work well with generation of debugging
8854 information on systems other than those using a combination of \s-1ELF\s0 and
8855 \&\s-1DWARF.\s0
8856 .Sp
8857 If you specify the optional \fIn\fR, the optimization and code
8858 generation done at link time is executed in parallel using \fIn\fR
8859 parallel jobs by utilizing an installed \fBmake\fR program.  The
8860 environment variable \fB\s-1MAKE\s0\fR may be used to override the program
8861 used.  The default value for \fIn\fR is 1.
8862 .Sp
8863 You can also specify \fB\-flto=jobserver\fR to use \s-1GNU\s0 make's
8864 job server mode to determine the number of parallel jobs. This
8865 is useful when the Makefile calling \s-1GCC\s0 is already executing in parallel.
8866 You must prepend a \fB+\fR to the command recipe in the parent Makefile
8867 for this to work.  This option likely only works if \fB\s-1MAKE\s0\fR is
8868 \&\s-1GNU\s0 make.
8869 .IP "\fB\-flto\-partition=\fR\fIalg\fR" 4
8870 .IX Item "-flto-partition=alg"
8871 Specify the partitioning algorithm used by the link-time optimizer.
8872 The value is either \fB1to1\fR to specify a partitioning mirroring
8873 the original source files or \fBbalanced\fR to specify partitioning
8874 into equally sized chunks (whenever possible) or \fBmax\fR to create
8875 new partition for every symbol where possible.  Specifying \fBnone\fR
8876 as an algorithm disables partitioning and streaming completely. 
8877 The default value is \fBbalanced\fR. While \fB1to1\fR can be used
8878 as an workaround for various code ordering issues, the \fBmax\fR
8879 partitioning is intended for internal testing only.
8880 The value \fBone\fR specifies that exactly one partition should be
8881 used while the value \fBnone\fR bypasses partitioning and executes
8882 the link-time optimization step directly from the \s-1WPA\s0 phase.
8883 .IP "\fB\-flto\-odr\-type\-merging\fR" 4
8884 .IX Item "-flto-odr-type-merging"
8885 Enable streaming of mangled types names of \*(C+ types and their unification
8886 at link time.  This increases size of \s-1LTO\s0 object files, but enables
8887 diagnostics about One Definition Rule violations.
8888 .IP "\fB\-flto\-compression\-level=\fR\fIn\fR" 4
8889 .IX Item "-flto-compression-level=n"
8890 This option specifies the level of compression used for intermediate
8891 language written to \s-1LTO\s0 object files, and is only meaningful in
8892 conjunction with \s-1LTO\s0 mode (\fB\-flto\fR).  Valid
8893 values are 0 (no compression) to 9 (maximum compression).  Values
8894 outside this range are clamped to either 0 or 9.  If the option is not
8895 given, a default balanced compression setting is used.
8896 .IP "\fB\-fuse\-linker\-plugin\fR" 4
8897 .IX Item "-fuse-linker-plugin"
8898 Enables the use of a linker plugin during link-time optimization.  This
8899 option relies on plugin support in the linker, which is available in gold
8900 or in \s-1GNU\s0 ld 2.21 or newer.
8901 .Sp
8902 This option enables the extraction of object files with \s-1GIMPLE\s0 bytecode out
8903 of library archives. This improves the quality of optimization by exposing
8904 more code to the link-time optimizer.  This information specifies what
8905 symbols can be accessed externally (by non-LTO object or during dynamic
8906 linking).  Resulting code quality improvements on binaries (and shared
8907 libraries that use hidden visibility) are similar to \fB\-fwhole\-program\fR.
8908 See \fB\-flto\fR for a description of the effect of this flag and how to
8909 use it.
8910 .Sp
8911 This option is enabled by default when \s-1LTO\s0 support in \s-1GCC\s0 is enabled
8912 and \s-1GCC\s0 was configured for use with
8913 a linker supporting plugins (\s-1GNU\s0 ld 2.21 or newer or gold).
8914 .IP "\fB\-ffat\-lto\-objects\fR" 4
8915 .IX Item "-ffat-lto-objects"
8916 Fat \s-1LTO\s0 objects are object files that contain both the intermediate language
8917 and the object code. This makes them usable for both \s-1LTO\s0 linking and normal
8918 linking. This option is effective only when compiling with \fB\-flto\fR
8919 and is ignored at link time.
8920 .Sp
8921 \&\fB\-fno\-fat\-lto\-objects\fR improves compilation time over plain \s-1LTO,\s0 but
8922 requires the complete toolchain to be aware of \s-1LTO.\s0 It requires a linker with
8923 linker plugin support for basic functionality.  Additionally,
8924 \&\fBnm\fR, \fBar\fR and \fBranlib\fR
8925 need to support linker plugins to allow a full-featured build environment
8926 (capable of building static libraries etc).  \s-1GCC\s0 provides the \fBgcc-ar\fR,
8927 \&\fBgcc-nm\fR, \fBgcc-ranlib\fR wrappers to pass the right options
8928 to these tools. With non fat \s-1LTO\s0 makefiles need to be modified to use them.
8929 .Sp
8930 Note that modern binutils provide plugin auto-load mechanism.
8931 Installing the linker plugin into \fI\f(CI$libdir\fI/bfd\-plugins\fR has the same
8932 effect as usage of the command wrappers (\fBgcc-ar\fR, \fBgcc-nm\fR and
8933 \&\fBgcc-ranlib\fR).
8934 .Sp
8935 The default is \fB\-fno\-fat\-lto\-objects\fR on targets with linker plugin
8936 support.
8937 .IP "\fB\-fcompare\-elim\fR" 4
8938 .IX Item "-fcompare-elim"
8939 After register allocation and post-register allocation instruction splitting,
8940 identify arithmetic instructions that compute processor flags similar to a
8941 comparison operation based on that arithmetic.  If possible, eliminate the
8942 explicit comparison operation.
8943 .Sp
8944 This pass only applies to certain targets that cannot explicitly represent
8945 the comparison operation before register allocation is complete.
8946 .Sp
8947 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8948 .IP "\fB\-fcprop\-registers\fR" 4
8949 .IX Item "-fcprop-registers"
8950 After register allocation and post-register allocation instruction splitting,
8951 perform a copy-propagation pass to try to reduce scheduling dependencies
8952 and occasionally eliminate the copy.
8953 .Sp
8954 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8955 .IP "\fB\-fprofile\-correction\fR" 4
8956 .IX Item "-fprofile-correction"
8957 Profiles collected using an instrumented binary for multi-threaded programs may
8958 be inconsistent due to missed counter updates. When this option is specified,
8959 \&\s-1GCC\s0 uses heuristics to correct or smooth out such inconsistencies. By
8960 default, \s-1GCC\s0 emits an error message when an inconsistent profile is detected.
8961 .IP "\fB\-fprofile\-use\fR" 4
8962 .IX Item "-fprofile-use"
8963 .PD 0
8964 .IP "\fB\-fprofile\-use=\fR\fIpath\fR" 4
8965 .IX Item "-fprofile-use=path"
8966 .PD
8967 Enable profile feedback-directed optimizations, 
8968 and the following optimizations
8969 which are generally profitable only with profile feedback available:
8970 \&\fB\-fbranch\-probabilities\fR, \fB\-fvpt\fR,
8971 \&\fB\-funroll\-loops\fR, \fB\-fpeel\-loops\fR, \fB\-ftracer\fR, 
8972 \&\fB\-ftree\-vectorize\fR, and \fBftree-loop-distribute-patterns\fR.
8973 .Sp
8974 Before you can use this option, you must first generate profiling information.
8975 .Sp
8976 By default, \s-1GCC\s0 emits an error message if the feedback profiles do not
8977 match the source code.  This error can be turned into a warning by using
8978 \&\fB\-Wcoverage\-mismatch\fR.  Note this may result in poorly optimized
8979 code.
8980 .Sp
8981 If \fIpath\fR is specified, \s-1GCC\s0 looks at the \fIpath\fR to find
8982 the profile feedback data files. See \fB\-fprofile\-dir\fR.
8983 .IP "\fB\-fauto\-profile\fR" 4
8984 .IX Item "-fauto-profile"
8985 .PD 0
8986 .IP "\fB\-fauto\-profile=\fR\fIpath\fR" 4
8987 .IX Item "-fauto-profile=path"
8988 .PD
8989 Enable sampling-based feedback-directed optimizations, 
8990 and the following optimizations
8991 which are generally profitable only with profile feedback available:
8992 \&\fB\-fbranch\-probabilities\fR, \fB\-fvpt\fR,
8993 \&\fB\-funroll\-loops\fR, \fB\-fpeel\-loops\fR, \fB\-ftracer\fR, 
8994 \&\fB\-ftree\-vectorize\fR,
8995 \&\fB\-finline\-functions\fR, \fB\-fipa\-cp\fR, \fB\-fipa\-cp\-clone\fR,
8996 \&\fB\-fpredictive\-commoning\fR, \fB\-funswitch\-loops\fR,
8997 \&\fB\-fgcse\-after\-reload\fR, and \fB\-ftree\-loop\-distribute\-patterns\fR.
8998 .Sp
8999 \&\fIpath\fR is the name of a file containing AutoFDO profile information.
9000 If omitted, it defaults to \fIfbdata.afdo\fR in the current directory.
9001 .Sp
9002 Producing an AutoFDO profile data file requires running your program
9003 with the \fBperf\fR utility on a supported GNU/Linux target system.
9004 For more information, see <\fBhttps://perf.wiki.kernel.org/\fR>.
9005 .Sp
9006 E.g.
9007 .Sp
9008 .Vb 2
9009 \&        perf record \-e br_inst_retired:near_taken \-b \-o perf.data \e
9010 \&            \-\- your_program
9011 .Ve
9012 .Sp
9013 Then use the \fBcreate_gcov\fR tool to convert the raw profile data
9014 to a format that can be used by \s-1GCC.\s0  You must also supply the 
9015 unstripped binary for your program to this tool.  
9016 See <\fBhttps://github.com/google/autofdo\fR>.
9017 .Sp
9018 E.g.
9019 .Sp
9020 .Vb 2
9021 \&        create_gcov \-\-binary=your_program.unstripped \-\-profile=perf.data \e
9022 \&            \-\-gcov=profile.afdo
9023 .Ve
9024 .PP
9025 The following options control compiler behavior regarding floating-point 
9026 arithmetic.  These options trade off between speed and
9027 correctness.  All must be specifically enabled.
9028 .IP "\fB\-ffloat\-store\fR" 4
9029 .IX Item "-ffloat-store"
9030 Do not store floating-point variables in registers, and inhibit other
9031 options that might change whether a floating-point value is taken from a
9032 register or memory.
9033 .Sp
9034 This option prevents undesirable excess precision on machines such as
9035 the 68000 where the floating registers (of the 68881) keep more
9036 precision than a \f(CW\*(C`double\*(C'\fR is supposed to have.  Similarly for the
9037 x86 architecture.  For most programs, the excess precision does only
9038 good, but a few programs rely on the precise definition of \s-1IEEE\s0 floating
9039 point.  Use \fB\-ffloat\-store\fR for such programs, after modifying
9040 them to store all pertinent intermediate computations into variables.
9041 .IP "\fB\-fexcess\-precision=\fR\fIstyle\fR" 4
9042 .IX Item "-fexcess-precision=style"
9043 This option allows further control over excess precision on machines
9044 where floating-point operations occur in a format with more precision or
9045 range than the \s-1IEEE\s0 standard and interchange floating-point types.  By
9046 default, \fB\-fexcess\-precision=fast\fR is in effect; this means that
9047 operations may be carried out in a wider precision than the types specified
9048 in the source if that would result in faster code, and it is unpredictable
9049 when rounding to the types specified in the source code takes place.
9050 When compiling C, if \fB\-fexcess\-precision=standard\fR is specified then
9051 excess precision follows the rules specified in \s-1ISO C99\s0; in particular,
9052 both casts and assignments cause values to be rounded to their
9053 semantic types (whereas \fB\-ffloat\-store\fR only affects
9054 assignments).  This option is enabled by default for C if a strict
9055 conformance option such as \fB\-std=c99\fR is used.
9056 \&\fB\-ffast\-math\fR enables \fB\-fexcess\-precision=fast\fR by default
9057 regardless of whether a strict conformance option is used.
9058 .Sp
9059 \&\fB\-fexcess\-precision=standard\fR is not implemented for languages
9060 other than C.  On the x86, it has no effect if \fB\-mfpmath=sse\fR
9061 or \fB\-mfpmath=sse+387\fR is specified; in the former case, \s-1IEEE\s0
9062 semantics apply without excess precision, and in the latter, rounding
9063 is unpredictable.
9064 .IP "\fB\-ffast\-math\fR" 4
9065 .IX Item "-ffast-math"
9066 Sets the options \fB\-fno\-math\-errno\fR, \fB\-funsafe\-math\-optimizations\fR,
9067 \&\fB\-ffinite\-math\-only\fR, \fB\-fno\-rounding\-math\fR,
9068 \&\fB\-fno\-signaling\-nans\fR, \fB\-fcx\-limited\-range\fR and
9069 \&\fB\-fexcess\-precision=fast\fR.
9070 .Sp
9071 This option causes the preprocessor macro \f(CW\*(C`_\|_FAST_MATH_\|_\*(C'\fR to be defined.
9072 .Sp
9073 This option is not turned on by any \fB\-O\fR option besides
9074 \&\fB\-Ofast\fR since it can result in incorrect output for programs
9075 that depend on an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications
9076 for math functions. It may, however, yield faster code for programs
9077 that do not require the guarantees of these specifications.
9078 .IP "\fB\-fno\-math\-errno\fR" 4
9079 .IX Item "-fno-math-errno"
9080 Do not set \f(CW\*(C`errno\*(C'\fR after calling math functions that are executed
9081 with a single instruction, e.g., \f(CW\*(C`sqrt\*(C'\fR.  A program that relies on
9082 \&\s-1IEEE\s0 exceptions for math error handling may want to use this flag
9083 for speed while maintaining \s-1IEEE\s0 arithmetic compatibility.
9084 .Sp
9085 This option is not turned on by any \fB\-O\fR option since
9086 it can result in incorrect output for programs that depend on
9087 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
9088 math functions. It may, however, yield faster code for programs
9089 that do not require the guarantees of these specifications.
9090 .Sp
9091 The default is \fB\-fmath\-errno\fR.
9092 .Sp
9093 On Darwin systems, the math library never sets \f(CW\*(C`errno\*(C'\fR.  There is
9094 therefore no reason for the compiler to consider the possibility that
9095 it might, and \fB\-fno\-math\-errno\fR is the default.
9096 .IP "\fB\-funsafe\-math\-optimizations\fR" 4
9097 .IX Item "-funsafe-math-optimizations"
9098 Allow optimizations for floating-point arithmetic that (a) assume
9099 that arguments and results are valid and (b) may violate \s-1IEEE\s0 or
9100 \&\s-1ANSI\s0 standards.  When used at link time, it may include libraries
9101 or startup files that change the default \s-1FPU\s0 control word or other
9102 similar optimizations.
9103 .Sp
9104 This option is not turned on by any \fB\-O\fR option since
9105 it can result in incorrect output for programs that depend on
9106 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
9107 math functions. It may, however, yield faster code for programs
9108 that do not require the guarantees of these specifications.
9109 Enables \fB\-fno\-signed\-zeros\fR, \fB\-fno\-trapping\-math\fR,
9110 \&\fB\-fassociative\-math\fR and \fB\-freciprocal\-math\fR.
9111 .Sp
9112 The default is \fB\-fno\-unsafe\-math\-optimizations\fR.
9113 .IP "\fB\-fassociative\-math\fR" 4
9114 .IX Item "-fassociative-math"
9115 Allow re-association of operands in series of floating-point operations.
9116 This violates the \s-1ISO C\s0 and \*(C+ language standard by possibly changing
9117 computation result.  \s-1NOTE:\s0 re-ordering may change the sign of zero as
9118 well as ignore NaNs and inhibit or create underflow or overflow (and
9119 thus cannot be used on code that relies on rounding behavior like
9120 \&\f(CW\*(C`(x + 2**52) \- 2**52\*(C'\fR.  May also reorder floating-point comparisons
9121 and thus may not be used when ordered comparisons are required.
9122 This option requires that both \fB\-fno\-signed\-zeros\fR and
9123 \&\fB\-fno\-trapping\-math\fR be in effect.  Moreover, it doesn't make
9124 much sense with \fB\-frounding\-math\fR. For Fortran the option
9125 is automatically enabled when both \fB\-fno\-signed\-zeros\fR and
9126 \&\fB\-fno\-trapping\-math\fR are in effect.
9127 .Sp
9128 The default is \fB\-fno\-associative\-math\fR.
9129 .IP "\fB\-freciprocal\-math\fR" 4
9130 .IX Item "-freciprocal-math"
9131 Allow the reciprocal of a value to be used instead of dividing by
9132 the value if this enables optimizations.  For example \f(CW\*(C`x / y\*(C'\fR
9133 can be replaced with \f(CW\*(C`x * (1/y)\*(C'\fR, which is useful if \f(CW\*(C`(1/y)\*(C'\fR
9134 is subject to common subexpression elimination.  Note that this loses
9135 precision and increases the number of flops operating on the value.
9136 .Sp
9137 The default is \fB\-fno\-reciprocal\-math\fR.
9138 .IP "\fB\-ffinite\-math\-only\fR" 4
9139 .IX Item "-ffinite-math-only"
9140 Allow optimizations for floating-point arithmetic that assume
9141 that arguments and results are not NaNs or +\-Infs.
9142 .Sp
9143 This option is not turned on by any \fB\-O\fR option since
9144 it can result in incorrect output for programs that depend on
9145 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
9146 math functions. It may, however, yield faster code for programs
9147 that do not require the guarantees of these specifications.
9148 .Sp
9149 The default is \fB\-fno\-finite\-math\-only\fR.
9150 .IP "\fB\-fno\-signed\-zeros\fR" 4
9151 .IX Item "-fno-signed-zeros"
9152 Allow optimizations for floating-point arithmetic that ignore the
9153 signedness of zero.  \s-1IEEE\s0 arithmetic specifies the behavior of
9154 distinct +0.0 and \-0.0 values, which then prohibits simplification
9155 of expressions such as x+0.0 or 0.0*x (even with \fB\-ffinite\-math\-only\fR).
9156 This option implies that the sign of a zero result isn't significant.
9157 .Sp
9158 The default is \fB\-fsigned\-zeros\fR.
9159 .IP "\fB\-fno\-trapping\-math\fR" 4
9160 .IX Item "-fno-trapping-math"
9161 Compile code assuming that floating-point operations cannot generate
9162 user-visible traps.  These traps include division by zero, overflow,
9163 underflow, inexact result and invalid operation.  This option requires
9164 that \fB\-fno\-signaling\-nans\fR be in effect.  Setting this option may
9165 allow faster code if one relies on \*(L"non-stop\*(R" \s-1IEEE\s0 arithmetic, for example.
9166 .Sp
9167 This option should never be turned on by any \fB\-O\fR option since
9168 it can result in incorrect output for programs that depend on
9169 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
9170 math functions.
9171 .Sp
9172 The default is \fB\-ftrapping\-math\fR.
9173 .IP "\fB\-frounding\-math\fR" 4
9174 .IX Item "-frounding-math"
9175 Disable transformations and optimizations that assume default floating-point
9176 rounding behavior.  This is round-to-zero for all floating point
9177 to integer conversions, and round-to-nearest for all other arithmetic
9178 truncations.  This option should be specified for programs that change
9179 the \s-1FP\s0 rounding mode dynamically, or that may be executed with a
9180 non-default rounding mode.  This option disables constant folding of
9181 floating-point expressions at compile time (which may be affected by
9182 rounding mode) and arithmetic transformations that are unsafe in the
9183 presence of sign-dependent rounding modes.
9184 .Sp
9185 The default is \fB\-fno\-rounding\-math\fR.
9186 .Sp
9187 This option is experimental and does not currently guarantee to
9188 disable all \s-1GCC\s0 optimizations that are affected by rounding mode.
9189 Future versions of \s-1GCC\s0 may provide finer control of this setting
9190 using C99's \f(CW\*(C`FENV_ACCESS\*(C'\fR pragma.  This command-line option
9191 will be used to specify the default state for \f(CW\*(C`FENV_ACCESS\*(C'\fR.
9192 .IP "\fB\-fsignaling\-nans\fR" 4
9193 .IX Item "-fsignaling-nans"
9194 Compile code assuming that \s-1IEEE\s0 signaling NaNs may generate user-visible
9195 traps during floating-point operations.  Setting this option disables
9196 optimizations that may change the number of exceptions visible with
9197 signaling NaNs.  This option implies \fB\-ftrapping\-math\fR.
9198 .Sp
9199 This option causes the preprocessor macro \f(CW\*(C`_\|_SUPPORT_SNAN_\|_\*(C'\fR to
9200 be defined.
9201 .Sp
9202 The default is \fB\-fno\-signaling\-nans\fR.
9203 .Sp
9204 This option is experimental and does not currently guarantee to
9205 disable all \s-1GCC\s0 optimizations that affect signaling NaN behavior.
9206 .IP "\fB\-fno\-fp\-int\-builtin\-inexact\fR" 4
9207 .IX Item "-fno-fp-int-builtin-inexact"
9208 Do not allow the built-in functions \f(CW\*(C`ceil\*(C'\fR, \f(CW\*(C`floor\*(C'\fR,
9209 \&\f(CW\*(C`round\*(C'\fR and \f(CW\*(C`trunc\*(C'\fR, and their \f(CW\*(C`float\*(C'\fR and \f(CW\*(C`long
9210 double\*(C'\fR variants, to generate code that raises the \*(L"inexact\*(R"
9211 floating-point exception for noninteger arguments.  \s-1ISO C99\s0 and C11
9212 allow these functions to raise the \*(L"inexact\*(R" exception, but \s-1ISO/IEC
9213 TS 18661\-1:2014,\s0 the C bindings to \s-1IEEE 754\-2008,\s0 does not allow these
9214 functions to do so.
9215 .Sp
9216 The default is \fB\-ffp\-int\-builtin\-inexact\fR, allowing the
9217 exception to be raised.  This option does nothing unless
9218 \&\fB\-ftrapping\-math\fR is in effect.
9219 .Sp
9220 Even if \fB\-fno\-fp\-int\-builtin\-inexact\fR is used, if the functions
9221 generate a call to a library function then the \*(L"inexact\*(R" exception
9222 may be raised if the library implementation does not follow \s-1TS 18661.\s0
9223 .IP "\fB\-fsingle\-precision\-constant\fR" 4
9224 .IX Item "-fsingle-precision-constant"
9225 Treat floating-point constants as single precision instead of
9226 implicitly converting them to double-precision constants.
9227 .IP "\fB\-fcx\-limited\-range\fR" 4
9228 .IX Item "-fcx-limited-range"
9229 When enabled, this option states that a range reduction step is not
9230 needed when performing complex division.  Also, there is no checking
9231 whether the result of a complex multiplication or division is \f(CW\*(C`NaN
9232 + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case.  The
9233 default is \fB\-fno\-cx\-limited\-range\fR, but is enabled by
9234 \&\fB\-ffast\-math\fR.
9235 .Sp
9236 This option controls the default setting of the \s-1ISO C99\s0
9237 \&\f(CW\*(C`CX_LIMITED_RANGE\*(C'\fR pragma.  Nevertheless, the option applies to
9238 all languages.
9239 .IP "\fB\-fcx\-fortran\-rules\fR" 4
9240 .IX Item "-fcx-fortran-rules"
9241 Complex multiplication and division follow Fortran rules.  Range
9242 reduction is done as part of complex division, but there is no checking
9243 whether the result of a complex multiplication or division is \f(CW\*(C`NaN
9244 + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case.
9245 .Sp
9246 The default is \fB\-fno\-cx\-fortran\-rules\fR.
9247 .PP
9248 The following options control optimizations that may improve
9249 performance, but are not enabled by any \fB\-O\fR options.  This
9250 section includes experimental options that may produce broken code.
9251 .IP "\fB\-fbranch\-probabilities\fR" 4
9252 .IX Item "-fbranch-probabilities"
9253 After running a program compiled with \fB\-fprofile\-arcs\fR,
9254 you can compile it a second time using
9255 \&\fB\-fbranch\-probabilities\fR, to improve optimizations based on
9256 the number of times each branch was taken.  When a program
9257 compiled with \fB\-fprofile\-arcs\fR exits, it saves arc execution
9258 counts to a file called \fI\fIsourcename\fI.gcda\fR for each source
9259 file.  The information in this data file is very dependent on the
9260 structure of the generated code, so you must use the same source code
9261 and the same optimization options for both compilations.
9262 .Sp
9263 With \fB\-fbranch\-probabilities\fR, \s-1GCC\s0 puts a
9264 \&\fB\s-1REG_BR_PROB\s0\fR note on each \fB\s-1JUMP_INSN\s0\fR and \fB\s-1CALL_INSN\s0\fR.
9265 These can be used to improve optimization.  Currently, they are only
9266 used in one place: in \fIreorg.c\fR, instead of guessing which path a
9267 branch is most likely to take, the \fB\s-1REG_BR_PROB\s0\fR values are used to
9268 exactly determine which path is taken more often.
9269 .IP "\fB\-fprofile\-values\fR" 4
9270 .IX Item "-fprofile-values"
9271 If combined with \fB\-fprofile\-arcs\fR, it adds code so that some
9272 data about values of expressions in the program is gathered.
9273 .Sp
9274 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
9275 from profiling values of expressions for usage in optimizations.
9276 .Sp
9277 Enabled with \fB\-fprofile\-generate\fR and \fB\-fprofile\-use\fR.
9278 .IP "\fB\-fprofile\-reorder\-functions\fR" 4
9279 .IX Item "-fprofile-reorder-functions"
9280 Function reordering based on profile instrumentation collects
9281 first time of execution of a function and orders these functions
9282 in ascending order.
9283 .Sp
9284 Enabled with \fB\-fprofile\-use\fR.
9285 .IP "\fB\-fvpt\fR" 4
9286 .IX Item "-fvpt"
9287 If combined with \fB\-fprofile\-arcs\fR, this option instructs the compiler
9288 to add code to gather information about values of expressions.
9289 .Sp
9290 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
9291 and actually performs the optimizations based on them.
9292 Currently the optimizations include specialization of division operations
9293 using the knowledge about the value of the denominator.
9294 .IP "\fB\-frename\-registers\fR" 4
9295 .IX Item "-frename-registers"
9296 Attempt to avoid false dependencies in scheduled code by making use
9297 of registers left over after register allocation.  This optimization
9298 most benefits processors with lots of registers.  Depending on the
9299 debug information format adopted by the target, however, it can
9300 make debugging impossible, since variables no longer stay in
9301 a \*(L"home register\*(R".
9302 .Sp
9303 Enabled by default with \fB\-funroll\-loops\fR.
9304 .IP "\fB\-fschedule\-fusion\fR" 4
9305 .IX Item "-fschedule-fusion"
9306 Performs a target dependent pass over the instruction stream to schedule
9307 instructions of same type together because target machine can execute them
9308 more efficiently if they are adjacent to each other in the instruction flow.
9309 .Sp
9310 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
9311 .IP "\fB\-ftracer\fR" 4
9312 .IX Item "-ftracer"
9313 Perform tail duplication to enlarge superblock size.  This transformation
9314 simplifies the control flow of the function allowing other optimizations to do
9315 a better job.
9316 .Sp
9317 Enabled with \fB\-fprofile\-use\fR.
9318 .IP "\fB\-funroll\-loops\fR" 4
9319 .IX Item "-funroll-loops"
9320 Unroll loops whose number of iterations can be determined at compile time or
9321 upon entry to the loop.  \fB\-funroll\-loops\fR implies
9322 \&\fB\-frerun\-cse\-after\-loop\fR, \fB\-fweb\fR and \fB\-frename\-registers\fR.
9323 It also turns on complete loop peeling (i.e. complete removal of loops with
9324 a small constant number of iterations).  This option makes code larger, and may
9325 or may not make it run faster.
9326 .Sp
9327 Enabled with \fB\-fprofile\-use\fR.
9328 .IP "\fB\-funroll\-all\-loops\fR" 4
9329 .IX Item "-funroll-all-loops"
9330 Unroll all loops, even if their number of iterations is uncertain when
9331 the loop is entered.  This usually makes programs run more slowly.
9332 \&\fB\-funroll\-all\-loops\fR implies the same options as
9333 \&\fB\-funroll\-loops\fR.
9334 .IP "\fB\-fpeel\-loops\fR" 4
9335 .IX Item "-fpeel-loops"
9336 Peels loops for which there is enough information that they do not
9337 roll much (from profile feedback or static analysis).  It also turns on
9338 complete loop peeling (i.e. complete removal of loops with small constant
9339 number of iterations).
9340 .Sp
9341 Enabled with \fB\-O3\fR and/or \fB\-fprofile\-use\fR.
9342 .IP "\fB\-fmove\-loop\-invariants\fR" 4
9343 .IX Item "-fmove-loop-invariants"
9344 Enables the loop invariant motion pass in the \s-1RTL\s0 loop optimizer.  Enabled
9345 at level \fB\-O1\fR
9346 .IP "\fB\-fsplit\-loops\fR" 4
9347 .IX Item "-fsplit-loops"
9348 Split a loop into two if it contains a condition that's always true
9349 for one side of the iteration space and false for the other.
9350 .IP "\fB\-funswitch\-loops\fR" 4
9351 .IX Item "-funswitch-loops"
9352 Move branches with loop invariant conditions out of the loop, with duplicates
9353 of the loop on both branches (modified according to result of the condition).
9354 .IP "\fB\-ffunction\-sections\fR" 4
9355 .IX Item "-ffunction-sections"
9356 .PD 0
9357 .IP "\fB\-fdata\-sections\fR" 4
9358 .IX Item "-fdata-sections"
9359 .PD
9360 Place each function or data item into its own section in the output
9361 file if the target supports arbitrary sections.  The name of the
9362 function or the name of the data item determines the section's name
9363 in the output file.
9364 .Sp
9365 Use these options on systems where the linker can perform optimizations to
9366 improve locality of reference in the instruction space.  Most systems using the
9367 \&\s-1ELF\s0 object format have linkers with such optimizations.  On \s-1AIX,\s0 the linker
9368 rearranges sections (CSECTs) based on the call graph.  The performance impact
9369 varies.
9370 .Sp
9371 Together with a linker garbage collection (linker \fB\-\-gc\-sections\fR
9372 option) these options may lead to smaller statically-linked executables (after
9373 stripping).
9374 .Sp
9375 On \s-1ELF/DWARF\s0 systems these options do not degenerate the quality of the debug
9376 information.  There could be issues with other object files/debug info formats.
9377 .Sp
9378 Only use these options when there are significant benefits from doing so.  When
9379 you specify these options, the assembler and linker create larger object and
9380 executable files and are also slower.  These options affect code generation.
9381 They prevent optimizations by the compiler and assembler using relative
9382 locations inside a translation unit since the locations are unknown until
9383 link time.  An example of such an optimization is relaxing calls to short call
9384 instructions.
9385 .IP "\fB\-fbranch\-target\-load\-optimize\fR" 4
9386 .IX Item "-fbranch-target-load-optimize"
9387 Perform branch target register load optimization before prologue / epilogue
9388 threading.
9389 The use of target registers can typically be exposed only during reload,
9390 thus hoisting loads out of loops and doing inter-block scheduling needs
9391 a separate optimization pass.
9392 .IP "\fB\-fbranch\-target\-load\-optimize2\fR" 4
9393 .IX Item "-fbranch-target-load-optimize2"
9394 Perform branch target register load optimization after prologue / epilogue
9395 threading.
9396 .IP "\fB\-fbtr\-bb\-exclusive\fR" 4
9397 .IX Item "-fbtr-bb-exclusive"
9398 When performing branch target register load optimization, don't reuse
9399 branch target registers within any basic block.
9400 .IP "\fB\-fstdarg\-opt\fR" 4
9401 .IX Item "-fstdarg-opt"
9402 Optimize the prologue of variadic argument functions with respect to usage of
9403 those arguments.
9404 .IP "\fB\-fsection\-anchors\fR" 4
9405 .IX Item "-fsection-anchors"
9406 Try to reduce the number of symbolic address calculations by using
9407 shared \*(L"anchor\*(R" symbols to address nearby objects.  This transformation
9408 can help to reduce the number of \s-1GOT\s0 entries and \s-1GOT\s0 accesses on some
9409 targets.
9410 .Sp
9411 For example, the implementation of the following function \f(CW\*(C`foo\*(C'\fR:
9412 .Sp
9413 .Vb 2
9414 \&        static int a, b, c;
9415 \&        int foo (void) { return a + b + c; }
9416 .Ve
9417 .Sp
9418 usually calculates the addresses of all three variables, but if you
9419 compile it with \fB\-fsection\-anchors\fR, it accesses the variables
9420 from a common anchor point instead.  The effect is similar to the
9421 following pseudocode (which isn't valid C):
9422 .Sp
9423 .Vb 5
9424 \&        int foo (void)
9425 \&        {
9426 \&          register int *xr = &x;
9427 \&          return xr[&a \- &x] + xr[&b \- &x] + xr[&c \- &x];
9428 \&        }
9429 .Ve
9430 .Sp
9431 Not all targets support this option.
9432 .IP "\fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR" 4
9433 .IX Item "--param name=value"
9434 In some places, \s-1GCC\s0 uses various constants to control the amount of
9435 optimization that is done.  For example, \s-1GCC\s0 does not inline functions
9436 that contain more than a certain number of instructions.  You can
9437 control some of these constants on the command line using the
9438 \&\fB\-\-param\fR option.
9439 .Sp
9440 The names of specific parameters, and the meaning of the values, are
9441 tied to the internals of the compiler, and are subject to change
9442 without notice in future releases.
9443 .Sp
9444 In each case, the \fIvalue\fR is an integer.  The allowable choices for
9445 \&\fIname\fR are:
9446 .RS 4
9447 .IP "\fBpredictable-branch-outcome\fR" 4
9448 .IX Item "predictable-branch-outcome"
9449 When branch is predicted to be taken with probability lower than this threshold
9450 (in percent), then it is considered well predictable. The default is 10.
9451 .IP "\fBmax-rtl-if-conversion-insns\fR" 4
9452 .IX Item "max-rtl-if-conversion-insns"
9453 \&\s-1RTL\s0 if-conversion tries to remove conditional branches around a block and
9454 replace them with conditionally executed instructions.  This parameter
9455 gives the maximum number of instructions in a block which should be
9456 considered for if-conversion.  The default is 10, though the compiler will
9457 also use other heuristics to decide whether if-conversion is likely to be
9458 profitable.
9459 .IP "\fBmax-rtl-if-conversion-predictable-cost\fR" 4
9460 .IX Item "max-rtl-if-conversion-predictable-cost"
9461 .PD 0
9462 .IP "\fBmax-rtl-if-conversion-unpredictable-cost\fR" 4
9463 .IX Item "max-rtl-if-conversion-unpredictable-cost"
9464 .PD
9465 \&\s-1RTL\s0 if-conversion will try to remove conditional branches around a block
9466 and replace them with conditionally executed instructions.  These parameters
9467 give the maximum permissible cost for the sequence that would be generated
9468 by if-conversion depending on whether the branch is statically determined
9469 to be predictable or not.  The units for this parameter are the same as
9470 those for the \s-1GCC\s0 internal seq_cost metric.  The compiler will try to
9471 provide a reasonable default for this parameter using the \s-1BRANCH_COST\s0
9472 target macro.
9473 .IP "\fBmax-crossjump-edges\fR" 4
9474 .IX Item "max-crossjump-edges"
9475 The maximum number of incoming edges to consider for cross-jumping.
9476 The algorithm used by \fB\-fcrossjumping\fR is O(N^2) in
9477 the number of edges incoming to each block.  Increasing values mean
9478 more aggressive optimization, making the compilation time increase with
9479 probably small improvement in executable size.
9480 .IP "\fBmin-crossjump-insns\fR" 4
9481 .IX Item "min-crossjump-insns"
9482 The minimum number of instructions that must be matched at the end
9483 of two blocks before cross-jumping is performed on them.  This
9484 value is ignored in the case where all instructions in the block being
9485 cross-jumped from are matched.  The default value is 5.
9486 .IP "\fBmax-grow-copy-bb-insns\fR" 4
9487 .IX Item "max-grow-copy-bb-insns"
9488 The maximum code size expansion factor when copying basic blocks
9489 instead of jumping.  The expansion is relative to a jump instruction.
9490 The default value is 8.
9491 .IP "\fBmax-goto-duplication-insns\fR" 4
9492 .IX Item "max-goto-duplication-insns"
9493 The maximum number of instructions to duplicate to a block that jumps
9494 to a computed goto.  To avoid O(N^2) behavior in a number of
9495 passes, \s-1GCC\s0 factors computed gotos early in the compilation process,
9496 and unfactors them as late as possible.  Only computed jumps at the
9497 end of a basic blocks with no more than max-goto-duplication-insns are
9498 unfactored.  The default value is 8.
9499 .IP "\fBmax-delay-slot-insn-search\fR" 4
9500 .IX Item "max-delay-slot-insn-search"
9501 The maximum number of instructions to consider when looking for an
9502 instruction to fill a delay slot.  If more than this arbitrary number of
9503 instructions are searched, the time savings from filling the delay slot
9504 are minimal, so stop searching.  Increasing values mean more
9505 aggressive optimization, making the compilation time increase with probably
9506 small improvement in execution time.
9507 .IP "\fBmax-delay-slot-live-search\fR" 4
9508 .IX Item "max-delay-slot-live-search"
9509 When trying to fill delay slots, the maximum number of instructions to
9510 consider when searching for a block with valid live register
9511 information.  Increasing this arbitrarily chosen value means more
9512 aggressive optimization, increasing the compilation time.  This parameter
9513 should be removed when the delay slot code is rewritten to maintain the
9514 control-flow graph.
9515 .IP "\fBmax-gcse-memory\fR" 4
9516 .IX Item "max-gcse-memory"
9517 The approximate maximum amount of memory that can be allocated in
9518 order to perform the global common subexpression elimination
9519 optimization.  If more memory than specified is required, the
9520 optimization is not done.
9521 .IP "\fBmax-gcse-insertion-ratio\fR" 4
9522 .IX Item "max-gcse-insertion-ratio"
9523 If the ratio of expression insertions to deletions is larger than this value
9524 for any expression, then \s-1RTL PRE\s0 inserts or removes the expression and thus
9525 leaves partially redundant computations in the instruction stream.  The default value is 20.
9526 .IP "\fBmax-pending-list-length\fR" 4
9527 .IX Item "max-pending-list-length"
9528 The maximum number of pending dependencies scheduling allows
9529 before flushing the current state and starting over.  Large functions
9530 with few branches or calls can create excessively large lists which
9531 needlessly consume memory and resources.
9532 .IP "\fBmax-modulo-backtrack-attempts\fR" 4
9533 .IX Item "max-modulo-backtrack-attempts"
9534 The maximum number of backtrack attempts the scheduler should make
9535 when modulo scheduling a loop.  Larger values can exponentially increase
9536 compilation time.
9537 .IP "\fBmax-inline-insns-single\fR" 4
9538 .IX Item "max-inline-insns-single"
9539 Several parameters control the tree inliner used in \s-1GCC.\s0
9540 This number sets the maximum number of instructions (counted in \s-1GCC\s0's
9541 internal representation) in a single function that the tree inliner
9542 considers for inlining.  This only affects functions declared
9543 inline and methods implemented in a class declaration (\*(C+).
9544 The default value is 400.
9545 .IP "\fBmax-inline-insns-auto\fR" 4
9546 .IX Item "max-inline-insns-auto"
9547 When you use \fB\-finline\-functions\fR (included in \fB\-O3\fR),
9548 a lot of functions that would otherwise not be considered for inlining
9549 by the compiler are investigated.  To those functions, a different
9550 (more restrictive) limit compared to functions declared inline can
9551 be applied.
9552 The default value is 30.
9553 .IP "\fBinline-min-speedup\fR" 4
9554 .IX Item "inline-min-speedup"
9555 When estimated performance improvement of caller + callee runtime exceeds this
9556 threshold (in percent), the function can be inlined regardless of the limit on
9557 \&\fB\-\-param max-inline-insns-single\fR and \fB\-\-param
9558 max-inline-insns-auto\fR.
9559 The default value is 15.
9560 .IP "\fBlarge-function-insns\fR" 4
9561 .IX Item "large-function-insns"
9562 The limit specifying really large functions.  For functions larger than this
9563 limit after inlining, inlining is constrained by
9564 \&\fB\-\-param large-function-growth\fR.  This parameter is useful primarily
9565 to avoid extreme compilation time caused by non-linear algorithms used by the
9566 back end.
9567 The default value is 2700.
9568 .IP "\fBlarge-function-growth\fR" 4
9569 .IX Item "large-function-growth"
9570 Specifies maximal growth of large function caused by inlining in percents.
9571 The default value is 100 which limits large function growth to 2.0 times
9572 the original size.
9573 .IP "\fBlarge-unit-insns\fR" 4
9574 .IX Item "large-unit-insns"
9575 The limit specifying large translation unit.  Growth caused by inlining of
9576 units larger than this limit is limited by \fB\-\-param inline-unit-growth\fR.
9577 For small units this might be too tight.
9578 For example, consider a unit consisting of function A
9579 that is inline and B that just calls A three times.  If B is small relative to
9580 A, the growth of unit is 300\e% and yet such inlining is very sane.  For very
9581 large units consisting of small inlineable functions, however, the overall unit
9582 growth limit is needed to avoid exponential explosion of code size.  Thus for
9583 smaller units, the size is increased to \fB\-\-param large-unit-insns\fR
9584 before applying \fB\-\-param inline-unit-growth\fR.  The default is 10000.
9585 .IP "\fBinline-unit-growth\fR" 4
9586 .IX Item "inline-unit-growth"
9587 Specifies maximal overall growth of the compilation unit caused by inlining.
9588 The default value is 20 which limits unit growth to 1.2 times the original
9589 size. Cold functions (either marked cold via an attribute or by profile
9590 feedback) are not accounted into the unit size.
9591 .IP "\fBipcp-unit-growth\fR" 4
9592 .IX Item "ipcp-unit-growth"
9593 Specifies maximal overall growth of the compilation unit caused by
9594 interprocedural constant propagation.  The default value is 10 which limits
9595 unit growth to 1.1 times the original size.
9596 .IP "\fBlarge-stack-frame\fR" 4
9597 .IX Item "large-stack-frame"
9598 The limit specifying large stack frames.  While inlining the algorithm is trying
9599 to not grow past this limit too much.  The default value is 256 bytes.
9600 .IP "\fBlarge-stack-frame-growth\fR" 4
9601 .IX Item "large-stack-frame-growth"
9602 Specifies maximal growth of large stack frames caused by inlining in percents.
9603 The default value is 1000 which limits large stack frame growth to 11 times
9604 the original size.
9605 .IP "\fBmax-inline-insns-recursive\fR" 4
9606 .IX Item "max-inline-insns-recursive"
9607 .PD 0
9608 .IP "\fBmax-inline-insns-recursive-auto\fR" 4
9609 .IX Item "max-inline-insns-recursive-auto"
9610 .PD
9611 Specifies the maximum number of instructions an out-of-line copy of a
9612 self-recursive inline
9613 function can grow into by performing recursive inlining.
9614 .Sp
9615 \&\fB\-\-param max-inline-insns-recursive\fR applies to functions
9616 declared inline.
9617 For functions not declared inline, recursive inlining
9618 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
9619 enabled; \fB\-\-param max-inline-insns-recursive-auto\fR applies instead.  The
9620 default value is 450.
9621 .IP "\fBmax-inline-recursive-depth\fR" 4
9622 .IX Item "max-inline-recursive-depth"
9623 .PD 0
9624 .IP "\fBmax-inline-recursive-depth-auto\fR" 4
9625 .IX Item "max-inline-recursive-depth-auto"
9626 .PD
9627 Specifies the maximum recursion depth used for recursive inlining.
9628 .Sp
9629 \&\fB\-\-param max-inline-recursive-depth\fR applies to functions
9630 declared inline.  For functions not declared inline, recursive inlining
9631 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
9632 enabled; \fB\-\-param max-inline-recursive-depth-auto\fR applies instead.  The
9633 default value is 8.
9634 .IP "\fBmin-inline-recursive-probability\fR" 4
9635 .IX Item "min-inline-recursive-probability"
9636 Recursive inlining is profitable only for function having deep recursion
9637 in average and can hurt for function having little recursion depth by
9638 increasing the prologue size or complexity of function body to other
9639 optimizers.
9640 .Sp
9641 When profile feedback is available (see \fB\-fprofile\-generate\fR) the actual
9642 recursion depth can be guessed from the probability that function recurses
9643 via a given call expression.  This parameter limits inlining only to call
9644 expressions whose probability exceeds the given threshold (in percents).
9645 The default value is 10.
9646 .IP "\fBearly-inlining-insns\fR" 4
9647 .IX Item "early-inlining-insns"
9648 Specify growth that the early inliner can make.  In effect it increases
9649 the amount of inlining for code having a large abstraction penalty.
9650 The default value is 14.
9651 .IP "\fBmax-early-inliner-iterations\fR" 4
9652 .IX Item "max-early-inliner-iterations"
9653 Limit of iterations of the early inliner.  This basically bounds
9654 the number of nested indirect calls the early inliner can resolve.
9655 Deeper chains are still handled by late inlining.
9656 .IP "\fBcomdat-sharing-probability\fR" 4
9657 .IX Item "comdat-sharing-probability"
9658 Probability (in percent) that \*(C+ inline function with comdat visibility
9659 are shared across multiple compilation units.  The default value is 20.
9660 .IP "\fBprofile-func-internal-id\fR" 4
9661 .IX Item "profile-func-internal-id"
9662 A parameter to control whether to use function internal id in profile
9663 database lookup. If the value is 0, the compiler uses an id that
9664 is based on function assembler name and filename, which makes old profile
9665 data more tolerant to source changes such as function reordering etc.
9666 The default value is 0.
9667 .IP "\fBmin-vect-loop-bound\fR" 4
9668 .IX Item "min-vect-loop-bound"
9669 The minimum number of iterations under which loops are not vectorized
9670 when \fB\-ftree\-vectorize\fR is used.  The number of iterations after
9671 vectorization needs to be greater than the value specified by this option
9672 to allow vectorization.  The default value is 0.
9673 .IP "\fBgcse-cost-distance-ratio\fR" 4
9674 .IX Item "gcse-cost-distance-ratio"
9675 Scaling factor in calculation of maximum distance an expression
9676 can be moved by \s-1GCSE\s0 optimizations.  This is currently supported only in the
9677 code hoisting pass.  The bigger the ratio, the more aggressive code hoisting
9678 is with simple expressions, i.e., the expressions that have cost
9679 less than \fBgcse-unrestricted-cost\fR.  Specifying 0 disables
9680 hoisting of simple expressions.  The default value is 10.
9681 .IP "\fBgcse-unrestricted-cost\fR" 4
9682 .IX Item "gcse-unrestricted-cost"
9683 Cost, roughly measured as the cost of a single typical machine
9684 instruction, at which \s-1GCSE\s0 optimizations do not constrain
9685 the distance an expression can travel.  This is currently
9686 supported only in the code hoisting pass.  The lesser the cost,
9687 the more aggressive code hoisting is.  Specifying 0 
9688 allows all expressions to travel unrestricted distances.
9689 The default value is 3.
9690 .IP "\fBmax-hoist-depth\fR" 4
9691 .IX Item "max-hoist-depth"
9692 The depth of search in the dominator tree for expressions to hoist.
9693 This is used to avoid quadratic behavior in hoisting algorithm.
9694 The value of 0 does not limit on the search, but may slow down compilation
9695 of huge functions.  The default value is 30.
9696 .IP "\fBmax-tail-merge-comparisons\fR" 4
9697 .IX Item "max-tail-merge-comparisons"
9698 The maximum amount of similar bbs to compare a bb with.  This is used to
9699 avoid quadratic behavior in tree tail merging.  The default value is 10.
9700 .IP "\fBmax-tail-merge-iterations\fR" 4
9701 .IX Item "max-tail-merge-iterations"
9702 The maximum amount of iterations of the pass over the function.  This is used to
9703 limit compilation time in tree tail merging.  The default value is 2.
9704 .IP "\fBstore-merging-allow-unaligned\fR" 4
9705 .IX Item "store-merging-allow-unaligned"
9706 Allow the store merging pass to introduce unaligned stores if it is legal to
9707 do so.  The default value is 1.
9708 .IP "\fBmax-stores-to-merge\fR" 4
9709 .IX Item "max-stores-to-merge"
9710 The maximum number of stores to attempt to merge into wider stores in the store
9711 merging pass.  The minimum value is 2 and the default is 64.
9712 .IP "\fBmax-unrolled-insns\fR" 4
9713 .IX Item "max-unrolled-insns"
9714 The maximum number of instructions that a loop may have to be unrolled.
9715 If a loop is unrolled, this parameter also determines how many times
9716 the loop code is unrolled.
9717 .IP "\fBmax-average-unrolled-insns\fR" 4
9718 .IX Item "max-average-unrolled-insns"
9719 The maximum number of instructions biased by probabilities of their execution
9720 that a loop may have to be unrolled.  If a loop is unrolled,
9721 this parameter also determines how many times the loop code is unrolled.
9722 .IP "\fBmax-unroll-times\fR" 4
9723 .IX Item "max-unroll-times"
9724 The maximum number of unrollings of a single loop.
9725 .IP "\fBmax-peeled-insns\fR" 4
9726 .IX Item "max-peeled-insns"
9727 The maximum number of instructions that a loop may have to be peeled.
9728 If a loop is peeled, this parameter also determines how many times
9729 the loop code is peeled.
9730 .IP "\fBmax-peel-times\fR" 4
9731 .IX Item "max-peel-times"
9732 The maximum number of peelings of a single loop.
9733 .IP "\fBmax-peel-branches\fR" 4
9734 .IX Item "max-peel-branches"
9735 The maximum number of branches on the hot path through the peeled sequence.
9736 .IP "\fBmax-completely-peeled-insns\fR" 4
9737 .IX Item "max-completely-peeled-insns"
9738 The maximum number of insns of a completely peeled loop.
9739 .IP "\fBmax-completely-peel-times\fR" 4
9740 .IX Item "max-completely-peel-times"
9741 The maximum number of iterations of a loop to be suitable for complete peeling.
9742 .IP "\fBmax-completely-peel-loop-nest-depth\fR" 4
9743 .IX Item "max-completely-peel-loop-nest-depth"
9744 The maximum depth of a loop nest suitable for complete peeling.
9745 .IP "\fBmax-unswitch-insns\fR" 4
9746 .IX Item "max-unswitch-insns"
9747 The maximum number of insns of an unswitched loop.
9748 .IP "\fBmax-unswitch-level\fR" 4
9749 .IX Item "max-unswitch-level"
9750 The maximum number of branches unswitched in a single loop.
9751 .IP "\fBmax-loop-headers-insns\fR" 4
9752 .IX Item "max-loop-headers-insns"
9753 The maximum number of insns in loop header duplicated by the copy loop headers
9754 pass.
9755 .IP "\fBlim-expensive\fR" 4
9756 .IX Item "lim-expensive"
9757 The minimum cost of an expensive expression in the loop invariant motion.
9758 .IP "\fBiv-consider-all-candidates-bound\fR" 4
9759 .IX Item "iv-consider-all-candidates-bound"
9760 Bound on number of candidates for induction variables, below which
9761 all candidates are considered for each use in induction variable
9762 optimizations.  If there are more candidates than this,
9763 only the most relevant ones are considered to avoid quadratic time complexity.
9764 .IP "\fBiv-max-considered-uses\fR" 4
9765 .IX Item "iv-max-considered-uses"
9766 The induction variable optimizations give up on loops that contain more
9767 induction variable uses.
9768 .IP "\fBiv-always-prune-cand-set-bound\fR" 4
9769 .IX Item "iv-always-prune-cand-set-bound"
9770 If the number of candidates in the set is smaller than this value,
9771 always try to remove unnecessary ivs from the set
9772 when adding a new one.
9773 .IP "\fBavg-loop-niter\fR" 4
9774 .IX Item "avg-loop-niter"
9775 Average number of iterations of a loop.
9776 .IP "\fBdse-max-object-size\fR" 4
9777 .IX Item "dse-max-object-size"
9778 Maximum size (in bytes) of objects tracked bytewise by dead store elimination.
9779 Larger values may result in larger compilation times.
9780 .IP "\fBscev-max-expr-size\fR" 4
9781 .IX Item "scev-max-expr-size"
9782 Bound on size of expressions used in the scalar evolutions analyzer.
9783 Large expressions slow the analyzer.
9784 .IP "\fBscev-max-expr-complexity\fR" 4
9785 .IX Item "scev-max-expr-complexity"
9786 Bound on the complexity of the expressions in the scalar evolutions analyzer.
9787 Complex expressions slow the analyzer.
9788 .IP "\fBmax-tree-if-conversion-phi-args\fR" 4
9789 .IX Item "max-tree-if-conversion-phi-args"
9790 Maximum number of arguments in a \s-1PHI\s0 supported by \s-1TREE\s0 if conversion
9791 unless the loop is marked with simd pragma.
9792 .IP "\fBvect-max-version-for-alignment-checks\fR" 4
9793 .IX Item "vect-max-version-for-alignment-checks"
9794 The maximum number of run-time checks that can be performed when
9795 doing loop versioning for alignment in the vectorizer.
9796 .IP "\fBvect-max-version-for-alias-checks\fR" 4
9797 .IX Item "vect-max-version-for-alias-checks"
9798 The maximum number of run-time checks that can be performed when
9799 doing loop versioning for alias in the vectorizer.
9800 .IP "\fBvect-max-peeling-for-alignment\fR" 4
9801 .IX Item "vect-max-peeling-for-alignment"
9802 The maximum number of loop peels to enhance access alignment
9803 for vectorizer. Value \-1 means no limit.
9804 .IP "\fBmax-iterations-to-track\fR" 4
9805 .IX Item "max-iterations-to-track"
9806 The maximum number of iterations of a loop the brute-force algorithm
9807 for analysis of the number of iterations of the loop tries to evaluate.
9808 .IP "\fBhot-bb-count-ws-permille\fR" 4
9809 .IX Item "hot-bb-count-ws-permille"
9810 A basic block profile count is considered hot if it contributes to 
9811 the given permillage (i.e. 0...1000) of the entire profiled execution.
9812 .IP "\fBhot-bb-frequency-fraction\fR" 4
9813 .IX Item "hot-bb-frequency-fraction"
9814 Select fraction of the entry block frequency of executions of basic block in
9815 function given basic block needs to have to be considered hot.
9816 .IP "\fBmax-predicted-iterations\fR" 4
9817 .IX Item "max-predicted-iterations"
9818 The maximum number of loop iterations we predict statically.  This is useful
9819 in cases where a function contains a single loop with known bound and
9820 another loop with unknown bound.
9821 The known number of iterations is predicted correctly, while
9822 the unknown number of iterations average to roughly 10.  This means that the
9823 loop without bounds appears artificially cold relative to the other one.
9824 .IP "\fBbuiltin-expect-probability\fR" 4
9825 .IX Item "builtin-expect-probability"
9826 Control the probability of the expression having the specified value. This
9827 parameter takes a percentage (i.e. 0 ... 100) as input.
9828 The default probability of 90 is obtained empirically.
9829 .IP "\fBalign-threshold\fR" 4
9830 .IX Item "align-threshold"
9831 Select fraction of the maximal frequency of executions of a basic block in
9832 a function to align the basic block.
9833 .IP "\fBalign-loop-iterations\fR" 4
9834 .IX Item "align-loop-iterations"
9835 A loop expected to iterate at least the selected number of iterations is
9836 aligned.
9837 .IP "\fBtracer-dynamic-coverage\fR" 4
9838 .IX Item "tracer-dynamic-coverage"
9839 .PD 0
9840 .IP "\fBtracer-dynamic-coverage-feedback\fR" 4
9841 .IX Item "tracer-dynamic-coverage-feedback"
9842 .PD
9843 This value is used to limit superblock formation once the given percentage of
9844 executed instructions is covered.  This limits unnecessary code size
9845 expansion.
9846 .Sp
9847 The \fBtracer-dynamic-coverage-feedback\fR parameter
9848 is used only when profile
9849 feedback is available.  The real profiles (as opposed to statically estimated
9850 ones) are much less balanced allowing the threshold to be larger value.
9851 .IP "\fBtracer-max-code-growth\fR" 4
9852 .IX Item "tracer-max-code-growth"
9853 Stop tail duplication once code growth has reached given percentage.  This is
9854 a rather artificial limit, as most of the duplicates are eliminated later in
9855 cross jumping, so it may be set to much higher values than is the desired code
9856 growth.
9857 .IP "\fBtracer-min-branch-ratio\fR" 4
9858 .IX Item "tracer-min-branch-ratio"
9859 Stop reverse growth when the reverse probability of best edge is less than this
9860 threshold (in percent).
9861 .IP "\fBtracer-min-branch-probability\fR" 4
9862 .IX Item "tracer-min-branch-probability"
9863 .PD 0
9864 .IP "\fBtracer-min-branch-probability-feedback\fR" 4
9865 .IX Item "tracer-min-branch-probability-feedback"
9866 .PD
9867 Stop forward growth if the best edge has probability lower than this
9868 threshold.
9869 .Sp
9870 Similarly to \fBtracer-dynamic-coverage\fR two parameters are
9871 provided.  \fBtracer-min-branch-probability-feedback\fR is used for
9872 compilation with profile feedback and \fBtracer-min-branch-probability\fR
9873 compilation without.  The value for compilation with profile feedback
9874 needs to be more conservative (higher) in order to make tracer
9875 effective.
9876 .IP "\fBstack-clash-protection-guard-size\fR" 4
9877 .IX Item "stack-clash-protection-guard-size"
9878 Specify the size of the operating system provided stack guard as
9879 2 raised to \fInum\fR bytes.  The default value is 12 (4096 bytes).
9880 Acceptable values are between 12 and 30.  Higher values may reduce the
9881 number of explicit probes, but a value larger than the operating system
9882 provided guard will leave code vulnerable to stack clash style attacks.
9883 .IP "\fBstack-clash-protection-probe-interval\fR" 4
9884 .IX Item "stack-clash-protection-probe-interval"
9885 Stack clash protection involves probing stack space as it is allocated.  This
9886 param controls the maximum distance between probes into the stack as 2 raised
9887 to \fInum\fR bytes.  Acceptable values are between 10 and 16 and defaults to
9888 12.  Higher values may reduce the number of explicit probes, but a value
9889 larger than the operating system provided guard will leave code vulnerable to
9890 stack clash style attacks.
9891 .IP "\fBmax-cse-path-length\fR" 4
9892 .IX Item "max-cse-path-length"
9893 The maximum number of basic blocks on path that \s-1CSE\s0 considers.
9894 The default is 10.
9895 .IP "\fBmax-cse-insns\fR" 4
9896 .IX Item "max-cse-insns"
9897 The maximum number of instructions \s-1CSE\s0 processes before flushing.
9898 The default is 1000.
9899 .IP "\fBggc-min-expand\fR" 4
9900 .IX Item "ggc-min-expand"
9901 \&\s-1GCC\s0 uses a garbage collector to manage its own memory allocation.  This
9902 parameter specifies the minimum percentage by which the garbage
9903 collector's heap should be allowed to expand between collections.
9904 Tuning this may improve compilation speed; it has no effect on code
9905 generation.
9906 .Sp
9907 The default is 30% + 70% * (\s-1RAM/1GB\s0) with an upper bound of 100% when
9908 \&\s-1RAM\s0 >= 1GB.  If \f(CW\*(C`getrlimit\*(C'\fR is available, the notion of \*(L"\s-1RAM\*(R"\s0 is
9909 the smallest of actual \s-1RAM\s0 and \f(CW\*(C`RLIMIT_DATA\*(C'\fR or \f(CW\*(C`RLIMIT_AS\*(C'\fR.  If
9910 \&\s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a particular platform, the lower
9911 bound of 30% is used.  Setting this parameter and
9912 \&\fBggc-min-heapsize\fR to zero causes a full collection to occur at
9913 every opportunity.  This is extremely slow, but can be useful for
9914 debugging.
9915 .IP "\fBggc-min-heapsize\fR" 4
9916 .IX Item "ggc-min-heapsize"
9917 Minimum size of the garbage collector's heap before it begins bothering
9918 to collect garbage.  The first collection occurs after the heap expands
9919 by \fBggc-min-expand\fR% beyond \fBggc-min-heapsize\fR.  Again,
9920 tuning this may improve compilation speed, and has no effect on code
9921 generation.
9922 .Sp
9923 The default is the smaller of \s-1RAM/8, RLIMIT_RSS,\s0 or a limit that
9924 tries to ensure that \s-1RLIMIT_DATA\s0 or \s-1RLIMIT_AS\s0 are not exceeded, but
9925 with a lower bound of 4096 (four megabytes) and an upper bound of
9926 131072 (128 megabytes).  If \s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a
9927 particular platform, the lower bound is used.  Setting this parameter
9928 very large effectively disables garbage collection.  Setting this
9929 parameter and \fBggc-min-expand\fR to zero causes a full collection
9930 to occur at every opportunity.
9931 .IP "\fBmax-reload-search-insns\fR" 4
9932 .IX Item "max-reload-search-insns"
9933 The maximum number of instruction reload should look backward for equivalent
9934 register.  Increasing values mean more aggressive optimization, making the
9935 compilation time increase with probably slightly better performance.
9936 The default value is 100.
9937 .IP "\fBmax-cselib-memory-locations\fR" 4
9938 .IX Item "max-cselib-memory-locations"
9939 The maximum number of memory locations cselib should take into account.
9940 Increasing values mean more aggressive optimization, making the compilation time
9941 increase with probably slightly better performance.  The default value is 500.
9942 .IP "\fBmax-sched-ready-insns\fR" 4
9943 .IX Item "max-sched-ready-insns"
9944 The maximum number of instructions ready to be issued the scheduler should
9945 consider at any given time during the first scheduling pass.  Increasing
9946 values mean more thorough searches, making the compilation time increase
9947 with probably little benefit.  The default value is 100.
9948 .IP "\fBmax-sched-region-blocks\fR" 4
9949 .IX Item "max-sched-region-blocks"
9950 The maximum number of blocks in a region to be considered for
9951 interblock scheduling.  The default value is 10.
9952 .IP "\fBmax-pipeline-region-blocks\fR" 4
9953 .IX Item "max-pipeline-region-blocks"
9954 The maximum number of blocks in a region to be considered for
9955 pipelining in the selective scheduler.  The default value is 15.
9956 .IP "\fBmax-sched-region-insns\fR" 4
9957 .IX Item "max-sched-region-insns"
9958 The maximum number of insns in a region to be considered for
9959 interblock scheduling.  The default value is 100.
9960 .IP "\fBmax-pipeline-region-insns\fR" 4
9961 .IX Item "max-pipeline-region-insns"
9962 The maximum number of insns in a region to be considered for
9963 pipelining in the selective scheduler.  The default value is 200.
9964 .IP "\fBmin-spec-prob\fR" 4
9965 .IX Item "min-spec-prob"
9966 The minimum probability (in percents) of reaching a source block
9967 for interblock speculative scheduling.  The default value is 40.
9968 .IP "\fBmax-sched-extend-regions-iters\fR" 4
9969 .IX Item "max-sched-extend-regions-iters"
9970 The maximum number of iterations through \s-1CFG\s0 to extend regions.
9971 A value of 0 (the default) disables region extensions.
9972 .IP "\fBmax-sched-insn-conflict-delay\fR" 4
9973 .IX Item "max-sched-insn-conflict-delay"
9974 The maximum conflict delay for an insn to be considered for speculative motion.
9975 The default value is 3.
9976 .IP "\fBsched-spec-prob-cutoff\fR" 4
9977 .IX Item "sched-spec-prob-cutoff"
9978 The minimal probability of speculation success (in percents), so that
9979 speculative insns are scheduled.
9980 The default value is 40.
9981 .IP "\fBsched-state-edge-prob-cutoff\fR" 4
9982 .IX Item "sched-state-edge-prob-cutoff"
9983 The minimum probability an edge must have for the scheduler to save its
9984 state across it.
9985 The default value is 10.
9986 .IP "\fBsched-mem-true-dep-cost\fR" 4
9987 .IX Item "sched-mem-true-dep-cost"
9988 Minimal distance (in \s-1CPU\s0 cycles) between store and load targeting same
9989 memory locations.  The default value is 1.
9990 .IP "\fBselsched-max-lookahead\fR" 4
9991 .IX Item "selsched-max-lookahead"
9992 The maximum size of the lookahead window of selective scheduling.  It is a
9993 depth of search for available instructions.
9994 The default value is 50.
9995 .IP "\fBselsched-max-sched-times\fR" 4
9996 .IX Item "selsched-max-sched-times"
9997 The maximum number of times that an instruction is scheduled during
9998 selective scheduling.  This is the limit on the number of iterations
9999 through which the instruction may be pipelined.  The default value is 2.
10000 .IP "\fBselsched-insns-to-rename\fR" 4
10001 .IX Item "selsched-insns-to-rename"
10002 The maximum number of best instructions in the ready list that are considered
10003 for renaming in the selective scheduler.  The default value is 2.
10004 .IP "\fBsms-min-sc\fR" 4
10005 .IX Item "sms-min-sc"
10006 The minimum value of stage count that swing modulo scheduler
10007 generates.  The default value is 2.
10008 .IP "\fBmax-last-value-rtl\fR" 4
10009 .IX Item "max-last-value-rtl"
10010 The maximum size measured as number of RTLs that can be recorded in an expression
10011 in combiner for a pseudo register as last known value of that register.  The default
10012 is 10000.
10013 .IP "\fBmax-combine-insns\fR" 4
10014 .IX Item "max-combine-insns"
10015 The maximum number of instructions the \s-1RTL\s0 combiner tries to combine.
10016 The default value is 2 at \fB\-Og\fR and 4 otherwise.
10017 .IP "\fBinteger-share-limit\fR" 4
10018 .IX Item "integer-share-limit"
10019 Small integer constants can use a shared data structure, reducing the
10020 compiler's memory usage and increasing its speed.  This sets the maximum
10021 value of a shared integer constant.  The default value is 256.
10022 .IP "\fBssp-buffer-size\fR" 4
10023 .IX Item "ssp-buffer-size"
10024 The minimum size of buffers (i.e. arrays) that receive stack smashing
10025 protection when \fB\-fstack\-protection\fR is used.
10026 .IP "\fBmin-size-for-stack-sharing\fR" 4
10027 .IX Item "min-size-for-stack-sharing"
10028 The minimum size of variables taking part in stack slot sharing when not
10029 optimizing. The default value is 32.
10030 .IP "\fBmax-jump-thread-duplication-stmts\fR" 4
10031 .IX Item "max-jump-thread-duplication-stmts"
10032 Maximum number of statements allowed in a block that needs to be
10033 duplicated when threading jumps.
10034 .IP "\fBmax-fields-for-field-sensitive\fR" 4
10035 .IX Item "max-fields-for-field-sensitive"
10036 Maximum number of fields in a structure treated in
10037 a field sensitive manner during pointer analysis.  The default is zero
10038 for \fB\-O0\fR and \fB\-O1\fR,
10039 and 100 for \fB\-Os\fR, \fB\-O2\fR, and \fB\-O3\fR.
10040 .IP "\fBprefetch-latency\fR" 4
10041 .IX Item "prefetch-latency"
10042 Estimate on average number of instructions that are executed before
10043 prefetch finishes.  The distance prefetched ahead is proportional
10044 to this constant.  Increasing this number may also lead to less
10045 streams being prefetched (see \fBsimultaneous-prefetches\fR).
10046 .IP "\fBsimultaneous-prefetches\fR" 4
10047 .IX Item "simultaneous-prefetches"
10048 Maximum number of prefetches that can run at the same time.
10049 .IP "\fBl1\-cache\-line\-size\fR" 4
10050 .IX Item "l1-cache-line-size"
10051 The size of cache line in L1 cache, in bytes.
10052 .IP "\fBl1\-cache\-size\fR" 4
10053 .IX Item "l1-cache-size"
10054 The size of L1 cache, in kilobytes.
10055 .IP "\fBl2\-cache\-size\fR" 4
10056 .IX Item "l2-cache-size"
10057 The size of L2 cache, in kilobytes.
10058 .IP "\fBloop-interchange-max-num-stmts\fR" 4
10059 .IX Item "loop-interchange-max-num-stmts"
10060 The maximum number of stmts in a loop to be interchanged.
10061 .IP "\fBloop-interchange-stride-ratio\fR" 4
10062 .IX Item "loop-interchange-stride-ratio"
10063 The minimum ratio between stride of two loops for interchange to be profitable.
10064 .IP "\fBmin-insn-to-prefetch-ratio\fR" 4
10065 .IX Item "min-insn-to-prefetch-ratio"
10066 The minimum ratio between the number of instructions and the
10067 number of prefetches to enable prefetching in a loop.
10068 .IP "\fBprefetch-min-insn-to-mem-ratio\fR" 4
10069 .IX Item "prefetch-min-insn-to-mem-ratio"
10070 The minimum ratio between the number of instructions and the
10071 number of memory references to enable prefetching in a loop.
10072 .IP "\fBuse-canonical-types\fR" 4
10073 .IX Item "use-canonical-types"
10074 Whether the compiler should use the \*(L"canonical\*(R" type system.  By
10075 default, this should always be 1, which uses a more efficient internal
10076 mechanism for comparing types in \*(C+ and Objective\-\*(C+.  However, if
10077 bugs in the canonical type system are causing compilation failures,
10078 set this value to 0 to disable canonical types.
10079 .IP "\fBswitch-conversion-max-branch-ratio\fR" 4
10080 .IX Item "switch-conversion-max-branch-ratio"
10081 Switch initialization conversion refuses to create arrays that are
10082 bigger than \fBswitch-conversion-max-branch-ratio\fR times the number of
10083 branches in the switch.
10084 .IP "\fBmax-partial-antic-length\fR" 4
10085 .IX Item "max-partial-antic-length"
10086 Maximum length of the partial antic set computed during the tree
10087 partial redundancy elimination optimization (\fB\-ftree\-pre\fR) when
10088 optimizing at \fB\-O3\fR and above.  For some sorts of source code
10089 the enhanced partial redundancy elimination optimization can run away,
10090 consuming all of the memory available on the host machine.  This
10091 parameter sets a limit on the length of the sets that are computed,
10092 which prevents the runaway behavior.  Setting a value of 0 for
10093 this parameter allows an unlimited set length.
10094 .IP "\fBsccvn-max-scc-size\fR" 4
10095 .IX Item "sccvn-max-scc-size"
10096 Maximum size of a strongly connected component (\s-1SCC\s0) during \s-1SCCVN\s0
10097 processing.  If this limit is hit, \s-1SCCVN\s0 processing for the whole
10098 function is not done and optimizations depending on it are
10099 disabled.  The default maximum \s-1SCC\s0 size is 10000.
10100 .IP "\fBsccvn-max-alias-queries-per-access\fR" 4
10101 .IX Item "sccvn-max-alias-queries-per-access"
10102 Maximum number of alias-oracle queries we perform when looking for
10103 redundancies for loads and stores.  If this limit is hit the search
10104 is aborted and the load or store is not considered redundant.  The
10105 number of queries is algorithmically limited to the number of
10106 stores on all paths from the load to the function entry.
10107 The default maximum number of queries is 1000.
10108 .IP "\fBira-max-loops-num\fR" 4
10109 .IX Item "ira-max-loops-num"
10110 \&\s-1IRA\s0 uses regional register allocation by default.  If a function
10111 contains more loops than the number given by this parameter, only at most
10112 the given number of the most frequently-executed loops form regions
10113 for regional register allocation.  The default value of the
10114 parameter is 100.
10115 .IP "\fBira-max-conflict-table-size\fR" 4
10116 .IX Item "ira-max-conflict-table-size"
10117 Although \s-1IRA\s0 uses a sophisticated algorithm to compress the conflict
10118 table, the table can still require excessive amounts of memory for
10119 huge functions.  If the conflict table for a function could be more
10120 than the size in \s-1MB\s0 given by this parameter, the register allocator
10121 instead uses a faster, simpler, and lower-quality
10122 algorithm that does not require building a pseudo-register conflict table.  
10123 The default value of the parameter is 2000.
10124 .IP "\fBira-loop-reserved-regs\fR" 4
10125 .IX Item "ira-loop-reserved-regs"
10126 \&\s-1IRA\s0 can be used to evaluate more accurate register pressure in loops
10127 for decisions to move loop invariants (see \fB\-O3\fR).  The number
10128 of available registers reserved for some other purposes is given
10129 by this parameter.  The default value of the parameter is 2, which is
10130 the minimal number of registers needed by typical instructions.
10131 This value is the best found from numerous experiments.
10132 .IP "\fBlra-inheritance-ebb-probability-cutoff\fR" 4
10133 .IX Item "lra-inheritance-ebb-probability-cutoff"
10134 \&\s-1LRA\s0 tries to reuse values reloaded in registers in subsequent insns.
10135 This optimization is called inheritance.  \s-1EBB\s0 is used as a region to
10136 do this optimization.  The parameter defines a minimal fall-through
10137 edge probability in percentage used to add \s-1BB\s0 to inheritance \s-1EBB\s0 in
10138 \&\s-1LRA.\s0  The default value of the parameter is 40.  The value was chosen
10139 from numerous runs of \s-1SPEC2000\s0 on x86\-64.
10140 .IP "\fBloop-invariant-max-bbs-in-loop\fR" 4
10141 .IX Item "loop-invariant-max-bbs-in-loop"
10142 Loop invariant motion can be very expensive, both in compilation time and
10143 in amount of needed compile-time memory, with very large loops.  Loops
10144 with more basic blocks than this parameter won't have loop invariant
10145 motion optimization performed on them.  The default value of the
10146 parameter is 1000 for \fB\-O1\fR and 10000 for \fB\-O2\fR and above.
10147 .IP "\fBloop-max-datarefs-for-datadeps\fR" 4
10148 .IX Item "loop-max-datarefs-for-datadeps"
10149 Building data dependencies is expensive for very large loops.  This
10150 parameter limits the number of data references in loops that are
10151 considered for data dependence analysis.  These large loops are no
10152 handled by the optimizations using loop data dependencies.
10153 The default value is 1000.
10154 .IP "\fBmax-vartrack-size\fR" 4
10155 .IX Item "max-vartrack-size"
10156 Sets a maximum number of hash table slots to use during variable
10157 tracking dataflow analysis of any function.  If this limit is exceeded
10158 with variable tracking at assignments enabled, analysis for that
10159 function is retried without it, after removing all debug insns from
10160 the function.  If the limit is exceeded even without debug insns, var
10161 tracking analysis is completely disabled for the function.  Setting
10162 the parameter to zero makes it unlimited.
10163 .IP "\fBmax-vartrack-expr-depth\fR" 4
10164 .IX Item "max-vartrack-expr-depth"
10165 Sets a maximum number of recursion levels when attempting to map
10166 variable names or debug temporaries to value expressions.  This trades
10167 compilation time for more complete debug information.  If this is set too
10168 low, value expressions that are available and could be represented in
10169 debug information may end up not being used; setting this higher may
10170 enable the compiler to find more complex debug expressions, but compile
10171 time and memory use may grow.  The default is 12.
10172 .IP "\fBmax-debug-marker-count\fR" 4
10173 .IX Item "max-debug-marker-count"
10174 Sets a threshold on the number of debug markers (e.g. begin stmt
10175 markers) to avoid complexity explosion at inlining or expanding to \s-1RTL.\s0
10176 If a function has more such gimple stmts than the set limit, such stmts
10177 will be dropped from the inlined copy of a function, and from its \s-1RTL\s0
10178 expansion.  The default is 100000.
10179 .IP "\fBmin-nondebug-insn-uid\fR" 4
10180 .IX Item "min-nondebug-insn-uid"
10181 Use uids starting at this parameter for nondebug insns.  The range below
10182 the parameter is reserved exclusively for debug insns created by
10183 \&\fB\-fvar\-tracking\-assignments\fR, but debug insns may get
10184 (non-overlapping) uids above it if the reserved range is exhausted.
10185 .IP "\fBipa-sra-ptr-growth-factor\fR" 4
10186 .IX Item "ipa-sra-ptr-growth-factor"
10187 IPA-SRA replaces a pointer to an aggregate with one or more new
10188 parameters only when their cumulative size is less or equal to
10189 \&\fBipa-sra-ptr-growth-factor\fR times the size of the original
10190 pointer parameter.
10191 .IP "\fBsra-max-scalarization-size-Ospeed\fR" 4
10192 .IX Item "sra-max-scalarization-size-Ospeed"
10193 .PD 0
10194 .IP "\fBsra-max-scalarization-size-Osize\fR" 4
10195 .IX Item "sra-max-scalarization-size-Osize"
10196 .PD
10197 The two Scalar Reduction of Aggregates passes (\s-1SRA\s0 and IPA-SRA) aim to
10198 replace scalar parts of aggregates with uses of independent scalar
10199 variables.  These parameters control the maximum size, in storage units,
10200 of aggregate which is considered for replacement when compiling for
10201 speed
10202 (\fBsra-max-scalarization-size-Ospeed\fR) or size
10203 (\fBsra-max-scalarization-size-Osize\fR) respectively.
10204 .IP "\fBtm-max-aggregate-size\fR" 4
10205 .IX Item "tm-max-aggregate-size"
10206 When making copies of thread-local variables in a transaction, this
10207 parameter specifies the size in bytes after which variables are
10208 saved with the logging functions as opposed to save/restore code
10209 sequence pairs.  This option only applies when using
10210 \&\fB\-fgnu\-tm\fR.
10211 .IP "\fBgraphite-max-nb-scop-params\fR" 4
10212 .IX Item "graphite-max-nb-scop-params"
10213 To avoid exponential effects in the Graphite loop transforms, the
10214 number of parameters in a Static Control Part (SCoP) is bounded.  The
10215 default value is 10 parameters, a value of zero can be used to lift
10216 the bound.  A variable whose value is unknown at compilation time and
10217 defined outside a SCoP is a parameter of the SCoP.
10218 .IP "\fBloop-block-tile-size\fR" 4
10219 .IX Item "loop-block-tile-size"
10220 Loop blocking or strip mining transforms, enabled with
10221 \&\fB\-floop\-block\fR or \fB\-floop\-strip\-mine\fR, strip mine each
10222 loop in the loop nest by a given number of iterations.  The strip
10223 length can be changed using the \fBloop-block-tile-size\fR
10224 parameter.  The default value is 51 iterations.
10225 .IP "\fBloop-unroll-jam-size\fR" 4
10226 .IX Item "loop-unroll-jam-size"
10227 Specify the unroll factor for the \fB\-floop\-unroll\-and\-jam\fR option.  The 
10228 default value is 4.
10229 .IP "\fBloop-unroll-jam-depth\fR" 4
10230 .IX Item "loop-unroll-jam-depth"
10231 Specify the dimension to be unrolled (counting from the most inner loop)
10232 for the  \fB\-floop\-unroll\-and\-jam\fR.  The default value is 2.
10233 .IP "\fBipa-cp-value-list-size\fR" 4
10234 .IX Item "ipa-cp-value-list-size"
10235 IPA-CP attempts to track all possible values and types passed to a function's
10236 parameter in order to propagate them and perform devirtualization.
10237 \&\fBipa-cp-value-list-size\fR is the maximum number of values and types it
10238 stores per one formal parameter of a function.
10239 .IP "\fBipa-cp-eval-threshold\fR" 4
10240 .IX Item "ipa-cp-eval-threshold"
10241 IPA-CP calculates its own score of cloning profitability heuristics
10242 and performs those cloning opportunities with scores that exceed
10243 \&\fBipa-cp-eval-threshold\fR.
10244 .IP "\fBipa-cp-recursion-penalty\fR" 4
10245 .IX Item "ipa-cp-recursion-penalty"
10246 Percentage penalty the recursive functions will receive when they
10247 are evaluated for cloning.
10248 .IP "\fBipa-cp-single-call-penalty\fR" 4
10249 .IX Item "ipa-cp-single-call-penalty"
10250 Percentage penalty functions containing a single call to another
10251 function will receive when they are evaluated for cloning.
10252 .IP "\fBipa-max-agg-items\fR" 4
10253 .IX Item "ipa-max-agg-items"
10254 IPA-CP is also capable to propagate a number of scalar values passed
10255 in an aggregate. \fBipa-max-agg-items\fR controls the maximum
10256 number of such values per one parameter.
10257 .IP "\fBipa-cp-loop-hint-bonus\fR" 4
10258 .IX Item "ipa-cp-loop-hint-bonus"
10259 When IPA-CP determines that a cloning candidate would make the number
10260 of iterations of a loop known, it adds a bonus of
10261 \&\fBipa-cp-loop-hint-bonus\fR to the profitability score of
10262 the candidate.
10263 .IP "\fBipa-cp-array-index-hint-bonus\fR" 4
10264 .IX Item "ipa-cp-array-index-hint-bonus"
10265 When IPA-CP determines that a cloning candidate would make the index of
10266 an array access known, it adds a bonus of
10267 \&\fBipa-cp-array-index-hint-bonus\fR to the profitability
10268 score of the candidate.
10269 .IP "\fBipa-max-aa-steps\fR" 4
10270 .IX Item "ipa-max-aa-steps"
10271 During its analysis of function bodies, IPA-CP employs alias analysis
10272 in order to track values pointed to by function parameters.  In order
10273 not spend too much time analyzing huge functions, it gives up and
10274 consider all memory clobbered after examining
10275 \&\fBipa-max-aa-steps\fR statements modifying memory.
10276 .IP "\fBlto-partitions\fR" 4
10277 .IX Item "lto-partitions"
10278 Specify desired number of partitions produced during \s-1WHOPR\s0 compilation.
10279 The number of partitions should exceed the number of CPUs used for compilation.
10280 The default value is 32.
10281 .IP "\fBlto-min-partition\fR" 4
10282 .IX Item "lto-min-partition"
10283 Size of minimal partition for \s-1WHOPR\s0 (in estimated instructions).
10284 This prevents expenses of splitting very small programs into too many
10285 partitions.
10286 .IP "\fBlto-max-partition\fR" 4
10287 .IX Item "lto-max-partition"
10288 Size of max partition for \s-1WHOPR\s0 (in estimated instructions).
10289 to provide an upper bound for individual size of partition.
10290 Meant to be used only with balanced partitioning.
10291 .IP "\fBcxx-max-namespaces-for-diagnostic-help\fR" 4
10292 .IX Item "cxx-max-namespaces-for-diagnostic-help"
10293 The maximum number of namespaces to consult for suggestions when \*(C+
10294 name lookup fails for an identifier.  The default is 1000.
10295 .IP "\fBsink-frequency-threshold\fR" 4
10296 .IX Item "sink-frequency-threshold"
10297 The maximum relative execution frequency (in percents) of the target block
10298 relative to a statement's original block to allow statement sinking of a
10299 statement.  Larger numbers result in more aggressive statement sinking.
10300 The default value is 75.  A small positive adjustment is applied for
10301 statements with memory operands as those are even more profitable so sink.
10302 .IP "\fBmax-stores-to-sink\fR" 4
10303 .IX Item "max-stores-to-sink"
10304 The maximum number of conditional store pairs that can be sunk.  Set to 0
10305 if either vectorization (\fB\-ftree\-vectorize\fR) or if-conversion
10306 (\fB\-ftree\-loop\-if\-convert\fR) is disabled.  The default is 2.
10307 .IP "\fBallow-store-data-races\fR" 4
10308 .IX Item "allow-store-data-races"
10309 Allow optimizers to introduce new data races on stores.
10310 Set to 1 to allow, otherwise to 0.  This option is enabled by default
10311 at optimization level \fB\-Ofast\fR.
10312 .IP "\fBcase-values-threshold\fR" 4
10313 .IX Item "case-values-threshold"
10314 The smallest number of different values for which it is best to use a
10315 jump-table instead of a tree of conditional branches.  If the value is
10316 0, use the default for the machine.  The default is 0.
10317 .IP "\fBtree-reassoc-width\fR" 4
10318 .IX Item "tree-reassoc-width"
10319 Set the maximum number of instructions executed in parallel in
10320 reassociated tree. This parameter overrides target dependent
10321 heuristics used by default if has non zero value.
10322 .IP "\fBsched-pressure-algorithm\fR" 4
10323 .IX Item "sched-pressure-algorithm"
10324 Choose between the two available implementations of
10325 \&\fB\-fsched\-pressure\fR.  Algorithm 1 is the original implementation
10326 and is the more likely to prevent instructions from being reordered.
10327 Algorithm 2 was designed to be a compromise between the relatively
10328 conservative approach taken by algorithm 1 and the rather aggressive
10329 approach taken by the default scheduler.  It relies more heavily on
10330 having a regular register file and accurate register pressure classes.
10331 See \fIhaifa\-sched.c\fR in the \s-1GCC\s0 sources for more details.
10332 .Sp
10333 The default choice depends on the target.
10334 .IP "\fBmax-slsr-cand-scan\fR" 4
10335 .IX Item "max-slsr-cand-scan"
10336 Set the maximum number of existing candidates that are considered when
10337 seeking a basis for a new straight-line strength reduction candidate.
10338 .IP "\fBasan-globals\fR" 4
10339 .IX Item "asan-globals"
10340 Enable buffer overflow detection for global objects.  This kind
10341 of protection is enabled by default if you are using
10342 \&\fB\-fsanitize=address\fR option.
10343 To disable global objects protection use \fB\-\-param asan\-globals=0\fR.
10344 .IP "\fBasan-stack\fR" 4
10345 .IX Item "asan-stack"
10346 Enable buffer overflow detection for stack objects.  This kind of
10347 protection is enabled by default when using \fB\-fsanitize=address\fR.
10348 To disable stack protection use \fB\-\-param asan\-stack=0\fR option.
10349 .IP "\fBasan-instrument-reads\fR" 4
10350 .IX Item "asan-instrument-reads"
10351 Enable buffer overflow detection for memory reads.  This kind of
10352 protection is enabled by default when using \fB\-fsanitize=address\fR.
10353 To disable memory reads protection use
10354 \&\fB\-\-param asan\-instrument\-reads=0\fR.
10355 .IP "\fBasan-instrument-writes\fR" 4
10356 .IX Item "asan-instrument-writes"
10357 Enable buffer overflow detection for memory writes.  This kind of
10358 protection is enabled by default when using \fB\-fsanitize=address\fR.
10359 To disable memory writes protection use
10360 \&\fB\-\-param asan\-instrument\-writes=0\fR option.
10361 .IP "\fBasan-memintrin\fR" 4
10362 .IX Item "asan-memintrin"
10363 Enable detection for built-in functions.  This kind of protection
10364 is enabled by default when using \fB\-fsanitize=address\fR.
10365 To disable built-in functions protection use
10366 \&\fB\-\-param asan\-memintrin=0\fR.
10367 .IP "\fBasan-use-after-return\fR" 4
10368 .IX Item "asan-use-after-return"
10369 Enable detection of use-after-return.  This kind of protection
10370 is enabled by default when using the \fB\-fsanitize=address\fR option.
10371 To disable it use \fB\-\-param asan\-use\-after\-return=0\fR.
10372 .Sp
10373 Note: By default the check is disabled at run time.  To enable it,
10374 add \f(CW\*(C`detect_stack_use_after_return=1\*(C'\fR to the environment variable
10375 \&\fB\s-1ASAN_OPTIONS\s0\fR.
10376 .IP "\fBasan-instrumentation-with-call-threshold\fR" 4
10377 .IX Item "asan-instrumentation-with-call-threshold"
10378 If number of memory accesses in function being instrumented
10379 is greater or equal to this number, use callbacks instead of inline checks.
10380 E.g. to disable inline code use
10381 \&\fB\-\-param asan\-instrumentation\-with\-call\-threshold=0\fR.
10382 .IP "\fBuse-after-scope-direct-emission-threshold\fR" 4
10383 .IX Item "use-after-scope-direct-emission-threshold"
10384 If the size of a local variable in bytes is smaller or equal to this
10385 number, directly poison (or unpoison) shadow memory instead of using
10386 run-time callbacks.  The default value is 256.
10387 .IP "\fBchkp-max-ctor-size\fR" 4
10388 .IX Item "chkp-max-ctor-size"
10389 Static constructors generated by Pointer Bounds Checker may become very
10390 large and significantly increase compile time at optimization level
10391 \&\fB\-O1\fR and higher.  This parameter is a maximum number of statements
10392 in a single generated constructor.  Default value is 5000.
10393 .IP "\fBmax-fsm-thread-path-insns\fR" 4
10394 .IX Item "max-fsm-thread-path-insns"
10395 Maximum number of instructions to copy when duplicating blocks on a
10396 finite state automaton jump thread path.  The default is 100.
10397 .IP "\fBmax-fsm-thread-length\fR" 4
10398 .IX Item "max-fsm-thread-length"
10399 Maximum number of basic blocks on a finite state automaton jump thread
10400 path.  The default is 10.
10401 .IP "\fBmax-fsm-thread-paths\fR" 4
10402 .IX Item "max-fsm-thread-paths"
10403 Maximum number of new jump thread paths to create for a finite state
10404 automaton.  The default is 50.
10405 .IP "\fBparloops-chunk-size\fR" 4
10406 .IX Item "parloops-chunk-size"
10407 Chunk size of omp schedule for loops parallelized by parloops.  The default
10408 is 0.
10409 .IP "\fBparloops-schedule\fR" 4
10410 .IX Item "parloops-schedule"
10411 Schedule type of omp schedule for loops parallelized by parloops (static,
10412 dynamic, guided, auto, runtime).  The default is static.
10413 .IP "\fBparloops-min-per-thread\fR" 4
10414 .IX Item "parloops-min-per-thread"
10415 The minimum number of iterations per thread of an innermost parallelized
10416 loop for which the parallelized variant is preferred over the single threaded
10417 one.  The default is 100.  Note that for a parallelized loop nest the
10418 minimum number of iterations of the outermost loop per thread is two.
10419 .IP "\fBmax-ssa-name-query-depth\fR" 4
10420 .IX Item "max-ssa-name-query-depth"
10421 Maximum depth of recursion when querying properties of \s-1SSA\s0 names in things
10422 like fold routines.  One level of recursion corresponds to following a
10423 use-def chain.
10424 .IP "\fBhsa-gen-debug-stores\fR" 4
10425 .IX Item "hsa-gen-debug-stores"
10426 Enable emission of special debug stores within \s-1HSA\s0 kernels which are
10427 then read and reported by libgomp plugin.  Generation of these stores
10428 is disabled by default, use \fB\-\-param hsa\-gen\-debug\-stores=1\fR to
10429 enable it.
10430 .IP "\fBmax-speculative-devirt-maydefs\fR" 4
10431 .IX Item "max-speculative-devirt-maydefs"
10432 The maximum number of may-defs we analyze when looking for a must-def
10433 specifying the dynamic type of an object that invokes a virtual call
10434 we may be able to devirtualize speculatively.
10435 .IP "\fBmax-vrp-switch-assertions\fR" 4
10436 .IX Item "max-vrp-switch-assertions"
10437 The maximum number of assertions to add along the default edge of a switch
10438 statement during \s-1VRP.\s0  The default is 10.
10439 .IP "\fBunroll-jam-min-percent\fR" 4
10440 .IX Item "unroll-jam-min-percent"
10441 The minimum percentage of memory references that must be optimized
10442 away for the unroll-and-jam transformation to be considered profitable.
10443 .IP "\fBunroll-jam-max-unroll\fR" 4
10444 .IX Item "unroll-jam-max-unroll"
10445 The maximum number of times the outer loop should be unrolled by
10446 the unroll-and-jam transformation.
10447 .RE
10448 .RS 4
10449 .RE
10450 .SS "Program Instrumentation Options"
10451 .IX Subsection "Program Instrumentation Options"
10452 \&\s-1GCC\s0 supports a number of command-line options that control adding
10453 run-time instrumentation to the code it normally generates.  
10454 For example, one purpose of instrumentation is collect profiling
10455 statistics for use in finding program hot spots, code coverage
10456 analysis, or profile-guided optimizations.
10457 Another class of program instrumentation is adding run-time checking 
10458 to detect programming errors like invalid pointer
10459 dereferences or out-of-bounds array accesses, as well as deliberately
10460 hostile attacks such as stack smashing or \*(C+ vtable hijacking.
10461 There is also a general hook which can be used to implement other
10462 forms of tracing or function-level instrumentation for debug or
10463 program analysis purposes.
10464 .IP "\fB\-p\fR" 4
10465 .IX Item "-p"
10466 Generate extra code to write profile information suitable for the
10467 analysis program \fBprof\fR.  You must use this option when compiling
10468 the source files you want data about, and you must also use it when
10469 linking.
10470 .IP "\fB\-pg\fR" 4
10471 .IX Item "-pg"
10472 Generate extra code to write profile information suitable for the
10473 analysis program \fBgprof\fR.  You must use this option when compiling
10474 the source files you want data about, and you must also use it when
10475 linking.
10476 .IP "\fB\-fprofile\-arcs\fR" 4
10477 .IX Item "-fprofile-arcs"
10478 Add code so that program flow \fIarcs\fR are instrumented.  During
10479 execution the program records how many times each branch and call is
10480 executed and how many times it is taken or returns.  On targets that support
10481 constructors with priority support, profiling properly handles constructors,
10482 destructors and \*(C+ constructors (and destructors) of classes which are used
10483 as a type of a global variable.
10484 .Sp
10485 When the compiled
10486 program exits it saves this data to a file called
10487 \&\fI\fIauxname\fI.gcda\fR for each source file.  The data may be used for
10488 profile-directed optimizations (\fB\-fbranch\-probabilities\fR), or for
10489 test coverage analysis (\fB\-ftest\-coverage\fR).  Each object file's
10490 \&\fIauxname\fR is generated from the name of the output file, if
10491 explicitly specified and it is not the final executable, otherwise it is
10492 the basename of the source file.  In both cases any suffix is removed
10493 (e.g. \fIfoo.gcda\fR for input file \fIdir/foo.c\fR, or
10494 \&\fIdir/foo.gcda\fR for output file specified as \fB\-o dir/foo.o\fR).
10495 .IP "\fB\-\-coverage\fR" 4
10496 .IX Item "--coverage"
10497 This option is used to compile and link code instrumented for coverage
10498 analysis.  The option is a synonym for \fB\-fprofile\-arcs\fR
10499 \&\fB\-ftest\-coverage\fR (when compiling) and \fB\-lgcov\fR (when
10500 linking).  See the documentation for those options for more details.
10501 .RS 4
10502 .IP "*" 4
10503 Compile the source files with \fB\-fprofile\-arcs\fR plus optimization
10504 and code generation options.  For test coverage analysis, use the
10505 additional \fB\-ftest\-coverage\fR option.  You do not need to profile
10506 every source file in a program.
10507 .IP "*" 4
10508 Compile the source files additionally with \fB\-fprofile\-abs\-path\fR
10509 to create absolute path names in the \fI.gcno\fR files.  This allows
10510 \&\fBgcov\fR to find the correct sources in projects where compilations
10511 occur with different working directories.
10512 .IP "*" 4
10513 Link your object files with \fB\-lgcov\fR or \fB\-fprofile\-arcs\fR
10514 (the latter implies the former).
10515 .IP "*" 4
10516 Run the program on a representative workload to generate the arc profile
10517 information.  This may be repeated any number of times.  You can run
10518 concurrent instances of your program, and provided that the file system
10519 supports locking, the data files will be correctly updated.  Unless
10520 a strict \s-1ISO C\s0 dialect option is in effect, \f(CW\*(C`fork\*(C'\fR calls are
10521 detected and correctly handled without double counting.
10522 .IP "*" 4
10523 For profile-directed optimizations, compile the source files again with
10524 the same optimization and code generation options plus
10525 \&\fB\-fbranch\-probabilities\fR.
10526 .IP "*" 4
10527 For test coverage analysis, use \fBgcov\fR to produce human readable
10528 information from the \fI.gcno\fR and \fI.gcda\fR files.  Refer to the
10529 \&\fBgcov\fR documentation for further information.
10530 .RE
10531 .RS 4
10532 .Sp
10533 With \fB\-fprofile\-arcs\fR, for each function of your program \s-1GCC\s0
10534 creates a program flow graph, then finds a spanning tree for the graph.
10535 Only arcs that are not on the spanning tree have to be instrumented: the
10536 compiler adds code to count the number of times that these arcs are
10537 executed.  When an arc is the only exit or only entrance to a block, the
10538 instrumentation code can be added to the block; otherwise, a new basic
10539 block must be created to hold the instrumentation code.
10540 .RE
10541 .IP "\fB\-ftest\-coverage\fR" 4
10542 .IX Item "-ftest-coverage"
10543 Produce a notes file that the \fBgcov\fR code-coverage utility can use to
10544 show program coverage.  Each source file's note file is called
10545 \&\fI\fIauxname\fI.gcno\fR.  Refer to the \fB\-fprofile\-arcs\fR option
10546 above for a description of \fIauxname\fR and instructions on how to
10547 generate test coverage data.  Coverage data matches the source files
10548 more closely if you do not optimize.
10549 .IP "\fB\-fprofile\-abs\-path\fR" 4
10550 .IX Item "-fprofile-abs-path"
10551 Automatically convert relative source file names to absolute path names
10552 in the \fI.gcno\fR files.  This allows \fBgcov\fR to find the correct
10553 sources in projects where compilations occur with different working
10554 directories.
10555 .IP "\fB\-fprofile\-dir=\fR\fIpath\fR" 4
10556 .IX Item "-fprofile-dir=path"
10557 Set the directory to search for the profile data files in to \fIpath\fR.
10558 This option affects only the profile data generated by
10559 \&\fB\-fprofile\-generate\fR, \fB\-ftest\-coverage\fR, \fB\-fprofile\-arcs\fR
10560 and used by \fB\-fprofile\-use\fR and \fB\-fbranch\-probabilities\fR
10561 and its related options.  Both absolute and relative paths can be used.
10562 By default, \s-1GCC\s0 uses the current directory as \fIpath\fR, thus the
10563 profile data file appears in the same directory as the object file.
10564 .IP "\fB\-fprofile\-generate\fR" 4
10565 .IX Item "-fprofile-generate"
10566 .PD 0
10567 .IP "\fB\-fprofile\-generate=\fR\fIpath\fR" 4
10568 .IX Item "-fprofile-generate=path"
10569 .PD
10570 Enable options usually used for instrumenting application to produce
10571 profile useful for later recompilation with profile feedback based
10572 optimization.  You must use \fB\-fprofile\-generate\fR both when
10573 compiling and when linking your program.
10574 .Sp
10575 The following options are enabled: \fB\-fprofile\-arcs\fR, \fB\-fprofile\-values\fR, \fB\-fvpt\fR.
10576 .Sp
10577 If \fIpath\fR is specified, \s-1GCC\s0 looks at the \fIpath\fR to find
10578 the profile feedback data files. See \fB\-fprofile\-dir\fR.
10579 .Sp
10580 To optimize the program based on the collected profile information, use
10581 \&\fB\-fprofile\-use\fR.
10582 .IP "\fB\-fprofile\-update=\fR\fImethod\fR" 4
10583 .IX Item "-fprofile-update=method"
10584 Alter the update method for an application instrumented for profile
10585 feedback based optimization.  The \fImethod\fR argument should be one of
10586 \&\fBsingle\fR, \fBatomic\fR or \fBprefer-atomic\fR.
10587 The first one is useful for single-threaded applications,
10588 while the second one prevents profile corruption by emitting thread-safe code.
10589 .Sp
10590 \&\fBWarning:\fR When an application does not properly join all threads
10591 (or creates an detached thread), a profile file can be still corrupted.
10592 .Sp
10593 Using \fBprefer-atomic\fR would be transformed either to \fBatomic\fR,
10594 when supported by a target, or to \fBsingle\fR otherwise.  The \s-1GCC\s0 driver
10595 automatically selects \fBprefer-atomic\fR when \fB\-pthread\fR
10596 is present in the command line.
10597 .IP "\fB\-fsanitize=address\fR" 4
10598 .IX Item "-fsanitize=address"
10599 Enable AddressSanitizer, a fast memory error detector.
10600 Memory access instructions are instrumented to detect
10601 out-of-bounds and use-after-free bugs.
10602 The option enables \fB\-fsanitize\-address\-use\-after\-scope\fR.
10603 See <\fBhttps://github.com/google/sanitizers/wiki/AddressSanitizer\fR> for
10604 more details.  The run-time behavior can be influenced using the
10605 \&\fB\s-1ASAN_OPTIONS\s0\fR environment variable.  When set to \f(CW\*(C`help=1\*(C'\fR,
10606 the available options are shown at startup of the instrumented program.  See
10607 <\fBhttps://github.com/google/sanitizers/wiki/AddressSanitizerFlags#run\-time\-flags\fR>
10608 for a list of supported options.
10609 The option cannot be combined with \fB\-fsanitize=thread\fR
10610 and/or \fB\-fcheck\-pointer\-bounds\fR.
10611 .IP "\fB\-fsanitize=kernel\-address\fR" 4
10612 .IX Item "-fsanitize=kernel-address"
10613 Enable AddressSanitizer for Linux kernel.
10614 See <\fBhttps://github.com/google/kasan/wiki\fR> for more details.
10615 The option cannot be combined with \fB\-fcheck\-pointer\-bounds\fR.
10616 .IP "\fB\-fsanitize=pointer\-compare\fR" 4
10617 .IX Item "-fsanitize=pointer-compare"
10618 Instrument comparison operation (<, <=, >, >=) with pointer operands.
10619 The option must be combined with either \fB\-fsanitize=kernel\-address\fR or
10620 \&\fB\-fsanitize=address\fR
10621 The option cannot be combined with \fB\-fsanitize=thread\fR
10622 and/or \fB\-fcheck\-pointer\-bounds\fR.
10623 Note: By default the check is disabled at run time.  To enable it,
10624 add \f(CW\*(C`detect_invalid_pointer_pairs=2\*(C'\fR to the environment variable
10625 \&\fB\s-1ASAN_OPTIONS\s0\fR. Using \f(CW\*(C`detect_invalid_pointer_pairs=1\*(C'\fR detects
10626 invalid operation only when both pointers are non-null.
10627 .IP "\fB\-fsanitize=pointer\-subtract\fR" 4
10628 .IX Item "-fsanitize=pointer-subtract"
10629 Instrument subtraction with pointer operands.
10630 The option must be combined with either \fB\-fsanitize=kernel\-address\fR or
10631 \&\fB\-fsanitize=address\fR
10632 The option cannot be combined with \fB\-fsanitize=thread\fR
10633 and/or \fB\-fcheck\-pointer\-bounds\fR.
10634 Note: By default the check is disabled at run time.  To enable it,
10635 add \f(CW\*(C`detect_invalid_pointer_pairs=2\*(C'\fR to the environment variable
10636 \&\fB\s-1ASAN_OPTIONS\s0\fR. Using \f(CW\*(C`detect_invalid_pointer_pairs=1\*(C'\fR detects
10637 invalid operation only when both pointers are non-null.
10638 .IP "\fB\-fsanitize=thread\fR" 4
10639 .IX Item "-fsanitize=thread"
10640 Enable ThreadSanitizer, a fast data race detector.
10641 Memory access instructions are instrumented to detect
10642 data race bugs.  See <\fBhttps://github.com/google/sanitizers/wiki#threadsanitizer\fR> for more
10643 details. The run-time behavior can be influenced using the \fB\s-1TSAN_OPTIONS\s0\fR
10644 environment variable; see
10645 <\fBhttps://github.com/google/sanitizers/wiki/ThreadSanitizerFlags\fR> for a list of
10646 supported options.
10647 The option cannot be combined with \fB\-fsanitize=address\fR,
10648 \&\fB\-fsanitize=leak\fR and/or \fB\-fcheck\-pointer\-bounds\fR.
10649 .Sp
10650 Note that sanitized atomic builtins cannot throw exceptions when
10651 operating on invalid memory addresses with non-call exceptions
10652 (\fB\-fnon\-call\-exceptions\fR).
10653 .IP "\fB\-fsanitize=leak\fR" 4
10654 .IX Item "-fsanitize=leak"
10655 Enable LeakSanitizer, a memory leak detector.
10656 This option only matters for linking of executables and
10657 the executable is linked against a library that overrides \f(CW\*(C`malloc\*(C'\fR
10658 and other allocator functions.  See
10659 <\fBhttps://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer\fR> for more
10660 details.  The run-time behavior can be influenced using the
10661 \&\fB\s-1LSAN_OPTIONS\s0\fR environment variable.
10662 The option cannot be combined with \fB\-fsanitize=thread\fR.
10663 .IP "\fB\-fsanitize=undefined\fR" 4
10664 .IX Item "-fsanitize=undefined"
10665 Enable UndefinedBehaviorSanitizer, a fast undefined behavior detector.
10666 Various computations are instrumented to detect undefined behavior
10667 at runtime.  Current suboptions are:
10668 .RS 4
10669 .IP "\fB\-fsanitize=shift\fR" 4
10670 .IX Item "-fsanitize=shift"
10671 This option enables checking that the result of a shift operation is
10672 not undefined.  Note that what exactly is considered undefined differs
10673 slightly between C and \*(C+, as well as between \s-1ISO C90\s0 and C99, etc.
10674 This option has two suboptions, \fB\-fsanitize=shift\-base\fR and
10675 \&\fB\-fsanitize=shift\-exponent\fR.
10676 .IP "\fB\-fsanitize=shift\-exponent\fR" 4
10677 .IX Item "-fsanitize=shift-exponent"
10678 This option enables checking that the second argument of a shift operation
10679 is not negative and is smaller than the precision of the promoted first
10680 argument.
10681 .IP "\fB\-fsanitize=shift\-base\fR" 4
10682 .IX Item "-fsanitize=shift-base"
10683 If the second argument of a shift operation is within range, check that the
10684 result of a shift operation is not undefined.  Note that what exactly is
10685 considered undefined differs slightly between C and \*(C+, as well as between
10686 \&\s-1ISO C90\s0 and C99, etc.
10687 .IP "\fB\-fsanitize=integer\-divide\-by\-zero\fR" 4
10688 .IX Item "-fsanitize=integer-divide-by-zero"
10689 Detect integer division by zero as well as \f(CW\*(C`INT_MIN / \-1\*(C'\fR division.
10690 .IP "\fB\-fsanitize=unreachable\fR" 4
10691 .IX Item "-fsanitize=unreachable"
10692 With this option, the compiler turns the \f(CW\*(C`_\|_builtin_unreachable\*(C'\fR
10693 call into a diagnostics message call instead.  When reaching the
10694 \&\f(CW\*(C`_\|_builtin_unreachable\*(C'\fR call, the behavior is undefined.
10695 .IP "\fB\-fsanitize=vla\-bound\fR" 4
10696 .IX Item "-fsanitize=vla-bound"
10697 This option instructs the compiler to check that the size of a variable
10698 length array is positive.
10699 .IP "\fB\-fsanitize=null\fR" 4
10700 .IX Item "-fsanitize=null"
10701 This option enables pointer checking.  Particularly, the application
10702 built with this option turned on will issue an error message when it
10703 tries to dereference a \s-1NULL\s0 pointer, or if a reference (possibly an
10704 rvalue reference) is bound to a \s-1NULL\s0 pointer, or if a method is invoked
10705 on an object pointed by a \s-1NULL\s0 pointer.
10706 .IP "\fB\-fsanitize=return\fR" 4
10707 .IX Item "-fsanitize=return"
10708 This option enables return statement checking.  Programs
10709 built with this option turned on will issue an error message
10710 when the end of a non-void function is reached without actually
10711 returning a value.  This option works in \*(C+ only.
10712 .IP "\fB\-fsanitize=signed\-integer\-overflow\fR" 4
10713 .IX Item "-fsanitize=signed-integer-overflow"
10714 This option enables signed integer overflow checking.  We check that
10715 the result of \f(CW\*(C`+\*(C'\fR, \f(CW\*(C`*\*(C'\fR, and both unary and binary \f(CW\*(C`\-\*(C'\fR
10716 does not overflow in the signed arithmetics.  Note, integer promotion
10717 rules must be taken into account.  That is, the following is not an
10718 overflow:
10719 .Sp
10720 .Vb 2
10721 \&        signed char a = SCHAR_MAX;
10722 \&        a++;
10723 .Ve
10724 .IP "\fB\-fsanitize=bounds\fR" 4
10725 .IX Item "-fsanitize=bounds"
10726 This option enables instrumentation of array bounds.  Various out of bounds
10727 accesses are detected.  Flexible array members, flexible array member-like
10728 arrays, and initializers of variables with static storage are not instrumented.
10729 The option cannot be combined with \fB\-fcheck\-pointer\-bounds\fR.
10730 .IP "\fB\-fsanitize=bounds\-strict\fR" 4
10731 .IX Item "-fsanitize=bounds-strict"
10732 This option enables strict instrumentation of array bounds.  Most out of bounds
10733 accesses are detected, including flexible array members and flexible array
10734 member-like arrays.  Initializers of variables with static storage are not
10735 instrumented.  The option cannot be combined
10736 with \fB\-fcheck\-pointer\-bounds\fR.
10737 .IP "\fB\-fsanitize=alignment\fR" 4
10738 .IX Item "-fsanitize=alignment"
10739 This option enables checking of alignment of pointers when they are
10740 dereferenced, or when a reference is bound to insufficiently aligned target,
10741 or when a method or constructor is invoked on insufficiently aligned object.
10742 .IP "\fB\-fsanitize=object\-size\fR" 4
10743 .IX Item "-fsanitize=object-size"
10744 This option enables instrumentation of memory references using the
10745 \&\f(CW\*(C`_\|_builtin_object_size\*(C'\fR function.  Various out of bounds pointer
10746 accesses are detected.
10747 .IP "\fB\-fsanitize=float\-divide\-by\-zero\fR" 4
10748 .IX Item "-fsanitize=float-divide-by-zero"
10749 Detect floating-point division by zero.  Unlike other similar options,
10750 \&\fB\-fsanitize=float\-divide\-by\-zero\fR is not enabled by
10751 \&\fB\-fsanitize=undefined\fR, since floating-point division by zero can
10752 be a legitimate way of obtaining infinities and NaNs.
10753 .IP "\fB\-fsanitize=float\-cast\-overflow\fR" 4
10754 .IX Item "-fsanitize=float-cast-overflow"
10755 This option enables floating-point type to integer conversion checking.
10756 We check that the result of the conversion does not overflow.
10757 Unlike other similar options, \fB\-fsanitize=float\-cast\-overflow\fR is
10758 not enabled by \fB\-fsanitize=undefined\fR.
10759 This option does not work well with \f(CW\*(C`FE_INVALID\*(C'\fR exceptions enabled.
10760 .IP "\fB\-fsanitize=nonnull\-attribute\fR" 4
10761 .IX Item "-fsanitize=nonnull-attribute"
10762 This option enables instrumentation of calls, checking whether null values
10763 are not passed to arguments marked as requiring a non-null value by the
10764 \&\f(CW\*(C`nonnull\*(C'\fR function attribute.
10765 .IP "\fB\-fsanitize=returns\-nonnull\-attribute\fR" 4
10766 .IX Item "-fsanitize=returns-nonnull-attribute"
10767 This option enables instrumentation of return statements in functions
10768 marked with \f(CW\*(C`returns_nonnull\*(C'\fR function attribute, to detect returning
10769 of null values from such functions.
10770 .IP "\fB\-fsanitize=bool\fR" 4
10771 .IX Item "-fsanitize=bool"
10772 This option enables instrumentation of loads from bool.  If a value other
10773 than 0/1 is loaded, a run-time error is issued.
10774 .IP "\fB\-fsanitize=enum\fR" 4
10775 .IX Item "-fsanitize=enum"
10776 This option enables instrumentation of loads from an enum type.  If
10777 a value outside the range of values for the enum type is loaded,
10778 a run-time error is issued.
10779 .IP "\fB\-fsanitize=vptr\fR" 4
10780 .IX Item "-fsanitize=vptr"
10781 This option enables instrumentation of \*(C+ member function calls, member
10782 accesses and some conversions between pointers to base and derived classes,
10783 to verify the referenced object has the correct dynamic type.
10784 .IP "\fB\-fsanitize=pointer\-overflow\fR" 4
10785 .IX Item "-fsanitize=pointer-overflow"
10786 This option enables instrumentation of pointer arithmetics.  If the pointer
10787 arithmetics overflows, a run-time error is issued.
10788 .IP "\fB\-fsanitize=builtin\fR" 4
10789 .IX Item "-fsanitize=builtin"
10790 This option enables instrumentation of arguments to selected builtin
10791 functions.  If an invalid value is passed to such arguments, a run-time
10792 error is issued.  E.g. passing 0 as the argument to \f(CW\*(C`_\|_builtin_ctz\*(C'\fR
10793 or \f(CW\*(C`_\|_builtin_clz\*(C'\fR invokes undefined behavior and is diagnosed
10794 by this option.
10795 .RE
10796 .RS 4
10797 .Sp
10798 While \fB\-ftrapv\fR causes traps for signed overflows to be emitted,
10799 \&\fB\-fsanitize=undefined\fR gives a diagnostic message.
10800 This currently works only for the C family of languages.
10801 .RE
10802 .IP "\fB\-fno\-sanitize=all\fR" 4
10803 .IX Item "-fno-sanitize=all"
10804 This option disables all previously enabled sanitizers.
10805 \&\fB\-fsanitize=all\fR is not allowed, as some sanitizers cannot be used
10806 together.
10807 .IP "\fB\-fasan\-shadow\-offset=\fR\fInumber\fR" 4
10808 .IX Item "-fasan-shadow-offset=number"
10809 This option forces \s-1GCC\s0 to use custom shadow offset in AddressSanitizer checks.
10810 It is useful for experimenting with different shadow memory layouts in
10811 Kernel AddressSanitizer.
10812 .IP "\fB\-fsanitize\-sections=\fR\fIs1\fR\fB,\fR\fIs2\fR\fB,...\fR" 4
10813 .IX Item "-fsanitize-sections=s1,s2,..."
10814 Sanitize global variables in selected user-defined sections.  \fIsi\fR may
10815 contain wildcards.
10816 .IP "\fB\-fsanitize\-recover\fR[\fB=\fR\fIopts\fR]" 4
10817 .IX Item "-fsanitize-recover[=opts]"
10818 \&\fB\-fsanitize\-recover=\fR controls error recovery mode for sanitizers
10819 mentioned in comma-separated list of \fIopts\fR.  Enabling this option
10820 for a sanitizer component causes it to attempt to continue
10821 running the program as if no error happened.  This means multiple
10822 runtime errors can be reported in a single program run, and the exit
10823 code of the program may indicate success even when errors
10824 have been reported.  The \fB\-fno\-sanitize\-recover=\fR option
10825 can be used to alter
10826 this behavior: only the first detected error is reported
10827 and program then exits with a non-zero exit code.
10828 .Sp
10829 Currently this feature only works for \fB\-fsanitize=undefined\fR (and its suboptions
10830 except for \fB\-fsanitize=unreachable\fR and \fB\-fsanitize=return\fR),
10831 \&\fB\-fsanitize=float\-cast\-overflow\fR, \fB\-fsanitize=float\-divide\-by\-zero\fR,
10832 \&\fB\-fsanitize=bounds\-strict\fR,
10833 \&\fB\-fsanitize=kernel\-address\fR and \fB\-fsanitize=address\fR.
10834 For these sanitizers error recovery is turned on by default,
10835 except \fB\-fsanitize=address\fR, for which this feature is experimental.
10836 \&\fB\-fsanitize\-recover=all\fR and \fB\-fno\-sanitize\-recover=all\fR is also
10837 accepted, the former enables recovery for all sanitizers that support it,
10838 the latter disables recovery for all sanitizers that support it.
10839 .Sp
10840 Even if a recovery mode is turned on the compiler side, it needs to be also
10841 enabled on the runtime library side, otherwise the failures are still fatal.
10842 The runtime library defaults to \f(CW\*(C`halt_on_error=0\*(C'\fR for
10843 ThreadSanitizer and UndefinedBehaviorSanitizer, while default value for
10844 AddressSanitizer is \f(CW\*(C`halt_on_error=1\*(C'\fR. This can be overridden through
10845 setting the \f(CW\*(C`halt_on_error\*(C'\fR flag in the corresponding environment variable.
10846 .Sp
10847 Syntax without an explicit \fIopts\fR parameter is deprecated.  It is
10848 equivalent to specifying an \fIopts\fR list of:
10849 .Sp
10850 .Vb 1
10851 \&        undefined,float\-cast\-overflow,float\-divide\-by\-zero,bounds\-strict
10852 .Ve
10853 .IP "\fB\-fsanitize\-address\-use\-after\-scope\fR" 4
10854 .IX Item "-fsanitize-address-use-after-scope"
10855 Enable sanitization of local variables to detect use-after-scope bugs.
10856 The option sets \fB\-fstack\-reuse\fR to \fBnone\fR.
10857 .IP "\fB\-fsanitize\-undefined\-trap\-on\-error\fR" 4
10858 .IX Item "-fsanitize-undefined-trap-on-error"
10859 The \fB\-fsanitize\-undefined\-trap\-on\-error\fR option instructs the compiler to
10860 report undefined behavior using \f(CW\*(C`_\|_builtin_trap\*(C'\fR rather than
10861 a \f(CW\*(C`libubsan\*(C'\fR library routine.  The advantage of this is that the
10862 \&\f(CW\*(C`libubsan\*(C'\fR library is not needed and is not linked in, so this
10863 is usable even in freestanding environments.
10864 .IP "\fB\-fsanitize\-coverage=trace\-pc\fR" 4
10865 .IX Item "-fsanitize-coverage=trace-pc"
10866 Enable coverage-guided fuzzing code instrumentation.
10867 Inserts a call to \f(CW\*(C`_\|_sanitizer_cov_trace_pc\*(C'\fR into every basic block.
10868 .IP "\fB\-fsanitize\-coverage=trace\-cmp\fR" 4
10869 .IX Item "-fsanitize-coverage=trace-cmp"
10870 Enable dataflow guided fuzzing code instrumentation.
10871 Inserts a call to \f(CW\*(C`_\|_sanitizer_cov_trace_cmp1\*(C'\fR,
10872 \&\f(CW\*(C`_\|_sanitizer_cov_trace_cmp2\*(C'\fR, \f(CW\*(C`_\|_sanitizer_cov_trace_cmp4\*(C'\fR or
10873 \&\f(CW\*(C`_\|_sanitizer_cov_trace_cmp8\*(C'\fR for integral comparison with both operands
10874 variable or \f(CW\*(C`_\|_sanitizer_cov_trace_const_cmp1\*(C'\fR,
10875 \&\f(CW\*(C`_\|_sanitizer_cov_trace_const_cmp2\*(C'\fR,
10876 \&\f(CW\*(C`_\|_sanitizer_cov_trace_const_cmp4\*(C'\fR or
10877 \&\f(CW\*(C`_\|_sanitizer_cov_trace_const_cmp8\*(C'\fR for integral comparison with one
10878 operand constant, \f(CW\*(C`_\|_sanitizer_cov_trace_cmpf\*(C'\fR or
10879 \&\f(CW\*(C`_\|_sanitizer_cov_trace_cmpd\*(C'\fR for float or double comparisons and
10880 \&\f(CW\*(C`_\|_sanitizer_cov_trace_switch\*(C'\fR for switch statements.
10881 .IP "\fB\-fbounds\-check\fR" 4
10882 .IX Item "-fbounds-check"
10883 For front ends that support it, generate additional code to check that
10884 indices used to access arrays are within the declared range.  This is
10885 currently only supported by the Fortran front end, where this option
10886 defaults to false.
10887 .IP "\fB\-fcheck\-pointer\-bounds\fR" 4
10888 .IX Item "-fcheck-pointer-bounds"
10889 Enable Pointer Bounds Checker instrumentation.  Each memory reference
10890 is instrumented with checks of the pointer used for memory access against
10891 bounds associated with that pointer.
10892 .Sp
10893 Currently there
10894 is only an implementation for Intel \s-1MPX\s0 available, thus x86 GNU/Linux target
10895 and \fB\-mmpx\fR are required to enable this feature.  
10896 MPX-based instrumentation requires
10897 a runtime library to enable \s-1MPX\s0 in hardware and handle bounds
10898 violation signals.  By default when \fB\-fcheck\-pointer\-bounds\fR
10899 and \fB\-mmpx\fR options are used to link a program, the \s-1GCC\s0 driver
10900 links against the \fIlibmpx\fR and \fIlibmpxwrappers\fR libraries.
10901 Bounds checking on calls to dynamic libraries requires a linker
10902 with \fB\-z bndplt\fR support; if \s-1GCC\s0 was configured with a linker
10903 without support for this option (including the Gold linker and older
10904 versions of ld), a warning is given if you link with \fB\-mmpx\fR
10905 without also specifying \fB\-static\fR, since the overall effectiveness
10906 of the bounds checking protection is reduced.
10907 See also \fB\-static\-libmpxwrappers\fR.
10908 .Sp
10909 MPX-based instrumentation
10910 may be used for debugging and also may be included in production code
10911 to increase program security.  Depending on usage, you may
10912 have different requirements for the runtime library.  The current version
10913 of the \s-1MPX\s0 runtime library is more oriented for use as a debugging
10914 tool.  \s-1MPX\s0 runtime library usage implies \fB\-lpthread\fR.  See
10915 also \fB\-static\-libmpx\fR.  The runtime library  behavior can be
10916 influenced using various \fBCHKP_RT_*\fR environment variables.  See
10917 <\fBhttps://gcc.gnu.org/wiki/Intel%20MPX%20support%20in%20the%20GCC%20compiler\fR>
10918 for more details.
10919 .Sp
10920 Generated instrumentation may be controlled by various
10921 \&\fB\-fchkp\-*\fR options and by the \f(CW\*(C`bnd_variable_size\*(C'\fR
10922 structure field attribute and
10923 \&\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
10924 functions for controlling the Pointer Bounds Checker.
10925 .IP "\fB\-fchkp\-check\-incomplete\-type\fR" 4
10926 .IX Item "-fchkp-check-incomplete-type"
10927 Generate pointer bounds checks for variables with incomplete type.
10928 Enabled by default.
10929 .IP "\fB\-fchkp\-narrow\-bounds\fR" 4
10930 .IX Item "-fchkp-narrow-bounds"
10931 Controls bounds used by Pointer Bounds Checker for pointers to object
10932 fields.  If narrowing is enabled then field bounds are used.  Otherwise
10933 object bounds are used.  See also \fB\-fchkp\-narrow\-to\-innermost\-array\fR
10934 and \fB\-fchkp\-first\-field\-has\-own\-bounds\fR.  Enabled by default.
10935 .IP "\fB\-fchkp\-first\-field\-has\-own\-bounds\fR" 4
10936 .IX Item "-fchkp-first-field-has-own-bounds"
10937 Forces Pointer Bounds Checker to use narrowed bounds for the address of the
10938 first field in the structure.  By default a pointer to the first field has
10939 the same bounds as a pointer to the whole structure.
10940 .IP "\fB\-fchkp\-flexible\-struct\-trailing\-arrays\fR" 4
10941 .IX Item "-fchkp-flexible-struct-trailing-arrays"
10942 Forces Pointer Bounds Checker to treat all trailing arrays in structures as
10943 possibly flexible.  By default only array fields with zero length or that are
10944 marked with attribute bnd_variable_size are treated as flexible.
10945 .IP "\fB\-fchkp\-narrow\-to\-innermost\-array\fR" 4
10946 .IX Item "-fchkp-narrow-to-innermost-array"
10947 Forces Pointer Bounds Checker to use bounds of the innermost arrays in
10948 case of nested static array access.  By default this option is disabled and
10949 bounds of the outermost array are used.
10950 .IP "\fB\-fchkp\-optimize\fR" 4
10951 .IX Item "-fchkp-optimize"
10952 Enables Pointer Bounds Checker optimizations.  Enabled by default at
10953 optimization levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR.
10954 .IP "\fB\-fchkp\-use\-fast\-string\-functions\fR" 4
10955 .IX Item "-fchkp-use-fast-string-functions"
10956 Enables use of \f(CW*_nobnd\fR versions of string functions (not copying bounds)
10957 by Pointer Bounds Checker.  Disabled by default.
10958 .IP "\fB\-fchkp\-use\-nochk\-string\-functions\fR" 4
10959 .IX Item "-fchkp-use-nochk-string-functions"
10960 Enables use of \f(CW*_nochk\fR versions of string functions (not checking bounds)
10961 by Pointer Bounds Checker.  Disabled by default.
10962 .IP "\fB\-fchkp\-use\-static\-bounds\fR" 4
10963 .IX Item "-fchkp-use-static-bounds"
10964 Allow Pointer Bounds Checker to generate static bounds holding
10965 bounds of static variables.  Enabled by default.
10966 .IP "\fB\-fchkp\-use\-static\-const\-bounds\fR" 4
10967 .IX Item "-fchkp-use-static-const-bounds"
10968 Use statically-initialized bounds for constant bounds instead of
10969 generating them each time they are required.  By default enabled when
10970 \&\fB\-fchkp\-use\-static\-bounds\fR is enabled.
10971 .IP "\fB\-fchkp\-treat\-zero\-dynamic\-size\-as\-infinite\fR" 4
10972 .IX Item "-fchkp-treat-zero-dynamic-size-as-infinite"
10973 With this option, objects with incomplete type whose
10974 dynamically-obtained size is zero are treated as having infinite size
10975 instead by Pointer Bounds
10976 Checker.  This option may be helpful if a program is linked with a library
10977 missing size information for some symbols.  Disabled by default.
10978 .IP "\fB\-fchkp\-check\-read\fR" 4
10979 .IX Item "-fchkp-check-read"
10980 Instructs Pointer Bounds Checker to generate checks for all read
10981 accesses to memory.  Enabled by default.
10982 .IP "\fB\-fchkp\-check\-write\fR" 4
10983 .IX Item "-fchkp-check-write"
10984 Instructs Pointer Bounds Checker to generate checks for all write
10985 accesses to memory.  Enabled by default.
10986 .IP "\fB\-fchkp\-store\-bounds\fR" 4
10987 .IX Item "-fchkp-store-bounds"
10988 Instructs Pointer Bounds Checker to generate bounds stores for
10989 pointer writes.  Enabled by default.
10990 .IP "\fB\-fchkp\-instrument\-calls\fR" 4
10991 .IX Item "-fchkp-instrument-calls"
10992 Instructs Pointer Bounds Checker to pass pointer bounds to calls.
10993 Enabled by default.
10994 .IP "\fB\-fchkp\-instrument\-marked\-only\fR" 4
10995 .IX Item "-fchkp-instrument-marked-only"
10996 Instructs Pointer Bounds Checker to instrument only functions
10997 marked with the \f(CW\*(C`bnd_instrument\*(C'\fR attribute.  Disabled by default.
10998 .IP "\fB\-fchkp\-use\-wrappers\fR" 4
10999 .IX Item "-fchkp-use-wrappers"
11000 Allows Pointer Bounds Checker to replace calls to built-in functions
11001 with calls to wrapper functions.  When \fB\-fchkp\-use\-wrappers\fR
11002 is used to link a program, the \s-1GCC\s0 driver automatically links
11003 against \fIlibmpxwrappers\fR.  See also \fB\-static\-libmpxwrappers\fR.
11004 Enabled by default.
11005 .IP "\fB\-fcf\-protection=\fR[\fBfull\fR|\fBbranch\fR|\fBreturn\fR|\fBnone\fR]" 4
11006 .IX Item "-fcf-protection=[full|branch|return|none]"
11007 Enable code instrumentation of control-flow transfers to increase
11008 program security by checking that target addresses of control-flow
11009 transfer instructions (such as indirect function call, function return,
11010 indirect jump) are valid.  This prevents diverting the flow of control
11011 to an unexpected target.  This is intended to protect against such
11012 threats as Return-oriented Programming (\s-1ROP\s0), and similarly
11013 call/jmp\-oriented programming (\s-1COP/JOP\s0).
11014 .Sp
11015 The value \f(CW\*(C`branch\*(C'\fR tells the compiler to implement checking of
11016 validity of control-flow transfer at the point of indirect branch
11017 instructions, i.e. call/jmp instructions.  The value \f(CW\*(C`return\*(C'\fR
11018 implements checking of validity at the point of returning from a
11019 function.  The value \f(CW\*(C`full\*(C'\fR is an alias for specifying both
11020 \&\f(CW\*(C`branch\*(C'\fR and \f(CW\*(C`return\*(C'\fR. The value \f(CW\*(C`none\*(C'\fR turns off
11021 instrumentation.
11022 .Sp
11023 The macro \f(CW\*(C`_\|_CET_\|_\*(C'\fR is defined when \fB\-fcf\-protection\fR is
11024 used.  The first bit of \f(CW\*(C`_\|_CET_\|_\*(C'\fR is set to 1 for the value
11025 \&\f(CW\*(C`branch\*(C'\fR and the second bit of \f(CW\*(C`_\|_CET_\|_\*(C'\fR is set to 1 for
11026 the \f(CW\*(C`return\*(C'\fR.
11027 .Sp
11028 You can also use the \f(CW\*(C`nocf_check\*(C'\fR attribute to identify
11029 which functions and calls should be skipped from instrumentation.
11030 .Sp
11031 Currently the x86 GNU/Linux target provides an implementation based
11032 on Intel Control-flow Enforcement Technology (\s-1CET\s0).
11033 .IP "\fB\-fstack\-protector\fR" 4
11034 .IX Item "-fstack-protector"
11035 Emit extra code to check for buffer overflows, such as stack smashing
11036 attacks.  This is done by adding a guard variable to functions with
11037 vulnerable objects.  This includes functions that call \f(CW\*(C`alloca\*(C'\fR, and
11038 functions with buffers larger than 8 bytes.  The guards are initialized
11039 when a function is entered and then checked when the function exits.
11040 If a guard check fails, an error message is printed and the program exits.
11041 .IP "\fB\-fstack\-protector\-all\fR" 4
11042 .IX Item "-fstack-protector-all"
11043 Like \fB\-fstack\-protector\fR except that all functions are protected.
11044 .IP "\fB\-fstack\-protector\-strong\fR" 4
11045 .IX Item "-fstack-protector-strong"
11046 Like \fB\-fstack\-protector\fR but includes additional functions to
11047 be protected \-\-\- those that have local array definitions, or have
11048 references to local frame addresses.
11049 .IP "\fB\-fstack\-protector\-explicit\fR" 4
11050 .IX Item "-fstack-protector-explicit"
11051 Like \fB\-fstack\-protector\fR but only protects those functions which
11052 have the \f(CW\*(C`stack_protect\*(C'\fR attribute.
11053 .IP "\fB\-fstack\-check\fR" 4
11054 .IX Item "-fstack-check"
11055 Generate code to verify that you do not go beyond the boundary of the
11056 stack.  You should specify this flag if you are running in an
11057 environment with multiple threads, but you only rarely need to specify it in
11058 a single-threaded environment since stack overflow is automatically
11059 detected on nearly all systems if there is only one stack.
11060 .Sp
11061 Note that this switch does not actually cause checking to be done; the
11062 operating system or the language runtime must do that.  The switch causes
11063 generation of code to ensure that they see the stack being extended.
11064 .Sp
11065 You can additionally specify a string parameter: \fBno\fR means no
11066 checking, \fBgeneric\fR means force the use of old-style checking,
11067 \&\fBspecific\fR means use the best checking method and is equivalent
11068 to bare \fB\-fstack\-check\fR.
11069 .Sp
11070 Old-style checking is a generic mechanism that requires no specific
11071 target support in the compiler but comes with the following drawbacks:
11072 .RS 4
11073 .IP "1." 4
11074 .IX Item "1."
11075 Modified allocation strategy for large objects: they are always
11076 allocated dynamically if their size exceeds a fixed threshold.  Note this
11077 may change the semantics of some code.
11078 .IP "2." 4
11079 .IX Item "2."
11080 Fixed limit on the size of the static frame of functions: when it is
11081 topped by a particular function, stack checking is not reliable and
11082 a warning is issued by the compiler.
11083 .IP "3." 4
11084 .IX Item "3."
11085 Inefficiency: because of both the modified allocation strategy and the
11086 generic implementation, code performance is hampered.
11087 .RE
11088 .RS 4
11089 .Sp
11090 Note that old-style stack checking is also the fallback method for
11091 \&\fBspecific\fR if no target support has been added in the compiler.
11092 .Sp
11093 \&\fB\-fstack\-check=\fR is designed for Ada's needs to detect infinite recursion
11094 and stack overflows.  \fBspecific\fR is an excellent choice when compiling
11095 Ada code.  It is not generally sufficient to protect against stack-clash
11096 attacks.  To protect against those you want \fB\-fstack\-clash\-protection\fR.
11097 .RE
11098 .IP "\fB\-fstack\-clash\-protection\fR" 4
11099 .IX Item "-fstack-clash-protection"
11100 Generate code to prevent stack clash style attacks.  When this option is
11101 enabled, the compiler will only allocate one page of stack space at a time
11102 and each page is accessed immediately after allocation.  Thus, it prevents
11103 allocations from jumping over any stack guard page provided by the
11104 operating system.
11105 .Sp
11106 Most targets do not fully support stack clash protection.  However, on
11107 those targets \fB\-fstack\-clash\-protection\fR will protect dynamic stack
11108 allocations.  \fB\-fstack\-clash\-protection\fR may also provide limited
11109 protection for static stack allocations if the target supports
11110 \&\fB\-fstack\-check=specific\fR.
11111 .IP "\fB\-fstack\-limit\-register=\fR\fIreg\fR" 4
11112 .IX Item "-fstack-limit-register=reg"
11113 .PD 0
11114 .IP "\fB\-fstack\-limit\-symbol=\fR\fIsym\fR" 4
11115 .IX Item "-fstack-limit-symbol=sym"
11116 .IP "\fB\-fno\-stack\-limit\fR" 4
11117 .IX Item "-fno-stack-limit"
11118 .PD
11119 Generate code to ensure that the stack does not grow beyond a certain value,
11120 either the value of a register or the address of a symbol.  If a larger
11121 stack is required, a signal is raised at run time.  For most targets,
11122 the signal is raised before the stack overruns the boundary, so
11123 it is possible to catch the signal without taking special precautions.
11124 .Sp
11125 For instance, if the stack starts at absolute address \fB0x80000000\fR
11126 and grows downwards, you can use the flags
11127 \&\fB\-fstack\-limit\-symbol=_\|_stack_limit\fR and
11128 \&\fB\-Wl,\-\-defsym,_\|_stack_limit=0x7ffe0000\fR to enforce a stack limit
11129 of 128KB.  Note that this may only work with the \s-1GNU\s0 linker.
11130 .Sp
11131 You can locally override stack limit checking by using the
11132 \&\f(CW\*(C`no_stack_limit\*(C'\fR function attribute.
11133 .IP "\fB\-fsplit\-stack\fR" 4
11134 .IX Item "-fsplit-stack"
11135 Generate code to automatically split the stack before it overflows.
11136 The resulting program has a discontiguous stack which can only
11137 overflow if the program is unable to allocate any more memory.  This
11138 is most useful when running threaded programs, as it is no longer
11139 necessary to calculate a good stack size to use for each thread.  This
11140 is currently only implemented for the x86 targets running
11141 GNU/Linux.
11142 .Sp
11143 When code compiled with \fB\-fsplit\-stack\fR calls code compiled
11144 without \fB\-fsplit\-stack\fR, there may not be much stack space
11145 available for the latter code to run.  If compiling all code,
11146 including library code, with \fB\-fsplit\-stack\fR is not an option,
11147 then the linker can fix up these calls so that the code compiled
11148 without \fB\-fsplit\-stack\fR always has a large stack.  Support for
11149 this is implemented in the gold linker in \s-1GNU\s0 binutils release 2.21
11150 and later.
11151 .IP "\fB\-fvtable\-verify=\fR[\fBstd\fR|\fBpreinit\fR|\fBnone\fR]" 4
11152 .IX Item "-fvtable-verify=[std|preinit|none]"
11153 This option is only available when compiling \*(C+ code.
11154 It turns on (or off, if using \fB\-fvtable\-verify=none\fR) the security
11155 feature that verifies at run time, for every virtual call, that
11156 the vtable pointer through which the call is made is valid for the type of
11157 the object, and has not been corrupted or overwritten.  If an invalid vtable
11158 pointer is detected at run time, an error is reported and execution of the
11159 program is immediately halted.
11160 .Sp
11161 This option causes run-time data structures to be built at program startup,
11162 which are used for verifying the vtable pointers.  
11163 The options \fBstd\fR and \fBpreinit\fR
11164 control the timing of when these data structures are built.  In both cases the
11165 data structures are built before execution reaches \f(CW\*(C`main\*(C'\fR.  Using
11166 \&\fB\-fvtable\-verify=std\fR causes the data structures to be built after
11167 shared libraries have been loaded and initialized.
11168 \&\fB\-fvtable\-verify=preinit\fR causes them to be built before shared
11169 libraries have been loaded and initialized.
11170 .Sp
11171 If this option appears multiple times in the command line with different
11172 values specified, \fBnone\fR takes highest priority over both \fBstd\fR and
11173 \&\fBpreinit\fR; \fBpreinit\fR takes priority over \fBstd\fR.
11174 .IP "\fB\-fvtv\-debug\fR" 4
11175 .IX Item "-fvtv-debug"
11176 When used in conjunction with \fB\-fvtable\-verify=std\fR or 
11177 \&\fB\-fvtable\-verify=preinit\fR, causes debug versions of the 
11178 runtime functions for the vtable verification feature to be called.  
11179 This flag also causes the compiler to log information about which 
11180 vtable pointers it finds for each class.
11181 This information is written to a file named \fIvtv_set_ptr_data.log\fR 
11182 in the directory named by the environment variable \fB\s-1VTV_LOGS_DIR\s0\fR 
11183 if that is defined or the current working directory otherwise.
11184 .Sp
11185 Note:  This feature \fIappends\fR data to the log file. If you want a fresh log
11186 file, be sure to delete any existing one.
11187 .IP "\fB\-fvtv\-counts\fR" 4
11188 .IX Item "-fvtv-counts"
11189 This is a debugging flag.  When used in conjunction with
11190 \&\fB\-fvtable\-verify=std\fR or \fB\-fvtable\-verify=preinit\fR, this
11191 causes the compiler to keep track of the total number of virtual calls
11192 it encounters and the number of verifications it inserts.  It also
11193 counts the number of calls to certain run-time library functions
11194 that it inserts and logs this information for each compilation unit.
11195 The compiler writes this information to a file named
11196 \&\fIvtv_count_data.log\fR in the directory named by the environment
11197 variable \fB\s-1VTV_LOGS_DIR\s0\fR if that is defined or the current working
11198 directory otherwise.  It also counts the size of the vtable pointer sets
11199 for each class, and writes this information to \fIvtv_class_set_sizes.log\fR
11200 in the same directory.
11201 .Sp
11202 Note:  This feature \fIappends\fR data to the log files.  To get fresh log
11203 files, be sure to delete any existing ones.
11204 .IP "\fB\-finstrument\-functions\fR" 4
11205 .IX Item "-finstrument-functions"
11206 Generate instrumentation calls for entry and exit to functions.  Just
11207 after function entry and just before function exit, the following
11208 profiling functions are called with the address of the current
11209 function and its call site.  (On some platforms,
11210 \&\f(CW\*(C`_\|_builtin_return_address\*(C'\fR does not work beyond the current
11211 function, so the call site information may not be available to the
11212 profiling functions otherwise.)
11213 .Sp
11214 .Vb 4
11215 \&        void _\|_cyg_profile_func_enter (void *this_fn,
11216 \&                                       void *call_site);
11217 \&        void _\|_cyg_profile_func_exit  (void *this_fn,
11218 \&                                       void *call_site);
11219 .Ve
11220 .Sp
11221 The first argument is the address of the start of the current function,
11222 which may be looked up exactly in the symbol table.
11223 .Sp
11224 This instrumentation is also done for functions expanded inline in other
11225 functions.  The profiling calls indicate where, conceptually, the
11226 inline function is entered and exited.  This means that addressable
11227 versions of such functions must be available.  If all your uses of a
11228 function are expanded inline, this may mean an additional expansion of
11229 code size.  If you use \f(CW\*(C`extern inline\*(C'\fR in your C code, an
11230 addressable version of such functions must be provided.  (This is
11231 normally the case anyway, but if you get lucky and the optimizer always
11232 expands the functions inline, you might have gotten away without
11233 providing static copies.)
11234 .Sp
11235 A function may be given the attribute \f(CW\*(C`no_instrument_function\*(C'\fR, in
11236 which case this instrumentation is not done.  This can be used, for
11237 example, for the profiling functions listed above, high-priority
11238 interrupt routines, and any functions from which the profiling functions
11239 cannot safely be called (perhaps signal handlers, if the profiling
11240 routines generate output or allocate memory).
11241 .IP "\fB\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,...\fR" 4
11242 .IX Item "-finstrument-functions-exclude-file-list=file,file,..."
11243 Set the list of functions that are excluded from instrumentation (see
11244 the description of \fB\-finstrument\-functions\fR).  If the file that
11245 contains a function definition matches with one of \fIfile\fR, then
11246 that function is not instrumented.  The match is done on substrings:
11247 if the \fIfile\fR parameter is a substring of the file name, it is
11248 considered to be a match.
11249 .Sp
11250 For example:
11251 .Sp
11252 .Vb 1
11253 \&        \-finstrument\-functions\-exclude\-file\-list=/bits/stl,include/sys
11254 .Ve
11255 .Sp
11256 excludes any inline function defined in files whose pathnames
11257 contain \fI/bits/stl\fR or \fIinclude/sys\fR.
11258 .Sp
11259 If, for some reason, you want to include letter \fB,\fR in one of
11260 \&\fIsym\fR, write \fB,\fR. For example,
11261 \&\fB\-finstrument\-functions\-exclude\-file\-list=',,tmp'\fR
11262 (note the single quote surrounding the option).
11263 .IP "\fB\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,...\fR" 4
11264 .IX Item "-finstrument-functions-exclude-function-list=sym,sym,..."
11265 This is similar to \fB\-finstrument\-functions\-exclude\-file\-list\fR,
11266 but this option sets the list of function names to be excluded from
11267 instrumentation.  The function name to be matched is its user-visible
11268 name, such as \f(CW\*(C`vector<int> blah(const vector<int> &)\*(C'\fR, not the
11269 internal mangled name (e.g., \f(CW\*(C`_Z4blahRSt6vectorIiSaIiEE\*(C'\fR).  The
11270 match is done on substrings: if the \fIsym\fR parameter is a substring
11271 of the function name, it is considered to be a match.  For C99 and \*(C+
11272 extended identifiers, the function name must be given in \s-1UTF\-8,\s0 not
11273 using universal character names.
11274 .IP "\fB\-fpatchable\-function\-entry=\fR\fIN\fR\fB[,\fR\fIM\fR\fB]\fR" 4
11275 .IX Item "-fpatchable-function-entry=N[,M]"
11276 Generate \fIN\fR NOPs right at the beginning
11277 of each function, with the function entry point before the \fIM\fRth \s-1NOP.\s0
11278 If \fIM\fR is omitted, it defaults to \f(CW0\fR so the
11279 function entry points to the address just at the first \s-1NOP.\s0
11280 The \s-1NOP\s0 instructions reserve extra space which can be used to patch in
11281 any desired instrumentation at run time, provided that the code segment
11282 is writable.  The amount of space is controllable indirectly via
11283 the number of NOPs; the \s-1NOP\s0 instruction used corresponds to the instruction
11284 emitted by the internal \s-1GCC\s0 back-end interface \f(CW\*(C`gen_nop\*(C'\fR.  This behavior
11285 is target-specific and may also depend on the architecture variant and/or
11286 other compilation options.
11287 .Sp
11288 For run-time identification, the starting addresses of these areas,
11289 which correspond to their respective function entries minus \fIM\fR,
11290 are additionally collected in the \f(CW\*(C`_\|_patchable_function_entries\*(C'\fR
11291 section of the resulting binary.
11292 .Sp
11293 Note that the value of \f(CW\*(C`_\|_attribute_\|_ ((patchable_function_entry
11294 (N,M)))\*(C'\fR takes precedence over command-line option
11295 \&\fB\-fpatchable\-function\-entry=N,M\fR.  This can be used to increase
11296 the area size or to remove it completely on a single function.
11297 If \f(CW\*(C`N=0\*(C'\fR, no pad location is recorded.
11298 .Sp
11299 The \s-1NOP\s0 instructions are inserted at\-\-\-and maybe before, depending on
11300 \&\fIM\fR\-\-\-the function entry address, even before the prologue.
11301 .SS "Options Controlling the Preprocessor"
11302 .IX Subsection "Options Controlling the Preprocessor"
11303 These options control the C preprocessor, which is run on each C source
11304 file before actual compilation.
11305 .PP
11306 If you use the \fB\-E\fR option, nothing is done except preprocessing.
11307 Some of these options make sense only together with \fB\-E\fR because
11308 they cause the preprocessor output to be unsuitable for actual
11309 compilation.
11310 .PP
11311 In addition to the options listed here, there are a number of options 
11312 to control search paths for include files documented in 
11313 \&\fBDirectory Options\fR.  
11314 Options to control preprocessor diagnostics are listed in 
11315 \&\fBWarning Options\fR.
11316 .IP "\fB\-D\fR \fIname\fR" 4
11317 .IX Item "-D name"
11318 Predefine \fIname\fR as a macro, with definition \f(CW1\fR.
11319 .IP "\fB\-D\fR \fIname\fR\fB=\fR\fIdefinition\fR" 4
11320 .IX Item "-D name=definition"
11321 The contents of \fIdefinition\fR are tokenized and processed as if
11322 they appeared during translation phase three in a \fB#define\fR
11323 directive.  In particular, the definition is truncated by
11324 embedded newline characters.
11325 .Sp
11326 If you are invoking the preprocessor from a shell or shell-like
11327 program you may need to use the shell's quoting syntax to protect
11328 characters such as spaces that have a meaning in the shell syntax.
11329 .Sp
11330 If you wish to define a function-like macro on the command line, write
11331 its argument list with surrounding parentheses before the equals sign
11332 (if any).  Parentheses are meaningful to most shells, so you should
11333 quote the option.  With \fBsh\fR and \fBcsh\fR,
11334 \&\fB\-D'\fR\fIname\fR\fB(\fR\fIargs...\fR\fB)=\fR\fIdefinition\fR\fB'\fR works.
11335 .Sp
11336 \&\fB\-D\fR and \fB\-U\fR options are processed in the order they
11337 are given on the command line.  All \fB\-imacros\fR \fIfile\fR and
11338 \&\fB\-include\fR \fIfile\fR options are processed after all
11339 \&\fB\-D\fR and \fB\-U\fR options.
11340 .IP "\fB\-U\fR \fIname\fR" 4
11341 .IX Item "-U name"
11342 Cancel any previous definition of \fIname\fR, either built in or
11343 provided with a \fB\-D\fR option.
11344 .IP "\fB\-include\fR \fIfile\fR" 4
11345 .IX Item "-include file"
11346 Process \fIfile\fR as if \f(CW\*(C`#include "file"\*(C'\fR appeared as the first
11347 line of the primary source file.  However, the first directory searched
11348 for \fIfile\fR is the preprocessor's working directory \fIinstead of\fR
11349 the directory containing the main source file.  If not found there, it
11350 is searched for in the remainder of the \f(CW\*(C`#include "..."\*(C'\fR search
11351 chain as normal.
11352 .Sp
11353 If multiple \fB\-include\fR options are given, the files are included
11354 in the order they appear on the command line.
11355 .IP "\fB\-imacros\fR \fIfile\fR" 4
11356 .IX Item "-imacros file"
11357 Exactly like \fB\-include\fR, except that any output produced by
11358 scanning \fIfile\fR is thrown away.  Macros it defines remain defined.
11359 This allows you to acquire all the macros from a header without also
11360 processing its declarations.
11361 .Sp
11362 All files specified by \fB\-imacros\fR are processed before all files
11363 specified by \fB\-include\fR.
11364 .IP "\fB\-undef\fR" 4
11365 .IX Item "-undef"
11366 Do not predefine any system-specific or GCC-specific macros.  The
11367 standard predefined macros remain defined.
11368 .IP "\fB\-pthread\fR" 4
11369 .IX Item "-pthread"
11370 Define additional macros required for using the \s-1POSIX\s0 threads library.
11371 You should use this option consistently for both compilation and linking.
11372 This option is supported on GNU/Linux targets, most other Unix derivatives,
11373 and also on x86 Cygwin and MinGW targets.
11374 .IP "\fB\-M\fR" 4
11375 .IX Item "-M"
11376 Instead of outputting the result of preprocessing, output a rule
11377 suitable for \fBmake\fR describing the dependencies of the main
11378 source file.  The preprocessor outputs one \fBmake\fR rule containing
11379 the object file name for that source file, a colon, and the names of all
11380 the included files, including those coming from \fB\-include\fR or
11381 \&\fB\-imacros\fR command-line options.
11382 .Sp
11383 Unless specified explicitly (with \fB\-MT\fR or \fB\-MQ\fR), the
11384 object file name consists of the name of the source file with any
11385 suffix replaced with object file suffix and with any leading directory
11386 parts removed.  If there are many included files then the rule is
11387 split into several lines using \fB\e\fR\-newline.  The rule has no
11388 commands.
11389 .Sp
11390 This option does not suppress the preprocessor's debug output, such as
11391 \&\fB\-dM\fR.  To avoid mixing such debug output with the dependency
11392 rules you should explicitly specify the dependency output file with
11393 \&\fB\-MF\fR, or use an environment variable like
11394 \&\fB\s-1DEPENDENCIES_OUTPUT\s0\fR.  Debug output
11395 is still sent to the regular output stream as normal.
11396 .Sp
11397 Passing \fB\-M\fR to the driver implies \fB\-E\fR, and suppresses
11398 warnings with an implicit \fB\-w\fR.
11399 .IP "\fB\-MM\fR" 4
11400 .IX Item "-MM"
11401 Like \fB\-M\fR but do not mention header files that are found in
11402 system header directories, nor header files that are included,
11403 directly or indirectly, from such a header.
11404 .Sp
11405 This implies that the choice of angle brackets or double quotes in an
11406 \&\fB#include\fR directive does not in itself determine whether that
11407 header appears in \fB\-MM\fR dependency output.
11408 .IP "\fB\-MF\fR \fIfile\fR" 4
11409 .IX Item "-MF file"
11410 When used with \fB\-M\fR or \fB\-MM\fR, specifies a
11411 file to write the dependencies to.  If no \fB\-MF\fR switch is given
11412 the preprocessor sends the rules to the same place it would send
11413 preprocessed output.
11414 .Sp
11415 When used with the driver options \fB\-MD\fR or \fB\-MMD\fR,
11416 \&\fB\-MF\fR overrides the default dependency output file.
11417 .Sp
11418 If \fIfile\fR is \fI\-\fR, then the dependencies are written to \fIstdout\fR.
11419 .IP "\fB\-MG\fR" 4
11420 .IX Item "-MG"
11421 In conjunction with an option such as \fB\-M\fR requesting
11422 dependency generation, \fB\-MG\fR assumes missing header files are
11423 generated files and adds them to the dependency list without raising
11424 an error.  The dependency filename is taken directly from the
11425 \&\f(CW\*(C`#include\*(C'\fR directive without prepending any path.  \fB\-MG\fR
11426 also suppresses preprocessed output, as a missing header file renders
11427 this useless.
11428 .Sp
11429 This feature is used in automatic updating of makefiles.
11430 .IP "\fB\-MP\fR" 4
11431 .IX Item "-MP"
11432 This option instructs \s-1CPP\s0 to add a phony target for each dependency
11433 other than the main file, causing each to depend on nothing.  These
11434 dummy rules work around errors \fBmake\fR gives if you remove header
11435 files without updating the \fIMakefile\fR to match.
11436 .Sp
11437 This is typical output:
11438 .Sp
11439 .Vb 1
11440 \&        test.o: test.c test.h
11441 \&        
11442 \&        test.h:
11443 .Ve
11444 .IP "\fB\-MT\fR \fItarget\fR" 4
11445 .IX Item "-MT target"
11446 Change the target of the rule emitted by dependency generation.  By
11447 default \s-1CPP\s0 takes the name of the main input file, deletes any
11448 directory components and any file suffix such as \fB.c\fR, and
11449 appends the platform's usual object suffix.  The result is the target.
11450 .Sp
11451 An \fB\-MT\fR option sets the target to be exactly the string you
11452 specify.  If you want multiple targets, you can specify them as a single
11453 argument to \fB\-MT\fR, or use multiple \fB\-MT\fR options.
11454 .Sp
11455 For example, \fB\-MT\ '$(objpfx)foo.o'\fR might give
11456 .Sp
11457 .Vb 1
11458 \&        $(objpfx)foo.o: foo.c
11459 .Ve
11460 .IP "\fB\-MQ\fR \fItarget\fR" 4
11461 .IX Item "-MQ target"
11462 Same as \fB\-MT\fR, but it quotes any characters which are special to
11463 Make.  \fB\-MQ\ '$(objpfx)foo.o'\fR gives
11464 .Sp
11465 .Vb 1
11466 \&        $$(objpfx)foo.o: foo.c
11467 .Ve
11468 .Sp
11469 The default target is automatically quoted, as if it were given with
11470 \&\fB\-MQ\fR.
11471 .IP "\fB\-MD\fR" 4
11472 .IX Item "-MD"
11473 \&\fB\-MD\fR is equivalent to \fB\-M \-MF\fR \fIfile\fR, except that
11474 \&\fB\-E\fR is not implied.  The driver determines \fIfile\fR based on
11475 whether an \fB\-o\fR option is given.  If it is, the driver uses its
11476 argument but with a suffix of \fI.d\fR, otherwise it takes the name
11477 of the input file, removes any directory components and suffix, and
11478 applies a \fI.d\fR suffix.
11479 .Sp
11480 If \fB\-MD\fR is used in conjunction with \fB\-E\fR, any
11481 \&\fB\-o\fR switch is understood to specify the dependency output file, but if used without \fB\-E\fR, each \fB\-o\fR
11482 is understood to specify a target object file.
11483 .Sp
11484 Since \fB\-E\fR is not implied, \fB\-MD\fR can be used to generate
11485 a dependency output file as a side effect of the compilation process.
11486 .IP "\fB\-MMD\fR" 4
11487 .IX Item "-MMD"
11488 Like \fB\-MD\fR except mention only user header files, not system
11489 header files.
11490 .IP "\fB\-fpreprocessed\fR" 4
11491 .IX Item "-fpreprocessed"
11492 Indicate to the preprocessor that the input file has already been
11493 preprocessed.  This suppresses things like macro expansion, trigraph
11494 conversion, escaped newline splicing, and processing of most directives.
11495 The preprocessor still recognizes and removes comments, so that you can
11496 pass a file preprocessed with \fB\-C\fR to the compiler without
11497 problems.  In this mode the integrated preprocessor is little more than
11498 a tokenizer for the front ends.
11499 .Sp
11500 \&\fB\-fpreprocessed\fR is implicit if the input file has one of the
11501 extensions \fB.i\fR, \fB.ii\fR or \fB.mi\fR.  These are the
11502 extensions that \s-1GCC\s0 uses for preprocessed files created by
11503 \&\fB\-save\-temps\fR.
11504 .IP "\fB\-fdirectives\-only\fR" 4
11505 .IX Item "-fdirectives-only"
11506 When preprocessing, handle directives, but do not expand macros.
11507 .Sp
11508 The option's behavior depends on the \fB\-E\fR and \fB\-fpreprocessed\fR
11509 options.
11510 .Sp
11511 With \fB\-E\fR, preprocessing is limited to the handling of directives
11512 such as \f(CW\*(C`#define\*(C'\fR, \f(CW\*(C`#ifdef\*(C'\fR, and \f(CW\*(C`#error\*(C'\fR.  Other
11513 preprocessor operations, such as macro expansion and trigraph
11514 conversion are not performed.  In addition, the \fB\-dD\fR option is
11515 implicitly enabled.
11516 .Sp
11517 With \fB\-fpreprocessed\fR, predefinition of command line and most
11518 builtin macros is disabled.  Macros such as \f(CW\*(C`_\|_LINE_\|_\*(C'\fR, which are
11519 contextually dependent, are handled normally.  This enables compilation of
11520 files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
11521 .Sp
11522 With both \fB\-E\fR and \fB\-fpreprocessed\fR, the rules for
11523 \&\fB\-fpreprocessed\fR take precedence.  This enables full preprocessing of
11524 files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
11525 .IP "\fB\-fdollars\-in\-identifiers\fR" 4
11526 .IX Item "-fdollars-in-identifiers"
11527 Accept \fB$\fR in identifiers.
11528 .IP "\fB\-fextended\-identifiers\fR" 4
11529 .IX Item "-fextended-identifiers"
11530 Accept universal character names in identifiers.  This option is
11531 enabled by default for C99 (and later C standard versions) and \*(C+.
11532 .IP "\fB\-fno\-canonical\-system\-headers\fR" 4
11533 .IX Item "-fno-canonical-system-headers"
11534 When preprocessing, do not shorten system header paths with canonicalization.
11535 .IP "\fB\-ftabstop=\fR\fIwidth\fR" 4
11536 .IX Item "-ftabstop=width"
11537 Set the distance between tab stops.  This helps the preprocessor report
11538 correct column numbers in warnings or errors, even if tabs appear on the
11539 line.  If the value is less than 1 or greater than 100, the option is
11540 ignored.  The default is 8.
11541 .IP "\fB\-ftrack\-macro\-expansion\fR[\fB=\fR\fIlevel\fR]" 4
11542 .IX Item "-ftrack-macro-expansion[=level]"
11543 Track locations of tokens across macro expansions. This allows the
11544 compiler to emit diagnostic about the current macro expansion stack
11545 when a compilation error occurs in a macro expansion. Using this
11546 option makes the preprocessor and the compiler consume more
11547 memory. The \fIlevel\fR parameter can be used to choose the level of
11548 precision of token location tracking thus decreasing the memory
11549 consumption if necessary. Value \fB0\fR of \fIlevel\fR de-activates
11550 this option. Value \fB1\fR tracks tokens locations in a
11551 degraded mode for the sake of minimal memory overhead. In this mode
11552 all tokens resulting from the expansion of an argument of a
11553 function-like macro have the same location. Value \fB2\fR tracks
11554 tokens locations completely. This value is the most memory hungry.
11555 When this option is given no argument, the default parameter value is
11556 \&\fB2\fR.
11557 .Sp
11558 Note that \f(CW\*(C`\-ftrack\-macro\-expansion=2\*(C'\fR is activated by default.
11559 .IP "\fB\-fmacro\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR" 4
11560 .IX Item "-fmacro-prefix-map=old=new"
11561 When preprocessing files residing in directory \fI\fIold\fI\fR,
11562 expand the \f(CW\*(C`_\|_FILE_\|_\*(C'\fR and \f(CW\*(C`_\|_BASE_FILE_\|_\*(C'\fR macros as if the
11563 files resided in directory \fI\fInew\fI\fR instead.  This can be used
11564 to change an absolute path to a relative path by using \fI.\fR for
11565 \&\fInew\fR which can result in more reproducible builds that are
11566 location independent.  This option also affects
11567 \&\f(CW\*(C`_\|_builtin_FILE()\*(C'\fR during compilation.  See also
11568 \&\fB\-ffile\-prefix\-map\fR.
11569 .IP "\fB\-fexec\-charset=\fR\fIcharset\fR" 4
11570 .IX Item "-fexec-charset=charset"
11571 Set the execution character set, used for string and character
11572 constants.  The default is \s-1UTF\-8.\s0  \fIcharset\fR can be any encoding
11573 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
11574 .IP "\fB\-fwide\-exec\-charset=\fR\fIcharset\fR" 4
11575 .IX Item "-fwide-exec-charset=charset"
11576 Set the wide execution character set, used for wide string and
11577 character constants.  The default is \s-1UTF\-32\s0 or \s-1UTF\-16,\s0 whichever
11578 corresponds to the width of \f(CW\*(C`wchar_t\*(C'\fR.  As with
11579 \&\fB\-fexec\-charset\fR, \fIcharset\fR can be any encoding supported
11580 by the system's \f(CW\*(C`iconv\*(C'\fR library routine; however, you will have
11581 problems with encodings that do not fit exactly in \f(CW\*(C`wchar_t\*(C'\fR.
11582 .IP "\fB\-finput\-charset=\fR\fIcharset\fR" 4
11583 .IX Item "-finput-charset=charset"
11584 Set the input character set, used for translation from the character
11585 set of the input file to the source character set used by \s-1GCC.\s0  If the
11586 locale does not specify, or \s-1GCC\s0 cannot get this information from the
11587 locale, the default is \s-1UTF\-8.\s0  This can be overridden by either the locale
11588 or this command-line option.  Currently the command-line option takes
11589 precedence if there's a conflict.  \fIcharset\fR can be any encoding
11590 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
11591 .IP "\fB\-fpch\-deps\fR" 4
11592 .IX Item "-fpch-deps"
11593 When using precompiled headers, this flag
11594 causes the dependency-output flags to also list the files from the
11595 precompiled header's dependencies.  If not specified, only the
11596 precompiled header are listed and not the files that were used to
11597 create it, because those files are not consulted when a precompiled
11598 header is used.
11599 .IP "\fB\-fpch\-preprocess\fR" 4
11600 .IX Item "-fpch-preprocess"
11601 This option allows use of a precompiled header together with \fB\-E\fR.  It inserts a special \f(CW\*(C`#pragma\*(C'\fR,
11602 \&\f(CW\*(C`#pragma GCC pch_preprocess "\f(CIfilename\f(CW"\*(C'\fR in the output to mark
11603 the place where the precompiled header was found, and its \fIfilename\fR.
11604 When \fB\-fpreprocessed\fR is in use, \s-1GCC\s0 recognizes this \f(CW\*(C`#pragma\*(C'\fR
11605 and loads the \s-1PCH.\s0
11606 .Sp
11607 This option is off by default, because the resulting preprocessed output
11608 is only really suitable as input to \s-1GCC.\s0  It is switched on by
11609 \&\fB\-save\-temps\fR.
11610 .Sp
11611 You should not write this \f(CW\*(C`#pragma\*(C'\fR in your own code, but it is
11612 safe to edit the filename if the \s-1PCH\s0 file is available in a different
11613 location.  The filename may be absolute or it may be relative to \s-1GCC\s0's
11614 current directory.
11615 .IP "\fB\-fworking\-directory\fR" 4
11616 .IX Item "-fworking-directory"
11617 Enable generation of linemarkers in the preprocessor output that
11618 let the compiler know the current working directory at the time of
11619 preprocessing.  When this option is enabled, the preprocessor
11620 emits, after the initial linemarker, a second linemarker with the
11621 current working directory followed by two slashes.  \s-1GCC\s0 uses this
11622 directory, when it's present in the preprocessed input, as the
11623 directory emitted as the current working directory in some debugging
11624 information formats.  This option is implicitly enabled if debugging
11625 information is enabled, but this can be inhibited with the negated
11626 form \fB\-fno\-working\-directory\fR.  If the \fB\-P\fR flag is
11627 present in the command line, this option has no effect, since no
11628 \&\f(CW\*(C`#line\*(C'\fR directives are emitted whatsoever.
11629 .IP "\fB\-A\fR \fIpredicate\fR\fB=\fR\fIanswer\fR" 4
11630 .IX Item "-A predicate=answer"
11631 Make an assertion with the predicate \fIpredicate\fR and answer
11632 \&\fIanswer\fR.  This form is preferred to the older form \fB\-A\fR
11633 \&\fIpredicate\fR\fB(\fR\fIanswer\fR\fB)\fR, which is still supported, because
11634 it does not use shell special characters.
11635 .IP "\fB\-A \-\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4
11636 .IX Item "-A -predicate=answer"
11637 Cancel an assertion with the predicate \fIpredicate\fR and answer
11638 \&\fIanswer\fR.
11639 .IP "\fB\-C\fR" 4
11640 .IX Item "-C"
11641 Do not discard comments.  All comments are passed through to the output
11642 file, except for comments in processed directives, which are deleted
11643 along with the directive.
11644 .Sp
11645 You should be prepared for side effects when using \fB\-C\fR; it
11646 causes the preprocessor to treat comments as tokens in their own right.
11647 For example, comments appearing at the start of what would be a
11648 directive line have the effect of turning that line into an ordinary
11649 source line, since the first token on the line is no longer a \fB#\fR.
11650 .IP "\fB\-CC\fR" 4
11651 .IX Item "-CC"
11652 Do not discard comments, including during macro expansion.  This is
11653 like \fB\-C\fR, except that comments contained within macros are
11654 also passed through to the output file where the macro is expanded.
11655 .Sp
11656 In addition to the side effects of the \fB\-C\fR option, the
11657 \&\fB\-CC\fR option causes all \*(C+\-style comments inside a macro
11658 to be converted to C\-style comments.  This is to prevent later use
11659 of that macro from inadvertently commenting out the remainder of
11660 the source line.
11661 .Sp
11662 The \fB\-CC\fR option is generally used to support lint comments.
11663 .IP "\fB\-P\fR" 4
11664 .IX Item "-P"
11665 Inhibit generation of linemarkers in the output from the preprocessor.
11666 This might be useful when running the preprocessor on something that is
11667 not C code, and will be sent to a program which might be confused by the
11668 linemarkers.
11669 .IP "\fB\-traditional\fR" 4
11670 .IX Item "-traditional"
11671 .PD 0
11672 .IP "\fB\-traditional\-cpp\fR" 4
11673 .IX Item "-traditional-cpp"
11674 .PD
11675 Try to imitate the behavior of pre-standard C preprocessors, as
11676 opposed to \s-1ISO C\s0 preprocessors.
11677 See the \s-1GNU CPP\s0 manual for details.
11678 .Sp
11679 Note that \s-1GCC\s0 does not otherwise attempt to emulate a pre-standard 
11680 C compiler, and these options are only supported with the \fB\-E\fR 
11681 switch, or when invoking \s-1CPP\s0 explicitly.
11682 .IP "\fB\-trigraphs\fR" 4
11683 .IX Item "-trigraphs"
11684 Support \s-1ISO C\s0 trigraphs.
11685 These are three-character sequences, all starting with \fB??\fR, that
11686 are defined by \s-1ISO C\s0 to stand for single characters.  For example,
11687 \&\fB??/\fR stands for \fB\e\fR, so \fB'??/n'\fR is a character
11688 constant for a newline.
11689 .Sp
11690 The nine trigraphs and their replacements are
11691 .Sp
11692 .Vb 2
11693 \&        Trigraph:       ??(  ??)  ??<  ??>  ??=  ??/  ??\*(Aq  ??!  ??\-
11694 \&        Replacement:      [    ]    {    }    #    \e    ^    |    ~
11695 .Ve
11696 .Sp
11697 By default, \s-1GCC\s0 ignores trigraphs, but in
11698 standard-conforming modes it converts them.  See the \fB\-std\fR and
11699 \&\fB\-ansi\fR options.
11700 .IP "\fB\-remap\fR" 4
11701 .IX Item "-remap"
11702 Enable special code to work around file systems which only permit very
11703 short file names, such as MS-DOS.
11704 .IP "\fB\-H\fR" 4
11705 .IX Item "-H"
11706 Print the name of each header file used, in addition to other normal
11707 activities.  Each name is indented to show how deep in the
11708 \&\fB#include\fR stack it is.  Precompiled header files are also
11709 printed, even if they are found to be invalid; an invalid precompiled
11710 header file is printed with \fB...x\fR and a valid one with \fB...!\fR .
11711 .IP "\fB\-d\fR\fIletters\fR" 4
11712 .IX Item "-dletters"
11713 Says to make debugging dumps during compilation as specified by
11714 \&\fIletters\fR.  The flags documented here are those relevant to the
11715 preprocessor.  Other \fIletters\fR are interpreted
11716 by the compiler proper, or reserved for future versions of \s-1GCC,\s0 and so
11717 are silently ignored.  If you specify \fIletters\fR whose behavior
11718 conflicts, the result is undefined.
11719 .RS 4
11720 .IP "\fB\-dM\fR" 4
11721 .IX Item "-dM"
11722 Instead of the normal output, generate a list of \fB#define\fR
11723 directives for all the macros defined during the execution of the
11724 preprocessor, including predefined macros.  This gives you a way of
11725 finding out what is predefined in your version of the preprocessor.
11726 Assuming you have no file \fIfoo.h\fR, the command
11727 .Sp
11728 .Vb 1
11729 \&        touch foo.h; cpp \-dM foo.h
11730 .Ve
11731 .Sp
11732 shows all the predefined macros.
11733 .Sp
11734 If you use \fB\-dM\fR without the \fB\-E\fR option, \fB\-dM\fR is
11735 interpreted as a synonym for \fB\-fdump\-rtl\-mach\fR.
11736 .IP "\fB\-dD\fR" 4
11737 .IX Item "-dD"
11738 Like \fB\-dM\fR except in two respects: it does \fInot\fR include the
11739 predefined macros, and it outputs \fIboth\fR the \fB#define\fR
11740 directives and the result of preprocessing.  Both kinds of output go to
11741 the standard output file.
11742 .IP "\fB\-dN\fR" 4
11743 .IX Item "-dN"
11744 Like \fB\-dD\fR, but emit only the macro names, not their expansions.
11745 .IP "\fB\-dI\fR" 4
11746 .IX Item "-dI"
11747 Output \fB#include\fR directives in addition to the result of
11748 preprocessing.
11749 .IP "\fB\-dU\fR" 4
11750 .IX Item "-dU"
11751 Like \fB\-dD\fR except that only macros that are expanded, or whose
11752 definedness is tested in preprocessor directives, are output; the
11753 output is delayed until the use or test of the macro; and
11754 \&\fB#undef\fR directives are also output for macros tested but
11755 undefined at the time.
11756 .RE
11757 .RS 4
11758 .RE
11759 .IP "\fB\-fdebug\-cpp\fR" 4
11760 .IX Item "-fdebug-cpp"
11761 This option is only useful for debugging \s-1GCC.\s0  When used from \s-1CPP\s0 or with
11762 \&\fB\-E\fR, it dumps debugging information about location maps.  Every
11763 token in the output is preceded by the dump of the map its location
11764 belongs to.
11765 .Sp
11766 When used from \s-1GCC\s0 without \fB\-E\fR, this option has no effect.
11767 .IP "\fB\-Wp,\fR\fIoption\fR" 4
11768 .IX Item "-Wp,option"
11769 You can use \fB\-Wp,\fR\fIoption\fR to bypass the compiler driver
11770 and pass \fIoption\fR directly through to the preprocessor.  If
11771 \&\fIoption\fR contains commas, it is split into multiple options at the
11772 commas.  However, many options are modified, translated or interpreted
11773 by the compiler driver before being passed to the preprocessor, and
11774 \&\fB\-Wp\fR forcibly bypasses this phase.  The preprocessor's direct
11775 interface is undocumented and subject to change, so whenever possible
11776 you should avoid using \fB\-Wp\fR and let the driver handle the
11777 options instead.
11778 .IP "\fB\-Xpreprocessor\fR \fIoption\fR" 4
11779 .IX Item "-Xpreprocessor option"
11780 Pass \fIoption\fR as an option to the preprocessor.  You can use this to
11781 supply system-specific preprocessor options that \s-1GCC\s0 does not 
11782 recognize.
11783 .Sp
11784 If you want to pass an option that takes an argument, you must use
11785 \&\fB\-Xpreprocessor\fR twice, once for the option and once for the argument.
11786 .IP "\fB\-no\-integrated\-cpp\fR" 4
11787 .IX Item "-no-integrated-cpp"
11788 Perform preprocessing as a separate pass before compilation.
11789 By default, \s-1GCC\s0 performs preprocessing as an integrated part of
11790 input tokenization and parsing.
11791 If this option is provided, the appropriate language front end
11792 (\fBcc1\fR, \fBcc1plus\fR, or \fBcc1obj\fR for C, \*(C+,
11793 and Objective-C, respectively) is instead invoked twice,
11794 once for preprocessing only and once for actual compilation
11795 of the preprocessed input.
11796 This option may be useful in conjunction with the \fB\-B\fR or
11797 \&\fB\-wrapper\fR options to specify an alternate preprocessor or
11798 perform additional processing of the program source between
11799 normal preprocessing and compilation.
11800 .SS "Passing Options to the Assembler"
11801 .IX Subsection "Passing Options to the Assembler"
11802 You can pass options to the assembler.
11803 .IP "\fB\-Wa,\fR\fIoption\fR" 4
11804 .IX Item "-Wa,option"
11805 Pass \fIoption\fR as an option to the assembler.  If \fIoption\fR
11806 contains commas, it is split into multiple options at the commas.
11807 .IP "\fB\-Xassembler\fR \fIoption\fR" 4
11808 .IX Item "-Xassembler option"
11809 Pass \fIoption\fR as an option to the assembler.  You can use this to
11810 supply system-specific assembler options that \s-1GCC\s0 does not
11811 recognize.
11812 .Sp
11813 If you want to pass an option that takes an argument, you must use
11814 \&\fB\-Xassembler\fR twice, once for the option and once for the argument.
11815 .SS "Options for Linking"
11816 .IX Subsection "Options for Linking"
11817 These options come into play when the compiler links object files into
11818 an executable output file.  They are meaningless if the compiler is
11819 not doing a link step.
11820 .IP "\fIobject-file-name\fR" 4
11821 .IX Item "object-file-name"
11822 A file name that does not end in a special recognized suffix is
11823 considered to name an object file or library.  (Object files are
11824 distinguished from libraries by the linker according to the file
11825 contents.)  If linking is done, these object files are used as input
11826 to the linker.
11827 .IP "\fB\-c\fR" 4
11828 .IX Item "-c"
11829 .PD 0
11830 .IP "\fB\-S\fR" 4
11831 .IX Item "-S"
11832 .IP "\fB\-E\fR" 4
11833 .IX Item "-E"
11834 .PD
11835 If any of these options is used, then the linker is not run, and
11836 object file names should not be used as arguments.
11837 .IP "\fB\-fuse\-ld=bfd\fR" 4
11838 .IX Item "-fuse-ld=bfd"
11839 Use the \fBbfd\fR linker instead of the default linker.
11840 .IP "\fB\-fuse\-ld=gold\fR" 4
11841 .IX Item "-fuse-ld=gold"
11842 Use the \fBgold\fR linker instead of the default linker.
11843 .IP "\fB\-l\fR\fIlibrary\fR" 4
11844 .IX Item "-llibrary"
11845 .PD 0
11846 .IP "\fB\-l\fR \fIlibrary\fR" 4
11847 .IX Item "-l library"
11848 .PD
11849 Search the library named \fIlibrary\fR when linking.  (The second
11850 alternative with the library as a separate argument is only for
11851 \&\s-1POSIX\s0 compliance and is not recommended.)
11852 .Sp
11853 It makes a difference where in the command you write this option; the
11854 linker searches and processes libraries and object files in the order they
11855 are specified.  Thus, \fBfoo.o \-lz bar.o\fR searches library \fBz\fR
11856 after file \fIfoo.o\fR but before \fIbar.o\fR.  If \fIbar.o\fR refers
11857 to functions in \fBz\fR, those functions may not be loaded.
11858 .Sp
11859 The linker searches a standard list of directories for the library,
11860 which is actually a file named \fIlib\fIlibrary\fI.a\fR.  The linker
11861 then uses this file as if it had been specified precisely by name.
11862 .Sp
11863 The directories searched include several standard system directories
11864 plus any that you specify with \fB\-L\fR.
11865 .Sp
11866 Normally the files found this way are library files\-\-\-archive files
11867 whose members are object files.  The linker handles an archive file by
11868 scanning through it for members which define symbols that have so far
11869 been referenced but not defined.  But if the file that is found is an
11870 ordinary object file, it is linked in the usual fashion.  The only
11871 difference between using an \fB\-l\fR option and specifying a file name
11872 is that \fB\-l\fR surrounds \fIlibrary\fR with \fBlib\fR and \fB.a\fR
11873 and searches several directories.
11874 .IP "\fB\-lobjc\fR" 4
11875 .IX Item "-lobjc"
11876 You need this special case of the \fB\-l\fR option in order to
11877 link an Objective-C or Objective\-\*(C+ program.
11878 .IP "\fB\-nostartfiles\fR" 4
11879 .IX Item "-nostartfiles"
11880 Do not use the standard system startup files when linking.
11881 The standard system libraries are used normally, unless \fB\-nostdlib\fR
11882 or \fB\-nodefaultlibs\fR is used.
11883 .IP "\fB\-nodefaultlibs\fR" 4
11884 .IX Item "-nodefaultlibs"
11885 Do not use the standard system libraries when linking.
11886 Only the libraries you specify are passed to the linker, and options
11887 specifying linkage of the system libraries, such as \fB\-static\-libgcc\fR
11888 or \fB\-shared\-libgcc\fR, are ignored.  
11889 The standard startup files are used normally, unless \fB\-nostartfiles\fR
11890 is used.
11891 .Sp
11892 The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR,
11893 \&\f(CW\*(C`memset\*(C'\fR, \f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
11894 These entries are usually resolved by entries in
11895 libc.  These entry points should be supplied through some other
11896 mechanism when this option is specified.
11897 .IP "\fB\-nostdlib\fR" 4
11898 .IX Item "-nostdlib"
11899 Do not use the standard system startup files or libraries when linking.
11900 No startup files and only the libraries you specify are passed to
11901 the linker, and options specifying linkage of the system libraries, such as
11902 \&\fB\-static\-libgcc\fR or \fB\-shared\-libgcc\fR, are ignored.
11903 .Sp
11904 The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR, \f(CW\*(C`memset\*(C'\fR,
11905 \&\f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
11906 These entries are usually resolved by entries in
11907 libc.  These entry points should be supplied through some other
11908 mechanism when this option is specified.
11909 .Sp
11910 One of the standard libraries bypassed by \fB\-nostdlib\fR and
11911 \&\fB\-nodefaultlibs\fR is \fIlibgcc.a\fR, a library of internal subroutines
11912 which \s-1GCC\s0 uses to overcome shortcomings of particular machines, or special
11913 needs for some languages.
11914 .Sp
11915 In most cases, you need \fIlibgcc.a\fR even when you want to avoid
11916 other standard libraries.  In other words, when you specify \fB\-nostdlib\fR
11917 or \fB\-nodefaultlibs\fR you should usually specify \fB\-lgcc\fR as well.
11918 This ensures that you have no unresolved references to internal \s-1GCC\s0
11919 library subroutines.
11920 (An example of such an internal subroutine is \f(CW\*(C`_\|_main\*(C'\fR, used to ensure \*(C+
11921 constructors are called.)
11922 .IP "\fB\-pie\fR" 4
11923 .IX Item "-pie"
11924 Produce a dynamically linked position independent executable on targets
11925 that support it.  For predictable results, you must also specify the same
11926 set of options used for compilation (\fB\-fpie\fR, \fB\-fPIE\fR,
11927 or model suboptions) when you specify this linker option.
11928 .IP "\fB\-no\-pie\fR" 4
11929 .IX Item "-no-pie"
11930 Don't produce a dynamically linked position independent executable.
11931 .IP "\fB\-static\-pie\fR" 4
11932 .IX Item "-static-pie"
11933 Produce a static position independent executable on targets that support
11934 it.  A static position independent executable is similar to a static
11935 executable, but can be loaded at any address without a dynamic linker.
11936 For predictable results, you must also specify the same set of options
11937 used for compilation (\fB\-fpie\fR, \fB\-fPIE\fR, or model
11938 suboptions) when you specify this linker option.
11939 .IP "\fB\-pthread\fR" 4
11940 .IX Item "-pthread"
11941 Link with the \s-1POSIX\s0 threads library.  This option is supported on 
11942 GNU/Linux targets, most other Unix derivatives, and also on 
11943 x86 Cygwin and MinGW targets.  On some targets this option also sets 
11944 flags for the preprocessor, so it should be used consistently for both
11945 compilation and linking.
11946 .IP "\fB\-rdynamic\fR" 4
11947 .IX Item "-rdynamic"
11948 Pass the flag \fB\-export\-dynamic\fR to the \s-1ELF\s0 linker, on targets
11949 that support it. This instructs the linker to add all symbols, not
11950 only used ones, to the dynamic symbol table. This option is needed
11951 for some uses of \f(CW\*(C`dlopen\*(C'\fR or to allow obtaining backtraces
11952 from within a program.
11953 .IP "\fB\-s\fR" 4
11954 .IX Item "-s"
11955 Remove all symbol table and relocation information from the executable.
11956 .IP "\fB\-static\fR" 4
11957 .IX Item "-static"
11958 On systems that support dynamic linking, this overrides \fB\-pie\fR
11959 and prevents linking with the shared libraries.  On other systems, this
11960 option has no effect.
11961 .IP "\fB\-shared\fR" 4
11962 .IX Item "-shared"
11963 Produce a shared object which can then be linked with other objects to
11964 form an executable.  Not all systems support this option.  For predictable
11965 results, you must also specify the same set of options used for compilation
11966 (\fB\-fpic\fR, \fB\-fPIC\fR, or model suboptions) when
11967 you specify this linker option.[1]
11968 .IP "\fB\-shared\-libgcc\fR" 4
11969 .IX Item "-shared-libgcc"
11970 .PD 0
11971 .IP "\fB\-static\-libgcc\fR" 4
11972 .IX Item "-static-libgcc"
11973 .PD
11974 On systems that provide \fIlibgcc\fR as a shared library, these options
11975 force the use of either the shared or static version, respectively.
11976 If no shared version of \fIlibgcc\fR was built when the compiler was
11977 configured, these options have no effect.
11978 .Sp
11979 There are several situations in which an application should use the
11980 shared \fIlibgcc\fR instead of the static version.  The most common
11981 of these is when the application wishes to throw and catch exceptions
11982 across different shared libraries.  In that case, each of the libraries
11983 as well as the application itself should use the shared \fIlibgcc\fR.
11984 .Sp
11985 Therefore, the G++ driver automatically adds \fB\-shared\-libgcc\fR
11986 whenever you build a shared library or a main executable, because \*(C+
11987 programs typically use exceptions, so this is the right thing to do.
11988 .Sp
11989 If, instead, you use the \s-1GCC\s0 driver to create shared libraries, you may
11990 find that they are not always linked with the shared \fIlibgcc\fR.
11991 If \s-1GCC\s0 finds, at its configuration time, that you have a non-GNU linker
11992 or a \s-1GNU\s0 linker that does not support option \fB\-\-eh\-frame\-hdr\fR,
11993 it links the shared version of \fIlibgcc\fR into shared libraries
11994 by default.  Otherwise, it takes advantage of the linker and optimizes
11995 away the linking with the shared version of \fIlibgcc\fR, linking with
11996 the static version of libgcc by default.  This allows exceptions to
11997 propagate through such shared libraries, without incurring relocation
11998 costs at library load time.
11999 .Sp
12000 However, if a library or main executable is supposed to throw or catch
12001 exceptions, you must link it using the G++ driver, or using the option
12002 \&\fB\-shared\-libgcc\fR, such that it is linked with the shared
12003 \&\fIlibgcc\fR.
12004 .IP "\fB\-static\-libasan\fR" 4
12005 .IX Item "-static-libasan"
12006 When the \fB\-fsanitize=address\fR option is used to link a program,
12007 the \s-1GCC\s0 driver automatically links against \fBlibasan\fR.  If
12008 \&\fIlibasan\fR is available as a shared library, and the \fB\-static\fR
12009 option is not used, then this links against the shared version of
12010 \&\fIlibasan\fR.  The \fB\-static\-libasan\fR option directs the \s-1GCC\s0
12011 driver to link \fIlibasan\fR statically, without necessarily linking
12012 other libraries statically.
12013 .IP "\fB\-static\-libtsan\fR" 4
12014 .IX Item "-static-libtsan"
12015 When the \fB\-fsanitize=thread\fR option is used to link a program,
12016 the \s-1GCC\s0 driver automatically links against \fBlibtsan\fR.  If
12017 \&\fIlibtsan\fR is available as a shared library, and the \fB\-static\fR
12018 option is not used, then this links against the shared version of
12019 \&\fIlibtsan\fR.  The \fB\-static\-libtsan\fR option directs the \s-1GCC\s0
12020 driver to link \fIlibtsan\fR statically, without necessarily linking
12021 other libraries statically.
12022 .IP "\fB\-static\-liblsan\fR" 4
12023 .IX Item "-static-liblsan"
12024 When the \fB\-fsanitize=leak\fR option is used to link a program,
12025 the \s-1GCC\s0 driver automatically links against \fBliblsan\fR.  If
12026 \&\fIliblsan\fR is available as a shared library, and the \fB\-static\fR
12027 option is not used, then this links against the shared version of
12028 \&\fIliblsan\fR.  The \fB\-static\-liblsan\fR option directs the \s-1GCC\s0
12029 driver to link \fIliblsan\fR statically, without necessarily linking
12030 other libraries statically.
12031 .IP "\fB\-static\-libubsan\fR" 4
12032 .IX Item "-static-libubsan"
12033 When the \fB\-fsanitize=undefined\fR option is used to link a program,
12034 the \s-1GCC\s0 driver automatically links against \fBlibubsan\fR.  If
12035 \&\fIlibubsan\fR is available as a shared library, and the \fB\-static\fR
12036 option is not used, then this links against the shared version of
12037 \&\fIlibubsan\fR.  The \fB\-static\-libubsan\fR option directs the \s-1GCC\s0
12038 driver to link \fIlibubsan\fR statically, without necessarily linking
12039 other libraries statically.
12040 .IP "\fB\-static\-libmpx\fR" 4
12041 .IX Item "-static-libmpx"
12042 When the \fB\-fcheck\-pointer bounds\fR and \fB\-mmpx\fR options are
12043 used to link a program, the \s-1GCC\s0 driver automatically links against
12044 \&\fIlibmpx\fR.  If \fIlibmpx\fR is available as a shared library,
12045 and the \fB\-static\fR option is not used, then this links against
12046 the shared version of \fIlibmpx\fR.  The \fB\-static\-libmpx\fR
12047 option directs the \s-1GCC\s0 driver to link \fIlibmpx\fR statically,
12048 without necessarily linking other libraries statically.
12049 .IP "\fB\-static\-libmpxwrappers\fR" 4
12050 .IX Item "-static-libmpxwrappers"
12051 When the \fB\-fcheck\-pointer bounds\fR and \fB\-mmpx\fR options are used
12052 to link a program without also using \fB\-fno\-chkp\-use\-wrappers\fR, the
12053 \&\s-1GCC\s0 driver automatically links against \fIlibmpxwrappers\fR.  If
12054 \&\fIlibmpxwrappers\fR is available as a shared library, and the
12055 \&\fB\-static\fR option is not used, then this links against the shared
12056 version of \fIlibmpxwrappers\fR.  The \fB\-static\-libmpxwrappers\fR
12057 option directs the \s-1GCC\s0 driver to link \fIlibmpxwrappers\fR statically,
12058 without necessarily linking other libraries statically.
12059 .IP "\fB\-static\-libstdc++\fR" 4
12060 .IX Item "-static-libstdc++"
12061 When the \fBg++\fR program is used to link a \*(C+ program, it
12062 normally automatically links against \fBlibstdc++\fR.  If
12063 \&\fIlibstdc++\fR is available as a shared library, and the
12064 \&\fB\-static\fR option is not used, then this links against the
12065 shared version of \fIlibstdc++\fR.  That is normally fine.  However, it
12066 is sometimes useful to freeze the version of \fIlibstdc++\fR used by
12067 the program without going all the way to a fully static link.  The
12068 \&\fB\-static\-libstdc++\fR option directs the \fBg++\fR driver to
12069 link \fIlibstdc++\fR statically, without necessarily linking other
12070 libraries statically.
12071 .IP "\fB\-symbolic\fR" 4
12072 .IX Item "-symbolic"
12073 Bind references to global symbols when building a shared object.  Warn
12074 about any unresolved references (unless overridden by the link editor
12075 option \fB\-Xlinker \-z \-Xlinker defs\fR).  Only a few systems support
12076 this option.
12077 .IP "\fB\-T\fR \fIscript\fR" 4
12078 .IX Item "-T script"
12079 Use \fIscript\fR as the linker script.  This option is supported by most
12080 systems using the \s-1GNU\s0 linker.  On some targets, such as bare-board
12081 targets without an operating system, the \fB\-T\fR option may be required
12082 when linking to avoid references to undefined symbols.
12083 .IP "\fB\-Xlinker\fR \fIoption\fR" 4
12084 .IX Item "-Xlinker option"
12085 Pass \fIoption\fR as an option to the linker.  You can use this to
12086 supply system-specific linker options that \s-1GCC\s0 does not recognize.
12087 .Sp
12088 If you want to pass an option that takes a separate argument, you must use
12089 \&\fB\-Xlinker\fR twice, once for the option and once for the argument.
12090 For example, to pass \fB\-assert definitions\fR, you must write
12091 \&\fB\-Xlinker \-assert \-Xlinker definitions\fR.  It does not work to write
12092 \&\fB\-Xlinker \*(L"\-assert definitions\*(R"\fR, because this passes the entire
12093 string as a single argument, which is not what the linker expects.
12094 .Sp
12095 When using the \s-1GNU\s0 linker, it is usually more convenient to pass
12096 arguments to linker options using the \fIoption\fR\fB=\fR\fIvalue\fR
12097 syntax than as separate arguments.  For example, you can specify
12098 \&\fB\-Xlinker \-Map=output.map\fR rather than
12099 \&\fB\-Xlinker \-Map \-Xlinker output.map\fR.  Other linkers may not support
12100 this syntax for command-line options.
12101 .IP "\fB\-Wl,\fR\fIoption\fR" 4
12102 .IX Item "-Wl,option"
12103 Pass \fIoption\fR as an option to the linker.  If \fIoption\fR contains
12104 commas, it is split into multiple options at the commas.  You can use this
12105 syntax to pass an argument to the option.
12106 For example, \fB\-Wl,\-Map,output.map\fR passes \fB\-Map output.map\fR to the
12107 linker.  When using the \s-1GNU\s0 linker, you can also get the same effect with
12108 \&\fB\-Wl,\-Map=output.map\fR.
12109 .IP "\fB\-u\fR \fIsymbol\fR" 4
12110 .IX Item "-u symbol"
12111 Pretend the symbol \fIsymbol\fR is undefined, to force linking of
12112 library modules to define it.  You can use \fB\-u\fR multiple times with
12113 different symbols to force loading of additional library modules.
12114 .IP "\fB\-z\fR \fIkeyword\fR" 4
12115 .IX Item "-z keyword"
12116 \&\fB\-z\fR is passed directly on to the linker along with the keyword
12117 \&\fIkeyword\fR. See the section in the documentation of your linker for
12118 permitted values and their meanings.
12119 .SS "Options for Directory Search"
12120 .IX Subsection "Options for Directory Search"
12121 These options specify directories to search for header files, for
12122 libraries and for parts of the compiler:
12123 .IP "\fB\-I\fR \fIdir\fR" 4
12124 .IX Item "-I dir"
12125 .PD 0
12126 .IP "\fB\-iquote\fR \fIdir\fR" 4
12127 .IX Item "-iquote dir"
12128 .IP "\fB\-isystem\fR \fIdir\fR" 4
12129 .IX Item "-isystem dir"
12130 .IP "\fB\-idirafter\fR \fIdir\fR" 4
12131 .IX Item "-idirafter dir"
12132 .PD
12133 Add the directory \fIdir\fR to the list of directories to be searched
12134 for header files during preprocessing.
12135 If \fIdir\fR begins with \fB=\fR or \f(CW$SYSROOT\fR, then the \fB=\fR
12136 or \f(CW$SYSROOT\fR is replaced by the sysroot prefix; see
12137 \&\fB\-\-sysroot\fR and \fB\-isysroot\fR.
12138 .Sp
12139 Directories specified with \fB\-iquote\fR apply only to the quote 
12140 form of the directive, \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR.
12141 Directories specified with \fB\-I\fR, \fB\-isystem\fR, 
12142 or \fB\-idirafter\fR apply to lookup for both the
12143 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR and
12144 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR directives.
12145 .Sp
12146 You can specify any number or combination of these options on the 
12147 command line to search for header files in several directories.  
12148 The lookup order is as follows:
12149 .RS 4
12150 .IP "1." 4
12151 .IX Item "1."
12152 For the quote form of the include directive, the directory of the current
12153 file is searched first.
12154 .IP "2." 4
12155 .IX Item "2."
12156 For the quote form of the include directive, the directories specified
12157 by \fB\-iquote\fR options are searched in left-to-right order,
12158 as they appear on the command line.
12159 .IP "3." 4
12160 .IX Item "3."
12161 Directories specified with \fB\-I\fR options are scanned in
12162 left-to-right order.
12163 .IP "4." 4
12164 .IX Item "4."
12165 Directories specified with \fB\-isystem\fR options are scanned in
12166 left-to-right order.
12167 .IP "5." 4
12168 .IX Item "5."
12169 Standard system directories are scanned.
12170 .IP "6." 4
12171 .IX Item "6."
12172 Directories specified with \fB\-idirafter\fR options are scanned in
12173 left-to-right order.
12174 .RE
12175 .RS 4
12176 .Sp
12177 You can use \fB\-I\fR to override a system header
12178 file, substituting your own version, since these directories are
12179 searched before the standard system header file directories.  
12180 However, you should
12181 not use this option to add directories that contain vendor-supplied
12182 system header files; use \fB\-isystem\fR for that.
12183 .Sp
12184 The \fB\-isystem\fR and \fB\-idirafter\fR options also mark the directory
12185 as a system directory, so that it gets the same special treatment that
12186 is applied to the standard system directories.
12187 .Sp
12188 If a standard system include directory, or a directory specified with
12189 \&\fB\-isystem\fR, is also specified with \fB\-I\fR, the \fB\-I\fR
12190 option is ignored.  The directory is still searched but as a
12191 system directory at its normal position in the system include chain.
12192 This is to ensure that \s-1GCC\s0's procedure to fix buggy system headers and
12193 the ordering for the \f(CW\*(C`#include_next\*(C'\fR directive are not inadvertently
12194 changed.
12195 If you really need to change the search order for system directories,
12196 use the \fB\-nostdinc\fR and/or \fB\-isystem\fR options.
12197 .RE
12198 .IP "\fB\-I\-\fR" 4
12199 .IX Item "-I-"
12200 Split the include path.
12201 This option has been deprecated.  Please use \fB\-iquote\fR instead for
12202 \&\fB\-I\fR directories before the \fB\-I\-\fR and remove the \fB\-I\-\fR
12203 option.
12204 .Sp
12205 Any directories specified with \fB\-I\fR
12206 options before \fB\-I\-\fR are searched only for headers requested with
12207 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
12208 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR.  If additional directories are
12209 specified with \fB\-I\fR options after the \fB\-I\-\fR, those
12210 directories are searched for all \fB#include\fR directives.
12211 .Sp
12212 In addition, \fB\-I\-\fR inhibits the use of the directory of the current
12213 file directory as the first search directory for \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR.  There is no way to override this effect of \fB\-I\-\fR.
12214 .IP "\fB\-iprefix\fR \fIprefix\fR" 4
12215 .IX Item "-iprefix prefix"
12216 Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
12217 options.  If the prefix represents a directory, you should include the
12218 final \fB/\fR.
12219 .IP "\fB\-iwithprefix\fR \fIdir\fR" 4
12220 .IX Item "-iwithprefix dir"
12221 .PD 0
12222 .IP "\fB\-iwithprefixbefore\fR \fIdir\fR" 4
12223 .IX Item "-iwithprefixbefore dir"
12224 .PD
12225 Append \fIdir\fR to the prefix specified previously with
12226 \&\fB\-iprefix\fR, and add the resulting directory to the include search
12227 path.  \fB\-iwithprefixbefore\fR puts it in the same place \fB\-I\fR
12228 would; \fB\-iwithprefix\fR puts it where \fB\-idirafter\fR would.
12229 .IP "\fB\-isysroot\fR \fIdir\fR" 4
12230 .IX Item "-isysroot dir"
12231 This option is like the \fB\-\-sysroot\fR option, but applies only to
12232 header files (except for Darwin targets, where it applies to both header
12233 files and libraries).  See the \fB\-\-sysroot\fR option for more
12234 information.
12235 .IP "\fB\-imultilib\fR \fIdir\fR" 4
12236 .IX Item "-imultilib dir"
12237 Use \fIdir\fR as a subdirectory of the directory containing
12238 target-specific \*(C+ headers.
12239 .IP "\fB\-nostdinc\fR" 4
12240 .IX Item "-nostdinc"
12241 Do not search the standard system directories for header files.
12242 Only the directories explicitly specified with \fB\-I\fR,
12243 \&\fB\-iquote\fR, \fB\-isystem\fR, and/or \fB\-idirafter\fR
12244 options (and the directory of the current file, if appropriate) 
12245 are searched.
12246 .IP "\fB\-nostdinc++\fR" 4
12247 .IX Item "-nostdinc++"
12248 Do not search for header files in the \*(C+\-specific standard directories,
12249 but do still search the other standard directories.  (This option is
12250 used when building the \*(C+ library.)
12251 .IP "\fB\-iplugindir=\fR\fIdir\fR" 4
12252 .IX Item "-iplugindir=dir"
12253 Set the directory to search for plugins that are passed
12254 by \fB\-fplugin=\fR\fIname\fR instead of
12255 \&\fB\-fplugin=\fR\fIpath\fR\fB/\fR\fIname\fR\fB.so\fR.  This option is not meant
12256 to be used by the user, but only passed by the driver.
12257 .IP "\fB\-L\fR\fIdir\fR" 4
12258 .IX Item "-Ldir"
12259 Add directory \fIdir\fR to the list of directories to be searched
12260 for \fB\-l\fR.
12261 .IP "\fB\-B\fR\fIprefix\fR" 4
12262 .IX Item "-Bprefix"
12263 This option specifies where to find the executables, libraries,
12264 include files, and data files of the compiler itself.
12265 .Sp
12266 The compiler driver program runs one or more of the subprograms
12267 \&\fBcpp\fR, \fBcc1\fR, \fBas\fR and \fBld\fR.  It tries
12268 \&\fIprefix\fR as a prefix for each program it tries to run, both with and
12269 without \fImachine\fR\fB/\fR\fIversion\fR\fB/\fR for the corresponding target
12270 machine and compiler version.
12271 .Sp
12272 For each subprogram to be run, the compiler driver first tries the
12273 \&\fB\-B\fR prefix, if any.  If that name is not found, or if \fB\-B\fR
12274 is not specified, the driver tries two standard prefixes, 
12275 \&\fI/usr/lib/gcc/\fR and \fI/usr/local/lib/gcc/\fR.  If neither of
12276 those results in a file name that is found, the unmodified program
12277 name is searched for using the directories specified in your
12278 \&\fB\s-1PATH\s0\fR environment variable.
12279 .Sp
12280 The compiler checks to see if the path provided by \fB\-B\fR
12281 refers to a directory, and if necessary it adds a directory
12282 separator character at the end of the path.
12283 .Sp
12284 \&\fB\-B\fR prefixes that effectively specify directory names also apply
12285 to libraries in the linker, because the compiler translates these
12286 options into \fB\-L\fR options for the linker.  They also apply to
12287 include files in the preprocessor, because the compiler translates these
12288 options into \fB\-isystem\fR options for the preprocessor.  In this case,
12289 the compiler appends \fBinclude\fR to the prefix.
12290 .Sp
12291 The runtime support file \fIlibgcc.a\fR can also be searched for using
12292 the \fB\-B\fR prefix, if needed.  If it is not found there, the two
12293 standard prefixes above are tried, and that is all.  The file is left
12294 out of the link if it is not found by those means.
12295 .Sp
12296 Another way to specify a prefix much like the \fB\-B\fR prefix is to use
12297 the environment variable \fB\s-1GCC_EXEC_PREFIX\s0\fR.
12298 .Sp
12299 As a special kludge, if the path provided by \fB\-B\fR is
12300 \&\fI[dir/]stage\fIN\fI/\fR, where \fIN\fR is a number in the range 0 to
12301 9, then it is replaced by \fI[dir/]include\fR.  This is to help
12302 with boot-strapping the compiler.
12303 .IP "\fB\-no\-canonical\-prefixes\fR" 4
12304 .IX Item "-no-canonical-prefixes"
12305 Do not expand any symbolic links, resolve references to \fB/../\fR
12306 or \fB/./\fR, or make the path absolute when generating a relative
12307 prefix.
12308 .IP "\fB\-\-sysroot=\fR\fIdir\fR" 4
12309 .IX Item "--sysroot=dir"
12310 Use \fIdir\fR as the logical root directory for headers and libraries.
12311 For example, if the compiler normally searches for headers in
12312 \&\fI/usr/include\fR and libraries in \fI/usr/lib\fR, it instead
12313 searches \fI\fIdir\fI/usr/include\fR and \fI\fIdir\fI/usr/lib\fR.
12314 .Sp
12315 If you use both this option and the \fB\-isysroot\fR option, then
12316 the \fB\-\-sysroot\fR option applies to libraries, but the
12317 \&\fB\-isysroot\fR option applies to header files.
12318 .Sp
12319 The \s-1GNU\s0 linker (beginning with version 2.16) has the necessary support
12320 for this option.  If your linker does not support this option, the
12321 header file aspect of \fB\-\-sysroot\fR still works, but the
12322 library aspect does not.
12323 .IP "\fB\-\-no\-sysroot\-suffix\fR" 4
12324 .IX Item "--no-sysroot-suffix"
12325 For some targets, a suffix is added to the root directory specified
12326 with \fB\-\-sysroot\fR, depending on the other options used, so that
12327 headers may for example be found in
12328 \&\fI\fIdir\fI/\fIsuffix\fI/usr/include\fR instead of
12329 \&\fI\fIdir\fI/usr/include\fR.  This option disables the addition of
12330 such a suffix.
12331 .SS "Options for Code Generation Conventions"
12332 .IX Subsection "Options for Code Generation Conventions"
12333 These machine-independent options control the interface conventions
12334 used in code generation.
12335 .PP
12336 Most of them have both positive and negative forms; the negative form
12337 of \fB\-ffoo\fR is \fB\-fno\-foo\fR.  In the table below, only
12338 one of the forms is listed\-\-\-the one that is not the default.  You
12339 can figure out the other form by either removing \fBno\-\fR or adding
12340 it.
12341 .IP "\fB\-fstack\-reuse=\fR\fIreuse-level\fR" 4
12342 .IX Item "-fstack-reuse=reuse-level"
12343 This option controls stack space reuse for user declared local/auto variables
12344 and compiler generated temporaries.  \fIreuse_level\fR can be \fBall\fR,
12345 \&\fBnamed_vars\fR, or \fBnone\fR. \fBall\fR enables stack reuse for all
12346 local variables and temporaries, \fBnamed_vars\fR enables the reuse only for
12347 user defined local variables with names, and \fBnone\fR disables stack reuse
12348 completely. The default value is \fBall\fR. The option is needed when the
12349 program extends the lifetime of a scoped local variable or a compiler generated
12350 temporary beyond the end point defined by the language.  When a lifetime of
12351 a variable ends, and if the variable lives in memory, the optimizing compiler
12352 has the freedom to reuse its stack space with other temporaries or scoped
12353 local variables whose live range does not overlap with it. Legacy code extending
12354 local lifetime is likely to break with the stack reuse optimization.
12355 .Sp
12356 For example,
12357 .Sp
12358 .Vb 3
12359 \&           int *p;
12360 \&           {
12361 \&             int local1;
12362 \&        
12363 \&             p = &local1;
12364 \&             local1 = 10;
12365 \&             ....
12366 \&           }
12367 \&           {
12368 \&              int local2;
12369 \&              local2 = 20;
12370 \&              ...
12371 \&           }
12372 \&        
12373 \&           if (*p == 10)  // out of scope use of local1
12374 \&             {
12375 \&        
12376 \&             }
12377 .Ve
12378 .Sp
12379 Another example:
12380 .Sp
12381 .Vb 6
12382 \&           struct A
12383 \&           {
12384 \&               A(int k) : i(k), j(k) { }
12385 \&               int i;
12386 \&               int j;
12387 \&           };
12388 \&        
12389 \&           A *ap;
12390 \&        
12391 \&           void foo(const A& ar)
12392 \&           {
12393 \&              ap = &ar;
12394 \&           }
12395 \&        
12396 \&           void bar()
12397 \&           {
12398 \&              foo(A(10)); // temp object\*(Aqs lifetime ends when foo returns
12399 \&        
12400 \&              {
12401 \&                A a(20);
12402 \&                ....
12403 \&              }
12404 \&              ap\->i+= 10;  // ap references out of scope temp whose space
12405 \&                           // is reused with a. What is the value of ap\->i?
12406 \&           }
12407 .Ve
12408 .Sp
12409 The lifetime of a compiler generated temporary is well defined by the \*(C+
12410 standard. When a lifetime of a temporary ends, and if the temporary lives
12411 in memory, the optimizing compiler has the freedom to reuse its stack
12412 space with other temporaries or scoped local variables whose live range
12413 does not overlap with it. However some of the legacy code relies on
12414 the behavior of older compilers in which temporaries' stack space is
12415 not reused, the aggressive stack reuse can lead to runtime errors. This
12416 option is used to control the temporary stack reuse optimization.
12417 .IP "\fB\-ftrapv\fR" 4
12418 .IX Item "-ftrapv"
12419 This option generates traps for signed overflow on addition, subtraction,
12420 multiplication operations.
12421 The options \fB\-ftrapv\fR and \fB\-fwrapv\fR override each other, so using
12422 \&\fB\-ftrapv\fR \fB\-fwrapv\fR on the command-line results in
12423 \&\fB\-fwrapv\fR being effective.  Note that only active options override, so
12424 using \fB\-ftrapv\fR \fB\-fwrapv\fR \fB\-fno\-wrapv\fR on the command-line
12425 results in \fB\-ftrapv\fR being effective.
12426 .IP "\fB\-fwrapv\fR" 4
12427 .IX Item "-fwrapv"
12428 This option instructs the compiler to assume that signed arithmetic
12429 overflow of addition, subtraction and multiplication wraps around
12430 using twos-complement representation.  This flag enables some optimizations
12431 and disables others.
12432 The options \fB\-ftrapv\fR and \fB\-fwrapv\fR override each other, so using
12433 \&\fB\-ftrapv\fR \fB\-fwrapv\fR on the command-line results in
12434 \&\fB\-fwrapv\fR being effective.  Note that only active options override, so
12435 using \fB\-ftrapv\fR \fB\-fwrapv\fR \fB\-fno\-wrapv\fR on the command-line
12436 results in \fB\-ftrapv\fR being effective.
12437 .IP "\fB\-fwrapv\-pointer\fR" 4
12438 .IX Item "-fwrapv-pointer"
12439 This option instructs the compiler to assume that pointer arithmetic
12440 overflow on addition and subtraction wraps around using twos-complement
12441 representation.  This flag disables some optimizations which assume
12442 pointer overflow is invalid.
12443 .IP "\fB\-fstrict\-overflow\fR" 4
12444 .IX Item "-fstrict-overflow"
12445 This option implies \fB\-fno\-wrapv\fR \fB\-fno\-wrapv\-pointer\fR and when
12446 negated implies \fB\-fwrapv\fR \fB\-fwrapv\-pointer\fR.
12447 .IP "\fB\-fexceptions\fR" 4
12448 .IX Item "-fexceptions"
12449 Enable exception handling.  Generates extra code needed to propagate
12450 exceptions.  For some targets, this implies \s-1GCC\s0 generates frame
12451 unwind information for all functions, which can produce significant data
12452 size overhead, although it does not affect execution.  If you do not
12453 specify this option, \s-1GCC\s0 enables it by default for languages like
12454 \&\*(C+ that normally require exception handling, and disables it for
12455 languages like C that do not normally require it.  However, you may need
12456 to enable this option when compiling C code that needs to interoperate
12457 properly with exception handlers written in \*(C+.  You may also wish to
12458 disable this option if you are compiling older \*(C+ programs that don't
12459 use exception handling.
12460 .IP "\fB\-fnon\-call\-exceptions\fR" 4
12461 .IX Item "-fnon-call-exceptions"
12462 Generate code that allows trapping instructions to throw exceptions.
12463 Note that this requires platform-specific runtime support that does
12464 not exist everywhere.  Moreover, it only allows \fItrapping\fR
12465 instructions to throw exceptions, i.e. memory references or floating-point
12466 instructions.  It does not allow exceptions to be thrown from
12467 arbitrary signal handlers such as \f(CW\*(C`SIGALRM\*(C'\fR.
12468 .IP "\fB\-fdelete\-dead\-exceptions\fR" 4
12469 .IX Item "-fdelete-dead-exceptions"
12470 Consider that instructions that may throw exceptions but don't otherwise
12471 contribute to the execution of the program can be optimized away.
12472 This option is enabled by default for the Ada front end, as permitted by
12473 the Ada language specification.
12474 Optimization passes that cause dead exceptions to be removed are enabled independently at different optimization levels.
12475 .IP "\fB\-funwind\-tables\fR" 4
12476 .IX Item "-funwind-tables"
12477 Similar to \fB\-fexceptions\fR, except that it just generates any needed
12478 static data, but does not affect the generated code in any other way.
12479 You normally do not need to enable this option; instead, a language processor
12480 that needs this handling enables it on your behalf.
12481 .IP "\fB\-fasynchronous\-unwind\-tables\fR" 4
12482 .IX Item "-fasynchronous-unwind-tables"
12483 Generate unwind table in \s-1DWARF\s0 format, if supported by target machine.  The
12484 table is exact at each instruction boundary, so it can be used for stack
12485 unwinding from asynchronous events (such as debugger or garbage collector).
12486 .IP "\fB\-fno\-gnu\-unique\fR" 4
12487 .IX Item "-fno-gnu-unique"
12488 On systems with recent \s-1GNU\s0 assembler and C library, the \*(C+ compiler
12489 uses the \f(CW\*(C`STB_GNU_UNIQUE\*(C'\fR binding to make sure that definitions
12490 of template static data members and static local variables in inline
12491 functions are unique even in the presence of \f(CW\*(C`RTLD_LOCAL\*(C'\fR; this
12492 is necessary to avoid problems with a library used by two different
12493 \&\f(CW\*(C`RTLD_LOCAL\*(C'\fR plugins depending on a definition in one of them and
12494 therefore disagreeing with the other one about the binding of the
12495 symbol.  But this causes \f(CW\*(C`dlclose\*(C'\fR to be ignored for affected
12496 DSOs; if your program relies on reinitialization of a \s-1DSO\s0 via
12497 \&\f(CW\*(C`dlclose\*(C'\fR and \f(CW\*(C`dlopen\*(C'\fR, you can use
12498 \&\fB\-fno\-gnu\-unique\fR.
12499 .IP "\fB\-fpcc\-struct\-return\fR" 4
12500 .IX Item "-fpcc-struct-return"
12501 Return \*(L"short\*(R" \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in memory like
12502 longer ones, rather than in registers.  This convention is less
12503 efficient, but it has the advantage of allowing intercallability between
12504 GCC-compiled files and files compiled with other compilers, particularly
12505 the Portable C Compiler (pcc).
12506 .Sp
12507 The precise convention for returning structures in memory depends
12508 on the target configuration macros.
12509 .Sp
12510 Short structures and unions are those whose size and alignment match
12511 that of some integer type.
12512 .Sp
12513 \&\fBWarning:\fR code compiled with the \fB\-fpcc\-struct\-return\fR
12514 switch is not binary compatible with code compiled with the
12515 \&\fB\-freg\-struct\-return\fR switch.
12516 Use it to conform to a non-default application binary interface.
12517 .IP "\fB\-freg\-struct\-return\fR" 4
12518 .IX Item "-freg-struct-return"
12519 Return \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in registers when possible.
12520 This is more efficient for small structures than
12521 \&\fB\-fpcc\-struct\-return\fR.
12522 .Sp
12523 If you specify neither \fB\-fpcc\-struct\-return\fR nor
12524 \&\fB\-freg\-struct\-return\fR, \s-1GCC\s0 defaults to whichever convention is
12525 standard for the target.  If there is no standard convention, \s-1GCC\s0
12526 defaults to \fB\-fpcc\-struct\-return\fR, except on targets where \s-1GCC\s0 is
12527 the principal compiler.  In those cases, we can choose the standard, and
12528 we chose the more efficient register return alternative.
12529 .Sp
12530 \&\fBWarning:\fR code compiled with the \fB\-freg\-struct\-return\fR
12531 switch is not binary compatible with code compiled with the
12532 \&\fB\-fpcc\-struct\-return\fR switch.
12533 Use it to conform to a non-default application binary interface.
12534 .IP "\fB\-fshort\-enums\fR" 4
12535 .IX Item "-fshort-enums"
12536 Allocate to an \f(CW\*(C`enum\*(C'\fR type only as many bytes as it needs for the
12537 declared range of possible values.  Specifically, the \f(CW\*(C`enum\*(C'\fR type
12538 is equivalent to the smallest integer type that has enough room.
12539 .Sp
12540 \&\fBWarning:\fR the \fB\-fshort\-enums\fR switch causes \s-1GCC\s0 to generate
12541 code that is not binary compatible with code generated without that switch.
12542 Use it to conform to a non-default application binary interface.
12543 .IP "\fB\-fshort\-wchar\fR" 4
12544 .IX Item "-fshort-wchar"
12545 Override the underlying type for \f(CW\*(C`wchar_t\*(C'\fR to be \f(CW\*(C`short
12546 unsigned int\*(C'\fR instead of the default for the target.  This option is
12547 useful for building programs to run under \s-1WINE.\s0
12548 .Sp
12549 \&\fBWarning:\fR the \fB\-fshort\-wchar\fR switch causes \s-1GCC\s0 to generate
12550 code that is not binary compatible with code generated without that switch.
12551 Use it to conform to a non-default application binary interface.
12552 .IP "\fB\-fno\-common\fR" 4
12553 .IX Item "-fno-common"
12554 In C code, this option controls the placement of global variables 
12555 defined without an initializer, known as \fItentative definitions\fR 
12556 in the C standard.  Tentative definitions are distinct from declarations 
12557 of a variable with the \f(CW\*(C`extern\*(C'\fR keyword, which do not allocate storage.
12558 .Sp
12559 Unix C compilers have traditionally allocated storage for
12560 uninitialized global variables in a common block.  This allows the
12561 linker to resolve all tentative definitions of the same variable
12562 in different compilation units to the same object, or to a non-tentative
12563 definition.  
12564 This is the behavior specified by \fB\-fcommon\fR, and is the default for 
12565 \&\s-1GCC\s0 on most targets.  
12566 On the other hand, this behavior is not required by \s-1ISO
12567 C,\s0 and on some targets may carry a speed or code size penalty on
12568 variable references.
12569 .Sp
12570 The \fB\-fno\-common\fR option specifies that the compiler should instead
12571 place uninitialized global variables in the data section of the object file.
12572 This inhibits the merging of tentative definitions by the linker so
12573 you get a multiple-definition error if the same 
12574 variable is defined in more than one compilation unit.
12575 Compiling with \fB\-fno\-common\fR is useful on targets for which
12576 it provides better performance, or if you wish to verify that the
12577 program will work on other systems that always treat uninitialized
12578 variable definitions this way.
12579 .IP "\fB\-fno\-ident\fR" 4
12580 .IX Item "-fno-ident"
12581 Ignore the \f(CW\*(C`#ident\*(C'\fR directive.
12582 .IP "\fB\-finhibit\-size\-directive\fR" 4
12583 .IX Item "-finhibit-size-directive"
12584 Don't output a \f(CW\*(C`.size\*(C'\fR assembler directive, or anything else that
12585 would cause trouble if the function is split in the middle, and the
12586 two halves are placed at locations far apart in memory.  This option is
12587 used when compiling \fIcrtstuff.c\fR; you should not need to use it
12588 for anything else.
12589 .IP "\fB\-fverbose\-asm\fR" 4
12590 .IX Item "-fverbose-asm"
12591 Put extra commentary information in the generated assembly code to
12592 make it more readable.  This option is generally only of use to those
12593 who actually need to read the generated assembly code (perhaps while
12594 debugging the compiler itself).
12595 .Sp
12596 \&\fB\-fno\-verbose\-asm\fR, the default, causes the
12597 extra information to be omitted and is useful when comparing two assembler
12598 files.
12599 .Sp
12600 The added comments include:
12601 .RS 4
12602 .IP "*" 4
12603 information on the compiler version and command-line options,
12604 .IP "*" 4
12605 the source code lines associated with the assembly instructions,
12606 in the form \s-1FILENAME:LINENUMBER:CONTENT OF LINE,\s0
12607 .IP "*" 4
12608 hints on which high-level expressions correspond to
12609 the various assembly instruction operands.
12610 .RE
12611 .RS 4
12612 .Sp
12613 For example, given this C source file:
12614 .Sp
12615 .Vb 4
12616 \&        int test (int n)
12617 \&        {
12618 \&          int i;
12619 \&          int total = 0;
12620 \&        
12621 \&          for (i = 0; i < n; i++)
12622 \&            total += i * i;
12623 \&        
12624 \&          return total;
12625 \&        }
12626 .Ve
12627 .Sp
12628 compiling to (x86_64) assembly via \fB\-S\fR and emitting the result
12629 direct to stdout via \fB\-o\fR \fB\-\fR
12630 .Sp
12631 .Vb 1
12632 \&        gcc \-S test.c \-fverbose\-asm \-Os \-o \-
12633 .Ve
12634 .Sp
12635 gives output similar to this:
12636 .Sp
12637 .Vb 5
12638 \&                .file   "test.c"
12639 \&        # GNU C11 (GCC) version 7.0.0 20160809 (experimental) (x86_64\-pc\-linux\-gnu)
12640 \&          [...snip...]
12641 \&        # options passed:
12642 \&          [...snip...]
12643 \&        
12644 \&                .text
12645 \&                .globl  test
12646 \&                .type   test, @function
12647 \&        test:
12648 \&        .LFB0:
12649 \&                .cfi_startproc
12650 \&        # test.c:4:   int total = 0;
12651 \&                xorl    %eax, %eax      # <retval>
12652 \&        # test.c:6:   for (i = 0; i < n; i++)
12653 \&                xorl    %edx, %edx      # i
12654 \&        .L2:
12655 \&        # test.c:6:   for (i = 0; i < n; i++)
12656 \&                cmpl    %edi, %edx      # n, i
12657 \&                jge     .L5     #,
12658 \&        # test.c:7:     total += i * i;
12659 \&                movl    %edx, %ecx      # i, tmp92
12660 \&                imull   %edx, %ecx      # i, tmp92
12661 \&        # test.c:6:   for (i = 0; i < n; i++)
12662 \&                incl    %edx    # i
12663 \&        # test.c:7:     total += i * i;
12664 \&                addl    %ecx, %eax      # tmp92, <retval>
12665 \&                jmp     .L2     #
12666 \&        .L5:
12667 \&        # test.c:10: }
12668 \&                ret
12669 \&                .cfi_endproc
12670 \&        .LFE0:
12671 \&                .size   test, .\-test
12672 \&                .ident  "GCC: (GNU) 7.0.0 20160809 (experimental)"
12673 \&                .section        .note.GNU\-stack,"",@progbits
12674 .Ve
12675 .Sp
12676 The comments are intended for humans rather than machines and hence the
12677 precise format of the comments is subject to change.
12678 .RE
12679 .IP "\fB\-frecord\-gcc\-switches\fR" 4
12680 .IX Item "-frecord-gcc-switches"
12681 This switch causes the command line used to invoke the
12682 compiler to be recorded into the object file that is being created.
12683 This switch is only implemented on some targets and the exact format
12684 of the recording is target and binary file format dependent, but it
12685 usually takes the form of a section containing \s-1ASCII\s0 text.  This
12686 switch is related to the \fB\-fverbose\-asm\fR switch, but that
12687 switch only records information in the assembler output file as
12688 comments, so it never reaches the object file.
12689 See also \fB\-grecord\-gcc\-switches\fR for another
12690 way of storing compiler options into the object file.
12691 .IP "\fB\-fpic\fR" 4
12692 .IX Item "-fpic"
12693 Generate position-independent code (\s-1PIC\s0) suitable for use in a shared
12694 library, if supported for the target machine.  Such code accesses all
12695 constant addresses through a global offset table (\s-1GOT\s0).  The dynamic
12696 loader resolves the \s-1GOT\s0 entries when the program starts (the dynamic
12697 loader is not part of \s-1GCC\s0; it is part of the operating system).  If
12698 the \s-1GOT\s0 size for the linked executable exceeds a machine-specific
12699 maximum size, you get an error message from the linker indicating that
12700 \&\fB\-fpic\fR does not work; in that case, recompile with \fB\-fPIC\fR
12701 instead.  (These maximums are 8k on the \s-1SPARC,\s0 28k on AArch64 and 32k
12702 on the m68k and \s-1RS/6000.\s0  The x86 has no such limit.)
12703 .Sp
12704 Position-independent code requires special support, and therefore works
12705 only on certain machines.  For the x86, \s-1GCC\s0 supports \s-1PIC\s0 for System V
12706 but not for the Sun 386i.  Code generated for the \s-1IBM RS/6000\s0 is always
12707 position-independent.
12708 .Sp
12709 When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
12710 are defined to 1.
12711 .IP "\fB\-fPIC\fR" 4
12712 .IX Item "-fPIC"
12713 If supported for the target machine, emit position-independent code,
12714 suitable for dynamic linking and avoiding any limit on the size of the
12715 global offset table.  This option makes a difference on AArch64, m68k,
12716 PowerPC and \s-1SPARC.\s0
12717 .Sp
12718 Position-independent code requires special support, and therefore works
12719 only on certain machines.
12720 .Sp
12721 When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
12722 are defined to 2.
12723 .IP "\fB\-fpie\fR" 4
12724 .IX Item "-fpie"
12725 .PD 0
12726 .IP "\fB\-fPIE\fR" 4
12727 .IX Item "-fPIE"
12728 .PD
12729 These options are similar to \fB\-fpic\fR and \fB\-fPIC\fR, but
12730 generated position independent code can be only linked into executables.
12731 Usually these options are used when \fB\-pie\fR \s-1GCC\s0 option is
12732 used during linking.
12733 .Sp
12734 \&\fB\-fpie\fR and \fB\-fPIE\fR both define the macros
12735 \&\f(CW\*(C`_\|_pie_\|_\*(C'\fR and \f(CW\*(C`_\|_PIE_\|_\*(C'\fR.  The macros have the value 1
12736 for \fB\-fpie\fR and 2 for \fB\-fPIE\fR.
12737 .IP "\fB\-fno\-plt\fR" 4
12738 .IX Item "-fno-plt"
12739 Do not use the \s-1PLT\s0 for external function calls in position-independent code.
12740 Instead, load the callee address at call sites from the \s-1GOT\s0 and branch to it.
12741 This leads to more efficient code by eliminating \s-1PLT\s0 stubs and exposing
12742 \&\s-1GOT\s0 loads to optimizations.  On architectures such as 32\-bit x86 where
12743 \&\s-1PLT\s0 stubs expect the \s-1GOT\s0 pointer in a specific register, this gives more
12744 register allocation freedom to the compiler.
12745 Lazy binding requires use of the \s-1PLT\s0; 
12746 with \fB\-fno\-plt\fR all external symbols are resolved at load time.
12747 .Sp
12748 Alternatively, the function attribute \f(CW\*(C`noplt\*(C'\fR can be used to avoid calls
12749 through the \s-1PLT\s0 for specific external functions.
12750 .Sp
12751 In position-dependent code, a few targets also convert calls to
12752 functions that are marked to not use the \s-1PLT\s0 to use the \s-1GOT\s0 instead.
12753 .IP "\fB\-fno\-jump\-tables\fR" 4
12754 .IX Item "-fno-jump-tables"
12755 Do not use jump tables for switch statements even where it would be
12756 more efficient than other code generation strategies.  This option is
12757 of use in conjunction with \fB\-fpic\fR or \fB\-fPIC\fR for
12758 building code that forms part of a dynamic linker and cannot
12759 reference the address of a jump table.  On some targets, jump tables
12760 do not require a \s-1GOT\s0 and this option is not needed.
12761 .IP "\fB\-ffixed\-\fR\fIreg\fR" 4
12762 .IX Item "-ffixed-reg"
12763 Treat the register named \fIreg\fR as a fixed register; generated code
12764 should never refer to it (except perhaps as a stack pointer, frame
12765 pointer or in some other fixed role).
12766 .Sp
12767 \&\fIreg\fR must be the name of a register.  The register names accepted
12768 are machine-specific and are defined in the \f(CW\*(C`REGISTER_NAMES\*(C'\fR
12769 macro in the machine description macro file.
12770 .Sp
12771 This flag does not have a negative form, because it specifies a
12772 three-way choice.
12773 .IP "\fB\-fcall\-used\-\fR\fIreg\fR" 4
12774 .IX Item "-fcall-used-reg"
12775 Treat the register named \fIreg\fR as an allocable register that is
12776 clobbered by function calls.  It may be allocated for temporaries or
12777 variables that do not live across a call.  Functions compiled this way
12778 do not save and restore the register \fIreg\fR.
12779 .Sp
12780 It is an error to use this flag with the frame pointer or stack pointer.
12781 Use of this flag for other registers that have fixed pervasive roles in
12782 the machine's execution model produces disastrous results.
12783 .Sp
12784 This flag does not have a negative form, because it specifies a
12785 three-way choice.
12786 .IP "\fB\-fcall\-saved\-\fR\fIreg\fR" 4
12787 .IX Item "-fcall-saved-reg"
12788 Treat the register named \fIreg\fR as an allocable register saved by
12789 functions.  It may be allocated even for temporaries or variables that
12790 live across a call.  Functions compiled this way save and restore
12791 the register \fIreg\fR if they use it.
12792 .Sp
12793 It is an error to use this flag with the frame pointer or stack pointer.
12794 Use of this flag for other registers that have fixed pervasive roles in
12795 the machine's execution model produces disastrous results.
12796 .Sp
12797 A different sort of disaster results from the use of this flag for
12798 a register in which function values may be returned.
12799 .Sp
12800 This flag does not have a negative form, because it specifies a
12801 three-way choice.
12802 .IP "\fB\-fpack\-struct[=\fR\fIn\fR\fB]\fR" 4
12803 .IX Item "-fpack-struct[=n]"
12804 Without a value specified, pack all structure members together without
12805 holes.  When a value is specified (which must be a small power of two), pack
12806 structure members according to this value, representing the maximum
12807 alignment (that is, objects with default alignment requirements larger than
12808 this are output potentially unaligned at the next fitting location.
12809 .Sp
12810 \&\fBWarning:\fR the \fB\-fpack\-struct\fR switch causes \s-1GCC\s0 to generate
12811 code that is not binary compatible with code generated without that switch.
12812 Additionally, it makes the code suboptimal.
12813 Use it to conform to a non-default application binary interface.
12814 .IP "\fB\-fleading\-underscore\fR" 4
12815 .IX Item "-fleading-underscore"
12816 This option and its counterpart, \fB\-fno\-leading\-underscore\fR, forcibly
12817 change the way C symbols are represented in the object file.  One use
12818 is to help link with legacy assembly code.
12819 .Sp
12820 \&\fBWarning:\fR the \fB\-fleading\-underscore\fR switch causes \s-1GCC\s0 to
12821 generate code that is not binary compatible with code generated without that
12822 switch.  Use it to conform to a non-default application binary interface.
12823 Not all targets provide complete support for this switch.
12824 .IP "\fB\-ftls\-model=\fR\fImodel\fR" 4
12825 .IX Item "-ftls-model=model"
12826 Alter the thread-local storage model to be used.
12827 The \fImodel\fR argument should be one of \fBglobal-dynamic\fR,
12828 \&\fBlocal-dynamic\fR, \fBinitial-exec\fR or \fBlocal-exec\fR.
12829 Note that the choice is subject to optimization: the compiler may use
12830 a more efficient model for symbols not visible outside of the translation
12831 unit, or if \fB\-fpic\fR is not given on the command line.
12832 .Sp
12833 The default without \fB\-fpic\fR is \fBinitial-exec\fR; with
12834 \&\fB\-fpic\fR the default is \fBglobal-dynamic\fR.
12835 .IP "\fB\-ftrampolines\fR" 4
12836 .IX Item "-ftrampolines"
12837 For targets that normally need trampolines for nested functions, always
12838 generate them instead of using descriptors.  Otherwise, for targets that
12839 do not need them, like for example HP-PA or \s-1IA\-64,\s0 do nothing.
12840 .Sp
12841 A trampoline is a small piece of code that is created at run time on the
12842 stack when the address of a nested function is taken, and is used to call
12843 the nested function indirectly.  Therefore, it requires the stack to be
12844 made executable in order for the program to work properly.
12845 .Sp
12846 \&\fB\-fno\-trampolines\fR is enabled by default on a language by language
12847 basis to let the compiler avoid generating them, if it computes that this
12848 is safe, and replace them with descriptors.  Descriptors are made up of data
12849 only, but the generated code must be prepared to deal with them.  As of this
12850 writing, \fB\-fno\-trampolines\fR is enabled by default only for Ada.
12851 .Sp
12852 Moreover, code compiled with \fB\-ftrampolines\fR and code compiled with
12853 \&\fB\-fno\-trampolines\fR are not binary compatible if nested functions are
12854 present.  This option must therefore be used on a program-wide basis and be
12855 manipulated with extreme care.
12856 .IP "\fB\-fvisibility=\fR[\fBdefault\fR|\fBinternal\fR|\fBhidden\fR|\fBprotected\fR]" 4
12857 .IX Item "-fvisibility=[default|internal|hidden|protected]"
12858 Set the default \s-1ELF\s0 image symbol visibility to the specified option\-\-\-all
12859 symbols are marked with this unless overridden within the code.
12860 Using this feature can very substantially improve linking and
12861 load times of shared object libraries, produce more optimized
12862 code, provide near-perfect \s-1API\s0 export and prevent symbol clashes.
12863 It is \fBstrongly\fR recommended that you use this in any shared objects
12864 you distribute.
12865 .Sp
12866 Despite the nomenclature, \fBdefault\fR always means public; i.e.,
12867 available to be linked against from outside the shared object.
12868 \&\fBprotected\fR and \fBinternal\fR are pretty useless in real-world
12869 usage so the only other commonly used option is \fBhidden\fR.
12870 The default if \fB\-fvisibility\fR isn't specified is
12871 \&\fBdefault\fR, i.e., make every symbol public.
12872 .Sp
12873 A good explanation of the benefits offered by ensuring \s-1ELF\s0
12874 symbols have the correct visibility is given by \*(L"How To Write
12875 Shared Libraries\*(R" by Ulrich Drepper (which can be found at
12876 <\fBhttps://www.akkadia.org/drepper/\fR>)\-\-\-however a superior
12877 solution made possible by this option to marking things hidden when
12878 the default is public is to make the default hidden and mark things
12879 public.  This is the norm with DLLs on Windows and with \fB\-fvisibility=hidden\fR
12880 and \f(CW\*(C`_\|_attribute_\|_ ((visibility("default")))\*(C'\fR instead of
12881 \&\f(CW\*(C`_\|_declspec(dllexport)\*(C'\fR you get almost identical semantics with
12882 identical syntax.  This is a great boon to those working with
12883 cross-platform projects.
12884 .Sp
12885 For those adding visibility support to existing code, you may find
12886 \&\f(CW\*(C`#pragma GCC visibility\*(C'\fR of use.  This works by you enclosing
12887 the declarations you wish to set visibility for with (for example)
12888 \&\f(CW\*(C`#pragma GCC visibility push(hidden)\*(C'\fR and
12889 \&\f(CW\*(C`#pragma GCC visibility pop\*(C'\fR.
12890 Bear in mind that symbol visibility should be viewed \fBas
12891 part of the \s-1API\s0 interface contract\fR and thus all new code should
12892 always specify visibility when it is not the default; i.e., declarations
12893 only for use within the local \s-1DSO\s0 should \fBalways\fR be marked explicitly
12894 as hidden as so to avoid \s-1PLT\s0 indirection overheads\-\-\-making this
12895 abundantly clear also aids readability and self-documentation of the code.
12896 Note that due to \s-1ISO \*(C+\s0 specification requirements, \f(CW\*(C`operator new\*(C'\fR and
12897 \&\f(CW\*(C`operator delete\*(C'\fR must always be of default visibility.
12898 .Sp
12899 Be aware that headers from outside your project, in particular system
12900 headers and headers from any other library you use, may not be
12901 expecting to be compiled with visibility other than the default.  You
12902 may need to explicitly say \f(CW\*(C`#pragma GCC visibility push(default)\*(C'\fR
12903 before including any such headers.
12904 .Sp
12905 \&\f(CW\*(C`extern\*(C'\fR declarations are not affected by \fB\-fvisibility\fR, so
12906 a lot of code can be recompiled with \fB\-fvisibility=hidden\fR with
12907 no modifications.  However, this means that calls to \f(CW\*(C`extern\*(C'\fR
12908 functions with no explicit visibility use the \s-1PLT,\s0 so it is more
12909 effective to use \f(CW\*(C`_\|_attribute ((visibility))\*(C'\fR and/or
12910 \&\f(CW\*(C`#pragma GCC visibility\*(C'\fR to tell the compiler which \f(CW\*(C`extern\*(C'\fR
12911 declarations should be treated as hidden.
12912 .Sp
12913 Note that \fB\-fvisibility\fR does affect \*(C+ vague linkage
12914 entities. This means that, for instance, an exception class that is
12915 be thrown between DSOs must be explicitly marked with default
12916 visibility so that the \fBtype_info\fR nodes are unified between
12917 the DSOs.
12918 .Sp
12919 An overview of these techniques, their benefits and how to use them
12920 is at <\fBhttp://gcc.gnu.org/wiki/Visibility\fR>.
12921 .IP "\fB\-fstrict\-volatile\-bitfields\fR" 4
12922 .IX Item "-fstrict-volatile-bitfields"
12923 This option should be used if accesses to volatile bit-fields (or other
12924 structure fields, although the compiler usually honors those types
12925 anyway) should use a single access of the width of the
12926 field's type, aligned to a natural alignment if possible.  For
12927 example, targets with memory-mapped peripheral registers might require
12928 all such accesses to be 16 bits wide; with this flag you can
12929 declare all peripheral bit-fields as \f(CW\*(C`unsigned short\*(C'\fR (assuming short
12930 is 16 bits on these targets) to force \s-1GCC\s0 to use 16\-bit accesses
12931 instead of, perhaps, a more efficient 32\-bit access.
12932 .Sp
12933 If this option is disabled, the compiler uses the most efficient
12934 instruction.  In the previous example, that might be a 32\-bit load
12935 instruction, even though that accesses bytes that do not contain
12936 any portion of the bit-field, or memory-mapped registers unrelated to
12937 the one being updated.
12938 .Sp
12939 In some cases, such as when the \f(CW\*(C`packed\*(C'\fR attribute is applied to a 
12940 structure field, it may not be possible to access the field with a single
12941 read or write that is correctly aligned for the target machine.  In this
12942 case \s-1GCC\s0 falls back to generating multiple accesses rather than code that 
12943 will fault or truncate the result at run time.
12944 .Sp
12945 Note:  Due to restrictions of the C/\*(C+11 memory model, write accesses are
12946 not allowed to touch non bit-field members.  It is therefore recommended
12947 to define all bits of the field's type as bit-field members.
12948 .Sp
12949 The default value of this option is determined by the application binary
12950 interface for the target processor.
12951 .IP "\fB\-fsync\-libcalls\fR" 4
12952 .IX Item "-fsync-libcalls"
12953 This option controls whether any out-of-line instance of the \f(CW\*(C`_\|_sync\*(C'\fR
12954 family of functions may be used to implement the \*(C+11 \f(CW\*(C`_\|_atomic\*(C'\fR
12955 family of functions.
12956 .Sp
12957 The default value of this option is enabled, thus the only useful form
12958 of the option is \fB\-fno\-sync\-libcalls\fR.  This option is used in
12959 the implementation of the \fIlibatomic\fR runtime library.
12960 .SS "\s-1GCC\s0 Developer Options"
12961 .IX Subsection "GCC Developer Options"
12962 This section describes command-line options that are primarily of
12963 interest to \s-1GCC\s0 developers, including options to support compiler
12964 testing and investigation of compiler bugs and compile-time
12965 performance problems.  This includes options that produce debug dumps
12966 at various points in the compilation; that print statistics such as
12967 memory use and execution time; and that print information about \s-1GCC\s0's
12968 configuration, such as where it searches for libraries.  You should
12969 rarely need to use any of these options for ordinary compilation and
12970 linking tasks.
12971 .IP "\fB\-d\fR\fIletters\fR" 4
12972 .IX Item "-dletters"
12973 .PD 0
12974 .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR" 4
12975 .IX Item "-fdump-rtl-pass"
12976 .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR\fB=\fR\fIfilename\fR" 4
12977 .IX Item "-fdump-rtl-pass=filename"
12978 .PD
12979 Says to make debugging dumps during compilation at times specified by
12980 \&\fIletters\fR.  This is used for debugging the RTL-based passes of the
12981 compiler.  The file names for most of the dumps are made by appending
12982 a pass number and a word to the \fIdumpname\fR, and the files are
12983 created in the directory of the output file.  In case of
12984 \&\fB=\fR\fIfilename\fR option, the dump is output on the given file
12985 instead of the pass numbered dump files.  Note that the pass number is
12986 assigned as passes are registered into the pass manager.  Most passes
12987 are registered in the order that they will execute and for these passes
12988 the number corresponds to the pass execution order.  However, passes
12989 registered by plugins, passes specific to compilation targets, or
12990 passes that are otherwise registered after all the other passes are
12991 numbered higher than a pass named \*(L"final\*(R", even if they are executed
12992 earlier.  \fIdumpname\fR is generated from the name of the output
12993 file if explicitly specified and not an executable, otherwise it is
12994 the basename of the source file.
12995 .Sp
12996 Some \fB\-d\fR\fIletters\fR switches have different meaning when
12997 \&\fB\-E\fR is used for preprocessing.
12998 .Sp
12999 Debug dumps can be enabled with a \fB\-fdump\-rtl\fR switch or some
13000 \&\fB\-d\fR option \fIletters\fR.  Here are the possible
13001 letters for use in \fIpass\fR and \fIletters\fR, and their meanings:
13002 .RS 4
13003 .IP "\fB\-fdump\-rtl\-alignments\fR" 4
13004 .IX Item "-fdump-rtl-alignments"
13005 Dump after branch alignments have been computed.
13006 .IP "\fB\-fdump\-rtl\-asmcons\fR" 4
13007 .IX Item "-fdump-rtl-asmcons"
13008 Dump after fixing rtl statements that have unsatisfied in/out constraints.
13009 .IP "\fB\-fdump\-rtl\-auto_inc_dec\fR" 4
13010 .IX Item "-fdump-rtl-auto_inc_dec"
13011 Dump after auto-inc-dec discovery.  This pass is only run on
13012 architectures that have auto inc or auto dec instructions.
13013 .IP "\fB\-fdump\-rtl\-barriers\fR" 4
13014 .IX Item "-fdump-rtl-barriers"
13015 Dump after cleaning up the barrier instructions.
13016 .IP "\fB\-fdump\-rtl\-bbpart\fR" 4
13017 .IX Item "-fdump-rtl-bbpart"
13018 Dump after partitioning hot and cold basic blocks.
13019 .IP "\fB\-fdump\-rtl\-bbro\fR" 4
13020 .IX Item "-fdump-rtl-bbro"
13021 Dump after block reordering.
13022 .IP "\fB\-fdump\-rtl\-btl1\fR" 4
13023 .IX Item "-fdump-rtl-btl1"
13024 .PD 0
13025 .IP "\fB\-fdump\-rtl\-btl2\fR" 4
13026 .IX Item "-fdump-rtl-btl2"
13027 .PD
13028 \&\fB\-fdump\-rtl\-btl1\fR and \fB\-fdump\-rtl\-btl2\fR enable dumping
13029 after the two branch
13030 target load optimization passes.
13031 .IP "\fB\-fdump\-rtl\-bypass\fR" 4
13032 .IX Item "-fdump-rtl-bypass"
13033 Dump after jump bypassing and control flow optimizations.
13034 .IP "\fB\-fdump\-rtl\-combine\fR" 4
13035 .IX Item "-fdump-rtl-combine"
13036 Dump after the \s-1RTL\s0 instruction combination pass.
13037 .IP "\fB\-fdump\-rtl\-compgotos\fR" 4
13038 .IX Item "-fdump-rtl-compgotos"
13039 Dump after duplicating the computed gotos.
13040 .IP "\fB\-fdump\-rtl\-ce1\fR" 4
13041 .IX Item "-fdump-rtl-ce1"
13042 .PD 0
13043 .IP "\fB\-fdump\-rtl\-ce2\fR" 4
13044 .IX Item "-fdump-rtl-ce2"
13045 .IP "\fB\-fdump\-rtl\-ce3\fR" 4
13046 .IX Item "-fdump-rtl-ce3"
13047 .PD
13048 \&\fB\-fdump\-rtl\-ce1\fR, \fB\-fdump\-rtl\-ce2\fR, and
13049 \&\fB\-fdump\-rtl\-ce3\fR enable dumping after the three
13050 if conversion passes.
13051 .IP "\fB\-fdump\-rtl\-cprop_hardreg\fR" 4
13052 .IX Item "-fdump-rtl-cprop_hardreg"
13053 Dump after hard register copy propagation.
13054 .IP "\fB\-fdump\-rtl\-csa\fR" 4
13055 .IX Item "-fdump-rtl-csa"
13056 Dump after combining stack adjustments.
13057 .IP "\fB\-fdump\-rtl\-cse1\fR" 4
13058 .IX Item "-fdump-rtl-cse1"
13059 .PD 0
13060 .IP "\fB\-fdump\-rtl\-cse2\fR" 4
13061 .IX Item "-fdump-rtl-cse2"
13062 .PD
13063 \&\fB\-fdump\-rtl\-cse1\fR and \fB\-fdump\-rtl\-cse2\fR enable dumping after
13064 the two common subexpression elimination passes.
13065 .IP "\fB\-fdump\-rtl\-dce\fR" 4
13066 .IX Item "-fdump-rtl-dce"
13067 Dump after the standalone dead code elimination passes.
13068 .IP "\fB\-fdump\-rtl\-dbr\fR" 4
13069 .IX Item "-fdump-rtl-dbr"
13070 Dump after delayed branch scheduling.
13071 .IP "\fB\-fdump\-rtl\-dce1\fR" 4
13072 .IX Item "-fdump-rtl-dce1"
13073 .PD 0
13074 .IP "\fB\-fdump\-rtl\-dce2\fR" 4
13075 .IX Item "-fdump-rtl-dce2"
13076 .PD
13077 \&\fB\-fdump\-rtl\-dce1\fR and \fB\-fdump\-rtl\-dce2\fR enable dumping after
13078 the two dead store elimination passes.
13079 .IP "\fB\-fdump\-rtl\-eh\fR" 4
13080 .IX Item "-fdump-rtl-eh"
13081 Dump after finalization of \s-1EH\s0 handling code.
13082 .IP "\fB\-fdump\-rtl\-eh_ranges\fR" 4
13083 .IX Item "-fdump-rtl-eh_ranges"
13084 Dump after conversion of \s-1EH\s0 handling range regions.
13085 .IP "\fB\-fdump\-rtl\-expand\fR" 4
13086 .IX Item "-fdump-rtl-expand"
13087 Dump after \s-1RTL\s0 generation.
13088 .IP "\fB\-fdump\-rtl\-fwprop1\fR" 4
13089 .IX Item "-fdump-rtl-fwprop1"
13090 .PD 0
13091 .IP "\fB\-fdump\-rtl\-fwprop2\fR" 4
13092 .IX Item "-fdump-rtl-fwprop2"
13093 .PD
13094 \&\fB\-fdump\-rtl\-fwprop1\fR and \fB\-fdump\-rtl\-fwprop2\fR enable
13095 dumping after the two forward propagation passes.
13096 .IP "\fB\-fdump\-rtl\-gcse1\fR" 4
13097 .IX Item "-fdump-rtl-gcse1"
13098 .PD 0
13099 .IP "\fB\-fdump\-rtl\-gcse2\fR" 4
13100 .IX Item "-fdump-rtl-gcse2"
13101 .PD
13102 \&\fB\-fdump\-rtl\-gcse1\fR and \fB\-fdump\-rtl\-gcse2\fR enable dumping
13103 after global common subexpression elimination.
13104 .IP "\fB\-fdump\-rtl\-init\-regs\fR" 4
13105 .IX Item "-fdump-rtl-init-regs"
13106 Dump after the initialization of the registers.
13107 .IP "\fB\-fdump\-rtl\-initvals\fR" 4
13108 .IX Item "-fdump-rtl-initvals"
13109 Dump after the computation of the initial value sets.
13110 .IP "\fB\-fdump\-rtl\-into_cfglayout\fR" 4
13111 .IX Item "-fdump-rtl-into_cfglayout"
13112 Dump after converting to cfglayout mode.
13113 .IP "\fB\-fdump\-rtl\-ira\fR" 4
13114 .IX Item "-fdump-rtl-ira"
13115 Dump after iterated register allocation.
13116 .IP "\fB\-fdump\-rtl\-jump\fR" 4
13117 .IX Item "-fdump-rtl-jump"
13118 Dump after the second jump optimization.
13119 .IP "\fB\-fdump\-rtl\-loop2\fR" 4
13120 .IX Item "-fdump-rtl-loop2"
13121 \&\fB\-fdump\-rtl\-loop2\fR enables dumping after the rtl
13122 loop optimization passes.
13123 .IP "\fB\-fdump\-rtl\-mach\fR" 4
13124 .IX Item "-fdump-rtl-mach"
13125 Dump after performing the machine dependent reorganization pass, if that
13126 pass exists.
13127 .IP "\fB\-fdump\-rtl\-mode_sw\fR" 4
13128 .IX Item "-fdump-rtl-mode_sw"
13129 Dump after removing redundant mode switches.
13130 .IP "\fB\-fdump\-rtl\-rnreg\fR" 4
13131 .IX Item "-fdump-rtl-rnreg"
13132 Dump after register renumbering.
13133 .IP "\fB\-fdump\-rtl\-outof_cfglayout\fR" 4
13134 .IX Item "-fdump-rtl-outof_cfglayout"
13135 Dump after converting from cfglayout mode.
13136 .IP "\fB\-fdump\-rtl\-peephole2\fR" 4
13137 .IX Item "-fdump-rtl-peephole2"
13138 Dump after the peephole pass.
13139 .IP "\fB\-fdump\-rtl\-postreload\fR" 4
13140 .IX Item "-fdump-rtl-postreload"
13141 Dump after post-reload optimizations.
13142 .IP "\fB\-fdump\-rtl\-pro_and_epilogue\fR" 4
13143 .IX Item "-fdump-rtl-pro_and_epilogue"
13144 Dump after generating the function prologues and epilogues.
13145 .IP "\fB\-fdump\-rtl\-sched1\fR" 4
13146 .IX Item "-fdump-rtl-sched1"
13147 .PD 0
13148 .IP "\fB\-fdump\-rtl\-sched2\fR" 4
13149 .IX Item "-fdump-rtl-sched2"
13150 .PD
13151 \&\fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR enable dumping
13152 after the basic block scheduling passes.
13153 .IP "\fB\-fdump\-rtl\-ree\fR" 4
13154 .IX Item "-fdump-rtl-ree"
13155 Dump after sign/zero extension elimination.
13156 .IP "\fB\-fdump\-rtl\-seqabstr\fR" 4
13157 .IX Item "-fdump-rtl-seqabstr"
13158 Dump after common sequence discovery.
13159 .IP "\fB\-fdump\-rtl\-shorten\fR" 4
13160 .IX Item "-fdump-rtl-shorten"
13161 Dump after shortening branches.
13162 .IP "\fB\-fdump\-rtl\-sibling\fR" 4
13163 .IX Item "-fdump-rtl-sibling"
13164 Dump after sibling call optimizations.
13165 .IP "\fB\-fdump\-rtl\-split1\fR" 4
13166 .IX Item "-fdump-rtl-split1"
13167 .PD 0
13168 .IP "\fB\-fdump\-rtl\-split2\fR" 4
13169 .IX Item "-fdump-rtl-split2"
13170 .IP "\fB\-fdump\-rtl\-split3\fR" 4
13171 .IX Item "-fdump-rtl-split3"
13172 .IP "\fB\-fdump\-rtl\-split4\fR" 4
13173 .IX Item "-fdump-rtl-split4"
13174 .IP "\fB\-fdump\-rtl\-split5\fR" 4
13175 .IX Item "-fdump-rtl-split5"
13176 .PD
13177 These options enable dumping after five rounds of
13178 instruction splitting.
13179 .IP "\fB\-fdump\-rtl\-sms\fR" 4
13180 .IX Item "-fdump-rtl-sms"
13181 Dump after modulo scheduling.  This pass is only run on some
13182 architectures.
13183 .IP "\fB\-fdump\-rtl\-stack\fR" 4
13184 .IX Item "-fdump-rtl-stack"
13185 Dump after conversion from \s-1GCC\s0's \*(L"flat register file\*(R" registers to the
13186 x87's stack-like registers.  This pass is only run on x86 variants.
13187 .IP "\fB\-fdump\-rtl\-subreg1\fR" 4
13188 .IX Item "-fdump-rtl-subreg1"
13189 .PD 0
13190 .IP "\fB\-fdump\-rtl\-subreg2\fR" 4
13191 .IX Item "-fdump-rtl-subreg2"
13192 .PD
13193 \&\fB\-fdump\-rtl\-subreg1\fR and \fB\-fdump\-rtl\-subreg2\fR enable dumping after
13194 the two subreg expansion passes.
13195 .IP "\fB\-fdump\-rtl\-unshare\fR" 4
13196 .IX Item "-fdump-rtl-unshare"
13197 Dump after all rtl has been unshared.
13198 .IP "\fB\-fdump\-rtl\-vartrack\fR" 4
13199 .IX Item "-fdump-rtl-vartrack"
13200 Dump after variable tracking.
13201 .IP "\fB\-fdump\-rtl\-vregs\fR" 4
13202 .IX Item "-fdump-rtl-vregs"
13203 Dump after converting virtual registers to hard registers.
13204 .IP "\fB\-fdump\-rtl\-web\fR" 4
13205 .IX Item "-fdump-rtl-web"
13206 Dump after live range splitting.
13207 .IP "\fB\-fdump\-rtl\-regclass\fR" 4
13208 .IX Item "-fdump-rtl-regclass"
13209 .PD 0
13210 .IP "\fB\-fdump\-rtl\-subregs_of_mode_init\fR" 4
13211 .IX Item "-fdump-rtl-subregs_of_mode_init"
13212 .IP "\fB\-fdump\-rtl\-subregs_of_mode_finish\fR" 4
13213 .IX Item "-fdump-rtl-subregs_of_mode_finish"
13214 .IP "\fB\-fdump\-rtl\-dfinit\fR" 4
13215 .IX Item "-fdump-rtl-dfinit"
13216 .IP "\fB\-fdump\-rtl\-dfinish\fR" 4
13217 .IX Item "-fdump-rtl-dfinish"
13218 .PD
13219 These dumps are defined but always produce empty files.
13220 .IP "\fB\-da\fR" 4
13221 .IX Item "-da"
13222 .PD 0
13223 .IP "\fB\-fdump\-rtl\-all\fR" 4
13224 .IX Item "-fdump-rtl-all"
13225 .PD
13226 Produce all the dumps listed above.
13227 .IP "\fB\-dA\fR" 4
13228 .IX Item "-dA"
13229 Annotate the assembler output with miscellaneous debugging information.
13230 .IP "\fB\-dD\fR" 4
13231 .IX Item "-dD"
13232 Dump all macro definitions, at the end of preprocessing, in addition to
13233 normal output.
13234 .IP "\fB\-dH\fR" 4
13235 .IX Item "-dH"
13236 Produce a core dump whenever an error occurs.
13237 .IP "\fB\-dp\fR" 4
13238 .IX Item "-dp"
13239 Annotate the assembler output with a comment indicating which
13240 pattern and alternative is used.  The length and cost of each instruction are
13241 also printed.
13242 .IP "\fB\-dP\fR" 4
13243 .IX Item "-dP"
13244 Dump the \s-1RTL\s0 in the assembler output as a comment before each instruction.
13245 Also turns on \fB\-dp\fR annotation.
13246 .IP "\fB\-dx\fR" 4
13247 .IX Item "-dx"
13248 Just generate \s-1RTL\s0 for a function instead of compiling it.  Usually used
13249 with \fB\-fdump\-rtl\-expand\fR.
13250 .RE
13251 .RS 4
13252 .RE
13253 .IP "\fB\-fdump\-noaddr\fR" 4
13254 .IX Item "-fdump-noaddr"
13255 When doing debugging dumps, suppress address output.  This makes it more
13256 feasible to use diff on debugging dumps for compiler invocations with
13257 different compiler binaries and/or different
13258 text / bss / data / heap / stack / dso start locations.
13259 .IP "\fB\-freport\-bug\fR" 4
13260 .IX Item "-freport-bug"
13261 Collect and dump debug information into a temporary file if an
13262 internal compiler error (\s-1ICE\s0) occurs.
13263 .IP "\fB\-fdump\-unnumbered\fR" 4
13264 .IX Item "-fdump-unnumbered"
13265 When doing debugging dumps, suppress instruction numbers and address output.
13266 This makes it more feasible to use diff on debugging dumps for compiler
13267 invocations with different options, in particular with and without
13268 \&\fB\-g\fR.
13269 .IP "\fB\-fdump\-unnumbered\-links\fR" 4
13270 .IX Item "-fdump-unnumbered-links"
13271 When doing debugging dumps (see \fB\-d\fR option above), suppress
13272 instruction numbers for the links to the previous and next instructions
13273 in a sequence.
13274 .IP "\fB\-fdump\-ipa\-\fR\fIswitch\fR" 4
13275 .IX Item "-fdump-ipa-switch"
13276 Control the dumping at various stages of inter-procedural analysis
13277 language tree to a file.  The file name is generated by appending a
13278 switch specific suffix to the source file name, and the file is created
13279 in the same directory as the output file.  The following dumps are
13280 possible:
13281 .RS 4
13282 .IP "\fBall\fR" 4
13283 .IX Item "all"
13284 Enables all inter-procedural analysis dumps.
13285 .IP "\fBcgraph\fR" 4
13286 .IX Item "cgraph"
13287 Dumps information about call-graph optimization, unused function removal,
13288 and inlining decisions.
13289 .IP "\fBinline\fR" 4
13290 .IX Item "inline"
13291 Dump after function inlining.
13292 .RE
13293 .RS 4
13294 .RE
13295 .IP "\fB\-fdump\-lang\-all\fR" 4
13296 .IX Item "-fdump-lang-all"
13297 .PD 0
13298 .IP "\fB\-fdump\-lang\-\fR\fIswitch\fR" 4
13299 .IX Item "-fdump-lang-switch"
13300 .IP "\fB\-fdump\-lang\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR" 4
13301 .IX Item "-fdump-lang-switch-options"
13302 .IP "\fB\-fdump\-lang\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR" 4
13303 .IX Item "-fdump-lang-switch-options=filename"
13304 .PD
13305 Control the dumping of language-specific information.  The \fIoptions\fR
13306 and \fIfilename\fR portions behave as described in the
13307 \&\fB\-fdump\-tree\fR option.  The following \fIswitch\fR values are
13308 accepted:
13309 .RS 4
13310 .IP "\fBall\fR" 4
13311 .IX Item "all"
13312 Enable all language-specific dumps.
13313 .IP "\fBclass\fR" 4
13314 .IX Item "class"
13315 Dump class hierarchy information.  Virtual table information is emitted
13316 unless '\fBslim\fR' is specified.  This option is applicable to \*(C+ only.
13317 .IP "\fBraw\fR" 4
13318 .IX Item "raw"
13319 Dump the raw internal tree data.  This option is applicable to \*(C+ only.
13320 .RE
13321 .RS 4
13322 .RE
13323 .IP "\fB\-fdump\-passes\fR" 4
13324 .IX Item "-fdump-passes"
13325 Print on \fIstderr\fR the list of optimization passes that are turned
13326 on and off by the current command-line options.
13327 .IP "\fB\-fdump\-statistics\-\fR\fIoption\fR" 4
13328 .IX Item "-fdump-statistics-option"
13329 Enable and control dumping of pass statistics in a separate file.  The
13330 file name is generated by appending a suffix ending in
13331 \&\fB.statistics\fR to the source file name, and the file is created in
13332 the same directory as the output file.  If the \fB\-\fR\fIoption\fR
13333 form is used, \fB\-stats\fR causes counters to be summed over the
13334 whole compilation unit while \fB\-details\fR dumps every event as
13335 the passes generate them.  The default with no option is to sum
13336 counters for each function compiled.
13337 .IP "\fB\-fdump\-tree\-all\fR" 4
13338 .IX Item "-fdump-tree-all"
13339 .PD 0
13340 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR" 4
13341 .IX Item "-fdump-tree-switch"
13342 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR" 4
13343 .IX Item "-fdump-tree-switch-options"
13344 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR" 4
13345 .IX Item "-fdump-tree-switch-options=filename"
13346 .PD
13347 Control the dumping at various stages of processing the intermediate
13348 language tree to a file.  The file name is generated by appending a
13349 switch-specific suffix to the source file name, and the file is
13350 created in the same directory as the output file. In case of
13351 \&\fB=\fR\fIfilename\fR option, the dump is output on the given file
13352 instead of the auto named dump files.  If the \fB\-\fR\fIoptions\fR
13353 form is used, \fIoptions\fR is a list of \fB\-\fR separated options
13354 which control the details of the dump.  Not all options are applicable
13355 to all dumps; those that are not meaningful are ignored.  The
13356 following options are available
13357 .RS 4
13358 .IP "\fBaddress\fR" 4
13359 .IX Item "address"
13360 Print the address of each node.  Usually this is not meaningful as it
13361 changes according to the environment and source file.  Its primary use
13362 is for tying up a dump file with a debug environment.
13363 .IP "\fBasmname\fR" 4
13364 .IX Item "asmname"
13365 If \f(CW\*(C`DECL_ASSEMBLER_NAME\*(C'\fR has been set for a given decl, use that
13366 in the dump instead of \f(CW\*(C`DECL_NAME\*(C'\fR.  Its primary use is ease of
13367 use working backward from mangled names in the assembly file.
13368 .IP "\fBslim\fR" 4
13369 .IX Item "slim"
13370 When dumping front-end intermediate representations, inhibit dumping
13371 of members of a scope or body of a function merely because that scope
13372 has been reached.  Only dump such items when they are directly reachable
13373 by some other path.
13374 .Sp
13375 When dumping pretty-printed trees, this option inhibits dumping the
13376 bodies of control structures.
13377 .Sp
13378 When dumping \s-1RTL,\s0 print the \s-1RTL\s0 in slim (condensed) form instead of
13379 the default LISP-like representation.
13380 .IP "\fBraw\fR" 4
13381 .IX Item "raw"
13382 Print a raw representation of the tree.  By default, trees are
13383 pretty-printed into a C\-like representation.
13384 .IP "\fBdetails\fR" 4
13385 .IX Item "details"
13386 Enable more detailed dumps (not honored by every dump option). Also
13387 include information from the optimization passes.
13388 .IP "\fBstats\fR" 4
13389 .IX Item "stats"
13390 Enable dumping various statistics about the pass (not honored by every dump
13391 option).
13392 .IP "\fBblocks\fR" 4
13393 .IX Item "blocks"
13394 Enable showing basic block boundaries (disabled in raw dumps).
13395 .IP "\fBgraph\fR" 4
13396 .IX Item "graph"
13397 For each of the other indicated dump files (\fB\-fdump\-rtl\-\fR\fIpass\fR),
13398 dump a representation of the control flow graph suitable for viewing with
13399 GraphViz to \fI\fIfile\fI.\fIpassid\fI.\fIpass\fI.dot\fR.  Each function in
13400 the file is pretty-printed as a subgraph, so that GraphViz can render them
13401 all in a single plot.
13402 .Sp
13403 This option currently only works for \s-1RTL\s0 dumps, and the \s-1RTL\s0 is always
13404 dumped in slim form.
13405 .IP "\fBvops\fR" 4
13406 .IX Item "vops"
13407 Enable showing virtual operands for every statement.
13408 .IP "\fBlineno\fR" 4
13409 .IX Item "lineno"
13410 Enable showing line numbers for statements.
13411 .IP "\fBuid\fR" 4
13412 .IX Item "uid"
13413 Enable showing the unique \s-1ID\s0 (\f(CW\*(C`DECL_UID\*(C'\fR) for each variable.
13414 .IP "\fBverbose\fR" 4
13415 .IX Item "verbose"
13416 Enable showing the tree dump for each statement.
13417 .IP "\fBeh\fR" 4
13418 .IX Item "eh"
13419 Enable showing the \s-1EH\s0 region number holding each statement.
13420 .IP "\fBscev\fR" 4
13421 .IX Item "scev"
13422 Enable showing scalar evolution analysis details.
13423 .IP "\fBoptimized\fR" 4
13424 .IX Item "optimized"
13425 Enable showing optimization information (only available in certain
13426 passes).
13427 .IP "\fBmissed\fR" 4
13428 .IX Item "missed"
13429 Enable showing missed optimization information (only available in certain
13430 passes).
13431 .IP "\fBnote\fR" 4
13432 .IX Item "note"
13433 Enable other detailed optimization information (only available in
13434 certain passes).
13435 .IP "\fB=\fR\fIfilename\fR" 4
13436 .IX Item "=filename"
13437 Instead of an auto named dump file, output into the given file
13438 name. The file names \fIstdout\fR and \fIstderr\fR are treated
13439 specially and are considered already open standard streams. For
13440 example,
13441 .Sp
13442 .Vb 2
13443 \&        gcc \-O2 \-ftree\-vectorize \-fdump\-tree\-vect\-blocks=foo.dump
13444 \&             \-fdump\-tree\-pre=/dev/stderr file.c
13445 .Ve
13446 .Sp
13447 outputs vectorizer dump into \fIfoo.dump\fR, while the \s-1PRE\s0 dump is
13448 output on to \fIstderr\fR. If two conflicting dump filenames are
13449 given for the same pass, then the latter option overrides the earlier
13450 one.
13451 .IP "\fBall\fR" 4
13452 .IX Item "all"
13453 Turn on all options, except \fBraw\fR, \fBslim\fR, \fBverbose\fR
13454 and \fBlineno\fR.
13455 .IP "\fBoptall\fR" 4
13456 .IX Item "optall"
13457 Turn on all optimization options, i.e., \fBoptimized\fR,
13458 \&\fBmissed\fR, and \fBnote\fR.
13459 .RE
13460 .RS 4
13461 .Sp
13462 To determine what tree dumps are available or find the dump for a pass
13463 of interest follow the steps below.
13464 .IP "1." 4
13465 .IX Item "1."
13466 Invoke \s-1GCC\s0 with \fB\-fdump\-passes\fR and in the \fIstderr\fR output
13467 look for a code that corresponds to the pass you are interested in.
13468 For example, the codes \f(CW\*(C`tree\-evrp\*(C'\fR, \f(CW\*(C`tree\-vrp1\*(C'\fR, and
13469 \&\f(CW\*(C`tree\-vrp2\*(C'\fR correspond to the three Value Range Propagation passes.
13470 The number at the end distinguishes distinct invocations of the same pass.
13471 .IP "2." 4
13472 .IX Item "2."
13473 To enable the creation of the dump file, append the pass code to
13474 the \fB\-fdump\-\fR option prefix and invoke \s-1GCC\s0 with it.  For example,
13475 to enable the dump from the Early Value Range Propagation pass, invoke
13476 \&\s-1GCC\s0 with the \fB\-fdump\-tree\-evrp\fR option.  Optionally, you may
13477 specify the name of the dump file.  If you don't specify one, \s-1GCC\s0
13478 creates as described below.
13479 .IP "3." 4
13480 .IX Item "3."
13481 Find the pass dump in a file whose name is composed of three components
13482 separated by a period: the name of the source file \s-1GCC\s0 was invoked to
13483 compile, a numeric suffix indicating the pass number followed by the
13484 letter \fBt\fR for tree passes (and the letter \fBr\fR for \s-1RTL\s0 passes),
13485 and finally the pass code.  For example, the Early \s-1VRP\s0 pass dump might
13486 be in a file named \fImyfile.c.038t.evrp\fR in the current working
13487 directory.  Note that the numeric codes are not stable and may change
13488 from one version of \s-1GCC\s0 to another.
13489 .RE
13490 .RS 4
13491 .RE
13492 .IP "\fB\-fopt\-info\fR" 4
13493 .IX Item "-fopt-info"
13494 .PD 0
13495 .IP "\fB\-fopt\-info\-\fR\fIoptions\fR" 4
13496 .IX Item "-fopt-info-options"
13497 .IP "\fB\-fopt\-info\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR" 4
13498 .IX Item "-fopt-info-options=filename"
13499 .PD
13500 Controls optimization dumps from various optimization passes. If the
13501 \&\fB\-\fR\fIoptions\fR form is used, \fIoptions\fR is a list of
13502 \&\fB\-\fR separated option keywords to select the dump details and
13503 optimizations.
13504 .Sp
13505 The \fIoptions\fR can be divided into two groups: options describing the
13506 verbosity of the dump, and options describing which optimizations
13507 should be included. The options from both the groups can be freely
13508 mixed as they are non-overlapping. However, in case of any conflicts,
13509 the later options override the earlier options on the command
13510 line.
13511 .Sp
13512 The following options control the dump verbosity:
13513 .RS 4
13514 .IP "\fBoptimized\fR" 4
13515 .IX Item "optimized"
13516 Print information when an optimization is successfully applied. It is
13517 up to a pass to decide which information is relevant. For example, the
13518 vectorizer passes print the source location of loops which are
13519 successfully vectorized.
13520 .IP "\fBmissed\fR" 4
13521 .IX Item "missed"
13522 Print information about missed optimizations. Individual passes
13523 control which information to include in the output.
13524 .IP "\fBnote\fR" 4
13525 .IX Item "note"
13526 Print verbose information about optimizations, such as certain
13527 transformations, more detailed messages about decisions etc.
13528 .IP "\fBall\fR" 4
13529 .IX Item "all"
13530 Print detailed optimization information. This includes
13531 \&\fBoptimized\fR, \fBmissed\fR, and \fBnote\fR.
13532 .RE
13533 .RS 4
13534 .Sp
13535 One or more of the following option keywords can be used to describe a
13536 group of optimizations:
13537 .IP "\fBipa\fR" 4
13538 .IX Item "ipa"
13539 Enable dumps from all interprocedural optimizations.
13540 .IP "\fBloop\fR" 4
13541 .IX Item "loop"
13542 Enable dumps from all loop optimizations.
13543 .IP "\fBinline\fR" 4
13544 .IX Item "inline"
13545 Enable dumps from all inlining optimizations.
13546 .IP "\fBomp\fR" 4
13547 .IX Item "omp"
13548 Enable dumps from all \s-1OMP\s0 (Offloading and Multi Processing) optimizations.
13549 .IP "\fBvec\fR" 4
13550 .IX Item "vec"
13551 Enable dumps from all vectorization optimizations.
13552 .IP "\fBoptall\fR" 4
13553 .IX Item "optall"
13554 Enable dumps from all optimizations. This is a superset of
13555 the optimization groups listed above.
13556 .RE
13557 .RS 4
13558 .Sp
13559 If \fIoptions\fR is
13560 omitted, it defaults to \fBoptimized-optall\fR, which means to dump all
13561 info about successful optimizations from all the passes.
13562 .Sp
13563 If the \fIfilename\fR is provided, then the dumps from all the
13564 applicable optimizations are concatenated into the \fIfilename\fR.
13565 Otherwise the dump is output onto \fIstderr\fR. Though multiple
13566 \&\fB\-fopt\-info\fR options are accepted, only one of them can include
13567 a \fIfilename\fR. If other filenames are provided then all but the
13568 first such option are ignored.
13569 .Sp
13570 Note that the output \fIfilename\fR is overwritten
13571 in case of multiple translation units. If a combined output from
13572 multiple translation units is desired, \fIstderr\fR should be used
13573 instead.
13574 .Sp
13575 In the following example, the optimization info is output to
13576 \&\fIstderr\fR:
13577 .Sp
13578 .Vb 1
13579 \&        gcc \-O3 \-fopt\-info
13580 .Ve
13581 .Sp
13582 This example:
13583 .Sp
13584 .Vb 1
13585 \&        gcc \-O3 \-fopt\-info\-missed=missed.all
13586 .Ve
13587 .Sp
13588 outputs missed optimization report from all the passes into
13589 \&\fImissed.all\fR, and this one:
13590 .Sp
13591 .Vb 1
13592 \&        gcc \-O2 \-ftree\-vectorize \-fopt\-info\-vec\-missed
13593 .Ve
13594 .Sp
13595 prints information about missed optimization opportunities from
13596 vectorization passes on \fIstderr\fR.  
13597 Note that \fB\-fopt\-info\-vec\-missed\fR is equivalent to 
13598 \&\fB\-fopt\-info\-missed\-vec\fR.  The order of the optimization group
13599 names and message types listed after \fB\-fopt\-info\fR does not matter.
13600 .Sp
13601 As another example,
13602 .Sp
13603 .Vb 1
13604 \&        gcc \-O3 \-fopt\-info\-inline\-optimized\-missed=inline.txt
13605 .Ve
13606 .Sp
13607 outputs information about missed optimizations as well as
13608 optimized locations from all the inlining passes into
13609 \&\fIinline.txt\fR.
13610 .Sp
13611 Finally, consider:
13612 .Sp
13613 .Vb 1
13614 \&        gcc \-fopt\-info\-vec\-missed=vec.miss \-fopt\-info\-loop\-optimized=loop.opt
13615 .Ve
13616 .Sp
13617 Here the two output filenames \fIvec.miss\fR and \fIloop.opt\fR are
13618 in conflict since only one output file is allowed. In this case, only
13619 the first option takes effect and the subsequent options are
13620 ignored. Thus only \fIvec.miss\fR is produced which contains
13621 dumps from the vectorizer about missed opportunities.
13622 .RE
13623 .IP "\fB\-fsched\-verbose=\fR\fIn\fR" 4
13624 .IX Item "-fsched-verbose=n"
13625 On targets that use instruction scheduling, this option controls the
13626 amount of debugging output the scheduler prints to the dump files.
13627 .Sp
13628 For \fIn\fR greater than zero, \fB\-fsched\-verbose\fR outputs the
13629 same information as \fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR.
13630 For \fIn\fR greater than one, it also output basic block probabilities,
13631 detailed ready list information and unit/insn info.  For \fIn\fR greater
13632 than two, it includes \s-1RTL\s0 at abort point, control-flow and regions info.
13633 And for \fIn\fR over four, \fB\-fsched\-verbose\fR also includes
13634 dependence info.
13635 .IP "\fB\-fenable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR" 4
13636 .IX Item "-fenable-kind-pass"
13637 .PD 0
13638 .IP "\fB\-fdisable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
13639 .IX Item "-fdisable-kind-pass=range-list"
13640 .PD
13641 This is a set of options that are used to explicitly disable/enable
13642 optimization passes.  These options are intended for use for debugging \s-1GCC.\s0
13643 Compiler users should use regular options for enabling/disabling
13644 passes instead.
13645 .RS 4
13646 .IP "\fB\-fdisable\-ipa\-\fR\fIpass\fR" 4
13647 .IX Item "-fdisable-ipa-pass"
13648 Disable \s-1IPA\s0 pass \fIpass\fR. \fIpass\fR is the pass name.  If the same pass is
13649 statically invoked in the compiler multiple times, the pass name should be
13650 appended with a sequential number starting from 1.
13651 .IP "\fB\-fdisable\-rtl\-\fR\fIpass\fR" 4
13652 .IX Item "-fdisable-rtl-pass"
13653 .PD 0
13654 .IP "\fB\-fdisable\-rtl\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
13655 .IX Item "-fdisable-rtl-pass=range-list"
13656 .PD
13657 Disable \s-1RTL\s0 pass \fIpass\fR.  \fIpass\fR is the pass name.  If the same pass is
13658 statically invoked in the compiler multiple times, the pass name should be
13659 appended with a sequential number starting from 1.  \fIrange-list\fR is a 
13660 comma-separated list of function ranges or assembler names.  Each range is a number
13661 pair separated by a colon.  The range is inclusive in both ends.  If the range
13662 is trivial, the number pair can be simplified as a single number.  If the
13663 function's call graph node's \fIuid\fR falls within one of the specified ranges,
13664 the \fIpass\fR is disabled for that function.  The \fIuid\fR is shown in the
13665 function header of a dump file, and the pass names can be dumped by using
13666 option \fB\-fdump\-passes\fR.
13667 .IP "\fB\-fdisable\-tree\-\fR\fIpass\fR" 4
13668 .IX Item "-fdisable-tree-pass"
13669 .PD 0
13670 .IP "\fB\-fdisable\-tree\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
13671 .IX Item "-fdisable-tree-pass=range-list"
13672 .PD
13673 Disable tree pass \fIpass\fR.  See \fB\-fdisable\-rtl\fR for the description of
13674 option arguments.
13675 .IP "\fB\-fenable\-ipa\-\fR\fIpass\fR" 4
13676 .IX Item "-fenable-ipa-pass"
13677 Enable \s-1IPA\s0 pass \fIpass\fR.  \fIpass\fR is the pass name.  If the same pass is
13678 statically invoked in the compiler multiple times, the pass name should be
13679 appended with a sequential number starting from 1.
13680 .IP "\fB\-fenable\-rtl\-\fR\fIpass\fR" 4
13681 .IX Item "-fenable-rtl-pass"
13682 .PD 0
13683 .IP "\fB\-fenable\-rtl\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
13684 .IX Item "-fenable-rtl-pass=range-list"
13685 .PD
13686 Enable \s-1RTL\s0 pass \fIpass\fR.  See \fB\-fdisable\-rtl\fR for option argument
13687 description and examples.
13688 .IP "\fB\-fenable\-tree\-\fR\fIpass\fR" 4
13689 .IX Item "-fenable-tree-pass"
13690 .PD 0
13691 .IP "\fB\-fenable\-tree\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
13692 .IX Item "-fenable-tree-pass=range-list"
13693 .PD
13694 Enable tree pass \fIpass\fR.  See \fB\-fdisable\-rtl\fR for the description
13695 of option arguments.
13696 .RE
13697 .RS 4
13698 .Sp
13699 Here are some examples showing uses of these options.
13700 .Sp
13701 .Vb 10
13702 \&        # disable ccp1 for all functions
13703 \&           \-fdisable\-tree\-ccp1
13704 \&        # disable complete unroll for function whose cgraph node uid is 1
13705 \&           \-fenable\-tree\-cunroll=1
13706 \&        # disable gcse2 for functions at the following ranges [1,1],
13707 \&        # [300,400], and [400,1000]
13708 \&        # disable gcse2 for functions foo and foo2
13709 \&           \-fdisable\-rtl\-gcse2=foo,foo2
13710 \&        # disable early inlining
13711 \&           \-fdisable\-tree\-einline
13712 \&        # disable ipa inlining
13713 \&           \-fdisable\-ipa\-inline
13714 \&        # enable tree full unroll
13715 \&           \-fenable\-tree\-unroll
13716 .Ve
13717 .RE
13718 .IP "\fB\-fchecking\fR" 4
13719 .IX Item "-fchecking"
13720 .PD 0
13721 .IP "\fB\-fchecking=\fR\fIn\fR" 4
13722 .IX Item "-fchecking=n"
13723 .PD
13724 Enable internal consistency checking.  The default depends on
13725 the compiler configuration.  \fB\-fchecking=2\fR enables further
13726 internal consistency checking that might affect code generation.
13727 .IP "\fB\-frandom\-seed=\fR\fIstring\fR" 4
13728 .IX Item "-frandom-seed=string"
13729 This option provides a seed that \s-1GCC\s0 uses in place of
13730 random numbers in generating certain symbol names
13731 that have to be different in every compiled file.  It is also used to
13732 place unique stamps in coverage data files and the object files that
13733 produce them.  You can use the \fB\-frandom\-seed\fR option to produce
13734 reproducibly identical object files.
13735 .Sp
13736 The \fIstring\fR can either be a number (decimal, octal or hex) or an
13737 arbitrary string (in which case it's converted to a number by
13738 computing \s-1CRC32\s0).
13739 .Sp
13740 The \fIstring\fR should be different for every file you compile.
13741 .IP "\fB\-save\-temps\fR" 4
13742 .IX Item "-save-temps"
13743 .PD 0
13744 .IP "\fB\-save\-temps=cwd\fR" 4
13745 .IX Item "-save-temps=cwd"
13746 .PD
13747 Store the usual \*(L"temporary\*(R" intermediate files permanently; place them
13748 in the current directory and name them based on the source file.  Thus,
13749 compiling \fIfoo.c\fR with \fB\-c \-save\-temps\fR produces files
13750 \&\fIfoo.i\fR and \fIfoo.s\fR, as well as \fIfoo.o\fR.  This creates a
13751 preprocessed \fIfoo.i\fR output file even though the compiler now
13752 normally uses an integrated preprocessor.
13753 .Sp
13754 When used in combination with the \fB\-x\fR command-line option,
13755 \&\fB\-save\-temps\fR is sensible enough to avoid over writing an
13756 input source file with the same extension as an intermediate file.
13757 The corresponding intermediate file may be obtained by renaming the
13758 source file before using \fB\-save\-temps\fR.
13759 .Sp
13760 If you invoke \s-1GCC\s0 in parallel, compiling several different source
13761 files that share a common base name in different subdirectories or the
13762 same source file compiled for multiple output destinations, it is
13763 likely that the different parallel compilers will interfere with each
13764 other, and overwrite the temporary files.  For instance:
13765 .Sp
13766 .Vb 2
13767 \&        gcc \-save\-temps \-o outdir1/foo.o indir1/foo.c&
13768 \&        gcc \-save\-temps \-o outdir2/foo.o indir2/foo.c&
13769 .Ve
13770 .Sp
13771 may result in \fIfoo.i\fR and \fIfoo.o\fR being written to
13772 simultaneously by both compilers.
13773 .IP "\fB\-save\-temps=obj\fR" 4
13774 .IX Item "-save-temps=obj"
13775 Store the usual \*(L"temporary\*(R" intermediate files permanently.  If the
13776 \&\fB\-o\fR option is used, the temporary files are based on the
13777 object file.  If the \fB\-o\fR option is not used, the
13778 \&\fB\-save\-temps=obj\fR switch behaves like \fB\-save\-temps\fR.
13779 .Sp
13780 For example:
13781 .Sp
13782 .Vb 3
13783 \&        gcc \-save\-temps=obj \-c foo.c
13784 \&        gcc \-save\-temps=obj \-c bar.c \-o dir/xbar.o
13785 \&        gcc \-save\-temps=obj foobar.c \-o dir2/yfoobar
13786 .Ve
13787 .Sp
13788 creates \fIfoo.i\fR, \fIfoo.s\fR, \fIdir/xbar.i\fR,
13789 \&\fIdir/xbar.s\fR, \fIdir2/yfoobar.i\fR, \fIdir2/yfoobar.s\fR, and
13790 \&\fIdir2/yfoobar.o\fR.
13791 .IP "\fB\-save\-temps=objects\fR" 4
13792 .IX Item "-save-temps=objects"
13793 Is DragonFly extension for buildworld library targets to support
13794 \&\fIfoo.o\fR, \fIfoo.po\fR, \fIfoo.So\fR intermediates.
13795 If the \&\fB\-o\fR option is used, the temporary files are based on the
13796 object file without removing extension.
13797 If the \fB\-o\fR option is not used, the \fB\-save\-temps=objects\fR switch
13798 behaves like \fB\-save\-temps=obj\fR.
13799 .Sp
13800 For example:
13801 .Sp
13802 .Vb 3
13803 \&        gcc \-save\-temps=objects \-c foo.c \-o foo.So
13804 \&        gcc \-save\-temps=objects \-c bar.c \-o dir/xbar.o
13805 \&        gcc \-save\-temps=objects foobar.c \-o dir2/yfoobar
13806 .Ve
13807 .Sp
13808 creates \fIfoo.So.i\fR, \fIfoo.So.s\fR, \fIdir/xbar.o.i\fR,
13809 \&\fIdir/xbar.o.s\fR, \fIdir2/yfoobar.i\fR, \fIdir2/yfoobar.s\fR, and
13810 \&\fIdir2/yfoobar.o\fR.
13811 .IP "\fB\-time\fR[\fB=\fR\fIfile\fR]" 4
13812 .IX Item "-time[=file]"
13813 Report the \s-1CPU\s0 time taken by each subprocess in the compilation
13814 sequence.  For C source files, this is the compiler proper and assembler
13815 (plus the linker if linking is done).
13816 .Sp
13817 Without the specification of an output file, the output looks like this:
13818 .Sp
13819 .Vb 2
13820 \&        # cc1 0.12 0.01
13821 \&        # as 0.00 0.01
13822 .Ve
13823 .Sp
13824 The first number on each line is the \*(L"user time\*(R", that is time spent
13825 executing the program itself.  The second number is \*(L"system time\*(R",
13826 time spent executing operating system routines on behalf of the program.
13827 Both numbers are in seconds.
13828 .Sp
13829 With the specification of an output file, the output is appended to the
13830 named file, and it looks like this:
13831 .Sp
13832 .Vb 2
13833 \&        0.12 0.01 cc1 <options>
13834 \&        0.00 0.01 as <options>
13835 .Ve
13836 .Sp
13837 The \*(L"user time\*(R" and the \*(L"system time\*(R" are moved before the program
13838 name, and the options passed to the program are displayed, so that one
13839 can later tell what file was being compiled, and with which options.
13840 .IP "\fB\-fdump\-final\-insns\fR[\fB=\fR\fIfile\fR]" 4
13841 .IX Item "-fdump-final-insns[=file]"
13842 Dump the final internal representation (\s-1RTL\s0) to \fIfile\fR.  If the
13843 optional argument is omitted (or if \fIfile\fR is \f(CW\*(C`.\*(C'\fR), the name
13844 of the dump file is determined by appending \f(CW\*(C`.gkd\*(C'\fR to the
13845 compilation output file name.
13846 .IP "\fB\-fcompare\-debug\fR[\fB=\fR\fIopts\fR]" 4
13847 .IX Item "-fcompare-debug[=opts]"
13848 If no error occurs during compilation, run the compiler a second time,
13849 adding \fIopts\fR and \fB\-fcompare\-debug\-second\fR to the arguments
13850 passed to the second compilation.  Dump the final internal
13851 representation in both compilations, and print an error if they differ.
13852 .Sp
13853 If the equal sign is omitted, the default \fB\-gtoggle\fR is used.
13854 .Sp
13855 The environment variable \fB\s-1GCC_COMPARE_DEBUG\s0\fR, if defined, non-empty
13856 and nonzero, implicitly enables \fB\-fcompare\-debug\fR.  If
13857 \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR is defined to a string starting with a dash,
13858 then it is used for \fIopts\fR, otherwise the default \fB\-gtoggle\fR
13859 is used.
13860 .Sp
13861 \&\fB\-fcompare\-debug=\fR, with the equal sign but without \fIopts\fR,
13862 is equivalent to \fB\-fno\-compare\-debug\fR, which disables the dumping
13863 of the final representation and the second compilation, preventing even
13864 \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR from taking effect.
13865 .Sp
13866 To verify full coverage during \fB\-fcompare\-debug\fR testing, set
13867 \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR to say \fB\-fcompare\-debug\-not\-overridden\fR,
13868 which \s-1GCC\s0 rejects as an invalid option in any actual compilation
13869 (rather than preprocessing, assembly or linking).  To get just a
13870 warning, setting \fB\s-1GCC_COMPARE_DEBUG\s0\fR to \fB\-w%n\-fcompare\-debug
13871 not overridden\fR will do.
13872 .IP "\fB\-fcompare\-debug\-second\fR" 4
13873 .IX Item "-fcompare-debug-second"
13874 This option is implicitly passed to the compiler for the second
13875 compilation requested by \fB\-fcompare\-debug\fR, along with options to
13876 silence warnings, and omitting other options that would cause the compiler
13877 to produce output to files or to standard output as a side effect.  Dump
13878 files and preserved temporary files are renamed so as to contain the
13879 \&\f(CW\*(C`.gk\*(C'\fR additional extension during the second compilation, to avoid
13880 overwriting those generated by the first.
13881 .Sp
13882 When this option is passed to the compiler driver, it causes the
13883 \&\fIfirst\fR compilation to be skipped, which makes it useful for little
13884 other than debugging the compiler proper.
13885 .IP "\fB\-gtoggle\fR" 4
13886 .IX Item "-gtoggle"
13887 Turn off generation of debug info, if leaving out this option
13888 generates it, or turn it on at level 2 otherwise.  The position of this
13889 argument in the command line does not matter; it takes effect after all
13890 other options are processed, and it does so only once, no matter how
13891 many times it is given.  This is mainly intended to be used with
13892 \&\fB\-fcompare\-debug\fR.
13893 .IP "\fB\-fvar\-tracking\-assignments\-toggle\fR" 4
13894 .IX Item "-fvar-tracking-assignments-toggle"
13895 Toggle \fB\-fvar\-tracking\-assignments\fR, in the same way that
13896 \&\fB\-gtoggle\fR toggles \fB\-g\fR.
13897 .IP "\fB\-Q\fR" 4
13898 .IX Item "-Q"
13899 Makes the compiler print out each function name as it is compiled, and
13900 print some statistics about each pass when it finishes.
13901 .IP "\fB\-ftime\-report\fR" 4
13902 .IX Item "-ftime-report"
13903 Makes the compiler print some statistics about the time consumed by each
13904 pass when it finishes.
13905 .IP "\fB\-ftime\-report\-details\fR" 4
13906 .IX Item "-ftime-report-details"
13907 Record the time consumed by infrastructure parts separately for each pass.
13908 .IP "\fB\-fira\-verbose=\fR\fIn\fR" 4
13909 .IX Item "-fira-verbose=n"
13910 Control the verbosity of the dump file for the integrated register allocator.
13911 The default value is 5.  If the value \fIn\fR is greater or equal to 10,
13912 the dump output is sent to stderr using the same format as \fIn\fR minus 10.
13913 .IP "\fB\-flto\-report\fR" 4
13914 .IX Item "-flto-report"
13915 Prints a report with internal details on the workings of the link-time
13916 optimizer.  The contents of this report vary from version to version.
13917 It is meant to be useful to \s-1GCC\s0 developers when processing object
13918 files in \s-1LTO\s0 mode (via \fB\-flto\fR).
13919 .Sp
13920 Disabled by default.
13921 .IP "\fB\-flto\-report\-wpa\fR" 4
13922 .IX Item "-flto-report-wpa"
13923 Like \fB\-flto\-report\fR, but only print for the \s-1WPA\s0 phase of Link
13924 Time Optimization.
13925 .IP "\fB\-fmem\-report\fR" 4
13926 .IX Item "-fmem-report"
13927 Makes the compiler print some statistics about permanent memory
13928 allocation when it finishes.
13929 .IP "\fB\-fmem\-report\-wpa\fR" 4
13930 .IX Item "-fmem-report-wpa"
13931 Makes the compiler print some statistics about permanent memory
13932 allocation for the \s-1WPA\s0 phase only.
13933 .IP "\fB\-fpre\-ipa\-mem\-report\fR" 4
13934 .IX Item "-fpre-ipa-mem-report"
13935 .PD 0
13936 .IP "\fB\-fpost\-ipa\-mem\-report\fR" 4
13937 .IX Item "-fpost-ipa-mem-report"
13938 .PD
13939 Makes the compiler print some statistics about permanent memory
13940 allocation before or after interprocedural optimization.
13941 .IP "\fB\-fprofile\-report\fR" 4
13942 .IX Item "-fprofile-report"
13943 Makes the compiler print some statistics about consistency of the
13944 (estimated) profile and effect of individual passes.
13945 .IP "\fB\-fstack\-usage\fR" 4
13946 .IX Item "-fstack-usage"
13947 Makes the compiler output stack usage information for the program, on a
13948 per-function basis.  The filename for the dump is made by appending
13949 \&\fI.su\fR to the \fIauxname\fR.  \fIauxname\fR is generated from the name of
13950 the output file, if explicitly specified and it is not an executable,
13951 otherwise it is the basename of the source file.  An entry is made up
13952 of three fields:
13953 .RS 4
13954 .IP "*" 4
13955 The name of the function.
13956 .IP "*" 4
13957 A number of bytes.
13958 .IP "*" 4
13959 One or more qualifiers: \f(CW\*(C`static\*(C'\fR, \f(CW\*(C`dynamic\*(C'\fR, \f(CW\*(C`bounded\*(C'\fR.
13960 .RE
13961 .RS 4
13962 .Sp
13963 The qualifier \f(CW\*(C`static\*(C'\fR means that the function manipulates the stack
13964 statically: a fixed number of bytes are allocated for the frame on function
13965 entry and released on function exit; no stack adjustments are otherwise made
13966 in the function.  The second field is this fixed number of bytes.
13967 .Sp
13968 The qualifier \f(CW\*(C`dynamic\*(C'\fR means that the function manipulates the stack
13969 dynamically: in addition to the static allocation described above, stack
13970 adjustments are made in the body of the function, for example to push/pop
13971 arguments around function calls.  If the qualifier \f(CW\*(C`bounded\*(C'\fR is also
13972 present, the amount of these adjustments is bounded at compile time and
13973 the second field is an upper bound of the total amount of stack used by
13974 the function.  If it is not present, the amount of these adjustments is
13975 not bounded at compile time and the second field only represents the
13976 bounded part.
13977 .RE
13978 .IP "\fB\-fstats\fR" 4
13979 .IX Item "-fstats"
13980 Emit statistics about front-end processing at the end of the compilation.
13981 This option is supported only by the \*(C+ front end, and
13982 the information is generally only useful to the G++ development team.
13983 .IP "\fB\-fdbg\-cnt\-list\fR" 4
13984 .IX Item "-fdbg-cnt-list"
13985 Print the name and the counter upper bound for all debug counters.
13986 .IP "\fB\-fdbg\-cnt=\fR\fIcounter-value-list\fR" 4
13987 .IX Item "-fdbg-cnt=counter-value-list"
13988 Set the internal debug counter upper bound.  \fIcounter-value-list\fR
13989 is a comma-separated list of \fIname\fR:\fIvalue\fR pairs
13990 which sets the upper bound of each debug counter \fIname\fR to \fIvalue\fR.
13991 All debug counters have the initial upper bound of \f(CW\*(C`UINT_MAX\*(C'\fR;
13992 thus \f(CW\*(C`dbg_cnt\*(C'\fR returns true always unless the upper bound
13993 is set by this option.
13994 For example, with \fB\-fdbg\-cnt=dce:10,tail_call:0\fR,
13995 \&\f(CW\*(C`dbg_cnt(dce)\*(C'\fR returns true only for first 10 invocations.
13996 .IP "\fB\-print\-file\-name=\fR\fIlibrary\fR" 4
13997 .IX Item "-print-file-name=library"
13998 Print the full absolute name of the library file \fIlibrary\fR that
13999 would be used when linking\-\-\-and don't do anything else.  With this
14000 option, \s-1GCC\s0 does not compile or link anything; it just prints the
14001 file name.
14002 .IP "\fB\-print\-multi\-directory\fR" 4
14003 .IX Item "-print-multi-directory"
14004 Print the directory name corresponding to the multilib selected by any
14005 other switches present in the command line.  This directory is supposed
14006 to exist in \fB\s-1GCC_EXEC_PREFIX\s0\fR.
14007 .IP "\fB\-print\-multi\-lib\fR" 4
14008 .IX Item "-print-multi-lib"
14009 Print the mapping from multilib directory names to compiler switches
14010 that enable them.  The directory name is separated from the switches by
14011 \&\fB;\fR, and each switch starts with an \fB@\fR instead of the
14012 \&\fB\-\fR, without spaces between multiple switches.  This is supposed to
14013 ease shell processing.
14014 .IP "\fB\-print\-multi\-os\-directory\fR" 4
14015 .IX Item "-print-multi-os-directory"
14016 Print the path to \s-1OS\s0 libraries for the selected
14017 multilib, relative to some \fIlib\fR subdirectory.  If \s-1OS\s0 libraries are
14018 present in the \fIlib\fR subdirectory and no multilibs are used, this is
14019 usually just \fI.\fR, if \s-1OS\s0 libraries are present in \fIlib\fIsuffix\fI\fR
14020 sibling directories this prints e.g. \fI../lib64\fR, \fI../lib\fR or
14021 \&\fI../lib32\fR, or if \s-1OS\s0 libraries are present in \fIlib/\fIsubdir\fI\fR
14022 subdirectories it prints e.g. \fIamd64\fR, \fIsparcv9\fR or \fIev6\fR.
14023 .IP "\fB\-print\-multiarch\fR" 4
14024 .IX Item "-print-multiarch"
14025 Print the path to \s-1OS\s0 libraries for the selected multiarch,
14026 relative to some \fIlib\fR subdirectory.
14027 .IP "\fB\-print\-prog\-name=\fR\fIprogram\fR" 4
14028 .IX Item "-print-prog-name=program"
14029 Like \fB\-print\-file\-name\fR, but searches for a program such as \fBcpp\fR.
14030 .IP "\fB\-print\-libgcc\-file\-name\fR" 4
14031 .IX Item "-print-libgcc-file-name"
14032 Same as \fB\-print\-file\-name=libgcc.a\fR.
14033 .Sp
14034 This is useful when you use \fB\-nostdlib\fR or \fB\-nodefaultlibs\fR
14035 but you do want to link with \fIlibgcc.a\fR.  You can do:
14036 .Sp
14037 .Vb 1
14038 \&        gcc \-nostdlib <files>... \`gcc \-print\-libgcc\-file\-name\`
14039 .Ve
14040 .IP "\fB\-print\-search\-dirs\fR" 4
14041 .IX Item "-print-search-dirs"
14042 Print the name of the configured installation directory and a list of
14043 program and library directories \fBgcc\fR searches\-\-\-and don't do anything else.
14044 .Sp
14045 This is useful when \fBgcc\fR prints the error message
14046 \&\fBinstallation problem, cannot exec cpp0: No such file or directory\fR.
14047 To resolve this you either need to put \fIcpp0\fR and the other compiler
14048 components where \fBgcc\fR expects to find them, or you can set the environment
14049 variable \fB\s-1GCC_EXEC_PREFIX\s0\fR to the directory where you installed them.
14050 Don't forget the trailing \fB/\fR.
14051 .IP "\fB\-print\-sysroot\fR" 4
14052 .IX Item "-print-sysroot"
14053 Print the target sysroot directory that is used during
14054 compilation.  This is the target sysroot specified either at configure
14055 time or using the \fB\-\-sysroot\fR option, possibly with an extra
14056 suffix that depends on compilation options.  If no target sysroot is
14057 specified, the option prints nothing.
14058 .IP "\fB\-print\-sysroot\-headers\-suffix\fR" 4
14059 .IX Item "-print-sysroot-headers-suffix"
14060 Print the suffix added to the target sysroot when searching for
14061 headers, or give an error if the compiler is not configured with such
14062 a suffix\-\-\-and don't do anything else.
14063 .IP "\fB\-dumpmachine\fR" 4
14064 .IX Item "-dumpmachine"
14065 Print the compiler's target machine (for example,
14066 \&\fBi686\-pc\-linux\-gnu\fR)\-\-\-and don't do anything else.
14067 .IP "\fB\-dumpversion\fR" 4
14068 .IX Item "-dumpversion"
14069 Print the compiler version (for example, \f(CW3.0\fR, \f(CW6.3.0\fR or \f(CW7\fR)\-\-\-and don't do
14070 anything else.  This is the compiler version used in filesystem paths,
14071 specs, can be depending on how the compiler has been configured just
14072 a single number (major version), two numbers separated by dot (major and
14073 minor version) or three numbers separated by dots (major, minor and patchlevel
14074 version).
14075 .IP "\fB\-dumpfullversion\fR" 4
14076 .IX Item "-dumpfullversion"
14077 Print the full compiler version, always 3 numbers separated by dots,
14078 major, minor and patchlevel version.
14079 .IP "\fB\-dumpspecs\fR" 4
14080 .IX Item "-dumpspecs"
14081 Print the compiler's built-in specs\-\-\-and don't do anything else.  (This
14082 is used when \s-1GCC\s0 itself is being built.)
14083 .SS "Machine-Dependent Options"
14084 .IX Subsection "Machine-Dependent Options"
14085 Each target machine supported by \s-1GCC\s0 can have its own options\-\-\-for
14086 example, to allow you to compile for a particular processor variant or
14087 \&\s-1ABI,\s0 or to control optimizations specific to that machine.  By
14088 convention, the names of machine-specific options start with
14089 \&\fB\-m\fR.
14090 .PP
14091 Some configurations of the compiler also support additional target-specific
14092 options, usually for compatibility with other compilers on the same
14093 platform.
14094 .PP
14095 \fIAArch64 Options\fR
14096 .IX Subsection "AArch64 Options"
14097 .PP
14098 These options are defined for AArch64 implementations:
14099 .IP "\fB\-mabi=\fR\fIname\fR" 4
14100 .IX Item "-mabi=name"
14101 Generate code for the specified data model.  Permissible values
14102 are \fBilp32\fR for SysV-like data model where int, long int and pointers
14103 are 32 bits, and \fBlp64\fR for SysV-like data model where int is 32 bits,
14104 but long int and pointers are 64 bits.
14105 .Sp
14106 The default depends on the specific target configuration.  Note that
14107 the \s-1LP64\s0 and \s-1ILP32\s0 ABIs are not link-compatible; you must compile your
14108 entire program with the same \s-1ABI,\s0 and link with a compatible set of libraries.
14109 .IP "\fB\-mbig\-endian\fR" 4
14110 .IX Item "-mbig-endian"
14111 Generate big-endian code.  This is the default when \s-1GCC\s0 is configured for an
14112 \&\fBaarch64_be\-*\-*\fR target.
14113 .IP "\fB\-mgeneral\-regs\-only\fR" 4
14114 .IX Item "-mgeneral-regs-only"
14115 Generate code which uses only the general-purpose registers.  This will prevent
14116 the compiler from using floating-point and Advanced \s-1SIMD\s0 registers but will not
14117 impose any restrictions on the assembler.
14118 .IP "\fB\-mlittle\-endian\fR" 4
14119 .IX Item "-mlittle-endian"
14120 Generate little-endian code.  This is the default when \s-1GCC\s0 is configured for an
14121 \&\fBaarch64\-*\-*\fR but not an \fBaarch64_be\-*\-*\fR target.
14122 .IP "\fB\-mcmodel=tiny\fR" 4
14123 .IX Item "-mcmodel=tiny"
14124 Generate code for the tiny code model.  The program and its statically defined
14125 symbols must be within 1MB of each other.  Programs can be statically or
14126 dynamically linked.
14127 .IP "\fB\-mcmodel=small\fR" 4
14128 .IX Item "-mcmodel=small"
14129 Generate code for the small code model.  The program and its statically defined
14130 symbols must be within 4GB of each other.  Programs can be statically or
14131 dynamically linked.  This is the default code model.
14132 .IP "\fB\-mcmodel=large\fR" 4
14133 .IX Item "-mcmodel=large"
14134 Generate code for the large code model.  This makes no assumptions about
14135 addresses and sizes of sections.  Programs can be statically linked only.
14136 .IP "\fB\-mstrict\-align\fR" 4
14137 .IX Item "-mstrict-align"
14138 Avoid generating memory accesses that may not be aligned on a natural object
14139 boundary as described in the architecture specification.
14140 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
14141 .IX Item "-momit-leaf-frame-pointer"
14142 .PD 0
14143 .IP "\fB\-mno\-omit\-leaf\-frame\-pointer\fR" 4
14144 .IX Item "-mno-omit-leaf-frame-pointer"
14145 .PD
14146 Omit or keep the frame pointer in leaf functions.  The former behavior is the
14147 default.
14148 .IP "\fB\-mtls\-dialect=desc\fR" 4
14149 .IX Item "-mtls-dialect=desc"
14150 Use \s-1TLS\s0 descriptors as the thread-local storage mechanism for dynamic accesses
14151 of \s-1TLS\s0 variables.  This is the default.
14152 .IP "\fB\-mtls\-dialect=traditional\fR" 4
14153 .IX Item "-mtls-dialect=traditional"
14154 Use traditional \s-1TLS\s0 as the thread-local storage mechanism for dynamic accesses
14155 of \s-1TLS\s0 variables.
14156 .IP "\fB\-mtls\-size=\fR\fIsize\fR" 4
14157 .IX Item "-mtls-size=size"
14158 Specify bit size of immediate \s-1TLS\s0 offsets.  Valid values are 12, 24, 32, 48.
14159 This option requires binutils 2.26 or newer.
14160 .IP "\fB\-mfix\-cortex\-a53\-835769\fR" 4
14161 .IX Item "-mfix-cortex-a53-835769"
14162 .PD 0
14163 .IP "\fB\-mno\-fix\-cortex\-a53\-835769\fR" 4
14164 .IX Item "-mno-fix-cortex-a53-835769"
14165 .PD
14166 Enable or disable the workaround for the \s-1ARM\s0 Cortex\-A53 erratum number 835769.
14167 This involves inserting a \s-1NOP\s0 instruction between memory instructions and
14168 64\-bit integer multiply-accumulate instructions.
14169 .IP "\fB\-mfix\-cortex\-a53\-843419\fR" 4
14170 .IX Item "-mfix-cortex-a53-843419"
14171 .PD 0
14172 .IP "\fB\-mno\-fix\-cortex\-a53\-843419\fR" 4
14173 .IX Item "-mno-fix-cortex-a53-843419"
14174 .PD
14175 Enable or disable the workaround for the \s-1ARM\s0 Cortex\-A53 erratum number 843419.
14176 This erratum workaround is made at link time and this will only pass the
14177 corresponding flag to the linker.
14178 .IP "\fB\-mlow\-precision\-recip\-sqrt\fR" 4
14179 .IX Item "-mlow-precision-recip-sqrt"
14180 .PD 0
14181 .IP "\fB\-mno\-low\-precision\-recip\-sqrt\fR" 4
14182 .IX Item "-mno-low-precision-recip-sqrt"
14183 .PD
14184 Enable or disable the reciprocal square root approximation.
14185 This option only has an effect if \fB\-ffast\-math\fR or
14186 \&\fB\-funsafe\-math\-optimizations\fR is used as well.  Enabling this reduces
14187 precision of reciprocal square root results to about 16 bits for
14188 single precision and to 32 bits for double precision.
14189 .IP "\fB\-mlow\-precision\-sqrt\fR" 4
14190 .IX Item "-mlow-precision-sqrt"
14191 .PD 0
14192 .IP "\fB\-mno\-low\-precision\-sqrt\fR" 4
14193 .IX Item "-mno-low-precision-sqrt"
14194 .PD
14195 Enable or disable the square root approximation.
14196 This option only has an effect if \fB\-ffast\-math\fR or
14197 \&\fB\-funsafe\-math\-optimizations\fR is used as well.  Enabling this reduces
14198 precision of square root results to about 16 bits for
14199 single precision and to 32 bits for double precision.
14200 If enabled, it implies \fB\-mlow\-precision\-recip\-sqrt\fR.
14201 .IP "\fB\-mlow\-precision\-div\fR" 4
14202 .IX Item "-mlow-precision-div"
14203 .PD 0
14204 .IP "\fB\-mno\-low\-precision\-div\fR" 4
14205 .IX Item "-mno-low-precision-div"
14206 .PD
14207 Enable or disable the division approximation.
14208 This option only has an effect if \fB\-ffast\-math\fR or
14209 \&\fB\-funsafe\-math\-optimizations\fR is used as well.  Enabling this reduces
14210 precision of division results to about 16 bits for
14211 single precision and to 32 bits for double precision.
14212 .IP "\fB\-march=\fR\fIname\fR" 4
14213 .IX Item "-march=name"
14214 Specify the name of the target architecture and, optionally, one or
14215 more feature modifiers.  This option has the form
14216 \&\fB\-march=\fR\fIarch\fR{\fB+\fR[\fBno\fR]\fIfeature\fR}*.
14217 .Sp
14218 The permissible values for \fIarch\fR are \fBarmv8\-a\fR,
14219 \&\fBarmv8.1\-a\fR, \fBarmv8.2\-a\fR, \fBarmv8.3\-a\fR or \fBarmv8.4\-a\fR
14220 or \fInative\fR.
14221 .Sp
14222 The value \fBarmv8.4\-a\fR implies \fBarmv8.3\-a\fR and enables compiler
14223 support for the ARMv8.4\-A architecture extensions.
14224 .Sp
14225 The value \fBarmv8.3\-a\fR implies \fBarmv8.2\-a\fR and enables compiler
14226 support for the ARMv8.3\-A architecture extensions.
14227 .Sp
14228 The value \fBarmv8.2\-a\fR implies \fBarmv8.1\-a\fR and enables compiler
14229 support for the ARMv8.2\-A architecture extensions.
14230 .Sp
14231 The value \fBarmv8.1\-a\fR implies \fBarmv8\-a\fR and enables compiler
14232 support for the ARMv8.1\-A architecture extension.  In particular, it
14233 enables the \fB+crc\fR, \fB+lse\fR, and \fB+rdma\fR features.
14234 .Sp
14235 The value \fBnative\fR is available on native AArch64 GNU/Linux and
14236 causes the compiler to pick the architecture of the host system.  This
14237 option has no effect if the compiler is unable to recognize the
14238 architecture of the host system,
14239 .Sp
14240 The permissible values for \fIfeature\fR are listed in the sub-section
14241 on \fBaarch64\-feature\-modifiers,,\fR\fB\-march\fR \fBand\fR \fB\-mcpu\fR
14242 \&\fBFeature Modifiers\fR.  Where conflicting feature modifiers are
14243 specified, the right-most feature is used.
14244 .Sp
14245 \&\s-1GCC\s0 uses \fIname\fR to determine what kind of instructions it can emit
14246 when generating assembly code.  If \fB\-march\fR is specified
14247 without either of \fB\-mtune\fR or \fB\-mcpu\fR also being
14248 specified, the code is tuned to perform well across a range of target
14249 processors implementing the target architecture.
14250 .IP "\fB\-mtune=\fR\fIname\fR" 4
14251 .IX Item "-mtune=name"
14252 Specify the name of the target processor for which \s-1GCC\s0 should tune the
14253 performance of the code.  Permissible values for this option are:
14254 \&\fBgeneric\fR, \fBcortex\-a35\fR, \fBcortex\-a53\fR, \fBcortex\-a55\fR,
14255 \&\fBcortex\-a57\fR, \fBcortex\-a72\fR, \fBcortex\-a73\fR, \fBcortex\-a75\fR,
14256 \&\fBexynos\-m1\fR, \fBfalkor\fR, \fBqdf24xx\fR, \fBsaphira\fR,
14257 \&\fBxgene1\fR, \fBvulcan\fR, \fBthunderx\fR,
14258 \&\fBthunderxt88\fR, \fBthunderxt88p1\fR, \fBthunderxt81\fR,
14259 \&\fBthunderxt83\fR, \fBthunderx2t99\fR, \fBcortex\-a57.cortex\-a53\fR,
14260 \&\fBcortex\-a72.cortex\-a53\fR, \fBcortex\-a73.cortex\-a35\fR,
14261 \&\fBcortex\-a73.cortex\-a53\fR, \fBcortex\-a75.cortex\-a55\fR,
14262 \&\fBnative\fR.
14263 .Sp
14264 The values \fBcortex\-a57.cortex\-a53\fR, \fBcortex\-a72.cortex\-a53\fR,
14265 \&\fBcortex\-a73.cortex\-a35\fR, \fBcortex\-a73.cortex\-a53\fR,
14266 \&\fBcortex\-a75.cortex\-a55\fR specify that \s-1GCC\s0 should tune for a
14267 big.LITTLE system.
14268 .Sp
14269 Additionally on native AArch64 GNU/Linux systems the value
14270 \&\fBnative\fR tunes performance to the host system.  This option has no effect
14271 if the compiler is unable to recognize the processor of the host system.
14272 .Sp
14273 Where none of \fB\-mtune=\fR, \fB\-mcpu=\fR or \fB\-march=\fR
14274 are specified, the code is tuned to perform well across a range
14275 of target processors.
14276 .Sp
14277 This option cannot be suffixed by feature modifiers.
14278 .IP "\fB\-mcpu=\fR\fIname\fR" 4
14279 .IX Item "-mcpu=name"
14280 Specify the name of the target processor, optionally suffixed by one
14281 or more feature modifiers.  This option has the form
14282 \&\fB\-mcpu=\fR\fIcpu\fR{\fB+\fR[\fBno\fR]\fIfeature\fR}*, where
14283 the permissible values for \fIcpu\fR are the same as those available
14284 for \fB\-mtune\fR.  The permissible values for \fIfeature\fR are
14285 documented in the sub-section on
14286 \&\fBaarch64\-feature\-modifiers,,\fR\fB\-march\fR \fBand\fR \fB\-mcpu\fR
14287 \&\fBFeature Modifiers\fR.  Where conflicting feature modifiers are
14288 specified, the right-most feature is used.
14289 .Sp
14290 \&\s-1GCC\s0 uses \fIname\fR to determine what kind of instructions it can emit when
14291 generating assembly code (as if by \fB\-march\fR) and to determine
14292 the target processor for which to tune for performance (as if
14293 by \fB\-mtune\fR).  Where this option is used in conjunction
14294 with \fB\-march\fR or \fB\-mtune\fR, those options take precedence
14295 over the appropriate part of this option.
14296 .IP "\fB\-moverride=\fR\fIstring\fR" 4
14297 .IX Item "-moverride=string"
14298 Override tuning decisions made by the back-end in response to a
14299 \&\fB\-mtune=\fR switch.  The syntax, semantics, and accepted values
14300 for \fIstring\fR in this option are not guaranteed to be consistent
14301 across releases.
14302 .Sp
14303 This option is only intended to be useful when developing \s-1GCC.\s0
14304 .IP "\fB\-mverbose\-cost\-dump\fR" 4
14305 .IX Item "-mverbose-cost-dump"
14306 Enable verbose cost model dumping in the debug dump files.  This option is
14307 provided for use in debugging the compiler.
14308 .IP "\fB\-mpc\-relative\-literal\-loads\fR" 4
14309 .IX Item "-mpc-relative-literal-loads"
14310 .PD 0
14311 .IP "\fB\-mno\-pc\-relative\-literal\-loads\fR" 4
14312 .IX Item "-mno-pc-relative-literal-loads"
14313 .PD
14314 Enable or disable PC-relative literal loads.  With this option literal pools are
14315 accessed using a single instruction and emitted after each function.  This
14316 limits the maximum size of functions to 1MB.  This is enabled by default for
14317 \&\fB\-mcmodel=tiny\fR.
14318 .IP "\fB\-msign\-return\-address=\fR\fIscope\fR" 4
14319 .IX Item "-msign-return-address=scope"
14320 Select the function scope on which return address signing will be applied.
14321 Permissible values are \fBnone\fR, which disables return address signing,
14322 \&\fBnon-leaf\fR, which enables pointer signing for functions which are not leaf
14323 functions, and \fBall\fR, which enables pointer signing for all functions.  The
14324 default value is \fBnone\fR.
14325 .IP "\fB\-msve\-vector\-bits=\fR\fIbits\fR" 4
14326 .IX Item "-msve-vector-bits=bits"
14327 Specify the number of bits in an \s-1SVE\s0 vector register.  This option only has
14328 an effect when \s-1SVE\s0 is enabled.
14329 .Sp
14330 \&\s-1GCC\s0 supports two forms of \s-1SVE\s0 code generation: \*(L"vector-length
14331 agnostic\*(R" output that works with any size of vector register and
14332 \&\*(L"vector-length specific\*(R" output that allows \s-1GCC\s0 to make assumptions
14333 about the vector length when it is useful for optimization reasons.
14334 The possible values of \fBbits\fR are: \fBscalable\fR, \fB128\fR,
14335 \&\fB256\fR, \fB512\fR, \fB1024\fR and \fB2048\fR.
14336 Specifying \fBscalable\fR selects vector-length agnostic
14337 output.  At present \fB\-msve\-vector\-bits=128\fR also generates vector-length
14338 agnostic output.  All other values generate vector-length specific code.
14339 The behavior of these values may change in future releases and no value except
14340 \&\fBscalable\fR should be relied on for producing code that is portable across
14341 different hardware \s-1SVE\s0 vector lengths.
14342 .Sp
14343 The default is \fB\-msve\-vector\-bits=scalable\fR, which produces
14344 vector-length agnostic code.
14345 .PP
14346 \fB\-march\fR and \fB\-mcpu\fR Feature Modifiers
14347 .IX Subsection "-march and -mcpu Feature Modifiers"
14348 .PP
14349 Feature modifiers used with \fB\-march\fR and \fB\-mcpu\fR can be any of
14350 the following and their inverses \fBno\fR\fIfeature\fR:
14351 .IP "\fBcrc\fR" 4
14352 .IX Item "crc"
14353 Enable \s-1CRC\s0 extension.  This is on by default for
14354 \&\fB\-march=armv8.1\-a\fR.
14355 .IP "\fBcrypto\fR" 4
14356 .IX Item "crypto"
14357 Enable Crypto extension.  This also enables Advanced \s-1SIMD\s0 and floating-point
14358 instructions.
14359 .IP "\fBfp\fR" 4
14360 .IX Item "fp"
14361 Enable floating-point instructions.  This is on by default for all possible
14362 values for options \fB\-march\fR and \fB\-mcpu\fR.
14363 .IP "\fBsimd\fR" 4
14364 .IX Item "simd"
14365 Enable Advanced \s-1SIMD\s0 instructions.  This also enables floating-point
14366 instructions.  This is on by default for all possible values for options
14367 \&\fB\-march\fR and \fB\-mcpu\fR.
14368 .IP "\fBsve\fR" 4
14369 .IX Item "sve"
14370 Enable Scalable Vector Extension instructions.  This also enables Advanced
14371 \&\s-1SIMD\s0 and floating-point instructions.
14372 .IP "\fBlse\fR" 4
14373 .IX Item "lse"
14374 Enable Large System Extension instructions.  This is on by default for
14375 \&\fB\-march=armv8.1\-a\fR.
14376 .IP "\fBrdma\fR" 4
14377 .IX Item "rdma"
14378 Enable Round Double Multiply Accumulate instructions.  This is on by default
14379 for \fB\-march=armv8.1\-a\fR.
14380 .IP "\fBfp16\fR" 4
14381 .IX Item "fp16"
14382 Enable \s-1FP16\s0 extension.  This also enables floating-point instructions.
14383 .IP "\fBfp16fml\fR" 4
14384 .IX Item "fp16fml"
14385 Enable \s-1FP16\s0 fmla extension.  This also enables \s-1FP16\s0 extensions and
14386 floating-point instructions. This option is enabled by default for \fB\-march=armv8.4\-a\fR. Use of this option with architectures prior to Armv8.2\-A is not supported.
14387 .IP "\fBrcpc\fR" 4
14388 .IX Item "rcpc"
14389 Enable the RcPc extension.  This does not change code generation from \s-1GCC,\s0
14390 but is passed on to the assembler, enabling inline asm statements to use
14391 instructions from the RcPc extension.
14392 .IP "\fBdotprod\fR" 4
14393 .IX Item "dotprod"
14394 Enable the Dot Product extension.  This also enables Advanced \s-1SIMD\s0 instructions.
14395 .IP "\fBaes\fR" 4
14396 .IX Item "aes"
14397 Enable the Armv8\-a aes and pmull crypto extension.  This also enables Advanced
14398 \&\s-1SIMD\s0 instructions.
14399 .IP "\fBsha2\fR" 4
14400 .IX Item "sha2"
14401 Enable the Armv8\-a sha2 crypto extension.  This also enables Advanced \s-1SIMD\s0 instructions.
14402 .IP "\fBsha3\fR" 4
14403 .IX Item "sha3"
14404 Enable the sha512 and sha3 crypto extension.  This also enables Advanced \s-1SIMD\s0
14405 instructions. Use of this option with architectures prior to Armv8.2\-A is not supported.
14406 .IP "\fBsm4\fR" 4
14407 .IX Item "sm4"
14408 Enable the sm3 and sm4 crypto extension.  This also enables Advanced \s-1SIMD\s0 instructions.
14409 Use of this option with architectures prior to Armv8.2\-A is not supported.
14410 .PP
14411 Feature \fBcrypto\fR implies \fBaes\fR, \fBsha2\fR, and \fBsimd\fR,
14412 which implies \fBfp\fR.
14413 Conversely, \fBnofp\fR implies \fBnosimd\fR, which implies
14414 \&\fBnocrypto\fR, \fBnoaes\fR and \fBnosha2\fR.
14415 .PP
14416 \fIAdapteva Epiphany Options\fR
14417 .IX Subsection "Adapteva Epiphany Options"
14418 .PP
14419 These \fB\-m\fR options are defined for Adapteva Epiphany:
14420 .IP "\fB\-mhalf\-reg\-file\fR" 4
14421 .IX Item "-mhalf-reg-file"
14422 Don't allocate any register in the range \f(CW\*(C`r32\*(C'\fR...\f(CW\*(C`r63\*(C'\fR.
14423 That allows code to run on hardware variants that lack these registers.
14424 .IP "\fB\-mprefer\-short\-insn\-regs\fR" 4
14425 .IX Item "-mprefer-short-insn-regs"
14426 Preferentially allocate registers that allow short instruction generation.
14427 This can result in increased instruction count, so this may either reduce or
14428 increase overall code size.
14429 .IP "\fB\-mbranch\-cost=\fR\fInum\fR" 4
14430 .IX Item "-mbranch-cost=num"
14431 Set the cost of branches to roughly \fInum\fR \*(L"simple\*(R" instructions.
14432 This cost is only a heuristic and is not guaranteed to produce
14433 consistent results across releases.
14434 .IP "\fB\-mcmove\fR" 4
14435 .IX Item "-mcmove"
14436 Enable the generation of conditional moves.
14437 .IP "\fB\-mnops=\fR\fInum\fR" 4
14438 .IX Item "-mnops=num"
14439 Emit \fInum\fR NOPs before every other generated instruction.
14440 .IP "\fB\-mno\-soft\-cmpsf\fR" 4
14441 .IX Item "-mno-soft-cmpsf"
14442 For single-precision floating-point comparisons, emit an \f(CW\*(C`fsub\*(C'\fR instruction
14443 and test the flags.  This is faster than a software comparison, but can
14444 get incorrect results in the presence of NaNs, or when two different small
14445 numbers are compared such that their difference is calculated as zero.
14446 The default is \fB\-msoft\-cmpsf\fR, which uses slower, but IEEE-compliant,
14447 software comparisons.
14448 .IP "\fB\-mstack\-offset=\fR\fInum\fR" 4
14449 .IX Item "-mstack-offset=num"
14450 Set the offset between the top of the stack and the stack pointer.
14451 E.g., a value of 8 means that the eight bytes in the range \f(CW\*(C`sp+0...sp+7\*(C'\fR
14452 can be used by leaf functions without stack allocation.
14453 Values other than \fB8\fR or \fB16\fR are untested and unlikely to work.
14454 Note also that this option changes the \s-1ABI\s0; compiling a program with a
14455 different stack offset than the libraries have been compiled with
14456 generally does not work.
14457 This option can be useful if you want to evaluate if a different stack
14458 offset would give you better code, but to actually use a different stack
14459 offset to build working programs, it is recommended to configure the
14460 toolchain with the appropriate \fB\-\-with\-stack\-offset=\fR\fInum\fR option.
14461 .IP "\fB\-mno\-round\-nearest\fR" 4
14462 .IX Item "-mno-round-nearest"
14463 Make the scheduler assume that the rounding mode has been set to
14464 truncating.  The default is \fB\-mround\-nearest\fR.
14465 .IP "\fB\-mlong\-calls\fR" 4
14466 .IX Item "-mlong-calls"
14467 If not otherwise specified by an attribute, assume all calls might be beyond
14468 the offset range of the \f(CW\*(C`b\*(C'\fR / \f(CW\*(C`bl\*(C'\fR instructions, and therefore load the
14469 function address into a register before performing a (otherwise direct) call.
14470 This is the default.
14471 .IP "\fB\-mshort\-calls\fR" 4
14472 .IX Item "-mshort-calls"
14473 If not otherwise specified by an attribute, assume all direct calls are
14474 in the range of the \f(CW\*(C`b\*(C'\fR / \f(CW\*(C`bl\*(C'\fR instructions, so use these instructions
14475 for direct calls.  The default is \fB\-mlong\-calls\fR.
14476 .IP "\fB\-msmall16\fR" 4
14477 .IX Item "-msmall16"
14478 Assume addresses can be loaded as 16\-bit unsigned values.  This does not
14479 apply to function addresses for which \fB\-mlong\-calls\fR semantics
14480 are in effect.
14481 .IP "\fB\-mfp\-mode=\fR\fImode\fR" 4
14482 .IX Item "-mfp-mode=mode"
14483 Set the prevailing mode of the floating-point unit.
14484 This determines the floating-point mode that is provided and expected
14485 at function call and return time.  Making this mode match the mode you
14486 predominantly need at function start can make your programs smaller and
14487 faster by avoiding unnecessary mode switches.
14488 .Sp
14489 \&\fImode\fR can be set to one the following values:
14490 .RS 4
14491 .IP "\fBcaller\fR" 4
14492 .IX Item "caller"
14493 Any mode at function entry is valid, and retained or restored when
14494 the function returns, and when it calls other functions.
14495 This mode is useful for compiling libraries or other compilation units
14496 you might want to incorporate into different programs with different
14497 prevailing \s-1FPU\s0 modes, and the convenience of being able to use a single
14498 object file outweighs the size and speed overhead for any extra
14499 mode switching that might be needed, compared with what would be needed
14500 with a more specific choice of prevailing \s-1FPU\s0 mode.
14501 .IP "\fBtruncate\fR" 4
14502 .IX Item "truncate"
14503 This is the mode used for floating-point calculations with
14504 truncating (i.e. round towards zero) rounding mode.  That includes
14505 conversion from floating point to integer.
14506 .IP "\fBround-nearest\fR" 4
14507 .IX Item "round-nearest"
14508 This is the mode used for floating-point calculations with
14509 round-to-nearest-or-even rounding mode.
14510 .IP "\fBint\fR" 4
14511 .IX Item "int"
14512 This is the mode used to perform integer calculations in the \s-1FPU,\s0 e.g.
14513 integer multiply, or integer multiply-and-accumulate.
14514 .RE
14515 .RS 4
14516 .Sp
14517 The default is \fB\-mfp\-mode=caller\fR
14518 .RE
14519 .IP "\fB\-mnosplit\-lohi\fR" 4
14520 .IX Item "-mnosplit-lohi"
14521 .PD 0
14522 .IP "\fB\-mno\-postinc\fR" 4
14523 .IX Item "-mno-postinc"
14524 .IP "\fB\-mno\-postmodify\fR" 4
14525 .IX Item "-mno-postmodify"
14526 .PD
14527 Code generation tweaks that disable, respectively, splitting of 32\-bit
14528 loads, generation of post-increment addresses, and generation of
14529 post-modify addresses.  The defaults are \fBmsplit-lohi\fR,
14530 \&\fB\-mpost\-inc\fR, and \fB\-mpost\-modify\fR.
14531 .IP "\fB\-mnovect\-double\fR" 4
14532 .IX Item "-mnovect-double"
14533 Change the preferred \s-1SIMD\s0 mode to SImode.  The default is
14534 \&\fB\-mvect\-double\fR, which uses DImode as preferred \s-1SIMD\s0 mode.
14535 .IP "\fB\-max\-vect\-align=\fR\fInum\fR" 4
14536 .IX Item "-max-vect-align=num"
14537 The maximum alignment for \s-1SIMD\s0 vector mode types.
14538 \&\fInum\fR may be 4 or 8.  The default is 8.
14539 Note that this is an \s-1ABI\s0 change, even though many library function
14540 interfaces are unaffected if they don't use \s-1SIMD\s0 vector modes
14541 in places that affect size and/or alignment of relevant types.
14542 .IP "\fB\-msplit\-vecmove\-early\fR" 4
14543 .IX Item "-msplit-vecmove-early"
14544 Split vector moves into single word moves before reload.  In theory this
14545 can give better register allocation, but so far the reverse seems to be
14546 generally the case.
14547 .IP "\fB\-m1reg\-\fR\fIreg\fR" 4
14548 .IX Item "-m1reg-reg"
14549 Specify a register to hold the constant \-1, which makes loading small negative
14550 constants and certain bitmasks faster.
14551 Allowable values for \fIreg\fR are \fBr43\fR and \fBr63\fR,
14552 which specify use of that register as a fixed register,
14553 and \fBnone\fR, which means that no register is used for this
14554 purpose.  The default is \fB\-m1reg\-none\fR.
14555 .PP
14556 \fI\s-1ARC\s0 Options\fR
14557 .IX Subsection "ARC Options"
14558 .PP
14559 The following options control the architecture variant for which code
14560 is being compiled:
14561 .IP "\fB\-mbarrel\-shifter\fR" 4
14562 .IX Item "-mbarrel-shifter"
14563 Generate instructions supported by barrel shifter.  This is the default
14564 unless \fB\-mcpu=ARC601\fR or \fB\-mcpu=ARCEM\fR is in effect.
14565 .IP "\fB\-mjli\-always\fR" 4
14566 .IX Item "-mjli-always"
14567 Force to call a function using jli_s instruction.  This option is
14568 valid only for ARCv2 architecture.
14569 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
14570 .IX Item "-mcpu=cpu"
14571 Set architecture type, register usage, and instruction scheduling
14572 parameters for \fIcpu\fR.  There are also shortcut alias options
14573 available for backward compatibility and convenience.  Supported
14574 values for \fIcpu\fR are
14575 .RS 4
14576 .IP "\fBarc600\fR" 4
14577 .IX Item "arc600"
14578 Compile for \s-1ARC600.\s0  Aliases: \fB\-mA6\fR, \fB\-mARC600\fR.
14579 .IP "\fBarc601\fR" 4
14580 .IX Item "arc601"
14581 Compile for \s-1ARC601.\s0  Alias: \fB\-mARC601\fR.
14582 .IP "\fBarc700\fR" 4
14583 .IX Item "arc700"
14584 Compile for \s-1ARC700.\s0  Aliases: \fB\-mA7\fR, \fB\-mARC700\fR.
14585 This is the default when configured with \fB\-\-with\-cpu=arc700\fR.
14586 .IP "\fBarcem\fR" 4
14587 .IX Item "arcem"
14588 Compile for \s-1ARC EM.\s0
14589 .IP "\fBarchs\fR" 4
14590 .IX Item "archs"
14591 Compile for \s-1ARC HS.\s0
14592 .IP "\fBem\fR" 4
14593 .IX Item "em"
14594 Compile for \s-1ARC EM CPU\s0 with no hardware extensions.
14595 .IP "\fBem4\fR" 4
14596 .IX Item "em4"
14597 Compile for \s-1ARC EM4 CPU.\s0
14598 .IP "\fBem4_dmips\fR" 4
14599 .IX Item "em4_dmips"
14600 Compile for \s-1ARC EM4 DMIPS CPU.\s0
14601 .IP "\fBem4_fpus\fR" 4
14602 .IX Item "em4_fpus"
14603 Compile for \s-1ARC EM4 DMIPS CPU\s0 with the single-precision floating-point
14604 extension.
14605 .IP "\fBem4_fpuda\fR" 4
14606 .IX Item "em4_fpuda"
14607 Compile for \s-1ARC EM4 DMIPS CPU\s0 with single-precision floating-point and
14608 double assist instructions.
14609 .IP "\fBhs\fR" 4
14610 .IX Item "hs"
14611 Compile for \s-1ARC HS CPU\s0 with no hardware extensions except the atomic
14612 instructions.
14613 .IP "\fBhs34\fR" 4
14614 .IX Item "hs34"
14615 Compile for \s-1ARC HS34 CPU.\s0
14616 .IP "\fBhs38\fR" 4
14617 .IX Item "hs38"
14618 Compile for \s-1ARC HS38 CPU.\s0
14619 .IP "\fBhs38_linux\fR" 4
14620 .IX Item "hs38_linux"
14621 Compile for \s-1ARC HS38 CPU\s0 with all hardware extensions on.
14622 .IP "\fBarc600_norm\fR" 4
14623 .IX Item "arc600_norm"
14624 Compile for \s-1ARC 600 CPU\s0 with \f(CW\*(C`norm\*(C'\fR instructions enabled.
14625 .IP "\fBarc600_mul32x16\fR" 4
14626 .IX Item "arc600_mul32x16"
14627 Compile for \s-1ARC 600 CPU\s0 with \f(CW\*(C`norm\*(C'\fR and 32x16\-bit multiply 
14628 instructions enabled.
14629 .IP "\fBarc600_mul64\fR" 4
14630 .IX Item "arc600_mul64"
14631 Compile for \s-1ARC 600 CPU\s0 with \f(CW\*(C`norm\*(C'\fR and \f(CW\*(C`mul64\*(C'\fR\-family 
14632 instructions enabled.
14633 .IP "\fBarc601_norm\fR" 4
14634 .IX Item "arc601_norm"
14635 Compile for \s-1ARC 601 CPU\s0 with \f(CW\*(C`norm\*(C'\fR instructions enabled.
14636 .IP "\fBarc601_mul32x16\fR" 4
14637 .IX Item "arc601_mul32x16"
14638 Compile for \s-1ARC 601 CPU\s0 with \f(CW\*(C`norm\*(C'\fR and 32x16\-bit multiply
14639 instructions enabled.
14640 .IP "\fBarc601_mul64\fR" 4
14641 .IX Item "arc601_mul64"
14642 Compile for \s-1ARC 601 CPU\s0 with \f(CW\*(C`norm\*(C'\fR and \f(CW\*(C`mul64\*(C'\fR\-family
14643 instructions enabled.
14644 .IP "\fBnps400\fR" 4
14645 .IX Item "nps400"
14646 Compile for \s-1ARC 700\s0 on \s-1NPS400\s0 chip.
14647 .IP "\fBem_mini\fR" 4
14648 .IX Item "em_mini"
14649 Compile for \s-1ARC EM\s0 minimalist configuration featuring reduced register
14650 set.
14651 .RE
14652 .RS 4
14653 .RE
14654 .IP "\fB\-mdpfp\fR" 4
14655 .IX Item "-mdpfp"
14656 .PD 0
14657 .IP "\fB\-mdpfp\-compact\fR" 4
14658 .IX Item "-mdpfp-compact"
14659 .PD
14660 Generate double-precision \s-1FPX\s0 instructions, tuned for the compact
14661 implementation.
14662 .IP "\fB\-mdpfp\-fast\fR" 4
14663 .IX Item "-mdpfp-fast"
14664 Generate double-precision \s-1FPX\s0 instructions, tuned for the fast
14665 implementation.
14666 .IP "\fB\-mno\-dpfp\-lrsr\fR" 4
14667 .IX Item "-mno-dpfp-lrsr"
14668 Disable \f(CW\*(C`lr\*(C'\fR and \f(CW\*(C`sr\*(C'\fR instructions from using \s-1FPX\s0 extension
14669 aux registers.
14670 .IP "\fB\-mea\fR" 4
14671 .IX Item "-mea"
14672 Generate extended arithmetic instructions.  Currently only
14673 \&\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
14674 supported.  This is always enabled for \fB\-mcpu=ARC700\fR.
14675 .IP "\fB\-mno\-mpy\fR" 4
14676 .IX Item "-mno-mpy"
14677 Do not generate \f(CW\*(C`mpy\*(C'\fR\-family instructions for \s-1ARC700.\s0  This option is
14678 deprecated.
14679 .IP "\fB\-mmul32x16\fR" 4
14680 .IX Item "-mmul32x16"
14681 Generate 32x16\-bit multiply and multiply-accumulate instructions.
14682 .IP "\fB\-mmul64\fR" 4
14683 .IX Item "-mmul64"
14684 Generate \f(CW\*(C`mul64\*(C'\fR and \f(CW\*(C`mulu64\*(C'\fR instructions.  
14685 Only valid for \fB\-mcpu=ARC600\fR.
14686 .IP "\fB\-mnorm\fR" 4
14687 .IX Item "-mnorm"
14688 Generate \f(CW\*(C`norm\*(C'\fR instructions.  This is the default if \fB\-mcpu=ARC700\fR
14689 is in effect.
14690 .IP "\fB\-mspfp\fR" 4
14691 .IX Item "-mspfp"
14692 .PD 0
14693 .IP "\fB\-mspfp\-compact\fR" 4
14694 .IX Item "-mspfp-compact"
14695 .PD
14696 Generate single-precision \s-1FPX\s0 instructions, tuned for the compact
14697 implementation.
14698 .IP "\fB\-mspfp\-fast\fR" 4
14699 .IX Item "-mspfp-fast"
14700 Generate single-precision \s-1FPX\s0 instructions, tuned for the fast
14701 implementation.
14702 .IP "\fB\-msimd\fR" 4
14703 .IX Item "-msimd"
14704 Enable generation of \s-1ARC SIMD\s0 instructions via target-specific
14705 builtins.  Only valid for \fB\-mcpu=ARC700\fR.
14706 .IP "\fB\-msoft\-float\fR" 4
14707 .IX Item "-msoft-float"
14708 This option ignored; it is provided for compatibility purposes only.
14709 Software floating-point code is emitted by default, and this default
14710 can overridden by \s-1FPX\s0 options; \fB\-mspfp\fR, \fB\-mspfp\-compact\fR, or
14711 \&\fB\-mspfp\-fast\fR for single precision, and \fB\-mdpfp\fR,
14712 \&\fB\-mdpfp\-compact\fR, or \fB\-mdpfp\-fast\fR for double precision.
14713 .IP "\fB\-mswap\fR" 4
14714 .IX Item "-mswap"
14715 Generate \f(CW\*(C`swap\*(C'\fR instructions.
14716 .IP "\fB\-matomic\fR" 4
14717 .IX Item "-matomic"
14718 This enables use of the locked load/store conditional extension to implement
14719 atomic memory built-in functions.  Not available for \s-1ARC\s0 6xx or \s-1ARC
14720 EM\s0 cores.
14721 .IP "\fB\-mdiv\-rem\fR" 4
14722 .IX Item "-mdiv-rem"
14723 Enable \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`rem\*(C'\fR instructions for ARCv2 cores.
14724 .IP "\fB\-mcode\-density\fR" 4
14725 .IX Item "-mcode-density"
14726 Enable code density instructions for \s-1ARC EM.\s0  
14727 This option is on by default for \s-1ARC HS.\s0
14728 .IP "\fB\-mll64\fR" 4
14729 .IX Item "-mll64"
14730 Enable double load/store operations for \s-1ARC HS\s0 cores.
14731 .IP "\fB\-mtp\-regno=\fR\fIregno\fR" 4
14732 .IX Item "-mtp-regno=regno"
14733 Specify thread pointer register number.
14734 .IP "\fB\-mmpy\-option=\fR\fImulto\fR" 4
14735 .IX Item "-mmpy-option=multo"
14736 Compile ARCv2 code with a multiplier design option.  You can specify 
14737 the option using either a string or numeric value for \fImulto\fR.  
14738 \&\fBwlh1\fR is the default value.  The recognized values are:
14739 .RS 4
14740 .IP "\fB0\fR" 4
14741 .IX Item "0"
14742 .PD 0
14743 .IP "\fBnone\fR" 4
14744 .IX Item "none"
14745 .PD
14746 No multiplier available.
14747 .IP "\fB1\fR" 4
14748 .IX Item "1"
14749 .PD 0
14750 .IP "\fBw\fR" 4
14751 .IX Item "w"
14752 .PD
14753 16x16 multiplier, fully pipelined.
14754 The following instructions are enabled: \f(CW\*(C`mpyw\*(C'\fR and \f(CW\*(C`mpyuw\*(C'\fR.
14755 .IP "\fB2\fR" 4
14756 .IX Item "2"
14757 .PD 0
14758 .IP "\fBwlh1\fR" 4
14759 .IX Item "wlh1"
14760 .PD
14761 32x32 multiplier, fully
14762 pipelined (1 stage).  The following instructions are additionally
14763 enabled: \f(CW\*(C`mpy\*(C'\fR, \f(CW\*(C`mpyu\*(C'\fR, \f(CW\*(C`mpym\*(C'\fR, \f(CW\*(C`mpymu\*(C'\fR, and \f(CW\*(C`mpy_s\*(C'\fR.
14764 .IP "\fB3\fR" 4
14765 .IX Item "3"
14766 .PD 0
14767 .IP "\fBwlh2\fR" 4
14768 .IX Item "wlh2"
14769 .PD
14770 32x32 multiplier, fully pipelined
14771 (2 stages).  The following instructions are additionally enabled: \f(CW\*(C`mpy\*(C'\fR,
14772 \&\f(CW\*(C`mpyu\*(C'\fR, \f(CW\*(C`mpym\*(C'\fR, \f(CW\*(C`mpymu\*(C'\fR, and \f(CW\*(C`mpy_s\*(C'\fR.
14773 .IP "\fB4\fR" 4
14774 .IX Item "4"
14775 .PD 0
14776 .IP "\fBwlh3\fR" 4
14777 .IX Item "wlh3"
14778 .PD
14779 Two 16x16 multipliers, blocking,
14780 sequential.  The following instructions are additionally enabled: \f(CW\*(C`mpy\*(C'\fR,
14781 \&\f(CW\*(C`mpyu\*(C'\fR, \f(CW\*(C`mpym\*(C'\fR, \f(CW\*(C`mpymu\*(C'\fR, and \f(CW\*(C`mpy_s\*(C'\fR.
14782 .IP "\fB5\fR" 4
14783 .IX Item "5"
14784 .PD 0
14785 .IP "\fBwlh4\fR" 4
14786 .IX Item "wlh4"
14787 .PD
14788 One 16x16 multiplier, blocking,
14789 sequential.  The following instructions are additionally enabled: \f(CW\*(C`mpy\*(C'\fR,
14790 \&\f(CW\*(C`mpyu\*(C'\fR, \f(CW\*(C`mpym\*(C'\fR, \f(CW\*(C`mpymu\*(C'\fR, and \f(CW\*(C`mpy_s\*(C'\fR.
14791 .IP "\fB6\fR" 4
14792 .IX Item "6"
14793 .PD 0
14794 .IP "\fBwlh5\fR" 4
14795 .IX Item "wlh5"
14796 .PD
14797 One 32x4 multiplier, blocking,
14798 sequential.  The following instructions are additionally enabled: \f(CW\*(C`mpy\*(C'\fR,
14799 \&\f(CW\*(C`mpyu\*(C'\fR, \f(CW\*(C`mpym\*(C'\fR, \f(CW\*(C`mpymu\*(C'\fR, and \f(CW\*(C`mpy_s\*(C'\fR.
14800 .IP "\fB7\fR" 4
14801 .IX Item "7"
14802 .PD 0
14803 .IP "\fBplus_dmpy\fR" 4
14804 .IX Item "plus_dmpy"
14805 .PD
14806 \&\s-1ARC HS SIMD\s0 support.
14807 .IP "\fB8\fR" 4
14808 .IX Item "8"
14809 .PD 0
14810 .IP "\fBplus_macd\fR" 4
14811 .IX Item "plus_macd"
14812 .PD
14813 \&\s-1ARC HS SIMD\s0 support.
14814 .IP "\fB9\fR" 4
14815 .IX Item "9"
14816 .PD 0
14817 .IP "\fBplus_qmacw\fR" 4
14818 .IX Item "plus_qmacw"
14819 .PD
14820 \&\s-1ARC HS SIMD\s0 support.
14821 .RE
14822 .RS 4
14823 .Sp
14824 This option is only available for ARCv2 cores.
14825 .RE
14826 .IP "\fB\-mfpu=\fR\fIfpu\fR" 4
14827 .IX Item "-mfpu=fpu"
14828 Enables support for specific floating-point hardware extensions for ARCv2
14829 cores.  Supported values for \fIfpu\fR are:
14830 .RS 4
14831 .IP "\fBfpus\fR" 4
14832 .IX Item "fpus"
14833 Enables support for single-precision floating-point hardware
14834 extensions.
14835 .IP "\fBfpud\fR" 4
14836 .IX Item "fpud"
14837 Enables support for double-precision floating-point hardware
14838 extensions.  The single-precision floating-point extension is also
14839 enabled.  Not available for \s-1ARC EM.\s0
14840 .IP "\fBfpuda\fR" 4
14841 .IX Item "fpuda"
14842 Enables support for double-precision floating-point hardware
14843 extensions using double-precision assist instructions.  The single-precision
14844 floating-point extension is also enabled.  This option is
14845 only available for \s-1ARC EM.\s0
14846 .IP "\fBfpuda_div\fR" 4
14847 .IX Item "fpuda_div"
14848 Enables support for double-precision floating-point hardware
14849 extensions using double-precision assist instructions.
14850 The single-precision floating-point, square-root, and divide 
14851 extensions are also enabled.  This option is
14852 only available for \s-1ARC EM.\s0
14853 .IP "\fBfpuda_fma\fR" 4
14854 .IX Item "fpuda_fma"
14855 Enables support for double-precision floating-point hardware
14856 extensions using double-precision assist instructions.
14857 The single-precision floating-point and fused multiply and add 
14858 hardware extensions are also enabled.  This option is
14859 only available for \s-1ARC EM.\s0
14860 .IP "\fBfpuda_all\fR" 4
14861 .IX Item "fpuda_all"
14862 Enables support for double-precision floating-point hardware
14863 extensions using double-precision assist instructions.
14864 All single-precision floating-point hardware extensions are also
14865 enabled.  This option is only available for \s-1ARC EM.\s0
14866 .IP "\fBfpus_div\fR" 4
14867 .IX Item "fpus_div"
14868 Enables support for single-precision floating-point, square-root and divide 
14869 hardware extensions.
14870 .IP "\fBfpud_div\fR" 4
14871 .IX Item "fpud_div"
14872 Enables support for double-precision floating-point, square-root and divide 
14873 hardware extensions.  This option
14874 includes option \fBfpus_div\fR. Not available for \s-1ARC EM.\s0
14875 .IP "\fBfpus_fma\fR" 4
14876 .IX Item "fpus_fma"
14877 Enables support for single-precision floating-point and 
14878 fused multiply and add hardware extensions.
14879 .IP "\fBfpud_fma\fR" 4
14880 .IX Item "fpud_fma"
14881 Enables support for double-precision floating-point and 
14882 fused multiply and add hardware extensions.  This option
14883 includes option \fBfpus_fma\fR.  Not available for \s-1ARC EM.\s0
14884 .IP "\fBfpus_all\fR" 4
14885 .IX Item "fpus_all"
14886 Enables support for all single-precision floating-point hardware
14887 extensions.
14888 .IP "\fBfpud_all\fR" 4
14889 .IX Item "fpud_all"
14890 Enables support for all single\- and double-precision floating-point
14891 hardware extensions.  Not available for \s-1ARC EM.\s0
14892 .RE
14893 .RS 4
14894 .RE
14895 .IP "\fB\-mirq\-ctrl\-saved=\fR\fIregister-range\fR\fB,\fR \fIblink\fR\fB,\fR \fIlp_count\fR" 4
14896 .IX Item "-mirq-ctrl-saved=register-range, blink, lp_count"
14897 Specifies general-purposes registers that the processor automatically
14898 saves/restores on interrupt entry and exit.  \fIregister-range\fR is
14899 specified as two registers separated by a dash.  The register range
14900 always starts with \f(CW\*(C`r0\*(C'\fR, the upper limit is \f(CW\*(C`fp\*(C'\fR register.
14901 \&\fIblink\fR and \fIlp_count\fR are optional.  This option is only
14902 valid for \s-1ARC EM\s0 and \s-1ARC HS\s0 cores.
14903 .IP "\fB\-mrgf\-banked\-regs=\fR\fInumber\fR" 4
14904 .IX Item "-mrgf-banked-regs=number"
14905 Specifies the number of registers replicated in second register bank
14906 on entry to fast interrupt.  Fast interrupts are interrupts with the
14907 highest priority level P0.  These interrupts save only \s-1PC\s0 and \s-1STATUS32\s0
14908 registers to avoid memory transactions during interrupt entry and exit
14909 sequences.  Use this option when you are using fast interrupts in an
14910 \&\s-1ARC V2\s0 family processor.  Permitted values are 4, 8, 16, and 32.
14911 .IP "\fB\-mlpc\-width=\fR\fIwidth\fR" 4
14912 .IX Item "-mlpc-width=width"
14913 Specify the width of the \f(CW\*(C`lp_count\*(C'\fR register.  Valid values for
14914 \&\fIwidth\fR are 8, 16, 20, 24, 28 and 32 bits.  The default width is
14915 fixed to 32 bits.  If the width is less than 32, the compiler does not
14916 attempt to transform loops in your program to use the zero-delay loop
14917 mechanism unless it is known that the \f(CW\*(C`lp_count\*(C'\fR register can
14918 hold the required loop-counter value.  Depending on the width
14919 specified, the compiler and run-time library might continue to use the
14920 loop mechanism for various needs.  This option defines macro
14921 \&\f(CW\*(C`_\|_ARC_LPC_WIDTH_\|_\*(C'\fR with the value of \fIwidth\fR.
14922 .IP "\fB\-mrf16\fR" 4
14923 .IX Item "-mrf16"
14924 This option instructs the compiler to generate code for a 16\-entry
14925 register file.  This option defines the \f(CW\*(C`_\|_ARC_RF16_\|_\*(C'\fR
14926 preprocessor macro.
14927 .PP
14928 The following options are passed through to the assembler, and also
14929 define preprocessor macro symbols.
14930 .IP "\fB\-mdsp\-packa\fR" 4
14931 .IX Item "-mdsp-packa"
14932 Passed down to the assembler to enable the \s-1DSP\s0 Pack A extensions.
14933 Also sets the preprocessor symbol \f(CW\*(C`_\|_Xdsp_packa\*(C'\fR.  This option is
14934 deprecated.
14935 .IP "\fB\-mdvbf\fR" 4
14936 .IX Item "-mdvbf"
14937 Passed down to the assembler to enable the dual Viterbi butterfly
14938 extension.  Also sets the preprocessor symbol \f(CW\*(C`_\|_Xdvbf\*(C'\fR.  This
14939 option is deprecated.
14940 .IP "\fB\-mlock\fR" 4
14941 .IX Item "-mlock"
14942 Passed down to the assembler to enable the locked load/store
14943 conditional extension.  Also sets the preprocessor symbol
14944 \&\f(CW\*(C`_\|_Xlock\*(C'\fR.
14945 .IP "\fB\-mmac\-d16\fR" 4
14946 .IX Item "-mmac-d16"
14947 Passed down to the assembler.  Also sets the preprocessor symbol
14948 \&\f(CW\*(C`_\|_Xxmac_d16\*(C'\fR.  This option is deprecated.
14949 .IP "\fB\-mmac\-24\fR" 4
14950 .IX Item "-mmac-24"
14951 Passed down to the assembler.  Also sets the preprocessor symbol
14952 \&\f(CW\*(C`_\|_Xxmac_24\*(C'\fR.  This option is deprecated.
14953 .IP "\fB\-mrtsc\fR" 4
14954 .IX Item "-mrtsc"
14955 Passed down to the assembler to enable the 64\-bit time-stamp counter
14956 extension instruction.  Also sets the preprocessor symbol
14957 \&\f(CW\*(C`_\|_Xrtsc\*(C'\fR.  This option is deprecated.
14958 .IP "\fB\-mswape\fR" 4
14959 .IX Item "-mswape"
14960 Passed down to the assembler to enable the swap byte ordering
14961 extension instruction.  Also sets the preprocessor symbol
14962 \&\f(CW\*(C`_\|_Xswape\*(C'\fR.
14963 .IP "\fB\-mtelephony\fR" 4
14964 .IX Item "-mtelephony"
14965 Passed down to the assembler to enable dual\- and single-operand
14966 instructions for telephony.  Also sets the preprocessor symbol
14967 \&\f(CW\*(C`_\|_Xtelephony\*(C'\fR.  This option is deprecated.
14968 .IP "\fB\-mxy\fR" 4
14969 .IX Item "-mxy"
14970 Passed down to the assembler to enable the \s-1XY\s0 memory extension.  Also
14971 sets the preprocessor symbol \f(CW\*(C`_\|_Xxy\*(C'\fR.
14972 .PP
14973 The following options control how the assembly code is annotated:
14974 .IP "\fB\-misize\fR" 4
14975 .IX Item "-misize"
14976 Annotate assembler instructions with estimated addresses.
14977 .IP "\fB\-mannotate\-align\fR" 4
14978 .IX Item "-mannotate-align"
14979 Explain what alignment considerations lead to the decision to make an
14980 instruction short or long.
14981 .PP
14982 The following options are passed through to the linker:
14983 .IP "\fB\-marclinux\fR" 4
14984 .IX Item "-marclinux"
14985 Passed through to the linker, to specify use of the \f(CW\*(C`arclinux\*(C'\fR emulation.
14986 This option is enabled by default in tool chains built for
14987 \&\f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets
14988 when profiling is not requested.
14989 .IP "\fB\-marclinux_prof\fR" 4
14990 .IX Item "-marclinux_prof"
14991 Passed through to the linker, to specify use of the
14992 \&\f(CW\*(C`arclinux_prof\*(C'\fR emulation.  This option is enabled by default in
14993 tool chains built for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and
14994 \&\f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets when profiling is requested.
14995 .PP
14996 The following options control the semantics of generated code:
14997 .IP "\fB\-mlong\-calls\fR" 4
14998 .IX Item "-mlong-calls"
14999 Generate calls as register indirect calls, thus providing access
15000 to the full 32\-bit address range.
15001 .IP "\fB\-mmedium\-calls\fR" 4
15002 .IX Item "-mmedium-calls"
15003 Don't use less than 25\-bit addressing range for calls, which is the
15004 offset available for an unconditional branch-and-link
15005 instruction.  Conditional execution of function calls is suppressed, to
15006 allow use of the 25\-bit range, rather than the 21\-bit range with
15007 conditional branch-and-link.  This is the default for tool chains built
15008 for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets.
15009 .IP "\fB\-G\fR \fInum\fR" 4
15010 .IX Item "-G num"
15011 Put definitions of externally-visible data in a small data section if
15012 that data is no bigger than \fInum\fR bytes.  The default value of
15013 \&\fInum\fR is 4 for any \s-1ARC\s0 configuration, or 8 when we have double
15014 load/store operations.
15015 .IP "\fB\-mno\-sdata\fR" 4
15016 .IX Item "-mno-sdata"
15017 Do not generate sdata references.  This is the default for tool chains
15018 built for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR
15019 targets.
15020 .IP "\fB\-mvolatile\-cache\fR" 4
15021 .IX Item "-mvolatile-cache"
15022 Use ordinarily cached memory accesses for volatile references.  This is the
15023 default.
15024 .IP "\fB\-mno\-volatile\-cache\fR" 4
15025 .IX Item "-mno-volatile-cache"
15026 Enable cache bypass for volatile references.
15027 .PP
15028 The following options fine tune code generation:
15029 .IP "\fB\-malign\-call\fR" 4
15030 .IX Item "-malign-call"
15031 Do alignment optimizations for call instructions.
15032 .IP "\fB\-mauto\-modify\-reg\fR" 4
15033 .IX Item "-mauto-modify-reg"
15034 Enable the use of pre/post modify with register displacement.
15035 .IP "\fB\-mbbit\-peephole\fR" 4
15036 .IX Item "-mbbit-peephole"
15037 Enable bbit peephole2.
15038 .IP "\fB\-mno\-brcc\fR" 4
15039 .IX Item "-mno-brcc"
15040 This option disables a target-specific pass in \fIarc_reorg\fR to
15041 generate compare-and-branch (\f(CW\*(C`br\f(CIcc\f(CW\*(C'\fR) instructions.  
15042 It has no effect on
15043 generation of these instructions driven by the combiner pass.
15044 .IP "\fB\-mcase\-vector\-pcrel\fR" 4
15045 .IX Item "-mcase-vector-pcrel"
15046 Use PC-relative switch case tables to enable case table shortening.
15047 This is the default for \fB\-Os\fR.
15048 .IP "\fB\-mcompact\-casesi\fR" 4
15049 .IX Item "-mcompact-casesi"
15050 Enable compact \f(CW\*(C`casesi\*(C'\fR pattern.  This is the default for \fB\-Os\fR,
15051 and only available for ARCv1 cores.
15052 .IP "\fB\-mno\-cond\-exec\fR" 4
15053 .IX Item "-mno-cond-exec"
15054 Disable the ARCompact-specific pass to generate conditional 
15055 execution instructions.
15056 .Sp
15057 Due to delay slot scheduling and interactions between operand numbers,
15058 literal sizes, instruction lengths, and the support for conditional execution,
15059 the target-independent pass to generate conditional execution is often lacking,
15060 so the \s-1ARC\s0 port has kept a special pass around that tries to find more
15061 conditional execution generation opportunities after register allocation,
15062 branch shortening, and delay slot scheduling have been done.  This pass
15063 generally, but not always, improves performance and code size, at the cost of
15064 extra compilation time, which is why there is an option to switch it off.
15065 If you have a problem with call instructions exceeding their allowable
15066 offset range because they are conditionalized, you should consider using
15067 \&\fB\-mmedium\-calls\fR instead.
15068 .IP "\fB\-mearly\-cbranchsi\fR" 4
15069 .IX Item "-mearly-cbranchsi"
15070 Enable pre-reload use of the \f(CW\*(C`cbranchsi\*(C'\fR pattern.
15071 .IP "\fB\-mexpand\-adddi\fR" 4
15072 .IX Item "-mexpand-adddi"
15073 Expand \f(CW\*(C`adddi3\*(C'\fR and \f(CW\*(C`subdi3\*(C'\fR at \s-1RTL\s0 generation time into
15074 \&\f(CW\*(C`add.f\*(C'\fR, \f(CW\*(C`adc\*(C'\fR etc.  This option is deprecated.
15075 .IP "\fB\-mindexed\-loads\fR" 4
15076 .IX Item "-mindexed-loads"
15077 Enable the use of indexed loads.  This can be problematic because some
15078 optimizers then assume that indexed stores exist, which is not
15079 the case.
15080 .IP "\fB\-mlra\fR" 4
15081 .IX Item "-mlra"
15082 Enable Local Register Allocation.  This is still experimental for \s-1ARC,\s0
15083 so by default the compiler uses standard reload
15084 (i.e. \fB\-mno\-lra\fR).
15085 .IP "\fB\-mlra\-priority\-none\fR" 4
15086 .IX Item "-mlra-priority-none"
15087 Don't indicate any priority for target registers.
15088 .IP "\fB\-mlra\-priority\-compact\fR" 4
15089 .IX Item "-mlra-priority-compact"
15090 Indicate target register priority for r0..r3 / r12..r15.
15091 .IP "\fB\-mlra\-priority\-noncompact\fR" 4
15092 .IX Item "-mlra-priority-noncompact"
15093 Reduce target register priority for r0..r3 / r12..r15.
15094 .IP "\fB\-mno\-millicode\fR" 4
15095 .IX Item "-mno-millicode"
15096 When optimizing for size (using \fB\-Os\fR), prologues and epilogues
15097 that have to save or restore a large number of registers are often
15098 shortened by using call to a special function in libgcc; this is
15099 referred to as a \fImillicode\fR call.  As these calls can pose
15100 performance issues, and/or cause linking issues when linking in a
15101 nonstandard way, this option is provided to turn off millicode call
15102 generation.
15103 .IP "\fB\-mmixed\-code\fR" 4
15104 .IX Item "-mmixed-code"
15105 Tweak register allocation to help 16\-bit instruction generation.
15106 This generally has the effect of decreasing the average instruction size
15107 while increasing the instruction count.
15108 .IP "\fB\-mq\-class\fR" 4
15109 .IX Item "-mq-class"
15110 Enable \fBq\fR instruction alternatives.
15111 This is the default for \fB\-Os\fR.
15112 .IP "\fB\-mRcq\fR" 4
15113 .IX Item "-mRcq"
15114 Enable \fBRcq\fR constraint handling.  
15115 Most short code generation depends on this.
15116 This is the default.
15117 .IP "\fB\-mRcw\fR" 4
15118 .IX Item "-mRcw"
15119 Enable \fBRcw\fR constraint handling.  
15120 Most ccfsm condexec mostly depends on this.
15121 This is the default.
15122 .IP "\fB\-msize\-level=\fR\fIlevel\fR" 4
15123 .IX Item "-msize-level=level"
15124 Fine-tune size optimization with regards to instruction lengths and alignment.
15125 The recognized values for \fIlevel\fR are:
15126 .RS 4
15127 .IP "\fB0\fR" 4
15128 .IX Item "0"
15129 No size optimization.  This level is deprecated and treated like \fB1\fR.
15130 .IP "\fB1\fR" 4
15131 .IX Item "1"
15132 Short instructions are used opportunistically.
15133 .IP "\fB2\fR" 4
15134 .IX Item "2"
15135 In addition, alignment of loops and of code after barriers are dropped.
15136 .IP "\fB3\fR" 4
15137 .IX Item "3"
15138 In addition, optional data alignment is dropped, and the option \fBOs\fR is enabled.
15139 .RE
15140 .RS 4
15141 .Sp
15142 This defaults to \fB3\fR when \fB\-Os\fR is in effect.  Otherwise,
15143 the behavior when this is not set is equivalent to level \fB1\fR.
15144 .RE
15145 .IP "\fB\-mtune=\fR\fIcpu\fR" 4
15146 .IX Item "-mtune=cpu"
15147 Set instruction scheduling parameters for \fIcpu\fR, overriding any implied
15148 by \fB\-mcpu=\fR.
15149 .Sp
15150 Supported values for \fIcpu\fR are
15151 .RS 4
15152 .IP "\fB\s-1ARC600\s0\fR" 4
15153 .IX Item "ARC600"
15154 Tune for \s-1ARC600 CPU.\s0
15155 .IP "\fB\s-1ARC601\s0\fR" 4
15156 .IX Item "ARC601"
15157 Tune for \s-1ARC601 CPU.\s0
15158 .IP "\fB\s-1ARC700\s0\fR" 4
15159 .IX Item "ARC700"
15160 Tune for \s-1ARC700 CPU\s0 with standard multiplier block.
15161 .IP "\fBARC700\-xmac\fR" 4
15162 .IX Item "ARC700-xmac"
15163 Tune for \s-1ARC700 CPU\s0 with \s-1XMAC\s0 block.
15164 .IP "\fB\s-1ARC725D\s0\fR" 4
15165 .IX Item "ARC725D"
15166 Tune for \s-1ARC725D CPU.\s0
15167 .IP "\fB\s-1ARC750D\s0\fR" 4
15168 .IX Item "ARC750D"
15169 Tune for \s-1ARC750D CPU.\s0
15170 .RE
15171 .RS 4
15172 .RE
15173 .IP "\fB\-mmultcost=\fR\fInum\fR" 4
15174 .IX Item "-mmultcost=num"
15175 Cost to assume for a multiply instruction, with \fB4\fR being equal to a
15176 normal instruction.
15177 .IP "\fB\-munalign\-prob\-threshold=\fR\fIprobability\fR" 4
15178 .IX Item "-munalign-prob-threshold=probability"
15179 Set probability threshold for unaligning branches.
15180 When tuning for \fB\s-1ARC700\s0\fR and optimizing for speed, branches without
15181 filled delay slot are preferably emitted unaligned and long, unless
15182 profiling indicates that the probability for the branch to be taken
15183 is below \fIprobability\fR.  
15184 The default is (\s-1REG_BR_PROB_BASE/2\s0), i.e. 5000.
15185 .PP
15186 The following options are maintained for backward compatibility, but
15187 are now deprecated and will be removed in a future release:
15188 .IP "\fB\-margonaut\fR" 4
15189 .IX Item "-margonaut"
15190 Obsolete \s-1FPX.\s0
15191 .IP "\fB\-mbig\-endian\fR" 4
15192 .IX Item "-mbig-endian"
15193 .PD 0
15194 .IP "\fB\-EB\fR" 4
15195 .IX Item "-EB"
15196 .PD
15197 Compile code for big-endian targets.  Use of these options is now
15198 deprecated.  Big-endian code is supported by configuring \s-1GCC\s0 to build
15199 \&\f(CW\*(C`arceb\-elf32\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets,
15200 for which big endian is the default.
15201 .IP "\fB\-mlittle\-endian\fR" 4
15202 .IX Item "-mlittle-endian"
15203 .PD 0
15204 .IP "\fB\-EL\fR" 4
15205 .IX Item "-EL"
15206 .PD
15207 Compile code for little-endian targets.  Use of these options is now
15208 deprecated.  Little-endian code is supported by configuring \s-1GCC\s0 to build 
15209 \&\f(CW\*(C`arc\-elf32\*(C'\fR and \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR targets,
15210 for which little endian is the default.
15211 .IP "\fB\-mbarrel_shifter\fR" 4
15212 .IX Item "-mbarrel_shifter"
15213 Replaced by \fB\-mbarrel\-shifter\fR.
15214 .IP "\fB\-mdpfp_compact\fR" 4
15215 .IX Item "-mdpfp_compact"
15216 Replaced by \fB\-mdpfp\-compact\fR.
15217 .IP "\fB\-mdpfp_fast\fR" 4
15218 .IX Item "-mdpfp_fast"
15219 Replaced by \fB\-mdpfp\-fast\fR.
15220 .IP "\fB\-mdsp_packa\fR" 4
15221 .IX Item "-mdsp_packa"
15222 Replaced by \fB\-mdsp\-packa\fR.
15223 .IP "\fB\-mEA\fR" 4
15224 .IX Item "-mEA"
15225 Replaced by \fB\-mea\fR.
15226 .IP "\fB\-mmac_24\fR" 4
15227 .IX Item "-mmac_24"
15228 Replaced by \fB\-mmac\-24\fR.
15229 .IP "\fB\-mmac_d16\fR" 4
15230 .IX Item "-mmac_d16"
15231 Replaced by \fB\-mmac\-d16\fR.
15232 .IP "\fB\-mspfp_compact\fR" 4
15233 .IX Item "-mspfp_compact"
15234 Replaced by \fB\-mspfp\-compact\fR.
15235 .IP "\fB\-mspfp_fast\fR" 4
15236 .IX Item "-mspfp_fast"
15237 Replaced by \fB\-mspfp\-fast\fR.
15238 .IP "\fB\-mtune=\fR\fIcpu\fR" 4
15239 .IX Item "-mtune=cpu"
15240 Values \fBarc600\fR, \fBarc601\fR, \fBarc700\fR and
15241 \&\fBarc700\-xmac\fR for \fIcpu\fR are replaced by \fB\s-1ARC600\s0\fR,
15242 \&\fB\s-1ARC601\s0\fR, \fB\s-1ARC700\s0\fR and \fBARC700\-xmac\fR respectively.
15243 .IP "\fB\-multcost=\fR\fInum\fR" 4
15244 .IX Item "-multcost=num"
15245 Replaced by \fB\-mmultcost\fR.
15246 .PP
15247 \fI\s-1ARM\s0 Options\fR
15248 .IX Subsection "ARM Options"
15249 .PP
15250 These \fB\-m\fR options are defined for the \s-1ARM\s0 port:
15251 .IP "\fB\-mabi=\fR\fIname\fR" 4
15252 .IX Item "-mabi=name"
15253 Generate code for the specified \s-1ABI.\s0  Permissible values are: \fBapcs-gnu\fR,
15254 \&\fBatpcs\fR, \fBaapcs\fR, \fBaapcs-linux\fR and \fBiwmmxt\fR.
15255 .IP "\fB\-mapcs\-frame\fR" 4
15256 .IX Item "-mapcs-frame"
15257 Generate a stack frame that is compliant with the \s-1ARM\s0 Procedure Call
15258 Standard for all functions, even if this is not strictly necessary for
15259 correct execution of the code.  Specifying \fB\-fomit\-frame\-pointer\fR
15260 with this option causes the stack frames not to be generated for
15261 leaf functions.  The default is \fB\-mno\-apcs\-frame\fR.
15262 This option is deprecated.
15263 .IP "\fB\-mapcs\fR" 4
15264 .IX Item "-mapcs"
15265 This is a synonym for \fB\-mapcs\-frame\fR and is deprecated.
15266 .IP "\fB\-mthumb\-interwork\fR" 4
15267 .IX Item "-mthumb-interwork"
15268 Generate code that supports calling between the \s-1ARM\s0 and Thumb
15269 instruction sets.  Without this option, on pre\-v5 architectures, the
15270 two instruction sets cannot be reliably used inside one program.  The
15271 default is \fB\-mno\-thumb\-interwork\fR, since slightly larger code
15272 is generated when \fB\-mthumb\-interwork\fR is specified.  In \s-1AAPCS\s0
15273 configurations this option is meaningless.
15274 .IP "\fB\-mno\-sched\-prolog\fR" 4
15275 .IX Item "-mno-sched-prolog"
15276 Prevent the reordering of instructions in the function prologue, or the
15277 merging of those instruction with the instructions in the function's
15278 body.  This means that all functions start with a recognizable set
15279 of instructions (or in fact one of a choice from a small set of
15280 different function prologues), and this information can be used to
15281 locate the start of functions inside an executable piece of code.  The
15282 default is \fB\-msched\-prolog\fR.
15283 .IP "\fB\-mfloat\-abi=\fR\fIname\fR" 4
15284 .IX Item "-mfloat-abi=name"
15285 Specifies which floating-point \s-1ABI\s0 to use.  Permissible values
15286 are: \fBsoft\fR, \fBsoftfp\fR and \fBhard\fR.
15287 .Sp
15288 Specifying \fBsoft\fR causes \s-1GCC\s0 to generate output containing
15289 library calls for floating-point operations.
15290 \&\fBsoftfp\fR allows the generation of code using hardware floating-point
15291 instructions, but still uses the soft-float calling conventions.
15292 \&\fBhard\fR allows generation of floating-point instructions
15293 and uses FPU-specific calling conventions.
15294 .Sp
15295 The default depends on the specific target configuration.  Note that
15296 the hard-float and soft-float ABIs are not link-compatible; you must
15297 compile your entire program with the same \s-1ABI,\s0 and link with a
15298 compatible set of libraries.
15299 .IP "\fB\-mlittle\-endian\fR" 4
15300 .IX Item "-mlittle-endian"
15301 Generate code for a processor running in little-endian mode.  This is
15302 the default for all standard configurations.
15303 .IP "\fB\-mbig\-endian\fR" 4
15304 .IX Item "-mbig-endian"
15305 Generate code for a processor running in big-endian mode; the default is
15306 to compile code for a little-endian processor.
15307 .IP "\fB\-mbe8\fR" 4
15308 .IX Item "-mbe8"
15309 .PD 0
15310 .IP "\fB\-mbe32\fR" 4
15311 .IX Item "-mbe32"
15312 .PD
15313 When linking a big-endian image select between \s-1BE8\s0 and \s-1BE32\s0 formats.
15314 The option has no effect for little-endian images and is ignored.  The
15315 default is dependent on the selected target architecture.  For ARMv6
15316 and later architectures the default is \s-1BE8,\s0 for older architectures
15317 the default is \s-1BE32.\s0  \s-1BE32\s0 format has been deprecated by \s-1ARM.\s0
15318 .IP "\fB\-march=\fR\fIname\fR[\fB+extension...\fR]" 4
15319 .IX Item "-march=name[+extension...]"
15320 This specifies the name of the target \s-1ARM\s0 architecture.  \s-1GCC\s0 uses this
15321 name to determine what kind of instructions it can emit when generating
15322 assembly code.  This option can be used in conjunction with or instead
15323 of the \fB\-mcpu=\fR option.
15324 .Sp
15325 Permissible names are:
15326 \&\fBarmv4t\fR,
15327 \&\fBarmv5t\fR, \fBarmv5te\fR,
15328 \&\fBarmv6\fR, \fBarmv6j\fR, \fBarmv6k\fR, \fBarmv6kz\fR, \fBarmv6t2\fR,
15329 \&\fBarmv6z\fR, \fBarmv6zk\fR,
15330 \&\fBarmv7\fR, \fBarmv7\-a\fR, \fBarmv7ve\fR, 
15331 \&\fBarmv8\-a\fR, \fBarmv8.1\-a\fR, \fBarmv8.2\-a\fR, \fBarmv8.3\-a\fR,
15332 \&\fBarmv8.4\-a\fR,
15333 \&\fBarmv7\-r\fR,
15334 \&\fBarmv8\-r\fR,
15335 \&\fBarmv6\-m\fR, \fBarmv6s\-m\fR,
15336 \&\fBarmv7\-m\fR, \fBarmv7e\-m\fR,
15337 \&\fBarmv8\-m.base\fR, \fBarmv8\-m.main\fR,
15338 \&\fBiwmmxt\fR and \fBiwmmxt2\fR.
15339 .Sp
15340 Additionally, the following architectures, which lack support for the
15341 Thumb execution state, are recognized but support is deprecated:
15342 \&\fBarmv2\fR, \fBarmv2a\fR, \fBarmv3\fR, \fBarmv3m\fR,
15343 \&\fBarmv4\fR, \fBarmv5\fR and \fBarmv5e\fR.
15344 .Sp
15345 Many of the architectures support extensions.  These can be added by
15346 appending \fB+\fR\fIextension\fR to the architecture name.  Extension
15347 options are processed in order and capabilities accumulate.  An extension
15348 will also enable any necessary base extensions
15349 upon which it depends.  For example, the \fB+crypto\fR extension
15350 will always enable the \fB+simd\fR extension.  The exception to the
15351 additive construction is for extensions that are prefixed with
15352 \&\fB+no...\fR: these extensions disable the specified option and
15353 any other extensions that may depend on the presence of that
15354 extension.
15355 .Sp
15356 For example, \fB\-march=armv7\-a+simd+nofp+vfpv4\fR is equivalent to
15357 writing \fB\-march=armv7\-a+vfpv4\fR since the \fB+simd\fR option is
15358 entirely disabled by the \fB+nofp\fR option that follows it.
15359 .Sp
15360 Most extension names are generically named, but have an effect that is
15361 dependent upon the architecture to which it is applied.  For example,
15362 the \fB+simd\fR option can be applied to both \fBarmv7\-a\fR and
15363 \&\fBarmv8\-a\fR architectures, but will enable the original ARMv7\-A
15364 Advanced \s-1SIMD\s0 (Neon) extensions for \fBarmv7\-a\fR and the ARMv8\-A
15365 variant for \fBarmv8\-a\fR.
15366 .Sp
15367 The table below lists the supported extensions for each architecture.
15368 Architectures not mentioned do not support any extensions.
15369 .RS 4
15370 .IP "\fBarmv5e\fR" 4
15371 .IX Item "armv5e"
15372 .PD 0
15373 .IP "\fBarmv5te\fR" 4
15374 .IX Item "armv5te"
15375 .IP "\fBarmv6\fR" 4
15376 .IX Item "armv6"
15377 .IP "\fBarmv6j\fR" 4
15378 .IX Item "armv6j"
15379 .IP "\fBarmv6k\fR" 4
15380 .IX Item "armv6k"
15381 .IP "\fBarmv6kz\fR" 4
15382 .IX Item "armv6kz"
15383 .IP "\fBarmv6t2\fR" 4
15384 .IX Item "armv6t2"
15385 .IP "\fBarmv6z\fR" 4
15386 .IX Item "armv6z"
15387 .IP "\fBarmv6zk\fR" 4
15388 .IX Item "armv6zk"
15389 .RS 4
15390 .IP "\fB+fp\fR" 4
15391 .IX Item "+fp"
15392 .PD
15393 The VFPv2 floating-point instructions.  The extension \fB+vfpv2\fR can be
15394 used as an alias for this extension.
15395 .IP "\fB+nofp\fR" 4
15396 .IX Item "+nofp"
15397 Disable the floating-point instructions.
15398 .RE
15399 .RS 4
15400 .RE
15401 .IP "\fBarmv7\fR" 4
15402 .IX Item "armv7"
15403 The common subset of the ARMv7\-A, ARMv7\-R and ARMv7\-M architectures.
15404 .RS 4
15405 .IP "\fB+fp\fR" 4
15406 .IX Item "+fp"
15407 The VFPv3 floating-point instructions, with 16 double-precision
15408 registers.  The extension \fB+vfpv3\-d16\fR can be used as an alias
15409 for this extension.  Note that floating-point is not supported by the
15410 base ARMv7\-M architecture, but is compatible with both the ARMv7\-A and
15411 ARMv7\-R architectures.
15412 .IP "\fB+nofp\fR" 4
15413 .IX Item "+nofp"
15414 Disable the floating-point instructions.
15415 .RE
15416 .RS 4
15417 .RE
15418 .IP "\fBarmv7\-a\fR" 4
15419 .IX Item "armv7-a"
15420 .RS 4
15421 .PD 0
15422 .IP "\fB+mp\fR" 4
15423 .IX Item "+mp"
15424 .PD
15425 The multiprocessing extension.
15426 .IP "\fB+sec\fR" 4
15427 .IX Item "+sec"
15428 The security extension.
15429 .IP "\fB+fp\fR" 4
15430 .IX Item "+fp"
15431 The VFPv3 floating-point instructions, with 16 double-precision
15432 registers.  The extension \fB+vfpv3\-d16\fR can be used as an alias
15433 for this extension.
15434 .IP "\fB+simd\fR" 4
15435 .IX Item "+simd"
15436 The Advanced \s-1SIMD\s0 (Neon) v1 and the VFPv3 floating-point instructions.
15437 The extensions \fB+neon\fR and \fB+neon\-vfpv3\fR can be used as aliases
15438 for this extension.
15439 .IP "\fB+vfpv3\fR" 4
15440 .IX Item "+vfpv3"
15441 The VFPv3 floating-point instructions, with 32 double-precision
15442 registers.
15443 .IP "\fB+vfpv3\-d16\-fp16\fR" 4
15444 .IX Item "+vfpv3-d16-fp16"
15445 The VFPv3 floating-point instructions, with 16 double-precision
15446 registers and the half-precision floating-point conversion operations.
15447 .IP "\fB+vfpv3\-fp16\fR" 4
15448 .IX Item "+vfpv3-fp16"
15449 The VFPv3 floating-point instructions, with 32 double-precision
15450 registers and the half-precision floating-point conversion operations.
15451 .IP "\fB+vfpv4\-d16\fR" 4
15452 .IX Item "+vfpv4-d16"
15453 The VFPv4 floating-point instructions, with 16 double-precision
15454 registers.
15455 .IP "\fB+vfpv4\fR" 4
15456 .IX Item "+vfpv4"
15457 The VFPv4 floating-point instructions, with 32 double-precision
15458 registers.
15459 .IP "\fB+neon\-fp16\fR" 4
15460 .IX Item "+neon-fp16"
15461 The Advanced \s-1SIMD\s0 (Neon) v1 and the VFPv3 floating-point instructions, with
15462 the half-precision floating-point conversion operations.
15463 .IP "\fB+neon\-vfpv4\fR" 4
15464 .IX Item "+neon-vfpv4"
15465 The Advanced \s-1SIMD\s0 (Neon) v2 and the VFPv4 floating-point instructions.
15466 .IP "\fB+nosimd\fR" 4
15467 .IX Item "+nosimd"
15468 Disable the Advanced \s-1SIMD\s0 instructions (does not disable floating point).
15469 .IP "\fB+nofp\fR" 4
15470 .IX Item "+nofp"
15471 Disable the floating-point and Advanced \s-1SIMD\s0 instructions.
15472 .RE
15473 .RS 4
15474 .RE
15475 .IP "\fBarmv7ve\fR" 4
15476 .IX Item "armv7ve"
15477 The extended version of the ARMv7\-A architecture with support for
15478 virtualization.
15479 .RS 4
15480 .IP "\fB+fp\fR" 4
15481 .IX Item "+fp"
15482 The VFPv4 floating-point instructions, with 16 double-precision registers.
15483 The extension \fB+vfpv4\-d16\fR can be used as an alias for this extension.
15484 .IP "\fB+simd\fR" 4
15485 .IX Item "+simd"
15486 The Advanced \s-1SIMD\s0 (Neon) v2 and the VFPv4 floating-point instructions.  The
15487 extension \fB+neon\-vfpv4\fR can be used as an alias for this extension.
15488 .IP "\fB+vfpv3\-d16\fR" 4
15489 .IX Item "+vfpv3-d16"
15490 The VFPv3 floating-point instructions, with 16 double-precision
15491 registers.
15492 .IP "\fB+vfpv3\fR" 4
15493 .IX Item "+vfpv3"
15494 The VFPv3 floating-point instructions, with 32 double-precision
15495 registers.
15496 .IP "\fB+vfpv3\-d16\-fp16\fR" 4
15497 .IX Item "+vfpv3-d16-fp16"
15498 The VFPv3 floating-point instructions, with 16 double-precision
15499 registers and the half-precision floating-point conversion operations.
15500 .IP "\fB+vfpv3\-fp16\fR" 4
15501 .IX Item "+vfpv3-fp16"
15502 The VFPv3 floating-point instructions, with 32 double-precision
15503 registers and the half-precision floating-point conversion operations.
15504 .IP "\fB+vfpv4\-d16\fR" 4
15505 .IX Item "+vfpv4-d16"
15506 The VFPv4 floating-point instructions, with 16 double-precision
15507 registers.
15508 .IP "\fB+vfpv4\fR" 4
15509 .IX Item "+vfpv4"
15510 The VFPv4 floating-point instructions, with 32 double-precision
15511 registers.
15512 .IP "\fB+neon\fR" 4
15513 .IX Item "+neon"
15514 The Advanced \s-1SIMD\s0 (Neon) v1 and the VFPv3 floating-point instructions.
15515 The extension \fB+neon\-vfpv3\fR can be used as an alias for this extension.
15516 .IP "\fB+neon\-fp16\fR" 4
15517 .IX Item "+neon-fp16"
15518 The Advanced \s-1SIMD\s0 (Neon) v1 and the VFPv3 floating-point instructions, with
15519 the half-precision floating-point conversion operations.
15520 .IP "\fB+nosimd\fR" 4
15521 .IX Item "+nosimd"
15522 Disable the Advanced \s-1SIMD\s0 instructions (does not disable floating point).
15523 .IP "\fB+nofp\fR" 4
15524 .IX Item "+nofp"
15525 Disable the floating-point and Advanced \s-1SIMD\s0 instructions.
15526 .RE
15527 .RS 4
15528 .RE
15529 .IP "\fBarmv8\-a\fR" 4
15530 .IX Item "armv8-a"
15531 .RS 4
15532 .PD 0
15533 .IP "\fB+crc\fR" 4
15534 .IX Item "+crc"
15535 .PD
15536 The Cyclic Redundancy Check (\s-1CRC\s0) instructions.
15537 .IP "\fB+simd\fR" 4
15538 .IX Item "+simd"
15539 The ARMv8\-A Advanced \s-1SIMD\s0 and floating-point instructions.
15540 .IP "\fB+crypto\fR" 4
15541 .IX Item "+crypto"
15542 The cryptographic instructions.
15543 .IP "\fB+nocrypto\fR" 4
15544 .IX Item "+nocrypto"
15545 Disable the cryptographic instructions.
15546 .IP "\fB+nofp\fR" 4
15547 .IX Item "+nofp"
15548 Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
15549 .RE
15550 .RS 4
15551 .RE
15552 .IP "\fBarmv8.1\-a\fR" 4
15553 .IX Item "armv8.1-a"
15554 .RS 4
15555 .PD 0
15556 .IP "\fB+simd\fR" 4
15557 .IX Item "+simd"
15558 .PD
15559 The ARMv8.1\-A Advanced \s-1SIMD\s0 and floating-point instructions.
15560 .IP "\fB+crypto\fR" 4
15561 .IX Item "+crypto"
15562 The cryptographic instructions.  This also enables the Advanced \s-1SIMD\s0 and
15563 floating-point instructions.
15564 .IP "\fB+nocrypto\fR" 4
15565 .IX Item "+nocrypto"
15566 Disable the cryptographic instructions.
15567 .IP "\fB+nofp\fR" 4
15568 .IX Item "+nofp"
15569 Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
15570 .RE
15571 .RS 4
15572 .RE
15573 .IP "\fBarmv8.2\-a\fR" 4
15574 .IX Item "armv8.2-a"
15575 .PD 0
15576 .IP "\fBarmv8.3\-a\fR" 4
15577 .IX Item "armv8.3-a"
15578 .RS 4
15579 .IP "\fB+fp16\fR" 4
15580 .IX Item "+fp16"
15581 .PD
15582 The half-precision floating-point data processing instructions.
15583 This also enables the Advanced \s-1SIMD\s0 and floating-point instructions.
15584 .IP "\fB+fp16fml\fR" 4
15585 .IX Item "+fp16fml"
15586 The half-precision floating-point fmla extension.  This also enables
15587 the half-precision floating-point extension and Advanced \s-1SIMD\s0 and
15588 floating-point instructions.
15589 .IP "\fB+simd\fR" 4
15590 .IX Item "+simd"
15591 The ARMv8.1\-A Advanced \s-1SIMD\s0 and floating-point instructions.
15592 .IP "\fB+crypto\fR" 4
15593 .IX Item "+crypto"
15594 The cryptographic instructions.  This also enables the Advanced \s-1SIMD\s0 and
15595 floating-point instructions.
15596 .IP "\fB+dotprod\fR" 4
15597 .IX Item "+dotprod"
15598 Enable the Dot Product extension.  This also enables Advanced \s-1SIMD\s0 instructions.
15599 .IP "\fB+nocrypto\fR" 4
15600 .IX Item "+nocrypto"
15601 Disable the cryptographic extension.
15602 .IP "\fB+nofp\fR" 4
15603 .IX Item "+nofp"
15604 Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
15605 .RE
15606 .RS 4
15607 .RE
15608 .IP "\fBarmv8.4\-a\fR" 4
15609 .IX Item "armv8.4-a"
15610 .RS 4
15611 .PD 0
15612 .IP "\fB+fp16\fR" 4
15613 .IX Item "+fp16"
15614 .PD
15615 The half-precision floating-point data processing instructions.
15616 This also enables the Advanced \s-1SIMD\s0 and floating-point instructions as well
15617 as the Dot Product extension and the half-precision floating-point fmla
15618 extension.
15619 .IP "\fB+simd\fR" 4
15620 .IX Item "+simd"
15621 The ARMv8.3\-A Advanced \s-1SIMD\s0 and floating-point instructions as well as the
15622 Dot Product extension.
15623 .IP "\fB+crypto\fR" 4
15624 .IX Item "+crypto"
15625 The cryptographic instructions.  This also enables the Advanced \s-1SIMD\s0 and
15626 floating-point instructions as well as the Dot Product extension.
15627 .IP "\fB+nocrypto\fR" 4
15628 .IX Item "+nocrypto"
15629 Disable the cryptographic extension.
15630 .IP "\fB+nofp\fR" 4
15631 .IX Item "+nofp"
15632 Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
15633 .RE
15634 .RS 4
15635 .RE
15636 .IP "\fBarmv7\-r\fR" 4
15637 .IX Item "armv7-r"
15638 .RS 4
15639 .PD 0
15640 .IP "\fB+fp.sp\fR" 4
15641 .IX Item "+fp.sp"
15642 .PD
15643 The single-precision VFPv3 floating-point instructions.  The extension
15644 \&\fB+vfpv3xd\fR can be used as an alias for this extension.
15645 .IP "\fB+fp\fR" 4
15646 .IX Item "+fp"
15647 The VFPv3 floating-point instructions with 16 double-precision registers.
15648 The extension +vfpv3\-d16 can be used as an alias for this extension.
15649 .IP "\fB+vfpv3xd\-d16\-fp16\fR" 4
15650 .IX Item "+vfpv3xd-d16-fp16"
15651 The single-precision VFPv3 floating-point instructions with 16 double-precision
15652 registers and the half-precision floating-point conversion operations.
15653 .IP "\fB+vfpv3\-d16\-fp16\fR" 4
15654 .IX Item "+vfpv3-d16-fp16"
15655 The VFPv3 floating-point instructions, with 16 double-precision
15656 registers and the half-precision floating-point conversion operations.
15657 .IP "\fB+nofp\fR" 4
15658 .IX Item "+nofp"
15659 Disable the floating-point extension.
15660 .IP "\fB+idiv\fR" 4
15661 .IX Item "+idiv"
15662 The ARM-state integer division instructions.
15663 .IP "\fB+noidiv\fR" 4
15664 .IX Item "+noidiv"
15665 Disable the ARM-state integer division extension.
15666 .RE
15667 .RS 4
15668 .RE
15669 .IP "\fBarmv7e\-m\fR" 4
15670 .IX Item "armv7e-m"
15671 .RS 4
15672 .PD 0
15673 .IP "\fB+fp\fR" 4
15674 .IX Item "+fp"
15675 .PD
15676 The single-precision VFPv4 floating-point instructions.
15677 .IP "\fB+fpv5\fR" 4
15678 .IX Item "+fpv5"
15679 The single-precision FPv5 floating-point instructions.
15680 .IP "\fB+fp.dp\fR" 4
15681 .IX Item "+fp.dp"
15682 The single\- and double-precision FPv5 floating-point instructions.
15683 .IP "\fB+nofp\fR" 4
15684 .IX Item "+nofp"
15685 Disable the floating-point extensions.
15686 .RE
15687 .RS 4
15688 .RE
15689 .IP "\fBarmv8\-m.main\fR" 4
15690 .IX Item "armv8-m.main"
15691 .RS 4
15692 .PD 0
15693 .IP "\fB+dsp\fR" 4
15694 .IX Item "+dsp"
15695 .PD
15696 The \s-1DSP\s0 instructions.
15697 .IP "\fB+nodsp\fR" 4
15698 .IX Item "+nodsp"
15699 Disable the \s-1DSP\s0 extension.
15700 .IP "\fB+fp\fR" 4
15701 .IX Item "+fp"
15702 The single-precision floating-point instructions.
15703 .IP "\fB+fp.dp\fR" 4
15704 .IX Item "+fp.dp"
15705 The single\- and double-precision floating-point instructions.
15706 .IP "\fB+nofp\fR" 4
15707 .IX Item "+nofp"
15708 Disable the floating-point extension.
15709 .RE
15710 .RS 4
15711 .RE
15712 .IP "\fBarmv8\-r\fR" 4
15713 .IX Item "armv8-r"
15714 .RS 4
15715 .PD 0
15716 .IP "\fB+crc\fR" 4
15717 .IX Item "+crc"
15718 .PD
15719 The Cyclic Redundancy Check (\s-1CRC\s0) instructions.
15720 .IP "\fB+fp.sp\fR" 4
15721 .IX Item "+fp.sp"
15722 The single-precision FPv5 floating-point instructions.
15723 .IP "\fB+simd\fR" 4
15724 .IX Item "+simd"
15725 The ARMv8\-A Advanced \s-1SIMD\s0 and floating-point instructions.
15726 .IP "\fB+crypto\fR" 4
15727 .IX Item "+crypto"
15728 The cryptographic instructions.
15729 .IP "\fB+nocrypto\fR" 4
15730 .IX Item "+nocrypto"
15731 Disable the cryptographic instructions.
15732 .IP "\fB+nofp\fR" 4
15733 .IX Item "+nofp"
15734 Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
15735 .RE
15736 .RS 4
15737 .RE
15738 .RE
15739 .RS 4
15740 .Sp
15741 \&\fB\-march=native\fR causes the compiler to auto-detect the architecture
15742 of the build computer.  At present, this feature is only supported on
15743 GNU/Linux, and not all architectures are recognized.  If the auto-detect
15744 is unsuccessful the option has no effect.
15745 .RE
15746 .IP "\fB\-mtune=\fR\fIname\fR" 4
15747 .IX Item "-mtune=name"
15748 This option specifies the name of the target \s-1ARM\s0 processor for
15749 which \s-1GCC\s0 should tune the performance of the code.
15750 For some \s-1ARM\s0 implementations better performance can be obtained by using
15751 this option.
15752 Permissible names are: \fBarm2\fR, \fBarm250\fR,
15753 \&\fBarm3\fR, \fBarm6\fR, \fBarm60\fR, \fBarm600\fR, \fBarm610\fR,
15754 \&\fBarm620\fR, \fBarm7\fR, \fBarm7m\fR, \fBarm7d\fR, \fBarm7dm\fR,
15755 \&\fBarm7di\fR, \fBarm7dmi\fR, \fBarm70\fR, \fBarm700\fR,
15756 \&\fBarm700i\fR, \fBarm710\fR, \fBarm710c\fR, \fBarm7100\fR,
15757 \&\fBarm720\fR,
15758 \&\fBarm7500\fR, \fBarm7500fe\fR, \fBarm7tdmi\fR, \fBarm7tdmi\-s\fR,
15759 \&\fBarm710t\fR, \fBarm720t\fR, \fBarm740t\fR,
15760 \&\fBstrongarm\fR, \fBstrongarm110\fR, \fBstrongarm1100\fR,
15761 \&\fBstrongarm1110\fR,
15762 \&\fBarm8\fR, \fBarm810\fR, \fBarm9\fR, \fBarm9e\fR, \fBarm920\fR,
15763 \&\fBarm920t\fR, \fBarm922t\fR, \fBarm946e\-s\fR, \fBarm966e\-s\fR,
15764 \&\fBarm968e\-s\fR, \fBarm926ej\-s\fR, \fBarm940t\fR, \fBarm9tdmi\fR,
15765 \&\fBarm10tdmi\fR, \fBarm1020t\fR, \fBarm1026ej\-s\fR,
15766 \&\fBarm10e\fR, \fBarm1020e\fR, \fBarm1022e\fR,
15767 \&\fBarm1136j\-s\fR, \fBarm1136jf\-s\fR, \fBmpcore\fR, \fBmpcorenovfp\fR,
15768 \&\fBarm1156t2\-s\fR, \fBarm1156t2f\-s\fR, \fBarm1176jz\-s\fR, \fBarm1176jzf\-s\fR,
15769 \&\fBgeneric\-armv7\-a\fR, \fBcortex\-a5\fR, \fBcortex\-a7\fR, \fBcortex\-a8\fR,
15770 \&\fBcortex\-a9\fR, \fBcortex\-a12\fR, \fBcortex\-a15\fR, \fBcortex\-a17\fR,
15771 \&\fBcortex\-a32\fR, \fBcortex\-a35\fR, \fBcortex\-a53\fR, \fBcortex\-a55\fR,
15772 \&\fBcortex\-a57\fR, \fBcortex\-a72\fR, \fBcortex\-a73\fR, \fBcortex\-a75\fR,
15773 \&\fBcortex\-r4\fR, \fBcortex\-r4f\fR, \fBcortex\-r5\fR, \fBcortex\-r7\fR,
15774 \&\fBcortex\-r8\fR, \fBcortex\-r52\fR,
15775 \&\fBcortex\-m33\fR,
15776 \&\fBcortex\-m23\fR,
15777 \&\fBcortex\-m7\fR,
15778 \&\fBcortex\-m4\fR,
15779 \&\fBcortex\-m3\fR,
15780 \&\fBcortex\-m1\fR,
15781 \&\fBcortex\-m0\fR,
15782 \&\fBcortex\-m0plus\fR,
15783 \&\fBcortex\-m1.small\-multiply\fR,
15784 \&\fBcortex\-m0.small\-multiply\fR,
15785 \&\fBcortex\-m0plus.small\-multiply\fR,
15786 \&\fBexynos\-m1\fR,
15787 \&\fBmarvell\-pj4\fR,
15788 \&\fBxscale\fR, \fBiwmmxt\fR, \fBiwmmxt2\fR, \fBep9312\fR,
15789 \&\fBfa526\fR, \fBfa626\fR,
15790 \&\fBfa606te\fR, \fBfa626te\fR, \fBfmp626\fR, \fBfa726te\fR,
15791 \&\fBxgene1\fR.
15792 .Sp
15793 Additionally, this option can specify that \s-1GCC\s0 should tune the performance
15794 of the code for a big.LITTLE system.  Permissible names are:
15795 \&\fBcortex\-a15.cortex\-a7\fR, \fBcortex\-a17.cortex\-a7\fR,
15796 \&\fBcortex\-a57.cortex\-a53\fR, \fBcortex\-a72.cortex\-a53\fR,
15797 \&\fBcortex\-a72.cortex\-a35\fR, \fBcortex\-a73.cortex\-a53\fR,
15798 \&\fBcortex\-a75.cortex\-a55\fR.
15799 .Sp
15800 \&\fB\-mtune=generic\-\fR\fIarch\fR specifies that \s-1GCC\s0 should tune the
15801 performance for a blend of processors within architecture \fIarch\fR.
15802 The aim is to generate code that run well on the current most popular
15803 processors, balancing between optimizations that benefit some CPUs in the
15804 range, and avoiding performance pitfalls of other CPUs.  The effects of
15805 this option may change in future \s-1GCC\s0 versions as \s-1CPU\s0 models come and go.
15806 .Sp
15807 \&\fB\-mtune\fR permits the same extension options as \fB\-mcpu\fR, but
15808 the extension options do not affect the tuning of the generated code.
15809 .Sp
15810 \&\fB\-mtune=native\fR causes the compiler to auto-detect the \s-1CPU\s0
15811 of the build computer.  At present, this feature is only supported on
15812 GNU/Linux, and not all architectures are recognized.  If the auto-detect is
15813 unsuccessful the option has no effect.
15814 .IP "\fB\-mcpu=\fR\fIname\fR[\fB+extension...\fR]" 4
15815 .IX Item "-mcpu=name[+extension...]"
15816 This specifies the name of the target \s-1ARM\s0 processor.  \s-1GCC\s0 uses this name
15817 to derive the name of the target \s-1ARM\s0 architecture (as if specified
15818 by \fB\-march\fR) and the \s-1ARM\s0 processor type for which to tune for
15819 performance (as if specified by \fB\-mtune\fR).  Where this option
15820 is used in conjunction with \fB\-march\fR or \fB\-mtune\fR,
15821 those options take precedence over the appropriate part of this option.
15822 .Sp
15823 Many of the supported CPUs implement optional architectural
15824 extensions.  Where this is so the architectural extensions are
15825 normally enabled by default.  If implementations that lack the
15826 extension exist, then the extension syntax can be used to disable
15827 those extensions that have been omitted.  For floating-point and
15828 Advanced \s-1SIMD\s0 (Neon) instructions, the settings of the options
15829 \&\fB\-mfloat\-abi\fR and \fB\-mfpu\fR must also be considered:
15830 floating-point and Advanced \s-1SIMD\s0 instructions will only be used if
15831 \&\fB\-mfloat\-abi\fR is not set to \fBsoft\fR; and any setting of
15832 \&\fB\-mfpu\fR other than \fBauto\fR will override the available
15833 floating-point and \s-1SIMD\s0 extension instructions.
15834 .Sp
15835 For example, \fBcortex\-a9\fR can be found in three major
15836 configurations: integer only, with just a floating-point unit or with
15837 floating-point and Advanced \s-1SIMD.\s0  The default is to enable all the
15838 instructions, but the extensions \fB+nosimd\fR and \fB+nofp\fR can
15839 be used to disable just the \s-1SIMD\s0 or both the \s-1SIMD\s0 and floating-point
15840 instructions respectively.
15841 .Sp
15842 Permissible names for this option are the same as those for
15843 \&\fB\-mtune\fR.
15844 .Sp
15845 The following extension options are common to the listed CPUs:
15846 .RS 4
15847 .IP "\fB+nodsp\fR" 4
15848 .IX Item "+nodsp"
15849 Disable the \s-1DSP\s0 instructions on \fBcortex\-m33\fR.
15850 .IP "\fB+nofp\fR" 4
15851 .IX Item "+nofp"
15852 Disables the floating-point instructions on \fBarm9e\fR,
15853 \&\fBarm946e\-s\fR, \fBarm966e\-s\fR, \fBarm968e\-s\fR, \fBarm10e\fR,
15854 \&\fBarm1020e\fR, \fBarm1022e\fR, \fBarm926ej\-s\fR,
15855 \&\fBarm1026ej\-s\fR, \fBcortex\-r5\fR, \fBcortex\-r7\fR, \fBcortex\-r8\fR,
15856 \&\fBcortex\-m4\fR, \fBcortex\-m7\fR and \fBcortex\-m33\fR.
15857 Disables the floating-point and \s-1SIMD\s0 instructions on
15858 \&\fBgeneric\-armv7\-a\fR, \fBcortex\-a5\fR, \fBcortex\-a7\fR,
15859 \&\fBcortex\-a8\fR, \fBcortex\-a9\fR, \fBcortex\-a12\fR,
15860 \&\fBcortex\-a15\fR, \fBcortex\-a17\fR, \fBcortex\-a15.cortex\-a7\fR,
15861 \&\fBcortex\-a17.cortex\-a7\fR, \fBcortex\-a32\fR, \fBcortex\-a35\fR,
15862 \&\fBcortex\-a53\fR and \fBcortex\-a55\fR.
15863 .IP "\fB+nofp.dp\fR" 4
15864 .IX Item "+nofp.dp"
15865 Disables the double-precision component of the floating-point instructions
15866 on \fBcortex\-r5\fR, \fBcortex\-r7\fR, \fBcortex\-r8\fR, \fBcortex\-r52\fR and
15867 \&\fBcortex\-m7\fR.
15868 .IP "\fB+nosimd\fR" 4
15869 .IX Item "+nosimd"
15870 Disables the \s-1SIMD\s0 (but not floating-point) instructions on
15871 \&\fBgeneric\-armv7\-a\fR, \fBcortex\-a5\fR, \fBcortex\-a7\fR
15872 and \fBcortex\-a9\fR.
15873 .IP "\fB+crypto\fR" 4
15874 .IX Item "+crypto"
15875 Enables the cryptographic instructions on \fBcortex\-a32\fR,
15876 \&\fBcortex\-a35\fR, \fBcortex\-a53\fR, \fBcortex\-a55\fR, \fBcortex\-a57\fR,
15877 \&\fBcortex\-a72\fR, \fBcortex\-a73\fR, \fBcortex\-a75\fR, \fBexynos\-m1\fR,
15878 \&\fBxgene1\fR, \fBcortex\-a57.cortex\-a53\fR, \fBcortex\-a72.cortex\-a53\fR,
15879 \&\fBcortex\-a73.cortex\-a35\fR, \fBcortex\-a73.cortex\-a53\fR and
15880 \&\fBcortex\-a75.cortex\-a55\fR.
15881 .RE
15882 .RS 4
15883 .Sp
15884 Additionally the \fBgeneric\-armv7\-a\fR pseudo target defaults to
15885 VFPv3 with 16 double-precision registers.  It supports the following
15886 extension options: \fBmp\fR, \fBsec\fR, \fBvfpv3\-d16\fR,
15887 \&\fBvfpv3\fR, \fBvfpv3\-d16\-fp16\fR, \fBvfpv3\-fp16\fR,
15888 \&\fBvfpv4\-d16\fR, \fBvfpv4\fR, \fBneon\fR, \fBneon\-vfpv3\fR,
15889 \&\fBneon\-fp16\fR, \fBneon\-vfpv4\fR.  The meanings are the same as for
15890 the extensions to \fB\-march=armv7\-a\fR.
15891 .Sp
15892 \&\fB\-mcpu=generic\-\fR\fIarch\fR is also permissible, and is
15893 equivalent to \fB\-march=\fR\fIarch\fR \fB\-mtune=generic\-\fR\fIarch\fR.
15894 See \fB\-mtune\fR for more information.
15895 .Sp
15896 \&\fB\-mcpu=native\fR causes the compiler to auto-detect the \s-1CPU\s0
15897 of the build computer.  At present, this feature is only supported on
15898 GNU/Linux, and not all architectures are recognized.  If the auto-detect
15899 is unsuccessful the option has no effect.
15900 .RE
15901 .IP "\fB\-mfpu=\fR\fIname\fR" 4
15902 .IX Item "-mfpu=name"
15903 This specifies what floating-point hardware (or hardware emulation) is
15904 available on the target.  Permissible names are: \fBauto\fR, \fBvfpv2\fR,
15905 \&\fBvfpv3\fR,
15906 \&\fBvfpv3\-fp16\fR, \fBvfpv3\-d16\fR, \fBvfpv3\-d16\-fp16\fR, \fBvfpv3xd\fR,
15907 \&\fBvfpv3xd\-fp16\fR, \fBneon\-vfpv3\fR, \fBneon\-fp16\fR, \fBvfpv4\fR,
15908 \&\fBvfpv4\-d16\fR, \fBfpv4\-sp\-d16\fR, \fBneon\-vfpv4\fR,
15909 \&\fBfpv5\-d16\fR, \fBfpv5\-sp\-d16\fR,
15910 \&\fBfp\-armv8\fR, \fBneon\-fp\-armv8\fR and \fBcrypto\-neon\-fp\-armv8\fR.
15911 Note that \fBneon\fR is an alias for \fBneon\-vfpv3\fR and \fBvfp\fR
15912 is an alias for \fBvfpv2\fR.
15913 .Sp
15914 The setting \fBauto\fR is the default and is special.  It causes the
15915 compiler to select the floating-point and Advanced \s-1SIMD\s0 instructions
15916 based on the settings of \fB\-mcpu\fR and \fB\-march\fR.
15917 .Sp
15918 If the selected floating-point hardware includes the \s-1NEON\s0 extension
15919 (e.g. \fB\-mfpu=neon\fR), note that floating-point
15920 operations are not generated by \s-1GCC\s0's auto-vectorization pass unless
15921 \&\fB\-funsafe\-math\-optimizations\fR is also specified.  This is
15922 because \s-1NEON\s0 hardware does not fully implement the \s-1IEEE 754\s0 standard for
15923 floating-point arithmetic (in particular denormal values are treated as
15924 zero), so the use of \s-1NEON\s0 instructions may lead to a loss of precision.
15925 .Sp
15926 You can also set the fpu name at function level by using the \f(CW\*(C`target("fpu=")\*(C'\fR function attributes or pragmas.
15927 .IP "\fB\-mfp16\-format=\fR\fIname\fR" 4
15928 .IX Item "-mfp16-format=name"
15929 Specify the format of the \f(CW\*(C`_\|_fp16\*(C'\fR half-precision floating-point type.
15930 Permissible names are \fBnone\fR, \fBieee\fR, and \fBalternative\fR;
15931 the default is \fBnone\fR, in which case the \f(CW\*(C`_\|_fp16\*(C'\fR type is not
15932 defined.
15933 .IP "\fB\-mstructure\-size\-boundary=\fR\fIn\fR" 4
15934 .IX Item "-mstructure-size-boundary=n"
15935 The sizes of all structures and unions are rounded up to a multiple
15936 of the number of bits set by this option.  Permissible values are 8, 32
15937 and 64.  The default value varies for different toolchains.  For the \s-1COFF\s0
15938 targeted toolchain the default value is 8.  A value of 64 is only allowed
15939 if the underlying \s-1ABI\s0 supports it.
15940 .Sp
15941 Specifying a larger number can produce faster, more efficient code, but
15942 can also increase the size of the program.  Different values are potentially
15943 incompatible.  Code compiled with one value cannot necessarily expect to
15944 work with code or libraries compiled with another value, if they exchange
15945 information using structures or unions.
15946 .Sp
15947 This option is deprecated.
15948 .IP "\fB\-mabort\-on\-noreturn\fR" 4
15949 .IX Item "-mabort-on-noreturn"
15950 Generate a call to the function \f(CW\*(C`abort\*(C'\fR at the end of a
15951 \&\f(CW\*(C`noreturn\*(C'\fR function.  It is executed if the function tries to
15952 return.
15953 .IP "\fB\-mlong\-calls\fR" 4
15954 .IX Item "-mlong-calls"
15955 .PD 0
15956 .IP "\fB\-mno\-long\-calls\fR" 4
15957 .IX Item "-mno-long-calls"
15958 .PD
15959 Tells the compiler to perform function calls by first loading the
15960 address of the function into a register and then performing a subroutine
15961 call on this register.  This switch is needed if the target function
15962 lies outside of the 64\-megabyte addressing range of the offset-based
15963 version of subroutine call instruction.
15964 .Sp
15965 Even if this switch is enabled, not all function calls are turned
15966 into long calls.  The heuristic is that static functions, functions
15967 that have the \f(CW\*(C`short_call\*(C'\fR attribute, functions that are inside
15968 the scope of a \f(CW\*(C`#pragma no_long_calls\*(C'\fR directive, and functions whose
15969 definitions have already been compiled within the current compilation
15970 unit are not turned into long calls.  The exceptions to this rule are
15971 that weak function definitions, functions with the \f(CW\*(C`long_call\*(C'\fR
15972 attribute or the \f(CW\*(C`section\*(C'\fR attribute, and functions that are within
15973 the scope of a \f(CW\*(C`#pragma long_calls\*(C'\fR directive are always
15974 turned into long calls.
15975 .Sp
15976 This feature is not enabled by default.  Specifying
15977 \&\fB\-mno\-long\-calls\fR restores the default behavior, as does
15978 placing the function calls within the scope of a \f(CW\*(C`#pragma
15979 long_calls_off\*(C'\fR directive.  Note these switches have no effect on how
15980 the compiler generates code to handle function calls via function
15981 pointers.
15982 .IP "\fB\-msingle\-pic\-base\fR" 4
15983 .IX Item "-msingle-pic-base"
15984 Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
15985 loading it in the prologue for each function.  The runtime system is
15986 responsible for initializing this register with an appropriate value
15987 before execution begins.
15988 .IP "\fB\-mpic\-register=\fR\fIreg\fR" 4
15989 .IX Item "-mpic-register=reg"
15990 Specify the register to be used for \s-1PIC\s0 addressing.
15991 For standard \s-1PIC\s0 base case, the default is any suitable register
15992 determined by compiler.  For single \s-1PIC\s0 base case, the default is
15993 \&\fBR9\fR if target is \s-1EABI\s0 based or stack-checking is enabled,
15994 otherwise the default is \fBR10\fR.
15995 .IP "\fB\-mpic\-data\-is\-text\-relative\fR" 4
15996 .IX Item "-mpic-data-is-text-relative"
15997 Assume that the displacement between the text and data segments is fixed
15998 at static link time.  This permits using PC-relative addressing
15999 operations to access data known to be in the data segment.  For
16000 non-VxWorks \s-1RTP\s0 targets, this option is enabled by default.  When
16001 disabled on such targets, it will enable \fB\-msingle\-pic\-base\fR by
16002 default.
16003 .IP "\fB\-mpoke\-function\-name\fR" 4
16004 .IX Item "-mpoke-function-name"
16005 Write the name of each function into the text section, directly
16006 preceding the function prologue.  The generated code is similar to this:
16007 .Sp
16008 .Vb 9
16009 \&             t0
16010 \&                 .ascii "arm_poke_function_name", 0
16011 \&                 .align
16012 \&             t1
16013 \&                 .word 0xff000000 + (t1 \- t0)
16014 \&             arm_poke_function_name
16015 \&                 mov     ip, sp
16016 \&                 stmfd   sp!, {fp, ip, lr, pc}
16017 \&                 sub     fp, ip, #4
16018 .Ve
16019 .Sp
16020 When performing a stack backtrace, code can inspect the value of
16021 \&\f(CW\*(C`pc\*(C'\fR stored at \f(CW\*(C`fp + 0\*(C'\fR.  If the trace function then looks at
16022 location \f(CW\*(C`pc \- 12\*(C'\fR and the top 8 bits are set, then we know that
16023 there is a function name embedded immediately preceding this location
16024 and has length \f(CW\*(C`((pc[\-3]) & 0xff000000)\*(C'\fR.
16025 .IP "\fB\-mthumb\fR" 4
16026 .IX Item "-mthumb"
16027 .PD 0
16028 .IP "\fB\-marm\fR" 4
16029 .IX Item "-marm"
16030 .PD
16031 Select between generating code that executes in \s-1ARM\s0 and Thumb
16032 states.  The default for most configurations is to generate code
16033 that executes in \s-1ARM\s0 state, but the default can be changed by
16034 configuring \s-1GCC\s0 with the \fB\-\-with\-mode=\fR\fIstate\fR
16035 configure option.
16036 .Sp
16037 You can also override the \s-1ARM\s0 and Thumb mode for each function
16038 by using the \f(CW\*(C`target("thumb")\*(C'\fR and \f(CW\*(C`target("arm")\*(C'\fR function attributes or pragmas.
16039 .IP "\fB\-mflip\-thumb\fR" 4
16040 .IX Item "-mflip-thumb"
16041 Switch ARM/Thumb modes on alternating functions.
16042 This option is provided for regression testing of mixed Thumb/ARM code
16043 generation, and is not intended for ordinary use in compiling code.
16044 .IP "\fB\-mtpcs\-frame\fR" 4
16045 .IX Item "-mtpcs-frame"
16046 Generate a stack frame that is compliant with the Thumb Procedure Call
16047 Standard for all non-leaf functions.  (A leaf function is one that does
16048 not call any other functions.)  The default is \fB\-mno\-tpcs\-frame\fR.
16049 .IP "\fB\-mtpcs\-leaf\-frame\fR" 4
16050 .IX Item "-mtpcs-leaf-frame"
16051 Generate a stack frame that is compliant with the Thumb Procedure Call
16052 Standard for all leaf functions.  (A leaf function is one that does
16053 not call any other functions.)  The default is \fB\-mno\-apcs\-leaf\-frame\fR.
16054 .IP "\fB\-mcallee\-super\-interworking\fR" 4
16055 .IX Item "-mcallee-super-interworking"
16056 Gives all externally visible functions in the file being compiled an \s-1ARM\s0
16057 instruction set header which switches to Thumb mode before executing the
16058 rest of the function.  This allows these functions to be called from
16059 non-interworking code.  This option is not valid in \s-1AAPCS\s0 configurations
16060 because interworking is enabled by default.
16061 .IP "\fB\-mcaller\-super\-interworking\fR" 4
16062 .IX Item "-mcaller-super-interworking"
16063 Allows calls via function pointers (including virtual functions) to
16064 execute correctly regardless of whether the target code has been
16065 compiled for interworking or not.  There is a small overhead in the cost
16066 of executing a function pointer if this option is enabled.  This option
16067 is not valid in \s-1AAPCS\s0 configurations because interworking is enabled
16068 by default.
16069 .IP "\fB\-mtp=\fR\fIname\fR" 4
16070 .IX Item "-mtp=name"
16071 Specify the access model for the thread local storage pointer.  The valid
16072 models are \fBsoft\fR, which generates calls to \f(CW\*(C`_\|_aeabi_read_tp\*(C'\fR,
16073 \&\fBcp15\fR, which fetches the thread pointer from \f(CW\*(C`cp15\*(C'\fR directly
16074 (supported in the arm6k architecture), and \fBauto\fR, which uses the
16075 best available method for the selected processor.  The default setting is
16076 \&\fBauto\fR.
16077 .IP "\fB\-mtls\-dialect=\fR\fIdialect\fR" 4
16078 .IX Item "-mtls-dialect=dialect"
16079 Specify the dialect to use for accessing thread local storage.  Two
16080 \&\fIdialect\fRs are supported\-\-\-\fBgnu\fR and \fBgnu2\fR.  The
16081 \&\fBgnu\fR dialect selects the original \s-1GNU\s0 scheme for supporting
16082 local and global dynamic \s-1TLS\s0 models.  The \fBgnu2\fR dialect
16083 selects the \s-1GNU\s0 descriptor scheme, which provides better performance
16084 for shared libraries.  The \s-1GNU\s0 descriptor scheme is compatible with
16085 the original scheme, but does require new assembler, linker and
16086 library support.  Initial and local exec \s-1TLS\s0 models are unaffected by
16087 this option and always use the original scheme.
16088 .IP "\fB\-mword\-relocations\fR" 4
16089 .IX Item "-mword-relocations"
16090 Only generate absolute relocations on word-sized values (i.e. R_ARM_ABS32).
16091 This is enabled by default on targets (uClinux, SymbianOS) where the runtime
16092 loader imposes this restriction, and when \fB\-fpic\fR or \fB\-fPIC\fR
16093 is specified.
16094 .IP "\fB\-mfix\-cortex\-m3\-ldrd\fR" 4
16095 .IX Item "-mfix-cortex-m3-ldrd"
16096 Some Cortex\-M3 cores can cause data corruption when \f(CW\*(C`ldrd\*(C'\fR instructions
16097 with overlapping destination and base registers are used.  This option avoids
16098 generating these instructions.  This option is enabled by default when
16099 \&\fB\-mcpu=cortex\-m3\fR is specified.
16100 .IP "\fB\-munaligned\-access\fR" 4
16101 .IX Item "-munaligned-access"
16102 .PD 0
16103 .IP "\fB\-mno\-unaligned\-access\fR" 4
16104 .IX Item "-mno-unaligned-access"
16105 .PD
16106 Enables (or disables) reading and writing of 16\- and 32\- bit values
16107 from addresses that are not 16\- or 32\- bit aligned.  By default
16108 unaligned access is disabled for all pre\-ARMv6, all ARMv6\-M and for
16109 ARMv8\-M Baseline architectures, and enabled for all other
16110 architectures.  If unaligned access is not enabled then words in packed
16111 data structures are accessed a byte at a time.
16112 .Sp
16113 The \s-1ARM\s0 attribute \f(CW\*(C`Tag_CPU_unaligned_access\*(C'\fR is set in the
16114 generated object file to either true or false, depending upon the
16115 setting of this option.  If unaligned access is enabled then the
16116 preprocessor symbol \f(CW\*(C`_\|_ARM_FEATURE_UNALIGNED\*(C'\fR is also
16117 defined.
16118 .IP "\fB\-mneon\-for\-64bits\fR" 4
16119 .IX Item "-mneon-for-64bits"
16120 Enables using Neon to handle scalar 64\-bits operations. This is
16121 disabled by default since the cost of moving data from core registers
16122 to Neon is high.
16123 .IP "\fB\-mslow\-flash\-data\fR" 4
16124 .IX Item "-mslow-flash-data"
16125 Assume loading data from flash is slower than fetching instruction.
16126 Therefore literal load is minimized for better performance.
16127 This option is only supported when compiling for ARMv7 M\-profile and
16128 off by default.
16129 .IP "\fB\-masm\-syntax\-unified\fR" 4
16130 .IX Item "-masm-syntax-unified"
16131 Assume inline assembler is using unified asm syntax.  The default is
16132 currently off which implies divided syntax.  This option has no impact
16133 on Thumb2. However, this may change in future releases of \s-1GCC.\s0
16134 Divided syntax should be considered deprecated.
16135 .IP "\fB\-mrestrict\-it\fR" 4
16136 .IX Item "-mrestrict-it"
16137 Restricts generation of \s-1IT\s0 blocks to conform to the rules of ARMv8\-A.
16138 \&\s-1IT\s0 blocks can only contain a single 16\-bit instruction from a select
16139 set of instructions. This option is on by default for ARMv8\-A Thumb mode.
16140 .IP "\fB\-mprint\-tune\-info\fR" 4
16141 .IX Item "-mprint-tune-info"
16142 Print \s-1CPU\s0 tuning information as comment in assembler file.  This is
16143 an option used only for regression testing of the compiler and not
16144 intended for ordinary use in compiling code.  This option is disabled
16145 by default.
16146 .IP "\fB\-mverbose\-cost\-dump\fR" 4
16147 .IX Item "-mverbose-cost-dump"
16148 Enable verbose cost model dumping in the debug dump files.  This option is
16149 provided for use in debugging the compiler.
16150 .IP "\fB\-mpure\-code\fR" 4
16151 .IX Item "-mpure-code"
16152 Do not allow constant data to be placed in code sections.
16153 Additionally, when compiling for \s-1ELF\s0 object format give all text sections the
16154 \&\s-1ELF\s0 processor-specific section attribute \f(CW\*(C`SHF_ARM_PURECODE\*(C'\fR.  This option
16155 is only available when generating non-pic code for M\-profile targets with the
16156 \&\s-1MOVT\s0 instruction.
16157 .IP "\fB\-mcmse\fR" 4
16158 .IX Item "-mcmse"
16159 Generate secure code as per the \*(L"ARMv8\-M Security Extensions: Requirements on
16160 Development Tools Engineering Specification\*(R", which can be found on
16161 <\fBhttp://infocenter.arm.com/help/topic/com.arm.doc.ecm0359818/ECM0359818_armv8m_security_extensions_reqs_on_dev_tools_1_0.pdf\fR>.
16162 .PP
16163 \fI\s-1AVR\s0 Options\fR
16164 .IX Subsection "AVR Options"
16165 .PP
16166 These options are defined for \s-1AVR\s0 implementations:
16167 .IP "\fB\-mmcu=\fR\fImcu\fR" 4
16168 .IX Item "-mmcu=mcu"
16169 Specify Atmel \s-1AVR\s0 instruction set architectures (\s-1ISA\s0) or \s-1MCU\s0 type.
16170 .Sp
16171 The default for this option is@tie{}\fBavr2\fR.
16172 .Sp
16173 \&\s-1GCC\s0 supports the following \s-1AVR\s0 devices and ISAs:
16174 .RS 4
16175 .ie n .IP """avr2""" 4
16176 .el .IP "\f(CWavr2\fR" 4
16177 .IX Item "avr2"
16178 \&\*(L"Classic\*(R" devices with up to 8@tie{}KiB of program memory.
16179 \&\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.
16180 .ie n .IP """avr25""" 4
16181 .el .IP "\f(CWavr25\fR" 4
16182 .IX Item "avr25"
16183 \&\*(L"Classic\*(R" devices with up to 8@tie{}KiB of program memory and with the \f(CW\*(C`MOVW\*(C'\fR instruction.
16184 \&\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.
16185 .ie n .IP """avr3""" 4
16186 .el .IP "\f(CWavr3\fR" 4
16187 .IX Item "avr3"
16188 \&\*(L"Classic\*(R" devices with 16@tie{}KiB up to 64@tie{}KiB of  program memory.
16189 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`at43usb355\*(C'\fR, \f(CW\*(C`at76c711\*(C'\fR.
16190 .ie n .IP """avr31""" 4
16191 .el .IP "\f(CWavr31\fR" 4
16192 .IX Item "avr31"
16193 \&\*(L"Classic\*(R" devices with 128@tie{}KiB of program memory.
16194 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atmega103\*(C'\fR, \f(CW\*(C`at43usb320\*(C'\fR.
16195 .ie n .IP """avr35""" 4
16196 .el .IP "\f(CWavr35\fR" 4
16197 .IX Item "avr35"
16198 \&\*(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.
16199 \&\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.
16200 .ie n .IP """avr4""" 4
16201 .el .IP "\f(CWavr4\fR" 4
16202 .IX Item "avr4"
16203 \&\*(L"Enhanced\*(R" devices with up to 8@tie{}KiB of program memory.
16204 \&\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`atmega48pb\*(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`atmega88pb\*(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.
16205 .ie n .IP """avr5""" 4
16206 .el .IP "\f(CWavr5\fR" 4
16207 .IX Item "avr5"
16208 \&\*(L"Enhanced\*(R" devices with 16@tie{}KiB up to 64@tie{}KiB of program memory.
16209 \&\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`ata5791\*(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`ata8210\*(C'\fR, \f(CW\*(C`ata8510\*(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`atmega168pb\*(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`atmega328pb\*(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.
16210 .ie n .IP """avr51""" 4
16211 .el .IP "\f(CWavr51\fR" 4
16212 .IX Item "avr51"
16213 \&\*(L"Enhanced\*(R" devices with 128@tie{}KiB of program memory.
16214 \&\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.
16215 .ie n .IP """avr6""" 4
16216 .el .IP "\f(CWavr6\fR" 4
16217 .IX Item "avr6"
16218 \&\*(L"Enhanced\*(R" devices with 3\-byte \s-1PC,\s0 i.e. with more than 128@tie{}KiB of program memory.
16219 \&\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.
16220 .ie n .IP """avrxmega2""" 4
16221 .el .IP "\f(CWavrxmega2\fR" 4
16222 .IX Item "avrxmega2"
16223 \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 8@tie{}KiB and up to 64@tie{}KiB of program memory.
16224 \&\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.
16225 .ie n .IP """avrxmega3""" 4
16226 .el .IP "\f(CWavrxmega3\fR" 4
16227 .IX Item "avrxmega3"
16228 \&\*(L"\s-1XMEGA\*(R"\s0 devices with up to 64@tie{}KiB of combined program memory and \s-1RAM,\s0 and with program memory visible in the \s-1RAM\s0 address space.
16229 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`attiny1614\*(C'\fR, \f(CW\*(C`attiny1616\*(C'\fR, \f(CW\*(C`attiny1617\*(C'\fR, \f(CW\*(C`attiny212\*(C'\fR, \f(CW\*(C`attiny214\*(C'\fR, \f(CW\*(C`attiny3214\*(C'\fR, \f(CW\*(C`attiny3216\*(C'\fR, \f(CW\*(C`attiny3217\*(C'\fR, \f(CW\*(C`attiny412\*(C'\fR, \f(CW\*(C`attiny414\*(C'\fR, \f(CW\*(C`attiny416\*(C'\fR, \f(CW\*(C`attiny417\*(C'\fR, \f(CW\*(C`attiny814\*(C'\fR, \f(CW\*(C`attiny816\*(C'\fR, \f(CW\*(C`attiny817\*(C'\fR.
16230 .ie n .IP """avrxmega4""" 4
16231 .el .IP "\f(CWavrxmega4\fR" 4
16232 .IX Item "avrxmega4"
16233 \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 64@tie{}KiB and up to 128@tie{}KiB of program memory.
16234 \&\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.
16235 .ie n .IP """avrxmega5""" 4
16236 .el .IP "\f(CWavrxmega5\fR" 4
16237 .IX Item "avrxmega5"
16238 \&\*(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.\s0
16239 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atxmega64a1\*(C'\fR, \f(CW\*(C`atxmega64a1u\*(C'\fR.
16240 .ie n .IP """avrxmega6""" 4
16241 .el .IP "\f(CWavrxmega6\fR" 4
16242 .IX Item "avrxmega6"
16243 \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 128@tie{}KiB of program memory.
16244 \&\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.
16245 .ie n .IP """avrxmega7""" 4
16246 .el .IP "\f(CWavrxmega7\fR" 4
16247 .IX Item "avrxmega7"
16248 \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 128@tie{}KiB of program memory and more than 64@tie{}KiB of \s-1RAM.\s0
16249 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atxmega128a1\*(C'\fR, \f(CW\*(C`atxmega128a1u\*(C'\fR, \f(CW\*(C`atxmega128a4u\*(C'\fR.
16250 .ie n .IP """avrtiny""" 4
16251 .el .IP "\f(CWavrtiny\fR" 4
16252 .IX Item "avrtiny"
16253 \&\*(L"\s-1TINY\*(R"\s0 Tiny core devices with 512@tie{}B up to 4@tie{}KiB of program memory.
16254 \&\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.
16255 .ie n .IP """avr1""" 4
16256 .el .IP "\f(CWavr1\fR" 4
16257 .IX Item "avr1"
16258 This \s-1ISA\s0 is implemented by the minimal \s-1AVR\s0 core and supported for assembler only.
16259 \&\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.
16260 .RE
16261 .RS 4
16262 .RE
16263 .IP "\fB\-mabsdata\fR" 4
16264 .IX Item "-mabsdata"
16265 Assume that all data in static storage can be accessed by \s-1LDS / STS\s0
16266 instructions.  This option has only an effect on reduced Tiny devices like
16267 ATtiny40.  See also the \f(CW\*(C`absdata\*(C'\fR
16268 \&\fB\s-1AVR\s0 Variable Attributes,variable attribute\fR.
16269 .IP "\fB\-maccumulate\-args\fR" 4
16270 .IX Item "-maccumulate-args"
16271 Accumulate outgoing function arguments and acquire/release the needed
16272 stack space for outgoing function arguments once in function
16273 prologue/epilogue.  Without this option, outgoing arguments are pushed
16274 before calling a function and popped afterwards.
16275 .Sp
16276 Popping the arguments after the function call can be expensive on
16277 \&\s-1AVR\s0 so that accumulating the stack space might lead to smaller
16278 executables because arguments need not be removed from the
16279 stack after such a function call.
16280 .Sp
16281 This option can lead to reduced code size for functions that perform
16282 several calls to functions that get their arguments on the stack like
16283 calls to printf-like functions.
16284 .IP "\fB\-mbranch\-cost=\fR\fIcost\fR" 4
16285 .IX Item "-mbranch-cost=cost"
16286 Set the branch costs for conditional branch instructions to
16287 \&\fIcost\fR.  Reasonable values for \fIcost\fR are small, non-negative
16288 integers. The default branch cost is 0.
16289 .IP "\fB\-mcall\-prologues\fR" 4
16290 .IX Item "-mcall-prologues"
16291 Functions prologues/epilogues are expanded as calls to appropriate
16292 subroutines.  Code size is smaller.
16293 .IP "\fB\-mgas\-isr\-prologues\fR" 4
16294 .IX Item "-mgas-isr-prologues"
16295 Interrupt service routines (ISRs) may use the \f(CW\*(C`_\|_gcc_isr\*(C'\fR pseudo
16296 instruction supported by \s-1GNU\s0 Binutils.
16297 If this option is on, the feature can still be disabled for individual
16298 ISRs by means of the \fB\s-1AVR\s0 Function Attributes,,\f(CB\*(C`no_gccisr\*(C'\fB\fR
16299 function attribute.  This feature is activated per default
16300 if optimization is on (but not with \fB\-Og\fR, \f(CW@pxref\fR{Optimize Options}),
16301 and if \s-1GNU\s0 Binutils support \s-1PR21683\s0 (\f(CW\*(C`https://sourceware.org/PR21683\*(C'\fR).
16302 .IP "\fB\-mint8\fR" 4
16303 .IX Item "-mint8"
16304 Assume \f(CW\*(C`int\*(C'\fR to be 8\-bit integer.  This affects the sizes of all types: a
16305 \&\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,
16306 and \f(CW\*(C`long long\*(C'\fR is 4 bytes.  Please note that this option does not
16307 conform to the C standards, but it results in smaller code
16308 size.
16309 .IP "\fB\-mmain\-is\-OS_task\fR" 4
16310 .IX Item "-mmain-is-OS_task"
16311 Do not save registers in \f(CW\*(C`main\*(C'\fR.  The effect is the same like
16312 attaching attribute \fB\s-1AVR\s0 Function Attributes,,\f(CB\*(C`OS_task\*(C'\fB\fR
16313 to \f(CW\*(C`main\*(C'\fR. It is activated per default if optimization is on.
16314 .IP "\fB\-mn\-flash=\fR\fInum\fR" 4
16315 .IX Item "-mn-flash=num"
16316 Assume that the flash memory has a size of 
16317 \&\fInum\fR times 64@tie{}KiB.
16318 .IP "\fB\-mno\-interrupts\fR" 4
16319 .IX Item "-mno-interrupts"
16320 Generated code is not compatible with hardware interrupts.
16321 Code size is smaller.
16322 .IP "\fB\-mrelax\fR" 4
16323 .IX Item "-mrelax"
16324 Try to replace \f(CW\*(C`CALL\*(C'\fR resp. \f(CW\*(C`JMP\*(C'\fR instruction by the shorter
16325 \&\f(CW\*(C`RCALL\*(C'\fR resp. \f(CW\*(C`RJMP\*(C'\fR instruction if applicable.
16326 Setting \fB\-mrelax\fR just adds the \fB\-\-mlink\-relax\fR option to
16327 the assembler's command line and the \fB\-\-relax\fR option to the
16328 linker's command line.
16329 .Sp
16330 Jump relaxing is performed by the linker because jump offsets are not
16331 known before code is located. Therefore, the assembler code generated by the
16332 compiler is the same, but the instructions in the executable may
16333 differ from instructions in the assembler code.
16334 .Sp
16335 Relaxing must be turned on if linker stubs are needed, see the
16336 section on \f(CW\*(C`EIND\*(C'\fR and linker stubs below.
16337 .IP "\fB\-mrmw\fR" 4
16338 .IX Item "-mrmw"
16339 Assume that the device supports the Read-Modify-Write
16340 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.
16341 .IP "\fB\-mshort\-calls\fR" 4
16342 .IX Item "-mshort-calls"
16343 Assume that \f(CW\*(C`RJMP\*(C'\fR and \f(CW\*(C`RCALL\*(C'\fR can target the whole
16344 program memory.
16345 .Sp
16346 This option is used internally for multilib selection.  It is
16347 not an optimization option, and you don't need to set it by hand.
16348 .IP "\fB\-msp8\fR" 4
16349 .IX Item "-msp8"
16350 Treat the stack pointer register as an 8\-bit register,
16351 i.e. assume the high byte of the stack pointer is zero.
16352 In general, you don't need to set this option by hand.
16353 .Sp
16354 This option is used internally by the compiler to select and
16355 build multilibs for architectures \f(CW\*(C`avr2\*(C'\fR and \f(CW\*(C`avr25\*(C'\fR.
16356 These architectures mix devices with and without \f(CW\*(C`SPH\*(C'\fR.
16357 For any setting other than \fB\-mmcu=avr2\fR or \fB\-mmcu=avr25\fR
16358 the compiler driver adds or removes this option from the compiler
16359 proper's command line, because the compiler then knows if the device
16360 or architecture has an 8\-bit stack pointer and thus no \f(CW\*(C`SPH\*(C'\fR
16361 register or not.
16362 .IP "\fB\-mstrict\-X\fR" 4
16363 .IX Item "-mstrict-X"
16364 Use address register \f(CW\*(C`X\*(C'\fR in a way proposed by the hardware.  This means
16365 that \f(CW\*(C`X\*(C'\fR is only used in indirect, post-increment or
16366 pre-decrement addressing.
16367 .Sp
16368 Without this option, the \f(CW\*(C`X\*(C'\fR register may be used in the same way
16369 as \f(CW\*(C`Y\*(C'\fR or \f(CW\*(C`Z\*(C'\fR which then is emulated by additional
16370 instructions.  
16371 For example, loading a value with \f(CW\*(C`X+const\*(C'\fR addressing with a
16372 small non-negative \f(CW\*(C`const < 64\*(C'\fR to a register \fIRn\fR is
16373 performed as
16374 .Sp
16375 .Vb 3
16376 \&        adiw r26, const   ; X += const
16377 \&        ld   <Rn>, X        ; <Rn> = *X
16378 \&        sbiw r26, const   ; X \-= const
16379 .Ve
16380 .IP "\fB\-mtiny\-stack\fR" 4
16381 .IX Item "-mtiny-stack"
16382 Only change the lower 8@tie{}bits of the stack pointer.
16383 .IP "\fB\-mfract\-convert\-truncate\fR" 4
16384 .IX Item "-mfract-convert-truncate"
16385 Allow to use truncation instead of rounding towards zero for fractional fixed-point types.
16386 .IP "\fB\-nodevicelib\fR" 4
16387 .IX Item "-nodevicelib"
16388 Don't link against AVR-LibC's device specific library \f(CW\*(C`lib<mcu>.a\*(C'\fR.
16389 .IP "\fB\-Waddr\-space\-convert\fR" 4
16390 .IX Item "-Waddr-space-convert"
16391 Warn about conversions between address spaces in the case where the
16392 resulting address space is not contained in the incoming address space.
16393 .IP "\fB\-Wmisspelled\-isr\fR" 4
16394 .IX Item "-Wmisspelled-isr"
16395 Warn if the \s-1ISR\s0 is misspelled, i.e. without _\|_vector prefix.
16396 Enabled by default.
16397 .PP
16398 \f(CW\*(C`EIND\*(C'\fR and Devices with More Than 128 Ki Bytes of Flash
16399 .IX Subsection "EIND and Devices with More Than 128 Ki Bytes of Flash"
16400 .PP
16401 Pointers in the implementation are 16@tie{}bits wide.
16402 The address of a function or label is represented as word address so
16403 that indirect jumps and calls can target any code address in the
16404 range of 64@tie{}Ki words.
16405 .PP
16406 In order to facilitate indirect jump on devices with more than 128@tie{}Ki
16407 bytes of program memory space, there is a special function register called
16408 \&\f(CW\*(C`EIND\*(C'\fR that serves as most significant part of the target address
16409 when \f(CW\*(C`EICALL\*(C'\fR or \f(CW\*(C`EIJMP\*(C'\fR instructions are used.
16410 .PP
16411 Indirect jumps and calls on these devices are handled as follows by
16412 the compiler and are subject to some limitations:
16413 .IP "*" 4
16414 The compiler never sets \f(CW\*(C`EIND\*(C'\fR.
16415 .IP "*" 4
16416 The compiler uses \f(CW\*(C`EIND\*(C'\fR implicitly in \f(CW\*(C`EICALL\*(C'\fR/\f(CW\*(C`EIJMP\*(C'\fR
16417 instructions or might read \f(CW\*(C`EIND\*(C'\fR directly in order to emulate an
16418 indirect call/jump by means of a \f(CW\*(C`RET\*(C'\fR instruction.
16419 .IP "*" 4
16420 The compiler assumes that \f(CW\*(C`EIND\*(C'\fR never changes during the startup
16421 code or during the application. In particular, \f(CW\*(C`EIND\*(C'\fR is not
16422 saved/restored in function or interrupt service routine
16423 prologue/epilogue.
16424 .IP "*" 4
16425 For indirect calls to functions and computed goto, the linker
16426 generates \fIstubs\fR. Stubs are jump pads sometimes also called
16427 \&\fItrampolines\fR. Thus, the indirect call/jump jumps to such a stub.
16428 The stub contains a direct jump to the desired address.
16429 .IP "*" 4
16430 Linker relaxation must be turned on so that the linker generates
16431 the stubs correctly in all situations. See the compiler option
16432 \&\fB\-mrelax\fR and the linker option \fB\-\-relax\fR.
16433 There are corner cases where the linker is supposed to generate stubs
16434 but aborts without relaxation and without a helpful error message.
16435 .IP "*" 4
16436 The default linker script is arranged for code with \f(CW\*(C`EIND = 0\*(C'\fR.
16437 If code is supposed to work for a setup with \f(CW\*(C`EIND != 0\*(C'\fR, a custom
16438 linker script has to be used in order to place the sections whose
16439 name start with \f(CW\*(C`.trampolines\*(C'\fR into the segment where \f(CW\*(C`EIND\*(C'\fR
16440 points to.
16441 .IP "*" 4
16442 The startup code from libgcc never sets \f(CW\*(C`EIND\*(C'\fR.
16443 Notice that startup code is a blend of code from libgcc and AVR-LibC.
16444 For the impact of AVR-LibC on \f(CW\*(C`EIND\*(C'\fR, see the
16445 AVR-LibC\ user\ manual (\f(CW\*(C`http://nongnu.org/avr\-libc/user\-manual/\*(C'\fR).
16446 .IP "*" 4
16447 It is legitimate for user-specific startup code to set up \f(CW\*(C`EIND\*(C'\fR
16448 early, for example by means of initialization code located in
16449 section \f(CW\*(C`.init3\*(C'\fR. Such code runs prior to general startup code
16450 that initializes \s-1RAM\s0 and calls constructors, but after the bit
16451 of startup code from AVR-LibC that sets \f(CW\*(C`EIND\*(C'\fR to the segment
16452 where the vector table is located.
16453 .Sp
16454 .Vb 1
16455 \&        #include <avr/io.h>
16456 \&        
16457 \&        static void
16458 \&        _\|_attribute_\|_((section(".init3"),naked,used,no_instrument_function))
16459 \&        init3_set_eind (void)
16460 \&        {
16461 \&          _\|_asm volatile ("ldi r24,pm_hh8(_\|_trampolines_start)\en\et"
16462 \&                          "out %i0,r24" :: "n" (&EIND) : "r24","memory");
16463 \&        }
16464 .Ve
16465 .Sp
16466 The \f(CW\*(C`_\|_trampolines_start\*(C'\fR symbol is defined in the linker script.
16467 .IP "*" 4
16468 Stubs are generated automatically by the linker if
16469 the following two conditions are met:
16470 .RS 4
16471 .ie n .IP "\-<The address of a label is taken by means of the ""gs"" modifier>" 4
16472 .el .IP "\-<The address of a label is taken by means of the \f(CWgs\fR modifier>" 4
16473 .IX Item "-<The address of a label is taken by means of the gs modifier>"
16474 (short for \fIgenerate stubs\fR) like so:
16475 .Sp
16476 .Vb 2
16477 \&        LDI r24, lo8(gs(<func>))
16478 \&        LDI r25, hi8(gs(<func>))
16479 .Ve
16480 .IP "\-<The final location of that label is in a code segment>" 4
16481 .IX Item "-<The final location of that label is in a code segment>"
16482 \&\fIoutside\fR the segment where the stubs are located.
16483 .RE
16484 .RS 4
16485 .RE
16486 .IP "*" 4
16487 The compiler emits such \f(CW\*(C`gs\*(C'\fR modifiers for code labels in the
16488 following situations:
16489 .RS 4
16490 .IP "\-<Taking address of a function or code label.>" 4
16491 .IX Item "-<Taking address of a function or code label.>"
16492 .PD 0
16493 .IP "\-<Computed goto.>" 4
16494 .IX Item "-<Computed goto.>"
16495 .IP "\-<If prologue-save function is used, see \fB\-mcall\-prologues\fR>" 4
16496 .IX Item "-<If prologue-save function is used, see -mcall-prologues>"
16497 .PD
16498 command-line option.
16499 .IP "\-<Switch/case dispatch tables. If you do not want such dispatch>" 4
16500 .IX Item "-<Switch/case dispatch tables. If you do not want such dispatch>"
16501 tables you can specify the \fB\-fno\-jump\-tables\fR command-line option.
16502 .IP "\-<C and \*(C+ constructors/destructors called during startup/shutdown.>" 4
16503 .IX Item "-<C and constructors/destructors called during startup/shutdown.>"
16504 .PD 0
16505 .ie n .IP "\-<If the tools hit a ""gs()"" modifier explained above.>" 4
16506 .el .IP "\-<If the tools hit a \f(CWgs()\fR modifier explained above.>" 4
16507 .IX Item "-<If the tools hit a gs() modifier explained above.>"
16508 .RE
16509 .RS 4
16510 .RE
16511 .IP "*" 4
16512 .PD
16513 Jumping to non-symbolic addresses like so is \fInot\fR supported:
16514 .Sp
16515 .Vb 5
16516 \&        int main (void)
16517 \&        {
16518 \&            /* Call function at word address 0x2 */
16519 \&            return ((int(*)(void)) 0x2)();
16520 \&        }
16521 .Ve
16522 .Sp
16523 Instead, a stub has to be set up, i.e. the function has to be called
16524 through a symbol (\f(CW\*(C`func_4\*(C'\fR in the example):
16525 .Sp
16526 .Vb 3
16527 \&        int main (void)
16528 \&        {
16529 \&            extern int func_4 (void);
16530 \&        
16531 \&            /* Call function at byte address 0x4 */
16532 \&            return func_4();
16533 \&        }
16534 .Ve
16535 .Sp
16536 and the application be linked with \fB\-Wl,\-\-defsym,func_4=0x4\fR.
16537 Alternatively, \f(CW\*(C`func_4\*(C'\fR can be defined in the linker script.
16538 .PP
16539 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
16540 .IX Subsection "Handling of the RAMPD, RAMPX, RAMPY and RAMPZ Special Function Registers"
16541 .PP
16542 Some \s-1AVR\s0 devices support memories larger than the 64@tie{}KiB range
16543 that can be accessed with 16\-bit pointers.  To access memory locations
16544 outside this 64@tie{}KiB range, the content of a \f(CW\*(C`RAMP\*(C'\fR
16545 register is used as high part of the address:
16546 The \f(CW\*(C`X\*(C'\fR, \f(CW\*(C`Y\*(C'\fR, \f(CW\*(C`Z\*(C'\fR address register is concatenated
16547 with the \f(CW\*(C`RAMPX\*(C'\fR, \f(CW\*(C`RAMPY\*(C'\fR, \f(CW\*(C`RAMPZ\*(C'\fR special function
16548 register, respectively, to get a wide address. Similarly,
16549 \&\f(CW\*(C`RAMPD\*(C'\fR is used together with direct addressing.
16550 .IP "*" 4
16551 The startup code initializes the \f(CW\*(C`RAMP\*(C'\fR special function
16552 registers with zero.
16553 .IP "*" 4
16554 If a \fB\s-1AVR\s0 Named Address Spaces,named address space\fR other than
16555 generic or \f(CW\*(C`_\|_flash\*(C'\fR is used, then \f(CW\*(C`RAMPZ\*(C'\fR is set
16556 as needed before the operation.
16557 .IP "*" 4
16558 If the device supports \s-1RAM\s0 larger than 64@tie{}KiB and the compiler
16559 needs to change \f(CW\*(C`RAMPZ\*(C'\fR to accomplish an operation, \f(CW\*(C`RAMPZ\*(C'\fR
16560 is reset to zero after the operation.
16561 .IP "*" 4
16562 If the device comes with a specific \f(CW\*(C`RAMP\*(C'\fR register, the \s-1ISR\s0
16563 prologue/epilogue saves/restores that \s-1SFR\s0 and initializes it with
16564 zero in case the \s-1ISR\s0 code might (implicitly) use it.
16565 .IP "*" 4
16566 \&\s-1RAM\s0 larger than 64@tie{}KiB is not supported by \s-1GCC\s0 for \s-1AVR\s0 targets.
16567 If you use inline assembler to read from locations outside the
16568 16\-bit address range and change one of the \f(CW\*(C`RAMP\*(C'\fR registers,
16569 you must reset it to zero after the access.
16570 .PP
16571 \s-1AVR\s0 Built-in Macros
16572 .IX Subsection "AVR Built-in Macros"
16573 .PP
16574 \&\s-1GCC\s0 defines several built-in macros so that the user code can test
16575 for the presence or absence of features.  Almost any of the following
16576 built-in macros are deduced from device capabilities and thus
16577 triggered by the \fB\-mmcu=\fR command-line option.
16578 .PP
16579 For even more AVR-specific built-in macros see
16580 \&\fB\s-1AVR\s0 Named Address Spaces\fR and \fB\s-1AVR\s0 Built-in Functions\fR.
16581 .ie n .IP """_\|_AVR_ARCH_\|_""" 4
16582 .el .IP "\f(CW_\|_AVR_ARCH_\|_\fR" 4
16583 .IX Item "__AVR_ARCH__"
16584 Build-in macro that resolves to a decimal number that identifies the
16585 architecture and depends on the \fB\-mmcu=\fR\fImcu\fR option.
16586 Possible values are:
16587 .Sp
16588 \&\f(CW2\fR, \f(CW25\fR, \f(CW3\fR, \f(CW31\fR, \f(CW35\fR,
16589 \&\f(CW4\fR, \f(CW5\fR, \f(CW51\fR, \f(CW6\fR
16590 .Sp
16591 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,
16592 \&\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,
16593 .Sp
16594 respectively and
16595 .Sp
16596 \&\f(CW100\fR,
16597 \&\f(CW102\fR, \f(CW103\fR, \f(CW104\fR,
16598 \&\f(CW105\fR, \f(CW106\fR, \f(CW107\fR
16599 .Sp
16600 for \fImcu\fR=\f(CW\*(C`avrtiny\*(C'\fR,
16601 \&\f(CW\*(C`avrxmega2\*(C'\fR, \f(CW\*(C`avrxmega3\*(C'\fR, \f(CW\*(C`avrxmega4\*(C'\fR,
16602 \&\f(CW\*(C`avrxmega5\*(C'\fR, \f(CW\*(C`avrxmega6\*(C'\fR, \f(CW\*(C`avrxmega7\*(C'\fR, respectively.
16603 If \fImcu\fR specifies a device, this built-in macro is set
16604 accordingly. For example, with \fB\-mmcu=atmega8\fR the macro is
16605 defined to \f(CW4\fR.
16606 .ie n .IP """_\|_AVR_\fIDevice\fP_\|_""" 4
16607 .el .IP "\f(CW_\|_AVR_\f(CIDevice\f(CW_\|_\fR" 4
16608 .IX Item "__AVR_Device__"
16609 Setting \fB\-mmcu=\fR\fIdevice\fR defines this built-in macro which reflects
16610 the device's name. For example, \fB\-mmcu=atmega8\fR defines the
16611 built-in macro \f(CW\*(C`_\|_AVR_ATmega8_\|_\*(C'\fR, \fB\-mmcu=attiny261a\fR defines
16612 \&\f(CW\*(C`_\|_AVR_ATtiny261A_\|_\*(C'\fR, etc.
16613 .Sp
16614 The built-in macros' names follow
16615 the scheme \f(CW\*(C`_\|_AVR_\f(CIDevice\f(CW_\|_\*(C'\fR where \fIDevice\fR is
16616 the device name as from the \s-1AVR\s0 user manual. The difference between
16617 \&\fIDevice\fR in the built-in macro and \fIdevice\fR in
16618 \&\fB\-mmcu=\fR\fIdevice\fR is that the latter is always lowercase.
16619 .Sp
16620 If \fIdevice\fR is not a device but only a core architecture like
16621 \&\fBavr51\fR, this macro is not defined.
16622 .ie n .IP """_\|_AVR_DEVICE_NAME_\|_""" 4
16623 .el .IP "\f(CW_\|_AVR_DEVICE_NAME_\|_\fR" 4
16624 .IX Item "__AVR_DEVICE_NAME__"
16625 Setting \fB\-mmcu=\fR\fIdevice\fR defines this built-in macro to
16626 the device's name. For example, with \fB\-mmcu=atmega8\fR the macro
16627 is defined to \f(CW\*(C`atmega8\*(C'\fR.
16628 .Sp
16629 If \fIdevice\fR is not a device but only a core architecture like
16630 \&\fBavr51\fR, this macro is not defined.
16631 .ie n .IP """_\|_AVR_XMEGA_\|_""" 4
16632 .el .IP "\f(CW_\|_AVR_XMEGA_\|_\fR" 4
16633 .IX Item "__AVR_XMEGA__"
16634 The device / architecture belongs to the \s-1XMEGA\s0 family of devices.
16635 .ie n .IP """_\|_AVR_HAVE_ELPM_\|_""" 4
16636 .el .IP "\f(CW_\|_AVR_HAVE_ELPM_\|_\fR" 4
16637 .IX Item "__AVR_HAVE_ELPM__"
16638 The device has the \f(CW\*(C`ELPM\*(C'\fR instruction.
16639 .ie n .IP """_\|_AVR_HAVE_ELPMX_\|_""" 4
16640 .el .IP "\f(CW_\|_AVR_HAVE_ELPMX_\|_\fR" 4
16641 .IX Item "__AVR_HAVE_ELPMX__"
16642 The device has the \f(CW\*(C`ELPM R\f(CIn\f(CW,Z\*(C'\fR and \f(CW\*(C`ELPM
16643 R\f(CIn\f(CW,Z+\*(C'\fR instructions.
16644 .ie n .IP """_\|_AVR_HAVE_MOVW_\|_""" 4
16645 .el .IP "\f(CW_\|_AVR_HAVE_MOVW_\|_\fR" 4
16646 .IX Item "__AVR_HAVE_MOVW__"
16647 The device has the \f(CW\*(C`MOVW\*(C'\fR instruction to perform 16\-bit
16648 register-register moves.
16649 .ie n .IP """_\|_AVR_HAVE_LPMX_\|_""" 4
16650 .el .IP "\f(CW_\|_AVR_HAVE_LPMX_\|_\fR" 4
16651 .IX Item "__AVR_HAVE_LPMX__"
16652 The device has the \f(CW\*(C`LPM R\f(CIn\f(CW,Z\*(C'\fR and
16653 \&\f(CW\*(C`LPM R\f(CIn\f(CW,Z+\*(C'\fR instructions.
16654 .ie n .IP """_\|_AVR_HAVE_MUL_\|_""" 4
16655 .el .IP "\f(CW_\|_AVR_HAVE_MUL_\|_\fR" 4
16656 .IX Item "__AVR_HAVE_MUL__"
16657 The device has a hardware multiplier.
16658 .ie n .IP """_\|_AVR_HAVE_JMP_CALL_\|_""" 4
16659 .el .IP "\f(CW_\|_AVR_HAVE_JMP_CALL_\|_\fR" 4
16660 .IX Item "__AVR_HAVE_JMP_CALL__"
16661 The device has the \f(CW\*(C`JMP\*(C'\fR and \f(CW\*(C`CALL\*(C'\fR instructions.
16662 This is the case for devices with more than 8@tie{}KiB of program
16663 memory.
16664 .ie n .IP """_\|_AVR_HAVE_EIJMP_EICALL_\|_""" 4
16665 .el .IP "\f(CW_\|_AVR_HAVE_EIJMP_EICALL_\|_\fR" 4
16666 .IX Item "__AVR_HAVE_EIJMP_EICALL__"
16667 .PD 0
16668 .ie n .IP """_\|_AVR_3_BYTE_PC_\|_""" 4
16669 .el .IP "\f(CW_\|_AVR_3_BYTE_PC_\|_\fR" 4
16670 .IX Item "__AVR_3_BYTE_PC__"
16671 .PD
16672 The device has the \f(CW\*(C`EIJMP\*(C'\fR and \f(CW\*(C`EICALL\*(C'\fR instructions.
16673 This is the case for devices with more than 128@tie{}KiB of program memory.
16674 This also means that the program counter
16675 (\s-1PC\s0) is 3@tie{}bytes wide.
16676 .ie n .IP """_\|_AVR_2_BYTE_PC_\|_""" 4
16677 .el .IP "\f(CW_\|_AVR_2_BYTE_PC_\|_\fR" 4
16678 .IX Item "__AVR_2_BYTE_PC__"
16679 The program counter (\s-1PC\s0) is 2@tie{}bytes wide. This is the case for devices
16680 with up to 128@tie{}KiB of program memory.
16681 .ie n .IP """_\|_AVR_HAVE_8BIT_SP_\|_""" 4
16682 .el .IP "\f(CW_\|_AVR_HAVE_8BIT_SP_\|_\fR" 4
16683 .IX Item "__AVR_HAVE_8BIT_SP__"
16684 .PD 0
16685 .ie n .IP """_\|_AVR_HAVE_16BIT_SP_\|_""" 4
16686 .el .IP "\f(CW_\|_AVR_HAVE_16BIT_SP_\|_\fR" 4
16687 .IX Item "__AVR_HAVE_16BIT_SP__"
16688 .PD
16689 The stack pointer (\s-1SP\s0) register is treated as 8\-bit respectively
16690 16\-bit register by the compiler.
16691 The definition of these macros is affected by \fB\-mtiny\-stack\fR.
16692 .ie n .IP """_\|_AVR_HAVE_SPH_\|_""" 4
16693 .el .IP "\f(CW_\|_AVR_HAVE_SPH_\|_\fR" 4
16694 .IX Item "__AVR_HAVE_SPH__"
16695 .PD 0
16696 .ie n .IP """_\|_AVR_SP8_\|_""" 4
16697 .el .IP "\f(CW_\|_AVR_SP8_\|_\fR" 4
16698 .IX Item "__AVR_SP8__"
16699 .PD
16700 The device has the \s-1SPH\s0 (high part of stack pointer) special function
16701 register or has an 8\-bit stack pointer, respectively.
16702 The definition of these macros is affected by \fB\-mmcu=\fR and
16703 in the cases of \fB\-mmcu=avr2\fR and \fB\-mmcu=avr25\fR also
16704 by \fB\-msp8\fR.
16705 .ie n .IP """_\|_AVR_HAVE_RAMPD_\|_""" 4
16706 .el .IP "\f(CW_\|_AVR_HAVE_RAMPD_\|_\fR" 4
16707 .IX Item "__AVR_HAVE_RAMPD__"
16708 .PD 0
16709 .ie n .IP """_\|_AVR_HAVE_RAMPX_\|_""" 4
16710 .el .IP "\f(CW_\|_AVR_HAVE_RAMPX_\|_\fR" 4
16711 .IX Item "__AVR_HAVE_RAMPX__"
16712 .ie n .IP """_\|_AVR_HAVE_RAMPY_\|_""" 4
16713 .el .IP "\f(CW_\|_AVR_HAVE_RAMPY_\|_\fR" 4
16714 .IX Item "__AVR_HAVE_RAMPY__"
16715 .ie n .IP """_\|_AVR_HAVE_RAMPZ_\|_""" 4
16716 .el .IP "\f(CW_\|_AVR_HAVE_RAMPZ_\|_\fR" 4
16717 .IX Item "__AVR_HAVE_RAMPZ__"
16718 .PD
16719 The device has the \f(CW\*(C`RAMPD\*(C'\fR, \f(CW\*(C`RAMPX\*(C'\fR, \f(CW\*(C`RAMPY\*(C'\fR,
16720 \&\f(CW\*(C`RAMPZ\*(C'\fR special function register, respectively.
16721 .ie n .IP """_\|_NO_INTERRUPTS_\|_""" 4
16722 .el .IP "\f(CW_\|_NO_INTERRUPTS_\|_\fR" 4
16723 .IX Item "__NO_INTERRUPTS__"
16724 This macro reflects the \fB\-mno\-interrupts\fR command-line option.
16725 .ie n .IP """_\|_AVR_ERRATA_SKIP_\|_""" 4
16726 .el .IP "\f(CW_\|_AVR_ERRATA_SKIP_\|_\fR" 4
16727 .IX Item "__AVR_ERRATA_SKIP__"
16728 .PD 0
16729 .ie n .IP """_\|_AVR_ERRATA_SKIP_JMP_CALL_\|_""" 4
16730 .el .IP "\f(CW_\|_AVR_ERRATA_SKIP_JMP_CALL_\|_\fR" 4
16731 .IX Item "__AVR_ERRATA_SKIP_JMP_CALL__"
16732 .PD
16733 Some \s-1AVR\s0 devices (\s-1AT90S8515,\s0 ATmega103) must not skip 32\-bit
16734 instructions because of a hardware erratum.  Skip instructions are
16735 \&\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.
16736 The second macro is only defined if \f(CW\*(C`_\|_AVR_HAVE_JMP_CALL_\|_\*(C'\fR is also
16737 set.
16738 .ie n .IP """_\|_AVR_ISA_RMW_\|_""" 4
16739 .el .IP "\f(CW_\|_AVR_ISA_RMW_\|_\fR" 4
16740 .IX Item "__AVR_ISA_RMW__"
16741 The device has Read-Modify-Write instructions (\s-1XCH, LAC, LAS\s0 and \s-1LAT\s0).
16742 .ie n .IP """_\|_AVR_SFR_OFFSET_\|_=\fIoffset\fP""" 4
16743 .el .IP "\f(CW_\|_AVR_SFR_OFFSET_\|_=\f(CIoffset\f(CW\fR" 4
16744 .IX Item "__AVR_SFR_OFFSET__=offset"
16745 Instructions that can address I/O special function registers directly
16746 like \f(CW\*(C`IN\*(C'\fR, \f(CW\*(C`OUT\*(C'\fR, \f(CW\*(C`SBI\*(C'\fR, etc. may use a different
16747 address as if addressed by an instruction to access \s-1RAM\s0 like \f(CW\*(C`LD\*(C'\fR
16748 or \f(CW\*(C`STS\*(C'\fR. This offset depends on the device architecture and has
16749 to be subtracted from the \s-1RAM\s0 address in order to get the
16750 respective I/O@tie{}address.
16751 .ie n .IP """_\|_AVR_SHORT_CALLS_\|_""" 4
16752 .el .IP "\f(CW_\|_AVR_SHORT_CALLS_\|_\fR" 4
16753 .IX Item "__AVR_SHORT_CALLS__"
16754 The \fB\-mshort\-calls\fR command line option is set.
16755 .ie n .IP """_\|_AVR_PM_BASE_ADDRESS_\|_=\fIaddr\fP""" 4
16756 .el .IP "\f(CW_\|_AVR_PM_BASE_ADDRESS_\|_=\f(CIaddr\f(CW\fR" 4
16757 .IX Item "__AVR_PM_BASE_ADDRESS__=addr"
16758 Some devices support reading from flash memory by means of \f(CW\*(C`LD*\*(C'\fR
16759 instructions.  The flash memory is seen in the data address space
16760 at an offset of \f(CW\*(C`_\|_AVR_PM_BASE_ADDRESS_\|_\*(C'\fR.  If this macro
16761 is not defined, this feature is not available.  If defined,
16762 the address space is linear and there is no need to put
16763 \&\f(CW\*(C`.rodata\*(C'\fR into \s-1RAM.\s0  This is handled by the default linker
16764 description file, and is currently available for
16765 \&\f(CW\*(C`avrtiny\*(C'\fR and \f(CW\*(C`avrxmega3\*(C'\fR.  Even more convenient,
16766 there is no need to use address spaces like \f(CW\*(C`_\|_flash\*(C'\fR or
16767 features like attribute \f(CW\*(C`progmem\*(C'\fR and \f(CW\*(C`pgm_read_*\*(C'\fR.
16768 .ie n .IP """_\|_WITH_AVRLIBC_\|_""" 4
16769 .el .IP "\f(CW_\|_WITH_AVRLIBC_\|_\fR" 4
16770 .IX Item "__WITH_AVRLIBC__"
16771 The compiler is configured to be used together with AVR-Libc.
16772 See the \fB\-\-with\-avrlibc\fR configure option.
16773 .PP
16774 \fIBlackfin Options\fR
16775 .IX Subsection "Blackfin Options"
16776 .IP "\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR]" 4
16777 .IX Item "-mcpu=cpu[-sirevision]"
16778 Specifies the name of the target Blackfin processor.  Currently, \fIcpu\fR
16779 can be one of \fBbf512\fR, \fBbf514\fR, \fBbf516\fR, \fBbf518\fR,
16780 \&\fBbf522\fR, \fBbf523\fR, \fBbf524\fR, \fBbf525\fR, \fBbf526\fR,
16781 \&\fBbf527\fR, \fBbf531\fR, \fBbf532\fR, \fBbf533\fR,
16782 \&\fBbf534\fR, \fBbf536\fR, \fBbf537\fR, \fBbf538\fR, \fBbf539\fR,
16783 \&\fBbf542\fR, \fBbf544\fR, \fBbf547\fR, \fBbf548\fR, \fBbf549\fR,
16784 \&\fBbf542m\fR, \fBbf544m\fR, \fBbf547m\fR, \fBbf548m\fR, \fBbf549m\fR,
16785 \&\fBbf561\fR, \fBbf592\fR.
16786 .Sp
16787 The optional \fIsirevision\fR specifies the silicon revision of the target
16788 Blackfin processor.  Any workarounds available for the targeted silicon revision
16789 are enabled.  If \fIsirevision\fR is \fBnone\fR, no workarounds are enabled.
16790 If \fIsirevision\fR is \fBany\fR, all workarounds for the targeted processor
16791 are enabled.  The \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR macro is defined to two
16792 hexadecimal digits representing the major and minor numbers in the silicon
16793 revision.  If \fIsirevision\fR is \fBnone\fR, the \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR
16794 is not defined.  If \fIsirevision\fR is \fBany\fR, the
16795 \&\f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR is defined to be \f(CW0xffff\fR.
16796 If this optional \fIsirevision\fR is not used, \s-1GCC\s0 assumes the latest known
16797 silicon revision of the targeted Blackfin processor.
16798 .Sp
16799 \&\s-1GCC\s0 defines a preprocessor macro for the specified \fIcpu\fR.
16800 For the \fBbfin-elf\fR toolchain, this option causes the hardware \s-1BSP\s0
16801 provided by libgloss to be linked in if \fB\-msim\fR is not given.
16802 .Sp
16803 Without this option, \fBbf532\fR is used as the processor by default.
16804 .Sp
16805 Note that support for \fBbf561\fR is incomplete.  For \fBbf561\fR,
16806 only the preprocessor macro is defined.
16807 .IP "\fB\-msim\fR" 4
16808 .IX Item "-msim"
16809 Specifies that the program will be run on the simulator.  This causes
16810 the simulator \s-1BSP\s0 provided by libgloss to be linked in.  This option
16811 has effect only for \fBbfin-elf\fR toolchain.
16812 Certain other options, such as \fB\-mid\-shared\-library\fR and
16813 \&\fB\-mfdpic\fR, imply \fB\-msim\fR.
16814 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
16815 .IX Item "-momit-leaf-frame-pointer"
16816 Don't keep the frame pointer in a register for leaf functions.  This
16817 avoids the instructions to save, set up and restore frame pointers and
16818 makes an extra register available in leaf functions.
16819 .IP "\fB\-mspecld\-anomaly\fR" 4
16820 .IX Item "-mspecld-anomaly"
16821 When enabled, the compiler ensures that the generated code does not
16822 contain speculative loads after jump instructions. If this option is used,
16823 \&\f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_LOADS\*(C'\fR is defined.
16824 .IP "\fB\-mno\-specld\-anomaly\fR" 4
16825 .IX Item "-mno-specld-anomaly"
16826 Don't generate extra code to prevent speculative loads from occurring.
16827 .IP "\fB\-mcsync\-anomaly\fR" 4
16828 .IX Item "-mcsync-anomaly"
16829 When enabled, the compiler ensures that the generated code does not
16830 contain \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions too soon after conditional branches.
16831 If this option is used, \f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_SYNCS\*(C'\fR is defined.
16832 .IP "\fB\-mno\-csync\-anomaly\fR" 4
16833 .IX Item "-mno-csync-anomaly"
16834 Don't generate extra code to prevent \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions from
16835 occurring too soon after a conditional branch.
16836 .IP "\fB\-mlow\-64k\fR" 4
16837 .IX Item "-mlow-64k"
16838 When enabled, the compiler is free to take advantage of the knowledge that
16839 the entire program fits into the low 64k of memory.
16840 .IP "\fB\-mno\-low\-64k\fR" 4
16841 .IX Item "-mno-low-64k"
16842 Assume that the program is arbitrarily large.  This is the default.
16843 .IP "\fB\-mstack\-check\-l1\fR" 4
16844 .IX Item "-mstack-check-l1"
16845 Do stack checking using information placed into L1 scratchpad memory by the
16846 uClinux kernel.
16847 .IP "\fB\-mid\-shared\-library\fR" 4
16848 .IX Item "-mid-shared-library"
16849 Generate code that supports shared libraries via the library \s-1ID\s0 method.
16850 This allows for execute in place and shared libraries in an environment
16851 without virtual memory management.  This option implies \fB\-fPIC\fR.
16852 With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
16853 .IP "\fB\-mno\-id\-shared\-library\fR" 4
16854 .IX Item "-mno-id-shared-library"
16855 Generate code that doesn't assume ID-based shared libraries are being used.
16856 This is the default.
16857 .IP "\fB\-mleaf\-id\-shared\-library\fR" 4
16858 .IX Item "-mleaf-id-shared-library"
16859 Generate code that supports shared libraries via the library \s-1ID\s0 method,
16860 but assumes that this library or executable won't link against any other
16861 \&\s-1ID\s0 shared libraries.  That allows the compiler to use faster code for jumps
16862 and calls.
16863 .IP "\fB\-mno\-leaf\-id\-shared\-library\fR" 4
16864 .IX Item "-mno-leaf-id-shared-library"
16865 Do not assume that the code being compiled won't link against any \s-1ID\s0 shared
16866 libraries.  Slower code is generated for jump and call insns.
16867 .IP "\fB\-mshared\-library\-id=n\fR" 4
16868 .IX Item "-mshared-library-id=n"
16869 Specifies the identification number of the ID-based shared library being
16870 compiled.  Specifying a value of 0 generates more compact code; specifying
16871 other values forces the allocation of that number to the current
16872 library but is no more space\- or time-efficient than omitting this option.
16873 .IP "\fB\-msep\-data\fR" 4
16874 .IX Item "-msep-data"
16875 Generate code that allows the data segment to be located in a different
16876 area of memory from the text segment.  This allows for execute in place in
16877 an environment without virtual memory management by eliminating relocations
16878 against the text section.
16879 .IP "\fB\-mno\-sep\-data\fR" 4
16880 .IX Item "-mno-sep-data"
16881 Generate code that assumes that the data segment follows the text segment.
16882 This is the default.
16883 .IP "\fB\-mlong\-calls\fR" 4
16884 .IX Item "-mlong-calls"
16885 .PD 0
16886 .IP "\fB\-mno\-long\-calls\fR" 4
16887 .IX Item "-mno-long-calls"
16888 .PD
16889 Tells the compiler to perform function calls by first loading the
16890 address of the function into a register and then performing a subroutine
16891 call on this register.  This switch is needed if the target function
16892 lies outside of the 24\-bit addressing range of the offset-based
16893 version of subroutine call instruction.
16894 .Sp
16895 This feature is not enabled by default.  Specifying
16896 \&\fB\-mno\-long\-calls\fR restores the default behavior.  Note these
16897 switches have no effect on how the compiler generates code to handle
16898 function calls via function pointers.
16899 .IP "\fB\-mfast\-fp\fR" 4
16900 .IX Item "-mfast-fp"
16901 Link with the fast floating-point library. This library relaxes some of
16902 the \s-1IEEE\s0 floating-point standard's rules for checking inputs against
16903 Not-a-Number (\s-1NAN\s0), in the interest of performance.
16904 .IP "\fB\-minline\-plt\fR" 4
16905 .IX Item "-minline-plt"
16906 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
16907 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
16908 .IP "\fB\-mmulticore\fR" 4
16909 .IX Item "-mmulticore"
16910 Build a standalone application for multicore Blackfin processors. 
16911 This option causes proper start files and link scripts supporting 
16912 multicore to be used, and defines the macro \f(CW\*(C`_\|_BFIN_MULTICORE\*(C'\fR. 
16913 It can only be used with \fB\-mcpu=bf561\fR[\fB\-\fR\fIsirevision\fR].
16914 .Sp
16915 This option can be used with \fB\-mcorea\fR or \fB\-mcoreb\fR, which
16916 selects the one-application-per-core programming model.  Without
16917 \&\fB\-mcorea\fR or \fB\-mcoreb\fR, the single\-application/dual\-core
16918 programming model is used. In this model, the main function of Core B
16919 should be named as \f(CW\*(C`coreb_main\*(C'\fR.
16920 .Sp
16921 If this option is not used, the single-core application programming
16922 model is used.
16923 .IP "\fB\-mcorea\fR" 4
16924 .IX Item "-mcorea"
16925 Build a standalone application for Core A of \s-1BF561\s0 when using
16926 the one-application-per-core programming model. Proper start files
16927 and link scripts are used to support Core A, and the macro
16928 \&\f(CW\*(C`_\|_BFIN_COREA\*(C'\fR is defined.
16929 This option can only be used in conjunction with \fB\-mmulticore\fR.
16930 .IP "\fB\-mcoreb\fR" 4
16931 .IX Item "-mcoreb"
16932 Build a standalone application for Core B of \s-1BF561\s0 when using
16933 the one-application-per-core programming model. Proper start files
16934 and link scripts are used to support Core B, and the macro
16935 \&\f(CW\*(C`_\|_BFIN_COREB\*(C'\fR is defined. When this option is used, \f(CW\*(C`coreb_main\*(C'\fR
16936 should be used instead of \f(CW\*(C`main\*(C'\fR. 
16937 This option can only be used in conjunction with \fB\-mmulticore\fR.
16938 .IP "\fB\-msdram\fR" 4
16939 .IX Item "-msdram"
16940 Build a standalone application for \s-1SDRAM.\s0 Proper start files and
16941 link scripts are used to put the application into \s-1SDRAM,\s0 and the macro
16942 \&\f(CW\*(C`_\|_BFIN_SDRAM\*(C'\fR is defined.
16943 The loader should initialize \s-1SDRAM\s0 before loading the application.
16944 .IP "\fB\-micplb\fR" 4
16945 .IX Item "-micplb"
16946 Assume that ICPLBs are enabled at run time.  This has an effect on certain
16947 anomaly workarounds.  For Linux targets, the default is to assume ICPLBs
16948 are enabled; for standalone applications the default is off.
16949 .PP
16950 \fIC6X Options\fR
16951 .IX Subsection "C6X Options"
16952 .IP "\fB\-march=\fR\fIname\fR" 4
16953 .IX Item "-march=name"
16954 This specifies the name of the target architecture.  \s-1GCC\s0 uses this
16955 name to determine what kind of instructions it can emit when generating
16956 assembly code.  Permissible names are: \fBc62x\fR,
16957 \&\fBc64x\fR, \fBc64x+\fR, \fBc67x\fR, \fBc67x+\fR, \fBc674x\fR.
16958 .IP "\fB\-mbig\-endian\fR" 4
16959 .IX Item "-mbig-endian"
16960 Generate code for a big-endian target.
16961 .IP "\fB\-mlittle\-endian\fR" 4
16962 .IX Item "-mlittle-endian"
16963 Generate code for a little-endian target.  This is the default.
16964 .IP "\fB\-msim\fR" 4
16965 .IX Item "-msim"
16966 Choose startup files and linker script suitable for the simulator.
16967 .IP "\fB\-msdata=default\fR" 4
16968 .IX Item "-msdata=default"
16969 Put small global and static data in the \f(CW\*(C`.neardata\*(C'\fR section,
16970 which is pointed to by register \f(CW\*(C`B14\*(C'\fR.  Put small uninitialized
16971 global and static data in the \f(CW\*(C`.bss\*(C'\fR section, which is adjacent
16972 to the \f(CW\*(C`.neardata\*(C'\fR section.  Put small read-only data into the
16973 \&\f(CW\*(C`.rodata\*(C'\fR section.  The corresponding sections used for large
16974 pieces of data are \f(CW\*(C`.fardata\*(C'\fR, \f(CW\*(C`.far\*(C'\fR and \f(CW\*(C`.const\*(C'\fR.
16975 .IP "\fB\-msdata=all\fR" 4
16976 .IX Item "-msdata=all"
16977 Put all data, not just small objects, into the sections reserved for
16978 small data, and use addressing relative to the \f(CW\*(C`B14\*(C'\fR register to
16979 access them.
16980 .IP "\fB\-msdata=none\fR" 4
16981 .IX Item "-msdata=none"
16982 Make no use of the sections reserved for small data, and use absolute
16983 addresses to access all data.  Put all initialized global and static
16984 data in the \f(CW\*(C`.fardata\*(C'\fR section, and all uninitialized data in the
16985 \&\f(CW\*(C`.far\*(C'\fR section.  Put all constant data into the \f(CW\*(C`.const\*(C'\fR
16986 section.
16987 .PP
16988 \fI\s-1CRIS\s0 Options\fR
16989 .IX Subsection "CRIS Options"
16990 .PP
16991 These options are defined specifically for the \s-1CRIS\s0 ports.
16992 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
16993 .IX Item "-march=architecture-type"
16994 .PD 0
16995 .IP "\fB\-mcpu=\fR\fIarchitecture-type\fR" 4
16996 .IX Item "-mcpu=architecture-type"
16997 .PD
16998 Generate code for the specified architecture.  The choices for
16999 \&\fIarchitecture-type\fR are \fBv3\fR, \fBv8\fR and \fBv10\fR for
17000 respectively \s-1ETRAX\s0\ 4, \s-1ETRAX\s0\ 100, and \s-1ETRAX\s0\ 100\ \s-1LX.\s0
17001 Default is \fBv0\fR except for cris-axis-linux-gnu, where the default is
17002 \&\fBv10\fR.
17003 .IP "\fB\-mtune=\fR\fIarchitecture-type\fR" 4
17004 .IX Item "-mtune=architecture-type"
17005 Tune to \fIarchitecture-type\fR everything applicable about the generated
17006 code, except for the \s-1ABI\s0 and the set of available instructions.  The
17007 choices for \fIarchitecture-type\fR are the same as for
17008 \&\fB\-march=\fR\fIarchitecture-type\fR.
17009 .IP "\fB\-mmax\-stack\-frame=\fR\fIn\fR" 4
17010 .IX Item "-mmax-stack-frame=n"
17011 Warn when the stack frame of a function exceeds \fIn\fR bytes.
17012 .IP "\fB\-metrax4\fR" 4
17013 .IX Item "-metrax4"
17014 .PD 0
17015 .IP "\fB\-metrax100\fR" 4
17016 .IX Item "-metrax100"
17017 .PD
17018 The options \fB\-metrax4\fR and \fB\-metrax100\fR are synonyms for
17019 \&\fB\-march=v3\fR and \fB\-march=v8\fR respectively.
17020 .IP "\fB\-mmul\-bug\-workaround\fR" 4
17021 .IX Item "-mmul-bug-workaround"
17022 .PD 0
17023 .IP "\fB\-mno\-mul\-bug\-workaround\fR" 4
17024 .IX Item "-mno-mul-bug-workaround"
17025 .PD
17026 Work around a bug in the \f(CW\*(C`muls\*(C'\fR and \f(CW\*(C`mulu\*(C'\fR instructions for \s-1CPU\s0
17027 models where it applies.  This option is active by default.
17028 .IP "\fB\-mpdebug\fR" 4
17029 .IX Item "-mpdebug"
17030 Enable CRIS-specific verbose debug-related information in the assembly
17031 code.  This option also has the effect of turning off the \fB#NO_APP\fR
17032 formatted-code indicator to the assembler at the beginning of the
17033 assembly file.
17034 .IP "\fB\-mcc\-init\fR" 4
17035 .IX Item "-mcc-init"
17036 Do not use condition-code results from previous instruction; always emit
17037 compare and test instructions before use of condition codes.
17038 .IP "\fB\-mno\-side\-effects\fR" 4
17039 .IX Item "-mno-side-effects"
17040 Do not emit instructions with side effects in addressing modes other than
17041 post-increment.
17042 .IP "\fB\-mstack\-align\fR" 4
17043 .IX Item "-mstack-align"
17044 .PD 0
17045 .IP "\fB\-mno\-stack\-align\fR" 4
17046 .IX Item "-mno-stack-align"
17047 .IP "\fB\-mdata\-align\fR" 4
17048 .IX Item "-mdata-align"
17049 .IP "\fB\-mno\-data\-align\fR" 4
17050 .IX Item "-mno-data-align"
17051 .IP "\fB\-mconst\-align\fR" 4
17052 .IX Item "-mconst-align"
17053 .IP "\fB\-mno\-const\-align\fR" 4
17054 .IX Item "-mno-const-align"
17055 .PD
17056 These options (\fBno\-\fR options) arrange (eliminate arrangements) for the
17057 stack frame, individual data and constants to be aligned for the maximum
17058 single data access size for the chosen \s-1CPU\s0 model.  The default is to
17059 arrange for 32\-bit alignment.  \s-1ABI\s0 details such as structure layout are
17060 not affected by these options.
17061 .IP "\fB\-m32\-bit\fR" 4
17062 .IX Item "-m32-bit"
17063 .PD 0
17064 .IP "\fB\-m16\-bit\fR" 4
17065 .IX Item "-m16-bit"
17066 .IP "\fB\-m8\-bit\fR" 4
17067 .IX Item "-m8-bit"
17068 .PD
17069 Similar to the stack\- data\- and const-align options above, these options
17070 arrange for stack frame, writable data and constants to all be 32\-bit,
17071 16\-bit or 8\-bit aligned.  The default is 32\-bit alignment.
17072 .IP "\fB\-mno\-prologue\-epilogue\fR" 4
17073 .IX Item "-mno-prologue-epilogue"
17074 .PD 0
17075 .IP "\fB\-mprologue\-epilogue\fR" 4
17076 .IX Item "-mprologue-epilogue"
17077 .PD
17078 With \fB\-mno\-prologue\-epilogue\fR, the normal function prologue and
17079 epilogue which set up the stack frame are omitted and no return
17080 instructions or return sequences are generated in the code.  Use this
17081 option only together with visual inspection of the compiled code: no
17082 warnings or errors are generated when call-saved registers must be saved,
17083 or storage for local variables needs to be allocated.
17084 .IP "\fB\-mno\-gotplt\fR" 4
17085 .IX Item "-mno-gotplt"
17086 .PD 0
17087 .IP "\fB\-mgotplt\fR" 4
17088 .IX Item "-mgotplt"
17089 .PD
17090 With \fB\-fpic\fR and \fB\-fPIC\fR, don't generate (do generate)
17091 instruction sequences that load addresses for functions from the \s-1PLT\s0 part
17092 of the \s-1GOT\s0 rather than (traditional on other architectures) calls to the
17093 \&\s-1PLT.\s0  The default is \fB\-mgotplt\fR.
17094 .IP "\fB\-melf\fR" 4
17095 .IX Item "-melf"
17096 Legacy no-op option only recognized with the cris-axis-elf and
17097 cris-axis-linux-gnu targets.
17098 .IP "\fB\-mlinux\fR" 4
17099 .IX Item "-mlinux"
17100 Legacy no-op option only recognized with the cris-axis-linux-gnu target.
17101 .IP "\fB\-sim\fR" 4
17102 .IX Item "-sim"
17103 This option, recognized for the cris-axis-elf, arranges
17104 to link with input-output functions from a simulator library.  Code,
17105 initialized data and zero-initialized data are allocated consecutively.
17106 .IP "\fB\-sim2\fR" 4
17107 .IX Item "-sim2"
17108 Like \fB\-sim\fR, but pass linker options to locate initialized data at
17109 0x40000000 and zero-initialized data at 0x80000000.
17110 .PP
17111 \fI\s-1CR16\s0 Options\fR
17112 .IX Subsection "CR16 Options"
17113 .PP
17114 These options are defined specifically for the \s-1CR16\s0 ports.
17115 .IP "\fB\-mmac\fR" 4
17116 .IX Item "-mmac"
17117 Enable the use of multiply-accumulate instructions. Disabled by default.
17118 .IP "\fB\-mcr16cplus\fR" 4
17119 .IX Item "-mcr16cplus"
17120 .PD 0
17121 .IP "\fB\-mcr16c\fR" 4
17122 .IX Item "-mcr16c"
17123 .PD
17124 Generate code for \s-1CR16C\s0 or \s-1CR16C+\s0 architecture. \s-1CR16C+\s0 architecture 
17125 is default.
17126 .IP "\fB\-msim\fR" 4
17127 .IX Item "-msim"
17128 Links the library libsim.a which is in compatible with simulator. Applicable
17129 to \s-1ELF\s0 compiler only.
17130 .IP "\fB\-mint32\fR" 4
17131 .IX Item "-mint32"
17132 Choose integer type as 32\-bit wide.
17133 .IP "\fB\-mbit\-ops\fR" 4
17134 .IX Item "-mbit-ops"
17135 Generates \f(CW\*(C`sbit\*(C'\fR/\f(CW\*(C`cbit\*(C'\fR instructions for bit manipulations.
17136 .IP "\fB\-mdata\-model=\fR\fImodel\fR" 4
17137 .IX Item "-mdata-model=model"
17138 Choose a data model. The choices for \fImodel\fR are \fBnear\fR,
17139 \&\fBfar\fR or \fBmedium\fR. \fBmedium\fR is default.
17140 However, \fBfar\fR is not valid with \fB\-mcr16c\fR, as the
17141 \&\s-1CR16C\s0 architecture does not support the far data model.
17142 .PP
17143 \fIDarwin Options\fR
17144 .IX Subsection "Darwin Options"
17145 .PP
17146 These options are defined for all architectures running the Darwin operating
17147 system.
17148 .PP
17149 \&\s-1FSF GCC\s0 on Darwin does not create \*(L"fat\*(R" object files; it creates
17150 an object file for the single architecture that \s-1GCC\s0 was built to
17151 target.  Apple's \s-1GCC\s0 on Darwin does create \*(L"fat\*(R" files if multiple
17152 \&\fB\-arch\fR options are used; it does so by running the compiler or
17153 linker multiple times and joining the results together with
17154 \&\fIlipo\fR.
17155 .PP
17156 The subtype of the file created (like \fBppc7400\fR or \fBppc970\fR or
17157 \&\fBi686\fR) is determined by the flags that specify the \s-1ISA\s0
17158 that \s-1GCC\s0 is targeting, like \fB\-mcpu\fR or \fB\-march\fR.  The
17159 \&\fB\-force_cpusubtype_ALL\fR option can be used to override this.
17160 .PP
17161 The Darwin tools vary in their behavior when presented with an \s-1ISA\s0
17162 mismatch.  The assembler, \fIas\fR, only permits instructions to
17163 be used that are valid for the subtype of the file it is generating,
17164 so you cannot put 64\-bit instructions in a \fBppc750\fR object file.
17165 The linker for shared libraries, \fI/usr/bin/libtool\fR, fails
17166 and prints an error if asked to create a shared library with a less
17167 restrictive subtype than its input files (for instance, trying to put
17168 a \fBppc970\fR object file in a \fBppc7400\fR library).  The linker
17169 for executables, \fBld\fR, quietly gives the executable the most
17170 restrictive subtype of any of its input files.
17171 .IP "\fB\-F\fR\fIdir\fR" 4
17172 .IX Item "-Fdir"
17173 Add the framework directory \fIdir\fR to the head of the list of
17174 directories to be searched for header files.  These directories are
17175 interleaved with those specified by \fB\-I\fR options and are
17176 scanned in a left-to-right order.
17177 .Sp
17178 A framework directory is a directory with frameworks in it.  A
17179 framework is a directory with a \fIHeaders\fR and/or
17180 \&\fIPrivateHeaders\fR directory contained directly in it that ends
17181 in \fI.framework\fR.  The name of a framework is the name of this
17182 directory excluding the \fI.framework\fR.  Headers associated with
17183 the framework are found in one of those two directories, with
17184 \&\fIHeaders\fR being searched first.  A subframework is a framework
17185 directory that is in a framework's \fIFrameworks\fR directory.
17186 Includes of subframework headers can only appear in a header of a
17187 framework that contains the subframework, or in a sibling subframework
17188 header.  Two subframeworks are siblings if they occur in the same
17189 framework.  A subframework should not have the same name as a
17190 framework; a warning is issued if this is violated.  Currently a
17191 subframework cannot have subframeworks; in the future, the mechanism
17192 may be extended to support this.  The standard frameworks can be found
17193 in \fI/System/Library/Frameworks\fR and
17194 \&\fI/Library/Frameworks\fR.  An example include looks like
17195 \&\f(CW\*(C`#include <Framework/header.h>\*(C'\fR, where \fIFramework\fR denotes
17196 the name of the framework and \fIheader.h\fR is found in the
17197 \&\fIPrivateHeaders\fR or \fIHeaders\fR directory.
17198 .IP "\fB\-iframework\fR\fIdir\fR" 4
17199 .IX Item "-iframeworkdir"
17200 Like \fB\-F\fR except the directory is a treated as a system
17201 directory.  The main difference between this \fB\-iframework\fR and
17202 \&\fB\-F\fR is that with \fB\-iframework\fR the compiler does not
17203 warn about constructs contained within header files found via
17204 \&\fIdir\fR.  This option is valid only for the C family of languages.
17205 .IP "\fB\-gused\fR" 4
17206 .IX Item "-gused"
17207 Emit debugging information for symbols that are used.  For stabs
17208 debugging format, this enables \fB\-feliminate\-unused\-debug\-symbols\fR.
17209 This is by default \s-1ON.\s0
17210 .IP "\fB\-gfull\fR" 4
17211 .IX Item "-gfull"
17212 Emit debugging information for all symbols and types.
17213 .IP "\fB\-mmacosx\-version\-min=\fR\fIversion\fR" 4
17214 .IX Item "-mmacosx-version-min=version"
17215 The earliest version of MacOS X that this executable will run on
17216 is \fIversion\fR.  Typical values of \fIversion\fR include \f(CW10.1\fR,
17217 \&\f(CW10.2\fR, and \f(CW10.3.9\fR.
17218 .Sp
17219 If the compiler was built to use the system's headers by default,
17220 then the default for this option is the system version on which the
17221 compiler is running, otherwise the default is to make choices that
17222 are compatible with as many systems and code bases as possible.
17223 .IP "\fB\-mkernel\fR" 4
17224 .IX Item "-mkernel"
17225 Enable kernel development mode.  The \fB\-mkernel\fR option sets
17226 \&\fB\-static\fR, \fB\-fno\-common\fR, \fB\-fno\-use\-cxa\-atexit\fR,
17227 \&\fB\-fno\-exceptions\fR, \fB\-fno\-non\-call\-exceptions\fR,
17228 \&\fB\-fapple\-kext\fR, \fB\-fno\-weak\fR and \fB\-fno\-rtti\fR where
17229 applicable.  This mode also sets \fB\-mno\-altivec\fR,
17230 \&\fB\-msoft\-float\fR, \fB\-fno\-builtin\fR and
17231 \&\fB\-mlong\-branch\fR for PowerPC targets.
17232 .IP "\fB\-mone\-byte\-bool\fR" 4
17233 .IX Item "-mone-byte-bool"
17234 Override the defaults for \f(CW\*(C`bool\*(C'\fR so that \f(CW\*(C`sizeof(bool)==1\*(C'\fR.
17235 By default \f(CW\*(C`sizeof(bool)\*(C'\fR is \f(CW4\fR when compiling for
17236 Darwin/PowerPC and \f(CW1\fR when compiling for Darwin/x86, so this
17237 option has no effect on x86.
17238 .Sp
17239 \&\fBWarning:\fR The \fB\-mone\-byte\-bool\fR switch causes \s-1GCC\s0
17240 to generate code that is not binary compatible with code generated
17241 without that switch.  Using this switch may require recompiling all
17242 other modules in a program, including system libraries.  Use this
17243 switch to conform to a non-default data model.
17244 .IP "\fB\-mfix\-and\-continue\fR" 4
17245 .IX Item "-mfix-and-continue"
17246 .PD 0
17247 .IP "\fB\-ffix\-and\-continue\fR" 4
17248 .IX Item "-ffix-and-continue"
17249 .IP "\fB\-findirect\-data\fR" 4
17250 .IX Item "-findirect-data"
17251 .PD
17252 Generate code suitable for fast turnaround development, such as to
17253 allow \s-1GDB\s0 to dynamically load \fI.o\fR files into already-running
17254 programs.  \fB\-findirect\-data\fR and \fB\-ffix\-and\-continue\fR
17255 are provided for backwards compatibility.
17256 .IP "\fB\-all_load\fR" 4
17257 .IX Item "-all_load"
17258 Loads all members of static archive libraries.
17259 See man \fBld\fR\|(1) for more information.
17260 .IP "\fB\-arch_errors_fatal\fR" 4
17261 .IX Item "-arch_errors_fatal"
17262 Cause the errors having to do with files that have the wrong architecture
17263 to be fatal.
17264 .IP "\fB\-bind_at_load\fR" 4
17265 .IX Item "-bind_at_load"
17266 Causes the output file to be marked such that the dynamic linker will
17267 bind all undefined references when the file is loaded or launched.
17268 .IP "\fB\-bundle\fR" 4
17269 .IX Item "-bundle"
17270 Produce a Mach-o bundle format file.
17271 See man \fBld\fR\|(1) for more information.
17272 .IP "\fB\-bundle_loader\fR \fIexecutable\fR" 4
17273 .IX Item "-bundle_loader executable"
17274 This option specifies the \fIexecutable\fR that will load the build
17275 output file being linked.  See man \fBld\fR\|(1) for more information.
17276 .IP "\fB\-dynamiclib\fR" 4
17277 .IX Item "-dynamiclib"
17278 When passed this option, \s-1GCC\s0 produces a dynamic library instead of
17279 an executable when linking, using the Darwin \fIlibtool\fR command.
17280 .IP "\fB\-force_cpusubtype_ALL\fR" 4
17281 .IX Item "-force_cpusubtype_ALL"
17282 This causes \s-1GCC\s0's output file to have the \fB\s-1ALL\s0\fR subtype, instead of
17283 one controlled by the \fB\-mcpu\fR or \fB\-march\fR option.
17284 .IP "\fB\-allowable_client\fR  \fIclient_name\fR" 4
17285 .IX Item "-allowable_client client_name"
17286 .PD 0
17287 .IP "\fB\-client_name\fR" 4
17288 .IX Item "-client_name"
17289 .IP "\fB\-compatibility_version\fR" 4
17290 .IX Item "-compatibility_version"
17291 .IP "\fB\-current_version\fR" 4
17292 .IX Item "-current_version"
17293 .IP "\fB\-dead_strip\fR" 4
17294 .IX Item "-dead_strip"
17295 .IP "\fB\-dependency\-file\fR" 4
17296 .IX Item "-dependency-file"
17297 .IP "\fB\-dylib_file\fR" 4
17298 .IX Item "-dylib_file"
17299 .IP "\fB\-dylinker_install_name\fR" 4
17300 .IX Item "-dylinker_install_name"
17301 .IP "\fB\-dynamic\fR" 4
17302 .IX Item "-dynamic"
17303 .IP "\fB\-exported_symbols_list\fR" 4
17304 .IX Item "-exported_symbols_list"
17305 .IP "\fB\-filelist\fR" 4
17306 .IX Item "-filelist"
17307 .IP "\fB\-flat_namespace\fR" 4
17308 .IX Item "-flat_namespace"
17309 .IP "\fB\-force_flat_namespace\fR" 4
17310 .IX Item "-force_flat_namespace"
17311 .IP "\fB\-headerpad_max_install_names\fR" 4
17312 .IX Item "-headerpad_max_install_names"
17313 .IP "\fB\-image_base\fR" 4
17314 .IX Item "-image_base"
17315 .IP "\fB\-init\fR" 4
17316 .IX Item "-init"
17317 .IP "\fB\-install_name\fR" 4
17318 .IX Item "-install_name"
17319 .IP "\fB\-keep_private_externs\fR" 4
17320 .IX Item "-keep_private_externs"
17321 .IP "\fB\-multi_module\fR" 4
17322 .IX Item "-multi_module"
17323 .IP "\fB\-multiply_defined\fR" 4
17324 .IX Item "-multiply_defined"
17325 .IP "\fB\-multiply_defined_unused\fR" 4
17326 .IX Item "-multiply_defined_unused"
17327 .IP "\fB\-noall_load\fR" 4
17328 .IX Item "-noall_load"
17329 .IP "\fB\-no_dead_strip_inits_and_terms\fR" 4
17330 .IX Item "-no_dead_strip_inits_and_terms"
17331 .IP "\fB\-nofixprebinding\fR" 4
17332 .IX Item "-nofixprebinding"
17333 .IP "\fB\-nomultidefs\fR" 4
17334 .IX Item "-nomultidefs"
17335 .IP "\fB\-noprebind\fR" 4
17336 .IX Item "-noprebind"
17337 .IP "\fB\-noseglinkedit\fR" 4
17338 .IX Item "-noseglinkedit"
17339 .IP "\fB\-pagezero_size\fR" 4
17340 .IX Item "-pagezero_size"
17341 .IP "\fB\-prebind\fR" 4
17342 .IX Item "-prebind"
17343 .IP "\fB\-prebind_all_twolevel_modules\fR" 4
17344 .IX Item "-prebind_all_twolevel_modules"
17345 .IP "\fB\-private_bundle\fR" 4
17346 .IX Item "-private_bundle"
17347 .IP "\fB\-read_only_relocs\fR" 4
17348 .IX Item "-read_only_relocs"
17349 .IP "\fB\-sectalign\fR" 4
17350 .IX Item "-sectalign"
17351 .IP "\fB\-sectobjectsymbols\fR" 4
17352 .IX Item "-sectobjectsymbols"
17353 .IP "\fB\-whyload\fR" 4
17354 .IX Item "-whyload"
17355 .IP "\fB\-seg1addr\fR" 4
17356 .IX Item "-seg1addr"
17357 .IP "\fB\-sectcreate\fR" 4
17358 .IX Item "-sectcreate"
17359 .IP "\fB\-sectobjectsymbols\fR" 4
17360 .IX Item "-sectobjectsymbols"
17361 .IP "\fB\-sectorder\fR" 4
17362 .IX Item "-sectorder"
17363 .IP "\fB\-segaddr\fR" 4
17364 .IX Item "-segaddr"
17365 .IP "\fB\-segs_read_only_addr\fR" 4
17366 .IX Item "-segs_read_only_addr"
17367 .IP "\fB\-segs_read_write_addr\fR" 4
17368 .IX Item "-segs_read_write_addr"
17369 .IP "\fB\-seg_addr_table\fR" 4
17370 .IX Item "-seg_addr_table"
17371 .IP "\fB\-seg_addr_table_filename\fR" 4
17372 .IX Item "-seg_addr_table_filename"
17373 .IP "\fB\-seglinkedit\fR" 4
17374 .IX Item "-seglinkedit"
17375 .IP "\fB\-segprot\fR" 4
17376 .IX Item "-segprot"
17377 .IP "\fB\-segs_read_only_addr\fR" 4
17378 .IX Item "-segs_read_only_addr"
17379 .IP "\fB\-segs_read_write_addr\fR" 4
17380 .IX Item "-segs_read_write_addr"
17381 .IP "\fB\-single_module\fR" 4
17382 .IX Item "-single_module"
17383 .IP "\fB\-static\fR" 4
17384 .IX Item "-static"
17385 .IP "\fB\-sub_library\fR" 4
17386 .IX Item "-sub_library"
17387 .IP "\fB\-sub_umbrella\fR" 4
17388 .IX Item "-sub_umbrella"
17389 .IP "\fB\-twolevel_namespace\fR" 4
17390 .IX Item "-twolevel_namespace"
17391 .IP "\fB\-umbrella\fR" 4
17392 .IX Item "-umbrella"
17393 .IP "\fB\-undefined\fR" 4
17394 .IX Item "-undefined"
17395 .IP "\fB\-unexported_symbols_list\fR" 4
17396 .IX Item "-unexported_symbols_list"
17397 .IP "\fB\-weak_reference_mismatches\fR" 4
17398 .IX Item "-weak_reference_mismatches"
17399 .IP "\fB\-whatsloaded\fR" 4
17400 .IX Item "-whatsloaded"
17401 .PD
17402 These options are passed to the Darwin linker.  The Darwin linker man page
17403 describes them in detail.
17404 .PP
17405 \fI\s-1DEC\s0 Alpha Options\fR
17406 .IX Subsection "DEC Alpha Options"
17407 .PP
17408 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha implementations:
17409 .IP "\fB\-mno\-soft\-float\fR" 4
17410 .IX Item "-mno-soft-float"
17411 .PD 0
17412 .IP "\fB\-msoft\-float\fR" 4
17413 .IX Item "-msoft-float"
17414 .PD
17415 Use (do not use) the hardware floating-point instructions for
17416 floating-point operations.  When \fB\-msoft\-float\fR is specified,
17417 functions in \fIlibgcc.a\fR are used to perform floating-point
17418 operations.  Unless they are replaced by routines that emulate the
17419 floating-point operations, or compiled in such a way as to call such
17420 emulations routines, these routines issue floating-point
17421 operations.   If you are compiling for an Alpha without floating-point
17422 operations, you must ensure that the library is built so as not to call
17423 them.
17424 .Sp
17425 Note that Alpha implementations without floating-point operations are
17426 required to have floating-point registers.
17427 .IP "\fB\-mfp\-reg\fR" 4
17428 .IX Item "-mfp-reg"
17429 .PD 0
17430 .IP "\fB\-mno\-fp\-regs\fR" 4
17431 .IX Item "-mno-fp-regs"
17432 .PD
17433 Generate code that uses (does not use) the floating-point register set.
17434 \&\fB\-mno\-fp\-regs\fR implies \fB\-msoft\-float\fR.  If the floating-point
17435 register set is not used, floating-point operands are passed in integer
17436 registers as if they were integers and floating-point results are passed
17437 in \f(CW$0\fR instead of \f(CW$f0\fR.  This is a non-standard calling sequence,
17438 so any function with a floating-point argument or return value called by code
17439 compiled with \fB\-mno\-fp\-regs\fR must also be compiled with that
17440 option.
17441 .Sp
17442 A typical use of this option is building a kernel that does not use,
17443 and hence need not save and restore, any floating-point registers.
17444 .IP "\fB\-mieee\fR" 4
17445 .IX Item "-mieee"
17446 The Alpha architecture implements floating-point hardware optimized for
17447 maximum performance.  It is mostly compliant with the \s-1IEEE\s0 floating-point
17448 standard.  However, for full compliance, software assistance is
17449 required.  This option generates code fully IEEE-compliant code
17450 \&\fIexcept\fR that the \fIinexact-flag\fR is not maintained (see below).
17451 If this option is turned on, the preprocessor macro \f(CW\*(C`_IEEE_FP\*(C'\fR is
17452 defined during compilation.  The resulting code is less efficient but is
17453 able to correctly support denormalized numbers and exceptional \s-1IEEE\s0
17454 values such as not-a-number and plus/minus infinity.  Other Alpha
17455 compilers call this option \fB\-ieee_with_no_inexact\fR.
17456 .IP "\fB\-mieee\-with\-inexact\fR" 4
17457 .IX Item "-mieee-with-inexact"
17458 This is like \fB\-mieee\fR except the generated code also maintains
17459 the \s-1IEEE\s0 \fIinexact-flag\fR.  Turning on this option causes the
17460 generated code to implement fully-compliant \s-1IEEE\s0 math.  In addition to
17461 \&\f(CW\*(C`_IEEE_FP\*(C'\fR, \f(CW\*(C`_IEEE_FP_EXACT\*(C'\fR is defined as a preprocessor
17462 macro.  On some Alpha implementations the resulting code may execute
17463 significantly slower than the code generated by default.  Since there is
17464 very little code that depends on the \fIinexact-flag\fR, you should
17465 normally not specify this option.  Other Alpha compilers call this
17466 option \fB\-ieee_with_inexact\fR.
17467 .IP "\fB\-mfp\-trap\-mode=\fR\fItrap-mode\fR" 4
17468 .IX Item "-mfp-trap-mode=trap-mode"
17469 This option controls what floating-point related traps are enabled.
17470 Other Alpha compilers call this option \fB\-fptm\fR \fItrap-mode\fR.
17471 The trap mode can be set to one of four values:
17472 .RS 4
17473 .IP "\fBn\fR" 4
17474 .IX Item "n"
17475 This is the default (normal) setting.  The only traps that are enabled
17476 are the ones that cannot be disabled in software (e.g., division by zero
17477 trap).
17478 .IP "\fBu\fR" 4
17479 .IX Item "u"
17480 In addition to the traps enabled by \fBn\fR, underflow traps are enabled
17481 as well.
17482 .IP "\fBsu\fR" 4
17483 .IX Item "su"
17484 Like \fBu\fR, but the instructions are marked to be safe for software
17485 completion (see Alpha architecture manual for details).
17486 .IP "\fBsui\fR" 4
17487 .IX Item "sui"
17488 Like \fBsu\fR, but inexact traps are enabled as well.
17489 .RE
17490 .RS 4
17491 .RE
17492 .IP "\fB\-mfp\-rounding\-mode=\fR\fIrounding-mode\fR" 4
17493 .IX Item "-mfp-rounding-mode=rounding-mode"
17494 Selects the \s-1IEEE\s0 rounding mode.  Other Alpha compilers call this option
17495 \&\fB\-fprm\fR \fIrounding-mode\fR.  The \fIrounding-mode\fR can be one
17496 of:
17497 .RS 4
17498 .IP "\fBn\fR" 4
17499 .IX Item "n"
17500 Normal \s-1IEEE\s0 rounding mode.  Floating-point numbers are rounded towards
17501 the nearest machine number or towards the even machine number in case
17502 of a tie.
17503 .IP "\fBm\fR" 4
17504 .IX Item "m"
17505 Round towards minus infinity.
17506 .IP "\fBc\fR" 4
17507 .IX Item "c"
17508 Chopped rounding mode.  Floating-point numbers are rounded towards zero.
17509 .IP "\fBd\fR" 4
17510 .IX Item "d"
17511 Dynamic rounding mode.  A field in the floating-point control register
17512 (\fIfpcr\fR, see Alpha architecture reference manual) controls the
17513 rounding mode in effect.  The C library initializes this register for
17514 rounding towards plus infinity.  Thus, unless your program modifies the
17515 \&\fIfpcr\fR, \fBd\fR corresponds to round towards plus infinity.
17516 .RE
17517 .RS 4
17518 .RE
17519 .IP "\fB\-mtrap\-precision=\fR\fItrap-precision\fR" 4
17520 .IX Item "-mtrap-precision=trap-precision"
17521 In the Alpha architecture, floating-point traps are imprecise.  This
17522 means without software assistance it is impossible to recover from a
17523 floating trap and program execution normally needs to be terminated.
17524 \&\s-1GCC\s0 can generate code that can assist operating system trap handlers
17525 in determining the exact location that caused a floating-point trap.
17526 Depending on the requirements of an application, different levels of
17527 precisions can be selected:
17528 .RS 4
17529 .IP "\fBp\fR" 4
17530 .IX Item "p"
17531 Program precision.  This option is the default and means a trap handler
17532 can only identify which program caused a floating-point exception.
17533 .IP "\fBf\fR" 4
17534 .IX Item "f"
17535 Function precision.  The trap handler can determine the function that
17536 caused a floating-point exception.
17537 .IP "\fBi\fR" 4
17538 .IX Item "i"
17539 Instruction precision.  The trap handler can determine the exact
17540 instruction that caused a floating-point exception.
17541 .RE
17542 .RS 4
17543 .Sp
17544 Other Alpha compilers provide the equivalent options called
17545 \&\fB\-scope_safe\fR and \fB\-resumption_safe\fR.
17546 .RE
17547 .IP "\fB\-mieee\-conformant\fR" 4
17548 .IX Item "-mieee-conformant"
17549 This option marks the generated code as \s-1IEEE\s0 conformant.  You must not
17550 use this option unless you also specify \fB\-mtrap\-precision=i\fR and either
17551 \&\fB\-mfp\-trap\-mode=su\fR or \fB\-mfp\-trap\-mode=sui\fR.  Its only effect
17552 is to emit the line \fB.eflag 48\fR in the function prologue of the
17553 generated assembly file.
17554 .IP "\fB\-mbuild\-constants\fR" 4
17555 .IX Item "-mbuild-constants"
17556 Normally \s-1GCC\s0 examines a 32\- or 64\-bit integer constant to
17557 see if it can construct it from smaller constants in two or three
17558 instructions.  If it cannot, it outputs the constant as a literal and
17559 generates code to load it from the data segment at run time.
17560 .Sp
17561 Use this option to require \s-1GCC\s0 to construct \fIall\fR integer constants
17562 using code, even if it takes more instructions (the maximum is six).
17563 .Sp
17564 You typically use this option to build a shared library dynamic
17565 loader.  Itself a shared library, it must relocate itself in memory
17566 before it can find the variables and constants in its own data segment.
17567 .IP "\fB\-mbwx\fR" 4
17568 .IX Item "-mbwx"
17569 .PD 0
17570 .IP "\fB\-mno\-bwx\fR" 4
17571 .IX Item "-mno-bwx"
17572 .IP "\fB\-mcix\fR" 4
17573 .IX Item "-mcix"
17574 .IP "\fB\-mno\-cix\fR" 4
17575 .IX Item "-mno-cix"
17576 .IP "\fB\-mfix\fR" 4
17577 .IX Item "-mfix"
17578 .IP "\fB\-mno\-fix\fR" 4
17579 .IX Item "-mno-fix"
17580 .IP "\fB\-mmax\fR" 4
17581 .IX Item "-mmax"
17582 .IP "\fB\-mno\-max\fR" 4
17583 .IX Item "-mno-max"
17584 .PD
17585 Indicate whether \s-1GCC\s0 should generate code to use the optional \s-1BWX,
17586 CIX, FIX\s0 and \s-1MAX\s0 instruction sets.  The default is to use the instruction
17587 sets supported by the \s-1CPU\s0 type specified via \fB\-mcpu=\fR option or that
17588 of the \s-1CPU\s0 on which \s-1GCC\s0 was built if none is specified.
17589 .IP "\fB\-mfloat\-vax\fR" 4
17590 .IX Item "-mfloat-vax"
17591 .PD 0
17592 .IP "\fB\-mfloat\-ieee\fR" 4
17593 .IX Item "-mfloat-ieee"
17594 .PD
17595 Generate code that uses (does not use) \s-1VAX F\s0 and G floating-point
17596 arithmetic instead of \s-1IEEE\s0 single and double precision.
17597 .IP "\fB\-mexplicit\-relocs\fR" 4
17598 .IX Item "-mexplicit-relocs"
17599 .PD 0
17600 .IP "\fB\-mno\-explicit\-relocs\fR" 4
17601 .IX Item "-mno-explicit-relocs"
17602 .PD
17603 Older Alpha assemblers provided no way to generate symbol relocations
17604 except via assembler macros.  Use of these macros does not allow
17605 optimal instruction scheduling.  \s-1GNU\s0 binutils as of version 2.12
17606 supports a new syntax that allows the compiler to explicitly mark
17607 which relocations should apply to which instructions.  This option
17608 is mostly useful for debugging, as \s-1GCC\s0 detects the capabilities of
17609 the assembler when it is built and sets the default accordingly.
17610 .IP "\fB\-msmall\-data\fR" 4
17611 .IX Item "-msmall-data"
17612 .PD 0
17613 .IP "\fB\-mlarge\-data\fR" 4
17614 .IX Item "-mlarge-data"
17615 .PD
17616 When \fB\-mexplicit\-relocs\fR is in effect, static data is
17617 accessed via \fIgp-relative\fR relocations.  When \fB\-msmall\-data\fR
17618 is used, objects 8 bytes long or smaller are placed in a \fIsmall data area\fR
17619 (the \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR sections) and are accessed via
17620 16\-bit relocations off of the \f(CW$gp\fR register.  This limits the
17621 size of the small data area to 64KB, but allows the variables to be
17622 directly accessed via a single instruction.
17623 .Sp
17624 The default is \fB\-mlarge\-data\fR.  With this option the data area
17625 is limited to just below 2GB.  Programs that require more than 2GB of
17626 data must use \f(CW\*(C`malloc\*(C'\fR or \f(CW\*(C`mmap\*(C'\fR to allocate the data in the
17627 heap instead of in the program's data segment.
17628 .Sp
17629 When generating code for shared libraries, \fB\-fpic\fR implies
17630 \&\fB\-msmall\-data\fR and \fB\-fPIC\fR implies \fB\-mlarge\-data\fR.
17631 .IP "\fB\-msmall\-text\fR" 4
17632 .IX Item "-msmall-text"
17633 .PD 0
17634 .IP "\fB\-mlarge\-text\fR" 4
17635 .IX Item "-mlarge-text"
17636 .PD
17637 When \fB\-msmall\-text\fR is used, the compiler assumes that the
17638 code of the entire program (or shared library) fits in 4MB, and is
17639 thus reachable with a branch instruction.  When \fB\-msmall\-data\fR
17640 is used, the compiler can assume that all local symbols share the
17641 same \f(CW$gp\fR value, and thus reduce the number of instructions
17642 required for a function call from 4 to 1.
17643 .Sp
17644 The default is \fB\-mlarge\-text\fR.
17645 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
17646 .IX Item "-mcpu=cpu_type"
17647 Set the instruction set and instruction scheduling parameters for
17648 machine type \fIcpu_type\fR.  You can specify either the \fB\s-1EV\s0\fR
17649 style name or the corresponding chip number.  \s-1GCC\s0 supports scheduling
17650 parameters for the \s-1EV4, EV5\s0 and \s-1EV6\s0 family of processors and
17651 chooses the default values for the instruction set from the processor
17652 you specify.  If you do not specify a processor type, \s-1GCC\s0 defaults
17653 to the processor on which the compiler was built.
17654 .Sp
17655 Supported values for \fIcpu_type\fR are
17656 .RS 4
17657 .IP "\fBev4\fR" 4
17658 .IX Item "ev4"
17659 .PD 0
17660 .IP "\fBev45\fR" 4
17661 .IX Item "ev45"
17662 .IP "\fB21064\fR" 4
17663 .IX Item "21064"
17664 .PD
17665 Schedules as an \s-1EV4\s0 and has no instruction set extensions.
17666 .IP "\fBev5\fR" 4
17667 .IX Item "ev5"
17668 .PD 0
17669 .IP "\fB21164\fR" 4
17670 .IX Item "21164"
17671 .PD
17672 Schedules as an \s-1EV5\s0 and has no instruction set extensions.
17673 .IP "\fBev56\fR" 4
17674 .IX Item "ev56"
17675 .PD 0
17676 .IP "\fB21164a\fR" 4
17677 .IX Item "21164a"
17678 .PD
17679 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 extension.
17680 .IP "\fBpca56\fR" 4
17681 .IX Item "pca56"
17682 .PD 0
17683 .IP "\fB21164pc\fR" 4
17684 .IX Item "21164pc"
17685 .IP "\fB21164PC\fR" 4
17686 .IX Item "21164PC"
17687 .PD
17688 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 and \s-1MAX\s0 extensions.
17689 .IP "\fBev6\fR" 4
17690 .IX Item "ev6"
17691 .PD 0
17692 .IP "\fB21264\fR" 4
17693 .IX Item "21264"
17694 .PD
17695 Schedules as an \s-1EV6\s0 and supports the \s-1BWX, FIX,\s0 and \s-1MAX\s0 extensions.
17696 .IP "\fBev67\fR" 4
17697 .IX Item "ev67"
17698 .PD 0
17699 .IP "\fB21264a\fR" 4
17700 .IX Item "21264a"
17701 .PD
17702 Schedules as an \s-1EV6\s0 and supports the \s-1BWX, CIX, FIX,\s0 and \s-1MAX\s0 extensions.
17703 .RE
17704 .RS 4
17705 .Sp
17706 Native toolchains also support the value \fBnative\fR,
17707 which selects the best architecture option for the host processor.
17708 \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize
17709 the processor.
17710 .RE
17711 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
17712 .IX Item "-mtune=cpu_type"
17713 Set only the instruction scheduling parameters for machine type
17714 \&\fIcpu_type\fR.  The instruction set is not changed.
17715 .Sp
17716 Native toolchains also support the value \fBnative\fR,
17717 which selects the best architecture option for the host processor.
17718 \&\fB\-mtune=native\fR has no effect if \s-1GCC\s0 does not recognize
17719 the processor.
17720 .IP "\fB\-mmemory\-latency=\fR\fItime\fR" 4
17721 .IX Item "-mmemory-latency=time"
17722 Sets the latency the scheduler should assume for typical memory
17723 references as seen by the application.  This number is highly
17724 dependent on the memory access patterns used by the application
17725 and the size of the external cache on the machine.
17726 .Sp
17727 Valid options for \fItime\fR are
17728 .RS 4
17729 .IP "\fInumber\fR" 4
17730 .IX Item "number"
17731 A decimal number representing clock cycles.
17732 .IP "\fBL1\fR" 4
17733 .IX Item "L1"
17734 .PD 0
17735 .IP "\fBL2\fR" 4
17736 .IX Item "L2"
17737 .IP "\fBL3\fR" 4
17738 .IX Item "L3"
17739 .IP "\fBmain\fR" 4
17740 .IX Item "main"
17741 .PD
17742 The compiler contains estimates of the number of clock cycles for
17743 \&\*(L"typical\*(R" \s-1EV4 & EV5\s0 hardware for the Level 1, 2 & 3 caches
17744 (also called Dcache, Scache, and Bcache), as well as to main memory.
17745 Note that L3 is only valid for \s-1EV5.\s0
17746 .RE
17747 .RS 4
17748 .RE
17749 .PP
17750 \fI\s-1FR30\s0 Options\fR
17751 .IX Subsection "FR30 Options"
17752 .PP
17753 These options are defined specifically for the \s-1FR30\s0 port.
17754 .IP "\fB\-msmall\-model\fR" 4
17755 .IX Item "-msmall-model"
17756 Use the small address space model.  This can produce smaller code, but
17757 it does assume that all symbolic values and addresses fit into a
17758 20\-bit range.
17759 .IP "\fB\-mno\-lsim\fR" 4
17760 .IX Item "-mno-lsim"
17761 Assume that runtime support has been provided and so there is no need
17762 to include the simulator library (\fIlibsim.a\fR) on the linker
17763 command line.
17764 .PP
17765 \fI\s-1FT32\s0 Options\fR
17766 .IX Subsection "FT32 Options"
17767 .PP
17768 These options are defined specifically for the \s-1FT32\s0 port.
17769 .IP "\fB\-msim\fR" 4
17770 .IX Item "-msim"
17771 Specifies that the program will be run on the simulator.  This causes
17772 an alternate runtime startup and library to be linked.
17773 You must not use this option when generating programs that will run on
17774 real hardware; you must provide your own runtime library for whatever
17775 I/O functions are needed.
17776 .IP "\fB\-mlra\fR" 4
17777 .IX Item "-mlra"
17778 Enable Local Register Allocation.  This is still experimental for \s-1FT32,\s0
17779 so by default the compiler uses standard reload.
17780 .IP "\fB\-mnodiv\fR" 4
17781 .IX Item "-mnodiv"
17782 Do not use div and mod instructions.
17783 .IP "\fB\-mft32b\fR" 4
17784 .IX Item "-mft32b"
17785 Enable use of the extended instructions of the \s-1FT32B\s0 processor.
17786 .IP "\fB\-mcompress\fR" 4
17787 .IX Item "-mcompress"
17788 Compress all code using the Ft32B code compression scheme.
17789 .IP "\fB\-mnopm\fR" 4
17790 .IX Item "-mnopm"
17791 Do not generate code that reads program memory.
17792 .PP
17793 \fI\s-1FRV\s0 Options\fR
17794 .IX Subsection "FRV Options"
17795 .IP "\fB\-mgpr\-32\fR" 4
17796 .IX Item "-mgpr-32"
17797 Only use the first 32 general-purpose registers.
17798 .IP "\fB\-mgpr\-64\fR" 4
17799 .IX Item "-mgpr-64"
17800 Use all 64 general-purpose registers.
17801 .IP "\fB\-mfpr\-32\fR" 4
17802 .IX Item "-mfpr-32"
17803 Use only the first 32 floating-point registers.
17804 .IP "\fB\-mfpr\-64\fR" 4
17805 .IX Item "-mfpr-64"
17806 Use all 64 floating-point registers.
17807 .IP "\fB\-mhard\-float\fR" 4
17808 .IX Item "-mhard-float"
17809 Use hardware instructions for floating-point operations.
17810 .IP "\fB\-msoft\-float\fR" 4
17811 .IX Item "-msoft-float"
17812 Use library routines for floating-point operations.
17813 .IP "\fB\-malloc\-cc\fR" 4
17814 .IX Item "-malloc-cc"
17815 Dynamically allocate condition code registers.
17816 .IP "\fB\-mfixed\-cc\fR" 4
17817 .IX Item "-mfixed-cc"
17818 Do not try to dynamically allocate condition code registers, only
17819 use \f(CW\*(C`icc0\*(C'\fR and \f(CW\*(C`fcc0\*(C'\fR.
17820 .IP "\fB\-mdword\fR" 4
17821 .IX Item "-mdword"
17822 Change \s-1ABI\s0 to use double word insns.
17823 .IP "\fB\-mno\-dword\fR" 4
17824 .IX Item "-mno-dword"
17825 Do not use double word instructions.
17826 .IP "\fB\-mdouble\fR" 4
17827 .IX Item "-mdouble"
17828 Use floating-point double instructions.
17829 .IP "\fB\-mno\-double\fR" 4
17830 .IX Item "-mno-double"
17831 Do not use floating-point double instructions.
17832 .IP "\fB\-mmedia\fR" 4
17833 .IX Item "-mmedia"
17834 Use media instructions.
17835 .IP "\fB\-mno\-media\fR" 4
17836 .IX Item "-mno-media"
17837 Do not use media instructions.
17838 .IP "\fB\-mmuladd\fR" 4
17839 .IX Item "-mmuladd"
17840 Use multiply and add/subtract instructions.
17841 .IP "\fB\-mno\-muladd\fR" 4
17842 .IX Item "-mno-muladd"
17843 Do not use multiply and add/subtract instructions.
17844 .IP "\fB\-mfdpic\fR" 4
17845 .IX Item "-mfdpic"
17846 Select the \s-1FDPIC ABI,\s0 which uses function descriptors to represent
17847 pointers to functions.  Without any PIC/PIE\-related options, it
17848 implies \fB\-fPIE\fR.  With \fB\-fpic\fR or \fB\-fpie\fR, it
17849 assumes \s-1GOT\s0 entries and small data are within a 12\-bit range from the
17850 \&\s-1GOT\s0 base address; with \fB\-fPIC\fR or \fB\-fPIE\fR, \s-1GOT\s0 offsets
17851 are computed with 32 bits.
17852 With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
17853 .IP "\fB\-minline\-plt\fR" 4
17854 .IX Item "-minline-plt"
17855 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
17856 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
17857 It's enabled by default if optimizing for speed and compiling for
17858 shared libraries (i.e., \fB\-fPIC\fR or \fB\-fpic\fR), or when an
17859 optimization option such as \fB\-O3\fR or above is present in the
17860 command line.
17861 .IP "\fB\-mTLS\fR" 4
17862 .IX Item "-mTLS"
17863 Assume a large \s-1TLS\s0 segment when generating thread-local code.
17864 .IP "\fB\-mtls\fR" 4
17865 .IX Item "-mtls"
17866 Do not assume a large \s-1TLS\s0 segment when generating thread-local code.
17867 .IP "\fB\-mgprel\-ro\fR" 4
17868 .IX Item "-mgprel-ro"
17869 Enable the use of \f(CW\*(C`GPREL\*(C'\fR relocations in the \s-1FDPIC ABI\s0 for data
17870 that is known to be in read-only sections.  It's enabled by default,
17871 except for \fB\-fpic\fR or \fB\-fpie\fR: even though it may help
17872 make the global offset table smaller, it trades 1 instruction for 4.
17873 With \fB\-fPIC\fR or \fB\-fPIE\fR, it trades 3 instructions for 4,
17874 one of which may be shared by multiple symbols, and it avoids the need
17875 for a \s-1GOT\s0 entry for the referenced symbol, so it's more likely to be a
17876 win.  If it is not, \fB\-mno\-gprel\-ro\fR can be used to disable it.
17877 .IP "\fB\-multilib\-library\-pic\fR" 4
17878 .IX Item "-multilib-library-pic"
17879 Link with the (library, not \s-1FD\s0) pic libraries.  It's implied by
17880 \&\fB\-mlibrary\-pic\fR, as well as by \fB\-fPIC\fR and
17881 \&\fB\-fpic\fR without \fB\-mfdpic\fR.  You should never have to use
17882 it explicitly.
17883 .IP "\fB\-mlinked\-fp\fR" 4
17884 .IX Item "-mlinked-fp"
17885 Follow the \s-1EABI\s0 requirement of always creating a frame pointer whenever
17886 a stack frame is allocated.  This option is enabled by default and can
17887 be disabled with \fB\-mno\-linked\-fp\fR.
17888 .IP "\fB\-mlong\-calls\fR" 4
17889 .IX Item "-mlong-calls"
17890 Use indirect addressing to call functions outside the current
17891 compilation unit.  This allows the functions to be placed anywhere
17892 within the 32\-bit address space.
17893 .IP "\fB\-malign\-labels\fR" 4
17894 .IX Item "-malign-labels"
17895 Try to align labels to an 8\-byte boundary by inserting NOPs into the
17896 previous packet.  This option only has an effect when \s-1VLIW\s0 packing
17897 is enabled.  It doesn't create new packets; it merely adds NOPs to
17898 existing ones.
17899 .IP "\fB\-mlibrary\-pic\fR" 4
17900 .IX Item "-mlibrary-pic"
17901 Generate position-independent \s-1EABI\s0 code.
17902 .IP "\fB\-macc\-4\fR" 4
17903 .IX Item "-macc-4"
17904 Use only the first four media accumulator registers.
17905 .IP "\fB\-macc\-8\fR" 4
17906 .IX Item "-macc-8"
17907 Use all eight media accumulator registers.
17908 .IP "\fB\-mpack\fR" 4
17909 .IX Item "-mpack"
17910 Pack \s-1VLIW\s0 instructions.
17911 .IP "\fB\-mno\-pack\fR" 4
17912 .IX Item "-mno-pack"
17913 Do not pack \s-1VLIW\s0 instructions.
17914 .IP "\fB\-mno\-eflags\fR" 4
17915 .IX Item "-mno-eflags"
17916 Do not mark \s-1ABI\s0 switches in e_flags.
17917 .IP "\fB\-mcond\-move\fR" 4
17918 .IX Item "-mcond-move"
17919 Enable the use of conditional-move instructions (default).
17920 .Sp
17921 This switch is mainly for debugging the compiler and will likely be removed
17922 in a future version.
17923 .IP "\fB\-mno\-cond\-move\fR" 4
17924 .IX Item "-mno-cond-move"
17925 Disable the use of conditional-move instructions.
17926 .Sp
17927 This switch is mainly for debugging the compiler and will likely be removed
17928 in a future version.
17929 .IP "\fB\-mscc\fR" 4
17930 .IX Item "-mscc"
17931 Enable the use of conditional set instructions (default).
17932 .Sp
17933 This switch is mainly for debugging the compiler and will likely be removed
17934 in a future version.
17935 .IP "\fB\-mno\-scc\fR" 4
17936 .IX Item "-mno-scc"
17937 Disable the use of conditional set instructions.
17938 .Sp
17939 This switch is mainly for debugging the compiler and will likely be removed
17940 in a future version.
17941 .IP "\fB\-mcond\-exec\fR" 4
17942 .IX Item "-mcond-exec"
17943 Enable the use of conditional execution (default).
17944 .Sp
17945 This switch is mainly for debugging the compiler and will likely be removed
17946 in a future version.
17947 .IP "\fB\-mno\-cond\-exec\fR" 4
17948 .IX Item "-mno-cond-exec"
17949 Disable the use of conditional execution.
17950 .Sp
17951 This switch is mainly for debugging the compiler and will likely be removed
17952 in a future version.
17953 .IP "\fB\-mvliw\-branch\fR" 4
17954 .IX Item "-mvliw-branch"
17955 Run a pass to pack branches into \s-1VLIW\s0 instructions (default).
17956 .Sp
17957 This switch is mainly for debugging the compiler and will likely be removed
17958 in a future version.
17959 .IP "\fB\-mno\-vliw\-branch\fR" 4
17960 .IX Item "-mno-vliw-branch"
17961 Do not run a pass to pack branches into \s-1VLIW\s0 instructions.
17962 .Sp
17963 This switch is mainly for debugging the compiler and will likely be removed
17964 in a future version.
17965 .IP "\fB\-mmulti\-cond\-exec\fR" 4
17966 .IX Item "-mmulti-cond-exec"
17967 Enable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution
17968 (default).
17969 .Sp
17970 This switch is mainly for debugging the compiler and will likely be removed
17971 in a future version.
17972 .IP "\fB\-mno\-multi\-cond\-exec\fR" 4
17973 .IX Item "-mno-multi-cond-exec"
17974 Disable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution.
17975 .Sp
17976 This switch is mainly for debugging the compiler and will likely be removed
17977 in a future version.
17978 .IP "\fB\-mnested\-cond\-exec\fR" 4
17979 .IX Item "-mnested-cond-exec"
17980 Enable nested conditional execution optimizations (default).
17981 .Sp
17982 This switch is mainly for debugging the compiler and will likely be removed
17983 in a future version.
17984 .IP "\fB\-mno\-nested\-cond\-exec\fR" 4
17985 .IX Item "-mno-nested-cond-exec"
17986 Disable nested conditional execution optimizations.
17987 .Sp
17988 This switch is mainly for debugging the compiler and will likely be removed
17989 in a future version.
17990 .IP "\fB\-moptimize\-membar\fR" 4
17991 .IX Item "-moptimize-membar"
17992 This switch removes redundant \f(CW\*(C`membar\*(C'\fR instructions from the
17993 compiler-generated code.  It is enabled by default.
17994 .IP "\fB\-mno\-optimize\-membar\fR" 4
17995 .IX Item "-mno-optimize-membar"
17996 This switch disables the automatic removal of redundant \f(CW\*(C`membar\*(C'\fR
17997 instructions from the generated code.
17998 .IP "\fB\-mtomcat\-stats\fR" 4
17999 .IX Item "-mtomcat-stats"
18000 Cause gas to print out tomcat statistics.
18001 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
18002 .IX Item "-mcpu=cpu"
18003 Select the processor type for which to generate code.  Possible values are
18004 \&\fBfrv\fR, \fBfr550\fR, \fBtomcat\fR, \fBfr500\fR, \fBfr450\fR,
18005 \&\fBfr405\fR, \fBfr400\fR, \fBfr300\fR and \fBsimple\fR.
18006 .PP
18007 \fIGNU/Linux Options\fR
18008 .IX Subsection "GNU/Linux Options"
18009 .PP
18010 These \fB\-m\fR options are defined for GNU/Linux targets:
18011 .IP "\fB\-mglibc\fR" 4
18012 .IX Item "-mglibc"
18013 Use the \s-1GNU C\s0 library.  This is the default except
18014 on \fB*\-*\-linux\-*uclibc*\fR, \fB*\-*\-linux\-*musl*\fR and
18015 \&\fB*\-*\-linux\-*android*\fR targets.
18016 .IP "\fB\-muclibc\fR" 4
18017 .IX Item "-muclibc"
18018 Use uClibc C library.  This is the default on
18019 \&\fB*\-*\-linux\-*uclibc*\fR targets.
18020 .IP "\fB\-mmusl\fR" 4
18021 .IX Item "-mmusl"
18022 Use the musl C library.  This is the default on
18023 \&\fB*\-*\-linux\-*musl*\fR targets.
18024 .IP "\fB\-mbionic\fR" 4
18025 .IX Item "-mbionic"
18026 Use Bionic C library.  This is the default on
18027 \&\fB*\-*\-linux\-*android*\fR targets.
18028 .IP "\fB\-mandroid\fR" 4
18029 .IX Item "-mandroid"
18030 Compile code compatible with Android platform.  This is the default on
18031 \&\fB*\-*\-linux\-*android*\fR targets.
18032 .Sp
18033 When compiling, this option enables \fB\-mbionic\fR, \fB\-fPIC\fR,
18034 \&\fB\-fno\-exceptions\fR and \fB\-fno\-rtti\fR by default.  When linking,
18035 this option makes the \s-1GCC\s0 driver pass Android-specific options to the linker.
18036 Finally, this option causes the preprocessor macro \f(CW\*(C`_\|_ANDROID_\|_\*(C'\fR
18037 to be defined.
18038 .IP "\fB\-tno\-android\-cc\fR" 4
18039 .IX Item "-tno-android-cc"
18040 Disable compilation effects of \fB\-mandroid\fR, i.e., do not enable
18041 \&\fB\-mbionic\fR, \fB\-fPIC\fR, \fB\-fno\-exceptions\fR and
18042 \&\fB\-fno\-rtti\fR by default.
18043 .IP "\fB\-tno\-android\-ld\fR" 4
18044 .IX Item "-tno-android-ld"
18045 Disable linking effects of \fB\-mandroid\fR, i.e., pass standard Linux
18046 linking options to the linker.
18047 .PP
18048 \fIH8/300 Options\fR
18049 .IX Subsection "H8/300 Options"
18050 .PP
18051 These \fB\-m\fR options are defined for the H8/300 implementations:
18052 .IP "\fB\-mrelax\fR" 4
18053 .IX Item "-mrelax"
18054 Shorten some address references at link time, when possible; uses the
18055 linker option \fB\-relax\fR.
18056 .IP "\fB\-mh\fR" 4
18057 .IX Item "-mh"
18058 Generate code for the H8/300H.
18059 .IP "\fB\-ms\fR" 4
18060 .IX Item "-ms"
18061 Generate code for the H8S.
18062 .IP "\fB\-mn\fR" 4
18063 .IX Item "-mn"
18064 Generate code for the H8S and H8/300H in the normal mode.  This switch
18065 must be used either with \fB\-mh\fR or \fB\-ms\fR.
18066 .IP "\fB\-ms2600\fR" 4
18067 .IX Item "-ms2600"
18068 Generate code for the H8S/2600.  This switch must be used with \fB\-ms\fR.
18069 .IP "\fB\-mexr\fR" 4
18070 .IX Item "-mexr"
18071 Extended registers are stored on stack before execution of function
18072 with monitor attribute. Default option is \fB\-mexr\fR.
18073 This option is valid only for H8S targets.
18074 .IP "\fB\-mno\-exr\fR" 4
18075 .IX Item "-mno-exr"
18076 Extended registers are not stored on stack before execution of function 
18077 with monitor attribute. Default option is \fB\-mno\-exr\fR. 
18078 This option is valid only for H8S targets.
18079 .IP "\fB\-mint32\fR" 4
18080 .IX Item "-mint32"
18081 Make \f(CW\*(C`int\*(C'\fR data 32 bits by default.
18082 .IP "\fB\-malign\-300\fR" 4
18083 .IX Item "-malign-300"
18084 On the H8/300H and H8S, use the same alignment rules as for the H8/300.
18085 The default for the H8/300H and H8S is to align longs and floats on
18086 4\-byte boundaries.
18087 \&\fB\-malign\-300\fR causes them to be aligned on 2\-byte boundaries.
18088 This option has no effect on the H8/300.
18089 .PP
18090 \fI\s-1HPPA\s0 Options\fR
18091 .IX Subsection "HPPA Options"
18092 .PP
18093 These \fB\-m\fR options are defined for the \s-1HPPA\s0 family of computers:
18094 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
18095 .IX Item "-march=architecture-type"
18096 Generate code for the specified architecture.  The choices for
18097 \&\fIarchitecture-type\fR are \fB1.0\fR for \s-1PA 1.0,\s0 \fB1.1\fR for \s-1PA
18098 1.1,\s0 and \fB2.0\fR for \s-1PA 2.0\s0 processors.  Refer to
18099 \&\fI/usr/lib/sched.models\fR on an HP-UX system to determine the proper
18100 architecture option for your machine.  Code compiled for lower numbered
18101 architectures runs on higher numbered architectures, but not the
18102 other way around.
18103 .IP "\fB\-mpa\-risc\-1\-0\fR" 4
18104 .IX Item "-mpa-risc-1-0"
18105 .PD 0
18106 .IP "\fB\-mpa\-risc\-1\-1\fR" 4
18107 .IX Item "-mpa-risc-1-1"
18108 .IP "\fB\-mpa\-risc\-2\-0\fR" 4
18109 .IX Item "-mpa-risc-2-0"
18110 .PD
18111 Synonyms for \fB\-march=1.0\fR, \fB\-march=1.1\fR, and \fB\-march=2.0\fR respectively.
18112 .IP "\fB\-mcaller\-copies\fR" 4
18113 .IX Item "-mcaller-copies"
18114 The caller copies function arguments passed by hidden reference.  This
18115 option should be used with care as it is not compatible with the default
18116 32\-bit runtime.  However, only aggregates larger than eight bytes are
18117 passed by hidden reference and the option provides better compatibility
18118 with OpenMP.
18119 .IP "\fB\-mjump\-in\-delay\fR" 4
18120 .IX Item "-mjump-in-delay"
18121 This option is ignored and provided for compatibility purposes only.
18122 .IP "\fB\-mdisable\-fpregs\fR" 4
18123 .IX Item "-mdisable-fpregs"
18124 Prevent floating-point registers from being used in any manner.  This is
18125 necessary for compiling kernels that perform lazy context switching of
18126 floating-point registers.  If you use this option and attempt to perform
18127 floating-point operations, the compiler aborts.
18128 .IP "\fB\-mdisable\-indexing\fR" 4
18129 .IX Item "-mdisable-indexing"
18130 Prevent the compiler from using indexing address modes.  This avoids some
18131 rather obscure problems when compiling \s-1MIG\s0 generated code under \s-1MACH.\s0
18132 .IP "\fB\-mno\-space\-regs\fR" 4
18133 .IX Item "-mno-space-regs"
18134 Generate code that assumes the target has no space registers.  This allows
18135 \&\s-1GCC\s0 to generate faster indirect calls and use unscaled index address modes.
18136 .Sp
18137 Such code is suitable for level 0 \s-1PA\s0 systems and kernels.
18138 .IP "\fB\-mfast\-indirect\-calls\fR" 4
18139 .IX Item "-mfast-indirect-calls"
18140 Generate code that assumes calls never cross space boundaries.  This
18141 allows \s-1GCC\s0 to emit code that performs faster indirect calls.
18142 .Sp
18143 This option does not work in the presence of shared libraries or nested
18144 functions.
18145 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
18146 .IX Item "-mfixed-range=register-range"
18147 Generate code treating the given register range as fixed registers.
18148 A fixed register is one that the register allocator cannot use.  This is
18149 useful when compiling kernel code.  A register range is specified as
18150 two registers separated by a dash.  Multiple register ranges can be
18151 specified separated by a comma.
18152 .IP "\fB\-mlong\-load\-store\fR" 4
18153 .IX Item "-mlong-load-store"
18154 Generate 3\-instruction load and store sequences as sometimes required by
18155 the HP-UX 10 linker.  This is equivalent to the \fB+k\fR option to
18156 the \s-1HP\s0 compilers.
18157 .IP "\fB\-mportable\-runtime\fR" 4
18158 .IX Item "-mportable-runtime"
18159 Use the portable calling conventions proposed by \s-1HP\s0 for \s-1ELF\s0 systems.
18160 .IP "\fB\-mgas\fR" 4
18161 .IX Item "-mgas"
18162 Enable the use of assembler directives only \s-1GAS\s0 understands.
18163 .IP "\fB\-mschedule=\fR\fIcpu-type\fR" 4
18164 .IX Item "-mschedule=cpu-type"
18165 Schedule code according to the constraints for the machine type
18166 \&\fIcpu-type\fR.  The choices for \fIcpu-type\fR are \fB700\fR
18167 \&\fB7100\fR, \fB7100LC\fR, \fB7200\fR, \fB7300\fR and \fB8000\fR.  Refer
18168 to \fI/usr/lib/sched.models\fR on an HP-UX system to determine the
18169 proper scheduling option for your machine.  The default scheduling is
18170 \&\fB8000\fR.
18171 .IP "\fB\-mlinker\-opt\fR" 4
18172 .IX Item "-mlinker-opt"
18173 Enable the optimization pass in the HP-UX linker.  Note this makes symbolic
18174 debugging impossible.  It also triggers a bug in the HP-UX 8 and HP-UX 9
18175 linkers in which they give bogus error messages when linking some programs.
18176 .IP "\fB\-msoft\-float\fR" 4
18177 .IX Item "-msoft-float"
18178 Generate output containing library calls for floating point.
18179 \&\fBWarning:\fR the requisite libraries are not available for all \s-1HPPA\s0
18180 targets.  Normally the facilities of the machine's usual C compiler are
18181 used, but this cannot be done directly in cross-compilation.  You must make
18182 your own arrangements to provide suitable library functions for
18183 cross-compilation.
18184 .Sp
18185 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
18186 therefore, it is only useful if you compile \fIall\fR of a program with
18187 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
18188 library that comes with \s-1GCC,\s0 with \fB\-msoft\-float\fR in order for
18189 this to work.
18190 .IP "\fB\-msio\fR" 4
18191 .IX Item "-msio"
18192 Generate the predefine, \f(CW\*(C`_SIO\*(C'\fR, for server \s-1IO.\s0  The default is
18193 \&\fB\-mwsio\fR.  This generates the predefines, \f(CW\*(C`_\|_hp9000s700\*(C'\fR,
18194 \&\f(CW\*(C`_\|_hp9000s700_\|_\*(C'\fR and \f(CW\*(C`_WSIO\*(C'\fR, for workstation \s-1IO.\s0  These
18195 options are available under HP-UX and HI-UX.
18196 .IP "\fB\-mgnu\-ld\fR" 4
18197 .IX Item "-mgnu-ld"
18198 Use options specific to \s-1GNU\s0 \fBld\fR.
18199 This passes \fB\-shared\fR to \fBld\fR when
18200 building a shared library.  It is the default when \s-1GCC\s0 is configured,
18201 explicitly or implicitly, with the \s-1GNU\s0 linker.  This option does not
18202 affect which \fBld\fR is called; it only changes what parameters
18203 are passed to that \fBld\fR.
18204 The \fBld\fR that is called is determined by the
18205 \&\fB\-\-with\-ld\fR configure option, \s-1GCC\s0's program search path, and
18206 finally by the user's \fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed
18207 using \fBwhich `gcc \-print\-prog\-name=ld`\fR.  This option is only available
18208 on the 64\-bit HP-UX \s-1GCC,\s0 i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
18209 .IP "\fB\-mhp\-ld\fR" 4
18210 .IX Item "-mhp-ld"
18211 Use options specific to \s-1HP\s0 \fBld\fR.
18212 This passes \fB\-b\fR to \fBld\fR when building
18213 a shared library and passes \fB+Accept TypeMismatch\fR to \fBld\fR on all
18214 links.  It is the default when \s-1GCC\s0 is configured, explicitly or
18215 implicitly, with the \s-1HP\s0 linker.  This option does not affect
18216 which \fBld\fR is called; it only changes what parameters are passed to that
18217 \&\fBld\fR.
18218 The \fBld\fR that is called is determined by the \fB\-\-with\-ld\fR
18219 configure option, \s-1GCC\s0's program search path, and finally by the user's
18220 \&\fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed using \fBwhich
18221 `gcc \-print\-prog\-name=ld`\fR.  This option is only available on the 64\-bit
18222 HP-UX \s-1GCC,\s0 i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
18223 .IP "\fB\-mlong\-calls\fR" 4
18224 .IX Item "-mlong-calls"
18225 Generate code that uses long call sequences.  This ensures that a call
18226 is always able to reach linker generated stubs.  The default is to generate
18227 long calls only when the distance from the call site to the beginning
18228 of the function or translation unit, as the case may be, exceeds a
18229 predefined limit set by the branch type being used.  The limits for
18230 normal calls are 7,600,000 and 240,000 bytes, respectively for the
18231 \&\s-1PA 2.0\s0 and \s-1PA 1.X\s0 architectures.  Sibcalls are always limited at
18232 240,000 bytes.
18233 .Sp
18234 Distances are measured from the beginning of functions when using the
18235 \&\fB\-ffunction\-sections\fR option, or when using the \fB\-mgas\fR
18236 and \fB\-mno\-portable\-runtime\fR options together under HP-UX with
18237 the \s-1SOM\s0 linker.
18238 .Sp
18239 It is normally not desirable to use this option as it degrades
18240 performance.  However, it may be useful in large applications,
18241 particularly when partial linking is used to build the application.
18242 .Sp
18243 The types of long calls used depends on the capabilities of the
18244 assembler and linker, and the type of code being generated.  The
18245 impact on systems that support long absolute calls, and long pic
18246 symbol-difference or pc-relative calls should be relatively small.
18247 However, an indirect call is used on 32\-bit \s-1ELF\s0 systems in pic code
18248 and it is quite long.
18249 .IP "\fB\-munix=\fR\fIunix-std\fR" 4
18250 .IX Item "-munix=unix-std"
18251 Generate compiler predefines and select a startfile for the specified
18252 \&\s-1UNIX\s0 standard.  The choices for \fIunix-std\fR are \fB93\fR, \fB95\fR
18253 and \fB98\fR.  \fB93\fR is supported on all HP-UX versions.  \fB95\fR
18254 is available on HP-UX 10.10 and later.  \fB98\fR is available on HP-UX
18255 11.11 and later.  The default values are \fB93\fR for HP-UX 10.00,
18256 \&\fB95\fR for HP-UX 10.10 though to 11.00, and \fB98\fR for HP-UX 11.11
18257 and later.
18258 .Sp
18259 \&\fB\-munix=93\fR provides the same predefines as \s-1GCC 3.3\s0 and 3.4.
18260 \&\fB\-munix=95\fR provides additional predefines for \f(CW\*(C`XOPEN_UNIX\*(C'\fR
18261 and \f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, and the startfile \fIunix95.o\fR.
18262 \&\fB\-munix=98\fR provides additional predefines for \f(CW\*(C`_XOPEN_UNIX\*(C'\fR,
18263 \&\f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, \f(CW\*(C`_INCLUDE_\|_STDC_A1_SOURCE\*(C'\fR and
18264 \&\f(CW\*(C`_INCLUDE_XOPEN_SOURCE_500\*(C'\fR, and the startfile \fIunix98.o\fR.
18265 .Sp
18266 It is \fIimportant\fR to note that this option changes the interfaces
18267 for various library routines.  It also affects the operational behavior
18268 of the C library.  Thus, \fIextreme\fR care is needed in using this
18269 option.
18270 .Sp
18271 Library code that is intended to operate with more than one \s-1UNIX\s0
18272 standard must test, set and restore the variable \f(CW\*(C`_\|_xpg4_extended_mask\*(C'\fR
18273 as appropriate.  Most \s-1GNU\s0 software doesn't provide this capability.
18274 .IP "\fB\-nolibdld\fR" 4
18275 .IX Item "-nolibdld"
18276 Suppress the generation of link options to search libdld.sl when the
18277 \&\fB\-static\fR option is specified on HP-UX 10 and later.
18278 .IP "\fB\-static\fR" 4
18279 .IX Item "-static"
18280 The HP-UX implementation of setlocale in libc has a dependency on
18281 libdld.sl.  There isn't an archive version of libdld.sl.  Thus,
18282 when the \fB\-static\fR option is specified, special link options
18283 are needed to resolve this dependency.
18284 .Sp
18285 On HP-UX 10 and later, the \s-1GCC\s0 driver adds the necessary options to
18286 link with libdld.sl when the \fB\-static\fR option is specified.
18287 This causes the resulting binary to be dynamic.  On the 64\-bit port,
18288 the linkers generate dynamic binaries by default in any case.  The
18289 \&\fB\-nolibdld\fR option can be used to prevent the \s-1GCC\s0 driver from
18290 adding these link options.
18291 .IP "\fB\-threads\fR" 4
18292 .IX Item "-threads"
18293 Add support for multithreading with the \fIdce thread\fR library
18294 under HP-UX.  This option sets flags for both the preprocessor and
18295 linker.
18296 .PP
18297 \fI\s-1IA\-64\s0 Options\fR
18298 .IX Subsection "IA-64 Options"
18299 .PP
18300 These are the \fB\-m\fR options defined for the Intel \s-1IA\-64\s0 architecture.
18301 .IP "\fB\-mbig\-endian\fR" 4
18302 .IX Item "-mbig-endian"
18303 Generate code for a big-endian target.  This is the default for HP-UX.
18304 .IP "\fB\-mlittle\-endian\fR" 4
18305 .IX Item "-mlittle-endian"
18306 Generate code for a little-endian target.  This is the default for \s-1AIX5\s0
18307 and GNU/Linux.
18308 .IP "\fB\-mgnu\-as\fR" 4
18309 .IX Item "-mgnu-as"
18310 .PD 0
18311 .IP "\fB\-mno\-gnu\-as\fR" 4
18312 .IX Item "-mno-gnu-as"
18313 .PD
18314 Generate (or don't) code for the \s-1GNU\s0 assembler.  This is the default.
18315 .IP "\fB\-mgnu\-ld\fR" 4
18316 .IX Item "-mgnu-ld"
18317 .PD 0
18318 .IP "\fB\-mno\-gnu\-ld\fR" 4
18319 .IX Item "-mno-gnu-ld"
18320 .PD
18321 Generate (or don't) code for the \s-1GNU\s0 linker.  This is the default.
18322 .IP "\fB\-mno\-pic\fR" 4
18323 .IX Item "-mno-pic"
18324 Generate code that does not use a global pointer register.  The result
18325 is not position independent code, and violates the \s-1IA\-64 ABI.\s0
18326 .IP "\fB\-mvolatile\-asm\-stop\fR" 4
18327 .IX Item "-mvolatile-asm-stop"
18328 .PD 0
18329 .IP "\fB\-mno\-volatile\-asm\-stop\fR" 4
18330 .IX Item "-mno-volatile-asm-stop"
18331 .PD
18332 Generate (or don't) a stop bit immediately before and after volatile asm
18333 statements.
18334 .IP "\fB\-mregister\-names\fR" 4
18335 .IX Item "-mregister-names"
18336 .PD 0
18337 .IP "\fB\-mno\-register\-names\fR" 4
18338 .IX Item "-mno-register-names"
18339 .PD
18340 Generate (or don't) \fBin\fR, \fBloc\fR, and \fBout\fR register names for
18341 the stacked registers.  This may make assembler output more readable.
18342 .IP "\fB\-mno\-sdata\fR" 4
18343 .IX Item "-mno-sdata"
18344 .PD 0
18345 .IP "\fB\-msdata\fR" 4
18346 .IX Item "-msdata"
18347 .PD
18348 Disable (or enable) optimizations that use the small data section.  This may
18349 be useful for working around optimizer bugs.
18350 .IP "\fB\-mconstant\-gp\fR" 4
18351 .IX Item "-mconstant-gp"
18352 Generate code that uses a single constant global pointer value.  This is
18353 useful when compiling kernel code.
18354 .IP "\fB\-mauto\-pic\fR" 4
18355 .IX Item "-mauto-pic"
18356 Generate code that is self-relocatable.  This implies \fB\-mconstant\-gp\fR.
18357 This is useful when compiling firmware code.
18358 .IP "\fB\-minline\-float\-divide\-min\-latency\fR" 4
18359 .IX Item "-minline-float-divide-min-latency"
18360 Generate code for inline divides of floating-point values
18361 using the minimum latency algorithm.
18362 .IP "\fB\-minline\-float\-divide\-max\-throughput\fR" 4
18363 .IX Item "-minline-float-divide-max-throughput"
18364 Generate code for inline divides of floating-point values
18365 using the maximum throughput algorithm.
18366 .IP "\fB\-mno\-inline\-float\-divide\fR" 4
18367 .IX Item "-mno-inline-float-divide"
18368 Do not generate inline code for divides of floating-point values.
18369 .IP "\fB\-minline\-int\-divide\-min\-latency\fR" 4
18370 .IX Item "-minline-int-divide-min-latency"
18371 Generate code for inline divides of integer values
18372 using the minimum latency algorithm.
18373 .IP "\fB\-minline\-int\-divide\-max\-throughput\fR" 4
18374 .IX Item "-minline-int-divide-max-throughput"
18375 Generate code for inline divides of integer values
18376 using the maximum throughput algorithm.
18377 .IP "\fB\-mno\-inline\-int\-divide\fR" 4
18378 .IX Item "-mno-inline-int-divide"
18379 Do not generate inline code for divides of integer values.
18380 .IP "\fB\-minline\-sqrt\-min\-latency\fR" 4
18381 .IX Item "-minline-sqrt-min-latency"
18382 Generate code for inline square roots
18383 using the minimum latency algorithm.
18384 .IP "\fB\-minline\-sqrt\-max\-throughput\fR" 4
18385 .IX Item "-minline-sqrt-max-throughput"
18386 Generate code for inline square roots
18387 using the maximum throughput algorithm.
18388 .IP "\fB\-mno\-inline\-sqrt\fR" 4
18389 .IX Item "-mno-inline-sqrt"
18390 Do not generate inline code for \f(CW\*(C`sqrt\*(C'\fR.
18391 .IP "\fB\-mfused\-madd\fR" 4
18392 .IX Item "-mfused-madd"
18393 .PD 0
18394 .IP "\fB\-mno\-fused\-madd\fR" 4
18395 .IX Item "-mno-fused-madd"
18396 .PD
18397 Do (don't) generate code that uses the fused multiply/add or multiply/subtract
18398 instructions.  The default is to use these instructions.
18399 .IP "\fB\-mno\-dwarf2\-asm\fR" 4
18400 .IX Item "-mno-dwarf2-asm"
18401 .PD 0
18402 .IP "\fB\-mdwarf2\-asm\fR" 4
18403 .IX Item "-mdwarf2-asm"
18404 .PD
18405 Don't (or do) generate assembler code for the \s-1DWARF\s0 line number debugging
18406 info.  This may be useful when not using the \s-1GNU\s0 assembler.
18407 .IP "\fB\-mearly\-stop\-bits\fR" 4
18408 .IX Item "-mearly-stop-bits"
18409 .PD 0
18410 .IP "\fB\-mno\-early\-stop\-bits\fR" 4
18411 .IX Item "-mno-early-stop-bits"
18412 .PD
18413 Allow stop bits to be placed earlier than immediately preceding the
18414 instruction that triggered the stop bit.  This can improve instruction
18415 scheduling, but does not always do so.
18416 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
18417 .IX Item "-mfixed-range=register-range"
18418 Generate code treating the given register range as fixed registers.
18419 A fixed register is one that the register allocator cannot use.  This is
18420 useful when compiling kernel code.  A register range is specified as
18421 two registers separated by a dash.  Multiple register ranges can be
18422 specified separated by a comma.
18423 .IP "\fB\-mtls\-size=\fR\fItls-size\fR" 4
18424 .IX Item "-mtls-size=tls-size"
18425 Specify bit size of immediate \s-1TLS\s0 offsets.  Valid values are 14, 22, and
18426 64.
18427 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
18428 .IX Item "-mtune=cpu-type"
18429 Tune the instruction scheduling for a particular \s-1CPU,\s0 Valid values are
18430 \&\fBitanium\fR, \fBitanium1\fR, \fBmerced\fR, \fBitanium2\fR,
18431 and \fBmckinley\fR.
18432 .IP "\fB\-milp32\fR" 4
18433 .IX Item "-milp32"
18434 .PD 0
18435 .IP "\fB\-mlp64\fR" 4
18436 .IX Item "-mlp64"
18437 .PD
18438 Generate code for a 32\-bit or 64\-bit environment.
18439 The 32\-bit environment sets int, long and pointer to 32 bits.
18440 The 64\-bit environment sets int to 32 bits and long and pointer
18441 to 64 bits.  These are HP-UX specific flags.
18442 .IP "\fB\-mno\-sched\-br\-data\-spec\fR" 4
18443 .IX Item "-mno-sched-br-data-spec"
18444 .PD 0
18445 .IP "\fB\-msched\-br\-data\-spec\fR" 4
18446 .IX Item "-msched-br-data-spec"
18447 .PD
18448 (Dis/En)able data speculative scheduling before reload.
18449 This results in generation of \f(CW\*(C`ld.a\*(C'\fR instructions and
18450 the corresponding check instructions (\f(CW\*(C`ld.c\*(C'\fR / \f(CW\*(C`chk.a\*(C'\fR).
18451 The default setting is disabled.
18452 .IP "\fB\-msched\-ar\-data\-spec\fR" 4
18453 .IX Item "-msched-ar-data-spec"
18454 .PD 0
18455 .IP "\fB\-mno\-sched\-ar\-data\-spec\fR" 4
18456 .IX Item "-mno-sched-ar-data-spec"
18457 .PD
18458 (En/Dis)able data speculative scheduling after reload.
18459 This results in generation of \f(CW\*(C`ld.a\*(C'\fR instructions and
18460 the corresponding check instructions (\f(CW\*(C`ld.c\*(C'\fR / \f(CW\*(C`chk.a\*(C'\fR).
18461 The default setting is enabled.
18462 .IP "\fB\-mno\-sched\-control\-spec\fR" 4
18463 .IX Item "-mno-sched-control-spec"
18464 .PD 0
18465 .IP "\fB\-msched\-control\-spec\fR" 4
18466 .IX Item "-msched-control-spec"
18467 .PD
18468 (Dis/En)able control speculative scheduling.  This feature is
18469 available only during region scheduling (i.e. before reload).
18470 This results in generation of the \f(CW\*(C`ld.s\*(C'\fR instructions and
18471 the corresponding check instructions \f(CW\*(C`chk.s\*(C'\fR.
18472 The default setting is disabled.
18473 .IP "\fB\-msched\-br\-in\-data\-spec\fR" 4
18474 .IX Item "-msched-br-in-data-spec"
18475 .PD 0
18476 .IP "\fB\-mno\-sched\-br\-in\-data\-spec\fR" 4
18477 .IX Item "-mno-sched-br-in-data-spec"
18478 .PD
18479 (En/Dis)able speculative scheduling of the instructions that
18480 are dependent on the data speculative loads before reload.
18481 This is effective only with \fB\-msched\-br\-data\-spec\fR enabled.
18482 The default setting is enabled.
18483 .IP "\fB\-msched\-ar\-in\-data\-spec\fR" 4
18484 .IX Item "-msched-ar-in-data-spec"
18485 .PD 0
18486 .IP "\fB\-mno\-sched\-ar\-in\-data\-spec\fR" 4
18487 .IX Item "-mno-sched-ar-in-data-spec"
18488 .PD
18489 (En/Dis)able speculative scheduling of the instructions that
18490 are dependent on the data speculative loads after reload.
18491 This is effective only with \fB\-msched\-ar\-data\-spec\fR enabled.
18492 The default setting is enabled.
18493 .IP "\fB\-msched\-in\-control\-spec\fR" 4
18494 .IX Item "-msched-in-control-spec"
18495 .PD 0
18496 .IP "\fB\-mno\-sched\-in\-control\-spec\fR" 4
18497 .IX Item "-mno-sched-in-control-spec"
18498 .PD
18499 (En/Dis)able speculative scheduling of the instructions that
18500 are dependent on the control speculative loads.
18501 This is effective only with \fB\-msched\-control\-spec\fR enabled.
18502 The default setting is enabled.
18503 .IP "\fB\-mno\-sched\-prefer\-non\-data\-spec\-insns\fR" 4
18504 .IX Item "-mno-sched-prefer-non-data-spec-insns"
18505 .PD 0
18506 .IP "\fB\-msched\-prefer\-non\-data\-spec\-insns\fR" 4
18507 .IX Item "-msched-prefer-non-data-spec-insns"
18508 .PD
18509 If enabled, data-speculative instructions are chosen for schedule
18510 only if there are no other choices at the moment.  This makes
18511 the use of the data speculation much more conservative.
18512 The default setting is disabled.
18513 .IP "\fB\-mno\-sched\-prefer\-non\-control\-spec\-insns\fR" 4
18514 .IX Item "-mno-sched-prefer-non-control-spec-insns"
18515 .PD 0
18516 .IP "\fB\-msched\-prefer\-non\-control\-spec\-insns\fR" 4
18517 .IX Item "-msched-prefer-non-control-spec-insns"
18518 .PD
18519 If enabled, control-speculative instructions are chosen for schedule
18520 only if there are no other choices at the moment.  This makes
18521 the use of the control speculation much more conservative.
18522 The default setting is disabled.
18523 .IP "\fB\-mno\-sched\-count\-spec\-in\-critical\-path\fR" 4
18524 .IX Item "-mno-sched-count-spec-in-critical-path"
18525 .PD 0
18526 .IP "\fB\-msched\-count\-spec\-in\-critical\-path\fR" 4
18527 .IX Item "-msched-count-spec-in-critical-path"
18528 .PD
18529 If enabled, speculative dependencies are considered during
18530 computation of the instructions priorities.  This makes the use of the
18531 speculation a bit more conservative.
18532 The default setting is disabled.
18533 .IP "\fB\-msched\-spec\-ldc\fR" 4
18534 .IX Item "-msched-spec-ldc"
18535 Use a simple data speculation check.  This option is on by default.
18536 .IP "\fB\-msched\-control\-spec\-ldc\fR" 4
18537 .IX Item "-msched-control-spec-ldc"
18538 Use a simple check for control speculation.  This option is on by default.
18539 .IP "\fB\-msched\-stop\-bits\-after\-every\-cycle\fR" 4
18540 .IX Item "-msched-stop-bits-after-every-cycle"
18541 Place a stop bit after every cycle when scheduling.  This option is on
18542 by default.
18543 .IP "\fB\-msched\-fp\-mem\-deps\-zero\-cost\fR" 4
18544 .IX Item "-msched-fp-mem-deps-zero-cost"
18545 Assume that floating-point stores and loads are not likely to cause a conflict
18546 when placed into the same instruction group.  This option is disabled by
18547 default.
18548 .IP "\fB\-msel\-sched\-dont\-check\-control\-spec\fR" 4
18549 .IX Item "-msel-sched-dont-check-control-spec"
18550 Generate checks for control speculation in selective scheduling.
18551 This flag is disabled by default.
18552 .IP "\fB\-msched\-max\-memory\-insns=\fR\fImax-insns\fR" 4
18553 .IX Item "-msched-max-memory-insns=max-insns"
18554 Limit on the number of memory insns per instruction group, giving lower
18555 priority to subsequent memory insns attempting to schedule in the same
18556 instruction group. Frequently useful to prevent cache bank conflicts.
18557 The default value is 1.
18558 .IP "\fB\-msched\-max\-memory\-insns\-hard\-limit\fR" 4
18559 .IX Item "-msched-max-memory-insns-hard-limit"
18560 Makes the limit specified by \fBmsched-max-memory-insns\fR a hard limit,
18561 disallowing more than that number in an instruction group.
18562 Otherwise, the limit is \*(L"soft\*(R", meaning that non-memory operations
18563 are preferred when the limit is reached, but memory operations may still
18564 be scheduled.
18565 .PP
18566 \fI\s-1LM32\s0 Options\fR
18567 .IX Subsection "LM32 Options"
18568 .PP
18569 These \fB\-m\fR options are defined for the LatticeMico32 architecture:
18570 .IP "\fB\-mbarrel\-shift\-enabled\fR" 4
18571 .IX Item "-mbarrel-shift-enabled"
18572 Enable barrel-shift instructions.
18573 .IP "\fB\-mdivide\-enabled\fR" 4
18574 .IX Item "-mdivide-enabled"
18575 Enable divide and modulus instructions.
18576 .IP "\fB\-mmultiply\-enabled\fR" 4
18577 .IX Item "-mmultiply-enabled"
18578 Enable multiply instructions.
18579 .IP "\fB\-msign\-extend\-enabled\fR" 4
18580 .IX Item "-msign-extend-enabled"
18581 Enable sign extend instructions.
18582 .IP "\fB\-muser\-enabled\fR" 4
18583 .IX Item "-muser-enabled"
18584 Enable user-defined instructions.
18585 .PP
18586 \fIM32C Options\fR
18587 .IX Subsection "M32C Options"
18588 .IP "\fB\-mcpu=\fR\fIname\fR" 4
18589 .IX Item "-mcpu=name"
18590 Select the \s-1CPU\s0 for which code is generated.  \fIname\fR may be one of
18591 \&\fBr8c\fR for the R8C/Tiny series, \fBm16c\fR for the M16C (up to
18592 /60) series, \fBm32cm\fR for the M16C/80 series, or \fBm32c\fR for
18593 the M32C/80 series.
18594 .IP "\fB\-msim\fR" 4
18595 .IX Item "-msim"
18596 Specifies that the program will be run on the simulator.  This causes
18597 an alternate runtime library to be linked in which supports, for
18598 example, file I/O.  You must not use this option when generating
18599 programs that will run on real hardware; you must provide your own
18600 runtime library for whatever I/O functions are needed.
18601 .IP "\fB\-memregs=\fR\fInumber\fR" 4
18602 .IX Item "-memregs=number"
18603 Specifies the number of memory-based pseudo-registers \s-1GCC\s0 uses
18604 during code generation.  These pseudo-registers are used like real
18605 registers, so there is a tradeoff between \s-1GCC\s0's ability to fit the
18606 code into available registers, and the performance penalty of using
18607 memory instead of registers.  Note that all modules in a program must
18608 be compiled with the same value for this option.  Because of that, you
18609 must not use this option with \s-1GCC\s0's default runtime libraries.
18610 .PP
18611 \fIM32R/D Options\fR
18612 .IX Subsection "M32R/D Options"
18613 .PP
18614 These \fB\-m\fR options are defined for Renesas M32R/D architectures:
18615 .IP "\fB\-m32r2\fR" 4
18616 .IX Item "-m32r2"
18617 Generate code for the M32R/2.
18618 .IP "\fB\-m32rx\fR" 4
18619 .IX Item "-m32rx"
18620 Generate code for the M32R/X.
18621 .IP "\fB\-m32r\fR" 4
18622 .IX Item "-m32r"
18623 Generate code for the M32R.  This is the default.
18624 .IP "\fB\-mmodel=small\fR" 4
18625 .IX Item "-mmodel=small"
18626 Assume all objects live in the lower 16MB of memory (so that their addresses
18627 can be loaded with the \f(CW\*(C`ld24\*(C'\fR instruction), and assume all subroutines
18628 are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
18629 This is the default.
18630 .Sp
18631 The addressability of a particular object can be set with the
18632 \&\f(CW\*(C`model\*(C'\fR attribute.
18633 .IP "\fB\-mmodel=medium\fR" 4
18634 .IX Item "-mmodel=medium"
18635 Assume objects may be anywhere in the 32\-bit address space (the compiler
18636 generates \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
18637 assume all subroutines are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
18638 .IP "\fB\-mmodel=large\fR" 4
18639 .IX Item "-mmodel=large"
18640 Assume objects may be anywhere in the 32\-bit address space (the compiler
18641 generates \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
18642 assume subroutines may not be reachable with the \f(CW\*(C`bl\*(C'\fR instruction
18643 (the compiler generates the much slower \f(CW\*(C`seth/add3/jl\*(C'\fR
18644 instruction sequence).
18645 .IP "\fB\-msdata=none\fR" 4
18646 .IX Item "-msdata=none"
18647 Disable use of the small data area.  Variables are put into
18648 one of \f(CW\*(C`.data\*(C'\fR, \f(CW\*(C`.bss\*(C'\fR, or \f(CW\*(C`.rodata\*(C'\fR (unless the
18649 \&\f(CW\*(C`section\*(C'\fR attribute has been specified).
18650 This is the default.
18651 .Sp
18652 The small data area consists of sections \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR.
18653 Objects may be explicitly put in the small data area with the
18654 \&\f(CW\*(C`section\*(C'\fR attribute using one of these sections.
18655 .IP "\fB\-msdata=sdata\fR" 4
18656 .IX Item "-msdata=sdata"
18657 Put small global and static data in the small data area, but do not
18658 generate special code to reference them.
18659 .IP "\fB\-msdata=use\fR" 4
18660 .IX Item "-msdata=use"
18661 Put small global and static data in the small data area, and generate
18662 special instructions to reference them.
18663 .IP "\fB\-G\fR \fInum\fR" 4
18664 .IX Item "-G num"
18665 Put global and static objects less than or equal to \fInum\fR bytes
18666 into the small data or \s-1BSS\s0 sections instead of the normal data or \s-1BSS\s0
18667 sections.  The default value of \fInum\fR is 8.
18668 The \fB\-msdata\fR option must be set to one of \fBsdata\fR or \fBuse\fR
18669 for this option to have any effect.
18670 .Sp
18671 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
18672 Compiling with different values of \fInum\fR may or may not work; if it
18673 doesn't the linker gives an error message\-\-\-incorrect code is not
18674 generated.
18675 .IP "\fB\-mdebug\fR" 4
18676 .IX Item "-mdebug"
18677 Makes the M32R\-specific code in the compiler display some statistics
18678 that might help in debugging programs.
18679 .IP "\fB\-malign\-loops\fR" 4
18680 .IX Item "-malign-loops"
18681 Align all loops to a 32\-byte boundary.
18682 .IP "\fB\-mno\-align\-loops\fR" 4
18683 .IX Item "-mno-align-loops"
18684 Do not enforce a 32\-byte alignment for loops.  This is the default.
18685 .IP "\fB\-missue\-rate=\fR\fInumber\fR" 4
18686 .IX Item "-missue-rate=number"
18687 Issue \fInumber\fR instructions per cycle.  \fInumber\fR can only be 1
18688 or 2.
18689 .IP "\fB\-mbranch\-cost=\fR\fInumber\fR" 4
18690 .IX Item "-mbranch-cost=number"
18691 \&\fInumber\fR can only be 1 or 2.  If it is 1 then branches are
18692 preferred over conditional code, if it is 2, then the opposite applies.
18693 .IP "\fB\-mflush\-trap=\fR\fInumber\fR" 4
18694 .IX Item "-mflush-trap=number"
18695 Specifies the trap number to use to flush the cache.  The default is
18696 12.  Valid numbers are between 0 and 15 inclusive.
18697 .IP "\fB\-mno\-flush\-trap\fR" 4
18698 .IX Item "-mno-flush-trap"
18699 Specifies that the cache cannot be flushed by using a trap.
18700 .IP "\fB\-mflush\-func=\fR\fIname\fR" 4
18701 .IX Item "-mflush-func=name"
18702 Specifies the name of the operating system function to call to flush
18703 the cache.  The default is \fB_flush_cache\fR, but a function call
18704 is only used if a trap is not available.
18705 .IP "\fB\-mno\-flush\-func\fR" 4
18706 .IX Item "-mno-flush-func"
18707 Indicates that there is no \s-1OS\s0 function for flushing the cache.
18708 .PP
18709 \fIM680x0 Options\fR
18710 .IX Subsection "M680x0 Options"
18711 .PP
18712 These are the \fB\-m\fR options defined for M680x0 and ColdFire processors.
18713 The default settings depend on which architecture was selected when
18714 the compiler was configured; the defaults for the most common choices
18715 are given below.
18716 .IP "\fB\-march=\fR\fIarch\fR" 4
18717 .IX Item "-march=arch"
18718 Generate code for a specific M680x0 or ColdFire instruction set
18719 architecture.  Permissible values of \fIarch\fR for M680x0
18720 architectures are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
18721 \&\fB68030\fR, \fB68040\fR, \fB68060\fR and \fBcpu32\fR.  ColdFire
18722 architectures are selected according to Freescale's \s-1ISA\s0 classification
18723 and the permissible values are: \fBisaa\fR, \fBisaaplus\fR,
18724 \&\fBisab\fR and \fBisac\fR.
18725 .Sp
18726 \&\s-1GCC\s0 defines a macro \f(CW\*(C`_\|_mcf\f(CIarch\f(CW_\|_\*(C'\fR whenever it is generating
18727 code for a ColdFire target.  The \fIarch\fR in this macro is one of the
18728 \&\fB\-march\fR arguments given above.
18729 .Sp
18730 When used together, \fB\-march\fR and \fB\-mtune\fR select code
18731 that runs on a family of similar processors but that is optimized
18732 for a particular microarchitecture.
18733 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
18734 .IX Item "-mcpu=cpu"
18735 Generate code for a specific M680x0 or ColdFire processor.
18736 The M680x0 \fIcpu\fRs are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
18737 \&\fB68030\fR, \fB68040\fR, \fB68060\fR, \fB68302\fR, \fB68332\fR
18738 and \fBcpu32\fR.  The ColdFire \fIcpu\fRs are given by the table
18739 below, which also classifies the CPUs into families:
18740 .RS 4
18741 .IP "Family : \fB\-mcpu\fR arguments" 4
18742 .IX Item "Family : -mcpu arguments"
18743 .PD 0
18744 .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
18745 .IX Item "51 : 51 51ac 51ag 51cn 51em 51je 51jf 51jg 51jm 51mm 51qe 51qm"
18746 .IP "\fB5206\fR : \fB5202\fR \fB5204\fR \fB5206\fR" 4
18747 .IX Item "5206 : 5202 5204 5206"
18748 .IP "\fB5206e\fR : \fB5206e\fR" 4
18749 .IX Item "5206e : 5206e"
18750 .IP "\fB5208\fR : \fB5207\fR \fB5208\fR" 4
18751 .IX Item "5208 : 5207 5208"
18752 .IP "\fB5211a\fR : \fB5210a\fR \fB5211a\fR" 4
18753 .IX Item "5211a : 5210a 5211a"
18754 .IP "\fB5213\fR : \fB5211\fR \fB5212\fR \fB5213\fR" 4
18755 .IX Item "5213 : 5211 5212 5213"
18756 .IP "\fB5216\fR : \fB5214\fR \fB5216\fR" 4
18757 .IX Item "5216 : 5214 5216"
18758 .IP "\fB52235\fR : \fB52230\fR \fB52231\fR \fB52232\fR \fB52233\fR \fB52234\fR \fB52235\fR" 4
18759 .IX Item "52235 : 52230 52231 52232 52233 52234 52235"
18760 .IP "\fB5225\fR : \fB5224\fR \fB5225\fR" 4
18761 .IX Item "5225 : 5224 5225"
18762 .IP "\fB52259\fR : \fB52252\fR \fB52254\fR \fB52255\fR \fB52256\fR \fB52258\fR \fB52259\fR" 4
18763 .IX Item "52259 : 52252 52254 52255 52256 52258 52259"
18764 .IP "\fB5235\fR : \fB5232\fR \fB5233\fR \fB5234\fR \fB5235\fR \fB523x\fR" 4
18765 .IX Item "5235 : 5232 5233 5234 5235 523x"
18766 .IP "\fB5249\fR : \fB5249\fR" 4
18767 .IX Item "5249 : 5249"
18768 .IP "\fB5250\fR : \fB5250\fR" 4
18769 .IX Item "5250 : 5250"
18770 .IP "\fB5271\fR : \fB5270\fR \fB5271\fR" 4
18771 .IX Item "5271 : 5270 5271"
18772 .IP "\fB5272\fR : \fB5272\fR" 4
18773 .IX Item "5272 : 5272"
18774 .IP "\fB5275\fR : \fB5274\fR \fB5275\fR" 4
18775 .IX Item "5275 : 5274 5275"
18776 .IP "\fB5282\fR : \fB5280\fR \fB5281\fR \fB5282\fR \fB528x\fR" 4
18777 .IX Item "5282 : 5280 5281 5282 528x"
18778 .IP "\fB53017\fR : \fB53011\fR \fB53012\fR \fB53013\fR \fB53014\fR \fB53015\fR \fB53016\fR \fB53017\fR" 4
18779 .IX Item "53017 : 53011 53012 53013 53014 53015 53016 53017"
18780 .IP "\fB5307\fR : \fB5307\fR" 4
18781 .IX Item "5307 : 5307"
18782 .IP "\fB5329\fR : \fB5327\fR \fB5328\fR \fB5329\fR \fB532x\fR" 4
18783 .IX Item "5329 : 5327 5328 5329 532x"
18784 .IP "\fB5373\fR : \fB5372\fR \fB5373\fR \fB537x\fR" 4
18785 .IX Item "5373 : 5372 5373 537x"
18786 .IP "\fB5407\fR : \fB5407\fR" 4
18787 .IX Item "5407 : 5407"
18788 .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
18789 .IX Item "5475 : 5470 5471 5472 5473 5474 5475 547x 5480 5481 5482 5483 5484 5485"
18790 .RE
18791 .RS 4
18792 .PD
18793 .Sp
18794 \&\fB\-mcpu=\fR\fIcpu\fR overrides \fB\-march=\fR\fIarch\fR if
18795 \&\fIarch\fR is compatible with \fIcpu\fR.  Other combinations of
18796 \&\fB\-mcpu\fR and \fB\-march\fR are rejected.
18797 .Sp
18798 \&\s-1GCC\s0 defines the macro \f(CW\*(C`_\|_mcf_cpu_\f(CIcpu\f(CW\*(C'\fR when ColdFire target
18799 \&\fIcpu\fR is selected.  It also defines \f(CW\*(C`_\|_mcf_family_\f(CIfamily\f(CW\*(C'\fR,
18800 where the value of \fIfamily\fR is given by the table above.
18801 .RE
18802 .IP "\fB\-mtune=\fR\fItune\fR" 4
18803 .IX Item "-mtune=tune"
18804 Tune the code for a particular microarchitecture within the
18805 constraints set by \fB\-march\fR and \fB\-mcpu\fR.
18806 The M680x0 microarchitectures are: \fB68000\fR, \fB68010\fR,
18807 \&\fB68020\fR, \fB68030\fR, \fB68040\fR, \fB68060\fR
18808 and \fBcpu32\fR.  The ColdFire microarchitectures
18809 are: \fBcfv1\fR, \fBcfv2\fR, \fBcfv3\fR, \fBcfv4\fR and \fBcfv4e\fR.
18810 .Sp
18811 You can also use \fB\-mtune=68020\-40\fR for code that needs
18812 to run relatively well on 68020, 68030 and 68040 targets.
18813 \&\fB\-mtune=68020\-60\fR is similar but includes 68060 targets
18814 as well.  These two options select the same tuning decisions as
18815 \&\fB\-m68020\-40\fR and \fB\-m68020\-60\fR respectively.
18816 .Sp
18817 \&\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
18818 when tuning for 680x0 architecture \fIarch\fR.  It also defines
18819 \&\f(CW\*(C`mc\f(CIarch\f(CW\*(C'\fR unless either \fB\-ansi\fR or a non-GNU \fB\-std\fR
18820 option is used.  If \s-1GCC\s0 is tuning for a range of architectures,
18821 as selected by \fB\-mtune=68020\-40\fR or \fB\-mtune=68020\-60\fR,
18822 it defines the macros for every architecture in the range.
18823 .Sp
18824 \&\s-1GCC\s0 also defines the macro \f(CW\*(C`_\|_m\f(CIuarch\f(CW_\|_\*(C'\fR when tuning for
18825 ColdFire microarchitecture \fIuarch\fR, where \fIuarch\fR is one
18826 of the arguments given above.
18827 .IP "\fB\-m68000\fR" 4
18828 .IX Item "-m68000"
18829 .PD 0
18830 .IP "\fB\-mc68000\fR" 4
18831 .IX Item "-mc68000"
18832 .PD
18833 Generate output for a 68000.  This is the default
18834 when the compiler is configured for 68000\-based systems.
18835 It is equivalent to \fB\-march=68000\fR.
18836 .Sp
18837 Use this option for microcontrollers with a 68000 or \s-1EC000\s0 core,
18838 including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
18839 .IP "\fB\-m68010\fR" 4
18840 .IX Item "-m68010"
18841 Generate output for a 68010.  This is the default
18842 when the compiler is configured for 68010\-based systems.
18843 It is equivalent to \fB\-march=68010\fR.
18844 .IP "\fB\-m68020\fR" 4
18845 .IX Item "-m68020"
18846 .PD 0
18847 .IP "\fB\-mc68020\fR" 4
18848 .IX Item "-mc68020"
18849 .PD
18850 Generate output for a 68020.  This is the default
18851 when the compiler is configured for 68020\-based systems.
18852 It is equivalent to \fB\-march=68020\fR.
18853 .IP "\fB\-m68030\fR" 4
18854 .IX Item "-m68030"
18855 Generate output for a 68030.  This is the default when the compiler is
18856 configured for 68030\-based systems.  It is equivalent to
18857 \&\fB\-march=68030\fR.
18858 .IP "\fB\-m68040\fR" 4
18859 .IX Item "-m68040"
18860 Generate output for a 68040.  This is the default when the compiler is
18861 configured for 68040\-based systems.  It is equivalent to
18862 \&\fB\-march=68040\fR.
18863 .Sp
18864 This option inhibits the use of 68881/68882 instructions that have to be
18865 emulated by software on the 68040.  Use this option if your 68040 does not
18866 have code to emulate those instructions.
18867 .IP "\fB\-m68060\fR" 4
18868 .IX Item "-m68060"
18869 Generate output for a 68060.  This is the default when the compiler is
18870 configured for 68060\-based systems.  It is equivalent to
18871 \&\fB\-march=68060\fR.
18872 .Sp
18873 This option inhibits the use of 68020 and 68881/68882 instructions that
18874 have to be emulated by software on the 68060.  Use this option if your 68060
18875 does not have code to emulate those instructions.
18876 .IP "\fB\-mcpu32\fR" 4
18877 .IX Item "-mcpu32"
18878 Generate output for a \s-1CPU32.\s0  This is the default
18879 when the compiler is configured for CPU32\-based systems.
18880 It is equivalent to \fB\-march=cpu32\fR.
18881 .Sp
18882 Use this option for microcontrollers with a
18883 \&\s-1CPU32\s0 or \s-1CPU32+\s0 core, including the 68330, 68331, 68332, 68333, 68334,
18884 68336, 68340, 68341, 68349 and 68360.
18885 .IP "\fB\-m5200\fR" 4
18886 .IX Item "-m5200"
18887 Generate output for a 520X ColdFire \s-1CPU.\s0  This is the default
18888 when the compiler is configured for 520X\-based systems.
18889 It is equivalent to \fB\-mcpu=5206\fR, and is now deprecated
18890 in favor of that option.
18891 .Sp
18892 Use this option for microcontroller with a 5200 core, including
18893 the \s-1MCF5202, MCF5203, MCF5204\s0 and \s-1MCF5206.\s0
18894 .IP "\fB\-m5206e\fR" 4
18895 .IX Item "-m5206e"
18896 Generate output for a 5206e ColdFire \s-1CPU.\s0  The option is now
18897 deprecated in favor of the equivalent \fB\-mcpu=5206e\fR.
18898 .IP "\fB\-m528x\fR" 4
18899 .IX Item "-m528x"
18900 Generate output for a member of the ColdFire 528X family.
18901 The option is now deprecated in favor of the equivalent
18902 \&\fB\-mcpu=528x\fR.
18903 .IP "\fB\-m5307\fR" 4
18904 .IX Item "-m5307"
18905 Generate output for a ColdFire 5307 \s-1CPU.\s0  The option is now deprecated
18906 in favor of the equivalent \fB\-mcpu=5307\fR.
18907 .IP "\fB\-m5407\fR" 4
18908 .IX Item "-m5407"
18909 Generate output for a ColdFire 5407 \s-1CPU.\s0  The option is now deprecated
18910 in favor of the equivalent \fB\-mcpu=5407\fR.
18911 .IP "\fB\-mcfv4e\fR" 4
18912 .IX Item "-mcfv4e"
18913 Generate output for a ColdFire V4e family \s-1CPU\s0 (e.g. 547x/548x).
18914 This includes use of hardware floating-point instructions.
18915 The option is equivalent to \fB\-mcpu=547x\fR, and is now
18916 deprecated in favor of that option.
18917 .IP "\fB\-m68020\-40\fR" 4
18918 .IX Item "-m68020-40"
18919 Generate output for a 68040, without using any of the new instructions.
18920 This results in code that can run relatively efficiently on either a
18921 68020/68881 or a 68030 or a 68040.  The generated code does use the
18922 68881 instructions that are emulated on the 68040.
18923 .Sp
18924 The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-40\fR.
18925 .IP "\fB\-m68020\-60\fR" 4
18926 .IX Item "-m68020-60"
18927 Generate output for a 68060, without using any of the new instructions.
18928 This results in code that can run relatively efficiently on either a
18929 68020/68881 or a 68030 or a 68040.  The generated code does use the
18930 68881 instructions that are emulated on the 68060.
18931 .Sp
18932 The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-60\fR.
18933 .IP "\fB\-mhard\-float\fR" 4
18934 .IX Item "-mhard-float"
18935 .PD 0
18936 .IP "\fB\-m68881\fR" 4
18937 .IX Item "-m68881"
18938 .PD
18939 Generate floating-point instructions.  This is the default for 68020
18940 and above, and for ColdFire devices that have an \s-1FPU.\s0  It defines the
18941 macro \f(CW\*(C`_\|_HAVE_68881_\|_\*(C'\fR on M680x0 targets and \f(CW\*(C`_\|_mcffpu_\|_\*(C'\fR
18942 on ColdFire targets.
18943 .IP "\fB\-msoft\-float\fR" 4
18944 .IX Item "-msoft-float"
18945 Do not generate floating-point instructions; use library calls instead.
18946 This is the default for 68000, 68010, and 68832 targets.  It is also
18947 the default for ColdFire devices that have no \s-1FPU.\s0
18948 .IP "\fB\-mdiv\fR" 4
18949 .IX Item "-mdiv"
18950 .PD 0
18951 .IP "\fB\-mno\-div\fR" 4
18952 .IX Item "-mno-div"
18953 .PD
18954 Generate (do not generate) ColdFire hardware divide and remainder
18955 instructions.  If \fB\-march\fR is used without \fB\-mcpu\fR,
18956 the default is \*(L"on\*(R" for ColdFire architectures and \*(L"off\*(R" for M680x0
18957 architectures.  Otherwise, the default is taken from the target \s-1CPU\s0
18958 (either the default \s-1CPU,\s0 or the one specified by \fB\-mcpu\fR).  For
18959 example, the default is \*(L"off\*(R" for \fB\-mcpu=5206\fR and \*(L"on\*(R" for
18960 \&\fB\-mcpu=5206e\fR.
18961 .Sp
18962 \&\s-1GCC\s0 defines the macro \f(CW\*(C`_\|_mcfhwdiv_\|_\*(C'\fR when this option is enabled.
18963 .IP "\fB\-mshort\fR" 4
18964 .IX Item "-mshort"
18965 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
18966 Additionally, parameters passed on the stack are also aligned to a
18967 16\-bit boundary even on targets whose \s-1API\s0 mandates promotion to 32\-bit.
18968 .IP "\fB\-mno\-short\fR" 4
18969 .IX Item "-mno-short"
18970 Do not consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide.  This is the default.
18971 .IP "\fB\-mnobitfield\fR" 4
18972 .IX Item "-mnobitfield"
18973 .PD 0
18974 .IP "\fB\-mno\-bitfield\fR" 4
18975 .IX Item "-mno-bitfield"
18976 .PD
18977 Do not use the bit-field instructions.  The \fB\-m68000\fR, \fB\-mcpu32\fR
18978 and \fB\-m5200\fR options imply \fB\-mnobitfield\fR.
18979 .IP "\fB\-mbitfield\fR" 4
18980 .IX Item "-mbitfield"
18981 Do use the bit-field instructions.  The \fB\-m68020\fR option implies
18982 \&\fB\-mbitfield\fR.  This is the default if you use a configuration
18983 designed for a 68020.
18984 .IP "\fB\-mrtd\fR" 4
18985 .IX Item "-mrtd"
18986 Use a different function-calling convention, in which functions
18987 that take a fixed number of arguments return with the \f(CW\*(C`rtd\*(C'\fR
18988 instruction, which pops their arguments while returning.  This
18989 saves one instruction in the caller since there is no need to pop
18990 the arguments there.
18991 .Sp
18992 This calling convention is incompatible with the one normally
18993 used on Unix, so you cannot use it if you need to call libraries
18994 compiled with the Unix compiler.
18995 .Sp
18996 Also, you must provide function prototypes for all functions that
18997 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
18998 otherwise incorrect code is generated for calls to those
18999 functions.
19000 .Sp
19001 In addition, seriously incorrect code results if you call a
19002 function with too many arguments.  (Normally, extra arguments are
19003 harmlessly ignored.)
19004 .Sp
19005 The \f(CW\*(C`rtd\*(C'\fR instruction is supported by the 68010, 68020, 68030,
19006 68040, 68060 and \s-1CPU32\s0 processors, but not by the 68000 or 5200.
19007 .IP "\fB\-mno\-rtd\fR" 4
19008 .IX Item "-mno-rtd"
19009 Do not use the calling conventions selected by \fB\-mrtd\fR.
19010 This is the default.
19011 .IP "\fB\-malign\-int\fR" 4
19012 .IX Item "-malign-int"
19013 .PD 0
19014 .IP "\fB\-mno\-align\-int\fR" 4
19015 .IX Item "-mno-align-int"
19016 .PD
19017 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,
19018 \&\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
19019 boundary (\fB\-malign\-int\fR) or a 16\-bit boundary (\fB\-mno\-align\-int\fR).
19020 Aligning variables on 32\-bit boundaries produces code that runs somewhat
19021 faster on processors with 32\-bit busses at the expense of more memory.
19022 .Sp
19023 \&\fBWarning:\fR if you use the \fB\-malign\-int\fR switch, \s-1GCC\s0
19024 aligns structures containing the above types differently than
19025 most published application binary interface specifications for the m68k.
19026 .IP "\fB\-mpcrel\fR" 4
19027 .IX Item "-mpcrel"
19028 Use the pc-relative addressing mode of the 68000 directly, instead of
19029 using a global offset table.  At present, this option implies \fB\-fpic\fR,
19030 allowing at most a 16\-bit offset for pc-relative addressing.  \fB\-fPIC\fR is
19031 not presently supported with \fB\-mpcrel\fR, though this could be supported for
19032 68020 and higher processors.
19033 .IP "\fB\-mno\-strict\-align\fR" 4
19034 .IX Item "-mno-strict-align"
19035 .PD 0
19036 .IP "\fB\-mstrict\-align\fR" 4
19037 .IX Item "-mstrict-align"
19038 .PD
19039 Do not (do) assume that unaligned memory references are handled by
19040 the system.
19041 .IP "\fB\-msep\-data\fR" 4
19042 .IX Item "-msep-data"
19043 Generate code that allows the data segment to be located in a different
19044 area of memory from the text segment.  This allows for execute-in-place in
19045 an environment without virtual memory management.  This option implies
19046 \&\fB\-fPIC\fR.
19047 .IP "\fB\-mno\-sep\-data\fR" 4
19048 .IX Item "-mno-sep-data"
19049 Generate code that assumes that the data segment follows the text segment.
19050 This is the default.
19051 .IP "\fB\-mid\-shared\-library\fR" 4
19052 .IX Item "-mid-shared-library"
19053 Generate code that supports shared libraries via the library \s-1ID\s0 method.
19054 This allows for execute-in-place and shared libraries in an environment
19055 without virtual memory management.  This option implies \fB\-fPIC\fR.
19056 .IP "\fB\-mno\-id\-shared\-library\fR" 4
19057 .IX Item "-mno-id-shared-library"
19058 Generate code that doesn't assume ID-based shared libraries are being used.
19059 This is the default.
19060 .IP "\fB\-mshared\-library\-id=n\fR" 4
19061 .IX Item "-mshared-library-id=n"
19062 Specifies the identification number of the ID-based shared library being
19063 compiled.  Specifying a value of 0 generates more compact code; specifying
19064 other values forces the allocation of that number to the current
19065 library, but is no more space\- or time-efficient than omitting this option.
19066 .IP "\fB\-mxgot\fR" 4
19067 .IX Item "-mxgot"
19068 .PD 0
19069 .IP "\fB\-mno\-xgot\fR" 4
19070 .IX Item "-mno-xgot"
19071 .PD
19072 When generating position-independent code for ColdFire, generate code
19073 that works if the \s-1GOT\s0 has more than 8192 entries.  This code is
19074 larger and slower than code generated without this option.  On M680x0
19075 processors, this option is not needed; \fB\-fPIC\fR suffices.
19076 .Sp
19077 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT.\s0
19078 While this is relatively efficient, it only works if the \s-1GOT\s0
19079 is smaller than about 64k.  Anything larger causes the linker
19080 to report an error such as:
19081 .Sp
19082 .Vb 1
19083 \&        relocation truncated to fit: R_68K_GOT16O foobar
19084 .Ve
19085 .Sp
19086 If this happens, you should recompile your code with \fB\-mxgot\fR.
19087 It should then work with very large GOTs.  However, code generated with
19088 \&\fB\-mxgot\fR is less efficient, since it takes 4 instructions to fetch
19089 the value of a global symbol.
19090 .Sp
19091 Note that some linkers, including newer versions of the \s-1GNU\s0 linker,
19092 can create multiple GOTs and sort \s-1GOT\s0 entries.  If you have such a linker,
19093 you should only need to use \fB\-mxgot\fR when compiling a single
19094 object file that accesses more than 8192 \s-1GOT\s0 entries.  Very few do.
19095 .Sp
19096 These options have no effect unless \s-1GCC\s0 is generating
19097 position-independent code.
19098 .IP "\fB\-mlong\-jump\-table\-offsets\fR" 4
19099 .IX Item "-mlong-jump-table-offsets"
19100 Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables.  The default is to use
19101 16\-bit offsets.
19102 .PP
19103 \fIMCore Options\fR
19104 .IX Subsection "MCore Options"
19105 .PP
19106 These are the \fB\-m\fR options defined for the Motorola M*Core
19107 processors.
19108 .IP "\fB\-mhardlit\fR" 4
19109 .IX Item "-mhardlit"
19110 .PD 0
19111 .IP "\fB\-mno\-hardlit\fR" 4
19112 .IX Item "-mno-hardlit"
19113 .PD
19114 Inline constants into the code stream if it can be done in two
19115 instructions or less.
19116 .IP "\fB\-mdiv\fR" 4
19117 .IX Item "-mdiv"
19118 .PD 0
19119 .IP "\fB\-mno\-div\fR" 4
19120 .IX Item "-mno-div"
19121 .PD
19122 Use the divide instruction.  (Enabled by default).
19123 .IP "\fB\-mrelax\-immediate\fR" 4
19124 .IX Item "-mrelax-immediate"
19125 .PD 0
19126 .IP "\fB\-mno\-relax\-immediate\fR" 4
19127 .IX Item "-mno-relax-immediate"
19128 .PD
19129 Allow arbitrary-sized immediates in bit operations.
19130 .IP "\fB\-mwide\-bitfields\fR" 4
19131 .IX Item "-mwide-bitfields"
19132 .PD 0
19133 .IP "\fB\-mno\-wide\-bitfields\fR" 4
19134 .IX Item "-mno-wide-bitfields"
19135 .PD
19136 Always treat bit-fields as \f(CW\*(C`int\*(C'\fR\-sized.
19137 .IP "\fB\-m4byte\-functions\fR" 4
19138 .IX Item "-m4byte-functions"
19139 .PD 0
19140 .IP "\fB\-mno\-4byte\-functions\fR" 4
19141 .IX Item "-mno-4byte-functions"
19142 .PD
19143 Force all functions to be aligned to a 4\-byte boundary.
19144 .IP "\fB\-mcallgraph\-data\fR" 4
19145 .IX Item "-mcallgraph-data"
19146 .PD 0
19147 .IP "\fB\-mno\-callgraph\-data\fR" 4
19148 .IX Item "-mno-callgraph-data"
19149 .PD
19150 Emit callgraph information.
19151 .IP "\fB\-mslow\-bytes\fR" 4
19152 .IX Item "-mslow-bytes"
19153 .PD 0
19154 .IP "\fB\-mno\-slow\-bytes\fR" 4
19155 .IX Item "-mno-slow-bytes"
19156 .PD
19157 Prefer word access when reading byte quantities.
19158 .IP "\fB\-mlittle\-endian\fR" 4
19159 .IX Item "-mlittle-endian"
19160 .PD 0
19161 .IP "\fB\-mbig\-endian\fR" 4
19162 .IX Item "-mbig-endian"
19163 .PD
19164 Generate code for a little-endian target.
19165 .IP "\fB\-m210\fR" 4
19166 .IX Item "-m210"
19167 .PD 0
19168 .IP "\fB\-m340\fR" 4
19169 .IX Item "-m340"
19170 .PD
19171 Generate code for the 210 processor.
19172 .IP "\fB\-mno\-lsim\fR" 4
19173 .IX Item "-mno-lsim"
19174 Assume that runtime support has been provided and so omit the
19175 simulator library (\fIlibsim.a)\fR from the linker command line.
19176 .IP "\fB\-mstack\-increment=\fR\fIsize\fR" 4
19177 .IX Item "-mstack-increment=size"
19178 Set the maximum amount for a single stack increment operation.  Large
19179 values can increase the speed of programs that contain functions
19180 that need a large amount of stack space, but they can also trigger a
19181 segmentation fault if the stack is extended too much.  The default
19182 value is 0x1000.
19183 .PP
19184 \fIMeP Options\fR
19185 .IX Subsection "MeP Options"
19186 .IP "\fB\-mabsdiff\fR" 4
19187 .IX Item "-mabsdiff"
19188 Enables the \f(CW\*(C`abs\*(C'\fR instruction, which is the absolute difference
19189 between two registers.
19190 .IP "\fB\-mall\-opts\fR" 4
19191 .IX Item "-mall-opts"
19192 Enables all the optional instructions\-\-\-average, multiply, divide, bit
19193 operations, leading zero, absolute difference, min/max, clip, and
19194 saturation.
19195 .IP "\fB\-maverage\fR" 4
19196 .IX Item "-maverage"
19197 Enables the \f(CW\*(C`ave\*(C'\fR instruction, which computes the average of two
19198 registers.
19199 .IP "\fB\-mbased=\fR\fIn\fR" 4
19200 .IX Item "-mbased=n"
19201 Variables of size \fIn\fR bytes or smaller are placed in the
19202 \&\f(CW\*(C`.based\*(C'\fR section by default.  Based variables use the \f(CW$tp\fR
19203 register as a base register, and there is a 128\-byte limit to the
19204 \&\f(CW\*(C`.based\*(C'\fR section.
19205 .IP "\fB\-mbitops\fR" 4
19206 .IX Item "-mbitops"
19207 Enables the bit operation instructions\-\-\-bit test (\f(CW\*(C`btstm\*(C'\fR), set
19208 (\f(CW\*(C`bsetm\*(C'\fR), clear (\f(CW\*(C`bclrm\*(C'\fR), invert (\f(CW\*(C`bnotm\*(C'\fR), and
19209 test-and-set (\f(CW\*(C`tas\*(C'\fR).
19210 .IP "\fB\-mc=\fR\fIname\fR" 4
19211 .IX Item "-mc=name"
19212 Selects which section constant data is placed in.  \fIname\fR may
19213 be \fBtiny\fR, \fBnear\fR, or \fBfar\fR.
19214 .IP "\fB\-mclip\fR" 4
19215 .IX Item "-mclip"
19216 Enables the \f(CW\*(C`clip\*(C'\fR instruction.  Note that \fB\-mclip\fR is not
19217 useful unless you also provide \fB\-mminmax\fR.
19218 .IP "\fB\-mconfig=\fR\fIname\fR" 4
19219 .IX Item "-mconfig=name"
19220 Selects one of the built-in core configurations.  Each MeP chip has
19221 one or more modules in it; each module has a core \s-1CPU\s0 and a variety of
19222 coprocessors, optional instructions, and peripherals.  The
19223 \&\f(CW\*(C`MeP\-Integrator\*(C'\fR tool, not part of \s-1GCC,\s0 provides these
19224 configurations through this option; using this option is the same as
19225 using all the corresponding command-line options.  The default
19226 configuration is \fBdefault\fR.
19227 .IP "\fB\-mcop\fR" 4
19228 .IX Item "-mcop"
19229 Enables the coprocessor instructions.  By default, this is a 32\-bit
19230 coprocessor.  Note that the coprocessor is normally enabled via the
19231 \&\fB\-mconfig=\fR option.
19232 .IP "\fB\-mcop32\fR" 4
19233 .IX Item "-mcop32"
19234 Enables the 32\-bit coprocessor's instructions.
19235 .IP "\fB\-mcop64\fR" 4
19236 .IX Item "-mcop64"
19237 Enables the 64\-bit coprocessor's instructions.
19238 .IP "\fB\-mivc2\fR" 4
19239 .IX Item "-mivc2"
19240 Enables \s-1IVC2\s0 scheduling.  \s-1IVC2\s0 is a 64\-bit \s-1VLIW\s0 coprocessor.
19241 .IP "\fB\-mdc\fR" 4
19242 .IX Item "-mdc"
19243 Causes constant variables to be placed in the \f(CW\*(C`.near\*(C'\fR section.
19244 .IP "\fB\-mdiv\fR" 4
19245 .IX Item "-mdiv"
19246 Enables the \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`divu\*(C'\fR instructions.
19247 .IP "\fB\-meb\fR" 4
19248 .IX Item "-meb"
19249 Generate big-endian code.
19250 .IP "\fB\-mel\fR" 4
19251 .IX Item "-mel"
19252 Generate little-endian code.
19253 .IP "\fB\-mio\-volatile\fR" 4
19254 .IX Item "-mio-volatile"
19255 Tells the compiler that any variable marked with the \f(CW\*(C`io\*(C'\fR
19256 attribute is to be considered volatile.
19257 .IP "\fB\-ml\fR" 4
19258 .IX Item "-ml"
19259 Causes variables to be assigned to the \f(CW\*(C`.far\*(C'\fR section by default.
19260 .IP "\fB\-mleadz\fR" 4
19261 .IX Item "-mleadz"
19262 Enables the \f(CW\*(C`leadz\*(C'\fR (leading zero) instruction.
19263 .IP "\fB\-mm\fR" 4
19264 .IX Item "-mm"
19265 Causes variables to be assigned to the \f(CW\*(C`.near\*(C'\fR section by default.
19266 .IP "\fB\-mminmax\fR" 4
19267 .IX Item "-mminmax"
19268 Enables the \f(CW\*(C`min\*(C'\fR and \f(CW\*(C`max\*(C'\fR instructions.
19269 .IP "\fB\-mmult\fR" 4
19270 .IX Item "-mmult"
19271 Enables the multiplication and multiply-accumulate instructions.
19272 .IP "\fB\-mno\-opts\fR" 4
19273 .IX Item "-mno-opts"
19274 Disables all the optional instructions enabled by \fB\-mall\-opts\fR.
19275 .IP "\fB\-mrepeat\fR" 4
19276 .IX Item "-mrepeat"
19277 Enables the \f(CW\*(C`repeat\*(C'\fR and \f(CW\*(C`erepeat\*(C'\fR instructions, used for
19278 low-overhead looping.
19279 .IP "\fB\-ms\fR" 4
19280 .IX Item "-ms"
19281 Causes all variables to default to the \f(CW\*(C`.tiny\*(C'\fR section.  Note
19282 that there is a 65536\-byte limit to this section.  Accesses to these
19283 variables use the \f(CW%gp\fR base register.
19284 .IP "\fB\-msatur\fR" 4
19285 .IX Item "-msatur"
19286 Enables the saturation instructions.  Note that the compiler does not
19287 currently generate these itself, but this option is included for
19288 compatibility with other tools, like \f(CW\*(C`as\*(C'\fR.
19289 .IP "\fB\-msdram\fR" 4
19290 .IX Item "-msdram"
19291 Link the SDRAM-based runtime instead of the default ROM-based runtime.
19292 .IP "\fB\-msim\fR" 4
19293 .IX Item "-msim"
19294 Link the simulator run-time libraries.
19295 .IP "\fB\-msimnovec\fR" 4
19296 .IX Item "-msimnovec"
19297 Link the simulator runtime libraries, excluding built-in support
19298 for reset and exception vectors and tables.
19299 .IP "\fB\-mtf\fR" 4
19300 .IX Item "-mtf"
19301 Causes all functions to default to the \f(CW\*(C`.far\*(C'\fR section.  Without
19302 this option, functions default to the \f(CW\*(C`.near\*(C'\fR section.
19303 .IP "\fB\-mtiny=\fR\fIn\fR" 4
19304 .IX Item "-mtiny=n"
19305 Variables that are \fIn\fR bytes or smaller are allocated to the
19306 \&\f(CW\*(C`.tiny\*(C'\fR section.  These variables use the \f(CW$gp\fR base
19307 register.  The default for this option is 4, but note that there's a
19308 65536\-byte limit to the \f(CW\*(C`.tiny\*(C'\fR section.
19309 .PP
19310 \fIMicroBlaze Options\fR
19311 .IX Subsection "MicroBlaze Options"
19312 .IP "\fB\-msoft\-float\fR" 4
19313 .IX Item "-msoft-float"
19314 Use software emulation for floating point (default).
19315 .IP "\fB\-mhard\-float\fR" 4
19316 .IX Item "-mhard-float"
19317 Use hardware floating-point instructions.
19318 .IP "\fB\-mmemcpy\fR" 4
19319 .IX Item "-mmemcpy"
19320 Do not optimize block moves, use \f(CW\*(C`memcpy\*(C'\fR.
19321 .IP "\fB\-mno\-clearbss\fR" 4
19322 .IX Item "-mno-clearbss"
19323 This option is deprecated.  Use \fB\-fno\-zero\-initialized\-in\-bss\fR instead.
19324 .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
19325 .IX Item "-mcpu=cpu-type"
19326 Use features of, and schedule code for, the given \s-1CPU.\s0
19327 Supported values are in the format \fBv\fR\fIX\fR\fB.\fR\fI\s-1YY\s0\fR\fB.\fR\fIZ\fR,
19328 where \fIX\fR is a major version, \fI\s-1YY\s0\fR is the minor version, and
19329 \&\fIZ\fR is compatibility code.  Example values are \fBv3.00.a\fR,
19330 \&\fBv4.00.b\fR, \fBv5.00.a\fR, \fBv5.00.b\fR, \fBv6.00.a\fR.
19331 .IP "\fB\-mxl\-soft\-mul\fR" 4
19332 .IX Item "-mxl-soft-mul"
19333 Use software multiply emulation (default).
19334 .IP "\fB\-mxl\-soft\-div\fR" 4
19335 .IX Item "-mxl-soft-div"
19336 Use software emulation for divides (default).
19337 .IP "\fB\-mxl\-barrel\-shift\fR" 4
19338 .IX Item "-mxl-barrel-shift"
19339 Use the hardware barrel shifter.
19340 .IP "\fB\-mxl\-pattern\-compare\fR" 4
19341 .IX Item "-mxl-pattern-compare"
19342 Use pattern compare instructions.
19343 .IP "\fB\-msmall\-divides\fR" 4
19344 .IX Item "-msmall-divides"
19345 Use table lookup optimization for small signed integer divisions.
19346 .IP "\fB\-mxl\-stack\-check\fR" 4
19347 .IX Item "-mxl-stack-check"
19348 This option is deprecated.  Use \fB\-fstack\-check\fR instead.
19349 .IP "\fB\-mxl\-gp\-opt\fR" 4
19350 .IX Item "-mxl-gp-opt"
19351 Use GP-relative \f(CW\*(C`.sdata\*(C'\fR/\f(CW\*(C`.sbss\*(C'\fR sections.
19352 .IP "\fB\-mxl\-multiply\-high\fR" 4
19353 .IX Item "-mxl-multiply-high"
19354 Use multiply high instructions for high part of 32x32 multiply.
19355 .IP "\fB\-mxl\-float\-convert\fR" 4
19356 .IX Item "-mxl-float-convert"
19357 Use hardware floating-point conversion instructions.
19358 .IP "\fB\-mxl\-float\-sqrt\fR" 4
19359 .IX Item "-mxl-float-sqrt"
19360 Use hardware floating-point square root instruction.
19361 .IP "\fB\-mbig\-endian\fR" 4
19362 .IX Item "-mbig-endian"
19363 Generate code for a big-endian target.
19364 .IP "\fB\-mlittle\-endian\fR" 4
19365 .IX Item "-mlittle-endian"
19366 Generate code for a little-endian target.
19367 .IP "\fB\-mxl\-reorder\fR" 4
19368 .IX Item "-mxl-reorder"
19369 Use reorder instructions (swap and byte reversed load/store).
19370 .IP "\fB\-mxl\-mode\-\fR\fIapp-model\fR" 4
19371 .IX Item "-mxl-mode-app-model"
19372 Select application model \fIapp-model\fR.  Valid models are
19373 .RS 4
19374 .IP "\fBexecutable\fR" 4
19375 .IX Item "executable"
19376 normal executable (default), uses startup code \fIcrt0.o\fR.
19377 .IP "\fBxmdstub\fR" 4
19378 .IX Item "xmdstub"
19379 for use with Xilinx Microprocessor Debugger (\s-1XMD\s0) based
19380 software intrusive debug agent called xmdstub. This uses startup file
19381 \&\fIcrt1.o\fR and sets the start address of the program to 0x800.
19382 .IP "\fBbootstrap\fR" 4
19383 .IX Item "bootstrap"
19384 for applications that are loaded using a bootloader.
19385 This model uses startup file \fIcrt2.o\fR which does not contain a processor
19386 reset vector handler. This is suitable for transferring control on a
19387 processor reset to the bootloader rather than the application.
19388 .IP "\fBnovectors\fR" 4
19389 .IX Item "novectors"
19390 for applications that do not require any of the
19391 MicroBlaze vectors. This option may be useful for applications running
19392 within a monitoring application. This model uses \fIcrt3.o\fR as a startup file.
19393 .RE
19394 .RS 4
19395 .Sp
19396 Option \fB\-xl\-mode\-\fR\fIapp-model\fR is a deprecated alias for
19397 \&\fB\-mxl\-mode\-\fR\fIapp-model\fR.
19398 .RE
19399 .PP
19400 \fI\s-1MIPS\s0 Options\fR
19401 .IX Subsection "MIPS Options"
19402 .IP "\fB\-EB\fR" 4
19403 .IX Item "-EB"
19404 Generate big-endian code.
19405 .IP "\fB\-EL\fR" 4
19406 .IX Item "-EL"
19407 Generate little-endian code.  This is the default for \fBmips*el\-*\-*\fR
19408 configurations.
19409 .IP "\fB\-march=\fR\fIarch\fR" 4
19410 .IX Item "-march=arch"
19411 Generate code that runs on \fIarch\fR, which can be the name of a
19412 generic \s-1MIPS ISA,\s0 or the name of a particular processor.
19413 The \s-1ISA\s0 names are:
19414 \&\fBmips1\fR, \fBmips2\fR, \fBmips3\fR, \fBmips4\fR,
19415 \&\fBmips32\fR, \fBmips32r2\fR, \fBmips32r3\fR, \fBmips32r5\fR,
19416 \&\fBmips32r6\fR, \fBmips64\fR, \fBmips64r2\fR, \fBmips64r3\fR,
19417 \&\fBmips64r5\fR and \fBmips64r6\fR.
19418 The processor names are:
19419 \&\fB4kc\fR, \fB4km\fR, \fB4kp\fR, \fB4ksc\fR,
19420 \&\fB4kec\fR, \fB4kem\fR, \fB4kep\fR, \fB4ksd\fR,
19421 \&\fB5kc\fR, \fB5kf\fR,
19422 \&\fB20kc\fR,
19423 \&\fB24kc\fR, \fB24kf2_1\fR, \fB24kf1_1\fR,
19424 \&\fB24kec\fR, \fB24kef2_1\fR, \fB24kef1_1\fR,
19425 \&\fB34kc\fR, \fB34kf2_1\fR, \fB34kf1_1\fR, \fB34kn\fR,
19426 \&\fB74kc\fR, \fB74kf2_1\fR, \fB74kf1_1\fR, \fB74kf3_2\fR,
19427 \&\fB1004kc\fR, \fB1004kf2_1\fR, \fB1004kf1_1\fR,
19428 \&\fBi6400\fR,
19429 \&\fBinteraptiv\fR,
19430 \&\fBloongson2e\fR, \fBloongson2f\fR, \fBloongson3a\fR,
19431 \&\fBm4k\fR,
19432 \&\fBm14k\fR, \fBm14kc\fR, \fBm14ke\fR, \fBm14kec\fR,
19433 \&\fBm5100\fR, \fBm5101\fR,
19434 \&\fBocteon\fR, \fBocteon+\fR, \fBocteon2\fR, \fBocteon3\fR,
19435 \&\fBorion\fR,
19436 \&\fBp5600\fR,
19437 \&\fBr2000\fR, \fBr3000\fR, \fBr3900\fR, \fBr4000\fR, \fBr4400\fR,
19438 \&\fBr4600\fR, \fBr4650\fR, \fBr4700\fR, \fBr6000\fR, \fBr8000\fR,
19439 \&\fBrm7000\fR, \fBrm9000\fR,
19440 \&\fBr10000\fR, \fBr12000\fR, \fBr14000\fR, \fBr16000\fR,
19441 \&\fBsb1\fR,
19442 \&\fBsr71000\fR,
19443 \&\fBvr4100\fR, \fBvr4111\fR, \fBvr4120\fR, \fBvr4130\fR, \fBvr4300\fR,
19444 \&\fBvr5000\fR, \fBvr5400\fR, \fBvr5500\fR,
19445 \&\fBxlr\fR and \fBxlp\fR.
19446 The special value \fBfrom-abi\fR selects the
19447 most compatible architecture for the selected \s-1ABI\s0 (that is,
19448 \&\fBmips1\fR for 32\-bit ABIs and \fBmips3\fR for 64\-bit ABIs).
19449 .Sp
19450 The native Linux/GNU toolchain also supports the value \fBnative\fR,
19451 which selects the best architecture option for the host processor.
19452 \&\fB\-march=native\fR has no effect if \s-1GCC\s0 does not recognize
19453 the processor.
19454 .Sp
19455 In processor names, a final \fB000\fR can be abbreviated as \fBk\fR
19456 (for example, \fB\-march=r2k\fR).  Prefixes are optional, and
19457 \&\fBvr\fR may be written \fBr\fR.
19458 .Sp
19459 Names of the form \fIn\fR\fBf2_1\fR refer to processors with
19460 FPUs clocked at half the rate of the core, names of the form
19461 \&\fIn\fR\fBf1_1\fR refer to processors with FPUs clocked at the same
19462 rate as the core, and names of the form \fIn\fR\fBf3_2\fR refer to
19463 processors with FPUs clocked a ratio of 3:2 with respect to the core.
19464 For compatibility reasons, \fIn\fR\fBf\fR is accepted as a synonym
19465 for \fIn\fR\fBf2_1\fR while \fIn\fR\fBx\fR and \fIb\fR\fBfx\fR are
19466 accepted as synonyms for \fIn\fR\fBf1_1\fR.
19467 .Sp
19468 \&\s-1GCC\s0 defines two macros based on the value of this option.  The first
19469 is \f(CW\*(C`_MIPS_ARCH\*(C'\fR, which gives the name of target architecture, as
19470 a string.  The second has the form \f(CW\*(C`_MIPS_ARCH_\f(CIfoo\f(CW\*(C'\fR,
19471 where \fIfoo\fR is the capitalized value of \f(CW\*(C`_MIPS_ARCH\*(C'\fR.
19472 For example, \fB\-march=r2000\fR sets \f(CW\*(C`_MIPS_ARCH\*(C'\fR
19473 to \f(CW"r2000"\fR and defines the macro \f(CW\*(C`_MIPS_ARCH_R2000\*(C'\fR.
19474 .Sp
19475 Note that the \f(CW\*(C`_MIPS_ARCH\*(C'\fR macro uses the processor names given
19476 above.  In other words, it has the full prefix and does not
19477 abbreviate \fB000\fR as \fBk\fR.  In the case of \fBfrom-abi\fR,
19478 the macro names the resolved architecture (either \f(CW"mips1"\fR or
19479 \&\f(CW"mips3"\fR).  It names the default architecture when no
19480 \&\fB\-march\fR option is given.
19481 .IP "\fB\-mtune=\fR\fIarch\fR" 4
19482 .IX Item "-mtune=arch"
19483 Optimize for \fIarch\fR.  Among other things, this option controls
19484 the way instructions are scheduled, and the perceived cost of arithmetic
19485 operations.  The list of \fIarch\fR values is the same as for
19486 \&\fB\-march\fR.
19487 .Sp
19488 When this option is not used, \s-1GCC\s0 optimizes for the processor
19489 specified by \fB\-march\fR.  By using \fB\-march\fR and
19490 \&\fB\-mtune\fR together, it is possible to generate code that
19491 runs on a family of processors, but optimize the code for one
19492 particular member of that family.
19493 .Sp
19494 \&\fB\-mtune\fR defines the macros \f(CW\*(C`_MIPS_TUNE\*(C'\fR and
19495 \&\f(CW\*(C`_MIPS_TUNE_\f(CIfoo\f(CW\*(C'\fR, which work in the same way as the
19496 \&\fB\-march\fR ones described above.
19497 .IP "\fB\-mips1\fR" 4
19498 .IX Item "-mips1"
19499 Equivalent to \fB\-march=mips1\fR.
19500 .IP "\fB\-mips2\fR" 4
19501 .IX Item "-mips2"
19502 Equivalent to \fB\-march=mips2\fR.
19503 .IP "\fB\-mips3\fR" 4
19504 .IX Item "-mips3"
19505 Equivalent to \fB\-march=mips3\fR.
19506 .IP "\fB\-mips4\fR" 4
19507 .IX Item "-mips4"
19508 Equivalent to \fB\-march=mips4\fR.
19509 .IP "\fB\-mips32\fR" 4
19510 .IX Item "-mips32"
19511 Equivalent to \fB\-march=mips32\fR.
19512 .IP "\fB\-mips32r3\fR" 4
19513 .IX Item "-mips32r3"
19514 Equivalent to \fB\-march=mips32r3\fR.
19515 .IP "\fB\-mips32r5\fR" 4
19516 .IX Item "-mips32r5"
19517 Equivalent to \fB\-march=mips32r5\fR.
19518 .IP "\fB\-mips32r6\fR" 4
19519 .IX Item "-mips32r6"
19520 Equivalent to \fB\-march=mips32r6\fR.
19521 .IP "\fB\-mips64\fR" 4
19522 .IX Item "-mips64"
19523 Equivalent to \fB\-march=mips64\fR.
19524 .IP "\fB\-mips64r2\fR" 4
19525 .IX Item "-mips64r2"
19526 Equivalent to \fB\-march=mips64r2\fR.
19527 .IP "\fB\-mips64r3\fR" 4
19528 .IX Item "-mips64r3"
19529 Equivalent to \fB\-march=mips64r3\fR.
19530 .IP "\fB\-mips64r5\fR" 4
19531 .IX Item "-mips64r5"
19532 Equivalent to \fB\-march=mips64r5\fR.
19533 .IP "\fB\-mips64r6\fR" 4
19534 .IX Item "-mips64r6"
19535 Equivalent to \fB\-march=mips64r6\fR.
19536 .IP "\fB\-mips16\fR" 4
19537 .IX Item "-mips16"
19538 .PD 0
19539 .IP "\fB\-mno\-mips16\fR" 4
19540 .IX Item "-mno-mips16"
19541 .PD
19542 Generate (do not generate) \s-1MIPS16\s0 code.  If \s-1GCC\s0 is targeting a
19543 \&\s-1MIPS32\s0 or \s-1MIPS64\s0 architecture, it makes use of the MIPS16e \s-1ASE.\s0
19544 .Sp
19545 \&\s-1MIPS16\s0 code generation can also be controlled on a per-function basis
19546 by means of \f(CW\*(C`mips16\*(C'\fR and \f(CW\*(C`nomips16\*(C'\fR attributes.
19547 .IP "\fB\-mflip\-mips16\fR" 4
19548 .IX Item "-mflip-mips16"
19549 Generate \s-1MIPS16\s0 code on alternating functions.  This option is provided
19550 for regression testing of mixed MIPS16/non\-MIPS16 code generation, and is
19551 not intended for ordinary use in compiling user code.
19552 .IP "\fB\-minterlink\-compressed\fR" 4
19553 .IX Item "-minterlink-compressed"
19554 .PD 0
19555 .IP "\fB\-mno\-interlink\-compressed\fR" 4
19556 .IX Item "-mno-interlink-compressed"
19557 .PD
19558 Require (do not require) that code using the standard (uncompressed) \s-1MIPS ISA\s0
19559 be link-compatible with \s-1MIPS16\s0 and microMIPS code, and vice versa.
19560 .Sp
19561 For example, code using the standard \s-1ISA\s0 encoding cannot jump directly
19562 to \s-1MIPS16\s0 or microMIPS code; it must either use a call or an indirect jump.
19563 \&\fB\-minterlink\-compressed\fR therefore disables direct jumps unless \s-1GCC\s0
19564 knows that the target of the jump is not compressed.
19565 .IP "\fB\-minterlink\-mips16\fR" 4
19566 .IX Item "-minterlink-mips16"
19567 .PD 0
19568 .IP "\fB\-mno\-interlink\-mips16\fR" 4
19569 .IX Item "-mno-interlink-mips16"
19570 .PD
19571 Aliases of \fB\-minterlink\-compressed\fR and
19572 \&\fB\-mno\-interlink\-compressed\fR.  These options predate the microMIPS \s-1ASE\s0
19573 and are retained for backwards compatibility.
19574 .IP "\fB\-mabi=32\fR" 4
19575 .IX Item "-mabi=32"
19576 .PD 0
19577 .IP "\fB\-mabi=o64\fR" 4
19578 .IX Item "-mabi=o64"
19579 .IP "\fB\-mabi=n32\fR" 4
19580 .IX Item "-mabi=n32"
19581 .IP "\fB\-mabi=64\fR" 4
19582 .IX Item "-mabi=64"
19583 .IP "\fB\-mabi=eabi\fR" 4
19584 .IX Item "-mabi=eabi"
19585 .PD
19586 Generate code for the given \s-1ABI.\s0
19587 .Sp
19588 Note that the \s-1EABI\s0 has a 32\-bit and a 64\-bit variant.  \s-1GCC\s0 normally
19589 generates 64\-bit code when you select a 64\-bit architecture, but you
19590 can use \fB\-mgp32\fR to get 32\-bit code instead.
19591 .Sp
19592 For information about the O64 \s-1ABI,\s0 see
19593 <\fBhttp://gcc.gnu.org/projects/mipso64\-abi.html\fR>.
19594 .Sp
19595 \&\s-1GCC\s0 supports a variant of the o32 \s-1ABI\s0 in which floating-point registers
19596 are 64 rather than 32 bits wide.  You can select this combination with
19597 \&\fB\-mabi=32\fR \fB\-mfp64\fR.  This \s-1ABI\s0 relies on the \f(CW\*(C`mthc1\*(C'\fR
19598 and \f(CW\*(C`mfhc1\*(C'\fR instructions and is therefore only supported for
19599 \&\s-1MIPS32R2, MIPS32R3\s0 and \s-1MIPS32R5\s0 processors.
19600 .Sp
19601 The register assignments for arguments and return values remain the
19602 same, but each scalar value is passed in a single 64\-bit register
19603 rather than a pair of 32\-bit registers.  For example, scalar
19604 floating-point values are returned in \fB\f(CB$f0\fB\fR only, not a
19605 \&\fB\f(CB$f0\fB\fR/\fB\f(CB$f1\fB\fR pair.  The set of call-saved registers also
19606 remains the same in that the even-numbered double-precision registers
19607 are saved.
19608 .Sp
19609 Two additional variants of the o32 \s-1ABI\s0 are supported to enable
19610 a transition from 32\-bit to 64\-bit registers.  These are \s-1FPXX\s0
19611 (\fB\-mfpxx\fR) and \s-1FP64A\s0 (\fB\-mfp64\fR \fB\-mno\-odd\-spreg\fR).
19612 The \s-1FPXX\s0 extension mandates that all code must execute correctly
19613 when run using 32\-bit or 64\-bit registers.  The code can be interlinked
19614 with either \s-1FP32\s0 or \s-1FP64,\s0 but not both.
19615 The \s-1FP64A\s0 extension is similar to the \s-1FP64\s0 extension but forbids the
19616 use of odd-numbered single-precision registers.  This can be used
19617 in conjunction with the \f(CW\*(C`FRE\*(C'\fR mode of FPUs in \s-1MIPS32R5\s0
19618 processors and allows both \s-1FP32\s0 and \s-1FP64A\s0 code to interlink and
19619 run in the same process without changing \s-1FPU\s0 modes.
19620 .IP "\fB\-mabicalls\fR" 4
19621 .IX Item "-mabicalls"
19622 .PD 0
19623 .IP "\fB\-mno\-abicalls\fR" 4
19624 .IX Item "-mno-abicalls"
19625 .PD
19626 Generate (do not generate) code that is suitable for SVR4\-style
19627 dynamic objects.  \fB\-mabicalls\fR is the default for SVR4\-based
19628 systems.
19629 .IP "\fB\-mshared\fR" 4
19630 .IX Item "-mshared"
19631 .PD 0
19632 .IP "\fB\-mno\-shared\fR" 4
19633 .IX Item "-mno-shared"
19634 .PD
19635 Generate (do not generate) code that is fully position-independent,
19636 and that can therefore be linked into shared libraries.  This option
19637 only affects \fB\-mabicalls\fR.
19638 .Sp
19639 All \fB\-mabicalls\fR code has traditionally been position-independent,
19640 regardless of options like \fB\-fPIC\fR and \fB\-fpic\fR.  However,
19641 as an extension, the \s-1GNU\s0 toolchain allows executables to use absolute
19642 accesses for locally-binding symbols.  It can also use shorter \s-1GP\s0
19643 initialization sequences and generate direct calls to locally-defined
19644 functions.  This mode is selected by \fB\-mno\-shared\fR.
19645 .Sp
19646 \&\fB\-mno\-shared\fR depends on binutils 2.16 or higher and generates
19647 objects that can only be linked by the \s-1GNU\s0 linker.  However, the option
19648 does not affect the \s-1ABI\s0 of the final executable; it only affects the \s-1ABI\s0
19649 of relocatable objects.  Using \fB\-mno\-shared\fR generally makes
19650 executables both smaller and quicker.
19651 .Sp
19652 \&\fB\-mshared\fR is the default.
19653 .IP "\fB\-mplt\fR" 4
19654 .IX Item "-mplt"
19655 .PD 0
19656 .IP "\fB\-mno\-plt\fR" 4
19657 .IX Item "-mno-plt"
19658 .PD
19659 Assume (do not assume) that the static and dynamic linkers
19660 support PLTs and copy relocations.  This option only affects
19661 \&\fB\-mno\-shared \-mabicalls\fR.  For the n64 \s-1ABI,\s0 this option
19662 has no effect without \fB\-msym32\fR.
19663 .Sp
19664 You can make \fB\-mplt\fR the default by configuring
19665 \&\s-1GCC\s0 with \fB\-\-with\-mips\-plt\fR.  The default is
19666 \&\fB\-mno\-plt\fR otherwise.
19667 .IP "\fB\-mxgot\fR" 4
19668 .IX Item "-mxgot"
19669 .PD 0
19670 .IP "\fB\-mno\-xgot\fR" 4
19671 .IX Item "-mno-xgot"
19672 .PD
19673 Lift (do not lift) the usual restrictions on the size of the global
19674 offset table.
19675 .Sp
19676 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT.\s0
19677 While this is relatively efficient, it only works if the \s-1GOT\s0
19678 is smaller than about 64k.  Anything larger causes the linker
19679 to report an error such as:
19680 .Sp
19681 .Vb 1
19682 \&        relocation truncated to fit: R_MIPS_GOT16 foobar
19683 .Ve
19684 .Sp
19685 If this happens, you should recompile your code with \fB\-mxgot\fR.
19686 This works with very large GOTs, although the code is also
19687 less efficient, since it takes three instructions to fetch the
19688 value of a global symbol.
19689 .Sp
19690 Note that some linkers can create multiple GOTs.  If you have such a
19691 linker, you should only need to use \fB\-mxgot\fR when a single object
19692 file accesses more than 64k's worth of \s-1GOT\s0 entries.  Very few do.
19693 .Sp
19694 These options have no effect unless \s-1GCC\s0 is generating position
19695 independent code.
19696 .IP "\fB\-mgp32\fR" 4
19697 .IX Item "-mgp32"
19698 Assume that general-purpose registers are 32 bits wide.
19699 .IP "\fB\-mgp64\fR" 4
19700 .IX Item "-mgp64"
19701 Assume that general-purpose registers are 64 bits wide.
19702 .IP "\fB\-mfp32\fR" 4
19703 .IX Item "-mfp32"
19704 Assume that floating-point registers are 32 bits wide.
19705 .IP "\fB\-mfp64\fR" 4
19706 .IX Item "-mfp64"
19707 Assume that floating-point registers are 64 bits wide.
19708 .IP "\fB\-mfpxx\fR" 4
19709 .IX Item "-mfpxx"
19710 Do not assume the width of floating-point registers.
19711 .IP "\fB\-mhard\-float\fR" 4
19712 .IX Item "-mhard-float"
19713 Use floating-point coprocessor instructions.
19714 .IP "\fB\-msoft\-float\fR" 4
19715 .IX Item "-msoft-float"
19716 Do not use floating-point coprocessor instructions.  Implement
19717 floating-point calculations using library calls instead.
19718 .IP "\fB\-mno\-float\fR" 4
19719 .IX Item "-mno-float"
19720 Equivalent to \fB\-msoft\-float\fR, but additionally asserts that the
19721 program being compiled does not perform any floating-point operations.
19722 This option is presently supported only by some bare-metal \s-1MIPS\s0
19723 configurations, where it may select a special set of libraries
19724 that lack all floating-point support (including, for example, the
19725 floating-point \f(CW\*(C`printf\*(C'\fR formats).  
19726 If code compiled with \fB\-mno\-float\fR accidentally contains
19727 floating-point operations, it is likely to suffer a link-time
19728 or run-time failure.
19729 .IP "\fB\-msingle\-float\fR" 4
19730 .IX Item "-msingle-float"
19731 Assume that the floating-point coprocessor only supports single-precision
19732 operations.
19733 .IP "\fB\-mdouble\-float\fR" 4
19734 .IX Item "-mdouble-float"
19735 Assume that the floating-point coprocessor supports double-precision
19736 operations.  This is the default.
19737 .IP "\fB\-modd\-spreg\fR" 4
19738 .IX Item "-modd-spreg"
19739 .PD 0
19740 .IP "\fB\-mno\-odd\-spreg\fR" 4
19741 .IX Item "-mno-odd-spreg"
19742 .PD
19743 Enable the use of odd-numbered single-precision floating-point registers
19744 for the o32 \s-1ABI.\s0  This is the default for processors that are known to
19745 support these registers.  When using the o32 \s-1FPXX ABI,\s0 \fB\-mno\-odd\-spreg\fR
19746 is set by default.
19747 .IP "\fB\-mabs=2008\fR" 4
19748 .IX Item "-mabs=2008"
19749 .PD 0
19750 .IP "\fB\-mabs=legacy\fR" 4
19751 .IX Item "-mabs=legacy"
19752 .PD
19753 These options control the treatment of the special not-a-number (NaN)
19754 \&\s-1IEEE 754\s0 floating-point data with the \f(CW\*(C`abs.\f(CIfmt\f(CW\*(C'\fR and
19755 \&\f(CW\*(C`neg.\f(CIfmt\f(CW\*(C'\fR machine instructions.
19756 .Sp
19757 By default or when \fB\-mabs=legacy\fR is used the legacy
19758 treatment is selected.  In this case these instructions are considered
19759 arithmetic and avoided where correct operation is required and the
19760 input operand might be a NaN.  A longer sequence of instructions that
19761 manipulate the sign bit of floating-point datum manually is used
19762 instead unless the \fB\-ffinite\-math\-only\fR option has also been
19763 specified.
19764 .Sp
19765 The \fB\-mabs=2008\fR option selects the \s-1IEEE 754\-2008\s0 treatment.  In
19766 this case these instructions are considered non-arithmetic and therefore
19767 operating correctly in all cases, including in particular where the
19768 input operand is a NaN.  These instructions are therefore always used
19769 for the respective operations.
19770 .IP "\fB\-mnan=2008\fR" 4
19771 .IX Item "-mnan=2008"
19772 .PD 0
19773 .IP "\fB\-mnan=legacy\fR" 4
19774 .IX Item "-mnan=legacy"
19775 .PD
19776 These options control the encoding of the special not-a-number (NaN)
19777 \&\s-1IEEE 754\s0 floating-point data.
19778 .Sp
19779 The \fB\-mnan=legacy\fR option selects the legacy encoding.  In this
19780 case quiet NaNs (qNaNs) are denoted by the first bit of their trailing
19781 significand field being 0, whereas signaling NaNs (sNaNs) are denoted
19782 by the first bit of their trailing significand field being 1.
19783 .Sp
19784 The \fB\-mnan=2008\fR option selects the \s-1IEEE 754\-2008\s0 encoding.  In
19785 this case qNaNs are denoted by the first bit of their trailing
19786 significand field being 1, whereas sNaNs are denoted by the first bit of
19787 their trailing significand field being 0.
19788 .Sp
19789 The default is \fB\-mnan=legacy\fR unless \s-1GCC\s0 has been configured with
19790 \&\fB\-\-with\-nan=2008\fR.
19791 .IP "\fB\-mllsc\fR" 4
19792 .IX Item "-mllsc"
19793 .PD 0
19794 .IP "\fB\-mno\-llsc\fR" 4
19795 .IX Item "-mno-llsc"
19796 .PD
19797 Use (do not use) \fBll\fR, \fBsc\fR, and \fBsync\fR instructions to
19798 implement atomic memory built-in functions.  When neither option is
19799 specified, \s-1GCC\s0 uses the instructions if the target architecture
19800 supports them.
19801 .Sp
19802 \&\fB\-mllsc\fR is useful if the runtime environment can emulate the
19803 instructions and \fB\-mno\-llsc\fR can be useful when compiling for
19804 nonstandard ISAs.  You can make either option the default by
19805 configuring \s-1GCC\s0 with \fB\-\-with\-llsc\fR and \fB\-\-without\-llsc\fR
19806 respectively.  \fB\-\-with\-llsc\fR is the default for some
19807 configurations; see the installation documentation for details.
19808 .IP "\fB\-mdsp\fR" 4
19809 .IX Item "-mdsp"
19810 .PD 0
19811 .IP "\fB\-mno\-dsp\fR" 4
19812 .IX Item "-mno-dsp"
19813 .PD
19814 Use (do not use) revision 1 of the \s-1MIPS DSP ASE.\s0
19815   This option defines the
19816 preprocessor macro \f(CW\*(C`_\|_mips_dsp\*(C'\fR.  It also defines
19817 \&\f(CW\*(C`_\|_mips_dsp_rev\*(C'\fR to 1.
19818 .IP "\fB\-mdspr2\fR" 4
19819 .IX Item "-mdspr2"
19820 .PD 0
19821 .IP "\fB\-mno\-dspr2\fR" 4
19822 .IX Item "-mno-dspr2"
19823 .PD
19824 Use (do not use) revision 2 of the \s-1MIPS DSP ASE.\s0
19825   This option defines the
19826 preprocessor macros \f(CW\*(C`_\|_mips_dsp\*(C'\fR and \f(CW\*(C`_\|_mips_dspr2\*(C'\fR.
19827 It also defines \f(CW\*(C`_\|_mips_dsp_rev\*(C'\fR to 2.
19828 .IP "\fB\-msmartmips\fR" 4
19829 .IX Item "-msmartmips"
19830 .PD 0
19831 .IP "\fB\-mno\-smartmips\fR" 4
19832 .IX Item "-mno-smartmips"
19833 .PD
19834 Use (do not use) the \s-1MIPS\s0 SmartMIPS \s-1ASE.\s0
19835 .IP "\fB\-mpaired\-single\fR" 4
19836 .IX Item "-mpaired-single"
19837 .PD 0
19838 .IP "\fB\-mno\-paired\-single\fR" 4
19839 .IX Item "-mno-paired-single"
19840 .PD
19841 Use (do not use) paired-single floating-point instructions.
19842   This option requires
19843 hardware floating-point support to be enabled.
19844 .IP "\fB\-mdmx\fR" 4
19845 .IX Item "-mdmx"
19846 .PD 0
19847 .IP "\fB\-mno\-mdmx\fR" 4
19848 .IX Item "-mno-mdmx"
19849 .PD
19850 Use (do not use) \s-1MIPS\s0 Digital Media Extension instructions.
19851 This option can only be used when generating 64\-bit code and requires
19852 hardware floating-point support to be enabled.
19853 .IP "\fB\-mips3d\fR" 4
19854 .IX Item "-mips3d"
19855 .PD 0
19856 .IP "\fB\-mno\-mips3d\fR" 4
19857 .IX Item "-mno-mips3d"
19858 .PD
19859 Use (do not use) the \s-1MIPS\-3D ASE.\s0  
19860 The option \fB\-mips3d\fR implies \fB\-mpaired\-single\fR.
19861 .IP "\fB\-mmicromips\fR" 4
19862 .IX Item "-mmicromips"
19863 .PD 0
19864 .IP "\fB\-mno\-micromips\fR" 4
19865 .IX Item "-mno-micromips"
19866 .PD
19867 Generate (do not generate) microMIPS code.
19868 .Sp
19869 MicroMIPS code generation can also be controlled on a per-function basis
19870 by means of \f(CW\*(C`micromips\*(C'\fR and \f(CW\*(C`nomicromips\*(C'\fR attributes.
19871 .IP "\fB\-mmt\fR" 4
19872 .IX Item "-mmt"
19873 .PD 0
19874 .IP "\fB\-mno\-mt\fR" 4
19875 .IX Item "-mno-mt"
19876 .PD
19877 Use (do not use) \s-1MT\s0 Multithreading instructions.
19878 .IP "\fB\-mmcu\fR" 4
19879 .IX Item "-mmcu"
19880 .PD 0
19881 .IP "\fB\-mno\-mcu\fR" 4
19882 .IX Item "-mno-mcu"
19883 .PD
19884 Use (do not use) the \s-1MIPS MCU ASE\s0 instructions.
19885 .IP "\fB\-meva\fR" 4
19886 .IX Item "-meva"
19887 .PD 0
19888 .IP "\fB\-mno\-eva\fR" 4
19889 .IX Item "-mno-eva"
19890 .PD
19891 Use (do not use) the \s-1MIPS\s0 Enhanced Virtual Addressing instructions.
19892 .IP "\fB\-mvirt\fR" 4
19893 .IX Item "-mvirt"
19894 .PD 0
19895 .IP "\fB\-mno\-virt\fR" 4
19896 .IX Item "-mno-virt"
19897 .PD
19898 Use (do not use) the \s-1MIPS\s0 Virtualization (\s-1VZ\s0) instructions.
19899 .IP "\fB\-mxpa\fR" 4
19900 .IX Item "-mxpa"
19901 .PD 0
19902 .IP "\fB\-mno\-xpa\fR" 4
19903 .IX Item "-mno-xpa"
19904 .PD
19905 Use (do not use) the \s-1MIPS\s0 eXtended Physical Address (\s-1XPA\s0) instructions.
19906 .IP "\fB\-mlong64\fR" 4
19907 .IX Item "-mlong64"
19908 Force \f(CW\*(C`long\*(C'\fR types to be 64 bits wide.  See \fB\-mlong32\fR for
19909 an explanation of the default and the way that the pointer size is
19910 determined.
19911 .IP "\fB\-mlong32\fR" 4
19912 .IX Item "-mlong32"
19913 Force \f(CW\*(C`long\*(C'\fR, \f(CW\*(C`int\*(C'\fR, and pointer types to be 32 bits wide.
19914 .Sp
19915 The default size of \f(CW\*(C`int\*(C'\fRs, \f(CW\*(C`long\*(C'\fRs and pointers depends on
19916 the \s-1ABI.\s0  All the supported ABIs use 32\-bit \f(CW\*(C`int\*(C'\fRs.  The n64 \s-1ABI\s0
19917 uses 64\-bit \f(CW\*(C`long\*(C'\fRs, as does the 64\-bit \s-1EABI\s0; the others use
19918 32\-bit \f(CW\*(C`long\*(C'\fRs.  Pointers are the same size as \f(CW\*(C`long\*(C'\fRs,
19919 or the same size as integer registers, whichever is smaller.
19920 .IP "\fB\-msym32\fR" 4
19921 .IX Item "-msym32"
19922 .PD 0
19923 .IP "\fB\-mno\-sym32\fR" 4
19924 .IX Item "-mno-sym32"
19925 .PD
19926 Assume (do not assume) that all symbols have 32\-bit values, regardless
19927 of the selected \s-1ABI.\s0  This option is useful in combination with
19928 \&\fB\-mabi=64\fR and \fB\-mno\-abicalls\fR because it allows \s-1GCC\s0
19929 to generate shorter and faster references to symbolic addresses.
19930 .IP "\fB\-G\fR \fInum\fR" 4
19931 .IX Item "-G num"
19932 Put definitions of externally-visible data in a small data section
19933 if that data is no bigger than \fInum\fR bytes.  \s-1GCC\s0 can then generate
19934 more efficient accesses to the data; see \fB\-mgpopt\fR for details.
19935 .Sp
19936 The default \fB\-G\fR option depends on the configuration.
19937 .IP "\fB\-mlocal\-sdata\fR" 4
19938 .IX Item "-mlocal-sdata"
19939 .PD 0
19940 .IP "\fB\-mno\-local\-sdata\fR" 4
19941 .IX Item "-mno-local-sdata"
19942 .PD
19943 Extend (do not extend) the \fB\-G\fR behavior to local data too,
19944 such as to static variables in C.  \fB\-mlocal\-sdata\fR is the
19945 default for all configurations.
19946 .Sp
19947 If the linker complains that an application is using too much small data,
19948 you might want to try rebuilding the less performance-critical parts with
19949 \&\fB\-mno\-local\-sdata\fR.  You might also want to build large
19950 libraries with \fB\-mno\-local\-sdata\fR, so that the libraries leave
19951 more room for the main program.
19952 .IP "\fB\-mextern\-sdata\fR" 4
19953 .IX Item "-mextern-sdata"
19954 .PD 0
19955 .IP "\fB\-mno\-extern\-sdata\fR" 4
19956 .IX Item "-mno-extern-sdata"
19957 .PD
19958 Assume (do not assume) that externally-defined data is in
19959 a small data section if the size of that data is within the \fB\-G\fR limit.
19960 \&\fB\-mextern\-sdata\fR is the default for all configurations.
19961 .Sp
19962 If you compile a module \fIMod\fR with \fB\-mextern\-sdata\fR \fB\-G\fR
19963 \&\fInum\fR \fB\-mgpopt\fR, and \fIMod\fR references a variable \fIVar\fR
19964 that is no bigger than \fInum\fR bytes, you must make sure that \fIVar\fR
19965 is placed in a small data section.  If \fIVar\fR is defined by another
19966 module, you must either compile that module with a high-enough
19967 \&\fB\-G\fR setting or attach a \f(CW\*(C`section\*(C'\fR attribute to \fIVar\fR's
19968 definition.  If \fIVar\fR is common, you must link the application
19969 with a high-enough \fB\-G\fR setting.
19970 .Sp
19971 The easiest way of satisfying these restrictions is to compile
19972 and link every module with the same \fB\-G\fR option.  However,
19973 you may wish to build a library that supports several different
19974 small data limits.  You can do this by compiling the library with
19975 the highest supported \fB\-G\fR setting and additionally using
19976 \&\fB\-mno\-extern\-sdata\fR to stop the library from making assumptions
19977 about externally-defined data.
19978 .IP "\fB\-mgpopt\fR" 4
19979 .IX Item "-mgpopt"
19980 .PD 0
19981 .IP "\fB\-mno\-gpopt\fR" 4
19982 .IX Item "-mno-gpopt"
19983 .PD
19984 Use (do not use) GP-relative accesses for symbols that are known to be
19985 in a small data section; see \fB\-G\fR, \fB\-mlocal\-sdata\fR and
19986 \&\fB\-mextern\-sdata\fR.  \fB\-mgpopt\fR is the default for all
19987 configurations.
19988 .Sp
19989 \&\fB\-mno\-gpopt\fR is useful for cases where the \f(CW$gp\fR register
19990 might not hold the value of \f(CW\*(C`_gp\*(C'\fR.  For example, if the code is
19991 part of a library that might be used in a boot monitor, programs that
19992 call boot monitor routines pass an unknown value in \f(CW$gp\fR.
19993 (In such situations, the boot monitor itself is usually compiled
19994 with \fB\-G0\fR.)
19995 .Sp
19996 \&\fB\-mno\-gpopt\fR implies \fB\-mno\-local\-sdata\fR and
19997 \&\fB\-mno\-extern\-sdata\fR.
19998 .IP "\fB\-membedded\-data\fR" 4
19999 .IX Item "-membedded-data"
20000 .PD 0
20001 .IP "\fB\-mno\-embedded\-data\fR" 4
20002 .IX Item "-mno-embedded-data"
20003 .PD
20004 Allocate variables to the read-only data section first if possible, then
20005 next in the small data section if possible, otherwise in data.  This gives
20006 slightly slower code than the default, but reduces the amount of \s-1RAM\s0 required
20007 when executing, and thus may be preferred for some embedded systems.
20008 .IP "\fB\-muninit\-const\-in\-rodata\fR" 4
20009 .IX Item "-muninit-const-in-rodata"
20010 .PD 0
20011 .IP "\fB\-mno\-uninit\-const\-in\-rodata\fR" 4
20012 .IX Item "-mno-uninit-const-in-rodata"
20013 .PD
20014 Put uninitialized \f(CW\*(C`const\*(C'\fR variables in the read-only data section.
20015 This option is only meaningful in conjunction with \fB\-membedded\-data\fR.
20016 .IP "\fB\-mcode\-readable=\fR\fIsetting\fR" 4
20017 .IX Item "-mcode-readable=setting"
20018 Specify whether \s-1GCC\s0 may generate code that reads from executable sections.
20019 There are three possible settings:
20020 .RS 4
20021 .IP "\fB\-mcode\-readable=yes\fR" 4
20022 .IX Item "-mcode-readable=yes"
20023 Instructions may freely access executable sections.  This is the
20024 default setting.
20025 .IP "\fB\-mcode\-readable=pcrel\fR" 4
20026 .IX Item "-mcode-readable=pcrel"
20027 \&\s-1MIPS16\s0 PC-relative load instructions can access executable sections,
20028 but other instructions must not do so.  This option is useful on 4KSc
20029 and 4KSd processors when the code TLBs have the Read Inhibit bit set.
20030 It is also useful on processors that can be configured to have a dual
20031 instruction/data \s-1SRAM\s0 interface and that, like the M4K, automatically
20032 redirect PC-relative loads to the instruction \s-1RAM.\s0
20033 .IP "\fB\-mcode\-readable=no\fR" 4
20034 .IX Item "-mcode-readable=no"
20035 Instructions must not access executable sections.  This option can be
20036 useful on targets that are configured to have a dual instruction/data
20037 \&\s-1SRAM\s0 interface but that (unlike the M4K) do not automatically redirect
20038 PC-relative loads to the instruction \s-1RAM.\s0
20039 .RE
20040 .RS 4
20041 .RE
20042 .IP "\fB\-msplit\-addresses\fR" 4
20043 .IX Item "-msplit-addresses"
20044 .PD 0
20045 .IP "\fB\-mno\-split\-addresses\fR" 4
20046 .IX Item "-mno-split-addresses"
20047 .PD
20048 Enable (disable) use of the \f(CW\*(C`%hi()\*(C'\fR and \f(CW\*(C`%lo()\*(C'\fR assembler
20049 relocation operators.  This option has been superseded by
20050 \&\fB\-mexplicit\-relocs\fR but is retained for backwards compatibility.
20051 .IP "\fB\-mexplicit\-relocs\fR" 4
20052 .IX Item "-mexplicit-relocs"
20053 .PD 0
20054 .IP "\fB\-mno\-explicit\-relocs\fR" 4
20055 .IX Item "-mno-explicit-relocs"
20056 .PD
20057 Use (do not use) assembler relocation operators when dealing with symbolic
20058 addresses.  The alternative, selected by \fB\-mno\-explicit\-relocs\fR,
20059 is to use assembler macros instead.
20060 .Sp
20061 \&\fB\-mexplicit\-relocs\fR is the default if \s-1GCC\s0 was configured
20062 to use an assembler that supports relocation operators.
20063 .IP "\fB\-mcheck\-zero\-division\fR" 4
20064 .IX Item "-mcheck-zero-division"
20065 .PD 0
20066 .IP "\fB\-mno\-check\-zero\-division\fR" 4
20067 .IX Item "-mno-check-zero-division"
20068 .PD
20069 Trap (do not trap) on integer division by zero.
20070 .Sp
20071 The default is \fB\-mcheck\-zero\-division\fR.
20072 .IP "\fB\-mdivide\-traps\fR" 4
20073 .IX Item "-mdivide-traps"
20074 .PD 0
20075 .IP "\fB\-mdivide\-breaks\fR" 4
20076 .IX Item "-mdivide-breaks"
20077 .PD
20078 \&\s-1MIPS\s0 systems check for division by zero by generating either a
20079 conditional trap or a break instruction.  Using traps results in
20080 smaller code, but is only supported on \s-1MIPS II\s0 and later.  Also, some
20081 versions of the Linux kernel have a bug that prevents trap from
20082 generating the proper signal (\f(CW\*(C`SIGFPE\*(C'\fR).  Use \fB\-mdivide\-traps\fR to
20083 allow conditional traps on architectures that support them and
20084 \&\fB\-mdivide\-breaks\fR to force the use of breaks.
20085 .Sp
20086 The default is usually \fB\-mdivide\-traps\fR, but this can be
20087 overridden at configure time using \fB\-\-with\-divide=breaks\fR.
20088 Divide-by-zero checks can be completely disabled using
20089 \&\fB\-mno\-check\-zero\-division\fR.
20090 .IP "\fB\-mload\-store\-pairs\fR" 4
20091 .IX Item "-mload-store-pairs"
20092 .PD 0
20093 .IP "\fB\-mno\-load\-store\-pairs\fR" 4
20094 .IX Item "-mno-load-store-pairs"
20095 .PD
20096 Enable (disable) an optimization that pairs consecutive load or store
20097 instructions to enable load/store bonding.  This option is enabled by
20098 default but only takes effect when the selected architecture is known
20099 to support bonding.
20100 .IP "\fB\-mmemcpy\fR" 4
20101 .IX Item "-mmemcpy"
20102 .PD 0
20103 .IP "\fB\-mno\-memcpy\fR" 4
20104 .IX Item "-mno-memcpy"
20105 .PD
20106 Force (do not force) the use of \f(CW\*(C`memcpy\*(C'\fR for non-trivial block
20107 moves.  The default is \fB\-mno\-memcpy\fR, which allows \s-1GCC\s0 to inline
20108 most constant-sized copies.
20109 .IP "\fB\-mlong\-calls\fR" 4
20110 .IX Item "-mlong-calls"
20111 .PD 0
20112 .IP "\fB\-mno\-long\-calls\fR" 4
20113 .IX Item "-mno-long-calls"
20114 .PD
20115 Disable (do not disable) use of the \f(CW\*(C`jal\*(C'\fR instruction.  Calling
20116 functions using \f(CW\*(C`jal\*(C'\fR is more efficient but requires the caller
20117 and callee to be in the same 256 megabyte segment.
20118 .Sp
20119 This option has no effect on abicalls code.  The default is
20120 \&\fB\-mno\-long\-calls\fR.
20121 .IP "\fB\-mmad\fR" 4
20122 .IX Item "-mmad"
20123 .PD 0
20124 .IP "\fB\-mno\-mad\fR" 4
20125 .IX Item "-mno-mad"
20126 .PD
20127 Enable (disable) use of the \f(CW\*(C`mad\*(C'\fR, \f(CW\*(C`madu\*(C'\fR and \f(CW\*(C`mul\*(C'\fR
20128 instructions, as provided by the R4650 \s-1ISA.\s0
20129 .IP "\fB\-mimadd\fR" 4
20130 .IX Item "-mimadd"
20131 .PD 0
20132 .IP "\fB\-mno\-imadd\fR" 4
20133 .IX Item "-mno-imadd"
20134 .PD
20135 Enable (disable) use of the \f(CW\*(C`madd\*(C'\fR and \f(CW\*(C`msub\*(C'\fR integer
20136 instructions.  The default is \fB\-mimadd\fR on architectures
20137 that support \f(CW\*(C`madd\*(C'\fR and \f(CW\*(C`msub\*(C'\fR except for the 74k 
20138 architecture where it was found to generate slower code.
20139 .IP "\fB\-mfused\-madd\fR" 4
20140 .IX Item "-mfused-madd"
20141 .PD 0
20142 .IP "\fB\-mno\-fused\-madd\fR" 4
20143 .IX Item "-mno-fused-madd"
20144 .PD
20145 Enable (disable) use of the floating-point multiply-accumulate
20146 instructions, when they are available.  The default is
20147 \&\fB\-mfused\-madd\fR.
20148 .Sp
20149 On the R8000 \s-1CPU\s0 when multiply-accumulate instructions are used,
20150 the intermediate product is calculated to infinite precision
20151 and is not subject to the \s-1FCSR\s0 Flush to Zero bit.  This may be
20152 undesirable in some circumstances.  On other processors the result
20153 is numerically identical to the equivalent computation using
20154 separate multiply, add, subtract and negate instructions.
20155 .IP "\fB\-nocpp\fR" 4
20156 .IX Item "-nocpp"
20157 Tell the \s-1MIPS\s0 assembler to not run its preprocessor over user
20158 assembler files (with a \fB.s\fR suffix) when assembling them.
20159 .IP "\fB\-mfix\-24k\fR" 4
20160 .IX Item "-mfix-24k"
20161 .PD 0
20162 .IP "\fB\-mno\-fix\-24k\fR" 4
20163 .IX Item "-mno-fix-24k"
20164 .PD
20165 Work around the 24K E48 (lost data on stores during refill) errata.
20166 The workarounds are implemented by the assembler rather than by \s-1GCC.\s0
20167 .IP "\fB\-mfix\-r4000\fR" 4
20168 .IX Item "-mfix-r4000"
20169 .PD 0
20170 .IP "\fB\-mno\-fix\-r4000\fR" 4
20171 .IX Item "-mno-fix-r4000"
20172 .PD
20173 Work around certain R4000 \s-1CPU\s0 errata:
20174 .RS 4
20175 .IP "\-" 4
20176 A double-word or a variable shift may give an incorrect result if executed
20177 immediately after starting an integer division.
20178 .IP "\-" 4
20179 A double-word or a variable shift may give an incorrect result if executed
20180 while an integer multiplication is in progress.
20181 .IP "\-" 4
20182 An integer division may give an incorrect result if started in a delay slot
20183 of a taken branch or a jump.
20184 .RE
20185 .RS 4
20186 .RE
20187 .IP "\fB\-mfix\-r4400\fR" 4
20188 .IX Item "-mfix-r4400"
20189 .PD 0
20190 .IP "\fB\-mno\-fix\-r4400\fR" 4
20191 .IX Item "-mno-fix-r4400"
20192 .PD
20193 Work around certain R4400 \s-1CPU\s0 errata:
20194 .RS 4
20195 .IP "\-" 4
20196 A double-word or a variable shift may give an incorrect result if executed
20197 immediately after starting an integer division.
20198 .RE
20199 .RS 4
20200 .RE
20201 .IP "\fB\-mfix\-r10000\fR" 4
20202 .IX Item "-mfix-r10000"
20203 .PD 0
20204 .IP "\fB\-mno\-fix\-r10000\fR" 4
20205 .IX Item "-mno-fix-r10000"
20206 .PD
20207 Work around certain R10000 errata:
20208 .RS 4
20209 .IP "\-" 4
20210 \&\f(CW\*(C`ll\*(C'\fR/\f(CW\*(C`sc\*(C'\fR sequences may not behave atomically on revisions
20211 prior to 3.0.  They may deadlock on revisions 2.6 and earlier.
20212 .RE
20213 .RS 4
20214 .Sp
20215 This option can only be used if the target architecture supports
20216 branch-likely instructions.  \fB\-mfix\-r10000\fR is the default when
20217 \&\fB\-march=r10000\fR is used; \fB\-mno\-fix\-r10000\fR is the default
20218 otherwise.
20219 .RE
20220 .IP "\fB\-mfix\-rm7000\fR" 4
20221 .IX Item "-mfix-rm7000"
20222 .PD 0
20223 .IP "\fB\-mno\-fix\-rm7000\fR" 4
20224 .IX Item "-mno-fix-rm7000"
20225 .PD
20226 Work around the \s-1RM7000\s0 \f(CW\*(C`dmult\*(C'\fR/\f(CW\*(C`dmultu\*(C'\fR errata.  The
20227 workarounds are implemented by the assembler rather than by \s-1GCC.\s0
20228 .IP "\fB\-mfix\-vr4120\fR" 4
20229 .IX Item "-mfix-vr4120"
20230 .PD 0
20231 .IP "\fB\-mno\-fix\-vr4120\fR" 4
20232 .IX Item "-mno-fix-vr4120"
20233 .PD
20234 Work around certain \s-1VR4120\s0 errata:
20235 .RS 4
20236 .IP "\-" 4
20237 \&\f(CW\*(C`dmultu\*(C'\fR does not always produce the correct result.
20238 .IP "\-" 4
20239 \&\f(CW\*(C`div\*(C'\fR and \f(CW\*(C`ddiv\*(C'\fR do not always produce the correct result if one
20240 of the operands is negative.
20241 .RE
20242 .RS 4
20243 .Sp
20244 The workarounds for the division errata rely on special functions in
20245 \&\fIlibgcc.a\fR.  At present, these functions are only provided by
20246 the \f(CW\*(C`mips64vr*\-elf\*(C'\fR configurations.
20247 .Sp
20248 Other \s-1VR4120\s0 errata require a \s-1NOP\s0 to be inserted between certain pairs of
20249 instructions.  These errata are handled by the assembler, not by \s-1GCC\s0 itself.
20250 .RE
20251 .IP "\fB\-mfix\-vr4130\fR" 4
20252 .IX Item "-mfix-vr4130"
20253 Work around the \s-1VR4130\s0 \f(CW\*(C`mflo\*(C'\fR/\f(CW\*(C`mfhi\*(C'\fR errata.  The
20254 workarounds are implemented by the assembler rather than by \s-1GCC,\s0
20255 although \s-1GCC\s0 avoids using \f(CW\*(C`mflo\*(C'\fR and \f(CW\*(C`mfhi\*(C'\fR if the
20256 \&\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
20257 instructions are available instead.
20258 .IP "\fB\-mfix\-sb1\fR" 4
20259 .IX Item "-mfix-sb1"
20260 .PD 0
20261 .IP "\fB\-mno\-fix\-sb1\fR" 4
20262 .IX Item "-mno-fix-sb1"
20263 .PD
20264 Work around certain \s-1SB\-1 CPU\s0 core errata.
20265 (This flag currently works around the \s-1SB\-1\s0 revision 2
20266 \&\*(L"F1\*(R" and \*(L"F2\*(R" floating-point errata.)
20267 .IP "\fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR" 4
20268 .IX Item "-mr10k-cache-barrier=setting"
20269 Specify whether \s-1GCC\s0 should insert cache barriers to avoid the
20270 side effects of speculation on R10K processors.
20271 .Sp
20272 In common with many processors, the R10K tries to predict the outcome
20273 of a conditional branch and speculatively executes instructions from
20274 the \*(L"taken\*(R" branch.  It later aborts these instructions if the
20275 predicted outcome is wrong.  However, on the R10K, even aborted
20276 instructions can have side effects.
20277 .Sp
20278 This problem only affects kernel stores and, depending on the system,
20279 kernel loads.  As an example, a speculatively-executed store may load
20280 the target memory into cache and mark the cache line as dirty, even if
20281 the store itself is later aborted.  If a \s-1DMA\s0 operation writes to the
20282 same area of memory before the \*(L"dirty\*(R" line is flushed, the cached
20283 data overwrites the DMA-ed data.  See the R10K processor manual
20284 for a full description, including other potential problems.
20285 .Sp
20286 One workaround is to insert cache barrier instructions before every memory
20287 access that might be speculatively executed and that might have side
20288 effects even if aborted.  \fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR
20289 controls \s-1GCC\s0's implementation of this workaround.  It assumes that
20290 aborted accesses to any byte in the following regions does not have
20291 side effects:
20292 .RS 4
20293 .IP "1." 4
20294 .IX Item "1."
20295 the memory occupied by the current function's stack frame;
20296 .IP "2." 4
20297 .IX Item "2."
20298 the memory occupied by an incoming stack argument;
20299 .IP "3." 4
20300 .IX Item "3."
20301 the memory occupied by an object with a link-time-constant address.
20302 .RE
20303 .RS 4
20304 .Sp
20305 It is the kernel's responsibility to ensure that speculative
20306 accesses to these regions are indeed safe.
20307 .Sp
20308 If the input program contains a function declaration such as:
20309 .Sp
20310 .Vb 1
20311 \&        void foo (void);
20312 .Ve
20313 .Sp
20314 then the implementation of \f(CW\*(C`foo\*(C'\fR must allow \f(CW\*(C`j foo\*(C'\fR and
20315 \&\f(CW\*(C`jal foo\*(C'\fR to be executed speculatively.  \s-1GCC\s0 honors this
20316 restriction for functions it compiles itself.  It expects non-GCC
20317 functions (such as hand-written assembly code) to do the same.
20318 .Sp
20319 The option has three forms:
20320 .IP "\fB\-mr10k\-cache\-barrier=load\-store\fR" 4
20321 .IX Item "-mr10k-cache-barrier=load-store"
20322 Insert a cache barrier before a load or store that might be
20323 speculatively executed and that might have side effects even
20324 if aborted.
20325 .IP "\fB\-mr10k\-cache\-barrier=store\fR" 4
20326 .IX Item "-mr10k-cache-barrier=store"
20327 Insert a cache barrier before a store that might be speculatively
20328 executed and that might have side effects even if aborted.
20329 .IP "\fB\-mr10k\-cache\-barrier=none\fR" 4
20330 .IX Item "-mr10k-cache-barrier=none"
20331 Disable the insertion of cache barriers.  This is the default setting.
20332 .RE
20333 .RS 4
20334 .RE
20335 .IP "\fB\-mflush\-func=\fR\fIfunc\fR" 4
20336 .IX Item "-mflush-func=func"
20337 .PD 0
20338 .IP "\fB\-mno\-flush\-func\fR" 4
20339 .IX Item "-mno-flush-func"
20340 .PD
20341 Specifies the function to call to flush the I and D caches, or to not
20342 call any such function.  If called, the function must take the same
20343 arguments as the common \f(CW\*(C`_flush_func\*(C'\fR, that is, the address of the
20344 memory range for which the cache is being flushed, the size of the
20345 memory range, and the number 3 (to flush both caches).  The default
20346 depends on the target \s-1GCC\s0 was configured for, but commonly is either
20347 \&\f(CW\*(C`_flush_func\*(C'\fR or \f(CW\*(C`_\|_cpu_flush\*(C'\fR.
20348 .IP "\fBmbranch\-cost=\fR\fInum\fR" 4
20349 .IX Item "mbranch-cost=num"
20350 Set the cost of branches to roughly \fInum\fR \*(L"simple\*(R" instructions.
20351 This cost is only a heuristic and is not guaranteed to produce
20352 consistent results across releases.  A zero cost redundantly selects
20353 the default, which is based on the \fB\-mtune\fR setting.
20354 .IP "\fB\-mbranch\-likely\fR" 4
20355 .IX Item "-mbranch-likely"
20356 .PD 0
20357 .IP "\fB\-mno\-branch\-likely\fR" 4
20358 .IX Item "-mno-branch-likely"
20359 .PD
20360 Enable or disable use of Branch Likely instructions, regardless of the
20361 default for the selected architecture.  By default, Branch Likely
20362 instructions may be generated if they are supported by the selected
20363 architecture.  An exception is for the \s-1MIPS32\s0 and \s-1MIPS64\s0 architectures
20364 and processors that implement those architectures; for those, Branch
20365 Likely instructions are not be generated by default because the \s-1MIPS32\s0
20366 and \s-1MIPS64\s0 architectures specifically deprecate their use.
20367 .IP "\fB\-mcompact\-branches=never\fR" 4
20368 .IX Item "-mcompact-branches=never"
20369 .PD 0
20370 .IP "\fB\-mcompact\-branches=optimal\fR" 4
20371 .IX Item "-mcompact-branches=optimal"
20372 .IP "\fB\-mcompact\-branches=always\fR" 4
20373 .IX Item "-mcompact-branches=always"
20374 .PD
20375 These options control which form of branches will be generated.  The
20376 default is \fB\-mcompact\-branches=optimal\fR.
20377 .Sp
20378 The \fB\-mcompact\-branches=never\fR option ensures that compact branch
20379 instructions will never be generated.
20380 .Sp
20381 The \fB\-mcompact\-branches=always\fR option ensures that a compact
20382 branch instruction will be generated if available.  If a compact branch
20383 instruction is not available, a delay slot form of the branch will be
20384 used instead.
20385 .Sp
20386 This option is supported from \s-1MIPS\s0 Release 6 onwards.
20387 .Sp
20388 The \fB\-mcompact\-branches=optimal\fR option will cause a delay slot
20389 branch to be used if one is available in the current \s-1ISA\s0 and the delay
20390 slot is successfully filled.  If the delay slot is not filled, a compact
20391 branch will be chosen if one is available.
20392 .IP "\fB\-mfp\-exceptions\fR" 4
20393 .IX Item "-mfp-exceptions"
20394 .PD 0
20395 .IP "\fB\-mno\-fp\-exceptions\fR" 4
20396 .IX Item "-mno-fp-exceptions"
20397 .PD
20398 Specifies whether \s-1FP\s0 exceptions are enabled.  This affects how
20399 \&\s-1FP\s0 instructions are scheduled for some processors.
20400 The default is that \s-1FP\s0 exceptions are
20401 enabled.
20402 .Sp
20403 For instance, on the \s-1SB\-1,\s0 if \s-1FP\s0 exceptions are disabled, and we are emitting
20404 64\-bit code, then we can use both \s-1FP\s0 pipes.  Otherwise, we can only use one
20405 \&\s-1FP\s0 pipe.
20406 .IP "\fB\-mvr4130\-align\fR" 4
20407 .IX Item "-mvr4130-align"
20408 .PD 0
20409 .IP "\fB\-mno\-vr4130\-align\fR" 4
20410 .IX Item "-mno-vr4130-align"
20411 .PD
20412 The \s-1VR4130\s0 pipeline is two-way superscalar, but can only issue two
20413 instructions together if the first one is 8\-byte aligned.  When this
20414 option is enabled, \s-1GCC\s0 aligns pairs of instructions that it
20415 thinks should execute in parallel.
20416 .Sp
20417 This option only has an effect when optimizing for the \s-1VR4130.\s0
20418 It normally makes code faster, but at the expense of making it bigger.
20419 It is enabled by default at optimization level \fB\-O3\fR.
20420 .IP "\fB\-msynci\fR" 4
20421 .IX Item "-msynci"
20422 .PD 0
20423 .IP "\fB\-mno\-synci\fR" 4
20424 .IX Item "-mno-synci"
20425 .PD
20426 Enable (disable) generation of \f(CW\*(C`synci\*(C'\fR instructions on
20427 architectures that support it.  The \f(CW\*(C`synci\*(C'\fR instructions (if
20428 enabled) are generated when \f(CW\*(C`_\|_builtin_\|_\|_clear_cache\*(C'\fR is
20429 compiled.
20430 .Sp
20431 This option defaults to \fB\-mno\-synci\fR, but the default can be
20432 overridden by configuring \s-1GCC\s0 with \fB\-\-with\-synci\fR.
20433 .Sp
20434 When compiling code for single processor systems, it is generally safe
20435 to use \f(CW\*(C`synci\*(C'\fR.  However, on many multi-core (\s-1SMP\s0) systems, it
20436 does not invalidate the instruction caches on all cores and may lead
20437 to undefined behavior.
20438 .IP "\fB\-mrelax\-pic\-calls\fR" 4
20439 .IX Item "-mrelax-pic-calls"
20440 .PD 0
20441 .IP "\fB\-mno\-relax\-pic\-calls\fR" 4
20442 .IX Item "-mno-relax-pic-calls"
20443 .PD
20444 Try to turn \s-1PIC\s0 calls that are normally dispatched via register
20445 \&\f(CW$25\fR into direct calls.  This is only possible if the linker can
20446 resolve the destination at link time and if the destination is within
20447 range for a direct call.
20448 .Sp
20449 \&\fB\-mrelax\-pic\-calls\fR is the default if \s-1GCC\s0 was configured to use
20450 an assembler and a linker that support the \f(CW\*(C`.reloc\*(C'\fR assembly
20451 directive and \fB\-mexplicit\-relocs\fR is in effect.  With
20452 \&\fB\-mno\-explicit\-relocs\fR, this optimization can be performed by the
20453 assembler and the linker alone without help from the compiler.
20454 .IP "\fB\-mmcount\-ra\-address\fR" 4
20455 .IX Item "-mmcount-ra-address"
20456 .PD 0
20457 .IP "\fB\-mno\-mcount\-ra\-address\fR" 4
20458 .IX Item "-mno-mcount-ra-address"
20459 .PD
20460 Emit (do not emit) code that allows \f(CW\*(C`_mcount\*(C'\fR to modify the
20461 calling function's return address.  When enabled, this option extends
20462 the usual \f(CW\*(C`_mcount\*(C'\fR interface with a new \fIra-address\fR
20463 parameter, which has type \f(CW\*(C`intptr_t *\*(C'\fR and is passed in register
20464 \&\f(CW$12\fR.  \f(CW\*(C`_mcount\*(C'\fR can then modify the return address by
20465 doing both of the following:
20466 .RS 4
20467 .IP "*" 4
20468 Returning the new address in register \f(CW$31\fR.
20469 .IP "*" 4
20470 Storing the new address in \f(CW\*(C`*\f(CIra\-address\f(CW\*(C'\fR,
20471 if \fIra-address\fR is nonnull.
20472 .RE
20473 .RS 4
20474 .Sp
20475 The default is \fB\-mno\-mcount\-ra\-address\fR.
20476 .RE
20477 .IP "\fB\-mframe\-header\-opt\fR" 4
20478 .IX Item "-mframe-header-opt"
20479 .PD 0
20480 .IP "\fB\-mno\-frame\-header\-opt\fR" 4
20481 .IX Item "-mno-frame-header-opt"
20482 .PD
20483 Enable (disable) frame header optimization in the o32 \s-1ABI.\s0  When using the
20484 o32 \s-1ABI,\s0 calling functions will allocate 16 bytes on the stack for the called
20485 function to write out register arguments.  When enabled, this optimization
20486 will suppress the allocation of the frame header if it can be determined that
20487 it is unused.
20488 .Sp
20489 This optimization is off by default at all optimization levels.
20490 .IP "\fB\-mlxc1\-sxc1\fR" 4
20491 .IX Item "-mlxc1-sxc1"
20492 .PD 0
20493 .IP "\fB\-mno\-lxc1\-sxc1\fR" 4
20494 .IX Item "-mno-lxc1-sxc1"
20495 .PD
20496 When applicable, enable (disable) the generation of \f(CW\*(C`lwxc1\*(C'\fR,
20497 \&\f(CW\*(C`swxc1\*(C'\fR, \f(CW\*(C`ldxc1\*(C'\fR, \f(CW\*(C`sdxc1\*(C'\fR instructions.  Enabled by default.
20498 .IP "\fB\-mmadd4\fR" 4
20499 .IX Item "-mmadd4"
20500 .PD 0
20501 .IP "\fB\-mno\-madd4\fR" 4
20502 .IX Item "-mno-madd4"
20503 .PD
20504 When applicable, enable (disable) the generation of 4\-operand \f(CW\*(C`madd.s\*(C'\fR,
20505 \&\f(CW\*(C`madd.d\*(C'\fR and related instructions.  Enabled by default.
20506 .PP
20507 \fI\s-1MMIX\s0 Options\fR
20508 .IX Subsection "MMIX Options"
20509 .PP
20510 These options are defined for the \s-1MMIX:\s0
20511 .IP "\fB\-mlibfuncs\fR" 4
20512 .IX Item "-mlibfuncs"
20513 .PD 0
20514 .IP "\fB\-mno\-libfuncs\fR" 4
20515 .IX Item "-mno-libfuncs"
20516 .PD
20517 Specify that intrinsic library functions are being compiled, passing all
20518 values in registers, no matter the size.
20519 .IP "\fB\-mepsilon\fR" 4
20520 .IX Item "-mepsilon"
20521 .PD 0
20522 .IP "\fB\-mno\-epsilon\fR" 4
20523 .IX Item "-mno-epsilon"
20524 .PD
20525 Generate floating-point comparison instructions that compare with respect
20526 to the \f(CW\*(C`rE\*(C'\fR epsilon register.
20527 .IP "\fB\-mabi=mmixware\fR" 4
20528 .IX Item "-mabi=mmixware"
20529 .PD 0
20530 .IP "\fB\-mabi=gnu\fR" 4
20531 .IX Item "-mabi=gnu"
20532 .PD
20533 Generate code that passes function parameters and return values that (in
20534 the called function) are seen as registers \f(CW$0\fR and up, as opposed to
20535 the \s-1GNU ABI\s0 which uses global registers \f(CW$231\fR and up.
20536 .IP "\fB\-mzero\-extend\fR" 4
20537 .IX Item "-mzero-extend"
20538 .PD 0
20539 .IP "\fB\-mno\-zero\-extend\fR" 4
20540 .IX Item "-mno-zero-extend"
20541 .PD
20542 When reading data from memory in sizes shorter than 64 bits, use (do not
20543 use) zero-extending load instructions by default, rather than
20544 sign-extending ones.
20545 .IP "\fB\-mknuthdiv\fR" 4
20546 .IX Item "-mknuthdiv"
20547 .PD 0
20548 .IP "\fB\-mno\-knuthdiv\fR" 4
20549 .IX Item "-mno-knuthdiv"
20550 .PD
20551 Make the result of a division yielding a remainder have the same sign as
20552 the divisor.  With the default, \fB\-mno\-knuthdiv\fR, the sign of the
20553 remainder follows the sign of the dividend.  Both methods are
20554 arithmetically valid, the latter being almost exclusively used.
20555 .IP "\fB\-mtoplevel\-symbols\fR" 4
20556 .IX Item "-mtoplevel-symbols"
20557 .PD 0
20558 .IP "\fB\-mno\-toplevel\-symbols\fR" 4
20559 .IX Item "-mno-toplevel-symbols"
20560 .PD
20561 Prepend (do not prepend) a \fB:\fR to all global symbols, so the assembly
20562 code can be used with the \f(CW\*(C`PREFIX\*(C'\fR assembly directive.
20563 .IP "\fB\-melf\fR" 4
20564 .IX Item "-melf"
20565 Generate an executable in the \s-1ELF\s0 format, rather than the default
20566 \&\fBmmo\fR format used by the \fBmmix\fR simulator.
20567 .IP "\fB\-mbranch\-predict\fR" 4
20568 .IX Item "-mbranch-predict"
20569 .PD 0
20570 .IP "\fB\-mno\-branch\-predict\fR" 4
20571 .IX Item "-mno-branch-predict"
20572 .PD
20573 Use (do not use) the probable-branch instructions, when static branch
20574 prediction indicates a probable branch.
20575 .IP "\fB\-mbase\-addresses\fR" 4
20576 .IX Item "-mbase-addresses"
20577 .PD 0
20578 .IP "\fB\-mno\-base\-addresses\fR" 4
20579 .IX Item "-mno-base-addresses"
20580 .PD
20581 Generate (do not generate) code that uses \fIbase addresses\fR.  Using a
20582 base address automatically generates a request (handled by the assembler
20583 and the linker) for a constant to be set up in a global register.  The
20584 register is used for one or more base address requests within the range 0
20585 to 255 from the value held in the register.  The generally leads to short
20586 and fast code, but the number of different data items that can be
20587 addressed is limited.  This means that a program that uses lots of static
20588 data may require \fB\-mno\-base\-addresses\fR.
20589 .IP "\fB\-msingle\-exit\fR" 4
20590 .IX Item "-msingle-exit"
20591 .PD 0
20592 .IP "\fB\-mno\-single\-exit\fR" 4
20593 .IX Item "-mno-single-exit"
20594 .PD
20595 Force (do not force) generated code to have a single exit point in each
20596 function.
20597 .PP
20598 \fI\s-1MN10300\s0 Options\fR
20599 .IX Subsection "MN10300 Options"
20600 .PP
20601 These \fB\-m\fR options are defined for Matsushita \s-1MN10300\s0 architectures:
20602 .IP "\fB\-mmult\-bug\fR" 4
20603 .IX Item "-mmult-bug"
20604 Generate code to avoid bugs in the multiply instructions for the \s-1MN10300\s0
20605 processors.  This is the default.
20606 .IP "\fB\-mno\-mult\-bug\fR" 4
20607 .IX Item "-mno-mult-bug"
20608 Do not generate code to avoid bugs in the multiply instructions for the
20609 \&\s-1MN10300\s0 processors.
20610 .IP "\fB\-mam33\fR" 4
20611 .IX Item "-mam33"
20612 Generate code using features specific to the \s-1AM33\s0 processor.
20613 .IP "\fB\-mno\-am33\fR" 4
20614 .IX Item "-mno-am33"
20615 Do not generate code using features specific to the \s-1AM33\s0 processor.  This
20616 is the default.
20617 .IP "\fB\-mam33\-2\fR" 4
20618 .IX Item "-mam33-2"
20619 Generate code using features specific to the \s-1AM33/2.0\s0 processor.
20620 .IP "\fB\-mam34\fR" 4
20621 .IX Item "-mam34"
20622 Generate code using features specific to the \s-1AM34\s0 processor.
20623 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
20624 .IX Item "-mtune=cpu-type"
20625 Use the timing characteristics of the indicated \s-1CPU\s0 type when
20626 scheduling instructions.  This does not change the targeted processor
20627 type.  The \s-1CPU\s0 type must be one of \fBmn10300\fR, \fBam33\fR,
20628 \&\fBam33\-2\fR or \fBam34\fR.
20629 .IP "\fB\-mreturn\-pointer\-on\-d0\fR" 4
20630 .IX Item "-mreturn-pointer-on-d0"
20631 When generating a function that returns a pointer, return the pointer
20632 in both \f(CW\*(C`a0\*(C'\fR and \f(CW\*(C`d0\*(C'\fR.  Otherwise, the pointer is returned
20633 only in \f(CW\*(C`a0\*(C'\fR, and attempts to call such functions without a prototype
20634 result in errors.  Note that this option is on by default; use
20635 \&\fB\-mno\-return\-pointer\-on\-d0\fR to disable it.
20636 .IP "\fB\-mno\-crt0\fR" 4
20637 .IX Item "-mno-crt0"
20638 Do not link in the C run-time initialization object file.
20639 .IP "\fB\-mrelax\fR" 4
20640 .IX Item "-mrelax"
20641 Indicate to the linker that it should perform a relaxation optimization pass
20642 to shorten branches, calls and absolute memory addresses.  This option only
20643 has an effect when used on the command line for the final link step.
20644 .Sp
20645 This option makes symbolic debugging impossible.
20646 .IP "\fB\-mliw\fR" 4
20647 .IX Item "-mliw"
20648 Allow the compiler to generate \fILong Instruction Word\fR
20649 instructions if the target is the \fB\s-1AM33\s0\fR or later.  This is the
20650 default.  This option defines the preprocessor macro \f(CW\*(C`_\|_LIW_\|_\*(C'\fR.
20651 .IP "\fB\-mnoliw\fR" 4
20652 .IX Item "-mnoliw"
20653 Do not allow the compiler to generate \fILong Instruction Word\fR
20654 instructions.  This option defines the preprocessor macro
20655 \&\f(CW\*(C`_\|_NO_LIW_\|_\*(C'\fR.
20656 .IP "\fB\-msetlb\fR" 4
20657 .IX Item "-msetlb"
20658 Allow the compiler to generate the \fI\s-1SETLB\s0\fR and \fILcc\fR
20659 instructions if the target is the \fB\s-1AM33\s0\fR or later.  This is the
20660 default.  This option defines the preprocessor macro \f(CW\*(C`_\|_SETLB_\|_\*(C'\fR.
20661 .IP "\fB\-mnosetlb\fR" 4
20662 .IX Item "-mnosetlb"
20663 Do not allow the compiler to generate \fI\s-1SETLB\s0\fR or \fILcc\fR
20664 instructions.  This option defines the preprocessor macro
20665 \&\f(CW\*(C`_\|_NO_SETLB_\|_\*(C'\fR.
20666 .PP
20667 \fIMoxie Options\fR
20668 .IX Subsection "Moxie Options"
20669 .IP "\fB\-meb\fR" 4
20670 .IX Item "-meb"
20671 Generate big-endian code.  This is the default for \fBmoxie\-*\-*\fR
20672 configurations.
20673 .IP "\fB\-mel\fR" 4
20674 .IX Item "-mel"
20675 Generate little-endian code.
20676 .IP "\fB\-mmul.x\fR" 4
20677 .IX Item "-mmul.x"
20678 Generate mul.x and umul.x instructions.  This is the default for
20679 \&\fBmoxiebox\-*\-*\fR configurations.
20680 .IP "\fB\-mno\-crt0\fR" 4
20681 .IX Item "-mno-crt0"
20682 Do not link in the C run-time initialization object file.
20683 .PP
20684 \fI\s-1MSP430\s0 Options\fR
20685 .IX Subsection "MSP430 Options"
20686 .PP
20687 These options are defined for the \s-1MSP430:\s0
20688 .IP "\fB\-masm\-hex\fR" 4
20689 .IX Item "-masm-hex"
20690 Force assembly output to always use hex constants.  Normally such
20691 constants are signed decimals, but this option is available for
20692 testsuite and/or aesthetic purposes.
20693 .IP "\fB\-mmcu=\fR" 4
20694 .IX Item "-mmcu="
20695 Select the \s-1MCU\s0 to target.  This is used to create a C preprocessor
20696 symbol based upon the \s-1MCU\s0 name, converted to upper case and pre\- and
20697 post-fixed with \fB_\|_\fR.  This in turn is used by the
20698 \&\fImsp430.h\fR header file to select an MCU-specific supplementary
20699 header file.
20700 .Sp
20701 The option also sets the \s-1ISA\s0 to use.  If the \s-1MCU\s0 name is one that is
20702 known to only support the 430 \s-1ISA\s0 then that is selected, otherwise the
20703 430X \s-1ISA\s0 is selected.  A generic \s-1MCU\s0 name of \fBmsp430\fR can also be
20704 used to select the 430 \s-1ISA.\s0  Similarly the generic \fBmsp430x\fR \s-1MCU\s0
20705 name selects the 430X \s-1ISA.\s0
20706 .Sp
20707 In addition an MCU-specific linker script is added to the linker
20708 command line.  The script's name is the name of the \s-1MCU\s0 with
20709 \&\fI.ld\fR appended.  Thus specifying \fB\-mmcu=xxx\fR on the \fBgcc\fR
20710 command line defines the C preprocessor symbol \f(CW\*(C`_\|_XXX_\|_\*(C'\fR and
20711 cause the linker to search for a script called \fIxxx.ld\fR.
20712 .Sp
20713 This option is also passed on to the assembler.
20714 .IP "\fB\-mwarn\-mcu\fR" 4
20715 .IX Item "-mwarn-mcu"
20716 .PD 0
20717 .IP "\fB\-mno\-warn\-mcu\fR" 4
20718 .IX Item "-mno-warn-mcu"
20719 .PD
20720 This option enables or disables warnings about conflicts between the
20721 \&\s-1MCU\s0 name specified by the \fB\-mmcu\fR option and the \s-1ISA\s0 set by the
20722 \&\fB\-mcpu\fR option and/or the hardware multiply support set by the
20723 \&\fB\-mhwmult\fR option.  It also toggles warnings about unrecognized
20724 \&\s-1MCU\s0 names.  This option is on by default.
20725 .IP "\fB\-mcpu=\fR" 4
20726 .IX Item "-mcpu="
20727 Specifies the \s-1ISA\s0 to use.  Accepted values are \fBmsp430\fR,
20728 \&\fBmsp430x\fR and \fBmsp430xv2\fR.  This option is deprecated.  The
20729 \&\fB\-mmcu=\fR option should be used to select the \s-1ISA.\s0
20730 .IP "\fB\-msim\fR" 4
20731 .IX Item "-msim"
20732 Link to the simulator runtime libraries and linker script.  Overrides
20733 any scripts that would be selected by the \fB\-mmcu=\fR option.
20734 .IP "\fB\-mlarge\fR" 4
20735 .IX Item "-mlarge"
20736 Use large-model addressing (20\-bit pointers, 32\-bit \f(CW\*(C`size_t\*(C'\fR).
20737 .IP "\fB\-msmall\fR" 4
20738 .IX Item "-msmall"
20739 Use small-model addressing (16\-bit pointers, 16\-bit \f(CW\*(C`size_t\*(C'\fR).
20740 .IP "\fB\-mrelax\fR" 4
20741 .IX Item "-mrelax"
20742 This option is passed to the assembler and linker, and allows the
20743 linker to perform certain optimizations that cannot be done until
20744 the final link.
20745 .IP "\fBmhwmult=\fR" 4
20746 .IX Item "mhwmult="
20747 Describes the type of hardware multiply supported by the target.
20748 Accepted values are \fBnone\fR for no hardware multiply, \fB16bit\fR
20749 for the original 16\-bit\-only multiply supported by early MCUs.
20750 \&\fB32bit\fR for the 16/32\-bit multiply supported by later MCUs and
20751 \&\fBf5series\fR for the 16/32\-bit multiply supported by F5\-series MCUs.
20752 A value of \fBauto\fR can also be given.  This tells \s-1GCC\s0 to deduce
20753 the hardware multiply support based upon the \s-1MCU\s0 name provided by the
20754 \&\fB\-mmcu\fR option.  If no \fB\-mmcu\fR option is specified or if
20755 the \s-1MCU\s0 name is not recognized then no hardware multiply support is
20756 assumed.  \f(CW\*(C`auto\*(C'\fR is the default setting.
20757 .Sp
20758 Hardware multiplies are normally performed by calling a library
20759 routine.  This saves space in the generated code.  When compiling at
20760 \&\fB\-O3\fR or higher however the hardware multiplier is invoked
20761 inline.  This makes for bigger, but faster code.
20762 .Sp
20763 The hardware multiply routines disable interrupts whilst running and
20764 restore the previous interrupt state when they finish.  This makes
20765 them safe to use inside interrupt handlers as well as in normal code.
20766 .IP "\fB\-minrt\fR" 4
20767 .IX Item "-minrt"
20768 Enable the use of a minimum runtime environment \- no static
20769 initializers or constructors.  This is intended for memory-constrained
20770 devices.  The compiler includes special symbols in some objects
20771 that tell the linker and runtime which code fragments are required.
20772 .IP "\fB\-mcode\-region=\fR" 4
20773 .IX Item "-mcode-region="
20774 .PD 0
20775 .IP "\fB\-mdata\-region=\fR" 4
20776 .IX Item "-mdata-region="
20777 .PD
20778 These options tell the compiler where to place functions and data that
20779 do not have one of the \f(CW\*(C`lower\*(C'\fR, \f(CW\*(C`upper\*(C'\fR, \f(CW\*(C`either\*(C'\fR or
20780 \&\f(CW\*(C`section\*(C'\fR attributes.  Possible values are \f(CW\*(C`lower\*(C'\fR,
20781 \&\f(CW\*(C`upper\*(C'\fR, \f(CW\*(C`either\*(C'\fR or \f(CW\*(C`any\*(C'\fR.  The first three behave
20782 like the corresponding attribute.  The fourth possible value \-
20783 \&\f(CW\*(C`any\*(C'\fR \- is the default.  It leaves placement entirely up to the
20784 linker script and how it assigns the standard sections
20785 (\f(CW\*(C`.text\*(C'\fR, \f(CW\*(C`.data\*(C'\fR, etc) to the memory regions.
20786 .IP "\fB\-msilicon\-errata=\fR" 4
20787 .IX Item "-msilicon-errata="
20788 This option passes on a request to assembler to enable the fixes for
20789 the named silicon errata.
20790 .IP "\fB\-msilicon\-errata\-warn=\fR" 4
20791 .IX Item "-msilicon-errata-warn="
20792 This option passes on a request to the assembler to enable warning
20793 messages when a silicon errata might need to be applied.
20794 .PP
20795 \fI\s-1NDS32\s0 Options\fR
20796 .IX Subsection "NDS32 Options"
20797 .PP
20798 These options are defined for \s-1NDS32\s0 implementations:
20799 .IP "\fB\-mbig\-endian\fR" 4
20800 .IX Item "-mbig-endian"
20801 Generate code in big-endian mode.
20802 .IP "\fB\-mlittle\-endian\fR" 4
20803 .IX Item "-mlittle-endian"
20804 Generate code in little-endian mode.
20805 .IP "\fB\-mreduced\-regs\fR" 4
20806 .IX Item "-mreduced-regs"
20807 Use reduced-set registers for register allocation.
20808 .IP "\fB\-mfull\-regs\fR" 4
20809 .IX Item "-mfull-regs"
20810 Use full-set registers for register allocation.
20811 .IP "\fB\-mcmov\fR" 4
20812 .IX Item "-mcmov"
20813 Generate conditional move instructions.
20814 .IP "\fB\-mno\-cmov\fR" 4
20815 .IX Item "-mno-cmov"
20816 Do not generate conditional move instructions.
20817 .IP "\fB\-mext\-perf\fR" 4
20818 .IX Item "-mext-perf"
20819 Generate performance extension instructions.
20820 .IP "\fB\-mno\-ext\-perf\fR" 4
20821 .IX Item "-mno-ext-perf"
20822 Do not generate performance extension instructions.
20823 .IP "\fB\-mext\-perf2\fR" 4
20824 .IX Item "-mext-perf2"
20825 Generate performance extension 2 instructions.
20826 .IP "\fB\-mno\-ext\-perf2\fR" 4
20827 .IX Item "-mno-ext-perf2"
20828 Do not generate performance extension 2 instructions.
20829 .IP "\fB\-mext\-string\fR" 4
20830 .IX Item "-mext-string"
20831 Generate string extension instructions.
20832 .IP "\fB\-mno\-ext\-string\fR" 4
20833 .IX Item "-mno-ext-string"
20834 Do not generate string extension instructions.
20835 .IP "\fB\-mv3push\fR" 4
20836 .IX Item "-mv3push"
20837 Generate v3 push25/pop25 instructions.
20838 .IP "\fB\-mno\-v3push\fR" 4
20839 .IX Item "-mno-v3push"
20840 Do not generate v3 push25/pop25 instructions.
20841 .IP "\fB\-m16\-bit\fR" 4
20842 .IX Item "-m16-bit"
20843 Generate 16\-bit instructions.
20844 .IP "\fB\-mno\-16\-bit\fR" 4
20845 .IX Item "-mno-16-bit"
20846 Do not generate 16\-bit instructions.
20847 .IP "\fB\-misr\-vector\-size=\fR\fInum\fR" 4
20848 .IX Item "-misr-vector-size=num"
20849 Specify the size of each interrupt vector, which must be 4 or 16.
20850 .IP "\fB\-mcache\-block\-size=\fR\fInum\fR" 4
20851 .IX Item "-mcache-block-size=num"
20852 Specify the size of each cache block,
20853 which must be a power of 2 between 4 and 512.
20854 .IP "\fB\-march=\fR\fIarch\fR" 4
20855 .IX Item "-march=arch"
20856 Specify the name of the target architecture.
20857 .IP "\fB\-mcmodel=\fR\fIcode-model\fR" 4
20858 .IX Item "-mcmodel=code-model"
20859 Set the code model to one of
20860 .RS 4
20861 .IP "\fBsmall\fR" 4
20862 .IX Item "small"
20863 All the data and read-only data segments must be within 512KB addressing space.
20864 The text segment must be within 16MB addressing space.
20865 .IP "\fBmedium\fR" 4
20866 .IX Item "medium"
20867 The data segment must be within 512KB while the read-only data segment can be
20868 within 4GB addressing space.  The text segment should be still within 16MB
20869 addressing space.
20870 .IP "\fBlarge\fR" 4
20871 .IX Item "large"
20872 All the text and data segments can be within 4GB addressing space.
20873 .RE
20874 .RS 4
20875 .RE
20876 .IP "\fB\-mctor\-dtor\fR" 4
20877 .IX Item "-mctor-dtor"
20878 Enable constructor/destructor feature.
20879 .IP "\fB\-mrelax\fR" 4
20880 .IX Item "-mrelax"
20881 Guide linker to relax instructions.
20882 .PP
20883 \fINios \s-1II\s0 Options\fR
20884 .IX Subsection "Nios II Options"
20885 .PP
20886 These are the options defined for the Altera Nios \s-1II\s0 processor.
20887 .IP "\fB\-G\fR \fInum\fR" 4
20888 .IX Item "-G num"
20889 Put global and static objects less than or equal to \fInum\fR bytes
20890 into the small data or \s-1BSS\s0 sections instead of the normal data or \s-1BSS\s0
20891 sections.  The default value of \fInum\fR is 8.
20892 .IP "\fB\-mgpopt=\fR\fIoption\fR" 4
20893 .IX Item "-mgpopt=option"
20894 .PD 0
20895 .IP "\fB\-mgpopt\fR" 4
20896 .IX Item "-mgpopt"
20897 .IP "\fB\-mno\-gpopt\fR" 4
20898 .IX Item "-mno-gpopt"
20899 .PD
20900 Generate (do not generate) GP-relative accesses.  The following 
20901 \&\fIoption\fR names are recognized:
20902 .RS 4
20903 .IP "\fBnone\fR" 4
20904 .IX Item "none"
20905 Do not generate GP-relative accesses.
20906 .IP "\fBlocal\fR" 4
20907 .IX Item "local"
20908 Generate GP-relative accesses for small data objects that are not 
20909 external, weak, or uninitialized common symbols.  
20910 Also use GP-relative addressing for objects that
20911 have been explicitly placed in a small data section via a \f(CW\*(C`section\*(C'\fR
20912 attribute.
20913 .IP "\fBglobal\fR" 4
20914 .IX Item "global"
20915 As for \fBlocal\fR, but also generate GP-relative accesses for
20916 small data objects that are external, weak, or common.  If you use this option,
20917 you must ensure that all parts of your program (including libraries) are
20918 compiled with the same \fB\-G\fR setting.
20919 .IP "\fBdata\fR" 4
20920 .IX Item "data"
20921 Generate GP-relative accesses for all data objects in the program.  If you
20922 use this option, the entire data and \s-1BSS\s0 segments
20923 of your program must fit in 64K of memory and you must use an appropriate
20924 linker script to allocate them within the addressable range of the
20925 global pointer.
20926 .IP "\fBall\fR" 4
20927 .IX Item "all"
20928 Generate GP-relative addresses for function pointers as well as data
20929 pointers.  If you use this option, the entire text, data, and \s-1BSS\s0 segments
20930 of your program must fit in 64K of memory and you must use an appropriate
20931 linker script to allocate them within the addressable range of the
20932 global pointer.
20933 .RE
20934 .RS 4
20935 .Sp
20936 \&\fB\-mgpopt\fR is equivalent to \fB\-mgpopt=local\fR, and
20937 \&\fB\-mno\-gpopt\fR is equivalent to \fB\-mgpopt=none\fR.
20938 .Sp
20939 The default is \fB\-mgpopt\fR except when \fB\-fpic\fR or
20940 \&\fB\-fPIC\fR is specified to generate position-independent code.
20941 Note that the Nios \s-1II ABI\s0 does not permit GP-relative accesses from
20942 shared libraries.
20943 .Sp
20944 You may need to specify \fB\-mno\-gpopt\fR explicitly when building
20945 programs that include large amounts of small data, including large
20946 \&\s-1GOT\s0 data sections.  In this case, the 16\-bit offset for GP-relative
20947 addressing may not be large enough to allow access to the entire 
20948 small data section.
20949 .RE
20950 .IP "\fB\-mgprel\-sec=\fR\fIregexp\fR" 4
20951 .IX Item "-mgprel-sec=regexp"
20952 This option specifies additional section names that can be accessed via
20953 GP-relative addressing.  It is most useful in conjunction with 
20954 \&\f(CW\*(C`section\*(C'\fR attributes on variable declarations and a custom linker script.  
20955 The \fIregexp\fR is a \s-1POSIX\s0 Extended Regular Expression.
20956 .Sp
20957 This option does not affect the behavior of the \fB\-G\fR option, and 
20958 the specified sections are in addition to the standard \f(CW\*(C`.sdata\*(C'\fR
20959 and \f(CW\*(C`.sbss\*(C'\fR small-data sections that are recognized by \fB\-mgpopt\fR.
20960 .IP "\fB\-mr0rel\-sec=\fR\fIregexp\fR" 4
20961 .IX Item "-mr0rel-sec=regexp"
20962 This option specifies names of sections that can be accessed via a 
20963 16\-bit offset from \f(CW\*(C`r0\*(C'\fR; that is, in the low 32K or high 32K 
20964 of the 32\-bit address space.  It is most useful in conjunction with 
20965 \&\f(CW\*(C`section\*(C'\fR attributes on variable declarations and a custom linker script.  
20966 The \fIregexp\fR is a \s-1POSIX\s0 Extended Regular Expression.
20967 .Sp
20968 In contrast to the use of GP-relative addressing for small data, 
20969 zero-based addressing is never generated by default and there are no 
20970 conventional section names used in standard linker scripts for sections
20971 in the low or high areas of memory.
20972 .IP "\fB\-mel\fR" 4
20973 .IX Item "-mel"
20974 .PD 0
20975 .IP "\fB\-meb\fR" 4
20976 .IX Item "-meb"
20977 .PD
20978 Generate little-endian (default) or big-endian (experimental) code,
20979 respectively.
20980 .IP "\fB\-march=\fR\fIarch\fR" 4
20981 .IX Item "-march=arch"
20982 This specifies the name of the target Nios \s-1II\s0 architecture.  \s-1GCC\s0 uses this
20983 name to determine what kind of instructions it can emit when generating
20984 assembly code.  Permissible names are: \fBr1\fR, \fBr2\fR.
20985 .Sp
20986 The preprocessor macro \f(CW\*(C`_\|_nios2_arch_\|_\*(C'\fR is available to programs,
20987 with value 1 or 2, indicating the targeted \s-1ISA\s0 level.
20988 .IP "\fB\-mbypass\-cache\fR" 4
20989 .IX Item "-mbypass-cache"
20990 .PD 0
20991 .IP "\fB\-mno\-bypass\-cache\fR" 4
20992 .IX Item "-mno-bypass-cache"
20993 .PD
20994 Force all load and store instructions to always bypass cache by 
20995 using I/O variants of the instructions. The default is not to
20996 bypass the cache.
20997 .IP "\fB\-mno\-cache\-volatile\fR" 4
20998 .IX Item "-mno-cache-volatile"
20999 .PD 0
21000 .IP "\fB\-mcache\-volatile\fR" 4
21001 .IX Item "-mcache-volatile"
21002 .PD
21003 Volatile memory access bypass the cache using the I/O variants of 
21004 the load and store instructions. The default is not to bypass the cache.
21005 .IP "\fB\-mno\-fast\-sw\-div\fR" 4
21006 .IX Item "-mno-fast-sw-div"
21007 .PD 0
21008 .IP "\fB\-mfast\-sw\-div\fR" 4
21009 .IX Item "-mfast-sw-div"
21010 .PD
21011 Do not use table-based fast divide for small numbers. The default 
21012 is to use the fast divide at \fB\-O3\fR and above.
21013 .IP "\fB\-mno\-hw\-mul\fR" 4
21014 .IX Item "-mno-hw-mul"
21015 .PD 0
21016 .IP "\fB\-mhw\-mul\fR" 4
21017 .IX Item "-mhw-mul"
21018 .IP "\fB\-mno\-hw\-mulx\fR" 4
21019 .IX Item "-mno-hw-mulx"
21020 .IP "\fB\-mhw\-mulx\fR" 4
21021 .IX Item "-mhw-mulx"
21022 .IP "\fB\-mno\-hw\-div\fR" 4
21023 .IX Item "-mno-hw-div"
21024 .IP "\fB\-mhw\-div\fR" 4
21025 .IX Item "-mhw-div"
21026 .PD
21027 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 
21028 instructions by the compiler. The default is to emit \f(CW\*(C`mul\*(C'\fR
21029 and not emit \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`mulx\*(C'\fR.
21030 .IP "\fB\-mbmx\fR" 4
21031 .IX Item "-mbmx"
21032 .PD 0
21033 .IP "\fB\-mno\-bmx\fR" 4
21034 .IX Item "-mno-bmx"
21035 .IP "\fB\-mcdx\fR" 4
21036 .IX Item "-mcdx"
21037 .IP "\fB\-mno\-cdx\fR" 4
21038 .IX Item "-mno-cdx"
21039 .PD
21040 Enable or disable generation of Nios \s-1II R2 BMX\s0 (bit manipulation) and
21041 \&\s-1CDX\s0 (code density) instructions.  Enabling these instructions also
21042 requires \fB\-march=r2\fR.  Since these instructions are optional
21043 extensions to the R2 architecture, the default is not to emit them.
21044 .IP "\fB\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR" 4
21045 .IX Item "-mcustom-insn=N"
21046 .PD 0
21047 .IP "\fB\-mno\-custom\-\fR\fIinsn\fR" 4
21048 .IX Item "-mno-custom-insn"
21049 .PD
21050 Each \fB\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR option enables use of a
21051 custom instruction with encoding \fIN\fR when generating code that uses 
21052 \&\fIinsn\fR.  For example, \fB\-mcustom\-fadds=253\fR generates custom
21053 instruction 253 for single-precision floating-point add operations instead
21054 of the default behavior of using a library call.
21055 .Sp
21056 The following values of \fIinsn\fR are supported.  Except as otherwise
21057 noted, floating-point operations are expected to be implemented with
21058 normal \s-1IEEE 754\s0 semantics and correspond directly to the C operators or the
21059 equivalent \s-1GCC\s0 built-in functions.
21060 .Sp
21061 Single-precision floating point:
21062 .RS 4
21063 .IP "\fBfadds\fR, \fBfsubs\fR, \fBfdivs\fR, \fBfmuls\fR" 4
21064 .IX Item "fadds, fsubs, fdivs, fmuls"
21065 Binary arithmetic operations.
21066 .IP "\fBfnegs\fR" 4
21067 .IX Item "fnegs"
21068 Unary negation.
21069 .IP "\fBfabss\fR" 4
21070 .IX Item "fabss"
21071 Unary absolute value.
21072 .IP "\fBfcmpeqs\fR, \fBfcmpges\fR, \fBfcmpgts\fR, \fBfcmples\fR, \fBfcmplts\fR, \fBfcmpnes\fR" 4
21073 .IX Item "fcmpeqs, fcmpges, fcmpgts, fcmples, fcmplts, fcmpnes"
21074 Comparison operations.
21075 .IP "\fBfmins\fR, \fBfmaxs\fR" 4
21076 .IX Item "fmins, fmaxs"
21077 Floating-point minimum and maximum.  These instructions are only
21078 generated if \fB\-ffinite\-math\-only\fR is specified.
21079 .IP "\fBfsqrts\fR" 4
21080 .IX Item "fsqrts"
21081 Unary square root operation.
21082 .IP "\fBfcoss\fR, \fBfsins\fR, \fBftans\fR, \fBfatans\fR, \fBfexps\fR, \fBflogs\fR" 4
21083 .IX Item "fcoss, fsins, ftans, fatans, fexps, flogs"
21084 Floating-point trigonometric and exponential functions.  These instructions
21085 are only generated if \fB\-funsafe\-math\-optimizations\fR is also specified.
21086 .RE
21087 .RS 4
21088 .Sp
21089 Double-precision floating point:
21090 .IP "\fBfaddd\fR, \fBfsubd\fR, \fBfdivd\fR, \fBfmuld\fR" 4
21091 .IX Item "faddd, fsubd, fdivd, fmuld"
21092 Binary arithmetic operations.
21093 .IP "\fBfnegd\fR" 4
21094 .IX Item "fnegd"
21095 Unary negation.
21096 .IP "\fBfabsd\fR" 4
21097 .IX Item "fabsd"
21098 Unary absolute value.
21099 .IP "\fBfcmpeqd\fR, \fBfcmpged\fR, \fBfcmpgtd\fR, \fBfcmpled\fR, \fBfcmpltd\fR, \fBfcmpned\fR" 4
21100 .IX Item "fcmpeqd, fcmpged, fcmpgtd, fcmpled, fcmpltd, fcmpned"
21101 Comparison operations.
21102 .IP "\fBfmind\fR, \fBfmaxd\fR" 4
21103 .IX Item "fmind, fmaxd"
21104 Double-precision minimum and maximum.  These instructions are only
21105 generated if \fB\-ffinite\-math\-only\fR is specified.
21106 .IP "\fBfsqrtd\fR" 4
21107 .IX Item "fsqrtd"
21108 Unary square root operation.
21109 .IP "\fBfcosd\fR, \fBfsind\fR, \fBftand\fR, \fBfatand\fR, \fBfexpd\fR, \fBflogd\fR" 4
21110 .IX Item "fcosd, fsind, ftand, fatand, fexpd, flogd"
21111 Double-precision trigonometric and exponential functions.  These instructions
21112 are only generated if \fB\-funsafe\-math\-optimizations\fR is also specified.
21113 .RE
21114 .RS 4
21115 .Sp
21116 Conversions:
21117 .IP "\fBfextsd\fR" 4
21118 .IX Item "fextsd"
21119 Conversion from single precision to double precision.
21120 .IP "\fBftruncds\fR" 4
21121 .IX Item "ftruncds"
21122 Conversion from double precision to single precision.
21123 .IP "\fBfixsi\fR, \fBfixsu\fR, \fBfixdi\fR, \fBfixdu\fR" 4
21124 .IX Item "fixsi, fixsu, fixdi, fixdu"
21125 Conversion from floating point to signed or unsigned integer types, with
21126 truncation towards zero.
21127 .IP "\fBround\fR" 4
21128 .IX Item "round"
21129 Conversion from single-precision floating point to signed integer,
21130 rounding to the nearest integer and ties away from zero.
21131 This corresponds to the \f(CW\*(C`_\|_builtin_lroundf\*(C'\fR function when
21132 \&\fB\-fno\-math\-errno\fR is used.
21133 .IP "\fBfloatis\fR, \fBfloatus\fR, \fBfloatid\fR, \fBfloatud\fR" 4
21134 .IX Item "floatis, floatus, floatid, floatud"
21135 Conversion from signed or unsigned integer types to floating-point types.
21136 .RE
21137 .RS 4
21138 .Sp
21139 In addition, all of the following transfer instructions for internal
21140 registers X and Y must be provided to use any of the double-precision
21141 floating-point instructions.  Custom instructions taking two
21142 double-precision source operands expect the first operand in the
21143 64\-bit register X.  The other operand (or only operand of a unary
21144 operation) is given to the custom arithmetic instruction with the
21145 least significant half in source register \fIsrc1\fR and the most
21146 significant half in \fIsrc2\fR.  A custom instruction that returns a
21147 double-precision result returns the most significant 32 bits in the
21148 destination register and the other half in 32\-bit register Y.  
21149 \&\s-1GCC\s0 automatically generates the necessary code sequences to write
21150 register X and/or read register Y when double-precision floating-point
21151 instructions are used.
21152 .IP "\fBfwrx\fR" 4
21153 .IX Item "fwrx"
21154 Write \fIsrc1\fR into the least significant half of X and \fIsrc2\fR into
21155 the most significant half of X.
21156 .IP "\fBfwry\fR" 4
21157 .IX Item "fwry"
21158 Write \fIsrc1\fR into Y.
21159 .IP "\fBfrdxhi\fR, \fBfrdxlo\fR" 4
21160 .IX Item "frdxhi, frdxlo"
21161 Read the most or least (respectively) significant half of X and store it in
21162 \&\fIdest\fR.
21163 .IP "\fBfrdy\fR" 4
21164 .IX Item "frdy"
21165 Read the value of Y and store it into \fIdest\fR.
21166 .RE
21167 .RS 4
21168 .Sp
21169 Note that you can gain more local control over generation of Nios \s-1II\s0 custom
21170 instructions by using the \f(CW\*(C`target("custom\-\f(CIinsn\f(CW=\f(CIN\f(CW")\*(C'\fR
21171 and \f(CW\*(C`target("no\-custom\-\f(CIinsn\f(CW")\*(C'\fR function attributes
21172 or pragmas.
21173 .RE
21174 .IP "\fB\-mcustom\-fpu\-cfg=\fR\fIname\fR" 4
21175 .IX Item "-mcustom-fpu-cfg=name"
21176 This option enables a predefined, named set of custom instruction encodings
21177 (see \fB\-mcustom\-\fR\fIinsn\fR above).  
21178 Currently, the following sets are defined:
21179 .Sp
21180 \&\fB\-mcustom\-fpu\-cfg=60\-1\fR is equivalent to:
21181 \&\fB\-mcustom\-fmuls=252 
21182 \&\-mcustom\-fadds=253 
21183 \&\-mcustom\-fsubs=254 
21184 \&\-fsingle\-precision\-constant\fR
21185 .Sp
21186 \&\fB\-mcustom\-fpu\-cfg=60\-2\fR is equivalent to:
21187 \&\fB\-mcustom\-fmuls=252 
21188 \&\-mcustom\-fadds=253 
21189 \&\-mcustom\-fsubs=254 
21190 \&\-mcustom\-fdivs=255 
21191 \&\-fsingle\-precision\-constant\fR
21192 .Sp
21193 \&\fB\-mcustom\-fpu\-cfg=72\-3\fR is equivalent to:
21194 \&\fB\-mcustom\-floatus=243 
21195 \&\-mcustom\-fixsi=244 
21196 \&\-mcustom\-floatis=245 
21197 \&\-mcustom\-fcmpgts=246 
21198 \&\-mcustom\-fcmples=249 
21199 \&\-mcustom\-fcmpeqs=250 
21200 \&\-mcustom\-fcmpnes=251 
21201 \&\-mcustom\-fmuls=252 
21202 \&\-mcustom\-fadds=253 
21203 \&\-mcustom\-fsubs=254 
21204 \&\-mcustom\-fdivs=255 
21205 \&\-fsingle\-precision\-constant\fR
21206 .Sp
21207 Custom instruction assignments given by individual
21208 \&\fB\-mcustom\-\fR\fIinsn\fR\fB=\fR options override those given by
21209 \&\fB\-mcustom\-fpu\-cfg=\fR, regardless of the
21210 order of the options on the command line.
21211 .Sp
21212 Note that you can gain more local control over selection of a \s-1FPU\s0
21213 configuration by using the \f(CW\*(C`target("custom\-fpu\-cfg=\f(CIname\f(CW")\*(C'\fR
21214 function attribute
21215 or pragma.
21216 .PP
21217 These additional \fB\-m\fR options are available for the Altera Nios \s-1II
21218 ELF\s0 (bare-metal) target:
21219 .IP "\fB\-mhal\fR" 4
21220 .IX Item "-mhal"
21221 Link with \s-1HAL BSP.\s0  This suppresses linking with the GCC-provided C runtime
21222 startup and termination code, and is typically used in conjunction with
21223 \&\fB\-msys\-crt0=\fR to specify the location of the alternate startup code
21224 provided by the \s-1HAL BSP.\s0
21225 .IP "\fB\-msmallc\fR" 4
21226 .IX Item "-msmallc"
21227 Link with a limited version of the C library, \fB\-lsmallc\fR, rather than
21228 Newlib.
21229 .IP "\fB\-msys\-crt0=\fR\fIstartfile\fR" 4
21230 .IX Item "-msys-crt0=startfile"
21231 \&\fIstartfile\fR is the file name of the startfile (crt0) to use 
21232 when linking.  This option is only useful in conjunction with \fB\-mhal\fR.
21233 .IP "\fB\-msys\-lib=\fR\fIsystemlib\fR" 4
21234 .IX Item "-msys-lib=systemlib"
21235 \&\fIsystemlib\fR is the library name of the library that provides
21236 low-level system calls required by the C library,
21237 e.g. \f(CW\*(C`read\*(C'\fR and \f(CW\*(C`write\*(C'\fR.
21238 This option is typically used to link with a library provided by a \s-1HAL BSP.\s0
21239 .PP
21240 \fINvidia \s-1PTX\s0 Options\fR
21241 .IX Subsection "Nvidia PTX Options"
21242 .PP
21243 These options are defined for Nvidia \s-1PTX:\s0
21244 .IP "\fB\-m32\fR" 4
21245 .IX Item "-m32"
21246 .PD 0
21247 .IP "\fB\-m64\fR" 4
21248 .IX Item "-m64"
21249 .PD
21250 Generate code for 32\-bit or 64\-bit \s-1ABI.\s0
21251 .IP "\fB\-mmainkernel\fR" 4
21252 .IX Item "-mmainkernel"
21253 Link in code for a _\|_main kernel.  This is for stand-alone instead of
21254 offloading execution.
21255 .IP "\fB\-moptimize\fR" 4
21256 .IX Item "-moptimize"
21257 Apply partitioned execution optimizations.  This is the default when any
21258 level of optimization is selected.
21259 .IP "\fB\-msoft\-stack\fR" 4
21260 .IX Item "-msoft-stack"
21261 Generate code that does not use \f(CW\*(C`.local\*(C'\fR memory
21262 directly for stack storage. Instead, a per-warp stack pointer is
21263 maintained explicitly. This enables variable-length stack allocation (with
21264 variable-length arrays or \f(CW\*(C`alloca\*(C'\fR), and when global memory is used for
21265 underlying storage, makes it possible to access automatic variables from other
21266 threads, or with atomic instructions. This code generation variant is used
21267 for OpenMP offloading, but the option is exposed on its own for the purpose
21268 of testing the compiler; to generate code suitable for linking into programs
21269 using OpenMP offloading, use option \fB\-mgomp\fR.
21270 .IP "\fB\-muniform\-simt\fR" 4
21271 .IX Item "-muniform-simt"
21272 Switch to code generation variant that allows to execute all threads in each
21273 warp, while maintaining memory state and side effects as if only one thread
21274 in each warp was active outside of OpenMP \s-1SIMD\s0 regions.  All atomic operations
21275 and calls to runtime (malloc, free, vprintf) are conditionally executed (iff
21276 current lane index equals the master lane index), and the register being
21277 assigned is copied via a shuffle instruction from the master lane.  Outside of
21278 \&\s-1SIMD\s0 regions lane 0 is the master; inside, each thread sees itself as the
21279 master.  Shared memory array \f(CW\*(C`int _\|_nvptx_uni[]\*(C'\fR stores all-zeros or
21280 all-ones bitmasks for each warp, indicating current mode (0 outside of \s-1SIMD\s0
21281 regions).  Each thread can bitwise-and the bitmask at position \f(CW\*(C`tid.y\*(C'\fR
21282 with current lane index to compute the master lane index.
21283 .IP "\fB\-mgomp\fR" 4
21284 .IX Item "-mgomp"
21285 Generate code for use in OpenMP offloading: enables \fB\-msoft\-stack\fR and
21286 \&\fB\-muniform\-simt\fR options, and selects corresponding multilib variant.
21287 .PP
21288 \fI\s-1PDP\-11\s0 Options\fR
21289 .IX Subsection "PDP-11 Options"
21290 .PP
21291 These options are defined for the \s-1PDP\-11:\s0
21292 .IP "\fB\-mfpu\fR" 4
21293 .IX Item "-mfpu"
21294 Use hardware \s-1FPP\s0 floating point.  This is the default.  (\s-1FIS\s0 floating
21295 point on the \s-1PDP\-11/40\s0 is not supported.)
21296 .IP "\fB\-msoft\-float\fR" 4
21297 .IX Item "-msoft-float"
21298 Do not use hardware floating point.
21299 .IP "\fB\-mac0\fR" 4
21300 .IX Item "-mac0"
21301 Return floating-point results in ac0 (fr0 in Unix assembler syntax).
21302 .IP "\fB\-mno\-ac0\fR" 4
21303 .IX Item "-mno-ac0"
21304 Return floating-point results in memory.  This is the default.
21305 .IP "\fB\-m40\fR" 4
21306 .IX Item "-m40"
21307 Generate code for a \s-1PDP\-11/40.\s0
21308 .IP "\fB\-m45\fR" 4
21309 .IX Item "-m45"
21310 Generate code for a \s-1PDP\-11/45.\s0  This is the default.
21311 .IP "\fB\-m10\fR" 4
21312 .IX Item "-m10"
21313 Generate code for a \s-1PDP\-11/10.\s0
21314 .IP "\fB\-mbcopy\-builtin\fR" 4
21315 .IX Item "-mbcopy-builtin"
21316 Use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.  This is the
21317 default.
21318 .IP "\fB\-mbcopy\fR" 4
21319 .IX Item "-mbcopy"
21320 Do not use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.
21321 .IP "\fB\-mint16\fR" 4
21322 .IX Item "-mint16"
21323 .PD 0
21324 .IP "\fB\-mno\-int32\fR" 4
21325 .IX Item "-mno-int32"
21326 .PD
21327 Use 16\-bit \f(CW\*(C`int\*(C'\fR.  This is the default.
21328 .IP "\fB\-mint32\fR" 4
21329 .IX Item "-mint32"
21330 .PD 0
21331 .IP "\fB\-mno\-int16\fR" 4
21332 .IX Item "-mno-int16"
21333 .PD
21334 Use 32\-bit \f(CW\*(C`int\*(C'\fR.
21335 .IP "\fB\-mfloat64\fR" 4
21336 .IX Item "-mfloat64"
21337 .PD 0
21338 .IP "\fB\-mno\-float32\fR" 4
21339 .IX Item "-mno-float32"
21340 .PD
21341 Use 64\-bit \f(CW\*(C`float\*(C'\fR.  This is the default.
21342 .IP "\fB\-mfloat32\fR" 4
21343 .IX Item "-mfloat32"
21344 .PD 0
21345 .IP "\fB\-mno\-float64\fR" 4
21346 .IX Item "-mno-float64"
21347 .PD
21348 Use 32\-bit \f(CW\*(C`float\*(C'\fR.
21349 .IP "\fB\-mabshi\fR" 4
21350 .IX Item "-mabshi"
21351 Use \f(CW\*(C`abshi2\*(C'\fR pattern.  This is the default.
21352 .IP "\fB\-mno\-abshi\fR" 4
21353 .IX Item "-mno-abshi"
21354 Do not use \f(CW\*(C`abshi2\*(C'\fR pattern.
21355 .IP "\fB\-mbranch\-expensive\fR" 4
21356 .IX Item "-mbranch-expensive"
21357 Pretend that branches are expensive.  This is for experimenting with
21358 code generation only.
21359 .IP "\fB\-mbranch\-cheap\fR" 4
21360 .IX Item "-mbranch-cheap"
21361 Do not pretend that branches are expensive.  This is the default.
21362 .IP "\fB\-munix\-asm\fR" 4
21363 .IX Item "-munix-asm"
21364 Use Unix assembler syntax.  This is the default when configured for
21365 \&\fBpdp11\-*\-bsd\fR.
21366 .IP "\fB\-mdec\-asm\fR" 4
21367 .IX Item "-mdec-asm"
21368 Use \s-1DEC\s0 assembler syntax.  This is the default when configured for any
21369 \&\s-1PDP\-11\s0 target other than \fBpdp11\-*\-bsd\fR.
21370 .PP
21371 \fIpicoChip Options\fR
21372 .IX Subsection "picoChip Options"
21373 .PP
21374 These \fB\-m\fR options are defined for picoChip implementations:
21375 .IP "\fB\-mae=\fR\fIae_type\fR" 4
21376 .IX Item "-mae=ae_type"
21377 Set the instruction set, register set, and instruction scheduling
21378 parameters for array element type \fIae_type\fR.  Supported values
21379 for \fIae_type\fR are \fB\s-1ANY\s0\fR, \fB\s-1MUL\s0\fR, and \fB\s-1MAC\s0\fR.
21380 .Sp
21381 \&\fB\-mae=ANY\fR selects a completely generic \s-1AE\s0 type.  Code
21382 generated with this option runs on any of the other \s-1AE\s0 types.  The
21383 code is not as efficient as it would be if compiled for a specific
21384 \&\s-1AE\s0 type, and some types of operation (e.g., multiplication) do not
21385 work properly on all types of \s-1AE.\s0
21386 .Sp
21387 \&\fB\-mae=MUL\fR selects a \s-1MUL AE\s0 type.  This is the most useful \s-1AE\s0 type
21388 for compiled code, and is the default.
21389 .Sp
21390 \&\fB\-mae=MAC\fR selects a DSP-style \s-1MAC AE.\s0  Code compiled with this
21391 option may suffer from poor performance of byte (char) manipulation,
21392 since the \s-1DSP AE\s0 does not provide hardware support for byte load/stores.
21393 .IP "\fB\-msymbol\-as\-address\fR" 4
21394 .IX Item "-msymbol-as-address"
21395 Enable the compiler to directly use a symbol name as an address in a
21396 load/store instruction, without first loading it into a
21397 register.  Typically, the use of this option generates larger
21398 programs, which run faster than when the option isn't used.  However, the
21399 results vary from program to program, so it is left as a user option,
21400 rather than being permanently enabled.
21401 .IP "\fB\-mno\-inefficient\-warnings\fR" 4
21402 .IX Item "-mno-inefficient-warnings"
21403 Disables warnings about the generation of inefficient code.  These
21404 warnings can be generated, for example, when compiling code that
21405 performs byte-level memory operations on the \s-1MAC AE\s0 type.  The \s-1MAC AE\s0 has
21406 no hardware support for byte-level memory operations, so all byte
21407 load/stores must be synthesized from word load/store operations.  This is
21408 inefficient and a warning is generated to indicate
21409 that you should rewrite the code to avoid byte operations, or to target
21410 an \s-1AE\s0 type that has the necessary hardware support.  This option disables
21411 these warnings.
21412 .PP
21413 \fIPowerPC Options\fR
21414 .IX Subsection "PowerPC Options"
21415 .PP
21416 These are listed under
21417 .PP
21418 \fIPowerPC \s-1SPE\s0 Options\fR
21419 .IX Subsection "PowerPC SPE Options"
21420 .PP
21421 These \fB\-m\fR options are defined for PowerPC \s-1SPE:\s0
21422 .IP "\fB\-mmfcrf\fR" 4
21423 .IX Item "-mmfcrf"
21424 .PD 0
21425 .IP "\fB\-mno\-mfcrf\fR" 4
21426 .IX Item "-mno-mfcrf"
21427 .IP "\fB\-mpopcntb\fR" 4
21428 .IX Item "-mpopcntb"
21429 .IP "\fB\-mno\-popcntb\fR" 4
21430 .IX Item "-mno-popcntb"
21431 .PD
21432 You use these options to specify which instructions are available on the
21433 processor you are using.  The default value of these options is
21434 determined when configuring \s-1GCC.\s0  Specifying the
21435 \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
21436 options.  We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
21437 rather than the options listed above.
21438 .Sp
21439 The \fB\-mmfcrf\fR option allows \s-1GCC\s0 to generate the move from
21440 condition register field instruction implemented on the \s-1POWER4\s0
21441 processor and other processors that support the PowerPC V2.01
21442 architecture.
21443 The \fB\-mpopcntb\fR option allows \s-1GCC\s0 to generate the popcount and
21444 double-precision \s-1FP\s0 reciprocal estimate instruction implemented on the
21445 \&\s-1POWER5\s0 processor and other processors that support the PowerPC V2.02
21446 architecture.
21447 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
21448 .IX Item "-mcpu=cpu_type"
21449 Set architecture type, register usage, and
21450 instruction scheduling parameters for machine type \fIcpu_type\fR.
21451 Supported values for \fIcpu_type\fR are \fB8540\fR, \fB8548\fR,
21452 and \fBnative\fR.
21453 .Sp
21454 \&\fB\-mcpu=powerpc\fR specifies pure 32\-bit PowerPC (either
21455 endian), with an appropriate, generic processor model assumed for
21456 scheduling purposes.
21457 .Sp
21458 Specifying \fBnative\fR as cpu type detects and selects the
21459 architecture option that corresponds to the host processor of the
21460 system performing the compilation.
21461 \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize the
21462 processor.
21463 .Sp
21464 The other options specify a specific processor.  Code generated under
21465 those options runs best on that processor, and may not run at all on
21466 others.
21467 .Sp
21468 The \fB\-mcpu\fR options automatically enable or disable the
21469 following options:
21470 .Sp
21471 \&\fB\-mhard\-float  \-mmfcrf  \-mmultiple 
21472 \&\-mpopcntb \-mpopcntd 
21473 \&\-msingle\-float \-mdouble\-float 
21474 \&\-mfloat128\fR
21475 .Sp
21476 The particular options set for any particular \s-1CPU\s0 varies between
21477 compiler versions, depending on what setting seems to produce optimal
21478 code for that \s-1CPU\s0; it doesn't necessarily reflect the actual hardware's
21479 capabilities.  If you wish to set an individual option to a particular
21480 value, you may specify it after the \fB\-mcpu\fR option, like
21481 \&\fB\-mcpu=8548\fR.
21482 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
21483 .IX Item "-mtune=cpu_type"
21484 Set the instruction scheduling parameters for machine type
21485 \&\fIcpu_type\fR, but do not set the architecture type or register usage,
21486 as \fB\-mcpu=\fR\fIcpu_type\fR does.  The same
21487 values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
21488 \&\fB\-mcpu\fR.  If both are specified, the code generated uses the
21489 architecture and registers set by \fB\-mcpu\fR, but the
21490 scheduling parameters set by \fB\-mtune\fR.
21491 .IP "\fB\-msecure\-plt\fR" 4
21492 .IX Item "-msecure-plt"
21493 Generate code that allows \fBld\fR and \fBld.so\fR
21494 to build executables and shared
21495 libraries with non-executable \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR sections.
21496 This is a PowerPC
21497 32\-bit \s-1SYSV ABI\s0 option.
21498 .IP "\fB\-mbss\-plt\fR" 4
21499 .IX Item "-mbss-plt"
21500 Generate code that uses a \s-1BSS\s0 \f(CW\*(C`.plt\*(C'\fR section that \fBld.so\fR
21501 fills in, and
21502 requires \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR
21503 sections that are both writable and executable.
21504 This is a PowerPC 32\-bit \s-1SYSV ABI\s0 option.
21505 .IP "\fB\-misel\fR" 4
21506 .IX Item "-misel"
21507 .PD 0
21508 .IP "\fB\-mno\-isel\fR" 4
21509 .IX Item "-mno-isel"
21510 .PD
21511 This switch enables or disables the generation of \s-1ISEL\s0 instructions.
21512 .IP "\fB\-misel=\fR\fIyes/no\fR" 4
21513 .IX Item "-misel=yes/no"
21514 This switch has been deprecated.  Use \fB\-misel\fR and
21515 \&\fB\-mno\-isel\fR instead.
21516 .IP "\fB\-mspe\fR" 4
21517 .IX Item "-mspe"
21518 .PD 0
21519 .IP "\fB\-mno\-spe\fR" 4
21520 .IX Item "-mno-spe"
21521 .PD
21522 This switch enables or disables the generation of \s-1SPE\s0 simd
21523 instructions.
21524 .IP "\fB\-mspe=\fR\fIyes/no\fR" 4
21525 .IX Item "-mspe=yes/no"
21526 This option has been deprecated.  Use \fB\-mspe\fR and
21527 \&\fB\-mno\-spe\fR instead.
21528 .IP "\fB\-mfloat128\fR" 4
21529 .IX Item "-mfloat128"
21530 .PD 0
21531 .IP "\fB\-mno\-float128\fR" 4
21532 .IX Item "-mno-float128"
21533 .PD
21534 Enable/disable the \fI_\|_float128\fR keyword for \s-1IEEE\s0 128\-bit floating point
21535 and use either software emulation for \s-1IEEE\s0 128\-bit floating point or
21536 hardware instructions.
21537 .IP "\fB\-mfloat\-gprs=\fR\fIyes/single/double/no\fR" 4
21538 .IX Item "-mfloat-gprs=yes/single/double/no"
21539 .PD 0
21540 .IP "\fB\-mfloat\-gprs\fR" 4
21541 .IX Item "-mfloat-gprs"
21542 .PD
21543 This switch enables or disables the generation of floating-point
21544 operations on the general-purpose registers for architectures that
21545 support it.
21546 .Sp
21547 The argument \fByes\fR or \fBsingle\fR enables the use of
21548 single-precision floating-point operations.
21549 .Sp
21550 The argument \fBdouble\fR enables the use of single and
21551 double-precision floating-point operations.
21552 .Sp
21553 The argument \fBno\fR disables floating-point operations on the
21554 general-purpose registers.
21555 .Sp
21556 This option is currently only available on the MPC854x.
21557 .IP "\fB\-mfull\-toc\fR" 4
21558 .IX Item "-mfull-toc"
21559 .PD 0
21560 .IP "\fB\-mno\-fp\-in\-toc\fR" 4
21561 .IX Item "-mno-fp-in-toc"
21562 .IP "\fB\-mno\-sum\-in\-toc\fR" 4
21563 .IX Item "-mno-sum-in-toc"
21564 .IP "\fB\-mminimal\-toc\fR" 4
21565 .IX Item "-mminimal-toc"
21566 .PD
21567 Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
21568 every executable file.  The \fB\-mfull\-toc\fR option is selected by
21569 default.  In that case, \s-1GCC\s0 allocates at least one \s-1TOC\s0 entry for
21570 each unique non-automatic variable reference in your program.  \s-1GCC\s0
21571 also places floating-point constants in the \s-1TOC.\s0  However, only
21572 16,384 entries are available in the \s-1TOC.\s0
21573 .Sp
21574 If you receive a linker error message that saying you have overflowed
21575 the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
21576 with the \fB\-mno\-fp\-in\-toc\fR and \fB\-mno\-sum\-in\-toc\fR options.
21577 \&\fB\-mno\-fp\-in\-toc\fR prevents \s-1GCC\s0 from putting floating-point
21578 constants in the \s-1TOC\s0 and \fB\-mno\-sum\-in\-toc\fR forces \s-1GCC\s0 to
21579 generate code to calculate the sum of an address and a constant at
21580 run time instead of putting that sum into the \s-1TOC.\s0  You may specify one
21581 or both of these options.  Each causes \s-1GCC\s0 to produce very slightly
21582 slower and larger code at the expense of conserving \s-1TOC\s0 space.
21583 .Sp
21584 If you still run out of space in the \s-1TOC\s0 even when you specify both of
21585 these options, specify \fB\-mminimal\-toc\fR instead.  This option causes
21586 \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file.  When you specify this
21587 option, \s-1GCC\s0 produces code that is slower and larger but which
21588 uses extremely little \s-1TOC\s0 space.  You may wish to use this option
21589 only on files that contain less frequently-executed code.
21590 .IP "\fB\-maix32\fR" 4
21591 .IX Item "-maix32"
21592 Disables the 64\-bit \s-1ABI.\s0  \s-1GCC\s0 defaults to \fB\-maix32\fR.
21593 .IP "\fB\-mxl\-compat\fR" 4
21594 .IX Item "-mxl-compat"
21595 .PD 0
21596 .IP "\fB\-mno\-xl\-compat\fR" 4
21597 .IX Item "-mno-xl-compat"
21598 .PD
21599 Produce code that conforms more closely to \s-1IBM XL\s0 compiler semantics
21600 when using AIX-compatible \s-1ABI.\s0  Pass floating-point arguments to
21601 prototyped functions beyond the register save area (\s-1RSA\s0) on the stack
21602 in addition to argument FPRs.  Do not assume that most significant
21603 double in 128\-bit long double value is properly rounded when comparing
21604 values and converting to double.  Use \s-1XL\s0 symbol names for long double
21605 support routines.
21606 .Sp
21607 The \s-1AIX\s0 calling convention was extended but not initially documented to
21608 handle an obscure K&R C case of calling a function that takes the
21609 address of its arguments with fewer arguments than declared.  \s-1IBM XL\s0
21610 compilers access floating-point arguments that do not fit in the
21611 \&\s-1RSA\s0 from the stack when a subroutine is compiled without
21612 optimization.  Because always storing floating-point arguments on the
21613 stack is inefficient and rarely needed, this option is not enabled by
21614 default and only is necessary when calling subroutines compiled by \s-1IBM
21615 XL\s0 compilers without optimization.
21616 .IP "\fB\-malign\-natural\fR" 4
21617 .IX Item "-malign-natural"
21618 .PD 0
21619 .IP "\fB\-malign\-power\fR" 4
21620 .IX Item "-malign-power"
21621 .PD
21622 On \s-1AIX,\s0 32\-bit Darwin, and 64\-bit PowerPC GNU/Linux, the option
21623 \&\fB\-malign\-natural\fR overrides the ABI-defined alignment of larger
21624 types, such as floating-point doubles, on their natural size-based boundary.
21625 The option \fB\-malign\-power\fR instructs \s-1GCC\s0 to follow the ABI-specified
21626 alignment rules.  \s-1GCC\s0 defaults to the standard alignment defined in the \s-1ABI.\s0
21627 .Sp
21628 On 64\-bit Darwin, natural alignment is the default, and \fB\-malign\-power\fR
21629 is not supported.
21630 .IP "\fB\-msoft\-float\fR" 4
21631 .IX Item "-msoft-float"
21632 .PD 0
21633 .IP "\fB\-mhard\-float\fR" 4
21634 .IX Item "-mhard-float"
21635 .PD
21636 Generate code that does not use (uses) the floating-point register set.
21637 Software floating-point emulation is provided if you use the
21638 \&\fB\-msoft\-float\fR option, and pass the option to \s-1GCC\s0 when linking.
21639 .IP "\fB\-msingle\-float\fR" 4
21640 .IX Item "-msingle-float"
21641 .PD 0
21642 .IP "\fB\-mdouble\-float\fR" 4
21643 .IX Item "-mdouble-float"
21644 .PD
21645 Generate code for single\- or double-precision floating-point operations.
21646 \&\fB\-mdouble\-float\fR implies \fB\-msingle\-float\fR.
21647 .IP "\fB\-mmultiple\fR" 4
21648 .IX Item "-mmultiple"
21649 .PD 0
21650 .IP "\fB\-mno\-multiple\fR" 4
21651 .IX Item "-mno-multiple"
21652 .PD
21653 Generate code that uses (does not use) the load multiple word
21654 instructions and the store multiple word instructions.  These
21655 instructions are generated by default on \s-1POWER\s0 systems, and not
21656 generated on PowerPC systems.  Do not use \fB\-mmultiple\fR on little-endian
21657 PowerPC systems, since those instructions do not work when the
21658 processor is in little-endian mode.  The exceptions are \s-1PPC740\s0 and
21659 \&\s-1PPC750\s0 which permit these instructions in little-endian mode.
21660 .IP "\fB\-mupdate\fR" 4
21661 .IX Item "-mupdate"
21662 .PD 0
21663 .IP "\fB\-mno\-update\fR" 4
21664 .IX Item "-mno-update"
21665 .PD
21666 Generate code that uses (does not use) the load or store instructions
21667 that update the base register to the address of the calculated memory
21668 location.  These instructions are generated by default.  If you use
21669 \&\fB\-mno\-update\fR, there is a small window between the time that the
21670 stack pointer is updated and the address of the previous frame is
21671 stored, which means code that walks the stack frame across interrupts or
21672 signals may get corrupted data.
21673 .IP "\fB\-mavoid\-indexed\-addresses\fR" 4
21674 .IX Item "-mavoid-indexed-addresses"
21675 .PD 0
21676 .IP "\fB\-mno\-avoid\-indexed\-addresses\fR" 4
21677 .IX Item "-mno-avoid-indexed-addresses"
21678 .PD
21679 Generate code that tries to avoid (not avoid) the use of indexed load
21680 or store instructions. These instructions can incur a performance
21681 penalty on Power6 processors in certain situations, such as when
21682 stepping through large arrays that cross a 16M boundary.  This option
21683 is enabled by default when targeting Power6 and disabled otherwise.
21684 .IP "\fB\-mfused\-madd\fR" 4
21685 .IX Item "-mfused-madd"
21686 .PD 0
21687 .IP "\fB\-mno\-fused\-madd\fR" 4
21688 .IX Item "-mno-fused-madd"
21689 .PD
21690 Generate code that uses (does not use) the floating-point multiply and
21691 accumulate instructions.  These instructions are generated by default
21692 if hardware floating point is used.  The machine-dependent
21693 \&\fB\-mfused\-madd\fR option is now mapped to the machine-independent
21694 \&\fB\-ffp\-contract=fast\fR option, and \fB\-mno\-fused\-madd\fR is
21695 mapped to \fB\-ffp\-contract=off\fR.
21696 .IP "\fB\-mno\-strict\-align\fR" 4
21697 .IX Item "-mno-strict-align"
21698 .PD 0
21699 .IP "\fB\-mstrict\-align\fR" 4
21700 .IX Item "-mstrict-align"
21701 .PD
21702 On System V.4 and embedded PowerPC systems do not (do) assume that
21703 unaligned memory references are handled by the system.
21704 .IP "\fB\-mrelocatable\fR" 4
21705 .IX Item "-mrelocatable"
21706 .PD 0
21707 .IP "\fB\-mno\-relocatable\fR" 4
21708 .IX Item "-mno-relocatable"
21709 .PD
21710 Generate code that allows (does not allow) a static executable to be
21711 relocated to a different address at run time.  A simple embedded
21712 PowerPC system loader should relocate the entire contents of
21713 \&\f(CW\*(C`.got2\*(C'\fR and 4\-byte locations listed in the \f(CW\*(C`.fixup\*(C'\fR section,
21714 a table of 32\-bit addresses generated by this option.  For this to
21715 work, all objects linked together must be compiled with
21716 \&\fB\-mrelocatable\fR or \fB\-mrelocatable\-lib\fR.
21717 \&\fB\-mrelocatable\fR code aligns the stack to an 8\-byte boundary.
21718 .IP "\fB\-mrelocatable\-lib\fR" 4
21719 .IX Item "-mrelocatable-lib"
21720 .PD 0
21721 .IP "\fB\-mno\-relocatable\-lib\fR" 4
21722 .IX Item "-mno-relocatable-lib"
21723 .PD
21724 Like \fB\-mrelocatable\fR, \fB\-mrelocatable\-lib\fR generates a
21725 \&\f(CW\*(C`.fixup\*(C'\fR section to allow static executables to be relocated at
21726 run time, but \fB\-mrelocatable\-lib\fR does not use the smaller stack
21727 alignment of \fB\-mrelocatable\fR.  Objects compiled with
21728 \&\fB\-mrelocatable\-lib\fR may be linked with objects compiled with
21729 any combination of the \fB\-mrelocatable\fR options.
21730 .IP "\fB\-mno\-toc\fR" 4
21731 .IX Item "-mno-toc"
21732 .PD 0
21733 .IP "\fB\-mtoc\fR" 4
21734 .IX Item "-mtoc"
21735 .PD
21736 On System V.4 and embedded PowerPC systems do not (do) assume that
21737 register 2 contains a pointer to a global area pointing to the addresses
21738 used in the program.
21739 .IP "\fB\-mlittle\fR" 4
21740 .IX Item "-mlittle"
21741 .PD 0
21742 .IP "\fB\-mlittle\-endian\fR" 4
21743 .IX Item "-mlittle-endian"
21744 .PD
21745 On System V.4 and embedded PowerPC systems compile code for the
21746 processor in little-endian mode.  The \fB\-mlittle\-endian\fR option is
21747 the same as \fB\-mlittle\fR.
21748 .IP "\fB\-mbig\fR" 4
21749 .IX Item "-mbig"
21750 .PD 0
21751 .IP "\fB\-mbig\-endian\fR" 4
21752 .IX Item "-mbig-endian"
21753 .PD
21754 On System V.4 and embedded PowerPC systems compile code for the
21755 processor in big-endian mode.  The \fB\-mbig\-endian\fR option is
21756 the same as \fB\-mbig\fR.
21757 .IP "\fB\-mdynamic\-no\-pic\fR" 4
21758 .IX Item "-mdynamic-no-pic"
21759 On Darwin and Mac \s-1OS X\s0 systems, compile code so that it is not
21760 relocatable, but that its external references are relocatable.  The
21761 resulting code is suitable for applications, but not shared
21762 libraries.
21763 .IP "\fB\-msingle\-pic\-base\fR" 4
21764 .IX Item "-msingle-pic-base"
21765 Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
21766 loading it in the prologue for each function.  The runtime system is
21767 responsible for initializing this register with an appropriate value
21768 before execution begins.
21769 .IP "\fB\-mprioritize\-restricted\-insns=\fR\fIpriority\fR" 4
21770 .IX Item "-mprioritize-restricted-insns=priority"
21771 This option controls the priority that is assigned to
21772 dispatch-slot restricted instructions during the second scheduling
21773 pass.  The argument \fIpriority\fR takes the value \fB0\fR, \fB1\fR,
21774 or \fB2\fR to assign no, highest, or second-highest (respectively)
21775 priority to dispatch-slot restricted
21776 instructions.
21777 .IP "\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR" 4
21778 .IX Item "-msched-costly-dep=dependence_type"
21779 This option controls which dependences are considered costly
21780 by the target during instruction scheduling.  The argument
21781 \&\fIdependence_type\fR takes one of the following values:
21782 .RS 4
21783 .IP "\fBno\fR" 4
21784 .IX Item "no"
21785 No dependence is costly.
21786 .IP "\fBall\fR" 4
21787 .IX Item "all"
21788 All dependences are costly.
21789 .IP "\fBtrue_store_to_load\fR" 4
21790 .IX Item "true_store_to_load"
21791 A true dependence from store to load is costly.
21792 .IP "\fBstore_to_load\fR" 4
21793 .IX Item "store_to_load"
21794 Any dependence from store to load is costly.
21795 .IP "\fInumber\fR" 4
21796 .IX Item "number"
21797 Any dependence for which the latency is greater than or equal to
21798 \&\fInumber\fR is costly.
21799 .RE
21800 .RS 4
21801 .RE
21802 .IP "\fB\-minsert\-sched\-nops=\fR\fIscheme\fR" 4
21803 .IX Item "-minsert-sched-nops=scheme"
21804 This option controls which \s-1NOP\s0 insertion scheme is used during
21805 the second scheduling pass.  The argument \fIscheme\fR takes one of the
21806 following values:
21807 .RS 4
21808 .IP "\fBno\fR" 4
21809 .IX Item "no"
21810 Don't insert NOPs.
21811 .IP "\fBpad\fR" 4
21812 .IX Item "pad"
21813 Pad with NOPs any dispatch group that has vacant issue slots,
21814 according to the scheduler's grouping.
21815 .IP "\fBregroup_exact\fR" 4
21816 .IX Item "regroup_exact"
21817 Insert NOPs to force costly dependent insns into
21818 separate groups.  Insert exactly as many NOPs as needed to force an insn
21819 to a new group, according to the estimated processor grouping.
21820 .IP "\fInumber\fR" 4
21821 .IX Item "number"
21822 Insert NOPs to force costly dependent insns into
21823 separate groups.  Insert \fInumber\fR NOPs to force an insn to a new group.
21824 .RE
21825 .RS 4
21826 .RE
21827 .IP "\fB\-mcall\-sysv\fR" 4
21828 .IX Item "-mcall-sysv"
21829 On System V.4 and embedded PowerPC systems compile code using calling
21830 conventions that adhere to the March 1995 draft of the System V
21831 Application Binary Interface, PowerPC processor supplement.  This is the
21832 default unless you configured \s-1GCC\s0 using \fBpowerpc\-*\-eabiaix\fR.
21833 .IP "\fB\-mcall\-sysv\-eabi\fR" 4
21834 .IX Item "-mcall-sysv-eabi"
21835 .PD 0
21836 .IP "\fB\-mcall\-eabi\fR" 4
21837 .IX Item "-mcall-eabi"
21838 .PD
21839 Specify both \fB\-mcall\-sysv\fR and \fB\-meabi\fR options.
21840 .IP "\fB\-mcall\-sysv\-noeabi\fR" 4
21841 .IX Item "-mcall-sysv-noeabi"
21842 Specify both \fB\-mcall\-sysv\fR and \fB\-mno\-eabi\fR options.
21843 .IP "\fB\-mcall\-aixdesc\fR" 4
21844 .IX Item "-mcall-aixdesc"
21845 On System V.4 and embedded PowerPC systems compile code for the \s-1AIX\s0
21846 operating system.
21847 .IP "\fB\-mcall\-linux\fR" 4
21848 .IX Item "-mcall-linux"
21849 On System V.4 and embedded PowerPC systems compile code for the
21850 Linux-based \s-1GNU\s0 system.
21851 .IP "\fB\-mcall\-freebsd\fR" 4
21852 .IX Item "-mcall-freebsd"
21853 On System V.4 and embedded PowerPC systems compile code for the
21854 FreeBSD operating system.
21855 .IP "\fB\-mcall\-netbsd\fR" 4
21856 .IX Item "-mcall-netbsd"
21857 On System V.4 and embedded PowerPC systems compile code for the
21858 NetBSD operating system.
21859 .IP "\fB\-mcall\-openbsd\fR" 4
21860 .IX Item "-mcall-openbsd"
21861 On System V.4 and embedded PowerPC systems compile code for the
21862 OpenBSD operating system.
21863 .IP "\fB\-maix\-struct\-return\fR" 4
21864 .IX Item "-maix-struct-return"
21865 Return all structures in memory (as specified by the \s-1AIX ABI\s0).
21866 .IP "\fB\-msvr4\-struct\-return\fR" 4
21867 .IX Item "-msvr4-struct-return"
21868 Return structures smaller than 8 bytes in registers (as specified by the
21869 \&\s-1SVR4 ABI\s0).
21870 .IP "\fB\-mabi=\fR\fIabi-type\fR" 4
21871 .IX Item "-mabi=abi-type"
21872 Extend the current \s-1ABI\s0 with a particular extension, or remove such extension.
21873 Valid values are \fBaltivec\fR, \fBno-altivec\fR, \fBspe\fR,
21874 \&\fBno-spe\fR, \fBibmlongdouble\fR, \fBieeelongdouble\fR,
21875 \&\fBelfv1\fR, \fBelfv2\fR.
21876 .IP "\fB\-mabi=spe\fR" 4
21877 .IX Item "-mabi=spe"
21878 Extend the current \s-1ABI\s0 with \s-1SPE ABI\s0 extensions.  This does not change
21879 the default \s-1ABI,\s0 instead it adds the \s-1SPE ABI\s0 extensions to the current
21880 \&\s-1ABI.\s0
21881 .IP "\fB\-mabi=no\-spe\fR" 4
21882 .IX Item "-mabi=no-spe"
21883 Disable Book-E \s-1SPE ABI\s0 extensions for the current \s-1ABI.\s0
21884 .IP "\fB\-mabi=ibmlongdouble\fR" 4
21885 .IX Item "-mabi=ibmlongdouble"
21886 Change the current \s-1ABI\s0 to use \s-1IBM\s0 extended-precision long double.
21887 This is not likely to work if your system defaults to using \s-1IEEE\s0
21888 extended-precision long double.  If you change the long double type
21889 from \s-1IEEE\s0 extended-precision, the compiler will issue a warning unless
21890 you use the \fB\-Wno\-psabi\fR option.  Requires \fB\-mlong\-double\-128\fR
21891 to be enabled.
21892 .IP "\fB\-mabi=ieeelongdouble\fR" 4
21893 .IX Item "-mabi=ieeelongdouble"
21894 Change the current \s-1ABI\s0 to use \s-1IEEE\s0 extended-precision long double.
21895 This is not likely to work if your system defaults to using \s-1IBM\s0
21896 extended-precision long double.  If you change the long double type
21897 from \s-1IBM\s0 extended-precision, the compiler will issue a warning unless
21898 you use the \fB\-Wno\-psabi\fR option.  Requires \fB\-mlong\-double\-128\fR
21899 to be enabled.
21900 .IP "\fB\-mabi=elfv1\fR" 4
21901 .IX Item "-mabi=elfv1"
21902 Change the current \s-1ABI\s0 to use the ELFv1 \s-1ABI.\s0
21903 This is the default \s-1ABI\s0 for big-endian PowerPC 64\-bit Linux.
21904 Overriding the default \s-1ABI\s0 requires special system support and is
21905 likely to fail in spectacular ways.
21906 .IP "\fB\-mabi=elfv2\fR" 4
21907 .IX Item "-mabi=elfv2"
21908 Change the current \s-1ABI\s0 to use the ELFv2 \s-1ABI.\s0
21909 This is the default \s-1ABI\s0 for little-endian PowerPC 64\-bit Linux.
21910 Overriding the default \s-1ABI\s0 requires special system support and is
21911 likely to fail in spectacular ways.
21912 .IP "\fB\-mgnu\-attribute\fR" 4
21913 .IX Item "-mgnu-attribute"
21914 .PD 0
21915 .IP "\fB\-mno\-gnu\-attribute\fR" 4
21916 .IX Item "-mno-gnu-attribute"
21917 .PD
21918 Emit .gnu_attribute assembly directives to set tag/value pairs in a
21919 \&.gnu.attributes section that specify \s-1ABI\s0 variations in function
21920 parameters or return values.
21921 .IP "\fB\-mprototype\fR" 4
21922 .IX Item "-mprototype"
21923 .PD 0
21924 .IP "\fB\-mno\-prototype\fR" 4
21925 .IX Item "-mno-prototype"
21926 .PD
21927 On System V.4 and embedded PowerPC systems assume that all calls to
21928 variable argument functions are properly prototyped.  Otherwise, the
21929 compiler must insert an instruction before every non-prototyped call to
21930 set or clear bit 6 of the condition code register (\f(CW\*(C`CR\*(C'\fR) to
21931 indicate whether floating-point values are passed in the floating-point
21932 registers in case the function takes variable arguments.  With
21933 \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
21934 set or clear the bit.
21935 .IP "\fB\-msim\fR" 4
21936 .IX Item "-msim"
21937 On embedded PowerPC systems, assume that the startup module is called
21938 \&\fIsim\-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
21939 \&\fIlibc.a\fR.  This is the default for \fBpowerpc\-*\-eabisim\fR
21940 configurations.
21941 .IP "\fB\-mmvme\fR" 4
21942 .IX Item "-mmvme"
21943 On embedded PowerPC systems, assume that the startup module is called
21944 \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
21945 \&\fIlibc.a\fR.
21946 .IP "\fB\-mads\fR" 4
21947 .IX Item "-mads"
21948 On embedded PowerPC systems, assume that the startup module is called
21949 \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
21950 \&\fIlibc.a\fR.
21951 .IP "\fB\-myellowknife\fR" 4
21952 .IX Item "-myellowknife"
21953 On embedded PowerPC systems, assume that the startup module is called
21954 \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
21955 \&\fIlibc.a\fR.
21956 .IP "\fB\-mvxworks\fR" 4
21957 .IX Item "-mvxworks"
21958 On System V.4 and embedded PowerPC systems, specify that you are
21959 compiling for a VxWorks system.
21960 .IP "\fB\-memb\fR" 4
21961 .IX Item "-memb"
21962 On embedded PowerPC systems, set the \f(CW\*(C`PPC_EMB\*(C'\fR bit in the \s-1ELF\s0 flags
21963 header to indicate that \fBeabi\fR extended relocations are used.
21964 .IP "\fB\-meabi\fR" 4
21965 .IX Item "-meabi"
21966 .PD 0
21967 .IP "\fB\-mno\-eabi\fR" 4
21968 .IX Item "-mno-eabi"
21969 .PD
21970 On System V.4 and embedded PowerPC systems do (do not) adhere to the
21971 Embedded Applications Binary Interface (\s-1EABI\s0), which is a set of
21972 modifications to the System V.4 specifications.  Selecting \fB\-meabi\fR
21973 means that the stack is aligned to an 8\-byte boundary, a function
21974 \&\f(CW\*(C`_\|_eabi\*(C'\fR is called from \f(CW\*(C`main\*(C'\fR to set up the \s-1EABI\s0
21975 environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
21976 \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas.  Selecting
21977 \&\fB\-mno\-eabi\fR means that the stack is aligned to a 16\-byte boundary,
21978 no \s-1EABI\s0 initialization function is called from \f(CW\*(C`main\*(C'\fR, and the
21979 \&\fB\-msdata\fR option only uses \f(CW\*(C`r13\*(C'\fR to point to a single
21980 small data area.  The \fB\-meabi\fR option is on by default if you
21981 configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
21982 .IP "\fB\-msdata=eabi\fR" 4
21983 .IX Item "-msdata=eabi"
21984 On System V.4 and embedded PowerPC systems, put small initialized
21985 \&\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata2\*(C'\fR section, which
21986 is pointed to by register \f(CW\*(C`r2\*(C'\fR.  Put small initialized
21987 non\-\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata\*(C'\fR section,
21988 which is pointed to by register \f(CW\*(C`r13\*(C'\fR.  Put small uninitialized
21989 global and static data in the \f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to
21990 the \f(CW\*(C`.sdata\*(C'\fR section.  The \fB\-msdata=eabi\fR option is
21991 incompatible with the \fB\-mrelocatable\fR option.  The
21992 \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
21993 .IP "\fB\-msdata=sysv\fR" 4
21994 .IX Item "-msdata=sysv"
21995 On System V.4 and embedded PowerPC systems, put small global and static
21996 data in the \f(CW\*(C`.sdata\*(C'\fR section, which is pointed to by register
21997 \&\f(CW\*(C`r13\*(C'\fR.  Put small uninitialized global and static data in the
21998 \&\f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to the \f(CW\*(C`.sdata\*(C'\fR section.
21999 The \fB\-msdata=sysv\fR option is incompatible with the
22000 \&\fB\-mrelocatable\fR option.
22001 .IP "\fB\-msdata=default\fR" 4
22002 .IX Item "-msdata=default"
22003 .PD 0
22004 .IP "\fB\-msdata\fR" 4
22005 .IX Item "-msdata"
22006 .PD
22007 On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
22008 compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
22009 same as \fB\-msdata=sysv\fR.
22010 .IP "\fB\-msdata=data\fR" 4
22011 .IX Item "-msdata=data"
22012 On System V.4 and embedded PowerPC systems, put small global
22013 data in the \f(CW\*(C`.sdata\*(C'\fR section.  Put small uninitialized global
22014 data in the \f(CW\*(C`.sbss\*(C'\fR section.  Do not use register \f(CW\*(C`r13\*(C'\fR
22015 to address small data however.  This is the default behavior unless
22016 other \fB\-msdata\fR options are used.
22017 .IP "\fB\-msdata=none\fR" 4
22018 .IX Item "-msdata=none"
22019 .PD 0
22020 .IP "\fB\-mno\-sdata\fR" 4
22021 .IX Item "-mno-sdata"
22022 .PD
22023 On embedded PowerPC systems, put all initialized global and static data
22024 in the \f(CW\*(C`.data\*(C'\fR section, and all uninitialized data in the
22025 \&\f(CW\*(C`.bss\*(C'\fR section.
22026 .IP "\fB\-mblock\-move\-inline\-limit=\fR\fInum\fR" 4
22027 .IX Item "-mblock-move-inline-limit=num"
22028 Inline all block moves (such as calls to \f(CW\*(C`memcpy\*(C'\fR or structure
22029 copies) less than or equal to \fInum\fR bytes.  The minimum value for
22030 \&\fInum\fR is 32 bytes on 32\-bit targets and 64 bytes on 64\-bit
22031 targets.  The default value is target-specific.
22032 .IP "\fB\-G\fR \fInum\fR" 4
22033 .IX Item "-G num"
22034 On embedded PowerPC systems, put global and static items less than or
22035 equal to \fInum\fR bytes into the small data or \s-1BSS\s0 sections instead of
22036 the normal data or \s-1BSS\s0 section.  By default, \fInum\fR is 8.  The
22037 \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
22038 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
22039 .IP "\fB\-mregnames\fR" 4
22040 .IX Item "-mregnames"
22041 .PD 0
22042 .IP "\fB\-mno\-regnames\fR" 4
22043 .IX Item "-mno-regnames"
22044 .PD
22045 On System V.4 and embedded PowerPC systems do (do not) emit register
22046 names in the assembly language output using symbolic forms.
22047 .IP "\fB\-mlongcall\fR" 4
22048 .IX Item "-mlongcall"
22049 .PD 0
22050 .IP "\fB\-mno\-longcall\fR" 4
22051 .IX Item "-mno-longcall"
22052 .PD
22053 By default assume that all calls are far away so that a longer and more
22054 expensive calling sequence is required.  This is required for calls
22055 farther than 32 megabytes (33,554,432 bytes) from the current location.
22056 A short call is generated if the compiler knows
22057 the call cannot be that far away.  This setting can be overridden by
22058 the \f(CW\*(C`shortcall\*(C'\fR function attribute, or by \f(CW\*(C`#pragma
22059 longcall(0)\*(C'\fR.
22060 .Sp
22061 Some linkers are capable of detecting out-of-range calls and generating
22062 glue code on the fly.  On these systems, long calls are unnecessary and
22063 generate slower code.  As of this writing, the \s-1AIX\s0 linker can do this,
22064 as can the \s-1GNU\s0 linker for PowerPC/64.  It is planned to add this feature
22065 to the \s-1GNU\s0 linker for 32\-bit PowerPC systems as well.
22066 .Sp
22067 In the future, \s-1GCC\s0 may ignore all longcall specifications
22068 when the linker is known to generate glue.
22069 .IP "\fB\-mtls\-markers\fR" 4
22070 .IX Item "-mtls-markers"
22071 .PD 0
22072 .IP "\fB\-mno\-tls\-markers\fR" 4
22073 .IX Item "-mno-tls-markers"
22074 .PD
22075 Mark (do not mark) calls to \f(CW\*(C`_\|_tls_get_addr\*(C'\fR with a relocation
22076 specifying the function argument.  The relocation allows the linker to
22077 reliably associate function call with argument setup instructions for
22078 \&\s-1TLS\s0 optimization, which in turn allows \s-1GCC\s0 to better schedule the
22079 sequence.
22080 .IP "\fB\-mrecip\fR" 4
22081 .IX Item "-mrecip"
22082 .PD 0
22083 .IP "\fB\-mno\-recip\fR" 4
22084 .IX Item "-mno-recip"
22085 .PD
22086 This option enables use of the reciprocal estimate and
22087 reciprocal square root estimate instructions with additional
22088 Newton-Raphson steps to increase precision instead of doing a divide or
22089 square root and divide for floating-point arguments.  You should use
22090 the \fB\-ffast\-math\fR option when using \fB\-mrecip\fR (or at
22091 least \fB\-funsafe\-math\-optimizations\fR,
22092 \&\fB\-ffinite\-math\-only\fR, \fB\-freciprocal\-math\fR and
22093 \&\fB\-fno\-trapping\-math\fR).  Note that while the throughput of the
22094 sequence is generally higher than the throughput of the non-reciprocal
22095 instruction, the precision of the sequence can be decreased by up to 2
22096 ulp (i.e. the inverse of 1.0 equals 0.99999994) for reciprocal square
22097 roots.
22098 .IP "\fB\-mrecip=\fR\fIopt\fR" 4
22099 .IX Item "-mrecip=opt"
22100 This option controls which reciprocal estimate instructions
22101 may be used.  \fIopt\fR is a comma-separated list of options, which may
22102 be preceded by a \f(CW\*(C`!\*(C'\fR to invert the option:
22103 .RS 4
22104 .IP "\fBall\fR" 4
22105 .IX Item "all"
22106 Enable all estimate instructions.
22107 .IP "\fBdefault\fR" 4
22108 .IX Item "default"
22109 Enable the default instructions, equivalent to \fB\-mrecip\fR.
22110 .IP "\fBnone\fR" 4
22111 .IX Item "none"
22112 Disable all estimate instructions, equivalent to \fB\-mno\-recip\fR.
22113 .IP "\fBdiv\fR" 4
22114 .IX Item "div"
22115 Enable the reciprocal approximation instructions for both
22116 single and double precision.
22117 .IP "\fBdivf\fR" 4
22118 .IX Item "divf"
22119 Enable the single-precision reciprocal approximation instructions.
22120 .IP "\fBdivd\fR" 4
22121 .IX Item "divd"
22122 Enable the double-precision reciprocal approximation instructions.
22123 .IP "\fBrsqrt\fR" 4
22124 .IX Item "rsqrt"
22125 Enable the reciprocal square root approximation instructions for both
22126 single and double precision.
22127 .IP "\fBrsqrtf\fR" 4
22128 .IX Item "rsqrtf"
22129 Enable the single-precision reciprocal square root approximation instructions.
22130 .IP "\fBrsqrtd\fR" 4
22131 .IX Item "rsqrtd"
22132 Enable the double-precision reciprocal square root approximation instructions.
22133 .RE
22134 .RS 4
22135 .Sp
22136 So, for example, \fB\-mrecip=all,!rsqrtd\fR enables
22137 all of the reciprocal estimate instructions, except for the
22138 \&\f(CW\*(C`FRSQRTE\*(C'\fR, \f(CW\*(C`XSRSQRTEDP\*(C'\fR, and \f(CW\*(C`XVRSQRTEDP\*(C'\fR instructions
22139 which handle the double-precision reciprocal square root calculations.
22140 .RE
22141 .IP "\fB\-mrecip\-precision\fR" 4
22142 .IX Item "-mrecip-precision"
22143 .PD 0
22144 .IP "\fB\-mno\-recip\-precision\fR" 4
22145 .IX Item "-mno-recip-precision"
22146 .PD
22147 Assume (do not assume) that the reciprocal estimate instructions
22148 provide higher-precision estimates than is mandated by the PowerPC
22149 \&\s-1ABI.\s0  Selecting \fB\-mcpu=power6\fR, \fB\-mcpu=power7\fR or
22150 \&\fB\-mcpu=power8\fR automatically selects \fB\-mrecip\-precision\fR.
22151 The double-precision square root estimate instructions are not generated by
22152 default on low-precision machines, since they do not provide an
22153 estimate that converges after three steps.
22154 .IP "\fB\-mpointers\-to\-nested\-functions\fR" 4
22155 .IX Item "-mpointers-to-nested-functions"
22156 .PD 0
22157 .IP "\fB\-mno\-pointers\-to\-nested\-functions\fR" 4
22158 .IX Item "-mno-pointers-to-nested-functions"
22159 .PD
22160 Generate (do not generate) code to load up the static chain register
22161 (\f(CW\*(C`r11\*(C'\fR) when calling through a pointer on \s-1AIX\s0 and 64\-bit Linux
22162 systems where a function pointer points to a 3\-word descriptor giving
22163 the function address, \s-1TOC\s0 value to be loaded in register \f(CW\*(C`r2\*(C'\fR, and
22164 static chain value to be loaded in register \f(CW\*(C`r11\*(C'\fR.  The
22165 \&\fB\-mpointers\-to\-nested\-functions\fR is on by default.  You cannot
22166 call through pointers to nested functions or pointers
22167 to functions compiled in other languages that use the static chain if
22168 you use \fB\-mno\-pointers\-to\-nested\-functions\fR.
22169 .IP "\fB\-msave\-toc\-indirect\fR" 4
22170 .IX Item "-msave-toc-indirect"
22171 .PD 0
22172 .IP "\fB\-mno\-save\-toc\-indirect\fR" 4
22173 .IX Item "-mno-save-toc-indirect"
22174 .PD
22175 Generate (do not generate) code to save the \s-1TOC\s0 value in the reserved
22176 stack location in the function prologue if the function calls through
22177 a pointer on \s-1AIX\s0 and 64\-bit Linux systems.  If the \s-1TOC\s0 value is not
22178 saved in the prologue, it is saved just before the call through the
22179 pointer.  The \fB\-mno\-save\-toc\-indirect\fR option is the default.
22180 .IP "\fB\-mcompat\-align\-parm\fR" 4
22181 .IX Item "-mcompat-align-parm"
22182 .PD 0
22183 .IP "\fB\-mno\-compat\-align\-parm\fR" 4
22184 .IX Item "-mno-compat-align-parm"
22185 .PD
22186 Generate (do not generate) code to pass structure parameters with a
22187 maximum alignment of 64 bits, for compatibility with older versions
22188 of \s-1GCC.\s0
22189 .Sp
22190 Older versions of \s-1GCC\s0 (prior to 4.9.0) incorrectly did not align a
22191 structure parameter on a 128\-bit boundary when that structure contained
22192 a member requiring 128\-bit alignment.  This is corrected in more
22193 recent versions of \s-1GCC.\s0  This option may be used to generate code
22194 that is compatible with functions compiled with older versions of
22195 \&\s-1GCC.\s0
22196 .Sp
22197 The \fB\-mno\-compat\-align\-parm\fR option is the default.
22198 .IP "\fB\-mstack\-protector\-guard=\fR\fIguard\fR" 4
22199 .IX Item "-mstack-protector-guard=guard"
22200 .PD 0
22201 .IP "\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR" 4
22202 .IX Item "-mstack-protector-guard-reg=reg"
22203 .IP "\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR" 4
22204 .IX Item "-mstack-protector-guard-offset=offset"
22205 .IP "\fB\-mstack\-protector\-guard\-symbol=\fR\fIsymbol\fR" 4
22206 .IX Item "-mstack-protector-guard-symbol=symbol"
22207 .PD
22208 Generate stack protection code using canary at \fIguard\fR.  Supported
22209 locations are \fBglobal\fR for global canary or \fBtls\fR for per-thread
22210 canary in the \s-1TLS\s0 block (the default with \s-1GNU\s0 libc version 2.4 or later).
22211 .Sp
22212 With the latter choice the options
22213 \&\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR and
22214 \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR furthermore specify
22215 which register to use as base register for reading the canary, and from what
22216 offset from that base register. The default for those is as specified in the
22217 relevant \s-1ABI.\s0  \fB\-mstack\-protector\-guard\-symbol=\fR\fIsymbol\fR overrides
22218 the offset with a symbol reference to a canary in the \s-1TLS\s0 block.
22219 .PP
22220 \fIRISC-V Options\fR
22221 .IX Subsection "RISC-V Options"
22222 .PP
22223 These command-line options are defined for RISC-V targets:
22224 .IP "\fB\-mbranch\-cost=\fR\fIn\fR" 4
22225 .IX Item "-mbranch-cost=n"
22226 Set the cost of branches to roughly \fIn\fR instructions.
22227 .IP "\fB\-mplt\fR" 4
22228 .IX Item "-mplt"
22229 .PD 0
22230 .IP "\fB\-mno\-plt\fR" 4
22231 .IX Item "-mno-plt"
22232 .PD
22233 When generating \s-1PIC\s0 code, do or don't allow the use of PLTs. Ignored for
22234 non-PIC.  The default is \fB\-mplt\fR.
22235 .IP "\fB\-mabi=\fR\fIABI-string\fR" 4
22236 .IX Item "-mabi=ABI-string"
22237 Specify integer and floating-point calling convention.  \fIABI-string\fR
22238 contains two parts: the size of integer types and the registers used for
22239 floating-point types.  For example \fB\-march=rv64ifd \-mabi=lp64d\fR means that
22240 \&\fBlong\fR and pointers are 64\-bit (implicitly defining \fBint\fR to be
22241 32\-bit), and that floating-point values up to 64 bits wide are passed in F
22242 registers.  Contrast this with \fB\-march=rv64ifd \-mabi=lp64f\fR, which still
22243 allows the compiler to generate code that uses the F and D extensions but only
22244 allows floating-point values up to 32 bits long to be passed in registers; or
22245 \&\fB\-march=rv64ifd \-mabi=lp64\fR, in which no floating-point arguments will be
22246 passed in registers.
22247 .Sp
22248 The default for this argument is system dependent, users who want a specific
22249 calling convention should specify one explicitly.  The valid calling
22250 conventions are: \fBilp32\fR, \fBilp32f\fR, \fBilp32d\fR, \fBlp64\fR,
22251 \&\fBlp64f\fR, and \fBlp64d\fR.  Some calling conventions are impossible to
22252 implement on some ISAs: for example, \fB\-march=rv32if \-mabi=ilp32d\fR is
22253 invalid because the \s-1ABI\s0 requires 64\-bit values be passed in F registers, but F
22254 registers are only 32 bits wide.
22255 .IP "\fB\-mfdiv\fR" 4
22256 .IX Item "-mfdiv"
22257 .PD 0
22258 .IP "\fB\-mno\-fdiv\fR" 4
22259 .IX Item "-mno-fdiv"
22260 .PD
22261 Do or don't use hardware floating-point divide and square root instructions.
22262 This requires the F or D extensions for floating-point registers.  The default
22263 is to use them if the specified architecture has these instructions.
22264 .IP "\fB\-mdiv\fR" 4
22265 .IX Item "-mdiv"
22266 .PD 0
22267 .IP "\fB\-mno\-div\fR" 4
22268 .IX Item "-mno-div"
22269 .PD
22270 Do or don't use hardware instructions for integer division.  This requires the
22271 M extension.  The default is to use them if the specified architecture has
22272 these instructions.
22273 .IP "\fB\-march=\fR\fIISA-string\fR" 4
22274 .IX Item "-march=ISA-string"
22275 Generate code for given RISC-V \s-1ISA\s0 (e.g. \fBrv64im\fR).  \s-1ISA\s0 strings must be
22276 lower-case.  Examples include \fBrv64i\fR, \fBrv32g\fR, and \fBrv32imaf\fR.
22277 .IP "\fB\-mtune=\fR\fIprocessor-string\fR" 4
22278 .IX Item "-mtune=processor-string"
22279 Optimize the output for the given processor, specified by microarchitecture
22280 name.
22281 .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
22282 .IX Item "-mpreferred-stack-boundary=num"
22283 Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
22284 byte boundary.  If \fB\-mpreferred\-stack\-boundary\fR is not specified,
22285 the default is 4 (16 bytes or 128\-bits).
22286 .Sp
22287 \&\fBWarning:\fR If you use this switch, then you must build all modules with
22288 the same value, including any libraries.  This includes the system libraries
22289 and startup modules.
22290 .IP "\fB\-msmall\-data\-limit=\fR\fIn\fR" 4
22291 .IX Item "-msmall-data-limit=n"
22292 Put global and static data smaller than \fIn\fR bytes into a special section
22293 (on some targets).
22294 .IP "\fB\-msave\-restore\fR" 4
22295 .IX Item "-msave-restore"
22296 .PD 0
22297 .IP "\fB\-mno\-save\-restore\fR" 4
22298 .IX Item "-mno-save-restore"
22299 .PD
22300 Do or don't use smaller but slower prologue and epilogue code that uses
22301 library function calls.  The default is to use fast inline prologues and
22302 epilogues.
22303 .IP "\fB\-mstrict\-align\fR" 4
22304 .IX Item "-mstrict-align"
22305 .PD 0
22306 .IP "\fB\-mno\-strict\-align\fR" 4
22307 .IX Item "-mno-strict-align"
22308 .PD
22309 Do not or do generate unaligned memory accesses.  The default is set depending
22310 on whether the processor we are optimizing for supports fast unaligned access
22311 or not.
22312 .IP "\fB\-mcmodel=medlow\fR" 4
22313 .IX Item "-mcmodel=medlow"
22314 Generate code for the medium-low code model. The program and its statically
22315 defined symbols must lie within a single 2 GiB address range and must lie
22316 between absolute addresses \-2 GiB and +2 GiB. Programs can be
22317 statically or dynamically linked. This is the default code model.
22318 .IP "\fB\-mcmodel=medany\fR" 4
22319 .IX Item "-mcmodel=medany"
22320 Generate code for the medium-any code model. The program and its statically
22321 defined symbols must be within any single 2 GiB address range. Programs can be
22322 statically or dynamically linked.
22323 .IP "\fB\-mexplicit\-relocs\fR" 4
22324 .IX Item "-mexplicit-relocs"
22325 .PD 0
22326 .IP "\fB\-mno\-exlicit\-relocs\fR" 4
22327 .IX Item "-mno-exlicit-relocs"
22328 .PD
22329 Use or do not use assembler relocation operators when dealing with symbolic
22330 addresses.  The alternative is to use assembler macros instead, which may
22331 limit optimization.
22332 .IP "\fB\-mrelax\fR" 4
22333 .IX Item "-mrelax"
22334 .PD 0
22335 .IP "\fB\-mno\-relax\fR" 4
22336 .IX Item "-mno-relax"
22337 .PD
22338 Take advantage of linker relaxations to reduce the number of instructions
22339 required to materialize symbol addresses. The default is to take advantage of
22340 linker relaxations.
22341 .PP
22342 \fI\s-1RL78\s0 Options\fR
22343 .IX Subsection "RL78 Options"
22344 .IP "\fB\-msim\fR" 4
22345 .IX Item "-msim"
22346 Links in additional target libraries to support operation within a
22347 simulator.
22348 .IP "\fB\-mmul=none\fR" 4
22349 .IX Item "-mmul=none"
22350 .PD 0
22351 .IP "\fB\-mmul=g10\fR" 4
22352 .IX Item "-mmul=g10"
22353 .IP "\fB\-mmul=g13\fR" 4
22354 .IX Item "-mmul=g13"
22355 .IP "\fB\-mmul=g14\fR" 4
22356 .IX Item "-mmul=g14"
22357 .IP "\fB\-mmul=rl78\fR" 4
22358 .IX Item "-mmul=rl78"
22359 .PD
22360 Specifies the type of hardware multiplication and division support to
22361 be used.  The simplest is \f(CW\*(C`none\*(C'\fR, which uses software for both
22362 multiplication and division.  This is the default.  The \f(CW\*(C`g13\*(C'\fR
22363 value is for the hardware multiply/divide peripheral found on the
22364 \&\s-1RL78/G13\s0 (S2 core) targets.  The \f(CW\*(C`g14\*(C'\fR value selects the use of
22365 the multiplication and division instructions supported by the \s-1RL78/G14\s0
22366 (S3 core) parts.  The value \f(CW\*(C`rl78\*(C'\fR is an alias for \f(CW\*(C`g14\*(C'\fR and
22367 the value \f(CW\*(C`mg10\*(C'\fR is an alias for \f(CW\*(C`none\*(C'\fR.
22368 .Sp
22369 In addition a C preprocessor macro is defined, based upon the setting
22370 of this option.  Possible values are: \f(CW\*(C`_\|_RL78_MUL_NONE_\|_\*(C'\fR,
22371 \&\f(CW\*(C`_\|_RL78_MUL_G13_\|_\*(C'\fR or \f(CW\*(C`_\|_RL78_MUL_G14_\|_\*(C'\fR.
22372 .IP "\fB\-mcpu=g10\fR" 4
22373 .IX Item "-mcpu=g10"
22374 .PD 0
22375 .IP "\fB\-mcpu=g13\fR" 4
22376 .IX Item "-mcpu=g13"
22377 .IP "\fB\-mcpu=g14\fR" 4
22378 .IX Item "-mcpu=g14"
22379 .IP "\fB\-mcpu=rl78\fR" 4
22380 .IX Item "-mcpu=rl78"
22381 .PD
22382 Specifies the \s-1RL78\s0 core to target.  The default is the G14 core, also
22383 known as an S3 core or just \s-1RL78.\s0  The G13 or S2 core does not have
22384 multiply or divide instructions, instead it uses a hardware peripheral
22385 for these operations.  The G10 or S1 core does not have register
22386 banks, so it uses a different calling convention.
22387 .Sp
22388 If this option is set it also selects the type of hardware multiply
22389 support to use, unless this is overridden by an explicit
22390 \&\fB\-mmul=none\fR option on the command line.  Thus specifying
22391 \&\fB\-mcpu=g13\fR enables the use of the G13 hardware multiply
22392 peripheral and specifying \fB\-mcpu=g10\fR disables the use of
22393 hardware multiplications altogether.
22394 .Sp
22395 Note, although the \s-1RL78/G14\s0 core is the default target, specifying
22396 \&\fB\-mcpu=g14\fR or \fB\-mcpu=rl78\fR on the command line does
22397 change the behavior of the toolchain since it also enables G14
22398 hardware multiply support.  If these options are not specified on the
22399 command line then software multiplication routines will be used even
22400 though the code targets the \s-1RL78\s0 core.  This is for backwards
22401 compatibility with older toolchains which did not have hardware
22402 multiply and divide support.
22403 .Sp
22404 In addition a C preprocessor macro is defined, based upon the setting
22405 of this option.  Possible values are: \f(CW\*(C`_\|_RL78_G10_\|_\*(C'\fR,
22406 \&\f(CW\*(C`_\|_RL78_G13_\|_\*(C'\fR or \f(CW\*(C`_\|_RL78_G14_\|_\*(C'\fR.
22407 .IP "\fB\-mg10\fR" 4
22408 .IX Item "-mg10"
22409 .PD 0
22410 .IP "\fB\-mg13\fR" 4
22411 .IX Item "-mg13"
22412 .IP "\fB\-mg14\fR" 4
22413 .IX Item "-mg14"
22414 .IP "\fB\-mrl78\fR" 4
22415 .IX Item "-mrl78"
22416 .PD
22417 These are aliases for the corresponding \fB\-mcpu=\fR option.  They
22418 are provided for backwards compatibility.
22419 .IP "\fB\-mallregs\fR" 4
22420 .IX Item "-mallregs"
22421 Allow the compiler to use all of the available registers.  By default
22422 registers \f(CW\*(C`r24..r31\*(C'\fR are reserved for use in interrupt handlers.
22423 With this option enabled these registers can be used in ordinary
22424 functions as well.
22425 .IP "\fB\-m64bit\-doubles\fR" 4
22426 .IX Item "-m64bit-doubles"
22427 .PD 0
22428 .IP "\fB\-m32bit\-doubles\fR" 4
22429 .IX Item "-m32bit-doubles"
22430 .PD
22431 Make the \f(CW\*(C`double\*(C'\fR data type be 64 bits (\fB\-m64bit\-doubles\fR)
22432 or 32 bits (\fB\-m32bit\-doubles\fR) in size.  The default is
22433 \&\fB\-m32bit\-doubles\fR.
22434 .IP "\fB\-msave\-mduc\-in\-interrupts\fR" 4
22435 .IX Item "-msave-mduc-in-interrupts"
22436 .PD 0
22437 .IP "\fB\-mno\-save\-mduc\-in\-interrupts\fR" 4
22438 .IX Item "-mno-save-mduc-in-interrupts"
22439 .PD
22440 Specifies that interrupt handler functions should preserve the
22441 \&\s-1MDUC\s0 registers.  This is only necessary if normal code might use
22442 the \s-1MDUC\s0 registers, for example because it performs multiplication
22443 and division operations.  The default is to ignore the \s-1MDUC\s0 registers
22444 as this makes the interrupt handlers faster.  The target option \-mg13
22445 needs to be passed for this to work as this feature is only available
22446 on the G13 target (S2 core).  The \s-1MDUC\s0 registers will only be saved
22447 if the interrupt handler performs a multiplication or division
22448 operation or it calls another function.
22449 .PP
22450 \fI\s-1IBM RS/6000\s0 and PowerPC Options\fR
22451 .IX Subsection "IBM RS/6000 and PowerPC Options"
22452 .PP
22453 These \fB\-m\fR options are defined for the \s-1IBM RS/6000\s0 and PowerPC:
22454 .IP "\fB\-mpowerpc\-gpopt\fR" 4
22455 .IX Item "-mpowerpc-gpopt"
22456 .PD 0
22457 .IP "\fB\-mno\-powerpc\-gpopt\fR" 4
22458 .IX Item "-mno-powerpc-gpopt"
22459 .IP "\fB\-mpowerpc\-gfxopt\fR" 4
22460 .IX Item "-mpowerpc-gfxopt"
22461 .IP "\fB\-mno\-powerpc\-gfxopt\fR" 4
22462 .IX Item "-mno-powerpc-gfxopt"
22463 .IP "\fB\-mpowerpc64\fR" 4
22464 .IX Item "-mpowerpc64"
22465 .IP "\fB\-mno\-powerpc64\fR" 4
22466 .IX Item "-mno-powerpc64"
22467 .IP "\fB\-mmfcrf\fR" 4
22468 .IX Item "-mmfcrf"
22469 .IP "\fB\-mno\-mfcrf\fR" 4
22470 .IX Item "-mno-mfcrf"
22471 .IP "\fB\-mpopcntb\fR" 4
22472 .IX Item "-mpopcntb"
22473 .IP "\fB\-mno\-popcntb\fR" 4
22474 .IX Item "-mno-popcntb"
22475 .IP "\fB\-mpopcntd\fR" 4
22476 .IX Item "-mpopcntd"
22477 .IP "\fB\-mno\-popcntd\fR" 4
22478 .IX Item "-mno-popcntd"
22479 .IP "\fB\-mfprnd\fR" 4
22480 .IX Item "-mfprnd"
22481 .IP "\fB\-mno\-fprnd\fR" 4
22482 .IX Item "-mno-fprnd"
22483 .IP "\fB\-mcmpb\fR" 4
22484 .IX Item "-mcmpb"
22485 .IP "\fB\-mno\-cmpb\fR" 4
22486 .IX Item "-mno-cmpb"
22487 .IP "\fB\-mmfpgpr\fR" 4
22488 .IX Item "-mmfpgpr"
22489 .IP "\fB\-mno\-mfpgpr\fR" 4
22490 .IX Item "-mno-mfpgpr"
22491 .IP "\fB\-mhard\-dfp\fR" 4
22492 .IX Item "-mhard-dfp"
22493 .IP "\fB\-mno\-hard\-dfp\fR" 4
22494 .IX Item "-mno-hard-dfp"
22495 .PD
22496 You use these options to specify which instructions are available on the
22497 processor you are using.  The default value of these options is
22498 determined when configuring \s-1GCC.\s0  Specifying the
22499 \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
22500 options.  We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
22501 rather than the options listed above.
22502 .Sp
22503 Specifying \fB\-mpowerpc\-gpopt\fR allows
22504 \&\s-1GCC\s0 to use the optional PowerPC architecture instructions in the
22505 General Purpose group, including floating-point square root.  Specifying
22506 \&\fB\-mpowerpc\-gfxopt\fR allows \s-1GCC\s0 to
22507 use the optional PowerPC architecture instructions in the Graphics
22508 group, including floating-point select.
22509 .Sp
22510 The \fB\-mmfcrf\fR option allows \s-1GCC\s0 to generate the move from
22511 condition register field instruction implemented on the \s-1POWER4\s0
22512 processor and other processors that support the PowerPC V2.01
22513 architecture.
22514 The \fB\-mpopcntb\fR option allows \s-1GCC\s0 to generate the popcount and
22515 double-precision \s-1FP\s0 reciprocal estimate instruction implemented on the
22516 \&\s-1POWER5\s0 processor and other processors that support the PowerPC V2.02
22517 architecture.
22518 The \fB\-mpopcntd\fR option allows \s-1GCC\s0 to generate the popcount
22519 instruction implemented on the \s-1POWER7\s0 processor and other processors
22520 that support the PowerPC V2.06 architecture.
22521 The \fB\-mfprnd\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 round to
22522 integer instructions implemented on the \s-1POWER5+\s0 processor and other
22523 processors that support the PowerPC V2.03 architecture.
22524 The \fB\-mcmpb\fR option allows \s-1GCC\s0 to generate the compare bytes
22525 instruction implemented on the \s-1POWER6\s0 processor and other processors
22526 that support the PowerPC V2.05 architecture.
22527 The \fB\-mmfpgpr\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 move to/from
22528 general-purpose register instructions implemented on the \s-1POWER6X\s0
22529 processor and other processors that support the extended PowerPC V2.05
22530 architecture.
22531 The \fB\-mhard\-dfp\fR option allows \s-1GCC\s0 to generate the decimal
22532 floating-point instructions implemented on some \s-1POWER\s0 processors.
22533 .Sp
22534 The \fB\-mpowerpc64\fR option allows \s-1GCC\s0 to generate the additional
22535 64\-bit instructions that are found in the full PowerPC64 architecture
22536 and to treat GPRs as 64\-bit, doubleword quantities.  \s-1GCC\s0 defaults to
22537 \&\fB\-mno\-powerpc64\fR.
22538 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
22539 .IX Item "-mcpu=cpu_type"
22540 Set architecture type, register usage, and
22541 instruction scheduling parameters for machine type \fIcpu_type\fR.
22542 Supported values for \fIcpu_type\fR are \fB401\fR, \fB403\fR,
22543 \&\fB405\fR, \fB405fp\fR, \fB440\fR, \fB440fp\fR, \fB464\fR, \fB464fp\fR,
22544 \&\fB476\fR, \fB476fp\fR, \fB505\fR, \fB601\fR, \fB602\fR, \fB603\fR,
22545 \&\fB603e\fR, \fB604\fR, \fB604e\fR, \fB620\fR, \fB630\fR, \fB740\fR,
22546 \&\fB7400\fR, \fB7450\fR, \fB750\fR, \fB801\fR, \fB821\fR, \fB823\fR,
22547 \&\fB860\fR, \fB970\fR, \fB8540\fR, \fBa2\fR, \fBe300c2\fR,
22548 \&\fBe300c3\fR, \fBe500mc\fR, \fBe500mc64\fR, \fBe5500\fR,
22549 \&\fBe6500\fR, \fBec603e\fR, \fBG3\fR, \fBG4\fR, \fBG5\fR,
22550 \&\fBtitan\fR, \fBpower3\fR, \fBpower4\fR, \fBpower5\fR, \fBpower5+\fR,
22551 \&\fBpower6\fR, \fBpower6x\fR, \fBpower7\fR, \fBpower8\fR,
22552 \&\fBpower9\fR, \fBpowerpc\fR, \fBpowerpc64\fR, \fBpowerpc64le\fR,
22553 \&\fBrs64\fR, and \fBnative\fR.
22554 .Sp
22555 \&\fB\-mcpu=powerpc\fR, \fB\-mcpu=powerpc64\fR, and
22556 \&\fB\-mcpu=powerpc64le\fR specify pure 32\-bit PowerPC (either
22557 endian), 64\-bit big endian PowerPC and 64\-bit little endian PowerPC
22558 architecture machine types, with an appropriate, generic processor
22559 model assumed for scheduling purposes.
22560 .Sp
22561 Specifying \fBnative\fR as cpu type detects and selects the
22562 architecture option that corresponds to the host processor of the
22563 system performing the compilation.
22564 \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize the
22565 processor.
22566 .Sp
22567 The other options specify a specific processor.  Code generated under
22568 those options runs best on that processor, and may not run at all on
22569 others.
22570 .Sp
22571 The \fB\-mcpu\fR options automatically enable or disable the
22572 following options:
22573 .Sp
22574 \&\fB\-maltivec  \-mfprnd  \-mhard\-float  \-mmfcrf  \-mmultiple 
22575 \&\-mpopcntb \-mpopcntd  \-mpowerpc64 
22576 \&\-mpowerpc\-gpopt  \-mpowerpc\-gfxopt  \-msingle\-float \-mdouble\-float 
22577 \&\-msimple\-fpu  \-mmulhw  \-mdlmzb  \-mmfpgpr \-mvsx 
22578 \&\-mcrypto \-mhtm \-mpower8\-fusion \-mpower8\-vector 
22579 \&\-mquad\-memory \-mquad\-memory\-atomic \-mfloat128 \-mfloat128\-hardware\fR
22580 .Sp
22581 The particular options set for any particular \s-1CPU\s0 varies between
22582 compiler versions, depending on what setting seems to produce optimal
22583 code for that \s-1CPU\s0; it doesn't necessarily reflect the actual hardware's
22584 capabilities.  If you wish to set an individual option to a particular
22585 value, you may specify it after the \fB\-mcpu\fR option, like
22586 \&\fB\-mcpu=970 \-mno\-altivec\fR.
22587 .Sp
22588 On \s-1AIX,\s0 the \fB\-maltivec\fR and \fB\-mpowerpc64\fR options are
22589 not enabled or disabled by the \fB\-mcpu\fR option at present because
22590 \&\s-1AIX\s0 does not have full support for these options.  You may still
22591 enable or disable them individually if you're sure it'll work in your
22592 environment.
22593 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
22594 .IX Item "-mtune=cpu_type"
22595 Set the instruction scheduling parameters for machine type
22596 \&\fIcpu_type\fR, but do not set the architecture type or register usage,
22597 as \fB\-mcpu=\fR\fIcpu_type\fR does.  The same
22598 values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
22599 \&\fB\-mcpu\fR.  If both are specified, the code generated uses the
22600 architecture and registers set by \fB\-mcpu\fR, but the
22601 scheduling parameters set by \fB\-mtune\fR.
22602 .IP "\fB\-mcmodel=small\fR" 4
22603 .IX Item "-mcmodel=small"
22604 Generate PowerPC64 code for the small model: The \s-1TOC\s0 is limited to
22605 64k.
22606 .IP "\fB\-mcmodel=medium\fR" 4
22607 .IX Item "-mcmodel=medium"
22608 Generate PowerPC64 code for the medium model: The \s-1TOC\s0 and other static
22609 data may be up to a total of 4G in size.  This is the default for 64\-bit
22610 Linux.
22611 .IP "\fB\-mcmodel=large\fR" 4
22612 .IX Item "-mcmodel=large"
22613 Generate PowerPC64 code for the large model: The \s-1TOC\s0 may be up to 4G
22614 in size.  Other data and code is only limited by the 64\-bit address
22615 space.
22616 .IP "\fB\-maltivec\fR" 4
22617 .IX Item "-maltivec"
22618 .PD 0
22619 .IP "\fB\-mno\-altivec\fR" 4
22620 .IX Item "-mno-altivec"
22621 .PD
22622 Generate code that uses (does not use) AltiVec instructions, and also
22623 enable the use of built-in functions that allow more direct access to
22624 the AltiVec instruction set.  You may also need to set
22625 \&\fB\-mabi=altivec\fR to adjust the current \s-1ABI\s0 with AltiVec \s-1ABI\s0
22626 enhancements.
22627 .Sp
22628 When \fB\-maltivec\fR is used, rather than \fB\-maltivec=le\fR or
22629 \&\fB\-maltivec=be\fR, the element order for AltiVec intrinsics such
22630 as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and \f(CW\*(C`vec_insert\*(C'\fR 
22631 match array element order corresponding to the endianness of the
22632 target.  That is, element zero identifies the leftmost element in a
22633 vector register when targeting a big-endian platform, and identifies
22634 the rightmost element in a vector register when targeting a
22635 little-endian platform.
22636 .IP "\fB\-maltivec=be\fR" 4
22637 .IX Item "-maltivec=be"
22638 Generate AltiVec instructions using big-endian element order,
22639 regardless of whether the target is big\- or little-endian.  This is
22640 the default when targeting a big-endian platform.  Using this option
22641 is currently deprecated.  Support for this feature will be removed in
22642 \&\s-1GCC 9.\s0
22643 .Sp
22644 The element order is used to interpret element numbers in AltiVec
22645 intrinsics such as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and
22646 \&\f(CW\*(C`vec_insert\*(C'\fR.  By default, these match array element order
22647 corresponding to the endianness for the target.
22648 .IP "\fB\-maltivec=le\fR" 4
22649 .IX Item "-maltivec=le"
22650 Generate AltiVec instructions using little-endian element order,
22651 regardless of whether the target is big\- or little-endian.  This is
22652 the default when targeting a little-endian platform.  This option is
22653 currently ignored when targeting a big-endian platform.
22654 .Sp
22655 The element order is used to interpret element numbers in AltiVec
22656 intrinsics such as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and
22657 \&\f(CW\*(C`vec_insert\*(C'\fR.  By default, these match array element order
22658 corresponding to the endianness for the target.
22659 .IP "\fB\-mvrsave\fR" 4
22660 .IX Item "-mvrsave"
22661 .PD 0
22662 .IP "\fB\-mno\-vrsave\fR" 4
22663 .IX Item "-mno-vrsave"
22664 .PD
22665 Generate \s-1VRSAVE\s0 instructions when generating AltiVec code.
22666 .IP "\fB\-msecure\-plt\fR" 4
22667 .IX Item "-msecure-plt"
22668 Generate code that allows \fBld\fR and \fBld.so\fR
22669 to build executables and shared
22670 libraries with non-executable \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR sections.
22671 This is a PowerPC
22672 32\-bit \s-1SYSV ABI\s0 option.
22673 .IP "\fB\-mbss\-plt\fR" 4
22674 .IX Item "-mbss-plt"
22675 Generate code that uses a \s-1BSS\s0 \f(CW\*(C`.plt\*(C'\fR section that \fBld.so\fR
22676 fills in, and
22677 requires \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR
22678 sections that are both writable and executable.
22679 This is a PowerPC 32\-bit \s-1SYSV ABI\s0 option.
22680 .IP "\fB\-misel\fR" 4
22681 .IX Item "-misel"
22682 .PD 0
22683 .IP "\fB\-mno\-isel\fR" 4
22684 .IX Item "-mno-isel"
22685 .PD
22686 This switch enables or disables the generation of \s-1ISEL\s0 instructions.
22687 .IP "\fB\-misel=\fR\fIyes/no\fR" 4
22688 .IX Item "-misel=yes/no"
22689 This switch has been deprecated.  Use \fB\-misel\fR and
22690 \&\fB\-mno\-isel\fR instead.
22691 .IP "\fB\-mpaired\fR" 4
22692 .IX Item "-mpaired"
22693 .PD 0
22694 .IP "\fB\-mno\-paired\fR" 4
22695 .IX Item "-mno-paired"
22696 .PD
22697 This switch enables or disables the generation of \s-1PAIRED\s0 simd
22698 instructions.
22699 .IP "\fB\-mvsx\fR" 4
22700 .IX Item "-mvsx"
22701 .PD 0
22702 .IP "\fB\-mno\-vsx\fR" 4
22703 .IX Item "-mno-vsx"
22704 .PD
22705 Generate code that uses (does not use) vector/scalar (\s-1VSX\s0)
22706 instructions, and also enable the use of built-in functions that allow
22707 more direct access to the \s-1VSX\s0 instruction set.
22708 .IP "\fB\-mcrypto\fR" 4
22709 .IX Item "-mcrypto"
22710 .PD 0
22711 .IP "\fB\-mno\-crypto\fR" 4
22712 .IX Item "-mno-crypto"
22713 .PD
22714 Enable the use (disable) of the built-in functions that allow direct
22715 access to the cryptographic instructions that were added in version
22716 2.07 of the PowerPC \s-1ISA.\s0
22717 .IP "\fB\-mhtm\fR" 4
22718 .IX Item "-mhtm"
22719 .PD 0
22720 .IP "\fB\-mno\-htm\fR" 4
22721 .IX Item "-mno-htm"
22722 .PD
22723 Enable (disable) the use of the built-in functions that allow direct
22724 access to the Hardware Transactional Memory (\s-1HTM\s0) instructions that
22725 were added in version 2.07 of the PowerPC \s-1ISA.\s0
22726 .IP "\fB\-mpower8\-fusion\fR" 4
22727 .IX Item "-mpower8-fusion"
22728 .PD 0
22729 .IP "\fB\-mno\-power8\-fusion\fR" 4
22730 .IX Item "-mno-power8-fusion"
22731 .PD
22732 Generate code that keeps (does not keeps) some integer operations
22733 adjacent so that the instructions can be fused together on power8 and
22734 later processors.
22735 .IP "\fB\-mpower8\-vector\fR" 4
22736 .IX Item "-mpower8-vector"
22737 .PD 0
22738 .IP "\fB\-mno\-power8\-vector\fR" 4
22739 .IX Item "-mno-power8-vector"
22740 .PD
22741 Generate code that uses (does not use) the vector and scalar
22742 instructions that were added in version 2.07 of the PowerPC \s-1ISA.\s0  Also
22743 enable the use of built-in functions that allow more direct access to
22744 the vector instructions.
22745 .IP "\fB\-mquad\-memory\fR" 4
22746 .IX Item "-mquad-memory"
22747 .PD 0
22748 .IP "\fB\-mno\-quad\-memory\fR" 4
22749 .IX Item "-mno-quad-memory"
22750 .PD
22751 Generate code that uses (does not use) the non-atomic quad word memory
22752 instructions.  The \fB\-mquad\-memory\fR option requires use of
22753 64\-bit mode.
22754 .IP "\fB\-mquad\-memory\-atomic\fR" 4
22755 .IX Item "-mquad-memory-atomic"
22756 .PD 0
22757 .IP "\fB\-mno\-quad\-memory\-atomic\fR" 4
22758 .IX Item "-mno-quad-memory-atomic"
22759 .PD
22760 Generate code that uses (does not use) the atomic quad word memory
22761 instructions.  The \fB\-mquad\-memory\-atomic\fR option requires use of
22762 64\-bit mode.
22763 .IP "\fB\-mfloat128\fR" 4
22764 .IX Item "-mfloat128"
22765 .PD 0
22766 .IP "\fB\-mno\-float128\fR" 4
22767 .IX Item "-mno-float128"
22768 .PD
22769 Enable/disable the \fI_\|_float128\fR keyword for \s-1IEEE\s0 128\-bit floating point
22770 and use either software emulation for \s-1IEEE\s0 128\-bit floating point or
22771 hardware instructions.
22772 .Sp
22773 The \s-1VSX\s0 instruction set (\fB\-mvsx\fR, \fB\-mcpu=power7\fR,
22774 \&\fB\-mcpu=power8\fR), or \fB\-mcpu=power9\fR must be enabled to
22775 use the \s-1IEEE\s0 128\-bit floating point support.  The \s-1IEEE\s0 128\-bit
22776 floating point support only works on PowerPC Linux systems.
22777 .Sp
22778 The default for \fB\-mfloat128\fR is enabled on PowerPC Linux
22779 systems using the \s-1VSX\s0 instruction set, and disabled on other systems.
22780 .Sp
22781 If you use the \s-1ISA 3.0\s0 instruction set (\fB\-mpower9\-vector\fR or
22782 \&\fB\-mcpu=power9\fR) on a 64\-bit system, the \s-1IEEE\s0 128\-bit floating
22783 point support will also enable the generation of \s-1ISA 3.0 IEEE\s0 128\-bit
22784 floating point instructions.  Otherwise, if you do not specify to
22785 generate \s-1ISA 3.0\s0 instructions or you are targeting a 32\-bit big endian
22786 system, \s-1IEEE\s0 128\-bit floating point will be done with software
22787 emulation.
22788 .IP "\fB\-mfloat128\-hardware\fR" 4
22789 .IX Item "-mfloat128-hardware"
22790 .PD 0
22791 .IP "\fB\-mno\-float128\-hardware\fR" 4
22792 .IX Item "-mno-float128-hardware"
22793 .PD
22794 Enable/disable using \s-1ISA 3.0\s0 hardware instructions to support the
22795 \&\fI_\|_float128\fR data type.
22796 .Sp
22797 The default for \fB\-mfloat128\-hardware\fR is enabled on PowerPC
22798 Linux systems using the \s-1ISA 3.0\s0 instruction set, and disabled on other
22799 systems.
22800 .IP "\fB\-m32\fR" 4
22801 .IX Item "-m32"
22802 .PD 0
22803 .IP "\fB\-m64\fR" 4
22804 .IX Item "-m64"
22805 .PD
22806 Generate code for 32\-bit or 64\-bit environments of Darwin and \s-1SVR4\s0
22807 targets (including GNU/Linux).  The 32\-bit environment sets int, long
22808 and pointer to 32 bits and generates code that runs on any PowerPC
22809 variant.  The 64\-bit environment sets int to 32 bits and long and
22810 pointer to 64 bits, and generates code for PowerPC64, as for
22811 \&\fB\-mpowerpc64\fR.
22812 .IP "\fB\-mfull\-toc\fR" 4
22813 .IX Item "-mfull-toc"
22814 .PD 0
22815 .IP "\fB\-mno\-fp\-in\-toc\fR" 4
22816 .IX Item "-mno-fp-in-toc"
22817 .IP "\fB\-mno\-sum\-in\-toc\fR" 4
22818 .IX Item "-mno-sum-in-toc"
22819 .IP "\fB\-mminimal\-toc\fR" 4
22820 .IX Item "-mminimal-toc"
22821 .PD
22822 Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
22823 every executable file.  The \fB\-mfull\-toc\fR option is selected by
22824 default.  In that case, \s-1GCC\s0 allocates at least one \s-1TOC\s0 entry for
22825 each unique non-automatic variable reference in your program.  \s-1GCC\s0
22826 also places floating-point constants in the \s-1TOC.\s0  However, only
22827 16,384 entries are available in the \s-1TOC.\s0
22828 .Sp
22829 If you receive a linker error message that saying you have overflowed
22830 the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
22831 with the \fB\-mno\-fp\-in\-toc\fR and \fB\-mno\-sum\-in\-toc\fR options.
22832 \&\fB\-mno\-fp\-in\-toc\fR prevents \s-1GCC\s0 from putting floating-point
22833 constants in the \s-1TOC\s0 and \fB\-mno\-sum\-in\-toc\fR forces \s-1GCC\s0 to
22834 generate code to calculate the sum of an address and a constant at
22835 run time instead of putting that sum into the \s-1TOC.\s0  You may specify one
22836 or both of these options.  Each causes \s-1GCC\s0 to produce very slightly
22837 slower and larger code at the expense of conserving \s-1TOC\s0 space.
22838 .Sp
22839 If you still run out of space in the \s-1TOC\s0 even when you specify both of
22840 these options, specify \fB\-mminimal\-toc\fR instead.  This option causes
22841 \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file.  When you specify this
22842 option, \s-1GCC\s0 produces code that is slower and larger but which
22843 uses extremely little \s-1TOC\s0 space.  You may wish to use this option
22844 only on files that contain less frequently-executed code.
22845 .IP "\fB\-maix64\fR" 4
22846 .IX Item "-maix64"
22847 .PD 0
22848 .IP "\fB\-maix32\fR" 4
22849 .IX Item "-maix32"
22850 .PD
22851 Enable 64\-bit \s-1AIX ABI\s0 and calling convention: 64\-bit pointers, 64\-bit
22852 \&\f(CW\*(C`long\*(C'\fR type, and the infrastructure needed to support them.
22853 Specifying \fB\-maix64\fR implies \fB\-mpowerpc64\fR,
22854 while \fB\-maix32\fR disables the 64\-bit \s-1ABI\s0 and
22855 implies \fB\-mno\-powerpc64\fR.  \s-1GCC\s0 defaults to \fB\-maix32\fR.
22856 .IP "\fB\-mxl\-compat\fR" 4
22857 .IX Item "-mxl-compat"
22858 .PD 0
22859 .IP "\fB\-mno\-xl\-compat\fR" 4
22860 .IX Item "-mno-xl-compat"
22861 .PD
22862 Produce code that conforms more closely to \s-1IBM XL\s0 compiler semantics
22863 when using AIX-compatible \s-1ABI.\s0  Pass floating-point arguments to
22864 prototyped functions beyond the register save area (\s-1RSA\s0) on the stack
22865 in addition to argument FPRs.  Do not assume that most significant
22866 double in 128\-bit long double value is properly rounded when comparing
22867 values and converting to double.  Use \s-1XL\s0 symbol names for long double
22868 support routines.
22869 .Sp
22870 The \s-1AIX\s0 calling convention was extended but not initially documented to
22871 handle an obscure K&R C case of calling a function that takes the
22872 address of its arguments with fewer arguments than declared.  \s-1IBM XL\s0
22873 compilers access floating-point arguments that do not fit in the
22874 \&\s-1RSA\s0 from the stack when a subroutine is compiled without
22875 optimization.  Because always storing floating-point arguments on the
22876 stack is inefficient and rarely needed, this option is not enabled by
22877 default and only is necessary when calling subroutines compiled by \s-1IBM
22878 XL\s0 compilers without optimization.
22879 .IP "\fB\-mpe\fR" 4
22880 .IX Item "-mpe"
22881 Support \fI\s-1IBM RS/6000 SP\s0\fR \fIParallel Environment\fR (\s-1PE\s0).  Link an
22882 application written to use message passing with special startup code to
22883 enable the application to run.  The system must have \s-1PE\s0 installed in the
22884 standard location (\fI/usr/lpp/ppe.poe/\fR), or the \fIspecs\fR file
22885 must be overridden with the \fB\-specs=\fR option to specify the
22886 appropriate directory location.  The Parallel Environment does not
22887 support threads, so the \fB\-mpe\fR option and the \fB\-pthread\fR
22888 option are incompatible.
22889 .IP "\fB\-malign\-natural\fR" 4
22890 .IX Item "-malign-natural"
22891 .PD 0
22892 .IP "\fB\-malign\-power\fR" 4
22893 .IX Item "-malign-power"
22894 .PD
22895 On \s-1AIX,\s0 32\-bit Darwin, and 64\-bit PowerPC GNU/Linux, the option
22896 \&\fB\-malign\-natural\fR overrides the ABI-defined alignment of larger
22897 types, such as floating-point doubles, on their natural size-based boundary.
22898 The option \fB\-malign\-power\fR instructs \s-1GCC\s0 to follow the ABI-specified
22899 alignment rules.  \s-1GCC\s0 defaults to the standard alignment defined in the \s-1ABI.\s0
22900 .Sp
22901 On 64\-bit Darwin, natural alignment is the default, and \fB\-malign\-power\fR
22902 is not supported.
22903 .IP "\fB\-msoft\-float\fR" 4
22904 .IX Item "-msoft-float"
22905 .PD 0
22906 .IP "\fB\-mhard\-float\fR" 4
22907 .IX Item "-mhard-float"
22908 .PD
22909 Generate code that does not use (uses) the floating-point register set.
22910 Software floating-point emulation is provided if you use the
22911 \&\fB\-msoft\-float\fR option, and pass the option to \s-1GCC\s0 when linking.
22912 .IP "\fB\-msingle\-float\fR" 4
22913 .IX Item "-msingle-float"
22914 .PD 0
22915 .IP "\fB\-mdouble\-float\fR" 4
22916 .IX Item "-mdouble-float"
22917 .PD
22918 Generate code for single\- or double-precision floating-point operations.
22919 \&\fB\-mdouble\-float\fR implies \fB\-msingle\-float\fR.
22920 .IP "\fB\-msimple\-fpu\fR" 4
22921 .IX Item "-msimple-fpu"
22922 Do not generate \f(CW\*(C`sqrt\*(C'\fR and \f(CW\*(C`div\*(C'\fR instructions for hardware
22923 floating-point unit.
22924 .IP "\fB\-mfpu=\fR\fIname\fR" 4
22925 .IX Item "-mfpu=name"
22926 Specify type of floating-point unit.  Valid values for \fIname\fR are
22927 \&\fBsp_lite\fR (equivalent to \fB\-msingle\-float \-msimple\-fpu\fR),
22928 \&\fBdp_lite\fR (equivalent to \fB\-mdouble\-float \-msimple\-fpu\fR),
22929 \&\fBsp_full\fR (equivalent to \fB\-msingle\-float\fR),
22930 and \fBdp_full\fR (equivalent to \fB\-mdouble\-float\fR).
22931 .IP "\fB\-mxilinx\-fpu\fR" 4
22932 .IX Item "-mxilinx-fpu"
22933 Perform optimizations for the floating-point unit on Xilinx \s-1PPC 405/440.\s0
22934 .IP "\fB\-mmultiple\fR" 4
22935 .IX Item "-mmultiple"
22936 .PD 0
22937 .IP "\fB\-mno\-multiple\fR" 4
22938 .IX Item "-mno-multiple"
22939 .PD
22940 Generate code that uses (does not use) the load multiple word
22941 instructions and the store multiple word instructions.  These
22942 instructions are generated by default on \s-1POWER\s0 systems, and not
22943 generated on PowerPC systems.  Do not use \fB\-mmultiple\fR on little-endian
22944 PowerPC systems, since those instructions do not work when the
22945 processor is in little-endian mode.  The exceptions are \s-1PPC740\s0 and
22946 \&\s-1PPC750\s0 which permit these instructions in little-endian mode.
22947 .IP "\fB\-mupdate\fR" 4
22948 .IX Item "-mupdate"
22949 .PD 0
22950 .IP "\fB\-mno\-update\fR" 4
22951 .IX Item "-mno-update"
22952 .PD
22953 Generate code that uses (does not use) the load or store instructions
22954 that update the base register to the address of the calculated memory
22955 location.  These instructions are generated by default.  If you use
22956 \&\fB\-mno\-update\fR, there is a small window between the time that the
22957 stack pointer is updated and the address of the previous frame is
22958 stored, which means code that walks the stack frame across interrupts or
22959 signals may get corrupted data.
22960 .IP "\fB\-mavoid\-indexed\-addresses\fR" 4
22961 .IX Item "-mavoid-indexed-addresses"
22962 .PD 0
22963 .IP "\fB\-mno\-avoid\-indexed\-addresses\fR" 4
22964 .IX Item "-mno-avoid-indexed-addresses"
22965 .PD
22966 Generate code that tries to avoid (not avoid) the use of indexed load
22967 or store instructions. These instructions can incur a performance
22968 penalty on Power6 processors in certain situations, such as when
22969 stepping through large arrays that cross a 16M boundary.  This option
22970 is enabled by default when targeting Power6 and disabled otherwise.
22971 .IP "\fB\-mfused\-madd\fR" 4
22972 .IX Item "-mfused-madd"
22973 .PD 0
22974 .IP "\fB\-mno\-fused\-madd\fR" 4
22975 .IX Item "-mno-fused-madd"
22976 .PD
22977 Generate code that uses (does not use) the floating-point multiply and
22978 accumulate instructions.  These instructions are generated by default
22979 if hardware floating point is used.  The machine-dependent
22980 \&\fB\-mfused\-madd\fR option is now mapped to the machine-independent
22981 \&\fB\-ffp\-contract=fast\fR option, and \fB\-mno\-fused\-madd\fR is
22982 mapped to \fB\-ffp\-contract=off\fR.
22983 .IP "\fB\-mmulhw\fR" 4
22984 .IX Item "-mmulhw"
22985 .PD 0
22986 .IP "\fB\-mno\-mulhw\fR" 4
22987 .IX Item "-mno-mulhw"
22988 .PD
22989 Generate code that uses (does not use) the half-word multiply and
22990 multiply-accumulate instructions on the \s-1IBM 405, 440, 464\s0 and 476 processors.
22991 These instructions are generated by default when targeting those
22992 processors.
22993 .IP "\fB\-mdlmzb\fR" 4
22994 .IX Item "-mdlmzb"
22995 .PD 0
22996 .IP "\fB\-mno\-dlmzb\fR" 4
22997 .IX Item "-mno-dlmzb"
22998 .PD
22999 Generate code that uses (does not use) the string-search \fBdlmzb\fR
23000 instruction on the \s-1IBM 405, 440, 464\s0 and 476 processors.  This instruction is
23001 generated by default when targeting those processors.
23002 .IP "\fB\-mno\-bit\-align\fR" 4
23003 .IX Item "-mno-bit-align"
23004 .PD 0
23005 .IP "\fB\-mbit\-align\fR" 4
23006 .IX Item "-mbit-align"
23007 .PD
23008 On System V.4 and embedded PowerPC systems do not (do) force structures
23009 and unions that contain bit-fields to be aligned to the base type of the
23010 bit-field.
23011 .Sp
23012 For example, by default a structure containing nothing but 8
23013 \&\f(CW\*(C`unsigned\*(C'\fR bit-fields of length 1 is aligned to a 4\-byte
23014 boundary and has a size of 4 bytes.  By using \fB\-mno\-bit\-align\fR,
23015 the structure is aligned to a 1\-byte boundary and is 1 byte in
23016 size.
23017 .IP "\fB\-mno\-strict\-align\fR" 4
23018 .IX Item "-mno-strict-align"
23019 .PD 0
23020 .IP "\fB\-mstrict\-align\fR" 4
23021 .IX Item "-mstrict-align"
23022 .PD
23023 On System V.4 and embedded PowerPC systems do not (do) assume that
23024 unaligned memory references are handled by the system.
23025 .IP "\fB\-mrelocatable\fR" 4
23026 .IX Item "-mrelocatable"
23027 .PD 0
23028 .IP "\fB\-mno\-relocatable\fR" 4
23029 .IX Item "-mno-relocatable"
23030 .PD
23031 Generate code that allows (does not allow) a static executable to be
23032 relocated to a different address at run time.  A simple embedded
23033 PowerPC system loader should relocate the entire contents of
23034 \&\f(CW\*(C`.got2\*(C'\fR and 4\-byte locations listed in the \f(CW\*(C`.fixup\*(C'\fR section,
23035 a table of 32\-bit addresses generated by this option.  For this to
23036 work, all objects linked together must be compiled with
23037 \&\fB\-mrelocatable\fR or \fB\-mrelocatable\-lib\fR.
23038 \&\fB\-mrelocatable\fR code aligns the stack to an 8\-byte boundary.
23039 .IP "\fB\-mrelocatable\-lib\fR" 4
23040 .IX Item "-mrelocatable-lib"
23041 .PD 0
23042 .IP "\fB\-mno\-relocatable\-lib\fR" 4
23043 .IX Item "-mno-relocatable-lib"
23044 .PD
23045 Like \fB\-mrelocatable\fR, \fB\-mrelocatable\-lib\fR generates a
23046 \&\f(CW\*(C`.fixup\*(C'\fR section to allow static executables to be relocated at
23047 run time, but \fB\-mrelocatable\-lib\fR does not use the smaller stack
23048 alignment of \fB\-mrelocatable\fR.  Objects compiled with
23049 \&\fB\-mrelocatable\-lib\fR may be linked with objects compiled with
23050 any combination of the \fB\-mrelocatable\fR options.
23051 .IP "\fB\-mno\-toc\fR" 4
23052 .IX Item "-mno-toc"
23053 .PD 0
23054 .IP "\fB\-mtoc\fR" 4
23055 .IX Item "-mtoc"
23056 .PD
23057 On System V.4 and embedded PowerPC systems do not (do) assume that
23058 register 2 contains a pointer to a global area pointing to the addresses
23059 used in the program.
23060 .IP "\fB\-mlittle\fR" 4
23061 .IX Item "-mlittle"
23062 .PD 0
23063 .IP "\fB\-mlittle\-endian\fR" 4
23064 .IX Item "-mlittle-endian"
23065 .PD
23066 On System V.4 and embedded PowerPC systems compile code for the
23067 processor in little-endian mode.  The \fB\-mlittle\-endian\fR option is
23068 the same as \fB\-mlittle\fR.
23069 .IP "\fB\-mbig\fR" 4
23070 .IX Item "-mbig"
23071 .PD 0
23072 .IP "\fB\-mbig\-endian\fR" 4
23073 .IX Item "-mbig-endian"
23074 .PD
23075 On System V.4 and embedded PowerPC systems compile code for the
23076 processor in big-endian mode.  The \fB\-mbig\-endian\fR option is
23077 the same as \fB\-mbig\fR.
23078 .IP "\fB\-mdynamic\-no\-pic\fR" 4
23079 .IX Item "-mdynamic-no-pic"
23080 On Darwin and Mac \s-1OS X\s0 systems, compile code so that it is not
23081 relocatable, but that its external references are relocatable.  The
23082 resulting code is suitable for applications, but not shared
23083 libraries.
23084 .IP "\fB\-msingle\-pic\-base\fR" 4
23085 .IX Item "-msingle-pic-base"
23086 Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
23087 loading it in the prologue for each function.  The runtime system is
23088 responsible for initializing this register with an appropriate value
23089 before execution begins.
23090 .IP "\fB\-mprioritize\-restricted\-insns=\fR\fIpriority\fR" 4
23091 .IX Item "-mprioritize-restricted-insns=priority"
23092 This option controls the priority that is assigned to
23093 dispatch-slot restricted instructions during the second scheduling
23094 pass.  The argument \fIpriority\fR takes the value \fB0\fR, \fB1\fR,
23095 or \fB2\fR to assign no, highest, or second-highest (respectively) 
23096 priority to dispatch-slot restricted
23097 instructions.
23098 .IP "\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR" 4
23099 .IX Item "-msched-costly-dep=dependence_type"
23100 This option controls which dependences are considered costly
23101 by the target during instruction scheduling.  The argument
23102 \&\fIdependence_type\fR takes one of the following values:
23103 .RS 4
23104 .IP "\fBno\fR" 4
23105 .IX Item "no"
23106 No dependence is costly.
23107 .IP "\fBall\fR" 4
23108 .IX Item "all"
23109 All dependences are costly.
23110 .IP "\fBtrue_store_to_load\fR" 4
23111 .IX Item "true_store_to_load"
23112 A true dependence from store to load is costly.
23113 .IP "\fBstore_to_load\fR" 4
23114 .IX Item "store_to_load"
23115 Any dependence from store to load is costly.
23116 .IP "\fInumber\fR" 4
23117 .IX Item "number"
23118 Any dependence for which the latency is greater than or equal to 
23119 \&\fInumber\fR is costly.
23120 .RE
23121 .RS 4
23122 .RE
23123 .IP "\fB\-minsert\-sched\-nops=\fR\fIscheme\fR" 4
23124 .IX Item "-minsert-sched-nops=scheme"
23125 This option controls which \s-1NOP\s0 insertion scheme is used during
23126 the second scheduling pass.  The argument \fIscheme\fR takes one of the
23127 following values:
23128 .RS 4
23129 .IP "\fBno\fR" 4
23130 .IX Item "no"
23131 Don't insert NOPs.
23132 .IP "\fBpad\fR" 4
23133 .IX Item "pad"
23134 Pad with NOPs any dispatch group that has vacant issue slots,
23135 according to the scheduler's grouping.
23136 .IP "\fBregroup_exact\fR" 4
23137 .IX Item "regroup_exact"
23138 Insert NOPs to force costly dependent insns into
23139 separate groups.  Insert exactly as many NOPs as needed to force an insn
23140 to a new group, according to the estimated processor grouping.
23141 .IP "\fInumber\fR" 4
23142 .IX Item "number"
23143 Insert NOPs to force costly dependent insns into
23144 separate groups.  Insert \fInumber\fR NOPs to force an insn to a new group.
23145 .RE
23146 .RS 4
23147 .RE
23148 .IP "\fB\-mcall\-sysv\fR" 4
23149 .IX Item "-mcall-sysv"
23150 On System V.4 and embedded PowerPC systems compile code using calling
23151 conventions that adhere to the March 1995 draft of the System V
23152 Application Binary Interface, PowerPC processor supplement.  This is the
23153 default unless you configured \s-1GCC\s0 using \fBpowerpc\-*\-eabiaix\fR.
23154 .IP "\fB\-mcall\-sysv\-eabi\fR" 4
23155 .IX Item "-mcall-sysv-eabi"
23156 .PD 0
23157 .IP "\fB\-mcall\-eabi\fR" 4
23158 .IX Item "-mcall-eabi"
23159 .PD
23160 Specify both \fB\-mcall\-sysv\fR and \fB\-meabi\fR options.
23161 .IP "\fB\-mcall\-sysv\-noeabi\fR" 4
23162 .IX Item "-mcall-sysv-noeabi"
23163 Specify both \fB\-mcall\-sysv\fR and \fB\-mno\-eabi\fR options.
23164 .IP "\fB\-mcall\-aixdesc\fR" 4
23165 .IX Item "-mcall-aixdesc"
23166 On System V.4 and embedded PowerPC systems compile code for the \s-1AIX\s0
23167 operating system.
23168 .IP "\fB\-mcall\-linux\fR" 4
23169 .IX Item "-mcall-linux"
23170 On System V.4 and embedded PowerPC systems compile code for the
23171 Linux-based \s-1GNU\s0 system.
23172 .IP "\fB\-mcall\-freebsd\fR" 4
23173 .IX Item "-mcall-freebsd"
23174 On System V.4 and embedded PowerPC systems compile code for the
23175 FreeBSD operating system.
23176 .IP "\fB\-mcall\-netbsd\fR" 4
23177 .IX Item "-mcall-netbsd"
23178 On System V.4 and embedded PowerPC systems compile code for the
23179 NetBSD operating system.
23180 .IP "\fB\-mcall\-openbsd\fR" 4
23181 .IX Item "-mcall-openbsd"
23182 On System V.4 and embedded PowerPC systems compile code for the
23183 OpenBSD operating system.
23184 .IP "\fB\-mtraceback=\fR\fItraceback_type\fR" 4
23185 .IX Item "-mtraceback=traceback_type"
23186 Select the type of traceback table. Valid values for \fItraceback_type\fR
23187 are \fBfull\fR, \fBpart\fR, and \fBno\fR.
23188 .IP "\fB\-maix\-struct\-return\fR" 4
23189 .IX Item "-maix-struct-return"
23190 Return all structures in memory (as specified by the \s-1AIX ABI\s0).
23191 .IP "\fB\-msvr4\-struct\-return\fR" 4
23192 .IX Item "-msvr4-struct-return"
23193 Return structures smaller than 8 bytes in registers (as specified by the
23194 \&\s-1SVR4 ABI\s0).
23195 .IP "\fB\-mabi=\fR\fIabi-type\fR" 4
23196 .IX Item "-mabi=abi-type"
23197 Extend the current \s-1ABI\s0 with a particular extension, or remove such extension.
23198 Valid values are \fBaltivec\fR, \fBno-altivec\fR, \fBspe\fR,
23199 \&\fBno-spe\fR, \fBibmlongdouble\fR, \fBieeelongdouble\fR,
23200 \&\fBelfv1\fR, \fBelfv2\fR.
23201 .IP "\fB\-mabi=ibmlongdouble\fR" 4
23202 .IX Item "-mabi=ibmlongdouble"
23203 Change the current \s-1ABI\s0 to use \s-1IBM\s0 extended-precision long double.
23204 This is not likely to work if your system defaults to using \s-1IEEE\s0
23205 extended-precision long double.  If you change the long double type
23206 from \s-1IEEE\s0 extended-precision, the compiler will issue a warning unless
23207 you use the \fB\-Wno\-psabi\fR option.  Requires \fB\-mlong\-double\-128\fR
23208 to be enabled.
23209 .IP "\fB\-mabi=ieeelongdouble\fR" 4
23210 .IX Item "-mabi=ieeelongdouble"
23211 Change the current \s-1ABI\s0 to use \s-1IEEE\s0 extended-precision long double.
23212 This is not likely to work if your system defaults to using \s-1IBM\s0
23213 extended-precision long double.  If you change the long double type
23214 from \s-1IBM\s0 extended-precision, the compiler will issue a warning unless
23215 you use the \fB\-Wno\-psabi\fR option.  Requires \fB\-mlong\-double\-128\fR
23216 to be enabled.
23217 .IP "\fB\-mabi=elfv1\fR" 4
23218 .IX Item "-mabi=elfv1"
23219 Change the current \s-1ABI\s0 to use the ELFv1 \s-1ABI.\s0
23220 This is the default \s-1ABI\s0 for big-endian PowerPC 64\-bit Linux.
23221 Overriding the default \s-1ABI\s0 requires special system support and is
23222 likely to fail in spectacular ways.
23223 .IP "\fB\-mabi=elfv2\fR" 4
23224 .IX Item "-mabi=elfv2"
23225 Change the current \s-1ABI\s0 to use the ELFv2 \s-1ABI.\s0
23226 This is the default \s-1ABI\s0 for little-endian PowerPC 64\-bit Linux.
23227 Overriding the default \s-1ABI\s0 requires special system support and is
23228 likely to fail in spectacular ways.
23229 .IP "\fB\-mgnu\-attribute\fR" 4
23230 .IX Item "-mgnu-attribute"
23231 .PD 0
23232 .IP "\fB\-mno\-gnu\-attribute\fR" 4
23233 .IX Item "-mno-gnu-attribute"
23234 .PD
23235 Emit .gnu_attribute assembly directives to set tag/value pairs in a
23236 \&.gnu.attributes section that specify \s-1ABI\s0 variations in function
23237 parameters or return values.
23238 .IP "\fB\-mprototype\fR" 4
23239 .IX Item "-mprototype"
23240 .PD 0
23241 .IP "\fB\-mno\-prototype\fR" 4
23242 .IX Item "-mno-prototype"
23243 .PD
23244 On System V.4 and embedded PowerPC systems assume that all calls to
23245 variable argument functions are properly prototyped.  Otherwise, the
23246 compiler must insert an instruction before every non-prototyped call to
23247 set or clear bit 6 of the condition code register (\f(CW\*(C`CR\*(C'\fR) to
23248 indicate whether floating-point values are passed in the floating-point
23249 registers in case the function takes variable arguments.  With
23250 \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
23251 set or clear the bit.
23252 .IP "\fB\-msim\fR" 4
23253 .IX Item "-msim"
23254 On embedded PowerPC systems, assume that the startup module is called
23255 \&\fIsim\-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
23256 \&\fIlibc.a\fR.  This is the default for \fBpowerpc\-*\-eabisim\fR
23257 configurations.
23258 .IP "\fB\-mmvme\fR" 4
23259 .IX Item "-mmvme"
23260 On embedded PowerPC systems, assume that the startup module is called
23261 \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
23262 \&\fIlibc.a\fR.
23263 .IP "\fB\-mads\fR" 4
23264 .IX Item "-mads"
23265 On embedded PowerPC systems, assume that the startup module is called
23266 \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
23267 \&\fIlibc.a\fR.
23268 .IP "\fB\-myellowknife\fR" 4
23269 .IX Item "-myellowknife"
23270 On embedded PowerPC systems, assume that the startup module is called
23271 \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
23272 \&\fIlibc.a\fR.
23273 .IP "\fB\-mvxworks\fR" 4
23274 .IX Item "-mvxworks"
23275 On System V.4 and embedded PowerPC systems, specify that you are
23276 compiling for a VxWorks system.
23277 .IP "\fB\-memb\fR" 4
23278 .IX Item "-memb"
23279 On embedded PowerPC systems, set the \f(CW\*(C`PPC_EMB\*(C'\fR bit in the \s-1ELF\s0 flags
23280 header to indicate that \fBeabi\fR extended relocations are used.
23281 .IP "\fB\-meabi\fR" 4
23282 .IX Item "-meabi"
23283 .PD 0
23284 .IP "\fB\-mno\-eabi\fR" 4
23285 .IX Item "-mno-eabi"
23286 .PD
23287 On System V.4 and embedded PowerPC systems do (do not) adhere to the
23288 Embedded Applications Binary Interface (\s-1EABI\s0), which is a set of
23289 modifications to the System V.4 specifications.  Selecting \fB\-meabi\fR
23290 means that the stack is aligned to an 8\-byte boundary, a function
23291 \&\f(CW\*(C`_\|_eabi\*(C'\fR is called from \f(CW\*(C`main\*(C'\fR to set up the \s-1EABI\s0
23292 environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
23293 \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas.  Selecting
23294 \&\fB\-mno\-eabi\fR means that the stack is aligned to a 16\-byte boundary,
23295 no \s-1EABI\s0 initialization function is called from \f(CW\*(C`main\*(C'\fR, and the
23296 \&\fB\-msdata\fR option only uses \f(CW\*(C`r13\*(C'\fR to point to a single
23297 small data area.  The \fB\-meabi\fR option is on by default if you
23298 configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
23299 .IP "\fB\-msdata=eabi\fR" 4
23300 .IX Item "-msdata=eabi"
23301 On System V.4 and embedded PowerPC systems, put small initialized
23302 \&\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata2\*(C'\fR section, which
23303 is pointed to by register \f(CW\*(C`r2\*(C'\fR.  Put small initialized
23304 non\-\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata\*(C'\fR section,
23305 which is pointed to by register \f(CW\*(C`r13\*(C'\fR.  Put small uninitialized
23306 global and static data in the \f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to
23307 the \f(CW\*(C`.sdata\*(C'\fR section.  The \fB\-msdata=eabi\fR option is
23308 incompatible with the \fB\-mrelocatable\fR option.  The
23309 \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
23310 .IP "\fB\-msdata=sysv\fR" 4
23311 .IX Item "-msdata=sysv"
23312 On System V.4 and embedded PowerPC systems, put small global and static
23313 data in the \f(CW\*(C`.sdata\*(C'\fR section, which is pointed to by register
23314 \&\f(CW\*(C`r13\*(C'\fR.  Put small uninitialized global and static data in the
23315 \&\f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to the \f(CW\*(C`.sdata\*(C'\fR section.
23316 The \fB\-msdata=sysv\fR option is incompatible with the
23317 \&\fB\-mrelocatable\fR option.
23318 .IP "\fB\-msdata=default\fR" 4
23319 .IX Item "-msdata=default"
23320 .PD 0
23321 .IP "\fB\-msdata\fR" 4
23322 .IX Item "-msdata"
23323 .PD
23324 On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
23325 compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
23326 same as \fB\-msdata=sysv\fR.
23327 .IP "\fB\-msdata=data\fR" 4
23328 .IX Item "-msdata=data"
23329 On System V.4 and embedded PowerPC systems, put small global
23330 data in the \f(CW\*(C`.sdata\*(C'\fR section.  Put small uninitialized global
23331 data in the \f(CW\*(C`.sbss\*(C'\fR section.  Do not use register \f(CW\*(C`r13\*(C'\fR
23332 to address small data however.  This is the default behavior unless
23333 other \fB\-msdata\fR options are used.
23334 .IP "\fB\-msdata=none\fR" 4
23335 .IX Item "-msdata=none"
23336 .PD 0
23337 .IP "\fB\-mno\-sdata\fR" 4
23338 .IX Item "-mno-sdata"
23339 .PD
23340 On embedded PowerPC systems, put all initialized global and static data
23341 in the \f(CW\*(C`.data\*(C'\fR section, and all uninitialized data in the
23342 \&\f(CW\*(C`.bss\*(C'\fR section.
23343 .IP "\fB\-mreadonly\-in\-sdata\fR" 4
23344 .IX Item "-mreadonly-in-sdata"
23345 .PD 0
23346 .IP "\fB\-mreadonly\-in\-sdata\fR" 4
23347 .IX Item "-mreadonly-in-sdata"
23348 .PD
23349 Put read-only objects in the \f(CW\*(C`.sdata\*(C'\fR section as well.  This is the
23350 default.
23351 .IP "\fB\-mblock\-move\-inline\-limit=\fR\fInum\fR" 4
23352 .IX Item "-mblock-move-inline-limit=num"
23353 Inline all block moves (such as calls to \f(CW\*(C`memcpy\*(C'\fR or structure
23354 copies) less than or equal to \fInum\fR bytes.  The minimum value for
23355 \&\fInum\fR is 32 bytes on 32\-bit targets and 64 bytes on 64\-bit
23356 targets.  The default value is target-specific.
23357 .IP "\fB\-mblock\-compare\-inline\-limit=\fR\fInum\fR" 4
23358 .IX Item "-mblock-compare-inline-limit=num"
23359 Generate non-looping inline code for all block compares (such as calls
23360 to \f(CW\*(C`memcmp\*(C'\fR or structure compares) less than or equal to \fInum\fR
23361 bytes. If \fInum\fR is 0, all inline expansion (non-loop and loop) of
23362 block compare is disabled. The default value is target-specific.
23363 .IP "\fB\-mblock\-compare\-inline\-loop\-limit=\fR\fInum\fR" 4
23364 .IX Item "-mblock-compare-inline-loop-limit=num"
23365 Generate an inline expansion using loop code for all block compares that
23366 are less than or equal to \fInum\fR bytes, but greater than the limit
23367 for non-loop inline block compare expansion. If the block length is not
23368 constant, at most \fInum\fR bytes will be compared before \f(CW\*(C`memcmp\*(C'\fR
23369 is called to compare the remainder of the block. The default value is
23370 target-specific.
23371 .IP "\fB\-mstring\-compare\-inline\-limit=\fR\fInum\fR" 4
23372 .IX Item "-mstring-compare-inline-limit=num"
23373 Generate at most \fInum\fR pairs of load instructions to compare the
23374 string inline. If the difference or end of string is not found at the
23375 end of the inline compare a call to \f(CW\*(C`strcmp\*(C'\fR or \f(CW\*(C`strncmp\*(C'\fR will
23376 take care of the rest of the comparison. The default is 8 pairs of
23377 loads, which will compare 64 bytes on a 64\-bit target and 32 bytes on a
23378 32\-bit target.
23379 .IP "\fB\-G\fR \fInum\fR" 4
23380 .IX Item "-G num"
23381 On embedded PowerPC systems, put global and static items less than or
23382 equal to \fInum\fR bytes into the small data or \s-1BSS\s0 sections instead of
23383 the normal data or \s-1BSS\s0 section.  By default, \fInum\fR is 8.  The
23384 \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
23385 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
23386 .IP "\fB\-mregnames\fR" 4
23387 .IX Item "-mregnames"
23388 .PD 0
23389 .IP "\fB\-mno\-regnames\fR" 4
23390 .IX Item "-mno-regnames"
23391 .PD
23392 On System V.4 and embedded PowerPC systems do (do not) emit register
23393 names in the assembly language output using symbolic forms.
23394 .IP "\fB\-mlongcall\fR" 4
23395 .IX Item "-mlongcall"
23396 .PD 0
23397 .IP "\fB\-mno\-longcall\fR" 4
23398 .IX Item "-mno-longcall"
23399 .PD
23400 By default assume that all calls are far away so that a longer and more
23401 expensive calling sequence is required.  This is required for calls
23402 farther than 32 megabytes (33,554,432 bytes) from the current location.
23403 A short call is generated if the compiler knows
23404 the call cannot be that far away.  This setting can be overridden by
23405 the \f(CW\*(C`shortcall\*(C'\fR function attribute, or by \f(CW\*(C`#pragma
23406 longcall(0)\*(C'\fR.
23407 .Sp
23408 Some linkers are capable of detecting out-of-range calls and generating
23409 glue code on the fly.  On these systems, long calls are unnecessary and
23410 generate slower code.  As of this writing, the \s-1AIX\s0 linker can do this,
23411 as can the \s-1GNU\s0 linker for PowerPC/64.  It is planned to add this feature
23412 to the \s-1GNU\s0 linker for 32\-bit PowerPC systems as well.
23413 .Sp
23414 On Darwin/PPC systems, \f(CW\*(C`#pragma longcall\*(C'\fR generates \f(CW\*(C`jbsr
23415 callee, L42\*(C'\fR, plus a \fIbranch island\fR (glue code).  The two target
23416 addresses represent the callee and the branch island.  The
23417 Darwin/PPC linker prefers the first address and generates a \f(CW\*(C`bl
23418 callee\*(C'\fR if the \s-1PPC\s0 \f(CW\*(C`bl\*(C'\fR instruction reaches the callee directly;
23419 otherwise, the linker generates \f(CW\*(C`bl L42\*(C'\fR to call the branch
23420 island.  The branch island is appended to the body of the
23421 calling function; it computes the full 32\-bit address of the callee
23422 and jumps to it.
23423 .Sp
23424 On Mach-O (Darwin) systems, this option directs the compiler emit to
23425 the glue for every direct call, and the Darwin linker decides whether
23426 to use or discard it.
23427 .Sp
23428 In the future, \s-1GCC\s0 may ignore all longcall specifications
23429 when the linker is known to generate glue.
23430 .IP "\fB\-mtls\-markers\fR" 4
23431 .IX Item "-mtls-markers"
23432 .PD 0
23433 .IP "\fB\-mno\-tls\-markers\fR" 4
23434 .IX Item "-mno-tls-markers"
23435 .PD
23436 Mark (do not mark) calls to \f(CW\*(C`_\|_tls_get_addr\*(C'\fR with a relocation
23437 specifying the function argument.  The relocation allows the linker to
23438 reliably associate function call with argument setup instructions for
23439 \&\s-1TLS\s0 optimization, which in turn allows \s-1GCC\s0 to better schedule the
23440 sequence.
23441 .IP "\fB\-mrecip\fR" 4
23442 .IX Item "-mrecip"
23443 .PD 0
23444 .IP "\fB\-mno\-recip\fR" 4
23445 .IX Item "-mno-recip"
23446 .PD
23447 This option enables use of the reciprocal estimate and
23448 reciprocal square root estimate instructions with additional
23449 Newton-Raphson steps to increase precision instead of doing a divide or
23450 square root and divide for floating-point arguments.  You should use
23451 the \fB\-ffast\-math\fR option when using \fB\-mrecip\fR (or at
23452 least \fB\-funsafe\-math\-optimizations\fR,
23453 \&\fB\-ffinite\-math\-only\fR, \fB\-freciprocal\-math\fR and
23454 \&\fB\-fno\-trapping\-math\fR).  Note that while the throughput of the
23455 sequence is generally higher than the throughput of the non-reciprocal
23456 instruction, the precision of the sequence can be decreased by up to 2
23457 ulp (i.e. the inverse of 1.0 equals 0.99999994) for reciprocal square
23458 roots.
23459 .IP "\fB\-mrecip=\fR\fIopt\fR" 4
23460 .IX Item "-mrecip=opt"
23461 This option controls which reciprocal estimate instructions
23462 may be used.  \fIopt\fR is a comma-separated list of options, which may
23463 be preceded by a \f(CW\*(C`!\*(C'\fR to invert the option:
23464 .RS 4
23465 .IP "\fBall\fR" 4
23466 .IX Item "all"
23467 Enable all estimate instructions.
23468 .IP "\fBdefault\fR" 4
23469 .IX Item "default"
23470 Enable the default instructions, equivalent to \fB\-mrecip\fR.
23471 .IP "\fBnone\fR" 4
23472 .IX Item "none"
23473 Disable all estimate instructions, equivalent to \fB\-mno\-recip\fR.
23474 .IP "\fBdiv\fR" 4
23475 .IX Item "div"
23476 Enable the reciprocal approximation instructions for both 
23477 single and double precision.
23478 .IP "\fBdivf\fR" 4
23479 .IX Item "divf"
23480 Enable the single-precision reciprocal approximation instructions.
23481 .IP "\fBdivd\fR" 4
23482 .IX Item "divd"
23483 Enable the double-precision reciprocal approximation instructions.
23484 .IP "\fBrsqrt\fR" 4
23485 .IX Item "rsqrt"
23486 Enable the reciprocal square root approximation instructions for both
23487 single and double precision.
23488 .IP "\fBrsqrtf\fR" 4
23489 .IX Item "rsqrtf"
23490 Enable the single-precision reciprocal square root approximation instructions.
23491 .IP "\fBrsqrtd\fR" 4
23492 .IX Item "rsqrtd"
23493 Enable the double-precision reciprocal square root approximation instructions.
23494 .RE
23495 .RS 4
23496 .Sp
23497 So, for example, \fB\-mrecip=all,!rsqrtd\fR enables
23498 all of the reciprocal estimate instructions, except for the
23499 \&\f(CW\*(C`FRSQRTE\*(C'\fR, \f(CW\*(C`XSRSQRTEDP\*(C'\fR, and \f(CW\*(C`XVRSQRTEDP\*(C'\fR instructions
23500 which handle the double-precision reciprocal square root calculations.
23501 .RE
23502 .IP "\fB\-mrecip\-precision\fR" 4
23503 .IX Item "-mrecip-precision"
23504 .PD 0
23505 .IP "\fB\-mno\-recip\-precision\fR" 4
23506 .IX Item "-mno-recip-precision"
23507 .PD
23508 Assume (do not assume) that the reciprocal estimate instructions
23509 provide higher-precision estimates than is mandated by the PowerPC
23510 \&\s-1ABI.\s0  Selecting \fB\-mcpu=power6\fR, \fB\-mcpu=power7\fR or
23511 \&\fB\-mcpu=power8\fR automatically selects \fB\-mrecip\-precision\fR.
23512 The double-precision square root estimate instructions are not generated by
23513 default on low-precision machines, since they do not provide an
23514 estimate that converges after three steps.
23515 .IP "\fB\-mveclibabi=\fR\fItype\fR" 4
23516 .IX Item "-mveclibabi=type"
23517 Specifies the \s-1ABI\s0 type to use for vectorizing intrinsics using an
23518 external library.  The only type supported at present is \fBmass\fR,
23519 which specifies to use \s-1IBM\s0's Mathematical Acceleration Subsystem
23520 (\s-1MASS\s0) libraries for vectorizing intrinsics using external libraries.
23521 \&\s-1GCC\s0 currently emits calls to \f(CW\*(C`acosd2\*(C'\fR, \f(CW\*(C`acosf4\*(C'\fR,
23522 \&\f(CW\*(C`acoshd2\*(C'\fR, \f(CW\*(C`acoshf4\*(C'\fR, \f(CW\*(C`asind2\*(C'\fR, \f(CW\*(C`asinf4\*(C'\fR,
23523 \&\f(CW\*(C`asinhd2\*(C'\fR, \f(CW\*(C`asinhf4\*(C'\fR, \f(CW\*(C`atan2d2\*(C'\fR, \f(CW\*(C`atan2f4\*(C'\fR,
23524 \&\f(CW\*(C`atand2\*(C'\fR, \f(CW\*(C`atanf4\*(C'\fR, \f(CW\*(C`atanhd2\*(C'\fR, \f(CW\*(C`atanhf4\*(C'\fR,
23525 \&\f(CW\*(C`cbrtd2\*(C'\fR, \f(CW\*(C`cbrtf4\*(C'\fR, \f(CW\*(C`cosd2\*(C'\fR, \f(CW\*(C`cosf4\*(C'\fR,
23526 \&\f(CW\*(C`coshd2\*(C'\fR, \f(CW\*(C`coshf4\*(C'\fR, \f(CW\*(C`erfcd2\*(C'\fR, \f(CW\*(C`erfcf4\*(C'\fR,
23527 \&\f(CW\*(C`erfd2\*(C'\fR, \f(CW\*(C`erff4\*(C'\fR, \f(CW\*(C`exp2d2\*(C'\fR, \f(CW\*(C`exp2f4\*(C'\fR,
23528 \&\f(CW\*(C`expd2\*(C'\fR, \f(CW\*(C`expf4\*(C'\fR, \f(CW\*(C`expm1d2\*(C'\fR, \f(CW\*(C`expm1f4\*(C'\fR,
23529 \&\f(CW\*(C`hypotd2\*(C'\fR, \f(CW\*(C`hypotf4\*(C'\fR, \f(CW\*(C`lgammad2\*(C'\fR, \f(CW\*(C`lgammaf4\*(C'\fR,
23530 \&\f(CW\*(C`log10d2\*(C'\fR, \f(CW\*(C`log10f4\*(C'\fR, \f(CW\*(C`log1pd2\*(C'\fR, \f(CW\*(C`log1pf4\*(C'\fR,
23531 \&\f(CW\*(C`log2d2\*(C'\fR, \f(CW\*(C`log2f4\*(C'\fR, \f(CW\*(C`logd2\*(C'\fR, \f(CW\*(C`logf4\*(C'\fR,
23532 \&\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,
23533 \&\f(CW\*(C`sinhf4\*(C'\fR, \f(CW\*(C`sqrtd2\*(C'\fR, \f(CW\*(C`sqrtf4\*(C'\fR, \f(CW\*(C`tand2\*(C'\fR,
23534 \&\f(CW\*(C`tanf4\*(C'\fR, \f(CW\*(C`tanhd2\*(C'\fR, and \f(CW\*(C`tanhf4\*(C'\fR when generating code
23535 for power7.  Both \fB\-ftree\-vectorize\fR and
23536 \&\fB\-funsafe\-math\-optimizations\fR must also be enabled.  The \s-1MASS\s0
23537 libraries must be specified at link time.
23538 .IP "\fB\-mfriz\fR" 4
23539 .IX Item "-mfriz"
23540 .PD 0
23541 .IP "\fB\-mno\-friz\fR" 4
23542 .IX Item "-mno-friz"
23543 .PD
23544 Generate (do not generate) the \f(CW\*(C`friz\*(C'\fR instruction when the
23545 \&\fB\-funsafe\-math\-optimizations\fR option is used to optimize
23546 rounding of floating-point values to 64\-bit integer and back to floating
23547 point.  The \f(CW\*(C`friz\*(C'\fR instruction does not return the same value if
23548 the floating-point number is too large to fit in an integer.
23549 .IP "\fB\-mpointers\-to\-nested\-functions\fR" 4
23550 .IX Item "-mpointers-to-nested-functions"
23551 .PD 0
23552 .IP "\fB\-mno\-pointers\-to\-nested\-functions\fR" 4
23553 .IX Item "-mno-pointers-to-nested-functions"
23554 .PD
23555 Generate (do not generate) code to load up the static chain register
23556 (\f(CW\*(C`r11\*(C'\fR) when calling through a pointer on \s-1AIX\s0 and 64\-bit Linux
23557 systems where a function pointer points to a 3\-word descriptor giving
23558 the function address, \s-1TOC\s0 value to be loaded in register \f(CW\*(C`r2\*(C'\fR, and
23559 static chain value to be loaded in register \f(CW\*(C`r11\*(C'\fR.  The
23560 \&\fB\-mpointers\-to\-nested\-functions\fR is on by default.  You cannot
23561 call through pointers to nested functions or pointers
23562 to functions compiled in other languages that use the static chain if
23563 you use \fB\-mno\-pointers\-to\-nested\-functions\fR.
23564 .IP "\fB\-msave\-toc\-indirect\fR" 4
23565 .IX Item "-msave-toc-indirect"
23566 .PD 0
23567 .IP "\fB\-mno\-save\-toc\-indirect\fR" 4
23568 .IX Item "-mno-save-toc-indirect"
23569 .PD
23570 Generate (do not generate) code to save the \s-1TOC\s0 value in the reserved
23571 stack location in the function prologue if the function calls through
23572 a pointer on \s-1AIX\s0 and 64\-bit Linux systems.  If the \s-1TOC\s0 value is not
23573 saved in the prologue, it is saved just before the call through the
23574 pointer.  The \fB\-mno\-save\-toc\-indirect\fR option is the default.
23575 .IP "\fB\-mcompat\-align\-parm\fR" 4
23576 .IX Item "-mcompat-align-parm"
23577 .PD 0
23578 .IP "\fB\-mno\-compat\-align\-parm\fR" 4
23579 .IX Item "-mno-compat-align-parm"
23580 .PD
23581 Generate (do not generate) code to pass structure parameters with a
23582 maximum alignment of 64 bits, for compatibility with older versions
23583 of \s-1GCC.\s0
23584 .Sp
23585 Older versions of \s-1GCC\s0 (prior to 4.9.0) incorrectly did not align a
23586 structure parameter on a 128\-bit boundary when that structure contained
23587 a member requiring 128\-bit alignment.  This is corrected in more
23588 recent versions of \s-1GCC.\s0  This option may be used to generate code
23589 that is compatible with functions compiled with older versions of
23590 \&\s-1GCC.\s0
23591 .Sp
23592 The \fB\-mno\-compat\-align\-parm\fR option is the default.
23593 .IP "\fB\-mstack\-protector\-guard=\fR\fIguard\fR" 4
23594 .IX Item "-mstack-protector-guard=guard"
23595 .PD 0
23596 .IP "\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR" 4
23597 .IX Item "-mstack-protector-guard-reg=reg"
23598 .IP "\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR" 4
23599 .IX Item "-mstack-protector-guard-offset=offset"
23600 .IP "\fB\-mstack\-protector\-guard\-symbol=\fR\fIsymbol\fR" 4
23601 .IX Item "-mstack-protector-guard-symbol=symbol"
23602 .PD
23603 Generate stack protection code using canary at \fIguard\fR.  Supported
23604 locations are \fBglobal\fR for global canary or \fBtls\fR for per-thread
23605 canary in the \s-1TLS\s0 block (the default with \s-1GNU\s0 libc version 2.4 or later).
23606 .Sp
23607 With the latter choice the options
23608 \&\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR and
23609 \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR furthermore specify
23610 which register to use as base register for reading the canary, and from what
23611 offset from that base register. The default for those is as specified in the
23612 relevant \s-1ABI.\s0  \fB\-mstack\-protector\-guard\-symbol=\fR\fIsymbol\fR overrides
23613 the offset with a symbol reference to a canary in the \s-1TLS\s0 block.
23614 .PP
23615 \fI\s-1RX\s0 Options\fR
23616 .IX Subsection "RX Options"
23617 .PP
23618 These command-line options are defined for \s-1RX\s0 targets:
23619 .IP "\fB\-m64bit\-doubles\fR" 4
23620 .IX Item "-m64bit-doubles"
23621 .PD 0
23622 .IP "\fB\-m32bit\-doubles\fR" 4
23623 .IX Item "-m32bit-doubles"
23624 .PD
23625 Make the \f(CW\*(C`double\*(C'\fR data type be 64 bits (\fB\-m64bit\-doubles\fR)
23626 or 32 bits (\fB\-m32bit\-doubles\fR) in size.  The default is
23627 \&\fB\-m32bit\-doubles\fR.  \fINote\fR \s-1RX\s0 floating-point hardware only
23628 works on 32\-bit values, which is why the default is
23629 \&\fB\-m32bit\-doubles\fR.
23630 .IP "\fB\-fpu\fR" 4
23631 .IX Item "-fpu"
23632 .PD 0
23633 .IP "\fB\-nofpu\fR" 4
23634 .IX Item "-nofpu"
23635 .PD
23636 Enables (\fB\-fpu\fR) or disables (\fB\-nofpu\fR) the use of \s-1RX\s0
23637 floating-point hardware.  The default is enabled for the \s-1RX600\s0
23638 series and disabled for the \s-1RX200\s0 series.
23639 .Sp
23640 Floating-point instructions are only generated for 32\-bit floating-point 
23641 values, however, so the \s-1FPU\s0 hardware is not used for doubles if the
23642 \&\fB\-m64bit\-doubles\fR option is used.
23643 .Sp
23644 \&\fINote\fR If the \fB\-fpu\fR option is enabled then
23645 \&\fB\-funsafe\-math\-optimizations\fR is also enabled automatically.
23646 This is because the \s-1RX FPU\s0 instructions are themselves unsafe.
23647 .IP "\fB\-mcpu=\fR\fIname\fR" 4
23648 .IX Item "-mcpu=name"
23649 Selects the type of \s-1RX CPU\s0 to be targeted.  Currently three types are
23650 supported, the generic \fB\s-1RX600\s0\fR and \fB\s-1RX200\s0\fR series hardware and
23651 the specific \fB\s-1RX610\s0\fR \s-1CPU.\s0  The default is \fB\s-1RX600\s0\fR.
23652 .Sp
23653 The only difference between \fB\s-1RX600\s0\fR and \fB\s-1RX610\s0\fR is that the
23654 \&\fB\s-1RX610\s0\fR does not support the \f(CW\*(C`MVTIPL\*(C'\fR instruction.
23655 .Sp
23656 The \fB\s-1RX200\s0\fR series does not have a hardware floating-point unit
23657 and so \fB\-nofpu\fR is enabled by default when this type is
23658 selected.
23659 .IP "\fB\-mbig\-endian\-data\fR" 4
23660 .IX Item "-mbig-endian-data"
23661 .PD 0
23662 .IP "\fB\-mlittle\-endian\-data\fR" 4
23663 .IX Item "-mlittle-endian-data"
23664 .PD
23665 Store data (but not code) in the big-endian format.  The default is
23666 \&\fB\-mlittle\-endian\-data\fR, i.e. to store data in the little-endian
23667 format.
23668 .IP "\fB\-msmall\-data\-limit=\fR\fIN\fR" 4
23669 .IX Item "-msmall-data-limit=N"
23670 Specifies the maximum size in bytes of global and static variables
23671 which can be placed into the small data area.  Using the small data
23672 area can lead to smaller and faster code, but the size of area is
23673 limited and it is up to the programmer to ensure that the area does
23674 not overflow.  Also when the small data area is used one of the \s-1RX\s0's
23675 registers (usually \f(CW\*(C`r13\*(C'\fR) is reserved for use pointing to this
23676 area, so it is no longer available for use by the compiler.  This
23677 could result in slower and/or larger code if variables are pushed onto
23678 the stack instead of being held in this register.
23679 .Sp
23680 Note, common variables (variables that have not been initialized) and
23681 constants are not placed into the small data area as they are assigned
23682 to other sections in the output executable.
23683 .Sp
23684 The default value is zero, which disables this feature.  Note, this
23685 feature is not enabled by default with higher optimization levels
23686 (\fB\-O2\fR etc) because of the potentially detrimental effects of
23687 reserving a register.  It is up to the programmer to experiment and
23688 discover whether this feature is of benefit to their program.  See the
23689 description of the \fB\-mpid\fR option for a description of how the
23690 actual register to hold the small data area pointer is chosen.
23691 .IP "\fB\-msim\fR" 4
23692 .IX Item "-msim"
23693 .PD 0
23694 .IP "\fB\-mno\-sim\fR" 4
23695 .IX Item "-mno-sim"
23696 .PD
23697 Use the simulator runtime.  The default is to use the libgloss
23698 board-specific runtime.
23699 .IP "\fB\-mas100\-syntax\fR" 4
23700 .IX Item "-mas100-syntax"
23701 .PD 0
23702 .IP "\fB\-mno\-as100\-syntax\fR" 4
23703 .IX Item "-mno-as100-syntax"
23704 .PD
23705 When generating assembler output use a syntax that is compatible with
23706 Renesas's \s-1AS100\s0 assembler.  This syntax can also be handled by the \s-1GAS\s0
23707 assembler, but it has some restrictions so it is not generated by default.
23708 .IP "\fB\-mmax\-constant\-size=\fR\fIN\fR" 4
23709 .IX Item "-mmax-constant-size=N"
23710 Specifies the maximum size, in bytes, of a constant that can be used as
23711 an operand in a \s-1RX\s0 instruction.  Although the \s-1RX\s0 instruction set does
23712 allow constants of up to 4 bytes in length to be used in instructions,
23713 a longer value equates to a longer instruction.  Thus in some
23714 circumstances it can be beneficial to restrict the size of constants
23715 that are used in instructions.  Constants that are too big are instead
23716 placed into a constant pool and referenced via register indirection.
23717 .Sp
23718 The value \fIN\fR can be between 0 and 4.  A value of 0 (the default)
23719 or 4 means that constants of any size are allowed.
23720 .IP "\fB\-mrelax\fR" 4
23721 .IX Item "-mrelax"
23722 Enable linker relaxation.  Linker relaxation is a process whereby the
23723 linker attempts to reduce the size of a program by finding shorter
23724 versions of various instructions.  Disabled by default.
23725 .IP "\fB\-mint\-register=\fR\fIN\fR" 4
23726 .IX Item "-mint-register=N"
23727 Specify the number of registers to reserve for fast interrupt handler
23728 functions.  The value \fIN\fR can be between 0 and 4.  A value of 1
23729 means that register \f(CW\*(C`r13\*(C'\fR is reserved for the exclusive use
23730 of fast interrupt handlers.  A value of 2 reserves \f(CW\*(C`r13\*(C'\fR and
23731 \&\f(CW\*(C`r12\*(C'\fR.  A value of 3 reserves \f(CW\*(C`r13\*(C'\fR, \f(CW\*(C`r12\*(C'\fR and
23732 \&\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.
23733 A value of 0, the default, does not reserve any registers.
23734 .IP "\fB\-msave\-acc\-in\-interrupts\fR" 4
23735 .IX Item "-msave-acc-in-interrupts"
23736 Specifies that interrupt handler functions should preserve the
23737 accumulator register.  This is only necessary if normal code might use
23738 the accumulator register, for example because it performs 64\-bit
23739 multiplications.  The default is to ignore the accumulator as this
23740 makes the interrupt handlers faster.
23741 .IP "\fB\-mpid\fR" 4
23742 .IX Item "-mpid"
23743 .PD 0
23744 .IP "\fB\-mno\-pid\fR" 4
23745 .IX Item "-mno-pid"
23746 .PD
23747 Enables the generation of position independent data.  When enabled any
23748 access to constant data is done via an offset from a base address
23749 held in a register.  This allows the location of constant data to be
23750 determined at run time without requiring the executable to be
23751 relocated, which is a benefit to embedded applications with tight
23752 memory constraints.  Data that can be modified is not affected by this
23753 option.
23754 .Sp
23755 Note, using this feature reserves a register, usually \f(CW\*(C`r13\*(C'\fR, for
23756 the constant data base address.  This can result in slower and/or
23757 larger code, especially in complicated functions.
23758 .Sp
23759 The actual register chosen to hold the constant data base address
23760 depends upon whether the \fB\-msmall\-data\-limit\fR and/or the
23761 \&\fB\-mint\-register\fR command-line options are enabled.  Starting
23762 with register \f(CW\*(C`r13\*(C'\fR and proceeding downwards, registers are
23763 allocated first to satisfy the requirements of \fB\-mint\-register\fR,
23764 then \fB\-mpid\fR and finally \fB\-msmall\-data\-limit\fR.  Thus it
23765 is possible for the small data area register to be \f(CW\*(C`r8\*(C'\fR if both
23766 \&\fB\-mint\-register=4\fR and \fB\-mpid\fR are specified on the
23767 command line.
23768 .Sp
23769 By default this feature is not enabled.  The default can be restored
23770 via the \fB\-mno\-pid\fR command-line option.
23771 .IP "\fB\-mno\-warn\-multiple\-fast\-interrupts\fR" 4
23772 .IX Item "-mno-warn-multiple-fast-interrupts"
23773 .PD 0
23774 .IP "\fB\-mwarn\-multiple\-fast\-interrupts\fR" 4
23775 .IX Item "-mwarn-multiple-fast-interrupts"
23776 .PD
23777 Prevents \s-1GCC\s0 from issuing a warning message if it finds more than one
23778 fast interrupt handler when it is compiling a file.  The default is to
23779 issue a warning for each extra fast interrupt handler found, as the \s-1RX\s0
23780 only supports one such interrupt.
23781 .IP "\fB\-mallow\-string\-insns\fR" 4
23782 .IX Item "-mallow-string-insns"
23783 .PD 0
23784 .IP "\fB\-mno\-allow\-string\-insns\fR" 4
23785 .IX Item "-mno-allow-string-insns"
23786 .PD
23787 Enables or disables the use of the string manipulation instructions
23788 \&\f(CW\*(C`SMOVF\*(C'\fR, \f(CW\*(C`SCMPU\*(C'\fR, \f(CW\*(C`SMOVB\*(C'\fR, \f(CW\*(C`SMOVU\*(C'\fR, \f(CW\*(C`SUNTIL\*(C'\fR
23789 \&\f(CW\*(C`SWHILE\*(C'\fR and also the \f(CW\*(C`RMPA\*(C'\fR instruction.  These
23790 instructions may prefetch data, which is not safe to do if accessing
23791 an I/O register.  (See section 12.2.7 of the \s-1RX62N\s0 Group User's Manual
23792 for more information).
23793 .Sp
23794 The default is to allow these instructions, but it is not possible for
23795 \&\s-1GCC\s0 to reliably detect all circumstances where a string instruction
23796 might be used to access an I/O register, so their use cannot be
23797 disabled automatically.  Instead it is reliant upon the programmer to
23798 use the \fB\-mno\-allow\-string\-insns\fR option if their program
23799 accesses I/O space.
23800 .Sp
23801 When the instructions are enabled \s-1GCC\s0 defines the C preprocessor
23802 symbol \f(CW\*(C`_\|_RX_ALLOW_STRING_INSNS_\|_\*(C'\fR, otherwise it defines the
23803 symbol \f(CW\*(C`_\|_RX_DISALLOW_STRING_INSNS_\|_\*(C'\fR.
23804 .IP "\fB\-mjsr\fR" 4
23805 .IX Item "-mjsr"
23806 .PD 0
23807 .IP "\fB\-mno\-jsr\fR" 4
23808 .IX Item "-mno-jsr"
23809 .PD
23810 Use only (or not only) \f(CW\*(C`JSR\*(C'\fR instructions to access functions.
23811 This option can be used when code size exceeds the range of \f(CW\*(C`BSR\*(C'\fR
23812 instructions.  Note that \fB\-mno\-jsr\fR does not mean to not use
23813 \&\f(CW\*(C`JSR\*(C'\fR but instead means that any type of branch may be used.
23814 .PP
23815 \&\fINote:\fR The generic \s-1GCC\s0 command-line option \fB\-ffixed\-\fR\fIreg\fR
23816 has special significance to the \s-1RX\s0 port when used with the
23817 \&\f(CW\*(C`interrupt\*(C'\fR function attribute.  This attribute indicates a
23818 function intended to process fast interrupts.  \s-1GCC\s0 ensures
23819 that it only uses the registers \f(CW\*(C`r10\*(C'\fR, \f(CW\*(C`r11\*(C'\fR, \f(CW\*(C`r12\*(C'\fR
23820 and/or \f(CW\*(C`r13\*(C'\fR and only provided that the normal use of the
23821 corresponding registers have been restricted via the
23822 \&\fB\-ffixed\-\fR\fIreg\fR or \fB\-mint\-register\fR command-line
23823 options.
23824 .PP
23825 \fIS/390 and zSeries Options\fR
23826 .IX Subsection "S/390 and zSeries Options"
23827 .PP
23828 These are the \fB\-m\fR options defined for the S/390 and zSeries architecture.
23829 .IP "\fB\-mhard\-float\fR" 4
23830 .IX Item "-mhard-float"
23831 .PD 0
23832 .IP "\fB\-msoft\-float\fR" 4
23833 .IX Item "-msoft-float"
23834 .PD
23835 Use (do not use) the hardware floating-point instructions and registers
23836 for floating-point operations.  When \fB\-msoft\-float\fR is specified,
23837 functions in \fIlibgcc.a\fR are used to perform floating-point
23838 operations.  When \fB\-mhard\-float\fR is specified, the compiler
23839 generates \s-1IEEE\s0 floating-point instructions.  This is the default.
23840 .IP "\fB\-mhard\-dfp\fR" 4
23841 .IX Item "-mhard-dfp"
23842 .PD 0
23843 .IP "\fB\-mno\-hard\-dfp\fR" 4
23844 .IX Item "-mno-hard-dfp"
23845 .PD
23846 Use (do not use) the hardware decimal-floating-point instructions for
23847 decimal-floating-point operations.  When \fB\-mno\-hard\-dfp\fR is
23848 specified, functions in \fIlibgcc.a\fR are used to perform
23849 decimal-floating-point operations.  When \fB\-mhard\-dfp\fR is
23850 specified, the compiler generates decimal-floating-point hardware
23851 instructions.  This is the default for \fB\-march=z9\-ec\fR or higher.
23852 .IP "\fB\-mlong\-double\-64\fR" 4
23853 .IX Item "-mlong-double-64"
23854 .PD 0
23855 .IP "\fB\-mlong\-double\-128\fR" 4
23856 .IX Item "-mlong-double-128"
23857 .PD
23858 These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
23859 of 64 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
23860 type. This is the default.
23861 .IP "\fB\-mbackchain\fR" 4
23862 .IX Item "-mbackchain"
23863 .PD 0
23864 .IP "\fB\-mno\-backchain\fR" 4
23865 .IX Item "-mno-backchain"
23866 .PD
23867 Store (do not store) the address of the caller's frame as backchain pointer
23868 into the callee's stack frame.
23869 A backchain may be needed to allow debugging using tools that do not understand
23870 \&\s-1DWARF\s0 call frame information.
23871 When \fB\-mno\-packed\-stack\fR is in effect, the backchain pointer is stored
23872 at the bottom of the stack frame; when \fB\-mpacked\-stack\fR is in effect,
23873 the backchain is placed into the topmost word of the 96/160 byte register
23874 save area.
23875 .Sp
23876 In general, code compiled with \fB\-mbackchain\fR is call-compatible with
23877 code compiled with \fB\-mmo\-backchain\fR; however, use of the backchain
23878 for debugging purposes usually requires that the whole binary is built with
23879 \&\fB\-mbackchain\fR.  Note that the combination of \fB\-mbackchain\fR,
23880 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
23881 to build a linux kernel use \fB\-msoft\-float\fR.
23882 .Sp
23883 The default is to not maintain the backchain.
23884 .IP "\fB\-mpacked\-stack\fR" 4
23885 .IX Item "-mpacked-stack"
23886 .PD 0
23887 .IP "\fB\-mno\-packed\-stack\fR" 4
23888 .IX Item "-mno-packed-stack"
23889 .PD
23890 Use (do not use) the packed stack layout.  When \fB\-mno\-packed\-stack\fR is
23891 specified, the compiler uses the all fields of the 96/160 byte register save
23892 area only for their default purpose; unused fields still take up stack space.
23893 When \fB\-mpacked\-stack\fR is specified, register save slots are densely
23894 packed at the top of the register save area; unused space is reused for other
23895 purposes, allowing for more efficient use of the available stack space.
23896 However, when \fB\-mbackchain\fR is also in effect, the topmost word of
23897 the save area is always used to store the backchain, and the return address
23898 register is always saved two words below the backchain.
23899 .Sp
23900 As long as the stack frame backchain is not used, code generated with
23901 \&\fB\-mpacked\-stack\fR is call-compatible with code generated with
23902 \&\fB\-mno\-packed\-stack\fR.  Note that some non-FSF releases of \s-1GCC 2.95\s0 for
23903 S/390 or zSeries generated code that uses the stack frame backchain at run
23904 time, not just for debugging purposes.  Such code is not call-compatible
23905 with code compiled with \fB\-mpacked\-stack\fR.  Also, note that the
23906 combination of \fB\-mbackchain\fR,
23907 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
23908 to build a linux kernel use \fB\-msoft\-float\fR.
23909 .Sp
23910 The default is to not use the packed stack layout.
23911 .IP "\fB\-msmall\-exec\fR" 4
23912 .IX Item "-msmall-exec"
23913 .PD 0
23914 .IP "\fB\-mno\-small\-exec\fR" 4
23915 .IX Item "-mno-small-exec"
23916 .PD
23917 Generate (or do not generate) code using the \f(CW\*(C`bras\*(C'\fR instruction
23918 to do subroutine calls.
23919 This only works reliably if the total executable size does not
23920 exceed 64k.  The default is to use the \f(CW\*(C`basr\*(C'\fR instruction instead,
23921 which does not have this limitation.
23922 .IP "\fB\-m64\fR" 4
23923 .IX Item "-m64"
23924 .PD 0
23925 .IP "\fB\-m31\fR" 4
23926 .IX Item "-m31"
23927 .PD
23928 When \fB\-m31\fR is specified, generate code compliant to the
23929 GNU/Linux for S/390 \s-1ABI.\s0  When \fB\-m64\fR is specified, generate
23930 code compliant to the GNU/Linux for zSeries \s-1ABI.\s0  This allows \s-1GCC\s0 in
23931 particular to generate 64\-bit instructions.  For the \fBs390\fR
23932 targets, the default is \fB\-m31\fR, while the \fBs390x\fR
23933 targets default to \fB\-m64\fR.
23934 .IP "\fB\-mzarch\fR" 4
23935 .IX Item "-mzarch"
23936 .PD 0
23937 .IP "\fB\-mesa\fR" 4
23938 .IX Item "-mesa"
23939 .PD
23940 When \fB\-mzarch\fR is specified, generate code using the
23941 instructions available on z/Architecture.
23942 When \fB\-mesa\fR is specified, generate code using the
23943 instructions available on \s-1ESA/390.\s0  Note that \fB\-mesa\fR is
23944 not possible with \fB\-m64\fR.
23945 When generating code compliant to the GNU/Linux for S/390 \s-1ABI,\s0
23946 the default is \fB\-mesa\fR.  When generating code compliant
23947 to the GNU/Linux for zSeries \s-1ABI,\s0 the default is \fB\-mzarch\fR.
23948 .IP "\fB\-mhtm\fR" 4
23949 .IX Item "-mhtm"
23950 .PD 0
23951 .IP "\fB\-mno\-htm\fR" 4
23952 .IX Item "-mno-htm"
23953 .PD
23954 The \fB\-mhtm\fR option enables a set of builtins making use of
23955 instructions available with the transactional execution facility
23956 introduced with the \s-1IBM\s0 zEnterprise \s-1EC12\s0 machine generation
23957 \&\fBS/390 System z Built-in Functions\fR.
23958 \&\fB\-mhtm\fR is enabled by default when using \fB\-march=zEC12\fR.
23959 .IP "\fB\-mvx\fR" 4
23960 .IX Item "-mvx"
23961 .PD 0
23962 .IP "\fB\-mno\-vx\fR" 4
23963 .IX Item "-mno-vx"
23964 .PD
23965 When \fB\-mvx\fR is specified, generate code using the instructions
23966 available with the vector extension facility introduced with the \s-1IBM\s0
23967 z13 machine generation.
23968 This option changes the \s-1ABI\s0 for some vector type values with regard to
23969 alignment and calling conventions.  In case vector type values are
23970 being used in an ABI-relevant context a \s-1GAS\s0 \fB.gnu_attribute\fR
23971 command will be added to mark the resulting binary with the \s-1ABI\s0 used.
23972 \&\fB\-mvx\fR is enabled by default when using \fB\-march=z13\fR.
23973 .IP "\fB\-mzvector\fR" 4
23974 .IX Item "-mzvector"
23975 .PD 0
23976 .IP "\fB\-mno\-zvector\fR" 4
23977 .IX Item "-mno-zvector"
23978 .PD
23979 The \fB\-mzvector\fR option enables vector language extensions and
23980 builtins using instructions available with the vector extension
23981 facility introduced with the \s-1IBM\s0 z13 machine generation.
23982 This option adds support for \fBvector\fR to be used as a keyword to
23983 define vector type variables and arguments.  \fBvector\fR is only
23984 available when \s-1GNU\s0 extensions are enabled.  It will not be expanded
23985 when requesting strict standard compliance e.g. with \fB\-std=c99\fR.
23986 In addition to the \s-1GCC\s0 low-level builtins \fB\-mzvector\fR enables
23987 a set of builtins added for compatibility with AltiVec-style
23988 implementations like Power and Cell.  In order to make use of these
23989 builtins the header file \fIvecintrin.h\fR needs to be included.
23990 \&\fB\-mzvector\fR is disabled by default.
23991 .IP "\fB\-mmvcle\fR" 4
23992 .IX Item "-mmvcle"
23993 .PD 0
23994 .IP "\fB\-mno\-mvcle\fR" 4
23995 .IX Item "-mno-mvcle"
23996 .PD
23997 Generate (or do not generate) code using the \f(CW\*(C`mvcle\*(C'\fR instruction
23998 to perform block moves.  When \fB\-mno\-mvcle\fR is specified,
23999 use a \f(CW\*(C`mvc\*(C'\fR loop instead.  This is the default unless optimizing for
24000 size.
24001 .IP "\fB\-mdebug\fR" 4
24002 .IX Item "-mdebug"
24003 .PD 0
24004 .IP "\fB\-mno\-debug\fR" 4
24005 .IX Item "-mno-debug"
24006 .PD
24007 Print (or do not print) additional debug information when compiling.
24008 The default is to not print debug information.
24009 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
24010 .IX Item "-march=cpu-type"
24011 Generate code that runs on \fIcpu-type\fR, which is the name of a
24012 system representing a certain processor type.  Possible values for
24013 \&\fIcpu-type\fR are \fBz900\fR/\fBarch5\fR, \fBz990\fR/\fBarch6\fR,
24014 \&\fBz9\-109\fR, \fBz9\-ec\fR/\fBarch7\fR, \fBz10\fR/\fBarch8\fR,
24015 \&\fBz196\fR/\fBarch9\fR, \fBzEC12\fR, \fBz13\fR/\fBarch11\fR,
24016 \&\fBz14\fR/\fBarch12\fR, and \fBnative\fR.
24017 .Sp
24018 The default is \fB\-march=z900\fR.  \fBg5\fR/\fBarch3\fR and
24019 \&\fBg6\fR are deprecated and will be removed with future releases.
24020 .Sp
24021 Specifying \fBnative\fR as cpu type can be used to select the best
24022 architecture option for the host processor.
24023 \&\fB\-march=native\fR has no effect if \s-1GCC\s0 does not recognize the
24024 processor.
24025 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
24026 .IX Item "-mtune=cpu-type"
24027 Tune to \fIcpu-type\fR everything applicable about the generated code,
24028 except for the \s-1ABI\s0 and the set of available instructions.
24029 The list of \fIcpu-type\fR values is the same as for \fB\-march\fR.
24030 The default is the value used for \fB\-march\fR.
24031 .IP "\fB\-mtpf\-trace\fR" 4
24032 .IX Item "-mtpf-trace"
24033 .PD 0
24034 .IP "\fB\-mno\-tpf\-trace\fR" 4
24035 .IX Item "-mno-tpf-trace"
24036 .PD
24037 Generate code that adds (does not add) in \s-1TPF OS\s0 specific branches to trace
24038 routines in the operating system.  This option is off by default, even
24039 when compiling for the \s-1TPF OS.\s0
24040 .IP "\fB\-mfused\-madd\fR" 4
24041 .IX Item "-mfused-madd"
24042 .PD 0
24043 .IP "\fB\-mno\-fused\-madd\fR" 4
24044 .IX Item "-mno-fused-madd"
24045 .PD
24046 Generate code that uses (does not use) the floating-point multiply and
24047 accumulate instructions.  These instructions are generated by default if
24048 hardware floating point is used.
24049 .IP "\fB\-mwarn\-framesize=\fR\fIframesize\fR" 4
24050 .IX Item "-mwarn-framesize=framesize"
24051 Emit a warning if the current function exceeds the given frame size.  Because
24052 this is a compile-time check it doesn't need to be a real problem when the program
24053 runs.  It is intended to identify functions that most probably cause
24054 a stack overflow.  It is useful to be used in an environment with limited stack
24055 size e.g. the linux kernel.
24056 .IP "\fB\-mwarn\-dynamicstack\fR" 4
24057 .IX Item "-mwarn-dynamicstack"
24058 Emit a warning if the function calls \f(CW\*(C`alloca\*(C'\fR or uses dynamically-sized
24059 arrays.  This is generally a bad idea with a limited stack size.
24060 .IP "\fB\-mstack\-guard=\fR\fIstack-guard\fR" 4
24061 .IX Item "-mstack-guard=stack-guard"
24062 .PD 0
24063 .IP "\fB\-mstack\-size=\fR\fIstack-size\fR" 4
24064 .IX Item "-mstack-size=stack-size"
24065 .PD
24066 If these options are provided the S/390 back end emits additional instructions in
24067 the function prologue that trigger a trap if the stack size is \fIstack-guard\fR
24068 bytes above the \fIstack-size\fR (remember that the stack on S/390 grows downward).
24069 If the \fIstack-guard\fR option is omitted the smallest power of 2 larger than
24070 the frame size of the compiled function is chosen.
24071 These options are intended to be used to help debugging stack overflow problems.
24072 The additionally emitted code causes only little overhead and hence can also be
24073 used in production-like systems without greater performance degradation.  The given
24074 values have to be exact powers of 2 and \fIstack-size\fR has to be greater than
24075 \&\fIstack-guard\fR without exceeding 64k.
24076 In order to be efficient the extra code makes the assumption that the stack starts
24077 at an address aligned to the value given by \fIstack-size\fR.
24078 The \fIstack-guard\fR option can only be used in conjunction with \fIstack-size\fR.
24079 .IP "\fB\-mhotpatch=\fR\fIpre-halfwords\fR\fB,\fR\fIpost-halfwords\fR" 4
24080 .IX Item "-mhotpatch=pre-halfwords,post-halfwords"
24081 If the hotpatch option is enabled, a \*(L"hot-patching\*(R" function
24082 prologue is generated for all functions in the compilation unit.
24083 The function label is prepended with the given number of two-byte
24084 \&\s-1NOP\s0 instructions (\fIpre-halfwords\fR, maximum 1000000).  After
24085 the label, 2 * \fIpost-halfwords\fR bytes are appended, using the
24086 largest \s-1NOP\s0 like instructions the architecture allows (maximum
24087 1000000).
24088 .Sp
24089 If both arguments are zero, hotpatching is disabled.
24090 .Sp
24091 This option can be overridden for individual functions with the
24092 \&\f(CW\*(C`hotpatch\*(C'\fR attribute.
24093 .PP
24094 \fIScore Options\fR
24095 .IX Subsection "Score Options"
24096 .PP
24097 These options are defined for Score implementations:
24098 .IP "\fB\-meb\fR" 4
24099 .IX Item "-meb"
24100 Compile code for big-endian mode.  This is the default.
24101 .IP "\fB\-mel\fR" 4
24102 .IX Item "-mel"
24103 Compile code for little-endian mode.
24104 .IP "\fB\-mnhwloop\fR" 4
24105 .IX Item "-mnhwloop"
24106 Disable generation of \f(CW\*(C`bcnz\*(C'\fR instructions.
24107 .IP "\fB\-muls\fR" 4
24108 .IX Item "-muls"
24109 Enable generation of unaligned load and store instructions.
24110 .IP "\fB\-mmac\fR" 4
24111 .IX Item "-mmac"
24112 Enable the use of multiply-accumulate instructions. Disabled by default.
24113 .IP "\fB\-mscore5\fR" 4
24114 .IX Item "-mscore5"
24115 Specify the \s-1SCORE5\s0 as the target architecture.
24116 .IP "\fB\-mscore5u\fR" 4
24117 .IX Item "-mscore5u"
24118 Specify the \s-1SCORE5U\s0 of the target architecture.
24119 .IP "\fB\-mscore7\fR" 4
24120 .IX Item "-mscore7"
24121 Specify the \s-1SCORE7\s0 as the target architecture. This is the default.
24122 .IP "\fB\-mscore7d\fR" 4
24123 .IX Item "-mscore7d"
24124 Specify the \s-1SCORE7D\s0 as the target architecture.
24125 .PP
24126 \fI\s-1SH\s0 Options\fR
24127 .IX Subsection "SH Options"
24128 .PP
24129 These \fB\-m\fR options are defined for the \s-1SH\s0 implementations:
24130 .IP "\fB\-m1\fR" 4
24131 .IX Item "-m1"
24132 Generate code for the \s-1SH1.\s0
24133 .IP "\fB\-m2\fR" 4
24134 .IX Item "-m2"
24135 Generate code for the \s-1SH2.\s0
24136 .IP "\fB\-m2e\fR" 4
24137 .IX Item "-m2e"
24138 Generate code for the SH2e.
24139 .IP "\fB\-m2a\-nofpu\fR" 4
24140 .IX Item "-m2a-nofpu"
24141 Generate code for the SH2a without \s-1FPU,\s0 or for a SH2a\-FPU in such a way
24142 that the floating-point unit is not used.
24143 .IP "\fB\-m2a\-single\-only\fR" 4
24144 .IX Item "-m2a-single-only"
24145 Generate code for the SH2a\-FPU, in such a way that no double-precision
24146 floating-point operations are used.
24147 .IP "\fB\-m2a\-single\fR" 4
24148 .IX Item "-m2a-single"
24149 Generate code for the SH2a\-FPU assuming the floating-point unit is in
24150 single-precision mode by default.
24151 .IP "\fB\-m2a\fR" 4
24152 .IX Item "-m2a"
24153 Generate code for the SH2a\-FPU assuming the floating-point unit is in
24154 double-precision mode by default.
24155 .IP "\fB\-m3\fR" 4
24156 .IX Item "-m3"
24157 Generate code for the \s-1SH3.\s0
24158 .IP "\fB\-m3e\fR" 4
24159 .IX Item "-m3e"
24160 Generate code for the SH3e.
24161 .IP "\fB\-m4\-nofpu\fR" 4
24162 .IX Item "-m4-nofpu"
24163 Generate code for the \s-1SH4\s0 without a floating-point unit.
24164 .IP "\fB\-m4\-single\-only\fR" 4
24165 .IX Item "-m4-single-only"
24166 Generate code for the \s-1SH4\s0 with a floating-point unit that only
24167 supports single-precision arithmetic.
24168 .IP "\fB\-m4\-single\fR" 4
24169 .IX Item "-m4-single"
24170 Generate code for the \s-1SH4\s0 assuming the floating-point unit is in
24171 single-precision mode by default.
24172 .IP "\fB\-m4\fR" 4
24173 .IX Item "-m4"
24174 Generate code for the \s-1SH4.\s0
24175 .IP "\fB\-m4\-100\fR" 4
24176 .IX Item "-m4-100"
24177 Generate code for \s-1SH4\-100.\s0
24178 .IP "\fB\-m4\-100\-nofpu\fR" 4
24179 .IX Item "-m4-100-nofpu"
24180 Generate code for \s-1SH4\-100\s0 in such a way that the
24181 floating-point unit is not used.
24182 .IP "\fB\-m4\-100\-single\fR" 4
24183 .IX Item "-m4-100-single"
24184 Generate code for \s-1SH4\-100\s0 assuming the floating-point unit is in
24185 single-precision mode by default.
24186 .IP "\fB\-m4\-100\-single\-only\fR" 4
24187 .IX Item "-m4-100-single-only"
24188 Generate code for \s-1SH4\-100\s0 in such a way that no double-precision
24189 floating-point operations are used.
24190 .IP "\fB\-m4\-200\fR" 4
24191 .IX Item "-m4-200"
24192 Generate code for \s-1SH4\-200.\s0
24193 .IP "\fB\-m4\-200\-nofpu\fR" 4
24194 .IX Item "-m4-200-nofpu"
24195 Generate code for \s-1SH4\-200\s0 without in such a way that the
24196 floating-point unit is not used.
24197 .IP "\fB\-m4\-200\-single\fR" 4
24198 .IX Item "-m4-200-single"
24199 Generate code for \s-1SH4\-200\s0 assuming the floating-point unit is in
24200 single-precision mode by default.
24201 .IP "\fB\-m4\-200\-single\-only\fR" 4
24202 .IX Item "-m4-200-single-only"
24203 Generate code for \s-1SH4\-200\s0 in such a way that no double-precision
24204 floating-point operations are used.
24205 .IP "\fB\-m4\-300\fR" 4
24206 .IX Item "-m4-300"
24207 Generate code for \s-1SH4\-300.\s0
24208 .IP "\fB\-m4\-300\-nofpu\fR" 4
24209 .IX Item "-m4-300-nofpu"
24210 Generate code for \s-1SH4\-300\s0 without in such a way that the
24211 floating-point unit is not used.
24212 .IP "\fB\-m4\-300\-single\fR" 4
24213 .IX Item "-m4-300-single"
24214 Generate code for \s-1SH4\-300\s0 in such a way that no double-precision
24215 floating-point operations are used.
24216 .IP "\fB\-m4\-300\-single\-only\fR" 4
24217 .IX Item "-m4-300-single-only"
24218 Generate code for \s-1SH4\-300\s0 in such a way that no double-precision
24219 floating-point operations are used.
24220 .IP "\fB\-m4\-340\fR" 4
24221 .IX Item "-m4-340"
24222 Generate code for \s-1SH4\-340\s0 (no \s-1MMU,\s0 no \s-1FPU\s0).
24223 .IP "\fB\-m4\-500\fR" 4
24224 .IX Item "-m4-500"
24225 Generate code for \s-1SH4\-500\s0 (no \s-1FPU\s0).  Passes \fB\-isa=sh4\-nofpu\fR to the
24226 assembler.
24227 .IP "\fB\-m4a\-nofpu\fR" 4
24228 .IX Item "-m4a-nofpu"
24229 Generate code for the SH4al\-dsp, or for a SH4a in such a way that the
24230 floating-point unit is not used.
24231 .IP "\fB\-m4a\-single\-only\fR" 4
24232 .IX Item "-m4a-single-only"
24233 Generate code for the SH4a, in such a way that no double-precision
24234 floating-point operations are used.
24235 .IP "\fB\-m4a\-single\fR" 4
24236 .IX Item "-m4a-single"
24237 Generate code for the SH4a assuming the floating-point unit is in
24238 single-precision mode by default.
24239 .IP "\fB\-m4a\fR" 4
24240 .IX Item "-m4a"
24241 Generate code for the SH4a.
24242 .IP "\fB\-m4al\fR" 4
24243 .IX Item "-m4al"
24244 Same as \fB\-m4a\-nofpu\fR, except that it implicitly passes
24245 \&\fB\-dsp\fR to the assembler.  \s-1GCC\s0 doesn't generate any \s-1DSP\s0
24246 instructions at the moment.
24247 .IP "\fB\-mb\fR" 4
24248 .IX Item "-mb"
24249 Compile code for the processor in big-endian mode.
24250 .IP "\fB\-ml\fR" 4
24251 .IX Item "-ml"
24252 Compile code for the processor in little-endian mode.
24253 .IP "\fB\-mdalign\fR" 4
24254 .IX Item "-mdalign"
24255 Align doubles at 64\-bit boundaries.  Note that this changes the calling
24256 conventions, and thus some functions from the standard C library do
24257 not work unless you recompile it first with \fB\-mdalign\fR.
24258 .IP "\fB\-mrelax\fR" 4
24259 .IX Item "-mrelax"
24260 Shorten some address references at link time, when possible; uses the
24261 linker option \fB\-relax\fR.
24262 .IP "\fB\-mbigtable\fR" 4
24263 .IX Item "-mbigtable"
24264 Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables.  The default is to use
24265 16\-bit offsets.
24266 .IP "\fB\-mbitops\fR" 4
24267 .IX Item "-mbitops"
24268 Enable the use of bit manipulation instructions on \s-1SH2A.\s0
24269 .IP "\fB\-mfmovd\fR" 4
24270 .IX Item "-mfmovd"
24271 Enable the use of the instruction \f(CW\*(C`fmovd\*(C'\fR.  Check \fB\-mdalign\fR for
24272 alignment constraints.
24273 .IP "\fB\-mrenesas\fR" 4
24274 .IX Item "-mrenesas"
24275 Comply with the calling conventions defined by Renesas.
24276 .IP "\fB\-mno\-renesas\fR" 4
24277 .IX Item "-mno-renesas"
24278 Comply with the calling conventions defined for \s-1GCC\s0 before the Renesas
24279 conventions were available.  This option is the default for all
24280 targets of the \s-1SH\s0 toolchain.
24281 .IP "\fB\-mnomacsave\fR" 4
24282 .IX Item "-mnomacsave"
24283 Mark the \f(CW\*(C`MAC\*(C'\fR register as call-clobbered, even if
24284 \&\fB\-mrenesas\fR is given.
24285 .IP "\fB\-mieee\fR" 4
24286 .IX Item "-mieee"
24287 .PD 0
24288 .IP "\fB\-mno\-ieee\fR" 4
24289 .IX Item "-mno-ieee"
24290 .PD
24291 Control the \s-1IEEE\s0 compliance of floating-point comparisons, which affects the
24292 handling of cases where the result of a comparison is unordered.  By default
24293 \&\fB\-mieee\fR is implicitly enabled.  If \fB\-ffinite\-math\-only\fR is
24294 enabled \fB\-mno\-ieee\fR is implicitly set, which results in faster
24295 floating-point greater-equal and less-equal comparisons.  The implicit settings
24296 can be overridden by specifying either \fB\-mieee\fR or \fB\-mno\-ieee\fR.
24297 .IP "\fB\-minline\-ic_invalidate\fR" 4
24298 .IX Item "-minline-ic_invalidate"
24299 Inline code to invalidate instruction cache entries after setting up
24300 nested function trampolines.
24301 This option has no effect if \fB\-musermode\fR is in effect and the selected
24302 code generation option (e.g. \fB\-m4\fR) does not allow the use of the \f(CW\*(C`icbi\*(C'\fR
24303 instruction.
24304 If the selected code generation option does not allow the use of the \f(CW\*(C`icbi\*(C'\fR
24305 instruction, and \fB\-musermode\fR is not in effect, the inlined code
24306 manipulates the instruction cache address array directly with an associative
24307 write.  This not only requires privileged mode at run time, but it also
24308 fails if the cache line had been mapped via the \s-1TLB\s0 and has become unmapped.
24309 .IP "\fB\-misize\fR" 4
24310 .IX Item "-misize"
24311 Dump instruction size and location in the assembly code.
24312 .IP "\fB\-mpadstruct\fR" 4
24313 .IX Item "-mpadstruct"
24314 This option is deprecated.  It pads structures to multiple of 4 bytes,
24315 which is incompatible with the \s-1SH ABI.\s0
24316 .IP "\fB\-matomic\-model=\fR\fImodel\fR" 4
24317 .IX Item "-matomic-model=model"
24318 Sets the model of atomic operations and additional parameters as a comma
24319 separated list.  For details on the atomic built-in functions see
24320 \&\fB_\|_atomic Builtins\fR.  The following models and parameters are supported:
24321 .RS 4
24322 .IP "\fBnone\fR" 4
24323 .IX Item "none"
24324 Disable compiler generated atomic sequences and emit library calls for atomic
24325 operations.  This is the default if the target is not \f(CW\*(C`sh*\-*\-linux*\*(C'\fR.
24326 .IP "\fBsoft-gusa\fR" 4
24327 .IX Item "soft-gusa"
24328 Generate GNU/Linux compatible gUSA software atomic sequences for the atomic
24329 built-in functions.  The generated atomic sequences require additional support
24330 from the interrupt/exception handling code of the system and are only suitable
24331 for SH3* and SH4* single-core systems.  This option is enabled by default when
24332 the target is \f(CW\*(C`sh*\-*\-linux*\*(C'\fR and SH3* or SH4*.  When the target is \s-1SH4A,\s0
24333 this option also partially utilizes the hardware atomic instructions
24334 \&\f(CW\*(C`movli.l\*(C'\fR and \f(CW\*(C`movco.l\*(C'\fR to create more efficient code, unless
24335 \&\fBstrict\fR is specified.
24336 .IP "\fBsoft-tcb\fR" 4
24337 .IX Item "soft-tcb"
24338 Generate software atomic sequences that use a variable in the thread control
24339 block.  This is a variation of the gUSA sequences which can also be used on
24340 SH1* and SH2* targets.  The generated atomic sequences require additional
24341 support from the interrupt/exception handling code of the system and are only
24342 suitable for single-core systems.  When using this model, the \fBgbr\-offset=\fR
24343 parameter has to be specified as well.
24344 .IP "\fBsoft-imask\fR" 4
24345 .IX Item "soft-imask"
24346 Generate software atomic sequences that temporarily disable interrupts by
24347 setting \f(CW\*(C`SR.IMASK = 1111\*(C'\fR.  This model works only when the program runs
24348 in privileged mode and is only suitable for single-core systems.  Additional
24349 support from the interrupt/exception handling code of the system is not
24350 required.  This model is enabled by default when the target is
24351 \&\f(CW\*(C`sh*\-*\-linux*\*(C'\fR and SH1* or SH2*.
24352 .IP "\fBhard-llcs\fR" 4
24353 .IX Item "hard-llcs"
24354 Generate hardware atomic sequences using the \f(CW\*(C`movli.l\*(C'\fR and \f(CW\*(C`movco.l\*(C'\fR
24355 instructions only.  This is only available on \s-1SH4A\s0 and is suitable for
24356 multi-core systems.  Since the hardware instructions support only 32 bit atomic
24357 variables access to 8 or 16 bit variables is emulated with 32 bit accesses.
24358 Code compiled with this option is also compatible with other software
24359 atomic model interrupt/exception handling systems if executed on an \s-1SH4A\s0
24360 system.  Additional support from the interrupt/exception handling code of the
24361 system is not required for this model.
24362 .IP "\fBgbr\-offset=\fR" 4
24363 .IX Item "gbr-offset="
24364 This parameter specifies the offset in bytes of the variable in the thread
24365 control block structure that should be used by the generated atomic sequences
24366 when the \fBsoft-tcb\fR model has been selected.  For other models this
24367 parameter is ignored.  The specified value must be an integer multiple of four
24368 and in the range 0\-1020.
24369 .IP "\fBstrict\fR" 4
24370 .IX Item "strict"
24371 This parameter prevents mixed usage of multiple atomic models, even if they
24372 are compatible, and makes the compiler generate atomic sequences of the
24373 specified model only.
24374 .RE
24375 .RS 4
24376 .RE
24377 .IP "\fB\-mtas\fR" 4
24378 .IX Item "-mtas"
24379 Generate the \f(CW\*(C`tas.b\*(C'\fR opcode for \f(CW\*(C`_\|_atomic_test_and_set\*(C'\fR.
24380 Notice that depending on the particular hardware and software configuration
24381 this can degrade overall performance due to the operand cache line flushes
24382 that are implied by the \f(CW\*(C`tas.b\*(C'\fR instruction.  On multi-core \s-1SH4A\s0
24383 processors the \f(CW\*(C`tas.b\*(C'\fR instruction must be used with caution since it
24384 can result in data corruption for certain cache configurations.
24385 .IP "\fB\-mprefergot\fR" 4
24386 .IX Item "-mprefergot"
24387 When generating position-independent code, emit function calls using
24388 the Global Offset Table instead of the Procedure Linkage Table.
24389 .IP "\fB\-musermode\fR" 4
24390 .IX Item "-musermode"
24391 .PD 0
24392 .IP "\fB\-mno\-usermode\fR" 4
24393 .IX Item "-mno-usermode"
24394 .PD
24395 Don't allow (allow) the compiler generating privileged mode code.  Specifying
24396 \&\fB\-musermode\fR also implies \fB\-mno\-inline\-ic_invalidate\fR if the
24397 inlined code would not work in user mode.  \fB\-musermode\fR is the default
24398 when the target is \f(CW\*(C`sh*\-*\-linux*\*(C'\fR.  If the target is SH1* or SH2*
24399 \&\fB\-musermode\fR has no effect, since there is no user mode.
24400 .IP "\fB\-multcost=\fR\fInumber\fR" 4
24401 .IX Item "-multcost=number"
24402 Set the cost to assume for a multiply insn.
24403 .IP "\fB\-mdiv=\fR\fIstrategy\fR" 4
24404 .IX Item "-mdiv=strategy"
24405 Set the division strategy to be used for integer division operations.
24406 \&\fIstrategy\fR can be one of:
24407 .RS 4
24408 .IP "\fBcall\-div1\fR" 4
24409 .IX Item "call-div1"
24410 Calls a library function that uses the single-step division instruction
24411 \&\f(CW\*(C`div1\*(C'\fR to perform the operation.  Division by zero calculates an
24412 unspecified result and does not trap.  This is the default except for \s-1SH4,
24413 SH2A\s0 and SHcompact.
24414 .IP "\fBcall-fp\fR" 4
24415 .IX Item "call-fp"
24416 Calls a library function that performs the operation in double precision
24417 floating point.  Division by zero causes a floating-point exception.  This is
24418 the default for SHcompact with \s-1FPU.\s0  Specifying this for targets that do not
24419 have a double precision \s-1FPU\s0 defaults to \f(CW\*(C`call\-div1\*(C'\fR.
24420 .IP "\fBcall-table\fR" 4
24421 .IX Item "call-table"
24422 Calls a library function that uses a lookup table for small divisors and
24423 the \f(CW\*(C`div1\*(C'\fR instruction with case distinction for larger divisors.  Division
24424 by zero calculates an unspecified result and does not trap.  This is the default
24425 for \s-1SH4.\s0  Specifying this for targets that do not have dynamic shift
24426 instructions defaults to \f(CW\*(C`call\-div1\*(C'\fR.
24427 .RE
24428 .RS 4
24429 .Sp
24430 When a division strategy has not been specified the default strategy is
24431 selected based on the current target.  For \s-1SH2A\s0 the default strategy is to
24432 use the \f(CW\*(C`divs\*(C'\fR and \f(CW\*(C`divu\*(C'\fR instructions instead of library function
24433 calls.
24434 .RE
24435 .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
24436 .IX Item "-maccumulate-outgoing-args"
24437 Reserve space once for outgoing arguments in the function prologue rather
24438 than around each call.  Generally beneficial for performance and size.  Also
24439 needed for unwinding to avoid changing the stack frame around conditional code.
24440 .IP "\fB\-mdivsi3_libfunc=\fR\fIname\fR" 4
24441 .IX Item "-mdivsi3_libfunc=name"
24442 Set the name of the library function used for 32\-bit signed division to
24443 \&\fIname\fR.
24444 This only affects the name used in the \fBcall\fR division strategies, and
24445 the compiler still expects the same sets of input/output/clobbered registers as
24446 if this option were not present.
24447 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
24448 .IX Item "-mfixed-range=register-range"
24449 Generate code treating the given register range as fixed registers.
24450 A fixed register is one that the register allocator can not use.  This is
24451 useful when compiling kernel code.  A register range is specified as
24452 two registers separated by a dash.  Multiple register ranges can be
24453 specified separated by a comma.
24454 .IP "\fB\-mbranch\-cost=\fR\fInum\fR" 4
24455 .IX Item "-mbranch-cost=num"
24456 Assume \fInum\fR to be the cost for a branch instruction.  Higher numbers
24457 make the compiler try to generate more branch-free code if possible.  
24458 If not specified the value is selected depending on the processor type that
24459 is being compiled for.
24460 .IP "\fB\-mzdcbranch\fR" 4
24461 .IX Item "-mzdcbranch"
24462 .PD 0
24463 .IP "\fB\-mno\-zdcbranch\fR" 4
24464 .IX Item "-mno-zdcbranch"
24465 .PD
24466 Assume (do not assume) that zero displacement conditional branch instructions
24467 \&\f(CW\*(C`bt\*(C'\fR and \f(CW\*(C`bf\*(C'\fR are fast.  If \fB\-mzdcbranch\fR is specified, the
24468 compiler prefers zero displacement branch code sequences.  This is
24469 enabled by default when generating code for \s-1SH4\s0 and \s-1SH4A.\s0  It can be explicitly
24470 disabled by specifying \fB\-mno\-zdcbranch\fR.
24471 .IP "\fB\-mcbranch\-force\-delay\-slot\fR" 4
24472 .IX Item "-mcbranch-force-delay-slot"
24473 Force the usage of delay slots for conditional branches, which stuffs the delay
24474 slot with a \f(CW\*(C`nop\*(C'\fR if a suitable instruction cannot be found.  By default
24475 this option is disabled.  It can be enabled to work around hardware bugs as
24476 found in the original \s-1SH7055.\s0
24477 .IP "\fB\-mfused\-madd\fR" 4
24478 .IX Item "-mfused-madd"
24479 .PD 0
24480 .IP "\fB\-mno\-fused\-madd\fR" 4
24481 .IX Item "-mno-fused-madd"
24482 .PD
24483 Generate code that uses (does not use) the floating-point multiply and
24484 accumulate instructions.  These instructions are generated by default
24485 if hardware floating point is used.  The machine-dependent
24486 \&\fB\-mfused\-madd\fR option is now mapped to the machine-independent
24487 \&\fB\-ffp\-contract=fast\fR option, and \fB\-mno\-fused\-madd\fR is
24488 mapped to \fB\-ffp\-contract=off\fR.
24489 .IP "\fB\-mfsca\fR" 4
24490 .IX Item "-mfsca"
24491 .PD 0
24492 .IP "\fB\-mno\-fsca\fR" 4
24493 .IX Item "-mno-fsca"
24494 .PD
24495 Allow or disallow the compiler to emit the \f(CW\*(C`fsca\*(C'\fR instruction for sine
24496 and cosine approximations.  The option \fB\-mfsca\fR must be used in
24497 combination with \fB\-funsafe\-math\-optimizations\fR.  It is enabled by default
24498 when generating code for \s-1SH4A.\s0  Using \fB\-mno\-fsca\fR disables sine and cosine
24499 approximations even if \fB\-funsafe\-math\-optimizations\fR is in effect.
24500 .IP "\fB\-mfsrra\fR" 4
24501 .IX Item "-mfsrra"
24502 .PD 0
24503 .IP "\fB\-mno\-fsrra\fR" 4
24504 .IX Item "-mno-fsrra"
24505 .PD
24506 Allow or disallow the compiler to emit the \f(CW\*(C`fsrra\*(C'\fR instruction for
24507 reciprocal square root approximations.  The option \fB\-mfsrra\fR must be used
24508 in combination with \fB\-funsafe\-math\-optimizations\fR and
24509 \&\fB\-ffinite\-math\-only\fR.  It is enabled by default when generating code for
24510 \&\s-1SH4A.\s0  Using \fB\-mno\-fsrra\fR disables reciprocal square root approximations
24511 even if \fB\-funsafe\-math\-optimizations\fR and \fB\-ffinite\-math\-only\fR are
24512 in effect.
24513 .IP "\fB\-mpretend\-cmove\fR" 4
24514 .IX Item "-mpretend-cmove"
24515 Prefer zero-displacement conditional branches for conditional move instruction
24516 patterns.  This can result in faster code on the \s-1SH4\s0 processor.
24517 .IP "\fB\-mfdpic\fR" 4
24518 .IX Item "-mfdpic"
24519 Generate code using the \s-1FDPIC ABI.\s0
24520 .PP
24521 \fISolaris 2 Options\fR
24522 .IX Subsection "Solaris 2 Options"
24523 .PP
24524 These \fB\-m\fR options are supported on Solaris 2:
24525 .IP "\fB\-mclear\-hwcap\fR" 4
24526 .IX Item "-mclear-hwcap"
24527 \&\fB\-mclear\-hwcap\fR tells the compiler to remove the hardware
24528 capabilities generated by the Solaris assembler.  This is only necessary
24529 when object files use \s-1ISA\s0 extensions not supported by the current
24530 machine, but check at runtime whether or not to use them.
24531 .IP "\fB\-mimpure\-text\fR" 4
24532 .IX Item "-mimpure-text"
24533 \&\fB\-mimpure\-text\fR, used in addition to \fB\-shared\fR, tells
24534 the compiler to not pass \fB\-z text\fR to the linker when linking a
24535 shared object.  Using this option, you can link position-dependent
24536 code into a shared object.
24537 .Sp
24538 \&\fB\-mimpure\-text\fR suppresses the \*(L"relocations remain against
24539 allocatable but non-writable sections\*(R" linker error message.
24540 However, the necessary relocations trigger copy-on-write, and the
24541 shared object is not actually shared across processes.  Instead of
24542 using \fB\-mimpure\-text\fR, you should compile all source code with
24543 \&\fB\-fpic\fR or \fB\-fPIC\fR.
24544 .PP
24545 These switches are supported in addition to the above on Solaris 2:
24546 .IP "\fB\-pthreads\fR" 4
24547 .IX Item "-pthreads"
24548 This is a synonym for \fB\-pthread\fR.
24549 .PP
24550 \fI\s-1SPARC\s0 Options\fR
24551 .IX Subsection "SPARC Options"
24552 .PP
24553 These \fB\-m\fR options are supported on the \s-1SPARC:\s0
24554 .IP "\fB\-mno\-app\-regs\fR" 4
24555 .IX Item "-mno-app-regs"
24556 .PD 0
24557 .IP "\fB\-mapp\-regs\fR" 4
24558 .IX Item "-mapp-regs"
24559 .PD
24560 Specify \fB\-mapp\-regs\fR to generate output using the global registers
24561 2 through 4, which the \s-1SPARC SVR4 ABI\s0 reserves for applications.  Like the
24562 global register 1, each global register 2 through 4 is then treated as an
24563 allocable register that is clobbered by function calls.  This is the default.
24564 .Sp
24565 To be fully \s-1SVR4\s0 ABI-compliant at the cost of some performance loss,
24566 specify \fB\-mno\-app\-regs\fR.  You should compile libraries and system
24567 software with this option.
24568 .IP "\fB\-mflat\fR" 4
24569 .IX Item "-mflat"
24570 .PD 0
24571 .IP "\fB\-mno\-flat\fR" 4
24572 .IX Item "-mno-flat"
24573 .PD
24574 With \fB\-mflat\fR, the compiler does not generate save/restore instructions
24575 and uses a \*(L"flat\*(R" or single register window model.  This model is compatible
24576 with the regular register window model.  The local registers and the input
24577 registers (0\-\-5) are still treated as \*(L"call-saved\*(R" registers and are
24578 saved on the stack as needed.
24579 .Sp
24580 With \fB\-mno\-flat\fR (the default), the compiler generates save/restore
24581 instructions (except for leaf functions).  This is the normal operating mode.
24582 .IP "\fB\-mfpu\fR" 4
24583 .IX Item "-mfpu"
24584 .PD 0
24585 .IP "\fB\-mhard\-float\fR" 4
24586 .IX Item "-mhard-float"
24587 .PD
24588 Generate output containing floating-point instructions.  This is the
24589 default.
24590 .IP "\fB\-mno\-fpu\fR" 4
24591 .IX Item "-mno-fpu"
24592 .PD 0
24593 .IP "\fB\-msoft\-float\fR" 4
24594 .IX Item "-msoft-float"
24595 .PD
24596 Generate output containing library calls for floating point.
24597 \&\fBWarning:\fR the requisite libraries are not available for all \s-1SPARC\s0
24598 targets.  Normally the facilities of the machine's usual C compiler are
24599 used, but this cannot be done directly in cross-compilation.  You must make
24600 your own arrangements to provide suitable library functions for
24601 cross-compilation.  The embedded targets \fBsparc\-*\-aout\fR and
24602 \&\fBsparclite\-*\-*\fR do provide software floating-point support.
24603 .Sp
24604 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
24605 therefore, it is only useful if you compile \fIall\fR of a program with
24606 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
24607 library that comes with \s-1GCC,\s0 with \fB\-msoft\-float\fR in order for
24608 this to work.
24609 .IP "\fB\-mhard\-quad\-float\fR" 4
24610 .IX Item "-mhard-quad-float"
24611 Generate output containing quad-word (long double) floating-point
24612 instructions.
24613 .IP "\fB\-msoft\-quad\-float\fR" 4
24614 .IX Item "-msoft-quad-float"
24615 Generate output containing library calls for quad-word (long double)
24616 floating-point instructions.  The functions called are those specified
24617 in the \s-1SPARC ABI.\s0  This is the default.
24618 .Sp
24619 As of this writing, there are no \s-1SPARC\s0 implementations that have hardware
24620 support for the quad-word floating-point instructions.  They all invoke
24621 a trap handler for one of these instructions, and then the trap handler
24622 emulates the effect of the instruction.  Because of the trap handler overhead,
24623 this is much slower than calling the \s-1ABI\s0 library routines.  Thus the
24624 \&\fB\-msoft\-quad\-float\fR option is the default.
24625 .IP "\fB\-mno\-unaligned\-doubles\fR" 4
24626 .IX Item "-mno-unaligned-doubles"
24627 .PD 0
24628 .IP "\fB\-munaligned\-doubles\fR" 4
24629 .IX Item "-munaligned-doubles"
24630 .PD
24631 Assume that doubles have 8\-byte alignment.  This is the default.
24632 .Sp
24633 With \fB\-munaligned\-doubles\fR, \s-1GCC\s0 assumes that doubles have 8\-byte
24634 alignment only if they are contained in another type, or if they have an
24635 absolute address.  Otherwise, it assumes they have 4\-byte alignment.
24636 Specifying this option avoids some rare compatibility problems with code
24637 generated by other compilers.  It is not the default because it results
24638 in a performance loss, especially for floating-point code.
24639 .IP "\fB\-muser\-mode\fR" 4
24640 .IX Item "-muser-mode"
24641 .PD 0
24642 .IP "\fB\-mno\-user\-mode\fR" 4
24643 .IX Item "-mno-user-mode"
24644 .PD
24645 Do not generate code that can only run in supervisor mode.  This is relevant
24646 only for the \f(CW\*(C`casa\*(C'\fR instruction emitted for the \s-1LEON3\s0 processor.  This
24647 is the default.
24648 .IP "\fB\-mfaster\-structs\fR" 4
24649 .IX Item "-mfaster-structs"
24650 .PD 0
24651 .IP "\fB\-mno\-faster\-structs\fR" 4
24652 .IX Item "-mno-faster-structs"
24653 .PD
24654 With \fB\-mfaster\-structs\fR, the compiler assumes that structures
24655 should have 8\-byte alignment.  This enables the use of pairs of
24656 \&\f(CW\*(C`ldd\*(C'\fR and \f(CW\*(C`std\*(C'\fR instructions for copies in structure
24657 assignment, in place of twice as many \f(CW\*(C`ld\*(C'\fR and \f(CW\*(C`st\*(C'\fR pairs.
24658 However, the use of this changed alignment directly violates the \s-1SPARC
24659 ABI.\s0  Thus, it's intended only for use on targets where the developer
24660 acknowledges that their resulting code is not directly in line with
24661 the rules of the \s-1ABI.\s0
24662 .IP "\fB\-mstd\-struct\-return\fR" 4
24663 .IX Item "-mstd-struct-return"
24664 .PD 0
24665 .IP "\fB\-mno\-std\-struct\-return\fR" 4
24666 .IX Item "-mno-std-struct-return"
24667 .PD
24668 With \fB\-mstd\-struct\-return\fR, the compiler generates checking code
24669 in functions returning structures or unions to detect size mismatches
24670 between the two sides of function calls, as per the 32\-bit \s-1ABI.\s0
24671 .Sp
24672 The default is \fB\-mno\-std\-struct\-return\fR.  This option has no effect
24673 in 64\-bit mode.
24674 .IP "\fB\-mlra\fR" 4
24675 .IX Item "-mlra"
24676 .PD 0
24677 .IP "\fB\-mno\-lra\fR" 4
24678 .IX Item "-mno-lra"
24679 .PD
24680 Enable Local Register Allocation.  This is the default for \s-1SPARC\s0 since \s-1GCC 7\s0
24681 so \fB\-mno\-lra\fR needs to be passed to get old Reload.
24682 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
24683 .IX Item "-mcpu=cpu_type"
24684 Set the instruction set, register set, and instruction scheduling parameters
24685 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
24686 \&\fBv7\fR, \fBcypress\fR, \fBv8\fR, \fBsupersparc\fR, \fBhypersparc\fR,
24687 \&\fBleon\fR, \fBleon3\fR, \fBleon3v7\fR, \fBsparclite\fR, \fBf930\fR,
24688 \&\fBf934\fR, \fBsparclite86x\fR, \fBsparclet\fR, \fBtsc701\fR, \fBv9\fR,
24689 \&\fBultrasparc\fR, \fBultrasparc3\fR, \fBniagara\fR, \fBniagara2\fR,
24690 \&\fBniagara3\fR, \fBniagara4\fR, \fBniagara7\fR and \fBm8\fR.
24691 .Sp
24692 Native Solaris and GNU/Linux toolchains also support the value \fBnative\fR,
24693 which selects the best architecture option for the host processor.
24694 \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize
24695 the processor.
24696 .Sp
24697 Default instruction scheduling parameters are used for values that select
24698 an architecture and not an implementation.  These are \fBv7\fR, \fBv8\fR,
24699 \&\fBsparclite\fR, \fBsparclet\fR, \fBv9\fR.
24700 .Sp
24701 Here is a list of each supported architecture and their supported
24702 implementations.
24703 .RS 4
24704 .IP "v7" 4
24705 .IX Item "v7"
24706 cypress, leon3v7
24707 .IP "v8" 4
24708 .IX Item "v8"
24709 supersparc, hypersparc, leon, leon3
24710 .IP "sparclite" 4
24711 .IX Item "sparclite"
24712 f930, f934, sparclite86x
24713 .IP "sparclet" 4
24714 .IX Item "sparclet"
24715 tsc701
24716 .IP "v9" 4
24717 .IX Item "v9"
24718 ultrasparc, ultrasparc3, niagara, niagara2, niagara3, niagara4,
24719 niagara7, m8
24720 .RE
24721 .RS 4
24722 .Sp
24723 By default (unless configured otherwise), \s-1GCC\s0 generates code for the V7
24724 variant of the \s-1SPARC\s0 architecture.  With \fB\-mcpu=cypress\fR, the compiler
24725 additionally optimizes it for the Cypress \s-1CY7C602\s0 chip, as used in the
24726 SPARCStation/SPARCServer 3xx series.  This is also appropriate for the older
24727 SPARCStation 1, 2, \s-1IPX\s0 etc.
24728 .Sp
24729 With \fB\-mcpu=v8\fR, \s-1GCC\s0 generates code for the V8 variant of the \s-1SPARC\s0
24730 architecture.  The only difference from V7 code is that the compiler emits
24731 the integer multiply and integer divide instructions which exist in \s-1SPARC\-V8\s0
24732 but not in \s-1SPARC\-V7.\s0  With \fB\-mcpu=supersparc\fR, the compiler additionally
24733 optimizes it for the SuperSPARC chip, as used in the SPARCStation 10, 1000 and
24734 2000 series.
24735 .Sp
24736 With \fB\-mcpu=sparclite\fR, \s-1GCC\s0 generates code for the SPARClite variant of
24737 the \s-1SPARC\s0 architecture.  This adds the integer multiply, integer divide step
24738 and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClite but not in \s-1SPARC\-V7.\s0
24739 With \fB\-mcpu=f930\fR, the compiler additionally optimizes it for the
24740 Fujitsu \s-1MB86930\s0 chip, which is the original SPARClite, with no \s-1FPU.\s0  With
24741 \&\fB\-mcpu=f934\fR, the compiler additionally optimizes it for the Fujitsu
24742 \&\s-1MB86934\s0 chip, which is the more recent SPARClite with \s-1FPU.\s0
24743 .Sp
24744 With \fB\-mcpu=sparclet\fR, \s-1GCC\s0 generates code for the SPARClet variant of
24745 the \s-1SPARC\s0 architecture.  This adds the integer multiply, multiply/accumulate,
24746 integer divide step and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClet
24747 but not in \s-1SPARC\-V7.\s0  With \fB\-mcpu=tsc701\fR, the compiler additionally
24748 optimizes it for the \s-1TEMIC\s0 SPARClet chip.
24749 .Sp
24750 With \fB\-mcpu=v9\fR, \s-1GCC\s0 generates code for the V9 variant of the \s-1SPARC\s0
24751 architecture.  This adds 64\-bit integer and floating-point move instructions,
24752 3 additional floating-point condition code registers and conditional move
24753 instructions.  With \fB\-mcpu=ultrasparc\fR, the compiler additionally
24754 optimizes it for the Sun UltraSPARC I/II/IIi chips.  With
24755 \&\fB\-mcpu=ultrasparc3\fR, the compiler additionally optimizes it for the
24756 Sun UltraSPARC III/III+/IIIi/IIIi+/IV/IV+ chips.  With
24757 \&\fB\-mcpu=niagara\fR, the compiler additionally optimizes it for
24758 Sun UltraSPARC T1 chips.  With \fB\-mcpu=niagara2\fR, the compiler
24759 additionally optimizes it for Sun UltraSPARC T2 chips. With
24760 \&\fB\-mcpu=niagara3\fR, the compiler additionally optimizes it for Sun
24761 UltraSPARC T3 chips.  With \fB\-mcpu=niagara4\fR, the compiler
24762 additionally optimizes it for Sun UltraSPARC T4 chips.  With
24763 \&\fB\-mcpu=niagara7\fR, the compiler additionally optimizes it for
24764 Oracle \s-1SPARC M7\s0 chips.  With \fB\-mcpu=m8\fR, the compiler
24765 additionally optimizes it for Oracle M8 chips.
24766 .RE
24767 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
24768 .IX Item "-mtune=cpu_type"
24769 Set the instruction scheduling parameters for machine type
24770 \&\fIcpu_type\fR, but do not set the instruction set or register set that the
24771 option \fB\-mcpu=\fR\fIcpu_type\fR does.
24772 .Sp
24773 The same values for \fB\-mcpu=\fR\fIcpu_type\fR can be used for
24774 \&\fB\-mtune=\fR\fIcpu_type\fR, but the only useful values are those
24775 that select a particular \s-1CPU\s0 implementation.  Those are
24776 \&\fBcypress\fR, \fBsupersparc\fR, \fBhypersparc\fR, \fBleon\fR,
24777 \&\fBleon3\fR, \fBleon3v7\fR, \fBf930\fR, \fBf934\fR,
24778 \&\fBsparclite86x\fR, \fBtsc701\fR, \fBultrasparc\fR,
24779 \&\fBultrasparc3\fR, \fBniagara\fR, \fBniagara2\fR, \fBniagara3\fR,
24780 \&\fBniagara4\fR, \fBniagara7\fR and \fBm8\fR.  With native Solaris
24781 and GNU/Linux toolchains, \fBnative\fR can also be used.
24782 .IP "\fB\-mv8plus\fR" 4
24783 .IX Item "-mv8plus"
24784 .PD 0
24785 .IP "\fB\-mno\-v8plus\fR" 4
24786 .IX Item "-mno-v8plus"
24787 .PD
24788 With \fB\-mv8plus\fR, \s-1GCC\s0 generates code for the \s-1SPARC\-V8+ ABI.\s0  The
24789 difference from the V8 \s-1ABI\s0 is that the global and out registers are
24790 considered 64 bits wide.  This is enabled by default on Solaris in 32\-bit
24791 mode for all \s-1SPARC\-V9\s0 processors.
24792 .IP "\fB\-mvis\fR" 4
24793 .IX Item "-mvis"
24794 .PD 0
24795 .IP "\fB\-mno\-vis\fR" 4
24796 .IX Item "-mno-vis"
24797 .PD
24798 With \fB\-mvis\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
24799 Visual Instruction Set extensions.  The default is \fB\-mno\-vis\fR.
24800 .IP "\fB\-mvis2\fR" 4
24801 .IX Item "-mvis2"
24802 .PD 0
24803 .IP "\fB\-mno\-vis2\fR" 4
24804 .IX Item "-mno-vis2"
24805 .PD
24806 With \fB\-mvis2\fR, \s-1GCC\s0 generates code that takes advantage of
24807 version 2.0 of the UltraSPARC Visual Instruction Set extensions.  The
24808 default is \fB\-mvis2\fR when targeting a cpu that supports such
24809 instructions, such as UltraSPARC-III and later.  Setting \fB\-mvis2\fR
24810 also sets \fB\-mvis\fR.
24811 .IP "\fB\-mvis3\fR" 4
24812 .IX Item "-mvis3"
24813 .PD 0
24814 .IP "\fB\-mno\-vis3\fR" 4
24815 .IX Item "-mno-vis3"
24816 .PD
24817 With \fB\-mvis3\fR, \s-1GCC\s0 generates code that takes advantage of
24818 version 3.0 of the UltraSPARC Visual Instruction Set extensions.  The
24819 default is \fB\-mvis3\fR when targeting a cpu that supports such
24820 instructions, such as niagara\-3 and later.  Setting \fB\-mvis3\fR
24821 also sets \fB\-mvis2\fR and \fB\-mvis\fR.
24822 .IP "\fB\-mvis4\fR" 4
24823 .IX Item "-mvis4"
24824 .PD 0
24825 .IP "\fB\-mno\-vis4\fR" 4
24826 .IX Item "-mno-vis4"
24827 .PD
24828 With \fB\-mvis4\fR, \s-1GCC\s0 generates code that takes advantage of
24829 version 4.0 of the UltraSPARC Visual Instruction Set extensions.  The
24830 default is \fB\-mvis4\fR when targeting a cpu that supports such
24831 instructions, such as niagara\-7 and later.  Setting \fB\-mvis4\fR
24832 also sets \fB\-mvis3\fR, \fB\-mvis2\fR and \fB\-mvis\fR.
24833 .IP "\fB\-mvis4b\fR" 4
24834 .IX Item "-mvis4b"
24835 .PD 0
24836 .IP "\fB\-mno\-vis4b\fR" 4
24837 .IX Item "-mno-vis4b"
24838 .PD
24839 With \fB\-mvis4b\fR, \s-1GCC\s0 generates code that takes advantage of
24840 version 4.0 of the UltraSPARC Visual Instruction Set extensions, plus
24841 the additional \s-1VIS\s0 instructions introduced in the Oracle \s-1SPARC\s0
24842 Architecture 2017.  The default is \fB\-mvis4b\fR when targeting a
24843 cpu that supports such instructions, such as m8 and later.  Setting
24844 \&\fB\-mvis4b\fR also sets \fB\-mvis4\fR, \fB\-mvis3\fR,
24845 \&\fB\-mvis2\fR and \fB\-mvis\fR.
24846 .IP "\fB\-mcbcond\fR" 4
24847 .IX Item "-mcbcond"
24848 .PD 0
24849 .IP "\fB\-mno\-cbcond\fR" 4
24850 .IX Item "-mno-cbcond"
24851 .PD
24852 With \fB\-mcbcond\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
24853 Compare-and-Branch-on-Condition instructions.  The default is \fB\-mcbcond\fR
24854 when targeting a \s-1CPU\s0 that supports such instructions, such as Niagara\-4 and
24855 later.
24856 .IP "\fB\-mfmaf\fR" 4
24857 .IX Item "-mfmaf"
24858 .PD 0
24859 .IP "\fB\-mno\-fmaf\fR" 4
24860 .IX Item "-mno-fmaf"
24861 .PD
24862 With \fB\-mfmaf\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
24863 Fused Multiply-Add Floating-point instructions.  The default is \fB\-mfmaf\fR
24864 when targeting a \s-1CPU\s0 that supports such instructions, such as Niagara\-3 and
24865 later.
24866 .IP "\fB\-mfsmuld\fR" 4
24867 .IX Item "-mfsmuld"
24868 .PD 0
24869 .IP "\fB\-mno\-fsmuld\fR" 4
24870 .IX Item "-mno-fsmuld"
24871 .PD
24872 With \fB\-mfsmuld\fR, \s-1GCC\s0 generates code that takes advantage of the
24873 Floating-point Multiply Single to Double (FsMULd) instruction.  The default is
24874 \&\fB\-mfsmuld\fR when targeting a \s-1CPU\s0 supporting the architecture versions V8
24875 or V9 with \s-1FPU\s0 except \fB\-mcpu=leon\fR.
24876 .IP "\fB\-mpopc\fR" 4
24877 .IX Item "-mpopc"
24878 .PD 0
24879 .IP "\fB\-mno\-popc\fR" 4
24880 .IX Item "-mno-popc"
24881 .PD
24882 With \fB\-mpopc\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
24883 Population Count instruction.  The default is \fB\-mpopc\fR
24884 when targeting a \s-1CPU\s0 that supports such an instruction, such as Niagara\-2 and
24885 later.
24886 .IP "\fB\-msubxc\fR" 4
24887 .IX Item "-msubxc"
24888 .PD 0
24889 .IP "\fB\-mno\-subxc\fR" 4
24890 .IX Item "-mno-subxc"
24891 .PD
24892 With \fB\-msubxc\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
24893 Subtract-Extended-with-Carry instruction.  The default is \fB\-msubxc\fR
24894 when targeting a \s-1CPU\s0 that supports such an instruction, such as Niagara\-7 and
24895 later.
24896 .IP "\fB\-mfix\-at697f\fR" 4
24897 .IX Item "-mfix-at697f"
24898 Enable the documented workaround for the single erratum of the Atmel \s-1AT697F\s0
24899 processor (which corresponds to erratum #13 of the \s-1AT697E\s0 processor).
24900 .IP "\fB\-mfix\-ut699\fR" 4
24901 .IX Item "-mfix-ut699"
24902 Enable the documented workarounds for the floating-point errata and the data
24903 cache nullify errata of the \s-1UT699\s0 processor.
24904 .IP "\fB\-mfix\-ut700\fR" 4
24905 .IX Item "-mfix-ut700"
24906 Enable the documented workaround for the back-to-back store errata of
24907 the \s-1UT699E/UT700\s0 processor.
24908 .IP "\fB\-mfix\-gr712rc\fR" 4
24909 .IX Item "-mfix-gr712rc"
24910 Enable the documented workaround for the back-to-back store errata of
24911 the \s-1GR712RC\s0 processor.
24912 .PP
24913 These \fB\-m\fR options are supported in addition to the above
24914 on \s-1SPARC\-V9\s0 processors in 64\-bit environments:
24915 .IP "\fB\-m32\fR" 4
24916 .IX Item "-m32"
24917 .PD 0
24918 .IP "\fB\-m64\fR" 4
24919 .IX Item "-m64"
24920 .PD
24921 Generate code for a 32\-bit or 64\-bit environment.
24922 The 32\-bit environment sets int, long and pointer to 32 bits.
24923 The 64\-bit environment sets int to 32 bits and long and pointer
24924 to 64 bits.
24925 .IP "\fB\-mcmodel=\fR\fIwhich\fR" 4
24926 .IX Item "-mcmodel=which"
24927 Set the code model to one of
24928 .RS 4
24929 .IP "\fBmedlow\fR" 4
24930 .IX Item "medlow"
24931 The Medium/Low code model: 64\-bit addresses, programs
24932 must be linked in the low 32 bits of memory.  Programs can be statically
24933 or dynamically linked.
24934 .IP "\fBmedmid\fR" 4
24935 .IX Item "medmid"
24936 The Medium/Middle code model: 64\-bit addresses, programs
24937 must be linked in the low 44 bits of memory, the text and data segments must
24938 be less than 2GB in size and the data segment must be located within 2GB of
24939 the text segment.
24940 .IP "\fBmedany\fR" 4
24941 .IX Item "medany"
24942 The Medium/Anywhere code model: 64\-bit addresses, programs
24943 may be linked anywhere in memory, the text and data segments must be less
24944 than 2GB in size and the data segment must be located within 2GB of the
24945 text segment.
24946 .IP "\fBembmedany\fR" 4
24947 .IX Item "embmedany"
24948 The Medium/Anywhere code model for embedded systems:
24949 64\-bit addresses, the text and data segments must be less than 2GB in
24950 size, both starting anywhere in memory (determined at link time).  The
24951 global register \f(CW%g4\fR points to the base of the data segment.  Programs
24952 are statically linked and \s-1PIC\s0 is not supported.
24953 .RE
24954 .RS 4
24955 .RE
24956 .IP "\fB\-mmemory\-model=\fR\fImem-model\fR" 4
24957 .IX Item "-mmemory-model=mem-model"
24958 Set the memory model in force on the processor to one of
24959 .RS 4
24960 .IP "\fBdefault\fR" 4
24961 .IX Item "default"
24962 The default memory model for the processor and operating system.
24963 .IP "\fBrmo\fR" 4
24964 .IX Item "rmo"
24965 Relaxed Memory Order
24966 .IP "\fBpso\fR" 4
24967 .IX Item "pso"
24968 Partial Store Order
24969 .IP "\fBtso\fR" 4
24970 .IX Item "tso"
24971 Total Store Order
24972 .IP "\fBsc\fR" 4
24973 .IX Item "sc"
24974 Sequential Consistency
24975 .RE
24976 .RS 4
24977 .Sp
24978 These memory models are formally defined in Appendix D of the \s-1SPARC\-V9\s0
24979 architecture manual, as set in the processor's \f(CW\*(C`PSTATE.MM\*(C'\fR field.
24980 .RE
24981 .IP "\fB\-mstack\-bias\fR" 4
24982 .IX Item "-mstack-bias"
24983 .PD 0
24984 .IP "\fB\-mno\-stack\-bias\fR" 4
24985 .IX Item "-mno-stack-bias"
24986 .PD
24987 With \fB\-mstack\-bias\fR, \s-1GCC\s0 assumes that the stack pointer, and
24988 frame pointer if present, are offset by \-2047 which must be added back
24989 when making stack frame references.  This is the default in 64\-bit mode.
24990 Otherwise, assume no such offset is present.
24991 .PP
24992 \fI\s-1SPU\s0 Options\fR
24993 .IX Subsection "SPU Options"
24994 .PP
24995 These \fB\-m\fR options are supported on the \s-1SPU:\s0
24996 .IP "\fB\-mwarn\-reloc\fR" 4
24997 .IX Item "-mwarn-reloc"
24998 .PD 0
24999 .IP "\fB\-merror\-reloc\fR" 4
25000 .IX Item "-merror-reloc"
25001 .PD
25002 The loader for \s-1SPU\s0 does not handle dynamic relocations.  By default, \s-1GCC\s0
25003 gives an error when it generates code that requires a dynamic
25004 relocation.  \fB\-mno\-error\-reloc\fR disables the error,
25005 \&\fB\-mwarn\-reloc\fR generates a warning instead.
25006 .IP "\fB\-msafe\-dma\fR" 4
25007 .IX Item "-msafe-dma"
25008 .PD 0
25009 .IP "\fB\-munsafe\-dma\fR" 4
25010 .IX Item "-munsafe-dma"
25011 .PD
25012 Instructions that initiate or test completion of \s-1DMA\s0 must not be
25013 reordered with respect to loads and stores of the memory that is being
25014 accessed.
25015 With \fB\-munsafe\-dma\fR you must use the \f(CW\*(C`volatile\*(C'\fR keyword to protect
25016 memory accesses, but that can lead to inefficient code in places where the
25017 memory is known to not change.  Rather than mark the memory as volatile,
25018 you can use \fB\-msafe\-dma\fR to tell the compiler to treat
25019 the \s-1DMA\s0 instructions as potentially affecting all memory.
25020 .IP "\fB\-mbranch\-hints\fR" 4
25021 .IX Item "-mbranch-hints"
25022 By default, \s-1GCC\s0 generates a branch hint instruction to avoid
25023 pipeline stalls for always-taken or probably-taken branches.  A hint
25024 is not generated closer than 8 instructions away from its branch.
25025 There is little reason to disable them, except for debugging purposes,
25026 or to make an object a little bit smaller.
25027 .IP "\fB\-msmall\-mem\fR" 4
25028 .IX Item "-msmall-mem"
25029 .PD 0
25030 .IP "\fB\-mlarge\-mem\fR" 4
25031 .IX Item "-mlarge-mem"
25032 .PD
25033 By default, \s-1GCC\s0 generates code assuming that addresses are never larger
25034 than 18 bits.  With \fB\-mlarge\-mem\fR code is generated that assumes
25035 a full 32\-bit address.
25036 .IP "\fB\-mstdmain\fR" 4
25037 .IX Item "-mstdmain"
25038 By default, \s-1GCC\s0 links against startup code that assumes the SPU-style
25039 main function interface (which has an unconventional parameter list).
25040 With \fB\-mstdmain\fR, \s-1GCC\s0 links your program against startup
25041 code that assumes a C99\-style interface to \f(CW\*(C`main\*(C'\fR, including a
25042 local copy of \f(CW\*(C`argv\*(C'\fR strings.
25043 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
25044 .IX Item "-mfixed-range=register-range"
25045 Generate code treating the given register range as fixed registers.
25046 A fixed register is one that the register allocator cannot use.  This is
25047 useful when compiling kernel code.  A register range is specified as
25048 two registers separated by a dash.  Multiple register ranges can be
25049 specified separated by a comma.
25050 .IP "\fB\-mea32\fR" 4
25051 .IX Item "-mea32"
25052 .PD 0
25053 .IP "\fB\-mea64\fR" 4
25054 .IX Item "-mea64"
25055 .PD
25056 Compile code assuming that pointers to the \s-1PPU\s0 address space accessed
25057 via the \f(CW\*(C`_\|_ea\*(C'\fR named address space qualifier are either 32 or 64
25058 bits wide.  The default is 32 bits.  As this is an ABI-changing option,
25059 all object code in an executable must be compiled with the same setting.
25060 .IP "\fB\-maddress\-space\-conversion\fR" 4
25061 .IX Item "-maddress-space-conversion"
25062 .PD 0
25063 .IP "\fB\-mno\-address\-space\-conversion\fR" 4
25064 .IX Item "-mno-address-space-conversion"
25065 .PD
25066 Allow/disallow treating the \f(CW\*(C`_\|_ea\*(C'\fR address space as superset
25067 of the generic address space.  This enables explicit type casts
25068 between \f(CW\*(C`_\|_ea\*(C'\fR and generic pointer as well as implicit
25069 conversions of generic pointers to \f(CW\*(C`_\|_ea\*(C'\fR pointers.  The
25070 default is to allow address space pointer conversions.
25071 .IP "\fB\-mcache\-size=\fR\fIcache-size\fR" 4
25072 .IX Item "-mcache-size=cache-size"
25073 This option controls the version of libgcc that the compiler links to an
25074 executable and selects a software-managed cache for accessing variables
25075 in the \f(CW\*(C`_\|_ea\*(C'\fR address space with a particular cache size.  Possible
25076 options for \fIcache-size\fR are \fB8\fR, \fB16\fR, \fB32\fR, \fB64\fR
25077 and \fB128\fR.  The default cache size is 64KB.
25078 .IP "\fB\-matomic\-updates\fR" 4
25079 .IX Item "-matomic-updates"
25080 .PD 0
25081 .IP "\fB\-mno\-atomic\-updates\fR" 4
25082 .IX Item "-mno-atomic-updates"
25083 .PD
25084 This option controls the version of libgcc that the compiler links to an
25085 executable and selects whether atomic updates to the software-managed
25086 cache of PPU-side variables are used.  If you use atomic updates, changes
25087 to a \s-1PPU\s0 variable from \s-1SPU\s0 code using the \f(CW\*(C`_\|_ea\*(C'\fR named address space
25088 qualifier do not interfere with changes to other \s-1PPU\s0 variables residing
25089 in the same cache line from \s-1PPU\s0 code.  If you do not use atomic updates,
25090 such interference may occur; however, writing back cache lines is
25091 more efficient.  The default behavior is to use atomic updates.
25092 .IP "\fB\-mdual\-nops\fR" 4
25093 .IX Item "-mdual-nops"
25094 .PD 0
25095 .IP "\fB\-mdual\-nops=\fR\fIn\fR" 4
25096 .IX Item "-mdual-nops=n"
25097 .PD
25098 By default, \s-1GCC\s0 inserts NOPs to increase dual issue when it expects
25099 it to increase performance.  \fIn\fR can be a value from 0 to 10.  A
25100 smaller \fIn\fR inserts fewer NOPs.  10 is the default, 0 is the
25101 same as \fB\-mno\-dual\-nops\fR.  Disabled with \fB\-Os\fR.
25102 .IP "\fB\-mhint\-max\-nops=\fR\fIn\fR" 4
25103 .IX Item "-mhint-max-nops=n"
25104 Maximum number of NOPs to insert for a branch hint.  A branch hint must
25105 be at least 8 instructions away from the branch it is affecting.  \s-1GCC\s0
25106 inserts up to \fIn\fR NOPs to enforce this, otherwise it does not
25107 generate the branch hint.
25108 .IP "\fB\-mhint\-max\-distance=\fR\fIn\fR" 4
25109 .IX Item "-mhint-max-distance=n"
25110 The encoding of the branch hint instruction limits the hint to be within
25111 256 instructions of the branch it is affecting.  By default, \s-1GCC\s0 makes
25112 sure it is within 125.
25113 .IP "\fB\-msafe\-hints\fR" 4
25114 .IX Item "-msafe-hints"
25115 Work around a hardware bug that causes the \s-1SPU\s0 to stall indefinitely.
25116 By default, \s-1GCC\s0 inserts the \f(CW\*(C`hbrp\*(C'\fR instruction to make sure
25117 this stall won't happen.
25118 .PP
25119 \fIOptions for System V\fR
25120 .IX Subsection "Options for System V"
25121 .PP
25122 These additional options are available on System V Release 4 for
25123 compatibility with other compilers on those systems:
25124 .IP "\fB\-G\fR" 4
25125 .IX Item "-G"
25126 Create a shared object.
25127 It is recommended that \fB\-symbolic\fR or \fB\-shared\fR be used instead.
25128 .IP "\fB\-Qy\fR" 4
25129 .IX Item "-Qy"
25130 Identify the versions of each tool used by the compiler, in a
25131 \&\f(CW\*(C`.ident\*(C'\fR assembler directive in the output.
25132 .IP "\fB\-Qn\fR" 4
25133 .IX Item "-Qn"
25134 Refrain from adding \f(CW\*(C`.ident\*(C'\fR directives to the output file (this is
25135 the default).
25136 .IP "\fB\-YP,\fR\fIdirs\fR" 4
25137 .IX Item "-YP,dirs"
25138 Search the directories \fIdirs\fR, and no others, for libraries
25139 specified with \fB\-l\fR.
25140 .IP "\fB\-Ym,\fR\fIdir\fR" 4
25141 .IX Item "-Ym,dir"
25142 Look in the directory \fIdir\fR to find the M4 preprocessor.
25143 The assembler uses this option.
25144 .PP
25145 \fITILE-Gx Options\fR
25146 .IX Subsection "TILE-Gx Options"
25147 .PP
25148 These \fB\-m\fR options are supported on the TILE-Gx:
25149 .IP "\fB\-mcmodel=small\fR" 4
25150 .IX Item "-mcmodel=small"
25151 Generate code for the small model.  The distance for direct calls is
25152 limited to 500M in either direction.  PC-relative addresses are 32
25153 bits.  Absolute addresses support the full address range.
25154 .IP "\fB\-mcmodel=large\fR" 4
25155 .IX Item "-mcmodel=large"
25156 Generate code for the large model.  There is no limitation on call
25157 distance, pc-relative addresses, or absolute addresses.
25158 .IP "\fB\-mcpu=\fR\fIname\fR" 4
25159 .IX Item "-mcpu=name"
25160 Selects the type of \s-1CPU\s0 to be targeted.  Currently the only supported
25161 type is \fBtilegx\fR.
25162 .IP "\fB\-m32\fR" 4
25163 .IX Item "-m32"
25164 .PD 0
25165 .IP "\fB\-m64\fR" 4
25166 .IX Item "-m64"
25167 .PD
25168 Generate code for a 32\-bit or 64\-bit environment.  The 32\-bit
25169 environment sets int, long, and pointer to 32 bits.  The 64\-bit
25170 environment sets int to 32 bits and long and pointer to 64 bits.
25171 .IP "\fB\-mbig\-endian\fR" 4
25172 .IX Item "-mbig-endian"
25173 .PD 0
25174 .IP "\fB\-mlittle\-endian\fR" 4
25175 .IX Item "-mlittle-endian"
25176 .PD
25177 Generate code in big/little endian mode, respectively.
25178 .PP
25179 \fITILEPro Options\fR
25180 .IX Subsection "TILEPro Options"
25181 .PP
25182 These \fB\-m\fR options are supported on the TILEPro:
25183 .IP "\fB\-mcpu=\fR\fIname\fR" 4
25184 .IX Item "-mcpu=name"
25185 Selects the type of \s-1CPU\s0 to be targeted.  Currently the only supported
25186 type is \fBtilepro\fR.
25187 .IP "\fB\-m32\fR" 4
25188 .IX Item "-m32"
25189 Generate code for a 32\-bit environment, which sets int, long, and
25190 pointer to 32 bits.  This is the only supported behavior so the flag
25191 is essentially ignored.
25192 .PP
25193 \fIV850 Options\fR
25194 .IX Subsection "V850 Options"
25195 .PP
25196 These \fB\-m\fR options are defined for V850 implementations:
25197 .IP "\fB\-mlong\-calls\fR" 4
25198 .IX Item "-mlong-calls"
25199 .PD 0
25200 .IP "\fB\-mno\-long\-calls\fR" 4
25201 .IX Item "-mno-long-calls"
25202 .PD
25203 Treat all calls as being far away (near).  If calls are assumed to be
25204 far away, the compiler always loads the function's address into a
25205 register, and calls indirect through the pointer.
25206 .IP "\fB\-mno\-ep\fR" 4
25207 .IX Item "-mno-ep"
25208 .PD 0
25209 .IP "\fB\-mep\fR" 4
25210 .IX Item "-mep"
25211 .PD
25212 Do not optimize (do optimize) basic blocks that use the same index
25213 pointer 4 or more times to copy pointer into the \f(CW\*(C`ep\*(C'\fR register, and
25214 use the shorter \f(CW\*(C`sld\*(C'\fR and \f(CW\*(C`sst\*(C'\fR instructions.  The \fB\-mep\fR
25215 option is on by default if you optimize.
25216 .IP "\fB\-mno\-prolog\-function\fR" 4
25217 .IX Item "-mno-prolog-function"
25218 .PD 0
25219 .IP "\fB\-mprolog\-function\fR" 4
25220 .IX Item "-mprolog-function"
25221 .PD
25222 Do not use (do use) external functions to save and restore registers
25223 at the prologue and epilogue of a function.  The external functions
25224 are slower, but use less code space if more than one function saves
25225 the same number of registers.  The \fB\-mprolog\-function\fR option
25226 is on by default if you optimize.
25227 .IP "\fB\-mspace\fR" 4
25228 .IX Item "-mspace"
25229 Try to make the code as small as possible.  At present, this just turns
25230 on the \fB\-mep\fR and \fB\-mprolog\-function\fR options.
25231 .IP "\fB\-mtda=\fR\fIn\fR" 4
25232 .IX Item "-mtda=n"
25233 Put static or global variables whose size is \fIn\fR bytes or less into
25234 the tiny data area that register \f(CW\*(C`ep\*(C'\fR points to.  The tiny data
25235 area can hold up to 256 bytes in total (128 bytes for byte references).
25236 .IP "\fB\-msda=\fR\fIn\fR" 4
25237 .IX Item "-msda=n"
25238 Put static or global variables whose size is \fIn\fR bytes or less into
25239 the small data area that register \f(CW\*(C`gp\*(C'\fR points to.  The small data
25240 area can hold up to 64 kilobytes.
25241 .IP "\fB\-mzda=\fR\fIn\fR" 4
25242 .IX Item "-mzda=n"
25243 Put static or global variables whose size is \fIn\fR bytes or less into
25244 the first 32 kilobytes of memory.
25245 .IP "\fB\-mv850\fR" 4
25246 .IX Item "-mv850"
25247 Specify that the target processor is the V850.
25248 .IP "\fB\-mv850e3v5\fR" 4
25249 .IX Item "-mv850e3v5"
25250 Specify that the target processor is the V850E3V5.  The preprocessor
25251 constant \f(CW\*(C`_\|_v850e3v5_\|_\*(C'\fR is defined if this option is used.
25252 .IP "\fB\-mv850e2v4\fR" 4
25253 .IX Item "-mv850e2v4"
25254 Specify that the target processor is the V850E3V5.  This is an alias for
25255 the \fB\-mv850e3v5\fR option.
25256 .IP "\fB\-mv850e2v3\fR" 4
25257 .IX Item "-mv850e2v3"
25258 Specify that the target processor is the V850E2V3.  The preprocessor
25259 constant \f(CW\*(C`_\|_v850e2v3_\|_\*(C'\fR is defined if this option is used.
25260 .IP "\fB\-mv850e2\fR" 4
25261 .IX Item "-mv850e2"
25262 Specify that the target processor is the V850E2.  The preprocessor
25263 constant \f(CW\*(C`_\|_v850e2_\|_\*(C'\fR is defined if this option is used.
25264 .IP "\fB\-mv850e1\fR" 4
25265 .IX Item "-mv850e1"
25266 Specify that the target processor is the V850E1.  The preprocessor
25267 constants \f(CW\*(C`_\|_v850e1_\|_\*(C'\fR and \f(CW\*(C`_\|_v850e_\|_\*(C'\fR are defined if
25268 this option is used.
25269 .IP "\fB\-mv850es\fR" 4
25270 .IX Item "-mv850es"
25271 Specify that the target processor is the V850ES.  This is an alias for
25272 the \fB\-mv850e1\fR option.
25273 .IP "\fB\-mv850e\fR" 4
25274 .IX Item "-mv850e"
25275 Specify that the target processor is the V850E.  The preprocessor
25276 constant \f(CW\*(C`_\|_v850e_\|_\*(C'\fR is defined if this option is used.
25277 .Sp
25278 If neither \fB\-mv850\fR nor \fB\-mv850e\fR nor \fB\-mv850e1\fR
25279 nor \fB\-mv850e2\fR nor \fB\-mv850e2v3\fR nor \fB\-mv850e3v5\fR
25280 are defined then a default target processor is chosen and the
25281 relevant \fB_\|_v850*_\|_\fR preprocessor constant is defined.
25282 .Sp
25283 The preprocessor constants \f(CW\*(C`_\|_v850\*(C'\fR and \f(CW\*(C`_\|_v851_\|_\*(C'\fR are always
25284 defined, regardless of which processor variant is the target.
25285 .IP "\fB\-mdisable\-callt\fR" 4
25286 .IX Item "-mdisable-callt"
25287 .PD 0
25288 .IP "\fB\-mno\-disable\-callt\fR" 4
25289 .IX Item "-mno-disable-callt"
25290 .PD
25291 This option suppresses generation of the \f(CW\*(C`CALLT\*(C'\fR instruction for the
25292 v850e, v850e1, v850e2, v850e2v3 and v850e3v5 flavors of the v850
25293 architecture.
25294 .Sp
25295 This option is enabled by default when the \s-1RH850 ABI\s0 is
25296 in use (see \fB\-mrh850\-abi\fR), and disabled by default when the
25297 \&\s-1GCC ABI\s0 is in use.  If \f(CW\*(C`CALLT\*(C'\fR instructions are being generated
25298 then the C preprocessor symbol \f(CW\*(C`_\|_V850_CALLT_\|_\*(C'\fR is defined.
25299 .IP "\fB\-mrelax\fR" 4
25300 .IX Item "-mrelax"
25301 .PD 0
25302 .IP "\fB\-mno\-relax\fR" 4
25303 .IX Item "-mno-relax"
25304 .PD
25305 Pass on (or do not pass on) the \fB\-mrelax\fR command-line option
25306 to the assembler.
25307 .IP "\fB\-mlong\-jumps\fR" 4
25308 .IX Item "-mlong-jumps"
25309 .PD 0
25310 .IP "\fB\-mno\-long\-jumps\fR" 4
25311 .IX Item "-mno-long-jumps"
25312 .PD
25313 Disable (or re-enable) the generation of PC-relative jump instructions.
25314 .IP "\fB\-msoft\-float\fR" 4
25315 .IX Item "-msoft-float"
25316 .PD 0
25317 .IP "\fB\-mhard\-float\fR" 4
25318 .IX Item "-mhard-float"
25319 .PD
25320 Disable (or re-enable) the generation of hardware floating point
25321 instructions.  This option is only significant when the target
25322 architecture is \fBV850E2V3\fR or higher.  If hardware floating point
25323 instructions are being generated then the C preprocessor symbol
25324 \&\f(CW\*(C`_\|_FPU_OK_\|_\*(C'\fR is defined, otherwise the symbol
25325 \&\f(CW\*(C`_\|_NO_FPU_\|_\*(C'\fR is defined.
25326 .IP "\fB\-mloop\fR" 4
25327 .IX Item "-mloop"
25328 Enables the use of the e3v5 \s-1LOOP\s0 instruction.  The use of this
25329 instruction is not enabled by default when the e3v5 architecture is
25330 selected because its use is still experimental.
25331 .IP "\fB\-mrh850\-abi\fR" 4
25332 .IX Item "-mrh850-abi"
25333 .PD 0
25334 .IP "\fB\-mghs\fR" 4
25335 .IX Item "-mghs"
25336 .PD
25337 Enables support for the \s-1RH850\s0 version of the V850 \s-1ABI.\s0  This is the
25338 default.  With this version of the \s-1ABI\s0 the following rules apply:
25339 .RS 4
25340 .IP "*" 4
25341 Integer sized structures and unions are returned via a memory pointer
25342 rather than a register.
25343 .IP "*" 4
25344 Large structures and unions (more than 8 bytes in size) are passed by
25345 value.
25346 .IP "*" 4
25347 Functions are aligned to 16\-bit boundaries.
25348 .IP "*" 4
25349 The \fB\-m8byte\-align\fR command-line option is supported.
25350 .IP "*" 4
25351 The \fB\-mdisable\-callt\fR command-line option is enabled by
25352 default.  The \fB\-mno\-disable\-callt\fR command-line option is not
25353 supported.
25354 .RE
25355 .RS 4
25356 .Sp
25357 When this version of the \s-1ABI\s0 is enabled the C preprocessor symbol
25358 \&\f(CW\*(C`_\|_V850_RH850_ABI_\|_\*(C'\fR is defined.
25359 .RE
25360 .IP "\fB\-mgcc\-abi\fR" 4
25361 .IX Item "-mgcc-abi"
25362 Enables support for the old \s-1GCC\s0 version of the V850 \s-1ABI.\s0  With this
25363 version of the \s-1ABI\s0 the following rules apply:
25364 .RS 4
25365 .IP "*" 4
25366 Integer sized structures and unions are returned in register \f(CW\*(C`r10\*(C'\fR.
25367 .IP "*" 4
25368 Large structures and unions (more than 8 bytes in size) are passed by
25369 reference.
25370 .IP "*" 4
25371 Functions are aligned to 32\-bit boundaries, unless optimizing for
25372 size.
25373 .IP "*" 4
25374 The \fB\-m8byte\-align\fR command-line option is not supported.
25375 .IP "*" 4
25376 The \fB\-mdisable\-callt\fR command-line option is supported but not
25377 enabled by default.
25378 .RE
25379 .RS 4
25380 .Sp
25381 When this version of the \s-1ABI\s0 is enabled the C preprocessor symbol
25382 \&\f(CW\*(C`_\|_V850_GCC_ABI_\|_\*(C'\fR is defined.
25383 .RE
25384 .IP "\fB\-m8byte\-align\fR" 4
25385 .IX Item "-m8byte-align"
25386 .PD 0
25387 .IP "\fB\-mno\-8byte\-align\fR" 4
25388 .IX Item "-mno-8byte-align"
25389 .PD
25390 Enables support for \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long long\*(C'\fR types to be
25391 aligned on 8\-byte boundaries.  The default is to restrict the
25392 alignment of all objects to at most 4\-bytes.  When
25393 \&\fB\-m8byte\-align\fR is in effect the C preprocessor symbol
25394 \&\f(CW\*(C`_\|_V850_8BYTE_ALIGN_\|_\*(C'\fR is defined.
25395 .IP "\fB\-mbig\-switch\fR" 4
25396 .IX Item "-mbig-switch"
25397 Generate code suitable for big switch tables.  Use this option only if
25398 the assembler/linker complain about out of range branches within a switch
25399 table.
25400 .IP "\fB\-mapp\-regs\fR" 4
25401 .IX Item "-mapp-regs"
25402 This option causes r2 and r5 to be used in the code generated by
25403 the compiler.  This setting is the default.
25404 .IP "\fB\-mno\-app\-regs\fR" 4
25405 .IX Item "-mno-app-regs"
25406 This option causes r2 and r5 to be treated as fixed registers.
25407 .PP
25408 \fI\s-1VAX\s0 Options\fR
25409 .IX Subsection "VAX Options"
25410 .PP
25411 These \fB\-m\fR options are defined for the \s-1VAX:\s0
25412 .IP "\fB\-munix\fR" 4
25413 .IX Item "-munix"
25414 Do not output certain jump instructions (\f(CW\*(C`aobleq\*(C'\fR and so on)
25415 that the Unix assembler for the \s-1VAX\s0 cannot handle across long
25416 ranges.
25417 .IP "\fB\-mgnu\fR" 4
25418 .IX Item "-mgnu"
25419 Do output those jump instructions, on the assumption that the
25420 \&\s-1GNU\s0 assembler is being used.
25421 .IP "\fB\-mg\fR" 4
25422 .IX Item "-mg"
25423 Output code for G\-format floating-point numbers instead of D\-format.
25424 .PP
25425 \fIVisium Options\fR
25426 .IX Subsection "Visium Options"
25427 .IP "\fB\-mdebug\fR" 4
25428 .IX Item "-mdebug"
25429 A program which performs file I/O and is destined to run on an \s-1MCM\s0 target
25430 should be linked with this option.  It causes the libraries libc.a and
25431 libdebug.a to be linked.  The program should be run on the target under
25432 the control of the \s-1GDB\s0 remote debugging stub.
25433 .IP "\fB\-msim\fR" 4
25434 .IX Item "-msim"
25435 A program which performs file I/O and is destined to run on the simulator
25436 should be linked with option.  This causes libraries libc.a and libsim.a to
25437 be linked.
25438 .IP "\fB\-mfpu\fR" 4
25439 .IX Item "-mfpu"
25440 .PD 0
25441 .IP "\fB\-mhard\-float\fR" 4
25442 .IX Item "-mhard-float"
25443 .PD
25444 Generate code containing floating-point instructions.  This is the
25445 default.
25446 .IP "\fB\-mno\-fpu\fR" 4
25447 .IX Item "-mno-fpu"
25448 .PD 0
25449 .IP "\fB\-msoft\-float\fR" 4
25450 .IX Item "-msoft-float"
25451 .PD
25452 Generate code containing library calls for floating-point.
25453 .Sp
25454 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
25455 therefore, it is only useful if you compile \fIall\fR of a program with
25456 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
25457 library that comes with \s-1GCC,\s0 with \fB\-msoft\-float\fR in order for
25458 this to work.
25459 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
25460 .IX Item "-mcpu=cpu_type"
25461 Set the instruction set, register set, and instruction scheduling parameters
25462 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
25463 \&\fBmcm\fR, \fBgr5\fR and \fBgr6\fR.
25464 .Sp
25465 \&\fBmcm\fR is a synonym of \fBgr5\fR present for backward compatibility.
25466 .Sp
25467 By default (unless configured otherwise), \s-1GCC\s0 generates code for the \s-1GR5\s0
25468 variant of the Visium architecture.
25469 .Sp
25470 With \fB\-mcpu=gr6\fR, \s-1GCC\s0 generates code for the \s-1GR6\s0 variant of the Visium
25471 architecture.  The only difference from \s-1GR5\s0 code is that the compiler will
25472 generate block move instructions.
25473 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
25474 .IX Item "-mtune=cpu_type"
25475 Set the instruction scheduling parameters for machine type \fIcpu_type\fR,
25476 but do not set the instruction set or register set that the option
25477 \&\fB\-mcpu=\fR\fIcpu_type\fR would.
25478 .IP "\fB\-msv\-mode\fR" 4
25479 .IX Item "-msv-mode"
25480 Generate code for the supervisor mode, where there are no restrictions on
25481 the access to general registers.  This is the default.
25482 .IP "\fB\-muser\-mode\fR" 4
25483 .IX Item "-muser-mode"
25484 Generate code for the user mode, where the access to some general registers
25485 is forbidden: on the \s-1GR5,\s0 registers r24 to r31 cannot be accessed in this
25486 mode; on the \s-1GR6,\s0 only registers r29 to r31 are affected.
25487 .PP
25488 \fI\s-1VMS\s0 Options\fR
25489 .IX Subsection "VMS Options"
25490 .PP
25491 These \fB\-m\fR options are defined for the \s-1VMS\s0 implementations:
25492 .IP "\fB\-mvms\-return\-codes\fR" 4
25493 .IX Item "-mvms-return-codes"
25494 Return \s-1VMS\s0 condition codes from \f(CW\*(C`main\*(C'\fR. The default is to return POSIX-style
25495 condition (e.g. error) codes.
25496 .IP "\fB\-mdebug\-main=\fR\fIprefix\fR" 4
25497 .IX Item "-mdebug-main=prefix"
25498 Flag the first routine whose name starts with \fIprefix\fR as the main
25499 routine for the debugger.
25500 .IP "\fB\-mmalloc64\fR" 4
25501 .IX Item "-mmalloc64"
25502 Default to 64\-bit memory allocation routines.
25503 .IP "\fB\-mpointer\-size=\fR\fIsize\fR" 4
25504 .IX Item "-mpointer-size=size"
25505 Set the default size of pointers. Possible options for \fIsize\fR are
25506 \&\fB32\fR or \fBshort\fR for 32 bit pointers, \fB64\fR or \fBlong\fR
25507 for 64 bit pointers, and \fBno\fR for supporting only 32 bit pointers.
25508 The later option disables \f(CW\*(C`pragma pointer_size\*(C'\fR.
25509 .PP
25510 \fIVxWorks Options\fR
25511 .IX Subsection "VxWorks Options"
25512 .PP
25513 The options in this section are defined for all VxWorks targets.
25514 Options specific to the target hardware are listed with the other
25515 options for that target.
25516 .IP "\fB\-mrtp\fR" 4
25517 .IX Item "-mrtp"
25518 \&\s-1GCC\s0 can generate code for both VxWorks kernels and real time processes
25519 (RTPs).  This option switches from the former to the latter.  It also
25520 defines the preprocessor macro \f(CW\*(C`_\|_RTP_\|_\*(C'\fR.
25521 .IP "\fB\-non\-static\fR" 4
25522 .IX Item "-non-static"
25523 Link an \s-1RTP\s0 executable against shared libraries rather than static
25524 libraries.  The options \fB\-static\fR and \fB\-shared\fR can
25525 also be used for RTPs; \fB\-static\fR
25526 is the default.
25527 .IP "\fB\-Bstatic\fR" 4
25528 .IX Item "-Bstatic"
25529 .PD 0
25530 .IP "\fB\-Bdynamic\fR" 4
25531 .IX Item "-Bdynamic"
25532 .PD
25533 These options are passed down to the linker.  They are defined for
25534 compatibility with Diab.
25535 .IP "\fB\-Xbind\-lazy\fR" 4
25536 .IX Item "-Xbind-lazy"
25537 Enable lazy binding of function calls.  This option is equivalent to
25538 \&\fB\-Wl,\-z,now\fR and is defined for compatibility with Diab.
25539 .IP "\fB\-Xbind\-now\fR" 4
25540 .IX Item "-Xbind-now"
25541 Disable lazy binding of function calls.  This option is the default and
25542 is defined for compatibility with Diab.
25543 .PP
25544 \fIx86 Options\fR
25545 .IX Subsection "x86 Options"
25546 .PP
25547 These \fB\-m\fR options are defined for the x86 family of computers.
25548 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
25549 .IX Item "-march=cpu-type"
25550 Generate instructions for the machine type \fIcpu-type\fR.  In contrast to
25551 \&\fB\-mtune=\fR\fIcpu-type\fR, which merely tunes the generated code 
25552 for the specified \fIcpu-type\fR, \fB\-march=\fR\fIcpu-type\fR allows \s-1GCC\s0
25553 to generate code that may not run at all on processors other than the one
25554 indicated.  Specifying \fB\-march=\fR\fIcpu-type\fR implies 
25555 \&\fB\-mtune=\fR\fIcpu-type\fR.
25556 .Sp
25557 The choices for \fIcpu-type\fR are:
25558 .RS 4
25559 .IP "\fBnative\fR" 4
25560 .IX Item "native"
25561 This selects the \s-1CPU\s0 to generate code for at compilation time by determining
25562 the processor type of the compiling machine.  Using \fB\-march=native\fR
25563 enables all instruction subsets supported by the local machine (hence
25564 the result might not run on different machines).  Using \fB\-mtune=native\fR
25565 produces code optimized for the local machine under the constraints
25566 of the selected instruction set.
25567 .IP "\fBx86\-64\fR" 4
25568 .IX Item "x86-64"
25569 A generic \s-1CPU\s0 with 64\-bit extensions.
25570 .IP "\fBi386\fR" 4
25571 .IX Item "i386"
25572 Original Intel i386 \s-1CPU.\s0
25573 .IP "\fBi486\fR" 4
25574 .IX Item "i486"
25575 Intel i486 \s-1CPU.\s0  (No scheduling is implemented for this chip.)
25576 .IP "\fBi586\fR" 4
25577 .IX Item "i586"
25578 .PD 0
25579 .IP "\fBpentium\fR" 4
25580 .IX Item "pentium"
25581 .PD
25582 Intel Pentium \s-1CPU\s0 with no \s-1MMX\s0 support.
25583 .IP "\fBlakemont\fR" 4
25584 .IX Item "lakemont"
25585 Intel Lakemont \s-1MCU,\s0 based on Intel Pentium \s-1CPU.\s0
25586 .IP "\fBpentium-mmx\fR" 4
25587 .IX Item "pentium-mmx"
25588 Intel Pentium \s-1MMX CPU,\s0 based on Pentium core with \s-1MMX\s0 instruction set support.
25589 .IP "\fBpentiumpro\fR" 4
25590 .IX Item "pentiumpro"
25591 Intel Pentium Pro \s-1CPU.\s0
25592 .IP "\fBi686\fR" 4
25593 .IX Item "i686"
25594 When used with \fB\-march\fR, the Pentium Pro
25595 instruction set is used, so the code runs on all i686 family chips.
25596 When used with \fB\-mtune\fR, it has the same meaning as \fBgeneric\fR.
25597 .IP "\fBpentium2\fR" 4
25598 .IX Item "pentium2"
25599 Intel Pentium \s-1II CPU,\s0 based on Pentium Pro core with \s-1MMX\s0 instruction set
25600 support.
25601 .IP "\fBpentium3\fR" 4
25602 .IX Item "pentium3"
25603 .PD 0
25604 .IP "\fBpentium3m\fR" 4
25605 .IX Item "pentium3m"
25606 .PD
25607 Intel Pentium \s-1III CPU,\s0 based on Pentium Pro core with \s-1MMX\s0 and \s-1SSE\s0 instruction
25608 set support.
25609 .IP "\fBpentium-m\fR" 4
25610 .IX Item "pentium-m"
25611 Intel Pentium M; low-power version of Intel Pentium \s-1III CPU\s0
25612 with \s-1MMX, SSE\s0 and \s-1SSE2\s0 instruction set support.  Used by Centrino notebooks.
25613 .IP "\fBpentium4\fR" 4
25614 .IX Item "pentium4"
25615 .PD 0
25616 .IP "\fBpentium4m\fR" 4
25617 .IX Item "pentium4m"
25618 .PD
25619 Intel Pentium 4 \s-1CPU\s0 with \s-1MMX, SSE\s0 and \s-1SSE2\s0 instruction set support.
25620 .IP "\fBprescott\fR" 4
25621 .IX Item "prescott"
25622 Improved version of Intel Pentium 4 \s-1CPU\s0 with \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction
25623 set support.
25624 .IP "\fBnocona\fR" 4
25625 .IX Item "nocona"
25626 Improved version of Intel Pentium 4 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE,
25627 SSE2\s0 and \s-1SSE3\s0 instruction set support.
25628 .IP "\fBcore2\fR" 4
25629 .IX Item "core2"
25630 Intel Core 2 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
25631 instruction set support.
25632 .IP "\fBnehalem\fR" 4
25633 .IX Item "nehalem"
25634 Intel Nehalem \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
25635 SSE4.1, SSE4.2\s0 and \s-1POPCNT\s0 instruction set support.
25636 .IP "\fBwestmere\fR" 4
25637 .IX Item "westmere"
25638 Intel Westmere \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
25639 SSE4.1, SSE4.2, POPCNT, AES\s0 and \s-1PCLMUL\s0 instruction set support.
25640 .IP "\fBsandybridge\fR" 4
25641 .IX Item "sandybridge"
25642 Intel Sandy Bridge \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
25643 SSE4.1, SSE4.2, POPCNT, AVX, AES\s0 and \s-1PCLMUL\s0 instruction set support.
25644 .IP "\fBivybridge\fR" 4
25645 .IX Item "ivybridge"
25646 Intel Ivy Bridge \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
25647 SSE4.1, SSE4.2, POPCNT, AVX, AES, PCLMUL, FSGSBASE, RDRND\s0 and F16C
25648 instruction set support.
25649 .IP "\fBhaswell\fR" 4
25650 .IX Item "haswell"
25651 Intel Haswell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
25652 SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
25653 BMI, BMI2\s0 and F16C instruction set support.
25654 .IP "\fBbroadwell\fR" 4
25655 .IX Item "broadwell"
25656 Intel Broadwell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
25657 SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
25658 BMI, BMI2, F16C, RDSEED, ADCX\s0 and \s-1PREFETCHW\s0 instruction set support.
25659 .IP "\fBskylake\fR" 4
25660 .IX Item "skylake"
25661 Intel Skylake \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
25662 SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
25663 BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC\s0 and
25664 \&\s-1XSAVES\s0 instruction set support.
25665 .IP "\fBbonnell\fR" 4
25666 .IX Item "bonnell"
25667 Intel Bonnell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
25668 instruction set support.
25669 .IP "\fBsilvermont\fR" 4
25670 .IX Item "silvermont"
25671 Intel Silvermont \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
25672 SSE4.1, SSE4.2, POPCNT, AES, PCLMUL\s0 and \s-1RDRND\s0 instruction set support.
25673 .IP "\fBknl\fR" 4
25674 .IX Item "knl"
25675 Intel Knight's Landing \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3,
25676 SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
25677 BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, AVX512F, AVX512PF, AVX512ER\s0 and
25678 \&\s-1AVX512CD\s0 instruction set support.
25679 .IP "\fBknm\fR" 4
25680 .IX Item "knm"
25681 Intel Knights Mill \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3,
25682 SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
25683 BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, AVX512F, AVX512PF, AVX512ER, AVX512CD,
25684 AVX5124VNNIW, AVX5124FMAPS\s0 and \s-1AVX512VPOPCNTDQ\s0 instruction set support.
25685 .IP "\fBskylake\-avx512\fR" 4
25686 .IX Item "skylake-avx512"
25687 Intel Skylake Server \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3,
25688 SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
25689 BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
25690 CLWB, AVX512VL, AVX512BW, AVX512DQ\s0 and \s-1AVX512CD\s0 instruction set support.
25691 .IP "\fBcannonlake\fR" 4
25692 .IX Item "cannonlake"
25693 Intel Cannonlake Server \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2,
25694 SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE,
25695 RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC,
25696 XSAVES, AVX512F, AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
25697 AVX512IFMA, SHA\s0 and \s-1UMIP\s0 instruction set support.
25698 .IP "\fBicelake-client\fR" 4
25699 .IX Item "icelake-client"
25700 Intel Icelake Client \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2,
25701 SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE,
25702 RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC,
25703 XSAVES, AVX512F, AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
25704 AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2, AVX512VPOPCNTDQ,
25705 AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES\s0 instruction set support.
25706 .IP "\fBicelake-server\fR" 4
25707 .IX Item "icelake-server"
25708 Intel Icelake Server \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2,
25709 SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE,
25710 RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC,
25711 XSAVES, AVX512F, AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
25712 AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2, AVX512VPOPCNTDQ,
25713 AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES, PCONFIG\s0 and \s-1WBNOINVD\s0 instruction
25714 set support.
25715 .IP "\fBk6\fR" 4
25716 .IX Item "k6"
25717 \&\s-1AMD K6 CPU\s0 with \s-1MMX\s0 instruction set support.
25718 .IP "\fBk6\-2\fR" 4
25719 .IX Item "k6-2"
25720 .PD 0
25721 .IP "\fBk6\-3\fR" 4
25722 .IX Item "k6-3"
25723 .PD
25724 Improved versions of \s-1AMD K6 CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.
25725 .IP "\fBathlon\fR" 4
25726 .IX Item "athlon"
25727 .PD 0
25728 .IP "\fBathlon-tbird\fR" 4
25729 .IX Item "athlon-tbird"
25730 .PD
25731 \&\s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX,\s0 3dNOW!, enhanced 3DNow! and \s-1SSE\s0 prefetch instructions
25732 support.
25733 .IP "\fBathlon\-4\fR" 4
25734 .IX Item "athlon-4"
25735 .PD 0
25736 .IP "\fBathlon-xp\fR" 4
25737 .IX Item "athlon-xp"
25738 .IP "\fBathlon-mp\fR" 4
25739 .IX Item "athlon-mp"
25740 .PD
25741 Improved \s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX,\s0 3DNow!, enhanced 3DNow! and full \s-1SSE\s0
25742 instruction set support.
25743 .IP "\fBk8\fR" 4
25744 .IX Item "k8"
25745 .PD 0
25746 .IP "\fBopteron\fR" 4
25747 .IX Item "opteron"
25748 .IP "\fBathlon64\fR" 4
25749 .IX Item "athlon64"
25750 .IP "\fBathlon-fx\fR" 4
25751 .IX Item "athlon-fx"
25752 .PD
25753 Processors based on the \s-1AMD K8\s0 core with x86\-64 instruction set support,
25754 including the \s-1AMD\s0 Opteron, Athlon 64, and Athlon 64 \s-1FX\s0 processors.
25755 (This supersets \s-1MMX, SSE, SSE2,\s0 3DNow!, enhanced 3DNow! and 64\-bit
25756 instruction set extensions.)
25757 .IP "\fBk8\-sse3\fR" 4
25758 .IX Item "k8-sse3"
25759 .PD 0
25760 .IP "\fBopteron\-sse3\fR" 4
25761 .IX Item "opteron-sse3"
25762 .IP "\fBathlon64\-sse3\fR" 4
25763 .IX Item "athlon64-sse3"
25764 .PD
25765 Improved versions of \s-1AMD K8\s0 cores with \s-1SSE3\s0 instruction set support.
25766 .IP "\fBamdfam10\fR" 4
25767 .IX Item "amdfam10"
25768 .PD 0
25769 .IP "\fBbarcelona\fR" 4
25770 .IX Item "barcelona"
25771 .PD
25772 CPUs based on \s-1AMD\s0 Family 10h cores with x86\-64 instruction set support.  (This
25773 supersets \s-1MMX, SSE, SSE2, SSE3, SSE4A,\s0 3DNow!, enhanced 3DNow!, \s-1ABM\s0 and 64\-bit
25774 instruction set extensions.)
25775 .IP "\fBbdver1\fR" 4
25776 .IX Item "bdver1"
25777 CPUs based on \s-1AMD\s0 Family 15h cores with x86\-64 instruction set support.  (This
25778 supersets \s-1FMA4, AVX, XOP, LWP, AES, PCL_MUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A,
25779 SSSE3, SSE4.1, SSE4.2, ABM\s0 and 64\-bit instruction set extensions.)
25780 .IP "\fBbdver2\fR" 4
25781 .IX Item "bdver2"
25782 \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support.  (This
25783 supersets \s-1BMI, TBM, F16C, FMA, FMA4, AVX, XOP, LWP, AES, PCL_MUL, CX16, MMX,
25784 SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM\s0 and 64\-bit instruction set 
25785 extensions.)
25786 .IP "\fBbdver3\fR" 4
25787 .IX Item "bdver3"
25788 \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support.  (This
25789 supersets \s-1BMI, TBM, F16C, FMA, FMA4, FSGSBASE, AVX, XOP, LWP, AES,\s0 
25790 \&\s-1PCL_MUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM\s0 and 
25791 64\-bit instruction set extensions.
25792 .IP "\fBbdver4\fR" 4
25793 .IX Item "bdver4"
25794 \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support.  (This
25795 supersets \s-1BMI, BMI2, TBM, F16C, FMA, FMA4, FSGSBASE, AVX, AVX2, XOP, LWP,\s0 
25796 \&\s-1AES, PCL_MUL, CX16, MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1,\s0 
25797 \&\s-1SSE4.2, ABM\s0 and 64\-bit instruction set extensions.
25798 .IP "\fBznver1\fR" 4
25799 .IX Item "znver1"
25800 \&\s-1AMD\s0 Family 17h core based CPUs with x86\-64 instruction set support.  (This
25801 supersets \s-1BMI, BMI2, F16C, FMA, FSGSBASE, AVX, AVX2, ADCX, RDSEED, MWAITX,
25802 SHA, CLZERO, AES, PCL_MUL, CX16, MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3,
25803 SSE4.1, SSE4.2, ABM, XSAVEC, XSAVES, CLFLUSHOPT, POPCNT,\s0 and 64\-bit
25804 instruction set extensions.
25805 .IP "\fBbtver1\fR" 4
25806 .IX Item "btver1"
25807 CPUs based on \s-1AMD\s0 Family 14h cores with x86\-64 instruction set support.  (This
25808 supersets \s-1MMX, SSE, SSE2, SSE3, SSSE3, SSE4A, CX16, ABM\s0 and 64\-bit
25809 instruction set extensions.)
25810 .IP "\fBbtver2\fR" 4
25811 .IX Item "btver2"
25812 CPUs based on \s-1AMD\s0 Family 16h cores with x86\-64 instruction set support. This
25813 includes \s-1MOVBE, F16C, BMI, AVX, PCL_MUL, AES, SSE4.2, SSE4.1, CX16, ABM,
25814 SSE4A, SSSE3, SSE3, SSE2, SSE, MMX\s0 and 64\-bit instruction set extensions.
25815 .IP "\fBwinchip\-c6\fR" 4
25816 .IX Item "winchip-c6"
25817 \&\s-1IDT\s0 WinChip C6 \s-1CPU,\s0 dealt in same way as i486 with additional \s-1MMX\s0 instruction
25818 set support.
25819 .IP "\fBwinchip2\fR" 4
25820 .IX Item "winchip2"
25821 \&\s-1IDT\s0 WinChip 2 \s-1CPU,\s0 dealt in same way as i486 with additional \s-1MMX\s0 and 3DNow!
25822 instruction set support.
25823 .IP "\fBc3\fR" 4
25824 .IX Item "c3"
25825 \&\s-1VIA C3 CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.
25826 (No scheduling is implemented for this chip.)
25827 .IP "\fBc3\-2\fR" 4
25828 .IX Item "c3-2"
25829 \&\s-1VIA C3\-2\s0 (Nehemiah/C5XL) \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.
25830 (No scheduling is implemented for this chip.)
25831 .IP "\fBc7\fR" 4
25832 .IX Item "c7"
25833 \&\s-1VIA C7\s0 (Esther) \s-1CPU\s0 with \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction set support.
25834 (No scheduling is implemented for this chip.)
25835 .IP "\fBsamuel\-2\fR" 4
25836 .IX Item "samuel-2"
25837 \&\s-1VIA\s0 Eden Samuel 2 \s-1CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.
25838 (No scheduling is implemented for this chip.)
25839 .IP "\fBnehemiah\fR" 4
25840 .IX Item "nehemiah"
25841 \&\s-1VIA\s0 Eden Nehemiah \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.
25842 (No scheduling is implemented for this chip.)
25843 .IP "\fBesther\fR" 4
25844 .IX Item "esther"
25845 \&\s-1VIA\s0 Eden Esther \s-1CPU\s0 with \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction set support.
25846 (No scheduling is implemented for this chip.)
25847 .IP "\fBeden\-x2\fR" 4
25848 .IX Item "eden-x2"
25849 \&\s-1VIA\s0 Eden X2 \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction set support.
25850 (No scheduling is implemented for this chip.)
25851 .IP "\fBeden\-x4\fR" 4
25852 .IX Item "eden-x4"
25853 \&\s-1VIA\s0 Eden X4 \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2,
25854 AVX\s0 and \s-1AVX2\s0 instruction set support.
25855 (No scheduling is implemented for this chip.)
25856 .IP "\fBnano\fR" 4
25857 .IX Item "nano"
25858 Generic \s-1VIA\s0 Nano \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
25859 instruction set support.
25860 (No scheduling is implemented for this chip.)
25861 .IP "\fBnano\-1000\fR" 4
25862 .IX Item "nano-1000"
25863 \&\s-1VIA\s0 Nano 1xxx \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
25864 instruction set support.
25865 (No scheduling is implemented for this chip.)
25866 .IP "\fBnano\-2000\fR" 4
25867 .IX Item "nano-2000"
25868 \&\s-1VIA\s0 Nano 2xxx \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
25869 instruction set support.
25870 (No scheduling is implemented for this chip.)
25871 .IP "\fBnano\-3000\fR" 4
25872 .IX Item "nano-3000"
25873 \&\s-1VIA\s0 Nano 3xxx \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3, SSSE3\s0 and \s-1SSE4.1\s0
25874 instruction set support.
25875 (No scheduling is implemented for this chip.)
25876 .IP "\fBnano\-x2\fR" 4
25877 .IX Item "nano-x2"
25878 \&\s-1VIA\s0 Nano Dual Core \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3, SSSE3\s0 and \s-1SSE4.1\s0
25879 instruction set support.
25880 (No scheduling is implemented for this chip.)
25881 .IP "\fBnano\-x4\fR" 4
25882 .IX Item "nano-x4"
25883 \&\s-1VIA\s0 Nano Quad Core \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3, SSSE3\s0 and \s-1SSE4.1\s0
25884 instruction set support.
25885 (No scheduling is implemented for this chip.)
25886 .IP "\fBgeode\fR" 4
25887 .IX Item "geode"
25888 \&\s-1AMD\s0 Geode embedded processor with \s-1MMX\s0 and 3DNow! instruction set support.
25889 .RE
25890 .RS 4
25891 .RE
25892 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
25893 .IX Item "-mtune=cpu-type"
25894 Tune to \fIcpu-type\fR everything applicable about the generated code, except
25895 for the \s-1ABI\s0 and the set of available instructions.  
25896 While picking a specific \fIcpu-type\fR schedules things appropriately
25897 for that particular chip, the compiler does not generate any code that
25898 cannot run on the default machine type unless you use a
25899 \&\fB\-march=\fR\fIcpu-type\fR option.
25900 For example, if \s-1GCC\s0 is configured for i686\-pc\-linux\-gnu
25901 then \fB\-mtune=pentium4\fR generates code that is tuned for Pentium 4
25902 but still runs on i686 machines.
25903 .Sp
25904 The choices for \fIcpu-type\fR are the same as for \fB\-march\fR.
25905 In addition, \fB\-mtune\fR supports 2 extra choices for \fIcpu-type\fR:
25906 .RS 4
25907 .IP "\fBgeneric\fR" 4
25908 .IX Item "generic"
25909 Produce code optimized for the most common \s-1IA32/AMD64/EM64T\s0 processors.
25910 If you know the \s-1CPU\s0 on which your code will run, then you should use
25911 the corresponding \fB\-mtune\fR or \fB\-march\fR option instead of
25912 \&\fB\-mtune=generic\fR.  But, if you do not know exactly what \s-1CPU\s0 users
25913 of your application will have, then you should use this option.
25914 .Sp
25915 As new processors are deployed in the marketplace, the behavior of this
25916 option will change.  Therefore, if you upgrade to a newer version of
25917 \&\s-1GCC,\s0 code generation controlled by this option will change to reflect
25918 the processors
25919 that are most common at the time that version of \s-1GCC\s0 is released.
25920 .Sp
25921 There is no \fB\-march=generic\fR option because \fB\-march\fR
25922 indicates the instruction set the compiler can use, and there is no
25923 generic instruction set applicable to all processors.  In contrast,
25924 \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
25925 processors) for which the code is optimized.
25926 .IP "\fBintel\fR" 4
25927 .IX Item "intel"
25928 Produce code optimized for the most current Intel processors, which are
25929 Haswell and Silvermont for this version of \s-1GCC.\s0  If you know the \s-1CPU\s0
25930 on which your code will run, then you should use the corresponding
25931 \&\fB\-mtune\fR or \fB\-march\fR option instead of \fB\-mtune=intel\fR.
25932 But, if you want your application performs better on both Haswell and
25933 Silvermont, then you should use this option.
25934 .Sp
25935 As new Intel processors are deployed in the marketplace, the behavior of
25936 this option will change.  Therefore, if you upgrade to a newer version of
25937 \&\s-1GCC,\s0 code generation controlled by this option will change to reflect
25938 the most current Intel processors at the time that version of \s-1GCC\s0 is
25939 released.
25940 .Sp
25941 There is no \fB\-march=intel\fR option because \fB\-march\fR indicates
25942 the instruction set the compiler can use, and there is no common
25943 instruction set applicable to all processors.  In contrast,
25944 \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
25945 processors) for which the code is optimized.
25946 .RE
25947 .RS 4
25948 .RE
25949 .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
25950 .IX Item "-mcpu=cpu-type"
25951 A deprecated synonym for \fB\-mtune\fR.
25952 .IP "\fB\-mfpmath=\fR\fIunit\fR" 4
25953 .IX Item "-mfpmath=unit"
25954 Generate floating-point arithmetic for selected unit \fIunit\fR.  The choices
25955 for \fIunit\fR are:
25956 .RS 4
25957 .IP "\fB387\fR" 4
25958 .IX Item "387"
25959 Use the standard 387 floating-point coprocessor present on the majority of chips and
25960 emulated otherwise.  Code compiled with this option runs almost everywhere.
25961 The temporary results are computed in 80\-bit precision instead of the precision
25962 specified by the type, resulting in slightly different results compared to most
25963 of other chips.  See \fB\-ffloat\-store\fR for more detailed description.
25964 .Sp
25965 This is the default choice for non-Darwin x86\-32 targets.
25966 .IP "\fBsse\fR" 4
25967 .IX Item "sse"
25968 Use scalar floating-point instructions present in the \s-1SSE\s0 instruction set.
25969 This instruction set is supported by Pentium \s-1III\s0 and newer chips,
25970 and in the \s-1AMD\s0 line
25971 by Athlon\-4, Athlon \s-1XP\s0 and Athlon \s-1MP\s0 chips.  The earlier version of the \s-1SSE\s0
25972 instruction set supports only single-precision arithmetic, thus the double and
25973 extended-precision arithmetic are still done using 387.  A later version, present
25974 only in Pentium 4 and \s-1AMD\s0 x86\-64 chips, supports double-precision
25975 arithmetic too.
25976 .Sp
25977 For the x86\-32 compiler, you must use \fB\-march=\fR\fIcpu-type\fR, \fB\-msse\fR
25978 or \fB\-msse2\fR switches to enable \s-1SSE\s0 extensions and make this option
25979 effective.  For the x86\-64 compiler, these extensions are enabled by default.
25980 .Sp
25981 The resulting code should be considerably faster in the majority of cases and avoid
25982 the numerical instability problems of 387 code, but may break some existing
25983 code that expects temporaries to be 80 bits.
25984 .Sp
25985 This is the default choice for the x86\-64 compiler, Darwin x86\-32 targets,
25986 and the default choice for x86\-32 targets with the \s-1SSE2\s0 instruction set
25987 when \fB\-ffast\-math\fR is enabled.
25988 .IP "\fBsse,387\fR" 4
25989 .IX Item "sse,387"
25990 .PD 0
25991 .IP "\fBsse+387\fR" 4
25992 .IX Item "sse+387"
25993 .IP "\fBboth\fR" 4
25994 .IX Item "both"
25995 .PD
25996 Attempt to utilize both instruction sets at once.  This effectively doubles the
25997 amount of available registers, and on chips with separate execution units for
25998 387 and \s-1SSE\s0 the execution resources too.  Use this option with care, as it is
25999 still experimental, because the \s-1GCC\s0 register allocator does not model separate
26000 functional units well, resulting in unstable performance.
26001 .RE
26002 .RS 4
26003 .RE
26004 .IP "\fB\-masm=\fR\fIdialect\fR" 4
26005 .IX Item "-masm=dialect"
26006 Output assembly instructions using selected \fIdialect\fR.  Also affects
26007 which dialect is used for basic \f(CW\*(C`asm\*(C'\fR and
26008 extended \f(CW\*(C`asm\*(C'\fR. Supported choices (in dialect
26009 order) are \fBatt\fR or \fBintel\fR. The default is \fBatt\fR. Darwin does
26010 not support \fBintel\fR.
26011 .IP "\fB\-mieee\-fp\fR" 4
26012 .IX Item "-mieee-fp"
26013 .PD 0
26014 .IP "\fB\-mno\-ieee\-fp\fR" 4
26015 .IX Item "-mno-ieee-fp"
26016 .PD
26017 Control whether or not the compiler uses \s-1IEEE\s0 floating-point
26018 comparisons.  These correctly handle the case where the result of a
26019 comparison is unordered.
26020 .IP "\fB\-m80387\fR" 4
26021 .IX Item "-m80387"
26022 .PD 0
26023 .IP "\fB\-mhard\-float\fR" 4
26024 .IX Item "-mhard-float"
26025 .PD
26026 Generate output containing 80387 instructions for floating point.
26027 .IP "\fB\-mno\-80387\fR" 4
26028 .IX Item "-mno-80387"
26029 .PD 0
26030 .IP "\fB\-msoft\-float\fR" 4
26031 .IX Item "-msoft-float"
26032 .PD
26033 Generate output containing library calls for floating point.
26034 .Sp
26035 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC.\s0
26036 Normally the facilities of the machine's usual C compiler are used, but
26037 this cannot be done directly in cross-compilation.  You must make your
26038 own arrangements to provide suitable library functions for
26039 cross-compilation.
26040 .Sp
26041 On machines where a function returns floating-point results in the 80387
26042 register stack, some floating-point opcodes may be emitted even if
26043 \&\fB\-msoft\-float\fR is used.
26044 .IP "\fB\-mno\-fp\-ret\-in\-387\fR" 4
26045 .IX Item "-mno-fp-ret-in-387"
26046 Do not use the \s-1FPU\s0 registers for return values of functions.
26047 .Sp
26048 The usual calling convention has functions return values of types
26049 \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR in an \s-1FPU\s0 register, even if there
26050 is no \s-1FPU.\s0  The idea is that the operating system should emulate
26051 an \s-1FPU.\s0
26052 .Sp
26053 The option \fB\-mno\-fp\-ret\-in\-387\fR causes such values to be returned
26054 in ordinary \s-1CPU\s0 registers instead.
26055 .IP "\fB\-mno\-fancy\-math\-387\fR" 4
26056 .IX Item "-mno-fancy-math-387"
26057 Some 387 emulators do not support the \f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR and
26058 \&\f(CW\*(C`sqrt\*(C'\fR instructions for the 387.  Specify this option to avoid
26059 generating those instructions.  This option is the default on
26060 OpenBSD and NetBSD.  This option is overridden when \fB\-march\fR
26061 indicates that the target \s-1CPU\s0 always has an \s-1FPU\s0 and so the
26062 instruction does not need emulation.  These
26063 instructions are not generated unless you also use the
26064 \&\fB\-funsafe\-math\-optimizations\fR switch.
26065 .IP "\fB\-malign\-double\fR" 4
26066 .IX Item "-malign-double"
26067 .PD 0
26068 .IP "\fB\-mno\-align\-double\fR" 4
26069 .IX Item "-mno-align-double"
26070 .PD
26071 Control whether \s-1GCC\s0 aligns \f(CW\*(C`double\*(C'\fR, \f(CW\*(C`long double\*(C'\fR, and
26072 \&\f(CW\*(C`long long\*(C'\fR variables on a two-word boundary or a one-word
26073 boundary.  Aligning \f(CW\*(C`double\*(C'\fR variables on a two-word boundary
26074 produces code that runs somewhat faster on a Pentium at the
26075 expense of more memory.
26076 .Sp
26077 On x86\-64, \fB\-malign\-double\fR is enabled by default.
26078 .Sp
26079 \&\fBWarning:\fR if you use the \fB\-malign\-double\fR switch,
26080 structures containing the above types are aligned differently than
26081 the published application binary interface specifications for the x86\-32
26082 and are not binary compatible with structures in code compiled
26083 without that switch.
26084 .IP "\fB\-m96bit\-long\-double\fR" 4
26085 .IX Item "-m96bit-long-double"
26086 .PD 0
26087 .IP "\fB\-m128bit\-long\-double\fR" 4
26088 .IX Item "-m128bit-long-double"
26089 .PD
26090 These switches control the size of \f(CW\*(C`long double\*(C'\fR type.  The x86\-32
26091 application binary interface specifies the size to be 96 bits,
26092 so \fB\-m96bit\-long\-double\fR is the default in 32\-bit mode.
26093 .Sp
26094 Modern architectures (Pentium and newer) prefer \f(CW\*(C`long double\*(C'\fR
26095 to be aligned to an 8\- or 16\-byte boundary.  In arrays or structures
26096 conforming to the \s-1ABI,\s0 this is not possible.  So specifying
26097 \&\fB\-m128bit\-long\-double\fR aligns \f(CW\*(C`long double\*(C'\fR
26098 to a 16\-byte boundary by padding the \f(CW\*(C`long double\*(C'\fR with an additional
26099 32\-bit zero.
26100 .Sp
26101 In the x86\-64 compiler, \fB\-m128bit\-long\-double\fR is the default choice as
26102 its \s-1ABI\s0 specifies that \f(CW\*(C`long double\*(C'\fR is aligned on 16\-byte boundary.
26103 .Sp
26104 Notice that neither of these options enable any extra precision over the x87
26105 standard of 80 bits for a \f(CW\*(C`long double\*(C'\fR.
26106 .Sp
26107 \&\fBWarning:\fR if you override the default value for your target \s-1ABI,\s0 this
26108 changes the size of 
26109 structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables,
26110 as well as modifying the function calling convention for functions taking
26111 \&\f(CW\*(C`long double\*(C'\fR.  Hence they are not binary-compatible
26112 with code compiled without that switch.
26113 .IP "\fB\-mlong\-double\-64\fR" 4
26114 .IX Item "-mlong-double-64"
26115 .PD 0
26116 .IP "\fB\-mlong\-double\-80\fR" 4
26117 .IX Item "-mlong-double-80"
26118 .IP "\fB\-mlong\-double\-128\fR" 4
26119 .IX Item "-mlong-double-128"
26120 .PD
26121 These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
26122 of 64 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
26123 type. This is the default for 32\-bit Bionic C library.  A size
26124 of 128 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the
26125 \&\f(CW\*(C`_\|_float128\*(C'\fR type. This is the default for 64\-bit Bionic C library.
26126 .Sp
26127 \&\fBWarning:\fR if you override the default value for your target \s-1ABI,\s0 this
26128 changes the size of
26129 structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables,
26130 as well as modifying the function calling convention for functions taking
26131 \&\f(CW\*(C`long double\*(C'\fR.  Hence they are not binary-compatible
26132 with code compiled without that switch.
26133 .IP "\fB\-malign\-data=\fR\fItype\fR" 4
26134 .IX Item "-malign-data=type"
26135 Control how \s-1GCC\s0 aligns variables.  Supported values for \fItype\fR are
26136 \&\fBcompat\fR uses increased alignment value compatible uses \s-1GCC 4.8\s0
26137 and earlier, \fBabi\fR uses alignment value as specified by the
26138 psABI, and \fBcacheline\fR uses increased alignment value to match
26139 the cache line size.  \fBcompat\fR is the default.
26140 .IP "\fB\-mlarge\-data\-threshold=\fR\fIthreshold\fR" 4
26141 .IX Item "-mlarge-data-threshold=threshold"
26142 When \fB\-mcmodel=medium\fR is specified, data objects larger than
26143 \&\fIthreshold\fR are placed in the large data section.  This value must be the
26144 same across all objects linked into the binary, and defaults to 65535.
26145 .IP "\fB\-mrtd\fR" 4
26146 .IX Item "-mrtd"
26147 Use a different function-calling convention, in which functions that
26148 take a fixed number of arguments return with the \f(CW\*(C`ret \f(CInum\f(CW\*(C'\fR
26149 instruction, which pops their arguments while returning.  This saves one
26150 instruction in the caller since there is no need to pop the arguments
26151 there.
26152 .Sp
26153 You can specify that an individual function is called with this calling
26154 sequence with the function attribute \f(CW\*(C`stdcall\*(C'\fR.  You can also
26155 override the \fB\-mrtd\fR option by using the function attribute
26156 \&\f(CW\*(C`cdecl\*(C'\fR.
26157 .Sp
26158 \&\fBWarning:\fR this calling convention is incompatible with the one
26159 normally used on Unix, so you cannot use it if you need to call
26160 libraries compiled with the Unix compiler.
26161 .Sp
26162 Also, you must provide function prototypes for all functions that
26163 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
26164 otherwise incorrect code is generated for calls to those
26165 functions.
26166 .Sp
26167 In addition, seriously incorrect code results if you call a
26168 function with too many arguments.  (Normally, extra arguments are
26169 harmlessly ignored.)
26170 .IP "\fB\-mregparm=\fR\fInum\fR" 4
26171 .IX Item "-mregparm=num"
26172 Control how many registers are used to pass integer arguments.  By
26173 default, no registers are used to pass arguments, and at most 3
26174 registers can be used.  You can control this behavior for a specific
26175 function by using the function attribute \f(CW\*(C`regparm\*(C'\fR.
26176 .Sp
26177 \&\fBWarning:\fR if you use this switch, and
26178 \&\fInum\fR is nonzero, then you must build all modules with the same
26179 value, including any libraries.  This includes the system libraries and
26180 startup modules.
26181 .IP "\fB\-msseregparm\fR" 4
26182 .IX Item "-msseregparm"
26183 Use \s-1SSE\s0 register passing conventions for float and double arguments
26184 and return values.  You can control this behavior for a specific
26185 function by using the function attribute \f(CW\*(C`sseregparm\*(C'\fR.
26186 .Sp
26187 \&\fBWarning:\fR if you use this switch then you must build all
26188 modules with the same value, including any libraries.  This includes
26189 the system libraries and startup modules.
26190 .IP "\fB\-mvect8\-ret\-in\-mem\fR" 4
26191 .IX Item "-mvect8-ret-in-mem"
26192 Return 8\-byte vectors in memory instead of \s-1MMX\s0 registers.  This is the
26193 default on Solaris@tie{}8 and 9 and VxWorks to match the \s-1ABI\s0 of the Sun
26194 Studio compilers until version 12.  Later compiler versions (starting
26195 with Studio 12 Update@tie{}1) follow the \s-1ABI\s0 used by other x86 targets, which
26196 is the default on Solaris@tie{}10 and later.  \fIOnly\fR use this option if
26197 you need to remain compatible with existing code produced by those
26198 previous compiler versions or older versions of \s-1GCC.\s0
26199 .IP "\fB\-mpc32\fR" 4
26200 .IX Item "-mpc32"
26201 .PD 0
26202 .IP "\fB\-mpc64\fR" 4
26203 .IX Item "-mpc64"
26204 .IP "\fB\-mpc80\fR" 4
26205 .IX Item "-mpc80"
26206 .PD
26207 Set 80387 floating-point precision to 32, 64 or 80 bits.  When \fB\-mpc32\fR
26208 is specified, the significands of results of floating-point operations are
26209 rounded to 24 bits (single precision); \fB\-mpc64\fR rounds the
26210 significands of results of floating-point operations to 53 bits (double
26211 precision) and \fB\-mpc80\fR rounds the significands of results of
26212 floating-point operations to 64 bits (extended double precision), which is
26213 the default.  When this option is used, floating-point operations in higher
26214 precisions are not available to the programmer without setting the \s-1FPU\s0
26215 control word explicitly.
26216 .Sp
26217 Setting the rounding of floating-point operations to less than the default
26218 80 bits can speed some programs by 2% or more.  Note that some mathematical
26219 libraries assume that extended-precision (80\-bit) floating-point operations
26220 are enabled by default; routines in such libraries could suffer significant
26221 loss of accuracy, typically through so-called \*(L"catastrophic cancellation\*(R",
26222 when this option is used to set the precision to less than extended precision.
26223 .IP "\fB\-mstackrealign\fR" 4
26224 .IX Item "-mstackrealign"
26225 Realign the stack at entry.  On the x86, the \fB\-mstackrealign\fR
26226 option generates an alternate prologue and epilogue that realigns the
26227 run-time stack if necessary.  This supports mixing legacy codes that keep
26228 4\-byte stack alignment with modern codes that keep 16\-byte stack alignment for
26229 \&\s-1SSE\s0 compatibility.  See also the attribute \f(CW\*(C`force_align_arg_pointer\*(C'\fR,
26230 applicable to individual functions.
26231 .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
26232 .IX Item "-mpreferred-stack-boundary=num"
26233 Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
26234 byte boundary.  If \fB\-mpreferred\-stack\-boundary\fR is not specified,
26235 the default is 4 (16 bytes or 128 bits).
26236 .Sp
26237 \&\fBWarning:\fR When generating code for the x86\-64 architecture with
26238 \&\s-1SSE\s0 extensions disabled, \fB\-mpreferred\-stack\-boundary=3\fR can be
26239 used to keep the stack boundary aligned to 8 byte boundary.  Since
26240 x86\-64 \s-1ABI\s0 require 16 byte stack alignment, this is \s-1ABI\s0 incompatible and
26241 intended to be used in controlled environment where stack space is
26242 important limitation.  This option leads to wrong code when functions
26243 compiled with 16 byte stack alignment (such as functions from a standard
26244 library) are called with misaligned stack.  In this case, \s-1SSE\s0
26245 instructions may lead to misaligned memory access traps.  In addition,
26246 variable arguments are handled incorrectly for 16 byte aligned
26247 objects (including x87 long double and _\|_int128), leading to wrong
26248 results.  You must build all modules with
26249 \&\fB\-mpreferred\-stack\-boundary=3\fR, including any libraries.  This
26250 includes the system libraries and startup modules.
26251 .IP "\fB\-mincoming\-stack\-boundary=\fR\fInum\fR" 4
26252 .IX Item "-mincoming-stack-boundary=num"
26253 Assume the incoming stack is aligned to a 2 raised to \fInum\fR byte
26254 boundary.  If \fB\-mincoming\-stack\-boundary\fR is not specified,
26255 the one specified by \fB\-mpreferred\-stack\-boundary\fR is used.
26256 .Sp
26257 On Pentium and Pentium Pro, \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long double\*(C'\fR values
26258 should be aligned to an 8\-byte boundary (see \fB\-malign\-double\fR) or
26259 suffer significant run time performance penalties.  On Pentium \s-1III,\s0 the
26260 Streaming \s-1SIMD\s0 Extension (\s-1SSE\s0) data type \f(CW\*(C`_\|_m128\*(C'\fR may not work
26261 properly if it is not 16\-byte aligned.
26262 .Sp
26263 To ensure proper alignment of this values on the stack, the stack boundary
26264 must be as aligned as that required by any value stored on the stack.
26265 Further, every function must be generated such that it keeps the stack
26266 aligned.  Thus calling a function compiled with a higher preferred
26267 stack boundary from a function compiled with a lower preferred stack
26268 boundary most likely misaligns the stack.  It is recommended that
26269 libraries that use callbacks always use the default setting.
26270 .Sp
26271 This extra alignment does consume extra stack space, and generally
26272 increases code size.  Code that is sensitive to stack space usage, such
26273 as embedded systems and operating system kernels, may want to reduce the
26274 preferred alignment to \fB\-mpreferred\-stack\-boundary=2\fR.
26275 .IP "\fB\-mmmx\fR" 4
26276 .IX Item "-mmmx"
26277 .PD 0
26278 .IP "\fB\-msse\fR" 4
26279 .IX Item "-msse"
26280 .IP "\fB\-msse2\fR" 4
26281 .IX Item "-msse2"
26282 .IP "\fB\-msse3\fR" 4
26283 .IX Item "-msse3"
26284 .IP "\fB\-mssse3\fR" 4
26285 .IX Item "-mssse3"
26286 .IP "\fB\-msse4\fR" 4
26287 .IX Item "-msse4"
26288 .IP "\fB\-msse4a\fR" 4
26289 .IX Item "-msse4a"
26290 .IP "\fB\-msse4.1\fR" 4
26291 .IX Item "-msse4.1"
26292 .IP "\fB\-msse4.2\fR" 4
26293 .IX Item "-msse4.2"
26294 .IP "\fB\-mavx\fR" 4
26295 .IX Item "-mavx"
26296 .IP "\fB\-mavx2\fR" 4
26297 .IX Item "-mavx2"
26298 .IP "\fB\-mavx512f\fR" 4
26299 .IX Item "-mavx512f"
26300 .IP "\fB\-mavx512pf\fR" 4
26301 .IX Item "-mavx512pf"
26302 .IP "\fB\-mavx512er\fR" 4
26303 .IX Item "-mavx512er"
26304 .IP "\fB\-mavx512cd\fR" 4
26305 .IX Item "-mavx512cd"
26306 .IP "\fB\-mavx512vl\fR" 4
26307 .IX Item "-mavx512vl"
26308 .IP "\fB\-mavx512bw\fR" 4
26309 .IX Item "-mavx512bw"
26310 .IP "\fB\-mavx512dq\fR" 4
26311 .IX Item "-mavx512dq"
26312 .IP "\fB\-mavx512ifma\fR" 4
26313 .IX Item "-mavx512ifma"
26314 .IP "\fB\-mavx512vbmi\fR" 4
26315 .IX Item "-mavx512vbmi"
26316 .IP "\fB\-msha\fR" 4
26317 .IX Item "-msha"
26318 .IP "\fB\-maes\fR" 4
26319 .IX Item "-maes"
26320 .IP "\fB\-mpclmul\fR" 4
26321 .IX Item "-mpclmul"
26322 .IP "\fB\-mclflushopt\fR" 4
26323 .IX Item "-mclflushopt"
26324 .IP "\fB\-mclwb\fR" 4
26325 .IX Item "-mclwb"
26326 .IP "\fB\-mfsgsbase\fR" 4
26327 .IX Item "-mfsgsbase"
26328 .IP "\fB\-mrdrnd\fR" 4
26329 .IX Item "-mrdrnd"
26330 .IP "\fB\-mf16c\fR" 4
26331 .IX Item "-mf16c"
26332 .IP "\fB\-mfma\fR" 4
26333 .IX Item "-mfma"
26334 .IP "\fB\-mpconfig\fR" 4
26335 .IX Item "-mpconfig"
26336 .IP "\fB\-mwbnoinvd\fR" 4
26337 .IX Item "-mwbnoinvd"
26338 .IP "\fB\-mfma4\fR" 4
26339 .IX Item "-mfma4"
26340 .IP "\fB\-mprfchw\fR" 4
26341 .IX Item "-mprfchw"
26342 .IP "\fB\-mrdpid\fR" 4
26343 .IX Item "-mrdpid"
26344 .IP "\fB\-mprefetchwt1\fR" 4
26345 .IX Item "-mprefetchwt1"
26346 .IP "\fB\-mrdseed\fR" 4
26347 .IX Item "-mrdseed"
26348 .IP "\fB\-msgx\fR" 4
26349 .IX Item "-msgx"
26350 .IP "\fB\-mxop\fR" 4
26351 .IX Item "-mxop"
26352 .IP "\fB\-mlwp\fR" 4
26353 .IX Item "-mlwp"
26354 .IP "\fB\-m3dnow\fR" 4
26355 .IX Item "-m3dnow"
26356 .IP "\fB\-m3dnowa\fR" 4
26357 .IX Item "-m3dnowa"
26358 .IP "\fB\-mpopcnt\fR" 4
26359 .IX Item "-mpopcnt"
26360 .IP "\fB\-mabm\fR" 4
26361 .IX Item "-mabm"
26362 .IP "\fB\-madx\fR" 4
26363 .IX Item "-madx"
26364 .IP "\fB\-mbmi\fR" 4
26365 .IX Item "-mbmi"
26366 .IP "\fB\-mbmi2\fR" 4
26367 .IX Item "-mbmi2"
26368 .IP "\fB\-mlzcnt\fR" 4
26369 .IX Item "-mlzcnt"
26370 .IP "\fB\-mfxsr\fR" 4
26371 .IX Item "-mfxsr"
26372 .IP "\fB\-mxsave\fR" 4
26373 .IX Item "-mxsave"
26374 .IP "\fB\-mxsaveopt\fR" 4
26375 .IX Item "-mxsaveopt"
26376 .IP "\fB\-mxsavec\fR" 4
26377 .IX Item "-mxsavec"
26378 .IP "\fB\-mxsaves\fR" 4
26379 .IX Item "-mxsaves"
26380 .IP "\fB\-mrtm\fR" 4
26381 .IX Item "-mrtm"
26382 .IP "\fB\-mhle\fR" 4
26383 .IX Item "-mhle"
26384 .IP "\fB\-mtbm\fR" 4
26385 .IX Item "-mtbm"
26386 .IP "\fB\-mmpx\fR" 4
26387 .IX Item "-mmpx"
26388 .IP "\fB\-mmwaitx\fR" 4
26389 .IX Item "-mmwaitx"
26390 .IP "\fB\-mclzero\fR" 4
26391 .IX Item "-mclzero"
26392 .IP "\fB\-mpku\fR" 4
26393 .IX Item "-mpku"
26394 .IP "\fB\-mavx512vbmi2\fR" 4
26395 .IX Item "-mavx512vbmi2"
26396 .IP "\fB\-mgfni\fR" 4
26397 .IX Item "-mgfni"
26398 .IP "\fB\-mvaes\fR" 4
26399 .IX Item "-mvaes"
26400 .IP "\fB\-mvpclmulqdq\fR" 4
26401 .IX Item "-mvpclmulqdq"
26402 .IP "\fB\-mavx512bitalg\fR" 4
26403 .IX Item "-mavx512bitalg"
26404 .IP "\fB\-mmovdiri\fR" 4
26405 .IX Item "-mmovdiri"
26406 .IP "\fB\-mmovdir64b\fR" 4
26407 .IX Item "-mmovdir64b"
26408 .IP "\fB\-mavx512vpopcntdq\fR" 4
26409 .IX Item "-mavx512vpopcntdq"
26410 .IP "\fB\-mavx5124fmaps\fR" 4
26411 .IX Item "-mavx5124fmaps"
26412 .IP "\fB\-mavx512vnni\fR" 4
26413 .IX Item "-mavx512vnni"
26414 .IP "\fB\-mavx5124vnniw\fR" 4
26415 .IX Item "-mavx5124vnniw"
26416 .PD
26417 These switches enable the use of instructions in the \s-1MMX, SSE,
26418 SSE2, SSE3, SSSE3, SSE4, SSE4A, SSE4.1, SSE4.2, AVX, AVX2, AVX512F, AVX512PF,
26419 AVX512ER, AVX512CD, AVX512VL, AVX512BW, AVX512DQ, AVX512IFMA, AVX512VBMI, SHA,
26420 AES, PCLMUL, CLFLUSHOPT, CLWB, FSGSBASE, RDRND, F16C, FMA, PCONFIG,
26421 WBNOINVD, FMA4, PREFETCHW, RDPID, PREFETCHWT1, RDSEED, SGX, XOP, LWP,\s0
26422 3DNow!, enhanced 3DNow!, \s-1POPCNT, ABM, ADX, BMI, BMI2, LZCNT, FXSR, XSAVE,
26423 XSAVEOPT, XSAVEC, XSAVES, RTM, HLE, TBM, MPX, MWAITX, CLZERO, PKU, AVX512VBMI2,
26424 GFNI, VAES, VPCLMULQDQ, AVX512BITALG, MOVDIRI, MOVDIR64B,
26425 AVX512VPOPCNTDQ, AVX5124FMAPS, AVX512VNNI,\s0 or \s-1AVX5124VNNIW\s0
26426 extended instruction sets.  Each has a corresponding \fB\-mno\-\fR option to
26427 disable use of these instructions.
26428 .Sp
26429 These extensions are also available as built-in functions: see
26430 \&\fBx86 Built-in Functions\fR, for details of the functions enabled and
26431 disabled by these switches.
26432 .Sp
26433 To generate \s-1SSE/SSE2\s0 instructions automatically from floating-point
26434 code (as opposed to 387 instructions), see \fB\-mfpmath=sse\fR.
26435 .Sp
26436 \&\s-1GCC\s0 depresses SSEx instructions when \fB\-mavx\fR is used. Instead, it
26437 generates new \s-1AVX\s0 instructions or \s-1AVX\s0 equivalence for all SSEx instructions
26438 when needed.
26439 .Sp
26440 These options enable \s-1GCC\s0 to use these extended instructions in
26441 generated code, even without \fB\-mfpmath=sse\fR.  Applications that
26442 perform run-time \s-1CPU\s0 detection must compile separate files for each
26443 supported architecture, using the appropriate flags.  In particular,
26444 the file containing the \s-1CPU\s0 detection code should be compiled without
26445 these options.
26446 .IP "\fB\-mdump\-tune\-features\fR" 4
26447 .IX Item "-mdump-tune-features"
26448 This option instructs \s-1GCC\s0 to dump the names of the x86 performance 
26449 tuning features and default settings. The names can be used in 
26450 \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR.
26451 .IP "\fB\-mtune\-ctrl=\fR\fIfeature-list\fR" 4
26452 .IX Item "-mtune-ctrl=feature-list"
26453 This option is used to do fine grain control of x86 code generation features.
26454 \&\fIfeature-list\fR is a comma separated list of \fIfeature\fR names. See also
26455 \&\fB\-mdump\-tune\-features\fR. When specified, the \fIfeature\fR is turned
26456 on if it is not preceded with \fB^\fR, otherwise, it is turned off. 
26457 \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR is intended to be used by \s-1GCC\s0
26458 developers. Using it may lead to code paths not covered by testing and can
26459 potentially result in compiler ICEs or runtime errors.
26460 .IP "\fB\-mno\-default\fR" 4
26461 .IX Item "-mno-default"
26462 This option instructs \s-1GCC\s0 to turn off all tunable features. See also 
26463 \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR and \fB\-mdump\-tune\-features\fR.
26464 .IP "\fB\-mcld\fR" 4
26465 .IX Item "-mcld"
26466 This option instructs \s-1GCC\s0 to emit a \f(CW\*(C`cld\*(C'\fR instruction in the prologue
26467 of functions that use string instructions.  String instructions depend on
26468 the \s-1DF\s0 flag to select between autoincrement or autodecrement mode.  While the
26469 \&\s-1ABI\s0 specifies the \s-1DF\s0 flag to be cleared on function entry, some operating
26470 systems violate this specification by not clearing the \s-1DF\s0 flag in their
26471 exception dispatchers.  The exception handler can be invoked with the \s-1DF\s0 flag
26472 set, which leads to wrong direction mode when string instructions are used.
26473 This option can be enabled by default on 32\-bit x86 targets by configuring
26474 \&\s-1GCC\s0 with the \fB\-\-enable\-cld\fR configure option.  Generation of \f(CW\*(C`cld\*(C'\fR
26475 instructions can be suppressed with the \fB\-mno\-cld\fR compiler option
26476 in this case.
26477 .IP "\fB\-mvzeroupper\fR" 4
26478 .IX Item "-mvzeroupper"
26479 This option instructs \s-1GCC\s0 to emit a \f(CW\*(C`vzeroupper\*(C'\fR instruction
26480 before a transfer of control flow out of the function to minimize
26481 the \s-1AVX\s0 to \s-1SSE\s0 transition penalty as well as remove unnecessary \f(CW\*(C`zeroupper\*(C'\fR
26482 intrinsics.
26483 .IP "\fB\-mprefer\-avx128\fR" 4
26484 .IX Item "-mprefer-avx128"
26485 This option instructs \s-1GCC\s0 to use 128\-bit \s-1AVX\s0 instructions instead of
26486 256\-bit \s-1AVX\s0 instructions in the auto-vectorizer.
26487 .IP "\fB\-mprefer\-vector\-width=\fR\fIopt\fR" 4
26488 .IX Item "-mprefer-vector-width=opt"
26489 This option instructs \s-1GCC\s0 to use \fIopt\fR\-bit vector width in instructions
26490 instead of default on the selected platform.
26491 .RS 4
26492 .IP "\fBnone\fR" 4
26493 .IX Item "none"
26494 No extra limitations applied to \s-1GCC\s0 other than defined by the selected platform.
26495 .IP "\fB128\fR" 4
26496 .IX Item "128"
26497 Prefer 128\-bit vector width for instructions.
26498 .IP "\fB256\fR" 4
26499 .IX Item "256"
26500 Prefer 256\-bit vector width for instructions.
26501 .IP "\fB512\fR" 4
26502 .IX Item "512"
26503 Prefer 512\-bit vector width for instructions.
26504 .RE
26505 .RS 4
26506 .RE
26507 .IP "\fB\-mcx16\fR" 4
26508 .IX Item "-mcx16"
26509 This option enables \s-1GCC\s0 to generate \f(CW\*(C`CMPXCHG16B\*(C'\fR instructions in 64\-bit
26510 code to implement compare-and-exchange operations on 16\-byte aligned 128\-bit
26511 objects.  This is useful for atomic updates of data structures exceeding one
26512 machine word in size.  The compiler uses this instruction to implement
26513 \&\fB_\|_sync Builtins\fR.  However, for \fB_\|_atomic Builtins\fR operating on
26514 128\-bit integers, a library call is always used.
26515 .IP "\fB\-msahf\fR" 4
26516 .IX Item "-msahf"
26517 This option enables generation of \f(CW\*(C`SAHF\*(C'\fR instructions in 64\-bit code.
26518 Early Intel Pentium 4 CPUs with Intel 64 support,
26519 prior to the introduction of Pentium 4 G1 step in December 2005,
26520 lacked the \f(CW\*(C`LAHF\*(C'\fR and \f(CW\*(C`SAHF\*(C'\fR instructions
26521 which are supported by \s-1AMD64.\s0
26522 These are load and store instructions, respectively, for certain status flags.
26523 In 64\-bit mode, the \f(CW\*(C`SAHF\*(C'\fR instruction is used to optimize \f(CW\*(C`fmod\*(C'\fR,
26524 \&\f(CW\*(C`drem\*(C'\fR, and \f(CW\*(C`remainder\*(C'\fR built-in functions;
26525 see \fBOther Builtins\fR for details.
26526 .IP "\fB\-mmovbe\fR" 4
26527 .IX Item "-mmovbe"
26528 This option enables use of the \f(CW\*(C`movbe\*(C'\fR instruction to implement
26529 \&\f(CW\*(C`_\|_builtin_bswap32\*(C'\fR and \f(CW\*(C`_\|_builtin_bswap64\*(C'\fR.
26530 .IP "\fB\-mshstk\fR" 4
26531 .IX Item "-mshstk"
26532 The \fB\-mshstk\fR option enables shadow stack built-in functions
26533 from x86 Control-flow Enforcement Technology (\s-1CET\s0).
26534 .IP "\fB\-mcrc32\fR" 4
26535 .IX Item "-mcrc32"
26536 This option enables built-in functions \f(CW\*(C`_\|_builtin_ia32_crc32qi\*(C'\fR,
26537 \&\f(CW\*(C`_\|_builtin_ia32_crc32hi\*(C'\fR, \f(CW\*(C`_\|_builtin_ia32_crc32si\*(C'\fR and
26538 \&\f(CW\*(C`_\|_builtin_ia32_crc32di\*(C'\fR to generate the \f(CW\*(C`crc32\*(C'\fR machine instruction.
26539 .IP "\fB\-mrecip\fR" 4
26540 .IX Item "-mrecip"
26541 This option enables use of \f(CW\*(C`RCPSS\*(C'\fR and \f(CW\*(C`RSQRTSS\*(C'\fR instructions
26542 (and their vectorized variants \f(CW\*(C`RCPPS\*(C'\fR and \f(CW\*(C`RSQRTPS\*(C'\fR)
26543 with an additional Newton-Raphson step
26544 to increase precision instead of \f(CW\*(C`DIVSS\*(C'\fR and \f(CW\*(C`SQRTSS\*(C'\fR
26545 (and their vectorized
26546 variants) for single-precision floating-point arguments.  These instructions
26547 are generated only when \fB\-funsafe\-math\-optimizations\fR is enabled
26548 together with \fB\-ffinite\-math\-only\fR and \fB\-fno\-trapping\-math\fR.
26549 Note that while the throughput of the sequence is higher than the throughput
26550 of the non-reciprocal instruction, the precision of the sequence can be
26551 decreased by up to 2 ulp (i.e. the inverse of 1.0 equals 0.99999994).
26552 .Sp
26553 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
26554 (or \f(CW\*(C`RSQRTPS\*(C'\fR) already with \fB\-ffast\-math\fR (or the above option
26555 combination), and doesn't need \fB\-mrecip\fR.
26556 .Sp
26557 Also note that \s-1GCC\s0 emits the above sequence with additional Newton-Raphson step
26558 for vectorized single-float division and vectorized \f(CW\*(C`sqrtf(\f(CIx\f(CW)\*(C'\fR
26559 already with \fB\-ffast\-math\fR (or the above option combination), and
26560 doesn't need \fB\-mrecip\fR.
26561 .IP "\fB\-mrecip=\fR\fIopt\fR" 4
26562 .IX Item "-mrecip=opt"
26563 This option controls which reciprocal estimate instructions
26564 may be used.  \fIopt\fR is a comma-separated list of options, which may
26565 be preceded by a \fB!\fR to invert the option:
26566 .RS 4
26567 .IP "\fBall\fR" 4
26568 .IX Item "all"
26569 Enable all estimate instructions.
26570 .IP "\fBdefault\fR" 4
26571 .IX Item "default"
26572 Enable the default instructions, equivalent to \fB\-mrecip\fR.
26573 .IP "\fBnone\fR" 4
26574 .IX Item "none"
26575 Disable all estimate instructions, equivalent to \fB\-mno\-recip\fR.
26576 .IP "\fBdiv\fR" 4
26577 .IX Item "div"
26578 Enable the approximation for scalar division.
26579 .IP "\fBvec-div\fR" 4
26580 .IX Item "vec-div"
26581 Enable the approximation for vectorized division.
26582 .IP "\fBsqrt\fR" 4
26583 .IX Item "sqrt"
26584 Enable the approximation for scalar square root.
26585 .IP "\fBvec-sqrt\fR" 4
26586 .IX Item "vec-sqrt"
26587 Enable the approximation for vectorized square root.
26588 .RE
26589 .RS 4
26590 .Sp
26591 So, for example, \fB\-mrecip=all,!sqrt\fR enables
26592 all of the reciprocal approximations, except for square root.
26593 .RE
26594 .IP "\fB\-mveclibabi=\fR\fItype\fR" 4
26595 .IX Item "-mveclibabi=type"
26596 Specifies the \s-1ABI\s0 type to use for vectorizing intrinsics using an
26597 external library.  Supported values for \fItype\fR are \fBsvml\fR 
26598 for the Intel short
26599 vector math library and \fBacml\fR for the \s-1AMD\s0 math core library.
26600 To use this option, both \fB\-ftree\-vectorize\fR and
26601 \&\fB\-funsafe\-math\-optimizations\fR have to be enabled, and an \s-1SVML\s0 or \s-1ACML\s0 
26602 ABI-compatible library must be specified at link time.
26603 .Sp
26604 \&\s-1GCC\s0 currently emits calls to \f(CW\*(C`vmldExp2\*(C'\fR,
26605 \&\f(CW\*(C`vmldLn2\*(C'\fR, \f(CW\*(C`vmldLog102\*(C'\fR, \f(CW\*(C`vmldPow2\*(C'\fR,
26606 \&\f(CW\*(C`vmldTanh2\*(C'\fR, \f(CW\*(C`vmldTan2\*(C'\fR, \f(CW\*(C`vmldAtan2\*(C'\fR, \f(CW\*(C`vmldAtanh2\*(C'\fR,
26607 \&\f(CW\*(C`vmldCbrt2\*(C'\fR, \f(CW\*(C`vmldSinh2\*(C'\fR, \f(CW\*(C`vmldSin2\*(C'\fR, \f(CW\*(C`vmldAsinh2\*(C'\fR,
26608 \&\f(CW\*(C`vmldAsin2\*(C'\fR, \f(CW\*(C`vmldCosh2\*(C'\fR, \f(CW\*(C`vmldCos2\*(C'\fR, \f(CW\*(C`vmldAcosh2\*(C'\fR,
26609 \&\f(CW\*(C`vmldAcos2\*(C'\fR, \f(CW\*(C`vmlsExp4\*(C'\fR, \f(CW\*(C`vmlsLn4\*(C'\fR,
26610 \&\f(CW\*(C`vmlsLog104\*(C'\fR, \f(CW\*(C`vmlsPow4\*(C'\fR, \f(CW\*(C`vmlsTanh4\*(C'\fR, \f(CW\*(C`vmlsTan4\*(C'\fR,
26611 \&\f(CW\*(C`vmlsAtan4\*(C'\fR, \f(CW\*(C`vmlsAtanh4\*(C'\fR, \f(CW\*(C`vmlsCbrt4\*(C'\fR, \f(CW\*(C`vmlsSinh4\*(C'\fR,
26612 \&\f(CW\*(C`vmlsSin4\*(C'\fR, \f(CW\*(C`vmlsAsinh4\*(C'\fR, \f(CW\*(C`vmlsAsin4\*(C'\fR, \f(CW\*(C`vmlsCosh4\*(C'\fR,
26613 \&\f(CW\*(C`vmlsCos4\*(C'\fR, \f(CW\*(C`vmlsAcosh4\*(C'\fR and \f(CW\*(C`vmlsAcos4\*(C'\fR for corresponding
26614 function type when \fB\-mveclibabi=svml\fR is used, and \f(CW\*(C`_\|_vrd2_sin\*(C'\fR,
26615 \&\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,
26616 \&\f(CW\*(C`_\|_vrd2_log10\*(C'\fR, \f(CW\*(C`_\|_vrs4_sinf\*(C'\fR, \f(CW\*(C`_\|_vrs4_cosf\*(C'\fR,
26617 \&\f(CW\*(C`_\|_vrs4_expf\*(C'\fR, \f(CW\*(C`_\|_vrs4_logf\*(C'\fR, \f(CW\*(C`_\|_vrs4_log2f\*(C'\fR,
26618 \&\f(CW\*(C`_\|_vrs4_log10f\*(C'\fR and \f(CW\*(C`_\|_vrs4_powf\*(C'\fR for the corresponding function type
26619 when \fB\-mveclibabi=acml\fR is used.
26620 .IP "\fB\-mabi=\fR\fIname\fR" 4
26621 .IX Item "-mabi=name"
26622 Generate code for the specified calling convention.  Permissible values
26623 are \fBsysv\fR for the \s-1ABI\s0 used on GNU/Linux and other systems, and
26624 \&\fBms\fR for the Microsoft \s-1ABI.\s0  The default is to use the Microsoft
26625 \&\s-1ABI\s0 when targeting Microsoft Windows and the SysV \s-1ABI\s0 on all other systems.
26626 You can control this behavior for specific functions by
26627 using the function attributes \f(CW\*(C`ms_abi\*(C'\fR and \f(CW\*(C`sysv_abi\*(C'\fR.
26628 .IP "\fB\-mforce\-indirect\-call\fR" 4
26629 .IX Item "-mforce-indirect-call"
26630 Force all calls to functions to be indirect. This is useful
26631 when using Intel Processor Trace where it generates more precise timing
26632 information for function calls.
26633 .IP "\fB\-mcall\-ms2sysv\-xlogues\fR" 4
26634 .IX Item "-mcall-ms2sysv-xlogues"
26635 Due to differences in 64\-bit ABIs, any Microsoft \s-1ABI\s0 function that calls a
26636 System V \s-1ABI\s0 function must consider \s-1RSI, RDI\s0 and \s-1XMM6\-15\s0 as clobbered.  By
26637 default, the code for saving and restoring these registers is emitted inline,
26638 resulting in fairly lengthy prologues and epilogues.  Using
26639 \&\fB\-mcall\-ms2sysv\-xlogues\fR emits prologues and epilogues that
26640 use stubs in the static portion of libgcc to perform these saves and restores,
26641 thus reducing function size at the cost of a few extra instructions.
26642 .IP "\fB\-mtls\-dialect=\fR\fItype\fR" 4
26643 .IX Item "-mtls-dialect=type"
26644 Generate code to access thread-local storage using the \fBgnu\fR or
26645 \&\fBgnu2\fR conventions.  \fBgnu\fR is the conservative default;
26646 \&\fBgnu2\fR is more efficient, but it may add compile\- and run-time
26647 requirements that cannot be satisfied on all systems.
26648 .IP "\fB\-mpush\-args\fR" 4
26649 .IX Item "-mpush-args"
26650 .PD 0
26651 .IP "\fB\-mno\-push\-args\fR" 4
26652 .IX Item "-mno-push-args"
26653 .PD
26654 Use \s-1PUSH\s0 operations to store outgoing parameters.  This method is shorter
26655 and usually equally fast as method using \s-1SUB/MOV\s0 operations and is enabled
26656 by default.  In some cases disabling it may improve performance because of
26657 improved scheduling and reduced dependencies.
26658 .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
26659 .IX Item "-maccumulate-outgoing-args"
26660 If enabled, the maximum amount of space required for outgoing arguments is
26661 computed in the function prologue.  This is faster on most modern CPUs
26662 because of reduced dependencies, improved scheduling and reduced stack usage
26663 when the preferred stack boundary is not equal to 2.  The drawback is a notable
26664 increase in code size.  This switch implies \fB\-mno\-push\-args\fR.
26665 .IP "\fB\-mthreads\fR" 4
26666 .IX Item "-mthreads"
26667 Support thread-safe exception handling on MinGW.  Programs that rely
26668 on thread-safe exception handling must compile and link all code with the
26669 \&\fB\-mthreads\fR option.  When compiling, \fB\-mthreads\fR defines
26670 \&\fB\-D_MT\fR; when linking, it links in a special thread helper library
26671 \&\fB\-lmingwthrd\fR which cleans up per-thread exception-handling data.
26672 .IP "\fB\-mms\-bitfields\fR" 4
26673 .IX Item "-mms-bitfields"
26674 .PD 0
26675 .IP "\fB\-mno\-ms\-bitfields\fR" 4
26676 .IX Item "-mno-ms-bitfields"
26677 .PD
26678 Enable/disable bit-field layout compatible with the native Microsoft
26679 Windows compiler.
26680 .Sp
26681 If \f(CW\*(C`packed\*(C'\fR is used on a structure, or if bit-fields are used,
26682 it may be that the Microsoft \s-1ABI\s0 lays out the structure differently
26683 than the way \s-1GCC\s0 normally does.  Particularly when moving packed
26684 data between functions compiled with \s-1GCC\s0 and the native Microsoft compiler
26685 (either via function call or as data in a file), it may be necessary to access
26686 either format.
26687 .Sp
26688 This option is enabled by default for Microsoft Windows
26689 targets.  This behavior can also be controlled locally by use of variable
26690 or type attributes.  For more information, see \fBx86 Variable Attributes\fR
26691 and \fBx86 Type Attributes\fR.
26692 .Sp
26693 The Microsoft structure layout algorithm is fairly simple with the exception
26694 of the bit-field packing.  
26695 The padding and alignment of members of structures and whether a bit-field 
26696 can straddle a storage-unit boundary are determine by these rules:
26697 .RS 4
26698 .IP "1. Structure members are stored sequentially in the order in which they are" 4
26699 .IX Item "1. Structure members are stored sequentially in the order in which they are"
26700 declared: the first member has the lowest memory address and the last member
26701 the highest.
26702 .IP "2. Every data object has an alignment requirement.  The alignment requirement" 4
26703 .IX Item "2. Every data object has an alignment requirement. The alignment requirement"
26704 for all data except structures, unions, and arrays is either the size of the
26705 object or the current packing size (specified with either the
26706 \&\f(CW\*(C`aligned\*(C'\fR attribute or the \f(CW\*(C`pack\*(C'\fR pragma),
26707 whichever is less.  For structures, unions, and arrays,
26708 the alignment requirement is the largest alignment requirement of its members.
26709 Every object is allocated an offset so that:
26710 .Sp
26711 .Vb 1
26712 \&        offset % alignment_requirement == 0
26713 .Ve
26714 .IP "3. Adjacent bit-fields are packed into the same 1\-, 2\-, or 4\-byte allocation" 4
26715 .IX Item "3. Adjacent bit-fields are packed into the same 1-, 2-, or 4-byte allocation"
26716 unit if the integral types are the same size and if the next bit-field fits
26717 into the current allocation unit without crossing the boundary imposed by the
26718 common alignment requirements of the bit-fields.
26719 .RE
26720 .RS 4
26721 .Sp
26722 \&\s-1MSVC\s0 interprets zero-length bit-fields in the following ways:
26723 .IP "1. If a zero-length bit-field is inserted between two bit-fields that" 4
26724 .IX Item "1. If a zero-length bit-field is inserted between two bit-fields that"
26725 are normally coalesced, the bit-fields are not coalesced.
26726 .Sp
26727 For example:
26728 .Sp
26729 .Vb 6
26730 \&        struct
26731 \&         {
26732 \&           unsigned long bf_1 : 12;
26733 \&           unsigned long : 0;
26734 \&           unsigned long bf_2 : 12;
26735 \&         } t1;
26736 .Ve
26737 .Sp
26738 The size of \f(CW\*(C`t1\*(C'\fR is 8 bytes with the zero-length bit-field.  If the
26739 zero-length bit-field were removed, \f(CW\*(C`t1\*(C'\fR's size would be 4 bytes.
26740 .ie n .IP "2. If a zero-length bit-field is inserted after a bit-field, ""foo"", and the" 4
26741 .el .IP "2. If a zero-length bit-field is inserted after a bit-field, \f(CWfoo\fR, and the" 4
26742 .IX Item "2. If a zero-length bit-field is inserted after a bit-field, foo, and the"
26743 alignment of the zero-length bit-field is greater than the member that follows it,
26744 \&\f(CW\*(C`bar\*(C'\fR, \f(CW\*(C`bar\*(C'\fR is aligned as the type of the zero-length bit-field.
26745 .Sp
26746 For example:
26747 .Sp
26748 .Vb 6
26749 \&        struct
26750 \&         {
26751 \&           char foo : 4;
26752 \&           short : 0;
26753 \&           char bar;
26754 \&         } t2;
26755 \&        
26756 \&        struct
26757 \&         {
26758 \&           char foo : 4;
26759 \&           short : 0;
26760 \&           double bar;
26761 \&         } t3;
26762 .Ve
26763 .Sp
26764 For \f(CW\*(C`t2\*(C'\fR, \f(CW\*(C`bar\*(C'\fR is placed at offset 2, rather than offset 1.
26765 Accordingly, the size of \f(CW\*(C`t2\*(C'\fR is 4.  For \f(CW\*(C`t3\*(C'\fR, the zero-length
26766 bit-field does not affect the alignment of \f(CW\*(C`bar\*(C'\fR or, as a result, the size
26767 of the structure.
26768 .Sp
26769 Taking this into account, it is important to note the following:
26770 .RS 4
26771 .IP "1. If a zero-length bit-field follows a normal bit-field, the type of the" 4
26772 .IX Item "1. If a zero-length bit-field follows a normal bit-field, the type of the"
26773 zero-length bit-field may affect the alignment of the structure as whole. For
26774 example, \f(CW\*(C`t2\*(C'\fR has a size of 4 bytes, since the zero-length bit-field follows a
26775 normal bit-field, and is of type short.
26776 .IP "2. Even if a zero-length bit-field is not followed by a normal bit-field, it may" 4
26777 .IX Item "2. Even if a zero-length bit-field is not followed by a normal bit-field, it may"
26778 still affect the alignment of the structure:
26779 .Sp
26780 .Vb 5
26781 \&        struct
26782 \&         {
26783 \&           char foo : 6;
26784 \&           long : 0;
26785 \&         } t4;
26786 .Ve
26787 .Sp
26788 Here, \f(CW\*(C`t4\*(C'\fR takes up 4 bytes.
26789 .RE
26790 .RS 4
26791 .RE
26792 .IP "3. Zero-length bit-fields following non-bit-field members are ignored:" 4
26793 .IX Item "3. Zero-length bit-fields following non-bit-field members are ignored:"
26794 .Vb 6
26795 \&        struct
26796 \&         {
26797 \&           char foo;
26798 \&           long : 0;
26799 \&           char bar;
26800 \&         } t5;
26801 .Ve
26802 .Sp
26803 Here, \f(CW\*(C`t5\*(C'\fR takes up 2 bytes.
26804 .RE
26805 .RS 4
26806 .RE
26807 .IP "\fB\-mno\-align\-stringops\fR" 4
26808 .IX Item "-mno-align-stringops"
26809 Do not align the destination of inlined string operations.  This switch reduces
26810 code size and improves performance in case the destination is already aligned,
26811 but \s-1GCC\s0 doesn't know about it.
26812 .IP "\fB\-minline\-all\-stringops\fR" 4
26813 .IX Item "-minline-all-stringops"
26814 By default \s-1GCC\s0 inlines string operations only when the destination is 
26815 known to be aligned to least a 4\-byte boundary.  
26816 This enables more inlining and increases code
26817 size, but may improve performance of code that depends on fast
26818 \&\f(CW\*(C`memcpy\*(C'\fR, \f(CW\*(C`strlen\*(C'\fR,
26819 and \f(CW\*(C`memset\*(C'\fR for short lengths.
26820 .IP "\fB\-minline\-stringops\-dynamically\fR" 4
26821 .IX Item "-minline-stringops-dynamically"
26822 For string operations of unknown size, use run-time checks with
26823 inline code for small blocks and a library call for large blocks.
26824 .IP "\fB\-mstringop\-strategy=\fR\fIalg\fR" 4
26825 .IX Item "-mstringop-strategy=alg"
26826 Override the internal decision heuristic for the particular algorithm to use
26827 for inlining string operations.  The allowed values for \fIalg\fR are:
26828 .RS 4
26829 .IP "\fBrep_byte\fR" 4
26830 .IX Item "rep_byte"
26831 .PD 0
26832 .IP "\fBrep_4byte\fR" 4
26833 .IX Item "rep_4byte"
26834 .IP "\fBrep_8byte\fR" 4
26835 .IX Item "rep_8byte"
26836 .PD
26837 Expand using i386 \f(CW\*(C`rep\*(C'\fR prefix of the specified size.
26838 .IP "\fBbyte_loop\fR" 4
26839 .IX Item "byte_loop"
26840 .PD 0
26841 .IP "\fBloop\fR" 4
26842 .IX Item "loop"
26843 .IP "\fBunrolled_loop\fR" 4
26844 .IX Item "unrolled_loop"
26845 .PD
26846 Expand into an inline loop.
26847 .IP "\fBlibcall\fR" 4
26848 .IX Item "libcall"
26849 Always use a library call.
26850 .RE
26851 .RS 4
26852 .RE
26853 .IP "\fB\-mmemcpy\-strategy=\fR\fIstrategy\fR" 4
26854 .IX Item "-mmemcpy-strategy=strategy"
26855 Override the internal decision heuristic to decide if \f(CW\*(C`_\|_builtin_memcpy\*(C'\fR
26856 should be inlined and what inline algorithm to use when the expected size
26857 of the copy operation is known. \fIstrategy\fR 
26858 is a comma-separated list of \fIalg\fR:\fImax_size\fR:\fIdest_align\fR triplets. 
26859 \&\fIalg\fR is specified in \fB\-mstringop\-strategy\fR, \fImax_size\fR specifies
26860 the max byte size with which inline algorithm \fIalg\fR is allowed.  For the last
26861 triplet, the \fImax_size\fR must be \f(CW\*(C`\-1\*(C'\fR. The \fImax_size\fR of the triplets
26862 in the list must be specified in increasing order.  The minimal byte size for 
26863 \&\fIalg\fR is \f(CW0\fR for the first triplet and \f(CW\*(C`\f(CImax_size\f(CW + 1\*(C'\fR of the 
26864 preceding range.
26865 .IP "\fB\-mmemset\-strategy=\fR\fIstrategy\fR" 4
26866 .IX Item "-mmemset-strategy=strategy"
26867 The option is similar to \fB\-mmemcpy\-strategy=\fR except that it is to control
26868 \&\f(CW\*(C`_\|_builtin_memset\*(C'\fR expansion.
26869 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
26870 .IX Item "-momit-leaf-frame-pointer"
26871 Don't keep the frame pointer in a register for leaf functions.  This
26872 avoids the instructions to save, set up, and restore frame pointers and
26873 makes an extra register available in leaf functions.  The option
26874 \&\fB\-fomit\-leaf\-frame\-pointer\fR removes the frame pointer for leaf functions,
26875 which might make debugging harder.
26876 .IP "\fB\-mtls\-direct\-seg\-refs\fR" 4
26877 .IX Item "-mtls-direct-seg-refs"
26878 .PD 0
26879 .IP "\fB\-mno\-tls\-direct\-seg\-refs\fR" 4
26880 .IX Item "-mno-tls-direct-seg-refs"
26881 .PD
26882 Controls whether \s-1TLS\s0 variables may be accessed with offsets from the
26883 \&\s-1TLS\s0 segment register (\f(CW%gs\fR for 32\-bit, \f(CW%fs\fR for 64\-bit),
26884 or whether the thread base pointer must be added.  Whether or not this
26885 is valid depends on the operating system, and whether it maps the
26886 segment to cover the entire \s-1TLS\s0 area.
26887 .Sp
26888 For systems that use the \s-1GNU C\s0 Library, the default is on.
26889 .IP "\fB\-msse2avx\fR" 4
26890 .IX Item "-msse2avx"
26891 .PD 0
26892 .IP "\fB\-mno\-sse2avx\fR" 4
26893 .IX Item "-mno-sse2avx"
26894 .PD
26895 Specify that the assembler should encode \s-1SSE\s0 instructions with \s-1VEX\s0
26896 prefix.  The option \fB\-mavx\fR turns this on by default.
26897 .IP "\fB\-mfentry\fR" 4
26898 .IX Item "-mfentry"
26899 .PD 0
26900 .IP "\fB\-mno\-fentry\fR" 4
26901 .IX Item "-mno-fentry"
26902 .PD
26903 If profiling is active (\fB\-pg\fR), put the profiling
26904 counter call before the prologue.
26905 Note: On x86 architectures the attribute \f(CW\*(C`ms_hook_prologue\*(C'\fR
26906 isn't possible at the moment for \fB\-mfentry\fR and \fB\-pg\fR.
26907 .IP "\fB\-mrecord\-mcount\fR" 4
26908 .IX Item "-mrecord-mcount"
26909 .PD 0
26910 .IP "\fB\-mno\-record\-mcount\fR" 4
26911 .IX Item "-mno-record-mcount"
26912 .PD
26913 If profiling is active (\fB\-pg\fR), generate a _\|_mcount_loc section
26914 that contains pointers to each profiling call. This is useful for
26915 automatically patching and out calls.
26916 .IP "\fB\-mnop\-mcount\fR" 4
26917 .IX Item "-mnop-mcount"
26918 .PD 0
26919 .IP "\fB\-mno\-nop\-mcount\fR" 4
26920 .IX Item "-mno-nop-mcount"
26921 .PD
26922 If profiling is active (\fB\-pg\fR), generate the calls to
26923 the profiling functions as NOPs. This is useful when they
26924 should be patched in later dynamically. This is likely only
26925 useful together with \fB\-mrecord\-mcount\fR.
26926 .IP "\fB\-mskip\-rax\-setup\fR" 4
26927 .IX Item "-mskip-rax-setup"
26928 .PD 0
26929 .IP "\fB\-mno\-skip\-rax\-setup\fR" 4
26930 .IX Item "-mno-skip-rax-setup"
26931 .PD
26932 When generating code for the x86\-64 architecture with \s-1SSE\s0 extensions
26933 disabled, \fB\-mskip\-rax\-setup\fR can be used to skip setting up \s-1RAX\s0
26934 register when there are no variable arguments passed in vector registers.
26935 .Sp
26936 \&\fBWarning:\fR Since \s-1RAX\s0 register is used to avoid unnecessarily
26937 saving vector registers on stack when passing variable arguments, the
26938 impacts of this option are callees may waste some stack space,
26939 misbehave or jump to a random location.  \s-1GCC 4.4\s0 or newer don't have
26940 those issues, regardless the \s-1RAX\s0 register value.
26941 .IP "\fB\-m8bit\-idiv\fR" 4
26942 .IX Item "-m8bit-idiv"
26943 .PD 0
26944 .IP "\fB\-mno\-8bit\-idiv\fR" 4
26945 .IX Item "-mno-8bit-idiv"
26946 .PD
26947 On some processors, like Intel Atom, 8\-bit unsigned integer divide is
26948 much faster than 32\-bit/64\-bit integer divide.  This option generates a
26949 run-time check.  If both dividend and divisor are within range of 0
26950 to 255, 8\-bit unsigned integer divide is used instead of
26951 32\-bit/64\-bit integer divide.
26952 .IP "\fB\-mavx256\-split\-unaligned\-load\fR" 4
26953 .IX Item "-mavx256-split-unaligned-load"
26954 .PD 0
26955 .IP "\fB\-mavx256\-split\-unaligned\-store\fR" 4
26956 .IX Item "-mavx256-split-unaligned-store"
26957 .PD
26958 Split 32\-byte \s-1AVX\s0 unaligned load and store.
26959 .IP "\fB\-mstack\-protector\-guard=\fR\fIguard\fR" 4
26960 .IX Item "-mstack-protector-guard=guard"
26961 .PD 0
26962 .IP "\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR" 4
26963 .IX Item "-mstack-protector-guard-reg=reg"
26964 .IP "\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR" 4
26965 .IX Item "-mstack-protector-guard-offset=offset"
26966 .PD
26967 Generate stack protection code using canary at \fIguard\fR.  Supported
26968 locations are \fBglobal\fR for global canary or \fBtls\fR for per-thread
26969 canary in the \s-1TLS\s0 block (the default).  This option has effect only when
26970 \&\fB\-fstack\-protector\fR or \fB\-fstack\-protector\-all\fR is specified.
26971 .Sp
26972 With the latter choice the options
26973 \&\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR and
26974 \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR furthermore specify
26975 which segment register (\f(CW%fs\fR or \f(CW%gs\fR) to use as base register
26976 for reading the canary, and from what offset from that base register.
26977 The default for those is as specified in the relevant \s-1ABI.\s0
26978 .IP "\fB\-mmitigate\-rop\fR" 4
26979 .IX Item "-mmitigate-rop"
26980 Try to avoid generating code sequences that contain unintended return
26981 opcodes, to mitigate against certain forms of attack. At the moment,
26982 this option is limited in what it can do and should not be relied
26983 on to provide serious protection.
26984 .IP "\fB\-mgeneral\-regs\-only\fR" 4
26985 .IX Item "-mgeneral-regs-only"
26986 Generate code that uses only the general-purpose registers.  This
26987 prevents the compiler from using floating-point, vector, mask and bound
26988 registers.
26989 .IP "\fB\-mindirect\-branch=\fR\fIchoice\fR" 4
26990 .IX Item "-mindirect-branch=choice"
26991 Convert indirect call and jump with \fIchoice\fR.  The default is
26992 \&\fBkeep\fR, which keeps indirect call and jump unmodified.
26993 \&\fBthunk\fR converts indirect call and jump to call and return thunk.
26994 \&\fBthunk-inline\fR converts indirect call and jump to inlined call
26995 and return thunk.  \fBthunk-extern\fR converts indirect call and jump
26996 to external call and return thunk provided in a separate object file.
26997 You can control this behavior for a specific function by using the
26998 function attribute \f(CW\*(C`indirect_branch\*(C'\fR.
26999 .Sp
27000 Note that \fB\-mcmodel=large\fR is incompatible with
27001 \&\fB\-mindirect\-branch=thunk\fR and
27002 \&\fB\-mindirect\-branch=thunk\-extern\fR since the thunk function may
27003 not be reachable in the large code model.
27004 .Sp
27005 Note that \fB\-mindirect\-branch=thunk\-extern\fR is incompatible with
27006 \&\fB\-fcf\-protection=branch\fR and \fB\-fcheck\-pointer\-bounds\fR
27007 since the external thunk can not be modified to disable control-flow
27008 check.
27009 .IP "\fB\-mfunction\-return=\fR\fIchoice\fR" 4
27010 .IX Item "-mfunction-return=choice"
27011 Convert function return with \fIchoice\fR.  The default is \fBkeep\fR,
27012 which keeps function return unmodified.  \fBthunk\fR converts function
27013 return to call and return thunk.  \fBthunk-inline\fR converts function
27014 return to inlined call and return thunk.  \fBthunk-extern\fR converts
27015 function return to external call and return thunk provided in a separate
27016 object file.  You can control this behavior for a specific function by
27017 using the function attribute \f(CW\*(C`function_return\*(C'\fR.
27018 .Sp
27019 Note that \fB\-mcmodel=large\fR is incompatible with
27020 \&\fB\-mfunction\-return=thunk\fR and
27021 \&\fB\-mfunction\-return=thunk\-extern\fR since the thunk function may
27022 not be reachable in the large code model.
27023 .IP "\fB\-mindirect\-branch\-register\fR" 4
27024 .IX Item "-mindirect-branch-register"
27025 Force indirect call and jump via register.
27026 .PP
27027 These \fB\-m\fR switches are supported in addition to the above
27028 on x86\-64 processors in 64\-bit environments.
27029 .IP "\fB\-m32\fR" 4
27030 .IX Item "-m32"
27031 .PD 0
27032 .IP "\fB\-m64\fR" 4
27033 .IX Item "-m64"
27034 .IP "\fB\-mx32\fR" 4
27035 .IX Item "-mx32"
27036 .IP "\fB\-m16\fR" 4
27037 .IX Item "-m16"
27038 .IP "\fB\-miamcu\fR" 4
27039 .IX Item "-miamcu"
27040 .PD
27041 Generate code for a 16\-bit, 32\-bit or 64\-bit environment.
27042 The \fB\-m32\fR option sets \f(CW\*(C`int\*(C'\fR, \f(CW\*(C`long\*(C'\fR, and pointer types
27043 to 32 bits, and
27044 generates code that runs on any i386 system.
27045 .Sp
27046 The \fB\-m64\fR option sets \f(CW\*(C`int\*(C'\fR to 32 bits and \f(CW\*(C`long\*(C'\fR and pointer
27047 types to 64 bits, and generates code for the x86\-64 architecture.
27048 For Darwin only the \fB\-m64\fR option also turns off the \fB\-fno\-pic\fR
27049 and \fB\-mdynamic\-no\-pic\fR options.
27050 .Sp
27051 The \fB\-mx32\fR option sets \f(CW\*(C`int\*(C'\fR, \f(CW\*(C`long\*(C'\fR, and pointer types
27052 to 32 bits, and
27053 generates code for the x86\-64 architecture.
27054 .Sp
27055 The \fB\-m16\fR option is the same as \fB\-m32\fR, except for that
27056 it outputs the \f(CW\*(C`.code16gcc\*(C'\fR assembly directive at the beginning of
27057 the assembly output so that the binary can run in 16\-bit mode.
27058 .Sp
27059 The \fB\-miamcu\fR option generates code which conforms to Intel \s-1MCU\s0
27060 psABI.  It requires the \fB\-m32\fR option to be turned on.
27061 .IP "\fB\-mno\-red\-zone\fR" 4
27062 .IX Item "-mno-red-zone"
27063 Do not use a so-called \*(L"red zone\*(R" for x86\-64 code.  The red zone is mandated
27064 by the x86\-64 \s-1ABI\s0; it is a 128\-byte area beyond the location of the
27065 stack pointer that is not modified by signal or interrupt handlers
27066 and therefore can be used for temporary data without adjusting the stack
27067 pointer.  The flag \fB\-mno\-red\-zone\fR disables this red zone.
27068 .IP "\fB\-mcmodel=small\fR" 4
27069 .IX Item "-mcmodel=small"
27070 Generate code for the small code model: the program and its symbols must
27071 be linked in the lower 2 \s-1GB\s0 of the address space.  Pointers are 64 bits.
27072 Programs can be statically or dynamically linked.  This is the default
27073 code model.
27074 .IP "\fB\-mcmodel=kernel\fR" 4
27075 .IX Item "-mcmodel=kernel"
27076 Generate code for the kernel code model.  The kernel runs in the
27077 negative 2 \s-1GB\s0 of the address space.
27078 This model has to be used for Linux kernel code.
27079 .IP "\fB\-mcmodel=medium\fR" 4
27080 .IX Item "-mcmodel=medium"
27081 Generate code for the medium model: the program is linked in the lower 2
27082 \&\s-1GB\s0 of the address space.  Small symbols are also placed there.  Symbols
27083 with sizes larger than \fB\-mlarge\-data\-threshold\fR are put into
27084 large data or \s-1BSS\s0 sections and can be located above 2GB.  Programs can
27085 be statically or dynamically linked.
27086 .IP "\fB\-mcmodel=large\fR" 4
27087 .IX Item "-mcmodel=large"
27088 Generate code for the large model.  This model makes no assumptions
27089 about addresses and sizes of sections.
27090 .IP "\fB\-maddress\-mode=long\fR" 4
27091 .IX Item "-maddress-mode=long"
27092 Generate code for long address mode.  This is only supported for 64\-bit
27093 and x32 environments.  It is the default address mode for 64\-bit
27094 environments.
27095 .IP "\fB\-maddress\-mode=short\fR" 4
27096 .IX Item "-maddress-mode=short"
27097 Generate code for short address mode.  This is only supported for 32\-bit
27098 and x32 environments.  It is the default address mode for 32\-bit and
27099 x32 environments.
27100 .PP
27101 \fIx86 Windows Options\fR
27102 .IX Subsection "x86 Windows Options"
27103 .PP
27104 These additional options are available for Microsoft Windows targets:
27105 .IP "\fB\-mconsole\fR" 4
27106 .IX Item "-mconsole"
27107 This option
27108 specifies that a console application is to be generated, by
27109 instructing the linker to set the \s-1PE\s0 header subsystem type
27110 required for console applications.
27111 This option is available for Cygwin and MinGW targets and is
27112 enabled by default on those targets.
27113 .IP "\fB\-mdll\fR" 4
27114 .IX Item "-mdll"
27115 This option is available for Cygwin and MinGW targets.  It
27116 specifies that a DLL\-\-\-a dynamic link library\-\-\-is to be
27117 generated, enabling the selection of the required runtime
27118 startup object and entry point.
27119 .IP "\fB\-mnop\-fun\-dllimport\fR" 4
27120 .IX Item "-mnop-fun-dllimport"
27121 This option is available for Cygwin and MinGW targets.  It
27122 specifies that the \f(CW\*(C`dllimport\*(C'\fR attribute should be ignored.
27123 .IP "\fB\-mthread\fR" 4
27124 .IX Item "-mthread"
27125 This option is available for MinGW targets. It specifies
27126 that MinGW-specific thread support is to be used.
27127 .IP "\fB\-municode\fR" 4
27128 .IX Item "-municode"
27129 This option is available for MinGW\-w64 targets.  It causes
27130 the \f(CW\*(C`UNICODE\*(C'\fR preprocessor macro to be predefined, and
27131 chooses Unicode-capable runtime startup code.
27132 .IP "\fB\-mwin32\fR" 4
27133 .IX Item "-mwin32"
27134 This option is available for Cygwin and MinGW targets.  It
27135 specifies that the typical Microsoft Windows predefined macros are to
27136 be set in the pre-processor, but does not influence the choice
27137 of runtime library/startup code.
27138 .IP "\fB\-mwindows\fR" 4
27139 .IX Item "-mwindows"
27140 This option is available for Cygwin and MinGW targets.  It
27141 specifies that a \s-1GUI\s0 application is to be generated by
27142 instructing the linker to set the \s-1PE\s0 header subsystem type
27143 appropriately.
27144 .IP "\fB\-fno\-set\-stack\-executable\fR" 4
27145 .IX Item "-fno-set-stack-executable"
27146 This option is available for MinGW targets. It specifies that
27147 the executable flag for the stack used by nested functions isn't
27148 set. This is necessary for binaries running in kernel mode of
27149 Microsoft Windows, as there the User32 \s-1API,\s0 which is used to set executable
27150 privileges, isn't available.
27151 .IP "\fB\-fwritable\-relocated\-rdata\fR" 4
27152 .IX Item "-fwritable-relocated-rdata"
27153 This option is available for MinGW and Cygwin targets.  It specifies
27154 that relocated-data in read-only section is put into the \f(CW\*(C`.data\*(C'\fR
27155 section.  This is a necessary for older runtimes not supporting
27156 modification of \f(CW\*(C`.rdata\*(C'\fR sections for pseudo-relocation.
27157 .IP "\fB\-mpe\-aligned\-commons\fR" 4
27158 .IX Item "-mpe-aligned-commons"
27159 This option is available for Cygwin and MinGW targets.  It
27160 specifies that the \s-1GNU\s0 extension to the \s-1PE\s0 file format that
27161 permits the correct alignment of \s-1COMMON\s0 variables should be
27162 used when generating code.  It is enabled by default if
27163 \&\s-1GCC\s0 detects that the target assembler found during configuration
27164 supports the feature.
27165 .PP
27166 See also under \fBx86 Options\fR for standard options.
27167 .PP
27168 \fIXstormy16 Options\fR
27169 .IX Subsection "Xstormy16 Options"
27170 .PP
27171 These options are defined for Xstormy16:
27172 .IP "\fB\-msim\fR" 4
27173 .IX Item "-msim"
27174 Choose startup files and linker script suitable for the simulator.
27175 .PP
27176 \fIXtensa Options\fR
27177 .IX Subsection "Xtensa Options"
27178 .PP
27179 These options are supported for Xtensa targets:
27180 .IP "\fB\-mconst16\fR" 4
27181 .IX Item "-mconst16"
27182 .PD 0
27183 .IP "\fB\-mno\-const16\fR" 4
27184 .IX Item "-mno-const16"
27185 .PD
27186 Enable or disable use of \f(CW\*(C`CONST16\*(C'\fR instructions for loading
27187 constant values.  The \f(CW\*(C`CONST16\*(C'\fR instruction is currently not a
27188 standard option from Tensilica.  When enabled, \f(CW\*(C`CONST16\*(C'\fR
27189 instructions are always used in place of the standard \f(CW\*(C`L32R\*(C'\fR
27190 instructions.  The use of \f(CW\*(C`CONST16\*(C'\fR is enabled by default only if
27191 the \f(CW\*(C`L32R\*(C'\fR instruction is not available.
27192 .IP "\fB\-mfused\-madd\fR" 4
27193 .IX Item "-mfused-madd"
27194 .PD 0
27195 .IP "\fB\-mno\-fused\-madd\fR" 4
27196 .IX Item "-mno-fused-madd"
27197 .PD
27198 Enable or disable use of fused multiply/add and multiply/subtract
27199 instructions in the floating-point option.  This has no effect if the
27200 floating-point option is not also enabled.  Disabling fused multiply/add
27201 and multiply/subtract instructions forces the compiler to use separate
27202 instructions for the multiply and add/subtract operations.  This may be
27203 desirable in some cases where strict \s-1IEEE\s0 754\-compliant results are
27204 required: the fused multiply add/subtract instructions do not round the
27205 intermediate result, thereby producing results with \fImore\fR bits of
27206 precision than specified by the \s-1IEEE\s0 standard.  Disabling fused multiply
27207 add/subtract instructions also ensures that the program output is not
27208 sensitive to the compiler's ability to combine multiply and add/subtract
27209 operations.
27210 .IP "\fB\-mserialize\-volatile\fR" 4
27211 .IX Item "-mserialize-volatile"
27212 .PD 0
27213 .IP "\fB\-mno\-serialize\-volatile\fR" 4
27214 .IX Item "-mno-serialize-volatile"
27215 .PD
27216 When this option is enabled, \s-1GCC\s0 inserts \f(CW\*(C`MEMW\*(C'\fR instructions before
27217 \&\f(CW\*(C`volatile\*(C'\fR memory references to guarantee sequential consistency.
27218 The default is \fB\-mserialize\-volatile\fR.  Use
27219 \&\fB\-mno\-serialize\-volatile\fR to omit the \f(CW\*(C`MEMW\*(C'\fR instructions.
27220 .IP "\fB\-mforce\-no\-pic\fR" 4
27221 .IX Item "-mforce-no-pic"
27222 For targets, like GNU/Linux, where all user-mode Xtensa code must be
27223 position-independent code (\s-1PIC\s0), this option disables \s-1PIC\s0 for compiling
27224 kernel code.
27225 .IP "\fB\-mtext\-section\-literals\fR" 4
27226 .IX Item "-mtext-section-literals"
27227 .PD 0
27228 .IP "\fB\-mno\-text\-section\-literals\fR" 4
27229 .IX Item "-mno-text-section-literals"
27230 .PD
27231 These options control the treatment of literal pools.  The default is
27232 \&\fB\-mno\-text\-section\-literals\fR, which places literals in a separate
27233 section in the output file.  This allows the literal pool to be placed
27234 in a data \s-1RAM/ROM,\s0 and it also allows the linker to combine literal
27235 pools from separate object files to remove redundant literals and
27236 improve code size.  With \fB\-mtext\-section\-literals\fR, the literals
27237 are interspersed in the text section in order to keep them as close as
27238 possible to their references.  This may be necessary for large assembly
27239 files.  Literals for each function are placed right before that function.
27240 .IP "\fB\-mauto\-litpools\fR" 4
27241 .IX Item "-mauto-litpools"
27242 .PD 0
27243 .IP "\fB\-mno\-auto\-litpools\fR" 4
27244 .IX Item "-mno-auto-litpools"
27245 .PD
27246 These options control the treatment of literal pools.  The default is
27247 \&\fB\-mno\-auto\-litpools\fR, which places literals in a separate
27248 section in the output file unless \fB\-mtext\-section\-literals\fR is
27249 used.  With \fB\-mauto\-litpools\fR the literals are interspersed in
27250 the text section by the assembler.  Compiler does not produce explicit
27251 \&\f(CW\*(C`.literal\*(C'\fR directives and loads literals into registers with
27252 \&\f(CW\*(C`MOVI\*(C'\fR instructions instead of \f(CW\*(C`L32R\*(C'\fR to let the assembler
27253 do relaxation and place literals as necessary.  This option allows
27254 assembler to create several literal pools per function and assemble
27255 very big functions, which may not be possible with
27256 \&\fB\-mtext\-section\-literals\fR.
27257 .IP "\fB\-mtarget\-align\fR" 4
27258 .IX Item "-mtarget-align"
27259 .PD 0
27260 .IP "\fB\-mno\-target\-align\fR" 4
27261 .IX Item "-mno-target-align"
27262 .PD
27263 When this option is enabled, \s-1GCC\s0 instructs the assembler to
27264 automatically align instructions to reduce branch penalties at the
27265 expense of some code density.  The assembler attempts to widen density
27266 instructions to align branch targets and the instructions following call
27267 instructions.  If there are not enough preceding safe density
27268 instructions to align a target, no widening is performed.  The
27269 default is \fB\-mtarget\-align\fR.  These options do not affect the
27270 treatment of auto-aligned instructions like \f(CW\*(C`LOOP\*(C'\fR, which the
27271 assembler always aligns, either by widening density instructions or
27272 by inserting \s-1NOP\s0 instructions.
27273 .IP "\fB\-mlongcalls\fR" 4
27274 .IX Item "-mlongcalls"
27275 .PD 0
27276 .IP "\fB\-mno\-longcalls\fR" 4
27277 .IX Item "-mno-longcalls"
27278 .PD
27279 When this option is enabled, \s-1GCC\s0 instructs the assembler to translate
27280 direct calls to indirect calls unless it can determine that the target
27281 of a direct call is in the range allowed by the call instruction.  This
27282 translation typically occurs for calls to functions in other source
27283 files.  Specifically, the assembler translates a direct \f(CW\*(C`CALL\*(C'\fR
27284 instruction into an \f(CW\*(C`L32R\*(C'\fR followed by a \f(CW\*(C`CALLX\*(C'\fR instruction.
27285 The default is \fB\-mno\-longcalls\fR.  This option should be used in
27286 programs where the call target can potentially be out of range.  This
27287 option is implemented in the assembler, not the compiler, so the
27288 assembly code generated by \s-1GCC\s0 still shows direct call
27289 instructions\-\-\-look at the disassembled object code to see the actual
27290 instructions.  Note that the assembler uses an indirect call for
27291 every cross-file call, not just those that really are out of range.
27292 .PP
27293 \fIzSeries Options\fR
27294 .IX Subsection "zSeries Options"
27295 .PP
27296 These are listed under
27297 .SH "ENVIRONMENT"
27298 .IX Header "ENVIRONMENT"
27299 This section describes several environment variables that affect how \s-1GCC\s0
27300 operates.  Some of them work by specifying directories or prefixes to use
27301 when searching for various kinds of files.  Some are used to specify other
27302 aspects of the compilation environment.
27303 .PP
27304 Note that you can also specify places to search using options such as
27305 \&\fB\-B\fR, \fB\-I\fR and \fB\-L\fR.  These
27306 take precedence over places specified using environment variables, which
27307 in turn take precedence over those specified by the configuration of \s-1GCC.\s0
27308 .IP "\fB\s-1LANG\s0\fR" 4
27309 .IX Item "LANG"
27310 .PD 0
27311 .IP "\fB\s-1LC_CTYPE\s0\fR" 4
27312 .IX Item "LC_CTYPE"
27313 .IP "\fB\s-1LC_MESSAGES\s0\fR" 4
27314 .IX Item "LC_MESSAGES"
27315 .IP "\fB\s-1LC_ALL\s0\fR" 4
27316 .IX Item "LC_ALL"
27317 .PD
27318 These environment variables control the way that \s-1GCC\s0 uses
27319 localization information which allows \s-1GCC\s0 to work with different
27320 national conventions.  \s-1GCC\s0 inspects the locale categories
27321 \&\fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR if it has been configured to do
27322 so.  These locale categories can be set to any value supported by your
27323 installation.  A typical value is \fBen_GB.UTF\-8\fR for English in the United
27324 Kingdom encoded in \s-1UTF\-8.\s0
27325 .Sp
27326 The \fB\s-1LC_CTYPE\s0\fR environment variable specifies character
27327 classification.  \s-1GCC\s0 uses it to determine the character boundaries in
27328 a string; this is needed for some multibyte encodings that contain quote
27329 and escape characters that are otherwise interpreted as a string
27330 end or escape.
27331 .Sp
27332 The \fB\s-1LC_MESSAGES\s0\fR environment variable specifies the language to
27333 use in diagnostic messages.
27334 .Sp
27335 If the \fB\s-1LC_ALL\s0\fR environment variable is set, it overrides the value
27336 of \fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR; otherwise, \fB\s-1LC_CTYPE\s0\fR
27337 and \fB\s-1LC_MESSAGES\s0\fR default to the value of the \fB\s-1LANG\s0\fR
27338 environment variable.  If none of these variables are set, \s-1GCC\s0
27339 defaults to traditional C English behavior.
27340 .IP "\fB\s-1TMPDIR\s0\fR" 4
27341 .IX Item "TMPDIR"
27342 If \fB\s-1TMPDIR\s0\fR is set, it specifies the directory to use for temporary
27343 files.  \s-1GCC\s0 uses temporary files to hold the output of one stage of
27344 compilation which is to be used as input to the next stage: for example,
27345 the output of the preprocessor, which is the input to the compiler
27346 proper.
27347 .IP "\fB\s-1GCC_COMPARE_DEBUG\s0\fR" 4
27348 .IX Item "GCC_COMPARE_DEBUG"
27349 Setting \fB\s-1GCC_COMPARE_DEBUG\s0\fR is nearly equivalent to passing
27350 \&\fB\-fcompare\-debug\fR to the compiler driver.  See the documentation
27351 of this option for more details.
27352 .IP "\fB\s-1GCC_EXEC_PREFIX\s0\fR" 4
27353 .IX Item "GCC_EXEC_PREFIX"
27354 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is set, it specifies a prefix to use in the
27355 names of the subprograms executed by the compiler.  No slash is added
27356 when this prefix is combined with the name of a subprogram, but you can
27357 specify a prefix that ends with a slash if you wish.
27358 .Sp
27359 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is not set, \s-1GCC\s0 attempts to figure out
27360 an appropriate prefix to use based on the pathname it is invoked with.
27361 .Sp
27362 If \s-1GCC\s0 cannot find the subprogram using the specified prefix, it
27363 tries looking in the usual places for the subprogram.
27364 .Sp
27365 The default value of \fB\s-1GCC_EXEC_PREFIX\s0\fR is
27366 \&\fI\fIprefix\fI/lib/gcc/\fR where \fIprefix\fR is the prefix to
27367 the installed compiler. In many cases \fIprefix\fR is the value
27368 of \f(CW\*(C`prefix\*(C'\fR when you ran the \fIconfigure\fR script.
27369 .Sp
27370 Other prefixes specified with \fB\-B\fR take precedence over this prefix.
27371 .Sp
27372 This prefix is also used for finding files such as \fIcrt0.o\fR that are
27373 used for linking.
27374 .Sp
27375 In addition, the prefix is used in an unusual way in finding the
27376 directories to search for header files.  For each of the standard
27377 directories whose name normally begins with \fB/usr/local/lib/gcc\fR
27378 (more precisely, with the value of \fB\s-1GCC_INCLUDE_DIR\s0\fR), \s-1GCC\s0 tries
27379 replacing that beginning with the specified prefix to produce an
27380 alternate directory name.  Thus, with \fB\-Bfoo/\fR, \s-1GCC\s0 searches
27381 \&\fIfoo/bar\fR just before it searches the standard directory 
27382 \&\fI/usr/local/lib/bar\fR.
27383 If a standard directory begins with the configured
27384 \&\fIprefix\fR then the value of \fIprefix\fR is replaced by
27385 \&\fB\s-1GCC_EXEC_PREFIX\s0\fR when looking for header files.
27386 .IP "\fB\s-1COMPILER_PATH\s0\fR" 4
27387 .IX Item "COMPILER_PATH"
27388 The value of \fB\s-1COMPILER_PATH\s0\fR is a colon-separated list of
27389 directories, much like \fB\s-1PATH\s0\fR.  \s-1GCC\s0 tries the directories thus
27390 specified when searching for subprograms, if it cannot find the
27391 subprograms using \fB\s-1GCC_EXEC_PREFIX\s0\fR.
27392 .IP "\fB\s-1LIBRARY_PATH\s0\fR" 4
27393 .IX Item "LIBRARY_PATH"
27394 The value of \fB\s-1LIBRARY_PATH\s0\fR is a colon-separated list of
27395 directories, much like \fB\s-1PATH\s0\fR.  When configured as a native compiler,
27396 \&\s-1GCC\s0 tries the directories thus specified when searching for special
27397 linker files, if it cannot find them using \fB\s-1GCC_EXEC_PREFIX\s0\fR.  Linking
27398 using \s-1GCC\s0 also uses these directories when searching for ordinary
27399 libraries for the \fB\-l\fR option (but directories specified with
27400 \&\fB\-L\fR come first).
27401 .IP "\fB\s-1LANG\s0\fR" 4
27402 .IX Item "LANG"
27403 This variable is used to pass locale information to the compiler.  One way in
27404 which this information is used is to determine the character set to be used
27405 when character literals, string literals and comments are parsed in C and \*(C+.
27406 When the compiler is configured to allow multibyte characters,
27407 the following values for \fB\s-1LANG\s0\fR are recognized:
27408 .RS 4
27409 .IP "\fBC\-JIS\fR" 4
27410 .IX Item "C-JIS"
27411 Recognize \s-1JIS\s0 characters.
27412 .IP "\fBC\-SJIS\fR" 4
27413 .IX Item "C-SJIS"
27414 Recognize \s-1SJIS\s0 characters.
27415 .IP "\fBC\-EUCJP\fR" 4
27416 .IX Item "C-EUCJP"
27417 Recognize \s-1EUCJP\s0 characters.
27418 .RE
27419 .RS 4
27420 .Sp
27421 If \fB\s-1LANG\s0\fR is not defined, or if it has some other value, then the
27422 compiler uses \f(CW\*(C`mblen\*(C'\fR and \f(CW\*(C`mbtowc\*(C'\fR as defined by the default locale to
27423 recognize and translate multibyte characters.
27424 .RE
27425 .PP
27426 Some additional environment variables affect the behavior of the
27427 preprocessor.
27428 .IP "\fB\s-1CPATH\s0\fR" 4
27429 .IX Item "CPATH"
27430 .PD 0
27431 .IP "\fBC_INCLUDE_PATH\fR" 4
27432 .IX Item "C_INCLUDE_PATH"
27433 .IP "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4
27434 .IX Item "CPLUS_INCLUDE_PATH"
27435 .IP "\fB\s-1OBJC_INCLUDE_PATH\s0\fR" 4
27436 .IX Item "OBJC_INCLUDE_PATH"
27437 .PD
27438 Each variable's value is a list of directories separated by a special
27439 character, much like \fB\s-1PATH\s0\fR, in which to look for header files.
27440 The special character, \f(CW\*(C`PATH_SEPARATOR\*(C'\fR, is target-dependent and
27441 determined at \s-1GCC\s0 build time.  For Microsoft Windows-based targets it is a
27442 semicolon, and for almost all other targets it is a colon.
27443 .Sp
27444 \&\fB\s-1CPATH\s0\fR specifies a list of directories to be searched as if
27445 specified with \fB\-I\fR, but after any paths given with \fB\-I\fR
27446 options on the command line.  This environment variable is used
27447 regardless of which language is being preprocessed.
27448 .Sp
27449 The remaining environment variables apply only when preprocessing the
27450 particular language indicated.  Each specifies a list of directories
27451 to be searched as if specified with \fB\-isystem\fR, but after any
27452 paths given with \fB\-isystem\fR options on the command line.
27453 .Sp
27454 In all these variables, an empty element instructs the compiler to
27455 search its current working directory.  Empty elements can appear at the
27456 beginning or end of a path.  For instance, if the value of
27457 \&\fB\s-1CPATH\s0\fR is \f(CW\*(C`:/special/include\*(C'\fR, that has the same
27458 effect as \fB\-I.\ \-I/special/include\fR.
27459 .IP "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4
27460 .IX Item "DEPENDENCIES_OUTPUT"
27461 If this variable is set, its value specifies how to output
27462 dependencies for Make based on the non-system header files processed
27463 by the compiler.  System header files are ignored in the dependency
27464 output.
27465 .Sp
27466 The value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, in
27467 which case the Make rules are written to that file, guessing the target
27468 name from the source file name.  Or the value can have the form
27469 \&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written to
27470 file \fIfile\fR using \fItarget\fR as the target name.
27471 .Sp
27472 In other words, this environment variable is equivalent to combining
27473 the options \fB\-MM\fR and \fB\-MF\fR,
27474 with an optional \fB\-MT\fR switch too.
27475 .IP "\fB\s-1SUNPRO_DEPENDENCIES\s0\fR" 4
27476 .IX Item "SUNPRO_DEPENDENCIES"
27477 This variable is the same as \fB\s-1DEPENDENCIES_OUTPUT\s0\fR (see above),
27478 except that system header files are not ignored, so it implies
27479 \&\fB\-M\fR rather than \fB\-MM\fR.  However, the dependence on the
27480 main input file is omitted.
27481 .IP "\fB\s-1SOURCE_DATE_EPOCH\s0\fR" 4
27482 .IX Item "SOURCE_DATE_EPOCH"
27483 If this variable is set, its value specifies a \s-1UNIX\s0 timestamp to be
27484 used in replacement of the current date and time in the \f(CW\*(C`_\|_DATE_\|_\*(C'\fR
27485 and \f(CW\*(C`_\|_TIME_\|_\*(C'\fR macros, so that the embedded timestamps become
27486 reproducible.
27487 .Sp
27488 The value of \fB\s-1SOURCE_DATE_EPOCH\s0\fR must be a \s-1UNIX\s0 timestamp,
27489 defined as the number of seconds (excluding leap seconds) since
27490 01 Jan 1970 00:00:00 represented in \s-1ASCII\s0; identical to the output of
27491 \&\fB\f(CB@command\fB{date +%s\fR} on GNU/Linux and other systems that support the
27492 \&\f(CW%s\fR extension in the \f(CW\*(C`date\*(C'\fR command.
27493 .Sp
27494 The value should be a known timestamp such as the last modification
27495 time of the source or package and it should be set by the build
27496 process.
27497 .SH "BUGS"
27498 .IX Header "BUGS"
27499 For instructions on reporting bugs, see
27500 <\fBhttps://gcc.gnu.org/bugs/\fR>.
27501 .SH "FOOTNOTES"
27502 .IX Header "FOOTNOTES"
27503 .IP "1." 4
27504 On some systems, \fBgcc \-shared\fR
27505 needs to build supplementary stub code for constructors to work.  On
27506 multi-libbed systems, \fBgcc \-shared\fR must select the correct support
27507 libraries to link against.  Failing to supply the correct flags may lead
27508 to subtle defects.  Supplying them in cases where they are not necessary
27509 is innocuous.
27510 .SH "SEE ALSO"
27511 .IX Header "SEE ALSO"
27512 \&\fBgpl\fR\|(7), \fBgfdl\fR\|(7), \fBfsf\-funding\fR\|(7),
27513 \&\fBcpp\fR\|(1), \fBgcov\fR\|(1), \fBas\fR\|(1), \fBld\fR\|(1), \fBgdb\fR\|(1), \fBdbx\fR\|(1)
27514 and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIas\fR,
27515 \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
27516 .SH "AUTHOR"
27517 .IX Header "AUTHOR"
27518 See the Info entry for \fBgcc\fR, or
27519 <\fBhttp://gcc.gnu.org/onlinedocs/gcc/Contributors.html\fR>,
27520 for contributors to \s-1GCC.\s0
27521 .SH "COPYRIGHT"
27522 .IX Header "COPYRIGHT"
27523 Copyright (c) 1988\-2018 Free Software Foundation, Inc.
27524 .PP
27525 Permission is granted to copy, distribute and/or modify this document
27526 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3 or
27527 any later version published by the Free Software Foundation; with the
27528 Invariant Sections being \*(L"\s-1GNU\s0 General Public License\*(R" and \*(L"Funding
27529 Free Software\*(R", the Front-Cover texts being (a) (see below), and with
27530 the Back-Cover Texts being (b) (see below).  A copy of the license is
27531 included in the \fBgfdl\fR\|(7) man page.
27532 .PP
27533 (a) The \s-1FSF\s0's Front-Cover Text is:
27534 .PP
27535 .Vb 1
27536 \&     A GNU Manual
27537 .Ve
27538 .PP
27539 (b) The \s-1FSF\s0's Back-Cover Text is:
27540 .PP
27541 .Vb 3
27542 \&     You have freedom to copy and modify this GNU Manual, like GNU
27543 \&     software.  Copies published by the Free Software Foundation raise
27544 \&     funds for GNU development.
27545 .Ve