gcc80: Update manpages.
[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  \-time\fR[\fB=\fR\fIfile\fR]
605 .IP "\fIMachine-Dependent Options\fR" 4
606 .IX Item "Machine-Dependent Options"
607 \&\fIAArch64 Options\fR
608 \&\fB\-mabi=\fR\fIname\fR  \fB\-mbig\-endian  \-mlittle\-endian 
609 \&\-mgeneral\-regs\-only 
610 \&\-mcmodel=tiny  \-mcmodel=small  \-mcmodel=large 
611 \&\-mstrict\-align 
612 \&\-momit\-leaf\-frame\-pointer 
613 \&\-mtls\-dialect=desc  \-mtls\-dialect=traditional 
614 \&\-mtls\-size=\fR\fIsize\fR 
615 \&\fB\-mfix\-cortex\-a53\-835769  \-mfix\-cortex\-a53\-843419 
616 \&\-mlow\-precision\-recip\-sqrt  \-mlow\-precision\-sqrt  \-mlow\-precision\-div 
617 \&\-mpc\-relative\-literal\-loads 
618 \&\-msign\-return\-address=\fR\fIscope\fR 
619 \&\fB\-march=\fR\fIname\fR  \fB\-mcpu=\fR\fIname\fR  \fB\-mtune=\fR\fIname\fR  
620 \&\fB\-moverride=\fR\fIstring\fR  \fB\-mverbose\-cost\-dump\fR
621 .Sp
622 \&\fIAdapteva Epiphany Options\fR
623 \&\fB\-mhalf\-reg\-file  \-mprefer\-short\-insn\-regs 
624 \&\-mbranch\-cost=\fR\fInum\fR  \fB\-mcmove  \-mnops=\fR\fInum\fR  \fB\-msoft\-cmpsf 
625 \&\-msplit\-lohi  \-mpost\-inc  \-mpost\-modify  \-mstack\-offset=\fR\fInum\fR 
626 \&\fB\-mround\-nearest  \-mlong\-calls  \-mshort\-calls  \-msmall16 
627 \&\-mfp\-mode=\fR\fImode\fR  \fB\-mvect\-double  \-max\-vect\-align=\fR\fInum\fR 
628 \&\fB\-msplit\-vecmove\-early  \-m1reg\-\fR\fIreg\fR
629 .Sp
630 \&\fI\s-1ARC\s0 Options\fR
631 \&\fB\-mbarrel\-shifter \-mjli\-always 
632 \&\-mcpu=\fR\fIcpu\fR  \fB\-mA6  \-mARC600  \-mA7  \-mARC700 
633 \&\-mdpfp  \-mdpfp\-compact  \-mdpfp\-fast  \-mno\-dpfp\-lrsr 
634 \&\-mea  \-mno\-mpy  \-mmul32x16  \-mmul64  \-matomic 
635 \&\-mnorm  \-mspfp  \-mspfp\-compact  \-mspfp\-fast  \-msimd  \-msoft\-float  \-mswap 
636 \&\-mcrc  \-mdsp\-packa  \-mdvbf  \-mlock  \-mmac\-d16  \-mmac\-24  \-mrtsc  \-mswape 
637 \&\-mtelephony  \-mxy  \-misize  \-mannotate\-align  \-marclinux  \-marclinux_prof 
638 \&\-mlong\-calls  \-mmedium\-calls  \-msdata \-mirq\-ctrl\-saved 
639 \&\-mrgf\-banked\-regs \-mlpc\-width=\fR\fIwidth\fR \fB\-G\fR \fInum\fR 
640 \&\fB\-mvolatile\-cache  \-mtp\-regno=\fR\fIregno\fR 
641 \&\fB\-malign\-call  \-mauto\-modify\-reg  \-mbbit\-peephole  \-mno\-brcc 
642 \&\-mcase\-vector\-pcrel  \-mcompact\-casesi  \-mno\-cond\-exec  \-mearly\-cbranchsi 
643 \&\-mexpand\-adddi  \-mindexed\-loads  \-mlra  \-mlra\-priority\-none 
644 \&\-mlra\-priority\-compact mlra-priority-noncompact  \-mno\-millicode 
645 \&\-mmixed\-code  \-mq\-class  \-mRcq  \-mRcw  \-msize\-level=\fR\fIlevel\fR 
646 \&\fB\-mtune=\fR\fIcpu\fR  \fB\-mmultcost=\fR\fInum\fR 
647 \&\fB\-munalign\-prob\-threshold=\fR\fIprobability\fR  \fB\-mmpy\-option=\fR\fImulto\fR 
648 \&\fB\-mdiv\-rem  \-mcode\-density  \-mll64  \-mfpu=\fR\fIfpu\fR \fB\-mrf16\fR
649 .Sp
650 \&\fI\s-1ARM\s0 Options\fR
651 \&\fB\-mapcs\-frame  \-mno\-apcs\-frame 
652 \&\-mabi=\fR\fIname\fR 
653 \&\fB\-mapcs\-stack\-check  \-mno\-apcs\-stack\-check 
654 \&\-mapcs\-reentrant  \-mno\-apcs\-reentrant 
655 \&\-msched\-prolog  \-mno\-sched\-prolog 
656 \&\-mlittle\-endian  \-mbig\-endian 
657 \&\-mbe8 \-mbe32 
658 \&\-mfloat\-abi=\fR\fIname\fR 
659 \&\fB\-mfp16\-format=\fR\fIname\fR
660 \&\fB\-mthumb\-interwork  \-mno\-thumb\-interwork 
661 \&\-mcpu=\fR\fIname\fR  \fB\-march=\fR\fIname\fR  \fB\-mfpu=\fR\fIname\fR  
662 \&\fB\-mtune=\fR\fIname\fR  \fB\-mprint\-tune\-info 
663 \&\-mstructure\-size\-boundary=\fR\fIn\fR 
664 \&\fB\-mabort\-on\-noreturn 
665 \&\-mlong\-calls  \-mno\-long\-calls 
666 \&\-msingle\-pic\-base  \-mno\-single\-pic\-base 
667 \&\-mpic\-register=\fR\fIreg\fR 
668 \&\fB\-mnop\-fun\-dllimport 
669 \&\-mpoke\-function\-name 
670 \&\-mthumb  \-marm  \-mflip\-thumb 
671 \&\-mtpcs\-frame  \-mtpcs\-leaf\-frame 
672 \&\-mcaller\-super\-interworking  \-mcallee\-super\-interworking 
673 \&\-mtp=\fR\fIname\fR  \fB\-mtls\-dialect=\fR\fIdialect\fR 
674 \&\fB\-mword\-relocations 
675 \&\-mfix\-cortex\-m3\-ldrd 
676 \&\-munaligned\-access 
677 \&\-mneon\-for\-64bits 
678 \&\-mslow\-flash\-data 
679 \&\-masm\-syntax\-unified 
680 \&\-mrestrict\-it 
681 \&\-mverbose\-cost\-dump 
682 \&\-mpure\-code 
683 \&\-mcmse\fR
684 .Sp
685 \&\fI\s-1AVR\s0 Options\fR
686 \&\fB\-mmcu=\fR\fImcu\fR  \fB\-mabsdata  \-maccumulate\-args 
687 \&\-mbranch\-cost=\fR\fIcost\fR 
688 \&\fB\-mcall\-prologues  \-mgas\-isr\-prologues  \-mint8 
689 \&\-mn_flash=\fR\fIsize\fR  \fB\-mno\-interrupts 
690 \&\-mmain\-is\-OS_task \-mrelax  \-mrmw  \-mstrict\-X  \-mtiny\-stack 
691 \&\-mfract\-convert\-truncate 
692 \&\-mshort\-calls  \-nodevicelib 
693 \&\-Waddr\-space\-convert  \-Wmisspelled\-isr\fR
694 .Sp
695 \&\fIBlackfin Options\fR
696 \&\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR] 
697 \&\fB\-msim  \-momit\-leaf\-frame\-pointer  \-mno\-omit\-leaf\-frame\-pointer 
698 \&\-mspecld\-anomaly  \-mno\-specld\-anomaly  \-mcsync\-anomaly  \-mno\-csync\-anomaly 
699 \&\-mlow\-64k  \-mno\-low64k  \-mstack\-check\-l1  \-mid\-shared\-library 
700 \&\-mno\-id\-shared\-library  \-mshared\-library\-id=\fR\fIn\fR 
701 \&\fB\-mleaf\-id\-shared\-library  \-mno\-leaf\-id\-shared\-library 
702 \&\-msep\-data  \-mno\-sep\-data  \-mlong\-calls  \-mno\-long\-calls 
703 \&\-mfast\-fp  \-minline\-plt  \-mmulticore  \-mcorea  \-mcoreb  \-msdram 
704 \&\-micplb\fR
705 .Sp
706 \&\fIC6X Options\fR
707 \&\fB\-mbig\-endian  \-mlittle\-endian  \-march=\fR\fIcpu\fR 
708 \&\fB\-msim  \-msdata=\fR\fIsdata-type\fR
709 .Sp
710 \&\fI\s-1CRIS\s0 Options\fR
711 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-march=\fR\fIcpu\fR  \fB\-mtune=\fR\fIcpu\fR 
712 \&\fB\-mmax\-stack\-frame=\fR\fIn\fR  \fB\-melinux\-stacksize=\fR\fIn\fR 
713 \&\fB\-metrax4  \-metrax100  \-mpdebug  \-mcc\-init  \-mno\-side\-effects 
714 \&\-mstack\-align  \-mdata\-align  \-mconst\-align 
715 \&\-m32\-bit  \-m16\-bit  \-m8\-bit  \-mno\-prologue\-epilogue  \-mno\-gotplt 
716 \&\-melf  \-maout  \-melinux  \-mlinux  \-sim  \-sim2 
717 \&\-mmul\-bug\-workaround  \-mno\-mul\-bug\-workaround\fR
718 .Sp
719 \&\fI\s-1CR16\s0 Options\fR
720 \&\fB\-mmac 
721 \&\-mcr16cplus  \-mcr16c 
722 \&\-msim  \-mint32  \-mbit\-ops
723 \&\-mdata\-model=\fR\fImodel\fR
724 .Sp
725 \&\fIDarwin Options\fR
726 \&\fB\-all_load  \-allowable_client  \-arch  \-arch_errors_fatal 
727 \&\-arch_only  \-bind_at_load  \-bundle  \-bundle_loader 
728 \&\-client_name  \-compatibility_version  \-current_version 
729 \&\-dead_strip 
730 \&\-dependency\-file  \-dylib_file  \-dylinker_install_name 
731 \&\-dynamic  \-dynamiclib  \-exported_symbols_list 
732 \&\-filelist  \-flat_namespace  \-force_cpusubtype_ALL 
733 \&\-force_flat_namespace  \-headerpad_max_install_names 
734 \&\-iframework 
735 \&\-image_base  \-init  \-install_name  \-keep_private_externs 
736 \&\-multi_module  \-multiply_defined  \-multiply_defined_unused 
737 \&\-noall_load   \-no_dead_strip_inits_and_terms 
738 \&\-nofixprebinding  \-nomultidefs  \-noprebind  \-noseglinkedit 
739 \&\-pagezero_size  \-prebind  \-prebind_all_twolevel_modules 
740 \&\-private_bundle  \-read_only_relocs  \-sectalign 
741 \&\-sectobjectsymbols  \-whyload  \-seg1addr 
742 \&\-sectcreate  \-sectobjectsymbols  \-sectorder 
743 \&\-segaddr  \-segs_read_only_addr  \-segs_read_write_addr 
744 \&\-seg_addr_table  \-seg_addr_table_filename  \-seglinkedit 
745 \&\-segprot  \-segs_read_only_addr  \-segs_read_write_addr 
746 \&\-single_module  \-static  \-sub_library  \-sub_umbrella 
747 \&\-twolevel_namespace  \-umbrella  \-undefined 
748 \&\-unexported_symbols_list  \-weak_reference_mismatches 
749 \&\-whatsloaded  \-F  \-gused  \-gfull  \-mmacosx\-version\-min=\fR\fIversion\fR 
750 \&\fB\-mkernel  \-mone\-byte\-bool\fR
751 .Sp
752 \&\fI\s-1DEC\s0 Alpha Options\fR
753 \&\fB\-mno\-fp\-regs  \-msoft\-float 
754 \&\-mieee  \-mieee\-with\-inexact  \-mieee\-conformant 
755 \&\-mfp\-trap\-mode=\fR\fImode\fR  \fB\-mfp\-rounding\-mode=\fR\fImode\fR 
756 \&\fB\-mtrap\-precision=\fR\fImode\fR  \fB\-mbuild\-constants 
757 \&\-mcpu=\fR\fIcpu-type\fR  \fB\-mtune=\fR\fIcpu-type\fR 
758 \&\fB\-mbwx  \-mmax  \-mfix  \-mcix 
759 \&\-mfloat\-vax  \-mfloat\-ieee 
760 \&\-mexplicit\-relocs  \-msmall\-data  \-mlarge\-data 
761 \&\-msmall\-text  \-mlarge\-text 
762 \&\-mmemory\-latency=\fR\fItime\fR
763 .Sp
764 \&\fI\s-1FR30\s0 Options\fR
765 \&\fB\-msmall\-model  \-mno\-lsim\fR
766 .Sp
767 \&\fI\s-1FT32\s0 Options\fR
768 \&\fB\-msim  \-mlra  \-mnodiv  \-mft32b  \-mcompress  \-mnopm\fR
769 .Sp
770 \&\fI\s-1FRV\s0 Options\fR
771 \&\fB\-mgpr\-32  \-mgpr\-64  \-mfpr\-32  \-mfpr\-64 
772 \&\-mhard\-float  \-msoft\-float 
773 \&\-malloc\-cc  \-mfixed\-cc  \-mdword  \-mno\-dword 
774 \&\-mdouble  \-mno\-double 
775 \&\-mmedia  \-mno\-media  \-mmuladd  \-mno\-muladd 
776 \&\-mfdpic  \-minline\-plt  \-mgprel\-ro  \-multilib\-library\-pic 
777 \&\-mlinked\-fp  \-mlong\-calls  \-malign\-labels 
778 \&\-mlibrary\-pic  \-macc\-4  \-macc\-8 
779 \&\-mpack  \-mno\-pack  \-mno\-eflags  \-mcond\-move  \-mno\-cond\-move 
780 \&\-moptimize\-membar  \-mno\-optimize\-membar 
781 \&\-mscc  \-mno\-scc  \-mcond\-exec  \-mno\-cond\-exec 
782 \&\-mvliw\-branch  \-mno\-vliw\-branch 
783 \&\-mmulti\-cond\-exec  \-mno\-multi\-cond\-exec  \-mnested\-cond\-exec 
784 \&\-mno\-nested\-cond\-exec  \-mtomcat\-stats 
785 \&\-mTLS  \-mtls 
786 \&\-mcpu=\fR\fIcpu\fR
787 .Sp
788 \&\fIGNU/Linux Options\fR
789 \&\fB\-mglibc  \-muclibc  \-mmusl  \-mbionic  \-mandroid 
790 \&\-tno\-android\-cc  \-tno\-android\-ld\fR
791 .Sp
792 \&\fIH8/300 Options\fR
793 \&\fB\-mrelax  \-mh  \-ms  \-mn  \-mexr  \-mno\-exr  \-mint32  \-malign\-300\fR
794 .Sp
795 \&\fI\s-1HPPA\s0 Options\fR
796 \&\fB\-march=\fR\fIarchitecture-type\fR 
797 \&\fB\-mcaller\-copies  \-mdisable\-fpregs  \-mdisable\-indexing 
798 \&\-mfast\-indirect\-calls  \-mgas  \-mgnu\-ld   \-mhp\-ld 
799 \&\-mfixed\-range=\fR\fIregister-range\fR 
800 \&\fB\-mjump\-in\-delay  \-mlinker\-opt  \-mlong\-calls 
801 \&\-mlong\-load\-store  \-mno\-disable\-fpregs 
802 \&\-mno\-disable\-indexing  \-mno\-fast\-indirect\-calls  \-mno\-gas 
803 \&\-mno\-jump\-in\-delay  \-mno\-long\-load\-store 
804 \&\-mno\-portable\-runtime  \-mno\-soft\-float 
805 \&\-mno\-space\-regs  \-msoft\-float  \-mpa\-risc\-1\-0 
806 \&\-mpa\-risc\-1\-1  \-mpa\-risc\-2\-0  \-mportable\-runtime 
807 \&\-mschedule=\fR\fIcpu-type\fR  \fB\-mspace\-regs  \-msio  \-mwsio 
808 \&\-munix=\fR\fIunix-std\fR  \fB\-nolibdld  \-static  \-threads\fR
809 .Sp
810 \&\fI\s-1IA\-64\s0 Options\fR
811 \&\fB\-mbig\-endian  \-mlittle\-endian  \-mgnu\-as  \-mgnu\-ld  \-mno\-pic 
812 \&\-mvolatile\-asm\-stop  \-mregister\-names  \-msdata  \-mno\-sdata 
813 \&\-mconstant\-gp  \-mauto\-pic  \-mfused\-madd 
814 \&\-minline\-float\-divide\-min\-latency 
815 \&\-minline\-float\-divide\-max\-throughput 
816 \&\-mno\-inline\-float\-divide 
817 \&\-minline\-int\-divide\-min\-latency 
818 \&\-minline\-int\-divide\-max\-throughput  
819 \&\-mno\-inline\-int\-divide 
820 \&\-minline\-sqrt\-min\-latency  \-minline\-sqrt\-max\-throughput 
821 \&\-mno\-inline\-sqrt 
822 \&\-mdwarf2\-asm  \-mearly\-stop\-bits 
823 \&\-mfixed\-range=\fR\fIregister-range\fR  \fB\-mtls\-size=\fR\fItls-size\fR 
824 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-milp32  \-mlp64 
825 \&\-msched\-br\-data\-spec  \-msched\-ar\-data\-spec  \-msched\-control\-spec 
826 \&\-msched\-br\-in\-data\-spec  \-msched\-ar\-in\-data\-spec  \-msched\-in\-control\-spec 
827 \&\-msched\-spec\-ldc  \-msched\-spec\-control\-ldc 
828 \&\-msched\-prefer\-non\-data\-spec\-insns  \-msched\-prefer\-non\-control\-spec\-insns 
829 \&\-msched\-stop\-bits\-after\-every\-cycle  \-msched\-count\-spec\-in\-critical\-path 
830 \&\-msel\-sched\-dont\-check\-control\-spec  \-msched\-fp\-mem\-deps\-zero\-cost 
831 \&\-msched\-max\-memory\-insns\-hard\-limit  \-msched\-max\-memory\-insns=\fR\fImax-insns\fR
832 .Sp
833 \&\fI\s-1LM32\s0 Options\fR
834 \&\fB\-mbarrel\-shift\-enabled  \-mdivide\-enabled  \-mmultiply\-enabled 
835 \&\-msign\-extend\-enabled  \-muser\-enabled\fR
836 .Sp
837 \&\fIM32R/D Options\fR
838 \&\fB\-m32r2  \-m32rx  \-m32r 
839 \&\-mdebug 
840 \&\-malign\-loops  \-mno\-align\-loops 
841 \&\-missue\-rate=\fR\fInumber\fR 
842 \&\fB\-mbranch\-cost=\fR\fInumber\fR 
843 \&\fB\-mmodel=\fR\fIcode-size-model-type\fR 
844 \&\fB\-msdata=\fR\fIsdata-type\fR 
845 \&\fB\-mno\-flush\-func  \-mflush\-func=\fR\fIname\fR 
846 \&\fB\-mno\-flush\-trap  \-mflush\-trap=\fR\fInumber\fR 
847 \&\fB\-G\fR \fInum\fR
848 .Sp
849 \&\fIM32C Options\fR
850 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-msim  \-memregs=\fR\fInumber\fR
851 .Sp
852 \&\fIM680x0 Options\fR
853 \&\fB\-march=\fR\fIarch\fR  \fB\-mcpu=\fR\fIcpu\fR  \fB\-mtune=\fR\fItune\fR 
854 \&\fB\-m68000  \-m68020  \-m68020\-40  \-m68020\-60  \-m68030  \-m68040 
855 \&\-m68060  \-mcpu32  \-m5200  \-m5206e  \-m528x  \-m5307  \-m5407 
856 \&\-mcfv4e  \-mbitfield  \-mno\-bitfield  \-mc68000  \-mc68020 
857 \&\-mnobitfield  \-mrtd  \-mno\-rtd  \-mdiv  \-mno\-div  \-mshort 
858 \&\-mno\-short  \-mhard\-float  \-m68881  \-msoft\-float  \-mpcrel 
859 \&\-malign\-int  \-mstrict\-align  \-msep\-data  \-mno\-sep\-data 
860 \&\-mshared\-library\-id=n  \-mid\-shared\-library  \-mno\-id\-shared\-library 
861 \&\-mxgot  \-mno\-xgot  \-mlong\-jump\-table\-offsets\fR
862 .Sp
863 \&\fIMCore Options\fR
864 \&\fB\-mhardlit  \-mno\-hardlit  \-mdiv  \-mno\-div  \-mrelax\-immediates 
865 \&\-mno\-relax\-immediates  \-mwide\-bitfields  \-mno\-wide\-bitfields 
866 \&\-m4byte\-functions  \-mno\-4byte\-functions  \-mcallgraph\-data 
867 \&\-mno\-callgraph\-data  \-mslow\-bytes  \-mno\-slow\-bytes  \-mno\-lsim 
868 \&\-mlittle\-endian  \-mbig\-endian  \-m210  \-m340  \-mstack\-increment\fR
869 .Sp
870 \&\fIMeP Options\fR
871 \&\fB\-mabsdiff  \-mall\-opts  \-maverage  \-mbased=\fR\fIn\fR  \fB\-mbitops 
872 \&\-mc=\fR\fIn\fR  \fB\-mclip  \-mconfig=\fR\fIname\fR  \fB\-mcop  \-mcop32  \-mcop64  \-mivc2 
873 \&\-mdc  \-mdiv  \-meb  \-mel  \-mio\-volatile  \-ml  \-mleadz  \-mm  \-mminmax 
874 \&\-mmult  \-mno\-opts  \-mrepeat  \-ms  \-msatur  \-msdram  \-msim  \-msimnovec  \-mtf 
875 \&\-mtiny=\fR\fIn\fR
876 .Sp
877 \&\fIMicroBlaze Options\fR
878 \&\fB\-msoft\-float  \-mhard\-float  \-msmall\-divides  \-mcpu=\fR\fIcpu\fR 
879 \&\fB\-mmemcpy  \-mxl\-soft\-mul  \-mxl\-soft\-div  \-mxl\-barrel\-shift 
880 \&\-mxl\-pattern\-compare  \-mxl\-stack\-check  \-mxl\-gp\-opt  \-mno\-clearbss 
881 \&\-mxl\-multiply\-high  \-mxl\-float\-convert  \-mxl\-float\-sqrt 
882 \&\-mbig\-endian  \-mlittle\-endian  \-mxl\-reorder  \-mxl\-mode\-\fR\fIapp-model\fR
883 .Sp
884 \&\fI\s-1MIPS\s0 Options\fR
885 \&\fB\-EL  \-EB  \-march=\fR\fIarch\fR  \fB\-mtune=\fR\fIarch\fR 
886 \&\fB\-mips1  \-mips2  \-mips3  \-mips4  \-mips32  \-mips32r2  \-mips32r3  \-mips32r5 
887 \&\-mips32r6  \-mips64  \-mips64r2  \-mips64r3  \-mips64r5  \-mips64r6 
888 \&\-mips16  \-mno\-mips16  \-mflip\-mips16 
889 \&\-minterlink\-compressed  \-mno\-interlink\-compressed 
890 \&\-minterlink\-mips16  \-mno\-interlink\-mips16 
891 \&\-mabi=\fR\fIabi\fR  \fB\-mabicalls  \-mno\-abicalls 
892 \&\-mshared  \-mno\-shared  \-mplt  \-mno\-plt  \-mxgot  \-mno\-xgot 
893 \&\-mgp32  \-mgp64  \-mfp32  \-mfpxx  \-mfp64  \-mhard\-float  \-msoft\-float 
894 \&\-mno\-float  \-msingle\-float  \-mdouble\-float 
895 \&\-modd\-spreg  \-mno\-odd\-spreg 
896 \&\-mabs=\fR\fImode\fR  \fB\-mnan=\fR\fIencoding\fR 
897 \&\fB\-mdsp  \-mno\-dsp  \-mdspr2  \-mno\-dspr2 
898 \&\-mmcu  \-mmno\-mcu 
899 \&\-meva  \-mno\-eva 
900 \&\-mvirt  \-mno\-virt 
901 \&\-mxpa  \-mno\-xpa 
902 \&\-mmicromips  \-mno\-micromips 
903 \&\-mmsa  \-mno\-msa 
904 \&\-mfpu=\fR\fIfpu-type\fR 
905 \&\fB\-msmartmips  \-mno\-smartmips 
906 \&\-mpaired\-single  \-mno\-paired\-single  \-mdmx  \-mno\-mdmx 
907 \&\-mips3d  \-mno\-mips3d  \-mmt  \-mno\-mt  \-mllsc  \-mno\-llsc 
908 \&\-mlong64  \-mlong32  \-msym32  \-mno\-sym32 
909 \&\-G\fR\fInum\fR  \fB\-mlocal\-sdata  \-mno\-local\-sdata 
910 \&\-mextern\-sdata  \-mno\-extern\-sdata  \-mgpopt  \-mno\-gopt 
911 \&\-membedded\-data  \-mno\-embedded\-data 
912 \&\-muninit\-const\-in\-rodata  \-mno\-uninit\-const\-in\-rodata 
913 \&\-mcode\-readable=\fR\fIsetting\fR 
914 \&\fB\-msplit\-addresses  \-mno\-split\-addresses 
915 \&\-mexplicit\-relocs  \-mno\-explicit\-relocs 
916 \&\-mcheck\-zero\-division  \-mno\-check\-zero\-division 
917 \&\-mdivide\-traps  \-mdivide\-breaks 
918 \&\-mload\-store\-pairs  \-mno\-load\-store\-pairs 
919 \&\-mmemcpy  \-mno\-memcpy  \-mlong\-calls  \-mno\-long\-calls 
920 \&\-mmad  \-mno\-mad  \-mimadd  \-mno\-imadd  \-mfused\-madd  \-mno\-fused\-madd  \-nocpp 
921 \&\-mfix\-24k  \-mno\-fix\-24k 
922 \&\-mfix\-r4000  \-mno\-fix\-r4000  \-mfix\-r4400  \-mno\-fix\-r4400 
923 \&\-mfix\-r10000  \-mno\-fix\-r10000  \-mfix\-rm7000  \-mno\-fix\-rm7000 
924 \&\-mfix\-vr4120  \-mno\-fix\-vr4120 
925 \&\-mfix\-vr4130  \-mno\-fix\-vr4130  \-mfix\-sb1  \-mno\-fix\-sb1 
926 \&\-mflush\-func=\fR\fIfunc\fR  \fB\-mno\-flush\-func 
927 \&\-mbranch\-cost=\fR\fInum\fR  \fB\-mbranch\-likely  \-mno\-branch\-likely 
928 \&\-mcompact\-branches=\fR\fIpolicy\fR 
929 \&\fB\-mfp\-exceptions  \-mno\-fp\-exceptions 
930 \&\-mvr4130\-align  \-mno\-vr4130\-align  \-msynci  \-mno\-synci 
931 \&\-mlxc1\-sxc1 \-mno\-lxc1\-sxc1 \-mmadd4 \-mno\-madd4 
932 \&\-mrelax\-pic\-calls  \-mno\-relax\-pic\-calls  \-mmcount\-ra\-address 
933 \&\-mframe\-header\-opt  \-mno\-frame\-header\-opt\fR
934 .Sp
935 \&\fI\s-1MMIX\s0 Options\fR
936 \&\fB\-mlibfuncs  \-mno\-libfuncs  \-mepsilon  \-mno\-epsilon  \-mabi=gnu 
937 \&\-mabi=mmixware  \-mzero\-extend  \-mknuthdiv  \-mtoplevel\-symbols 
938 \&\-melf  \-mbranch\-predict  \-mno\-branch\-predict  \-mbase\-addresses 
939 \&\-mno\-base\-addresses  \-msingle\-exit  \-mno\-single\-exit\fR
940 .Sp
941 \&\fI\s-1MN10300\s0 Options\fR
942 \&\fB\-mmult\-bug  \-mno\-mult\-bug 
943 \&\-mno\-am33  \-mam33  \-mam33\-2  \-mam34 
944 \&\-mtune=\fR\fIcpu-type\fR 
945 \&\fB\-mreturn\-pointer\-on\-d0 
946 \&\-mno\-crt0  \-mrelax  \-mliw  \-msetlb\fR
947 .Sp
948 \&\fIMoxie Options\fR
949 \&\fB\-meb  \-mel  \-mmul.x  \-mno\-crt0\fR
950 .Sp
951 \&\fI\s-1MSP430\s0 Options\fR
952 \&\fB\-msim  \-masm\-hex  \-mmcu=  \-mcpu=  \-mlarge  \-msmall  \-mrelax 
953 \&\-mwarn\-mcu 
954 \&\-mcode\-region=  \-mdata\-region= 
955 \&\-msilicon\-errata=  \-msilicon\-errata\-warn= 
956 \&\-mhwmult=  \-minrt\fR
957 .Sp
958 \&\fI\s-1NDS32\s0 Options\fR
959 \&\fB\-mbig\-endian  \-mlittle\-endian 
960 \&\-mreduced\-regs  \-mfull\-regs 
961 \&\-mcmov  \-mno\-cmov 
962 \&\-mext\-perf  \-mno\-ext\-perf 
963 \&\-mext\-perf2  \-mno\-ext\-perf2 
964 \&\-mext\-string  \-mno\-ext\-string 
965 \&\-mv3push  \-mno\-v3push 
966 \&\-m16bit  \-mno\-16bit 
967 \&\-misr\-vector\-size=\fR\fInum\fR 
968 \&\fB\-mcache\-block\-size=\fR\fInum\fR 
969 \&\fB\-march=\fR\fIarch\fR 
970 \&\fB\-mcmodel=\fR\fIcode-model\fR 
971 \&\fB\-mctor\-dtor  \-mrelax\fR
972 .Sp
973 \&\fINios \s-1II\s0 Options\fR
974 \&\fB\-G\fR \fInum\fR  \fB\-mgpopt=\fR\fIoption\fR  \fB\-mgpopt  \-mno\-gpopt 
975 \&\-mgprel\-sec=\fR\fIregexp\fR \fB\-mr0rel\-sec=\fR\fIregexp\fR 
976 \&\fB\-mel  \-meb 
977 \&\-mno\-bypass\-cache  \-mbypass\-cache 
978 \&\-mno\-cache\-volatile  \-mcache\-volatile 
979 \&\-mno\-fast\-sw\-div  \-mfast\-sw\-div 
980 \&\-mhw\-mul  \-mno\-hw\-mul  \-mhw\-mulx  \-mno\-hw\-mulx  \-mno\-hw\-div  \-mhw\-div 
981 \&\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR  \fB\-mno\-custom\-\fR\fIinsn\fR 
982 \&\fB\-mcustom\-fpu\-cfg=\fR\fIname\fR 
983 \&\fB\-mhal  \-msmallc  \-msys\-crt0=\fR\fIname\fR  \fB\-msys\-lib=\fR\fIname\fR 
984 \&\fB\-march=\fR\fIarch\fR  \fB\-mbmx  \-mno\-bmx  \-mcdx  \-mno\-cdx\fR
985 .Sp
986 \&\fINvidia \s-1PTX\s0 Options\fR
987 \&\fB\-m32  \-m64  \-mmainkernel  \-moptimize\fR
988 .Sp
989 \&\fI\s-1PDP\-11\s0 Options\fR
990 \&\fB\-mfpu  \-msoft\-float  \-mac0  \-mno\-ac0  \-m40  \-m45  \-m10 
991 \&\-mbcopy  \-mbcopy\-builtin  \-mint32  \-mno\-int16 
992 \&\-mint16  \-mno\-int32  \-mfloat32  \-mno\-float64 
993 \&\-mfloat64  \-mno\-float32  \-mabshi  \-mno\-abshi 
994 \&\-mbranch\-expensive  \-mbranch\-cheap 
995 \&\-munix\-asm  \-mdec\-asm\fR
996 .Sp
997 \&\fIpicoChip Options\fR
998 \&\fB\-mae=\fR\fIae_type\fR  \fB\-mvliw\-lookahead=\fR\fIN\fR 
999 \&\fB\-msymbol\-as\-address  \-mno\-inefficient\-warnings\fR
1000 .Sp
1001 \&\fIPowerPC Options\fR
1002 See \s-1RS/6000\s0 and PowerPC Options.
1003 .Sp
1004 \&\fIPowerPC \s-1SPE\s0 Options\fR
1005 \&\fB\-mcpu=\fR\fIcpu-type\fR 
1006 \&\fB\-mtune=\fR\fIcpu-type\fR 
1007 \&\fB\-mmfcrf  \-mno\-mfcrf  \-mpopcntb  \-mno\-popcntb 
1008 \&\-mfull\-toc   \-mminimal\-toc  \-mno\-fp\-in\-toc  \-mno\-sum\-in\-toc 
1009 \&\-m32  \-mxl\-compat  \-mno\-xl\-compat 
1010 \&\-malign\-power  \-malign\-natural 
1011 \&\-msoft\-float  \-mhard\-float  \-mmultiple  \-mno\-multiple 
1012 \&\-msingle\-float  \-mdouble\-float 
1013 \&\-mupdate  \-mno\-update 
1014 \&\-mavoid\-indexed\-addresses  \-mno\-avoid\-indexed\-addresses 
1015 \&\-mstrict\-align  \-mno\-strict\-align  \-mrelocatable 
1016 \&\-mno\-relocatable  \-mrelocatable\-lib  \-mno\-relocatable\-lib 
1017 \&\-mtoc  \-mno\-toc  \-mlittle  \-mlittle\-endian  \-mbig  \-mbig\-endian 
1018 \&\-msingle\-pic\-base 
1019 \&\-mprioritize\-restricted\-insns=\fR\fIpriority\fR 
1020 \&\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR 
1021 \&\fB\-minsert\-sched\-nops=\fR\fIscheme\fR 
1022 \&\fB\-mcall\-sysv  \-mcall\-netbsd 
1023 \&\-maix\-struct\-return  \-msvr4\-struct\-return 
1024 \&\-mabi=\fR\fIabi-type\fR  \fB\-msecure\-plt  \-mbss\-plt 
1025 \&\-mblock\-move\-inline\-limit=\fR\fInum\fR 
1026 \&\fB\-misel  \-mno\-isel 
1027 \&\-misel=yes  \-misel=no 
1028 \&\-mspe  \-mno\-spe 
1029 \&\-mspe=yes  \-mspe=no 
1030 \&\-mfloat\-gprs=yes  \-mfloat\-gprs=no  \-mfloat\-gprs=single  \-mfloat\-gprs=double 
1031 \&\-mprototype  \-mno\-prototype 
1032 \&\-msim  \-mmvme  \-mads  \-myellowknife  \-memb  \-msdata 
1033 \&\-msdata=\fR\fIopt\fR  \fB\-mvxworks  \-G\fR \fInum\fR 
1034 \&\fB\-mrecip  \-mrecip=\fR\fIopt\fR  \fB\-mno\-recip  \-mrecip\-precision 
1035 \&\-mno\-recip\-precision 
1036 \&\-mpointers\-to\-nested\-functions  \-mno\-pointers\-to\-nested\-functions 
1037 \&\-msave\-toc\-indirect  \-mno\-save\-toc\-indirect 
1038 \&\-mcompat\-align\-parm  \-mno\-compat\-align\-parm 
1039 \&\-mfloat128  \-mno\-float128 
1040 \&\-mgnu\-attribute  \-mno\-gnu\-attribute 
1041 \&\-mstack\-protector\-guard=\fR\fIguard\fR \fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR 
1042 \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR
1043 .Sp
1044 \&\fIRISC-V Options\fR
1045 \&\fB\-mbranch\-cost=\fR\fIN\-instruction\fR 
1046 \&\fB\-mplt  \-mno\-plt 
1047 \&\-mabi=\fR\fIABI-string\fR 
1048 \&\fB\-mfdiv  \-mno\-fdiv 
1049 \&\-mdiv  \-mno\-div 
1050 \&\-march=\fR\fIISA-string\fR 
1051 \&\fB\-mtune=\fR\fIprocessor-string\fR 
1052 \&\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR 
1053 \&\fB\-msmall\-data\-limit=\fR\fIN\-bytes\fR 
1054 \&\fB\-msave\-restore  \-mno\-save\-restore 
1055 \&\-mstrict\-align \-mno\-strict\-align 
1056 \&\-mcmodel=medlow \-mcmodel=medany 
1057 \&\-mexplicit\-relocs  \-mno\-explicit\-relocs 
1058 \&\-mrelax \-mno\-relax\fR
1059 .Sp
1060 \&\fI\s-1RL78\s0 Options\fR
1061 \&\fB\-msim  \-mmul=none  \-mmul=g13  \-mmul=g14  \-mallregs 
1062 \&\-mcpu=g10  \-mcpu=g13  \-mcpu=g14  \-mg10  \-mg13  \-mg14 
1063 \&\-m64bit\-doubles  \-m32bit\-doubles  \-msave\-mduc\-in\-interrupts\fR
1064 .Sp
1065 \&\fI\s-1RS/6000\s0 and PowerPC Options\fR
1066 \&\fB\-mcpu=\fR\fIcpu-type\fR 
1067 \&\fB\-mtune=\fR\fIcpu-type\fR 
1068 \&\fB\-mcmodel=\fR\fIcode-model\fR 
1069 \&\fB\-mpowerpc64 
1070 \&\-maltivec  \-mno\-altivec 
1071 \&\-mpowerpc\-gpopt  \-mno\-powerpc\-gpopt 
1072 \&\-mpowerpc\-gfxopt  \-mno\-powerpc\-gfxopt 
1073 \&\-mmfcrf  \-mno\-mfcrf  \-mpopcntb  \-mno\-popcntb  \-mpopcntd  \-mno\-popcntd 
1074 \&\-mfprnd  \-mno\-fprnd 
1075 \&\-mcmpb  \-mno\-cmpb  \-mmfpgpr  \-mno\-mfpgpr  \-mhard\-dfp  \-mno\-hard\-dfp 
1076 \&\-mfull\-toc   \-mminimal\-toc  \-mno\-fp\-in\-toc  \-mno\-sum\-in\-toc 
1077 \&\-m64  \-m32  \-mxl\-compat  \-mno\-xl\-compat  \-mpe 
1078 \&\-malign\-power  \-malign\-natural 
1079 \&\-msoft\-float  \-mhard\-float  \-mmultiple  \-mno\-multiple 
1080 \&\-msingle\-float  \-mdouble\-float  \-msimple\-fpu 
1081 \&\-mupdate  \-mno\-update 
1082 \&\-mavoid\-indexed\-addresses  \-mno\-avoid\-indexed\-addresses 
1083 \&\-mfused\-madd  \-mno\-fused\-madd  \-mbit\-align  \-mno\-bit\-align 
1084 \&\-mstrict\-align  \-mno\-strict\-align  \-mrelocatable 
1085 \&\-mno\-relocatable  \-mrelocatable\-lib  \-mno\-relocatable\-lib 
1086 \&\-mtoc  \-mno\-toc  \-mlittle  \-mlittle\-endian  \-mbig  \-mbig\-endian 
1087 \&\-mdynamic\-no\-pic  \-maltivec  \-mswdiv  \-msingle\-pic\-base 
1088 \&\-mprioritize\-restricted\-insns=\fR\fIpriority\fR 
1089 \&\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR 
1090 \&\fB\-minsert\-sched\-nops=\fR\fIscheme\fR 
1091 \&\fB\-mcall\-aixdesc  \-mcall\-eabi  \-mcall\-freebsd  
1092 \&\-mcall\-linux  \-mcall\-netbsd  \-mcall\-openbsd  
1093 \&\-mcall\-sysv  \-mcall\-sysv\-eabi  \-mcall\-sysv\-noeabi 
1094 \&\-mtraceback=\fR\fItraceback_type\fR 
1095 \&\fB\-maix\-struct\-return  \-msvr4\-struct\-return 
1096 \&\-mabi=\fR\fIabi-type\fR  \fB\-msecure\-plt  \-mbss\-plt 
1097 \&\-mblock\-move\-inline\-limit=\fR\fInum\fR 
1098 \&\fB\-mblock\-compare\-inline\-limit=\fR\fInum\fR 
1099 \&\fB\-mblock\-compare\-inline\-loop\-limit=\fR\fInum\fR 
1100 \&\fB\-mstring\-compare\-inline\-limit=\fR\fInum\fR 
1101 \&\fB\-misel  \-mno\-isel 
1102 \&\-misel=yes  \-misel=no 
1103 \&\-mpaired 
1104 \&\-mvrsave  \-mno\-vrsave 
1105 \&\-mmulhw  \-mno\-mulhw 
1106 \&\-mdlmzb  \-mno\-dlmzb 
1107 \&\-mprototype  \-mno\-prototype 
1108 \&\-msim  \-mmvme  \-mads  \-myellowknife  \-memb  \-msdata 
1109 \&\-msdata=\fR\fIopt\fR  \fB\-mreadonly\-in\-sdata  \-mvxworks  \-G\fR \fInum\fR 
1110 \&\fB\-mrecip  \-mrecip=\fR\fIopt\fR  \fB\-mno\-recip  \-mrecip\-precision 
1111 \&\-mno\-recip\-precision 
1112 \&\-mveclibabi=\fR\fItype\fR  \fB\-mfriz  \-mno\-friz 
1113 \&\-mpointers\-to\-nested\-functions  \-mno\-pointers\-to\-nested\-functions 
1114 \&\-msave\-toc\-indirect  \-mno\-save\-toc\-indirect 
1115 \&\-mpower8\-fusion  \-mno\-mpower8\-fusion  \-mpower8\-vector  \-mno\-power8\-vector 
1116 \&\-mcrypto  \-mno\-crypto  \-mhtm  \-mno\-htm 
1117 \&\-mquad\-memory  \-mno\-quad\-memory 
1118 \&\-mquad\-memory\-atomic  \-mno\-quad\-memory\-atomic 
1119 \&\-mcompat\-align\-parm  \-mno\-compat\-align\-parm 
1120 \&\-mfloat128  \-mno\-float128  \-mfloat128\-hardware  \-mno\-float128\-hardware 
1121 \&\-mgnu\-attribute  \-mno\-gnu\-attribute 
1122 \&\-mstack\-protector\-guard=\fR\fIguard\fR \fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR 
1123 \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR
1124 .Sp
1125 \&\fI\s-1RX\s0 Options\fR
1126 \&\fB\-m64bit\-doubles  \-m32bit\-doubles  \-fpu  \-nofpu
1127 \&\-mcpu=
1128 \&\-mbig\-endian\-data  \-mlittle\-endian\-data 
1129 \&\-msmall\-data 
1130 \&\-msim  \-mno\-sim
1131 \&\-mas100\-syntax  \-mno\-as100\-syntax
1132 \&\-mrelax
1133 \&\-mmax\-constant\-size=
1134 \&\-mint\-register=
1135 \&\-mpid
1136 \&\-mallow\-string\-insns  \-mno\-allow\-string\-insns
1137 \&\-mjsr
1138 \&\-mno\-warn\-multiple\-fast\-interrupts
1139 \&\-msave\-acc\-in\-interrupts\fR
1140 .Sp
1141 \&\fIS/390 and zSeries Options\fR
1142 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
1143 \&\fB\-mhard\-float  \-msoft\-float  \-mhard\-dfp  \-mno\-hard\-dfp 
1144 \&\-mlong\-double\-64  \-mlong\-double\-128 
1145 \&\-mbackchain  \-mno\-backchain  \-mpacked\-stack  \-mno\-packed\-stack 
1146 \&\-msmall\-exec  \-mno\-small\-exec  \-mmvcle  \-mno\-mvcle 
1147 \&\-m64  \-m31  \-mdebug  \-mno\-debug  \-mesa  \-mzarch 
1148 \&\-mhtm  \-mvx  \-mzvector 
1149 \&\-mtpf\-trace  \-mno\-tpf\-trace  \-mfused\-madd  \-mno\-fused\-madd 
1150 \&\-mwarn\-framesize  \-mwarn\-dynamicstack  \-mstack\-size  \-mstack\-guard 
1151 \&\-mhotpatch=\fR\fIhalfwords\fR\fB,\fR\fIhalfwords\fR
1152 .Sp
1153 \&\fIScore Options\fR
1154 \&\fB\-meb  \-mel 
1155 \&\-mnhwloop 
1156 \&\-muls 
1157 \&\-mmac 
1158 \&\-mscore5  \-mscore5u  \-mscore7  \-mscore7d\fR
1159 .Sp
1160 \&\fI\s-1SH\s0 Options\fR
1161 \&\fB\-m1  \-m2  \-m2e 
1162 \&\-m2a\-nofpu  \-m2a\-single\-only  \-m2a\-single  \-m2a 
1163 \&\-m3  \-m3e 
1164 \&\-m4\-nofpu  \-m4\-single\-only  \-m4\-single  \-m4 
1165 \&\-m4a\-nofpu  \-m4a\-single\-only  \-m4a\-single  \-m4a  \-m4al 
1166 \&\-mb  \-ml  \-mdalign  \-mrelax 
1167 \&\-mbigtable  \-mfmovd  \-mrenesas  \-mno\-renesas  \-mnomacsave 
1168 \&\-mieee  \-mno\-ieee  \-mbitops  \-misize  \-minline\-ic_invalidate  \-mpadstruct 
1169 \&\-mprefergot  \-musermode  \-multcost=\fR\fInumber\fR  \fB\-mdiv=\fR\fIstrategy\fR 
1170 \&\fB\-mdivsi3_libfunc=\fR\fIname\fR  \fB\-mfixed\-range=\fR\fIregister-range\fR 
1171 \&\fB\-maccumulate\-outgoing\-args 
1172 \&\-matomic\-model=\fR\fIatomic-model\fR 
1173 \&\fB\-mbranch\-cost=\fR\fInum\fR  \fB\-mzdcbranch  \-mno\-zdcbranch 
1174 \&\-mcbranch\-force\-delay\-slot 
1175 \&\-mfused\-madd  \-mno\-fused\-madd  \-mfsca  \-mno\-fsca  \-mfsrra  \-mno\-fsrra 
1176 \&\-mpretend\-cmove  \-mtas\fR
1177 .Sp
1178 \&\fISolaris 2 Options\fR
1179 \&\fB\-mclear\-hwcap  \-mno\-clear\-hwcap  \-mimpure\-text  \-mno\-impure\-text 
1180 \&\-pthreads\fR
1181 .Sp
1182 \&\fI\s-1SPARC\s0 Options\fR
1183 \&\fB\-mcpu=\fR\fIcpu-type\fR 
1184 \&\fB\-mtune=\fR\fIcpu-type\fR 
1185 \&\fB\-mcmodel=\fR\fIcode-model\fR 
1186 \&\fB\-mmemory\-model=\fR\fImem-model\fR 
1187 \&\fB\-m32  \-m64  \-mapp\-regs  \-mno\-app\-regs 
1188 \&\-mfaster\-structs  \-mno\-faster\-structs  \-mflat  \-mno\-flat 
1189 \&\-mfpu  \-mno\-fpu  \-mhard\-float  \-msoft\-float 
1190 \&\-mhard\-quad\-float  \-msoft\-quad\-float 
1191 \&\-mstack\-bias  \-mno\-stack\-bias 
1192 \&\-mstd\-struct\-return  \-mno\-std\-struct\-return 
1193 \&\-munaligned\-doubles  \-mno\-unaligned\-doubles 
1194 \&\-muser\-mode  \-mno\-user\-mode 
1195 \&\-mv8plus  \-mno\-v8plus  \-mvis  \-mno\-vis 
1196 \&\-mvis2  \-mno\-vis2  \-mvis3  \-mno\-vis3 
1197 \&\-mvis4 \-mno\-vis4 \-mvis4b \-mno\-vis4b 
1198 \&\-mcbcond  \-mno\-cbcond  \-mfmaf  \-mno\-fmaf  \-mfsmuld  \-mno\-fsmuld  
1199 \&\-mpopc  \-mno\-popc  \-msubxc  \-mno\-subxc 
1200 \&\-mfix\-at697f  \-mfix\-ut699  \-mfix\-ut700  \-mfix\-gr712rc 
1201 \&\-mlra  \-mno\-lra\fR
1202 .Sp
1203 \&\fI\s-1SPU\s0 Options\fR
1204 \&\fB\-mwarn\-reloc  \-merror\-reloc 
1205 \&\-msafe\-dma  \-munsafe\-dma 
1206 \&\-mbranch\-hints 
1207 \&\-msmall\-mem  \-mlarge\-mem  \-mstdmain 
1208 \&\-mfixed\-range=\fR\fIregister-range\fR 
1209 \&\fB\-mea32  \-mea64 
1210 \&\-maddress\-space\-conversion  \-mno\-address\-space\-conversion 
1211 \&\-mcache\-size=\fR\fIcache-size\fR 
1212 \&\fB\-matomic\-updates  \-mno\-atomic\-updates\fR
1213 .Sp
1214 \&\fISystem V Options\fR
1215 \&\fB\-Qy  \-Qn  \-YP,\fR\fIpaths\fR  \fB\-Ym,\fR\fIdir\fR
1216 .Sp
1217 \&\fITILE-Gx Options\fR
1218 \&\fB\-mcpu=CPU  \-m32  \-m64  \-mbig\-endian  \-mlittle\-endian 
1219 \&\-mcmodel=\fR\fIcode-model\fR
1220 .Sp
1221 \&\fITILEPro Options\fR
1222 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-m32\fR
1223 .Sp
1224 \&\fIV850 Options\fR
1225 \&\fB\-mlong\-calls  \-mno\-long\-calls  \-mep  \-mno\-ep 
1226 \&\-mprolog\-function  \-mno\-prolog\-function  \-mspace 
1227 \&\-mtda=\fR\fIn\fR  \fB\-msda=\fR\fIn\fR  \fB\-mzda=\fR\fIn\fR 
1228 \&\fB\-mapp\-regs  \-mno\-app\-regs 
1229 \&\-mdisable\-callt  \-mno\-disable\-callt 
1230 \&\-mv850e2v3  \-mv850e2  \-mv850e1  \-mv850es 
1231 \&\-mv850e  \-mv850  \-mv850e3v5 
1232 \&\-mloop 
1233 \&\-mrelax 
1234 \&\-mlong\-jumps 
1235 \&\-msoft\-float 
1236 \&\-mhard\-float 
1237 \&\-mgcc\-abi 
1238 \&\-mrh850\-abi 
1239 \&\-mbig\-switch\fR
1240 .Sp
1241 \&\fI\s-1VAX\s0 Options\fR
1242 \&\fB\-mg  \-mgnu  \-munix\fR
1243 .Sp
1244 \&\fIVisium Options\fR
1245 \&\fB\-mdebug  \-msim  \-mfpu  \-mno\-fpu  \-mhard\-float  \-msoft\-float 
1246 \&\-mcpu=\fR\fIcpu-type\fR  \fB\-mtune=\fR\fIcpu-type\fR  \fB\-msv\-mode  \-muser\-mode\fR
1247 .Sp
1248 \&\fI\s-1VMS\s0 Options\fR
1249 \&\fB\-mvms\-return\-codes  \-mdebug\-main=\fR\fIprefix\fR  \fB\-mmalloc64 
1250 \&\-mpointer\-size=\fR\fIsize\fR
1251 .Sp
1252 \&\fIVxWorks Options\fR
1253 \&\fB\-mrtp  \-non\-static  \-Bstatic  \-Bdynamic 
1254 \&\-Xbind\-lazy  \-Xbind\-now\fR
1255 .Sp
1256 \&\fIx86 Options\fR
1257 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
1258 \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR  \fB\-mdump\-tune\-features  \-mno\-default 
1259 \&\-mfpmath=\fR\fIunit\fR 
1260 \&\fB\-masm=\fR\fIdialect\fR  \fB\-mno\-fancy\-math\-387 
1261 \&\-mno\-fp\-ret\-in\-387  \-m80387  \-mhard\-float  \-msoft\-float 
1262 \&\-mno\-wide\-multiply  \-mrtd  \-malign\-double 
1263 \&\-mpreferred\-stack\-boundary=\fR\fInum\fR 
1264 \&\fB\-mincoming\-stack\-boundary=\fR\fInum\fR 
1265 \&\fB\-mcld  \-mcx16  \-msahf  \-mmovbe  \-mcrc32 
1266 \&\-mrecip  \-mrecip=\fR\fIopt\fR 
1267 \&\fB\-mvzeroupper  \-mprefer\-avx128 \-mprefer\-vector\-width=\fR\fIopt\fR 
1268 \&\fB\-mmmx  \-msse  \-msse2  \-msse3  \-mssse3  \-msse4.1  \-msse4.2  \-msse4  \-mavx 
1269 \&\-mavx2  \-mavx512f  \-mavx512pf  \-mavx512er  \-mavx512cd  \-mavx512vl 
1270 \&\-mavx512bw  \-mavx512dq  \-mavx512ifma  \-mavx512vbmi  \-msha  \-maes 
1271 \&\-mpclmul  \-mfsgsbase  \-mrdrnd  \-mf16c  \-mfma \-mpconfig \-mwbnoinvd 
1272 \&\-mprefetchwt1  \-mclflushopt  \-mclwb  \-mxsavec  \-mxsaves 
1273 \&\-msse4a  \-m3dnow  \-m3dnowa  \-mpopcnt  \-mabm  \-mbmi  \-mtbm  \-mfma4  \-mxop 
1274 \&\-madx  \-mlzcnt  \-mbmi2  \-mfxsr  \-mxsave  \-mxsaveopt  \-mrtm  \-mlwp  \-mmpx  
1275 \&\-mmwaitx  \-mclzero  \-mpku  \-mthreads \-mgfni  \-mvaes  
1276 \&\-mshstk \-mforce\-indirect\-call \-mavx512vbmi2 
1277 \&\-mvpclmulqdq \-mavx512bitalg \-mmovdiri \-mmovdir64b \-mavx512vpopcntdq 
1278 \&\-mavx5124fmaps  \-mavx512vnni  \-mavx5124vnniw  \-mprfchw  \-mrdpid 
1279 \&\-mrdseed  \-msgx 
1280 \&\-mms\-bitfields  \-mno\-align\-stringops  \-minline\-all\-stringops 
1281 \&\-minline\-stringops\-dynamically  \-mstringop\-strategy=\fR\fIalg\fR 
1282 \&\fB\-mmemcpy\-strategy=\fR\fIstrategy\fR  \fB\-mmemset\-strategy=\fR\fIstrategy\fR 
1283 \&\fB\-mpush\-args  \-maccumulate\-outgoing\-args  \-m128bit\-long\-double 
1284 \&\-m96bit\-long\-double  \-mlong\-double\-64  \-mlong\-double\-80  \-mlong\-double\-128 
1285 \&\-mregparm=\fR\fInum\fR  \fB\-msseregparm 
1286 \&\-mveclibabi=\fR\fItype\fR  \fB\-mvect8\-ret\-in\-mem 
1287 \&\-mpc32  \-mpc64  \-mpc80  \-mstackrealign 
1288 \&\-momit\-leaf\-frame\-pointer  \-mno\-red\-zone  \-mno\-tls\-direct\-seg\-refs 
1289 \&\-mcmodel=\fR\fIcode-model\fR  \fB\-mabi=\fR\fIname\fR  \fB\-maddress\-mode=\fR\fImode\fR 
1290 \&\fB\-m32  \-m64  \-mx32  \-m16  \-miamcu  \-mlarge\-data\-threshold=\fR\fInum\fR 
1291 \&\fB\-msse2avx  \-mfentry  \-mrecord\-mcount  \-mnop\-mcount  \-m8bit\-idiv 
1292 \&\-mavx256\-split\-unaligned\-load  \-mavx256\-split\-unaligned\-store 
1293 \&\-malign\-data=\fR\fItype\fR  \fB\-mstack\-protector\-guard=\fR\fIguard\fR 
1294 \&\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR 
1295 \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR 
1296 \&\fB\-mstack\-protector\-guard\-symbol=\fR\fIsymbol\fR \fB\-mmitigate\-rop 
1297 \&\-mgeneral\-regs\-only \-mcall\-ms2sysv\-xlogues 
1298 \&\-mindirect\-branch=\fR\fIchoice\fR \fB\-mfunction\-return=\fR\fIchoice\fR 
1299 \&\fB\-mindirect\-branch\-register\fR
1300 .Sp
1301 \&\fIx86 Windows Options\fR
1302 \&\fB\-mconsole  \-mcygwin  \-mno\-cygwin  \-mdll 
1303 \&\-mnop\-fun\-dllimport  \-mthread 
1304 \&\-municode  \-mwin32  \-mwindows  \-fno\-set\-stack\-executable\fR
1305 .Sp
1306 \&\fIXstormy16 Options\fR
1307 \&\fB\-msim\fR
1308 .Sp
1309 \&\fIXtensa Options\fR
1310 \&\fB\-mconst16  \-mno\-const16 
1311 \&\-mfused\-madd  \-mno\-fused\-madd 
1312 \&\-mforce\-no\-pic 
1313 \&\-mserialize\-volatile  \-mno\-serialize\-volatile 
1314 \&\-mtext\-section\-literals  \-mno\-text\-section\-literals 
1315 \&\-mauto\-litpools  \-mno\-auto\-litpools 
1316 \&\-mtarget\-align  \-mno\-target\-align 
1317 \&\-mlongcalls  \-mno\-longcalls\fR
1318 .Sp
1319 \&\fIzSeries Options\fR
1320 See S/390 and zSeries Options.
1321 .SS "Options Controlling the Kind of Output"
1322 .IX Subsection "Options Controlling the Kind of Output"
1323 Compilation can involve up to four stages: preprocessing, compilation
1324 proper, assembly and linking, always in that order.  \s-1GCC\s0 is capable of
1325 preprocessing and compiling several files either into several
1326 assembler input files, or into one assembler input file; then each
1327 assembler input file produces an object file, and linking combines all
1328 the object files (those newly compiled, and those specified as input)
1329 into an executable file.
1330 .PP
1331 For any given input file, the file name suffix determines what kind of
1332 compilation is done:
1333 .IP "\fIfile\fR\fB.c\fR" 4
1334 .IX Item "file.c"
1335 C source code that must be preprocessed.
1336 .IP "\fIfile\fR\fB.i\fR" 4
1337 .IX Item "file.i"
1338 C source code that should not be preprocessed.
1339 .IP "\fIfile\fR\fB.ii\fR" 4
1340 .IX Item "file.ii"
1341 \&\*(C+ source code that should not be preprocessed.
1342 .IP "\fIfile\fR\fB.m\fR" 4
1343 .IX Item "file.m"
1344 Objective-C source code.  Note that you must link with the \fIlibobjc\fR
1345 library to make an Objective-C program work.
1346 .IP "\fIfile\fR\fB.mi\fR" 4
1347 .IX Item "file.mi"
1348 Objective-C source code that should not be preprocessed.
1349 .IP "\fIfile\fR\fB.mm\fR" 4
1350 .IX Item "file.mm"
1351 .PD 0
1352 .IP "\fIfile\fR\fB.M\fR" 4
1353 .IX Item "file.M"
1354 .PD
1355 Objective\-\*(C+ source code.  Note that you must link with the \fIlibobjc\fR
1356 library to make an Objective\-\*(C+ program work.  Note that \fB.M\fR refers
1357 to a literal capital M.
1358 .IP "\fIfile\fR\fB.mii\fR" 4
1359 .IX Item "file.mii"
1360 Objective\-\*(C+ source code that should not be preprocessed.
1361 .IP "\fIfile\fR\fB.h\fR" 4
1362 .IX Item "file.h"
1363 C, \*(C+, Objective-C or Objective\-\*(C+ header file to be turned into a
1364 precompiled header (default), or C, \*(C+ header file to be turned into an
1365 Ada spec (via the \fB\-fdump\-ada\-spec\fR switch).
1366 .IP "\fIfile\fR\fB.cc\fR" 4
1367 .IX Item "file.cc"
1368 .PD 0
1369 .IP "\fIfile\fR\fB.cp\fR" 4
1370 .IX Item "file.cp"
1371 .IP "\fIfile\fR\fB.cxx\fR" 4
1372 .IX Item "file.cxx"
1373 .IP "\fIfile\fR\fB.cpp\fR" 4
1374 .IX Item "file.cpp"
1375 .IP "\fIfile\fR\fB.CPP\fR" 4
1376 .IX Item "file.CPP"
1377 .IP "\fIfile\fR\fB.c++\fR" 4
1378 .IX Item "file.c++"
1379 .IP "\fIfile\fR\fB.C\fR" 4
1380 .IX Item "file.C"
1381 .PD
1382 \&\*(C+ source code that must be preprocessed.  Note that in \fB.cxx\fR,
1383 the last two letters must both be literally \fBx\fR.  Likewise,
1384 \&\fB.C\fR refers to a literal capital C.
1385 .IP "\fIfile\fR\fB.mm\fR" 4
1386 .IX Item "file.mm"
1387 .PD 0
1388 .IP "\fIfile\fR\fB.M\fR" 4
1389 .IX Item "file.M"
1390 .PD
1391 Objective\-\*(C+ source code that must be preprocessed.
1392 .IP "\fIfile\fR\fB.mii\fR" 4
1393 .IX Item "file.mii"
1394 Objective\-\*(C+ source code that should not be preprocessed.
1395 .IP "\fIfile\fR\fB.hh\fR" 4
1396 .IX Item "file.hh"
1397 .PD 0
1398 .IP "\fIfile\fR\fB.H\fR" 4
1399 .IX Item "file.H"
1400 .IP "\fIfile\fR\fB.hp\fR" 4
1401 .IX Item "file.hp"
1402 .IP "\fIfile\fR\fB.hxx\fR" 4
1403 .IX Item "file.hxx"
1404 .IP "\fIfile\fR\fB.hpp\fR" 4
1405 .IX Item "file.hpp"
1406 .IP "\fIfile\fR\fB.HPP\fR" 4
1407 .IX Item "file.HPP"
1408 .IP "\fIfile\fR\fB.h++\fR" 4
1409 .IX Item "file.h++"
1410 .IP "\fIfile\fR\fB.tcc\fR" 4
1411 .IX Item "file.tcc"
1412 .PD
1413 \&\*(C+ header file to be turned into a precompiled header or Ada spec.
1414 .IP "\fIfile\fR\fB.f\fR" 4
1415 .IX Item "file.f"
1416 .PD 0
1417 .IP "\fIfile\fR\fB.for\fR" 4
1418 .IX Item "file.for"
1419 .IP "\fIfile\fR\fB.ftn\fR" 4
1420 .IX Item "file.ftn"
1421 .PD
1422 Fixed form Fortran source code that should not be preprocessed.
1423 .IP "\fIfile\fR\fB.F\fR" 4
1424 .IX Item "file.F"
1425 .PD 0
1426 .IP "\fIfile\fR\fB.FOR\fR" 4
1427 .IX Item "file.FOR"
1428 .IP "\fIfile\fR\fB.fpp\fR" 4
1429 .IX Item "file.fpp"
1430 .IP "\fIfile\fR\fB.FPP\fR" 4
1431 .IX Item "file.FPP"
1432 .IP "\fIfile\fR\fB.FTN\fR" 4
1433 .IX Item "file.FTN"
1434 .PD
1435 Fixed form Fortran source code that must be preprocessed (with the traditional
1436 preprocessor).
1437 .IP "\fIfile\fR\fB.f90\fR" 4
1438 .IX Item "file.f90"
1439 .PD 0
1440 .IP "\fIfile\fR\fB.f95\fR" 4
1441 .IX Item "file.f95"
1442 .IP "\fIfile\fR\fB.f03\fR" 4
1443 .IX Item "file.f03"
1444 .IP "\fIfile\fR\fB.f08\fR" 4
1445 .IX Item "file.f08"
1446 .PD
1447 Free form Fortran source code that should not be preprocessed.
1448 .IP "\fIfile\fR\fB.F90\fR" 4
1449 .IX Item "file.F90"
1450 .PD 0
1451 .IP "\fIfile\fR\fB.F95\fR" 4
1452 .IX Item "file.F95"
1453 .IP "\fIfile\fR\fB.F03\fR" 4
1454 .IX Item "file.F03"
1455 .IP "\fIfile\fR\fB.F08\fR" 4
1456 .IX Item "file.F08"
1457 .PD
1458 Free form Fortran source code that must be preprocessed (with the
1459 traditional preprocessor).
1460 .IP "\fIfile\fR\fB.go\fR" 4
1461 .IX Item "file.go"
1462 Go source code.
1463 .IP "\fIfile\fR\fB.brig\fR" 4
1464 .IX Item "file.brig"
1465 \&\s-1BRIG\s0 files (binary representation of \s-1HSAIL\s0).
1466 .IP "\fIfile\fR\fB.ads\fR" 4
1467 .IX Item "file.ads"
1468 Ada source code file that contains a library unit declaration (a
1469 declaration of a package, subprogram, or generic, or a generic
1470 instantiation), or a library unit renaming declaration (a package,
1471 generic, or subprogram renaming declaration).  Such files are also
1472 called \fIspecs\fR.
1473 .IP "\fIfile\fR\fB.adb\fR" 4
1474 .IX Item "file.adb"
1475 Ada source code file containing a library unit body (a subprogram or
1476 package body).  Such files are also called \fIbodies\fR.
1477 .IP "\fIfile\fR\fB.s\fR" 4
1478 .IX Item "file.s"
1479 Assembler code.
1480 .IP "\fIfile\fR\fB.S\fR" 4
1481 .IX Item "file.S"
1482 .PD 0
1483 .IP "\fIfile\fR\fB.sx\fR" 4
1484 .IX Item "file.sx"
1485 .PD
1486 Assembler code that must be preprocessed.
1487 .IP "\fIother\fR" 4
1488 .IX Item "other"
1489 An object file to be fed straight into linking.
1490 Any file name with no recognized suffix is treated this way.
1491 .PP
1492 You can specify the input language explicitly with the \fB\-x\fR option:
1493 .IP "\fB\-x\fR \fIlanguage\fR" 4
1494 .IX Item "-x language"
1495 Specify explicitly the \fIlanguage\fR for the following input files
1496 (rather than letting the compiler choose a default based on the file
1497 name suffix).  This option applies to all following input files until
1498 the next \fB\-x\fR option.  Possible values for \fIlanguage\fR are:
1499 .Sp
1500 .Vb 9
1501 \&        c  c\-header  cpp\-output
1502 \&        c++  c++\-header  c++\-cpp\-output
1503 \&        objective\-c  objective\-c\-header  objective\-c\-cpp\-output
1504 \&        objective\-c++ objective\-c++\-header objective\-c++\-cpp\-output
1505 \&        assembler  assembler\-with\-cpp
1506 \&        ada
1507 \&        f77  f77\-cpp\-input f95  f95\-cpp\-input
1508 \&        go
1509 \&        brig
1510 .Ve
1511 .IP "\fB\-x none\fR" 4
1512 .IX Item "-x none"
1513 Turn off any specification of a language, so that subsequent files are
1514 handled according to their file name suffixes (as they are if \fB\-x\fR
1515 has not been used at all).
1516 .PP
1517 If you only want some of the stages of compilation, you can use
1518 \&\fB\-x\fR (or filename suffixes) to tell \fBgcc\fR where to start, and
1519 one of the options \fB\-c\fR, \fB\-S\fR, or \fB\-E\fR to say where
1520 \&\fBgcc\fR is to stop.  Note that some combinations (for example,
1521 \&\fB\-x cpp-output \-E\fR) instruct \fBgcc\fR to do nothing at all.
1522 .IP "\fB\-c\fR" 4
1523 .IX Item "-c"
1524 Compile or assemble the source files, but do not link.  The linking
1525 stage simply is not done.  The ultimate output is in the form of an
1526 object file for each source file.
1527 .Sp
1528 By default, the object file name for a source file is made by replacing
1529 the suffix \fB.c\fR, \fB.i\fR, \fB.s\fR, etc., with \fB.o\fR.
1530 .Sp
1531 Unrecognized input files, not requiring compilation or assembly, are
1532 ignored.
1533 .IP "\fB\-S\fR" 4
1534 .IX Item "-S"
1535 Stop after the stage of compilation proper; do not assemble.  The output
1536 is in the form of an assembler code file for each non-assembler input
1537 file specified.
1538 .Sp
1539 By default, the assembler file name for a source file is made by
1540 replacing the suffix \fB.c\fR, \fB.i\fR, etc., with \fB.s\fR.
1541 .Sp
1542 Input files that don't require compilation are ignored.
1543 .IP "\fB\-E\fR" 4
1544 .IX Item "-E"
1545 Stop after the preprocessing stage; do not run the compiler proper.  The
1546 output is in the form of preprocessed source code, which is sent to the
1547 standard output.
1548 .Sp
1549 Input files that don't require preprocessing are ignored.
1550 .IP "\fB\-o\fR \fIfile\fR" 4
1551 .IX Item "-o file"
1552 Place output in file \fIfile\fR.  This applies to whatever
1553 sort of output is being produced, whether it be an executable file,
1554 an object file, an assembler file or preprocessed C code.
1555 .Sp
1556 If \fB\-o\fR is not specified, the default is to put an executable
1557 file in \fIa.out\fR, the object file for
1558 \&\fI\fIsource\fI.\fIsuffix\fI\fR in \fI\fIsource\fI.o\fR, its
1559 assembler file in \fI\fIsource\fI.s\fR, a precompiled header file in
1560 \&\fI\fIsource\fI.\fIsuffix\fI.gch\fR, and all preprocessed C source on
1561 standard output.
1562 .IP "\fB\-v\fR" 4
1563 .IX Item "-v"
1564 Print (on standard error output) the commands executed to run the stages
1565 of compilation.  Also print the version number of the compiler driver
1566 program and of the preprocessor and the compiler proper.
1567 .IP "\fB\-###\fR" 4
1568 .IX Item "-###"
1569 Like \fB\-v\fR except the commands are not executed and arguments
1570 are quoted unless they contain only alphanumeric characters or \f(CW\*(C`./\-_\*(C'\fR.
1571 This is useful for shell scripts to capture the driver-generated command lines.
1572 .IP "\fB\-\-help\fR" 4
1573 .IX Item "--help"
1574 Print (on the standard output) a description of the command-line options
1575 understood by \fBgcc\fR.  If the \fB\-v\fR option is also specified
1576 then \fB\-\-help\fR is also passed on to the various processes
1577 invoked by \fBgcc\fR, so that they can display the command-line options
1578 they accept.  If the \fB\-Wextra\fR option has also been specified
1579 (prior to the \fB\-\-help\fR option), then command-line options that
1580 have no documentation associated with them are also displayed.
1581 .IP "\fB\-\-target\-help\fR" 4
1582 .IX Item "--target-help"
1583 Print (on the standard output) a description of target-specific command-line
1584 options for each tool.  For some targets extra target-specific
1585 information may also be printed.
1586 .IP "\fB\-\-help={\fR\fIclass\fR|[\fB^\fR]\fIqualifier\fR\fB}\fR[\fB,...\fR]" 4
1587 .IX Item "--help={class|[^]qualifier}[,...]"
1588 Print (on the standard output) a description of the command-line
1589 options understood by the compiler that fit into all specified classes
1590 and qualifiers.  These are the supported classes:
1591 .RS 4
1592 .IP "\fBoptimizers\fR" 4
1593 .IX Item "optimizers"
1594 Display all of the optimization options supported by the
1595 compiler.
1596 .IP "\fBwarnings\fR" 4
1597 .IX Item "warnings"
1598 Display all of the options controlling warning messages
1599 produced by the compiler.
1600 .IP "\fBtarget\fR" 4
1601 .IX Item "target"
1602 Display target-specific options.  Unlike the
1603 \&\fB\-\-target\-help\fR option however, target-specific options of the
1604 linker and assembler are not displayed.  This is because those
1605 tools do not currently support the extended \fB\-\-help=\fR syntax.
1606 .IP "\fBparams\fR" 4
1607 .IX Item "params"
1608 Display the values recognized by the \fB\-\-param\fR
1609 option.
1610 .IP "\fIlanguage\fR" 4
1611 .IX Item "language"
1612 Display the options supported for \fIlanguage\fR, where
1613 \&\fIlanguage\fR is the name of one of the languages supported in this
1614 version of \s-1GCC.\s0
1615 .IP "\fBcommon\fR" 4
1616 .IX Item "common"
1617 Display the options that are common to all languages.
1618 .RE
1619 .RS 4
1620 .Sp
1621 These are the supported qualifiers:
1622 .IP "\fBundocumented\fR" 4
1623 .IX Item "undocumented"
1624 Display only those options that are undocumented.
1625 .IP "\fBjoined\fR" 4
1626 .IX Item "joined"
1627 Display options taking an argument that appears after an equal
1628 sign in the same continuous piece of text, such as:
1629 \&\fB\-\-help=target\fR.
1630 .IP "\fBseparate\fR" 4
1631 .IX Item "separate"
1632 Display options taking an argument that appears as a separate word
1633 following the original option, such as: \fB\-o output-file\fR.
1634 .RE
1635 .RS 4
1636 .Sp
1637 Thus for example to display all the undocumented target-specific
1638 switches supported by the compiler, use:
1639 .Sp
1640 .Vb 1
1641 \&        \-\-help=target,undocumented
1642 .Ve
1643 .Sp
1644 The sense of a qualifier can be inverted by prefixing it with the
1645 \&\fB^\fR character, so for example to display all binary warning
1646 options (i.e., ones that are either on or off and that do not take an
1647 argument) that have a description, use:
1648 .Sp
1649 .Vb 1
1650 \&        \-\-help=warnings,^joined,^undocumented
1651 .Ve
1652 .Sp
1653 The argument to \fB\-\-help=\fR should not consist solely of inverted
1654 qualifiers.
1655 .Sp
1656 Combining several classes is possible, although this usually
1657 restricts the output so much that there is nothing to display.  One
1658 case where it does work, however, is when one of the classes is
1659 \&\fItarget\fR.  For example, to display all the target-specific
1660 optimization options, use:
1661 .Sp
1662 .Vb 1
1663 \&        \-\-help=target,optimizers
1664 .Ve
1665 .Sp
1666 The \fB\-\-help=\fR option can be repeated on the command line.  Each
1667 successive use displays its requested class of options, skipping
1668 those that have already been displayed.
1669 .Sp
1670 If the \fB\-Q\fR option appears on the command line before the
1671 \&\fB\-\-help=\fR option, then the descriptive text displayed by
1672 \&\fB\-\-help=\fR is changed.  Instead of describing the displayed
1673 options, an indication is given as to whether the option is enabled,
1674 disabled or set to a specific value (assuming that the compiler
1675 knows this at the point where the \fB\-\-help=\fR option is used).
1676 .Sp
1677 Here is a truncated example from the \s-1ARM\s0 port of \fBgcc\fR:
1678 .Sp
1679 .Vb 5
1680 \&          % gcc \-Q \-mabi=2 \-\-help=target \-c
1681 \&          The following options are target specific:
1682 \&          \-mabi=                                2
1683 \&          \-mabort\-on\-noreturn                   [disabled]
1684 \&          \-mapcs                                [disabled]
1685 .Ve
1686 .Sp
1687 The output is sensitive to the effects of previous command-line
1688 options, so for example it is possible to find out which optimizations
1689 are enabled at \fB\-O2\fR by using:
1690 .Sp
1691 .Vb 1
1692 \&        \-Q \-O2 \-\-help=optimizers
1693 .Ve
1694 .Sp
1695 Alternatively you can discover which binary optimizations are enabled
1696 by \fB\-O3\fR by using:
1697 .Sp
1698 .Vb 3
1699 \&        gcc \-c \-Q \-O3 \-\-help=optimizers > /tmp/O3\-opts
1700 \&        gcc \-c \-Q \-O2 \-\-help=optimizers > /tmp/O2\-opts
1701 \&        diff /tmp/O2\-opts /tmp/O3\-opts | grep enabled
1702 .Ve
1703 .RE
1704 .IP "\fB\-\-version\fR" 4
1705 .IX Item "--version"
1706 Display the version number and copyrights of the invoked \s-1GCC.\s0
1707 .IP "\fB\-pass\-exit\-codes\fR" 4
1708 .IX Item "-pass-exit-codes"
1709 Normally the \fBgcc\fR program exits with the code of 1 if any
1710 phase of the compiler returns a non-success return code.  If you specify
1711 \&\fB\-pass\-exit\-codes\fR, the \fBgcc\fR program instead returns with
1712 the numerically highest error produced by any phase returning an error
1713 indication.  The C, \*(C+, and Fortran front ends return 4 if an internal
1714 compiler error is encountered.
1715 .IP "\fB\-pipe\fR" 4
1716 .IX Item "-pipe"
1717 Use pipes rather than temporary files for communication between the
1718 various stages of compilation.  This fails to work on some systems where
1719 the assembler is unable to read from a pipe; but the \s-1GNU\s0 assembler has
1720 no trouble.
1721 .IP "\fB\-specs=\fR\fIfile\fR" 4
1722 .IX Item "-specs=file"
1723 Process \fIfile\fR after the compiler reads in the standard \fIspecs\fR
1724 file, in order to override the defaults which the \fBgcc\fR driver
1725 program uses when determining what switches to pass to \fBcc1\fR,
1726 \&\fBcc1plus\fR, \fBas\fR, \fBld\fR, etc.  More than one
1727 \&\fB\-specs=\fR\fIfile\fR can be specified on the command line, and they
1728 are processed in order, from left to right.
1729 .IP "\fB\-wrapper\fR" 4
1730 .IX Item "-wrapper"
1731 Invoke all subcommands under a wrapper program.  The name of the
1732 wrapper program and its parameters are passed as a comma separated
1733 list.
1734 .Sp
1735 .Vb 1
1736 \&        gcc \-c t.c \-wrapper gdb,\-\-args
1737 .Ve
1738 .Sp
1739 This invokes all subprograms of \fBgcc\fR under
1740 \&\fBgdb \-\-args\fR, thus the invocation of \fBcc1\fR is
1741 \&\fBgdb \-\-args cc1 ...\fR.
1742 .IP "\fB\-ffile\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR" 4
1743 .IX Item "-ffile-prefix-map=old=new"
1744 When compiling files residing in directory \fI\fIold\fI\fR, record
1745 any references to them in the result of the compilation as if the
1746 files resided in directory \fI\fInew\fI\fR instead.  Specifying this
1747 option is equivalent to specifying all the individual
1748 \&\fB\-f*\-prefix\-map\fR options.  This can be used to make reproducible
1749 builds that are location independent.  See also
1750 \&\fB\-fmacro\-prefix\-map\fR and \fB\-fdebug\-prefix\-map\fR.
1751 .IP "\fB\-fplugin=\fR\fIname\fR\fB.so\fR" 4
1752 .IX Item "-fplugin=name.so"
1753 Load the plugin code in file \fIname\fR.so, assumed to be a
1754 shared object to be dlopen'd by the compiler.  The base name of
1755 the shared object file is used to identify the plugin for the
1756 purposes of argument parsing (See
1757 \&\fB\-fplugin\-arg\-\fR\fIname\fR\fB\-\fR\fIkey\fR\fB=\fR\fIvalue\fR below).
1758 Each plugin should define the callback functions specified in the
1759 Plugins \s-1API.\s0
1760 .IP "\fB\-fplugin\-arg\-\fR\fIname\fR\fB\-\fR\fIkey\fR\fB=\fR\fIvalue\fR" 4
1761 .IX Item "-fplugin-arg-name-key=value"
1762 Define an argument called \fIkey\fR with a value of \fIvalue\fR
1763 for the plugin called \fIname\fR.
1764 .IP "\fB\-fdump\-ada\-spec\fR[\fB\-slim\fR]" 4
1765 .IX Item "-fdump-ada-spec[-slim]"
1766 For C and \*(C+ source and include files, generate corresponding Ada specs.
1767 .IP "\fB\-fada\-spec\-parent=\fR\fIunit\fR" 4
1768 .IX Item "-fada-spec-parent=unit"
1769 In conjunction with \fB\-fdump\-ada\-spec\fR[\fB\-slim\fR] above, generate
1770 Ada specs as child units of parent \fIunit\fR.
1771 .IP "\fB\-fdump\-go\-spec=\fR\fIfile\fR" 4
1772 .IX Item "-fdump-go-spec=file"
1773 For input files in any language, generate corresponding Go
1774 declarations in \fIfile\fR.  This generates Go \f(CW\*(C`const\*(C'\fR,
1775 \&\f(CW\*(C`type\*(C'\fR, \f(CW\*(C`var\*(C'\fR, and \f(CW\*(C`func\*(C'\fR declarations which may be a
1776 useful way to start writing a Go interface to code written in some
1777 other language.
1778 .IP "\fB@\fR\fIfile\fR" 4
1779 .IX Item "@file"
1780 Read command-line options from \fIfile\fR.  The options read are
1781 inserted in place of the original @\fIfile\fR option.  If \fIfile\fR
1782 does not exist, or cannot be read, then the option will be treated
1783 literally, and not removed.
1784 .Sp
1785 Options in \fIfile\fR are separated by whitespace.  A whitespace
1786 character may be included in an option by surrounding the entire
1787 option in either single or double quotes.  Any character (including a
1788 backslash) may be included by prefixing the character to be included
1789 with a backslash.  The \fIfile\fR may itself contain additional
1790 @\fIfile\fR options; any such options will be processed recursively.
1791 .SS "Compiling \*(C+ Programs"
1792 .IX Subsection "Compiling Programs"
1793 \&\*(C+ source files conventionally use one of the suffixes \fB.C\fR,
1794 \&\fB.cc\fR, \fB.cpp\fR, \fB.CPP\fR, \fB.c++\fR, \fB.cp\fR, or
1795 \&\fB.cxx\fR; \*(C+ header files often use \fB.hh\fR, \fB.hpp\fR,
1796 \&\fB.H\fR, or (for shared template code) \fB.tcc\fR; and
1797 preprocessed \*(C+ files use the suffix \fB.ii\fR.  \s-1GCC\s0 recognizes
1798 files with these names and compiles them as \*(C+ programs even if you
1799 call the compiler the same way as for compiling C programs (usually
1800 with the name \fBgcc\fR).
1801 .PP
1802 However, the use of \fBgcc\fR does not add the \*(C+ library.
1803 \&\fBg++\fR is a program that calls \s-1GCC\s0 and automatically specifies linking
1804 against the \*(C+ library.  It treats \fB.c\fR,
1805 \&\fB.h\fR and \fB.i\fR files as \*(C+ source files instead of C source
1806 files unless \fB\-x\fR is used.  This program is also useful when
1807 precompiling a C header file with a \fB.h\fR extension for use in \*(C+
1808 compilations.  On many systems, \fBg++\fR is also installed with
1809 the name \fBc++\fR.
1810 .PP
1811 When you compile \*(C+ programs, you may specify many of the same
1812 command-line options that you use for compiling programs in any
1813 language; or command-line options meaningful for C and related
1814 languages; or options that are meaningful only for \*(C+ programs.
1815 .SS "Options Controlling C Dialect"
1816 .IX Subsection "Options Controlling C Dialect"
1817 The following options control the dialect of C (or languages derived
1818 from C, such as \*(C+, Objective-C and Objective\-\*(C+) that the compiler
1819 accepts:
1820 .IP "\fB\-ansi\fR" 4
1821 .IX Item "-ansi"
1822 In C mode, this is equivalent to \fB\-std=c90\fR. In \*(C+ mode, it is
1823 equivalent to \fB\-std=c++98\fR.
1824 .Sp
1825 This turns off certain features of \s-1GCC\s0 that are incompatible with \s-1ISO
1826 C90\s0 (when compiling C code), or of standard \*(C+ (when compiling \*(C+ code),
1827 such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, and
1828 predefined macros such as \f(CW\*(C`unix\*(C'\fR and \f(CW\*(C`vax\*(C'\fR that identify the
1829 type of system you are using.  It also enables the undesirable and
1830 rarely used \s-1ISO\s0 trigraph feature.  For the C compiler,
1831 it disables recognition of \*(C+ style \fB//\fR comments as well as
1832 the \f(CW\*(C`inline\*(C'\fR keyword.
1833 .Sp
1834 The alternate keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_extension_\|_\*(C'\fR,
1835 \&\f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR continue to work despite
1836 \&\fB\-ansi\fR.  You would not want to use them in an \s-1ISO C\s0 program, of
1837 course, but it is useful to put them in header files that might be included
1838 in compilations done with \fB\-ansi\fR.  Alternate predefined macros
1839 such as \f(CW\*(C`_\|_unix_\|_\*(C'\fR and \f(CW\*(C`_\|_vax_\|_\*(C'\fR are also available, with or
1840 without \fB\-ansi\fR.
1841 .Sp
1842 The \fB\-ansi\fR option does not cause non-ISO programs to be
1843 rejected gratuitously.  For that, \fB\-Wpedantic\fR is required in
1844 addition to \fB\-ansi\fR.
1845 .Sp
1846 The macro \f(CW\*(C`_\|_STRICT_ANSI_\|_\*(C'\fR is predefined when the \fB\-ansi\fR
1847 option is used.  Some header files may notice this macro and refrain
1848 from declaring certain functions or defining certain macros that the
1849 \&\s-1ISO\s0 standard doesn't call for; this is to avoid interfering with any
1850 programs that might use these names for other things.
1851 .Sp
1852 Functions that are normally built in but do not have semantics
1853 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
1854 functions when \fB\-ansi\fR is used.
1855 .IP "\fB\-std=\fR" 4
1856 .IX Item "-std="
1857 Determine the language standard.   This option
1858 is currently only supported when compiling C or \*(C+.
1859 .Sp
1860 The compiler can accept several base standards, such as \fBc90\fR or
1861 \&\fBc++98\fR, and \s-1GNU\s0 dialects of those standards, such as
1862 \&\fBgnu90\fR or \fBgnu++98\fR.  When a base standard is specified, the
1863 compiler accepts all programs following that standard plus those
1864 using \s-1GNU\s0 extensions that do not contradict it.  For example,
1865 \&\fB\-std=c90\fR turns off certain features of \s-1GCC\s0 that are
1866 incompatible with \s-1ISO C90,\s0 such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR
1867 keywords, but not other \s-1GNU\s0 extensions that do not have a meaning in
1868 \&\s-1ISO C90,\s0 such as omitting the middle term of a \f(CW\*(C`?:\*(C'\fR
1869 expression. On the other hand, when a \s-1GNU\s0 dialect of a standard is
1870 specified, all features supported by the compiler are enabled, even when
1871 those features change the meaning of the base standard.  As a result, some
1872 strict-conforming programs may be rejected.  The particular standard
1873 is used by \fB\-Wpedantic\fR to identify which features are \s-1GNU\s0
1874 extensions given that version of the standard. For example
1875 \&\fB\-std=gnu90 \-Wpedantic\fR warns about \*(C+ style \fB//\fR
1876 comments, while \fB\-std=gnu99 \-Wpedantic\fR does not.
1877 .Sp
1878 A value for this option must be provided; possible values are
1879 .RS 4
1880 .IP "\fBc90\fR" 4
1881 .IX Item "c90"
1882 .PD 0
1883 .IP "\fBc89\fR" 4
1884 .IX Item "c89"
1885 .IP "\fBiso9899:1990\fR" 4
1886 .IX Item "iso9899:1990"
1887 .PD
1888 Support all \s-1ISO C90\s0 programs (certain \s-1GNU\s0 extensions that conflict
1889 with \s-1ISO C90\s0 are disabled). Same as \fB\-ansi\fR for C code.
1890 .IP "\fBiso9899:199409\fR" 4
1891 .IX Item "iso9899:199409"
1892 \&\s-1ISO C90\s0 as modified in amendment 1.
1893 .IP "\fBc99\fR" 4
1894 .IX Item "c99"
1895 .PD 0
1896 .IP "\fBc9x\fR" 4
1897 .IX Item "c9x"
1898 .IP "\fBiso9899:1999\fR" 4
1899 .IX Item "iso9899:1999"
1900 .IP "\fBiso9899:199x\fR" 4
1901 .IX Item "iso9899:199x"
1902 .PD
1903 \&\s-1ISO C99.\s0  This standard is substantially completely supported, modulo
1904 bugs and floating-point issues
1905 (mainly but not entirely relating to optional C99 features from
1906 Annexes F and G).  See
1907 <\fBhttp://gcc.gnu.org/c99status.html\fR> for more information.  The
1908 names \fBc9x\fR and \fBiso9899:199x\fR are deprecated.
1909 .IP "\fBc11\fR" 4
1910 .IX Item "c11"
1911 .PD 0
1912 .IP "\fBc1x\fR" 4
1913 .IX Item "c1x"
1914 .IP "\fBiso9899:2011\fR" 4
1915 .IX Item "iso9899:2011"
1916 .PD
1917 \&\s-1ISO C11,\s0 the 2011 revision of the \s-1ISO C\s0 standard.  This standard is
1918 substantially completely supported, modulo bugs, floating-point issues
1919 (mainly but not entirely relating to optional C11 features from
1920 Annexes F and G) and the optional Annexes K (Bounds-checking
1921 interfaces) and L (Analyzability).  The name \fBc1x\fR is deprecated.
1922 .IP "\fBc17\fR" 4
1923 .IX Item "c17"
1924 .PD 0
1925 .IP "\fBc18\fR" 4
1926 .IX Item "c18"
1927 .IP "\fBiso9899:2017\fR" 4
1928 .IX Item "iso9899:2017"
1929 .IP "\fBiso9899:2018\fR" 4
1930 .IX Item "iso9899:2018"
1931 .PD
1932 \&\s-1ISO C17,\s0 the 2017 revision of the \s-1ISO C\s0 standard (expected to be
1933 published in 2018).  This standard is
1934 same as C11 except for corrections of defects (all of which are also
1935 applied with \fB\-std=c11\fR) and a new value of
1936 \&\f(CW\*(C`_\|_STDC_VERSION_\|_\*(C'\fR, and so is supported to the same extent as C11.
1937 .IP "\fBgnu90\fR" 4
1938 .IX Item "gnu90"
1939 .PD 0
1940 .IP "\fBgnu89\fR" 4
1941 .IX Item "gnu89"
1942 .PD
1943 \&\s-1GNU\s0 dialect of \s-1ISO C90\s0 (including some C99 features).
1944 .IP "\fBgnu99\fR" 4
1945 .IX Item "gnu99"
1946 .PD 0
1947 .IP "\fBgnu9x\fR" 4
1948 .IX Item "gnu9x"
1949 .PD
1950 \&\s-1GNU\s0 dialect of \s-1ISO C99.\s0  The name \fBgnu9x\fR is deprecated.
1951 .IP "\fBgnu11\fR" 4
1952 .IX Item "gnu11"
1953 .PD 0
1954 .IP "\fBgnu1x\fR" 4
1955 .IX Item "gnu1x"
1956 .PD
1957 \&\s-1GNU\s0 dialect of \s-1ISO C11.\s0
1958 The name \fBgnu1x\fR is deprecated.
1959 .IP "\fBgnu17\fR" 4
1960 .IX Item "gnu17"
1961 .PD 0
1962 .IP "\fBgnu18\fR" 4
1963 .IX Item "gnu18"
1964 .PD
1965 \&\s-1GNU\s0 dialect of \s-1ISO C17.\s0  This is the default for C code.
1966 .IP "\fBc++98\fR" 4
1967 .IX Item "c++98"
1968 .PD 0
1969 .IP "\fBc++03\fR" 4
1970 .IX Item "c++03"
1971 .PD
1972 The 1998 \s-1ISO \*(C+\s0 standard plus the 2003 technical corrigendum and some
1973 additional defect reports. Same as \fB\-ansi\fR for \*(C+ code.
1974 .IP "\fBgnu++98\fR" 4
1975 .IX Item "gnu++98"
1976 .PD 0
1977 .IP "\fBgnu++03\fR" 4
1978 .IX Item "gnu++03"
1979 .PD
1980 \&\s-1GNU\s0 dialect of \fB\-std=c++98\fR.
1981 .IP "\fBc++11\fR" 4
1982 .IX Item "c++11"
1983 .PD 0
1984 .IP "\fBc++0x\fR" 4
1985 .IX Item "c++0x"
1986 .PD
1987 The 2011 \s-1ISO \*(C+\s0 standard plus amendments.
1988 The name \fBc++0x\fR is deprecated.
1989 .IP "\fBgnu++11\fR" 4
1990 .IX Item "gnu++11"
1991 .PD 0
1992 .IP "\fBgnu++0x\fR" 4
1993 .IX Item "gnu++0x"
1994 .PD
1995 \&\s-1GNU\s0 dialect of \fB\-std=c++11\fR.
1996 The name \fBgnu++0x\fR is deprecated.
1997 .IP "\fBc++14\fR" 4
1998 .IX Item "c++14"
1999 .PD 0
2000 .IP "\fBc++1y\fR" 4
2001 .IX Item "c++1y"
2002 .PD
2003 The 2014 \s-1ISO \*(C+\s0 standard plus amendments.
2004 The name \fBc++1y\fR is deprecated.
2005 .IP "\fBgnu++14\fR" 4
2006 .IX Item "gnu++14"
2007 .PD 0
2008 .IP "\fBgnu++1y\fR" 4
2009 .IX Item "gnu++1y"
2010 .PD
2011 \&\s-1GNU\s0 dialect of \fB\-std=c++14\fR.
2012 This is the default for \*(C+ code.
2013 The name \fBgnu++1y\fR is deprecated.
2014 .IP "\fBc++17\fR" 4
2015 .IX Item "c++17"
2016 .PD 0
2017 .IP "\fBc++1z\fR" 4
2018 .IX Item "c++1z"
2019 .PD
2020 The 2017 \s-1ISO \*(C+\s0 standard plus amendments.
2021 The name \fBc++1z\fR is deprecated.
2022 .IP "\fBgnu++17\fR" 4
2023 .IX Item "gnu++17"
2024 .PD 0
2025 .IP "\fBgnu++1z\fR" 4
2026 .IX Item "gnu++1z"
2027 .PD
2028 \&\s-1GNU\s0 dialect of \fB\-std=c++17\fR.
2029 The name \fBgnu++1z\fR is deprecated.
2030 .IP "\fBc++2a\fR" 4
2031 .IX Item "c++2a"
2032 The next revision of the \s-1ISO \*(C+\s0 standard, tentatively planned for
2033 2020.  Support is highly experimental, and will almost certainly
2034 change in incompatible ways in future releases.
2035 .IP "\fBgnu++2a\fR" 4
2036 .IX Item "gnu++2a"
2037 \&\s-1GNU\s0 dialect of \fB\-std=c++2a\fR.  Support is highly experimental,
2038 and will almost certainly change in incompatible ways in future
2039 releases.
2040 .RE
2041 .RS 4
2042 .RE
2043 .IP "\fB\-fgnu89\-inline\fR" 4
2044 .IX Item "-fgnu89-inline"
2045 The option \fB\-fgnu89\-inline\fR tells \s-1GCC\s0 to use the traditional
2046 \&\s-1GNU\s0 semantics for \f(CW\*(C`inline\*(C'\fR functions when in C99 mode.
2047 .Sp
2048 Using this option is roughly equivalent to adding the
2049 \&\f(CW\*(C`gnu_inline\*(C'\fR function attribute to all inline functions.
2050 .Sp
2051 The option \fB\-fno\-gnu89\-inline\fR explicitly tells \s-1GCC\s0 to use the
2052 C99 semantics for \f(CW\*(C`inline\*(C'\fR when in C99 or gnu99 mode (i.e., it
2053 specifies the default behavior).
2054 This option is not supported in \fB\-std=c90\fR or
2055 \&\fB\-std=gnu90\fR mode.
2056 .Sp
2057 The preprocessor macros \f(CW\*(C`_\|_GNUC_GNU_INLINE_\|_\*(C'\fR and
2058 \&\f(CW\*(C`_\|_GNUC_STDC_INLINE_\|_\*(C'\fR may be used to check which semantics are
2059 in effect for \f(CW\*(C`inline\*(C'\fR functions.
2060 .IP "\fB\-fpermitted\-flt\-eval\-methods=\fR\fIstyle\fR" 4
2061 .IX Item "-fpermitted-flt-eval-methods=style"
2062 \&\s-1ISO/IEC TS 18661\-3\s0 defines new permissible values for
2063 \&\f(CW\*(C`FLT_EVAL_METHOD\*(C'\fR that indicate that operations and constants with
2064 a semantic type that is an interchange or extended format should be
2065 evaluated to the precision and range of that type.  These new values are
2066 a superset of those permitted under C99/C11, which does not specify the
2067 meaning of other positive values of \f(CW\*(C`FLT_EVAL_METHOD\*(C'\fR.  As such, code
2068 conforming to C11 may not have been written expecting the possibility of
2069 the new values.
2070 .Sp
2071 \&\fB\-fpermitted\-flt\-eval\-methods\fR specifies whether the compiler
2072 should allow only the values of \f(CW\*(C`FLT_EVAL_METHOD\*(C'\fR specified in C99/C11,
2073 or the extended set of values specified in \s-1ISO/IEC TS 18661\-3.\s0
2074 .Sp
2075 \&\fIstyle\fR is either \f(CW\*(C`c11\*(C'\fR or \f(CW\*(C`ts\-18661\-3\*(C'\fR as appropriate.
2076 .Sp
2077 The default when in a standards compliant mode (\fB\-std=c11\fR or similar)
2078 is \fB\-fpermitted\-flt\-eval\-methods=c11\fR.  The default when in a \s-1GNU\s0
2079 dialect (\fB\-std=gnu11\fR or similar) is
2080 \&\fB\-fpermitted\-flt\-eval\-methods=ts\-18661\-3\fR.
2081 .IP "\fB\-aux\-info\fR \fIfilename\fR" 4
2082 .IX Item "-aux-info filename"
2083 Output to the given filename prototyped declarations for all functions
2084 declared and/or defined in a translation unit, including those in header
2085 files.  This option is silently ignored in any language other than C.
2086 .Sp
2087 Besides declarations, the file indicates, in comments, the origin of
2088 each declaration (source file and line), whether the declaration was
2089 implicit, prototyped or unprototyped (\fBI\fR, \fBN\fR for new or
2090 \&\fBO\fR for old, respectively, in the first character after the line
2091 number and the colon), and whether it came from a declaration or a
2092 definition (\fBC\fR or \fBF\fR, respectively, in the following
2093 character).  In the case of function definitions, a K&R\-style list of
2094 arguments followed by their declarations is also provided, inside
2095 comments, after the declaration.
2096 .IP "\fB\-fallow\-parameterless\-variadic\-functions\fR" 4
2097 .IX Item "-fallow-parameterless-variadic-functions"
2098 Accept variadic functions without named parameters.
2099 .Sp
2100 Although it is possible to define such a function, this is not very
2101 useful as it is not possible to read the arguments.  This is only
2102 supported for C as this construct is allowed by \*(C+.
2103 .IP "\fB\-fno\-asm\fR" 4
2104 .IX Item "-fno-asm"
2105 Do not recognize \f(CW\*(C`asm\*(C'\fR, \f(CW\*(C`inline\*(C'\fR or \f(CW\*(C`typeof\*(C'\fR as a
2106 keyword, so that code can use these words as identifiers.  You can use
2107 the keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR
2108 instead.  \fB\-ansi\fR implies \fB\-fno\-asm\fR.
2109 .Sp
2110 In \*(C+, this switch only affects the \f(CW\*(C`typeof\*(C'\fR keyword, since
2111 \&\f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`inline\*(C'\fR are standard keywords.  You may want to
2112 use the \fB\-fno\-gnu\-keywords\fR flag instead, which has the same
2113 effect.  In C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this
2114 switch only affects the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, since
2115 \&\f(CW\*(C`inline\*(C'\fR is a standard keyword in \s-1ISO C99.\s0
2116 .IP "\fB\-fno\-builtin\fR" 4
2117 .IX Item "-fno-builtin"
2118 .PD 0
2119 .IP "\fB\-fno\-builtin\-\fR\fIfunction\fR" 4
2120 .IX Item "-fno-builtin-function"
2121 .PD
2122 Don't recognize built-in functions that do not begin with
2123 \&\fB_\|_builtin_\fR as prefix.
2124 .Sp
2125 \&\s-1GCC\s0 normally generates special code to handle certain built-in functions
2126 more efficiently; for instance, calls to \f(CW\*(C`alloca\*(C'\fR may become single
2127 instructions which adjust the stack directly, and calls to \f(CW\*(C`memcpy\*(C'\fR
2128 may become inline copy loops.  The resulting code is often both smaller
2129 and faster, but since the function calls no longer appear as such, you
2130 cannot set a breakpoint on those calls, nor can you change the behavior
2131 of the functions by linking with a different library.  In addition,
2132 when a function is recognized as a built-in function, \s-1GCC\s0 may use
2133 information about that function to warn about problems with calls to
2134 that function, or to generate more efficient code, even if the
2135 resulting code still contains calls to that function.  For example,
2136 warnings are given with \fB\-Wformat\fR for bad calls to
2137 \&\f(CW\*(C`printf\*(C'\fR when \f(CW\*(C`printf\*(C'\fR is built in and \f(CW\*(C`strlen\*(C'\fR is
2138 known not to modify global memory.
2139 .Sp
2140 With the \fB\-fno\-builtin\-\fR\fIfunction\fR option
2141 only the built-in function \fIfunction\fR is
2142 disabled.  \fIfunction\fR must not begin with \fB_\|_builtin_\fR.  If a
2143 function is named that is not built-in in this version of \s-1GCC,\s0 this
2144 option is ignored.  There is no corresponding
2145 \&\fB\-fbuiltin\-\fR\fIfunction\fR option; if you wish to enable
2146 built-in functions selectively when using \fB\-fno\-builtin\fR or
2147 \&\fB\-ffreestanding\fR, you may define macros such as:
2148 .Sp
2149 .Vb 2
2150 \&        #define abs(n)          _\|_builtin_abs ((n))
2151 \&        #define strcpy(d, s)    _\|_builtin_strcpy ((d), (s))
2152 .Ve
2153 .IP "\fB\-fgimple\fR" 4
2154 .IX Item "-fgimple"
2155 Enable parsing of function definitions marked with \f(CW\*(C`_\|_GIMPLE\*(C'\fR.
2156 This is an experimental feature that allows unit testing of \s-1GIMPLE\s0
2157 passes.
2158 .IP "\fB\-fhosted\fR" 4
2159 .IX Item "-fhosted"
2160 Assert that compilation targets a hosted environment.  This implies
2161 \&\fB\-fbuiltin\fR.  A hosted environment is one in which the
2162 entire standard library is available, and in which \f(CW\*(C`main\*(C'\fR has a return
2163 type of \f(CW\*(C`int\*(C'\fR.  Examples are nearly everything except a kernel.
2164 This is equivalent to \fB\-fno\-freestanding\fR.
2165 .IP "\fB\-ffreestanding\fR" 4
2166 .IX Item "-ffreestanding"
2167 Assert that compilation targets a freestanding environment.  This
2168 implies \fB\-fno\-builtin\fR.  A freestanding environment
2169 is one in which the standard library may not exist, and program startup may
2170 not necessarily be at \f(CW\*(C`main\*(C'\fR.  The most obvious example is an \s-1OS\s0 kernel.
2171 This is equivalent to \fB\-fno\-hosted\fR.
2172 .IP "\fB\-fopenacc\fR" 4
2173 .IX Item "-fopenacc"
2174 Enable handling of OpenACC directives \f(CW\*(C`#pragma acc\*(C'\fR in C/\*(C+ and
2175 \&\f(CW\*(C`!$acc\*(C'\fR in Fortran.  When \fB\-fopenacc\fR is specified, the
2176 compiler generates accelerated code according to the OpenACC Application
2177 Programming Interface v2.0 <\fBhttps://www.openacc.org\fR>.  This option
2178 implies \fB\-pthread\fR, and thus is only supported on targets that
2179 have support for \fB\-pthread\fR.
2180 .IP "\fB\-fopenacc\-dim=\fR\fIgeom\fR" 4
2181 .IX Item "-fopenacc-dim=geom"
2182 Specify default compute dimensions for parallel offload regions that do
2183 not explicitly specify.  The \fIgeom\fR value is a triple of
2184 \&':'\-separated sizes, in order 'gang', 'worker' and, 'vector'.  A size
2185 can be omitted, to use a target-specific default value.
2186 .IP "\fB\-fopenmp\fR" 4
2187 .IX Item "-fopenmp"
2188 Enable handling of OpenMP directives \f(CW\*(C`#pragma omp\*(C'\fR in C/\*(C+ and
2189 \&\f(CW\*(C`!$omp\*(C'\fR in Fortran.  When \fB\-fopenmp\fR is specified, the
2190 compiler generates parallel code according to the OpenMP Application
2191 Program Interface v4.5 <\fBhttp://www.openmp.org/\fR>.  This option
2192 implies \fB\-pthread\fR, and thus is only supported on targets that
2193 have support for \fB\-pthread\fR. \fB\-fopenmp\fR implies
2194 \&\fB\-fopenmp\-simd\fR.
2195 .IP "\fB\-fopenmp\-simd\fR" 4
2196 .IX Item "-fopenmp-simd"
2197 Enable handling of OpenMP's \s-1SIMD\s0 directives with \f(CW\*(C`#pragma omp\*(C'\fR
2198 in C/\*(C+ and \f(CW\*(C`!$omp\*(C'\fR in Fortran. Other OpenMP directives
2199 are ignored.
2200 .IP "\fB\-fgnu\-tm\fR" 4
2201 .IX Item "-fgnu-tm"
2202 When the option \fB\-fgnu\-tm\fR is specified, the compiler
2203 generates code for the Linux variant of Intel's current Transactional
2204 Memory \s-1ABI\s0 specification document (Revision 1.1, May 6 2009).  This is
2205 an experimental feature whose interface may change in future versions
2206 of \s-1GCC,\s0 as the official specification changes.  Please note that not
2207 all architectures are supported for this feature.
2208 .Sp
2209 For more information on \s-1GCC\s0's support for transactional memory,
2210 .Sp
2211 Note that the transactional memory feature is not supported with
2212 non-call exceptions (\fB\-fnon\-call\-exceptions\fR).
2213 .IP "\fB\-fms\-extensions\fR" 4
2214 .IX Item "-fms-extensions"
2215 Accept some non-standard constructs used in Microsoft header files.
2216 .Sp
2217 In \*(C+ code, this allows member names in structures to be similar
2218 to previous types declarations.
2219 .Sp
2220 .Vb 4
2221 \&        typedef int UOW;
2222 \&        struct ABC {
2223 \&          UOW UOW;
2224 \&        };
2225 .Ve
2226 .Sp
2227 Some cases of unnamed fields in structures and unions are only
2228 accepted with this option.
2229 .Sp
2230 Note that this option is off for all targets but x86 
2231 targets using ms-abi.
2232 .IP "\fB\-fplan9\-extensions\fR" 4
2233 .IX Item "-fplan9-extensions"
2234 Accept some non-standard constructs used in Plan 9 code.
2235 .Sp
2236 This enables \fB\-fms\-extensions\fR, permits passing pointers to
2237 structures with anonymous fields to functions that expect pointers to
2238 elements of the type of the field, and permits referring to anonymous
2239 fields declared using a typedef.    This is only
2240 supported for C, not \*(C+.
2241 .IP "\fB\-fcond\-mismatch\fR" 4
2242 .IX Item "-fcond-mismatch"
2243 Allow conditional expressions with mismatched types in the second and
2244 third arguments.  The value of such an expression is void.  This option
2245 is not supported for \*(C+.
2246 .IP "\fB\-flax\-vector\-conversions\fR" 4
2247 .IX Item "-flax-vector-conversions"
2248 Allow implicit conversions between vectors with differing numbers of
2249 elements and/or incompatible element types.  This option should not be
2250 used for new code.
2251 .IP "\fB\-funsigned\-char\fR" 4
2252 .IX Item "-funsigned-char"
2253 Let the type \f(CW\*(C`char\*(C'\fR be unsigned, like \f(CW\*(C`unsigned char\*(C'\fR.
2254 .Sp
2255 Each kind of machine has a default for what \f(CW\*(C`char\*(C'\fR should
2256 be.  It is either like \f(CW\*(C`unsigned char\*(C'\fR by default or like
2257 \&\f(CW\*(C`signed char\*(C'\fR by default.
2258 .Sp
2259 Ideally, a portable program should always use \f(CW\*(C`signed char\*(C'\fR or
2260 \&\f(CW\*(C`unsigned char\*(C'\fR when it depends on the signedness of an object.
2261 But many programs have been written to use plain \f(CW\*(C`char\*(C'\fR and
2262 expect it to be signed, or expect it to be unsigned, depending on the
2263 machines they were written for.  This option, and its inverse, let you
2264 make such a program work with the opposite default.
2265 .Sp
2266 The type \f(CW\*(C`char\*(C'\fR is always a distinct type from each of
2267 \&\f(CW\*(C`signed char\*(C'\fR or \f(CW\*(C`unsigned char\*(C'\fR, even though its behavior
2268 is always just like one of those two.
2269 .IP "\fB\-fsigned\-char\fR" 4
2270 .IX Item "-fsigned-char"
2271 Let the type \f(CW\*(C`char\*(C'\fR be signed, like \f(CW\*(C`signed char\*(C'\fR.
2272 .Sp
2273 Note that this is equivalent to \fB\-fno\-unsigned\-char\fR, which is
2274 the negative form of \fB\-funsigned\-char\fR.  Likewise, the option
2275 \&\fB\-fno\-signed\-char\fR is equivalent to \fB\-funsigned\-char\fR.
2276 .IP "\fB\-fsigned\-bitfields\fR" 4
2277 .IX Item "-fsigned-bitfields"
2278 .PD 0
2279 .IP "\fB\-funsigned\-bitfields\fR" 4
2280 .IX Item "-funsigned-bitfields"
2281 .IP "\fB\-fno\-signed\-bitfields\fR" 4
2282 .IX Item "-fno-signed-bitfields"
2283 .IP "\fB\-fno\-unsigned\-bitfields\fR" 4
2284 .IX Item "-fno-unsigned-bitfields"
2285 .PD
2286 These options control whether a bit-field is signed or unsigned, when the
2287 declaration does not use either \f(CW\*(C`signed\*(C'\fR or \f(CW\*(C`unsigned\*(C'\fR.  By
2288 default, such a bit-field is signed, because this is consistent: the
2289 basic integer types such as \f(CW\*(C`int\*(C'\fR are signed types.
2290 .IP "\fB\-fsso\-struct=\fR\fIendianness\fR" 4
2291 .IX Item "-fsso-struct=endianness"
2292 Set the default scalar storage order of structures and unions to the
2293 specified endianness.  The accepted values are \fBbig-endian\fR,
2294 \&\fBlittle-endian\fR and \fBnative\fR for the native endianness of
2295 the target (the default).  This option is not supported for \*(C+.
2296 .Sp
2297 \&\fBWarning:\fR the \fB\-fsso\-struct\fR switch causes \s-1GCC\s0 to generate
2298 code that is not binary compatible with code generated without it if the
2299 specified endianness is not the native endianness of the target.
2300 .SS "Options Controlling \*(C+ Dialect"
2301 .IX Subsection "Options Controlling Dialect"
2302 This section describes the command-line options that are only meaningful
2303 for \*(C+ programs.  You can also use most of the \s-1GNU\s0 compiler options
2304 regardless of what language your program is in.  For example, you
2305 might compile a file \fIfirstClass.C\fR like this:
2306 .PP
2307 .Vb 1
2308 \&        g++ \-g \-fstrict\-enums \-O \-c firstClass.C
2309 .Ve
2310 .PP
2311 In this example, only \fB\-fstrict\-enums\fR is an option meant
2312 only for \*(C+ programs; you can use the other options with any
2313 language supported by \s-1GCC.\s0
2314 .PP
2315 Some options for compiling C programs, such as \fB\-std\fR, are also
2316 relevant for \*(C+ programs.
2317 .PP
2318 Here is a list of options that are \fIonly\fR for compiling \*(C+ programs:
2319 .IP "\fB\-fabi\-version=\fR\fIn\fR" 4
2320 .IX Item "-fabi-version=n"
2321 Use version \fIn\fR of the \*(C+ \s-1ABI.\s0  The default is version 0.
2322 .Sp
2323 Version 0 refers to the version conforming most closely to
2324 the \*(C+ \s-1ABI\s0 specification.  Therefore, the \s-1ABI\s0 obtained using version 0
2325 will change in different versions of G++ as \s-1ABI\s0 bugs are fixed.
2326 .Sp
2327 Version 1 is the version of the \*(C+ \s-1ABI\s0 that first appeared in G++ 3.2.
2328 .Sp
2329 Version 2 is the version of the \*(C+ \s-1ABI\s0 that first appeared in G++
2330 3.4, and was the default through G++ 4.9.
2331 .Sp
2332 Version 3 corrects an error in mangling a constant address as a
2333 template argument.
2334 .Sp
2335 Version 4, which first appeared in G++ 4.5, implements a standard
2336 mangling for vector types.
2337 .Sp
2338 Version 5, which first appeared in G++ 4.6, corrects the mangling of
2339 attribute const/volatile on function pointer types, decltype of a
2340 plain decl, and use of a function parameter in the declaration of
2341 another parameter.
2342 .Sp
2343 Version 6, which first appeared in G++ 4.7, corrects the promotion
2344 behavior of \*(C+11 scoped enums and the mangling of template argument
2345 packs, const/static_cast, prefix ++ and \-\-, and a class scope function
2346 used as a template argument.
2347 .Sp
2348 Version 7, which first appeared in G++ 4.8, that treats nullptr_t as a
2349 builtin type and corrects the mangling of lambdas in default argument
2350 scope.
2351 .Sp
2352 Version 8, which first appeared in G++ 4.9, corrects the substitution
2353 behavior of function types with function-cv-qualifiers.
2354 .Sp
2355 Version 9, which first appeared in G++ 5.2, corrects the alignment of
2356 \&\f(CW\*(C`nullptr_t\*(C'\fR.
2357 .Sp
2358 Version 10, which first appeared in G++ 6.1, adds mangling of
2359 attributes that affect type identity, such as ia32 calling convention
2360 attributes (e.g. \fBstdcall\fR).
2361 .Sp
2362 Version 11, which first appeared in G++ 7, corrects the mangling of
2363 sizeof... expressions and operator names.  For multiple entities with
2364 the same name within a function, that are declared in different scopes,
2365 the mangling now changes starting with the twelfth occurrence.  It also
2366 implies \fB\-fnew\-inheriting\-ctors\fR.
2367 .Sp
2368 Version 12, which first appeared in G++ 8, corrects the calling
2369 conventions for empty classes on the x86_64 target and for classes
2370 with only deleted copy/move constructors.  It accidentally changes the
2371 calling convention for classes with a deleted copy constructor and a
2372 trivial move constructor.
2373 .Sp
2374 Version 13, which first appeared in G++ 8.2, fixes the accidental
2375 change in version 12.
2376 .Sp
2377 See also \fB\-Wabi\fR.
2378 .IP "\fB\-fabi\-compat\-version=\fR\fIn\fR" 4
2379 .IX Item "-fabi-compat-version=n"
2380 On targets that support strong aliases, G++
2381 works around mangling changes by creating an alias with the correct
2382 mangled name when defining a symbol with an incorrect mangled name.
2383 This switch specifies which \s-1ABI\s0 version to use for the alias.
2384 .Sp
2385 With \fB\-fabi\-version=0\fR (the default), this defaults to 11 (\s-1GCC 7\s0
2386 compatibility).  If another \s-1ABI\s0 version is explicitly selected, this
2387 defaults to 0.  For compatibility with \s-1GCC\s0 versions 3.2 through 4.9,
2388 use \fB\-fabi\-compat\-version=2\fR.
2389 .Sp
2390 If this option is not provided but \fB\-Wabi=\fR\fIn\fR is, that
2391 version is used for compatibility aliases.  If this option is provided
2392 along with \fB\-Wabi\fR (without the version), the version from this
2393 option is used for the warning.
2394 .IP "\fB\-fno\-access\-control\fR" 4
2395 .IX Item "-fno-access-control"
2396 Turn off all access checking.  This switch is mainly useful for working
2397 around bugs in the access control code.
2398 .IP "\fB\-faligned\-new\fR" 4
2399 .IX Item "-faligned-new"
2400 Enable support for \*(C+17 \f(CW\*(C`new\*(C'\fR of types that require more
2401 alignment than \f(CW\*(C`void* ::operator new(std::size_t)\*(C'\fR provides.  A
2402 numeric argument such as \f(CW\*(C`\-faligned\-new=32\*(C'\fR can be used to
2403 specify how much alignment (in bytes) is provided by that function,
2404 but few users will need to override the default of
2405 \&\f(CW\*(C`alignof(std::max_align_t)\*(C'\fR.
2406 .Sp
2407 This flag is enabled by default for \fB\-std=c++17\fR.
2408 .IP "\fB\-fcheck\-new\fR" 4
2409 .IX Item "-fcheck-new"
2410 Check that the pointer returned by \f(CW\*(C`operator new\*(C'\fR is non-null
2411 before attempting to modify the storage allocated.  This check is
2412 normally unnecessary because the \*(C+ standard specifies that
2413 \&\f(CW\*(C`operator new\*(C'\fR only returns \f(CW0\fR if it is declared
2414 \&\f(CW\*(C`throw()\*(C'\fR, in which case the compiler always checks the
2415 return value even without this option.  In all other cases, when
2416 \&\f(CW\*(C`operator new\*(C'\fR has a non-empty exception specification, memory
2417 exhaustion is signalled by throwing \f(CW\*(C`std::bad_alloc\*(C'\fR.  See also
2418 \&\fBnew (nothrow)\fR.
2419 .IP "\fB\-fconcepts\fR" 4
2420 .IX Item "-fconcepts"
2421 Enable support for the \*(C+ Extensions for Concepts Technical
2422 Specification, \s-1ISO 19217\s0 (2015), which allows code like
2423 .Sp
2424 .Vb 2
2425 \&        template <class T> concept bool Addable = requires (T t) { t + t; };
2426 \&        template <Addable T> T add (T a, T b) { return a + b; }
2427 .Ve
2428 .IP "\fB\-fconstexpr\-depth=\fR\fIn\fR" 4
2429 .IX Item "-fconstexpr-depth=n"
2430 Set the maximum nested evaluation depth for \*(C+11 constexpr functions
2431 to \fIn\fR.  A limit is needed to detect endless recursion during
2432 constant expression evaluation.  The minimum specified by the standard
2433 is 512.
2434 .IP "\fB\-fconstexpr\-loop\-limit=\fR\fIn\fR" 4
2435 .IX Item "-fconstexpr-loop-limit=n"
2436 Set the maximum number of iterations for a loop in \*(C+14 constexpr functions
2437 to \fIn\fR.  A limit is needed to detect infinite loops during
2438 constant expression evaluation.  The default is 262144 (1<<18).
2439 .IP "\fB\-fdeduce\-init\-list\fR" 4
2440 .IX Item "-fdeduce-init-list"
2441 Enable deduction of a template type parameter as
2442 \&\f(CW\*(C`std::initializer_list\*(C'\fR from a brace-enclosed initializer list, i.e.
2443 .Sp
2444 .Vb 4
2445 \&        template <class T> auto forward(T t) \-> decltype (realfn (t))
2446 \&        {
2447 \&          return realfn (t);
2448 \&        }
2449 \&        
2450 \&        void f()
2451 \&        {
2452 \&          forward({1,2}); // call forward<std::initializer_list<int>>
2453 \&        }
2454 .Ve
2455 .Sp
2456 This deduction was implemented as a possible extension to the
2457 originally proposed semantics for the \*(C+11 standard, but was not part
2458 of the final standard, so it is disabled by default.  This option is
2459 deprecated, and may be removed in a future version of G++.
2460 .IP "\fB\-ffriend\-injection\fR" 4
2461 .IX Item "-ffriend-injection"
2462 Inject friend functions into the enclosing namespace, so that they are
2463 visible outside the scope of the class in which they are declared.
2464 Friend functions were documented to work this way in the old Annotated
2465 \&\*(C+ Reference Manual.  
2466 However, in \s-1ISO \*(C+\s0 a friend function that is not declared
2467 in an enclosing scope can only be found using argument dependent
2468 lookup.  \s-1GCC\s0 defaults to the standard behavior.
2469 .Sp
2470 This option is deprecated and will be removed.
2471 .IP "\fB\-fno\-elide\-constructors\fR" 4
2472 .IX Item "-fno-elide-constructors"
2473 The \*(C+ standard allows an implementation to omit creating a temporary
2474 that is only used to initialize another object of the same type.
2475 Specifying this option disables that optimization, and forces G++ to
2476 call the copy constructor in all cases.  This option also causes G++
2477 to call trivial member functions which otherwise would be expanded inline.
2478 .Sp
2479 In \*(C+17, the compiler is required to omit these temporaries, but this
2480 option still affects trivial member functions.
2481 .IP "\fB\-fno\-enforce\-eh\-specs\fR" 4
2482 .IX Item "-fno-enforce-eh-specs"
2483 Don't generate code to check for violation of exception specifications
2484 at run time.  This option violates the \*(C+ standard, but may be useful
2485 for reducing code size in production builds, much like defining
2486 \&\f(CW\*(C`NDEBUG\*(C'\fR.  This does not give user code permission to throw
2487 exceptions in violation of the exception specifications; the compiler
2488 still optimizes based on the specifications, so throwing an
2489 unexpected exception results in undefined behavior at run time.
2490 .IP "\fB\-fextern\-tls\-init\fR" 4
2491 .IX Item "-fextern-tls-init"
2492 .PD 0
2493 .IP "\fB\-fno\-extern\-tls\-init\fR" 4
2494 .IX Item "-fno-extern-tls-init"
2495 .PD
2496 The \*(C+11 and OpenMP standards allow \f(CW\*(C`thread_local\*(C'\fR and
2497 \&\f(CW\*(C`threadprivate\*(C'\fR variables to have dynamic (runtime)
2498 initialization.  To support this, any use of such a variable goes
2499 through a wrapper function that performs any necessary initialization.
2500 When the use and definition of the variable are in the same
2501 translation unit, this overhead can be optimized away, but when the
2502 use is in a different translation unit there is significant overhead
2503 even if the variable doesn't actually need dynamic initialization.  If
2504 the programmer can be sure that no use of the variable in a
2505 non-defining \s-1TU\s0 needs to trigger dynamic initialization (either
2506 because the variable is statically initialized, or a use of the
2507 variable in the defining \s-1TU\s0 will be executed before any uses in
2508 another \s-1TU\s0), they can avoid this overhead with the
2509 \&\fB\-fno\-extern\-tls\-init\fR option.
2510 .Sp
2511 On targets that support symbol aliases, the default is
2512 \&\fB\-fextern\-tls\-init\fR.  On targets that do not support symbol
2513 aliases, the default is \fB\-fno\-extern\-tls\-init\fR.
2514 .IP "\fB\-ffor\-scope\fR" 4
2515 .IX Item "-ffor-scope"
2516 .PD 0
2517 .IP "\fB\-fno\-for\-scope\fR" 4
2518 .IX Item "-fno-for-scope"
2519 .PD
2520 If \fB\-ffor\-scope\fR is specified, the scope of variables declared in
2521 a \fIfor-init-statement\fR is limited to the \f(CW\*(C`for\*(C'\fR loop itself,
2522 as specified by the \*(C+ standard.
2523 If \fB\-fno\-for\-scope\fR is specified, the scope of variables declared in
2524 a \fIfor-init-statement\fR extends to the end of the enclosing scope,
2525 as was the case in old versions of G++, and other (traditional)
2526 implementations of \*(C+.
2527 .Sp
2528 This option is deprecated and the associated non-standard
2529 functionality will be removed.
2530 .IP "\fB\-fno\-gnu\-keywords\fR" 4
2531 .IX Item "-fno-gnu-keywords"
2532 Do not recognize \f(CW\*(C`typeof\*(C'\fR as a keyword, so that code can use this
2533 word as an identifier.  You can use the keyword \f(CW\*(C`_\|_typeof_\|_\*(C'\fR instead.
2534 This option is implied by the strict \s-1ISO \*(C+\s0 dialects: \fB\-ansi\fR,
2535 \&\fB\-std=c++98\fR, \fB\-std=c++11\fR, etc.
2536 .IP "\fB\-fno\-implicit\-templates\fR" 4
2537 .IX Item "-fno-implicit-templates"
2538 Never emit code for non-inline templates that are instantiated
2539 implicitly (i.e. by use); only emit code for explicit instantiations.
2540 .IP "\fB\-fno\-implicit\-inline\-templates\fR" 4
2541 .IX Item "-fno-implicit-inline-templates"
2542 Don't emit code for implicit instantiations of inline templates, either.
2543 The default is to handle inlines differently so that compiles with and
2544 without optimization need the same set of explicit instantiations.
2545 .IP "\fB\-fno\-implement\-inlines\fR" 4
2546 .IX Item "-fno-implement-inlines"
2547 To save space, do not emit out-of-line copies of inline functions
2548 controlled by \f(CW\*(C`#pragma implementation\*(C'\fR.  This causes linker
2549 errors if these functions are not inlined everywhere they are called.
2550 .IP "\fB\-fms\-extensions\fR" 4
2551 .IX Item "-fms-extensions"
2552 Disable Wpedantic warnings about constructs used in \s-1MFC,\s0 such as implicit
2553 int and getting a pointer to member function via non-standard syntax.
2554 .IP "\fB\-fnew\-inheriting\-ctors\fR" 4
2555 .IX Item "-fnew-inheriting-ctors"
2556 Enable the P0136 adjustment to the semantics of \*(C+11 constructor
2557 inheritance.  This is part of \*(C+17 but also considered to be a Defect
2558 Report against \*(C+11 and \*(C+14.  This flag is enabled by default
2559 unless \fB\-fabi\-version=10\fR or lower is specified.
2560 .IP "\fB\-fnew\-ttp\-matching\fR" 4
2561 .IX Item "-fnew-ttp-matching"
2562 Enable the P0522 resolution to Core issue 150, template template
2563 parameters and default arguments: this allows a template with default
2564 template arguments as an argument for a template template parameter
2565 with fewer template parameters.  This flag is enabled by default for
2566 \&\fB\-std=c++17\fR.
2567 .IP "\fB\-fno\-nonansi\-builtins\fR" 4
2568 .IX Item "-fno-nonansi-builtins"
2569 Disable built-in declarations of functions that are not mandated by
2570 \&\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,
2571 \&\f(CW\*(C`index\*(C'\fR, \f(CW\*(C`bzero\*(C'\fR, \f(CW\*(C`conjf\*(C'\fR, and other related functions.
2572 .IP "\fB\-fnothrow\-opt\fR" 4
2573 .IX Item "-fnothrow-opt"
2574 Treat a \f(CW\*(C`throw()\*(C'\fR exception specification as if it were a
2575 \&\f(CW\*(C`noexcept\*(C'\fR specification to reduce or eliminate the text size
2576 overhead relative to a function with no exception specification.  If
2577 the function has local variables of types with non-trivial
2578 destructors, the exception specification actually makes the
2579 function smaller because the \s-1EH\s0 cleanups for those variables can be
2580 optimized away.  The semantic effect is that an exception thrown out of
2581 a function with such an exception specification results in a call
2582 to \f(CW\*(C`terminate\*(C'\fR rather than \f(CW\*(C`unexpected\*(C'\fR.
2583 .IP "\fB\-fno\-operator\-names\fR" 4
2584 .IX Item "-fno-operator-names"
2585 Do not treat the operator name keywords \f(CW\*(C`and\*(C'\fR, \f(CW\*(C`bitand\*(C'\fR,
2586 \&\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
2587 synonyms as keywords.
2588 .IP "\fB\-fno\-optional\-diags\fR" 4
2589 .IX Item "-fno-optional-diags"
2590 Disable diagnostics that the standard says a compiler does not need to
2591 issue.  Currently, the only such diagnostic issued by G++ is the one for
2592 a name having multiple meanings within a class.
2593 .IP "\fB\-fpermissive\fR" 4
2594 .IX Item "-fpermissive"
2595 Downgrade some diagnostics about nonconformant code from errors to
2596 warnings.  Thus, using \fB\-fpermissive\fR allows some
2597 nonconforming code to compile.
2598 .IP "\fB\-fno\-pretty\-templates\fR" 4
2599 .IX Item "-fno-pretty-templates"
2600 When an error message refers to a specialization of a function
2601 template, the compiler normally prints the signature of the
2602 template followed by the template arguments and any typedefs or
2603 typenames in the signature (e.g. \f(CW\*(C`void f(T) [with T = int]\*(C'\fR
2604 rather than \f(CW\*(C`void f(int)\*(C'\fR) so that it's clear which template is
2605 involved.  When an error message refers to a specialization of a class
2606 template, the compiler omits any template arguments that match
2607 the default template arguments for that template.  If either of these
2608 behaviors make it harder to understand the error message rather than
2609 easier, you can use \fB\-fno\-pretty\-templates\fR to disable them.
2610 .IP "\fB\-frepo\fR" 4
2611 .IX Item "-frepo"
2612 Enable automatic template instantiation at link time.  This option also
2613 implies \fB\-fno\-implicit\-templates\fR.
2614 .IP "\fB\-fno\-rtti\fR" 4
2615 .IX Item "-fno-rtti"
2616 Disable generation of information about every class with virtual
2617 functions for use by the \*(C+ run-time type identification features
2618 (\f(CW\*(C`dynamic_cast\*(C'\fR and \f(CW\*(C`typeid\*(C'\fR).  If you don't use those parts
2619 of the language, you can save some space by using this flag.  Note that
2620 exception handling uses the same information, but G++ generates it as
2621 needed. The \f(CW\*(C`dynamic_cast\*(C'\fR operator can still be used for casts that
2622 do not require run-time type information, i.e. casts to \f(CW\*(C`void *\*(C'\fR or to
2623 unambiguous base classes.
2624 .IP "\fB\-fsized\-deallocation\fR" 4
2625 .IX Item "-fsized-deallocation"
2626 Enable the built-in global declarations
2627 .Sp
2628 .Vb 2
2629 \&        void operator delete (void *, std::size_t) noexcept;
2630 \&        void operator delete[] (void *, std::size_t) noexcept;
2631 .Ve
2632 .Sp
2633 as introduced in \*(C+14.  This is useful for user-defined replacement
2634 deallocation functions that, for example, use the size of the object
2635 to make deallocation faster.  Enabled by default under
2636 \&\fB\-std=c++14\fR and above.  The flag \fB\-Wsized\-deallocation\fR
2637 warns about places that might want to add a definition.
2638 .IP "\fB\-fstrict\-enums\fR" 4
2639 .IX Item "-fstrict-enums"
2640 Allow the compiler to optimize using the assumption that a value of
2641 enumerated type can only be one of the values of the enumeration (as
2642 defined in the \*(C+ standard; basically, a value that can be
2643 represented in the minimum number of bits needed to represent all the
2644 enumerators).  This assumption may not be valid if the program uses a
2645 cast to convert an arbitrary integer value to the enumerated type.
2646 .IP "\fB\-fstrong\-eval\-order\fR" 4
2647 .IX Item "-fstrong-eval-order"
2648 Evaluate member access, array subscripting, and shift expressions in
2649 left-to-right order, and evaluate assignment in right-to-left order,
2650 as adopted for \*(C+17.  Enabled by default with \fB\-std=c++17\fR.
2651 \&\fB\-fstrong\-eval\-order=some\fR enables just the ordering of member
2652 access and shift expressions, and is the default without
2653 \&\fB\-std=c++17\fR.
2654 .IP "\fB\-ftemplate\-backtrace\-limit=\fR\fIn\fR" 4
2655 .IX Item "-ftemplate-backtrace-limit=n"
2656 Set the maximum number of template instantiation notes for a single
2657 warning or error to \fIn\fR.  The default value is 10.
2658 .IP "\fB\-ftemplate\-depth=\fR\fIn\fR" 4
2659 .IX Item "-ftemplate-depth=n"
2660 Set the maximum instantiation depth for template classes to \fIn\fR.
2661 A limit on the template instantiation depth is needed to detect
2662 endless recursions during template class instantiation.  \s-1ANSI/ISO \*(C+\s0
2663 conforming programs must not rely on a maximum depth greater than 17
2664 (changed to 1024 in \*(C+11).  The default value is 900, as the compiler
2665 can run out of stack space before hitting 1024 in some situations.
2666 .IP "\fB\-fno\-threadsafe\-statics\fR" 4
2667 .IX Item "-fno-threadsafe-statics"
2668 Do not emit the extra code to use the routines specified in the \*(C+
2669 \&\s-1ABI\s0 for thread-safe initialization of local statics.  You can use this
2670 option to reduce code size slightly in code that doesn't need to be
2671 thread-safe.
2672 .IP "\fB\-fuse\-cxa\-atexit\fR" 4
2673 .IX Item "-fuse-cxa-atexit"
2674 Register destructors for objects with static storage duration with the
2675 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR function rather than the \f(CW\*(C`atexit\*(C'\fR function.
2676 This option is required for fully standards-compliant handling of static
2677 destructors, but only works if your C library supports
2678 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR.
2679 .IP "\fB\-fno\-use\-cxa\-get\-exception\-ptr\fR" 4
2680 .IX Item "-fno-use-cxa-get-exception-ptr"
2681 Don't use the \f(CW\*(C`_\|_cxa_get_exception_ptr\*(C'\fR runtime routine.  This
2682 causes \f(CW\*(C`std::uncaught_exception\*(C'\fR to be incorrect, but is necessary
2683 if the runtime routine is not available.
2684 .IP "\fB\-fvisibility\-inlines\-hidden\fR" 4
2685 .IX Item "-fvisibility-inlines-hidden"
2686 This switch declares that the user does not attempt to compare
2687 pointers to inline functions or methods where the addresses of the two functions
2688 are taken in different shared objects.
2689 .Sp
2690 The effect of this is that \s-1GCC\s0 may, effectively, mark inline methods with
2691 \&\f(CW\*(C`_\|_attribute_\|_ ((visibility ("hidden")))\*(C'\fR so that they do not
2692 appear in the export table of a \s-1DSO\s0 and do not require a \s-1PLT\s0 indirection
2693 when used within the \s-1DSO.\s0  Enabling this option can have a dramatic effect
2694 on load and link times of a \s-1DSO\s0 as it massively reduces the size of the
2695 dynamic export table when the library makes heavy use of templates.
2696 .Sp
2697 The behavior of this switch is not quite the same as marking the
2698 methods as hidden directly, because it does not affect static variables
2699 local to the function or cause the compiler to deduce that
2700 the function is defined in only one shared object.
2701 .Sp
2702 You may mark a method as having a visibility explicitly to negate the
2703 effect of the switch for that method.  For example, if you do want to
2704 compare pointers to a particular inline method, you might mark it as
2705 having default visibility.  Marking the enclosing class with explicit
2706 visibility has no effect.
2707 .Sp
2708 Explicitly instantiated inline methods are unaffected by this option
2709 as their linkage might otherwise cross a shared library boundary.
2710 .IP "\fB\-fvisibility\-ms\-compat\fR" 4
2711 .IX Item "-fvisibility-ms-compat"
2712 This flag attempts to use visibility settings to make \s-1GCC\s0's \*(C+
2713 linkage model compatible with that of Microsoft Visual Studio.
2714 .Sp
2715 The flag makes these changes to \s-1GCC\s0's linkage model:
2716 .RS 4
2717 .IP "1." 4
2718 .IX Item "1."
2719 It sets the default visibility to \f(CW\*(C`hidden\*(C'\fR, like
2720 \&\fB\-fvisibility=hidden\fR.
2721 .IP "2." 4
2722 .IX Item "2."
2723 Types, but not their members, are not hidden by default.
2724 .IP "3." 4
2725 .IX Item "3."
2726 The One Definition Rule is relaxed for types without explicit
2727 visibility specifications that are defined in more than one
2728 shared object: those declarations are permitted if they are
2729 permitted when this option is not used.
2730 .RE
2731 .RS 4
2732 .Sp
2733 In new code it is better to use \fB\-fvisibility=hidden\fR and
2734 export those classes that are intended to be externally visible.
2735 Unfortunately it is possible for code to rely, perhaps accidentally,
2736 on the Visual Studio behavior.
2737 .Sp
2738 Among the consequences of these changes are that static data members
2739 of the same type with the same name but defined in different shared
2740 objects are different, so changing one does not change the other;
2741 and that pointers to function members defined in different shared
2742 objects may not compare equal.  When this flag is given, it is a
2743 violation of the \s-1ODR\s0 to define types with the same name differently.
2744 .RE
2745 .IP "\fB\-fno\-weak\fR" 4
2746 .IX Item "-fno-weak"
2747 Do not use weak symbol support, even if it is provided by the linker.
2748 By default, G++ uses weak symbols if they are available.  This
2749 option exists only for testing, and should not be used by end-users;
2750 it results in inferior code and has no benefits.  This option may
2751 be removed in a future release of G++.
2752 .IP "\fB\-nostdinc++\fR" 4
2753 .IX Item "-nostdinc++"
2754 Do not search for header files in the standard directories specific to
2755 \&\*(C+, but do still search the other standard directories.  (This option
2756 is used when building the \*(C+ library.)
2757 .PP
2758 In addition, these optimization, warning, and code generation options
2759 have meanings only for \*(C+ programs:
2760 .IP "\fB\-Wabi\fR (C, Objective-C, \*(C+ and Objective\-\*(C+ only)" 4
2761 .IX Item "-Wabi (C, Objective-C, and Objective- only)"
2762 Warn when G++ it generates code that is probably not compatible with
2763 the vendor-neutral \*(C+ \s-1ABI.\s0  Since G++ now defaults to updating the
2764 \&\s-1ABI\s0 with each major release, normally \fB\-Wabi\fR will warn only if
2765 there is a check added later in a release series for an \s-1ABI\s0 issue
2766 discovered since the initial release.  \fB\-Wabi\fR will warn about
2767 more things if an older \s-1ABI\s0 version is selected (with
2768 \&\fB\-fabi\-version=\fR\fIn\fR).
2769 .Sp
2770 \&\fB\-Wabi\fR can also be used with an explicit version number to
2771 warn about compatibility with a particular \fB\-fabi\-version\fR
2772 level, e.g. \fB\-Wabi=2\fR to warn about changes relative to
2773 \&\fB\-fabi\-version=2\fR.
2774 .Sp
2775 If an explicit version number is provided and
2776 \&\fB\-fabi\-compat\-version\fR is not specified, the version number
2777 from this option is used for compatibility aliases.  If no explicit
2778 version number is provided with this option, but
2779 \&\fB\-fabi\-compat\-version\fR is specified, that version number is
2780 used for \s-1ABI\s0 warnings.
2781 .Sp
2782 Although an effort has been made to warn about
2783 all such cases, there are probably some cases that are not warned about,
2784 even though G++ is generating incompatible code.  There may also be
2785 cases where warnings are emitted even though the code that is generated
2786 is compatible.
2787 .Sp
2788 You should rewrite your code to avoid these warnings if you are
2789 concerned about the fact that code generated by G++ may not be binary
2790 compatible with code generated by other compilers.
2791 .Sp
2792 Known incompatibilities in \fB\-fabi\-version=2\fR (which was the
2793 default from \s-1GCC 3.4\s0 to 4.9) include:
2794 .RS 4
2795 .IP "*" 4
2796 A template with a non-type template parameter of reference type was
2797 mangled incorrectly:
2798 .Sp
2799 .Vb 3
2800 \&        extern int N;
2801 \&        template <int &> struct S {};
2802 \&        void n (S<N>) {2}
2803 .Ve
2804 .Sp
2805 This was fixed in \fB\-fabi\-version=3\fR.
2806 .IP "*" 4
2807 \&\s-1SIMD\s0 vector types declared using \f(CW\*(C`_\|_attribute ((vector_size))\*(C'\fR were
2808 mangled in a non-standard way that does not allow for overloading of
2809 functions taking vectors of different sizes.
2810 .Sp
2811 The mangling was changed in \fB\-fabi\-version=4\fR.
2812 .IP "*" 4
2813 \&\f(CW\*(C`_\|_attribute ((const))\*(C'\fR and \f(CW\*(C`noreturn\*(C'\fR were mangled as type
2814 qualifiers, and \f(CW\*(C`decltype\*(C'\fR of a plain declaration was folded away.
2815 .Sp
2816 These mangling issues were fixed in \fB\-fabi\-version=5\fR.
2817 .IP "*" 4
2818 Scoped enumerators passed as arguments to a variadic function are
2819 promoted like unscoped enumerators, causing \f(CW\*(C`va_arg\*(C'\fR to complain.
2820 On most targets this does not actually affect the parameter passing
2821 \&\s-1ABI,\s0 as there is no way to pass an argument smaller than \f(CW\*(C`int\*(C'\fR.
2822 .Sp
2823 Also, the \s-1ABI\s0 changed the mangling of template argument packs,
2824 \&\f(CW\*(C`const_cast\*(C'\fR, \f(CW\*(C`static_cast\*(C'\fR, prefix increment/decrement, and
2825 a class scope function used as a template argument.
2826 .Sp
2827 These issues were corrected in \fB\-fabi\-version=6\fR.
2828 .IP "*" 4
2829 Lambdas in default argument scope were mangled incorrectly, and the
2830 \&\s-1ABI\s0 changed the mangling of \f(CW\*(C`nullptr_t\*(C'\fR.
2831 .Sp
2832 These issues were corrected in \fB\-fabi\-version=7\fR.
2833 .IP "*" 4
2834 When mangling a function type with function-cv-qualifiers, the
2835 un-qualified function type was incorrectly treated as a substitution
2836 candidate.
2837 .Sp
2838 This was fixed in \fB\-fabi\-version=8\fR, the default for \s-1GCC 5.1.\s0
2839 .IP "*" 4
2840 \&\f(CW\*(C`decltype(nullptr)\*(C'\fR incorrectly had an alignment of 1, leading to
2841 unaligned accesses.  Note that this did not affect the \s-1ABI\s0 of a
2842 function with a \f(CW\*(C`nullptr_t\*(C'\fR parameter, as parameters have a
2843 minimum alignment.
2844 .Sp
2845 This was fixed in \fB\-fabi\-version=9\fR, the default for \s-1GCC 5.2.\s0
2846 .IP "*" 4
2847 Target-specific attributes that affect the identity of a type, such as
2848 ia32 calling conventions on a function type (stdcall, regparm, etc.),
2849 did not affect the mangled name, leading to name collisions when
2850 function pointers were used as template arguments.
2851 .Sp
2852 This was fixed in \fB\-fabi\-version=10\fR, the default for \s-1GCC 6.1.\s0
2853 .RE
2854 .RS 4
2855 .Sp
2856 It also warns about psABI-related changes.  The known psABI changes at this
2857 point include:
2858 .IP "*" 4
2859 For SysV/x86\-64, unions with \f(CW\*(C`long double\*(C'\fR members are 
2860 passed in memory as specified in psABI.  For example:
2861 .Sp
2862 .Vb 4
2863 \&        union U {
2864 \&          long double ld;
2865 \&          int i;
2866 \&        };
2867 .Ve
2868 .Sp
2869 \&\f(CW\*(C`union U\*(C'\fR is always passed in memory.
2870 .RE
2871 .RS 4
2872 .RE
2873 .IP "\fB\-Wabi\-tag\fR (\*(C+ and Objective\-\*(C+ only)" 4
2874 .IX Item "-Wabi-tag ( and Objective- only)"
2875 Warn when a type with an \s-1ABI\s0 tag is used in a context that does not
2876 have that \s-1ABI\s0 tag.  See \fB\*(C+ Attributes\fR for more information
2877 about \s-1ABI\s0 tags.
2878 .IP "\fB\-Wctor\-dtor\-privacy\fR (\*(C+ and Objective\-\*(C+ only)" 4
2879 .IX Item "-Wctor-dtor-privacy ( and Objective- only)"
2880 Warn when a class seems unusable because all the constructors or
2881 destructors in that class are private, and it has neither friends nor
2882 public static member functions.  Also warn if there are no non-private
2883 methods, and there's at least one private member function that isn't
2884 a constructor or destructor.
2885 .IP "\fB\-Wdelete\-non\-virtual\-dtor\fR (\*(C+ and Objective\-\*(C+ only)" 4
2886 .IX Item "-Wdelete-non-virtual-dtor ( and Objective- only)"
2887 Warn when \f(CW\*(C`delete\*(C'\fR is used to destroy an instance of a class that
2888 has virtual functions and non-virtual destructor. It is unsafe to delete
2889 an instance of a derived class through a pointer to a base class if the
2890 base class does not have a virtual destructor.  This warning is enabled
2891 by \fB\-Wall\fR.
2892 .IP "\fB\-Wliteral\-suffix\fR (\*(C+ and Objective\-\*(C+ only)" 4
2893 .IX Item "-Wliteral-suffix ( and Objective- only)"
2894 Warn when a string or character literal is followed by a ud-suffix which does
2895 not begin with an underscore.  As a conforming extension, \s-1GCC\s0 treats such
2896 suffixes as separate preprocessing tokens in order to maintain backwards
2897 compatibility with code that uses formatting macros from \f(CW\*(C`<inttypes.h>\*(C'\fR.
2898 For example:
2899 .Sp
2900 .Vb 3
2901 \&        #define _\|_STDC_FORMAT_MACROS
2902 \&        #include <inttypes.h>
2903 \&        #include <stdio.h>
2904 \&        
2905 \&        int main() {
2906 \&          int64_t i64 = 123;
2907 \&          printf("My int64: %" PRId64"\en", i64);
2908 \&        }
2909 .Ve
2910 .Sp
2911 In this case, \f(CW\*(C`PRId64\*(C'\fR is treated as a separate preprocessing token.
2912 .Sp
2913 Additionally, warn when a user-defined literal operator is declared with
2914 a literal suffix identifier that doesn't begin with an underscore. Literal
2915 suffix identifiers that don't begin with an underscore are reserved for
2916 future standardization.
2917 .Sp
2918 This warning is enabled by default.
2919 .IP "\fB\-Wlto\-type\-mismatch\fR" 4
2920 .IX Item "-Wlto-type-mismatch"
2921 During the link-time optimization warn about type mismatches in
2922 global declarations from different compilation units.
2923 Requires \fB\-flto\fR to be enabled.  Enabled by default.
2924 .IP "\fB\-Wno\-narrowing\fR (\*(C+ and Objective\-\*(C+ only)" 4
2925 .IX Item "-Wno-narrowing ( and Objective- only)"
2926 For \*(C+11 and later standards, narrowing conversions are diagnosed by default,
2927 as required by the standard.  A narrowing conversion from a constant produces
2928 an error, and a narrowing conversion from a non-constant produces a warning,
2929 but \fB\-Wno\-narrowing\fR suppresses the diagnostic.
2930 Note that this does not affect the meaning of well-formed code;
2931 narrowing conversions are still considered ill-formed in \s-1SFINAE\s0 contexts.
2932 .Sp
2933 With \fB\-Wnarrowing\fR in \*(C+98, warn when a narrowing
2934 conversion prohibited by \*(C+11 occurs within
2935 \&\fB{ }\fR, e.g.
2936 .Sp
2937 .Vb 1
2938 \&        int i = { 2.2 }; // error: narrowing from double to int
2939 .Ve
2940 .Sp
2941 This flag is included in \fB\-Wall\fR and \fB\-Wc++11\-compat\fR.
2942 .IP "\fB\-Wnoexcept\fR (\*(C+ and Objective\-\*(C+ only)" 4
2943 .IX Item "-Wnoexcept ( and Objective- only)"
2944 Warn when a noexcept-expression evaluates to false because of a call
2945 to a function that does not have a non-throwing exception
2946 specification (i.e. \f(CW\*(C`throw()\*(C'\fR or \f(CW\*(C`noexcept\*(C'\fR) but is known by
2947 the compiler to never throw an exception.
2948 .IP "\fB\-Wnoexcept\-type\fR (\*(C+ and Objective\-\*(C+ only)" 4
2949 .IX Item "-Wnoexcept-type ( and Objective- only)"
2950 Warn if the \*(C+17 feature making \f(CW\*(C`noexcept\*(C'\fR part of a function
2951 type changes the mangled name of a symbol relative to \*(C+14.  Enabled
2952 by \fB\-Wabi\fR and \fB\-Wc++17\-compat\fR.
2953 .Sp
2954 As an example:
2955 .Sp
2956 .Vb 3
2957 \&        template <class T> void f(T t) { t(); };
2958 \&        void g() noexcept;
2959 \&        void h() { f(g); }
2960 .Ve
2961 .Sp
2962 In \*(C+14, \f(CW\*(C`f\*(C'\fR calls \f(CW\*(C`f<void(*)()>\*(C'\fR, but in
2963 \&\*(C+17 it calls \f(CW\*(C`f<void(*)()noexcept>\*(C'\fR.
2964 .IP "\fB\-Wclass\-memaccess\fR (\*(C+ and Objective\-\*(C+ only)" 4
2965 .IX Item "-Wclass-memaccess ( and Objective- only)"
2966 Warn when the destination of a call to a raw memory function such as
2967 \&\f(CW\*(C`memset\*(C'\fR or \f(CW\*(C`memcpy\*(C'\fR is an object of class type, and when writing
2968 into such an object might bypass the class non-trivial or deleted constructor
2969 or copy assignment, violate const-correctness or encapsulation, or corrupt
2970 virtual table pointers.  Modifying the representation of such objects may
2971 violate invariants maintained by member functions of the class.  For example,
2972 the call to \f(CW\*(C`memset\*(C'\fR below is undefined because it modifies a non-trivial
2973 class object and is, therefore, diagnosed.  The safe way to either initialize
2974 or clear the storage of objects of such types is by using the appropriate
2975 constructor or assignment operator, if one is available.
2976 .Sp
2977 .Vb 2
2978 \&        std::string str = "abc";
2979 \&        memset (&str, 0, sizeof str);
2980 .Ve
2981 .Sp
2982 The \fB\-Wclass\-memaccess\fR option is enabled by \fB\-Wall\fR.
2983 Explicitly casting the pointer to the class object to \f(CW\*(C`void *\*(C'\fR or
2984 to a type that can be safely accessed by the raw memory function suppresses
2985 the warning.
2986 .IP "\fB\-Wnon\-virtual\-dtor\fR (\*(C+ and Objective\-\*(C+ only)" 4
2987 .IX Item "-Wnon-virtual-dtor ( and Objective- only)"
2988 Warn when a class has virtual functions and an accessible non-virtual
2989 destructor itself or in an accessible polymorphic base class, in which
2990 case it is possible but unsafe to delete an instance of a derived
2991 class through a pointer to the class itself or base class.  This
2992 warning is automatically enabled if \fB\-Weffc++\fR is specified.
2993 .IP "\fB\-Wregister\fR (\*(C+ and Objective\-\*(C+ only)" 4
2994 .IX Item "-Wregister ( and Objective- only)"
2995 Warn on uses of the \f(CW\*(C`register\*(C'\fR storage class specifier, except
2996 when it is part of the \s-1GNU\s0 \fBExplicit Register Variables\fR extension.
2997 The use of the \f(CW\*(C`register\*(C'\fR keyword as storage class specifier has
2998 been deprecated in \*(C+11 and removed in \*(C+17.
2999 Enabled by default with \fB\-std=c++17\fR.
3000 .IP "\fB\-Wreorder\fR (\*(C+ and Objective\-\*(C+ only)" 4
3001 .IX Item "-Wreorder ( and Objective- only)"
3002 Warn when the order of member initializers given in the code does not
3003 match the order in which they must be executed.  For instance:
3004 .Sp
3005 .Vb 5
3006 \&        struct A {
3007 \&          int i;
3008 \&          int j;
3009 \&          A(): j (0), i (1) { }
3010 \&        };
3011 .Ve
3012 .Sp
3013 The compiler rearranges the member initializers for \f(CW\*(C`i\*(C'\fR
3014 and \f(CW\*(C`j\*(C'\fR to match the declaration order of the members, emitting
3015 a warning to that effect.  This warning is enabled by \fB\-Wall\fR.
3016 .IP "\fB\-fext\-numeric\-literals\fR (\*(C+ and Objective\-\*(C+ only)" 4
3017 .IX Item "-fext-numeric-literals ( and Objective- only)"
3018 Accept imaginary, fixed-point, or machine-defined
3019 literal number suffixes as \s-1GNU\s0 extensions.
3020 When this option is turned off these suffixes are treated
3021 as \*(C+11 user-defined literal numeric suffixes.
3022 This is on by default for all pre\-\*(C+11 dialects and all \s-1GNU\s0 dialects:
3023 \&\fB\-std=c++98\fR, \fB\-std=gnu++98\fR, \fB\-std=gnu++11\fR,
3024 \&\fB\-std=gnu++14\fR.
3025 This option is off by default
3026 for \s-1ISO \*(C+11\s0 onwards (\fB\-std=c++11\fR, ...).
3027 .PP
3028 The following \fB\-W...\fR options are not affected by \fB\-Wall\fR.
3029 .IP "\fB\-Weffc++\fR (\*(C+ and Objective\-\*(C+ only)" 4
3030 .IX Item "-Weffc++ ( and Objective- only)"
3031 Warn about violations of the following style guidelines from Scott Meyers'
3032 \&\fIEffective \*(C+\fR series of books:
3033 .RS 4
3034 .IP "*" 4
3035 Define a copy constructor and an assignment operator for classes
3036 with dynamically-allocated memory.
3037 .IP "*" 4
3038 Prefer initialization to assignment in constructors.
3039 .IP "*" 4
3040 Have \f(CW\*(C`operator=\*(C'\fR return a reference to \f(CW*this\fR.
3041 .IP "*" 4
3042 Don't try to return a reference when you must return an object.
3043 .IP "*" 4
3044 Distinguish between prefix and postfix forms of increment and
3045 decrement operators.
3046 .IP "*" 4
3047 Never overload \f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`||\*(C'\fR, or \f(CW\*(C`,\*(C'\fR.
3048 .RE
3049 .RS 4
3050 .Sp
3051 This option also enables \fB\-Wnon\-virtual\-dtor\fR, which is also
3052 one of the effective \*(C+ recommendations.  However, the check is
3053 extended to warn about the lack of virtual destructor in accessible
3054 non-polymorphic bases classes too.
3055 .Sp
3056 When selecting this option, be aware that the standard library
3057 headers do not obey all of these guidelines; use \fBgrep \-v\fR
3058 to filter out those warnings.
3059 .RE
3060 .IP "\fB\-Wstrict\-null\-sentinel\fR (\*(C+ and Objective\-\*(C+ only)" 4
3061 .IX Item "-Wstrict-null-sentinel ( and Objective- only)"
3062 Warn about the use of an uncasted \f(CW\*(C`NULL\*(C'\fR as sentinel.  When
3063 compiling only with \s-1GCC\s0 this is a valid sentinel, as \f(CW\*(C`NULL\*(C'\fR is defined
3064 to \f(CW\*(C`_\|_null\*(C'\fR.  Although it is a null pointer constant rather than a
3065 null pointer, it is guaranteed to be of the same size as a pointer.
3066 But this use is not portable across different compilers.
3067 .IP "\fB\-Wno\-non\-template\-friend\fR (\*(C+ and Objective\-\*(C+ only)" 4
3068 .IX Item "-Wno-non-template-friend ( and Objective- only)"
3069 Disable warnings when non-template friend functions are declared
3070 within a template.  In very old versions of \s-1GCC\s0 that predate implementation
3071 of the \s-1ISO\s0 standard, declarations such as 
3072 \&\fBfriend int foo(int)\fR, where the name of the friend is an unqualified-id,
3073 could be interpreted as a particular specialization of a template
3074 function; the warning exists to diagnose compatibility problems, 
3075 and is enabled by default.
3076 .IP "\fB\-Wold\-style\-cast\fR (\*(C+ and Objective\-\*(C+ only)" 4
3077 .IX Item "-Wold-style-cast ( and Objective- only)"
3078 Warn if an old-style (C\-style) cast to a non-void type is used within
3079 a \*(C+ program.  The new-style casts (\f(CW\*(C`dynamic_cast\*(C'\fR,
3080 \&\f(CW\*(C`static_cast\*(C'\fR, \f(CW\*(C`reinterpret_cast\*(C'\fR, and \f(CW\*(C`const_cast\*(C'\fR) are
3081 less vulnerable to unintended effects and much easier to search for.
3082 .IP "\fB\-Woverloaded\-virtual\fR (\*(C+ and Objective\-\*(C+ only)" 4
3083 .IX Item "-Woverloaded-virtual ( and Objective- only)"
3084 Warn when a function declaration hides virtual functions from a
3085 base class.  For example, in:
3086 .Sp
3087 .Vb 3
3088 \&        struct A {
3089 \&          virtual void f();
3090 \&        };
3091 \&        
3092 \&        struct B: public A {
3093 \&          void f(int);
3094 \&        };
3095 .Ve
3096 .Sp
3097 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
3098 like:
3099 .Sp
3100 .Vb 2
3101 \&        B* b;
3102 \&        b\->f();
3103 .Ve
3104 .Sp
3105 fails to compile.
3106 .IP "\fB\-Wno\-pmf\-conversions\fR (\*(C+ and Objective\-\*(C+ only)" 4
3107 .IX Item "-Wno-pmf-conversions ( and Objective- only)"
3108 Disable the diagnostic for converting a bound pointer to member function
3109 to a plain pointer.
3110 .IP "\fB\-Wsign\-promo\fR (\*(C+ and Objective\-\*(C+ only)" 4
3111 .IX Item "-Wsign-promo ( and Objective- only)"
3112 Warn when overload resolution chooses a promotion from unsigned or
3113 enumerated type to a signed type, over a conversion to an unsigned type of
3114 the same size.  Previous versions of G++ tried to preserve
3115 unsignedness, but the standard mandates the current behavior.
3116 .IP "\fB\-Wtemplates\fR (\*(C+ and Objective\-\*(C+ only)" 4
3117 .IX Item "-Wtemplates ( and Objective- only)"
3118 Warn when a primary template declaration is encountered.  Some coding
3119 rules disallow templates, and this may be used to enforce that rule.
3120 The warning is inactive inside a system header file, such as the \s-1STL,\s0 so
3121 one can still use the \s-1STL.\s0  One may also instantiate or specialize
3122 templates.
3123 .IP "\fB\-Wmultiple\-inheritance\fR (\*(C+ and Objective\-\*(C+ only)" 4
3124 .IX Item "-Wmultiple-inheritance ( and Objective- only)"
3125 Warn when a class is defined with multiple direct base classes.  Some
3126 coding rules disallow multiple inheritance, and this may be used to
3127 enforce that rule.  The warning is inactive inside a system header file,
3128 such as the \s-1STL,\s0 so one can still use the \s-1STL.\s0  One may also define
3129 classes that indirectly use multiple inheritance.
3130 .IP "\fB\-Wvirtual\-inheritance\fR" 4
3131 .IX Item "-Wvirtual-inheritance"
3132 Warn when a class is defined with a virtual direct base class.  Some
3133 coding rules disallow multiple inheritance, and this may be used to
3134 enforce that rule.  The warning is inactive inside a system header file,
3135 such as the \s-1STL,\s0 so one can still use the \s-1STL.\s0  One may also define
3136 classes that indirectly use virtual inheritance.
3137 .IP "\fB\-Wnamespaces\fR" 4
3138 .IX Item "-Wnamespaces"
3139 Warn when a namespace definition is opened.  Some coding rules disallow
3140 namespaces, and this may be used to enforce that rule.  The warning is
3141 inactive inside a system header file, such as the \s-1STL,\s0 so one can still
3142 use the \s-1STL.\s0  One may also use using directives and qualified names.
3143 .IP "\fB\-Wno\-terminate\fR (\*(C+ and Objective\-\*(C+ only)" 4
3144 .IX Item "-Wno-terminate ( and Objective- only)"
3145 Disable the warning about a throw-expression that will immediately
3146 result in a call to \f(CW\*(C`terminate\*(C'\fR.
3147 .SS "Options Controlling Objective-C and Objective\-\*(C+ Dialects"
3148 .IX Subsection "Options Controlling Objective-C and Objective- Dialects"
3149 (\s-1NOTE:\s0 This manual does not describe the Objective-C and Objective\-\*(C+
3150 languages themselves.
3151 .PP
3152 This section describes the command-line options that are only meaningful
3153 for Objective-C and Objective\-\*(C+ programs.  You can also use most of
3154 the language-independent \s-1GNU\s0 compiler options.
3155 For example, you might compile a file \fIsome_class.m\fR like this:
3156 .PP
3157 .Vb 1
3158 \&        gcc \-g \-fgnu\-runtime \-O \-c some_class.m
3159 .Ve
3160 .PP
3161 In this example, \fB\-fgnu\-runtime\fR is an option meant only for
3162 Objective-C and Objective\-\*(C+ programs; you can use the other options with
3163 any language supported by \s-1GCC.\s0
3164 .PP
3165 Note that since Objective-C is an extension of the C language, Objective-C
3166 compilations may also use options specific to the C front-end (e.g.,
3167 \&\fB\-Wtraditional\fR).  Similarly, Objective\-\*(C+ compilations may use
3168 \&\*(C+\-specific options (e.g., \fB\-Wabi\fR).
3169 .PP
3170 Here is a list of options that are \fIonly\fR for compiling Objective-C
3171 and Objective\-\*(C+ programs:
3172 .IP "\fB\-fconstant\-string\-class=\fR\fIclass-name\fR" 4
3173 .IX Item "-fconstant-string-class=class-name"
3174 Use \fIclass-name\fR as the name of the class to instantiate for each
3175 literal string specified with the syntax \f(CW\*(C`@"..."\*(C'\fR.  The default
3176 class name is \f(CW\*(C`NXConstantString\*(C'\fR if the \s-1GNU\s0 runtime is being used, and
3177 \&\f(CW\*(C`NSConstantString\*(C'\fR if the NeXT runtime is being used (see below).  The
3178 \&\fB\-fconstant\-cfstrings\fR option, if also present, overrides the
3179 \&\fB\-fconstant\-string\-class\fR setting and cause \f(CW\*(C`@"..."\*(C'\fR literals
3180 to be laid out as constant CoreFoundation strings.
3181 .IP "\fB\-fgnu\-runtime\fR" 4
3182 .IX Item "-fgnu-runtime"
3183 Generate object code compatible with the standard \s-1GNU\s0 Objective-C
3184 runtime.  This is the default for most types of systems.
3185 .IP "\fB\-fnext\-runtime\fR" 4
3186 .IX Item "-fnext-runtime"
3187 Generate output compatible with the NeXT runtime.  This is the default
3188 for NeXT-based systems, including Darwin and Mac \s-1OS X.\s0  The macro
3189 \&\f(CW\*(C`_\|_NEXT_RUNTIME_\|_\*(C'\fR is predefined if (and only if) this option is
3190 used.
3191 .IP "\fB\-fno\-nil\-receivers\fR" 4
3192 .IX Item "-fno-nil-receivers"
3193 Assume that all Objective-C message dispatches (\f(CW\*(C`[receiver
3194 message:arg]\*(C'\fR) in this translation unit ensure that the receiver is
3195 not \f(CW\*(C`nil\*(C'\fR.  This allows for more efficient entry points in the
3196 runtime to be used.  This option is only available in conjunction with
3197 the NeXT runtime and \s-1ABI\s0 version 0 or 1.
3198 .IP "\fB\-fobjc\-abi\-version=\fR\fIn\fR" 4
3199 .IX Item "-fobjc-abi-version=n"
3200 Use version \fIn\fR of the Objective-C \s-1ABI\s0 for the selected runtime.
3201 This option is currently supported only for the NeXT runtime.  In that
3202 case, Version 0 is the traditional (32\-bit) \s-1ABI\s0 without support for
3203 properties and other Objective-C 2.0 additions.  Version 1 is the
3204 traditional (32\-bit) \s-1ABI\s0 with support for properties and other
3205 Objective-C 2.0 additions.  Version 2 is the modern (64\-bit) \s-1ABI.\s0  If
3206 nothing is specified, the default is Version 0 on 32\-bit target
3207 machines, and Version 2 on 64\-bit target machines.
3208 .IP "\fB\-fobjc\-call\-cxx\-cdtors\fR" 4
3209 .IX Item "-fobjc-call-cxx-cdtors"
3210 For each Objective-C class, check if any of its instance variables is a
3211 \&\*(C+ object with a non-trivial default constructor.  If so, synthesize a
3212 special \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR instance method which runs
3213 non-trivial default constructors on any such instance variables, in order,
3214 and then return \f(CW\*(C`self\*(C'\fR.  Similarly, check if any instance variable
3215 is a \*(C+ object with a non-trivial destructor, and if so, synthesize a
3216 special \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR method which runs
3217 all such default destructors, in reverse order.
3218 .Sp
3219 The \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR and \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR
3220 methods thusly generated only operate on instance variables
3221 declared in the current Objective-C class, and not those inherited
3222 from superclasses.  It is the responsibility of the Objective-C
3223 runtime to invoke all such methods in an object's inheritance
3224 hierarchy.  The \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR methods are invoked
3225 by the runtime immediately after a new object instance is allocated;
3226 the \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods are invoked immediately
3227 before the runtime deallocates an object instance.
3228 .Sp
3229 As of this writing, only the NeXT runtime on Mac \s-1OS X 10.4\s0 and later has
3230 support for invoking the \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR and
3231 \&\f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods.
3232 .IP "\fB\-fobjc\-direct\-dispatch\fR" 4
3233 .IX Item "-fobjc-direct-dispatch"
3234 Allow fast jumps to the message dispatcher.  On Darwin this is
3235 accomplished via the comm page.
3236 .IP "\fB\-fobjc\-exceptions\fR" 4
3237 .IX Item "-fobjc-exceptions"
3238 Enable syntactic support for structured exception handling in
3239 Objective-C, similar to what is offered by \*(C+.  This option
3240 is required to use the Objective-C keywords \f(CW@try\fR,
3241 \&\f(CW@throw\fR, \f(CW@catch\fR, \f(CW@finally\fR and
3242 \&\f(CW@synchronized\fR.  This option is available with both the \s-1GNU\s0
3243 runtime and the NeXT runtime (but not available in conjunction with
3244 the NeXT runtime on Mac \s-1OS X 10.2\s0 and earlier).
3245 .IP "\fB\-fobjc\-gc\fR" 4
3246 .IX Item "-fobjc-gc"
3247 Enable garbage collection (\s-1GC\s0) in Objective-C and Objective\-\*(C+
3248 programs.  This option is only available with the NeXT runtime; the
3249 \&\s-1GNU\s0 runtime has a different garbage collection implementation that
3250 does not require special compiler flags.
3251 .IP "\fB\-fobjc\-nilcheck\fR" 4
3252 .IX Item "-fobjc-nilcheck"
3253 For the NeXT runtime with version 2 of the \s-1ABI,\s0 check for a nil
3254 receiver in method invocations before doing the actual method call.
3255 This is the default and can be disabled using
3256 \&\fB\-fno\-objc\-nilcheck\fR.  Class methods and super calls are never
3257 checked for nil in this way no matter what this flag is set to.
3258 Currently this flag does nothing when the \s-1GNU\s0 runtime, or an older
3259 version of the NeXT runtime \s-1ABI,\s0 is used.
3260 .IP "\fB\-fobjc\-std=objc1\fR" 4
3261 .IX Item "-fobjc-std=objc1"
3262 Conform to the language syntax of Objective-C 1.0, the language
3263 recognized by \s-1GCC 4.0.\s0  This only affects the Objective-C additions to
3264 the C/\*(C+ language; it does not affect conformance to C/\*(C+ standards,
3265 which is controlled by the separate C/\*(C+ dialect option flags.  When
3266 this option is used with the Objective-C or Objective\-\*(C+ compiler,
3267 any Objective-C syntax that is not recognized by \s-1GCC 4.0\s0 is rejected.
3268 This is useful if you need to make sure that your Objective-C code can
3269 be compiled with older versions of \s-1GCC.\s0
3270 .IP "\fB\-freplace\-objc\-classes\fR" 4
3271 .IX Item "-freplace-objc-classes"
3272 Emit a special marker instructing \fB\fBld\fB\|(1)\fR not to statically link in
3273 the resulting object file, and allow \fB\fBdyld\fB\|(1)\fR to load it in at
3274 run time instead.  This is used in conjunction with the Fix-and-Continue
3275 debugging mode, where the object file in question may be recompiled and
3276 dynamically reloaded in the course of program execution, without the need
3277 to restart the program itself.  Currently, Fix-and-Continue functionality
3278 is only available in conjunction with the NeXT runtime on Mac \s-1OS X 10.3\s0
3279 and later.
3280 .IP "\fB\-fzero\-link\fR" 4
3281 .IX Item "-fzero-link"
3282 When compiling for the NeXT runtime, the compiler ordinarily replaces calls
3283 to \f(CW\*(C`objc_getClass("...")\*(C'\fR (when the name of the class is known at
3284 compile time) with static class references that get initialized at load time,
3285 which improves run-time performance.  Specifying the \fB\-fzero\-link\fR flag
3286 suppresses this behavior and causes calls to \f(CW\*(C`objc_getClass("...")\*(C'\fR
3287 to be retained.  This is useful in Zero-Link debugging mode, since it allows
3288 for individual class implementations to be modified during program execution.
3289 The \s-1GNU\s0 runtime currently always retains calls to \f(CW\*(C`objc_get_class("...")\*(C'\fR
3290 regardless of command-line options.
3291 .IP "\fB\-fno\-local\-ivars\fR" 4
3292 .IX Item "-fno-local-ivars"
3293 By default instance variables in Objective-C can be accessed as if
3294 they were local variables from within the methods of the class they're
3295 declared in.  This can lead to shadowing between instance variables
3296 and other variables declared either locally inside a class method or
3297 globally with the same name.  Specifying the \fB\-fno\-local\-ivars\fR
3298 flag disables this behavior thus avoiding variable shadowing issues.
3299 .IP "\fB\-fivar\-visibility=\fR[\fBpublic\fR|\fBprotected\fR|\fBprivate\fR|\fBpackage\fR]" 4
3300 .IX Item "-fivar-visibility=[public|protected|private|package]"
3301 Set the default instance variable visibility to the specified option
3302 so that instance variables declared outside the scope of any access
3303 modifier directives default to the specified visibility.
3304 .IP "\fB\-gen\-decls\fR" 4
3305 .IX Item "-gen-decls"
3306 Dump interface declarations for all classes seen in the source file to a
3307 file named \fI\fIsourcename\fI.decl\fR.
3308 .IP "\fB\-Wassign\-intercept\fR (Objective-C and Objective\-\*(C+ only)" 4
3309 .IX Item "-Wassign-intercept (Objective-C and Objective- only)"
3310 Warn whenever an Objective-C assignment is being intercepted by the
3311 garbage collector.
3312 .IP "\fB\-Wno\-protocol\fR (Objective-C and Objective\-\*(C+ only)" 4
3313 .IX Item "-Wno-protocol (Objective-C and Objective- only)"
3314 If a class is declared to implement a protocol, a warning is issued for
3315 every method in the protocol that is not implemented by the class.  The
3316 default behavior is to issue a warning for every method not explicitly
3317 implemented in the class, even if a method implementation is inherited
3318 from the superclass.  If you use the \fB\-Wno\-protocol\fR option, then
3319 methods inherited from the superclass are considered to be implemented,
3320 and no warning is issued for them.
3321 .IP "\fB\-Wselector\fR (Objective-C and Objective\-\*(C+ only)" 4
3322 .IX Item "-Wselector (Objective-C and Objective- only)"
3323 Warn if multiple methods of different types for the same selector are
3324 found during compilation.  The check is performed on the list of methods
3325 in the final stage of compilation.  Additionally, a check is performed
3326 for each selector appearing in a \f(CW\*(C`@selector(...)\*(C'\fR
3327 expression, and a corresponding method for that selector has been found
3328 during compilation.  Because these checks scan the method table only at
3329 the end of compilation, these warnings are not produced if the final
3330 stage of compilation is not reached, for example because an error is
3331 found during compilation, or because the \fB\-fsyntax\-only\fR option is
3332 being used.
3333 .IP "\fB\-Wstrict\-selector\-match\fR (Objective-C and Objective\-\*(C+ only)" 4
3334 .IX Item "-Wstrict-selector-match (Objective-C and Objective- only)"
3335 Warn if multiple methods with differing argument and/or return types are
3336 found for a given selector when attempting to send a message using this
3337 selector to a receiver of type \f(CW\*(C`id\*(C'\fR or \f(CW\*(C`Class\*(C'\fR.  When this flag
3338 is off (which is the default behavior), the compiler omits such warnings
3339 if any differences found are confined to types that share the same size
3340 and alignment.
3341 .IP "\fB\-Wundeclared\-selector\fR (Objective-C and Objective\-\*(C+ only)" 4
3342 .IX Item "-Wundeclared-selector (Objective-C and Objective- only)"
3343 Warn if a \f(CW\*(C`@selector(...)\*(C'\fR expression referring to an
3344 undeclared selector is found.  A selector is considered undeclared if no
3345 method with that name has been declared before the
3346 \&\f(CW\*(C`@selector(...)\*(C'\fR expression, either explicitly in an
3347 \&\f(CW@interface\fR or \f(CW@protocol\fR declaration, or implicitly in
3348 an \f(CW@implementation\fR section.  This option always performs its
3349 checks as soon as a \f(CW\*(C`@selector(...)\*(C'\fR expression is found,
3350 while \fB\-Wselector\fR only performs its checks in the final stage of
3351 compilation.  This also enforces the coding style convention
3352 that methods and selectors must be declared before being used.
3353 .IP "\fB\-print\-objc\-runtime\-info\fR" 4
3354 .IX Item "-print-objc-runtime-info"
3355 Generate C header describing the largest structure that is passed by
3356 value, if any.
3357 .SS "Options to Control Diagnostic Messages Formatting"
3358 .IX Subsection "Options to Control Diagnostic Messages Formatting"
3359 Traditionally, diagnostic messages have been formatted irrespective of
3360 the output device's aspect (e.g. its width, ...).  You can use the
3361 options described below
3362 to control the formatting algorithm for diagnostic messages, 
3363 e.g. how many characters per line, how often source location
3364 information should be reported.  Note that some language front ends may not
3365 honor these options.
3366 .IP "\fB\-fmessage\-length=\fR\fIn\fR" 4
3367 .IX Item "-fmessage-length=n"
3368 Try to format error messages so that they fit on lines of about
3369 \&\fIn\fR characters.  If \fIn\fR is zero, then no line-wrapping is
3370 done; each error message appears on a single line.  This is the
3371 default for all front ends.
3372 .IP "\fB\-fdiagnostics\-show\-location=once\fR" 4
3373 .IX Item "-fdiagnostics-show-location=once"
3374 Only meaningful in line-wrapping mode.  Instructs the diagnostic messages
3375 reporter to emit source location information \fIonce\fR; that is, in
3376 case the message is too long to fit on a single physical line and has to
3377 be wrapped, the source location won't be emitted (as prefix) again,
3378 over and over, in subsequent continuation lines.  This is the default
3379 behavior.
3380 .IP "\fB\-fdiagnostics\-show\-location=every\-line\fR" 4
3381 .IX Item "-fdiagnostics-show-location=every-line"
3382 Only meaningful in line-wrapping mode.  Instructs the diagnostic
3383 messages reporter to emit the same source location information (as
3384 prefix) for physical lines that result from the process of breaking
3385 a message which is too long to fit on a single line.
3386 .IP "\fB\-fdiagnostics\-color[=\fR\fI\s-1WHEN\s0\fR\fB]\fR" 4
3387 .IX Item "-fdiagnostics-color[=WHEN]"
3388 .PD 0
3389 .IP "\fB\-fno\-diagnostics\-color\fR" 4
3390 .IX Item "-fno-diagnostics-color"
3391 .PD
3392 Use color in diagnostics.  \fI\s-1WHEN\s0\fR is \fBnever\fR, \fBalways\fR,
3393 or \fBauto\fR.  The default depends on how the compiler has been configured,
3394 it can be any of the above \fI\s-1WHEN\s0\fR options or also \fBnever\fR
3395 if \fB\s-1GCC_COLORS\s0\fR environment variable isn't present in the environment,
3396 and \fBauto\fR otherwise.
3397 \&\fBauto\fR means to use color only when the standard error is a terminal.
3398 The forms \fB\-fdiagnostics\-color\fR and \fB\-fno\-diagnostics\-color\fR are
3399 aliases for \fB\-fdiagnostics\-color=always\fR and
3400 \&\fB\-fdiagnostics\-color=never\fR, respectively.
3401 .Sp
3402 The colors are defined by the environment variable \fB\s-1GCC_COLORS\s0\fR.
3403 Its value is a colon-separated list of capabilities and Select Graphic
3404 Rendition (\s-1SGR\s0) substrings. \s-1SGR\s0 commands are interpreted by the
3405 terminal or terminal emulator.  (See the section in the documentation
3406 of your text terminal for permitted values and their meanings as
3407 character attributes.)  These substring values are integers in decimal
3408 representation and can be concatenated with semicolons.
3409 Common values to concatenate include
3410 \&\fB1\fR for bold,
3411 \&\fB4\fR for underline,
3412 \&\fB5\fR for blink,
3413 \&\fB7\fR for inverse,
3414 \&\fB39\fR for default foreground color,
3415 \&\fB30\fR to \fB37\fR for foreground colors,
3416 \&\fB90\fR to \fB97\fR for 16\-color mode foreground colors,
3417 \&\fB38;5;0\fR to \fB38;5;255\fR
3418 for 88\-color and 256\-color modes foreground colors,
3419 \&\fB49\fR for default background color,
3420 \&\fB40\fR to \fB47\fR for background colors,
3421 \&\fB100\fR to \fB107\fR for 16\-color mode background colors,
3422 and \fB48;5;0\fR to \fB48;5;255\fR
3423 for 88\-color and 256\-color modes background colors.
3424 .Sp
3425 The default \fB\s-1GCC_COLORS\s0\fR is
3426 .Sp
3427 .Vb 4
3428 \&        error=01;31:warning=01;35:note=01;36:range1=32:range2=34:locus=01:\e
3429 \&        quote=01:fixit\-insert=32:fixit\-delete=31:\e
3430 \&        diff\-filename=01:diff\-hunk=32:diff\-delete=31:diff\-insert=32:\e
3431 \&        type\-diff=01;32
3432 .Ve
3433 .Sp
3434 where \fB01;31\fR is bold red, \fB01;35\fR is bold magenta,
3435 \&\fB01;36\fR is bold cyan, \fB32\fR is green, \fB34\fR is blue,
3436 \&\fB01\fR is bold, and \fB31\fR is red.
3437 Setting \fB\s-1GCC_COLORS\s0\fR to the empty string disables colors.
3438 Supported capabilities are as follows.
3439 .RS 4
3440 .ie n .IP """error=""" 4
3441 .el .IP "\f(CWerror=\fR" 4
3442 .IX Item "error="
3443 \&\s-1SGR\s0 substring for error: markers.
3444 .ie n .IP """warning=""" 4
3445 .el .IP "\f(CWwarning=\fR" 4
3446 .IX Item "warning="
3447 \&\s-1SGR\s0 substring for warning: markers.
3448 .ie n .IP """note=""" 4
3449 .el .IP "\f(CWnote=\fR" 4
3450 .IX Item "note="
3451 \&\s-1SGR\s0 substring for note: markers.
3452 .ie n .IP """range1=""" 4
3453 .el .IP "\f(CWrange1=\fR" 4
3454 .IX Item "range1="
3455 \&\s-1SGR\s0 substring for first additional range.
3456 .ie n .IP """range2=""" 4
3457 .el .IP "\f(CWrange2=\fR" 4
3458 .IX Item "range2="
3459 \&\s-1SGR\s0 substring for second additional range.
3460 .ie n .IP """locus=""" 4
3461 .el .IP "\f(CWlocus=\fR" 4
3462 .IX Item "locus="
3463 \&\s-1SGR\s0 substring for location information, \fBfile:line\fR or
3464 \&\fBfile:line:column\fR etc.
3465 .ie n .IP """quote=""" 4
3466 .el .IP "\f(CWquote=\fR" 4
3467 .IX Item "quote="
3468 \&\s-1SGR\s0 substring for information printed within quotes.
3469 .ie n .IP """fixit\-insert=""" 4
3470 .el .IP "\f(CWfixit\-insert=\fR" 4
3471 .IX Item "fixit-insert="
3472 \&\s-1SGR\s0 substring for fix-it hints suggesting text to
3473 be inserted or replaced.
3474 .ie n .IP """fixit\-delete=""" 4
3475 .el .IP "\f(CWfixit\-delete=\fR" 4
3476 .IX Item "fixit-delete="
3477 \&\s-1SGR\s0 substring for fix-it hints suggesting text to
3478 be deleted.
3479 .ie n .IP """diff\-filename=""" 4
3480 .el .IP "\f(CWdiff\-filename=\fR" 4
3481 .IX Item "diff-filename="
3482 \&\s-1SGR\s0 substring for filename headers within generated patches.
3483 .ie n .IP """diff\-hunk=""" 4
3484 .el .IP "\f(CWdiff\-hunk=\fR" 4
3485 .IX Item "diff-hunk="
3486 \&\s-1SGR\s0 substring for the starts of hunks within generated patches.
3487 .ie n .IP """diff\-delete=""" 4
3488 .el .IP "\f(CWdiff\-delete=\fR" 4
3489 .IX Item "diff-delete="
3490 \&\s-1SGR\s0 substring for deleted lines within generated patches.
3491 .ie n .IP """diff\-insert=""" 4
3492 .el .IP "\f(CWdiff\-insert=\fR" 4
3493 .IX Item "diff-insert="
3494 \&\s-1SGR\s0 substring for inserted lines within generated patches.
3495 .ie n .IP """type\-diff=""" 4
3496 .el .IP "\f(CWtype\-diff=\fR" 4
3497 .IX Item "type-diff="
3498 \&\s-1SGR\s0 substring for highlighting mismatching types within template
3499 arguments in the \*(C+ frontend.
3500 .RE
3501 .RS 4
3502 .RE
3503 .IP "\fB\-fno\-diagnostics\-show\-option\fR" 4
3504 .IX Item "-fno-diagnostics-show-option"
3505 By default, each diagnostic emitted includes text indicating the
3506 command-line option that directly controls the diagnostic (if such an
3507 option is known to the diagnostic machinery).  Specifying the
3508 \&\fB\-fno\-diagnostics\-show\-option\fR flag suppresses that behavior.
3509 .IP "\fB\-fno\-diagnostics\-show\-caret\fR" 4
3510 .IX Item "-fno-diagnostics-show-caret"
3511 By default, each diagnostic emitted includes the original source line
3512 and a caret \fB^\fR indicating the column.  This option suppresses this
3513 information.  The source line is truncated to \fIn\fR characters, if
3514 the \fB\-fmessage\-length=n\fR option is given.  When the output is done
3515 to the terminal, the width is limited to the width given by the
3516 \&\fB\s-1COLUMNS\s0\fR environment variable or, if not set, to the terminal width.
3517 .IP "\fB\-fdiagnostics\-parseable\-fixits\fR" 4
3518 .IX Item "-fdiagnostics-parseable-fixits"
3519 Emit fix-it hints in a machine-parseable format, suitable for consumption
3520 by IDEs.  For each fix-it, a line will be printed after the relevant
3521 diagnostic, starting with the string \*(L"fix-it:\*(R".  For example:
3522 .Sp
3523 .Vb 1
3524 \&        fix\-it:"test.c":{45:3\-45:21}:"gtk_widget_show_all"
3525 .Ve
3526 .Sp
3527 The location is expressed as a half-open range, expressed as a count of
3528 bytes, starting at byte 1 for the initial column.  In the above example,
3529 bytes 3 through 20 of line 45 of \*(L"test.c\*(R" are to be replaced with the
3530 given string:
3531 .Sp
3532 .Vb 5
3533 \&        00000000011111111112222222222
3534 \&        12345678901234567890123456789
3535 \&          gtk_widget_showall (dlg);
3536 \&          ^^^^^^^^^^^^^^^^^^
3537 \&          gtk_widget_show_all
3538 .Ve
3539 .Sp
3540 The filename and replacement string escape backslash as \*(L"\e\e\*(R", tab as \*(L"\et\*(R",
3541 newline as \*(L"\en\*(R", double quotes as \*(L"\e\*(R"\*(L", non-printable characters as octal
3542 (e.g. vertical tab as \*(R"\e013").
3543 .Sp
3544 An empty replacement string indicates that the given range is to be removed.
3545 An empty range (e.g. \*(L"45:3\-45:3\*(R") indicates that the string is to
3546 be inserted at the given position.
3547 .IP "\fB\-fdiagnostics\-generate\-patch\fR" 4
3548 .IX Item "-fdiagnostics-generate-patch"
3549 Print fix-it hints to stderr in unified diff format, after any diagnostics
3550 are printed.  For example:
3551 .Sp
3552 .Vb 3
3553 \&        \-\-\- test.c
3554 \&        +++ test.c
3555 \&        @ \-42,5 +42,5 @
3556 \&        
3557 \&         void show_cb(GtkDialog *dlg)
3558 \&         {
3559 \&        \-  gtk_widget_showall(dlg);
3560 \&        +  gtk_widget_show_all(dlg);
3561 \&         }
3562 .Ve
3563 .Sp
3564 The diff may or may not be colorized, following the same rules
3565 as for diagnostics (see \fB\-fdiagnostics\-color\fR).
3566 .IP "\fB\-fdiagnostics\-show\-template\-tree\fR" 4
3567 .IX Item "-fdiagnostics-show-template-tree"
3568 In the \*(C+ frontend, when printing diagnostics showing mismatching
3569 template types, such as:
3570 .Sp
3571 .Vb 2
3572 \&          could not convert \*(Aqstd::map<int, std::vector<double> >()\*(Aq
3573 \&            from \*(Aqmap<[...],vector<double>>\*(Aq to \*(Aqmap<[...],vector<float>>
3574 .Ve
3575 .Sp
3576 the \fB\-fdiagnostics\-show\-template\-tree\fR flag enables printing a
3577 tree-like structure showing the common and differing parts of the types,
3578 such as:
3579 .Sp
3580 .Vb 4
3581 \&          map<
3582 \&            [...],
3583 \&            vector<
3584 \&              [double != float]>>
3585 .Ve
3586 .Sp
3587 The parts that differ are highlighted with color (\*(L"double\*(R" and
3588 \&\*(L"float\*(R" in this case).
3589 .IP "\fB\-fno\-elide\-type\fR" 4
3590 .IX Item "-fno-elide-type"
3591 By default when the \*(C+ frontend prints diagnostics showing mismatching
3592 template types, common parts of the types are printed as \*(L"[...]\*(R" to
3593 simplify the error message.  For example:
3594 .Sp
3595 .Vb 2
3596 \&          could not convert \*(Aqstd::map<int, std::vector<double> >()\*(Aq
3597 \&            from \*(Aqmap<[...],vector<double>>\*(Aq to \*(Aqmap<[...],vector<float>>
3598 .Ve
3599 .Sp
3600 Specifying the \fB\-fno\-elide\-type\fR flag suppresses that behavior.
3601 This flag also affects the output of the
3602 \&\fB\-fdiagnostics\-show\-template\-tree\fR flag.
3603 .IP "\fB\-fno\-show\-column\fR" 4
3604 .IX Item "-fno-show-column"
3605 Do not print column numbers in diagnostics.  This may be necessary if
3606 diagnostics are being scanned by a program that does not understand the
3607 column numbers, such as \fBdejagnu\fR.
3608 .SS "Options to Request or Suppress Warnings"
3609 .IX Subsection "Options to Request or Suppress Warnings"
3610 Warnings are diagnostic messages that report constructions that
3611 are not inherently erroneous but that are risky or suggest there
3612 may have been an error.
3613 .PP
3614 The following language-independent options do not enable specific
3615 warnings but control the kinds of diagnostics produced by \s-1GCC.\s0
3616 .IP "\fB\-fsyntax\-only\fR" 4
3617 .IX Item "-fsyntax-only"
3618 Check the code for syntax errors, but don't do anything beyond that.
3619 .IP "\fB\-fmax\-errors=\fR\fIn\fR" 4
3620 .IX Item "-fmax-errors=n"
3621 Limits the maximum number of error messages to \fIn\fR, at which point
3622 \&\s-1GCC\s0 bails out rather than attempting to continue processing the source
3623 code.  If \fIn\fR is 0 (the default), there is no limit on the number
3624 of error messages produced.  If \fB\-Wfatal\-errors\fR is also
3625 specified, then \fB\-Wfatal\-errors\fR takes precedence over this
3626 option.
3627 .IP "\fB\-w\fR" 4
3628 .IX Item "-w"
3629 Inhibit all warning messages.
3630 .IP "\fB\-Werror\fR" 4
3631 .IX Item "-Werror"
3632 Make all warnings into errors.
3633 .IP "\fB\-Werror=\fR" 4
3634 .IX Item "-Werror="
3635 Make the specified warning into an error.  The specifier for a warning
3636 is appended; for example \fB\-Werror=switch\fR turns the warnings
3637 controlled by \fB\-Wswitch\fR into errors.  This switch takes a
3638 negative form, to be used to negate \fB\-Werror\fR for specific
3639 warnings; for example \fB\-Wno\-error=switch\fR makes
3640 \&\fB\-Wswitch\fR warnings not be errors, even when \fB\-Werror\fR
3641 is in effect.
3642 .Sp
3643 The warning message for each controllable warning includes the
3644 option that controls the warning.  That option can then be used with
3645 \&\fB\-Werror=\fR and \fB\-Wno\-error=\fR as described above.
3646 (Printing of the option in the warning message can be disabled using the
3647 \&\fB\-fno\-diagnostics\-show\-option\fR flag.)
3648 .Sp
3649 Note that specifying \fB\-Werror=\fR\fIfoo\fR automatically implies
3650 \&\fB\-W\fR\fIfoo\fR.  However, \fB\-Wno\-error=\fR\fIfoo\fR does not
3651 imply anything.
3652 .IP "\fB\-Wfatal\-errors\fR" 4
3653 .IX Item "-Wfatal-errors"
3654 This option causes the compiler to abort compilation on the first error
3655 occurred rather than trying to keep going and printing further error
3656 messages.
3657 .PP
3658 You can request many specific warnings with options beginning with
3659 \&\fB\-W\fR, for example \fB\-Wimplicit\fR to request warnings on
3660 implicit declarations.  Each of these specific warning options also
3661 has a negative form beginning \fB\-Wno\-\fR to turn off warnings; for
3662 example, \fB\-Wno\-implicit\fR.  This manual lists only one of the
3663 two forms, whichever is not the default.  For further
3664 language-specific options also refer to \fB\*(C+ Dialect Options\fR and
3665 \&\fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
3666 .PP
3667 Some options, such as \fB\-Wall\fR and \fB\-Wextra\fR, turn on other
3668 options, such as \fB\-Wunused\fR, which may turn on further options,
3669 such as \fB\-Wunused\-value\fR. The combined effect of positive and
3670 negative forms is that more specific options have priority over less
3671 specific ones, independently of their position in the command-line. For
3672 options of the same specificity, the last one takes effect. Options
3673 enabled or disabled via pragmas take effect
3674 as if they appeared at the end of the command-line.
3675 .PP
3676 When an unrecognized warning option is requested (e.g.,
3677 \&\fB\-Wunknown\-warning\fR), \s-1GCC\s0 emits a diagnostic stating
3678 that the option is not recognized.  However, if the \fB\-Wno\-\fR form
3679 is used, the behavior is slightly different: no diagnostic is
3680 produced for \fB\-Wno\-unknown\-warning\fR unless other diagnostics
3681 are being produced.  This allows the use of new \fB\-Wno\-\fR options
3682 with old compilers, but if something goes wrong, the compiler
3683 warns that an unrecognized option is present.
3684 .IP "\fB\-Wpedantic\fR" 4
3685 .IX Item "-Wpedantic"
3686 .PD 0
3687 .IP "\fB\-pedantic\fR" 4
3688 .IX Item "-pedantic"
3689 .PD
3690 Issue all the warnings demanded by strict \s-1ISO C\s0 and \s-1ISO \*(C+\s0;
3691 reject all programs that use forbidden extensions, and some other
3692 programs that do not follow \s-1ISO C\s0 and \s-1ISO \*(C+.\s0  For \s-1ISO C,\s0 follows the
3693 version of the \s-1ISO C\s0 standard specified by any \fB\-std\fR option used.
3694 .Sp
3695 Valid \s-1ISO C\s0 and \s-1ISO \*(C+\s0 programs should compile properly with or without
3696 this option (though a rare few require \fB\-ansi\fR or a
3697 \&\fB\-std\fR option specifying the required version of \s-1ISO C\s0).  However,
3698 without this option, certain \s-1GNU\s0 extensions and traditional C and \*(C+
3699 features are supported as well.  With this option, they are rejected.
3700 .Sp
3701 \&\fB\-Wpedantic\fR does not cause warning messages for use of the
3702 alternate keywords whose names begin and end with \fB_\|_\fR.  Pedantic
3703 warnings are also disabled in the expression that follows
3704 \&\f(CW\*(C`_\|_extension_\|_\*(C'\fR.  However, only system header files should use
3705 these escape routes; application programs should avoid them.
3706 .Sp
3707 Some users try to use \fB\-Wpedantic\fR to check programs for strict \s-1ISO
3708 C\s0 conformance.  They soon find that it does not do quite what they want:
3709 it finds some non-ISO practices, but not all\-\-\-only those for which
3710 \&\s-1ISO C\s0 \fIrequires\fR a diagnostic, and some others for which
3711 diagnostics have been added.
3712 .Sp
3713 A feature to report any failure to conform to \s-1ISO C\s0 might be useful in
3714 some instances, but would require considerable additional work and would
3715 be quite different from \fB\-Wpedantic\fR.  We don't have plans to
3716 support such a feature in the near future.
3717 .Sp
3718 Where the standard specified with \fB\-std\fR represents a \s-1GNU\s0
3719 extended dialect of C, such as \fBgnu90\fR or \fBgnu99\fR, there is a
3720 corresponding \fIbase standard\fR, the version of \s-1ISO C\s0 on which the \s-1GNU\s0
3721 extended dialect is based.  Warnings from \fB\-Wpedantic\fR are given
3722 where they are required by the base standard.  (It does not make sense
3723 for such warnings to be given only for features not in the specified \s-1GNU
3724 C\s0 dialect, since by definition the \s-1GNU\s0 dialects of C include all
3725 features the compiler supports with the given option, and there would be
3726 nothing to warn about.)
3727 .IP "\fB\-pedantic\-errors\fR" 4
3728 .IX Item "-pedantic-errors"
3729 Give an error whenever the \fIbase standard\fR (see \fB\-Wpedantic\fR)
3730 requires a diagnostic, in some cases where there is undefined behavior
3731 at compile-time and in some other cases that do not prevent compilation
3732 of programs that are valid according to the standard. This is not
3733 equivalent to \fB\-Werror=pedantic\fR, since there are errors enabled
3734 by this option and not enabled by the latter and vice versa.
3735 .IP "\fB\-Wall\fR" 4
3736 .IX Item "-Wall"
3737 This enables all the warnings about constructions that some users
3738 consider questionable, and that are easy to avoid (or modify to
3739 prevent the warning), even in conjunction with macros.  This also
3740 enables some language-specific warnings described in \fB\*(C+ Dialect
3741 Options\fR and \fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
3742 .Sp
3743 \&\fB\-Wall\fR turns on the following warning flags:
3744 .Sp
3745 \&\fB\-Waddress   
3746 \&\-Warray\-bounds=1\fR (only with\fB \fR\fB\-O2\fR)  
3747 \&\fB\-Wbool\-compare  
3748 \&\-Wbool\-operation  
3749 \&\-Wc++11\-compat  \-Wc++14\-compat  
3750 \&\-Wcatch\-value\fR (\*(C+ and Objective\-\*(C+ only)  
3751 \&\fB\-Wchar\-subscripts  
3752 \&\-Wcomment  
3753 \&\-Wduplicate\-decl\-specifier\fR (C and Objective-C only) 
3754 \&\fB\-Wenum\-compare\fR (in C/ObjC; this is on by default in \*(C+) 
3755 \&\fB\-Wformat   
3756 \&\-Wint\-in\-bool\-context  
3757 \&\-Wimplicit\fR (C and Objective-C only) 
3758 \&\fB\-Wimplicit\-int\fR (C and Objective-C only) 
3759 \&\fB\-Wimplicit\-function\-declaration\fR (C and Objective-C only) 
3760 \&\fB\-Winit\-self\fR (only for \*(C+) 
3761 \&\fB\-Wlogical\-not\-parentheses 
3762 \&\-Wmain\fR (only for C/ObjC and unless\fB \fR\fB\-ffreestanding\fR)  
3763 \&\fB\-Wmaybe\-uninitialized 
3764 \&\-Wmemset\-elt\-size 
3765 \&\-Wmemset\-transposed\-args 
3766 \&\-Wmisleading\-indentation\fR (only for C/\*(C+) 
3767 \&\fB\-Wmissing\-attributes 
3768 \&\-Wmissing\-braces\fR (only for C/ObjC) 
3769 \&\fB\-Wmultistatement\-macros  
3770 \&\-Wnarrowing\fR (only for \*(C+)  
3771 \&\fB\-Wnonnull  
3772 \&\-Wnonnull\-compare  
3773 \&\-Wopenmp\-simd 
3774 \&\-Wparentheses  
3775 \&\-Wpointer\-sign  
3776 \&\-Wreorder   
3777 \&\-Wrestrict   
3778 \&\-Wreturn\-type  
3779 \&\-Wsequence\-point  
3780 \&\-Wsign\-compare\fR (only in \*(C+)  
3781 \&\fB\-Wsizeof\-pointer\-div 
3782 \&\-Wsizeof\-pointer\-memaccess 
3783 \&\-Wstrict\-aliasing  
3784 \&\-Wstrict\-overflow=1  
3785 \&\-Wstringop\-truncation  
3786 \&\-Wswitch  
3787 \&\-Wtautological\-compare  
3788 \&\-Wtrigraphs  
3789 \&\-Wuninitialized  
3790 \&\-Wunknown\-pragmas  
3791 \&\-Wunused\-function  
3792 \&\-Wunused\-label     
3793 \&\-Wunused\-value     
3794 \&\-Wunused\-variable  
3795 \&\-Wvolatile\-register\-var\fR
3796 .Sp
3797 Note that some warning flags are not implied by \fB\-Wall\fR.  Some of
3798 them warn about constructions that users generally do not consider
3799 questionable, but which occasionally you might wish to check for;
3800 others warn about constructions that are necessary or hard to avoid in
3801 some cases, and there is no simple way to modify the code to suppress
3802 the warning. Some of them are enabled by \fB\-Wextra\fR but many of
3803 them must be enabled individually.
3804 .IP "\fB\-Wextra\fR" 4
3805 .IX Item "-Wextra"
3806 This enables some extra warning flags that are not enabled by
3807 \&\fB\-Wall\fR. (This option used to be called \fB\-W\fR.  The older
3808 name is still supported, but the newer name is more descriptive.)
3809 .Sp
3810 \&\fB\-Wclobbered  
3811 \&\-Wcast\-function\-type  
3812 \&\-Wempty\-body  
3813 \&\-Wignored\-qualifiers 
3814 \&\-Wimplicit\-fallthrough=3 
3815 \&\-Wmissing\-field\-initializers  
3816 \&\-Wmissing\-parameter\-type\fR (C only)  
3817 \&\fB\-Wold\-style\-declaration\fR (C only)  
3818 \&\fB\-Woverride\-init  
3819 \&\-Wsign\-compare\fR (C only) 
3820 \&\fB\-Wtype\-limits  
3821 \&\-Wuninitialized  
3822 \&\-Wshift\-negative\-value\fR (in \*(C+03 and in C99 and newer)  
3823 \&\fB\-Wunused\-parameter\fR (only with\fB \fR\fB\-Wunused\fR\fB \fRor\fB \fR\fB\-Wall\fR) 
3824 \&\fB\-Wunused\-but\-set\-parameter\fR (only with\fB \fR\fB\-Wunused\fR\fB \fRor\fB \fR\fB\-Wall\fR)  \fB \fR
3825 .Sp
3826 The option \fB\-Wextra\fR also prints warning messages for the
3827 following cases:
3828 .RS 4
3829 .IP "*" 4
3830 A pointer is compared against integer zero with \f(CW\*(C`<\*(C'\fR, \f(CW\*(C`<=\*(C'\fR,
3831 \&\f(CW\*(C`>\*(C'\fR, or \f(CW\*(C`>=\*(C'\fR.
3832 .IP "*" 4
3833 (\*(C+ only) An enumerator and a non-enumerator both appear in a
3834 conditional expression.
3835 .IP "*" 4
3836 (\*(C+ only) Ambiguous virtual bases.
3837 .IP "*" 4
3838 (\*(C+ only) Subscripting an array that has been declared \f(CW\*(C`register\*(C'\fR.
3839 .IP "*" 4
3840 (\*(C+ only) Taking the address of a variable that has been declared
3841 \&\f(CW\*(C`register\*(C'\fR.
3842 .IP "*" 4
3843 (\*(C+ only) A base class is not initialized in the copy constructor
3844 of a derived class.
3845 .RE
3846 .RS 4
3847 .RE
3848 .IP "\fB\-Wchar\-subscripts\fR" 4
3849 .IX Item "-Wchar-subscripts"
3850 Warn if an array subscript has type \f(CW\*(C`char\*(C'\fR.  This is a common cause
3851 of error, as programmers often forget that this type is signed on some
3852 machines.
3853 This warning is enabled by \fB\-Wall\fR.
3854 .IP "\fB\-Wchkp\fR" 4
3855 .IX Item "-Wchkp"
3856 Warn about an invalid memory access that is found by Pointer Bounds Checker
3857 (\fB\-fcheck\-pointer\-bounds\fR).
3858 .IP "\fB\-Wno\-coverage\-mismatch\fR" 4
3859 .IX Item "-Wno-coverage-mismatch"
3860 Warn if feedback profiles do not match when using the
3861 \&\fB\-fprofile\-use\fR option.
3862 If a source file is changed between compiling with \fB\-fprofile\-gen\fR and
3863 with \fB\-fprofile\-use\fR, the files with the profile feedback can fail
3864 to match the source file and \s-1GCC\s0 cannot use the profile feedback
3865 information.  By default, this warning is enabled and is treated as an
3866 error.  \fB\-Wno\-coverage\-mismatch\fR can be used to disable the
3867 warning or \fB\-Wno\-error=coverage\-mismatch\fR can be used to
3868 disable the error.  Disabling the error for this warning can result in
3869 poorly optimized code and is useful only in the
3870 case of very minor changes such as bug fixes to an existing code-base.
3871 Completely disabling the warning is not recommended.
3872 .IP "\fB\-Wno\-cpp\fR" 4
3873 .IX Item "-Wno-cpp"
3874 (C, Objective-C, \*(C+, Objective\-\*(C+ and Fortran only)
3875 .Sp
3876 Suppress warning messages emitted by \f(CW\*(C`#warning\*(C'\fR directives.
3877 .IP "\fB\-Wdouble\-promotion\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
3878 .IX Item "-Wdouble-promotion (C, , Objective-C and Objective- only)"
3879 Give a warning when a value of type \f(CW\*(C`float\*(C'\fR is implicitly
3880 promoted to \f(CW\*(C`double\*(C'\fR.  CPUs with a 32\-bit \*(L"single-precision\*(R"
3881 floating-point unit implement \f(CW\*(C`float\*(C'\fR in hardware, but emulate
3882 \&\f(CW\*(C`double\*(C'\fR in software.  On such a machine, doing computations
3883 using \f(CW\*(C`double\*(C'\fR values is much more expensive because of the
3884 overhead required for software emulation.
3885 .Sp
3886 It is easy to accidentally do computations with \f(CW\*(C`double\*(C'\fR because
3887 floating-point literals are implicitly of type \f(CW\*(C`double\*(C'\fR.  For
3888 example, in:
3889 .Sp
3890 .Vb 4
3891 \&        float area(float radius)
3892 \&        {
3893 \&           return 3.14159 * radius * radius;
3894 \&        }
3895 .Ve
3896 .Sp
3897 the compiler performs the entire computation with \f(CW\*(C`double\*(C'\fR
3898 because the floating-point literal is a \f(CW\*(C`double\*(C'\fR.
3899 .IP "\fB\-Wduplicate\-decl\-specifier\fR (C and Objective-C only)" 4
3900 .IX Item "-Wduplicate-decl-specifier (C and Objective-C only)"
3901 Warn if a declaration has duplicate \f(CW\*(C`const\*(C'\fR, \f(CW\*(C`volatile\*(C'\fR,
3902 \&\f(CW\*(C`restrict\*(C'\fR or \f(CW\*(C`_Atomic\*(C'\fR specifier.  This warning is enabled by
3903 \&\fB\-Wall\fR.
3904 .IP "\fB\-Wformat\fR" 4
3905 .IX Item "-Wformat"
3906 .PD 0
3907 .IP "\fB\-Wformat=\fR\fIn\fR" 4
3908 .IX Item "-Wformat=n"
3909 .PD
3910 Check calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR, etc., to make sure that
3911 the arguments supplied have types appropriate to the format string
3912 specified, and that the conversions specified in the format string make
3913 sense.  This includes standard functions, and others specified by format
3914 attributes, in the \f(CW\*(C`printf\*(C'\fR,
3915 \&\f(CW\*(C`scanf\*(C'\fR, \f(CW\*(C`strftime\*(C'\fR and \f(CW\*(C`strfmon\*(C'\fR (an X/Open extension,
3916 not in the C standard) families (or other target-specific families).
3917 Which functions are checked without format attributes having been
3918 specified depends on the standard version selected, and such checks of
3919 functions without the attribute specified are disabled by
3920 \&\fB\-ffreestanding\fR or \fB\-fno\-builtin\fR.
3921 .Sp
3922 The formats are checked against the format features supported by \s-1GNU\s0
3923 libc version 2.2.  These include all \s-1ISO C90\s0 and C99 features, as well
3924 as features from the Single Unix Specification and some \s-1BSD\s0 and \s-1GNU\s0
3925 extensions.  Other library implementations may not support all these
3926 features; \s-1GCC\s0 does not support warning about features that go beyond a
3927 particular library's limitations.  However, if \fB\-Wpedantic\fR is used
3928 with \fB\-Wformat\fR, warnings are given about format features not
3929 in the selected standard version (but not for \f(CW\*(C`strfmon\*(C'\fR formats,
3930 since those are not in any version of the C standard).
3931 .RS 4
3932 .IP "\fB\-Wformat=1\fR" 4
3933 .IX Item "-Wformat=1"
3934 .PD 0
3935 .IP "\fB\-Wformat\fR" 4
3936 .IX Item "-Wformat"
3937 .PD
3938 Option \fB\-Wformat\fR is equivalent to \fB\-Wformat=1\fR, and
3939 \&\fB\-Wno\-format\fR is equivalent to \fB\-Wformat=0\fR.  Since
3940 \&\fB\-Wformat\fR also checks for null format arguments for several
3941 functions, \fB\-Wformat\fR also implies \fB\-Wnonnull\fR.  Some
3942 aspects of this level of format checking can be disabled by the
3943 options: \fB\-Wno\-format\-contains\-nul\fR,
3944 \&\fB\-Wno\-format\-extra\-args\fR, and \fB\-Wno\-format\-zero\-length\fR.
3945 \&\fB\-Wformat\fR is enabled by \fB\-Wall\fR.
3946 .IP "\fB\-Wno\-format\-contains\-nul\fR" 4
3947 .IX Item "-Wno-format-contains-nul"
3948 If \fB\-Wformat\fR is specified, do not warn about format strings that
3949 contain \s-1NUL\s0 bytes.
3950 .IP "\fB\-Wno\-format\-extra\-args\fR" 4
3951 .IX Item "-Wno-format-extra-args"
3952 If \fB\-Wformat\fR is specified, do not warn about excess arguments to a
3953 \&\f(CW\*(C`printf\*(C'\fR or \f(CW\*(C`scanf\*(C'\fR format function.  The C standard specifies
3954 that such arguments are ignored.
3955 .Sp
3956 Where the unused arguments lie between used arguments that are
3957 specified with \fB$\fR operand number specifications, normally
3958 warnings are still given, since the implementation could not know what
3959 type to pass to \f(CW\*(C`va_arg\*(C'\fR to skip the unused arguments.  However,
3960 in the case of \f(CW\*(C`scanf\*(C'\fR formats, this option suppresses the
3961 warning if the unused arguments are all pointers, since the Single
3962 Unix Specification says that such unused arguments are allowed.
3963 .IP "\fB\-Wformat\-overflow\fR" 4
3964 .IX Item "-Wformat-overflow"
3965 .PD 0
3966 .IP "\fB\-Wformat\-overflow=\fR\fIlevel\fR" 4
3967 .IX Item "-Wformat-overflow=level"
3968 .PD
3969 Warn about calls to formatted input/output functions such as \f(CW\*(C`sprintf\*(C'\fR
3970 and \f(CW\*(C`vsprintf\*(C'\fR that might overflow the destination buffer.  When the
3971 exact number of bytes written by a format directive cannot be determined
3972 at compile-time it is estimated based on heuristics that depend on the
3973 \&\fIlevel\fR argument and on optimization.  While enabling optimization
3974 will in most cases improve the accuracy of the warning, it may also
3975 result in false positives.
3976 .RS 4
3977 .IP "\fB\-Wformat\-overflow\fR" 4
3978 .IX Item "-Wformat-overflow"
3979 .PD 0
3980 .IP "\fB\-Wformat\-overflow=1\fR" 4
3981 .IX Item "-Wformat-overflow=1"
3982 .PD
3983 Level \fI1\fR of \fB\-Wformat\-overflow\fR enabled by \fB\-Wformat\fR
3984 employs a conservative approach that warns only about calls that most
3985 likely overflow the buffer.  At this level, numeric arguments to format
3986 directives with unknown values are assumed to have the value of one, and
3987 strings of unknown length to be empty.  Numeric arguments that are known
3988 to be bounded to a subrange of their type, or string arguments whose output
3989 is bounded either by their directive's precision or by a finite set of
3990 string literals, are assumed to take on the value within the range that
3991 results in the most bytes on output.  For example, the call to \f(CW\*(C`sprintf\*(C'\fR
3992 below is diagnosed because even with both \fIa\fR and \fIb\fR equal to zero,
3993 the terminating \s-1NUL\s0 character (\f(CW\*(Aq\e0\*(Aq\fR) appended by the function
3994 to the destination buffer will be written past its end.  Increasing
3995 the size of the buffer by a single byte is sufficient to avoid the
3996 warning, though it may not be sufficient to avoid the overflow.
3997 .Sp
3998 .Vb 5
3999 \&        void f (int a, int b)
4000 \&        {
4001 \&          char buf [13];
4002 \&          sprintf (buf, "a = %i, b = %i\en", a, b);
4003 \&        }
4004 .Ve
4005 .IP "\fB\-Wformat\-overflow=2\fR" 4
4006 .IX Item "-Wformat-overflow=2"
4007 Level \fI2\fR warns also about calls that might overflow the destination
4008 buffer given an argument of sufficient length or magnitude.  At level
4009 \&\fI2\fR, unknown numeric arguments are assumed to have the minimum
4010 representable value for signed types with a precision greater than 1, and
4011 the maximum representable value otherwise.  Unknown string arguments whose
4012 length cannot be assumed to be bounded either by the directive's precision,
4013 or by a finite set of string literals they may evaluate to, or the character
4014 array they may point to, are assumed to be 1 character long.
4015 .Sp
4016 At level \fI2\fR, the call in the example above is again diagnosed, but
4017 this time because with \fIa\fR equal to a 32\-bit \f(CW\*(C`INT_MIN\*(C'\fR the first
4018 \&\f(CW%i\fR directive will write some of its digits beyond the end of
4019 the destination buffer.  To make the call safe regardless of the values
4020 of the two variables, the size of the destination buffer must be increased
4021 to at least 34 bytes.  \s-1GCC\s0 includes the minimum size of the buffer in
4022 an informational note following the warning.
4023 .Sp
4024 An alternative to increasing the size of the destination buffer is to
4025 constrain the range of formatted values.  The maximum length of string
4026 arguments can be bounded by specifying the precision in the format
4027 directive.  When numeric arguments of format directives can be assumed
4028 to be bounded by less than the precision of their type, choosing
4029 an appropriate length modifier to the format specifier will reduce
4030 the required buffer size.  For example, if \fIa\fR and \fIb\fR in the
4031 example above can be assumed to be within the precision of
4032 the \f(CW\*(C`short int\*(C'\fR type then using either the \f(CW%hi\fR format
4033 directive or casting the argument to \f(CW\*(C`short\*(C'\fR reduces the maximum
4034 required size of the buffer to 24 bytes.
4035 .Sp
4036 .Vb 5
4037 \&        void f (int a, int b)
4038 \&        {
4039 \&          char buf [23];
4040 \&          sprintf (buf, "a = %hi, b = %i\en", a, (short)b);
4041 \&        }
4042 .Ve
4043 .RE
4044 .RS 4
4045 .RE
4046 .IP "\fB\-Wno\-format\-zero\-length\fR" 4
4047 .IX Item "-Wno-format-zero-length"
4048 If \fB\-Wformat\fR is specified, do not warn about zero-length formats.
4049 The C standard specifies that zero-length formats are allowed.
4050 .IP "\fB\-Wformat=2\fR" 4
4051 .IX Item "-Wformat=2"
4052 Enable \fB\-Wformat\fR plus additional format checks.  Currently
4053 equivalent to \fB\-Wformat \-Wformat\-nonliteral \-Wformat\-security
4054 \&\-Wformat\-y2k\fR.
4055 .IP "\fB\-Wformat\-nonliteral\fR" 4
4056 .IX Item "-Wformat-nonliteral"
4057 If \fB\-Wformat\fR is specified, also warn if the format string is not a
4058 string literal and so cannot be checked, unless the format function
4059 takes its format arguments as a \f(CW\*(C`va_list\*(C'\fR.
4060 .IP "\fB\-Wformat\-security\fR" 4
4061 .IX Item "-Wformat-security"
4062 If \fB\-Wformat\fR is specified, also warn about uses of format
4063 functions that represent possible security problems.  At present, this
4064 warns about calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR functions where the
4065 format string is not a string literal and there are no format arguments,
4066 as in \f(CW\*(C`printf (foo);\*(C'\fR.  This may be a security hole if the format
4067 string came from untrusted input and contains \fB\f(CB%n\fB\fR.  (This is
4068 currently a subset of what \fB\-Wformat\-nonliteral\fR warns about, but
4069 in future warnings may be added to \fB\-Wformat\-security\fR that are not
4070 included in \fB\-Wformat\-nonliteral\fR.)
4071 .IP "\fB\-Wformat\-signedness\fR" 4
4072 .IX Item "-Wformat-signedness"
4073 If \fB\-Wformat\fR is specified, also warn if the format string
4074 requires an unsigned argument and the argument is signed and vice versa.
4075 .IP "\fB\-Wformat\-truncation\fR" 4
4076 .IX Item "-Wformat-truncation"
4077 .PD 0
4078 .IP "\fB\-Wformat\-truncation=\fR\fIlevel\fR" 4
4079 .IX Item "-Wformat-truncation=level"
4080 .PD
4081 Warn about calls to formatted input/output functions such as \f(CW\*(C`snprintf\*(C'\fR
4082 and \f(CW\*(C`vsnprintf\*(C'\fR that might result in output truncation.  When the exact
4083 number of bytes written by a format directive cannot be determined at
4084 compile-time it is estimated based on heuristics that depend on
4085 the \fIlevel\fR argument and on optimization.  While enabling optimization
4086 will in most cases improve the accuracy of the warning, it may also result
4087 in false positives.  Except as noted otherwise, the option uses the same
4088 logic \fB\-Wformat\-overflow\fR.
4089 .RS 4
4090 .IP "\fB\-Wformat\-truncation\fR" 4
4091 .IX Item "-Wformat-truncation"
4092 .PD 0
4093 .IP "\fB\-Wformat\-truncation=1\fR" 4
4094 .IX Item "-Wformat-truncation=1"
4095 .PD
4096 Level \fI1\fR of \fB\-Wformat\-truncation\fR enabled by \fB\-Wformat\fR
4097 employs a conservative approach that warns only about calls to bounded
4098 functions whose return value is unused and that will most likely result
4099 in output truncation.
4100 .IP "\fB\-Wformat\-truncation=2\fR" 4
4101 .IX Item "-Wformat-truncation=2"
4102 Level \fI2\fR warns also about calls to bounded functions whose return
4103 value is used and that might result in truncation given an argument of
4104 sufficient length or magnitude.
4105 .RE
4106 .RS 4
4107 .RE
4108 .IP "\fB\-Wformat\-y2k\fR" 4
4109 .IX Item "-Wformat-y2k"
4110 If \fB\-Wformat\fR is specified, also warn about \f(CW\*(C`strftime\*(C'\fR
4111 formats that may yield only a two-digit year.
4112 .RE
4113 .RS 4
4114 .RE
4115 .IP "\fB\-Wnonnull\fR" 4
4116 .IX Item "-Wnonnull"
4117 Warn about passing a null pointer for arguments marked as
4118 requiring a non-null value by the \f(CW\*(C`nonnull\*(C'\fR function attribute.
4119 .Sp
4120 \&\fB\-Wnonnull\fR is included in \fB\-Wall\fR and \fB\-Wformat\fR.  It
4121 can be disabled with the \fB\-Wno\-nonnull\fR option.
4122 .IP "\fB\-Wnonnull\-compare\fR" 4
4123 .IX Item "-Wnonnull-compare"
4124 Warn when comparing an argument marked with the \f(CW\*(C`nonnull\*(C'\fR
4125 function attribute against null inside the function.
4126 .Sp
4127 \&\fB\-Wnonnull\-compare\fR is included in \fB\-Wall\fR.  It
4128 can be disabled with the \fB\-Wno\-nonnull\-compare\fR option.
4129 .IP "\fB\-Wnull\-dereference\fR" 4
4130 .IX Item "-Wnull-dereference"
4131 Warn if the compiler detects paths that trigger erroneous or
4132 undefined behavior due to dereferencing a null pointer.  This option
4133 is only active when \fB\-fdelete\-null\-pointer\-checks\fR is active,
4134 which is enabled by optimizations in most targets.  The precision of
4135 the warnings depends on the optimization options used.
4136 .IP "\fB\-Winit\-self\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
4137 .IX Item "-Winit-self (C, , Objective-C and Objective- only)"
4138 Warn about uninitialized variables that are initialized with themselves.
4139 Note this option can only be used with the \fB\-Wuninitialized\fR option.
4140 .Sp
4141 For example, \s-1GCC\s0 warns about \f(CW\*(C`i\*(C'\fR being uninitialized in the
4142 following snippet only when \fB\-Winit\-self\fR has been specified:
4143 .Sp
4144 .Vb 5
4145 \&        int f()
4146 \&        {
4147 \&          int i = i;
4148 \&          return i;
4149 \&        }
4150 .Ve
4151 .Sp
4152 This warning is enabled by \fB\-Wall\fR in \*(C+.
4153 .IP "\fB\-Wimplicit\-int\fR (C and Objective-C only)" 4
4154 .IX Item "-Wimplicit-int (C and Objective-C only)"
4155 Warn when a declaration does not specify a type.
4156 This warning is enabled by \fB\-Wall\fR.
4157 .IP "\fB\-Wimplicit\-function\-declaration\fR (C and Objective-C only)" 4
4158 .IX Item "-Wimplicit-function-declaration (C and Objective-C only)"
4159 Give a warning whenever a function is used before being declared. In
4160 C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this warning is
4161 enabled by default and it is made into an error by
4162 \&\fB\-pedantic\-errors\fR. This warning is also enabled by
4163 \&\fB\-Wall\fR.
4164 .IP "\fB\-Wimplicit\fR (C and Objective-C only)" 4
4165 .IX Item "-Wimplicit (C and Objective-C only)"
4166 Same as \fB\-Wimplicit\-int\fR and \fB\-Wimplicit\-function\-declaration\fR.
4167 This warning is enabled by \fB\-Wall\fR.
4168 .IP "\fB\-Wimplicit\-fallthrough\fR" 4
4169 .IX Item "-Wimplicit-fallthrough"
4170 \&\fB\-Wimplicit\-fallthrough\fR is the same as \fB\-Wimplicit\-fallthrough=3\fR
4171 and \fB\-Wno\-implicit\-fallthrough\fR is the same as
4172 \&\fB\-Wimplicit\-fallthrough=0\fR.
4173 .IP "\fB\-Wimplicit\-fallthrough=\fR\fIn\fR" 4
4174 .IX Item "-Wimplicit-fallthrough=n"
4175 Warn when a switch case falls through.  For example:
4176 .Sp
4177 .Vb 11
4178 \&        switch (cond)
4179 \&          {
4180 \&          case 1:
4181 \&            a = 1;
4182 \&            break;
4183 \&          case 2:
4184 \&            a = 2;
4185 \&          case 3:
4186 \&            a = 3;
4187 \&            break;
4188 \&          }
4189 .Ve
4190 .Sp
4191 This warning does not warn when the last statement of a case cannot
4192 fall through, e.g. when there is a return statement or a call to function
4193 declared with the noreturn attribute.  \fB\-Wimplicit\-fallthrough=\fR
4194 also takes into account control flow statements, such as ifs, and only
4195 warns when appropriate.  E.g.
4196 .Sp
4197 .Vb 10
4198 \&        switch (cond)
4199 \&          {
4200 \&          case 1:
4201 \&            if (i > 3) {
4202 \&              bar (5);
4203 \&              break;
4204 \&            } else if (i < 1) {
4205 \&              bar (0);
4206 \&            } else
4207 \&              return;
4208 \&          default:
4209 \&            ...
4210 \&          }
4211 .Ve
4212 .Sp
4213 Since there are occasions where a switch case fall through is desirable,
4214 \&\s-1GCC\s0 provides an attribute, \f(CW\*(C`_\|_attribute_\|_ ((fallthrough))\*(C'\fR, that is
4215 to be used along with a null statement to suppress this warning that
4216 would normally occur:
4217 .Sp
4218 .Vb 8
4219 \&        switch (cond)
4220 \&          {
4221 \&          case 1:
4222 \&            bar (0);
4223 \&            _\|_attribute_\|_ ((fallthrough));
4224 \&          default:
4225 \&            ...
4226 \&          }
4227 .Ve
4228 .Sp
4229 \&\*(C+17 provides a standard way to suppress the \fB\-Wimplicit\-fallthrough\fR
4230 warning using \f(CW\*(C`[[fallthrough]];\*(C'\fR instead of the \s-1GNU\s0 attribute.  In \*(C+11
4231 or \*(C+14 users can use \f(CW\*(C`[[gnu::fallthrough]];\*(C'\fR, which is a \s-1GNU\s0 extension.
4232 Instead of these attributes, it is also possible to add a fallthrough comment
4233 to silence the warning.  The whole body of the C or \*(C+ style comment should
4234 match the given regular expressions listed below.  The option argument \fIn\fR
4235 specifies what kind of comments are accepted:
4236 .RS 4
4237 .IP "*<\fB\-Wimplicit\-fallthrough=0\fR disables the warning altogether.>" 4
4238 .IX Item "*<-Wimplicit-fallthrough=0 disables the warning altogether.>"
4239 .PD 0
4240 .ie n .IP "*<\fB\-Wimplicit\-fallthrough=1\fR matches "".*"" regular>" 4
4241 .el .IP "*<\fB\-Wimplicit\-fallthrough=1\fR matches \f(CW.*\fR regular>" 4
4242 .IX Item "*<-Wimplicit-fallthrough=1 matches .* regular>"
4243 .PD
4244 expression, any comment is used as fallthrough comment.
4245 .IP "*<\fB\-Wimplicit\-fallthrough=2\fR case insensitively matches>" 4
4246 .IX Item "*<-Wimplicit-fallthrough=2 case insensitively matches>"
4247 \&\f(CW\*(C`.*falls?[ \et\-]*thr(ough|u).*\*(C'\fR regular expression.
4248 .IP "*<\fB\-Wimplicit\-fallthrough=3\fR case sensitively matches one of the>" 4
4249 .IX Item "*<-Wimplicit-fallthrough=3 case sensitively matches one of the>"
4250 following regular expressions:
4251 .RS 4
4252 .ie n .IP "*<""\-fallthrough"">" 4
4253 .el .IP "*<\f(CW\-fallthrough\fR>" 4
4254 .IX Item "*<-fallthrough>"
4255 .PD 0
4256 .ie n .IP "*<""@fallthrough@"">" 4
4257 .el .IP "*<\f(CW@fallthrough@\fR>" 4
4258 .IX Item "*<@fallthrough@>"
4259 .ie n .IP "*<""lint \-fallthrough[ \et]*"">" 4
4260 .el .IP "*<\f(CWlint \-fallthrough[ \et]*\fR>" 4
4261 .IX Item "*<lint -fallthrough[ t]*>"
4262 .ie n .IP "*<""[ \et.!]*(ELSE,? |INTENTIONAL(LY)? )?FALL(S | |\-)?THR(OUGH|U)[ \et.!]*(\-[^\en\er]*)?"">" 4
4263 .el .IP "*<\f(CW[ \et.!]*(ELSE,? |INTENTIONAL(LY)? )?FALL(S | |\-)?THR(OUGH|U)[ \et.!]*(\-[^\en\er]*)?\fR>" 4
4264 .IX Item "*<[ t.!]*(ELSE,? |INTENTIONAL(LY)? )?FALL(S | |-)?THR(OUGH|U)[ t.!]*(-[^nr]*)?>"
4265 .ie n .IP "*<""[ \et.!]*(Else,? |Intentional(ly)? )?Fall((s | |\-)[Tt]|t)hr(ough|u)[ \et.!]*(\-[^\en\er]*)?"">" 4
4266 .el .IP "*<\f(CW[ \et.!]*(Else,? |Intentional(ly)? )?Fall((s | |\-)[Tt]|t)hr(ough|u)[ \et.!]*(\-[^\en\er]*)?\fR>" 4
4267 .IX Item "*<[ t.!]*(Else,? |Intentional(ly)? )?Fall((s | |-)[Tt]|t)hr(ough|u)[ t.!]*(-[^nr]*)?>"
4268 .ie n .IP "*<""[ \et.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?fall(s | |\-)?thr(ough|u)[ \et.!]*(\-[^\en\er]*)?"">" 4
4269 .el .IP "*<\f(CW[ \et.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?fall(s | |\-)?thr(ough|u)[ \et.!]*(\-[^\en\er]*)?\fR>" 4
4270 .IX Item "*<[ t.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?fall(s | |-)?thr(ough|u)[ t.!]*(-[^nr]*)?>"
4271 .RE
4272 .RS 4
4273 .RE
4274 .IP "*<\fB\-Wimplicit\-fallthrough=4\fR case sensitively matches one of the>" 4
4275 .IX Item "*<-Wimplicit-fallthrough=4 case sensitively matches one of the>"
4276 .PD
4277 following regular expressions:
4278 .RS 4
4279 .ie n .IP "*<""\-fallthrough"">" 4
4280 .el .IP "*<\f(CW\-fallthrough\fR>" 4
4281 .IX Item "*<-fallthrough>"
4282 .PD 0
4283 .ie n .IP "*<""@fallthrough@"">" 4
4284 .el .IP "*<\f(CW@fallthrough@\fR>" 4
4285 .IX Item "*<@fallthrough@>"
4286 .ie n .IP "*<""lint \-fallthrough[ \et]*"">" 4
4287 .el .IP "*<\f(CWlint \-fallthrough[ \et]*\fR>" 4
4288 .IX Item "*<lint -fallthrough[ t]*>"
4289 .ie n .IP "*<""[ \et]*FALLTHR(OUGH|U)[ \et]*"">" 4
4290 .el .IP "*<\f(CW[ \et]*FALLTHR(OUGH|U)[ \et]*\fR>" 4
4291 .IX Item "*<[ t]*FALLTHR(OUGH|U)[ t]*>"
4292 .RE
4293 .RS 4
4294 .RE
4295 .IP "*<\fB\-Wimplicit\-fallthrough=5\fR doesn't recognize any comments as>" 4
4296 .IX Item "*<-Wimplicit-fallthrough=5 doesn't recognize any comments as>"
4297 .PD
4298 fallthrough comments, only attributes disable the warning.
4299 .RE
4300 .RS 4
4301 .Sp
4302 The comment needs to be followed after optional whitespace and other comments
4303 by \f(CW\*(C`case\*(C'\fR or \f(CW\*(C`default\*(C'\fR keywords or by a user label that precedes some
4304 \&\f(CW\*(C`case\*(C'\fR or \f(CW\*(C`default\*(C'\fR label.
4305 .Sp
4306 .Vb 8
4307 \&        switch (cond)
4308 \&          {
4309 \&          case 1:
4310 \&            bar (0);
4311 \&            /* FALLTHRU */
4312 \&          default:
4313 \&            ...
4314 \&          }
4315 .Ve
4316 .Sp
4317 The \fB\-Wimplicit\-fallthrough=3\fR warning is enabled by \fB\-Wextra\fR.
4318 .RE
4319 .IP "\fB\-Wif\-not\-aligned\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
4320 .IX Item "-Wif-not-aligned (C, , Objective-C and Objective- only)"
4321 Control if warning triggered by the \f(CW\*(C`warn_if_not_aligned\*(C'\fR attribute
4322 should be issued.  This is enabled by default.
4323 Use \fB\-Wno\-if\-not\-aligned\fR to disable it.
4324 .IP "\fB\-Wignored\-qualifiers\fR (C and \*(C+ only)" 4
4325 .IX Item "-Wignored-qualifiers (C and only)"
4326 Warn if the return type of a function has a type qualifier
4327 such as \f(CW\*(C`const\*(C'\fR.  For \s-1ISO C\s0 such a type qualifier has no effect,
4328 since the value returned by a function is not an lvalue.
4329 For \*(C+, the warning is only emitted for scalar types or \f(CW\*(C`void\*(C'\fR.
4330 \&\s-1ISO C\s0 prohibits qualified \f(CW\*(C`void\*(C'\fR return types on function
4331 definitions, so such return types always receive a warning
4332 even without this option.
4333 .Sp
4334 This warning is also enabled by \fB\-Wextra\fR.
4335 .IP "\fB\-Wignored\-attributes\fR (C and \*(C+ only)" 4
4336 .IX Item "-Wignored-attributes (C and only)"
4337 Warn when an attribute is ignored.  This is different from the
4338 \&\fB\-Wattributes\fR option in that it warns whenever the compiler decides
4339 to drop an attribute, not that the attribute is either unknown, used in a
4340 wrong place, etc.  This warning is enabled by default.
4341 .IP "\fB\-Wmain\fR" 4
4342 .IX Item "-Wmain"
4343 Warn if the type of \f(CW\*(C`main\*(C'\fR is suspicious.  \f(CW\*(C`main\*(C'\fR should be
4344 a function with external linkage, returning int, taking either zero
4345 arguments, two, or three arguments of appropriate types.  This warning
4346 is enabled by default in \*(C+ and is enabled by either \fB\-Wall\fR
4347 or \fB\-Wpedantic\fR.
4348 .IP "\fB\-Wmisleading\-indentation\fR (C and \*(C+ only)" 4
4349 .IX Item "-Wmisleading-indentation (C and only)"
4350 Warn when the indentation of the code does not reflect the block structure.
4351 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
4352 \&\f(CW\*(C`for\*(C'\fR clauses with a guarded statement that does not use braces,
4353 followed by an unguarded statement with the same indentation.
4354 .Sp
4355 In the following example, the call to \*(L"bar\*(R" is misleadingly indented as
4356 if it were guarded by the \*(L"if\*(R" conditional.
4357 .Sp
4358 .Vb 3
4359 \&          if (some_condition ())
4360 \&            foo ();
4361 \&            bar ();  /* Gotcha: this is not guarded by the "if".  */
4362 .Ve
4363 .Sp
4364 In the case of mixed tabs and spaces, the warning uses the
4365 \&\fB\-ftabstop=\fR option to determine if the statements line up
4366 (defaulting to 8).
4367 .Sp
4368 The warning is not issued for code involving multiline preprocessor logic
4369 such as the following example.
4370 .Sp
4371 .Vb 6
4372 \&          if (flagA)
4373 \&            foo (0);
4374 \&        #if SOME_CONDITION_THAT_DOES_NOT_HOLD
4375 \&          if (flagB)
4376 \&        #endif
4377 \&            foo (1);
4378 .Ve
4379 .Sp
4380 The warning is not issued after a \f(CW\*(C`#line\*(C'\fR directive, since this
4381 typically indicates autogenerated code, and no assumptions can be made
4382 about the layout of the file that the directive references.
4383 .Sp
4384 This warning is enabled by \fB\-Wall\fR in C and \*(C+.
4385 .IP "\fB\-Wmissing\-attributes\fR" 4
4386 .IX Item "-Wmissing-attributes"
4387 Warn when a declaration of a function is missing one or more attributes
4388 that a related function is declared with and whose absence may adversely
4389 affect the correctness or efficiency of generated code.  For example, in
4390 \&\*(C+, the warning is issued when an explicit specialization of a primary
4391 template declared with attribute \f(CW\*(C`alloc_align\*(C'\fR, \f(CW\*(C`alloc_size\*(C'\fR,
4392 \&\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,
4393 or \f(CW\*(C`nonnull\*(C'\fR is declared without it.  Attributes \f(CW\*(C`deprecated\*(C'\fR,
4394 \&\f(CW\*(C`error\*(C'\fR, and \f(CW\*(C`warning\*(C'\fR suppress the warning..
4395 .Sp
4396 \&\fB\-Wmissing\-attributes\fR is enabled by \fB\-Wall\fR.
4397 .Sp
4398 For example, since the declaration of the primary function template
4399 below makes use of both attribute \f(CW\*(C`malloc\*(C'\fR and \f(CW\*(C`alloc_size\*(C'\fR
4400 the declaration of the explicit specialization of the template is
4401 diagnosed because it is missing one of the attributes.
4402 .Sp
4403 .Vb 3
4404 \&        template <class T>
4405 \&        T* _\|_attribute_\|_ ((malloc, alloc_size (1)))
4406 \&        allocate (size_t);
4407 \&        
4408 \&        template <>
4409 \&        void* _\|_attribute_\|_ ((malloc))   // missing alloc_size
4410 \&        allocate<void> (size_t);
4411 .Ve
4412 .IP "\fB\-Wmissing\-braces\fR" 4
4413 .IX Item "-Wmissing-braces"
4414 Warn if an aggregate or union initializer is not fully bracketed.  In
4415 the following example, the initializer for \f(CW\*(C`a\*(C'\fR is not fully
4416 bracketed, but that for \f(CW\*(C`b\*(C'\fR is fully bracketed.  This warning is
4417 enabled by \fB\-Wall\fR in C.
4418 .Sp
4419 .Vb 2
4420 \&        int a[2][2] = { 0, 1, 2, 3 };
4421 \&        int b[2][2] = { { 0, 1 }, { 2, 3 } };
4422 .Ve
4423 .Sp
4424 This warning is enabled by \fB\-Wall\fR.
4425 .IP "\fB\-Wmissing\-include\-dirs\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
4426 .IX Item "-Wmissing-include-dirs (C, , Objective-C and Objective- only)"
4427 Warn if a user-supplied include directory does not exist.
4428 .IP "\fB\-Wmultistatement\-macros\fR" 4
4429 .IX Item "-Wmultistatement-macros"
4430 Warn about unsafe multiple statement macros that appear to be guarded
4431 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
4432 \&\f(CW\*(C`while\*(C'\fR, in which only the first statement is actually guarded after
4433 the macro is expanded.
4434 .Sp
4435 For example:
4436 .Sp
4437 .Vb 3
4438 \&        #define DOIT x++; y++
4439 \&        if (c)
4440 \&          DOIT;
4441 .Ve
4442 .Sp
4443 will increment \f(CW\*(C`y\*(C'\fR unconditionally, not just when \f(CW\*(C`c\*(C'\fR holds.
4444 The can usually be fixed by wrapping the macro in a do-while loop:
4445 .Sp
4446 .Vb 3
4447 \&        #define DOIT do { x++; y++; } while (0)
4448 \&        if (c)
4449 \&          DOIT;
4450 .Ve
4451 .Sp
4452 This warning is enabled by \fB\-Wall\fR in C and \*(C+.
4453 .IP "\fB\-Wparentheses\fR" 4
4454 .IX Item "-Wparentheses"
4455 Warn if parentheses are omitted in certain contexts, such
4456 as when there is an assignment in a context where a truth value
4457 is expected, or when operators are nested whose precedence people
4458 often get confused about.
4459 .Sp
4460 Also warn if a comparison like \f(CW\*(C`x<=y<=z\*(C'\fR appears; this is
4461 equivalent to \f(CW\*(C`(x<=y ? 1 : 0) <= z\*(C'\fR, which is a different
4462 interpretation from that of ordinary mathematical notation.
4463 .Sp
4464 Also warn for dangerous uses of the \s-1GNU\s0 extension to
4465 \&\f(CW\*(C`?:\*(C'\fR with omitted middle operand. When the condition
4466 in the \f(CW\*(C`?\*(C'\fR: operator is a boolean expression, the omitted value is
4467 always 1.  Often programmers expect it to be a value computed
4468 inside the conditional expression instead.
4469 .Sp
4470 For \*(C+ this also warns for some cases of unnecessary parentheses in
4471 declarations, which can indicate an attempt at a function call instead
4472 of a declaration:
4473 .Sp
4474 .Vb 5
4475 \&        {
4476 \&          // Declares a local variable called mymutex.
4477 \&          std::unique_lock<std::mutex> (mymutex);
4478 \&          // User meant std::unique_lock<std::mutex> lock (mymutex);
4479 \&        }
4480 .Ve
4481 .Sp
4482 This warning is enabled by \fB\-Wall\fR.
4483 .IP "\fB\-Wsequence\-point\fR" 4
4484 .IX Item "-Wsequence-point"
4485 Warn about code that may have undefined semantics because of violations
4486 of sequence point rules in the C and \*(C+ standards.
4487 .Sp
4488 The C and \*(C+ standards define the order in which expressions in a C/\*(C+
4489 program are evaluated in terms of \fIsequence points\fR, which represent
4490 a partial ordering between the execution of parts of the program: those
4491 executed before the sequence point, and those executed after it.  These
4492 occur after the evaluation of a full expression (one which is not part
4493 of a larger expression), after the evaluation of the first operand of a
4494 \&\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
4495 function is called (but after the evaluation of its arguments and the
4496 expression denoting the called function), and in certain other places.
4497 Other than as expressed by the sequence point rules, the order of
4498 evaluation of subexpressions of an expression is not specified.  All
4499 these rules describe only a partial order rather than a total order,
4500 since, for example, if two functions are called within one expression
4501 with no sequence point between them, the order in which the functions
4502 are called is not specified.  However, the standards committee have
4503 ruled that function calls do not overlap.
4504 .Sp
4505 It is not specified when between sequence points modifications to the
4506 values of objects take effect.  Programs whose behavior depends on this
4507 have undefined behavior; the C and \*(C+ standards specify that \*(L"Between
4508 the previous and next sequence point an object shall have its stored
4509 value modified at most once by the evaluation of an expression.
4510 Furthermore, the prior value shall be read only to determine the value
4511 to be stored.\*(R".  If a program breaks these rules, the results on any
4512 particular implementation are entirely unpredictable.
4513 .Sp
4514 Examples of code with undefined behavior are \f(CW\*(C`a = a++;\*(C'\fR, \f(CW\*(C`a[n]
4515 = b[n++]\*(C'\fR and \f(CW\*(C`a[i++] = i;\*(C'\fR.  Some more complicated cases are not
4516 diagnosed by this option, and it may give an occasional false positive
4517 result, but in general it has been found fairly effective at detecting
4518 this sort of problem in programs.
4519 .Sp
4520 The \*(C+17 standard will define the order of evaluation of operands in
4521 more cases: in particular it requires that the right-hand side of an
4522 assignment be evaluated before the left-hand side, so the above
4523 examples are no longer undefined.  But this warning will still warn
4524 about them, to help people avoid writing code that is undefined in C
4525 and earlier revisions of \*(C+.
4526 .Sp
4527 The standard is worded confusingly, therefore there is some debate
4528 over the precise meaning of the sequence point rules in subtle cases.
4529 Links to discussions of the problem, including proposed formal
4530 definitions, may be found on the \s-1GCC\s0 readings page, at
4531 <\fBhttp://gcc.gnu.org/readings.html\fR>.
4532 .Sp
4533 This warning is enabled by \fB\-Wall\fR for C and \*(C+.
4534 .IP "\fB\-Wno\-return\-local\-addr\fR" 4
4535 .IX Item "-Wno-return-local-addr"
4536 Do not warn about returning a pointer (or in \*(C+, a reference) to a
4537 variable that goes out of scope after the function returns.
4538 .IP "\fB\-Wreturn\-type\fR" 4
4539 .IX Item "-Wreturn-type"
4540 Warn whenever a function is defined with a return type that defaults
4541 to \f(CW\*(C`int\*(C'\fR.  Also warn about any \f(CW\*(C`return\*(C'\fR statement with no
4542 return value in a function whose return type is not \f(CW\*(C`void\*(C'\fR
4543 (falling off the end of the function body is considered returning
4544 without a value).
4545 .Sp
4546 For C only, warn about a \f(CW\*(C`return\*(C'\fR statement with an expression in a
4547 function whose return type is \f(CW\*(C`void\*(C'\fR, unless the expression type is
4548 also \f(CW\*(C`void\*(C'\fR.  As a \s-1GNU\s0 extension, the latter case is accepted
4549 without a warning unless \fB\-Wpedantic\fR is used.
4550 .Sp
4551 For \*(C+, a function without return type always produces a diagnostic
4552 message, even when \fB\-Wno\-return\-type\fR is specified.  The only
4553 exceptions are \f(CW\*(C`main\*(C'\fR and functions defined in system headers.
4554 .Sp
4555 This warning is enabled by default for \*(C+ and is enabled by \fB\-Wall\fR.
4556 .IP "\fB\-Wshift\-count\-negative\fR" 4
4557 .IX Item "-Wshift-count-negative"
4558 Warn if shift count is negative. This warning is enabled by default.
4559 .IP "\fB\-Wshift\-count\-overflow\fR" 4
4560 .IX Item "-Wshift-count-overflow"
4561 Warn if shift count >= width of type. This warning is enabled by default.
4562 .IP "\fB\-Wshift\-negative\-value\fR" 4
4563 .IX Item "-Wshift-negative-value"
4564 Warn if left shifting a negative value.  This warning is enabled by
4565 \&\fB\-Wextra\fR in C99 and \*(C+11 modes (and newer).
4566 .IP "\fB\-Wshift\-overflow\fR" 4
4567 .IX Item "-Wshift-overflow"
4568 .PD 0
4569 .IP "\fB\-Wshift\-overflow=\fR\fIn\fR" 4
4570 .IX Item "-Wshift-overflow=n"
4571 .PD
4572 Warn about left shift overflows.  This warning is enabled by
4573 default in C99 and \*(C+11 modes (and newer).
4574 .RS 4
4575 .IP "\fB\-Wshift\-overflow=1\fR" 4
4576 .IX Item "-Wshift-overflow=1"
4577 This is the warning level of \fB\-Wshift\-overflow\fR and is enabled
4578 by default in C99 and \*(C+11 modes (and newer).  This warning level does
4579 not warn about left-shifting 1 into the sign bit.  (However, in C, such
4580 an overflow is still rejected in contexts where an integer constant expression
4581 is required.)
4582 .IP "\fB\-Wshift\-overflow=2\fR" 4
4583 .IX Item "-Wshift-overflow=2"
4584 This warning level also warns about left-shifting 1 into the sign bit,
4585 unless \*(C+14 mode is active.
4586 .RE
4587 .RS 4
4588 .RE
4589 .IP "\fB\-Wswitch\fR" 4
4590 .IX Item "-Wswitch"
4591 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
4592 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
4593 enumeration.  (The presence of a \f(CW\*(C`default\*(C'\fR label prevents this
4594 warning.)  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
4595 provoke warnings when this option is used (even if there is a
4596 \&\f(CW\*(C`default\*(C'\fR label).
4597 This warning is enabled by \fB\-Wall\fR.
4598 .IP "\fB\-Wswitch\-default\fR" 4
4599 .IX Item "-Wswitch-default"
4600 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement does not have a \f(CW\*(C`default\*(C'\fR
4601 case.
4602 .IP "\fB\-Wswitch\-enum\fR" 4
4603 .IX Item "-Wswitch-enum"
4604 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
4605 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
4606 enumeration.  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
4607 provoke warnings when this option is used.  The only difference
4608 between \fB\-Wswitch\fR and this option is that this option gives a
4609 warning about an omitted enumeration code even if there is a
4610 \&\f(CW\*(C`default\*(C'\fR label.
4611 .IP "\fB\-Wswitch\-bool\fR" 4
4612 .IX Item "-Wswitch-bool"
4613 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of boolean type
4614 and the case values are outside the range of a boolean type.
4615 It is possible to suppress this warning by casting the controlling
4616 expression to a type other than \f(CW\*(C`bool\*(C'\fR.  For example:
4617 .Sp
4618 .Vb 4
4619 \&        switch ((int) (a == 4))
4620 \&          {
4621 \&          ...
4622 \&          }
4623 .Ve
4624 .Sp
4625 This warning is enabled by default for C and \*(C+ programs.
4626 .IP "\fB\-Wswitch\-unreachable\fR" 4
4627 .IX Item "-Wswitch-unreachable"
4628 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement contains statements between the
4629 controlling expression and the first case label, which will never be
4630 executed.  For example:
4631 .Sp
4632 .Vb 7
4633 \&        switch (cond)
4634 \&          {
4635 \&           i = 15;
4636 \&          ...
4637 \&           case 5:
4638 \&          ...
4639 \&          }
4640 .Ve
4641 .Sp
4642 \&\fB\-Wswitch\-unreachable\fR does not warn if the statement between the
4643 controlling expression and the first case label is just a declaration:
4644 .Sp
4645 .Vb 8
4646 \&        switch (cond)
4647 \&          {
4648 \&           int i;
4649 \&          ...
4650 \&           case 5:
4651 \&           i = 5;
4652 \&          ...
4653 \&          }
4654 .Ve
4655 .Sp
4656 This warning is enabled by default for C and \*(C+ programs.
4657 .IP "\fB\-Wsync\-nand\fR (C and \*(C+ only)" 4
4658 .IX Item "-Wsync-nand (C and only)"
4659 Warn when \f(CW\*(C`_\|_sync_fetch_and_nand\*(C'\fR and \f(CW\*(C`_\|_sync_nand_and_fetch\*(C'\fR
4660 built-in functions are used.  These functions changed semantics in \s-1GCC 4.4.\s0
4661 .IP "\fB\-Wunused\-but\-set\-parameter\fR" 4
4662 .IX Item "-Wunused-but-set-parameter"
4663 Warn whenever a function parameter is assigned to, but otherwise unused
4664 (aside from its declaration).
4665 .Sp
4666 To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
4667 .Sp
4668 This warning is also enabled by \fB\-Wunused\fR together with
4669 \&\fB\-Wextra\fR.
4670 .IP "\fB\-Wunused\-but\-set\-variable\fR" 4
4671 .IX Item "-Wunused-but-set-variable"
4672 Warn whenever a local variable is assigned to, but otherwise unused
4673 (aside from its declaration).
4674 This warning is enabled by \fB\-Wall\fR.
4675 .Sp
4676 To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
4677 .Sp
4678 This warning is also enabled by \fB\-Wunused\fR, which is enabled
4679 by \fB\-Wall\fR.
4680 .IP "\fB\-Wunused\-function\fR" 4
4681 .IX Item "-Wunused-function"
4682 Warn whenever a static function is declared but not defined or a
4683 non-inline static function is unused.
4684 This warning is enabled by \fB\-Wall\fR.
4685 .IP "\fB\-Wunused\-label\fR" 4
4686 .IX Item "-Wunused-label"
4687 Warn whenever a label is declared but not used.
4688 This warning is enabled by \fB\-Wall\fR.
4689 .Sp
4690 To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
4691 .IP "\fB\-Wunused\-local\-typedefs\fR (C, Objective-C, \*(C+ and Objective\-\*(C+ only)" 4
4692 .IX Item "-Wunused-local-typedefs (C, Objective-C, and Objective- only)"
4693 Warn when a typedef locally defined in a function is not used.
4694 This warning is enabled by \fB\-Wall\fR.
4695 .IP "\fB\-Wunused\-parameter\fR" 4
4696 .IX Item "-Wunused-parameter"
4697 Warn whenever a function parameter is unused aside from its declaration.
4698 .Sp
4699 To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
4700 .IP "\fB\-Wno\-unused\-result\fR" 4
4701 .IX Item "-Wno-unused-result"
4702 Do not warn if a caller of a function marked with attribute
4703 \&\f(CW\*(C`warn_unused_result\*(C'\fR does not use
4704 its return value. The default is \fB\-Wunused\-result\fR.
4705 .IP "\fB\-Wunused\-variable\fR" 4
4706 .IX Item "-Wunused-variable"
4707 Warn whenever a local or static variable is unused aside from its
4708 declaration. This option implies \fB\-Wunused\-const\-variable=1\fR for C,
4709 but not for \*(C+. This warning is enabled by \fB\-Wall\fR.
4710 .Sp
4711 To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
4712 .IP "\fB\-Wunused\-const\-variable\fR" 4
4713 .IX Item "-Wunused-const-variable"
4714 .PD 0
4715 .IP "\fB\-Wunused\-const\-variable=\fR\fIn\fR" 4
4716 .IX Item "-Wunused-const-variable=n"
4717 .PD
4718 Warn whenever a constant static variable is unused aside from its declaration.
4719 \&\fB\-Wunused\-const\-variable=1\fR is enabled by \fB\-Wunused\-variable\fR
4720 for C, but not for \*(C+. In C this declares variable storage, but in \*(C+ this
4721 is not an error since const variables take the place of \f(CW\*(C`#define\*(C'\fRs.
4722 .Sp
4723 To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
4724 .RS 4
4725 .IP "\fB\-Wunused\-const\-variable=1\fR" 4
4726 .IX Item "-Wunused-const-variable=1"
4727 This is the warning level that is enabled by \fB\-Wunused\-variable\fR for
4728 C.  It warns only about unused static const variables defined in the main
4729 compilation unit, but not about static const variables declared in any
4730 header included.
4731 .IP "\fB\-Wunused\-const\-variable=2\fR" 4
4732 .IX Item "-Wunused-const-variable=2"
4733 This warning level also warns for unused constant static variables in
4734 headers (excluding system headers).  This is the warning level of
4735 \&\fB\-Wunused\-const\-variable\fR and must be explicitly requested since
4736 in \*(C+ this isn't an error and in C it might be harder to clean up all
4737 headers included.
4738 .RE
4739 .RS 4
4740 .RE
4741 .IP "\fB\-Wunused\-value\fR" 4
4742 .IX Item "-Wunused-value"
4743 Warn whenever a statement computes a result that is explicitly not
4744 used. To suppress this warning cast the unused expression to
4745 \&\f(CW\*(C`void\*(C'\fR. This includes an expression-statement or the left-hand
4746 side of a comma expression that contains no side effects. For example,
4747 an expression such as \f(CW\*(C`x[i,j]\*(C'\fR causes a warning, while
4748 \&\f(CW\*(C`x[(void)i,j]\*(C'\fR does not.
4749 .Sp
4750 This warning is enabled by \fB\-Wall\fR.
4751 .IP "\fB\-Wunused\fR" 4
4752 .IX Item "-Wunused"
4753 All the above \fB\-Wunused\fR options combined.
4754 .Sp
4755 In order to get a warning about an unused function parameter, you must
4756 either specify \fB\-Wextra \-Wunused\fR (note that \fB\-Wall\fR implies
4757 \&\fB\-Wunused\fR), or separately specify \fB\-Wunused\-parameter\fR.
4758 .IP "\fB\-Wuninitialized\fR" 4
4759 .IX Item "-Wuninitialized"
4760 Warn if an automatic variable is used without first being initialized
4761 or if a variable may be clobbered by a \f(CW\*(C`setjmp\*(C'\fR call. In \*(C+,
4762 warn if a non-static reference or non-static \f(CW\*(C`const\*(C'\fR member
4763 appears in a class without constructors.
4764 .Sp
4765 If you want to warn about code that uses the uninitialized value of the
4766 variable in its own initializer, use the \fB\-Winit\-self\fR option.
4767 .Sp
4768 These warnings occur for individual uninitialized or clobbered
4769 elements of structure, union or array variables as well as for
4770 variables that are uninitialized or clobbered as a whole.  They do
4771 not occur for variables or elements declared \f(CW\*(C`volatile\*(C'\fR.  Because
4772 these warnings depend on optimization, the exact variables or elements
4773 for which there are warnings depends on the precise optimization
4774 options and version of \s-1GCC\s0 used.
4775 .Sp
4776 Note that there may be no warning about a variable that is used only
4777 to compute a value that itself is never used, because such
4778 computations may be deleted by data flow analysis before the warnings
4779 are printed.
4780 .IP "\fB\-Winvalid\-memory\-model\fR" 4
4781 .IX Item "-Winvalid-memory-model"
4782 Warn for invocations of \fB_\|_atomic Builtins\fR, \fB_\|_sync Builtins\fR,
4783 and the C11 atomic generic functions with a memory consistency argument
4784 that is either invalid for the operation or outside the range of values
4785 of the \f(CW\*(C`memory_order\*(C'\fR enumeration.  For example, since the
4786 \&\f(CW\*(C`_\|_atomic_store\*(C'\fR and \f(CW\*(C`_\|_atomic_store_n\*(C'\fR built-ins are only
4787 defined for the relaxed, release, and sequentially consistent memory
4788 orders the following code is diagnosed:
4789 .Sp
4790 .Vb 4
4791 \&        void store (int *i)
4792 \&        {
4793 \&          _\|_atomic_store_n (i, 0, memory_order_consume);
4794 \&        }
4795 .Ve
4796 .Sp
4797 \&\fB\-Winvalid\-memory\-model\fR is enabled by default.
4798 .IP "\fB\-Wmaybe\-uninitialized\fR" 4
4799 .IX Item "-Wmaybe-uninitialized"
4800 For an automatic (i.e. local) variable, if there exists a path from the
4801 function entry to a use of the variable that is initialized, but there exist
4802 some other paths for which the variable is not initialized, the compiler
4803 emits a warning if it cannot prove the uninitialized paths are not
4804 executed at run time.
4805 .Sp
4806 These warnings are only possible in optimizing compilation, because otherwise
4807 \&\s-1GCC\s0 does not keep track of the state of variables.
4808 .Sp
4809 These warnings are made optional because \s-1GCC\s0 may not be able to determine when
4810 the code is correct in spite of appearing to have an error.  Here is one
4811 example of how this can happen:
4812 .Sp
4813 .Vb 12
4814 \&        {
4815 \&          int x;
4816 \&          switch (y)
4817 \&            {
4818 \&            case 1: x = 1;
4819 \&              break;
4820 \&            case 2: x = 4;
4821 \&              break;
4822 \&            case 3: x = 5;
4823 \&            }
4824 \&          foo (x);
4825 \&        }
4826 .Ve
4827 .Sp
4828 If the value of \f(CW\*(C`y\*(C'\fR is always 1, 2 or 3, then \f(CW\*(C`x\*(C'\fR is
4829 always initialized, but \s-1GCC\s0 doesn't know this. To suppress the
4830 warning, you need to provide a default case with \fBassert\fR\|(0) or
4831 similar code.
4832 .Sp
4833 This option also warns when a non-volatile automatic variable might be
4834 changed by a call to \f(CW\*(C`longjmp\*(C'\fR.
4835 The compiler sees only the calls to \f(CW\*(C`setjmp\*(C'\fR.  It cannot know
4836 where \f(CW\*(C`longjmp\*(C'\fR will be called; in fact, a signal handler could
4837 call it at any point in the code.  As a result, you may get a warning
4838 even when there is in fact no problem because \f(CW\*(C`longjmp\*(C'\fR cannot
4839 in fact be called at the place that would cause a problem.
4840 .Sp
4841 Some spurious warnings can be avoided if you declare all the functions
4842 you use that never return as \f(CW\*(C`noreturn\*(C'\fR.
4843 .Sp
4844 This warning is enabled by \fB\-Wall\fR or \fB\-Wextra\fR.
4845 .IP "\fB\-Wunknown\-pragmas\fR" 4
4846 .IX Item "-Wunknown-pragmas"
4847 Warn when a \f(CW\*(C`#pragma\*(C'\fR directive is encountered that is not understood by 
4848 \&\s-1GCC.\s0  If this command-line option is used, warnings are even issued
4849 for unknown pragmas in system header files.  This is not the case if
4850 the warnings are only enabled by the \fB\-Wall\fR command-line option.
4851 .IP "\fB\-Wno\-pragmas\fR" 4
4852 .IX Item "-Wno-pragmas"
4853 Do not warn about misuses of pragmas, such as incorrect parameters,
4854 invalid syntax, or conflicts between pragmas.  See also
4855 \&\fB\-Wunknown\-pragmas\fR.
4856 .IP "\fB\-Wstrict\-aliasing\fR" 4
4857 .IX Item "-Wstrict-aliasing"
4858 This option is only active when \fB\-fstrict\-aliasing\fR is active.
4859 It warns about code that might break the strict aliasing rules that the
4860 compiler is using for optimization.  The warning does not catch all
4861 cases, but does attempt to catch the more common pitfalls.  It is
4862 included in \fB\-Wall\fR.
4863 It is equivalent to \fB\-Wstrict\-aliasing=3\fR
4864 .IP "\fB\-Wstrict\-aliasing=n\fR" 4
4865 .IX Item "-Wstrict-aliasing=n"
4866 This option is only active when \fB\-fstrict\-aliasing\fR is active.
4867 It warns about code that might break the strict aliasing rules that the
4868 compiler is using for optimization.
4869 Higher levels correspond to higher accuracy (fewer false positives).
4870 Higher levels also correspond to more effort, similar to the way \fB\-O\fR 
4871 works.
4872 \&\fB\-Wstrict\-aliasing\fR is equivalent to \fB\-Wstrict\-aliasing=3\fR.
4873 .Sp
4874 Level 1: Most aggressive, quick, least accurate.
4875 Possibly useful when higher levels
4876 do not warn but \fB\-fstrict\-aliasing\fR still breaks the code, as it has very few
4877 false negatives.  However, it has many false positives.
4878 Warns for all pointer conversions between possibly incompatible types,
4879 even if never dereferenced.  Runs in the front end only.
4880 .Sp
4881 Level 2: Aggressive, quick, not too precise.
4882 May still have many false positives (not as many as level 1 though),
4883 and few false negatives (but possibly more than level 1).
4884 Unlike level 1, it only warns when an address is taken.  Warns about
4885 incomplete types.  Runs in the front end only.
4886 .Sp
4887 Level 3 (default for \fB\-Wstrict\-aliasing\fR):
4888 Should have very few false positives and few false
4889 negatives.  Slightly slower than levels 1 or 2 when optimization is enabled.
4890 Takes care of the common pun+dereference pattern in the front end:
4891 \&\f(CW\*(C`*(int*)&some_float\*(C'\fR.
4892 If optimization is enabled, it also runs in the back end, where it deals
4893 with multiple statement cases using flow-sensitive points-to information.
4894 Only warns when the converted pointer is dereferenced.
4895 Does not warn about incomplete types.
4896 .IP "\fB\-Wstrict\-overflow\fR" 4
4897 .IX Item "-Wstrict-overflow"
4898 .PD 0
4899 .IP "\fB\-Wstrict\-overflow=\fR\fIn\fR" 4
4900 .IX Item "-Wstrict-overflow=n"
4901 .PD
4902 This option is only active when signed overflow is undefined.
4903 It warns about cases where the compiler optimizes based on the
4904 assumption that signed overflow does not occur.  Note that it does not
4905 warn about all cases where the code might overflow: it only warns
4906 about cases where the compiler implements some optimization.  Thus
4907 this warning depends on the optimization level.
4908 .Sp
4909 An optimization that assumes that signed overflow does not occur is
4910 perfectly safe if the values of the variables involved are such that
4911 overflow never does, in fact, occur.  Therefore this warning can
4912 easily give a false positive: a warning about code that is not
4913 actually a problem.  To help focus on important issues, several
4914 warning levels are defined.  No warnings are issued for the use of
4915 undefined signed overflow when estimating how many iterations a loop
4916 requires, in particular when determining whether a loop will be
4917 executed at all.
4918 .RS 4
4919 .IP "\fB\-Wstrict\-overflow=1\fR" 4
4920 .IX Item "-Wstrict-overflow=1"
4921 Warn about cases that are both questionable and easy to avoid.  For
4922 example the compiler simplifies
4923 \&\f(CW\*(C`x + 1 > x\*(C'\fR to \f(CW1\fR.  This level of
4924 \&\fB\-Wstrict\-overflow\fR is enabled by \fB\-Wall\fR; higher levels
4925 are not, and must be explicitly requested.
4926 .IP "\fB\-Wstrict\-overflow=2\fR" 4
4927 .IX Item "-Wstrict-overflow=2"
4928 Also warn about other cases where a comparison is simplified to a
4929 constant.  For example: \f(CW\*(C`abs (x) >= 0\*(C'\fR.  This can only be
4930 simplified when signed integer overflow is undefined, because
4931 \&\f(CW\*(C`abs (INT_MIN)\*(C'\fR overflows to \f(CW\*(C`INT_MIN\*(C'\fR, which is less than
4932 zero.  \fB\-Wstrict\-overflow\fR (with no level) is the same as
4933 \&\fB\-Wstrict\-overflow=2\fR.
4934 .IP "\fB\-Wstrict\-overflow=3\fR" 4
4935 .IX Item "-Wstrict-overflow=3"
4936 Also warn about other cases where a comparison is simplified.  For
4937 example: \f(CW\*(C`x + 1 > 1\*(C'\fR is simplified to \f(CW\*(C`x > 0\*(C'\fR.
4938 .IP "\fB\-Wstrict\-overflow=4\fR" 4
4939 .IX Item "-Wstrict-overflow=4"
4940 Also warn about other simplifications not covered by the above cases.
4941 For example: \f(CW\*(C`(x * 10) / 5\*(C'\fR is simplified to \f(CW\*(C`x * 2\*(C'\fR.
4942 .IP "\fB\-Wstrict\-overflow=5\fR" 4
4943 .IX Item "-Wstrict-overflow=5"
4944 Also warn about cases where the compiler reduces the magnitude of a
4945 constant involved in a comparison.  For example: \f(CW\*(C`x + 2 > y\*(C'\fR is
4946 simplified to \f(CW\*(C`x + 1 >= y\*(C'\fR.  This is reported only at the
4947 highest warning level because this simplification applies to many
4948 comparisons, so this warning level gives a very large number of
4949 false positives.
4950 .RE
4951 .RS 4
4952 .RE
4953 .IP "\fB\-Wstringop\-overflow\fR" 4
4954 .IX Item "-Wstringop-overflow"
4955 .PD 0
4956 .IP "\fB\-Wstringop\-overflow=\fR\fItype\fR" 4
4957 .IX Item "-Wstringop-overflow=type"
4958 .PD
4959 Warn for calls to string manipulation functions such as \f(CW\*(C`memcpy\*(C'\fR and
4960 \&\f(CW\*(C`strcpy\*(C'\fR that are determined to overflow the destination buffer.  The
4961 optional argument is one greater than the type of Object Size Checking to
4962 perform to determine the size of the destination.  
4963 The argument is meaningful only for functions that operate on character arrays
4964 but not for raw memory functions like \f(CW\*(C`memcpy\*(C'\fR which always make use
4965 of Object Size type\-0.  The option also warns for calls that specify a size
4966 in excess of the largest possible object or at most \f(CW\*(C`SIZE_MAX / 2\*(C'\fR bytes.
4967 The option produces the best results with optimization enabled but can detect
4968 a small subset of simple buffer overflows even without optimization in
4969 calls to the \s-1GCC\s0 built-in functions like \f(CW\*(C`_\|_builtin_memcpy\*(C'\fR that
4970 correspond to the standard functions.  In any case, the option warns about
4971 just a subset of buffer overflows detected by the corresponding overflow
4972 checking built-ins.  For example, the option will issue a warning for
4973 the \f(CW\*(C`strcpy\*(C'\fR call below because it copies at least 5 characters
4974 (the string \f(CW"blue"\fR including the terminating \s-1NUL\s0) into the buffer
4975 of size 4.
4976 .Sp
4977 .Vb 11
4978 \&        enum Color { blue, purple, yellow };
4979 \&        const char* f (enum Color clr)
4980 \&        {
4981 \&          static char buf [4];
4982 \&          const char *str;
4983 \&          switch (clr)
4984 \&            {
4985 \&              case blue: str = "blue"; break;
4986 \&              case purple: str = "purple"; break;
4987 \&              case yellow: str = "yellow"; break;
4988 \&            }
4989 \&        
4990 \&          return strcpy (buf, str);   // warning here
4991 \&        }
4992 .Ve
4993 .Sp
4994 Option \fB\-Wstringop\-overflow=2\fR is enabled by default.
4995 .RS 4
4996 .IP "\fB\-Wstringop\-overflow\fR" 4
4997 .IX Item "-Wstringop-overflow"
4998 .PD 0
4999 .IP "\fB\-Wstringop\-overflow=1\fR" 4
5000 .IX Item "-Wstringop-overflow=1"
5001 .PD
5002 The \fB\-Wstringop\-overflow=1\fR option uses type-zero Object Size Checking
5003 to determine the sizes of destination objects.  This is the default setting
5004 of the option.  At this setting the option will not warn for writes past
5005 the end of subobjects of larger objects accessed by pointers unless the
5006 size of the largest surrounding object is known.  When the destination may
5007 be one of several objects it is assumed to be the largest one of them.  On
5008 Linux systems, when optimization is enabled at this setting the option warns
5009 for the same code as when the \f(CW\*(C`_FORTIFY_SOURCE\*(C'\fR macro is defined to
5010 a non-zero value.
5011 .IP "\fB\-Wstringop\-overflow=2\fR" 4
5012 .IX Item "-Wstringop-overflow=2"
5013 The \fB\-Wstringop\-overflow=2\fR option uses type-one Object Size Checking
5014 to determine the sizes of destination objects.  At this setting the option
5015 will warn about overflows when writing to members of the largest complete
5016 objects whose exact size is known.  It will, however, not warn for excessive
5017 writes to the same members of unknown objects referenced by pointers since
5018 they may point to arrays containing unknown numbers of elements.
5019 .IP "\fB\-Wstringop\-overflow=3\fR" 4
5020 .IX Item "-Wstringop-overflow=3"
5021 The \fB\-Wstringop\-overflow=3\fR option uses type-two Object Size Checking
5022 to determine the sizes of destination objects.  At this setting the option
5023 warns about overflowing the smallest object or data member.  This is the
5024 most restrictive setting of the option that may result in warnings for safe
5025 code.
5026 .IP "\fB\-Wstringop\-overflow=4\fR" 4
5027 .IX Item "-Wstringop-overflow=4"
5028 The \fB\-Wstringop\-overflow=4\fR option uses type-three Object Size Checking
5029 to determine the sizes of destination objects.  At this setting the option
5030 will warn about overflowing any data members, and when the destination is
5031 one of several objects it uses the size of the largest of them to decide
5032 whether to issue a warning.  Similarly to \fB\-Wstringop\-overflow=3\fR this
5033 setting of the option may result in warnings for benign code.
5034 .RE
5035 .RS 4
5036 .RE
5037 .IP "\fB\-Wstringop\-truncation\fR" 4
5038 .IX Item "-Wstringop-truncation"
5039 Warn for calls to bounded string manipulation functions such as \f(CW\*(C`strncat\*(C'\fR,
5040 \&\f(CW\*(C`strncpy\*(C'\fR, and \f(CW\*(C`stpncpy\*(C'\fR that may either truncate the copied string
5041 or leave the destination unchanged.
5042 .Sp
5043 In the following example, the call to \f(CW\*(C`strncat\*(C'\fR specifies a bound that
5044 is less than the length of the source string.  As a result, the copy of
5045 the source will be truncated and so the call is diagnosed.  To avoid the
5046 warning use \f(CW\*(C`bufsize \- strlen (buf) \- 1)\*(C'\fR as the bound.
5047 .Sp
5048 .Vb 4
5049 \&        void append (char *buf, size_t bufsize)
5050 \&        {
5051 \&          strncat (buf, ".txt", 3);
5052 \&        }
5053 .Ve
5054 .Sp
5055 As another example, the following call to \f(CW\*(C`strncpy\*(C'\fR results in copying
5056 to \f(CW\*(C`d\*(C'\fR just the characters preceding the terminating \s-1NUL,\s0 without
5057 appending the \s-1NUL\s0 to the end.  Assuming the result of \f(CW\*(C`strncpy\*(C'\fR is
5058 necessarily a NUL-terminated string is a common mistake, and so the call
5059 is diagnosed.  To avoid the warning when the result is not expected to be
5060 NUL-terminated, call \f(CW\*(C`memcpy\*(C'\fR instead.
5061 .Sp
5062 .Vb 4
5063 \&        void copy (char *d, const char *s)
5064 \&        {
5065 \&          strncpy (d, s, strlen (s));
5066 \&        }
5067 .Ve
5068 .Sp
5069 In the following example, the call to \f(CW\*(C`strncpy\*(C'\fR specifies the size
5070 of the destination buffer as the bound.  If the length of the source
5071 string is equal to or greater than this size the result of the copy will
5072 not be NUL-terminated.  Therefore, the call is also diagnosed.  To avoid
5073 the warning, specify \f(CW\*(C`sizeof buf \- 1\*(C'\fR as the bound and set the last
5074 element of the buffer to \f(CW\*(C`NUL\*(C'\fR.
5075 .Sp
5076 .Vb 6
5077 \&        void copy (const char *s)
5078 \&        {
5079 \&          char buf[80];
5080 \&          strncpy (buf, s, sizeof buf);
5081 \&          ...
5082 \&        }
5083 .Ve
5084 .Sp
5085 In situations where a character array is intended to store a sequence
5086 of bytes with no terminating \f(CW\*(C`NUL\*(C'\fR such an array may be annotated
5087 with attribute \f(CW\*(C`nonstring\*(C'\fR to avoid this warning.  Such arrays,
5088 however, are not suitable arguments to functions that expect
5089 \&\f(CW\*(C`NUL\*(C'\fR\-terminated strings.  To help detect accidental misuses of
5090 such arrays \s-1GCC\s0 issues warnings unless it can prove that the use is
5091 safe.
5092 .Sp
5093 Option \fB\-Wstringop\-truncation\fR is enabled by \fB\-Wall\fR.
5094 .IP "\fB\-Wsuggest\-attribute=\fR[\fBpure\fR|\fBconst\fR|\fBnoreturn\fR|\fBformat\fR|\fBcold\fR|\fBmalloc\fR]" 4
5095 .IX Item "-Wsuggest-attribute=[pure|const|noreturn|format|cold|malloc]"
5096 Warn for cases where adding an attribute may be beneficial. The
5097 attributes currently supported are listed below.
5098 .RS 4
5099 .IP "\fB\-Wsuggest\-attribute=pure\fR" 4
5100 .IX Item "-Wsuggest-attribute=pure"
5101 .PD 0
5102 .IP "\fB\-Wsuggest\-attribute=const\fR" 4
5103 .IX Item "-Wsuggest-attribute=const"
5104 .IP "\fB\-Wsuggest\-attribute=noreturn\fR" 4
5105 .IX Item "-Wsuggest-attribute=noreturn"
5106 .IP "\fB\-Wsuggest\-attribute=malloc\fR" 4
5107 .IX Item "-Wsuggest-attribute=malloc"
5108 .PD
5109 Warn about functions that might be candidates for attributes
5110 \&\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
5111 only warns for functions visible in other compilation units or (in the case of
5112 \&\f(CW\*(C`pure\*(C'\fR and \f(CW\*(C`const\*(C'\fR) if it cannot prove that the function returns
5113 normally. A function returns normally if it doesn't contain an infinite loop or
5114 return abnormally by throwing, calling \f(CW\*(C`abort\*(C'\fR or trapping.  This analysis
5115 requires option \fB\-fipa\-pure\-const\fR, which is enabled by default at
5116 \&\fB\-O\fR and higher.  Higher optimization levels improve the accuracy
5117 of the analysis.
5118 .IP "\fB\-Wsuggest\-attribute=format\fR" 4
5119 .IX Item "-Wsuggest-attribute=format"
5120 .PD 0
5121 .IP "\fB\-Wmissing\-format\-attribute\fR" 4
5122 .IX Item "-Wmissing-format-attribute"
5123 .PD
5124 Warn about function pointers that might be candidates for \f(CW\*(C`format\*(C'\fR
5125 attributes.  Note these are only possible candidates, not absolute ones.
5126 \&\s-1GCC\s0 guesses that function pointers with \f(CW\*(C`format\*(C'\fR attributes that
5127 are used in assignment, initialization, parameter passing or return
5128 statements should have a corresponding \f(CW\*(C`format\*(C'\fR attribute in the
5129 resulting type.  I.e. the left-hand side of the assignment or
5130 initialization, the type of the parameter variable, or the return type
5131 of the containing function respectively should also have a \f(CW\*(C`format\*(C'\fR
5132 attribute to avoid the warning.
5133 .Sp
5134 \&\s-1GCC\s0 also warns about function definitions that might be
5135 candidates for \f(CW\*(C`format\*(C'\fR attributes.  Again, these are only
5136 possible candidates.  \s-1GCC\s0 guesses that \f(CW\*(C`format\*(C'\fR attributes
5137 might be appropriate for any function that calls a function like
5138 \&\f(CW\*(C`vprintf\*(C'\fR or \f(CW\*(C`vscanf\*(C'\fR, but this might not always be the
5139 case, and some functions for which \f(CW\*(C`format\*(C'\fR attributes are
5140 appropriate may not be detected.
5141 .IP "\fB\-Wsuggest\-attribute=cold\fR" 4
5142 .IX Item "-Wsuggest-attribute=cold"
5143 Warn about functions that might be candidates for \f(CW\*(C`cold\*(C'\fR attribute.  This
5144 is based on static detection and generally will only warn about functions which
5145 always leads to a call to another \f(CW\*(C`cold\*(C'\fR function such as wrappers of
5146 \&\*(C+ \f(CW\*(C`throw\*(C'\fR or fatal error reporting functions leading to \f(CW\*(C`abort\*(C'\fR.
5147 .RE
5148 .RS 4
5149 .RE
5150 .IP "\fB\-Wsuggest\-final\-types\fR" 4
5151 .IX Item "-Wsuggest-final-types"
5152 Warn about types with virtual methods where code quality would be improved
5153 if the type were declared with the \*(C+11 \f(CW\*(C`final\*(C'\fR specifier, 
5154 or, if possible,
5155 declared in an anonymous namespace. This allows \s-1GCC\s0 to more aggressively
5156 devirtualize the polymorphic calls. This warning is more effective with link
5157 time optimization, where the information about the class hierarchy graph is
5158 more complete.
5159 .IP "\fB\-Wsuggest\-final\-methods\fR" 4
5160 .IX Item "-Wsuggest-final-methods"
5161 Warn about virtual methods where code quality would be improved if the method
5162 were declared with the \*(C+11 \f(CW\*(C`final\*(C'\fR specifier, 
5163 or, if possible, its type were
5164 declared in an anonymous namespace or with the \f(CW\*(C`final\*(C'\fR specifier.
5165 This warning is
5166 more effective with link-time optimization, where the information about the
5167 class hierarchy graph is more complete. It is recommended to first consider
5168 suggestions of \fB\-Wsuggest\-final\-types\fR and then rebuild with new
5169 annotations.
5170 .IP "\fB\-Wsuggest\-override\fR" 4
5171 .IX Item "-Wsuggest-override"
5172 Warn about overriding virtual functions that are not marked with the override
5173 keyword.
5174 .IP "\fB\-Walloc\-zero\fR" 4
5175 .IX Item "-Walloc-zero"
5176 Warn about calls to allocation functions decorated with attribute
5177 \&\f(CW\*(C`alloc_size\*(C'\fR that specify zero bytes, including those to the built-in
5178 forms of the functions \f(CW\*(C`aligned_alloc\*(C'\fR, \f(CW\*(C`alloca\*(C'\fR, \f(CW\*(C`calloc\*(C'\fR,
5179 \&\f(CW\*(C`malloc\*(C'\fR, and \f(CW\*(C`realloc\*(C'\fR.  Because the behavior of these functions
5180 when called with a zero size differs among implementations (and in the case
5181 of \f(CW\*(C`realloc\*(C'\fR has been deprecated) relying on it may result in subtle
5182 portability bugs and should be avoided.
5183 .IP "\fB\-Walloc\-size\-larger\-than=\fR\fIn\fR" 4
5184 .IX Item "-Walloc-size-larger-than=n"
5185 Warn about calls to functions decorated with attribute \f(CW\*(C`alloc_size\*(C'\fR
5186 that attempt to allocate objects larger than the specified number of bytes,
5187 or where the result of the size computation in an integer type with infinite
5188 precision would exceed \f(CW\*(C`SIZE_MAX / 2\*(C'\fR.  The option argument \fIn\fR
5189 may end in one of the standard suffixes designating a multiple of bytes
5190 such as \f(CW\*(C`kB\*(C'\fR and \f(CW\*(C`KiB\*(C'\fR for kilobyte and kibibyte, respectively,
5191 \&\f(CW\*(C`MB\*(C'\fR and \f(CW\*(C`MiB\*(C'\fR for megabyte and mebibyte, and so on.
5192 \&\fB\-Walloc\-size\-larger\-than=\fR\fI\s-1PTRDIFF_MAX\s0\fR is enabled by default.
5193 Warnings controlled by the option can be disabled by specifying \fIn\fR
5194 of \fI\s-1SIZE_MAX\s0\fR or more.
5195 .IP "\fB\-Walloca\fR" 4
5196 .IX Item "-Walloca"
5197 This option warns on all uses of \f(CW\*(C`alloca\*(C'\fR in the source.
5198 .IP "\fB\-Walloca\-larger\-than=\fR\fIn\fR" 4
5199 .IX Item "-Walloca-larger-than=n"
5200 This option warns on calls to \f(CW\*(C`alloca\*(C'\fR that are not bounded by a
5201 controlling predicate limiting its argument of integer type to at most
5202 \&\fIn\fR bytes, or calls to \f(CW\*(C`alloca\*(C'\fR where the bound is unknown.
5203 Arguments of non-integer types are considered unbounded even if they
5204 appear to be constrained to the expected range.
5205 .Sp
5206 For example, a bounded case of \f(CW\*(C`alloca\*(C'\fR could be:
5207 .Sp
5208 .Vb 9
5209 \&        void func (size_t n)
5210 \&        {
5211 \&          void *p;
5212 \&          if (n <= 1000)
5213 \&            p = alloca (n);
5214 \&          else
5215 \&            p = malloc (n);
5216 \&          f (p);
5217 \&        }
5218 .Ve
5219 .Sp
5220 In the above example, passing \f(CW\*(C`\-Walloca\-larger\-than=1000\*(C'\fR would not
5221 issue a warning because the call to \f(CW\*(C`alloca\*(C'\fR is known to be at most
5222 1000 bytes.  However, if \f(CW\*(C`\-Walloca\-larger\-than=500\*(C'\fR were passed,
5223 the compiler would emit a warning.
5224 .Sp
5225 Unbounded uses, on the other hand, are uses of \f(CW\*(C`alloca\*(C'\fR with no
5226 controlling predicate constraining its integer argument.  For example:
5227 .Sp
5228 .Vb 5
5229 \&        void func ()
5230 \&        {
5231 \&          void *p = alloca (n);
5232 \&          f (p);
5233 \&        }
5234 .Ve
5235 .Sp
5236 If \f(CW\*(C`\-Walloca\-larger\-than=500\*(C'\fR were passed, the above would trigger
5237 a warning, but this time because of the lack of bounds checking.
5238 .Sp
5239 Note, that even seemingly correct code involving signed integers could
5240 cause a warning:
5241 .Sp
5242 .Vb 8
5243 \&        void func (signed int n)
5244 \&        {
5245 \&          if (n < 500)
5246 \&            {
5247 \&              p = alloca (n);
5248 \&              f (p);
5249 \&            }
5250 \&        }
5251 .Ve
5252 .Sp
5253 In the above example, \fIn\fR could be negative, causing a larger than
5254 expected argument to be implicitly cast into the \f(CW\*(C`alloca\*(C'\fR call.
5255 .Sp
5256 This option also warns when \f(CW\*(C`alloca\*(C'\fR is used in a loop.
5257 .Sp
5258 This warning is not enabled by \fB\-Wall\fR, and is only active when
5259 \&\fB\-ftree\-vrp\fR is active (default for \fB\-O2\fR and above).
5260 .Sp
5261 See also \fB\-Wvla\-larger\-than=\fR\fIn\fR.
5262 .IP "\fB\-Warray\-bounds\fR" 4
5263 .IX Item "-Warray-bounds"
5264 .PD 0
5265 .IP "\fB\-Warray\-bounds=\fR\fIn\fR" 4
5266 .IX Item "-Warray-bounds=n"
5267 .PD
5268 This option is only active when \fB\-ftree\-vrp\fR is active
5269 (default for \fB\-O2\fR and above). It warns about subscripts to arrays
5270 that are always out of bounds. This warning is enabled by \fB\-Wall\fR.
5271 .RS 4
5272 .IP "\fB\-Warray\-bounds=1\fR" 4
5273 .IX Item "-Warray-bounds=1"
5274 This is the warning level of \fB\-Warray\-bounds\fR and is enabled
5275 by \fB\-Wall\fR; higher levels are not, and must be explicitly requested.
5276 .IP "\fB\-Warray\-bounds=2\fR" 4
5277 .IX Item "-Warray-bounds=2"
5278 This warning level also warns about out of bounds access for
5279 arrays at the end of a struct and for arrays accessed through
5280 pointers. This warning level may give a larger number of
5281 false positives and is deactivated by default.
5282 .RE
5283 .RS 4
5284 .RE
5285 .IP "\fB\-Wattribute\-alias\fR" 4
5286 .IX Item "-Wattribute-alias"
5287 Warn about declarations using the \f(CW\*(C`alias\*(C'\fR and similar attributes whose
5288 target is incompatible with the type of the alias.
5289 .IP "\fB\-Wbool\-compare\fR" 4
5290 .IX Item "-Wbool-compare"
5291 Warn about boolean expression compared with an integer value different from
5292 \&\f(CW\*(C`true\*(C'\fR/\f(CW\*(C`false\*(C'\fR.  For instance, the following comparison is
5293 always false:
5294 .Sp
5295 .Vb 3
5296 \&        int n = 5;
5297 \&        ...
5298 \&        if ((n > 1) == 2) { ... }
5299 .Ve
5300 .Sp
5301 This warning is enabled by \fB\-Wall\fR.
5302 .IP "\fB\-Wbool\-operation\fR" 4
5303 .IX Item "-Wbool-operation"
5304 Warn about suspicious operations on expressions of a boolean type.  For
5305 instance, bitwise negation of a boolean is very likely a bug in the program.
5306 For C, this warning also warns about incrementing or decrementing a boolean,
5307 which rarely makes sense.  (In \*(C+, decrementing a boolean is always invalid.
5308 Incrementing a boolean is invalid in \*(C+17, and deprecated otherwise.)
5309 .Sp
5310 This warning is enabled by \fB\-Wall\fR.
5311 .IP "\fB\-Wduplicated\-branches\fR" 4
5312 .IX Item "-Wduplicated-branches"
5313 Warn when an if-else has identical branches.  This warning detects cases like
5314 .Sp
5315 .Vb 4
5316 \&        if (p != NULL)
5317 \&          return 0;
5318 \&        else
5319 \&          return 0;
5320 .Ve
5321 .Sp
5322 It doesn't warn when both branches contain just a null statement.  This warning
5323 also warn for conditional operators:
5324 .Sp
5325 .Vb 1
5326 \&          int i = x ? *p : *p;
5327 .Ve
5328 .IP "\fB\-Wduplicated\-cond\fR" 4
5329 .IX Item "-Wduplicated-cond"
5330 Warn about duplicated conditions in an if-else-if chain.  For instance,
5331 warn for the following code:
5332 .Sp
5333 .Vb 2
5334 \&        if (p\->q != NULL) { ... }
5335 \&        else if (p\->q != NULL) { ... }
5336 .Ve
5337 .IP "\fB\-Wframe\-address\fR" 4
5338 .IX Item "-Wframe-address"
5339 Warn when the \fB_\|_builtin_frame_address\fR or \fB_\|_builtin_return_address\fR
5340 is called with an argument greater than 0.  Such calls may return indeterminate
5341 values or crash the program.  The warning is included in \fB\-Wall\fR.
5342 .IP "\fB\-Wno\-discarded\-qualifiers\fR (C and Objective-C only)" 4
5343 .IX Item "-Wno-discarded-qualifiers (C and Objective-C only)"
5344 Do not warn if type qualifiers on pointers are being discarded.
5345 Typically, the compiler warns if a \f(CW\*(C`const char *\*(C'\fR variable is
5346 passed to a function that takes a \f(CW\*(C`char *\*(C'\fR parameter.  This option
5347 can be used to suppress such a warning.
5348 .IP "\fB\-Wno\-discarded\-array\-qualifiers\fR (C and Objective-C only)" 4
5349 .IX Item "-Wno-discarded-array-qualifiers (C and Objective-C only)"
5350 Do not warn if type qualifiers on arrays which are pointer targets
5351 are being discarded. Typically, the compiler warns if a
5352 \&\f(CW\*(C`const int (*)[]\*(C'\fR variable is passed to a function that
5353 takes a \f(CW\*(C`int (*)[]\*(C'\fR parameter.  This option can be used to
5354 suppress such a warning.
5355 .IP "\fB\-Wno\-incompatible\-pointer\-types\fR (C and Objective-C only)" 4
5356 .IX Item "-Wno-incompatible-pointer-types (C and Objective-C only)"
5357 Do not warn when there is a conversion between pointers that have incompatible
5358 types.  This warning is for cases not covered by \fB\-Wno\-pointer\-sign\fR,
5359 which warns for pointer argument passing or assignment with different
5360 signedness.
5361 .IP "\fB\-Wno\-int\-conversion\fR (C and Objective-C only)" 4
5362 .IX Item "-Wno-int-conversion (C and Objective-C only)"
5363 Do not warn about incompatible integer to pointer and pointer to integer
5364 conversions.  This warning is about implicit conversions; for explicit
5365 conversions the warnings \fB\-Wno\-int\-to\-pointer\-cast\fR and
5366 \&\fB\-Wno\-pointer\-to\-int\-cast\fR may be used.
5367 .IP "\fB\-Wno\-div\-by\-zero\fR" 4
5368 .IX Item "-Wno-div-by-zero"
5369 Do not warn about compile-time integer division by zero.  Floating-point
5370 division by zero is not warned about, as it can be a legitimate way of
5371 obtaining infinities and NaNs.
5372 .IP "\fB\-Wsystem\-headers\fR" 4
5373 .IX Item "-Wsystem-headers"
5374 Print warning messages for constructs found in system header files.
5375 Warnings from system headers are normally suppressed, on the assumption
5376 that they usually do not indicate real problems and would only make the
5377 compiler output harder to read.  Using this command-line option tells
5378 \&\s-1GCC\s0 to emit warnings from system headers as if they occurred in user
5379 code.  However, note that using \fB\-Wall\fR in conjunction with this
5380 option does \fInot\fR warn about unknown pragmas in system
5381 headers\-\-\-for that, \fB\-Wunknown\-pragmas\fR must also be used.
5382 .IP "\fB\-Wtautological\-compare\fR" 4
5383 .IX Item "-Wtautological-compare"
5384 Warn if a self-comparison always evaluates to true or false.  This
5385 warning detects various mistakes such as:
5386 .Sp
5387 .Vb 3
5388 \&        int i = 1;
5389 \&        ...
5390 \&        if (i > i) { ... }
5391 .Ve
5392 .Sp
5393 This warning also warns about bitwise comparisons that always evaluate
5394 to true or false, for instance:
5395 .Sp
5396 .Vb 1
5397 \&        if ((a & 16) == 10) { ... }
5398 .Ve
5399 .Sp
5400 will always be false.
5401 .Sp
5402 This warning is enabled by \fB\-Wall\fR.
5403 .IP "\fB\-Wtrampolines\fR" 4
5404 .IX Item "-Wtrampolines"
5405 Warn about trampolines generated for pointers to nested functions.
5406 A trampoline is a small piece of data or code that is created at run
5407 time on the stack when the address of a nested function is taken, and is
5408 used to call the nested function indirectly.  For some targets, it is
5409 made up of data only and thus requires no special treatment.  But, for
5410 most targets, it is made up of code and thus requires the stack to be
5411 made executable in order for the program to work properly.
5412 .IP "\fB\-Wfloat\-equal\fR" 4
5413 .IX Item "-Wfloat-equal"
5414 Warn if floating-point values are used in equality comparisons.
5415 .Sp
5416 The idea behind this is that sometimes it is convenient (for the
5417 programmer) to consider floating-point values as approximations to
5418 infinitely precise real numbers.  If you are doing this, then you need
5419 to compute (by analyzing the code, or in some other way) the maximum or
5420 likely maximum error that the computation introduces, and allow for it
5421 when performing comparisons (and when producing output, but that's a
5422 different problem).  In particular, instead of testing for equality, you
5423 should check to see whether the two values have ranges that overlap; and
5424 this is done with the relational operators, so equality comparisons are
5425 probably mistaken.
5426 .IP "\fB\-Wtraditional\fR (C and Objective-C only)" 4
5427 .IX Item "-Wtraditional (C and Objective-C only)"
5428 Warn about certain constructs that behave differently in traditional and
5429 \&\s-1ISO C.\s0  Also warn about \s-1ISO C\s0 constructs that have no traditional C
5430 equivalent, and/or problematic constructs that should be avoided.
5431 .RS 4
5432 .IP "*" 4
5433 Macro parameters that appear within string literals in the macro body.
5434 In traditional C macro replacement takes place within string literals,
5435 but in \s-1ISO C\s0 it does not.
5436 .IP "*" 4
5437 In traditional C, some preprocessor directives did not exist.
5438 Traditional preprocessors only considered a line to be a directive
5439 if the \fB#\fR appeared in column 1 on the line.  Therefore
5440 \&\fB\-Wtraditional\fR warns about directives that traditional C
5441 understands but ignores because the \fB#\fR does not appear as the
5442 first character on the line.  It also suggests you hide directives like
5443 \&\f(CW\*(C`#pragma\*(C'\fR not understood by traditional C by indenting them.  Some
5444 traditional implementations do not recognize \f(CW\*(C`#elif\*(C'\fR, so this option
5445 suggests avoiding it altogether.
5446 .IP "*" 4
5447 A function-like macro that appears without arguments.
5448 .IP "*" 4
5449 The unary plus operator.
5450 .IP "*" 4
5451 The \fBU\fR integer constant suffix, or the \fBF\fR or \fBL\fR floating-point
5452 constant suffixes.  (Traditional C does support the \fBL\fR suffix on integer
5453 constants.)  Note, these suffixes appear in macros defined in the system
5454 headers of most modern systems, e.g. the \fB_MIN\fR/\fB_MAX\fR macros in \f(CW\*(C`<limits.h>\*(C'\fR.
5455 Use of these macros in user code might normally lead to spurious
5456 warnings, however \s-1GCC\s0's integrated preprocessor has enough context to
5457 avoid warning in these cases.
5458 .IP "*" 4
5459 A function declared external in one block and then used after the end of
5460 the block.
5461 .IP "*" 4
5462 A \f(CW\*(C`switch\*(C'\fR statement has an operand of type \f(CW\*(C`long\*(C'\fR.
5463 .IP "*" 4
5464 A non\-\f(CW\*(C`static\*(C'\fR function declaration follows a \f(CW\*(C`static\*(C'\fR one.
5465 This construct is not accepted by some traditional C compilers.
5466 .IP "*" 4
5467 The \s-1ISO\s0 type of an integer constant has a different width or
5468 signedness from its traditional type.  This warning is only issued if
5469 the base of the constant is ten.  I.e. hexadecimal or octal values, which
5470 typically represent bit patterns, are not warned about.
5471 .IP "*" 4
5472 Usage of \s-1ISO\s0 string concatenation is detected.
5473 .IP "*" 4
5474 Initialization of automatic aggregates.
5475 .IP "*" 4
5476 Identifier conflicts with labels.  Traditional C lacks a separate
5477 namespace for labels.
5478 .IP "*" 4
5479 Initialization of unions.  If the initializer is zero, the warning is
5480 omitted.  This is done under the assumption that the zero initializer in
5481 user code appears conditioned on e.g. \f(CW\*(C`_\|_STDC_\|_\*(C'\fR to avoid missing
5482 initializer warnings and relies on default initialization to zero in the
5483 traditional C case.
5484 .IP "*" 4
5485 Conversions by prototypes between fixed/floating\-point values and vice
5486 versa.  The absence of these prototypes when compiling with traditional
5487 C causes serious problems.  This is a subset of the possible
5488 conversion warnings; for the full set use \fB\-Wtraditional\-conversion\fR.
5489 .IP "*" 4
5490 Use of \s-1ISO C\s0 style function definitions.  This warning intentionally is
5491 \&\fInot\fR issued for prototype declarations or variadic functions
5492 because these \s-1ISO C\s0 features appear in your code when using
5493 libiberty's traditional C compatibility macros, \f(CW\*(C`PARAMS\*(C'\fR and
5494 \&\f(CW\*(C`VPARAMS\*(C'\fR.  This warning is also bypassed for nested functions
5495 because that feature is already a \s-1GCC\s0 extension and thus not relevant to
5496 traditional C compatibility.
5497 .RE
5498 .RS 4
5499 .RE
5500 .IP "\fB\-Wtraditional\-conversion\fR (C and Objective-C only)" 4
5501 .IX Item "-Wtraditional-conversion (C and Objective-C only)"
5502 Warn if a prototype causes a type conversion that is different from what
5503 would happen to the same argument in the absence of a prototype.  This
5504 includes conversions of fixed point to floating and vice versa, and
5505 conversions changing the width or signedness of a fixed-point argument
5506 except when the same as the default promotion.
5507 .IP "\fB\-Wdeclaration\-after\-statement\fR (C and Objective-C only)" 4
5508 .IX Item "-Wdeclaration-after-statement (C and Objective-C only)"
5509 Warn when a declaration is found after a statement in a block.  This
5510 construct, known from \*(C+, was introduced with \s-1ISO C99\s0 and is by default
5511 allowed in \s-1GCC.\s0  It is not supported by \s-1ISO C90.\s0
5512 .IP "\fB\-Wshadow\fR" 4
5513 .IX Item "-Wshadow"
5514 Warn whenever a local variable or type declaration shadows another
5515 variable, parameter, type, class member (in \*(C+), or instance variable
5516 (in Objective-C) or whenever a built-in function is shadowed. Note
5517 that in \*(C+, the compiler warns if a local variable shadows an
5518 explicit typedef, but not if it shadows a struct/class/enum.
5519 Same as \fB\-Wshadow=global\fR.
5520 .IP "\fB\-Wno\-shadow\-ivar\fR (Objective-C only)" 4
5521 .IX Item "-Wno-shadow-ivar (Objective-C only)"
5522 Do not warn whenever a local variable shadows an instance variable in an
5523 Objective-C method.
5524 .IP "\fB\-Wshadow=global\fR" 4
5525 .IX Item "-Wshadow=global"
5526 The default for \fB\-Wshadow\fR. Warns for any (global) shadowing.
5527 .IP "\fB\-Wshadow=local\fR" 4
5528 .IX Item "-Wshadow=local"
5529 Warn when a local variable shadows another local variable or parameter.
5530 This warning is enabled by \fB\-Wshadow=global\fR.
5531 .IP "\fB\-Wshadow=compatible\-local\fR" 4
5532 .IX Item "-Wshadow=compatible-local"
5533 Warn when a local variable shadows another local variable or parameter
5534 whose type is compatible with that of the shadowing variable. In \*(C+,
5535 type compatibility here means the type of the shadowing variable can be
5536 converted to that of the shadowed variable. The creation of this flag
5537 (in addition to \fB\-Wshadow=local\fR) is based on the idea that when
5538 a local variable shadows another one of incompatible type, it is most
5539 likely intentional, not a bug or typo, as shown in the following example:
5540 .Sp
5541 .Vb 8
5542 \&        for (SomeIterator i = SomeObj.begin(); i != SomeObj.end(); ++i)
5543 \&        {
5544 \&          for (int i = 0; i < N; ++i)
5545 \&          {
5546 \&            ...
5547 \&          }
5548 \&          ...
5549 \&        }
5550 .Ve
5551 .Sp
5552 Since the two variable \f(CW\*(C`i\*(C'\fR in the example above have incompatible types,
5553 enabling only \fB\-Wshadow=compatible\-local\fR will not emit a warning.
5554 Because their types are incompatible, if a programmer accidentally uses one
5555 in place of the other, type checking will catch that and emit an error or
5556 warning. So not warning (about shadowing) in this case will not lead to
5557 undetected bugs. Use of this flag instead of \fB\-Wshadow=local\fR can
5558 possibly reduce the number of warnings triggered by intentional shadowing.
5559 .Sp
5560 This warning is enabled by \fB\-Wshadow=local\fR.
5561 .IP "\fB\-Wlarger\-than=\fR\fIlen\fR" 4
5562 .IX Item "-Wlarger-than=len"
5563 Warn whenever an object of larger than \fIlen\fR bytes is defined.
5564 .IP "\fB\-Wframe\-larger\-than=\fR\fIlen\fR" 4
5565 .IX Item "-Wframe-larger-than=len"
5566 Warn if the size of a function frame is larger than \fIlen\fR bytes.
5567 The computation done to determine the stack frame size is approximate
5568 and not conservative.
5569 The actual requirements may be somewhat greater than \fIlen\fR
5570 even if you do not get a warning.  In addition, any space allocated
5571 via \f(CW\*(C`alloca\*(C'\fR, variable-length arrays, or related constructs
5572 is not included by the compiler when determining
5573 whether or not to issue a warning.
5574 .IP "\fB\-Wno\-free\-nonheap\-object\fR" 4
5575 .IX Item "-Wno-free-nonheap-object"
5576 Do not warn when attempting to free an object that was not allocated
5577 on the heap.
5578 .IP "\fB\-Wstack\-usage=\fR\fIlen\fR" 4
5579 .IX Item "-Wstack-usage=len"
5580 Warn if the stack usage of a function might be larger than \fIlen\fR bytes.
5581 The computation done to determine the stack usage is conservative.
5582 Any space allocated via \f(CW\*(C`alloca\*(C'\fR, variable-length arrays, or related
5583 constructs is included by the compiler when determining whether or not to
5584 issue a warning.
5585 .Sp
5586 The message is in keeping with the output of \fB\-fstack\-usage\fR.
5587 .RS 4
5588 .IP "*" 4
5589 If the stack usage is fully static but exceeds the specified amount, it's:
5590 .Sp
5591 .Vb 1
5592 \&          warning: stack usage is 1120 bytes
5593 .Ve
5594 .IP "*" 4
5595 If the stack usage is (partly) dynamic but bounded, it's:
5596 .Sp
5597 .Vb 1
5598 \&          warning: stack usage might be 1648 bytes
5599 .Ve
5600 .IP "*" 4
5601 If the stack usage is (partly) dynamic and not bounded, it's:
5602 .Sp
5603 .Vb 1
5604 \&          warning: stack usage might be unbounded
5605 .Ve
5606 .RE
5607 .RS 4
5608 .RE
5609 .IP "\fB\-Wno\-pedantic\-ms\-format\fR (MinGW targets only)" 4
5610 .IX Item "-Wno-pedantic-ms-format (MinGW targets only)"
5611 When used in combination with \fB\-Wformat\fR
5612 and \fB\-pedantic\fR without \s-1GNU\s0 extensions, this option
5613 disables the warnings about non-ISO \f(CW\*(C`printf\*(C'\fR / \f(CW\*(C`scanf\*(C'\fR format
5614 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,
5615 which depend on the \s-1MS\s0 runtime.
5616 .IP "\fB\-Waligned\-new\fR" 4
5617 .IX Item "-Waligned-new"
5618 Warn about a new-expression of a type that requires greater alignment
5619 than the \f(CW\*(C`alignof(std::max_align_t)\*(C'\fR but uses an allocation
5620 function without an explicit alignment parameter. This option is
5621 enabled by \fB\-Wall\fR.
5622 .Sp
5623 Normally this only warns about global allocation functions, but
5624 \&\fB\-Waligned\-new=all\fR also warns about class member allocation
5625 functions.
5626 .IP "\fB\-Wplacement\-new\fR" 4
5627 .IX Item "-Wplacement-new"
5628 .PD 0
5629 .IP "\fB\-Wplacement\-new=\fR\fIn\fR" 4
5630 .IX Item "-Wplacement-new=n"
5631 .PD
5632 Warn about placement new expressions with undefined behavior, such as
5633 constructing an object in a buffer that is smaller than the type of
5634 the object.  For example, the placement new expression below is diagnosed
5635 because it attempts to construct an array of 64 integers in a buffer only
5636 64 bytes large.
5637 .Sp
5638 .Vb 2
5639 \&        char buf [64];
5640 \&        new (buf) int[64];
5641 .Ve
5642 .Sp
5643 This warning is enabled by default.
5644 .RS 4
5645 .IP "\fB\-Wplacement\-new=1\fR" 4
5646 .IX Item "-Wplacement-new=1"
5647 This is the default warning level of \fB\-Wplacement\-new\fR.  At this
5648 level the warning is not issued for some strictly undefined constructs that
5649 \&\s-1GCC\s0 allows as extensions for compatibility with legacy code.  For example,
5650 the following \f(CW\*(C`new\*(C'\fR expression is not diagnosed at this level even
5651 though it has undefined behavior according to the \*(C+ standard because
5652 it writes past the end of the one-element array.
5653 .Sp
5654 .Vb 3
5655 \&        struct S { int n, a[1]; };
5656 \&        S *s = (S *)malloc (sizeof *s + 31 * sizeof s\->a[0]);
5657 \&        new (s\->a)int [32]();
5658 .Ve
5659 .IP "\fB\-Wplacement\-new=2\fR" 4
5660 .IX Item "-Wplacement-new=2"
5661 At this level, in addition to diagnosing all the same constructs as at level
5662 1, a diagnostic is also issued for placement new expressions that construct
5663 an object in the last member of structure whose type is an array of a single
5664 element and whose size is less than the size of the object being constructed.
5665 While the previous example would be diagnosed, the following construct makes
5666 use of the flexible member array extension to avoid the warning at level 2.
5667 .Sp
5668 .Vb 3
5669 \&        struct S { int n, a[]; };
5670 \&        S *s = (S *)malloc (sizeof *s + 32 * sizeof s\->a[0]);
5671 \&        new (s\->a)int [32]();
5672 .Ve
5673 .RE
5674 .RS 4
5675 .RE
5676 .IP "\fB\-Wpointer\-arith\fR" 4
5677 .IX Item "-Wpointer-arith"
5678 Warn about anything that depends on the \*(L"size of\*(R" a function type or
5679 of \f(CW\*(C`void\*(C'\fR.  \s-1GNU C\s0 assigns these types a size of 1, for
5680 convenience in calculations with \f(CW\*(C`void *\*(C'\fR pointers and pointers
5681 to functions.  In \*(C+, warn also when an arithmetic operation involves
5682 \&\f(CW\*(C`NULL\*(C'\fR.  This warning is also enabled by \fB\-Wpedantic\fR.
5683 .IP "\fB\-Wpointer\-compare\fR" 4
5684 .IX Item "-Wpointer-compare"
5685 Warn if a pointer is compared with a zero character constant.  This usually
5686 means that the pointer was meant to be dereferenced.  For example:
5687 .Sp
5688 .Vb 3
5689 \&        const char *p = foo ();
5690 \&        if (p == \*(Aq\e0\*(Aq)
5691 \&          return 42;
5692 .Ve
5693 .Sp
5694 Note that the code above is invalid in \*(C+11.
5695 .Sp
5696 This warning is enabled by default.
5697 .IP "\fB\-Wtype\-limits\fR" 4
5698 .IX Item "-Wtype-limits"
5699 Warn if a comparison is always true or always false due to the limited
5700 range of the data type, but do not warn for constant expressions.  For
5701 example, warn if an unsigned variable is compared against zero with
5702 \&\f(CW\*(C`<\*(C'\fR or \f(CW\*(C`>=\*(C'\fR.  This warning is also enabled by
5703 \&\fB\-Wextra\fR.
5704 .IP "\fB\-Wcomment\fR" 4
5705 .IX Item "-Wcomment"
5706 .PD 0
5707 .IP "\fB\-Wcomments\fR" 4
5708 .IX Item "-Wcomments"
5709 .PD
5710 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
5711 comment, or whenever a backslash-newline appears in a \fB//\fR comment.
5712 This warning is enabled by \fB\-Wall\fR.
5713 .IP "\fB\-Wtrigraphs\fR" 4
5714 .IX Item "-Wtrigraphs"
5715 Warn if any trigraphs are encountered that might change the meaning of
5716 the program.  Trigraphs within comments are not warned about,
5717 except those that would form escaped newlines.
5718 .Sp
5719 This option is implied by \fB\-Wall\fR.  If \fB\-Wall\fR is not
5720 given, this option is still enabled unless trigraphs are enabled.  To
5721 get trigraph conversion without warnings, but get the other
5722 \&\fB\-Wall\fR warnings, use \fB\-trigraphs \-Wall \-Wno\-trigraphs\fR.
5723 .IP "\fB\-Wundef\fR" 4
5724 .IX Item "-Wundef"
5725 Warn if an undefined identifier is evaluated in an \f(CW\*(C`#if\*(C'\fR directive.
5726 Such identifiers are replaced with zero.
5727 .IP "\fB\-Wexpansion\-to\-defined\fR" 4
5728 .IX Item "-Wexpansion-to-defined"
5729 Warn whenever \fBdefined\fR is encountered in the expansion of a macro
5730 (including the case where the macro is expanded by an \fB#if\fR directive).
5731 Such usage is not portable.
5732 This warning is also enabled by \fB\-Wpedantic\fR and \fB\-Wextra\fR.
5733 .IP "\fB\-Wunused\-macros\fR" 4
5734 .IX Item "-Wunused-macros"
5735 Warn about macros defined in the main file that are unused.  A macro
5736 is \fIused\fR if it is expanded or tested for existence at least once.
5737 The preprocessor also warns if the macro has not been used at the
5738 time it is redefined or undefined.
5739 .Sp
5740 Built-in macros, macros defined on the command line, and macros
5741 defined in include files are not warned about.
5742 .Sp
5743 \&\fINote:\fR If a macro is actually used, but only used in skipped
5744 conditional blocks, then the preprocessor reports it as unused.  To avoid the
5745 warning in such a case, you might improve the scope of the macro's
5746 definition by, for example, moving it into the first skipped block.
5747 Alternatively, you could provide a dummy use with something like:
5748 .Sp
5749 .Vb 2
5750 \&        #if defined the_macro_causing_the_warning
5751 \&        #endif
5752 .Ve
5753 .IP "\fB\-Wno\-endif\-labels\fR" 4
5754 .IX Item "-Wno-endif-labels"
5755 Do not warn whenever an \f(CW\*(C`#else\*(C'\fR or an \f(CW\*(C`#endif\*(C'\fR are followed by text.
5756 This sometimes happens in older programs with code of the form
5757 .Sp
5758 .Vb 5
5759 \&        #if FOO
5760 \&        ...
5761 \&        #else FOO
5762 \&        ...
5763 \&        #endif FOO
5764 .Ve
5765 .Sp
5766 The second and third \f(CW\*(C`FOO\*(C'\fR should be in comments.
5767 This warning is on by default.
5768 .IP "\fB\-Wbad\-function\-cast\fR (C and Objective-C only)" 4
5769 .IX Item "-Wbad-function-cast (C and Objective-C only)"
5770 Warn when a function call is cast to a non-matching type.
5771 For example, warn if a call to a function returning an integer type 
5772 is cast to a pointer type.
5773 .IP "\fB\-Wc90\-c99\-compat\fR (C and Objective-C only)" 4
5774 .IX Item "-Wc90-c99-compat (C and Objective-C only)"
5775 Warn about features not present in \s-1ISO C90,\s0 but present in \s-1ISO C99.\s0
5776 For instance, warn about use of variable length arrays, \f(CW\*(C`long long\*(C'\fR
5777 type, \f(CW\*(C`bool\*(C'\fR type, compound literals, designated initializers, and so
5778 on.  This option is independent of the standards mode.  Warnings are disabled
5779 in the expression that follows \f(CW\*(C`_\|_extension_\|_\*(C'\fR.
5780 .IP "\fB\-Wc99\-c11\-compat\fR (C and Objective-C only)" 4
5781 .IX Item "-Wc99-c11-compat (C and Objective-C only)"
5782 Warn about features not present in \s-1ISO C99,\s0 but present in \s-1ISO C11.\s0
5783 For instance, warn about use of anonymous structures and unions,
5784 \&\f(CW\*(C`_Atomic\*(C'\fR type qualifier, \f(CW\*(C`_Thread_local\*(C'\fR storage-class specifier,
5785 \&\f(CW\*(C`_Alignas\*(C'\fR specifier, \f(CW\*(C`Alignof\*(C'\fR operator, \f(CW\*(C`_Generic\*(C'\fR keyword,
5786 and so on.  This option is independent of the standards mode.  Warnings are
5787 disabled in the expression that follows \f(CW\*(C`_\|_extension_\|_\*(C'\fR.
5788 .IP "\fB\-Wc++\-compat\fR (C and Objective-C only)" 4
5789 .IX Item "-Wc++-compat (C and Objective-C only)"
5790 Warn about \s-1ISO C\s0 constructs that are outside of the common subset of
5791 \&\s-1ISO C\s0 and \s-1ISO \*(C+,\s0 e.g. request for implicit conversion from
5792 \&\f(CW\*(C`void *\*(C'\fR to a pointer to non\-\f(CW\*(C`void\*(C'\fR type.
5793 .IP "\fB\-Wc++11\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
5794 .IX Item "-Wc++11-compat ( and Objective- only)"
5795 Warn about \*(C+ constructs whose meaning differs between \s-1ISO \*(C+ 1998\s0
5796 and \s-1ISO \*(C+ 2011,\s0 e.g., identifiers in \s-1ISO \*(C+ 1998\s0 that are keywords
5797 in \s-1ISO \*(C+ 2011.\s0  This warning turns on \fB\-Wnarrowing\fR and is
5798 enabled by \fB\-Wall\fR.
5799 .IP "\fB\-Wc++14\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
5800 .IX Item "-Wc++14-compat ( and Objective- only)"
5801 Warn about \*(C+ constructs whose meaning differs between \s-1ISO \*(C+ 2011\s0
5802 and \s-1ISO \*(C+ 2014.\s0  This warning is enabled by \fB\-Wall\fR.
5803 .IP "\fB\-Wc++17\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
5804 .IX Item "-Wc++17-compat ( and Objective- only)"
5805 Warn about \*(C+ constructs whose meaning differs between \s-1ISO \*(C+ 2014\s0
5806 and \s-1ISO \*(C+ 2017.\s0  This warning is enabled by \fB\-Wall\fR.
5807 .IP "\fB\-Wcast\-qual\fR" 4
5808 .IX Item "-Wcast-qual"
5809 Warn whenever a pointer is cast so as to remove a type qualifier from
5810 the target type.  For example, warn if a \f(CW\*(C`const char *\*(C'\fR is cast
5811 to an ordinary \f(CW\*(C`char *\*(C'\fR.
5812 .Sp
5813 Also warn when making a cast that introduces a type qualifier in an
5814 unsafe way.  For example, casting \f(CW\*(C`char **\*(C'\fR to \f(CW\*(C`const char **\*(C'\fR
5815 is unsafe, as in this example:
5816 .Sp
5817 .Vb 6
5818 \&          /* p is char ** value.  */
5819 \&          const char **q = (const char **) p;
5820 \&          /* Assignment of readonly string to const char * is OK.  */
5821 \&          *q = "string";
5822 \&          /* Now char** pointer points to read\-only memory.  */
5823 \&          **p = \*(Aqb\*(Aq;
5824 .Ve
5825 .IP "\fB\-Wcast\-align\fR" 4
5826 .IX Item "-Wcast-align"
5827 Warn whenever a pointer is cast such that the required alignment of the
5828 target is increased.  For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
5829 an \f(CW\*(C`int *\*(C'\fR on machines where integers can only be accessed at
5830 two\- or four-byte boundaries.
5831 .IP "\fB\-Wcast\-align=strict\fR" 4
5832 .IX Item "-Wcast-align=strict"
5833 Warn whenever a pointer is cast such that the required alignment of the
5834 target is increased.  For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
5835 an \f(CW\*(C`int *\*(C'\fR regardless of the target machine.
5836 .IP "\fB\-Wcast\-function\-type\fR" 4
5837 .IX Item "-Wcast-function-type"
5838 Warn when a function pointer is cast to an incompatible function pointer.
5839 In a cast involving function types with a variable argument list only
5840 the types of initial arguments that are provided are considered.
5841 Any parameter of pointer-type matches any other pointer-type.  Any benign
5842 differences in integral types are ignored, like \f(CW\*(C`int\*(C'\fR vs. \f(CW\*(C`long\*(C'\fR
5843 on \s-1ILP32\s0 targets.  Likewise type qualifiers are ignored.  The function
5844 type \f(CW\*(C`void (*) (void)\*(C'\fR is special and matches everything, which can
5845 be used to suppress this warning.
5846 In a cast involving pointer to member types this warning warns whenever
5847 the type cast is changing the pointer to member type.
5848 This warning is enabled by \fB\-Wextra\fR.
5849 .IP "\fB\-Wwrite\-strings\fR" 4
5850 .IX Item "-Wwrite-strings"
5851 When compiling C, give string constants the type \f(CW\*(C`const
5852 char[\f(CIlength\f(CW]\*(C'\fR so that copying the address of one into a
5853 non\-\f(CW\*(C`const\*(C'\fR \f(CW\*(C`char *\*(C'\fR pointer produces a warning.  These
5854 warnings help you find at compile time code that can try to write
5855 into a string constant, but only if you have been very careful about
5856 using \f(CW\*(C`const\*(C'\fR in declarations and prototypes.  Otherwise, it is
5857 just a nuisance. This is why we did not make \fB\-Wall\fR request
5858 these warnings.
5859 .Sp
5860 When compiling \*(C+, warn about the deprecated conversion from string
5861 literals to \f(CW\*(C`char *\*(C'\fR.  This warning is enabled by default for \*(C+
5862 programs.
5863 .IP "\fB\-Wcatch\-value\fR" 4
5864 .IX Item "-Wcatch-value"
5865 .PD 0
5866 .IP "\fB\-Wcatch\-value=\fR\fIn\fR\fB \fR(\*(C+ and Objective\-\*(C+ only)" 4
5867 .IX Item "-Wcatch-value=n ( and Objective- only)"
5868 .PD
5869 Warn about catch handlers that do not catch via reference.
5870 With \fB\-Wcatch\-value=1\fR (or \fB\-Wcatch\-value\fR for short)
5871 warn about polymorphic class types that are caught by value.
5872 With \fB\-Wcatch\-value=2\fR warn about all class types that are caught
5873 by value. With \fB\-Wcatch\-value=3\fR warn about all types that are
5874 not caught by reference. \fB\-Wcatch\-value\fR is enabled by \fB\-Wall\fR.
5875 .IP "\fB\-Wclobbered\fR" 4
5876 .IX Item "-Wclobbered"
5877 Warn for variables that might be changed by \f(CW\*(C`longjmp\*(C'\fR or
5878 \&\f(CW\*(C`vfork\*(C'\fR.  This warning is also enabled by \fB\-Wextra\fR.
5879 .IP "\fB\-Wconditionally\-supported\fR (\*(C+ and Objective\-\*(C+ only)" 4
5880 .IX Item "-Wconditionally-supported ( and Objective- only)"
5881 Warn for conditionally-supported (\*(C+11 [intro.defs]) constructs.
5882 .IP "\fB\-Wconversion\fR" 4
5883 .IX Item "-Wconversion"
5884 Warn for implicit conversions that may alter a value. This includes
5885 conversions between real and integer, like \f(CW\*(C`abs (x)\*(C'\fR when
5886 \&\f(CW\*(C`x\*(C'\fR is \f(CW\*(C`double\*(C'\fR; conversions between signed and unsigned,
5887 like \f(CW\*(C`unsigned ui = \-1\*(C'\fR; and conversions to smaller types, like
5888 \&\f(CW\*(C`sqrtf (M_PI)\*(C'\fR. Do not warn for explicit casts like \f(CW\*(C`abs
5889 ((int) x)\*(C'\fR and \f(CW\*(C`ui = (unsigned) \-1\*(C'\fR, or if the value is not
5890 changed by the conversion like in \f(CW\*(C`abs (2.0)\*(C'\fR.  Warnings about
5891 conversions between signed and unsigned integers can be disabled by
5892 using \fB\-Wno\-sign\-conversion\fR.
5893 .Sp
5894 For \*(C+, also warn for confusing overload resolution for user-defined
5895 conversions; and conversions that never use a type conversion
5896 operator: conversions to \f(CW\*(C`void\*(C'\fR, the same type, a base class or a
5897 reference to them. Warnings about conversions between signed and
5898 unsigned integers are disabled by default in \*(C+ unless
5899 \&\fB\-Wsign\-conversion\fR is explicitly enabled.
5900 .IP "\fB\-Wno\-conversion\-null\fR (\*(C+ and Objective\-\*(C+ only)" 4
5901 .IX Item "-Wno-conversion-null ( and Objective- only)"
5902 Do not warn for conversions between \f(CW\*(C`NULL\*(C'\fR and non-pointer
5903 types. \fB\-Wconversion\-null\fR is enabled by default.
5904 .IP "\fB\-Wzero\-as\-null\-pointer\-constant\fR (\*(C+ and Objective\-\*(C+ only)" 4
5905 .IX Item "-Wzero-as-null-pointer-constant ( and Objective- only)"
5906 Warn when a literal \fB0\fR is used as null pointer constant.  This can
5907 be useful to facilitate the conversion to \f(CW\*(C`nullptr\*(C'\fR in \*(C+11.
5908 .IP "\fB\-Wsubobject\-linkage\fR (\*(C+ and Objective\-\*(C+ only)" 4
5909 .IX Item "-Wsubobject-linkage ( and Objective- only)"
5910 Warn if a class type has a base or a field whose type uses the anonymous
5911 namespace or depends on a type with no linkage.  If a type A depends on
5912 a type B with no or internal linkage, defining it in multiple
5913 translation units would be an \s-1ODR\s0 violation because the meaning of B
5914 is different in each translation unit.  If A only appears in a single
5915 translation unit, the best way to silence the warning is to give it
5916 internal linkage by putting it in an anonymous namespace as well.  The
5917 compiler doesn't give this warning for types defined in the main .C
5918 file, as those are unlikely to have multiple definitions.
5919 \&\fB\-Wsubobject\-linkage\fR is enabled by default.
5920 .IP "\fB\-Wdangling\-else\fR" 4
5921 .IX Item "-Wdangling-else"
5922 Warn about constructions where there may be confusion to which
5923 \&\f(CW\*(C`if\*(C'\fR statement an \f(CW\*(C`else\*(C'\fR branch belongs.  Here is an example of
5924 such a case:
5925 .Sp
5926 .Vb 7
5927 \&        {
5928 \&          if (a)
5929 \&            if (b)
5930 \&              foo ();
5931 \&          else
5932 \&            bar ();
5933 \&        }
5934 .Ve
5935 .Sp
5936 In C/\*(C+, every \f(CW\*(C`else\*(C'\fR branch belongs to the innermost possible
5937 \&\f(CW\*(C`if\*(C'\fR statement, which in this example is \f(CW\*(C`if (b)\*(C'\fR.  This is
5938 often not what the programmer expected, as illustrated in the above
5939 example by indentation the programmer chose.  When there is the
5940 potential for this confusion, \s-1GCC\s0 issues a warning when this flag
5941 is specified.  To eliminate the warning, add explicit braces around
5942 the innermost \f(CW\*(C`if\*(C'\fR statement so there is no way the \f(CW\*(C`else\*(C'\fR
5943 can belong to the enclosing \f(CW\*(C`if\*(C'\fR.  The resulting code
5944 looks like this:
5945 .Sp
5946 .Vb 9
5947 \&        {
5948 \&          if (a)
5949 \&            {
5950 \&              if (b)
5951 \&                foo ();
5952 \&              else
5953 \&                bar ();
5954 \&            }
5955 \&        }
5956 .Ve
5957 .Sp
5958 This warning is enabled by \fB\-Wparentheses\fR.
5959 .IP "\fB\-Wdate\-time\fR" 4
5960 .IX Item "-Wdate-time"
5961 Warn when macros \f(CW\*(C`_\|_TIME_\|_\*(C'\fR, \f(CW\*(C`_\|_DATE_\|_\*(C'\fR or \f(CW\*(C`_\|_TIMESTAMP_\|_\*(C'\fR
5962 are encountered as they might prevent bit-wise-identical reproducible
5963 compilations.
5964 .IP "\fB\-Wdelete\-incomplete\fR (\*(C+ and Objective\-\*(C+ only)" 4
5965 .IX Item "-Wdelete-incomplete ( and Objective- only)"
5966 Warn when deleting a pointer to incomplete type, which may cause
5967 undefined behavior at runtime.  This warning is enabled by default.
5968 .IP "\fB\-Wuseless\-cast\fR (\*(C+ and Objective\-\*(C+ only)" 4
5969 .IX Item "-Wuseless-cast ( and Objective- only)"
5970 Warn when an expression is casted to its own type.
5971 .IP "\fB\-Wempty\-body\fR" 4
5972 .IX Item "-Wempty-body"
5973 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
5974 while\*(C'\fR statement.  This warning is also enabled by \fB\-Wextra\fR.
5975 .IP "\fB\-Wenum\-compare\fR" 4
5976 .IX Item "-Wenum-compare"
5977 Warn about a comparison between values of different enumerated types.
5978 In \*(C+ enumerated type mismatches in conditional expressions are also
5979 diagnosed and the warning is enabled by default.  In C this warning is 
5980 enabled by \fB\-Wall\fR.
5981 .IP "\fB\-Wextra\-semi\fR (\*(C+, Objective\-\*(C+ only)" 4
5982 .IX Item "-Wextra-semi (, Objective- only)"
5983 Warn about redundant semicolon after in-class function definition.
5984 .IP "\fB\-Wjump\-misses\-init\fR (C, Objective-C only)" 4
5985 .IX Item "-Wjump-misses-init (C, Objective-C only)"
5986 Warn if a \f(CW\*(C`goto\*(C'\fR statement or a \f(CW\*(C`switch\*(C'\fR statement jumps
5987 forward across the initialization of a variable, or jumps backward to a
5988 label after the variable has been initialized.  This only warns about
5989 variables that are initialized when they are declared.  This warning is
5990 only supported for C and Objective-C; in \*(C+ this sort of branch is an
5991 error in any case.
5992 .Sp
5993 \&\fB\-Wjump\-misses\-init\fR is included in \fB\-Wc++\-compat\fR.  It
5994 can be disabled with the \fB\-Wno\-jump\-misses\-init\fR option.
5995 .IP "\fB\-Wsign\-compare\fR" 4
5996 .IX Item "-Wsign-compare"
5997 Warn when a comparison between signed and unsigned values could produce
5998 an incorrect result when the signed value is converted to unsigned.
5999 In \*(C+, this warning is also enabled by \fB\-Wall\fR.  In C, it is
6000 also enabled by \fB\-Wextra\fR.
6001 .IP "\fB\-Wsign\-conversion\fR" 4
6002 .IX Item "-Wsign-conversion"
6003 Warn for implicit conversions that may change the sign of an integer
6004 value, like assigning a signed integer expression to an unsigned
6005 integer variable. An explicit cast silences the warning. In C, this
6006 option is enabled also by \fB\-Wconversion\fR.
6007 .IP "\fB\-Wfloat\-conversion\fR" 4
6008 .IX Item "-Wfloat-conversion"
6009 Warn for implicit conversions that reduce the precision of a real value.
6010 This includes conversions from real to integer, and from higher precision
6011 real to lower precision real values.  This option is also enabled by
6012 \&\fB\-Wconversion\fR.
6013 .IP "\fB\-Wno\-scalar\-storage\-order\fR" 4
6014 .IX Item "-Wno-scalar-storage-order"
6015 Do not warn on suspicious constructs involving reverse scalar storage order.
6016 .IP "\fB\-Wsized\-deallocation\fR (\*(C+ and Objective\-\*(C+ only)" 4
6017 .IX Item "-Wsized-deallocation ( and Objective- only)"
6018 Warn about a definition of an unsized deallocation function
6019 .Sp
6020 .Vb 2
6021 \&        void operator delete (void *) noexcept;
6022 \&        void operator delete[] (void *) noexcept;
6023 .Ve
6024 .Sp
6025 without a definition of the corresponding sized deallocation function
6026 .Sp
6027 .Vb 2
6028 \&        void operator delete (void *, std::size_t) noexcept;
6029 \&        void operator delete[] (void *, std::size_t) noexcept;
6030 .Ve
6031 .Sp
6032 or vice versa.  Enabled by \fB\-Wextra\fR along with
6033 \&\fB\-fsized\-deallocation\fR.
6034 .IP "\fB\-Wsizeof\-pointer\-div\fR" 4
6035 .IX Item "-Wsizeof-pointer-div"
6036 Warn for suspicious divisions of two sizeof expressions that divide
6037 the pointer size by the element size, which is the usual way to compute
6038 the array size but won't work out correctly with pointers.  This warning
6039 warns e.g. about \f(CW\*(C`sizeof (ptr) / sizeof (ptr[0])\*(C'\fR if \f(CW\*(C`ptr\*(C'\fR is
6040 not an array, but a pointer.  This warning is enabled by \fB\-Wall\fR.
6041 .IP "\fB\-Wsizeof\-pointer\-memaccess\fR" 4
6042 .IX Item "-Wsizeof-pointer-memaccess"
6043 Warn for suspicious length parameters to certain string and memory built-in
6044 functions if the argument uses \f(CW\*(C`sizeof\*(C'\fR.  This warning triggers for
6045 example for \f(CW\*(C`memset (ptr, 0, sizeof (ptr));\*(C'\fR if \f(CW\*(C`ptr\*(C'\fR is not
6046 an array, but a pointer, and suggests a possible fix, or about
6047 \&\f(CW\*(C`memcpy (&foo, ptr, sizeof (&foo));\*(C'\fR.  \fB\-Wsizeof\-pointer\-memaccess\fR
6048 also warns about calls to bounded string copy functions like \f(CW\*(C`strncat\*(C'\fR
6049 or \f(CW\*(C`strncpy\*(C'\fR that specify as the bound a \f(CW\*(C`sizeof\*(C'\fR expression of
6050 the source array.  For example, in the following function the call to
6051 \&\f(CW\*(C`strncat\*(C'\fR specifies the size of the source string as the bound.  That
6052 is almost certainly a mistake and so the call is diagnosed.
6053 .Sp
6054 .Vb 7
6055 \&        void make_file (const char *name)
6056 \&        {
6057 \&          char path[PATH_MAX];
6058 \&          strncpy (path, name, sizeof path \- 1);
6059 \&          strncat (path, ".text", sizeof ".text");
6060 \&          ...
6061 \&        }
6062 .Ve
6063 .Sp
6064 The \fB\-Wsizeof\-pointer\-memaccess\fR option is enabled by \fB\-Wall\fR.
6065 .IP "\fB\-Wsizeof\-array\-argument\fR" 4
6066 .IX Item "-Wsizeof-array-argument"
6067 Warn when the \f(CW\*(C`sizeof\*(C'\fR operator is applied to a parameter that is
6068 declared as an array in a function definition.  This warning is enabled by
6069 default for C and \*(C+ programs.
6070 .IP "\fB\-Wmemset\-elt\-size\fR" 4
6071 .IX Item "-Wmemset-elt-size"
6072 Warn for suspicious calls to the \f(CW\*(C`memset\*(C'\fR built-in function, if the
6073 first argument references an array, and the third argument is a number
6074 equal to the number of elements, but not equal to the size of the array
6075 in memory.  This indicates that the user has omitted a multiplication by
6076 the element size.  This warning is enabled by \fB\-Wall\fR.
6077 .IP "\fB\-Wmemset\-transposed\-args\fR" 4
6078 .IX Item "-Wmemset-transposed-args"
6079 Warn for suspicious calls to the \f(CW\*(C`memset\*(C'\fR built-in function, if the
6080 second argument is not zero and the third argument is zero.  This warns e.g.@
6081 about \f(CW\*(C`memset (buf, sizeof buf, 0)\*(C'\fR where most probably
6082 \&\f(CW\*(C`memset (buf, 0, sizeof buf)\*(C'\fR was meant instead.  The diagnostics
6083 is only emitted if the third argument is literal zero.  If it is some
6084 expression that is folded to zero, a cast of zero to some type, etc., 
6085 it is far less likely that the user has mistakenly exchanged the arguments 
6086 and no warning is emitted.  This warning is enabled by \fB\-Wall\fR.
6087 .IP "\fB\-Waddress\fR" 4
6088 .IX Item "-Waddress"
6089 Warn about suspicious uses of memory addresses. These include using
6090 the address of a function in a conditional expression, such as
6091 \&\f(CW\*(C`void func(void); if (func)\*(C'\fR, and comparisons against the memory
6092 address of a string literal, such as \f(CW\*(C`if (x == "abc")\*(C'\fR.  Such
6093 uses typically indicate a programmer error: the address of a function
6094 always evaluates to true, so their use in a conditional usually
6095 indicate that the programmer forgot the parentheses in a function
6096 call; and comparisons against string literals result in unspecified
6097 behavior and are not portable in C, so they usually indicate that the
6098 programmer intended to use \f(CW\*(C`strcmp\*(C'\fR.  This warning is enabled by
6099 \&\fB\-Wall\fR.
6100 .IP "\fB\-Wlogical\-op\fR" 4
6101 .IX Item "-Wlogical-op"
6102 Warn about suspicious uses of logical operators in expressions.
6103 This includes using logical operators in contexts where a
6104 bit-wise operator is likely to be expected.  Also warns when
6105 the operands of a logical operator are the same:
6106 .Sp
6107 .Vb 2
6108 \&        extern int a;
6109 \&        if (a < 0 && a < 0) { ... }
6110 .Ve
6111 .IP "\fB\-Wlogical\-not\-parentheses\fR" 4
6112 .IX Item "-Wlogical-not-parentheses"
6113 Warn about logical not used on the left hand side operand of a comparison.
6114 This option does not warn if the right operand is considered to be a boolean
6115 expression.  Its purpose is to detect suspicious code like the following:
6116 .Sp
6117 .Vb 3
6118 \&        int a;
6119 \&        ...
6120 \&        if (!a > 1) { ... }
6121 .Ve
6122 .Sp
6123 It is possible to suppress the warning by wrapping the \s-1LHS\s0 into
6124 parentheses:
6125 .Sp
6126 .Vb 1
6127 \&        if ((!a) > 1) { ... }
6128 .Ve
6129 .Sp
6130 This warning is enabled by \fB\-Wall\fR.
6131 .IP "\fB\-Waggregate\-return\fR" 4
6132 .IX Item "-Waggregate-return"
6133 Warn if any functions that return structures or unions are defined or
6134 called.  (In languages where you can return an array, this also elicits
6135 a warning.)
6136 .IP "\fB\-Wno\-aggressive\-loop\-optimizations\fR" 4
6137 .IX Item "-Wno-aggressive-loop-optimizations"
6138 Warn if in a loop with constant number of iterations the compiler detects
6139 undefined behavior in some statement during one or more of the iterations.
6140 .IP "\fB\-Wno\-attributes\fR" 4
6141 .IX Item "-Wno-attributes"
6142 Do not warn if an unexpected \f(CW\*(C`_\|_attribute_\|_\*(C'\fR is used, such as
6143 unrecognized attributes, function attributes applied to variables,
6144 etc.  This does not stop errors for incorrect use of supported
6145 attributes.
6146 .IP "\fB\-Wno\-builtin\-declaration\-mismatch\fR" 4
6147 .IX Item "-Wno-builtin-declaration-mismatch"
6148 Warn if a built-in function is declared with the wrong signature or 
6149 as non-function.
6150 This warning is enabled by default.
6151 .IP "\fB\-Wno\-builtin\-macro\-redefined\fR" 4
6152 .IX Item "-Wno-builtin-macro-redefined"
6153 Do not warn if certain built-in macros are redefined.  This suppresses
6154 warnings for redefinition of \f(CW\*(C`_\|_TIMESTAMP_\|_\*(C'\fR, \f(CW\*(C`_\|_TIME_\|_\*(C'\fR,
6155 \&\f(CW\*(C`_\|_DATE_\|_\*(C'\fR, \f(CW\*(C`_\|_FILE_\|_\*(C'\fR, and \f(CW\*(C`_\|_BASE_FILE_\|_\*(C'\fR.
6156 .IP "\fB\-Wstrict\-prototypes\fR (C and Objective-C only)" 4
6157 .IX Item "-Wstrict-prototypes (C and Objective-C only)"
6158 Warn if a function is declared or defined without specifying the
6159 argument types.  (An old-style function definition is permitted without
6160 a warning if preceded by a declaration that specifies the argument
6161 types.)
6162 .IP "\fB\-Wold\-style\-declaration\fR (C and Objective-C only)" 4
6163 .IX Item "-Wold-style-declaration (C and Objective-C only)"
6164 Warn for obsolescent usages, according to the C Standard, in a
6165 declaration. For example, warn if storage-class specifiers like
6166 \&\f(CW\*(C`static\*(C'\fR are not the first things in a declaration.  This warning
6167 is also enabled by \fB\-Wextra\fR.
6168 .IP "\fB\-Wold\-style\-definition\fR (C and Objective-C only)" 4
6169 .IX Item "-Wold-style-definition (C and Objective-C only)"
6170 Warn if an old-style function definition is used.  A warning is given
6171 even if there is a previous prototype.
6172 .IP "\fB\-Wmissing\-parameter\-type\fR (C and Objective-C only)" 4
6173 .IX Item "-Wmissing-parameter-type (C and Objective-C only)"
6174 A function parameter is declared without a type specifier in K&R\-style
6175 functions:
6176 .Sp
6177 .Vb 1
6178 \&        void foo(bar) { }
6179 .Ve
6180 .Sp
6181 This warning is also enabled by \fB\-Wextra\fR.
6182 .IP "\fB\-Wmissing\-prototypes\fR (C and Objective-C only)" 4
6183 .IX Item "-Wmissing-prototypes (C and Objective-C only)"
6184 Warn if a global function is defined without a previous prototype
6185 declaration.  This warning is issued even if the definition itself
6186 provides a prototype.  Use this option to detect global functions
6187 that do not have a matching prototype declaration in a header file.
6188 This option is not valid for \*(C+ because all function declarations
6189 provide prototypes and a non-matching declaration declares an
6190 overload rather than conflict with an earlier declaration.
6191 Use \fB\-Wmissing\-declarations\fR to detect missing declarations in \*(C+.
6192 .IP "\fB\-Wmissing\-declarations\fR" 4
6193 .IX Item "-Wmissing-declarations"
6194 Warn if a global function is defined without a previous declaration.
6195 Do so even if the definition itself provides a prototype.
6196 Use this option to detect global functions that are not declared in
6197 header files.  In C, no warnings are issued for functions with previous
6198 non-prototype declarations; use \fB\-Wmissing\-prototypes\fR to detect
6199 missing prototypes.  In \*(C+, no warnings are issued for function templates,
6200 or for inline functions, or for functions in anonymous namespaces.
6201 .IP "\fB\-Wmissing\-field\-initializers\fR" 4
6202 .IX Item "-Wmissing-field-initializers"
6203 Warn if a structure's initializer has some fields missing.  For
6204 example, the following code causes such a warning, because
6205 \&\f(CW\*(C`x.h\*(C'\fR is implicitly zero:
6206 .Sp
6207 .Vb 2
6208 \&        struct s { int f, g, h; };
6209 \&        struct s x = { 3, 4 };
6210 .Ve
6211 .Sp
6212 This option does not warn about designated initializers, so the following
6213 modification does not trigger a warning:
6214 .Sp
6215 .Vb 2
6216 \&        struct s { int f, g, h; };
6217 \&        struct s x = { .f = 3, .g = 4 };
6218 .Ve
6219 .Sp
6220 In C this option does not warn about the universal zero initializer
6221 \&\fB{ 0 }\fR:
6222 .Sp
6223 .Vb 2
6224 \&        struct s { int f, g, h; };
6225 \&        struct s x = { 0 };
6226 .Ve
6227 .Sp
6228 Likewise, in \*(C+ this option does not warn about the empty { }
6229 initializer, for example:
6230 .Sp
6231 .Vb 2
6232 \&        struct s { int f, g, h; };
6233 \&        s x = { };
6234 .Ve
6235 .Sp
6236 This warning is included in \fB\-Wextra\fR.  To get other \fB\-Wextra\fR
6237 warnings without this one, use \fB\-Wextra \-Wno\-missing\-field\-initializers\fR.
6238 .IP "\fB\-Wno\-multichar\fR" 4
6239 .IX Item "-Wno-multichar"
6240 Do not warn if a multicharacter constant (\fB'\s-1FOOF\s0'\fR) is used.
6241 Usually they indicate a typo in the user's code, as they have
6242 implementation-defined values, and should not be used in portable code.
6243 .IP "\fB\-Wnormalized=\fR[\fBnone\fR|\fBid\fR|\fBnfc\fR|\fBnfkc\fR]" 4
6244 .IX Item "-Wnormalized=[none|id|nfc|nfkc]"
6245 In \s-1ISO C\s0 and \s-1ISO \*(C+,\s0 two identifiers are different if they are
6246 different sequences of characters.  However, sometimes when characters
6247 outside the basic \s-1ASCII\s0 character set are used, you can have two
6248 different character sequences that look the same.  To avoid confusion,
6249 the \s-1ISO 10646\s0 standard sets out some \fInormalization rules\fR which
6250 when applied ensure that two sequences that look the same are turned into
6251 the same sequence.  \s-1GCC\s0 can warn you if you are using identifiers that
6252 have not been normalized; this option controls that warning.
6253 .Sp
6254 There are four levels of warning supported by \s-1GCC.\s0  The default is
6255 \&\fB\-Wnormalized=nfc\fR, which warns about any identifier that is
6256 not in the \s-1ISO 10646 \*(L"C\*(R"\s0 normalized form, \fI\s-1NFC\s0\fR.  \s-1NFC\s0 is the
6257 recommended form for most uses.  It is equivalent to
6258 \&\fB\-Wnormalized\fR.
6259 .Sp
6260 Unfortunately, there are some characters allowed in identifiers by
6261 \&\s-1ISO C\s0 and \s-1ISO \*(C+\s0 that, when turned into \s-1NFC,\s0 are not allowed in 
6262 identifiers.  That is, there's no way to use these symbols in portable
6263 \&\s-1ISO C\s0 or \*(C+ and have all your identifiers in \s-1NFC.\s0
6264 \&\fB\-Wnormalized=id\fR suppresses the warning for these characters.
6265 It is hoped that future versions of the standards involved will correct
6266 this, which is why this option is not the default.
6267 .Sp
6268 You can switch the warning off for all characters by writing
6269 \&\fB\-Wnormalized=none\fR or \fB\-Wno\-normalized\fR.  You should
6270 only do this if you are using some other normalization scheme (like
6271 \&\*(L"D\*(R"), because otherwise you can easily create bugs that are
6272 literally impossible to see.
6273 .Sp
6274 Some characters in \s-1ISO 10646\s0 have distinct meanings but look identical
6275 in some fonts or display methodologies, especially once formatting has
6276 been applied.  For instance \f(CW\*(C`\eu207F\*(C'\fR, \*(L"\s-1SUPERSCRIPT LATIN SMALL
6277 LETTER N\*(R",\s0 displays just like a regular \f(CW\*(C`n\*(C'\fR that has been
6278 placed in a superscript.  \s-1ISO 10646\s0 defines the \fI\s-1NFKC\s0\fR
6279 normalization scheme to convert all these into a standard form as
6280 well, and \s-1GCC\s0 warns if your code is not in \s-1NFKC\s0 if you use
6281 \&\fB\-Wnormalized=nfkc\fR.  This warning is comparable to warning
6282 about every identifier that contains the letter O because it might be
6283 confused with the digit 0, and so is not the default, but may be
6284 useful as a local coding convention if the programming environment 
6285 cannot be fixed to display these characters distinctly.
6286 .IP "\fB\-Wno\-deprecated\fR" 4
6287 .IX Item "-Wno-deprecated"
6288 Do not warn about usage of deprecated features.
6289 .IP "\fB\-Wno\-deprecated\-declarations\fR" 4
6290 .IX Item "-Wno-deprecated-declarations"
6291 Do not warn about uses of functions,
6292 variables, and types marked as deprecated by using the \f(CW\*(C`deprecated\*(C'\fR
6293 attribute.
6294 .IP "\fB\-Wno\-overflow\fR" 4
6295 .IX Item "-Wno-overflow"
6296 Do not warn about compile-time overflow in constant expressions.
6297 .IP "\fB\-Wno\-odr\fR" 4
6298 .IX Item "-Wno-odr"
6299 Warn about One Definition Rule violations during link-time optimization.
6300 Requires \fB\-flto\-odr\-type\-merging\fR to be enabled.  Enabled by default.
6301 .IP "\fB\-Wopenmp\-simd\fR" 4
6302 .IX Item "-Wopenmp-simd"
6303 Warn if the vectorizer cost model overrides the OpenMP
6304 simd directive set by user.  The \fB\-fsimd\-cost\-model=unlimited\fR
6305 option can be used to relax the cost model.
6306 .IP "\fB\-Woverride\-init\fR (C and Objective-C only)" 4
6307 .IX Item "-Woverride-init (C and Objective-C only)"
6308 Warn if an initialized field without side effects is overridden when
6309 using designated initializers.
6310 .Sp
6311 This warning is included in \fB\-Wextra\fR.  To get other
6312 \&\fB\-Wextra\fR warnings without this one, use \fB\-Wextra
6313 \&\-Wno\-override\-init\fR.
6314 .IP "\fB\-Woverride\-init\-side\-effects\fR (C and Objective-C only)" 4
6315 .IX Item "-Woverride-init-side-effects (C and Objective-C only)"
6316 Warn if an initialized field with side effects is overridden when
6317 using designated initializers.  This warning is enabled by default.
6318 .IP "\fB\-Wpacked\fR" 4
6319 .IX Item "-Wpacked"
6320 Warn if a structure is given the packed attribute, but the packed
6321 attribute has no effect on the layout or size of the structure.
6322 Such structures may be mis-aligned for little benefit.  For
6323 instance, in this code, the variable \f(CW\*(C`f.x\*(C'\fR in \f(CW\*(C`struct bar\*(C'\fR
6324 is misaligned even though \f(CW\*(C`struct bar\*(C'\fR does not itself
6325 have the packed attribute:
6326 .Sp
6327 .Vb 8
6328 \&        struct foo {
6329 \&          int x;
6330 \&          char a, b, c, d;
6331 \&        } _\|_attribute_\|_((packed));
6332 \&        struct bar {
6333 \&          char z;
6334 \&          struct foo f;
6335 \&        };
6336 .Ve
6337 .IP "\fB\-Wpacked\-bitfield\-compat\fR" 4
6338 .IX Item "-Wpacked-bitfield-compat"
6339 The 4.1, 4.2 and 4.3 series of \s-1GCC\s0 ignore the \f(CW\*(C`packed\*(C'\fR attribute
6340 on bit-fields of type \f(CW\*(C`char\*(C'\fR.  This has been fixed in \s-1GCC 4.4\s0 but
6341 the change can lead to differences in the structure layout.  \s-1GCC\s0
6342 informs you when the offset of such a field has changed in \s-1GCC 4.4.\s0
6343 For example there is no longer a 4\-bit padding between field \f(CW\*(C`a\*(C'\fR
6344 and \f(CW\*(C`b\*(C'\fR in this structure:
6345 .Sp
6346 .Vb 5
6347 \&        struct foo
6348 \&        {
6349 \&          char a:4;
6350 \&          char b:8;
6351 \&        } _\|_attribute_\|_ ((packed));
6352 .Ve
6353 .Sp
6354 This warning is enabled by default.  Use
6355 \&\fB\-Wno\-packed\-bitfield\-compat\fR to disable this warning.
6356 .IP "\fB\-Wpacked\-not\-aligned\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
6357 .IX Item "-Wpacked-not-aligned (C, , Objective-C and Objective- only)"
6358 Warn if a structure field with explicitly specified alignment in a
6359 packed struct or union is misaligned.  For example, a warning will
6360 be issued on \f(CW\*(C`struct S\*(C'\fR, like, \f(CW\*(C`warning: alignment 1 of
6361 \&\*(Aqstruct S\*(Aq is less than 8\*(C'\fR, in this code:
6362 .Sp
6363 .Vb 4
6364 \&        struct _\|_attribute_\|_ ((aligned (8))) S8 { char a[8]; };
6365 \&        struct _\|_attribute_\|_ ((packed)) S {
6366 \&          struct S8 s8;
6367 \&        };
6368 .Ve
6369 .Sp
6370 This warning is enabled by \fB\-Wall\fR.
6371 .IP "\fB\-Wpadded\fR" 4
6372 .IX Item "-Wpadded"
6373 Warn if padding is included in a structure, either to align an element
6374 of the structure or to align the whole structure.  Sometimes when this
6375 happens it is possible to rearrange the fields of the structure to
6376 reduce the padding and so make the structure smaller.
6377 .IP "\fB\-Wredundant\-decls\fR" 4
6378 .IX Item "-Wredundant-decls"
6379 Warn if anything is declared more than once in the same scope, even in
6380 cases where multiple declaration is valid and changes nothing.
6381 .IP "\fB\-Wno\-restrict\fR" 4
6382 .IX Item "-Wno-restrict"
6383 Warn when an object referenced by a \f(CW\*(C`restrict\*(C'\fR\-qualified parameter
6384 (or, in \*(C+, a \f(CW\*(C`_\|_restrict\*(C'\fR\-qualified parameter) is aliased by another
6385 argument, or when copies between such objects overlap.  For example,
6386 the call to the \f(CW\*(C`strcpy\*(C'\fR function below attempts to truncate the string
6387 by replacing its initial characters with the last four.  However, because
6388 the call writes the terminating \s-1NUL\s0 into \f(CW\*(C`a[4]\*(C'\fR, the copies overlap and
6389 the call is diagnosed.
6390 .Sp
6391 .Vb 6
6392 \&        void foo (void)
6393 \&        {
6394 \&          char a[] = "abcd1234";
6395 \&          strcpy (a, a + 4);
6396 \&          ...
6397 \&        }
6398 .Ve
6399 .Sp
6400 The \fB\-Wrestrict\fR option detects some instances of simple overlap
6401 even without optimization but works best at \fB\-O2\fR and above.  It
6402 is included in \fB\-Wall\fR.
6403 .IP "\fB\-Wnested\-externs\fR (C and Objective-C only)" 4
6404 .IX Item "-Wnested-externs (C and Objective-C only)"
6405 Warn if an \f(CW\*(C`extern\*(C'\fR declaration is encountered within a function.
6406 .IP "\fB\-Wno\-inherited\-variadic\-ctor\fR" 4
6407 .IX Item "-Wno-inherited-variadic-ctor"
6408 Suppress warnings about use of \*(C+11 inheriting constructors when the
6409 base class inherited from has a C variadic constructor; the warning is
6410 on by default because the ellipsis is not inherited.
6411 .IP "\fB\-Winline\fR" 4
6412 .IX Item "-Winline"
6413 Warn if a function that is declared as inline cannot be inlined.
6414 Even with this option, the compiler does not warn about failures to
6415 inline functions declared in system headers.
6416 .Sp
6417 The compiler uses a variety of heuristics to determine whether or not
6418 to inline a function.  For example, the compiler takes into account
6419 the size of the function being inlined and the amount of inlining
6420 that has already been done in the current function.  Therefore,
6421 seemingly insignificant changes in the source program can cause the
6422 warnings produced by \fB\-Winline\fR to appear or disappear.
6423 .IP "\fB\-Wno\-invalid\-offsetof\fR (\*(C+ and Objective\-\*(C+ only)" 4
6424 .IX Item "-Wno-invalid-offsetof ( and Objective- only)"
6425 Suppress warnings from applying the \f(CW\*(C`offsetof\*(C'\fR macro to a non-POD
6426 type.  According to the 2014 \s-1ISO \*(C+\s0 standard, applying \f(CW\*(C`offsetof\*(C'\fR
6427 to a non-standard-layout type is undefined.  In existing \*(C+ implementations,
6428 however, \f(CW\*(C`offsetof\*(C'\fR typically gives meaningful results.
6429 This flag is for users who are aware that they are
6430 writing nonportable code and who have deliberately chosen to ignore the
6431 warning about it.
6432 .Sp
6433 The restrictions on \f(CW\*(C`offsetof\*(C'\fR may be relaxed in a future version
6434 of the \*(C+ standard.
6435 .IP "\fB\-Wint\-in\-bool\-context\fR" 4
6436 .IX Item "-Wint-in-bool-context"
6437 Warn for suspicious use of integer values where boolean values are expected,
6438 such as conditional expressions (?:) using non-boolean integer constants in
6439 boolean context, like \f(CW\*(C`if (a <= b ? 2 : 3)\*(C'\fR.  Or left shifting of signed
6440 integers in boolean context, like \f(CW\*(C`for (a = 0; 1 << a; a++);\*(C'\fR.  Likewise
6441 for all kinds of multiplications regardless of the data type.
6442 This warning is enabled by \fB\-Wall\fR.
6443 .IP "\fB\-Wno\-int\-to\-pointer\-cast\fR" 4
6444 .IX Item "-Wno-int-to-pointer-cast"
6445 Suppress warnings from casts to pointer type of an integer of a
6446 different size. In \*(C+, casting to a pointer type of smaller size is
6447 an error. \fBWint-to-pointer-cast\fR is enabled by default.
6448 .IP "\fB\-Wno\-pointer\-to\-int\-cast\fR (C and Objective-C only)" 4
6449 .IX Item "-Wno-pointer-to-int-cast (C and Objective-C only)"
6450 Suppress warnings from casts from a pointer to an integer type of a
6451 different size.
6452 .IP "\fB\-Winvalid\-pch\fR" 4
6453 .IX Item "-Winvalid-pch"
6454 Warn if a precompiled header is found in
6455 the search path but cannot be used.
6456 .IP "\fB\-Wlong\-long\fR" 4
6457 .IX Item "-Wlong-long"
6458 Warn if \f(CW\*(C`long long\*(C'\fR type is used.  This is enabled by either
6459 \&\fB\-Wpedantic\fR or \fB\-Wtraditional\fR in \s-1ISO C90\s0 and \*(C+98
6460 modes.  To inhibit the warning messages, use \fB\-Wno\-long\-long\fR.
6461 .IP "\fB\-Wvariadic\-macros\fR" 4
6462 .IX Item "-Wvariadic-macros"
6463 Warn if variadic macros are used in \s-1ISO C90\s0 mode, or if the \s-1GNU\s0
6464 alternate syntax is used in \s-1ISO C99\s0 mode.  This is enabled by either
6465 \&\fB\-Wpedantic\fR or \fB\-Wtraditional\fR.  To inhibit the warning
6466 messages, use \fB\-Wno\-variadic\-macros\fR.
6467 .IP "\fB\-Wvarargs\fR" 4
6468 .IX Item "-Wvarargs"
6469 Warn upon questionable usage of the macros used to handle variable
6470 arguments like \f(CW\*(C`va_start\*(C'\fR.  This is default.  To inhibit the
6471 warning messages, use \fB\-Wno\-varargs\fR.
6472 .IP "\fB\-Wvector\-operation\-performance\fR" 4
6473 .IX Item "-Wvector-operation-performance"
6474 Warn if vector operation is not implemented via \s-1SIMD\s0 capabilities of the
6475 architecture.  Mainly useful for the performance tuning.
6476 Vector operation can be implemented \f(CW\*(C`piecewise\*(C'\fR, which means that the
6477 scalar operation is performed on every vector element; 
6478 \&\f(CW\*(C`in parallel\*(C'\fR, which means that the vector operation is implemented
6479 using scalars of wider type, which normally is more performance efficient;
6480 and \f(CW\*(C`as a single scalar\*(C'\fR, which means that vector fits into a
6481 scalar type.
6482 .IP "\fB\-Wno\-virtual\-move\-assign\fR" 4
6483 .IX Item "-Wno-virtual-move-assign"
6484 Suppress warnings about inheriting from a virtual base with a
6485 non-trivial \*(C+11 move assignment operator.  This is dangerous because
6486 if the virtual base is reachable along more than one path, it is
6487 moved multiple times, which can mean both objects end up in the
6488 moved-from state.  If the move assignment operator is written to avoid
6489 moving from a moved-from object, this warning can be disabled.
6490 .IP "\fB\-Wvla\fR" 4
6491 .IX Item "-Wvla"
6492 Warn if a variable-length array is used in the code.
6493 \&\fB\-Wno\-vla\fR prevents the \fB\-Wpedantic\fR warning of
6494 the variable-length array.
6495 .IP "\fB\-Wvla\-larger\-than=\fR\fIn\fR" 4
6496 .IX Item "-Wvla-larger-than=n"
6497 If this option is used, the compiler will warn on uses of
6498 variable-length arrays where the size is either unbounded, or bounded
6499 by an argument that can be larger than \fIn\fR bytes.  This is similar
6500 to how \fB\-Walloca\-larger\-than=\fR\fIn\fR works, but with
6501 variable-length arrays.
6502 .Sp
6503 Note that \s-1GCC\s0 may optimize small variable-length arrays of a known
6504 value into plain arrays, so this warning may not get triggered for
6505 such arrays.
6506 .Sp
6507 This warning is not enabled by \fB\-Wall\fR, and is only active when
6508 \&\fB\-ftree\-vrp\fR is active (default for \fB\-O2\fR and above).
6509 .Sp
6510 See also \fB\-Walloca\-larger\-than=\fR\fIn\fR.
6511 .IP "\fB\-Wvolatile\-register\-var\fR" 4
6512 .IX Item "-Wvolatile-register-var"
6513 Warn if a register variable is declared volatile.  The volatile
6514 modifier does not inhibit all optimizations that may eliminate reads
6515 and/or writes to register variables.  This warning is enabled by
6516 \&\fB\-Wall\fR.
6517 .IP "\fB\-Wdisabled\-optimization\fR" 4
6518 .IX Item "-Wdisabled-optimization"
6519 Warn if a requested optimization pass is disabled.  This warning does
6520 not generally indicate that there is anything wrong with your code; it
6521 merely indicates that \s-1GCC\s0's optimizers are unable to handle the code
6522 effectively.  Often, the problem is that your code is too big or too
6523 complex; \s-1GCC\s0 refuses to optimize programs when the optimization
6524 itself is likely to take inordinate amounts of time.
6525 .IP "\fB\-Wpointer\-sign\fR (C and Objective-C only)" 4
6526 .IX Item "-Wpointer-sign (C and Objective-C only)"
6527 Warn for pointer argument passing or assignment with different signedness.
6528 This option is only supported for C and Objective-C.  It is implied by
6529 \&\fB\-Wall\fR and by \fB\-Wpedantic\fR, which can be disabled with
6530 \&\fB\-Wno\-pointer\-sign\fR.
6531 .IP "\fB\-Wstack\-protector\fR" 4
6532 .IX Item "-Wstack-protector"
6533 This option is only active when \fB\-fstack\-protector\fR is active.  It
6534 warns about functions that are not protected against stack smashing.
6535 .IP "\fB\-Woverlength\-strings\fR" 4
6536 .IX Item "-Woverlength-strings"
6537 Warn about string constants that are longer than the \*(L"minimum
6538 maximum\*(R" length specified in the C standard.  Modern compilers
6539 generally allow string constants that are much longer than the
6540 standard's minimum limit, but very portable programs should avoid
6541 using longer strings.
6542 .Sp
6543 The limit applies \fIafter\fR string constant concatenation, and does
6544 not count the trailing \s-1NUL.\s0  In C90, the limit was 509 characters; in
6545 C99, it was raised to 4095.  \*(C+98 does not specify a normative
6546 minimum maximum, so we do not diagnose overlength strings in \*(C+.
6547 .Sp
6548 This option is implied by \fB\-Wpedantic\fR, and can be disabled with
6549 \&\fB\-Wno\-overlength\-strings\fR.
6550 .IP "\fB\-Wunsuffixed\-float\-constants\fR (C and Objective-C only)" 4
6551 .IX Item "-Wunsuffixed-float-constants (C and Objective-C only)"
6552 Issue a warning for any floating constant that does not have
6553 a suffix.  When used together with \fB\-Wsystem\-headers\fR it
6554 warns about such constants in system header files.  This can be useful
6555 when preparing code to use with the \f(CW\*(C`FLOAT_CONST_DECIMAL64\*(C'\fR pragma
6556 from the decimal floating-point extension to C99.
6557 .IP "\fB\-Wno\-designated\-init\fR (C and Objective-C only)" 4
6558 .IX Item "-Wno-designated-init (C and Objective-C only)"
6559 Suppress warnings when a positional initializer is used to initialize
6560 a structure that has been marked with the \f(CW\*(C`designated_init\*(C'\fR
6561 attribute.
6562 .IP "\fB\-Whsa\fR" 4
6563 .IX Item "-Whsa"
6564 Issue a warning when \s-1HSAIL\s0 cannot be emitted for the compiled function or
6565 OpenMP construct.
6566 .SS "Options for Debugging Your Program"
6567 .IX Subsection "Options for Debugging Your Program"
6568 To tell \s-1GCC\s0 to emit extra information for use by a debugger, in almost 
6569 all cases you need only to add \fB\-g\fR to your other options.
6570 .PP
6571 \&\s-1GCC\s0 allows you to use \fB\-g\fR with
6572 \&\fB\-O\fR.  The shortcuts taken by optimized code may occasionally
6573 be surprising: some variables you declared may not exist
6574 at all; flow of control may briefly move where you did not expect it;
6575 some statements may not be executed because they compute constant
6576 results or their values are already at hand; some statements may
6577 execute in different places because they have been moved out of loops.
6578 Nevertheless it is possible to debug optimized output.  This makes
6579 it reasonable to use the optimizer for programs that might have bugs.
6580 .PP
6581 If you are not using some other optimization option, consider
6582 using \fB\-Og\fR with \fB\-g\fR.  
6583 With no \fB\-O\fR option at all, some compiler passes that collect
6584 information useful for debugging do not run at all, so that
6585 \&\fB\-Og\fR may result in a better debugging experience.
6586 .IP "\fB\-g\fR" 4
6587 .IX Item "-g"
6588 Produce debugging information in the operating system's native format
6589 (stabs, \s-1COFF, XCOFF,\s0 or \s-1DWARF\s0).  \s-1GDB\s0 can work with this debugging
6590 information.
6591 .Sp
6592 On most systems that use stabs format, \fB\-g\fR enables use of extra
6593 debugging information that only \s-1GDB\s0 can use; this extra information
6594 makes debugging work better in \s-1GDB\s0 but probably makes other debuggers
6595 crash or
6596 refuse to read the program.  If you want to control for certain whether
6597 to generate the extra information, use \fB\-gstabs+\fR, \fB\-gstabs\fR,
6598 \&\fB\-gxcoff+\fR, \fB\-gxcoff\fR, or \fB\-gvms\fR (see below).
6599 .IP "\fB\-ggdb\fR" 4
6600 .IX Item "-ggdb"
6601 Produce debugging information for use by \s-1GDB.\s0  This means to use the
6602 most expressive format available (\s-1DWARF,\s0 stabs, or the native format
6603 if neither of those are supported), including \s-1GDB\s0 extensions if at all
6604 possible.
6605 .IP "\fB\-gdwarf\fR" 4
6606 .IX Item "-gdwarf"
6607 .PD 0
6608 .IP "\fB\-gdwarf\-\fR\fIversion\fR" 4
6609 .IX Item "-gdwarf-version"
6610 .PD
6611 Produce debugging information in \s-1DWARF\s0 format (if that is supported).
6612 The value of \fIversion\fR may be either 2, 3, 4 or 5; the default version
6613 for most targets is 4.  \s-1DWARF\s0 Version 5 is only experimental.
6614 .Sp
6615 Note that with \s-1DWARF\s0 Version 2, some ports require and always
6616 use some non-conflicting \s-1DWARF 3\s0 extensions in the unwind tables.
6617 .Sp
6618 Version 4 may require \s-1GDB 7.0\s0 and \fB\-fvar\-tracking\-assignments\fR
6619 for maximum benefit.
6620 .Sp
6621 \&\s-1GCC\s0 no longer supports \s-1DWARF\s0 Version 1, which is substantially
6622 different than Version 2 and later.  For historical reasons, some
6623 other DWARF-related options such as
6624 \&\fB\-fno\-dwarf2\-cfi\-asm\fR) retain a reference to \s-1DWARF\s0 Version 2
6625 in their names, but apply to all currently-supported versions of \s-1DWARF.\s0
6626 .IP "\fB\-gstabs\fR" 4
6627 .IX Item "-gstabs"
6628 Produce debugging information in stabs format (if that is supported),
6629 without \s-1GDB\s0 extensions.  This is the format used by \s-1DBX\s0 on most \s-1BSD\s0
6630 systems.  On \s-1MIPS,\s0 Alpha and System V Release 4 systems this option
6631 produces stabs debugging output that is not understood by \s-1DBX.\s0
6632 On System V Release 4 systems this option requires the \s-1GNU\s0 assembler.
6633 .IP "\fB\-gstabs+\fR" 4
6634 .IX Item "-gstabs+"
6635 Produce debugging information in stabs format (if that is supported),
6636 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
6637 use of these extensions is likely to make other debuggers crash or
6638 refuse to read the program.
6639 .IP "\fB\-gxcoff\fR" 4
6640 .IX Item "-gxcoff"
6641 Produce debugging information in \s-1XCOFF\s0 format (if that is supported).
6642 This is the format used by the \s-1DBX\s0 debugger on \s-1IBM RS/6000\s0 systems.
6643 .IP "\fB\-gxcoff+\fR" 4
6644 .IX Item "-gxcoff+"
6645 Produce debugging information in \s-1XCOFF\s0 format (if that is supported),
6646 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
6647 use of these extensions is likely to make other debuggers crash or
6648 refuse to read the program, and may cause assemblers other than the \s-1GNU\s0
6649 assembler (\s-1GAS\s0) to fail with an error.
6650 .IP "\fB\-gvms\fR" 4
6651 .IX Item "-gvms"
6652 Produce debugging information in Alpha/VMS debug format (if that is
6653 supported).  This is the format used by \s-1DEBUG\s0 on Alpha/VMS systems.
6654 .IP "\fB\-g\fR\fIlevel\fR" 4
6655 .IX Item "-glevel"
6656 .PD 0
6657 .IP "\fB\-ggdb\fR\fIlevel\fR" 4
6658 .IX Item "-ggdblevel"
6659 .IP "\fB\-gstabs\fR\fIlevel\fR" 4
6660 .IX Item "-gstabslevel"
6661 .IP "\fB\-gxcoff\fR\fIlevel\fR" 4
6662 .IX Item "-gxcofflevel"
6663 .IP "\fB\-gvms\fR\fIlevel\fR" 4
6664 .IX Item "-gvmslevel"
6665 .PD
6666 Request debugging information and also use \fIlevel\fR to specify how
6667 much information.  The default level is 2.
6668 .Sp
6669 Level 0 produces no debug information at all.  Thus, \fB\-g0\fR negates
6670 \&\fB\-g\fR.
6671 .Sp
6672 Level 1 produces minimal information, enough for making backtraces in
6673 parts of the program that you don't plan to debug.  This includes
6674 descriptions of functions and external variables, and line number
6675 tables, but no information about local variables.
6676 .Sp
6677 Level 3 includes extra information, such as all the macro definitions
6678 present in the program.  Some debuggers support macro expansion when
6679 you use \fB\-g3\fR.
6680 .Sp
6681 \&\fB\-gdwarf\fR does not accept a concatenated debug level, to avoid
6682 confusion with \fB\-gdwarf\-\fR\fIlevel\fR.
6683 Instead use an additional \fB\-g\fR\fIlevel\fR option to change the
6684 debug level for \s-1DWARF.\s0
6685 .IP "\fB\-feliminate\-unused\-debug\-symbols\fR" 4
6686 .IX Item "-feliminate-unused-debug-symbols"
6687 Produce debugging information in stabs format (if that is supported),
6688 for only symbols that are actually used.
6689 .IP "\fB\-femit\-class\-debug\-always\fR" 4
6690 .IX Item "-femit-class-debug-always"
6691 Instead of emitting debugging information for a \*(C+ class in only one
6692 object file, emit it in all object files using the class.  This option
6693 should be used only with debuggers that are unable to handle the way \s-1GCC\s0
6694 normally emits debugging information for classes because using this
6695 option increases the size of debugging information by as much as a
6696 factor of two.
6697 .IP "\fB\-fno\-merge\-debug\-strings\fR" 4
6698 .IX Item "-fno-merge-debug-strings"
6699 Direct the linker to not merge together strings in the debugging
6700 information that are identical in different object files.  Merging is
6701 not supported by all assemblers or linkers.  Merging decreases the size
6702 of the debug information in the output file at the cost of increasing
6703 link processing time.  Merging is enabled by default.
6704 .IP "\fB\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR" 4
6705 .IX Item "-fdebug-prefix-map=old=new"
6706 When compiling files residing in directory \fI\fIold\fI\fR, record
6707 debugging information describing them as if the files resided in
6708 directory \fI\fInew\fI\fR instead.  This can be used to replace a
6709 build-time path with an install-time path in the debug info.  It can
6710 also be used to change an absolute path to a relative path by using
6711 \&\fI.\fR for \fInew\fR.  This can give more reproducible builds, which
6712 are location independent, but may require an extra command to tell \s-1GDB\s0
6713 where to find the source files. See also \fB\-ffile\-prefix\-map\fR.
6714 .IP "\fB\-fvar\-tracking\fR" 4
6715 .IX Item "-fvar-tracking"
6716 Run variable tracking pass.  It computes where variables are stored at each
6717 position in code.  Better debugging information is then generated
6718 (if the debugging information format supports this information).
6719 .Sp
6720 It is enabled by default when compiling with optimization (\fB\-Os\fR,
6721 \&\fB\-O\fR, \fB\-O2\fR, ...), debugging information (\fB\-g\fR) and
6722 the debug info format supports it.
6723 .IP "\fB\-fvar\-tracking\-assignments\fR" 4
6724 .IX Item "-fvar-tracking-assignments"
6725 Annotate assignments to user variables early in the compilation and
6726 attempt to carry the annotations over throughout the compilation all the
6727 way to the end, in an attempt to improve debug information while
6728 optimizing.  Use of \fB\-gdwarf\-4\fR is recommended along with it.
6729 .Sp
6730 It can be enabled even if var-tracking is disabled, in which case
6731 annotations are created and maintained, but discarded at the end.
6732 By default, this flag is enabled together with \fB\-fvar\-tracking\fR,
6733 except when selective scheduling is enabled.
6734 .IP "\fB\-gsplit\-dwarf\fR" 4
6735 .IX Item "-gsplit-dwarf"
6736 Separate as much \s-1DWARF\s0 debugging information as possible into a
6737 separate output file with the extension \fI.dwo\fR.  This option allows
6738 the build system to avoid linking files with debug information.  To
6739 be useful, this option requires a debugger capable of reading \fI.dwo\fR
6740 files.
6741 .IP "\fB\-gpubnames\fR" 4
6742 .IX Item "-gpubnames"
6743 Generate \s-1DWARF\s0 \f(CW\*(C`.debug_pubnames\*(C'\fR and \f(CW\*(C`.debug_pubtypes\*(C'\fR sections.
6744 .IP "\fB\-ggnu\-pubnames\fR" 4
6745 .IX Item "-ggnu-pubnames"
6746 Generate \f(CW\*(C`.debug_pubnames\*(C'\fR and \f(CW\*(C`.debug_pubtypes\*(C'\fR sections in a format
6747 suitable for conversion into a \s-1GDB\s0 index.  This option is only useful
6748 with a linker that can produce \s-1GDB\s0 index version 7.
6749 .IP "\fB\-fdebug\-types\-section\fR" 4
6750 .IX Item "-fdebug-types-section"
6751 When using \s-1DWARF\s0 Version 4 or higher, type DIEs can be put into
6752 their own \f(CW\*(C`.debug_types\*(C'\fR section instead of making them part of the
6753 \&\f(CW\*(C`.debug_info\*(C'\fR section.  It is more efficient to put them in a separate
6754 comdat sections since the linker can then remove duplicates.
6755 But not all \s-1DWARF\s0 consumers support \f(CW\*(C`.debug_types\*(C'\fR sections yet
6756 and on some objects \f(CW\*(C`.debug_types\*(C'\fR produces larger instead of smaller
6757 debugging information.
6758 .IP "\fB\-grecord\-gcc\-switches\fR" 4
6759 .IX Item "-grecord-gcc-switches"
6760 .PD 0
6761 .IP "\fB\-gno\-record\-gcc\-switches\fR" 4
6762 .IX Item "-gno-record-gcc-switches"
6763 .PD
6764 This switch causes the command-line options used to invoke the
6765 compiler that may affect code generation to be appended to the
6766 DW_AT_producer attribute in \s-1DWARF\s0 debugging information.  The options
6767 are concatenated with spaces separating them from each other and from
6768 the compiler version.  
6769 It is enabled by default.
6770 See also \fB\-frecord\-gcc\-switches\fR for another
6771 way of storing compiler options into the object file.
6772 .IP "\fB\-gstrict\-dwarf\fR" 4
6773 .IX Item "-gstrict-dwarf"
6774 Disallow using extensions of later \s-1DWARF\s0 standard version than selected
6775 with \fB\-gdwarf\-\fR\fIversion\fR.  On most targets using non-conflicting
6776 \&\s-1DWARF\s0 extensions from later standard versions is allowed.
6777 .IP "\fB\-gno\-strict\-dwarf\fR" 4
6778 .IX Item "-gno-strict-dwarf"
6779 Allow using extensions of later \s-1DWARF\s0 standard version than selected with
6780 \&\fB\-gdwarf\-\fR\fIversion\fR.
6781 .IP "\fB\-gas\-loc\-support\fR" 4
6782 .IX Item "-gas-loc-support"
6783 Inform the compiler that the assembler supports \f(CW\*(C`.loc\*(C'\fR directives.
6784 It may then use them for the assembler to generate \s-1DWARF2+\s0 line number
6785 tables.
6786 .Sp
6787 This is generally desirable, because assembler-generated line-number
6788 tables are a lot more compact than those the compiler can generate
6789 itself.
6790 .Sp
6791 This option will be enabled by default if, at \s-1GCC\s0 configure time, the
6792 assembler was found to support such directives.
6793 .IP "\fB\-gno\-as\-loc\-support\fR" 4
6794 .IX Item "-gno-as-loc-support"
6795 Force \s-1GCC\s0 to generate \s-1DWARF2+\s0 line number tables internally, if \s-1DWARF2+\s0
6796 line number tables are to be generated.
6797 .IP "\fBgas-locview-support\fR" 4
6798 .IX Item "gas-locview-support"
6799 Inform the compiler that the assembler supports \f(CW\*(C`view\*(C'\fR assignment
6800 and reset assertion checking in \f(CW\*(C`.loc\*(C'\fR directives.
6801 .Sp
6802 This option will be enabled by default if, at \s-1GCC\s0 configure time, the
6803 assembler was found to support them.
6804 .IP "\fBgno-as-locview-support\fR" 4
6805 .IX Item "gno-as-locview-support"
6806 Force \s-1GCC\s0 to assign view numbers internally, if
6807 \&\fB\-gvariable\-location\-views\fR are explicitly requested.
6808 .IP "\fB\-gcolumn\-info\fR" 4
6809 .IX Item "-gcolumn-info"
6810 .PD 0
6811 .IP "\fB\-gno\-column\-info\fR" 4
6812 .IX Item "-gno-column-info"
6813 .PD
6814 Emit location column information into \s-1DWARF\s0 debugging information, rather
6815 than just file and line.
6816 This option is enabled by default.
6817 .IP "\fB\-gstatement\-frontiers\fR" 4
6818 .IX Item "-gstatement-frontiers"
6819 .PD 0
6820 .IP "\fB\-gno\-statement\-frontiers\fR" 4
6821 .IX Item "-gno-statement-frontiers"
6822 .PD
6823 This option causes \s-1GCC\s0 to create markers in the internal representation
6824 at the beginning of statements, and to keep them roughly in place
6825 throughout compilation, using them to guide the output of \f(CW\*(C`is_stmt\*(C'\fR
6826 markers in the line number table.  This is enabled by default when
6827 compiling with optimization (\fB\-Os\fR, \fB\-O\fR, \fB\-O2\fR,
6828 \&...), and outputting \s-1DWARF 2\s0 debug information at the normal level.
6829 .IP "\fB\-gvariable\-location\-views\fR" 4
6830 .IX Item "-gvariable-location-views"
6831 .PD 0
6832 .IP "\fB\-gvariable\-location\-views=incompat5\fR" 4
6833 .IX Item "-gvariable-location-views=incompat5"
6834 .IP "\fB\-gno\-variable\-location\-views\fR" 4
6835 .IX Item "-gno-variable-location-views"
6836 .PD
6837 Augment variable location lists with progressive view numbers implied
6838 from the line number table.  This enables debug information consumers to
6839 inspect state at certain points of the program, even if no instructions
6840 associated with the corresponding source locations are present at that
6841 point.  If the assembler lacks support for view numbers in line number
6842 tables, this will cause the compiler to emit the line number table,
6843 which generally makes them somewhat less compact.  The augmented line
6844 number tables and location lists are fully backward-compatible, so they
6845 can be consumed by debug information consumers that are not aware of
6846 these augmentations, but they won't derive any benefit from them either.
6847 .Sp
6848 This is enabled by default when outputting \s-1DWARF 2\s0 debug information at
6849 the normal level, as long as there is assembler support,
6850 \&\fB\-fvar\-tracking\-assignments\fR is enabled and
6851 \&\fB\-gstrict\-dwarf\fR is not.  When assembler support is not
6852 available, this may still be enabled, but it will force \s-1GCC\s0 to output
6853 internal line number tables, and if
6854 \&\fB\-ginternal\-reset\-location\-views\fR is not enabled, that will most
6855 certainly lead to silently mismatching location views.
6856 .Sp
6857 There is a proposed representation for view numbers that is not backward
6858 compatible with the location list format introduced in \s-1DWARF 5,\s0 that can
6859 be enabled with \fB\-gvariable\-location\-views=incompat5\fR.  This
6860 option may be removed in the future, is only provided as a reference
6861 implementation of the proposed representation.  Debug information
6862 consumers are not expected to support this extended format, and they
6863 would be rendered unable to decode location lists using it.
6864 .IP "\fB\-ginternal\-reset\-location\-views\fR" 4
6865 .IX Item "-ginternal-reset-location-views"
6866 .PD 0
6867 .IP "\fB\-gnointernal\-reset\-location\-views\fR" 4
6868 .IX Item "-gnointernal-reset-location-views"
6869 .PD
6870 Attempt to determine location views that can be omitted from location
6871 view lists.  This requires the compiler to have very accurate insn
6872 length estimates, which isn't always the case, and it may cause
6873 incorrect view lists to be generated silently when using an assembler
6874 that does not support location view lists.  The \s-1GNU\s0 assembler will flag
6875 any such error as a \f(CW\*(C`view number mismatch\*(C'\fR.  This is only enabled
6876 on ports that define a reliable estimation function.
6877 .IP "\fB\-ginline\-points\fR" 4
6878 .IX Item "-ginline-points"
6879 .PD 0
6880 .IP "\fB\-gno\-inline\-points\fR" 4
6881 .IX Item "-gno-inline-points"
6882 .PD
6883 Generate extended debug information for inlined functions.  Location
6884 view tracking markers are inserted at inlined entry points, so that
6885 address and view numbers can be computed and output in debug
6886 information.  This can be enabled independently of location views, in
6887 which case the view numbers won't be output, but it can only be enabled
6888 along with statement frontiers, and it is only enabled by default if
6889 location views are enabled.
6890 .IP "\fB\-gz\fR[\fB=\fR\fItype\fR]" 4
6891 .IX Item "-gz[=type]"
6892 Produce compressed debug sections in \s-1DWARF\s0 format, if that is supported.
6893 If \fItype\fR is not given, the default type depends on the capabilities
6894 of the assembler and linker used.  \fItype\fR may be one of
6895 \&\fBnone\fR (don't compress debug sections), \fBzlib\fR (use zlib
6896 compression in \s-1ELF\s0 gABI format), or \fBzlib-gnu\fR (use zlib
6897 compression in traditional \s-1GNU\s0 format).  If the linker doesn't support
6898 writing compressed debug sections, the option is rejected.  Otherwise,
6899 if the assembler does not support them, \fB\-gz\fR is silently ignored
6900 when producing object files.
6901 .IP "\fB\-femit\-struct\-debug\-baseonly\fR" 4
6902 .IX Item "-femit-struct-debug-baseonly"
6903 Emit debug information for struct-like types
6904 only when the base name of the compilation source file
6905 matches the base name of file in which the struct is defined.
6906 .Sp
6907 This option substantially reduces the size of debugging information,
6908 but at significant potential loss in type information to the debugger.
6909 See \fB\-femit\-struct\-debug\-reduced\fR for a less aggressive option.
6910 See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
6911 .Sp
6912 This option works only with \s-1DWARF\s0 debug output.
6913 .IP "\fB\-femit\-struct\-debug\-reduced\fR" 4
6914 .IX Item "-femit-struct-debug-reduced"
6915 Emit debug information for struct-like types
6916 only when the base name of the compilation source file
6917 matches the base name of file in which the type is defined,
6918 unless the struct is a template or defined in a system header.
6919 .Sp
6920 This option significantly reduces the size of debugging information,
6921 with some potential loss in type information to the debugger.
6922 See \fB\-femit\-struct\-debug\-baseonly\fR for a more aggressive option.
6923 See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
6924 .Sp
6925 This option works only with \s-1DWARF\s0 debug output.
6926 .IP "\fB\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR]" 4
6927 .IX Item "-femit-struct-debug-detailed[=spec-list]"
6928 Specify the struct-like types
6929 for which the compiler generates debug information.
6930 The intent is to reduce duplicate struct debug information
6931 between different object files within the same program.
6932 .Sp
6933 This option is a detailed version of
6934 \&\fB\-femit\-struct\-debug\-reduced\fR and \fB\-femit\-struct\-debug\-baseonly\fR,
6935 which serves for most needs.
6936 .Sp
6937 A specification has the syntax[\fBdir:\fR|\fBind:\fR][\fBord:\fR|\fBgen:\fR](\fBany\fR|\fBsys\fR|\fBbase\fR|\fBnone\fR)
6938 .Sp
6939 The optional first word limits the specification to
6940 structs that are used directly (\fBdir:\fR) or used indirectly (\fBind:\fR).
6941 A struct type is used directly when it is the type of a variable, member.
6942 Indirect uses arise through pointers to structs.
6943 That is, when use of an incomplete struct is valid, the use is indirect.
6944 An example is
6945 \&\fBstruct one direct; struct two * indirect;\fR.
6946 .Sp
6947 The optional second word limits the specification to
6948 ordinary structs (\fBord:\fR) or generic structs (\fBgen:\fR).
6949 Generic structs are a bit complicated to explain.
6950 For \*(C+, these are non-explicit specializations of template classes,
6951 or non-template classes within the above.
6952 Other programming languages have generics,
6953 but \fB\-femit\-struct\-debug\-detailed\fR does not yet implement them.
6954 .Sp
6955 The third word specifies the source files for those
6956 structs for which the compiler should emit debug information.
6957 The values \fBnone\fR and \fBany\fR have the normal meaning.
6958 The value \fBbase\fR means that
6959 the base of name of the file in which the type declaration appears
6960 must match the base of the name of the main compilation file.
6961 In practice, this means that when compiling \fIfoo.c\fR, debug information
6962 is generated for types declared in that file and \fIfoo.h\fR,
6963 but not other header files.
6964 The value \fBsys\fR means those types satisfying \fBbase\fR
6965 or declared in system or compiler headers.
6966 .Sp
6967 You may need to experiment to determine the best settings for your application.
6968 .Sp
6969 The default is \fB\-femit\-struct\-debug\-detailed=all\fR.
6970 .Sp
6971 This option works only with \s-1DWARF\s0 debug output.
6972 .IP "\fB\-fno\-dwarf2\-cfi\-asm\fR" 4
6973 .IX Item "-fno-dwarf2-cfi-asm"
6974 Emit \s-1DWARF\s0 unwind info as compiler generated \f(CW\*(C`.eh_frame\*(C'\fR section
6975 instead of using \s-1GAS\s0 \f(CW\*(C`.cfi_*\*(C'\fR directives.
6976 .IP "\fB\-fno\-eliminate\-unused\-debug\-types\fR" 4
6977 .IX Item "-fno-eliminate-unused-debug-types"
6978 Normally, when producing \s-1DWARF\s0 output, \s-1GCC\s0 avoids producing debug symbol 
6979 output for types that are nowhere used in the source file being compiled.
6980 Sometimes it is useful to have \s-1GCC\s0 emit debugging
6981 information for all types declared in a compilation
6982 unit, regardless of whether or not they are actually used
6983 in that compilation unit, for example 
6984 if, in the debugger, you want to cast a value to a type that is
6985 not actually used in your program (but is declared).  More often,
6986 however, this results in a significant amount of wasted space.
6987 .SS "Options That Control Optimization"
6988 .IX Subsection "Options That Control Optimization"
6989 These options control various sorts of optimizations.
6990 .PP
6991 Without any optimization option, the compiler's goal is to reduce the
6992 cost of compilation and to make debugging produce the expected
6993 results.  Statements are independent: if you stop the program with a
6994 breakpoint between statements, you can then assign a new value to any
6995 variable or change the program counter to any other statement in the
6996 function and get exactly the results you expect from the source
6997 code.
6998 .PP
6999 Turning on optimization flags makes the compiler attempt to improve
7000 the performance and/or code size at the expense of compilation time
7001 and possibly the ability to debug the program.
7002 .PP
7003 The compiler performs optimization based on the knowledge it has of the
7004 program.  Compiling multiple files at once to a single output file mode allows
7005 the compiler to use information gained from all of the files when compiling
7006 each of them.
7007 .PP
7008 Not all optimizations are controlled directly by a flag.  Only
7009 optimizations that have a flag are listed in this section.
7010 .PP
7011 Most optimizations are only enabled if an \fB\-O\fR level is set on
7012 the command line.  Otherwise they are disabled, even if individual
7013 optimization flags are specified.
7014 .PP
7015 Depending on the target and how \s-1GCC\s0 was configured, a slightly different
7016 set of optimizations may be enabled at each \fB\-O\fR level than
7017 those listed here.  You can invoke \s-1GCC\s0 with \fB\-Q \-\-help=optimizers\fR
7018 to find out the exact set of optimizations that are enabled at each level.
7019 .IP "\fB\-O\fR" 4
7020 .IX Item "-O"
7021 .PD 0
7022 .IP "\fB\-O1\fR" 4
7023 .IX Item "-O1"
7024 .PD
7025 Optimize.  Optimizing compilation takes somewhat more time, and a lot
7026 more memory for a large function.
7027 .Sp
7028 With \fB\-O\fR, the compiler tries to reduce code size and execution
7029 time, without performing any optimizations that take a great deal of
7030 compilation time.
7031 .Sp
7032 \&\fB\-O\fR turns on the following optimization flags:
7033 .Sp
7034 \&\fB\-fauto\-inc\-dec 
7035 \&\-fbranch\-count\-reg 
7036 \&\-fcombine\-stack\-adjustments 
7037 \&\-fcompare\-elim 
7038 \&\-fcprop\-registers 
7039 \&\-fdce 
7040 \&\-fdefer\-pop 
7041 \&\-fdelayed\-branch 
7042 \&\-fdse 
7043 \&\-fforward\-propagate 
7044 \&\-fguess\-branch\-probability 
7045 \&\-fif\-conversion2 
7046 \&\-fif\-conversion 
7047 \&\-finline\-functions\-called\-once 
7048 \&\-fipa\-pure\-const 
7049 \&\-fipa\-profile 
7050 \&\-fipa\-reference 
7051 \&\-fmerge\-constants 
7052 \&\-fmove\-loop\-invariants 
7053 \&\-fomit\-frame\-pointer 
7054 \&\-freorder\-blocks 
7055 \&\-fshrink\-wrap 
7056 \&\-fshrink\-wrap\-separate 
7057 \&\-fsplit\-wide\-types 
7058 \&\-fssa\-backprop 
7059 \&\-fssa\-phiopt 
7060 \&\-ftree\-bit\-ccp 
7061 \&\-ftree\-ccp 
7062 \&\-ftree\-ch 
7063 \&\-ftree\-coalesce\-vars 
7064 \&\-ftree\-copy\-prop 
7065 \&\-ftree\-dce 
7066 \&\-ftree\-dominator\-opts 
7067 \&\-ftree\-dse 
7068 \&\-ftree\-forwprop 
7069 \&\-ftree\-fre 
7070 \&\-ftree\-phiprop 
7071 \&\-ftree\-sink 
7072 \&\-ftree\-slsr 
7073 \&\-ftree\-sra 
7074 \&\-ftree\-pta 
7075 \&\-ftree\-ter 
7076 \&\-funit\-at\-a\-time\fR
7077 .IP "\fB\-O2\fR" 4
7078 .IX Item "-O2"
7079 Optimize even more.  \s-1GCC\s0 performs nearly all supported optimizations
7080 that do not involve a space-speed tradeoff.
7081 As compared to \fB\-O\fR, this option increases both compilation time
7082 and the performance of the generated code.
7083 .Sp
7084 \&\fB\-O2\fR turns on all optimization flags specified by \fB\-O\fR.  It
7085 also turns on the following optimization flags:
7086 \&\fB\-fthread\-jumps 
7087 \&\-falign\-functions  \-falign\-jumps 
7088 \&\-falign\-loops  \-falign\-labels 
7089 \&\-fcaller\-saves 
7090 \&\-fcrossjumping 
7091 \&\-fcse\-follow\-jumps  \-fcse\-skip\-blocks 
7092 \&\-fdelete\-null\-pointer\-checks 
7093 \&\-fdevirtualize \-fdevirtualize\-speculatively 
7094 \&\-fexpensive\-optimizations 
7095 \&\-fgcse  \-fgcse\-lm  
7096 \&\-fhoist\-adjacent\-loads 
7097 \&\-finline\-small\-functions 
7098 \&\-findirect\-inlining 
7099 \&\-fipa\-cp 
7100 \&\-fipa\-bit\-cp 
7101 \&\-fipa\-vrp 
7102 \&\-fipa\-sra 
7103 \&\-fipa\-icf 
7104 \&\-fisolate\-erroneous\-paths\-dereference 
7105 \&\-flra\-remat 
7106 \&\-foptimize\-sibling\-calls 
7107 \&\-foptimize\-strlen 
7108 \&\-fpartial\-inlining 
7109 \&\-fpeephole2 
7110 \&\-freorder\-blocks\-algorithm=stc 
7111 \&\-freorder\-blocks\-and\-partition \-freorder\-functions 
7112 \&\-frerun\-cse\-after\-loop  
7113 \&\-fsched\-interblock  \-fsched\-spec 
7114 \&\-fschedule\-insns  \-fschedule\-insns2 
7115 \&\-fstore\-merging 
7116 \&\-fstrict\-aliasing 
7117 \&\-ftree\-builtin\-call\-dce 
7118 \&\-ftree\-switch\-conversion \-ftree\-tail\-merge 
7119 \&\-fcode\-hoisting 
7120 \&\-ftree\-pre 
7121 \&\-ftree\-vrp 
7122 \&\-fipa\-ra\fR
7123 .Sp
7124 Please note the warning under \fB\-fgcse\fR about
7125 invoking \fB\-O2\fR on programs that use computed gotos.
7126 .IP "\fB\-O3\fR" 4
7127 .IX Item "-O3"
7128 Optimize yet more.  \fB\-O3\fR turns on all optimizations specified
7129 by \fB\-O2\fR and also turns on the following optimization flags:
7130 \&\fB\-finline\-functions 
7131 \&\-funswitch\-loops 
7132 \&\-fpredictive\-commoning 
7133 \&\-fgcse\-after\-reload 
7134 \&\-ftree\-loop\-vectorize 
7135 \&\-ftree\-loop\-distribution 
7136 \&\-ftree\-loop\-distribute\-patterns 
7137 \&\-floop\-interchange 
7138 \&\-floop\-unroll\-and\-jam 
7139 \&\-fsplit\-paths 
7140 \&\-ftree\-slp\-vectorize 
7141 \&\-fvect\-cost\-model 
7142 \&\-ftree\-partial\-pre 
7143 \&\-fpeel\-loops 
7144 \&\-fipa\-cp\-clone\fR
7145 .IP "\fB\-O0\fR" 4
7146 .IX Item "-O0"
7147 Reduce compilation time and make debugging produce the expected
7148 results.  This is the default.
7149 .IP "\fB\-Os\fR" 4
7150 .IX Item "-Os"
7151 Optimize for size.  \fB\-Os\fR enables all \fB\-O2\fR optimizations that
7152 do not typically increase code size.
7153 .Sp
7154 \&\fB\-Os\fR disables the following optimization flags:
7155 \&\fB\-falign\-functions  \-falign\-jumps  \-falign\-loops 
7156 \&\-falign\-labels  \-freorder\-blocks  \-freorder\-blocks\-algorithm=stc 
7157 \&\-freorder\-blocks\-and\-partition  \-fprefetch\-loop\-arrays\fR
7158 .Sp
7159 It also enables \fB\-finline\-functions\fR, causes the compiler to tune for
7160 code size rather than execution speed, and performs further optimizations
7161 designed to reduce code size.
7162 .IP "\fB\-Ofast\fR" 4
7163 .IX Item "-Ofast"
7164 Disregard strict standards compliance.  \fB\-Ofast\fR enables all
7165 \&\fB\-O3\fR optimizations.  It also enables optimizations that are not
7166 valid for all standard-compliant programs.
7167 It turns on \fB\-ffast\-math\fR and the Fortran-specific
7168 \&\fB\-fstack\-arrays\fR, unless \fB\-fmax\-stack\-var\-size\fR is
7169 specified, and \fB\-fno\-protect\-parens\fR.
7170 .IP "\fB\-Og\fR" 4
7171 .IX Item "-Og"
7172 Optimize debugging experience.  \fB\-Og\fR enables optimizations
7173 that do not interfere with debugging. It should be the optimization
7174 level of choice for the standard edit-compile-debug cycle, offering
7175 a reasonable level of optimization while maintaining fast compilation
7176 and a good debugging experience.
7177 .PP
7178 If you use multiple \fB\-O\fR options, with or without level numbers,
7179 the last such option is the one that is effective.
7180 .PP
7181 Options of the form \fB\-f\fR\fIflag\fR specify machine-independent
7182 flags.  Most flags have both positive and negative forms; the negative
7183 form of \fB\-ffoo\fR is \fB\-fno\-foo\fR.  In the table
7184 below, only one of the forms is listed\-\-\-the one you typically 
7185 use.  You can figure out the other form by either removing \fBno\-\fR
7186 or adding it.
7187 .PP
7188 The following options control specific optimizations.  They are either
7189 activated by \fB\-O\fR options or are related to ones that are.  You
7190 can use the following flags in the rare cases when \*(L"fine-tuning\*(R" of
7191 optimizations to be performed is desired.
7192 .IP "\fB\-fno\-defer\-pop\fR" 4
7193 .IX Item "-fno-defer-pop"
7194 Always pop the arguments to each function call as soon as that function
7195 returns.  For machines that must pop arguments after a function call,
7196 the compiler normally lets arguments accumulate on the stack for several
7197 function calls and pops them all at once.
7198 .Sp
7199 Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7200 .IP "\fB\-fforward\-propagate\fR" 4
7201 .IX Item "-fforward-propagate"
7202 Perform a forward propagation pass on \s-1RTL.\s0  The pass tries to combine two
7203 instructions and checks if the result can be simplified.  If loop unrolling
7204 is active, two passes are performed and the second is scheduled after
7205 loop unrolling.
7206 .Sp
7207 This option is enabled by default at optimization levels \fB\-O\fR,
7208 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7209 .IP "\fB\-ffp\-contract=\fR\fIstyle\fR" 4
7210 .IX Item "-ffp-contract=style"
7211 \&\fB\-ffp\-contract=off\fR disables floating-point expression contraction.
7212 \&\fB\-ffp\-contract=fast\fR enables floating-point expression contraction
7213 such as forming of fused multiply-add operations if the target has
7214 native support for them.
7215 \&\fB\-ffp\-contract=on\fR enables floating-point expression contraction
7216 if allowed by the language standard.  This is currently not implemented
7217 and treated equal to \fB\-ffp\-contract=off\fR.
7218 .Sp
7219 The default is \fB\-ffp\-contract=fast\fR.
7220 .IP "\fB\-fomit\-frame\-pointer\fR" 4
7221 .IX Item "-fomit-frame-pointer"
7222 Omit the frame pointer in functions that don't need one.  This avoids the
7223 instructions to save, set up and restore the frame pointer; on many targets
7224 it also makes an extra register available.
7225 .Sp
7226 On some targets this flag has no effect because the standard calling sequence
7227 always uses a frame pointer, so it cannot be omitted.
7228 .Sp
7229 Note that \fB\-fno\-omit\-frame\-pointer\fR doesn't guarantee the frame pointer
7230 is used in all functions.  Several targets always omit the frame pointer in
7231 leaf functions.
7232 .Sp
7233 Enabled by default at \fB\-O\fR and higher.
7234 .IP "\fB\-foptimize\-sibling\-calls\fR" 4
7235 .IX Item "-foptimize-sibling-calls"
7236 Optimize sibling and tail recursive calls.
7237 .Sp
7238 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7239 .IP "\fB\-foptimize\-strlen\fR" 4
7240 .IX Item "-foptimize-strlen"
7241 Optimize various standard C string functions (e.g. \f(CW\*(C`strlen\*(C'\fR,
7242 \&\f(CW\*(C`strchr\*(C'\fR or \f(CW\*(C`strcpy\*(C'\fR) and
7243 their \f(CW\*(C`_FORTIFY_SOURCE\*(C'\fR counterparts into faster alternatives.
7244 .Sp
7245 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
7246 .IP "\fB\-fno\-inline\fR" 4
7247 .IX Item "-fno-inline"
7248 Do not expand any functions inline apart from those marked with
7249 the \f(CW\*(C`always_inline\*(C'\fR attribute.  This is the default when not
7250 optimizing.
7251 .Sp
7252 Single functions can be exempted from inlining by marking them
7253 with the \f(CW\*(C`noinline\*(C'\fR attribute.
7254 .IP "\fB\-finline\-small\-functions\fR" 4
7255 .IX Item "-finline-small-functions"
7256 Integrate functions into their callers when their body is smaller than expected
7257 function call code (so overall size of program gets smaller).  The compiler
7258 heuristically decides which functions are simple enough to be worth integrating
7259 in this way.  This inlining applies to all functions, even those not declared
7260 inline.
7261 .Sp
7262 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7263 .IP "\fB\-findirect\-inlining\fR" 4
7264 .IX Item "-findirect-inlining"
7265 Inline also indirect calls that are discovered to be known at compile
7266 time thanks to previous inlining.  This option has any effect only
7267 when inlining itself is turned on by the \fB\-finline\-functions\fR
7268 or \fB\-finline\-small\-functions\fR options.
7269 .Sp
7270 Enabled at levels \fB\-O3\fR, \fB\-Os\fR.  Also enabled
7271 by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
7272 .IP "\fB\-finline\-functions\fR" 4
7273 .IX Item "-finline-functions"
7274 Consider all functions for inlining, even if they are not declared inline.
7275 The compiler heuristically decides which functions are worth integrating
7276 in this way.
7277 .Sp
7278 If all calls to a given function are integrated, and the function is
7279 declared \f(CW\*(C`static\*(C'\fR, then the function is normally not output as
7280 assembler code in its own right.
7281 .Sp
7282 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7283 .IP "\fB\-finline\-functions\-called\-once\fR" 4
7284 .IX Item "-finline-functions-called-once"
7285 Consider all \f(CW\*(C`static\*(C'\fR functions called once for inlining into their
7286 caller even if they are not marked \f(CW\*(C`inline\*(C'\fR.  If a call to a given
7287 function is integrated, then the function is not output as assembler code
7288 in its own right.
7289 .Sp
7290 Enabled at levels \fB\-O1\fR, \fB\-O2\fR, \fB\-O3\fR and \fB\-Os\fR.
7291 .IP "\fB\-fearly\-inlining\fR" 4
7292 .IX Item "-fearly-inlining"
7293 Inline functions marked by \f(CW\*(C`always_inline\*(C'\fR and functions whose body seems
7294 smaller than the function call overhead early before doing
7295 \&\fB\-fprofile\-generate\fR instrumentation and real inlining pass.  Doing so
7296 makes profiling significantly cheaper and usually inlining faster on programs
7297 having large chains of nested wrapper functions.
7298 .Sp
7299 Enabled by default.
7300 .IP "\fB\-fipa\-sra\fR" 4
7301 .IX Item "-fipa-sra"
7302 Perform interprocedural scalar replacement of aggregates, removal of
7303 unused parameters and replacement of parameters passed by reference
7304 by parameters passed by value.
7305 .Sp
7306 Enabled at levels \fB\-O2\fR, \fB\-O3\fR and \fB\-Os\fR.
7307 .IP "\fB\-finline\-limit=\fR\fIn\fR" 4
7308 .IX Item "-finline-limit=n"
7309 By default, \s-1GCC\s0 limits the size of functions that can be inlined.  This flag
7310 allows coarse control of this limit.  \fIn\fR is the size of functions that
7311 can be inlined in number of pseudo instructions.
7312 .Sp
7313 Inlining is actually controlled by a number of parameters, which may be
7314 specified individually by using \fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR.
7315 The \fB\-finline\-limit=\fR\fIn\fR option sets some of these parameters
7316 as follows:
7317 .RS 4
7318 .IP "\fBmax-inline-insns-single\fR" 4
7319 .IX Item "max-inline-insns-single"
7320 is set to \fIn\fR/2.
7321 .IP "\fBmax-inline-insns-auto\fR" 4
7322 .IX Item "max-inline-insns-auto"
7323 is set to \fIn\fR/2.
7324 .RE
7325 .RS 4
7326 .Sp
7327 See below for a documentation of the individual
7328 parameters controlling inlining and for the defaults of these parameters.
7329 .Sp
7330 \&\fINote:\fR there may be no value to \fB\-finline\-limit\fR that results
7331 in default behavior.
7332 .Sp
7333 \&\fINote:\fR pseudo instruction represents, in this particular context, an
7334 abstract measurement of function's size.  In no way does it represent a count
7335 of assembly instructions and as such its exact meaning might change from one
7336 release to an another.
7337 .RE
7338 .IP "\fB\-fno\-keep\-inline\-dllexport\fR" 4
7339 .IX Item "-fno-keep-inline-dllexport"
7340 This is a more fine-grained version of \fB\-fkeep\-inline\-functions\fR,
7341 which applies only to functions that are declared using the \f(CW\*(C`dllexport\*(C'\fR
7342 attribute or declspec.
7343 .IP "\fB\-fkeep\-inline\-functions\fR" 4
7344 .IX Item "-fkeep-inline-functions"
7345 In C, emit \f(CW\*(C`static\*(C'\fR functions that are declared \f(CW\*(C`inline\*(C'\fR
7346 into the object file, even if the function has been inlined into all
7347 of its callers.  This switch does not affect functions using the
7348 \&\f(CW\*(C`extern inline\*(C'\fR extension in \s-1GNU C90.\s0  In \*(C+, emit any and all
7349 inline functions into the object file.
7350 .IP "\fB\-fkeep\-static\-functions\fR" 4
7351 .IX Item "-fkeep-static-functions"
7352 Emit \f(CW\*(C`static\*(C'\fR functions into the object file, even if the function
7353 is never used.
7354 .IP "\fB\-fkeep\-static\-consts\fR" 4
7355 .IX Item "-fkeep-static-consts"
7356 Emit variables declared \f(CW\*(C`static const\*(C'\fR when optimization isn't turned
7357 on, even if the variables aren't referenced.
7358 .Sp
7359 \&\s-1GCC\s0 enables this option by default.  If you want to force the compiler to
7360 check if a variable is referenced, regardless of whether or not
7361 optimization is turned on, use the \fB\-fno\-keep\-static\-consts\fR option.
7362 .IP "\fB\-fmerge\-constants\fR" 4
7363 .IX Item "-fmerge-constants"
7364 Attempt to merge identical constants (string constants and floating-point
7365 constants) across compilation units.
7366 .Sp
7367 This option is the default for optimized compilation if the assembler and
7368 linker support it.  Use \fB\-fno\-merge\-constants\fR to inhibit this
7369 behavior.
7370 .Sp
7371 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7372 .IP "\fB\-fmerge\-all\-constants\fR" 4
7373 .IX Item "-fmerge-all-constants"
7374 Attempt to merge identical constants and identical variables.
7375 .Sp
7376 This option implies \fB\-fmerge\-constants\fR.  In addition to
7377 \&\fB\-fmerge\-constants\fR this considers e.g. even constant initialized
7378 arrays or initialized constant variables with integral or floating-point
7379 types.  Languages like C or \*(C+ require each variable, including multiple
7380 instances of the same variable in recursive calls, to have distinct locations,
7381 so using this option results in non-conforming
7382 behavior.
7383 .IP "\fB\-fmodulo\-sched\fR" 4
7384 .IX Item "-fmodulo-sched"
7385 Perform swing modulo scheduling immediately before the first scheduling
7386 pass.  This pass looks at innermost loops and reorders their
7387 instructions by overlapping different iterations.
7388 .IP "\fB\-fmodulo\-sched\-allow\-regmoves\fR" 4
7389 .IX Item "-fmodulo-sched-allow-regmoves"
7390 Perform more aggressive SMS-based modulo scheduling with register moves
7391 allowed.  By setting this flag certain anti-dependences edges are
7392 deleted, which triggers the generation of reg-moves based on the
7393 life-range analysis.  This option is effective only with
7394 \&\fB\-fmodulo\-sched\fR enabled.
7395 .IP "\fB\-fno\-branch\-count\-reg\fR" 4
7396 .IX Item "-fno-branch-count-reg"
7397 Avoid running a pass scanning for opportunities to use \*(L"decrement and
7398 branch\*(R" instructions on a count register instead of generating sequences
7399 of instructions that decrement a register, compare it against zero, and
7400 then branch based upon the result.  This option is only meaningful on
7401 architectures that support such instructions, which include x86, PowerPC,
7402 \&\s-1IA\-64\s0 and S/390.  Note that the \fB\-fno\-branch\-count\-reg\fR option
7403 doesn't remove the decrement and branch instructions from the generated
7404 instruction stream introduced by other optimization passes.
7405 .Sp
7406 Enabled by default at \fB\-O1\fR and higher.
7407 .Sp
7408 The default is \fB\-fbranch\-count\-reg\fR.
7409 .IP "\fB\-fno\-function\-cse\fR" 4
7410 .IX Item "-fno-function-cse"
7411 Do not put function addresses in registers; make each instruction that
7412 calls a constant function contain the function's address explicitly.
7413 .Sp
7414 This option results in less efficient code, but some strange hacks
7415 that alter the assembler output may be confused by the optimizations
7416 performed when this option is not used.
7417 .Sp
7418 The default is \fB\-ffunction\-cse\fR
7419 .IP "\fB\-fno\-zero\-initialized\-in\-bss\fR" 4
7420 .IX Item "-fno-zero-initialized-in-bss"
7421 If the target supports a \s-1BSS\s0 section, \s-1GCC\s0 by default puts variables that
7422 are initialized to zero into \s-1BSS.\s0  This can save space in the resulting
7423 code.
7424 .Sp
7425 This option turns off this behavior because some programs explicitly
7426 rely on variables going to the data section\-\-\-e.g., so that the
7427 resulting executable can find the beginning of that section and/or make
7428 assumptions based on that.
7429 .Sp
7430 The default is \fB\-fzero\-initialized\-in\-bss\fR.
7431 .IP "\fB\-fthread\-jumps\fR" 4
7432 .IX Item "-fthread-jumps"
7433 Perform optimizations that check to see if a jump branches to a
7434 location where another comparison subsumed by the first is found.  If
7435 so, the first branch is redirected to either the destination of the
7436 second branch or a point immediately following it, depending on whether
7437 the condition is known to be true or false.
7438 .Sp
7439 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7440 .IP "\fB\-fsplit\-wide\-types\fR" 4
7441 .IX Item "-fsplit-wide-types"
7442 When using a type that occupies multiple registers, such as \f(CW\*(C`long
7443 long\*(C'\fR on a 32\-bit system, split the registers apart and allocate them
7444 independently.  This normally generates better code for those types,
7445 but may make debugging more difficult.
7446 .Sp
7447 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR,
7448 \&\fB\-Os\fR.
7449 .IP "\fB\-fcse\-follow\-jumps\fR" 4
7450 .IX Item "-fcse-follow-jumps"
7451 In common subexpression elimination (\s-1CSE\s0), scan through jump instructions
7452 when the target of the jump is not reached by any other path.  For
7453 example, when \s-1CSE\s0 encounters an \f(CW\*(C`if\*(C'\fR statement with an
7454 \&\f(CW\*(C`else\*(C'\fR clause, \s-1CSE\s0 follows the jump when the condition
7455 tested is false.
7456 .Sp
7457 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7458 .IP "\fB\-fcse\-skip\-blocks\fR" 4
7459 .IX Item "-fcse-skip-blocks"
7460 This is similar to \fB\-fcse\-follow\-jumps\fR, but causes \s-1CSE\s0 to
7461 follow jumps that conditionally skip over blocks.  When \s-1CSE\s0
7462 encounters a simple \f(CW\*(C`if\*(C'\fR statement with no else clause,
7463 \&\fB\-fcse\-skip\-blocks\fR causes \s-1CSE\s0 to follow the jump around the
7464 body of the \f(CW\*(C`if\*(C'\fR.
7465 .Sp
7466 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7467 .IP "\fB\-frerun\-cse\-after\-loop\fR" 4
7468 .IX Item "-frerun-cse-after-loop"
7469 Re-run common subexpression elimination after loop optimizations are
7470 performed.
7471 .Sp
7472 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7473 .IP "\fB\-fgcse\fR" 4
7474 .IX Item "-fgcse"
7475 Perform a global common subexpression elimination pass.
7476 This pass also performs global constant and copy propagation.
7477 .Sp
7478 \&\fINote:\fR When compiling a program using computed gotos, a \s-1GCC\s0
7479 extension, you may get better run-time performance if you disable
7480 the global common subexpression elimination pass by adding
7481 \&\fB\-fno\-gcse\fR to the command line.
7482 .Sp
7483 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7484 .IP "\fB\-fgcse\-lm\fR" 4
7485 .IX Item "-fgcse-lm"
7486 When \fB\-fgcse\-lm\fR is enabled, global common subexpression elimination
7487 attempts to move loads that are only killed by stores into themselves.  This
7488 allows a loop containing a load/store sequence to be changed to a load outside
7489 the loop, and a copy/store within the loop.
7490 .Sp
7491 Enabled by default when \fB\-fgcse\fR is enabled.
7492 .IP "\fB\-fgcse\-sm\fR" 4
7493 .IX Item "-fgcse-sm"
7494 When \fB\-fgcse\-sm\fR is enabled, a store motion pass is run after
7495 global common subexpression elimination.  This pass attempts to move
7496 stores out of loops.  When used in conjunction with \fB\-fgcse\-lm\fR,
7497 loops containing a load/store sequence can be changed to a load before
7498 the loop and a store after the loop.
7499 .Sp
7500 Not enabled at any optimization level.
7501 .IP "\fB\-fgcse\-las\fR" 4
7502 .IX Item "-fgcse-las"
7503 When \fB\-fgcse\-las\fR is enabled, the global common subexpression
7504 elimination pass eliminates redundant loads that come after stores to the
7505 same memory location (both partial and full redundancies).
7506 .Sp
7507 Not enabled at any optimization level.
7508 .IP "\fB\-fgcse\-after\-reload\fR" 4
7509 .IX Item "-fgcse-after-reload"
7510 When \fB\-fgcse\-after\-reload\fR is enabled, a redundant load elimination
7511 pass is performed after reload.  The purpose of this pass is to clean up
7512 redundant spilling.
7513 .IP "\fB\-faggressive\-loop\-optimizations\fR" 4
7514 .IX Item "-faggressive-loop-optimizations"
7515 This option tells the loop optimizer to use language constraints to
7516 derive bounds for the number of iterations of a loop.  This assumes that
7517 loop code does not invoke undefined behavior by for example causing signed
7518 integer overflows or out-of-bound array accesses.  The bounds for the
7519 number of iterations of a loop are used to guide loop unrolling and peeling
7520 and loop exit test optimizations.
7521 This option is enabled by default.
7522 .IP "\fB\-funconstrained\-commons\fR" 4
7523 .IX Item "-funconstrained-commons"
7524 This option tells the compiler that variables declared in common blocks
7525 (e.g. Fortran) may later be overridden with longer trailing arrays. This
7526 prevents certain optimizations that depend on knowing the array bounds.
7527 .IP "\fB\-fcrossjumping\fR" 4
7528 .IX Item "-fcrossjumping"
7529 Perform cross-jumping transformation.
7530 This transformation unifies equivalent code and saves code size.  The
7531 resulting code may or may not perform better than without cross-jumping.
7532 .Sp
7533 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7534 .IP "\fB\-fauto\-inc\-dec\fR" 4
7535 .IX Item "-fauto-inc-dec"
7536 Combine increments or decrements of addresses with memory accesses.
7537 This pass is always skipped on architectures that do not have
7538 instructions to support this.  Enabled by default at \fB\-O\fR and
7539 higher on architectures that support this.
7540 .IP "\fB\-fdce\fR" 4
7541 .IX Item "-fdce"
7542 Perform dead code elimination (\s-1DCE\s0) on \s-1RTL.\s0
7543 Enabled by default at \fB\-O\fR and higher.
7544 .IP "\fB\-fdse\fR" 4
7545 .IX Item "-fdse"
7546 Perform dead store elimination (\s-1DSE\s0) on \s-1RTL.\s0
7547 Enabled by default at \fB\-O\fR and higher.
7548 .IP "\fB\-fif\-conversion\fR" 4
7549 .IX Item "-fif-conversion"
7550 Attempt to transform conditional jumps into branch-less equivalents.  This
7551 includes use of conditional moves, min, max, set flags and abs instructions, and
7552 some tricks doable by standard arithmetics.  The use of conditional execution
7553 on chips where it is available is controlled by \fB\-fif\-conversion2\fR.
7554 .Sp
7555 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7556 .IP "\fB\-fif\-conversion2\fR" 4
7557 .IX Item "-fif-conversion2"
7558 Use conditional execution (where available) to transform conditional jumps into
7559 branch-less equivalents.
7560 .Sp
7561 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7562 .IP "\fB\-fdeclone\-ctor\-dtor\fR" 4
7563 .IX Item "-fdeclone-ctor-dtor"
7564 The \*(C+ \s-1ABI\s0 requires multiple entry points for constructors and
7565 destructors: one for a base subobject, one for a complete object, and
7566 one for a virtual destructor that calls operator delete afterwards.
7567 For a hierarchy with virtual bases, the base and complete variants are
7568 clones, which means two copies of the function.  With this option, the
7569 base and complete variants are changed to be thunks that call a common
7570 implementation.
7571 .Sp
7572 Enabled by \fB\-Os\fR.
7573 .IP "\fB\-fdelete\-null\-pointer\-checks\fR" 4
7574 .IX Item "-fdelete-null-pointer-checks"
7575 Assume that programs cannot safely dereference null pointers, and that
7576 no code or data element resides at address zero.
7577 This option enables simple constant
7578 folding optimizations at all optimization levels.  In addition, other
7579 optimization passes in \s-1GCC\s0 use this flag to control global dataflow
7580 analyses that eliminate useless checks for null pointers; these assume
7581 that a memory access to address zero always results in a trap, so
7582 that if a pointer is checked after it has already been dereferenced,
7583 it cannot be null.
7584 .Sp
7585 Note however that in some environments this assumption is not true.
7586 Use \fB\-fno\-delete\-null\-pointer\-checks\fR to disable this optimization
7587 for programs that depend on that behavior.
7588 .Sp
7589 This option is enabled by default on most targets.  On Nios \s-1II ELF,\s0 it
7590 defaults to off.  On \s-1AVR, CR16,\s0 and \s-1MSP430,\s0 this option is completely disabled.
7591 .Sp
7592 Passes that use the dataflow information
7593 are enabled independently at different optimization levels.
7594 .IP "\fB\-fdevirtualize\fR" 4
7595 .IX Item "-fdevirtualize"
7596 Attempt to convert calls to virtual functions to direct calls.  This
7597 is done both within a procedure and interprocedurally as part of
7598 indirect inlining (\fB\-findirect\-inlining\fR) and interprocedural constant
7599 propagation (\fB\-fipa\-cp\fR).
7600 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7601 .IP "\fB\-fdevirtualize\-speculatively\fR" 4
7602 .IX Item "-fdevirtualize-speculatively"
7603 Attempt to convert calls to virtual functions to speculative direct calls.
7604 Based on the analysis of the type inheritance graph, determine for a given call
7605 the set of likely targets. If the set is small, preferably of size 1, change
7606 the call into a conditional deciding between direct and indirect calls.  The
7607 speculative calls enable more optimizations, such as inlining.  When they seem
7608 useless after further optimization, they are converted back into original form.
7609 .IP "\fB\-fdevirtualize\-at\-ltrans\fR" 4
7610 .IX Item "-fdevirtualize-at-ltrans"
7611 Stream extra information needed for aggressive devirtualization when running
7612 the link-time optimizer in local transformation mode.  
7613 This option enables more devirtualization but
7614 significantly increases the size of streamed data. For this reason it is
7615 disabled by default.
7616 .IP "\fB\-fexpensive\-optimizations\fR" 4
7617 .IX Item "-fexpensive-optimizations"
7618 Perform a number of minor optimizations that are relatively expensive.
7619 .Sp
7620 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7621 .IP "\fB\-free\fR" 4
7622 .IX Item "-free"
7623 Attempt to remove redundant extension instructions.  This is especially
7624 helpful for the x86\-64 architecture, which implicitly zero-extends in 64\-bit
7625 registers after writing to their lower 32\-bit half.
7626 .Sp
7627 Enabled for Alpha, AArch64 and x86 at levels \fB\-O2\fR,
7628 \&\fB\-O3\fR, \fB\-Os\fR.
7629 .IP "\fB\-fno\-lifetime\-dse\fR" 4
7630 .IX Item "-fno-lifetime-dse"
7631 In \*(C+ the value of an object is only affected by changes within its
7632 lifetime: when the constructor begins, the object has an indeterminate
7633 value, and any changes during the lifetime of the object are dead when
7634 the object is destroyed.  Normally dead store elimination will take
7635 advantage of this; if your code relies on the value of the object
7636 storage persisting beyond the lifetime of the object, you can use this
7637 flag to disable this optimization.  To preserve stores before the
7638 constructor starts (e.g. because your operator new clears the object
7639 storage) but still treat the object as dead after the destructor you,
7640 can use \fB\-flifetime\-dse=1\fR.  The default behavior can be
7641 explicitly selected with \fB\-flifetime\-dse=2\fR.
7642 \&\fB\-flifetime\-dse=0\fR is equivalent to \fB\-fno\-lifetime\-dse\fR.
7643 .IP "\fB\-flive\-range\-shrinkage\fR" 4
7644 .IX Item "-flive-range-shrinkage"
7645 Attempt to decrease register pressure through register live range
7646 shrinkage.  This is helpful for fast processors with small or moderate
7647 size register sets.
7648 .IP "\fB\-fira\-algorithm=\fR\fIalgorithm\fR" 4
7649 .IX Item "-fira-algorithm=algorithm"
7650 Use the specified coloring algorithm for the integrated register
7651 allocator.  The \fIalgorithm\fR argument can be \fBpriority\fR, which
7652 specifies Chow's priority coloring, or \fB\s-1CB\s0\fR, which specifies
7653 Chaitin-Briggs coloring.  Chaitin-Briggs coloring is not implemented
7654 for all architectures, but for those targets that do support it, it is
7655 the default because it generates better code.
7656 .IP "\fB\-fira\-region=\fR\fIregion\fR" 4
7657 .IX Item "-fira-region=region"
7658 Use specified regions for the integrated register allocator.  The
7659 \&\fIregion\fR argument should be one of the following:
7660 .RS 4
7661 .IP "\fBall\fR" 4
7662 .IX Item "all"
7663 Use all loops as register allocation regions.
7664 This can give the best results for machines with a small and/or
7665 irregular register set.
7666 .IP "\fBmixed\fR" 4
7667 .IX Item "mixed"
7668 Use all loops except for loops with small register pressure 
7669 as the regions.  This value usually gives
7670 the best results in most cases and for most architectures,
7671 and is enabled by default when compiling with optimization for speed
7672 (\fB\-O\fR, \fB\-O2\fR, ...).
7673 .IP "\fBone\fR" 4
7674 .IX Item "one"
7675 Use all functions as a single region.  
7676 This typically results in the smallest code size, and is enabled by default for
7677 \&\fB\-Os\fR or \fB\-O0\fR.
7678 .RE
7679 .RS 4
7680 .RE
7681 .IP "\fB\-fira\-hoist\-pressure\fR" 4
7682 .IX Item "-fira-hoist-pressure"
7683 Use \s-1IRA\s0 to evaluate register pressure in the code hoisting pass for
7684 decisions to hoist expressions.  This option usually results in smaller
7685 code, but it can slow the compiler down.
7686 .Sp
7687 This option is enabled at level \fB\-Os\fR for all targets.
7688 .IP "\fB\-fira\-loop\-pressure\fR" 4
7689 .IX Item "-fira-loop-pressure"
7690 Use \s-1IRA\s0 to evaluate register pressure in loops for decisions to move
7691 loop invariants.  This option usually results in generation
7692 of faster and smaller code on machines with large register files (>= 32
7693 registers), but it can slow the compiler down.
7694 .Sp
7695 This option is enabled at level \fB\-O3\fR for some targets.
7696 .IP "\fB\-fno\-ira\-share\-save\-slots\fR" 4
7697 .IX Item "-fno-ira-share-save-slots"
7698 Disable sharing of stack slots used for saving call-used hard
7699 registers living through a call.  Each hard register gets a
7700 separate stack slot, and as a result function stack frames are
7701 larger.
7702 .IP "\fB\-fno\-ira\-share\-spill\-slots\fR" 4
7703 .IX Item "-fno-ira-share-spill-slots"
7704 Disable sharing of stack slots allocated for pseudo-registers.  Each
7705 pseudo-register that does not get a hard register gets a separate
7706 stack slot, and as a result function stack frames are larger.
7707 .IP "\fB\-flra\-remat\fR" 4
7708 .IX Item "-flra-remat"
7709 Enable CFG-sensitive rematerialization in \s-1LRA.\s0  Instead of loading
7710 values of spilled pseudos, \s-1LRA\s0 tries to rematerialize (recalculate)
7711 values if it is profitable.
7712 .Sp
7713 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7714 .IP "\fB\-fdelayed\-branch\fR" 4
7715 .IX Item "-fdelayed-branch"
7716 If supported for the target machine, attempt to reorder instructions
7717 to exploit instruction slots available after delayed branch
7718 instructions.
7719 .Sp
7720 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7721 .IP "\fB\-fschedule\-insns\fR" 4
7722 .IX Item "-fschedule-insns"
7723 If supported for the target machine, attempt to reorder instructions to
7724 eliminate execution stalls due to required data being unavailable.  This
7725 helps machines that have slow floating point or memory load instructions
7726 by allowing other instructions to be issued until the result of the load
7727 or floating-point instruction is required.
7728 .Sp
7729 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
7730 .IP "\fB\-fschedule\-insns2\fR" 4
7731 .IX Item "-fschedule-insns2"
7732 Similar to \fB\-fschedule\-insns\fR, but requests an additional pass of
7733 instruction scheduling after register allocation has been done.  This is
7734 especially useful on machines with a relatively small number of
7735 registers and where memory load instructions take more than one cycle.
7736 .Sp
7737 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7738 .IP "\fB\-fno\-sched\-interblock\fR" 4
7739 .IX Item "-fno-sched-interblock"
7740 Don't schedule instructions across basic blocks.  This is normally
7741 enabled by default when scheduling before register allocation, i.e.
7742 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
7743 .IP "\fB\-fno\-sched\-spec\fR" 4
7744 .IX Item "-fno-sched-spec"
7745 Don't allow speculative motion of non-load instructions.  This is normally
7746 enabled by default when scheduling before register allocation, i.e.
7747 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
7748 .IP "\fB\-fsched\-pressure\fR" 4
7749 .IX Item "-fsched-pressure"
7750 Enable register pressure sensitive insn scheduling before register
7751 allocation.  This only makes sense when scheduling before register
7752 allocation is enabled, i.e. with \fB\-fschedule\-insns\fR or at
7753 \&\fB\-O2\fR or higher.  Usage of this option can improve the
7754 generated code and decrease its size by preventing register pressure
7755 increase above the number of available hard registers and subsequent
7756 spills in register allocation.
7757 .IP "\fB\-fsched\-spec\-load\fR" 4
7758 .IX Item "-fsched-spec-load"
7759 Allow speculative motion of some load instructions.  This only makes
7760 sense when scheduling before register allocation, i.e. with
7761 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
7762 .IP "\fB\-fsched\-spec\-load\-dangerous\fR" 4
7763 .IX Item "-fsched-spec-load-dangerous"
7764 Allow speculative motion of more load instructions.  This only makes
7765 sense when scheduling before register allocation, i.e. with
7766 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
7767 .IP "\fB\-fsched\-stalled\-insns\fR" 4
7768 .IX Item "-fsched-stalled-insns"
7769 .PD 0
7770 .IP "\fB\-fsched\-stalled\-insns=\fR\fIn\fR" 4
7771 .IX Item "-fsched-stalled-insns=n"
7772 .PD
7773 Define how many insns (if any) can be moved prematurely from the queue
7774 of stalled insns into the ready list during the second scheduling pass.
7775 \&\fB\-fno\-sched\-stalled\-insns\fR means that no insns are moved
7776 prematurely, \fB\-fsched\-stalled\-insns=0\fR means there is no limit
7777 on how many queued insns can be moved prematurely.
7778 \&\fB\-fsched\-stalled\-insns\fR without a value is equivalent to
7779 \&\fB\-fsched\-stalled\-insns=1\fR.
7780 .IP "\fB\-fsched\-stalled\-insns\-dep\fR" 4
7781 .IX Item "-fsched-stalled-insns-dep"
7782 .PD 0
7783 .IP "\fB\-fsched\-stalled\-insns\-dep=\fR\fIn\fR" 4
7784 .IX Item "-fsched-stalled-insns-dep=n"
7785 .PD
7786 Define how many insn groups (cycles) are examined for a dependency
7787 on a stalled insn that is a candidate for premature removal from the queue
7788 of stalled insns.  This has an effect only during the second scheduling pass,
7789 and only if \fB\-fsched\-stalled\-insns\fR is used.
7790 \&\fB\-fno\-sched\-stalled\-insns\-dep\fR is equivalent to
7791 \&\fB\-fsched\-stalled\-insns\-dep=0\fR.
7792 \&\fB\-fsched\-stalled\-insns\-dep\fR without a value is equivalent to
7793 \&\fB\-fsched\-stalled\-insns\-dep=1\fR.
7794 .IP "\fB\-fsched2\-use\-superblocks\fR" 4
7795 .IX Item "-fsched2-use-superblocks"
7796 When scheduling after register allocation, use superblock scheduling.
7797 This allows motion across basic block boundaries,
7798 resulting in faster schedules.  This option is experimental, as not all machine
7799 descriptions used by \s-1GCC\s0 model the \s-1CPU\s0 closely enough to avoid unreliable
7800 results from the algorithm.
7801 .Sp
7802 This only makes sense when scheduling after register allocation, i.e. with
7803 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
7804 .IP "\fB\-fsched\-group\-heuristic\fR" 4
7805 .IX Item "-fsched-group-heuristic"
7806 Enable the group heuristic in the scheduler.  This heuristic favors
7807 the instruction that belongs to a schedule group.  This is enabled
7808 by default when scheduling is enabled, i.e. with \fB\-fschedule\-insns\fR
7809 or \fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
7810 .IP "\fB\-fsched\-critical\-path\-heuristic\fR" 4
7811 .IX Item "-fsched-critical-path-heuristic"
7812 Enable the critical-path heuristic in the scheduler.  This heuristic favors
7813 instructions on the critical path.  This is enabled by default when
7814 scheduling is enabled, i.e. with \fB\-fschedule\-insns\fR
7815 or \fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
7816 .IP "\fB\-fsched\-spec\-insn\-heuristic\fR" 4
7817 .IX Item "-fsched-spec-insn-heuristic"
7818 Enable the speculative instruction heuristic in the scheduler.  This
7819 heuristic favors speculative instructions with greater dependency weakness.
7820 This is enabled by default when scheduling is enabled, i.e.
7821 with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR
7822 or at \fB\-O2\fR or higher.
7823 .IP "\fB\-fsched\-rank\-heuristic\fR" 4
7824 .IX Item "-fsched-rank-heuristic"
7825 Enable the rank heuristic in the scheduler.  This heuristic favors
7826 the instruction belonging to a basic block with greater size or frequency.
7827 This is enabled by default when scheduling is enabled, i.e.
7828 with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
7829 at \fB\-O2\fR or higher.
7830 .IP "\fB\-fsched\-last\-insn\-heuristic\fR" 4
7831 .IX Item "-fsched-last-insn-heuristic"
7832 Enable the last-instruction heuristic in the scheduler.  This heuristic
7833 favors the instruction that is less dependent on the last instruction
7834 scheduled.  This is enabled by default when scheduling is enabled,
7835 i.e. with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
7836 at \fB\-O2\fR or higher.
7837 .IP "\fB\-fsched\-dep\-count\-heuristic\fR" 4
7838 .IX Item "-fsched-dep-count-heuristic"
7839 Enable the dependent-count heuristic in the scheduler.  This heuristic
7840 favors the instruction that has more instructions depending on it.
7841 This is enabled by default when scheduling is enabled, i.e.
7842 with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
7843 at \fB\-O2\fR or higher.
7844 .IP "\fB\-freschedule\-modulo\-scheduled\-loops\fR" 4
7845 .IX Item "-freschedule-modulo-scheduled-loops"
7846 Modulo scheduling is performed before traditional scheduling.  If a loop
7847 is modulo scheduled, later scheduling passes may change its schedule.  
7848 Use this option to control that behavior.
7849 .IP "\fB\-fselective\-scheduling\fR" 4
7850 .IX Item "-fselective-scheduling"
7851 Schedule instructions using selective scheduling algorithm.  Selective
7852 scheduling runs instead of the first scheduler pass.
7853 .IP "\fB\-fselective\-scheduling2\fR" 4
7854 .IX Item "-fselective-scheduling2"
7855 Schedule instructions using selective scheduling algorithm.  Selective
7856 scheduling runs instead of the second scheduler pass.
7857 .IP "\fB\-fsel\-sched\-pipelining\fR" 4
7858 .IX Item "-fsel-sched-pipelining"
7859 Enable software pipelining of innermost loops during selective scheduling.
7860 This option has no effect unless one of \fB\-fselective\-scheduling\fR or
7861 \&\fB\-fselective\-scheduling2\fR is turned on.
7862 .IP "\fB\-fsel\-sched\-pipelining\-outer\-loops\fR" 4
7863 .IX Item "-fsel-sched-pipelining-outer-loops"
7864 When pipelining loops during selective scheduling, also pipeline outer loops.
7865 This option has no effect unless \fB\-fsel\-sched\-pipelining\fR is turned on.
7866 .IP "\fB\-fsemantic\-interposition\fR" 4
7867 .IX Item "-fsemantic-interposition"
7868 Some object formats, like \s-1ELF,\s0 allow interposing of symbols by the 
7869 dynamic linker.
7870 This means that for symbols exported from the \s-1DSO,\s0 the compiler cannot perform
7871 interprocedural propagation, inlining and other optimizations in anticipation
7872 that the function or variable in question may change. While this feature is
7873 useful, for example, to rewrite memory allocation functions by a debugging
7874 implementation, it is expensive in the terms of code quality.
7875 With \fB\-fno\-semantic\-interposition\fR the compiler assumes that 
7876 if interposition happens for functions the overwriting function will have 
7877 precisely the same semantics (and side effects). 
7878 Similarly if interposition happens
7879 for variables, the constructor of the variable will be the same. The flag
7880 has no effect for functions explicitly declared inline 
7881 (where it is never allowed for interposition to change semantics) 
7882 and for symbols explicitly declared weak.
7883 .IP "\fB\-fshrink\-wrap\fR" 4
7884 .IX Item "-fshrink-wrap"
7885 Emit function prologues only before parts of the function that need it,
7886 rather than at the top of the function.  This flag is enabled by default at
7887 \&\fB\-O\fR and higher.
7888 .IP "\fB\-fshrink\-wrap\-separate\fR" 4
7889 .IX Item "-fshrink-wrap-separate"
7890 Shrink-wrap separate parts of the prologue and epilogue separately, so that
7891 those parts are only executed when needed.
7892 This option is on by default, but has no effect unless \fB\-fshrink\-wrap\fR
7893 is also turned on and the target supports this.
7894 .IP "\fB\-fcaller\-saves\fR" 4
7895 .IX Item "-fcaller-saves"
7896 Enable allocation of values to registers that are clobbered by
7897 function calls, by emitting extra instructions to save and restore the
7898 registers around such calls.  Such allocation is done only when it
7899 seems to result in better code.
7900 .Sp
7901 This option is always enabled by default on certain machines, usually
7902 those which have no call-preserved registers to use instead.
7903 .Sp
7904 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7905 .IP "\fB\-fcombine\-stack\-adjustments\fR" 4
7906 .IX Item "-fcombine-stack-adjustments"
7907 Tracks stack adjustments (pushes and pops) and stack memory references
7908 and then tries to find ways to combine them.
7909 .Sp
7910 Enabled by default at \fB\-O1\fR and higher.
7911 .IP "\fB\-fipa\-ra\fR" 4
7912 .IX Item "-fipa-ra"
7913 Use caller save registers for allocation if those registers are not used by
7914 any called function.  In that case it is not necessary to save and restore
7915 them around calls.  This is only possible if called functions are part of
7916 same compilation unit as current function and they are compiled before it.
7917 .Sp
7918 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR, however the option
7919 is disabled if generated code will be instrumented for profiling
7920 (\fB\-p\fR, or \fB\-pg\fR) or if callee's register usage cannot be known
7921 exactly (this happens on targets that do not expose prologues
7922 and epilogues in \s-1RTL\s0).
7923 .IP "\fB\-fconserve\-stack\fR" 4
7924 .IX Item "-fconserve-stack"
7925 Attempt to minimize stack usage.  The compiler attempts to use less
7926 stack space, even if that makes the program slower.  This option
7927 implies setting the \fBlarge-stack-frame\fR parameter to 100
7928 and the \fBlarge-stack-frame-growth\fR parameter to 400.
7929 .IP "\fB\-ftree\-reassoc\fR" 4
7930 .IX Item "-ftree-reassoc"
7931 Perform reassociation on trees.  This flag is enabled by default
7932 at \fB\-O\fR and higher.
7933 .IP "\fB\-fcode\-hoisting\fR" 4
7934 .IX Item "-fcode-hoisting"
7935 Perform code hoisting.  Code hoisting tries to move the
7936 evaluation of expressions executed on all paths to the function exit
7937 as early as possible.  This is especially useful as a code size
7938 optimization, but it often helps for code speed as well.
7939 This flag is enabled by default at \fB\-O2\fR and higher.
7940 .IP "\fB\-ftree\-pre\fR" 4
7941 .IX Item "-ftree-pre"
7942 Perform partial redundancy elimination (\s-1PRE\s0) on trees.  This flag is
7943 enabled by default at \fB\-O2\fR and \fB\-O3\fR.
7944 .IP "\fB\-ftree\-partial\-pre\fR" 4
7945 .IX Item "-ftree-partial-pre"
7946 Make partial redundancy elimination (\s-1PRE\s0) more aggressive.  This flag is
7947 enabled by default at \fB\-O3\fR.
7948 .IP "\fB\-ftree\-forwprop\fR" 4
7949 .IX Item "-ftree-forwprop"
7950 Perform forward propagation on trees.  This flag is enabled by default
7951 at \fB\-O\fR and higher.
7952 .IP "\fB\-ftree\-fre\fR" 4
7953 .IX Item "-ftree-fre"
7954 Perform full redundancy elimination (\s-1FRE\s0) on trees.  The difference
7955 between \s-1FRE\s0 and \s-1PRE\s0 is that \s-1FRE\s0 only considers expressions
7956 that are computed on all paths leading to the redundant computation.
7957 This analysis is faster than \s-1PRE,\s0 though it exposes fewer redundancies.
7958 This flag is enabled by default at \fB\-O\fR and higher.
7959 .IP "\fB\-ftree\-phiprop\fR" 4
7960 .IX Item "-ftree-phiprop"
7961 Perform hoisting of loads from conditional pointers on trees.  This
7962 pass is enabled by default at \fB\-O\fR and higher.
7963 .IP "\fB\-fhoist\-adjacent\-loads\fR" 4
7964 .IX Item "-fhoist-adjacent-loads"
7965 Speculatively hoist loads from both branches of an if-then-else if the
7966 loads are from adjacent locations in the same structure and the target
7967 architecture has a conditional move instruction.  This flag is enabled
7968 by default at \fB\-O2\fR and higher.
7969 .IP "\fB\-ftree\-copy\-prop\fR" 4
7970 .IX Item "-ftree-copy-prop"
7971 Perform copy propagation on trees.  This pass eliminates unnecessary
7972 copy operations.  This flag is enabled by default at \fB\-O\fR and
7973 higher.
7974 .IP "\fB\-fipa\-pure\-const\fR" 4
7975 .IX Item "-fipa-pure-const"
7976 Discover which functions are pure or constant.
7977 Enabled by default at \fB\-O\fR and higher.
7978 .IP "\fB\-fipa\-reference\fR" 4
7979 .IX Item "-fipa-reference"
7980 Discover which static variables do not escape the
7981 compilation unit.
7982 Enabled by default at \fB\-O\fR and higher.
7983 .IP "\fB\-fipa\-pta\fR" 4
7984 .IX Item "-fipa-pta"
7985 Perform interprocedural pointer analysis and interprocedural modification
7986 and reference analysis.  This option can cause excessive memory and
7987 compile-time usage on large compilation units.  It is not enabled by
7988 default at any optimization level.
7989 .IP "\fB\-fipa\-profile\fR" 4
7990 .IX Item "-fipa-profile"
7991 Perform interprocedural profile propagation.  The functions called only from
7992 cold functions are marked as cold. Also functions executed once (such as
7993 \&\f(CW\*(C`cold\*(C'\fR, \f(CW\*(C`noreturn\*(C'\fR, static constructors or destructors) are identified. Cold
7994 functions and loop less parts of functions executed once are then optimized for
7995 size.
7996 Enabled by default at \fB\-O\fR and higher.
7997 .IP "\fB\-fipa\-cp\fR" 4
7998 .IX Item "-fipa-cp"
7999 Perform interprocedural constant propagation.
8000 This optimization analyzes the program to determine when values passed
8001 to functions are constants and then optimizes accordingly.
8002 This optimization can substantially increase performance
8003 if the application has constants passed to functions.
8004 This flag is enabled by default at \fB\-O2\fR, \fB\-Os\fR and \fB\-O3\fR.
8005 .IP "\fB\-fipa\-cp\-clone\fR" 4
8006 .IX Item "-fipa-cp-clone"
8007 Perform function cloning to make interprocedural constant propagation stronger.
8008 When enabled, interprocedural constant propagation performs function cloning
8009 when externally visible function can be called with constant arguments.
8010 Because this optimization can create multiple copies of functions,
8011 it may significantly increase code size
8012 (see \fB\-\-param ipcp\-unit\-growth=\fR\fIvalue\fR).
8013 This flag is enabled by default at \fB\-O3\fR.
8014 .IP "\fB\-fipa\-bit\-cp\fR" 4
8015 .IX Item "-fipa-bit-cp"
8016 When enabled, perform interprocedural bitwise constant
8017 propagation. This flag is enabled by default at \fB\-O2\fR. It
8018 requires that \fB\-fipa\-cp\fR is enabled.
8019 .IP "\fB\-fipa\-vrp\fR" 4
8020 .IX Item "-fipa-vrp"
8021 When enabled, perform interprocedural propagation of value
8022 ranges. This flag is enabled by default at \fB\-O2\fR. It requires
8023 that \fB\-fipa\-cp\fR is enabled.
8024 .IP "\fB\-fipa\-icf\fR" 4
8025 .IX Item "-fipa-icf"
8026 Perform Identical Code Folding for functions and read-only variables.
8027 The optimization reduces code size and may disturb unwind stacks by replacing
8028 a function by equivalent one with a different name. The optimization works
8029 more effectively with link-time optimization enabled.
8030 .Sp
8031 Nevertheless the behavior is similar to Gold Linker \s-1ICF\s0 optimization, \s-1GCC ICF\s0
8032 works on different levels and thus the optimizations are not same \- there are
8033 equivalences that are found only by \s-1GCC\s0 and equivalences found only by Gold.
8034 .Sp
8035 This flag is enabled by default at \fB\-O2\fR and \fB\-Os\fR.
8036 .IP "\fB\-fisolate\-erroneous\-paths\-dereference\fR" 4
8037 .IX Item "-fisolate-erroneous-paths-dereference"
8038 Detect paths that trigger erroneous or undefined behavior due to
8039 dereferencing a null pointer.  Isolate those paths from the main control
8040 flow and turn the statement with erroneous or undefined behavior into a trap.
8041 This flag is enabled by default at \fB\-O2\fR and higher and depends on
8042 \&\fB\-fdelete\-null\-pointer\-checks\fR also being enabled.
8043 .IP "\fB\-fisolate\-erroneous\-paths\-attribute\fR" 4
8044 .IX Item "-fisolate-erroneous-paths-attribute"
8045 Detect paths that trigger erroneous or undefined behavior due to a null value
8046 being used in a way forbidden by a \f(CW\*(C`returns_nonnull\*(C'\fR or \f(CW\*(C`nonnull\*(C'\fR
8047 attribute.  Isolate those paths from the main control flow and turn the
8048 statement with erroneous or undefined behavior into a trap.  This is not
8049 currently enabled, but may be enabled by \fB\-O2\fR in the future.
8050 .IP "\fB\-ftree\-sink\fR" 4
8051 .IX Item "-ftree-sink"
8052 Perform forward store motion on trees.  This flag is
8053 enabled by default at \fB\-O\fR and higher.
8054 .IP "\fB\-ftree\-bit\-ccp\fR" 4
8055 .IX Item "-ftree-bit-ccp"
8056 Perform sparse conditional bit constant propagation on trees and propagate
8057 pointer alignment information.
8058 This pass only operates on local scalar variables and is enabled by default
8059 at \fB\-O\fR and higher.  It requires that \fB\-ftree\-ccp\fR is enabled.
8060 .IP "\fB\-ftree\-ccp\fR" 4
8061 .IX Item "-ftree-ccp"
8062 Perform sparse conditional constant propagation (\s-1CCP\s0) on trees.  This
8063 pass only operates on local scalar variables and is enabled by default
8064 at \fB\-O\fR and higher.
8065 .IP "\fB\-fssa\-backprop\fR" 4
8066 .IX Item "-fssa-backprop"
8067 Propagate information about uses of a value up the definition chain
8068 in order to simplify the definitions.  For example, this pass strips
8069 sign operations if the sign of a value never matters.  The flag is
8070 enabled by default at \fB\-O\fR and higher.
8071 .IP "\fB\-fssa\-phiopt\fR" 4
8072 .IX Item "-fssa-phiopt"
8073 Perform pattern matching on \s-1SSA PHI\s0 nodes to optimize conditional
8074 code.  This pass is enabled by default at \fB\-O\fR and higher.
8075 .IP "\fB\-ftree\-switch\-conversion\fR" 4
8076 .IX Item "-ftree-switch-conversion"
8077 Perform conversion of simple initializations in a switch to
8078 initializations from a scalar array.  This flag is enabled by default
8079 at \fB\-O2\fR and higher.
8080 .IP "\fB\-ftree\-tail\-merge\fR" 4
8081 .IX Item "-ftree-tail-merge"
8082 Look for identical code sequences.  When found, replace one with a jump to the
8083 other.  This optimization is known as tail merging or cross jumping.  This flag
8084 is enabled by default at \fB\-O2\fR and higher.  The compilation time
8085 in this pass can
8086 be limited using \fBmax-tail-merge-comparisons\fR parameter and
8087 \&\fBmax-tail-merge-iterations\fR parameter.
8088 .IP "\fB\-ftree\-dce\fR" 4
8089 .IX Item "-ftree-dce"
8090 Perform dead code elimination (\s-1DCE\s0) on trees.  This flag is enabled by
8091 default at \fB\-O\fR and higher.
8092 .IP "\fB\-ftree\-builtin\-call\-dce\fR" 4
8093 .IX Item "-ftree-builtin-call-dce"
8094 Perform conditional dead code elimination (\s-1DCE\s0) for calls to built-in functions
8095 that may set \f(CW\*(C`errno\*(C'\fR but are otherwise free of side effects.  This flag is
8096 enabled by default at \fB\-O2\fR and higher if \fB\-Os\fR is not also
8097 specified.
8098 .IP "\fB\-ftree\-dominator\-opts\fR" 4
8099 .IX Item "-ftree-dominator-opts"
8100 Perform a variety of simple scalar cleanups (constant/copy
8101 propagation, redundancy elimination, range propagation and expression
8102 simplification) based on a dominator tree traversal.  This also
8103 performs jump threading (to reduce jumps to jumps). This flag is
8104 enabled by default at \fB\-O\fR and higher.
8105 .IP "\fB\-ftree\-dse\fR" 4
8106 .IX Item "-ftree-dse"
8107 Perform dead store elimination (\s-1DSE\s0) on trees.  A dead store is a store into
8108 a memory location that is later overwritten by another store without
8109 any intervening loads.  In this case the earlier store can be deleted.  This
8110 flag is enabled by default at \fB\-O\fR and higher.
8111 .IP "\fB\-ftree\-ch\fR" 4
8112 .IX Item "-ftree-ch"
8113 Perform loop header copying on trees.  This is beneficial since it increases
8114 effectiveness of code motion optimizations.  It also saves one jump.  This flag
8115 is enabled by default at \fB\-O\fR and higher.  It is not enabled
8116 for \fB\-Os\fR, since it usually increases code size.
8117 .IP "\fB\-ftree\-loop\-optimize\fR" 4
8118 .IX Item "-ftree-loop-optimize"
8119 Perform loop optimizations on trees.  This flag is enabled by default
8120 at \fB\-O\fR and higher.
8121 .IP "\fB\-ftree\-loop\-linear\fR" 4
8122 .IX Item "-ftree-loop-linear"
8123 .PD 0
8124 .IP "\fB\-floop\-strip\-mine\fR" 4
8125 .IX Item "-floop-strip-mine"
8126 .IP "\fB\-floop\-block\fR" 4
8127 .IX Item "-floop-block"
8128 .PD
8129 Perform loop nest optimizations.  Same as
8130 \&\fB\-floop\-nest\-optimize\fR.  To use this code transformation, \s-1GCC\s0 has
8131 to be configured with \fB\-\-with\-isl\fR to enable the Graphite loop
8132 transformation infrastructure.
8133 .IP "\fB\-fgraphite\-identity\fR" 4
8134 .IX Item "-fgraphite-identity"
8135 Enable the identity transformation for graphite.  For every SCoP we generate
8136 the polyhedral representation and transform it back to gimple.  Using
8137 \&\fB\-fgraphite\-identity\fR we can check the costs or benefits of the
8138 \&\s-1GIMPLE\s0 \-> \s-1GRAPHITE\s0 \-> \s-1GIMPLE\s0 transformation.  Some minimal optimizations
8139 are also performed by the code generator isl, like index splitting and
8140 dead code elimination in loops.
8141 .IP "\fB\-floop\-nest\-optimize\fR" 4
8142 .IX Item "-floop-nest-optimize"
8143 Enable the isl based loop nest optimizer.  This is a generic loop nest
8144 optimizer based on the Pluto optimization algorithms.  It calculates a loop
8145 structure optimized for data-locality and parallelism.  This option
8146 is experimental.
8147 .IP "\fB\-floop\-parallelize\-all\fR" 4
8148 .IX Item "-floop-parallelize-all"
8149 Use the Graphite data dependence analysis to identify loops that can
8150 be parallelized.  Parallelize all the loops that can be analyzed to
8151 not contain loop carried dependences without checking that it is
8152 profitable to parallelize the loops.
8153 .IP "\fB\-ftree\-coalesce\-vars\fR" 4
8154 .IX Item "-ftree-coalesce-vars"
8155 While transforming the program out of the \s-1SSA\s0 representation, attempt to
8156 reduce copying by coalescing versions of different user-defined
8157 variables, instead of just compiler temporaries.  This may severely
8158 limit the ability to debug an optimized program compiled with
8159 \&\fB\-fno\-var\-tracking\-assignments\fR.  In the negated form, this flag
8160 prevents \s-1SSA\s0 coalescing of user variables.  This option is enabled by
8161 default if optimization is enabled, and it does very little otherwise.
8162 .IP "\fB\-ftree\-loop\-if\-convert\fR" 4
8163 .IX Item "-ftree-loop-if-convert"
8164 Attempt to transform conditional jumps in the innermost loops to
8165 branch-less equivalents.  The intent is to remove control-flow from
8166 the innermost loops in order to improve the ability of the
8167 vectorization pass to handle these loops.  This is enabled by default
8168 if vectorization is enabled.
8169 .IP "\fB\-ftree\-loop\-distribution\fR" 4
8170 .IX Item "-ftree-loop-distribution"
8171 Perform loop distribution.  This flag can improve cache performance on
8172 big loop bodies and allow further loop optimizations, like
8173 parallelization or vectorization, to take place.  For example, the loop
8174 .Sp
8175 .Vb 4
8176 \&        DO I = 1, N
8177 \&          A(I) = B(I) + C
8178 \&          D(I) = E(I) * F
8179 \&        ENDDO
8180 .Ve
8181 .Sp
8182 is transformed to
8183 .Sp
8184 .Vb 6
8185 \&        DO I = 1, N
8186 \&           A(I) = B(I) + C
8187 \&        ENDDO
8188 \&        DO I = 1, N
8189 \&           D(I) = E(I) * F
8190 \&        ENDDO
8191 .Ve
8192 .IP "\fB\-ftree\-loop\-distribute\-patterns\fR" 4
8193 .IX Item "-ftree-loop-distribute-patterns"
8194 Perform loop distribution of patterns that can be code generated with
8195 calls to a library.  This flag is enabled by default at \fB\-O3\fR.
8196 .Sp
8197 This pass distributes the initialization loops and generates a call to
8198 memset zero.  For example, the loop
8199 .Sp
8200 .Vb 4
8201 \&        DO I = 1, N
8202 \&          A(I) = 0
8203 \&          B(I) = A(I) + I
8204 \&        ENDDO
8205 .Ve
8206 .Sp
8207 is transformed to
8208 .Sp
8209 .Vb 6
8210 \&        DO I = 1, N
8211 \&           A(I) = 0
8212 \&        ENDDO
8213 \&        DO I = 1, N
8214 \&           B(I) = A(I) + I
8215 \&        ENDDO
8216 .Ve
8217 .Sp
8218 and the initialization loop is transformed into a call to memset zero.
8219 .IP "\fB\-floop\-interchange\fR" 4
8220 .IX Item "-floop-interchange"
8221 Perform loop interchange outside of graphite.  This flag can improve cache
8222 performance on loop nest and allow further loop optimizations, like
8223 vectorization, to take place.  For example, the loop
8224 .Sp
8225 .Vb 4
8226 \&        for (int i = 0; i < N; i++)
8227 \&          for (int j = 0; j < N; j++)
8228 \&            for (int k = 0; k < N; k++)
8229 \&              c[i][j] = c[i][j] + a[i][k]*b[k][j];
8230 .Ve
8231 .Sp
8232 is transformed to
8233 .Sp
8234 .Vb 4
8235 \&        for (int i = 0; i < N; i++)
8236 \&          for (int k = 0; k < N; k++)
8237 \&            for (int j = 0; j < N; j++)
8238 \&              c[i][j] = c[i][j] + a[i][k]*b[k][j];
8239 .Ve
8240 .Sp
8241 This flag is enabled by default at \fB\-O3\fR.
8242 .IP "\fB\-floop\-unroll\-and\-jam\fR" 4
8243 .IX Item "-floop-unroll-and-jam"
8244 Apply unroll and jam transformations on feasible loops.  In a loop
8245 nest this unrolls the outer loop by some factor and fuses the resulting
8246 multiple inner loops.  This flag is enabled by default at \fB\-O3\fR.
8247 .IP "\fB\-ftree\-loop\-im\fR" 4
8248 .IX Item "-ftree-loop-im"
8249 Perform loop invariant motion on trees.  This pass moves only invariants that
8250 are hard to handle at \s-1RTL\s0 level (function calls, operations that expand to
8251 nontrivial sequences of insns).  With \fB\-funswitch\-loops\fR it also moves
8252 operands of conditions that are invariant out of the loop, so that we can use
8253 just trivial invariantness analysis in loop unswitching.  The pass also includes
8254 store motion.
8255 .IP "\fB\-ftree\-loop\-ivcanon\fR" 4
8256 .IX Item "-ftree-loop-ivcanon"
8257 Create a canonical counter for number of iterations in loops for which
8258 determining number of iterations requires complicated analysis.  Later
8259 optimizations then may determine the number easily.  Useful especially
8260 in connection with unrolling.
8261 .IP "\fB\-fivopts\fR" 4
8262 .IX Item "-fivopts"
8263 Perform induction variable optimizations (strength reduction, induction
8264 variable merging and induction variable elimination) on trees.
8265 .IP "\fB\-ftree\-parallelize\-loops=n\fR" 4
8266 .IX Item "-ftree-parallelize-loops=n"
8267 Parallelize loops, i.e., split their iteration space to run in n threads.
8268 This is only possible for loops whose iterations are independent
8269 and can be arbitrarily reordered.  The optimization is only
8270 profitable on multiprocessor machines, for loops that are CPU-intensive,
8271 rather than constrained e.g. by memory bandwidth.  This option
8272 implies \fB\-pthread\fR, and thus is only supported on targets
8273 that have support for \fB\-pthread\fR.
8274 .IP "\fB\-ftree\-pta\fR" 4
8275 .IX Item "-ftree-pta"
8276 Perform function-local points-to analysis on trees.  This flag is
8277 enabled by default at \fB\-O\fR and higher.
8278 .IP "\fB\-ftree\-sra\fR" 4
8279 .IX Item "-ftree-sra"
8280 Perform scalar replacement of aggregates.  This pass replaces structure
8281 references with scalars to prevent committing structures to memory too
8282 early.  This flag is enabled by default at \fB\-O\fR and higher.
8283 .IP "\fB\-fstore\-merging\fR" 4
8284 .IX Item "-fstore-merging"
8285 Perform merging of narrow stores to consecutive memory addresses.  This pass
8286 merges contiguous stores of immediate values narrower than a word into fewer
8287 wider stores to reduce the number of instructions.  This is enabled by default
8288 at \fB\-O2\fR and higher as well as \fB\-Os\fR.
8289 .IP "\fB\-ftree\-ter\fR" 4
8290 .IX Item "-ftree-ter"
8291 Perform temporary expression replacement during the \s-1SSA\-\s0>normal phase.  Single
8292 use/single def temporaries are replaced at their use location with their
8293 defining expression.  This results in non-GIMPLE code, but gives the expanders
8294 much more complex trees to work on resulting in better \s-1RTL\s0 generation.  This is
8295 enabled by default at \fB\-O\fR and higher.
8296 .IP "\fB\-ftree\-slsr\fR" 4
8297 .IX Item "-ftree-slsr"
8298 Perform straight-line strength reduction on trees.  This recognizes related
8299 expressions involving multiplications and replaces them by less expensive
8300 calculations when possible.  This is enabled by default at \fB\-O\fR and
8301 higher.
8302 .IP "\fB\-ftree\-vectorize\fR" 4
8303 .IX Item "-ftree-vectorize"
8304 Perform vectorization on trees. This flag enables \fB\-ftree\-loop\-vectorize\fR
8305 and \fB\-ftree\-slp\-vectorize\fR if not explicitly specified.
8306 .IP "\fB\-ftree\-loop\-vectorize\fR" 4
8307 .IX Item "-ftree-loop-vectorize"
8308 Perform loop vectorization on trees. This flag is enabled by default at
8309 \&\fB\-O3\fR and when \fB\-ftree\-vectorize\fR is enabled.
8310 .IP "\fB\-ftree\-slp\-vectorize\fR" 4
8311 .IX Item "-ftree-slp-vectorize"
8312 Perform basic block vectorization on trees. This flag is enabled by default at
8313 \&\fB\-O3\fR and when \fB\-ftree\-vectorize\fR is enabled.
8314 .IP "\fB\-fvect\-cost\-model=\fR\fImodel\fR" 4
8315 .IX Item "-fvect-cost-model=model"
8316 Alter the cost model used for vectorization.  The \fImodel\fR argument
8317 should be one of \fBunlimited\fR, \fBdynamic\fR or \fBcheap\fR.
8318 With the \fBunlimited\fR model the vectorized code-path is assumed
8319 to be profitable while with the \fBdynamic\fR model a runtime check
8320 guards the vectorized code-path to enable it only for iteration
8321 counts that will likely execute faster than when executing the original
8322 scalar loop.  The \fBcheap\fR model disables vectorization of
8323 loops where doing so would be cost prohibitive for example due to
8324 required runtime checks for data dependence or alignment but otherwise
8325 is equal to the \fBdynamic\fR model.
8326 The default cost model depends on other optimization flags and is
8327 either \fBdynamic\fR or \fBcheap\fR.
8328 .IP "\fB\-fsimd\-cost\-model=\fR\fImodel\fR" 4
8329 .IX Item "-fsimd-cost-model=model"
8330 Alter the cost model used for vectorization of loops marked with the OpenMP
8331 simd directive.  The \fImodel\fR argument should be one of
8332 \&\fBunlimited\fR, \fBdynamic\fR, \fBcheap\fR.  All values of \fImodel\fR
8333 have the same meaning as described in \fB\-fvect\-cost\-model\fR and by
8334 default a cost model defined with \fB\-fvect\-cost\-model\fR is used.
8335 .IP "\fB\-ftree\-vrp\fR" 4
8336 .IX Item "-ftree-vrp"
8337 Perform Value Range Propagation on trees.  This is similar to the
8338 constant propagation pass, but instead of values, ranges of values are
8339 propagated.  This allows the optimizers to remove unnecessary range
8340 checks like array bound checks and null pointer checks.  This is
8341 enabled by default at \fB\-O2\fR and higher.  Null pointer check
8342 elimination is only done if \fB\-fdelete\-null\-pointer\-checks\fR is
8343 enabled.
8344 .IP "\fB\-fsplit\-paths\fR" 4
8345 .IX Item "-fsplit-paths"
8346 Split paths leading to loop backedges.  This can improve dead code
8347 elimination and common subexpression elimination.  This is enabled by
8348 default at \fB\-O2\fR and above.
8349 .IP "\fB\-fsplit\-ivs\-in\-unroller\fR" 4
8350 .IX Item "-fsplit-ivs-in-unroller"
8351 Enables expression of values of induction variables in later iterations
8352 of the unrolled loop using the value in the first iteration.  This breaks
8353 long dependency chains, thus improving efficiency of the scheduling passes.
8354 .Sp
8355 A combination of \fB\-fweb\fR and \s-1CSE\s0 is often sufficient to obtain the
8356 same effect.  However, that is not reliable in cases where the loop body
8357 is more complicated than a single basic block.  It also does not work at all
8358 on some architectures due to restrictions in the \s-1CSE\s0 pass.
8359 .Sp
8360 This optimization is enabled by default.
8361 .IP "\fB\-fvariable\-expansion\-in\-unroller\fR" 4
8362 .IX Item "-fvariable-expansion-in-unroller"
8363 With this option, the compiler creates multiple copies of some
8364 local variables when unrolling a loop, which can result in superior code.
8365 .IP "\fB\-fpartial\-inlining\fR" 4
8366 .IX Item "-fpartial-inlining"
8367 Inline parts of functions.  This option has any effect only
8368 when inlining itself is turned on by the \fB\-finline\-functions\fR
8369 or \fB\-finline\-small\-functions\fR options.
8370 .Sp
8371 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8372 .IP "\fB\-fpredictive\-commoning\fR" 4
8373 .IX Item "-fpredictive-commoning"
8374 Perform predictive commoning optimization, i.e., reusing computations
8375 (especially memory loads and stores) performed in previous
8376 iterations of loops.
8377 .Sp
8378 This option is enabled at level \fB\-O3\fR.
8379 .IP "\fB\-fprefetch\-loop\-arrays\fR" 4
8380 .IX Item "-fprefetch-loop-arrays"
8381 If supported by the target machine, generate instructions to prefetch
8382 memory to improve the performance of loops that access large arrays.
8383 .Sp
8384 This option may generate better or worse code; results are highly
8385 dependent on the structure of loops within the source code.
8386 .Sp
8387 Disabled at level \fB\-Os\fR.
8388 .IP "\fB\-fno\-printf\-return\-value\fR" 4
8389 .IX Item "-fno-printf-return-value"
8390 Do not substitute constants for known return value of formatted output
8391 functions such as \f(CW\*(C`sprintf\*(C'\fR, \f(CW\*(C`snprintf\*(C'\fR, \f(CW\*(C`vsprintf\*(C'\fR, and
8392 \&\f(CW\*(C`vsnprintf\*(C'\fR (but not \f(CW\*(C`printf\*(C'\fR of \f(CW\*(C`fprintf\*(C'\fR).  This
8393 transformation allows \s-1GCC\s0 to optimize or even eliminate branches based
8394 on the known return value of these functions called with arguments that
8395 are either constant, or whose values are known to be in a range that
8396 makes determining the exact return value possible.  For example, when
8397 \&\fB\-fprintf\-return\-value\fR is in effect, both the branch and the
8398 body of the \f(CW\*(C`if\*(C'\fR statement (but not the call to \f(CW\*(C`snprint\*(C'\fR)
8399 can be optimized away when \f(CW\*(C`i\*(C'\fR is a 32\-bit or smaller integer
8400 because the return value is guaranteed to be at most 8.
8401 .Sp
8402 .Vb 3
8403 \&        char buf[9];
8404 \&        if (snprintf (buf, "%08x", i) >= sizeof buf)
8405 \&          ...
8406 .Ve
8407 .Sp
8408 The \fB\-fprintf\-return\-value\fR option relies on other optimizations
8409 and yields best results with \fB\-O2\fR and above.  It works in tandem
8410 with the \fB\-Wformat\-overflow\fR and \fB\-Wformat\-truncation\fR
8411 options.  The \fB\-fprintf\-return\-value\fR option is enabled by default.
8412 .IP "\fB\-fno\-peephole\fR" 4
8413 .IX Item "-fno-peephole"
8414 .PD 0
8415 .IP "\fB\-fno\-peephole2\fR" 4
8416 .IX Item "-fno-peephole2"
8417 .PD
8418 Disable any machine-specific peephole optimizations.  The difference
8419 between \fB\-fno\-peephole\fR and \fB\-fno\-peephole2\fR is in how they
8420 are implemented in the compiler; some targets use one, some use the
8421 other, a few use both.
8422 .Sp
8423 \&\fB\-fpeephole\fR is enabled by default.
8424 \&\fB\-fpeephole2\fR enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8425 .IP "\fB\-fno\-guess\-branch\-probability\fR" 4
8426 .IX Item "-fno-guess-branch-probability"
8427 Do not guess branch probabilities using heuristics.
8428 .Sp
8429 \&\s-1GCC\s0 uses heuristics to guess branch probabilities if they are
8430 not provided by profiling feedback (\fB\-fprofile\-arcs\fR).  These
8431 heuristics are based on the control flow graph.  If some branch probabilities
8432 are specified by \f(CW\*(C`_\|_builtin_expect\*(C'\fR, then the heuristics are
8433 used to guess branch probabilities for the rest of the control flow graph,
8434 taking the \f(CW\*(C`_\|_builtin_expect\*(C'\fR info into account.  The interactions
8435 between the heuristics and \f(CW\*(C`_\|_builtin_expect\*(C'\fR can be complex, and in
8436 some cases, it may be useful to disable the heuristics so that the effects
8437 of \f(CW\*(C`_\|_builtin_expect\*(C'\fR are easier to understand.
8438 .Sp
8439 The default is \fB\-fguess\-branch\-probability\fR at levels
8440 \&\fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8441 .IP "\fB\-freorder\-blocks\fR" 4
8442 .IX Item "-freorder-blocks"
8443 Reorder basic blocks in the compiled function in order to reduce number of
8444 taken branches and improve code locality.
8445 .Sp
8446 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8447 .IP "\fB\-freorder\-blocks\-algorithm=\fR\fIalgorithm\fR" 4
8448 .IX Item "-freorder-blocks-algorithm=algorithm"
8449 Use the specified algorithm for basic block reordering.  The
8450 \&\fIalgorithm\fR argument can be \fBsimple\fR, which does not increase
8451 code size (except sometimes due to secondary effects like alignment),
8452 or \fBstc\fR, the \*(L"software trace cache\*(R" algorithm, which tries to
8453 put all often executed code together, minimizing the number of branches
8454 executed by making extra copies of code.
8455 .Sp
8456 The default is \fBsimple\fR at levels \fB\-O\fR, \fB\-Os\fR, and
8457 \&\fBstc\fR at levels \fB\-O2\fR, \fB\-O3\fR.
8458 .IP "\fB\-freorder\-blocks\-and\-partition\fR" 4
8459 .IX Item "-freorder-blocks-and-partition"
8460 In addition to reordering basic blocks in the compiled function, in order
8461 to reduce number of taken branches, partitions hot and cold basic blocks
8462 into separate sections of the assembly and \fI.o\fR files, to improve
8463 paging and cache locality performance.
8464 .Sp
8465 This optimization is automatically turned off in the presence of
8466 exception handling or unwind tables (on targets using setjump/longjump or target specific scheme), for linkonce sections, for functions with a user-defined
8467 section attribute and on any architecture that does not support named
8468 sections.  When \fB\-fsplit\-stack\fR is used this option is not
8469 enabled by default (to avoid linker errors), but may be enabled
8470 explicitly (if using a working linker).
8471 .Sp
8472 Enabled for x86 at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8473 .IP "\fB\-freorder\-functions\fR" 4
8474 .IX Item "-freorder-functions"
8475 Reorder functions in the object file in order to
8476 improve code locality.  This is implemented by using special
8477 subsections \f(CW\*(C`.text.hot\*(C'\fR for most frequently executed functions and
8478 \&\f(CW\*(C`.text.unlikely\*(C'\fR for unlikely executed functions.  Reordering is done by
8479 the linker so object file format must support named sections and linker must
8480 place them in a reasonable way.
8481 .Sp
8482 Also profile feedback must be available to make this option effective.  See
8483 \&\fB\-fprofile\-arcs\fR for details.
8484 .Sp
8485 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8486 .IP "\fB\-fstrict\-aliasing\fR" 4
8487 .IX Item "-fstrict-aliasing"
8488 Allow the compiler to assume the strictest aliasing rules applicable to
8489 the language being compiled.  For C (and \*(C+), this activates
8490 optimizations based on the type of expressions.  In particular, an
8491 object of one type is assumed never to reside at the same address as an
8492 object of a different type, unless the types are almost the same.  For
8493 example, an \f(CW\*(C`unsigned int\*(C'\fR can alias an \f(CW\*(C`int\*(C'\fR, but not a
8494 \&\f(CW\*(C`void*\*(C'\fR or a \f(CW\*(C`double\*(C'\fR.  A character type may alias any other
8495 type.
8496 .Sp
8497 Pay special attention to code like this:
8498 .Sp
8499 .Vb 4
8500 \&        union a_union {
8501 \&          int i;
8502 \&          double d;
8503 \&        };
8504 \&        
8505 \&        int f() {
8506 \&          union a_union t;
8507 \&          t.d = 3.0;
8508 \&          return t.i;
8509 \&        }
8510 .Ve
8511 .Sp
8512 The practice of reading from a different union member than the one most
8513 recently written to (called \*(L"type-punning\*(R") is common.  Even with
8514 \&\fB\-fstrict\-aliasing\fR, type-punning is allowed, provided the memory
8515 is accessed through the union type.  So, the code above works as
8516 expected.    However, this code might not:
8517 .Sp
8518 .Vb 7
8519 \&        int f() {
8520 \&          union a_union t;
8521 \&          int* ip;
8522 \&          t.d = 3.0;
8523 \&          ip = &t.i;
8524 \&          return *ip;
8525 \&        }
8526 .Ve
8527 .Sp
8528 Similarly, access by taking the address, casting the resulting pointer
8529 and dereferencing the result has undefined behavior, even if the cast
8530 uses a union type, e.g.:
8531 .Sp
8532 .Vb 4
8533 \&        int f() {
8534 \&          double d = 3.0;
8535 \&          return ((union a_union *) &d)\->i;
8536 \&        }
8537 .Ve
8538 .Sp
8539 The \fB\-fstrict\-aliasing\fR option is enabled at levels
8540 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8541 .IP "\fB\-falign\-functions\fR" 4
8542 .IX Item "-falign-functions"
8543 .PD 0
8544 .IP "\fB\-falign\-functions=\fR\fIn\fR" 4
8545 .IX Item "-falign-functions=n"
8546 .PD
8547 Align the start of functions to the next power-of-two greater than
8548 \&\fIn\fR, skipping up to \fIn\fR bytes.  For instance,
8549 \&\fB\-falign\-functions=32\fR aligns functions to the next 32\-byte
8550 boundary, but \fB\-falign\-functions=24\fR aligns to the next
8551 32\-byte boundary only if this can be done by skipping 23 bytes or less.
8552 .Sp
8553 \&\fB\-fno\-align\-functions\fR and \fB\-falign\-functions=1\fR are
8554 equivalent and mean that functions are not aligned.
8555 .Sp
8556 Some assemblers only support this flag when \fIn\fR is a power of two;
8557 in that case, it is rounded up.
8558 .Sp
8559 If \fIn\fR is not specified or is zero, use a machine-dependent default.
8560 The maximum allowed \fIn\fR option value is 65536.
8561 .Sp
8562 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8563 .IP "\fB\-flimit\-function\-alignment\fR" 4
8564 .IX Item "-flimit-function-alignment"
8565 If this option is enabled, the compiler tries to avoid unnecessarily
8566 overaligning functions. It attempts to instruct the assembler to align
8567 by the amount specified by \fB\-falign\-functions\fR, but not to
8568 skip more bytes than the size of the function.
8569 .IP "\fB\-falign\-labels\fR" 4
8570 .IX Item "-falign-labels"
8571 .PD 0
8572 .IP "\fB\-falign\-labels=\fR\fIn\fR" 4
8573 .IX Item "-falign-labels=n"
8574 .PD
8575 Align all branch targets to a power-of-two boundary, skipping up to
8576 \&\fIn\fR bytes like \fB\-falign\-functions\fR.  This option can easily
8577 make code slower, because it must insert dummy operations for when the
8578 branch target is reached in the usual flow of the code.
8579 .Sp
8580 \&\fB\-fno\-align\-labels\fR and \fB\-falign\-labels=1\fR are
8581 equivalent and mean that labels are not aligned.
8582 .Sp
8583 If \fB\-falign\-loops\fR or \fB\-falign\-jumps\fR are applicable and
8584 are greater than this value, then their values are used instead.
8585 .Sp
8586 If \fIn\fR is not specified or is zero, use a machine-dependent default
8587 which is very likely to be \fB1\fR, meaning no alignment.
8588 The maximum allowed \fIn\fR option value is 65536.
8589 .Sp
8590 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8591 .IP "\fB\-falign\-loops\fR" 4
8592 .IX Item "-falign-loops"
8593 .PD 0
8594 .IP "\fB\-falign\-loops=\fR\fIn\fR" 4
8595 .IX Item "-falign-loops=n"
8596 .PD
8597 Align loops to a power-of-two boundary, skipping up to \fIn\fR bytes
8598 like \fB\-falign\-functions\fR.  If the loops are
8599 executed many times, this makes up for any execution of the dummy
8600 operations.
8601 .Sp
8602 \&\fB\-fno\-align\-loops\fR and \fB\-falign\-loops=1\fR are
8603 equivalent and mean that loops are not aligned.
8604 The maximum allowed \fIn\fR option value is 65536.
8605 .Sp
8606 If \fIn\fR is not specified or is zero, use a machine-dependent default.
8607 .Sp
8608 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8609 .IP "\fB\-falign\-jumps\fR" 4
8610 .IX Item "-falign-jumps"
8611 .PD 0
8612 .IP "\fB\-falign\-jumps=\fR\fIn\fR" 4
8613 .IX Item "-falign-jumps=n"
8614 .PD
8615 Align branch targets to a power-of-two boundary, for branch targets
8616 where the targets can only be reached by jumping, skipping up to \fIn\fR
8617 bytes like \fB\-falign\-functions\fR.  In this case, no dummy operations
8618 need be executed.
8619 .Sp
8620 \&\fB\-fno\-align\-jumps\fR and \fB\-falign\-jumps=1\fR are
8621 equivalent and mean that loops are not aligned.
8622 .Sp
8623 If \fIn\fR is not specified or is zero, use a machine-dependent default.
8624 The maximum allowed \fIn\fR option value is 65536.
8625 .Sp
8626 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8627 .IP "\fB\-funit\-at\-a\-time\fR" 4
8628 .IX Item "-funit-at-a-time"
8629 This option is left for compatibility reasons. \fB\-funit\-at\-a\-time\fR
8630 has no effect, while \fB\-fno\-unit\-at\-a\-time\fR implies
8631 \&\fB\-fno\-toplevel\-reorder\fR and \fB\-fno\-section\-anchors\fR.
8632 .Sp
8633 Enabled by default.
8634 .IP "\fB\-fno\-toplevel\-reorder\fR" 4
8635 .IX Item "-fno-toplevel-reorder"
8636 Do not reorder top-level functions, variables, and \f(CW\*(C`asm\*(C'\fR
8637 statements.  Output them in the same order that they appear in the
8638 input file.  When this option is used, unreferenced static variables
8639 are not removed.  This option is intended to support existing code
8640 that relies on a particular ordering.  For new code, it is better to
8641 use attributes when possible.
8642 .Sp
8643 Enabled at level \fB\-O0\fR.  When disabled explicitly, it also implies
8644 \&\fB\-fno\-section\-anchors\fR, which is otherwise enabled at \fB\-O0\fR on some
8645 targets.
8646 .IP "\fB\-fweb\fR" 4
8647 .IX Item "-fweb"
8648 Constructs webs as commonly used for register allocation purposes and assign
8649 each web individual pseudo register.  This allows the register allocation pass
8650 to operate on pseudos directly, but also strengthens several other optimization
8651 passes, such as \s-1CSE,\s0 loop optimizer and trivial dead code remover.  It can,
8652 however, make debugging impossible, since variables no longer stay in a
8653 \&\*(L"home register\*(R".
8654 .Sp
8655 Enabled by default with \fB\-funroll\-loops\fR.
8656 .IP "\fB\-fwhole\-program\fR" 4
8657 .IX Item "-fwhole-program"
8658 Assume that the current compilation unit represents the whole program being
8659 compiled.  All public functions and variables with the exception of \f(CW\*(C`main\*(C'\fR
8660 and those merged by attribute \f(CW\*(C`externally_visible\*(C'\fR become static functions
8661 and in effect are optimized more aggressively by interprocedural optimizers.
8662 .Sp
8663 This option should not be used in combination with \fB\-flto\fR.
8664 Instead relying on a linker plugin should provide safer and more precise
8665 information.
8666 .IP "\fB\-flto[=\fR\fIn\fR\fB]\fR" 4
8667 .IX Item "-flto[=n]"
8668 This option runs the standard link-time optimizer.  When invoked
8669 with source code, it generates \s-1GIMPLE\s0 (one of \s-1GCC\s0's internal
8670 representations) and writes it to special \s-1ELF\s0 sections in the object
8671 file.  When the object files are linked together, all the function
8672 bodies are read from these \s-1ELF\s0 sections and instantiated as if they
8673 had been part of the same translation unit.
8674 .Sp
8675 To use the link-time optimizer, \fB\-flto\fR and optimization
8676 options should be specified at compile time and during the final link.
8677 It is recommended that you compile all the files participating in the
8678 same link with the same options and also specify those options at
8679 link time.  
8680 For example:
8681 .Sp
8682 .Vb 3
8683 \&        gcc \-c \-O2 \-flto foo.c
8684 \&        gcc \-c \-O2 \-flto bar.c
8685 \&        gcc \-o myprog \-flto \-O2 foo.o bar.o
8686 .Ve
8687 .Sp
8688 The first two invocations to \s-1GCC\s0 save a bytecode representation
8689 of \s-1GIMPLE\s0 into special \s-1ELF\s0 sections inside \fIfoo.o\fR and
8690 \&\fIbar.o\fR.  The final invocation reads the \s-1GIMPLE\s0 bytecode from
8691 \&\fIfoo.o\fR and \fIbar.o\fR, merges the two files into a single
8692 internal image, and compiles the result as usual.  Since both
8693 \&\fIfoo.o\fR and \fIbar.o\fR are merged into a single image, this
8694 causes all the interprocedural analyses and optimizations in \s-1GCC\s0 to
8695 work across the two files as if they were a single one.  This means,
8696 for example, that the inliner is able to inline functions in
8697 \&\fIbar.o\fR into functions in \fIfoo.o\fR and vice-versa.
8698 .Sp
8699 Another (simpler) way to enable link-time optimization is:
8700 .Sp
8701 .Vb 1
8702 \&        gcc \-o myprog \-flto \-O2 foo.c bar.c
8703 .Ve
8704 .Sp
8705 The above generates bytecode for \fIfoo.c\fR and \fIbar.c\fR,
8706 merges them together into a single \s-1GIMPLE\s0 representation and optimizes
8707 them as usual to produce \fImyprog\fR.
8708 .Sp
8709 The only important thing to keep in mind is that to enable link-time
8710 optimizations you need to use the \s-1GCC\s0 driver to perform the link step.
8711 \&\s-1GCC\s0 then automatically performs link-time optimization if any of the
8712 objects involved were compiled with the \fB\-flto\fR command-line option.  
8713 You generally
8714 should specify the optimization options to be used for link-time
8715 optimization though \s-1GCC\s0 tries to be clever at guessing an
8716 optimization level to use from the options used at compile time
8717 if you fail to specify one at link time.  You can always override
8718 the automatic decision to do link-time optimization
8719 by passing \fB\-fno\-lto\fR to the link command.
8720 .Sp
8721 To make whole program optimization effective, it is necessary to make
8722 certain whole program assumptions.  The compiler needs to know
8723 what functions and variables can be accessed by libraries and runtime
8724 outside of the link-time optimized unit.  When supported by the linker,
8725 the linker plugin (see \fB\-fuse\-linker\-plugin\fR) passes information
8726 to the compiler about used and externally visible symbols.  When
8727 the linker plugin is not available, \fB\-fwhole\-program\fR should be
8728 used to allow the compiler to make these assumptions, which leads
8729 to more aggressive optimization decisions.
8730 .Sp
8731 When \fB\-fuse\-linker\-plugin\fR is not enabled, when a file is
8732 compiled with \fB\-flto\fR, the generated object file is larger than
8733 a regular object file because it contains \s-1GIMPLE\s0 bytecodes and the usual
8734 final code (see \fB\-ffat\-lto\-objects\fR.  This means that
8735 object files with \s-1LTO\s0 information can be linked as normal object
8736 files; if \fB\-fno\-lto\fR is passed to the linker, no
8737 interprocedural optimizations are applied.  Note that when
8738 \&\fB\-fno\-fat\-lto\-objects\fR is enabled the compile stage is faster
8739 but you cannot perform a regular, non-LTO link on them.
8740 .Sp
8741 Additionally, the optimization flags used to compile individual files
8742 are not necessarily related to those used at link time.  For instance,
8743 .Sp
8744 .Vb 3
8745 \&        gcc \-c \-O0 \-ffat\-lto\-objects \-flto foo.c
8746 \&        gcc \-c \-O0 \-ffat\-lto\-objects \-flto bar.c
8747 \&        gcc \-o myprog \-O3 foo.o bar.o
8748 .Ve
8749 .Sp
8750 This produces individual object files with unoptimized assembler
8751 code, but the resulting binary \fImyprog\fR is optimized at
8752 \&\fB\-O3\fR.  If, instead, the final binary is generated with
8753 \&\fB\-fno\-lto\fR, then \fImyprog\fR is not optimized.
8754 .Sp
8755 When producing the final binary, \s-1GCC\s0 only
8756 applies link-time optimizations to those files that contain bytecode.
8757 Therefore, you can mix and match object files and libraries with
8758 \&\s-1GIMPLE\s0 bytecodes and final object code.  \s-1GCC\s0 automatically selects
8759 which files to optimize in \s-1LTO\s0 mode and which files to link without
8760 further processing.
8761 .Sp
8762 There are some code generation flags preserved by \s-1GCC\s0 when
8763 generating bytecodes, as they need to be used during the final link
8764 stage.  Generally options specified at link time override those
8765 specified at compile time.
8766 .Sp
8767 If you do not specify an optimization level option \fB\-O\fR at
8768 link time, then \s-1GCC\s0 uses the highest optimization level 
8769 used when compiling the object files.
8770 .Sp
8771 Currently, the following options and their settings are taken from
8772 the first object file that explicitly specifies them: 
8773 \&\fB\-fPIC\fR, \fB\-fpic\fR, \fB\-fpie\fR, \fB\-fcommon\fR,
8774 \&\fB\-fexceptions\fR, \fB\-fnon\-call\-exceptions\fR, \fB\-fgnu\-tm\fR
8775 and all the \fB\-m\fR target flags.
8776 .Sp
8777 Certain ABI-changing flags are required to match in all compilation units,
8778 and trying to override this at link time with a conflicting value
8779 is ignored.  This includes options such as \fB\-freg\-struct\-return\fR
8780 and \fB\-fpcc\-struct\-return\fR.
8781 .Sp
8782 Other options such as \fB\-ffp\-contract\fR, \fB\-fno\-strict\-overflow\fR,
8783 \&\fB\-fwrapv\fR, \fB\-fno\-trapv\fR or \fB\-fno\-strict\-aliasing\fR
8784 are passed through to the link stage and merged conservatively for
8785 conflicting translation units.  Specifically
8786 \&\fB\-fno\-strict\-overflow\fR, \fB\-fwrapv\fR and \fB\-fno\-trapv\fR take
8787 precedence; and for example \fB\-ffp\-contract=off\fR takes precedence
8788 over \fB\-ffp\-contract=fast\fR.  You can override them at link time.
8789 .Sp
8790 If \s-1LTO\s0 encounters objects with C linkage declared with incompatible
8791 types in separate translation units to be linked together (undefined
8792 behavior according to \s-1ISO C99 6.2.7\s0), a non-fatal diagnostic may be
8793 issued.  The behavior is still undefined at run time.  Similar
8794 diagnostics may be raised for other languages.
8795 .Sp
8796 Another feature of \s-1LTO\s0 is that it is possible to apply interprocedural
8797 optimizations on files written in different languages:
8798 .Sp
8799 .Vb 4
8800 \&        gcc \-c \-flto foo.c
8801 \&        g++ \-c \-flto bar.cc
8802 \&        gfortran \-c \-flto baz.f90
8803 \&        g++ \-o myprog \-flto \-O3 foo.o bar.o baz.o \-lgfortran
8804 .Ve
8805 .Sp
8806 Notice that the final link is done with \fBg++\fR to get the \*(C+
8807 runtime libraries and \fB\-lgfortran\fR is added to get the Fortran
8808 runtime libraries.  In general, when mixing languages in \s-1LTO\s0 mode, you
8809 should use the same link command options as when mixing languages in a
8810 regular (non-LTO) compilation.
8811 .Sp
8812 If object files containing \s-1GIMPLE\s0 bytecode are stored in a library archive, say
8813 \&\fIlibfoo.a\fR, it is possible to extract and use them in an \s-1LTO\s0 link if you
8814 are using a linker with plugin support.  To create static libraries suitable
8815 for \s-1LTO,\s0 use \fBgcc-ar\fR and \fBgcc-ranlib\fR instead of \fBar\fR
8816 and \fBranlib\fR; 
8817 to show the symbols of object files with \s-1GIMPLE\s0 bytecode, use
8818 \&\fBgcc-nm\fR.  Those commands require that \fBar\fR, \fBranlib\fR
8819 and \fBnm\fR have been compiled with plugin support.  At link time, use the
8820 flag \fB\-fuse\-linker\-plugin\fR to ensure that the library participates in
8821 the \s-1LTO\s0 optimization process:
8822 .Sp
8823 .Vb 1
8824 \&        gcc \-o myprog \-O2 \-flto \-fuse\-linker\-plugin a.o b.o \-lfoo
8825 .Ve
8826 .Sp
8827 With the linker plugin enabled, the linker extracts the needed
8828 \&\s-1GIMPLE\s0 files from \fIlibfoo.a\fR and passes them on to the running \s-1GCC\s0
8829 to make them part of the aggregated \s-1GIMPLE\s0 image to be optimized.
8830 .Sp
8831 If you are not using a linker with plugin support and/or do not
8832 enable the linker plugin, then the objects inside \fIlibfoo.a\fR
8833 are extracted and linked as usual, but they do not participate
8834 in the \s-1LTO\s0 optimization process.  In order to make a static library suitable
8835 for both \s-1LTO\s0 optimization and usual linkage, compile its object files with
8836 \&\fB\-flto\fR \fB\-ffat\-lto\-objects\fR.
8837 .Sp
8838 Link-time optimizations do not require the presence of the whole program to
8839 operate.  If the program does not require any symbols to be exported, it is
8840 possible to combine \fB\-flto\fR and \fB\-fwhole\-program\fR to allow
8841 the interprocedural optimizers to use more aggressive assumptions which may
8842 lead to improved optimization opportunities.
8843 Use of \fB\-fwhole\-program\fR is not needed when linker plugin is
8844 active (see \fB\-fuse\-linker\-plugin\fR).
8845 .Sp
8846 The current implementation of \s-1LTO\s0 makes no
8847 attempt to generate bytecode that is portable between different
8848 types of hosts.  The bytecode files are versioned and there is a
8849 strict version check, so bytecode files generated in one version of
8850 \&\s-1GCC\s0 do not work with an older or newer version of \s-1GCC.\s0
8851 .Sp
8852 Link-time optimization does not work well with generation of debugging
8853 information on systems other than those using a combination of \s-1ELF\s0 and
8854 \&\s-1DWARF.\s0
8855 .Sp
8856 If you specify the optional \fIn\fR, the optimization and code
8857 generation done at link time is executed in parallel using \fIn\fR
8858 parallel jobs by utilizing an installed \fBmake\fR program.  The
8859 environment variable \fB\s-1MAKE\s0\fR may be used to override the program
8860 used.  The default value for \fIn\fR is 1.
8861 .Sp
8862 You can also specify \fB\-flto=jobserver\fR to use \s-1GNU\s0 make's
8863 job server mode to determine the number of parallel jobs. This
8864 is useful when the Makefile calling \s-1GCC\s0 is already executing in parallel.
8865 You must prepend a \fB+\fR to the command recipe in the parent Makefile
8866 for this to work.  This option likely only works if \fB\s-1MAKE\s0\fR is
8867 \&\s-1GNU\s0 make.
8868 .IP "\fB\-flto\-partition=\fR\fIalg\fR" 4
8869 .IX Item "-flto-partition=alg"
8870 Specify the partitioning algorithm used by the link-time optimizer.
8871 The value is either \fB1to1\fR to specify a partitioning mirroring
8872 the original source files or \fBbalanced\fR to specify partitioning
8873 into equally sized chunks (whenever possible) or \fBmax\fR to create
8874 new partition for every symbol where possible.  Specifying \fBnone\fR
8875 as an algorithm disables partitioning and streaming completely. 
8876 The default value is \fBbalanced\fR. While \fB1to1\fR can be used
8877 as an workaround for various code ordering issues, the \fBmax\fR
8878 partitioning is intended for internal testing only.
8879 The value \fBone\fR specifies that exactly one partition should be
8880 used while the value \fBnone\fR bypasses partitioning and executes
8881 the link-time optimization step directly from the \s-1WPA\s0 phase.
8882 .IP "\fB\-flto\-odr\-type\-merging\fR" 4
8883 .IX Item "-flto-odr-type-merging"
8884 Enable streaming of mangled types names of \*(C+ types and their unification
8885 at link time.  This increases size of \s-1LTO\s0 object files, but enables
8886 diagnostics about One Definition Rule violations.
8887 .IP "\fB\-flto\-compression\-level=\fR\fIn\fR" 4
8888 .IX Item "-flto-compression-level=n"
8889 This option specifies the level of compression used for intermediate
8890 language written to \s-1LTO\s0 object files, and is only meaningful in
8891 conjunction with \s-1LTO\s0 mode (\fB\-flto\fR).  Valid
8892 values are 0 (no compression) to 9 (maximum compression).  Values
8893 outside this range are clamped to either 0 or 9.  If the option is not
8894 given, a default balanced compression setting is used.
8895 .IP "\fB\-fuse\-linker\-plugin\fR" 4
8896 .IX Item "-fuse-linker-plugin"
8897 Enables the use of a linker plugin during link-time optimization.  This
8898 option relies on plugin support in the linker, which is available in gold
8899 or in \s-1GNU\s0 ld 2.21 or newer.
8900 .Sp
8901 This option enables the extraction of object files with \s-1GIMPLE\s0 bytecode out
8902 of library archives. This improves the quality of optimization by exposing
8903 more code to the link-time optimizer.  This information specifies what
8904 symbols can be accessed externally (by non-LTO object or during dynamic
8905 linking).  Resulting code quality improvements on binaries (and shared
8906 libraries that use hidden visibility) are similar to \fB\-fwhole\-program\fR.
8907 See \fB\-flto\fR for a description of the effect of this flag and how to
8908 use it.
8909 .Sp
8910 This option is enabled by default when \s-1LTO\s0 support in \s-1GCC\s0 is enabled
8911 and \s-1GCC\s0 was configured for use with
8912 a linker supporting plugins (\s-1GNU\s0 ld 2.21 or newer or gold).
8913 .IP "\fB\-ffat\-lto\-objects\fR" 4
8914 .IX Item "-ffat-lto-objects"
8915 Fat \s-1LTO\s0 objects are object files that contain both the intermediate language
8916 and the object code. This makes them usable for both \s-1LTO\s0 linking and normal
8917 linking. This option is effective only when compiling with \fB\-flto\fR
8918 and is ignored at link time.
8919 .Sp
8920 \&\fB\-fno\-fat\-lto\-objects\fR improves compilation time over plain \s-1LTO,\s0 but
8921 requires the complete toolchain to be aware of \s-1LTO.\s0 It requires a linker with
8922 linker plugin support for basic functionality.  Additionally,
8923 \&\fBnm\fR, \fBar\fR and \fBranlib\fR
8924 need to support linker plugins to allow a full-featured build environment
8925 (capable of building static libraries etc).  \s-1GCC\s0 provides the \fBgcc-ar\fR,
8926 \&\fBgcc-nm\fR, \fBgcc-ranlib\fR wrappers to pass the right options
8927 to these tools. With non fat \s-1LTO\s0 makefiles need to be modified to use them.
8928 .Sp
8929 Note that modern binutils provide plugin auto-load mechanism.
8930 Installing the linker plugin into \fI\f(CI$libdir\fI/bfd\-plugins\fR has the same
8931 effect as usage of the command wrappers (\fBgcc-ar\fR, \fBgcc-nm\fR and
8932 \&\fBgcc-ranlib\fR).
8933 .Sp
8934 The default is \fB\-fno\-fat\-lto\-objects\fR on targets with linker plugin
8935 support.
8936 .IP "\fB\-fcompare\-elim\fR" 4
8937 .IX Item "-fcompare-elim"
8938 After register allocation and post-register allocation instruction splitting,
8939 identify arithmetic instructions that compute processor flags similar to a
8940 comparison operation based on that arithmetic.  If possible, eliminate the
8941 explicit comparison operation.
8942 .Sp
8943 This pass only applies to certain targets that cannot explicitly represent
8944 the comparison operation before register allocation is complete.
8945 .Sp
8946 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8947 .IP "\fB\-fcprop\-registers\fR" 4
8948 .IX Item "-fcprop-registers"
8949 After register allocation and post-register allocation instruction splitting,
8950 perform a copy-propagation pass to try to reduce scheduling dependencies
8951 and occasionally eliminate the copy.
8952 .Sp
8953 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8954 .IP "\fB\-fprofile\-correction\fR" 4
8955 .IX Item "-fprofile-correction"
8956 Profiles collected using an instrumented binary for multi-threaded programs may
8957 be inconsistent due to missed counter updates. When this option is specified,
8958 \&\s-1GCC\s0 uses heuristics to correct or smooth out such inconsistencies. By
8959 default, \s-1GCC\s0 emits an error message when an inconsistent profile is detected.
8960 .IP "\fB\-fprofile\-use\fR" 4
8961 .IX Item "-fprofile-use"
8962 .PD 0
8963 .IP "\fB\-fprofile\-use=\fR\fIpath\fR" 4
8964 .IX Item "-fprofile-use=path"
8965 .PD
8966 Enable profile feedback-directed optimizations, 
8967 and the following optimizations
8968 which are generally profitable only with profile feedback available:
8969 \&\fB\-fbranch\-probabilities\fR, \fB\-fvpt\fR,
8970 \&\fB\-funroll\-loops\fR, \fB\-fpeel\-loops\fR, \fB\-ftracer\fR, 
8971 \&\fB\-ftree\-vectorize\fR, and \fBftree-loop-distribute-patterns\fR.
8972 .Sp
8973 Before you can use this option, you must first generate profiling information.
8974 .Sp
8975 By default, \s-1GCC\s0 emits an error message if the feedback profiles do not
8976 match the source code.  This error can be turned into a warning by using
8977 \&\fB\-Wcoverage\-mismatch\fR.  Note this may result in poorly optimized
8978 code.
8979 .Sp
8980 If \fIpath\fR is specified, \s-1GCC\s0 looks at the \fIpath\fR to find
8981 the profile feedback data files. See \fB\-fprofile\-dir\fR.
8982 .IP "\fB\-fauto\-profile\fR" 4
8983 .IX Item "-fauto-profile"
8984 .PD 0
8985 .IP "\fB\-fauto\-profile=\fR\fIpath\fR" 4
8986 .IX Item "-fauto-profile=path"
8987 .PD
8988 Enable sampling-based feedback-directed optimizations, 
8989 and the following optimizations
8990 which are generally profitable only with profile feedback available:
8991 \&\fB\-fbranch\-probabilities\fR, \fB\-fvpt\fR,
8992 \&\fB\-funroll\-loops\fR, \fB\-fpeel\-loops\fR, \fB\-ftracer\fR, 
8993 \&\fB\-ftree\-vectorize\fR,
8994 \&\fB\-finline\-functions\fR, \fB\-fipa\-cp\fR, \fB\-fipa\-cp\-clone\fR,
8995 \&\fB\-fpredictive\-commoning\fR, \fB\-funswitch\-loops\fR,
8996 \&\fB\-fgcse\-after\-reload\fR, and \fB\-ftree\-loop\-distribute\-patterns\fR.
8997 .Sp
8998 \&\fIpath\fR is the name of a file containing AutoFDO profile information.
8999 If omitted, it defaults to \fIfbdata.afdo\fR in the current directory.
9000 .Sp
9001 Producing an AutoFDO profile data file requires running your program
9002 with the \fBperf\fR utility on a supported GNU/Linux target system.
9003 For more information, see <\fBhttps://perf.wiki.kernel.org/\fR>.
9004 .Sp
9005 E.g.
9006 .Sp
9007 .Vb 2
9008 \&        perf record \-e br_inst_retired:near_taken \-b \-o perf.data \e
9009 \&            \-\- your_program
9010 .Ve
9011 .Sp
9012 Then use the \fBcreate_gcov\fR tool to convert the raw profile data
9013 to a format that can be used by \s-1GCC.\s0  You must also supply the 
9014 unstripped binary for your program to this tool.  
9015 See <\fBhttps://github.com/google/autofdo\fR>.
9016 .Sp
9017 E.g.
9018 .Sp
9019 .Vb 2
9020 \&        create_gcov \-\-binary=your_program.unstripped \-\-profile=perf.data \e
9021 \&            \-\-gcov=profile.afdo
9022 .Ve
9023 .PP
9024 The following options control compiler behavior regarding floating-point 
9025 arithmetic.  These options trade off between speed and
9026 correctness.  All must be specifically enabled.
9027 .IP "\fB\-ffloat\-store\fR" 4
9028 .IX Item "-ffloat-store"
9029 Do not store floating-point variables in registers, and inhibit other
9030 options that might change whether a floating-point value is taken from a
9031 register or memory.
9032 .Sp
9033 This option prevents undesirable excess precision on machines such as
9034 the 68000 where the floating registers (of the 68881) keep more
9035 precision than a \f(CW\*(C`double\*(C'\fR is supposed to have.  Similarly for the
9036 x86 architecture.  For most programs, the excess precision does only
9037 good, but a few programs rely on the precise definition of \s-1IEEE\s0 floating
9038 point.  Use \fB\-ffloat\-store\fR for such programs, after modifying
9039 them to store all pertinent intermediate computations into variables.
9040 .IP "\fB\-fexcess\-precision=\fR\fIstyle\fR" 4
9041 .IX Item "-fexcess-precision=style"
9042 This option allows further control over excess precision on machines
9043 where floating-point operations occur in a format with more precision or
9044 range than the \s-1IEEE\s0 standard and interchange floating-point types.  By
9045 default, \fB\-fexcess\-precision=fast\fR is in effect; this means that
9046 operations may be carried out in a wider precision than the types specified
9047 in the source if that would result in faster code, and it is unpredictable
9048 when rounding to the types specified in the source code takes place.
9049 When compiling C, if \fB\-fexcess\-precision=standard\fR is specified then
9050 excess precision follows the rules specified in \s-1ISO C99\s0; in particular,
9051 both casts and assignments cause values to be rounded to their
9052 semantic types (whereas \fB\-ffloat\-store\fR only affects
9053 assignments).  This option is enabled by default for C if a strict
9054 conformance option such as \fB\-std=c99\fR is used.
9055 \&\fB\-ffast\-math\fR enables \fB\-fexcess\-precision=fast\fR by default
9056 regardless of whether a strict conformance option is used.
9057 .Sp
9058 \&\fB\-fexcess\-precision=standard\fR is not implemented for languages
9059 other than C.  On the x86, it has no effect if \fB\-mfpmath=sse\fR
9060 or \fB\-mfpmath=sse+387\fR is specified; in the former case, \s-1IEEE\s0
9061 semantics apply without excess precision, and in the latter, rounding
9062 is unpredictable.
9063 .IP "\fB\-ffast\-math\fR" 4
9064 .IX Item "-ffast-math"
9065 Sets the options \fB\-fno\-math\-errno\fR, \fB\-funsafe\-math\-optimizations\fR,
9066 \&\fB\-ffinite\-math\-only\fR, \fB\-fno\-rounding\-math\fR,
9067 \&\fB\-fno\-signaling\-nans\fR, \fB\-fcx\-limited\-range\fR and
9068 \&\fB\-fexcess\-precision=fast\fR.
9069 .Sp
9070 This option causes the preprocessor macro \f(CW\*(C`_\|_FAST_MATH_\|_\*(C'\fR to be defined.
9071 .Sp
9072 This option is not turned on by any \fB\-O\fR option besides
9073 \&\fB\-Ofast\fR since it can result in incorrect output for programs
9074 that depend on an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications
9075 for math functions. It may, however, yield faster code for programs
9076 that do not require the guarantees of these specifications.
9077 .IP "\fB\-fno\-math\-errno\fR" 4
9078 .IX Item "-fno-math-errno"
9079 Do not set \f(CW\*(C`errno\*(C'\fR after calling math functions that are executed
9080 with a single instruction, e.g., \f(CW\*(C`sqrt\*(C'\fR.  A program that relies on
9081 \&\s-1IEEE\s0 exceptions for math error handling may want to use this flag
9082 for speed while maintaining \s-1IEEE\s0 arithmetic compatibility.
9083 .Sp
9084 This option is not turned on by any \fB\-O\fR option since
9085 it can result in incorrect output for programs that depend on
9086 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
9087 math functions. It may, however, yield faster code for programs
9088 that do not require the guarantees of these specifications.
9089 .Sp
9090 The default is \fB\-fmath\-errno\fR.
9091 .Sp
9092 On Darwin systems, the math library never sets \f(CW\*(C`errno\*(C'\fR.  There is
9093 therefore no reason for the compiler to consider the possibility that
9094 it might, and \fB\-fno\-math\-errno\fR is the default.
9095 .IP "\fB\-funsafe\-math\-optimizations\fR" 4
9096 .IX Item "-funsafe-math-optimizations"
9097 Allow optimizations for floating-point arithmetic that (a) assume
9098 that arguments and results are valid and (b) may violate \s-1IEEE\s0 or
9099 \&\s-1ANSI\s0 standards.  When used at link time, it may include libraries
9100 or startup files that change the default \s-1FPU\s0 control word or other
9101 similar optimizations.
9102 .Sp
9103 This option is not turned on by any \fB\-O\fR option since
9104 it can result in incorrect output for programs that depend on
9105 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
9106 math functions. It may, however, yield faster code for programs
9107 that do not require the guarantees of these specifications.
9108 Enables \fB\-fno\-signed\-zeros\fR, \fB\-fno\-trapping\-math\fR,
9109 \&\fB\-fassociative\-math\fR and \fB\-freciprocal\-math\fR.
9110 .Sp
9111 The default is \fB\-fno\-unsafe\-math\-optimizations\fR.
9112 .IP "\fB\-fassociative\-math\fR" 4
9113 .IX Item "-fassociative-math"
9114 Allow re-association of operands in series of floating-point operations.
9115 This violates the \s-1ISO C\s0 and \*(C+ language standard by possibly changing
9116 computation result.  \s-1NOTE:\s0 re-ordering may change the sign of zero as
9117 well as ignore NaNs and inhibit or create underflow or overflow (and
9118 thus cannot be used on code that relies on rounding behavior like
9119 \&\f(CW\*(C`(x + 2**52) \- 2**52\*(C'\fR.  May also reorder floating-point comparisons
9120 and thus may not be used when ordered comparisons are required.
9121 This option requires that both \fB\-fno\-signed\-zeros\fR and
9122 \&\fB\-fno\-trapping\-math\fR be in effect.  Moreover, it doesn't make
9123 much sense with \fB\-frounding\-math\fR. For Fortran the option
9124 is automatically enabled when both \fB\-fno\-signed\-zeros\fR and
9125 \&\fB\-fno\-trapping\-math\fR are in effect.
9126 .Sp
9127 The default is \fB\-fno\-associative\-math\fR.
9128 .IP "\fB\-freciprocal\-math\fR" 4
9129 .IX Item "-freciprocal-math"
9130 Allow the reciprocal of a value to be used instead of dividing by
9131 the value if this enables optimizations.  For example \f(CW\*(C`x / y\*(C'\fR
9132 can be replaced with \f(CW\*(C`x * (1/y)\*(C'\fR, which is useful if \f(CW\*(C`(1/y)\*(C'\fR
9133 is subject to common subexpression elimination.  Note that this loses
9134 precision and increases the number of flops operating on the value.
9135 .Sp
9136 The default is \fB\-fno\-reciprocal\-math\fR.
9137 .IP "\fB\-ffinite\-math\-only\fR" 4
9138 .IX Item "-ffinite-math-only"
9139 Allow optimizations for floating-point arithmetic that assume
9140 that arguments and results are not NaNs or +\-Infs.
9141 .Sp
9142 This option is not turned on by any \fB\-O\fR option since
9143 it can result in incorrect output for programs that depend on
9144 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
9145 math functions. It may, however, yield faster code for programs
9146 that do not require the guarantees of these specifications.
9147 .Sp
9148 The default is \fB\-fno\-finite\-math\-only\fR.
9149 .IP "\fB\-fno\-signed\-zeros\fR" 4
9150 .IX Item "-fno-signed-zeros"
9151 Allow optimizations for floating-point arithmetic that ignore the
9152 signedness of zero.  \s-1IEEE\s0 arithmetic specifies the behavior of
9153 distinct +0.0 and \-0.0 values, which then prohibits simplification
9154 of expressions such as x+0.0 or 0.0*x (even with \fB\-ffinite\-math\-only\fR).
9155 This option implies that the sign of a zero result isn't significant.
9156 .Sp
9157 The default is \fB\-fsigned\-zeros\fR.
9158 .IP "\fB\-fno\-trapping\-math\fR" 4
9159 .IX Item "-fno-trapping-math"
9160 Compile code assuming that floating-point operations cannot generate
9161 user-visible traps.  These traps include division by zero, overflow,
9162 underflow, inexact result and invalid operation.  This option requires
9163 that \fB\-fno\-signaling\-nans\fR be in effect.  Setting this option may
9164 allow faster code if one relies on \*(L"non-stop\*(R" \s-1IEEE\s0 arithmetic, for example.
9165 .Sp
9166 This option should never be turned on by any \fB\-O\fR option since
9167 it can result in incorrect output for programs that depend on
9168 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
9169 math functions.
9170 .Sp
9171 The default is \fB\-ftrapping\-math\fR.
9172 .IP "\fB\-frounding\-math\fR" 4
9173 .IX Item "-frounding-math"
9174 Disable transformations and optimizations that assume default floating-point
9175 rounding behavior.  This is round-to-zero for all floating point
9176 to integer conversions, and round-to-nearest for all other arithmetic
9177 truncations.  This option should be specified for programs that change
9178 the \s-1FP\s0 rounding mode dynamically, or that may be executed with a
9179 non-default rounding mode.  This option disables constant folding of
9180 floating-point expressions at compile time (which may be affected by
9181 rounding mode) and arithmetic transformations that are unsafe in the
9182 presence of sign-dependent rounding modes.
9183 .Sp
9184 The default is \fB\-fno\-rounding\-math\fR.
9185 .Sp
9186 This option is experimental and does not currently guarantee to
9187 disable all \s-1GCC\s0 optimizations that are affected by rounding mode.
9188 Future versions of \s-1GCC\s0 may provide finer control of this setting
9189 using C99's \f(CW\*(C`FENV_ACCESS\*(C'\fR pragma.  This command-line option
9190 will be used to specify the default state for \f(CW\*(C`FENV_ACCESS\*(C'\fR.
9191 .IP "\fB\-fsignaling\-nans\fR" 4
9192 .IX Item "-fsignaling-nans"
9193 Compile code assuming that \s-1IEEE\s0 signaling NaNs may generate user-visible
9194 traps during floating-point operations.  Setting this option disables
9195 optimizations that may change the number of exceptions visible with
9196 signaling NaNs.  This option implies \fB\-ftrapping\-math\fR.
9197 .Sp
9198 This option causes the preprocessor macro \f(CW\*(C`_\|_SUPPORT_SNAN_\|_\*(C'\fR to
9199 be defined.
9200 .Sp
9201 The default is \fB\-fno\-signaling\-nans\fR.
9202 .Sp
9203 This option is experimental and does not currently guarantee to
9204 disable all \s-1GCC\s0 optimizations that affect signaling NaN behavior.
9205 .IP "\fB\-fno\-fp\-int\-builtin\-inexact\fR" 4
9206 .IX Item "-fno-fp-int-builtin-inexact"
9207 Do not allow the built-in functions \f(CW\*(C`ceil\*(C'\fR, \f(CW\*(C`floor\*(C'\fR,
9208 \&\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
9209 double\*(C'\fR variants, to generate code that raises the \*(L"inexact\*(R"
9210 floating-point exception for noninteger arguments.  \s-1ISO C99\s0 and C11
9211 allow these functions to raise the \*(L"inexact\*(R" exception, but \s-1ISO/IEC
9212 TS 18661\-1:2014,\s0 the C bindings to \s-1IEEE 754\-2008,\s0 does not allow these
9213 functions to do so.
9214 .Sp
9215 The default is \fB\-ffp\-int\-builtin\-inexact\fR, allowing the
9216 exception to be raised.  This option does nothing unless
9217 \&\fB\-ftrapping\-math\fR is in effect.
9218 .Sp
9219 Even if \fB\-fno\-fp\-int\-builtin\-inexact\fR is used, if the functions
9220 generate a call to a library function then the \*(L"inexact\*(R" exception
9221 may be raised if the library implementation does not follow \s-1TS 18661.\s0
9222 .IP "\fB\-fsingle\-precision\-constant\fR" 4
9223 .IX Item "-fsingle-precision-constant"
9224 Treat floating-point constants as single precision instead of
9225 implicitly converting them to double-precision constants.
9226 .IP "\fB\-fcx\-limited\-range\fR" 4
9227 .IX Item "-fcx-limited-range"
9228 When enabled, this option states that a range reduction step is not
9229 needed when performing complex division.  Also, there is no checking
9230 whether the result of a complex multiplication or division is \f(CW\*(C`NaN
9231 + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case.  The
9232 default is \fB\-fno\-cx\-limited\-range\fR, but is enabled by
9233 \&\fB\-ffast\-math\fR.
9234 .Sp
9235 This option controls the default setting of the \s-1ISO C99\s0
9236 \&\f(CW\*(C`CX_LIMITED_RANGE\*(C'\fR pragma.  Nevertheless, the option applies to
9237 all languages.
9238 .IP "\fB\-fcx\-fortran\-rules\fR" 4
9239 .IX Item "-fcx-fortran-rules"
9240 Complex multiplication and division follow Fortran rules.  Range
9241 reduction is done as part of complex division, but there is no checking
9242 whether the result of a complex multiplication or division is \f(CW\*(C`NaN
9243 + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case.
9244 .Sp
9245 The default is \fB\-fno\-cx\-fortran\-rules\fR.
9246 .PP
9247 The following options control optimizations that may improve
9248 performance, but are not enabled by any \fB\-O\fR options.  This
9249 section includes experimental options that may produce broken code.
9250 .IP "\fB\-fbranch\-probabilities\fR" 4
9251 .IX Item "-fbranch-probabilities"
9252 After running a program compiled with \fB\-fprofile\-arcs\fR,
9253 you can compile it a second time using
9254 \&\fB\-fbranch\-probabilities\fR, to improve optimizations based on
9255 the number of times each branch was taken.  When a program
9256 compiled with \fB\-fprofile\-arcs\fR exits, it saves arc execution
9257 counts to a file called \fI\fIsourcename\fI.gcda\fR for each source
9258 file.  The information in this data file is very dependent on the
9259 structure of the generated code, so you must use the same source code
9260 and the same optimization options for both compilations.
9261 .Sp
9262 With \fB\-fbranch\-probabilities\fR, \s-1GCC\s0 puts a
9263 \&\fB\s-1REG_BR_PROB\s0\fR note on each \fB\s-1JUMP_INSN\s0\fR and \fB\s-1CALL_INSN\s0\fR.
9264 These can be used to improve optimization.  Currently, they are only
9265 used in one place: in \fIreorg.c\fR, instead of guessing which path a
9266 branch is most likely to take, the \fB\s-1REG_BR_PROB\s0\fR values are used to
9267 exactly determine which path is taken more often.
9268 .IP "\fB\-fprofile\-values\fR" 4
9269 .IX Item "-fprofile-values"
9270 If combined with \fB\-fprofile\-arcs\fR, it adds code so that some
9271 data about values of expressions in the program is gathered.
9272 .Sp
9273 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
9274 from profiling values of expressions for usage in optimizations.
9275 .Sp
9276 Enabled with \fB\-fprofile\-generate\fR and \fB\-fprofile\-use\fR.
9277 .IP "\fB\-fprofile\-reorder\-functions\fR" 4
9278 .IX Item "-fprofile-reorder-functions"
9279 Function reordering based on profile instrumentation collects
9280 first time of execution of a function and orders these functions
9281 in ascending order.
9282 .Sp
9283 Enabled with \fB\-fprofile\-use\fR.
9284 .IP "\fB\-fvpt\fR" 4
9285 .IX Item "-fvpt"
9286 If combined with \fB\-fprofile\-arcs\fR, this option instructs the compiler
9287 to add code to gather information about values of expressions.
9288 .Sp
9289 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
9290 and actually performs the optimizations based on them.
9291 Currently the optimizations include specialization of division operations
9292 using the knowledge about the value of the denominator.
9293 .IP "\fB\-frename\-registers\fR" 4
9294 .IX Item "-frename-registers"
9295 Attempt to avoid false dependencies in scheduled code by making use
9296 of registers left over after register allocation.  This optimization
9297 most benefits processors with lots of registers.  Depending on the
9298 debug information format adopted by the target, however, it can
9299 make debugging impossible, since variables no longer stay in
9300 a \*(L"home register\*(R".
9301 .Sp
9302 Enabled by default with \fB\-funroll\-loops\fR.
9303 .IP "\fB\-fschedule\-fusion\fR" 4
9304 .IX Item "-fschedule-fusion"
9305 Performs a target dependent pass over the instruction stream to schedule
9306 instructions of same type together because target machine can execute them
9307 more efficiently if they are adjacent to each other in the instruction flow.
9308 .Sp
9309 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
9310 .IP "\fB\-ftracer\fR" 4
9311 .IX Item "-ftracer"
9312 Perform tail duplication to enlarge superblock size.  This transformation
9313 simplifies the control flow of the function allowing other optimizations to do
9314 a better job.
9315 .Sp
9316 Enabled with \fB\-fprofile\-use\fR.
9317 .IP "\fB\-funroll\-loops\fR" 4
9318 .IX Item "-funroll-loops"
9319 Unroll loops whose number of iterations can be determined at compile time or
9320 upon entry to the loop.  \fB\-funroll\-loops\fR implies
9321 \&\fB\-frerun\-cse\-after\-loop\fR, \fB\-fweb\fR and \fB\-frename\-registers\fR.
9322 It also turns on complete loop peeling (i.e. complete removal of loops with
9323 a small constant number of iterations).  This option makes code larger, and may
9324 or may not make it run faster.
9325 .Sp
9326 Enabled with \fB\-fprofile\-use\fR.
9327 .IP "\fB\-funroll\-all\-loops\fR" 4
9328 .IX Item "-funroll-all-loops"
9329 Unroll all loops, even if their number of iterations is uncertain when
9330 the loop is entered.  This usually makes programs run more slowly.
9331 \&\fB\-funroll\-all\-loops\fR implies the same options as
9332 \&\fB\-funroll\-loops\fR.
9333 .IP "\fB\-fpeel\-loops\fR" 4
9334 .IX Item "-fpeel-loops"
9335 Peels loops for which there is enough information that they do not
9336 roll much (from profile feedback or static analysis).  It also turns on
9337 complete loop peeling (i.e. complete removal of loops with small constant
9338 number of iterations).
9339 .Sp
9340 Enabled with \fB\-O3\fR and/or \fB\-fprofile\-use\fR.
9341 .IP "\fB\-fmove\-loop\-invariants\fR" 4
9342 .IX Item "-fmove-loop-invariants"
9343 Enables the loop invariant motion pass in the \s-1RTL\s0 loop optimizer.  Enabled
9344 at level \fB\-O1\fR
9345 .IP "\fB\-fsplit\-loops\fR" 4
9346 .IX Item "-fsplit-loops"
9347 Split a loop into two if it contains a condition that's always true
9348 for one side of the iteration space and false for the other.
9349 .IP "\fB\-funswitch\-loops\fR" 4
9350 .IX Item "-funswitch-loops"
9351 Move branches with loop invariant conditions out of the loop, with duplicates
9352 of the loop on both branches (modified according to result of the condition).
9353 .IP "\fB\-ffunction\-sections\fR" 4
9354 .IX Item "-ffunction-sections"
9355 .PD 0
9356 .IP "\fB\-fdata\-sections\fR" 4
9357 .IX Item "-fdata-sections"
9358 .PD
9359 Place each function or data item into its own section in the output
9360 file if the target supports arbitrary sections.  The name of the
9361 function or the name of the data item determines the section's name
9362 in the output file.
9363 .Sp
9364 Use these options on systems where the linker can perform optimizations to
9365 improve locality of reference in the instruction space.  Most systems using the
9366 \&\s-1ELF\s0 object format have linkers with such optimizations.  On \s-1AIX,\s0 the linker
9367 rearranges sections (CSECTs) based on the call graph.  The performance impact
9368 varies.
9369 .Sp
9370 Together with a linker garbage collection (linker \fB\-\-gc\-sections\fR
9371 option) these options may lead to smaller statically-linked executables (after
9372 stripping).
9373 .Sp
9374 On \s-1ELF/DWARF\s0 systems these options do not degenerate the quality of the debug
9375 information.  There could be issues with other object files/debug info formats.
9376 .Sp
9377 Only use these options when there are significant benefits from doing so.  When
9378 you specify these options, the assembler and linker create larger object and
9379 executable files and are also slower.  These options affect code generation.
9380 They prevent optimizations by the compiler and assembler using relative
9381 locations inside a translation unit since the locations are unknown until
9382 link time.  An example of such an optimization is relaxing calls to short call
9383 instructions.
9384 .IP "\fB\-fbranch\-target\-load\-optimize\fR" 4
9385 .IX Item "-fbranch-target-load-optimize"
9386 Perform branch target register load optimization before prologue / epilogue
9387 threading.
9388 The use of target registers can typically be exposed only during reload,
9389 thus hoisting loads out of loops and doing inter-block scheduling needs
9390 a separate optimization pass.
9391 .IP "\fB\-fbranch\-target\-load\-optimize2\fR" 4
9392 .IX Item "-fbranch-target-load-optimize2"
9393 Perform branch target register load optimization after prologue / epilogue
9394 threading.
9395 .IP "\fB\-fbtr\-bb\-exclusive\fR" 4
9396 .IX Item "-fbtr-bb-exclusive"
9397 When performing branch target register load optimization, don't reuse
9398 branch target registers within any basic block.
9399 .IP "\fB\-fstdarg\-opt\fR" 4
9400 .IX Item "-fstdarg-opt"
9401 Optimize the prologue of variadic argument functions with respect to usage of
9402 those arguments.
9403 .IP "\fB\-fsection\-anchors\fR" 4
9404 .IX Item "-fsection-anchors"
9405 Try to reduce the number of symbolic address calculations by using
9406 shared \*(L"anchor\*(R" symbols to address nearby objects.  This transformation
9407 can help to reduce the number of \s-1GOT\s0 entries and \s-1GOT\s0 accesses on some
9408 targets.
9409 .Sp
9410 For example, the implementation of the following function \f(CW\*(C`foo\*(C'\fR:
9411 .Sp
9412 .Vb 2
9413 \&        static int a, b, c;
9414 \&        int foo (void) { return a + b + c; }
9415 .Ve
9416 .Sp
9417 usually calculates the addresses of all three variables, but if you
9418 compile it with \fB\-fsection\-anchors\fR, it accesses the variables
9419 from a common anchor point instead.  The effect is similar to the
9420 following pseudocode (which isn't valid C):
9421 .Sp
9422 .Vb 5
9423 \&        int foo (void)
9424 \&        {
9425 \&          register int *xr = &x;
9426 \&          return xr[&a \- &x] + xr[&b \- &x] + xr[&c \- &x];
9427 \&        }
9428 .Ve
9429 .Sp
9430 Not all targets support this option.
9431 .IP "\fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR" 4
9432 .IX Item "--param name=value"
9433 In some places, \s-1GCC\s0 uses various constants to control the amount of
9434 optimization that is done.  For example, \s-1GCC\s0 does not inline functions
9435 that contain more than a certain number of instructions.  You can
9436 control some of these constants on the command line using the
9437 \&\fB\-\-param\fR option.
9438 .Sp
9439 The names of specific parameters, and the meaning of the values, are
9440 tied to the internals of the compiler, and are subject to change
9441 without notice in future releases.
9442 .Sp
9443 In each case, the \fIvalue\fR is an integer.  The allowable choices for
9444 \&\fIname\fR are:
9445 .RS 4
9446 .IP "\fBpredictable-branch-outcome\fR" 4
9447 .IX Item "predictable-branch-outcome"
9448 When branch is predicted to be taken with probability lower than this threshold
9449 (in percent), then it is considered well predictable. The default is 10.
9450 .IP "\fBmax-rtl-if-conversion-insns\fR" 4
9451 .IX Item "max-rtl-if-conversion-insns"
9452 \&\s-1RTL\s0 if-conversion tries to remove conditional branches around a block and
9453 replace them with conditionally executed instructions.  This parameter
9454 gives the maximum number of instructions in a block which should be
9455 considered for if-conversion.  The default is 10, though the compiler will
9456 also use other heuristics to decide whether if-conversion is likely to be
9457 profitable.
9458 .IP "\fBmax-rtl-if-conversion-predictable-cost\fR" 4
9459 .IX Item "max-rtl-if-conversion-predictable-cost"
9460 .PD 0
9461 .IP "\fBmax-rtl-if-conversion-unpredictable-cost\fR" 4
9462 .IX Item "max-rtl-if-conversion-unpredictable-cost"
9463 .PD
9464 \&\s-1RTL\s0 if-conversion will try to remove conditional branches around a block
9465 and replace them with conditionally executed instructions.  These parameters
9466 give the maximum permissible cost for the sequence that would be generated
9467 by if-conversion depending on whether the branch is statically determined
9468 to be predictable or not.  The units for this parameter are the same as
9469 those for the \s-1GCC\s0 internal seq_cost metric.  The compiler will try to
9470 provide a reasonable default for this parameter using the \s-1BRANCH_COST\s0
9471 target macro.
9472 .IP "\fBmax-crossjump-edges\fR" 4
9473 .IX Item "max-crossjump-edges"
9474 The maximum number of incoming edges to consider for cross-jumping.
9475 The algorithm used by \fB\-fcrossjumping\fR is O(N^2) in
9476 the number of edges incoming to each block.  Increasing values mean
9477 more aggressive optimization, making the compilation time increase with
9478 probably small improvement in executable size.
9479 .IP "\fBmin-crossjump-insns\fR" 4
9480 .IX Item "min-crossjump-insns"
9481 The minimum number of instructions that must be matched at the end
9482 of two blocks before cross-jumping is performed on them.  This
9483 value is ignored in the case where all instructions in the block being
9484 cross-jumped from are matched.  The default value is 5.
9485 .IP "\fBmax-grow-copy-bb-insns\fR" 4
9486 .IX Item "max-grow-copy-bb-insns"
9487 The maximum code size expansion factor when copying basic blocks
9488 instead of jumping.  The expansion is relative to a jump instruction.
9489 The default value is 8.
9490 .IP "\fBmax-goto-duplication-insns\fR" 4
9491 .IX Item "max-goto-duplication-insns"
9492 The maximum number of instructions to duplicate to a block that jumps
9493 to a computed goto.  To avoid O(N^2) behavior in a number of
9494 passes, \s-1GCC\s0 factors computed gotos early in the compilation process,
9495 and unfactors them as late as possible.  Only computed jumps at the
9496 end of a basic blocks with no more than max-goto-duplication-insns are
9497 unfactored.  The default value is 8.
9498 .IP "\fBmax-delay-slot-insn-search\fR" 4
9499 .IX Item "max-delay-slot-insn-search"
9500 The maximum number of instructions to consider when looking for an
9501 instruction to fill a delay slot.  If more than this arbitrary number of
9502 instructions are searched, the time savings from filling the delay slot
9503 are minimal, so stop searching.  Increasing values mean more
9504 aggressive optimization, making the compilation time increase with probably
9505 small improvement in execution time.
9506 .IP "\fBmax-delay-slot-live-search\fR" 4
9507 .IX Item "max-delay-slot-live-search"
9508 When trying to fill delay slots, the maximum number of instructions to
9509 consider when searching for a block with valid live register
9510 information.  Increasing this arbitrarily chosen value means more
9511 aggressive optimization, increasing the compilation time.  This parameter
9512 should be removed when the delay slot code is rewritten to maintain the
9513 control-flow graph.
9514 .IP "\fBmax-gcse-memory\fR" 4
9515 .IX Item "max-gcse-memory"
9516 The approximate maximum amount of memory that can be allocated in
9517 order to perform the global common subexpression elimination
9518 optimization.  If more memory than specified is required, the
9519 optimization is not done.
9520 .IP "\fBmax-gcse-insertion-ratio\fR" 4
9521 .IX Item "max-gcse-insertion-ratio"
9522 If the ratio of expression insertions to deletions is larger than this value
9523 for any expression, then \s-1RTL PRE\s0 inserts or removes the expression and thus
9524 leaves partially redundant computations in the instruction stream.  The default value is 20.
9525 .IP "\fBmax-pending-list-length\fR" 4
9526 .IX Item "max-pending-list-length"
9527 The maximum number of pending dependencies scheduling allows
9528 before flushing the current state and starting over.  Large functions
9529 with few branches or calls can create excessively large lists which
9530 needlessly consume memory and resources.
9531 .IP "\fBmax-modulo-backtrack-attempts\fR" 4
9532 .IX Item "max-modulo-backtrack-attempts"
9533 The maximum number of backtrack attempts the scheduler should make
9534 when modulo scheduling a loop.  Larger values can exponentially increase
9535 compilation time.
9536 .IP "\fBmax-inline-insns-single\fR" 4
9537 .IX Item "max-inline-insns-single"
9538 Several parameters control the tree inliner used in \s-1GCC.\s0
9539 This number sets the maximum number of instructions (counted in \s-1GCC\s0's
9540 internal representation) in a single function that the tree inliner
9541 considers for inlining.  This only affects functions declared
9542 inline and methods implemented in a class declaration (\*(C+).
9543 The default value is 400.
9544 .IP "\fBmax-inline-insns-auto\fR" 4
9545 .IX Item "max-inline-insns-auto"
9546 When you use \fB\-finline\-functions\fR (included in \fB\-O3\fR),
9547 a lot of functions that would otherwise not be considered for inlining
9548 by the compiler are investigated.  To those functions, a different
9549 (more restrictive) limit compared to functions declared inline can
9550 be applied.
9551 The default value is 30.
9552 .IP "\fBinline-min-speedup\fR" 4
9553 .IX Item "inline-min-speedup"
9554 When estimated performance improvement of caller + callee runtime exceeds this
9555 threshold (in percent), the function can be inlined regardless of the limit on
9556 \&\fB\-\-param max-inline-insns-single\fR and \fB\-\-param
9557 max-inline-insns-auto\fR.
9558 The default value is 15.
9559 .IP "\fBlarge-function-insns\fR" 4
9560 .IX Item "large-function-insns"
9561 The limit specifying really large functions.  For functions larger than this
9562 limit after inlining, inlining is constrained by
9563 \&\fB\-\-param large-function-growth\fR.  This parameter is useful primarily
9564 to avoid extreme compilation time caused by non-linear algorithms used by the
9565 back end.
9566 The default value is 2700.
9567 .IP "\fBlarge-function-growth\fR" 4
9568 .IX Item "large-function-growth"
9569 Specifies maximal growth of large function caused by inlining in percents.
9570 The default value is 100 which limits large function growth to 2.0 times
9571 the original size.
9572 .IP "\fBlarge-unit-insns\fR" 4
9573 .IX Item "large-unit-insns"
9574 The limit specifying large translation unit.  Growth caused by inlining of
9575 units larger than this limit is limited by \fB\-\-param inline-unit-growth\fR.
9576 For small units this might be too tight.
9577 For example, consider a unit consisting of function A
9578 that is inline and B that just calls A three times.  If B is small relative to
9579 A, the growth of unit is 300\e% and yet such inlining is very sane.  For very
9580 large units consisting of small inlineable functions, however, the overall unit
9581 growth limit is needed to avoid exponential explosion of code size.  Thus for
9582 smaller units, the size is increased to \fB\-\-param large-unit-insns\fR
9583 before applying \fB\-\-param inline-unit-growth\fR.  The default is 10000.
9584 .IP "\fBinline-unit-growth\fR" 4
9585 .IX Item "inline-unit-growth"
9586 Specifies maximal overall growth of the compilation unit caused by inlining.
9587 The default value is 20 which limits unit growth to 1.2 times the original
9588 size. Cold functions (either marked cold via an attribute or by profile
9589 feedback) are not accounted into the unit size.
9590 .IP "\fBipcp-unit-growth\fR" 4
9591 .IX Item "ipcp-unit-growth"
9592 Specifies maximal overall growth of the compilation unit caused by
9593 interprocedural constant propagation.  The default value is 10 which limits
9594 unit growth to 1.1 times the original size.
9595 .IP "\fBlarge-stack-frame\fR" 4
9596 .IX Item "large-stack-frame"
9597 The limit specifying large stack frames.  While inlining the algorithm is trying
9598 to not grow past this limit too much.  The default value is 256 bytes.
9599 .IP "\fBlarge-stack-frame-growth\fR" 4
9600 .IX Item "large-stack-frame-growth"
9601 Specifies maximal growth of large stack frames caused by inlining in percents.
9602 The default value is 1000 which limits large stack frame growth to 11 times
9603 the original size.
9604 .IP "\fBmax-inline-insns-recursive\fR" 4
9605 .IX Item "max-inline-insns-recursive"
9606 .PD 0
9607 .IP "\fBmax-inline-insns-recursive-auto\fR" 4
9608 .IX Item "max-inline-insns-recursive-auto"
9609 .PD
9610 Specifies the maximum number of instructions an out-of-line copy of a
9611 self-recursive inline
9612 function can grow into by performing recursive inlining.
9613 .Sp
9614 \&\fB\-\-param max-inline-insns-recursive\fR applies to functions
9615 declared inline.
9616 For functions not declared inline, recursive inlining
9617 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
9618 enabled; \fB\-\-param max-inline-insns-recursive-auto\fR applies instead.  The
9619 default value is 450.
9620 .IP "\fBmax-inline-recursive-depth\fR" 4
9621 .IX Item "max-inline-recursive-depth"
9622 .PD 0
9623 .IP "\fBmax-inline-recursive-depth-auto\fR" 4
9624 .IX Item "max-inline-recursive-depth-auto"
9625 .PD
9626 Specifies the maximum recursion depth used for recursive inlining.
9627 .Sp
9628 \&\fB\-\-param max-inline-recursive-depth\fR applies to functions
9629 declared inline.  For functions not declared inline, recursive inlining
9630 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
9631 enabled; \fB\-\-param max-inline-recursive-depth-auto\fR applies instead.  The
9632 default value is 8.
9633 .IP "\fBmin-inline-recursive-probability\fR" 4
9634 .IX Item "min-inline-recursive-probability"
9635 Recursive inlining is profitable only for function having deep recursion
9636 in average and can hurt for function having little recursion depth by
9637 increasing the prologue size or complexity of function body to other
9638 optimizers.
9639 .Sp
9640 When profile feedback is available (see \fB\-fprofile\-generate\fR) the actual
9641 recursion depth can be guessed from the probability that function recurses
9642 via a given call expression.  This parameter limits inlining only to call
9643 expressions whose probability exceeds the given threshold (in percents).
9644 The default value is 10.
9645 .IP "\fBearly-inlining-insns\fR" 4
9646 .IX Item "early-inlining-insns"
9647 Specify growth that the early inliner can make.  In effect it increases
9648 the amount of inlining for code having a large abstraction penalty.
9649 The default value is 14.
9650 .IP "\fBmax-early-inliner-iterations\fR" 4
9651 .IX Item "max-early-inliner-iterations"
9652 Limit of iterations of the early inliner.  This basically bounds
9653 the number of nested indirect calls the early inliner can resolve.
9654 Deeper chains are still handled by late inlining.
9655 .IP "\fBcomdat-sharing-probability\fR" 4
9656 .IX Item "comdat-sharing-probability"
9657 Probability (in percent) that \*(C+ inline function with comdat visibility
9658 are shared across multiple compilation units.  The default value is 20.
9659 .IP "\fBprofile-func-internal-id\fR" 4
9660 .IX Item "profile-func-internal-id"
9661 A parameter to control whether to use function internal id in profile
9662 database lookup. If the value is 0, the compiler uses an id that
9663 is based on function assembler name and filename, which makes old profile
9664 data more tolerant to source changes such as function reordering etc.
9665 The default value is 0.
9666 .IP "\fBmin-vect-loop-bound\fR" 4
9667 .IX Item "min-vect-loop-bound"
9668 The minimum number of iterations under which loops are not vectorized
9669 when \fB\-ftree\-vectorize\fR is used.  The number of iterations after
9670 vectorization needs to be greater than the value specified by this option
9671 to allow vectorization.  The default value is 0.
9672 .IP "\fBgcse-cost-distance-ratio\fR" 4
9673 .IX Item "gcse-cost-distance-ratio"
9674 Scaling factor in calculation of maximum distance an expression
9675 can be moved by \s-1GCSE\s0 optimizations.  This is currently supported only in the
9676 code hoisting pass.  The bigger the ratio, the more aggressive code hoisting
9677 is with simple expressions, i.e., the expressions that have cost
9678 less than \fBgcse-unrestricted-cost\fR.  Specifying 0 disables
9679 hoisting of simple expressions.  The default value is 10.
9680 .IP "\fBgcse-unrestricted-cost\fR" 4
9681 .IX Item "gcse-unrestricted-cost"
9682 Cost, roughly measured as the cost of a single typical machine
9683 instruction, at which \s-1GCSE\s0 optimizations do not constrain
9684 the distance an expression can travel.  This is currently
9685 supported only in the code hoisting pass.  The lesser the cost,
9686 the more aggressive code hoisting is.  Specifying 0 
9687 allows all expressions to travel unrestricted distances.
9688 The default value is 3.
9689 .IP "\fBmax-hoist-depth\fR" 4
9690 .IX Item "max-hoist-depth"
9691 The depth of search in the dominator tree for expressions to hoist.
9692 This is used to avoid quadratic behavior in hoisting algorithm.
9693 The value of 0 does not limit on the search, but may slow down compilation
9694 of huge functions.  The default value is 30.
9695 .IP "\fBmax-tail-merge-comparisons\fR" 4
9696 .IX Item "max-tail-merge-comparisons"
9697 The maximum amount of similar bbs to compare a bb with.  This is used to
9698 avoid quadratic behavior in tree tail merging.  The default value is 10.
9699 .IP "\fBmax-tail-merge-iterations\fR" 4
9700 .IX Item "max-tail-merge-iterations"
9701 The maximum amount of iterations of the pass over the function.  This is used to
9702 limit compilation time in tree tail merging.  The default value is 2.
9703 .IP "\fBstore-merging-allow-unaligned\fR" 4
9704 .IX Item "store-merging-allow-unaligned"
9705 Allow the store merging pass to introduce unaligned stores if it is legal to
9706 do so.  The default value is 1.
9707 .IP "\fBmax-stores-to-merge\fR" 4
9708 .IX Item "max-stores-to-merge"
9709 The maximum number of stores to attempt to merge into wider stores in the store
9710 merging pass.  The minimum value is 2 and the default is 64.
9711 .IP "\fBmax-unrolled-insns\fR" 4
9712 .IX Item "max-unrolled-insns"
9713 The maximum number of instructions that a loop may have to be unrolled.
9714 If a loop is unrolled, this parameter also determines how many times
9715 the loop code is unrolled.
9716 .IP "\fBmax-average-unrolled-insns\fR" 4
9717 .IX Item "max-average-unrolled-insns"
9718 The maximum number of instructions biased by probabilities of their execution
9719 that a loop may have to be unrolled.  If a loop is unrolled,
9720 this parameter also determines how many times the loop code is unrolled.
9721 .IP "\fBmax-unroll-times\fR" 4
9722 .IX Item "max-unroll-times"
9723 The maximum number of unrollings of a single loop.
9724 .IP "\fBmax-peeled-insns\fR" 4
9725 .IX Item "max-peeled-insns"
9726 The maximum number of instructions that a loop may have to be peeled.
9727 If a loop is peeled, this parameter also determines how many times
9728 the loop code is peeled.
9729 .IP "\fBmax-peel-times\fR" 4
9730 .IX Item "max-peel-times"
9731 The maximum number of peelings of a single loop.
9732 .IP "\fBmax-peel-branches\fR" 4
9733 .IX Item "max-peel-branches"
9734 The maximum number of branches on the hot path through the peeled sequence.
9735 .IP "\fBmax-completely-peeled-insns\fR" 4
9736 .IX Item "max-completely-peeled-insns"
9737 The maximum number of insns of a completely peeled loop.
9738 .IP "\fBmax-completely-peel-times\fR" 4
9739 .IX Item "max-completely-peel-times"
9740 The maximum number of iterations of a loop to be suitable for complete peeling.
9741 .IP "\fBmax-completely-peel-loop-nest-depth\fR" 4
9742 .IX Item "max-completely-peel-loop-nest-depth"
9743 The maximum depth of a loop nest suitable for complete peeling.
9744 .IP "\fBmax-unswitch-insns\fR" 4
9745 .IX Item "max-unswitch-insns"
9746 The maximum number of insns of an unswitched loop.
9747 .IP "\fBmax-unswitch-level\fR" 4
9748 .IX Item "max-unswitch-level"
9749 The maximum number of branches unswitched in a single loop.
9750 .IP "\fBmax-loop-headers-insns\fR" 4
9751 .IX Item "max-loop-headers-insns"
9752 The maximum number of insns in loop header duplicated by the copy loop headers
9753 pass.
9754 .IP "\fBlim-expensive\fR" 4
9755 .IX Item "lim-expensive"
9756 The minimum cost of an expensive expression in the loop invariant motion.
9757 .IP "\fBiv-consider-all-candidates-bound\fR" 4
9758 .IX Item "iv-consider-all-candidates-bound"
9759 Bound on number of candidates for induction variables, below which
9760 all candidates are considered for each use in induction variable
9761 optimizations.  If there are more candidates than this,
9762 only the most relevant ones are considered to avoid quadratic time complexity.
9763 .IP "\fBiv-max-considered-uses\fR" 4
9764 .IX Item "iv-max-considered-uses"
9765 The induction variable optimizations give up on loops that contain more
9766 induction variable uses.
9767 .IP "\fBiv-always-prune-cand-set-bound\fR" 4
9768 .IX Item "iv-always-prune-cand-set-bound"
9769 If the number of candidates in the set is smaller than this value,
9770 always try to remove unnecessary ivs from the set
9771 when adding a new one.
9772 .IP "\fBavg-loop-niter\fR" 4
9773 .IX Item "avg-loop-niter"
9774 Average number of iterations of a loop.
9775 .IP "\fBdse-max-object-size\fR" 4
9776 .IX Item "dse-max-object-size"
9777 Maximum size (in bytes) of objects tracked bytewise by dead store elimination.
9778 Larger values may result in larger compilation times.
9779 .IP "\fBscev-max-expr-size\fR" 4
9780 .IX Item "scev-max-expr-size"
9781 Bound on size of expressions used in the scalar evolutions analyzer.
9782 Large expressions slow the analyzer.
9783 .IP "\fBscev-max-expr-complexity\fR" 4
9784 .IX Item "scev-max-expr-complexity"
9785 Bound on the complexity of the expressions in the scalar evolutions analyzer.
9786 Complex expressions slow the analyzer.
9787 .IP "\fBmax-tree-if-conversion-phi-args\fR" 4
9788 .IX Item "max-tree-if-conversion-phi-args"
9789 Maximum number of arguments in a \s-1PHI\s0 supported by \s-1TREE\s0 if conversion
9790 unless the loop is marked with simd pragma.
9791 .IP "\fBvect-max-version-for-alignment-checks\fR" 4
9792 .IX Item "vect-max-version-for-alignment-checks"
9793 The maximum number of run-time checks that can be performed when
9794 doing loop versioning for alignment in the vectorizer.
9795 .IP "\fBvect-max-version-for-alias-checks\fR" 4
9796 .IX Item "vect-max-version-for-alias-checks"
9797 The maximum number of run-time checks that can be performed when
9798 doing loop versioning for alias in the vectorizer.
9799 .IP "\fBvect-max-peeling-for-alignment\fR" 4
9800 .IX Item "vect-max-peeling-for-alignment"
9801 The maximum number of loop peels to enhance access alignment
9802 for vectorizer. Value \-1 means no limit.
9803 .IP "\fBmax-iterations-to-track\fR" 4
9804 .IX Item "max-iterations-to-track"
9805 The maximum number of iterations of a loop the brute-force algorithm
9806 for analysis of the number of iterations of the loop tries to evaluate.
9807 .IP "\fBhot-bb-count-ws-permille\fR" 4
9808 .IX Item "hot-bb-count-ws-permille"
9809 A basic block profile count is considered hot if it contributes to 
9810 the given permillage (i.e. 0...1000) of the entire profiled execution.
9811 .IP "\fBhot-bb-frequency-fraction\fR" 4
9812 .IX Item "hot-bb-frequency-fraction"
9813 Select fraction of the entry block frequency of executions of basic block in
9814 function given basic block needs to have to be considered hot.
9815 .IP "\fBmax-predicted-iterations\fR" 4
9816 .IX Item "max-predicted-iterations"
9817 The maximum number of loop iterations we predict statically.  This is useful
9818 in cases where a function contains a single loop with known bound and
9819 another loop with unknown bound.
9820 The known number of iterations is predicted correctly, while
9821 the unknown number of iterations average to roughly 10.  This means that the
9822 loop without bounds appears artificially cold relative to the other one.
9823 .IP "\fBbuiltin-expect-probability\fR" 4
9824 .IX Item "builtin-expect-probability"
9825 Control the probability of the expression having the specified value. This
9826 parameter takes a percentage (i.e. 0 ... 100) as input.
9827 The default probability of 90 is obtained empirically.
9828 .IP "\fBalign-threshold\fR" 4
9829 .IX Item "align-threshold"
9830 Select fraction of the maximal frequency of executions of a basic block in
9831 a function to align the basic block.
9832 .IP "\fBalign-loop-iterations\fR" 4
9833 .IX Item "align-loop-iterations"
9834 A loop expected to iterate at least the selected number of iterations is
9835 aligned.
9836 .IP "\fBtracer-dynamic-coverage\fR" 4
9837 .IX Item "tracer-dynamic-coverage"
9838 .PD 0
9839 .IP "\fBtracer-dynamic-coverage-feedback\fR" 4
9840 .IX Item "tracer-dynamic-coverage-feedback"
9841 .PD
9842 This value is used to limit superblock formation once the given percentage of
9843 executed instructions is covered.  This limits unnecessary code size
9844 expansion.
9845 .Sp
9846 The \fBtracer-dynamic-coverage-feedback\fR parameter
9847 is used only when profile
9848 feedback is available.  The real profiles (as opposed to statically estimated
9849 ones) are much less balanced allowing the threshold to be larger value.
9850 .IP "\fBtracer-max-code-growth\fR" 4
9851 .IX Item "tracer-max-code-growth"
9852 Stop tail duplication once code growth has reached given percentage.  This is
9853 a rather artificial limit, as most of the duplicates are eliminated later in
9854 cross jumping, so it may be set to much higher values than is the desired code
9855 growth.
9856 .IP "\fBtracer-min-branch-ratio\fR" 4
9857 .IX Item "tracer-min-branch-ratio"
9858 Stop reverse growth when the reverse probability of best edge is less than this
9859 threshold (in percent).
9860 .IP "\fBtracer-min-branch-probability\fR" 4
9861 .IX Item "tracer-min-branch-probability"
9862 .PD 0
9863 .IP "\fBtracer-min-branch-probability-feedback\fR" 4
9864 .IX Item "tracer-min-branch-probability-feedback"
9865 .PD
9866 Stop forward growth if the best edge has probability lower than this
9867 threshold.
9868 .Sp
9869 Similarly to \fBtracer-dynamic-coverage\fR two parameters are
9870 provided.  \fBtracer-min-branch-probability-feedback\fR is used for
9871 compilation with profile feedback and \fBtracer-min-branch-probability\fR
9872 compilation without.  The value for compilation with profile feedback
9873 needs to be more conservative (higher) in order to make tracer
9874 effective.
9875 .IP "\fBstack-clash-protection-guard-size\fR" 4
9876 .IX Item "stack-clash-protection-guard-size"
9877 Specify the size of the operating system provided stack guard as
9878 2 raised to \fInum\fR bytes.  The default value is 12 (4096 bytes).
9879 Acceptable values are between 12 and 30.  Higher values may reduce the
9880 number of explicit probes, but a value larger than the operating system
9881 provided guard will leave code vulnerable to stack clash style attacks.
9882 .IP "\fBstack-clash-protection-probe-interval\fR" 4
9883 .IX Item "stack-clash-protection-probe-interval"
9884 Stack clash protection involves probing stack space as it is allocated.  This
9885 param controls the maximum distance between probes into the stack as 2 raised
9886 to \fInum\fR bytes.  Acceptable values are between 10 and 16 and defaults to
9887 12.  Higher values may reduce the number of explicit probes, but a value
9888 larger than the operating system provided guard will leave code vulnerable to
9889 stack clash style attacks.
9890 .IP "\fBmax-cse-path-length\fR" 4
9891 .IX Item "max-cse-path-length"
9892 The maximum number of basic blocks on path that \s-1CSE\s0 considers.
9893 The default is 10.
9894 .IP "\fBmax-cse-insns\fR" 4
9895 .IX Item "max-cse-insns"
9896 The maximum number of instructions \s-1CSE\s0 processes before flushing.
9897 The default is 1000.
9898 .IP "\fBggc-min-expand\fR" 4
9899 .IX Item "ggc-min-expand"
9900 \&\s-1GCC\s0 uses a garbage collector to manage its own memory allocation.  This
9901 parameter specifies the minimum percentage by which the garbage
9902 collector's heap should be allowed to expand between collections.
9903 Tuning this may improve compilation speed; it has no effect on code
9904 generation.
9905 .Sp
9906 The default is 30% + 70% * (\s-1RAM/1GB\s0) with an upper bound of 100% when
9907 \&\s-1RAM\s0 >= 1GB.  If \f(CW\*(C`getrlimit\*(C'\fR is available, the notion of \*(L"\s-1RAM\*(R"\s0 is
9908 the smallest of actual \s-1RAM\s0 and \f(CW\*(C`RLIMIT_DATA\*(C'\fR or \f(CW\*(C`RLIMIT_AS\*(C'\fR.  If
9909 \&\s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a particular platform, the lower
9910 bound of 30% is used.  Setting this parameter and
9911 \&\fBggc-min-heapsize\fR to zero causes a full collection to occur at
9912 every opportunity.  This is extremely slow, but can be useful for
9913 debugging.
9914 .IP "\fBggc-min-heapsize\fR" 4
9915 .IX Item "ggc-min-heapsize"
9916 Minimum size of the garbage collector's heap before it begins bothering
9917 to collect garbage.  The first collection occurs after the heap expands
9918 by \fBggc-min-expand\fR% beyond \fBggc-min-heapsize\fR.  Again,
9919 tuning this may improve compilation speed, and has no effect on code
9920 generation.
9921 .Sp
9922 The default is the smaller of \s-1RAM/8, RLIMIT_RSS,\s0 or a limit that
9923 tries to ensure that \s-1RLIMIT_DATA\s0 or \s-1RLIMIT_AS\s0 are not exceeded, but
9924 with a lower bound of 4096 (four megabytes) and an upper bound of
9925 131072 (128 megabytes).  If \s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a
9926 particular platform, the lower bound is used.  Setting this parameter
9927 very large effectively disables garbage collection.  Setting this
9928 parameter and \fBggc-min-expand\fR to zero causes a full collection
9929 to occur at every opportunity.
9930 .IP "\fBmax-reload-search-insns\fR" 4
9931 .IX Item "max-reload-search-insns"
9932 The maximum number of instruction reload should look backward for equivalent
9933 register.  Increasing values mean more aggressive optimization, making the
9934 compilation time increase with probably slightly better performance.
9935 The default value is 100.
9936 .IP "\fBmax-cselib-memory-locations\fR" 4
9937 .IX Item "max-cselib-memory-locations"
9938 The maximum number of memory locations cselib should take into account.
9939 Increasing values mean more aggressive optimization, making the compilation time
9940 increase with probably slightly better performance.  The default value is 500.
9941 .IP "\fBmax-sched-ready-insns\fR" 4
9942 .IX Item "max-sched-ready-insns"
9943 The maximum number of instructions ready to be issued the scheduler should
9944 consider at any given time during the first scheduling pass.  Increasing
9945 values mean more thorough searches, making the compilation time increase
9946 with probably little benefit.  The default value is 100.
9947 .IP "\fBmax-sched-region-blocks\fR" 4
9948 .IX Item "max-sched-region-blocks"
9949 The maximum number of blocks in a region to be considered for
9950 interblock scheduling.  The default value is 10.
9951 .IP "\fBmax-pipeline-region-blocks\fR" 4
9952 .IX Item "max-pipeline-region-blocks"
9953 The maximum number of blocks in a region to be considered for
9954 pipelining in the selective scheduler.  The default value is 15.
9955 .IP "\fBmax-sched-region-insns\fR" 4
9956 .IX Item "max-sched-region-insns"
9957 The maximum number of insns in a region to be considered for
9958 interblock scheduling.  The default value is 100.
9959 .IP "\fBmax-pipeline-region-insns\fR" 4
9960 .IX Item "max-pipeline-region-insns"
9961 The maximum number of insns in a region to be considered for
9962 pipelining in the selective scheduler.  The default value is 200.
9963 .IP "\fBmin-spec-prob\fR" 4
9964 .IX Item "min-spec-prob"
9965 The minimum probability (in percents) of reaching a source block
9966 for interblock speculative scheduling.  The default value is 40.
9967 .IP "\fBmax-sched-extend-regions-iters\fR" 4
9968 .IX Item "max-sched-extend-regions-iters"
9969 The maximum number of iterations through \s-1CFG\s0 to extend regions.
9970 A value of 0 (the default) disables region extensions.
9971 .IP "\fBmax-sched-insn-conflict-delay\fR" 4
9972 .IX Item "max-sched-insn-conflict-delay"
9973 The maximum conflict delay for an insn to be considered for speculative motion.
9974 The default value is 3.
9975 .IP "\fBsched-spec-prob-cutoff\fR" 4
9976 .IX Item "sched-spec-prob-cutoff"
9977 The minimal probability of speculation success (in percents), so that
9978 speculative insns are scheduled.
9979 The default value is 40.
9980 .IP "\fBsched-state-edge-prob-cutoff\fR" 4
9981 .IX Item "sched-state-edge-prob-cutoff"
9982 The minimum probability an edge must have for the scheduler to save its
9983 state across it.
9984 The default value is 10.
9985 .IP "\fBsched-mem-true-dep-cost\fR" 4
9986 .IX Item "sched-mem-true-dep-cost"
9987 Minimal distance (in \s-1CPU\s0 cycles) between store and load targeting same
9988 memory locations.  The default value is 1.
9989 .IP "\fBselsched-max-lookahead\fR" 4
9990 .IX Item "selsched-max-lookahead"
9991 The maximum size of the lookahead window of selective scheduling.  It is a
9992 depth of search for available instructions.
9993 The default value is 50.
9994 .IP "\fBselsched-max-sched-times\fR" 4
9995 .IX Item "selsched-max-sched-times"
9996 The maximum number of times that an instruction is scheduled during
9997 selective scheduling.  This is the limit on the number of iterations
9998 through which the instruction may be pipelined.  The default value is 2.
9999 .IP "\fBselsched-insns-to-rename\fR" 4
10000 .IX Item "selsched-insns-to-rename"
10001 The maximum number of best instructions in the ready list that are considered
10002 for renaming in the selective scheduler.  The default value is 2.
10003 .IP "\fBsms-min-sc\fR" 4
10004 .IX Item "sms-min-sc"
10005 The minimum value of stage count that swing modulo scheduler
10006 generates.  The default value is 2.
10007 .IP "\fBmax-last-value-rtl\fR" 4
10008 .IX Item "max-last-value-rtl"
10009 The maximum size measured as number of RTLs that can be recorded in an expression
10010 in combiner for a pseudo register as last known value of that register.  The default
10011 is 10000.
10012 .IP "\fBmax-combine-insns\fR" 4
10013 .IX Item "max-combine-insns"
10014 The maximum number of instructions the \s-1RTL\s0 combiner tries to combine.
10015 The default value is 2 at \fB\-Og\fR and 4 otherwise.
10016 .IP "\fBinteger-share-limit\fR" 4
10017 .IX Item "integer-share-limit"
10018 Small integer constants can use a shared data structure, reducing the
10019 compiler's memory usage and increasing its speed.  This sets the maximum
10020 value of a shared integer constant.  The default value is 256.
10021 .IP "\fBssp-buffer-size\fR" 4
10022 .IX Item "ssp-buffer-size"
10023 The minimum size of buffers (i.e. arrays) that receive stack smashing
10024 protection when \fB\-fstack\-protection\fR is used.
10025 .IP "\fBmin-size-for-stack-sharing\fR" 4
10026 .IX Item "min-size-for-stack-sharing"
10027 The minimum size of variables taking part in stack slot sharing when not
10028 optimizing. The default value is 32.
10029 .IP "\fBmax-jump-thread-duplication-stmts\fR" 4
10030 .IX Item "max-jump-thread-duplication-stmts"
10031 Maximum number of statements allowed in a block that needs to be
10032 duplicated when threading jumps.
10033 .IP "\fBmax-fields-for-field-sensitive\fR" 4
10034 .IX Item "max-fields-for-field-sensitive"
10035 Maximum number of fields in a structure treated in
10036 a field sensitive manner during pointer analysis.  The default is zero
10037 for \fB\-O0\fR and \fB\-O1\fR,
10038 and 100 for \fB\-Os\fR, \fB\-O2\fR, and \fB\-O3\fR.
10039 .IP "\fBprefetch-latency\fR" 4
10040 .IX Item "prefetch-latency"
10041 Estimate on average number of instructions that are executed before
10042 prefetch finishes.  The distance prefetched ahead is proportional
10043 to this constant.  Increasing this number may also lead to less
10044 streams being prefetched (see \fBsimultaneous-prefetches\fR).
10045 .IP "\fBsimultaneous-prefetches\fR" 4
10046 .IX Item "simultaneous-prefetches"
10047 Maximum number of prefetches that can run at the same time.
10048 .IP "\fBl1\-cache\-line\-size\fR" 4
10049 .IX Item "l1-cache-line-size"
10050 The size of cache line in L1 cache, in bytes.
10051 .IP "\fBl1\-cache\-size\fR" 4
10052 .IX Item "l1-cache-size"
10053 The size of L1 cache, in kilobytes.
10054 .IP "\fBl2\-cache\-size\fR" 4
10055 .IX Item "l2-cache-size"
10056 The size of L2 cache, in kilobytes.
10057 .IP "\fBloop-interchange-max-num-stmts\fR" 4
10058 .IX Item "loop-interchange-max-num-stmts"
10059 The maximum number of stmts in a loop to be interchanged.
10060 .IP "\fBloop-interchange-stride-ratio\fR" 4
10061 .IX Item "loop-interchange-stride-ratio"
10062 The minimum ratio between stride of two loops for interchange to be profitable.
10063 .IP "\fBmin-insn-to-prefetch-ratio\fR" 4
10064 .IX Item "min-insn-to-prefetch-ratio"
10065 The minimum ratio between the number of instructions and the
10066 number of prefetches to enable prefetching in a loop.
10067 .IP "\fBprefetch-min-insn-to-mem-ratio\fR" 4
10068 .IX Item "prefetch-min-insn-to-mem-ratio"
10069 The minimum ratio between the number of instructions and the
10070 number of memory references to enable prefetching in a loop.
10071 .IP "\fBuse-canonical-types\fR" 4
10072 .IX Item "use-canonical-types"
10073 Whether the compiler should use the \*(L"canonical\*(R" type system.  By
10074 default, this should always be 1, which uses a more efficient internal
10075 mechanism for comparing types in \*(C+ and Objective\-\*(C+.  However, if
10076 bugs in the canonical type system are causing compilation failures,
10077 set this value to 0 to disable canonical types.
10078 .IP "\fBswitch-conversion-max-branch-ratio\fR" 4
10079 .IX Item "switch-conversion-max-branch-ratio"
10080 Switch initialization conversion refuses to create arrays that are
10081 bigger than \fBswitch-conversion-max-branch-ratio\fR times the number of
10082 branches in the switch.
10083 .IP "\fBmax-partial-antic-length\fR" 4
10084 .IX Item "max-partial-antic-length"
10085 Maximum length of the partial antic set computed during the tree
10086 partial redundancy elimination optimization (\fB\-ftree\-pre\fR) when
10087 optimizing at \fB\-O3\fR and above.  For some sorts of source code
10088 the enhanced partial redundancy elimination optimization can run away,
10089 consuming all of the memory available on the host machine.  This
10090 parameter sets a limit on the length of the sets that are computed,
10091 which prevents the runaway behavior.  Setting a value of 0 for
10092 this parameter allows an unlimited set length.
10093 .IP "\fBsccvn-max-scc-size\fR" 4
10094 .IX Item "sccvn-max-scc-size"
10095 Maximum size of a strongly connected component (\s-1SCC\s0) during \s-1SCCVN\s0
10096 processing.  If this limit is hit, \s-1SCCVN\s0 processing for the whole
10097 function is not done and optimizations depending on it are
10098 disabled.  The default maximum \s-1SCC\s0 size is 10000.
10099 .IP "\fBsccvn-max-alias-queries-per-access\fR" 4
10100 .IX Item "sccvn-max-alias-queries-per-access"
10101 Maximum number of alias-oracle queries we perform when looking for
10102 redundancies for loads and stores.  If this limit is hit the search
10103 is aborted and the load or store is not considered redundant.  The
10104 number of queries is algorithmically limited to the number of
10105 stores on all paths from the load to the function entry.
10106 The default maximum number of queries is 1000.
10107 .IP "\fBira-max-loops-num\fR" 4
10108 .IX Item "ira-max-loops-num"
10109 \&\s-1IRA\s0 uses regional register allocation by default.  If a function
10110 contains more loops than the number given by this parameter, only at most
10111 the given number of the most frequently-executed loops form regions
10112 for regional register allocation.  The default value of the
10113 parameter is 100.
10114 .IP "\fBira-max-conflict-table-size\fR" 4
10115 .IX Item "ira-max-conflict-table-size"
10116 Although \s-1IRA\s0 uses a sophisticated algorithm to compress the conflict
10117 table, the table can still require excessive amounts of memory for
10118 huge functions.  If the conflict table for a function could be more
10119 than the size in \s-1MB\s0 given by this parameter, the register allocator
10120 instead uses a faster, simpler, and lower-quality
10121 algorithm that does not require building a pseudo-register conflict table.  
10122 The default value of the parameter is 2000.
10123 .IP "\fBira-loop-reserved-regs\fR" 4
10124 .IX Item "ira-loop-reserved-regs"
10125 \&\s-1IRA\s0 can be used to evaluate more accurate register pressure in loops
10126 for decisions to move loop invariants (see \fB\-O3\fR).  The number
10127 of available registers reserved for some other purposes is given
10128 by this parameter.  The default value of the parameter is 2, which is
10129 the minimal number of registers needed by typical instructions.
10130 This value is the best found from numerous experiments.
10131 .IP "\fBlra-inheritance-ebb-probability-cutoff\fR" 4
10132 .IX Item "lra-inheritance-ebb-probability-cutoff"
10133 \&\s-1LRA\s0 tries to reuse values reloaded in registers in subsequent insns.
10134 This optimization is called inheritance.  \s-1EBB\s0 is used as a region to
10135 do this optimization.  The parameter defines a minimal fall-through
10136 edge probability in percentage used to add \s-1BB\s0 to inheritance \s-1EBB\s0 in
10137 \&\s-1LRA.\s0  The default value of the parameter is 40.  The value was chosen
10138 from numerous runs of \s-1SPEC2000\s0 on x86\-64.
10139 .IP "\fBloop-invariant-max-bbs-in-loop\fR" 4
10140 .IX Item "loop-invariant-max-bbs-in-loop"
10141 Loop invariant motion can be very expensive, both in compilation time and
10142 in amount of needed compile-time memory, with very large loops.  Loops
10143 with more basic blocks than this parameter won't have loop invariant
10144 motion optimization performed on them.  The default value of the
10145 parameter is 1000 for \fB\-O1\fR and 10000 for \fB\-O2\fR and above.
10146 .IP "\fBloop-max-datarefs-for-datadeps\fR" 4
10147 .IX Item "loop-max-datarefs-for-datadeps"
10148 Building data dependencies is expensive for very large loops.  This
10149 parameter limits the number of data references in loops that are
10150 considered for data dependence analysis.  These large loops are no
10151 handled by the optimizations using loop data dependencies.
10152 The default value is 1000.
10153 .IP "\fBmax-vartrack-size\fR" 4
10154 .IX Item "max-vartrack-size"
10155 Sets a maximum number of hash table slots to use during variable
10156 tracking dataflow analysis of any function.  If this limit is exceeded
10157 with variable tracking at assignments enabled, analysis for that
10158 function is retried without it, after removing all debug insns from
10159 the function.  If the limit is exceeded even without debug insns, var
10160 tracking analysis is completely disabled for the function.  Setting
10161 the parameter to zero makes it unlimited.
10162 .IP "\fBmax-vartrack-expr-depth\fR" 4
10163 .IX Item "max-vartrack-expr-depth"
10164 Sets a maximum number of recursion levels when attempting to map
10165 variable names or debug temporaries to value expressions.  This trades
10166 compilation time for more complete debug information.  If this is set too
10167 low, value expressions that are available and could be represented in
10168 debug information may end up not being used; setting this higher may
10169 enable the compiler to find more complex debug expressions, but compile
10170 time and memory use may grow.  The default is 12.
10171 .IP "\fBmax-debug-marker-count\fR" 4
10172 .IX Item "max-debug-marker-count"
10173 Sets a threshold on the number of debug markers (e.g. begin stmt
10174 markers) to avoid complexity explosion at inlining or expanding to \s-1RTL.\s0
10175 If a function has more such gimple stmts than the set limit, such stmts
10176 will be dropped from the inlined copy of a function, and from its \s-1RTL\s0
10177 expansion.  The default is 100000.
10178 .IP "\fBmin-nondebug-insn-uid\fR" 4
10179 .IX Item "min-nondebug-insn-uid"
10180 Use uids starting at this parameter for nondebug insns.  The range below
10181 the parameter is reserved exclusively for debug insns created by
10182 \&\fB\-fvar\-tracking\-assignments\fR, but debug insns may get
10183 (non-overlapping) uids above it if the reserved range is exhausted.
10184 .IP "\fBipa-sra-ptr-growth-factor\fR" 4
10185 .IX Item "ipa-sra-ptr-growth-factor"
10186 IPA-SRA replaces a pointer to an aggregate with one or more new
10187 parameters only when their cumulative size is less or equal to
10188 \&\fBipa-sra-ptr-growth-factor\fR times the size of the original
10189 pointer parameter.
10190 .IP "\fBsra-max-scalarization-size-Ospeed\fR" 4
10191 .IX Item "sra-max-scalarization-size-Ospeed"
10192 .PD 0
10193 .IP "\fBsra-max-scalarization-size-Osize\fR" 4
10194 .IX Item "sra-max-scalarization-size-Osize"
10195 .PD
10196 The two Scalar Reduction of Aggregates passes (\s-1SRA\s0 and IPA-SRA) aim to
10197 replace scalar parts of aggregates with uses of independent scalar
10198 variables.  These parameters control the maximum size, in storage units,
10199 of aggregate which is considered for replacement when compiling for
10200 speed
10201 (\fBsra-max-scalarization-size-Ospeed\fR) or size
10202 (\fBsra-max-scalarization-size-Osize\fR) respectively.
10203 .IP "\fBtm-max-aggregate-size\fR" 4
10204 .IX Item "tm-max-aggregate-size"
10205 When making copies of thread-local variables in a transaction, this
10206 parameter specifies the size in bytes after which variables are
10207 saved with the logging functions as opposed to save/restore code
10208 sequence pairs.  This option only applies when using
10209 \&\fB\-fgnu\-tm\fR.
10210 .IP "\fBgraphite-max-nb-scop-params\fR" 4
10211 .IX Item "graphite-max-nb-scop-params"
10212 To avoid exponential effects in the Graphite loop transforms, the
10213 number of parameters in a Static Control Part (SCoP) is bounded.  The
10214 default value is 10 parameters, a value of zero can be used to lift
10215 the bound.  A variable whose value is unknown at compilation time and
10216 defined outside a SCoP is a parameter of the SCoP.
10217 .IP "\fBloop-block-tile-size\fR" 4
10218 .IX Item "loop-block-tile-size"
10219 Loop blocking or strip mining transforms, enabled with
10220 \&\fB\-floop\-block\fR or \fB\-floop\-strip\-mine\fR, strip mine each
10221 loop in the loop nest by a given number of iterations.  The strip
10222 length can be changed using the \fBloop-block-tile-size\fR
10223 parameter.  The default value is 51 iterations.
10224 .IP "\fBloop-unroll-jam-size\fR" 4
10225 .IX Item "loop-unroll-jam-size"
10226 Specify the unroll factor for the \fB\-floop\-unroll\-and\-jam\fR option.  The 
10227 default value is 4.
10228 .IP "\fBloop-unroll-jam-depth\fR" 4
10229 .IX Item "loop-unroll-jam-depth"
10230 Specify the dimension to be unrolled (counting from the most inner loop)
10231 for the  \fB\-floop\-unroll\-and\-jam\fR.  The default value is 2.
10232 .IP "\fBipa-cp-value-list-size\fR" 4
10233 .IX Item "ipa-cp-value-list-size"
10234 IPA-CP attempts to track all possible values and types passed to a function's
10235 parameter in order to propagate them and perform devirtualization.
10236 \&\fBipa-cp-value-list-size\fR is the maximum number of values and types it
10237 stores per one formal parameter of a function.
10238 .IP "\fBipa-cp-eval-threshold\fR" 4
10239 .IX Item "ipa-cp-eval-threshold"
10240 IPA-CP calculates its own score of cloning profitability heuristics
10241 and performs those cloning opportunities with scores that exceed
10242 \&\fBipa-cp-eval-threshold\fR.
10243 .IP "\fBipa-cp-recursion-penalty\fR" 4
10244 .IX Item "ipa-cp-recursion-penalty"
10245 Percentage penalty the recursive functions will receive when they
10246 are evaluated for cloning.
10247 .IP "\fBipa-cp-single-call-penalty\fR" 4
10248 .IX Item "ipa-cp-single-call-penalty"
10249 Percentage penalty functions containing a single call to another
10250 function will receive when they are evaluated for cloning.
10251 .IP "\fBipa-max-agg-items\fR" 4
10252 .IX Item "ipa-max-agg-items"
10253 IPA-CP is also capable to propagate a number of scalar values passed
10254 in an aggregate. \fBipa-max-agg-items\fR controls the maximum
10255 number of such values per one parameter.
10256 .IP "\fBipa-cp-loop-hint-bonus\fR" 4
10257 .IX Item "ipa-cp-loop-hint-bonus"
10258 When IPA-CP determines that a cloning candidate would make the number
10259 of iterations of a loop known, it adds a bonus of
10260 \&\fBipa-cp-loop-hint-bonus\fR to the profitability score of
10261 the candidate.
10262 .IP "\fBipa-cp-array-index-hint-bonus\fR" 4
10263 .IX Item "ipa-cp-array-index-hint-bonus"
10264 When IPA-CP determines that a cloning candidate would make the index of
10265 an array access known, it adds a bonus of
10266 \&\fBipa-cp-array-index-hint-bonus\fR to the profitability
10267 score of the candidate.
10268 .IP "\fBipa-max-aa-steps\fR" 4
10269 .IX Item "ipa-max-aa-steps"
10270 During its analysis of function bodies, IPA-CP employs alias analysis
10271 in order to track values pointed to by function parameters.  In order
10272 not spend too much time analyzing huge functions, it gives up and
10273 consider all memory clobbered after examining
10274 \&\fBipa-max-aa-steps\fR statements modifying memory.
10275 .IP "\fBlto-partitions\fR" 4
10276 .IX Item "lto-partitions"
10277 Specify desired number of partitions produced during \s-1WHOPR\s0 compilation.
10278 The number of partitions should exceed the number of CPUs used for compilation.
10279 The default value is 32.
10280 .IP "\fBlto-min-partition\fR" 4
10281 .IX Item "lto-min-partition"
10282 Size of minimal partition for \s-1WHOPR\s0 (in estimated instructions).
10283 This prevents expenses of splitting very small programs into too many
10284 partitions.
10285 .IP "\fBlto-max-partition\fR" 4
10286 .IX Item "lto-max-partition"
10287 Size of max partition for \s-1WHOPR\s0 (in estimated instructions).
10288 to provide an upper bound for individual size of partition.
10289 Meant to be used only with balanced partitioning.
10290 .IP "\fBcxx-max-namespaces-for-diagnostic-help\fR" 4
10291 .IX Item "cxx-max-namespaces-for-diagnostic-help"
10292 The maximum number of namespaces to consult for suggestions when \*(C+
10293 name lookup fails for an identifier.  The default is 1000.
10294 .IP "\fBsink-frequency-threshold\fR" 4
10295 .IX Item "sink-frequency-threshold"
10296 The maximum relative execution frequency (in percents) of the target block
10297 relative to a statement's original block to allow statement sinking of a
10298 statement.  Larger numbers result in more aggressive statement sinking.
10299 The default value is 75.  A small positive adjustment is applied for
10300 statements with memory operands as those are even more profitable so sink.
10301 .IP "\fBmax-stores-to-sink\fR" 4
10302 .IX Item "max-stores-to-sink"
10303 The maximum number of conditional store pairs that can be sunk.  Set to 0
10304 if either vectorization (\fB\-ftree\-vectorize\fR) or if-conversion
10305 (\fB\-ftree\-loop\-if\-convert\fR) is disabled.  The default is 2.
10306 .IP "\fBallow-store-data-races\fR" 4
10307 .IX Item "allow-store-data-races"
10308 Allow optimizers to introduce new data races on stores.
10309 Set to 1 to allow, otherwise to 0.  This option is enabled by default
10310 at optimization level \fB\-Ofast\fR.
10311 .IP "\fBcase-values-threshold\fR" 4
10312 .IX Item "case-values-threshold"
10313 The smallest number of different values for which it is best to use a
10314 jump-table instead of a tree of conditional branches.  If the value is
10315 0, use the default for the machine.  The default is 0.
10316 .IP "\fBtree-reassoc-width\fR" 4
10317 .IX Item "tree-reassoc-width"
10318 Set the maximum number of instructions executed in parallel in
10319 reassociated tree. This parameter overrides target dependent
10320 heuristics used by default if has non zero value.
10321 .IP "\fBsched-pressure-algorithm\fR" 4
10322 .IX Item "sched-pressure-algorithm"
10323 Choose between the two available implementations of
10324 \&\fB\-fsched\-pressure\fR.  Algorithm 1 is the original implementation
10325 and is the more likely to prevent instructions from being reordered.
10326 Algorithm 2 was designed to be a compromise between the relatively
10327 conservative approach taken by algorithm 1 and the rather aggressive
10328 approach taken by the default scheduler.  It relies more heavily on
10329 having a regular register file and accurate register pressure classes.
10330 See \fIhaifa\-sched.c\fR in the \s-1GCC\s0 sources for more details.
10331 .Sp
10332 The default choice depends on the target.
10333 .IP "\fBmax-slsr-cand-scan\fR" 4
10334 .IX Item "max-slsr-cand-scan"
10335 Set the maximum number of existing candidates that are considered when
10336 seeking a basis for a new straight-line strength reduction candidate.
10337 .IP "\fBasan-globals\fR" 4
10338 .IX Item "asan-globals"
10339 Enable buffer overflow detection for global objects.  This kind
10340 of protection is enabled by default if you are using
10341 \&\fB\-fsanitize=address\fR option.
10342 To disable global objects protection use \fB\-\-param asan\-globals=0\fR.
10343 .IP "\fBasan-stack\fR" 4
10344 .IX Item "asan-stack"
10345 Enable buffer overflow detection for stack objects.  This kind of
10346 protection is enabled by default when using \fB\-fsanitize=address\fR.
10347 To disable stack protection use \fB\-\-param asan\-stack=0\fR option.
10348 .IP "\fBasan-instrument-reads\fR" 4
10349 .IX Item "asan-instrument-reads"
10350 Enable buffer overflow detection for memory reads.  This kind of
10351 protection is enabled by default when using \fB\-fsanitize=address\fR.
10352 To disable memory reads protection use
10353 \&\fB\-\-param asan\-instrument\-reads=0\fR.
10354 .IP "\fBasan-instrument-writes\fR" 4
10355 .IX Item "asan-instrument-writes"
10356 Enable buffer overflow detection for memory writes.  This kind of
10357 protection is enabled by default when using \fB\-fsanitize=address\fR.
10358 To disable memory writes protection use
10359 \&\fB\-\-param asan\-instrument\-writes=0\fR option.
10360 .IP "\fBasan-memintrin\fR" 4
10361 .IX Item "asan-memintrin"
10362 Enable detection for built-in functions.  This kind of protection
10363 is enabled by default when using \fB\-fsanitize=address\fR.
10364 To disable built-in functions protection use
10365 \&\fB\-\-param asan\-memintrin=0\fR.
10366 .IP "\fBasan-use-after-return\fR" 4
10367 .IX Item "asan-use-after-return"
10368 Enable detection of use-after-return.  This kind of protection
10369 is enabled by default when using the \fB\-fsanitize=address\fR option.
10370 To disable it use \fB\-\-param asan\-use\-after\-return=0\fR.
10371 .Sp
10372 Note: By default the check is disabled at run time.  To enable it,
10373 add \f(CW\*(C`detect_stack_use_after_return=1\*(C'\fR to the environment variable
10374 \&\fB\s-1ASAN_OPTIONS\s0\fR.
10375 .IP "\fBasan-instrumentation-with-call-threshold\fR" 4
10376 .IX Item "asan-instrumentation-with-call-threshold"
10377 If number of memory accesses in function being instrumented
10378 is greater or equal to this number, use callbacks instead of inline checks.
10379 E.g. to disable inline code use
10380 \&\fB\-\-param asan\-instrumentation\-with\-call\-threshold=0\fR.
10381 .IP "\fBuse-after-scope-direct-emission-threshold\fR" 4
10382 .IX Item "use-after-scope-direct-emission-threshold"
10383 If the size of a local variable in bytes is smaller or equal to this
10384 number, directly poison (or unpoison) shadow memory instead of using
10385 run-time callbacks.  The default value is 256.
10386 .IP "\fBchkp-max-ctor-size\fR" 4
10387 .IX Item "chkp-max-ctor-size"
10388 Static constructors generated by Pointer Bounds Checker may become very
10389 large and significantly increase compile time at optimization level
10390 \&\fB\-O1\fR and higher.  This parameter is a maximum number of statements
10391 in a single generated constructor.  Default value is 5000.
10392 .IP "\fBmax-fsm-thread-path-insns\fR" 4
10393 .IX Item "max-fsm-thread-path-insns"
10394 Maximum number of instructions to copy when duplicating blocks on a
10395 finite state automaton jump thread path.  The default is 100.
10396 .IP "\fBmax-fsm-thread-length\fR" 4
10397 .IX Item "max-fsm-thread-length"
10398 Maximum number of basic blocks on a finite state automaton jump thread
10399 path.  The default is 10.
10400 .IP "\fBmax-fsm-thread-paths\fR" 4
10401 .IX Item "max-fsm-thread-paths"
10402 Maximum number of new jump thread paths to create for a finite state
10403 automaton.  The default is 50.
10404 .IP "\fBparloops-chunk-size\fR" 4
10405 .IX Item "parloops-chunk-size"
10406 Chunk size of omp schedule for loops parallelized by parloops.  The default
10407 is 0.
10408 .IP "\fBparloops-schedule\fR" 4
10409 .IX Item "parloops-schedule"
10410 Schedule type of omp schedule for loops parallelized by parloops (static,
10411 dynamic, guided, auto, runtime).  The default is static.
10412 .IP "\fBparloops-min-per-thread\fR" 4
10413 .IX Item "parloops-min-per-thread"
10414 The minimum number of iterations per thread of an innermost parallelized
10415 loop for which the parallelized variant is prefered over the single threaded
10416 one.  The default is 100.  Note that for a parallelized loop nest the
10417 minimum number of iterations of the outermost loop per thread is two.
10418 .IP "\fBmax-ssa-name-query-depth\fR" 4
10419 .IX Item "max-ssa-name-query-depth"
10420 Maximum depth of recursion when querying properties of \s-1SSA\s0 names in things
10421 like fold routines.  One level of recursion corresponds to following a
10422 use-def chain.
10423 .IP "\fBhsa-gen-debug-stores\fR" 4
10424 .IX Item "hsa-gen-debug-stores"
10425 Enable emission of special debug stores within \s-1HSA\s0 kernels which are
10426 then read and reported by libgomp plugin.  Generation of these stores
10427 is disabled by default, use \fB\-\-param hsa\-gen\-debug\-stores=1\fR to
10428 enable it.
10429 .IP "\fBmax-speculative-devirt-maydefs\fR" 4
10430 .IX Item "max-speculative-devirt-maydefs"
10431 The maximum number of may-defs we analyze when looking for a must-def
10432 specifying the dynamic type of an object that invokes a virtual call
10433 we may be able to devirtualize speculatively.
10434 .IP "\fBmax-vrp-switch-assertions\fR" 4
10435 .IX Item "max-vrp-switch-assertions"
10436 The maximum number of assertions to add along the default edge of a switch
10437 statement during \s-1VRP.\s0  The default is 10.
10438 .IP "\fBunroll-jam-min-percent\fR" 4
10439 .IX Item "unroll-jam-min-percent"
10440 The minimum percentage of memory references that must be optimized
10441 away for the unroll-and-jam transformation to be considered profitable.
10442 .IP "\fBunroll-jam-max-unroll\fR" 4
10443 .IX Item "unroll-jam-max-unroll"
10444 The maximum number of times the outer loop should be unrolled by
10445 the unroll-and-jam transformation.
10446 .RE
10447 .RS 4
10448 .RE
10449 .SS "Program Instrumentation Options"
10450 .IX Subsection "Program Instrumentation Options"
10451 \&\s-1GCC\s0 supports a number of command-line options that control adding
10452 run-time instrumentation to the code it normally generates.  
10453 For example, one purpose of instrumentation is collect profiling
10454 statistics for use in finding program hot spots, code coverage
10455 analysis, or profile-guided optimizations.
10456 Another class of program instrumentation is adding run-time checking 
10457 to detect programming errors like invalid pointer
10458 dereferences or out-of-bounds array accesses, as well as deliberately
10459 hostile attacks such as stack smashing or \*(C+ vtable hijacking.
10460 There is also a general hook which can be used to implement other
10461 forms of tracing or function-level instrumentation for debug or
10462 program analysis purposes.
10463 .IP "\fB\-p\fR" 4
10464 .IX Item "-p"
10465 Generate extra code to write profile information suitable for the
10466 analysis program \fBprof\fR.  You must use this option when compiling
10467 the source files you want data about, and you must also use it when
10468 linking.
10469 .IP "\fB\-pg\fR" 4
10470 .IX Item "-pg"
10471 Generate extra code to write profile information suitable for the
10472 analysis program \fBgprof\fR.  You must use this option when compiling
10473 the source files you want data about, and you must also use it when
10474 linking.
10475 .IP "\fB\-fprofile\-arcs\fR" 4
10476 .IX Item "-fprofile-arcs"
10477 Add code so that program flow \fIarcs\fR are instrumented.  During
10478 execution the program records how many times each branch and call is
10479 executed and how many times it is taken or returns.  On targets that support
10480 constructors with priority support, profiling properly handles constructors,
10481 destructors and \*(C+ constructors (and destructors) of classes which are used
10482 as a type of a global variable.
10483 .Sp
10484 When the compiled
10485 program exits it saves this data to a file called
10486 \&\fI\fIauxname\fI.gcda\fR for each source file.  The data may be used for
10487 profile-directed optimizations (\fB\-fbranch\-probabilities\fR), or for
10488 test coverage analysis (\fB\-ftest\-coverage\fR).  Each object file's
10489 \&\fIauxname\fR is generated from the name of the output file, if
10490 explicitly specified and it is not the final executable, otherwise it is
10491 the basename of the source file.  In both cases any suffix is removed
10492 (e.g. \fIfoo.gcda\fR for input file \fIdir/foo.c\fR, or
10493 \&\fIdir/foo.gcda\fR for output file specified as \fB\-o dir/foo.o\fR).
10494 .IP "\fB\-\-coverage\fR" 4
10495 .IX Item "--coverage"
10496 This option is used to compile and link code instrumented for coverage
10497 analysis.  The option is a synonym for \fB\-fprofile\-arcs\fR
10498 \&\fB\-ftest\-coverage\fR (when compiling) and \fB\-lgcov\fR (when
10499 linking).  See the documentation for those options for more details.
10500 .RS 4
10501 .IP "*" 4
10502 Compile the source files with \fB\-fprofile\-arcs\fR plus optimization
10503 and code generation options.  For test coverage analysis, use the
10504 additional \fB\-ftest\-coverage\fR option.  You do not need to profile
10505 every source file in a program.
10506 .IP "*" 4
10507 Compile the source files additionally with \fB\-fprofile\-abs\-path\fR
10508 to create absolute path names in the \fI.gcno\fR files.  This allows
10509 \&\fBgcov\fR to find the correct sources in projects where compilations
10510 occur with different working directories.
10511 .IP "*" 4
10512 Link your object files with \fB\-lgcov\fR or \fB\-fprofile\-arcs\fR
10513 (the latter implies the former).
10514 .IP "*" 4
10515 Run the program on a representative workload to generate the arc profile
10516 information.  This may be repeated any number of times.  You can run
10517 concurrent instances of your program, and provided that the file system
10518 supports locking, the data files will be correctly updated.  Unless
10519 a strict \s-1ISO C\s0 dialect option is in effect, \f(CW\*(C`fork\*(C'\fR calls are
10520 detected and correctly handled without double counting.
10521 .IP "*" 4
10522 For profile-directed optimizations, compile the source files again with
10523 the same optimization and code generation options plus
10524 \&\fB\-fbranch\-probabilities\fR.
10525 .IP "*" 4
10526 For test coverage analysis, use \fBgcov\fR to produce human readable
10527 information from the \fI.gcno\fR and \fI.gcda\fR files.  Refer to the
10528 \&\fBgcov\fR documentation for further information.
10529 .RE
10530 .RS 4
10531 .Sp
10532 With \fB\-fprofile\-arcs\fR, for each function of your program \s-1GCC\s0
10533 creates a program flow graph, then finds a spanning tree for the graph.
10534 Only arcs that are not on the spanning tree have to be instrumented: the
10535 compiler adds code to count the number of times that these arcs are
10536 executed.  When an arc is the only exit or only entrance to a block, the
10537 instrumentation code can be added to the block; otherwise, a new basic
10538 block must be created to hold the instrumentation code.
10539 .RE
10540 .IP "\fB\-ftest\-coverage\fR" 4
10541 .IX Item "-ftest-coverage"
10542 Produce a notes file that the \fBgcov\fR code-coverage utility can use to
10543 show program coverage.  Each source file's note file is called
10544 \&\fI\fIauxname\fI.gcno\fR.  Refer to the \fB\-fprofile\-arcs\fR option
10545 above for a description of \fIauxname\fR and instructions on how to
10546 generate test coverage data.  Coverage data matches the source files
10547 more closely if you do not optimize.
10548 .IP "\fB\-fprofile\-abs\-path\fR" 4
10549 .IX Item "-fprofile-abs-path"
10550 Automatically convert relative source file names to absolute path names
10551 in the \fI.gcno\fR files.  This allows \fBgcov\fR to find the correct
10552 sources in projects where compilations occur with different working
10553 directories.
10554 .IP "\fB\-fprofile\-dir=\fR\fIpath\fR" 4
10555 .IX Item "-fprofile-dir=path"
10556 Set the directory to search for the profile data files in to \fIpath\fR.
10557 This option affects only the profile data generated by
10558 \&\fB\-fprofile\-generate\fR, \fB\-ftest\-coverage\fR, \fB\-fprofile\-arcs\fR
10559 and used by \fB\-fprofile\-use\fR and \fB\-fbranch\-probabilities\fR
10560 and its related options.  Both absolute and relative paths can be used.
10561 By default, \s-1GCC\s0 uses the current directory as \fIpath\fR, thus the
10562 profile data file appears in the same directory as the object file.
10563 .IP "\fB\-fprofile\-generate\fR" 4
10564 .IX Item "-fprofile-generate"
10565 .PD 0
10566 .IP "\fB\-fprofile\-generate=\fR\fIpath\fR" 4
10567 .IX Item "-fprofile-generate=path"
10568 .PD
10569 Enable options usually used for instrumenting application to produce
10570 profile useful for later recompilation with profile feedback based
10571 optimization.  You must use \fB\-fprofile\-generate\fR both when
10572 compiling and when linking your program.
10573 .Sp
10574 The following options are enabled: \fB\-fprofile\-arcs\fR, \fB\-fprofile\-values\fR, \fB\-fvpt\fR.
10575 .Sp
10576 If \fIpath\fR is specified, \s-1GCC\s0 looks at the \fIpath\fR to find
10577 the profile feedback data files. See \fB\-fprofile\-dir\fR.
10578 .Sp
10579 To optimize the program based on the collected profile information, use
10580 \&\fB\-fprofile\-use\fR.
10581 .IP "\fB\-fprofile\-update=\fR\fImethod\fR" 4
10582 .IX Item "-fprofile-update=method"
10583 Alter the update method for an application instrumented for profile
10584 feedback based optimization.  The \fImethod\fR argument should be one of
10585 \&\fBsingle\fR, \fBatomic\fR or \fBprefer-atomic\fR.
10586 The first one is useful for single-threaded applications,
10587 while the second one prevents profile corruption by emitting thread-safe code.
10588 .Sp
10589 \&\fBWarning:\fR When an application does not properly join all threads
10590 (or creates an detached thread), a profile file can be still corrupted.
10591 .Sp
10592 Using \fBprefer-atomic\fR would be transformed either to \fBatomic\fR,
10593 when supported by a target, or to \fBsingle\fR otherwise.  The \s-1GCC\s0 driver
10594 automatically selects \fBprefer-atomic\fR when \fB\-pthread\fR
10595 is present in the command line.
10596 .IP "\fB\-fsanitize=address\fR" 4
10597 .IX Item "-fsanitize=address"
10598 Enable AddressSanitizer, a fast memory error detector.
10599 Memory access instructions are instrumented to detect
10600 out-of-bounds and use-after-free bugs.
10601 The option enables \fB\-fsanitize\-address\-use\-after\-scope\fR.
10602 See <\fBhttps://github.com/google/sanitizers/wiki/AddressSanitizer\fR> for
10603 more details.  The run-time behavior can be influenced using the
10604 \&\fB\s-1ASAN_OPTIONS\s0\fR environment variable.  When set to \f(CW\*(C`help=1\*(C'\fR,
10605 the available options are shown at startup of the instrumented program.  See
10606 <\fBhttps://github.com/google/sanitizers/wiki/AddressSanitizerFlags#run\-time\-flags\fR>
10607 for a list of supported options.
10608 The option cannot be combined with \fB\-fsanitize=thread\fR
10609 and/or \fB\-fcheck\-pointer\-bounds\fR.
10610 .IP "\fB\-fsanitize=kernel\-address\fR" 4
10611 .IX Item "-fsanitize=kernel-address"
10612 Enable AddressSanitizer for Linux kernel.
10613 See <\fBhttps://github.com/google/kasan/wiki\fR> for more details.
10614 The option cannot be combined with \fB\-fcheck\-pointer\-bounds\fR.
10615 .IP "\fB\-fsanitize=pointer\-compare\fR" 4
10616 .IX Item "-fsanitize=pointer-compare"
10617 Instrument comparison operation (<, <=, >, >=) with pointer operands.
10618 The option must be combined with either \fB\-fsanitize=kernel\-address\fR or
10619 \&\fB\-fsanitize=address\fR
10620 The option cannot be combined with \fB\-fsanitize=thread\fR
10621 and/or \fB\-fcheck\-pointer\-bounds\fR.
10622 Note: By default the check is disabled at run time.  To enable it,
10623 add \f(CW\*(C`detect_invalid_pointer_pairs=2\*(C'\fR to the environment variable
10624 \&\fB\s-1ASAN_OPTIONS\s0\fR. Using \f(CW\*(C`detect_invalid_pointer_pairs=1\*(C'\fR detects
10625 invalid operation only when both pointers are non-null.
10626 .IP "\fB\-fsanitize=pointer\-subtract\fR" 4
10627 .IX Item "-fsanitize=pointer-subtract"
10628 Instrument subtraction with pointer operands.
10629 The option must be combined with either \fB\-fsanitize=kernel\-address\fR or
10630 \&\fB\-fsanitize=address\fR
10631 The option cannot be combined with \fB\-fsanitize=thread\fR
10632 and/or \fB\-fcheck\-pointer\-bounds\fR.
10633 Note: By default the check is disabled at run time.  To enable it,
10634 add \f(CW\*(C`detect_invalid_pointer_pairs=2\*(C'\fR to the environment variable
10635 \&\fB\s-1ASAN_OPTIONS\s0\fR. Using \f(CW\*(C`detect_invalid_pointer_pairs=1\*(C'\fR detects
10636 invalid operation only when both pointers are non-null.
10637 .IP "\fB\-fsanitize=thread\fR" 4
10638 .IX Item "-fsanitize=thread"
10639 Enable ThreadSanitizer, a fast data race detector.
10640 Memory access instructions are instrumented to detect
10641 data race bugs.  See <\fBhttps://github.com/google/sanitizers/wiki#threadsanitizer\fR> for more
10642 details. The run-time behavior can be influenced using the \fB\s-1TSAN_OPTIONS\s0\fR
10643 environment variable; see
10644 <\fBhttps://github.com/google/sanitizers/wiki/ThreadSanitizerFlags\fR> for a list of
10645 supported options.
10646 The option cannot be combined with \fB\-fsanitize=address\fR,
10647 \&\fB\-fsanitize=leak\fR and/or \fB\-fcheck\-pointer\-bounds\fR.
10648 .Sp
10649 Note that sanitized atomic builtins cannot throw exceptions when
10650 operating on invalid memory addresses with non-call exceptions
10651 (\fB\-fnon\-call\-exceptions\fR).
10652 .IP "\fB\-fsanitize=leak\fR" 4
10653 .IX Item "-fsanitize=leak"
10654 Enable LeakSanitizer, a memory leak detector.
10655 This option only matters for linking of executables and
10656 the executable is linked against a library that overrides \f(CW\*(C`malloc\*(C'\fR
10657 and other allocator functions.  See
10658 <\fBhttps://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer\fR> for more
10659 details.  The run-time behavior can be influenced using the
10660 \&\fB\s-1LSAN_OPTIONS\s0\fR environment variable.
10661 The option cannot be combined with \fB\-fsanitize=thread\fR.
10662 .IP "\fB\-fsanitize=undefined\fR" 4
10663 .IX Item "-fsanitize=undefined"
10664 Enable UndefinedBehaviorSanitizer, a fast undefined behavior detector.
10665 Various computations are instrumented to detect undefined behavior
10666 at runtime.  Current suboptions are:
10667 .RS 4
10668 .IP "\fB\-fsanitize=shift\fR" 4
10669 .IX Item "-fsanitize=shift"
10670 This option enables checking that the result of a shift operation is
10671 not undefined.  Note that what exactly is considered undefined differs
10672 slightly between C and \*(C+, as well as between \s-1ISO C90\s0 and C99, etc.
10673 This option has two suboptions, \fB\-fsanitize=shift\-base\fR and
10674 \&\fB\-fsanitize=shift\-exponent\fR.
10675 .IP "\fB\-fsanitize=shift\-exponent\fR" 4
10676 .IX Item "-fsanitize=shift-exponent"
10677 This option enables checking that the second argument of a shift operation
10678 is not negative and is smaller than the precision of the promoted first
10679 argument.
10680 .IP "\fB\-fsanitize=shift\-base\fR" 4
10681 .IX Item "-fsanitize=shift-base"
10682 If the second argument of a shift operation is within range, check that the
10683 result of a shift operation is not undefined.  Note that what exactly is
10684 considered undefined differs slightly between C and \*(C+, as well as between
10685 \&\s-1ISO C90\s0 and C99, etc.
10686 .IP "\fB\-fsanitize=integer\-divide\-by\-zero\fR" 4
10687 .IX Item "-fsanitize=integer-divide-by-zero"
10688 Detect integer division by zero as well as \f(CW\*(C`INT_MIN / \-1\*(C'\fR division.
10689 .IP "\fB\-fsanitize=unreachable\fR" 4
10690 .IX Item "-fsanitize=unreachable"
10691 With this option, the compiler turns the \f(CW\*(C`_\|_builtin_unreachable\*(C'\fR
10692 call into a diagnostics message call instead.  When reaching the
10693 \&\f(CW\*(C`_\|_builtin_unreachable\*(C'\fR call, the behavior is undefined.
10694 .IP "\fB\-fsanitize=vla\-bound\fR" 4
10695 .IX Item "-fsanitize=vla-bound"
10696 This option instructs the compiler to check that the size of a variable
10697 length array is positive.
10698 .IP "\fB\-fsanitize=null\fR" 4
10699 .IX Item "-fsanitize=null"
10700 This option enables pointer checking.  Particularly, the application
10701 built with this option turned on will issue an error message when it
10702 tries to dereference a \s-1NULL\s0 pointer, or if a reference (possibly an
10703 rvalue reference) is bound to a \s-1NULL\s0 pointer, or if a method is invoked
10704 on an object pointed by a \s-1NULL\s0 pointer.
10705 .IP "\fB\-fsanitize=return\fR" 4
10706 .IX Item "-fsanitize=return"
10707 This option enables return statement checking.  Programs
10708 built with this option turned on will issue an error message
10709 when the end of a non-void function is reached without actually
10710 returning a value.  This option works in \*(C+ only.
10711 .IP "\fB\-fsanitize=signed\-integer\-overflow\fR" 4
10712 .IX Item "-fsanitize=signed-integer-overflow"
10713 This option enables signed integer overflow checking.  We check that
10714 the result of \f(CW\*(C`+\*(C'\fR, \f(CW\*(C`*\*(C'\fR, and both unary and binary \f(CW\*(C`\-\*(C'\fR
10715 does not overflow in the signed arithmetics.  Note, integer promotion
10716 rules must be taken into account.  That is, the following is not an
10717 overflow:
10718 .Sp
10719 .Vb 2
10720 \&        signed char a = SCHAR_MAX;
10721 \&        a++;
10722 .Ve
10723 .IP "\fB\-fsanitize=bounds\fR" 4
10724 .IX Item "-fsanitize=bounds"
10725 This option enables instrumentation of array bounds.  Various out of bounds
10726 accesses are detected.  Flexible array members, flexible array member-like
10727 arrays, and initializers of variables with static storage are not instrumented.
10728 The option cannot be combined with \fB\-fcheck\-pointer\-bounds\fR.
10729 .IP "\fB\-fsanitize=bounds\-strict\fR" 4
10730 .IX Item "-fsanitize=bounds-strict"
10731 This option enables strict instrumentation of array bounds.  Most out of bounds
10732 accesses are detected, including flexible array members and flexible array
10733 member-like arrays.  Initializers of variables with static storage are not
10734 instrumented.  The option cannot be combined
10735 with \fB\-fcheck\-pointer\-bounds\fR.
10736 .IP "\fB\-fsanitize=alignment\fR" 4
10737 .IX Item "-fsanitize=alignment"
10738 This option enables checking of alignment of pointers when they are
10739 dereferenced, or when a reference is bound to insufficiently aligned target,
10740 or when a method or constructor is invoked on insufficiently aligned object.
10741 .IP "\fB\-fsanitize=object\-size\fR" 4
10742 .IX Item "-fsanitize=object-size"
10743 This option enables instrumentation of memory references using the
10744 \&\f(CW\*(C`_\|_builtin_object_size\*(C'\fR function.  Various out of bounds pointer
10745 accesses are detected.
10746 .IP "\fB\-fsanitize=float\-divide\-by\-zero\fR" 4
10747 .IX Item "-fsanitize=float-divide-by-zero"
10748 Detect floating-point division by zero.  Unlike other similar options,
10749 \&\fB\-fsanitize=float\-divide\-by\-zero\fR is not enabled by
10750 \&\fB\-fsanitize=undefined\fR, since floating-point division by zero can
10751 be a legitimate way of obtaining infinities and NaNs.
10752 .IP "\fB\-fsanitize=float\-cast\-overflow\fR" 4
10753 .IX Item "-fsanitize=float-cast-overflow"
10754 This option enables floating-point type to integer conversion checking.
10755 We check that the result of the conversion does not overflow.
10756 Unlike other similar options, \fB\-fsanitize=float\-cast\-overflow\fR is
10757 not enabled by \fB\-fsanitize=undefined\fR.
10758 This option does not work well with \f(CW\*(C`FE_INVALID\*(C'\fR exceptions enabled.
10759 .IP "\fB\-fsanitize=nonnull\-attribute\fR" 4
10760 .IX Item "-fsanitize=nonnull-attribute"
10761 This option enables instrumentation of calls, checking whether null values
10762 are not passed to arguments marked as requiring a non-null value by the
10763 \&\f(CW\*(C`nonnull\*(C'\fR function attribute.
10764 .IP "\fB\-fsanitize=returns\-nonnull\-attribute\fR" 4
10765 .IX Item "-fsanitize=returns-nonnull-attribute"
10766 This option enables instrumentation of return statements in functions
10767 marked with \f(CW\*(C`returns_nonnull\*(C'\fR function attribute, to detect returning
10768 of null values from such functions.
10769 .IP "\fB\-fsanitize=bool\fR" 4
10770 .IX Item "-fsanitize=bool"
10771 This option enables instrumentation of loads from bool.  If a value other
10772 than 0/1 is loaded, a run-time error is issued.
10773 .IP "\fB\-fsanitize=enum\fR" 4
10774 .IX Item "-fsanitize=enum"
10775 This option enables instrumentation of loads from an enum type.  If
10776 a value outside the range of values for the enum type is loaded,
10777 a run-time error is issued.
10778 .IP "\fB\-fsanitize=vptr\fR" 4
10779 .IX Item "-fsanitize=vptr"
10780 This option enables instrumentation of \*(C+ member function calls, member
10781 accesses and some conversions between pointers to base and derived classes,
10782 to verify the referenced object has the correct dynamic type.
10783 .IP "\fB\-fsanitize=pointer\-overflow\fR" 4
10784 .IX Item "-fsanitize=pointer-overflow"
10785 This option enables instrumentation of pointer arithmetics.  If the pointer
10786 arithmetics overflows, a run-time error is issued.
10787 .IP "\fB\-fsanitize=builtin\fR" 4
10788 .IX Item "-fsanitize=builtin"
10789 This option enables instrumentation of arguments to selected builtin
10790 functions.  If an invalid value is passed to such arguments, a run-time
10791 error is issued.  E.g. passing 0 as the argument to \f(CW\*(C`_\|_builtin_ctz\*(C'\fR
10792 or \f(CW\*(C`_\|_builtin_clz\*(C'\fR invokes undefined behavior and is diagnosed
10793 by this option.
10794 .RE
10795 .RS 4
10796 .Sp
10797 While \fB\-ftrapv\fR causes traps for signed overflows to be emitted,
10798 \&\fB\-fsanitize=undefined\fR gives a diagnostic message.
10799 This currently works only for the C family of languages.
10800 .RE
10801 .IP "\fB\-fno\-sanitize=all\fR" 4
10802 .IX Item "-fno-sanitize=all"
10803 This option disables all previously enabled sanitizers.
10804 \&\fB\-fsanitize=all\fR is not allowed, as some sanitizers cannot be used
10805 together.
10806 .IP "\fB\-fasan\-shadow\-offset=\fR\fInumber\fR" 4
10807 .IX Item "-fasan-shadow-offset=number"
10808 This option forces \s-1GCC\s0 to use custom shadow offset in AddressSanitizer checks.
10809 It is useful for experimenting with different shadow memory layouts in
10810 Kernel AddressSanitizer.
10811 .IP "\fB\-fsanitize\-sections=\fR\fIs1\fR\fB,\fR\fIs2\fR\fB,...\fR" 4
10812 .IX Item "-fsanitize-sections=s1,s2,..."
10813 Sanitize global variables in selected user-defined sections.  \fIsi\fR may
10814 contain wildcards.
10815 .IP "\fB\-fsanitize\-recover\fR[\fB=\fR\fIopts\fR]" 4
10816 .IX Item "-fsanitize-recover[=opts]"
10817 \&\fB\-fsanitize\-recover=\fR controls error recovery mode for sanitizers
10818 mentioned in comma-separated list of \fIopts\fR.  Enabling this option
10819 for a sanitizer component causes it to attempt to continue
10820 running the program as if no error happened.  This means multiple
10821 runtime errors can be reported in a single program run, and the exit
10822 code of the program may indicate success even when errors
10823 have been reported.  The \fB\-fno\-sanitize\-recover=\fR option
10824 can be used to alter
10825 this behavior: only the first detected error is reported
10826 and program then exits with a non-zero exit code.
10827 .Sp
10828 Currently this feature only works for \fB\-fsanitize=undefined\fR (and its suboptions
10829 except for \fB\-fsanitize=unreachable\fR and \fB\-fsanitize=return\fR),
10830 \&\fB\-fsanitize=float\-cast\-overflow\fR, \fB\-fsanitize=float\-divide\-by\-zero\fR,
10831 \&\fB\-fsanitize=bounds\-strict\fR,
10832 \&\fB\-fsanitize=kernel\-address\fR and \fB\-fsanitize=address\fR.
10833 For these sanitizers error recovery is turned on by default,
10834 except \fB\-fsanitize=address\fR, for which this feature is experimental.
10835 \&\fB\-fsanitize\-recover=all\fR and \fB\-fno\-sanitize\-recover=all\fR is also
10836 accepted, the former enables recovery for all sanitizers that support it,
10837 the latter disables recovery for all sanitizers that support it.
10838 .Sp
10839 Even if a recovery mode is turned on the compiler side, it needs to be also
10840 enabled on the runtime library side, otherwise the failures are still fatal.
10841 The runtime library defaults to \f(CW\*(C`halt_on_error=0\*(C'\fR for
10842 ThreadSanitizer and UndefinedBehaviorSanitizer, while default value for
10843 AddressSanitizer is \f(CW\*(C`halt_on_error=1\*(C'\fR. This can be overridden through
10844 setting the \f(CW\*(C`halt_on_error\*(C'\fR flag in the corresponding environment variable.
10845 .Sp
10846 Syntax without an explicit \fIopts\fR parameter is deprecated.  It is
10847 equivalent to specifying an \fIopts\fR list of:
10848 .Sp
10849 .Vb 1
10850 \&        undefined,float\-cast\-overflow,float\-divide\-by\-zero,bounds\-strict
10851 .Ve
10852 .IP "\fB\-fsanitize\-address\-use\-after\-scope\fR" 4
10853 .IX Item "-fsanitize-address-use-after-scope"
10854 Enable sanitization of local variables to detect use-after-scope bugs.
10855 The option sets \fB\-fstack\-reuse\fR to \fBnone\fR.
10856 .IP "\fB\-fsanitize\-undefined\-trap\-on\-error\fR" 4
10857 .IX Item "-fsanitize-undefined-trap-on-error"
10858 The \fB\-fsanitize\-undefined\-trap\-on\-error\fR option instructs the compiler to
10859 report undefined behavior using \f(CW\*(C`_\|_builtin_trap\*(C'\fR rather than
10860 a \f(CW\*(C`libubsan\*(C'\fR library routine.  The advantage of this is that the
10861 \&\f(CW\*(C`libubsan\*(C'\fR library is not needed and is not linked in, so this
10862 is usable even in freestanding environments.
10863 .IP "\fB\-fsanitize\-coverage=trace\-pc\fR" 4
10864 .IX Item "-fsanitize-coverage=trace-pc"
10865 Enable coverage-guided fuzzing code instrumentation.
10866 Inserts a call to \f(CW\*(C`_\|_sanitizer_cov_trace_pc\*(C'\fR into every basic block.
10867 .IP "\fB\-fsanitize\-coverage=trace\-cmp\fR" 4
10868 .IX Item "-fsanitize-coverage=trace-cmp"
10869 Enable dataflow guided fuzzing code instrumentation.
10870 Inserts a call to \f(CW\*(C`_\|_sanitizer_cov_trace_cmp1\*(C'\fR,
10871 \&\f(CW\*(C`_\|_sanitizer_cov_trace_cmp2\*(C'\fR, \f(CW\*(C`_\|_sanitizer_cov_trace_cmp4\*(C'\fR or
10872 \&\f(CW\*(C`_\|_sanitizer_cov_trace_cmp8\*(C'\fR for integral comparison with both operands
10873 variable or \f(CW\*(C`_\|_sanitizer_cov_trace_const_cmp1\*(C'\fR,
10874 \&\f(CW\*(C`_\|_sanitizer_cov_trace_const_cmp2\*(C'\fR,
10875 \&\f(CW\*(C`_\|_sanitizer_cov_trace_const_cmp4\*(C'\fR or
10876 \&\f(CW\*(C`_\|_sanitizer_cov_trace_const_cmp8\*(C'\fR for integral comparison with one
10877 operand constant, \f(CW\*(C`_\|_sanitizer_cov_trace_cmpf\*(C'\fR or
10878 \&\f(CW\*(C`_\|_sanitizer_cov_trace_cmpd\*(C'\fR for float or double comparisons and
10879 \&\f(CW\*(C`_\|_sanitizer_cov_trace_switch\*(C'\fR for switch statements.
10880 .IP "\fB\-fbounds\-check\fR" 4
10881 .IX Item "-fbounds-check"
10882 For front ends that support it, generate additional code to check that
10883 indices used to access arrays are within the declared range.  This is
10884 currently only supported by the Fortran front end, where this option
10885 defaults to false.
10886 .IP "\fB\-fcheck\-pointer\-bounds\fR" 4
10887 .IX Item "-fcheck-pointer-bounds"
10888 Enable Pointer Bounds Checker instrumentation.  Each memory reference
10889 is instrumented with checks of the pointer used for memory access against
10890 bounds associated with that pointer.
10891 .Sp
10892 Currently there
10893 is only an implementation for Intel \s-1MPX\s0 available, thus x86 GNU/Linux target
10894 and \fB\-mmpx\fR are required to enable this feature.  
10895 MPX-based instrumentation requires
10896 a runtime library to enable \s-1MPX\s0 in hardware and handle bounds
10897 violation signals.  By default when \fB\-fcheck\-pointer\-bounds\fR
10898 and \fB\-mmpx\fR options are used to link a program, the \s-1GCC\s0 driver
10899 links against the \fIlibmpx\fR and \fIlibmpxwrappers\fR libraries.
10900 Bounds checking on calls to dynamic libraries requires a linker
10901 with \fB\-z bndplt\fR support; if \s-1GCC\s0 was configured with a linker
10902 without support for this option (including the Gold linker and older
10903 versions of ld), a warning is given if you link with \fB\-mmpx\fR
10904 without also specifying \fB\-static\fR, since the overall effectiveness
10905 of the bounds checking protection is reduced.
10906 See also \fB\-static\-libmpxwrappers\fR.
10907 .Sp
10908 MPX-based instrumentation
10909 may be used for debugging and also may be included in production code
10910 to increase program security.  Depending on usage, you may
10911 have different requirements for the runtime library.  The current version
10912 of the \s-1MPX\s0 runtime library is more oriented for use as a debugging
10913 tool.  \s-1MPX\s0 runtime library usage implies \fB\-lpthread\fR.  See
10914 also \fB\-static\-libmpx\fR.  The runtime library  behavior can be
10915 influenced using various \fBCHKP_RT_*\fR environment variables.  See
10916 <\fBhttps://gcc.gnu.org/wiki/Intel%20MPX%20support%20in%20the%20GCC%20compiler\fR>
10917 for more details.
10918 .Sp
10919 Generated instrumentation may be controlled by various
10920 \&\fB\-fchkp\-*\fR options and by the \f(CW\*(C`bnd_variable_size\*(C'\fR
10921 structure field attribute and
10922 \&\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
10923 functions for controlling the Pointer Bounds Checker.
10924 .IP "\fB\-fchkp\-check\-incomplete\-type\fR" 4
10925 .IX Item "-fchkp-check-incomplete-type"
10926 Generate pointer bounds checks for variables with incomplete type.
10927 Enabled by default.
10928 .IP "\fB\-fchkp\-narrow\-bounds\fR" 4
10929 .IX Item "-fchkp-narrow-bounds"
10930 Controls bounds used by Pointer Bounds Checker for pointers to object
10931 fields.  If narrowing is enabled then field bounds are used.  Otherwise
10932 object bounds are used.  See also \fB\-fchkp\-narrow\-to\-innermost\-array\fR
10933 and \fB\-fchkp\-first\-field\-has\-own\-bounds\fR.  Enabled by default.
10934 .IP "\fB\-fchkp\-first\-field\-has\-own\-bounds\fR" 4
10935 .IX Item "-fchkp-first-field-has-own-bounds"
10936 Forces Pointer Bounds Checker to use narrowed bounds for the address of the
10937 first field in the structure.  By default a pointer to the first field has
10938 the same bounds as a pointer to the whole structure.
10939 .IP "\fB\-fchkp\-flexible\-struct\-trailing\-arrays\fR" 4
10940 .IX Item "-fchkp-flexible-struct-trailing-arrays"
10941 Forces Pointer Bounds Checker to treat all trailing arrays in structures as
10942 possibly flexible.  By default only array fields with zero length or that are
10943 marked with attribute bnd_variable_size are treated as flexible.
10944 .IP "\fB\-fchkp\-narrow\-to\-innermost\-array\fR" 4
10945 .IX Item "-fchkp-narrow-to-innermost-array"
10946 Forces Pointer Bounds Checker to use bounds of the innermost arrays in
10947 case of nested static array access.  By default this option is disabled and
10948 bounds of the outermost array are used.
10949 .IP "\fB\-fchkp\-optimize\fR" 4
10950 .IX Item "-fchkp-optimize"
10951 Enables Pointer Bounds Checker optimizations.  Enabled by default at
10952 optimization levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR.
10953 .IP "\fB\-fchkp\-use\-fast\-string\-functions\fR" 4
10954 .IX Item "-fchkp-use-fast-string-functions"
10955 Enables use of \f(CW*_nobnd\fR versions of string functions (not copying bounds)
10956 by Pointer Bounds Checker.  Disabled by default.
10957 .IP "\fB\-fchkp\-use\-nochk\-string\-functions\fR" 4
10958 .IX Item "-fchkp-use-nochk-string-functions"
10959 Enables use of \f(CW*_nochk\fR versions of string functions (not checking bounds)
10960 by Pointer Bounds Checker.  Disabled by default.
10961 .IP "\fB\-fchkp\-use\-static\-bounds\fR" 4
10962 .IX Item "-fchkp-use-static-bounds"
10963 Allow Pointer Bounds Checker to generate static bounds holding
10964 bounds of static variables.  Enabled by default.
10965 .IP "\fB\-fchkp\-use\-static\-const\-bounds\fR" 4
10966 .IX Item "-fchkp-use-static-const-bounds"
10967 Use statically-initialized bounds for constant bounds instead of
10968 generating them each time they are required.  By default enabled when
10969 \&\fB\-fchkp\-use\-static\-bounds\fR is enabled.
10970 .IP "\fB\-fchkp\-treat\-zero\-dynamic\-size\-as\-infinite\fR" 4
10971 .IX Item "-fchkp-treat-zero-dynamic-size-as-infinite"
10972 With this option, objects with incomplete type whose
10973 dynamically-obtained size is zero are treated as having infinite size
10974 instead by Pointer Bounds
10975 Checker.  This option may be helpful if a program is linked with a library
10976 missing size information for some symbols.  Disabled by default.
10977 .IP "\fB\-fchkp\-check\-read\fR" 4
10978 .IX Item "-fchkp-check-read"
10979 Instructs Pointer Bounds Checker to generate checks for all read
10980 accesses to memory.  Enabled by default.
10981 .IP "\fB\-fchkp\-check\-write\fR" 4
10982 .IX Item "-fchkp-check-write"
10983 Instructs Pointer Bounds Checker to generate checks for all write
10984 accesses to memory.  Enabled by default.
10985 .IP "\fB\-fchkp\-store\-bounds\fR" 4
10986 .IX Item "-fchkp-store-bounds"
10987 Instructs Pointer Bounds Checker to generate bounds stores for
10988 pointer writes.  Enabled by default.
10989 .IP "\fB\-fchkp\-instrument\-calls\fR" 4
10990 .IX Item "-fchkp-instrument-calls"
10991 Instructs Pointer Bounds Checker to pass pointer bounds to calls.
10992 Enabled by default.
10993 .IP "\fB\-fchkp\-instrument\-marked\-only\fR" 4
10994 .IX Item "-fchkp-instrument-marked-only"
10995 Instructs Pointer Bounds Checker to instrument only functions
10996 marked with the \f(CW\*(C`bnd_instrument\*(C'\fR attribute.  Disabled by default.
10997 .IP "\fB\-fchkp\-use\-wrappers\fR" 4
10998 .IX Item "-fchkp-use-wrappers"
10999 Allows Pointer Bounds Checker to replace calls to built-in functions
11000 with calls to wrapper functions.  When \fB\-fchkp\-use\-wrappers\fR
11001 is used to link a program, the \s-1GCC\s0 driver automatically links
11002 against \fIlibmpxwrappers\fR.  See also \fB\-static\-libmpxwrappers\fR.
11003 Enabled by default.
11004 .IP "\fB\-fcf\-protection=\fR[\fBfull\fR|\fBbranch\fR|\fBreturn\fR|\fBnone\fR]" 4
11005 .IX Item "-fcf-protection=[full|branch|return|none]"
11006 Enable code instrumentation of control-flow transfers to increase
11007 program security by checking that target addresses of control-flow
11008 transfer instructions (such as indirect function call, function return,
11009 indirect jump) are valid.  This prevents diverting the flow of control
11010 to an unexpected target.  This is intended to protect against such
11011 threats as Return-oriented Programming (\s-1ROP\s0), and similarly
11012 call/jmp\-oriented programming (\s-1COP/JOP\s0).
11013 .Sp
11014 The value \f(CW\*(C`branch\*(C'\fR tells the compiler to implement checking of
11015 validity of control-flow transfer at the point of indirect branch
11016 instructions, i.e. call/jmp instructions.  The value \f(CW\*(C`return\*(C'\fR
11017 implements checking of validity at the point of returning from a
11018 function.  The value \f(CW\*(C`full\*(C'\fR is an alias for specifying both
11019 \&\f(CW\*(C`branch\*(C'\fR and \f(CW\*(C`return\*(C'\fR. The value \f(CW\*(C`none\*(C'\fR turns off
11020 instrumentation.
11021 .Sp
11022 The macro \f(CW\*(C`_\|_CET_\|_\*(C'\fR is defined when \fB\-fcf\-protection\fR is
11023 used.  The first bit of \f(CW\*(C`_\|_CET_\|_\*(C'\fR is set to 1 for the value
11024 \&\f(CW\*(C`branch\*(C'\fR and the second bit of \f(CW\*(C`_\|_CET_\|_\*(C'\fR is set to 1 for
11025 the \f(CW\*(C`return\*(C'\fR.
11026 .Sp
11027 You can also use the \f(CW\*(C`nocf_check\*(C'\fR attribute to identify
11028 which functions and calls should be skipped from instrumentation.
11029 .Sp
11030 Currently the x86 GNU/Linux target provides an implementation based
11031 on Intel Control-flow Enforcement Technology (\s-1CET\s0).
11032 .IP "\fB\-fstack\-protector\fR" 4
11033 .IX Item "-fstack-protector"
11034 Emit extra code to check for buffer overflows, such as stack smashing
11035 attacks.  This is done by adding a guard variable to functions with
11036 vulnerable objects.  This includes functions that call \f(CW\*(C`alloca\*(C'\fR, and
11037 functions with buffers larger than 8 bytes.  The guards are initialized
11038 when a function is entered and then checked when the function exits.
11039 If a guard check fails, an error message is printed and the program exits.
11040 .IP "\fB\-fstack\-protector\-all\fR" 4
11041 .IX Item "-fstack-protector-all"
11042 Like \fB\-fstack\-protector\fR except that all functions are protected.
11043 .IP "\fB\-fstack\-protector\-strong\fR" 4
11044 .IX Item "-fstack-protector-strong"
11045 Like \fB\-fstack\-protector\fR but includes additional functions to
11046 be protected \-\-\- those that have local array definitions, or have
11047 references to local frame addresses.
11048 .IP "\fB\-fstack\-protector\-explicit\fR" 4
11049 .IX Item "-fstack-protector-explicit"
11050 Like \fB\-fstack\-protector\fR but only protects those functions which
11051 have the \f(CW\*(C`stack_protect\*(C'\fR attribute.
11052 .IP "\fB\-fstack\-check\fR" 4
11053 .IX Item "-fstack-check"
11054 Generate code to verify that you do not go beyond the boundary of the
11055 stack.  You should specify this flag if you are running in an
11056 environment with multiple threads, but you only rarely need to specify it in
11057 a single-threaded environment since stack overflow is automatically
11058 detected on nearly all systems if there is only one stack.
11059 .Sp
11060 Note that this switch does not actually cause checking to be done; the
11061 operating system or the language runtime must do that.  The switch causes
11062 generation of code to ensure that they see the stack being extended.
11063 .Sp
11064 You can additionally specify a string parameter: \fBno\fR means no
11065 checking, \fBgeneric\fR means force the use of old-style checking,
11066 \&\fBspecific\fR means use the best checking method and is equivalent
11067 to bare \fB\-fstack\-check\fR.
11068 .Sp
11069 Old-style checking is a generic mechanism that requires no specific
11070 target support in the compiler but comes with the following drawbacks:
11071 .RS 4
11072 .IP "1." 4
11073 .IX Item "1."
11074 Modified allocation strategy for large objects: they are always
11075 allocated dynamically if their size exceeds a fixed threshold.  Note this
11076 may change the semantics of some code.
11077 .IP "2." 4
11078 .IX Item "2."
11079 Fixed limit on the size of the static frame of functions: when it is
11080 topped by a particular function, stack checking is not reliable and
11081 a warning is issued by the compiler.
11082 .IP "3." 4
11083 .IX Item "3."
11084 Inefficiency: because of both the modified allocation strategy and the
11085 generic implementation, code performance is hampered.
11086 .RE
11087 .RS 4
11088 .Sp
11089 Note that old-style stack checking is also the fallback method for
11090 \&\fBspecific\fR if no target support has been added in the compiler.
11091 .Sp
11092 \&\fB\-fstack\-check=\fR is designed for Ada's needs to detect infinite recursion
11093 and stack overflows.  \fBspecific\fR is an excellent choice when compiling
11094 Ada code.  It is not generally sufficient to protect against stack-clash
11095 attacks.  To protect against those you want \fB\-fstack\-clash\-protection\fR.
11096 .RE
11097 .IP "\fB\-fstack\-clash\-protection\fR" 4
11098 .IX Item "-fstack-clash-protection"
11099 Generate code to prevent stack clash style attacks.  When this option is
11100 enabled, the compiler will only allocate one page of stack space at a time
11101 and each page is accessed immediately after allocation.  Thus, it prevents
11102 allocations from jumping over any stack guard page provided by the
11103 operating system.
11104 .Sp
11105 Most targets do not fully support stack clash protection.  However, on
11106 those targets \fB\-fstack\-clash\-protection\fR will protect dynamic stack
11107 allocations.  \fB\-fstack\-clash\-protection\fR may also provide limited
11108 protection for static stack allocations if the target supports
11109 \&\fB\-fstack\-check=specific\fR.
11110 .IP "\fB\-fstack\-limit\-register=\fR\fIreg\fR" 4
11111 .IX Item "-fstack-limit-register=reg"
11112 .PD 0
11113 .IP "\fB\-fstack\-limit\-symbol=\fR\fIsym\fR" 4
11114 .IX Item "-fstack-limit-symbol=sym"
11115 .IP "\fB\-fno\-stack\-limit\fR" 4
11116 .IX Item "-fno-stack-limit"
11117 .PD
11118 Generate code to ensure that the stack does not grow beyond a certain value,
11119 either the value of a register or the address of a symbol.  If a larger
11120 stack is required, a signal is raised at run time.  For most targets,
11121 the signal is raised before the stack overruns the boundary, so
11122 it is possible to catch the signal without taking special precautions.
11123 .Sp
11124 For instance, if the stack starts at absolute address \fB0x80000000\fR
11125 and grows downwards, you can use the flags
11126 \&\fB\-fstack\-limit\-symbol=_\|_stack_limit\fR and
11127 \&\fB\-Wl,\-\-defsym,_\|_stack_limit=0x7ffe0000\fR to enforce a stack limit
11128 of 128KB.  Note that this may only work with the \s-1GNU\s0 linker.
11129 .Sp
11130 You can locally override stack limit checking by using the
11131 \&\f(CW\*(C`no_stack_limit\*(C'\fR function attribute.
11132 .IP "\fB\-fsplit\-stack\fR" 4
11133 .IX Item "-fsplit-stack"
11134 Generate code to automatically split the stack before it overflows.
11135 The resulting program has a discontiguous stack which can only
11136 overflow if the program is unable to allocate any more memory.  This
11137 is most useful when running threaded programs, as it is no longer
11138 necessary to calculate a good stack size to use for each thread.  This
11139 is currently only implemented for the x86 targets running
11140 GNU/Linux.
11141 .Sp
11142 When code compiled with \fB\-fsplit\-stack\fR calls code compiled
11143 without \fB\-fsplit\-stack\fR, there may not be much stack space
11144 available for the latter code to run.  If compiling all code,
11145 including library code, with \fB\-fsplit\-stack\fR is not an option,
11146 then the linker can fix up these calls so that the code compiled
11147 without \fB\-fsplit\-stack\fR always has a large stack.  Support for
11148 this is implemented in the gold linker in \s-1GNU\s0 binutils release 2.21
11149 and later.
11150 .IP "\fB\-fvtable\-verify=\fR[\fBstd\fR|\fBpreinit\fR|\fBnone\fR]" 4
11151 .IX Item "-fvtable-verify=[std|preinit|none]"
11152 This option is only available when compiling \*(C+ code.
11153 It turns on (or off, if using \fB\-fvtable\-verify=none\fR) the security
11154 feature that verifies at run time, for every virtual call, that
11155 the vtable pointer through which the call is made is valid for the type of
11156 the object, and has not been corrupted or overwritten.  If an invalid vtable
11157 pointer is detected at run time, an error is reported and execution of the
11158 program is immediately halted.
11159 .Sp
11160 This option causes run-time data structures to be built at program startup,
11161 which are used for verifying the vtable pointers.  
11162 The options \fBstd\fR and \fBpreinit\fR
11163 control the timing of when these data structures are built.  In both cases the
11164 data structures are built before execution reaches \f(CW\*(C`main\*(C'\fR.  Using
11165 \&\fB\-fvtable\-verify=std\fR causes the data structures to be built after
11166 shared libraries have been loaded and initialized.
11167 \&\fB\-fvtable\-verify=preinit\fR causes them to be built before shared
11168 libraries have been loaded and initialized.
11169 .Sp
11170 If this option appears multiple times in the command line with different
11171 values specified, \fBnone\fR takes highest priority over both \fBstd\fR and
11172 \&\fBpreinit\fR; \fBpreinit\fR takes priority over \fBstd\fR.
11173 .IP "\fB\-fvtv\-debug\fR" 4
11174 .IX Item "-fvtv-debug"
11175 When used in conjunction with \fB\-fvtable\-verify=std\fR or 
11176 \&\fB\-fvtable\-verify=preinit\fR, causes debug versions of the 
11177 runtime functions for the vtable verification feature to be called.  
11178 This flag also causes the compiler to log information about which 
11179 vtable pointers it finds for each class.
11180 This information is written to a file named \fIvtv_set_ptr_data.log\fR 
11181 in the directory named by the environment variable \fB\s-1VTV_LOGS_DIR\s0\fR 
11182 if that is defined or the current working directory otherwise.
11183 .Sp
11184 Note:  This feature \fIappends\fR data to the log file. If you want a fresh log
11185 file, be sure to delete any existing one.
11186 .IP "\fB\-fvtv\-counts\fR" 4
11187 .IX Item "-fvtv-counts"
11188 This is a debugging flag.  When used in conjunction with
11189 \&\fB\-fvtable\-verify=std\fR or \fB\-fvtable\-verify=preinit\fR, this
11190 causes the compiler to keep track of the total number of virtual calls
11191 it encounters and the number of verifications it inserts.  It also
11192 counts the number of calls to certain run-time library functions
11193 that it inserts and logs this information for each compilation unit.
11194 The compiler writes this information to a file named
11195 \&\fIvtv_count_data.log\fR in the directory named by the environment
11196 variable \fB\s-1VTV_LOGS_DIR\s0\fR if that is defined or the current working
11197 directory otherwise.  It also counts the size of the vtable pointer sets
11198 for each class, and writes this information to \fIvtv_class_set_sizes.log\fR
11199 in the same directory.
11200 .Sp
11201 Note:  This feature \fIappends\fR data to the log files.  To get fresh log
11202 files, be sure to delete any existing ones.
11203 .IP "\fB\-finstrument\-functions\fR" 4
11204 .IX Item "-finstrument-functions"
11205 Generate instrumentation calls for entry and exit to functions.  Just
11206 after function entry and just before function exit, the following
11207 profiling functions are called with the address of the current
11208 function and its call site.  (On some platforms,
11209 \&\f(CW\*(C`_\|_builtin_return_address\*(C'\fR does not work beyond the current
11210 function, so the call site information may not be available to the
11211 profiling functions otherwise.)
11212 .Sp
11213 .Vb 4
11214 \&        void _\|_cyg_profile_func_enter (void *this_fn,
11215 \&                                       void *call_site);
11216 \&        void _\|_cyg_profile_func_exit  (void *this_fn,
11217 \&                                       void *call_site);
11218 .Ve
11219 .Sp
11220 The first argument is the address of the start of the current function,
11221 which may be looked up exactly in the symbol table.
11222 .Sp
11223 This instrumentation is also done for functions expanded inline in other
11224 functions.  The profiling calls indicate where, conceptually, the
11225 inline function is entered and exited.  This means that addressable
11226 versions of such functions must be available.  If all your uses of a
11227 function are expanded inline, this may mean an additional expansion of
11228 code size.  If you use \f(CW\*(C`extern inline\*(C'\fR in your C code, an
11229 addressable version of such functions must be provided.  (This is
11230 normally the case anyway, but if you get lucky and the optimizer always
11231 expands the functions inline, you might have gotten away without
11232 providing static copies.)
11233 .Sp
11234 A function may be given the attribute \f(CW\*(C`no_instrument_function\*(C'\fR, in
11235 which case this instrumentation is not done.  This can be used, for
11236 example, for the profiling functions listed above, high-priority
11237 interrupt routines, and any functions from which the profiling functions
11238 cannot safely be called (perhaps signal handlers, if the profiling
11239 routines generate output or allocate memory).
11240 .IP "\fB\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,...\fR" 4
11241 .IX Item "-finstrument-functions-exclude-file-list=file,file,..."
11242 Set the list of functions that are excluded from instrumentation (see
11243 the description of \fB\-finstrument\-functions\fR).  If the file that
11244 contains a function definition matches with one of \fIfile\fR, then
11245 that function is not instrumented.  The match is done on substrings:
11246 if the \fIfile\fR parameter is a substring of the file name, it is
11247 considered to be a match.
11248 .Sp
11249 For example:
11250 .Sp
11251 .Vb 1
11252 \&        \-finstrument\-functions\-exclude\-file\-list=/bits/stl,include/sys
11253 .Ve
11254 .Sp
11255 excludes any inline function defined in files whose pathnames
11256 contain \fI/bits/stl\fR or \fIinclude/sys\fR.
11257 .Sp
11258 If, for some reason, you want to include letter \fB,\fR in one of
11259 \&\fIsym\fR, write \fB,\fR. For example,
11260 \&\fB\-finstrument\-functions\-exclude\-file\-list=',,tmp'\fR
11261 (note the single quote surrounding the option).
11262 .IP "\fB\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,...\fR" 4
11263 .IX Item "-finstrument-functions-exclude-function-list=sym,sym,..."
11264 This is similar to \fB\-finstrument\-functions\-exclude\-file\-list\fR,
11265 but this option sets the list of function names to be excluded from
11266 instrumentation.  The function name to be matched is its user-visible
11267 name, such as \f(CW\*(C`vector<int> blah(const vector<int> &)\*(C'\fR, not the
11268 internal mangled name (e.g., \f(CW\*(C`_Z4blahRSt6vectorIiSaIiEE\*(C'\fR).  The
11269 match is done on substrings: if the \fIsym\fR parameter is a substring
11270 of the function name, it is considered to be a match.  For C99 and \*(C+
11271 extended identifiers, the function name must be given in \s-1UTF\-8,\s0 not
11272 using universal character names.
11273 .IP "\fB\-fpatchable\-function\-entry=\fR\fIN\fR\fB[,\fR\fIM\fR\fB]\fR" 4
11274 .IX Item "-fpatchable-function-entry=N[,M]"
11275 Generate \fIN\fR NOPs right at the beginning
11276 of each function, with the function entry point before the \fIM\fRth \s-1NOP.\s0
11277 If \fIM\fR is omitted, it defaults to \f(CW0\fR so the
11278 function entry points to the address just at the first \s-1NOP.\s0
11279 The \s-1NOP\s0 instructions reserve extra space which can be used to patch in
11280 any desired instrumentation at run time, provided that the code segment
11281 is writable.  The amount of space is controllable indirectly via
11282 the number of NOPs; the \s-1NOP\s0 instruction used corresponds to the instruction
11283 emitted by the internal \s-1GCC\s0 back-end interface \f(CW\*(C`gen_nop\*(C'\fR.  This behavior
11284 is target-specific and may also depend on the architecture variant and/or
11285 other compilation options.
11286 .Sp
11287 For run-time identification, the starting addresses of these areas,
11288 which correspond to their respective function entries minus \fIM\fR,
11289 are additionally collected in the \f(CW\*(C`_\|_patchable_function_entries\*(C'\fR
11290 section of the resulting binary.
11291 .Sp
11292 Note that the value of \f(CW\*(C`_\|_attribute_\|_ ((patchable_function_entry
11293 (N,M)))\*(C'\fR takes precedence over command-line option
11294 \&\fB\-fpatchable\-function\-entry=N,M\fR.  This can be used to increase
11295 the area size or to remove it completely on a single function.
11296 If \f(CW\*(C`N=0\*(C'\fR, no pad location is recorded.
11297 .Sp
11298 The \s-1NOP\s0 instructions are inserted at\-\-\-and maybe before, depending on
11299 \&\fIM\fR\-\-\-the function entry address, even before the prologue.
11300 .SS "Options Controlling the Preprocessor"
11301 .IX Subsection "Options Controlling the Preprocessor"
11302 These options control the C preprocessor, which is run on each C source
11303 file before actual compilation.
11304 .PP
11305 If you use the \fB\-E\fR option, nothing is done except preprocessing.
11306 Some of these options make sense only together with \fB\-E\fR because
11307 they cause the preprocessor output to be unsuitable for actual
11308 compilation.
11309 .PP
11310 In addition to the options listed here, there are a number of options 
11311 to control search paths for include files documented in 
11312 \&\fBDirectory Options\fR.  
11313 Options to control preprocessor diagnostics are listed in 
11314 \&\fBWarning Options\fR.
11315 .IP "\fB\-D\fR \fIname\fR" 4
11316 .IX Item "-D name"
11317 Predefine \fIname\fR as a macro, with definition \f(CW1\fR.
11318 .IP "\fB\-D\fR \fIname\fR\fB=\fR\fIdefinition\fR" 4
11319 .IX Item "-D name=definition"
11320 The contents of \fIdefinition\fR are tokenized and processed as if
11321 they appeared during translation phase three in a \fB#define\fR
11322 directive.  In particular, the definition is truncated by
11323 embedded newline characters.
11324 .Sp
11325 If you are invoking the preprocessor from a shell or shell-like
11326 program you may need to use the shell's quoting syntax to protect
11327 characters such as spaces that have a meaning in the shell syntax.
11328 .Sp
11329 If you wish to define a function-like macro on the command line, write
11330 its argument list with surrounding parentheses before the equals sign
11331 (if any).  Parentheses are meaningful to most shells, so you should
11332 quote the option.  With \fBsh\fR and \fBcsh\fR,
11333 \&\fB\-D'\fR\fIname\fR\fB(\fR\fIargs...\fR\fB)=\fR\fIdefinition\fR\fB'\fR works.
11334 .Sp
11335 \&\fB\-D\fR and \fB\-U\fR options are processed in the order they
11336 are given on the command line.  All \fB\-imacros\fR \fIfile\fR and
11337 \&\fB\-include\fR \fIfile\fR options are processed after all
11338 \&\fB\-D\fR and \fB\-U\fR options.
11339 .IP "\fB\-U\fR \fIname\fR" 4
11340 .IX Item "-U name"
11341 Cancel any previous definition of \fIname\fR, either built in or
11342 provided with a \fB\-D\fR option.
11343 .IP "\fB\-include\fR \fIfile\fR" 4
11344 .IX Item "-include file"
11345 Process \fIfile\fR as if \f(CW\*(C`#include "file"\*(C'\fR appeared as the first
11346 line of the primary source file.  However, the first directory searched
11347 for \fIfile\fR is the preprocessor's working directory \fIinstead of\fR
11348 the directory containing the main source file.  If not found there, it
11349 is searched for in the remainder of the \f(CW\*(C`#include "..."\*(C'\fR search
11350 chain as normal.
11351 .Sp
11352 If multiple \fB\-include\fR options are given, the files are included
11353 in the order they appear on the command line.
11354 .IP "\fB\-imacros\fR \fIfile\fR" 4
11355 .IX Item "-imacros file"
11356 Exactly like \fB\-include\fR, except that any output produced by
11357 scanning \fIfile\fR is thrown away.  Macros it defines remain defined.
11358 This allows you to acquire all the macros from a header without also
11359 processing its declarations.
11360 .Sp
11361 All files specified by \fB\-imacros\fR are processed before all files
11362 specified by \fB\-include\fR.
11363 .IP "\fB\-undef\fR" 4
11364 .IX Item "-undef"
11365 Do not predefine any system-specific or GCC-specific macros.  The
11366 standard predefined macros remain defined.
11367 .IP "\fB\-pthread\fR" 4
11368 .IX Item "-pthread"
11369 Define additional macros required for using the \s-1POSIX\s0 threads library.
11370 You should use this option consistently for both compilation and linking.
11371 This option is supported on GNU/Linux targets, most other Unix derivatives,
11372 and also on x86 Cygwin and MinGW targets.
11373 .IP "\fB\-M\fR" 4
11374 .IX Item "-M"
11375 Instead of outputting the result of preprocessing, output a rule
11376 suitable for \fBmake\fR describing the dependencies of the main
11377 source file.  The preprocessor outputs one \fBmake\fR rule containing
11378 the object file name for that source file, a colon, and the names of all
11379 the included files, including those coming from \fB\-include\fR or
11380 \&\fB\-imacros\fR command-line options.
11381 .Sp
11382 Unless specified explicitly (with \fB\-MT\fR or \fB\-MQ\fR), the
11383 object file name consists of the name of the source file with any
11384 suffix replaced with object file suffix and with any leading directory
11385 parts removed.  If there are many included files then the rule is
11386 split into several lines using \fB\e\fR\-newline.  The rule has no
11387 commands.
11388 .Sp
11389 This option does not suppress the preprocessor's debug output, such as
11390 \&\fB\-dM\fR.  To avoid mixing such debug output with the dependency
11391 rules you should explicitly specify the dependency output file with
11392 \&\fB\-MF\fR, or use an environment variable like
11393 \&\fB\s-1DEPENDENCIES_OUTPUT\s0\fR.  Debug output
11394 is still sent to the regular output stream as normal.
11395 .Sp
11396 Passing \fB\-M\fR to the driver implies \fB\-E\fR, and suppresses
11397 warnings with an implicit \fB\-w\fR.
11398 .IP "\fB\-MM\fR" 4
11399 .IX Item "-MM"
11400 Like \fB\-M\fR but do not mention header files that are found in
11401 system header directories, nor header files that are included,
11402 directly or indirectly, from such a header.
11403 .Sp
11404 This implies that the choice of angle brackets or double quotes in an
11405 \&\fB#include\fR directive does not in itself determine whether that
11406 header appears in \fB\-MM\fR dependency output.
11407 .IP "\fB\-MF\fR \fIfile\fR" 4
11408 .IX Item "-MF file"
11409 When used with \fB\-M\fR or \fB\-MM\fR, specifies a
11410 file to write the dependencies to.  If no \fB\-MF\fR switch is given
11411 the preprocessor sends the rules to the same place it would send
11412 preprocessed output.
11413 .Sp
11414 When used with the driver options \fB\-MD\fR or \fB\-MMD\fR,
11415 \&\fB\-MF\fR overrides the default dependency output file.
11416 .Sp
11417 If \fIfile\fR is \fI\-\fR, then the dependencies are written to \fIstdout\fR.
11418 .IP "\fB\-MG\fR" 4
11419 .IX Item "-MG"
11420 In conjunction with an option such as \fB\-M\fR requesting
11421 dependency generation, \fB\-MG\fR assumes missing header files are
11422 generated files and adds them to the dependency list without raising
11423 an error.  The dependency filename is taken directly from the
11424 \&\f(CW\*(C`#include\*(C'\fR directive without prepending any path.  \fB\-MG\fR
11425 also suppresses preprocessed output, as a missing header file renders
11426 this useless.
11427 .Sp
11428 This feature is used in automatic updating of makefiles.
11429 .IP "\fB\-MP\fR" 4
11430 .IX Item "-MP"
11431 This option instructs \s-1CPP\s0 to add a phony target for each dependency
11432 other than the main file, causing each to depend on nothing.  These
11433 dummy rules work around errors \fBmake\fR gives if you remove header
11434 files without updating the \fIMakefile\fR to match.
11435 .Sp
11436 This is typical output:
11437 .Sp
11438 .Vb 1
11439 \&        test.o: test.c test.h
11440 \&        
11441 \&        test.h:
11442 .Ve
11443 .IP "\fB\-MT\fR \fItarget\fR" 4
11444 .IX Item "-MT target"
11445 Change the target of the rule emitted by dependency generation.  By
11446 default \s-1CPP\s0 takes the name of the main input file, deletes any
11447 directory components and any file suffix such as \fB.c\fR, and
11448 appends the platform's usual object suffix.  The result is the target.
11449 .Sp
11450 An \fB\-MT\fR option sets the target to be exactly the string you
11451 specify.  If you want multiple targets, you can specify them as a single
11452 argument to \fB\-MT\fR, or use multiple \fB\-MT\fR options.
11453 .Sp
11454 For example, \fB\-MT\ '$(objpfx)foo.o'\fR might give
11455 .Sp
11456 .Vb 1
11457 \&        $(objpfx)foo.o: foo.c
11458 .Ve
11459 .IP "\fB\-MQ\fR \fItarget\fR" 4
11460 .IX Item "-MQ target"
11461 Same as \fB\-MT\fR, but it quotes any characters which are special to
11462 Make.  \fB\-MQ\ '$(objpfx)foo.o'\fR gives
11463 .Sp
11464 .Vb 1
11465 \&        $$(objpfx)foo.o: foo.c
11466 .Ve
11467 .Sp
11468 The default target is automatically quoted, as if it were given with
11469 \&\fB\-MQ\fR.
11470 .IP "\fB\-MD\fR" 4
11471 .IX Item "-MD"
11472 \&\fB\-MD\fR is equivalent to \fB\-M \-MF\fR \fIfile\fR, except that
11473 \&\fB\-E\fR is not implied.  The driver determines \fIfile\fR based on
11474 whether an \fB\-o\fR option is given.  If it is, the driver uses its
11475 argument but with a suffix of \fI.d\fR, otherwise it takes the name
11476 of the input file, removes any directory components and suffix, and
11477 applies a \fI.d\fR suffix.
11478 .Sp
11479 If \fB\-MD\fR is used in conjunction with \fB\-E\fR, any
11480 \&\fB\-o\fR switch is understood to specify the dependency output file, but if used without \fB\-E\fR, each \fB\-o\fR
11481 is understood to specify a target object file.
11482 .Sp
11483 Since \fB\-E\fR is not implied, \fB\-MD\fR can be used to generate
11484 a dependency output file as a side effect of the compilation process.
11485 .IP "\fB\-MMD\fR" 4
11486 .IX Item "-MMD"
11487 Like \fB\-MD\fR except mention only user header files, not system
11488 header files.
11489 .IP "\fB\-fpreprocessed\fR" 4
11490 .IX Item "-fpreprocessed"
11491 Indicate to the preprocessor that the input file has already been
11492 preprocessed.  This suppresses things like macro expansion, trigraph
11493 conversion, escaped newline splicing, and processing of most directives.
11494 The preprocessor still recognizes and removes comments, so that you can
11495 pass a file preprocessed with \fB\-C\fR to the compiler without
11496 problems.  In this mode the integrated preprocessor is little more than
11497 a tokenizer for the front ends.
11498 .Sp
11499 \&\fB\-fpreprocessed\fR is implicit if the input file has one of the
11500 extensions \fB.i\fR, \fB.ii\fR or \fB.mi\fR.  These are the
11501 extensions that \s-1GCC\s0 uses for preprocessed files created by
11502 \&\fB\-save\-temps\fR.
11503 .IP "\fB\-fdirectives\-only\fR" 4
11504 .IX Item "-fdirectives-only"
11505 When preprocessing, handle directives, but do not expand macros.
11506 .Sp
11507 The option's behavior depends on the \fB\-E\fR and \fB\-fpreprocessed\fR
11508 options.
11509 .Sp
11510 With \fB\-E\fR, preprocessing is limited to the handling of directives
11511 such as \f(CW\*(C`#define\*(C'\fR, \f(CW\*(C`#ifdef\*(C'\fR, and \f(CW\*(C`#error\*(C'\fR.  Other
11512 preprocessor operations, such as macro expansion and trigraph
11513 conversion are not performed.  In addition, the \fB\-dD\fR option is
11514 implicitly enabled.
11515 .Sp
11516 With \fB\-fpreprocessed\fR, predefinition of command line and most
11517 builtin macros is disabled.  Macros such as \f(CW\*(C`_\|_LINE_\|_\*(C'\fR, which are
11518 contextually dependent, are handled normally.  This enables compilation of
11519 files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
11520 .Sp
11521 With both \fB\-E\fR and \fB\-fpreprocessed\fR, the rules for
11522 \&\fB\-fpreprocessed\fR take precedence.  This enables full preprocessing of
11523 files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
11524 .IP "\fB\-fdollars\-in\-identifiers\fR" 4
11525 .IX Item "-fdollars-in-identifiers"
11526 Accept \fB$\fR in identifiers.
11527 .IP "\fB\-fextended\-identifiers\fR" 4
11528 .IX Item "-fextended-identifiers"
11529 Accept universal character names in identifiers.  This option is
11530 enabled by default for C99 (and later C standard versions) and \*(C+.
11531 .IP "\fB\-fno\-canonical\-system\-headers\fR" 4
11532 .IX Item "-fno-canonical-system-headers"
11533 When preprocessing, do not shorten system header paths with canonicalization.
11534 .IP "\fB\-ftabstop=\fR\fIwidth\fR" 4
11535 .IX Item "-ftabstop=width"
11536 Set the distance between tab stops.  This helps the preprocessor report
11537 correct column numbers in warnings or errors, even if tabs appear on the
11538 line.  If the value is less than 1 or greater than 100, the option is
11539 ignored.  The default is 8.
11540 .IP "\fB\-ftrack\-macro\-expansion\fR[\fB=\fR\fIlevel\fR]" 4
11541 .IX Item "-ftrack-macro-expansion[=level]"
11542 Track locations of tokens across macro expansions. This allows the
11543 compiler to emit diagnostic about the current macro expansion stack
11544 when a compilation error occurs in a macro expansion. Using this
11545 option makes the preprocessor and the compiler consume more
11546 memory. The \fIlevel\fR parameter can be used to choose the level of
11547 precision of token location tracking thus decreasing the memory
11548 consumption if necessary. Value \fB0\fR of \fIlevel\fR de-activates
11549 this option. Value \fB1\fR tracks tokens locations in a
11550 degraded mode for the sake of minimal memory overhead. In this mode
11551 all tokens resulting from the expansion of an argument of a
11552 function-like macro have the same location. Value \fB2\fR tracks
11553 tokens locations completely. This value is the most memory hungry.
11554 When this option is given no argument, the default parameter value is
11555 \&\fB2\fR.
11556 .Sp
11557 Note that \f(CW\*(C`\-ftrack\-macro\-expansion=2\*(C'\fR is activated by default.
11558 .IP "\fB\-fmacro\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR" 4
11559 .IX Item "-fmacro-prefix-map=old=new"
11560 When preprocessing files residing in directory \fI\fIold\fI\fR,
11561 expand the \f(CW\*(C`_\|_FILE_\|_\*(C'\fR and \f(CW\*(C`_\|_BASE_FILE_\|_\*(C'\fR macros as if the
11562 files resided in directory \fI\fInew\fI\fR instead.  This can be used
11563 to change an absolute path to a relative path by using \fI.\fR for
11564 \&\fInew\fR which can result in more reproducible builds that are
11565 location independent.  This option also affects
11566 \&\f(CW\*(C`_\|_builtin_FILE()\*(C'\fR during compilation.  See also
11567 \&\fB\-ffile\-prefix\-map\fR.
11568 .IP "\fB\-fexec\-charset=\fR\fIcharset\fR" 4
11569 .IX Item "-fexec-charset=charset"
11570 Set the execution character set, used for string and character
11571 constants.  The default is \s-1UTF\-8.\s0  \fIcharset\fR can be any encoding
11572 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
11573 .IP "\fB\-fwide\-exec\-charset=\fR\fIcharset\fR" 4
11574 .IX Item "-fwide-exec-charset=charset"
11575 Set the wide execution character set, used for wide string and
11576 character constants.  The default is \s-1UTF\-32\s0 or \s-1UTF\-16,\s0 whichever
11577 corresponds to the width of \f(CW\*(C`wchar_t\*(C'\fR.  As with
11578 \&\fB\-fexec\-charset\fR, \fIcharset\fR can be any encoding supported
11579 by the system's \f(CW\*(C`iconv\*(C'\fR library routine; however, you will have
11580 problems with encodings that do not fit exactly in \f(CW\*(C`wchar_t\*(C'\fR.
11581 .IP "\fB\-finput\-charset=\fR\fIcharset\fR" 4
11582 .IX Item "-finput-charset=charset"
11583 Set the input character set, used for translation from the character
11584 set of the input file to the source character set used by \s-1GCC.\s0  If the
11585 locale does not specify, or \s-1GCC\s0 cannot get this information from the
11586 locale, the default is \s-1UTF\-8.\s0  This can be overridden by either the locale
11587 or this command-line option.  Currently the command-line option takes
11588 precedence if there's a conflict.  \fIcharset\fR can be any encoding
11589 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
11590 .IP "\fB\-fpch\-deps\fR" 4
11591 .IX Item "-fpch-deps"
11592 When using precompiled headers, this flag
11593 causes the dependency-output flags to also list the files from the
11594 precompiled header's dependencies.  If not specified, only the
11595 precompiled header are listed and not the files that were used to
11596 create it, because those files are not consulted when a precompiled
11597 header is used.
11598 .IP "\fB\-fpch\-preprocess\fR" 4
11599 .IX Item "-fpch-preprocess"
11600 This option allows use of a precompiled header together with \fB\-E\fR.  It inserts a special \f(CW\*(C`#pragma\*(C'\fR,
11601 \&\f(CW\*(C`#pragma GCC pch_preprocess "\f(CIfilename\f(CW"\*(C'\fR in the output to mark
11602 the place where the precompiled header was found, and its \fIfilename\fR.
11603 When \fB\-fpreprocessed\fR is in use, \s-1GCC\s0 recognizes this \f(CW\*(C`#pragma\*(C'\fR
11604 and loads the \s-1PCH.\s0
11605 .Sp
11606 This option is off by default, because the resulting preprocessed output
11607 is only really suitable as input to \s-1GCC.\s0  It is switched on by
11608 \&\fB\-save\-temps\fR.
11609 .Sp
11610 You should not write this \f(CW\*(C`#pragma\*(C'\fR in your own code, but it is
11611 safe to edit the filename if the \s-1PCH\s0 file is available in a different
11612 location.  The filename may be absolute or it may be relative to \s-1GCC\s0's
11613 current directory.
11614 .IP "\fB\-fworking\-directory\fR" 4
11615 .IX Item "-fworking-directory"
11616 Enable generation of linemarkers in the preprocessor output that
11617 let the compiler know the current working directory at the time of
11618 preprocessing.  When this option is enabled, the preprocessor
11619 emits, after the initial linemarker, a second linemarker with the
11620 current working directory followed by two slashes.  \s-1GCC\s0 uses this
11621 directory, when it's present in the preprocessed input, as the
11622 directory emitted as the current working directory in some debugging
11623 information formats.  This option is implicitly enabled if debugging
11624 information is enabled, but this can be inhibited with the negated
11625 form \fB\-fno\-working\-directory\fR.  If the \fB\-P\fR flag is
11626 present in the command line, this option has no effect, since no
11627 \&\f(CW\*(C`#line\*(C'\fR directives are emitted whatsoever.
11628 .IP "\fB\-A\fR \fIpredicate\fR\fB=\fR\fIanswer\fR" 4
11629 .IX Item "-A predicate=answer"
11630 Make an assertion with the predicate \fIpredicate\fR and answer
11631 \&\fIanswer\fR.  This form is preferred to the older form \fB\-A\fR
11632 \&\fIpredicate\fR\fB(\fR\fIanswer\fR\fB)\fR, which is still supported, because
11633 it does not use shell special characters.
11634 .IP "\fB\-A \-\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4
11635 .IX Item "-A -predicate=answer"
11636 Cancel an assertion with the predicate \fIpredicate\fR and answer
11637 \&\fIanswer\fR.
11638 .IP "\fB\-C\fR" 4
11639 .IX Item "-C"
11640 Do not discard comments.  All comments are passed through to the output
11641 file, except for comments in processed directives, which are deleted
11642 along with the directive.
11643 .Sp
11644 You should be prepared for side effects when using \fB\-C\fR; it
11645 causes the preprocessor to treat comments as tokens in their own right.
11646 For example, comments appearing at the start of what would be a
11647 directive line have the effect of turning that line into an ordinary
11648 source line, since the first token on the line is no longer a \fB#\fR.
11649 .IP "\fB\-CC\fR" 4
11650 .IX Item "-CC"
11651 Do not discard comments, including during macro expansion.  This is
11652 like \fB\-C\fR, except that comments contained within macros are
11653 also passed through to the output file where the macro is expanded.
11654 .Sp
11655 In addition to the side effects of the \fB\-C\fR option, the
11656 \&\fB\-CC\fR option causes all \*(C+\-style comments inside a macro
11657 to be converted to C\-style comments.  This is to prevent later use
11658 of that macro from inadvertently commenting out the remainder of
11659 the source line.
11660 .Sp
11661 The \fB\-CC\fR option is generally used to support lint comments.
11662 .IP "\fB\-P\fR" 4
11663 .IX Item "-P"
11664 Inhibit generation of linemarkers in the output from the preprocessor.
11665 This might be useful when running the preprocessor on something that is
11666 not C code, and will be sent to a program which might be confused by the
11667 linemarkers.
11668 .IP "\fB\-traditional\fR" 4
11669 .IX Item "-traditional"
11670 .PD 0
11671 .IP "\fB\-traditional\-cpp\fR" 4
11672 .IX Item "-traditional-cpp"
11673 .PD
11674 Try to imitate the behavior of pre-standard C preprocessors, as
11675 opposed to \s-1ISO C\s0 preprocessors.
11676 See the \s-1GNU CPP\s0 manual for details.
11677 .Sp
11678 Note that \s-1GCC\s0 does not otherwise attempt to emulate a pre-standard 
11679 C compiler, and these options are only supported with the \fB\-E\fR 
11680 switch, or when invoking \s-1CPP\s0 explicitly.
11681 .IP "\fB\-trigraphs\fR" 4
11682 .IX Item "-trigraphs"
11683 Support \s-1ISO C\s0 trigraphs.
11684 These are three-character sequences, all starting with \fB??\fR, that
11685 are defined by \s-1ISO C\s0 to stand for single characters.  For example,
11686 \&\fB??/\fR stands for \fB\e\fR, so \fB'??/n'\fR is a character
11687 constant for a newline.
11688 .Sp
11689 The nine trigraphs and their replacements are
11690 .Sp
11691 .Vb 2
11692 \&        Trigraph:       ??(  ??)  ??<  ??>  ??=  ??/  ??\*(Aq  ??!  ??\-
11693 \&        Replacement:      [    ]    {    }    #    \e    ^    |    ~
11694 .Ve
11695 .Sp
11696 By default, \s-1GCC\s0 ignores trigraphs, but in
11697 standard-conforming modes it converts them.  See the \fB\-std\fR and
11698 \&\fB\-ansi\fR options.
11699 .IP "\fB\-remap\fR" 4
11700 .IX Item "-remap"
11701 Enable special code to work around file systems which only permit very
11702 short file names, such as MS-DOS.
11703 .IP "\fB\-H\fR" 4
11704 .IX Item "-H"
11705 Print the name of each header file used, in addition to other normal
11706 activities.  Each name is indented to show how deep in the
11707 \&\fB#include\fR stack it is.  Precompiled header files are also
11708 printed, even if they are found to be invalid; an invalid precompiled
11709 header file is printed with \fB...x\fR and a valid one with \fB...!\fR .
11710 .IP "\fB\-d\fR\fIletters\fR" 4
11711 .IX Item "-dletters"
11712 Says to make debugging dumps during compilation as specified by
11713 \&\fIletters\fR.  The flags documented here are those relevant to the
11714 preprocessor.  Other \fIletters\fR are interpreted
11715 by the compiler proper, or reserved for future versions of \s-1GCC,\s0 and so
11716 are silently ignored.  If you specify \fIletters\fR whose behavior
11717 conflicts, the result is undefined.
11718 .RS 4
11719 .IP "\fB\-dM\fR" 4
11720 .IX Item "-dM"
11721 Instead of the normal output, generate a list of \fB#define\fR
11722 directives for all the macros defined during the execution of the
11723 preprocessor, including predefined macros.  This gives you a way of
11724 finding out what is predefined in your version of the preprocessor.
11725 Assuming you have no file \fIfoo.h\fR, the command
11726 .Sp
11727 .Vb 1
11728 \&        touch foo.h; cpp \-dM foo.h
11729 .Ve
11730 .Sp
11731 shows all the predefined macros.
11732 .Sp
11733 If you use \fB\-dM\fR without the \fB\-E\fR option, \fB\-dM\fR is
11734 interpreted as a synonym for \fB\-fdump\-rtl\-mach\fR.
11735 .IP "\fB\-dD\fR" 4
11736 .IX Item "-dD"
11737 Like \fB\-dM\fR except in two respects: it does \fInot\fR include the
11738 predefined macros, and it outputs \fIboth\fR the \fB#define\fR
11739 directives and the result of preprocessing.  Both kinds of output go to
11740 the standard output file.
11741 .IP "\fB\-dN\fR" 4
11742 .IX Item "-dN"
11743 Like \fB\-dD\fR, but emit only the macro names, not their expansions.
11744 .IP "\fB\-dI\fR" 4
11745 .IX Item "-dI"
11746 Output \fB#include\fR directives in addition to the result of
11747 preprocessing.
11748 .IP "\fB\-dU\fR" 4
11749 .IX Item "-dU"
11750 Like \fB\-dD\fR except that only macros that are expanded, or whose
11751 definedness is tested in preprocessor directives, are output; the
11752 output is delayed until the use or test of the macro; and
11753 \&\fB#undef\fR directives are also output for macros tested but
11754 undefined at the time.
11755 .RE
11756 .RS 4
11757 .RE
11758 .IP "\fB\-fdebug\-cpp\fR" 4
11759 .IX Item "-fdebug-cpp"
11760 This option is only useful for debugging \s-1GCC.\s0  When used from \s-1CPP\s0 or with
11761 \&\fB\-E\fR, it dumps debugging information about location maps.  Every
11762 token in the output is preceded by the dump of the map its location
11763 belongs to.
11764 .Sp
11765 When used from \s-1GCC\s0 without \fB\-E\fR, this option has no effect.
11766 .IP "\fB\-Wp,\fR\fIoption\fR" 4
11767 .IX Item "-Wp,option"
11768 You can use \fB\-Wp,\fR\fIoption\fR to bypass the compiler driver
11769 and pass \fIoption\fR directly through to the preprocessor.  If
11770 \&\fIoption\fR contains commas, it is split into multiple options at the
11771 commas.  However, many options are modified, translated or interpreted
11772 by the compiler driver before being passed to the preprocessor, and
11773 \&\fB\-Wp\fR forcibly bypasses this phase.  The preprocessor's direct
11774 interface is undocumented and subject to change, so whenever possible
11775 you should avoid using \fB\-Wp\fR and let the driver handle the
11776 options instead.
11777 .IP "\fB\-Xpreprocessor\fR \fIoption\fR" 4
11778 .IX Item "-Xpreprocessor option"
11779 Pass \fIoption\fR as an option to the preprocessor.  You can use this to
11780 supply system-specific preprocessor options that \s-1GCC\s0 does not 
11781 recognize.
11782 .Sp
11783 If you want to pass an option that takes an argument, you must use
11784 \&\fB\-Xpreprocessor\fR twice, once for the option and once for the argument.
11785 .IP "\fB\-no\-integrated\-cpp\fR" 4
11786 .IX Item "-no-integrated-cpp"
11787 Perform preprocessing as a separate pass before compilation.
11788 By default, \s-1GCC\s0 performs preprocessing as an integrated part of
11789 input tokenization and parsing.
11790 If this option is provided, the appropriate language front end
11791 (\fBcc1\fR, \fBcc1plus\fR, or \fBcc1obj\fR for C, \*(C+,
11792 and Objective-C, respectively) is instead invoked twice,
11793 once for preprocessing only and once for actual compilation
11794 of the preprocessed input.
11795 This option may be useful in conjunction with the \fB\-B\fR or
11796 \&\fB\-wrapper\fR options to specify an alternate preprocessor or
11797 perform additional processing of the program source between
11798 normal preprocessing and compilation.
11799 .SS "Passing Options to the Assembler"
11800 .IX Subsection "Passing Options to the Assembler"
11801 You can pass options to the assembler.
11802 .IP "\fB\-Wa,\fR\fIoption\fR" 4
11803 .IX Item "-Wa,option"
11804 Pass \fIoption\fR as an option to the assembler.  If \fIoption\fR
11805 contains commas, it is split into multiple options at the commas.
11806 .IP "\fB\-Xassembler\fR \fIoption\fR" 4
11807 .IX Item "-Xassembler option"
11808 Pass \fIoption\fR as an option to the assembler.  You can use this to
11809 supply system-specific assembler options that \s-1GCC\s0 does not
11810 recognize.
11811 .Sp
11812 If you want to pass an option that takes an argument, you must use
11813 \&\fB\-Xassembler\fR twice, once for the option and once for the argument.
11814 .SS "Options for Linking"
11815 .IX Subsection "Options for Linking"
11816 These options come into play when the compiler links object files into
11817 an executable output file.  They are meaningless if the compiler is
11818 not doing a link step.
11819 .IP "\fIobject-file-name\fR" 4
11820 .IX Item "object-file-name"
11821 A file name that does not end in a special recognized suffix is
11822 considered to name an object file or library.  (Object files are
11823 distinguished from libraries by the linker according to the file
11824 contents.)  If linking is done, these object files are used as input
11825 to the linker.
11826 .IP "\fB\-c\fR" 4
11827 .IX Item "-c"
11828 .PD 0
11829 .IP "\fB\-S\fR" 4
11830 .IX Item "-S"
11831 .IP "\fB\-E\fR" 4
11832 .IX Item "-E"
11833 .PD
11834 If any of these options is used, then the linker is not run, and
11835 object file names should not be used as arguments.
11836 .IP "\fB\-fuse\-ld=bfd\fR" 4
11837 .IX Item "-fuse-ld=bfd"
11838 Use the \fBbfd\fR linker instead of the default linker.
11839 .IP "\fB\-fuse\-ld=gold\fR" 4
11840 .IX Item "-fuse-ld=gold"
11841 Use the \fBgold\fR linker instead of the default linker.
11842 .IP "\fB\-l\fR\fIlibrary\fR" 4
11843 .IX Item "-llibrary"
11844 .PD 0
11845 .IP "\fB\-l\fR \fIlibrary\fR" 4
11846 .IX Item "-l library"
11847 .PD
11848 Search the library named \fIlibrary\fR when linking.  (The second
11849 alternative with the library as a separate argument is only for
11850 \&\s-1POSIX\s0 compliance and is not recommended.)
11851 .Sp
11852 It makes a difference where in the command you write this option; the
11853 linker searches and processes libraries and object files in the order they
11854 are specified.  Thus, \fBfoo.o \-lz bar.o\fR searches library \fBz\fR
11855 after file \fIfoo.o\fR but before \fIbar.o\fR.  If \fIbar.o\fR refers
11856 to functions in \fBz\fR, those functions may not be loaded.
11857 .Sp
11858 The linker searches a standard list of directories for the library,
11859 which is actually a file named \fIlib\fIlibrary\fI.a\fR.  The linker
11860 then uses this file as if it had been specified precisely by name.
11861 .Sp
11862 The directories searched include several standard system directories
11863 plus any that you specify with \fB\-L\fR.
11864 .Sp
11865 Normally the files found this way are library files\-\-\-archive files
11866 whose members are object files.  The linker handles an archive file by
11867 scanning through it for members which define symbols that have so far
11868 been referenced but not defined.  But if the file that is found is an
11869 ordinary object file, it is linked in the usual fashion.  The only
11870 difference between using an \fB\-l\fR option and specifying a file name
11871 is that \fB\-l\fR surrounds \fIlibrary\fR with \fBlib\fR and \fB.a\fR
11872 and searches several directories.
11873 .IP "\fB\-lobjc\fR" 4
11874 .IX Item "-lobjc"
11875 You need this special case of the \fB\-l\fR option in order to
11876 link an Objective-C or Objective\-\*(C+ program.
11877 .IP "\fB\-nostartfiles\fR" 4
11878 .IX Item "-nostartfiles"
11879 Do not use the standard system startup files when linking.
11880 The standard system libraries are used normally, unless \fB\-nostdlib\fR
11881 or \fB\-nodefaultlibs\fR is used.
11882 .IP "\fB\-nodefaultlibs\fR" 4
11883 .IX Item "-nodefaultlibs"
11884 Do not use the standard system libraries when linking.
11885 Only the libraries you specify are passed to the linker, and options
11886 specifying linkage of the system libraries, such as \fB\-static\-libgcc\fR
11887 or \fB\-shared\-libgcc\fR, are ignored.  
11888 The standard startup files are used normally, unless \fB\-nostartfiles\fR
11889 is used.
11890 .Sp
11891 The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR,
11892 \&\f(CW\*(C`memset\*(C'\fR, \f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
11893 These entries are usually resolved by entries in
11894 libc.  These entry points should be supplied through some other
11895 mechanism when this option is specified.
11896 .IP "\fB\-nostdlib\fR" 4
11897 .IX Item "-nostdlib"
11898 Do not use the standard system startup files or libraries when linking.
11899 No startup files and only the libraries you specify are passed to
11900 the linker, and options specifying linkage of the system libraries, such as
11901 \&\fB\-static\-libgcc\fR or \fB\-shared\-libgcc\fR, are ignored.
11902 .Sp
11903 The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR, \f(CW\*(C`memset\*(C'\fR,
11904 \&\f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
11905 These entries are usually resolved by entries in
11906 libc.  These entry points should be supplied through some other
11907 mechanism when this option is specified.
11908 .Sp
11909 One of the standard libraries bypassed by \fB\-nostdlib\fR and
11910 \&\fB\-nodefaultlibs\fR is \fIlibgcc.a\fR, a library of internal subroutines
11911 which \s-1GCC\s0 uses to overcome shortcomings of particular machines, or special
11912 needs for some languages.
11913 .Sp
11914 In most cases, you need \fIlibgcc.a\fR even when you want to avoid
11915 other standard libraries.  In other words, when you specify \fB\-nostdlib\fR
11916 or \fB\-nodefaultlibs\fR you should usually specify \fB\-lgcc\fR as well.
11917 This ensures that you have no unresolved references to internal \s-1GCC\s0
11918 library subroutines.
11919 (An example of such an internal subroutine is \f(CW\*(C`_\|_main\*(C'\fR, used to ensure \*(C+
11920 constructors are called.)
11921 .IP "\fB\-pie\fR" 4
11922 .IX Item "-pie"
11923 Produce a dynamically linked position independent executable on targets
11924 that support it.  For predictable results, you must also specify the same
11925 set of options used for compilation (\fB\-fpie\fR, \fB\-fPIE\fR,
11926 or model suboptions) when you specify this linker option.
11927 .IP "\fB\-no\-pie\fR" 4
11928 .IX Item "-no-pie"
11929 Don't produce a dynamically linked position independent executable.
11930 .IP "\fB\-static\-pie\fR" 4
11931 .IX Item "-static-pie"
11932 Produce a static position independent executable on targets that support
11933 it.  A static position independent executable is similar to a static
11934 executable, but can be loaded at any address without a dynamic linker.
11935 For predictable results, you must also specify the same set of options
11936 used for compilation (\fB\-fpie\fR, \fB\-fPIE\fR, or model
11937 suboptions) when you specify this linker option.
11938 .IP "\fB\-pthread\fR" 4
11939 .IX Item "-pthread"
11940 Link with the \s-1POSIX\s0 threads library.  This option is supported on 
11941 GNU/Linux targets, most other Unix derivatives, and also on 
11942 x86 Cygwin and MinGW targets.  On some targets this option also sets 
11943 flags for the preprocessor, so it should be used consistently for both
11944 compilation and linking.
11945 .IP "\fB\-rdynamic\fR" 4
11946 .IX Item "-rdynamic"
11947 Pass the flag \fB\-export\-dynamic\fR to the \s-1ELF\s0 linker, on targets
11948 that support it. This instructs the linker to add all symbols, not
11949 only used ones, to the dynamic symbol table. This option is needed
11950 for some uses of \f(CW\*(C`dlopen\*(C'\fR or to allow obtaining backtraces
11951 from within a program.
11952 .IP "\fB\-s\fR" 4
11953 .IX Item "-s"
11954 Remove all symbol table and relocation information from the executable.
11955 .IP "\fB\-static\fR" 4
11956 .IX Item "-static"
11957 On systems that support dynamic linking, this overrides \fB\-pie\fR
11958 and prevents linking with the shared libraries.  On other systems, this
11959 option has no effect.
11960 .IP "\fB\-shared\fR" 4
11961 .IX Item "-shared"
11962 Produce a shared object which can then be linked with other objects to
11963 form an executable.  Not all systems support this option.  For predictable
11964 results, you must also specify the same set of options used for compilation
11965 (\fB\-fpic\fR, \fB\-fPIC\fR, or model suboptions) when
11966 you specify this linker option.[1]
11967 .IP "\fB\-shared\-libgcc\fR" 4
11968 .IX Item "-shared-libgcc"
11969 .PD 0
11970 .IP "\fB\-static\-libgcc\fR" 4
11971 .IX Item "-static-libgcc"
11972 .PD
11973 On systems that provide \fIlibgcc\fR as a shared library, these options
11974 force the use of either the shared or static version, respectively.
11975 If no shared version of \fIlibgcc\fR was built when the compiler was
11976 configured, these options have no effect.
11977 .Sp
11978 There are several situations in which an application should use the
11979 shared \fIlibgcc\fR instead of the static version.  The most common
11980 of these is when the application wishes to throw and catch exceptions
11981 across different shared libraries.  In that case, each of the libraries
11982 as well as the application itself should use the shared \fIlibgcc\fR.
11983 .Sp
11984 Therefore, the G++ driver automatically adds \fB\-shared\-libgcc\fR
11985 whenever you build a shared library or a main executable, because \*(C+
11986 programs typically use exceptions, so this is the right thing to do.
11987 .Sp
11988 If, instead, you use the \s-1GCC\s0 driver to create shared libraries, you may
11989 find that they are not always linked with the shared \fIlibgcc\fR.
11990 If \s-1GCC\s0 finds, at its configuration time, that you have a non-GNU linker
11991 or a \s-1GNU\s0 linker that does not support option \fB\-\-eh\-frame\-hdr\fR,
11992 it links the shared version of \fIlibgcc\fR into shared libraries
11993 by default.  Otherwise, it takes advantage of the linker and optimizes
11994 away the linking with the shared version of \fIlibgcc\fR, linking with
11995 the static version of libgcc by default.  This allows exceptions to
11996 propagate through such shared libraries, without incurring relocation
11997 costs at library load time.
11998 .Sp
11999 However, if a library or main executable is supposed to throw or catch
12000 exceptions, you must link it using the G++ driver, or using the option
12001 \&\fB\-shared\-libgcc\fR, such that it is linked with the shared
12002 \&\fIlibgcc\fR.
12003 .IP "\fB\-static\-libasan\fR" 4
12004 .IX Item "-static-libasan"
12005 When the \fB\-fsanitize=address\fR option is used to link a program,
12006 the \s-1GCC\s0 driver automatically links against \fBlibasan\fR.  If
12007 \&\fIlibasan\fR is available as a shared library, and the \fB\-static\fR
12008 option is not used, then this links against the shared version of
12009 \&\fIlibasan\fR.  The \fB\-static\-libasan\fR option directs the \s-1GCC\s0
12010 driver to link \fIlibasan\fR statically, without necessarily linking
12011 other libraries statically.
12012 .IP "\fB\-static\-libtsan\fR" 4
12013 .IX Item "-static-libtsan"
12014 When the \fB\-fsanitize=thread\fR option is used to link a program,
12015 the \s-1GCC\s0 driver automatically links against \fBlibtsan\fR.  If
12016 \&\fIlibtsan\fR is available as a shared library, and the \fB\-static\fR
12017 option is not used, then this links against the shared version of
12018 \&\fIlibtsan\fR.  The \fB\-static\-libtsan\fR option directs the \s-1GCC\s0
12019 driver to link \fIlibtsan\fR statically, without necessarily linking
12020 other libraries statically.
12021 .IP "\fB\-static\-liblsan\fR" 4
12022 .IX Item "-static-liblsan"
12023 When the \fB\-fsanitize=leak\fR option is used to link a program,
12024 the \s-1GCC\s0 driver automatically links against \fBliblsan\fR.  If
12025 \&\fIliblsan\fR is available as a shared library, and the \fB\-static\fR
12026 option is not used, then this links against the shared version of
12027 \&\fIliblsan\fR.  The \fB\-static\-liblsan\fR option directs the \s-1GCC\s0
12028 driver to link \fIliblsan\fR statically, without necessarily linking
12029 other libraries statically.
12030 .IP "\fB\-static\-libubsan\fR" 4
12031 .IX Item "-static-libubsan"
12032 When the \fB\-fsanitize=undefined\fR option is used to link a program,
12033 the \s-1GCC\s0 driver automatically links against \fBlibubsan\fR.  If
12034 \&\fIlibubsan\fR is available as a shared library, and the \fB\-static\fR
12035 option is not used, then this links against the shared version of
12036 \&\fIlibubsan\fR.  The \fB\-static\-libubsan\fR option directs the \s-1GCC\s0
12037 driver to link \fIlibubsan\fR statically, without necessarily linking
12038 other libraries statically.
12039 .IP "\fB\-static\-libmpx\fR" 4
12040 .IX Item "-static-libmpx"
12041 When the \fB\-fcheck\-pointer bounds\fR and \fB\-mmpx\fR options are
12042 used to link a program, the \s-1GCC\s0 driver automatically links against
12043 \&\fIlibmpx\fR.  If \fIlibmpx\fR is available as a shared library,
12044 and the \fB\-static\fR option is not used, then this links against
12045 the shared version of \fIlibmpx\fR.  The \fB\-static\-libmpx\fR
12046 option directs the \s-1GCC\s0 driver to link \fIlibmpx\fR statically,
12047 without necessarily linking other libraries statically.
12048 .IP "\fB\-static\-libmpxwrappers\fR" 4
12049 .IX Item "-static-libmpxwrappers"
12050 When the \fB\-fcheck\-pointer bounds\fR and \fB\-mmpx\fR options are used
12051 to link a program without also using \fB\-fno\-chkp\-use\-wrappers\fR, the
12052 \&\s-1GCC\s0 driver automatically links against \fIlibmpxwrappers\fR.  If
12053 \&\fIlibmpxwrappers\fR is available as a shared library, and the
12054 \&\fB\-static\fR option is not used, then this links against the shared
12055 version of \fIlibmpxwrappers\fR.  The \fB\-static\-libmpxwrappers\fR
12056 option directs the \s-1GCC\s0 driver to link \fIlibmpxwrappers\fR statically,
12057 without necessarily linking other libraries statically.
12058 .IP "\fB\-static\-libstdc++\fR" 4
12059 .IX Item "-static-libstdc++"
12060 When the \fBg++\fR program is used to link a \*(C+ program, it
12061 normally automatically links against \fBlibstdc++\fR.  If
12062 \&\fIlibstdc++\fR is available as a shared library, and the
12063 \&\fB\-static\fR option is not used, then this links against the
12064 shared version of \fIlibstdc++\fR.  That is normally fine.  However, it
12065 is sometimes useful to freeze the version of \fIlibstdc++\fR used by
12066 the program without going all the way to a fully static link.  The
12067 \&\fB\-static\-libstdc++\fR option directs the \fBg++\fR driver to
12068 link \fIlibstdc++\fR statically, without necessarily linking other
12069 libraries statically.
12070 .IP "\fB\-symbolic\fR" 4
12071 .IX Item "-symbolic"
12072 Bind references to global symbols when building a shared object.  Warn
12073 about any unresolved references (unless overridden by the link editor
12074 option \fB\-Xlinker \-z \-Xlinker defs\fR).  Only a few systems support
12075 this option.
12076 .IP "\fB\-T\fR \fIscript\fR" 4
12077 .IX Item "-T script"
12078 Use \fIscript\fR as the linker script.  This option is supported by most
12079 systems using the \s-1GNU\s0 linker.  On some targets, such as bare-board
12080 targets without an operating system, the \fB\-T\fR option may be required
12081 when linking to avoid references to undefined symbols.
12082 .IP "\fB\-Xlinker\fR \fIoption\fR" 4
12083 .IX Item "-Xlinker option"
12084 Pass \fIoption\fR as an option to the linker.  You can use this to
12085 supply system-specific linker options that \s-1GCC\s0 does not recognize.
12086 .Sp
12087 If you want to pass an option that takes a separate argument, you must use
12088 \&\fB\-Xlinker\fR twice, once for the option and once for the argument.
12089 For example, to pass \fB\-assert definitions\fR, you must write
12090 \&\fB\-Xlinker \-assert \-Xlinker definitions\fR.  It does not work to write
12091 \&\fB\-Xlinker \*(L"\-assert definitions\*(R"\fR, because this passes the entire
12092 string as a single argument, which is not what the linker expects.
12093 .Sp
12094 When using the \s-1GNU\s0 linker, it is usually more convenient to pass
12095 arguments to linker options using the \fIoption\fR\fB=\fR\fIvalue\fR
12096 syntax than as separate arguments.  For example, you can specify
12097 \&\fB\-Xlinker \-Map=output.map\fR rather than
12098 \&\fB\-Xlinker \-Map \-Xlinker output.map\fR.  Other linkers may not support
12099 this syntax for command-line options.
12100 .IP "\fB\-Wl,\fR\fIoption\fR" 4
12101 .IX Item "-Wl,option"
12102 Pass \fIoption\fR as an option to the linker.  If \fIoption\fR contains
12103 commas, it is split into multiple options at the commas.  You can use this
12104 syntax to pass an argument to the option.
12105 For example, \fB\-Wl,\-Map,output.map\fR passes \fB\-Map output.map\fR to the
12106 linker.  When using the \s-1GNU\s0 linker, you can also get the same effect with
12107 \&\fB\-Wl,\-Map=output.map\fR.
12108 .IP "\fB\-u\fR \fIsymbol\fR" 4
12109 .IX Item "-u symbol"
12110 Pretend the symbol \fIsymbol\fR is undefined, to force linking of
12111 library modules to define it.  You can use \fB\-u\fR multiple times with
12112 different symbols to force loading of additional library modules.
12113 .IP "\fB\-z\fR \fIkeyword\fR" 4
12114 .IX Item "-z keyword"
12115 \&\fB\-z\fR is passed directly on to the linker along with the keyword
12116 \&\fIkeyword\fR. See the section in the documentation of your linker for
12117 permitted values and their meanings.
12118 .SS "Options for Directory Search"
12119 .IX Subsection "Options for Directory Search"
12120 These options specify directories to search for header files, for
12121 libraries and for parts of the compiler:
12122 .IP "\fB\-I\fR \fIdir\fR" 4
12123 .IX Item "-I dir"
12124 .PD 0
12125 .IP "\fB\-iquote\fR \fIdir\fR" 4
12126 .IX Item "-iquote dir"
12127 .IP "\fB\-isystem\fR \fIdir\fR" 4
12128 .IX Item "-isystem dir"
12129 .IP "\fB\-idirafter\fR \fIdir\fR" 4
12130 .IX Item "-idirafter dir"
12131 .PD
12132 Add the directory \fIdir\fR to the list of directories to be searched
12133 for header files during preprocessing.
12134 If \fIdir\fR begins with \fB=\fR or \f(CW$SYSROOT\fR, then the \fB=\fR
12135 or \f(CW$SYSROOT\fR is replaced by the sysroot prefix; see
12136 \&\fB\-\-sysroot\fR and \fB\-isysroot\fR.
12137 .Sp
12138 Directories specified with \fB\-iquote\fR apply only to the quote 
12139 form of the directive, \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR.
12140 Directories specified with \fB\-I\fR, \fB\-isystem\fR, 
12141 or \fB\-idirafter\fR apply to lookup for both the
12142 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR and
12143 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR directives.
12144 .Sp
12145 You can specify any number or combination of these options on the 
12146 command line to search for header files in several directories.  
12147 The lookup order is as follows:
12148 .RS 4
12149 .IP "1." 4
12150 .IX Item "1."
12151 For the quote form of the include directive, the directory of the current
12152 file is searched first.
12153 .IP "2." 4
12154 .IX Item "2."
12155 For the quote form of the include directive, the directories specified
12156 by \fB\-iquote\fR options are searched in left-to-right order,
12157 as they appear on the command line.
12158 .IP "3." 4
12159 .IX Item "3."
12160 Directories specified with \fB\-I\fR options are scanned in
12161 left-to-right order.
12162 .IP "4." 4
12163 .IX Item "4."
12164 Directories specified with \fB\-isystem\fR options are scanned in
12165 left-to-right order.
12166 .IP "5." 4
12167 .IX Item "5."
12168 Standard system directories are scanned.
12169 .IP "6." 4
12170 .IX Item "6."
12171 Directories specified with \fB\-idirafter\fR options are scanned in
12172 left-to-right order.
12173 .RE
12174 .RS 4
12175 .Sp
12176 You can use \fB\-I\fR to override a system header
12177 file, substituting your own version, since these directories are
12178 searched before the standard system header file directories.  
12179 However, you should
12180 not use this option to add directories that contain vendor-supplied
12181 system header files; use \fB\-isystem\fR for that.
12182 .Sp
12183 The \fB\-isystem\fR and \fB\-idirafter\fR options also mark the directory
12184 as a system directory, so that it gets the same special treatment that
12185 is applied to the standard system directories.
12186 .Sp
12187 If a standard system include directory, or a directory specified with
12188 \&\fB\-isystem\fR, is also specified with \fB\-I\fR, the \fB\-I\fR
12189 option is ignored.  The directory is still searched but as a
12190 system directory at its normal position in the system include chain.
12191 This is to ensure that \s-1GCC\s0's procedure to fix buggy system headers and
12192 the ordering for the \f(CW\*(C`#include_next\*(C'\fR directive are not inadvertently
12193 changed.
12194 If you really need to change the search order for system directories,
12195 use the \fB\-nostdinc\fR and/or \fB\-isystem\fR options.
12196 .RE
12197 .IP "\fB\-I\-\fR" 4
12198 .IX Item "-I-"
12199 Split the include path.
12200 This option has been deprecated.  Please use \fB\-iquote\fR instead for
12201 \&\fB\-I\fR directories before the \fB\-I\-\fR and remove the \fB\-I\-\fR
12202 option.
12203 .Sp
12204 Any directories specified with \fB\-I\fR
12205 options before \fB\-I\-\fR are searched only for headers requested with
12206 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
12207 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR.  If additional directories are
12208 specified with \fB\-I\fR options after the \fB\-I\-\fR, those
12209 directories are searched for all \fB#include\fR directives.
12210 .Sp
12211 In addition, \fB\-I\-\fR inhibits the use of the directory of the current
12212 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.
12213 .IP "\fB\-iprefix\fR \fIprefix\fR" 4
12214 .IX Item "-iprefix prefix"
12215 Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
12216 options.  If the prefix represents a directory, you should include the
12217 final \fB/\fR.
12218 .IP "\fB\-iwithprefix\fR \fIdir\fR" 4
12219 .IX Item "-iwithprefix dir"
12220 .PD 0
12221 .IP "\fB\-iwithprefixbefore\fR \fIdir\fR" 4
12222 .IX Item "-iwithprefixbefore dir"
12223 .PD
12224 Append \fIdir\fR to the prefix specified previously with
12225 \&\fB\-iprefix\fR, and add the resulting directory to the include search
12226 path.  \fB\-iwithprefixbefore\fR puts it in the same place \fB\-I\fR
12227 would; \fB\-iwithprefix\fR puts it where \fB\-idirafter\fR would.
12228 .IP "\fB\-isysroot\fR \fIdir\fR" 4
12229 .IX Item "-isysroot dir"
12230 This option is like the \fB\-\-sysroot\fR option, but applies only to
12231 header files (except for Darwin targets, where it applies to both header
12232 files and libraries).  See the \fB\-\-sysroot\fR option for more
12233 information.
12234 .IP "\fB\-imultilib\fR \fIdir\fR" 4
12235 .IX Item "-imultilib dir"
12236 Use \fIdir\fR as a subdirectory of the directory containing
12237 target-specific \*(C+ headers.
12238 .IP "\fB\-nostdinc\fR" 4
12239 .IX Item "-nostdinc"
12240 Do not search the standard system directories for header files.
12241 Only the directories explicitly specified with \fB\-I\fR,
12242 \&\fB\-iquote\fR, \fB\-isystem\fR, and/or \fB\-idirafter\fR
12243 options (and the directory of the current file, if appropriate) 
12244 are searched.
12245 .IP "\fB\-nostdinc++\fR" 4
12246 .IX Item "-nostdinc++"
12247 Do not search for header files in the \*(C+\-specific standard directories,
12248 but do still search the other standard directories.  (This option is
12249 used when building the \*(C+ library.)
12250 .IP "\fB\-iplugindir=\fR\fIdir\fR" 4
12251 .IX Item "-iplugindir=dir"
12252 Set the directory to search for plugins that are passed
12253 by \fB\-fplugin=\fR\fIname\fR instead of
12254 \&\fB\-fplugin=\fR\fIpath\fR\fB/\fR\fIname\fR\fB.so\fR.  This option is not meant
12255 to be used by the user, but only passed by the driver.
12256 .IP "\fB\-L\fR\fIdir\fR" 4
12257 .IX Item "-Ldir"
12258 Add directory \fIdir\fR to the list of directories to be searched
12259 for \fB\-l\fR.
12260 .IP "\fB\-B\fR\fIprefix\fR" 4
12261 .IX Item "-Bprefix"
12262 This option specifies where to find the executables, libraries,
12263 include files, and data files of the compiler itself.
12264 .Sp
12265 The compiler driver program runs one or more of the subprograms
12266 \&\fBcpp\fR, \fBcc1\fR, \fBas\fR and \fBld\fR.  It tries
12267 \&\fIprefix\fR as a prefix for each program it tries to run, both with and
12268 without \fImachine\fR\fB/\fR\fIversion\fR\fB/\fR for the corresponding target
12269 machine and compiler version.
12270 .Sp
12271 For each subprogram to be run, the compiler driver first tries the
12272 \&\fB\-B\fR prefix, if any.  If that name is not found, or if \fB\-B\fR
12273 is not specified, the driver tries two standard prefixes, 
12274 \&\fI/usr/lib/gcc/\fR and \fI/usr/local/lib/gcc/\fR.  If neither of
12275 those results in a file name that is found, the unmodified program
12276 name is searched for using the directories specified in your
12277 \&\fB\s-1PATH\s0\fR environment variable.
12278 .Sp
12279 The compiler checks to see if the path provided by \fB\-B\fR
12280 refers to a directory, and if necessary it adds a directory
12281 separator character at the end of the path.
12282 .Sp
12283 \&\fB\-B\fR prefixes that effectively specify directory names also apply
12284 to libraries in the linker, because the compiler translates these
12285 options into \fB\-L\fR options for the linker.  They also apply to
12286 include files in the preprocessor, because the compiler translates these
12287 options into \fB\-isystem\fR options for the preprocessor.  In this case,
12288 the compiler appends \fBinclude\fR to the prefix.
12289 .Sp
12290 The runtime support file \fIlibgcc.a\fR can also be searched for using
12291 the \fB\-B\fR prefix, if needed.  If it is not found there, the two
12292 standard prefixes above are tried, and that is all.  The file is left
12293 out of the link if it is not found by those means.
12294 .Sp
12295 Another way to specify a prefix much like the \fB\-B\fR prefix is to use
12296 the environment variable \fB\s-1GCC_EXEC_PREFIX\s0\fR.
12297 .Sp
12298 As a special kludge, if the path provided by \fB\-B\fR is
12299 \&\fI[dir/]stage\fIN\fI/\fR, where \fIN\fR is a number in the range 0 to
12300 9, then it is replaced by \fI[dir/]include\fR.  This is to help
12301 with boot-strapping the compiler.
12302 .IP "\fB\-no\-canonical\-prefixes\fR" 4
12303 .IX Item "-no-canonical-prefixes"
12304 Do not expand any symbolic links, resolve references to \fB/../\fR
12305 or \fB/./\fR, or make the path absolute when generating a relative
12306 prefix.
12307 .IP "\fB\-\-sysroot=\fR\fIdir\fR" 4
12308 .IX Item "--sysroot=dir"
12309 Use \fIdir\fR as the logical root directory for headers and libraries.
12310 For example, if the compiler normally searches for headers in
12311 \&\fI/usr/include\fR and libraries in \fI/usr/lib\fR, it instead
12312 searches \fI\fIdir\fI/usr/include\fR and \fI\fIdir\fI/usr/lib\fR.
12313 .Sp
12314 If you use both this option and the \fB\-isysroot\fR option, then
12315 the \fB\-\-sysroot\fR option applies to libraries, but the
12316 \&\fB\-isysroot\fR option applies to header files.
12317 .Sp
12318 The \s-1GNU\s0 linker (beginning with version 2.16) has the necessary support
12319 for this option.  If your linker does not support this option, the
12320 header file aspect of \fB\-\-sysroot\fR still works, but the
12321 library aspect does not.
12322 .IP "\fB\-\-no\-sysroot\-suffix\fR" 4
12323 .IX Item "--no-sysroot-suffix"
12324 For some targets, a suffix is added to the root directory specified
12325 with \fB\-\-sysroot\fR, depending on the other options used, so that
12326 headers may for example be found in
12327 \&\fI\fIdir\fI/\fIsuffix\fI/usr/include\fR instead of
12328 \&\fI\fIdir\fI/usr/include\fR.  This option disables the addition of
12329 such a suffix.
12330 .SS "Options for Code Generation Conventions"
12331 .IX Subsection "Options for Code Generation Conventions"
12332 These machine-independent options control the interface conventions
12333 used in code generation.
12334 .PP
12335 Most of them have both positive and negative forms; the negative form
12336 of \fB\-ffoo\fR is \fB\-fno\-foo\fR.  In the table below, only
12337 one of the forms is listed\-\-\-the one that is not the default.  You
12338 can figure out the other form by either removing \fBno\-\fR or adding
12339 it.
12340 .IP "\fB\-fstack\-reuse=\fR\fIreuse-level\fR" 4
12341 .IX Item "-fstack-reuse=reuse-level"
12342 This option controls stack space reuse for user declared local/auto variables
12343 and compiler generated temporaries.  \fIreuse_level\fR can be \fBall\fR,
12344 \&\fBnamed_vars\fR, or \fBnone\fR. \fBall\fR enables stack reuse for all
12345 local variables and temporaries, \fBnamed_vars\fR enables the reuse only for
12346 user defined local variables with names, and \fBnone\fR disables stack reuse
12347 completely. The default value is \fBall\fR. The option is needed when the
12348 program extends the lifetime of a scoped local variable or a compiler generated
12349 temporary beyond the end point defined by the language.  When a lifetime of
12350 a variable ends, and if the variable lives in memory, the optimizing compiler
12351 has the freedom to reuse its stack space with other temporaries or scoped
12352 local variables whose live range does not overlap with it. Legacy code extending
12353 local lifetime is likely to break with the stack reuse optimization.
12354 .Sp
12355 For example,
12356 .Sp
12357 .Vb 3
12358 \&           int *p;
12359 \&           {
12360 \&             int local1;
12361 \&        
12362 \&             p = &local1;
12363 \&             local1 = 10;
12364 \&             ....
12365 \&           }
12366 \&           {
12367 \&              int local2;
12368 \&              local2 = 20;
12369 \&              ...
12370 \&           }
12371 \&        
12372 \&           if (*p == 10)  // out of scope use of local1
12373 \&             {
12374 \&        
12375 \&             }
12376 .Ve
12377 .Sp
12378 Another example:
12379 .Sp
12380 .Vb 6
12381 \&           struct A
12382 \&           {
12383 \&               A(int k) : i(k), j(k) { }
12384 \&               int i;
12385 \&               int j;
12386 \&           };
12387 \&        
12388 \&           A *ap;
12389 \&        
12390 \&           void foo(const A& ar)
12391 \&           {
12392 \&              ap = &ar;
12393 \&           }
12394 \&        
12395 \&           void bar()
12396 \&           {
12397 \&              foo(A(10)); // temp object\*(Aqs lifetime ends when foo returns
12398 \&        
12399 \&              {
12400 \&                A a(20);
12401 \&                ....
12402 \&              }
12403 \&              ap\->i+= 10;  // ap references out of scope temp whose space
12404 \&                           // is reused with a. What is the value of ap\->i?
12405 \&           }
12406 .Ve
12407 .Sp
12408 The lifetime of a compiler generated temporary is well defined by the \*(C+
12409 standard. When a lifetime of a temporary ends, and if the temporary lives
12410 in memory, the optimizing compiler has the freedom to reuse its stack
12411 space with other temporaries or scoped local variables whose live range
12412 does not overlap with it. However some of the legacy code relies on
12413 the behavior of older compilers in which temporaries' stack space is
12414 not reused, the aggressive stack reuse can lead to runtime errors. This
12415 option is used to control the temporary stack reuse optimization.
12416 .IP "\fB\-ftrapv\fR" 4
12417 .IX Item "-ftrapv"
12418 This option generates traps for signed overflow on addition, subtraction,
12419 multiplication operations.
12420 The options \fB\-ftrapv\fR and \fB\-fwrapv\fR override each other, so using
12421 \&\fB\-ftrapv\fR \fB\-fwrapv\fR on the command-line results in
12422 \&\fB\-fwrapv\fR being effective.  Note that only active options override, so
12423 using \fB\-ftrapv\fR \fB\-fwrapv\fR \fB\-fno\-wrapv\fR on the command-line
12424 results in \fB\-ftrapv\fR being effective.
12425 .IP "\fB\-fwrapv\fR" 4
12426 .IX Item "-fwrapv"
12427 This option instructs the compiler to assume that signed arithmetic
12428 overflow of addition, subtraction and multiplication wraps around
12429 using twos-complement representation.  This flag enables some optimizations
12430 and disables others.
12431 The options \fB\-ftrapv\fR and \fB\-fwrapv\fR override each other, so using
12432 \&\fB\-ftrapv\fR \fB\-fwrapv\fR on the command-line results in
12433 \&\fB\-fwrapv\fR being effective.  Note that only active options override, so
12434 using \fB\-ftrapv\fR \fB\-fwrapv\fR \fB\-fno\-wrapv\fR on the command-line
12435 results in \fB\-ftrapv\fR being effective.
12436 .IP "\fB\-fwrapv\-pointer\fR" 4
12437 .IX Item "-fwrapv-pointer"
12438 This option instructs the compiler to assume that pointer arithmetic
12439 overflow on addition and subtraction wraps around using twos-complement
12440 representation.  This flag disables some optimizations which assume
12441 pointer overflow is invalid.
12442 .IP "\fB\-fstrict\-overflow\fR" 4
12443 .IX Item "-fstrict-overflow"
12444 This option implies \fB\-fno\-wrapv\fR \fB\-fno\-wrapv\-pointer\fR and when
12445 negated implies \fB\-fwrapv\fR \fB\-fwrapv\-pointer\fR.
12446 .IP "\fB\-fexceptions\fR" 4
12447 .IX Item "-fexceptions"
12448 Enable exception handling.  Generates extra code needed to propagate
12449 exceptions.  For some targets, this implies \s-1GCC\s0 generates frame
12450 unwind information for all functions, which can produce significant data
12451 size overhead, although it does not affect execution.  If you do not
12452 specify this option, \s-1GCC\s0 enables it by default for languages like
12453 \&\*(C+ that normally require exception handling, and disables it for
12454 languages like C that do not normally require it.  However, you may need
12455 to enable this option when compiling C code that needs to interoperate
12456 properly with exception handlers written in \*(C+.  You may also wish to
12457 disable this option if you are compiling older \*(C+ programs that don't
12458 use exception handling.
12459 .IP "\fB\-fnon\-call\-exceptions\fR" 4
12460 .IX Item "-fnon-call-exceptions"
12461 Generate code that allows trapping instructions to throw exceptions.
12462 Note that this requires platform-specific runtime support that does
12463 not exist everywhere.  Moreover, it only allows \fItrapping\fR
12464 instructions to throw exceptions, i.e. memory references or floating-point
12465 instructions.  It does not allow exceptions to be thrown from
12466 arbitrary signal handlers such as \f(CW\*(C`SIGALRM\*(C'\fR.
12467 .IP "\fB\-fdelete\-dead\-exceptions\fR" 4
12468 .IX Item "-fdelete-dead-exceptions"
12469 Consider that instructions that may throw exceptions but don't otherwise
12470 contribute to the execution of the program can be optimized away.
12471 This option is enabled by default for the Ada front end, as permitted by
12472 the Ada language specification.
12473 Optimization passes that cause dead exceptions to be removed are enabled independently at different optimization levels.
12474 .IP "\fB\-funwind\-tables\fR" 4
12475 .IX Item "-funwind-tables"
12476 Similar to \fB\-fexceptions\fR, except that it just generates any needed
12477 static data, but does not affect the generated code in any other way.
12478 You normally do not need to enable this option; instead, a language processor
12479 that needs this handling enables it on your behalf.
12480 .IP "\fB\-fasynchronous\-unwind\-tables\fR" 4
12481 .IX Item "-fasynchronous-unwind-tables"
12482 Generate unwind table in \s-1DWARF\s0 format, if supported by target machine.  The
12483 table is exact at each instruction boundary, so it can be used for stack
12484 unwinding from asynchronous events (such as debugger or garbage collector).
12485 .IP "\fB\-fno\-gnu\-unique\fR" 4
12486 .IX Item "-fno-gnu-unique"
12487 On systems with recent \s-1GNU\s0 assembler and C library, the \*(C+ compiler
12488 uses the \f(CW\*(C`STB_GNU_UNIQUE\*(C'\fR binding to make sure that definitions
12489 of template static data members and static local variables in inline
12490 functions are unique even in the presence of \f(CW\*(C`RTLD_LOCAL\*(C'\fR; this
12491 is necessary to avoid problems with a library used by two different
12492 \&\f(CW\*(C`RTLD_LOCAL\*(C'\fR plugins depending on a definition in one of them and
12493 therefore disagreeing with the other one about the binding of the
12494 symbol.  But this causes \f(CW\*(C`dlclose\*(C'\fR to be ignored for affected
12495 DSOs; if your program relies on reinitialization of a \s-1DSO\s0 via
12496 \&\f(CW\*(C`dlclose\*(C'\fR and \f(CW\*(C`dlopen\*(C'\fR, you can use
12497 \&\fB\-fno\-gnu\-unique\fR.
12498 .IP "\fB\-fpcc\-struct\-return\fR" 4
12499 .IX Item "-fpcc-struct-return"
12500 Return \*(L"short\*(R" \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in memory like
12501 longer ones, rather than in registers.  This convention is less
12502 efficient, but it has the advantage of allowing intercallability between
12503 GCC-compiled files and files compiled with other compilers, particularly
12504 the Portable C Compiler (pcc).
12505 .Sp
12506 The precise convention for returning structures in memory depends
12507 on the target configuration macros.
12508 .Sp
12509 Short structures and unions are those whose size and alignment match
12510 that of some integer type.
12511 .Sp
12512 \&\fBWarning:\fR code compiled with the \fB\-fpcc\-struct\-return\fR
12513 switch is not binary compatible with code compiled with the
12514 \&\fB\-freg\-struct\-return\fR switch.
12515 Use it to conform to a non-default application binary interface.
12516 .IP "\fB\-freg\-struct\-return\fR" 4
12517 .IX Item "-freg-struct-return"
12518 Return \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in registers when possible.
12519 This is more efficient for small structures than
12520 \&\fB\-fpcc\-struct\-return\fR.
12521 .Sp
12522 If you specify neither \fB\-fpcc\-struct\-return\fR nor
12523 \&\fB\-freg\-struct\-return\fR, \s-1GCC\s0 defaults to whichever convention is
12524 standard for the target.  If there is no standard convention, \s-1GCC\s0
12525 defaults to \fB\-fpcc\-struct\-return\fR, except on targets where \s-1GCC\s0 is
12526 the principal compiler.  In those cases, we can choose the standard, and
12527 we chose the more efficient register return alternative.
12528 .Sp
12529 \&\fBWarning:\fR code compiled with the \fB\-freg\-struct\-return\fR
12530 switch is not binary compatible with code compiled with the
12531 \&\fB\-fpcc\-struct\-return\fR switch.
12532 Use it to conform to a non-default application binary interface.
12533 .IP "\fB\-fshort\-enums\fR" 4
12534 .IX Item "-fshort-enums"
12535 Allocate to an \f(CW\*(C`enum\*(C'\fR type only as many bytes as it needs for the
12536 declared range of possible values.  Specifically, the \f(CW\*(C`enum\*(C'\fR type
12537 is equivalent to the smallest integer type that has enough room.
12538 .Sp
12539 \&\fBWarning:\fR the \fB\-fshort\-enums\fR switch causes \s-1GCC\s0 to generate
12540 code that is not binary compatible with code generated without that switch.
12541 Use it to conform to a non-default application binary interface.
12542 .IP "\fB\-fshort\-wchar\fR" 4
12543 .IX Item "-fshort-wchar"
12544 Override the underlying type for \f(CW\*(C`wchar_t\*(C'\fR to be \f(CW\*(C`short
12545 unsigned int\*(C'\fR instead of the default for the target.  This option is
12546 useful for building programs to run under \s-1WINE.\s0
12547 .Sp
12548 \&\fBWarning:\fR the \fB\-fshort\-wchar\fR switch causes \s-1GCC\s0 to generate
12549 code that is not binary compatible with code generated without that switch.
12550 Use it to conform to a non-default application binary interface.
12551 .IP "\fB\-fno\-common\fR" 4
12552 .IX Item "-fno-common"
12553 In C code, this option controls the placement of global variables 
12554 defined without an initializer, known as \fItentative definitions\fR 
12555 in the C standard.  Tentative definitions are distinct from declarations 
12556 of a variable with the \f(CW\*(C`extern\*(C'\fR keyword, which do not allocate storage.
12557 .Sp
12558 Unix C compilers have traditionally allocated storage for
12559 uninitialized global variables in a common block.  This allows the
12560 linker to resolve all tentative definitions of the same variable
12561 in different compilation units to the same object, or to a non-tentative
12562 definition.  
12563 This is the behavior specified by \fB\-fcommon\fR, and is the default for 
12564 \&\s-1GCC\s0 on most targets.  
12565 On the other hand, this behavior is not required by \s-1ISO
12566 C,\s0 and on some targets may carry a speed or code size penalty on
12567 variable references.
12568 .Sp
12569 The \fB\-fno\-common\fR option specifies that the compiler should instead
12570 place uninitialized global variables in the data section of the object file.
12571 This inhibits the merging of tentative definitions by the linker so
12572 you get a multiple-definition error if the same 
12573 variable is defined in more than one compilation unit.
12574 Compiling with \fB\-fno\-common\fR is useful on targets for which
12575 it provides better performance, or if you wish to verify that the
12576 program will work on other systems that always treat uninitialized
12577 variable definitions this way.
12578 .IP "\fB\-fno\-ident\fR" 4
12579 .IX Item "-fno-ident"
12580 Ignore the \f(CW\*(C`#ident\*(C'\fR directive.
12581 .IP "\fB\-finhibit\-size\-directive\fR" 4
12582 .IX Item "-finhibit-size-directive"
12583 Don't output a \f(CW\*(C`.size\*(C'\fR assembler directive, or anything else that
12584 would cause trouble if the function is split in the middle, and the
12585 two halves are placed at locations far apart in memory.  This option is
12586 used when compiling \fIcrtstuff.c\fR; you should not need to use it
12587 for anything else.
12588 .IP "\fB\-fverbose\-asm\fR" 4
12589 .IX Item "-fverbose-asm"
12590 Put extra commentary information in the generated assembly code to
12591 make it more readable.  This option is generally only of use to those
12592 who actually need to read the generated assembly code (perhaps while
12593 debugging the compiler itself).
12594 .Sp
12595 \&\fB\-fno\-verbose\-asm\fR, the default, causes the
12596 extra information to be omitted and is useful when comparing two assembler
12597 files.
12598 .Sp
12599 The added comments include:
12600 .RS 4
12601 .IP "*" 4
12602 information on the compiler version and command-line options,
12603 .IP "*" 4
12604 the source code lines associated with the assembly instructions,
12605 in the form \s-1FILENAME:LINENUMBER:CONTENT OF LINE,\s0
12606 .IP "*" 4
12607 hints on which high-level expressions correspond to
12608 the various assembly instruction operands.
12609 .RE
12610 .RS 4
12611 .Sp
12612 For example, given this C source file:
12613 .Sp
12614 .Vb 4
12615 \&        int test (int n)
12616 \&        {
12617 \&          int i;
12618 \&          int total = 0;
12619 \&        
12620 \&          for (i = 0; i < n; i++)
12621 \&            total += i * i;
12622 \&        
12623 \&          return total;
12624 \&        }
12625 .Ve
12626 .Sp
12627 compiling to (x86_64) assembly via \fB\-S\fR and emitting the result
12628 direct to stdout via \fB\-o\fR \fB\-\fR
12629 .Sp
12630 .Vb 1
12631 \&        gcc \-S test.c \-fverbose\-asm \-Os \-o \-
12632 .Ve
12633 .Sp
12634 gives output similar to this:
12635 .Sp
12636 .Vb 5
12637 \&                .file   "test.c"
12638 \&        # GNU C11 (GCC) version 7.0.0 20160809 (experimental) (x86_64\-pc\-linux\-gnu)
12639 \&          [...snip...]
12640 \&        # options passed:
12641 \&          [...snip...]
12642 \&        
12643 \&                .text
12644 \&                .globl  test
12645 \&                .type   test, @function
12646 \&        test:
12647 \&        .LFB0:
12648 \&                .cfi_startproc
12649 \&        # test.c:4:   int total = 0;
12650 \&                xorl    %eax, %eax      # <retval>
12651 \&        # test.c:6:   for (i = 0; i < n; i++)
12652 \&                xorl    %edx, %edx      # i
12653 \&        .L2:
12654 \&        # test.c:6:   for (i = 0; i < n; i++)
12655 \&                cmpl    %edi, %edx      # n, i
12656 \&                jge     .L5     #,
12657 \&        # test.c:7:     total += i * i;
12658 \&                movl    %edx, %ecx      # i, tmp92
12659 \&                imull   %edx, %ecx      # i, tmp92
12660 \&        # test.c:6:   for (i = 0; i < n; i++)
12661 \&                incl    %edx    # i
12662 \&        # test.c:7:     total += i * i;
12663 \&                addl    %ecx, %eax      # tmp92, <retval>
12664 \&                jmp     .L2     #
12665 \&        .L5:
12666 \&        # test.c:10: }
12667 \&                ret
12668 \&                .cfi_endproc
12669 \&        .LFE0:
12670 \&                .size   test, .\-test
12671 \&                .ident  "GCC: (GNU) 7.0.0 20160809 (experimental)"
12672 \&                .section        .note.GNU\-stack,"",@progbits
12673 .Ve
12674 .Sp
12675 The comments are intended for humans rather than machines and hence the
12676 precise format of the comments is subject to change.
12677 .RE
12678 .IP "\fB\-frecord\-gcc\-switches\fR" 4
12679 .IX Item "-frecord-gcc-switches"
12680 This switch causes the command line used to invoke the
12681 compiler to be recorded into the object file that is being created.
12682 This switch is only implemented on some targets and the exact format
12683 of the recording is target and binary file format dependent, but it
12684 usually takes the form of a section containing \s-1ASCII\s0 text.  This
12685 switch is related to the \fB\-fverbose\-asm\fR switch, but that
12686 switch only records information in the assembler output file as
12687 comments, so it never reaches the object file.
12688 See also \fB\-grecord\-gcc\-switches\fR for another
12689 way of storing compiler options into the object file.
12690 .IP "\fB\-fpic\fR" 4
12691 .IX Item "-fpic"
12692 Generate position-independent code (\s-1PIC\s0) suitable for use in a shared
12693 library, if supported for the target machine.  Such code accesses all
12694 constant addresses through a global offset table (\s-1GOT\s0).  The dynamic
12695 loader resolves the \s-1GOT\s0 entries when the program starts (the dynamic
12696 loader is not part of \s-1GCC\s0; it is part of the operating system).  If
12697 the \s-1GOT\s0 size for the linked executable exceeds a machine-specific
12698 maximum size, you get an error message from the linker indicating that
12699 \&\fB\-fpic\fR does not work; in that case, recompile with \fB\-fPIC\fR
12700 instead.  (These maximums are 8k on the \s-1SPARC,\s0 28k on AArch64 and 32k
12701 on the m68k and \s-1RS/6000.\s0  The x86 has no such limit.)
12702 .Sp
12703 Position-independent code requires special support, and therefore works
12704 only on certain machines.  For the x86, \s-1GCC\s0 supports \s-1PIC\s0 for System V
12705 but not for the Sun 386i.  Code generated for the \s-1IBM RS/6000\s0 is always
12706 position-independent.
12707 .Sp
12708 When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
12709 are defined to 1.
12710 .IP "\fB\-fPIC\fR" 4
12711 .IX Item "-fPIC"
12712 If supported for the target machine, emit position-independent code,
12713 suitable for dynamic linking and avoiding any limit on the size of the
12714 global offset table.  This option makes a difference on AArch64, m68k,
12715 PowerPC and \s-1SPARC.\s0
12716 .Sp
12717 Position-independent code requires special support, and therefore works
12718 only on certain machines.
12719 .Sp
12720 When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
12721 are defined to 2.
12722 .IP "\fB\-fpie\fR" 4
12723 .IX Item "-fpie"
12724 .PD 0
12725 .IP "\fB\-fPIE\fR" 4
12726 .IX Item "-fPIE"
12727 .PD
12728 These options are similar to \fB\-fpic\fR and \fB\-fPIC\fR, but
12729 generated position independent code can be only linked into executables.
12730 Usually these options are used when \fB\-pie\fR \s-1GCC\s0 option is
12731 used during linking.
12732 .Sp
12733 \&\fB\-fpie\fR and \fB\-fPIE\fR both define the macros
12734 \&\f(CW\*(C`_\|_pie_\|_\*(C'\fR and \f(CW\*(C`_\|_PIE_\|_\*(C'\fR.  The macros have the value 1
12735 for \fB\-fpie\fR and 2 for \fB\-fPIE\fR.
12736 .IP "\fB\-fno\-plt\fR" 4
12737 .IX Item "-fno-plt"
12738 Do not use the \s-1PLT\s0 for external function calls in position-independent code.
12739 Instead, load the callee address at call sites from the \s-1GOT\s0 and branch to it.
12740 This leads to more efficient code by eliminating \s-1PLT\s0 stubs and exposing
12741 \&\s-1GOT\s0 loads to optimizations.  On architectures such as 32\-bit x86 where
12742 \&\s-1PLT\s0 stubs expect the \s-1GOT\s0 pointer in a specific register, this gives more
12743 register allocation freedom to the compiler.
12744 Lazy binding requires use of the \s-1PLT\s0; 
12745 with \fB\-fno\-plt\fR all external symbols are resolved at load time.
12746 .Sp
12747 Alternatively, the function attribute \f(CW\*(C`noplt\*(C'\fR can be used to avoid calls
12748 through the \s-1PLT\s0 for specific external functions.
12749 .Sp
12750 In position-dependent code, a few targets also convert calls to
12751 functions that are marked to not use the \s-1PLT\s0 to use the \s-1GOT\s0 instead.
12752 .IP "\fB\-fno\-jump\-tables\fR" 4
12753 .IX Item "-fno-jump-tables"
12754 Do not use jump tables for switch statements even where it would be
12755 more efficient than other code generation strategies.  This option is
12756 of use in conjunction with \fB\-fpic\fR or \fB\-fPIC\fR for
12757 building code that forms part of a dynamic linker and cannot
12758 reference the address of a jump table.  On some targets, jump tables
12759 do not require a \s-1GOT\s0 and this option is not needed.
12760 .IP "\fB\-ffixed\-\fR\fIreg\fR" 4
12761 .IX Item "-ffixed-reg"
12762 Treat the register named \fIreg\fR as a fixed register; generated code
12763 should never refer to it (except perhaps as a stack pointer, frame
12764 pointer or in some other fixed role).
12765 .Sp
12766 \&\fIreg\fR must be the name of a register.  The register names accepted
12767 are machine-specific and are defined in the \f(CW\*(C`REGISTER_NAMES\*(C'\fR
12768 macro in the machine description macro file.
12769 .Sp
12770 This flag does not have a negative form, because it specifies a
12771 three-way choice.
12772 .IP "\fB\-fcall\-used\-\fR\fIreg\fR" 4
12773 .IX Item "-fcall-used-reg"
12774 Treat the register named \fIreg\fR as an allocable register that is
12775 clobbered by function calls.  It may be allocated for temporaries or
12776 variables that do not live across a call.  Functions compiled this way
12777 do not save and restore the register \fIreg\fR.
12778 .Sp
12779 It is an error to use this flag with the frame pointer or stack pointer.
12780 Use of this flag for other registers that have fixed pervasive roles in
12781 the machine's execution model produces disastrous results.
12782 .Sp
12783 This flag does not have a negative form, because it specifies a
12784 three-way choice.
12785 .IP "\fB\-fcall\-saved\-\fR\fIreg\fR" 4
12786 .IX Item "-fcall-saved-reg"
12787 Treat the register named \fIreg\fR as an allocable register saved by
12788 functions.  It may be allocated even for temporaries or variables that
12789 live across a call.  Functions compiled this way save and restore
12790 the register \fIreg\fR if they use it.
12791 .Sp
12792 It is an error to use this flag with the frame pointer or stack pointer.
12793 Use of this flag for other registers that have fixed pervasive roles in
12794 the machine's execution model produces disastrous results.
12795 .Sp
12796 A different sort of disaster results from the use of this flag for
12797 a register in which function values may be returned.
12798 .Sp
12799 This flag does not have a negative form, because it specifies a
12800 three-way choice.
12801 .IP "\fB\-fpack\-struct[=\fR\fIn\fR\fB]\fR" 4
12802 .IX Item "-fpack-struct[=n]"
12803 Without a value specified, pack all structure members together without
12804 holes.  When a value is specified (which must be a small power of two), pack
12805 structure members according to this value, representing the maximum
12806 alignment (that is, objects with default alignment requirements larger than
12807 this are output potentially unaligned at the next fitting location.
12808 .Sp
12809 \&\fBWarning:\fR the \fB\-fpack\-struct\fR switch causes \s-1GCC\s0 to generate
12810 code that is not binary compatible with code generated without that switch.
12811 Additionally, it makes the code suboptimal.
12812 Use it to conform to a non-default application binary interface.
12813 .IP "\fB\-fleading\-underscore\fR" 4
12814 .IX Item "-fleading-underscore"
12815 This option and its counterpart, \fB\-fno\-leading\-underscore\fR, forcibly
12816 change the way C symbols are represented in the object file.  One use
12817 is to help link with legacy assembly code.
12818 .Sp
12819 \&\fBWarning:\fR the \fB\-fleading\-underscore\fR switch causes \s-1GCC\s0 to
12820 generate code that is not binary compatible with code generated without that
12821 switch.  Use it to conform to a non-default application binary interface.
12822 Not all targets provide complete support for this switch.
12823 .IP "\fB\-ftls\-model=\fR\fImodel\fR" 4
12824 .IX Item "-ftls-model=model"
12825 Alter the thread-local storage model to be used.
12826 The \fImodel\fR argument should be one of \fBglobal-dynamic\fR,
12827 \&\fBlocal-dynamic\fR, \fBinitial-exec\fR or \fBlocal-exec\fR.
12828 Note that the choice is subject to optimization: the compiler may use
12829 a more efficient model for symbols not visible outside of the translation
12830 unit, or if \fB\-fpic\fR is not given on the command line.
12831 .Sp
12832 The default without \fB\-fpic\fR is \fBinitial-exec\fR; with
12833 \&\fB\-fpic\fR the default is \fBglobal-dynamic\fR.
12834 .IP "\fB\-ftrampolines\fR" 4
12835 .IX Item "-ftrampolines"
12836 For targets that normally need trampolines for nested functions, always
12837 generate them instead of using descriptors.  Otherwise, for targets that
12838 do not need them, like for example HP-PA or \s-1IA\-64,\s0 do nothing.
12839 .Sp
12840 A trampoline is a small piece of code that is created at run time on the
12841 stack when the address of a nested function is taken, and is used to call
12842 the nested function indirectly.  Therefore, it requires the stack to be
12843 made executable in order for the program to work properly.
12844 .Sp
12845 \&\fB\-fno\-trampolines\fR is enabled by default on a language by language
12846 basis to let the compiler avoid generating them, if it computes that this
12847 is safe, and replace them with descriptors.  Descriptors are made up of data
12848 only, but the generated code must be prepared to deal with them.  As of this
12849 writing, \fB\-fno\-trampolines\fR is enabled by default only for Ada.
12850 .Sp
12851 Moreover, code compiled with \fB\-ftrampolines\fR and code compiled with
12852 \&\fB\-fno\-trampolines\fR are not binary compatible if nested functions are
12853 present.  This option must therefore be used on a program-wide basis and be
12854 manipulated with extreme care.
12855 .IP "\fB\-fvisibility=\fR[\fBdefault\fR|\fBinternal\fR|\fBhidden\fR|\fBprotected\fR]" 4
12856 .IX Item "-fvisibility=[default|internal|hidden|protected]"
12857 Set the default \s-1ELF\s0 image symbol visibility to the specified option\-\-\-all
12858 symbols are marked with this unless overridden within the code.
12859 Using this feature can very substantially improve linking and
12860 load times of shared object libraries, produce more optimized
12861 code, provide near-perfect \s-1API\s0 export and prevent symbol clashes.
12862 It is \fBstrongly\fR recommended that you use this in any shared objects
12863 you distribute.
12864 .Sp
12865 Despite the nomenclature, \fBdefault\fR always means public; i.e.,
12866 available to be linked against from outside the shared object.
12867 \&\fBprotected\fR and \fBinternal\fR are pretty useless in real-world
12868 usage so the only other commonly used option is \fBhidden\fR.
12869 The default if \fB\-fvisibility\fR isn't specified is
12870 \&\fBdefault\fR, i.e., make every symbol public.
12871 .Sp
12872 A good explanation of the benefits offered by ensuring \s-1ELF\s0
12873 symbols have the correct visibility is given by \*(L"How To Write
12874 Shared Libraries\*(R" by Ulrich Drepper (which can be found at
12875 <\fBhttps://www.akkadia.org/drepper/\fR>)\-\-\-however a superior
12876 solution made possible by this option to marking things hidden when
12877 the default is public is to make the default hidden and mark things
12878 public.  This is the norm with DLLs on Windows and with \fB\-fvisibility=hidden\fR
12879 and \f(CW\*(C`_\|_attribute_\|_ ((visibility("default")))\*(C'\fR instead of
12880 \&\f(CW\*(C`_\|_declspec(dllexport)\*(C'\fR you get almost identical semantics with
12881 identical syntax.  This is a great boon to those working with
12882 cross-platform projects.
12883 .Sp
12884 For those adding visibility support to existing code, you may find
12885 \&\f(CW\*(C`#pragma GCC visibility\*(C'\fR of use.  This works by you enclosing
12886 the declarations you wish to set visibility for with (for example)
12887 \&\f(CW\*(C`#pragma GCC visibility push(hidden)\*(C'\fR and
12888 \&\f(CW\*(C`#pragma GCC visibility pop\*(C'\fR.
12889 Bear in mind that symbol visibility should be viewed \fBas
12890 part of the \s-1API\s0 interface contract\fR and thus all new code should
12891 always specify visibility when it is not the default; i.e., declarations
12892 only for use within the local \s-1DSO\s0 should \fBalways\fR be marked explicitly
12893 as hidden as so to avoid \s-1PLT\s0 indirection overheads\-\-\-making this
12894 abundantly clear also aids readability and self-documentation of the code.
12895 Note that due to \s-1ISO \*(C+\s0 specification requirements, \f(CW\*(C`operator new\*(C'\fR and
12896 \&\f(CW\*(C`operator delete\*(C'\fR must always be of default visibility.
12897 .Sp
12898 Be aware that headers from outside your project, in particular system
12899 headers and headers from any other library you use, may not be
12900 expecting to be compiled with visibility other than the default.  You
12901 may need to explicitly say \f(CW\*(C`#pragma GCC visibility push(default)\*(C'\fR
12902 before including any such headers.
12903 .Sp
12904 \&\f(CW\*(C`extern\*(C'\fR declarations are not affected by \fB\-fvisibility\fR, so
12905 a lot of code can be recompiled with \fB\-fvisibility=hidden\fR with
12906 no modifications.  However, this means that calls to \f(CW\*(C`extern\*(C'\fR
12907 functions with no explicit visibility use the \s-1PLT,\s0 so it is more
12908 effective to use \f(CW\*(C`_\|_attribute ((visibility))\*(C'\fR and/or
12909 \&\f(CW\*(C`#pragma GCC visibility\*(C'\fR to tell the compiler which \f(CW\*(C`extern\*(C'\fR
12910 declarations should be treated as hidden.
12911 .Sp
12912 Note that \fB\-fvisibility\fR does affect \*(C+ vague linkage
12913 entities. This means that, for instance, an exception class that is
12914 be thrown between DSOs must be explicitly marked with default
12915 visibility so that the \fBtype_info\fR nodes are unified between
12916 the DSOs.
12917 .Sp
12918 An overview of these techniques, their benefits and how to use them
12919 is at <\fBhttp://gcc.gnu.org/wiki/Visibility\fR>.
12920 .IP "\fB\-fstrict\-volatile\-bitfields\fR" 4
12921 .IX Item "-fstrict-volatile-bitfields"
12922 This option should be used if accesses to volatile bit-fields (or other
12923 structure fields, although the compiler usually honors those types
12924 anyway) should use a single access of the width of the
12925 field's type, aligned to a natural alignment if possible.  For
12926 example, targets with memory-mapped peripheral registers might require
12927 all such accesses to be 16 bits wide; with this flag you can
12928 declare all peripheral bit-fields as \f(CW\*(C`unsigned short\*(C'\fR (assuming short
12929 is 16 bits on these targets) to force \s-1GCC\s0 to use 16\-bit accesses
12930 instead of, perhaps, a more efficient 32\-bit access.
12931 .Sp
12932 If this option is disabled, the compiler uses the most efficient
12933 instruction.  In the previous example, that might be a 32\-bit load
12934 instruction, even though that accesses bytes that do not contain
12935 any portion of the bit-field, or memory-mapped registers unrelated to
12936 the one being updated.
12937 .Sp
12938 In some cases, such as when the \f(CW\*(C`packed\*(C'\fR attribute is applied to a 
12939 structure field, it may not be possible to access the field with a single
12940 read or write that is correctly aligned for the target machine.  In this
12941 case \s-1GCC\s0 falls back to generating multiple accesses rather than code that 
12942 will fault or truncate the result at run time.
12943 .Sp
12944 Note:  Due to restrictions of the C/\*(C+11 memory model, write accesses are
12945 not allowed to touch non bit-field members.  It is therefore recommended
12946 to define all bits of the field's type as bit-field members.
12947 .Sp
12948 The default value of this option is determined by the application binary
12949 interface for the target processor.
12950 .IP "\fB\-fsync\-libcalls\fR" 4
12951 .IX Item "-fsync-libcalls"
12952 This option controls whether any out-of-line instance of the \f(CW\*(C`_\|_sync\*(C'\fR
12953 family of functions may be used to implement the \*(C+11 \f(CW\*(C`_\|_atomic\*(C'\fR
12954 family of functions.
12955 .Sp
12956 The default value of this option is enabled, thus the only useful form
12957 of the option is \fB\-fno\-sync\-libcalls\fR.  This option is used in
12958 the implementation of the \fIlibatomic\fR runtime library.
12959 .SS "\s-1GCC\s0 Developer Options"
12960 .IX Subsection "GCC Developer Options"
12961 This section describes command-line options that are primarily of
12962 interest to \s-1GCC\s0 developers, including options to support compiler
12963 testing and investigation of compiler bugs and compile-time
12964 performance problems.  This includes options that produce debug dumps
12965 at various points in the compilation; that print statistics such as
12966 memory use and execution time; and that print information about \s-1GCC\s0's
12967 configuration, such as where it searches for libraries.  You should
12968 rarely need to use any of these options for ordinary compilation and
12969 linking tasks.
12970 .IP "\fB\-d\fR\fIletters\fR" 4
12971 .IX Item "-dletters"
12972 .PD 0
12973 .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR" 4
12974 .IX Item "-fdump-rtl-pass"
12975 .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR\fB=\fR\fIfilename\fR" 4
12976 .IX Item "-fdump-rtl-pass=filename"
12977 .PD
12978 Says to make debugging dumps during compilation at times specified by
12979 \&\fIletters\fR.  This is used for debugging the RTL-based passes of the
12980 compiler.  The file names for most of the dumps are made by appending
12981 a pass number and a word to the \fIdumpname\fR, and the files are
12982 created in the directory of the output file.  In case of
12983 \&\fB=\fR\fIfilename\fR option, the dump is output on the given file
12984 instead of the pass numbered dump files.  Note that the pass number is
12985 assigned as passes are registered into the pass manager.  Most passes
12986 are registered in the order that they will execute and for these passes
12987 the number corresponds to the pass execution order.  However, passes
12988 registered by plugins, passes specific to compilation targets, or
12989 passes that are otherwise registered after all the other passes are
12990 numbered higher than a pass named \*(L"final\*(R", even if they are executed
12991 earlier.  \fIdumpname\fR is generated from the name of the output
12992 file if explicitly specified and not an executable, otherwise it is
12993 the basename of the source file.
12994 .Sp
12995 Some \fB\-d\fR\fIletters\fR switches have different meaning when
12996 \&\fB\-E\fR is used for preprocessing.
12997 .Sp
12998 Debug dumps can be enabled with a \fB\-fdump\-rtl\fR switch or some
12999 \&\fB\-d\fR option \fIletters\fR.  Here are the possible
13000 letters for use in \fIpass\fR and \fIletters\fR, and their meanings:
13001 .RS 4
13002 .IP "\fB\-fdump\-rtl\-alignments\fR" 4
13003 .IX Item "-fdump-rtl-alignments"
13004 Dump after branch alignments have been computed.
13005 .IP "\fB\-fdump\-rtl\-asmcons\fR" 4
13006 .IX Item "-fdump-rtl-asmcons"
13007 Dump after fixing rtl statements that have unsatisfied in/out constraints.
13008 .IP "\fB\-fdump\-rtl\-auto_inc_dec\fR" 4
13009 .IX Item "-fdump-rtl-auto_inc_dec"
13010 Dump after auto-inc-dec discovery.  This pass is only run on
13011 architectures that have auto inc or auto dec instructions.
13012 .IP "\fB\-fdump\-rtl\-barriers\fR" 4
13013 .IX Item "-fdump-rtl-barriers"
13014 Dump after cleaning up the barrier instructions.
13015 .IP "\fB\-fdump\-rtl\-bbpart\fR" 4
13016 .IX Item "-fdump-rtl-bbpart"
13017 Dump after partitioning hot and cold basic blocks.
13018 .IP "\fB\-fdump\-rtl\-bbro\fR" 4
13019 .IX Item "-fdump-rtl-bbro"
13020 Dump after block reordering.
13021 .IP "\fB\-fdump\-rtl\-btl1\fR" 4
13022 .IX Item "-fdump-rtl-btl1"
13023 .PD 0
13024 .IP "\fB\-fdump\-rtl\-btl2\fR" 4
13025 .IX Item "-fdump-rtl-btl2"
13026 .PD
13027 \&\fB\-fdump\-rtl\-btl1\fR and \fB\-fdump\-rtl\-btl2\fR enable dumping
13028 after the two branch
13029 target load optimization passes.
13030 .IP "\fB\-fdump\-rtl\-bypass\fR" 4
13031 .IX Item "-fdump-rtl-bypass"
13032 Dump after jump bypassing and control flow optimizations.
13033 .IP "\fB\-fdump\-rtl\-combine\fR" 4
13034 .IX Item "-fdump-rtl-combine"
13035 Dump after the \s-1RTL\s0 instruction combination pass.
13036 .IP "\fB\-fdump\-rtl\-compgotos\fR" 4
13037 .IX Item "-fdump-rtl-compgotos"
13038 Dump after duplicating the computed gotos.
13039 .IP "\fB\-fdump\-rtl\-ce1\fR" 4
13040 .IX Item "-fdump-rtl-ce1"
13041 .PD 0
13042 .IP "\fB\-fdump\-rtl\-ce2\fR" 4
13043 .IX Item "-fdump-rtl-ce2"
13044 .IP "\fB\-fdump\-rtl\-ce3\fR" 4
13045 .IX Item "-fdump-rtl-ce3"
13046 .PD
13047 \&\fB\-fdump\-rtl\-ce1\fR, \fB\-fdump\-rtl\-ce2\fR, and
13048 \&\fB\-fdump\-rtl\-ce3\fR enable dumping after the three
13049 if conversion passes.
13050 .IP "\fB\-fdump\-rtl\-cprop_hardreg\fR" 4
13051 .IX Item "-fdump-rtl-cprop_hardreg"
13052 Dump after hard register copy propagation.
13053 .IP "\fB\-fdump\-rtl\-csa\fR" 4
13054 .IX Item "-fdump-rtl-csa"
13055 Dump after combining stack adjustments.
13056 .IP "\fB\-fdump\-rtl\-cse1\fR" 4
13057 .IX Item "-fdump-rtl-cse1"
13058 .PD 0
13059 .IP "\fB\-fdump\-rtl\-cse2\fR" 4
13060 .IX Item "-fdump-rtl-cse2"
13061 .PD
13062 \&\fB\-fdump\-rtl\-cse1\fR and \fB\-fdump\-rtl\-cse2\fR enable dumping after
13063 the two common subexpression elimination passes.
13064 .IP "\fB\-fdump\-rtl\-dce\fR" 4
13065 .IX Item "-fdump-rtl-dce"
13066 Dump after the standalone dead code elimination passes.
13067 .IP "\fB\-fdump\-rtl\-dbr\fR" 4
13068 .IX Item "-fdump-rtl-dbr"
13069 Dump after delayed branch scheduling.
13070 .IP "\fB\-fdump\-rtl\-dce1\fR" 4
13071 .IX Item "-fdump-rtl-dce1"
13072 .PD 0
13073 .IP "\fB\-fdump\-rtl\-dce2\fR" 4
13074 .IX Item "-fdump-rtl-dce2"
13075 .PD
13076 \&\fB\-fdump\-rtl\-dce1\fR and \fB\-fdump\-rtl\-dce2\fR enable dumping after
13077 the two dead store elimination passes.
13078 .IP "\fB\-fdump\-rtl\-eh\fR" 4
13079 .IX Item "-fdump-rtl-eh"
13080 Dump after finalization of \s-1EH\s0 handling code.
13081 .IP "\fB\-fdump\-rtl\-eh_ranges\fR" 4
13082 .IX Item "-fdump-rtl-eh_ranges"
13083 Dump after conversion of \s-1EH\s0 handling range regions.
13084 .IP "\fB\-fdump\-rtl\-expand\fR" 4
13085 .IX Item "-fdump-rtl-expand"
13086 Dump after \s-1RTL\s0 generation.
13087 .IP "\fB\-fdump\-rtl\-fwprop1\fR" 4
13088 .IX Item "-fdump-rtl-fwprop1"
13089 .PD 0
13090 .IP "\fB\-fdump\-rtl\-fwprop2\fR" 4
13091 .IX Item "-fdump-rtl-fwprop2"
13092 .PD
13093 \&\fB\-fdump\-rtl\-fwprop1\fR and \fB\-fdump\-rtl\-fwprop2\fR enable
13094 dumping after the two forward propagation passes.
13095 .IP "\fB\-fdump\-rtl\-gcse1\fR" 4
13096 .IX Item "-fdump-rtl-gcse1"
13097 .PD 0
13098 .IP "\fB\-fdump\-rtl\-gcse2\fR" 4
13099 .IX Item "-fdump-rtl-gcse2"
13100 .PD
13101 \&\fB\-fdump\-rtl\-gcse1\fR and \fB\-fdump\-rtl\-gcse2\fR enable dumping
13102 after global common subexpression elimination.
13103 .IP "\fB\-fdump\-rtl\-init\-regs\fR" 4
13104 .IX Item "-fdump-rtl-init-regs"
13105 Dump after the initialization of the registers.
13106 .IP "\fB\-fdump\-rtl\-initvals\fR" 4
13107 .IX Item "-fdump-rtl-initvals"
13108 Dump after the computation of the initial value sets.
13109 .IP "\fB\-fdump\-rtl\-into_cfglayout\fR" 4
13110 .IX Item "-fdump-rtl-into_cfglayout"
13111 Dump after converting to cfglayout mode.
13112 .IP "\fB\-fdump\-rtl\-ira\fR" 4
13113 .IX Item "-fdump-rtl-ira"
13114 Dump after iterated register allocation.
13115 .IP "\fB\-fdump\-rtl\-jump\fR" 4
13116 .IX Item "-fdump-rtl-jump"
13117 Dump after the second jump optimization.
13118 .IP "\fB\-fdump\-rtl\-loop2\fR" 4
13119 .IX Item "-fdump-rtl-loop2"
13120 \&\fB\-fdump\-rtl\-loop2\fR enables dumping after the rtl
13121 loop optimization passes.
13122 .IP "\fB\-fdump\-rtl\-mach\fR" 4
13123 .IX Item "-fdump-rtl-mach"
13124 Dump after performing the machine dependent reorganization pass, if that
13125 pass exists.
13126 .IP "\fB\-fdump\-rtl\-mode_sw\fR" 4
13127 .IX Item "-fdump-rtl-mode_sw"
13128 Dump after removing redundant mode switches.
13129 .IP "\fB\-fdump\-rtl\-rnreg\fR" 4
13130 .IX Item "-fdump-rtl-rnreg"
13131 Dump after register renumbering.
13132 .IP "\fB\-fdump\-rtl\-outof_cfglayout\fR" 4
13133 .IX Item "-fdump-rtl-outof_cfglayout"
13134 Dump after converting from cfglayout mode.
13135 .IP "\fB\-fdump\-rtl\-peephole2\fR" 4
13136 .IX Item "-fdump-rtl-peephole2"
13137 Dump after the peephole pass.
13138 .IP "\fB\-fdump\-rtl\-postreload\fR" 4
13139 .IX Item "-fdump-rtl-postreload"
13140 Dump after post-reload optimizations.
13141 .IP "\fB\-fdump\-rtl\-pro_and_epilogue\fR" 4
13142 .IX Item "-fdump-rtl-pro_and_epilogue"
13143 Dump after generating the function prologues and epilogues.
13144 .IP "\fB\-fdump\-rtl\-sched1\fR" 4
13145 .IX Item "-fdump-rtl-sched1"
13146 .PD 0
13147 .IP "\fB\-fdump\-rtl\-sched2\fR" 4
13148 .IX Item "-fdump-rtl-sched2"
13149 .PD
13150 \&\fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR enable dumping
13151 after the basic block scheduling passes.
13152 .IP "\fB\-fdump\-rtl\-ree\fR" 4
13153 .IX Item "-fdump-rtl-ree"
13154 Dump after sign/zero extension elimination.
13155 .IP "\fB\-fdump\-rtl\-seqabstr\fR" 4
13156 .IX Item "-fdump-rtl-seqabstr"
13157 Dump after common sequence discovery.
13158 .IP "\fB\-fdump\-rtl\-shorten\fR" 4
13159 .IX Item "-fdump-rtl-shorten"
13160 Dump after shortening branches.
13161 .IP "\fB\-fdump\-rtl\-sibling\fR" 4
13162 .IX Item "-fdump-rtl-sibling"
13163 Dump after sibling call optimizations.
13164 .IP "\fB\-fdump\-rtl\-split1\fR" 4
13165 .IX Item "-fdump-rtl-split1"
13166 .PD 0
13167 .IP "\fB\-fdump\-rtl\-split2\fR" 4
13168 .IX Item "-fdump-rtl-split2"
13169 .IP "\fB\-fdump\-rtl\-split3\fR" 4
13170 .IX Item "-fdump-rtl-split3"
13171 .IP "\fB\-fdump\-rtl\-split4\fR" 4
13172 .IX Item "-fdump-rtl-split4"
13173 .IP "\fB\-fdump\-rtl\-split5\fR" 4
13174 .IX Item "-fdump-rtl-split5"
13175 .PD
13176 These options enable dumping after five rounds of
13177 instruction splitting.
13178 .IP "\fB\-fdump\-rtl\-sms\fR" 4
13179 .IX Item "-fdump-rtl-sms"
13180 Dump after modulo scheduling.  This pass is only run on some
13181 architectures.
13182 .IP "\fB\-fdump\-rtl\-stack\fR" 4
13183 .IX Item "-fdump-rtl-stack"
13184 Dump after conversion from \s-1GCC\s0's \*(L"flat register file\*(R" registers to the
13185 x87's stack-like registers.  This pass is only run on x86 variants.
13186 .IP "\fB\-fdump\-rtl\-subreg1\fR" 4
13187 .IX Item "-fdump-rtl-subreg1"
13188 .PD 0
13189 .IP "\fB\-fdump\-rtl\-subreg2\fR" 4
13190 .IX Item "-fdump-rtl-subreg2"
13191 .PD
13192 \&\fB\-fdump\-rtl\-subreg1\fR and \fB\-fdump\-rtl\-subreg2\fR enable dumping after
13193 the two subreg expansion passes.
13194 .IP "\fB\-fdump\-rtl\-unshare\fR" 4
13195 .IX Item "-fdump-rtl-unshare"
13196 Dump after all rtl has been unshared.
13197 .IP "\fB\-fdump\-rtl\-vartrack\fR" 4
13198 .IX Item "-fdump-rtl-vartrack"
13199 Dump after variable tracking.
13200 .IP "\fB\-fdump\-rtl\-vregs\fR" 4
13201 .IX Item "-fdump-rtl-vregs"
13202 Dump after converting virtual registers to hard registers.
13203 .IP "\fB\-fdump\-rtl\-web\fR" 4
13204 .IX Item "-fdump-rtl-web"
13205 Dump after live range splitting.
13206 .IP "\fB\-fdump\-rtl\-regclass\fR" 4
13207 .IX Item "-fdump-rtl-regclass"
13208 .PD 0
13209 .IP "\fB\-fdump\-rtl\-subregs_of_mode_init\fR" 4
13210 .IX Item "-fdump-rtl-subregs_of_mode_init"
13211 .IP "\fB\-fdump\-rtl\-subregs_of_mode_finish\fR" 4
13212 .IX Item "-fdump-rtl-subregs_of_mode_finish"
13213 .IP "\fB\-fdump\-rtl\-dfinit\fR" 4
13214 .IX Item "-fdump-rtl-dfinit"
13215 .IP "\fB\-fdump\-rtl\-dfinish\fR" 4
13216 .IX Item "-fdump-rtl-dfinish"
13217 .PD
13218 These dumps are defined but always produce empty files.
13219 .IP "\fB\-da\fR" 4
13220 .IX Item "-da"
13221 .PD 0
13222 .IP "\fB\-fdump\-rtl\-all\fR" 4
13223 .IX Item "-fdump-rtl-all"
13224 .PD
13225 Produce all the dumps listed above.
13226 .IP "\fB\-dA\fR" 4
13227 .IX Item "-dA"
13228 Annotate the assembler output with miscellaneous debugging information.
13229 .IP "\fB\-dD\fR" 4
13230 .IX Item "-dD"
13231 Dump all macro definitions, at the end of preprocessing, in addition to
13232 normal output.
13233 .IP "\fB\-dH\fR" 4
13234 .IX Item "-dH"
13235 Produce a core dump whenever an error occurs.
13236 .IP "\fB\-dp\fR" 4
13237 .IX Item "-dp"
13238 Annotate the assembler output with a comment indicating which
13239 pattern and alternative is used.  The length and cost of each instruction are
13240 also printed.
13241 .IP "\fB\-dP\fR" 4
13242 .IX Item "-dP"
13243 Dump the \s-1RTL\s0 in the assembler output as a comment before each instruction.
13244 Also turns on \fB\-dp\fR annotation.
13245 .IP "\fB\-dx\fR" 4
13246 .IX Item "-dx"
13247 Just generate \s-1RTL\s0 for a function instead of compiling it.  Usually used
13248 with \fB\-fdump\-rtl\-expand\fR.
13249 .RE
13250 .RS 4
13251 .RE
13252 .IP "\fB\-fdump\-noaddr\fR" 4
13253 .IX Item "-fdump-noaddr"
13254 When doing debugging dumps, suppress address output.  This makes it more
13255 feasible to use diff on debugging dumps for compiler invocations with
13256 different compiler binaries and/or different
13257 text / bss / data / heap / stack / dso start locations.
13258 .IP "\fB\-freport\-bug\fR" 4
13259 .IX Item "-freport-bug"
13260 Collect and dump debug information into a temporary file if an
13261 internal compiler error (\s-1ICE\s0) occurs.
13262 .IP "\fB\-fdump\-unnumbered\fR" 4
13263 .IX Item "-fdump-unnumbered"
13264 When doing debugging dumps, suppress instruction numbers and address output.
13265 This makes it more feasible to use diff on debugging dumps for compiler
13266 invocations with different options, in particular with and without
13267 \&\fB\-g\fR.
13268 .IP "\fB\-fdump\-unnumbered\-links\fR" 4
13269 .IX Item "-fdump-unnumbered-links"
13270 When doing debugging dumps (see \fB\-d\fR option above), suppress
13271 instruction numbers for the links to the previous and next instructions
13272 in a sequence.
13273 .IP "\fB\-fdump\-ipa\-\fR\fIswitch\fR" 4
13274 .IX Item "-fdump-ipa-switch"
13275 Control the dumping at various stages of inter-procedural analysis
13276 language tree to a file.  The file name is generated by appending a
13277 switch specific suffix to the source file name, and the file is created
13278 in the same directory as the output file.  The following dumps are
13279 possible:
13280 .RS 4
13281 .IP "\fBall\fR" 4
13282 .IX Item "all"
13283 Enables all inter-procedural analysis dumps.
13284 .IP "\fBcgraph\fR" 4
13285 .IX Item "cgraph"
13286 Dumps information about call-graph optimization, unused function removal,
13287 and inlining decisions.
13288 .IP "\fBinline\fR" 4
13289 .IX Item "inline"
13290 Dump after function inlining.
13291 .RE
13292 .RS 4
13293 .RE
13294 .IP "\fB\-fdump\-lang\-all\fR" 4
13295 .IX Item "-fdump-lang-all"
13296 .PD 0
13297 .IP "\fB\-fdump\-lang\-\fR\fIswitch\fR" 4
13298 .IX Item "-fdump-lang-switch"
13299 .IP "\fB\-fdump\-lang\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR" 4
13300 .IX Item "-fdump-lang-switch-options"
13301 .IP "\fB\-fdump\-lang\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR" 4
13302 .IX Item "-fdump-lang-switch-options=filename"
13303 .PD
13304 Control the dumping of language-specific information.  The \fIoptions\fR
13305 and \fIfilename\fR portions behave as described in the
13306 \&\fB\-fdump\-tree\fR option.  The following \fIswitch\fR values are
13307 accepted:
13308 .RS 4
13309 .IP "\fBall\fR" 4
13310 .IX Item "all"
13311 Enable all language-specific dumps.
13312 .IP "\fBclass\fR" 4
13313 .IX Item "class"
13314 Dump class hierarchy information.  Virtual table information is emitted
13315 unless '\fBslim\fR' is specified.  This option is applicable to \*(C+ only.
13316 .IP "\fBraw\fR" 4
13317 .IX Item "raw"
13318 Dump the raw internal tree data.  This option is applicable to \*(C+ only.
13319 .RE
13320 .RS 4
13321 .RE
13322 .IP "\fB\-fdump\-passes\fR" 4
13323 .IX Item "-fdump-passes"
13324 Print on \fIstderr\fR the list of optimization passes that are turned
13325 on and off by the current command-line options.
13326 .IP "\fB\-fdump\-statistics\-\fR\fIoption\fR" 4
13327 .IX Item "-fdump-statistics-option"
13328 Enable and control dumping of pass statistics in a separate file.  The
13329 file name is generated by appending a suffix ending in
13330 \&\fB.statistics\fR to the source file name, and the file is created in
13331 the same directory as the output file.  If the \fB\-\fR\fIoption\fR
13332 form is used, \fB\-stats\fR causes counters to be summed over the
13333 whole compilation unit while \fB\-details\fR dumps every event as
13334 the passes generate them.  The default with no option is to sum
13335 counters for each function compiled.
13336 .IP "\fB\-fdump\-tree\-all\fR" 4
13337 .IX Item "-fdump-tree-all"
13338 .PD 0
13339 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR" 4
13340 .IX Item "-fdump-tree-switch"
13341 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR" 4
13342 .IX Item "-fdump-tree-switch-options"
13343 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR" 4
13344 .IX Item "-fdump-tree-switch-options=filename"
13345 .PD
13346 Control the dumping at various stages of processing the intermediate
13347 language tree to a file.  The file name is generated by appending a
13348 switch-specific suffix to the source file name, and the file is
13349 created in the same directory as the output file. In case of
13350 \&\fB=\fR\fIfilename\fR option, the dump is output on the given file
13351 instead of the auto named dump files.  If the \fB\-\fR\fIoptions\fR
13352 form is used, \fIoptions\fR is a list of \fB\-\fR separated options
13353 which control the details of the dump.  Not all options are applicable
13354 to all dumps; those that are not meaningful are ignored.  The
13355 following options are available
13356 .RS 4
13357 .IP "\fBaddress\fR" 4
13358 .IX Item "address"
13359 Print the address of each node.  Usually this is not meaningful as it
13360 changes according to the environment and source file.  Its primary use
13361 is for tying up a dump file with a debug environment.
13362 .IP "\fBasmname\fR" 4
13363 .IX Item "asmname"
13364 If \f(CW\*(C`DECL_ASSEMBLER_NAME\*(C'\fR has been set for a given decl, use that
13365 in the dump instead of \f(CW\*(C`DECL_NAME\*(C'\fR.  Its primary use is ease of
13366 use working backward from mangled names in the assembly file.
13367 .IP "\fBslim\fR" 4
13368 .IX Item "slim"
13369 When dumping front-end intermediate representations, inhibit dumping
13370 of members of a scope or body of a function merely because that scope
13371 has been reached.  Only dump such items when they are directly reachable
13372 by some other path.
13373 .Sp
13374 When dumping pretty-printed trees, this option inhibits dumping the
13375 bodies of control structures.
13376 .Sp
13377 When dumping \s-1RTL,\s0 print the \s-1RTL\s0 in slim (condensed) form instead of
13378 the default LISP-like representation.
13379 .IP "\fBraw\fR" 4
13380 .IX Item "raw"
13381 Print a raw representation of the tree.  By default, trees are
13382 pretty-printed into a C\-like representation.
13383 .IP "\fBdetails\fR" 4
13384 .IX Item "details"
13385 Enable more detailed dumps (not honored by every dump option). Also
13386 include information from the optimization passes.
13387 .IP "\fBstats\fR" 4
13388 .IX Item "stats"
13389 Enable dumping various statistics about the pass (not honored by every dump
13390 option).
13391 .IP "\fBblocks\fR" 4
13392 .IX Item "blocks"
13393 Enable showing basic block boundaries (disabled in raw dumps).
13394 .IP "\fBgraph\fR" 4
13395 .IX Item "graph"
13396 For each of the other indicated dump files (\fB\-fdump\-rtl\-\fR\fIpass\fR),
13397 dump a representation of the control flow graph suitable for viewing with
13398 GraphViz to \fI\fIfile\fI.\fIpassid\fI.\fIpass\fI.dot\fR.  Each function in
13399 the file is pretty-printed as a subgraph, so that GraphViz can render them
13400 all in a single plot.
13401 .Sp
13402 This option currently only works for \s-1RTL\s0 dumps, and the \s-1RTL\s0 is always
13403 dumped in slim form.
13404 .IP "\fBvops\fR" 4
13405 .IX Item "vops"
13406 Enable showing virtual operands for every statement.
13407 .IP "\fBlineno\fR" 4
13408 .IX Item "lineno"
13409 Enable showing line numbers for statements.
13410 .IP "\fBuid\fR" 4
13411 .IX Item "uid"
13412 Enable showing the unique \s-1ID\s0 (\f(CW\*(C`DECL_UID\*(C'\fR) for each variable.
13413 .IP "\fBverbose\fR" 4
13414 .IX Item "verbose"
13415 Enable showing the tree dump for each statement.
13416 .IP "\fBeh\fR" 4
13417 .IX Item "eh"
13418 Enable showing the \s-1EH\s0 region number holding each statement.
13419 .IP "\fBscev\fR" 4
13420 .IX Item "scev"
13421 Enable showing scalar evolution analysis details.
13422 .IP "\fBoptimized\fR" 4
13423 .IX Item "optimized"
13424 Enable showing optimization information (only available in certain
13425 passes).
13426 .IP "\fBmissed\fR" 4
13427 .IX Item "missed"
13428 Enable showing missed optimization information (only available in certain
13429 passes).
13430 .IP "\fBnote\fR" 4
13431 .IX Item "note"
13432 Enable other detailed optimization information (only available in
13433 certain passes).
13434 .IP "\fB=\fR\fIfilename\fR" 4
13435 .IX Item "=filename"
13436 Instead of an auto named dump file, output into the given file
13437 name. The file names \fIstdout\fR and \fIstderr\fR are treated
13438 specially and are considered already open standard streams. For
13439 example,
13440 .Sp
13441 .Vb 2
13442 \&        gcc \-O2 \-ftree\-vectorize \-fdump\-tree\-vect\-blocks=foo.dump
13443 \&             \-fdump\-tree\-pre=/dev/stderr file.c
13444 .Ve
13445 .Sp
13446 outputs vectorizer dump into \fIfoo.dump\fR, while the \s-1PRE\s0 dump is
13447 output on to \fIstderr\fR. If two conflicting dump filenames are
13448 given for the same pass, then the latter option overrides the earlier
13449 one.
13450 .IP "\fBall\fR" 4
13451 .IX Item "all"
13452 Turn on all options, except \fBraw\fR, \fBslim\fR, \fBverbose\fR
13453 and \fBlineno\fR.
13454 .IP "\fBoptall\fR" 4
13455 .IX Item "optall"
13456 Turn on all optimization options, i.e., \fBoptimized\fR,
13457 \&\fBmissed\fR, and \fBnote\fR.
13458 .RE
13459 .RS 4
13460 .Sp
13461 To determine what tree dumps are available or find the dump for a pass
13462 of interest follow the steps below.
13463 .IP "1." 4
13464 .IX Item "1."
13465 Invoke \s-1GCC\s0 with \fB\-fdump\-passes\fR and in the \fIstderr\fR output
13466 look for a code that corresponds to the pass you are interested in.
13467 For example, the codes \f(CW\*(C`tree\-evrp\*(C'\fR, \f(CW\*(C`tree\-vrp1\*(C'\fR, and
13468 \&\f(CW\*(C`tree\-vrp2\*(C'\fR correspond to the three Value Range Propagation passes.
13469 The number at the end distinguishes distinct invocations of the same pass.
13470 .IP "2." 4
13471 .IX Item "2."
13472 To enable the creation of the dump file, append the pass code to
13473 the \fB\-fdump\-\fR option prefix and invoke \s-1GCC\s0 with it.  For example,
13474 to enable the dump from the Early Value Range Propagation pass, invoke
13475 \&\s-1GCC\s0 with the \fB\-fdump\-tree\-evrp\fR option.  Optionally, you may
13476 specify the name of the dump file.  If you don't specify one, \s-1GCC\s0
13477 creates as described below.
13478 .IP "3." 4
13479 .IX Item "3."
13480 Find the pass dump in a file whose name is composed of three components
13481 separated by a period: the name of the source file \s-1GCC\s0 was invoked to
13482 compile, a numeric suffix indicating the pass number followed by the
13483 letter \fBt\fR for tree passes (and the letter \fBr\fR for \s-1RTL\s0 passes),
13484 and finally the pass code.  For example, the Early \s-1VRP\s0 pass dump might
13485 be in a file named \fImyfile.c.038t.evrp\fR in the current working
13486 directory.  Note that the numeric codes are not stable and may change
13487 from one version of \s-1GCC\s0 to another.
13488 .RE
13489 .RS 4
13490 .RE
13491 .IP "\fB\-fopt\-info\fR" 4
13492 .IX Item "-fopt-info"
13493 .PD 0
13494 .IP "\fB\-fopt\-info\-\fR\fIoptions\fR" 4
13495 .IX Item "-fopt-info-options"
13496 .IP "\fB\-fopt\-info\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR" 4
13497 .IX Item "-fopt-info-options=filename"
13498 .PD
13499 Controls optimization dumps from various optimization passes. If the
13500 \&\fB\-\fR\fIoptions\fR form is used, \fIoptions\fR is a list of
13501 \&\fB\-\fR separated option keywords to select the dump details and
13502 optimizations.
13503 .Sp
13504 The \fIoptions\fR can be divided into two groups: options describing the
13505 verbosity of the dump, and options describing which optimizations
13506 should be included. The options from both the groups can be freely
13507 mixed as they are non-overlapping. However, in case of any conflicts,
13508 the later options override the earlier options on the command
13509 line.
13510 .Sp
13511 The following options control the dump verbosity:
13512 .RS 4
13513 .IP "\fBoptimized\fR" 4
13514 .IX Item "optimized"
13515 Print information when an optimization is successfully applied. It is
13516 up to a pass to decide which information is relevant. For example, the
13517 vectorizer passes print the source location of loops which are
13518 successfully vectorized.
13519 .IP "\fBmissed\fR" 4
13520 .IX Item "missed"
13521 Print information about missed optimizations. Individual passes
13522 control which information to include in the output.
13523 .IP "\fBnote\fR" 4
13524 .IX Item "note"
13525 Print verbose information about optimizations, such as certain
13526 transformations, more detailed messages about decisions etc.
13527 .IP "\fBall\fR" 4
13528 .IX Item "all"
13529 Print detailed optimization information. This includes
13530 \&\fBoptimized\fR, \fBmissed\fR, and \fBnote\fR.
13531 .RE
13532 .RS 4
13533 .Sp
13534 One or more of the following option keywords can be used to describe a
13535 group of optimizations:
13536 .IP "\fBipa\fR" 4
13537 .IX Item "ipa"
13538 Enable dumps from all interprocedural optimizations.
13539 .IP "\fBloop\fR" 4
13540 .IX Item "loop"
13541 Enable dumps from all loop optimizations.
13542 .IP "\fBinline\fR" 4
13543 .IX Item "inline"
13544 Enable dumps from all inlining optimizations.
13545 .IP "\fBomp\fR" 4
13546 .IX Item "omp"
13547 Enable dumps from all \s-1OMP\s0 (Offloading and Multi Processing) optimizations.
13548 .IP "\fBvec\fR" 4
13549 .IX Item "vec"
13550 Enable dumps from all vectorization optimizations.
13551 .IP "\fBoptall\fR" 4
13552 .IX Item "optall"
13553 Enable dumps from all optimizations. This is a superset of
13554 the optimization groups listed above.
13555 .RE
13556 .RS 4
13557 .Sp
13558 If \fIoptions\fR is
13559 omitted, it defaults to \fBoptimized-optall\fR, which means to dump all
13560 info about successful optimizations from all the passes.
13561 .Sp
13562 If the \fIfilename\fR is provided, then the dumps from all the
13563 applicable optimizations are concatenated into the \fIfilename\fR.
13564 Otherwise the dump is output onto \fIstderr\fR. Though multiple
13565 \&\fB\-fopt\-info\fR options are accepted, only one of them can include
13566 a \fIfilename\fR. If other filenames are provided then all but the
13567 first such option are ignored.
13568 .Sp
13569 Note that the output \fIfilename\fR is overwritten
13570 in case of multiple translation units. If a combined output from
13571 multiple translation units is desired, \fIstderr\fR should be used
13572 instead.
13573 .Sp
13574 In the following example, the optimization info is output to
13575 \&\fIstderr\fR:
13576 .Sp
13577 .Vb 1
13578 \&        gcc \-O3 \-fopt\-info
13579 .Ve
13580 .Sp
13581 This example:
13582 .Sp
13583 .Vb 1
13584 \&        gcc \-O3 \-fopt\-info\-missed=missed.all
13585 .Ve
13586 .Sp
13587 outputs missed optimization report from all the passes into
13588 \&\fImissed.all\fR, and this one:
13589 .Sp
13590 .Vb 1
13591 \&        gcc \-O2 \-ftree\-vectorize \-fopt\-info\-vec\-missed
13592 .Ve
13593 .Sp
13594 prints information about missed optimization opportunities from
13595 vectorization passes on \fIstderr\fR.  
13596 Note that \fB\-fopt\-info\-vec\-missed\fR is equivalent to 
13597 \&\fB\-fopt\-info\-missed\-vec\fR.  The order of the optimization group
13598 names and message types listed after \fB\-fopt\-info\fR does not matter.
13599 .Sp
13600 As another example,
13601 .Sp
13602 .Vb 1
13603 \&        gcc \-O3 \-fopt\-info\-inline\-optimized\-missed=inline.txt
13604 .Ve
13605 .Sp
13606 outputs information about missed optimizations as well as
13607 optimized locations from all the inlining passes into
13608 \&\fIinline.txt\fR.
13609 .Sp
13610 Finally, consider:
13611 .Sp
13612 .Vb 1
13613 \&        gcc \-fopt\-info\-vec\-missed=vec.miss \-fopt\-info\-loop\-optimized=loop.opt
13614 .Ve
13615 .Sp
13616 Here the two output filenames \fIvec.miss\fR and \fIloop.opt\fR are
13617 in conflict since only one output file is allowed. In this case, only
13618 the first option takes effect and the subsequent options are
13619 ignored. Thus only \fIvec.miss\fR is produced which contains
13620 dumps from the vectorizer about missed opportunities.
13621 .RE
13622 .IP "\fB\-fsched\-verbose=\fR\fIn\fR" 4
13623 .IX Item "-fsched-verbose=n"
13624 On targets that use instruction scheduling, this option controls the
13625 amount of debugging output the scheduler prints to the dump files.
13626 .Sp
13627 For \fIn\fR greater than zero, \fB\-fsched\-verbose\fR outputs the
13628 same information as \fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR.
13629 For \fIn\fR greater than one, it also output basic block probabilities,
13630 detailed ready list information and unit/insn info.  For \fIn\fR greater
13631 than two, it includes \s-1RTL\s0 at abort point, control-flow and regions info.
13632 And for \fIn\fR over four, \fB\-fsched\-verbose\fR also includes
13633 dependence info.
13634 .IP "\fB\-fenable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR" 4
13635 .IX Item "-fenable-kind-pass"
13636 .PD 0
13637 .IP "\fB\-fdisable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
13638 .IX Item "-fdisable-kind-pass=range-list"
13639 .PD
13640 This is a set of options that are used to explicitly disable/enable
13641 optimization passes.  These options are intended for use for debugging \s-1GCC.\s0
13642 Compiler users should use regular options for enabling/disabling
13643 passes instead.
13644 .RS 4
13645 .IP "\fB\-fdisable\-ipa\-\fR\fIpass\fR" 4
13646 .IX Item "-fdisable-ipa-pass"
13647 Disable \s-1IPA\s0 pass \fIpass\fR. \fIpass\fR is the pass name.  If the same pass is
13648 statically invoked in the compiler multiple times, the pass name should be
13649 appended with a sequential number starting from 1.
13650 .IP "\fB\-fdisable\-rtl\-\fR\fIpass\fR" 4
13651 .IX Item "-fdisable-rtl-pass"
13652 .PD 0
13653 .IP "\fB\-fdisable\-rtl\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
13654 .IX Item "-fdisable-rtl-pass=range-list"
13655 .PD
13656 Disable \s-1RTL\s0 pass \fIpass\fR.  \fIpass\fR is the pass name.  If the same pass is
13657 statically invoked in the compiler multiple times, the pass name should be
13658 appended with a sequential number starting from 1.  \fIrange-list\fR is a 
13659 comma-separated list of function ranges or assembler names.  Each range is a number
13660 pair separated by a colon.  The range is inclusive in both ends.  If the range
13661 is trivial, the number pair can be simplified as a single number.  If the
13662 function's call graph node's \fIuid\fR falls within one of the specified ranges,
13663 the \fIpass\fR is disabled for that function.  The \fIuid\fR is shown in the
13664 function header of a dump file, and the pass names can be dumped by using
13665 option \fB\-fdump\-passes\fR.
13666 .IP "\fB\-fdisable\-tree\-\fR\fIpass\fR" 4
13667 .IX Item "-fdisable-tree-pass"
13668 .PD 0
13669 .IP "\fB\-fdisable\-tree\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
13670 .IX Item "-fdisable-tree-pass=range-list"
13671 .PD
13672 Disable tree pass \fIpass\fR.  See \fB\-fdisable\-rtl\fR for the description of
13673 option arguments.
13674 .IP "\fB\-fenable\-ipa\-\fR\fIpass\fR" 4
13675 .IX Item "-fenable-ipa-pass"
13676 Enable \s-1IPA\s0 pass \fIpass\fR.  \fIpass\fR is the pass name.  If the same pass is
13677 statically invoked in the compiler multiple times, the pass name should be
13678 appended with a sequential number starting from 1.
13679 .IP "\fB\-fenable\-rtl\-\fR\fIpass\fR" 4
13680 .IX Item "-fenable-rtl-pass"
13681 .PD 0
13682 .IP "\fB\-fenable\-rtl\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
13683 .IX Item "-fenable-rtl-pass=range-list"
13684 .PD
13685 Enable \s-1RTL\s0 pass \fIpass\fR.  See \fB\-fdisable\-rtl\fR for option argument
13686 description and examples.
13687 .IP "\fB\-fenable\-tree\-\fR\fIpass\fR" 4
13688 .IX Item "-fenable-tree-pass"
13689 .PD 0
13690 .IP "\fB\-fenable\-tree\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
13691 .IX Item "-fenable-tree-pass=range-list"
13692 .PD
13693 Enable tree pass \fIpass\fR.  See \fB\-fdisable\-rtl\fR for the description
13694 of option arguments.
13695 .RE
13696 .RS 4
13697 .Sp
13698 Here are some examples showing uses of these options.
13699 .Sp
13700 .Vb 10
13701 \&        # disable ccp1 for all functions
13702 \&           \-fdisable\-tree\-ccp1
13703 \&        # disable complete unroll for function whose cgraph node uid is 1
13704 \&           \-fenable\-tree\-cunroll=1
13705 \&        # disable gcse2 for functions at the following ranges [1,1],
13706 \&        # [300,400], and [400,1000]
13707 \&        # disable gcse2 for functions foo and foo2
13708 \&           \-fdisable\-rtl\-gcse2=foo,foo2
13709 \&        # disable early inlining
13710 \&           \-fdisable\-tree\-einline
13711 \&        # disable ipa inlining
13712 \&           \-fdisable\-ipa\-inline
13713 \&        # enable tree full unroll
13714 \&           \-fenable\-tree\-unroll
13715 .Ve
13716 .RE
13717 .IP "\fB\-fchecking\fR" 4
13718 .IX Item "-fchecking"
13719 .PD 0
13720 .IP "\fB\-fchecking=\fR\fIn\fR" 4
13721 .IX Item "-fchecking=n"
13722 .PD
13723 Enable internal consistency checking.  The default depends on
13724 the compiler configuration.  \fB\-fchecking=2\fR enables further
13725 internal consistency checking that might affect code generation.
13726 .IP "\fB\-frandom\-seed=\fR\fIstring\fR" 4
13727 .IX Item "-frandom-seed=string"
13728 This option provides a seed that \s-1GCC\s0 uses in place of
13729 random numbers in generating certain symbol names
13730 that have to be different in every compiled file.  It is also used to
13731 place unique stamps in coverage data files and the object files that
13732 produce them.  You can use the \fB\-frandom\-seed\fR option to produce
13733 reproducibly identical object files.
13734 .Sp
13735 The \fIstring\fR can either be a number (decimal, octal or hex) or an
13736 arbitrary string (in which case it's converted to a number by
13737 computing \s-1CRC32\s0).
13738 .Sp
13739 The \fIstring\fR should be different for every file you compile.
13740 .IP "\fB\-save\-temps\fR" 4
13741 .IX Item "-save-temps"
13742 .PD 0
13743 .IP "\fB\-save\-temps=cwd\fR" 4
13744 .IX Item "-save-temps=cwd"
13745 .PD
13746 Store the usual \*(L"temporary\*(R" intermediate files permanently; place them
13747 in the current directory and name them based on the source file.  Thus,
13748 compiling \fIfoo.c\fR with \fB\-c \-save\-temps\fR produces files
13749 \&\fIfoo.i\fR and \fIfoo.s\fR, as well as \fIfoo.o\fR.  This creates a
13750 preprocessed \fIfoo.i\fR output file even though the compiler now
13751 normally uses an integrated preprocessor.
13752 .Sp
13753 When used in combination with the \fB\-x\fR command-line option,
13754 \&\fB\-save\-temps\fR is sensible enough to avoid over writing an
13755 input source file with the same extension as an intermediate file.
13756 The corresponding intermediate file may be obtained by renaming the
13757 source file before using \fB\-save\-temps\fR.
13758 .Sp
13759 If you invoke \s-1GCC\s0 in parallel, compiling several different source
13760 files that share a common base name in different subdirectories or the
13761 same source file compiled for multiple output destinations, it is
13762 likely that the different parallel compilers will interfere with each
13763 other, and overwrite the temporary files.  For instance:
13764 .Sp
13765 .Vb 2
13766 \&        gcc \-save\-temps \-o outdir1/foo.o indir1/foo.c&
13767 \&        gcc \-save\-temps \-o outdir2/foo.o indir2/foo.c&
13768 .Ve
13769 .Sp
13770 may result in \fIfoo.i\fR and \fIfoo.o\fR being written to
13771 simultaneously by both compilers.
13772 .IP "\fB\-save\-temps=obj\fR" 4
13773 .IX Item "-save-temps=obj"
13774 Store the usual \*(L"temporary\*(R" intermediate files permanently.  If the
13775 \&\fB\-o\fR option is used, the temporary files are based on the
13776 object file.  If the \fB\-o\fR option is not used, the
13777 \&\fB\-save\-temps=obj\fR switch behaves like \fB\-save\-temps\fR.
13778 .Sp
13779 For example:
13780 .Sp
13781 .Vb 3
13782 \&        gcc \-save\-temps=obj \-c foo.c
13783 \&        gcc \-save\-temps=obj \-c bar.c \-o dir/xbar.o
13784 \&        gcc \-save\-temps=obj foobar.c \-o dir2/yfoobar
13785 .Ve
13786 .Sp
13787 creates \fIfoo.i\fR, \fIfoo.s\fR, \fIdir/xbar.i\fR,
13788 \&\fIdir/xbar.s\fR, \fIdir2/yfoobar.i\fR, \fIdir2/yfoobar.s\fR, and
13789 \&\fIdir2/yfoobar.o\fR.
13790 .IP "\fB\-time\fR[\fB=\fR\fIfile\fR]" 4
13791 .IX Item "-time[=file]"
13792 Report the \s-1CPU\s0 time taken by each subprocess in the compilation
13793 sequence.  For C source files, this is the compiler proper and assembler
13794 (plus the linker if linking is done).
13795 .Sp
13796 Without the specification of an output file, the output looks like this:
13797 .Sp
13798 .Vb 2
13799 \&        # cc1 0.12 0.01
13800 \&        # as 0.00 0.01
13801 .Ve
13802 .Sp
13803 The first number on each line is the \*(L"user time\*(R", that is time spent
13804 executing the program itself.  The second number is \*(L"system time\*(R",
13805 time spent executing operating system routines on behalf of the program.
13806 Both numbers are in seconds.
13807 .Sp
13808 With the specification of an output file, the output is appended to the
13809 named file, and it looks like this:
13810 .Sp
13811 .Vb 2
13812 \&        0.12 0.01 cc1 <options>
13813 \&        0.00 0.01 as <options>
13814 .Ve
13815 .Sp
13816 The \*(L"user time\*(R" and the \*(L"system time\*(R" are moved before the program
13817 name, and the options passed to the program are displayed, so that one
13818 can later tell what file was being compiled, and with which options.
13819 .IP "\fB\-fdump\-final\-insns\fR[\fB=\fR\fIfile\fR]" 4
13820 .IX Item "-fdump-final-insns[=file]"
13821 Dump the final internal representation (\s-1RTL\s0) to \fIfile\fR.  If the
13822 optional argument is omitted (or if \fIfile\fR is \f(CW\*(C`.\*(C'\fR), the name
13823 of the dump file is determined by appending \f(CW\*(C`.gkd\*(C'\fR to the
13824 compilation output file name.
13825 .IP "\fB\-fcompare\-debug\fR[\fB=\fR\fIopts\fR]" 4
13826 .IX Item "-fcompare-debug[=opts]"
13827 If no error occurs during compilation, run the compiler a second time,
13828 adding \fIopts\fR and \fB\-fcompare\-debug\-second\fR to the arguments
13829 passed to the second compilation.  Dump the final internal
13830 representation in both compilations, and print an error if they differ.
13831 .Sp
13832 If the equal sign is omitted, the default \fB\-gtoggle\fR is used.
13833 .Sp
13834 The environment variable \fB\s-1GCC_COMPARE_DEBUG\s0\fR, if defined, non-empty
13835 and nonzero, implicitly enables \fB\-fcompare\-debug\fR.  If
13836 \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR is defined to a string starting with a dash,
13837 then it is used for \fIopts\fR, otherwise the default \fB\-gtoggle\fR
13838 is used.
13839 .Sp
13840 \&\fB\-fcompare\-debug=\fR, with the equal sign but without \fIopts\fR,
13841 is equivalent to \fB\-fno\-compare\-debug\fR, which disables the dumping
13842 of the final representation and the second compilation, preventing even
13843 \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR from taking effect.
13844 .Sp
13845 To verify full coverage during \fB\-fcompare\-debug\fR testing, set
13846 \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR to say \fB\-fcompare\-debug\-not\-overridden\fR,
13847 which \s-1GCC\s0 rejects as an invalid option in any actual compilation
13848 (rather than preprocessing, assembly or linking).  To get just a
13849 warning, setting \fB\s-1GCC_COMPARE_DEBUG\s0\fR to \fB\-w%n\-fcompare\-debug
13850 not overridden\fR will do.
13851 .IP "\fB\-fcompare\-debug\-second\fR" 4
13852 .IX Item "-fcompare-debug-second"
13853 This option is implicitly passed to the compiler for the second
13854 compilation requested by \fB\-fcompare\-debug\fR, along with options to
13855 silence warnings, and omitting other options that would cause the compiler
13856 to produce output to files or to standard output as a side effect.  Dump
13857 files and preserved temporary files are renamed so as to contain the
13858 \&\f(CW\*(C`.gk\*(C'\fR additional extension during the second compilation, to avoid
13859 overwriting those generated by the first.
13860 .Sp
13861 When this option is passed to the compiler driver, it causes the
13862 \&\fIfirst\fR compilation to be skipped, which makes it useful for little
13863 other than debugging the compiler proper.
13864 .IP "\fB\-gtoggle\fR" 4
13865 .IX Item "-gtoggle"
13866 Turn off generation of debug info, if leaving out this option
13867 generates it, or turn it on at level 2 otherwise.  The position of this
13868 argument in the command line does not matter; it takes effect after all
13869 other options are processed, and it does so only once, no matter how
13870 many times it is given.  This is mainly intended to be used with
13871 \&\fB\-fcompare\-debug\fR.
13872 .IP "\fB\-fvar\-tracking\-assignments\-toggle\fR" 4
13873 .IX Item "-fvar-tracking-assignments-toggle"
13874 Toggle \fB\-fvar\-tracking\-assignments\fR, in the same way that
13875 \&\fB\-gtoggle\fR toggles \fB\-g\fR.
13876 .IP "\fB\-Q\fR" 4
13877 .IX Item "-Q"
13878 Makes the compiler print out each function name as it is compiled, and
13879 print some statistics about each pass when it finishes.
13880 .IP "\fB\-ftime\-report\fR" 4
13881 .IX Item "-ftime-report"
13882 Makes the compiler print some statistics about the time consumed by each
13883 pass when it finishes.
13884 .IP "\fB\-ftime\-report\-details\fR" 4
13885 .IX Item "-ftime-report-details"
13886 Record the time consumed by infrastructure parts separately for each pass.
13887 .IP "\fB\-fira\-verbose=\fR\fIn\fR" 4
13888 .IX Item "-fira-verbose=n"
13889 Control the verbosity of the dump file for the integrated register allocator.
13890 The default value is 5.  If the value \fIn\fR is greater or equal to 10,
13891 the dump output is sent to stderr using the same format as \fIn\fR minus 10.
13892 .IP "\fB\-flto\-report\fR" 4
13893 .IX Item "-flto-report"
13894 Prints a report with internal details on the workings of the link-time
13895 optimizer.  The contents of this report vary from version to version.
13896 It is meant to be useful to \s-1GCC\s0 developers when processing object
13897 files in \s-1LTO\s0 mode (via \fB\-flto\fR).
13898 .Sp
13899 Disabled by default.
13900 .IP "\fB\-flto\-report\-wpa\fR" 4
13901 .IX Item "-flto-report-wpa"
13902 Like \fB\-flto\-report\fR, but only print for the \s-1WPA\s0 phase of Link
13903 Time Optimization.
13904 .IP "\fB\-fmem\-report\fR" 4
13905 .IX Item "-fmem-report"
13906 Makes the compiler print some statistics about permanent memory
13907 allocation when it finishes.
13908 .IP "\fB\-fmem\-report\-wpa\fR" 4
13909 .IX Item "-fmem-report-wpa"
13910 Makes the compiler print some statistics about permanent memory
13911 allocation for the \s-1WPA\s0 phase only.
13912 .IP "\fB\-fpre\-ipa\-mem\-report\fR" 4
13913 .IX Item "-fpre-ipa-mem-report"
13914 .PD 0
13915 .IP "\fB\-fpost\-ipa\-mem\-report\fR" 4
13916 .IX Item "-fpost-ipa-mem-report"
13917 .PD
13918 Makes the compiler print some statistics about permanent memory
13919 allocation before or after interprocedural optimization.
13920 .IP "\fB\-fprofile\-report\fR" 4
13921 .IX Item "-fprofile-report"
13922 Makes the compiler print some statistics about consistency of the
13923 (estimated) profile and effect of individual passes.
13924 .IP "\fB\-fstack\-usage\fR" 4
13925 .IX Item "-fstack-usage"
13926 Makes the compiler output stack usage information for the program, on a
13927 per-function basis.  The filename for the dump is made by appending
13928 \&\fI.su\fR to the \fIauxname\fR.  \fIauxname\fR is generated from the name of
13929 the output file, if explicitly specified and it is not an executable,
13930 otherwise it is the basename of the source file.  An entry is made up
13931 of three fields:
13932 .RS 4
13933 .IP "*" 4
13934 The name of the function.
13935 .IP "*" 4
13936 A number of bytes.
13937 .IP "*" 4
13938 One or more qualifiers: \f(CW\*(C`static\*(C'\fR, \f(CW\*(C`dynamic\*(C'\fR, \f(CW\*(C`bounded\*(C'\fR.
13939 .RE
13940 .RS 4
13941 .Sp
13942 The qualifier \f(CW\*(C`static\*(C'\fR means that the function manipulates the stack
13943 statically: a fixed number of bytes are allocated for the frame on function
13944 entry and released on function exit; no stack adjustments are otherwise made
13945 in the function.  The second field is this fixed number of bytes.
13946 .Sp
13947 The qualifier \f(CW\*(C`dynamic\*(C'\fR means that the function manipulates the stack
13948 dynamically: in addition to the static allocation described above, stack
13949 adjustments are made in the body of the function, for example to push/pop
13950 arguments around function calls.  If the qualifier \f(CW\*(C`bounded\*(C'\fR is also
13951 present, the amount of these adjustments is bounded at compile time and
13952 the second field is an upper bound of the total amount of stack used by
13953 the function.  If it is not present, the amount of these adjustments is
13954 not bounded at compile time and the second field only represents the
13955 bounded part.
13956 .RE
13957 .IP "\fB\-fstats\fR" 4
13958 .IX Item "-fstats"
13959 Emit statistics about front-end processing at the end of the compilation.
13960 This option is supported only by the \*(C+ front end, and
13961 the information is generally only useful to the G++ development team.
13962 .IP "\fB\-fdbg\-cnt\-list\fR" 4
13963 .IX Item "-fdbg-cnt-list"
13964 Print the name and the counter upper bound for all debug counters.
13965 .IP "\fB\-fdbg\-cnt=\fR\fIcounter-value-list\fR" 4
13966 .IX Item "-fdbg-cnt=counter-value-list"
13967 Set the internal debug counter upper bound.  \fIcounter-value-list\fR
13968 is a comma-separated list of \fIname\fR:\fIvalue\fR pairs
13969 which sets the upper bound of each debug counter \fIname\fR to \fIvalue\fR.
13970 All debug counters have the initial upper bound of \f(CW\*(C`UINT_MAX\*(C'\fR;
13971 thus \f(CW\*(C`dbg_cnt\*(C'\fR returns true always unless the upper bound
13972 is set by this option.
13973 For example, with \fB\-fdbg\-cnt=dce:10,tail_call:0\fR,
13974 \&\f(CW\*(C`dbg_cnt(dce)\*(C'\fR returns true only for first 10 invocations.
13975 .IP "\fB\-print\-file\-name=\fR\fIlibrary\fR" 4
13976 .IX Item "-print-file-name=library"
13977 Print the full absolute name of the library file \fIlibrary\fR that
13978 would be used when linking\-\-\-and don't do anything else.  With this
13979 option, \s-1GCC\s0 does not compile or link anything; it just prints the
13980 file name.
13981 .IP "\fB\-print\-multi\-directory\fR" 4
13982 .IX Item "-print-multi-directory"
13983 Print the directory name corresponding to the multilib selected by any
13984 other switches present in the command line.  This directory is supposed
13985 to exist in \fB\s-1GCC_EXEC_PREFIX\s0\fR.
13986 .IP "\fB\-print\-multi\-lib\fR" 4
13987 .IX Item "-print-multi-lib"
13988 Print the mapping from multilib directory names to compiler switches
13989 that enable them.  The directory name is separated from the switches by
13990 \&\fB;\fR, and each switch starts with an \fB@\fR instead of the
13991 \&\fB\-\fR, without spaces between multiple switches.  This is supposed to
13992 ease shell processing.
13993 .IP "\fB\-print\-multi\-os\-directory\fR" 4
13994 .IX Item "-print-multi-os-directory"
13995 Print the path to \s-1OS\s0 libraries for the selected
13996 multilib, relative to some \fIlib\fR subdirectory.  If \s-1OS\s0 libraries are
13997 present in the \fIlib\fR subdirectory and no multilibs are used, this is
13998 usually just \fI.\fR, if \s-1OS\s0 libraries are present in \fIlib\fIsuffix\fI\fR
13999 sibling directories this prints e.g. \fI../lib64\fR, \fI../lib\fR or
14000 \&\fI../lib32\fR, or if \s-1OS\s0 libraries are present in \fIlib/\fIsubdir\fI\fR
14001 subdirectories it prints e.g. \fIamd64\fR, \fIsparcv9\fR or \fIev6\fR.
14002 .IP "\fB\-print\-multiarch\fR" 4
14003 .IX Item "-print-multiarch"
14004 Print the path to \s-1OS\s0 libraries for the selected multiarch,
14005 relative to some \fIlib\fR subdirectory.
14006 .IP "\fB\-print\-prog\-name=\fR\fIprogram\fR" 4
14007 .IX Item "-print-prog-name=program"
14008 Like \fB\-print\-file\-name\fR, but searches for a program such as \fBcpp\fR.
14009 .IP "\fB\-print\-libgcc\-file\-name\fR" 4
14010 .IX Item "-print-libgcc-file-name"
14011 Same as \fB\-print\-file\-name=libgcc.a\fR.
14012 .Sp
14013 This is useful when you use \fB\-nostdlib\fR or \fB\-nodefaultlibs\fR
14014 but you do want to link with \fIlibgcc.a\fR.  You can do:
14015 .Sp
14016 .Vb 1
14017 \&        gcc \-nostdlib <files>... \`gcc \-print\-libgcc\-file\-name\`
14018 .Ve
14019 .IP "\fB\-print\-search\-dirs\fR" 4
14020 .IX Item "-print-search-dirs"
14021 Print the name of the configured installation directory and a list of
14022 program and library directories \fBgcc\fR searches\-\-\-and don't do anything else.
14023 .Sp
14024 This is useful when \fBgcc\fR prints the error message
14025 \&\fBinstallation problem, cannot exec cpp0: No such file or directory\fR.
14026 To resolve this you either need to put \fIcpp0\fR and the other compiler
14027 components where \fBgcc\fR expects to find them, or you can set the environment
14028 variable \fB\s-1GCC_EXEC_PREFIX\s0\fR to the directory where you installed them.
14029 Don't forget the trailing \fB/\fR.
14030 .IP "\fB\-print\-sysroot\fR" 4
14031 .IX Item "-print-sysroot"
14032 Print the target sysroot directory that is used during
14033 compilation.  This is the target sysroot specified either at configure
14034 time or using the \fB\-\-sysroot\fR option, possibly with an extra
14035 suffix that depends on compilation options.  If no target sysroot is
14036 specified, the option prints nothing.
14037 .IP "\fB\-print\-sysroot\-headers\-suffix\fR" 4
14038 .IX Item "-print-sysroot-headers-suffix"
14039 Print the suffix added to the target sysroot when searching for
14040 headers, or give an error if the compiler is not configured with such
14041 a suffix\-\-\-and don't do anything else.
14042 .IP "\fB\-dumpmachine\fR" 4
14043 .IX Item "-dumpmachine"
14044 Print the compiler's target machine (for example,
14045 \&\fBi686\-pc\-linux\-gnu\fR)\-\-\-and don't do anything else.
14046 .IP "\fB\-dumpversion\fR" 4
14047 .IX Item "-dumpversion"
14048 Print the compiler version (for example, \f(CW3.0\fR, \f(CW6.3.0\fR or \f(CW7\fR)\-\-\-and don't do
14049 anything else.  This is the compiler version used in filesystem paths,
14050 specs, can be depending on how the compiler has been configured just
14051 a single number (major version), two numbers separated by dot (major and
14052 minor version) or three numbers separated by dots (major, minor and patchlevel
14053 version).
14054 .IP "\fB\-dumpfullversion\fR" 4
14055 .IX Item "-dumpfullversion"
14056 Print the full compiler version, always 3 numbers separated by dots,
14057 major, minor and patchlevel version.
14058 .IP "\fB\-dumpspecs\fR" 4
14059 .IX Item "-dumpspecs"
14060 Print the compiler's built-in specs\-\-\-and don't do anything else.  (This
14061 is used when \s-1GCC\s0 itself is being built.)
14062 .SS "Machine-Dependent Options"
14063 .IX Subsection "Machine-Dependent Options"
14064 Each target machine supported by \s-1GCC\s0 can have its own options\-\-\-for
14065 example, to allow you to compile for a particular processor variant or
14066 \&\s-1ABI,\s0 or to control optimizations specific to that machine.  By
14067 convention, the names of machine-specific options start with
14068 \&\fB\-m\fR.
14069 .PP
14070 Some configurations of the compiler also support additional target-specific
14071 options, usually for compatibility with other compilers on the same
14072 platform.
14073 .PP
14074 \fIAArch64 Options\fR
14075 .IX Subsection "AArch64 Options"
14076 .PP
14077 These options are defined for AArch64 implementations:
14078 .IP "\fB\-mabi=\fR\fIname\fR" 4
14079 .IX Item "-mabi=name"
14080 Generate code for the specified data model.  Permissible values
14081 are \fBilp32\fR for SysV-like data model where int, long int and pointers
14082 are 32 bits, and \fBlp64\fR for SysV-like data model where int is 32 bits,
14083 but long int and pointers are 64 bits.
14084 .Sp
14085 The default depends on the specific target configuration.  Note that
14086 the \s-1LP64\s0 and \s-1ILP32\s0 ABIs are not link-compatible; you must compile your
14087 entire program with the same \s-1ABI,\s0 and link with a compatible set of libraries.
14088 .IP "\fB\-mbig\-endian\fR" 4
14089 .IX Item "-mbig-endian"
14090 Generate big-endian code.  This is the default when \s-1GCC\s0 is configured for an
14091 \&\fBaarch64_be\-*\-*\fR target.
14092 .IP "\fB\-mgeneral\-regs\-only\fR" 4
14093 .IX Item "-mgeneral-regs-only"
14094 Generate code which uses only the general-purpose registers.  This will prevent
14095 the compiler from using floating-point and Advanced \s-1SIMD\s0 registers but will not
14096 impose any restrictions on the assembler.
14097 .IP "\fB\-mlittle\-endian\fR" 4
14098 .IX Item "-mlittle-endian"
14099 Generate little-endian code.  This is the default when \s-1GCC\s0 is configured for an
14100 \&\fBaarch64\-*\-*\fR but not an \fBaarch64_be\-*\-*\fR target.
14101 .IP "\fB\-mcmodel=tiny\fR" 4
14102 .IX Item "-mcmodel=tiny"
14103 Generate code for the tiny code model.  The program and its statically defined
14104 symbols must be within 1MB of each other.  Programs can be statically or
14105 dynamically linked.
14106 .IP "\fB\-mcmodel=small\fR" 4
14107 .IX Item "-mcmodel=small"
14108 Generate code for the small code model.  The program and its statically defined
14109 symbols must be within 4GB of each other.  Programs can be statically or
14110 dynamically linked.  This is the default code model.
14111 .IP "\fB\-mcmodel=large\fR" 4
14112 .IX Item "-mcmodel=large"
14113 Generate code for the large code model.  This makes no assumptions about
14114 addresses and sizes of sections.  Programs can be statically linked only.
14115 .IP "\fB\-mstrict\-align\fR" 4
14116 .IX Item "-mstrict-align"
14117 Avoid generating memory accesses that may not be aligned on a natural object
14118 boundary as described in the architecture specification.
14119 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
14120 .IX Item "-momit-leaf-frame-pointer"
14121 .PD 0
14122 .IP "\fB\-mno\-omit\-leaf\-frame\-pointer\fR" 4
14123 .IX Item "-mno-omit-leaf-frame-pointer"
14124 .PD
14125 Omit or keep the frame pointer in leaf functions.  The former behavior is the
14126 default.
14127 .IP "\fB\-mtls\-dialect=desc\fR" 4
14128 .IX Item "-mtls-dialect=desc"
14129 Use \s-1TLS\s0 descriptors as the thread-local storage mechanism for dynamic accesses
14130 of \s-1TLS\s0 variables.  This is the default.
14131 .IP "\fB\-mtls\-dialect=traditional\fR" 4
14132 .IX Item "-mtls-dialect=traditional"
14133 Use traditional \s-1TLS\s0 as the thread-local storage mechanism for dynamic accesses
14134 of \s-1TLS\s0 variables.
14135 .IP "\fB\-mtls\-size=\fR\fIsize\fR" 4
14136 .IX Item "-mtls-size=size"
14137 Specify bit size of immediate \s-1TLS\s0 offsets.  Valid values are 12, 24, 32, 48.
14138 This option requires binutils 2.26 or newer.
14139 .IP "\fB\-mfix\-cortex\-a53\-835769\fR" 4
14140 .IX Item "-mfix-cortex-a53-835769"
14141 .PD 0
14142 .IP "\fB\-mno\-fix\-cortex\-a53\-835769\fR" 4
14143 .IX Item "-mno-fix-cortex-a53-835769"
14144 .PD
14145 Enable or disable the workaround for the \s-1ARM\s0 Cortex\-A53 erratum number 835769.
14146 This involves inserting a \s-1NOP\s0 instruction between memory instructions and
14147 64\-bit integer multiply-accumulate instructions.
14148 .IP "\fB\-mfix\-cortex\-a53\-843419\fR" 4
14149 .IX Item "-mfix-cortex-a53-843419"
14150 .PD 0
14151 .IP "\fB\-mno\-fix\-cortex\-a53\-843419\fR" 4
14152 .IX Item "-mno-fix-cortex-a53-843419"
14153 .PD
14154 Enable or disable the workaround for the \s-1ARM\s0 Cortex\-A53 erratum number 843419.
14155 This erratum workaround is made at link time and this will only pass the
14156 corresponding flag to the linker.
14157 .IP "\fB\-mlow\-precision\-recip\-sqrt\fR" 4
14158 .IX Item "-mlow-precision-recip-sqrt"
14159 .PD 0
14160 .IP "\fB\-mno\-low\-precision\-recip\-sqrt\fR" 4
14161 .IX Item "-mno-low-precision-recip-sqrt"
14162 .PD
14163 Enable or disable the reciprocal square root approximation.
14164 This option only has an effect if \fB\-ffast\-math\fR or
14165 \&\fB\-funsafe\-math\-optimizations\fR is used as well.  Enabling this reduces
14166 precision of reciprocal square root results to about 16 bits for
14167 single precision and to 32 bits for double precision.
14168 .IP "\fB\-mlow\-precision\-sqrt\fR" 4
14169 .IX Item "-mlow-precision-sqrt"
14170 .PD 0
14171 .IP "\fB\-mno\-low\-precision\-sqrt\fR" 4
14172 .IX Item "-mno-low-precision-sqrt"
14173 .PD
14174 Enable or disable the square root approximation.
14175 This option only has an effect if \fB\-ffast\-math\fR or
14176 \&\fB\-funsafe\-math\-optimizations\fR is used as well.  Enabling this reduces
14177 precision of square root results to about 16 bits for
14178 single precision and to 32 bits for double precision.
14179 If enabled, it implies \fB\-mlow\-precision\-recip\-sqrt\fR.
14180 .IP "\fB\-mlow\-precision\-div\fR" 4
14181 .IX Item "-mlow-precision-div"
14182 .PD 0
14183 .IP "\fB\-mno\-low\-precision\-div\fR" 4
14184 .IX Item "-mno-low-precision-div"
14185 .PD
14186 Enable or disable the division approximation.
14187 This option only has an effect if \fB\-ffast\-math\fR or
14188 \&\fB\-funsafe\-math\-optimizations\fR is used as well.  Enabling this reduces
14189 precision of division results to about 16 bits for
14190 single precision and to 32 bits for double precision.
14191 .IP "\fB\-march=\fR\fIname\fR" 4
14192 .IX Item "-march=name"
14193 Specify the name of the target architecture and, optionally, one or
14194 more feature modifiers.  This option has the form
14195 \&\fB\-march=\fR\fIarch\fR{\fB+\fR[\fBno\fR]\fIfeature\fR}*.
14196 .Sp
14197 The permissible values for \fIarch\fR are \fBarmv8\-a\fR,
14198 \&\fBarmv8.1\-a\fR, \fBarmv8.2\-a\fR, \fBarmv8.3\-a\fR or \fBarmv8.4\-a\fR
14199 or \fInative\fR.
14200 .Sp
14201 The value \fBarmv8.4\-a\fR implies \fBarmv8.3\-a\fR and enables compiler
14202 support for the ARMv8.4\-A architecture extensions.
14203 .Sp
14204 The value \fBarmv8.3\-a\fR implies \fBarmv8.2\-a\fR and enables compiler
14205 support for the ARMv8.3\-A architecture extensions.
14206 .Sp
14207 The value \fBarmv8.2\-a\fR implies \fBarmv8.1\-a\fR and enables compiler
14208 support for the ARMv8.2\-A architecture extensions.
14209 .Sp
14210 The value \fBarmv8.1\-a\fR implies \fBarmv8\-a\fR and enables compiler
14211 support for the ARMv8.1\-A architecture extension.  In particular, it
14212 enables the \fB+crc\fR, \fB+lse\fR, and \fB+rdma\fR features.
14213 .Sp
14214 The value \fBnative\fR is available on native AArch64 GNU/Linux and
14215 causes the compiler to pick the architecture of the host system.  This
14216 option has no effect if the compiler is unable to recognize the
14217 architecture of the host system,
14218 .Sp
14219 The permissible values for \fIfeature\fR are listed in the sub-section
14220 on \fBaarch64\-feature\-modifiers,,\fR\fB\-march\fR \fBand\fR \fB\-mcpu\fR
14221 \&\fBFeature Modifiers\fR.  Where conflicting feature modifiers are
14222 specified, the right-most feature is used.
14223 .Sp
14224 \&\s-1GCC\s0 uses \fIname\fR to determine what kind of instructions it can emit
14225 when generating assembly code.  If \fB\-march\fR is specified
14226 without either of \fB\-mtune\fR or \fB\-mcpu\fR also being
14227 specified, the code is tuned to perform well across a range of target
14228 processors implementing the target architecture.
14229 .IP "\fB\-mtune=\fR\fIname\fR" 4
14230 .IX Item "-mtune=name"
14231 Specify the name of the target processor for which \s-1GCC\s0 should tune the
14232 performance of the code.  Permissible values for this option are:
14233 \&\fBgeneric\fR, \fBcortex\-a35\fR, \fBcortex\-a53\fR, \fBcortex\-a55\fR,
14234 \&\fBcortex\-a57\fR, \fBcortex\-a72\fR, \fBcortex\-a73\fR, \fBcortex\-a75\fR,
14235 \&\fBexynos\-m1\fR, \fBfalkor\fR, \fBqdf24xx\fR, \fBsaphira\fR,
14236 \&\fBxgene1\fR, \fBvulcan\fR, \fBthunderx\fR,
14237 \&\fBthunderxt88\fR, \fBthunderxt88p1\fR, \fBthunderxt81\fR,
14238 \&\fBthunderxt83\fR, \fBthunderx2t99\fR, \fBcortex\-a57.cortex\-a53\fR,
14239 \&\fBcortex\-a72.cortex\-a53\fR, \fBcortex\-a73.cortex\-a35\fR,
14240 \&\fBcortex\-a73.cortex\-a53\fR, \fBcortex\-a75.cortex\-a55\fR,
14241 \&\fBnative\fR.
14242 .Sp
14243 The values \fBcortex\-a57.cortex\-a53\fR, \fBcortex\-a72.cortex\-a53\fR,
14244 \&\fBcortex\-a73.cortex\-a35\fR, \fBcortex\-a73.cortex\-a53\fR,
14245 \&\fBcortex\-a75.cortex\-a55\fR specify that \s-1GCC\s0 should tune for a
14246 big.LITTLE system.
14247 .Sp
14248 Additionally on native AArch64 GNU/Linux systems the value
14249 \&\fBnative\fR tunes performance to the host system.  This option has no effect
14250 if the compiler is unable to recognize the processor of the host system.
14251 .Sp
14252 Where none of \fB\-mtune=\fR, \fB\-mcpu=\fR or \fB\-march=\fR
14253 are specified, the code is tuned to perform well across a range
14254 of target processors.
14255 .Sp
14256 This option cannot be suffixed by feature modifiers.
14257 .IP "\fB\-mcpu=\fR\fIname\fR" 4
14258 .IX Item "-mcpu=name"
14259 Specify the name of the target processor, optionally suffixed by one
14260 or more feature modifiers.  This option has the form
14261 \&\fB\-mcpu=\fR\fIcpu\fR{\fB+\fR[\fBno\fR]\fIfeature\fR}*, where
14262 the permissible values for \fIcpu\fR are the same as those available
14263 for \fB\-mtune\fR.  The permissible values for \fIfeature\fR are
14264 documented in the sub-section on
14265 \&\fBaarch64\-feature\-modifiers,,\fR\fB\-march\fR \fBand\fR \fB\-mcpu\fR
14266 \&\fBFeature Modifiers\fR.  Where conflicting feature modifiers are
14267 specified, the right-most feature is used.
14268 .Sp
14269 \&\s-1GCC\s0 uses \fIname\fR to determine what kind of instructions it can emit when
14270 generating assembly code (as if by \fB\-march\fR) and to determine
14271 the target processor for which to tune for performance (as if
14272 by \fB\-mtune\fR).  Where this option is used in conjunction
14273 with \fB\-march\fR or \fB\-mtune\fR, those options take precedence
14274 over the appropriate part of this option.
14275 .IP "\fB\-moverride=\fR\fIstring\fR" 4
14276 .IX Item "-moverride=string"
14277 Override tuning decisions made by the back-end in response to a
14278 \&\fB\-mtune=\fR switch.  The syntax, semantics, and accepted values
14279 for \fIstring\fR in this option are not guaranteed to be consistent
14280 across releases.
14281 .Sp
14282 This option is only intended to be useful when developing \s-1GCC.\s0
14283 .IP "\fB\-mverbose\-cost\-dump\fR" 4
14284 .IX Item "-mverbose-cost-dump"
14285 Enable verbose cost model dumping in the debug dump files.  This option is
14286 provided for use in debugging the compiler.
14287 .IP "\fB\-mpc\-relative\-literal\-loads\fR" 4
14288 .IX Item "-mpc-relative-literal-loads"
14289 .PD 0
14290 .IP "\fB\-mno\-pc\-relative\-literal\-loads\fR" 4
14291 .IX Item "-mno-pc-relative-literal-loads"
14292 .PD
14293 Enable or disable PC-relative literal loads.  With this option literal pools are
14294 accessed using a single instruction and emitted after each function.  This
14295 limits the maximum size of functions to 1MB.  This is enabled by default for
14296 \&\fB\-mcmodel=tiny\fR.
14297 .IP "\fB\-msign\-return\-address=\fR\fIscope\fR" 4
14298 .IX Item "-msign-return-address=scope"
14299 Select the function scope on which return address signing will be applied.
14300 Permissible values are \fBnone\fR, which disables return address signing,
14301 \&\fBnon-leaf\fR, which enables pointer signing for functions which are not leaf
14302 functions, and \fBall\fR, which enables pointer signing for all functions.  The
14303 default value is \fBnone\fR.
14304 .IP "\fB\-msve\-vector\-bits=\fR\fIbits\fR" 4
14305 .IX Item "-msve-vector-bits=bits"
14306 Specify the number of bits in an \s-1SVE\s0 vector register.  This option only has
14307 an effect when \s-1SVE\s0 is enabled.
14308 .Sp
14309 \&\s-1GCC\s0 supports two forms of \s-1SVE\s0 code generation: \*(L"vector-length
14310 agnostic\*(R" output that works with any size of vector register and
14311 \&\*(L"vector-length specific\*(R" output that allows \s-1GCC\s0 to make assumptions
14312 about the vector length when it is useful for optimization reasons.
14313 The possible values of \fBbits\fR are: \fBscalable\fR, \fB128\fR,
14314 \&\fB256\fR, \fB512\fR, \fB1024\fR and \fB2048\fR.
14315 Specifying \fBscalable\fR selects vector-length agnostic
14316 output.  At present \fB\-msve\-vector\-bits=128\fR also generates vector-length
14317 agnostic output.  All other values generate vector-length specific code.
14318 The behavior of these values may change in future releases and no value except
14319 \&\fBscalable\fR should be relied on for producing code that is portable across
14320 different hardware \s-1SVE\s0 vector lengths.
14321 .Sp
14322 The default is \fB\-msve\-vector\-bits=scalable\fR, which produces
14323 vector-length agnostic code.
14324 .PP
14325 \fB\-march\fR and \fB\-mcpu\fR Feature Modifiers
14326 .IX Subsection "-march and -mcpu Feature Modifiers"
14327 .PP
14328 Feature modifiers used with \fB\-march\fR and \fB\-mcpu\fR can be any of
14329 the following and their inverses \fBno\fR\fIfeature\fR:
14330 .IP "\fBcrc\fR" 4
14331 .IX Item "crc"
14332 Enable \s-1CRC\s0 extension.  This is on by default for
14333 \&\fB\-march=armv8.1\-a\fR.
14334 .IP "\fBcrypto\fR" 4
14335 .IX Item "crypto"
14336 Enable Crypto extension.  This also enables Advanced \s-1SIMD\s0 and floating-point
14337 instructions.
14338 .IP "\fBfp\fR" 4
14339 .IX Item "fp"
14340 Enable floating-point instructions.  This is on by default for all possible
14341 values for options \fB\-march\fR and \fB\-mcpu\fR.
14342 .IP "\fBsimd\fR" 4
14343 .IX Item "simd"
14344 Enable Advanced \s-1SIMD\s0 instructions.  This also enables floating-point
14345 instructions.  This is on by default for all possible values for options
14346 \&\fB\-march\fR and \fB\-mcpu\fR.
14347 .IP "\fBsve\fR" 4
14348 .IX Item "sve"
14349 Enable Scalable Vector Extension instructions.  This also enables Advanced
14350 \&\s-1SIMD\s0 and floating-point instructions.
14351 .IP "\fBlse\fR" 4
14352 .IX Item "lse"
14353 Enable Large System Extension instructions.  This is on by default for
14354 \&\fB\-march=armv8.1\-a\fR.
14355 .IP "\fBrdma\fR" 4
14356 .IX Item "rdma"
14357 Enable Round Double Multiply Accumulate instructions.  This is on by default
14358 for \fB\-march=armv8.1\-a\fR.
14359 .IP "\fBfp16\fR" 4
14360 .IX Item "fp16"
14361 Enable \s-1FP16\s0 extension.  This also enables floating-point instructions.
14362 .IP "\fBfp16fml\fR" 4
14363 .IX Item "fp16fml"
14364 Enable \s-1FP16\s0 fmla extension.  This also enables \s-1FP16\s0 extensions and
14365 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.
14366 .IP "\fBrcpc\fR" 4
14367 .IX Item "rcpc"
14368 Enable the RcPc extension.  This does not change code generation from \s-1GCC,\s0
14369 but is passed on to the assembler, enabling inline asm statements to use
14370 instructions from the RcPc extension.
14371 .IP "\fBdotprod\fR" 4
14372 .IX Item "dotprod"
14373 Enable the Dot Product extension.  This also enables Advanced \s-1SIMD\s0 instructions.
14374 .IP "\fBaes\fR" 4
14375 .IX Item "aes"
14376 Enable the Armv8\-a aes and pmull crypto extension.  This also enables Advanced
14377 \&\s-1SIMD\s0 instructions.
14378 .IP "\fBsha2\fR" 4
14379 .IX Item "sha2"
14380 Enable the Armv8\-a sha2 crypto extension.  This also enables Advanced \s-1SIMD\s0 instructions.
14381 .IP "\fBsha3\fR" 4
14382 .IX Item "sha3"
14383 Enable the sha512 and sha3 crypto extension.  This also enables Advanced \s-1SIMD\s0
14384 instructions. Use of this option with architectures prior to Armv8.2\-A is not supported.
14385 .IP "\fBsm4\fR" 4
14386 .IX Item "sm4"
14387 Enable the sm3 and sm4 crypto extension.  This also enables Advanced \s-1SIMD\s0 instructions.
14388 Use of this option with architectures prior to Armv8.2\-A is not supported.
14389 .PP
14390 Feature \fBcrypto\fR implies \fBaes\fR, \fBsha2\fR, and \fBsimd\fR,
14391 which implies \fBfp\fR.
14392 Conversely, \fBnofp\fR implies \fBnosimd\fR, which implies
14393 \&\fBnocrypto\fR, \fBnoaes\fR and \fBnosha2\fR.
14394 .PP
14395 \fIAdapteva Epiphany Options\fR
14396 .IX Subsection "Adapteva Epiphany Options"
14397 .PP
14398 These \fB\-m\fR options are defined for Adapteva Epiphany:
14399 .IP "\fB\-mhalf\-reg\-file\fR" 4
14400 .IX Item "-mhalf-reg-file"
14401 Don't allocate any register in the range \f(CW\*(C`r32\*(C'\fR...\f(CW\*(C`r63\*(C'\fR.
14402 That allows code to run on hardware variants that lack these registers.
14403 .IP "\fB\-mprefer\-short\-insn\-regs\fR" 4
14404 .IX Item "-mprefer-short-insn-regs"
14405 Preferentially allocate registers that allow short instruction generation.
14406 This can result in increased instruction count, so this may either reduce or
14407 increase overall code size.
14408 .IP "\fB\-mbranch\-cost=\fR\fInum\fR" 4
14409 .IX Item "-mbranch-cost=num"
14410 Set the cost of branches to roughly \fInum\fR \*(L"simple\*(R" instructions.
14411 This cost is only a heuristic and is not guaranteed to produce
14412 consistent results across releases.
14413 .IP "\fB\-mcmove\fR" 4
14414 .IX Item "-mcmove"
14415 Enable the generation of conditional moves.
14416 .IP "\fB\-mnops=\fR\fInum\fR" 4
14417 .IX Item "-mnops=num"
14418 Emit \fInum\fR NOPs before every other generated instruction.
14419 .IP "\fB\-mno\-soft\-cmpsf\fR" 4
14420 .IX Item "-mno-soft-cmpsf"
14421 For single-precision floating-point comparisons, emit an \f(CW\*(C`fsub\*(C'\fR instruction
14422 and test the flags.  This is faster than a software comparison, but can
14423 get incorrect results in the presence of NaNs, or when two different small
14424 numbers are compared such that their difference is calculated as zero.
14425 The default is \fB\-msoft\-cmpsf\fR, which uses slower, but IEEE-compliant,
14426 software comparisons.
14427 .IP "\fB\-mstack\-offset=\fR\fInum\fR" 4
14428 .IX Item "-mstack-offset=num"
14429 Set the offset between the top of the stack and the stack pointer.
14430 E.g., a value of 8 means that the eight bytes in the range \f(CW\*(C`sp+0...sp+7\*(C'\fR
14431 can be used by leaf functions without stack allocation.
14432 Values other than \fB8\fR or \fB16\fR are untested and unlikely to work.
14433 Note also that this option changes the \s-1ABI\s0; compiling a program with a
14434 different stack offset than the libraries have been compiled with
14435 generally does not work.
14436 This option can be useful if you want to evaluate if a different stack
14437 offset would give you better code, but to actually use a different stack
14438 offset to build working programs, it is recommended to configure the
14439 toolchain with the appropriate \fB\-\-with\-stack\-offset=\fR\fInum\fR option.
14440 .IP "\fB\-mno\-round\-nearest\fR" 4
14441 .IX Item "-mno-round-nearest"
14442 Make the scheduler assume that the rounding mode has been set to
14443 truncating.  The default is \fB\-mround\-nearest\fR.
14444 .IP "\fB\-mlong\-calls\fR" 4
14445 .IX Item "-mlong-calls"
14446 If not otherwise specified by an attribute, assume all calls might be beyond
14447 the offset range of the \f(CW\*(C`b\*(C'\fR / \f(CW\*(C`bl\*(C'\fR instructions, and therefore load the
14448 function address into a register before performing a (otherwise direct) call.
14449 This is the default.
14450 .IP "\fB\-mshort\-calls\fR" 4
14451 .IX Item "-mshort-calls"
14452 If not otherwise specified by an attribute, assume all direct calls are
14453 in the range of the \f(CW\*(C`b\*(C'\fR / \f(CW\*(C`bl\*(C'\fR instructions, so use these instructions
14454 for direct calls.  The default is \fB\-mlong\-calls\fR.
14455 .IP "\fB\-msmall16\fR" 4
14456 .IX Item "-msmall16"
14457 Assume addresses can be loaded as 16\-bit unsigned values.  This does not
14458 apply to function addresses for which \fB\-mlong\-calls\fR semantics
14459 are in effect.
14460 .IP "\fB\-mfp\-mode=\fR\fImode\fR" 4
14461 .IX Item "-mfp-mode=mode"
14462 Set the prevailing mode of the floating-point unit.
14463 This determines the floating-point mode that is provided and expected
14464 at function call and return time.  Making this mode match the mode you
14465 predominantly need at function start can make your programs smaller and
14466 faster by avoiding unnecessary mode switches.
14467 .Sp
14468 \&\fImode\fR can be set to one the following values:
14469 .RS 4
14470 .IP "\fBcaller\fR" 4
14471 .IX Item "caller"
14472 Any mode at function entry is valid, and retained or restored when
14473 the function returns, and when it calls other functions.
14474 This mode is useful for compiling libraries or other compilation units
14475 you might want to incorporate into different programs with different
14476 prevailing \s-1FPU\s0 modes, and the convenience of being able to use a single
14477 object file outweighs the size and speed overhead for any extra
14478 mode switching that might be needed, compared with what would be needed
14479 with a more specific choice of prevailing \s-1FPU\s0 mode.
14480 .IP "\fBtruncate\fR" 4
14481 .IX Item "truncate"
14482 This is the mode used for floating-point calculations with
14483 truncating (i.e. round towards zero) rounding mode.  That includes
14484 conversion from floating point to integer.
14485 .IP "\fBround-nearest\fR" 4
14486 .IX Item "round-nearest"
14487 This is the mode used for floating-point calculations with
14488 round-to-nearest-or-even rounding mode.
14489 .IP "\fBint\fR" 4
14490 .IX Item "int"
14491 This is the mode used to perform integer calculations in the \s-1FPU,\s0 e.g.
14492 integer multiply, or integer multiply-and-accumulate.
14493 .RE
14494 .RS 4
14495 .Sp
14496 The default is \fB\-mfp\-mode=caller\fR
14497 .RE
14498 .IP "\fB\-mnosplit\-lohi\fR" 4
14499 .IX Item "-mnosplit-lohi"
14500 .PD 0
14501 .IP "\fB\-mno\-postinc\fR" 4
14502 .IX Item "-mno-postinc"
14503 .IP "\fB\-mno\-postmodify\fR" 4
14504 .IX Item "-mno-postmodify"
14505 .PD
14506 Code generation tweaks that disable, respectively, splitting of 32\-bit
14507 loads, generation of post-increment addresses, and generation of
14508 post-modify addresses.  The defaults are \fBmsplit-lohi\fR,
14509 \&\fB\-mpost\-inc\fR, and \fB\-mpost\-modify\fR.
14510 .IP "\fB\-mnovect\-double\fR" 4
14511 .IX Item "-mnovect-double"
14512 Change the preferred \s-1SIMD\s0 mode to SImode.  The default is
14513 \&\fB\-mvect\-double\fR, which uses DImode as preferred \s-1SIMD\s0 mode.
14514 .IP "\fB\-max\-vect\-align=\fR\fInum\fR" 4
14515 .IX Item "-max-vect-align=num"
14516 The maximum alignment for \s-1SIMD\s0 vector mode types.
14517 \&\fInum\fR may be 4 or 8.  The default is 8.
14518 Note that this is an \s-1ABI\s0 change, even though many library function
14519 interfaces are unaffected if they don't use \s-1SIMD\s0 vector modes
14520 in places that affect size and/or alignment of relevant types.
14521 .IP "\fB\-msplit\-vecmove\-early\fR" 4
14522 .IX Item "-msplit-vecmove-early"
14523 Split vector moves into single word moves before reload.  In theory this
14524 can give better register allocation, but so far the reverse seems to be
14525 generally the case.
14526 .IP "\fB\-m1reg\-\fR\fIreg\fR" 4
14527 .IX Item "-m1reg-reg"
14528 Specify a register to hold the constant \-1, which makes loading small negative
14529 constants and certain bitmasks faster.
14530 Allowable values for \fIreg\fR are \fBr43\fR and \fBr63\fR,
14531 which specify use of that register as a fixed register,
14532 and \fBnone\fR, which means that no register is used for this
14533 purpose.  The default is \fB\-m1reg\-none\fR.
14534 .PP
14535 \fI\s-1ARC\s0 Options\fR
14536 .IX Subsection "ARC Options"
14537 .PP
14538 The following options control the architecture variant for which code
14539 is being compiled:
14540 .IP "\fB\-mbarrel\-shifter\fR" 4
14541 .IX Item "-mbarrel-shifter"
14542 Generate instructions supported by barrel shifter.  This is the default
14543 unless \fB\-mcpu=ARC601\fR or \fB\-mcpu=ARCEM\fR is in effect.
14544 .IP "\fB\-mjli\-always\fR" 4
14545 .IX Item "-mjli-always"
14546 Force to call a function using jli_s instruction.  This option is
14547 valid only for ARCv2 architecture.
14548 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
14549 .IX Item "-mcpu=cpu"
14550 Set architecture type, register usage, and instruction scheduling
14551 parameters for \fIcpu\fR.  There are also shortcut alias options
14552 available for backward compatibility and convenience.  Supported
14553 values for \fIcpu\fR are
14554 .RS 4
14555 .IP "\fBarc600\fR" 4
14556 .IX Item "arc600"
14557 Compile for \s-1ARC600.\s0  Aliases: \fB\-mA6\fR, \fB\-mARC600\fR.
14558 .IP "\fBarc601\fR" 4
14559 .IX Item "arc601"
14560 Compile for \s-1ARC601.\s0  Alias: \fB\-mARC601\fR.
14561 .IP "\fBarc700\fR" 4
14562 .IX Item "arc700"
14563 Compile for \s-1ARC700.\s0  Aliases: \fB\-mA7\fR, \fB\-mARC700\fR.
14564 This is the default when configured with \fB\-\-with\-cpu=arc700\fR.
14565 .IP "\fBarcem\fR" 4
14566 .IX Item "arcem"
14567 Compile for \s-1ARC EM.\s0
14568 .IP "\fBarchs\fR" 4
14569 .IX Item "archs"
14570 Compile for \s-1ARC HS.\s0
14571 .IP "\fBem\fR" 4
14572 .IX Item "em"
14573 Compile for \s-1ARC EM CPU\s0 with no hardware extensions.
14574 .IP "\fBem4\fR" 4
14575 .IX Item "em4"
14576 Compile for \s-1ARC EM4 CPU.\s0
14577 .IP "\fBem4_dmips\fR" 4
14578 .IX Item "em4_dmips"
14579 Compile for \s-1ARC EM4 DMIPS CPU.\s0
14580 .IP "\fBem4_fpus\fR" 4
14581 .IX Item "em4_fpus"
14582 Compile for \s-1ARC EM4 DMIPS CPU\s0 with the single-precision floating-point
14583 extension.
14584 .IP "\fBem4_fpuda\fR" 4
14585 .IX Item "em4_fpuda"
14586 Compile for \s-1ARC EM4 DMIPS CPU\s0 with single-precision floating-point and
14587 double assist instructions.
14588 .IP "\fBhs\fR" 4
14589 .IX Item "hs"
14590 Compile for \s-1ARC HS CPU\s0 with no hardware extensions except the atomic
14591 instructions.
14592 .IP "\fBhs34\fR" 4
14593 .IX Item "hs34"
14594 Compile for \s-1ARC HS34 CPU.\s0
14595 .IP "\fBhs38\fR" 4
14596 .IX Item "hs38"
14597 Compile for \s-1ARC HS38 CPU.\s0
14598 .IP "\fBhs38_linux\fR" 4
14599 .IX Item "hs38_linux"
14600 Compile for \s-1ARC HS38 CPU\s0 with all hardware extensions on.
14601 .IP "\fBarc600_norm\fR" 4
14602 .IX Item "arc600_norm"
14603 Compile for \s-1ARC 600 CPU\s0 with \f(CW\*(C`norm\*(C'\fR instructions enabled.
14604 .IP "\fBarc600_mul32x16\fR" 4
14605 .IX Item "arc600_mul32x16"
14606 Compile for \s-1ARC 600 CPU\s0 with \f(CW\*(C`norm\*(C'\fR and 32x16\-bit multiply 
14607 instructions enabled.
14608 .IP "\fBarc600_mul64\fR" 4
14609 .IX Item "arc600_mul64"
14610 Compile for \s-1ARC 600 CPU\s0 with \f(CW\*(C`norm\*(C'\fR and \f(CW\*(C`mul64\*(C'\fR\-family 
14611 instructions enabled.
14612 .IP "\fBarc601_norm\fR" 4
14613 .IX Item "arc601_norm"
14614 Compile for \s-1ARC 601 CPU\s0 with \f(CW\*(C`norm\*(C'\fR instructions enabled.
14615 .IP "\fBarc601_mul32x16\fR" 4
14616 .IX Item "arc601_mul32x16"
14617 Compile for \s-1ARC 601 CPU\s0 with \f(CW\*(C`norm\*(C'\fR and 32x16\-bit multiply
14618 instructions enabled.
14619 .IP "\fBarc601_mul64\fR" 4
14620 .IX Item "arc601_mul64"
14621 Compile for \s-1ARC 601 CPU\s0 with \f(CW\*(C`norm\*(C'\fR and \f(CW\*(C`mul64\*(C'\fR\-family
14622 instructions enabled.
14623 .IP "\fBnps400\fR" 4
14624 .IX Item "nps400"
14625 Compile for \s-1ARC 700\s0 on \s-1NPS400\s0 chip.
14626 .IP "\fBem_mini\fR" 4
14627 .IX Item "em_mini"
14628 Compile for \s-1ARC EM\s0 minimalist configuration featuring reduced register
14629 set.
14630 .RE
14631 .RS 4
14632 .RE
14633 .IP "\fB\-mdpfp\fR" 4
14634 .IX Item "-mdpfp"
14635 .PD 0
14636 .IP "\fB\-mdpfp\-compact\fR" 4
14637 .IX Item "-mdpfp-compact"
14638 .PD
14639 Generate double-precision \s-1FPX\s0 instructions, tuned for the compact
14640 implementation.
14641 .IP "\fB\-mdpfp\-fast\fR" 4
14642 .IX Item "-mdpfp-fast"
14643 Generate double-precision \s-1FPX\s0 instructions, tuned for the fast
14644 implementation.
14645 .IP "\fB\-mno\-dpfp\-lrsr\fR" 4
14646 .IX Item "-mno-dpfp-lrsr"
14647 Disable \f(CW\*(C`lr\*(C'\fR and \f(CW\*(C`sr\*(C'\fR instructions from using \s-1FPX\s0 extension
14648 aux registers.
14649 .IP "\fB\-mea\fR" 4
14650 .IX Item "-mea"
14651 Generate extended arithmetic instructions.  Currently only
14652 \&\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
14653 supported.  This is always enabled for \fB\-mcpu=ARC700\fR.
14654 .IP "\fB\-mno\-mpy\fR" 4
14655 .IX Item "-mno-mpy"
14656 Do not generate \f(CW\*(C`mpy\*(C'\fR\-family instructions for \s-1ARC700.\s0  This option is
14657 deprecated.
14658 .IP "\fB\-mmul32x16\fR" 4
14659 .IX Item "-mmul32x16"
14660 Generate 32x16\-bit multiply and multiply-accumulate instructions.
14661 .IP "\fB\-mmul64\fR" 4
14662 .IX Item "-mmul64"
14663 Generate \f(CW\*(C`mul64\*(C'\fR and \f(CW\*(C`mulu64\*(C'\fR instructions.  
14664 Only valid for \fB\-mcpu=ARC600\fR.
14665 .IP "\fB\-mnorm\fR" 4
14666 .IX Item "-mnorm"
14667 Generate \f(CW\*(C`norm\*(C'\fR instructions.  This is the default if \fB\-mcpu=ARC700\fR
14668 is in effect.
14669 .IP "\fB\-mspfp\fR" 4
14670 .IX Item "-mspfp"
14671 .PD 0
14672 .IP "\fB\-mspfp\-compact\fR" 4
14673 .IX Item "-mspfp-compact"
14674 .PD
14675 Generate single-precision \s-1FPX\s0 instructions, tuned for the compact
14676 implementation.
14677 .IP "\fB\-mspfp\-fast\fR" 4
14678 .IX Item "-mspfp-fast"
14679 Generate single-precision \s-1FPX\s0 instructions, tuned for the fast
14680 implementation.
14681 .IP "\fB\-msimd\fR" 4
14682 .IX Item "-msimd"
14683 Enable generation of \s-1ARC SIMD\s0 instructions via target-specific
14684 builtins.  Only valid for \fB\-mcpu=ARC700\fR.
14685 .IP "\fB\-msoft\-float\fR" 4
14686 .IX Item "-msoft-float"
14687 This option ignored; it is provided for compatibility purposes only.
14688 Software floating-point code is emitted by default, and this default
14689 can overridden by \s-1FPX\s0 options; \fB\-mspfp\fR, \fB\-mspfp\-compact\fR, or
14690 \&\fB\-mspfp\-fast\fR for single precision, and \fB\-mdpfp\fR,
14691 \&\fB\-mdpfp\-compact\fR, or \fB\-mdpfp\-fast\fR for double precision.
14692 .IP "\fB\-mswap\fR" 4
14693 .IX Item "-mswap"
14694 Generate \f(CW\*(C`swap\*(C'\fR instructions.
14695 .IP "\fB\-matomic\fR" 4
14696 .IX Item "-matomic"
14697 This enables use of the locked load/store conditional extension to implement
14698 atomic memory built-in functions.  Not available for \s-1ARC\s0 6xx or \s-1ARC
14699 EM\s0 cores.
14700 .IP "\fB\-mdiv\-rem\fR" 4
14701 .IX Item "-mdiv-rem"
14702 Enable \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`rem\*(C'\fR instructions for ARCv2 cores.
14703 .IP "\fB\-mcode\-density\fR" 4
14704 .IX Item "-mcode-density"
14705 Enable code density instructions for \s-1ARC EM.\s0  
14706 This option is on by default for \s-1ARC HS.\s0
14707 .IP "\fB\-mll64\fR" 4
14708 .IX Item "-mll64"
14709 Enable double load/store operations for \s-1ARC HS\s0 cores.
14710 .IP "\fB\-mtp\-regno=\fR\fIregno\fR" 4
14711 .IX Item "-mtp-regno=regno"
14712 Specify thread pointer register number.
14713 .IP "\fB\-mmpy\-option=\fR\fImulto\fR" 4
14714 .IX Item "-mmpy-option=multo"
14715 Compile ARCv2 code with a multiplier design option.  You can specify 
14716 the option using either a string or numeric value for \fImulto\fR.  
14717 \&\fBwlh1\fR is the default value.  The recognized values are:
14718 .RS 4
14719 .IP "\fB0\fR" 4
14720 .IX Item "0"
14721 .PD 0
14722 .IP "\fBnone\fR" 4
14723 .IX Item "none"
14724 .PD
14725 No multiplier available.
14726 .IP "\fB1\fR" 4
14727 .IX Item "1"
14728 .PD 0
14729 .IP "\fBw\fR" 4
14730 .IX Item "w"
14731 .PD
14732 16x16 multiplier, fully pipelined.
14733 The following instructions are enabled: \f(CW\*(C`mpyw\*(C'\fR and \f(CW\*(C`mpyuw\*(C'\fR.
14734 .IP "\fB2\fR" 4
14735 .IX Item "2"
14736 .PD 0
14737 .IP "\fBwlh1\fR" 4
14738 .IX Item "wlh1"
14739 .PD
14740 32x32 multiplier, fully
14741 pipelined (1 stage).  The following instructions are additionally
14742 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.
14743 .IP "\fB3\fR" 4
14744 .IX Item "3"
14745 .PD 0
14746 .IP "\fBwlh2\fR" 4
14747 .IX Item "wlh2"
14748 .PD
14749 32x32 multiplier, fully pipelined
14750 (2 stages).  The following instructions are additionally enabled: \f(CW\*(C`mpy\*(C'\fR,
14751 \&\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.
14752 .IP "\fB4\fR" 4
14753 .IX Item "4"
14754 .PD 0
14755 .IP "\fBwlh3\fR" 4
14756 .IX Item "wlh3"
14757 .PD
14758 Two 16x16 multipliers, blocking,
14759 sequential.  The following instructions are additionally enabled: \f(CW\*(C`mpy\*(C'\fR,
14760 \&\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.
14761 .IP "\fB5\fR" 4
14762 .IX Item "5"
14763 .PD 0
14764 .IP "\fBwlh4\fR" 4
14765 .IX Item "wlh4"
14766 .PD
14767 One 16x16 multiplier, blocking,
14768 sequential.  The following instructions are additionally enabled: \f(CW\*(C`mpy\*(C'\fR,
14769 \&\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.
14770 .IP "\fB6\fR" 4
14771 .IX Item "6"
14772 .PD 0
14773 .IP "\fBwlh5\fR" 4
14774 .IX Item "wlh5"
14775 .PD
14776 One 32x4 multiplier, blocking,
14777 sequential.  The following instructions are additionally enabled: \f(CW\*(C`mpy\*(C'\fR,
14778 \&\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.
14779 .IP "\fB7\fR" 4
14780 .IX Item "7"
14781 .PD 0
14782 .IP "\fBplus_dmpy\fR" 4
14783 .IX Item "plus_dmpy"
14784 .PD
14785 \&\s-1ARC HS SIMD\s0 support.
14786 .IP "\fB8\fR" 4
14787 .IX Item "8"
14788 .PD 0
14789 .IP "\fBplus_macd\fR" 4
14790 .IX Item "plus_macd"
14791 .PD
14792 \&\s-1ARC HS SIMD\s0 support.
14793 .IP "\fB9\fR" 4
14794 .IX Item "9"
14795 .PD 0
14796 .IP "\fBplus_qmacw\fR" 4
14797 .IX Item "plus_qmacw"
14798 .PD
14799 \&\s-1ARC HS SIMD\s0 support.
14800 .RE
14801 .RS 4
14802 .Sp
14803 This option is only available for ARCv2 cores.
14804 .RE
14805 .IP "\fB\-mfpu=\fR\fIfpu\fR" 4
14806 .IX Item "-mfpu=fpu"
14807 Enables support for specific floating-point hardware extensions for ARCv2
14808 cores.  Supported values for \fIfpu\fR are:
14809 .RS 4
14810 .IP "\fBfpus\fR" 4
14811 .IX Item "fpus"
14812 Enables support for single-precision floating-point hardware
14813 extensions.
14814 .IP "\fBfpud\fR" 4
14815 .IX Item "fpud"
14816 Enables support for double-precision floating-point hardware
14817 extensions.  The single-precision floating-point extension is also
14818 enabled.  Not available for \s-1ARC EM.\s0
14819 .IP "\fBfpuda\fR" 4
14820 .IX Item "fpuda"
14821 Enables support for double-precision floating-point hardware
14822 extensions using double-precision assist instructions.  The single-precision
14823 floating-point extension is also enabled.  This option is
14824 only available for \s-1ARC EM.\s0
14825 .IP "\fBfpuda_div\fR" 4
14826 .IX Item "fpuda_div"
14827 Enables support for double-precision floating-point hardware
14828 extensions using double-precision assist instructions.
14829 The single-precision floating-point, square-root, and divide 
14830 extensions are also enabled.  This option is
14831 only available for \s-1ARC EM.\s0
14832 .IP "\fBfpuda_fma\fR" 4
14833 .IX Item "fpuda_fma"
14834 Enables support for double-precision floating-point hardware
14835 extensions using double-precision assist instructions.
14836 The single-precision floating-point and fused multiply and add 
14837 hardware extensions are also enabled.  This option is
14838 only available for \s-1ARC EM.\s0
14839 .IP "\fBfpuda_all\fR" 4
14840 .IX Item "fpuda_all"
14841 Enables support for double-precision floating-point hardware
14842 extensions using double-precision assist instructions.
14843 All single-precision floating-point hardware extensions are also
14844 enabled.  This option is only available for \s-1ARC EM.\s0
14845 .IP "\fBfpus_div\fR" 4
14846 .IX Item "fpus_div"
14847 Enables support for single-precision floating-point, square-root and divide 
14848 hardware extensions.
14849 .IP "\fBfpud_div\fR" 4
14850 .IX Item "fpud_div"
14851 Enables support for double-precision floating-point, square-root and divide 
14852 hardware extensions.  This option
14853 includes option \fBfpus_div\fR. Not available for \s-1ARC EM.\s0
14854 .IP "\fBfpus_fma\fR" 4
14855 .IX Item "fpus_fma"
14856 Enables support for single-precision floating-point and 
14857 fused multiply and add hardware extensions.
14858 .IP "\fBfpud_fma\fR" 4
14859 .IX Item "fpud_fma"
14860 Enables support for double-precision floating-point and 
14861 fused multiply and add hardware extensions.  This option
14862 includes option \fBfpus_fma\fR.  Not available for \s-1ARC EM.\s0
14863 .IP "\fBfpus_all\fR" 4
14864 .IX Item "fpus_all"
14865 Enables support for all single-precision floating-point hardware
14866 extensions.
14867 .IP "\fBfpud_all\fR" 4
14868 .IX Item "fpud_all"
14869 Enables support for all single\- and double-precision floating-point
14870 hardware extensions.  Not available for \s-1ARC EM.\s0
14871 .RE
14872 .RS 4
14873 .RE
14874 .IP "\fB\-mirq\-ctrl\-saved=\fR\fIregister-range\fR\fB,\fR \fIblink\fR\fB,\fR \fIlp_count\fR" 4
14875 .IX Item "-mirq-ctrl-saved=register-range, blink, lp_count"
14876 Specifies general-purposes registers that the processor automatically
14877 saves/restores on interrupt entry and exit.  \fIregister-range\fR is
14878 specified as two registers separated by a dash.  The register range
14879 always starts with \f(CW\*(C`r0\*(C'\fR, the upper limit is \f(CW\*(C`fp\*(C'\fR register.
14880 \&\fIblink\fR and \fIlp_count\fR are optional.  This option is only
14881 valid for \s-1ARC EM\s0 and \s-1ARC HS\s0 cores.
14882 .IP "\fB\-mrgf\-banked\-regs=\fR\fInumber\fR" 4
14883 .IX Item "-mrgf-banked-regs=number"
14884 Specifies the number of registers replicated in second register bank
14885 on entry to fast interrupt.  Fast interrupts are interrupts with the
14886 highest priority level P0.  These interrupts save only \s-1PC\s0 and \s-1STATUS32\s0
14887 registers to avoid memory transactions during interrupt entry and exit
14888 sequences.  Use this option when you are using fast interrupts in an
14889 \&\s-1ARC V2\s0 family processor.  Permitted values are 4, 8, 16, and 32.
14890 .IP "\fB\-mlpc\-width=\fR\fIwidth\fR" 4
14891 .IX Item "-mlpc-width=width"
14892 Specify the width of the \f(CW\*(C`lp_count\*(C'\fR register.  Valid values for
14893 \&\fIwidth\fR are 8, 16, 20, 24, 28 and 32 bits.  The default width is
14894 fixed to 32 bits.  If the width is less than 32, the compiler does not
14895 attempt to transform loops in your program to use the zero-delay loop
14896 mechanism unless it is known that the \f(CW\*(C`lp_count\*(C'\fR register can
14897 hold the required loop-counter value.  Depending on the width
14898 specified, the compiler and run-time library might continue to use the
14899 loop mechanism for various needs.  This option defines macro
14900 \&\f(CW\*(C`_\|_ARC_LPC_WIDTH_\|_\*(C'\fR with the value of \fIwidth\fR.
14901 .IP "\fB\-mrf16\fR" 4
14902 .IX Item "-mrf16"
14903 This option instructs the compiler to generate code for a 16\-entry
14904 register file.  This option defines the \f(CW\*(C`_\|_ARC_RF16_\|_\*(C'\fR
14905 preprocessor macro.
14906 .PP
14907 The following options are passed through to the assembler, and also
14908 define preprocessor macro symbols.
14909 .IP "\fB\-mdsp\-packa\fR" 4
14910 .IX Item "-mdsp-packa"
14911 Passed down to the assembler to enable the \s-1DSP\s0 Pack A extensions.
14912 Also sets the preprocessor symbol \f(CW\*(C`_\|_Xdsp_packa\*(C'\fR.  This option is
14913 deprecated.
14914 .IP "\fB\-mdvbf\fR" 4
14915 .IX Item "-mdvbf"
14916 Passed down to the assembler to enable the dual Viterbi butterfly
14917 extension.  Also sets the preprocessor symbol \f(CW\*(C`_\|_Xdvbf\*(C'\fR.  This
14918 option is deprecated.
14919 .IP "\fB\-mlock\fR" 4
14920 .IX Item "-mlock"
14921 Passed down to the assembler to enable the locked load/store
14922 conditional extension.  Also sets the preprocessor symbol
14923 \&\f(CW\*(C`_\|_Xlock\*(C'\fR.
14924 .IP "\fB\-mmac\-d16\fR" 4
14925 .IX Item "-mmac-d16"
14926 Passed down to the assembler.  Also sets the preprocessor symbol
14927 \&\f(CW\*(C`_\|_Xxmac_d16\*(C'\fR.  This option is deprecated.
14928 .IP "\fB\-mmac\-24\fR" 4
14929 .IX Item "-mmac-24"
14930 Passed down to the assembler.  Also sets the preprocessor symbol
14931 \&\f(CW\*(C`_\|_Xxmac_24\*(C'\fR.  This option is deprecated.
14932 .IP "\fB\-mrtsc\fR" 4
14933 .IX Item "-mrtsc"
14934 Passed down to the assembler to enable the 64\-bit time-stamp counter
14935 extension instruction.  Also sets the preprocessor symbol
14936 \&\f(CW\*(C`_\|_Xrtsc\*(C'\fR.  This option is deprecated.
14937 .IP "\fB\-mswape\fR" 4
14938 .IX Item "-mswape"
14939 Passed down to the assembler to enable the swap byte ordering
14940 extension instruction.  Also sets the preprocessor symbol
14941 \&\f(CW\*(C`_\|_Xswape\*(C'\fR.
14942 .IP "\fB\-mtelephony\fR" 4
14943 .IX Item "-mtelephony"
14944 Passed down to the assembler to enable dual\- and single-operand
14945 instructions for telephony.  Also sets the preprocessor symbol
14946 \&\f(CW\*(C`_\|_Xtelephony\*(C'\fR.  This option is deprecated.
14947 .IP "\fB\-mxy\fR" 4
14948 .IX Item "-mxy"
14949 Passed down to the assembler to enable the \s-1XY\s0 memory extension.  Also
14950 sets the preprocessor symbol \f(CW\*(C`_\|_Xxy\*(C'\fR.
14951 .PP
14952 The following options control how the assembly code is annotated:
14953 .IP "\fB\-misize\fR" 4
14954 .IX Item "-misize"
14955 Annotate assembler instructions with estimated addresses.
14956 .IP "\fB\-mannotate\-align\fR" 4
14957 .IX Item "-mannotate-align"
14958 Explain what alignment considerations lead to the decision to make an
14959 instruction short or long.
14960 .PP
14961 The following options are passed through to the linker:
14962 .IP "\fB\-marclinux\fR" 4
14963 .IX Item "-marclinux"
14964 Passed through to the linker, to specify use of the \f(CW\*(C`arclinux\*(C'\fR emulation.
14965 This option is enabled by default in tool chains built for
14966 \&\f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets
14967 when profiling is not requested.
14968 .IP "\fB\-marclinux_prof\fR" 4
14969 .IX Item "-marclinux_prof"
14970 Passed through to the linker, to specify use of the
14971 \&\f(CW\*(C`arclinux_prof\*(C'\fR emulation.  This option is enabled by default in
14972 tool chains built for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and
14973 \&\f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets when profiling is requested.
14974 .PP
14975 The following options control the semantics of generated code:
14976 .IP "\fB\-mlong\-calls\fR" 4
14977 .IX Item "-mlong-calls"
14978 Generate calls as register indirect calls, thus providing access
14979 to the full 32\-bit address range.
14980 .IP "\fB\-mmedium\-calls\fR" 4
14981 .IX Item "-mmedium-calls"
14982 Don't use less than 25\-bit addressing range for calls, which is the
14983 offset available for an unconditional branch-and-link
14984 instruction.  Conditional execution of function calls is suppressed, to
14985 allow use of the 25\-bit range, rather than the 21\-bit range with
14986 conditional branch-and-link.  This is the default for tool chains built
14987 for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets.
14988 .IP "\fB\-G\fR \fInum\fR" 4
14989 .IX Item "-G num"
14990 Put definitions of externally-visible data in a small data section if
14991 that data is no bigger than \fInum\fR bytes.  The default value of
14992 \&\fInum\fR is 4 for any \s-1ARC\s0 configuration, or 8 when we have double
14993 load/store operations.
14994 .IP "\fB\-mno\-sdata\fR" 4
14995 .IX Item "-mno-sdata"
14996 Do not generate sdata references.  This is the default for tool chains
14997 built for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR
14998 targets.
14999 .IP "\fB\-mvolatile\-cache\fR" 4
15000 .IX Item "-mvolatile-cache"
15001 Use ordinarily cached memory accesses for volatile references.  This is the
15002 default.
15003 .IP "\fB\-mno\-volatile\-cache\fR" 4
15004 .IX Item "-mno-volatile-cache"
15005 Enable cache bypass for volatile references.
15006 .PP
15007 The following options fine tune code generation:
15008 .IP "\fB\-malign\-call\fR" 4
15009 .IX Item "-malign-call"
15010 Do alignment optimizations for call instructions.
15011 .IP "\fB\-mauto\-modify\-reg\fR" 4
15012 .IX Item "-mauto-modify-reg"
15013 Enable the use of pre/post modify with register displacement.
15014 .IP "\fB\-mbbit\-peephole\fR" 4
15015 .IX Item "-mbbit-peephole"
15016 Enable bbit peephole2.
15017 .IP "\fB\-mno\-brcc\fR" 4
15018 .IX Item "-mno-brcc"
15019 This option disables a target-specific pass in \fIarc_reorg\fR to
15020 generate compare-and-branch (\f(CW\*(C`br\f(CIcc\f(CW\*(C'\fR) instructions.  
15021 It has no effect on
15022 generation of these instructions driven by the combiner pass.
15023 .IP "\fB\-mcase\-vector\-pcrel\fR" 4
15024 .IX Item "-mcase-vector-pcrel"
15025 Use PC-relative switch case tables to enable case table shortening.
15026 This is the default for \fB\-Os\fR.
15027 .IP "\fB\-mcompact\-casesi\fR" 4
15028 .IX Item "-mcompact-casesi"
15029 Enable compact \f(CW\*(C`casesi\*(C'\fR pattern.  This is the default for \fB\-Os\fR,
15030 and only available for ARCv1 cores.
15031 .IP "\fB\-mno\-cond\-exec\fR" 4
15032 .IX Item "-mno-cond-exec"
15033 Disable the ARCompact-specific pass to generate conditional 
15034 execution instructions.
15035 .Sp
15036 Due to delay slot scheduling and interactions between operand numbers,
15037 literal sizes, instruction lengths, and the support for conditional execution,
15038 the target-independent pass to generate conditional execution is often lacking,
15039 so the \s-1ARC\s0 port has kept a special pass around that tries to find more
15040 conditional execution generation opportunities after register allocation,
15041 branch shortening, and delay slot scheduling have been done.  This pass
15042 generally, but not always, improves performance and code size, at the cost of
15043 extra compilation time, which is why there is an option to switch it off.
15044 If you have a problem with call instructions exceeding their allowable
15045 offset range because they are conditionalized, you should consider using
15046 \&\fB\-mmedium\-calls\fR instead.
15047 .IP "\fB\-mearly\-cbranchsi\fR" 4
15048 .IX Item "-mearly-cbranchsi"
15049 Enable pre-reload use of the \f(CW\*(C`cbranchsi\*(C'\fR pattern.
15050 .IP "\fB\-mexpand\-adddi\fR" 4
15051 .IX Item "-mexpand-adddi"
15052 Expand \f(CW\*(C`adddi3\*(C'\fR and \f(CW\*(C`subdi3\*(C'\fR at \s-1RTL\s0 generation time into
15053 \&\f(CW\*(C`add.f\*(C'\fR, \f(CW\*(C`adc\*(C'\fR etc.  This option is deprecated.
15054 .IP "\fB\-mindexed\-loads\fR" 4
15055 .IX Item "-mindexed-loads"
15056 Enable the use of indexed loads.  This can be problematic because some
15057 optimizers then assume that indexed stores exist, which is not
15058 the case.
15059 .IP "\fB\-mlra\fR" 4
15060 .IX Item "-mlra"
15061 Enable Local Register Allocation.  This is still experimental for \s-1ARC,\s0
15062 so by default the compiler uses standard reload
15063 (i.e. \fB\-mno\-lra\fR).
15064 .IP "\fB\-mlra\-priority\-none\fR" 4
15065 .IX Item "-mlra-priority-none"
15066 Don't indicate any priority for target registers.
15067 .IP "\fB\-mlra\-priority\-compact\fR" 4
15068 .IX Item "-mlra-priority-compact"
15069 Indicate target register priority for r0..r3 / r12..r15.
15070 .IP "\fB\-mlra\-priority\-noncompact\fR" 4
15071 .IX Item "-mlra-priority-noncompact"
15072 Reduce target register priority for r0..r3 / r12..r15.
15073 .IP "\fB\-mno\-millicode\fR" 4
15074 .IX Item "-mno-millicode"
15075 When optimizing for size (using \fB\-Os\fR), prologues and epilogues
15076 that have to save or restore a large number of registers are often
15077 shortened by using call to a special function in libgcc; this is
15078 referred to as a \fImillicode\fR call.  As these calls can pose
15079 performance issues, and/or cause linking issues when linking in a
15080 nonstandard way, this option is provided to turn off millicode call
15081 generation.
15082 .IP "\fB\-mmixed\-code\fR" 4
15083 .IX Item "-mmixed-code"
15084 Tweak register allocation to help 16\-bit instruction generation.
15085 This generally has the effect of decreasing the average instruction size
15086 while increasing the instruction count.
15087 .IP "\fB\-mq\-class\fR" 4
15088 .IX Item "-mq-class"
15089 Enable \fBq\fR instruction alternatives.
15090 This is the default for \fB\-Os\fR.
15091 .IP "\fB\-mRcq\fR" 4
15092 .IX Item "-mRcq"
15093 Enable \fBRcq\fR constraint handling.  
15094 Most short code generation depends on this.
15095 This is the default.
15096 .IP "\fB\-mRcw\fR" 4
15097 .IX Item "-mRcw"
15098 Enable \fBRcw\fR constraint handling.  
15099 Most ccfsm condexec mostly depends on this.
15100 This is the default.
15101 .IP "\fB\-msize\-level=\fR\fIlevel\fR" 4
15102 .IX Item "-msize-level=level"
15103 Fine-tune size optimization with regards to instruction lengths and alignment.
15104 The recognized values for \fIlevel\fR are:
15105 .RS 4
15106 .IP "\fB0\fR" 4
15107 .IX Item "0"
15108 No size optimization.  This level is deprecated and treated like \fB1\fR.
15109 .IP "\fB1\fR" 4
15110 .IX Item "1"
15111 Short instructions are used opportunistically.
15112 .IP "\fB2\fR" 4
15113 .IX Item "2"
15114 In addition, alignment of loops and of code after barriers are dropped.
15115 .IP "\fB3\fR" 4
15116 .IX Item "3"
15117 In addition, optional data alignment is dropped, and the option \fBOs\fR is enabled.
15118 .RE
15119 .RS 4
15120 .Sp
15121 This defaults to \fB3\fR when \fB\-Os\fR is in effect.  Otherwise,
15122 the behavior when this is not set is equivalent to level \fB1\fR.
15123 .RE
15124 .IP "\fB\-mtune=\fR\fIcpu\fR" 4
15125 .IX Item "-mtune=cpu"
15126 Set instruction scheduling parameters for \fIcpu\fR, overriding any implied
15127 by \fB\-mcpu=\fR.
15128 .Sp
15129 Supported values for \fIcpu\fR are
15130 .RS 4
15131 .IP "\fB\s-1ARC600\s0\fR" 4
15132 .IX Item "ARC600"
15133 Tune for \s-1ARC600 CPU.\s0
15134 .IP "\fB\s-1ARC601\s0\fR" 4
15135 .IX Item "ARC601"
15136 Tune for \s-1ARC601 CPU.\s0
15137 .IP "\fB\s-1ARC700\s0\fR" 4
15138 .IX Item "ARC700"
15139 Tune for \s-1ARC700 CPU\s0 with standard multiplier block.
15140 .IP "\fBARC700\-xmac\fR" 4
15141 .IX Item "ARC700-xmac"
15142 Tune for \s-1ARC700 CPU\s0 with \s-1XMAC\s0 block.
15143 .IP "\fB\s-1ARC725D\s0\fR" 4
15144 .IX Item "ARC725D"
15145 Tune for \s-1ARC725D CPU.\s0
15146 .IP "\fB\s-1ARC750D\s0\fR" 4
15147 .IX Item "ARC750D"
15148 Tune for \s-1ARC750D CPU.\s0
15149 .RE
15150 .RS 4
15151 .RE
15152 .IP "\fB\-mmultcost=\fR\fInum\fR" 4
15153 .IX Item "-mmultcost=num"
15154 Cost to assume for a multiply instruction, with \fB4\fR being equal to a
15155 normal instruction.
15156 .IP "\fB\-munalign\-prob\-threshold=\fR\fIprobability\fR" 4
15157 .IX Item "-munalign-prob-threshold=probability"
15158 Set probability threshold for unaligning branches.
15159 When tuning for \fB\s-1ARC700\s0\fR and optimizing for speed, branches without
15160 filled delay slot are preferably emitted unaligned and long, unless
15161 profiling indicates that the probability for the branch to be taken
15162 is below \fIprobability\fR.  
15163 The default is (\s-1REG_BR_PROB_BASE/2\s0), i.e. 5000.
15164 .PP
15165 The following options are maintained for backward compatibility, but
15166 are now deprecated and will be removed in a future release:
15167 .IP "\fB\-margonaut\fR" 4
15168 .IX Item "-margonaut"
15169 Obsolete \s-1FPX.\s0
15170 .IP "\fB\-mbig\-endian\fR" 4
15171 .IX Item "-mbig-endian"
15172 .PD 0
15173 .IP "\fB\-EB\fR" 4
15174 .IX Item "-EB"
15175 .PD
15176 Compile code for big-endian targets.  Use of these options is now
15177 deprecated.  Big-endian code is supported by configuring \s-1GCC\s0 to build
15178 \&\f(CW\*(C`arceb\-elf32\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets,
15179 for which big endian is the default.
15180 .IP "\fB\-mlittle\-endian\fR" 4
15181 .IX Item "-mlittle-endian"
15182 .PD 0
15183 .IP "\fB\-EL\fR" 4
15184 .IX Item "-EL"
15185 .PD
15186 Compile code for little-endian targets.  Use of these options is now
15187 deprecated.  Little-endian code is supported by configuring \s-1GCC\s0 to build 
15188 \&\f(CW\*(C`arc\-elf32\*(C'\fR and \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR targets,
15189 for which little endian is the default.
15190 .IP "\fB\-mbarrel_shifter\fR" 4
15191 .IX Item "-mbarrel_shifter"
15192 Replaced by \fB\-mbarrel\-shifter\fR.
15193 .IP "\fB\-mdpfp_compact\fR" 4
15194 .IX Item "-mdpfp_compact"
15195 Replaced by \fB\-mdpfp\-compact\fR.
15196 .IP "\fB\-mdpfp_fast\fR" 4
15197 .IX Item "-mdpfp_fast"
15198 Replaced by \fB\-mdpfp\-fast\fR.
15199 .IP "\fB\-mdsp_packa\fR" 4
15200 .IX Item "-mdsp_packa"
15201 Replaced by \fB\-mdsp\-packa\fR.
15202 .IP "\fB\-mEA\fR" 4
15203 .IX Item "-mEA"
15204 Replaced by \fB\-mea\fR.
15205 .IP "\fB\-mmac_24\fR" 4
15206 .IX Item "-mmac_24"
15207 Replaced by \fB\-mmac\-24\fR.
15208 .IP "\fB\-mmac_d16\fR" 4
15209 .IX Item "-mmac_d16"
15210 Replaced by \fB\-mmac\-d16\fR.
15211 .IP "\fB\-mspfp_compact\fR" 4
15212 .IX Item "-mspfp_compact"
15213 Replaced by \fB\-mspfp\-compact\fR.
15214 .IP "\fB\-mspfp_fast\fR" 4
15215 .IX Item "-mspfp_fast"
15216 Replaced by \fB\-mspfp\-fast\fR.
15217 .IP "\fB\-mtune=\fR\fIcpu\fR" 4
15218 .IX Item "-mtune=cpu"
15219 Values \fBarc600\fR, \fBarc601\fR, \fBarc700\fR and
15220 \&\fBarc700\-xmac\fR for \fIcpu\fR are replaced by \fB\s-1ARC600\s0\fR,
15221 \&\fB\s-1ARC601\s0\fR, \fB\s-1ARC700\s0\fR and \fBARC700\-xmac\fR respectively.
15222 .IP "\fB\-multcost=\fR\fInum\fR" 4
15223 .IX Item "-multcost=num"
15224 Replaced by \fB\-mmultcost\fR.
15225 .PP
15226 \fI\s-1ARM\s0 Options\fR
15227 .IX Subsection "ARM Options"
15228 .PP
15229 These \fB\-m\fR options are defined for the \s-1ARM\s0 port:
15230 .IP "\fB\-mabi=\fR\fIname\fR" 4
15231 .IX Item "-mabi=name"
15232 Generate code for the specified \s-1ABI.\s0  Permissible values are: \fBapcs-gnu\fR,
15233 \&\fBatpcs\fR, \fBaapcs\fR, \fBaapcs-linux\fR and \fBiwmmxt\fR.
15234 .IP "\fB\-mapcs\-frame\fR" 4
15235 .IX Item "-mapcs-frame"
15236 Generate a stack frame that is compliant with the \s-1ARM\s0 Procedure Call
15237 Standard for all functions, even if this is not strictly necessary for
15238 correct execution of the code.  Specifying \fB\-fomit\-frame\-pointer\fR
15239 with this option causes the stack frames not to be generated for
15240 leaf functions.  The default is \fB\-mno\-apcs\-frame\fR.
15241 This option is deprecated.
15242 .IP "\fB\-mapcs\fR" 4
15243 .IX Item "-mapcs"
15244 This is a synonym for \fB\-mapcs\-frame\fR and is deprecated.
15245 .IP "\fB\-mthumb\-interwork\fR" 4
15246 .IX Item "-mthumb-interwork"
15247 Generate code that supports calling between the \s-1ARM\s0 and Thumb
15248 instruction sets.  Without this option, on pre\-v5 architectures, the
15249 two instruction sets cannot be reliably used inside one program.  The
15250 default is \fB\-mno\-thumb\-interwork\fR, since slightly larger code
15251 is generated when \fB\-mthumb\-interwork\fR is specified.  In \s-1AAPCS\s0
15252 configurations this option is meaningless.
15253 .IP "\fB\-mno\-sched\-prolog\fR" 4
15254 .IX Item "-mno-sched-prolog"
15255 Prevent the reordering of instructions in the function prologue, or the
15256 merging of those instruction with the instructions in the function's
15257 body.  This means that all functions start with a recognizable set
15258 of instructions (or in fact one of a choice from a small set of
15259 different function prologues), and this information can be used to
15260 locate the start of functions inside an executable piece of code.  The
15261 default is \fB\-msched\-prolog\fR.
15262 .IP "\fB\-mfloat\-abi=\fR\fIname\fR" 4
15263 .IX Item "-mfloat-abi=name"
15264 Specifies which floating-point \s-1ABI\s0 to use.  Permissible values
15265 are: \fBsoft\fR, \fBsoftfp\fR and \fBhard\fR.
15266 .Sp
15267 Specifying \fBsoft\fR causes \s-1GCC\s0 to generate output containing
15268 library calls for floating-point operations.
15269 \&\fBsoftfp\fR allows the generation of code using hardware floating-point
15270 instructions, but still uses the soft-float calling conventions.
15271 \&\fBhard\fR allows generation of floating-point instructions
15272 and uses FPU-specific calling conventions.
15273 .Sp
15274 The default depends on the specific target configuration.  Note that
15275 the hard-float and soft-float ABIs are not link-compatible; you must
15276 compile your entire program with the same \s-1ABI,\s0 and link with a
15277 compatible set of libraries.
15278 .IP "\fB\-mlittle\-endian\fR" 4
15279 .IX Item "-mlittle-endian"
15280 Generate code for a processor running in little-endian mode.  This is
15281 the default for all standard configurations.
15282 .IP "\fB\-mbig\-endian\fR" 4
15283 .IX Item "-mbig-endian"
15284 Generate code for a processor running in big-endian mode; the default is
15285 to compile code for a little-endian processor.
15286 .IP "\fB\-mbe8\fR" 4
15287 .IX Item "-mbe8"
15288 .PD 0
15289 .IP "\fB\-mbe32\fR" 4
15290 .IX Item "-mbe32"
15291 .PD
15292 When linking a big-endian image select between \s-1BE8\s0 and \s-1BE32\s0 formats.
15293 The option has no effect for little-endian images and is ignored.  The
15294 default is dependent on the selected target architecture.  For ARMv6
15295 and later architectures the default is \s-1BE8,\s0 for older architectures
15296 the default is \s-1BE32.\s0  \s-1BE32\s0 format has been deprecated by \s-1ARM.\s0
15297 .IP "\fB\-march=\fR\fIname\fR[\fB+extension...\fR]" 4
15298 .IX Item "-march=name[+extension...]"
15299 This specifies the name of the target \s-1ARM\s0 architecture.  \s-1GCC\s0 uses this
15300 name to determine what kind of instructions it can emit when generating
15301 assembly code.  This option can be used in conjunction with or instead
15302 of the \fB\-mcpu=\fR option.
15303 .Sp
15304 Permissible names are:
15305 \&\fBarmv4t\fR,
15306 \&\fBarmv5t\fR, \fBarmv5te\fR,
15307 \&\fBarmv6\fR, \fBarmv6j\fR, \fBarmv6k\fR, \fBarmv6kz\fR, \fBarmv6t2\fR,
15308 \&\fBarmv6z\fR, \fBarmv6zk\fR,
15309 \&\fBarmv7\fR, \fBarmv7\-a\fR, \fBarmv7ve\fR, 
15310 \&\fBarmv8\-a\fR, \fBarmv8.1\-a\fR, \fBarmv8.2\-a\fR, \fBarmv8.3\-a\fR,
15311 \&\fBarmv8.4\-a\fR,
15312 \&\fBarmv7\-r\fR,
15313 \&\fBarmv8\-r\fR,
15314 \&\fBarmv6\-m\fR, \fBarmv6s\-m\fR,
15315 \&\fBarmv7\-m\fR, \fBarmv7e\-m\fR,
15316 \&\fBarmv8\-m.base\fR, \fBarmv8\-m.main\fR,
15317 \&\fBiwmmxt\fR and \fBiwmmxt2\fR.
15318 .Sp
15319 Additionally, the following architectures, which lack support for the
15320 Thumb execution state, are recognized but support is deprecated:
15321 \&\fBarmv2\fR, \fBarmv2a\fR, \fBarmv3\fR, \fBarmv3m\fR,
15322 \&\fBarmv4\fR, \fBarmv5\fR and \fBarmv5e\fR.
15323 .Sp
15324 Many of the architectures support extensions.  These can be added by
15325 appending \fB+\fR\fIextension\fR to the architecture name.  Extension
15326 options are processed in order and capabilities accumulate.  An extension
15327 will also enable any necessary base extensions
15328 upon which it depends.  For example, the \fB+crypto\fR extension
15329 will always enable the \fB+simd\fR extension.  The exception to the
15330 additive construction is for extensions that are prefixed with
15331 \&\fB+no...\fR: these extensions disable the specified option and
15332 any other extensions that may depend on the presence of that
15333 extension.
15334 .Sp
15335 For example, \fB\-march=armv7\-a+simd+nofp+vfpv4\fR is equivalent to
15336 writing \fB\-march=armv7\-a+vfpv4\fR since the \fB+simd\fR option is
15337 entirely disabled by the \fB+nofp\fR option that follows it.
15338 .Sp
15339 Most extension names are generically named, but have an effect that is
15340 dependent upon the architecture to which it is applied.  For example,
15341 the \fB+simd\fR option can be applied to both \fBarmv7\-a\fR and
15342 \&\fBarmv8\-a\fR architectures, but will enable the original ARMv7\-A
15343 Advanced \s-1SIMD\s0 (Neon) extensions for \fBarmv7\-a\fR and the ARMv8\-A
15344 variant for \fBarmv8\-a\fR.
15345 .Sp
15346 The table below lists the supported extensions for each architecture.
15347 Architectures not mentioned do not support any extensions.
15348 .RS 4
15349 .IP "\fBarmv5e\fR" 4
15350 .IX Item "armv5e"
15351 .PD 0
15352 .IP "\fBarmv5te\fR" 4
15353 .IX Item "armv5te"
15354 .IP "\fBarmv6\fR" 4
15355 .IX Item "armv6"
15356 .IP "\fBarmv6j\fR" 4
15357 .IX Item "armv6j"
15358 .IP "\fBarmv6k\fR" 4
15359 .IX Item "armv6k"
15360 .IP "\fBarmv6kz\fR" 4
15361 .IX Item "armv6kz"
15362 .IP "\fBarmv6t2\fR" 4
15363 .IX Item "armv6t2"
15364 .IP "\fBarmv6z\fR" 4
15365 .IX Item "armv6z"
15366 .IP "\fBarmv6zk\fR" 4
15367 .IX Item "armv6zk"
15368 .RS 4
15369 .IP "\fB+fp\fR" 4
15370 .IX Item "+fp"
15371 .PD
15372 The VFPv2 floating-point instructions.  The extension \fB+vfpv2\fR can be
15373 used as an alias for this extension.
15374 .IP "\fB+nofp\fR" 4
15375 .IX Item "+nofp"
15376 Disable the floating-point instructions.
15377 .RE
15378 .RS 4
15379 .RE
15380 .IP "\fBarmv7\fR" 4
15381 .IX Item "armv7"
15382 The common subset of the ARMv7\-A, ARMv7\-R and ARMv7\-M architectures.
15383 .RS 4
15384 .IP "\fB+fp\fR" 4
15385 .IX Item "+fp"
15386 The VFPv3 floating-point instructions, with 16 double-precision
15387 registers.  The extension \fB+vfpv3\-d16\fR can be used as an alias
15388 for this extension.  Note that floating-point is not supported by the
15389 base ARMv7\-M architecture, but is compatible with both the ARMv7\-A and
15390 ARMv7\-R architectures.
15391 .IP "\fB+nofp\fR" 4
15392 .IX Item "+nofp"
15393 Disable the floating-point instructions.
15394 .RE
15395 .RS 4
15396 .RE
15397 .IP "\fBarmv7\-a\fR" 4
15398 .IX Item "armv7-a"
15399 .RS 4
15400 .PD 0
15401 .IP "\fB+mp\fR" 4
15402 .IX Item "+mp"
15403 .PD
15404 The multiprocessing extension.
15405 .IP "\fB+sec\fR" 4
15406 .IX Item "+sec"
15407 The security extension.
15408 .IP "\fB+fp\fR" 4
15409 .IX Item "+fp"
15410 The VFPv3 floating-point instructions, with 16 double-precision
15411 registers.  The extension \fB+vfpv3\-d16\fR can be used as an alias
15412 for this extension.
15413 .IP "\fB+simd\fR" 4
15414 .IX Item "+simd"
15415 The Advanced \s-1SIMD\s0 (Neon) v1 and the VFPv3 floating-point instructions.
15416 The extensions \fB+neon\fR and \fB+neon\-vfpv3\fR can be used as aliases
15417 for this extension.
15418 .IP "\fB+vfpv3\fR" 4
15419 .IX Item "+vfpv3"
15420 The VFPv3 floating-point instructions, with 32 double-precision
15421 registers.
15422 .IP "\fB+vfpv3\-d16\-fp16\fR" 4
15423 .IX Item "+vfpv3-d16-fp16"
15424 The VFPv3 floating-point instructions, with 16 double-precision
15425 registers and the half-precision floating-point conversion operations.
15426 .IP "\fB+vfpv3\-fp16\fR" 4
15427 .IX Item "+vfpv3-fp16"
15428 The VFPv3 floating-point instructions, with 32 double-precision
15429 registers and the half-precision floating-point conversion operations.
15430 .IP "\fB+vfpv4\-d16\fR" 4
15431 .IX Item "+vfpv4-d16"
15432 The VFPv4 floating-point instructions, with 16 double-precision
15433 registers.
15434 .IP "\fB+vfpv4\fR" 4
15435 .IX Item "+vfpv4"
15436 The VFPv4 floating-point instructions, with 32 double-precision
15437 registers.
15438 .IP "\fB+neon\-fp16\fR" 4
15439 .IX Item "+neon-fp16"
15440 The Advanced \s-1SIMD\s0 (Neon) v1 and the VFPv3 floating-point instructions, with
15441 the half-precision floating-point conversion operations.
15442 .IP "\fB+neon\-vfpv4\fR" 4
15443 .IX Item "+neon-vfpv4"
15444 The Advanced \s-1SIMD\s0 (Neon) v2 and the VFPv4 floating-point instructions.
15445 .IP "\fB+nosimd\fR" 4
15446 .IX Item "+nosimd"
15447 Disable the Advanced \s-1SIMD\s0 instructions (does not disable floating point).
15448 .IP "\fB+nofp\fR" 4
15449 .IX Item "+nofp"
15450 Disable the floating-point and Advanced \s-1SIMD\s0 instructions.
15451 .RE
15452 .RS 4
15453 .RE
15454 .IP "\fBarmv7ve\fR" 4
15455 .IX Item "armv7ve"
15456 The extended version of the ARMv7\-A architecture with support for
15457 virtualization.
15458 .RS 4
15459 .IP "\fB+fp\fR" 4
15460 .IX Item "+fp"
15461 The VFPv4 floating-point instructions, with 16 double-precision registers.
15462 The extension \fB+vfpv4\-d16\fR can be used as an alias for this extension.
15463 .IP "\fB+simd\fR" 4
15464 .IX Item "+simd"
15465 The Advanced \s-1SIMD\s0 (Neon) v2 and the VFPv4 floating-point instructions.  The
15466 extension \fB+neon\-vfpv4\fR can be used as an alias for this extension.
15467 .IP "\fB+vfpv3\-d16\fR" 4
15468 .IX Item "+vfpv3-d16"
15469 The VFPv3 floating-point instructions, with 16 double-precision
15470 registers.
15471 .IP "\fB+vfpv3\fR" 4
15472 .IX Item "+vfpv3"
15473 The VFPv3 floating-point instructions, with 32 double-precision
15474 registers.
15475 .IP "\fB+vfpv3\-d16\-fp16\fR" 4
15476 .IX Item "+vfpv3-d16-fp16"
15477 The VFPv3 floating-point instructions, with 16 double-precision
15478 registers and the half-precision floating-point conversion operations.
15479 .IP "\fB+vfpv3\-fp16\fR" 4
15480 .IX Item "+vfpv3-fp16"
15481 The VFPv3 floating-point instructions, with 32 double-precision
15482 registers and the half-precision floating-point conversion operations.
15483 .IP "\fB+vfpv4\-d16\fR" 4
15484 .IX Item "+vfpv4-d16"
15485 The VFPv4 floating-point instructions, with 16 double-precision
15486 registers.
15487 .IP "\fB+vfpv4\fR" 4
15488 .IX Item "+vfpv4"
15489 The VFPv4 floating-point instructions, with 32 double-precision
15490 registers.
15491 .IP "\fB+neon\fR" 4
15492 .IX Item "+neon"
15493 The Advanced \s-1SIMD\s0 (Neon) v1 and the VFPv3 floating-point instructions.
15494 The extension \fB+neon\-vfpv3\fR can be used as an alias for this extension.
15495 .IP "\fB+neon\-fp16\fR" 4
15496 .IX Item "+neon-fp16"
15497 The Advanced \s-1SIMD\s0 (Neon) v1 and the VFPv3 floating-point instructions, with
15498 the half-precision floating-point conversion operations.
15499 .IP "\fB+nosimd\fR" 4
15500 .IX Item "+nosimd"
15501 Disable the Advanced \s-1SIMD\s0 instructions (does not disable floating point).
15502 .IP "\fB+nofp\fR" 4
15503 .IX Item "+nofp"
15504 Disable the floating-point and Advanced \s-1SIMD\s0 instructions.
15505 .RE
15506 .RS 4
15507 .RE
15508 .IP "\fBarmv8\-a\fR" 4
15509 .IX Item "armv8-a"
15510 .RS 4
15511 .PD 0
15512 .IP "\fB+crc\fR" 4
15513 .IX Item "+crc"
15514 .PD
15515 The Cyclic Redundancy Check (\s-1CRC\s0) instructions.
15516 .IP "\fB+simd\fR" 4
15517 .IX Item "+simd"
15518 The ARMv8\-A Advanced \s-1SIMD\s0 and floating-point instructions.
15519 .IP "\fB+crypto\fR" 4
15520 .IX Item "+crypto"
15521 The cryptographic instructions.
15522 .IP "\fB+nocrypto\fR" 4
15523 .IX Item "+nocrypto"
15524 Disable the cryptographic instructions.
15525 .IP "\fB+nofp\fR" 4
15526 .IX Item "+nofp"
15527 Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
15528 .RE
15529 .RS 4
15530 .RE
15531 .IP "\fBarmv8.1\-a\fR" 4
15532 .IX Item "armv8.1-a"
15533 .RS 4
15534 .PD 0
15535 .IP "\fB+simd\fR" 4
15536 .IX Item "+simd"
15537 .PD
15538 The ARMv8.1\-A Advanced \s-1SIMD\s0 and floating-point instructions.
15539 .IP "\fB+crypto\fR" 4
15540 .IX Item "+crypto"
15541 The cryptographic instructions.  This also enables the Advanced \s-1SIMD\s0 and
15542 floating-point 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.2\-a\fR" 4
15553 .IX Item "armv8.2-a"
15554 .PD 0
15555 .IP "\fBarmv8.3\-a\fR" 4
15556 .IX Item "armv8.3-a"
15557 .RS 4
15558 .IP "\fB+fp16\fR" 4
15559 .IX Item "+fp16"
15560 .PD
15561 The half-precision floating-point data processing instructions.
15562 This also enables the Advanced \s-1SIMD\s0 and floating-point instructions.
15563 .IP "\fB+fp16fml\fR" 4
15564 .IX Item "+fp16fml"
15565 The half-precision floating-point fmla extension.  This also enables
15566 the half-precision floating-point extension and Advanced \s-1SIMD\s0 and
15567 floating-point instructions.
15568 .IP "\fB+simd\fR" 4
15569 .IX Item "+simd"
15570 The ARMv8.1\-A Advanced \s-1SIMD\s0 and floating-point instructions.
15571 .IP "\fB+crypto\fR" 4
15572 .IX Item "+crypto"
15573 The cryptographic instructions.  This also enables the Advanced \s-1SIMD\s0 and
15574 floating-point instructions.
15575 .IP "\fB+dotprod\fR" 4
15576 .IX Item "+dotprod"
15577 Enable the Dot Product extension.  This also enables Advanced \s-1SIMD\s0 instructions.
15578 .IP "\fB+nocrypto\fR" 4
15579 .IX Item "+nocrypto"
15580 Disable the cryptographic extension.
15581 .IP "\fB+nofp\fR" 4
15582 .IX Item "+nofp"
15583 Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
15584 .RE
15585 .RS 4
15586 .RE
15587 .IP "\fBarmv8.4\-a\fR" 4
15588 .IX Item "armv8.4-a"
15589 .RS 4
15590 .PD 0
15591 .IP "\fB+fp16\fR" 4
15592 .IX Item "+fp16"
15593 .PD
15594 The half-precision floating-point data processing instructions.
15595 This also enables the Advanced \s-1SIMD\s0 and floating-point instructions as well
15596 as the Dot Product extension and the half-precision floating-point fmla
15597 extension.
15598 .IP "\fB+simd\fR" 4
15599 .IX Item "+simd"
15600 The ARMv8.3\-A Advanced \s-1SIMD\s0 and floating-point instructions as well as the
15601 Dot Product extension.
15602 .IP "\fB+crypto\fR" 4
15603 .IX Item "+crypto"
15604 The cryptographic instructions.  This also enables the Advanced \s-1SIMD\s0 and
15605 floating-point instructions as well as the Dot Product extension.
15606 .IP "\fB+nocrypto\fR" 4
15607 .IX Item "+nocrypto"
15608 Disable the cryptographic extension.
15609 .IP "\fB+nofp\fR" 4
15610 .IX Item "+nofp"
15611 Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
15612 .RE
15613 .RS 4
15614 .RE
15615 .IP "\fBarmv7\-r\fR" 4
15616 .IX Item "armv7-r"
15617 .RS 4
15618 .PD 0
15619 .IP "\fB+fp.sp\fR" 4
15620 .IX Item "+fp.sp"
15621 .PD
15622 The single-precision VFPv3 floating-point instructions.  The extension
15623 \&\fB+vfpv3xd\fR can be used as an alias for this extension.
15624 .IP "\fB+fp\fR" 4
15625 .IX Item "+fp"
15626 The VFPv3 floating-point instructions with 16 double-precision registers.
15627 The extension +vfpv3\-d16 can be used as an alias for this extension.
15628 .IP "\fB+vfpv3xd\-d16\-fp16\fR" 4
15629 .IX Item "+vfpv3xd-d16-fp16"
15630 The single-precision VFPv3 floating-point instructions with 16 double-precision
15631 registers and the half-precision floating-point conversion operations.
15632 .IP "\fB+vfpv3\-d16\-fp16\fR" 4
15633 .IX Item "+vfpv3-d16-fp16"
15634 The VFPv3 floating-point instructions, with 16 double-precision
15635 registers and the half-precision floating-point conversion operations.
15636 .IP "\fB+nofp\fR" 4
15637 .IX Item "+nofp"
15638 Disable the floating-point extension.
15639 .IP "\fB+idiv\fR" 4
15640 .IX Item "+idiv"
15641 The ARM-state integer division instructions.
15642 .IP "\fB+noidiv\fR" 4
15643 .IX Item "+noidiv"
15644 Disable the ARM-state integer division extension.
15645 .RE
15646 .RS 4
15647 .RE
15648 .IP "\fBarmv7e\-m\fR" 4
15649 .IX Item "armv7e-m"
15650 .RS 4
15651 .PD 0
15652 .IP "\fB+fp\fR" 4
15653 .IX Item "+fp"
15654 .PD
15655 The single-precision VFPv4 floating-point instructions.
15656 .IP "\fB+fpv5\fR" 4
15657 .IX Item "+fpv5"
15658 The single-precision FPv5 floating-point instructions.
15659 .IP "\fB+fp.dp\fR" 4
15660 .IX Item "+fp.dp"
15661 The single\- and double-precision FPv5 floating-point instructions.
15662 .IP "\fB+nofp\fR" 4
15663 .IX Item "+nofp"
15664 Disable the floating-point extensions.
15665 .RE
15666 .RS 4
15667 .RE
15668 .IP "\fBarmv8\-m.main\fR" 4
15669 .IX Item "armv8-m.main"
15670 .RS 4
15671 .PD 0
15672 .IP "\fB+dsp\fR" 4
15673 .IX Item "+dsp"
15674 .PD
15675 The \s-1DSP\s0 instructions.
15676 .IP "\fB+nodsp\fR" 4
15677 .IX Item "+nodsp"
15678 Disable the \s-1DSP\s0 extension.
15679 .IP "\fB+fp\fR" 4
15680 .IX Item "+fp"
15681 The single-precision floating-point instructions.
15682 .IP "\fB+fp.dp\fR" 4
15683 .IX Item "+fp.dp"
15684 The single\- and double-precision floating-point instructions.
15685 .IP "\fB+nofp\fR" 4
15686 .IX Item "+nofp"
15687 Disable the floating-point extension.
15688 .RE
15689 .RS 4
15690 .RE
15691 .IP "\fBarmv8\-r\fR" 4
15692 .IX Item "armv8-r"
15693 .RS 4
15694 .PD 0
15695 .IP "\fB+crc\fR" 4
15696 .IX Item "+crc"
15697 .PD
15698 The Cyclic Redundancy Check (\s-1CRC\s0) instructions.
15699 .IP "\fB+fp.sp\fR" 4
15700 .IX Item "+fp.sp"
15701 The single-precision FPv5 floating-point instructions.
15702 .IP "\fB+simd\fR" 4
15703 .IX Item "+simd"
15704 The ARMv8\-A Advanced \s-1SIMD\s0 and floating-point instructions.
15705 .IP "\fB+crypto\fR" 4
15706 .IX Item "+crypto"
15707 The cryptographic instructions.
15708 .IP "\fB+nocrypto\fR" 4
15709 .IX Item "+nocrypto"
15710 Disable the cryptographic instructions.
15711 .IP "\fB+nofp\fR" 4
15712 .IX Item "+nofp"
15713 Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
15714 .RE
15715 .RS 4
15716 .RE
15717 .RE
15718 .RS 4
15719 .Sp
15720 \&\fB\-march=native\fR causes the compiler to auto-detect the architecture
15721 of the build computer.  At present, this feature is only supported on
15722 GNU/Linux, and not all architectures are recognized.  If the auto-detect
15723 is unsuccessful the option has no effect.
15724 .RE
15725 .IP "\fB\-mtune=\fR\fIname\fR" 4
15726 .IX Item "-mtune=name"
15727 This option specifies the name of the target \s-1ARM\s0 processor for
15728 which \s-1GCC\s0 should tune the performance of the code.
15729 For some \s-1ARM\s0 implementations better performance can be obtained by using
15730 this option.
15731 Permissible names are: \fBarm2\fR, \fBarm250\fR,
15732 \&\fBarm3\fR, \fBarm6\fR, \fBarm60\fR, \fBarm600\fR, \fBarm610\fR,
15733 \&\fBarm620\fR, \fBarm7\fR, \fBarm7m\fR, \fBarm7d\fR, \fBarm7dm\fR,
15734 \&\fBarm7di\fR, \fBarm7dmi\fR, \fBarm70\fR, \fBarm700\fR,
15735 \&\fBarm700i\fR, \fBarm710\fR, \fBarm710c\fR, \fBarm7100\fR,
15736 \&\fBarm720\fR,
15737 \&\fBarm7500\fR, \fBarm7500fe\fR, \fBarm7tdmi\fR, \fBarm7tdmi\-s\fR,
15738 \&\fBarm710t\fR, \fBarm720t\fR, \fBarm740t\fR,
15739 \&\fBstrongarm\fR, \fBstrongarm110\fR, \fBstrongarm1100\fR,
15740 \&\fBstrongarm1110\fR,
15741 \&\fBarm8\fR, \fBarm810\fR, \fBarm9\fR, \fBarm9e\fR, \fBarm920\fR,
15742 \&\fBarm920t\fR, \fBarm922t\fR, \fBarm946e\-s\fR, \fBarm966e\-s\fR,
15743 \&\fBarm968e\-s\fR, \fBarm926ej\-s\fR, \fBarm940t\fR, \fBarm9tdmi\fR,
15744 \&\fBarm10tdmi\fR, \fBarm1020t\fR, \fBarm1026ej\-s\fR,
15745 \&\fBarm10e\fR, \fBarm1020e\fR, \fBarm1022e\fR,
15746 \&\fBarm1136j\-s\fR, \fBarm1136jf\-s\fR, \fBmpcore\fR, \fBmpcorenovfp\fR,
15747 \&\fBarm1156t2\-s\fR, \fBarm1156t2f\-s\fR, \fBarm1176jz\-s\fR, \fBarm1176jzf\-s\fR,
15748 \&\fBgeneric\-armv7\-a\fR, \fBcortex\-a5\fR, \fBcortex\-a7\fR, \fBcortex\-a8\fR,
15749 \&\fBcortex\-a9\fR, \fBcortex\-a12\fR, \fBcortex\-a15\fR, \fBcortex\-a17\fR,
15750 \&\fBcortex\-a32\fR, \fBcortex\-a35\fR, \fBcortex\-a53\fR, \fBcortex\-a55\fR,
15751 \&\fBcortex\-a57\fR, \fBcortex\-a72\fR, \fBcortex\-a73\fR, \fBcortex\-a75\fR,
15752 \&\fBcortex\-r4\fR, \fBcortex\-r4f\fR, \fBcortex\-r5\fR, \fBcortex\-r7\fR,
15753 \&\fBcortex\-r8\fR, \fBcortex\-r52\fR,
15754 \&\fBcortex\-m33\fR,
15755 \&\fBcortex\-m23\fR,
15756 \&\fBcortex\-m7\fR,
15757 \&\fBcortex\-m4\fR,
15758 \&\fBcortex\-m3\fR,
15759 \&\fBcortex\-m1\fR,
15760 \&\fBcortex\-m0\fR,
15761 \&\fBcortex\-m0plus\fR,
15762 \&\fBcortex\-m1.small\-multiply\fR,
15763 \&\fBcortex\-m0.small\-multiply\fR,
15764 \&\fBcortex\-m0plus.small\-multiply\fR,
15765 \&\fBexynos\-m1\fR,
15766 \&\fBmarvell\-pj4\fR,
15767 \&\fBxscale\fR, \fBiwmmxt\fR, \fBiwmmxt2\fR, \fBep9312\fR,
15768 \&\fBfa526\fR, \fBfa626\fR,
15769 \&\fBfa606te\fR, \fBfa626te\fR, \fBfmp626\fR, \fBfa726te\fR,
15770 \&\fBxgene1\fR.
15771 .Sp
15772 Additionally, this option can specify that \s-1GCC\s0 should tune the performance
15773 of the code for a big.LITTLE system.  Permissible names are:
15774 \&\fBcortex\-a15.cortex\-a7\fR, \fBcortex\-a17.cortex\-a7\fR,
15775 \&\fBcortex\-a57.cortex\-a53\fR, \fBcortex\-a72.cortex\-a53\fR,
15776 \&\fBcortex\-a72.cortex\-a35\fR, \fBcortex\-a73.cortex\-a53\fR,
15777 \&\fBcortex\-a75.cortex\-a55\fR.
15778 .Sp
15779 \&\fB\-mtune=generic\-\fR\fIarch\fR specifies that \s-1GCC\s0 should tune the
15780 performance for a blend of processors within architecture \fIarch\fR.
15781 The aim is to generate code that run well on the current most popular
15782 processors, balancing between optimizations that benefit some CPUs in the
15783 range, and avoiding performance pitfalls of other CPUs.  The effects of
15784 this option may change in future \s-1GCC\s0 versions as \s-1CPU\s0 models come and go.
15785 .Sp
15786 \&\fB\-mtune\fR permits the same extension options as \fB\-mcpu\fR, but
15787 the extension options do not affect the tuning of the generated code.
15788 .Sp
15789 \&\fB\-mtune=native\fR causes the compiler to auto-detect the \s-1CPU\s0
15790 of the build computer.  At present, this feature is only supported on
15791 GNU/Linux, and not all architectures are recognized.  If the auto-detect is
15792 unsuccessful the option has no effect.
15793 .IP "\fB\-mcpu=\fR\fIname\fR[\fB+extension...\fR]" 4
15794 .IX Item "-mcpu=name[+extension...]"
15795 This specifies the name of the target \s-1ARM\s0 processor.  \s-1GCC\s0 uses this name
15796 to derive the name of the target \s-1ARM\s0 architecture (as if specified
15797 by \fB\-march\fR) and the \s-1ARM\s0 processor type for which to tune for
15798 performance (as if specified by \fB\-mtune\fR).  Where this option
15799 is used in conjunction with \fB\-march\fR or \fB\-mtune\fR,
15800 those options take precedence over the appropriate part of this option.
15801 .Sp
15802 Many of the supported CPUs implement optional architectural
15803 extensions.  Where this is so the architectural extensions are
15804 normally enabled by default.  If implementations that lack the
15805 extension exist, then the extension syntax can be used to disable
15806 those extensions that have been omitted.  For floating-point and
15807 Advanced \s-1SIMD\s0 (Neon) instructions, the settings of the options
15808 \&\fB\-mfloat\-abi\fR and \fB\-mfpu\fR must also be considered:
15809 floating-point and Advanced \s-1SIMD\s0 instructions will only be used if
15810 \&\fB\-mfloat\-abi\fR is not set to \fBsoft\fR; and any setting of
15811 \&\fB\-mfpu\fR other than \fBauto\fR will override the available
15812 floating-point and \s-1SIMD\s0 extension instructions.
15813 .Sp
15814 For example, \fBcortex\-a9\fR can be found in three major
15815 configurations: integer only, with just a floating-point unit or with
15816 floating-point and Advanced \s-1SIMD.\s0  The default is to enable all the
15817 instructions, but the extensions \fB+nosimd\fR and \fB+nofp\fR can
15818 be used to disable just the \s-1SIMD\s0 or both the \s-1SIMD\s0 and floating-point
15819 instructions respectively.
15820 .Sp
15821 Permissible names for this option are the same as those for
15822 \&\fB\-mtune\fR.
15823 .Sp
15824 The following extension options are common to the listed CPUs:
15825 .RS 4
15826 .IP "\fB+nodsp\fR" 4
15827 .IX Item "+nodsp"
15828 Disable the \s-1DSP\s0 instructions on \fBcortex\-m33\fR.
15829 .IP "\fB+nofp\fR" 4
15830 .IX Item "+nofp"
15831 Disables the floating-point instructions on \fBarm9e\fR,
15832 \&\fBarm946e\-s\fR, \fBarm966e\-s\fR, \fBarm968e\-s\fR, \fBarm10e\fR,
15833 \&\fBarm1020e\fR, \fBarm1022e\fR, \fBarm926ej\-s\fR,
15834 \&\fBarm1026ej\-s\fR, \fBcortex\-r5\fR, \fBcortex\-r7\fR, \fBcortex\-r8\fR,
15835 \&\fBcortex\-m4\fR, \fBcortex\-m7\fR and \fBcortex\-m33\fR.
15836 Disables the floating-point and \s-1SIMD\s0 instructions on
15837 \&\fBgeneric\-armv7\-a\fR, \fBcortex\-a5\fR, \fBcortex\-a7\fR,
15838 \&\fBcortex\-a8\fR, \fBcortex\-a9\fR, \fBcortex\-a12\fR,
15839 \&\fBcortex\-a15\fR, \fBcortex\-a17\fR, \fBcortex\-a15.cortex\-a7\fR,
15840 \&\fBcortex\-a17.cortex\-a7\fR, \fBcortex\-a32\fR, \fBcortex\-a35\fR,
15841 \&\fBcortex\-a53\fR and \fBcortex\-a55\fR.
15842 .IP "\fB+nofp.dp\fR" 4
15843 .IX Item "+nofp.dp"
15844 Disables the double-precision component of the floating-point instructions
15845 on \fBcortex\-r5\fR, \fBcortex\-r7\fR, \fBcortex\-r8\fR, \fBcortex\-r52\fR and
15846 \&\fBcortex\-m7\fR.
15847 .IP "\fB+nosimd\fR" 4
15848 .IX Item "+nosimd"
15849 Disables the \s-1SIMD\s0 (but not floating-point) instructions on
15850 \&\fBgeneric\-armv7\-a\fR, \fBcortex\-a5\fR, \fBcortex\-a7\fR
15851 and \fBcortex\-a9\fR.
15852 .IP "\fB+crypto\fR" 4
15853 .IX Item "+crypto"
15854 Enables the cryptographic instructions on \fBcortex\-a32\fR,
15855 \&\fBcortex\-a35\fR, \fBcortex\-a53\fR, \fBcortex\-a55\fR, \fBcortex\-a57\fR,
15856 \&\fBcortex\-a72\fR, \fBcortex\-a73\fR, \fBcortex\-a75\fR, \fBexynos\-m1\fR,
15857 \&\fBxgene1\fR, \fBcortex\-a57.cortex\-a53\fR, \fBcortex\-a72.cortex\-a53\fR,
15858 \&\fBcortex\-a73.cortex\-a35\fR, \fBcortex\-a73.cortex\-a53\fR and
15859 \&\fBcortex\-a75.cortex\-a55\fR.
15860 .RE
15861 .RS 4
15862 .Sp
15863 Additionally the \fBgeneric\-armv7\-a\fR pseudo target defaults to
15864 VFPv3 with 16 double-precision registers.  It supports the following
15865 extension options: \fBmp\fR, \fBsec\fR, \fBvfpv3\-d16\fR,
15866 \&\fBvfpv3\fR, \fBvfpv3\-d16\-fp16\fR, \fBvfpv3\-fp16\fR,
15867 \&\fBvfpv4\-d16\fR, \fBvfpv4\fR, \fBneon\fR, \fBneon\-vfpv3\fR,
15868 \&\fBneon\-fp16\fR, \fBneon\-vfpv4\fR.  The meanings are the same as for
15869 the extensions to \fB\-march=armv7\-a\fR.
15870 .Sp
15871 \&\fB\-mcpu=generic\-\fR\fIarch\fR is also permissible, and is
15872 equivalent to \fB\-march=\fR\fIarch\fR \fB\-mtune=generic\-\fR\fIarch\fR.
15873 See \fB\-mtune\fR for more information.
15874 .Sp
15875 \&\fB\-mcpu=native\fR causes the compiler to auto-detect the \s-1CPU\s0
15876 of the build computer.  At present, this feature is only supported on
15877 GNU/Linux, and not all architectures are recognized.  If the auto-detect
15878 is unsuccessful the option has no effect.
15879 .RE
15880 .IP "\fB\-mfpu=\fR\fIname\fR" 4
15881 .IX Item "-mfpu=name"
15882 This specifies what floating-point hardware (or hardware emulation) is
15883 available on the target.  Permissible names are: \fBauto\fR, \fBvfpv2\fR,
15884 \&\fBvfpv3\fR,
15885 \&\fBvfpv3\-fp16\fR, \fBvfpv3\-d16\fR, \fBvfpv3\-d16\-fp16\fR, \fBvfpv3xd\fR,
15886 \&\fBvfpv3xd\-fp16\fR, \fBneon\-vfpv3\fR, \fBneon\-fp16\fR, \fBvfpv4\fR,
15887 \&\fBvfpv4\-d16\fR, \fBfpv4\-sp\-d16\fR, \fBneon\-vfpv4\fR,
15888 \&\fBfpv5\-d16\fR, \fBfpv5\-sp\-d16\fR,
15889 \&\fBfp\-armv8\fR, \fBneon\-fp\-armv8\fR and \fBcrypto\-neon\-fp\-armv8\fR.
15890 Note that \fBneon\fR is an alias for \fBneon\-vfpv3\fR and \fBvfp\fR
15891 is an alias for \fBvfpv2\fR.
15892 .Sp
15893 The setting \fBauto\fR is the default and is special.  It causes the
15894 compiler to select the floating-point and Advanced \s-1SIMD\s0 instructions
15895 based on the settings of \fB\-mcpu\fR and \fB\-march\fR.
15896 .Sp
15897 If the selected floating-point hardware includes the \s-1NEON\s0 extension
15898 (e.g. \fB\-mfpu=neon\fR), note that floating-point
15899 operations are not generated by \s-1GCC\s0's auto-vectorization pass unless
15900 \&\fB\-funsafe\-math\-optimizations\fR is also specified.  This is
15901 because \s-1NEON\s0 hardware does not fully implement the \s-1IEEE 754\s0 standard for
15902 floating-point arithmetic (in particular denormal values are treated as
15903 zero), so the use of \s-1NEON\s0 instructions may lead to a loss of precision.
15904 .Sp
15905 You can also set the fpu name at function level by using the \f(CW\*(C`target("fpu=")\*(C'\fR function attributes or pragmas.
15906 .IP "\fB\-mfp16\-format=\fR\fIname\fR" 4
15907 .IX Item "-mfp16-format=name"
15908 Specify the format of the \f(CW\*(C`_\|_fp16\*(C'\fR half-precision floating-point type.
15909 Permissible names are \fBnone\fR, \fBieee\fR, and \fBalternative\fR;
15910 the default is \fBnone\fR, in which case the \f(CW\*(C`_\|_fp16\*(C'\fR type is not
15911 defined.
15912 .IP "\fB\-mstructure\-size\-boundary=\fR\fIn\fR" 4
15913 .IX Item "-mstructure-size-boundary=n"
15914 The sizes of all structures and unions are rounded up to a multiple
15915 of the number of bits set by this option.  Permissible values are 8, 32
15916 and 64.  The default value varies for different toolchains.  For the \s-1COFF\s0
15917 targeted toolchain the default value is 8.  A value of 64 is only allowed
15918 if the underlying \s-1ABI\s0 supports it.
15919 .Sp
15920 Specifying a larger number can produce faster, more efficient code, but
15921 can also increase the size of the program.  Different values are potentially
15922 incompatible.  Code compiled with one value cannot necessarily expect to
15923 work with code or libraries compiled with another value, if they exchange
15924 information using structures or unions.
15925 .Sp
15926 This option is deprecated.
15927 .IP "\fB\-mabort\-on\-noreturn\fR" 4
15928 .IX Item "-mabort-on-noreturn"
15929 Generate a call to the function \f(CW\*(C`abort\*(C'\fR at the end of a
15930 \&\f(CW\*(C`noreturn\*(C'\fR function.  It is executed if the function tries to
15931 return.
15932 .IP "\fB\-mlong\-calls\fR" 4
15933 .IX Item "-mlong-calls"
15934 .PD 0
15935 .IP "\fB\-mno\-long\-calls\fR" 4
15936 .IX Item "-mno-long-calls"
15937 .PD
15938 Tells the compiler to perform function calls by first loading the
15939 address of the function into a register and then performing a subroutine
15940 call on this register.  This switch is needed if the target function
15941 lies outside of the 64\-megabyte addressing range of the offset-based
15942 version of subroutine call instruction.
15943 .Sp
15944 Even if this switch is enabled, not all function calls are turned
15945 into long calls.  The heuristic is that static functions, functions
15946 that have the \f(CW\*(C`short_call\*(C'\fR attribute, functions that are inside
15947 the scope of a \f(CW\*(C`#pragma no_long_calls\*(C'\fR directive, and functions whose
15948 definitions have already been compiled within the current compilation
15949 unit are not turned into long calls.  The exceptions to this rule are
15950 that weak function definitions, functions with the \f(CW\*(C`long_call\*(C'\fR
15951 attribute or the \f(CW\*(C`section\*(C'\fR attribute, and functions that are within
15952 the scope of a \f(CW\*(C`#pragma long_calls\*(C'\fR directive are always
15953 turned into long calls.
15954 .Sp
15955 This feature is not enabled by default.  Specifying
15956 \&\fB\-mno\-long\-calls\fR restores the default behavior, as does
15957 placing the function calls within the scope of a \f(CW\*(C`#pragma
15958 long_calls_off\*(C'\fR directive.  Note these switches have no effect on how
15959 the compiler generates code to handle function calls via function
15960 pointers.
15961 .IP "\fB\-msingle\-pic\-base\fR" 4
15962 .IX Item "-msingle-pic-base"
15963 Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
15964 loading it in the prologue for each function.  The runtime system is
15965 responsible for initializing this register with an appropriate value
15966 before execution begins.
15967 .IP "\fB\-mpic\-register=\fR\fIreg\fR" 4
15968 .IX Item "-mpic-register=reg"
15969 Specify the register to be used for \s-1PIC\s0 addressing.
15970 For standard \s-1PIC\s0 base case, the default is any suitable register
15971 determined by compiler.  For single \s-1PIC\s0 base case, the default is
15972 \&\fBR9\fR if target is \s-1EABI\s0 based or stack-checking is enabled,
15973 otherwise the default is \fBR10\fR.
15974 .IP "\fB\-mpic\-data\-is\-text\-relative\fR" 4
15975 .IX Item "-mpic-data-is-text-relative"
15976 Assume that the displacement between the text and data segments is fixed
15977 at static link time.  This permits using PC-relative addressing
15978 operations to access data known to be in the data segment.  For
15979 non-VxWorks \s-1RTP\s0 targets, this option is enabled by default.  When
15980 disabled on such targets, it will enable \fB\-msingle\-pic\-base\fR by
15981 default.
15982 .IP "\fB\-mpoke\-function\-name\fR" 4
15983 .IX Item "-mpoke-function-name"
15984 Write the name of each function into the text section, directly
15985 preceding the function prologue.  The generated code is similar to this:
15986 .Sp
15987 .Vb 9
15988 \&             t0
15989 \&                 .ascii "arm_poke_function_name", 0
15990 \&                 .align
15991 \&             t1
15992 \&                 .word 0xff000000 + (t1 \- t0)
15993 \&             arm_poke_function_name
15994 \&                 mov     ip, sp
15995 \&                 stmfd   sp!, {fp, ip, lr, pc}
15996 \&                 sub     fp, ip, #4
15997 .Ve
15998 .Sp
15999 When performing a stack backtrace, code can inspect the value of
16000 \&\f(CW\*(C`pc\*(C'\fR stored at \f(CW\*(C`fp + 0\*(C'\fR.  If the trace function then looks at
16001 location \f(CW\*(C`pc \- 12\*(C'\fR and the top 8 bits are set, then we know that
16002 there is a function name embedded immediately preceding this location
16003 and has length \f(CW\*(C`((pc[\-3]) & 0xff000000)\*(C'\fR.
16004 .IP "\fB\-mthumb\fR" 4
16005 .IX Item "-mthumb"
16006 .PD 0
16007 .IP "\fB\-marm\fR" 4
16008 .IX Item "-marm"
16009 .PD
16010 Select between generating code that executes in \s-1ARM\s0 and Thumb
16011 states.  The default for most configurations is to generate code
16012 that executes in \s-1ARM\s0 state, but the default can be changed by
16013 configuring \s-1GCC\s0 with the \fB\-\-with\-mode=\fR\fIstate\fR
16014 configure option.
16015 .Sp
16016 You can also override the \s-1ARM\s0 and Thumb mode for each function
16017 by using the \f(CW\*(C`target("thumb")\*(C'\fR and \f(CW\*(C`target("arm")\*(C'\fR function attributes or pragmas.
16018 .IP "\fB\-mflip\-thumb\fR" 4
16019 .IX Item "-mflip-thumb"
16020 Switch ARM/Thumb modes on alternating functions.
16021 This option is provided for regression testing of mixed Thumb/ARM code
16022 generation, and is not intended for ordinary use in compiling code.
16023 .IP "\fB\-mtpcs\-frame\fR" 4
16024 .IX Item "-mtpcs-frame"
16025 Generate a stack frame that is compliant with the Thumb Procedure Call
16026 Standard for all non-leaf functions.  (A leaf function is one that does
16027 not call any other functions.)  The default is \fB\-mno\-tpcs\-frame\fR.
16028 .IP "\fB\-mtpcs\-leaf\-frame\fR" 4
16029 .IX Item "-mtpcs-leaf-frame"
16030 Generate a stack frame that is compliant with the Thumb Procedure Call
16031 Standard for all leaf functions.  (A leaf function is one that does
16032 not call any other functions.)  The default is \fB\-mno\-apcs\-leaf\-frame\fR.
16033 .IP "\fB\-mcallee\-super\-interworking\fR" 4
16034 .IX Item "-mcallee-super-interworking"
16035 Gives all externally visible functions in the file being compiled an \s-1ARM\s0
16036 instruction set header which switches to Thumb mode before executing the
16037 rest of the function.  This allows these functions to be called from
16038 non-interworking code.  This option is not valid in \s-1AAPCS\s0 configurations
16039 because interworking is enabled by default.
16040 .IP "\fB\-mcaller\-super\-interworking\fR" 4
16041 .IX Item "-mcaller-super-interworking"
16042 Allows calls via function pointers (including virtual functions) to
16043 execute correctly regardless of whether the target code has been
16044 compiled for interworking or not.  There is a small overhead in the cost
16045 of executing a function pointer if this option is enabled.  This option
16046 is not valid in \s-1AAPCS\s0 configurations because interworking is enabled
16047 by default.
16048 .IP "\fB\-mtp=\fR\fIname\fR" 4
16049 .IX Item "-mtp=name"
16050 Specify the access model for the thread local storage pointer.  The valid
16051 models are \fBsoft\fR, which generates calls to \f(CW\*(C`_\|_aeabi_read_tp\*(C'\fR,
16052 \&\fBcp15\fR, which fetches the thread pointer from \f(CW\*(C`cp15\*(C'\fR directly
16053 (supported in the arm6k architecture), and \fBauto\fR, which uses the
16054 best available method for the selected processor.  The default setting is
16055 \&\fBauto\fR.
16056 .IP "\fB\-mtls\-dialect=\fR\fIdialect\fR" 4
16057 .IX Item "-mtls-dialect=dialect"
16058 Specify the dialect to use for accessing thread local storage.  Two
16059 \&\fIdialect\fRs are supported\-\-\-\fBgnu\fR and \fBgnu2\fR.  The
16060 \&\fBgnu\fR dialect selects the original \s-1GNU\s0 scheme for supporting
16061 local and global dynamic \s-1TLS\s0 models.  The \fBgnu2\fR dialect
16062 selects the \s-1GNU\s0 descriptor scheme, which provides better performance
16063 for shared libraries.  The \s-1GNU\s0 descriptor scheme is compatible with
16064 the original scheme, but does require new assembler, linker and
16065 library support.  Initial and local exec \s-1TLS\s0 models are unaffected by
16066 this option and always use the original scheme.
16067 .IP "\fB\-mword\-relocations\fR" 4
16068 .IX Item "-mword-relocations"
16069 Only generate absolute relocations on word-sized values (i.e. R_ARM_ABS32).
16070 This is enabled by default on targets (uClinux, SymbianOS) where the runtime
16071 loader imposes this restriction, and when \fB\-fpic\fR or \fB\-fPIC\fR
16072 is specified.
16073 .IP "\fB\-mfix\-cortex\-m3\-ldrd\fR" 4
16074 .IX Item "-mfix-cortex-m3-ldrd"
16075 Some Cortex\-M3 cores can cause data corruption when \f(CW\*(C`ldrd\*(C'\fR instructions
16076 with overlapping destination and base registers are used.  This option avoids
16077 generating these instructions.  This option is enabled by default when
16078 \&\fB\-mcpu=cortex\-m3\fR is specified.
16079 .IP "\fB\-munaligned\-access\fR" 4
16080 .IX Item "-munaligned-access"
16081 .PD 0
16082 .IP "\fB\-mno\-unaligned\-access\fR" 4
16083 .IX Item "-mno-unaligned-access"
16084 .PD
16085 Enables (or disables) reading and writing of 16\- and 32\- bit values
16086 from addresses that are not 16\- or 32\- bit aligned.  By default
16087 unaligned access is disabled for all pre\-ARMv6, all ARMv6\-M and for
16088 ARMv8\-M Baseline architectures, and enabled for all other
16089 architectures.  If unaligned access is not enabled then words in packed
16090 data structures are accessed a byte at a time.
16091 .Sp
16092 The \s-1ARM\s0 attribute \f(CW\*(C`Tag_CPU_unaligned_access\*(C'\fR is set in the
16093 generated object file to either true or false, depending upon the
16094 setting of this option.  If unaligned access is enabled then the
16095 preprocessor symbol \f(CW\*(C`_\|_ARM_FEATURE_UNALIGNED\*(C'\fR is also
16096 defined.
16097 .IP "\fB\-mneon\-for\-64bits\fR" 4
16098 .IX Item "-mneon-for-64bits"
16099 Enables using Neon to handle scalar 64\-bits operations. This is
16100 disabled by default since the cost of moving data from core registers
16101 to Neon is high.
16102 .IP "\fB\-mslow\-flash\-data\fR" 4
16103 .IX Item "-mslow-flash-data"
16104 Assume loading data from flash is slower than fetching instruction.
16105 Therefore literal load is minimized for better performance.
16106 This option is only supported when compiling for ARMv7 M\-profile and
16107 off by default.
16108 .IP "\fB\-masm\-syntax\-unified\fR" 4
16109 .IX Item "-masm-syntax-unified"
16110 Assume inline assembler is using unified asm syntax.  The default is
16111 currently off which implies divided syntax.  This option has no impact
16112 on Thumb2. However, this may change in future releases of \s-1GCC.\s0
16113 Divided syntax should be considered deprecated.
16114 .IP "\fB\-mrestrict\-it\fR" 4
16115 .IX Item "-mrestrict-it"
16116 Restricts generation of \s-1IT\s0 blocks to conform to the rules of ARMv8\-A.
16117 \&\s-1IT\s0 blocks can only contain a single 16\-bit instruction from a select
16118 set of instructions. This option is on by default for ARMv8\-A Thumb mode.
16119 .IP "\fB\-mprint\-tune\-info\fR" 4
16120 .IX Item "-mprint-tune-info"
16121 Print \s-1CPU\s0 tuning information as comment in assembler file.  This is
16122 an option used only for regression testing of the compiler and not
16123 intended for ordinary use in compiling code.  This option is disabled
16124 by default.
16125 .IP "\fB\-mverbose\-cost\-dump\fR" 4
16126 .IX Item "-mverbose-cost-dump"
16127 Enable verbose cost model dumping in the debug dump files.  This option is
16128 provided for use in debugging the compiler.
16129 .IP "\fB\-mpure\-code\fR" 4
16130 .IX Item "-mpure-code"
16131 Do not allow constant data to be placed in code sections.
16132 Additionally, when compiling for \s-1ELF\s0 object format give all text sections the
16133 \&\s-1ELF\s0 processor-specific section attribute \f(CW\*(C`SHF_ARM_PURECODE\*(C'\fR.  This option
16134 is only available when generating non-pic code for M\-profile targets with the
16135 \&\s-1MOVT\s0 instruction.
16136 .IP "\fB\-mcmse\fR" 4
16137 .IX Item "-mcmse"
16138 Generate secure code as per the \*(L"ARMv8\-M Security Extensions: Requirements on
16139 Development Tools Engineering Specification\*(R", which can be found on
16140 <\fBhttp://infocenter.arm.com/help/topic/com.arm.doc.ecm0359818/ECM0359818_armv8m_security_extensions_reqs_on_dev_tools_1_0.pdf\fR>.
16141 .PP
16142 \fI\s-1AVR\s0 Options\fR
16143 .IX Subsection "AVR Options"
16144 .PP
16145 These options are defined for \s-1AVR\s0 implementations:
16146 .IP "\fB\-mmcu=\fR\fImcu\fR" 4
16147 .IX Item "-mmcu=mcu"
16148 Specify Atmel \s-1AVR\s0 instruction set architectures (\s-1ISA\s0) or \s-1MCU\s0 type.
16149 .Sp
16150 The default for this option is@tie{}\fBavr2\fR.
16151 .Sp
16152 \&\s-1GCC\s0 supports the following \s-1AVR\s0 devices and ISAs:
16153 .RS 4
16154 .ie n .IP """avr2""" 4
16155 .el .IP "\f(CWavr2\fR" 4
16156 .IX Item "avr2"
16157 \&\*(L"Classic\*(R" devices with up to 8@tie{}KiB of program memory.
16158 \&\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.
16159 .ie n .IP """avr25""" 4
16160 .el .IP "\f(CWavr25\fR" 4
16161 .IX Item "avr25"
16162 \&\*(L"Classic\*(R" devices with up to 8@tie{}KiB of program memory and with the \f(CW\*(C`MOVW\*(C'\fR instruction.
16163 \&\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.
16164 .ie n .IP """avr3""" 4
16165 .el .IP "\f(CWavr3\fR" 4
16166 .IX Item "avr3"
16167 \&\*(L"Classic\*(R" devices with 16@tie{}KiB up to 64@tie{}KiB of  program memory.
16168 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`at43usb355\*(C'\fR, \f(CW\*(C`at76c711\*(C'\fR.
16169 .ie n .IP """avr31""" 4
16170 .el .IP "\f(CWavr31\fR" 4
16171 .IX Item "avr31"
16172 \&\*(L"Classic\*(R" devices with 128@tie{}KiB of program memory.
16173 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atmega103\*(C'\fR, \f(CW\*(C`at43usb320\*(C'\fR.
16174 .ie n .IP """avr35""" 4
16175 .el .IP "\f(CWavr35\fR" 4
16176 .IX Item "avr35"
16177 \&\*(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.
16178 \&\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.
16179 .ie n .IP """avr4""" 4
16180 .el .IP "\f(CWavr4\fR" 4
16181 .IX Item "avr4"
16182 \&\*(L"Enhanced\*(R" devices with up to 8@tie{}KiB of program memory.
16183 \&\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.
16184 .ie n .IP """avr5""" 4
16185 .el .IP "\f(CWavr5\fR" 4
16186 .IX Item "avr5"
16187 \&\*(L"Enhanced\*(R" devices with 16@tie{}KiB up to 64@tie{}KiB of program memory.
16188 \&\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.
16189 .ie n .IP """avr51""" 4
16190 .el .IP "\f(CWavr51\fR" 4
16191 .IX Item "avr51"
16192 \&\*(L"Enhanced\*(R" devices with 128@tie{}KiB of program memory.
16193 \&\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.
16194 .ie n .IP """avr6""" 4
16195 .el .IP "\f(CWavr6\fR" 4
16196 .IX Item "avr6"
16197 \&\*(L"Enhanced\*(R" devices with 3\-byte \s-1PC,\s0 i.e. with more than 128@tie{}KiB of program memory.
16198 \&\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.
16199 .ie n .IP """avrxmega2""" 4
16200 .el .IP "\f(CWavrxmega2\fR" 4
16201 .IX Item "avrxmega2"
16202 \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 8@tie{}KiB and up to 64@tie{}KiB of program memory.
16203 \&\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.
16204 .ie n .IP """avrxmega3""" 4
16205 .el .IP "\f(CWavrxmega3\fR" 4
16206 .IX Item "avrxmega3"
16207 \&\*(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.
16208 \&\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.
16209 .ie n .IP """avrxmega4""" 4
16210 .el .IP "\f(CWavrxmega4\fR" 4
16211 .IX Item "avrxmega4"
16212 \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 64@tie{}KiB and up to 128@tie{}KiB of program memory.
16213 \&\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.
16214 .ie n .IP """avrxmega5""" 4
16215 .el .IP "\f(CWavrxmega5\fR" 4
16216 .IX Item "avrxmega5"
16217 \&\*(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
16218 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atxmega64a1\*(C'\fR, \f(CW\*(C`atxmega64a1u\*(C'\fR.
16219 .ie n .IP """avrxmega6""" 4
16220 .el .IP "\f(CWavrxmega6\fR" 4
16221 .IX Item "avrxmega6"
16222 \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 128@tie{}KiB of program memory.
16223 \&\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.
16224 .ie n .IP """avrxmega7""" 4
16225 .el .IP "\f(CWavrxmega7\fR" 4
16226 .IX Item "avrxmega7"
16227 \&\*(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
16228 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atxmega128a1\*(C'\fR, \f(CW\*(C`atxmega128a1u\*(C'\fR, \f(CW\*(C`atxmega128a4u\*(C'\fR.
16229 .ie n .IP """avrtiny""" 4
16230 .el .IP "\f(CWavrtiny\fR" 4
16231 .IX Item "avrtiny"
16232 \&\*(L"\s-1TINY\*(R"\s0 Tiny core devices with 512@tie{}B up to 4@tie{}KiB of program memory.
16233 \&\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.
16234 .ie n .IP """avr1""" 4
16235 .el .IP "\f(CWavr1\fR" 4
16236 .IX Item "avr1"
16237 This \s-1ISA\s0 is implemented by the minimal \s-1AVR\s0 core and supported for assembler only.
16238 \&\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.
16239 .RE
16240 .RS 4
16241 .RE
16242 .IP "\fB\-mabsdata\fR" 4
16243 .IX Item "-mabsdata"
16244 Assume that all data in static storage can be accessed by \s-1LDS / STS\s0
16245 instructions.  This option has only an effect on reduced Tiny devices like
16246 ATtiny40.  See also the \f(CW\*(C`absdata\*(C'\fR
16247 \&\fB\s-1AVR\s0 Variable Attributes,variable attribute\fR.
16248 .IP "\fB\-maccumulate\-args\fR" 4
16249 .IX Item "-maccumulate-args"
16250 Accumulate outgoing function arguments and acquire/release the needed
16251 stack space for outgoing function arguments once in function
16252 prologue/epilogue.  Without this option, outgoing arguments are pushed
16253 before calling a function and popped afterwards.
16254 .Sp
16255 Popping the arguments after the function call can be expensive on
16256 \&\s-1AVR\s0 so that accumulating the stack space might lead to smaller
16257 executables because arguments need not be removed from the
16258 stack after such a function call.
16259 .Sp
16260 This option can lead to reduced code size for functions that perform
16261 several calls to functions that get their arguments on the stack like
16262 calls to printf-like functions.
16263 .IP "\fB\-mbranch\-cost=\fR\fIcost\fR" 4
16264 .IX Item "-mbranch-cost=cost"
16265 Set the branch costs for conditional branch instructions to
16266 \&\fIcost\fR.  Reasonable values for \fIcost\fR are small, non-negative
16267 integers. The default branch cost is 0.
16268 .IP "\fB\-mcall\-prologues\fR" 4
16269 .IX Item "-mcall-prologues"
16270 Functions prologues/epilogues are expanded as calls to appropriate
16271 subroutines.  Code size is smaller.
16272 .IP "\fB\-mgas\-isr\-prologues\fR" 4
16273 .IX Item "-mgas-isr-prologues"
16274 Interrupt service routines (ISRs) may use the \f(CW\*(C`_\|_gcc_isr\*(C'\fR pseudo
16275 instruction supported by \s-1GNU\s0 Binutils.
16276 If this option is on, the feature can still be disabled for individual
16277 ISRs by means of the \fB\s-1AVR\s0 Function Attributes,,\f(CB\*(C`no_gccisr\*(C'\fB\fR
16278 function attribute.  This feature is activated per default
16279 if optimization is on (but not with \fB\-Og\fR, \f(CW@pxref\fR{Optimize Options}),
16280 and if \s-1GNU\s0 Binutils support \s-1PR21683\s0 (\f(CW\*(C`https://sourceware.org/PR21683\*(C'\fR).
16281 .IP "\fB\-mint8\fR" 4
16282 .IX Item "-mint8"
16283 Assume \f(CW\*(C`int\*(C'\fR to be 8\-bit integer.  This affects the sizes of all types: a
16284 \&\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,
16285 and \f(CW\*(C`long long\*(C'\fR is 4 bytes.  Please note that this option does not
16286 conform to the C standards, but it results in smaller code
16287 size.
16288 .IP "\fB\-mmain\-is\-OS_task\fR" 4
16289 .IX Item "-mmain-is-OS_task"
16290 Do not save registers in \f(CW\*(C`main\*(C'\fR.  The effect is the same like
16291 attaching attribute \fB\s-1AVR\s0 Function Attributes,,\f(CB\*(C`OS_task\*(C'\fB\fR
16292 to \f(CW\*(C`main\*(C'\fR. It is activated per default if optimization is on.
16293 .IP "\fB\-mn\-flash=\fR\fInum\fR" 4
16294 .IX Item "-mn-flash=num"
16295 Assume that the flash memory has a size of 
16296 \&\fInum\fR times 64@tie{}KiB.
16297 .IP "\fB\-mno\-interrupts\fR" 4
16298 .IX Item "-mno-interrupts"
16299 Generated code is not compatible with hardware interrupts.
16300 Code size is smaller.
16301 .IP "\fB\-mrelax\fR" 4
16302 .IX Item "-mrelax"
16303 Try to replace \f(CW\*(C`CALL\*(C'\fR resp. \f(CW\*(C`JMP\*(C'\fR instruction by the shorter
16304 \&\f(CW\*(C`RCALL\*(C'\fR resp. \f(CW\*(C`RJMP\*(C'\fR instruction if applicable.
16305 Setting \fB\-mrelax\fR just adds the \fB\-\-mlink\-relax\fR option to
16306 the assembler's command line and the \fB\-\-relax\fR option to the
16307 linker's command line.
16308 .Sp
16309 Jump relaxing is performed by the linker because jump offsets are not
16310 known before code is located. Therefore, the assembler code generated by the
16311 compiler is the same, but the instructions in the executable may
16312 differ from instructions in the assembler code.
16313 .Sp
16314 Relaxing must be turned on if linker stubs are needed, see the
16315 section on \f(CW\*(C`EIND\*(C'\fR and linker stubs below.
16316 .IP "\fB\-mrmw\fR" 4
16317 .IX Item "-mrmw"
16318 Assume that the device supports the Read-Modify-Write
16319 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.
16320 .IP "\fB\-mshort\-calls\fR" 4
16321 .IX Item "-mshort-calls"
16322 Assume that \f(CW\*(C`RJMP\*(C'\fR and \f(CW\*(C`RCALL\*(C'\fR can target the whole
16323 program memory.
16324 .Sp
16325 This option is used internally for multilib selection.  It is
16326 not an optimization option, and you don't need to set it by hand.
16327 .IP "\fB\-msp8\fR" 4
16328 .IX Item "-msp8"
16329 Treat the stack pointer register as an 8\-bit register,
16330 i.e. assume the high byte of the stack pointer is zero.
16331 In general, you don't need to set this option by hand.
16332 .Sp
16333 This option is used internally by the compiler to select and
16334 build multilibs for architectures \f(CW\*(C`avr2\*(C'\fR and \f(CW\*(C`avr25\*(C'\fR.
16335 These architectures mix devices with and without \f(CW\*(C`SPH\*(C'\fR.
16336 For any setting other than \fB\-mmcu=avr2\fR or \fB\-mmcu=avr25\fR
16337 the compiler driver adds or removes this option from the compiler
16338 proper's command line, because the compiler then knows if the device
16339 or architecture has an 8\-bit stack pointer and thus no \f(CW\*(C`SPH\*(C'\fR
16340 register or not.
16341 .IP "\fB\-mstrict\-X\fR" 4
16342 .IX Item "-mstrict-X"
16343 Use address register \f(CW\*(C`X\*(C'\fR in a way proposed by the hardware.  This means
16344 that \f(CW\*(C`X\*(C'\fR is only used in indirect, post-increment or
16345 pre-decrement addressing.
16346 .Sp
16347 Without this option, the \f(CW\*(C`X\*(C'\fR register may be used in the same way
16348 as \f(CW\*(C`Y\*(C'\fR or \f(CW\*(C`Z\*(C'\fR which then is emulated by additional
16349 instructions.  
16350 For example, loading a value with \f(CW\*(C`X+const\*(C'\fR addressing with a
16351 small non-negative \f(CW\*(C`const < 64\*(C'\fR to a register \fIRn\fR is
16352 performed as
16353 .Sp
16354 .Vb 3
16355 \&        adiw r26, const   ; X += const
16356 \&        ld   <Rn>, X        ; <Rn> = *X
16357 \&        sbiw r26, const   ; X \-= const
16358 .Ve
16359 .IP "\fB\-mtiny\-stack\fR" 4
16360 .IX Item "-mtiny-stack"
16361 Only change the lower 8@tie{}bits of the stack pointer.
16362 .IP "\fB\-mfract\-convert\-truncate\fR" 4
16363 .IX Item "-mfract-convert-truncate"
16364 Allow to use truncation instead of rounding towards zero for fractional fixed-point types.
16365 .IP "\fB\-nodevicelib\fR" 4
16366 .IX Item "-nodevicelib"
16367 Don't link against AVR-LibC's device specific library \f(CW\*(C`lib<mcu>.a\*(C'\fR.
16368 .IP "\fB\-Waddr\-space\-convert\fR" 4
16369 .IX Item "-Waddr-space-convert"
16370 Warn about conversions between address spaces in the case where the
16371 resulting address space is not contained in the incoming address space.
16372 .IP "\fB\-Wmisspelled\-isr\fR" 4
16373 .IX Item "-Wmisspelled-isr"
16374 Warn if the \s-1ISR\s0 is misspelled, i.e. without _\|_vector prefix.
16375 Enabled by default.
16376 .PP
16377 \f(CW\*(C`EIND\*(C'\fR and Devices with More Than 128 Ki Bytes of Flash
16378 .IX Subsection "EIND and Devices with More Than 128 Ki Bytes of Flash"
16379 .PP
16380 Pointers in the implementation are 16@tie{}bits wide.
16381 The address of a function or label is represented as word address so
16382 that indirect jumps and calls can target any code address in the
16383 range of 64@tie{}Ki words.
16384 .PP
16385 In order to facilitate indirect jump on devices with more than 128@tie{}Ki
16386 bytes of program memory space, there is a special function register called
16387 \&\f(CW\*(C`EIND\*(C'\fR that serves as most significant part of the target address
16388 when \f(CW\*(C`EICALL\*(C'\fR or \f(CW\*(C`EIJMP\*(C'\fR instructions are used.
16389 .PP
16390 Indirect jumps and calls on these devices are handled as follows by
16391 the compiler and are subject to some limitations:
16392 .IP "*" 4
16393 The compiler never sets \f(CW\*(C`EIND\*(C'\fR.
16394 .IP "*" 4
16395 The compiler uses \f(CW\*(C`EIND\*(C'\fR implicitly in \f(CW\*(C`EICALL\*(C'\fR/\f(CW\*(C`EIJMP\*(C'\fR
16396 instructions or might read \f(CW\*(C`EIND\*(C'\fR directly in order to emulate an
16397 indirect call/jump by means of a \f(CW\*(C`RET\*(C'\fR instruction.
16398 .IP "*" 4
16399 The compiler assumes that \f(CW\*(C`EIND\*(C'\fR never changes during the startup
16400 code or during the application. In particular, \f(CW\*(C`EIND\*(C'\fR is not
16401 saved/restored in function or interrupt service routine
16402 prologue/epilogue.
16403 .IP "*" 4
16404 For indirect calls to functions and computed goto, the linker
16405 generates \fIstubs\fR. Stubs are jump pads sometimes also called
16406 \&\fItrampolines\fR. Thus, the indirect call/jump jumps to such a stub.
16407 The stub contains a direct jump to the desired address.
16408 .IP "*" 4
16409 Linker relaxation must be turned on so that the linker generates
16410 the stubs correctly in all situations. See the compiler option
16411 \&\fB\-mrelax\fR and the linker option \fB\-\-relax\fR.
16412 There are corner cases where the linker is supposed to generate stubs
16413 but aborts without relaxation and without a helpful error message.
16414 .IP "*" 4
16415 The default linker script is arranged for code with \f(CW\*(C`EIND = 0\*(C'\fR.
16416 If code is supposed to work for a setup with \f(CW\*(C`EIND != 0\*(C'\fR, a custom
16417 linker script has to be used in order to place the sections whose
16418 name start with \f(CW\*(C`.trampolines\*(C'\fR into the segment where \f(CW\*(C`EIND\*(C'\fR
16419 points to.
16420 .IP "*" 4
16421 The startup code from libgcc never sets \f(CW\*(C`EIND\*(C'\fR.
16422 Notice that startup code is a blend of code from libgcc and AVR-LibC.
16423 For the impact of AVR-LibC on \f(CW\*(C`EIND\*(C'\fR, see the
16424 AVR-LibC\ user\ manual (\f(CW\*(C`http://nongnu.org/avr\-libc/user\-manual/\*(C'\fR).
16425 .IP "*" 4
16426 It is legitimate for user-specific startup code to set up \f(CW\*(C`EIND\*(C'\fR
16427 early, for example by means of initialization code located in
16428 section \f(CW\*(C`.init3\*(C'\fR. Such code runs prior to general startup code
16429 that initializes \s-1RAM\s0 and calls constructors, but after the bit
16430 of startup code from AVR-LibC that sets \f(CW\*(C`EIND\*(C'\fR to the segment
16431 where the vector table is located.
16432 .Sp
16433 .Vb 1
16434 \&        #include <avr/io.h>
16435 \&        
16436 \&        static void
16437 \&        _\|_attribute_\|_((section(".init3"),naked,used,no_instrument_function))
16438 \&        init3_set_eind (void)
16439 \&        {
16440 \&          _\|_asm volatile ("ldi r24,pm_hh8(_\|_trampolines_start)\en\et"
16441 \&                          "out %i0,r24" :: "n" (&EIND) : "r24","memory");
16442 \&        }
16443 .Ve
16444 .Sp
16445 The \f(CW\*(C`_\|_trampolines_start\*(C'\fR symbol is defined in the linker script.
16446 .IP "*" 4
16447 Stubs are generated automatically by the linker if
16448 the following two conditions are met:
16449 .RS 4
16450 .ie n .IP "\-<The address of a label is taken by means of the ""gs"" modifier>" 4
16451 .el .IP "\-<The address of a label is taken by means of the \f(CWgs\fR modifier>" 4
16452 .IX Item "-<The address of a label is taken by means of the gs modifier>"
16453 (short for \fIgenerate stubs\fR) like so:
16454 .Sp
16455 .Vb 2
16456 \&        LDI r24, lo8(gs(<func>))
16457 \&        LDI r25, hi8(gs(<func>))
16458 .Ve
16459 .IP "\-<The final location of that label is in a code segment>" 4
16460 .IX Item "-<The final location of that label is in a code segment>"
16461 \&\fIoutside\fR the segment where the stubs are located.
16462 .RE
16463 .RS 4
16464 .RE
16465 .IP "*" 4
16466 The compiler emits such \f(CW\*(C`gs\*(C'\fR modifiers for code labels in the
16467 following situations:
16468 .RS 4
16469 .IP "\-<Taking address of a function or code label.>" 4
16470 .IX Item "-<Taking address of a function or code label.>"
16471 .PD 0
16472 .IP "\-<Computed goto.>" 4
16473 .IX Item "-<Computed goto.>"
16474 .IP "\-<If prologue-save function is used, see \fB\-mcall\-prologues\fR>" 4
16475 .IX Item "-<If prologue-save function is used, see -mcall-prologues>"
16476 .PD
16477 command-line option.
16478 .IP "\-<Switch/case dispatch tables. If you do not want such dispatch>" 4
16479 .IX Item "-<Switch/case dispatch tables. If you do not want such dispatch>"
16480 tables you can specify the \fB\-fno\-jump\-tables\fR command-line option.
16481 .IP "\-<C and \*(C+ constructors/destructors called during startup/shutdown.>" 4
16482 .IX Item "-<C and constructors/destructors called during startup/shutdown.>"
16483 .PD 0
16484 .ie n .IP "\-<If the tools hit a ""gs()"" modifier explained above.>" 4
16485 .el .IP "\-<If the tools hit a \f(CWgs()\fR modifier explained above.>" 4
16486 .IX Item "-<If the tools hit a gs() modifier explained above.>"
16487 .RE
16488 .RS 4
16489 .RE
16490 .IP "*" 4
16491 .PD
16492 Jumping to non-symbolic addresses like so is \fInot\fR supported:
16493 .Sp
16494 .Vb 5
16495 \&        int main (void)
16496 \&        {
16497 \&            /* Call function at word address 0x2 */
16498 \&            return ((int(*)(void)) 0x2)();
16499 \&        }
16500 .Ve
16501 .Sp
16502 Instead, a stub has to be set up, i.e. the function has to be called
16503 through a symbol (\f(CW\*(C`func_4\*(C'\fR in the example):
16504 .Sp
16505 .Vb 3
16506 \&        int main (void)
16507 \&        {
16508 \&            extern int func_4 (void);
16509 \&        
16510 \&            /* Call function at byte address 0x4 */
16511 \&            return func_4();
16512 \&        }
16513 .Ve
16514 .Sp
16515 and the application be linked with \fB\-Wl,\-\-defsym,func_4=0x4\fR.
16516 Alternatively, \f(CW\*(C`func_4\*(C'\fR can be defined in the linker script.
16517 .PP
16518 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
16519 .IX Subsection "Handling of the RAMPD, RAMPX, RAMPY and RAMPZ Special Function Registers"
16520 .PP
16521 Some \s-1AVR\s0 devices support memories larger than the 64@tie{}KiB range
16522 that can be accessed with 16\-bit pointers.  To access memory locations
16523 outside this 64@tie{}KiB range, the content of a \f(CW\*(C`RAMP\*(C'\fR
16524 register is used as high part of the address:
16525 The \f(CW\*(C`X\*(C'\fR, \f(CW\*(C`Y\*(C'\fR, \f(CW\*(C`Z\*(C'\fR address register is concatenated
16526 with the \f(CW\*(C`RAMPX\*(C'\fR, \f(CW\*(C`RAMPY\*(C'\fR, \f(CW\*(C`RAMPZ\*(C'\fR special function
16527 register, respectively, to get a wide address. Similarly,
16528 \&\f(CW\*(C`RAMPD\*(C'\fR is used together with direct addressing.
16529 .IP "*" 4
16530 The startup code initializes the \f(CW\*(C`RAMP\*(C'\fR special function
16531 registers with zero.
16532 .IP "*" 4
16533 If a \fB\s-1AVR\s0 Named Address Spaces,named address space\fR other than
16534 generic or \f(CW\*(C`_\|_flash\*(C'\fR is used, then \f(CW\*(C`RAMPZ\*(C'\fR is set
16535 as needed before the operation.
16536 .IP "*" 4
16537 If the device supports \s-1RAM\s0 larger than 64@tie{}KiB and the compiler
16538 needs to change \f(CW\*(C`RAMPZ\*(C'\fR to accomplish an operation, \f(CW\*(C`RAMPZ\*(C'\fR
16539 is reset to zero after the operation.
16540 .IP "*" 4
16541 If the device comes with a specific \f(CW\*(C`RAMP\*(C'\fR register, the \s-1ISR\s0
16542 prologue/epilogue saves/restores that \s-1SFR\s0 and initializes it with
16543 zero in case the \s-1ISR\s0 code might (implicitly) use it.
16544 .IP "*" 4
16545 \&\s-1RAM\s0 larger than 64@tie{}KiB is not supported by \s-1GCC\s0 for \s-1AVR\s0 targets.
16546 If you use inline assembler to read from locations outside the
16547 16\-bit address range and change one of the \f(CW\*(C`RAMP\*(C'\fR registers,
16548 you must reset it to zero after the access.
16549 .PP
16550 \s-1AVR\s0 Built-in Macros
16551 .IX Subsection "AVR Built-in Macros"
16552 .PP
16553 \&\s-1GCC\s0 defines several built-in macros so that the user code can test
16554 for the presence or absence of features.  Almost any of the following
16555 built-in macros are deduced from device capabilities and thus
16556 triggered by the \fB\-mmcu=\fR command-line option.
16557 .PP
16558 For even more AVR-specific built-in macros see
16559 \&\fB\s-1AVR\s0 Named Address Spaces\fR and \fB\s-1AVR\s0 Built-in Functions\fR.
16560 .ie n .IP """_\|_AVR_ARCH_\|_""" 4
16561 .el .IP "\f(CW_\|_AVR_ARCH_\|_\fR" 4
16562 .IX Item "__AVR_ARCH__"
16563 Build-in macro that resolves to a decimal number that identifies the
16564 architecture and depends on the \fB\-mmcu=\fR\fImcu\fR option.
16565 Possible values are:
16566 .Sp
16567 \&\f(CW2\fR, \f(CW25\fR, \f(CW3\fR, \f(CW31\fR, \f(CW35\fR,
16568 \&\f(CW4\fR, \f(CW5\fR, \f(CW51\fR, \f(CW6\fR
16569 .Sp
16570 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,
16571 \&\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,
16572 .Sp
16573 respectively and
16574 .Sp
16575 \&\f(CW100\fR,
16576 \&\f(CW102\fR, \f(CW103\fR, \f(CW104\fR,
16577 \&\f(CW105\fR, \f(CW106\fR, \f(CW107\fR
16578 .Sp
16579 for \fImcu\fR=\f(CW\*(C`avrtiny\*(C'\fR,
16580 \&\f(CW\*(C`avrxmega2\*(C'\fR, \f(CW\*(C`avrxmega3\*(C'\fR, \f(CW\*(C`avrxmega4\*(C'\fR,
16581 \&\f(CW\*(C`avrxmega5\*(C'\fR, \f(CW\*(C`avrxmega6\*(C'\fR, \f(CW\*(C`avrxmega7\*(C'\fR, respectively.
16582 If \fImcu\fR specifies a device, this built-in macro is set
16583 accordingly. For example, with \fB\-mmcu=atmega8\fR the macro is
16584 defined to \f(CW4\fR.
16585 .ie n .IP """_\|_AVR_\fIDevice\fP_\|_""" 4
16586 .el .IP "\f(CW_\|_AVR_\f(CIDevice\f(CW_\|_\fR" 4
16587 .IX Item "__AVR_Device__"
16588 Setting \fB\-mmcu=\fR\fIdevice\fR defines this built-in macro which reflects
16589 the device's name. For example, \fB\-mmcu=atmega8\fR defines the
16590 built-in macro \f(CW\*(C`_\|_AVR_ATmega8_\|_\*(C'\fR, \fB\-mmcu=attiny261a\fR defines
16591 \&\f(CW\*(C`_\|_AVR_ATtiny261A_\|_\*(C'\fR, etc.
16592 .Sp
16593 The built-in macros' names follow
16594 the scheme \f(CW\*(C`_\|_AVR_\f(CIDevice\f(CW_\|_\*(C'\fR where \fIDevice\fR is
16595 the device name as from the \s-1AVR\s0 user manual. The difference between
16596 \&\fIDevice\fR in the built-in macro and \fIdevice\fR in
16597 \&\fB\-mmcu=\fR\fIdevice\fR is that the latter is always lowercase.
16598 .Sp
16599 If \fIdevice\fR is not a device but only a core architecture like
16600 \&\fBavr51\fR, this macro is not defined.
16601 .ie n .IP """_\|_AVR_DEVICE_NAME_\|_""" 4
16602 .el .IP "\f(CW_\|_AVR_DEVICE_NAME_\|_\fR" 4
16603 .IX Item "__AVR_DEVICE_NAME__"
16604 Setting \fB\-mmcu=\fR\fIdevice\fR defines this built-in macro to
16605 the device's name. For example, with \fB\-mmcu=atmega8\fR the macro
16606 is defined to \f(CW\*(C`atmega8\*(C'\fR.
16607 .Sp
16608 If \fIdevice\fR is not a device but only a core architecture like
16609 \&\fBavr51\fR, this macro is not defined.
16610 .ie n .IP """_\|_AVR_XMEGA_\|_""" 4
16611 .el .IP "\f(CW_\|_AVR_XMEGA_\|_\fR" 4
16612 .IX Item "__AVR_XMEGA__"
16613 The device / architecture belongs to the \s-1XMEGA\s0 family of devices.
16614 .ie n .IP """_\|_AVR_HAVE_ELPM_\|_""" 4
16615 .el .IP "\f(CW_\|_AVR_HAVE_ELPM_\|_\fR" 4
16616 .IX Item "__AVR_HAVE_ELPM__"
16617 The device has the \f(CW\*(C`ELPM\*(C'\fR instruction.
16618 .ie n .IP """_\|_AVR_HAVE_ELPMX_\|_""" 4
16619 .el .IP "\f(CW_\|_AVR_HAVE_ELPMX_\|_\fR" 4
16620 .IX Item "__AVR_HAVE_ELPMX__"
16621 The device has the \f(CW\*(C`ELPM R\f(CIn\f(CW,Z\*(C'\fR and \f(CW\*(C`ELPM
16622 R\f(CIn\f(CW,Z+\*(C'\fR instructions.
16623 .ie n .IP """_\|_AVR_HAVE_MOVW_\|_""" 4
16624 .el .IP "\f(CW_\|_AVR_HAVE_MOVW_\|_\fR" 4
16625 .IX Item "__AVR_HAVE_MOVW__"
16626 The device has the \f(CW\*(C`MOVW\*(C'\fR instruction to perform 16\-bit
16627 register-register moves.
16628 .ie n .IP """_\|_AVR_HAVE_LPMX_\|_""" 4
16629 .el .IP "\f(CW_\|_AVR_HAVE_LPMX_\|_\fR" 4
16630 .IX Item "__AVR_HAVE_LPMX__"
16631 The device has the \f(CW\*(C`LPM R\f(CIn\f(CW,Z\*(C'\fR and
16632 \&\f(CW\*(C`LPM R\f(CIn\f(CW,Z+\*(C'\fR instructions.
16633 .ie n .IP """_\|_AVR_HAVE_MUL_\|_""" 4
16634 .el .IP "\f(CW_\|_AVR_HAVE_MUL_\|_\fR" 4
16635 .IX Item "__AVR_HAVE_MUL__"
16636 The device has a hardware multiplier.
16637 .ie n .IP """_\|_AVR_HAVE_JMP_CALL_\|_""" 4
16638 .el .IP "\f(CW_\|_AVR_HAVE_JMP_CALL_\|_\fR" 4
16639 .IX Item "__AVR_HAVE_JMP_CALL__"
16640 The device has the \f(CW\*(C`JMP\*(C'\fR and \f(CW\*(C`CALL\*(C'\fR instructions.
16641 This is the case for devices with more than 8@tie{}KiB of program
16642 memory.
16643 .ie n .IP """_\|_AVR_HAVE_EIJMP_EICALL_\|_""" 4
16644 .el .IP "\f(CW_\|_AVR_HAVE_EIJMP_EICALL_\|_\fR" 4
16645 .IX Item "__AVR_HAVE_EIJMP_EICALL__"
16646 .PD 0
16647 .ie n .IP """_\|_AVR_3_BYTE_PC_\|_""" 4
16648 .el .IP "\f(CW_\|_AVR_3_BYTE_PC_\|_\fR" 4
16649 .IX Item "__AVR_3_BYTE_PC__"
16650 .PD
16651 The device has the \f(CW\*(C`EIJMP\*(C'\fR and \f(CW\*(C`EICALL\*(C'\fR instructions.
16652 This is the case for devices with more than 128@tie{}KiB of program memory.
16653 This also means that the program counter
16654 (\s-1PC\s0) is 3@tie{}bytes wide.
16655 .ie n .IP """_\|_AVR_2_BYTE_PC_\|_""" 4
16656 .el .IP "\f(CW_\|_AVR_2_BYTE_PC_\|_\fR" 4
16657 .IX Item "__AVR_2_BYTE_PC__"
16658 The program counter (\s-1PC\s0) is 2@tie{}bytes wide. This is the case for devices
16659 with up to 128@tie{}KiB of program memory.
16660 .ie n .IP """_\|_AVR_HAVE_8BIT_SP_\|_""" 4
16661 .el .IP "\f(CW_\|_AVR_HAVE_8BIT_SP_\|_\fR" 4
16662 .IX Item "__AVR_HAVE_8BIT_SP__"
16663 .PD 0
16664 .ie n .IP """_\|_AVR_HAVE_16BIT_SP_\|_""" 4
16665 .el .IP "\f(CW_\|_AVR_HAVE_16BIT_SP_\|_\fR" 4
16666 .IX Item "__AVR_HAVE_16BIT_SP__"
16667 .PD
16668 The stack pointer (\s-1SP\s0) register is treated as 8\-bit respectively
16669 16\-bit register by the compiler.
16670 The definition of these macros is affected by \fB\-mtiny\-stack\fR.
16671 .ie n .IP """_\|_AVR_HAVE_SPH_\|_""" 4
16672 .el .IP "\f(CW_\|_AVR_HAVE_SPH_\|_\fR" 4
16673 .IX Item "__AVR_HAVE_SPH__"
16674 .PD 0
16675 .ie n .IP """_\|_AVR_SP8_\|_""" 4
16676 .el .IP "\f(CW_\|_AVR_SP8_\|_\fR" 4
16677 .IX Item "__AVR_SP8__"
16678 .PD
16679 The device has the \s-1SPH\s0 (high part of stack pointer) special function
16680 register or has an 8\-bit stack pointer, respectively.
16681 The definition of these macros is affected by \fB\-mmcu=\fR and
16682 in the cases of \fB\-mmcu=avr2\fR and \fB\-mmcu=avr25\fR also
16683 by \fB\-msp8\fR.
16684 .ie n .IP """_\|_AVR_HAVE_RAMPD_\|_""" 4
16685 .el .IP "\f(CW_\|_AVR_HAVE_RAMPD_\|_\fR" 4
16686 .IX Item "__AVR_HAVE_RAMPD__"
16687 .PD 0
16688 .ie n .IP """_\|_AVR_HAVE_RAMPX_\|_""" 4
16689 .el .IP "\f(CW_\|_AVR_HAVE_RAMPX_\|_\fR" 4
16690 .IX Item "__AVR_HAVE_RAMPX__"
16691 .ie n .IP """_\|_AVR_HAVE_RAMPY_\|_""" 4
16692 .el .IP "\f(CW_\|_AVR_HAVE_RAMPY_\|_\fR" 4
16693 .IX Item "__AVR_HAVE_RAMPY__"
16694 .ie n .IP """_\|_AVR_HAVE_RAMPZ_\|_""" 4
16695 .el .IP "\f(CW_\|_AVR_HAVE_RAMPZ_\|_\fR" 4
16696 .IX Item "__AVR_HAVE_RAMPZ__"
16697 .PD
16698 The device has the \f(CW\*(C`RAMPD\*(C'\fR, \f(CW\*(C`RAMPX\*(C'\fR, \f(CW\*(C`RAMPY\*(C'\fR,
16699 \&\f(CW\*(C`RAMPZ\*(C'\fR special function register, respectively.
16700 .ie n .IP """_\|_NO_INTERRUPTS_\|_""" 4
16701 .el .IP "\f(CW_\|_NO_INTERRUPTS_\|_\fR" 4
16702 .IX Item "__NO_INTERRUPTS__"
16703 This macro reflects the \fB\-mno\-interrupts\fR command-line option.
16704 .ie n .IP """_\|_AVR_ERRATA_SKIP_\|_""" 4
16705 .el .IP "\f(CW_\|_AVR_ERRATA_SKIP_\|_\fR" 4
16706 .IX Item "__AVR_ERRATA_SKIP__"
16707 .PD 0
16708 .ie n .IP """_\|_AVR_ERRATA_SKIP_JMP_CALL_\|_""" 4
16709 .el .IP "\f(CW_\|_AVR_ERRATA_SKIP_JMP_CALL_\|_\fR" 4
16710 .IX Item "__AVR_ERRATA_SKIP_JMP_CALL__"
16711 .PD
16712 Some \s-1AVR\s0 devices (\s-1AT90S8515,\s0 ATmega103) must not skip 32\-bit
16713 instructions because of a hardware erratum.  Skip instructions are
16714 \&\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.
16715 The second macro is only defined if \f(CW\*(C`_\|_AVR_HAVE_JMP_CALL_\|_\*(C'\fR is also
16716 set.
16717 .ie n .IP """_\|_AVR_ISA_RMW_\|_""" 4
16718 .el .IP "\f(CW_\|_AVR_ISA_RMW_\|_\fR" 4
16719 .IX Item "__AVR_ISA_RMW__"
16720 The device has Read-Modify-Write instructions (\s-1XCH, LAC, LAS\s0 and \s-1LAT\s0).
16721 .ie n .IP """_\|_AVR_SFR_OFFSET_\|_=\fIoffset\fP""" 4
16722 .el .IP "\f(CW_\|_AVR_SFR_OFFSET_\|_=\f(CIoffset\f(CW\fR" 4
16723 .IX Item "__AVR_SFR_OFFSET__=offset"
16724 Instructions that can address I/O special function registers directly
16725 like \f(CW\*(C`IN\*(C'\fR, \f(CW\*(C`OUT\*(C'\fR, \f(CW\*(C`SBI\*(C'\fR, etc. may use a different
16726 address as if addressed by an instruction to access \s-1RAM\s0 like \f(CW\*(C`LD\*(C'\fR
16727 or \f(CW\*(C`STS\*(C'\fR. This offset depends on the device architecture and has
16728 to be subtracted from the \s-1RAM\s0 address in order to get the
16729 respective I/O@tie{}address.
16730 .ie n .IP """_\|_AVR_SHORT_CALLS_\|_""" 4
16731 .el .IP "\f(CW_\|_AVR_SHORT_CALLS_\|_\fR" 4
16732 .IX Item "__AVR_SHORT_CALLS__"
16733 The \fB\-mshort\-calls\fR command line option is set.
16734 .ie n .IP """_\|_AVR_PM_BASE_ADDRESS_\|_=\fIaddr\fP""" 4
16735 .el .IP "\f(CW_\|_AVR_PM_BASE_ADDRESS_\|_=\f(CIaddr\f(CW\fR" 4
16736 .IX Item "__AVR_PM_BASE_ADDRESS__=addr"
16737 Some devices support reading from flash memory by means of \f(CW\*(C`LD*\*(C'\fR
16738 instructions.  The flash memory is seen in the data address space
16739 at an offset of \f(CW\*(C`_\|_AVR_PM_BASE_ADDRESS_\|_\*(C'\fR.  If this macro
16740 is not defined, this feature is not available.  If defined,
16741 the address space is linear and there is no need to put
16742 \&\f(CW\*(C`.rodata\*(C'\fR into \s-1RAM.\s0  This is handled by the default linker
16743 description file, and is currently available for
16744 \&\f(CW\*(C`avrtiny\*(C'\fR and \f(CW\*(C`avrxmega3\*(C'\fR.  Even more convenient,
16745 there is no need to use address spaces like \f(CW\*(C`_\|_flash\*(C'\fR or
16746 features like attribute \f(CW\*(C`progmem\*(C'\fR and \f(CW\*(C`pgm_read_*\*(C'\fR.
16747 .ie n .IP """_\|_WITH_AVRLIBC_\|_""" 4
16748 .el .IP "\f(CW_\|_WITH_AVRLIBC_\|_\fR" 4
16749 .IX Item "__WITH_AVRLIBC__"
16750 The compiler is configured to be used together with AVR-Libc.
16751 See the \fB\-\-with\-avrlibc\fR configure option.
16752 .PP
16753 \fIBlackfin Options\fR
16754 .IX Subsection "Blackfin Options"
16755 .IP "\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR]" 4
16756 .IX Item "-mcpu=cpu[-sirevision]"
16757 Specifies the name of the target Blackfin processor.  Currently, \fIcpu\fR
16758 can be one of \fBbf512\fR, \fBbf514\fR, \fBbf516\fR, \fBbf518\fR,
16759 \&\fBbf522\fR, \fBbf523\fR, \fBbf524\fR, \fBbf525\fR, \fBbf526\fR,
16760 \&\fBbf527\fR, \fBbf531\fR, \fBbf532\fR, \fBbf533\fR,
16761 \&\fBbf534\fR, \fBbf536\fR, \fBbf537\fR, \fBbf538\fR, \fBbf539\fR,
16762 \&\fBbf542\fR, \fBbf544\fR, \fBbf547\fR, \fBbf548\fR, \fBbf549\fR,
16763 \&\fBbf542m\fR, \fBbf544m\fR, \fBbf547m\fR, \fBbf548m\fR, \fBbf549m\fR,
16764 \&\fBbf561\fR, \fBbf592\fR.
16765 .Sp
16766 The optional \fIsirevision\fR specifies the silicon revision of the target
16767 Blackfin processor.  Any workarounds available for the targeted silicon revision
16768 are enabled.  If \fIsirevision\fR is \fBnone\fR, no workarounds are enabled.
16769 If \fIsirevision\fR is \fBany\fR, all workarounds for the targeted processor
16770 are enabled.  The \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR macro is defined to two
16771 hexadecimal digits representing the major and minor numbers in the silicon
16772 revision.  If \fIsirevision\fR is \fBnone\fR, the \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR
16773 is not defined.  If \fIsirevision\fR is \fBany\fR, the
16774 \&\f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR is defined to be \f(CW0xffff\fR.
16775 If this optional \fIsirevision\fR is not used, \s-1GCC\s0 assumes the latest known
16776 silicon revision of the targeted Blackfin processor.
16777 .Sp
16778 \&\s-1GCC\s0 defines a preprocessor macro for the specified \fIcpu\fR.
16779 For the \fBbfin-elf\fR toolchain, this option causes the hardware \s-1BSP\s0
16780 provided by libgloss to be linked in if \fB\-msim\fR is not given.
16781 .Sp
16782 Without this option, \fBbf532\fR is used as the processor by default.
16783 .Sp
16784 Note that support for \fBbf561\fR is incomplete.  For \fBbf561\fR,
16785 only the preprocessor macro is defined.
16786 .IP "\fB\-msim\fR" 4
16787 .IX Item "-msim"
16788 Specifies that the program will be run on the simulator.  This causes
16789 the simulator \s-1BSP\s0 provided by libgloss to be linked in.  This option
16790 has effect only for \fBbfin-elf\fR toolchain.
16791 Certain other options, such as \fB\-mid\-shared\-library\fR and
16792 \&\fB\-mfdpic\fR, imply \fB\-msim\fR.
16793 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
16794 .IX Item "-momit-leaf-frame-pointer"
16795 Don't keep the frame pointer in a register for leaf functions.  This
16796 avoids the instructions to save, set up and restore frame pointers and
16797 makes an extra register available in leaf functions.
16798 .IP "\fB\-mspecld\-anomaly\fR" 4
16799 .IX Item "-mspecld-anomaly"
16800 When enabled, the compiler ensures that the generated code does not
16801 contain speculative loads after jump instructions. If this option is used,
16802 \&\f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_LOADS\*(C'\fR is defined.
16803 .IP "\fB\-mno\-specld\-anomaly\fR" 4
16804 .IX Item "-mno-specld-anomaly"
16805 Don't generate extra code to prevent speculative loads from occurring.
16806 .IP "\fB\-mcsync\-anomaly\fR" 4
16807 .IX Item "-mcsync-anomaly"
16808 When enabled, the compiler ensures that the generated code does not
16809 contain \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions too soon after conditional branches.
16810 If this option is used, \f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_SYNCS\*(C'\fR is defined.
16811 .IP "\fB\-mno\-csync\-anomaly\fR" 4
16812 .IX Item "-mno-csync-anomaly"
16813 Don't generate extra code to prevent \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions from
16814 occurring too soon after a conditional branch.
16815 .IP "\fB\-mlow\-64k\fR" 4
16816 .IX Item "-mlow-64k"
16817 When enabled, the compiler is free to take advantage of the knowledge that
16818 the entire program fits into the low 64k of memory.
16819 .IP "\fB\-mno\-low\-64k\fR" 4
16820 .IX Item "-mno-low-64k"
16821 Assume that the program is arbitrarily large.  This is the default.
16822 .IP "\fB\-mstack\-check\-l1\fR" 4
16823 .IX Item "-mstack-check-l1"
16824 Do stack checking using information placed into L1 scratchpad memory by the
16825 uClinux kernel.
16826 .IP "\fB\-mid\-shared\-library\fR" 4
16827 .IX Item "-mid-shared-library"
16828 Generate code that supports shared libraries via the library \s-1ID\s0 method.
16829 This allows for execute in place and shared libraries in an environment
16830 without virtual memory management.  This option implies \fB\-fPIC\fR.
16831 With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
16832 .IP "\fB\-mno\-id\-shared\-library\fR" 4
16833 .IX Item "-mno-id-shared-library"
16834 Generate code that doesn't assume ID-based shared libraries are being used.
16835 This is the default.
16836 .IP "\fB\-mleaf\-id\-shared\-library\fR" 4
16837 .IX Item "-mleaf-id-shared-library"
16838 Generate code that supports shared libraries via the library \s-1ID\s0 method,
16839 but assumes that this library or executable won't link against any other
16840 \&\s-1ID\s0 shared libraries.  That allows the compiler to use faster code for jumps
16841 and calls.
16842 .IP "\fB\-mno\-leaf\-id\-shared\-library\fR" 4
16843 .IX Item "-mno-leaf-id-shared-library"
16844 Do not assume that the code being compiled won't link against any \s-1ID\s0 shared
16845 libraries.  Slower code is generated for jump and call insns.
16846 .IP "\fB\-mshared\-library\-id=n\fR" 4
16847 .IX Item "-mshared-library-id=n"
16848 Specifies the identification number of the ID-based shared library being
16849 compiled.  Specifying a value of 0 generates more compact code; specifying
16850 other values forces the allocation of that number to the current
16851 library but is no more space\- or time-efficient than omitting this option.
16852 .IP "\fB\-msep\-data\fR" 4
16853 .IX Item "-msep-data"
16854 Generate code that allows the data segment to be located in a different
16855 area of memory from the text segment.  This allows for execute in place in
16856 an environment without virtual memory management by eliminating relocations
16857 against the text section.
16858 .IP "\fB\-mno\-sep\-data\fR" 4
16859 .IX Item "-mno-sep-data"
16860 Generate code that assumes that the data segment follows the text segment.
16861 This is the default.
16862 .IP "\fB\-mlong\-calls\fR" 4
16863 .IX Item "-mlong-calls"
16864 .PD 0
16865 .IP "\fB\-mno\-long\-calls\fR" 4
16866 .IX Item "-mno-long-calls"
16867 .PD
16868 Tells the compiler to perform function calls by first loading the
16869 address of the function into a register and then performing a subroutine
16870 call on this register.  This switch is needed if the target function
16871 lies outside of the 24\-bit addressing range of the offset-based
16872 version of subroutine call instruction.
16873 .Sp
16874 This feature is not enabled by default.  Specifying
16875 \&\fB\-mno\-long\-calls\fR restores the default behavior.  Note these
16876 switches have no effect on how the compiler generates code to handle
16877 function calls via function pointers.
16878 .IP "\fB\-mfast\-fp\fR" 4
16879 .IX Item "-mfast-fp"
16880 Link with the fast floating-point library. This library relaxes some of
16881 the \s-1IEEE\s0 floating-point standard's rules for checking inputs against
16882 Not-a-Number (\s-1NAN\s0), in the interest of performance.
16883 .IP "\fB\-minline\-plt\fR" 4
16884 .IX Item "-minline-plt"
16885 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
16886 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
16887 .IP "\fB\-mmulticore\fR" 4
16888 .IX Item "-mmulticore"
16889 Build a standalone application for multicore Blackfin processors. 
16890 This option causes proper start files and link scripts supporting 
16891 multicore to be used, and defines the macro \f(CW\*(C`_\|_BFIN_MULTICORE\*(C'\fR. 
16892 It can only be used with \fB\-mcpu=bf561\fR[\fB\-\fR\fIsirevision\fR].
16893 .Sp
16894 This option can be used with \fB\-mcorea\fR or \fB\-mcoreb\fR, which
16895 selects the one-application-per-core programming model.  Without
16896 \&\fB\-mcorea\fR or \fB\-mcoreb\fR, the single\-application/dual\-core
16897 programming model is used. In this model, the main function of Core B
16898 should be named as \f(CW\*(C`coreb_main\*(C'\fR.
16899 .Sp
16900 If this option is not used, the single-core application programming
16901 model is used.
16902 .IP "\fB\-mcorea\fR" 4
16903 .IX Item "-mcorea"
16904 Build a standalone application for Core A of \s-1BF561\s0 when using
16905 the one-application-per-core programming model. Proper start files
16906 and link scripts are used to support Core A, and the macro
16907 \&\f(CW\*(C`_\|_BFIN_COREA\*(C'\fR is defined.
16908 This option can only be used in conjunction with \fB\-mmulticore\fR.
16909 .IP "\fB\-mcoreb\fR" 4
16910 .IX Item "-mcoreb"
16911 Build a standalone application for Core B of \s-1BF561\s0 when using
16912 the one-application-per-core programming model. Proper start files
16913 and link scripts are used to support Core B, and the macro
16914 \&\f(CW\*(C`_\|_BFIN_COREB\*(C'\fR is defined. When this option is used, \f(CW\*(C`coreb_main\*(C'\fR
16915 should be used instead of \f(CW\*(C`main\*(C'\fR. 
16916 This option can only be used in conjunction with \fB\-mmulticore\fR.
16917 .IP "\fB\-msdram\fR" 4
16918 .IX Item "-msdram"
16919 Build a standalone application for \s-1SDRAM.\s0 Proper start files and
16920 link scripts are used to put the application into \s-1SDRAM,\s0 and the macro
16921 \&\f(CW\*(C`_\|_BFIN_SDRAM\*(C'\fR is defined.
16922 The loader should initialize \s-1SDRAM\s0 before loading the application.
16923 .IP "\fB\-micplb\fR" 4
16924 .IX Item "-micplb"
16925 Assume that ICPLBs are enabled at run time.  This has an effect on certain
16926 anomaly workarounds.  For Linux targets, the default is to assume ICPLBs
16927 are enabled; for standalone applications the default is off.
16928 .PP
16929 \fIC6X Options\fR
16930 .IX Subsection "C6X Options"
16931 .IP "\fB\-march=\fR\fIname\fR" 4
16932 .IX Item "-march=name"
16933 This specifies the name of the target architecture.  \s-1GCC\s0 uses this
16934 name to determine what kind of instructions it can emit when generating
16935 assembly code.  Permissible names are: \fBc62x\fR,
16936 \&\fBc64x\fR, \fBc64x+\fR, \fBc67x\fR, \fBc67x+\fR, \fBc674x\fR.
16937 .IP "\fB\-mbig\-endian\fR" 4
16938 .IX Item "-mbig-endian"
16939 Generate code for a big-endian target.
16940 .IP "\fB\-mlittle\-endian\fR" 4
16941 .IX Item "-mlittle-endian"
16942 Generate code for a little-endian target.  This is the default.
16943 .IP "\fB\-msim\fR" 4
16944 .IX Item "-msim"
16945 Choose startup files and linker script suitable for the simulator.
16946 .IP "\fB\-msdata=default\fR" 4
16947 .IX Item "-msdata=default"
16948 Put small global and static data in the \f(CW\*(C`.neardata\*(C'\fR section,
16949 which is pointed to by register \f(CW\*(C`B14\*(C'\fR.  Put small uninitialized
16950 global and static data in the \f(CW\*(C`.bss\*(C'\fR section, which is adjacent
16951 to the \f(CW\*(C`.neardata\*(C'\fR section.  Put small read-only data into the
16952 \&\f(CW\*(C`.rodata\*(C'\fR section.  The corresponding sections used for large
16953 pieces of data are \f(CW\*(C`.fardata\*(C'\fR, \f(CW\*(C`.far\*(C'\fR and \f(CW\*(C`.const\*(C'\fR.
16954 .IP "\fB\-msdata=all\fR" 4
16955 .IX Item "-msdata=all"
16956 Put all data, not just small objects, into the sections reserved for
16957 small data, and use addressing relative to the \f(CW\*(C`B14\*(C'\fR register to
16958 access them.
16959 .IP "\fB\-msdata=none\fR" 4
16960 .IX Item "-msdata=none"
16961 Make no use of the sections reserved for small data, and use absolute
16962 addresses to access all data.  Put all initialized global and static
16963 data in the \f(CW\*(C`.fardata\*(C'\fR section, and all uninitialized data in the
16964 \&\f(CW\*(C`.far\*(C'\fR section.  Put all constant data into the \f(CW\*(C`.const\*(C'\fR
16965 section.
16966 .PP
16967 \fI\s-1CRIS\s0 Options\fR
16968 .IX Subsection "CRIS Options"
16969 .PP
16970 These options are defined specifically for the \s-1CRIS\s0 ports.
16971 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
16972 .IX Item "-march=architecture-type"
16973 .PD 0
16974 .IP "\fB\-mcpu=\fR\fIarchitecture-type\fR" 4
16975 .IX Item "-mcpu=architecture-type"
16976 .PD
16977 Generate code for the specified architecture.  The choices for
16978 \&\fIarchitecture-type\fR are \fBv3\fR, \fBv8\fR and \fBv10\fR for
16979 respectively \s-1ETRAX\s0\ 4, \s-1ETRAX\s0\ 100, and \s-1ETRAX\s0\ 100\ \s-1LX.\s0
16980 Default is \fBv0\fR except for cris-axis-linux-gnu, where the default is
16981 \&\fBv10\fR.
16982 .IP "\fB\-mtune=\fR\fIarchitecture-type\fR" 4
16983 .IX Item "-mtune=architecture-type"
16984 Tune to \fIarchitecture-type\fR everything applicable about the generated
16985 code, except for the \s-1ABI\s0 and the set of available instructions.  The
16986 choices for \fIarchitecture-type\fR are the same as for
16987 \&\fB\-march=\fR\fIarchitecture-type\fR.
16988 .IP "\fB\-mmax\-stack\-frame=\fR\fIn\fR" 4
16989 .IX Item "-mmax-stack-frame=n"
16990 Warn when the stack frame of a function exceeds \fIn\fR bytes.
16991 .IP "\fB\-metrax4\fR" 4
16992 .IX Item "-metrax4"
16993 .PD 0
16994 .IP "\fB\-metrax100\fR" 4
16995 .IX Item "-metrax100"
16996 .PD
16997 The options \fB\-metrax4\fR and \fB\-metrax100\fR are synonyms for
16998 \&\fB\-march=v3\fR and \fB\-march=v8\fR respectively.
16999 .IP "\fB\-mmul\-bug\-workaround\fR" 4
17000 .IX Item "-mmul-bug-workaround"
17001 .PD 0
17002 .IP "\fB\-mno\-mul\-bug\-workaround\fR" 4
17003 .IX Item "-mno-mul-bug-workaround"
17004 .PD
17005 Work around a bug in the \f(CW\*(C`muls\*(C'\fR and \f(CW\*(C`mulu\*(C'\fR instructions for \s-1CPU\s0
17006 models where it applies.  This option is active by default.
17007 .IP "\fB\-mpdebug\fR" 4
17008 .IX Item "-mpdebug"
17009 Enable CRIS-specific verbose debug-related information in the assembly
17010 code.  This option also has the effect of turning off the \fB#NO_APP\fR
17011 formatted-code indicator to the assembler at the beginning of the
17012 assembly file.
17013 .IP "\fB\-mcc\-init\fR" 4
17014 .IX Item "-mcc-init"
17015 Do not use condition-code results from previous instruction; always emit
17016 compare and test instructions before use of condition codes.
17017 .IP "\fB\-mno\-side\-effects\fR" 4
17018 .IX Item "-mno-side-effects"
17019 Do not emit instructions with side effects in addressing modes other than
17020 post-increment.
17021 .IP "\fB\-mstack\-align\fR" 4
17022 .IX Item "-mstack-align"
17023 .PD 0
17024 .IP "\fB\-mno\-stack\-align\fR" 4
17025 .IX Item "-mno-stack-align"
17026 .IP "\fB\-mdata\-align\fR" 4
17027 .IX Item "-mdata-align"
17028 .IP "\fB\-mno\-data\-align\fR" 4
17029 .IX Item "-mno-data-align"
17030 .IP "\fB\-mconst\-align\fR" 4
17031 .IX Item "-mconst-align"
17032 .IP "\fB\-mno\-const\-align\fR" 4
17033 .IX Item "-mno-const-align"
17034 .PD
17035 These options (\fBno\-\fR options) arrange (eliminate arrangements) for the
17036 stack frame, individual data and constants to be aligned for the maximum
17037 single data access size for the chosen \s-1CPU\s0 model.  The default is to
17038 arrange for 32\-bit alignment.  \s-1ABI\s0 details such as structure layout are
17039 not affected by these options.
17040 .IP "\fB\-m32\-bit\fR" 4
17041 .IX Item "-m32-bit"
17042 .PD 0
17043 .IP "\fB\-m16\-bit\fR" 4
17044 .IX Item "-m16-bit"
17045 .IP "\fB\-m8\-bit\fR" 4
17046 .IX Item "-m8-bit"
17047 .PD
17048 Similar to the stack\- data\- and const-align options above, these options
17049 arrange for stack frame, writable data and constants to all be 32\-bit,
17050 16\-bit or 8\-bit aligned.  The default is 32\-bit alignment.
17051 .IP "\fB\-mno\-prologue\-epilogue\fR" 4
17052 .IX Item "-mno-prologue-epilogue"
17053 .PD 0
17054 .IP "\fB\-mprologue\-epilogue\fR" 4
17055 .IX Item "-mprologue-epilogue"
17056 .PD
17057 With \fB\-mno\-prologue\-epilogue\fR, the normal function prologue and
17058 epilogue which set up the stack frame are omitted and no return
17059 instructions or return sequences are generated in the code.  Use this
17060 option only together with visual inspection of the compiled code: no
17061 warnings or errors are generated when call-saved registers must be saved,
17062 or storage for local variables needs to be allocated.
17063 .IP "\fB\-mno\-gotplt\fR" 4
17064 .IX Item "-mno-gotplt"
17065 .PD 0
17066 .IP "\fB\-mgotplt\fR" 4
17067 .IX Item "-mgotplt"
17068 .PD
17069 With \fB\-fpic\fR and \fB\-fPIC\fR, don't generate (do generate)
17070 instruction sequences that load addresses for functions from the \s-1PLT\s0 part
17071 of the \s-1GOT\s0 rather than (traditional on other architectures) calls to the
17072 \&\s-1PLT.\s0  The default is \fB\-mgotplt\fR.
17073 .IP "\fB\-melf\fR" 4
17074 .IX Item "-melf"
17075 Legacy no-op option only recognized with the cris-axis-elf and
17076 cris-axis-linux-gnu targets.
17077 .IP "\fB\-mlinux\fR" 4
17078 .IX Item "-mlinux"
17079 Legacy no-op option only recognized with the cris-axis-linux-gnu target.
17080 .IP "\fB\-sim\fR" 4
17081 .IX Item "-sim"
17082 This option, recognized for the cris-axis-elf, arranges
17083 to link with input-output functions from a simulator library.  Code,
17084 initialized data and zero-initialized data are allocated consecutively.
17085 .IP "\fB\-sim2\fR" 4
17086 .IX Item "-sim2"
17087 Like \fB\-sim\fR, but pass linker options to locate initialized data at
17088 0x40000000 and zero-initialized data at 0x80000000.
17089 .PP
17090 \fI\s-1CR16\s0 Options\fR
17091 .IX Subsection "CR16 Options"
17092 .PP
17093 These options are defined specifically for the \s-1CR16\s0 ports.
17094 .IP "\fB\-mmac\fR" 4
17095 .IX Item "-mmac"
17096 Enable the use of multiply-accumulate instructions. Disabled by default.
17097 .IP "\fB\-mcr16cplus\fR" 4
17098 .IX Item "-mcr16cplus"
17099 .PD 0
17100 .IP "\fB\-mcr16c\fR" 4
17101 .IX Item "-mcr16c"
17102 .PD
17103 Generate code for \s-1CR16C\s0 or \s-1CR16C+\s0 architecture. \s-1CR16C+\s0 architecture 
17104 is default.
17105 .IP "\fB\-msim\fR" 4
17106 .IX Item "-msim"
17107 Links the library libsim.a which is in compatible with simulator. Applicable
17108 to \s-1ELF\s0 compiler only.
17109 .IP "\fB\-mint32\fR" 4
17110 .IX Item "-mint32"
17111 Choose integer type as 32\-bit wide.
17112 .IP "\fB\-mbit\-ops\fR" 4
17113 .IX Item "-mbit-ops"
17114 Generates \f(CW\*(C`sbit\*(C'\fR/\f(CW\*(C`cbit\*(C'\fR instructions for bit manipulations.
17115 .IP "\fB\-mdata\-model=\fR\fImodel\fR" 4
17116 .IX Item "-mdata-model=model"
17117 Choose a data model. The choices for \fImodel\fR are \fBnear\fR,
17118 \&\fBfar\fR or \fBmedium\fR. \fBmedium\fR is default.
17119 However, \fBfar\fR is not valid with \fB\-mcr16c\fR, as the
17120 \&\s-1CR16C\s0 architecture does not support the far data model.
17121 .PP
17122 \fIDarwin Options\fR
17123 .IX Subsection "Darwin Options"
17124 .PP
17125 These options are defined for all architectures running the Darwin operating
17126 system.
17127 .PP
17128 \&\s-1FSF GCC\s0 on Darwin does not create \*(L"fat\*(R" object files; it creates
17129 an object file for the single architecture that \s-1GCC\s0 was built to
17130 target.  Apple's \s-1GCC\s0 on Darwin does create \*(L"fat\*(R" files if multiple
17131 \&\fB\-arch\fR options are used; it does so by running the compiler or
17132 linker multiple times and joining the results together with
17133 \&\fIlipo\fR.
17134 .PP
17135 The subtype of the file created (like \fBppc7400\fR or \fBppc970\fR or
17136 \&\fBi686\fR) is determined by the flags that specify the \s-1ISA\s0
17137 that \s-1GCC\s0 is targeting, like \fB\-mcpu\fR or \fB\-march\fR.  The
17138 \&\fB\-force_cpusubtype_ALL\fR option can be used to override this.
17139 .PP
17140 The Darwin tools vary in their behavior when presented with an \s-1ISA\s0
17141 mismatch.  The assembler, \fIas\fR, only permits instructions to
17142 be used that are valid for the subtype of the file it is generating,
17143 so you cannot put 64\-bit instructions in a \fBppc750\fR object file.
17144 The linker for shared libraries, \fI/usr/bin/libtool\fR, fails
17145 and prints an error if asked to create a shared library with a less
17146 restrictive subtype than its input files (for instance, trying to put
17147 a \fBppc970\fR object file in a \fBppc7400\fR library).  The linker
17148 for executables, \fBld\fR, quietly gives the executable the most
17149 restrictive subtype of any of its input files.
17150 .IP "\fB\-F\fR\fIdir\fR" 4
17151 .IX Item "-Fdir"
17152 Add the framework directory \fIdir\fR to the head of the list of
17153 directories to be searched for header files.  These directories are
17154 interleaved with those specified by \fB\-I\fR options and are
17155 scanned in a left-to-right order.
17156 .Sp
17157 A framework directory is a directory with frameworks in it.  A
17158 framework is a directory with a \fIHeaders\fR and/or
17159 \&\fIPrivateHeaders\fR directory contained directly in it that ends
17160 in \fI.framework\fR.  The name of a framework is the name of this
17161 directory excluding the \fI.framework\fR.  Headers associated with
17162 the framework are found in one of those two directories, with
17163 \&\fIHeaders\fR being searched first.  A subframework is a framework
17164 directory that is in a framework's \fIFrameworks\fR directory.
17165 Includes of subframework headers can only appear in a header of a
17166 framework that contains the subframework, or in a sibling subframework
17167 header.  Two subframeworks are siblings if they occur in the same
17168 framework.  A subframework should not have the same name as a
17169 framework; a warning is issued if this is violated.  Currently a
17170 subframework cannot have subframeworks; in the future, the mechanism
17171 may be extended to support this.  The standard frameworks can be found
17172 in \fI/System/Library/Frameworks\fR and
17173 \&\fI/Library/Frameworks\fR.  An example include looks like
17174 \&\f(CW\*(C`#include <Framework/header.h>\*(C'\fR, where \fIFramework\fR denotes
17175 the name of the framework and \fIheader.h\fR is found in the
17176 \&\fIPrivateHeaders\fR or \fIHeaders\fR directory.
17177 .IP "\fB\-iframework\fR\fIdir\fR" 4
17178 .IX Item "-iframeworkdir"
17179 Like \fB\-F\fR except the directory is a treated as a system
17180 directory.  The main difference between this \fB\-iframework\fR and
17181 \&\fB\-F\fR is that with \fB\-iframework\fR the compiler does not
17182 warn about constructs contained within header files found via
17183 \&\fIdir\fR.  This option is valid only for the C family of languages.
17184 .IP "\fB\-gused\fR" 4
17185 .IX Item "-gused"
17186 Emit debugging information for symbols that are used.  For stabs
17187 debugging format, this enables \fB\-feliminate\-unused\-debug\-symbols\fR.
17188 This is by default \s-1ON.\s0
17189 .IP "\fB\-gfull\fR" 4
17190 .IX Item "-gfull"
17191 Emit debugging information for all symbols and types.
17192 .IP "\fB\-mmacosx\-version\-min=\fR\fIversion\fR" 4
17193 .IX Item "-mmacosx-version-min=version"
17194 The earliest version of MacOS X that this executable will run on
17195 is \fIversion\fR.  Typical values of \fIversion\fR include \f(CW10.1\fR,
17196 \&\f(CW10.2\fR, and \f(CW10.3.9\fR.
17197 .Sp
17198 If the compiler was built to use the system's headers by default,
17199 then the default for this option is the system version on which the
17200 compiler is running, otherwise the default is to make choices that
17201 are compatible with as many systems and code bases as possible.
17202 .IP "\fB\-mkernel\fR" 4
17203 .IX Item "-mkernel"
17204 Enable kernel development mode.  The \fB\-mkernel\fR option sets
17205 \&\fB\-static\fR, \fB\-fno\-common\fR, \fB\-fno\-use\-cxa\-atexit\fR,
17206 \&\fB\-fno\-exceptions\fR, \fB\-fno\-non\-call\-exceptions\fR,
17207 \&\fB\-fapple\-kext\fR, \fB\-fno\-weak\fR and \fB\-fno\-rtti\fR where
17208 applicable.  This mode also sets \fB\-mno\-altivec\fR,
17209 \&\fB\-msoft\-float\fR, \fB\-fno\-builtin\fR and
17210 \&\fB\-mlong\-branch\fR for PowerPC targets.
17211 .IP "\fB\-mone\-byte\-bool\fR" 4
17212 .IX Item "-mone-byte-bool"
17213 Override the defaults for \f(CW\*(C`bool\*(C'\fR so that \f(CW\*(C`sizeof(bool)==1\*(C'\fR.
17214 By default \f(CW\*(C`sizeof(bool)\*(C'\fR is \f(CW4\fR when compiling for
17215 Darwin/PowerPC and \f(CW1\fR when compiling for Darwin/x86, so this
17216 option has no effect on x86.
17217 .Sp
17218 \&\fBWarning:\fR The \fB\-mone\-byte\-bool\fR switch causes \s-1GCC\s0
17219 to generate code that is not binary compatible with code generated
17220 without that switch.  Using this switch may require recompiling all
17221 other modules in a program, including system libraries.  Use this
17222 switch to conform to a non-default data model.
17223 .IP "\fB\-mfix\-and\-continue\fR" 4
17224 .IX Item "-mfix-and-continue"
17225 .PD 0
17226 .IP "\fB\-ffix\-and\-continue\fR" 4
17227 .IX Item "-ffix-and-continue"
17228 .IP "\fB\-findirect\-data\fR" 4
17229 .IX Item "-findirect-data"
17230 .PD
17231 Generate code suitable for fast turnaround development, such as to
17232 allow \s-1GDB\s0 to dynamically load \fI.o\fR files into already-running
17233 programs.  \fB\-findirect\-data\fR and \fB\-ffix\-and\-continue\fR
17234 are provided for backwards compatibility.
17235 .IP "\fB\-all_load\fR" 4
17236 .IX Item "-all_load"
17237 Loads all members of static archive libraries.
17238 See man \fBld\fR\|(1) for more information.
17239 .IP "\fB\-arch_errors_fatal\fR" 4
17240 .IX Item "-arch_errors_fatal"
17241 Cause the errors having to do with files that have the wrong architecture
17242 to be fatal.
17243 .IP "\fB\-bind_at_load\fR" 4
17244 .IX Item "-bind_at_load"
17245 Causes the output file to be marked such that the dynamic linker will
17246 bind all undefined references when the file is loaded or launched.
17247 .IP "\fB\-bundle\fR" 4
17248 .IX Item "-bundle"
17249 Produce a Mach-o bundle format file.
17250 See man \fBld\fR\|(1) for more information.
17251 .IP "\fB\-bundle_loader\fR \fIexecutable\fR" 4
17252 .IX Item "-bundle_loader executable"
17253 This option specifies the \fIexecutable\fR that will load the build
17254 output file being linked.  See man \fBld\fR\|(1) for more information.
17255 .IP "\fB\-dynamiclib\fR" 4
17256 .IX Item "-dynamiclib"
17257 When passed this option, \s-1GCC\s0 produces a dynamic library instead of
17258 an executable when linking, using the Darwin \fIlibtool\fR command.
17259 .IP "\fB\-force_cpusubtype_ALL\fR" 4
17260 .IX Item "-force_cpusubtype_ALL"
17261 This causes \s-1GCC\s0's output file to have the \fB\s-1ALL\s0\fR subtype, instead of
17262 one controlled by the \fB\-mcpu\fR or \fB\-march\fR option.
17263 .IP "\fB\-allowable_client\fR  \fIclient_name\fR" 4
17264 .IX Item "-allowable_client client_name"
17265 .PD 0
17266 .IP "\fB\-client_name\fR" 4
17267 .IX Item "-client_name"
17268 .IP "\fB\-compatibility_version\fR" 4
17269 .IX Item "-compatibility_version"
17270 .IP "\fB\-current_version\fR" 4
17271 .IX Item "-current_version"
17272 .IP "\fB\-dead_strip\fR" 4
17273 .IX Item "-dead_strip"
17274 .IP "\fB\-dependency\-file\fR" 4
17275 .IX Item "-dependency-file"
17276 .IP "\fB\-dylib_file\fR" 4
17277 .IX Item "-dylib_file"
17278 .IP "\fB\-dylinker_install_name\fR" 4
17279 .IX Item "-dylinker_install_name"
17280 .IP "\fB\-dynamic\fR" 4
17281 .IX Item "-dynamic"
17282 .IP "\fB\-exported_symbols_list\fR" 4
17283 .IX Item "-exported_symbols_list"
17284 .IP "\fB\-filelist\fR" 4
17285 .IX Item "-filelist"
17286 .IP "\fB\-flat_namespace\fR" 4
17287 .IX Item "-flat_namespace"
17288 .IP "\fB\-force_flat_namespace\fR" 4
17289 .IX Item "-force_flat_namespace"
17290 .IP "\fB\-headerpad_max_install_names\fR" 4
17291 .IX Item "-headerpad_max_install_names"
17292 .IP "\fB\-image_base\fR" 4
17293 .IX Item "-image_base"
17294 .IP "\fB\-init\fR" 4
17295 .IX Item "-init"
17296 .IP "\fB\-install_name\fR" 4
17297 .IX Item "-install_name"
17298 .IP "\fB\-keep_private_externs\fR" 4
17299 .IX Item "-keep_private_externs"
17300 .IP "\fB\-multi_module\fR" 4
17301 .IX Item "-multi_module"
17302 .IP "\fB\-multiply_defined\fR" 4
17303 .IX Item "-multiply_defined"
17304 .IP "\fB\-multiply_defined_unused\fR" 4
17305 .IX Item "-multiply_defined_unused"
17306 .IP "\fB\-noall_load\fR" 4
17307 .IX Item "-noall_load"
17308 .IP "\fB\-no_dead_strip_inits_and_terms\fR" 4
17309 .IX Item "-no_dead_strip_inits_and_terms"
17310 .IP "\fB\-nofixprebinding\fR" 4
17311 .IX Item "-nofixprebinding"
17312 .IP "\fB\-nomultidefs\fR" 4
17313 .IX Item "-nomultidefs"
17314 .IP "\fB\-noprebind\fR" 4
17315 .IX Item "-noprebind"
17316 .IP "\fB\-noseglinkedit\fR" 4
17317 .IX Item "-noseglinkedit"
17318 .IP "\fB\-pagezero_size\fR" 4
17319 .IX Item "-pagezero_size"
17320 .IP "\fB\-prebind\fR" 4
17321 .IX Item "-prebind"
17322 .IP "\fB\-prebind_all_twolevel_modules\fR" 4
17323 .IX Item "-prebind_all_twolevel_modules"
17324 .IP "\fB\-private_bundle\fR" 4
17325 .IX Item "-private_bundle"
17326 .IP "\fB\-read_only_relocs\fR" 4
17327 .IX Item "-read_only_relocs"
17328 .IP "\fB\-sectalign\fR" 4
17329 .IX Item "-sectalign"
17330 .IP "\fB\-sectobjectsymbols\fR" 4
17331 .IX Item "-sectobjectsymbols"
17332 .IP "\fB\-whyload\fR" 4
17333 .IX Item "-whyload"
17334 .IP "\fB\-seg1addr\fR" 4
17335 .IX Item "-seg1addr"
17336 .IP "\fB\-sectcreate\fR" 4
17337 .IX Item "-sectcreate"
17338 .IP "\fB\-sectobjectsymbols\fR" 4
17339 .IX Item "-sectobjectsymbols"
17340 .IP "\fB\-sectorder\fR" 4
17341 .IX Item "-sectorder"
17342 .IP "\fB\-segaddr\fR" 4
17343 .IX Item "-segaddr"
17344 .IP "\fB\-segs_read_only_addr\fR" 4
17345 .IX Item "-segs_read_only_addr"
17346 .IP "\fB\-segs_read_write_addr\fR" 4
17347 .IX Item "-segs_read_write_addr"
17348 .IP "\fB\-seg_addr_table\fR" 4
17349 .IX Item "-seg_addr_table"
17350 .IP "\fB\-seg_addr_table_filename\fR" 4
17351 .IX Item "-seg_addr_table_filename"
17352 .IP "\fB\-seglinkedit\fR" 4
17353 .IX Item "-seglinkedit"
17354 .IP "\fB\-segprot\fR" 4
17355 .IX Item "-segprot"
17356 .IP "\fB\-segs_read_only_addr\fR" 4
17357 .IX Item "-segs_read_only_addr"
17358 .IP "\fB\-segs_read_write_addr\fR" 4
17359 .IX Item "-segs_read_write_addr"
17360 .IP "\fB\-single_module\fR" 4
17361 .IX Item "-single_module"
17362 .IP "\fB\-static\fR" 4
17363 .IX Item "-static"
17364 .IP "\fB\-sub_library\fR" 4
17365 .IX Item "-sub_library"
17366 .IP "\fB\-sub_umbrella\fR" 4
17367 .IX Item "-sub_umbrella"
17368 .IP "\fB\-twolevel_namespace\fR" 4
17369 .IX Item "-twolevel_namespace"
17370 .IP "\fB\-umbrella\fR" 4
17371 .IX Item "-umbrella"
17372 .IP "\fB\-undefined\fR" 4
17373 .IX Item "-undefined"
17374 .IP "\fB\-unexported_symbols_list\fR" 4
17375 .IX Item "-unexported_symbols_list"
17376 .IP "\fB\-weak_reference_mismatches\fR" 4
17377 .IX Item "-weak_reference_mismatches"
17378 .IP "\fB\-whatsloaded\fR" 4
17379 .IX Item "-whatsloaded"
17380 .PD
17381 These options are passed to the Darwin linker.  The Darwin linker man page
17382 describes them in detail.
17383 .PP
17384 \fI\s-1DEC\s0 Alpha Options\fR
17385 .IX Subsection "DEC Alpha Options"
17386 .PP
17387 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha implementations:
17388 .IP "\fB\-mno\-soft\-float\fR" 4
17389 .IX Item "-mno-soft-float"
17390 .PD 0
17391 .IP "\fB\-msoft\-float\fR" 4
17392 .IX Item "-msoft-float"
17393 .PD
17394 Use (do not use) the hardware floating-point instructions for
17395 floating-point operations.  When \fB\-msoft\-float\fR is specified,
17396 functions in \fIlibgcc.a\fR are used to perform floating-point
17397 operations.  Unless they are replaced by routines that emulate the
17398 floating-point operations, or compiled in such a way as to call such
17399 emulations routines, these routines issue floating-point
17400 operations.   If you are compiling for an Alpha without floating-point
17401 operations, you must ensure that the library is built so as not to call
17402 them.
17403 .Sp
17404 Note that Alpha implementations without floating-point operations are
17405 required to have floating-point registers.
17406 .IP "\fB\-mfp\-reg\fR" 4
17407 .IX Item "-mfp-reg"
17408 .PD 0
17409 .IP "\fB\-mno\-fp\-regs\fR" 4
17410 .IX Item "-mno-fp-regs"
17411 .PD
17412 Generate code that uses (does not use) the floating-point register set.
17413 \&\fB\-mno\-fp\-regs\fR implies \fB\-msoft\-float\fR.  If the floating-point
17414 register set is not used, floating-point operands are passed in integer
17415 registers as if they were integers and floating-point results are passed
17416 in \f(CW$0\fR instead of \f(CW$f0\fR.  This is a non-standard calling sequence,
17417 so any function with a floating-point argument or return value called by code
17418 compiled with \fB\-mno\-fp\-regs\fR must also be compiled with that
17419 option.
17420 .Sp
17421 A typical use of this option is building a kernel that does not use,
17422 and hence need not save and restore, any floating-point registers.
17423 .IP "\fB\-mieee\fR" 4
17424 .IX Item "-mieee"
17425 The Alpha architecture implements floating-point hardware optimized for
17426 maximum performance.  It is mostly compliant with the \s-1IEEE\s0 floating-point
17427 standard.  However, for full compliance, software assistance is
17428 required.  This option generates code fully IEEE-compliant code
17429 \&\fIexcept\fR that the \fIinexact-flag\fR is not maintained (see below).
17430 If this option is turned on, the preprocessor macro \f(CW\*(C`_IEEE_FP\*(C'\fR is
17431 defined during compilation.  The resulting code is less efficient but is
17432 able to correctly support denormalized numbers and exceptional \s-1IEEE\s0
17433 values such as not-a-number and plus/minus infinity.  Other Alpha
17434 compilers call this option \fB\-ieee_with_no_inexact\fR.
17435 .IP "\fB\-mieee\-with\-inexact\fR" 4
17436 .IX Item "-mieee-with-inexact"
17437 This is like \fB\-mieee\fR except the generated code also maintains
17438 the \s-1IEEE\s0 \fIinexact-flag\fR.  Turning on this option causes the
17439 generated code to implement fully-compliant \s-1IEEE\s0 math.  In addition to
17440 \&\f(CW\*(C`_IEEE_FP\*(C'\fR, \f(CW\*(C`_IEEE_FP_EXACT\*(C'\fR is defined as a preprocessor
17441 macro.  On some Alpha implementations the resulting code may execute
17442 significantly slower than the code generated by default.  Since there is
17443 very little code that depends on the \fIinexact-flag\fR, you should
17444 normally not specify this option.  Other Alpha compilers call this
17445 option \fB\-ieee_with_inexact\fR.
17446 .IP "\fB\-mfp\-trap\-mode=\fR\fItrap-mode\fR" 4
17447 .IX Item "-mfp-trap-mode=trap-mode"
17448 This option controls what floating-point related traps are enabled.
17449 Other Alpha compilers call this option \fB\-fptm\fR \fItrap-mode\fR.
17450 The trap mode can be set to one of four values:
17451 .RS 4
17452 .IP "\fBn\fR" 4
17453 .IX Item "n"
17454 This is the default (normal) setting.  The only traps that are enabled
17455 are the ones that cannot be disabled in software (e.g., division by zero
17456 trap).
17457 .IP "\fBu\fR" 4
17458 .IX Item "u"
17459 In addition to the traps enabled by \fBn\fR, underflow traps are enabled
17460 as well.
17461 .IP "\fBsu\fR" 4
17462 .IX Item "su"
17463 Like \fBu\fR, but the instructions are marked to be safe for software
17464 completion (see Alpha architecture manual for details).
17465 .IP "\fBsui\fR" 4
17466 .IX Item "sui"
17467 Like \fBsu\fR, but inexact traps are enabled as well.
17468 .RE
17469 .RS 4
17470 .RE
17471 .IP "\fB\-mfp\-rounding\-mode=\fR\fIrounding-mode\fR" 4
17472 .IX Item "-mfp-rounding-mode=rounding-mode"
17473 Selects the \s-1IEEE\s0 rounding mode.  Other Alpha compilers call this option
17474 \&\fB\-fprm\fR \fIrounding-mode\fR.  The \fIrounding-mode\fR can be one
17475 of:
17476 .RS 4
17477 .IP "\fBn\fR" 4
17478 .IX Item "n"
17479 Normal \s-1IEEE\s0 rounding mode.  Floating-point numbers are rounded towards
17480 the nearest machine number or towards the even machine number in case
17481 of a tie.
17482 .IP "\fBm\fR" 4
17483 .IX Item "m"
17484 Round towards minus infinity.
17485 .IP "\fBc\fR" 4
17486 .IX Item "c"
17487 Chopped rounding mode.  Floating-point numbers are rounded towards zero.
17488 .IP "\fBd\fR" 4
17489 .IX Item "d"
17490 Dynamic rounding mode.  A field in the floating-point control register
17491 (\fIfpcr\fR, see Alpha architecture reference manual) controls the
17492 rounding mode in effect.  The C library initializes this register for
17493 rounding towards plus infinity.  Thus, unless your program modifies the
17494 \&\fIfpcr\fR, \fBd\fR corresponds to round towards plus infinity.
17495 .RE
17496 .RS 4
17497 .RE
17498 .IP "\fB\-mtrap\-precision=\fR\fItrap-precision\fR" 4
17499 .IX Item "-mtrap-precision=trap-precision"
17500 In the Alpha architecture, floating-point traps are imprecise.  This
17501 means without software assistance it is impossible to recover from a
17502 floating trap and program execution normally needs to be terminated.
17503 \&\s-1GCC\s0 can generate code that can assist operating system trap handlers
17504 in determining the exact location that caused a floating-point trap.
17505 Depending on the requirements of an application, different levels of
17506 precisions can be selected:
17507 .RS 4
17508 .IP "\fBp\fR" 4
17509 .IX Item "p"
17510 Program precision.  This option is the default and means a trap handler
17511 can only identify which program caused a floating-point exception.
17512 .IP "\fBf\fR" 4
17513 .IX Item "f"
17514 Function precision.  The trap handler can determine the function that
17515 caused a floating-point exception.
17516 .IP "\fBi\fR" 4
17517 .IX Item "i"
17518 Instruction precision.  The trap handler can determine the exact
17519 instruction that caused a floating-point exception.
17520 .RE
17521 .RS 4
17522 .Sp
17523 Other Alpha compilers provide the equivalent options called
17524 \&\fB\-scope_safe\fR and \fB\-resumption_safe\fR.
17525 .RE
17526 .IP "\fB\-mieee\-conformant\fR" 4
17527 .IX Item "-mieee-conformant"
17528 This option marks the generated code as \s-1IEEE\s0 conformant.  You must not
17529 use this option unless you also specify \fB\-mtrap\-precision=i\fR and either
17530 \&\fB\-mfp\-trap\-mode=su\fR or \fB\-mfp\-trap\-mode=sui\fR.  Its only effect
17531 is to emit the line \fB.eflag 48\fR in the function prologue of the
17532 generated assembly file.
17533 .IP "\fB\-mbuild\-constants\fR" 4
17534 .IX Item "-mbuild-constants"
17535 Normally \s-1GCC\s0 examines a 32\- or 64\-bit integer constant to
17536 see if it can construct it from smaller constants in two or three
17537 instructions.  If it cannot, it outputs the constant as a literal and
17538 generates code to load it from the data segment at run time.
17539 .Sp
17540 Use this option to require \s-1GCC\s0 to construct \fIall\fR integer constants
17541 using code, even if it takes more instructions (the maximum is six).
17542 .Sp
17543 You typically use this option to build a shared library dynamic
17544 loader.  Itself a shared library, it must relocate itself in memory
17545 before it can find the variables and constants in its own data segment.
17546 .IP "\fB\-mbwx\fR" 4
17547 .IX Item "-mbwx"
17548 .PD 0
17549 .IP "\fB\-mno\-bwx\fR" 4
17550 .IX Item "-mno-bwx"
17551 .IP "\fB\-mcix\fR" 4
17552 .IX Item "-mcix"
17553 .IP "\fB\-mno\-cix\fR" 4
17554 .IX Item "-mno-cix"
17555 .IP "\fB\-mfix\fR" 4
17556 .IX Item "-mfix"
17557 .IP "\fB\-mno\-fix\fR" 4
17558 .IX Item "-mno-fix"
17559 .IP "\fB\-mmax\fR" 4
17560 .IX Item "-mmax"
17561 .IP "\fB\-mno\-max\fR" 4
17562 .IX Item "-mno-max"
17563 .PD
17564 Indicate whether \s-1GCC\s0 should generate code to use the optional \s-1BWX,
17565 CIX, FIX\s0 and \s-1MAX\s0 instruction sets.  The default is to use the instruction
17566 sets supported by the \s-1CPU\s0 type specified via \fB\-mcpu=\fR option or that
17567 of the \s-1CPU\s0 on which \s-1GCC\s0 was built if none is specified.
17568 .IP "\fB\-mfloat\-vax\fR" 4
17569 .IX Item "-mfloat-vax"
17570 .PD 0
17571 .IP "\fB\-mfloat\-ieee\fR" 4
17572 .IX Item "-mfloat-ieee"
17573 .PD
17574 Generate code that uses (does not use) \s-1VAX F\s0 and G floating-point
17575 arithmetic instead of \s-1IEEE\s0 single and double precision.
17576 .IP "\fB\-mexplicit\-relocs\fR" 4
17577 .IX Item "-mexplicit-relocs"
17578 .PD 0
17579 .IP "\fB\-mno\-explicit\-relocs\fR" 4
17580 .IX Item "-mno-explicit-relocs"
17581 .PD
17582 Older Alpha assemblers provided no way to generate symbol relocations
17583 except via assembler macros.  Use of these macros does not allow
17584 optimal instruction scheduling.  \s-1GNU\s0 binutils as of version 2.12
17585 supports a new syntax that allows the compiler to explicitly mark
17586 which relocations should apply to which instructions.  This option
17587 is mostly useful for debugging, as \s-1GCC\s0 detects the capabilities of
17588 the assembler when it is built and sets the default accordingly.
17589 .IP "\fB\-msmall\-data\fR" 4
17590 .IX Item "-msmall-data"
17591 .PD 0
17592 .IP "\fB\-mlarge\-data\fR" 4
17593 .IX Item "-mlarge-data"
17594 .PD
17595 When \fB\-mexplicit\-relocs\fR is in effect, static data is
17596 accessed via \fIgp-relative\fR relocations.  When \fB\-msmall\-data\fR
17597 is used, objects 8 bytes long or smaller are placed in a \fIsmall data area\fR
17598 (the \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR sections) and are accessed via
17599 16\-bit relocations off of the \f(CW$gp\fR register.  This limits the
17600 size of the small data area to 64KB, but allows the variables to be
17601 directly accessed via a single instruction.
17602 .Sp
17603 The default is \fB\-mlarge\-data\fR.  With this option the data area
17604 is limited to just below 2GB.  Programs that require more than 2GB of
17605 data must use \f(CW\*(C`malloc\*(C'\fR or \f(CW\*(C`mmap\*(C'\fR to allocate the data in the
17606 heap instead of in the program's data segment.
17607 .Sp
17608 When generating code for shared libraries, \fB\-fpic\fR implies
17609 \&\fB\-msmall\-data\fR and \fB\-fPIC\fR implies \fB\-mlarge\-data\fR.
17610 .IP "\fB\-msmall\-text\fR" 4
17611 .IX Item "-msmall-text"
17612 .PD 0
17613 .IP "\fB\-mlarge\-text\fR" 4
17614 .IX Item "-mlarge-text"
17615 .PD
17616 When \fB\-msmall\-text\fR is used, the compiler assumes that the
17617 code of the entire program (or shared library) fits in 4MB, and is
17618 thus reachable with a branch instruction.  When \fB\-msmall\-data\fR
17619 is used, the compiler can assume that all local symbols share the
17620 same \f(CW$gp\fR value, and thus reduce the number of instructions
17621 required for a function call from 4 to 1.
17622 .Sp
17623 The default is \fB\-mlarge\-text\fR.
17624 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
17625 .IX Item "-mcpu=cpu_type"
17626 Set the instruction set and instruction scheduling parameters for
17627 machine type \fIcpu_type\fR.  You can specify either the \fB\s-1EV\s0\fR
17628 style name or the corresponding chip number.  \s-1GCC\s0 supports scheduling
17629 parameters for the \s-1EV4, EV5\s0 and \s-1EV6\s0 family of processors and
17630 chooses the default values for the instruction set from the processor
17631 you specify.  If you do not specify a processor type, \s-1GCC\s0 defaults
17632 to the processor on which the compiler was built.
17633 .Sp
17634 Supported values for \fIcpu_type\fR are
17635 .RS 4
17636 .IP "\fBev4\fR" 4
17637 .IX Item "ev4"
17638 .PD 0
17639 .IP "\fBev45\fR" 4
17640 .IX Item "ev45"
17641 .IP "\fB21064\fR" 4
17642 .IX Item "21064"
17643 .PD
17644 Schedules as an \s-1EV4\s0 and has no instruction set extensions.
17645 .IP "\fBev5\fR" 4
17646 .IX Item "ev5"
17647 .PD 0
17648 .IP "\fB21164\fR" 4
17649 .IX Item "21164"
17650 .PD
17651 Schedules as an \s-1EV5\s0 and has no instruction set extensions.
17652 .IP "\fBev56\fR" 4
17653 .IX Item "ev56"
17654 .PD 0
17655 .IP "\fB21164a\fR" 4
17656 .IX Item "21164a"
17657 .PD
17658 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 extension.
17659 .IP "\fBpca56\fR" 4
17660 .IX Item "pca56"
17661 .PD 0
17662 .IP "\fB21164pc\fR" 4
17663 .IX Item "21164pc"
17664 .IP "\fB21164PC\fR" 4
17665 .IX Item "21164PC"
17666 .PD
17667 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 and \s-1MAX\s0 extensions.
17668 .IP "\fBev6\fR" 4
17669 .IX Item "ev6"
17670 .PD 0
17671 .IP "\fB21264\fR" 4
17672 .IX Item "21264"
17673 .PD
17674 Schedules as an \s-1EV6\s0 and supports the \s-1BWX, FIX,\s0 and \s-1MAX\s0 extensions.
17675 .IP "\fBev67\fR" 4
17676 .IX Item "ev67"
17677 .PD 0
17678 .IP "\fB21264a\fR" 4
17679 .IX Item "21264a"
17680 .PD
17681 Schedules as an \s-1EV6\s0 and supports the \s-1BWX, CIX, FIX,\s0 and \s-1MAX\s0 extensions.
17682 .RE
17683 .RS 4
17684 .Sp
17685 Native toolchains also support the value \fBnative\fR,
17686 which selects the best architecture option for the host processor.
17687 \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize
17688 the processor.
17689 .RE
17690 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
17691 .IX Item "-mtune=cpu_type"
17692 Set only the instruction scheduling parameters for machine type
17693 \&\fIcpu_type\fR.  The instruction set is not changed.
17694 .Sp
17695 Native toolchains also support the value \fBnative\fR,
17696 which selects the best architecture option for the host processor.
17697 \&\fB\-mtune=native\fR has no effect if \s-1GCC\s0 does not recognize
17698 the processor.
17699 .IP "\fB\-mmemory\-latency=\fR\fItime\fR" 4
17700 .IX Item "-mmemory-latency=time"
17701 Sets the latency the scheduler should assume for typical memory
17702 references as seen by the application.  This number is highly
17703 dependent on the memory access patterns used by the application
17704 and the size of the external cache on the machine.
17705 .Sp
17706 Valid options for \fItime\fR are
17707 .RS 4
17708 .IP "\fInumber\fR" 4
17709 .IX Item "number"
17710 A decimal number representing clock cycles.
17711 .IP "\fBL1\fR" 4
17712 .IX Item "L1"
17713 .PD 0
17714 .IP "\fBL2\fR" 4
17715 .IX Item "L2"
17716 .IP "\fBL3\fR" 4
17717 .IX Item "L3"
17718 .IP "\fBmain\fR" 4
17719 .IX Item "main"
17720 .PD
17721 The compiler contains estimates of the number of clock cycles for
17722 \&\*(L"typical\*(R" \s-1EV4 & EV5\s0 hardware for the Level 1, 2 & 3 caches
17723 (also called Dcache, Scache, and Bcache), as well as to main memory.
17724 Note that L3 is only valid for \s-1EV5.\s0
17725 .RE
17726 .RS 4
17727 .RE
17728 .PP
17729 \fI\s-1FR30\s0 Options\fR
17730 .IX Subsection "FR30 Options"
17731 .PP
17732 These options are defined specifically for the \s-1FR30\s0 port.
17733 .IP "\fB\-msmall\-model\fR" 4
17734 .IX Item "-msmall-model"
17735 Use the small address space model.  This can produce smaller code, but
17736 it does assume that all symbolic values and addresses fit into a
17737 20\-bit range.
17738 .IP "\fB\-mno\-lsim\fR" 4
17739 .IX Item "-mno-lsim"
17740 Assume that runtime support has been provided and so there is no need
17741 to include the simulator library (\fIlibsim.a\fR) on the linker
17742 command line.
17743 .PP
17744 \fI\s-1FT32\s0 Options\fR
17745 .IX Subsection "FT32 Options"
17746 .PP
17747 These options are defined specifically for the \s-1FT32\s0 port.
17748 .IP "\fB\-msim\fR" 4
17749 .IX Item "-msim"
17750 Specifies that the program will be run on the simulator.  This causes
17751 an alternate runtime startup and library to be linked.
17752 You must not use this option when generating programs that will run on
17753 real hardware; you must provide your own runtime library for whatever
17754 I/O functions are needed.
17755 .IP "\fB\-mlra\fR" 4
17756 .IX Item "-mlra"
17757 Enable Local Register Allocation.  This is still experimental for \s-1FT32,\s0
17758 so by default the compiler uses standard reload.
17759 .IP "\fB\-mnodiv\fR" 4
17760 .IX Item "-mnodiv"
17761 Do not use div and mod instructions.
17762 .IP "\fB\-mft32b\fR" 4
17763 .IX Item "-mft32b"
17764 Enable use of the extended instructions of the \s-1FT32B\s0 processor.
17765 .IP "\fB\-mcompress\fR" 4
17766 .IX Item "-mcompress"
17767 Compress all code using the Ft32B code compression scheme.
17768 .IP "\fB\-mnopm\fR" 4
17769 .IX Item "-mnopm"
17770 Do not generate code that reads program memory.
17771 .PP
17772 \fI\s-1FRV\s0 Options\fR
17773 .IX Subsection "FRV Options"
17774 .IP "\fB\-mgpr\-32\fR" 4
17775 .IX Item "-mgpr-32"
17776 Only use the first 32 general-purpose registers.
17777 .IP "\fB\-mgpr\-64\fR" 4
17778 .IX Item "-mgpr-64"
17779 Use all 64 general-purpose registers.
17780 .IP "\fB\-mfpr\-32\fR" 4
17781 .IX Item "-mfpr-32"
17782 Use only the first 32 floating-point registers.
17783 .IP "\fB\-mfpr\-64\fR" 4
17784 .IX Item "-mfpr-64"
17785 Use all 64 floating-point registers.
17786 .IP "\fB\-mhard\-float\fR" 4
17787 .IX Item "-mhard-float"
17788 Use hardware instructions for floating-point operations.
17789 .IP "\fB\-msoft\-float\fR" 4
17790 .IX Item "-msoft-float"
17791 Use library routines for floating-point operations.
17792 .IP "\fB\-malloc\-cc\fR" 4
17793 .IX Item "-malloc-cc"
17794 Dynamically allocate condition code registers.
17795 .IP "\fB\-mfixed\-cc\fR" 4
17796 .IX Item "-mfixed-cc"
17797 Do not try to dynamically allocate condition code registers, only
17798 use \f(CW\*(C`icc0\*(C'\fR and \f(CW\*(C`fcc0\*(C'\fR.
17799 .IP "\fB\-mdword\fR" 4
17800 .IX Item "-mdword"
17801 Change \s-1ABI\s0 to use double word insns.
17802 .IP "\fB\-mno\-dword\fR" 4
17803 .IX Item "-mno-dword"
17804 Do not use double word instructions.
17805 .IP "\fB\-mdouble\fR" 4
17806 .IX Item "-mdouble"
17807 Use floating-point double instructions.
17808 .IP "\fB\-mno\-double\fR" 4
17809 .IX Item "-mno-double"
17810 Do not use floating-point double instructions.
17811 .IP "\fB\-mmedia\fR" 4
17812 .IX Item "-mmedia"
17813 Use media instructions.
17814 .IP "\fB\-mno\-media\fR" 4
17815 .IX Item "-mno-media"
17816 Do not use media instructions.
17817 .IP "\fB\-mmuladd\fR" 4
17818 .IX Item "-mmuladd"
17819 Use multiply and add/subtract instructions.
17820 .IP "\fB\-mno\-muladd\fR" 4
17821 .IX Item "-mno-muladd"
17822 Do not use multiply and add/subtract instructions.
17823 .IP "\fB\-mfdpic\fR" 4
17824 .IX Item "-mfdpic"
17825 Select the \s-1FDPIC ABI,\s0 which uses function descriptors to represent
17826 pointers to functions.  Without any PIC/PIE\-related options, it
17827 implies \fB\-fPIE\fR.  With \fB\-fpic\fR or \fB\-fpie\fR, it
17828 assumes \s-1GOT\s0 entries and small data are within a 12\-bit range from the
17829 \&\s-1GOT\s0 base address; with \fB\-fPIC\fR or \fB\-fPIE\fR, \s-1GOT\s0 offsets
17830 are computed with 32 bits.
17831 With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
17832 .IP "\fB\-minline\-plt\fR" 4
17833 .IX Item "-minline-plt"
17834 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
17835 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
17836 It's enabled by default if optimizing for speed and compiling for
17837 shared libraries (i.e., \fB\-fPIC\fR or \fB\-fpic\fR), or when an
17838 optimization option such as \fB\-O3\fR or above is present in the
17839 command line.
17840 .IP "\fB\-mTLS\fR" 4
17841 .IX Item "-mTLS"
17842 Assume a large \s-1TLS\s0 segment when generating thread-local code.
17843 .IP "\fB\-mtls\fR" 4
17844 .IX Item "-mtls"
17845 Do not assume a large \s-1TLS\s0 segment when generating thread-local code.
17846 .IP "\fB\-mgprel\-ro\fR" 4
17847 .IX Item "-mgprel-ro"
17848 Enable the use of \f(CW\*(C`GPREL\*(C'\fR relocations in the \s-1FDPIC ABI\s0 for data
17849 that is known to be in read-only sections.  It's enabled by default,
17850 except for \fB\-fpic\fR or \fB\-fpie\fR: even though it may help
17851 make the global offset table smaller, it trades 1 instruction for 4.
17852 With \fB\-fPIC\fR or \fB\-fPIE\fR, it trades 3 instructions for 4,
17853 one of which may be shared by multiple symbols, and it avoids the need
17854 for a \s-1GOT\s0 entry for the referenced symbol, so it's more likely to be a
17855 win.  If it is not, \fB\-mno\-gprel\-ro\fR can be used to disable it.
17856 .IP "\fB\-multilib\-library\-pic\fR" 4
17857 .IX Item "-multilib-library-pic"
17858 Link with the (library, not \s-1FD\s0) pic libraries.  It's implied by
17859 \&\fB\-mlibrary\-pic\fR, as well as by \fB\-fPIC\fR and
17860 \&\fB\-fpic\fR without \fB\-mfdpic\fR.  You should never have to use
17861 it explicitly.
17862 .IP "\fB\-mlinked\-fp\fR" 4
17863 .IX Item "-mlinked-fp"
17864 Follow the \s-1EABI\s0 requirement of always creating a frame pointer whenever
17865 a stack frame is allocated.  This option is enabled by default and can
17866 be disabled with \fB\-mno\-linked\-fp\fR.
17867 .IP "\fB\-mlong\-calls\fR" 4
17868 .IX Item "-mlong-calls"
17869 Use indirect addressing to call functions outside the current
17870 compilation unit.  This allows the functions to be placed anywhere
17871 within the 32\-bit address space.
17872 .IP "\fB\-malign\-labels\fR" 4
17873 .IX Item "-malign-labels"
17874 Try to align labels to an 8\-byte boundary by inserting NOPs into the
17875 previous packet.  This option only has an effect when \s-1VLIW\s0 packing
17876 is enabled.  It doesn't create new packets; it merely adds NOPs to
17877 existing ones.
17878 .IP "\fB\-mlibrary\-pic\fR" 4
17879 .IX Item "-mlibrary-pic"
17880 Generate position-independent \s-1EABI\s0 code.
17881 .IP "\fB\-macc\-4\fR" 4
17882 .IX Item "-macc-4"
17883 Use only the first four media accumulator registers.
17884 .IP "\fB\-macc\-8\fR" 4
17885 .IX Item "-macc-8"
17886 Use all eight media accumulator registers.
17887 .IP "\fB\-mpack\fR" 4
17888 .IX Item "-mpack"
17889 Pack \s-1VLIW\s0 instructions.
17890 .IP "\fB\-mno\-pack\fR" 4
17891 .IX Item "-mno-pack"
17892 Do not pack \s-1VLIW\s0 instructions.
17893 .IP "\fB\-mno\-eflags\fR" 4
17894 .IX Item "-mno-eflags"
17895 Do not mark \s-1ABI\s0 switches in e_flags.
17896 .IP "\fB\-mcond\-move\fR" 4
17897 .IX Item "-mcond-move"
17898 Enable the use of conditional-move instructions (default).
17899 .Sp
17900 This switch is mainly for debugging the compiler and will likely be removed
17901 in a future version.
17902 .IP "\fB\-mno\-cond\-move\fR" 4
17903 .IX Item "-mno-cond-move"
17904 Disable the use of conditional-move instructions.
17905 .Sp
17906 This switch is mainly for debugging the compiler and will likely be removed
17907 in a future version.
17908 .IP "\fB\-mscc\fR" 4
17909 .IX Item "-mscc"
17910 Enable the use of conditional set instructions (default).
17911 .Sp
17912 This switch is mainly for debugging the compiler and will likely be removed
17913 in a future version.
17914 .IP "\fB\-mno\-scc\fR" 4
17915 .IX Item "-mno-scc"
17916 Disable the use of conditional set instructions.
17917 .Sp
17918 This switch is mainly for debugging the compiler and will likely be removed
17919 in a future version.
17920 .IP "\fB\-mcond\-exec\fR" 4
17921 .IX Item "-mcond-exec"
17922 Enable the use of conditional execution (default).
17923 .Sp
17924 This switch is mainly for debugging the compiler and will likely be removed
17925 in a future version.
17926 .IP "\fB\-mno\-cond\-exec\fR" 4
17927 .IX Item "-mno-cond-exec"
17928 Disable the use of conditional execution.
17929 .Sp
17930 This switch is mainly for debugging the compiler and will likely be removed
17931 in a future version.
17932 .IP "\fB\-mvliw\-branch\fR" 4
17933 .IX Item "-mvliw-branch"
17934 Run a pass to pack branches into \s-1VLIW\s0 instructions (default).
17935 .Sp
17936 This switch is mainly for debugging the compiler and will likely be removed
17937 in a future version.
17938 .IP "\fB\-mno\-vliw\-branch\fR" 4
17939 .IX Item "-mno-vliw-branch"
17940 Do not run a pass to pack branches into \s-1VLIW\s0 instructions.
17941 .Sp
17942 This switch is mainly for debugging the compiler and will likely be removed
17943 in a future version.
17944 .IP "\fB\-mmulti\-cond\-exec\fR" 4
17945 .IX Item "-mmulti-cond-exec"
17946 Enable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution
17947 (default).
17948 .Sp
17949 This switch is mainly for debugging the compiler and will likely be removed
17950 in a future version.
17951 .IP "\fB\-mno\-multi\-cond\-exec\fR" 4
17952 .IX Item "-mno-multi-cond-exec"
17953 Disable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution.
17954 .Sp
17955 This switch is mainly for debugging the compiler and will likely be removed
17956 in a future version.
17957 .IP "\fB\-mnested\-cond\-exec\fR" 4
17958 .IX Item "-mnested-cond-exec"
17959 Enable nested conditional execution optimizations (default).
17960 .Sp
17961 This switch is mainly for debugging the compiler and will likely be removed
17962 in a future version.
17963 .IP "\fB\-mno\-nested\-cond\-exec\fR" 4
17964 .IX Item "-mno-nested-cond-exec"
17965 Disable nested conditional execution optimizations.
17966 .Sp
17967 This switch is mainly for debugging the compiler and will likely be removed
17968 in a future version.
17969 .IP "\fB\-moptimize\-membar\fR" 4
17970 .IX Item "-moptimize-membar"
17971 This switch removes redundant \f(CW\*(C`membar\*(C'\fR instructions from the
17972 compiler-generated code.  It is enabled by default.
17973 .IP "\fB\-mno\-optimize\-membar\fR" 4
17974 .IX Item "-mno-optimize-membar"
17975 This switch disables the automatic removal of redundant \f(CW\*(C`membar\*(C'\fR
17976 instructions from the generated code.
17977 .IP "\fB\-mtomcat\-stats\fR" 4
17978 .IX Item "-mtomcat-stats"
17979 Cause gas to print out tomcat statistics.
17980 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
17981 .IX Item "-mcpu=cpu"
17982 Select the processor type for which to generate code.  Possible values are
17983 \&\fBfrv\fR, \fBfr550\fR, \fBtomcat\fR, \fBfr500\fR, \fBfr450\fR,
17984 \&\fBfr405\fR, \fBfr400\fR, \fBfr300\fR and \fBsimple\fR.
17985 .PP
17986 \fIGNU/Linux Options\fR
17987 .IX Subsection "GNU/Linux Options"
17988 .PP
17989 These \fB\-m\fR options are defined for GNU/Linux targets:
17990 .IP "\fB\-mglibc\fR" 4
17991 .IX Item "-mglibc"
17992 Use the \s-1GNU C\s0 library.  This is the default except
17993 on \fB*\-*\-linux\-*uclibc*\fR, \fB*\-*\-linux\-*musl*\fR and
17994 \&\fB*\-*\-linux\-*android*\fR targets.
17995 .IP "\fB\-muclibc\fR" 4
17996 .IX Item "-muclibc"
17997 Use uClibc C library.  This is the default on
17998 \&\fB*\-*\-linux\-*uclibc*\fR targets.
17999 .IP "\fB\-mmusl\fR" 4
18000 .IX Item "-mmusl"
18001 Use the musl C library.  This is the default on
18002 \&\fB*\-*\-linux\-*musl*\fR targets.
18003 .IP "\fB\-mbionic\fR" 4
18004 .IX Item "-mbionic"
18005 Use Bionic C library.  This is the default on
18006 \&\fB*\-*\-linux\-*android*\fR targets.
18007 .IP "\fB\-mandroid\fR" 4
18008 .IX Item "-mandroid"
18009 Compile code compatible with Android platform.  This is the default on
18010 \&\fB*\-*\-linux\-*android*\fR targets.
18011 .Sp
18012 When compiling, this option enables \fB\-mbionic\fR, \fB\-fPIC\fR,
18013 \&\fB\-fno\-exceptions\fR and \fB\-fno\-rtti\fR by default.  When linking,
18014 this option makes the \s-1GCC\s0 driver pass Android-specific options to the linker.
18015 Finally, this option causes the preprocessor macro \f(CW\*(C`_\|_ANDROID_\|_\*(C'\fR
18016 to be defined.
18017 .IP "\fB\-tno\-android\-cc\fR" 4
18018 .IX Item "-tno-android-cc"
18019 Disable compilation effects of \fB\-mandroid\fR, i.e., do not enable
18020 \&\fB\-mbionic\fR, \fB\-fPIC\fR, \fB\-fno\-exceptions\fR and
18021 \&\fB\-fno\-rtti\fR by default.
18022 .IP "\fB\-tno\-android\-ld\fR" 4
18023 .IX Item "-tno-android-ld"
18024 Disable linking effects of \fB\-mandroid\fR, i.e., pass standard Linux
18025 linking options to the linker.
18026 .PP
18027 \fIH8/300 Options\fR
18028 .IX Subsection "H8/300 Options"
18029 .PP
18030 These \fB\-m\fR options are defined for the H8/300 implementations:
18031 .IP "\fB\-mrelax\fR" 4
18032 .IX Item "-mrelax"
18033 Shorten some address references at link time, when possible; uses the
18034 linker option \fB\-relax\fR.
18035 .IP "\fB\-mh\fR" 4
18036 .IX Item "-mh"
18037 Generate code for the H8/300H.
18038 .IP "\fB\-ms\fR" 4
18039 .IX Item "-ms"
18040 Generate code for the H8S.
18041 .IP "\fB\-mn\fR" 4
18042 .IX Item "-mn"
18043 Generate code for the H8S and H8/300H in the normal mode.  This switch
18044 must be used either with \fB\-mh\fR or \fB\-ms\fR.
18045 .IP "\fB\-ms2600\fR" 4
18046 .IX Item "-ms2600"
18047 Generate code for the H8S/2600.  This switch must be used with \fB\-ms\fR.
18048 .IP "\fB\-mexr\fR" 4
18049 .IX Item "-mexr"
18050 Extended registers are stored on stack before execution of function
18051 with monitor attribute. Default option is \fB\-mexr\fR.
18052 This option is valid only for H8S targets.
18053 .IP "\fB\-mno\-exr\fR" 4
18054 .IX Item "-mno-exr"
18055 Extended registers are not stored on stack before execution of function 
18056 with monitor attribute. Default option is \fB\-mno\-exr\fR. 
18057 This option is valid only for H8S targets.
18058 .IP "\fB\-mint32\fR" 4
18059 .IX Item "-mint32"
18060 Make \f(CW\*(C`int\*(C'\fR data 32 bits by default.
18061 .IP "\fB\-malign\-300\fR" 4
18062 .IX Item "-malign-300"
18063 On the H8/300H and H8S, use the same alignment rules as for the H8/300.
18064 The default for the H8/300H and H8S is to align longs and floats on
18065 4\-byte boundaries.
18066 \&\fB\-malign\-300\fR causes them to be aligned on 2\-byte boundaries.
18067 This option has no effect on the H8/300.
18068 .PP
18069 \fI\s-1HPPA\s0 Options\fR
18070 .IX Subsection "HPPA Options"
18071 .PP
18072 These \fB\-m\fR options are defined for the \s-1HPPA\s0 family of computers:
18073 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
18074 .IX Item "-march=architecture-type"
18075 Generate code for the specified architecture.  The choices for
18076 \&\fIarchitecture-type\fR are \fB1.0\fR for \s-1PA 1.0,\s0 \fB1.1\fR for \s-1PA
18077 1.1,\s0 and \fB2.0\fR for \s-1PA 2.0\s0 processors.  Refer to
18078 \&\fI/usr/lib/sched.models\fR on an HP-UX system to determine the proper
18079 architecture option for your machine.  Code compiled for lower numbered
18080 architectures runs on higher numbered architectures, but not the
18081 other way around.
18082 .IP "\fB\-mpa\-risc\-1\-0\fR" 4
18083 .IX Item "-mpa-risc-1-0"
18084 .PD 0
18085 .IP "\fB\-mpa\-risc\-1\-1\fR" 4
18086 .IX Item "-mpa-risc-1-1"
18087 .IP "\fB\-mpa\-risc\-2\-0\fR" 4
18088 .IX Item "-mpa-risc-2-0"
18089 .PD
18090 Synonyms for \fB\-march=1.0\fR, \fB\-march=1.1\fR, and \fB\-march=2.0\fR respectively.
18091 .IP "\fB\-mcaller\-copies\fR" 4
18092 .IX Item "-mcaller-copies"
18093 The caller copies function arguments passed by hidden reference.  This
18094 option should be used with care as it is not compatible with the default
18095 32\-bit runtime.  However, only aggregates larger than eight bytes are
18096 passed by hidden reference and the option provides better compatibility
18097 with OpenMP.
18098 .IP "\fB\-mjump\-in\-delay\fR" 4
18099 .IX Item "-mjump-in-delay"
18100 This option is ignored and provided for compatibility purposes only.
18101 .IP "\fB\-mdisable\-fpregs\fR" 4
18102 .IX Item "-mdisable-fpregs"
18103 Prevent floating-point registers from being used in any manner.  This is
18104 necessary for compiling kernels that perform lazy context switching of
18105 floating-point registers.  If you use this option and attempt to perform
18106 floating-point operations, the compiler aborts.
18107 .IP "\fB\-mdisable\-indexing\fR" 4
18108 .IX Item "-mdisable-indexing"
18109 Prevent the compiler from using indexing address modes.  This avoids some
18110 rather obscure problems when compiling \s-1MIG\s0 generated code under \s-1MACH.\s0
18111 .IP "\fB\-mno\-space\-regs\fR" 4
18112 .IX Item "-mno-space-regs"
18113 Generate code that assumes the target has no space registers.  This allows
18114 \&\s-1GCC\s0 to generate faster indirect calls and use unscaled index address modes.
18115 .Sp
18116 Such code is suitable for level 0 \s-1PA\s0 systems and kernels.
18117 .IP "\fB\-mfast\-indirect\-calls\fR" 4
18118 .IX Item "-mfast-indirect-calls"
18119 Generate code that assumes calls never cross space boundaries.  This
18120 allows \s-1GCC\s0 to emit code that performs faster indirect calls.
18121 .Sp
18122 This option does not work in the presence of shared libraries or nested
18123 functions.
18124 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
18125 .IX Item "-mfixed-range=register-range"
18126 Generate code treating the given register range as fixed registers.
18127 A fixed register is one that the register allocator cannot use.  This is
18128 useful when compiling kernel code.  A register range is specified as
18129 two registers separated by a dash.  Multiple register ranges can be
18130 specified separated by a comma.
18131 .IP "\fB\-mlong\-load\-store\fR" 4
18132 .IX Item "-mlong-load-store"
18133 Generate 3\-instruction load and store sequences as sometimes required by
18134 the HP-UX 10 linker.  This is equivalent to the \fB+k\fR option to
18135 the \s-1HP\s0 compilers.
18136 .IP "\fB\-mportable\-runtime\fR" 4
18137 .IX Item "-mportable-runtime"
18138 Use the portable calling conventions proposed by \s-1HP\s0 for \s-1ELF\s0 systems.
18139 .IP "\fB\-mgas\fR" 4
18140 .IX Item "-mgas"
18141 Enable the use of assembler directives only \s-1GAS\s0 understands.
18142 .IP "\fB\-mschedule=\fR\fIcpu-type\fR" 4
18143 .IX Item "-mschedule=cpu-type"
18144 Schedule code according to the constraints for the machine type
18145 \&\fIcpu-type\fR.  The choices for \fIcpu-type\fR are \fB700\fR
18146 \&\fB7100\fR, \fB7100LC\fR, \fB7200\fR, \fB7300\fR and \fB8000\fR.  Refer
18147 to \fI/usr/lib/sched.models\fR on an HP-UX system to determine the
18148 proper scheduling option for your machine.  The default scheduling is
18149 \&\fB8000\fR.
18150 .IP "\fB\-mlinker\-opt\fR" 4
18151 .IX Item "-mlinker-opt"
18152 Enable the optimization pass in the HP-UX linker.  Note this makes symbolic
18153 debugging impossible.  It also triggers a bug in the HP-UX 8 and HP-UX 9
18154 linkers in which they give bogus error messages when linking some programs.
18155 .IP "\fB\-msoft\-float\fR" 4
18156 .IX Item "-msoft-float"
18157 Generate output containing library calls for floating point.
18158 \&\fBWarning:\fR the requisite libraries are not available for all \s-1HPPA\s0
18159 targets.  Normally the facilities of the machine's usual C compiler are
18160 used, but this cannot be done directly in cross-compilation.  You must make
18161 your own arrangements to provide suitable library functions for
18162 cross-compilation.
18163 .Sp
18164 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
18165 therefore, it is only useful if you compile \fIall\fR of a program with
18166 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
18167 library that comes with \s-1GCC,\s0 with \fB\-msoft\-float\fR in order for
18168 this to work.
18169 .IP "\fB\-msio\fR" 4
18170 .IX Item "-msio"
18171 Generate the predefine, \f(CW\*(C`_SIO\*(C'\fR, for server \s-1IO.\s0  The default is
18172 \&\fB\-mwsio\fR.  This generates the predefines, \f(CW\*(C`_\|_hp9000s700\*(C'\fR,
18173 \&\f(CW\*(C`_\|_hp9000s700_\|_\*(C'\fR and \f(CW\*(C`_WSIO\*(C'\fR, for workstation \s-1IO.\s0  These
18174 options are available under HP-UX and HI-UX.
18175 .IP "\fB\-mgnu\-ld\fR" 4
18176 .IX Item "-mgnu-ld"
18177 Use options specific to \s-1GNU\s0 \fBld\fR.
18178 This passes \fB\-shared\fR to \fBld\fR when
18179 building a shared library.  It is the default when \s-1GCC\s0 is configured,
18180 explicitly or implicitly, with the \s-1GNU\s0 linker.  This option does not
18181 affect which \fBld\fR is called; it only changes what parameters
18182 are passed to that \fBld\fR.
18183 The \fBld\fR that is called is determined by the
18184 \&\fB\-\-with\-ld\fR configure option, \s-1GCC\s0's program search path, and
18185 finally by the user's \fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed
18186 using \fBwhich `gcc \-print\-prog\-name=ld`\fR.  This option is only available
18187 on the 64\-bit HP-UX \s-1GCC,\s0 i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
18188 .IP "\fB\-mhp\-ld\fR" 4
18189 .IX Item "-mhp-ld"
18190 Use options specific to \s-1HP\s0 \fBld\fR.
18191 This passes \fB\-b\fR to \fBld\fR when building
18192 a shared library and passes \fB+Accept TypeMismatch\fR to \fBld\fR on all
18193 links.  It is the default when \s-1GCC\s0 is configured, explicitly or
18194 implicitly, with the \s-1HP\s0 linker.  This option does not affect
18195 which \fBld\fR is called; it only changes what parameters are passed to that
18196 \&\fBld\fR.
18197 The \fBld\fR that is called is determined by the \fB\-\-with\-ld\fR
18198 configure option, \s-1GCC\s0's program search path, and finally by the user's
18199 \&\fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed using \fBwhich
18200 `gcc \-print\-prog\-name=ld`\fR.  This option is only available on the 64\-bit
18201 HP-UX \s-1GCC,\s0 i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
18202 .IP "\fB\-mlong\-calls\fR" 4
18203 .IX Item "-mlong-calls"
18204 Generate code that uses long call sequences.  This ensures that a call
18205 is always able to reach linker generated stubs.  The default is to generate
18206 long calls only when the distance from the call site to the beginning
18207 of the function or translation unit, as the case may be, exceeds a
18208 predefined limit set by the branch type being used.  The limits for
18209 normal calls are 7,600,000 and 240,000 bytes, respectively for the
18210 \&\s-1PA 2.0\s0 and \s-1PA 1.X\s0 architectures.  Sibcalls are always limited at
18211 240,000 bytes.
18212 .Sp
18213 Distances are measured from the beginning of functions when using the
18214 \&\fB\-ffunction\-sections\fR option, or when using the \fB\-mgas\fR
18215 and \fB\-mno\-portable\-runtime\fR options together under HP-UX with
18216 the \s-1SOM\s0 linker.
18217 .Sp
18218 It is normally not desirable to use this option as it degrades
18219 performance.  However, it may be useful in large applications,
18220 particularly when partial linking is used to build the application.
18221 .Sp
18222 The types of long calls used depends on the capabilities of the
18223 assembler and linker, and the type of code being generated.  The
18224 impact on systems that support long absolute calls, and long pic
18225 symbol-difference or pc-relative calls should be relatively small.
18226 However, an indirect call is used on 32\-bit \s-1ELF\s0 systems in pic code
18227 and it is quite long.
18228 .IP "\fB\-munix=\fR\fIunix-std\fR" 4
18229 .IX Item "-munix=unix-std"
18230 Generate compiler predefines and select a startfile for the specified
18231 \&\s-1UNIX\s0 standard.  The choices for \fIunix-std\fR are \fB93\fR, \fB95\fR
18232 and \fB98\fR.  \fB93\fR is supported on all HP-UX versions.  \fB95\fR
18233 is available on HP-UX 10.10 and later.  \fB98\fR is available on HP-UX
18234 11.11 and later.  The default values are \fB93\fR for HP-UX 10.00,
18235 \&\fB95\fR for HP-UX 10.10 though to 11.00, and \fB98\fR for HP-UX 11.11
18236 and later.
18237 .Sp
18238 \&\fB\-munix=93\fR provides the same predefines as \s-1GCC 3.3\s0 and 3.4.
18239 \&\fB\-munix=95\fR provides additional predefines for \f(CW\*(C`XOPEN_UNIX\*(C'\fR
18240 and \f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, and the startfile \fIunix95.o\fR.
18241 \&\fB\-munix=98\fR provides additional predefines for \f(CW\*(C`_XOPEN_UNIX\*(C'\fR,
18242 \&\f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, \f(CW\*(C`_INCLUDE_\|_STDC_A1_SOURCE\*(C'\fR and
18243 \&\f(CW\*(C`_INCLUDE_XOPEN_SOURCE_500\*(C'\fR, and the startfile \fIunix98.o\fR.
18244 .Sp
18245 It is \fIimportant\fR to note that this option changes the interfaces
18246 for various library routines.  It also affects the operational behavior
18247 of the C library.  Thus, \fIextreme\fR care is needed in using this
18248 option.
18249 .Sp
18250 Library code that is intended to operate with more than one \s-1UNIX\s0
18251 standard must test, set and restore the variable \f(CW\*(C`_\|_xpg4_extended_mask\*(C'\fR
18252 as appropriate.  Most \s-1GNU\s0 software doesn't provide this capability.
18253 .IP "\fB\-nolibdld\fR" 4
18254 .IX Item "-nolibdld"
18255 Suppress the generation of link options to search libdld.sl when the
18256 \&\fB\-static\fR option is specified on HP-UX 10 and later.
18257 .IP "\fB\-static\fR" 4
18258 .IX Item "-static"
18259 The HP-UX implementation of setlocale in libc has a dependency on
18260 libdld.sl.  There isn't an archive version of libdld.sl.  Thus,
18261 when the \fB\-static\fR option is specified, special link options
18262 are needed to resolve this dependency.
18263 .Sp
18264 On HP-UX 10 and later, the \s-1GCC\s0 driver adds the necessary options to
18265 link with libdld.sl when the \fB\-static\fR option is specified.
18266 This causes the resulting binary to be dynamic.  On the 64\-bit port,
18267 the linkers generate dynamic binaries by default in any case.  The
18268 \&\fB\-nolibdld\fR option can be used to prevent the \s-1GCC\s0 driver from
18269 adding these link options.
18270 .IP "\fB\-threads\fR" 4
18271 .IX Item "-threads"
18272 Add support for multithreading with the \fIdce thread\fR library
18273 under HP-UX.  This option sets flags for both the preprocessor and
18274 linker.
18275 .PP
18276 \fI\s-1IA\-64\s0 Options\fR
18277 .IX Subsection "IA-64 Options"
18278 .PP
18279 These are the \fB\-m\fR options defined for the Intel \s-1IA\-64\s0 architecture.
18280 .IP "\fB\-mbig\-endian\fR" 4
18281 .IX Item "-mbig-endian"
18282 Generate code for a big-endian target.  This is the default for HP-UX.
18283 .IP "\fB\-mlittle\-endian\fR" 4
18284 .IX Item "-mlittle-endian"
18285 Generate code for a little-endian target.  This is the default for \s-1AIX5\s0
18286 and GNU/Linux.
18287 .IP "\fB\-mgnu\-as\fR" 4
18288 .IX Item "-mgnu-as"
18289 .PD 0
18290 .IP "\fB\-mno\-gnu\-as\fR" 4
18291 .IX Item "-mno-gnu-as"
18292 .PD
18293 Generate (or don't) code for the \s-1GNU\s0 assembler.  This is the default.
18294 .IP "\fB\-mgnu\-ld\fR" 4
18295 .IX Item "-mgnu-ld"
18296 .PD 0
18297 .IP "\fB\-mno\-gnu\-ld\fR" 4
18298 .IX Item "-mno-gnu-ld"
18299 .PD
18300 Generate (or don't) code for the \s-1GNU\s0 linker.  This is the default.
18301 .IP "\fB\-mno\-pic\fR" 4
18302 .IX Item "-mno-pic"
18303 Generate code that does not use a global pointer register.  The result
18304 is not position independent code, and violates the \s-1IA\-64 ABI.\s0
18305 .IP "\fB\-mvolatile\-asm\-stop\fR" 4
18306 .IX Item "-mvolatile-asm-stop"
18307 .PD 0
18308 .IP "\fB\-mno\-volatile\-asm\-stop\fR" 4
18309 .IX Item "-mno-volatile-asm-stop"
18310 .PD
18311 Generate (or don't) a stop bit immediately before and after volatile asm
18312 statements.
18313 .IP "\fB\-mregister\-names\fR" 4
18314 .IX Item "-mregister-names"
18315 .PD 0
18316 .IP "\fB\-mno\-register\-names\fR" 4
18317 .IX Item "-mno-register-names"
18318 .PD
18319 Generate (or don't) \fBin\fR, \fBloc\fR, and \fBout\fR register names for
18320 the stacked registers.  This may make assembler output more readable.
18321 .IP "\fB\-mno\-sdata\fR" 4
18322 .IX Item "-mno-sdata"
18323 .PD 0
18324 .IP "\fB\-msdata\fR" 4
18325 .IX Item "-msdata"
18326 .PD
18327 Disable (or enable) optimizations that use the small data section.  This may
18328 be useful for working around optimizer bugs.
18329 .IP "\fB\-mconstant\-gp\fR" 4
18330 .IX Item "-mconstant-gp"
18331 Generate code that uses a single constant global pointer value.  This is
18332 useful when compiling kernel code.
18333 .IP "\fB\-mauto\-pic\fR" 4
18334 .IX Item "-mauto-pic"
18335 Generate code that is self-relocatable.  This implies \fB\-mconstant\-gp\fR.
18336 This is useful when compiling firmware code.
18337 .IP "\fB\-minline\-float\-divide\-min\-latency\fR" 4
18338 .IX Item "-minline-float-divide-min-latency"
18339 Generate code for inline divides of floating-point values
18340 using the minimum latency algorithm.
18341 .IP "\fB\-minline\-float\-divide\-max\-throughput\fR" 4
18342 .IX Item "-minline-float-divide-max-throughput"
18343 Generate code for inline divides of floating-point values
18344 using the maximum throughput algorithm.
18345 .IP "\fB\-mno\-inline\-float\-divide\fR" 4
18346 .IX Item "-mno-inline-float-divide"
18347 Do not generate inline code for divides of floating-point values.
18348 .IP "\fB\-minline\-int\-divide\-min\-latency\fR" 4
18349 .IX Item "-minline-int-divide-min-latency"
18350 Generate code for inline divides of integer values
18351 using the minimum latency algorithm.
18352 .IP "\fB\-minline\-int\-divide\-max\-throughput\fR" 4
18353 .IX Item "-minline-int-divide-max-throughput"
18354 Generate code for inline divides of integer values
18355 using the maximum throughput algorithm.
18356 .IP "\fB\-mno\-inline\-int\-divide\fR" 4
18357 .IX Item "-mno-inline-int-divide"
18358 Do not generate inline code for divides of integer values.
18359 .IP "\fB\-minline\-sqrt\-min\-latency\fR" 4
18360 .IX Item "-minline-sqrt-min-latency"
18361 Generate code for inline square roots
18362 using the minimum latency algorithm.
18363 .IP "\fB\-minline\-sqrt\-max\-throughput\fR" 4
18364 .IX Item "-minline-sqrt-max-throughput"
18365 Generate code for inline square roots
18366 using the maximum throughput algorithm.
18367 .IP "\fB\-mno\-inline\-sqrt\fR" 4
18368 .IX Item "-mno-inline-sqrt"
18369 Do not generate inline code for \f(CW\*(C`sqrt\*(C'\fR.
18370 .IP "\fB\-mfused\-madd\fR" 4
18371 .IX Item "-mfused-madd"
18372 .PD 0
18373 .IP "\fB\-mno\-fused\-madd\fR" 4
18374 .IX Item "-mno-fused-madd"
18375 .PD
18376 Do (don't) generate code that uses the fused multiply/add or multiply/subtract
18377 instructions.  The default is to use these instructions.
18378 .IP "\fB\-mno\-dwarf2\-asm\fR" 4
18379 .IX Item "-mno-dwarf2-asm"
18380 .PD 0
18381 .IP "\fB\-mdwarf2\-asm\fR" 4
18382 .IX Item "-mdwarf2-asm"
18383 .PD
18384 Don't (or do) generate assembler code for the \s-1DWARF\s0 line number debugging
18385 info.  This may be useful when not using the \s-1GNU\s0 assembler.
18386 .IP "\fB\-mearly\-stop\-bits\fR" 4
18387 .IX Item "-mearly-stop-bits"
18388 .PD 0
18389 .IP "\fB\-mno\-early\-stop\-bits\fR" 4
18390 .IX Item "-mno-early-stop-bits"
18391 .PD
18392 Allow stop bits to be placed earlier than immediately preceding the
18393 instruction that triggered the stop bit.  This can improve instruction
18394 scheduling, but does not always do so.
18395 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
18396 .IX Item "-mfixed-range=register-range"
18397 Generate code treating the given register range as fixed registers.
18398 A fixed register is one that the register allocator cannot use.  This is
18399 useful when compiling kernel code.  A register range is specified as
18400 two registers separated by a dash.  Multiple register ranges can be
18401 specified separated by a comma.
18402 .IP "\fB\-mtls\-size=\fR\fItls-size\fR" 4
18403 .IX Item "-mtls-size=tls-size"
18404 Specify bit size of immediate \s-1TLS\s0 offsets.  Valid values are 14, 22, and
18405 64.
18406 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
18407 .IX Item "-mtune=cpu-type"
18408 Tune the instruction scheduling for a particular \s-1CPU,\s0 Valid values are
18409 \&\fBitanium\fR, \fBitanium1\fR, \fBmerced\fR, \fBitanium2\fR,
18410 and \fBmckinley\fR.
18411 .IP "\fB\-milp32\fR" 4
18412 .IX Item "-milp32"
18413 .PD 0
18414 .IP "\fB\-mlp64\fR" 4
18415 .IX Item "-mlp64"
18416 .PD
18417 Generate code for a 32\-bit or 64\-bit environment.
18418 The 32\-bit environment sets int, long and pointer to 32 bits.
18419 The 64\-bit environment sets int to 32 bits and long and pointer
18420 to 64 bits.  These are HP-UX specific flags.
18421 .IP "\fB\-mno\-sched\-br\-data\-spec\fR" 4
18422 .IX Item "-mno-sched-br-data-spec"
18423 .PD 0
18424 .IP "\fB\-msched\-br\-data\-spec\fR" 4
18425 .IX Item "-msched-br-data-spec"
18426 .PD
18427 (Dis/En)able data speculative scheduling before reload.
18428 This results in generation of \f(CW\*(C`ld.a\*(C'\fR instructions and
18429 the corresponding check instructions (\f(CW\*(C`ld.c\*(C'\fR / \f(CW\*(C`chk.a\*(C'\fR).
18430 The default setting is disabled.
18431 .IP "\fB\-msched\-ar\-data\-spec\fR" 4
18432 .IX Item "-msched-ar-data-spec"
18433 .PD 0
18434 .IP "\fB\-mno\-sched\-ar\-data\-spec\fR" 4
18435 .IX Item "-mno-sched-ar-data-spec"
18436 .PD
18437 (En/Dis)able data speculative scheduling after reload.
18438 This results in generation of \f(CW\*(C`ld.a\*(C'\fR instructions and
18439 the corresponding check instructions (\f(CW\*(C`ld.c\*(C'\fR / \f(CW\*(C`chk.a\*(C'\fR).
18440 The default setting is enabled.
18441 .IP "\fB\-mno\-sched\-control\-spec\fR" 4
18442 .IX Item "-mno-sched-control-spec"
18443 .PD 0
18444 .IP "\fB\-msched\-control\-spec\fR" 4
18445 .IX Item "-msched-control-spec"
18446 .PD
18447 (Dis/En)able control speculative scheduling.  This feature is
18448 available only during region scheduling (i.e. before reload).
18449 This results in generation of the \f(CW\*(C`ld.s\*(C'\fR instructions and
18450 the corresponding check instructions \f(CW\*(C`chk.s\*(C'\fR.
18451 The default setting is disabled.
18452 .IP "\fB\-msched\-br\-in\-data\-spec\fR" 4
18453 .IX Item "-msched-br-in-data-spec"
18454 .PD 0
18455 .IP "\fB\-mno\-sched\-br\-in\-data\-spec\fR" 4
18456 .IX Item "-mno-sched-br-in-data-spec"
18457 .PD
18458 (En/Dis)able speculative scheduling of the instructions that
18459 are dependent on the data speculative loads before reload.
18460 This is effective only with \fB\-msched\-br\-data\-spec\fR enabled.
18461 The default setting is enabled.
18462 .IP "\fB\-msched\-ar\-in\-data\-spec\fR" 4
18463 .IX Item "-msched-ar-in-data-spec"
18464 .PD 0
18465 .IP "\fB\-mno\-sched\-ar\-in\-data\-spec\fR" 4
18466 .IX Item "-mno-sched-ar-in-data-spec"
18467 .PD
18468 (En/Dis)able speculative scheduling of the instructions that
18469 are dependent on the data speculative loads after reload.
18470 This is effective only with \fB\-msched\-ar\-data\-spec\fR enabled.
18471 The default setting is enabled.
18472 .IP "\fB\-msched\-in\-control\-spec\fR" 4
18473 .IX Item "-msched-in-control-spec"
18474 .PD 0
18475 .IP "\fB\-mno\-sched\-in\-control\-spec\fR" 4
18476 .IX Item "-mno-sched-in-control-spec"
18477 .PD
18478 (En/Dis)able speculative scheduling of the instructions that
18479 are dependent on the control speculative loads.
18480 This is effective only with \fB\-msched\-control\-spec\fR enabled.
18481 The default setting is enabled.
18482 .IP "\fB\-mno\-sched\-prefer\-non\-data\-spec\-insns\fR" 4
18483 .IX Item "-mno-sched-prefer-non-data-spec-insns"
18484 .PD 0
18485 .IP "\fB\-msched\-prefer\-non\-data\-spec\-insns\fR" 4
18486 .IX Item "-msched-prefer-non-data-spec-insns"
18487 .PD
18488 If enabled, data-speculative instructions are chosen for schedule
18489 only if there are no other choices at the moment.  This makes
18490 the use of the data speculation much more conservative.
18491 The default setting is disabled.
18492 .IP "\fB\-mno\-sched\-prefer\-non\-control\-spec\-insns\fR" 4
18493 .IX Item "-mno-sched-prefer-non-control-spec-insns"
18494 .PD 0
18495 .IP "\fB\-msched\-prefer\-non\-control\-spec\-insns\fR" 4
18496 .IX Item "-msched-prefer-non-control-spec-insns"
18497 .PD
18498 If enabled, control-speculative instructions are chosen for schedule
18499 only if there are no other choices at the moment.  This makes
18500 the use of the control speculation much more conservative.
18501 The default setting is disabled.
18502 .IP "\fB\-mno\-sched\-count\-spec\-in\-critical\-path\fR" 4
18503 .IX Item "-mno-sched-count-spec-in-critical-path"
18504 .PD 0
18505 .IP "\fB\-msched\-count\-spec\-in\-critical\-path\fR" 4
18506 .IX Item "-msched-count-spec-in-critical-path"
18507 .PD
18508 If enabled, speculative dependencies are considered during
18509 computation of the instructions priorities.  This makes the use of the
18510 speculation a bit more conservative.
18511 The default setting is disabled.
18512 .IP "\fB\-msched\-spec\-ldc\fR" 4
18513 .IX Item "-msched-spec-ldc"
18514 Use a simple data speculation check.  This option is on by default.
18515 .IP "\fB\-msched\-control\-spec\-ldc\fR" 4
18516 .IX Item "-msched-control-spec-ldc"
18517 Use a simple check for control speculation.  This option is on by default.
18518 .IP "\fB\-msched\-stop\-bits\-after\-every\-cycle\fR" 4
18519 .IX Item "-msched-stop-bits-after-every-cycle"
18520 Place a stop bit after every cycle when scheduling.  This option is on
18521 by default.
18522 .IP "\fB\-msched\-fp\-mem\-deps\-zero\-cost\fR" 4
18523 .IX Item "-msched-fp-mem-deps-zero-cost"
18524 Assume that floating-point stores and loads are not likely to cause a conflict
18525 when placed into the same instruction group.  This option is disabled by
18526 default.
18527 .IP "\fB\-msel\-sched\-dont\-check\-control\-spec\fR" 4
18528 .IX Item "-msel-sched-dont-check-control-spec"
18529 Generate checks for control speculation in selective scheduling.
18530 This flag is disabled by default.
18531 .IP "\fB\-msched\-max\-memory\-insns=\fR\fImax-insns\fR" 4
18532 .IX Item "-msched-max-memory-insns=max-insns"
18533 Limit on the number of memory insns per instruction group, giving lower
18534 priority to subsequent memory insns attempting to schedule in the same
18535 instruction group. Frequently useful to prevent cache bank conflicts.
18536 The default value is 1.
18537 .IP "\fB\-msched\-max\-memory\-insns\-hard\-limit\fR" 4
18538 .IX Item "-msched-max-memory-insns-hard-limit"
18539 Makes the limit specified by \fBmsched-max-memory-insns\fR a hard limit,
18540 disallowing more than that number in an instruction group.
18541 Otherwise, the limit is \*(L"soft\*(R", meaning that non-memory operations
18542 are preferred when the limit is reached, but memory operations may still
18543 be scheduled.
18544 .PP
18545 \fI\s-1LM32\s0 Options\fR
18546 .IX Subsection "LM32 Options"
18547 .PP
18548 These \fB\-m\fR options are defined for the LatticeMico32 architecture:
18549 .IP "\fB\-mbarrel\-shift\-enabled\fR" 4
18550 .IX Item "-mbarrel-shift-enabled"
18551 Enable barrel-shift instructions.
18552 .IP "\fB\-mdivide\-enabled\fR" 4
18553 .IX Item "-mdivide-enabled"
18554 Enable divide and modulus instructions.
18555 .IP "\fB\-mmultiply\-enabled\fR" 4
18556 .IX Item "-mmultiply-enabled"
18557 Enable multiply instructions.
18558 .IP "\fB\-msign\-extend\-enabled\fR" 4
18559 .IX Item "-msign-extend-enabled"
18560 Enable sign extend instructions.
18561 .IP "\fB\-muser\-enabled\fR" 4
18562 .IX Item "-muser-enabled"
18563 Enable user-defined instructions.
18564 .PP
18565 \fIM32C Options\fR
18566 .IX Subsection "M32C Options"
18567 .IP "\fB\-mcpu=\fR\fIname\fR" 4
18568 .IX Item "-mcpu=name"
18569 Select the \s-1CPU\s0 for which code is generated.  \fIname\fR may be one of
18570 \&\fBr8c\fR for the R8C/Tiny series, \fBm16c\fR for the M16C (up to
18571 /60) series, \fBm32cm\fR for the M16C/80 series, or \fBm32c\fR for
18572 the M32C/80 series.
18573 .IP "\fB\-msim\fR" 4
18574 .IX Item "-msim"
18575 Specifies that the program will be run on the simulator.  This causes
18576 an alternate runtime library to be linked in which supports, for
18577 example, file I/O.  You must not use this option when generating
18578 programs that will run on real hardware; you must provide your own
18579 runtime library for whatever I/O functions are needed.
18580 .IP "\fB\-memregs=\fR\fInumber\fR" 4
18581 .IX Item "-memregs=number"
18582 Specifies the number of memory-based pseudo-registers \s-1GCC\s0 uses
18583 during code generation.  These pseudo-registers are used like real
18584 registers, so there is a tradeoff between \s-1GCC\s0's ability to fit the
18585 code into available registers, and the performance penalty of using
18586 memory instead of registers.  Note that all modules in a program must
18587 be compiled with the same value for this option.  Because of that, you
18588 must not use this option with \s-1GCC\s0's default runtime libraries.
18589 .PP
18590 \fIM32R/D Options\fR
18591 .IX Subsection "M32R/D Options"
18592 .PP
18593 These \fB\-m\fR options are defined for Renesas M32R/D architectures:
18594 .IP "\fB\-m32r2\fR" 4
18595 .IX Item "-m32r2"
18596 Generate code for the M32R/2.
18597 .IP "\fB\-m32rx\fR" 4
18598 .IX Item "-m32rx"
18599 Generate code for the M32R/X.
18600 .IP "\fB\-m32r\fR" 4
18601 .IX Item "-m32r"
18602 Generate code for the M32R.  This is the default.
18603 .IP "\fB\-mmodel=small\fR" 4
18604 .IX Item "-mmodel=small"
18605 Assume all objects live in the lower 16MB of memory (so that their addresses
18606 can be loaded with the \f(CW\*(C`ld24\*(C'\fR instruction), and assume all subroutines
18607 are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
18608 This is the default.
18609 .Sp
18610 The addressability of a particular object can be set with the
18611 \&\f(CW\*(C`model\*(C'\fR attribute.
18612 .IP "\fB\-mmodel=medium\fR" 4
18613 .IX Item "-mmodel=medium"
18614 Assume objects may be anywhere in the 32\-bit address space (the compiler
18615 generates \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
18616 assume all subroutines are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
18617 .IP "\fB\-mmodel=large\fR" 4
18618 .IX Item "-mmodel=large"
18619 Assume objects may be anywhere in the 32\-bit address space (the compiler
18620 generates \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
18621 assume subroutines may not be reachable with the \f(CW\*(C`bl\*(C'\fR instruction
18622 (the compiler generates the much slower \f(CW\*(C`seth/add3/jl\*(C'\fR
18623 instruction sequence).
18624 .IP "\fB\-msdata=none\fR" 4
18625 .IX Item "-msdata=none"
18626 Disable use of the small data area.  Variables are put into
18627 one of \f(CW\*(C`.data\*(C'\fR, \f(CW\*(C`.bss\*(C'\fR, or \f(CW\*(C`.rodata\*(C'\fR (unless the
18628 \&\f(CW\*(C`section\*(C'\fR attribute has been specified).
18629 This is the default.
18630 .Sp
18631 The small data area consists of sections \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR.
18632 Objects may be explicitly put in the small data area with the
18633 \&\f(CW\*(C`section\*(C'\fR attribute using one of these sections.
18634 .IP "\fB\-msdata=sdata\fR" 4
18635 .IX Item "-msdata=sdata"
18636 Put small global and static data in the small data area, but do not
18637 generate special code to reference them.
18638 .IP "\fB\-msdata=use\fR" 4
18639 .IX Item "-msdata=use"
18640 Put small global and static data in the small data area, and generate
18641 special instructions to reference them.
18642 .IP "\fB\-G\fR \fInum\fR" 4
18643 .IX Item "-G num"
18644 Put global and static objects less than or equal to \fInum\fR bytes
18645 into the small data or \s-1BSS\s0 sections instead of the normal data or \s-1BSS\s0
18646 sections.  The default value of \fInum\fR is 8.
18647 The \fB\-msdata\fR option must be set to one of \fBsdata\fR or \fBuse\fR
18648 for this option to have any effect.
18649 .Sp
18650 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
18651 Compiling with different values of \fInum\fR may or may not work; if it
18652 doesn't the linker gives an error message\-\-\-incorrect code is not
18653 generated.
18654 .IP "\fB\-mdebug\fR" 4
18655 .IX Item "-mdebug"
18656 Makes the M32R\-specific code in the compiler display some statistics
18657 that might help in debugging programs.
18658 .IP "\fB\-malign\-loops\fR" 4
18659 .IX Item "-malign-loops"
18660 Align all loops to a 32\-byte boundary.
18661 .IP "\fB\-mno\-align\-loops\fR" 4
18662 .IX Item "-mno-align-loops"
18663 Do not enforce a 32\-byte alignment for loops.  This is the default.
18664 .IP "\fB\-missue\-rate=\fR\fInumber\fR" 4
18665 .IX Item "-missue-rate=number"
18666 Issue \fInumber\fR instructions per cycle.  \fInumber\fR can only be 1
18667 or 2.
18668 .IP "\fB\-mbranch\-cost=\fR\fInumber\fR" 4
18669 .IX Item "-mbranch-cost=number"
18670 \&\fInumber\fR can only be 1 or 2.  If it is 1 then branches are
18671 preferred over conditional code, if it is 2, then the opposite applies.
18672 .IP "\fB\-mflush\-trap=\fR\fInumber\fR" 4
18673 .IX Item "-mflush-trap=number"
18674 Specifies the trap number to use to flush the cache.  The default is
18675 12.  Valid numbers are between 0 and 15 inclusive.
18676 .IP "\fB\-mno\-flush\-trap\fR" 4
18677 .IX Item "-mno-flush-trap"
18678 Specifies that the cache cannot be flushed by using a trap.
18679 .IP "\fB\-mflush\-func=\fR\fIname\fR" 4
18680 .IX Item "-mflush-func=name"
18681 Specifies the name of the operating system function to call to flush
18682 the cache.  The default is \fB_flush_cache\fR, but a function call
18683 is only used if a trap is not available.
18684 .IP "\fB\-mno\-flush\-func\fR" 4
18685 .IX Item "-mno-flush-func"
18686 Indicates that there is no \s-1OS\s0 function for flushing the cache.
18687 .PP
18688 \fIM680x0 Options\fR
18689 .IX Subsection "M680x0 Options"
18690 .PP
18691 These are the \fB\-m\fR options defined for M680x0 and ColdFire processors.
18692 The default settings depend on which architecture was selected when
18693 the compiler was configured; the defaults for the most common choices
18694 are given below.
18695 .IP "\fB\-march=\fR\fIarch\fR" 4
18696 .IX Item "-march=arch"
18697 Generate code for a specific M680x0 or ColdFire instruction set
18698 architecture.  Permissible values of \fIarch\fR for M680x0
18699 architectures are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
18700 \&\fB68030\fR, \fB68040\fR, \fB68060\fR and \fBcpu32\fR.  ColdFire
18701 architectures are selected according to Freescale's \s-1ISA\s0 classification
18702 and the permissible values are: \fBisaa\fR, \fBisaaplus\fR,
18703 \&\fBisab\fR and \fBisac\fR.
18704 .Sp
18705 \&\s-1GCC\s0 defines a macro \f(CW\*(C`_\|_mcf\f(CIarch\f(CW_\|_\*(C'\fR whenever it is generating
18706 code for a ColdFire target.  The \fIarch\fR in this macro is one of the
18707 \&\fB\-march\fR arguments given above.
18708 .Sp
18709 When used together, \fB\-march\fR and \fB\-mtune\fR select code
18710 that runs on a family of similar processors but that is optimized
18711 for a particular microarchitecture.
18712 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
18713 .IX Item "-mcpu=cpu"
18714 Generate code for a specific M680x0 or ColdFire processor.
18715 The M680x0 \fIcpu\fRs are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
18716 \&\fB68030\fR, \fB68040\fR, \fB68060\fR, \fB68302\fR, \fB68332\fR
18717 and \fBcpu32\fR.  The ColdFire \fIcpu\fRs are given by the table
18718 below, which also classifies the CPUs into families:
18719 .RS 4
18720 .IP "Family : \fB\-mcpu\fR arguments" 4
18721 .IX Item "Family : -mcpu arguments"
18722 .PD 0
18723 .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
18724 .IX Item "51 : 51 51ac 51ag 51cn 51em 51je 51jf 51jg 51jm 51mm 51qe 51qm"
18725 .IP "\fB5206\fR : \fB5202\fR \fB5204\fR \fB5206\fR" 4
18726 .IX Item "5206 : 5202 5204 5206"
18727 .IP "\fB5206e\fR : \fB5206e\fR" 4
18728 .IX Item "5206e : 5206e"
18729 .IP "\fB5208\fR : \fB5207\fR \fB5208\fR" 4
18730 .IX Item "5208 : 5207 5208"
18731 .IP "\fB5211a\fR : \fB5210a\fR \fB5211a\fR" 4
18732 .IX Item "5211a : 5210a 5211a"
18733 .IP "\fB5213\fR : \fB5211\fR \fB5212\fR \fB5213\fR" 4
18734 .IX Item "5213 : 5211 5212 5213"
18735 .IP "\fB5216\fR : \fB5214\fR \fB5216\fR" 4
18736 .IX Item "5216 : 5214 5216"
18737 .IP "\fB52235\fR : \fB52230\fR \fB52231\fR \fB52232\fR \fB52233\fR \fB52234\fR \fB52235\fR" 4
18738 .IX Item "52235 : 52230 52231 52232 52233 52234 52235"
18739 .IP "\fB5225\fR : \fB5224\fR \fB5225\fR" 4
18740 .IX Item "5225 : 5224 5225"
18741 .IP "\fB52259\fR : \fB52252\fR \fB52254\fR \fB52255\fR \fB52256\fR \fB52258\fR \fB52259\fR" 4
18742 .IX Item "52259 : 52252 52254 52255 52256 52258 52259"
18743 .IP "\fB5235\fR : \fB5232\fR \fB5233\fR \fB5234\fR \fB5235\fR \fB523x\fR" 4
18744 .IX Item "5235 : 5232 5233 5234 5235 523x"
18745 .IP "\fB5249\fR : \fB5249\fR" 4
18746 .IX Item "5249 : 5249"
18747 .IP "\fB5250\fR : \fB5250\fR" 4
18748 .IX Item "5250 : 5250"
18749 .IP "\fB5271\fR : \fB5270\fR \fB5271\fR" 4
18750 .IX Item "5271 : 5270 5271"
18751 .IP "\fB5272\fR : \fB5272\fR" 4
18752 .IX Item "5272 : 5272"
18753 .IP "\fB5275\fR : \fB5274\fR \fB5275\fR" 4
18754 .IX Item "5275 : 5274 5275"
18755 .IP "\fB5282\fR : \fB5280\fR \fB5281\fR \fB5282\fR \fB528x\fR" 4
18756 .IX Item "5282 : 5280 5281 5282 528x"
18757 .IP "\fB53017\fR : \fB53011\fR \fB53012\fR \fB53013\fR \fB53014\fR \fB53015\fR \fB53016\fR \fB53017\fR" 4
18758 .IX Item "53017 : 53011 53012 53013 53014 53015 53016 53017"
18759 .IP "\fB5307\fR : \fB5307\fR" 4
18760 .IX Item "5307 : 5307"
18761 .IP "\fB5329\fR : \fB5327\fR \fB5328\fR \fB5329\fR \fB532x\fR" 4
18762 .IX Item "5329 : 5327 5328 5329 532x"
18763 .IP "\fB5373\fR : \fB5372\fR \fB5373\fR \fB537x\fR" 4
18764 .IX Item "5373 : 5372 5373 537x"
18765 .IP "\fB5407\fR : \fB5407\fR" 4
18766 .IX Item "5407 : 5407"
18767 .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
18768 .IX Item "5475 : 5470 5471 5472 5473 5474 5475 547x 5480 5481 5482 5483 5484 5485"
18769 .RE
18770 .RS 4
18771 .PD
18772 .Sp
18773 \&\fB\-mcpu=\fR\fIcpu\fR overrides \fB\-march=\fR\fIarch\fR if
18774 \&\fIarch\fR is compatible with \fIcpu\fR.  Other combinations of
18775 \&\fB\-mcpu\fR and \fB\-march\fR are rejected.
18776 .Sp
18777 \&\s-1GCC\s0 defines the macro \f(CW\*(C`_\|_mcf_cpu_\f(CIcpu\f(CW\*(C'\fR when ColdFire target
18778 \&\fIcpu\fR is selected.  It also defines \f(CW\*(C`_\|_mcf_family_\f(CIfamily\f(CW\*(C'\fR,
18779 where the value of \fIfamily\fR is given by the table above.
18780 .RE
18781 .IP "\fB\-mtune=\fR\fItune\fR" 4
18782 .IX Item "-mtune=tune"
18783 Tune the code for a particular microarchitecture within the
18784 constraints set by \fB\-march\fR and \fB\-mcpu\fR.
18785 The M680x0 microarchitectures are: \fB68000\fR, \fB68010\fR,
18786 \&\fB68020\fR, \fB68030\fR, \fB68040\fR, \fB68060\fR
18787 and \fBcpu32\fR.  The ColdFire microarchitectures
18788 are: \fBcfv1\fR, \fBcfv2\fR, \fBcfv3\fR, \fBcfv4\fR and \fBcfv4e\fR.
18789 .Sp
18790 You can also use \fB\-mtune=68020\-40\fR for code that needs
18791 to run relatively well on 68020, 68030 and 68040 targets.
18792 \&\fB\-mtune=68020\-60\fR is similar but includes 68060 targets
18793 as well.  These two options select the same tuning decisions as
18794 \&\fB\-m68020\-40\fR and \fB\-m68020\-60\fR respectively.
18795 .Sp
18796 \&\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
18797 when tuning for 680x0 architecture \fIarch\fR.  It also defines
18798 \&\f(CW\*(C`mc\f(CIarch\f(CW\*(C'\fR unless either \fB\-ansi\fR or a non-GNU \fB\-std\fR
18799 option is used.  If \s-1GCC\s0 is tuning for a range of architectures,
18800 as selected by \fB\-mtune=68020\-40\fR or \fB\-mtune=68020\-60\fR,
18801 it defines the macros for every architecture in the range.
18802 .Sp
18803 \&\s-1GCC\s0 also defines the macro \f(CW\*(C`_\|_m\f(CIuarch\f(CW_\|_\*(C'\fR when tuning for
18804 ColdFire microarchitecture \fIuarch\fR, where \fIuarch\fR is one
18805 of the arguments given above.
18806 .IP "\fB\-m68000\fR" 4
18807 .IX Item "-m68000"
18808 .PD 0
18809 .IP "\fB\-mc68000\fR" 4
18810 .IX Item "-mc68000"
18811 .PD
18812 Generate output for a 68000.  This is the default
18813 when the compiler is configured for 68000\-based systems.
18814 It is equivalent to \fB\-march=68000\fR.
18815 .Sp
18816 Use this option for microcontrollers with a 68000 or \s-1EC000\s0 core,
18817 including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
18818 .IP "\fB\-m68010\fR" 4
18819 .IX Item "-m68010"
18820 Generate output for a 68010.  This is the default
18821 when the compiler is configured for 68010\-based systems.
18822 It is equivalent to \fB\-march=68010\fR.
18823 .IP "\fB\-m68020\fR" 4
18824 .IX Item "-m68020"
18825 .PD 0
18826 .IP "\fB\-mc68020\fR" 4
18827 .IX Item "-mc68020"
18828 .PD
18829 Generate output for a 68020.  This is the default
18830 when the compiler is configured for 68020\-based systems.
18831 It is equivalent to \fB\-march=68020\fR.
18832 .IP "\fB\-m68030\fR" 4
18833 .IX Item "-m68030"
18834 Generate output for a 68030.  This is the default when the compiler is
18835 configured for 68030\-based systems.  It is equivalent to
18836 \&\fB\-march=68030\fR.
18837 .IP "\fB\-m68040\fR" 4
18838 .IX Item "-m68040"
18839 Generate output for a 68040.  This is the default when the compiler is
18840 configured for 68040\-based systems.  It is equivalent to
18841 \&\fB\-march=68040\fR.
18842 .Sp
18843 This option inhibits the use of 68881/68882 instructions that have to be
18844 emulated by software on the 68040.  Use this option if your 68040 does not
18845 have code to emulate those instructions.
18846 .IP "\fB\-m68060\fR" 4
18847 .IX Item "-m68060"
18848 Generate output for a 68060.  This is the default when the compiler is
18849 configured for 68060\-based systems.  It is equivalent to
18850 \&\fB\-march=68060\fR.
18851 .Sp
18852 This option inhibits the use of 68020 and 68881/68882 instructions that
18853 have to be emulated by software on the 68060.  Use this option if your 68060
18854 does not have code to emulate those instructions.
18855 .IP "\fB\-mcpu32\fR" 4
18856 .IX Item "-mcpu32"
18857 Generate output for a \s-1CPU32.\s0  This is the default
18858 when the compiler is configured for CPU32\-based systems.
18859 It is equivalent to \fB\-march=cpu32\fR.
18860 .Sp
18861 Use this option for microcontrollers with a
18862 \&\s-1CPU32\s0 or \s-1CPU32+\s0 core, including the 68330, 68331, 68332, 68333, 68334,
18863 68336, 68340, 68341, 68349 and 68360.
18864 .IP "\fB\-m5200\fR" 4
18865 .IX Item "-m5200"
18866 Generate output for a 520X ColdFire \s-1CPU.\s0  This is the default
18867 when the compiler is configured for 520X\-based systems.
18868 It is equivalent to \fB\-mcpu=5206\fR, and is now deprecated
18869 in favor of that option.
18870 .Sp
18871 Use this option for microcontroller with a 5200 core, including
18872 the \s-1MCF5202, MCF5203, MCF5204\s0 and \s-1MCF5206.\s0
18873 .IP "\fB\-m5206e\fR" 4
18874 .IX Item "-m5206e"
18875 Generate output for a 5206e ColdFire \s-1CPU.\s0  The option is now
18876 deprecated in favor of the equivalent \fB\-mcpu=5206e\fR.
18877 .IP "\fB\-m528x\fR" 4
18878 .IX Item "-m528x"
18879 Generate output for a member of the ColdFire 528X family.
18880 The option is now deprecated in favor of the equivalent
18881 \&\fB\-mcpu=528x\fR.
18882 .IP "\fB\-m5307\fR" 4
18883 .IX Item "-m5307"
18884 Generate output for a ColdFire 5307 \s-1CPU.\s0  The option is now deprecated
18885 in favor of the equivalent \fB\-mcpu=5307\fR.
18886 .IP "\fB\-m5407\fR" 4
18887 .IX Item "-m5407"
18888 Generate output for a ColdFire 5407 \s-1CPU.\s0  The option is now deprecated
18889 in favor of the equivalent \fB\-mcpu=5407\fR.
18890 .IP "\fB\-mcfv4e\fR" 4
18891 .IX Item "-mcfv4e"
18892 Generate output for a ColdFire V4e family \s-1CPU\s0 (e.g. 547x/548x).
18893 This includes use of hardware floating-point instructions.
18894 The option is equivalent to \fB\-mcpu=547x\fR, and is now
18895 deprecated in favor of that option.
18896 .IP "\fB\-m68020\-40\fR" 4
18897 .IX Item "-m68020-40"
18898 Generate output for a 68040, without using any of the new instructions.
18899 This results in code that can run relatively efficiently on either a
18900 68020/68881 or a 68030 or a 68040.  The generated code does use the
18901 68881 instructions that are emulated on the 68040.
18902 .Sp
18903 The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-40\fR.
18904 .IP "\fB\-m68020\-60\fR" 4
18905 .IX Item "-m68020-60"
18906 Generate output for a 68060, without using any of the new instructions.
18907 This results in code that can run relatively efficiently on either a
18908 68020/68881 or a 68030 or a 68040.  The generated code does use the
18909 68881 instructions that are emulated on the 68060.
18910 .Sp
18911 The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-60\fR.
18912 .IP "\fB\-mhard\-float\fR" 4
18913 .IX Item "-mhard-float"
18914 .PD 0
18915 .IP "\fB\-m68881\fR" 4
18916 .IX Item "-m68881"
18917 .PD
18918 Generate floating-point instructions.  This is the default for 68020
18919 and above, and for ColdFire devices that have an \s-1FPU.\s0  It defines the
18920 macro \f(CW\*(C`_\|_HAVE_68881_\|_\*(C'\fR on M680x0 targets and \f(CW\*(C`_\|_mcffpu_\|_\*(C'\fR
18921 on ColdFire targets.
18922 .IP "\fB\-msoft\-float\fR" 4
18923 .IX Item "-msoft-float"
18924 Do not generate floating-point instructions; use library calls instead.
18925 This is the default for 68000, 68010, and 68832 targets.  It is also
18926 the default for ColdFire devices that have no \s-1FPU.\s0
18927 .IP "\fB\-mdiv\fR" 4
18928 .IX Item "-mdiv"
18929 .PD 0
18930 .IP "\fB\-mno\-div\fR" 4
18931 .IX Item "-mno-div"
18932 .PD
18933 Generate (do not generate) ColdFire hardware divide and remainder
18934 instructions.  If \fB\-march\fR is used without \fB\-mcpu\fR,
18935 the default is \*(L"on\*(R" for ColdFire architectures and \*(L"off\*(R" for M680x0
18936 architectures.  Otherwise, the default is taken from the target \s-1CPU\s0
18937 (either the default \s-1CPU,\s0 or the one specified by \fB\-mcpu\fR).  For
18938 example, the default is \*(L"off\*(R" for \fB\-mcpu=5206\fR and \*(L"on\*(R" for
18939 \&\fB\-mcpu=5206e\fR.
18940 .Sp
18941 \&\s-1GCC\s0 defines the macro \f(CW\*(C`_\|_mcfhwdiv_\|_\*(C'\fR when this option is enabled.
18942 .IP "\fB\-mshort\fR" 4
18943 .IX Item "-mshort"
18944 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
18945 Additionally, parameters passed on the stack are also aligned to a
18946 16\-bit boundary even on targets whose \s-1API\s0 mandates promotion to 32\-bit.
18947 .IP "\fB\-mno\-short\fR" 4
18948 .IX Item "-mno-short"
18949 Do not consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide.  This is the default.
18950 .IP "\fB\-mnobitfield\fR" 4
18951 .IX Item "-mnobitfield"
18952 .PD 0
18953 .IP "\fB\-mno\-bitfield\fR" 4
18954 .IX Item "-mno-bitfield"
18955 .PD
18956 Do not use the bit-field instructions.  The \fB\-m68000\fR, \fB\-mcpu32\fR
18957 and \fB\-m5200\fR options imply \fB\-mnobitfield\fR.
18958 .IP "\fB\-mbitfield\fR" 4
18959 .IX Item "-mbitfield"
18960 Do use the bit-field instructions.  The \fB\-m68020\fR option implies
18961 \&\fB\-mbitfield\fR.  This is the default if you use a configuration
18962 designed for a 68020.
18963 .IP "\fB\-mrtd\fR" 4
18964 .IX Item "-mrtd"
18965 Use a different function-calling convention, in which functions
18966 that take a fixed number of arguments return with the \f(CW\*(C`rtd\*(C'\fR
18967 instruction, which pops their arguments while returning.  This
18968 saves one instruction in the caller since there is no need to pop
18969 the arguments there.
18970 .Sp
18971 This calling convention is incompatible with the one normally
18972 used on Unix, so you cannot use it if you need to call libraries
18973 compiled with the Unix compiler.
18974 .Sp
18975 Also, you must provide function prototypes for all functions that
18976 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
18977 otherwise incorrect code is generated for calls to those
18978 functions.
18979 .Sp
18980 In addition, seriously incorrect code results if you call a
18981 function with too many arguments.  (Normally, extra arguments are
18982 harmlessly ignored.)
18983 .Sp
18984 The \f(CW\*(C`rtd\*(C'\fR instruction is supported by the 68010, 68020, 68030,
18985 68040, 68060 and \s-1CPU32\s0 processors, but not by the 68000 or 5200.
18986 .IP "\fB\-mno\-rtd\fR" 4
18987 .IX Item "-mno-rtd"
18988 Do not use the calling conventions selected by \fB\-mrtd\fR.
18989 This is the default.
18990 .IP "\fB\-malign\-int\fR" 4
18991 .IX Item "-malign-int"
18992 .PD 0
18993 .IP "\fB\-mno\-align\-int\fR" 4
18994 .IX Item "-mno-align-int"
18995 .PD
18996 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,
18997 \&\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
18998 boundary (\fB\-malign\-int\fR) or a 16\-bit boundary (\fB\-mno\-align\-int\fR).
18999 Aligning variables on 32\-bit boundaries produces code that runs somewhat
19000 faster on processors with 32\-bit busses at the expense of more memory.
19001 .Sp
19002 \&\fBWarning:\fR if you use the \fB\-malign\-int\fR switch, \s-1GCC\s0
19003 aligns structures containing the above types differently than
19004 most published application binary interface specifications for the m68k.
19005 .IP "\fB\-mpcrel\fR" 4
19006 .IX Item "-mpcrel"
19007 Use the pc-relative addressing mode of the 68000 directly, instead of
19008 using a global offset table.  At present, this option implies \fB\-fpic\fR,
19009 allowing at most a 16\-bit offset for pc-relative addressing.  \fB\-fPIC\fR is
19010 not presently supported with \fB\-mpcrel\fR, though this could be supported for
19011 68020 and higher processors.
19012 .IP "\fB\-mno\-strict\-align\fR" 4
19013 .IX Item "-mno-strict-align"
19014 .PD 0
19015 .IP "\fB\-mstrict\-align\fR" 4
19016 .IX Item "-mstrict-align"
19017 .PD
19018 Do not (do) assume that unaligned memory references are handled by
19019 the system.
19020 .IP "\fB\-msep\-data\fR" 4
19021 .IX Item "-msep-data"
19022 Generate code that allows the data segment to be located in a different
19023 area of memory from the text segment.  This allows for execute-in-place in
19024 an environment without virtual memory management.  This option implies
19025 \&\fB\-fPIC\fR.
19026 .IP "\fB\-mno\-sep\-data\fR" 4
19027 .IX Item "-mno-sep-data"
19028 Generate code that assumes that the data segment follows the text segment.
19029 This is the default.
19030 .IP "\fB\-mid\-shared\-library\fR" 4
19031 .IX Item "-mid-shared-library"
19032 Generate code that supports shared libraries via the library \s-1ID\s0 method.
19033 This allows for execute-in-place and shared libraries in an environment
19034 without virtual memory management.  This option implies \fB\-fPIC\fR.
19035 .IP "\fB\-mno\-id\-shared\-library\fR" 4
19036 .IX Item "-mno-id-shared-library"
19037 Generate code that doesn't assume ID-based shared libraries are being used.
19038 This is the default.
19039 .IP "\fB\-mshared\-library\-id=n\fR" 4
19040 .IX Item "-mshared-library-id=n"
19041 Specifies the identification number of the ID-based shared library being
19042 compiled.  Specifying a value of 0 generates more compact code; specifying
19043 other values forces the allocation of that number to the current
19044 library, but is no more space\- or time-efficient than omitting this option.
19045 .IP "\fB\-mxgot\fR" 4
19046 .IX Item "-mxgot"
19047 .PD 0
19048 .IP "\fB\-mno\-xgot\fR" 4
19049 .IX Item "-mno-xgot"
19050 .PD
19051 When generating position-independent code for ColdFire, generate code
19052 that works if the \s-1GOT\s0 has more than 8192 entries.  This code is
19053 larger and slower than code generated without this option.  On M680x0
19054 processors, this option is not needed; \fB\-fPIC\fR suffices.
19055 .Sp
19056 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT.\s0
19057 While this is relatively efficient, it only works if the \s-1GOT\s0
19058 is smaller than about 64k.  Anything larger causes the linker
19059 to report an error such as:
19060 .Sp
19061 .Vb 1
19062 \&        relocation truncated to fit: R_68K_GOT16O foobar
19063 .Ve
19064 .Sp
19065 If this happens, you should recompile your code with \fB\-mxgot\fR.
19066 It should then work with very large GOTs.  However, code generated with
19067 \&\fB\-mxgot\fR is less efficient, since it takes 4 instructions to fetch
19068 the value of a global symbol.
19069 .Sp
19070 Note that some linkers, including newer versions of the \s-1GNU\s0 linker,
19071 can create multiple GOTs and sort \s-1GOT\s0 entries.  If you have such a linker,
19072 you should only need to use \fB\-mxgot\fR when compiling a single
19073 object file that accesses more than 8192 \s-1GOT\s0 entries.  Very few do.
19074 .Sp
19075 These options have no effect unless \s-1GCC\s0 is generating
19076 position-independent code.
19077 .IP "\fB\-mlong\-jump\-table\-offsets\fR" 4
19078 .IX Item "-mlong-jump-table-offsets"
19079 Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables.  The default is to use
19080 16\-bit offsets.
19081 .PP
19082 \fIMCore Options\fR
19083 .IX Subsection "MCore Options"
19084 .PP
19085 These are the \fB\-m\fR options defined for the Motorola M*Core
19086 processors.
19087 .IP "\fB\-mhardlit\fR" 4
19088 .IX Item "-mhardlit"
19089 .PD 0
19090 .IP "\fB\-mno\-hardlit\fR" 4
19091 .IX Item "-mno-hardlit"
19092 .PD
19093 Inline constants into the code stream if it can be done in two
19094 instructions or less.
19095 .IP "\fB\-mdiv\fR" 4
19096 .IX Item "-mdiv"
19097 .PD 0
19098 .IP "\fB\-mno\-div\fR" 4
19099 .IX Item "-mno-div"
19100 .PD
19101 Use the divide instruction.  (Enabled by default).
19102 .IP "\fB\-mrelax\-immediate\fR" 4
19103 .IX Item "-mrelax-immediate"
19104 .PD 0
19105 .IP "\fB\-mno\-relax\-immediate\fR" 4
19106 .IX Item "-mno-relax-immediate"
19107 .PD
19108 Allow arbitrary-sized immediates in bit operations.
19109 .IP "\fB\-mwide\-bitfields\fR" 4
19110 .IX Item "-mwide-bitfields"
19111 .PD 0
19112 .IP "\fB\-mno\-wide\-bitfields\fR" 4
19113 .IX Item "-mno-wide-bitfields"
19114 .PD
19115 Always treat bit-fields as \f(CW\*(C`int\*(C'\fR\-sized.
19116 .IP "\fB\-m4byte\-functions\fR" 4
19117 .IX Item "-m4byte-functions"
19118 .PD 0
19119 .IP "\fB\-mno\-4byte\-functions\fR" 4
19120 .IX Item "-mno-4byte-functions"
19121 .PD
19122 Force all functions to be aligned to a 4\-byte boundary.
19123 .IP "\fB\-mcallgraph\-data\fR" 4
19124 .IX Item "-mcallgraph-data"
19125 .PD 0
19126 .IP "\fB\-mno\-callgraph\-data\fR" 4
19127 .IX Item "-mno-callgraph-data"
19128 .PD
19129 Emit callgraph information.
19130 .IP "\fB\-mslow\-bytes\fR" 4
19131 .IX Item "-mslow-bytes"
19132 .PD 0
19133 .IP "\fB\-mno\-slow\-bytes\fR" 4
19134 .IX Item "-mno-slow-bytes"
19135 .PD
19136 Prefer word access when reading byte quantities.
19137 .IP "\fB\-mlittle\-endian\fR" 4
19138 .IX Item "-mlittle-endian"
19139 .PD 0
19140 .IP "\fB\-mbig\-endian\fR" 4
19141 .IX Item "-mbig-endian"
19142 .PD
19143 Generate code for a little-endian target.
19144 .IP "\fB\-m210\fR" 4
19145 .IX Item "-m210"
19146 .PD 0
19147 .IP "\fB\-m340\fR" 4
19148 .IX Item "-m340"
19149 .PD
19150 Generate code for the 210 processor.
19151 .IP "\fB\-mno\-lsim\fR" 4
19152 .IX Item "-mno-lsim"
19153 Assume that runtime support has been provided and so omit the
19154 simulator library (\fIlibsim.a)\fR from the linker command line.
19155 .IP "\fB\-mstack\-increment=\fR\fIsize\fR" 4
19156 .IX Item "-mstack-increment=size"
19157 Set the maximum amount for a single stack increment operation.  Large
19158 values can increase the speed of programs that contain functions
19159 that need a large amount of stack space, but they can also trigger a
19160 segmentation fault if the stack is extended too much.  The default
19161 value is 0x1000.
19162 .PP
19163 \fIMeP Options\fR
19164 .IX Subsection "MeP Options"
19165 .IP "\fB\-mabsdiff\fR" 4
19166 .IX Item "-mabsdiff"
19167 Enables the \f(CW\*(C`abs\*(C'\fR instruction, which is the absolute difference
19168 between two registers.
19169 .IP "\fB\-mall\-opts\fR" 4
19170 .IX Item "-mall-opts"
19171 Enables all the optional instructions\-\-\-average, multiply, divide, bit
19172 operations, leading zero, absolute difference, min/max, clip, and
19173 saturation.
19174 .IP "\fB\-maverage\fR" 4
19175 .IX Item "-maverage"
19176 Enables the \f(CW\*(C`ave\*(C'\fR instruction, which computes the average of two
19177 registers.
19178 .IP "\fB\-mbased=\fR\fIn\fR" 4
19179 .IX Item "-mbased=n"
19180 Variables of size \fIn\fR bytes or smaller are placed in the
19181 \&\f(CW\*(C`.based\*(C'\fR section by default.  Based variables use the \f(CW$tp\fR
19182 register as a base register, and there is a 128\-byte limit to the
19183 \&\f(CW\*(C`.based\*(C'\fR section.
19184 .IP "\fB\-mbitops\fR" 4
19185 .IX Item "-mbitops"
19186 Enables the bit operation instructions\-\-\-bit test (\f(CW\*(C`btstm\*(C'\fR), set
19187 (\f(CW\*(C`bsetm\*(C'\fR), clear (\f(CW\*(C`bclrm\*(C'\fR), invert (\f(CW\*(C`bnotm\*(C'\fR), and
19188 test-and-set (\f(CW\*(C`tas\*(C'\fR).
19189 .IP "\fB\-mc=\fR\fIname\fR" 4
19190 .IX Item "-mc=name"
19191 Selects which section constant data is placed in.  \fIname\fR may
19192 be \fBtiny\fR, \fBnear\fR, or \fBfar\fR.
19193 .IP "\fB\-mclip\fR" 4
19194 .IX Item "-mclip"
19195 Enables the \f(CW\*(C`clip\*(C'\fR instruction.  Note that \fB\-mclip\fR is not
19196 useful unless you also provide \fB\-mminmax\fR.
19197 .IP "\fB\-mconfig=\fR\fIname\fR" 4
19198 .IX Item "-mconfig=name"
19199 Selects one of the built-in core configurations.  Each MeP chip has
19200 one or more modules in it; each module has a core \s-1CPU\s0 and a variety of
19201 coprocessors, optional instructions, and peripherals.  The
19202 \&\f(CW\*(C`MeP\-Integrator\*(C'\fR tool, not part of \s-1GCC,\s0 provides these
19203 configurations through this option; using this option is the same as
19204 using all the corresponding command-line options.  The default
19205 configuration is \fBdefault\fR.
19206 .IP "\fB\-mcop\fR" 4
19207 .IX Item "-mcop"
19208 Enables the coprocessor instructions.  By default, this is a 32\-bit
19209 coprocessor.  Note that the coprocessor is normally enabled via the
19210 \&\fB\-mconfig=\fR option.
19211 .IP "\fB\-mcop32\fR" 4
19212 .IX Item "-mcop32"
19213 Enables the 32\-bit coprocessor's instructions.
19214 .IP "\fB\-mcop64\fR" 4
19215 .IX Item "-mcop64"
19216 Enables the 64\-bit coprocessor's instructions.
19217 .IP "\fB\-mivc2\fR" 4
19218 .IX Item "-mivc2"
19219 Enables \s-1IVC2\s0 scheduling.  \s-1IVC2\s0 is a 64\-bit \s-1VLIW\s0 coprocessor.
19220 .IP "\fB\-mdc\fR" 4
19221 .IX Item "-mdc"
19222 Causes constant variables to be placed in the \f(CW\*(C`.near\*(C'\fR section.
19223 .IP "\fB\-mdiv\fR" 4
19224 .IX Item "-mdiv"
19225 Enables the \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`divu\*(C'\fR instructions.
19226 .IP "\fB\-meb\fR" 4
19227 .IX Item "-meb"
19228 Generate big-endian code.
19229 .IP "\fB\-mel\fR" 4
19230 .IX Item "-mel"
19231 Generate little-endian code.
19232 .IP "\fB\-mio\-volatile\fR" 4
19233 .IX Item "-mio-volatile"
19234 Tells the compiler that any variable marked with the \f(CW\*(C`io\*(C'\fR
19235 attribute is to be considered volatile.
19236 .IP "\fB\-ml\fR" 4
19237 .IX Item "-ml"
19238 Causes variables to be assigned to the \f(CW\*(C`.far\*(C'\fR section by default.
19239 .IP "\fB\-mleadz\fR" 4
19240 .IX Item "-mleadz"
19241 Enables the \f(CW\*(C`leadz\*(C'\fR (leading zero) instruction.
19242 .IP "\fB\-mm\fR" 4
19243 .IX Item "-mm"
19244 Causes variables to be assigned to the \f(CW\*(C`.near\*(C'\fR section by default.
19245 .IP "\fB\-mminmax\fR" 4
19246 .IX Item "-mminmax"
19247 Enables the \f(CW\*(C`min\*(C'\fR and \f(CW\*(C`max\*(C'\fR instructions.
19248 .IP "\fB\-mmult\fR" 4
19249 .IX Item "-mmult"
19250 Enables the multiplication and multiply-accumulate instructions.
19251 .IP "\fB\-mno\-opts\fR" 4
19252 .IX Item "-mno-opts"
19253 Disables all the optional instructions enabled by \fB\-mall\-opts\fR.
19254 .IP "\fB\-mrepeat\fR" 4
19255 .IX Item "-mrepeat"
19256 Enables the \f(CW\*(C`repeat\*(C'\fR and \f(CW\*(C`erepeat\*(C'\fR instructions, used for
19257 low-overhead looping.
19258 .IP "\fB\-ms\fR" 4
19259 .IX Item "-ms"
19260 Causes all variables to default to the \f(CW\*(C`.tiny\*(C'\fR section.  Note
19261 that there is a 65536\-byte limit to this section.  Accesses to these
19262 variables use the \f(CW%gp\fR base register.
19263 .IP "\fB\-msatur\fR" 4
19264 .IX Item "-msatur"
19265 Enables the saturation instructions.  Note that the compiler does not
19266 currently generate these itself, but this option is included for
19267 compatibility with other tools, like \f(CW\*(C`as\*(C'\fR.
19268 .IP "\fB\-msdram\fR" 4
19269 .IX Item "-msdram"
19270 Link the SDRAM-based runtime instead of the default ROM-based runtime.
19271 .IP "\fB\-msim\fR" 4
19272 .IX Item "-msim"
19273 Link the simulator run-time libraries.
19274 .IP "\fB\-msimnovec\fR" 4
19275 .IX Item "-msimnovec"
19276 Link the simulator runtime libraries, excluding built-in support
19277 for reset and exception vectors and tables.
19278 .IP "\fB\-mtf\fR" 4
19279 .IX Item "-mtf"
19280 Causes all functions to default to the \f(CW\*(C`.far\*(C'\fR section.  Without
19281 this option, functions default to the \f(CW\*(C`.near\*(C'\fR section.
19282 .IP "\fB\-mtiny=\fR\fIn\fR" 4
19283 .IX Item "-mtiny=n"
19284 Variables that are \fIn\fR bytes or smaller are allocated to the
19285 \&\f(CW\*(C`.tiny\*(C'\fR section.  These variables use the \f(CW$gp\fR base
19286 register.  The default for this option is 4, but note that there's a
19287 65536\-byte limit to the \f(CW\*(C`.tiny\*(C'\fR section.
19288 .PP
19289 \fIMicroBlaze Options\fR
19290 .IX Subsection "MicroBlaze Options"
19291 .IP "\fB\-msoft\-float\fR" 4
19292 .IX Item "-msoft-float"
19293 Use software emulation for floating point (default).
19294 .IP "\fB\-mhard\-float\fR" 4
19295 .IX Item "-mhard-float"
19296 Use hardware floating-point instructions.
19297 .IP "\fB\-mmemcpy\fR" 4
19298 .IX Item "-mmemcpy"
19299 Do not optimize block moves, use \f(CW\*(C`memcpy\*(C'\fR.
19300 .IP "\fB\-mno\-clearbss\fR" 4
19301 .IX Item "-mno-clearbss"
19302 This option is deprecated.  Use \fB\-fno\-zero\-initialized\-in\-bss\fR instead.
19303 .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
19304 .IX Item "-mcpu=cpu-type"
19305 Use features of, and schedule code for, the given \s-1CPU.\s0
19306 Supported values are in the format \fBv\fR\fIX\fR\fB.\fR\fI\s-1YY\s0\fR\fB.\fR\fIZ\fR,
19307 where \fIX\fR is a major version, \fI\s-1YY\s0\fR is the minor version, and
19308 \&\fIZ\fR is compatibility code.  Example values are \fBv3.00.a\fR,
19309 \&\fBv4.00.b\fR, \fBv5.00.a\fR, \fBv5.00.b\fR, \fBv6.00.a\fR.
19310 .IP "\fB\-mxl\-soft\-mul\fR" 4
19311 .IX Item "-mxl-soft-mul"
19312 Use software multiply emulation (default).
19313 .IP "\fB\-mxl\-soft\-div\fR" 4
19314 .IX Item "-mxl-soft-div"
19315 Use software emulation for divides (default).
19316 .IP "\fB\-mxl\-barrel\-shift\fR" 4
19317 .IX Item "-mxl-barrel-shift"
19318 Use the hardware barrel shifter.
19319 .IP "\fB\-mxl\-pattern\-compare\fR" 4
19320 .IX Item "-mxl-pattern-compare"
19321 Use pattern compare instructions.
19322 .IP "\fB\-msmall\-divides\fR" 4
19323 .IX Item "-msmall-divides"
19324 Use table lookup optimization for small signed integer divisions.
19325 .IP "\fB\-mxl\-stack\-check\fR" 4
19326 .IX Item "-mxl-stack-check"
19327 This option is deprecated.  Use \fB\-fstack\-check\fR instead.
19328 .IP "\fB\-mxl\-gp\-opt\fR" 4
19329 .IX Item "-mxl-gp-opt"
19330 Use GP-relative \f(CW\*(C`.sdata\*(C'\fR/\f(CW\*(C`.sbss\*(C'\fR sections.
19331 .IP "\fB\-mxl\-multiply\-high\fR" 4
19332 .IX Item "-mxl-multiply-high"
19333 Use multiply high instructions for high part of 32x32 multiply.
19334 .IP "\fB\-mxl\-float\-convert\fR" 4
19335 .IX Item "-mxl-float-convert"
19336 Use hardware floating-point conversion instructions.
19337 .IP "\fB\-mxl\-float\-sqrt\fR" 4
19338 .IX Item "-mxl-float-sqrt"
19339 Use hardware floating-point square root instruction.
19340 .IP "\fB\-mbig\-endian\fR" 4
19341 .IX Item "-mbig-endian"
19342 Generate code for a big-endian target.
19343 .IP "\fB\-mlittle\-endian\fR" 4
19344 .IX Item "-mlittle-endian"
19345 Generate code for a little-endian target.
19346 .IP "\fB\-mxl\-reorder\fR" 4
19347 .IX Item "-mxl-reorder"
19348 Use reorder instructions (swap and byte reversed load/store).
19349 .IP "\fB\-mxl\-mode\-\fR\fIapp-model\fR" 4
19350 .IX Item "-mxl-mode-app-model"
19351 Select application model \fIapp-model\fR.  Valid models are
19352 .RS 4
19353 .IP "\fBexecutable\fR" 4
19354 .IX Item "executable"
19355 normal executable (default), uses startup code \fIcrt0.o\fR.
19356 .IP "\fBxmdstub\fR" 4
19357 .IX Item "xmdstub"
19358 for use with Xilinx Microprocessor Debugger (\s-1XMD\s0) based
19359 software intrusive debug agent called xmdstub. This uses startup file
19360 \&\fIcrt1.o\fR and sets the start address of the program to 0x800.
19361 .IP "\fBbootstrap\fR" 4
19362 .IX Item "bootstrap"
19363 for applications that are loaded using a bootloader.
19364 This model uses startup file \fIcrt2.o\fR which does not contain a processor
19365 reset vector handler. This is suitable for transferring control on a
19366 processor reset to the bootloader rather than the application.
19367 .IP "\fBnovectors\fR" 4
19368 .IX Item "novectors"
19369 for applications that do not require any of the
19370 MicroBlaze vectors. This option may be useful for applications running
19371 within a monitoring application. This model uses \fIcrt3.o\fR as a startup file.
19372 .RE
19373 .RS 4
19374 .Sp
19375 Option \fB\-xl\-mode\-\fR\fIapp-model\fR is a deprecated alias for
19376 \&\fB\-mxl\-mode\-\fR\fIapp-model\fR.
19377 .RE
19378 .PP
19379 \fI\s-1MIPS\s0 Options\fR
19380 .IX Subsection "MIPS Options"
19381 .IP "\fB\-EB\fR" 4
19382 .IX Item "-EB"
19383 Generate big-endian code.
19384 .IP "\fB\-EL\fR" 4
19385 .IX Item "-EL"
19386 Generate little-endian code.  This is the default for \fBmips*el\-*\-*\fR
19387 configurations.
19388 .IP "\fB\-march=\fR\fIarch\fR" 4
19389 .IX Item "-march=arch"
19390 Generate code that runs on \fIarch\fR, which can be the name of a
19391 generic \s-1MIPS ISA,\s0 or the name of a particular processor.
19392 The \s-1ISA\s0 names are:
19393 \&\fBmips1\fR, \fBmips2\fR, \fBmips3\fR, \fBmips4\fR,
19394 \&\fBmips32\fR, \fBmips32r2\fR, \fBmips32r3\fR, \fBmips32r5\fR,
19395 \&\fBmips32r6\fR, \fBmips64\fR, \fBmips64r2\fR, \fBmips64r3\fR,
19396 \&\fBmips64r5\fR and \fBmips64r6\fR.
19397 The processor names are:
19398 \&\fB4kc\fR, \fB4km\fR, \fB4kp\fR, \fB4ksc\fR,
19399 \&\fB4kec\fR, \fB4kem\fR, \fB4kep\fR, \fB4ksd\fR,
19400 \&\fB5kc\fR, \fB5kf\fR,
19401 \&\fB20kc\fR,
19402 \&\fB24kc\fR, \fB24kf2_1\fR, \fB24kf1_1\fR,
19403 \&\fB24kec\fR, \fB24kef2_1\fR, \fB24kef1_1\fR,
19404 \&\fB34kc\fR, \fB34kf2_1\fR, \fB34kf1_1\fR, \fB34kn\fR,
19405 \&\fB74kc\fR, \fB74kf2_1\fR, \fB74kf1_1\fR, \fB74kf3_2\fR,
19406 \&\fB1004kc\fR, \fB1004kf2_1\fR, \fB1004kf1_1\fR,
19407 \&\fBi6400\fR,
19408 \&\fBinteraptiv\fR,
19409 \&\fBloongson2e\fR, \fBloongson2f\fR, \fBloongson3a\fR,
19410 \&\fBm4k\fR,
19411 \&\fBm14k\fR, \fBm14kc\fR, \fBm14ke\fR, \fBm14kec\fR,
19412 \&\fBm5100\fR, \fBm5101\fR,
19413 \&\fBocteon\fR, \fBocteon+\fR, \fBocteon2\fR, \fBocteon3\fR,
19414 \&\fBorion\fR,
19415 \&\fBp5600\fR,
19416 \&\fBr2000\fR, \fBr3000\fR, \fBr3900\fR, \fBr4000\fR, \fBr4400\fR,
19417 \&\fBr4600\fR, \fBr4650\fR, \fBr4700\fR, \fBr6000\fR, \fBr8000\fR,
19418 \&\fBrm7000\fR, \fBrm9000\fR,
19419 \&\fBr10000\fR, \fBr12000\fR, \fBr14000\fR, \fBr16000\fR,
19420 \&\fBsb1\fR,
19421 \&\fBsr71000\fR,
19422 \&\fBvr4100\fR, \fBvr4111\fR, \fBvr4120\fR, \fBvr4130\fR, \fBvr4300\fR,
19423 \&\fBvr5000\fR, \fBvr5400\fR, \fBvr5500\fR,
19424 \&\fBxlr\fR and \fBxlp\fR.
19425 The special value \fBfrom-abi\fR selects the
19426 most compatible architecture for the selected \s-1ABI\s0 (that is,
19427 \&\fBmips1\fR for 32\-bit ABIs and \fBmips3\fR for 64\-bit ABIs).
19428 .Sp
19429 The native Linux/GNU toolchain also supports the value \fBnative\fR,
19430 which selects the best architecture option for the host processor.
19431 \&\fB\-march=native\fR has no effect if \s-1GCC\s0 does not recognize
19432 the processor.
19433 .Sp
19434 In processor names, a final \fB000\fR can be abbreviated as \fBk\fR
19435 (for example, \fB\-march=r2k\fR).  Prefixes are optional, and
19436 \&\fBvr\fR may be written \fBr\fR.
19437 .Sp
19438 Names of the form \fIn\fR\fBf2_1\fR refer to processors with
19439 FPUs clocked at half the rate of the core, names of the form
19440 \&\fIn\fR\fBf1_1\fR refer to processors with FPUs clocked at the same
19441 rate as the core, and names of the form \fIn\fR\fBf3_2\fR refer to
19442 processors with FPUs clocked a ratio of 3:2 with respect to the core.
19443 For compatibility reasons, \fIn\fR\fBf\fR is accepted as a synonym
19444 for \fIn\fR\fBf2_1\fR while \fIn\fR\fBx\fR and \fIb\fR\fBfx\fR are
19445 accepted as synonyms for \fIn\fR\fBf1_1\fR.
19446 .Sp
19447 \&\s-1GCC\s0 defines two macros based on the value of this option.  The first
19448 is \f(CW\*(C`_MIPS_ARCH\*(C'\fR, which gives the name of target architecture, as
19449 a string.  The second has the form \f(CW\*(C`_MIPS_ARCH_\f(CIfoo\f(CW\*(C'\fR,
19450 where \fIfoo\fR is the capitalized value of \f(CW\*(C`_MIPS_ARCH\*(C'\fR.
19451 For example, \fB\-march=r2000\fR sets \f(CW\*(C`_MIPS_ARCH\*(C'\fR
19452 to \f(CW"r2000"\fR and defines the macro \f(CW\*(C`_MIPS_ARCH_R2000\*(C'\fR.
19453 .Sp
19454 Note that the \f(CW\*(C`_MIPS_ARCH\*(C'\fR macro uses the processor names given
19455 above.  In other words, it has the full prefix and does not
19456 abbreviate \fB000\fR as \fBk\fR.  In the case of \fBfrom-abi\fR,
19457 the macro names the resolved architecture (either \f(CW"mips1"\fR or
19458 \&\f(CW"mips3"\fR).  It names the default architecture when no
19459 \&\fB\-march\fR option is given.
19460 .IP "\fB\-mtune=\fR\fIarch\fR" 4
19461 .IX Item "-mtune=arch"
19462 Optimize for \fIarch\fR.  Among other things, this option controls
19463 the way instructions are scheduled, and the perceived cost of arithmetic
19464 operations.  The list of \fIarch\fR values is the same as for
19465 \&\fB\-march\fR.
19466 .Sp
19467 When this option is not used, \s-1GCC\s0 optimizes for the processor
19468 specified by \fB\-march\fR.  By using \fB\-march\fR and
19469 \&\fB\-mtune\fR together, it is possible to generate code that
19470 runs on a family of processors, but optimize the code for one
19471 particular member of that family.
19472 .Sp
19473 \&\fB\-mtune\fR defines the macros \f(CW\*(C`_MIPS_TUNE\*(C'\fR and
19474 \&\f(CW\*(C`_MIPS_TUNE_\f(CIfoo\f(CW\*(C'\fR, which work in the same way as the
19475 \&\fB\-march\fR ones described above.
19476 .IP "\fB\-mips1\fR" 4
19477 .IX Item "-mips1"
19478 Equivalent to \fB\-march=mips1\fR.
19479 .IP "\fB\-mips2\fR" 4
19480 .IX Item "-mips2"
19481 Equivalent to \fB\-march=mips2\fR.
19482 .IP "\fB\-mips3\fR" 4
19483 .IX Item "-mips3"
19484 Equivalent to \fB\-march=mips3\fR.
19485 .IP "\fB\-mips4\fR" 4
19486 .IX Item "-mips4"
19487 Equivalent to \fB\-march=mips4\fR.
19488 .IP "\fB\-mips32\fR" 4
19489 .IX Item "-mips32"
19490 Equivalent to \fB\-march=mips32\fR.
19491 .IP "\fB\-mips32r3\fR" 4
19492 .IX Item "-mips32r3"
19493 Equivalent to \fB\-march=mips32r3\fR.
19494 .IP "\fB\-mips32r5\fR" 4
19495 .IX Item "-mips32r5"
19496 Equivalent to \fB\-march=mips32r5\fR.
19497 .IP "\fB\-mips32r6\fR" 4
19498 .IX Item "-mips32r6"
19499 Equivalent to \fB\-march=mips32r6\fR.
19500 .IP "\fB\-mips64\fR" 4
19501 .IX Item "-mips64"
19502 Equivalent to \fB\-march=mips64\fR.
19503 .IP "\fB\-mips64r2\fR" 4
19504 .IX Item "-mips64r2"
19505 Equivalent to \fB\-march=mips64r2\fR.
19506 .IP "\fB\-mips64r3\fR" 4
19507 .IX Item "-mips64r3"
19508 Equivalent to \fB\-march=mips64r3\fR.
19509 .IP "\fB\-mips64r5\fR" 4
19510 .IX Item "-mips64r5"
19511 Equivalent to \fB\-march=mips64r5\fR.
19512 .IP "\fB\-mips64r6\fR" 4
19513 .IX Item "-mips64r6"
19514 Equivalent to \fB\-march=mips64r6\fR.
19515 .IP "\fB\-mips16\fR" 4
19516 .IX Item "-mips16"
19517 .PD 0
19518 .IP "\fB\-mno\-mips16\fR" 4
19519 .IX Item "-mno-mips16"
19520 .PD
19521 Generate (do not generate) \s-1MIPS16\s0 code.  If \s-1GCC\s0 is targeting a
19522 \&\s-1MIPS32\s0 or \s-1MIPS64\s0 architecture, it makes use of the MIPS16e \s-1ASE.\s0
19523 .Sp
19524 \&\s-1MIPS16\s0 code generation can also be controlled on a per-function basis
19525 by means of \f(CW\*(C`mips16\*(C'\fR and \f(CW\*(C`nomips16\*(C'\fR attributes.
19526 .IP "\fB\-mflip\-mips16\fR" 4
19527 .IX Item "-mflip-mips16"
19528 Generate \s-1MIPS16\s0 code on alternating functions.  This option is provided
19529 for regression testing of mixed MIPS16/non\-MIPS16 code generation, and is
19530 not intended for ordinary use in compiling user code.
19531 .IP "\fB\-minterlink\-compressed\fR" 4
19532 .IX Item "-minterlink-compressed"
19533 .PD 0
19534 .IP "\fB\-mno\-interlink\-compressed\fR" 4
19535 .IX Item "-mno-interlink-compressed"
19536 .PD
19537 Require (do not require) that code using the standard (uncompressed) \s-1MIPS ISA\s0
19538 be link-compatible with \s-1MIPS16\s0 and microMIPS code, and vice versa.
19539 .Sp
19540 For example, code using the standard \s-1ISA\s0 encoding cannot jump directly
19541 to \s-1MIPS16\s0 or microMIPS code; it must either use a call or an indirect jump.
19542 \&\fB\-minterlink\-compressed\fR therefore disables direct jumps unless \s-1GCC\s0
19543 knows that the target of the jump is not compressed.
19544 .IP "\fB\-minterlink\-mips16\fR" 4
19545 .IX Item "-minterlink-mips16"
19546 .PD 0
19547 .IP "\fB\-mno\-interlink\-mips16\fR" 4
19548 .IX Item "-mno-interlink-mips16"
19549 .PD
19550 Aliases of \fB\-minterlink\-compressed\fR and
19551 \&\fB\-mno\-interlink\-compressed\fR.  These options predate the microMIPS \s-1ASE\s0
19552 and are retained for backwards compatibility.
19553 .IP "\fB\-mabi=32\fR" 4
19554 .IX Item "-mabi=32"
19555 .PD 0
19556 .IP "\fB\-mabi=o64\fR" 4
19557 .IX Item "-mabi=o64"
19558 .IP "\fB\-mabi=n32\fR" 4
19559 .IX Item "-mabi=n32"
19560 .IP "\fB\-mabi=64\fR" 4
19561 .IX Item "-mabi=64"
19562 .IP "\fB\-mabi=eabi\fR" 4
19563 .IX Item "-mabi=eabi"
19564 .PD
19565 Generate code for the given \s-1ABI.\s0
19566 .Sp
19567 Note that the \s-1EABI\s0 has a 32\-bit and a 64\-bit variant.  \s-1GCC\s0 normally
19568 generates 64\-bit code when you select a 64\-bit architecture, but you
19569 can use \fB\-mgp32\fR to get 32\-bit code instead.
19570 .Sp
19571 For information about the O64 \s-1ABI,\s0 see
19572 <\fBhttp://gcc.gnu.org/projects/mipso64\-abi.html\fR>.
19573 .Sp
19574 \&\s-1GCC\s0 supports a variant of the o32 \s-1ABI\s0 in which floating-point registers
19575 are 64 rather than 32 bits wide.  You can select this combination with
19576 \&\fB\-mabi=32\fR \fB\-mfp64\fR.  This \s-1ABI\s0 relies on the \f(CW\*(C`mthc1\*(C'\fR
19577 and \f(CW\*(C`mfhc1\*(C'\fR instructions and is therefore only supported for
19578 \&\s-1MIPS32R2, MIPS32R3\s0 and \s-1MIPS32R5\s0 processors.
19579 .Sp
19580 The register assignments for arguments and return values remain the
19581 same, but each scalar value is passed in a single 64\-bit register
19582 rather than a pair of 32\-bit registers.  For example, scalar
19583 floating-point values are returned in \fB\f(CB$f0\fB\fR only, not a
19584 \&\fB\f(CB$f0\fB\fR/\fB\f(CB$f1\fB\fR pair.  The set of call-saved registers also
19585 remains the same in that the even-numbered double-precision registers
19586 are saved.
19587 .Sp
19588 Two additional variants of the o32 \s-1ABI\s0 are supported to enable
19589 a transition from 32\-bit to 64\-bit registers.  These are \s-1FPXX\s0
19590 (\fB\-mfpxx\fR) and \s-1FP64A\s0 (\fB\-mfp64\fR \fB\-mno\-odd\-spreg\fR).
19591 The \s-1FPXX\s0 extension mandates that all code must execute correctly
19592 when run using 32\-bit or 64\-bit registers.  The code can be interlinked
19593 with either \s-1FP32\s0 or \s-1FP64,\s0 but not both.
19594 The \s-1FP64A\s0 extension is similar to the \s-1FP64\s0 extension but forbids the
19595 use of odd-numbered single-precision registers.  This can be used
19596 in conjunction with the \f(CW\*(C`FRE\*(C'\fR mode of FPUs in \s-1MIPS32R5\s0
19597 processors and allows both \s-1FP32\s0 and \s-1FP64A\s0 code to interlink and
19598 run in the same process without changing \s-1FPU\s0 modes.
19599 .IP "\fB\-mabicalls\fR" 4
19600 .IX Item "-mabicalls"
19601 .PD 0
19602 .IP "\fB\-mno\-abicalls\fR" 4
19603 .IX Item "-mno-abicalls"
19604 .PD
19605 Generate (do not generate) code that is suitable for SVR4\-style
19606 dynamic objects.  \fB\-mabicalls\fR is the default for SVR4\-based
19607 systems.
19608 .IP "\fB\-mshared\fR" 4
19609 .IX Item "-mshared"
19610 .PD 0
19611 .IP "\fB\-mno\-shared\fR" 4
19612 .IX Item "-mno-shared"
19613 .PD
19614 Generate (do not generate) code that is fully position-independent,
19615 and that can therefore be linked into shared libraries.  This option
19616 only affects \fB\-mabicalls\fR.
19617 .Sp
19618 All \fB\-mabicalls\fR code has traditionally been position-independent,
19619 regardless of options like \fB\-fPIC\fR and \fB\-fpic\fR.  However,
19620 as an extension, the \s-1GNU\s0 toolchain allows executables to use absolute
19621 accesses for locally-binding symbols.  It can also use shorter \s-1GP\s0
19622 initialization sequences and generate direct calls to locally-defined
19623 functions.  This mode is selected by \fB\-mno\-shared\fR.
19624 .Sp
19625 \&\fB\-mno\-shared\fR depends on binutils 2.16 or higher and generates
19626 objects that can only be linked by the \s-1GNU\s0 linker.  However, the option
19627 does not affect the \s-1ABI\s0 of the final executable; it only affects the \s-1ABI\s0
19628 of relocatable objects.  Using \fB\-mno\-shared\fR generally makes
19629 executables both smaller and quicker.
19630 .Sp
19631 \&\fB\-mshared\fR is the default.
19632 .IP "\fB\-mplt\fR" 4
19633 .IX Item "-mplt"
19634 .PD 0
19635 .IP "\fB\-mno\-plt\fR" 4
19636 .IX Item "-mno-plt"
19637 .PD
19638 Assume (do not assume) that the static and dynamic linkers
19639 support PLTs and copy relocations.  This option only affects
19640 \&\fB\-mno\-shared \-mabicalls\fR.  For the n64 \s-1ABI,\s0 this option
19641 has no effect without \fB\-msym32\fR.
19642 .Sp
19643 You can make \fB\-mplt\fR the default by configuring
19644 \&\s-1GCC\s0 with \fB\-\-with\-mips\-plt\fR.  The default is
19645 \&\fB\-mno\-plt\fR otherwise.
19646 .IP "\fB\-mxgot\fR" 4
19647 .IX Item "-mxgot"
19648 .PD 0
19649 .IP "\fB\-mno\-xgot\fR" 4
19650 .IX Item "-mno-xgot"
19651 .PD
19652 Lift (do not lift) the usual restrictions on the size of the global
19653 offset table.
19654 .Sp
19655 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT.\s0
19656 While this is relatively efficient, it only works if the \s-1GOT\s0
19657 is smaller than about 64k.  Anything larger causes the linker
19658 to report an error such as:
19659 .Sp
19660 .Vb 1
19661 \&        relocation truncated to fit: R_MIPS_GOT16 foobar
19662 .Ve
19663 .Sp
19664 If this happens, you should recompile your code with \fB\-mxgot\fR.
19665 This works with very large GOTs, although the code is also
19666 less efficient, since it takes three instructions to fetch the
19667 value of a global symbol.
19668 .Sp
19669 Note that some linkers can create multiple GOTs.  If you have such a
19670 linker, you should only need to use \fB\-mxgot\fR when a single object
19671 file accesses more than 64k's worth of \s-1GOT\s0 entries.  Very few do.
19672 .Sp
19673 These options have no effect unless \s-1GCC\s0 is generating position
19674 independent code.
19675 .IP "\fB\-mgp32\fR" 4
19676 .IX Item "-mgp32"
19677 Assume that general-purpose registers are 32 bits wide.
19678 .IP "\fB\-mgp64\fR" 4
19679 .IX Item "-mgp64"
19680 Assume that general-purpose registers are 64 bits wide.
19681 .IP "\fB\-mfp32\fR" 4
19682 .IX Item "-mfp32"
19683 Assume that floating-point registers are 32 bits wide.
19684 .IP "\fB\-mfp64\fR" 4
19685 .IX Item "-mfp64"
19686 Assume that floating-point registers are 64 bits wide.
19687 .IP "\fB\-mfpxx\fR" 4
19688 .IX Item "-mfpxx"
19689 Do not assume the width of floating-point registers.
19690 .IP "\fB\-mhard\-float\fR" 4
19691 .IX Item "-mhard-float"
19692 Use floating-point coprocessor instructions.
19693 .IP "\fB\-msoft\-float\fR" 4
19694 .IX Item "-msoft-float"
19695 Do not use floating-point coprocessor instructions.  Implement
19696 floating-point calculations using library calls instead.
19697 .IP "\fB\-mno\-float\fR" 4
19698 .IX Item "-mno-float"
19699 Equivalent to \fB\-msoft\-float\fR, but additionally asserts that the
19700 program being compiled does not perform any floating-point operations.
19701 This option is presently supported only by some bare-metal \s-1MIPS\s0
19702 configurations, where it may select a special set of libraries
19703 that lack all floating-point support (including, for example, the
19704 floating-point \f(CW\*(C`printf\*(C'\fR formats).  
19705 If code compiled with \fB\-mno\-float\fR accidentally contains
19706 floating-point operations, it is likely to suffer a link-time
19707 or run-time failure.
19708 .IP "\fB\-msingle\-float\fR" 4
19709 .IX Item "-msingle-float"
19710 Assume that the floating-point coprocessor only supports single-precision
19711 operations.
19712 .IP "\fB\-mdouble\-float\fR" 4
19713 .IX Item "-mdouble-float"
19714 Assume that the floating-point coprocessor supports double-precision
19715 operations.  This is the default.
19716 .IP "\fB\-modd\-spreg\fR" 4
19717 .IX Item "-modd-spreg"
19718 .PD 0
19719 .IP "\fB\-mno\-odd\-spreg\fR" 4
19720 .IX Item "-mno-odd-spreg"
19721 .PD
19722 Enable the use of odd-numbered single-precision floating-point registers
19723 for the o32 \s-1ABI.\s0  This is the default for processors that are known to
19724 support these registers.  When using the o32 \s-1FPXX ABI,\s0 \fB\-mno\-odd\-spreg\fR
19725 is set by default.
19726 .IP "\fB\-mabs=2008\fR" 4
19727 .IX Item "-mabs=2008"
19728 .PD 0
19729 .IP "\fB\-mabs=legacy\fR" 4
19730 .IX Item "-mabs=legacy"
19731 .PD
19732 These options control the treatment of the special not-a-number (NaN)
19733 \&\s-1IEEE 754\s0 floating-point data with the \f(CW\*(C`abs.\f(CIfmt\f(CW\*(C'\fR and
19734 \&\f(CW\*(C`neg.\f(CIfmt\f(CW\*(C'\fR machine instructions.
19735 .Sp
19736 By default or when \fB\-mabs=legacy\fR is used the legacy
19737 treatment is selected.  In this case these instructions are considered
19738 arithmetic and avoided where correct operation is required and the
19739 input operand might be a NaN.  A longer sequence of instructions that
19740 manipulate the sign bit of floating-point datum manually is used
19741 instead unless the \fB\-ffinite\-math\-only\fR option has also been
19742 specified.
19743 .Sp
19744 The \fB\-mabs=2008\fR option selects the \s-1IEEE 754\-2008\s0 treatment.  In
19745 this case these instructions are considered non-arithmetic and therefore
19746 operating correctly in all cases, including in particular where the
19747 input operand is a NaN.  These instructions are therefore always used
19748 for the respective operations.
19749 .IP "\fB\-mnan=2008\fR" 4
19750 .IX Item "-mnan=2008"
19751 .PD 0
19752 .IP "\fB\-mnan=legacy\fR" 4
19753 .IX Item "-mnan=legacy"
19754 .PD
19755 These options control the encoding of the special not-a-number (NaN)
19756 \&\s-1IEEE 754\s0 floating-point data.
19757 .Sp
19758 The \fB\-mnan=legacy\fR option selects the legacy encoding.  In this
19759 case quiet NaNs (qNaNs) are denoted by the first bit of their trailing
19760 significand field being 0, whereas signaling NaNs (sNaNs) are denoted
19761 by the first bit of their trailing significand field being 1.
19762 .Sp
19763 The \fB\-mnan=2008\fR option selects the \s-1IEEE 754\-2008\s0 encoding.  In
19764 this case qNaNs are denoted by the first bit of their trailing
19765 significand field being 1, whereas sNaNs are denoted by the first bit of
19766 their trailing significand field being 0.
19767 .Sp
19768 The default is \fB\-mnan=legacy\fR unless \s-1GCC\s0 has been configured with
19769 \&\fB\-\-with\-nan=2008\fR.
19770 .IP "\fB\-mllsc\fR" 4
19771 .IX Item "-mllsc"
19772 .PD 0
19773 .IP "\fB\-mno\-llsc\fR" 4
19774 .IX Item "-mno-llsc"
19775 .PD
19776 Use (do not use) \fBll\fR, \fBsc\fR, and \fBsync\fR instructions to
19777 implement atomic memory built-in functions.  When neither option is
19778 specified, \s-1GCC\s0 uses the instructions if the target architecture
19779 supports them.
19780 .Sp
19781 \&\fB\-mllsc\fR is useful if the runtime environment can emulate the
19782 instructions and \fB\-mno\-llsc\fR can be useful when compiling for
19783 nonstandard ISAs.  You can make either option the default by
19784 configuring \s-1GCC\s0 with \fB\-\-with\-llsc\fR and \fB\-\-without\-llsc\fR
19785 respectively.  \fB\-\-with\-llsc\fR is the default for some
19786 configurations; see the installation documentation for details.
19787 .IP "\fB\-mdsp\fR" 4
19788 .IX Item "-mdsp"
19789 .PD 0
19790 .IP "\fB\-mno\-dsp\fR" 4
19791 .IX Item "-mno-dsp"
19792 .PD
19793 Use (do not use) revision 1 of the \s-1MIPS DSP ASE.\s0
19794   This option defines the
19795 preprocessor macro \f(CW\*(C`_\|_mips_dsp\*(C'\fR.  It also defines
19796 \&\f(CW\*(C`_\|_mips_dsp_rev\*(C'\fR to 1.
19797 .IP "\fB\-mdspr2\fR" 4
19798 .IX Item "-mdspr2"
19799 .PD 0
19800 .IP "\fB\-mno\-dspr2\fR" 4
19801 .IX Item "-mno-dspr2"
19802 .PD
19803 Use (do not use) revision 2 of the \s-1MIPS DSP ASE.\s0
19804   This option defines the
19805 preprocessor macros \f(CW\*(C`_\|_mips_dsp\*(C'\fR and \f(CW\*(C`_\|_mips_dspr2\*(C'\fR.
19806 It also defines \f(CW\*(C`_\|_mips_dsp_rev\*(C'\fR to 2.
19807 .IP "\fB\-msmartmips\fR" 4
19808 .IX Item "-msmartmips"
19809 .PD 0
19810 .IP "\fB\-mno\-smartmips\fR" 4
19811 .IX Item "-mno-smartmips"
19812 .PD
19813 Use (do not use) the \s-1MIPS\s0 SmartMIPS \s-1ASE.\s0
19814 .IP "\fB\-mpaired\-single\fR" 4
19815 .IX Item "-mpaired-single"
19816 .PD 0
19817 .IP "\fB\-mno\-paired\-single\fR" 4
19818 .IX Item "-mno-paired-single"
19819 .PD
19820 Use (do not use) paired-single floating-point instructions.
19821   This option requires
19822 hardware floating-point support to be enabled.
19823 .IP "\fB\-mdmx\fR" 4
19824 .IX Item "-mdmx"
19825 .PD 0
19826 .IP "\fB\-mno\-mdmx\fR" 4
19827 .IX Item "-mno-mdmx"
19828 .PD
19829 Use (do not use) \s-1MIPS\s0 Digital Media Extension instructions.
19830 This option can only be used when generating 64\-bit code and requires
19831 hardware floating-point support to be enabled.
19832 .IP "\fB\-mips3d\fR" 4
19833 .IX Item "-mips3d"
19834 .PD 0
19835 .IP "\fB\-mno\-mips3d\fR" 4
19836 .IX Item "-mno-mips3d"
19837 .PD
19838 Use (do not use) the \s-1MIPS\-3D ASE.\s0  
19839 The option \fB\-mips3d\fR implies \fB\-mpaired\-single\fR.
19840 .IP "\fB\-mmicromips\fR" 4
19841 .IX Item "-mmicromips"
19842 .PD 0
19843 .IP "\fB\-mno\-micromips\fR" 4
19844 .IX Item "-mno-micromips"
19845 .PD
19846 Generate (do not generate) microMIPS code.
19847 .Sp
19848 MicroMIPS code generation can also be controlled on a per-function basis
19849 by means of \f(CW\*(C`micromips\*(C'\fR and \f(CW\*(C`nomicromips\*(C'\fR attributes.
19850 .IP "\fB\-mmt\fR" 4
19851 .IX Item "-mmt"
19852 .PD 0
19853 .IP "\fB\-mno\-mt\fR" 4
19854 .IX Item "-mno-mt"
19855 .PD
19856 Use (do not use) \s-1MT\s0 Multithreading instructions.
19857 .IP "\fB\-mmcu\fR" 4
19858 .IX Item "-mmcu"
19859 .PD 0
19860 .IP "\fB\-mno\-mcu\fR" 4
19861 .IX Item "-mno-mcu"
19862 .PD
19863 Use (do not use) the \s-1MIPS MCU ASE\s0 instructions.
19864 .IP "\fB\-meva\fR" 4
19865 .IX Item "-meva"
19866 .PD 0
19867 .IP "\fB\-mno\-eva\fR" 4
19868 .IX Item "-mno-eva"
19869 .PD
19870 Use (do not use) the \s-1MIPS\s0 Enhanced Virtual Addressing instructions.
19871 .IP "\fB\-mvirt\fR" 4
19872 .IX Item "-mvirt"
19873 .PD 0
19874 .IP "\fB\-mno\-virt\fR" 4
19875 .IX Item "-mno-virt"
19876 .PD
19877 Use (do not use) the \s-1MIPS\s0 Virtualization (\s-1VZ\s0) instructions.
19878 .IP "\fB\-mxpa\fR" 4
19879 .IX Item "-mxpa"
19880 .PD 0
19881 .IP "\fB\-mno\-xpa\fR" 4
19882 .IX Item "-mno-xpa"
19883 .PD
19884 Use (do not use) the \s-1MIPS\s0 eXtended Physical Address (\s-1XPA\s0) instructions.
19885 .IP "\fB\-mlong64\fR" 4
19886 .IX Item "-mlong64"
19887 Force \f(CW\*(C`long\*(C'\fR types to be 64 bits wide.  See \fB\-mlong32\fR for
19888 an explanation of the default and the way that the pointer size is
19889 determined.
19890 .IP "\fB\-mlong32\fR" 4
19891 .IX Item "-mlong32"
19892 Force \f(CW\*(C`long\*(C'\fR, \f(CW\*(C`int\*(C'\fR, and pointer types to be 32 bits wide.
19893 .Sp
19894 The default size of \f(CW\*(C`int\*(C'\fRs, \f(CW\*(C`long\*(C'\fRs and pointers depends on
19895 the \s-1ABI.\s0  All the supported ABIs use 32\-bit \f(CW\*(C`int\*(C'\fRs.  The n64 \s-1ABI\s0
19896 uses 64\-bit \f(CW\*(C`long\*(C'\fRs, as does the 64\-bit \s-1EABI\s0; the others use
19897 32\-bit \f(CW\*(C`long\*(C'\fRs.  Pointers are the same size as \f(CW\*(C`long\*(C'\fRs,
19898 or the same size as integer registers, whichever is smaller.
19899 .IP "\fB\-msym32\fR" 4
19900 .IX Item "-msym32"
19901 .PD 0
19902 .IP "\fB\-mno\-sym32\fR" 4
19903 .IX Item "-mno-sym32"
19904 .PD
19905 Assume (do not assume) that all symbols have 32\-bit values, regardless
19906 of the selected \s-1ABI.\s0  This option is useful in combination with
19907 \&\fB\-mabi=64\fR and \fB\-mno\-abicalls\fR because it allows \s-1GCC\s0
19908 to generate shorter and faster references to symbolic addresses.
19909 .IP "\fB\-G\fR \fInum\fR" 4
19910 .IX Item "-G num"
19911 Put definitions of externally-visible data in a small data section
19912 if that data is no bigger than \fInum\fR bytes.  \s-1GCC\s0 can then generate
19913 more efficient accesses to the data; see \fB\-mgpopt\fR for details.
19914 .Sp
19915 The default \fB\-G\fR option depends on the configuration.
19916 .IP "\fB\-mlocal\-sdata\fR" 4
19917 .IX Item "-mlocal-sdata"
19918 .PD 0
19919 .IP "\fB\-mno\-local\-sdata\fR" 4
19920 .IX Item "-mno-local-sdata"
19921 .PD
19922 Extend (do not extend) the \fB\-G\fR behavior to local data too,
19923 such as to static variables in C.  \fB\-mlocal\-sdata\fR is the
19924 default for all configurations.
19925 .Sp
19926 If the linker complains that an application is using too much small data,
19927 you might want to try rebuilding the less performance-critical parts with
19928 \&\fB\-mno\-local\-sdata\fR.  You might also want to build large
19929 libraries with \fB\-mno\-local\-sdata\fR, so that the libraries leave
19930 more room for the main program.
19931 .IP "\fB\-mextern\-sdata\fR" 4
19932 .IX Item "-mextern-sdata"
19933 .PD 0
19934 .IP "\fB\-mno\-extern\-sdata\fR" 4
19935 .IX Item "-mno-extern-sdata"
19936 .PD
19937 Assume (do not assume) that externally-defined data is in
19938 a small data section if the size of that data is within the \fB\-G\fR limit.
19939 \&\fB\-mextern\-sdata\fR is the default for all configurations.
19940 .Sp
19941 If you compile a module \fIMod\fR with \fB\-mextern\-sdata\fR \fB\-G\fR
19942 \&\fInum\fR \fB\-mgpopt\fR, and \fIMod\fR references a variable \fIVar\fR
19943 that is no bigger than \fInum\fR bytes, you must make sure that \fIVar\fR
19944 is placed in a small data section.  If \fIVar\fR is defined by another
19945 module, you must either compile that module with a high-enough
19946 \&\fB\-G\fR setting or attach a \f(CW\*(C`section\*(C'\fR attribute to \fIVar\fR's
19947 definition.  If \fIVar\fR is common, you must link the application
19948 with a high-enough \fB\-G\fR setting.
19949 .Sp
19950 The easiest way of satisfying these restrictions is to compile
19951 and link every module with the same \fB\-G\fR option.  However,
19952 you may wish to build a library that supports several different
19953 small data limits.  You can do this by compiling the library with
19954 the highest supported \fB\-G\fR setting and additionally using
19955 \&\fB\-mno\-extern\-sdata\fR to stop the library from making assumptions
19956 about externally-defined data.
19957 .IP "\fB\-mgpopt\fR" 4
19958 .IX Item "-mgpopt"
19959 .PD 0
19960 .IP "\fB\-mno\-gpopt\fR" 4
19961 .IX Item "-mno-gpopt"
19962 .PD
19963 Use (do not use) GP-relative accesses for symbols that are known to be
19964 in a small data section; see \fB\-G\fR, \fB\-mlocal\-sdata\fR and
19965 \&\fB\-mextern\-sdata\fR.  \fB\-mgpopt\fR is the default for all
19966 configurations.
19967 .Sp
19968 \&\fB\-mno\-gpopt\fR is useful for cases where the \f(CW$gp\fR register
19969 might not hold the value of \f(CW\*(C`_gp\*(C'\fR.  For example, if the code is
19970 part of a library that might be used in a boot monitor, programs that
19971 call boot monitor routines pass an unknown value in \f(CW$gp\fR.
19972 (In such situations, the boot monitor itself is usually compiled
19973 with \fB\-G0\fR.)
19974 .Sp
19975 \&\fB\-mno\-gpopt\fR implies \fB\-mno\-local\-sdata\fR and
19976 \&\fB\-mno\-extern\-sdata\fR.
19977 .IP "\fB\-membedded\-data\fR" 4
19978 .IX Item "-membedded-data"
19979 .PD 0
19980 .IP "\fB\-mno\-embedded\-data\fR" 4
19981 .IX Item "-mno-embedded-data"
19982 .PD
19983 Allocate variables to the read-only data section first if possible, then
19984 next in the small data section if possible, otherwise in data.  This gives
19985 slightly slower code than the default, but reduces the amount of \s-1RAM\s0 required
19986 when executing, and thus may be preferred for some embedded systems.
19987 .IP "\fB\-muninit\-const\-in\-rodata\fR" 4
19988 .IX Item "-muninit-const-in-rodata"
19989 .PD 0
19990 .IP "\fB\-mno\-uninit\-const\-in\-rodata\fR" 4
19991 .IX Item "-mno-uninit-const-in-rodata"
19992 .PD
19993 Put uninitialized \f(CW\*(C`const\*(C'\fR variables in the read-only data section.
19994 This option is only meaningful in conjunction with \fB\-membedded\-data\fR.
19995 .IP "\fB\-mcode\-readable=\fR\fIsetting\fR" 4
19996 .IX Item "-mcode-readable=setting"
19997 Specify whether \s-1GCC\s0 may generate code that reads from executable sections.
19998 There are three possible settings:
19999 .RS 4
20000 .IP "\fB\-mcode\-readable=yes\fR" 4
20001 .IX Item "-mcode-readable=yes"
20002 Instructions may freely access executable sections.  This is the
20003 default setting.
20004 .IP "\fB\-mcode\-readable=pcrel\fR" 4
20005 .IX Item "-mcode-readable=pcrel"
20006 \&\s-1MIPS16\s0 PC-relative load instructions can access executable sections,
20007 but other instructions must not do so.  This option is useful on 4KSc
20008 and 4KSd processors when the code TLBs have the Read Inhibit bit set.
20009 It is also useful on processors that can be configured to have a dual
20010 instruction/data \s-1SRAM\s0 interface and that, like the M4K, automatically
20011 redirect PC-relative loads to the instruction \s-1RAM.\s0
20012 .IP "\fB\-mcode\-readable=no\fR" 4
20013 .IX Item "-mcode-readable=no"
20014 Instructions must not access executable sections.  This option can be
20015 useful on targets that are configured to have a dual instruction/data
20016 \&\s-1SRAM\s0 interface but that (unlike the M4K) do not automatically redirect
20017 PC-relative loads to the instruction \s-1RAM.\s0
20018 .RE
20019 .RS 4
20020 .RE
20021 .IP "\fB\-msplit\-addresses\fR" 4
20022 .IX Item "-msplit-addresses"
20023 .PD 0
20024 .IP "\fB\-mno\-split\-addresses\fR" 4
20025 .IX Item "-mno-split-addresses"
20026 .PD
20027 Enable (disable) use of the \f(CW\*(C`%hi()\*(C'\fR and \f(CW\*(C`%lo()\*(C'\fR assembler
20028 relocation operators.  This option has been superseded by
20029 \&\fB\-mexplicit\-relocs\fR but is retained for backwards compatibility.
20030 .IP "\fB\-mexplicit\-relocs\fR" 4
20031 .IX Item "-mexplicit-relocs"
20032 .PD 0
20033 .IP "\fB\-mno\-explicit\-relocs\fR" 4
20034 .IX Item "-mno-explicit-relocs"
20035 .PD
20036 Use (do not use) assembler relocation operators when dealing with symbolic
20037 addresses.  The alternative, selected by \fB\-mno\-explicit\-relocs\fR,
20038 is to use assembler macros instead.
20039 .Sp
20040 \&\fB\-mexplicit\-relocs\fR is the default if \s-1GCC\s0 was configured
20041 to use an assembler that supports relocation operators.
20042 .IP "\fB\-mcheck\-zero\-division\fR" 4
20043 .IX Item "-mcheck-zero-division"
20044 .PD 0
20045 .IP "\fB\-mno\-check\-zero\-division\fR" 4
20046 .IX Item "-mno-check-zero-division"
20047 .PD
20048 Trap (do not trap) on integer division by zero.
20049 .Sp
20050 The default is \fB\-mcheck\-zero\-division\fR.
20051 .IP "\fB\-mdivide\-traps\fR" 4
20052 .IX Item "-mdivide-traps"
20053 .PD 0
20054 .IP "\fB\-mdivide\-breaks\fR" 4
20055 .IX Item "-mdivide-breaks"
20056 .PD
20057 \&\s-1MIPS\s0 systems check for division by zero by generating either a
20058 conditional trap or a break instruction.  Using traps results in
20059 smaller code, but is only supported on \s-1MIPS II\s0 and later.  Also, some
20060 versions of the Linux kernel have a bug that prevents trap from
20061 generating the proper signal (\f(CW\*(C`SIGFPE\*(C'\fR).  Use \fB\-mdivide\-traps\fR to
20062 allow conditional traps on architectures that support them and
20063 \&\fB\-mdivide\-breaks\fR to force the use of breaks.
20064 .Sp
20065 The default is usually \fB\-mdivide\-traps\fR, but this can be
20066 overridden at configure time using \fB\-\-with\-divide=breaks\fR.
20067 Divide-by-zero checks can be completely disabled using
20068 \&\fB\-mno\-check\-zero\-division\fR.
20069 .IP "\fB\-mload\-store\-pairs\fR" 4
20070 .IX Item "-mload-store-pairs"
20071 .PD 0
20072 .IP "\fB\-mno\-load\-store\-pairs\fR" 4
20073 .IX Item "-mno-load-store-pairs"
20074 .PD
20075 Enable (disable) an optimization that pairs consecutive load or store
20076 instructions to enable load/store bonding.  This option is enabled by
20077 default but only takes effect when the selected architecture is known
20078 to support bonding.
20079 .IP "\fB\-mmemcpy\fR" 4
20080 .IX Item "-mmemcpy"
20081 .PD 0
20082 .IP "\fB\-mno\-memcpy\fR" 4
20083 .IX Item "-mno-memcpy"
20084 .PD
20085 Force (do not force) the use of \f(CW\*(C`memcpy\*(C'\fR for non-trivial block
20086 moves.  The default is \fB\-mno\-memcpy\fR, which allows \s-1GCC\s0 to inline
20087 most constant-sized copies.
20088 .IP "\fB\-mlong\-calls\fR" 4
20089 .IX Item "-mlong-calls"
20090 .PD 0
20091 .IP "\fB\-mno\-long\-calls\fR" 4
20092 .IX Item "-mno-long-calls"
20093 .PD
20094 Disable (do not disable) use of the \f(CW\*(C`jal\*(C'\fR instruction.  Calling
20095 functions using \f(CW\*(C`jal\*(C'\fR is more efficient but requires the caller
20096 and callee to be in the same 256 megabyte segment.
20097 .Sp
20098 This option has no effect on abicalls code.  The default is
20099 \&\fB\-mno\-long\-calls\fR.
20100 .IP "\fB\-mmad\fR" 4
20101 .IX Item "-mmad"
20102 .PD 0
20103 .IP "\fB\-mno\-mad\fR" 4
20104 .IX Item "-mno-mad"
20105 .PD
20106 Enable (disable) use of the \f(CW\*(C`mad\*(C'\fR, \f(CW\*(C`madu\*(C'\fR and \f(CW\*(C`mul\*(C'\fR
20107 instructions, as provided by the R4650 \s-1ISA.\s0
20108 .IP "\fB\-mimadd\fR" 4
20109 .IX Item "-mimadd"
20110 .PD 0
20111 .IP "\fB\-mno\-imadd\fR" 4
20112 .IX Item "-mno-imadd"
20113 .PD
20114 Enable (disable) use of the \f(CW\*(C`madd\*(C'\fR and \f(CW\*(C`msub\*(C'\fR integer
20115 instructions.  The default is \fB\-mimadd\fR on architectures
20116 that support \f(CW\*(C`madd\*(C'\fR and \f(CW\*(C`msub\*(C'\fR except for the 74k 
20117 architecture where it was found to generate slower code.
20118 .IP "\fB\-mfused\-madd\fR" 4
20119 .IX Item "-mfused-madd"
20120 .PD 0
20121 .IP "\fB\-mno\-fused\-madd\fR" 4
20122 .IX Item "-mno-fused-madd"
20123 .PD
20124 Enable (disable) use of the floating-point multiply-accumulate
20125 instructions, when they are available.  The default is
20126 \&\fB\-mfused\-madd\fR.
20127 .Sp
20128 On the R8000 \s-1CPU\s0 when multiply-accumulate instructions are used,
20129 the intermediate product is calculated to infinite precision
20130 and is not subject to the \s-1FCSR\s0 Flush to Zero bit.  This may be
20131 undesirable in some circumstances.  On other processors the result
20132 is numerically identical to the equivalent computation using
20133 separate multiply, add, subtract and negate instructions.
20134 .IP "\fB\-nocpp\fR" 4
20135 .IX Item "-nocpp"
20136 Tell the \s-1MIPS\s0 assembler to not run its preprocessor over user
20137 assembler files (with a \fB.s\fR suffix) when assembling them.
20138 .IP "\fB\-mfix\-24k\fR" 4
20139 .IX Item "-mfix-24k"
20140 .PD 0
20141 .IP "\fB\-mno\-fix\-24k\fR" 4
20142 .IX Item "-mno-fix-24k"
20143 .PD
20144 Work around the 24K E48 (lost data on stores during refill) errata.
20145 The workarounds are implemented by the assembler rather than by \s-1GCC.\s0
20146 .IP "\fB\-mfix\-r4000\fR" 4
20147 .IX Item "-mfix-r4000"
20148 .PD 0
20149 .IP "\fB\-mno\-fix\-r4000\fR" 4
20150 .IX Item "-mno-fix-r4000"
20151 .PD
20152 Work around certain R4000 \s-1CPU\s0 errata:
20153 .RS 4
20154 .IP "\-" 4
20155 A double-word or a variable shift may give an incorrect result if executed
20156 immediately after starting an integer division.
20157 .IP "\-" 4
20158 A double-word or a variable shift may give an incorrect result if executed
20159 while an integer multiplication is in progress.
20160 .IP "\-" 4
20161 An integer division may give an incorrect result if started in a delay slot
20162 of a taken branch or a jump.
20163 .RE
20164 .RS 4
20165 .RE
20166 .IP "\fB\-mfix\-r4400\fR" 4
20167 .IX Item "-mfix-r4400"
20168 .PD 0
20169 .IP "\fB\-mno\-fix\-r4400\fR" 4
20170 .IX Item "-mno-fix-r4400"
20171 .PD
20172 Work around certain R4400 \s-1CPU\s0 errata:
20173 .RS 4
20174 .IP "\-" 4
20175 A double-word or a variable shift may give an incorrect result if executed
20176 immediately after starting an integer division.
20177 .RE
20178 .RS 4
20179 .RE
20180 .IP "\fB\-mfix\-r10000\fR" 4
20181 .IX Item "-mfix-r10000"
20182 .PD 0
20183 .IP "\fB\-mno\-fix\-r10000\fR" 4
20184 .IX Item "-mno-fix-r10000"
20185 .PD
20186 Work around certain R10000 errata:
20187 .RS 4
20188 .IP "\-" 4
20189 \&\f(CW\*(C`ll\*(C'\fR/\f(CW\*(C`sc\*(C'\fR sequences may not behave atomically on revisions
20190 prior to 3.0.  They may deadlock on revisions 2.6 and earlier.
20191 .RE
20192 .RS 4
20193 .Sp
20194 This option can only be used if the target architecture supports
20195 branch-likely instructions.  \fB\-mfix\-r10000\fR is the default when
20196 \&\fB\-march=r10000\fR is used; \fB\-mno\-fix\-r10000\fR is the default
20197 otherwise.
20198 .RE
20199 .IP "\fB\-mfix\-rm7000\fR" 4
20200 .IX Item "-mfix-rm7000"
20201 .PD 0
20202 .IP "\fB\-mno\-fix\-rm7000\fR" 4
20203 .IX Item "-mno-fix-rm7000"
20204 .PD
20205 Work around the \s-1RM7000\s0 \f(CW\*(C`dmult\*(C'\fR/\f(CW\*(C`dmultu\*(C'\fR errata.  The
20206 workarounds are implemented by the assembler rather than by \s-1GCC.\s0
20207 .IP "\fB\-mfix\-vr4120\fR" 4
20208 .IX Item "-mfix-vr4120"
20209 .PD 0
20210 .IP "\fB\-mno\-fix\-vr4120\fR" 4
20211 .IX Item "-mno-fix-vr4120"
20212 .PD
20213 Work around certain \s-1VR4120\s0 errata:
20214 .RS 4
20215 .IP "\-" 4
20216 \&\f(CW\*(C`dmultu\*(C'\fR does not always produce the correct result.
20217 .IP "\-" 4
20218 \&\f(CW\*(C`div\*(C'\fR and \f(CW\*(C`ddiv\*(C'\fR do not always produce the correct result if one
20219 of the operands is negative.
20220 .RE
20221 .RS 4
20222 .Sp
20223 The workarounds for the division errata rely on special functions in
20224 \&\fIlibgcc.a\fR.  At present, these functions are only provided by
20225 the \f(CW\*(C`mips64vr*\-elf\*(C'\fR configurations.
20226 .Sp
20227 Other \s-1VR4120\s0 errata require a \s-1NOP\s0 to be inserted between certain pairs of
20228 instructions.  These errata are handled by the assembler, not by \s-1GCC\s0 itself.
20229 .RE
20230 .IP "\fB\-mfix\-vr4130\fR" 4
20231 .IX Item "-mfix-vr4130"
20232 Work around the \s-1VR4130\s0 \f(CW\*(C`mflo\*(C'\fR/\f(CW\*(C`mfhi\*(C'\fR errata.  The
20233 workarounds are implemented by the assembler rather than by \s-1GCC,\s0
20234 although \s-1GCC\s0 avoids using \f(CW\*(C`mflo\*(C'\fR and \f(CW\*(C`mfhi\*(C'\fR if the
20235 \&\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
20236 instructions are available instead.
20237 .IP "\fB\-mfix\-sb1\fR" 4
20238 .IX Item "-mfix-sb1"
20239 .PD 0
20240 .IP "\fB\-mno\-fix\-sb1\fR" 4
20241 .IX Item "-mno-fix-sb1"
20242 .PD
20243 Work around certain \s-1SB\-1 CPU\s0 core errata.
20244 (This flag currently works around the \s-1SB\-1\s0 revision 2
20245 \&\*(L"F1\*(R" and \*(L"F2\*(R" floating-point errata.)
20246 .IP "\fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR" 4
20247 .IX Item "-mr10k-cache-barrier=setting"
20248 Specify whether \s-1GCC\s0 should insert cache barriers to avoid the
20249 side effects of speculation on R10K processors.
20250 .Sp
20251 In common with many processors, the R10K tries to predict the outcome
20252 of a conditional branch and speculatively executes instructions from
20253 the \*(L"taken\*(R" branch.  It later aborts these instructions if the
20254 predicted outcome is wrong.  However, on the R10K, even aborted
20255 instructions can have side effects.
20256 .Sp
20257 This problem only affects kernel stores and, depending on the system,
20258 kernel loads.  As an example, a speculatively-executed store may load
20259 the target memory into cache and mark the cache line as dirty, even if
20260 the store itself is later aborted.  If a \s-1DMA\s0 operation writes to the
20261 same area of memory before the \*(L"dirty\*(R" line is flushed, the cached
20262 data overwrites the DMA-ed data.  See the R10K processor manual
20263 for a full description, including other potential problems.
20264 .Sp
20265 One workaround is to insert cache barrier instructions before every memory
20266 access that might be speculatively executed and that might have side
20267 effects even if aborted.  \fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR
20268 controls \s-1GCC\s0's implementation of this workaround.  It assumes that
20269 aborted accesses to any byte in the following regions does not have
20270 side effects:
20271 .RS 4
20272 .IP "1." 4
20273 .IX Item "1."
20274 the memory occupied by the current function's stack frame;
20275 .IP "2." 4
20276 .IX Item "2."
20277 the memory occupied by an incoming stack argument;
20278 .IP "3." 4
20279 .IX Item "3."
20280 the memory occupied by an object with a link-time-constant address.
20281 .RE
20282 .RS 4
20283 .Sp
20284 It is the kernel's responsibility to ensure that speculative
20285 accesses to these regions are indeed safe.
20286 .Sp
20287 If the input program contains a function declaration such as:
20288 .Sp
20289 .Vb 1
20290 \&        void foo (void);
20291 .Ve
20292 .Sp
20293 then the implementation of \f(CW\*(C`foo\*(C'\fR must allow \f(CW\*(C`j foo\*(C'\fR and
20294 \&\f(CW\*(C`jal foo\*(C'\fR to be executed speculatively.  \s-1GCC\s0 honors this
20295 restriction for functions it compiles itself.  It expects non-GCC
20296 functions (such as hand-written assembly code) to do the same.
20297 .Sp
20298 The option has three forms:
20299 .IP "\fB\-mr10k\-cache\-barrier=load\-store\fR" 4
20300 .IX Item "-mr10k-cache-barrier=load-store"
20301 Insert a cache barrier before a load or store that might be
20302 speculatively executed and that might have side effects even
20303 if aborted.
20304 .IP "\fB\-mr10k\-cache\-barrier=store\fR" 4
20305 .IX Item "-mr10k-cache-barrier=store"
20306 Insert a cache barrier before a store that might be speculatively
20307 executed and that might have side effects even if aborted.
20308 .IP "\fB\-mr10k\-cache\-barrier=none\fR" 4
20309 .IX Item "-mr10k-cache-barrier=none"
20310 Disable the insertion of cache barriers.  This is the default setting.
20311 .RE
20312 .RS 4
20313 .RE
20314 .IP "\fB\-mflush\-func=\fR\fIfunc\fR" 4
20315 .IX Item "-mflush-func=func"
20316 .PD 0
20317 .IP "\fB\-mno\-flush\-func\fR" 4
20318 .IX Item "-mno-flush-func"
20319 .PD
20320 Specifies the function to call to flush the I and D caches, or to not
20321 call any such function.  If called, the function must take the same
20322 arguments as the common \f(CW\*(C`_flush_func\*(C'\fR, that is, the address of the
20323 memory range for which the cache is being flushed, the size of the
20324 memory range, and the number 3 (to flush both caches).  The default
20325 depends on the target \s-1GCC\s0 was configured for, but commonly is either
20326 \&\f(CW\*(C`_flush_func\*(C'\fR or \f(CW\*(C`_\|_cpu_flush\*(C'\fR.
20327 .IP "\fBmbranch\-cost=\fR\fInum\fR" 4
20328 .IX Item "mbranch-cost=num"
20329 Set the cost of branches to roughly \fInum\fR \*(L"simple\*(R" instructions.
20330 This cost is only a heuristic and is not guaranteed to produce
20331 consistent results across releases.  A zero cost redundantly selects
20332 the default, which is based on the \fB\-mtune\fR setting.
20333 .IP "\fB\-mbranch\-likely\fR" 4
20334 .IX Item "-mbranch-likely"
20335 .PD 0
20336 .IP "\fB\-mno\-branch\-likely\fR" 4
20337 .IX Item "-mno-branch-likely"
20338 .PD
20339 Enable or disable use of Branch Likely instructions, regardless of the
20340 default for the selected architecture.  By default, Branch Likely
20341 instructions may be generated if they are supported by the selected
20342 architecture.  An exception is for the \s-1MIPS32\s0 and \s-1MIPS64\s0 architectures
20343 and processors that implement those architectures; for those, Branch
20344 Likely instructions are not be generated by default because the \s-1MIPS32\s0
20345 and \s-1MIPS64\s0 architectures specifically deprecate their use.
20346 .IP "\fB\-mcompact\-branches=never\fR" 4
20347 .IX Item "-mcompact-branches=never"
20348 .PD 0
20349 .IP "\fB\-mcompact\-branches=optimal\fR" 4
20350 .IX Item "-mcompact-branches=optimal"
20351 .IP "\fB\-mcompact\-branches=always\fR" 4
20352 .IX Item "-mcompact-branches=always"
20353 .PD
20354 These options control which form of branches will be generated.  The
20355 default is \fB\-mcompact\-branches=optimal\fR.
20356 .Sp
20357 The \fB\-mcompact\-branches=never\fR option ensures that compact branch
20358 instructions will never be generated.
20359 .Sp
20360 The \fB\-mcompact\-branches=always\fR option ensures that a compact
20361 branch instruction will be generated if available.  If a compact branch
20362 instruction is not available, a delay slot form of the branch will be
20363 used instead.
20364 .Sp
20365 This option is supported from \s-1MIPS\s0 Release 6 onwards.
20366 .Sp
20367 The \fB\-mcompact\-branches=optimal\fR option will cause a delay slot
20368 branch to be used if one is available in the current \s-1ISA\s0 and the delay
20369 slot is successfully filled.  If the delay slot is not filled, a compact
20370 branch will be chosen if one is available.
20371 .IP "\fB\-mfp\-exceptions\fR" 4
20372 .IX Item "-mfp-exceptions"
20373 .PD 0
20374 .IP "\fB\-mno\-fp\-exceptions\fR" 4
20375 .IX Item "-mno-fp-exceptions"
20376 .PD
20377 Specifies whether \s-1FP\s0 exceptions are enabled.  This affects how
20378 \&\s-1FP\s0 instructions are scheduled for some processors.
20379 The default is that \s-1FP\s0 exceptions are
20380 enabled.
20381 .Sp
20382 For instance, on the \s-1SB\-1,\s0 if \s-1FP\s0 exceptions are disabled, and we are emitting
20383 64\-bit code, then we can use both \s-1FP\s0 pipes.  Otherwise, we can only use one
20384 \&\s-1FP\s0 pipe.
20385 .IP "\fB\-mvr4130\-align\fR" 4
20386 .IX Item "-mvr4130-align"
20387 .PD 0
20388 .IP "\fB\-mno\-vr4130\-align\fR" 4
20389 .IX Item "-mno-vr4130-align"
20390 .PD
20391 The \s-1VR4130\s0 pipeline is two-way superscalar, but can only issue two
20392 instructions together if the first one is 8\-byte aligned.  When this
20393 option is enabled, \s-1GCC\s0 aligns pairs of instructions that it
20394 thinks should execute in parallel.
20395 .Sp
20396 This option only has an effect when optimizing for the \s-1VR4130.\s0
20397 It normally makes code faster, but at the expense of making it bigger.
20398 It is enabled by default at optimization level \fB\-O3\fR.
20399 .IP "\fB\-msynci\fR" 4
20400 .IX Item "-msynci"
20401 .PD 0
20402 .IP "\fB\-mno\-synci\fR" 4
20403 .IX Item "-mno-synci"
20404 .PD
20405 Enable (disable) generation of \f(CW\*(C`synci\*(C'\fR instructions on
20406 architectures that support it.  The \f(CW\*(C`synci\*(C'\fR instructions (if
20407 enabled) are generated when \f(CW\*(C`_\|_builtin_\|_\|_clear_cache\*(C'\fR is
20408 compiled.
20409 .Sp
20410 This option defaults to \fB\-mno\-synci\fR, but the default can be
20411 overridden by configuring \s-1GCC\s0 with \fB\-\-with\-synci\fR.
20412 .Sp
20413 When compiling code for single processor systems, it is generally safe
20414 to use \f(CW\*(C`synci\*(C'\fR.  However, on many multi-core (\s-1SMP\s0) systems, it
20415 does not invalidate the instruction caches on all cores and may lead
20416 to undefined behavior.
20417 .IP "\fB\-mrelax\-pic\-calls\fR" 4
20418 .IX Item "-mrelax-pic-calls"
20419 .PD 0
20420 .IP "\fB\-mno\-relax\-pic\-calls\fR" 4
20421 .IX Item "-mno-relax-pic-calls"
20422 .PD
20423 Try to turn \s-1PIC\s0 calls that are normally dispatched via register
20424 \&\f(CW$25\fR into direct calls.  This is only possible if the linker can
20425 resolve the destination at link time and if the destination is within
20426 range for a direct call.
20427 .Sp
20428 \&\fB\-mrelax\-pic\-calls\fR is the default if \s-1GCC\s0 was configured to use
20429 an assembler and a linker that support the \f(CW\*(C`.reloc\*(C'\fR assembly
20430 directive and \fB\-mexplicit\-relocs\fR is in effect.  With
20431 \&\fB\-mno\-explicit\-relocs\fR, this optimization can be performed by the
20432 assembler and the linker alone without help from the compiler.
20433 .IP "\fB\-mmcount\-ra\-address\fR" 4
20434 .IX Item "-mmcount-ra-address"
20435 .PD 0
20436 .IP "\fB\-mno\-mcount\-ra\-address\fR" 4
20437 .IX Item "-mno-mcount-ra-address"
20438 .PD
20439 Emit (do not emit) code that allows \f(CW\*(C`_mcount\*(C'\fR to modify the
20440 calling function's return address.  When enabled, this option extends
20441 the usual \f(CW\*(C`_mcount\*(C'\fR interface with a new \fIra-address\fR
20442 parameter, which has type \f(CW\*(C`intptr_t *\*(C'\fR and is passed in register
20443 \&\f(CW$12\fR.  \f(CW\*(C`_mcount\*(C'\fR can then modify the return address by
20444 doing both of the following:
20445 .RS 4
20446 .IP "*" 4
20447 Returning the new address in register \f(CW$31\fR.
20448 .IP "*" 4
20449 Storing the new address in \f(CW\*(C`*\f(CIra\-address\f(CW\*(C'\fR,
20450 if \fIra-address\fR is nonnull.
20451 .RE
20452 .RS 4
20453 .Sp
20454 The default is \fB\-mno\-mcount\-ra\-address\fR.
20455 .RE
20456 .IP "\fB\-mframe\-header\-opt\fR" 4
20457 .IX Item "-mframe-header-opt"
20458 .PD 0
20459 .IP "\fB\-mno\-frame\-header\-opt\fR" 4
20460 .IX Item "-mno-frame-header-opt"
20461 .PD
20462 Enable (disable) frame header optimization in the o32 \s-1ABI.\s0  When using the
20463 o32 \s-1ABI,\s0 calling functions will allocate 16 bytes on the stack for the called
20464 function to write out register arguments.  When enabled, this optimization
20465 will suppress the allocation of the frame header if it can be determined that
20466 it is unused.
20467 .Sp
20468 This optimization is off by default at all optimization levels.
20469 .IP "\fB\-mlxc1\-sxc1\fR" 4
20470 .IX Item "-mlxc1-sxc1"
20471 .PD 0
20472 .IP "\fB\-mno\-lxc1\-sxc1\fR" 4
20473 .IX Item "-mno-lxc1-sxc1"
20474 .PD
20475 When applicable, enable (disable) the generation of \f(CW\*(C`lwxc1\*(C'\fR,
20476 \&\f(CW\*(C`swxc1\*(C'\fR, \f(CW\*(C`ldxc1\*(C'\fR, \f(CW\*(C`sdxc1\*(C'\fR instructions.  Enabled by default.
20477 .IP "\fB\-mmadd4\fR" 4
20478 .IX Item "-mmadd4"
20479 .PD 0
20480 .IP "\fB\-mno\-madd4\fR" 4
20481 .IX Item "-mno-madd4"
20482 .PD
20483 When applicable, enable (disable) the generation of 4\-operand \f(CW\*(C`madd.s\*(C'\fR,
20484 \&\f(CW\*(C`madd.d\*(C'\fR and related instructions.  Enabled by default.
20485 .PP
20486 \fI\s-1MMIX\s0 Options\fR
20487 .IX Subsection "MMIX Options"
20488 .PP
20489 These options are defined for the \s-1MMIX:\s0
20490 .IP "\fB\-mlibfuncs\fR" 4
20491 .IX Item "-mlibfuncs"
20492 .PD 0
20493 .IP "\fB\-mno\-libfuncs\fR" 4
20494 .IX Item "-mno-libfuncs"
20495 .PD
20496 Specify that intrinsic library functions are being compiled, passing all
20497 values in registers, no matter the size.
20498 .IP "\fB\-mepsilon\fR" 4
20499 .IX Item "-mepsilon"
20500 .PD 0
20501 .IP "\fB\-mno\-epsilon\fR" 4
20502 .IX Item "-mno-epsilon"
20503 .PD
20504 Generate floating-point comparison instructions that compare with respect
20505 to the \f(CW\*(C`rE\*(C'\fR epsilon register.
20506 .IP "\fB\-mabi=mmixware\fR" 4
20507 .IX Item "-mabi=mmixware"
20508 .PD 0
20509 .IP "\fB\-mabi=gnu\fR" 4
20510 .IX Item "-mabi=gnu"
20511 .PD
20512 Generate code that passes function parameters and return values that (in
20513 the called function) are seen as registers \f(CW$0\fR and up, as opposed to
20514 the \s-1GNU ABI\s0 which uses global registers \f(CW$231\fR and up.
20515 .IP "\fB\-mzero\-extend\fR" 4
20516 .IX Item "-mzero-extend"
20517 .PD 0
20518 .IP "\fB\-mno\-zero\-extend\fR" 4
20519 .IX Item "-mno-zero-extend"
20520 .PD
20521 When reading data from memory in sizes shorter than 64 bits, use (do not
20522 use) zero-extending load instructions by default, rather than
20523 sign-extending ones.
20524 .IP "\fB\-mknuthdiv\fR" 4
20525 .IX Item "-mknuthdiv"
20526 .PD 0
20527 .IP "\fB\-mno\-knuthdiv\fR" 4
20528 .IX Item "-mno-knuthdiv"
20529 .PD
20530 Make the result of a division yielding a remainder have the same sign as
20531 the divisor.  With the default, \fB\-mno\-knuthdiv\fR, the sign of the
20532 remainder follows the sign of the dividend.  Both methods are
20533 arithmetically valid, the latter being almost exclusively used.
20534 .IP "\fB\-mtoplevel\-symbols\fR" 4
20535 .IX Item "-mtoplevel-symbols"
20536 .PD 0
20537 .IP "\fB\-mno\-toplevel\-symbols\fR" 4
20538 .IX Item "-mno-toplevel-symbols"
20539 .PD
20540 Prepend (do not prepend) a \fB:\fR to all global symbols, so the assembly
20541 code can be used with the \f(CW\*(C`PREFIX\*(C'\fR assembly directive.
20542 .IP "\fB\-melf\fR" 4
20543 .IX Item "-melf"
20544 Generate an executable in the \s-1ELF\s0 format, rather than the default
20545 \&\fBmmo\fR format used by the \fBmmix\fR simulator.
20546 .IP "\fB\-mbranch\-predict\fR" 4
20547 .IX Item "-mbranch-predict"
20548 .PD 0
20549 .IP "\fB\-mno\-branch\-predict\fR" 4
20550 .IX Item "-mno-branch-predict"
20551 .PD
20552 Use (do not use) the probable-branch instructions, when static branch
20553 prediction indicates a probable branch.
20554 .IP "\fB\-mbase\-addresses\fR" 4
20555 .IX Item "-mbase-addresses"
20556 .PD 0
20557 .IP "\fB\-mno\-base\-addresses\fR" 4
20558 .IX Item "-mno-base-addresses"
20559 .PD
20560 Generate (do not generate) code that uses \fIbase addresses\fR.  Using a
20561 base address automatically generates a request (handled by the assembler
20562 and the linker) for a constant to be set up in a global register.  The
20563 register is used for one or more base address requests within the range 0
20564 to 255 from the value held in the register.  The generally leads to short
20565 and fast code, but the number of different data items that can be
20566 addressed is limited.  This means that a program that uses lots of static
20567 data may require \fB\-mno\-base\-addresses\fR.
20568 .IP "\fB\-msingle\-exit\fR" 4
20569 .IX Item "-msingle-exit"
20570 .PD 0
20571 .IP "\fB\-mno\-single\-exit\fR" 4
20572 .IX Item "-mno-single-exit"
20573 .PD
20574 Force (do not force) generated code to have a single exit point in each
20575 function.
20576 .PP
20577 \fI\s-1MN10300\s0 Options\fR
20578 .IX Subsection "MN10300 Options"
20579 .PP
20580 These \fB\-m\fR options are defined for Matsushita \s-1MN10300\s0 architectures:
20581 .IP "\fB\-mmult\-bug\fR" 4
20582 .IX Item "-mmult-bug"
20583 Generate code to avoid bugs in the multiply instructions for the \s-1MN10300\s0
20584 processors.  This is the default.
20585 .IP "\fB\-mno\-mult\-bug\fR" 4
20586 .IX Item "-mno-mult-bug"
20587 Do not generate code to avoid bugs in the multiply instructions for the
20588 \&\s-1MN10300\s0 processors.
20589 .IP "\fB\-mam33\fR" 4
20590 .IX Item "-mam33"
20591 Generate code using features specific to the \s-1AM33\s0 processor.
20592 .IP "\fB\-mno\-am33\fR" 4
20593 .IX Item "-mno-am33"
20594 Do not generate code using features specific to the \s-1AM33\s0 processor.  This
20595 is the default.
20596 .IP "\fB\-mam33\-2\fR" 4
20597 .IX Item "-mam33-2"
20598 Generate code using features specific to the \s-1AM33/2.0\s0 processor.
20599 .IP "\fB\-mam34\fR" 4
20600 .IX Item "-mam34"
20601 Generate code using features specific to the \s-1AM34\s0 processor.
20602 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
20603 .IX Item "-mtune=cpu-type"
20604 Use the timing characteristics of the indicated \s-1CPU\s0 type when
20605 scheduling instructions.  This does not change the targeted processor
20606 type.  The \s-1CPU\s0 type must be one of \fBmn10300\fR, \fBam33\fR,
20607 \&\fBam33\-2\fR or \fBam34\fR.
20608 .IP "\fB\-mreturn\-pointer\-on\-d0\fR" 4
20609 .IX Item "-mreturn-pointer-on-d0"
20610 When generating a function that returns a pointer, return the pointer
20611 in both \f(CW\*(C`a0\*(C'\fR and \f(CW\*(C`d0\*(C'\fR.  Otherwise, the pointer is returned
20612 only in \f(CW\*(C`a0\*(C'\fR, and attempts to call such functions without a prototype
20613 result in errors.  Note that this option is on by default; use
20614 \&\fB\-mno\-return\-pointer\-on\-d0\fR to disable it.
20615 .IP "\fB\-mno\-crt0\fR" 4
20616 .IX Item "-mno-crt0"
20617 Do not link in the C run-time initialization object file.
20618 .IP "\fB\-mrelax\fR" 4
20619 .IX Item "-mrelax"
20620 Indicate to the linker that it should perform a relaxation optimization pass
20621 to shorten branches, calls and absolute memory addresses.  This option only
20622 has an effect when used on the command line for the final link step.
20623 .Sp
20624 This option makes symbolic debugging impossible.
20625 .IP "\fB\-mliw\fR" 4
20626 .IX Item "-mliw"
20627 Allow the compiler to generate \fILong Instruction Word\fR
20628 instructions if the target is the \fB\s-1AM33\s0\fR or later.  This is the
20629 default.  This option defines the preprocessor macro \f(CW\*(C`_\|_LIW_\|_\*(C'\fR.
20630 .IP "\fB\-mnoliw\fR" 4
20631 .IX Item "-mnoliw"
20632 Do not allow the compiler to generate \fILong Instruction Word\fR
20633 instructions.  This option defines the preprocessor macro
20634 \&\f(CW\*(C`_\|_NO_LIW_\|_\*(C'\fR.
20635 .IP "\fB\-msetlb\fR" 4
20636 .IX Item "-msetlb"
20637 Allow the compiler to generate the \fI\s-1SETLB\s0\fR and \fILcc\fR
20638 instructions if the target is the \fB\s-1AM33\s0\fR or later.  This is the
20639 default.  This option defines the preprocessor macro \f(CW\*(C`_\|_SETLB_\|_\*(C'\fR.
20640 .IP "\fB\-mnosetlb\fR" 4
20641 .IX Item "-mnosetlb"
20642 Do not allow the compiler to generate \fI\s-1SETLB\s0\fR or \fILcc\fR
20643 instructions.  This option defines the preprocessor macro
20644 \&\f(CW\*(C`_\|_NO_SETLB_\|_\*(C'\fR.
20645 .PP
20646 \fIMoxie Options\fR
20647 .IX Subsection "Moxie Options"
20648 .IP "\fB\-meb\fR" 4
20649 .IX Item "-meb"
20650 Generate big-endian code.  This is the default for \fBmoxie\-*\-*\fR
20651 configurations.
20652 .IP "\fB\-mel\fR" 4
20653 .IX Item "-mel"
20654 Generate little-endian code.
20655 .IP "\fB\-mmul.x\fR" 4
20656 .IX Item "-mmul.x"
20657 Generate mul.x and umul.x instructions.  This is the default for
20658 \&\fBmoxiebox\-*\-*\fR configurations.
20659 .IP "\fB\-mno\-crt0\fR" 4
20660 .IX Item "-mno-crt0"
20661 Do not link in the C run-time initialization object file.
20662 .PP
20663 \fI\s-1MSP430\s0 Options\fR
20664 .IX Subsection "MSP430 Options"
20665 .PP
20666 These options are defined for the \s-1MSP430:\s0
20667 .IP "\fB\-masm\-hex\fR" 4
20668 .IX Item "-masm-hex"
20669 Force assembly output to always use hex constants.  Normally such
20670 constants are signed decimals, but this option is available for
20671 testsuite and/or aesthetic purposes.
20672 .IP "\fB\-mmcu=\fR" 4
20673 .IX Item "-mmcu="
20674 Select the \s-1MCU\s0 to target.  This is used to create a C preprocessor
20675 symbol based upon the \s-1MCU\s0 name, converted to upper case and pre\- and
20676 post-fixed with \fB_\|_\fR.  This in turn is used by the
20677 \&\fImsp430.h\fR header file to select an MCU-specific supplementary
20678 header file.
20679 .Sp
20680 The option also sets the \s-1ISA\s0 to use.  If the \s-1MCU\s0 name is one that is
20681 known to only support the 430 \s-1ISA\s0 then that is selected, otherwise the
20682 430X \s-1ISA\s0 is selected.  A generic \s-1MCU\s0 name of \fBmsp430\fR can also be
20683 used to select the 430 \s-1ISA.\s0  Similarly the generic \fBmsp430x\fR \s-1MCU\s0
20684 name selects the 430X \s-1ISA.\s0
20685 .Sp
20686 In addition an MCU-specific linker script is added to the linker
20687 command line.  The script's name is the name of the \s-1MCU\s0 with
20688 \&\fI.ld\fR appended.  Thus specifying \fB\-mmcu=xxx\fR on the \fBgcc\fR
20689 command line defines the C preprocessor symbol \f(CW\*(C`_\|_XXX_\|_\*(C'\fR and
20690 cause the linker to search for a script called \fIxxx.ld\fR.
20691 .Sp
20692 This option is also passed on to the assembler.
20693 .IP "\fB\-mwarn\-mcu\fR" 4
20694 .IX Item "-mwarn-mcu"
20695 .PD 0
20696 .IP "\fB\-mno\-warn\-mcu\fR" 4
20697 .IX Item "-mno-warn-mcu"
20698 .PD
20699 This option enables or disables warnings about conflicts between the
20700 \&\s-1MCU\s0 name specified by the \fB\-mmcu\fR option and the \s-1ISA\s0 set by the
20701 \&\fB\-mcpu\fR option and/or the hardware multiply support set by the
20702 \&\fB\-mhwmult\fR option.  It also toggles warnings about unrecognized
20703 \&\s-1MCU\s0 names.  This option is on by default.
20704 .IP "\fB\-mcpu=\fR" 4
20705 .IX Item "-mcpu="
20706 Specifies the \s-1ISA\s0 to use.  Accepted values are \fBmsp430\fR,
20707 \&\fBmsp430x\fR and \fBmsp430xv2\fR.  This option is deprecated.  The
20708 \&\fB\-mmcu=\fR option should be used to select the \s-1ISA.\s0
20709 .IP "\fB\-msim\fR" 4
20710 .IX Item "-msim"
20711 Link to the simulator runtime libraries and linker script.  Overrides
20712 any scripts that would be selected by the \fB\-mmcu=\fR option.
20713 .IP "\fB\-mlarge\fR" 4
20714 .IX Item "-mlarge"
20715 Use large-model addressing (20\-bit pointers, 32\-bit \f(CW\*(C`size_t\*(C'\fR).
20716 .IP "\fB\-msmall\fR" 4
20717 .IX Item "-msmall"
20718 Use small-model addressing (16\-bit pointers, 16\-bit \f(CW\*(C`size_t\*(C'\fR).
20719 .IP "\fB\-mrelax\fR" 4
20720 .IX Item "-mrelax"
20721 This option is passed to the assembler and linker, and allows the
20722 linker to perform certain optimizations that cannot be done until
20723 the final link.
20724 .IP "\fBmhwmult=\fR" 4
20725 .IX Item "mhwmult="
20726 Describes the type of hardware multiply supported by the target.
20727 Accepted values are \fBnone\fR for no hardware multiply, \fB16bit\fR
20728 for the original 16\-bit\-only multiply supported by early MCUs.
20729 \&\fB32bit\fR for the 16/32\-bit multiply supported by later MCUs and
20730 \&\fBf5series\fR for the 16/32\-bit multiply supported by F5\-series MCUs.
20731 A value of \fBauto\fR can also be given.  This tells \s-1GCC\s0 to deduce
20732 the hardware multiply support based upon the \s-1MCU\s0 name provided by the
20733 \&\fB\-mmcu\fR option.  If no \fB\-mmcu\fR option is specified or if
20734 the \s-1MCU\s0 name is not recognized then no hardware multiply support is
20735 assumed.  \f(CW\*(C`auto\*(C'\fR is the default setting.
20736 .Sp
20737 Hardware multiplies are normally performed by calling a library
20738 routine.  This saves space in the generated code.  When compiling at
20739 \&\fB\-O3\fR or higher however the hardware multiplier is invoked
20740 inline.  This makes for bigger, but faster code.
20741 .Sp
20742 The hardware multiply routines disable interrupts whilst running and
20743 restore the previous interrupt state when they finish.  This makes
20744 them safe to use inside interrupt handlers as well as in normal code.
20745 .IP "\fB\-minrt\fR" 4
20746 .IX Item "-minrt"
20747 Enable the use of a minimum runtime environment \- no static
20748 initializers or constructors.  This is intended for memory-constrained
20749 devices.  The compiler includes special symbols in some objects
20750 that tell the linker and runtime which code fragments are required.
20751 .IP "\fB\-mcode\-region=\fR" 4
20752 .IX Item "-mcode-region="
20753 .PD 0
20754 .IP "\fB\-mdata\-region=\fR" 4
20755 .IX Item "-mdata-region="
20756 .PD
20757 These options tell the compiler where to place functions and data that
20758 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
20759 \&\f(CW\*(C`section\*(C'\fR attributes.  Possible values are \f(CW\*(C`lower\*(C'\fR,
20760 \&\f(CW\*(C`upper\*(C'\fR, \f(CW\*(C`either\*(C'\fR or \f(CW\*(C`any\*(C'\fR.  The first three behave
20761 like the corresponding attribute.  The fourth possible value \-
20762 \&\f(CW\*(C`any\*(C'\fR \- is the default.  It leaves placement entirely up to the
20763 linker script and how it assigns the standard sections
20764 (\f(CW\*(C`.text\*(C'\fR, \f(CW\*(C`.data\*(C'\fR, etc) to the memory regions.
20765 .IP "\fB\-msilicon\-errata=\fR" 4
20766 .IX Item "-msilicon-errata="
20767 This option passes on a request to assembler to enable the fixes for
20768 the named silicon errata.
20769 .IP "\fB\-msilicon\-errata\-warn=\fR" 4
20770 .IX Item "-msilicon-errata-warn="
20771 This option passes on a request to the assembler to enable warning
20772 messages when a silicon errata might need to be applied.
20773 .PP
20774 \fI\s-1NDS32\s0 Options\fR
20775 .IX Subsection "NDS32 Options"
20776 .PP
20777 These options are defined for \s-1NDS32\s0 implementations:
20778 .IP "\fB\-mbig\-endian\fR" 4
20779 .IX Item "-mbig-endian"
20780 Generate code in big-endian mode.
20781 .IP "\fB\-mlittle\-endian\fR" 4
20782 .IX Item "-mlittle-endian"
20783 Generate code in little-endian mode.
20784 .IP "\fB\-mreduced\-regs\fR" 4
20785 .IX Item "-mreduced-regs"
20786 Use reduced-set registers for register allocation.
20787 .IP "\fB\-mfull\-regs\fR" 4
20788 .IX Item "-mfull-regs"
20789 Use full-set registers for register allocation.
20790 .IP "\fB\-mcmov\fR" 4
20791 .IX Item "-mcmov"
20792 Generate conditional move instructions.
20793 .IP "\fB\-mno\-cmov\fR" 4
20794 .IX Item "-mno-cmov"
20795 Do not generate conditional move instructions.
20796 .IP "\fB\-mext\-perf\fR" 4
20797 .IX Item "-mext-perf"
20798 Generate performance extension instructions.
20799 .IP "\fB\-mno\-ext\-perf\fR" 4
20800 .IX Item "-mno-ext-perf"
20801 Do not generate performance extension instructions.
20802 .IP "\fB\-mext\-perf2\fR" 4
20803 .IX Item "-mext-perf2"
20804 Generate performance extension 2 instructions.
20805 .IP "\fB\-mno\-ext\-perf2\fR" 4
20806 .IX Item "-mno-ext-perf2"
20807 Do not generate performance extension 2 instructions.
20808 .IP "\fB\-mext\-string\fR" 4
20809 .IX Item "-mext-string"
20810 Generate string extension instructions.
20811 .IP "\fB\-mno\-ext\-string\fR" 4
20812 .IX Item "-mno-ext-string"
20813 Do not generate string extension instructions.
20814 .IP "\fB\-mv3push\fR" 4
20815 .IX Item "-mv3push"
20816 Generate v3 push25/pop25 instructions.
20817 .IP "\fB\-mno\-v3push\fR" 4
20818 .IX Item "-mno-v3push"
20819 Do not generate v3 push25/pop25 instructions.
20820 .IP "\fB\-m16\-bit\fR" 4
20821 .IX Item "-m16-bit"
20822 Generate 16\-bit instructions.
20823 .IP "\fB\-mno\-16\-bit\fR" 4
20824 .IX Item "-mno-16-bit"
20825 Do not generate 16\-bit instructions.
20826 .IP "\fB\-misr\-vector\-size=\fR\fInum\fR" 4
20827 .IX Item "-misr-vector-size=num"
20828 Specify the size of each interrupt vector, which must be 4 or 16.
20829 .IP "\fB\-mcache\-block\-size=\fR\fInum\fR" 4
20830 .IX Item "-mcache-block-size=num"
20831 Specify the size of each cache block,
20832 which must be a power of 2 between 4 and 512.
20833 .IP "\fB\-march=\fR\fIarch\fR" 4
20834 .IX Item "-march=arch"
20835 Specify the name of the target architecture.
20836 .IP "\fB\-mcmodel=\fR\fIcode-model\fR" 4
20837 .IX Item "-mcmodel=code-model"
20838 Set the code model to one of
20839 .RS 4
20840 .IP "\fBsmall\fR" 4
20841 .IX Item "small"
20842 All the data and read-only data segments must be within 512KB addressing space.
20843 The text segment must be within 16MB addressing space.
20844 .IP "\fBmedium\fR" 4
20845 .IX Item "medium"
20846 The data segment must be within 512KB while the read-only data segment can be
20847 within 4GB addressing space.  The text segment should be still within 16MB
20848 addressing space.
20849 .IP "\fBlarge\fR" 4
20850 .IX Item "large"
20851 All the text and data segments can be within 4GB addressing space.
20852 .RE
20853 .RS 4
20854 .RE
20855 .IP "\fB\-mctor\-dtor\fR" 4
20856 .IX Item "-mctor-dtor"
20857 Enable constructor/destructor feature.
20858 .IP "\fB\-mrelax\fR" 4
20859 .IX Item "-mrelax"
20860 Guide linker to relax instructions.
20861 .PP
20862 \fINios \s-1II\s0 Options\fR
20863 .IX Subsection "Nios II Options"
20864 .PP
20865 These are the options defined for the Altera Nios \s-1II\s0 processor.
20866 .IP "\fB\-G\fR \fInum\fR" 4
20867 .IX Item "-G num"
20868 Put global and static objects less than or equal to \fInum\fR bytes
20869 into the small data or \s-1BSS\s0 sections instead of the normal data or \s-1BSS\s0
20870 sections.  The default value of \fInum\fR is 8.
20871 .IP "\fB\-mgpopt=\fR\fIoption\fR" 4
20872 .IX Item "-mgpopt=option"
20873 .PD 0
20874 .IP "\fB\-mgpopt\fR" 4
20875 .IX Item "-mgpopt"
20876 .IP "\fB\-mno\-gpopt\fR" 4
20877 .IX Item "-mno-gpopt"
20878 .PD
20879 Generate (do not generate) GP-relative accesses.  The following 
20880 \&\fIoption\fR names are recognized:
20881 .RS 4
20882 .IP "\fBnone\fR" 4
20883 .IX Item "none"
20884 Do not generate GP-relative accesses.
20885 .IP "\fBlocal\fR" 4
20886 .IX Item "local"
20887 Generate GP-relative accesses for small data objects that are not 
20888 external, weak, or uninitialized common symbols.  
20889 Also use GP-relative addressing for objects that
20890 have been explicitly placed in a small data section via a \f(CW\*(C`section\*(C'\fR
20891 attribute.
20892 .IP "\fBglobal\fR" 4
20893 .IX Item "global"
20894 As for \fBlocal\fR, but also generate GP-relative accesses for
20895 small data objects that are external, weak, or common.  If you use this option,
20896 you must ensure that all parts of your program (including libraries) are
20897 compiled with the same \fB\-G\fR setting.
20898 .IP "\fBdata\fR" 4
20899 .IX Item "data"
20900 Generate GP-relative accesses for all data objects in the program.  If you
20901 use this option, the entire data and \s-1BSS\s0 segments
20902 of your program must fit in 64K of memory and you must use an appropriate
20903 linker script to allocate them within the addressable range of the
20904 global pointer.
20905 .IP "\fBall\fR" 4
20906 .IX Item "all"
20907 Generate GP-relative addresses for function pointers as well as data
20908 pointers.  If you use this option, the entire text, data, and \s-1BSS\s0 segments
20909 of your program must fit in 64K of memory and you must use an appropriate
20910 linker script to allocate them within the addressable range of the
20911 global pointer.
20912 .RE
20913 .RS 4
20914 .Sp
20915 \&\fB\-mgpopt\fR is equivalent to \fB\-mgpopt=local\fR, and
20916 \&\fB\-mno\-gpopt\fR is equivalent to \fB\-mgpopt=none\fR.
20917 .Sp
20918 The default is \fB\-mgpopt\fR except when \fB\-fpic\fR or
20919 \&\fB\-fPIC\fR is specified to generate position-independent code.
20920 Note that the Nios \s-1II ABI\s0 does not permit GP-relative accesses from
20921 shared libraries.
20922 .Sp
20923 You may need to specify \fB\-mno\-gpopt\fR explicitly when building
20924 programs that include large amounts of small data, including large
20925 \&\s-1GOT\s0 data sections.  In this case, the 16\-bit offset for GP-relative
20926 addressing may not be large enough to allow access to the entire 
20927 small data section.
20928 .RE
20929 .IP "\fB\-mgprel\-sec=\fR\fIregexp\fR" 4
20930 .IX Item "-mgprel-sec=regexp"
20931 This option specifies additional section names that can be accessed via
20932 GP-relative addressing.  It is most useful in conjunction with 
20933 \&\f(CW\*(C`section\*(C'\fR attributes on variable declarations and a custom linker script.  
20934 The \fIregexp\fR is a \s-1POSIX\s0 Extended Regular Expression.
20935 .Sp
20936 This option does not affect the behavior of the \fB\-G\fR option, and 
20937 the specified sections are in addition to the standard \f(CW\*(C`.sdata\*(C'\fR
20938 and \f(CW\*(C`.sbss\*(C'\fR small-data sections that are recognized by \fB\-mgpopt\fR.
20939 .IP "\fB\-mr0rel\-sec=\fR\fIregexp\fR" 4
20940 .IX Item "-mr0rel-sec=regexp"
20941 This option specifies names of sections that can be accessed via a 
20942 16\-bit offset from \f(CW\*(C`r0\*(C'\fR; that is, in the low 32K or high 32K 
20943 of the 32\-bit address space.  It is most useful in conjunction with 
20944 \&\f(CW\*(C`section\*(C'\fR attributes on variable declarations and a custom linker script.  
20945 The \fIregexp\fR is a \s-1POSIX\s0 Extended Regular Expression.
20946 .Sp
20947 In contrast to the use of GP-relative addressing for small data, 
20948 zero-based addressing is never generated by default and there are no 
20949 conventional section names used in standard linker scripts for sections
20950 in the low or high areas of memory.
20951 .IP "\fB\-mel\fR" 4
20952 .IX Item "-mel"
20953 .PD 0
20954 .IP "\fB\-meb\fR" 4
20955 .IX Item "-meb"
20956 .PD
20957 Generate little-endian (default) or big-endian (experimental) code,
20958 respectively.
20959 .IP "\fB\-march=\fR\fIarch\fR" 4
20960 .IX Item "-march=arch"
20961 This specifies the name of the target Nios \s-1II\s0 architecture.  \s-1GCC\s0 uses this
20962 name to determine what kind of instructions it can emit when generating
20963 assembly code.  Permissible names are: \fBr1\fR, \fBr2\fR.
20964 .Sp
20965 The preprocessor macro \f(CW\*(C`_\|_nios2_arch_\|_\*(C'\fR is available to programs,
20966 with value 1 or 2, indicating the targeted \s-1ISA\s0 level.
20967 .IP "\fB\-mbypass\-cache\fR" 4
20968 .IX Item "-mbypass-cache"
20969 .PD 0
20970 .IP "\fB\-mno\-bypass\-cache\fR" 4
20971 .IX Item "-mno-bypass-cache"
20972 .PD
20973 Force all load and store instructions to always bypass cache by 
20974 using I/O variants of the instructions. The default is not to
20975 bypass the cache.
20976 .IP "\fB\-mno\-cache\-volatile\fR" 4
20977 .IX Item "-mno-cache-volatile"
20978 .PD 0
20979 .IP "\fB\-mcache\-volatile\fR" 4
20980 .IX Item "-mcache-volatile"
20981 .PD
20982 Volatile memory access bypass the cache using the I/O variants of 
20983 the load and store instructions. The default is not to bypass the cache.
20984 .IP "\fB\-mno\-fast\-sw\-div\fR" 4
20985 .IX Item "-mno-fast-sw-div"
20986 .PD 0
20987 .IP "\fB\-mfast\-sw\-div\fR" 4
20988 .IX Item "-mfast-sw-div"
20989 .PD
20990 Do not use table-based fast divide for small numbers. The default 
20991 is to use the fast divide at \fB\-O3\fR and above.
20992 .IP "\fB\-mno\-hw\-mul\fR" 4
20993 .IX Item "-mno-hw-mul"
20994 .PD 0
20995 .IP "\fB\-mhw\-mul\fR" 4
20996 .IX Item "-mhw-mul"
20997 .IP "\fB\-mno\-hw\-mulx\fR" 4
20998 .IX Item "-mno-hw-mulx"
20999 .IP "\fB\-mhw\-mulx\fR" 4
21000 .IX Item "-mhw-mulx"
21001 .IP "\fB\-mno\-hw\-div\fR" 4
21002 .IX Item "-mno-hw-div"
21003 .IP "\fB\-mhw\-div\fR" 4
21004 .IX Item "-mhw-div"
21005 .PD
21006 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 
21007 instructions by the compiler. The default is to emit \f(CW\*(C`mul\*(C'\fR
21008 and not emit \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`mulx\*(C'\fR.
21009 .IP "\fB\-mbmx\fR" 4
21010 .IX Item "-mbmx"
21011 .PD 0
21012 .IP "\fB\-mno\-bmx\fR" 4
21013 .IX Item "-mno-bmx"
21014 .IP "\fB\-mcdx\fR" 4
21015 .IX Item "-mcdx"
21016 .IP "\fB\-mno\-cdx\fR" 4
21017 .IX Item "-mno-cdx"
21018 .PD
21019 Enable or disable generation of Nios \s-1II R2 BMX\s0 (bit manipulation) and
21020 \&\s-1CDX\s0 (code density) instructions.  Enabling these instructions also
21021 requires \fB\-march=r2\fR.  Since these instructions are optional
21022 extensions to the R2 architecture, the default is not to emit them.
21023 .IP "\fB\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR" 4
21024 .IX Item "-mcustom-insn=N"
21025 .PD 0
21026 .IP "\fB\-mno\-custom\-\fR\fIinsn\fR" 4
21027 .IX Item "-mno-custom-insn"
21028 .PD
21029 Each \fB\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR option enables use of a
21030 custom instruction with encoding \fIN\fR when generating code that uses 
21031 \&\fIinsn\fR.  For example, \fB\-mcustom\-fadds=253\fR generates custom
21032 instruction 253 for single-precision floating-point add operations instead
21033 of the default behavior of using a library call.
21034 .Sp
21035 The following values of \fIinsn\fR are supported.  Except as otherwise
21036 noted, floating-point operations are expected to be implemented with
21037 normal \s-1IEEE 754\s0 semantics and correspond directly to the C operators or the
21038 equivalent \s-1GCC\s0 built-in functions.
21039 .Sp
21040 Single-precision floating point:
21041 .RS 4
21042 .IP "\fBfadds\fR, \fBfsubs\fR, \fBfdivs\fR, \fBfmuls\fR" 4
21043 .IX Item "fadds, fsubs, fdivs, fmuls"
21044 Binary arithmetic operations.
21045 .IP "\fBfnegs\fR" 4
21046 .IX Item "fnegs"
21047 Unary negation.
21048 .IP "\fBfabss\fR" 4
21049 .IX Item "fabss"
21050 Unary absolute value.
21051 .IP "\fBfcmpeqs\fR, \fBfcmpges\fR, \fBfcmpgts\fR, \fBfcmples\fR, \fBfcmplts\fR, \fBfcmpnes\fR" 4
21052 .IX Item "fcmpeqs, fcmpges, fcmpgts, fcmples, fcmplts, fcmpnes"
21053 Comparison operations.
21054 .IP "\fBfmins\fR, \fBfmaxs\fR" 4
21055 .IX Item "fmins, fmaxs"
21056 Floating-point minimum and maximum.  These instructions are only
21057 generated if \fB\-ffinite\-math\-only\fR is specified.
21058 .IP "\fBfsqrts\fR" 4
21059 .IX Item "fsqrts"
21060 Unary square root operation.
21061 .IP "\fBfcoss\fR, \fBfsins\fR, \fBftans\fR, \fBfatans\fR, \fBfexps\fR, \fBflogs\fR" 4
21062 .IX Item "fcoss, fsins, ftans, fatans, fexps, flogs"
21063 Floating-point trigonometric and exponential functions.  These instructions
21064 are only generated if \fB\-funsafe\-math\-optimizations\fR is also specified.
21065 .RE
21066 .RS 4
21067 .Sp
21068 Double-precision floating point:
21069 .IP "\fBfaddd\fR, \fBfsubd\fR, \fBfdivd\fR, \fBfmuld\fR" 4
21070 .IX Item "faddd, fsubd, fdivd, fmuld"
21071 Binary arithmetic operations.
21072 .IP "\fBfnegd\fR" 4
21073 .IX Item "fnegd"
21074 Unary negation.
21075 .IP "\fBfabsd\fR" 4
21076 .IX Item "fabsd"
21077 Unary absolute value.
21078 .IP "\fBfcmpeqd\fR, \fBfcmpged\fR, \fBfcmpgtd\fR, \fBfcmpled\fR, \fBfcmpltd\fR, \fBfcmpned\fR" 4
21079 .IX Item "fcmpeqd, fcmpged, fcmpgtd, fcmpled, fcmpltd, fcmpned"
21080 Comparison operations.
21081 .IP "\fBfmind\fR, \fBfmaxd\fR" 4
21082 .IX Item "fmind, fmaxd"
21083 Double-precision minimum and maximum.  These instructions are only
21084 generated if \fB\-ffinite\-math\-only\fR is specified.
21085 .IP "\fBfsqrtd\fR" 4
21086 .IX Item "fsqrtd"
21087 Unary square root operation.
21088 .IP "\fBfcosd\fR, \fBfsind\fR, \fBftand\fR, \fBfatand\fR, \fBfexpd\fR, \fBflogd\fR" 4
21089 .IX Item "fcosd, fsind, ftand, fatand, fexpd, flogd"
21090 Double-precision trigonometric and exponential functions.  These instructions
21091 are only generated if \fB\-funsafe\-math\-optimizations\fR is also specified.
21092 .RE
21093 .RS 4
21094 .Sp
21095 Conversions:
21096 .IP "\fBfextsd\fR" 4
21097 .IX Item "fextsd"
21098 Conversion from single precision to double precision.
21099 .IP "\fBftruncds\fR" 4
21100 .IX Item "ftruncds"
21101 Conversion from double precision to single precision.
21102 .IP "\fBfixsi\fR, \fBfixsu\fR, \fBfixdi\fR, \fBfixdu\fR" 4
21103 .IX Item "fixsi, fixsu, fixdi, fixdu"
21104 Conversion from floating point to signed or unsigned integer types, with
21105 truncation towards zero.
21106 .IP "\fBround\fR" 4
21107 .IX Item "round"
21108 Conversion from single-precision floating point to signed integer,
21109 rounding to the nearest integer and ties away from zero.
21110 This corresponds to the \f(CW\*(C`_\|_builtin_lroundf\*(C'\fR function when
21111 \&\fB\-fno\-math\-errno\fR is used.
21112 .IP "\fBfloatis\fR, \fBfloatus\fR, \fBfloatid\fR, \fBfloatud\fR" 4
21113 .IX Item "floatis, floatus, floatid, floatud"
21114 Conversion from signed or unsigned integer types to floating-point types.
21115 .RE
21116 .RS 4
21117 .Sp
21118 In addition, all of the following transfer instructions for internal
21119 registers X and Y must be provided to use any of the double-precision
21120 floating-point instructions.  Custom instructions taking two
21121 double-precision source operands expect the first operand in the
21122 64\-bit register X.  The other operand (or only operand of a unary
21123 operation) is given to the custom arithmetic instruction with the
21124 least significant half in source register \fIsrc1\fR and the most
21125 significant half in \fIsrc2\fR.  A custom instruction that returns a
21126 double-precision result returns the most significant 32 bits in the
21127 destination register and the other half in 32\-bit register Y.  
21128 \&\s-1GCC\s0 automatically generates the necessary code sequences to write
21129 register X and/or read register Y when double-precision floating-point
21130 instructions are used.
21131 .IP "\fBfwrx\fR" 4
21132 .IX Item "fwrx"
21133 Write \fIsrc1\fR into the least significant half of X and \fIsrc2\fR into
21134 the most significant half of X.
21135 .IP "\fBfwry\fR" 4
21136 .IX Item "fwry"
21137 Write \fIsrc1\fR into Y.
21138 .IP "\fBfrdxhi\fR, \fBfrdxlo\fR" 4
21139 .IX Item "frdxhi, frdxlo"
21140 Read the most or least (respectively) significant half of X and store it in
21141 \&\fIdest\fR.
21142 .IP "\fBfrdy\fR" 4
21143 .IX Item "frdy"
21144 Read the value of Y and store it into \fIdest\fR.
21145 .RE
21146 .RS 4
21147 .Sp
21148 Note that you can gain more local control over generation of Nios \s-1II\s0 custom
21149 instructions by using the \f(CW\*(C`target("custom\-\f(CIinsn\f(CW=\f(CIN\f(CW")\*(C'\fR
21150 and \f(CW\*(C`target("no\-custom\-\f(CIinsn\f(CW")\*(C'\fR function attributes
21151 or pragmas.
21152 .RE
21153 .IP "\fB\-mcustom\-fpu\-cfg=\fR\fIname\fR" 4
21154 .IX Item "-mcustom-fpu-cfg=name"
21155 This option enables a predefined, named set of custom instruction encodings
21156 (see \fB\-mcustom\-\fR\fIinsn\fR above).  
21157 Currently, the following sets are defined:
21158 .Sp
21159 \&\fB\-mcustom\-fpu\-cfg=60\-1\fR is equivalent to:
21160 \&\fB\-mcustom\-fmuls=252 
21161 \&\-mcustom\-fadds=253 
21162 \&\-mcustom\-fsubs=254 
21163 \&\-fsingle\-precision\-constant\fR
21164 .Sp
21165 \&\fB\-mcustom\-fpu\-cfg=60\-2\fR is equivalent to:
21166 \&\fB\-mcustom\-fmuls=252 
21167 \&\-mcustom\-fadds=253 
21168 \&\-mcustom\-fsubs=254 
21169 \&\-mcustom\-fdivs=255 
21170 \&\-fsingle\-precision\-constant\fR
21171 .Sp
21172 \&\fB\-mcustom\-fpu\-cfg=72\-3\fR is equivalent to:
21173 \&\fB\-mcustom\-floatus=243 
21174 \&\-mcustom\-fixsi=244 
21175 \&\-mcustom\-floatis=245 
21176 \&\-mcustom\-fcmpgts=246 
21177 \&\-mcustom\-fcmples=249 
21178 \&\-mcustom\-fcmpeqs=250 
21179 \&\-mcustom\-fcmpnes=251 
21180 \&\-mcustom\-fmuls=252 
21181 \&\-mcustom\-fadds=253 
21182 \&\-mcustom\-fsubs=254 
21183 \&\-mcustom\-fdivs=255 
21184 \&\-fsingle\-precision\-constant\fR
21185 .Sp
21186 Custom instruction assignments given by individual
21187 \&\fB\-mcustom\-\fR\fIinsn\fR\fB=\fR options override those given by
21188 \&\fB\-mcustom\-fpu\-cfg=\fR, regardless of the
21189 order of the options on the command line.
21190 .Sp
21191 Note that you can gain more local control over selection of a \s-1FPU\s0
21192 configuration by using the \f(CW\*(C`target("custom\-fpu\-cfg=\f(CIname\f(CW")\*(C'\fR
21193 function attribute
21194 or pragma.
21195 .PP
21196 These additional \fB\-m\fR options are available for the Altera Nios \s-1II
21197 ELF\s0 (bare-metal) target:
21198 .IP "\fB\-mhal\fR" 4
21199 .IX Item "-mhal"
21200 Link with \s-1HAL BSP.\s0  This suppresses linking with the GCC-provided C runtime
21201 startup and termination code, and is typically used in conjunction with
21202 \&\fB\-msys\-crt0=\fR to specify the location of the alternate startup code
21203 provided by the \s-1HAL BSP.\s0
21204 .IP "\fB\-msmallc\fR" 4
21205 .IX Item "-msmallc"
21206 Link with a limited version of the C library, \fB\-lsmallc\fR, rather than
21207 Newlib.
21208 .IP "\fB\-msys\-crt0=\fR\fIstartfile\fR" 4
21209 .IX Item "-msys-crt0=startfile"
21210 \&\fIstartfile\fR is the file name of the startfile (crt0) to use 
21211 when linking.  This option is only useful in conjunction with \fB\-mhal\fR.
21212 .IP "\fB\-msys\-lib=\fR\fIsystemlib\fR" 4
21213 .IX Item "-msys-lib=systemlib"
21214 \&\fIsystemlib\fR is the library name of the library that provides
21215 low-level system calls required by the C library,
21216 e.g. \f(CW\*(C`read\*(C'\fR and \f(CW\*(C`write\*(C'\fR.
21217 This option is typically used to link with a library provided by a \s-1HAL BSP.\s0
21218 .PP
21219 \fINvidia \s-1PTX\s0 Options\fR
21220 .IX Subsection "Nvidia PTX Options"
21221 .PP
21222 These options are defined for Nvidia \s-1PTX:\s0
21223 .IP "\fB\-m32\fR" 4
21224 .IX Item "-m32"
21225 .PD 0
21226 .IP "\fB\-m64\fR" 4
21227 .IX Item "-m64"
21228 .PD
21229 Generate code for 32\-bit or 64\-bit \s-1ABI.\s0
21230 .IP "\fB\-mmainkernel\fR" 4
21231 .IX Item "-mmainkernel"
21232 Link in code for a _\|_main kernel.  This is for stand-alone instead of
21233 offloading execution.
21234 .IP "\fB\-moptimize\fR" 4
21235 .IX Item "-moptimize"
21236 Apply partitioned execution optimizations.  This is the default when any
21237 level of optimization is selected.
21238 .IP "\fB\-msoft\-stack\fR" 4
21239 .IX Item "-msoft-stack"
21240 Generate code that does not use \f(CW\*(C`.local\*(C'\fR memory
21241 directly for stack storage. Instead, a per-warp stack pointer is
21242 maintained explicitly. This enables variable-length stack allocation (with
21243 variable-length arrays or \f(CW\*(C`alloca\*(C'\fR), and when global memory is used for
21244 underlying storage, makes it possible to access automatic variables from other
21245 threads, or with atomic instructions. This code generation variant is used
21246 for OpenMP offloading, but the option is exposed on its own for the purpose
21247 of testing the compiler; to generate code suitable for linking into programs
21248 using OpenMP offloading, use option \fB\-mgomp\fR.
21249 .IP "\fB\-muniform\-simt\fR" 4
21250 .IX Item "-muniform-simt"
21251 Switch to code generation variant that allows to execute all threads in each
21252 warp, while maintaining memory state and side effects as if only one thread
21253 in each warp was active outside of OpenMP \s-1SIMD\s0 regions.  All atomic operations
21254 and calls to runtime (malloc, free, vprintf) are conditionally executed (iff
21255 current lane index equals the master lane index), and the register being
21256 assigned is copied via a shuffle instruction from the master lane.  Outside of
21257 \&\s-1SIMD\s0 regions lane 0 is the master; inside, each thread sees itself as the
21258 master.  Shared memory array \f(CW\*(C`int _\|_nvptx_uni[]\*(C'\fR stores all-zeros or
21259 all-ones bitmasks for each warp, indicating current mode (0 outside of \s-1SIMD\s0
21260 regions).  Each thread can bitwise-and the bitmask at position \f(CW\*(C`tid.y\*(C'\fR
21261 with current lane index to compute the master lane index.
21262 .IP "\fB\-mgomp\fR" 4
21263 .IX Item "-mgomp"
21264 Generate code for use in OpenMP offloading: enables \fB\-msoft\-stack\fR and
21265 \&\fB\-muniform\-simt\fR options, and selects corresponding multilib variant.
21266 .PP
21267 \fI\s-1PDP\-11\s0 Options\fR
21268 .IX Subsection "PDP-11 Options"
21269 .PP
21270 These options are defined for the \s-1PDP\-11:\s0
21271 .IP "\fB\-mfpu\fR" 4
21272 .IX Item "-mfpu"
21273 Use hardware \s-1FPP\s0 floating point.  This is the default.  (\s-1FIS\s0 floating
21274 point on the \s-1PDP\-11/40\s0 is not supported.)
21275 .IP "\fB\-msoft\-float\fR" 4
21276 .IX Item "-msoft-float"
21277 Do not use hardware floating point.
21278 .IP "\fB\-mac0\fR" 4
21279 .IX Item "-mac0"
21280 Return floating-point results in ac0 (fr0 in Unix assembler syntax).
21281 .IP "\fB\-mno\-ac0\fR" 4
21282 .IX Item "-mno-ac0"
21283 Return floating-point results in memory.  This is the default.
21284 .IP "\fB\-m40\fR" 4
21285 .IX Item "-m40"
21286 Generate code for a \s-1PDP\-11/40.\s0
21287 .IP "\fB\-m45\fR" 4
21288 .IX Item "-m45"
21289 Generate code for a \s-1PDP\-11/45.\s0  This is the default.
21290 .IP "\fB\-m10\fR" 4
21291 .IX Item "-m10"
21292 Generate code for a \s-1PDP\-11/10.\s0
21293 .IP "\fB\-mbcopy\-builtin\fR" 4
21294 .IX Item "-mbcopy-builtin"
21295 Use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.  This is the
21296 default.
21297 .IP "\fB\-mbcopy\fR" 4
21298 .IX Item "-mbcopy"
21299 Do not use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.
21300 .IP "\fB\-mint16\fR" 4
21301 .IX Item "-mint16"
21302 .PD 0
21303 .IP "\fB\-mno\-int32\fR" 4
21304 .IX Item "-mno-int32"
21305 .PD
21306 Use 16\-bit \f(CW\*(C`int\*(C'\fR.  This is the default.
21307 .IP "\fB\-mint32\fR" 4
21308 .IX Item "-mint32"
21309 .PD 0
21310 .IP "\fB\-mno\-int16\fR" 4
21311 .IX Item "-mno-int16"
21312 .PD
21313 Use 32\-bit \f(CW\*(C`int\*(C'\fR.
21314 .IP "\fB\-mfloat64\fR" 4
21315 .IX Item "-mfloat64"
21316 .PD 0
21317 .IP "\fB\-mno\-float32\fR" 4
21318 .IX Item "-mno-float32"
21319 .PD
21320 Use 64\-bit \f(CW\*(C`float\*(C'\fR.  This is the default.
21321 .IP "\fB\-mfloat32\fR" 4
21322 .IX Item "-mfloat32"
21323 .PD 0
21324 .IP "\fB\-mno\-float64\fR" 4
21325 .IX Item "-mno-float64"
21326 .PD
21327 Use 32\-bit \f(CW\*(C`float\*(C'\fR.
21328 .IP "\fB\-mabshi\fR" 4
21329 .IX Item "-mabshi"
21330 Use \f(CW\*(C`abshi2\*(C'\fR pattern.  This is the default.
21331 .IP "\fB\-mno\-abshi\fR" 4
21332 .IX Item "-mno-abshi"
21333 Do not use \f(CW\*(C`abshi2\*(C'\fR pattern.
21334 .IP "\fB\-mbranch\-expensive\fR" 4
21335 .IX Item "-mbranch-expensive"
21336 Pretend that branches are expensive.  This is for experimenting with
21337 code generation only.
21338 .IP "\fB\-mbranch\-cheap\fR" 4
21339 .IX Item "-mbranch-cheap"
21340 Do not pretend that branches are expensive.  This is the default.
21341 .IP "\fB\-munix\-asm\fR" 4
21342 .IX Item "-munix-asm"
21343 Use Unix assembler syntax.  This is the default when configured for
21344 \&\fBpdp11\-*\-bsd\fR.
21345 .IP "\fB\-mdec\-asm\fR" 4
21346 .IX Item "-mdec-asm"
21347 Use \s-1DEC\s0 assembler syntax.  This is the default when configured for any
21348 \&\s-1PDP\-11\s0 target other than \fBpdp11\-*\-bsd\fR.
21349 .PP
21350 \fIpicoChip Options\fR
21351 .IX Subsection "picoChip Options"
21352 .PP
21353 These \fB\-m\fR options are defined for picoChip implementations:
21354 .IP "\fB\-mae=\fR\fIae_type\fR" 4
21355 .IX Item "-mae=ae_type"
21356 Set the instruction set, register set, and instruction scheduling
21357 parameters for array element type \fIae_type\fR.  Supported values
21358 for \fIae_type\fR are \fB\s-1ANY\s0\fR, \fB\s-1MUL\s0\fR, and \fB\s-1MAC\s0\fR.
21359 .Sp
21360 \&\fB\-mae=ANY\fR selects a completely generic \s-1AE\s0 type.  Code
21361 generated with this option runs on any of the other \s-1AE\s0 types.  The
21362 code is not as efficient as it would be if compiled for a specific
21363 \&\s-1AE\s0 type, and some types of operation (e.g., multiplication) do not
21364 work properly on all types of \s-1AE.\s0
21365 .Sp
21366 \&\fB\-mae=MUL\fR selects a \s-1MUL AE\s0 type.  This is the most useful \s-1AE\s0 type
21367 for compiled code, and is the default.
21368 .Sp
21369 \&\fB\-mae=MAC\fR selects a DSP-style \s-1MAC AE.\s0  Code compiled with this
21370 option may suffer from poor performance of byte (char) manipulation,
21371 since the \s-1DSP AE\s0 does not provide hardware support for byte load/stores.
21372 .IP "\fB\-msymbol\-as\-address\fR" 4
21373 .IX Item "-msymbol-as-address"
21374 Enable the compiler to directly use a symbol name as an address in a
21375 load/store instruction, without first loading it into a
21376 register.  Typically, the use of this option generates larger
21377 programs, which run faster than when the option isn't used.  However, the
21378 results vary from program to program, so it is left as a user option,
21379 rather than being permanently enabled.
21380 .IP "\fB\-mno\-inefficient\-warnings\fR" 4
21381 .IX Item "-mno-inefficient-warnings"
21382 Disables warnings about the generation of inefficient code.  These
21383 warnings can be generated, for example, when compiling code that
21384 performs byte-level memory operations on the \s-1MAC AE\s0 type.  The \s-1MAC AE\s0 has
21385 no hardware support for byte-level memory operations, so all byte
21386 load/stores must be synthesized from word load/store operations.  This is
21387 inefficient and a warning is generated to indicate
21388 that you should rewrite the code to avoid byte operations, or to target
21389 an \s-1AE\s0 type that has the necessary hardware support.  This option disables
21390 these warnings.
21391 .PP
21392 \fIPowerPC Options\fR
21393 .IX Subsection "PowerPC Options"
21394 .PP
21395 These are listed under
21396 .PP
21397 \fIPowerPC \s-1SPE\s0 Options\fR
21398 .IX Subsection "PowerPC SPE Options"
21399 .PP
21400 These \fB\-m\fR options are defined for PowerPC \s-1SPE:\s0
21401 .IP "\fB\-mmfcrf\fR" 4
21402 .IX Item "-mmfcrf"
21403 .PD 0
21404 .IP "\fB\-mno\-mfcrf\fR" 4
21405 .IX Item "-mno-mfcrf"
21406 .IP "\fB\-mpopcntb\fR" 4
21407 .IX Item "-mpopcntb"
21408 .IP "\fB\-mno\-popcntb\fR" 4
21409 .IX Item "-mno-popcntb"
21410 .PD
21411 You use these options to specify which instructions are available on the
21412 processor you are using.  The default value of these options is
21413 determined when configuring \s-1GCC.\s0  Specifying the
21414 \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
21415 options.  We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
21416 rather than the options listed above.
21417 .Sp
21418 The \fB\-mmfcrf\fR option allows \s-1GCC\s0 to generate the move from
21419 condition register field instruction implemented on the \s-1POWER4\s0
21420 processor and other processors that support the PowerPC V2.01
21421 architecture.
21422 The \fB\-mpopcntb\fR option allows \s-1GCC\s0 to generate the popcount and
21423 double-precision \s-1FP\s0 reciprocal estimate instruction implemented on the
21424 \&\s-1POWER5\s0 processor and other processors that support the PowerPC V2.02
21425 architecture.
21426 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
21427 .IX Item "-mcpu=cpu_type"
21428 Set architecture type, register usage, and
21429 instruction scheduling parameters for machine type \fIcpu_type\fR.
21430 Supported values for \fIcpu_type\fR are \fB8540\fR, \fB8548\fR,
21431 and \fBnative\fR.
21432 .Sp
21433 \&\fB\-mcpu=powerpc\fR specifies pure 32\-bit PowerPC (either
21434 endian), with an appropriate, generic processor model assumed for
21435 scheduling purposes.
21436 .Sp
21437 Specifying \fBnative\fR as cpu type detects and selects the
21438 architecture option that corresponds to the host processor of the
21439 system performing the compilation.
21440 \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize the
21441 processor.
21442 .Sp
21443 The other options specify a specific processor.  Code generated under
21444 those options runs best on that processor, and may not run at all on
21445 others.
21446 .Sp
21447 The \fB\-mcpu\fR options automatically enable or disable the
21448 following options:
21449 .Sp
21450 \&\fB\-mhard\-float  \-mmfcrf  \-mmultiple 
21451 \&\-mpopcntb \-mpopcntd 
21452 \&\-msingle\-float \-mdouble\-float 
21453 \&\-mfloat128\fR
21454 .Sp
21455 The particular options set for any particular \s-1CPU\s0 varies between
21456 compiler versions, depending on what setting seems to produce optimal
21457 code for that \s-1CPU\s0; it doesn't necessarily reflect the actual hardware's
21458 capabilities.  If you wish to set an individual option to a particular
21459 value, you may specify it after the \fB\-mcpu\fR option, like
21460 \&\fB\-mcpu=8548\fR.
21461 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
21462 .IX Item "-mtune=cpu_type"
21463 Set the instruction scheduling parameters for machine type
21464 \&\fIcpu_type\fR, but do not set the architecture type or register usage,
21465 as \fB\-mcpu=\fR\fIcpu_type\fR does.  The same
21466 values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
21467 \&\fB\-mcpu\fR.  If both are specified, the code generated uses the
21468 architecture and registers set by \fB\-mcpu\fR, but the
21469 scheduling parameters set by \fB\-mtune\fR.
21470 .IP "\fB\-msecure\-plt\fR" 4
21471 .IX Item "-msecure-plt"
21472 Generate code that allows \fBld\fR and \fBld.so\fR
21473 to build executables and shared
21474 libraries with non-executable \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR sections.
21475 This is a PowerPC
21476 32\-bit \s-1SYSV ABI\s0 option.
21477 .IP "\fB\-mbss\-plt\fR" 4
21478 .IX Item "-mbss-plt"
21479 Generate code that uses a \s-1BSS\s0 \f(CW\*(C`.plt\*(C'\fR section that \fBld.so\fR
21480 fills in, and
21481 requires \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR
21482 sections that are both writable and executable.
21483 This is a PowerPC 32\-bit \s-1SYSV ABI\s0 option.
21484 .IP "\fB\-misel\fR" 4
21485 .IX Item "-misel"
21486 .PD 0
21487 .IP "\fB\-mno\-isel\fR" 4
21488 .IX Item "-mno-isel"
21489 .PD
21490 This switch enables or disables the generation of \s-1ISEL\s0 instructions.
21491 .IP "\fB\-misel=\fR\fIyes/no\fR" 4
21492 .IX Item "-misel=yes/no"
21493 This switch has been deprecated.  Use \fB\-misel\fR and
21494 \&\fB\-mno\-isel\fR instead.
21495 .IP "\fB\-mspe\fR" 4
21496 .IX Item "-mspe"
21497 .PD 0
21498 .IP "\fB\-mno\-spe\fR" 4
21499 .IX Item "-mno-spe"
21500 .PD
21501 This switch enables or disables the generation of \s-1SPE\s0 simd
21502 instructions.
21503 .IP "\fB\-mspe=\fR\fIyes/no\fR" 4
21504 .IX Item "-mspe=yes/no"
21505 This option has been deprecated.  Use \fB\-mspe\fR and
21506 \&\fB\-mno\-spe\fR instead.
21507 .IP "\fB\-mfloat128\fR" 4
21508 .IX Item "-mfloat128"
21509 .PD 0
21510 .IP "\fB\-mno\-float128\fR" 4
21511 .IX Item "-mno-float128"
21512 .PD
21513 Enable/disable the \fI_\|_float128\fR keyword for \s-1IEEE\s0 128\-bit floating point
21514 and use either software emulation for \s-1IEEE\s0 128\-bit floating point or
21515 hardware instructions.
21516 .IP "\fB\-mfloat\-gprs=\fR\fIyes/single/double/no\fR" 4
21517 .IX Item "-mfloat-gprs=yes/single/double/no"
21518 .PD 0
21519 .IP "\fB\-mfloat\-gprs\fR" 4
21520 .IX Item "-mfloat-gprs"
21521 .PD
21522 This switch enables or disables the generation of floating-point
21523 operations on the general-purpose registers for architectures that
21524 support it.
21525 .Sp
21526 The argument \fByes\fR or \fBsingle\fR enables the use of
21527 single-precision floating-point operations.
21528 .Sp
21529 The argument \fBdouble\fR enables the use of single and
21530 double-precision floating-point operations.
21531 .Sp
21532 The argument \fBno\fR disables floating-point operations on the
21533 general-purpose registers.
21534 .Sp
21535 This option is currently only available on the MPC854x.
21536 .IP "\fB\-mfull\-toc\fR" 4
21537 .IX Item "-mfull-toc"
21538 .PD 0
21539 .IP "\fB\-mno\-fp\-in\-toc\fR" 4
21540 .IX Item "-mno-fp-in-toc"
21541 .IP "\fB\-mno\-sum\-in\-toc\fR" 4
21542 .IX Item "-mno-sum-in-toc"
21543 .IP "\fB\-mminimal\-toc\fR" 4
21544 .IX Item "-mminimal-toc"
21545 .PD
21546 Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
21547 every executable file.  The \fB\-mfull\-toc\fR option is selected by
21548 default.  In that case, \s-1GCC\s0 allocates at least one \s-1TOC\s0 entry for
21549 each unique non-automatic variable reference in your program.  \s-1GCC\s0
21550 also places floating-point constants in the \s-1TOC.\s0  However, only
21551 16,384 entries are available in the \s-1TOC.\s0
21552 .Sp
21553 If you receive a linker error message that saying you have overflowed
21554 the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
21555 with the \fB\-mno\-fp\-in\-toc\fR and \fB\-mno\-sum\-in\-toc\fR options.
21556 \&\fB\-mno\-fp\-in\-toc\fR prevents \s-1GCC\s0 from putting floating-point
21557 constants in the \s-1TOC\s0 and \fB\-mno\-sum\-in\-toc\fR forces \s-1GCC\s0 to
21558 generate code to calculate the sum of an address and a constant at
21559 run time instead of putting that sum into the \s-1TOC.\s0  You may specify one
21560 or both of these options.  Each causes \s-1GCC\s0 to produce very slightly
21561 slower and larger code at the expense of conserving \s-1TOC\s0 space.
21562 .Sp
21563 If you still run out of space in the \s-1TOC\s0 even when you specify both of
21564 these options, specify \fB\-mminimal\-toc\fR instead.  This option causes
21565 \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file.  When you specify this
21566 option, \s-1GCC\s0 produces code that is slower and larger but which
21567 uses extremely little \s-1TOC\s0 space.  You may wish to use this option
21568 only on files that contain less frequently-executed code.
21569 .IP "\fB\-maix32\fR" 4
21570 .IX Item "-maix32"
21571 Disables the 64\-bit \s-1ABI.\s0  \s-1GCC\s0 defaults to \fB\-maix32\fR.
21572 .IP "\fB\-mxl\-compat\fR" 4
21573 .IX Item "-mxl-compat"
21574 .PD 0
21575 .IP "\fB\-mno\-xl\-compat\fR" 4
21576 .IX Item "-mno-xl-compat"
21577 .PD
21578 Produce code that conforms more closely to \s-1IBM XL\s0 compiler semantics
21579 when using AIX-compatible \s-1ABI.\s0  Pass floating-point arguments to
21580 prototyped functions beyond the register save area (\s-1RSA\s0) on the stack
21581 in addition to argument FPRs.  Do not assume that most significant
21582 double in 128\-bit long double value is properly rounded when comparing
21583 values and converting to double.  Use \s-1XL\s0 symbol names for long double
21584 support routines.
21585 .Sp
21586 The \s-1AIX\s0 calling convention was extended but not initially documented to
21587 handle an obscure K&R C case of calling a function that takes the
21588 address of its arguments with fewer arguments than declared.  \s-1IBM XL\s0
21589 compilers access floating-point arguments that do not fit in the
21590 \&\s-1RSA\s0 from the stack when a subroutine is compiled without
21591 optimization.  Because always storing floating-point arguments on the
21592 stack is inefficient and rarely needed, this option is not enabled by
21593 default and only is necessary when calling subroutines compiled by \s-1IBM
21594 XL\s0 compilers without optimization.
21595 .IP "\fB\-malign\-natural\fR" 4
21596 .IX Item "-malign-natural"
21597 .PD 0
21598 .IP "\fB\-malign\-power\fR" 4
21599 .IX Item "-malign-power"
21600 .PD
21601 On \s-1AIX,\s0 32\-bit Darwin, and 64\-bit PowerPC GNU/Linux, the option
21602 \&\fB\-malign\-natural\fR overrides the ABI-defined alignment of larger
21603 types, such as floating-point doubles, on their natural size-based boundary.
21604 The option \fB\-malign\-power\fR instructs \s-1GCC\s0 to follow the ABI-specified
21605 alignment rules.  \s-1GCC\s0 defaults to the standard alignment defined in the \s-1ABI.\s0
21606 .Sp
21607 On 64\-bit Darwin, natural alignment is the default, and \fB\-malign\-power\fR
21608 is not supported.
21609 .IP "\fB\-msoft\-float\fR" 4
21610 .IX Item "-msoft-float"
21611 .PD 0
21612 .IP "\fB\-mhard\-float\fR" 4
21613 .IX Item "-mhard-float"
21614 .PD
21615 Generate code that does not use (uses) the floating-point register set.
21616 Software floating-point emulation is provided if you use the
21617 \&\fB\-msoft\-float\fR option, and pass the option to \s-1GCC\s0 when linking.
21618 .IP "\fB\-msingle\-float\fR" 4
21619 .IX Item "-msingle-float"
21620 .PD 0
21621 .IP "\fB\-mdouble\-float\fR" 4
21622 .IX Item "-mdouble-float"
21623 .PD
21624 Generate code for single\- or double-precision floating-point operations.
21625 \&\fB\-mdouble\-float\fR implies \fB\-msingle\-float\fR.
21626 .IP "\fB\-mmultiple\fR" 4
21627 .IX Item "-mmultiple"
21628 .PD 0
21629 .IP "\fB\-mno\-multiple\fR" 4
21630 .IX Item "-mno-multiple"
21631 .PD
21632 Generate code that uses (does not use) the load multiple word
21633 instructions and the store multiple word instructions.  These
21634 instructions are generated by default on \s-1POWER\s0 systems, and not
21635 generated on PowerPC systems.  Do not use \fB\-mmultiple\fR on little-endian
21636 PowerPC systems, since those instructions do not work when the
21637 processor is in little-endian mode.  The exceptions are \s-1PPC740\s0 and
21638 \&\s-1PPC750\s0 which permit these instructions in little-endian mode.
21639 .IP "\fB\-mupdate\fR" 4
21640 .IX Item "-mupdate"
21641 .PD 0
21642 .IP "\fB\-mno\-update\fR" 4
21643 .IX Item "-mno-update"
21644 .PD
21645 Generate code that uses (does not use) the load or store instructions
21646 that update the base register to the address of the calculated memory
21647 location.  These instructions are generated by default.  If you use
21648 \&\fB\-mno\-update\fR, there is a small window between the time that the
21649 stack pointer is updated and the address of the previous frame is
21650 stored, which means code that walks the stack frame across interrupts or
21651 signals may get corrupted data.
21652 .IP "\fB\-mavoid\-indexed\-addresses\fR" 4
21653 .IX Item "-mavoid-indexed-addresses"
21654 .PD 0
21655 .IP "\fB\-mno\-avoid\-indexed\-addresses\fR" 4
21656 .IX Item "-mno-avoid-indexed-addresses"
21657 .PD
21658 Generate code that tries to avoid (not avoid) the use of indexed load
21659 or store instructions. These instructions can incur a performance
21660 penalty on Power6 processors in certain situations, such as when
21661 stepping through large arrays that cross a 16M boundary.  This option
21662 is enabled by default when targeting Power6 and disabled otherwise.
21663 .IP "\fB\-mfused\-madd\fR" 4
21664 .IX Item "-mfused-madd"
21665 .PD 0
21666 .IP "\fB\-mno\-fused\-madd\fR" 4
21667 .IX Item "-mno-fused-madd"
21668 .PD
21669 Generate code that uses (does not use) the floating-point multiply and
21670 accumulate instructions.  These instructions are generated by default
21671 if hardware floating point is used.  The machine-dependent
21672 \&\fB\-mfused\-madd\fR option is now mapped to the machine-independent
21673 \&\fB\-ffp\-contract=fast\fR option, and \fB\-mno\-fused\-madd\fR is
21674 mapped to \fB\-ffp\-contract=off\fR.
21675 .IP "\fB\-mno\-strict\-align\fR" 4
21676 .IX Item "-mno-strict-align"
21677 .PD 0
21678 .IP "\fB\-mstrict\-align\fR" 4
21679 .IX Item "-mstrict-align"
21680 .PD
21681 On System V.4 and embedded PowerPC systems do not (do) assume that
21682 unaligned memory references are handled by the system.
21683 .IP "\fB\-mrelocatable\fR" 4
21684 .IX Item "-mrelocatable"
21685 .PD 0
21686 .IP "\fB\-mno\-relocatable\fR" 4
21687 .IX Item "-mno-relocatable"
21688 .PD
21689 Generate code that allows (does not allow) a static executable to be
21690 relocated to a different address at run time.  A simple embedded
21691 PowerPC system loader should relocate the entire contents of
21692 \&\f(CW\*(C`.got2\*(C'\fR and 4\-byte locations listed in the \f(CW\*(C`.fixup\*(C'\fR section,
21693 a table of 32\-bit addresses generated by this option.  For this to
21694 work, all objects linked together must be compiled with
21695 \&\fB\-mrelocatable\fR or \fB\-mrelocatable\-lib\fR.
21696 \&\fB\-mrelocatable\fR code aligns the stack to an 8\-byte boundary.
21697 .IP "\fB\-mrelocatable\-lib\fR" 4
21698 .IX Item "-mrelocatable-lib"
21699 .PD 0
21700 .IP "\fB\-mno\-relocatable\-lib\fR" 4
21701 .IX Item "-mno-relocatable-lib"
21702 .PD
21703 Like \fB\-mrelocatable\fR, \fB\-mrelocatable\-lib\fR generates a
21704 \&\f(CW\*(C`.fixup\*(C'\fR section to allow static executables to be relocated at
21705 run time, but \fB\-mrelocatable\-lib\fR does not use the smaller stack
21706 alignment of \fB\-mrelocatable\fR.  Objects compiled with
21707 \&\fB\-mrelocatable\-lib\fR may be linked with objects compiled with
21708 any combination of the \fB\-mrelocatable\fR options.
21709 .IP "\fB\-mno\-toc\fR" 4
21710 .IX Item "-mno-toc"
21711 .PD 0
21712 .IP "\fB\-mtoc\fR" 4
21713 .IX Item "-mtoc"
21714 .PD
21715 On System V.4 and embedded PowerPC systems do not (do) assume that
21716 register 2 contains a pointer to a global area pointing to the addresses
21717 used in the program.
21718 .IP "\fB\-mlittle\fR" 4
21719 .IX Item "-mlittle"
21720 .PD 0
21721 .IP "\fB\-mlittle\-endian\fR" 4
21722 .IX Item "-mlittle-endian"
21723 .PD
21724 On System V.4 and embedded PowerPC systems compile code for the
21725 processor in little-endian mode.  The \fB\-mlittle\-endian\fR option is
21726 the same as \fB\-mlittle\fR.
21727 .IP "\fB\-mbig\fR" 4
21728 .IX Item "-mbig"
21729 .PD 0
21730 .IP "\fB\-mbig\-endian\fR" 4
21731 .IX Item "-mbig-endian"
21732 .PD
21733 On System V.4 and embedded PowerPC systems compile code for the
21734 processor in big-endian mode.  The \fB\-mbig\-endian\fR option is
21735 the same as \fB\-mbig\fR.
21736 .IP "\fB\-mdynamic\-no\-pic\fR" 4
21737 .IX Item "-mdynamic-no-pic"
21738 On Darwin and Mac \s-1OS X\s0 systems, compile code so that it is not
21739 relocatable, but that its external references are relocatable.  The
21740 resulting code is suitable for applications, but not shared
21741 libraries.
21742 .IP "\fB\-msingle\-pic\-base\fR" 4
21743 .IX Item "-msingle-pic-base"
21744 Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
21745 loading it in the prologue for each function.  The runtime system is
21746 responsible for initializing this register with an appropriate value
21747 before execution begins.
21748 .IP "\fB\-mprioritize\-restricted\-insns=\fR\fIpriority\fR" 4
21749 .IX Item "-mprioritize-restricted-insns=priority"
21750 This option controls the priority that is assigned to
21751 dispatch-slot restricted instructions during the second scheduling
21752 pass.  The argument \fIpriority\fR takes the value \fB0\fR, \fB1\fR,
21753 or \fB2\fR to assign no, highest, or second-highest (respectively)
21754 priority to dispatch-slot restricted
21755 instructions.
21756 .IP "\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR" 4
21757 .IX Item "-msched-costly-dep=dependence_type"
21758 This option controls which dependences are considered costly
21759 by the target during instruction scheduling.  The argument
21760 \&\fIdependence_type\fR takes one of the following values:
21761 .RS 4
21762 .IP "\fBno\fR" 4
21763 .IX Item "no"
21764 No dependence is costly.
21765 .IP "\fBall\fR" 4
21766 .IX Item "all"
21767 All dependences are costly.
21768 .IP "\fBtrue_store_to_load\fR" 4
21769 .IX Item "true_store_to_load"
21770 A true dependence from store to load is costly.
21771 .IP "\fBstore_to_load\fR" 4
21772 .IX Item "store_to_load"
21773 Any dependence from store to load is costly.
21774 .IP "\fInumber\fR" 4
21775 .IX Item "number"
21776 Any dependence for which the latency is greater than or equal to
21777 \&\fInumber\fR is costly.
21778 .RE
21779 .RS 4
21780 .RE
21781 .IP "\fB\-minsert\-sched\-nops=\fR\fIscheme\fR" 4
21782 .IX Item "-minsert-sched-nops=scheme"
21783 This option controls which \s-1NOP\s0 insertion scheme is used during
21784 the second scheduling pass.  The argument \fIscheme\fR takes one of the
21785 following values:
21786 .RS 4
21787 .IP "\fBno\fR" 4
21788 .IX Item "no"
21789 Don't insert NOPs.
21790 .IP "\fBpad\fR" 4
21791 .IX Item "pad"
21792 Pad with NOPs any dispatch group that has vacant issue slots,
21793 according to the scheduler's grouping.
21794 .IP "\fBregroup_exact\fR" 4
21795 .IX Item "regroup_exact"
21796 Insert NOPs to force costly dependent insns into
21797 separate groups.  Insert exactly as many NOPs as needed to force an insn
21798 to a new group, according to the estimated processor grouping.
21799 .IP "\fInumber\fR" 4
21800 .IX Item "number"
21801 Insert NOPs to force costly dependent insns into
21802 separate groups.  Insert \fInumber\fR NOPs to force an insn to a new group.
21803 .RE
21804 .RS 4
21805 .RE
21806 .IP "\fB\-mcall\-sysv\fR" 4
21807 .IX Item "-mcall-sysv"
21808 On System V.4 and embedded PowerPC systems compile code using calling
21809 conventions that adhere to the March 1995 draft of the System V
21810 Application Binary Interface, PowerPC processor supplement.  This is the
21811 default unless you configured \s-1GCC\s0 using \fBpowerpc\-*\-eabiaix\fR.
21812 .IP "\fB\-mcall\-sysv\-eabi\fR" 4
21813 .IX Item "-mcall-sysv-eabi"
21814 .PD 0
21815 .IP "\fB\-mcall\-eabi\fR" 4
21816 .IX Item "-mcall-eabi"
21817 .PD
21818 Specify both \fB\-mcall\-sysv\fR and \fB\-meabi\fR options.
21819 .IP "\fB\-mcall\-sysv\-noeabi\fR" 4
21820 .IX Item "-mcall-sysv-noeabi"
21821 Specify both \fB\-mcall\-sysv\fR and \fB\-mno\-eabi\fR options.
21822 .IP "\fB\-mcall\-aixdesc\fR" 4
21823 .IX Item "-mcall-aixdesc"
21824 On System V.4 and embedded PowerPC systems compile code for the \s-1AIX\s0
21825 operating system.
21826 .IP "\fB\-mcall\-linux\fR" 4
21827 .IX Item "-mcall-linux"
21828 On System V.4 and embedded PowerPC systems compile code for the
21829 Linux-based \s-1GNU\s0 system.
21830 .IP "\fB\-mcall\-freebsd\fR" 4
21831 .IX Item "-mcall-freebsd"
21832 On System V.4 and embedded PowerPC systems compile code for the
21833 FreeBSD operating system.
21834 .IP "\fB\-mcall\-netbsd\fR" 4
21835 .IX Item "-mcall-netbsd"
21836 On System V.4 and embedded PowerPC systems compile code for the
21837 NetBSD operating system.
21838 .IP "\fB\-mcall\-openbsd\fR" 4
21839 .IX Item "-mcall-openbsd"
21840 On System V.4 and embedded PowerPC systems compile code for the
21841 OpenBSD operating system.
21842 .IP "\fB\-maix\-struct\-return\fR" 4
21843 .IX Item "-maix-struct-return"
21844 Return all structures in memory (as specified by the \s-1AIX ABI\s0).
21845 .IP "\fB\-msvr4\-struct\-return\fR" 4
21846 .IX Item "-msvr4-struct-return"
21847 Return structures smaller than 8 bytes in registers (as specified by the
21848 \&\s-1SVR4 ABI\s0).
21849 .IP "\fB\-mabi=\fR\fIabi-type\fR" 4
21850 .IX Item "-mabi=abi-type"
21851 Extend the current \s-1ABI\s0 with a particular extension, or remove such extension.
21852 Valid values are \fBaltivec\fR, \fBno-altivec\fR, \fBspe\fR,
21853 \&\fBno-spe\fR, \fBibmlongdouble\fR, \fBieeelongdouble\fR,
21854 \&\fBelfv1\fR, \fBelfv2\fR.
21855 .IP "\fB\-mabi=spe\fR" 4
21856 .IX Item "-mabi=spe"
21857 Extend the current \s-1ABI\s0 with \s-1SPE ABI\s0 extensions.  This does not change
21858 the default \s-1ABI,\s0 instead it adds the \s-1SPE ABI\s0 extensions to the current
21859 \&\s-1ABI.\s0
21860 .IP "\fB\-mabi=no\-spe\fR" 4
21861 .IX Item "-mabi=no-spe"
21862 Disable Book-E \s-1SPE ABI\s0 extensions for the current \s-1ABI.\s0
21863 .IP "\fB\-mabi=ibmlongdouble\fR" 4
21864 .IX Item "-mabi=ibmlongdouble"
21865 Change the current \s-1ABI\s0 to use \s-1IBM\s0 extended-precision long double.
21866 This is not likely to work if your system defaults to using \s-1IEEE\s0
21867 extended-precision long double.  If you change the long double type
21868 from \s-1IEEE\s0 extended-precision, the compiler will issue a warning unless
21869 you use the \fB\-Wno\-psabi\fR option.  Requires \fB\-mlong\-double\-128\fR
21870 to be enabled.
21871 .IP "\fB\-mabi=ieeelongdouble\fR" 4
21872 .IX Item "-mabi=ieeelongdouble"
21873 Change the current \s-1ABI\s0 to use \s-1IEEE\s0 extended-precision long double.
21874 This is not likely to work if your system defaults to using \s-1IBM\s0
21875 extended-precision long double.  If you change the long double type
21876 from \s-1IBM\s0 extended-precision, the compiler will issue a warning unless
21877 you use the \fB\-Wno\-psabi\fR option.  Requires \fB\-mlong\-double\-128\fR
21878 to be enabled.
21879 .IP "\fB\-mabi=elfv1\fR" 4
21880 .IX Item "-mabi=elfv1"
21881 Change the current \s-1ABI\s0 to use the ELFv1 \s-1ABI.\s0
21882 This is the default \s-1ABI\s0 for big-endian PowerPC 64\-bit Linux.
21883 Overriding the default \s-1ABI\s0 requires special system support and is
21884 likely to fail in spectacular ways.
21885 .IP "\fB\-mabi=elfv2\fR" 4
21886 .IX Item "-mabi=elfv2"
21887 Change the current \s-1ABI\s0 to use the ELFv2 \s-1ABI.\s0
21888 This is the default \s-1ABI\s0 for little-endian PowerPC 64\-bit Linux.
21889 Overriding the default \s-1ABI\s0 requires special system support and is
21890 likely to fail in spectacular ways.
21891 .IP "\fB\-mgnu\-attribute\fR" 4
21892 .IX Item "-mgnu-attribute"
21893 .PD 0
21894 .IP "\fB\-mno\-gnu\-attribute\fR" 4
21895 .IX Item "-mno-gnu-attribute"
21896 .PD
21897 Emit .gnu_attribute assembly directives to set tag/value pairs in a
21898 \&.gnu.attributes section that specify \s-1ABI\s0 variations in function
21899 parameters or return values.
21900 .IP "\fB\-mprototype\fR" 4
21901 .IX Item "-mprototype"
21902 .PD 0
21903 .IP "\fB\-mno\-prototype\fR" 4
21904 .IX Item "-mno-prototype"
21905 .PD
21906 On System V.4 and embedded PowerPC systems assume that all calls to
21907 variable argument functions are properly prototyped.  Otherwise, the
21908 compiler must insert an instruction before every non-prototyped call to
21909 set or clear bit 6 of the condition code register (\f(CW\*(C`CR\*(C'\fR) to
21910 indicate whether floating-point values are passed in the floating-point
21911 registers in case the function takes variable arguments.  With
21912 \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
21913 set or clear the bit.
21914 .IP "\fB\-msim\fR" 4
21915 .IX Item "-msim"
21916 On embedded PowerPC systems, assume that the startup module is called
21917 \&\fIsim\-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
21918 \&\fIlibc.a\fR.  This is the default for \fBpowerpc\-*\-eabisim\fR
21919 configurations.
21920 .IP "\fB\-mmvme\fR" 4
21921 .IX Item "-mmvme"
21922 On embedded PowerPC systems, assume that the startup module is called
21923 \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
21924 \&\fIlibc.a\fR.
21925 .IP "\fB\-mads\fR" 4
21926 .IX Item "-mads"
21927 On embedded PowerPC systems, assume that the startup module is called
21928 \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
21929 \&\fIlibc.a\fR.
21930 .IP "\fB\-myellowknife\fR" 4
21931 .IX Item "-myellowknife"
21932 On embedded PowerPC systems, assume that the startup module is called
21933 \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
21934 \&\fIlibc.a\fR.
21935 .IP "\fB\-mvxworks\fR" 4
21936 .IX Item "-mvxworks"
21937 On System V.4 and embedded PowerPC systems, specify that you are
21938 compiling for a VxWorks system.
21939 .IP "\fB\-memb\fR" 4
21940 .IX Item "-memb"
21941 On embedded PowerPC systems, set the \f(CW\*(C`PPC_EMB\*(C'\fR bit in the \s-1ELF\s0 flags
21942 header to indicate that \fBeabi\fR extended relocations are used.
21943 .IP "\fB\-meabi\fR" 4
21944 .IX Item "-meabi"
21945 .PD 0
21946 .IP "\fB\-mno\-eabi\fR" 4
21947 .IX Item "-mno-eabi"
21948 .PD
21949 On System V.4 and embedded PowerPC systems do (do not) adhere to the
21950 Embedded Applications Binary Interface (\s-1EABI\s0), which is a set of
21951 modifications to the System V.4 specifications.  Selecting \fB\-meabi\fR
21952 means that the stack is aligned to an 8\-byte boundary, a function
21953 \&\f(CW\*(C`_\|_eabi\*(C'\fR is called from \f(CW\*(C`main\*(C'\fR to set up the \s-1EABI\s0
21954 environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
21955 \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas.  Selecting
21956 \&\fB\-mno\-eabi\fR means that the stack is aligned to a 16\-byte boundary,
21957 no \s-1EABI\s0 initialization function is called from \f(CW\*(C`main\*(C'\fR, and the
21958 \&\fB\-msdata\fR option only uses \f(CW\*(C`r13\*(C'\fR to point to a single
21959 small data area.  The \fB\-meabi\fR option is on by default if you
21960 configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
21961 .IP "\fB\-msdata=eabi\fR" 4
21962 .IX Item "-msdata=eabi"
21963 On System V.4 and embedded PowerPC systems, put small initialized
21964 \&\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata2\*(C'\fR section, which
21965 is pointed to by register \f(CW\*(C`r2\*(C'\fR.  Put small initialized
21966 non\-\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata\*(C'\fR section,
21967 which is pointed to by register \f(CW\*(C`r13\*(C'\fR.  Put small uninitialized
21968 global and static data in the \f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to
21969 the \f(CW\*(C`.sdata\*(C'\fR section.  The \fB\-msdata=eabi\fR option is
21970 incompatible with the \fB\-mrelocatable\fR option.  The
21971 \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
21972 .IP "\fB\-msdata=sysv\fR" 4
21973 .IX Item "-msdata=sysv"
21974 On System V.4 and embedded PowerPC systems, put small global and static
21975 data in the \f(CW\*(C`.sdata\*(C'\fR section, which is pointed to by register
21976 \&\f(CW\*(C`r13\*(C'\fR.  Put small uninitialized global and static data in the
21977 \&\f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to the \f(CW\*(C`.sdata\*(C'\fR section.
21978 The \fB\-msdata=sysv\fR option is incompatible with the
21979 \&\fB\-mrelocatable\fR option.
21980 .IP "\fB\-msdata=default\fR" 4
21981 .IX Item "-msdata=default"
21982 .PD 0
21983 .IP "\fB\-msdata\fR" 4
21984 .IX Item "-msdata"
21985 .PD
21986 On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
21987 compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
21988 same as \fB\-msdata=sysv\fR.
21989 .IP "\fB\-msdata=data\fR" 4
21990 .IX Item "-msdata=data"
21991 On System V.4 and embedded PowerPC systems, put small global
21992 data in the \f(CW\*(C`.sdata\*(C'\fR section.  Put small uninitialized global
21993 data in the \f(CW\*(C`.sbss\*(C'\fR section.  Do not use register \f(CW\*(C`r13\*(C'\fR
21994 to address small data however.  This is the default behavior unless
21995 other \fB\-msdata\fR options are used.
21996 .IP "\fB\-msdata=none\fR" 4
21997 .IX Item "-msdata=none"
21998 .PD 0
21999 .IP "\fB\-mno\-sdata\fR" 4
22000 .IX Item "-mno-sdata"
22001 .PD
22002 On embedded PowerPC systems, put all initialized global and static data
22003 in the \f(CW\*(C`.data\*(C'\fR section, and all uninitialized data in the
22004 \&\f(CW\*(C`.bss\*(C'\fR section.
22005 .IP "\fB\-mblock\-move\-inline\-limit=\fR\fInum\fR" 4
22006 .IX Item "-mblock-move-inline-limit=num"
22007 Inline all block moves (such as calls to \f(CW\*(C`memcpy\*(C'\fR or structure
22008 copies) less than or equal to \fInum\fR bytes.  The minimum value for
22009 \&\fInum\fR is 32 bytes on 32\-bit targets and 64 bytes on 64\-bit
22010 targets.  The default value is target-specific.
22011 .IP "\fB\-G\fR \fInum\fR" 4
22012 .IX Item "-G num"
22013 On embedded PowerPC systems, put global and static items less than or
22014 equal to \fInum\fR bytes into the small data or \s-1BSS\s0 sections instead of
22015 the normal data or \s-1BSS\s0 section.  By default, \fInum\fR is 8.  The
22016 \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
22017 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
22018 .IP "\fB\-mregnames\fR" 4
22019 .IX Item "-mregnames"
22020 .PD 0
22021 .IP "\fB\-mno\-regnames\fR" 4
22022 .IX Item "-mno-regnames"
22023 .PD
22024 On System V.4 and embedded PowerPC systems do (do not) emit register
22025 names in the assembly language output using symbolic forms.
22026 .IP "\fB\-mlongcall\fR" 4
22027 .IX Item "-mlongcall"
22028 .PD 0
22029 .IP "\fB\-mno\-longcall\fR" 4
22030 .IX Item "-mno-longcall"
22031 .PD
22032 By default assume that all calls are far away so that a longer and more
22033 expensive calling sequence is required.  This is required for calls
22034 farther than 32 megabytes (33,554,432 bytes) from the current location.
22035 A short call is generated if the compiler knows
22036 the call cannot be that far away.  This setting can be overridden by
22037 the \f(CW\*(C`shortcall\*(C'\fR function attribute, or by \f(CW\*(C`#pragma
22038 longcall(0)\*(C'\fR.
22039 .Sp
22040 Some linkers are capable of detecting out-of-range calls and generating
22041 glue code on the fly.  On these systems, long calls are unnecessary and
22042 generate slower code.  As of this writing, the \s-1AIX\s0 linker can do this,
22043 as can the \s-1GNU\s0 linker for PowerPC/64.  It is planned to add this feature
22044 to the \s-1GNU\s0 linker for 32\-bit PowerPC systems as well.
22045 .Sp
22046 In the future, \s-1GCC\s0 may ignore all longcall specifications
22047 when the linker is known to generate glue.
22048 .IP "\fB\-mtls\-markers\fR" 4
22049 .IX Item "-mtls-markers"
22050 .PD 0
22051 .IP "\fB\-mno\-tls\-markers\fR" 4
22052 .IX Item "-mno-tls-markers"
22053 .PD
22054 Mark (do not mark) calls to \f(CW\*(C`_\|_tls_get_addr\*(C'\fR with a relocation
22055 specifying the function argument.  The relocation allows the linker to
22056 reliably associate function call with argument setup instructions for
22057 \&\s-1TLS\s0 optimization, which in turn allows \s-1GCC\s0 to better schedule the
22058 sequence.
22059 .IP "\fB\-mrecip\fR" 4
22060 .IX Item "-mrecip"
22061 .PD 0
22062 .IP "\fB\-mno\-recip\fR" 4
22063 .IX Item "-mno-recip"
22064 .PD
22065 This option enables use of the reciprocal estimate and
22066 reciprocal square root estimate instructions with additional
22067 Newton-Raphson steps to increase precision instead of doing a divide or
22068 square root and divide for floating-point arguments.  You should use
22069 the \fB\-ffast\-math\fR option when using \fB\-mrecip\fR (or at
22070 least \fB\-funsafe\-math\-optimizations\fR,
22071 \&\fB\-ffinite\-math\-only\fR, \fB\-freciprocal\-math\fR and
22072 \&\fB\-fno\-trapping\-math\fR).  Note that while the throughput of the
22073 sequence is generally higher than the throughput of the non-reciprocal
22074 instruction, the precision of the sequence can be decreased by up to 2
22075 ulp (i.e. the inverse of 1.0 equals 0.99999994) for reciprocal square
22076 roots.
22077 .IP "\fB\-mrecip=\fR\fIopt\fR" 4
22078 .IX Item "-mrecip=opt"
22079 This option controls which reciprocal estimate instructions
22080 may be used.  \fIopt\fR is a comma-separated list of options, which may
22081 be preceded by a \f(CW\*(C`!\*(C'\fR to invert the option:
22082 .RS 4
22083 .IP "\fBall\fR" 4
22084 .IX Item "all"
22085 Enable all estimate instructions.
22086 .IP "\fBdefault\fR" 4
22087 .IX Item "default"
22088 Enable the default instructions, equivalent to \fB\-mrecip\fR.
22089 .IP "\fBnone\fR" 4
22090 .IX Item "none"
22091 Disable all estimate instructions, equivalent to \fB\-mno\-recip\fR.
22092 .IP "\fBdiv\fR" 4
22093 .IX Item "div"
22094 Enable the reciprocal approximation instructions for both
22095 single and double precision.
22096 .IP "\fBdivf\fR" 4
22097 .IX Item "divf"
22098 Enable the single-precision reciprocal approximation instructions.
22099 .IP "\fBdivd\fR" 4
22100 .IX Item "divd"
22101 Enable the double-precision reciprocal approximation instructions.
22102 .IP "\fBrsqrt\fR" 4
22103 .IX Item "rsqrt"
22104 Enable the reciprocal square root approximation instructions for both
22105 single and double precision.
22106 .IP "\fBrsqrtf\fR" 4
22107 .IX Item "rsqrtf"
22108 Enable the single-precision reciprocal square root approximation instructions.
22109 .IP "\fBrsqrtd\fR" 4
22110 .IX Item "rsqrtd"
22111 Enable the double-precision reciprocal square root approximation instructions.
22112 .RE
22113 .RS 4
22114 .Sp
22115 So, for example, \fB\-mrecip=all,!rsqrtd\fR enables
22116 all of the reciprocal estimate instructions, except for the
22117 \&\f(CW\*(C`FRSQRTE\*(C'\fR, \f(CW\*(C`XSRSQRTEDP\*(C'\fR, and \f(CW\*(C`XVRSQRTEDP\*(C'\fR instructions
22118 which handle the double-precision reciprocal square root calculations.
22119 .RE
22120 .IP "\fB\-mrecip\-precision\fR" 4
22121 .IX Item "-mrecip-precision"
22122 .PD 0
22123 .IP "\fB\-mno\-recip\-precision\fR" 4
22124 .IX Item "-mno-recip-precision"
22125 .PD
22126 Assume (do not assume) that the reciprocal estimate instructions
22127 provide higher-precision estimates than is mandated by the PowerPC
22128 \&\s-1ABI.\s0  Selecting \fB\-mcpu=power6\fR, \fB\-mcpu=power7\fR or
22129 \&\fB\-mcpu=power8\fR automatically selects \fB\-mrecip\-precision\fR.
22130 The double-precision square root estimate instructions are not generated by
22131 default on low-precision machines, since they do not provide an
22132 estimate that converges after three steps.
22133 .IP "\fB\-mpointers\-to\-nested\-functions\fR" 4
22134 .IX Item "-mpointers-to-nested-functions"
22135 .PD 0
22136 .IP "\fB\-mno\-pointers\-to\-nested\-functions\fR" 4
22137 .IX Item "-mno-pointers-to-nested-functions"
22138 .PD
22139 Generate (do not generate) code to load up the static chain register
22140 (\f(CW\*(C`r11\*(C'\fR) when calling through a pointer on \s-1AIX\s0 and 64\-bit Linux
22141 systems where a function pointer points to a 3\-word descriptor giving
22142 the function address, \s-1TOC\s0 value to be loaded in register \f(CW\*(C`r2\*(C'\fR, and
22143 static chain value to be loaded in register \f(CW\*(C`r11\*(C'\fR.  The
22144 \&\fB\-mpointers\-to\-nested\-functions\fR is on by default.  You cannot
22145 call through pointers to nested functions or pointers
22146 to functions compiled in other languages that use the static chain if
22147 you use \fB\-mno\-pointers\-to\-nested\-functions\fR.
22148 .IP "\fB\-msave\-toc\-indirect\fR" 4
22149 .IX Item "-msave-toc-indirect"
22150 .PD 0
22151 .IP "\fB\-mno\-save\-toc\-indirect\fR" 4
22152 .IX Item "-mno-save-toc-indirect"
22153 .PD
22154 Generate (do not generate) code to save the \s-1TOC\s0 value in the reserved
22155 stack location in the function prologue if the function calls through
22156 a pointer on \s-1AIX\s0 and 64\-bit Linux systems.  If the \s-1TOC\s0 value is not
22157 saved in the prologue, it is saved just before the call through the
22158 pointer.  The \fB\-mno\-save\-toc\-indirect\fR option is the default.
22159 .IP "\fB\-mcompat\-align\-parm\fR" 4
22160 .IX Item "-mcompat-align-parm"
22161 .PD 0
22162 .IP "\fB\-mno\-compat\-align\-parm\fR" 4
22163 .IX Item "-mno-compat-align-parm"
22164 .PD
22165 Generate (do not generate) code to pass structure parameters with a
22166 maximum alignment of 64 bits, for compatibility with older versions
22167 of \s-1GCC.\s0
22168 .Sp
22169 Older versions of \s-1GCC\s0 (prior to 4.9.0) incorrectly did not align a
22170 structure parameter on a 128\-bit boundary when that structure contained
22171 a member requiring 128\-bit alignment.  This is corrected in more
22172 recent versions of \s-1GCC.\s0  This option may be used to generate code
22173 that is compatible with functions compiled with older versions of
22174 \&\s-1GCC.\s0
22175 .Sp
22176 The \fB\-mno\-compat\-align\-parm\fR option is the default.
22177 .IP "\fB\-mstack\-protector\-guard=\fR\fIguard\fR" 4
22178 .IX Item "-mstack-protector-guard=guard"
22179 .PD 0
22180 .IP "\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR" 4
22181 .IX Item "-mstack-protector-guard-reg=reg"
22182 .IP "\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR" 4
22183 .IX Item "-mstack-protector-guard-offset=offset"
22184 .IP "\fB\-mstack\-protector\-guard\-symbol=\fR\fIsymbol\fR" 4
22185 .IX Item "-mstack-protector-guard-symbol=symbol"
22186 .PD
22187 Generate stack protection code using canary at \fIguard\fR.  Supported
22188 locations are \fBglobal\fR for global canary or \fBtls\fR for per-thread
22189 canary in the \s-1TLS\s0 block (the default with \s-1GNU\s0 libc version 2.4 or later).
22190 .Sp
22191 With the latter choice the options
22192 \&\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR and
22193 \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR furthermore specify
22194 which register to use as base register for reading the canary, and from what
22195 offset from that base register. The default for those is as specified in the
22196 relevant \s-1ABI.\s0  \fB\-mstack\-protector\-guard\-symbol=\fR\fIsymbol\fR overrides
22197 the offset with a symbol reference to a canary in the \s-1TLS\s0 block.
22198 .PP
22199 \fIRISC-V Options\fR
22200 .IX Subsection "RISC-V Options"
22201 .PP
22202 These command-line options are defined for RISC-V targets:
22203 .IP "\fB\-mbranch\-cost=\fR\fIn\fR" 4
22204 .IX Item "-mbranch-cost=n"
22205 Set the cost of branches to roughly \fIn\fR instructions.
22206 .IP "\fB\-mplt\fR" 4
22207 .IX Item "-mplt"
22208 .PD 0
22209 .IP "\fB\-mno\-plt\fR" 4
22210 .IX Item "-mno-plt"
22211 .PD
22212 When generating \s-1PIC\s0 code, do or don't allow the use of PLTs. Ignored for
22213 non-PIC.  The default is \fB\-mplt\fR.
22214 .IP "\fB\-mabi=\fR\fIABI-string\fR" 4
22215 .IX Item "-mabi=ABI-string"
22216 Specify integer and floating-point calling convention.  \fIABI-string\fR
22217 contains two parts: the size of integer types and the registers used for
22218 floating-point types.  For example \fB\-march=rv64ifd \-mabi=lp64d\fR means that
22219 \&\fBlong\fR and pointers are 64\-bit (implicitly defining \fBint\fR to be
22220 32\-bit), and that floating-point values up to 64 bits wide are passed in F
22221 registers.  Contrast this with \fB\-march=rv64ifd \-mabi=lp64f\fR, which still
22222 allows the compiler to generate code that uses the F and D extensions but only
22223 allows floating-point values up to 32 bits long to be passed in registers; or
22224 \&\fB\-march=rv64ifd \-mabi=lp64\fR, in which no floating-point arguments will be
22225 passed in registers.
22226 .Sp
22227 The default for this argument is system dependent, users who want a specific
22228 calling convention should specify one explicitly.  The valid calling
22229 conventions are: \fBilp32\fR, \fBilp32f\fR, \fBilp32d\fR, \fBlp64\fR,
22230 \&\fBlp64f\fR, and \fBlp64d\fR.  Some calling conventions are impossible to
22231 implement on some ISAs: for example, \fB\-march=rv32if \-mabi=ilp32d\fR is
22232 invalid because the \s-1ABI\s0 requires 64\-bit values be passed in F registers, but F
22233 registers are only 32 bits wide.
22234 .IP "\fB\-mfdiv\fR" 4
22235 .IX Item "-mfdiv"
22236 .PD 0
22237 .IP "\fB\-mno\-fdiv\fR" 4
22238 .IX Item "-mno-fdiv"
22239 .PD
22240 Do or don't use hardware floating-point divide and square root instructions.
22241 This requires the F or D extensions for floating-point registers.  The default
22242 is to use them if the specified architecture has these instructions.
22243 .IP "\fB\-mdiv\fR" 4
22244 .IX Item "-mdiv"
22245 .PD 0
22246 .IP "\fB\-mno\-div\fR" 4
22247 .IX Item "-mno-div"
22248 .PD
22249 Do or don't use hardware instructions for integer division.  This requires the
22250 M extension.  The default is to use them if the specified architecture has
22251 these instructions.
22252 .IP "\fB\-march=\fR\fIISA-string\fR" 4
22253 .IX Item "-march=ISA-string"
22254 Generate code for given RISC-V \s-1ISA\s0 (e.g. \fBrv64im\fR).  \s-1ISA\s0 strings must be
22255 lower-case.  Examples include \fBrv64i\fR, \fBrv32g\fR, and \fBrv32imaf\fR.
22256 .IP "\fB\-mtune=\fR\fIprocessor-string\fR" 4
22257 .IX Item "-mtune=processor-string"
22258 Optimize the output for the given processor, specified by microarchitecture
22259 name.
22260 .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
22261 .IX Item "-mpreferred-stack-boundary=num"
22262 Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
22263 byte boundary.  If \fB\-mpreferred\-stack\-boundary\fR is not specified,
22264 the default is 4 (16 bytes or 128\-bits).
22265 .Sp
22266 \&\fBWarning:\fR If you use this switch, then you must build all modules with
22267 the same value, including any libraries.  This includes the system libraries
22268 and startup modules.
22269 .IP "\fB\-msmall\-data\-limit=\fR\fIn\fR" 4
22270 .IX Item "-msmall-data-limit=n"
22271 Put global and static data smaller than \fIn\fR bytes into a special section
22272 (on some targets).
22273 .IP "\fB\-msave\-restore\fR" 4
22274 .IX Item "-msave-restore"
22275 .PD 0
22276 .IP "\fB\-mno\-save\-restore\fR" 4
22277 .IX Item "-mno-save-restore"
22278 .PD
22279 Do or don't use smaller but slower prologue and epilogue code that uses
22280 library function calls.  The default is to use fast inline prologues and
22281 epilogues.
22282 .IP "\fB\-mstrict\-align\fR" 4
22283 .IX Item "-mstrict-align"
22284 .PD 0
22285 .IP "\fB\-mno\-strict\-align\fR" 4
22286 .IX Item "-mno-strict-align"
22287 .PD
22288 Do not or do generate unaligned memory accesses.  The default is set depending
22289 on whether the processor we are optimizing for supports fast unaligned access
22290 or not.
22291 .IP "\fB\-mcmodel=medlow\fR" 4
22292 .IX Item "-mcmodel=medlow"
22293 Generate code for the medium-low code model. The program and its statically
22294 defined symbols must lie within a single 2 GiB address range and must lie
22295 between absolute addresses \-2 GiB and +2 GiB. Programs can be
22296 statically or dynamically linked. This is the default code model.
22297 .IP "\fB\-mcmodel=medany\fR" 4
22298 .IX Item "-mcmodel=medany"
22299 Generate code for the medium-any code model. The program and its statically
22300 defined symbols must be within any single 2 GiB address range. Programs can be
22301 statically or dynamically linked.
22302 .IP "\fB\-mexplicit\-relocs\fR" 4
22303 .IX Item "-mexplicit-relocs"
22304 .PD 0
22305 .IP "\fB\-mno\-exlicit\-relocs\fR" 4
22306 .IX Item "-mno-exlicit-relocs"
22307 .PD
22308 Use or do not use assembler relocation operators when dealing with symbolic
22309 addresses.  The alternative is to use assembler macros instead, which may
22310 limit optimization.
22311 .IP "\fB\-mrelax\fR" 4
22312 .IX Item "-mrelax"
22313 .PD 0
22314 .IP "\fB\-mno\-relax\fR" 4
22315 .IX Item "-mno-relax"
22316 .PD
22317 Take advantage of linker relaxations to reduce the number of instructions
22318 required to materialize symbol addresses. The default is to take advantage of
22319 linker relaxations.
22320 .PP
22321 \fI\s-1RL78\s0 Options\fR
22322 .IX Subsection "RL78 Options"
22323 .IP "\fB\-msim\fR" 4
22324 .IX Item "-msim"
22325 Links in additional target libraries to support operation within a
22326 simulator.
22327 .IP "\fB\-mmul=none\fR" 4
22328 .IX Item "-mmul=none"
22329 .PD 0
22330 .IP "\fB\-mmul=g10\fR" 4
22331 .IX Item "-mmul=g10"
22332 .IP "\fB\-mmul=g13\fR" 4
22333 .IX Item "-mmul=g13"
22334 .IP "\fB\-mmul=g14\fR" 4
22335 .IX Item "-mmul=g14"
22336 .IP "\fB\-mmul=rl78\fR" 4
22337 .IX Item "-mmul=rl78"
22338 .PD
22339 Specifies the type of hardware multiplication and division support to
22340 be used.  The simplest is \f(CW\*(C`none\*(C'\fR, which uses software for both
22341 multiplication and division.  This is the default.  The \f(CW\*(C`g13\*(C'\fR
22342 value is for the hardware multiply/divide peripheral found on the
22343 \&\s-1RL78/G13\s0 (S2 core) targets.  The \f(CW\*(C`g14\*(C'\fR value selects the use of
22344 the multiplication and division instructions supported by the \s-1RL78/G14\s0
22345 (S3 core) parts.  The value \f(CW\*(C`rl78\*(C'\fR is an alias for \f(CW\*(C`g14\*(C'\fR and
22346 the value \f(CW\*(C`mg10\*(C'\fR is an alias for \f(CW\*(C`none\*(C'\fR.
22347 .Sp
22348 In addition a C preprocessor macro is defined, based upon the setting
22349 of this option.  Possible values are: \f(CW\*(C`_\|_RL78_MUL_NONE_\|_\*(C'\fR,
22350 \&\f(CW\*(C`_\|_RL78_MUL_G13_\|_\*(C'\fR or \f(CW\*(C`_\|_RL78_MUL_G14_\|_\*(C'\fR.
22351 .IP "\fB\-mcpu=g10\fR" 4
22352 .IX Item "-mcpu=g10"
22353 .PD 0
22354 .IP "\fB\-mcpu=g13\fR" 4
22355 .IX Item "-mcpu=g13"
22356 .IP "\fB\-mcpu=g14\fR" 4
22357 .IX Item "-mcpu=g14"
22358 .IP "\fB\-mcpu=rl78\fR" 4
22359 .IX Item "-mcpu=rl78"
22360 .PD
22361 Specifies the \s-1RL78\s0 core to target.  The default is the G14 core, also
22362 known as an S3 core or just \s-1RL78.\s0  The G13 or S2 core does not have
22363 multiply or divide instructions, instead it uses a hardware peripheral
22364 for these operations.  The G10 or S1 core does not have register
22365 banks, so it uses a different calling convention.
22366 .Sp
22367 If this option is set it also selects the type of hardware multiply
22368 support to use, unless this is overridden by an explicit
22369 \&\fB\-mmul=none\fR option on the command line.  Thus specifying
22370 \&\fB\-mcpu=g13\fR enables the use of the G13 hardware multiply
22371 peripheral and specifying \fB\-mcpu=g10\fR disables the use of
22372 hardware multiplications altogether.
22373 .Sp
22374 Note, although the \s-1RL78/G14\s0 core is the default target, specifying
22375 \&\fB\-mcpu=g14\fR or \fB\-mcpu=rl78\fR on the command line does
22376 change the behavior of the toolchain since it also enables G14
22377 hardware multiply support.  If these options are not specified on the
22378 command line then software multiplication routines will be used even
22379 though the code targets the \s-1RL78\s0 core.  This is for backwards
22380 compatibility with older toolchains which did not have hardware
22381 multiply and divide support.
22382 .Sp
22383 In addition a C preprocessor macro is defined, based upon the setting
22384 of this option.  Possible values are: \f(CW\*(C`_\|_RL78_G10_\|_\*(C'\fR,
22385 \&\f(CW\*(C`_\|_RL78_G13_\|_\*(C'\fR or \f(CW\*(C`_\|_RL78_G14_\|_\*(C'\fR.
22386 .IP "\fB\-mg10\fR" 4
22387 .IX Item "-mg10"
22388 .PD 0
22389 .IP "\fB\-mg13\fR" 4
22390 .IX Item "-mg13"
22391 .IP "\fB\-mg14\fR" 4
22392 .IX Item "-mg14"
22393 .IP "\fB\-mrl78\fR" 4
22394 .IX Item "-mrl78"
22395 .PD
22396 These are aliases for the corresponding \fB\-mcpu=\fR option.  They
22397 are provided for backwards compatibility.
22398 .IP "\fB\-mallregs\fR" 4
22399 .IX Item "-mallregs"
22400 Allow the compiler to use all of the available registers.  By default
22401 registers \f(CW\*(C`r24..r31\*(C'\fR are reserved for use in interrupt handlers.
22402 With this option enabled these registers can be used in ordinary
22403 functions as well.
22404 .IP "\fB\-m64bit\-doubles\fR" 4
22405 .IX Item "-m64bit-doubles"
22406 .PD 0
22407 .IP "\fB\-m32bit\-doubles\fR" 4
22408 .IX Item "-m32bit-doubles"
22409 .PD
22410 Make the \f(CW\*(C`double\*(C'\fR data type be 64 bits (\fB\-m64bit\-doubles\fR)
22411 or 32 bits (\fB\-m32bit\-doubles\fR) in size.  The default is
22412 \&\fB\-m32bit\-doubles\fR.
22413 .IP "\fB\-msave\-mduc\-in\-interrupts\fR" 4
22414 .IX Item "-msave-mduc-in-interrupts"
22415 .PD 0
22416 .IP "\fB\-mno\-save\-mduc\-in\-interrupts\fR" 4
22417 .IX Item "-mno-save-mduc-in-interrupts"
22418 .PD
22419 Specifies that interrupt handler functions should preserve the
22420 \&\s-1MDUC\s0 registers.  This is only necessary if normal code might use
22421 the \s-1MDUC\s0 registers, for example because it performs multiplication
22422 and division operations.  The default is to ignore the \s-1MDUC\s0 registers
22423 as this makes the interrupt handlers faster.  The target option \-mg13
22424 needs to be passed for this to work as this feature is only available
22425 on the G13 target (S2 core).  The \s-1MDUC\s0 registers will only be saved
22426 if the interrupt handler performs a multiplication or division
22427 operation or it calls another function.
22428 .PP
22429 \fI\s-1IBM RS/6000\s0 and PowerPC Options\fR
22430 .IX Subsection "IBM RS/6000 and PowerPC Options"
22431 .PP
22432 These \fB\-m\fR options are defined for the \s-1IBM RS/6000\s0 and PowerPC:
22433 .IP "\fB\-mpowerpc\-gpopt\fR" 4
22434 .IX Item "-mpowerpc-gpopt"
22435 .PD 0
22436 .IP "\fB\-mno\-powerpc\-gpopt\fR" 4
22437 .IX Item "-mno-powerpc-gpopt"
22438 .IP "\fB\-mpowerpc\-gfxopt\fR" 4
22439 .IX Item "-mpowerpc-gfxopt"
22440 .IP "\fB\-mno\-powerpc\-gfxopt\fR" 4
22441 .IX Item "-mno-powerpc-gfxopt"
22442 .IP "\fB\-mpowerpc64\fR" 4
22443 .IX Item "-mpowerpc64"
22444 .IP "\fB\-mno\-powerpc64\fR" 4
22445 .IX Item "-mno-powerpc64"
22446 .IP "\fB\-mmfcrf\fR" 4
22447 .IX Item "-mmfcrf"
22448 .IP "\fB\-mno\-mfcrf\fR" 4
22449 .IX Item "-mno-mfcrf"
22450 .IP "\fB\-mpopcntb\fR" 4
22451 .IX Item "-mpopcntb"
22452 .IP "\fB\-mno\-popcntb\fR" 4
22453 .IX Item "-mno-popcntb"
22454 .IP "\fB\-mpopcntd\fR" 4
22455 .IX Item "-mpopcntd"
22456 .IP "\fB\-mno\-popcntd\fR" 4
22457 .IX Item "-mno-popcntd"
22458 .IP "\fB\-mfprnd\fR" 4
22459 .IX Item "-mfprnd"
22460 .IP "\fB\-mno\-fprnd\fR" 4
22461 .IX Item "-mno-fprnd"
22462 .IP "\fB\-mcmpb\fR" 4
22463 .IX Item "-mcmpb"
22464 .IP "\fB\-mno\-cmpb\fR" 4
22465 .IX Item "-mno-cmpb"
22466 .IP "\fB\-mmfpgpr\fR" 4
22467 .IX Item "-mmfpgpr"
22468 .IP "\fB\-mno\-mfpgpr\fR" 4
22469 .IX Item "-mno-mfpgpr"
22470 .IP "\fB\-mhard\-dfp\fR" 4
22471 .IX Item "-mhard-dfp"
22472 .IP "\fB\-mno\-hard\-dfp\fR" 4
22473 .IX Item "-mno-hard-dfp"
22474 .PD
22475 You use these options to specify which instructions are available on the
22476 processor you are using.  The default value of these options is
22477 determined when configuring \s-1GCC.\s0  Specifying the
22478 \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
22479 options.  We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
22480 rather than the options listed above.
22481 .Sp
22482 Specifying \fB\-mpowerpc\-gpopt\fR allows
22483 \&\s-1GCC\s0 to use the optional PowerPC architecture instructions in the
22484 General Purpose group, including floating-point square root.  Specifying
22485 \&\fB\-mpowerpc\-gfxopt\fR allows \s-1GCC\s0 to
22486 use the optional PowerPC architecture instructions in the Graphics
22487 group, including floating-point select.
22488 .Sp
22489 The \fB\-mmfcrf\fR option allows \s-1GCC\s0 to generate the move from
22490 condition register field instruction implemented on the \s-1POWER4\s0
22491 processor and other processors that support the PowerPC V2.01
22492 architecture.
22493 The \fB\-mpopcntb\fR option allows \s-1GCC\s0 to generate the popcount and
22494 double-precision \s-1FP\s0 reciprocal estimate instruction implemented on the
22495 \&\s-1POWER5\s0 processor and other processors that support the PowerPC V2.02
22496 architecture.
22497 The \fB\-mpopcntd\fR option allows \s-1GCC\s0 to generate the popcount
22498 instruction implemented on the \s-1POWER7\s0 processor and other processors
22499 that support the PowerPC V2.06 architecture.
22500 The \fB\-mfprnd\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 round to
22501 integer instructions implemented on the \s-1POWER5+\s0 processor and other
22502 processors that support the PowerPC V2.03 architecture.
22503 The \fB\-mcmpb\fR option allows \s-1GCC\s0 to generate the compare bytes
22504 instruction implemented on the \s-1POWER6\s0 processor and other processors
22505 that support the PowerPC V2.05 architecture.
22506 The \fB\-mmfpgpr\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 move to/from
22507 general-purpose register instructions implemented on the \s-1POWER6X\s0
22508 processor and other processors that support the extended PowerPC V2.05
22509 architecture.
22510 The \fB\-mhard\-dfp\fR option allows \s-1GCC\s0 to generate the decimal
22511 floating-point instructions implemented on some \s-1POWER\s0 processors.
22512 .Sp
22513 The \fB\-mpowerpc64\fR option allows \s-1GCC\s0 to generate the additional
22514 64\-bit instructions that are found in the full PowerPC64 architecture
22515 and to treat GPRs as 64\-bit, doubleword quantities.  \s-1GCC\s0 defaults to
22516 \&\fB\-mno\-powerpc64\fR.
22517 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
22518 .IX Item "-mcpu=cpu_type"
22519 Set architecture type, register usage, and
22520 instruction scheduling parameters for machine type \fIcpu_type\fR.
22521 Supported values for \fIcpu_type\fR are \fB401\fR, \fB403\fR,
22522 \&\fB405\fR, \fB405fp\fR, \fB440\fR, \fB440fp\fR, \fB464\fR, \fB464fp\fR,
22523 \&\fB476\fR, \fB476fp\fR, \fB505\fR, \fB601\fR, \fB602\fR, \fB603\fR,
22524 \&\fB603e\fR, \fB604\fR, \fB604e\fR, \fB620\fR, \fB630\fR, \fB740\fR,
22525 \&\fB7400\fR, \fB7450\fR, \fB750\fR, \fB801\fR, \fB821\fR, \fB823\fR,
22526 \&\fB860\fR, \fB970\fR, \fB8540\fR, \fBa2\fR, \fBe300c2\fR,
22527 \&\fBe300c3\fR, \fBe500mc\fR, \fBe500mc64\fR, \fBe5500\fR,
22528 \&\fBe6500\fR, \fBec603e\fR, \fBG3\fR, \fBG4\fR, \fBG5\fR,
22529 \&\fBtitan\fR, \fBpower3\fR, \fBpower4\fR, \fBpower5\fR, \fBpower5+\fR,
22530 \&\fBpower6\fR, \fBpower6x\fR, \fBpower7\fR, \fBpower8\fR,
22531 \&\fBpower9\fR, \fBpowerpc\fR, \fBpowerpc64\fR, \fBpowerpc64le\fR,
22532 \&\fBrs64\fR, and \fBnative\fR.
22533 .Sp
22534 \&\fB\-mcpu=powerpc\fR, \fB\-mcpu=powerpc64\fR, and
22535 \&\fB\-mcpu=powerpc64le\fR specify pure 32\-bit PowerPC (either
22536 endian), 64\-bit big endian PowerPC and 64\-bit little endian PowerPC
22537 architecture machine types, with an appropriate, generic processor
22538 model assumed for scheduling purposes.
22539 .Sp
22540 Specifying \fBnative\fR as cpu type detects and selects the
22541 architecture option that corresponds to the host processor of the
22542 system performing the compilation.
22543 \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize the
22544 processor.
22545 .Sp
22546 The other options specify a specific processor.  Code generated under
22547 those options runs best on that processor, and may not run at all on
22548 others.
22549 .Sp
22550 The \fB\-mcpu\fR options automatically enable or disable the
22551 following options:
22552 .Sp
22553 \&\fB\-maltivec  \-mfprnd  \-mhard\-float  \-mmfcrf  \-mmultiple 
22554 \&\-mpopcntb \-mpopcntd  \-mpowerpc64 
22555 \&\-mpowerpc\-gpopt  \-mpowerpc\-gfxopt  \-msingle\-float \-mdouble\-float 
22556 \&\-msimple\-fpu  \-mmulhw  \-mdlmzb  \-mmfpgpr \-mvsx 
22557 \&\-mcrypto \-mhtm \-mpower8\-fusion \-mpower8\-vector 
22558 \&\-mquad\-memory \-mquad\-memory\-atomic \-mfloat128 \-mfloat128\-hardware\fR
22559 .Sp
22560 The particular options set for any particular \s-1CPU\s0 varies between
22561 compiler versions, depending on what setting seems to produce optimal
22562 code for that \s-1CPU\s0; it doesn't necessarily reflect the actual hardware's
22563 capabilities.  If you wish to set an individual option to a particular
22564 value, you may specify it after the \fB\-mcpu\fR option, like
22565 \&\fB\-mcpu=970 \-mno\-altivec\fR.
22566 .Sp
22567 On \s-1AIX,\s0 the \fB\-maltivec\fR and \fB\-mpowerpc64\fR options are
22568 not enabled or disabled by the \fB\-mcpu\fR option at present because
22569 \&\s-1AIX\s0 does not have full support for these options.  You may still
22570 enable or disable them individually if you're sure it'll work in your
22571 environment.
22572 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
22573 .IX Item "-mtune=cpu_type"
22574 Set the instruction scheduling parameters for machine type
22575 \&\fIcpu_type\fR, but do not set the architecture type or register usage,
22576 as \fB\-mcpu=\fR\fIcpu_type\fR does.  The same
22577 values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
22578 \&\fB\-mcpu\fR.  If both are specified, the code generated uses the
22579 architecture and registers set by \fB\-mcpu\fR, but the
22580 scheduling parameters set by \fB\-mtune\fR.
22581 .IP "\fB\-mcmodel=small\fR" 4
22582 .IX Item "-mcmodel=small"
22583 Generate PowerPC64 code for the small model: The \s-1TOC\s0 is limited to
22584 64k.
22585 .IP "\fB\-mcmodel=medium\fR" 4
22586 .IX Item "-mcmodel=medium"
22587 Generate PowerPC64 code for the medium model: The \s-1TOC\s0 and other static
22588 data may be up to a total of 4G in size.  This is the default for 64\-bit
22589 Linux.
22590 .IP "\fB\-mcmodel=large\fR" 4
22591 .IX Item "-mcmodel=large"
22592 Generate PowerPC64 code for the large model: The \s-1TOC\s0 may be up to 4G
22593 in size.  Other data and code is only limited by the 64\-bit address
22594 space.
22595 .IP "\fB\-maltivec\fR" 4
22596 .IX Item "-maltivec"
22597 .PD 0
22598 .IP "\fB\-mno\-altivec\fR" 4
22599 .IX Item "-mno-altivec"
22600 .PD
22601 Generate code that uses (does not use) AltiVec instructions, and also
22602 enable the use of built-in functions that allow more direct access to
22603 the AltiVec instruction set.  You may also need to set
22604 \&\fB\-mabi=altivec\fR to adjust the current \s-1ABI\s0 with AltiVec \s-1ABI\s0
22605 enhancements.
22606 .Sp
22607 When \fB\-maltivec\fR is used, rather than \fB\-maltivec=le\fR or
22608 \&\fB\-maltivec=be\fR, the element order for AltiVec intrinsics such
22609 as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and \f(CW\*(C`vec_insert\*(C'\fR 
22610 match array element order corresponding to the endianness of the
22611 target.  That is, element zero identifies the leftmost element in a
22612 vector register when targeting a big-endian platform, and identifies
22613 the rightmost element in a vector register when targeting a
22614 little-endian platform.
22615 .IP "\fB\-maltivec=be\fR" 4
22616 .IX Item "-maltivec=be"
22617 Generate AltiVec instructions using big-endian element order,
22618 regardless of whether the target is big\- or little-endian.  This is
22619 the default when targeting a big-endian platform.  Using this option
22620 is currently deprecated.  Support for this feature will be removed in
22621 \&\s-1GCC 9.\s0
22622 .Sp
22623 The element order is used to interpret element numbers in AltiVec
22624 intrinsics such as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and
22625 \&\f(CW\*(C`vec_insert\*(C'\fR.  By default, these match array element order
22626 corresponding to the endianness for the target.
22627 .IP "\fB\-maltivec=le\fR" 4
22628 .IX Item "-maltivec=le"
22629 Generate AltiVec instructions using little-endian element order,
22630 regardless of whether the target is big\- or little-endian.  This is
22631 the default when targeting a little-endian platform.  This option is
22632 currently ignored when targeting a big-endian platform.
22633 .Sp
22634 The element order is used to interpret element numbers in AltiVec
22635 intrinsics such as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and
22636 \&\f(CW\*(C`vec_insert\*(C'\fR.  By default, these match array element order
22637 corresponding to the endianness for the target.
22638 .IP "\fB\-mvrsave\fR" 4
22639 .IX Item "-mvrsave"
22640 .PD 0
22641 .IP "\fB\-mno\-vrsave\fR" 4
22642 .IX Item "-mno-vrsave"
22643 .PD
22644 Generate \s-1VRSAVE\s0 instructions when generating AltiVec code.
22645 .IP "\fB\-msecure\-plt\fR" 4
22646 .IX Item "-msecure-plt"
22647 Generate code that allows \fBld\fR and \fBld.so\fR
22648 to build executables and shared
22649 libraries with non-executable \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR sections.
22650 This is a PowerPC
22651 32\-bit \s-1SYSV ABI\s0 option.
22652 .IP "\fB\-mbss\-plt\fR" 4
22653 .IX Item "-mbss-plt"
22654 Generate code that uses a \s-1BSS\s0 \f(CW\*(C`.plt\*(C'\fR section that \fBld.so\fR
22655 fills in, and
22656 requires \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR
22657 sections that are both writable and executable.
22658 This is a PowerPC 32\-bit \s-1SYSV ABI\s0 option.
22659 .IP "\fB\-misel\fR" 4
22660 .IX Item "-misel"
22661 .PD 0
22662 .IP "\fB\-mno\-isel\fR" 4
22663 .IX Item "-mno-isel"
22664 .PD
22665 This switch enables or disables the generation of \s-1ISEL\s0 instructions.
22666 .IP "\fB\-misel=\fR\fIyes/no\fR" 4
22667 .IX Item "-misel=yes/no"
22668 This switch has been deprecated.  Use \fB\-misel\fR and
22669 \&\fB\-mno\-isel\fR instead.
22670 .IP "\fB\-mpaired\fR" 4
22671 .IX Item "-mpaired"
22672 .PD 0
22673 .IP "\fB\-mno\-paired\fR" 4
22674 .IX Item "-mno-paired"
22675 .PD
22676 This switch enables or disables the generation of \s-1PAIRED\s0 simd
22677 instructions.
22678 .IP "\fB\-mvsx\fR" 4
22679 .IX Item "-mvsx"
22680 .PD 0
22681 .IP "\fB\-mno\-vsx\fR" 4
22682 .IX Item "-mno-vsx"
22683 .PD
22684 Generate code that uses (does not use) vector/scalar (\s-1VSX\s0)
22685 instructions, and also enable the use of built-in functions that allow
22686 more direct access to the \s-1VSX\s0 instruction set.
22687 .IP "\fB\-mcrypto\fR" 4
22688 .IX Item "-mcrypto"
22689 .PD 0
22690 .IP "\fB\-mno\-crypto\fR" 4
22691 .IX Item "-mno-crypto"
22692 .PD
22693 Enable the use (disable) of the built-in functions that allow direct
22694 access to the cryptographic instructions that were added in version
22695 2.07 of the PowerPC \s-1ISA.\s0
22696 .IP "\fB\-mhtm\fR" 4
22697 .IX Item "-mhtm"
22698 .PD 0
22699 .IP "\fB\-mno\-htm\fR" 4
22700 .IX Item "-mno-htm"
22701 .PD
22702 Enable (disable) the use of the built-in functions that allow direct
22703 access to the Hardware Transactional Memory (\s-1HTM\s0) instructions that
22704 were added in version 2.07 of the PowerPC \s-1ISA.\s0
22705 .IP "\fB\-mpower8\-fusion\fR" 4
22706 .IX Item "-mpower8-fusion"
22707 .PD 0
22708 .IP "\fB\-mno\-power8\-fusion\fR" 4
22709 .IX Item "-mno-power8-fusion"
22710 .PD
22711 Generate code that keeps (does not keeps) some integer operations
22712 adjacent so that the instructions can be fused together on power8 and
22713 later processors.
22714 .IP "\fB\-mpower8\-vector\fR" 4
22715 .IX Item "-mpower8-vector"
22716 .PD 0
22717 .IP "\fB\-mno\-power8\-vector\fR" 4
22718 .IX Item "-mno-power8-vector"
22719 .PD
22720 Generate code that uses (does not use) the vector and scalar
22721 instructions that were added in version 2.07 of the PowerPC \s-1ISA.\s0  Also
22722 enable the use of built-in functions that allow more direct access to
22723 the vector instructions.
22724 .IP "\fB\-mquad\-memory\fR" 4
22725 .IX Item "-mquad-memory"
22726 .PD 0
22727 .IP "\fB\-mno\-quad\-memory\fR" 4
22728 .IX Item "-mno-quad-memory"
22729 .PD
22730 Generate code that uses (does not use) the non-atomic quad word memory
22731 instructions.  The \fB\-mquad\-memory\fR option requires use of
22732 64\-bit mode.
22733 .IP "\fB\-mquad\-memory\-atomic\fR" 4
22734 .IX Item "-mquad-memory-atomic"
22735 .PD 0
22736 .IP "\fB\-mno\-quad\-memory\-atomic\fR" 4
22737 .IX Item "-mno-quad-memory-atomic"
22738 .PD
22739 Generate code that uses (does not use) the atomic quad word memory
22740 instructions.  The \fB\-mquad\-memory\-atomic\fR option requires use of
22741 64\-bit mode.
22742 .IP "\fB\-mfloat128\fR" 4
22743 .IX Item "-mfloat128"
22744 .PD 0
22745 .IP "\fB\-mno\-float128\fR" 4
22746 .IX Item "-mno-float128"
22747 .PD
22748 Enable/disable the \fI_\|_float128\fR keyword for \s-1IEEE\s0 128\-bit floating point
22749 and use either software emulation for \s-1IEEE\s0 128\-bit floating point or
22750 hardware instructions.
22751 .Sp
22752 The \s-1VSX\s0 instruction set (\fB\-mvsx\fR, \fB\-mcpu=power7\fR,
22753 \&\fB\-mcpu=power8\fR), or \fB\-mcpu=power9\fR must be enabled to
22754 use the \s-1IEEE\s0 128\-bit floating point support.  The \s-1IEEE\s0 128\-bit
22755 floating point support only works on PowerPC Linux systems.
22756 .Sp
22757 The default for \fB\-mfloat128\fR is enabled on PowerPC Linux
22758 systems using the \s-1VSX\s0 instruction set, and disabled on other systems.
22759 .Sp
22760 If you use the \s-1ISA 3.0\s0 instruction set (\fB\-mpower9\-vector\fR or
22761 \&\fB\-mcpu=power9\fR) on a 64\-bit system, the \s-1IEEE\s0 128\-bit floating
22762 point support will also enable the generation of \s-1ISA 3.0 IEEE\s0 128\-bit
22763 floating point instructions.  Otherwise, if you do not specify to
22764 generate \s-1ISA 3.0\s0 instructions or you are targeting a 32\-bit big endian
22765 system, \s-1IEEE\s0 128\-bit floating point will be done with software
22766 emulation.
22767 .IP "\fB\-mfloat128\-hardware\fR" 4
22768 .IX Item "-mfloat128-hardware"
22769 .PD 0
22770 .IP "\fB\-mno\-float128\-hardware\fR" 4
22771 .IX Item "-mno-float128-hardware"
22772 .PD
22773 Enable/disable using \s-1ISA 3.0\s0 hardware instructions to support the
22774 \&\fI_\|_float128\fR data type.
22775 .Sp
22776 The default for \fB\-mfloat128\-hardware\fR is enabled on PowerPC
22777 Linux systems using the \s-1ISA 3.0\s0 instruction set, and disabled on other
22778 systems.
22779 .IP "\fB\-m32\fR" 4
22780 .IX Item "-m32"
22781 .PD 0
22782 .IP "\fB\-m64\fR" 4
22783 .IX Item "-m64"
22784 .PD
22785 Generate code for 32\-bit or 64\-bit environments of Darwin and \s-1SVR4\s0
22786 targets (including GNU/Linux).  The 32\-bit environment sets int, long
22787 and pointer to 32 bits and generates code that runs on any PowerPC
22788 variant.  The 64\-bit environment sets int to 32 bits and long and
22789 pointer to 64 bits, and generates code for PowerPC64, as for
22790 \&\fB\-mpowerpc64\fR.
22791 .IP "\fB\-mfull\-toc\fR" 4
22792 .IX Item "-mfull-toc"
22793 .PD 0
22794 .IP "\fB\-mno\-fp\-in\-toc\fR" 4
22795 .IX Item "-mno-fp-in-toc"
22796 .IP "\fB\-mno\-sum\-in\-toc\fR" 4
22797 .IX Item "-mno-sum-in-toc"
22798 .IP "\fB\-mminimal\-toc\fR" 4
22799 .IX Item "-mminimal-toc"
22800 .PD
22801 Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
22802 every executable file.  The \fB\-mfull\-toc\fR option is selected by
22803 default.  In that case, \s-1GCC\s0 allocates at least one \s-1TOC\s0 entry for
22804 each unique non-automatic variable reference in your program.  \s-1GCC\s0
22805 also places floating-point constants in the \s-1TOC.\s0  However, only
22806 16,384 entries are available in the \s-1TOC.\s0
22807 .Sp
22808 If you receive a linker error message that saying you have overflowed
22809 the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
22810 with the \fB\-mno\-fp\-in\-toc\fR and \fB\-mno\-sum\-in\-toc\fR options.
22811 \&\fB\-mno\-fp\-in\-toc\fR prevents \s-1GCC\s0 from putting floating-point
22812 constants in the \s-1TOC\s0 and \fB\-mno\-sum\-in\-toc\fR forces \s-1GCC\s0 to
22813 generate code to calculate the sum of an address and a constant at
22814 run time instead of putting that sum into the \s-1TOC.\s0  You may specify one
22815 or both of these options.  Each causes \s-1GCC\s0 to produce very slightly
22816 slower and larger code at the expense of conserving \s-1TOC\s0 space.
22817 .Sp
22818 If you still run out of space in the \s-1TOC\s0 even when you specify both of
22819 these options, specify \fB\-mminimal\-toc\fR instead.  This option causes
22820 \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file.  When you specify this
22821 option, \s-1GCC\s0 produces code that is slower and larger but which
22822 uses extremely little \s-1TOC\s0 space.  You may wish to use this option
22823 only on files that contain less frequently-executed code.
22824 .IP "\fB\-maix64\fR" 4
22825 .IX Item "-maix64"
22826 .PD 0
22827 .IP "\fB\-maix32\fR" 4
22828 .IX Item "-maix32"
22829 .PD
22830 Enable 64\-bit \s-1AIX ABI\s0 and calling convention: 64\-bit pointers, 64\-bit
22831 \&\f(CW\*(C`long\*(C'\fR type, and the infrastructure needed to support them.
22832 Specifying \fB\-maix64\fR implies \fB\-mpowerpc64\fR,
22833 while \fB\-maix32\fR disables the 64\-bit \s-1ABI\s0 and
22834 implies \fB\-mno\-powerpc64\fR.  \s-1GCC\s0 defaults to \fB\-maix32\fR.
22835 .IP "\fB\-mxl\-compat\fR" 4
22836 .IX Item "-mxl-compat"
22837 .PD 0
22838 .IP "\fB\-mno\-xl\-compat\fR" 4
22839 .IX Item "-mno-xl-compat"
22840 .PD
22841 Produce code that conforms more closely to \s-1IBM XL\s0 compiler semantics
22842 when using AIX-compatible \s-1ABI.\s0  Pass floating-point arguments to
22843 prototyped functions beyond the register save area (\s-1RSA\s0) on the stack
22844 in addition to argument FPRs.  Do not assume that most significant
22845 double in 128\-bit long double value is properly rounded when comparing
22846 values and converting to double.  Use \s-1XL\s0 symbol names for long double
22847 support routines.
22848 .Sp
22849 The \s-1AIX\s0 calling convention was extended but not initially documented to
22850 handle an obscure K&R C case of calling a function that takes the
22851 address of its arguments with fewer arguments than declared.  \s-1IBM XL\s0
22852 compilers access floating-point arguments that do not fit in the
22853 \&\s-1RSA\s0 from the stack when a subroutine is compiled without
22854 optimization.  Because always storing floating-point arguments on the
22855 stack is inefficient and rarely needed, this option is not enabled by
22856 default and only is necessary when calling subroutines compiled by \s-1IBM
22857 XL\s0 compilers without optimization.
22858 .IP "\fB\-mpe\fR" 4
22859 .IX Item "-mpe"
22860 Support \fI\s-1IBM RS/6000 SP\s0\fR \fIParallel Environment\fR (\s-1PE\s0).  Link an
22861 application written to use message passing with special startup code to
22862 enable the application to run.  The system must have \s-1PE\s0 installed in the
22863 standard location (\fI/usr/lpp/ppe.poe/\fR), or the \fIspecs\fR file
22864 must be overridden with the \fB\-specs=\fR option to specify the
22865 appropriate directory location.  The Parallel Environment does not
22866 support threads, so the \fB\-mpe\fR option and the \fB\-pthread\fR
22867 option are incompatible.
22868 .IP "\fB\-malign\-natural\fR" 4
22869 .IX Item "-malign-natural"
22870 .PD 0
22871 .IP "\fB\-malign\-power\fR" 4
22872 .IX Item "-malign-power"
22873 .PD
22874 On \s-1AIX,\s0 32\-bit Darwin, and 64\-bit PowerPC GNU/Linux, the option
22875 \&\fB\-malign\-natural\fR overrides the ABI-defined alignment of larger
22876 types, such as floating-point doubles, on their natural size-based boundary.
22877 The option \fB\-malign\-power\fR instructs \s-1GCC\s0 to follow the ABI-specified
22878 alignment rules.  \s-1GCC\s0 defaults to the standard alignment defined in the \s-1ABI.\s0
22879 .Sp
22880 On 64\-bit Darwin, natural alignment is the default, and \fB\-malign\-power\fR
22881 is not supported.
22882 .IP "\fB\-msoft\-float\fR" 4
22883 .IX Item "-msoft-float"
22884 .PD 0
22885 .IP "\fB\-mhard\-float\fR" 4
22886 .IX Item "-mhard-float"
22887 .PD
22888 Generate code that does not use (uses) the floating-point register set.
22889 Software floating-point emulation is provided if you use the
22890 \&\fB\-msoft\-float\fR option, and pass the option to \s-1GCC\s0 when linking.
22891 .IP "\fB\-msingle\-float\fR" 4
22892 .IX Item "-msingle-float"
22893 .PD 0
22894 .IP "\fB\-mdouble\-float\fR" 4
22895 .IX Item "-mdouble-float"
22896 .PD
22897 Generate code for single\- or double-precision floating-point operations.
22898 \&\fB\-mdouble\-float\fR implies \fB\-msingle\-float\fR.
22899 .IP "\fB\-msimple\-fpu\fR" 4
22900 .IX Item "-msimple-fpu"
22901 Do not generate \f(CW\*(C`sqrt\*(C'\fR and \f(CW\*(C`div\*(C'\fR instructions for hardware
22902 floating-point unit.
22903 .IP "\fB\-mfpu=\fR\fIname\fR" 4
22904 .IX Item "-mfpu=name"
22905 Specify type of floating-point unit.  Valid values for \fIname\fR are
22906 \&\fBsp_lite\fR (equivalent to \fB\-msingle\-float \-msimple\-fpu\fR),
22907 \&\fBdp_lite\fR (equivalent to \fB\-mdouble\-float \-msimple\-fpu\fR),
22908 \&\fBsp_full\fR (equivalent to \fB\-msingle\-float\fR),
22909 and \fBdp_full\fR (equivalent to \fB\-mdouble\-float\fR).
22910 .IP "\fB\-mxilinx\-fpu\fR" 4
22911 .IX Item "-mxilinx-fpu"
22912 Perform optimizations for the floating-point unit on Xilinx \s-1PPC 405/440.\s0
22913 .IP "\fB\-mmultiple\fR" 4
22914 .IX Item "-mmultiple"
22915 .PD 0
22916 .IP "\fB\-mno\-multiple\fR" 4
22917 .IX Item "-mno-multiple"
22918 .PD
22919 Generate code that uses (does not use) the load multiple word
22920 instructions and the store multiple word instructions.  These
22921 instructions are generated by default on \s-1POWER\s0 systems, and not
22922 generated on PowerPC systems.  Do not use \fB\-mmultiple\fR on little-endian
22923 PowerPC systems, since those instructions do not work when the
22924 processor is in little-endian mode.  The exceptions are \s-1PPC740\s0 and
22925 \&\s-1PPC750\s0 which permit these instructions in little-endian mode.
22926 .IP "\fB\-mupdate\fR" 4
22927 .IX Item "-mupdate"
22928 .PD 0
22929 .IP "\fB\-mno\-update\fR" 4
22930 .IX Item "-mno-update"
22931 .PD
22932 Generate code that uses (does not use) the load or store instructions
22933 that update the base register to the address of the calculated memory
22934 location.  These instructions are generated by default.  If you use
22935 \&\fB\-mno\-update\fR, there is a small window between the time that the
22936 stack pointer is updated and the address of the previous frame is
22937 stored, which means code that walks the stack frame across interrupts or
22938 signals may get corrupted data.
22939 .IP "\fB\-mavoid\-indexed\-addresses\fR" 4
22940 .IX Item "-mavoid-indexed-addresses"
22941 .PD 0
22942 .IP "\fB\-mno\-avoid\-indexed\-addresses\fR" 4
22943 .IX Item "-mno-avoid-indexed-addresses"
22944 .PD
22945 Generate code that tries to avoid (not avoid) the use of indexed load
22946 or store instructions. These instructions can incur a performance
22947 penalty on Power6 processors in certain situations, such as when
22948 stepping through large arrays that cross a 16M boundary.  This option
22949 is enabled by default when targeting Power6 and disabled otherwise.
22950 .IP "\fB\-mfused\-madd\fR" 4
22951 .IX Item "-mfused-madd"
22952 .PD 0
22953 .IP "\fB\-mno\-fused\-madd\fR" 4
22954 .IX Item "-mno-fused-madd"
22955 .PD
22956 Generate code that uses (does not use) the floating-point multiply and
22957 accumulate instructions.  These instructions are generated by default
22958 if hardware floating point is used.  The machine-dependent
22959 \&\fB\-mfused\-madd\fR option is now mapped to the machine-independent
22960 \&\fB\-ffp\-contract=fast\fR option, and \fB\-mno\-fused\-madd\fR is
22961 mapped to \fB\-ffp\-contract=off\fR.
22962 .IP "\fB\-mmulhw\fR" 4
22963 .IX Item "-mmulhw"
22964 .PD 0
22965 .IP "\fB\-mno\-mulhw\fR" 4
22966 .IX Item "-mno-mulhw"
22967 .PD
22968 Generate code that uses (does not use) the half-word multiply and
22969 multiply-accumulate instructions on the \s-1IBM 405, 440, 464\s0 and 476 processors.
22970 These instructions are generated by default when targeting those
22971 processors.
22972 .IP "\fB\-mdlmzb\fR" 4
22973 .IX Item "-mdlmzb"
22974 .PD 0
22975 .IP "\fB\-mno\-dlmzb\fR" 4
22976 .IX Item "-mno-dlmzb"
22977 .PD
22978 Generate code that uses (does not use) the string-search \fBdlmzb\fR
22979 instruction on the \s-1IBM 405, 440, 464\s0 and 476 processors.  This instruction is
22980 generated by default when targeting those processors.
22981 .IP "\fB\-mno\-bit\-align\fR" 4
22982 .IX Item "-mno-bit-align"
22983 .PD 0
22984 .IP "\fB\-mbit\-align\fR" 4
22985 .IX Item "-mbit-align"
22986 .PD
22987 On System V.4 and embedded PowerPC systems do not (do) force structures
22988 and unions that contain bit-fields to be aligned to the base type of the
22989 bit-field.
22990 .Sp
22991 For example, by default a structure containing nothing but 8
22992 \&\f(CW\*(C`unsigned\*(C'\fR bit-fields of length 1 is aligned to a 4\-byte
22993 boundary and has a size of 4 bytes.  By using \fB\-mno\-bit\-align\fR,
22994 the structure is aligned to a 1\-byte boundary and is 1 byte in
22995 size.
22996 .IP "\fB\-mno\-strict\-align\fR" 4
22997 .IX Item "-mno-strict-align"
22998 .PD 0
22999 .IP "\fB\-mstrict\-align\fR" 4
23000 .IX Item "-mstrict-align"
23001 .PD
23002 On System V.4 and embedded PowerPC systems do not (do) assume that
23003 unaligned memory references are handled by the system.
23004 .IP "\fB\-mrelocatable\fR" 4
23005 .IX Item "-mrelocatable"
23006 .PD 0
23007 .IP "\fB\-mno\-relocatable\fR" 4
23008 .IX Item "-mno-relocatable"
23009 .PD
23010 Generate code that allows (does not allow) a static executable to be
23011 relocated to a different address at run time.  A simple embedded
23012 PowerPC system loader should relocate the entire contents of
23013 \&\f(CW\*(C`.got2\*(C'\fR and 4\-byte locations listed in the \f(CW\*(C`.fixup\*(C'\fR section,
23014 a table of 32\-bit addresses generated by this option.  For this to
23015 work, all objects linked together must be compiled with
23016 \&\fB\-mrelocatable\fR or \fB\-mrelocatable\-lib\fR.
23017 \&\fB\-mrelocatable\fR code aligns the stack to an 8\-byte boundary.
23018 .IP "\fB\-mrelocatable\-lib\fR" 4
23019 .IX Item "-mrelocatable-lib"
23020 .PD 0
23021 .IP "\fB\-mno\-relocatable\-lib\fR" 4
23022 .IX Item "-mno-relocatable-lib"
23023 .PD
23024 Like \fB\-mrelocatable\fR, \fB\-mrelocatable\-lib\fR generates a
23025 \&\f(CW\*(C`.fixup\*(C'\fR section to allow static executables to be relocated at
23026 run time, but \fB\-mrelocatable\-lib\fR does not use the smaller stack
23027 alignment of \fB\-mrelocatable\fR.  Objects compiled with
23028 \&\fB\-mrelocatable\-lib\fR may be linked with objects compiled with
23029 any combination of the \fB\-mrelocatable\fR options.
23030 .IP "\fB\-mno\-toc\fR" 4
23031 .IX Item "-mno-toc"
23032 .PD 0
23033 .IP "\fB\-mtoc\fR" 4
23034 .IX Item "-mtoc"
23035 .PD
23036 On System V.4 and embedded PowerPC systems do not (do) assume that
23037 register 2 contains a pointer to a global area pointing to the addresses
23038 used in the program.
23039 .IP "\fB\-mlittle\fR" 4
23040 .IX Item "-mlittle"
23041 .PD 0
23042 .IP "\fB\-mlittle\-endian\fR" 4
23043 .IX Item "-mlittle-endian"
23044 .PD
23045 On System V.4 and embedded PowerPC systems compile code for the
23046 processor in little-endian mode.  The \fB\-mlittle\-endian\fR option is
23047 the same as \fB\-mlittle\fR.
23048 .IP "\fB\-mbig\fR" 4
23049 .IX Item "-mbig"
23050 .PD 0
23051 .IP "\fB\-mbig\-endian\fR" 4
23052 .IX Item "-mbig-endian"
23053 .PD
23054 On System V.4 and embedded PowerPC systems compile code for the
23055 processor in big-endian mode.  The \fB\-mbig\-endian\fR option is
23056 the same as \fB\-mbig\fR.
23057 .IP "\fB\-mdynamic\-no\-pic\fR" 4
23058 .IX Item "-mdynamic-no-pic"
23059 On Darwin and Mac \s-1OS X\s0 systems, compile code so that it is not
23060 relocatable, but that its external references are relocatable.  The
23061 resulting code is suitable for applications, but not shared
23062 libraries.
23063 .IP "\fB\-msingle\-pic\-base\fR" 4
23064 .IX Item "-msingle-pic-base"
23065 Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
23066 loading it in the prologue for each function.  The runtime system is
23067 responsible for initializing this register with an appropriate value
23068 before execution begins.
23069 .IP "\fB\-mprioritize\-restricted\-insns=\fR\fIpriority\fR" 4
23070 .IX Item "-mprioritize-restricted-insns=priority"
23071 This option controls the priority that is assigned to
23072 dispatch-slot restricted instructions during the second scheduling
23073 pass.  The argument \fIpriority\fR takes the value \fB0\fR, \fB1\fR,
23074 or \fB2\fR to assign no, highest, or second-highest (respectively) 
23075 priority to dispatch-slot restricted
23076 instructions.
23077 .IP "\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR" 4
23078 .IX Item "-msched-costly-dep=dependence_type"
23079 This option controls which dependences are considered costly
23080 by the target during instruction scheduling.  The argument
23081 \&\fIdependence_type\fR takes one of the following values:
23082 .RS 4
23083 .IP "\fBno\fR" 4
23084 .IX Item "no"
23085 No dependence is costly.
23086 .IP "\fBall\fR" 4
23087 .IX Item "all"
23088 All dependences are costly.
23089 .IP "\fBtrue_store_to_load\fR" 4
23090 .IX Item "true_store_to_load"
23091 A true dependence from store to load is costly.
23092 .IP "\fBstore_to_load\fR" 4
23093 .IX Item "store_to_load"
23094 Any dependence from store to load is costly.
23095 .IP "\fInumber\fR" 4
23096 .IX Item "number"
23097 Any dependence for which the latency is greater than or equal to 
23098 \&\fInumber\fR is costly.
23099 .RE
23100 .RS 4
23101 .RE
23102 .IP "\fB\-minsert\-sched\-nops=\fR\fIscheme\fR" 4
23103 .IX Item "-minsert-sched-nops=scheme"
23104 This option controls which \s-1NOP\s0 insertion scheme is used during
23105 the second scheduling pass.  The argument \fIscheme\fR takes one of the
23106 following values:
23107 .RS 4
23108 .IP "\fBno\fR" 4
23109 .IX Item "no"
23110 Don't insert NOPs.
23111 .IP "\fBpad\fR" 4
23112 .IX Item "pad"
23113 Pad with NOPs any dispatch group that has vacant issue slots,
23114 according to the scheduler's grouping.
23115 .IP "\fBregroup_exact\fR" 4
23116 .IX Item "regroup_exact"
23117 Insert NOPs to force costly dependent insns into
23118 separate groups.  Insert exactly as many NOPs as needed to force an insn
23119 to a new group, according to the estimated processor grouping.
23120 .IP "\fInumber\fR" 4
23121 .IX Item "number"
23122 Insert NOPs to force costly dependent insns into
23123 separate groups.  Insert \fInumber\fR NOPs to force an insn to a new group.
23124 .RE
23125 .RS 4
23126 .RE
23127 .IP "\fB\-mcall\-sysv\fR" 4
23128 .IX Item "-mcall-sysv"
23129 On System V.4 and embedded PowerPC systems compile code using calling
23130 conventions that adhere to the March 1995 draft of the System V
23131 Application Binary Interface, PowerPC processor supplement.  This is the
23132 default unless you configured \s-1GCC\s0 using \fBpowerpc\-*\-eabiaix\fR.
23133 .IP "\fB\-mcall\-sysv\-eabi\fR" 4
23134 .IX Item "-mcall-sysv-eabi"
23135 .PD 0
23136 .IP "\fB\-mcall\-eabi\fR" 4
23137 .IX Item "-mcall-eabi"
23138 .PD
23139 Specify both \fB\-mcall\-sysv\fR and \fB\-meabi\fR options.
23140 .IP "\fB\-mcall\-sysv\-noeabi\fR" 4
23141 .IX Item "-mcall-sysv-noeabi"
23142 Specify both \fB\-mcall\-sysv\fR and \fB\-mno\-eabi\fR options.
23143 .IP "\fB\-mcall\-aixdesc\fR" 4
23144 .IX Item "-mcall-aixdesc"
23145 On System V.4 and embedded PowerPC systems compile code for the \s-1AIX\s0
23146 operating system.
23147 .IP "\fB\-mcall\-linux\fR" 4
23148 .IX Item "-mcall-linux"
23149 On System V.4 and embedded PowerPC systems compile code for the
23150 Linux-based \s-1GNU\s0 system.
23151 .IP "\fB\-mcall\-freebsd\fR" 4
23152 .IX Item "-mcall-freebsd"
23153 On System V.4 and embedded PowerPC systems compile code for the
23154 FreeBSD operating system.
23155 .IP "\fB\-mcall\-netbsd\fR" 4
23156 .IX Item "-mcall-netbsd"
23157 On System V.4 and embedded PowerPC systems compile code for the
23158 NetBSD operating system.
23159 .IP "\fB\-mcall\-openbsd\fR" 4
23160 .IX Item "-mcall-openbsd"
23161 On System V.4 and embedded PowerPC systems compile code for the
23162 OpenBSD operating system.
23163 .IP "\fB\-mtraceback=\fR\fItraceback_type\fR" 4
23164 .IX Item "-mtraceback=traceback_type"
23165 Select the type of traceback table. Valid values for \fItraceback_type\fR
23166 are \fBfull\fR, \fBpart\fR, and \fBno\fR.
23167 .IP "\fB\-maix\-struct\-return\fR" 4
23168 .IX Item "-maix-struct-return"
23169 Return all structures in memory (as specified by the \s-1AIX ABI\s0).
23170 .IP "\fB\-msvr4\-struct\-return\fR" 4
23171 .IX Item "-msvr4-struct-return"
23172 Return structures smaller than 8 bytes in registers (as specified by the
23173 \&\s-1SVR4 ABI\s0).
23174 .IP "\fB\-mabi=\fR\fIabi-type\fR" 4
23175 .IX Item "-mabi=abi-type"
23176 Extend the current \s-1ABI\s0 with a particular extension, or remove such extension.
23177 Valid values are \fBaltivec\fR, \fBno-altivec\fR, \fBspe\fR,
23178 \&\fBno-spe\fR, \fBibmlongdouble\fR, \fBieeelongdouble\fR,
23179 \&\fBelfv1\fR, \fBelfv2\fR.
23180 .IP "\fB\-mabi=ibmlongdouble\fR" 4
23181 .IX Item "-mabi=ibmlongdouble"
23182 Change the current \s-1ABI\s0 to use \s-1IBM\s0 extended-precision long double.
23183 This is not likely to work if your system defaults to using \s-1IEEE\s0
23184 extended-precision long double.  If you change the long double type
23185 from \s-1IEEE\s0 extended-precision, the compiler will issue a warning unless
23186 you use the \fB\-Wno\-psabi\fR option.  Requires \fB\-mlong\-double\-128\fR
23187 to be enabled.
23188 .IP "\fB\-mabi=ieeelongdouble\fR" 4
23189 .IX Item "-mabi=ieeelongdouble"
23190 Change the current \s-1ABI\s0 to use \s-1IEEE\s0 extended-precision long double.
23191 This is not likely to work if your system defaults to using \s-1IBM\s0
23192 extended-precision long double.  If you change the long double type
23193 from \s-1IBM\s0 extended-precision, the compiler will issue a warning unless
23194 you use the \fB\-Wno\-psabi\fR option.  Requires \fB\-mlong\-double\-128\fR
23195 to be enabled.
23196 .IP "\fB\-mabi=elfv1\fR" 4
23197 .IX Item "-mabi=elfv1"
23198 Change the current \s-1ABI\s0 to use the ELFv1 \s-1ABI.\s0
23199 This is the default \s-1ABI\s0 for big-endian PowerPC 64\-bit Linux.
23200 Overriding the default \s-1ABI\s0 requires special system support and is
23201 likely to fail in spectacular ways.
23202 .IP "\fB\-mabi=elfv2\fR" 4
23203 .IX Item "-mabi=elfv2"
23204 Change the current \s-1ABI\s0 to use the ELFv2 \s-1ABI.\s0
23205 This is the default \s-1ABI\s0 for little-endian PowerPC 64\-bit Linux.
23206 Overriding the default \s-1ABI\s0 requires special system support and is
23207 likely to fail in spectacular ways.
23208 .IP "\fB\-mgnu\-attribute\fR" 4
23209 .IX Item "-mgnu-attribute"
23210 .PD 0
23211 .IP "\fB\-mno\-gnu\-attribute\fR" 4
23212 .IX Item "-mno-gnu-attribute"
23213 .PD
23214 Emit .gnu_attribute assembly directives to set tag/value pairs in a
23215 \&.gnu.attributes section that specify \s-1ABI\s0 variations in function
23216 parameters or return values.
23217 .IP "\fB\-mprototype\fR" 4
23218 .IX Item "-mprototype"
23219 .PD 0
23220 .IP "\fB\-mno\-prototype\fR" 4
23221 .IX Item "-mno-prototype"
23222 .PD
23223 On System V.4 and embedded PowerPC systems assume that all calls to
23224 variable argument functions are properly prototyped.  Otherwise, the
23225 compiler must insert an instruction before every non-prototyped call to
23226 set or clear bit 6 of the condition code register (\f(CW\*(C`CR\*(C'\fR) to
23227 indicate whether floating-point values are passed in the floating-point
23228 registers in case the function takes variable arguments.  With
23229 \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
23230 set or clear the bit.
23231 .IP "\fB\-msim\fR" 4
23232 .IX Item "-msim"
23233 On embedded PowerPC systems, assume that the startup module is called
23234 \&\fIsim\-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
23235 \&\fIlibc.a\fR.  This is the default for \fBpowerpc\-*\-eabisim\fR
23236 configurations.
23237 .IP "\fB\-mmvme\fR" 4
23238 .IX Item "-mmvme"
23239 On embedded PowerPC systems, assume that the startup module is called
23240 \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
23241 \&\fIlibc.a\fR.
23242 .IP "\fB\-mads\fR" 4
23243 .IX Item "-mads"
23244 On embedded PowerPC systems, assume that the startup module is called
23245 \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
23246 \&\fIlibc.a\fR.
23247 .IP "\fB\-myellowknife\fR" 4
23248 .IX Item "-myellowknife"
23249 On embedded PowerPC systems, assume that the startup module is called
23250 \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
23251 \&\fIlibc.a\fR.
23252 .IP "\fB\-mvxworks\fR" 4
23253 .IX Item "-mvxworks"
23254 On System V.4 and embedded PowerPC systems, specify that you are
23255 compiling for a VxWorks system.
23256 .IP "\fB\-memb\fR" 4
23257 .IX Item "-memb"
23258 On embedded PowerPC systems, set the \f(CW\*(C`PPC_EMB\*(C'\fR bit in the \s-1ELF\s0 flags
23259 header to indicate that \fBeabi\fR extended relocations are used.
23260 .IP "\fB\-meabi\fR" 4
23261 .IX Item "-meabi"
23262 .PD 0
23263 .IP "\fB\-mno\-eabi\fR" 4
23264 .IX Item "-mno-eabi"
23265 .PD
23266 On System V.4 and embedded PowerPC systems do (do not) adhere to the
23267 Embedded Applications Binary Interface (\s-1EABI\s0), which is a set of
23268 modifications to the System V.4 specifications.  Selecting \fB\-meabi\fR
23269 means that the stack is aligned to an 8\-byte boundary, a function
23270 \&\f(CW\*(C`_\|_eabi\*(C'\fR is called from \f(CW\*(C`main\*(C'\fR to set up the \s-1EABI\s0
23271 environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
23272 \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas.  Selecting
23273 \&\fB\-mno\-eabi\fR means that the stack is aligned to a 16\-byte boundary,
23274 no \s-1EABI\s0 initialization function is called from \f(CW\*(C`main\*(C'\fR, and the
23275 \&\fB\-msdata\fR option only uses \f(CW\*(C`r13\*(C'\fR to point to a single
23276 small data area.  The \fB\-meabi\fR option is on by default if you
23277 configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
23278 .IP "\fB\-msdata=eabi\fR" 4
23279 .IX Item "-msdata=eabi"
23280 On System V.4 and embedded PowerPC systems, put small initialized
23281 \&\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata2\*(C'\fR section, which
23282 is pointed to by register \f(CW\*(C`r2\*(C'\fR.  Put small initialized
23283 non\-\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata\*(C'\fR section,
23284 which is pointed to by register \f(CW\*(C`r13\*(C'\fR.  Put small uninitialized
23285 global and static data in the \f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to
23286 the \f(CW\*(C`.sdata\*(C'\fR section.  The \fB\-msdata=eabi\fR option is
23287 incompatible with the \fB\-mrelocatable\fR option.  The
23288 \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
23289 .IP "\fB\-msdata=sysv\fR" 4
23290 .IX Item "-msdata=sysv"
23291 On System V.4 and embedded PowerPC systems, put small global and static
23292 data in the \f(CW\*(C`.sdata\*(C'\fR section, which is pointed to by register
23293 \&\f(CW\*(C`r13\*(C'\fR.  Put small uninitialized global and static data in the
23294 \&\f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to the \f(CW\*(C`.sdata\*(C'\fR section.
23295 The \fB\-msdata=sysv\fR option is incompatible with the
23296 \&\fB\-mrelocatable\fR option.
23297 .IP "\fB\-msdata=default\fR" 4
23298 .IX Item "-msdata=default"
23299 .PD 0
23300 .IP "\fB\-msdata\fR" 4
23301 .IX Item "-msdata"
23302 .PD
23303 On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
23304 compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
23305 same as \fB\-msdata=sysv\fR.
23306 .IP "\fB\-msdata=data\fR" 4
23307 .IX Item "-msdata=data"
23308 On System V.4 and embedded PowerPC systems, put small global
23309 data in the \f(CW\*(C`.sdata\*(C'\fR section.  Put small uninitialized global
23310 data in the \f(CW\*(C`.sbss\*(C'\fR section.  Do not use register \f(CW\*(C`r13\*(C'\fR
23311 to address small data however.  This is the default behavior unless
23312 other \fB\-msdata\fR options are used.
23313 .IP "\fB\-msdata=none\fR" 4
23314 .IX Item "-msdata=none"
23315 .PD 0
23316 .IP "\fB\-mno\-sdata\fR" 4
23317 .IX Item "-mno-sdata"
23318 .PD
23319 On embedded PowerPC systems, put all initialized global and static data
23320 in the \f(CW\*(C`.data\*(C'\fR section, and all uninitialized data in the
23321 \&\f(CW\*(C`.bss\*(C'\fR section.
23322 .IP "\fB\-mreadonly\-in\-sdata\fR" 4
23323 .IX Item "-mreadonly-in-sdata"
23324 .PD 0
23325 .IP "\fB\-mreadonly\-in\-sdata\fR" 4
23326 .IX Item "-mreadonly-in-sdata"
23327 .PD
23328 Put read-only objects in the \f(CW\*(C`.sdata\*(C'\fR section as well.  This is the
23329 default.
23330 .IP "\fB\-mblock\-move\-inline\-limit=\fR\fInum\fR" 4
23331 .IX Item "-mblock-move-inline-limit=num"
23332 Inline all block moves (such as calls to \f(CW\*(C`memcpy\*(C'\fR or structure
23333 copies) less than or equal to \fInum\fR bytes.  The minimum value for
23334 \&\fInum\fR is 32 bytes on 32\-bit targets and 64 bytes on 64\-bit
23335 targets.  The default value is target-specific.
23336 .IP "\fB\-mblock\-compare\-inline\-limit=\fR\fInum\fR" 4
23337 .IX Item "-mblock-compare-inline-limit=num"
23338 Generate non-looping inline code for all block compares (such as calls
23339 to \f(CW\*(C`memcmp\*(C'\fR or structure compares) less than or equal to \fInum\fR
23340 bytes. If \fInum\fR is 0, all inline expansion (non-loop and loop) of
23341 block compare is disabled. The default value is target-specific.
23342 .IP "\fB\-mblock\-compare\-inline\-loop\-limit=\fR\fInum\fR" 4
23343 .IX Item "-mblock-compare-inline-loop-limit=num"
23344 Generate an inline expansion using loop code for all block compares that
23345 are less than or equal to \fInum\fR bytes, but greater than the limit
23346 for non-loop inline block compare expansion. If the block length is not
23347 constant, at most \fInum\fR bytes will be compared before \f(CW\*(C`memcmp\*(C'\fR
23348 is called to compare the remainder of the block. The default value is
23349 target-specific.
23350 .IP "\fB\-mstring\-compare\-inline\-limit=\fR\fInum\fR" 4
23351 .IX Item "-mstring-compare-inline-limit=num"
23352 Generate at most \fInum\fR pairs of load instructions to compare the
23353 string inline. If the difference or end of string is not found at the
23354 end of the inline compare a call to \f(CW\*(C`strcmp\*(C'\fR or \f(CW\*(C`strncmp\*(C'\fR will
23355 take care of the rest of the comparison. The default is 8 pairs of
23356 loads, which will compare 64 bytes on a 64\-bit target and 32 bytes on a
23357 32\-bit target.
23358 .IP "\fB\-G\fR \fInum\fR" 4
23359 .IX Item "-G num"
23360 On embedded PowerPC systems, put global and static items less than or
23361 equal to \fInum\fR bytes into the small data or \s-1BSS\s0 sections instead of
23362 the normal data or \s-1BSS\s0 section.  By default, \fInum\fR is 8.  The
23363 \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
23364 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
23365 .IP "\fB\-mregnames\fR" 4
23366 .IX Item "-mregnames"
23367 .PD 0
23368 .IP "\fB\-mno\-regnames\fR" 4
23369 .IX Item "-mno-regnames"
23370 .PD
23371 On System V.4 and embedded PowerPC systems do (do not) emit register
23372 names in the assembly language output using symbolic forms.
23373 .IP "\fB\-mlongcall\fR" 4
23374 .IX Item "-mlongcall"
23375 .PD 0
23376 .IP "\fB\-mno\-longcall\fR" 4
23377 .IX Item "-mno-longcall"
23378 .PD
23379 By default assume that all calls are far away so that a longer and more
23380 expensive calling sequence is required.  This is required for calls
23381 farther than 32 megabytes (33,554,432 bytes) from the current location.
23382 A short call is generated if the compiler knows
23383 the call cannot be that far away.  This setting can be overridden by
23384 the \f(CW\*(C`shortcall\*(C'\fR function attribute, or by \f(CW\*(C`#pragma
23385 longcall(0)\*(C'\fR.
23386 .Sp
23387 Some linkers are capable of detecting out-of-range calls and generating
23388 glue code on the fly.  On these systems, long calls are unnecessary and
23389 generate slower code.  As of this writing, the \s-1AIX\s0 linker can do this,
23390 as can the \s-1GNU\s0 linker for PowerPC/64.  It is planned to add this feature
23391 to the \s-1GNU\s0 linker for 32\-bit PowerPC systems as well.
23392 .Sp
23393 On Darwin/PPC systems, \f(CW\*(C`#pragma longcall\*(C'\fR generates \f(CW\*(C`jbsr
23394 callee, L42\*(C'\fR, plus a \fIbranch island\fR (glue code).  The two target
23395 addresses represent the callee and the branch island.  The
23396 Darwin/PPC linker prefers the first address and generates a \f(CW\*(C`bl
23397 callee\*(C'\fR if the \s-1PPC\s0 \f(CW\*(C`bl\*(C'\fR instruction reaches the callee directly;
23398 otherwise, the linker generates \f(CW\*(C`bl L42\*(C'\fR to call the branch
23399 island.  The branch island is appended to the body of the
23400 calling function; it computes the full 32\-bit address of the callee
23401 and jumps to it.
23402 .Sp
23403 On Mach-O (Darwin) systems, this option directs the compiler emit to
23404 the glue for every direct call, and the Darwin linker decides whether
23405 to use or discard it.
23406 .Sp
23407 In the future, \s-1GCC\s0 may ignore all longcall specifications
23408 when the linker is known to generate glue.
23409 .IP "\fB\-mtls\-markers\fR" 4
23410 .IX Item "-mtls-markers"
23411 .PD 0
23412 .IP "\fB\-mno\-tls\-markers\fR" 4
23413 .IX Item "-mno-tls-markers"
23414 .PD
23415 Mark (do not mark) calls to \f(CW\*(C`_\|_tls_get_addr\*(C'\fR with a relocation
23416 specifying the function argument.  The relocation allows the linker to
23417 reliably associate function call with argument setup instructions for
23418 \&\s-1TLS\s0 optimization, which in turn allows \s-1GCC\s0 to better schedule the
23419 sequence.
23420 .IP "\fB\-mrecip\fR" 4
23421 .IX Item "-mrecip"
23422 .PD 0
23423 .IP "\fB\-mno\-recip\fR" 4
23424 .IX Item "-mno-recip"
23425 .PD
23426 This option enables use of the reciprocal estimate and
23427 reciprocal square root estimate instructions with additional
23428 Newton-Raphson steps to increase precision instead of doing a divide or
23429 square root and divide for floating-point arguments.  You should use
23430 the \fB\-ffast\-math\fR option when using \fB\-mrecip\fR (or at
23431 least \fB\-funsafe\-math\-optimizations\fR,
23432 \&\fB\-ffinite\-math\-only\fR, \fB\-freciprocal\-math\fR and
23433 \&\fB\-fno\-trapping\-math\fR).  Note that while the throughput of the
23434 sequence is generally higher than the throughput of the non-reciprocal
23435 instruction, the precision of the sequence can be decreased by up to 2
23436 ulp (i.e. the inverse of 1.0 equals 0.99999994) for reciprocal square
23437 roots.
23438 .IP "\fB\-mrecip=\fR\fIopt\fR" 4
23439 .IX Item "-mrecip=opt"
23440 This option controls which reciprocal estimate instructions
23441 may be used.  \fIopt\fR is a comma-separated list of options, which may
23442 be preceded by a \f(CW\*(C`!\*(C'\fR to invert the option:
23443 .RS 4
23444 .IP "\fBall\fR" 4
23445 .IX Item "all"
23446 Enable all estimate instructions.
23447 .IP "\fBdefault\fR" 4
23448 .IX Item "default"
23449 Enable the default instructions, equivalent to \fB\-mrecip\fR.
23450 .IP "\fBnone\fR" 4
23451 .IX Item "none"
23452 Disable all estimate instructions, equivalent to \fB\-mno\-recip\fR.
23453 .IP "\fBdiv\fR" 4
23454 .IX Item "div"
23455 Enable the reciprocal approximation instructions for both 
23456 single and double precision.
23457 .IP "\fBdivf\fR" 4
23458 .IX Item "divf"
23459 Enable the single-precision reciprocal approximation instructions.
23460 .IP "\fBdivd\fR" 4
23461 .IX Item "divd"
23462 Enable the double-precision reciprocal approximation instructions.
23463 .IP "\fBrsqrt\fR" 4
23464 .IX Item "rsqrt"
23465 Enable the reciprocal square root approximation instructions for both
23466 single and double precision.
23467 .IP "\fBrsqrtf\fR" 4
23468 .IX Item "rsqrtf"
23469 Enable the single-precision reciprocal square root approximation instructions.
23470 .IP "\fBrsqrtd\fR" 4
23471 .IX Item "rsqrtd"
23472 Enable the double-precision reciprocal square root approximation instructions.
23473 .RE
23474 .RS 4
23475 .Sp
23476 So, for example, \fB\-mrecip=all,!rsqrtd\fR enables
23477 all of the reciprocal estimate instructions, except for the
23478 \&\f(CW\*(C`FRSQRTE\*(C'\fR, \f(CW\*(C`XSRSQRTEDP\*(C'\fR, and \f(CW\*(C`XVRSQRTEDP\*(C'\fR instructions
23479 which handle the double-precision reciprocal square root calculations.
23480 .RE
23481 .IP "\fB\-mrecip\-precision\fR" 4
23482 .IX Item "-mrecip-precision"
23483 .PD 0
23484 .IP "\fB\-mno\-recip\-precision\fR" 4
23485 .IX Item "-mno-recip-precision"
23486 .PD
23487 Assume (do not assume) that the reciprocal estimate instructions
23488 provide higher-precision estimates than is mandated by the PowerPC
23489 \&\s-1ABI.\s0  Selecting \fB\-mcpu=power6\fR, \fB\-mcpu=power7\fR or
23490 \&\fB\-mcpu=power8\fR automatically selects \fB\-mrecip\-precision\fR.
23491 The double-precision square root estimate instructions are not generated by
23492 default on low-precision machines, since they do not provide an
23493 estimate that converges after three steps.
23494 .IP "\fB\-mveclibabi=\fR\fItype\fR" 4
23495 .IX Item "-mveclibabi=type"
23496 Specifies the \s-1ABI\s0 type to use for vectorizing intrinsics using an
23497 external library.  The only type supported at present is \fBmass\fR,
23498 which specifies to use \s-1IBM\s0's Mathematical Acceleration Subsystem
23499 (\s-1MASS\s0) libraries for vectorizing intrinsics using external libraries.
23500 \&\s-1GCC\s0 currently emits calls to \f(CW\*(C`acosd2\*(C'\fR, \f(CW\*(C`acosf4\*(C'\fR,
23501 \&\f(CW\*(C`acoshd2\*(C'\fR, \f(CW\*(C`acoshf4\*(C'\fR, \f(CW\*(C`asind2\*(C'\fR, \f(CW\*(C`asinf4\*(C'\fR,
23502 \&\f(CW\*(C`asinhd2\*(C'\fR, \f(CW\*(C`asinhf4\*(C'\fR, \f(CW\*(C`atan2d2\*(C'\fR, \f(CW\*(C`atan2f4\*(C'\fR,
23503 \&\f(CW\*(C`atand2\*(C'\fR, \f(CW\*(C`atanf4\*(C'\fR, \f(CW\*(C`atanhd2\*(C'\fR, \f(CW\*(C`atanhf4\*(C'\fR,
23504 \&\f(CW\*(C`cbrtd2\*(C'\fR, \f(CW\*(C`cbrtf4\*(C'\fR, \f(CW\*(C`cosd2\*(C'\fR, \f(CW\*(C`cosf4\*(C'\fR,
23505 \&\f(CW\*(C`coshd2\*(C'\fR, \f(CW\*(C`coshf4\*(C'\fR, \f(CW\*(C`erfcd2\*(C'\fR, \f(CW\*(C`erfcf4\*(C'\fR,
23506 \&\f(CW\*(C`erfd2\*(C'\fR, \f(CW\*(C`erff4\*(C'\fR, \f(CW\*(C`exp2d2\*(C'\fR, \f(CW\*(C`exp2f4\*(C'\fR,
23507 \&\f(CW\*(C`expd2\*(C'\fR, \f(CW\*(C`expf4\*(C'\fR, \f(CW\*(C`expm1d2\*(C'\fR, \f(CW\*(C`expm1f4\*(C'\fR,
23508 \&\f(CW\*(C`hypotd2\*(C'\fR, \f(CW\*(C`hypotf4\*(C'\fR, \f(CW\*(C`lgammad2\*(C'\fR, \f(CW\*(C`lgammaf4\*(C'\fR,
23509 \&\f(CW\*(C`log10d2\*(C'\fR, \f(CW\*(C`log10f4\*(C'\fR, \f(CW\*(C`log1pd2\*(C'\fR, \f(CW\*(C`log1pf4\*(C'\fR,
23510 \&\f(CW\*(C`log2d2\*(C'\fR, \f(CW\*(C`log2f4\*(C'\fR, \f(CW\*(C`logd2\*(C'\fR, \f(CW\*(C`logf4\*(C'\fR,
23511 \&\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,
23512 \&\f(CW\*(C`sinhf4\*(C'\fR, \f(CW\*(C`sqrtd2\*(C'\fR, \f(CW\*(C`sqrtf4\*(C'\fR, \f(CW\*(C`tand2\*(C'\fR,
23513 \&\f(CW\*(C`tanf4\*(C'\fR, \f(CW\*(C`tanhd2\*(C'\fR, and \f(CW\*(C`tanhf4\*(C'\fR when generating code
23514 for power7.  Both \fB\-ftree\-vectorize\fR and
23515 \&\fB\-funsafe\-math\-optimizations\fR must also be enabled.  The \s-1MASS\s0
23516 libraries must be specified at link time.
23517 .IP "\fB\-mfriz\fR" 4
23518 .IX Item "-mfriz"
23519 .PD 0
23520 .IP "\fB\-mno\-friz\fR" 4
23521 .IX Item "-mno-friz"
23522 .PD
23523 Generate (do not generate) the \f(CW\*(C`friz\*(C'\fR instruction when the
23524 \&\fB\-funsafe\-math\-optimizations\fR option is used to optimize
23525 rounding of floating-point values to 64\-bit integer and back to floating
23526 point.  The \f(CW\*(C`friz\*(C'\fR instruction does not return the same value if
23527 the floating-point number is too large to fit in an integer.
23528 .IP "\fB\-mpointers\-to\-nested\-functions\fR" 4
23529 .IX Item "-mpointers-to-nested-functions"
23530 .PD 0
23531 .IP "\fB\-mno\-pointers\-to\-nested\-functions\fR" 4
23532 .IX Item "-mno-pointers-to-nested-functions"
23533 .PD
23534 Generate (do not generate) code to load up the static chain register
23535 (\f(CW\*(C`r11\*(C'\fR) when calling through a pointer on \s-1AIX\s0 and 64\-bit Linux
23536 systems where a function pointer points to a 3\-word descriptor giving
23537 the function address, \s-1TOC\s0 value to be loaded in register \f(CW\*(C`r2\*(C'\fR, and
23538 static chain value to be loaded in register \f(CW\*(C`r11\*(C'\fR.  The
23539 \&\fB\-mpointers\-to\-nested\-functions\fR is on by default.  You cannot
23540 call through pointers to nested functions or pointers
23541 to functions compiled in other languages that use the static chain if
23542 you use \fB\-mno\-pointers\-to\-nested\-functions\fR.
23543 .IP "\fB\-msave\-toc\-indirect\fR" 4
23544 .IX Item "-msave-toc-indirect"
23545 .PD 0
23546 .IP "\fB\-mno\-save\-toc\-indirect\fR" 4
23547 .IX Item "-mno-save-toc-indirect"
23548 .PD
23549 Generate (do not generate) code to save the \s-1TOC\s0 value in the reserved
23550 stack location in the function prologue if the function calls through
23551 a pointer on \s-1AIX\s0 and 64\-bit Linux systems.  If the \s-1TOC\s0 value is not
23552 saved in the prologue, it is saved just before the call through the
23553 pointer.  The \fB\-mno\-save\-toc\-indirect\fR option is the default.
23554 .IP "\fB\-mcompat\-align\-parm\fR" 4
23555 .IX Item "-mcompat-align-parm"
23556 .PD 0
23557 .IP "\fB\-mno\-compat\-align\-parm\fR" 4
23558 .IX Item "-mno-compat-align-parm"
23559 .PD
23560 Generate (do not generate) code to pass structure parameters with a
23561 maximum alignment of 64 bits, for compatibility with older versions
23562 of \s-1GCC.\s0
23563 .Sp
23564 Older versions of \s-1GCC\s0 (prior to 4.9.0) incorrectly did not align a
23565 structure parameter on a 128\-bit boundary when that structure contained
23566 a member requiring 128\-bit alignment.  This is corrected in more
23567 recent versions of \s-1GCC.\s0  This option may be used to generate code
23568 that is compatible with functions compiled with older versions of
23569 \&\s-1GCC.\s0
23570 .Sp
23571 The \fB\-mno\-compat\-align\-parm\fR option is the default.
23572 .IP "\fB\-mstack\-protector\-guard=\fR\fIguard\fR" 4
23573 .IX Item "-mstack-protector-guard=guard"
23574 .PD 0
23575 .IP "\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR" 4
23576 .IX Item "-mstack-protector-guard-reg=reg"
23577 .IP "\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR" 4
23578 .IX Item "-mstack-protector-guard-offset=offset"
23579 .IP "\fB\-mstack\-protector\-guard\-symbol=\fR\fIsymbol\fR" 4
23580 .IX Item "-mstack-protector-guard-symbol=symbol"
23581 .PD
23582 Generate stack protection code using canary at \fIguard\fR.  Supported
23583 locations are \fBglobal\fR for global canary or \fBtls\fR for per-thread
23584 canary in the \s-1TLS\s0 block (the default with \s-1GNU\s0 libc version 2.4 or later).
23585 .Sp
23586 With the latter choice the options
23587 \&\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR and
23588 \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR furthermore specify
23589 which register to use as base register for reading the canary, and from what
23590 offset from that base register. The default for those is as specified in the
23591 relevant \s-1ABI.\s0  \fB\-mstack\-protector\-guard\-symbol=\fR\fIsymbol\fR overrides
23592 the offset with a symbol reference to a canary in the \s-1TLS\s0 block.
23593 .PP
23594 \fI\s-1RX\s0 Options\fR
23595 .IX Subsection "RX Options"
23596 .PP
23597 These command-line options are defined for \s-1RX\s0 targets:
23598 .IP "\fB\-m64bit\-doubles\fR" 4
23599 .IX Item "-m64bit-doubles"
23600 .PD 0
23601 .IP "\fB\-m32bit\-doubles\fR" 4
23602 .IX Item "-m32bit-doubles"
23603 .PD
23604 Make the \f(CW\*(C`double\*(C'\fR data type be 64 bits (\fB\-m64bit\-doubles\fR)
23605 or 32 bits (\fB\-m32bit\-doubles\fR) in size.  The default is
23606 \&\fB\-m32bit\-doubles\fR.  \fINote\fR \s-1RX\s0 floating-point hardware only
23607 works on 32\-bit values, which is why the default is
23608 \&\fB\-m32bit\-doubles\fR.
23609 .IP "\fB\-fpu\fR" 4
23610 .IX Item "-fpu"
23611 .PD 0
23612 .IP "\fB\-nofpu\fR" 4
23613 .IX Item "-nofpu"
23614 .PD
23615 Enables (\fB\-fpu\fR) or disables (\fB\-nofpu\fR) the use of \s-1RX\s0
23616 floating-point hardware.  The default is enabled for the \s-1RX600\s0
23617 series and disabled for the \s-1RX200\s0 series.
23618 .Sp
23619 Floating-point instructions are only generated for 32\-bit floating-point 
23620 values, however, so the \s-1FPU\s0 hardware is not used for doubles if the
23621 \&\fB\-m64bit\-doubles\fR option is used.
23622 .Sp
23623 \&\fINote\fR If the \fB\-fpu\fR option is enabled then
23624 \&\fB\-funsafe\-math\-optimizations\fR is also enabled automatically.
23625 This is because the \s-1RX FPU\s0 instructions are themselves unsafe.
23626 .IP "\fB\-mcpu=\fR\fIname\fR" 4
23627 .IX Item "-mcpu=name"
23628 Selects the type of \s-1RX CPU\s0 to be targeted.  Currently three types are
23629 supported, the generic \fB\s-1RX600\s0\fR and \fB\s-1RX200\s0\fR series hardware and
23630 the specific \fB\s-1RX610\s0\fR \s-1CPU.\s0  The default is \fB\s-1RX600\s0\fR.
23631 .Sp
23632 The only difference between \fB\s-1RX600\s0\fR and \fB\s-1RX610\s0\fR is that the
23633 \&\fB\s-1RX610\s0\fR does not support the \f(CW\*(C`MVTIPL\*(C'\fR instruction.
23634 .Sp
23635 The \fB\s-1RX200\s0\fR series does not have a hardware floating-point unit
23636 and so \fB\-nofpu\fR is enabled by default when this type is
23637 selected.
23638 .IP "\fB\-mbig\-endian\-data\fR" 4
23639 .IX Item "-mbig-endian-data"
23640 .PD 0
23641 .IP "\fB\-mlittle\-endian\-data\fR" 4
23642 .IX Item "-mlittle-endian-data"
23643 .PD
23644 Store data (but not code) in the big-endian format.  The default is
23645 \&\fB\-mlittle\-endian\-data\fR, i.e. to store data in the little-endian
23646 format.
23647 .IP "\fB\-msmall\-data\-limit=\fR\fIN\fR" 4
23648 .IX Item "-msmall-data-limit=N"
23649 Specifies the maximum size in bytes of global and static variables
23650 which can be placed into the small data area.  Using the small data
23651 area can lead to smaller and faster code, but the size of area is
23652 limited and it is up to the programmer to ensure that the area does
23653 not overflow.  Also when the small data area is used one of the \s-1RX\s0's
23654 registers (usually \f(CW\*(C`r13\*(C'\fR) is reserved for use pointing to this
23655 area, so it is no longer available for use by the compiler.  This
23656 could result in slower and/or larger code if variables are pushed onto
23657 the stack instead of being held in this register.
23658 .Sp
23659 Note, common variables (variables that have not been initialized) and
23660 constants are not placed into the small data area as they are assigned
23661 to other sections in the output executable.
23662 .Sp
23663 The default value is zero, which disables this feature.  Note, this
23664 feature is not enabled by default with higher optimization levels
23665 (\fB\-O2\fR etc) because of the potentially detrimental effects of
23666 reserving a register.  It is up to the programmer to experiment and
23667 discover whether this feature is of benefit to their program.  See the
23668 description of the \fB\-mpid\fR option for a description of how the
23669 actual register to hold the small data area pointer is chosen.
23670 .IP "\fB\-msim\fR" 4
23671 .IX Item "-msim"
23672 .PD 0
23673 .IP "\fB\-mno\-sim\fR" 4
23674 .IX Item "-mno-sim"
23675 .PD
23676 Use the simulator runtime.  The default is to use the libgloss
23677 board-specific runtime.
23678 .IP "\fB\-mas100\-syntax\fR" 4
23679 .IX Item "-mas100-syntax"
23680 .PD 0
23681 .IP "\fB\-mno\-as100\-syntax\fR" 4
23682 .IX Item "-mno-as100-syntax"
23683 .PD
23684 When generating assembler output use a syntax that is compatible with
23685 Renesas's \s-1AS100\s0 assembler.  This syntax can also be handled by the \s-1GAS\s0
23686 assembler, but it has some restrictions so it is not generated by default.
23687 .IP "\fB\-mmax\-constant\-size=\fR\fIN\fR" 4
23688 .IX Item "-mmax-constant-size=N"
23689 Specifies the maximum size, in bytes, of a constant that can be used as
23690 an operand in a \s-1RX\s0 instruction.  Although the \s-1RX\s0 instruction set does
23691 allow constants of up to 4 bytes in length to be used in instructions,
23692 a longer value equates to a longer instruction.  Thus in some
23693 circumstances it can be beneficial to restrict the size of constants
23694 that are used in instructions.  Constants that are too big are instead
23695 placed into a constant pool and referenced via register indirection.
23696 .Sp
23697 The value \fIN\fR can be between 0 and 4.  A value of 0 (the default)
23698 or 4 means that constants of any size are allowed.
23699 .IP "\fB\-mrelax\fR" 4
23700 .IX Item "-mrelax"
23701 Enable linker relaxation.  Linker relaxation is a process whereby the
23702 linker attempts to reduce the size of a program by finding shorter
23703 versions of various instructions.  Disabled by default.
23704 .IP "\fB\-mint\-register=\fR\fIN\fR" 4
23705 .IX Item "-mint-register=N"
23706 Specify the number of registers to reserve for fast interrupt handler
23707 functions.  The value \fIN\fR can be between 0 and 4.  A value of 1
23708 means that register \f(CW\*(C`r13\*(C'\fR is reserved for the exclusive use
23709 of fast interrupt handlers.  A value of 2 reserves \f(CW\*(C`r13\*(C'\fR and
23710 \&\f(CW\*(C`r12\*(C'\fR.  A value of 3 reserves \f(CW\*(C`r13\*(C'\fR, \f(CW\*(C`r12\*(C'\fR and
23711 \&\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.
23712 A value of 0, the default, does not reserve any registers.
23713 .IP "\fB\-msave\-acc\-in\-interrupts\fR" 4
23714 .IX Item "-msave-acc-in-interrupts"
23715 Specifies that interrupt handler functions should preserve the
23716 accumulator register.  This is only necessary if normal code might use
23717 the accumulator register, for example because it performs 64\-bit
23718 multiplications.  The default is to ignore the accumulator as this
23719 makes the interrupt handlers faster.
23720 .IP "\fB\-mpid\fR" 4
23721 .IX Item "-mpid"
23722 .PD 0
23723 .IP "\fB\-mno\-pid\fR" 4
23724 .IX Item "-mno-pid"
23725 .PD
23726 Enables the generation of position independent data.  When enabled any
23727 access to constant data is done via an offset from a base address
23728 held in a register.  This allows the location of constant data to be
23729 determined at run time without requiring the executable to be
23730 relocated, which is a benefit to embedded applications with tight
23731 memory constraints.  Data that can be modified is not affected by this
23732 option.
23733 .Sp
23734 Note, using this feature reserves a register, usually \f(CW\*(C`r13\*(C'\fR, for
23735 the constant data base address.  This can result in slower and/or
23736 larger code, especially in complicated functions.
23737 .Sp
23738 The actual register chosen to hold the constant data base address
23739 depends upon whether the \fB\-msmall\-data\-limit\fR and/or the
23740 \&\fB\-mint\-register\fR command-line options are enabled.  Starting
23741 with register \f(CW\*(C`r13\*(C'\fR and proceeding downwards, registers are
23742 allocated first to satisfy the requirements of \fB\-mint\-register\fR,
23743 then \fB\-mpid\fR and finally \fB\-msmall\-data\-limit\fR.  Thus it
23744 is possible for the small data area register to be \f(CW\*(C`r8\*(C'\fR if both
23745 \&\fB\-mint\-register=4\fR and \fB\-mpid\fR are specified on the
23746 command line.
23747 .Sp
23748 By default this feature is not enabled.  The default can be restored
23749 via the \fB\-mno\-pid\fR command-line option.
23750 .IP "\fB\-mno\-warn\-multiple\-fast\-interrupts\fR" 4
23751 .IX Item "-mno-warn-multiple-fast-interrupts"
23752 .PD 0
23753 .IP "\fB\-mwarn\-multiple\-fast\-interrupts\fR" 4
23754 .IX Item "-mwarn-multiple-fast-interrupts"
23755 .PD
23756 Prevents \s-1GCC\s0 from issuing a warning message if it finds more than one
23757 fast interrupt handler when it is compiling a file.  The default is to
23758 issue a warning for each extra fast interrupt handler found, as the \s-1RX\s0
23759 only supports one such interrupt.
23760 .IP "\fB\-mallow\-string\-insns\fR" 4
23761 .IX Item "-mallow-string-insns"
23762 .PD 0
23763 .IP "\fB\-mno\-allow\-string\-insns\fR" 4
23764 .IX Item "-mno-allow-string-insns"
23765 .PD
23766 Enables or disables the use of the string manipulation instructions
23767 \&\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
23768 \&\f(CW\*(C`SWHILE\*(C'\fR and also the \f(CW\*(C`RMPA\*(C'\fR instruction.  These
23769 instructions may prefetch data, which is not safe to do if accessing
23770 an I/O register.  (See section 12.2.7 of the \s-1RX62N\s0 Group User's Manual
23771 for more information).
23772 .Sp
23773 The default is to allow these instructions, but it is not possible for
23774 \&\s-1GCC\s0 to reliably detect all circumstances where a string instruction
23775 might be used to access an I/O register, so their use cannot be
23776 disabled automatically.  Instead it is reliant upon the programmer to
23777 use the \fB\-mno\-allow\-string\-insns\fR option if their program
23778 accesses I/O space.
23779 .Sp
23780 When the instructions are enabled \s-1GCC\s0 defines the C preprocessor
23781 symbol \f(CW\*(C`_\|_RX_ALLOW_STRING_INSNS_\|_\*(C'\fR, otherwise it defines the
23782 symbol \f(CW\*(C`_\|_RX_DISALLOW_STRING_INSNS_\|_\*(C'\fR.
23783 .IP "\fB\-mjsr\fR" 4
23784 .IX Item "-mjsr"
23785 .PD 0
23786 .IP "\fB\-mno\-jsr\fR" 4
23787 .IX Item "-mno-jsr"
23788 .PD
23789 Use only (or not only) \f(CW\*(C`JSR\*(C'\fR instructions to access functions.
23790 This option can be used when code size exceeds the range of \f(CW\*(C`BSR\*(C'\fR
23791 instructions.  Note that \fB\-mno\-jsr\fR does not mean to not use
23792 \&\f(CW\*(C`JSR\*(C'\fR but instead means that any type of branch may be used.
23793 .PP
23794 \&\fINote:\fR The generic \s-1GCC\s0 command-line option \fB\-ffixed\-\fR\fIreg\fR
23795 has special significance to the \s-1RX\s0 port when used with the
23796 \&\f(CW\*(C`interrupt\*(C'\fR function attribute.  This attribute indicates a
23797 function intended to process fast interrupts.  \s-1GCC\s0 ensures
23798 that it only uses the registers \f(CW\*(C`r10\*(C'\fR, \f(CW\*(C`r11\*(C'\fR, \f(CW\*(C`r12\*(C'\fR
23799 and/or \f(CW\*(C`r13\*(C'\fR and only provided that the normal use of the
23800 corresponding registers have been restricted via the
23801 \&\fB\-ffixed\-\fR\fIreg\fR or \fB\-mint\-register\fR command-line
23802 options.
23803 .PP
23804 \fIS/390 and zSeries Options\fR
23805 .IX Subsection "S/390 and zSeries Options"
23806 .PP
23807 These are the \fB\-m\fR options defined for the S/390 and zSeries architecture.
23808 .IP "\fB\-mhard\-float\fR" 4
23809 .IX Item "-mhard-float"
23810 .PD 0
23811 .IP "\fB\-msoft\-float\fR" 4
23812 .IX Item "-msoft-float"
23813 .PD
23814 Use (do not use) the hardware floating-point instructions and registers
23815 for floating-point operations.  When \fB\-msoft\-float\fR is specified,
23816 functions in \fIlibgcc.a\fR are used to perform floating-point
23817 operations.  When \fB\-mhard\-float\fR is specified, the compiler
23818 generates \s-1IEEE\s0 floating-point instructions.  This is the default.
23819 .IP "\fB\-mhard\-dfp\fR" 4
23820 .IX Item "-mhard-dfp"
23821 .PD 0
23822 .IP "\fB\-mno\-hard\-dfp\fR" 4
23823 .IX Item "-mno-hard-dfp"
23824 .PD
23825 Use (do not use) the hardware decimal-floating-point instructions for
23826 decimal-floating-point operations.  When \fB\-mno\-hard\-dfp\fR is
23827 specified, functions in \fIlibgcc.a\fR are used to perform
23828 decimal-floating-point operations.  When \fB\-mhard\-dfp\fR is
23829 specified, the compiler generates decimal-floating-point hardware
23830 instructions.  This is the default for \fB\-march=z9\-ec\fR or higher.
23831 .IP "\fB\-mlong\-double\-64\fR" 4
23832 .IX Item "-mlong-double-64"
23833 .PD 0
23834 .IP "\fB\-mlong\-double\-128\fR" 4
23835 .IX Item "-mlong-double-128"
23836 .PD
23837 These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
23838 of 64 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
23839 type. This is the default.
23840 .IP "\fB\-mbackchain\fR" 4
23841 .IX Item "-mbackchain"
23842 .PD 0
23843 .IP "\fB\-mno\-backchain\fR" 4
23844 .IX Item "-mno-backchain"
23845 .PD
23846 Store (do not store) the address of the caller's frame as backchain pointer
23847 into the callee's stack frame.
23848 A backchain may be needed to allow debugging using tools that do not understand
23849 \&\s-1DWARF\s0 call frame information.
23850 When \fB\-mno\-packed\-stack\fR is in effect, the backchain pointer is stored
23851 at the bottom of the stack frame; when \fB\-mpacked\-stack\fR is in effect,
23852 the backchain is placed into the topmost word of the 96/160 byte register
23853 save area.
23854 .Sp
23855 In general, code compiled with \fB\-mbackchain\fR is call-compatible with
23856 code compiled with \fB\-mmo\-backchain\fR; however, use of the backchain
23857 for debugging purposes usually requires that the whole binary is built with
23858 \&\fB\-mbackchain\fR.  Note that the combination of \fB\-mbackchain\fR,
23859 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
23860 to build a linux kernel use \fB\-msoft\-float\fR.
23861 .Sp
23862 The default is to not maintain the backchain.
23863 .IP "\fB\-mpacked\-stack\fR" 4
23864 .IX Item "-mpacked-stack"
23865 .PD 0
23866 .IP "\fB\-mno\-packed\-stack\fR" 4
23867 .IX Item "-mno-packed-stack"
23868 .PD
23869 Use (do not use) the packed stack layout.  When \fB\-mno\-packed\-stack\fR is
23870 specified, the compiler uses the all fields of the 96/160 byte register save
23871 area only for their default purpose; unused fields still take up stack space.
23872 When \fB\-mpacked\-stack\fR is specified, register save slots are densely
23873 packed at the top of the register save area; unused space is reused for other
23874 purposes, allowing for more efficient use of the available stack space.
23875 However, when \fB\-mbackchain\fR is also in effect, the topmost word of
23876 the save area is always used to store the backchain, and the return address
23877 register is always saved two words below the backchain.
23878 .Sp
23879 As long as the stack frame backchain is not used, code generated with
23880 \&\fB\-mpacked\-stack\fR is call-compatible with code generated with
23881 \&\fB\-mno\-packed\-stack\fR.  Note that some non-FSF releases of \s-1GCC 2.95\s0 for
23882 S/390 or zSeries generated code that uses the stack frame backchain at run
23883 time, not just for debugging purposes.  Such code is not call-compatible
23884 with code compiled with \fB\-mpacked\-stack\fR.  Also, note that the
23885 combination of \fB\-mbackchain\fR,
23886 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
23887 to build a linux kernel use \fB\-msoft\-float\fR.
23888 .Sp
23889 The default is to not use the packed stack layout.
23890 .IP "\fB\-msmall\-exec\fR" 4
23891 .IX Item "-msmall-exec"
23892 .PD 0
23893 .IP "\fB\-mno\-small\-exec\fR" 4
23894 .IX Item "-mno-small-exec"
23895 .PD
23896 Generate (or do not generate) code using the \f(CW\*(C`bras\*(C'\fR instruction
23897 to do subroutine calls.
23898 This only works reliably if the total executable size does not
23899 exceed 64k.  The default is to use the \f(CW\*(C`basr\*(C'\fR instruction instead,
23900 which does not have this limitation.
23901 .IP "\fB\-m64\fR" 4
23902 .IX Item "-m64"
23903 .PD 0
23904 .IP "\fB\-m31\fR" 4
23905 .IX Item "-m31"
23906 .PD
23907 When \fB\-m31\fR is specified, generate code compliant to the
23908 GNU/Linux for S/390 \s-1ABI.\s0  When \fB\-m64\fR is specified, generate
23909 code compliant to the GNU/Linux for zSeries \s-1ABI.\s0  This allows \s-1GCC\s0 in
23910 particular to generate 64\-bit instructions.  For the \fBs390\fR
23911 targets, the default is \fB\-m31\fR, while the \fBs390x\fR
23912 targets default to \fB\-m64\fR.
23913 .IP "\fB\-mzarch\fR" 4
23914 .IX Item "-mzarch"
23915 .PD 0
23916 .IP "\fB\-mesa\fR" 4
23917 .IX Item "-mesa"
23918 .PD
23919 When \fB\-mzarch\fR is specified, generate code using the
23920 instructions available on z/Architecture.
23921 When \fB\-mesa\fR is specified, generate code using the
23922 instructions available on \s-1ESA/390.\s0  Note that \fB\-mesa\fR is
23923 not possible with \fB\-m64\fR.
23924 When generating code compliant to the GNU/Linux for S/390 \s-1ABI,\s0
23925 the default is \fB\-mesa\fR.  When generating code compliant
23926 to the GNU/Linux for zSeries \s-1ABI,\s0 the default is \fB\-mzarch\fR.
23927 .IP "\fB\-mhtm\fR" 4
23928 .IX Item "-mhtm"
23929 .PD 0
23930 .IP "\fB\-mno\-htm\fR" 4
23931 .IX Item "-mno-htm"
23932 .PD
23933 The \fB\-mhtm\fR option enables a set of builtins making use of
23934 instructions available with the transactional execution facility
23935 introduced with the \s-1IBM\s0 zEnterprise \s-1EC12\s0 machine generation
23936 \&\fBS/390 System z Built-in Functions\fR.
23937 \&\fB\-mhtm\fR is enabled by default when using \fB\-march=zEC12\fR.
23938 .IP "\fB\-mvx\fR" 4
23939 .IX Item "-mvx"
23940 .PD 0
23941 .IP "\fB\-mno\-vx\fR" 4
23942 .IX Item "-mno-vx"
23943 .PD
23944 When \fB\-mvx\fR is specified, generate code using the instructions
23945 available with the vector extension facility introduced with the \s-1IBM\s0
23946 z13 machine generation.
23947 This option changes the \s-1ABI\s0 for some vector type values with regard to
23948 alignment and calling conventions.  In case vector type values are
23949 being used in an ABI-relevant context a \s-1GAS\s0 \fB.gnu_attribute\fR
23950 command will be added to mark the resulting binary with the \s-1ABI\s0 used.
23951 \&\fB\-mvx\fR is enabled by default when using \fB\-march=z13\fR.
23952 .IP "\fB\-mzvector\fR" 4
23953 .IX Item "-mzvector"
23954 .PD 0
23955 .IP "\fB\-mno\-zvector\fR" 4
23956 .IX Item "-mno-zvector"
23957 .PD
23958 The \fB\-mzvector\fR option enables vector language extensions and
23959 builtins using instructions available with the vector extension
23960 facility introduced with the \s-1IBM\s0 z13 machine generation.
23961 This option adds support for \fBvector\fR to be used as a keyword to
23962 define vector type variables and arguments.  \fBvector\fR is only
23963 available when \s-1GNU\s0 extensions are enabled.  It will not be expanded
23964 when requesting strict standard compliance e.g. with \fB\-std=c99\fR.
23965 In addition to the \s-1GCC\s0 low-level builtins \fB\-mzvector\fR enables
23966 a set of builtins added for compatibility with AltiVec-style
23967 implementations like Power and Cell.  In order to make use of these
23968 builtins the header file \fIvecintrin.h\fR needs to be included.
23969 \&\fB\-mzvector\fR is disabled by default.
23970 .IP "\fB\-mmvcle\fR" 4
23971 .IX Item "-mmvcle"
23972 .PD 0
23973 .IP "\fB\-mno\-mvcle\fR" 4
23974 .IX Item "-mno-mvcle"
23975 .PD
23976 Generate (or do not generate) code using the \f(CW\*(C`mvcle\*(C'\fR instruction
23977 to perform block moves.  When \fB\-mno\-mvcle\fR is specified,
23978 use a \f(CW\*(C`mvc\*(C'\fR loop instead.  This is the default unless optimizing for
23979 size.
23980 .IP "\fB\-mdebug\fR" 4
23981 .IX Item "-mdebug"
23982 .PD 0
23983 .IP "\fB\-mno\-debug\fR" 4
23984 .IX Item "-mno-debug"
23985 .PD
23986 Print (or do not print) additional debug information when compiling.
23987 The default is to not print debug information.
23988 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
23989 .IX Item "-march=cpu-type"
23990 Generate code that runs on \fIcpu-type\fR, which is the name of a
23991 system representing a certain processor type.  Possible values for
23992 \&\fIcpu-type\fR are \fBz900\fR/\fBarch5\fR, \fBz990\fR/\fBarch6\fR,
23993 \&\fBz9\-109\fR, \fBz9\-ec\fR/\fBarch7\fR, \fBz10\fR/\fBarch8\fR,
23994 \&\fBz196\fR/\fBarch9\fR, \fBzEC12\fR, \fBz13\fR/\fBarch11\fR,
23995 \&\fBz14\fR/\fBarch12\fR, and \fBnative\fR.
23996 .Sp
23997 The default is \fB\-march=z900\fR.  \fBg5\fR/\fBarch3\fR and
23998 \&\fBg6\fR are deprecated and will be removed with future releases.
23999 .Sp
24000 Specifying \fBnative\fR as cpu type can be used to select the best
24001 architecture option for the host processor.
24002 \&\fB\-march=native\fR has no effect if \s-1GCC\s0 does not recognize the
24003 processor.
24004 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
24005 .IX Item "-mtune=cpu-type"
24006 Tune to \fIcpu-type\fR everything applicable about the generated code,
24007 except for the \s-1ABI\s0 and the set of available instructions.
24008 The list of \fIcpu-type\fR values is the same as for \fB\-march\fR.
24009 The default is the value used for \fB\-march\fR.
24010 .IP "\fB\-mtpf\-trace\fR" 4
24011 .IX Item "-mtpf-trace"
24012 .PD 0
24013 .IP "\fB\-mno\-tpf\-trace\fR" 4
24014 .IX Item "-mno-tpf-trace"
24015 .PD
24016 Generate code that adds (does not add) in \s-1TPF OS\s0 specific branches to trace
24017 routines in the operating system.  This option is off by default, even
24018 when compiling for the \s-1TPF OS.\s0
24019 .IP "\fB\-mfused\-madd\fR" 4
24020 .IX Item "-mfused-madd"
24021 .PD 0
24022 .IP "\fB\-mno\-fused\-madd\fR" 4
24023 .IX Item "-mno-fused-madd"
24024 .PD
24025 Generate code that uses (does not use) the floating-point multiply and
24026 accumulate instructions.  These instructions are generated by default if
24027 hardware floating point is used.
24028 .IP "\fB\-mwarn\-framesize=\fR\fIframesize\fR" 4
24029 .IX Item "-mwarn-framesize=framesize"
24030 Emit a warning if the current function exceeds the given frame size.  Because
24031 this is a compile-time check it doesn't need to be a real problem when the program
24032 runs.  It is intended to identify functions that most probably cause
24033 a stack overflow.  It is useful to be used in an environment with limited stack
24034 size e.g. the linux kernel.
24035 .IP "\fB\-mwarn\-dynamicstack\fR" 4
24036 .IX Item "-mwarn-dynamicstack"
24037 Emit a warning if the function calls \f(CW\*(C`alloca\*(C'\fR or uses dynamically-sized
24038 arrays.  This is generally a bad idea with a limited stack size.
24039 .IP "\fB\-mstack\-guard=\fR\fIstack-guard\fR" 4
24040 .IX Item "-mstack-guard=stack-guard"
24041 .PD 0
24042 .IP "\fB\-mstack\-size=\fR\fIstack-size\fR" 4
24043 .IX Item "-mstack-size=stack-size"
24044 .PD
24045 If these options are provided the S/390 back end emits additional instructions in
24046 the function prologue that trigger a trap if the stack size is \fIstack-guard\fR
24047 bytes above the \fIstack-size\fR (remember that the stack on S/390 grows downward).
24048 If the \fIstack-guard\fR option is omitted the smallest power of 2 larger than
24049 the frame size of the compiled function is chosen.
24050 These options are intended to be used to help debugging stack overflow problems.
24051 The additionally emitted code causes only little overhead and hence can also be
24052 used in production-like systems without greater performance degradation.  The given
24053 values have to be exact powers of 2 and \fIstack-size\fR has to be greater than
24054 \&\fIstack-guard\fR without exceeding 64k.
24055 In order to be efficient the extra code makes the assumption that the stack starts
24056 at an address aligned to the value given by \fIstack-size\fR.
24057 The \fIstack-guard\fR option can only be used in conjunction with \fIstack-size\fR.
24058 .IP "\fB\-mhotpatch=\fR\fIpre-halfwords\fR\fB,\fR\fIpost-halfwords\fR" 4
24059 .IX Item "-mhotpatch=pre-halfwords,post-halfwords"
24060 If the hotpatch option is enabled, a \*(L"hot-patching\*(R" function
24061 prologue is generated for all functions in the compilation unit.
24062 The funtion label is prepended with the given number of two-byte
24063 \&\s-1NOP\s0 instructions (\fIpre-halfwords\fR, maximum 1000000).  After
24064 the label, 2 * \fIpost-halfwords\fR bytes are appended, using the
24065 largest \s-1NOP\s0 like instructions the architecture allows (maximum
24066 1000000).
24067 .Sp
24068 If both arguments are zero, hotpatching is disabled.
24069 .Sp
24070 This option can be overridden for individual functions with the
24071 \&\f(CW\*(C`hotpatch\*(C'\fR attribute.
24072 .PP
24073 \fIScore Options\fR
24074 .IX Subsection "Score Options"
24075 .PP
24076 These options are defined for Score implementations:
24077 .IP "\fB\-meb\fR" 4
24078 .IX Item "-meb"
24079 Compile code for big-endian mode.  This is the default.
24080 .IP "\fB\-mel\fR" 4
24081 .IX Item "-mel"
24082 Compile code for little-endian mode.
24083 .IP "\fB\-mnhwloop\fR" 4
24084 .IX Item "-mnhwloop"
24085 Disable generation of \f(CW\*(C`bcnz\*(C'\fR instructions.
24086 .IP "\fB\-muls\fR" 4
24087 .IX Item "-muls"
24088 Enable generation of unaligned load and store instructions.
24089 .IP "\fB\-mmac\fR" 4
24090 .IX Item "-mmac"
24091 Enable the use of multiply-accumulate instructions. Disabled by default.
24092 .IP "\fB\-mscore5\fR" 4
24093 .IX Item "-mscore5"
24094 Specify the \s-1SCORE5\s0 as the target architecture.
24095 .IP "\fB\-mscore5u\fR" 4
24096 .IX Item "-mscore5u"
24097 Specify the \s-1SCORE5U\s0 of the target architecture.
24098 .IP "\fB\-mscore7\fR" 4
24099 .IX Item "-mscore7"
24100 Specify the \s-1SCORE7\s0 as the target architecture. This is the default.
24101 .IP "\fB\-mscore7d\fR" 4
24102 .IX Item "-mscore7d"
24103 Specify the \s-1SCORE7D\s0 as the target architecture.
24104 .PP
24105 \fI\s-1SH\s0 Options\fR
24106 .IX Subsection "SH Options"
24107 .PP
24108 These \fB\-m\fR options are defined for the \s-1SH\s0 implementations:
24109 .IP "\fB\-m1\fR" 4
24110 .IX Item "-m1"
24111 Generate code for the \s-1SH1.\s0
24112 .IP "\fB\-m2\fR" 4
24113 .IX Item "-m2"
24114 Generate code for the \s-1SH2.\s0
24115 .IP "\fB\-m2e\fR" 4
24116 .IX Item "-m2e"
24117 Generate code for the SH2e.
24118 .IP "\fB\-m2a\-nofpu\fR" 4
24119 .IX Item "-m2a-nofpu"
24120 Generate code for the SH2a without \s-1FPU,\s0 or for a SH2a\-FPU in such a way
24121 that the floating-point unit is not used.
24122 .IP "\fB\-m2a\-single\-only\fR" 4
24123 .IX Item "-m2a-single-only"
24124 Generate code for the SH2a\-FPU, in such a way that no double-precision
24125 floating-point operations are used.
24126 .IP "\fB\-m2a\-single\fR" 4
24127 .IX Item "-m2a-single"
24128 Generate code for the SH2a\-FPU assuming the floating-point unit is in
24129 single-precision mode by default.
24130 .IP "\fB\-m2a\fR" 4
24131 .IX Item "-m2a"
24132 Generate code for the SH2a\-FPU assuming the floating-point unit is in
24133 double-precision mode by default.
24134 .IP "\fB\-m3\fR" 4
24135 .IX Item "-m3"
24136 Generate code for the \s-1SH3.\s0
24137 .IP "\fB\-m3e\fR" 4
24138 .IX Item "-m3e"
24139 Generate code for the SH3e.
24140 .IP "\fB\-m4\-nofpu\fR" 4
24141 .IX Item "-m4-nofpu"
24142 Generate code for the \s-1SH4\s0 without a floating-point unit.
24143 .IP "\fB\-m4\-single\-only\fR" 4
24144 .IX Item "-m4-single-only"
24145 Generate code for the \s-1SH4\s0 with a floating-point unit that only
24146 supports single-precision arithmetic.
24147 .IP "\fB\-m4\-single\fR" 4
24148 .IX Item "-m4-single"
24149 Generate code for the \s-1SH4\s0 assuming the floating-point unit is in
24150 single-precision mode by default.
24151 .IP "\fB\-m4\fR" 4
24152 .IX Item "-m4"
24153 Generate code for the \s-1SH4.\s0
24154 .IP "\fB\-m4\-100\fR" 4
24155 .IX Item "-m4-100"
24156 Generate code for \s-1SH4\-100.\s0
24157 .IP "\fB\-m4\-100\-nofpu\fR" 4
24158 .IX Item "-m4-100-nofpu"
24159 Generate code for \s-1SH4\-100\s0 in such a way that the
24160 floating-point unit is not used.
24161 .IP "\fB\-m4\-100\-single\fR" 4
24162 .IX Item "-m4-100-single"
24163 Generate code for \s-1SH4\-100\s0 assuming the floating-point unit is in
24164 single-precision mode by default.
24165 .IP "\fB\-m4\-100\-single\-only\fR" 4
24166 .IX Item "-m4-100-single-only"
24167 Generate code for \s-1SH4\-100\s0 in such a way that no double-precision
24168 floating-point operations are used.
24169 .IP "\fB\-m4\-200\fR" 4
24170 .IX Item "-m4-200"
24171 Generate code for \s-1SH4\-200.\s0
24172 .IP "\fB\-m4\-200\-nofpu\fR" 4
24173 .IX Item "-m4-200-nofpu"
24174 Generate code for \s-1SH4\-200\s0 without in such a way that the
24175 floating-point unit is not used.
24176 .IP "\fB\-m4\-200\-single\fR" 4
24177 .IX Item "-m4-200-single"
24178 Generate code for \s-1SH4\-200\s0 assuming the floating-point unit is in
24179 single-precision mode by default.
24180 .IP "\fB\-m4\-200\-single\-only\fR" 4
24181 .IX Item "-m4-200-single-only"
24182 Generate code for \s-1SH4\-200\s0 in such a way that no double-precision
24183 floating-point operations are used.
24184 .IP "\fB\-m4\-300\fR" 4
24185 .IX Item "-m4-300"
24186 Generate code for \s-1SH4\-300.\s0
24187 .IP "\fB\-m4\-300\-nofpu\fR" 4
24188 .IX Item "-m4-300-nofpu"
24189 Generate code for \s-1SH4\-300\s0 without in such a way that the
24190 floating-point unit is not used.
24191 .IP "\fB\-m4\-300\-single\fR" 4
24192 .IX Item "-m4-300-single"
24193 Generate code for \s-1SH4\-300\s0 in such a way that no double-precision
24194 floating-point operations are used.
24195 .IP "\fB\-m4\-300\-single\-only\fR" 4
24196 .IX Item "-m4-300-single-only"
24197 Generate code for \s-1SH4\-300\s0 in such a way that no double-precision
24198 floating-point operations are used.
24199 .IP "\fB\-m4\-340\fR" 4
24200 .IX Item "-m4-340"
24201 Generate code for \s-1SH4\-340\s0 (no \s-1MMU,\s0 no \s-1FPU\s0).
24202 .IP "\fB\-m4\-500\fR" 4
24203 .IX Item "-m4-500"
24204 Generate code for \s-1SH4\-500\s0 (no \s-1FPU\s0).  Passes \fB\-isa=sh4\-nofpu\fR to the
24205 assembler.
24206 .IP "\fB\-m4a\-nofpu\fR" 4
24207 .IX Item "-m4a-nofpu"
24208 Generate code for the SH4al\-dsp, or for a SH4a in such a way that the
24209 floating-point unit is not used.
24210 .IP "\fB\-m4a\-single\-only\fR" 4
24211 .IX Item "-m4a-single-only"
24212 Generate code for the SH4a, in such a way that no double-precision
24213 floating-point operations are used.
24214 .IP "\fB\-m4a\-single\fR" 4
24215 .IX Item "-m4a-single"
24216 Generate code for the SH4a assuming the floating-point unit is in
24217 single-precision mode by default.
24218 .IP "\fB\-m4a\fR" 4
24219 .IX Item "-m4a"
24220 Generate code for the SH4a.
24221 .IP "\fB\-m4al\fR" 4
24222 .IX Item "-m4al"
24223 Same as \fB\-m4a\-nofpu\fR, except that it implicitly passes
24224 \&\fB\-dsp\fR to the assembler.  \s-1GCC\s0 doesn't generate any \s-1DSP\s0
24225 instructions at the moment.
24226 .IP "\fB\-mb\fR" 4
24227 .IX Item "-mb"
24228 Compile code for the processor in big-endian mode.
24229 .IP "\fB\-ml\fR" 4
24230 .IX Item "-ml"
24231 Compile code for the processor in little-endian mode.
24232 .IP "\fB\-mdalign\fR" 4
24233 .IX Item "-mdalign"
24234 Align doubles at 64\-bit boundaries.  Note that this changes the calling
24235 conventions, and thus some functions from the standard C library do
24236 not work unless you recompile it first with \fB\-mdalign\fR.
24237 .IP "\fB\-mrelax\fR" 4
24238 .IX Item "-mrelax"
24239 Shorten some address references at link time, when possible; uses the
24240 linker option \fB\-relax\fR.
24241 .IP "\fB\-mbigtable\fR" 4
24242 .IX Item "-mbigtable"
24243 Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables.  The default is to use
24244 16\-bit offsets.
24245 .IP "\fB\-mbitops\fR" 4
24246 .IX Item "-mbitops"
24247 Enable the use of bit manipulation instructions on \s-1SH2A.\s0
24248 .IP "\fB\-mfmovd\fR" 4
24249 .IX Item "-mfmovd"
24250 Enable the use of the instruction \f(CW\*(C`fmovd\*(C'\fR.  Check \fB\-mdalign\fR for
24251 alignment constraints.
24252 .IP "\fB\-mrenesas\fR" 4
24253 .IX Item "-mrenesas"
24254 Comply with the calling conventions defined by Renesas.
24255 .IP "\fB\-mno\-renesas\fR" 4
24256 .IX Item "-mno-renesas"
24257 Comply with the calling conventions defined for \s-1GCC\s0 before the Renesas
24258 conventions were available.  This option is the default for all
24259 targets of the \s-1SH\s0 toolchain.
24260 .IP "\fB\-mnomacsave\fR" 4
24261 .IX Item "-mnomacsave"
24262 Mark the \f(CW\*(C`MAC\*(C'\fR register as call-clobbered, even if
24263 \&\fB\-mrenesas\fR is given.
24264 .IP "\fB\-mieee\fR" 4
24265 .IX Item "-mieee"
24266 .PD 0
24267 .IP "\fB\-mno\-ieee\fR" 4
24268 .IX Item "-mno-ieee"
24269 .PD
24270 Control the \s-1IEEE\s0 compliance of floating-point comparisons, which affects the
24271 handling of cases where the result of a comparison is unordered.  By default
24272 \&\fB\-mieee\fR is implicitly enabled.  If \fB\-ffinite\-math\-only\fR is
24273 enabled \fB\-mno\-ieee\fR is implicitly set, which results in faster
24274 floating-point greater-equal and less-equal comparisons.  The implicit settings
24275 can be overridden by specifying either \fB\-mieee\fR or \fB\-mno\-ieee\fR.
24276 .IP "\fB\-minline\-ic_invalidate\fR" 4
24277 .IX Item "-minline-ic_invalidate"
24278 Inline code to invalidate instruction cache entries after setting up
24279 nested function trampolines.
24280 This option has no effect if \fB\-musermode\fR is in effect and the selected
24281 code generation option (e.g. \fB\-m4\fR) does not allow the use of the \f(CW\*(C`icbi\*(C'\fR
24282 instruction.
24283 If the selected code generation option does not allow the use of the \f(CW\*(C`icbi\*(C'\fR
24284 instruction, and \fB\-musermode\fR is not in effect, the inlined code
24285 manipulates the instruction cache address array directly with an associative
24286 write.  This not only requires privileged mode at run time, but it also
24287 fails if the cache line had been mapped via the \s-1TLB\s0 and has become unmapped.
24288 .IP "\fB\-misize\fR" 4
24289 .IX Item "-misize"
24290 Dump instruction size and location in the assembly code.
24291 .IP "\fB\-mpadstruct\fR" 4
24292 .IX Item "-mpadstruct"
24293 This option is deprecated.  It pads structures to multiple of 4 bytes,
24294 which is incompatible with the \s-1SH ABI.\s0
24295 .IP "\fB\-matomic\-model=\fR\fImodel\fR" 4
24296 .IX Item "-matomic-model=model"
24297 Sets the model of atomic operations and additional parameters as a comma
24298 separated list.  For details on the atomic built-in functions see
24299 \&\fB_\|_atomic Builtins\fR.  The following models and parameters are supported:
24300 .RS 4
24301 .IP "\fBnone\fR" 4
24302 .IX Item "none"
24303 Disable compiler generated atomic sequences and emit library calls for atomic
24304 operations.  This is the default if the target is not \f(CW\*(C`sh*\-*\-linux*\*(C'\fR.
24305 .IP "\fBsoft-gusa\fR" 4
24306 .IX Item "soft-gusa"
24307 Generate GNU/Linux compatible gUSA software atomic sequences for the atomic
24308 built-in functions.  The generated atomic sequences require additional support
24309 from the interrupt/exception handling code of the system and are only suitable
24310 for SH3* and SH4* single-core systems.  This option is enabled by default when
24311 the target is \f(CW\*(C`sh*\-*\-linux*\*(C'\fR and SH3* or SH4*.  When the target is \s-1SH4A,\s0
24312 this option also partially utilizes the hardware atomic instructions
24313 \&\f(CW\*(C`movli.l\*(C'\fR and \f(CW\*(C`movco.l\*(C'\fR to create more efficient code, unless
24314 \&\fBstrict\fR is specified.
24315 .IP "\fBsoft-tcb\fR" 4
24316 .IX Item "soft-tcb"
24317 Generate software atomic sequences that use a variable in the thread control
24318 block.  This is a variation of the gUSA sequences which can also be used on
24319 SH1* and SH2* targets.  The generated atomic sequences require additional
24320 support from the interrupt/exception handling code of the system and are only
24321 suitable for single-core systems.  When using this model, the \fBgbr\-offset=\fR
24322 parameter has to be specified as well.
24323 .IP "\fBsoft-imask\fR" 4
24324 .IX Item "soft-imask"
24325 Generate software atomic sequences that temporarily disable interrupts by
24326 setting \f(CW\*(C`SR.IMASK = 1111\*(C'\fR.  This model works only when the program runs
24327 in privileged mode and is only suitable for single-core systems.  Additional
24328 support from the interrupt/exception handling code of the system is not
24329 required.  This model is enabled by default when the target is
24330 \&\f(CW\*(C`sh*\-*\-linux*\*(C'\fR and SH1* or SH2*.
24331 .IP "\fBhard-llcs\fR" 4
24332 .IX Item "hard-llcs"
24333 Generate hardware atomic sequences using the \f(CW\*(C`movli.l\*(C'\fR and \f(CW\*(C`movco.l\*(C'\fR
24334 instructions only.  This is only available on \s-1SH4A\s0 and is suitable for
24335 multi-core systems.  Since the hardware instructions support only 32 bit atomic
24336 variables access to 8 or 16 bit variables is emulated with 32 bit accesses.
24337 Code compiled with this option is also compatible with other software
24338 atomic model interrupt/exception handling systems if executed on an \s-1SH4A\s0
24339 system.  Additional support from the interrupt/exception handling code of the
24340 system is not required for this model.
24341 .IP "\fBgbr\-offset=\fR" 4
24342 .IX Item "gbr-offset="
24343 This parameter specifies the offset in bytes of the variable in the thread
24344 control block structure that should be used by the generated atomic sequences
24345 when the \fBsoft-tcb\fR model has been selected.  For other models this
24346 parameter is ignored.  The specified value must be an integer multiple of four
24347 and in the range 0\-1020.
24348 .IP "\fBstrict\fR" 4
24349 .IX Item "strict"
24350 This parameter prevents mixed usage of multiple atomic models, even if they
24351 are compatible, and makes the compiler generate atomic sequences of the
24352 specified model only.
24353 .RE
24354 .RS 4
24355 .RE
24356 .IP "\fB\-mtas\fR" 4
24357 .IX Item "-mtas"
24358 Generate the \f(CW\*(C`tas.b\*(C'\fR opcode for \f(CW\*(C`_\|_atomic_test_and_set\*(C'\fR.
24359 Notice that depending on the particular hardware and software configuration
24360 this can degrade overall performance due to the operand cache line flushes
24361 that are implied by the \f(CW\*(C`tas.b\*(C'\fR instruction.  On multi-core \s-1SH4A\s0
24362 processors the \f(CW\*(C`tas.b\*(C'\fR instruction must be used with caution since it
24363 can result in data corruption for certain cache configurations.
24364 .IP "\fB\-mprefergot\fR" 4
24365 .IX Item "-mprefergot"
24366 When generating position-independent code, emit function calls using
24367 the Global Offset Table instead of the Procedure Linkage Table.
24368 .IP "\fB\-musermode\fR" 4
24369 .IX Item "-musermode"
24370 .PD 0
24371 .IP "\fB\-mno\-usermode\fR" 4
24372 .IX Item "-mno-usermode"
24373 .PD
24374 Don't allow (allow) the compiler generating privileged mode code.  Specifying
24375 \&\fB\-musermode\fR also implies \fB\-mno\-inline\-ic_invalidate\fR if the
24376 inlined code would not work in user mode.  \fB\-musermode\fR is the default
24377 when the target is \f(CW\*(C`sh*\-*\-linux*\*(C'\fR.  If the target is SH1* or SH2*
24378 \&\fB\-musermode\fR has no effect, since there is no user mode.
24379 .IP "\fB\-multcost=\fR\fInumber\fR" 4
24380 .IX Item "-multcost=number"
24381 Set the cost to assume for a multiply insn.
24382 .IP "\fB\-mdiv=\fR\fIstrategy\fR" 4
24383 .IX Item "-mdiv=strategy"
24384 Set the division strategy to be used for integer division operations.
24385 \&\fIstrategy\fR can be one of:
24386 .RS 4
24387 .IP "\fBcall\-div1\fR" 4
24388 .IX Item "call-div1"
24389 Calls a library function that uses the single-step division instruction
24390 \&\f(CW\*(C`div1\*(C'\fR to perform the operation.  Division by zero calculates an
24391 unspecified result and does not trap.  This is the default except for \s-1SH4,
24392 SH2A\s0 and SHcompact.
24393 .IP "\fBcall-fp\fR" 4
24394 .IX Item "call-fp"
24395 Calls a library function that performs the operation in double precision
24396 floating point.  Division by zero causes a floating-point exception.  This is
24397 the default for SHcompact with \s-1FPU.\s0  Specifying this for targets that do not
24398 have a double precision \s-1FPU\s0 defaults to \f(CW\*(C`call\-div1\*(C'\fR.
24399 .IP "\fBcall-table\fR" 4
24400 .IX Item "call-table"
24401 Calls a library function that uses a lookup table for small divisors and
24402 the \f(CW\*(C`div1\*(C'\fR instruction with case distinction for larger divisors.  Division
24403 by zero calculates an unspecified result and does not trap.  This is the default
24404 for \s-1SH4.\s0  Specifying this for targets that do not have dynamic shift
24405 instructions defaults to \f(CW\*(C`call\-div1\*(C'\fR.
24406 .RE
24407 .RS 4
24408 .Sp
24409 When a division strategy has not been specified the default strategy is
24410 selected based on the current target.  For \s-1SH2A\s0 the default strategy is to
24411 use the \f(CW\*(C`divs\*(C'\fR and \f(CW\*(C`divu\*(C'\fR instructions instead of library function
24412 calls.
24413 .RE
24414 .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
24415 .IX Item "-maccumulate-outgoing-args"
24416 Reserve space once for outgoing arguments in the function prologue rather
24417 than around each call.  Generally beneficial for performance and size.  Also
24418 needed for unwinding to avoid changing the stack frame around conditional code.
24419 .IP "\fB\-mdivsi3_libfunc=\fR\fIname\fR" 4
24420 .IX Item "-mdivsi3_libfunc=name"
24421 Set the name of the library function used for 32\-bit signed division to
24422 \&\fIname\fR.
24423 This only affects the name used in the \fBcall\fR division strategies, and
24424 the compiler still expects the same sets of input/output/clobbered registers as
24425 if this option were not present.
24426 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
24427 .IX Item "-mfixed-range=register-range"
24428 Generate code treating the given register range as fixed registers.
24429 A fixed register is one that the register allocator can not use.  This is
24430 useful when compiling kernel code.  A register range is specified as
24431 two registers separated by a dash.  Multiple register ranges can be
24432 specified separated by a comma.
24433 .IP "\fB\-mbranch\-cost=\fR\fInum\fR" 4
24434 .IX Item "-mbranch-cost=num"
24435 Assume \fInum\fR to be the cost for a branch instruction.  Higher numbers
24436 make the compiler try to generate more branch-free code if possible.  
24437 If not specified the value is selected depending on the processor type that
24438 is being compiled for.
24439 .IP "\fB\-mzdcbranch\fR" 4
24440 .IX Item "-mzdcbranch"
24441 .PD 0
24442 .IP "\fB\-mno\-zdcbranch\fR" 4
24443 .IX Item "-mno-zdcbranch"
24444 .PD
24445 Assume (do not assume) that zero displacement conditional branch instructions
24446 \&\f(CW\*(C`bt\*(C'\fR and \f(CW\*(C`bf\*(C'\fR are fast.  If \fB\-mzdcbranch\fR is specified, the
24447 compiler prefers zero displacement branch code sequences.  This is
24448 enabled by default when generating code for \s-1SH4\s0 and \s-1SH4A.\s0  It can be explicitly
24449 disabled by specifying \fB\-mno\-zdcbranch\fR.
24450 .IP "\fB\-mcbranch\-force\-delay\-slot\fR" 4
24451 .IX Item "-mcbranch-force-delay-slot"
24452 Force the usage of delay slots for conditional branches, which stuffs the delay
24453 slot with a \f(CW\*(C`nop\*(C'\fR if a suitable instruction cannot be found.  By default
24454 this option is disabled.  It can be enabled to work around hardware bugs as
24455 found in the original \s-1SH7055.\s0
24456 .IP "\fB\-mfused\-madd\fR" 4
24457 .IX Item "-mfused-madd"
24458 .PD 0
24459 .IP "\fB\-mno\-fused\-madd\fR" 4
24460 .IX Item "-mno-fused-madd"
24461 .PD
24462 Generate code that uses (does not use) the floating-point multiply and
24463 accumulate instructions.  These instructions are generated by default
24464 if hardware floating point is used.  The machine-dependent
24465 \&\fB\-mfused\-madd\fR option is now mapped to the machine-independent
24466 \&\fB\-ffp\-contract=fast\fR option, and \fB\-mno\-fused\-madd\fR is
24467 mapped to \fB\-ffp\-contract=off\fR.
24468 .IP "\fB\-mfsca\fR" 4
24469 .IX Item "-mfsca"
24470 .PD 0
24471 .IP "\fB\-mno\-fsca\fR" 4
24472 .IX Item "-mno-fsca"
24473 .PD
24474 Allow or disallow the compiler to emit the \f(CW\*(C`fsca\*(C'\fR instruction for sine
24475 and cosine approximations.  The option \fB\-mfsca\fR must be used in
24476 combination with \fB\-funsafe\-math\-optimizations\fR.  It is enabled by default
24477 when generating code for \s-1SH4A.\s0  Using \fB\-mno\-fsca\fR disables sine and cosine
24478 approximations even if \fB\-funsafe\-math\-optimizations\fR is in effect.
24479 .IP "\fB\-mfsrra\fR" 4
24480 .IX Item "-mfsrra"
24481 .PD 0
24482 .IP "\fB\-mno\-fsrra\fR" 4
24483 .IX Item "-mno-fsrra"
24484 .PD
24485 Allow or disallow the compiler to emit the \f(CW\*(C`fsrra\*(C'\fR instruction for
24486 reciprocal square root approximations.  The option \fB\-mfsrra\fR must be used
24487 in combination with \fB\-funsafe\-math\-optimizations\fR and
24488 \&\fB\-ffinite\-math\-only\fR.  It is enabled by default when generating code for
24489 \&\s-1SH4A.\s0  Using \fB\-mno\-fsrra\fR disables reciprocal square root approximations
24490 even if \fB\-funsafe\-math\-optimizations\fR and \fB\-ffinite\-math\-only\fR are
24491 in effect.
24492 .IP "\fB\-mpretend\-cmove\fR" 4
24493 .IX Item "-mpretend-cmove"
24494 Prefer zero-displacement conditional branches for conditional move instruction
24495 patterns.  This can result in faster code on the \s-1SH4\s0 processor.
24496 .IP "\fB\-mfdpic\fR" 4
24497 .IX Item "-mfdpic"
24498 Generate code using the \s-1FDPIC ABI.\s0
24499 .PP
24500 \fISolaris 2 Options\fR
24501 .IX Subsection "Solaris 2 Options"
24502 .PP
24503 These \fB\-m\fR options are supported on Solaris 2:
24504 .IP "\fB\-mclear\-hwcap\fR" 4
24505 .IX Item "-mclear-hwcap"
24506 \&\fB\-mclear\-hwcap\fR tells the compiler to remove the hardware
24507 capabilities generated by the Solaris assembler.  This is only necessary
24508 when object files use \s-1ISA\s0 extensions not supported by the current
24509 machine, but check at runtime whether or not to use them.
24510 .IP "\fB\-mimpure\-text\fR" 4
24511 .IX Item "-mimpure-text"
24512 \&\fB\-mimpure\-text\fR, used in addition to \fB\-shared\fR, tells
24513 the compiler to not pass \fB\-z text\fR to the linker when linking a
24514 shared object.  Using this option, you can link position-dependent
24515 code into a shared object.
24516 .Sp
24517 \&\fB\-mimpure\-text\fR suppresses the \*(L"relocations remain against
24518 allocatable but non-writable sections\*(R" linker error message.
24519 However, the necessary relocations trigger copy-on-write, and the
24520 shared object is not actually shared across processes.  Instead of
24521 using \fB\-mimpure\-text\fR, you should compile all source code with
24522 \&\fB\-fpic\fR or \fB\-fPIC\fR.
24523 .PP
24524 These switches are supported in addition to the above on Solaris 2:
24525 .IP "\fB\-pthreads\fR" 4
24526 .IX Item "-pthreads"
24527 This is a synonym for \fB\-pthread\fR.
24528 .PP
24529 \fI\s-1SPARC\s0 Options\fR
24530 .IX Subsection "SPARC Options"
24531 .PP
24532 These \fB\-m\fR options are supported on the \s-1SPARC:\s0
24533 .IP "\fB\-mno\-app\-regs\fR" 4
24534 .IX Item "-mno-app-regs"
24535 .PD 0
24536 .IP "\fB\-mapp\-regs\fR" 4
24537 .IX Item "-mapp-regs"
24538 .PD
24539 Specify \fB\-mapp\-regs\fR to generate output using the global registers
24540 2 through 4, which the \s-1SPARC SVR4 ABI\s0 reserves for applications.  Like the
24541 global register 1, each global register 2 through 4 is then treated as an
24542 allocable register that is clobbered by function calls.  This is the default.
24543 .Sp
24544 To be fully \s-1SVR4\s0 ABI-compliant at the cost of some performance loss,
24545 specify \fB\-mno\-app\-regs\fR.  You should compile libraries and system
24546 software with this option.
24547 .IP "\fB\-mflat\fR" 4
24548 .IX Item "-mflat"
24549 .PD 0
24550 .IP "\fB\-mno\-flat\fR" 4
24551 .IX Item "-mno-flat"
24552 .PD
24553 With \fB\-mflat\fR, the compiler does not generate save/restore instructions
24554 and uses a \*(L"flat\*(R" or single register window model.  This model is compatible
24555 with the regular register window model.  The local registers and the input
24556 registers (0\-\-5) are still treated as \*(L"call-saved\*(R" registers and are
24557 saved on the stack as needed.
24558 .Sp
24559 With \fB\-mno\-flat\fR (the default), the compiler generates save/restore
24560 instructions (except for leaf functions).  This is the normal operating mode.
24561 .IP "\fB\-mfpu\fR" 4
24562 .IX Item "-mfpu"
24563 .PD 0
24564 .IP "\fB\-mhard\-float\fR" 4
24565 .IX Item "-mhard-float"
24566 .PD
24567 Generate output containing floating-point instructions.  This is the
24568 default.
24569 .IP "\fB\-mno\-fpu\fR" 4
24570 .IX Item "-mno-fpu"
24571 .PD 0
24572 .IP "\fB\-msoft\-float\fR" 4
24573 .IX Item "-msoft-float"
24574 .PD
24575 Generate output containing library calls for floating point.
24576 \&\fBWarning:\fR the requisite libraries are not available for all \s-1SPARC\s0
24577 targets.  Normally the facilities of the machine's usual C compiler are
24578 used, but this cannot be done directly in cross-compilation.  You must make
24579 your own arrangements to provide suitable library functions for
24580 cross-compilation.  The embedded targets \fBsparc\-*\-aout\fR and
24581 \&\fBsparclite\-*\-*\fR do provide software floating-point support.
24582 .Sp
24583 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
24584 therefore, it is only useful if you compile \fIall\fR of a program with
24585 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
24586 library that comes with \s-1GCC,\s0 with \fB\-msoft\-float\fR in order for
24587 this to work.
24588 .IP "\fB\-mhard\-quad\-float\fR" 4
24589 .IX Item "-mhard-quad-float"
24590 Generate output containing quad-word (long double) floating-point
24591 instructions.
24592 .IP "\fB\-msoft\-quad\-float\fR" 4
24593 .IX Item "-msoft-quad-float"
24594 Generate output containing library calls for quad-word (long double)
24595 floating-point instructions.  The functions called are those specified
24596 in the \s-1SPARC ABI.\s0  This is the default.
24597 .Sp
24598 As of this writing, there are no \s-1SPARC\s0 implementations that have hardware
24599 support for the quad-word floating-point instructions.  They all invoke
24600 a trap handler for one of these instructions, and then the trap handler
24601 emulates the effect of the instruction.  Because of the trap handler overhead,
24602 this is much slower than calling the \s-1ABI\s0 library routines.  Thus the
24603 \&\fB\-msoft\-quad\-float\fR option is the default.
24604 .IP "\fB\-mno\-unaligned\-doubles\fR" 4
24605 .IX Item "-mno-unaligned-doubles"
24606 .PD 0
24607 .IP "\fB\-munaligned\-doubles\fR" 4
24608 .IX Item "-munaligned-doubles"
24609 .PD
24610 Assume that doubles have 8\-byte alignment.  This is the default.
24611 .Sp
24612 With \fB\-munaligned\-doubles\fR, \s-1GCC\s0 assumes that doubles have 8\-byte
24613 alignment only if they are contained in another type, or if they have an
24614 absolute address.  Otherwise, it assumes they have 4\-byte alignment.
24615 Specifying this option avoids some rare compatibility problems with code
24616 generated by other compilers.  It is not the default because it results
24617 in a performance loss, especially for floating-point code.
24618 .IP "\fB\-muser\-mode\fR" 4
24619 .IX Item "-muser-mode"
24620 .PD 0
24621 .IP "\fB\-mno\-user\-mode\fR" 4
24622 .IX Item "-mno-user-mode"
24623 .PD
24624 Do not generate code that can only run in supervisor mode.  This is relevant
24625 only for the \f(CW\*(C`casa\*(C'\fR instruction emitted for the \s-1LEON3\s0 processor.  This
24626 is the default.
24627 .IP "\fB\-mfaster\-structs\fR" 4
24628 .IX Item "-mfaster-structs"
24629 .PD 0
24630 .IP "\fB\-mno\-faster\-structs\fR" 4
24631 .IX Item "-mno-faster-structs"
24632 .PD
24633 With \fB\-mfaster\-structs\fR, the compiler assumes that structures
24634 should have 8\-byte alignment.  This enables the use of pairs of
24635 \&\f(CW\*(C`ldd\*(C'\fR and \f(CW\*(C`std\*(C'\fR instructions for copies in structure
24636 assignment, in place of twice as many \f(CW\*(C`ld\*(C'\fR and \f(CW\*(C`st\*(C'\fR pairs.
24637 However, the use of this changed alignment directly violates the \s-1SPARC
24638 ABI.\s0  Thus, it's intended only for use on targets where the developer
24639 acknowledges that their resulting code is not directly in line with
24640 the rules of the \s-1ABI.\s0
24641 .IP "\fB\-mstd\-struct\-return\fR" 4
24642 .IX Item "-mstd-struct-return"
24643 .PD 0
24644 .IP "\fB\-mno\-std\-struct\-return\fR" 4
24645 .IX Item "-mno-std-struct-return"
24646 .PD
24647 With \fB\-mstd\-struct\-return\fR, the compiler generates checking code
24648 in functions returning structures or unions to detect size mismatches
24649 between the two sides of function calls, as per the 32\-bit \s-1ABI.\s0
24650 .Sp
24651 The default is \fB\-mno\-std\-struct\-return\fR.  This option has no effect
24652 in 64\-bit mode.
24653 .IP "\fB\-mlra\fR" 4
24654 .IX Item "-mlra"
24655 .PD 0
24656 .IP "\fB\-mno\-lra\fR" 4
24657 .IX Item "-mno-lra"
24658 .PD
24659 Enable Local Register Allocation.  This is the default for \s-1SPARC\s0 since \s-1GCC 7\s0
24660 so \fB\-mno\-lra\fR needs to be passed to get old Reload.
24661 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
24662 .IX Item "-mcpu=cpu_type"
24663 Set the instruction set, register set, and instruction scheduling parameters
24664 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
24665 \&\fBv7\fR, \fBcypress\fR, \fBv8\fR, \fBsupersparc\fR, \fBhypersparc\fR,
24666 \&\fBleon\fR, \fBleon3\fR, \fBleon3v7\fR, \fBsparclite\fR, \fBf930\fR,
24667 \&\fBf934\fR, \fBsparclite86x\fR, \fBsparclet\fR, \fBtsc701\fR, \fBv9\fR,
24668 \&\fBultrasparc\fR, \fBultrasparc3\fR, \fBniagara\fR, \fBniagara2\fR,
24669 \&\fBniagara3\fR, \fBniagara4\fR, \fBniagara7\fR and \fBm8\fR.
24670 .Sp
24671 Native Solaris and GNU/Linux toolchains also support the value \fBnative\fR,
24672 which selects the best architecture option for the host processor.
24673 \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize
24674 the processor.
24675 .Sp
24676 Default instruction scheduling parameters are used for values that select
24677 an architecture and not an implementation.  These are \fBv7\fR, \fBv8\fR,
24678 \&\fBsparclite\fR, \fBsparclet\fR, \fBv9\fR.
24679 .Sp
24680 Here is a list of each supported architecture and their supported
24681 implementations.
24682 .RS 4
24683 .IP "v7" 4
24684 .IX Item "v7"
24685 cypress, leon3v7
24686 .IP "v8" 4
24687 .IX Item "v8"
24688 supersparc, hypersparc, leon, leon3
24689 .IP "sparclite" 4
24690 .IX Item "sparclite"
24691 f930, f934, sparclite86x
24692 .IP "sparclet" 4
24693 .IX Item "sparclet"
24694 tsc701
24695 .IP "v9" 4
24696 .IX Item "v9"
24697 ultrasparc, ultrasparc3, niagara, niagara2, niagara3, niagara4,
24698 niagara7, m8
24699 .RE
24700 .RS 4
24701 .Sp
24702 By default (unless configured otherwise), \s-1GCC\s0 generates code for the V7
24703 variant of the \s-1SPARC\s0 architecture.  With \fB\-mcpu=cypress\fR, the compiler
24704 additionally optimizes it for the Cypress \s-1CY7C602\s0 chip, as used in the
24705 SPARCStation/SPARCServer 3xx series.  This is also appropriate for the older
24706 SPARCStation 1, 2, \s-1IPX\s0 etc.
24707 .Sp
24708 With \fB\-mcpu=v8\fR, \s-1GCC\s0 generates code for the V8 variant of the \s-1SPARC\s0
24709 architecture.  The only difference from V7 code is that the compiler emits
24710 the integer multiply and integer divide instructions which exist in \s-1SPARC\-V8\s0
24711 but not in \s-1SPARC\-V7.\s0  With \fB\-mcpu=supersparc\fR, the compiler additionally
24712 optimizes it for the SuperSPARC chip, as used in the SPARCStation 10, 1000 and
24713 2000 series.
24714 .Sp
24715 With \fB\-mcpu=sparclite\fR, \s-1GCC\s0 generates code for the SPARClite variant of
24716 the \s-1SPARC\s0 architecture.  This adds the integer multiply, integer divide step
24717 and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClite but not in \s-1SPARC\-V7.\s0
24718 With \fB\-mcpu=f930\fR, the compiler additionally optimizes it for the
24719 Fujitsu \s-1MB86930\s0 chip, which is the original SPARClite, with no \s-1FPU.\s0  With
24720 \&\fB\-mcpu=f934\fR, the compiler additionally optimizes it for the Fujitsu
24721 \&\s-1MB86934\s0 chip, which is the more recent SPARClite with \s-1FPU.\s0
24722 .Sp
24723 With \fB\-mcpu=sparclet\fR, \s-1GCC\s0 generates code for the SPARClet variant of
24724 the \s-1SPARC\s0 architecture.  This adds the integer multiply, multiply/accumulate,
24725 integer divide step and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClet
24726 but not in \s-1SPARC\-V7.\s0  With \fB\-mcpu=tsc701\fR, the compiler additionally
24727 optimizes it for the \s-1TEMIC\s0 SPARClet chip.
24728 .Sp
24729 With \fB\-mcpu=v9\fR, \s-1GCC\s0 generates code for the V9 variant of the \s-1SPARC\s0
24730 architecture.  This adds 64\-bit integer and floating-point move instructions,
24731 3 additional floating-point condition code registers and conditional move
24732 instructions.  With \fB\-mcpu=ultrasparc\fR, the compiler additionally
24733 optimizes it for the Sun UltraSPARC I/II/IIi chips.  With
24734 \&\fB\-mcpu=ultrasparc3\fR, the compiler additionally optimizes it for the
24735 Sun UltraSPARC III/III+/IIIi/IIIi+/IV/IV+ chips.  With
24736 \&\fB\-mcpu=niagara\fR, the compiler additionally optimizes it for
24737 Sun UltraSPARC T1 chips.  With \fB\-mcpu=niagara2\fR, the compiler
24738 additionally optimizes it for Sun UltraSPARC T2 chips. With
24739 \&\fB\-mcpu=niagara3\fR, the compiler additionally optimizes it for Sun
24740 UltraSPARC T3 chips.  With \fB\-mcpu=niagara4\fR, the compiler
24741 additionally optimizes it for Sun UltraSPARC T4 chips.  With
24742 \&\fB\-mcpu=niagara7\fR, the compiler additionally optimizes it for
24743 Oracle \s-1SPARC M7\s0 chips.  With \fB\-mcpu=m8\fR, the compiler
24744 additionally optimizes it for Oracle M8 chips.
24745 .RE
24746 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
24747 .IX Item "-mtune=cpu_type"
24748 Set the instruction scheduling parameters for machine type
24749 \&\fIcpu_type\fR, but do not set the instruction set or register set that the
24750 option \fB\-mcpu=\fR\fIcpu_type\fR does.
24751 .Sp
24752 The same values for \fB\-mcpu=\fR\fIcpu_type\fR can be used for
24753 \&\fB\-mtune=\fR\fIcpu_type\fR, but the only useful values are those
24754 that select a particular \s-1CPU\s0 implementation.  Those are
24755 \&\fBcypress\fR, \fBsupersparc\fR, \fBhypersparc\fR, \fBleon\fR,
24756 \&\fBleon3\fR, \fBleon3v7\fR, \fBf930\fR, \fBf934\fR,
24757 \&\fBsparclite86x\fR, \fBtsc701\fR, \fBultrasparc\fR,
24758 \&\fBultrasparc3\fR, \fBniagara\fR, \fBniagara2\fR, \fBniagara3\fR,
24759 \&\fBniagara4\fR, \fBniagara7\fR and \fBm8\fR.  With native Solaris
24760 and GNU/Linux toolchains, \fBnative\fR can also be used.
24761 .IP "\fB\-mv8plus\fR" 4
24762 .IX Item "-mv8plus"
24763 .PD 0
24764 .IP "\fB\-mno\-v8plus\fR" 4
24765 .IX Item "-mno-v8plus"
24766 .PD
24767 With \fB\-mv8plus\fR, \s-1GCC\s0 generates code for the \s-1SPARC\-V8+ ABI.\s0  The
24768 difference from the V8 \s-1ABI\s0 is that the global and out registers are
24769 considered 64 bits wide.  This is enabled by default on Solaris in 32\-bit
24770 mode for all \s-1SPARC\-V9\s0 processors.
24771 .IP "\fB\-mvis\fR" 4
24772 .IX Item "-mvis"
24773 .PD 0
24774 .IP "\fB\-mno\-vis\fR" 4
24775 .IX Item "-mno-vis"
24776 .PD
24777 With \fB\-mvis\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
24778 Visual Instruction Set extensions.  The default is \fB\-mno\-vis\fR.
24779 .IP "\fB\-mvis2\fR" 4
24780 .IX Item "-mvis2"
24781 .PD 0
24782 .IP "\fB\-mno\-vis2\fR" 4
24783 .IX Item "-mno-vis2"
24784 .PD
24785 With \fB\-mvis2\fR, \s-1GCC\s0 generates code that takes advantage of
24786 version 2.0 of the UltraSPARC Visual Instruction Set extensions.  The
24787 default is \fB\-mvis2\fR when targeting a cpu that supports such
24788 instructions, such as UltraSPARC-III and later.  Setting \fB\-mvis2\fR
24789 also sets \fB\-mvis\fR.
24790 .IP "\fB\-mvis3\fR" 4
24791 .IX Item "-mvis3"
24792 .PD 0
24793 .IP "\fB\-mno\-vis3\fR" 4
24794 .IX Item "-mno-vis3"
24795 .PD
24796 With \fB\-mvis3\fR, \s-1GCC\s0 generates code that takes advantage of
24797 version 3.0 of the UltraSPARC Visual Instruction Set extensions.  The
24798 default is \fB\-mvis3\fR when targeting a cpu that supports such
24799 instructions, such as niagara\-3 and later.  Setting \fB\-mvis3\fR
24800 also sets \fB\-mvis2\fR and \fB\-mvis\fR.
24801 .IP "\fB\-mvis4\fR" 4
24802 .IX Item "-mvis4"
24803 .PD 0
24804 .IP "\fB\-mno\-vis4\fR" 4
24805 .IX Item "-mno-vis4"
24806 .PD
24807 With \fB\-mvis4\fR, \s-1GCC\s0 generates code that takes advantage of
24808 version 4.0 of the UltraSPARC Visual Instruction Set extensions.  The
24809 default is \fB\-mvis4\fR when targeting a cpu that supports such
24810 instructions, such as niagara\-7 and later.  Setting \fB\-mvis4\fR
24811 also sets \fB\-mvis3\fR, \fB\-mvis2\fR and \fB\-mvis\fR.
24812 .IP "\fB\-mvis4b\fR" 4
24813 .IX Item "-mvis4b"
24814 .PD 0
24815 .IP "\fB\-mno\-vis4b\fR" 4
24816 .IX Item "-mno-vis4b"
24817 .PD
24818 With \fB\-mvis4b\fR, \s-1GCC\s0 generates code that takes advantage of
24819 version 4.0 of the UltraSPARC Visual Instruction Set extensions, plus
24820 the additional \s-1VIS\s0 instructions introduced in the Oracle \s-1SPARC\s0
24821 Architecture 2017.  The default is \fB\-mvis4b\fR when targeting a
24822 cpu that supports such instructions, such as m8 and later.  Setting
24823 \&\fB\-mvis4b\fR also sets \fB\-mvis4\fR, \fB\-mvis3\fR,
24824 \&\fB\-mvis2\fR and \fB\-mvis\fR.
24825 .IP "\fB\-mcbcond\fR" 4
24826 .IX Item "-mcbcond"
24827 .PD 0
24828 .IP "\fB\-mno\-cbcond\fR" 4
24829 .IX Item "-mno-cbcond"
24830 .PD
24831 With \fB\-mcbcond\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
24832 Compare-and-Branch-on-Condition instructions.  The default is \fB\-mcbcond\fR
24833 when targeting a \s-1CPU\s0 that supports such instructions, such as Niagara\-4 and
24834 later.
24835 .IP "\fB\-mfmaf\fR" 4
24836 .IX Item "-mfmaf"
24837 .PD 0
24838 .IP "\fB\-mno\-fmaf\fR" 4
24839 .IX Item "-mno-fmaf"
24840 .PD
24841 With \fB\-mfmaf\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
24842 Fused Multiply-Add Floating-point instructions.  The default is \fB\-mfmaf\fR
24843 when targeting a \s-1CPU\s0 that supports such instructions, such as Niagara\-3 and
24844 later.
24845 .IP "\fB\-mfsmuld\fR" 4
24846 .IX Item "-mfsmuld"
24847 .PD 0
24848 .IP "\fB\-mno\-fsmuld\fR" 4
24849 .IX Item "-mno-fsmuld"
24850 .PD
24851 With \fB\-mfsmuld\fR, \s-1GCC\s0 generates code that takes advantage of the
24852 Floating-point Multiply Single to Double (FsMULd) instruction.  The default is
24853 \&\fB\-mfsmuld\fR when targeting a \s-1CPU\s0 supporting the architecture versions V8
24854 or V9 with \s-1FPU\s0 except \fB\-mcpu=leon\fR.
24855 .IP "\fB\-mpopc\fR" 4
24856 .IX Item "-mpopc"
24857 .PD 0
24858 .IP "\fB\-mno\-popc\fR" 4
24859 .IX Item "-mno-popc"
24860 .PD
24861 With \fB\-mpopc\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
24862 Population Count instruction.  The default is \fB\-mpopc\fR
24863 when targeting a \s-1CPU\s0 that supports such an instruction, such as Niagara\-2 and
24864 later.
24865 .IP "\fB\-msubxc\fR" 4
24866 .IX Item "-msubxc"
24867 .PD 0
24868 .IP "\fB\-mno\-subxc\fR" 4
24869 .IX Item "-mno-subxc"
24870 .PD
24871 With \fB\-msubxc\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
24872 Subtract-Extended-with-Carry instruction.  The default is \fB\-msubxc\fR
24873 when targeting a \s-1CPU\s0 that supports such an instruction, such as Niagara\-7 and
24874 later.
24875 .IP "\fB\-mfix\-at697f\fR" 4
24876 .IX Item "-mfix-at697f"
24877 Enable the documented workaround for the single erratum of the Atmel \s-1AT697F\s0
24878 processor (which corresponds to erratum #13 of the \s-1AT697E\s0 processor).
24879 .IP "\fB\-mfix\-ut699\fR" 4
24880 .IX Item "-mfix-ut699"
24881 Enable the documented workarounds for the floating-point errata and the data
24882 cache nullify errata of the \s-1UT699\s0 processor.
24883 .IP "\fB\-mfix\-ut700\fR" 4
24884 .IX Item "-mfix-ut700"
24885 Enable the documented workaround for the back-to-back store errata of
24886 the \s-1UT699E/UT700\s0 processor.
24887 .IP "\fB\-mfix\-gr712rc\fR" 4
24888 .IX Item "-mfix-gr712rc"
24889 Enable the documented workaround for the back-to-back store errata of
24890 the \s-1GR712RC\s0 processor.
24891 .PP
24892 These \fB\-m\fR options are supported in addition to the above
24893 on \s-1SPARC\-V9\s0 processors in 64\-bit environments:
24894 .IP "\fB\-m32\fR" 4
24895 .IX Item "-m32"
24896 .PD 0
24897 .IP "\fB\-m64\fR" 4
24898 .IX Item "-m64"
24899 .PD
24900 Generate code for a 32\-bit or 64\-bit environment.
24901 The 32\-bit environment sets int, long and pointer to 32 bits.
24902 The 64\-bit environment sets int to 32 bits and long and pointer
24903 to 64 bits.
24904 .IP "\fB\-mcmodel=\fR\fIwhich\fR" 4
24905 .IX Item "-mcmodel=which"
24906 Set the code model to one of
24907 .RS 4
24908 .IP "\fBmedlow\fR" 4
24909 .IX Item "medlow"
24910 The Medium/Low code model: 64\-bit addresses, programs
24911 must be linked in the low 32 bits of memory.  Programs can be statically
24912 or dynamically linked.
24913 .IP "\fBmedmid\fR" 4
24914 .IX Item "medmid"
24915 The Medium/Middle code model: 64\-bit addresses, programs
24916 must be linked in the low 44 bits of memory, the text and data segments must
24917 be less than 2GB in size and the data segment must be located within 2GB of
24918 the text segment.
24919 .IP "\fBmedany\fR" 4
24920 .IX Item "medany"
24921 The Medium/Anywhere code model: 64\-bit addresses, programs
24922 may be linked anywhere in memory, the text and data segments must be less
24923 than 2GB in size and the data segment must be located within 2GB of the
24924 text segment.
24925 .IP "\fBembmedany\fR" 4
24926 .IX Item "embmedany"
24927 The Medium/Anywhere code model for embedded systems:
24928 64\-bit addresses, the text and data segments must be less than 2GB in
24929 size, both starting anywhere in memory (determined at link time).  The
24930 global register \f(CW%g4\fR points to the base of the data segment.  Programs
24931 are statically linked and \s-1PIC\s0 is not supported.
24932 .RE
24933 .RS 4
24934 .RE
24935 .IP "\fB\-mmemory\-model=\fR\fImem-model\fR" 4
24936 .IX Item "-mmemory-model=mem-model"
24937 Set the memory model in force on the processor to one of
24938 .RS 4
24939 .IP "\fBdefault\fR" 4
24940 .IX Item "default"
24941 The default memory model for the processor and operating system.
24942 .IP "\fBrmo\fR" 4
24943 .IX Item "rmo"
24944 Relaxed Memory Order
24945 .IP "\fBpso\fR" 4
24946 .IX Item "pso"
24947 Partial Store Order
24948 .IP "\fBtso\fR" 4
24949 .IX Item "tso"
24950 Total Store Order
24951 .IP "\fBsc\fR" 4
24952 .IX Item "sc"
24953 Sequential Consistency
24954 .RE
24955 .RS 4
24956 .Sp
24957 These memory models are formally defined in Appendix D of the \s-1SPARC\-V9\s0
24958 architecture manual, as set in the processor's \f(CW\*(C`PSTATE.MM\*(C'\fR field.
24959 .RE
24960 .IP "\fB\-mstack\-bias\fR" 4
24961 .IX Item "-mstack-bias"
24962 .PD 0
24963 .IP "\fB\-mno\-stack\-bias\fR" 4
24964 .IX Item "-mno-stack-bias"
24965 .PD
24966 With \fB\-mstack\-bias\fR, \s-1GCC\s0 assumes that the stack pointer, and
24967 frame pointer if present, are offset by \-2047 which must be added back
24968 when making stack frame references.  This is the default in 64\-bit mode.
24969 Otherwise, assume no such offset is present.
24970 .PP
24971 \fI\s-1SPU\s0 Options\fR
24972 .IX Subsection "SPU Options"
24973 .PP
24974 These \fB\-m\fR options are supported on the \s-1SPU:\s0
24975 .IP "\fB\-mwarn\-reloc\fR" 4
24976 .IX Item "-mwarn-reloc"
24977 .PD 0
24978 .IP "\fB\-merror\-reloc\fR" 4
24979 .IX Item "-merror-reloc"
24980 .PD
24981 The loader for \s-1SPU\s0 does not handle dynamic relocations.  By default, \s-1GCC\s0
24982 gives an error when it generates code that requires a dynamic
24983 relocation.  \fB\-mno\-error\-reloc\fR disables the error,
24984 \&\fB\-mwarn\-reloc\fR generates a warning instead.
24985 .IP "\fB\-msafe\-dma\fR" 4
24986 .IX Item "-msafe-dma"
24987 .PD 0
24988 .IP "\fB\-munsafe\-dma\fR" 4
24989 .IX Item "-munsafe-dma"
24990 .PD
24991 Instructions that initiate or test completion of \s-1DMA\s0 must not be
24992 reordered with respect to loads and stores of the memory that is being
24993 accessed.
24994 With \fB\-munsafe\-dma\fR you must use the \f(CW\*(C`volatile\*(C'\fR keyword to protect
24995 memory accesses, but that can lead to inefficient code in places where the
24996 memory is known to not change.  Rather than mark the memory as volatile,
24997 you can use \fB\-msafe\-dma\fR to tell the compiler to treat
24998 the \s-1DMA\s0 instructions as potentially affecting all memory.
24999 .IP "\fB\-mbranch\-hints\fR" 4
25000 .IX Item "-mbranch-hints"
25001 By default, \s-1GCC\s0 generates a branch hint instruction to avoid
25002 pipeline stalls for always-taken or probably-taken branches.  A hint
25003 is not generated closer than 8 instructions away from its branch.
25004 There is little reason to disable them, except for debugging purposes,
25005 or to make an object a little bit smaller.
25006 .IP "\fB\-msmall\-mem\fR" 4
25007 .IX Item "-msmall-mem"
25008 .PD 0
25009 .IP "\fB\-mlarge\-mem\fR" 4
25010 .IX Item "-mlarge-mem"
25011 .PD
25012 By default, \s-1GCC\s0 generates code assuming that addresses are never larger
25013 than 18 bits.  With \fB\-mlarge\-mem\fR code is generated that assumes
25014 a full 32\-bit address.
25015 .IP "\fB\-mstdmain\fR" 4
25016 .IX Item "-mstdmain"
25017 By default, \s-1GCC\s0 links against startup code that assumes the SPU-style
25018 main function interface (which has an unconventional parameter list).
25019 With \fB\-mstdmain\fR, \s-1GCC\s0 links your program against startup
25020 code that assumes a C99\-style interface to \f(CW\*(C`main\*(C'\fR, including a
25021 local copy of \f(CW\*(C`argv\*(C'\fR strings.
25022 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
25023 .IX Item "-mfixed-range=register-range"
25024 Generate code treating the given register range as fixed registers.
25025 A fixed register is one that the register allocator cannot use.  This is
25026 useful when compiling kernel code.  A register range is specified as
25027 two registers separated by a dash.  Multiple register ranges can be
25028 specified separated by a comma.
25029 .IP "\fB\-mea32\fR" 4
25030 .IX Item "-mea32"
25031 .PD 0
25032 .IP "\fB\-mea64\fR" 4
25033 .IX Item "-mea64"
25034 .PD
25035 Compile code assuming that pointers to the \s-1PPU\s0 address space accessed
25036 via the \f(CW\*(C`_\|_ea\*(C'\fR named address space qualifier are either 32 or 64
25037 bits wide.  The default is 32 bits.  As this is an ABI-changing option,
25038 all object code in an executable must be compiled with the same setting.
25039 .IP "\fB\-maddress\-space\-conversion\fR" 4
25040 .IX Item "-maddress-space-conversion"
25041 .PD 0
25042 .IP "\fB\-mno\-address\-space\-conversion\fR" 4
25043 .IX Item "-mno-address-space-conversion"
25044 .PD
25045 Allow/disallow treating the \f(CW\*(C`_\|_ea\*(C'\fR address space as superset
25046 of the generic address space.  This enables explicit type casts
25047 between \f(CW\*(C`_\|_ea\*(C'\fR and generic pointer as well as implicit
25048 conversions of generic pointers to \f(CW\*(C`_\|_ea\*(C'\fR pointers.  The
25049 default is to allow address space pointer conversions.
25050 .IP "\fB\-mcache\-size=\fR\fIcache-size\fR" 4
25051 .IX Item "-mcache-size=cache-size"
25052 This option controls the version of libgcc that the compiler links to an
25053 executable and selects a software-managed cache for accessing variables
25054 in the \f(CW\*(C`_\|_ea\*(C'\fR address space with a particular cache size.  Possible
25055 options for \fIcache-size\fR are \fB8\fR, \fB16\fR, \fB32\fR, \fB64\fR
25056 and \fB128\fR.  The default cache size is 64KB.
25057 .IP "\fB\-matomic\-updates\fR" 4
25058 .IX Item "-matomic-updates"
25059 .PD 0
25060 .IP "\fB\-mno\-atomic\-updates\fR" 4
25061 .IX Item "-mno-atomic-updates"
25062 .PD
25063 This option controls the version of libgcc that the compiler links to an
25064 executable and selects whether atomic updates to the software-managed
25065 cache of PPU-side variables are used.  If you use atomic updates, changes
25066 to a \s-1PPU\s0 variable from \s-1SPU\s0 code using the \f(CW\*(C`_\|_ea\*(C'\fR named address space
25067 qualifier do not interfere with changes to other \s-1PPU\s0 variables residing
25068 in the same cache line from \s-1PPU\s0 code.  If you do not use atomic updates,
25069 such interference may occur; however, writing back cache lines is
25070 more efficient.  The default behavior is to use atomic updates.
25071 .IP "\fB\-mdual\-nops\fR" 4
25072 .IX Item "-mdual-nops"
25073 .PD 0
25074 .IP "\fB\-mdual\-nops=\fR\fIn\fR" 4
25075 .IX Item "-mdual-nops=n"
25076 .PD
25077 By default, \s-1GCC\s0 inserts NOPs to increase dual issue when it expects
25078 it to increase performance.  \fIn\fR can be a value from 0 to 10.  A
25079 smaller \fIn\fR inserts fewer NOPs.  10 is the default, 0 is the
25080 same as \fB\-mno\-dual\-nops\fR.  Disabled with \fB\-Os\fR.
25081 .IP "\fB\-mhint\-max\-nops=\fR\fIn\fR" 4
25082 .IX Item "-mhint-max-nops=n"
25083 Maximum number of NOPs to insert for a branch hint.  A branch hint must
25084 be at least 8 instructions away from the branch it is affecting.  \s-1GCC\s0
25085 inserts up to \fIn\fR NOPs to enforce this, otherwise it does not
25086 generate the branch hint.
25087 .IP "\fB\-mhint\-max\-distance=\fR\fIn\fR" 4
25088 .IX Item "-mhint-max-distance=n"
25089 The encoding of the branch hint instruction limits the hint to be within
25090 256 instructions of the branch it is affecting.  By default, \s-1GCC\s0 makes
25091 sure it is within 125.
25092 .IP "\fB\-msafe\-hints\fR" 4
25093 .IX Item "-msafe-hints"
25094 Work around a hardware bug that causes the \s-1SPU\s0 to stall indefinitely.
25095 By default, \s-1GCC\s0 inserts the \f(CW\*(C`hbrp\*(C'\fR instruction to make sure
25096 this stall won't happen.
25097 .PP
25098 \fIOptions for System V\fR
25099 .IX Subsection "Options for System V"
25100 .PP
25101 These additional options are available on System V Release 4 for
25102 compatibility with other compilers on those systems:
25103 .IP "\fB\-G\fR" 4
25104 .IX Item "-G"
25105 Create a shared object.
25106 It is recommended that \fB\-symbolic\fR or \fB\-shared\fR be used instead.
25107 .IP "\fB\-Qy\fR" 4
25108 .IX Item "-Qy"
25109 Identify the versions of each tool used by the compiler, in a
25110 \&\f(CW\*(C`.ident\*(C'\fR assembler directive in the output.
25111 .IP "\fB\-Qn\fR" 4
25112 .IX Item "-Qn"
25113 Refrain from adding \f(CW\*(C`.ident\*(C'\fR directives to the output file (this is
25114 the default).
25115 .IP "\fB\-YP,\fR\fIdirs\fR" 4
25116 .IX Item "-YP,dirs"
25117 Search the directories \fIdirs\fR, and no others, for libraries
25118 specified with \fB\-l\fR.
25119 .IP "\fB\-Ym,\fR\fIdir\fR" 4
25120 .IX Item "-Ym,dir"
25121 Look in the directory \fIdir\fR to find the M4 preprocessor.
25122 The assembler uses this option.
25123 .PP
25124 \fITILE-Gx Options\fR
25125 .IX Subsection "TILE-Gx Options"
25126 .PP
25127 These \fB\-m\fR options are supported on the TILE-Gx:
25128 .IP "\fB\-mcmodel=small\fR" 4
25129 .IX Item "-mcmodel=small"
25130 Generate code for the small model.  The distance for direct calls is
25131 limited to 500M in either direction.  PC-relative addresses are 32
25132 bits.  Absolute addresses support the full address range.
25133 .IP "\fB\-mcmodel=large\fR" 4
25134 .IX Item "-mcmodel=large"
25135 Generate code for the large model.  There is no limitation on call
25136 distance, pc-relative addresses, or absolute addresses.
25137 .IP "\fB\-mcpu=\fR\fIname\fR" 4
25138 .IX Item "-mcpu=name"
25139 Selects the type of \s-1CPU\s0 to be targeted.  Currently the only supported
25140 type is \fBtilegx\fR.
25141 .IP "\fB\-m32\fR" 4
25142 .IX Item "-m32"
25143 .PD 0
25144 .IP "\fB\-m64\fR" 4
25145 .IX Item "-m64"
25146 .PD
25147 Generate code for a 32\-bit or 64\-bit environment.  The 32\-bit
25148 environment sets int, long, and pointer to 32 bits.  The 64\-bit
25149 environment sets int to 32 bits and long and pointer to 64 bits.
25150 .IP "\fB\-mbig\-endian\fR" 4
25151 .IX Item "-mbig-endian"
25152 .PD 0
25153 .IP "\fB\-mlittle\-endian\fR" 4
25154 .IX Item "-mlittle-endian"
25155 .PD
25156 Generate code in big/little endian mode, respectively.
25157 .PP
25158 \fITILEPro Options\fR
25159 .IX Subsection "TILEPro Options"
25160 .PP
25161 These \fB\-m\fR options are supported on the TILEPro:
25162 .IP "\fB\-mcpu=\fR\fIname\fR" 4
25163 .IX Item "-mcpu=name"
25164 Selects the type of \s-1CPU\s0 to be targeted.  Currently the only supported
25165 type is \fBtilepro\fR.
25166 .IP "\fB\-m32\fR" 4
25167 .IX Item "-m32"
25168 Generate code for a 32\-bit environment, which sets int, long, and
25169 pointer to 32 bits.  This is the only supported behavior so the flag
25170 is essentially ignored.
25171 .PP
25172 \fIV850 Options\fR
25173 .IX Subsection "V850 Options"
25174 .PP
25175 These \fB\-m\fR options are defined for V850 implementations:
25176 .IP "\fB\-mlong\-calls\fR" 4
25177 .IX Item "-mlong-calls"
25178 .PD 0
25179 .IP "\fB\-mno\-long\-calls\fR" 4
25180 .IX Item "-mno-long-calls"
25181 .PD
25182 Treat all calls as being far away (near).  If calls are assumed to be
25183 far away, the compiler always loads the function's address into a
25184 register, and calls indirect through the pointer.
25185 .IP "\fB\-mno\-ep\fR" 4
25186 .IX Item "-mno-ep"
25187 .PD 0
25188 .IP "\fB\-mep\fR" 4
25189 .IX Item "-mep"
25190 .PD
25191 Do not optimize (do optimize) basic blocks that use the same index
25192 pointer 4 or more times to copy pointer into the \f(CW\*(C`ep\*(C'\fR register, and
25193 use the shorter \f(CW\*(C`sld\*(C'\fR and \f(CW\*(C`sst\*(C'\fR instructions.  The \fB\-mep\fR
25194 option is on by default if you optimize.
25195 .IP "\fB\-mno\-prolog\-function\fR" 4
25196 .IX Item "-mno-prolog-function"
25197 .PD 0
25198 .IP "\fB\-mprolog\-function\fR" 4
25199 .IX Item "-mprolog-function"
25200 .PD
25201 Do not use (do use) external functions to save and restore registers
25202 at the prologue and epilogue of a function.  The external functions
25203 are slower, but use less code space if more than one function saves
25204 the same number of registers.  The \fB\-mprolog\-function\fR option
25205 is on by default if you optimize.
25206 .IP "\fB\-mspace\fR" 4
25207 .IX Item "-mspace"
25208 Try to make the code as small as possible.  At present, this just turns
25209 on the \fB\-mep\fR and \fB\-mprolog\-function\fR options.
25210 .IP "\fB\-mtda=\fR\fIn\fR" 4
25211 .IX Item "-mtda=n"
25212 Put static or global variables whose size is \fIn\fR bytes or less into
25213 the tiny data area that register \f(CW\*(C`ep\*(C'\fR points to.  The tiny data
25214 area can hold up to 256 bytes in total (128 bytes for byte references).
25215 .IP "\fB\-msda=\fR\fIn\fR" 4
25216 .IX Item "-msda=n"
25217 Put static or global variables whose size is \fIn\fR bytes or less into
25218 the small data area that register \f(CW\*(C`gp\*(C'\fR points to.  The small data
25219 area can hold up to 64 kilobytes.
25220 .IP "\fB\-mzda=\fR\fIn\fR" 4
25221 .IX Item "-mzda=n"
25222 Put static or global variables whose size is \fIn\fR bytes or less into
25223 the first 32 kilobytes of memory.
25224 .IP "\fB\-mv850\fR" 4
25225 .IX Item "-mv850"
25226 Specify that the target processor is the V850.
25227 .IP "\fB\-mv850e3v5\fR" 4
25228 .IX Item "-mv850e3v5"
25229 Specify that the target processor is the V850E3V5.  The preprocessor
25230 constant \f(CW\*(C`_\|_v850e3v5_\|_\*(C'\fR is defined if this option is used.
25231 .IP "\fB\-mv850e2v4\fR" 4
25232 .IX Item "-mv850e2v4"
25233 Specify that the target processor is the V850E3V5.  This is an alias for
25234 the \fB\-mv850e3v5\fR option.
25235 .IP "\fB\-mv850e2v3\fR" 4
25236 .IX Item "-mv850e2v3"
25237 Specify that the target processor is the V850E2V3.  The preprocessor
25238 constant \f(CW\*(C`_\|_v850e2v3_\|_\*(C'\fR is defined if this option is used.
25239 .IP "\fB\-mv850e2\fR" 4
25240 .IX Item "-mv850e2"
25241 Specify that the target processor is the V850E2.  The preprocessor
25242 constant \f(CW\*(C`_\|_v850e2_\|_\*(C'\fR is defined if this option is used.
25243 .IP "\fB\-mv850e1\fR" 4
25244 .IX Item "-mv850e1"
25245 Specify that the target processor is the V850E1.  The preprocessor
25246 constants \f(CW\*(C`_\|_v850e1_\|_\*(C'\fR and \f(CW\*(C`_\|_v850e_\|_\*(C'\fR are defined if
25247 this option is used.
25248 .IP "\fB\-mv850es\fR" 4
25249 .IX Item "-mv850es"
25250 Specify that the target processor is the V850ES.  This is an alias for
25251 the \fB\-mv850e1\fR option.
25252 .IP "\fB\-mv850e\fR" 4
25253 .IX Item "-mv850e"
25254 Specify that the target processor is the V850E.  The preprocessor
25255 constant \f(CW\*(C`_\|_v850e_\|_\*(C'\fR is defined if this option is used.
25256 .Sp
25257 If neither \fB\-mv850\fR nor \fB\-mv850e\fR nor \fB\-mv850e1\fR
25258 nor \fB\-mv850e2\fR nor \fB\-mv850e2v3\fR nor \fB\-mv850e3v5\fR
25259 are defined then a default target processor is chosen and the
25260 relevant \fB_\|_v850*_\|_\fR preprocessor constant is defined.
25261 .Sp
25262 The preprocessor constants \f(CW\*(C`_\|_v850\*(C'\fR and \f(CW\*(C`_\|_v851_\|_\*(C'\fR are always
25263 defined, regardless of which processor variant is the target.
25264 .IP "\fB\-mdisable\-callt\fR" 4
25265 .IX Item "-mdisable-callt"
25266 .PD 0
25267 .IP "\fB\-mno\-disable\-callt\fR" 4
25268 .IX Item "-mno-disable-callt"
25269 .PD
25270 This option suppresses generation of the \f(CW\*(C`CALLT\*(C'\fR instruction for the
25271 v850e, v850e1, v850e2, v850e2v3 and v850e3v5 flavors of the v850
25272 architecture.
25273 .Sp
25274 This option is enabled by default when the \s-1RH850 ABI\s0 is
25275 in use (see \fB\-mrh850\-abi\fR), and disabled by default when the
25276 \&\s-1GCC ABI\s0 is in use.  If \f(CW\*(C`CALLT\*(C'\fR instructions are being generated
25277 then the C preprocessor symbol \f(CW\*(C`_\|_V850_CALLT_\|_\*(C'\fR is defined.
25278 .IP "\fB\-mrelax\fR" 4
25279 .IX Item "-mrelax"
25280 .PD 0
25281 .IP "\fB\-mno\-relax\fR" 4
25282 .IX Item "-mno-relax"
25283 .PD
25284 Pass on (or do not pass on) the \fB\-mrelax\fR command-line option
25285 to the assembler.
25286 .IP "\fB\-mlong\-jumps\fR" 4
25287 .IX Item "-mlong-jumps"
25288 .PD 0
25289 .IP "\fB\-mno\-long\-jumps\fR" 4
25290 .IX Item "-mno-long-jumps"
25291 .PD
25292 Disable (or re-enable) the generation of PC-relative jump instructions.
25293 .IP "\fB\-msoft\-float\fR" 4
25294 .IX Item "-msoft-float"
25295 .PD 0
25296 .IP "\fB\-mhard\-float\fR" 4
25297 .IX Item "-mhard-float"
25298 .PD
25299 Disable (or re-enable) the generation of hardware floating point
25300 instructions.  This option is only significant when the target
25301 architecture is \fBV850E2V3\fR or higher.  If hardware floating point
25302 instructions are being generated then the C preprocessor symbol
25303 \&\f(CW\*(C`_\|_FPU_OK_\|_\*(C'\fR is defined, otherwise the symbol
25304 \&\f(CW\*(C`_\|_NO_FPU_\|_\*(C'\fR is defined.
25305 .IP "\fB\-mloop\fR" 4
25306 .IX Item "-mloop"
25307 Enables the use of the e3v5 \s-1LOOP\s0 instruction.  The use of this
25308 instruction is not enabled by default when the e3v5 architecture is
25309 selected because its use is still experimental.
25310 .IP "\fB\-mrh850\-abi\fR" 4
25311 .IX Item "-mrh850-abi"
25312 .PD 0
25313 .IP "\fB\-mghs\fR" 4
25314 .IX Item "-mghs"
25315 .PD
25316 Enables support for the \s-1RH850\s0 version of the V850 \s-1ABI.\s0  This is the
25317 default.  With this version of the \s-1ABI\s0 the following rules apply:
25318 .RS 4
25319 .IP "*" 4
25320 Integer sized structures and unions are returned via a memory pointer
25321 rather than a register.
25322 .IP "*" 4
25323 Large structures and unions (more than 8 bytes in size) are passed by
25324 value.
25325 .IP "*" 4
25326 Functions are aligned to 16\-bit boundaries.
25327 .IP "*" 4
25328 The \fB\-m8byte\-align\fR command-line option is supported.
25329 .IP "*" 4
25330 The \fB\-mdisable\-callt\fR command-line option is enabled by
25331 default.  The \fB\-mno\-disable\-callt\fR command-line option is not
25332 supported.
25333 .RE
25334 .RS 4
25335 .Sp
25336 When this version of the \s-1ABI\s0 is enabled the C preprocessor symbol
25337 \&\f(CW\*(C`_\|_V850_RH850_ABI_\|_\*(C'\fR is defined.
25338 .RE
25339 .IP "\fB\-mgcc\-abi\fR" 4
25340 .IX Item "-mgcc-abi"
25341 Enables support for the old \s-1GCC\s0 version of the V850 \s-1ABI.\s0  With this
25342 version of the \s-1ABI\s0 the following rules apply:
25343 .RS 4
25344 .IP "*" 4
25345 Integer sized structures and unions are returned in register \f(CW\*(C`r10\*(C'\fR.
25346 .IP "*" 4
25347 Large structures and unions (more than 8 bytes in size) are passed by
25348 reference.
25349 .IP "*" 4
25350 Functions are aligned to 32\-bit boundaries, unless optimizing for
25351 size.
25352 .IP "*" 4
25353 The \fB\-m8byte\-align\fR command-line option is not supported.
25354 .IP "*" 4
25355 The \fB\-mdisable\-callt\fR command-line option is supported but not
25356 enabled by default.
25357 .RE
25358 .RS 4
25359 .Sp
25360 When this version of the \s-1ABI\s0 is enabled the C preprocessor symbol
25361 \&\f(CW\*(C`_\|_V850_GCC_ABI_\|_\*(C'\fR is defined.
25362 .RE
25363 .IP "\fB\-m8byte\-align\fR" 4
25364 .IX Item "-m8byte-align"
25365 .PD 0
25366 .IP "\fB\-mno\-8byte\-align\fR" 4
25367 .IX Item "-mno-8byte-align"
25368 .PD
25369 Enables support for \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long long\*(C'\fR types to be
25370 aligned on 8\-byte boundaries.  The default is to restrict the
25371 alignment of all objects to at most 4\-bytes.  When
25372 \&\fB\-m8byte\-align\fR is in effect the C preprocessor symbol
25373 \&\f(CW\*(C`_\|_V850_8BYTE_ALIGN_\|_\*(C'\fR is defined.
25374 .IP "\fB\-mbig\-switch\fR" 4
25375 .IX Item "-mbig-switch"
25376 Generate code suitable for big switch tables.  Use this option only if
25377 the assembler/linker complain about out of range branches within a switch
25378 table.
25379 .IP "\fB\-mapp\-regs\fR" 4
25380 .IX Item "-mapp-regs"
25381 This option causes r2 and r5 to be used in the code generated by
25382 the compiler.  This setting is the default.
25383 .IP "\fB\-mno\-app\-regs\fR" 4
25384 .IX Item "-mno-app-regs"
25385 This option causes r2 and r5 to be treated as fixed registers.
25386 .PP
25387 \fI\s-1VAX\s0 Options\fR
25388 .IX Subsection "VAX Options"
25389 .PP
25390 These \fB\-m\fR options are defined for the \s-1VAX:\s0
25391 .IP "\fB\-munix\fR" 4
25392 .IX Item "-munix"
25393 Do not output certain jump instructions (\f(CW\*(C`aobleq\*(C'\fR and so on)
25394 that the Unix assembler for the \s-1VAX\s0 cannot handle across long
25395 ranges.
25396 .IP "\fB\-mgnu\fR" 4
25397 .IX Item "-mgnu"
25398 Do output those jump instructions, on the assumption that the
25399 \&\s-1GNU\s0 assembler is being used.
25400 .IP "\fB\-mg\fR" 4
25401 .IX Item "-mg"
25402 Output code for G\-format floating-point numbers instead of D\-format.
25403 .PP
25404 \fIVisium Options\fR
25405 .IX Subsection "Visium Options"
25406 .IP "\fB\-mdebug\fR" 4
25407 .IX Item "-mdebug"
25408 A program which performs file I/O and is destined to run on an \s-1MCM\s0 target
25409 should be linked with this option.  It causes the libraries libc.a and
25410 libdebug.a to be linked.  The program should be run on the target under
25411 the control of the \s-1GDB\s0 remote debugging stub.
25412 .IP "\fB\-msim\fR" 4
25413 .IX Item "-msim"
25414 A program which performs file I/O and is destined to run on the simulator
25415 should be linked with option.  This causes libraries libc.a and libsim.a to
25416 be linked.
25417 .IP "\fB\-mfpu\fR" 4
25418 .IX Item "-mfpu"
25419 .PD 0
25420 .IP "\fB\-mhard\-float\fR" 4
25421 .IX Item "-mhard-float"
25422 .PD
25423 Generate code containing floating-point instructions.  This is the
25424 default.
25425 .IP "\fB\-mno\-fpu\fR" 4
25426 .IX Item "-mno-fpu"
25427 .PD 0
25428 .IP "\fB\-msoft\-float\fR" 4
25429 .IX Item "-msoft-float"
25430 .PD
25431 Generate code containing library calls for floating-point.
25432 .Sp
25433 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
25434 therefore, it is only useful if you compile \fIall\fR of a program with
25435 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
25436 library that comes with \s-1GCC,\s0 with \fB\-msoft\-float\fR in order for
25437 this to work.
25438 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
25439 .IX Item "-mcpu=cpu_type"
25440 Set the instruction set, register set, and instruction scheduling parameters
25441 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
25442 \&\fBmcm\fR, \fBgr5\fR and \fBgr6\fR.
25443 .Sp
25444 \&\fBmcm\fR is a synonym of \fBgr5\fR present for backward compatibility.
25445 .Sp
25446 By default (unless configured otherwise), \s-1GCC\s0 generates code for the \s-1GR5\s0
25447 variant of the Visium architecture.
25448 .Sp
25449 With \fB\-mcpu=gr6\fR, \s-1GCC\s0 generates code for the \s-1GR6\s0 variant of the Visium
25450 architecture.  The only difference from \s-1GR5\s0 code is that the compiler will
25451 generate block move instructions.
25452 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
25453 .IX Item "-mtune=cpu_type"
25454 Set the instruction scheduling parameters for machine type \fIcpu_type\fR,
25455 but do not set the instruction set or register set that the option
25456 \&\fB\-mcpu=\fR\fIcpu_type\fR would.
25457 .IP "\fB\-msv\-mode\fR" 4
25458 .IX Item "-msv-mode"
25459 Generate code for the supervisor mode, where there are no restrictions on
25460 the access to general registers.  This is the default.
25461 .IP "\fB\-muser\-mode\fR" 4
25462 .IX Item "-muser-mode"
25463 Generate code for the user mode, where the access to some general registers
25464 is forbidden: on the \s-1GR5,\s0 registers r24 to r31 cannot be accessed in this
25465 mode; on the \s-1GR6,\s0 only registers r29 to r31 are affected.
25466 .PP
25467 \fI\s-1VMS\s0 Options\fR
25468 .IX Subsection "VMS Options"
25469 .PP
25470 These \fB\-m\fR options are defined for the \s-1VMS\s0 implementations:
25471 .IP "\fB\-mvms\-return\-codes\fR" 4
25472 .IX Item "-mvms-return-codes"
25473 Return \s-1VMS\s0 condition codes from \f(CW\*(C`main\*(C'\fR. The default is to return POSIX-style
25474 condition (e.g. error) codes.
25475 .IP "\fB\-mdebug\-main=\fR\fIprefix\fR" 4
25476 .IX Item "-mdebug-main=prefix"
25477 Flag the first routine whose name starts with \fIprefix\fR as the main
25478 routine for the debugger.
25479 .IP "\fB\-mmalloc64\fR" 4
25480 .IX Item "-mmalloc64"
25481 Default to 64\-bit memory allocation routines.
25482 .IP "\fB\-mpointer\-size=\fR\fIsize\fR" 4
25483 .IX Item "-mpointer-size=size"
25484 Set the default size of pointers. Possible options for \fIsize\fR are
25485 \&\fB32\fR or \fBshort\fR for 32 bit pointers, \fB64\fR or \fBlong\fR
25486 for 64 bit pointers, and \fBno\fR for supporting only 32 bit pointers.
25487 The later option disables \f(CW\*(C`pragma pointer_size\*(C'\fR.
25488 .PP
25489 \fIVxWorks Options\fR
25490 .IX Subsection "VxWorks Options"
25491 .PP
25492 The options in this section are defined for all VxWorks targets.
25493 Options specific to the target hardware are listed with the other
25494 options for that target.
25495 .IP "\fB\-mrtp\fR" 4
25496 .IX Item "-mrtp"
25497 \&\s-1GCC\s0 can generate code for both VxWorks kernels and real time processes
25498 (RTPs).  This option switches from the former to the latter.  It also
25499 defines the preprocessor macro \f(CW\*(C`_\|_RTP_\|_\*(C'\fR.
25500 .IP "\fB\-non\-static\fR" 4
25501 .IX Item "-non-static"
25502 Link an \s-1RTP\s0 executable against shared libraries rather than static
25503 libraries.  The options \fB\-static\fR and \fB\-shared\fR can
25504 also be used for RTPs; \fB\-static\fR
25505 is the default.
25506 .IP "\fB\-Bstatic\fR" 4
25507 .IX Item "-Bstatic"
25508 .PD 0
25509 .IP "\fB\-Bdynamic\fR" 4
25510 .IX Item "-Bdynamic"
25511 .PD
25512 These options are passed down to the linker.  They are defined for
25513 compatibility with Diab.
25514 .IP "\fB\-Xbind\-lazy\fR" 4
25515 .IX Item "-Xbind-lazy"
25516 Enable lazy binding of function calls.  This option is equivalent to
25517 \&\fB\-Wl,\-z,now\fR and is defined for compatibility with Diab.
25518 .IP "\fB\-Xbind\-now\fR" 4
25519 .IX Item "-Xbind-now"
25520 Disable lazy binding of function calls.  This option is the default and
25521 is defined for compatibility with Diab.
25522 .PP
25523 \fIx86 Options\fR
25524 .IX Subsection "x86 Options"
25525 .PP
25526 These \fB\-m\fR options are defined for the x86 family of computers.
25527 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
25528 .IX Item "-march=cpu-type"
25529 Generate instructions for the machine type \fIcpu-type\fR.  In contrast to
25530 \&\fB\-mtune=\fR\fIcpu-type\fR, which merely tunes the generated code 
25531 for the specified \fIcpu-type\fR, \fB\-march=\fR\fIcpu-type\fR allows \s-1GCC\s0
25532 to generate code that may not run at all on processors other than the one
25533 indicated.  Specifying \fB\-march=\fR\fIcpu-type\fR implies 
25534 \&\fB\-mtune=\fR\fIcpu-type\fR.
25535 .Sp
25536 The choices for \fIcpu-type\fR are:
25537 .RS 4
25538 .IP "\fBnative\fR" 4
25539 .IX Item "native"
25540 This selects the \s-1CPU\s0 to generate code for at compilation time by determining
25541 the processor type of the compiling machine.  Using \fB\-march=native\fR
25542 enables all instruction subsets supported by the local machine (hence
25543 the result might not run on different machines).  Using \fB\-mtune=native\fR
25544 produces code optimized for the local machine under the constraints
25545 of the selected instruction set.
25546 .IP "\fBx86\-64\fR" 4
25547 .IX Item "x86-64"
25548 A generic \s-1CPU\s0 with 64\-bit extensions.
25549 .IP "\fBi386\fR" 4
25550 .IX Item "i386"
25551 Original Intel i386 \s-1CPU.\s0
25552 .IP "\fBi486\fR" 4
25553 .IX Item "i486"
25554 Intel i486 \s-1CPU.\s0  (No scheduling is implemented for this chip.)
25555 .IP "\fBi586\fR" 4
25556 .IX Item "i586"
25557 .PD 0
25558 .IP "\fBpentium\fR" 4
25559 .IX Item "pentium"
25560 .PD
25561 Intel Pentium \s-1CPU\s0 with no \s-1MMX\s0 support.
25562 .IP "\fBlakemont\fR" 4
25563 .IX Item "lakemont"
25564 Intel Lakemont \s-1MCU,\s0 based on Intel Pentium \s-1CPU.\s0
25565 .IP "\fBpentium-mmx\fR" 4
25566 .IX Item "pentium-mmx"
25567 Intel Pentium \s-1MMX CPU,\s0 based on Pentium core with \s-1MMX\s0 instruction set support.
25568 .IP "\fBpentiumpro\fR" 4
25569 .IX Item "pentiumpro"
25570 Intel Pentium Pro \s-1CPU.\s0
25571 .IP "\fBi686\fR" 4
25572 .IX Item "i686"
25573 When used with \fB\-march\fR, the Pentium Pro
25574 instruction set is used, so the code runs on all i686 family chips.
25575 When used with \fB\-mtune\fR, it has the same meaning as \fBgeneric\fR.
25576 .IP "\fBpentium2\fR" 4
25577 .IX Item "pentium2"
25578 Intel Pentium \s-1II CPU,\s0 based on Pentium Pro core with \s-1MMX\s0 instruction set
25579 support.
25580 .IP "\fBpentium3\fR" 4
25581 .IX Item "pentium3"
25582 .PD 0
25583 .IP "\fBpentium3m\fR" 4
25584 .IX Item "pentium3m"
25585 .PD
25586 Intel Pentium \s-1III CPU,\s0 based on Pentium Pro core with \s-1MMX\s0 and \s-1SSE\s0 instruction
25587 set support.
25588 .IP "\fBpentium-m\fR" 4
25589 .IX Item "pentium-m"
25590 Intel Pentium M; low-power version of Intel Pentium \s-1III CPU\s0
25591 with \s-1MMX, SSE\s0 and \s-1SSE2\s0 instruction set support.  Used by Centrino notebooks.
25592 .IP "\fBpentium4\fR" 4
25593 .IX Item "pentium4"
25594 .PD 0
25595 .IP "\fBpentium4m\fR" 4
25596 .IX Item "pentium4m"
25597 .PD
25598 Intel Pentium 4 \s-1CPU\s0 with \s-1MMX, SSE\s0 and \s-1SSE2\s0 instruction set support.
25599 .IP "\fBprescott\fR" 4
25600 .IX Item "prescott"
25601 Improved version of Intel Pentium 4 \s-1CPU\s0 with \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction
25602 set support.
25603 .IP "\fBnocona\fR" 4
25604 .IX Item "nocona"
25605 Improved version of Intel Pentium 4 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE,
25606 SSE2\s0 and \s-1SSE3\s0 instruction set support.
25607 .IP "\fBcore2\fR" 4
25608 .IX Item "core2"
25609 Intel Core 2 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
25610 instruction set support.
25611 .IP "\fBnehalem\fR" 4
25612 .IX Item "nehalem"
25613 Intel Nehalem \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
25614 SSE4.1, SSE4.2\s0 and \s-1POPCNT\s0 instruction set support.
25615 .IP "\fBwestmere\fR" 4
25616 .IX Item "westmere"
25617 Intel Westmere \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
25618 SSE4.1, SSE4.2, POPCNT, AES\s0 and \s-1PCLMUL\s0 instruction set support.
25619 .IP "\fBsandybridge\fR" 4
25620 .IX Item "sandybridge"
25621 Intel Sandy Bridge \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
25622 SSE4.1, SSE4.2, POPCNT, AVX, AES\s0 and \s-1PCLMUL\s0 instruction set support.
25623 .IP "\fBivybridge\fR" 4
25624 .IX Item "ivybridge"
25625 Intel Ivy Bridge \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
25626 SSE4.1, SSE4.2, POPCNT, AVX, AES, PCLMUL, FSGSBASE, RDRND\s0 and F16C
25627 instruction set support.
25628 .IP "\fBhaswell\fR" 4
25629 .IX Item "haswell"
25630 Intel Haswell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
25631 SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
25632 BMI, BMI2\s0 and F16C instruction set support.
25633 .IP "\fBbroadwell\fR" 4
25634 .IX Item "broadwell"
25635 Intel Broadwell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
25636 SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
25637 BMI, BMI2, F16C, RDSEED, ADCX\s0 and \s-1PREFETCHW\s0 instruction set support.
25638 .IP "\fBskylake\fR" 4
25639 .IX Item "skylake"
25640 Intel Skylake \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
25641 SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
25642 BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC\s0 and
25643 \&\s-1XSAVES\s0 instruction set support.
25644 .IP "\fBbonnell\fR" 4
25645 .IX Item "bonnell"
25646 Intel Bonnell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
25647 instruction set support.
25648 .IP "\fBsilvermont\fR" 4
25649 .IX Item "silvermont"
25650 Intel Silvermont \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
25651 SSE4.1, SSE4.2, POPCNT, AES, PCLMUL\s0 and \s-1RDRND\s0 instruction set support.
25652 .IP "\fBknl\fR" 4
25653 .IX Item "knl"
25654 Intel Knight's Landing \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3,
25655 SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
25656 BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, AVX512F, AVX512PF, AVX512ER\s0 and
25657 \&\s-1AVX512CD\s0 instruction set support.
25658 .IP "\fBknm\fR" 4
25659 .IX Item "knm"
25660 Intel Knights Mill \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3,
25661 SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
25662 BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, AVX512F, AVX512PF, AVX512ER, AVX512CD,
25663 AVX5124VNNIW, AVX5124FMAPS\s0 and \s-1AVX512VPOPCNTDQ\s0 instruction set support.
25664 .IP "\fBskylake\-avx512\fR" 4
25665 .IX Item "skylake-avx512"
25666 Intel Skylake Server \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3,
25667 SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
25668 BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
25669 CLWB, AVX512VL, AVX512BW, AVX512DQ\s0 and \s-1AVX512CD\s0 instruction set support.
25670 .IP "\fBcannonlake\fR" 4
25671 .IX Item "cannonlake"
25672 Intel Cannonlake Server \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2,
25673 SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE,
25674 RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC,
25675 XSAVES, AVX512F, AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
25676 AVX512IFMA, SHA\s0 and \s-1UMIP\s0 instruction set support.
25677 .IP "\fBicelake-client\fR" 4
25678 .IX Item "icelake-client"
25679 Intel Icelake Client \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2,
25680 SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE,
25681 RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC,
25682 XSAVES, AVX512F, AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
25683 AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2, AVX512VPOPCNTDQ,
25684 AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES\s0 instruction set support.
25685 .IP "\fBicelake-server\fR" 4
25686 .IX Item "icelake-server"
25687 Intel Icelake Server \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2,
25688 SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE,
25689 RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC,
25690 XSAVES, AVX512F, AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
25691 AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2, AVX512VPOPCNTDQ,
25692 AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES, PCONFIG\s0 and \s-1WBNOINVD\s0 instruction
25693 set support.
25694 .IP "\fBk6\fR" 4
25695 .IX Item "k6"
25696 \&\s-1AMD K6 CPU\s0 with \s-1MMX\s0 instruction set support.
25697 .IP "\fBk6\-2\fR" 4
25698 .IX Item "k6-2"
25699 .PD 0
25700 .IP "\fBk6\-3\fR" 4
25701 .IX Item "k6-3"
25702 .PD
25703 Improved versions of \s-1AMD K6 CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.
25704 .IP "\fBathlon\fR" 4
25705 .IX Item "athlon"
25706 .PD 0
25707 .IP "\fBathlon-tbird\fR" 4
25708 .IX Item "athlon-tbird"
25709 .PD
25710 \&\s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX,\s0 3dNOW!, enhanced 3DNow! and \s-1SSE\s0 prefetch instructions
25711 support.
25712 .IP "\fBathlon\-4\fR" 4
25713 .IX Item "athlon-4"
25714 .PD 0
25715 .IP "\fBathlon-xp\fR" 4
25716 .IX Item "athlon-xp"
25717 .IP "\fBathlon-mp\fR" 4
25718 .IX Item "athlon-mp"
25719 .PD
25720 Improved \s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX,\s0 3DNow!, enhanced 3DNow! and full \s-1SSE\s0
25721 instruction set support.
25722 .IP "\fBk8\fR" 4
25723 .IX Item "k8"
25724 .PD 0
25725 .IP "\fBopteron\fR" 4
25726 .IX Item "opteron"
25727 .IP "\fBathlon64\fR" 4
25728 .IX Item "athlon64"
25729 .IP "\fBathlon-fx\fR" 4
25730 .IX Item "athlon-fx"
25731 .PD
25732 Processors based on the \s-1AMD K8\s0 core with x86\-64 instruction set support,
25733 including the \s-1AMD\s0 Opteron, Athlon 64, and Athlon 64 \s-1FX\s0 processors.
25734 (This supersets \s-1MMX, SSE, SSE2,\s0 3DNow!, enhanced 3DNow! and 64\-bit
25735 instruction set extensions.)
25736 .IP "\fBk8\-sse3\fR" 4
25737 .IX Item "k8-sse3"
25738 .PD 0
25739 .IP "\fBopteron\-sse3\fR" 4
25740 .IX Item "opteron-sse3"
25741 .IP "\fBathlon64\-sse3\fR" 4
25742 .IX Item "athlon64-sse3"
25743 .PD
25744 Improved versions of \s-1AMD K8\s0 cores with \s-1SSE3\s0 instruction set support.
25745 .IP "\fBamdfam10\fR" 4
25746 .IX Item "amdfam10"
25747 .PD 0
25748 .IP "\fBbarcelona\fR" 4
25749 .IX Item "barcelona"
25750 .PD
25751 CPUs based on \s-1AMD\s0 Family 10h cores with x86\-64 instruction set support.  (This
25752 supersets \s-1MMX, SSE, SSE2, SSE3, SSE4A,\s0 3DNow!, enhanced 3DNow!, \s-1ABM\s0 and 64\-bit
25753 instruction set extensions.)
25754 .IP "\fBbdver1\fR" 4
25755 .IX Item "bdver1"
25756 CPUs based on \s-1AMD\s0 Family 15h cores with x86\-64 instruction set support.  (This
25757 supersets \s-1FMA4, AVX, XOP, LWP, AES, PCL_MUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A,
25758 SSSE3, SSE4.1, SSE4.2, ABM\s0 and 64\-bit instruction set extensions.)
25759 .IP "\fBbdver2\fR" 4
25760 .IX Item "bdver2"
25761 \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support.  (This
25762 supersets \s-1BMI, TBM, F16C, FMA, FMA4, AVX, XOP, LWP, AES, PCL_MUL, CX16, MMX,
25763 SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM\s0 and 64\-bit instruction set 
25764 extensions.)
25765 .IP "\fBbdver3\fR" 4
25766 .IX Item "bdver3"
25767 \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support.  (This
25768 supersets \s-1BMI, TBM, F16C, FMA, FMA4, FSGSBASE, AVX, XOP, LWP, AES,\s0 
25769 \&\s-1PCL_MUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM\s0 and 
25770 64\-bit instruction set extensions.
25771 .IP "\fBbdver4\fR" 4
25772 .IX Item "bdver4"
25773 \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support.  (This
25774 supersets \s-1BMI, BMI2, TBM, F16C, FMA, FMA4, FSGSBASE, AVX, AVX2, XOP, LWP,\s0 
25775 \&\s-1AES, PCL_MUL, CX16, MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1,\s0 
25776 \&\s-1SSE4.2, ABM\s0 and 64\-bit instruction set extensions.
25777 .IP "\fBznver1\fR" 4
25778 .IX Item "znver1"
25779 \&\s-1AMD\s0 Family 17h core based CPUs with x86\-64 instruction set support.  (This
25780 supersets \s-1BMI, BMI2, F16C, FMA, FSGSBASE, AVX, AVX2, ADCX, RDSEED, MWAITX,
25781 SHA, CLZERO, AES, PCL_MUL, CX16, MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3,
25782 SSE4.1, SSE4.2, ABM, XSAVEC, XSAVES, CLFLUSHOPT, POPCNT,\s0 and 64\-bit
25783 instruction set extensions.
25784 .IP "\fBbtver1\fR" 4
25785 .IX Item "btver1"
25786 CPUs based on \s-1AMD\s0 Family 14h cores with x86\-64 instruction set support.  (This
25787 supersets \s-1MMX, SSE, SSE2, SSE3, SSSE3, SSE4A, CX16, ABM\s0 and 64\-bit
25788 instruction set extensions.)
25789 .IP "\fBbtver2\fR" 4
25790 .IX Item "btver2"
25791 CPUs based on \s-1AMD\s0 Family 16h cores with x86\-64 instruction set support. This
25792 includes \s-1MOVBE, F16C, BMI, AVX, PCL_MUL, AES, SSE4.2, SSE4.1, CX16, ABM,
25793 SSE4A, SSSE3, SSE3, SSE2, SSE, MMX\s0 and 64\-bit instruction set extensions.
25794 .IP "\fBwinchip\-c6\fR" 4
25795 .IX Item "winchip-c6"
25796 \&\s-1IDT\s0 WinChip C6 \s-1CPU,\s0 dealt in same way as i486 with additional \s-1MMX\s0 instruction
25797 set support.
25798 .IP "\fBwinchip2\fR" 4
25799 .IX Item "winchip2"
25800 \&\s-1IDT\s0 WinChip 2 \s-1CPU,\s0 dealt in same way as i486 with additional \s-1MMX\s0 and 3DNow!
25801 instruction set support.
25802 .IP "\fBc3\fR" 4
25803 .IX Item "c3"
25804 \&\s-1VIA C3 CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.
25805 (No scheduling is implemented for this chip.)
25806 .IP "\fBc3\-2\fR" 4
25807 .IX Item "c3-2"
25808 \&\s-1VIA C3\-2\s0 (Nehemiah/C5XL) \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.
25809 (No scheduling is implemented for this chip.)
25810 .IP "\fBc7\fR" 4
25811 .IX Item "c7"
25812 \&\s-1VIA C7\s0 (Esther) \s-1CPU\s0 with \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction set support.
25813 (No scheduling is implemented for this chip.)
25814 .IP "\fBsamuel\-2\fR" 4
25815 .IX Item "samuel-2"
25816 \&\s-1VIA\s0 Eden Samuel 2 \s-1CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.
25817 (No scheduling is implemented for this chip.)
25818 .IP "\fBnehemiah\fR" 4
25819 .IX Item "nehemiah"
25820 \&\s-1VIA\s0 Eden Nehemiah \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.
25821 (No scheduling is implemented for this chip.)
25822 .IP "\fBesther\fR" 4
25823 .IX Item "esther"
25824 \&\s-1VIA\s0 Eden Esther \s-1CPU\s0 with \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction set support.
25825 (No scheduling is implemented for this chip.)
25826 .IP "\fBeden\-x2\fR" 4
25827 .IX Item "eden-x2"
25828 \&\s-1VIA\s0 Eden X2 \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction set support.
25829 (No scheduling is implemented for this chip.)
25830 .IP "\fBeden\-x4\fR" 4
25831 .IX Item "eden-x4"
25832 \&\s-1VIA\s0 Eden X4 \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2,
25833 AVX\s0 and \s-1AVX2\s0 instruction set support.
25834 (No scheduling is implemented for this chip.)
25835 .IP "\fBnano\fR" 4
25836 .IX Item "nano"
25837 Generic \s-1VIA\s0 Nano \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
25838 instruction set support.
25839 (No scheduling is implemented for this chip.)
25840 .IP "\fBnano\-1000\fR" 4
25841 .IX Item "nano-1000"
25842 \&\s-1VIA\s0 Nano 1xxx \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
25843 instruction set support.
25844 (No scheduling is implemented for this chip.)
25845 .IP "\fBnano\-2000\fR" 4
25846 .IX Item "nano-2000"
25847 \&\s-1VIA\s0 Nano 2xxx \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
25848 instruction set support.
25849 (No scheduling is implemented for this chip.)
25850 .IP "\fBnano\-3000\fR" 4
25851 .IX Item "nano-3000"
25852 \&\s-1VIA\s0 Nano 3xxx \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3, SSSE3\s0 and \s-1SSE4.1\s0
25853 instruction set support.
25854 (No scheduling is implemented for this chip.)
25855 .IP "\fBnano\-x2\fR" 4
25856 .IX Item "nano-x2"
25857 \&\s-1VIA\s0 Nano Dual Core \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3, SSSE3\s0 and \s-1SSE4.1\s0
25858 instruction set support.
25859 (No scheduling is implemented for this chip.)
25860 .IP "\fBnano\-x4\fR" 4
25861 .IX Item "nano-x4"
25862 \&\s-1VIA\s0 Nano Quad Core \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3, SSSE3\s0 and \s-1SSE4.1\s0
25863 instruction set support.
25864 (No scheduling is implemented for this chip.)
25865 .IP "\fBgeode\fR" 4
25866 .IX Item "geode"
25867 \&\s-1AMD\s0 Geode embedded processor with \s-1MMX\s0 and 3DNow! instruction set support.
25868 .RE
25869 .RS 4
25870 .RE
25871 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
25872 .IX Item "-mtune=cpu-type"
25873 Tune to \fIcpu-type\fR everything applicable about the generated code, except
25874 for the \s-1ABI\s0 and the set of available instructions.  
25875 While picking a specific \fIcpu-type\fR schedules things appropriately
25876 for that particular chip, the compiler does not generate any code that
25877 cannot run on the default machine type unless you use a
25878 \&\fB\-march=\fR\fIcpu-type\fR option.
25879 For example, if \s-1GCC\s0 is configured for i686\-pc\-linux\-gnu
25880 then \fB\-mtune=pentium4\fR generates code that is tuned for Pentium 4
25881 but still runs on i686 machines.
25882 .Sp
25883 The choices for \fIcpu-type\fR are the same as for \fB\-march\fR.
25884 In addition, \fB\-mtune\fR supports 2 extra choices for \fIcpu-type\fR:
25885 .RS 4
25886 .IP "\fBgeneric\fR" 4
25887 .IX Item "generic"
25888 Produce code optimized for the most common \s-1IA32/AMD64/EM64T\s0 processors.
25889 If you know the \s-1CPU\s0 on which your code will run, then you should use
25890 the corresponding \fB\-mtune\fR or \fB\-march\fR option instead of
25891 \&\fB\-mtune=generic\fR.  But, if you do not know exactly what \s-1CPU\s0 users
25892 of your application will have, then you should use this option.
25893 .Sp
25894 As new processors are deployed in the marketplace, the behavior of this
25895 option will change.  Therefore, if you upgrade to a newer version of
25896 \&\s-1GCC,\s0 code generation controlled by this option will change to reflect
25897 the processors
25898 that are most common at the time that version of \s-1GCC\s0 is released.
25899 .Sp
25900 There is no \fB\-march=generic\fR option because \fB\-march\fR
25901 indicates the instruction set the compiler can use, and there is no
25902 generic instruction set applicable to all processors.  In contrast,
25903 \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
25904 processors) for which the code is optimized.
25905 .IP "\fBintel\fR" 4
25906 .IX Item "intel"
25907 Produce code optimized for the most current Intel processors, which are
25908 Haswell and Silvermont for this version of \s-1GCC.\s0  If you know the \s-1CPU\s0
25909 on which your code will run, then you should use the corresponding
25910 \&\fB\-mtune\fR or \fB\-march\fR option instead of \fB\-mtune=intel\fR.
25911 But, if you want your application performs better on both Haswell and
25912 Silvermont, then you should use this option.
25913 .Sp
25914 As new Intel processors are deployed in the marketplace, the behavior of
25915 this option will change.  Therefore, if you upgrade to a newer version of
25916 \&\s-1GCC,\s0 code generation controlled by this option will change to reflect
25917 the most current Intel processors at the time that version of \s-1GCC\s0 is
25918 released.
25919 .Sp
25920 There is no \fB\-march=intel\fR option because \fB\-march\fR indicates
25921 the instruction set the compiler can use, and there is no common
25922 instruction set applicable to all processors.  In contrast,
25923 \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
25924 processors) for which the code is optimized.
25925 .RE
25926 .RS 4
25927 .RE
25928 .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
25929 .IX Item "-mcpu=cpu-type"
25930 A deprecated synonym for \fB\-mtune\fR.
25931 .IP "\fB\-mfpmath=\fR\fIunit\fR" 4
25932 .IX Item "-mfpmath=unit"
25933 Generate floating-point arithmetic for selected unit \fIunit\fR.  The choices
25934 for \fIunit\fR are:
25935 .RS 4
25936 .IP "\fB387\fR" 4
25937 .IX Item "387"
25938 Use the standard 387 floating-point coprocessor present on the majority of chips and
25939 emulated otherwise.  Code compiled with this option runs almost everywhere.
25940 The temporary results are computed in 80\-bit precision instead of the precision
25941 specified by the type, resulting in slightly different results compared to most
25942 of other chips.  See \fB\-ffloat\-store\fR for more detailed description.
25943 .Sp
25944 This is the default choice for non-Darwin x86\-32 targets.
25945 .IP "\fBsse\fR" 4
25946 .IX Item "sse"
25947 Use scalar floating-point instructions present in the \s-1SSE\s0 instruction set.
25948 This instruction set is supported by Pentium \s-1III\s0 and newer chips,
25949 and in the \s-1AMD\s0 line
25950 by Athlon\-4, Athlon \s-1XP\s0 and Athlon \s-1MP\s0 chips.  The earlier version of the \s-1SSE\s0
25951 instruction set supports only single-precision arithmetic, thus the double and
25952 extended-precision arithmetic are still done using 387.  A later version, present
25953 only in Pentium 4 and \s-1AMD\s0 x86\-64 chips, supports double-precision
25954 arithmetic too.
25955 .Sp
25956 For the x86\-32 compiler, you must use \fB\-march=\fR\fIcpu-type\fR, \fB\-msse\fR
25957 or \fB\-msse2\fR switches to enable \s-1SSE\s0 extensions and make this option
25958 effective.  For the x86\-64 compiler, these extensions are enabled by default.
25959 .Sp
25960 The resulting code should be considerably faster in the majority of cases and avoid
25961 the numerical instability problems of 387 code, but may break some existing
25962 code that expects temporaries to be 80 bits.
25963 .Sp
25964 This is the default choice for the x86\-64 compiler, Darwin x86\-32 targets,
25965 and the default choice for x86\-32 targets with the \s-1SSE2\s0 instruction set
25966 when \fB\-ffast\-math\fR is enabled.
25967 .IP "\fBsse,387\fR" 4
25968 .IX Item "sse,387"
25969 .PD 0
25970 .IP "\fBsse+387\fR" 4
25971 .IX Item "sse+387"
25972 .IP "\fBboth\fR" 4
25973 .IX Item "both"
25974 .PD
25975 Attempt to utilize both instruction sets at once.  This effectively doubles the
25976 amount of available registers, and on chips with separate execution units for
25977 387 and \s-1SSE\s0 the execution resources too.  Use this option with care, as it is
25978 still experimental, because the \s-1GCC\s0 register allocator does not model separate
25979 functional units well, resulting in unstable performance.
25980 .RE
25981 .RS 4
25982 .RE
25983 .IP "\fB\-masm=\fR\fIdialect\fR" 4
25984 .IX Item "-masm=dialect"
25985 Output assembly instructions using selected \fIdialect\fR.  Also affects
25986 which dialect is used for basic \f(CW\*(C`asm\*(C'\fR and
25987 extended \f(CW\*(C`asm\*(C'\fR. Supported choices (in dialect
25988 order) are \fBatt\fR or \fBintel\fR. The default is \fBatt\fR. Darwin does
25989 not support \fBintel\fR.
25990 .IP "\fB\-mieee\-fp\fR" 4
25991 .IX Item "-mieee-fp"
25992 .PD 0
25993 .IP "\fB\-mno\-ieee\-fp\fR" 4
25994 .IX Item "-mno-ieee-fp"
25995 .PD
25996 Control whether or not the compiler uses \s-1IEEE\s0 floating-point
25997 comparisons.  These correctly handle the case where the result of a
25998 comparison is unordered.
25999 .IP "\fB\-m80387\fR" 4
26000 .IX Item "-m80387"
26001 .PD 0
26002 .IP "\fB\-mhard\-float\fR" 4
26003 .IX Item "-mhard-float"
26004 .PD
26005 Generate output containing 80387 instructions for floating point.
26006 .IP "\fB\-mno\-80387\fR" 4
26007 .IX Item "-mno-80387"
26008 .PD 0
26009 .IP "\fB\-msoft\-float\fR" 4
26010 .IX Item "-msoft-float"
26011 .PD
26012 Generate output containing library calls for floating point.
26013 .Sp
26014 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC.\s0
26015 Normally the facilities of the machine's usual C compiler are used, but
26016 this cannot be done directly in cross-compilation.  You must make your
26017 own arrangements to provide suitable library functions for
26018 cross-compilation.
26019 .Sp
26020 On machines where a function returns floating-point results in the 80387
26021 register stack, some floating-point opcodes may be emitted even if
26022 \&\fB\-msoft\-float\fR is used.
26023 .IP "\fB\-mno\-fp\-ret\-in\-387\fR" 4
26024 .IX Item "-mno-fp-ret-in-387"
26025 Do not use the \s-1FPU\s0 registers for return values of functions.
26026 .Sp
26027 The usual calling convention has functions return values of types
26028 \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR in an \s-1FPU\s0 register, even if there
26029 is no \s-1FPU.\s0  The idea is that the operating system should emulate
26030 an \s-1FPU.\s0
26031 .Sp
26032 The option \fB\-mno\-fp\-ret\-in\-387\fR causes such values to be returned
26033 in ordinary \s-1CPU\s0 registers instead.
26034 .IP "\fB\-mno\-fancy\-math\-387\fR" 4
26035 .IX Item "-mno-fancy-math-387"
26036 Some 387 emulators do not support the \f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR and
26037 \&\f(CW\*(C`sqrt\*(C'\fR instructions for the 387.  Specify this option to avoid
26038 generating those instructions.  This option is the default on
26039 OpenBSD and NetBSD.  This option is overridden when \fB\-march\fR
26040 indicates that the target \s-1CPU\s0 always has an \s-1FPU\s0 and so the
26041 instruction does not need emulation.  These
26042 instructions are not generated unless you also use the
26043 \&\fB\-funsafe\-math\-optimizations\fR switch.
26044 .IP "\fB\-malign\-double\fR" 4
26045 .IX Item "-malign-double"
26046 .PD 0
26047 .IP "\fB\-mno\-align\-double\fR" 4
26048 .IX Item "-mno-align-double"
26049 .PD
26050 Control whether \s-1GCC\s0 aligns \f(CW\*(C`double\*(C'\fR, \f(CW\*(C`long double\*(C'\fR, and
26051 \&\f(CW\*(C`long long\*(C'\fR variables on a two-word boundary or a one-word
26052 boundary.  Aligning \f(CW\*(C`double\*(C'\fR variables on a two-word boundary
26053 produces code that runs somewhat faster on a Pentium at the
26054 expense of more memory.
26055 .Sp
26056 On x86\-64, \fB\-malign\-double\fR is enabled by default.
26057 .Sp
26058 \&\fBWarning:\fR if you use the \fB\-malign\-double\fR switch,
26059 structures containing the above types are aligned differently than
26060 the published application binary interface specifications for the x86\-32
26061 and are not binary compatible with structures in code compiled
26062 without that switch.
26063 .IP "\fB\-m96bit\-long\-double\fR" 4
26064 .IX Item "-m96bit-long-double"
26065 .PD 0
26066 .IP "\fB\-m128bit\-long\-double\fR" 4
26067 .IX Item "-m128bit-long-double"
26068 .PD
26069 These switches control the size of \f(CW\*(C`long double\*(C'\fR type.  The x86\-32
26070 application binary interface specifies the size to be 96 bits,
26071 so \fB\-m96bit\-long\-double\fR is the default in 32\-bit mode.
26072 .Sp
26073 Modern architectures (Pentium and newer) prefer \f(CW\*(C`long double\*(C'\fR
26074 to be aligned to an 8\- or 16\-byte boundary.  In arrays or structures
26075 conforming to the \s-1ABI,\s0 this is not possible.  So specifying
26076 \&\fB\-m128bit\-long\-double\fR aligns \f(CW\*(C`long double\*(C'\fR
26077 to a 16\-byte boundary by padding the \f(CW\*(C`long double\*(C'\fR with an additional
26078 32\-bit zero.
26079 .Sp
26080 In the x86\-64 compiler, \fB\-m128bit\-long\-double\fR is the default choice as
26081 its \s-1ABI\s0 specifies that \f(CW\*(C`long double\*(C'\fR is aligned on 16\-byte boundary.
26082 .Sp
26083 Notice that neither of these options enable any extra precision over the x87
26084 standard of 80 bits for a \f(CW\*(C`long double\*(C'\fR.
26085 .Sp
26086 \&\fBWarning:\fR if you override the default value for your target \s-1ABI,\s0 this
26087 changes the size of 
26088 structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables,
26089 as well as modifying the function calling convention for functions taking
26090 \&\f(CW\*(C`long double\*(C'\fR.  Hence they are not binary-compatible
26091 with code compiled without that switch.
26092 .IP "\fB\-mlong\-double\-64\fR" 4
26093 .IX Item "-mlong-double-64"
26094 .PD 0
26095 .IP "\fB\-mlong\-double\-80\fR" 4
26096 .IX Item "-mlong-double-80"
26097 .IP "\fB\-mlong\-double\-128\fR" 4
26098 .IX Item "-mlong-double-128"
26099 .PD
26100 These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
26101 of 64 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
26102 type. This is the default for 32\-bit Bionic C library.  A size
26103 of 128 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the
26104 \&\f(CW\*(C`_\|_float128\*(C'\fR type. This is the default for 64\-bit Bionic C library.
26105 .Sp
26106 \&\fBWarning:\fR if you override the default value for your target \s-1ABI,\s0 this
26107 changes the size of
26108 structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables,
26109 as well as modifying the function calling convention for functions taking
26110 \&\f(CW\*(C`long double\*(C'\fR.  Hence they are not binary-compatible
26111 with code compiled without that switch.
26112 .IP "\fB\-malign\-data=\fR\fItype\fR" 4
26113 .IX Item "-malign-data=type"
26114 Control how \s-1GCC\s0 aligns variables.  Supported values for \fItype\fR are
26115 \&\fBcompat\fR uses increased alignment value compatible uses \s-1GCC 4.8\s0
26116 and earlier, \fBabi\fR uses alignment value as specified by the
26117 psABI, and \fBcacheline\fR uses increased alignment value to match
26118 the cache line size.  \fBcompat\fR is the default.
26119 .IP "\fB\-mlarge\-data\-threshold=\fR\fIthreshold\fR" 4
26120 .IX Item "-mlarge-data-threshold=threshold"
26121 When \fB\-mcmodel=medium\fR is specified, data objects larger than
26122 \&\fIthreshold\fR are placed in the large data section.  This value must be the
26123 same across all objects linked into the binary, and defaults to 65535.
26124 .IP "\fB\-mrtd\fR" 4
26125 .IX Item "-mrtd"
26126 Use a different function-calling convention, in which functions that
26127 take a fixed number of arguments return with the \f(CW\*(C`ret \f(CInum\f(CW\*(C'\fR
26128 instruction, which pops their arguments while returning.  This saves one
26129 instruction in the caller since there is no need to pop the arguments
26130 there.
26131 .Sp
26132 You can specify that an individual function is called with this calling
26133 sequence with the function attribute \f(CW\*(C`stdcall\*(C'\fR.  You can also
26134 override the \fB\-mrtd\fR option by using the function attribute
26135 \&\f(CW\*(C`cdecl\*(C'\fR.
26136 .Sp
26137 \&\fBWarning:\fR this calling convention is incompatible with the one
26138 normally used on Unix, so you cannot use it if you need to call
26139 libraries compiled with the Unix compiler.
26140 .Sp
26141 Also, you must provide function prototypes for all functions that
26142 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
26143 otherwise incorrect code is generated for calls to those
26144 functions.
26145 .Sp
26146 In addition, seriously incorrect code results if you call a
26147 function with too many arguments.  (Normally, extra arguments are
26148 harmlessly ignored.)
26149 .IP "\fB\-mregparm=\fR\fInum\fR" 4
26150 .IX Item "-mregparm=num"
26151 Control how many registers are used to pass integer arguments.  By
26152 default, no registers are used to pass arguments, and at most 3
26153 registers can be used.  You can control this behavior for a specific
26154 function by using the function attribute \f(CW\*(C`regparm\*(C'\fR.
26155 .Sp
26156 \&\fBWarning:\fR if you use this switch, and
26157 \&\fInum\fR is nonzero, then you must build all modules with the same
26158 value, including any libraries.  This includes the system libraries and
26159 startup modules.
26160 .IP "\fB\-msseregparm\fR" 4
26161 .IX Item "-msseregparm"
26162 Use \s-1SSE\s0 register passing conventions for float and double arguments
26163 and return values.  You can control this behavior for a specific
26164 function by using the function attribute \f(CW\*(C`sseregparm\*(C'\fR.
26165 .Sp
26166 \&\fBWarning:\fR if you use this switch then you must build all
26167 modules with the same value, including any libraries.  This includes
26168 the system libraries and startup modules.
26169 .IP "\fB\-mvect8\-ret\-in\-mem\fR" 4
26170 .IX Item "-mvect8-ret-in-mem"
26171 Return 8\-byte vectors in memory instead of \s-1MMX\s0 registers.  This is the
26172 default on Solaris@tie{}8 and 9 and VxWorks to match the \s-1ABI\s0 of the Sun
26173 Studio compilers until version 12.  Later compiler versions (starting
26174 with Studio 12 Update@tie{}1) follow the \s-1ABI\s0 used by other x86 targets, which
26175 is the default on Solaris@tie{}10 and later.  \fIOnly\fR use this option if
26176 you need to remain compatible with existing code produced by those
26177 previous compiler versions or older versions of \s-1GCC.\s0
26178 .IP "\fB\-mpc32\fR" 4
26179 .IX Item "-mpc32"
26180 .PD 0
26181 .IP "\fB\-mpc64\fR" 4
26182 .IX Item "-mpc64"
26183 .IP "\fB\-mpc80\fR" 4
26184 .IX Item "-mpc80"
26185 .PD
26186 Set 80387 floating-point precision to 32, 64 or 80 bits.  When \fB\-mpc32\fR
26187 is specified, the significands of results of floating-point operations are
26188 rounded to 24 bits (single precision); \fB\-mpc64\fR rounds the
26189 significands of results of floating-point operations to 53 bits (double
26190 precision) and \fB\-mpc80\fR rounds the significands of results of
26191 floating-point operations to 64 bits (extended double precision), which is
26192 the default.  When this option is used, floating-point operations in higher
26193 precisions are not available to the programmer without setting the \s-1FPU\s0
26194 control word explicitly.
26195 .Sp
26196 Setting the rounding of floating-point operations to less than the default
26197 80 bits can speed some programs by 2% or more.  Note that some mathematical
26198 libraries assume that extended-precision (80\-bit) floating-point operations
26199 are enabled by default; routines in such libraries could suffer significant
26200 loss of accuracy, typically through so-called \*(L"catastrophic cancellation\*(R",
26201 when this option is used to set the precision to less than extended precision.
26202 .IP "\fB\-mstackrealign\fR" 4
26203 .IX Item "-mstackrealign"
26204 Realign the stack at entry.  On the x86, the \fB\-mstackrealign\fR
26205 option generates an alternate prologue and epilogue that realigns the
26206 run-time stack if necessary.  This supports mixing legacy codes that keep
26207 4\-byte stack alignment with modern codes that keep 16\-byte stack alignment for
26208 \&\s-1SSE\s0 compatibility.  See also the attribute \f(CW\*(C`force_align_arg_pointer\*(C'\fR,
26209 applicable to individual functions.
26210 .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
26211 .IX Item "-mpreferred-stack-boundary=num"
26212 Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
26213 byte boundary.  If \fB\-mpreferred\-stack\-boundary\fR is not specified,
26214 the default is 4 (16 bytes or 128 bits).
26215 .Sp
26216 \&\fBWarning:\fR When generating code for the x86\-64 architecture with
26217 \&\s-1SSE\s0 extensions disabled, \fB\-mpreferred\-stack\-boundary=3\fR can be
26218 used to keep the stack boundary aligned to 8 byte boundary.  Since
26219 x86\-64 \s-1ABI\s0 require 16 byte stack alignment, this is \s-1ABI\s0 incompatible and
26220 intended to be used in controlled environment where stack space is
26221 important limitation.  This option leads to wrong code when functions
26222 compiled with 16 byte stack alignment (such as functions from a standard
26223 library) are called with misaligned stack.  In this case, \s-1SSE\s0
26224 instructions may lead to misaligned memory access traps.  In addition,
26225 variable arguments are handled incorrectly for 16 byte aligned
26226 objects (including x87 long double and _\|_int128), leading to wrong
26227 results.  You must build all modules with
26228 \&\fB\-mpreferred\-stack\-boundary=3\fR, including any libraries.  This
26229 includes the system libraries and startup modules.
26230 .IP "\fB\-mincoming\-stack\-boundary=\fR\fInum\fR" 4
26231 .IX Item "-mincoming-stack-boundary=num"
26232 Assume the incoming stack is aligned to a 2 raised to \fInum\fR byte
26233 boundary.  If \fB\-mincoming\-stack\-boundary\fR is not specified,
26234 the one specified by \fB\-mpreferred\-stack\-boundary\fR is used.
26235 .Sp
26236 On Pentium and Pentium Pro, \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long double\*(C'\fR values
26237 should be aligned to an 8\-byte boundary (see \fB\-malign\-double\fR) or
26238 suffer significant run time performance penalties.  On Pentium \s-1III,\s0 the
26239 Streaming \s-1SIMD\s0 Extension (\s-1SSE\s0) data type \f(CW\*(C`_\|_m128\*(C'\fR may not work
26240 properly if it is not 16\-byte aligned.
26241 .Sp
26242 To ensure proper alignment of this values on the stack, the stack boundary
26243 must be as aligned as that required by any value stored on the stack.
26244 Further, every function must be generated such that it keeps the stack
26245 aligned.  Thus calling a function compiled with a higher preferred
26246 stack boundary from a function compiled with a lower preferred stack
26247 boundary most likely misaligns the stack.  It is recommended that
26248 libraries that use callbacks always use the default setting.
26249 .Sp
26250 This extra alignment does consume extra stack space, and generally
26251 increases code size.  Code that is sensitive to stack space usage, such
26252 as embedded systems and operating system kernels, may want to reduce the
26253 preferred alignment to \fB\-mpreferred\-stack\-boundary=2\fR.
26254 .IP "\fB\-mmmx\fR" 4
26255 .IX Item "-mmmx"
26256 .PD 0
26257 .IP "\fB\-msse\fR" 4
26258 .IX Item "-msse"
26259 .IP "\fB\-msse2\fR" 4
26260 .IX Item "-msse2"
26261 .IP "\fB\-msse3\fR" 4
26262 .IX Item "-msse3"
26263 .IP "\fB\-mssse3\fR" 4
26264 .IX Item "-mssse3"
26265 .IP "\fB\-msse4\fR" 4
26266 .IX Item "-msse4"
26267 .IP "\fB\-msse4a\fR" 4
26268 .IX Item "-msse4a"
26269 .IP "\fB\-msse4.1\fR" 4
26270 .IX Item "-msse4.1"
26271 .IP "\fB\-msse4.2\fR" 4
26272 .IX Item "-msse4.2"
26273 .IP "\fB\-mavx\fR" 4
26274 .IX Item "-mavx"
26275 .IP "\fB\-mavx2\fR" 4
26276 .IX Item "-mavx2"
26277 .IP "\fB\-mavx512f\fR" 4
26278 .IX Item "-mavx512f"
26279 .IP "\fB\-mavx512pf\fR" 4
26280 .IX Item "-mavx512pf"
26281 .IP "\fB\-mavx512er\fR" 4
26282 .IX Item "-mavx512er"
26283 .IP "\fB\-mavx512cd\fR" 4
26284 .IX Item "-mavx512cd"
26285 .IP "\fB\-mavx512vl\fR" 4
26286 .IX Item "-mavx512vl"
26287 .IP "\fB\-mavx512bw\fR" 4
26288 .IX Item "-mavx512bw"
26289 .IP "\fB\-mavx512dq\fR" 4
26290 .IX Item "-mavx512dq"
26291 .IP "\fB\-mavx512ifma\fR" 4
26292 .IX Item "-mavx512ifma"
26293 .IP "\fB\-mavx512vbmi\fR" 4
26294 .IX Item "-mavx512vbmi"
26295 .IP "\fB\-msha\fR" 4
26296 .IX Item "-msha"
26297 .IP "\fB\-maes\fR" 4
26298 .IX Item "-maes"
26299 .IP "\fB\-mpclmul\fR" 4
26300 .IX Item "-mpclmul"
26301 .IP "\fB\-mclflushopt\fR" 4
26302 .IX Item "-mclflushopt"
26303 .IP "\fB\-mclwb\fR" 4
26304 .IX Item "-mclwb"
26305 .IP "\fB\-mfsgsbase\fR" 4
26306 .IX Item "-mfsgsbase"
26307 .IP "\fB\-mrdrnd\fR" 4
26308 .IX Item "-mrdrnd"
26309 .IP "\fB\-mf16c\fR" 4
26310 .IX Item "-mf16c"
26311 .IP "\fB\-mfma\fR" 4
26312 .IX Item "-mfma"
26313 .IP "\fB\-mpconfig\fR" 4
26314 .IX Item "-mpconfig"
26315 .IP "\fB\-mwbnoinvd\fR" 4
26316 .IX Item "-mwbnoinvd"
26317 .IP "\fB\-mfma4\fR" 4
26318 .IX Item "-mfma4"
26319 .IP "\fB\-mprfchw\fR" 4
26320 .IX Item "-mprfchw"
26321 .IP "\fB\-mrdpid\fR" 4
26322 .IX Item "-mrdpid"
26323 .IP "\fB\-mprefetchwt1\fR" 4
26324 .IX Item "-mprefetchwt1"
26325 .IP "\fB\-mrdseed\fR" 4
26326 .IX Item "-mrdseed"
26327 .IP "\fB\-msgx\fR" 4
26328 .IX Item "-msgx"
26329 .IP "\fB\-mxop\fR" 4
26330 .IX Item "-mxop"
26331 .IP "\fB\-mlwp\fR" 4
26332 .IX Item "-mlwp"
26333 .IP "\fB\-m3dnow\fR" 4
26334 .IX Item "-m3dnow"
26335 .IP "\fB\-m3dnowa\fR" 4
26336 .IX Item "-m3dnowa"
26337 .IP "\fB\-mpopcnt\fR" 4
26338 .IX Item "-mpopcnt"
26339 .IP "\fB\-mabm\fR" 4
26340 .IX Item "-mabm"
26341 .IP "\fB\-madx\fR" 4
26342 .IX Item "-madx"
26343 .IP "\fB\-mbmi\fR" 4
26344 .IX Item "-mbmi"
26345 .IP "\fB\-mbmi2\fR" 4
26346 .IX Item "-mbmi2"
26347 .IP "\fB\-mlzcnt\fR" 4
26348 .IX Item "-mlzcnt"
26349 .IP "\fB\-mfxsr\fR" 4
26350 .IX Item "-mfxsr"
26351 .IP "\fB\-mxsave\fR" 4
26352 .IX Item "-mxsave"
26353 .IP "\fB\-mxsaveopt\fR" 4
26354 .IX Item "-mxsaveopt"
26355 .IP "\fB\-mxsavec\fR" 4
26356 .IX Item "-mxsavec"
26357 .IP "\fB\-mxsaves\fR" 4
26358 .IX Item "-mxsaves"
26359 .IP "\fB\-mrtm\fR" 4
26360 .IX Item "-mrtm"
26361 .IP "\fB\-mhle\fR" 4
26362 .IX Item "-mhle"
26363 .IP "\fB\-mtbm\fR" 4
26364 .IX Item "-mtbm"
26365 .IP "\fB\-mmpx\fR" 4
26366 .IX Item "-mmpx"
26367 .IP "\fB\-mmwaitx\fR" 4
26368 .IX Item "-mmwaitx"
26369 .IP "\fB\-mclzero\fR" 4
26370 .IX Item "-mclzero"
26371 .IP "\fB\-mpku\fR" 4
26372 .IX Item "-mpku"
26373 .IP "\fB\-mavx512vbmi2\fR" 4
26374 .IX Item "-mavx512vbmi2"
26375 .IP "\fB\-mgfni\fR" 4
26376 .IX Item "-mgfni"
26377 .IP "\fB\-mvaes\fR" 4
26378 .IX Item "-mvaes"
26379 .IP "\fB\-mvpclmulqdq\fR" 4
26380 .IX Item "-mvpclmulqdq"
26381 .IP "\fB\-mavx512bitalg\fR" 4
26382 .IX Item "-mavx512bitalg"
26383 .IP "\fB\-mmovdiri\fR" 4
26384 .IX Item "-mmovdiri"
26385 .IP "\fB\-mmovdir64b\fR" 4
26386 .IX Item "-mmovdir64b"
26387 .IP "\fB\-mavx512vpopcntdq\fR" 4
26388 .IX Item "-mavx512vpopcntdq"
26389 .IP "\fB\-mavx5124fmaps\fR" 4
26390 .IX Item "-mavx5124fmaps"
26391 .IP "\fB\-mavx512vnni\fR" 4
26392 .IX Item "-mavx512vnni"
26393 .IP "\fB\-mavx5124vnniw\fR" 4
26394 .IX Item "-mavx5124vnniw"
26395 .PD
26396 These switches enable the use of instructions in the \s-1MMX, SSE,
26397 SSE2, SSE3, SSSE3, SSE4, SSE4A, SSE4.1, SSE4.2, AVX, AVX2, AVX512F, AVX512PF,
26398 AVX512ER, AVX512CD, AVX512VL, AVX512BW, AVX512DQ, AVX512IFMA, AVX512VBMI, SHA,
26399 AES, PCLMUL, CLFLUSHOPT, CLWB, FSGSBASE, RDRND, F16C, FMA, PCONFIG,
26400 WBNOINVD, FMA4, PREFETCHW, RDPID, PREFETCHWT1, RDSEED, SGX, XOP, LWP,\s0
26401 3DNow!, enhanced 3DNow!, \s-1POPCNT, ABM, ADX, BMI, BMI2, LZCNT, FXSR, XSAVE,
26402 XSAVEOPT, XSAVEC, XSAVES, RTM, HLE, TBM, MPX, MWAITX, CLZERO, PKU, AVX512VBMI2,
26403 GFNI, VAES, VPCLMULQDQ, AVX512BITALG, MOVDIRI, MOVDIR64B,
26404 AVX512VPOPCNTDQ, AVX5124FMAPS, AVX512VNNI,\s0 or \s-1AVX5124VNNIW\s0
26405 extended instruction sets.  Each has a corresponding \fB\-mno\-\fR option to
26406 disable use of these instructions.
26407 .Sp
26408 These extensions are also available as built-in functions: see
26409 \&\fBx86 Built-in Functions\fR, for details of the functions enabled and
26410 disabled by these switches.
26411 .Sp
26412 To generate \s-1SSE/SSE2\s0 instructions automatically from floating-point
26413 code (as opposed to 387 instructions), see \fB\-mfpmath=sse\fR.
26414 .Sp
26415 \&\s-1GCC\s0 depresses SSEx instructions when \fB\-mavx\fR is used. Instead, it
26416 generates new \s-1AVX\s0 instructions or \s-1AVX\s0 equivalence for all SSEx instructions
26417 when needed.
26418 .Sp
26419 These options enable \s-1GCC\s0 to use these extended instructions in
26420 generated code, even without \fB\-mfpmath=sse\fR.  Applications that
26421 perform run-time \s-1CPU\s0 detection must compile separate files for each
26422 supported architecture, using the appropriate flags.  In particular,
26423 the file containing the \s-1CPU\s0 detection code should be compiled without
26424 these options.
26425 .IP "\fB\-mdump\-tune\-features\fR" 4
26426 .IX Item "-mdump-tune-features"
26427 This option instructs \s-1GCC\s0 to dump the names of the x86 performance 
26428 tuning features and default settings. The names can be used in 
26429 \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR.
26430 .IP "\fB\-mtune\-ctrl=\fR\fIfeature-list\fR" 4
26431 .IX Item "-mtune-ctrl=feature-list"
26432 This option is used to do fine grain control of x86 code generation features.
26433 \&\fIfeature-list\fR is a comma separated list of \fIfeature\fR names. See also
26434 \&\fB\-mdump\-tune\-features\fR. When specified, the \fIfeature\fR is turned
26435 on if it is not preceded with \fB^\fR, otherwise, it is turned off. 
26436 \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR is intended to be used by \s-1GCC\s0
26437 developers. Using it may lead to code paths not covered by testing and can
26438 potentially result in compiler ICEs or runtime errors.
26439 .IP "\fB\-mno\-default\fR" 4
26440 .IX Item "-mno-default"
26441 This option instructs \s-1GCC\s0 to turn off all tunable features. See also 
26442 \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR and \fB\-mdump\-tune\-features\fR.
26443 .IP "\fB\-mcld\fR" 4
26444 .IX Item "-mcld"
26445 This option instructs \s-1GCC\s0 to emit a \f(CW\*(C`cld\*(C'\fR instruction in the prologue
26446 of functions that use string instructions.  String instructions depend on
26447 the \s-1DF\s0 flag to select between autoincrement or autodecrement mode.  While the
26448 \&\s-1ABI\s0 specifies the \s-1DF\s0 flag to be cleared on function entry, some operating
26449 systems violate this specification by not clearing the \s-1DF\s0 flag in their
26450 exception dispatchers.  The exception handler can be invoked with the \s-1DF\s0 flag
26451 set, which leads to wrong direction mode when string instructions are used.
26452 This option can be enabled by default on 32\-bit x86 targets by configuring
26453 \&\s-1GCC\s0 with the \fB\-\-enable\-cld\fR configure option.  Generation of \f(CW\*(C`cld\*(C'\fR
26454 instructions can be suppressed with the \fB\-mno\-cld\fR compiler option
26455 in this case.
26456 .IP "\fB\-mvzeroupper\fR" 4
26457 .IX Item "-mvzeroupper"
26458 This option instructs \s-1GCC\s0 to emit a \f(CW\*(C`vzeroupper\*(C'\fR instruction
26459 before a transfer of control flow out of the function to minimize
26460 the \s-1AVX\s0 to \s-1SSE\s0 transition penalty as well as remove unnecessary \f(CW\*(C`zeroupper\*(C'\fR
26461 intrinsics.
26462 .IP "\fB\-mprefer\-avx128\fR" 4
26463 .IX Item "-mprefer-avx128"
26464 This option instructs \s-1GCC\s0 to use 128\-bit \s-1AVX\s0 instructions instead of
26465 256\-bit \s-1AVX\s0 instructions in the auto-vectorizer.
26466 .IP "\fB\-mprefer\-vector\-width=\fR\fIopt\fR" 4
26467 .IX Item "-mprefer-vector-width=opt"
26468 This option instructs \s-1GCC\s0 to use \fIopt\fR\-bit vector width in instructions
26469 instead of default on the selected platform.
26470 .RS 4
26471 .IP "\fBnone\fR" 4
26472 .IX Item "none"
26473 No extra limitations applied to \s-1GCC\s0 other than defined by the selected platform.
26474 .IP "\fB128\fR" 4
26475 .IX Item "128"
26476 Prefer 128\-bit vector width for instructions.
26477 .IP "\fB256\fR" 4
26478 .IX Item "256"
26479 Prefer 256\-bit vector width for instructions.
26480 .IP "\fB512\fR" 4
26481 .IX Item "512"
26482 Prefer 512\-bit vector width for instructions.
26483 .RE
26484 .RS 4
26485 .RE
26486 .IP "\fB\-mcx16\fR" 4
26487 .IX Item "-mcx16"
26488 This option enables \s-1GCC\s0 to generate \f(CW\*(C`CMPXCHG16B\*(C'\fR instructions in 64\-bit
26489 code to implement compare-and-exchange operations on 16\-byte aligned 128\-bit
26490 objects.  This is useful for atomic updates of data structures exceeding one
26491 machine word in size.  The compiler uses this instruction to implement
26492 \&\fB_\|_sync Builtins\fR.  However, for \fB_\|_atomic Builtins\fR operating on
26493 128\-bit integers, a library call is always used.
26494 .IP "\fB\-msahf\fR" 4
26495 .IX Item "-msahf"
26496 This option enables generation of \f(CW\*(C`SAHF\*(C'\fR instructions in 64\-bit code.
26497 Early Intel Pentium 4 CPUs with Intel 64 support,
26498 prior to the introduction of Pentium 4 G1 step in December 2005,
26499 lacked the \f(CW\*(C`LAHF\*(C'\fR and \f(CW\*(C`SAHF\*(C'\fR instructions
26500 which are supported by \s-1AMD64.\s0
26501 These are load and store instructions, respectively, for certain status flags.
26502 In 64\-bit mode, the \f(CW\*(C`SAHF\*(C'\fR instruction is used to optimize \f(CW\*(C`fmod\*(C'\fR,
26503 \&\f(CW\*(C`drem\*(C'\fR, and \f(CW\*(C`remainder\*(C'\fR built-in functions;
26504 see \fBOther Builtins\fR for details.
26505 .IP "\fB\-mmovbe\fR" 4
26506 .IX Item "-mmovbe"
26507 This option enables use of the \f(CW\*(C`movbe\*(C'\fR instruction to implement
26508 \&\f(CW\*(C`_\|_builtin_bswap32\*(C'\fR and \f(CW\*(C`_\|_builtin_bswap64\*(C'\fR.
26509 .IP "\fB\-mshstk\fR" 4
26510 .IX Item "-mshstk"
26511 The \fB\-mshstk\fR option enables shadow stack built-in functions
26512 from x86 Control-flow Enforcement Technology (\s-1CET\s0).
26513 .IP "\fB\-mcrc32\fR" 4
26514 .IX Item "-mcrc32"
26515 This option enables built-in functions \f(CW\*(C`_\|_builtin_ia32_crc32qi\*(C'\fR,
26516 \&\f(CW\*(C`_\|_builtin_ia32_crc32hi\*(C'\fR, \f(CW\*(C`_\|_builtin_ia32_crc32si\*(C'\fR and
26517 \&\f(CW\*(C`_\|_builtin_ia32_crc32di\*(C'\fR to generate the \f(CW\*(C`crc32\*(C'\fR machine instruction.
26518 .IP "\fB\-mrecip\fR" 4
26519 .IX Item "-mrecip"
26520 This option enables use of \f(CW\*(C`RCPSS\*(C'\fR and \f(CW\*(C`RSQRTSS\*(C'\fR instructions
26521 (and their vectorized variants \f(CW\*(C`RCPPS\*(C'\fR and \f(CW\*(C`RSQRTPS\*(C'\fR)
26522 with an additional Newton-Raphson step
26523 to increase precision instead of \f(CW\*(C`DIVSS\*(C'\fR and \f(CW\*(C`SQRTSS\*(C'\fR
26524 (and their vectorized
26525 variants) for single-precision floating-point arguments.  These instructions
26526 are generated only when \fB\-funsafe\-math\-optimizations\fR is enabled
26527 together with \fB\-ffinite\-math\-only\fR and \fB\-fno\-trapping\-math\fR.
26528 Note that while the throughput of the sequence is higher than the throughput
26529 of the non-reciprocal instruction, the precision of the sequence can be
26530 decreased by up to 2 ulp (i.e. the inverse of 1.0 equals 0.99999994).
26531 .Sp
26532 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
26533 (or \f(CW\*(C`RSQRTPS\*(C'\fR) already with \fB\-ffast\-math\fR (or the above option
26534 combination), and doesn't need \fB\-mrecip\fR.
26535 .Sp
26536 Also note that \s-1GCC\s0 emits the above sequence with additional Newton-Raphson step
26537 for vectorized single-float division and vectorized \f(CW\*(C`sqrtf(\f(CIx\f(CW)\*(C'\fR
26538 already with \fB\-ffast\-math\fR (or the above option combination), and
26539 doesn't need \fB\-mrecip\fR.
26540 .IP "\fB\-mrecip=\fR\fIopt\fR" 4
26541 .IX Item "-mrecip=opt"
26542 This option controls which reciprocal estimate instructions
26543 may be used.  \fIopt\fR is a comma-separated list of options, which may
26544 be preceded by a \fB!\fR to invert the option:
26545 .RS 4
26546 .IP "\fBall\fR" 4
26547 .IX Item "all"
26548 Enable all estimate instructions.
26549 .IP "\fBdefault\fR" 4
26550 .IX Item "default"
26551 Enable the default instructions, equivalent to \fB\-mrecip\fR.
26552 .IP "\fBnone\fR" 4
26553 .IX Item "none"
26554 Disable all estimate instructions, equivalent to \fB\-mno\-recip\fR.
26555 .IP "\fBdiv\fR" 4
26556 .IX Item "div"
26557 Enable the approximation for scalar division.
26558 .IP "\fBvec-div\fR" 4
26559 .IX Item "vec-div"
26560 Enable the approximation for vectorized division.
26561 .IP "\fBsqrt\fR" 4
26562 .IX Item "sqrt"
26563 Enable the approximation for scalar square root.
26564 .IP "\fBvec-sqrt\fR" 4
26565 .IX Item "vec-sqrt"
26566 Enable the approximation for vectorized square root.
26567 .RE
26568 .RS 4
26569 .Sp
26570 So, for example, \fB\-mrecip=all,!sqrt\fR enables
26571 all of the reciprocal approximations, except for square root.
26572 .RE
26573 .IP "\fB\-mveclibabi=\fR\fItype\fR" 4
26574 .IX Item "-mveclibabi=type"
26575 Specifies the \s-1ABI\s0 type to use for vectorizing intrinsics using an
26576 external library.  Supported values for \fItype\fR are \fBsvml\fR 
26577 for the Intel short
26578 vector math library and \fBacml\fR for the \s-1AMD\s0 math core library.
26579 To use this option, both \fB\-ftree\-vectorize\fR and
26580 \&\fB\-funsafe\-math\-optimizations\fR have to be enabled, and an \s-1SVML\s0 or \s-1ACML\s0 
26581 ABI-compatible library must be specified at link time.
26582 .Sp
26583 \&\s-1GCC\s0 currently emits calls to \f(CW\*(C`vmldExp2\*(C'\fR,
26584 \&\f(CW\*(C`vmldLn2\*(C'\fR, \f(CW\*(C`vmldLog102\*(C'\fR, \f(CW\*(C`vmldPow2\*(C'\fR,
26585 \&\f(CW\*(C`vmldTanh2\*(C'\fR, \f(CW\*(C`vmldTan2\*(C'\fR, \f(CW\*(C`vmldAtan2\*(C'\fR, \f(CW\*(C`vmldAtanh2\*(C'\fR,
26586 \&\f(CW\*(C`vmldCbrt2\*(C'\fR, \f(CW\*(C`vmldSinh2\*(C'\fR, \f(CW\*(C`vmldSin2\*(C'\fR, \f(CW\*(C`vmldAsinh2\*(C'\fR,
26587 \&\f(CW\*(C`vmldAsin2\*(C'\fR, \f(CW\*(C`vmldCosh2\*(C'\fR, \f(CW\*(C`vmldCos2\*(C'\fR, \f(CW\*(C`vmldAcosh2\*(C'\fR,
26588 \&\f(CW\*(C`vmldAcos2\*(C'\fR, \f(CW\*(C`vmlsExp4\*(C'\fR, \f(CW\*(C`vmlsLn4\*(C'\fR,
26589 \&\f(CW\*(C`vmlsLog104\*(C'\fR, \f(CW\*(C`vmlsPow4\*(C'\fR, \f(CW\*(C`vmlsTanh4\*(C'\fR, \f(CW\*(C`vmlsTan4\*(C'\fR,
26590 \&\f(CW\*(C`vmlsAtan4\*(C'\fR, \f(CW\*(C`vmlsAtanh4\*(C'\fR, \f(CW\*(C`vmlsCbrt4\*(C'\fR, \f(CW\*(C`vmlsSinh4\*(C'\fR,
26591 \&\f(CW\*(C`vmlsSin4\*(C'\fR, \f(CW\*(C`vmlsAsinh4\*(C'\fR, \f(CW\*(C`vmlsAsin4\*(C'\fR, \f(CW\*(C`vmlsCosh4\*(C'\fR,
26592 \&\f(CW\*(C`vmlsCos4\*(C'\fR, \f(CW\*(C`vmlsAcosh4\*(C'\fR and \f(CW\*(C`vmlsAcos4\*(C'\fR for corresponding
26593 function type when \fB\-mveclibabi=svml\fR is used, and \f(CW\*(C`_\|_vrd2_sin\*(C'\fR,
26594 \&\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,
26595 \&\f(CW\*(C`_\|_vrd2_log10\*(C'\fR, \f(CW\*(C`_\|_vrs4_sinf\*(C'\fR, \f(CW\*(C`_\|_vrs4_cosf\*(C'\fR,
26596 \&\f(CW\*(C`_\|_vrs4_expf\*(C'\fR, \f(CW\*(C`_\|_vrs4_logf\*(C'\fR, \f(CW\*(C`_\|_vrs4_log2f\*(C'\fR,
26597 \&\f(CW\*(C`_\|_vrs4_log10f\*(C'\fR and \f(CW\*(C`_\|_vrs4_powf\*(C'\fR for the corresponding function type
26598 when \fB\-mveclibabi=acml\fR is used.
26599 .IP "\fB\-mabi=\fR\fIname\fR" 4
26600 .IX Item "-mabi=name"
26601 Generate code for the specified calling convention.  Permissible values
26602 are \fBsysv\fR for the \s-1ABI\s0 used on GNU/Linux and other systems, and
26603 \&\fBms\fR for the Microsoft \s-1ABI.\s0  The default is to use the Microsoft
26604 \&\s-1ABI\s0 when targeting Microsoft Windows and the SysV \s-1ABI\s0 on all other systems.
26605 You can control this behavior for specific functions by
26606 using the function attributes \f(CW\*(C`ms_abi\*(C'\fR and \f(CW\*(C`sysv_abi\*(C'\fR.
26607 .IP "\fB\-mforce\-indirect\-call\fR" 4
26608 .IX Item "-mforce-indirect-call"
26609 Force all calls to functions to be indirect. This is useful
26610 when using Intel Processor Trace where it generates more precise timing
26611 information for function calls.
26612 .IP "\fB\-mcall\-ms2sysv\-xlogues\fR" 4
26613 .IX Item "-mcall-ms2sysv-xlogues"
26614 Due to differences in 64\-bit ABIs, any Microsoft \s-1ABI\s0 function that calls a
26615 System V \s-1ABI\s0 function must consider \s-1RSI, RDI\s0 and \s-1XMM6\-15\s0 as clobbered.  By
26616 default, the code for saving and restoring these registers is emitted inline,
26617 resulting in fairly lengthy prologues and epilogues.  Using
26618 \&\fB\-mcall\-ms2sysv\-xlogues\fR emits prologues and epilogues that
26619 use stubs in the static portion of libgcc to perform these saves and restores,
26620 thus reducing function size at the cost of a few extra instructions.
26621 .IP "\fB\-mtls\-dialect=\fR\fItype\fR" 4
26622 .IX Item "-mtls-dialect=type"
26623 Generate code to access thread-local storage using the \fBgnu\fR or
26624 \&\fBgnu2\fR conventions.  \fBgnu\fR is the conservative default;
26625 \&\fBgnu2\fR is more efficient, but it may add compile\- and run-time
26626 requirements that cannot be satisfied on all systems.
26627 .IP "\fB\-mpush\-args\fR" 4
26628 .IX Item "-mpush-args"
26629 .PD 0
26630 .IP "\fB\-mno\-push\-args\fR" 4
26631 .IX Item "-mno-push-args"
26632 .PD
26633 Use \s-1PUSH\s0 operations to store outgoing parameters.  This method is shorter
26634 and usually equally fast as method using \s-1SUB/MOV\s0 operations and is enabled
26635 by default.  In some cases disabling it may improve performance because of
26636 improved scheduling and reduced dependencies.
26637 .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
26638 .IX Item "-maccumulate-outgoing-args"
26639 If enabled, the maximum amount of space required for outgoing arguments is
26640 computed in the function prologue.  This is faster on most modern CPUs
26641 because of reduced dependencies, improved scheduling and reduced stack usage
26642 when the preferred stack boundary is not equal to 2.  The drawback is a notable
26643 increase in code size.  This switch implies \fB\-mno\-push\-args\fR.
26644 .IP "\fB\-mthreads\fR" 4
26645 .IX Item "-mthreads"
26646 Support thread-safe exception handling on MinGW.  Programs that rely
26647 on thread-safe exception handling must compile and link all code with the
26648 \&\fB\-mthreads\fR option.  When compiling, \fB\-mthreads\fR defines
26649 \&\fB\-D_MT\fR; when linking, it links in a special thread helper library
26650 \&\fB\-lmingwthrd\fR which cleans up per-thread exception-handling data.
26651 .IP "\fB\-mms\-bitfields\fR" 4
26652 .IX Item "-mms-bitfields"
26653 .PD 0
26654 .IP "\fB\-mno\-ms\-bitfields\fR" 4
26655 .IX Item "-mno-ms-bitfields"
26656 .PD
26657 Enable/disable bit-field layout compatible with the native Microsoft
26658 Windows compiler.
26659 .Sp
26660 If \f(CW\*(C`packed\*(C'\fR is used on a structure, or if bit-fields are used,
26661 it may be that the Microsoft \s-1ABI\s0 lays out the structure differently
26662 than the way \s-1GCC\s0 normally does.  Particularly when moving packed
26663 data between functions compiled with \s-1GCC\s0 and the native Microsoft compiler
26664 (either via function call or as data in a file), it may be necessary to access
26665 either format.
26666 .Sp
26667 This option is enabled by default for Microsoft Windows
26668 targets.  This behavior can also be controlled locally by use of variable
26669 or type attributes.  For more information, see \fBx86 Variable Attributes\fR
26670 and \fBx86 Type Attributes\fR.
26671 .Sp
26672 The Microsoft structure layout algorithm is fairly simple with the exception
26673 of the bit-field packing.  
26674 The padding and alignment of members of structures and whether a bit-field 
26675 can straddle a storage-unit boundary are determine by these rules:
26676 .RS 4
26677 .IP "1. Structure members are stored sequentially in the order in which they are" 4
26678 .IX Item "1. Structure members are stored sequentially in the order in which they are"
26679 declared: the first member has the lowest memory address and the last member
26680 the highest.
26681 .IP "2. Every data object has an alignment requirement.  The alignment requirement" 4
26682 .IX Item "2. Every data object has an alignment requirement. The alignment requirement"
26683 for all data except structures, unions, and arrays is either the size of the
26684 object or the current packing size (specified with either the
26685 \&\f(CW\*(C`aligned\*(C'\fR attribute or the \f(CW\*(C`pack\*(C'\fR pragma),
26686 whichever is less.  For structures, unions, and arrays,
26687 the alignment requirement is the largest alignment requirement of its members.
26688 Every object is allocated an offset so that:
26689 .Sp
26690 .Vb 1
26691 \&        offset % alignment_requirement == 0
26692 .Ve
26693 .IP "3. Adjacent bit-fields are packed into the same 1\-, 2\-, or 4\-byte allocation" 4
26694 .IX Item "3. Adjacent bit-fields are packed into the same 1-, 2-, or 4-byte allocation"
26695 unit if the integral types are the same size and if the next bit-field fits
26696 into the current allocation unit without crossing the boundary imposed by the
26697 common alignment requirements of the bit-fields.
26698 .RE
26699 .RS 4
26700 .Sp
26701 \&\s-1MSVC\s0 interprets zero-length bit-fields in the following ways:
26702 .IP "1. If a zero-length bit-field is inserted between two bit-fields that" 4
26703 .IX Item "1. If a zero-length bit-field is inserted between two bit-fields that"
26704 are normally coalesced, the bit-fields are not coalesced.
26705 .Sp
26706 For example:
26707 .Sp
26708 .Vb 6
26709 \&        struct
26710 \&         {
26711 \&           unsigned long bf_1 : 12;
26712 \&           unsigned long : 0;
26713 \&           unsigned long bf_2 : 12;
26714 \&         } t1;
26715 .Ve
26716 .Sp
26717 The size of \f(CW\*(C`t1\*(C'\fR is 8 bytes with the zero-length bit-field.  If the
26718 zero-length bit-field were removed, \f(CW\*(C`t1\*(C'\fR's size would be 4 bytes.
26719 .ie n .IP "2. If a zero-length bit-field is inserted after a bit-field, ""foo"", and the" 4
26720 .el .IP "2. If a zero-length bit-field is inserted after a bit-field, \f(CWfoo\fR, and the" 4
26721 .IX Item "2. If a zero-length bit-field is inserted after a bit-field, foo, and the"
26722 alignment of the zero-length bit-field is greater than the member that follows it,
26723 \&\f(CW\*(C`bar\*(C'\fR, \f(CW\*(C`bar\*(C'\fR is aligned as the type of the zero-length bit-field.
26724 .Sp
26725 For example:
26726 .Sp
26727 .Vb 6
26728 \&        struct
26729 \&         {
26730 \&           char foo : 4;
26731 \&           short : 0;
26732 \&           char bar;
26733 \&         } t2;
26734 \&        
26735 \&        struct
26736 \&         {
26737 \&           char foo : 4;
26738 \&           short : 0;
26739 \&           double bar;
26740 \&         } t3;
26741 .Ve
26742 .Sp
26743 For \f(CW\*(C`t2\*(C'\fR, \f(CW\*(C`bar\*(C'\fR is placed at offset 2, rather than offset 1.
26744 Accordingly, the size of \f(CW\*(C`t2\*(C'\fR is 4.  For \f(CW\*(C`t3\*(C'\fR, the zero-length
26745 bit-field does not affect the alignment of \f(CW\*(C`bar\*(C'\fR or, as a result, the size
26746 of the structure.
26747 .Sp
26748 Taking this into account, it is important to note the following:
26749 .RS 4
26750 .IP "1. If a zero-length bit-field follows a normal bit-field, the type of the" 4
26751 .IX Item "1. If a zero-length bit-field follows a normal bit-field, the type of the"
26752 zero-length bit-field may affect the alignment of the structure as whole. For
26753 example, \f(CW\*(C`t2\*(C'\fR has a size of 4 bytes, since the zero-length bit-field follows a
26754 normal bit-field, and is of type short.
26755 .IP "2. Even if a zero-length bit-field is not followed by a normal bit-field, it may" 4
26756 .IX Item "2. Even if a zero-length bit-field is not followed by a normal bit-field, it may"
26757 still affect the alignment of the structure:
26758 .Sp
26759 .Vb 5
26760 \&        struct
26761 \&         {
26762 \&           char foo : 6;
26763 \&           long : 0;
26764 \&         } t4;
26765 .Ve
26766 .Sp
26767 Here, \f(CW\*(C`t4\*(C'\fR takes up 4 bytes.
26768 .RE
26769 .RS 4
26770 .RE
26771 .IP "3. Zero-length bit-fields following non-bit-field members are ignored:" 4
26772 .IX Item "3. Zero-length bit-fields following non-bit-field members are ignored:"
26773 .Vb 6
26774 \&        struct
26775 \&         {
26776 \&           char foo;
26777 \&           long : 0;
26778 \&           char bar;
26779 \&         } t5;
26780 .Ve
26781 .Sp
26782 Here, \f(CW\*(C`t5\*(C'\fR takes up 2 bytes.
26783 .RE
26784 .RS 4
26785 .RE
26786 .IP "\fB\-mno\-align\-stringops\fR" 4
26787 .IX Item "-mno-align-stringops"
26788 Do not align the destination of inlined string operations.  This switch reduces
26789 code size and improves performance in case the destination is already aligned,
26790 but \s-1GCC\s0 doesn't know about it.
26791 .IP "\fB\-minline\-all\-stringops\fR" 4
26792 .IX Item "-minline-all-stringops"
26793 By default \s-1GCC\s0 inlines string operations only when the destination is 
26794 known to be aligned to least a 4\-byte boundary.  
26795 This enables more inlining and increases code
26796 size, but may improve performance of code that depends on fast
26797 \&\f(CW\*(C`memcpy\*(C'\fR, \f(CW\*(C`strlen\*(C'\fR,
26798 and \f(CW\*(C`memset\*(C'\fR for short lengths.
26799 .IP "\fB\-minline\-stringops\-dynamically\fR" 4
26800 .IX Item "-minline-stringops-dynamically"
26801 For string operations of unknown size, use run-time checks with
26802 inline code for small blocks and a library call for large blocks.
26803 .IP "\fB\-mstringop\-strategy=\fR\fIalg\fR" 4
26804 .IX Item "-mstringop-strategy=alg"
26805 Override the internal decision heuristic for the particular algorithm to use
26806 for inlining string operations.  The allowed values for \fIalg\fR are:
26807 .RS 4
26808 .IP "\fBrep_byte\fR" 4
26809 .IX Item "rep_byte"
26810 .PD 0
26811 .IP "\fBrep_4byte\fR" 4
26812 .IX Item "rep_4byte"
26813 .IP "\fBrep_8byte\fR" 4
26814 .IX Item "rep_8byte"
26815 .PD
26816 Expand using i386 \f(CW\*(C`rep\*(C'\fR prefix of the specified size.
26817 .IP "\fBbyte_loop\fR" 4
26818 .IX Item "byte_loop"
26819 .PD 0
26820 .IP "\fBloop\fR" 4
26821 .IX Item "loop"
26822 .IP "\fBunrolled_loop\fR" 4
26823 .IX Item "unrolled_loop"
26824 .PD
26825 Expand into an inline loop.
26826 .IP "\fBlibcall\fR" 4
26827 .IX Item "libcall"
26828 Always use a library call.
26829 .RE
26830 .RS 4
26831 .RE
26832 .IP "\fB\-mmemcpy\-strategy=\fR\fIstrategy\fR" 4
26833 .IX Item "-mmemcpy-strategy=strategy"
26834 Override the internal decision heuristic to decide if \f(CW\*(C`_\|_builtin_memcpy\*(C'\fR
26835 should be inlined and what inline algorithm to use when the expected size
26836 of the copy operation is known. \fIstrategy\fR 
26837 is a comma-separated list of \fIalg\fR:\fImax_size\fR:\fIdest_align\fR triplets. 
26838 \&\fIalg\fR is specified in \fB\-mstringop\-strategy\fR, \fImax_size\fR specifies
26839 the max byte size with which inline algorithm \fIalg\fR is allowed.  For the last
26840 triplet, the \fImax_size\fR must be \f(CW\*(C`\-1\*(C'\fR. The \fImax_size\fR of the triplets
26841 in the list must be specified in increasing order.  The minimal byte size for 
26842 \&\fIalg\fR is \f(CW0\fR for the first triplet and \f(CW\*(C`\f(CImax_size\f(CW + 1\*(C'\fR of the 
26843 preceding range.
26844 .IP "\fB\-mmemset\-strategy=\fR\fIstrategy\fR" 4
26845 .IX Item "-mmemset-strategy=strategy"
26846 The option is similar to \fB\-mmemcpy\-strategy=\fR except that it is to control
26847 \&\f(CW\*(C`_\|_builtin_memset\*(C'\fR expansion.
26848 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
26849 .IX Item "-momit-leaf-frame-pointer"
26850 Don't keep the frame pointer in a register for leaf functions.  This
26851 avoids the instructions to save, set up, and restore frame pointers and
26852 makes an extra register available in leaf functions.  The option
26853 \&\fB\-fomit\-leaf\-frame\-pointer\fR removes the frame pointer for leaf functions,
26854 which might make debugging harder.
26855 .IP "\fB\-mtls\-direct\-seg\-refs\fR" 4
26856 .IX Item "-mtls-direct-seg-refs"
26857 .PD 0
26858 .IP "\fB\-mno\-tls\-direct\-seg\-refs\fR" 4
26859 .IX Item "-mno-tls-direct-seg-refs"
26860 .PD
26861 Controls whether \s-1TLS\s0 variables may be accessed with offsets from the
26862 \&\s-1TLS\s0 segment register (\f(CW%gs\fR for 32\-bit, \f(CW%fs\fR for 64\-bit),
26863 or whether the thread base pointer must be added.  Whether or not this
26864 is valid depends on the operating system, and whether it maps the
26865 segment to cover the entire \s-1TLS\s0 area.
26866 .Sp
26867 For systems that use the \s-1GNU C\s0 Library, the default is on.
26868 .IP "\fB\-msse2avx\fR" 4
26869 .IX Item "-msse2avx"
26870 .PD 0
26871 .IP "\fB\-mno\-sse2avx\fR" 4
26872 .IX Item "-mno-sse2avx"
26873 .PD
26874 Specify that the assembler should encode \s-1SSE\s0 instructions with \s-1VEX\s0
26875 prefix.  The option \fB\-mavx\fR turns this on by default.
26876 .IP "\fB\-mfentry\fR" 4
26877 .IX Item "-mfentry"
26878 .PD 0
26879 .IP "\fB\-mno\-fentry\fR" 4
26880 .IX Item "-mno-fentry"
26881 .PD
26882 If profiling is active (\fB\-pg\fR), put the profiling
26883 counter call before the prologue.
26884 Note: On x86 architectures the attribute \f(CW\*(C`ms_hook_prologue\*(C'\fR
26885 isn't possible at the moment for \fB\-mfentry\fR and \fB\-pg\fR.
26886 .IP "\fB\-mrecord\-mcount\fR" 4
26887 .IX Item "-mrecord-mcount"
26888 .PD 0
26889 .IP "\fB\-mno\-record\-mcount\fR" 4
26890 .IX Item "-mno-record-mcount"
26891 .PD
26892 If profiling is active (\fB\-pg\fR), generate a _\|_mcount_loc section
26893 that contains pointers to each profiling call. This is useful for
26894 automatically patching and out calls.
26895 .IP "\fB\-mnop\-mcount\fR" 4
26896 .IX Item "-mnop-mcount"
26897 .PD 0
26898 .IP "\fB\-mno\-nop\-mcount\fR" 4
26899 .IX Item "-mno-nop-mcount"
26900 .PD
26901 If profiling is active (\fB\-pg\fR), generate the calls to
26902 the profiling functions as NOPs. This is useful when they
26903 should be patched in later dynamically. This is likely only
26904 useful together with \fB\-mrecord\-mcount\fR.
26905 .IP "\fB\-mskip\-rax\-setup\fR" 4
26906 .IX Item "-mskip-rax-setup"
26907 .PD 0
26908 .IP "\fB\-mno\-skip\-rax\-setup\fR" 4
26909 .IX Item "-mno-skip-rax-setup"
26910 .PD
26911 When generating code for the x86\-64 architecture with \s-1SSE\s0 extensions
26912 disabled, \fB\-mskip\-rax\-setup\fR can be used to skip setting up \s-1RAX\s0
26913 register when there are no variable arguments passed in vector registers.
26914 .Sp
26915 \&\fBWarning:\fR Since \s-1RAX\s0 register is used to avoid unnecessarily
26916 saving vector registers on stack when passing variable arguments, the
26917 impacts of this option are callees may waste some stack space,
26918 misbehave or jump to a random location.  \s-1GCC 4.4\s0 or newer don't have
26919 those issues, regardless the \s-1RAX\s0 register value.
26920 .IP "\fB\-m8bit\-idiv\fR" 4
26921 .IX Item "-m8bit-idiv"
26922 .PD 0
26923 .IP "\fB\-mno\-8bit\-idiv\fR" 4
26924 .IX Item "-mno-8bit-idiv"
26925 .PD
26926 On some processors, like Intel Atom, 8\-bit unsigned integer divide is
26927 much faster than 32\-bit/64\-bit integer divide.  This option generates a
26928 run-time check.  If both dividend and divisor are within range of 0
26929 to 255, 8\-bit unsigned integer divide is used instead of
26930 32\-bit/64\-bit integer divide.
26931 .IP "\fB\-mavx256\-split\-unaligned\-load\fR" 4
26932 .IX Item "-mavx256-split-unaligned-load"
26933 .PD 0
26934 .IP "\fB\-mavx256\-split\-unaligned\-store\fR" 4
26935 .IX Item "-mavx256-split-unaligned-store"
26936 .PD
26937 Split 32\-byte \s-1AVX\s0 unaligned load and store.
26938 .IP "\fB\-mstack\-protector\-guard=\fR\fIguard\fR" 4
26939 .IX Item "-mstack-protector-guard=guard"
26940 .PD 0
26941 .IP "\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR" 4
26942 .IX Item "-mstack-protector-guard-reg=reg"
26943 .IP "\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR" 4
26944 .IX Item "-mstack-protector-guard-offset=offset"
26945 .PD
26946 Generate stack protection code using canary at \fIguard\fR.  Supported
26947 locations are \fBglobal\fR for global canary or \fBtls\fR for per-thread
26948 canary in the \s-1TLS\s0 block (the default).  This option has effect only when
26949 \&\fB\-fstack\-protector\fR or \fB\-fstack\-protector\-all\fR is specified.
26950 .Sp
26951 With the latter choice the options
26952 \&\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR and
26953 \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR furthermore specify
26954 which segment register (\f(CW%fs\fR or \f(CW%gs\fR) to use as base register
26955 for reading the canary, and from what offset from that base register.
26956 The default for those is as specified in the relevant \s-1ABI.\s0
26957 .IP "\fB\-mmitigate\-rop\fR" 4
26958 .IX Item "-mmitigate-rop"
26959 Try to avoid generating code sequences that contain unintended return
26960 opcodes, to mitigate against certain forms of attack. At the moment,
26961 this option is limited in what it can do and should not be relied
26962 on to provide serious protection.
26963 .IP "\fB\-mgeneral\-regs\-only\fR" 4
26964 .IX Item "-mgeneral-regs-only"
26965 Generate code that uses only the general-purpose registers.  This
26966 prevents the compiler from using floating-point, vector, mask and bound
26967 registers.
26968 .IP "\fB\-mindirect\-branch=\fR\fIchoice\fR" 4
26969 .IX Item "-mindirect-branch=choice"
26970 Convert indirect call and jump with \fIchoice\fR.  The default is
26971 \&\fBkeep\fR, which keeps indirect call and jump unmodified.
26972 \&\fBthunk\fR converts indirect call and jump to call and return thunk.
26973 \&\fBthunk-inline\fR converts indirect call and jump to inlined call
26974 and return thunk.  \fBthunk-extern\fR converts indirect call and jump
26975 to external call and return thunk provided in a separate object file.
26976 You can control this behavior for a specific function by using the
26977 function attribute \f(CW\*(C`indirect_branch\*(C'\fR.
26978 .Sp
26979 Note that \fB\-mcmodel=large\fR is incompatible with
26980 \&\fB\-mindirect\-branch=thunk\fR and
26981 \&\fB\-mindirect\-branch=thunk\-extern\fR since the thunk function may
26982 not be reachable in the large code model.
26983 .Sp
26984 Note that \fB\-mindirect\-branch=thunk\-extern\fR is incompatible with
26985 \&\fB\-fcf\-protection=branch\fR and \fB\-fcheck\-pointer\-bounds\fR
26986 since the external thunk can not be modified to disable control-flow
26987 check.
26988 .IP "\fB\-mfunction\-return=\fR\fIchoice\fR" 4
26989 .IX Item "-mfunction-return=choice"
26990 Convert function return with \fIchoice\fR.  The default is \fBkeep\fR,
26991 which keeps function return unmodified.  \fBthunk\fR converts function
26992 return to call and return thunk.  \fBthunk-inline\fR converts function
26993 return to inlined call and return thunk.  \fBthunk-extern\fR converts
26994 function return to external call and return thunk provided in a separate
26995 object file.  You can control this behavior for a specific function by
26996 using the function attribute \f(CW\*(C`function_return\*(C'\fR.
26997 .Sp
26998 Note that \fB\-mcmodel=large\fR is incompatible with
26999 \&\fB\-mfunction\-return=thunk\fR and
27000 \&\fB\-mfunction\-return=thunk\-extern\fR since the thunk function may
27001 not be reachable in the large code model.
27002 .IP "\fB\-mindirect\-branch\-register\fR" 4
27003 .IX Item "-mindirect-branch-register"
27004 Force indirect call and jump via register.
27005 .PP
27006 These \fB\-m\fR switches are supported in addition to the above
27007 on x86\-64 processors in 64\-bit environments.
27008 .IP "\fB\-m32\fR" 4
27009 .IX Item "-m32"
27010 .PD 0
27011 .IP "\fB\-m64\fR" 4
27012 .IX Item "-m64"
27013 .IP "\fB\-mx32\fR" 4
27014 .IX Item "-mx32"
27015 .IP "\fB\-m16\fR" 4
27016 .IX Item "-m16"
27017 .IP "\fB\-miamcu\fR" 4
27018 .IX Item "-miamcu"
27019 .PD
27020 Generate code for a 16\-bit, 32\-bit or 64\-bit environment.
27021 The \fB\-m32\fR option sets \f(CW\*(C`int\*(C'\fR, \f(CW\*(C`long\*(C'\fR, and pointer types
27022 to 32 bits, and
27023 generates code that runs on any i386 system.
27024 .Sp
27025 The \fB\-m64\fR option sets \f(CW\*(C`int\*(C'\fR to 32 bits and \f(CW\*(C`long\*(C'\fR and pointer
27026 types to 64 bits, and generates code for the x86\-64 architecture.
27027 For Darwin only the \fB\-m64\fR option also turns off the \fB\-fno\-pic\fR
27028 and \fB\-mdynamic\-no\-pic\fR options.
27029 .Sp
27030 The \fB\-mx32\fR option sets \f(CW\*(C`int\*(C'\fR, \f(CW\*(C`long\*(C'\fR, and pointer types
27031 to 32 bits, and
27032 generates code for the x86\-64 architecture.
27033 .Sp
27034 The \fB\-m16\fR option is the same as \fB\-m32\fR, except for that
27035 it outputs the \f(CW\*(C`.code16gcc\*(C'\fR assembly directive at the beginning of
27036 the assembly output so that the binary can run in 16\-bit mode.
27037 .Sp
27038 The \fB\-miamcu\fR option generates code which conforms to Intel \s-1MCU\s0
27039 psABI.  It requires the \fB\-m32\fR option to be turned on.
27040 .IP "\fB\-mno\-red\-zone\fR" 4
27041 .IX Item "-mno-red-zone"
27042 Do not use a so-called \*(L"red zone\*(R" for x86\-64 code.  The red zone is mandated
27043 by the x86\-64 \s-1ABI\s0; it is a 128\-byte area beyond the location of the
27044 stack pointer that is not modified by signal or interrupt handlers
27045 and therefore can be used for temporary data without adjusting the stack
27046 pointer.  The flag \fB\-mno\-red\-zone\fR disables this red zone.
27047 .IP "\fB\-mcmodel=small\fR" 4
27048 .IX Item "-mcmodel=small"
27049 Generate code for the small code model: the program and its symbols must
27050 be linked in the lower 2 \s-1GB\s0 of the address space.  Pointers are 64 bits.
27051 Programs can be statically or dynamically linked.  This is the default
27052 code model.
27053 .IP "\fB\-mcmodel=kernel\fR" 4
27054 .IX Item "-mcmodel=kernel"
27055 Generate code for the kernel code model.  The kernel runs in the
27056 negative 2 \s-1GB\s0 of the address space.
27057 This model has to be used for Linux kernel code.
27058 .IP "\fB\-mcmodel=medium\fR" 4
27059 .IX Item "-mcmodel=medium"
27060 Generate code for the medium model: the program is linked in the lower 2
27061 \&\s-1GB\s0 of the address space.  Small symbols are also placed there.  Symbols
27062 with sizes larger than \fB\-mlarge\-data\-threshold\fR are put into
27063 large data or \s-1BSS\s0 sections and can be located above 2GB.  Programs can
27064 be statically or dynamically linked.
27065 .IP "\fB\-mcmodel=large\fR" 4
27066 .IX Item "-mcmodel=large"
27067 Generate code for the large model.  This model makes no assumptions
27068 about addresses and sizes of sections.
27069 .IP "\fB\-maddress\-mode=long\fR" 4
27070 .IX Item "-maddress-mode=long"
27071 Generate code for long address mode.  This is only supported for 64\-bit
27072 and x32 environments.  It is the default address mode for 64\-bit
27073 environments.
27074 .IP "\fB\-maddress\-mode=short\fR" 4
27075 .IX Item "-maddress-mode=short"
27076 Generate code for short address mode.  This is only supported for 32\-bit
27077 and x32 environments.  It is the default address mode for 32\-bit and
27078 x32 environments.
27079 .PP
27080 \fIx86 Windows Options\fR
27081 .IX Subsection "x86 Windows Options"
27082 .PP
27083 These additional options are available for Microsoft Windows targets:
27084 .IP "\fB\-mconsole\fR" 4
27085 .IX Item "-mconsole"
27086 This option
27087 specifies that a console application is to be generated, by
27088 instructing the linker to set the \s-1PE\s0 header subsystem type
27089 required for console applications.
27090 This option is available for Cygwin and MinGW targets and is
27091 enabled by default on those targets.
27092 .IP "\fB\-mdll\fR" 4
27093 .IX Item "-mdll"
27094 This option is available for Cygwin and MinGW targets.  It
27095 specifies that a DLL\-\-\-a dynamic link library\-\-\-is to be
27096 generated, enabling the selection of the required runtime
27097 startup object and entry point.
27098 .IP "\fB\-mnop\-fun\-dllimport\fR" 4
27099 .IX Item "-mnop-fun-dllimport"
27100 This option is available for Cygwin and MinGW targets.  It
27101 specifies that the \f(CW\*(C`dllimport\*(C'\fR attribute should be ignored.
27102 .IP "\fB\-mthread\fR" 4
27103 .IX Item "-mthread"
27104 This option is available for MinGW targets. It specifies
27105 that MinGW-specific thread support is to be used.
27106 .IP "\fB\-municode\fR" 4
27107 .IX Item "-municode"
27108 This option is available for MinGW\-w64 targets.  It causes
27109 the \f(CW\*(C`UNICODE\*(C'\fR preprocessor macro to be predefined, and
27110 chooses Unicode-capable runtime startup code.
27111 .IP "\fB\-mwin32\fR" 4
27112 .IX Item "-mwin32"
27113 This option is available for Cygwin and MinGW targets.  It
27114 specifies that the typical Microsoft Windows predefined macros are to
27115 be set in the pre-processor, but does not influence the choice
27116 of runtime library/startup code.
27117 .IP "\fB\-mwindows\fR" 4
27118 .IX Item "-mwindows"
27119 This option is available for Cygwin and MinGW targets.  It
27120 specifies that a \s-1GUI\s0 application is to be generated by
27121 instructing the linker to set the \s-1PE\s0 header subsystem type
27122 appropriately.
27123 .IP "\fB\-fno\-set\-stack\-executable\fR" 4
27124 .IX Item "-fno-set-stack-executable"
27125 This option is available for MinGW targets. It specifies that
27126 the executable flag for the stack used by nested functions isn't
27127 set. This is necessary for binaries running in kernel mode of
27128 Microsoft Windows, as there the User32 \s-1API,\s0 which is used to set executable
27129 privileges, isn't available.
27130 .IP "\fB\-fwritable\-relocated\-rdata\fR" 4
27131 .IX Item "-fwritable-relocated-rdata"
27132 This option is available for MinGW and Cygwin targets.  It specifies
27133 that relocated-data in read-only section is put into the \f(CW\*(C`.data\*(C'\fR
27134 section.  This is a necessary for older runtimes not supporting
27135 modification of \f(CW\*(C`.rdata\*(C'\fR sections for pseudo-relocation.
27136 .IP "\fB\-mpe\-aligned\-commons\fR" 4
27137 .IX Item "-mpe-aligned-commons"
27138 This option is available for Cygwin and MinGW targets.  It
27139 specifies that the \s-1GNU\s0 extension to the \s-1PE\s0 file format that
27140 permits the correct alignment of \s-1COMMON\s0 variables should be
27141 used when generating code.  It is enabled by default if
27142 \&\s-1GCC\s0 detects that the target assembler found during configuration
27143 supports the feature.
27144 .PP
27145 See also under \fBx86 Options\fR for standard options.
27146 .PP
27147 \fIXstormy16 Options\fR
27148 .IX Subsection "Xstormy16 Options"
27149 .PP
27150 These options are defined for Xstormy16:
27151 .IP "\fB\-msim\fR" 4
27152 .IX Item "-msim"
27153 Choose startup files and linker script suitable for the simulator.
27154 .PP
27155 \fIXtensa Options\fR
27156 .IX Subsection "Xtensa Options"
27157 .PP
27158 These options are supported for Xtensa targets:
27159 .IP "\fB\-mconst16\fR" 4
27160 .IX Item "-mconst16"
27161 .PD 0
27162 .IP "\fB\-mno\-const16\fR" 4
27163 .IX Item "-mno-const16"
27164 .PD
27165 Enable or disable use of \f(CW\*(C`CONST16\*(C'\fR instructions for loading
27166 constant values.  The \f(CW\*(C`CONST16\*(C'\fR instruction is currently not a
27167 standard option from Tensilica.  When enabled, \f(CW\*(C`CONST16\*(C'\fR
27168 instructions are always used in place of the standard \f(CW\*(C`L32R\*(C'\fR
27169 instructions.  The use of \f(CW\*(C`CONST16\*(C'\fR is enabled by default only if
27170 the \f(CW\*(C`L32R\*(C'\fR instruction is not available.
27171 .IP "\fB\-mfused\-madd\fR" 4
27172 .IX Item "-mfused-madd"
27173 .PD 0
27174 .IP "\fB\-mno\-fused\-madd\fR" 4
27175 .IX Item "-mno-fused-madd"
27176 .PD
27177 Enable or disable use of fused multiply/add and multiply/subtract
27178 instructions in the floating-point option.  This has no effect if the
27179 floating-point option is not also enabled.  Disabling fused multiply/add
27180 and multiply/subtract instructions forces the compiler to use separate
27181 instructions for the multiply and add/subtract operations.  This may be
27182 desirable in some cases where strict \s-1IEEE\s0 754\-compliant results are
27183 required: the fused multiply add/subtract instructions do not round the
27184 intermediate result, thereby producing results with \fImore\fR bits of
27185 precision than specified by the \s-1IEEE\s0 standard.  Disabling fused multiply
27186 add/subtract instructions also ensures that the program output is not
27187 sensitive to the compiler's ability to combine multiply and add/subtract
27188 operations.
27189 .IP "\fB\-mserialize\-volatile\fR" 4
27190 .IX Item "-mserialize-volatile"
27191 .PD 0
27192 .IP "\fB\-mno\-serialize\-volatile\fR" 4
27193 .IX Item "-mno-serialize-volatile"
27194 .PD
27195 When this option is enabled, \s-1GCC\s0 inserts \f(CW\*(C`MEMW\*(C'\fR instructions before
27196 \&\f(CW\*(C`volatile\*(C'\fR memory references to guarantee sequential consistency.
27197 The default is \fB\-mserialize\-volatile\fR.  Use
27198 \&\fB\-mno\-serialize\-volatile\fR to omit the \f(CW\*(C`MEMW\*(C'\fR instructions.
27199 .IP "\fB\-mforce\-no\-pic\fR" 4
27200 .IX Item "-mforce-no-pic"
27201 For targets, like GNU/Linux, where all user-mode Xtensa code must be
27202 position-independent code (\s-1PIC\s0), this option disables \s-1PIC\s0 for compiling
27203 kernel code.
27204 .IP "\fB\-mtext\-section\-literals\fR" 4
27205 .IX Item "-mtext-section-literals"
27206 .PD 0
27207 .IP "\fB\-mno\-text\-section\-literals\fR" 4
27208 .IX Item "-mno-text-section-literals"
27209 .PD
27210 These options control the treatment of literal pools.  The default is
27211 \&\fB\-mno\-text\-section\-literals\fR, which places literals in a separate
27212 section in the output file.  This allows the literal pool to be placed
27213 in a data \s-1RAM/ROM,\s0 and it also allows the linker to combine literal
27214 pools from separate object files to remove redundant literals and
27215 improve code size.  With \fB\-mtext\-section\-literals\fR, the literals
27216 are interspersed in the text section in order to keep them as close as
27217 possible to their references.  This may be necessary for large assembly
27218 files.  Literals for each function are placed right before that function.
27219 .IP "\fB\-mauto\-litpools\fR" 4
27220 .IX Item "-mauto-litpools"
27221 .PD 0
27222 .IP "\fB\-mno\-auto\-litpools\fR" 4
27223 .IX Item "-mno-auto-litpools"
27224 .PD
27225 These options control the treatment of literal pools.  The default is
27226 \&\fB\-mno\-auto\-litpools\fR, which places literals in a separate
27227 section in the output file unless \fB\-mtext\-section\-literals\fR is
27228 used.  With \fB\-mauto\-litpools\fR the literals are interspersed in
27229 the text section by the assembler.  Compiler does not produce explicit
27230 \&\f(CW\*(C`.literal\*(C'\fR directives and loads literals into registers with
27231 \&\f(CW\*(C`MOVI\*(C'\fR instructions instead of \f(CW\*(C`L32R\*(C'\fR to let the assembler
27232 do relaxation and place literals as necessary.  This option allows
27233 assembler to create several literal pools per function and assemble
27234 very big functions, which may not be possible with
27235 \&\fB\-mtext\-section\-literals\fR.
27236 .IP "\fB\-mtarget\-align\fR" 4
27237 .IX Item "-mtarget-align"
27238 .PD 0
27239 .IP "\fB\-mno\-target\-align\fR" 4
27240 .IX Item "-mno-target-align"
27241 .PD
27242 When this option is enabled, \s-1GCC\s0 instructs the assembler to
27243 automatically align instructions to reduce branch penalties at the
27244 expense of some code density.  The assembler attempts to widen density
27245 instructions to align branch targets and the instructions following call
27246 instructions.  If there are not enough preceding safe density
27247 instructions to align a target, no widening is performed.  The
27248 default is \fB\-mtarget\-align\fR.  These options do not affect the
27249 treatment of auto-aligned instructions like \f(CW\*(C`LOOP\*(C'\fR, which the
27250 assembler always aligns, either by widening density instructions or
27251 by inserting \s-1NOP\s0 instructions.
27252 .IP "\fB\-mlongcalls\fR" 4
27253 .IX Item "-mlongcalls"
27254 .PD 0
27255 .IP "\fB\-mno\-longcalls\fR" 4
27256 .IX Item "-mno-longcalls"
27257 .PD
27258 When this option is enabled, \s-1GCC\s0 instructs the assembler to translate
27259 direct calls to indirect calls unless it can determine that the target
27260 of a direct call is in the range allowed by the call instruction.  This
27261 translation typically occurs for calls to functions in other source
27262 files.  Specifically, the assembler translates a direct \f(CW\*(C`CALL\*(C'\fR
27263 instruction into an \f(CW\*(C`L32R\*(C'\fR followed by a \f(CW\*(C`CALLX\*(C'\fR instruction.
27264 The default is \fB\-mno\-longcalls\fR.  This option should be used in
27265 programs where the call target can potentially be out of range.  This
27266 option is implemented in the assembler, not the compiler, so the
27267 assembly code generated by \s-1GCC\s0 still shows direct call
27268 instructions\-\-\-look at the disassembled object code to see the actual
27269 instructions.  Note that the assembler uses an indirect call for
27270 every cross-file call, not just those that really are out of range.
27271 .PP
27272 \fIzSeries Options\fR
27273 .IX Subsection "zSeries Options"
27274 .PP
27275 These are listed under
27276 .SH "ENVIRONMENT"
27277 .IX Header "ENVIRONMENT"
27278 This section describes several environment variables that affect how \s-1GCC\s0
27279 operates.  Some of them work by specifying directories or prefixes to use
27280 when searching for various kinds of files.  Some are used to specify other
27281 aspects of the compilation environment.
27282 .PP
27283 Note that you can also specify places to search using options such as
27284 \&\fB\-B\fR, \fB\-I\fR and \fB\-L\fR.  These
27285 take precedence over places specified using environment variables, which
27286 in turn take precedence over those specified by the configuration of \s-1GCC.\s0
27287 .IP "\fB\s-1LANG\s0\fR" 4
27288 .IX Item "LANG"
27289 .PD 0
27290 .IP "\fB\s-1LC_CTYPE\s0\fR" 4
27291 .IX Item "LC_CTYPE"
27292 .IP "\fB\s-1LC_MESSAGES\s0\fR" 4
27293 .IX Item "LC_MESSAGES"
27294 .IP "\fB\s-1LC_ALL\s0\fR" 4
27295 .IX Item "LC_ALL"
27296 .PD
27297 These environment variables control the way that \s-1GCC\s0 uses
27298 localization information which allows \s-1GCC\s0 to work with different
27299 national conventions.  \s-1GCC\s0 inspects the locale categories
27300 \&\fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR if it has been configured to do
27301 so.  These locale categories can be set to any value supported by your
27302 installation.  A typical value is \fBen_GB.UTF\-8\fR for English in the United
27303 Kingdom encoded in \s-1UTF\-8.\s0
27304 .Sp
27305 The \fB\s-1LC_CTYPE\s0\fR environment variable specifies character
27306 classification.  \s-1GCC\s0 uses it to determine the character boundaries in
27307 a string; this is needed for some multibyte encodings that contain quote
27308 and escape characters that are otherwise interpreted as a string
27309 end or escape.
27310 .Sp
27311 The \fB\s-1LC_MESSAGES\s0\fR environment variable specifies the language to
27312 use in diagnostic messages.
27313 .Sp
27314 If the \fB\s-1LC_ALL\s0\fR environment variable is set, it overrides the value
27315 of \fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR; otherwise, \fB\s-1LC_CTYPE\s0\fR
27316 and \fB\s-1LC_MESSAGES\s0\fR default to the value of the \fB\s-1LANG\s0\fR
27317 environment variable.  If none of these variables are set, \s-1GCC\s0
27318 defaults to traditional C English behavior.
27319 .IP "\fB\s-1TMPDIR\s0\fR" 4
27320 .IX Item "TMPDIR"
27321 If \fB\s-1TMPDIR\s0\fR is set, it specifies the directory to use for temporary
27322 files.  \s-1GCC\s0 uses temporary files to hold the output of one stage of
27323 compilation which is to be used as input to the next stage: for example,
27324 the output of the preprocessor, which is the input to the compiler
27325 proper.
27326 .IP "\fB\s-1GCC_COMPARE_DEBUG\s0\fR" 4
27327 .IX Item "GCC_COMPARE_DEBUG"
27328 Setting \fB\s-1GCC_COMPARE_DEBUG\s0\fR is nearly equivalent to passing
27329 \&\fB\-fcompare\-debug\fR to the compiler driver.  See the documentation
27330 of this option for more details.
27331 .IP "\fB\s-1GCC_EXEC_PREFIX\s0\fR" 4
27332 .IX Item "GCC_EXEC_PREFIX"
27333 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is set, it specifies a prefix to use in the
27334 names of the subprograms executed by the compiler.  No slash is added
27335 when this prefix is combined with the name of a subprogram, but you can
27336 specify a prefix that ends with a slash if you wish.
27337 .Sp
27338 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is not set, \s-1GCC\s0 attempts to figure out
27339 an appropriate prefix to use based on the pathname it is invoked with.
27340 .Sp
27341 If \s-1GCC\s0 cannot find the subprogram using the specified prefix, it
27342 tries looking in the usual places for the subprogram.
27343 .Sp
27344 The default value of \fB\s-1GCC_EXEC_PREFIX\s0\fR is
27345 \&\fI\fIprefix\fI/lib/gcc/\fR where \fIprefix\fR is the prefix to
27346 the installed compiler. In many cases \fIprefix\fR is the value
27347 of \f(CW\*(C`prefix\*(C'\fR when you ran the \fIconfigure\fR script.
27348 .Sp
27349 Other prefixes specified with \fB\-B\fR take precedence over this prefix.
27350 .Sp
27351 This prefix is also used for finding files such as \fIcrt0.o\fR that are
27352 used for linking.
27353 .Sp
27354 In addition, the prefix is used in an unusual way in finding the
27355 directories to search for header files.  For each of the standard
27356 directories whose name normally begins with \fB/usr/local/lib/gcc\fR
27357 (more precisely, with the value of \fB\s-1GCC_INCLUDE_DIR\s0\fR), \s-1GCC\s0 tries
27358 replacing that beginning with the specified prefix to produce an
27359 alternate directory name.  Thus, with \fB\-Bfoo/\fR, \s-1GCC\s0 searches
27360 \&\fIfoo/bar\fR just before it searches the standard directory 
27361 \&\fI/usr/local/lib/bar\fR.
27362 If a standard directory begins with the configured
27363 \&\fIprefix\fR then the value of \fIprefix\fR is replaced by
27364 \&\fB\s-1GCC_EXEC_PREFIX\s0\fR when looking for header files.
27365 .IP "\fB\s-1COMPILER_PATH\s0\fR" 4
27366 .IX Item "COMPILER_PATH"
27367 The value of \fB\s-1COMPILER_PATH\s0\fR is a colon-separated list of
27368 directories, much like \fB\s-1PATH\s0\fR.  \s-1GCC\s0 tries the directories thus
27369 specified when searching for subprograms, if it cannot find the
27370 subprograms using \fB\s-1GCC_EXEC_PREFIX\s0\fR.
27371 .IP "\fB\s-1LIBRARY_PATH\s0\fR" 4
27372 .IX Item "LIBRARY_PATH"
27373 The value of \fB\s-1LIBRARY_PATH\s0\fR is a colon-separated list of
27374 directories, much like \fB\s-1PATH\s0\fR.  When configured as a native compiler,
27375 \&\s-1GCC\s0 tries the directories thus specified when searching for special
27376 linker files, if it cannot find them using \fB\s-1GCC_EXEC_PREFIX\s0\fR.  Linking
27377 using \s-1GCC\s0 also uses these directories when searching for ordinary
27378 libraries for the \fB\-l\fR option (but directories specified with
27379 \&\fB\-L\fR come first).
27380 .IP "\fB\s-1LANG\s0\fR" 4
27381 .IX Item "LANG"
27382 This variable is used to pass locale information to the compiler.  One way in
27383 which this information is used is to determine the character set to be used
27384 when character literals, string literals and comments are parsed in C and \*(C+.
27385 When the compiler is configured to allow multibyte characters,
27386 the following values for \fB\s-1LANG\s0\fR are recognized:
27387 .RS 4
27388 .IP "\fBC\-JIS\fR" 4
27389 .IX Item "C-JIS"
27390 Recognize \s-1JIS\s0 characters.
27391 .IP "\fBC\-SJIS\fR" 4
27392 .IX Item "C-SJIS"
27393 Recognize \s-1SJIS\s0 characters.
27394 .IP "\fBC\-EUCJP\fR" 4
27395 .IX Item "C-EUCJP"
27396 Recognize \s-1EUCJP\s0 characters.
27397 .RE
27398 .RS 4
27399 .Sp
27400 If \fB\s-1LANG\s0\fR is not defined, or if it has some other value, then the
27401 compiler uses \f(CW\*(C`mblen\*(C'\fR and \f(CW\*(C`mbtowc\*(C'\fR as defined by the default locale to
27402 recognize and translate multibyte characters.
27403 .RE
27404 .PP
27405 Some additional environment variables affect the behavior of the
27406 preprocessor.
27407 .IP "\fB\s-1CPATH\s0\fR" 4
27408 .IX Item "CPATH"
27409 .PD 0
27410 .IP "\fBC_INCLUDE_PATH\fR" 4
27411 .IX Item "C_INCLUDE_PATH"
27412 .IP "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4
27413 .IX Item "CPLUS_INCLUDE_PATH"
27414 .IP "\fB\s-1OBJC_INCLUDE_PATH\s0\fR" 4
27415 .IX Item "OBJC_INCLUDE_PATH"
27416 .PD
27417 Each variable's value is a list of directories separated by a special
27418 character, much like \fB\s-1PATH\s0\fR, in which to look for header files.
27419 The special character, \f(CW\*(C`PATH_SEPARATOR\*(C'\fR, is target-dependent and
27420 determined at \s-1GCC\s0 build time.  For Microsoft Windows-based targets it is a
27421 semicolon, and for almost all other targets it is a colon.
27422 .Sp
27423 \&\fB\s-1CPATH\s0\fR specifies a list of directories to be searched as if
27424 specified with \fB\-I\fR, but after any paths given with \fB\-I\fR
27425 options on the command line.  This environment variable is used
27426 regardless of which language is being preprocessed.
27427 .Sp
27428 The remaining environment variables apply only when preprocessing the
27429 particular language indicated.  Each specifies a list of directories
27430 to be searched as if specified with \fB\-isystem\fR, but after any
27431 paths given with \fB\-isystem\fR options on the command line.
27432 .Sp
27433 In all these variables, an empty element instructs the compiler to
27434 search its current working directory.  Empty elements can appear at the
27435 beginning or end of a path.  For instance, if the value of
27436 \&\fB\s-1CPATH\s0\fR is \f(CW\*(C`:/special/include\*(C'\fR, that has the same
27437 effect as \fB\-I.\ \-I/special/include\fR.
27438 .IP "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4
27439 .IX Item "DEPENDENCIES_OUTPUT"
27440 If this variable is set, its value specifies how to output
27441 dependencies for Make based on the non-system header files processed
27442 by the compiler.  System header files are ignored in the dependency
27443 output.
27444 .Sp
27445 The value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, in
27446 which case the Make rules are written to that file, guessing the target
27447 name from the source file name.  Or the value can have the form
27448 \&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written to
27449 file \fIfile\fR using \fItarget\fR as the target name.
27450 .Sp
27451 In other words, this environment variable is equivalent to combining
27452 the options \fB\-MM\fR and \fB\-MF\fR,
27453 with an optional \fB\-MT\fR switch too.
27454 .IP "\fB\s-1SUNPRO_DEPENDENCIES\s0\fR" 4
27455 .IX Item "SUNPRO_DEPENDENCIES"
27456 This variable is the same as \fB\s-1DEPENDENCIES_OUTPUT\s0\fR (see above),
27457 except that system header files are not ignored, so it implies
27458 \&\fB\-M\fR rather than \fB\-MM\fR.  However, the dependence on the
27459 main input file is omitted.
27460 .IP "\fB\s-1SOURCE_DATE_EPOCH\s0\fR" 4
27461 .IX Item "SOURCE_DATE_EPOCH"
27462 If this variable is set, its value specifies a \s-1UNIX\s0 timestamp to be
27463 used in replacement of the current date and time in the \f(CW\*(C`_\|_DATE_\|_\*(C'\fR
27464 and \f(CW\*(C`_\|_TIME_\|_\*(C'\fR macros, so that the embedded timestamps become
27465 reproducible.
27466 .Sp
27467 The value of \fB\s-1SOURCE_DATE_EPOCH\s0\fR must be a \s-1UNIX\s0 timestamp,
27468 defined as the number of seconds (excluding leap seconds) since
27469 01 Jan 1970 00:00:00 represented in \s-1ASCII\s0; identical to the output of
27470 \&\fB\f(CB@command\fB{date +%s\fR} on GNU/Linux and other systems that support the
27471 \&\f(CW%s\fR extension in the \f(CW\*(C`date\*(C'\fR command.
27472 .Sp
27473 The value should be a known timestamp such as the last modification
27474 time of the source or package and it should be set by the build
27475 process.
27476 .SH "BUGS"
27477 .IX Header "BUGS"
27478 For instructions on reporting bugs, see
27479 <\fBhttps://gcc.gnu.org/bugs/\fR>.
27480 .SH "FOOTNOTES"
27481 .IX Header "FOOTNOTES"
27482 .IP "1." 4
27483 On some systems, \fBgcc \-shared\fR
27484 needs to build supplementary stub code for constructors to work.  On
27485 multi-libbed systems, \fBgcc \-shared\fR must select the correct support
27486 libraries to link against.  Failing to supply the correct flags may lead
27487 to subtle defects.  Supplying them in cases where they are not necessary
27488 is innocuous.
27489 .SH "SEE ALSO"
27490 .IX Header "SEE ALSO"
27491 \&\fBgpl\fR\|(7), \fBgfdl\fR\|(7), \fBfsf\-funding\fR\|(7),
27492 \&\fBcpp\fR\|(1), \fBgcov\fR\|(1), \fBas\fR\|(1), \fBld\fR\|(1), \fBgdb\fR\|(1), \fBdbx\fR\|(1)
27493 and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIas\fR,
27494 \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
27495 .SH "AUTHOR"
27496 .IX Header "AUTHOR"
27497 See the Info entry for \fBgcc\fR, or
27498 <\fBhttp://gcc.gnu.org/onlinedocs/gcc/Contributors.html\fR>,
27499 for contributors to \s-1GCC.\s0
27500 .SH "COPYRIGHT"
27501 .IX Header "COPYRIGHT"
27502 Copyright (c) 1988\-2018 Free Software Foundation, Inc.
27503 .PP
27504 Permission is granted to copy, distribute and/or modify this document
27505 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3 or
27506 any later version published by the Free Software Foundation; with the
27507 Invariant Sections being \*(L"\s-1GNU\s0 General Public License\*(R" and \*(L"Funding
27508 Free Software\*(R", the Front-Cover texts being (a) (see below), and with
27509 the Back-Cover Texts being (b) (see below).  A copy of the license is
27510 included in the \fBgfdl\fR\|(7) man page.
27511 .PP
27512 (a) The \s-1FSF\s0's Front-Cover Text is:
27513 .PP
27514 .Vb 1
27515 \&     A GNU Manual
27516 .Ve
27517 .PP
27518 (b) The \s-1FSF\s0's Back-Cover Text is:
27519 .PP
27520 .Vb 3
27521 \&     You have freedom to copy and modify this GNU Manual, like GNU
27522 \&     software.  Copies published by the Free Software Foundation raise
27523 \&     funds for GNU development.
27524 .Ve