Upgrade GCC from 4.4.5 to 4.4.6 on the vendor branch
[dragonfly.git] / contrib / gcc-4.4 / gcc / doc / gcc.1
1 .\" Automatically generated by Pod::Man 2.23 (Pod::Simple 3.14)
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 'br\}
42 .\"
43 .\" Escape single quotes in literal strings from groff's Unicode transform.
44 .ie \n(.g .ds Aq \(aq
45 .el       .ds Aq '
46 .\"
47 .\" If the F register is turned on, we'll generate index entries on stderr for
48 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
49 .\" entries marked with X<> in POD.  Of course, you'll have to process the
50 .\" output yourself in some meaningful fashion.
51 .ie \nF \{\
52 .    de IX
53 .    tm Index:\\$1\t\\n%\t"\\$2"
54 ..
55 .    nr % 0
56 .    rr F
57 .\}
58 .el \{\
59 .    de IX
60 ..
61 .\}
62 .\"
63 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
64 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
65 .    \" fudge factors for nroff and troff
66 .if n \{\
67 .    ds #H 0
68 .    ds #V .8m
69 .    ds #F .3m
70 .    ds #[ \f1
71 .    ds #] \fP
72 .\}
73 .if t \{\
74 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
75 .    ds #V .6m
76 .    ds #F 0
77 .    ds #[ \&
78 .    ds #] \&
79 .\}
80 .    \" simple accents for nroff and troff
81 .if n \{\
82 .    ds ' \&
83 .    ds ` \&
84 .    ds ^ \&
85 .    ds , \&
86 .    ds ~ ~
87 .    ds /
88 .\}
89 .if t \{\
90 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
91 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
92 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
93 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
94 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
95 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
96 .\}
97 .    \" troff and (daisy-wheel) nroff accents
98 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
99 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
100 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
101 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
102 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
103 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
104 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
105 .ds ae a\h'-(\w'a'u*4/10)'e
106 .ds Ae A\h'-(\w'A'u*4/10)'E
107 .    \" corrections for vroff
108 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
109 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
110 .    \" for low resolution devices (crt and lpr)
111 .if \n(.H>23 .if \n(.V>19 \
112 \{\
113 .    ds : e
114 .    ds 8 ss
115 .    ds o a
116 .    ds d- d\h'-1'\(ga
117 .    ds D- D\h'-1'\(hy
118 .    ds th \o'bp'
119 .    ds Th \o'LP'
120 .    ds ae ae
121 .    ds Ae AE
122 .\}
123 .rm #[ #] #H #V #F C
124 .\" ========================================================================
125 .\"
126 .IX Title "GCC 1"
127 .TH GCC 1 "2011-04-16" "gcc-4.4.6" "GNU"
128 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
129 .\" way too many mistakes in technical documents.
130 .if n .ad l
131 .nh
132 .SH "NAME"
133 gcc \- GNU project C and C++ compiler
134 .SH "SYNOPSIS"
135 .IX Header "SYNOPSIS"
136 gcc [\fB\-c\fR|\fB\-S\fR|\fB\-E\fR] [\fB\-std=\fR\fIstandard\fR]
137     [\fB\-g\fR] [\fB\-pg\fR] [\fB\-O\fR\fIlevel\fR]
138     [\fB\-W\fR\fIwarn\fR...] [\fB\-pedantic\fR]
139     [\fB\-I\fR\fIdir\fR...] [\fB\-L\fR\fIdir\fR...]
140     [\fB\-D\fR\fImacro\fR[=\fIdefn\fR]...] [\fB\-U\fR\fImacro\fR]
141     [\fB\-f\fR\fIoption\fR...] [\fB\-m\fR\fImachine-option\fR...]
142     [\fB\-o\fR \fIoutfile\fR] [@\fIfile\fR] \fIinfile\fR...
143 .PP
144 Only the most useful options are listed here; see below for the
145 remainder.  \fBg++\fR accepts mostly the same options as \fBgcc\fR.
146 .SH "DESCRIPTION"
147 .IX Header "DESCRIPTION"
148 When you invoke \s-1GCC\s0, it normally does preprocessing, compilation,
149 assembly and linking.  The \*(L"overall options\*(R" allow you to stop this
150 process at an intermediate stage.  For example, the \fB\-c\fR option
151 says not to run the linker.  Then the output consists of object files
152 output by the assembler.
153 .PP
154 Other options are passed on to one stage of processing.  Some options
155 control the preprocessor and others the compiler itself.  Yet other
156 options control the assembler and linker; most of these are not
157 documented here, since you rarely need to use any of them.
158 .PP
159 Most of the command line options that you can use with \s-1GCC\s0 are useful
160 for C programs; when an option is only useful with another language
161 (usually \*(C+), the explanation says so explicitly.  If the description
162 for a particular option does not mention a source language, you can use
163 that option with all supported languages.
164 .PP
165 The \fBgcc\fR program accepts options and file names as operands.  Many
166 options have multi-letter names; therefore multiple single-letter options
167 may \fInot\fR be grouped: \fB\-dv\fR is very different from \fB\-d\ \-v\fR.
168 .PP
169 You can mix options and other arguments.  For the most part, the order
170 you use doesn't matter.  Order does matter when you use several
171 options of the same kind; for example, if you specify \fB\-L\fR more
172 than once, the directories are searched in the order specified.  Also,
173 the placement of the \fB\-l\fR option is significant.
174 .PP
175 Many options have long names starting with \fB\-f\fR or with
176 \&\fB\-W\fR\-\-\-for example,
177 \&\fB\-fmove\-loop\-invariants\fR, \fB\-Wformat\fR and so on.  Most of
178 these have both positive and negative forms; the negative form of
179 \&\fB\-ffoo\fR would be \fB\-fno\-foo\fR.  This manual documents
180 only one of these two forms, whichever one is not the default.
181 .SH "OPTIONS"
182 .IX Header "OPTIONS"
183 .SS "Option Summary"
184 .IX Subsection "Option Summary"
185 Here is a summary of all the options, grouped by type.  Explanations are
186 in the following sections.
187 .IP "\fIOverall Options\fR" 4
188 .IX Item "Overall Options"
189 \&\fB\-c  \-S  \-E  \-o\fR \fIfile\fR  \fB\-combine  \-pipe  \-pass\-exit\-codes  
190 \&\-x\fR \fIlanguage\fR  \fB\-v  \-###  \-\-help\fR[\fB=\fR\fIclass\fR[\fB,...\fR]]  \fB\-\-target\-help  
191 \&\-\-version \-wrapper@\fR\fIfile\fR
192 .IP "\fIC Language Options\fR" 4
193 .IX Item "C Language Options"
194 \&\fB\-ansi  \-std=\fR\fIstandard\fR  \fB\-fgnu89\-inline 
195 \&\-aux\-info\fR \fIfilename\fR 
196 \&\fB\-fno\-asm  \-fno\-builtin  \-fno\-builtin\-\fR\fIfunction\fR 
197 \&\fB\-fhosted  \-ffreestanding \-fopenmp \-fms\-extensions 
198 \&\-trigraphs  \-no\-integrated\-cpp  \-traditional  \-traditional\-cpp 
199 \&\-fallow\-single\-precision  \-fcond\-mismatch \-flax\-vector\-conversions 
200 \&\-fsigned\-bitfields  \-fsigned\-char 
201 \&\-funsigned\-bitfields  \-funsigned\-char\fR
202 .IP "\fI\*(C+ Language Options\fR" 4
203 .IX Item " Language Options"
204 \&\fB\-fabi\-version=\fR\fIn\fR  \fB\-fno\-access\-control  \-fcheck\-new 
205 \&\-fconserve\-space  \-ffriend\-injection 
206 \&\-fno\-elide\-constructors 
207 \&\-fno\-enforce\-eh\-specs 
208 \&\-ffor\-scope  \-fno\-for\-scope  \-fno\-gnu\-keywords 
209 \&\-fno\-implicit\-templates 
210 \&\-fno\-implicit\-inline\-templates 
211 \&\-fno\-implement\-inlines  \-fms\-extensions 
212 \&\-fno\-nonansi\-builtins  \-fno\-operator\-names 
213 \&\-fno\-optional\-diags  \-fpermissive 
214 \&\-frepo  \-fno\-rtti  \-fstats  \-ftemplate\-depth\-\fR\fIn\fR 
215 \&\fB\-fno\-threadsafe\-statics \-fuse\-cxa\-atexit  \-fno\-weak  \-nostdinc++ 
216 \&\-fno\-default\-inline  \-fvisibility\-inlines\-hidden 
217 \&\-fvisibility\-ms\-compat 
218 \&\-Wabi  \-Wctor\-dtor\-privacy 
219 \&\-Wnon\-virtual\-dtor  \-Wreorder 
220 \&\-Weffc++  \-Wstrict\-null\-sentinel 
221 \&\-Wno\-non\-template\-friend  \-Wold\-style\-cast 
222 \&\-Woverloaded\-virtual  \-Wno\-pmf\-conversions 
223 \&\-Wsign\-promo\fR
224 .IP "\fIObjective-C and Objective\-\*(C+ Language Options\fR" 4
225 .IX Item "Objective-C and Objective- Language Options"
226 \&\fB\-fconstant\-string\-class=\fR\fIclass-name\fR 
227 \&\fB\-fgnu\-runtime  \-fnext\-runtime 
228 \&\-fno\-nil\-receivers 
229 \&\-fobjc\-call\-cxx\-cdtors 
230 \&\-fobjc\-direct\-dispatch 
231 \&\-fobjc\-exceptions 
232 \&\-fobjc\-gc 
233 \&\-freplace\-objc\-classes 
234 \&\-fzero\-link 
235 \&\-gen\-decls 
236 \&\-Wassign\-intercept 
237 \&\-Wno\-protocol  \-Wselector 
238 \&\-Wstrict\-selector\-match 
239 \&\-Wundeclared\-selector\fR
240 .IP "\fILanguage Independent Options\fR" 4
241 .IX Item "Language Independent Options"
242 \&\fB\-fmessage\-length=\fR\fIn\fR  
243 \&\fB\-fdiagnostics\-show\-location=\fR[\fBonce\fR|\fBevery-line\fR]  
244 \&\fB\-fdiagnostics\-show\-option\fR
245 .IP "\fIWarning Options\fR" 4
246 .IX Item "Warning Options"
247 \&\fB\-fsyntax\-only  \-pedantic  \-pedantic\-errors 
248 \&\-w  \-Wextra  \-Wall  \-Waddress  \-Waggregate\-return  \-Warray\-bounds 
249 \&\-Wno\-attributes \-Wno\-builtin\-macro\-redefined 
250 \&\-Wc++\-compat \-Wc++0x\-compat \-Wcast\-align  \-Wcast\-qual  
251 \&\-Wchar\-subscripts \-Wclobbered  \-Wcomment 
252 \&\-Wconversion  \-Wcoverage\-mismatch  \-Wno\-deprecated  
253 \&\-Wno\-deprecated\-declarations \-Wdisabled\-optimization  
254 \&\-Wno\-div\-by\-zero \-Wempty\-body  \-Wenum\-compare \-Wno\-endif\-labels 
255 \&\-Werror  \-Werror=* 
256 \&\-Wfatal\-errors  \-Wfloat\-equal  \-Wformat  \-Wformat=2 
257 \&\-Wno\-format\-contains\-nul \-Wno\-format\-extra\-args \-Wformat\-nonliteral 
258 \&\-Wformat\-security  \-Wformat\-y2k 
259 \&\-Wframe\-larger\-than=\fR\fIlen\fR \fB\-Wignored\-qualifiers 
260 \&\-Wimplicit  \-Wimplicit\-function\-declaration  \-Wimplicit\-int 
261 \&\-Winit\-self  \-Winline 
262 \&\-Wno\-int\-to\-pointer\-cast \-Wno\-invalid\-offsetof 
263 \&\-Winvalid\-pch \-Wlarger\-than=\fR\fIlen\fR  \fB\-Wunsafe\-loop\-optimizations 
264 \&\-Wlogical\-op \-Wlong\-long 
265 \&\-Wmain  \-Wmissing\-braces  \-Wmissing\-field\-initializers 
266 \&\-Wmissing\-format\-attribute  \-Wmissing\-include\-dirs 
267 \&\-Wmissing\-noreturn  \-Wno\-mudflap 
268 \&\-Wno\-multichar  \-Wnonnull  \-Wno\-overflow 
269 \&\-Woverlength\-strings  \-Wpacked  \-Wpacked\-bitfield\-compat  \-Wpadded 
270 \&\-Wparentheses  \-Wpedantic\-ms\-format \-Wno\-pedantic\-ms\-format 
271 \&\-Wpointer\-arith  \-Wno\-pointer\-to\-int\-cast 
272 \&\-Wredundant\-decls 
273 \&\-Wreturn\-type  \-Wsequence\-point  \-Wshadow 
274 \&\-Wsign\-compare  \-Wsign\-conversion  \-Wstack\-protector 
275 \&\-Wstrict\-aliasing \-Wstrict\-aliasing=n 
276 \&\-Wstrict\-overflow \-Wstrict\-overflow=\fR\fIn\fR 
277 \&\fB\-Wswitch  \-Wswitch\-default  \-Wswitch\-enum \-Wsync\-nand 
278 \&\-Wsystem\-headers  \-Wtrigraphs  \-Wtype\-limits  \-Wundef  \-Wuninitialized 
279 \&\-Wunknown\-pragmas  \-Wno\-pragmas \-Wunreachable\-code 
280 \&\-Wunused  \-Wunused\-function  \-Wunused\-label  \-Wunused\-parameter 
281 \&\-Wunused\-value  \-Wunused\-variable 
282 \&\-Wvariadic\-macros \-Wvla 
283 \&\-Wvolatile\-register\-var  \-Wwrite\-strings\fR
284 .IP "\fIC and Objective-C-only Warning Options\fR" 4
285 .IX Item "C and Objective-C-only Warning Options"
286 \&\fB\-Wbad\-function\-cast  \-Wmissing\-declarations 
287 \&\-Wmissing\-parameter\-type  \-Wmissing\-prototypes  \-Wnested\-externs 
288 \&\-Wold\-style\-declaration  \-Wold\-style\-definition 
289 \&\-Wstrict\-prototypes  \-Wtraditional  \-Wtraditional\-conversion 
290 \&\-Wdeclaration\-after\-statement \-Wpointer\-sign\fR
291 .IP "\fIDebugging Options\fR" 4
292 .IX Item "Debugging Options"
293 \&\fB\-d\fR\fIletters\fR  \fB\-dumpspecs  \-dumpmachine  \-dumpversion 
294 \&\-fdbg\-cnt\-list \-fdbg\-cnt=\fR\fIcounter-value-list\fR 
295 \&\fB\-fdump\-noaddr \-fdump\-unnumbered 
296 \&\-fdump\-translation\-unit\fR[\fB\-\fR\fIn\fR] 
297 \&\fB\-fdump\-class\-hierarchy\fR[\fB\-\fR\fIn\fR] 
298 \&\fB\-fdump\-ipa\-all \-fdump\-ipa\-cgraph \-fdump\-ipa\-inline 
299 \&\-fdump\-statistics 
300 \&\-fdump\-tree\-all 
301 \&\-fdump\-tree\-original\fR[\fB\-\fR\fIn\fR]  
302 \&\fB\-fdump\-tree\-optimized\fR[\fB\-\fR\fIn\fR] 
303 \&\fB\-fdump\-tree\-cfg \-fdump\-tree\-vcg \-fdump\-tree\-alias 
304 \&\-fdump\-tree\-ch 
305 \&\-fdump\-tree\-ssa\fR[\fB\-\fR\fIn\fR] \fB\-fdump\-tree\-pre\fR[\fB\-\fR\fIn\fR] 
306 \&\fB\-fdump\-tree\-ccp\fR[\fB\-\fR\fIn\fR] \fB\-fdump\-tree\-dce\fR[\fB\-\fR\fIn\fR] 
307 \&\fB\-fdump\-tree\-gimple\fR[\fB\-raw\fR] \fB\-fdump\-tree\-mudflap\fR[\fB\-\fR\fIn\fR] 
308 \&\fB\-fdump\-tree\-dom\fR[\fB\-\fR\fIn\fR] 
309 \&\fB\-fdump\-tree\-dse\fR[\fB\-\fR\fIn\fR] 
310 \&\fB\-fdump\-tree\-phiopt\fR[\fB\-\fR\fIn\fR] 
311 \&\fB\-fdump\-tree\-forwprop\fR[\fB\-\fR\fIn\fR] 
312 \&\fB\-fdump\-tree\-copyrename\fR[\fB\-\fR\fIn\fR] 
313 \&\fB\-fdump\-tree\-nrv \-fdump\-tree\-vect 
314 \&\-fdump\-tree\-sink 
315 \&\-fdump\-tree\-sra\fR[\fB\-\fR\fIn\fR] 
316 \&\fB\-fdump\-tree\-fre\fR[\fB\-\fR\fIn\fR] 
317 \&\fB\-fdump\-tree\-vrp\fR[\fB\-\fR\fIn\fR] 
318 \&\fB\-ftree\-vectorizer\-verbose=\fR\fIn\fR 
319 \&\fB\-fdump\-tree\-storeccp\fR[\fB\-\fR\fIn\fR] 
320 \&\fB\-feliminate\-dwarf2\-dups \-feliminate\-unused\-debug\-types 
321 \&\-feliminate\-unused\-debug\-symbols \-femit\-class\-debug\-always 
322 \&\-fmem\-report \-fpre\-ipa\-mem\-report \-fpost\-ipa\-mem\-report \-fprofile\-arcs 
323 \&\-frandom\-seed=\fR\fIstring\fR \fB\-fsched\-verbose=\fR\fIn\fR 
324 \&\fB\-fsel\-sched\-verbose \-fsel\-sched\-dump\-cfg \-fsel\-sched\-pipelining\-verbose 
325 \&\-ftest\-coverage  \-ftime\-report \-fvar\-tracking 
326 \&\-g  \-g\fR\fIlevel\fR  \fB\-gcoff \-gdwarf\-2 
327 \&\-ggdb  \-gstabs  \-gstabs+  \-gvms  \-gxcoff  \-gxcoff+ 
328 \&\-fno\-merge\-debug\-strings \-fno\-dwarf2\-cfi\-asm 
329 \&\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR 
330 \&\fB\-femit\-struct\-debug\-baseonly \-femit\-struct\-debug\-reduced 
331 \&\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR] 
332 \&\fB\-p  \-pg  \-print\-file\-name=\fR\fIlibrary\fR  \fB\-print\-libgcc\-file\-name 
333 \&\-print\-multi\-directory  \-print\-multi\-lib 
334 \&\-print\-prog\-name=\fR\fIprogram\fR  \fB\-print\-search\-dirs  \-Q 
335 \&\-print\-sysroot \-print\-sysroot\-headers\-suffix 
336 \&\-save\-temps  \-time\fR
337 .IP "\fIOptimization Options\fR" 4
338 .IX Item "Optimization Options"
339 \&\fB\-falign\-functions[=\fR\fIn\fR\fB] \-falign\-jumps[=\fR\fIn\fR\fB] 
340 \&\-falign\-labels[=\fR\fIn\fR\fB] \-falign\-loops[=\fR\fIn\fR\fB] \-fassociative\-math 
341 \&\-fauto\-inc\-dec \-fbranch\-probabilities \-fbranch\-target\-load\-optimize 
342 \&\-fbranch\-target\-load\-optimize2 \-fbtr\-bb\-exclusive \-fcaller\-saves 
343 \&\-fcheck\-data\-deps \-fconserve\-stack \-fcprop\-registers \-fcrossjumping 
344 \&\-fcse\-follow\-jumps \-fcse\-skip\-blocks \-fcx\-fortran\-rules \-fcx\-limited\-range 
345 \&\-fdata\-sections \-fdce \-fdce 
346 \&\-fdelayed\-branch \-fdelete\-null\-pointer\-checks \-fdse \-fdse 
347 \&\-fearly\-inlining \-fexpensive\-optimizations \-ffast\-math 
348 \&\-ffinite\-math\-only \-ffloat\-store \-fforward\-propagate 
349 \&\-ffunction\-sections \-fgcse \-fgcse\-after\-reload \-fgcse\-las \-fgcse\-lm 
350 \&\-fgcse\-sm \-fif\-conversion \-fif\-conversion2 \-findirect\-inlining 
351 \&\-finline\-functions \-finline\-functions\-called\-once \-finline\-limit=\fR\fIn\fR 
352 \&\fB\-finline\-small\-functions \-fipa\-cp \-fipa\-cp\-clone \-fipa\-matrix\-reorg \-fipa\-pta  
353 \&\-fipa\-pure\-const \-fipa\-reference \-fipa\-struct\-reorg 
354 \&\-fipa\-type\-escape \-fira\-algorithm=\fR\fIalgorithm\fR 
355 \&\fB\-fira\-region=\fR\fIregion\fR \fB\-fira\-coalesce \-fno\-ira\-share\-save\-slots 
356 \&\-fno\-ira\-share\-spill\-slots \-fira\-verbose=\fR\fIn\fR 
357 \&\fB\-fivopts \-fkeep\-inline\-functions \-fkeep\-static\-consts 
358 \&\-floop\-block \-floop\-interchange \-floop\-strip\-mine 
359 \&\-fmerge\-all\-constants \-fmerge\-constants \-fmodulo\-sched 
360 \&\-fmodulo\-sched\-allow\-regmoves \-fmove\-loop\-invariants \-fmudflap 
361 \&\-fmudflapir \-fmudflapth \-fno\-branch\-count\-reg \-fno\-default\-inline 
362 \&\-fno\-defer\-pop \-fno\-function\-cse \-fno\-guess\-branch\-probability 
363 \&\-fno\-inline \-fno\-math\-errno \-fno\-peephole \-fno\-peephole2 
364 \&\-fno\-sched\-interblock \-fno\-sched\-spec \-fno\-signed\-zeros 
365 \&\-fno\-toplevel\-reorder \-fno\-trapping\-math \-fno\-zero\-initialized\-in\-bss 
366 \&\-fomit\-frame\-pointer \-foptimize\-register\-move \-foptimize\-sibling\-calls 
367 \&\-fpeel\-loops \-fpredictive\-commoning \-fprefetch\-loop\-arrays 
368 \&\-fprofile\-correction \-fprofile\-dir=\fR\fIpath\fR \fB\-fprofile\-generate 
369 \&\-fprofile\-generate=\fR\fIpath\fR 
370 \&\fB\-fprofile\-use \-fprofile\-use=\fR\fIpath\fR \fB\-fprofile\-values 
371 \&\-freciprocal\-math \-fregmove \-frename\-registers \-freorder\-blocks 
372 \&\-freorder\-blocks\-and\-partition \-freorder\-functions 
373 \&\-frerun\-cse\-after\-loop \-freschedule\-modulo\-scheduled\-loops 
374 \&\-frounding\-math \-frtl\-abstract\-sequences \-fsched2\-use\-superblocks 
375 \&\-fsched2\-use\-traces \-fsched\-spec\-load \-fsched\-spec\-load\-dangerous 
376 \&\-fsched\-stalled\-insns\-dep[=\fR\fIn\fR\fB] \-fsched\-stalled\-insns[=\fR\fIn\fR\fB] 
377 \&\-fschedule\-insns \-fschedule\-insns2 \-fsection\-anchors \-fsee 
378 \&\-fselective\-scheduling \-fselective\-scheduling2 
379 \&\-fsel\-sched\-pipelining \-fsel\-sched\-pipelining\-outer\-loops 
380 \&\-fsignaling\-nans \-fsingle\-precision\-constant \-fsplit\-ivs\-in\-unroller 
381 \&\-fsplit\-wide\-types \-fstack\-protector \-fstack\-protector\-all 
382 \&\-fstrict\-aliasing \-fstrict\-overflow \-fthread\-jumps \-ftracer 
383 \&\-ftree\-builtin\-call\-dce \-ftree\-ccp \-ftree\-ch \-ftree\-copy\-prop 
384 \&\-ftree\-copyrename \-ftree\-dce 
385 \&\-ftree\-dominator\-opts \-ftree\-dse \-ftree\-fre \-ftree\-loop\-im 
386 \&\-ftree\-loop\-distribution 
387 \&\-ftree\-loop\-ivcanon \-ftree\-loop\-linear \-ftree\-loop\-optimize 
388 \&\-ftree\-parallelize\-loops=\fR\fIn\fR \fB\-ftree\-pre \-ftree\-reassoc 
389 \&\-ftree\-sink \-ftree\-sra \-ftree\-switch\-conversion 
390 \&\-ftree\-ter \-ftree\-vect\-loop\-version \-ftree\-vectorize \-ftree\-vrp 
391 \&\-funit\-at\-a\-time \-funroll\-all\-loops \-funroll\-loops 
392 \&\-funsafe\-loop\-optimizations \-funsafe\-math\-optimizations \-funswitch\-loops 
393 \&\-fvariable\-expansion\-in\-unroller \-fvect\-cost\-model \-fvpt \-fweb 
394 \&\-fwhole\-program 
395 \&\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR
396 \&\fB\-O  \-O0  \-O1  \-O2  \-O3  \-Os\fR
397 .IP "\fIPreprocessor Options\fR" 4
398 .IX Item "Preprocessor Options"
399 \&\fB\-A\fR\fIquestion\fR\fB=\fR\fIanswer\fR 
400 \&\fB\-A\-\fR\fIquestion\fR[\fB=\fR\fIanswer\fR] 
401 \&\fB\-C  \-dD  \-dI  \-dM  \-dN 
402 \&\-D\fR\fImacro\fR[\fB=\fR\fIdefn\fR]  \fB\-E  \-H 
403 \&\-idirafter\fR \fIdir\fR 
404 \&\fB\-include\fR \fIfile\fR  \fB\-imacros\fR \fIfile\fR 
405 \&\fB\-iprefix\fR \fIfile\fR  \fB\-iwithprefix\fR \fIdir\fR 
406 \&\fB\-iwithprefixbefore\fR \fIdir\fR  \fB\-isystem\fR \fIdir\fR 
407 \&\fB\-imultilib\fR \fIdir\fR \fB\-isysroot\fR \fIdir\fR 
408 \&\fB\-M  \-MM  \-MF  \-MG  \-MP  \-MQ  \-MT  \-nostdinc  
409 \&\-P  \-fworking\-directory  \-remap 
410 \&\-trigraphs  \-undef  \-U\fR\fImacro\fR  \fB\-Wp,\fR\fIoption\fR 
411 \&\fB\-Xpreprocessor\fR \fIoption\fR
412 .IP "\fIAssembler Option\fR" 4
413 .IX Item "Assembler Option"
414 \&\fB\-Wa,\fR\fIoption\fR  \fB\-Xassembler\fR \fIoption\fR
415 .IP "\fILinker Options\fR" 4
416 .IX Item "Linker Options"
417 \&\fIobject-file-name\fR  \fB\-l\fR\fIlibrary\fR 
418 \&\fB\-nostartfiles  \-nodefaultlibs  \-nostdlib \-pie \-rdynamic 
419 \&\-s  \-static  \-static\-libgcc  \-shared  \-shared\-libgcc  \-symbolic 
420 \&\-T\fR \fIscript\fR  \fB\-Wl,\fR\fIoption\fR  \fB\-Xlinker\fR \fIoption\fR 
421 \&\fB\-u\fR \fIsymbol\fR
422 .IP "\fIDirectory Options\fR" 4
423 .IX Item "Directory Options"
424 \&\fB\-B\fR\fIprefix\fR  \fB\-I\fR\fIdir\fR  \fB\-iquote\fR\fIdir\fR  \fB\-L\fR\fIdir\fR
425 \&\fB\-specs=\fR\fIfile\fR  \fB\-I\- \-\-sysroot=\fR\fIdir\fR
426 .IP "\fITarget Options\fR" 4
427 .IX Item "Target Options"
428 \&\fB\-V\fR \fIversion\fR  \fB\-b\fR \fImachine\fR
429 .IP "\fIMachine Dependent Options\fR" 4
430 .IX Item "Machine Dependent Options"
431 \&\fI\s-1ARC\s0 Options\fR
432 \&\fB\-EB  \-EL 
433 \&\-mmangle\-cpu  \-mcpu=\fR\fIcpu\fR  \fB\-mtext=\fR\fItext-section\fR 
434 \&\fB\-mdata=\fR\fIdata-section\fR  \fB\-mrodata=\fR\fIreadonly-data-section\fR
435 .Sp
436 \&\fI\s-1ARM\s0 Options\fR
437 \&\fB\-mapcs\-frame  \-mno\-apcs\-frame 
438 \&\-mabi=\fR\fIname\fR 
439 \&\fB\-mapcs\-stack\-check  \-mno\-apcs\-stack\-check 
440 \&\-mapcs\-float  \-mno\-apcs\-float 
441 \&\-mapcs\-reentrant  \-mno\-apcs\-reentrant 
442 \&\-msched\-prolog  \-mno\-sched\-prolog 
443 \&\-mlittle\-endian  \-mbig\-endian  \-mwords\-little\-endian 
444 \&\-mfloat\-abi=\fR\fIname\fR  \fB\-msoft\-float  \-mhard\-float  \-mfpe 
445 \&\-mthumb\-interwork  \-mno\-thumb\-interwork 
446 \&\-mcpu=\fR\fIname\fR  \fB\-march=\fR\fIname\fR  \fB\-mfpu=\fR\fIname\fR  
447 \&\fB\-mstructure\-size\-boundary=\fR\fIn\fR 
448 \&\fB\-mabort\-on\-noreturn 
449 \&\-mlong\-calls  \-mno\-long\-calls 
450 \&\-msingle\-pic\-base  \-mno\-single\-pic\-base 
451 \&\-mpic\-register=\fR\fIreg\fR 
452 \&\fB\-mnop\-fun\-dllimport 
453 \&\-mcirrus\-fix\-invalid\-insns \-mno\-cirrus\-fix\-invalid\-insns 
454 \&\-mpoke\-function\-name 
455 \&\-mthumb  \-marm 
456 \&\-mtpcs\-frame  \-mtpcs\-leaf\-frame 
457 \&\-mcaller\-super\-interworking  \-mcallee\-super\-interworking 
458 \&\-mtp=\fR\fIname\fR 
459 \&\fB\-mword\-relocations 
460 \&\-mfix\-cortex\-m3\-ldrd\fR
461 .Sp
462 \&\fI\s-1AVR\s0 Options\fR
463 \&\fB\-mmcu=\fR\fImcu\fR  \fB\-msize  \-mno\-interrupts 
464 \&\-mcall\-prologues  \-mno\-tablejump  \-mtiny\-stack  \-mint8\fR
465 .Sp
466 \&\fIBlackfin Options\fR
467 \&\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR] 
468 \&\fB\-msim \-momit\-leaf\-frame\-pointer  \-mno\-omit\-leaf\-frame\-pointer 
469 \&\-mspecld\-anomaly  \-mno\-specld\-anomaly  \-mcsync\-anomaly  \-mno\-csync\-anomaly 
470 \&\-mlow\-64k \-mno\-low64k  \-mstack\-check\-l1  \-mid\-shared\-library 
471 \&\-mno\-id\-shared\-library  \-mshared\-library\-id=\fR\fIn\fR 
472 \&\fB\-mleaf\-id\-shared\-library  \-mno\-leaf\-id\-shared\-library 
473 \&\-msep\-data  \-mno\-sep\-data  \-mlong\-calls  \-mno\-long\-calls 
474 \&\-mfast\-fp \-minline\-plt \-mmulticore  \-mcorea  \-mcoreb  \-msdram 
475 \&\-micplb\fR
476 .Sp
477 \&\fI\s-1CRIS\s0 Options\fR
478 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-march=\fR\fIcpu\fR  \fB\-mtune=\fR\fIcpu\fR 
479 \&\fB\-mmax\-stack\-frame=\fR\fIn\fR  \fB\-melinux\-stacksize=\fR\fIn\fR 
480 \&\fB\-metrax4  \-metrax100  \-mpdebug  \-mcc\-init  \-mno\-side\-effects 
481 \&\-mstack\-align  \-mdata\-align  \-mconst\-align 
482 \&\-m32\-bit  \-m16\-bit  \-m8\-bit  \-mno\-prologue\-epilogue  \-mno\-gotplt 
483 \&\-melf  \-maout  \-melinux  \-mlinux  \-sim  \-sim2 
484 \&\-mmul\-bug\-workaround  \-mno\-mul\-bug\-workaround\fR
485 .Sp
486 \&\fI\s-1CRX\s0 Options\fR
487 \&\fB\-mmac \-mpush\-args\fR
488 .Sp
489 \&\fIDarwin Options\fR
490 \&\fB\-all_load  \-allowable_client  \-arch  \-arch_errors_fatal 
491 \&\-arch_only  \-bind_at_load  \-bundle  \-bundle_loader 
492 \&\-client_name  \-compatibility_version  \-current_version 
493 \&\-dead_strip 
494 \&\-dependency\-file  \-dylib_file  \-dylinker_install_name 
495 \&\-dynamic  \-dynamiclib  \-exported_symbols_list 
496 \&\-filelist  \-flat_namespace  \-force_cpusubtype_ALL 
497 \&\-force_flat_namespace  \-headerpad_max_install_names 
498 \&\-iframework 
499 \&\-image_base  \-init  \-install_name  \-keep_private_externs 
500 \&\-multi_module  \-multiply_defined  \-multiply_defined_unused 
501 \&\-noall_load   \-no_dead_strip_inits_and_terms 
502 \&\-nofixprebinding \-nomultidefs  \-noprebind  \-noseglinkedit 
503 \&\-pagezero_size  \-prebind  \-prebind_all_twolevel_modules 
504 \&\-private_bundle  \-read_only_relocs  \-sectalign 
505 \&\-sectobjectsymbols  \-whyload  \-seg1addr 
506 \&\-sectcreate  \-sectobjectsymbols  \-sectorder 
507 \&\-segaddr \-segs_read_only_addr \-segs_read_write_addr 
508 \&\-seg_addr_table  \-seg_addr_table_filename  \-seglinkedit 
509 \&\-segprot  \-segs_read_only_addr  \-segs_read_write_addr 
510 \&\-single_module  \-static  \-sub_library  \-sub_umbrella 
511 \&\-twolevel_namespace  \-umbrella  \-undefined 
512 \&\-unexported_symbols_list  \-weak_reference_mismatches 
513 \&\-whatsloaded \-F \-gused \-gfull \-mmacosx\-version\-min=\fR\fIversion\fR 
514 \&\fB\-mkernel \-mone\-byte\-bool\fR
515 .Sp
516 \&\fI\s-1DEC\s0 Alpha Options\fR
517 \&\fB\-mno\-fp\-regs  \-msoft\-float  \-malpha\-as  \-mgas 
518 \&\-mieee  \-mieee\-with\-inexact  \-mieee\-conformant 
519 \&\-mfp\-trap\-mode=\fR\fImode\fR  \fB\-mfp\-rounding\-mode=\fR\fImode\fR 
520 \&\fB\-mtrap\-precision=\fR\fImode\fR  \fB\-mbuild\-constants 
521 \&\-mcpu=\fR\fIcpu-type\fR  \fB\-mtune=\fR\fIcpu-type\fR 
522 \&\fB\-mbwx  \-mmax  \-mfix  \-mcix 
523 \&\-mfloat\-vax  \-mfloat\-ieee 
524 \&\-mexplicit\-relocs  \-msmall\-data  \-mlarge\-data 
525 \&\-msmall\-text  \-mlarge\-text 
526 \&\-mmemory\-latency=\fR\fItime\fR
527 .Sp
528 \&\fI\s-1DEC\s0 Alpha/VMS Options\fR
529 \&\fB\-mvms\-return\-codes\fR
530 .Sp
531 \&\fI\s-1FR30\s0 Options\fR
532 \&\fB\-msmall\-model \-mno\-lsim\fR
533 .Sp
534 \&\fI\s-1FRV\s0 Options\fR
535 \&\fB\-mgpr\-32  \-mgpr\-64  \-mfpr\-32  \-mfpr\-64 
536 \&\-mhard\-float  \-msoft\-float 
537 \&\-malloc\-cc  \-mfixed\-cc  \-mdword  \-mno\-dword 
538 \&\-mdouble  \-mno\-double 
539 \&\-mmedia  \-mno\-media  \-mmuladd  \-mno\-muladd 
540 \&\-mfdpic  \-minline\-plt \-mgprel\-ro  \-multilib\-library\-pic 
541 \&\-mlinked\-fp  \-mlong\-calls  \-malign\-labels 
542 \&\-mlibrary\-pic  \-macc\-4  \-macc\-8 
543 \&\-mpack  \-mno\-pack  \-mno\-eflags  \-mcond\-move  \-mno\-cond\-move 
544 \&\-moptimize\-membar \-mno\-optimize\-membar 
545 \&\-mscc  \-mno\-scc  \-mcond\-exec  \-mno\-cond\-exec 
546 \&\-mvliw\-branch  \-mno\-vliw\-branch 
547 \&\-mmulti\-cond\-exec  \-mno\-multi\-cond\-exec  \-mnested\-cond\-exec 
548 \&\-mno\-nested\-cond\-exec  \-mtomcat\-stats 
549 \&\-mTLS \-mtls 
550 \&\-mcpu=\fR\fIcpu\fR
551 .Sp
552 \&\fIGNU/Linux Options\fR
553 \&\fB\-muclibc\fR
554 .Sp
555 \&\fIH8/300 Options\fR
556 \&\fB\-mrelax  \-mh  \-ms  \-mn  \-mint32  \-malign\-300\fR
557 .Sp
558 \&\fI\s-1HPPA\s0 Options\fR
559 \&\fB\-march=\fR\fIarchitecture-type\fR 
560 \&\fB\-mbig\-switch  \-mdisable\-fpregs  \-mdisable\-indexing 
561 \&\-mfast\-indirect\-calls  \-mgas  \-mgnu\-ld   \-mhp\-ld 
562 \&\-mfixed\-range=\fR\fIregister-range\fR 
563 \&\fB\-mjump\-in\-delay \-mlinker\-opt \-mlong\-calls 
564 \&\-mlong\-load\-store  \-mno\-big\-switch  \-mno\-disable\-fpregs 
565 \&\-mno\-disable\-indexing  \-mno\-fast\-indirect\-calls  \-mno\-gas 
566 \&\-mno\-jump\-in\-delay  \-mno\-long\-load\-store 
567 \&\-mno\-portable\-runtime  \-mno\-soft\-float 
568 \&\-mno\-space\-regs  \-msoft\-float  \-mpa\-risc\-1\-0 
569 \&\-mpa\-risc\-1\-1  \-mpa\-risc\-2\-0  \-mportable\-runtime 
570 \&\-mschedule=\fR\fIcpu-type\fR  \fB\-mspace\-regs  \-msio  \-mwsio 
571 \&\-munix=\fR\fIunix-std\fR  \fB\-nolibdld  \-static  \-threads\fR
572 .Sp
573 \&\fIi386 and x86\-64 Options\fR
574 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
575 \&\fB\-mfpmath=\fR\fIunit\fR 
576 \&\fB\-masm=\fR\fIdialect\fR  \fB\-mno\-fancy\-math\-387 
577 \&\-mno\-fp\-ret\-in\-387  \-msoft\-float 
578 \&\-mno\-wide\-multiply  \-mrtd  \-malign\-double 
579 \&\-mpreferred\-stack\-boundary=\fR\fInum\fR
580 \&\fB\-mincoming\-stack\-boundary=\fR\fInum\fR
581 \&\fB\-mcld \-mcx16 \-msahf \-mrecip 
582 \&\-mmmx  \-msse  \-msse2 \-msse3 \-mssse3 \-msse4.1 \-msse4.2 \-msse4 \-mavx 
583 \&\-maes \-mpclmul 
584 \&\-msse4a \-m3dnow \-mpopcnt \-mabm \-msse5 
585 \&\-mthreads  \-mno\-align\-stringops  \-minline\-all\-stringops 
586 \&\-minline\-stringops\-dynamically \-mstringop\-strategy=\fR\fIalg\fR 
587 \&\fB\-mpush\-args  \-maccumulate\-outgoing\-args  \-m128bit\-long\-double 
588 \&\-m96bit\-long\-double  \-mregparm=\fR\fInum\fR  \fB\-msseregparm 
589 \&\-mveclibabi=\fR\fItype\fR \fB\-mpc32 \-mpc64 \-mpc80 \-mstackrealign 
590 \&\-momit\-leaf\-frame\-pointer  \-mno\-red\-zone \-mno\-tls\-direct\-seg\-refs 
591 \&\-mcmodel=\fR\fIcode-model\fR 
592 \&\fB\-m32  \-m64 \-mlarge\-data\-threshold=\fR\fInum\fR 
593 \&\fB\-mfused\-madd \-mno\-fused\-madd \-msse2avx\fR
594 .Sp
595 \&\fIi386 and x86\-64 Windows Options\fR
596 \&\fB\-mconsole \-mcygwin \-mno\-cygwin \-mdll
597 \&\-mnop\-fun\-dllimport \-mthread \-mwin32 \-mwindows\fR
598 .Sp
599 \&\fI\s-1IA\-64\s0 Options\fR
600 \&\fB\-mbig\-endian  \-mlittle\-endian  \-mgnu\-as  \-mgnu\-ld  \-mno\-pic 
601 \&\-mvolatile\-asm\-stop  \-mregister\-names  \-mno\-sdata 
602 \&\-mconstant\-gp  \-mauto\-pic  \-minline\-float\-divide\-min\-latency 
603 \&\-minline\-float\-divide\-max\-throughput 
604 \&\-minline\-int\-divide\-min\-latency 
605 \&\-minline\-int\-divide\-max\-throughput  
606 \&\-minline\-sqrt\-min\-latency \-minline\-sqrt\-max\-throughput 
607 \&\-mno\-dwarf2\-asm \-mearly\-stop\-bits 
608 \&\-mfixed\-range=\fR\fIregister-range\fR \fB\-mtls\-size=\fR\fItls-size\fR 
609 \&\fB\-mtune=\fR\fIcpu-type\fR \fB\-mt \-pthread \-milp32 \-mlp64 
610 \&\-mno\-sched\-br\-data\-spec \-msched\-ar\-data\-spec \-mno\-sched\-control\-spec 
611 \&\-msched\-br\-in\-data\-spec \-msched\-ar\-in\-data\-spec \-msched\-in\-control\-spec 
612 \&\-msched\-ldc \-mno\-sched\-control\-ldc \-mno\-sched\-spec\-verbose 
613 \&\-mno\-sched\-prefer\-non\-data\-spec\-insns 
614 \&\-mno\-sched\-prefer\-non\-control\-spec\-insns 
615 \&\-mno\-sched\-count\-spec\-in\-critical\-path\fR
616 .Sp
617 \&\fIM32R/D Options\fR
618 \&\fB\-m32r2 \-m32rx \-m32r 
619 \&\-mdebug 
620 \&\-malign\-loops \-mno\-align\-loops 
621 \&\-missue\-rate=\fR\fInumber\fR 
622 \&\fB\-mbranch\-cost=\fR\fInumber\fR 
623 \&\fB\-mmodel=\fR\fIcode-size-model-type\fR 
624 \&\fB\-msdata=\fR\fIsdata-type\fR 
625 \&\fB\-mno\-flush\-func \-mflush\-func=\fR\fIname\fR 
626 \&\fB\-mno\-flush\-trap \-mflush\-trap=\fR\fInumber\fR 
627 \&\fB\-G\fR \fInum\fR
628 .Sp
629 \&\fIM32C Options\fR
630 \&\fB\-mcpu=\fR\fIcpu\fR \fB\-msim \-memregs=\fR\fInumber\fR
631 .Sp
632 \&\fIM680x0 Options\fR
633 \&\fB\-march=\fR\fIarch\fR  \fB\-mcpu=\fR\fIcpu\fR  \fB\-mtune=\fR\fItune\fR
634 \&\fB\-m68000  \-m68020  \-m68020\-40  \-m68020\-60  \-m68030  \-m68040 
635 \&\-m68060  \-mcpu32  \-m5200  \-m5206e  \-m528x  \-m5307  \-m5407 
636 \&\-mcfv4e  \-mbitfield  \-mno\-bitfield  \-mc68000  \-mc68020 
637 \&\-mnobitfield  \-mrtd  \-mno\-rtd  \-mdiv  \-mno\-div  \-mshort 
638 \&\-mno\-short  \-mhard\-float  \-m68881  \-msoft\-float  \-mpcrel 
639 \&\-malign\-int  \-mstrict\-align  \-msep\-data  \-mno\-sep\-data 
640 \&\-mshared\-library\-id=n  \-mid\-shared\-library  \-mno\-id\-shared\-library 
641 \&\-mxgot \-mno\-xgot\fR
642 .Sp
643 \&\fIM68hc1x Options\fR
644 \&\fB\-m6811  \-m6812  \-m68hc11  \-m68hc12   \-m68hcs12 
645 \&\-mauto\-incdec  \-minmax  \-mlong\-calls  \-mshort 
646 \&\-msoft\-reg\-count=\fR\fIcount\fR
647 .Sp
648 \&\fIMCore Options\fR
649 \&\fB\-mhardlit  \-mno\-hardlit  \-mdiv  \-mno\-div  \-mrelax\-immediates 
650 \&\-mno\-relax\-immediates  \-mwide\-bitfields  \-mno\-wide\-bitfields 
651 \&\-m4byte\-functions  \-mno\-4byte\-functions  \-mcallgraph\-data 
652 \&\-mno\-callgraph\-data  \-mslow\-bytes  \-mno\-slow\-bytes  \-mno\-lsim 
653 \&\-mlittle\-endian  \-mbig\-endian  \-m210  \-m340  \-mstack\-increment\fR
654 .Sp
655 \&\fI\s-1MIPS\s0 Options\fR
656 \&\fB\-EL  \-EB  \-march=\fR\fIarch\fR  \fB\-mtune=\fR\fIarch\fR 
657 \&\fB\-mips1  \-mips2  \-mips3  \-mips4  \-mips32  \-mips32r2 
658 \&\-mips64  \-mips64r2 
659 \&\-mips16  \-mno\-mips16  \-mflip\-mips16 
660 \&\-minterlink\-mips16  \-mno\-interlink\-mips16 
661 \&\-mabi=\fR\fIabi\fR  \fB\-mabicalls  \-mno\-abicalls 
662 \&\-mshared  \-mno\-shared  \-mplt  \-mno\-plt  \-mxgot  \-mno\-xgot 
663 \&\-mgp32  \-mgp64  \-mfp32  \-mfp64  \-mhard\-float  \-msoft\-float 
664 \&\-msingle\-float  \-mdouble\-float  \-mdsp  \-mno\-dsp  \-mdspr2  \-mno\-dspr2 
665 \&\-mfpu=\fR\fIfpu-type\fR 
666 \&\fB\-msmartmips  \-mno\-smartmips 
667 \&\-mpaired\-single  \-mno\-paired\-single  \-mdmx  \-mno\-mdmx 
668 \&\-mips3d  \-mno\-mips3d  \-mmt  \-mno\-mt  \-mllsc  \-mno\-llsc 
669 \&\-mlong64  \-mlong32  \-msym32  \-mno\-sym32 
670 \&\-G\fR\fInum\fR  \fB\-mlocal\-sdata  \-mno\-local\-sdata 
671 \&\-mextern\-sdata  \-mno\-extern\-sdata  \-mgpopt  \-mno\-gopt 
672 \&\-membedded\-data  \-mno\-embedded\-data 
673 \&\-muninit\-const\-in\-rodata  \-mno\-uninit\-const\-in\-rodata 
674 \&\-mcode\-readable=\fR\fIsetting\fR 
675 \&\fB\-msplit\-addresses  \-mno\-split\-addresses 
676 \&\-mexplicit\-relocs  \-mno\-explicit\-relocs 
677 \&\-mcheck\-zero\-division  \-mno\-check\-zero\-division 
678 \&\-mdivide\-traps  \-mdivide\-breaks 
679 \&\-mmemcpy  \-mno\-memcpy  \-mlong\-calls  \-mno\-long\-calls 
680 \&\-mmad  \-mno\-mad  \-mfused\-madd  \-mno\-fused\-madd  \-nocpp 
681 \&\-mfix\-r4000  \-mno\-fix\-r4000  \-mfix\-r4400  \-mno\-fix\-r4400 
682 \&\-mfix\-r10000 \-mno\-fix\-r10000  \-mfix\-vr4120  \-mno\-fix\-vr4120 
683 \&\-mfix\-vr4130  \-mno\-fix\-vr4130  \-mfix\-sb1  \-mno\-fix\-sb1 
684 \&\-mflush\-func=\fR\fIfunc\fR  \fB\-mno\-flush\-func 
685 \&\-mbranch\-cost=\fR\fInum\fR  \fB\-mbranch\-likely  \-mno\-branch\-likely 
686 \&\-mfp\-exceptions \-mno\-fp\-exceptions 
687 \&\-mvr4130\-align \-mno\-vr4130\-align\fR
688 .Sp
689 \&\fI\s-1MMIX\s0 Options\fR
690 \&\fB\-mlibfuncs  \-mno\-libfuncs  \-mepsilon  \-mno\-epsilon  \-mabi=gnu 
691 \&\-mabi=mmixware  \-mzero\-extend  \-mknuthdiv  \-mtoplevel\-symbols 
692 \&\-melf  \-mbranch\-predict  \-mno\-branch\-predict  \-mbase\-addresses 
693 \&\-mno\-base\-addresses  \-msingle\-exit  \-mno\-single\-exit\fR
694 .Sp
695 \&\fI\s-1MN10300\s0 Options\fR
696 \&\fB\-mmult\-bug  \-mno\-mult\-bug 
697 \&\-mam33  \-mno\-am33 
698 \&\-mam33\-2  \-mno\-am33\-2 
699 \&\-mreturn\-pointer\-on\-d0 
700 \&\-mno\-crt0  \-mrelax\fR
701 .Sp
702 \&\fI\s-1PDP\-11\s0 Options\fR
703 \&\fB\-mfpu  \-msoft\-float  \-mac0  \-mno\-ac0  \-m40  \-m45  \-m10 
704 \&\-mbcopy  \-mbcopy\-builtin  \-mint32  \-mno\-int16 
705 \&\-mint16  \-mno\-int32  \-mfloat32  \-mno\-float64 
706 \&\-mfloat64  \-mno\-float32  \-mabshi  \-mno\-abshi 
707 \&\-mbranch\-expensive  \-mbranch\-cheap 
708 \&\-msplit  \-mno\-split  \-munix\-asm  \-mdec\-asm\fR
709 .Sp
710 \&\fIpicoChip Options\fR
711 \&\fB\-mae=\fR\fIae_type\fR \fB\-mvliw\-lookahead=\fR\fIN\fR
712 \&\fB\-msymbol\-as\-address \-mno\-inefficient\-warnings\fR
713 .Sp
714 \&\fIPowerPC Options\fR
715 See \s-1RS/6000\s0 and PowerPC Options.
716 .Sp
717 \&\fI\s-1RS/6000\s0 and PowerPC Options\fR
718 \&\fB\-mcpu=\fR\fIcpu-type\fR 
719 \&\fB\-mtune=\fR\fIcpu-type\fR 
720 \&\fB\-mpower  \-mno\-power  \-mpower2  \-mno\-power2 
721 \&\-mpowerpc  \-mpowerpc64  \-mno\-powerpc 
722 \&\-maltivec  \-mno\-altivec 
723 \&\-mpowerpc\-gpopt  \-mno\-powerpc\-gpopt 
724 \&\-mpowerpc\-gfxopt  \-mno\-powerpc\-gfxopt 
725 \&\-mmfcrf  \-mno\-mfcrf  \-mpopcntb  \-mno\-popcntb  \-mfprnd  \-mno\-fprnd 
726 \&\-mcmpb \-mno\-cmpb \-mmfpgpr \-mno\-mfpgpr \-mhard\-dfp \-mno\-hard\-dfp 
727 \&\-mnew\-mnemonics  \-mold\-mnemonics 
728 \&\-mfull\-toc   \-mminimal\-toc  \-mno\-fp\-in\-toc  \-mno\-sum\-in\-toc 
729 \&\-m64  \-m32  \-mxl\-compat  \-mno\-xl\-compat  \-mpe 
730 \&\-malign\-power  \-malign\-natural 
731 \&\-msoft\-float  \-mhard\-float  \-mmultiple  \-mno\-multiple 
732 \&\-msingle\-float \-mdouble\-float \-msimple\-fpu 
733 \&\-mstring  \-mno\-string  \-mupdate  \-mno\-update 
734 \&\-mavoid\-indexed\-addresses  \-mno\-avoid\-indexed\-addresses 
735 \&\-mfused\-madd  \-mno\-fused\-madd  \-mbit\-align  \-mno\-bit\-align 
736 \&\-mstrict\-align  \-mno\-strict\-align  \-mrelocatable 
737 \&\-mno\-relocatable  \-mrelocatable\-lib  \-mno\-relocatable\-lib 
738 \&\-mtoc  \-mno\-toc  \-mlittle  \-mlittle\-endian  \-mbig  \-mbig\-endian 
739 \&\-mdynamic\-no\-pic  \-maltivec  \-mswdiv 
740 \&\-mprioritize\-restricted\-insns=\fR\fIpriority\fR 
741 \&\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR 
742 \&\fB\-minsert\-sched\-nops=\fR\fIscheme\fR 
743 \&\fB\-mcall\-sysv  \-mcall\-netbsd 
744 \&\-maix\-struct\-return  \-msvr4\-struct\-return 
745 \&\-mabi=\fR\fIabi-type\fR \fB\-msecure\-plt \-mbss\-plt 
746 \&\-misel \-mno\-isel 
747 \&\-misel=yes  \-misel=no 
748 \&\-mspe \-mno\-spe 
749 \&\-mspe=yes  \-mspe=no 
750 \&\-mpaired 
751 \&\-mgen\-cell\-microcode \-mwarn\-cell\-microcode 
752 \&\-mvrsave \-mno\-vrsave 
753 \&\-mmulhw \-mno\-mulhw 
754 \&\-mdlmzb \-mno\-dlmzb 
755 \&\-mfloat\-gprs=yes  \-mfloat\-gprs=no \-mfloat\-gprs=single \-mfloat\-gprs=double 
756 \&\-mprototype  \-mno\-prototype 
757 \&\-msim  \-mmvme  \-mads  \-myellowknife  \-memb  \-msdata 
758 \&\-msdata=\fR\fIopt\fR  \fB\-mvxworks  \-G\fR \fInum\fR  \fB\-pthread\fR
759 .Sp
760 \&\fIS/390 and zSeries Options\fR
761 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
762 \&\fB\-mhard\-float  \-msoft\-float  \-mhard\-dfp \-mno\-hard\-dfp 
763 \&\-mlong\-double\-64 \-mlong\-double\-128 
764 \&\-mbackchain  \-mno\-backchain \-mpacked\-stack  \-mno\-packed\-stack 
765 \&\-msmall\-exec  \-mno\-small\-exec  \-mmvcle \-mno\-mvcle 
766 \&\-m64  \-m31  \-mdebug  \-mno\-debug  \-mesa  \-mzarch 
767 \&\-mtpf\-trace \-mno\-tpf\-trace  \-mfused\-madd  \-mno\-fused\-madd 
768 \&\-mwarn\-framesize  \-mwarn\-dynamicstack  \-mstack\-size \-mstack\-guard\fR
769 .Sp
770 \&\fIScore Options\fR
771 \&\fB\-meb \-mel 
772 \&\-mnhwloop 
773 \&\-muls 
774 \&\-mmac 
775 \&\-mscore5 \-mscore5u \-mscore7 \-mscore7d\fR
776 .Sp
777 \&\fI\s-1SH\s0 Options\fR
778 \&\fB\-m1  \-m2  \-m2e  \-m3  \-m3e 
779 \&\-m4\-nofpu  \-m4\-single\-only  \-m4\-single  \-m4 
780 \&\-m4a\-nofpu \-m4a\-single\-only \-m4a\-single \-m4a \-m4al 
781 \&\-m5\-64media  \-m5\-64media\-nofpu 
782 \&\-m5\-32media  \-m5\-32media\-nofpu 
783 \&\-m5\-compact  \-m5\-compact\-nofpu 
784 \&\-mb  \-ml  \-mdalign  \-mrelax 
785 \&\-mbigtable  \-mfmovd  \-mhitachi \-mrenesas \-mno\-renesas \-mnomacsave 
786 \&\-mieee  \-mbitops  \-misize  \-minline\-ic_invalidate \-mpadstruct  \-mspace 
787 \&\-mprefergot  \-musermode \-multcost=\fR\fInumber\fR \fB\-mdiv=\fR\fIstrategy\fR 
788 \&\fB\-mdivsi3_libfunc=\fR\fIname\fR \fB\-mfixed\-range=\fR\fIregister-range\fR 
789 \&\fB\-madjust\-unroll \-mindexed\-addressing \-mgettrcost=\fR\fInumber\fR \fB\-mpt\-fixed 
790 \&\-minvalid\-symbols\fR
791 .Sp
792 \&\fI\s-1SPARC\s0 Options\fR
793 \&\fB\-mcpu=\fR\fIcpu-type\fR 
794 \&\fB\-mtune=\fR\fIcpu-type\fR 
795 \&\fB\-mcmodel=\fR\fIcode-model\fR 
796 \&\fB\-m32  \-m64  \-mapp\-regs  \-mno\-app\-regs 
797 \&\-mfaster\-structs  \-mno\-faster\-structs 
798 \&\-mfpu  \-mno\-fpu  \-mhard\-float  \-msoft\-float 
799 \&\-mhard\-quad\-float  \-msoft\-quad\-float 
800 \&\-mimpure\-text  \-mno\-impure\-text  \-mlittle\-endian 
801 \&\-mstack\-bias  \-mno\-stack\-bias 
802 \&\-munaligned\-doubles  \-mno\-unaligned\-doubles 
803 \&\-mv8plus  \-mno\-v8plus  \-mvis  \-mno\-vis
804 \&\-threads \-pthreads \-pthread\fR
805 .Sp
806 \&\fI\s-1SPU\s0 Options\fR
807 \&\fB\-mwarn\-reloc \-merror\-reloc 
808 \&\-msafe\-dma \-munsafe\-dma 
809 \&\-mbranch\-hints 
810 \&\-msmall\-mem \-mlarge\-mem \-mstdmain 
811 \&\-mfixed\-range=\fR\fIregister-range\fR
812 .Sp
813 \&\fISystem V Options\fR
814 \&\fB\-Qy  \-Qn  \-YP,\fR\fIpaths\fR  \fB\-Ym,\fR\fIdir\fR
815 .Sp
816 \&\fIV850 Options\fR
817 \&\fB\-mlong\-calls  \-mno\-long\-calls  \-mep  \-mno\-ep 
818 \&\-mprolog\-function  \-mno\-prolog\-function  \-mspace 
819 \&\-mtda=\fR\fIn\fR  \fB\-msda=\fR\fIn\fR  \fB\-mzda=\fR\fIn\fR 
820 \&\fB\-mapp\-regs  \-mno\-app\-regs 
821 \&\-mdisable\-callt  \-mno\-disable\-callt 
822 \&\-mv850e1 
823 \&\-mv850e 
824 \&\-mv850  \-mbig\-switch\fR
825 .Sp
826 \&\fI\s-1VAX\s0 Options\fR
827 \&\fB\-mg  \-mgnu  \-munix\fR
828 .Sp
829 \&\fIVxWorks Options\fR
830 \&\fB\-mrtp  \-non\-static  \-Bstatic  \-Bdynamic 
831 \&\-Xbind\-lazy  \-Xbind\-now\fR
832 .Sp
833 \&\fIx86\-64 Options\fR
834 See i386 and x86\-64 Options.
835 .Sp
836 \&\fIXstormy16 Options\fR
837 \&\fB\-msim\fR
838 .Sp
839 \&\fIXtensa Options\fR
840 \&\fB\-mconst16 \-mno\-const16 
841 \&\-mfused\-madd  \-mno\-fused\-madd 
842 \&\-mserialize\-volatile  \-mno\-serialize\-volatile 
843 \&\-mtext\-section\-literals  \-mno\-text\-section\-literals 
844 \&\-mtarget\-align  \-mno\-target\-align 
845 \&\-mlongcalls  \-mno\-longcalls\fR
846 .Sp
847 \&\fIzSeries Options\fR
848 See S/390 and zSeries Options.
849 .IP "\fICode Generation Options\fR" 4
850 .IX Item "Code Generation Options"
851 \&\fB\-fcall\-saved\-\fR\fIreg\fR  \fB\-fcall\-used\-\fR\fIreg\fR 
852 \&\fB\-ffixed\-\fR\fIreg\fR  \fB\-fexceptions 
853 \&\-fnon\-call\-exceptions  \-funwind\-tables 
854 \&\-fasynchronous\-unwind\-tables 
855 \&\-finhibit\-size\-directive  \-finstrument\-functions 
856 \&\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,... 
857 \&\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,... 
858 \&\-fno\-common  \-fno\-ident 
859 \&\-fpcc\-struct\-return  \-fpic  \-fPIC \-fpie \-fPIE 
860 \&\-fno\-jump\-tables 
861 \&\-frecord\-gcc\-switches 
862 \&\-freg\-struct\-return  \-fshort\-enums 
863 \&\-fshort\-double  \-fshort\-wchar 
864 \&\-fverbose\-asm  \-fpack\-struct[=\fR\fIn\fR\fB]  \-fstack\-check 
865 \&\-fstack\-limit\-register=\fR\fIreg\fR  \fB\-fstack\-limit\-symbol=\fR\fIsym\fR 
866 \&\fB\-fno\-stack\-limit  \-fargument\-alias  \-fargument\-noalias 
867 \&\-fargument\-noalias\-global  \-fargument\-noalias\-anything 
868 \&\-fleading\-underscore  \-ftls\-model=\fR\fImodel\fR 
869 \&\fB\-ftrapv  \-fwrapv  \-fbounds\-check 
870 \&\-fvisibility\fR
871 .SS "Options Controlling the Kind of Output"
872 .IX Subsection "Options Controlling the Kind of Output"
873 Compilation can involve up to four stages: preprocessing, compilation
874 proper, assembly and linking, always in that order.  \s-1GCC\s0 is capable of
875 preprocessing and compiling several files either into several
876 assembler input files, or into one assembler input file; then each
877 assembler input file produces an object file, and linking combines all
878 the object files (those newly compiled, and those specified as input)
879 into an executable file.
880 .PP
881 For any given input file, the file name suffix determines what kind of
882 compilation is done:
883 .IP "\fIfile\fR\fB.c\fR" 4
884 .IX Item "file.c"
885 C source code which must be preprocessed.
886 .IP "\fIfile\fR\fB.i\fR" 4
887 .IX Item "file.i"
888 C source code which should not be preprocessed.
889 .IP "\fIfile\fR\fB.ii\fR" 4
890 .IX Item "file.ii"
891 \&\*(C+ source code which should not be preprocessed.
892 .IP "\fIfile\fR\fB.m\fR" 4
893 .IX Item "file.m"
894 Objective-C source code.  Note that you must link with the \fIlibobjc\fR
895 library to make an Objective-C program work.
896 .IP "\fIfile\fR\fB.mi\fR" 4
897 .IX Item "file.mi"
898 Objective-C source code which should not be preprocessed.
899 .IP "\fIfile\fR\fB.mm\fR" 4
900 .IX Item "file.mm"
901 .PD 0
902 .IP "\fIfile\fR\fB.M\fR" 4
903 .IX Item "file.M"
904 .PD
905 Objective\-\*(C+ source code.  Note that you must link with the \fIlibobjc\fR
906 library to make an Objective\-\*(C+ program work.  Note that \fB.M\fR refers
907 to a literal capital M.
908 .IP "\fIfile\fR\fB.mii\fR" 4
909 .IX Item "file.mii"
910 Objective\-\*(C+ source code which should not be preprocessed.
911 .IP "\fIfile\fR\fB.h\fR" 4
912 .IX Item "file.h"
913 C, \*(C+, Objective-C or Objective\-\*(C+ header file to be turned into a
914 precompiled header.
915 .IP "\fIfile\fR\fB.cc\fR" 4
916 .IX Item "file.cc"
917 .PD 0
918 .IP "\fIfile\fR\fB.cp\fR" 4
919 .IX Item "file.cp"
920 .IP "\fIfile\fR\fB.cxx\fR" 4
921 .IX Item "file.cxx"
922 .IP "\fIfile\fR\fB.cpp\fR" 4
923 .IX Item "file.cpp"
924 .IP "\fIfile\fR\fB.CPP\fR" 4
925 .IX Item "file.CPP"
926 .IP "\fIfile\fR\fB.c++\fR" 4
927 .IX Item "file.c++"
928 .IP "\fIfile\fR\fB.C\fR" 4
929 .IX Item "file.C"
930 .PD
931 \&\*(C+ source code which must be preprocessed.  Note that in \fB.cxx\fR,
932 the last two letters must both be literally \fBx\fR.  Likewise,
933 \&\fB.C\fR refers to a literal capital C.
934 .IP "\fIfile\fR\fB.mm\fR" 4
935 .IX Item "file.mm"
936 .PD 0
937 .IP "\fIfile\fR\fB.M\fR" 4
938 .IX Item "file.M"
939 .PD
940 Objective\-\*(C+ source code which must be preprocessed.
941 .IP "\fIfile\fR\fB.mii\fR" 4
942 .IX Item "file.mii"
943 Objective\-\*(C+ source code which should not be preprocessed.
944 .IP "\fIfile\fR\fB.hh\fR" 4
945 .IX Item "file.hh"
946 .PD 0
947 .IP "\fIfile\fR\fB.H\fR" 4
948 .IX Item "file.H"
949 .IP "\fIfile\fR\fB.hp\fR" 4
950 .IX Item "file.hp"
951 .IP "\fIfile\fR\fB.hxx\fR" 4
952 .IX Item "file.hxx"
953 .IP "\fIfile\fR\fB.hpp\fR" 4
954 .IX Item "file.hpp"
955 .IP "\fIfile\fR\fB.HPP\fR" 4
956 .IX Item "file.HPP"
957 .IP "\fIfile\fR\fB.h++\fR" 4
958 .IX Item "file.h++"
959 .IP "\fIfile\fR\fB.tcc\fR" 4
960 .IX Item "file.tcc"
961 .PD
962 \&\*(C+ header file to be turned into a precompiled header.
963 .IP "\fIfile\fR\fB.f\fR" 4
964 .IX Item "file.f"
965 .PD 0
966 .IP "\fIfile\fR\fB.for\fR" 4
967 .IX Item "file.for"
968 .IP "\fIfile\fR\fB.ftn\fR" 4
969 .IX Item "file.ftn"
970 .PD
971 Fixed form Fortran source code which should not be preprocessed.
972 .IP "\fIfile\fR\fB.F\fR" 4
973 .IX Item "file.F"
974 .PD 0
975 .IP "\fIfile\fR\fB.FOR\fR" 4
976 .IX Item "file.FOR"
977 .IP "\fIfile\fR\fB.fpp\fR" 4
978 .IX Item "file.fpp"
979 .IP "\fIfile\fR\fB.FPP\fR" 4
980 .IX Item "file.FPP"
981 .IP "\fIfile\fR\fB.FTN\fR" 4
982 .IX Item "file.FTN"
983 .PD
984 Fixed form Fortran source code which must be preprocessed (with the traditional
985 preprocessor).
986 .IP "\fIfile\fR\fB.f90\fR" 4
987 .IX Item "file.f90"
988 .PD 0
989 .IP "\fIfile\fR\fB.f95\fR" 4
990 .IX Item "file.f95"
991 .IP "\fIfile\fR\fB.f03\fR" 4
992 .IX Item "file.f03"
993 .IP "\fIfile\fR\fB.f08\fR" 4
994 .IX Item "file.f08"
995 .PD
996 Free form Fortran source code which should not be preprocessed.
997 .IP "\fIfile\fR\fB.F90\fR" 4
998 .IX Item "file.F90"
999 .PD 0
1000 .IP "\fIfile\fR\fB.F95\fR" 4
1001 .IX Item "file.F95"
1002 .IP "\fIfile\fR\fB.F03\fR" 4
1003 .IX Item "file.F03"
1004 .IP "\fIfile\fR\fB.F08\fR" 4
1005 .IX Item "file.F08"
1006 .PD
1007 Free form Fortran source code which must be preprocessed (with the
1008 traditional preprocessor).
1009 .IP "\fIfile\fR\fB.ads\fR" 4
1010 .IX Item "file.ads"
1011 Ada source code file which contains a library unit declaration (a
1012 declaration of a package, subprogram, or generic, or a generic
1013 instantiation), or a library unit renaming declaration (a package,
1014 generic, or subprogram renaming declaration).  Such files are also
1015 called \fIspecs\fR.
1016 .IP "\fIfile\fR\fB.adb\fR" 4
1017 .IX Item "file.adb"
1018 Ada source code file containing a library unit body (a subprogram or
1019 package body).  Such files are also called \fIbodies\fR.
1020 .IP "\fIfile\fR\fB.s\fR" 4
1021 .IX Item "file.s"
1022 Assembler code.
1023 .IP "\fIfile\fR\fB.S\fR" 4
1024 .IX Item "file.S"
1025 .PD 0
1026 .IP "\fIfile\fR\fB.sx\fR" 4
1027 .IX Item "file.sx"
1028 .PD
1029 Assembler code which must be preprocessed.
1030 .IP "\fIother\fR" 4
1031 .IX Item "other"
1032 An object file to be fed straight into linking.
1033 Any file name with no recognized suffix is treated this way.
1034 .PP
1035 You can specify the input language explicitly with the \fB\-x\fR option:
1036 .IP "\fB\-x\fR \fIlanguage\fR" 4
1037 .IX Item "-x language"
1038 Specify explicitly the \fIlanguage\fR for the following input files
1039 (rather than letting the compiler choose a default based on the file
1040 name suffix).  This option applies to all following input files until
1041 the next \fB\-x\fR option.  Possible values for \fIlanguage\fR are:
1042 .Sp
1043 .Vb 8
1044 \&        c  c\-header  c\-cpp\-output
1045 \&        c++  c++\-header  c++\-cpp\-output
1046 \&        objective\-c  objective\-c\-header  objective\-c\-cpp\-output
1047 \&        objective\-c++ objective\-c++\-header objective\-c++\-cpp\-output
1048 \&        assembler  assembler\-with\-cpp
1049 \&        ada
1050 \&        f77  f77\-cpp\-input f95  f95\-cpp\-input
1051 \&        java
1052 .Ve
1053 .IP "\fB\-x none\fR" 4
1054 .IX Item "-x none"
1055 Turn off any specification of a language, so that subsequent files are
1056 handled according to their file name suffixes (as they are if \fB\-x\fR
1057 has not been used at all).
1058 .IP "\fB\-pass\-exit\-codes\fR" 4
1059 .IX Item "-pass-exit-codes"
1060 Normally the \fBgcc\fR program will exit with the code of 1 if any
1061 phase of the compiler returns a non-success return code.  If you specify
1062 \&\fB\-pass\-exit\-codes\fR, the \fBgcc\fR program will instead return with
1063 numerically highest error produced by any phase that returned an error
1064 indication.  The C, \*(C+, and Fortran frontends return 4, if an internal
1065 compiler error is encountered.
1066 .PP
1067 If you only want some of the stages of compilation, you can use
1068 \&\fB\-x\fR (or filename suffixes) to tell \fBgcc\fR where to start, and
1069 one of the options \fB\-c\fR, \fB\-S\fR, or \fB\-E\fR to say where
1070 \&\fBgcc\fR is to stop.  Note that some combinations (for example,
1071 \&\fB\-x cpp-output \-E\fR) instruct \fBgcc\fR to do nothing at all.
1072 .IP "\fB\-c\fR" 4
1073 .IX Item "-c"
1074 Compile or assemble the source files, but do not link.  The linking
1075 stage simply is not done.  The ultimate output is in the form of an
1076 object file for each source file.
1077 .Sp
1078 By default, the object file name for a source file is made by replacing
1079 the suffix \fB.c\fR, \fB.i\fR, \fB.s\fR, etc., with \fB.o\fR.
1080 .Sp
1081 Unrecognized input files, not requiring compilation or assembly, are
1082 ignored.
1083 .IP "\fB\-S\fR" 4
1084 .IX Item "-S"
1085 Stop after the stage of compilation proper; do not assemble.  The output
1086 is in the form of an assembler code file for each non-assembler input
1087 file specified.
1088 .Sp
1089 By default, the assembler file name for a source file is made by
1090 replacing the suffix \fB.c\fR, \fB.i\fR, etc., with \fB.s\fR.
1091 .Sp
1092 Input files that don't require compilation are ignored.
1093 .IP "\fB\-E\fR" 4
1094 .IX Item "-E"
1095 Stop after the preprocessing stage; do not run the compiler proper.  The
1096 output is in the form of preprocessed source code, which is sent to the
1097 standard output.
1098 .Sp
1099 Input files which don't require preprocessing are ignored.
1100 .IP "\fB\-o\fR \fIfile\fR" 4
1101 .IX Item "-o file"
1102 Place output in file \fIfile\fR.  This applies regardless to whatever
1103 sort of output is being produced, whether it be an executable file,
1104 an object file, an assembler file or preprocessed C code.
1105 .Sp
1106 If \fB\-o\fR is not specified, the default is to put an executable
1107 file in \fIa.out\fR, the object file for
1108 \&\fI\fIsource\fI.\fIsuffix\fI\fR in \fI\fIsource\fI.o\fR, its
1109 assembler file in \fI\fIsource\fI.s\fR, a precompiled header file in
1110 \&\fI\fIsource\fI.\fIsuffix\fI.gch\fR, and all preprocessed C source on
1111 standard output.
1112 .IP "\fB\-v\fR" 4
1113 .IX Item "-v"
1114 Print (on standard error output) the commands executed to run the stages
1115 of compilation.  Also print the version number of the compiler driver
1116 program and of the preprocessor and the compiler proper.
1117 .IP "\fB\-###\fR" 4
1118 .IX Item "-###"
1119 Like \fB\-v\fR except the commands are not executed and all command
1120 arguments are quoted.  This is useful for shell scripts to capture the
1121 driver-generated command lines.
1122 .IP "\fB\-pipe\fR" 4
1123 .IX Item "-pipe"
1124 Use pipes rather than temporary files for communication between the
1125 various stages of compilation.  This fails to work on some systems where
1126 the assembler is unable to read from a pipe; but the \s-1GNU\s0 assembler has
1127 no trouble.
1128 .IP "\fB\-combine\fR" 4
1129 .IX Item "-combine"
1130 If you are compiling multiple source files, this option tells the driver
1131 to pass all the source files to the compiler at once (for those
1132 languages for which the compiler can handle this).  This will allow
1133 intermodule analysis (\s-1IMA\s0) to be performed by the compiler.  Currently the only
1134 language for which this is supported is C.  If you pass source files for
1135 multiple languages to the driver, using this option, the driver will invoke
1136 the compiler(s) that support \s-1IMA\s0 once each, passing each compiler all the
1137 source files appropriate for it.  For those languages that do not support
1138 \&\s-1IMA\s0 this option will be ignored, and the compiler will be invoked once for
1139 each source file in that language.  If you use this option in conjunction
1140 with \fB\-save\-temps\fR, the compiler will generate multiple
1141 pre-processed files
1142 (one for each source file), but only one (combined) \fI.o\fR or
1143 \&\fI.s\fR file.
1144 .IP "\fB\-\-help\fR" 4
1145 .IX Item "--help"
1146 Print (on the standard output) a description of the command line options
1147 understood by \fBgcc\fR.  If the \fB\-v\fR option is also specified
1148 then \fB\-\-help\fR will also be passed on to the various processes
1149 invoked by \fBgcc\fR, so that they can display the command line options
1150 they accept.  If the \fB\-Wextra\fR option has also been specified
1151 (prior to the \fB\-\-help\fR option), then command line options which
1152 have no documentation associated with them will also be displayed.
1153 .IP "\fB\-\-target\-help\fR" 4
1154 .IX Item "--target-help"
1155 Print (on the standard output) a description of target-specific command
1156 line options for each tool.  For some targets extra target-specific
1157 information may also be printed.
1158 .IP "\fB\-\-help={\fR\fIclass\fR|[\fB^\fR]\fIqualifier\fR\fB}\fR[\fB,...\fR]" 4
1159 .IX Item "--help={class|[^]qualifier}[,...]"
1160 Print (on the standard output) a description of the command line
1161 options understood by the compiler that fit into all specified classes
1162 and qualifiers.  These are the supported classes:
1163 .RS 4
1164 .IP "\fBoptimizers\fR" 4
1165 .IX Item "optimizers"
1166 This will display all of the optimization options supported by the
1167 compiler.
1168 .IP "\fBwarnings\fR" 4
1169 .IX Item "warnings"
1170 This will display all of the options controlling warning messages
1171 produced by the compiler.
1172 .IP "\fBtarget\fR" 4
1173 .IX Item "target"
1174 This will display target-specific options.  Unlike the
1175 \&\fB\-\-target\-help\fR option however, target-specific options of the
1176 linker and assembler will not be displayed.  This is because those
1177 tools do not currently support the extended \fB\-\-help=\fR syntax.
1178 .IP "\fBparams\fR" 4
1179 .IX Item "params"
1180 This will display the values recognized by the \fB\-\-param\fR
1181 option.
1182 .IP "\fIlanguage\fR" 4
1183 .IX Item "language"
1184 This will display the options supported for \fIlanguage\fR, where 
1185 \&\fIlanguage\fR is the name of one of the languages supported in this 
1186 version of \s-1GCC\s0.
1187 .IP "\fBcommon\fR" 4
1188 .IX Item "common"
1189 This will display the options that are common to all languages.
1190 .RE
1191 .RS 4
1192 .Sp
1193 These are the supported qualifiers:
1194 .IP "\fBundocumented\fR" 4
1195 .IX Item "undocumented"
1196 Display only those options which are undocumented.
1197 .IP "\fBjoined\fR" 4
1198 .IX Item "joined"
1199 Display options which take an argument that appears after an equal
1200 sign in the same continuous piece of text, such as:
1201 \&\fB\-\-help=target\fR.
1202 .IP "\fBseparate\fR" 4
1203 .IX Item "separate"
1204 Display options which take an argument that appears as a separate word
1205 following the original option, such as: \fB\-o output-file\fR.
1206 .RE
1207 .RS 4
1208 .Sp
1209 Thus for example to display all the undocumented target-specific
1210 switches supported by the compiler the following can be used:
1211 .Sp
1212 .Vb 1
1213 \&        \-\-help=target,undocumented
1214 .Ve
1215 .Sp
1216 The sense of a qualifier can be inverted by prefixing it with the
1217 \&\fB^\fR character, so for example to display all binary warning
1218 options (i.e., ones that are either on or off and that do not take an
1219 argument), which have a description the following can be used:
1220 .Sp
1221 .Vb 1
1222 \&        \-\-help=warnings,^joined,^undocumented
1223 .Ve
1224 .Sp
1225 The argument to \fB\-\-help=\fR should not consist solely of inverted
1226 qualifiers.
1227 .Sp
1228 Combining several classes is possible, although this usually
1229 restricts the output by so much that there is nothing to display.  One
1230 case where it does work however is when one of the classes is
1231 \&\fItarget\fR.  So for example to display all the target-specific
1232 optimization options the following can be used:
1233 .Sp
1234 .Vb 1
1235 \&        \-\-help=target,optimizers
1236 .Ve
1237 .Sp
1238 The \fB\-\-help=\fR option can be repeated on the command line.  Each
1239 successive use will display its requested class of options, skipping
1240 those that have already been displayed.
1241 .Sp
1242 If the \fB\-Q\fR option appears on the command line before the
1243 \&\fB\-\-help=\fR option, then the descriptive text displayed by
1244 \&\fB\-\-help=\fR is changed.  Instead of describing the displayed
1245 options, an indication is given as to whether the option is enabled,
1246 disabled or set to a specific value (assuming that the compiler
1247 knows this at the point where the \fB\-\-help=\fR option is used).
1248 .Sp
1249 Here is a truncated example from the \s-1ARM\s0 port of \fBgcc\fR:
1250 .Sp
1251 .Vb 5
1252 \&          % gcc \-Q \-mabi=2 \-\-help=target \-c
1253 \&          The following options are target specific:
1254 \&          \-mabi=                                2
1255 \&          \-mabort\-on\-noreturn                   [disabled]
1256 \&          \-mapcs                                [disabled]
1257 .Ve
1258 .Sp
1259 The output is sensitive to the effects of previous command line
1260 options, so for example it is possible to find out which optimizations
1261 are enabled at \fB\-O2\fR by using:
1262 .Sp
1263 .Vb 1
1264 \&        \-Q \-O2 \-\-help=optimizers
1265 .Ve
1266 .Sp
1267 Alternatively you can discover which binary optimizations are enabled
1268 by \fB\-O3\fR by using:
1269 .Sp
1270 .Vb 3
1271 \&        gcc \-c \-Q \-O3 \-\-help=optimizers > /tmp/O3\-opts
1272 \&        gcc \-c \-Q \-O2 \-\-help=optimizers > /tmp/O2\-opts
1273 \&        diff /tmp/O2\-opts /tmp/O3\-opts | grep enabled
1274 .Ve
1275 .RE
1276 .IP "\fB\-\-version\fR" 4
1277 .IX Item "--version"
1278 Display the version number and copyrights of the invoked \s-1GCC\s0.
1279 .IP "\fB\-wrapper\fR" 4
1280 .IX Item "-wrapper"
1281 Invoke all subcommands under a wrapper program. It takes a single
1282 comma separated list as an argument, which will be used to invoke
1283 the wrapper:
1284 .Sp
1285 .Vb 1
1286 \&        gcc \-c t.c \-wrapper gdb,\-\-args
1287 .Ve
1288 .Sp
1289 This will invoke all subprograms of gcc under \*(L"gdb \-\-args\*(R",
1290 thus cc1 invocation will be \*(L"gdb \-\-args cc1 ...\*(R".
1291 .IP "\fB@\fR\fIfile\fR" 4
1292 .IX Item "@file"
1293 Read command-line options from \fIfile\fR.  The options read are
1294 inserted in place of the original @\fIfile\fR option.  If \fIfile\fR
1295 does not exist, or cannot be read, then the option will be treated
1296 literally, and not removed.
1297 .Sp
1298 Options in \fIfile\fR are separated by whitespace.  A whitespace
1299 character may be included in an option by surrounding the entire
1300 option in either single or double quotes.  Any character (including a
1301 backslash) may be included by prefixing the character to be included
1302 with a backslash.  The \fIfile\fR may itself contain additional
1303 @\fIfile\fR options; any such options will be processed recursively.
1304 .SS "Compiling \*(C+ Programs"
1305 .IX Subsection "Compiling  Programs"
1306 \&\*(C+ source files conventionally use one of the suffixes \fB.C\fR,
1307 \&\fB.cc\fR, \fB.cpp\fR, \fB.CPP\fR, \fB.c++\fR, \fB.cp\fR, or
1308 \&\fB.cxx\fR; \*(C+ header files often use \fB.hh\fR, \fB.hpp\fR,
1309 \&\fB.H\fR, or (for shared template code) \fB.tcc\fR; and
1310 preprocessed \*(C+ files use the suffix \fB.ii\fR.  \s-1GCC\s0 recognizes
1311 files with these names and compiles them as \*(C+ programs even if you
1312 call the compiler the same way as for compiling C programs (usually
1313 with the name \fBgcc\fR).
1314 .PP
1315 However, the use of \fBgcc\fR does not add the \*(C+ library.
1316 \&\fBg++\fR is a program that calls \s-1GCC\s0 and treats \fB.c\fR,
1317 \&\fB.h\fR and \fB.i\fR files as \*(C+ source files instead of C source
1318 files unless \fB\-x\fR is used, and automatically specifies linking
1319 against the \*(C+ library.  This program is also useful when
1320 precompiling a C header file with a \fB.h\fR extension for use in \*(C+
1321 compilations.  On many systems, \fBg++\fR is also installed with
1322 the name \fBc++\fR.
1323 .PP
1324 When you compile \*(C+ programs, you may specify many of the same
1325 command-line options that you use for compiling programs in any
1326 language; or command-line options meaningful for C and related
1327 languages; or options that are meaningful only for \*(C+ programs.
1328 .SS "Options Controlling C Dialect"
1329 .IX Subsection "Options Controlling C Dialect"
1330 The following options control the dialect of C (or languages derived
1331 from C, such as \*(C+, Objective-C and Objective\-\*(C+) that the compiler
1332 accepts:
1333 .IP "\fB\-ansi\fR" 4
1334 .IX Item "-ansi"
1335 In C mode, this is equivalent to \fB\-std=c89\fR. In \*(C+ mode, it is
1336 equivalent to \fB\-std=c++98\fR.
1337 .Sp
1338 This turns off certain features of \s-1GCC\s0 that are incompatible with \s-1ISO\s0
1339 C90 (when compiling C code), or of standard \*(C+ (when compiling \*(C+ code),
1340 such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, and
1341 predefined macros such as \f(CW\*(C`unix\*(C'\fR and \f(CW\*(C`vax\*(C'\fR that identify the
1342 type of system you are using.  It also enables the undesirable and
1343 rarely used \s-1ISO\s0 trigraph feature.  For the C compiler,
1344 it disables recognition of \*(C+ style \fB//\fR comments as well as
1345 the \f(CW\*(C`inline\*(C'\fR keyword.
1346 .Sp
1347 The alternate keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_extension_\|_\*(C'\fR,
1348 \&\f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR continue to work despite
1349 \&\fB\-ansi\fR.  You would not want to use them in an \s-1ISO\s0 C program, of
1350 course, but it is useful to put them in header files that might be included
1351 in compilations done with \fB\-ansi\fR.  Alternate predefined macros
1352 such as \f(CW\*(C`_\|_unix_\|_\*(C'\fR and \f(CW\*(C`_\|_vax_\|_\*(C'\fR are also available, with or
1353 without \fB\-ansi\fR.
1354 .Sp
1355 The \fB\-ansi\fR option does not cause non-ISO programs to be
1356 rejected gratuitously.  For that, \fB\-pedantic\fR is required in
1357 addition to \fB\-ansi\fR.
1358 .Sp
1359 The macro \f(CW\*(C`_\|_STRICT_ANSI_\|_\*(C'\fR is predefined when the \fB\-ansi\fR
1360 option is used.  Some header files may notice this macro and refrain
1361 from declaring certain functions or defining certain macros that the
1362 \&\s-1ISO\s0 standard doesn't call for; this is to avoid interfering with any
1363 programs that might use these names for other things.
1364 .Sp
1365 Functions that would normally be built in but do not have semantics
1366 defined by \s-1ISO\s0 C (such as \f(CW\*(C`alloca\*(C'\fR and \f(CW\*(C`ffs\*(C'\fR) are not built-in
1367 functions when \fB\-ansi\fR is used.
1368 .IP "\fB\-std=\fR" 4
1369 .IX Item "-std="
1370 Determine the language standard.   This option
1371 is currently only supported when compiling C or \*(C+.
1372 .Sp
1373 The compiler can accept several base standards, such as \fBc89\fR or
1374 \&\fBc++98\fR, and \s-1GNU\s0 dialects of those standards, such as
1375 \&\fBgnu89\fR or \fBgnu++98\fR.  By specifying a base standard, the
1376 compiler will accept all programs following that standard and those
1377 using \s-1GNU\s0 extensions that do not contradict it.  For example,
1378 \&\fB\-std=c89\fR turns off certain features of \s-1GCC\s0 that are
1379 incompatible with \s-1ISO\s0 C90, such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR
1380 keywords, but not other \s-1GNU\s0 extensions that do not have a meaning in
1381 \&\s-1ISO\s0 C90, such as omitting the middle term of a \f(CW\*(C`?:\*(C'\fR
1382 expression. On the other hand, by specifying a \s-1GNU\s0 dialect of a
1383 standard, all features the compiler support are enabled, even when
1384 those features change the meaning of the base standard and some
1385 strict-conforming programs may be rejected.  The particular standard
1386 is used by \fB\-pedantic\fR to identify which features are \s-1GNU\s0
1387 extensions given that version of the standard. For example
1388 \&\fB\-std=gnu89 \-pedantic\fR would warn about \*(C+ style \fB//\fR
1389 comments, while \fB\-std=gnu99 \-pedantic\fR would not.
1390 .Sp
1391 A value for this option must be provided; possible values are
1392 .RS 4
1393 .IP "\fBc89\fR" 4
1394 .IX Item "c89"
1395 .PD 0
1396 .IP "\fBiso9899:1990\fR" 4
1397 .IX Item "iso9899:1990"
1398 .PD
1399 Support all \s-1ISO\s0 C90 programs (certain \s-1GNU\s0 extensions that conflict
1400 with \s-1ISO\s0 C90 are disabled). Same as \fB\-ansi\fR for C code.
1401 .IP "\fBiso9899:199409\fR" 4
1402 .IX Item "iso9899:199409"
1403 \&\s-1ISO\s0 C90 as modified in amendment 1.
1404 .IP "\fBc99\fR" 4
1405 .IX Item "c99"
1406 .PD 0
1407 .IP "\fBc9x\fR" 4
1408 .IX Item "c9x"
1409 .IP "\fBiso9899:1999\fR" 4
1410 .IX Item "iso9899:1999"
1411 .IP "\fBiso9899:199x\fR" 4
1412 .IX Item "iso9899:199x"
1413 .PD
1414 \&\s-1ISO\s0 C99.  Note that this standard is not yet fully supported; see
1415 <\fBhttp://gcc.gnu.org/gcc\-4.4/c99status.html\fR> for more information.  The
1416 names \fBc9x\fR and \fBiso9899:199x\fR are deprecated.
1417 .IP "\fBgnu89\fR" 4
1418 .IX Item "gnu89"
1419 \&\s-1GNU\s0 dialect of \s-1ISO\s0 C90 (including some C99 features). This
1420 is the default for C code.
1421 .IP "\fBgnu99\fR" 4
1422 .IX Item "gnu99"
1423 .PD 0
1424 .IP "\fBgnu9x\fR" 4
1425 .IX Item "gnu9x"
1426 .PD
1427 \&\s-1GNU\s0 dialect of \s-1ISO\s0 C99.  When \s-1ISO\s0 C99 is fully implemented in \s-1GCC\s0,
1428 this will become the default.  The name \fBgnu9x\fR is deprecated.
1429 .IP "\fBc++98\fR" 4
1430 .IX Item "c++98"
1431 The 1998 \s-1ISO\s0 \*(C+ standard plus amendments. Same as \fB\-ansi\fR for
1432 \&\*(C+ code.
1433 .IP "\fBgnu++98\fR" 4
1434 .IX Item "gnu++98"
1435 \&\s-1GNU\s0 dialect of \fB\-std=c++98\fR.  This is the default for
1436 \&\*(C+ code.
1437 .IP "\fBc++0x\fR" 4
1438 .IX Item "c++0x"
1439 The working draft of the upcoming \s-1ISO\s0 \*(C+0x standard. This option
1440 enables experimental features that are likely to be included in
1441 \&\*(C+0x. The working draft is constantly changing, and any feature that is
1442 enabled by this flag may be removed from future versions of \s-1GCC\s0 if it is
1443 not part of the \*(C+0x standard.
1444 .IP "\fBgnu++0x\fR" 4
1445 .IX Item "gnu++0x"
1446 \&\s-1GNU\s0 dialect of \fB\-std=c++0x\fR. This option enables
1447 experimental features that may be removed in future versions of \s-1GCC\s0.
1448 .RE
1449 .RS 4
1450 .RE
1451 .IP "\fB\-fgnu89\-inline\fR" 4
1452 .IX Item "-fgnu89-inline"
1453 The option \fB\-fgnu89\-inline\fR tells \s-1GCC\s0 to use the traditional
1454 \&\s-1GNU\s0 semantics for \f(CW\*(C`inline\*(C'\fR functions when in C99 mode.
1455   This option
1456 is accepted and ignored by \s-1GCC\s0 versions 4.1.3 up to but not including
1457 4.3.  In \s-1GCC\s0 versions 4.3 and later it changes the behavior of \s-1GCC\s0 in
1458 C99 mode.  Using this option is roughly equivalent to adding the
1459 \&\f(CW\*(C`gnu_inline\*(C'\fR function attribute to all inline functions.
1460 .Sp
1461 The option \fB\-fno\-gnu89\-inline\fR explicitly tells \s-1GCC\s0 to use the
1462 C99 semantics for \f(CW\*(C`inline\*(C'\fR when in C99 or gnu99 mode (i.e., it
1463 specifies the default behavior).  This option was first supported in
1464 \&\s-1GCC\s0 4.3.  This option is not supported in C89 or gnu89 mode.
1465 .Sp
1466 The preprocessor macros \f(CW\*(C`_\|_GNUC_GNU_INLINE_\|_\*(C'\fR and
1467 \&\f(CW\*(C`_\|_GNUC_STDC_INLINE_\|_\*(C'\fR may be used to check which semantics are
1468 in effect for \f(CW\*(C`inline\*(C'\fR functions.
1469 .IP "\fB\-aux\-info\fR \fIfilename\fR" 4
1470 .IX Item "-aux-info filename"
1471 Output to the given filename prototyped declarations for all functions
1472 declared and/or defined in a translation unit, including those in header
1473 files.  This option is silently ignored in any language other than C.
1474 .Sp
1475 Besides declarations, the file indicates, in comments, the origin of
1476 each declaration (source file and line), whether the declaration was
1477 implicit, prototyped or unprototyped (\fBI\fR, \fBN\fR for new or
1478 \&\fBO\fR for old, respectively, in the first character after the line
1479 number and the colon), and whether it came from a declaration or a
1480 definition (\fBC\fR or \fBF\fR, respectively, in the following
1481 character).  In the case of function definitions, a K&R\-style list of
1482 arguments followed by their declarations is also provided, inside
1483 comments, after the declaration.
1484 .IP "\fB\-fno\-asm\fR" 4
1485 .IX Item "-fno-asm"
1486 Do not recognize \f(CW\*(C`asm\*(C'\fR, \f(CW\*(C`inline\*(C'\fR or \f(CW\*(C`typeof\*(C'\fR as a
1487 keyword, so that code can use these words as identifiers.  You can use
1488 the keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR
1489 instead.  \fB\-ansi\fR implies \fB\-fno\-asm\fR.
1490 .Sp
1491 In \*(C+, this switch only affects the \f(CW\*(C`typeof\*(C'\fR keyword, since
1492 \&\f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`inline\*(C'\fR are standard keywords.  You may want to
1493 use the \fB\-fno\-gnu\-keywords\fR flag instead, which has the same
1494 effect.  In C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this
1495 switch only affects the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, since
1496 \&\f(CW\*(C`inline\*(C'\fR is a standard keyword in \s-1ISO\s0 C99.
1497 .IP "\fB\-fno\-builtin\fR" 4
1498 .IX Item "-fno-builtin"
1499 .PD 0
1500 .IP "\fB\-fno\-builtin\-\fR\fIfunction\fR" 4
1501 .IX Item "-fno-builtin-function"
1502 .PD
1503 Don't recognize built-in functions that do not begin with
1504 \&\fB_\|_builtin_\fR as prefix.
1505 .Sp
1506 \&\s-1GCC\s0 normally generates special code to handle certain built-in functions
1507 more efficiently; for instance, calls to \f(CW\*(C`alloca\*(C'\fR may become single
1508 instructions that adjust the stack directly, and calls to \f(CW\*(C`memcpy\*(C'\fR
1509 may become inline copy loops.  The resulting code is often both smaller
1510 and faster, but since the function calls no longer appear as such, you
1511 cannot set a breakpoint on those calls, nor can you change the behavior
1512 of the functions by linking with a different library.  In addition,
1513 when a function is recognized as a built-in function, \s-1GCC\s0 may use
1514 information about that function to warn about problems with calls to
1515 that function, or to generate more efficient code, even if the
1516 resulting code still contains calls to that function.  For example,
1517 warnings are given with \fB\-Wformat\fR for bad calls to
1518 \&\f(CW\*(C`printf\*(C'\fR, when \f(CW\*(C`printf\*(C'\fR is built in, and \f(CW\*(C`strlen\*(C'\fR is
1519 known not to modify global memory.
1520 .Sp
1521 With the \fB\-fno\-builtin\-\fR\fIfunction\fR option
1522 only the built-in function \fIfunction\fR is
1523 disabled.  \fIfunction\fR must not begin with \fB_\|_builtin_\fR.  If a
1524 function is named that is not built-in in this version of \s-1GCC\s0, this
1525 option is ignored.  There is no corresponding
1526 \&\fB\-fbuiltin\-\fR\fIfunction\fR option; if you wish to enable
1527 built-in functions selectively when using \fB\-fno\-builtin\fR or
1528 \&\fB\-ffreestanding\fR, you may define macros such as:
1529 .Sp
1530 .Vb 2
1531 \&        #define abs(n)          _\|_builtin_abs ((n))
1532 \&        #define strcpy(d, s)    _\|_builtin_strcpy ((d), (s))
1533 .Ve
1534 .IP "\fB\-fhosted\fR" 4
1535 .IX Item "-fhosted"
1536 Assert that compilation takes place in a hosted environment.  This implies
1537 \&\fB\-fbuiltin\fR.  A hosted environment is one in which the
1538 entire standard library is available, and in which \f(CW\*(C`main\*(C'\fR has a return
1539 type of \f(CW\*(C`int\*(C'\fR.  Examples are nearly everything except a kernel.
1540 This is equivalent to \fB\-fno\-freestanding\fR.
1541 .IP "\fB\-ffreestanding\fR" 4
1542 .IX Item "-ffreestanding"
1543 Assert that compilation takes place in a freestanding environment.  This
1544 implies \fB\-fno\-builtin\fR.  A freestanding environment
1545 is one in which the standard library may not exist, and program startup may
1546 not necessarily be at \f(CW\*(C`main\*(C'\fR.  The most obvious example is an \s-1OS\s0 kernel.
1547 This is equivalent to \fB\-fno\-hosted\fR.
1548 .IP "\fB\-fopenmp\fR" 4
1549 .IX Item "-fopenmp"
1550 Enable handling of OpenMP directives \f(CW\*(C`#pragma omp\*(C'\fR in C/\*(C+ and
1551 \&\f(CW\*(C`!$omp\*(C'\fR in Fortran.  When \fB\-fopenmp\fR is specified, the
1552 compiler generates parallel code according to the OpenMP Application
1553 Program Interface v2.5 <\fBhttp://www.openmp.org/\fR>.  This option
1554 implies \fB\-pthread\fR, and thus is only supported on targets that
1555 have support for \fB\-pthread\fR.
1556 .IP "\fB\-fms\-extensions\fR" 4
1557 .IX Item "-fms-extensions"
1558 Accept some non-standard constructs used in Microsoft header files.
1559 .Sp
1560 Some cases of unnamed fields in structures and unions are only
1561 accepted with this option.
1562 .IP "\fB\-trigraphs\fR" 4
1563 .IX Item "-trigraphs"
1564 Support \s-1ISO\s0 C trigraphs.  The \fB\-ansi\fR option (and \fB\-std\fR
1565 options for strict \s-1ISO\s0 C conformance) implies \fB\-trigraphs\fR.
1566 .IP "\fB\-no\-integrated\-cpp\fR" 4
1567 .IX Item "-no-integrated-cpp"
1568 Performs a compilation in two passes: preprocessing and compiling.  This
1569 option allows a user supplied \*(L"cc1\*(R", \*(L"cc1plus\*(R", or \*(L"cc1obj\*(R" via the
1570 \&\fB\-B\fR option.  The user supplied compilation step can then add in
1571 an additional preprocessing step after normal preprocessing but before
1572 compiling.  The default is to use the integrated cpp (internal cpp)
1573 .Sp
1574 The semantics of this option will change if \*(L"cc1\*(R", \*(L"cc1plus\*(R", and
1575 \&\*(L"cc1obj\*(R" are merged.
1576 .IP "\fB\-traditional\fR" 4
1577 .IX Item "-traditional"
1578 .PD 0
1579 .IP "\fB\-traditional\-cpp\fR" 4
1580 .IX Item "-traditional-cpp"
1581 .PD
1582 Formerly, these options caused \s-1GCC\s0 to attempt to emulate a pre-standard
1583 C compiler.  They are now only supported with the \fB\-E\fR switch.
1584 The preprocessor continues to support a pre-standard mode.  See the \s-1GNU\s0
1585 \&\s-1CPP\s0 manual for details.
1586 .IP "\fB\-fcond\-mismatch\fR" 4
1587 .IX Item "-fcond-mismatch"
1588 Allow conditional expressions with mismatched types in the second and
1589 third arguments.  The value of such an expression is void.  This option
1590 is not supported for \*(C+.
1591 .IP "\fB\-flax\-vector\-conversions\fR" 4
1592 .IX Item "-flax-vector-conversions"
1593 Allow implicit conversions between vectors with differing numbers of
1594 elements and/or incompatible element types.  This option should not be
1595 used for new code.
1596 .IP "\fB\-funsigned\-char\fR" 4
1597 .IX Item "-funsigned-char"
1598 Let the type \f(CW\*(C`char\*(C'\fR be unsigned, like \f(CW\*(C`unsigned char\*(C'\fR.
1599 .Sp
1600 Each kind of machine has a default for what \f(CW\*(C`char\*(C'\fR should
1601 be.  It is either like \f(CW\*(C`unsigned char\*(C'\fR by default or like
1602 \&\f(CW\*(C`signed char\*(C'\fR by default.
1603 .Sp
1604 Ideally, a portable program should always use \f(CW\*(C`signed char\*(C'\fR or
1605 \&\f(CW\*(C`unsigned char\*(C'\fR when it depends on the signedness of an object.
1606 But many programs have been written to use plain \f(CW\*(C`char\*(C'\fR and
1607 expect it to be signed, or expect it to be unsigned, depending on the
1608 machines they were written for.  This option, and its inverse, let you
1609 make such a program work with the opposite default.
1610 .Sp
1611 The type \f(CW\*(C`char\*(C'\fR is always a distinct type from each of
1612 \&\f(CW\*(C`signed char\*(C'\fR or \f(CW\*(C`unsigned char\*(C'\fR, even though its behavior
1613 is always just like one of those two.
1614 .IP "\fB\-fsigned\-char\fR" 4
1615 .IX Item "-fsigned-char"
1616 Let the type \f(CW\*(C`char\*(C'\fR be signed, like \f(CW\*(C`signed char\*(C'\fR.
1617 .Sp
1618 Note that this is equivalent to \fB\-fno\-unsigned\-char\fR, which is
1619 the negative form of \fB\-funsigned\-char\fR.  Likewise, the option
1620 \&\fB\-fno\-signed\-char\fR is equivalent to \fB\-funsigned\-char\fR.
1621 .IP "\fB\-fsigned\-bitfields\fR" 4
1622 .IX Item "-fsigned-bitfields"
1623 .PD 0
1624 .IP "\fB\-funsigned\-bitfields\fR" 4
1625 .IX Item "-funsigned-bitfields"
1626 .IP "\fB\-fno\-signed\-bitfields\fR" 4
1627 .IX Item "-fno-signed-bitfields"
1628 .IP "\fB\-fno\-unsigned\-bitfields\fR" 4
1629 .IX Item "-fno-unsigned-bitfields"
1630 .PD
1631 These options control whether a bit-field is signed or unsigned, when the
1632 declaration does not use either \f(CW\*(C`signed\*(C'\fR or \f(CW\*(C`unsigned\*(C'\fR.  By
1633 default, such a bit-field is signed, because this is consistent: the
1634 basic integer types such as \f(CW\*(C`int\*(C'\fR are signed types.
1635 .SS "Options Controlling \*(C+ Dialect"
1636 .IX Subsection "Options Controlling  Dialect"
1637 This section describes the command-line options that are only meaningful
1638 for \*(C+ programs; but you can also use most of the \s-1GNU\s0 compiler options
1639 regardless of what language your program is in.  For example, you
1640 might compile a file \f(CW\*(C`firstClass.C\*(C'\fR like this:
1641 .PP
1642 .Vb 1
1643 \&        g++ \-g \-frepo \-O \-c firstClass.C
1644 .Ve
1645 .PP
1646 In this example, only \fB\-frepo\fR is an option meant
1647 only for \*(C+ programs; you can use the other options with any
1648 language supported by \s-1GCC\s0.
1649 .PP
1650 Here is a list of options that are \fIonly\fR for compiling \*(C+ programs:
1651 .IP "\fB\-fabi\-version=\fR\fIn\fR" 4
1652 .IX Item "-fabi-version=n"
1653 Use version \fIn\fR of the \*(C+ \s-1ABI\s0.  Version 2 is the version of the
1654 \&\*(C+ \s-1ABI\s0 that first appeared in G++ 3.4.  Version 1 is the version of
1655 the \*(C+ \s-1ABI\s0 that first appeared in G++ 3.2.  Version 0 will always be
1656 the version that conforms most closely to the \*(C+ \s-1ABI\s0 specification.
1657 Therefore, the \s-1ABI\s0 obtained using version 0 will change as \s-1ABI\s0 bugs
1658 are fixed.
1659 .Sp
1660 The default is version 2.
1661 .IP "\fB\-fno\-access\-control\fR" 4
1662 .IX Item "-fno-access-control"
1663 Turn off all access checking.  This switch is mainly useful for working
1664 around bugs in the access control code.
1665 .IP "\fB\-fcheck\-new\fR" 4
1666 .IX Item "-fcheck-new"
1667 Check that the pointer returned by \f(CW\*(C`operator new\*(C'\fR is non-null
1668 before attempting to modify the storage allocated.  This check is
1669 normally unnecessary because the \*(C+ standard specifies that
1670 \&\f(CW\*(C`operator new\*(C'\fR will only return \f(CW0\fR if it is declared
1671 \&\fB\f(BIthrow()\fB\fR, in which case the compiler will always check the
1672 return value even without this option.  In all other cases, when
1673 \&\f(CW\*(C`operator new\*(C'\fR has a non-empty exception specification, memory
1674 exhaustion is signalled by throwing \f(CW\*(C`std::bad_alloc\*(C'\fR.  See also
1675 \&\fBnew (nothrow)\fR.
1676 .IP "\fB\-fconserve\-space\fR" 4
1677 .IX Item "-fconserve-space"
1678 Put uninitialized or runtime-initialized global variables into the
1679 common segment, as C does.  This saves space in the executable at the
1680 cost of not diagnosing duplicate definitions.  If you compile with this
1681 flag and your program mysteriously crashes after \f(CW\*(C`main()\*(C'\fR has
1682 completed, you may have an object that is being destroyed twice because
1683 two definitions were merged.
1684 .Sp
1685 This option is no longer useful on most targets, now that support has
1686 been added for putting variables into \s-1BSS\s0 without making them common.
1687 .IP "\fB\-fno\-deduce\-init\-list\fR" 4
1688 .IX Item "-fno-deduce-init-list"
1689 Disable deduction of a template type parameter as
1690 std::initializer_list from a brace-enclosed initializer list, i.e.
1691 .Sp
1692 .Vb 4
1693 \&        template <class T> auto forward(T t) \-> decltype (realfn (t))
1694 \&        {
1695 \&          return realfn (t);
1696 \&        }
1697 \&        
1698 \&        void f()
1699 \&        {
1700 \&          forward({1,2}); // call forward<std::initializer_list<int>>
1701 \&        }
1702 .Ve
1703 .Sp
1704 This option is present because this deduction is an extension to the
1705 current specification in the \*(C+0x working draft, and there was
1706 some concern about potential overload resolution problems.
1707 .IP "\fB\-ffriend\-injection\fR" 4
1708 .IX Item "-ffriend-injection"
1709 Inject friend functions into the enclosing namespace, so that they are
1710 visible outside the scope of the class in which they are declared.
1711 Friend functions were documented to work this way in the old Annotated
1712 \&\*(C+ Reference Manual, and versions of G++ before 4.1 always worked
1713 that way.  However, in \s-1ISO\s0 \*(C+ a friend function which is not declared
1714 in an enclosing scope can only be found using argument dependent
1715 lookup.  This option causes friends to be injected as they were in
1716 earlier releases.
1717 .Sp
1718 This option is for compatibility, and may be removed in a future
1719 release of G++.
1720 .IP "\fB\-fno\-elide\-constructors\fR" 4
1721 .IX Item "-fno-elide-constructors"
1722 The \*(C+ standard allows an implementation to omit creating a temporary
1723 which is only used to initialize another object of the same type.
1724 Specifying this option disables that optimization, and forces G++ to
1725 call the copy constructor in all cases.
1726 .IP "\fB\-fno\-enforce\-eh\-specs\fR" 4
1727 .IX Item "-fno-enforce-eh-specs"
1728 Don't generate code to check for violation of exception specifications
1729 at runtime.  This option violates the \*(C+ standard, but may be useful
1730 for reducing code size in production builds, much like defining
1731 \&\fB\s-1NDEBUG\s0\fR.  This does not give user code permission to throw
1732 exceptions in violation of the exception specifications; the compiler
1733 will still optimize based on the specifications, so throwing an
1734 unexpected exception will result in undefined behavior.
1735 .IP "\fB\-ffor\-scope\fR" 4
1736 .IX Item "-ffor-scope"
1737 .PD 0
1738 .IP "\fB\-fno\-for\-scope\fR" 4
1739 .IX Item "-fno-for-scope"
1740 .PD
1741 If \fB\-ffor\-scope\fR is specified, the scope of variables declared in
1742 a \fIfor-init-statement\fR is limited to the \fBfor\fR loop itself,
1743 as specified by the \*(C+ standard.
1744 If \fB\-fno\-for\-scope\fR is specified, the scope of variables declared in
1745 a \fIfor-init-statement\fR extends to the end of the enclosing scope,
1746 as was the case in old versions of G++, and other (traditional)
1747 implementations of \*(C+.
1748 .Sp
1749 The default if neither flag is given to follow the standard,
1750 but to allow and give a warning for old-style code that would
1751 otherwise be invalid, or have different behavior.
1752 .IP "\fB\-fno\-gnu\-keywords\fR" 4
1753 .IX Item "-fno-gnu-keywords"
1754 Do not recognize \f(CW\*(C`typeof\*(C'\fR as a keyword, so that code can use this
1755 word as an identifier.  You can use the keyword \f(CW\*(C`_\|_typeof_\|_\*(C'\fR instead.
1756 \&\fB\-ansi\fR implies \fB\-fno\-gnu\-keywords\fR.
1757 .IP "\fB\-fno\-implicit\-templates\fR" 4
1758 .IX Item "-fno-implicit-templates"
1759 Never emit code for non-inline templates which are instantiated
1760 implicitly (i.e. by use); only emit code for explicit instantiations.
1761 .IP "\fB\-fno\-implicit\-inline\-templates\fR" 4
1762 .IX Item "-fno-implicit-inline-templates"
1763 Don't emit code for implicit instantiations of inline templates, either.
1764 The default is to handle inlines differently so that compiles with and
1765 without optimization will need the same set of explicit instantiations.
1766 .IP "\fB\-fno\-implement\-inlines\fR" 4
1767 .IX Item "-fno-implement-inlines"
1768 To save space, do not emit out-of-line copies of inline functions
1769 controlled by \fB#pragma implementation\fR.  This will cause linker
1770 errors if these functions are not inlined everywhere they are called.
1771 .IP "\fB\-fms\-extensions\fR" 4
1772 .IX Item "-fms-extensions"
1773 Disable pedantic warnings about constructs used in \s-1MFC\s0, such as implicit
1774 int and getting a pointer to member function via non-standard syntax.
1775 .IP "\fB\-fno\-nonansi\-builtins\fR" 4
1776 .IX Item "-fno-nonansi-builtins"
1777 Disable built-in declarations of functions that are not mandated by
1778 \&\s-1ANSI/ISO\s0 C.  These include \f(CW\*(C`ffs\*(C'\fR, \f(CW\*(C`alloca\*(C'\fR, \f(CW\*(C`_exit\*(C'\fR,
1779 \&\f(CW\*(C`index\*(C'\fR, \f(CW\*(C`bzero\*(C'\fR, \f(CW\*(C`conjf\*(C'\fR, and other related functions.
1780 .IP "\fB\-fno\-operator\-names\fR" 4
1781 .IX Item "-fno-operator-names"
1782 Do not treat the operator name keywords \f(CW\*(C`and\*(C'\fR, \f(CW\*(C`bitand\*(C'\fR,
1783 \&\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
1784 synonyms as keywords.
1785 .IP "\fB\-fno\-optional\-diags\fR" 4
1786 .IX Item "-fno-optional-diags"
1787 Disable diagnostics that the standard says a compiler does not need to
1788 issue.  Currently, the only such diagnostic issued by G++ is the one for
1789 a name having multiple meanings within a class.
1790 .IP "\fB\-fpermissive\fR" 4
1791 .IX Item "-fpermissive"
1792 Downgrade some diagnostics about nonconformant code from errors to
1793 warnings.  Thus, using \fB\-fpermissive\fR will allow some
1794 nonconforming code to compile.
1795 .IP "\fB\-frepo\fR" 4
1796 .IX Item "-frepo"
1797 Enable automatic template instantiation at link time.  This option also
1798 implies \fB\-fno\-implicit\-templates\fR.
1799 .IP "\fB\-fno\-rtti\fR" 4
1800 .IX Item "-fno-rtti"
1801 Disable generation of information about every class with virtual
1802 functions for use by the \*(C+ runtime type identification features
1803 (\fBdynamic_cast\fR and \fBtypeid\fR).  If you don't use those parts
1804 of the language, you can save some space by using this flag.  Note that
1805 exception handling uses the same information, but it will generate it as
1806 needed. The \fBdynamic_cast\fR operator can still be used for casts that
1807 do not require runtime type information, i.e. casts to \f(CW\*(C`void *\*(C'\fR or to
1808 unambiguous base classes.
1809 .IP "\fB\-fstats\fR" 4
1810 .IX Item "-fstats"
1811 Emit statistics about front-end processing at the end of the compilation.
1812 This information is generally only useful to the G++ development team.
1813 .IP "\fB\-ftemplate\-depth\-\fR\fIn\fR" 4
1814 .IX Item "-ftemplate-depth-n"
1815 Set the maximum instantiation depth for template classes to \fIn\fR.
1816 A limit on the template instantiation depth is needed to detect
1817 endless recursions during template class instantiation.  \s-1ANSI/ISO\s0 \*(C+
1818 conforming programs must not rely on a maximum depth greater than 17.
1819 .IP "\fB\-fno\-threadsafe\-statics\fR" 4
1820 .IX Item "-fno-threadsafe-statics"
1821 Do not emit the extra code to use the routines specified in the \*(C+
1822 \&\s-1ABI\s0 for thread-safe initialization of local statics.  You can use this
1823 option to reduce code size slightly in code that doesn't need to be
1824 thread-safe.
1825 .IP "\fB\-fuse\-cxa\-atexit\fR" 4
1826 .IX Item "-fuse-cxa-atexit"
1827 Register destructors for objects with static storage duration with the
1828 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR function rather than the \f(CW\*(C`atexit\*(C'\fR function.
1829 This option is required for fully standards-compliant handling of static
1830 destructors, but will only work if your C library supports
1831 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR.
1832 .IP "\fB\-fno\-use\-cxa\-get\-exception\-ptr\fR" 4
1833 .IX Item "-fno-use-cxa-get-exception-ptr"
1834 Don't use the \f(CW\*(C`_\|_cxa_get_exception_ptr\*(C'\fR runtime routine.  This
1835 will cause \f(CW\*(C`std::uncaught_exception\*(C'\fR to be incorrect, but is necessary
1836 if the runtime routine is not available.
1837 .IP "\fB\-fvisibility\-inlines\-hidden\fR" 4
1838 .IX Item "-fvisibility-inlines-hidden"
1839 This switch declares that the user does not attempt to compare
1840 pointers to inline methods where the addresses of the two functions
1841 were taken in different shared objects.
1842 .Sp
1843 The effect of this is that \s-1GCC\s0 may, effectively, mark inline methods with
1844 \&\f(CW\*(C`_\|_attribute_\|_ ((visibility ("hidden")))\*(C'\fR so that they do not
1845 appear in the export table of a \s-1DSO\s0 and do not require a \s-1PLT\s0 indirection
1846 when used within the \s-1DSO\s0.  Enabling this option can have a dramatic effect
1847 on load and link times of a \s-1DSO\s0 as it massively reduces the size of the
1848 dynamic export table when the library makes heavy use of templates.
1849 .Sp
1850 The behavior of this switch is not quite the same as marking the
1851 methods as hidden directly, because it does not affect static variables
1852 local to the function or cause the compiler to deduce that
1853 the function is defined in only one shared object.
1854 .Sp
1855 You may mark a method as having a visibility explicitly to negate the
1856 effect of the switch for that method.  For example, if you do want to
1857 compare pointers to a particular inline method, you might mark it as
1858 having default visibility.  Marking the enclosing class with explicit
1859 visibility will have no effect.
1860 .Sp
1861 Explicitly instantiated inline methods are unaffected by this option
1862 as their linkage might otherwise cross a shared library boundary.
1863 .IP "\fB\-fvisibility\-ms\-compat\fR" 4
1864 .IX Item "-fvisibility-ms-compat"
1865 This flag attempts to use visibility settings to make \s-1GCC\s0's \*(C+
1866 linkage model compatible with that of Microsoft Visual Studio.
1867 .Sp
1868 The flag makes these changes to \s-1GCC\s0's linkage model:
1869 .RS 4
1870 .IP "1." 4
1871 It sets the default visibility to \f(CW\*(C`hidden\*(C'\fR, like
1872 \&\fB\-fvisibility=hidden\fR.
1873 .IP "2." 4
1874 Types, but not their members, are not hidden by default.
1875 .IP "3." 4
1876 The One Definition Rule is relaxed for types without explicit
1877 visibility specifications which are defined in more than one different
1878 shared object: those declarations are permitted if they would have
1879 been permitted when this option was not used.
1880 .RE
1881 .RS 4
1882 .Sp
1883 In new code it is better to use \fB\-fvisibility=hidden\fR and
1884 export those classes which are intended to be externally visible.
1885 Unfortunately it is possible for code to rely, perhaps accidentally,
1886 on the Visual Studio behavior.
1887 .Sp
1888 Among the consequences of these changes are that static data members
1889 of the same type with the same name but defined in different shared
1890 objects will be different, so changing one will not change the other;
1891 and that pointers to function members defined in different shared
1892 objects may not compare equal.  When this flag is given, it is a
1893 violation of the \s-1ODR\s0 to define types with the same name differently.
1894 .RE
1895 .IP "\fB\-fno\-weak\fR" 4
1896 .IX Item "-fno-weak"
1897 Do not use weak symbol support, even if it is provided by the linker.
1898 By default, G++ will use weak symbols if they are available.  This
1899 option exists only for testing, and should not be used by end-users;
1900 it will result in inferior code and has no benefits.  This option may
1901 be removed in a future release of G++.
1902 .IP "\fB\-nostdinc++\fR" 4
1903 .IX Item "-nostdinc++"
1904 Do not search for header files in the standard directories specific to
1905 \&\*(C+, but do still search the other standard directories.  (This option
1906 is used when building the \*(C+ library.)
1907 .PP
1908 In addition, these optimization, warning, and code generation options
1909 have meanings only for \*(C+ programs:
1910 .IP "\fB\-fno\-default\-inline\fR" 4
1911 .IX Item "-fno-default-inline"
1912 Do not assume \fBinline\fR for functions defined inside a class scope.
1913   Note that these
1914 functions will have linkage like inline functions; they just won't be
1915 inlined by default.
1916 .IP "\fB\-Wabi\fR (C, Objective-C, \*(C+ and Objective\-\*(C+ only)" 4
1917 .IX Item "-Wabi (C, Objective-C,  and Objective- only)"
1918 Warn when G++ generates code that is probably not compatible with the
1919 vendor-neutral \*(C+ \s-1ABI\s0.  Although an effort has been made to warn about
1920 all such cases, there are probably some cases that are not warned about,
1921 even though G++ is generating incompatible code.  There may also be
1922 cases where warnings are emitted even though the code that is generated
1923 will be compatible.
1924 .Sp
1925 You should rewrite your code to avoid these warnings if you are
1926 concerned about the fact that code generated by G++ may not be binary
1927 compatible with code generated by other compilers.
1928 .Sp
1929 The known incompatibilities at this point include:
1930 .RS 4
1931 .IP "\(bu" 4
1932 Incorrect handling of tail-padding for bit-fields.  G++ may attempt to
1933 pack data into the same byte as a base class.  For example:
1934 .Sp
1935 .Vb 2
1936 \&        struct A { virtual void f(); int f1 : 1; };
1937 \&        struct B : public A { int f2 : 1; };
1938 .Ve
1939 .Sp
1940 In this case, G++ will place \f(CW\*(C`B::f2\*(C'\fR into the same byte
1941 as\f(CW\*(C`A::f1\*(C'\fR; other compilers will not.  You can avoid this problem
1942 by explicitly padding \f(CW\*(C`A\*(C'\fR so that its size is a multiple of the
1943 byte size on your platform; that will cause G++ and other compilers to
1944 layout \f(CW\*(C`B\*(C'\fR identically.
1945 .IP "\(bu" 4
1946 Incorrect handling of tail-padding for virtual bases.  G++ does not use
1947 tail padding when laying out virtual bases.  For example:
1948 .Sp
1949 .Vb 3
1950 \&        struct A { virtual void f(); char c1; };
1951 \&        struct B { B(); char c2; };
1952 \&        struct C : public A, public virtual B {};
1953 .Ve
1954 .Sp
1955 In this case, G++ will not place \f(CW\*(C`B\*(C'\fR into the tail-padding for
1956 \&\f(CW\*(C`A\*(C'\fR; other compilers will.  You can avoid this problem by
1957 explicitly padding \f(CW\*(C`A\*(C'\fR so that its size is a multiple of its
1958 alignment (ignoring virtual base classes); that will cause G++ and other
1959 compilers to layout \f(CW\*(C`C\*(C'\fR identically.
1960 .IP "\(bu" 4
1961 Incorrect handling of bit-fields with declared widths greater than that
1962 of their underlying types, when the bit-fields appear in a union.  For
1963 example:
1964 .Sp
1965 .Vb 1
1966 \&        union U { int i : 4096; };
1967 .Ve
1968 .Sp
1969 Assuming that an \f(CW\*(C`int\*(C'\fR does not have 4096 bits, G++ will make the
1970 union too small by the number of bits in an \f(CW\*(C`int\*(C'\fR.
1971 .IP "\(bu" 4
1972 Empty classes can be placed at incorrect offsets.  For example:
1973 .Sp
1974 .Vb 1
1975 \&        struct A {};
1976 \&        
1977 \&        struct B {
1978 \&          A a;
1979 \&          virtual void f ();
1980 \&        };
1981 \&        
1982 \&        struct C : public B, public A {};
1983 .Ve
1984 .Sp
1985 G++ will place the \f(CW\*(C`A\*(C'\fR base class of \f(CW\*(C`C\*(C'\fR at a nonzero offset;
1986 it should be placed at offset zero.  G++ mistakenly believes that the
1987 \&\f(CW\*(C`A\*(C'\fR data member of \f(CW\*(C`B\*(C'\fR is already at offset zero.
1988 .IP "\(bu" 4
1989 Names of template functions whose types involve \f(CW\*(C`typename\*(C'\fR or
1990 template template parameters can be mangled incorrectly.
1991 .Sp
1992 .Vb 2
1993 \&        template <typename Q>
1994 \&        void f(typename Q::X) {}
1995 \&        
1996 \&        template <template <typename> class Q>
1997 \&        void f(typename Q<int>::X) {}
1998 .Ve
1999 .Sp
2000 Instantiations of these templates may be mangled incorrectly.
2001 .RE
2002 .RS 4
2003 .Sp
2004 It also warns psABI related changes.  The known psABI changes at this
2005 point include:
2006 .IP "\(bu" 4
2007 For SYSV/x86\-64, when passing union with long double, it is changed to
2008 pass in memory as specified in psABI.  For example:
2009 .Sp
2010 .Vb 4
2011 \&        union U {
2012 \&          long double ld;
2013 \&          int i;
2014 \&        };
2015 .Ve
2016 .Sp
2017 \&\f(CW\*(C`union U\*(C'\fR will always be passed in memory.
2018 .RE
2019 .RS 4
2020 .RE
2021 .IP "\fB\-Wctor\-dtor\-privacy\fR (\*(C+ and Objective\-\*(C+ only)" 4
2022 .IX Item "-Wctor-dtor-privacy ( and Objective- only)"
2023 Warn when a class seems unusable because all the constructors or
2024 destructors in that class are private, and it has neither friends nor
2025 public static member functions.
2026 .IP "\fB\-Wnon\-virtual\-dtor\fR (\*(C+ and Objective\-\*(C+ only)" 4
2027 .IX Item "-Wnon-virtual-dtor ( and Objective- only)"
2028 Warn when a class has virtual functions and accessible non-virtual
2029 destructor, in which case it would be possible but unsafe to delete
2030 an instance of a derived class through a pointer to the base class.
2031 This warning is also enabled if \-Weffc++ is specified.
2032 .IP "\fB\-Wreorder\fR (\*(C+ and Objective\-\*(C+ only)" 4
2033 .IX Item "-Wreorder ( and Objective- only)"
2034 Warn when the order of member initializers given in the code does not
2035 match the order in which they must be executed.  For instance:
2036 .Sp
2037 .Vb 5
2038 \&        struct A {
2039 \&          int i;
2040 \&          int j;
2041 \&          A(): j (0), i (1) { }
2042 \&        };
2043 .Ve
2044 .Sp
2045 The compiler will rearrange the member initializers for \fBi\fR
2046 and \fBj\fR to match the declaration order of the members, emitting
2047 a warning to that effect.  This warning is enabled by \fB\-Wall\fR.
2048 .PP
2049 The following \fB\-W...\fR options are not affected by \fB\-Wall\fR.
2050 .IP "\fB\-Weffc++\fR (\*(C+ and Objective\-\*(C+ only)" 4
2051 .IX Item "-Weffc++ ( and Objective- only)"
2052 Warn about violations of the following style guidelines from Scott Meyers'
2053 \&\fIEffective \*(C+\fR book:
2054 .RS 4
2055 .IP "\(bu" 4
2056 Item 11:  Define a copy constructor and an assignment operator for classes
2057 with dynamically allocated memory.
2058 .IP "\(bu" 4
2059 Item 12:  Prefer initialization to assignment in constructors.
2060 .IP "\(bu" 4
2061 Item 14:  Make destructors virtual in base classes.
2062 .IP "\(bu" 4
2063 Item 15:  Have \f(CW\*(C`operator=\*(C'\fR return a reference to \f(CW*this\fR.
2064 .IP "\(bu" 4
2065 Item 23:  Don't try to return a reference when you must return an object.
2066 .RE
2067 .RS 4
2068 .Sp
2069 Also warn about violations of the following style guidelines from
2070 Scott Meyers' \fIMore Effective \*(C+\fR book:
2071 .IP "\(bu" 4
2072 Item 6:  Distinguish between prefix and postfix forms of increment and
2073 decrement operators.
2074 .IP "\(bu" 4
2075 Item 7:  Never overload \f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`||\*(C'\fR, or \f(CW\*(C`,\*(C'\fR.
2076 .RE
2077 .RS 4
2078 .Sp
2079 When selecting this option, be aware that the standard library
2080 headers do not obey all of these guidelines; use \fBgrep \-v\fR
2081 to filter out those warnings.
2082 .RE
2083 .IP "\fB\-Wstrict\-null\-sentinel\fR (\*(C+ and Objective\-\*(C+ only)" 4
2084 .IX Item "-Wstrict-null-sentinel ( and Objective- only)"
2085 Warn also about the use of an uncasted \f(CW\*(C`NULL\*(C'\fR as sentinel.  When
2086 compiling only with \s-1GCC\s0 this is a valid sentinel, as \f(CW\*(C`NULL\*(C'\fR is defined
2087 to \f(CW\*(C`_\|_null\*(C'\fR.  Although it is a null pointer constant not a null pointer,
2088 it is guaranteed to be of the same size as a pointer.  But this use is
2089 not portable across different compilers.
2090 .IP "\fB\-Wno\-non\-template\-friend\fR (\*(C+ and Objective\-\*(C+ only)" 4
2091 .IX Item "-Wno-non-template-friend ( and Objective- only)"
2092 Disable warnings when non-templatized friend functions are declared
2093 within a template.  Since the advent of explicit template specification
2094 support in G++, if the name of the friend is an unqualified-id (i.e.,
2095 \&\fBfriend foo(int)\fR), the \*(C+ language specification demands that the
2096 friend declare or define an ordinary, nontemplate function.  (Section
2097 14.5.3).  Before G++ implemented explicit specification, unqualified-ids
2098 could be interpreted as a particular specialization of a templatized
2099 function.  Because this non-conforming behavior is no longer the default
2100 behavior for G++, \fB\-Wnon\-template\-friend\fR allows the compiler to
2101 check existing code for potential trouble spots and is on by default.
2102 This new compiler behavior can be turned off with
2103 \&\fB\-Wno\-non\-template\-friend\fR which keeps the conformant compiler code
2104 but disables the helpful warning.
2105 .IP "\fB\-Wold\-style\-cast\fR (\*(C+ and Objective\-\*(C+ only)" 4
2106 .IX Item "-Wold-style-cast ( and Objective- only)"
2107 Warn if an old-style (C\-style) cast to a non-void type is used within
2108 a \*(C+ program.  The new-style casts (\fBdynamic_cast\fR,
2109 \&\fBstatic_cast\fR, \fBreinterpret_cast\fR, and \fBconst_cast\fR) are
2110 less vulnerable to unintended effects and much easier to search for.
2111 .IP "\fB\-Woverloaded\-virtual\fR (\*(C+ and Objective\-\*(C+ only)" 4
2112 .IX Item "-Woverloaded-virtual ( and Objective- only)"
2113 Warn when a function declaration hides virtual functions from a
2114 base class.  For example, in:
2115 .Sp
2116 .Vb 3
2117 \&        struct A {
2118 \&          virtual void f();
2119 \&        };
2120 \&        
2121 \&        struct B: public A {
2122 \&          void f(int);
2123 \&        };
2124 .Ve
2125 .Sp
2126 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
2127 like:
2128 .Sp
2129 .Vb 2
2130 \&        B* b;
2131 \&        b\->f();
2132 .Ve
2133 .Sp
2134 will fail to compile.
2135 .IP "\fB\-Wno\-pmf\-conversions\fR (\*(C+ and Objective\-\*(C+ only)" 4
2136 .IX Item "-Wno-pmf-conversions ( and Objective- only)"
2137 Disable the diagnostic for converting a bound pointer to member function
2138 to a plain pointer.
2139 .IP "\fB\-Wsign\-promo\fR (\*(C+ and Objective\-\*(C+ only)" 4
2140 .IX Item "-Wsign-promo ( and Objective- only)"
2141 Warn when overload resolution chooses a promotion from unsigned or
2142 enumerated type to a signed type, over a conversion to an unsigned type of
2143 the same size.  Previous versions of G++ would try to preserve
2144 unsignedness, but the standard mandates the current behavior.
2145 .Sp
2146 .Vb 4
2147 \&        struct A {
2148 \&          operator int ();
2149 \&          A& operator = (int);
2150 \&        };
2151 \&        
2152 \&        main ()
2153 \&        {
2154 \&          A a,b;
2155 \&          a = b;
2156 \&        }
2157 .Ve
2158 .Sp
2159 In this example, G++ will synthesize a default \fBA& operator =
2160 (const A&);\fR, while cfront will use the user-defined \fBoperator =\fR.
2161 .SS "Options Controlling Objective-C and Objective\-\*(C+ Dialects"
2162 .IX Subsection "Options Controlling Objective-C and Objective- Dialects"
2163 (\s-1NOTE:\s0 This manual does not describe the Objective-C and Objective\-\*(C+
2164 languages themselves.  See
2165 .PP
2166 This section describes the command-line options that are only meaningful
2167 for Objective-C and Objective\-\*(C+ programs, but you can also use most of
2168 the language-independent \s-1GNU\s0 compiler options.
2169 For example, you might compile a file \f(CW\*(C`some_class.m\*(C'\fR like this:
2170 .PP
2171 .Vb 1
2172 \&        gcc \-g \-fgnu\-runtime \-O \-c some_class.m
2173 .Ve
2174 .PP
2175 In this example, \fB\-fgnu\-runtime\fR is an option meant only for
2176 Objective-C and Objective\-\*(C+ programs; you can use the other options with
2177 any language supported by \s-1GCC\s0.
2178 .PP
2179 Note that since Objective-C is an extension of the C language, Objective-C
2180 compilations may also use options specific to the C front-end (e.g.,
2181 \&\fB\-Wtraditional\fR).  Similarly, Objective\-\*(C+ compilations may use
2182 \&\*(C+\-specific options (e.g., \fB\-Wabi\fR).
2183 .PP
2184 Here is a list of options that are \fIonly\fR for compiling Objective-C
2185 and Objective\-\*(C+ programs:
2186 .IP "\fB\-fconstant\-string\-class=\fR\fIclass-name\fR" 4
2187 .IX Item "-fconstant-string-class=class-name"
2188 Use \fIclass-name\fR as the name of the class to instantiate for each
2189 literal string specified with the syntax \f(CW\*(C`@"..."\*(C'\fR.  The default
2190 class name is \f(CW\*(C`NXConstantString\*(C'\fR if the \s-1GNU\s0 runtime is being used, and
2191 \&\f(CW\*(C`NSConstantString\*(C'\fR if the NeXT runtime is being used (see below).  The
2192 \&\fB\-fconstant\-cfstrings\fR option, if also present, will override the
2193 \&\fB\-fconstant\-string\-class\fR setting and cause \f(CW\*(C`@"..."\*(C'\fR literals
2194 to be laid out as constant CoreFoundation strings.
2195 .IP "\fB\-fgnu\-runtime\fR" 4
2196 .IX Item "-fgnu-runtime"
2197 Generate object code compatible with the standard \s-1GNU\s0 Objective-C
2198 runtime.  This is the default for most types of systems.
2199 .IP "\fB\-fnext\-runtime\fR" 4
2200 .IX Item "-fnext-runtime"
2201 Generate output compatible with the NeXT runtime.  This is the default
2202 for NeXT-based systems, including Darwin and Mac \s-1OS\s0 X.  The macro
2203 \&\f(CW\*(C`_\|_NEXT_RUNTIME_\|_\*(C'\fR is predefined if (and only if) this option is
2204 used.
2205 .IP "\fB\-fno\-nil\-receivers\fR" 4
2206 .IX Item "-fno-nil-receivers"
2207 Assume that all Objective-C message dispatches (e.g.,
2208 \&\f(CW\*(C`[receiver message:arg]\*(C'\fR) in this translation unit ensure that the receiver
2209 is not \f(CW\*(C`nil\*(C'\fR.  This allows for more efficient entry points in the runtime
2210 to be used.  Currently, this option is only available in conjunction with
2211 the NeXT runtime on Mac \s-1OS\s0 X 10.3 and later.
2212 .IP "\fB\-fobjc\-call\-cxx\-cdtors\fR" 4
2213 .IX Item "-fobjc-call-cxx-cdtors"
2214 For each Objective-C class, check if any of its instance variables is a
2215 \&\*(C+ object with a non-trivial default constructor.  If so, synthesize a
2216 special \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR instance method that will run
2217 non-trivial default constructors on any such instance variables, in order,
2218 and then return \f(CW\*(C`self\*(C'\fR.  Similarly, check if any instance variable
2219 is a \*(C+ object with a non-trivial destructor, and if so, synthesize a
2220 special \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR method that will run
2221 all such default destructors, in reverse order.
2222 .Sp
2223 The \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR and/or \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods
2224 thusly generated will only operate on instance variables declared in the
2225 current Objective-C class, and not those inherited from superclasses.  It
2226 is the responsibility of the Objective-C runtime to invoke all such methods
2227 in an object's inheritance hierarchy.  The \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR methods
2228 will be invoked by the runtime immediately after a new object
2229 instance is allocated; the \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods will
2230 be invoked immediately before the runtime deallocates an object instance.
2231 .Sp
2232 As of this writing, only the NeXT runtime on Mac \s-1OS\s0 X 10.4 and later has
2233 support for invoking the \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR and
2234 \&\f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods.
2235 .IP "\fB\-fobjc\-direct\-dispatch\fR" 4
2236 .IX Item "-fobjc-direct-dispatch"
2237 Allow fast jumps to the message dispatcher.  On Darwin this is
2238 accomplished via the comm page.
2239 .IP "\fB\-fobjc\-exceptions\fR" 4
2240 .IX Item "-fobjc-exceptions"
2241 Enable syntactic support for structured exception handling in Objective-C,
2242 similar to what is offered by \*(C+ and Java.  This option is
2243 unavailable in conjunction with the NeXT runtime on Mac \s-1OS\s0 X 10.2 and
2244 earlier.
2245 .Sp
2246 .Vb 10
2247 \&          @try {
2248 \&            ...
2249 \&               @throw expr;
2250 \&            ...
2251 \&          }
2252 \&          @catch (AnObjCClass *exc) {
2253 \&            ...
2254 \&              @throw expr;
2255 \&            ...
2256 \&              @throw;
2257 \&            ...
2258 \&          }
2259 \&          @catch (AnotherClass *exc) {
2260 \&            ...
2261 \&          }
2262 \&          @catch (id allOthers) {
2263 \&            ...
2264 \&          }
2265 \&          @finally {
2266 \&            ...
2267 \&              @throw expr;
2268 \&            ...
2269 \&          }
2270 .Ve
2271 .Sp
2272 The \f(CW@throw\fR statement may appear anywhere in an Objective-C or
2273 Objective\-\*(C+ program; when used inside of a \f(CW@catch\fR block, the
2274 \&\f(CW@throw\fR may appear without an argument (as shown above), in which case
2275 the object caught by the \f(CW@catch\fR will be rethrown.
2276 .Sp
2277 Note that only (pointers to) Objective-C objects may be thrown and
2278 caught using this scheme.  When an object is thrown, it will be caught
2279 by the nearest \f(CW@catch\fR clause capable of handling objects of that type,
2280 analogously to how \f(CW\*(C`catch\*(C'\fR blocks work in \*(C+ and Java.  A
2281 \&\f(CW\*(C`@catch(id ...)\*(C'\fR clause (as shown above) may also be provided to catch
2282 any and all Objective-C exceptions not caught by previous \f(CW@catch\fR
2283 clauses (if any).
2284 .Sp
2285 The \f(CW@finally\fR clause, if present, will be executed upon exit from the
2286 immediately preceding \f(CW\*(C`@try ... @catch\*(C'\fR section.  This will happen
2287 regardless of whether any exceptions are thrown, caught or rethrown
2288 inside the \f(CW\*(C`@try ... @catch\*(C'\fR section, analogously to the behavior
2289 of the \f(CW\*(C`finally\*(C'\fR clause in Java.
2290 .Sp
2291 There are several caveats to using the new exception mechanism:
2292 .RS 4
2293 .IP "\(bu" 4
2294 Although currently designed to be binary compatible with \f(CW\*(C`NS_HANDLER\*(C'\fR\-style
2295 idioms provided by the \f(CW\*(C`NSException\*(C'\fR class, the new
2296 exceptions can only be used on Mac \s-1OS\s0 X 10.3 (Panther) and later
2297 systems, due to additional functionality needed in the (NeXT) Objective-C
2298 runtime.
2299 .IP "\(bu" 4
2300 As mentioned above, the new exceptions do not support handling
2301 types other than Objective-C objects.   Furthermore, when used from
2302 Objective\-\*(C+, the Objective-C exception model does not interoperate with \*(C+
2303 exceptions at this time.  This means you cannot \f(CW@throw\fR an exception
2304 from Objective-C and \f(CW\*(C`catch\*(C'\fR it in \*(C+, or vice versa
2305 (i.e., \f(CW\*(C`throw ... @catch\*(C'\fR).
2306 .RE
2307 .RS 4
2308 .Sp
2309 The \fB\-fobjc\-exceptions\fR switch also enables the use of synchronization
2310 blocks for thread-safe execution:
2311 .Sp
2312 .Vb 3
2313 \&          @synchronized (ObjCClass *guard) {
2314 \&            ...
2315 \&          }
2316 .Ve
2317 .Sp
2318 Upon entering the \f(CW@synchronized\fR block, a thread of execution shall
2319 first check whether a lock has been placed on the corresponding \f(CW\*(C`guard\*(C'\fR
2320 object by another thread.  If it has, the current thread shall wait until
2321 the other thread relinquishes its lock.  Once \f(CW\*(C`guard\*(C'\fR becomes available,
2322 the current thread will place its own lock on it, execute the code contained in
2323 the \f(CW@synchronized\fR block, and finally relinquish the lock (thereby
2324 making \f(CW\*(C`guard\*(C'\fR available to other threads).
2325 .Sp
2326 Unlike Java, Objective-C does not allow for entire methods to be marked
2327 \&\f(CW@synchronized\fR.  Note that throwing exceptions out of
2328 \&\f(CW@synchronized\fR blocks is allowed, and will cause the guarding object
2329 to be unlocked properly.
2330 .RE
2331 .IP "\fB\-fobjc\-gc\fR" 4
2332 .IX Item "-fobjc-gc"
2333 Enable garbage collection (\s-1GC\s0) in Objective-C and Objective\-\*(C+ programs.
2334 .IP "\fB\-freplace\-objc\-classes\fR" 4
2335 .IX Item "-freplace-objc-classes"
2336 Emit a special marker instructing \fB\f(BIld\fB\|(1)\fR not to statically link in
2337 the resulting object file, and allow \fB\f(BIdyld\fB\|(1)\fR to load it in at
2338 run time instead.  This is used in conjunction with the Fix-and-Continue
2339 debugging mode, where the object file in question may be recompiled and
2340 dynamically reloaded in the course of program execution, without the need
2341 to restart the program itself.  Currently, Fix-and-Continue functionality
2342 is only available in conjunction with the NeXT runtime on Mac \s-1OS\s0 X 10.3
2343 and later.
2344 .IP "\fB\-fzero\-link\fR" 4
2345 .IX Item "-fzero-link"
2346 When compiling for the NeXT runtime, the compiler ordinarily replaces calls
2347 to \f(CW\*(C`objc_getClass("...")\*(C'\fR (when the name of the class is known at
2348 compile time) with static class references that get initialized at load time,
2349 which improves run-time performance.  Specifying the \fB\-fzero\-link\fR flag
2350 suppresses this behavior and causes calls to \f(CW\*(C`objc_getClass("...")\*(C'\fR
2351 to be retained.  This is useful in Zero-Link debugging mode, since it allows
2352 for individual class implementations to be modified during program execution.
2353 .IP "\fB\-gen\-decls\fR" 4
2354 .IX Item "-gen-decls"
2355 Dump interface declarations for all classes seen in the source file to a
2356 file named \fI\fIsourcename\fI.decl\fR.
2357 .IP "\fB\-Wassign\-intercept\fR (Objective-C and Objective\-\*(C+ only)" 4
2358 .IX Item "-Wassign-intercept (Objective-C and Objective- only)"
2359 Warn whenever an Objective-C assignment is being intercepted by the
2360 garbage collector.
2361 .IP "\fB\-Wno\-protocol\fR (Objective-C and Objective\-\*(C+ only)" 4
2362 .IX Item "-Wno-protocol (Objective-C and Objective- only)"
2363 If a class is declared to implement a protocol, a warning is issued for
2364 every method in the protocol that is not implemented by the class.  The
2365 default behavior is to issue a warning for every method not explicitly
2366 implemented in the class, even if a method implementation is inherited
2367 from the superclass.  If you use the \fB\-Wno\-protocol\fR option, then
2368 methods inherited from the superclass are considered to be implemented,
2369 and no warning is issued for them.
2370 .IP "\fB\-Wselector\fR (Objective-C and Objective\-\*(C+ only)" 4
2371 .IX Item "-Wselector (Objective-C and Objective- only)"
2372 Warn if multiple methods of different types for the same selector are
2373 found during compilation.  The check is performed on the list of methods
2374 in the final stage of compilation.  Additionally, a check is performed
2375 for each selector appearing in a \f(CW\*(C`@selector(...)\*(C'\fR
2376 expression, and a corresponding method for that selector has been found
2377 during compilation.  Because these checks scan the method table only at
2378 the end of compilation, these warnings are not produced if the final
2379 stage of compilation is not reached, for example because an error is
2380 found during compilation, or because the \fB\-fsyntax\-only\fR option is
2381 being used.
2382 .IP "\fB\-Wstrict\-selector\-match\fR (Objective-C and Objective\-\*(C+ only)" 4
2383 .IX Item "-Wstrict-selector-match (Objective-C and Objective- only)"
2384 Warn if multiple methods with differing argument and/or return types are
2385 found for a given selector when attempting to send a message using this
2386 selector to a receiver of type \f(CW\*(C`id\*(C'\fR or \f(CW\*(C`Class\*(C'\fR.  When this flag
2387 is off (which is the default behavior), the compiler will omit such warnings
2388 if any differences found are confined to types which share the same size
2389 and alignment.
2390 .IP "\fB\-Wundeclared\-selector\fR (Objective-C and Objective\-\*(C+ only)" 4
2391 .IX Item "-Wundeclared-selector (Objective-C and Objective- only)"
2392 Warn if a \f(CW\*(C`@selector(...)\*(C'\fR expression referring to an
2393 undeclared selector is found.  A selector is considered undeclared if no
2394 method with that name has been declared before the
2395 \&\f(CW\*(C`@selector(...)\*(C'\fR expression, either explicitly in an
2396 \&\f(CW@interface\fR or \f(CW@protocol\fR declaration, or implicitly in
2397 an \f(CW@implementation\fR section.  This option always performs its
2398 checks as soon as a \f(CW\*(C`@selector(...)\*(C'\fR expression is found,
2399 while \fB\-Wselector\fR only performs its checks in the final stage of
2400 compilation.  This also enforces the coding style convention
2401 that methods and selectors must be declared before being used.
2402 .IP "\fB\-print\-objc\-runtime\-info\fR" 4
2403 .IX Item "-print-objc-runtime-info"
2404 Generate C header describing the largest structure that is passed by
2405 value, if any.
2406 .SS "Options to Control Diagnostic Messages Formatting"
2407 .IX Subsection "Options to Control Diagnostic Messages Formatting"
2408 Traditionally, diagnostic messages have been formatted irrespective of
2409 the output device's aspect (e.g. its width, ...).  The options described
2410 below can be used to control the diagnostic messages formatting
2411 algorithm, e.g. how many characters per line, how often source location
2412 information should be reported.  Right now, only the \*(C+ front end can
2413 honor these options.  However it is expected, in the near future, that
2414 the remaining front ends would be able to digest them correctly.
2415 .IP "\fB\-fmessage\-length=\fR\fIn\fR" 4
2416 .IX Item "-fmessage-length=n"
2417 Try to format error messages so that they fit on lines of about \fIn\fR
2418 characters.  The default is 72 characters for \fBg++\fR and 0 for the rest of
2419 the front ends supported by \s-1GCC\s0.  If \fIn\fR is zero, then no
2420 line-wrapping will be done; each error message will appear on a single
2421 line.
2422 .IP "\fB\-fdiagnostics\-show\-location=once\fR" 4
2423 .IX Item "-fdiagnostics-show-location=once"
2424 Only meaningful in line-wrapping mode.  Instructs the diagnostic messages
2425 reporter to emit \fIonce\fR source location information; that is, in
2426 case the message is too long to fit on a single physical line and has to
2427 be wrapped, the source location won't be emitted (as prefix) again,
2428 over and over, in subsequent continuation lines.  This is the default
2429 behavior.
2430 .IP "\fB\-fdiagnostics\-show\-location=every\-line\fR" 4
2431 .IX Item "-fdiagnostics-show-location=every-line"
2432 Only meaningful in line-wrapping mode.  Instructs the diagnostic
2433 messages reporter to emit the same source location information (as
2434 prefix) for physical lines that result from the process of breaking
2435 a message which is too long to fit on a single line.
2436 .IP "\fB\-fdiagnostics\-show\-option\fR" 4
2437 .IX Item "-fdiagnostics-show-option"
2438 This option instructs the diagnostic machinery to add text to each
2439 diagnostic emitted, which indicates which command line option directly
2440 controls that diagnostic, when such an option is known to the
2441 diagnostic machinery.
2442 .IP "\fB\-Wcoverage\-mismatch\fR" 4
2443 .IX Item "-Wcoverage-mismatch"
2444 Warn if feedback profiles do not match when using the
2445 \&\fB\-fprofile\-use\fR option.
2446 If a source file was changed between \fB\-fprofile\-gen\fR and
2447 \&\fB\-fprofile\-use\fR, the files with the profile feedback can fail
2448 to match the source file and \s-1GCC\s0 can not use the profile feedback
2449 information.  By default, \s-1GCC\s0 emits an error message in this case.
2450 The option \fB\-Wcoverage\-mismatch\fR emits a warning instead of an
2451 error.  \s-1GCC\s0 does not use appropriate feedback profiles, so using this
2452 option can result in poorly optimized code.  This option is useful
2453 only in the case of very minor changes such as bug fixes to an
2454 existing code-base.
2455 .SS "Options to Request or Suppress Warnings"
2456 .IX Subsection "Options to Request or Suppress Warnings"
2457 Warnings are diagnostic messages that report constructions which
2458 are not inherently erroneous but which are risky or suggest there
2459 may have been an error.
2460 .PP
2461 The following language-independent options do not enable specific
2462 warnings but control the kinds of diagnostics produced by \s-1GCC\s0.
2463 .IP "\fB\-fsyntax\-only\fR" 4
2464 .IX Item "-fsyntax-only"
2465 Check the code for syntax errors, but don't do anything beyond that.
2466 .IP "\fB\-w\fR" 4
2467 .IX Item "-w"
2468 Inhibit all warning messages.
2469 .IP "\fB\-Werror\fR" 4
2470 .IX Item "-Werror"
2471 Make all warnings into errors.
2472 .IP "\fB\-Werror=\fR" 4
2473 .IX Item "-Werror="
2474 Make the specified warning into an error.  The specifier for a warning
2475 is appended, for example \fB\-Werror=switch\fR turns the warnings
2476 controlled by \fB\-Wswitch\fR into errors.  This switch takes a
2477 negative form, to be used to negate \fB\-Werror\fR for specific
2478 warnings, for example \fB\-Wno\-error=switch\fR makes
2479 \&\fB\-Wswitch\fR warnings not be errors, even when \fB\-Werror\fR
2480 is in effect.  You can use the \fB\-fdiagnostics\-show\-option\fR
2481 option to have each controllable warning amended with the option which
2482 controls it, to determine what to use with this option.
2483 .Sp
2484 Note that specifying \fB\-Werror=\fR\fIfoo\fR automatically implies
2485 \&\fB\-W\fR\fIfoo\fR.  However, \fB\-Wno\-error=\fR\fIfoo\fR does not
2486 imply anything.
2487 .IP "\fB\-Wfatal\-errors\fR" 4
2488 .IX Item "-Wfatal-errors"
2489 This option causes the compiler to abort compilation on the first error
2490 occurred rather than trying to keep going and printing further error
2491 messages.
2492 .PP
2493 You can request many specific warnings with options beginning
2494 \&\fB\-W\fR, for example \fB\-Wimplicit\fR to request warnings on
2495 implicit declarations.  Each of these specific warning options also
2496 has a negative form beginning \fB\-Wno\-\fR to turn off warnings; for
2497 example, \fB\-Wno\-implicit\fR.  This manual lists only one of the
2498 two forms, whichever is not the default.  For further,
2499 language-specific options also refer to \fB\*(C+ Dialect Options\fR and
2500 \&\fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
2501 .IP "\fB\-pedantic\fR" 4
2502 .IX Item "-pedantic"
2503 Issue all the warnings demanded by strict \s-1ISO\s0 C and \s-1ISO\s0 \*(C+;
2504 reject all programs that use forbidden extensions, and some other
2505 programs that do not follow \s-1ISO\s0 C and \s-1ISO\s0 \*(C+.  For \s-1ISO\s0 C, follows the
2506 version of the \s-1ISO\s0 C standard specified by any \fB\-std\fR option used.
2507 .Sp
2508 Valid \s-1ISO\s0 C and \s-1ISO\s0 \*(C+ programs should compile properly with or without
2509 this option (though a rare few will require \fB\-ansi\fR or a
2510 \&\fB\-std\fR option specifying the required version of \s-1ISO\s0 C).  However,
2511 without this option, certain \s-1GNU\s0 extensions and traditional C and \*(C+
2512 features are supported as well.  With this option, they are rejected.
2513 .Sp
2514 \&\fB\-pedantic\fR does not cause warning messages for use of the
2515 alternate keywords whose names begin and end with \fB_\|_\fR.  Pedantic
2516 warnings are also disabled in the expression that follows
2517 \&\f(CW\*(C`_\|_extension_\|_\*(C'\fR.  However, only system header files should use
2518 these escape routes; application programs should avoid them.
2519 .Sp
2520 Some users try to use \fB\-pedantic\fR to check programs for strict \s-1ISO\s0
2521 C conformance.  They soon find that it does not do quite what they want:
2522 it finds some non-ISO practices, but not all\-\-\-only those for which
2523 \&\s-1ISO\s0 C \fIrequires\fR a diagnostic, and some others for which
2524 diagnostics have been added.
2525 .Sp
2526 A feature to report any failure to conform to \s-1ISO\s0 C might be useful in
2527 some instances, but would require considerable additional work and would
2528 be quite different from \fB\-pedantic\fR.  We don't have plans to
2529 support such a feature in the near future.
2530 .Sp
2531 Where the standard specified with \fB\-std\fR represents a \s-1GNU\s0
2532 extended dialect of C, such as \fBgnu89\fR or \fBgnu99\fR, there is a
2533 corresponding \fIbase standard\fR, the version of \s-1ISO\s0 C on which the \s-1GNU\s0
2534 extended dialect is based.  Warnings from \fB\-pedantic\fR are given
2535 where they are required by the base standard.  (It would not make sense
2536 for such warnings to be given only for features not in the specified \s-1GNU\s0
2537 C dialect, since by definition the \s-1GNU\s0 dialects of C include all
2538 features the compiler supports with the given option, and there would be
2539 nothing to warn about.)
2540 .IP "\fB\-pedantic\-errors\fR" 4
2541 .IX Item "-pedantic-errors"
2542 Like \fB\-pedantic\fR, except that errors are produced rather than
2543 warnings.
2544 .IP "\fB\-Wall\fR" 4
2545 .IX Item "-Wall"
2546 This enables all the warnings about constructions that some users
2547 consider questionable, and that are easy to avoid (or modify to
2548 prevent the warning), even in conjunction with macros.  This also
2549 enables some language-specific warnings described in \fB\*(C+ Dialect
2550 Options\fR and \fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
2551 .Sp
2552 \&\fB\-Wall\fR turns on the following warning flags:
2553 .Sp
2554 \&\fB\-Waddress   
2555 \&\-Warray\-bounds\fR (only with\fB \fR\fB\-O2\fR)  
2556 \&\fB\-Wc++0x\-compat  
2557 \&\-Wchar\-subscripts  
2558 \&\-Wimplicit\-int  
2559 \&\-Wimplicit\-function\-declaration  
2560 \&\-Wcomment  
2561 \&\-Wformat   
2562 \&\-Wmain\fR (only for C/ObjC and unless\fB \fR\fB\-ffreestanding\fR)  
2563 \&\fB\-Wmissing\-braces  
2564 \&\-Wnonnull  
2565 \&\-Wparentheses  
2566 \&\-Wpointer\-sign  
2567 \&\-Wreorder   
2568 \&\-Wreturn\-type  
2569 \&\-Wsequence\-point  
2570 \&\-Wsign\-compare\fR (only in \*(C+)  
2571 \&\fB\-Wstrict\-aliasing  
2572 \&\-Wstrict\-overflow=1  
2573 \&\-Wswitch  
2574 \&\-Wtrigraphs  
2575 \&\-Wuninitialized  
2576 \&\-Wunknown\-pragmas  
2577 \&\-Wunused\-function  
2578 \&\-Wunused\-label     
2579 \&\-Wunused\-value     
2580 \&\-Wunused\-variable  
2581 \&\-Wvolatile\-register\-var\fR
2582 .Sp
2583 Note that some warning flags are not implied by \fB\-Wall\fR.  Some of
2584 them warn about constructions that users generally do not consider
2585 questionable, but which occasionally you might wish to check for;
2586 others warn about constructions that are necessary or hard to avoid in
2587 some cases, and there is no simple way to modify the code to suppress
2588 the warning. Some of them are enabled by \fB\-Wextra\fR but many of
2589 them must be enabled individually.
2590 .IP "\fB\-Wextra\fR" 4
2591 .IX Item "-Wextra"
2592 This enables some extra warning flags that are not enabled by
2593 \&\fB\-Wall\fR. (This option used to be called \fB\-W\fR.  The older
2594 name is still supported, but the newer name is more descriptive.)
2595 .Sp
2596 \&\fB\-Wclobbered  
2597 \&\-Wempty\-body  
2598 \&\-Wignored\-qualifiers 
2599 \&\-Wmissing\-field\-initializers  
2600 \&\-Wmissing\-parameter\-type\fR (C only)  
2601 \&\fB\-Wold\-style\-declaration\fR (C only)  
2602 \&\fB\-Woverride\-init  
2603 \&\-Wsign\-compare  
2604 \&\-Wtype\-limits  
2605 \&\-Wuninitialized  
2606 \&\-Wunused\-parameter\fR (only with\fB \fR\fB\-Wunused\fR\fB \fRor\fB \fR\fB\-Wall\fR)  \fB \fR
2607 .Sp
2608 The option \fB\-Wextra\fR also prints warning messages for the
2609 following cases:
2610 .RS 4
2611 .IP "\(bu" 4
2612 A pointer is compared against integer zero with \fB<\fR, \fB<=\fR,
2613 \&\fB>\fR, or \fB>=\fR.
2614 .IP "\(bu" 4
2615 (\*(C+ only) An enumerator and a non-enumerator both appear in a
2616 conditional expression.
2617 .IP "\(bu" 4
2618 (\*(C+ only) Ambiguous virtual bases.
2619 .IP "\(bu" 4
2620 (\*(C+ only) Subscripting an array which has been declared \fBregister\fR.
2621 .IP "\(bu" 4
2622 (\*(C+ only) Taking the address of a variable which has been declared
2623 \&\fBregister\fR.
2624 .IP "\(bu" 4
2625 (\*(C+ only) A base class is not initialized in a derived class' copy
2626 constructor.
2627 .RE
2628 .RS 4
2629 .RE
2630 .IP "\fB\-Wchar\-subscripts\fR" 4
2631 .IX Item "-Wchar-subscripts"
2632 Warn if an array subscript has type \f(CW\*(C`char\*(C'\fR.  This is a common cause
2633 of error, as programmers often forget that this type is signed on some
2634 machines.
2635 This warning is enabled by \fB\-Wall\fR.
2636 .IP "\fB\-Wcomment\fR" 4
2637 .IX Item "-Wcomment"
2638 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
2639 comment, or whenever a Backslash-Newline appears in a \fB//\fR comment.
2640 This warning is enabled by \fB\-Wall\fR.
2641 .IP "\fB\-Wformat\fR" 4
2642 .IX Item "-Wformat"
2643 Check calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR, etc., to make sure that
2644 the arguments supplied have types appropriate to the format string
2645 specified, and that the conversions specified in the format string make
2646 sense.  This includes standard functions, and others specified by format
2647 attributes, in the \f(CW\*(C`printf\*(C'\fR,
2648 \&\f(CW\*(C`scanf\*(C'\fR, \f(CW\*(C`strftime\*(C'\fR and \f(CW\*(C`strfmon\*(C'\fR (an X/Open extension,
2649 not in the C standard) families (or other target-specific families).
2650 Which functions are checked without format attributes having been
2651 specified depends on the standard version selected, and such checks of
2652 functions without the attribute specified are disabled by
2653 \&\fB\-ffreestanding\fR or \fB\-fno\-builtin\fR.
2654 .Sp
2655 The formats are checked against the format features supported by \s-1GNU\s0
2656 libc version 2.2.  These include all \s-1ISO\s0 C90 and C99 features, as well
2657 as features from the Single Unix Specification and some \s-1BSD\s0 and \s-1GNU\s0
2658 extensions.  Other library implementations may not support all these
2659 features; \s-1GCC\s0 does not support warning about features that go beyond a
2660 particular library's limitations.  However, if \fB\-pedantic\fR is used
2661 with \fB\-Wformat\fR, warnings will be given about format features not
2662 in the selected standard version (but not for \f(CW\*(C`strfmon\*(C'\fR formats,
2663 since those are not in any version of the C standard).
2664 .Sp
2665 Since \fB\-Wformat\fR also checks for null format arguments for
2666 several functions, \fB\-Wformat\fR also implies \fB\-Wnonnull\fR.
2667 .Sp
2668 \&\fB\-Wformat\fR is included in \fB\-Wall\fR.  For more control over some
2669 aspects of format checking, the options \fB\-Wformat\-y2k\fR,
2670 \&\fB\-Wno\-format\-extra\-args\fR, \fB\-Wno\-format\-zero\-length\fR,
2671 \&\fB\-Wformat\-nonliteral\fR, \fB\-Wformat\-security\fR, and
2672 \&\fB\-Wformat=2\fR are available, but are not included in \fB\-Wall\fR.
2673 .IP "\fB\-Wformat\-y2k\fR" 4
2674 .IX Item "-Wformat-y2k"
2675 If \fB\-Wformat\fR is specified, also warn about \f(CW\*(C`strftime\*(C'\fR
2676 formats which may yield only a two-digit year.
2677 .IP "\fB\-Wno\-format\-contains\-nul\fR" 4
2678 .IX Item "-Wno-format-contains-nul"
2679 If \fB\-Wformat\fR is specified, do not warn about format strings that
2680 contain \s-1NUL\s0 bytes.
2681 .IP "\fB\-Wno\-format\-extra\-args\fR" 4
2682 .IX Item "-Wno-format-extra-args"
2683 If \fB\-Wformat\fR is specified, do not warn about excess arguments to a
2684 \&\f(CW\*(C`printf\*(C'\fR or \f(CW\*(C`scanf\*(C'\fR format function.  The C standard specifies
2685 that such arguments are ignored.
2686 .Sp
2687 Where the unused arguments lie between used arguments that are
2688 specified with \fB$\fR operand number specifications, normally
2689 warnings are still given, since the implementation could not know what
2690 type to pass to \f(CW\*(C`va_arg\*(C'\fR to skip the unused arguments.  However,
2691 in the case of \f(CW\*(C`scanf\*(C'\fR formats, this option will suppress the
2692 warning if the unused arguments are all pointers, since the Single
2693 Unix Specification says that such unused arguments are allowed.
2694 .IP "\fB\-Wno\-format\-zero\-length\fR (C and Objective-C only)" 4
2695 .IX Item "-Wno-format-zero-length (C and Objective-C only)"
2696 If \fB\-Wformat\fR is specified, do not warn about zero-length formats.
2697 The C standard specifies that zero-length formats are allowed.
2698 .IP "\fB\-Wformat\-nonliteral\fR" 4
2699 .IX Item "-Wformat-nonliteral"
2700 If \fB\-Wformat\fR is specified, also warn if the format string is not a
2701 string literal and so cannot be checked, unless the format function
2702 takes its format arguments as a \f(CW\*(C`va_list\*(C'\fR.
2703 .IP "\fB\-Wformat\-security\fR" 4
2704 .IX Item "-Wformat-security"
2705 If \fB\-Wformat\fR is specified, also warn about uses of format
2706 functions that represent possible security problems.  At present, this
2707 warns about calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR functions where the
2708 format string is not a string literal and there are no format arguments,
2709 as in \f(CW\*(C`printf (foo);\*(C'\fR.  This may be a security hole if the format
2710 string came from untrusted input and contains \fB\f(CB%n\fB\fR.  (This is
2711 currently a subset of what \fB\-Wformat\-nonliteral\fR warns about, but
2712 in future warnings may be added to \fB\-Wformat\-security\fR that are not
2713 included in \fB\-Wformat\-nonliteral\fR.)
2714 .IP "\fB\-Wformat=2\fR" 4
2715 .IX Item "-Wformat=2"
2716 Enable \fB\-Wformat\fR plus format checks not included in
2717 \&\fB\-Wformat\fR.  Currently equivalent to \fB\-Wformat
2718 \&\-Wformat\-nonliteral \-Wformat\-security \-Wformat\-y2k\fR.
2719 .IP "\fB\-Wnonnull\fR (C and Objective-C only)" 4
2720 .IX Item "-Wnonnull (C and Objective-C only)"
2721 Warn about passing a null pointer for arguments marked as
2722 requiring a non-null value by the \f(CW\*(C`nonnull\*(C'\fR function attribute.
2723 .Sp
2724 \&\fB\-Wnonnull\fR is included in \fB\-Wall\fR and \fB\-Wformat\fR.  It
2725 can be disabled with the \fB\-Wno\-nonnull\fR option.
2726 .IP "\fB\-Winit\-self\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
2727 .IX Item "-Winit-self (C, , Objective-C and Objective- only)"
2728 Warn about uninitialized variables which are initialized with themselves.
2729 Note this option can only be used with the \fB\-Wuninitialized\fR option.
2730 .Sp
2731 For example, \s-1GCC\s0 will warn about \f(CW\*(C`i\*(C'\fR being uninitialized in the
2732 following snippet only when \fB\-Winit\-self\fR has been specified:
2733 .Sp
2734 .Vb 5
2735 \&        int f()
2736 \&        {
2737 \&          int i = i;
2738 \&          return i;
2739 \&        }
2740 .Ve
2741 .IP "\fB\-Wimplicit\-int\fR (C and Objective-C only)" 4
2742 .IX Item "-Wimplicit-int (C and Objective-C only)"
2743 Warn when a declaration does not specify a type.
2744 This warning is enabled by \fB\-Wall\fR.
2745 .IP "\fB\-Wimplicit\-function\-declaration\fR (C and Objective-C only)" 4
2746 .IX Item "-Wimplicit-function-declaration (C and Objective-C only)"
2747 Give a warning whenever a function is used before being declared. In
2748 C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this warning is
2749 enabled by default and it is made into an error by
2750 \&\fB\-pedantic\-errors\fR. This warning is also enabled by
2751 \&\fB\-Wall\fR.
2752 .IP "\fB\-Wimplicit\fR" 4
2753 .IX Item "-Wimplicit"
2754 Same as \fB\-Wimplicit\-int\fR and \fB\-Wimplicit\-function\-declaration\fR.
2755 This warning is enabled by \fB\-Wall\fR.
2756 .IP "\fB\-Wignored\-qualifiers\fR (C and \*(C+ only)" 4
2757 .IX Item "-Wignored-qualifiers (C and  only)"
2758 Warn if the return type of a function has a type qualifier
2759 such as \f(CW\*(C`const\*(C'\fR.  For \s-1ISO\s0 C such a type qualifier has no effect,
2760 since the value returned by a function is not an lvalue.
2761 For \*(C+, the warning is only emitted for scalar types or \f(CW\*(C`void\*(C'\fR.
2762 \&\s-1ISO\s0 C prohibits qualified \f(CW\*(C`void\*(C'\fR return types on function
2763 definitions, so such return types always receive a warning
2764 even without this option.
2765 .Sp
2766 This warning is also enabled by \fB\-Wextra\fR.
2767 .IP "\fB\-Wmain\fR" 4
2768 .IX Item "-Wmain"
2769 Warn if the type of \fBmain\fR is suspicious.  \fBmain\fR should be
2770 a function with external linkage, returning int, taking either zero
2771 arguments, two, or three arguments of appropriate types.  This warning
2772 is enabled by default in \*(C+ and is enabled by either \fB\-Wall\fR
2773 or \fB\-pedantic\fR.
2774 .IP "\fB\-Wmissing\-braces\fR" 4
2775 .IX Item "-Wmissing-braces"
2776 Warn if an aggregate or union initializer is not fully bracketed.  In
2777 the following example, the initializer for \fBa\fR is not fully
2778 bracketed, but that for \fBb\fR is fully bracketed.
2779 .Sp
2780 .Vb 2
2781 \&        int a[2][2] = { 0, 1, 2, 3 };
2782 \&        int b[2][2] = { { 0, 1 }, { 2, 3 } };
2783 .Ve
2784 .Sp
2785 This warning is enabled by \fB\-Wall\fR.
2786 .IP "\fB\-Wmissing\-include\-dirs\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
2787 .IX Item "-Wmissing-include-dirs (C, , Objective-C and Objective- only)"
2788 Warn if a user-supplied include directory does not exist.
2789 .IP "\fB\-Wparentheses\fR" 4
2790 .IX Item "-Wparentheses"
2791 Warn if parentheses are omitted in certain contexts, such
2792 as when there is an assignment in a context where a truth value
2793 is expected, or when operators are nested whose precedence people
2794 often get confused about.
2795 .Sp
2796 Also warn if a comparison like \fBx<=y<=z\fR appears; this is
2797 equivalent to \fB(x<=y ? 1 : 0) <= z\fR, which is a different
2798 interpretation from that of ordinary mathematical notation.
2799 .Sp
2800 Also warn about constructions where there may be confusion to which
2801 \&\f(CW\*(C`if\*(C'\fR statement an \f(CW\*(C`else\*(C'\fR branch belongs.  Here is an example of
2802 such a case:
2803 .Sp
2804 .Vb 7
2805 \&        {
2806 \&          if (a)
2807 \&            if (b)
2808 \&              foo ();
2809 \&          else
2810 \&            bar ();
2811 \&        }
2812 .Ve
2813 .Sp
2814 In C/\*(C+, every \f(CW\*(C`else\*(C'\fR branch belongs to the innermost possible
2815 \&\f(CW\*(C`if\*(C'\fR statement, which in this example is \f(CW\*(C`if (b)\*(C'\fR.  This is
2816 often not what the programmer expected, as illustrated in the above
2817 example by indentation the programmer chose.  When there is the
2818 potential for this confusion, \s-1GCC\s0 will issue a warning when this flag
2819 is specified.  To eliminate the warning, add explicit braces around
2820 the innermost \f(CW\*(C`if\*(C'\fR statement so there is no way the \f(CW\*(C`else\*(C'\fR
2821 could belong to the enclosing \f(CW\*(C`if\*(C'\fR.  The resulting code would
2822 look like this:
2823 .Sp
2824 .Vb 9
2825 \&        {
2826 \&          if (a)
2827 \&            {
2828 \&              if (b)
2829 \&                foo ();
2830 \&              else
2831 \&                bar ();
2832 \&            }
2833 \&        }
2834 .Ve
2835 .Sp
2836 This warning is enabled by \fB\-Wall\fR.
2837 .IP "\fB\-Wsequence\-point\fR" 4
2838 .IX Item "-Wsequence-point"
2839 Warn about code that may have undefined semantics because of violations
2840 of sequence point rules in the C and \*(C+ standards.
2841 .Sp
2842 The C and \*(C+ standards defines the order in which expressions in a C/\*(C+
2843 program are evaluated in terms of \fIsequence points\fR, which represent
2844 a partial ordering between the execution of parts of the program: those
2845 executed before the sequence point, and those executed after it.  These
2846 occur after the evaluation of a full expression (one which is not part
2847 of a larger expression), after the evaluation of the first operand of a
2848 \&\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
2849 function is called (but after the evaluation of its arguments and the
2850 expression denoting the called function), and in certain other places.
2851 Other than as expressed by the sequence point rules, the order of
2852 evaluation of subexpressions of an expression is not specified.  All
2853 these rules describe only a partial order rather than a total order,
2854 since, for example, if two functions are called within one expression
2855 with no sequence point between them, the order in which the functions
2856 are called is not specified.  However, the standards committee have
2857 ruled that function calls do not overlap.
2858 .Sp
2859 It is not specified when between sequence points modifications to the
2860 values of objects take effect.  Programs whose behavior depends on this
2861 have undefined behavior; the C and \*(C+ standards specify that \*(L"Between
2862 the previous and next sequence point an object shall have its stored
2863 value modified at most once by the evaluation of an expression.
2864 Furthermore, the prior value shall be read only to determine the value
2865 to be stored.\*(R".  If a program breaks these rules, the results on any
2866 particular implementation are entirely unpredictable.
2867 .Sp
2868 Examples of code with undefined behavior are \f(CW\*(C`a = a++;\*(C'\fR, \f(CW\*(C`a[n]
2869 = b[n++]\*(C'\fR and \f(CW\*(C`a[i++] = i;\*(C'\fR.  Some more complicated cases are not
2870 diagnosed by this option, and it may give an occasional false positive
2871 result, but in general it has been found fairly effective at detecting
2872 this sort of problem in programs.
2873 .Sp
2874 The standard is worded confusingly, therefore there is some debate
2875 over the precise meaning of the sequence point rules in subtle cases.
2876 Links to discussions of the problem, including proposed formal
2877 definitions, may be found on the \s-1GCC\s0 readings page, at
2878 <\fBhttp://gcc.gnu.org/readings.html\fR>.
2879 .Sp
2880 This warning is enabled by \fB\-Wall\fR for C and \*(C+.
2881 .IP "\fB\-Wreturn\-type\fR" 4
2882 .IX Item "-Wreturn-type"
2883 Warn whenever a function is defined with a return-type that defaults
2884 to \f(CW\*(C`int\*(C'\fR.  Also warn about any \f(CW\*(C`return\*(C'\fR statement with no
2885 return-value in a function whose return-type is not \f(CW\*(C`void\*(C'\fR
2886 (falling off the end of the function body is considered returning
2887 without a value), and about a \f(CW\*(C`return\*(C'\fR statement with a
2888 expression in a function whose return-type is \f(CW\*(C`void\*(C'\fR.
2889 .Sp
2890 For \*(C+, a function without return type always produces a diagnostic
2891 message, even when \fB\-Wno\-return\-type\fR is specified.  The only
2892 exceptions are \fBmain\fR and functions defined in system headers.
2893 .Sp
2894 This warning is enabled by \fB\-Wall\fR.
2895 .IP "\fB\-Wswitch\fR" 4
2896 .IX Item "-Wswitch"
2897 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
2898 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
2899 enumeration.  (The presence of a \f(CW\*(C`default\*(C'\fR label prevents this
2900 warning.)  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
2901 provoke warnings when this option is used.
2902 This warning is enabled by \fB\-Wall\fR.
2903 .IP "\fB\-Wswitch\-default\fR" 4
2904 .IX Item "-Wswitch-default"
2905 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement does not have a \f(CW\*(C`default\*(C'\fR
2906 case.
2907 .IP "\fB\-Wswitch\-enum\fR" 4
2908 .IX Item "-Wswitch-enum"
2909 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
2910 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
2911 enumeration.  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
2912 provoke warnings when this option is used.
2913 .IP "\fB\-Wsync\-nand\fR (C and \*(C+ only)" 4
2914 .IX Item "-Wsync-nand (C and  only)"
2915 Warn when \f(CW\*(C`_\|_sync_fetch_and_nand\*(C'\fR and \f(CW\*(C`_\|_sync_nand_and_fetch\*(C'\fR
2916 built-in functions are used.  These functions changed semantics in \s-1GCC\s0 4.4.
2917 .IP "\fB\-Wtrigraphs\fR" 4
2918 .IX Item "-Wtrigraphs"
2919 Warn if any trigraphs are encountered that might change the meaning of
2920 the program (trigraphs within comments are not warned about).
2921 This warning is enabled by \fB\-Wall\fR.
2922 .IP "\fB\-Wunused\-function\fR" 4
2923 .IX Item "-Wunused-function"
2924 Warn whenever a static function is declared but not defined or a
2925 non-inline static function is unused.
2926 This warning is enabled by \fB\-Wall\fR.
2927 .IP "\fB\-Wunused\-label\fR" 4
2928 .IX Item "-Wunused-label"
2929 Warn whenever a label is declared but not used.
2930 This warning is enabled by \fB\-Wall\fR.
2931 .Sp
2932 To suppress this warning use the \fBunused\fR attribute.
2933 .IP "\fB\-Wunused\-parameter\fR" 4
2934 .IX Item "-Wunused-parameter"
2935 Warn whenever a function parameter is unused aside from its declaration.
2936 .Sp
2937 To suppress this warning use the \fBunused\fR attribute.
2938 .IP "\fB\-Wunused\-variable\fR" 4
2939 .IX Item "-Wunused-variable"
2940 Warn whenever a local variable or non-constant static variable is unused
2941 aside from its declaration.
2942 This warning is enabled by \fB\-Wall\fR.
2943 .Sp
2944 To suppress this warning use the \fBunused\fR attribute.
2945 .IP "\fB\-Wunused\-value\fR" 4
2946 .IX Item "-Wunused-value"
2947 Warn whenever a statement computes a result that is explicitly not
2948 used. To suppress this warning cast the unused expression to
2949 \&\fBvoid\fR. This includes an expression-statement or the left-hand
2950 side of a comma expression that contains no side effects. For example,
2951 an expression such as \fBx[i,j]\fR will cause a warning, while
2952 \&\fBx[(void)i,j]\fR will not.
2953 .Sp
2954 This warning is enabled by \fB\-Wall\fR.
2955 .IP "\fB\-Wunused\fR" 4
2956 .IX Item "-Wunused"
2957 All the above \fB\-Wunused\fR options combined.
2958 .Sp
2959 In order to get a warning about an unused function parameter, you must
2960 either specify \fB\-Wextra \-Wunused\fR (note that \fB\-Wall\fR implies
2961 \&\fB\-Wunused\fR), or separately specify \fB\-Wunused\-parameter\fR.
2962 .IP "\fB\-Wuninitialized\fR" 4
2963 .IX Item "-Wuninitialized"
2964 Warn if an automatic variable is used without first being initialized
2965 or if a variable may be clobbered by a \f(CW\*(C`setjmp\*(C'\fR call. In \*(C+,
2966 warn if a non-static reference or non-static \fBconst\fR member
2967 appears in a class without constructors.
2968 .Sp
2969 If you want to warn about code which uses the uninitialized value of the
2970 variable in its own initializer, use the \fB\-Winit\-self\fR option.
2971 .Sp
2972 These warnings occur for individual uninitialized or clobbered
2973 elements of structure, union or array variables as well as for
2974 variables which are uninitialized or clobbered as a whole.  They do
2975 not occur for variables or elements declared \f(CW\*(C`volatile\*(C'\fR.  Because
2976 these warnings depend on optimization, the exact variables or elements
2977 for which there are warnings will depend on the precise optimization
2978 options and version of \s-1GCC\s0 used.
2979 .Sp
2980 Note that there may be no warning about a variable that is used only
2981 to compute a value that itself is never used, because such
2982 computations may be deleted by data flow analysis before the warnings
2983 are printed.
2984 .Sp
2985 These warnings are made optional because \s-1GCC\s0 is not smart
2986 enough to see all the reasons why the code might be correct
2987 despite appearing to have an error.  Here is one example of how
2988 this can happen:
2989 .Sp
2990 .Vb 12
2991 \&        {
2992 \&          int x;
2993 \&          switch (y)
2994 \&            {
2995 \&            case 1: x = 1;
2996 \&              break;
2997 \&            case 2: x = 4;
2998 \&              break;
2999 \&            case 3: x = 5;
3000 \&            }
3001 \&          foo (x);
3002 \&        }
3003 .Ve
3004 .Sp
3005 If the value of \f(CW\*(C`y\*(C'\fR is always 1, 2 or 3, then \f(CW\*(C`x\*(C'\fR is
3006 always initialized, but \s-1GCC\s0 doesn't know this.  Here is
3007 another common case:
3008 .Sp
3009 .Vb 6
3010 \&        {
3011 \&          int save_y;
3012 \&          if (change_y) save_y = y, y = new_y;
3013 \&          ...
3014 \&          if (change_y) y = save_y;
3015 \&        }
3016 .Ve
3017 .Sp
3018 This has no bug because \f(CW\*(C`save_y\*(C'\fR is used only if it is set.
3019 .Sp
3020 This option also warns when a non-volatile automatic variable might be
3021 changed by a call to \f(CW\*(C`longjmp\*(C'\fR.  These warnings as well are possible
3022 only in optimizing compilation.
3023 .Sp
3024 The compiler sees only the calls to \f(CW\*(C`setjmp\*(C'\fR.  It cannot know
3025 where \f(CW\*(C`longjmp\*(C'\fR will be called; in fact, a signal handler could
3026 call it at any point in the code.  As a result, you may get a warning
3027 even when there is in fact no problem because \f(CW\*(C`longjmp\*(C'\fR cannot
3028 in fact be called at the place which would cause a problem.
3029 .Sp
3030 Some spurious warnings can be avoided if you declare all the functions
3031 you use that never return as \f(CW\*(C`noreturn\*(C'\fR.
3032 .Sp
3033 This warning is enabled by \fB\-Wall\fR or \fB\-Wextra\fR.
3034 .IP "\fB\-Wunknown\-pragmas\fR" 4
3035 .IX Item "-Wunknown-pragmas"
3036 Warn when a #pragma directive is encountered which is not understood by
3037 \&\s-1GCC\s0.  If this command line option is used, warnings will even be issued
3038 for unknown pragmas in system header files.  This is not the case if
3039 the warnings were only enabled by the \fB\-Wall\fR command line option.
3040 .IP "\fB\-Wno\-pragmas\fR" 4
3041 .IX Item "-Wno-pragmas"
3042 Do not warn about misuses of pragmas, such as incorrect parameters,
3043 invalid syntax, or conflicts between pragmas.  See also
3044 \&\fB\-Wunknown\-pragmas\fR.
3045 .IP "\fB\-Wstrict\-aliasing\fR" 4
3046 .IX Item "-Wstrict-aliasing"
3047 This option is only active when \fB\-fstrict\-aliasing\fR is active.
3048 It warns about code which might break the strict aliasing rules that the
3049 compiler is using for optimization.  The warning does not catch all
3050 cases, but does attempt to catch the more common pitfalls.  It is
3051 included in \fB\-Wall\fR.
3052 It is equivalent to \fB\-Wstrict\-aliasing=3\fR
3053 .IP "\fB\-Wstrict\-aliasing=n\fR" 4
3054 .IX Item "-Wstrict-aliasing=n"
3055 This option is only active when \fB\-fstrict\-aliasing\fR is active.
3056 It warns about code which might break the strict aliasing rules that the
3057 compiler is using for optimization.
3058 Higher levels correspond to higher accuracy (fewer false positives).
3059 Higher levels also correspond to more effort, similar to the way \-O works.
3060 \&\fB\-Wstrict\-aliasing\fR is equivalent to \fB\-Wstrict\-aliasing=n\fR,
3061 with n=3.
3062 .Sp
3063 Level 1: Most aggressive, quick, least accurate.
3064 Possibly useful when higher levels
3065 do not warn but \-fstrict\-aliasing still breaks the code, as it has very few 
3066 false negatives.  However, it has many false positives.
3067 Warns for all pointer conversions between possibly incompatible types, 
3068 even if never dereferenced.  Runs in the frontend only.
3069 .Sp
3070 Level 2: Aggressive, quick, not too precise.
3071 May still have many false positives (not as many as level 1 though),
3072 and few false negatives (but possibly more than level 1).
3073 Unlike level 1, it only warns when an address is taken.  Warns about
3074 incomplete types.  Runs in the frontend only.
3075 .Sp
3076 Level 3 (default for \fB\-Wstrict\-aliasing\fR): 
3077 Should have very few false positives and few false 
3078 negatives.  Slightly slower than levels 1 or 2 when optimization is enabled.
3079 Takes care of the common punn+dereference pattern in the frontend:
3080 \&\f(CW\*(C`*(int*)&some_float\*(C'\fR.
3081 If optimization is enabled, it also runs in the backend, where it deals 
3082 with multiple statement cases using flow-sensitive points-to information.
3083 Only warns when the converted pointer is dereferenced.
3084 Does not warn about incomplete types.
3085 .IP "\fB\-Wstrict\-overflow\fR" 4
3086 .IX Item "-Wstrict-overflow"
3087 .PD 0
3088 .IP "\fB\-Wstrict\-overflow=\fR\fIn\fR" 4
3089 .IX Item "-Wstrict-overflow=n"
3090 .PD
3091 This option is only active when \fB\-fstrict\-overflow\fR is active.
3092 It warns about cases where the compiler optimizes based on the
3093 assumption that signed overflow does not occur.  Note that it does not
3094 warn about all cases where the code might overflow: it only warns
3095 about cases where the compiler implements some optimization.  Thus
3096 this warning depends on the optimization level.
3097 .Sp
3098 An optimization which assumes that signed overflow does not occur is
3099 perfectly safe if the values of the variables involved are such that
3100 overflow never does, in fact, occur.  Therefore this warning can
3101 easily give a false positive: a warning about code which is not
3102 actually a problem.  To help focus on important issues, several
3103 warning levels are defined.  No warnings are issued for the use of
3104 undefined signed overflow when estimating how many iterations a loop
3105 will require, in particular when determining whether a loop will be
3106 executed at all.
3107 .RS 4
3108 .IP "\fB\-Wstrict\-overflow=1\fR" 4
3109 .IX Item "-Wstrict-overflow=1"
3110 Warn about cases which are both questionable and easy to avoid.  For
3111 example: \f(CW\*(C`x + 1 > x\*(C'\fR; with \fB\-fstrict\-overflow\fR, the
3112 compiler will simplify this to \f(CW1\fR.  This level of
3113 \&\fB\-Wstrict\-overflow\fR is enabled by \fB\-Wall\fR; higher levels
3114 are not, and must be explicitly requested.
3115 .IP "\fB\-Wstrict\-overflow=2\fR" 4
3116 .IX Item "-Wstrict-overflow=2"
3117 Also warn about other cases where a comparison is simplified to a
3118 constant.  For example: \f(CW\*(C`abs (x) >= 0\*(C'\fR.  This can only be
3119 simplified when \fB\-fstrict\-overflow\fR is in effect, because
3120 \&\f(CW\*(C`abs (INT_MIN)\*(C'\fR overflows to \f(CW\*(C`INT_MIN\*(C'\fR, which is less than
3121 zero.  \fB\-Wstrict\-overflow\fR (with no level) is the same as
3122 \&\fB\-Wstrict\-overflow=2\fR.
3123 .IP "\fB\-Wstrict\-overflow=3\fR" 4
3124 .IX Item "-Wstrict-overflow=3"
3125 Also warn about other cases where a comparison is simplified.  For
3126 example: \f(CW\*(C`x + 1 > 1\*(C'\fR will be simplified to \f(CW\*(C`x > 0\*(C'\fR.
3127 .IP "\fB\-Wstrict\-overflow=4\fR" 4
3128 .IX Item "-Wstrict-overflow=4"
3129 Also warn about other simplifications not covered by the above cases.
3130 For example: \f(CW\*(C`(x * 10) / 5\*(C'\fR will be simplified to \f(CW\*(C`x * 2\*(C'\fR.
3131 .IP "\fB\-Wstrict\-overflow=5\fR" 4
3132 .IX Item "-Wstrict-overflow=5"
3133 Also warn about cases where the compiler reduces the magnitude of a
3134 constant involved in a comparison.  For example: \f(CW\*(C`x + 2 > y\*(C'\fR will
3135 be simplified to \f(CW\*(C`x + 1 >= y\*(C'\fR.  This is reported only at the
3136 highest warning level because this simplification applies to many
3137 comparisons, so this warning level will give a very large number of
3138 false positives.
3139 .RE
3140 .RS 4
3141 .RE
3142 .IP "\fB\-Warray\-bounds\fR" 4
3143 .IX Item "-Warray-bounds"
3144 This option is only active when \fB\-ftree\-vrp\fR is active
3145 (default for \-O2 and above). It warns about subscripts to arrays
3146 that are always out of bounds. This warning is enabled by \fB\-Wall\fR.
3147 .IP "\fB\-Wno\-div\-by\-zero\fR" 4
3148 .IX Item "-Wno-div-by-zero"
3149 Do not warn about compile-time integer division by zero.  Floating point
3150 division by zero is not warned about, as it can be a legitimate way of
3151 obtaining infinities and NaNs.
3152 .IP "\fB\-Wsystem\-headers\fR" 4
3153 .IX Item "-Wsystem-headers"
3154 Print warning messages for constructs found in system header files.
3155 Warnings from system headers are normally suppressed, on the assumption
3156 that they usually do not indicate real problems and would only make the
3157 compiler output harder to read.  Using this command line option tells
3158 \&\s-1GCC\s0 to emit warnings from system headers as if they occurred in user
3159 code.  However, note that using \fB\-Wall\fR in conjunction with this
3160 option will \fInot\fR warn about unknown pragmas in system
3161 headers\-\-\-for that, \fB\-Wunknown\-pragmas\fR must also be used.
3162 .IP "\fB\-Wfloat\-equal\fR" 4
3163 .IX Item "-Wfloat-equal"
3164 Warn if floating point values are used in equality comparisons.
3165 .Sp
3166 The idea behind this is that sometimes it is convenient (for the
3167 programmer) to consider floating-point values as approximations to
3168 infinitely precise real numbers.  If you are doing this, then you need
3169 to compute (by analyzing the code, or in some other way) the maximum or
3170 likely maximum error that the computation introduces, and allow for it
3171 when performing comparisons (and when producing output, but that's a
3172 different problem).  In particular, instead of testing for equality, you
3173 would check to see whether the two values have ranges that overlap; and
3174 this is done with the relational operators, so equality comparisons are
3175 probably mistaken.
3176 .IP "\fB\-Wtraditional\fR (C and Objective-C only)" 4
3177 .IX Item "-Wtraditional (C and Objective-C only)"
3178 Warn about certain constructs that behave differently in traditional and
3179 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
3180 equivalent, and/or problematic constructs which should be avoided.
3181 .RS 4
3182 .IP "\(bu" 4
3183 Macro parameters that appear within string literals in the macro body.
3184 In traditional C macro replacement takes place within string literals,
3185 but does not in \s-1ISO\s0 C.
3186 .IP "\(bu" 4
3187 In traditional C, some preprocessor directives did not exist.
3188 Traditional preprocessors would only consider a line to be a directive
3189 if the \fB#\fR appeared in column 1 on the line.  Therefore
3190 \&\fB\-Wtraditional\fR warns about directives that traditional C
3191 understands but would ignore because the \fB#\fR does not appear as the
3192 first character on the line.  It also suggests you hide directives like
3193 \&\fB#pragma\fR not understood by traditional C by indenting them.  Some
3194 traditional implementations would not recognize \fB#elif\fR, so it
3195 suggests avoiding it altogether.
3196 .IP "\(bu" 4
3197 A function-like macro that appears without arguments.
3198 .IP "\(bu" 4
3199 The unary plus operator.
3200 .IP "\(bu" 4
3201 The \fBU\fR integer constant suffix, or the \fBF\fR or \fBL\fR floating point
3202 constant suffixes.  (Traditional C does support the \fBL\fR suffix on integer
3203 constants.)  Note, these suffixes appear in macros defined in the system
3204 headers of most modern systems, e.g. the \fB_MIN\fR/\fB_MAX\fR macros in \f(CW\*(C`<limits.h>\*(C'\fR.
3205 Use of these macros in user code might normally lead to spurious
3206 warnings, however \s-1GCC\s0's integrated preprocessor has enough context to
3207 avoid warning in these cases.
3208 .IP "\(bu" 4
3209 A function declared external in one block and then used after the end of
3210 the block.
3211 .IP "\(bu" 4
3212 A \f(CW\*(C`switch\*(C'\fR statement has an operand of type \f(CW\*(C`long\*(C'\fR.
3213 .IP "\(bu" 4
3214 A non\-\f(CW\*(C`static\*(C'\fR function declaration follows a \f(CW\*(C`static\*(C'\fR one.
3215 This construct is not accepted by some traditional C compilers.
3216 .IP "\(bu" 4
3217 The \s-1ISO\s0 type of an integer constant has a different width or
3218 signedness from its traditional type.  This warning is only issued if
3219 the base of the constant is ten.  I.e. hexadecimal or octal values, which
3220 typically represent bit patterns, are not warned about.
3221 .IP "\(bu" 4
3222 Usage of \s-1ISO\s0 string concatenation is detected.
3223 .IP "\(bu" 4
3224 Initialization of automatic aggregates.
3225 .IP "\(bu" 4
3226 Identifier conflicts with labels.  Traditional C lacks a separate
3227 namespace for labels.
3228 .IP "\(bu" 4
3229 Initialization of unions.  If the initializer is zero, the warning is
3230 omitted.  This is done under the assumption that the zero initializer in
3231 user code appears conditioned on e.g. \f(CW\*(C`_\|_STDC_\|_\*(C'\fR to avoid missing
3232 initializer warnings and relies on default initialization to zero in the
3233 traditional C case.
3234 .IP "\(bu" 4
3235 Conversions by prototypes between fixed/floating point values and vice
3236 versa.  The absence of these prototypes when compiling with traditional
3237 C would cause serious problems.  This is a subset of the possible
3238 conversion warnings, for the full set use \fB\-Wtraditional\-conversion\fR.
3239 .IP "\(bu" 4
3240 Use of \s-1ISO\s0 C style function definitions.  This warning intentionally is
3241 \&\fInot\fR issued for prototype declarations or variadic functions
3242 because these \s-1ISO\s0 C features will appear in your code when using
3243 libiberty's traditional C compatibility macros, \f(CW\*(C`PARAMS\*(C'\fR and
3244 \&\f(CW\*(C`VPARAMS\*(C'\fR.  This warning is also bypassed for nested functions
3245 because that feature is already a \s-1GCC\s0 extension and thus not relevant to
3246 traditional C compatibility.
3247 .RE
3248 .RS 4
3249 .RE
3250 .IP "\fB\-Wtraditional\-conversion\fR (C and Objective-C only)" 4
3251 .IX Item "-Wtraditional-conversion (C and Objective-C only)"
3252 Warn if a prototype causes a type conversion that is different from what
3253 would happen to the same argument in the absence of a prototype.  This
3254 includes conversions of fixed point to floating and vice versa, and
3255 conversions changing the width or signedness of a fixed point argument
3256 except when the same as the default promotion.
3257 .IP "\fB\-Wdeclaration\-after\-statement\fR (C and Objective-C only)" 4
3258 .IX Item "-Wdeclaration-after-statement (C and Objective-C only)"
3259 Warn when a declaration is found after a statement in a block.  This
3260 construct, known from \*(C+, was introduced with \s-1ISO\s0 C99 and is by default
3261 allowed in \s-1GCC\s0.  It is not supported by \s-1ISO\s0 C90 and was not supported by
3262 \&\s-1GCC\s0 versions before \s-1GCC\s0 3.0.
3263 .IP "\fB\-Wundef\fR" 4
3264 .IX Item "-Wundef"
3265 Warn if an undefined identifier is evaluated in an \fB#if\fR directive.
3266 .IP "\fB\-Wno\-endif\-labels\fR" 4
3267 .IX Item "-Wno-endif-labels"
3268 Do not warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
3269 .IP "\fB\-Wshadow\fR" 4
3270 .IX Item "-Wshadow"
3271 Warn whenever a local variable shadows another local variable, parameter or
3272 global variable or whenever a built-in function is shadowed.
3273 .IP "\fB\-Wlarger\-than=\fR\fIlen\fR" 4
3274 .IX Item "-Wlarger-than=len"
3275 Warn whenever an object of larger than \fIlen\fR bytes is defined.
3276 .IP "\fB\-Wframe\-larger\-than=\fR\fIlen\fR" 4
3277 .IX Item "-Wframe-larger-than=len"
3278 Warn if the size of a function frame is larger than \fIlen\fR bytes.
3279 The computation done to determine the stack frame size is approximate
3280 and not conservative.
3281 The actual requirements may be somewhat greater than \fIlen\fR
3282 even if you do not get a warning.  In addition, any space allocated
3283 via \f(CW\*(C`alloca\*(C'\fR, variable-length arrays, or related constructs
3284 is not included by the compiler when determining
3285 whether or not to issue a warning.
3286 .IP "\fB\-Wunsafe\-loop\-optimizations\fR" 4
3287 .IX Item "-Wunsafe-loop-optimizations"
3288 Warn if the loop cannot be optimized because the compiler could not
3289 assume anything on the bounds of the loop indices.  With
3290 \&\fB\-funsafe\-loop\-optimizations\fR warn if the compiler made
3291 such assumptions.
3292 .IP "\fB\-Wno\-pedantic\-ms\-format\fR (MinGW targets only)" 4
3293 .IX Item "-Wno-pedantic-ms-format (MinGW targets only)"
3294 Disables the warnings about non-ISO \f(CW\*(C`printf\*(C'\fR / \f(CW\*(C`scanf\*(C'\fR format
3295 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
3296 depending on the \s-1MS\s0 runtime, when you are using the options \fB\-Wformat\fR
3297 and \fB\-pedantic\fR without gnu-extensions.
3298 .IP "\fB\-Wpointer\-arith\fR" 4
3299 .IX Item "-Wpointer-arith"
3300 Warn about anything that depends on the \*(L"size of\*(R" a function type or
3301 of \f(CW\*(C`void\*(C'\fR.  \s-1GNU\s0 C assigns these types a size of 1, for
3302 convenience in calculations with \f(CW\*(C`void *\*(C'\fR pointers and pointers
3303 to functions.  In \*(C+, warn also when an arithmetic operation involves
3304 \&\f(CW\*(C`NULL\*(C'\fR.  This warning is also enabled by \fB\-pedantic\fR.
3305 .IP "\fB\-Wtype\-limits\fR" 4
3306 .IX Item "-Wtype-limits"
3307 Warn if a comparison is always true or always false due to the limited
3308 range of the data type, but do not warn for constant expressions.  For
3309 example, warn if an unsigned variable is compared against zero with
3310 \&\fB<\fR or \fB>=\fR.  This warning is also enabled by
3311 \&\fB\-Wextra\fR.
3312 .IP "\fB\-Wbad\-function\-cast\fR (C and Objective-C only)" 4
3313 .IX Item "-Wbad-function-cast (C and Objective-C only)"
3314 Warn whenever a function call is cast to a non-matching type.
3315 For example, warn if \f(CW\*(C`int malloc()\*(C'\fR is cast to \f(CW\*(C`anything *\*(C'\fR.
3316 .IP "\fB\-Wc++\-compat\fR (C and Objective-C only)" 4
3317 .IX Item "-Wc++-compat (C and Objective-C only)"
3318 Warn about \s-1ISO\s0 C constructs that are outside of the common subset of
3319 \&\s-1ISO\s0 C and \s-1ISO\s0 \*(C+, e.g. request for implicit conversion from
3320 \&\f(CW\*(C`void *\*(C'\fR to a pointer to non\-\f(CW\*(C`void\*(C'\fR type.
3321 .IP "\fB\-Wc++0x\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
3322 .IX Item "-Wc++0x-compat ( and Objective- only)"
3323 Warn about \*(C+ constructs whose meaning differs between \s-1ISO\s0 \*(C+ 1998 and
3324 \&\s-1ISO\s0 \*(C+ 200x, e.g., identifiers in \s-1ISO\s0 \*(C+ 1998 that will become keywords
3325 in \s-1ISO\s0 \*(C+ 200x.  This warning is enabled by \fB\-Wall\fR.
3326 .IP "\fB\-Wcast\-qual\fR" 4
3327 .IX Item "-Wcast-qual"
3328 Warn whenever a pointer is cast so as to remove a type qualifier from
3329 the target type.  For example, warn if a \f(CW\*(C`const char *\*(C'\fR is cast
3330 to an ordinary \f(CW\*(C`char *\*(C'\fR.
3331 .IP "\fB\-Wcast\-align\fR" 4
3332 .IX Item "-Wcast-align"
3333 Warn whenever a pointer is cast such that the required alignment of the
3334 target is increased.  For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
3335 an \f(CW\*(C`int *\*(C'\fR on machines where integers can only be accessed at
3336 two\- or four-byte boundaries.
3337 .IP "\fB\-Wwrite\-strings\fR" 4
3338 .IX Item "-Wwrite-strings"
3339 When compiling C, give string constants the type \f(CW\*(C`const
3340 char[\f(CIlength\f(CW]\*(C'\fR so that copying the address of one into a
3341 non\-\f(CW\*(C`const\*(C'\fR \f(CW\*(C`char *\*(C'\fR pointer will get a warning.  These
3342 warnings will help you find at compile time code that can try to write
3343 into a string constant, but only if you have been very careful about
3344 using \f(CW\*(C`const\*(C'\fR in declarations and prototypes.  Otherwise, it will
3345 just be a nuisance. This is why we did not make \fB\-Wall\fR request
3346 these warnings.
3347 .Sp
3348 When compiling \*(C+, warn about the deprecated conversion from string
3349 literals to \f(CW\*(C`char *\*(C'\fR.  This warning is enabled by default for \*(C+
3350 programs.
3351 .IP "\fB\-Wclobbered\fR" 4
3352 .IX Item "-Wclobbered"
3353 Warn for variables that might be changed by \fBlongjmp\fR or
3354 \&\fBvfork\fR.  This warning is also enabled by \fB\-Wextra\fR.
3355 .IP "\fB\-Wconversion\fR" 4
3356 .IX Item "-Wconversion"
3357 Warn for implicit conversions that may alter a value. This includes
3358 conversions between real and integer, like \f(CW\*(C`abs (x)\*(C'\fR when
3359 \&\f(CW\*(C`x\*(C'\fR is \f(CW\*(C`double\*(C'\fR; conversions between signed and unsigned,
3360 like \f(CW\*(C`unsigned ui = \-1\*(C'\fR; and conversions to smaller types, like
3361 \&\f(CW\*(C`sqrtf (M_PI)\*(C'\fR. Do not warn for explicit casts like \f(CW\*(C`abs
3362 ((int) x)\*(C'\fR and \f(CW\*(C`ui = (unsigned) \-1\*(C'\fR, or if the value is not
3363 changed by the conversion like in \f(CW\*(C`abs (2.0)\*(C'\fR.  Warnings about
3364 conversions between signed and unsigned integers can be disabled by
3365 using \fB\-Wno\-sign\-conversion\fR.
3366 .Sp
3367 For \*(C+, also warn for conversions between \f(CW\*(C`NULL\*(C'\fR and non-pointer
3368 types; confusing overload resolution for user-defined conversions; and
3369 conversions that will never use a type conversion operator:
3370 conversions to \f(CW\*(C`void\*(C'\fR, the same type, a base class or a reference
3371 to them. Warnings about conversions between signed and unsigned
3372 integers are disabled by default in \*(C+ unless
3373 \&\fB\-Wsign\-conversion\fR is explicitly enabled.
3374 .IP "\fB\-Wempty\-body\fR" 4
3375 .IX Item "-Wempty-body"
3376 Warn if an empty body occurs in an \fBif\fR, \fBelse\fR or \fBdo
3377 while\fR statement.  This warning is also enabled by \fB\-Wextra\fR.
3378 .IP "\fB\-Wenum\-compare\fR (\*(C+ and Objective\-\*(C+ only)" 4
3379 .IX Item "-Wenum-compare ( and Objective- only)"
3380 Warn about a comparison between values of different enum types. This
3381 warning is enabled by default.
3382 .IP "\fB\-Wsign\-compare\fR" 4
3383 .IX Item "-Wsign-compare"
3384 Warn when a comparison between signed and unsigned values could produce
3385 an incorrect result when the signed value is converted to unsigned.
3386 This warning is also enabled by \fB\-Wextra\fR; to get the other warnings
3387 of \fB\-Wextra\fR without this warning, use \fB\-Wextra \-Wno\-sign\-compare\fR.
3388 .IP "\fB\-Wsign\-conversion\fR" 4
3389 .IX Item "-Wsign-conversion"
3390 Warn for implicit conversions that may change the sign of an integer
3391 value, like assigning a signed integer expression to an unsigned
3392 integer variable. An explicit cast silences the warning. In C, this
3393 option is enabled also by \fB\-Wconversion\fR.
3394 .IP "\fB\-Waddress\fR" 4
3395 .IX Item "-Waddress"
3396 Warn about suspicious uses of memory addresses. These include using
3397 the address of a function in a conditional expression, such as
3398 \&\f(CW\*(C`void func(void); if (func)\*(C'\fR, and comparisons against the memory
3399 address of a string literal, such as \f(CW\*(C`if (x == "abc")\*(C'\fR.  Such
3400 uses typically indicate a programmer error: the address of a function
3401 always evaluates to true, so their use in a conditional usually
3402 indicate that the programmer forgot the parentheses in a function
3403 call; and comparisons against string literals result in unspecified
3404 behavior and are not portable in C, so they usually indicate that the
3405 programmer intended to use \f(CW\*(C`strcmp\*(C'\fR.  This warning is enabled by
3406 \&\fB\-Wall\fR.
3407 .IP "\fB\-Wlogical\-op\fR" 4
3408 .IX Item "-Wlogical-op"
3409 Warn about suspicious uses of logical operators in expressions.
3410 This includes using logical operators in contexts where a
3411 bit-wise operator is likely to be expected.
3412 .IP "\fB\-Waggregate\-return\fR" 4
3413 .IX Item "-Waggregate-return"
3414 Warn if any functions that return structures or unions are defined or
3415 called.  (In languages where you can return an array, this also elicits
3416 a warning.)
3417 .IP "\fB\-Wno\-attributes\fR" 4
3418 .IX Item "-Wno-attributes"
3419 Do not warn if an unexpected \f(CW\*(C`_\|_attribute_\|_\*(C'\fR is used, such as
3420 unrecognized attributes, function attributes applied to variables,
3421 etc.  This will not stop errors for incorrect use of supported
3422 attributes.
3423 .IP "\fB\-Wno\-builtin\-macro\-redefined\fR" 4
3424 .IX Item "-Wno-builtin-macro-redefined"
3425 Do not warn if certain built-in macros are redefined.  This suppresses
3426 warnings for redefinition of \f(CW\*(C`_\|_TIMESTAMP_\|_\*(C'\fR, \f(CW\*(C`_\|_TIME_\|_\*(C'\fR,
3427 \&\f(CW\*(C`_\|_DATE_\|_\*(C'\fR, \f(CW\*(C`_\|_FILE_\|_\*(C'\fR, and \f(CW\*(C`_\|_BASE_FILE_\|_\*(C'\fR.
3428 .IP "\fB\-Wstrict\-prototypes\fR (C and Objective-C only)" 4
3429 .IX Item "-Wstrict-prototypes (C and Objective-C only)"
3430 Warn if a function is declared or defined without specifying the
3431 argument types.  (An old-style function definition is permitted without
3432 a warning if preceded by a declaration which specifies the argument
3433 types.)
3434 .IP "\fB\-Wold\-style\-declaration\fR (C and Objective-C only)" 4
3435 .IX Item "-Wold-style-declaration (C and Objective-C only)"
3436 Warn for obsolescent usages, according to the C Standard, in a
3437 declaration. For example, warn if storage-class specifiers like
3438 \&\f(CW\*(C`static\*(C'\fR are not the first things in a declaration.  This warning
3439 is also enabled by \fB\-Wextra\fR.
3440 .IP "\fB\-Wold\-style\-definition\fR (C and Objective-C only)" 4
3441 .IX Item "-Wold-style-definition (C and Objective-C only)"
3442 Warn if an old-style function definition is used.  A warning is given
3443 even if there is a previous prototype.
3444 .IP "\fB\-Wmissing\-parameter\-type\fR (C and Objective-C only)" 4
3445 .IX Item "-Wmissing-parameter-type (C and Objective-C only)"
3446 A function parameter is declared without a type specifier in K&R\-style
3447 functions:
3448 .Sp
3449 .Vb 1
3450 \&        void foo(bar) { }
3451 .Ve
3452 .Sp
3453 This warning is also enabled by \fB\-Wextra\fR.
3454 .IP "\fB\-Wmissing\-prototypes\fR (C and Objective-C only)" 4
3455 .IX Item "-Wmissing-prototypes (C and Objective-C only)"
3456 Warn if a global function is defined without a previous prototype
3457 declaration.  This warning is issued even if the definition itself
3458 provides a prototype.  The aim is to detect global functions that fail
3459 to be declared in header files.
3460 .IP "\fB\-Wmissing\-declarations\fR" 4
3461 .IX Item "-Wmissing-declarations"
3462 Warn if a global function is defined without a previous declaration.
3463 Do so even if the definition itself provides a prototype.
3464 Use this option to detect global functions that are not declared in
3465 header files.  In \*(C+, no warnings are issued for function templates,
3466 or for inline functions, or for functions in anonymous namespaces.
3467 .IP "\fB\-Wmissing\-field\-initializers\fR" 4
3468 .IX Item "-Wmissing-field-initializers"
3469 Warn if a structure's initializer has some fields missing.  For
3470 example, the following code would cause such a warning, because
3471 \&\f(CW\*(C`x.h\*(C'\fR is implicitly zero:
3472 .Sp
3473 .Vb 2
3474 \&        struct s { int f, g, h; };
3475 \&        struct s x = { 3, 4 };
3476 .Ve
3477 .Sp
3478 This option does not warn about designated initializers, so the following
3479 modification would not trigger a warning:
3480 .Sp
3481 .Vb 2
3482 \&        struct s { int f, g, h; };
3483 \&        struct s x = { .f = 3, .g = 4 };
3484 .Ve
3485 .Sp
3486 This warning is included in \fB\-Wextra\fR.  To get other \fB\-Wextra\fR
3487 warnings without this one, use \fB\-Wextra \-Wno\-missing\-field\-initializers\fR.
3488 .IP "\fB\-Wmissing\-noreturn\fR" 4
3489 .IX Item "-Wmissing-noreturn"
3490 Warn about functions which might be candidates for attribute \f(CW\*(C`noreturn\*(C'\fR.
3491 Note these are only possible candidates, not absolute ones.  Care should
3492 be taken to manually verify functions actually do not ever return before
3493 adding the \f(CW\*(C`noreturn\*(C'\fR attribute, otherwise subtle code generation
3494 bugs could be introduced.  You will not get a warning for \f(CW\*(C`main\*(C'\fR in
3495 hosted C environments.
3496 .IP "\fB\-Wmissing\-format\-attribute\fR" 4
3497 .IX Item "-Wmissing-format-attribute"
3498 Warn about function pointers which might be candidates for \f(CW\*(C`format\*(C'\fR
3499 attributes.  Note these are only possible candidates, not absolute ones.
3500 \&\s-1GCC\s0 will guess that function pointers with \f(CW\*(C`format\*(C'\fR attributes that
3501 are used in assignment, initialization, parameter passing or return
3502 statements should have a corresponding \f(CW\*(C`format\*(C'\fR attribute in the
3503 resulting type.  I.e. the left-hand side of the assignment or
3504 initialization, the type of the parameter variable, or the return type
3505 of the containing function respectively should also have a \f(CW\*(C`format\*(C'\fR
3506 attribute to avoid the warning.
3507 .Sp
3508 \&\s-1GCC\s0 will also warn about function definitions which might be
3509 candidates for \f(CW\*(C`format\*(C'\fR attributes.  Again, these are only
3510 possible candidates.  \s-1GCC\s0 will guess that \f(CW\*(C`format\*(C'\fR attributes
3511 might be appropriate for any function that calls a function like
3512 \&\f(CW\*(C`vprintf\*(C'\fR or \f(CW\*(C`vscanf\*(C'\fR, but this might not always be the
3513 case, and some functions for which \f(CW\*(C`format\*(C'\fR attributes are
3514 appropriate may not be detected.
3515 .IP "\fB\-Wno\-multichar\fR" 4
3516 .IX Item "-Wno-multichar"
3517 Do not warn if a multicharacter constant (\fB'\s-1FOOF\s0'\fR) is used.
3518 Usually they indicate a typo in the user's code, as they have
3519 implementation-defined values, and should not be used in portable code.
3520 .IP "\fB\-Wnormalized=<none|id|nfc|nfkc>\fR" 4
3521 .IX Item "-Wnormalized=<none|id|nfc|nfkc>"
3522 In \s-1ISO\s0 C and \s-1ISO\s0 \*(C+, two identifiers are different if they are
3523 different sequences of characters.  However, sometimes when characters
3524 outside the basic \s-1ASCII\s0 character set are used, you can have two
3525 different character sequences that look the same.  To avoid confusion,
3526 the \s-1ISO\s0 10646 standard sets out some \fInormalization rules\fR which
3527 when applied ensure that two sequences that look the same are turned into
3528 the same sequence.  \s-1GCC\s0 can warn you if you are using identifiers which
3529 have not been normalized; this option controls that warning.
3530 .Sp
3531 There are four levels of warning that \s-1GCC\s0 supports.  The default is
3532 \&\fB\-Wnormalized=nfc\fR, which warns about any identifier which is
3533 not in the \s-1ISO\s0 10646 \*(L"C\*(R" normalized form, \fI\s-1NFC\s0\fR.  \s-1NFC\s0 is the
3534 recommended form for most uses.
3535 .Sp
3536 Unfortunately, there are some characters which \s-1ISO\s0 C and \s-1ISO\s0 \*(C+ allow
3537 in identifiers that when turned into \s-1NFC\s0 aren't allowable as
3538 identifiers.  That is, there's no way to use these symbols in portable
3539 \&\s-1ISO\s0 C or \*(C+ and have all your identifiers in \s-1NFC\s0.
3540 \&\fB\-Wnormalized=id\fR suppresses the warning for these characters.
3541 It is hoped that future versions of the standards involved will correct
3542 this, which is why this option is not the default.
3543 .Sp
3544 You can switch the warning off for all characters by writing
3545 \&\fB\-Wnormalized=none\fR.  You would only want to do this if you
3546 were using some other normalization scheme (like \*(L"D\*(R"), because
3547 otherwise you can easily create bugs that are literally impossible to see.
3548 .Sp
3549 Some characters in \s-1ISO\s0 10646 have distinct meanings but look identical
3550 in some fonts or display methodologies, especially once formatting has
3551 been applied.  For instance \f(CW\*(C`\eu207F\*(C'\fR, \*(L"\s-1SUPERSCRIPT\s0 \s-1LATIN\s0 \s-1SMALL\s0
3552 \&\s-1LETTER\s0 N\*(R", will display just like a regular \f(CW\*(C`n\*(C'\fR which has been
3553 placed in a superscript.  \s-1ISO\s0 10646 defines the \fI\s-1NFKC\s0\fR
3554 normalization scheme to convert all these into a standard form as
3555 well, and \s-1GCC\s0 will warn if your code is not in \s-1NFKC\s0 if you use
3556 \&\fB\-Wnormalized=nfkc\fR.  This warning is comparable to warning
3557 about every identifier that contains the letter O because it might be
3558 confused with the digit 0, and so is not the default, but may be
3559 useful as a local coding convention if the programming environment is
3560 unable to be fixed to display these characters distinctly.
3561 .IP "\fB\-Wno\-deprecated\fR" 4
3562 .IX Item "-Wno-deprecated"
3563 Do not warn about usage of deprecated features.
3564 .IP "\fB\-Wno\-deprecated\-declarations\fR" 4
3565 .IX Item "-Wno-deprecated-declarations"
3566 Do not warn about uses of functions,
3567 variables, and types marked as deprecated by using the \f(CW\*(C`deprecated\*(C'\fR
3568 attribute.
3569 .IP "\fB\-Wno\-overflow\fR" 4
3570 .IX Item "-Wno-overflow"
3571 Do not warn about compile-time overflow in constant expressions.
3572 .IP "\fB\-Woverride\-init\fR (C and Objective-C only)" 4
3573 .IX Item "-Woverride-init (C and Objective-C only)"
3574 Warn if an initialized field without side effects is overridden when
3575 using designated initializers.
3576 .Sp
3577 This warning is included in \fB\-Wextra\fR.  To get other
3578 \&\fB\-Wextra\fR warnings without this one, use \fB\-Wextra
3579 \&\-Wno\-override\-init\fR.
3580 .IP "\fB\-Wpacked\fR" 4
3581 .IX Item "-Wpacked"
3582 Warn if a structure is given the packed attribute, but the packed
3583 attribute has no effect on the layout or size of the structure.
3584 Such structures may be mis-aligned for little benefit.  For
3585 instance, in this code, the variable \f(CW\*(C`f.x\*(C'\fR in \f(CW\*(C`struct bar\*(C'\fR
3586 will be misaligned even though \f(CW\*(C`struct bar\*(C'\fR does not itself
3587 have the packed attribute:
3588 .Sp
3589 .Vb 8
3590 \&        struct foo {
3591 \&          int x;
3592 \&          char a, b, c, d;
3593 \&        } _\|_attribute_\|_((packed));
3594 \&        struct bar {
3595 \&          char z;
3596 \&          struct foo f;
3597 \&        };
3598 .Ve
3599 .IP "\fB\-Wpacked\-bitfield\-compat\fR" 4
3600 .IX Item "-Wpacked-bitfield-compat"
3601 The 4.1, 4.2 and 4.3 series of \s-1GCC\s0 ignore the \f(CW\*(C`packed\*(C'\fR attribute
3602 on bit-fields of type \f(CW\*(C`char\*(C'\fR.  This has been fixed in \s-1GCC\s0 4.4 but
3603 the change can lead to differences in the structure layout.  \s-1GCC\s0
3604 informs you when the offset of such a field has changed in \s-1GCC\s0 4.4.
3605 For example there is no longer a 4\-bit padding between field \f(CW\*(C`a\*(C'\fR
3606 and \f(CW\*(C`b\*(C'\fR in this structure:
3607 .Sp
3608 .Vb 5
3609 \&        struct foo
3610 \&        {
3611 \&          char a:4;
3612 \&          char b:8;
3613 \&        } _\|_attribute_\|_ ((packed));
3614 .Ve
3615 .Sp
3616 This warning is enabled by default.  Use
3617 \&\fB\-Wno\-packed\-bitfield\-compat\fR to disable this warning.
3618 .IP "\fB\-Wpadded\fR" 4
3619 .IX Item "-Wpadded"
3620 Warn if padding is included in a structure, either to align an element
3621 of the structure or to align the whole structure.  Sometimes when this
3622 happens it is possible to rearrange the fields of the structure to
3623 reduce the padding and so make the structure smaller.
3624 .IP "\fB\-Wredundant\-decls\fR" 4
3625 .IX Item "-Wredundant-decls"
3626 Warn if anything is declared more than once in the same scope, even in
3627 cases where multiple declaration is valid and changes nothing.
3628 .IP "\fB\-Wnested\-externs\fR (C and Objective-C only)" 4
3629 .IX Item "-Wnested-externs (C and Objective-C only)"
3630 Warn if an \f(CW\*(C`extern\*(C'\fR declaration is encountered within a function.
3631 .IP "\fB\-Wunreachable\-code\fR" 4
3632 .IX Item "-Wunreachable-code"
3633 Warn if the compiler detects that code will never be executed.
3634 .Sp
3635 This option is intended to warn when the compiler detects that at
3636 least a whole line of source code will never be executed, because
3637 some condition is never satisfied or because it is after a
3638 procedure that never returns.
3639 .Sp
3640 It is possible for this option to produce a warning even though there
3641 are circumstances under which part of the affected line can be executed,
3642 so care should be taken when removing apparently-unreachable code.
3643 .Sp
3644 For instance, when a function is inlined, a warning may mean that the
3645 line is unreachable in only one inlined copy of the function.
3646 .Sp
3647 This option is not made part of \fB\-Wall\fR because in a debugging
3648 version of a program there is often substantial code which checks
3649 correct functioning of the program and is, hopefully, unreachable
3650 because the program does work.  Another common use of unreachable
3651 code is to provide behavior which is selectable at compile-time.
3652 .IP "\fB\-Winline\fR" 4
3653 .IX Item "-Winline"
3654 Warn if a function can not be inlined and it was declared as inline.
3655 Even with this option, the compiler will not warn about failures to
3656 inline functions declared in system headers.
3657 .Sp
3658 The compiler uses a variety of heuristics to determine whether or not
3659 to inline a function.  For example, the compiler takes into account
3660 the size of the function being inlined and the amount of inlining
3661 that has already been done in the current function.  Therefore,
3662 seemingly insignificant changes in the source program can cause the
3663 warnings produced by \fB\-Winline\fR to appear or disappear.
3664 .IP "\fB\-Wno\-invalid\-offsetof\fR (\*(C+ and Objective\-\*(C+ only)" 4
3665 .IX Item "-Wno-invalid-offsetof ( and Objective- only)"
3666 Suppress warnings from applying the \fBoffsetof\fR macro to a non-POD
3667 type.  According to the 1998 \s-1ISO\s0 \*(C+ standard, applying \fBoffsetof\fR
3668 to a non-POD type is undefined.  In existing \*(C+ implementations,
3669 however, \fBoffsetof\fR typically gives meaningful results even when
3670 applied to certain kinds of non-POD types. (Such as a simple
3671 \&\fBstruct\fR that fails to be a \s-1POD\s0 type only by virtue of having a
3672 constructor.)  This flag is for users who are aware that they are
3673 writing nonportable code and who have deliberately chosen to ignore the
3674 warning about it.
3675 .Sp
3676 The restrictions on \fBoffsetof\fR may be relaxed in a future version
3677 of the \*(C+ standard.
3678 .IP "\fB\-Wno\-int\-to\-pointer\-cast\fR (C and Objective-C only)" 4
3679 .IX Item "-Wno-int-to-pointer-cast (C and Objective-C only)"
3680 Suppress warnings from casts to pointer type of an integer of a
3681 different size.
3682 .IP "\fB\-Wno\-pointer\-to\-int\-cast\fR (C and Objective-C only)" 4
3683 .IX Item "-Wno-pointer-to-int-cast (C and Objective-C only)"
3684 Suppress warnings from casts from a pointer to an integer type of a
3685 different size.
3686 .IP "\fB\-Winvalid\-pch\fR" 4
3687 .IX Item "-Winvalid-pch"
3688 Warn if a precompiled header is found in
3689 the search path but can't be used.
3690 .IP "\fB\-Wlong\-long\fR" 4
3691 .IX Item "-Wlong-long"
3692 Warn if \fBlong long\fR type is used.  This is default.  To inhibit
3693 the warning messages, use \fB\-Wno\-long\-long\fR.  Flags
3694 \&\fB\-Wlong\-long\fR and \fB\-Wno\-long\-long\fR are taken into account
3695 only when \fB\-pedantic\fR flag is used.
3696 .IP "\fB\-Wvariadic\-macros\fR" 4
3697 .IX Item "-Wvariadic-macros"
3698 Warn if variadic macros are used in pedantic \s-1ISO\s0 C90 mode, or the \s-1GNU\s0
3699 alternate syntax when in pedantic \s-1ISO\s0 C99 mode.  This is default.
3700 To inhibit the warning messages, use \fB\-Wno\-variadic\-macros\fR.
3701 .IP "\fB\-Wvla\fR" 4
3702 .IX Item "-Wvla"
3703 Warn if variable length array is used in the code.
3704 \&\fB\-Wno\-vla\fR will prevent the \fB\-pedantic\fR warning of
3705 the variable length array.
3706 .IP "\fB\-Wvolatile\-register\-var\fR" 4
3707 .IX Item "-Wvolatile-register-var"
3708 Warn if a register variable is declared volatile.  The volatile
3709 modifier does not inhibit all optimizations that may eliminate reads
3710 and/or writes to register variables.  This warning is enabled by
3711 \&\fB\-Wall\fR.
3712 .IP "\fB\-Wdisabled\-optimization\fR" 4
3713 .IX Item "-Wdisabled-optimization"
3714 Warn if a requested optimization pass is disabled.  This warning does
3715 not generally indicate that there is anything wrong with your code; it
3716 merely indicates that \s-1GCC\s0's optimizers were unable to handle the code
3717 effectively.  Often, the problem is that your code is too big or too
3718 complex; \s-1GCC\s0 will refuse to optimize programs when the optimization
3719 itself is likely to take inordinate amounts of time.
3720 .IP "\fB\-Wpointer\-sign\fR (C and Objective-C only)" 4
3721 .IX Item "-Wpointer-sign (C and Objective-C only)"
3722 Warn for pointer argument passing or assignment with different signedness.
3723 This option is only supported for C and Objective-C.  It is implied by
3724 \&\fB\-Wall\fR and by \fB\-pedantic\fR, which can be disabled with
3725 \&\fB\-Wno\-pointer\-sign\fR.
3726 .IP "\fB\-Wstack\-protector\fR" 4
3727 .IX Item "-Wstack-protector"
3728 This option is only active when \fB\-fstack\-protector\fR is active.  It
3729 warns about functions that will not be protected against stack smashing.
3730 .IP "\fB\-Wno\-mudflap\fR" 4
3731 .IX Item "-Wno-mudflap"
3732 Suppress warnings about constructs that cannot be instrumented by
3733 \&\fB\-fmudflap\fR.
3734 .IP "\fB\-Woverlength\-strings\fR" 4
3735 .IX Item "-Woverlength-strings"
3736 Warn about string constants which are longer than the \*(L"minimum
3737 maximum\*(R" length specified in the C standard.  Modern compilers
3738 generally allow string constants which are much longer than the
3739 standard's minimum limit, but very portable programs should avoid
3740 using longer strings.
3741 .Sp
3742 The limit applies \fIafter\fR string constant concatenation, and does
3743 not count the trailing \s-1NUL\s0.  In C89, the limit was 509 characters; in
3744 C99, it was raised to 4095.  \*(C+98 does not specify a normative
3745 minimum maximum, so we do not diagnose overlength strings in \*(C+.
3746 .Sp
3747 This option is implied by \fB\-pedantic\fR, and can be disabled with
3748 \&\fB\-Wno\-overlength\-strings\fR.
3749 .SS "Options for Debugging Your Program or \s-1GCC\s0"
3750 .IX Subsection "Options for Debugging Your Program or GCC"
3751 \&\s-1GCC\s0 has various special options that are used for debugging
3752 either your program or \s-1GCC:\s0
3753 .IP "\fB\-g\fR" 4
3754 .IX Item "-g"
3755 Produce debugging information in the operating system's native format
3756 (stabs, \s-1COFF\s0, \s-1XCOFF\s0, or \s-1DWARF\s0 2).  \s-1GDB\s0 can work with this debugging
3757 information.
3758 .Sp
3759 On most systems that use stabs format, \fB\-g\fR enables use of extra
3760 debugging information that only \s-1GDB\s0 can use; this extra information
3761 makes debugging work better in \s-1GDB\s0 but will probably make other debuggers
3762 crash or
3763 refuse to read the program.  If you want to control for certain whether
3764 to generate the extra information, use \fB\-gstabs+\fR, \fB\-gstabs\fR,
3765 \&\fB\-gxcoff+\fR, \fB\-gxcoff\fR, or \fB\-gvms\fR (see below).
3766 .Sp
3767 \&\s-1GCC\s0 allows you to use \fB\-g\fR with
3768 \&\fB\-O\fR.  The shortcuts taken by optimized code may occasionally
3769 produce surprising results: some variables you declared may not exist
3770 at all; flow of control may briefly move where you did not expect it;
3771 some statements may not be executed because they compute constant
3772 results or their values were already at hand; some statements may
3773 execute in different places because they were moved out of loops.
3774 .Sp
3775 Nevertheless it proves possible to debug optimized output.  This makes
3776 it reasonable to use the optimizer for programs that might have bugs.
3777 .Sp
3778 The following options are useful when \s-1GCC\s0 is generated with the
3779 capability for more than one debugging format.
3780 .IP "\fB\-ggdb\fR" 4
3781 .IX Item "-ggdb"
3782 Produce debugging information for use by \s-1GDB\s0.  This means to use the
3783 most expressive format available (\s-1DWARF\s0 2, stabs, or the native format
3784 if neither of those are supported), including \s-1GDB\s0 extensions if at all
3785 possible.
3786 .IP "\fB\-gstabs\fR" 4
3787 .IX Item "-gstabs"
3788 Produce debugging information in stabs format (if that is supported),
3789 without \s-1GDB\s0 extensions.  This is the format used by \s-1DBX\s0 on most \s-1BSD\s0
3790 systems.  On \s-1MIPS\s0, Alpha and System V Release 4 systems this option
3791 produces stabs debugging output which is not understood by \s-1DBX\s0 or \s-1SDB\s0.
3792 On System V Release 4 systems this option requires the \s-1GNU\s0 assembler.
3793 .IP "\fB\-feliminate\-unused\-debug\-symbols\fR" 4
3794 .IX Item "-feliminate-unused-debug-symbols"
3795 Produce debugging information in stabs format (if that is supported),
3796 for only symbols that are actually used.
3797 .IP "\fB\-femit\-class\-debug\-always\fR" 4
3798 .IX Item "-femit-class-debug-always"
3799 Instead of emitting debugging information for a \*(C+ class in only one
3800 object file, emit it in all object files using the class.  This option
3801 should be used only with debuggers that are unable to handle the way \s-1GCC\s0
3802 normally emits debugging information for classes because using this
3803 option will increase the size of debugging information by as much as a
3804 factor of two.
3805 .IP "\fB\-gstabs+\fR" 4
3806 .IX Item "-gstabs+"
3807 Produce debugging information in stabs format (if that is supported),
3808 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
3809 use of these extensions is likely to make other debuggers crash or
3810 refuse to read the program.
3811 .IP "\fB\-gcoff\fR" 4
3812 .IX Item "-gcoff"
3813 Produce debugging information in \s-1COFF\s0 format (if that is supported).
3814 This is the format used by \s-1SDB\s0 on most System V systems prior to
3815 System V Release 4.
3816 .IP "\fB\-gxcoff\fR" 4
3817 .IX Item "-gxcoff"
3818 Produce debugging information in \s-1XCOFF\s0 format (if that is supported).
3819 This is the format used by the \s-1DBX\s0 debugger on \s-1IBM\s0 \s-1RS/6000\s0 systems.
3820 .IP "\fB\-gxcoff+\fR" 4
3821 .IX Item "-gxcoff+"
3822 Produce debugging information in \s-1XCOFF\s0 format (if that is supported),
3823 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
3824 use of these extensions is likely to make other debuggers crash or
3825 refuse to read the program, and may cause assemblers other than the \s-1GNU\s0
3826 assembler (\s-1GAS\s0) to fail with an error.
3827 .IP "\fB\-gdwarf\-2\fR" 4
3828 .IX Item "-gdwarf-2"
3829 Produce debugging information in \s-1DWARF\s0 version 2 format (if that is
3830 supported).  This is the format used by \s-1DBX\s0 on \s-1IRIX\s0 6.  With this
3831 option, \s-1GCC\s0 uses features of \s-1DWARF\s0 version 3 when they are useful;
3832 version 3 is upward compatible with version 2, but may still cause
3833 problems for older debuggers.
3834 .IP "\fB\-gvms\fR" 4
3835 .IX Item "-gvms"
3836 Produce debugging information in \s-1VMS\s0 debug format (if that is
3837 supported).  This is the format used by \s-1DEBUG\s0 on \s-1VMS\s0 systems.
3838 .IP "\fB\-g\fR\fIlevel\fR" 4
3839 .IX Item "-glevel"
3840 .PD 0
3841 .IP "\fB\-ggdb\fR\fIlevel\fR" 4
3842 .IX Item "-ggdblevel"
3843 .IP "\fB\-gstabs\fR\fIlevel\fR" 4
3844 .IX Item "-gstabslevel"
3845 .IP "\fB\-gcoff\fR\fIlevel\fR" 4
3846 .IX Item "-gcofflevel"
3847 .IP "\fB\-gxcoff\fR\fIlevel\fR" 4
3848 .IX Item "-gxcofflevel"
3849 .IP "\fB\-gvms\fR\fIlevel\fR" 4
3850 .IX Item "-gvmslevel"
3851 .PD
3852 Request debugging information and also use \fIlevel\fR to specify how
3853 much information.  The default level is 2.
3854 .Sp
3855 Level 0 produces no debug information at all.  Thus, \fB\-g0\fR negates
3856 \&\fB\-g\fR.
3857 .Sp
3858 Level 1 produces minimal information, enough for making backtraces in
3859 parts of the program that you don't plan to debug.  This includes
3860 descriptions of functions and external variables, but no information
3861 about local variables and no line numbers.
3862 .Sp
3863 Level 3 includes extra information, such as all the macro definitions
3864 present in the program.  Some debuggers support macro expansion when
3865 you use \fB\-g3\fR.
3866 .Sp
3867 \&\fB\-gdwarf\-2\fR does not accept a concatenated debug level, because
3868 \&\s-1GCC\s0 used to support an option \fB\-gdwarf\fR that meant to generate
3869 debug information in version 1 of the \s-1DWARF\s0 format (which is very
3870 different from version 2), and it would have been too confusing.  That
3871 debug format is long obsolete, but the option cannot be changed now.
3872 Instead use an additional \fB\-g\fR\fIlevel\fR option to change the
3873 debug level for \s-1DWARF2\s0.
3874 .IP "\fB\-feliminate\-dwarf2\-dups\fR" 4
3875 .IX Item "-feliminate-dwarf2-dups"
3876 Compress \s-1DWARF2\s0 debugging information by eliminating duplicated
3877 information about each symbol.  This option only makes sense when
3878 generating \s-1DWARF2\s0 debugging information with \fB\-gdwarf\-2\fR.
3879 .IP "\fB\-femit\-struct\-debug\-baseonly\fR" 4
3880 .IX Item "-femit-struct-debug-baseonly"
3881 Emit debug information for struct-like types
3882 only when the base name of the compilation source file
3883 matches the base name of file in which the struct was defined.
3884 .Sp
3885 This option substantially reduces the size of debugging information,
3886 but at significant potential loss in type information to the debugger.
3887 See \fB\-femit\-struct\-debug\-reduced\fR for a less aggressive option.
3888 See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
3889 .Sp
3890 This option works only with \s-1DWARF\s0 2.
3891 .IP "\fB\-femit\-struct\-debug\-reduced\fR" 4
3892 .IX Item "-femit-struct-debug-reduced"
3893 Emit debug information for struct-like types
3894 only when the base name of the compilation source file
3895 matches the base name of file in which the type was defined,
3896 unless the struct is a template or defined in a system header.
3897 .Sp
3898 This option significantly reduces the size of debugging information,
3899 with some potential loss in type information to the debugger.
3900 See \fB\-femit\-struct\-debug\-baseonly\fR for a more aggressive option.
3901 See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
3902 .Sp
3903 This option works only with \s-1DWARF\s0 2.
3904 .IP "\fB\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR]" 4
3905 .IX Item "-femit-struct-debug-detailed[=spec-list]"
3906 Specify the struct-like types
3907 for which the compiler will generate debug information.
3908 The intent is to reduce duplicate struct debug information
3909 between different object files within the same program.
3910 .Sp
3911 This option is a detailed version of
3912 \&\fB\-femit\-struct\-debug\-reduced\fR and \fB\-femit\-struct\-debug\-baseonly\fR,
3913 which will serve for most needs.
3914 .Sp
3915 A specification has the syntax
3916 [\fBdir:\fR|\fBind:\fR][\fBord:\fR|\fBgen:\fR](\fBany\fR|\fBsys\fR|\fBbase\fR|\fBnone\fR)
3917 .Sp
3918 The optional first word limits the specification to
3919 structs that are used directly (\fBdir:\fR) or used indirectly (\fBind:\fR).
3920 A struct type is used directly when it is the type of a variable, member.
3921 Indirect uses arise through pointers to structs.
3922 That is, when use of an incomplete struct would be legal, the use is indirect.
3923 An example is
3924 \&\fBstruct one direct; struct two * indirect;\fR.
3925 .Sp
3926 The optional second word limits the specification to
3927 ordinary structs (\fBord:\fR) or generic structs (\fBgen:\fR).
3928 Generic structs are a bit complicated to explain.
3929 For \*(C+, these are non-explicit specializations of template classes,
3930 or non-template classes within the above.
3931 Other programming languages have generics,
3932 but \fB\-femit\-struct\-debug\-detailed\fR does not yet implement them.
3933 .Sp
3934 The third word specifies the source files for those
3935 structs for which the compiler will emit debug information.
3936 The values \fBnone\fR and \fBany\fR have the normal meaning.
3937 The value \fBbase\fR means that
3938 the base of name of the file in which the type declaration appears
3939 must match the base of the name of the main compilation file.
3940 In practice, this means that
3941 types declared in \fIfoo.c\fR and \fIfoo.h\fR will have debug information,
3942 but types declared in other header will not.
3943 The value \fBsys\fR means those types satisfying \fBbase\fR
3944 or declared in system or compiler headers.
3945 .Sp
3946 You may need to experiment to determine the best settings for your application.
3947 .Sp
3948 The default is \fB\-femit\-struct\-debug\-detailed=all\fR.
3949 .Sp
3950 This option works only with \s-1DWARF\s0 2.
3951 .IP "\fB\-fno\-merge\-debug\-strings\fR" 4
3952 .IX Item "-fno-merge-debug-strings"
3953 Direct the linker to not merge together strings in the debugging
3954 information which are identical in different object files.  Merging is
3955 not supported by all assemblers or linkers.  Merging decreases the size
3956 of the debug information in the output file at the cost of increasing
3957 link processing time.  Merging is enabled by default.
3958 .IP "\fB\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR" 4
3959 .IX Item "-fdebug-prefix-map=old=new"
3960 When compiling files in directory \fI\fIold\fI\fR, record debugging
3961 information describing them as in \fI\fInew\fI\fR instead.
3962 .IP "\fB\-fno\-dwarf2\-cfi\-asm\fR" 4
3963 .IX Item "-fno-dwarf2-cfi-asm"
3964 Emit \s-1DWARF\s0 2 unwind info as compiler generated \f(CW\*(C`.eh_frame\*(C'\fR section
3965 instead of using \s-1GAS\s0 \f(CW\*(C`.cfi_*\*(C'\fR directives.
3966 .IP "\fB\-p\fR" 4
3967 .IX Item "-p"
3968 Generate extra code to write profile information suitable for the
3969 analysis program \fBprof\fR.  You must use this option when compiling
3970 the source files you want data about, and you must also use it when
3971 linking.
3972 .IP "\fB\-pg\fR" 4
3973 .IX Item "-pg"
3974 Generate extra code to write profile information suitable for the
3975 analysis program \fBgprof\fR.  You must use this option when compiling
3976 the source files you want data about, and you must also use it when
3977 linking.
3978 .IP "\fB\-Q\fR" 4
3979 .IX Item "-Q"
3980 Makes the compiler print out each function name as it is compiled, and
3981 print some statistics about each pass when it finishes.
3982 .IP "\fB\-ftime\-report\fR" 4
3983 .IX Item "-ftime-report"
3984 Makes the compiler print some statistics about the time consumed by each
3985 pass when it finishes.
3986 .IP "\fB\-fmem\-report\fR" 4
3987 .IX Item "-fmem-report"
3988 Makes the compiler print some statistics about permanent memory
3989 allocation when it finishes.
3990 .IP "\fB\-fpre\-ipa\-mem\-report\fR" 4
3991 .IX Item "-fpre-ipa-mem-report"
3992 .PD 0
3993 .IP "\fB\-fpost\-ipa\-mem\-report\fR" 4
3994 .IX Item "-fpost-ipa-mem-report"
3995 .PD
3996 Makes the compiler print some statistics about permanent memory
3997 allocation before or after interprocedural optimization.
3998 .IP "\fB\-fprofile\-arcs\fR" 4
3999 .IX Item "-fprofile-arcs"
4000 Add code so that program flow \fIarcs\fR are instrumented.  During
4001 execution the program records how many times each branch and call is
4002 executed and how many times it is taken or returns.  When the compiled
4003 program exits it saves this data to a file called
4004 \&\fI\fIauxname\fI.gcda\fR for each source file.  The data may be used for
4005 profile-directed optimizations (\fB\-fbranch\-probabilities\fR), or for
4006 test coverage analysis (\fB\-ftest\-coverage\fR).  Each object file's
4007 \&\fIauxname\fR is generated from the name of the output file, if
4008 explicitly specified and it is not the final executable, otherwise it is
4009 the basename of the source file.  In both cases any suffix is removed
4010 (e.g. \fIfoo.gcda\fR for input file \fIdir/foo.c\fR, or
4011 \&\fIdir/foo.gcda\fR for output file specified as \fB\-o dir/foo.o\fR).
4012 .IP "\fB\-\-coverage\fR" 4
4013 .IX Item "--coverage"
4014 This option is used to compile and link code instrumented for coverage
4015 analysis.  The option is a synonym for \fB\-fprofile\-arcs\fR
4016 \&\fB\-ftest\-coverage\fR (when compiling) and \fB\-lgcov\fR (when
4017 linking).  See the documentation for those options for more details.
4018 .RS 4
4019 .IP "\(bu" 4
4020 Compile the source files with \fB\-fprofile\-arcs\fR plus optimization
4021 and code generation options.  For test coverage analysis, use the
4022 additional \fB\-ftest\-coverage\fR option.  You do not need to profile
4023 every source file in a program.
4024 .IP "\(bu" 4
4025 Link your object files with \fB\-lgcov\fR or \fB\-fprofile\-arcs\fR
4026 (the latter implies the former).
4027 .IP "\(bu" 4
4028 Run the program on a representative workload to generate the arc profile
4029 information.  This may be repeated any number of times.  You can run
4030 concurrent instances of your program, and provided that the file system
4031 supports locking, the data files will be correctly updated.  Also
4032 \&\f(CW\*(C`fork\*(C'\fR calls are detected and correctly handled (double counting
4033 will not happen).
4034 .IP "\(bu" 4
4035 For profile-directed optimizations, compile the source files again with
4036 the same optimization and code generation options plus
4037 \&\fB\-fbranch\-probabilities\fR.
4038 .IP "\(bu" 4
4039 For test coverage analysis, use \fBgcov\fR to produce human readable
4040 information from the \fI.gcno\fR and \fI.gcda\fR files.  Refer to the
4041 \&\fBgcov\fR documentation for further information.
4042 .RE
4043 .RS 4
4044 .Sp
4045 With \fB\-fprofile\-arcs\fR, for each function of your program \s-1GCC\s0
4046 creates a program flow graph, then finds a spanning tree for the graph.
4047 Only arcs that are not on the spanning tree have to be instrumented: the
4048 compiler adds code to count the number of times that these arcs are
4049 executed.  When an arc is the only exit or only entrance to a block, the
4050 instrumentation code can be added to the block; otherwise, a new basic
4051 block must be created to hold the instrumentation code.
4052 .RE
4053 .IP "\fB\-ftest\-coverage\fR" 4
4054 .IX Item "-ftest-coverage"
4055 Produce a notes file that the \fBgcov\fR code-coverage utility can use to
4056 show program coverage.  Each source file's note file is called
4057 \&\fI\fIauxname\fI.gcno\fR.  Refer to the \fB\-fprofile\-arcs\fR option
4058 above for a description of \fIauxname\fR and instructions on how to
4059 generate test coverage data.  Coverage data will match the source files
4060 more closely, if you do not optimize.
4061 .IP "\fB\-fdbg\-cnt\-list\fR" 4
4062 .IX Item "-fdbg-cnt-list"
4063 Print the name and the counter upperbound for all debug counters.
4064 .IP "\fB\-fdbg\-cnt=\fR\fIcounter-value-list\fR" 4
4065 .IX Item "-fdbg-cnt=counter-value-list"
4066 Set the internal debug counter upperbound. \fIcounter-value-list\fR 
4067 is a comma-separated list of \fIname\fR:\fIvalue\fR pairs
4068 which sets the upperbound of each debug counter \fIname\fR to \fIvalue\fR.
4069 All debug counters have the initial upperbound of \fI\s-1UINT_MAX\s0\fR,
4070 thus \fIdbg_cnt()\fR returns true always unless the upperbound is set by this option.
4071 e.g. With \-fdbg\-cnt=dce:10,tail_call:0
4072 dbg_cnt(dce) will return true only for first 10 invocations
4073 and dbg_cnt(tail_call) will return false always.
4074 .IP "\fB\-d\fR\fIletters\fR" 4
4075 .IX Item "-dletters"
4076 .PD 0
4077 .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR" 4
4078 .IX Item "-fdump-rtl-pass"
4079 .PD
4080 Says to make debugging dumps during compilation at times specified by
4081 \&\fIletters\fR.    This is used for debugging the RTL-based passes of the
4082 compiler.  The file names for most of the dumps are made by appending a
4083 pass number and a word to the \fIdumpname\fR.  \fIdumpname\fR is generated
4084 from the name of the output file, if explicitly specified and it is not
4085 an executable, otherwise it is the basename of the source file. These
4086 switches may have different effects when \fB\-E\fR is used for
4087 preprocessing.
4088 .Sp
4089 Debug dumps can be enabled with a \fB\-fdump\-rtl\fR switch or some
4090 \&\fB\-d\fR option \fIletters\fR.  Here are the possible
4091 letters for use in \fIpass\fR and \fIletters\fR, and their meanings:
4092 .RS 4
4093 .IP "\fB\-fdump\-rtl\-alignments\fR" 4
4094 .IX Item "-fdump-rtl-alignments"
4095 Dump after branch alignments have been computed.
4096 .IP "\fB\-fdump\-rtl\-asmcons\fR" 4
4097 .IX Item "-fdump-rtl-asmcons"
4098 Dump after fixing rtl statements that have unsatisfied in/out constraints.
4099 .IP "\fB\-fdump\-rtl\-auto_inc_dec\fR" 4
4100 .IX Item "-fdump-rtl-auto_inc_dec"
4101 Dump after auto-inc-dec discovery.  This pass is only run on
4102 architectures that have auto inc or auto dec instructions.
4103 .IP "\fB\-fdump\-rtl\-barriers\fR" 4
4104 .IX Item "-fdump-rtl-barriers"
4105 Dump after cleaning up the barrier instructions.
4106 .IP "\fB\-fdump\-rtl\-bbpart\fR" 4
4107 .IX Item "-fdump-rtl-bbpart"
4108 Dump after partitioning hot and cold basic blocks.
4109 .IP "\fB\-fdump\-rtl\-bbro\fR" 4
4110 .IX Item "-fdump-rtl-bbro"
4111 Dump after block reordering.
4112 .IP "\fB\-fdump\-rtl\-btl1\fR" 4
4113 .IX Item "-fdump-rtl-btl1"
4114 .PD 0
4115 .IP "\fB\-fdump\-rtl\-btl2\fR" 4
4116 .IX Item "-fdump-rtl-btl2"
4117 .PD
4118 \&\fB\-fdump\-rtl\-btl1\fR and \fB\-fdump\-rtl\-btl2\fR enable dumping
4119 after the two branch
4120 target load optimization passes.
4121 .IP "\fB\-fdump\-rtl\-bypass\fR" 4
4122 .IX Item "-fdump-rtl-bypass"
4123 Dump after jump bypassing and control flow optimizations.
4124 .IP "\fB\-fdump\-rtl\-combine\fR" 4
4125 .IX Item "-fdump-rtl-combine"
4126 Dump after the \s-1RTL\s0 instruction combination pass.
4127 .IP "\fB\-fdump\-rtl\-compgotos\fR" 4
4128 .IX Item "-fdump-rtl-compgotos"
4129 Dump after duplicating the computed gotos.
4130 .IP "\fB\-fdump\-rtl\-ce1\fR" 4
4131 .IX Item "-fdump-rtl-ce1"
4132 .PD 0
4133 .IP "\fB\-fdump\-rtl\-ce2\fR" 4
4134 .IX Item "-fdump-rtl-ce2"
4135 .IP "\fB\-fdump\-rtl\-ce3\fR" 4
4136 .IX Item "-fdump-rtl-ce3"
4137 .PD
4138 \&\fB\-fdump\-rtl\-ce1\fR, \fB\-fdump\-rtl\-ce2\fR, and
4139 \&\fB\-fdump\-rtl\-ce3\fR enable dumping after the three
4140 if conversion passes.
4141 .IP "\fB\-fdump\-rtl\-cprop_hardreg\fR" 4
4142 .IX Item "-fdump-rtl-cprop_hardreg"
4143 Dump after hard register copy propagation.
4144 .IP "\fB\-fdump\-rtl\-csa\fR" 4
4145 .IX Item "-fdump-rtl-csa"
4146 Dump after combining stack adjustments.
4147 .IP "\fB\-fdump\-rtl\-cse1\fR" 4
4148 .IX Item "-fdump-rtl-cse1"
4149 .PD 0
4150 .IP "\fB\-fdump\-rtl\-cse2\fR" 4
4151 .IX Item "-fdump-rtl-cse2"
4152 .PD
4153 \&\fB\-fdump\-rtl\-cse1\fR and \fB\-fdump\-rtl\-cse2\fR enable dumping after
4154 the two common sub-expression elimination passes.
4155 .IP "\fB\-fdump\-rtl\-dce\fR" 4
4156 .IX Item "-fdump-rtl-dce"
4157 Dump after the standalone dead code elimination passes.
4158 .IP "\fB\-fdump\-rtl\-dbr\fR" 4
4159 .IX Item "-fdump-rtl-dbr"
4160 Dump after delayed branch scheduling.
4161 .IP "\fB\-fdump\-rtl\-dce1\fR" 4
4162 .IX Item "-fdump-rtl-dce1"
4163 .PD 0
4164 .IP "\fB\-fdump\-rtl\-dce2\fR" 4
4165 .IX Item "-fdump-rtl-dce2"
4166 .PD
4167 \&\fB\-fdump\-rtl\-dce1\fR and \fB\-fdump\-rtl\-dce2\fR enable dumping after
4168 the two dead store elimination passes.
4169 .IP "\fB\-fdump\-rtl\-eh\fR" 4
4170 .IX Item "-fdump-rtl-eh"
4171 Dump after finalization of \s-1EH\s0 handling code.
4172 .IP "\fB\-fdump\-rtl\-eh_ranges\fR" 4
4173 .IX Item "-fdump-rtl-eh_ranges"
4174 Dump after conversion of \s-1EH\s0 handling range regions.
4175 .IP "\fB\-fdump\-rtl\-expand\fR" 4
4176 .IX Item "-fdump-rtl-expand"
4177 Dump after \s-1RTL\s0 generation.
4178 .IP "\fB\-fdump\-rtl\-fwprop1\fR" 4
4179 .IX Item "-fdump-rtl-fwprop1"
4180 .PD 0
4181 .IP "\fB\-fdump\-rtl\-fwprop2\fR" 4
4182 .IX Item "-fdump-rtl-fwprop2"
4183 .PD
4184 \&\fB\-fdump\-rtl\-fwprop1\fR and \fB\-fdump\-rtl\-fwprop2\fR enable
4185 dumping after the two forward propagation passes.
4186 .IP "\fB\-fdump\-rtl\-gcse1\fR" 4
4187 .IX Item "-fdump-rtl-gcse1"
4188 .PD 0
4189 .IP "\fB\-fdump\-rtl\-gcse2\fR" 4
4190 .IX Item "-fdump-rtl-gcse2"
4191 .PD
4192 \&\fB\-fdump\-rtl\-gcse1\fR and \fB\-fdump\-rtl\-gcse2\fR enable dumping
4193 after global common subexpression elimination.
4194 .IP "\fB\-fdump\-rtl\-init\-regs\fR" 4
4195 .IX Item "-fdump-rtl-init-regs"
4196 Dump after the initialization of the registers.
4197 .IP "\fB\-fdump\-rtl\-initvals\fR" 4
4198 .IX Item "-fdump-rtl-initvals"
4199 Dump after the computation of the initial value sets.
4200 .IP "\fB\-fdump\-rtl\-into_cfglayout\fR" 4
4201 .IX Item "-fdump-rtl-into_cfglayout"
4202 Dump after converting to cfglayout mode.
4203 .IP "\fB\-fdump\-rtl\-ira\fR" 4
4204 .IX Item "-fdump-rtl-ira"
4205 Dump after iterated register allocation.
4206 .IP "\fB\-fdump\-rtl\-jump\fR" 4
4207 .IX Item "-fdump-rtl-jump"
4208 Dump after the second jump optimization.
4209 .IP "\fB\-fdump\-rtl\-loop2\fR" 4
4210 .IX Item "-fdump-rtl-loop2"
4211 \&\fB\-fdump\-rtl\-loop2\fR enables dumping after the rtl
4212 loop optimization passes.
4213 .IP "\fB\-fdump\-rtl\-mach\fR" 4
4214 .IX Item "-fdump-rtl-mach"
4215 Dump after performing the machine dependent reorganization pass, if that
4216 pass exists.
4217 .IP "\fB\-fdump\-rtl\-mode_sw\fR" 4
4218 .IX Item "-fdump-rtl-mode_sw"
4219 Dump after removing redundant mode switches.
4220 .IP "\fB\-fdump\-rtl\-rnreg\fR" 4
4221 .IX Item "-fdump-rtl-rnreg"
4222 Dump after register renumbering.
4223 .IP "\fB\-fdump\-rtl\-outof_cfglayout\fR" 4
4224 .IX Item "-fdump-rtl-outof_cfglayout"
4225 Dump after converting from cfglayout mode.
4226 .IP "\fB\-fdump\-rtl\-peephole2\fR" 4
4227 .IX Item "-fdump-rtl-peephole2"
4228 Dump after the peephole pass.
4229 .IP "\fB\-fdump\-rtl\-postreload\fR" 4
4230 .IX Item "-fdump-rtl-postreload"
4231 Dump after post-reload optimizations.
4232 .IP "\fB\-fdump\-rtl\-pro_and_epilogue\fR" 4
4233 .IX Item "-fdump-rtl-pro_and_epilogue"
4234 Dump after generating the function pro and epilogues.
4235 .IP "\fB\-fdump\-rtl\-regmove\fR" 4
4236 .IX Item "-fdump-rtl-regmove"
4237 Dump after the register move pass.
4238 .IP "\fB\-fdump\-rtl\-sched1\fR" 4
4239 .IX Item "-fdump-rtl-sched1"
4240 .PD 0
4241 .IP "\fB\-fdump\-rtl\-sched2\fR" 4
4242 .IX Item "-fdump-rtl-sched2"
4243 .PD
4244 \&\fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR enable dumping
4245 after the basic block scheduling passes.
4246 .IP "\fB\-fdump\-rtl\-see\fR" 4
4247 .IX Item "-fdump-rtl-see"
4248 Dump after sign extension elimination.
4249 .IP "\fB\-fdump\-rtl\-seqabstr\fR" 4
4250 .IX Item "-fdump-rtl-seqabstr"
4251 Dump after common sequence discovery.
4252 .IP "\fB\-fdump\-rtl\-shorten\fR" 4
4253 .IX Item "-fdump-rtl-shorten"
4254 Dump after shortening branches.
4255 .IP "\fB\-fdump\-rtl\-sibling\fR" 4
4256 .IX Item "-fdump-rtl-sibling"
4257 Dump after sibling call optimizations.
4258 .IP "\fB\-fdump\-rtl\-split1\fR" 4
4259 .IX Item "-fdump-rtl-split1"
4260 .PD 0
4261 .IP "\fB\-fdump\-rtl\-split2\fR" 4
4262 .IX Item "-fdump-rtl-split2"
4263 .IP "\fB\-fdump\-rtl\-split3\fR" 4
4264 .IX Item "-fdump-rtl-split3"
4265 .IP "\fB\-fdump\-rtl\-split4\fR" 4
4266 .IX Item "-fdump-rtl-split4"
4267 .IP "\fB\-fdump\-rtl\-split5\fR" 4
4268 .IX Item "-fdump-rtl-split5"
4269 .PD
4270 \&\fB\-fdump\-rtl\-split1\fR, \fB\-fdump\-rtl\-split2\fR,
4271 \&\fB\-fdump\-rtl\-split3\fR, \fB\-fdump\-rtl\-split4\fR and
4272 \&\fB\-fdump\-rtl\-split5\fR enable dumping after five rounds of
4273 instruction splitting.
4274 .IP "\fB\-fdump\-rtl\-sms\fR" 4
4275 .IX Item "-fdump-rtl-sms"
4276 Dump after modulo scheduling.  This pass is only run on some
4277 architectures.
4278 .IP "\fB\-fdump\-rtl\-stack\fR" 4
4279 .IX Item "-fdump-rtl-stack"
4280 Dump after conversion from \s-1GCC\s0's \*(L"flat register file\*(R" registers to the
4281 x87's stack-like registers.  This pass is only run on x86 variants.
4282 .IP "\fB\-fdump\-rtl\-subreg1\fR" 4
4283 .IX Item "-fdump-rtl-subreg1"
4284 .PD 0
4285 .IP "\fB\-fdump\-rtl\-subreg2\fR" 4
4286 .IX Item "-fdump-rtl-subreg2"
4287 .PD
4288 \&\fB\-fdump\-rtl\-subreg1\fR and \fB\-fdump\-rtl\-subreg2\fR enable dumping after
4289 the two subreg expansion passes.
4290 .IP "\fB\-fdump\-rtl\-unshare\fR" 4
4291 .IX Item "-fdump-rtl-unshare"
4292 Dump after all rtl has been unshared.
4293 .IP "\fB\-fdump\-rtl\-vartrack\fR" 4
4294 .IX Item "-fdump-rtl-vartrack"
4295 Dump after variable tracking.
4296 .IP "\fB\-fdump\-rtl\-vregs\fR" 4
4297 .IX Item "-fdump-rtl-vregs"
4298 Dump after converting virtual registers to hard registers.
4299 .IP "\fB\-fdump\-rtl\-web\fR" 4
4300 .IX Item "-fdump-rtl-web"
4301 Dump after live range splitting.
4302 .IP "\fB\-fdump\-rtl\-regclass\fR" 4
4303 .IX Item "-fdump-rtl-regclass"
4304 .PD 0
4305 .IP "\fB\-fdump\-rtl\-subregs_of_mode_init\fR" 4
4306 .IX Item "-fdump-rtl-subregs_of_mode_init"
4307 .IP "\fB\-fdump\-rtl\-subregs_of_mode_finish\fR" 4
4308 .IX Item "-fdump-rtl-subregs_of_mode_finish"
4309 .IP "\fB\-fdump\-rtl\-dfinit\fR" 4
4310 .IX Item "-fdump-rtl-dfinit"
4311 .IP "\fB\-fdump\-rtl\-dfinish\fR" 4
4312 .IX Item "-fdump-rtl-dfinish"
4313 .PD
4314 These dumps are defined but always produce empty files.
4315 .IP "\fB\-fdump\-rtl\-all\fR" 4
4316 .IX Item "-fdump-rtl-all"
4317 Produce all the dumps listed above.
4318 .IP "\fB\-dA\fR" 4
4319 .IX Item "-dA"
4320 Annotate the assembler output with miscellaneous debugging information.
4321 .IP "\fB\-dD\fR" 4
4322 .IX Item "-dD"
4323 Dump all macro definitions, at the end of preprocessing, in addition to
4324 normal output.
4325 .IP "\fB\-dH\fR" 4
4326 .IX Item "-dH"
4327 Produce a core dump whenever an error occurs.
4328 .IP "\fB\-dm\fR" 4
4329 .IX Item "-dm"
4330 Print statistics on memory usage, at the end of the run, to
4331 standard error.
4332 .IP "\fB\-dp\fR" 4
4333 .IX Item "-dp"
4334 Annotate the assembler output with a comment indicating which
4335 pattern and alternative was used.  The length of each instruction is
4336 also printed.
4337 .IP "\fB\-dP\fR" 4
4338 .IX Item "-dP"
4339 Dump the \s-1RTL\s0 in the assembler output as a comment before each instruction.
4340 Also turns on \fB\-dp\fR annotation.
4341 .IP "\fB\-dv\fR" 4
4342 .IX Item "-dv"
4343 For each of the other indicated dump files (\fB\-fdump\-rtl\-\fR\fIpass\fR),
4344 dump a representation of the control flow graph suitable for viewing with \s-1VCG\s0
4345 to \fI\fIfile\fI.\fIpass\fI.vcg\fR.
4346 .IP "\fB\-dx\fR" 4
4347 .IX Item "-dx"
4348 Just generate \s-1RTL\s0 for a function instead of compiling it.  Usually used
4349 with \fB\-fdump\-rtl\-expand\fR.
4350 .IP "\fB\-dy\fR" 4
4351 .IX Item "-dy"
4352 Dump debugging information during parsing, to standard error.
4353 .RE
4354 .RS 4
4355 .RE
4356 .IP "\fB\-fdump\-noaddr\fR" 4
4357 .IX Item "-fdump-noaddr"
4358 When doing debugging dumps, suppress address output.  This makes it more
4359 feasible to use diff on debugging dumps for compiler invocations with
4360 different compiler binaries and/or different
4361 text / bss / data / heap / stack / dso start locations.
4362 .IP "\fB\-fdump\-unnumbered\fR" 4
4363 .IX Item "-fdump-unnumbered"
4364 When doing debugging dumps, suppress instruction numbers and address output.
4365 This makes it more feasible to use diff on debugging dumps for compiler
4366 invocations with different options, in particular with and without
4367 \&\fB\-g\fR.
4368 .IP "\fB\-fdump\-translation\-unit\fR (\*(C+ only)" 4
4369 .IX Item "-fdump-translation-unit ( only)"
4370 .PD 0
4371 .IP "\fB\-fdump\-translation\-unit\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
4372 .IX Item "-fdump-translation-unit-options ( only)"
4373 .PD
4374 Dump a representation of the tree structure for the entire translation
4375 unit to a file.  The file name is made by appending \fI.tu\fR to the
4376 source file name.  If the \fB\-\fR\fIoptions\fR form is used, \fIoptions\fR
4377 controls the details of the dump as described for the
4378 \&\fB\-fdump\-tree\fR options.
4379 .IP "\fB\-fdump\-class\-hierarchy\fR (\*(C+ only)" 4
4380 .IX Item "-fdump-class-hierarchy ( only)"
4381 .PD 0
4382 .IP "\fB\-fdump\-class\-hierarchy\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
4383 .IX Item "-fdump-class-hierarchy-options ( only)"
4384 .PD
4385 Dump a representation of each class's hierarchy and virtual function
4386 table layout to a file.  The file name is made by appending \fI.class\fR
4387 to the source file name.  If the \fB\-\fR\fIoptions\fR form is used,
4388 \&\fIoptions\fR controls the details of the dump as described for the
4389 \&\fB\-fdump\-tree\fR options.
4390 .IP "\fB\-fdump\-ipa\-\fR\fIswitch\fR" 4
4391 .IX Item "-fdump-ipa-switch"
4392 Control the dumping at various stages of inter-procedural analysis
4393 language tree to a file.  The file name is generated by appending a switch
4394 specific suffix to the source file name.  The following dumps are possible:
4395 .RS 4
4396 .IP "\fBall\fR" 4
4397 .IX Item "all"
4398 Enables all inter-procedural analysis dumps.
4399 .IP "\fBcgraph\fR" 4
4400 .IX Item "cgraph"
4401 Dumps information about call-graph optimization, unused function removal,
4402 and inlining decisions.
4403 .IP "\fBinline\fR" 4
4404 .IX Item "inline"
4405 Dump after function inlining.
4406 .RE
4407 .RS 4
4408 .RE
4409 .IP "\fB\-fdump\-statistics\-\fR\fIoption\fR" 4
4410 .IX Item "-fdump-statistics-option"
4411 Enable and control dumping of pass statistics in a separate file.  The
4412 file name is generated by appending a suffix ending in \fB.statistics\fR
4413 to the source file name.  If the \fB\-\fR\fIoption\fR form is used,
4414 \&\fB\-stats\fR will cause counters to be summed over the whole compilation unit
4415 while \fB\-details\fR will dump every event as the passes generate them.
4416 The default with no option is to sum counters for each function compiled.
4417 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR" 4
4418 .IX Item "-fdump-tree-switch"
4419 .PD 0
4420 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR" 4
4421 .IX Item "-fdump-tree-switch-options"
4422 .PD
4423 Control the dumping at various stages of processing the intermediate
4424 language tree to a file.  The file name is generated by appending a switch
4425 specific suffix to the source file name.  If the \fB\-\fR\fIoptions\fR
4426 form is used, \fIoptions\fR is a list of \fB\-\fR separated options that
4427 control the details of the dump.  Not all options are applicable to all
4428 dumps, those which are not meaningful will be ignored.  The following
4429 options are available
4430 .RS 4
4431 .IP "\fBaddress\fR" 4
4432 .IX Item "address"
4433 Print the address of each node.  Usually this is not meaningful as it
4434 changes according to the environment and source file.  Its primary use
4435 is for tying up a dump file with a debug environment.
4436 .IP "\fBslim\fR" 4
4437 .IX Item "slim"
4438 Inhibit dumping of members of a scope or body of a function merely
4439 because that scope has been reached.  Only dump such items when they
4440 are directly reachable by some other path.  When dumping pretty-printed
4441 trees, this option inhibits dumping the bodies of control structures.
4442 .IP "\fBraw\fR" 4
4443 .IX Item "raw"
4444 Print a raw representation of the tree.  By default, trees are
4445 pretty-printed into a C\-like representation.
4446 .IP "\fBdetails\fR" 4
4447 .IX Item "details"
4448 Enable more detailed dumps (not honored by every dump option).
4449 .IP "\fBstats\fR" 4
4450 .IX Item "stats"
4451 Enable dumping various statistics about the pass (not honored by every dump
4452 option).
4453 .IP "\fBblocks\fR" 4
4454 .IX Item "blocks"
4455 Enable showing basic block boundaries (disabled in raw dumps).
4456 .IP "\fBvops\fR" 4
4457 .IX Item "vops"
4458 Enable showing virtual operands for every statement.
4459 .IP "\fBlineno\fR" 4
4460 .IX Item "lineno"
4461 Enable showing line numbers for statements.
4462 .IP "\fBuid\fR" 4
4463 .IX Item "uid"
4464 Enable showing the unique \s-1ID\s0 (\f(CW\*(C`DECL_UID\*(C'\fR) for each variable.
4465 .IP "\fBverbose\fR" 4
4466 .IX Item "verbose"
4467 Enable showing the tree dump for each statement.
4468 .IP "\fBall\fR" 4
4469 .IX Item "all"
4470 Turn on all options, except \fBraw\fR, \fBslim\fR, \fBverbose\fR
4471 and \fBlineno\fR.
4472 .RE
4473 .RS 4
4474 .Sp
4475 The following tree dumps are possible:
4476 .IP "\fBoriginal\fR" 4
4477 .IX Item "original"
4478 Dump before any tree based optimization, to \fI\fIfile\fI.original\fR.
4479 .IP "\fBoptimized\fR" 4
4480 .IX Item "optimized"
4481 Dump after all tree based optimization, to \fI\fIfile\fI.optimized\fR.
4482 .IP "\fBgimple\fR" 4
4483 .IX Item "gimple"
4484 Dump each function before and after the gimplification pass to a file.  The
4485 file name is made by appending \fI.gimple\fR to the source file name.
4486 .IP "\fBcfg\fR" 4
4487 .IX Item "cfg"
4488 Dump the control flow graph of each function to a file.  The file name is
4489 made by appending \fI.cfg\fR to the source file name.
4490 .IP "\fBvcg\fR" 4
4491 .IX Item "vcg"
4492 Dump the control flow graph of each function to a file in \s-1VCG\s0 format.  The
4493 file name is made by appending \fI.vcg\fR to the source file name.  Note
4494 that if the file contains more than one function, the generated file cannot
4495 be used directly by \s-1VCG\s0.  You will need to cut and paste each function's
4496 graph into its own separate file first.
4497 .IP "\fBch\fR" 4
4498 .IX Item "ch"
4499 Dump each function after copying loop headers.  The file name is made by
4500 appending \fI.ch\fR to the source file name.
4501 .IP "\fBssa\fR" 4
4502 .IX Item "ssa"
4503 Dump \s-1SSA\s0 related information to a file.  The file name is made by appending
4504 \&\fI.ssa\fR to the source file name.
4505 .IP "\fBalias\fR" 4
4506 .IX Item "alias"
4507 Dump aliasing information for each function.  The file name is made by
4508 appending \fI.alias\fR to the source file name.
4509 .IP "\fBccp\fR" 4
4510 .IX Item "ccp"
4511 Dump each function after \s-1CCP\s0.  The file name is made by appending
4512 \&\fI.ccp\fR to the source file name.
4513 .IP "\fBstoreccp\fR" 4
4514 .IX Item "storeccp"
4515 Dump each function after STORE-CCP.  The file name is made by appending
4516 \&\fI.storeccp\fR to the source file name.
4517 .IP "\fBpre\fR" 4
4518 .IX Item "pre"
4519 Dump trees after partial redundancy elimination.  The file name is made
4520 by appending \fI.pre\fR to the source file name.
4521 .IP "\fBfre\fR" 4
4522 .IX Item "fre"
4523 Dump trees after full redundancy elimination.  The file name is made
4524 by appending \fI.fre\fR to the source file name.
4525 .IP "\fBcopyprop\fR" 4
4526 .IX Item "copyprop"
4527 Dump trees after copy propagation.  The file name is made
4528 by appending \fI.copyprop\fR to the source file name.
4529 .IP "\fBstore_copyprop\fR" 4
4530 .IX Item "store_copyprop"
4531 Dump trees after store copy-propagation.  The file name is made
4532 by appending \fI.store_copyprop\fR to the source file name.
4533 .IP "\fBdce\fR" 4
4534 .IX Item "dce"
4535 Dump each function after dead code elimination.  The file name is made by
4536 appending \fI.dce\fR to the source file name.
4537 .IP "\fBmudflap\fR" 4
4538 .IX Item "mudflap"
4539 Dump each function after adding mudflap instrumentation.  The file name is
4540 made by appending \fI.mudflap\fR to the source file name.
4541 .IP "\fBsra\fR" 4
4542 .IX Item "sra"
4543 Dump each function after performing scalar replacement of aggregates.  The
4544 file name is made by appending \fI.sra\fR to the source file name.
4545 .IP "\fBsink\fR" 4
4546 .IX Item "sink"
4547 Dump each function after performing code sinking.  The file name is made
4548 by appending \fI.sink\fR to the source file name.
4549 .IP "\fBdom\fR" 4
4550 .IX Item "dom"
4551 Dump each function after applying dominator tree optimizations.  The file
4552 name is made by appending \fI.dom\fR to the source file name.
4553 .IP "\fBdse\fR" 4
4554 .IX Item "dse"
4555 Dump each function after applying dead store elimination.  The file
4556 name is made by appending \fI.dse\fR to the source file name.
4557 .IP "\fBphiopt\fR" 4
4558 .IX Item "phiopt"
4559 Dump each function after optimizing \s-1PHI\s0 nodes into straightline code.  The file
4560 name is made by appending \fI.phiopt\fR to the source file name.
4561 .IP "\fBforwprop\fR" 4
4562 .IX Item "forwprop"
4563 Dump each function after forward propagating single use variables.  The file
4564 name is made by appending \fI.forwprop\fR to the source file name.
4565 .IP "\fBcopyrename\fR" 4
4566 .IX Item "copyrename"
4567 Dump each function after applying the copy rename optimization.  The file
4568 name is made by appending \fI.copyrename\fR to the source file name.
4569 .IP "\fBnrv\fR" 4
4570 .IX Item "nrv"
4571 Dump each function after applying the named return value optimization on
4572 generic trees.  The file name is made by appending \fI.nrv\fR to the source
4573 file name.
4574 .IP "\fBvect\fR" 4
4575 .IX Item "vect"
4576 Dump each function after applying vectorization of loops.  The file name is
4577 made by appending \fI.vect\fR to the source file name.
4578 .IP "\fBvrp\fR" 4
4579 .IX Item "vrp"
4580 Dump each function after Value Range Propagation (\s-1VRP\s0).  The file name
4581 is made by appending \fI.vrp\fR to the source file name.
4582 .IP "\fBall\fR" 4
4583 .IX Item "all"
4584 Enable all the available tree dumps with the flags provided in this option.
4585 .RE
4586 .RS 4
4587 .RE
4588 .IP "\fB\-ftree\-vectorizer\-verbose=\fR\fIn\fR" 4
4589 .IX Item "-ftree-vectorizer-verbose=n"
4590 This option controls the amount of debugging output the vectorizer prints.
4591 This information is written to standard error, unless
4592 \&\fB\-fdump\-tree\-all\fR or \fB\-fdump\-tree\-vect\fR is specified,
4593 in which case it is output to the usual dump listing file, \fI.vect\fR.
4594 For \fIn\fR=0 no diagnostic information is reported.
4595 If \fIn\fR=1 the vectorizer reports each loop that got vectorized,
4596 and the total number of loops that got vectorized.
4597 If \fIn\fR=2 the vectorizer also reports non-vectorized loops that passed
4598 the first analysis phase (vect_analyze_loop_form) \- i.e. countable,
4599 inner-most, single-bb, single\-entry/exit loops.  This is the same verbosity
4600 level that \fB\-fdump\-tree\-vect\-stats\fR uses.
4601 Higher verbosity levels mean either more information dumped for each
4602 reported loop, or same amount of information reported for more loops:
4603 If \fIn\fR=3, alignment related information is added to the reports.
4604 If \fIn\fR=4, data-references related information (e.g. memory dependences,
4605 memory access-patterns) is added to the reports.
4606 If \fIn\fR=5, the vectorizer reports also non-vectorized inner-most loops
4607 that did not pass the first analysis phase (i.e., may not be countable, or
4608 may have complicated control-flow).
4609 If \fIn\fR=6, the vectorizer reports also non-vectorized nested loops.
4610 For \fIn\fR=7, all the information the vectorizer generates during its
4611 analysis and transformation is reported.  This is the same verbosity level
4612 that \fB\-fdump\-tree\-vect\-details\fR uses.
4613 .IP "\fB\-frandom\-seed=\fR\fIstring\fR" 4
4614 .IX Item "-frandom-seed=string"
4615 This option provides a seed that \s-1GCC\s0 uses when it would otherwise use
4616 random numbers.  It is used to generate certain symbol names
4617 that have to be different in every compiled file.  It is also used to
4618 place unique stamps in coverage data files and the object files that
4619 produce them.  You can use the \fB\-frandom\-seed\fR option to produce
4620 reproducibly identical object files.
4621 .Sp
4622 The \fIstring\fR should be different for every file you compile.
4623 .IP "\fB\-fsched\-verbose=\fR\fIn\fR" 4
4624 .IX Item "-fsched-verbose=n"
4625 On targets that use instruction scheduling, this option controls the
4626 amount of debugging output the scheduler prints.  This information is
4627 written to standard error, unless \fB\-fdump\-rtl\-sched1\fR or
4628 \&\fB\-fdump\-rtl\-sched2\fR is specified, in which case it is output
4629 to the usual dump listing file, \fI.sched\fR or \fI.sched2\fR
4630 respectively.  However for \fIn\fR greater than nine, the output is
4631 always printed to standard error.
4632 .Sp
4633 For \fIn\fR greater than zero, \fB\-fsched\-verbose\fR outputs the
4634 same information as \fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR.
4635 For \fIn\fR greater than one, it also output basic block probabilities,
4636 detailed ready list information and unit/insn info.  For \fIn\fR greater
4637 than two, it includes \s-1RTL\s0 at abort point, control-flow and regions info.
4638 And for \fIn\fR over four, \fB\-fsched\-verbose\fR also includes
4639 dependence info.
4640 .IP "\fB\-save\-temps\fR" 4
4641 .IX Item "-save-temps"
4642 Store the usual \*(L"temporary\*(R" intermediate files permanently; place them
4643 in the current directory and name them based on the source file.  Thus,
4644 compiling \fIfoo.c\fR with \fB\-c \-save\-temps\fR would produce files
4645 \&\fIfoo.i\fR and \fIfoo.s\fR, as well as \fIfoo.o\fR.  This creates a
4646 preprocessed \fIfoo.i\fR output file even though the compiler now
4647 normally uses an integrated preprocessor.
4648 .Sp
4649 When used in combination with the \fB\-x\fR command line option,
4650 \&\fB\-save\-temps\fR is sensible enough to avoid over writing an
4651 input source file with the same extension as an intermediate file.
4652 The corresponding intermediate file may be obtained by renaming the
4653 source file before using \fB\-save\-temps\fR.
4654 .IP "\fB\-time\fR" 4
4655 .IX Item "-time"
4656 Report the \s-1CPU\s0 time taken by each subprocess in the compilation
4657 sequence.  For C source files, this is the compiler proper and assembler
4658 (plus the linker if linking is done).  The output looks like this:
4659 .Sp
4660 .Vb 2
4661 \&        # cc1 0.12 0.01
4662 \&        # as 0.00 0.01
4663 .Ve
4664 .Sp
4665 The first number on each line is the \*(L"user time\*(R", that is time spent
4666 executing the program itself.  The second number is \*(L"system time\*(R",
4667 time spent executing operating system routines on behalf of the program.
4668 Both numbers are in seconds.
4669 .IP "\fB\-fvar\-tracking\fR" 4
4670 .IX Item "-fvar-tracking"
4671 Run variable tracking pass.  It computes where variables are stored at each
4672 position in code.  Better debugging information is then generated
4673 (if the debugging information format supports this information).
4674 .Sp
4675 It is enabled by default when compiling with optimization (\fB\-Os\fR,
4676 \&\fB\-O\fR, \fB\-O2\fR, ...), debugging information (\fB\-g\fR) and
4677 the debug info format supports it.
4678 .IP "\fB\-print\-file\-name=\fR\fIlibrary\fR" 4
4679 .IX Item "-print-file-name=library"
4680 Print the full absolute name of the library file \fIlibrary\fR that
4681 would be used when linking\-\-\-and don't do anything else.  With this
4682 option, \s-1GCC\s0 does not compile or link anything; it just prints the
4683 file name.
4684 .IP "\fB\-print\-multi\-directory\fR" 4
4685 .IX Item "-print-multi-directory"
4686 Print the directory name corresponding to the multilib selected by any
4687 other switches present in the command line.  This directory is supposed
4688 to exist in \fB\s-1GCC_EXEC_PREFIX\s0\fR.
4689 .IP "\fB\-print\-multi\-lib\fR" 4
4690 .IX Item "-print-multi-lib"
4691 Print the mapping from multilib directory names to compiler switches
4692 that enable them.  The directory name is separated from the switches by
4693 \&\fB;\fR, and each switch starts with an \fB@} instead of the
4694 \&\f(CB@samp\fB{\-\fR, without spaces between multiple switches.  This is supposed to
4695 ease shell-processing.
4696 .IP "\fB\-print\-prog\-name=\fR\fIprogram\fR" 4
4697 .IX Item "-print-prog-name=program"
4698 Like \fB\-print\-file\-name\fR, but searches for a program such as \fBcpp\fR.
4699 .IP "\fB\-print\-libgcc\-file\-name\fR" 4
4700 .IX Item "-print-libgcc-file-name"
4701 Same as \fB\-print\-file\-name=libgcc.a\fR.
4702 .Sp
4703 This is useful when you use \fB\-nostdlib\fR or \fB\-nodefaultlibs\fR
4704 but you do want to link with \fIlibgcc.a\fR.  You can do
4705 .Sp
4706 .Vb 1
4707 \&        gcc \-nostdlib <files>... \`gcc \-print\-libgcc\-file\-name\`
4708 .Ve
4709 .IP "\fB\-print\-search\-dirs\fR" 4
4710 .IX Item "-print-search-dirs"
4711 Print the name of the configured installation directory and a list of
4712 program and library directories \fBgcc\fR will search\-\-\-and don't do anything else.
4713 .Sp
4714 This is useful when \fBgcc\fR prints the error message
4715 \&\fBinstallation problem, cannot exec cpp0: No such file or directory\fR.
4716 To resolve this you either need to put \fIcpp0\fR and the other compiler
4717 components where \fBgcc\fR expects to find them, or you can set the environment
4718 variable \fB\s-1GCC_EXEC_PREFIX\s0\fR to the directory where you installed them.
4719 Don't forget the trailing \fB/\fR.
4720 .IP "\fB\-print\-sysroot\fR" 4
4721 .IX Item "-print-sysroot"
4722 Print the target sysroot directory that will be used during
4723 compilation.  This is the target sysroot specified either at configure
4724 time or using the \fB\-\-sysroot\fR option, possibly with an extra
4725 suffix that depends on compilation options.  If no target sysroot is
4726 specified, the option prints nothing.
4727 .IP "\fB\-print\-sysroot\-headers\-suffix\fR" 4
4728 .IX Item "-print-sysroot-headers-suffix"
4729 Print the suffix added to the target sysroot when searching for
4730 headers, or give an error if the compiler is not configured with such
4731 a suffix\-\-\-and don't do anything else.
4732 .IP "\fB\-dumpmachine\fR" 4
4733 .IX Item "-dumpmachine"
4734 Print the compiler's target machine (for example,
4735 \&\fBi686\-pc\-linux\-gnu\fR)\-\-\-and don't do anything else.
4736 .IP "\fB\-dumpversion\fR" 4
4737 .IX Item "-dumpversion"
4738 Print the compiler version (for example, \fB3.0\fR)\-\-\-and don't do
4739 anything else.
4740 .IP "\fB\-dumpspecs\fR" 4
4741 .IX Item "-dumpspecs"
4742 Print the compiler's built-in specs\-\-\-and don't do anything else.  (This
4743 is used when \s-1GCC\s0 itself is being built.)
4744 .IP "\fB\-feliminate\-unused\-debug\-types\fR" 4
4745 .IX Item "-feliminate-unused-debug-types"
4746 Normally, when producing \s-1DWARF2\s0 output, \s-1GCC\s0 will emit debugging
4747 information for all types declared in a compilation
4748 unit, regardless of whether or not they are actually used
4749 in that compilation unit.  Sometimes this is useful, such as
4750 if, in the debugger, you want to cast a value to a type that is
4751 not actually used in your program (but is declared).  More often,
4752 however, this results in a significant amount of wasted space.
4753 With this option, \s-1GCC\s0 will avoid producing debug symbol output
4754 for types that are nowhere used in the source file being compiled.
4755 .SS "Options That Control Optimization"
4756 .IX Subsection "Options That Control Optimization"
4757 These options control various sorts of optimizations.
4758 .PP
4759 Without any optimization option, the compiler's goal is to reduce the
4760 cost of compilation and to make debugging produce the expected
4761 results.  Statements are independent: if you stop the program with a
4762 breakpoint between statements, you can then assign a new value to any
4763 variable or change the program counter to any other statement in the
4764 function and get exactly the results you would expect from the source
4765 code.
4766 .PP
4767 Turning on optimization flags makes the compiler attempt to improve
4768 the performance and/or code size at the expense of compilation time
4769 and possibly the ability to debug the program.
4770 .PP
4771 The compiler performs optimization based on the knowledge it has of the
4772 program.  Compiling multiple files at once to a single output file mode allows
4773 the compiler to use information gained from all of the files when compiling
4774 each of them.
4775 .PP
4776 Not all optimizations are controlled directly by a flag.  Only
4777 optimizations that have a flag are listed.
4778 .IP "\fB\-O\fR" 4
4779 .IX Item "-O"
4780 .PD 0
4781 .IP "\fB\-O1\fR" 4
4782 .IX Item "-O1"
4783 .PD
4784 Optimize.  Optimizing compilation takes somewhat more time, and a lot
4785 more memory for a large function.
4786 .Sp
4787 With \fB\-O\fR, the compiler tries to reduce code size and execution
4788 time, without performing any optimizations that take a great deal of
4789 compilation time.
4790 .Sp
4791 \&\fB\-O\fR turns on the following optimization flags:
4792 .Sp
4793 \&\fB\-fauto\-inc\-dec 
4794 \&\-fcprop\-registers 
4795 \&\-fdce 
4796 \&\-fdefer\-pop 
4797 \&\-fdelayed\-branch 
4798 \&\-fdse 
4799 \&\-fguess\-branch\-probability 
4800 \&\-fif\-conversion2 
4801 \&\-fif\-conversion 
4802 \&\-finline\-small\-functions 
4803 \&\-fipa\-pure\-const 
4804 \&\-fipa\-reference 
4805 \&\-fmerge\-constants
4806 \&\-fsplit\-wide\-types 
4807 \&\-ftree\-builtin\-call\-dce 
4808 \&\-ftree\-ccp 
4809 \&\-ftree\-ch 
4810 \&\-ftree\-copyrename 
4811 \&\-ftree\-dce 
4812 \&\-ftree\-dominator\-opts 
4813 \&\-ftree\-dse 
4814 \&\-ftree\-fre 
4815 \&\-ftree\-sra 
4816 \&\-ftree\-ter 
4817 \&\-funit\-at\-a\-time\fR
4818 .Sp
4819 \&\fB\-O\fR also turns on \fB\-fomit\-frame\-pointer\fR on machines
4820 where doing so does not interfere with debugging.
4821 .IP "\fB\-O2\fR" 4
4822 .IX Item "-O2"
4823 Optimize even more.  \s-1GCC\s0 performs nearly all supported optimizations
4824 that do not involve a space-speed tradeoff.
4825 As compared to \fB\-O\fR, this option increases both compilation time
4826 and the performance of the generated code.
4827 .Sp
4828 \&\fB\-O2\fR turns on all optimization flags specified by \fB\-O\fR.  It
4829 also turns on the following optimization flags:
4830 \&\fB\-fthread\-jumps 
4831 \&\-falign\-functions  \-falign\-jumps 
4832 \&\-falign\-loops  \-falign\-labels 
4833 \&\-fcaller\-saves 
4834 \&\-fcrossjumping 
4835 \&\-fcse\-follow\-jumps  \-fcse\-skip\-blocks 
4836 \&\-fdelete\-null\-pointer\-checks 
4837 \&\-fexpensive\-optimizations 
4838 \&\-fgcse  \-fgcse\-lm  
4839 \&\-findirect\-inlining 
4840 \&\-foptimize\-sibling\-calls 
4841 \&\-fpeephole2 
4842 \&\-fregmove 
4843 \&\-freorder\-blocks  \-freorder\-functions 
4844 \&\-frerun\-cse\-after\-loop  
4845 \&\-fsched\-interblock  \-fsched\-spec 
4846 \&\-fschedule\-insns  \-fschedule\-insns2 
4847 \&\-fstrict\-aliasing \-fstrict\-overflow 
4848 \&\-ftree\-switch\-conversion 
4849 \&\-ftree\-pre 
4850 \&\-ftree\-vrp\fR
4851 .Sp
4852 Please note the warning under \fB\-fgcse\fR about
4853 invoking \fB\-O2\fR on programs that use computed gotos.
4854 .IP "\fB\-O3\fR" 4
4855 .IX Item "-O3"
4856 Optimize yet more.  \fB\-O3\fR turns on all optimizations specified
4857 by \fB\-O2\fR and also turns on the \fB\-finline\-functions\fR,
4858 \&\fB\-funswitch\-loops\fR, \fB\-fpredictive\-commoning\fR,
4859 \&\fB\-fgcse\-after\-reload\fR, \fB\-ftree\-vectorize\fR and
4860 \&\fB\-fipa\-cp\-clone\fR options.
4861 .IP "\fB\-O0\fR" 4
4862 .IX Item "-O0"
4863 Reduce compilation time and make debugging produce the expected
4864 results.  This is the default.
4865 .IP "\fB\-Os\fR" 4
4866 .IX Item "-Os"
4867 Optimize for size.  \fB\-Os\fR enables all \fB\-O2\fR optimizations that
4868 do not typically increase code size.  It also performs further
4869 optimizations designed to reduce code size.
4870 .Sp
4871 \&\fB\-Os\fR disables the following optimization flags:
4872 \&\fB\-falign\-functions  \-falign\-jumps  \-falign\-loops 
4873 \&\-falign\-labels  \-freorder\-blocks  \-freorder\-blocks\-and\-partition 
4874 \&\-fprefetch\-loop\-arrays  \-ftree\-vect\-loop\-version\fR
4875 .Sp
4876 If you use multiple \fB\-O\fR options, with or without level numbers,
4877 the last such option is the one that is effective.
4878 .PP
4879 Options of the form \fB\-f\fR\fIflag\fR specify machine-independent
4880 flags.  Most flags have both positive and negative forms; the negative
4881 form of \fB\-ffoo\fR would be \fB\-fno\-foo\fR.  In the table
4882 below, only one of the forms is listed\-\-\-the one you typically will
4883 use.  You can figure out the other form by either removing \fBno\-\fR
4884 or adding it.
4885 .PP
4886 The following options control specific optimizations.  They are either
4887 activated by \fB\-O\fR options or are related to ones that are.  You
4888 can use the following flags in the rare cases when \*(L"fine-tuning\*(R" of
4889 optimizations to be performed is desired.
4890 .IP "\fB\-fno\-default\-inline\fR" 4
4891 .IX Item "-fno-default-inline"
4892 Do not make member functions inline by default merely because they are
4893 defined inside the class scope (\*(C+ only).  Otherwise, when you specify
4894 \&\fB\-O\fR, member functions defined inside class scope are compiled
4895 inline by default; i.e., you don't need to add \fBinline\fR in front of
4896 the member function name.
4897 .IP "\fB\-fno\-defer\-pop\fR" 4
4898 .IX Item "-fno-defer-pop"
4899 Always pop the arguments to each function call as soon as that function
4900 returns.  For machines which must pop arguments after a function call,
4901 the compiler normally lets arguments accumulate on the stack for several
4902 function calls and pops them all at once.
4903 .Sp
4904 Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4905 .IP "\fB\-fforward\-propagate\fR" 4
4906 .IX Item "-fforward-propagate"
4907 Perform a forward propagation pass on \s-1RTL\s0.  The pass tries to combine two
4908 instructions and checks if the result can be simplified.  If loop unrolling
4909 is active, two passes are performed and the second is scheduled after
4910 loop unrolling.
4911 .Sp
4912 This option is enabled by default at optimization levels \fB\-O2\fR,
4913 \&\fB\-O3\fR, \fB\-Os\fR.
4914 .IP "\fB\-fomit\-frame\-pointer\fR" 4
4915 .IX Item "-fomit-frame-pointer"
4916 Don't keep the frame pointer in a register for functions that
4917 don't need one.  This avoids the instructions to save, set up and
4918 restore frame pointers; it also makes an extra register available
4919 in many functions.  \fBIt also makes debugging impossible on
4920 some machines.\fR
4921 .Sp
4922 On some machines, such as the \s-1VAX\s0, this flag has no effect, because
4923 the standard calling sequence automatically handles the frame pointer
4924 and nothing is saved by pretending it doesn't exist.  The
4925 machine-description macro \f(CW\*(C`FRAME_POINTER_REQUIRED\*(C'\fR controls
4926 whether a target machine supports this flag.
4927 .Sp
4928 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4929 .IP "\fB\-foptimize\-sibling\-calls\fR" 4
4930 .IX Item "-foptimize-sibling-calls"
4931 Optimize sibling and tail recursive calls.
4932 .Sp
4933 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4934 .IP "\fB\-fno\-inline\fR" 4
4935 .IX Item "-fno-inline"
4936 Don't pay attention to the \f(CW\*(C`inline\*(C'\fR keyword.  Normally this option
4937 is used to keep the compiler from expanding any functions inline.
4938 Note that if you are not optimizing, no functions can be expanded inline.
4939 .IP "\fB\-finline\-small\-functions\fR" 4
4940 .IX Item "-finline-small-functions"
4941 Integrate functions into their callers when their body is smaller than expected
4942 function call code (so overall size of program gets smaller).  The compiler
4943 heuristically decides which functions are simple enough to be worth integrating
4944 in this way.
4945 .Sp
4946 Enabled at level \fB\-O2\fR.
4947 .IP "\fB\-findirect\-inlining\fR" 4
4948 .IX Item "-findirect-inlining"
4949 Inline also indirect calls that are discovered to be known at compile
4950 time thanks to previous inlining.  This option has any effect only
4951 when inlining itself is turned on by the \fB\-finline\-functions\fR
4952 or \fB\-finline\-small\-functions\fR options.
4953 .Sp
4954 Enabled at level \fB\-O2\fR.
4955 .IP "\fB\-finline\-functions\fR" 4
4956 .IX Item "-finline-functions"
4957 Integrate all simple functions into their callers.  The compiler
4958 heuristically decides which functions are simple enough to be worth
4959 integrating in this way.
4960 .Sp
4961 If all calls to a given function are integrated, and the function is
4962 declared \f(CW\*(C`static\*(C'\fR, then the function is normally not output as
4963 assembler code in its own right.
4964 .Sp
4965 Enabled at level \fB\-O3\fR.
4966 .IP "\fB\-finline\-functions\-called\-once\fR" 4
4967 .IX Item "-finline-functions-called-once"
4968 Consider all \f(CW\*(C`static\*(C'\fR functions called once for inlining into their
4969 caller even if they are not marked \f(CW\*(C`inline\*(C'\fR.  If a call to a given
4970 function is integrated, then the function is not output as assembler code
4971 in its own right.
4972 .Sp
4973 Enabled at levels \fB\-O1\fR, \fB\-O2\fR, \fB\-O3\fR and \fB\-Os\fR.
4974 .IP "\fB\-fearly\-inlining\fR" 4
4975 .IX Item "-fearly-inlining"
4976 Inline functions marked by \f(CW\*(C`always_inline\*(C'\fR and functions whose body seems
4977 smaller than the function call overhead early before doing
4978 \&\fB\-fprofile\-generate\fR instrumentation and real inlining pass.  Doing so
4979 makes profiling significantly cheaper and usually inlining faster on programs
4980 having large chains of nested wrapper functions.
4981 .Sp
4982 Enabled by default.
4983 .IP "\fB\-finline\-limit=\fR\fIn\fR" 4
4984 .IX Item "-finline-limit=n"
4985 By default, \s-1GCC\s0 limits the size of functions that can be inlined.  This flag
4986 allows coarse control of this limit.  \fIn\fR is the size of functions that
4987 can be inlined in number of pseudo instructions.
4988 .Sp
4989 Inlining is actually controlled by a number of parameters, which may be
4990 specified individually by using \fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR.
4991 The \fB\-finline\-limit=\fR\fIn\fR option sets some of these parameters
4992 as follows:
4993 .RS 4
4994 .IP "\fBmax-inline-insns-single\fR" 4
4995 .IX Item "max-inline-insns-single"
4996 is set to \fIn\fR/2.
4997 .IP "\fBmax-inline-insns-auto\fR" 4
4998 .IX Item "max-inline-insns-auto"
4999 is set to \fIn\fR/2.
5000 .RE
5001 .RS 4
5002 .Sp
5003 See below for a documentation of the individual
5004 parameters controlling inlining and for the defaults of these parameters.
5005 .Sp
5006 \&\fINote:\fR there may be no value to \fB\-finline\-limit\fR that results
5007 in default behavior.
5008 .Sp
5009 \&\fINote:\fR pseudo instruction represents, in this particular context, an
5010 abstract measurement of function's size.  In no way does it represent a count
5011 of assembly instructions and as such its exact meaning might change from one
5012 release to an another.
5013 .RE
5014 .IP "\fB\-fkeep\-inline\-functions\fR" 4
5015 .IX Item "-fkeep-inline-functions"
5016 In C, emit \f(CW\*(C`static\*(C'\fR functions that are declared \f(CW\*(C`inline\*(C'\fR
5017 into the object file, even if the function has been inlined into all
5018 of its callers.  This switch does not affect functions using the
5019 \&\f(CW\*(C`extern inline\*(C'\fR extension in \s-1GNU\s0 C89.  In \*(C+, emit any and all
5020 inline functions into the object file.
5021 .IP "\fB\-fkeep\-static\-consts\fR" 4
5022 .IX Item "-fkeep-static-consts"
5023 Emit variables declared \f(CW\*(C`static const\*(C'\fR when optimization isn't turned
5024 on, even if the variables aren't referenced.
5025 .Sp
5026 \&\s-1GCC\s0 enables this option by default.  If you want to force the compiler to
5027 check if the variable was referenced, regardless of whether or not
5028 optimization is turned on, use the \fB\-fno\-keep\-static\-consts\fR option.
5029 .IP "\fB\-fmerge\-constants\fR" 4
5030 .IX Item "-fmerge-constants"
5031 Attempt to merge identical constants (string constants and floating point
5032 constants) across compilation units.
5033 .Sp
5034 This option is the default for optimized compilation if the assembler and
5035 linker support it.  Use \fB\-fno\-merge\-constants\fR to inhibit this
5036 behavior.
5037 .Sp
5038 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5039 .IP "\fB\-fmerge\-all\-constants\fR" 4
5040 .IX Item "-fmerge-all-constants"
5041 Attempt to merge identical constants and identical variables.
5042 .Sp
5043 This option implies \fB\-fmerge\-constants\fR.  In addition to
5044 \&\fB\-fmerge\-constants\fR this considers e.g. even constant initialized
5045 arrays or initialized constant variables with integral or floating point
5046 types.  Languages like C or \*(C+ require each variable, including multiple
5047 instances of the same variable in recursive calls, to have distinct locations,
5048 so using this option will result in non-conforming
5049 behavior.
5050 .IP "\fB\-fmodulo\-sched\fR" 4
5051 .IX Item "-fmodulo-sched"
5052 Perform swing modulo scheduling immediately before the first scheduling
5053 pass.  This pass looks at innermost loops and reorders their
5054 instructions by overlapping different iterations.
5055 .IP "\fB\-fmodulo\-sched\-allow\-regmoves\fR" 4
5056 .IX Item "-fmodulo-sched-allow-regmoves"
5057 Perform more aggressive \s-1SMS\s0 based modulo scheduling with register moves
5058 allowed.  By setting this flag certain anti-dependences edges will be
5059 deleted which will trigger the generation of reg-moves based on the
5060 life-range analysis.  This option is effective only with
5061 \&\fB\-fmodulo\-sched\fR enabled.
5062 .IP "\fB\-fno\-branch\-count\-reg\fR" 4
5063 .IX Item "-fno-branch-count-reg"
5064 Do not use \*(L"decrement and branch\*(R" instructions on a count register,
5065 but instead generate a sequence of instructions that decrement a
5066 register, compare it against zero, then branch based upon the result.
5067 This option is only meaningful on architectures that support such
5068 instructions, which include x86, PowerPC, \s-1IA\-64\s0 and S/390.
5069 .Sp
5070 The default is \fB\-fbranch\-count\-reg\fR.
5071 .IP "\fB\-fno\-function\-cse\fR" 4
5072 .IX Item "-fno-function-cse"
5073 Do not put function addresses in registers; make each instruction that
5074 calls a constant function contain the function's address explicitly.
5075 .Sp
5076 This option results in less efficient code, but some strange hacks
5077 that alter the assembler output may be confused by the optimizations
5078 performed when this option is not used.
5079 .Sp
5080 The default is \fB\-ffunction\-cse\fR
5081 .IP "\fB\-fno\-zero\-initialized\-in\-bss\fR" 4
5082 .IX Item "-fno-zero-initialized-in-bss"
5083 If the target supports a \s-1BSS\s0 section, \s-1GCC\s0 by default puts variables that
5084 are initialized to zero into \s-1BSS\s0.  This can save space in the resulting
5085 code.
5086 .Sp
5087 This option turns off this behavior because some programs explicitly
5088 rely on variables going to the data section.  E.g., so that the
5089 resulting executable can find the beginning of that section and/or make
5090 assumptions based on that.
5091 .Sp
5092 The default is \fB\-fzero\-initialized\-in\-bss\fR.
5093 .IP "\fB\-fmudflap \-fmudflapth \-fmudflapir\fR" 4
5094 .IX Item "-fmudflap -fmudflapth -fmudflapir"
5095 For front-ends that support it (C and \*(C+), instrument all risky
5096 pointer/array dereferencing operations, some standard library
5097 string/heap functions, and some other associated constructs with
5098 range/validity tests.  Modules so instrumented should be immune to
5099 buffer overflows, invalid heap use, and some other classes of C/\*(C+
5100 programming errors.  The instrumentation relies on a separate runtime
5101 library (\fIlibmudflap\fR), which will be linked into a program if
5102 \&\fB\-fmudflap\fR is given at link time.  Run-time behavior of the
5103 instrumented program is controlled by the \fB\s-1MUDFLAP_OPTIONS\s0\fR
5104 environment variable.  See \f(CW\*(C`env MUDFLAP_OPTIONS=\-help a.out\*(C'\fR
5105 for its options.
5106 .Sp
5107 Use \fB\-fmudflapth\fR instead of \fB\-fmudflap\fR to compile and to
5108 link if your program is multi-threaded.  Use \fB\-fmudflapir\fR, in
5109 addition to \fB\-fmudflap\fR or \fB\-fmudflapth\fR, if
5110 instrumentation should ignore pointer reads.  This produces less
5111 instrumentation (and therefore faster execution) and still provides
5112 some protection against outright memory corrupting writes, but allows
5113 erroneously read data to propagate within a program.
5114 .IP "\fB\-fthread\-jumps\fR" 4
5115 .IX Item "-fthread-jumps"
5116 Perform optimizations where we check to see if a jump branches to a
5117 location where another comparison subsumed by the first is found.  If
5118 so, the first branch is redirected to either the destination of the
5119 second branch or a point immediately following it, depending on whether
5120 the condition is known to be true or false.
5121 .Sp
5122 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5123 .IP "\fB\-fsplit\-wide\-types\fR" 4
5124 .IX Item "-fsplit-wide-types"
5125 When using a type that occupies multiple registers, such as \f(CW\*(C`long
5126 long\*(C'\fR on a 32\-bit system, split the registers apart and allocate them
5127 independently.  This normally generates better code for those types,
5128 but may make debugging more difficult.
5129 .Sp
5130 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR,
5131 \&\fB\-Os\fR.
5132 .IP "\fB\-fcse\-follow\-jumps\fR" 4
5133 .IX Item "-fcse-follow-jumps"
5134 In common subexpression elimination (\s-1CSE\s0), scan through jump instructions
5135 when the target of the jump is not reached by any other path.  For
5136 example, when \s-1CSE\s0 encounters an \f(CW\*(C`if\*(C'\fR statement with an
5137 \&\f(CW\*(C`else\*(C'\fR clause, \s-1CSE\s0 will follow the jump when the condition
5138 tested is false.
5139 .Sp
5140 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5141 .IP "\fB\-fcse\-skip\-blocks\fR" 4
5142 .IX Item "-fcse-skip-blocks"
5143 This is similar to \fB\-fcse\-follow\-jumps\fR, but causes \s-1CSE\s0 to
5144 follow jumps which conditionally skip over blocks.  When \s-1CSE\s0
5145 encounters a simple \f(CW\*(C`if\*(C'\fR statement with no else clause,
5146 \&\fB\-fcse\-skip\-blocks\fR causes \s-1CSE\s0 to follow the jump around the
5147 body of the \f(CW\*(C`if\*(C'\fR.
5148 .Sp
5149 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5150 .IP "\fB\-frerun\-cse\-after\-loop\fR" 4
5151 .IX Item "-frerun-cse-after-loop"
5152 Re-run common subexpression elimination after loop optimizations has been
5153 performed.
5154 .Sp
5155 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5156 .IP "\fB\-fgcse\fR" 4
5157 .IX Item "-fgcse"
5158 Perform a global common subexpression elimination pass.
5159 This pass also performs global constant and copy propagation.
5160 .Sp
5161 \&\fINote:\fR When compiling a program using computed gotos, a \s-1GCC\s0
5162 extension, you may get better runtime performance if you disable
5163 the global common subexpression elimination pass by adding
5164 \&\fB\-fno\-gcse\fR to the command line.
5165 .Sp
5166 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5167 .IP "\fB\-fgcse\-lm\fR" 4
5168 .IX Item "-fgcse-lm"
5169 When \fB\-fgcse\-lm\fR is enabled, global common subexpression elimination will
5170 attempt to move loads which are only killed by stores into themselves.  This
5171 allows a loop containing a load/store sequence to be changed to a load outside
5172 the loop, and a copy/store within the loop.
5173 .Sp
5174 Enabled by default when gcse is enabled.
5175 .IP "\fB\-fgcse\-sm\fR" 4
5176 .IX Item "-fgcse-sm"
5177 When \fB\-fgcse\-sm\fR is enabled, a store motion pass is run after
5178 global common subexpression elimination.  This pass will attempt to move
5179 stores out of loops.  When used in conjunction with \fB\-fgcse\-lm\fR,
5180 loops containing a load/store sequence can be changed to a load before
5181 the loop and a store after the loop.
5182 .Sp
5183 Not enabled at any optimization level.
5184 .IP "\fB\-fgcse\-las\fR" 4
5185 .IX Item "-fgcse-las"
5186 When \fB\-fgcse\-las\fR is enabled, the global common subexpression
5187 elimination pass eliminates redundant loads that come after stores to the
5188 same memory location (both partial and full redundancies).
5189 .Sp
5190 Not enabled at any optimization level.
5191 .IP "\fB\-fgcse\-after\-reload\fR" 4
5192 .IX Item "-fgcse-after-reload"
5193 When \fB\-fgcse\-after\-reload\fR is enabled, a redundant load elimination
5194 pass is performed after reload.  The purpose of this pass is to cleanup
5195 redundant spilling.
5196 .IP "\fB\-funsafe\-loop\-optimizations\fR" 4
5197 .IX Item "-funsafe-loop-optimizations"
5198 If given, the loop optimizer will assume that loop indices do not
5199 overflow, and that the loops with nontrivial exit condition are not
5200 infinite.  This enables a wider range of loop optimizations even if
5201 the loop optimizer itself cannot prove that these assumptions are valid.
5202 Using \fB\-Wunsafe\-loop\-optimizations\fR, the compiler will warn you
5203 if it finds this kind of loop.
5204 .IP "\fB\-fcrossjumping\fR" 4
5205 .IX Item "-fcrossjumping"
5206 Perform cross-jumping transformation.  This transformation unifies equivalent code and save code size.  The
5207 resulting code may or may not perform better than without cross-jumping.
5208 .Sp
5209 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5210 .IP "\fB\-fauto\-inc\-dec\fR" 4
5211 .IX Item "-fauto-inc-dec"
5212 Combine increments or decrements of addresses with memory accesses.
5213 This pass is always skipped on architectures that do not have
5214 instructions to support this.  Enabled by default at \fB\-O\fR and
5215 higher on architectures that support this.
5216 .IP "\fB\-fdce\fR" 4
5217 .IX Item "-fdce"
5218 Perform dead code elimination (\s-1DCE\s0) on \s-1RTL\s0.
5219 Enabled by default at \fB\-O\fR and higher.
5220 .IP "\fB\-fdse\fR" 4
5221 .IX Item "-fdse"
5222 Perform dead store elimination (\s-1DSE\s0) on \s-1RTL\s0.
5223 Enabled by default at \fB\-O\fR and higher.
5224 .IP "\fB\-fif\-conversion\fR" 4
5225 .IX Item "-fif-conversion"
5226 Attempt to transform conditional jumps into branch-less equivalents.  This
5227 include use of conditional moves, min, max, set flags and abs instructions, and
5228 some tricks doable by standard arithmetics.  The use of conditional execution
5229 on chips where it is available is controlled by \f(CW\*(C`if\-conversion2\*(C'\fR.
5230 .Sp
5231 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5232 .IP "\fB\-fif\-conversion2\fR" 4
5233 .IX Item "-fif-conversion2"
5234 Use conditional execution (where available) to transform conditional jumps into
5235 branch-less equivalents.
5236 .Sp
5237 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5238 .IP "\fB\-fdelete\-null\-pointer\-checks\fR" 4
5239 .IX Item "-fdelete-null-pointer-checks"
5240 Use global dataflow analysis to identify and eliminate useless checks
5241 for null pointers.  The compiler assumes that dereferencing a null
5242 pointer would have halted the program.  If a pointer is checked after
5243 it has already been dereferenced, it cannot be null.
5244 .Sp
5245 In some environments, this assumption is not true, and programs can
5246 safely dereference null pointers.  Use
5247 \&\fB\-fno\-delete\-null\-pointer\-checks\fR to disable this optimization
5248 for programs which depend on that behavior.
5249 .Sp
5250 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5251 .IP "\fB\-fexpensive\-optimizations\fR" 4
5252 .IX Item "-fexpensive-optimizations"
5253 Perform a number of minor optimizations that are relatively expensive.
5254 .Sp
5255 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5256 .IP "\fB\-foptimize\-register\-move\fR" 4
5257 .IX Item "-foptimize-register-move"
5258 .PD 0
5259 .IP "\fB\-fregmove\fR" 4
5260 .IX Item "-fregmove"
5261 .PD
5262 Attempt to reassign register numbers in move instructions and as
5263 operands of other simple instructions in order to maximize the amount of
5264 register tying.  This is especially helpful on machines with two-operand
5265 instructions.
5266 .Sp
5267 Note \fB\-fregmove\fR and \fB\-foptimize\-register\-move\fR are the same
5268 optimization.
5269 .Sp
5270 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5271 .IP "\fB\-fira\-algorithm=\fR\fIalgorithm\fR" 4
5272 .IX Item "-fira-algorithm=algorithm"
5273 Use specified coloring algorithm for the integrated register
5274 allocator.  The \fIalgorithm\fR argument should be \f(CW\*(C`priority\*(C'\fR or
5275 \&\f(CW\*(C`CB\*(C'\fR.  The first algorithm specifies Chow's priority coloring,
5276 the second one specifies Chaitin-Briggs coloring.  The second
5277 algorithm can be unimplemented for some architectures.  If it is
5278 implemented, it is the default because Chaitin-Briggs coloring as a
5279 rule generates a better code.
5280 .IP "\fB\-fira\-region=\fR\fIregion\fR" 4
5281 .IX Item "-fira-region=region"
5282 Use specified regions for the integrated register allocator.  The
5283 \&\fIregion\fR argument should be one of \f(CW\*(C`all\*(C'\fR, \f(CW\*(C`mixed\*(C'\fR, or
5284 \&\f(CW\*(C`one\*(C'\fR.  The first value means using all loops as register
5285 allocation regions, the second value which is the default means using
5286 all loops except for loops with small register pressure as the
5287 regions, and third one means using all function as a single region.
5288 The first value can give best result for machines with small size and
5289 irregular register set, the third one results in faster and generates
5290 decent code and the smallest size code, and the default value usually
5291 give the best results in most cases and for most architectures.
5292 .IP "\fB\-fira\-coalesce\fR" 4
5293 .IX Item "-fira-coalesce"
5294 Do optimistic register coalescing.  This option might be profitable for
5295 architectures with big regular register files.
5296 .IP "\fB\-fno\-ira\-share\-save\-slots\fR" 4
5297 .IX Item "-fno-ira-share-save-slots"
5298 Switch off sharing stack slots used for saving call used hard
5299 registers living through a call.  Each hard register will get a
5300 separate stack slot and as a result function stack frame will be
5301 bigger.
5302 .IP "\fB\-fno\-ira\-share\-spill\-slots\fR" 4
5303 .IX Item "-fno-ira-share-spill-slots"
5304 Switch off sharing stack slots allocated for pseudo-registers.  Each
5305 pseudo-register which did not get a hard register will get a separate
5306 stack slot and as a result function stack frame will be bigger.
5307 .IP "\fB\-fira\-verbose=\fR\fIn\fR" 4
5308 .IX Item "-fira-verbose=n"
5309 Set up how verbose dump file for the integrated register allocator
5310 will be.  Default value is 5.  If the value is greater or equal to 10,
5311 the dump file will be stderr as if the value were \fIn\fR minus 10.
5312 .IP "\fB\-fdelayed\-branch\fR" 4
5313 .IX Item "-fdelayed-branch"
5314 If supported for the target machine, attempt to reorder instructions
5315 to exploit instruction slots available after delayed branch
5316 instructions.
5317 .Sp
5318 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5319 .IP "\fB\-fschedule\-insns\fR" 4
5320 .IX Item "-fschedule-insns"
5321 If supported for the target machine, attempt to reorder instructions to
5322 eliminate execution stalls due to required data being unavailable.  This
5323 helps machines that have slow floating point or memory load instructions
5324 by allowing other instructions to be issued until the result of the load
5325 or floating point instruction is required.
5326 .Sp
5327 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5328 .IP "\fB\-fschedule\-insns2\fR" 4
5329 .IX Item "-fschedule-insns2"
5330 Similar to \fB\-fschedule\-insns\fR, but requests an additional pass of
5331 instruction scheduling after register allocation has been done.  This is
5332 especially useful on machines with a relatively small number of
5333 registers and where memory load instructions take more than one cycle.
5334 .Sp
5335 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5336 .IP "\fB\-fno\-sched\-interblock\fR" 4
5337 .IX Item "-fno-sched-interblock"
5338 Don't schedule instructions across basic blocks.  This is normally
5339 enabled by default when scheduling before register allocation, i.e.
5340 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
5341 .IP "\fB\-fno\-sched\-spec\fR" 4
5342 .IX Item "-fno-sched-spec"
5343 Don't allow speculative motion of non-load instructions.  This is normally
5344 enabled by default when scheduling before register allocation, i.e.
5345 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
5346 .IP "\fB\-fsched\-spec\-load\fR" 4
5347 .IX Item "-fsched-spec-load"
5348 Allow speculative motion of some load instructions.  This only makes
5349 sense when scheduling before register allocation, i.e. with
5350 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
5351 .IP "\fB\-fsched\-spec\-load\-dangerous\fR" 4
5352 .IX Item "-fsched-spec-load-dangerous"
5353 Allow speculative motion of more load instructions.  This only makes
5354 sense when scheduling before register allocation, i.e. with
5355 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
5356 .IP "\fB\-fsched\-stalled\-insns\fR" 4
5357 .IX Item "-fsched-stalled-insns"
5358 .PD 0
5359 .IP "\fB\-fsched\-stalled\-insns=\fR\fIn\fR" 4
5360 .IX Item "-fsched-stalled-insns=n"
5361 .PD
5362 Define how many insns (if any) can be moved prematurely from the queue
5363 of stalled insns into the ready list, during the second scheduling pass.
5364 \&\fB\-fno\-sched\-stalled\-insns\fR means that no insns will be moved
5365 prematurely, \fB\-fsched\-stalled\-insns=0\fR means there is no limit
5366 on how many queued insns can be moved prematurely.
5367 \&\fB\-fsched\-stalled\-insns\fR without a value is equivalent to
5368 \&\fB\-fsched\-stalled\-insns=1\fR.
5369 .IP "\fB\-fsched\-stalled\-insns\-dep\fR" 4
5370 .IX Item "-fsched-stalled-insns-dep"
5371 .PD 0
5372 .IP "\fB\-fsched\-stalled\-insns\-dep=\fR\fIn\fR" 4
5373 .IX Item "-fsched-stalled-insns-dep=n"
5374 .PD
5375 Define how many insn groups (cycles) will be examined for a dependency
5376 on a stalled insn that is candidate for premature removal from the queue
5377 of stalled insns.  This has an effect only during the second scheduling pass,
5378 and only if \fB\-fsched\-stalled\-insns\fR is used.
5379 \&\fB\-fno\-sched\-stalled\-insns\-dep\fR is equivalent to
5380 \&\fB\-fsched\-stalled\-insns\-dep=0\fR.
5381 \&\fB\-fsched\-stalled\-insns\-dep\fR without a value is equivalent to
5382 \&\fB\-fsched\-stalled\-insns\-dep=1\fR.
5383 .IP "\fB\-fsched2\-use\-superblocks\fR" 4
5384 .IX Item "-fsched2-use-superblocks"
5385 When scheduling after register allocation, do use superblock scheduling
5386 algorithm.  Superblock scheduling allows motion across basic block boundaries
5387 resulting on faster schedules.  This option is experimental, as not all machine
5388 descriptions used by \s-1GCC\s0 model the \s-1CPU\s0 closely enough to avoid unreliable
5389 results from the algorithm.
5390 .Sp
5391 This only makes sense when scheduling after register allocation, i.e. with
5392 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
5393 .IP "\fB\-fsched2\-use\-traces\fR" 4
5394 .IX Item "-fsched2-use-traces"
5395 Use \fB\-fsched2\-use\-superblocks\fR algorithm when scheduling after register
5396 allocation and additionally perform code duplication in order to increase the
5397 size of superblocks using tracer pass.  See \fB\-ftracer\fR for details on
5398 trace formation.
5399 .Sp
5400 This mode should produce faster but significantly longer programs.  Also
5401 without \fB\-fbranch\-probabilities\fR the traces constructed may not
5402 match the reality and hurt the performance.  This only makes
5403 sense when scheduling after register allocation, i.e. with
5404 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
5405 .IP "\fB\-fsee\fR" 4
5406 .IX Item "-fsee"
5407 Eliminate redundant sign extension instructions and move the non-redundant
5408 ones to optimal placement using lazy code motion (\s-1LCM\s0).
5409 .IP "\fB\-freschedule\-modulo\-scheduled\-loops\fR" 4
5410 .IX Item "-freschedule-modulo-scheduled-loops"
5411 The modulo scheduling comes before the traditional scheduling, if a loop
5412 was modulo scheduled we may want to prevent the later scheduling passes
5413 from changing its schedule, we use this option to control that.
5414 .IP "\fB\-fselective\-scheduling\fR" 4
5415 .IX Item "-fselective-scheduling"
5416 Schedule instructions using selective scheduling algorithm.  Selective
5417 scheduling runs instead of the first scheduler pass.
5418 .IP "\fB\-fselective\-scheduling2\fR" 4
5419 .IX Item "-fselective-scheduling2"
5420 Schedule instructions using selective scheduling algorithm.  Selective
5421 scheduling runs instead of the second scheduler pass.
5422 .IP "\fB\-fsel\-sched\-pipelining\fR" 4
5423 .IX Item "-fsel-sched-pipelining"
5424 Enable software pipelining of innermost loops during selective scheduling.  
5425 This option has no effect until one of \fB\-fselective\-scheduling\fR or 
5426 \&\fB\-fselective\-scheduling2\fR is turned on.
5427 .IP "\fB\-fsel\-sched\-pipelining\-outer\-loops\fR" 4
5428 .IX Item "-fsel-sched-pipelining-outer-loops"
5429 When pipelining loops during selective scheduling, also pipeline outer loops.
5430 This option has no effect until \fB\-fsel\-sched\-pipelining\fR is turned on.
5431 .IP "\fB\-fcaller\-saves\fR" 4
5432 .IX Item "-fcaller-saves"
5433 Enable values to be allocated in registers that will be clobbered by
5434 function calls, by emitting extra instructions to save and restore the
5435 registers around such calls.  Such allocation is done only when it
5436 seems to result in better code than would otherwise be produced.
5437 .Sp
5438 This option is always enabled by default on certain machines, usually
5439 those which have no call-preserved registers to use instead.
5440 .Sp
5441 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5442 .IP "\fB\-fconserve\-stack\fR" 4
5443 .IX Item "-fconserve-stack"
5444 Attempt to minimize stack usage.  The compiler will attempt to use less
5445 stack space, even if that makes the program slower.  This option
5446 implies setting the \fBlarge-stack-frame\fR parameter to 100
5447 and the \fBlarge-stack-frame-growth\fR parameter to 400.
5448 .IP "\fB\-ftree\-reassoc\fR" 4
5449 .IX Item "-ftree-reassoc"
5450 Perform reassociation on trees.  This flag is enabled by default
5451 at \fB\-O\fR and higher.
5452 .IP "\fB\-ftree\-pre\fR" 4
5453 .IX Item "-ftree-pre"
5454 Perform partial redundancy elimination (\s-1PRE\s0) on trees.  This flag is
5455 enabled by default at \fB\-O2\fR and \fB\-O3\fR.
5456 .IP "\fB\-ftree\-fre\fR" 4
5457 .IX Item "-ftree-fre"
5458 Perform full redundancy elimination (\s-1FRE\s0) on trees.  The difference
5459 between \s-1FRE\s0 and \s-1PRE\s0 is that \s-1FRE\s0 only considers expressions
5460 that are computed on all paths leading to the redundant computation.
5461 This analysis is faster than \s-1PRE\s0, though it exposes fewer redundancies.
5462 This flag is enabled by default at \fB\-O\fR and higher.
5463 .IP "\fB\-ftree\-copy\-prop\fR" 4
5464 .IX Item "-ftree-copy-prop"
5465 Perform copy propagation on trees.  This pass eliminates unnecessary
5466 copy operations.  This flag is enabled by default at \fB\-O\fR and
5467 higher.
5468 .IP "\fB\-fipa\-pure\-const\fR" 4
5469 .IX Item "-fipa-pure-const"
5470 Discover which functions are pure or constant.
5471 Enabled by default at \fB\-O\fR and higher.
5472 .IP "\fB\-fipa\-reference\fR" 4
5473 .IX Item "-fipa-reference"
5474 Discover which static variables do not escape cannot escape the
5475 compilation unit.
5476 Enabled by default at \fB\-O\fR and higher.
5477 .IP "\fB\-fipa\-struct\-reorg\fR" 4
5478 .IX Item "-fipa-struct-reorg"
5479 Perform structure reorganization optimization, that change C\-like structures 
5480 layout in order to better utilize spatial locality.  This transformation is 
5481 effective for programs containing arrays of structures.  Available in two 
5482 compilation modes: profile-based (enabled with \fB\-fprofile\-generate\fR)
5483 or static (which uses built-in heuristics).  Require \fB\-fipa\-type\-escape\fR
5484 to provide the safety of this transformation.  It works only in whole program
5485 mode, so it requires \fB\-fwhole\-program\fR and \fB\-combine\fR to be
5486 enabled.  Structures considered \fBcold\fR by this transformation are not
5487 affected (see \fB\-\-param struct\-reorg\-cold\-struct\-ratio=\fR\fIvalue\fR).
5488 .Sp
5489 With this flag, the program debug info reflects a new structure layout.
5490 .IP "\fB\-fipa\-pta\fR" 4
5491 .IX Item "-fipa-pta"
5492 Perform interprocedural pointer analysis.  This option is experimental
5493 and does not affect generated code.
5494 .IP "\fB\-fipa\-cp\fR" 4
5495 .IX Item "-fipa-cp"
5496 Perform interprocedural constant propagation.
5497 This optimization analyzes the program to determine when values passed
5498 to functions are constants and then optimizes accordingly.  
5499 This optimization can substantially increase performance
5500 if the application has constants passed to functions.
5501 This flag is enabled by default at \fB\-O2\fR, \fB\-Os\fR and \fB\-O3\fR.
5502 .IP "\fB\-fipa\-cp\-clone\fR" 4
5503 .IX Item "-fipa-cp-clone"
5504 Perform function cloning to make interprocedural constant propagation stronger.
5505 When enabled, interprocedural constant propagation will perform function cloning
5506 when externally visible function can be called with constant arguments.
5507 Because this optimization can create multiple copies of functions,
5508 it may significantly increase code size
5509 (see \fB\-\-param ipcp\-unit\-growth=\fR\fIvalue\fR).
5510 This flag is enabled by default at \fB\-O3\fR.
5511 .IP "\fB\-fipa\-matrix\-reorg\fR" 4
5512 .IX Item "-fipa-matrix-reorg"
5513 Perform matrix flattening and transposing.
5514 Matrix flattening tries to replace a m\-dimensional matrix 
5515 with its equivalent n\-dimensional matrix, where n < m.
5516 This reduces the level of indirection needed for accessing the elements
5517 of the matrix. The second optimization is matrix transposing that
5518 attempts to change the order of the matrix's dimensions in order to
5519 improve cache locality.
5520 Both optimizations need the \fB\-fwhole\-program\fR flag. 
5521 Transposing is enabled only if profiling information is available.
5522 .IP "\fB\-ftree\-sink\fR" 4
5523 .IX Item "-ftree-sink"
5524 Perform forward store motion  on trees.  This flag is
5525 enabled by default at \fB\-O\fR and higher.
5526 .IP "\fB\-ftree\-ccp\fR" 4
5527 .IX Item "-ftree-ccp"
5528 Perform sparse conditional constant propagation (\s-1CCP\s0) on trees.  This
5529 pass only operates on local scalar variables and is enabled by default
5530 at \fB\-O\fR and higher.
5531 .IP "\fB\-ftree\-switch\-conversion\fR" 4
5532 .IX Item "-ftree-switch-conversion"
5533 Perform conversion of simple initializations in a switch to
5534 initializations from a scalar array.  This flag is enabled by default
5535 at \fB\-O2\fR and higher.
5536 .IP "\fB\-ftree\-dce\fR" 4
5537 .IX Item "-ftree-dce"
5538 Perform dead code elimination (\s-1DCE\s0) on trees.  This flag is enabled by
5539 default at \fB\-O\fR and higher.
5540 .IP "\fB\-ftree\-builtin\-call\-dce\fR" 4
5541 .IX Item "-ftree-builtin-call-dce"
5542 Perform conditional dead code elimination (\s-1DCE\s0) for calls to builtin functions 
5543 that may set \f(CW\*(C`errno\*(C'\fR but are otherwise side-effect free.  This flag is 
5544 enabled by default at \fB\-O2\fR and higher if \fB\-Os\fR is not also 
5545 specified.
5546 .IP "\fB\-ftree\-dominator\-opts\fR" 4
5547 .IX Item "-ftree-dominator-opts"
5548 Perform a variety of simple scalar cleanups (constant/copy
5549 propagation, redundancy elimination, range propagation and expression
5550 simplification) based on a dominator tree traversal.  This also
5551 performs jump threading (to reduce jumps to jumps). This flag is
5552 enabled by default at \fB\-O\fR and higher.
5553 .IP "\fB\-ftree\-dse\fR" 4
5554 .IX Item "-ftree-dse"
5555 Perform dead store elimination (\s-1DSE\s0) on trees.  A dead store is a store into
5556 a memory location which will later be overwritten by another store without
5557 any intervening loads.  In this case the earlier store can be deleted.  This
5558 flag is enabled by default at \fB\-O\fR and higher.
5559 .IP "\fB\-ftree\-ch\fR" 4
5560 .IX Item "-ftree-ch"
5561 Perform loop header copying on trees.  This is beneficial since it increases
5562 effectiveness of code motion optimizations.  It also saves one jump.  This flag
5563 is enabled by default at \fB\-O\fR and higher.  It is not enabled
5564 for \fB\-Os\fR, since it usually increases code size.
5565 .IP "\fB\-ftree\-loop\-optimize\fR" 4
5566 .IX Item "-ftree-loop-optimize"
5567 Perform loop optimizations on trees.  This flag is enabled by default
5568 at \fB\-O\fR and higher.
5569 .IP "\fB\-ftree\-loop\-linear\fR" 4
5570 .IX Item "-ftree-loop-linear"
5571 Perform linear loop transformations on tree.  This flag can improve cache
5572 performance and allow further loop optimizations to take place.
5573 .IP "\fB\-floop\-interchange\fR" 4
5574 .IX Item "-floop-interchange"
5575 Perform loop interchange transformations on loops.  Interchanging two
5576 nested loops switches the inner and outer loops.  For example, given a
5577 loop like:
5578 .Sp
5579 .Vb 5
5580 \&        DO J = 1, M
5581 \&          DO I = 1, N
5582 \&            A(J, I) = A(J, I) * C
5583 \&          ENDDO
5584 \&        ENDDO
5585 .Ve
5586 .Sp
5587 loop interchange will transform the loop as if the user had written:
5588 .Sp
5589 .Vb 5
5590 \&        DO I = 1, N
5591 \&          DO J = 1, M
5592 \&            A(J, I) = A(J, I) * C
5593 \&          ENDDO
5594 \&        ENDDO
5595 .Ve
5596 .Sp
5597 which can be beneficial when \f(CW\*(C`N\*(C'\fR is larger than the caches,
5598 because in Fortran, the elements of an array are stored in memory
5599 contiguously by column, and the original loop iterates over rows,
5600 potentially creating at each access a cache miss.  This optimization
5601 applies to all the languages supported by \s-1GCC\s0 and is not limited to
5602 Fortran.  To use this code transformation, \s-1GCC\s0 has to be configured
5603 with \fB\-\-with\-ppl\fR and \fB\-\-with\-cloog\fR to enable the
5604 Graphite loop transformation infrastructure.
5605 .IP "\fB\-floop\-strip\-mine\fR" 4
5606 .IX Item "-floop-strip-mine"
5607 Perform loop strip mining transformations on loops.  Strip mining
5608 splits a loop into two nested loops.  The outer loop has strides 
5609 equal to the strip size and the inner loop has strides of the 
5610 original loop within a strip.  For example, given a loop like:
5611 .Sp
5612 .Vb 3
5613 \&        DO I = 1, N
5614 \&          A(I) = A(I) + C
5615 \&        ENDDO
5616 .Ve
5617 .Sp
5618 loop strip mining will transform the loop as if the user had written:
5619 .Sp
5620 .Vb 5
5621 \&        DO II = 1, N, 4
5622 \&          DO I = II, min (II + 3, N)
5623 \&            A(I) = A(I) + C
5624 \&          ENDDO
5625 \&        ENDDO
5626 .Ve
5627 .Sp
5628 This optimization applies to all the languages supported by \s-1GCC\s0 and is
5629 not limited to Fortran.  To use this code transformation, \s-1GCC\s0 has to
5630 be configured with \fB\-\-with\-ppl\fR and \fB\-\-with\-cloog\fR to
5631 enable the Graphite loop transformation infrastructure.
5632 .IP "\fB\-floop\-block\fR" 4
5633 .IX Item "-floop-block"
5634 Perform loop blocking transformations on loops.  Blocking strip mines
5635 each loop in the loop nest such that the memory accesses of the
5636 element loops fit inside caches.  For example, given a loop like:
5637 .Sp
5638 .Vb 5
5639 \&        DO I = 1, N
5640 \&          DO J = 1, M
5641 \&            A(J, I) = B(I) + C(J)
5642 \&          ENDDO
5643 \&        ENDDO
5644 .Ve
5645 .Sp
5646 loop blocking will transform the loop as if the user had written:
5647 .Sp
5648 .Vb 9
5649 \&        DO II = 1, N, 64
5650 \&          DO JJ = 1, M, 64
5651 \&            DO I = II, min (II + 63, N)
5652 \&              DO J = JJ, min (JJ + 63, M)
5653 \&                A(J, I) = B(I) + C(J)
5654 \&              ENDDO
5655 \&            ENDDO
5656 \&          ENDDO
5657 \&        ENDDO
5658 .Ve
5659 .Sp
5660 which can be beneficial when \f(CW\*(C`M\*(C'\fR is larger than the caches,
5661 because the innermost loop will iterate over a smaller amount of data
5662 that can be kept in the caches.  This optimization applies to all the
5663 languages supported by \s-1GCC\s0 and is not limited to Fortran.  To use this
5664 code transformation, \s-1GCC\s0 has to be configured with \fB\-\-with\-ppl\fR
5665 and \fB\-\-with\-cloog\fR to enable the Graphite loop transformation
5666 infrastructure.
5667 .IP "\fB\-fcheck\-data\-deps\fR" 4
5668 .IX Item "-fcheck-data-deps"
5669 Compare the results of several data dependence analyzers.  This option
5670 is used for debugging the data dependence analyzers.
5671 .IP "\fB\-ftree\-loop\-distribution\fR" 4
5672 .IX Item "-ftree-loop-distribution"
5673 Perform loop distribution.  This flag can improve cache performance on
5674 big loop bodies and allow further loop optimizations, like
5675 parallelization or vectorization, to take place.  For example, the loop
5676 .Sp
5677 .Vb 4
5678 \&        DO I = 1, N
5679 \&          A(I) = B(I) + C
5680 \&          D(I) = E(I) * F
5681 \&        ENDDO
5682 .Ve
5683 .Sp
5684 is transformed to
5685 .Sp
5686 .Vb 6
5687 \&        DO I = 1, N
5688 \&           A(I) = B(I) + C
5689 \&        ENDDO
5690 \&        DO I = 1, N
5691 \&           D(I) = E(I) * F
5692 \&        ENDDO
5693 .Ve
5694 .IP "\fB\-ftree\-loop\-im\fR" 4
5695 .IX Item "-ftree-loop-im"
5696 Perform loop invariant motion on trees.  This pass moves only invariants that
5697 would be hard to handle at \s-1RTL\s0 level (function calls, operations that expand to
5698 nontrivial sequences of insns).  With \fB\-funswitch\-loops\fR it also moves
5699 operands of conditions that are invariant out of the loop, so that we can use
5700 just trivial invariantness analysis in loop unswitching.  The pass also includes
5701 store motion.
5702 .IP "\fB\-ftree\-loop\-ivcanon\fR" 4
5703 .IX Item "-ftree-loop-ivcanon"
5704 Create a canonical counter for number of iterations in the loop for that
5705 determining number of iterations requires complicated analysis.  Later
5706 optimizations then may determine the number easily.  Useful especially
5707 in connection with unrolling.
5708 .IP "\fB\-fivopts\fR" 4
5709 .IX Item "-fivopts"
5710 Perform induction variable optimizations (strength reduction, induction
5711 variable merging and induction variable elimination) on trees.
5712 .IP "\fB\-ftree\-parallelize\-loops=n\fR" 4
5713 .IX Item "-ftree-parallelize-loops=n"
5714 Parallelize loops, i.e., split their iteration space to run in n threads.
5715 This is only possible for loops whose iterations are independent
5716 and can be arbitrarily reordered.  The optimization is only
5717 profitable on multiprocessor machines, for loops that are CPU-intensive,
5718 rather than constrained e.g. by memory bandwidth.  This option
5719 implies \fB\-pthread\fR, and thus is only supported on targets
5720 that have support for \fB\-pthread\fR.
5721 .IP "\fB\-ftree\-sra\fR" 4
5722 .IX Item "-ftree-sra"
5723 Perform scalar replacement of aggregates.  This pass replaces structure
5724 references with scalars to prevent committing structures to memory too
5725 early.  This flag is enabled by default at \fB\-O\fR and higher.
5726 .IP "\fB\-ftree\-copyrename\fR" 4
5727 .IX Item "-ftree-copyrename"
5728 Perform copy renaming on trees.  This pass attempts to rename compiler
5729 temporaries to other variables at copy locations, usually resulting in
5730 variable names which more closely resemble the original variables.  This flag
5731 is enabled by default at \fB\-O\fR and higher.
5732 .IP "\fB\-ftree\-ter\fR" 4
5733 .IX Item "-ftree-ter"
5734 Perform temporary expression replacement during the \s-1SSA\-\s0>normal phase.  Single
5735 use/single def temporaries are replaced at their use location with their
5736 defining expression.  This results in non-GIMPLE code, but gives the expanders
5737 much more complex trees to work on resulting in better \s-1RTL\s0 generation.  This is
5738 enabled by default at \fB\-O\fR and higher.
5739 .IP "\fB\-ftree\-vectorize\fR" 4
5740 .IX Item "-ftree-vectorize"
5741 Perform loop vectorization on trees. This flag is enabled by default at
5742 \&\fB\-O3\fR.
5743 .IP "\fB\-ftree\-vect\-loop\-version\fR" 4
5744 .IX Item "-ftree-vect-loop-version"
5745 Perform loop versioning when doing loop vectorization on trees.  When a loop
5746 appears to be vectorizable except that data alignment or data dependence cannot
5747 be determined at compile time then vectorized and non-vectorized versions of
5748 the loop are generated along with runtime checks for alignment or dependence
5749 to control which version is executed.  This option is enabled by default
5750 except at level \fB\-Os\fR where it is disabled.
5751 .IP "\fB\-fvect\-cost\-model\fR" 4
5752 .IX Item "-fvect-cost-model"
5753 Enable cost model for vectorization.
5754 .IP "\fB\-ftree\-vrp\fR" 4
5755 .IX Item "-ftree-vrp"
5756 Perform Value Range Propagation on trees.  This is similar to the
5757 constant propagation pass, but instead of values, ranges of values are
5758 propagated.  This allows the optimizers to remove unnecessary range
5759 checks like array bound checks and null pointer checks.  This is
5760 enabled by default at \fB\-O2\fR and higher.  Null pointer check
5761 elimination is only done if \fB\-fdelete\-null\-pointer\-checks\fR is
5762 enabled.
5763 .IP "\fB\-ftracer\fR" 4
5764 .IX Item "-ftracer"
5765 Perform tail duplication to enlarge superblock size.  This transformation
5766 simplifies the control flow of the function allowing other optimizations to do
5767 better job.
5768 .IP "\fB\-funroll\-loops\fR" 4
5769 .IX Item "-funroll-loops"
5770 Unroll loops whose number of iterations can be determined at compile
5771 time or upon entry to the loop.  \fB\-funroll\-loops\fR implies
5772 \&\fB\-frerun\-cse\-after\-loop\fR.  This option makes code larger,
5773 and may or may not make it run faster.
5774 .IP "\fB\-funroll\-all\-loops\fR" 4
5775 .IX Item "-funroll-all-loops"
5776 Unroll all loops, even if their number of iterations is uncertain when
5777 the loop is entered.  This usually makes programs run more slowly.
5778 \&\fB\-funroll\-all\-loops\fR implies the same options as
5779 \&\fB\-funroll\-loops\fR,
5780 .IP "\fB\-fsplit\-ivs\-in\-unroller\fR" 4
5781 .IX Item "-fsplit-ivs-in-unroller"
5782 Enables expressing of values of induction variables in later iterations
5783 of the unrolled loop using the value in the first iteration.  This breaks
5784 long dependency chains, thus improving efficiency of the scheduling passes.
5785 .Sp
5786 Combination of \fB\-fweb\fR and \s-1CSE\s0 is often sufficient to obtain the
5787 same effect.  However in cases the loop body is more complicated than
5788 a single basic block, this is not reliable.  It also does not work at all
5789 on some of the architectures due to restrictions in the \s-1CSE\s0 pass.
5790 .Sp
5791 This optimization is enabled by default.
5792 .IP "\fB\-fvariable\-expansion\-in\-unroller\fR" 4
5793 .IX Item "-fvariable-expansion-in-unroller"
5794 With this option, the compiler will create multiple copies of some
5795 local variables when unrolling a loop which can result in superior code.
5796 .IP "\fB\-fpredictive\-commoning\fR" 4
5797 .IX Item "-fpredictive-commoning"
5798 Perform predictive commoning optimization, i.e., reusing computations
5799 (especially memory loads and stores) performed in previous
5800 iterations of loops.
5801 .Sp
5802 This option is enabled at level \fB\-O3\fR.
5803 .IP "\fB\-fprefetch\-loop\-arrays\fR" 4
5804 .IX Item "-fprefetch-loop-arrays"
5805 If supported by the target machine, generate instructions to prefetch
5806 memory to improve the performance of loops that access large arrays.
5807 .Sp
5808 This option may generate better or worse code; results are highly
5809 dependent on the structure of loops within the source code.
5810 .Sp
5811 Disabled at level \fB\-Os\fR.
5812 .IP "\fB\-fno\-peephole\fR" 4
5813 .IX Item "-fno-peephole"
5814 .PD 0
5815 .IP "\fB\-fno\-peephole2\fR" 4
5816 .IX Item "-fno-peephole2"
5817 .PD
5818 Disable any machine-specific peephole optimizations.  The difference
5819 between \fB\-fno\-peephole\fR and \fB\-fno\-peephole2\fR is in how they
5820 are implemented in the compiler; some targets use one, some use the
5821 other, a few use both.
5822 .Sp
5823 \&\fB\-fpeephole\fR is enabled by default.
5824 \&\fB\-fpeephole2\fR enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5825 .IP "\fB\-fno\-guess\-branch\-probability\fR" 4
5826 .IX Item "-fno-guess-branch-probability"
5827 Do not guess branch probabilities using heuristics.
5828 .Sp
5829 \&\s-1GCC\s0 will use heuristics to guess branch probabilities if they are
5830 not provided by profiling feedback (\fB\-fprofile\-arcs\fR).  These
5831 heuristics are based on the control flow graph.  If some branch probabilities
5832 are specified by \fB_\|_builtin_expect\fR, then the heuristics will be
5833 used to guess branch probabilities for the rest of the control flow graph,
5834 taking the \fB_\|_builtin_expect\fR info into account.  The interactions
5835 between the heuristics and \fB_\|_builtin_expect\fR can be complex, and in
5836 some cases, it may be useful to disable the heuristics so that the effects
5837 of \fB_\|_builtin_expect\fR are easier to understand.
5838 .Sp
5839 The default is \fB\-fguess\-branch\-probability\fR at levels
5840 \&\fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5841 .IP "\fB\-freorder\-blocks\fR" 4
5842 .IX Item "-freorder-blocks"
5843 Reorder basic blocks in the compiled function in order to reduce number of
5844 taken branches and improve code locality.
5845 .Sp
5846 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
5847 .IP "\fB\-freorder\-blocks\-and\-partition\fR" 4
5848 .IX Item "-freorder-blocks-and-partition"
5849 In addition to reordering basic blocks in the compiled function, in order
5850 to reduce number of taken branches, partitions hot and cold basic blocks
5851 into separate sections of the assembly and .o files, to improve
5852 paging and cache locality performance.
5853 .Sp
5854 This optimization is automatically turned off in the presence of
5855 exception handling, for linkonce sections, for functions with a user-defined
5856 section attribute and on any architecture that does not support named
5857 sections.
5858 .IP "\fB\-freorder\-functions\fR" 4
5859 .IX Item "-freorder-functions"
5860 Reorder functions in the object file in order to
5861 improve code locality.  This is implemented by using special
5862 subsections \f(CW\*(C`.text.hot\*(C'\fR for most frequently executed functions and
5863 \&\f(CW\*(C`.text.unlikely\*(C'\fR for unlikely executed functions.  Reordering is done by
5864 the linker so object file format must support named sections and linker must
5865 place them in a reasonable way.
5866 .Sp
5867 Also profile feedback must be available in to make this option effective.  See
5868 \&\fB\-fprofile\-arcs\fR for details.
5869 .Sp
5870 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5871 .IP "\fB\-fstrict\-aliasing\fR" 4
5872 .IX Item "-fstrict-aliasing"
5873 Allow the compiler to assume the strictest aliasing rules applicable to
5874 the language being compiled.  For C (and \*(C+), this activates
5875 optimizations based on the type of expressions.  In particular, an
5876 object of one type is assumed never to reside at the same address as an
5877 object of a different type, unless the types are almost the same.  For
5878 example, an \f(CW\*(C`unsigned int\*(C'\fR can alias an \f(CW\*(C`int\*(C'\fR, but not a
5879 \&\f(CW\*(C`void*\*(C'\fR or a \f(CW\*(C`double\*(C'\fR.  A character type may alias any other
5880 type.
5881 .Sp
5882 Pay special attention to code like this:
5883 .Sp
5884 .Vb 4
5885 \&        union a_union {
5886 \&          int i;
5887 \&          double d;
5888 \&        };
5889 \&        
5890 \&        int f() {
5891 \&          union a_union t;
5892 \&          t.d = 3.0;
5893 \&          return t.i;
5894 \&        }
5895 .Ve
5896 .Sp
5897 The practice of reading from a different union member than the one most
5898 recently written to (called \*(L"type-punning\*(R") is common.  Even with
5899 \&\fB\-fstrict\-aliasing\fR, type-punning is allowed, provided the memory
5900 is accessed through the union type.  So, the code above will work as
5901 expected.    However, this code might not:
5902 .Sp
5903 .Vb 7
5904 \&        int f() {
5905 \&          union a_union t;
5906 \&          int* ip;
5907 \&          t.d = 3.0;
5908 \&          ip = &t.i;
5909 \&          return *ip;
5910 \&        }
5911 .Ve
5912 .Sp
5913 Similarly, access by taking the address, casting the resulting pointer
5914 and dereferencing the result has undefined behavior, even if the cast
5915 uses a union type, e.g.:
5916 .Sp
5917 .Vb 4
5918 \&        int f() {
5919 \&          double d = 3.0;
5920 \&          return ((union a_union *) &d)\->i;
5921 \&        }
5922 .Ve
5923 .Sp
5924 The \fB\-fstrict\-aliasing\fR option is enabled at levels
5925 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5926 .IP "\fB\-fstrict\-overflow\fR" 4
5927 .IX Item "-fstrict-overflow"
5928 Allow the compiler to assume strict signed overflow rules, depending
5929 on the language being compiled.  For C (and \*(C+) this means that
5930 overflow when doing arithmetic with signed numbers is undefined, which
5931 means that the compiler may assume that it will not happen.  This
5932 permits various optimizations.  For example, the compiler will assume
5933 that an expression like \f(CW\*(C`i + 10 > i\*(C'\fR will always be true for
5934 signed \f(CW\*(C`i\*(C'\fR.  This assumption is only valid if signed overflow is
5935 undefined, as the expression is false if \f(CW\*(C`i + 10\*(C'\fR overflows when
5936 using twos complement arithmetic.  When this option is in effect any
5937 attempt to determine whether an operation on signed numbers will
5938 overflow must be written carefully to not actually involve overflow.
5939 .Sp
5940 This option also allows the compiler to assume strict pointer
5941 semantics: given a pointer to an object, if adding an offset to that
5942 pointer does not produce a pointer to the same object, the addition is
5943 undefined.  This permits the compiler to conclude that \f(CW\*(C`p + u >
5944 p\*(C'\fR is always true for a pointer \f(CW\*(C`p\*(C'\fR and unsigned integer
5945 \&\f(CW\*(C`u\*(C'\fR.  This assumption is only valid because pointer wraparound is
5946 undefined, as the expression is false if \f(CW\*(C`p + u\*(C'\fR overflows using
5947 twos complement arithmetic.
5948 .Sp
5949 See also the \fB\-fwrapv\fR option.  Using \fB\-fwrapv\fR means
5950 that integer signed overflow is fully defined: it wraps.  When
5951 \&\fB\-fwrapv\fR is used, there is no difference between
5952 \&\fB\-fstrict\-overflow\fR and \fB\-fno\-strict\-overflow\fR for
5953 integers.  With \fB\-fwrapv\fR certain types of overflow are
5954 permitted.  For example, if the compiler gets an overflow when doing
5955 arithmetic on constants, the overflowed value can still be used with
5956 \&\fB\-fwrapv\fR, but not otherwise.
5957 .Sp
5958 The \fB\-fstrict\-overflow\fR option is enabled at levels
5959 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5960 .IP "\fB\-falign\-functions\fR" 4
5961 .IX Item "-falign-functions"
5962 .PD 0
5963 .IP "\fB\-falign\-functions=\fR\fIn\fR" 4
5964 .IX Item "-falign-functions=n"
5965 .PD
5966 Align the start of functions to the next power-of-two greater than
5967 \&\fIn\fR, skipping up to \fIn\fR bytes.  For instance,
5968 \&\fB\-falign\-functions=32\fR aligns functions to the next 32\-byte
5969 boundary, but \fB\-falign\-functions=24\fR would align to the next
5970 32\-byte boundary only if this can be done by skipping 23 bytes or less.
5971 .Sp
5972 \&\fB\-fno\-align\-functions\fR and \fB\-falign\-functions=1\fR are
5973 equivalent and mean that functions will not be aligned.
5974 .Sp
5975 Some assemblers only support this flag when \fIn\fR is a power of two;
5976 in that case, it is rounded up.
5977 .Sp
5978 If \fIn\fR is not specified or is zero, use a machine-dependent default.
5979 .Sp
5980 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
5981 .IP "\fB\-falign\-labels\fR" 4
5982 .IX Item "-falign-labels"
5983 .PD 0
5984 .IP "\fB\-falign\-labels=\fR\fIn\fR" 4
5985 .IX Item "-falign-labels=n"
5986 .PD
5987 Align all branch targets to a power-of-two boundary, skipping up to
5988 \&\fIn\fR bytes like \fB\-falign\-functions\fR.  This option can easily
5989 make code slower, because it must insert dummy operations for when the
5990 branch target is reached in the usual flow of the code.
5991 .Sp
5992 \&\fB\-fno\-align\-labels\fR and \fB\-falign\-labels=1\fR are
5993 equivalent and mean that labels will not be aligned.
5994 .Sp
5995 If \fB\-falign\-loops\fR or \fB\-falign\-jumps\fR are applicable and
5996 are greater than this value, then their values are used instead.
5997 .Sp
5998 If \fIn\fR is not specified or is zero, use a machine-dependent default
5999 which is very likely to be \fB1\fR, meaning no alignment.
6000 .Sp
6001 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
6002 .IP "\fB\-falign\-loops\fR" 4
6003 .IX Item "-falign-loops"
6004 .PD 0
6005 .IP "\fB\-falign\-loops=\fR\fIn\fR" 4
6006 .IX Item "-falign-loops=n"
6007 .PD
6008 Align loops to a power-of-two boundary, skipping up to \fIn\fR bytes
6009 like \fB\-falign\-functions\fR.  The hope is that the loop will be
6010 executed many times, which will make up for any execution of the dummy
6011 operations.
6012 .Sp
6013 \&\fB\-fno\-align\-loops\fR and \fB\-falign\-loops=1\fR are
6014 equivalent and mean that loops will not be aligned.
6015 .Sp
6016 If \fIn\fR is not specified or is zero, use a machine-dependent default.
6017 .Sp
6018 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
6019 .IP "\fB\-falign\-jumps\fR" 4
6020 .IX Item "-falign-jumps"
6021 .PD 0
6022 .IP "\fB\-falign\-jumps=\fR\fIn\fR" 4
6023 .IX Item "-falign-jumps=n"
6024 .PD
6025 Align branch targets to a power-of-two boundary, for branch targets
6026 where the targets can only be reached by jumping, skipping up to \fIn\fR
6027 bytes like \fB\-falign\-functions\fR.  In this case, no dummy operations
6028 need be executed.
6029 .Sp
6030 \&\fB\-fno\-align\-jumps\fR and \fB\-falign\-jumps=1\fR are
6031 equivalent and mean that loops will not be aligned.
6032 .Sp
6033 If \fIn\fR is not specified or is zero, use a machine-dependent default.
6034 .Sp
6035 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
6036 .IP "\fB\-funit\-at\-a\-time\fR" 4
6037 .IX Item "-funit-at-a-time"
6038 This option is left for compatibility reasons. \fB\-funit\-at\-a\-time\fR
6039 has no effect, while \fB\-fno\-unit\-at\-a\-time\fR implies
6040 \&\fB\-fno\-toplevel\-reorder\fR and \fB\-fno\-section\-anchors\fR.
6041 .Sp
6042 Enabled by default.
6043 .IP "\fB\-fno\-toplevel\-reorder\fR" 4
6044 .IX Item "-fno-toplevel-reorder"
6045 Do not reorder top-level functions, variables, and \f(CW\*(C`asm\*(C'\fR
6046 statements.  Output them in the same order that they appear in the
6047 input file.  When this option is used, unreferenced static variables
6048 will not be removed.  This option is intended to support existing code
6049 which relies on a particular ordering.  For new code, it is better to
6050 use attributes.
6051 .Sp
6052 Enabled at level \fB\-O0\fR.  When disabled explicitly, it also imply
6053 \&\fB\-fno\-section\-anchors\fR that is otherwise enabled at \fB\-O0\fR on some
6054 targets.
6055 .IP "\fB\-fweb\fR" 4
6056 .IX Item "-fweb"
6057 Constructs webs as commonly used for register allocation purposes and assign
6058 each web individual pseudo register.  This allows the register allocation pass
6059 to operate on pseudos directly, but also strengthens several other optimization
6060 passes, such as \s-1CSE\s0, loop optimizer and trivial dead code remover.  It can,
6061 however, make debugging impossible, since variables will no longer stay in a
6062 \&\*(L"home register\*(R".
6063 .Sp
6064 Enabled by default with \fB\-funroll\-loops\fR.
6065 .IP "\fB\-fwhole\-program\fR" 4
6066 .IX Item "-fwhole-program"
6067 Assume that the current compilation unit represents whole program being
6068 compiled.  All public functions and variables with the exception of \f(CW\*(C`main\*(C'\fR
6069 and those merged by attribute \f(CW\*(C`externally_visible\*(C'\fR become static functions
6070 and in a affect gets more aggressively optimized by interprocedural optimizers.
6071 While this option is equivalent to proper use of \f(CW\*(C`static\*(C'\fR keyword for
6072 programs consisting of single file, in combination with option
6073 \&\fB\-\-combine\fR this flag can be used to compile most of smaller scale C
6074 programs since the functions and variables become local for the whole combined
6075 compilation unit, not for the single source file itself.
6076 .Sp
6077 This option is not supported for Fortran programs.
6078 .IP "\fB\-fcprop\-registers\fR" 4
6079 .IX Item "-fcprop-registers"
6080 After register allocation and post-register allocation instruction splitting,
6081 we perform a copy-propagation pass to try to reduce scheduling dependencies
6082 and occasionally eliminate the copy.
6083 .Sp
6084 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
6085 .IP "\fB\-fprofile\-correction\fR" 4
6086 .IX Item "-fprofile-correction"
6087 Profiles collected using an instrumented binary for multi-threaded programs may
6088 be inconsistent due to missed counter updates. When this option is specified,
6089 \&\s-1GCC\s0 will use heuristics to correct or smooth out such inconsistencies. By
6090 default, \s-1GCC\s0 will emit an error message when an inconsistent profile is detected.
6091 .IP "\fB\-fprofile\-dir=\fR\fIpath\fR" 4
6092 .IX Item "-fprofile-dir=path"
6093 Set the directory to search the profile data files in to \fIpath\fR.
6094 This option affects only the profile data generated by
6095 \&\fB\-fprofile\-generate\fR, \fB\-ftest\-coverage\fR, \fB\-fprofile\-arcs\fR
6096 and used by \fB\-fprofile\-use\fR and \fB\-fbranch\-probabilities\fR 
6097 and its related options.
6098 By default, \s-1GCC\s0 will use the current directory as \fIpath\fR
6099 thus the profile data file will appear in the same directory as the object file.
6100 .IP "\fB\-fprofile\-generate\fR" 4
6101 .IX Item "-fprofile-generate"
6102 .PD 0
6103 .IP "\fB\-fprofile\-generate=\fR\fIpath\fR" 4
6104 .IX Item "-fprofile-generate=path"
6105 .PD
6106 Enable options usually used for instrumenting application to produce
6107 profile useful for later recompilation with profile feedback based
6108 optimization.  You must use \fB\-fprofile\-generate\fR both when
6109 compiling and when linking your program.
6110 .Sp
6111 The following options are enabled: \f(CW\*(C`\-fprofile\-arcs\*(C'\fR, \f(CW\*(C`\-fprofile\-values\*(C'\fR, \f(CW\*(C`\-fvpt\*(C'\fR.
6112 .Sp
6113 If \fIpath\fR is specified, \s-1GCC\s0 will look at the \fIpath\fR to find
6114 the profile feedback data files. See \fB\-fprofile\-dir\fR.
6115 .IP "\fB\-fprofile\-use\fR" 4
6116 .IX Item "-fprofile-use"
6117 .PD 0
6118 .IP "\fB\-fprofile\-use=\fR\fIpath\fR" 4
6119 .IX Item "-fprofile-use=path"
6120 .PD
6121 Enable profile feedback directed optimizations, and optimizations
6122 generally profitable only with profile feedback available.
6123 .Sp
6124 The following options are enabled: \f(CW\*(C`\-fbranch\-probabilities\*(C'\fR, \f(CW\*(C`\-fvpt\*(C'\fR,
6125 \&\f(CW\*(C`\-funroll\-loops\*(C'\fR, \f(CW\*(C`\-fpeel\-loops\*(C'\fR, \f(CW\*(C`\-ftracer\*(C'\fR
6126 .Sp
6127 By default, \s-1GCC\s0 emits an error message if the feedback profiles do not
6128 match the source code.  This error can be turned into a warning by using
6129 \&\fB\-Wcoverage\-mismatch\fR.  Note this may result in poorly optimized
6130 code.
6131 .Sp
6132 If \fIpath\fR is specified, \s-1GCC\s0 will look at the \fIpath\fR to find
6133 the profile feedback data files. See \fB\-fprofile\-dir\fR.
6134 .PP
6135 The following options control compiler behavior regarding floating
6136 point arithmetic.  These options trade off between speed and
6137 correctness.  All must be specifically enabled.
6138 .IP "\fB\-ffloat\-store\fR" 4
6139 .IX Item "-ffloat-store"
6140 Do not store floating point variables in registers, and inhibit other
6141 options that might change whether a floating point value is taken from a
6142 register or memory.
6143 .Sp
6144 This option prevents undesirable excess precision on machines such as
6145 the 68000 where the floating registers (of the 68881) keep more
6146 precision than a \f(CW\*(C`double\*(C'\fR is supposed to have.  Similarly for the
6147 x86 architecture.  For most programs, the excess precision does only
6148 good, but a few programs rely on the precise definition of \s-1IEEE\s0 floating
6149 point.  Use \fB\-ffloat\-store\fR for such programs, after modifying
6150 them to store all pertinent intermediate computations into variables.
6151 .IP "\fB\-ffast\-math\fR" 4
6152 .IX Item "-ffast-math"
6153 Sets \fB\-fno\-math\-errno\fR, \fB\-funsafe\-math\-optimizations\fR,
6154 \&\fB\-ffinite\-math\-only\fR, \fB\-fno\-rounding\-math\fR,
6155 \&\fB\-fno\-signaling\-nans\fR and \fB\-fcx\-limited\-range\fR.
6156 .Sp
6157 This option causes the preprocessor macro \f(CW\*(C`_\|_FAST_MATH_\|_\*(C'\fR to be defined.
6158 .Sp
6159 This option is not turned on by any \fB\-O\fR option since
6160 it can result in incorrect output for programs which depend on
6161 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
6162 math functions. It may, however, yield faster code for programs
6163 that do not require the guarantees of these specifications.
6164 .IP "\fB\-fno\-math\-errno\fR" 4
6165 .IX Item "-fno-math-errno"
6166 Do not set \s-1ERRNO\s0 after calling math functions that are executed
6167 with a single instruction, e.g., sqrt.  A program that relies on
6168 \&\s-1IEEE\s0 exceptions for math error handling may want to use this flag
6169 for speed while maintaining \s-1IEEE\s0 arithmetic compatibility.
6170 .Sp
6171 This option is not turned on by any \fB\-O\fR option since
6172 it can result in incorrect output for programs which depend on
6173 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
6174 math functions. It may, however, yield faster code for programs
6175 that do not require the guarantees of these specifications.
6176 .Sp
6177 The default is \fB\-fmath\-errno\fR.
6178 .Sp
6179 On Darwin systems, the math library never sets \f(CW\*(C`errno\*(C'\fR.  There is
6180 therefore no reason for the compiler to consider the possibility that
6181 it might, and \fB\-fno\-math\-errno\fR is the default.
6182 .IP "\fB\-funsafe\-math\-optimizations\fR" 4
6183 .IX Item "-funsafe-math-optimizations"
6184 Allow optimizations for floating-point arithmetic that (a) assume
6185 that arguments and results are valid and (b) may violate \s-1IEEE\s0 or
6186 \&\s-1ANSI\s0 standards.  When used at link-time, it may include libraries
6187 or startup files that change the default \s-1FPU\s0 control word or other
6188 similar optimizations.
6189 .Sp
6190 This option is not turned on by any \fB\-O\fR option since
6191 it can result in incorrect output for programs which depend on
6192 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
6193 math functions. It may, however, yield faster code for programs
6194 that do not require the guarantees of these specifications.
6195 Enables \fB\-fno\-signed\-zeros\fR, \fB\-fno\-trapping\-math\fR,
6196 \&\fB\-fassociative\-math\fR and \fB\-freciprocal\-math\fR.
6197 .Sp
6198 The default is \fB\-fno\-unsafe\-math\-optimizations\fR.
6199 .IP "\fB\-fassociative\-math\fR" 4
6200 .IX Item "-fassociative-math"
6201 Allow re-association of operands in series of floating-point operations.
6202 This violates the \s-1ISO\s0 C and \*(C+ language standard by possibly changing
6203 computation result.  \s-1NOTE:\s0 re-ordering may change the sign of zero as
6204 well as ignore NaNs and inhibit or create underflow or overflow (and
6205 thus cannot be used on a code which relies on rounding behavior like
6206 \&\f(CW\*(C`(x + 2**52) \- 2**52)\*(C'\fR.  May also reorder floating-point comparisons
6207 and thus may not be used when ordered comparisons are required.
6208 This option requires that both \fB\-fno\-signed\-zeros\fR and
6209 \&\fB\-fno\-trapping\-math\fR be in effect.  Moreover, it doesn't make
6210 much sense with \fB\-frounding\-math\fR.
6211 .Sp
6212 The default is \fB\-fno\-associative\-math\fR.
6213 .IP "\fB\-freciprocal\-math\fR" 4
6214 .IX Item "-freciprocal-math"
6215 Allow the reciprocal of a value to be used instead of dividing by
6216 the value if this enables optimizations.  For example \f(CW\*(C`x / y\*(C'\fR
6217 can be replaced with \f(CW\*(C`x * (1/y)\*(C'\fR which is useful if \f(CW\*(C`(1/y)\*(C'\fR
6218 is subject to common subexpression elimination.  Note that this loses
6219 precision and increases the number of flops operating on the value.
6220 .Sp
6221 The default is \fB\-fno\-reciprocal\-math\fR.
6222 .IP "\fB\-ffinite\-math\-only\fR" 4
6223 .IX Item "-ffinite-math-only"
6224 Allow optimizations for floating-point arithmetic that assume
6225 that arguments and results are not NaNs or +\-Infs.
6226 .Sp
6227 This option is not turned on by any \fB\-O\fR option since
6228 it can result in incorrect output for programs which depend on
6229 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
6230 math functions. It may, however, yield faster code for programs
6231 that do not require the guarantees of these specifications.
6232 .Sp
6233 The default is \fB\-fno\-finite\-math\-only\fR.
6234 .IP "\fB\-fno\-signed\-zeros\fR" 4
6235 .IX Item "-fno-signed-zeros"
6236 Allow optimizations for floating point arithmetic that ignore the
6237 signedness of zero.  \s-1IEEE\s0 arithmetic specifies the behavior of
6238 distinct +0.0 and \-0.0 values, which then prohibits simplification
6239 of expressions such as x+0.0 or 0.0*x (even with \fB\-ffinite\-math\-only\fR).
6240 This option implies that the sign of a zero result isn't significant.
6241 .Sp
6242 The default is \fB\-fsigned\-zeros\fR.
6243 .IP "\fB\-fno\-trapping\-math\fR" 4
6244 .IX Item "-fno-trapping-math"
6245 Compile code assuming that floating-point operations cannot generate
6246 user-visible traps.  These traps include division by zero, overflow,
6247 underflow, inexact result and invalid operation.  This option requires
6248 that \fB\-fno\-signaling\-nans\fR be in effect.  Setting this option may
6249 allow faster code if one relies on \*(L"non-stop\*(R" \s-1IEEE\s0 arithmetic, for example.
6250 .Sp
6251 This option should never be turned on by any \fB\-O\fR option since
6252 it can result in incorrect output for programs which depend on
6253 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
6254 math functions.
6255 .Sp
6256 The default is \fB\-ftrapping\-math\fR.
6257 .IP "\fB\-frounding\-math\fR" 4
6258 .IX Item "-frounding-math"
6259 Disable transformations and optimizations that assume default floating
6260 point rounding behavior.  This is round-to-zero for all floating point
6261 to integer conversions, and round-to-nearest for all other arithmetic
6262 truncations.  This option should be specified for programs that change
6263 the \s-1FP\s0 rounding mode dynamically, or that may be executed with a
6264 non-default rounding mode.  This option disables constant folding of
6265 floating point expressions at compile-time (which may be affected by
6266 rounding mode) and arithmetic transformations that are unsafe in the
6267 presence of sign-dependent rounding modes.
6268 .Sp
6269 The default is \fB\-fno\-rounding\-math\fR.
6270 .Sp
6271 This option is experimental and does not currently guarantee to
6272 disable all \s-1GCC\s0 optimizations that are affected by rounding mode.
6273 Future versions of \s-1GCC\s0 may provide finer control of this setting
6274 using C99's \f(CW\*(C`FENV_ACCESS\*(C'\fR pragma.  This command line option
6275 will be used to specify the default state for \f(CW\*(C`FENV_ACCESS\*(C'\fR.
6276 .IP "\fB\-frtl\-abstract\-sequences\fR" 4
6277 .IX Item "-frtl-abstract-sequences"
6278 It is a size optimization method. This option is to find identical
6279 sequences of code, which can be turned into pseudo-procedures  and
6280 then  replace  all  occurrences with  calls to  the  newly created
6281 subroutine. It is kind of an opposite of \fB\-finline\-functions\fR.
6282 This optimization runs at \s-1RTL\s0 level.
6283 .IP "\fB\-fsignaling\-nans\fR" 4
6284 .IX Item "-fsignaling-nans"
6285 Compile code assuming that \s-1IEEE\s0 signaling NaNs may generate user-visible
6286 traps during floating-point operations.  Setting this option disables
6287 optimizations that may change the number of exceptions visible with
6288 signaling NaNs.  This option implies \fB\-ftrapping\-math\fR.
6289 .Sp
6290 This option causes the preprocessor macro \f(CW\*(C`_\|_SUPPORT_SNAN_\|_\*(C'\fR to
6291 be defined.
6292 .Sp
6293 The default is \fB\-fno\-signaling\-nans\fR.
6294 .Sp
6295 This option is experimental and does not currently guarantee to
6296 disable all \s-1GCC\s0 optimizations that affect signaling NaN behavior.
6297 .IP "\fB\-fsingle\-precision\-constant\fR" 4
6298 .IX Item "-fsingle-precision-constant"
6299 Treat floating point constant as single precision constant instead of
6300 implicitly converting it to double precision constant.
6301 .IP "\fB\-fcx\-limited\-range\fR" 4
6302 .IX Item "-fcx-limited-range"
6303 When enabled, this option states that a range reduction step is not
6304 needed when performing complex division.  Also, there is no checking
6305 whether the result of a complex multiplication or division is \f(CW\*(C`NaN
6306 + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case.  The
6307 default is \fB\-fno\-cx\-limited\-range\fR, but is enabled by
6308 \&\fB\-ffast\-math\fR.
6309 .Sp
6310 This option controls the default setting of the \s-1ISO\s0 C99
6311 \&\f(CW\*(C`CX_LIMITED_RANGE\*(C'\fR pragma.  Nevertheless, the option applies to
6312 all languages.
6313 .IP "\fB\-fcx\-fortran\-rules\fR" 4
6314 .IX Item "-fcx-fortran-rules"
6315 Complex multiplication and division follow Fortran rules.  Range
6316 reduction is done as part of complex division, but there is no checking
6317 whether the result of a complex multiplication or division is \f(CW\*(C`NaN
6318 + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case.
6319 .Sp
6320 The default is \fB\-fno\-cx\-fortran\-rules\fR.
6321 .PP
6322 The following options control optimizations that may improve
6323 performance, but are not enabled by any \fB\-O\fR options.  This
6324 section includes experimental options that may produce broken code.
6325 .IP "\fB\-fbranch\-probabilities\fR" 4
6326 .IX Item "-fbranch-probabilities"
6327 After running a program compiled with \fB\-fprofile\-arcs\fR, you can compile it a second time using
6328 \&\fB\-fbranch\-probabilities\fR, to improve optimizations based on
6329 the number of times each branch was taken.  When the program
6330 compiled with \fB\-fprofile\-arcs\fR exits it saves arc execution
6331 counts to a file called \fI\fIsourcename\fI.gcda\fR for each source
6332 file.  The information in this data file is very dependent on the
6333 structure of the generated code, so you must use the same source code
6334 and the same optimization options for both compilations.
6335 .Sp
6336 With \fB\-fbranch\-probabilities\fR, \s-1GCC\s0 puts a
6337 \&\fB\s-1REG_BR_PROB\s0\fR note on each \fB\s-1JUMP_INSN\s0\fR and \fB\s-1CALL_INSN\s0\fR.
6338 These can be used to improve optimization.  Currently, they are only
6339 used in one place: in \fIreorg.c\fR, instead of guessing which path a
6340 branch is mostly to take, the \fB\s-1REG_BR_PROB\s0\fR values are used to
6341 exactly determine which path is taken more often.
6342 .IP "\fB\-fprofile\-values\fR" 4
6343 .IX Item "-fprofile-values"
6344 If combined with \fB\-fprofile\-arcs\fR, it adds code so that some
6345 data about values of expressions in the program is gathered.
6346 .Sp
6347 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
6348 from profiling values of expressions and adds \fB\s-1REG_VALUE_PROFILE\s0\fR
6349 notes to instructions for their later usage in optimizations.
6350 .Sp
6351 Enabled with \fB\-fprofile\-generate\fR and \fB\-fprofile\-use\fR.
6352 .IP "\fB\-fvpt\fR" 4
6353 .IX Item "-fvpt"
6354 If combined with \fB\-fprofile\-arcs\fR, it instructs the compiler to add
6355 a code to gather information about values of expressions.
6356 .Sp
6357 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
6358 and actually performs the optimizations based on them.
6359 Currently the optimizations include specialization of division operation
6360 using the knowledge about the value of the denominator.
6361 .IP "\fB\-frename\-registers\fR" 4
6362 .IX Item "-frename-registers"
6363 Attempt to avoid false dependencies in scheduled code by making use
6364 of registers left over after register allocation.  This optimization
6365 will most benefit processors with lots of registers.  Depending on the
6366 debug information format adopted by the target, however, it can
6367 make debugging impossible, since variables will no longer stay in
6368 a \*(L"home register\*(R".
6369 .Sp
6370 Enabled by default with \fB\-funroll\-loops\fR.
6371 .IP "\fB\-ftracer\fR" 4
6372 .IX Item "-ftracer"
6373 Perform tail duplication to enlarge superblock size.  This transformation
6374 simplifies the control flow of the function allowing other optimizations to do
6375 better job.
6376 .Sp
6377 Enabled with \fB\-fprofile\-use\fR.
6378 .IP "\fB\-funroll\-loops\fR" 4
6379 .IX Item "-funroll-loops"
6380 Unroll loops whose number of iterations can be determined at compile time or
6381 upon entry to the loop.  \fB\-funroll\-loops\fR implies
6382 \&\fB\-frerun\-cse\-after\-loop\fR, \fB\-fweb\fR and \fB\-frename\-registers\fR.
6383 It also turns on complete loop peeling (i.e. complete removal of loops with
6384 small constant number of iterations).  This option makes code larger, and may
6385 or may not make it run faster.
6386 .Sp
6387 Enabled with \fB\-fprofile\-use\fR.
6388 .IP "\fB\-funroll\-all\-loops\fR" 4
6389 .IX Item "-funroll-all-loops"
6390 Unroll all loops, even if their number of iterations is uncertain when
6391 the loop is entered.  This usually makes programs run more slowly.
6392 \&\fB\-funroll\-all\-loops\fR implies the same options as
6393 \&\fB\-funroll\-loops\fR.
6394 .IP "\fB\-fpeel\-loops\fR" 4
6395 .IX Item "-fpeel-loops"
6396 Peels the loops for that there is enough information that they do not
6397 roll much (from profile feedback).  It also turns on complete loop peeling
6398 (i.e. complete removal of loops with small constant number of iterations).
6399 .Sp
6400 Enabled with \fB\-fprofile\-use\fR.
6401 .IP "\fB\-fmove\-loop\-invariants\fR" 4
6402 .IX Item "-fmove-loop-invariants"
6403 Enables the loop invariant motion pass in the \s-1RTL\s0 loop optimizer.  Enabled
6404 at level \fB\-O1\fR
6405 .IP "\fB\-funswitch\-loops\fR" 4
6406 .IX Item "-funswitch-loops"
6407 Move branches with loop invariant conditions out of the loop, with duplicates
6408 of the loop on both branches (modified according to result of the condition).
6409 .IP "\fB\-ffunction\-sections\fR" 4
6410 .IX Item "-ffunction-sections"
6411 .PD 0
6412 .IP "\fB\-fdata\-sections\fR" 4
6413 .IX Item "-fdata-sections"
6414 .PD
6415 Place each function or data item into its own section in the output
6416 file if the target supports arbitrary sections.  The name of the
6417 function or the name of the data item determines the section's name
6418 in the output file.
6419 .Sp
6420 Use these options on systems where the linker can perform optimizations
6421 to improve locality of reference in the instruction space.  Most systems
6422 using the \s-1ELF\s0 object format and \s-1SPARC\s0 processors running Solaris 2 have
6423 linkers with such optimizations.  \s-1AIX\s0 may have these optimizations in
6424 the future.
6425 .Sp
6426 Only use these options when there are significant benefits from doing
6427 so.  When you specify these options, the assembler and linker will
6428 create larger object and executable files and will also be slower.
6429 You will not be able to use \f(CW\*(C`gprof\*(C'\fR on all systems if you
6430 specify this option and you may have problems with debugging if
6431 you specify both this option and \fB\-g\fR.
6432 .IP "\fB\-fbranch\-target\-load\-optimize\fR" 4
6433 .IX Item "-fbranch-target-load-optimize"
6434 Perform branch target register load optimization before prologue / epilogue
6435 threading.
6436 The use of target registers can typically be exposed only during reload,
6437 thus hoisting loads out of loops and doing inter-block scheduling needs
6438 a separate optimization pass.
6439 .IP "\fB\-fbranch\-target\-load\-optimize2\fR" 4
6440 .IX Item "-fbranch-target-load-optimize2"
6441 Perform branch target register load optimization after prologue / epilogue
6442 threading.
6443 .IP "\fB\-fbtr\-bb\-exclusive\fR" 4
6444 .IX Item "-fbtr-bb-exclusive"
6445 When performing branch target register load optimization, don't reuse
6446 branch target registers in within any basic block.
6447 .IP "\fB\-fstack\-protector\fR" 4
6448 .IX Item "-fstack-protector"
6449 Emit extra code to check for buffer overflows, such as stack smashing
6450 attacks.  This is done by adding a guard variable to functions with
6451 vulnerable objects.  This includes functions that call alloca, and
6452 functions with buffers larger than 8 bytes.  The guards are initialized
6453 when a function is entered and then checked when the function exits.
6454 If a guard check fails, an error message is printed and the program exits.
6455 .IP "\fB\-fstack\-protector\-all\fR" 4
6456 .IX Item "-fstack-protector-all"
6457 Like \fB\-fstack\-protector\fR except that all functions are protected.
6458 .IP "\fB\-fsection\-anchors\fR" 4
6459 .IX Item "-fsection-anchors"
6460 Try to reduce the number of symbolic address calculations by using
6461 shared \*(L"anchor\*(R" symbols to address nearby objects.  This transformation
6462 can help to reduce the number of \s-1GOT\s0 entries and \s-1GOT\s0 accesses on some
6463 targets.
6464 .Sp
6465 For example, the implementation of the following function \f(CW\*(C`foo\*(C'\fR:
6466 .Sp
6467 .Vb 2
6468 \&        static int a, b, c;
6469 \&        int foo (void) { return a + b + c; }
6470 .Ve
6471 .Sp
6472 would usually calculate the addresses of all three variables, but if you
6473 compile it with \fB\-fsection\-anchors\fR, it will access the variables
6474 from a common anchor point instead.  The effect is similar to the
6475 following pseudocode (which isn't valid C):
6476 .Sp
6477 .Vb 5
6478 \&        int foo (void)
6479 \&        {
6480 \&          register int *xr = &x;
6481 \&          return xr[&a \- &x] + xr[&b \- &x] + xr[&c \- &x];
6482 \&        }
6483 .Ve
6484 .Sp
6485 Not all targets support this option.
6486 .IP "\fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR" 4
6487 .IX Item "--param name=value"
6488 In some places, \s-1GCC\s0 uses various constants to control the amount of
6489 optimization that is done.  For example, \s-1GCC\s0 will not inline functions
6490 that contain more that a certain number of instructions.  You can
6491 control some of these constants on the command-line using the
6492 \&\fB\-\-param\fR option.
6493 .Sp
6494 The names of specific parameters, and the meaning of the values, are
6495 tied to the internals of the compiler, and are subject to change
6496 without notice in future releases.
6497 .Sp
6498 In each case, the \fIvalue\fR is an integer.  The allowable choices for
6499 \&\fIname\fR are given in the following table:
6500 .RS 4
6501 .IP "\fBsra-max-structure-size\fR" 4
6502 .IX Item "sra-max-structure-size"
6503 The maximum structure size, in bytes, at which the scalar replacement
6504 of aggregates (\s-1SRA\s0) optimization will perform block copies.  The
6505 default value, 0, implies that \s-1GCC\s0 will select the most appropriate
6506 size itself.
6507 .IP "\fBsra-field-structure-ratio\fR" 4
6508 .IX Item "sra-field-structure-ratio"
6509 The threshold ratio (as a percentage) between instantiated fields and
6510 the complete structure size.  We say that if the ratio of the number
6511 of bytes in instantiated fields to the number of bytes in the complete
6512 structure exceeds this parameter, then block copies are not used.  The
6513 default is 75.
6514 .IP "\fBstruct-reorg-cold-struct-ratio\fR" 4
6515 .IX Item "struct-reorg-cold-struct-ratio"
6516 The threshold ratio (as a percentage) between a structure frequency
6517 and the frequency of the hottest structure in the program.  This parameter
6518 is used by struct-reorg optimization enabled by \fB\-fipa\-struct\-reorg\fR.
6519 We say that if the ratio of a structure frequency, calculated by profiling, 
6520 to the hottest structure frequency in the program is less than this 
6521 parameter, then structure reorganization is not applied to this structure.
6522 The default is 10.
6523 .IP "\fBpredictable-branch-cost-outcome\fR" 4
6524 .IX Item "predictable-branch-cost-outcome"
6525 When branch is predicted to be taken with probability lower than this threshold
6526 (in percent), then it is considered well predictable. The default is 10.
6527 .IP "\fBmax-crossjump-edges\fR" 4
6528 .IX Item "max-crossjump-edges"
6529 The maximum number of incoming edges to consider for crossjumping.
6530 The algorithm used by \fB\-fcrossjumping\fR is O(N^2) in
6531 the number of edges incoming to each block.  Increasing values mean
6532 more aggressive optimization, making the compile time increase with
6533 probably small improvement in executable size.
6534 .IP "\fBmin-crossjump-insns\fR" 4
6535 .IX Item "min-crossjump-insns"
6536 The minimum number of instructions which must be matched at the end
6537 of two blocks before crossjumping will be performed on them.  This
6538 value is ignored in the case where all instructions in the block being
6539 crossjumped from are matched.  The default value is 5.
6540 .IP "\fBmax-grow-copy-bb-insns\fR" 4
6541 .IX Item "max-grow-copy-bb-insns"
6542 The maximum code size expansion factor when copying basic blocks
6543 instead of jumping.  The expansion is relative to a jump instruction.
6544 The default value is 8.
6545 .IP "\fBmax-goto-duplication-insns\fR" 4
6546 .IX Item "max-goto-duplication-insns"
6547 The maximum number of instructions to duplicate to a block that jumps
6548 to a computed goto.  To avoid O(N^2) behavior in a number of
6549 passes, \s-1GCC\s0 factors computed gotos early in the compilation process,
6550 and unfactors them as late as possible.  Only computed jumps at the
6551 end of a basic blocks with no more than max-goto-duplication-insns are
6552 unfactored.  The default value is 8.
6553 .IP "\fBmax-delay-slot-insn-search\fR" 4
6554 .IX Item "max-delay-slot-insn-search"
6555 The maximum number of instructions to consider when looking for an
6556 instruction to fill a delay slot.  If more than this arbitrary number of
6557 instructions is searched, the time savings from filling the delay slot
6558 will be minimal so stop searching.  Increasing values mean more
6559 aggressive optimization, making the compile time increase with probably
6560 small improvement in executable run time.
6561 .IP "\fBmax-delay-slot-live-search\fR" 4
6562 .IX Item "max-delay-slot-live-search"
6563 When trying to fill delay slots, the maximum number of instructions to
6564 consider when searching for a block with valid live register
6565 information.  Increasing this arbitrarily chosen value means more
6566 aggressive optimization, increasing the compile time.  This parameter
6567 should be removed when the delay slot code is rewritten to maintain the
6568 control-flow graph.
6569 .IP "\fBmax-gcse-memory\fR" 4
6570 .IX Item "max-gcse-memory"
6571 The approximate maximum amount of memory that will be allocated in
6572 order to perform the global common subexpression elimination
6573 optimization.  If more memory than specified is required, the
6574 optimization will not be done.
6575 .IP "\fBmax-gcse-passes\fR" 4
6576 .IX Item "max-gcse-passes"
6577 The maximum number of passes of \s-1GCSE\s0 to run.  The default is 1.
6578 .IP "\fBmax-pending-list-length\fR" 4
6579 .IX Item "max-pending-list-length"
6580 The maximum number of pending dependencies scheduling will allow
6581 before flushing the current state and starting over.  Large functions
6582 with few branches or calls can create excessively large lists which
6583 needlessly consume memory and resources.
6584 .IP "\fBmax-inline-insns-single\fR" 4
6585 .IX Item "max-inline-insns-single"
6586 Several parameters control the tree inliner used in gcc.
6587 This number sets the maximum number of instructions (counted in \s-1GCC\s0's
6588 internal representation) in a single function that the tree inliner
6589 will consider for inlining.  This only affects functions declared
6590 inline and methods implemented in a class declaration (\*(C+).
6591 The default value is 450.
6592 .IP "\fBmax-inline-insns-auto\fR" 4
6593 .IX Item "max-inline-insns-auto"
6594 When you use \fB\-finline\-functions\fR (included in \fB\-O3\fR),
6595 a lot of functions that would otherwise not be considered for inlining
6596 by the compiler will be investigated.  To those functions, a different
6597 (more restrictive) limit compared to functions declared inline can
6598 be applied.
6599 The default value is 90.
6600 .IP "\fBlarge-function-insns\fR" 4
6601 .IX Item "large-function-insns"
6602 The limit specifying really large functions.  For functions larger than this
6603 limit after inlining, inlining is constrained by
6604 \&\fB\-\-param large-function-growth\fR.  This parameter is useful primarily
6605 to avoid extreme compilation time caused by non-linear algorithms used by the
6606 backend.
6607 The default value is 2700.
6608 .IP "\fBlarge-function-growth\fR" 4
6609 .IX Item "large-function-growth"
6610 Specifies maximal growth of large function caused by inlining in percents.
6611 The default value is 100 which limits large function growth to 2.0 times
6612 the original size.
6613 .IP "\fBlarge-unit-insns\fR" 4
6614 .IX Item "large-unit-insns"
6615 The limit specifying large translation unit.  Growth caused by inlining of
6616 units larger than this limit is limited by \fB\-\-param inline-unit-growth\fR.
6617 For small units this might be too tight (consider unit consisting of function A
6618 that is inline and B that just calls A three time.  If B is small relative to
6619 A, the growth of unit is 300\e% and yet such inlining is very sane.  For very
6620 large units consisting of small inlineable functions however the overall unit
6621 growth limit is needed to avoid exponential explosion of code size.  Thus for
6622 smaller units, the size is increased to \fB\-\-param large-unit-insns\fR
6623 before applying \fB\-\-param inline-unit-growth\fR.  The default is 10000
6624 .IP "\fBinline-unit-growth\fR" 4
6625 .IX Item "inline-unit-growth"
6626 Specifies maximal overall growth of the compilation unit caused by inlining.
6627 The default value is 30 which limits unit growth to 1.3 times the original
6628 size.
6629 .IP "\fBipcp-unit-growth\fR" 4
6630 .IX Item "ipcp-unit-growth"
6631 Specifies maximal overall growth of the compilation unit caused by
6632 interprocedural constant propagation.  The default value is 10 which limits
6633 unit growth to 1.1 times the original size.
6634 .IP "\fBlarge-stack-frame\fR" 4
6635 .IX Item "large-stack-frame"
6636 The limit specifying large stack frames.  While inlining the algorithm is trying
6637 to not grow past this limit too much.  Default value is 256 bytes.
6638 .IP "\fBlarge-stack-frame-growth\fR" 4
6639 .IX Item "large-stack-frame-growth"
6640 Specifies maximal growth of large stack frames caused by inlining in percents.
6641 The default value is 1000 which limits large stack frame growth to 11 times
6642 the original size.
6643 .IP "\fBmax-inline-insns-recursive\fR" 4
6644 .IX Item "max-inline-insns-recursive"
6645 .PD 0
6646 .IP "\fBmax-inline-insns-recursive-auto\fR" 4
6647 .IX Item "max-inline-insns-recursive-auto"
6648 .PD
6649 Specifies maximum number of instructions out-of-line copy of self recursive inline
6650 function can grow into by performing recursive inlining.
6651 .Sp
6652 For functions declared inline \fB\-\-param max-inline-insns-recursive\fR is
6653 taken into account.  For function not declared inline, recursive inlining
6654 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
6655 enabled and \fB\-\-param max-inline-insns-recursive-auto\fR is used.  The
6656 default value is 450.
6657 .IP "\fBmax-inline-recursive-depth\fR" 4
6658 .IX Item "max-inline-recursive-depth"
6659 .PD 0
6660 .IP "\fBmax-inline-recursive-depth-auto\fR" 4
6661 .IX Item "max-inline-recursive-depth-auto"
6662 .PD
6663 Specifies maximum recursion depth used by the recursive inlining.
6664 .Sp
6665 For functions declared inline \fB\-\-param max-inline-recursive-depth\fR is
6666 taken into account.  For function not declared inline, recursive inlining
6667 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
6668 enabled and \fB\-\-param max-inline-recursive-depth-auto\fR is used.  The
6669 default value is 8.
6670 .IP "\fBmin-inline-recursive-probability\fR" 4
6671 .IX Item "min-inline-recursive-probability"
6672 Recursive inlining is profitable only for function having deep recursion
6673 in average and can hurt for function having little recursion depth by
6674 increasing the prologue size or complexity of function body to other
6675 optimizers.
6676 .Sp
6677 When profile feedback is available (see \fB\-fprofile\-generate\fR) the actual
6678 recursion depth can be guessed from probability that function will recurse via
6679 given call expression.  This parameter limits inlining only to call expression
6680 whose probability exceeds given threshold (in percents).  The default value is
6681 10.
6682 .IP "\fBinline-call-cost\fR" 4
6683 .IX Item "inline-call-cost"
6684 Specify cost of call instruction relative to simple arithmetics operations
6685 (having cost of 1).  Increasing this cost disqualifies inlining of non-leaf
6686 functions and at the same time increases size of leaf function that is believed to
6687 reduce function size by being inlined.  In effect it increases amount of
6688 inlining for code having large abstraction penalty (many functions that just
6689 pass the arguments to other functions) and decrease inlining for code with low
6690 abstraction penalty.  The default value is 12.
6691 .IP "\fBmin-vect-loop-bound\fR" 4
6692 .IX Item "min-vect-loop-bound"
6693 The minimum number of iterations under which a loop will not get vectorized
6694 when \fB\-ftree\-vectorize\fR is used.  The number of iterations after
6695 vectorization needs to be greater than the value specified by this option
6696 to allow vectorization.  The default value is 0.
6697 .IP "\fBmax-unrolled-insns\fR" 4
6698 .IX Item "max-unrolled-insns"
6699 The maximum number of instructions that a loop should have if that loop
6700 is unrolled, and if the loop is unrolled, it determines how many times
6701 the loop code is unrolled.
6702 .IP "\fBmax-average-unrolled-insns\fR" 4
6703 .IX Item "max-average-unrolled-insns"
6704 The maximum number of instructions biased by probabilities of their execution
6705 that a loop should have if that loop is unrolled, and if the loop is unrolled,
6706 it determines how many times the loop code is unrolled.
6707 .IP "\fBmax-unroll-times\fR" 4
6708 .IX Item "max-unroll-times"
6709 The maximum number of unrollings of a single loop.
6710 .IP "\fBmax-peeled-insns\fR" 4
6711 .IX Item "max-peeled-insns"
6712 The maximum number of instructions that a loop should have if that loop
6713 is peeled, and if the loop is peeled, it determines how many times
6714 the loop code is peeled.
6715 .IP "\fBmax-peel-times\fR" 4
6716 .IX Item "max-peel-times"
6717 The maximum number of peelings of a single loop.
6718 .IP "\fBmax-completely-peeled-insns\fR" 4
6719 .IX Item "max-completely-peeled-insns"
6720 The maximum number of insns of a completely peeled loop.
6721 .IP "\fBmax-completely-peel-times\fR" 4
6722 .IX Item "max-completely-peel-times"
6723 The maximum number of iterations of a loop to be suitable for complete peeling.
6724 .IP "\fBmax-completely-peel-loop-nest-depth\fR" 4
6725 .IX Item "max-completely-peel-loop-nest-depth"
6726 The maximum depth of a loop nest suitable for complete peeling.
6727 .IP "\fBmax-unswitch-insns\fR" 4
6728 .IX Item "max-unswitch-insns"
6729 The maximum number of insns of an unswitched loop.
6730 .IP "\fBmax-unswitch-level\fR" 4
6731 .IX Item "max-unswitch-level"
6732 The maximum number of branches unswitched in a single loop.
6733 .IP "\fBlim-expensive\fR" 4
6734 .IX Item "lim-expensive"
6735 The minimum cost of an expensive expression in the loop invariant motion.
6736 .IP "\fBiv-consider-all-candidates-bound\fR" 4
6737 .IX Item "iv-consider-all-candidates-bound"
6738 Bound on number of candidates for induction variables below that
6739 all candidates are considered for each use in induction variable
6740 optimizations.  Only the most relevant candidates are considered
6741 if there are more candidates, to avoid quadratic time complexity.
6742 .IP "\fBiv-max-considered-uses\fR" 4
6743 .IX Item "iv-max-considered-uses"
6744 The induction variable optimizations give up on loops that contain more
6745 induction variable uses.
6746 .IP "\fBiv-always-prune-cand-set-bound\fR" 4
6747 .IX Item "iv-always-prune-cand-set-bound"
6748 If number of candidates in the set is smaller than this value,
6749 we always try to remove unnecessary ivs from the set during its
6750 optimization when a new iv is added to the set.
6751 .IP "\fBscev-max-expr-size\fR" 4
6752 .IX Item "scev-max-expr-size"
6753 Bound on size of expressions used in the scalar evolutions analyzer.
6754 Large expressions slow the analyzer.
6755 .IP "\fBomega-max-vars\fR" 4
6756 .IX Item "omega-max-vars"
6757 The maximum number of variables in an Omega constraint system.
6758 The default value is 128.
6759 .IP "\fBomega-max-geqs\fR" 4
6760 .IX Item "omega-max-geqs"
6761 The maximum number of inequalities in an Omega constraint system.
6762 The default value is 256.
6763 .IP "\fBomega-max-eqs\fR" 4
6764 .IX Item "omega-max-eqs"
6765 The maximum number of equalities in an Omega constraint system.
6766 The default value is 128.
6767 .IP "\fBomega-max-wild-cards\fR" 4
6768 .IX Item "omega-max-wild-cards"
6769 The maximum number of wildcard variables that the Omega solver will
6770 be able to insert.  The default value is 18.
6771 .IP "\fBomega-hash-table-size\fR" 4
6772 .IX Item "omega-hash-table-size"
6773 The size of the hash table in the Omega solver.  The default value is
6774 550.
6775 .IP "\fBomega-max-keys\fR" 4
6776 .IX Item "omega-max-keys"
6777 The maximal number of keys used by the Omega solver.  The default
6778 value is 500.
6779 .IP "\fBomega-eliminate-redundant-constraints\fR" 4
6780 .IX Item "omega-eliminate-redundant-constraints"
6781 When set to 1, use expensive methods to eliminate all redundant
6782 constraints.  The default value is 0.
6783 .IP "\fBvect-max-version-for-alignment-checks\fR" 4
6784 .IX Item "vect-max-version-for-alignment-checks"
6785 The maximum number of runtime checks that can be performed when
6786 doing loop versioning for alignment in the vectorizer.  See option
6787 ftree-vect-loop-version for more information.
6788 .IP "\fBvect-max-version-for-alias-checks\fR" 4
6789 .IX Item "vect-max-version-for-alias-checks"
6790 The maximum number of runtime checks that can be performed when
6791 doing loop versioning for alias in the vectorizer.  See option
6792 ftree-vect-loop-version for more information.
6793 .IP "\fBmax-iterations-to-track\fR" 4
6794 .IX Item "max-iterations-to-track"
6795 The maximum number of iterations of a loop the brute force algorithm
6796 for analysis of # of iterations of the loop tries to evaluate.
6797 .IP "\fBhot-bb-count-fraction\fR" 4
6798 .IX Item "hot-bb-count-fraction"
6799 Select fraction of the maximal count of repetitions of basic block in program
6800 given basic block needs to have to be considered hot.
6801 .IP "\fBhot-bb-frequency-fraction\fR" 4
6802 .IX Item "hot-bb-frequency-fraction"
6803 Select fraction of the maximal frequency of executions of basic block in
6804 function given basic block needs to have to be considered hot
6805 .IP "\fBmax-predicted-iterations\fR" 4
6806 .IX Item "max-predicted-iterations"
6807 The maximum number of loop iterations we predict statically.  This is useful
6808 in cases where function contain single loop with known bound and other loop
6809 with unknown.  We predict the known number of iterations correctly, while
6810 the unknown number of iterations average to roughly 10.  This means that the
6811 loop without bounds would appear artificially cold relative to the other one.
6812 .IP "\fBalign-threshold\fR" 4
6813 .IX Item "align-threshold"
6814 Select fraction of the maximal frequency of executions of basic block in
6815 function given basic block will get aligned.
6816 .IP "\fBalign-loop-iterations\fR" 4
6817 .IX Item "align-loop-iterations"
6818 A loop expected to iterate at lest the selected number of iterations will get
6819 aligned.
6820 .IP "\fBtracer-dynamic-coverage\fR" 4
6821 .IX Item "tracer-dynamic-coverage"
6822 .PD 0
6823 .IP "\fBtracer-dynamic-coverage-feedback\fR" 4
6824 .IX Item "tracer-dynamic-coverage-feedback"
6825 .PD
6826 This value is used to limit superblock formation once the given percentage of
6827 executed instructions is covered.  This limits unnecessary code size
6828 expansion.
6829 .Sp
6830 The \fBtracer-dynamic-coverage-feedback\fR is used only when profile
6831 feedback is available.  The real profiles (as opposed to statically estimated
6832 ones) are much less balanced allowing the threshold to be larger value.
6833 .IP "\fBtracer-max-code-growth\fR" 4
6834 .IX Item "tracer-max-code-growth"
6835 Stop tail duplication once code growth has reached given percentage.  This is
6836 rather hokey argument, as most of the duplicates will be eliminated later in
6837 cross jumping, so it may be set to much higher values than is the desired code
6838 growth.
6839 .IP "\fBtracer-min-branch-ratio\fR" 4
6840 .IX Item "tracer-min-branch-ratio"
6841 Stop reverse growth when the reverse probability of best edge is less than this
6842 threshold (in percent).
6843 .IP "\fBtracer-min-branch-ratio\fR" 4
6844 .IX Item "tracer-min-branch-ratio"
6845 .PD 0
6846 .IP "\fBtracer-min-branch-ratio-feedback\fR" 4
6847 .IX Item "tracer-min-branch-ratio-feedback"
6848 .PD
6849 Stop forward growth if the best edge do have probability lower than this
6850 threshold.
6851 .Sp
6852 Similarly to \fBtracer-dynamic-coverage\fR two values are present, one for
6853 compilation for profile feedback and one for compilation without.  The value
6854 for compilation with profile feedback needs to be more conservative (higher) in
6855 order to make tracer effective.
6856 .IP "\fBmax-cse-path-length\fR" 4
6857 .IX Item "max-cse-path-length"
6858 Maximum number of basic blocks on path that cse considers.  The default is 10.
6859 .IP "\fBmax-cse-insns\fR" 4
6860 .IX Item "max-cse-insns"
6861 The maximum instructions \s-1CSE\s0 process before flushing. The default is 1000.
6862 .IP "\fBmax-aliased-vops\fR" 4
6863 .IX Item "max-aliased-vops"
6864 Maximum number of virtual operands per function allowed to represent
6865 aliases before triggering the alias partitioning heuristic.  Alias
6866 partitioning reduces compile times and memory consumption needed for
6867 aliasing at the expense of precision loss in alias information.  The
6868 default value for this parameter is 100 for \-O1, 500 for \-O2 and 1000
6869 for \-O3.
6870 .Sp
6871 Notice that if a function contains more memory statements than the
6872 value of this parameter, it is not really possible to achieve this
6873 reduction.  In this case, the compiler will use the number of memory
6874 statements as the value for \fBmax-aliased-vops\fR.
6875 .IP "\fBavg-aliased-vops\fR" 4
6876 .IX Item "avg-aliased-vops"
6877 Average number of virtual operands per statement allowed to represent
6878 aliases before triggering the alias partitioning heuristic.  This
6879 works in conjunction with \fBmax-aliased-vops\fR.  If a function
6880 contains more than \fBmax-aliased-vops\fR virtual operators, then
6881 memory symbols will be grouped into memory partitions until either the
6882 total number of virtual operators is below \fBmax-aliased-vops\fR
6883 or the average number of virtual operators per memory statement is
6884 below \fBavg-aliased-vops\fR.  The default value for this parameter
6885 is 1 for \-O1 and \-O2, and 3 for \-O3.
6886 .IP "\fBggc-min-expand\fR" 4
6887 .IX Item "ggc-min-expand"
6888 \&\s-1GCC\s0 uses a garbage collector to manage its own memory allocation.  This
6889 parameter specifies the minimum percentage by which the garbage
6890 collector's heap should be allowed to expand between collections.
6891 Tuning this may improve compilation speed; it has no effect on code
6892 generation.
6893 .Sp
6894 The default is 30% + 70% * (\s-1RAM/1GB\s0) with an upper bound of 100% when
6895 \&\s-1RAM\s0 >= 1GB.  If \f(CW\*(C`getrlimit\*(C'\fR is available, the notion of \*(L"\s-1RAM\s0\*(R" is
6896 the smallest of actual \s-1RAM\s0 and \f(CW\*(C`RLIMIT_DATA\*(C'\fR or \f(CW\*(C`RLIMIT_AS\*(C'\fR.  If
6897 \&\s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a particular platform, the lower
6898 bound of 30% is used.  Setting this parameter and
6899 \&\fBggc-min-heapsize\fR to zero causes a full collection to occur at
6900 every opportunity.  This is extremely slow, but can be useful for
6901 debugging.
6902 .IP "\fBggc-min-heapsize\fR" 4
6903 .IX Item "ggc-min-heapsize"
6904 Minimum size of the garbage collector's heap before it begins bothering
6905 to collect garbage.  The first collection occurs after the heap expands
6906 by \fBggc-min-expand\fR% beyond \fBggc-min-heapsize\fR.  Again,
6907 tuning this may improve compilation speed, and has no effect on code
6908 generation.
6909 .Sp
6910 The default is the smaller of \s-1RAM/8\s0, \s-1RLIMIT_RSS\s0, or a limit which
6911 tries to ensure that \s-1RLIMIT_DATA\s0 or \s-1RLIMIT_AS\s0 are not exceeded, but
6912 with a lower bound of 4096 (four megabytes) and an upper bound of
6913 131072 (128 megabytes).  If \s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a
6914 particular platform, the lower bound is used.  Setting this parameter
6915 very large effectively disables garbage collection.  Setting this
6916 parameter and \fBggc-min-expand\fR to zero causes a full collection
6917 to occur at every opportunity.
6918 .IP "\fBmax-reload-search-insns\fR" 4
6919 .IX Item "max-reload-search-insns"
6920 The maximum number of instruction reload should look backward for equivalent
6921 register.  Increasing values mean more aggressive optimization, making the
6922 compile time increase with probably slightly better performance.  The default
6923 value is 100.
6924 .IP "\fBmax-cselib-memory-locations\fR" 4
6925 .IX Item "max-cselib-memory-locations"
6926 The maximum number of memory locations cselib should take into account.
6927 Increasing values mean more aggressive optimization, making the compile time
6928 increase with probably slightly better performance.  The default value is 500.
6929 .IP "\fBreorder-blocks-duplicate\fR" 4
6930 .IX Item "reorder-blocks-duplicate"
6931 .PD 0
6932 .IP "\fBreorder-blocks-duplicate-feedback\fR" 4
6933 .IX Item "reorder-blocks-duplicate-feedback"
6934 .PD
6935 Used by basic block reordering pass to decide whether to use unconditional
6936 branch or duplicate the code on its destination.  Code is duplicated when its
6937 estimated size is smaller than this value multiplied by the estimated size of
6938 unconditional jump in the hot spots of the program.
6939 .Sp
6940 The \fBreorder-block-duplicate-feedback\fR is used only when profile
6941 feedback is available and may be set to higher values than
6942 \&\fBreorder-block-duplicate\fR since information about the hot spots is more
6943 accurate.
6944 .IP "\fBmax-sched-ready-insns\fR" 4
6945 .IX Item "max-sched-ready-insns"
6946 The maximum number of instructions ready to be issued the scheduler should
6947 consider at any given time during the first scheduling pass.  Increasing
6948 values mean more thorough searches, making the compilation time increase
6949 with probably little benefit.  The default value is 100.
6950 .IP "\fBmax-sched-region-blocks\fR" 4
6951 .IX Item "max-sched-region-blocks"
6952 The maximum number of blocks in a region to be considered for
6953 interblock scheduling.  The default value is 10.
6954 .IP "\fBmax-pipeline-region-blocks\fR" 4
6955 .IX Item "max-pipeline-region-blocks"
6956 The maximum number of blocks in a region to be considered for
6957 pipelining in the selective scheduler.  The default value is 15.
6958 .IP "\fBmax-sched-region-insns\fR" 4
6959 .IX Item "max-sched-region-insns"
6960 The maximum number of insns in a region to be considered for
6961 interblock scheduling.  The default value is 100.
6962 .IP "\fBmax-pipeline-region-insns\fR" 4
6963 .IX Item "max-pipeline-region-insns"
6964 The maximum number of insns in a region to be considered for
6965 pipelining in the selective scheduler.  The default value is 200.
6966 .IP "\fBmin-spec-prob\fR" 4
6967 .IX Item "min-spec-prob"
6968 The minimum probability (in percents) of reaching a source block
6969 for interblock speculative scheduling.  The default value is 40.
6970 .IP "\fBmax-sched-extend-regions-iters\fR" 4
6971 .IX Item "max-sched-extend-regions-iters"
6972 The maximum number of iterations through \s-1CFG\s0 to extend regions.
6973 0 \- disable region extension,
6974 N \- do at most N iterations.
6975 The default value is 0.
6976 .IP "\fBmax-sched-insn-conflict-delay\fR" 4
6977 .IX Item "max-sched-insn-conflict-delay"
6978 The maximum conflict delay for an insn to be considered for speculative motion.
6979 The default value is 3.
6980 .IP "\fBsched-spec-prob-cutoff\fR" 4
6981 .IX Item "sched-spec-prob-cutoff"
6982 The minimal probability of speculation success (in percents), so that
6983 speculative insn will be scheduled.
6984 The default value is 40.
6985 .IP "\fBsched-mem-true-dep-cost\fR" 4
6986 .IX Item "sched-mem-true-dep-cost"
6987 Minimal distance (in \s-1CPU\s0 cycles) between store and load targeting same
6988 memory locations.  The default value is 1.
6989 .IP "\fBselsched-max-lookahead\fR" 4
6990 .IX Item "selsched-max-lookahead"
6991 The maximum size of the lookahead window of selective scheduling.  It is a
6992 depth of search for available instructions.
6993 The default value is 50.
6994 .IP "\fBselsched-max-sched-times\fR" 4
6995 .IX Item "selsched-max-sched-times"
6996 The maximum number of times that an instruction will be scheduled during 
6997 selective scheduling.  This is the limit on the number of iterations 
6998 through which the instruction may be pipelined.  The default value is 2.
6999 .IP "\fBselsched-max-insns-to-rename\fR" 4
7000 .IX Item "selsched-max-insns-to-rename"
7001 The maximum number of best instructions in the ready list that are considered
7002 for renaming in the selective scheduler.  The default value is 2.
7003 .IP "\fBmax-last-value-rtl\fR" 4
7004 .IX Item "max-last-value-rtl"
7005 The maximum size measured as number of RTLs that can be recorded in an expression
7006 in combiner for a pseudo register as last known value of that register.  The default
7007 is 10000.
7008 .IP "\fBinteger-share-limit\fR" 4
7009 .IX Item "integer-share-limit"
7010 Small integer constants can use a shared data structure, reducing the
7011 compiler's memory usage and increasing its speed.  This sets the maximum
7012 value of a shared integer constant.  The default value is 256.
7013 .IP "\fBmin-virtual-mappings\fR" 4
7014 .IX Item "min-virtual-mappings"
7015 Specifies the minimum number of virtual mappings in the incremental
7016 \&\s-1SSA\s0 updater that should be registered to trigger the virtual mappings
7017 heuristic defined by virtual-mappings-ratio.  The default value is
7018 100.
7019 .IP "\fBvirtual-mappings-ratio\fR" 4
7020 .IX Item "virtual-mappings-ratio"
7021 If the number of virtual mappings is virtual-mappings-ratio bigger
7022 than the number of virtual symbols to be updated, then the incremental
7023 \&\s-1SSA\s0 updater switches to a full update for those symbols.  The default
7024 ratio is 3.
7025 .IP "\fBssp-buffer-size\fR" 4
7026 .IX Item "ssp-buffer-size"
7027 The minimum size of buffers (i.e. arrays) that will receive stack smashing
7028 protection when \fB\-fstack\-protection\fR is used.
7029 .IP "\fBmax-jump-thread-duplication-stmts\fR" 4
7030 .IX Item "max-jump-thread-duplication-stmts"
7031 Maximum number of statements allowed in a block that needs to be
7032 duplicated when threading jumps.
7033 .IP "\fBmax-fields-for-field-sensitive\fR" 4
7034 .IX Item "max-fields-for-field-sensitive"
7035 Maximum number of fields in a structure we will treat in
7036 a field sensitive manner during pointer analysis.  The default is zero
7037 for \-O0, and \-O1 and 100 for \-Os, \-O2, and \-O3.
7038 .IP "\fBprefetch-latency\fR" 4
7039 .IX Item "prefetch-latency"
7040 Estimate on average number of instructions that are executed before
7041 prefetch finishes.  The distance we prefetch ahead is proportional
7042 to this constant.  Increasing this number may also lead to less
7043 streams being prefetched (see \fBsimultaneous-prefetches\fR).
7044 .IP "\fBsimultaneous-prefetches\fR" 4
7045 .IX Item "simultaneous-prefetches"
7046 Maximum number of prefetches that can run at the same time.
7047 .IP "\fBl1\-cache\-line\-size\fR" 4
7048 .IX Item "l1-cache-line-size"
7049 The size of cache line in L1 cache, in bytes.
7050 .IP "\fBl1\-cache\-size\fR" 4
7051 .IX Item "l1-cache-size"
7052 The size of L1 cache, in kilobytes.
7053 .IP "\fBl2\-cache\-size\fR" 4
7054 .IX Item "l2-cache-size"
7055 The size of L2 cache, in kilobytes.
7056 .IP "\fBuse-canonical-types\fR" 4
7057 .IX Item "use-canonical-types"
7058 Whether the compiler should use the \*(L"canonical\*(R" type system.  By
7059 default, this should always be 1, which uses a more efficient internal
7060 mechanism for comparing types in \*(C+ and Objective\-\*(C+.  However, if
7061 bugs in the canonical type system are causing compilation failures,
7062 set this value to 0 to disable canonical types.
7063 .IP "\fBswitch-conversion-max-branch-ratio\fR" 4
7064 .IX Item "switch-conversion-max-branch-ratio"
7065 Switch initialization conversion will refuse to create arrays that are
7066 bigger than \fBswitch-conversion-max-branch-ratio\fR times the number of
7067 branches in the switch.
7068 .IP "\fBmax-partial-antic-length\fR" 4
7069 .IX Item "max-partial-antic-length"
7070 Maximum length of the partial antic set computed during the tree
7071 partial redundancy elimination optimization (\fB\-ftree\-pre\fR) when
7072 optimizing at \fB\-O3\fR and above.  For some sorts of source code
7073 the enhanced partial redundancy elimination optimization can run away,
7074 consuming all of the memory available on the host machine.  This
7075 parameter sets a limit on the length of the sets that are computed,
7076 which prevents the runaway behavior.  Setting a value of 0 for
7077 this parameter will allow an unlimited set length.
7078 .IP "\fBsccvn-max-scc-size\fR" 4
7079 .IX Item "sccvn-max-scc-size"
7080 Maximum size of a strongly connected component (\s-1SCC\s0) during \s-1SCCVN\s0
7081 processing.  If this limit is hit, \s-1SCCVN\s0 processing for the whole
7082 function will not be done and optimizations depending on it will
7083 be disabled.  The default maximum \s-1SCC\s0 size is 10000.
7084 .IP "\fBira-max-loops-num\fR" 4
7085 .IX Item "ira-max-loops-num"
7086 \&\s-1IRA\s0 uses a regional register allocation by default.  If a function
7087 contains loops more than number given by the parameter, only at most
7088 given number of the most frequently executed loops will form regions
7089 for the regional register allocation.  The default value of the
7090 parameter is 100.
7091 .IP "\fBira-max-conflict-table-size\fR" 4
7092 .IX Item "ira-max-conflict-table-size"
7093 Although \s-1IRA\s0 uses a sophisticated algorithm of compression conflict
7094 table, the table can be still big for huge functions.  If the conflict
7095 table for a function could be more than size in \s-1MB\s0 given by the
7096 parameter, the conflict table is not built and faster, simpler, and
7097 lower quality register allocation algorithm will be used.  The
7098 algorithm do not use pseudo-register conflicts.  The default value of
7099 the parameter is 2000.
7100 .IP "\fBloop-invariant-max-bbs-in-loop\fR" 4
7101 .IX Item "loop-invariant-max-bbs-in-loop"
7102 Loop invariant motion can be very expensive, both in compile time and
7103 in amount of needed compile time memory, with very large loops.  Loops
7104 with more basic blocks than this parameter won't have loop invariant
7105 motion optimization performed on them.  The default value of the
7106 parameter is 1000 for \-O1 and 10000 for \-O2 and above.
7107 .RE
7108 .RS 4
7109 .RE
7110 .SS "Options Controlling the Preprocessor"
7111 .IX Subsection "Options Controlling the Preprocessor"
7112 These options control the C preprocessor, which is run on each C source
7113 file before actual compilation.
7114 .PP
7115 If you use the \fB\-E\fR option, nothing is done except preprocessing.
7116 Some of these options make sense only together with \fB\-E\fR because
7117 they cause the preprocessor output to be unsuitable for actual
7118 compilation.
7119 .IP "\fB\-Wp,\fR\fIoption\fR" 4
7120 .IX Item "-Wp,option"
7121 You can use \fB\-Wp,\fR\fIoption\fR to bypass the compiler driver
7122 and pass \fIoption\fR directly through to the preprocessor.  If
7123 \&\fIoption\fR contains commas, it is split into multiple options at the
7124 commas.  However, many options are modified, translated or interpreted
7125 by the compiler driver before being passed to the preprocessor, and
7126 \&\fB\-Wp\fR forcibly bypasses this phase.  The preprocessor's direct
7127 interface is undocumented and subject to change, so whenever possible
7128 you should avoid using \fB\-Wp\fR and let the driver handle the
7129 options instead.
7130 .IP "\fB\-Xpreprocessor\fR \fIoption\fR" 4
7131 .IX Item "-Xpreprocessor option"
7132 Pass \fIoption\fR as an option to the preprocessor.  You can use this to
7133 supply system-specific preprocessor options which \s-1GCC\s0 does not know how to
7134 recognize.
7135 .Sp
7136 If you want to pass an option that takes an argument, you must use
7137 \&\fB\-Xpreprocessor\fR twice, once for the option and once for the argument.
7138 .IP "\fB\-D\fR \fIname\fR" 4
7139 .IX Item "-D name"
7140 Predefine \fIname\fR as a macro, with definition \f(CW1\fR.
7141 .IP "\fB\-D\fR \fIname\fR\fB=\fR\fIdefinition\fR" 4
7142 .IX Item "-D name=definition"
7143 The contents of \fIdefinition\fR are tokenized and processed as if
7144 they appeared during translation phase three in a \fB#define\fR
7145 directive.  In particular, the definition will be truncated by
7146 embedded newline characters.
7147 .Sp
7148 If you are invoking the preprocessor from a shell or shell-like
7149 program you may need to use the shell's quoting syntax to protect
7150 characters such as spaces that have a meaning in the shell syntax.
7151 .Sp
7152 If you wish to define a function-like macro on the command line, write
7153 its argument list with surrounding parentheses before the equals sign
7154 (if any).  Parentheses are meaningful to most shells, so you will need
7155 to quote the option.  With \fBsh\fR and \fBcsh\fR,
7156 \&\fB\-D'\fR\fIname\fR\fB(\fR\fIargs...\fR\fB)=\fR\fIdefinition\fR\fB'\fR works.
7157 .Sp
7158 \&\fB\-D\fR and \fB\-U\fR options are processed in the order they
7159 are given on the command line.  All \fB\-imacros\fR \fIfile\fR and
7160 \&\fB\-include\fR \fIfile\fR options are processed after all
7161 \&\fB\-D\fR and \fB\-U\fR options.
7162 .IP "\fB\-U\fR \fIname\fR" 4
7163 .IX Item "-U name"
7164 Cancel any previous definition of \fIname\fR, either built in or
7165 provided with a \fB\-D\fR option.
7166 .IP "\fB\-undef\fR" 4
7167 .IX Item "-undef"
7168 Do not predefine any system-specific or GCC-specific macros.  The
7169 standard predefined macros remain defined.
7170 .IP "\fB\-I\fR \fIdir\fR" 4
7171 .IX Item "-I dir"
7172 Add the directory \fIdir\fR to the list of directories to be searched
7173 for header files.
7174 Directories named by \fB\-I\fR are searched before the standard
7175 system include directories.  If the directory \fIdir\fR is a standard
7176 system include directory, the option is ignored to ensure that the
7177 default search order for system directories and the special treatment
7178 of system headers are not defeated
7179 \&.
7180 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
7181 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
7182 .IP "\fB\-o\fR \fIfile\fR" 4
7183 .IX Item "-o file"
7184 Write output to \fIfile\fR.  This is the same as specifying \fIfile\fR
7185 as the second non-option argument to \fBcpp\fR.  \fBgcc\fR has a
7186 different interpretation of a second non-option argument, so you must
7187 use \fB\-o\fR to specify the output file.
7188 .IP "\fB\-Wall\fR" 4
7189 .IX Item "-Wall"
7190 Turns on all optional warnings which are desirable for normal code.
7191 At present this is \fB\-Wcomment\fR, \fB\-Wtrigraphs\fR,
7192 \&\fB\-Wmultichar\fR and a warning about integer promotion causing a
7193 change of sign in \f(CW\*(C`#if\*(C'\fR expressions.  Note that many of the
7194 preprocessor's warnings are on by default and have no options to
7195 control them.
7196 .IP "\fB\-Wcomment\fR" 4
7197 .IX Item "-Wcomment"
7198 .PD 0
7199 .IP "\fB\-Wcomments\fR" 4
7200 .IX Item "-Wcomments"
7201 .PD
7202 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
7203 comment, or whenever a backslash-newline appears in a \fB//\fR comment.
7204 (Both forms have the same effect.)
7205 .IP "\fB\-Wtrigraphs\fR" 4
7206 .IX Item "-Wtrigraphs"
7207 Most trigraphs in comments cannot affect the meaning of the program.
7208 However, a trigraph that would form an escaped newline (\fB??/\fR at
7209 the end of a line) can, by changing where the comment begins or ends.
7210 Therefore, only trigraphs that would form escaped newlines produce
7211 warnings inside a comment.
7212 .Sp
7213 This option is implied by \fB\-Wall\fR.  If \fB\-Wall\fR is not
7214 given, this option is still enabled unless trigraphs are enabled.  To
7215 get trigraph conversion without warnings, but get the other
7216 \&\fB\-Wall\fR warnings, use \fB\-trigraphs \-Wall \-Wno\-trigraphs\fR.
7217 .IP "\fB\-Wtraditional\fR" 4
7218 .IX Item "-Wtraditional"
7219 Warn about certain constructs that behave differently in traditional and
7220 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
7221 equivalent, and problematic constructs which should be avoided.
7222 .IP "\fB\-Wundef\fR" 4
7223 .IX Item "-Wundef"
7224 Warn whenever an identifier which is not a macro is encountered in an
7225 \&\fB#if\fR directive, outside of \fBdefined\fR.  Such identifiers are
7226 replaced with zero.
7227 .IP "\fB\-Wunused\-macros\fR" 4
7228 .IX Item "-Wunused-macros"
7229 Warn about macros defined in the main file that are unused.  A macro
7230 is \fIused\fR if it is expanded or tested for existence at least once.
7231 The preprocessor will also warn if the macro has not been used at the
7232 time it is redefined or undefined.
7233 .Sp
7234 Built-in macros, macros defined on the command line, and macros
7235 defined in include files are not warned about.
7236 .Sp
7237 \&\fINote:\fR If a macro is actually used, but only used in skipped
7238 conditional blocks, then \s-1CPP\s0 will report it as unused.  To avoid the
7239 warning in such a case, you might improve the scope of the macro's
7240 definition by, for example, moving it into the first skipped block.
7241 Alternatively, you could provide a dummy use with something like:
7242 .Sp
7243 .Vb 2
7244 \&        #if defined the_macro_causing_the_warning
7245 \&        #endif
7246 .Ve
7247 .IP "\fB\-Wendif\-labels\fR" 4
7248 .IX Item "-Wendif-labels"
7249 Warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
7250 This usually happens in code of the form
7251 .Sp
7252 .Vb 5
7253 \&        #if FOO
7254 \&        ...
7255 \&        #else FOO
7256 \&        ...
7257 \&        #endif FOO
7258 .Ve
7259 .Sp
7260 The second and third \f(CW\*(C`FOO\*(C'\fR should be in comments, but often are not
7261 in older programs.  This warning is on by default.
7262 .IP "\fB\-Werror\fR" 4
7263 .IX Item "-Werror"
7264 Make all warnings into hard errors.  Source code which triggers warnings
7265 will be rejected.
7266 .IP "\fB\-Wsystem\-headers\fR" 4
7267 .IX Item "-Wsystem-headers"
7268 Issue warnings for code in system headers.  These are normally unhelpful
7269 in finding bugs in your own code, therefore suppressed.  If you are
7270 responsible for the system library, you may want to see them.
7271 .IP "\fB\-w\fR" 4
7272 .IX Item "-w"
7273 Suppress all warnings, including those which \s-1GNU\s0 \s-1CPP\s0 issues by default.
7274 .IP "\fB\-pedantic\fR" 4
7275 .IX Item "-pedantic"
7276 Issue all the mandatory diagnostics listed in the C standard.  Some of
7277 them are left out by default, since they trigger frequently on harmless
7278 code.
7279 .IP "\fB\-pedantic\-errors\fR" 4
7280 .IX Item "-pedantic-errors"
7281 Issue all the mandatory diagnostics, and make all mandatory diagnostics
7282 into errors.  This includes mandatory diagnostics that \s-1GCC\s0 issues
7283 without \fB\-pedantic\fR but treats as warnings.
7284 .IP "\fB\-M\fR" 4
7285 .IX Item "-M"
7286 Instead of outputting the result of preprocessing, output a rule
7287 suitable for \fBmake\fR describing the dependencies of the main
7288 source file.  The preprocessor outputs one \fBmake\fR rule containing
7289 the object file name for that source file, a colon, and the names of all
7290 the included files, including those coming from \fB\-include\fR or
7291 \&\fB\-imacros\fR command line options.
7292 .Sp
7293 Unless specified explicitly (with \fB\-MT\fR or \fB\-MQ\fR), the
7294 object file name consists of the name of the source file with any
7295 suffix replaced with object file suffix and with any leading directory
7296 parts removed.  If there are many included files then the rule is
7297 split into several lines using \fB\e\fR\-newline.  The rule has no
7298 commands.
7299 .Sp
7300 This option does not suppress the preprocessor's debug output, such as
7301 \&\fB\-dM\fR.  To avoid mixing such debug output with the dependency
7302 rules you should explicitly specify the dependency output file with
7303 \&\fB\-MF\fR, or use an environment variable like
7304 \&\fB\s-1DEPENDENCIES_OUTPUT\s0\fR.  Debug output
7305 will still be sent to the regular output stream as normal.
7306 .Sp
7307 Passing \fB\-M\fR to the driver implies \fB\-E\fR, and suppresses
7308 warnings with an implicit \fB\-w\fR.
7309 .IP "\fB\-MM\fR" 4
7310 .IX Item "-MM"
7311 Like \fB\-M\fR but do not mention header files that are found in
7312 system header directories, nor header files that are included,
7313 directly or indirectly, from such a header.
7314 .Sp
7315 This implies that the choice of angle brackets or double quotes in an
7316 \&\fB#include\fR directive does not in itself determine whether that
7317 header will appear in \fB\-MM\fR dependency output.  This is a
7318 slight change in semantics from \s-1GCC\s0 versions 3.0 and earlier.
7319 .IP "\fB\-MF\fR \fIfile\fR" 4
7320 .IX Item "-MF file"
7321 When used with \fB\-M\fR or \fB\-MM\fR, specifies a
7322 file to write the dependencies to.  If no \fB\-MF\fR switch is given
7323 the preprocessor sends the rules to the same place it would have sent
7324 preprocessed output.
7325 .Sp
7326 When used with the driver options \fB\-MD\fR or \fB\-MMD\fR,
7327 \&\fB\-MF\fR overrides the default dependency output file.
7328 .IP "\fB\-MG\fR" 4
7329 .IX Item "-MG"
7330 In conjunction with an option such as \fB\-M\fR requesting
7331 dependency generation, \fB\-MG\fR assumes missing header files are
7332 generated files and adds them to the dependency list without raising
7333 an error.  The dependency filename is taken directly from the
7334 \&\f(CW\*(C`#include\*(C'\fR directive without prepending any path.  \fB\-MG\fR
7335 also suppresses preprocessed output, as a missing header file renders
7336 this useless.
7337 .Sp
7338 This feature is used in automatic updating of makefiles.
7339 .IP "\fB\-MP\fR" 4
7340 .IX Item "-MP"
7341 This option instructs \s-1CPP\s0 to add a phony target for each dependency
7342 other than the main file, causing each to depend on nothing.  These
7343 dummy rules work around errors \fBmake\fR gives if you remove header
7344 files without updating the \fIMakefile\fR to match.
7345 .Sp
7346 This is typical output:
7347 .Sp
7348 .Vb 1
7349 \&        test.o: test.c test.h
7350 \&        
7351 \&        test.h:
7352 .Ve
7353 .IP "\fB\-MT\fR \fItarget\fR" 4
7354 .IX Item "-MT target"
7355 Change the target of the rule emitted by dependency generation.  By
7356 default \s-1CPP\s0 takes the name of the main input file, deletes any
7357 directory components and any file suffix such as \fB.c\fR, and
7358 appends the platform's usual object suffix.  The result is the target.
7359 .Sp
7360 An \fB\-MT\fR option will set the target to be exactly the string you
7361 specify.  If you want multiple targets, you can specify them as a single
7362 argument to \fB\-MT\fR, or use multiple \fB\-MT\fR options.
7363 .Sp
7364 For example, \fB\-MT\ '$(objpfx)foo.o'\fR might give
7365 .Sp
7366 .Vb 1
7367 \&        $(objpfx)foo.o: foo.c
7368 .Ve
7369 .IP "\fB\-MQ\fR \fItarget\fR" 4
7370 .IX Item "-MQ target"
7371 Same as \fB\-MT\fR, but it quotes any characters which are special to
7372 Make.  \fB\-MQ\ '$(objpfx)foo.o'\fR gives
7373 .Sp
7374 .Vb 1
7375 \&        $$(objpfx)foo.o: foo.c
7376 .Ve
7377 .Sp
7378 The default target is automatically quoted, as if it were given with
7379 \&\fB\-MQ\fR.
7380 .IP "\fB\-MD\fR" 4
7381 .IX Item "-MD"
7382 \&\fB\-MD\fR is equivalent to \fB\-M \-MF\fR \fIfile\fR, except that
7383 \&\fB\-E\fR is not implied.  The driver determines \fIfile\fR based on
7384 whether an \fB\-o\fR option is given.  If it is, the driver uses its
7385 argument but with a suffix of \fI.d\fR, otherwise it takes the name
7386 of the input file, removes any directory components and suffix, and
7387 applies a \fI.d\fR suffix.
7388 .Sp
7389 If \fB\-MD\fR is used in conjunction with \fB\-E\fR, any
7390 \&\fB\-o\fR switch is understood to specify the dependency output file, but if used without \fB\-E\fR, each \fB\-o\fR
7391 is understood to specify a target object file.
7392 .Sp
7393 Since \fB\-E\fR is not implied, \fB\-MD\fR can be used to generate
7394 a dependency output file as a side-effect of the compilation process.
7395 .IP "\fB\-MMD\fR" 4
7396 .IX Item "-MMD"
7397 Like \fB\-MD\fR except mention only user header files, not system
7398 header files.
7399 .IP "\fB\-fpch\-deps\fR" 4
7400 .IX Item "-fpch-deps"
7401 When using precompiled headers, this flag
7402 will cause the dependency-output flags to also list the files from the
7403 precompiled header's dependencies.  If not specified only the
7404 precompiled header would be listed and not the files that were used to
7405 create it because those files are not consulted when a precompiled
7406 header is used.
7407 .IP "\fB\-fpch\-preprocess\fR" 4
7408 .IX Item "-fpch-preprocess"
7409 This option allows use of a precompiled header together with \fB\-E\fR.  It inserts a special \f(CW\*(C`#pragma\*(C'\fR,
7410 \&\f(CW\*(C`#pragma GCC pch_preprocess "<filename>"\*(C'\fR in the output to mark
7411 the place where the precompiled header was found, and its filename.  When
7412 \&\fB\-fpreprocessed\fR is in use, \s-1GCC\s0 recognizes this \f(CW\*(C`#pragma\*(C'\fR and
7413 loads the \s-1PCH\s0.
7414 .Sp
7415 This option is off by default, because the resulting preprocessed output
7416 is only really suitable as input to \s-1GCC\s0.  It is switched on by
7417 \&\fB\-save\-temps\fR.
7418 .Sp
7419 You should not write this \f(CW\*(C`#pragma\*(C'\fR in your own code, but it is
7420 safe to edit the filename if the \s-1PCH\s0 file is available in a different
7421 location.  The filename may be absolute or it may be relative to \s-1GCC\s0's
7422 current directory.
7423 .IP "\fB\-x c\fR" 4
7424 .IX Item "-x c"
7425 .PD 0
7426 .IP "\fB\-x c++\fR" 4
7427 .IX Item "-x c++"
7428 .IP "\fB\-x objective-c\fR" 4
7429 .IX Item "-x objective-c"
7430 .IP "\fB\-x assembler-with-cpp\fR" 4
7431 .IX Item "-x assembler-with-cpp"
7432 .PD
7433 Specify the source language: C, \*(C+, Objective-C, or assembly.  This has
7434 nothing to do with standards conformance or extensions; it merely
7435 selects which base syntax to expect.  If you give none of these options,
7436 cpp will deduce the language from the extension of the source file:
7437 \&\fB.c\fR, \fB.cc\fR, \fB.m\fR, or \fB.S\fR.  Some other common
7438 extensions for \*(C+ and assembly are also recognized.  If cpp does not
7439 recognize the extension, it will treat the file as C; this is the most
7440 generic mode.
7441 .Sp
7442 \&\fINote:\fR Previous versions of cpp accepted a \fB\-lang\fR option
7443 which selected both the language and the standards conformance level.
7444 This option has been removed, because it conflicts with the \fB\-l\fR
7445 option.
7446 .IP "\fB\-std=\fR\fIstandard\fR" 4
7447 .IX Item "-std=standard"
7448 .PD 0
7449 .IP "\fB\-ansi\fR" 4
7450 .IX Item "-ansi"
7451 .PD
7452 Specify the standard to which the code should conform.  Currently \s-1CPP\s0
7453 knows about C and \*(C+ standards; others may be added in the future.
7454 .Sp
7455 \&\fIstandard\fR
7456 may be one of:
7457 .RS 4
7458 .ie n .IP """iso9899:1990""" 4
7459 .el .IP "\f(CWiso9899:1990\fR" 4
7460 .IX Item "iso9899:1990"
7461 .PD 0
7462 .ie n .IP """c89""" 4
7463 .el .IP "\f(CWc89\fR" 4
7464 .IX Item "c89"
7465 .PD
7466 The \s-1ISO\s0 C standard from 1990.  \fBc89\fR is the customary shorthand for
7467 this version of the standard.
7468 .Sp
7469 The \fB\-ansi\fR option is equivalent to \fB\-std=c89\fR.
7470 .ie n .IP """iso9899:199409""" 4
7471 .el .IP "\f(CWiso9899:199409\fR" 4
7472 .IX Item "iso9899:199409"
7473 The 1990 C standard, as amended in 1994.
7474 .ie n .IP """iso9899:1999""" 4
7475 .el .IP "\f(CWiso9899:1999\fR" 4
7476 .IX Item "iso9899:1999"
7477 .PD 0
7478 .ie n .IP """c99""" 4
7479 .el .IP "\f(CWc99\fR" 4
7480 .IX Item "c99"
7481 .ie n .IP """iso9899:199x""" 4
7482 .el .IP "\f(CWiso9899:199x\fR" 4
7483 .IX Item "iso9899:199x"
7484 .ie n .IP """c9x""" 4
7485 .el .IP "\f(CWc9x\fR" 4
7486 .IX Item "c9x"
7487 .PD
7488 The revised \s-1ISO\s0 C standard, published in December 1999.  Before
7489 publication, this was known as C9X.
7490 .ie n .IP """gnu89""" 4
7491 .el .IP "\f(CWgnu89\fR" 4
7492 .IX Item "gnu89"
7493 The 1990 C standard plus \s-1GNU\s0 extensions.  This is the default.
7494 .ie n .IP """gnu99""" 4
7495 .el .IP "\f(CWgnu99\fR" 4
7496 .IX Item "gnu99"
7497 .PD 0
7498 .ie n .IP """gnu9x""" 4
7499 .el .IP "\f(CWgnu9x\fR" 4
7500 .IX Item "gnu9x"
7501 .PD
7502 The 1999 C standard plus \s-1GNU\s0 extensions.
7503 .ie n .IP """c++98""" 4
7504 .el .IP "\f(CWc++98\fR" 4
7505 .IX Item "c++98"
7506 The 1998 \s-1ISO\s0 \*(C+ standard plus amendments.
7507 .ie n .IP """gnu++98""" 4
7508 .el .IP "\f(CWgnu++98\fR" 4
7509 .IX Item "gnu++98"
7510 The same as \fB\-std=c++98\fR plus \s-1GNU\s0 extensions.  This is the
7511 default for \*(C+ code.
7512 .RE
7513 .RS 4
7514 .RE
7515 .IP "\fB\-I\-\fR" 4
7516 .IX Item "-I-"
7517 Split the include path.  Any directories specified with \fB\-I\fR
7518 options before \fB\-I\-\fR are searched only for headers requested with
7519 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
7520 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR.  If additional directories are
7521 specified with \fB\-I\fR options after the \fB\-I\-\fR, those
7522 directories are searched for all \fB#include\fR directives.
7523 .Sp
7524 In addition, \fB\-I\-\fR inhibits the use of the directory of the current
7525 file directory as the first search directory for \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR.
7526 This option has been deprecated.
7527 .IP "\fB\-nostdinc\fR" 4
7528 .IX Item "-nostdinc"
7529 Do not search the standard system directories for header files.
7530 Only the directories you have specified with \fB\-I\fR options
7531 (and the directory of the current file, if appropriate) are searched.
7532 .IP "\fB\-nostdinc++\fR" 4
7533 .IX Item "-nostdinc++"
7534 Do not search for header files in the \*(C+\-specific standard directories,
7535 but do still search the other standard directories.  (This option is
7536 used when building the \*(C+ library.)
7537 .IP "\fB\-include\fR \fIfile\fR" 4
7538 .IX Item "-include file"
7539 Process \fIfile\fR as if \f(CW\*(C`#include "file"\*(C'\fR appeared as the first
7540 line of the primary source file.  However, the first directory searched
7541 for \fIfile\fR is the preprocessor's working directory \fIinstead of\fR
7542 the directory containing the main source file.  If not found there, it
7543 is searched for in the remainder of the \f(CW\*(C`#include "..."\*(C'\fR search
7544 chain as normal.
7545 .Sp
7546 If multiple \fB\-include\fR options are given, the files are included
7547 in the order they appear on the command line.
7548 .IP "\fB\-imacros\fR \fIfile\fR" 4
7549 .IX Item "-imacros file"
7550 Exactly like \fB\-include\fR, except that any output produced by
7551 scanning \fIfile\fR is thrown away.  Macros it defines remain defined.
7552 This allows you to acquire all the macros from a header without also
7553 processing its declarations.
7554 .Sp
7555 All files specified by \fB\-imacros\fR are processed before all files
7556 specified by \fB\-include\fR.
7557 .IP "\fB\-idirafter\fR \fIdir\fR" 4
7558 .IX Item "-idirafter dir"
7559 Search \fIdir\fR for header files, but do it \fIafter\fR all
7560 directories specified with \fB\-I\fR and the standard system directories
7561 have been exhausted.  \fIdir\fR is treated as a system include directory.
7562 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
7563 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
7564 .IP "\fB\-iprefix\fR \fIprefix\fR" 4
7565 .IX Item "-iprefix prefix"
7566 Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
7567 options.  If the prefix represents a directory, you should include the
7568 final \fB/\fR.
7569 .IP "\fB\-iwithprefix\fR \fIdir\fR" 4
7570 .IX Item "-iwithprefix dir"
7571 .PD 0
7572 .IP "\fB\-iwithprefixbefore\fR \fIdir\fR" 4
7573 .IX Item "-iwithprefixbefore dir"
7574 .PD
7575 Append \fIdir\fR to the prefix specified previously with
7576 \&\fB\-iprefix\fR, and add the resulting directory to the include search
7577 path.  \fB\-iwithprefixbefore\fR puts it in the same place \fB\-I\fR
7578 would; \fB\-iwithprefix\fR puts it where \fB\-idirafter\fR would.
7579 .IP "\fB\-isysroot\fR \fIdir\fR" 4
7580 .IX Item "-isysroot dir"
7581 This option is like the \fB\-\-sysroot\fR option, but applies only to
7582 header files.  See the \fB\-\-sysroot\fR option for more information.
7583 .IP "\fB\-imultilib\fR \fIdir\fR" 4
7584 .IX Item "-imultilib dir"
7585 Use \fIdir\fR as a subdirectory of the directory containing
7586 target-specific \*(C+ headers.
7587 .IP "\fB\-isystem\fR \fIdir\fR" 4
7588 .IX Item "-isystem dir"
7589 Search \fIdir\fR for header files, after all directories specified by
7590 \&\fB\-I\fR but before the standard system directories.  Mark it
7591 as a system directory, so that it gets the same special treatment as
7592 is applied to the standard system directories.
7593 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
7594 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
7595 .IP "\fB\-iquote\fR \fIdir\fR" 4
7596 .IX Item "-iquote dir"
7597 Search \fIdir\fR only for header files requested with
7598 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
7599 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR, before all directories specified by
7600 \&\fB\-I\fR and before the standard system directories.
7601 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
7602 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
7603 .IP "\fB\-fdirectives\-only\fR" 4
7604 .IX Item "-fdirectives-only"
7605 When preprocessing, handle directives, but do not expand macros.
7606 .Sp
7607 The option's behavior depends on the \fB\-E\fR and \fB\-fpreprocessed\fR
7608 options.
7609 .Sp
7610 With \fB\-E\fR, preprocessing is limited to the handling of directives
7611 such as \f(CW\*(C`#define\*(C'\fR, \f(CW\*(C`#ifdef\*(C'\fR, and \f(CW\*(C`#error\*(C'\fR.  Other
7612 preprocessor operations, such as macro expansion and trigraph
7613 conversion are not performed.  In addition, the \fB\-dD\fR option is
7614 implicitly enabled.
7615 .Sp
7616 With \fB\-fpreprocessed\fR, predefinition of command line and most
7617 builtin macros is disabled.  Macros such as \f(CW\*(C`_\|_LINE_\|_\*(C'\fR, which are
7618 contextually dependent, are handled normally.  This enables compilation of
7619 files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
7620 .Sp
7621 With both \fB\-E\fR and \fB\-fpreprocessed\fR, the rules for
7622 \&\fB\-fpreprocessed\fR take precedence.  This enables full preprocessing of
7623 files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
7624 .IP "\fB\-fdollars\-in\-identifiers\fR" 4
7625 .IX Item "-fdollars-in-identifiers"
7626 Accept \fB$\fR in identifiers.
7627 .IP "\fB\-fextended\-identifiers\fR" 4
7628 .IX Item "-fextended-identifiers"
7629 Accept universal character names in identifiers.  This option is
7630 experimental; in a future version of \s-1GCC\s0, it will be enabled by
7631 default for C99 and \*(C+.
7632 .IP "\fB\-fpreprocessed\fR" 4
7633 .IX Item "-fpreprocessed"
7634 Indicate to the preprocessor that the input file has already been
7635 preprocessed.  This suppresses things like macro expansion, trigraph
7636 conversion, escaped newline splicing, and processing of most directives.
7637 The preprocessor still recognizes and removes comments, so that you can
7638 pass a file preprocessed with \fB\-C\fR to the compiler without
7639 problems.  In this mode the integrated preprocessor is little more than
7640 a tokenizer for the front ends.
7641 .Sp
7642 \&\fB\-fpreprocessed\fR is implicit if the input file has one of the
7643 extensions \fB.i\fR, \fB.ii\fR or \fB.mi\fR.  These are the
7644 extensions that \s-1GCC\s0 uses for preprocessed files created by
7645 \&\fB\-save\-temps\fR.
7646 .IP "\fB\-ftabstop=\fR\fIwidth\fR" 4
7647 .IX Item "-ftabstop=width"
7648 Set the distance between tab stops.  This helps the preprocessor report
7649 correct column numbers in warnings or errors, even if tabs appear on the
7650 line.  If the value is less than 1 or greater than 100, the option is
7651 ignored.  The default is 8.
7652 .IP "\fB\-fexec\-charset=\fR\fIcharset\fR" 4
7653 .IX Item "-fexec-charset=charset"
7654 Set the execution character set, used for string and character
7655 constants.  The default is \s-1UTF\-8\s0.  \fIcharset\fR can be any encoding
7656 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
7657 .IP "\fB\-fwide\-exec\-charset=\fR\fIcharset\fR" 4
7658 .IX Item "-fwide-exec-charset=charset"
7659 Set the wide execution character set, used for wide string and
7660 character constants.  The default is \s-1UTF\-32\s0 or \s-1UTF\-16\s0, whichever
7661 corresponds to the width of \f(CW\*(C`wchar_t\*(C'\fR.  As with
7662 \&\fB\-fexec\-charset\fR, \fIcharset\fR can be any encoding supported
7663 by the system's \f(CW\*(C`iconv\*(C'\fR library routine; however, you will have
7664 problems with encodings that do not fit exactly in \f(CW\*(C`wchar_t\*(C'\fR.
7665 .IP "\fB\-finput\-charset=\fR\fIcharset\fR" 4
7666 .IX Item "-finput-charset=charset"
7667 Set the input character set, used for translation from the character
7668 set of the input file to the source character set used by \s-1GCC\s0.  If the
7669 locale does not specify, or \s-1GCC\s0 cannot get this information from the
7670 locale, the default is \s-1UTF\-8\s0.  This can be overridden by either the locale
7671 or this command line option.  Currently the command line option takes
7672 precedence if there's a conflict.  \fIcharset\fR can be any encoding
7673 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
7674 .IP "\fB\-fworking\-directory\fR" 4
7675 .IX Item "-fworking-directory"
7676 Enable generation of linemarkers in the preprocessor output that will
7677 let the compiler know the current working directory at the time of
7678 preprocessing.  When this option is enabled, the preprocessor will
7679 emit, after the initial linemarker, a second linemarker with the
7680 current working directory followed by two slashes.  \s-1GCC\s0 will use this
7681 directory, when it's present in the preprocessed input, as the
7682 directory emitted as the current working directory in some debugging
7683 information formats.  This option is implicitly enabled if debugging
7684 information is enabled, but this can be inhibited with the negated
7685 form \fB\-fno\-working\-directory\fR.  If the \fB\-P\fR flag is
7686 present in the command line, this option has no effect, since no
7687 \&\f(CW\*(C`#line\*(C'\fR directives are emitted whatsoever.
7688 .IP "\fB\-fno\-show\-column\fR" 4
7689 .IX Item "-fno-show-column"
7690 Do not print column numbers in diagnostics.  This may be necessary if
7691 diagnostics are being scanned by a program that does not understand the
7692 column numbers, such as \fBdejagnu\fR.
7693 .IP "\fB\-A\fR \fIpredicate\fR\fB=\fR\fIanswer\fR" 4
7694 .IX Item "-A predicate=answer"
7695 Make an assertion with the predicate \fIpredicate\fR and answer
7696 \&\fIanswer\fR.  This form is preferred to the older form \fB\-A\fR
7697 \&\fIpredicate\fR\fB(\fR\fIanswer\fR\fB)\fR, which is still supported, because
7698 it does not use shell special characters.
7699 .IP "\fB\-A \-\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4
7700 .IX Item "-A -predicate=answer"
7701 Cancel an assertion with the predicate \fIpredicate\fR and answer
7702 \&\fIanswer\fR.
7703 .IP "\fB\-dCHARS\fR" 4
7704 .IX Item "-dCHARS"
7705 \&\fI\s-1CHARS\s0\fR is a sequence of one or more of the following characters,
7706 and must not be preceded by a space.  Other characters are interpreted
7707 by the compiler proper, or reserved for future versions of \s-1GCC\s0, and so
7708 are silently ignored.  If you specify characters whose behavior
7709 conflicts, the result is undefined.
7710 .RS 4
7711 .IP "\fBM\fR" 4
7712 .IX Item "M"
7713 Instead of the normal output, generate a list of \fB#define\fR
7714 directives for all the macros defined during the execution of the
7715 preprocessor, including predefined macros.  This gives you a way of
7716 finding out what is predefined in your version of the preprocessor.
7717 Assuming you have no file \fIfoo.h\fR, the command
7718 .Sp
7719 .Vb 1
7720 \&        touch foo.h; cpp \-dM foo.h
7721 .Ve
7722 .Sp
7723 will show all the predefined macros.
7724 .Sp
7725 If you use \fB\-dM\fR without the \fB\-E\fR option, \fB\-dM\fR is
7726 interpreted as a synonym for \fB\-fdump\-rtl\-mach\fR.
7727 .IP "\fBD\fR" 4
7728 .IX Item "D"
7729 Like \fBM\fR except in two respects: it does \fInot\fR include the
7730 predefined macros, and it outputs \fIboth\fR the \fB#define\fR
7731 directives and the result of preprocessing.  Both kinds of output go to
7732 the standard output file.
7733 .IP "\fBN\fR" 4
7734 .IX Item "N"
7735 Like \fBD\fR, but emit only the macro names, not their expansions.
7736 .IP "\fBI\fR" 4
7737 .IX Item "I"
7738 Output \fB#include\fR directives in addition to the result of
7739 preprocessing.
7740 .IP "\fBU\fR" 4
7741 .IX Item "U"
7742 Like \fBD\fR except that only macros that are expanded, or whose
7743 definedness is tested in preprocessor directives, are output; the
7744 output is delayed until the use or test of the macro; and
7745 \&\fB#undef\fR directives are also output for macros tested but
7746 undefined at the time.
7747 .RE
7748 .RS 4
7749 .RE
7750 .IP "\fB\-P\fR" 4
7751 .IX Item "-P"
7752 Inhibit generation of linemarkers in the output from the preprocessor.
7753 This might be useful when running the preprocessor on something that is
7754 not C code, and will be sent to a program which might be confused by the
7755 linemarkers.
7756 .IP "\fB\-C\fR" 4
7757 .IX Item "-C"
7758 Do not discard comments.  All comments are passed through to the output
7759 file, except for comments in processed directives, which are deleted
7760 along with the directive.
7761 .Sp
7762 You should be prepared for side effects when using \fB\-C\fR; it
7763 causes the preprocessor to treat comments as tokens in their own right.
7764 For example, comments appearing at the start of what would be a
7765 directive line have the effect of turning that line into an ordinary
7766 source line, since the first token on the line is no longer a \fB#\fR.
7767 .IP "\fB\-CC\fR" 4
7768 .IX Item "-CC"
7769 Do not discard comments, including during macro expansion.  This is
7770 like \fB\-C\fR, except that comments contained within macros are
7771 also passed through to the output file where the macro is expanded.
7772 .Sp
7773 In addition to the side-effects of the \fB\-C\fR option, the
7774 \&\fB\-CC\fR option causes all \*(C+\-style comments inside a macro
7775 to be converted to C\-style comments.  This is to prevent later use
7776 of that macro from inadvertently commenting out the remainder of
7777 the source line.
7778 .Sp
7779 The \fB\-CC\fR option is generally used to support lint comments.
7780 .IP "\fB\-traditional\-cpp\fR" 4
7781 .IX Item "-traditional-cpp"
7782 Try to imitate the behavior of old-fashioned C preprocessors, as
7783 opposed to \s-1ISO\s0 C preprocessors.
7784 .IP "\fB\-trigraphs\fR" 4
7785 .IX Item "-trigraphs"
7786 Process trigraph sequences.
7787 These are three-character sequences, all starting with \fB??\fR, that
7788 are defined by \s-1ISO\s0 C to stand for single characters.  For example,
7789 \&\fB??/\fR stands for \fB\e\fR, so \fB'??/n'\fR is a character
7790 constant for a newline.  By default, \s-1GCC\s0 ignores trigraphs, but in
7791 standard-conforming modes it converts them.  See the \fB\-std\fR and
7792 \&\fB\-ansi\fR options.
7793 .Sp
7794 The nine trigraphs and their replacements are
7795 .Sp
7796 .Vb 2
7797 \&        Trigraph:       ??(  ??)  ??<  ??>  ??=  ??/  ??\*(Aq  ??!  ??\-
7798 \&        Replacement:      [    ]    {    }    #    \e    ^    |    ~
7799 .Ve
7800 .IP "\fB\-remap\fR" 4
7801 .IX Item "-remap"
7802 Enable special code to work around file systems which only permit very
7803 short file names, such as MS-DOS.
7804 .IP "\fB\-\-help\fR" 4
7805 .IX Item "--help"
7806 .PD 0
7807 .IP "\fB\-\-target\-help\fR" 4
7808 .IX Item "--target-help"
7809 .PD
7810 Print text describing all the command line options instead of
7811 preprocessing anything.
7812 .IP "\fB\-v\fR" 4
7813 .IX Item "-v"
7814 Verbose mode.  Print out \s-1GNU\s0 \s-1CPP\s0's version number at the beginning of
7815 execution, and report the final form of the include path.
7816 .IP "\fB\-H\fR" 4
7817 .IX Item "-H"
7818 Print the name of each header file used, in addition to other normal
7819 activities.  Each name is indented to show how deep in the
7820 \&\fB#include\fR stack it is.  Precompiled header files are also
7821 printed, even if they are found to be invalid; an invalid precompiled
7822 header file is printed with \fB...x\fR and a valid one with \fB...!\fR .
7823 .IP "\fB\-version\fR" 4
7824 .IX Item "-version"
7825 .PD 0
7826 .IP "\fB\-\-version\fR" 4
7827 .IX Item "--version"
7828 .PD
7829 Print out \s-1GNU\s0 \s-1CPP\s0's version number.  With one dash, proceed to
7830 preprocess as normal.  With two dashes, exit immediately.
7831 .SS "Passing Options to the Assembler"
7832 .IX Subsection "Passing Options to the Assembler"
7833 You can pass options to the assembler.
7834 .IP "\fB\-Wa,\fR\fIoption\fR" 4
7835 .IX Item "-Wa,option"
7836 Pass \fIoption\fR as an option to the assembler.  If \fIoption\fR
7837 contains commas, it is split into multiple options at the commas.
7838 .IP "\fB\-Xassembler\fR \fIoption\fR" 4
7839 .IX Item "-Xassembler option"
7840 Pass \fIoption\fR as an option to the assembler.  You can use this to
7841 supply system-specific assembler options which \s-1GCC\s0 does not know how to
7842 recognize.
7843 .Sp
7844 If you want to pass an option that takes an argument, you must use
7845 \&\fB\-Xassembler\fR twice, once for the option and once for the argument.
7846 .SS "Options for Linking"
7847 .IX Subsection "Options for Linking"
7848 These options come into play when the compiler links object files into
7849 an executable output file.  They are meaningless if the compiler is
7850 not doing a link step.
7851 .IP "\fIobject-file-name\fR" 4
7852 .IX Item "object-file-name"
7853 A file name that does not end in a special recognized suffix is
7854 considered to name an object file or library.  (Object files are
7855 distinguished from libraries by the linker according to the file
7856 contents.)  If linking is done, these object files are used as input
7857 to the linker.
7858 .IP "\fB\-c\fR" 4
7859 .IX Item "-c"
7860 .PD 0
7861 .IP "\fB\-S\fR" 4
7862 .IX Item "-S"
7863 .IP "\fB\-E\fR" 4
7864 .IX Item "-E"
7865 .PD
7866 If any of these options is used, then the linker is not run, and
7867 object file names should not be used as arguments.
7868 .IP "\fB\-l\fR\fIlibrary\fR" 4
7869 .IX Item "-llibrary"
7870 .PD 0
7871 .IP "\fB\-l\fR \fIlibrary\fR" 4
7872 .IX Item "-l library"
7873 .PD
7874 Search the library named \fIlibrary\fR when linking.  (The second
7875 alternative with the library as a separate argument is only for
7876 \&\s-1POSIX\s0 compliance and is not recommended.)
7877 .Sp
7878 It makes a difference where in the command you write this option; the
7879 linker searches and processes libraries and object files in the order they
7880 are specified.  Thus, \fBfoo.o \-lz bar.o\fR searches library \fBz\fR
7881 after file \fIfoo.o\fR but before \fIbar.o\fR.  If \fIbar.o\fR refers
7882 to functions in \fBz\fR, those functions may not be loaded.
7883 .Sp
7884 The linker searches a standard list of directories for the library,
7885 which is actually a file named \fIlib\fIlibrary\fI.a\fR.  The linker
7886 then uses this file as if it had been specified precisely by name.
7887 .Sp
7888 The directories searched include several standard system directories
7889 plus any that you specify with \fB\-L\fR.
7890 .Sp
7891 Normally the files found this way are library files\-\-\-archive files
7892 whose members are object files.  The linker handles an archive file by
7893 scanning through it for members which define symbols that have so far
7894 been referenced but not defined.  But if the file that is found is an
7895 ordinary object file, it is linked in the usual fashion.  The only
7896 difference between using an \fB\-l\fR option and specifying a file name
7897 is that \fB\-l\fR surrounds \fIlibrary\fR with \fBlib\fR and \fB.a\fR
7898 and searches several directories.
7899 .IP "\fB\-lobjc\fR" 4
7900 .IX Item "-lobjc"
7901 You need this special case of the \fB\-l\fR option in order to
7902 link an Objective-C or Objective\-\*(C+ program.
7903 .IP "\fB\-nostartfiles\fR" 4
7904 .IX Item "-nostartfiles"
7905 Do not use the standard system startup files when linking.
7906 The standard system libraries are used normally, unless \fB\-nostdlib\fR
7907 or \fB\-nodefaultlibs\fR is used.
7908 .IP "\fB\-nodefaultlibs\fR" 4
7909 .IX Item "-nodefaultlibs"
7910 Do not use the standard system libraries when linking.
7911 Only the libraries you specify will be passed to the linker.
7912 The standard startup files are used normally, unless \fB\-nostartfiles\fR
7913 is used.  The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR,
7914 \&\f(CW\*(C`memset\*(C'\fR, \f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
7915 These entries are usually resolved by entries in
7916 libc.  These entry points should be supplied through some other
7917 mechanism when this option is specified.
7918 .IP "\fB\-nostdlib\fR" 4
7919 .IX Item "-nostdlib"
7920 Do not use the standard system startup files or libraries when linking.
7921 No startup files and only the libraries you specify will be passed to
7922 the linker.  The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR, \f(CW\*(C`memset\*(C'\fR,
7923 \&\f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
7924 These entries are usually resolved by entries in
7925 libc.  These entry points should be supplied through some other
7926 mechanism when this option is specified.
7927 .Sp
7928 One of the standard libraries bypassed by \fB\-nostdlib\fR and
7929 \&\fB\-nodefaultlibs\fR is \fIlibgcc.a\fR, a library of internal subroutines
7930 that \s-1GCC\s0 uses to overcome shortcomings of particular machines, or special
7931 needs for some languages.
7932 .Sp
7933 In most cases, you need \fIlibgcc.a\fR even when you want to avoid
7934 other standard libraries.  In other words, when you specify \fB\-nostdlib\fR
7935 or \fB\-nodefaultlibs\fR you should usually specify \fB\-lgcc\fR as well.
7936 This ensures that you have no unresolved references to internal \s-1GCC\s0
7937 library subroutines.  (For example, \fB_\|_main\fR, used to ensure \*(C+
7938 constructors will be called.)
7939 .IP "\fB\-pie\fR" 4
7940 .IX Item "-pie"
7941 Produce a position independent executable on targets which support it.
7942 For predictable results, you must also specify the same set of options
7943 that were used to generate code (\fB\-fpie\fR, \fB\-fPIE\fR,
7944 or model suboptions) when you specify this option.
7945 .IP "\fB\-rdynamic\fR" 4
7946 .IX Item "-rdynamic"
7947 Pass the flag \fB\-export\-dynamic\fR to the \s-1ELF\s0 linker, on targets
7948 that support it. This instructs the linker to add all symbols, not
7949 only used ones, to the dynamic symbol table. This option is needed
7950 for some uses of \f(CW\*(C`dlopen\*(C'\fR or to allow obtaining backtraces
7951 from within a program.
7952 .IP "\fB\-s\fR" 4
7953 .IX Item "-s"
7954 Remove all symbol table and relocation information from the executable.
7955 .IP "\fB\-static\fR" 4
7956 .IX Item "-static"
7957 On systems that support dynamic linking, this prevents linking with the shared
7958 libraries.  On other systems, this option has no effect.
7959 .IP "\fB\-shared\fR" 4
7960 .IX Item "-shared"
7961 Produce a shared object which can then be linked with other objects to
7962 form an executable.  Not all systems support this option.  For predictable
7963 results, you must also specify the same set of options that were used to
7964 generate code (\fB\-fpic\fR, \fB\-fPIC\fR, or model suboptions)
7965 when you specify this option.[1]
7966 .IP "\fB\-shared\-libgcc\fR" 4
7967 .IX Item "-shared-libgcc"
7968 .PD 0
7969 .IP "\fB\-static\-libgcc\fR" 4
7970 .IX Item "-static-libgcc"
7971 .PD
7972 On systems that provide \fIlibgcc\fR as a shared library, these options
7973 force the use of either the shared or static version respectively.
7974 If no shared version of \fIlibgcc\fR was built when the compiler was
7975 configured, these options have no effect.
7976 .Sp
7977 There are several situations in which an application should use the
7978 shared \fIlibgcc\fR instead of the static version.  The most common
7979 of these is when the application wishes to throw and catch exceptions
7980 across different shared libraries.  In that case, each of the libraries
7981 as well as the application itself should use the shared \fIlibgcc\fR.
7982 .Sp
7983 Therefore, the G++ and \s-1GCJ\s0 drivers automatically add
7984 \&\fB\-shared\-libgcc\fR whenever you build a shared library or a main
7985 executable, because \*(C+ and Java programs typically use exceptions, so
7986 this is the right thing to do.
7987 .Sp
7988 If, instead, you use the \s-1GCC\s0 driver to create shared libraries, you may
7989 find that they will not always be linked with the shared \fIlibgcc\fR.
7990 If \s-1GCC\s0 finds, at its configuration time, that you have a non-GNU linker
7991 or a \s-1GNU\s0 linker that does not support option \fB\-\-eh\-frame\-hdr\fR,
7992 it will link the shared version of \fIlibgcc\fR into shared libraries
7993 by default.  Otherwise, it will take advantage of the linker and optimize
7994 away the linking with the shared version of \fIlibgcc\fR, linking with
7995 the static version of libgcc by default.  This allows exceptions to
7996 propagate through such shared libraries, without incurring relocation
7997 costs at library load time.
7998 .Sp
7999 However, if a library or main executable is supposed to throw or catch
8000 exceptions, you must link it using the G++ or \s-1GCJ\s0 driver, as appropriate
8001 for the languages used in the program, or using the option
8002 \&\fB\-shared\-libgcc\fR, such that it is linked with the shared
8003 \&\fIlibgcc\fR.
8004 .IP "\fB\-symbolic\fR" 4
8005 .IX Item "-symbolic"
8006 Bind references to global symbols when building a shared object.  Warn
8007 about any unresolved references (unless overridden by the link editor
8008 option \fB\-Xlinker \-z \-Xlinker defs\fR).  Only a few systems support
8009 this option.
8010 .IP "\fB\-T\fR \fIscript\fR" 4
8011 .IX Item "-T script"
8012 Use \fIscript\fR as the linker script.  This option is supported by most
8013 systems using the \s-1GNU\s0 linker.  On some targets, such as bare-board
8014 targets without an operating system, the \fB\-T\fR option may be required 
8015 when linking to avoid references to undefined symbols.
8016 .IP "\fB\-Xlinker\fR \fIoption\fR" 4
8017 .IX Item "-Xlinker option"
8018 Pass \fIoption\fR as an option to the linker.  You can use this to
8019 supply system-specific linker options which \s-1GCC\s0 does not know how to
8020 recognize.
8021 .Sp
8022 If you want to pass an option that takes a separate argument, you must use
8023 \&\fB\-Xlinker\fR twice, once for the option and once for the argument.
8024 For example, to pass \fB\-assert definitions\fR, you must write
8025 \&\fB\-Xlinker \-assert \-Xlinker definitions\fR.  It does not work to write
8026 \&\fB\-Xlinker \*(L"\-assert definitions\*(R"\fR, because this passes the entire
8027 string as a single argument, which is not what the linker expects.
8028 .Sp
8029 When using the \s-1GNU\s0 linker, it is usually more convenient to pass 
8030 arguments to linker options using the \fIoption\fR\fB=\fR\fIvalue\fR
8031 syntax than as separate arguments.  For example, you can specify
8032 \&\fB\-Xlinker \-Map=output.map\fR rather than
8033 \&\fB\-Xlinker \-Map \-Xlinker output.map\fR.  Other linkers may not support
8034 this syntax for command-line options.
8035 .IP "\fB\-Wl,\fR\fIoption\fR" 4
8036 .IX Item "-Wl,option"
8037 Pass \fIoption\fR as an option to the linker.  If \fIoption\fR contains
8038 commas, it is split into multiple options at the commas.  You can use this
8039 syntax to pass an argument to the option.  
8040 For example, \fB\-Wl,\-Map,output.map\fR passes \fB\-Map output.map\fR to the
8041 linker.  When using the \s-1GNU\s0 linker, you can also get the same effect with
8042 \&\fB\-Wl,\-Map=output.map\fR.
8043 .IP "\fB\-u\fR \fIsymbol\fR" 4
8044 .IX Item "-u symbol"
8045 Pretend the symbol \fIsymbol\fR is undefined, to force linking of
8046 library modules to define it.  You can use \fB\-u\fR multiple times with
8047 different symbols to force loading of additional library modules.
8048 .SS "Options for Directory Search"
8049 .IX Subsection "Options for Directory Search"
8050 These options specify directories to search for header files, for
8051 libraries and for parts of the compiler:
8052 .IP "\fB\-I\fR\fIdir\fR" 4
8053 .IX Item "-Idir"
8054 Add the directory \fIdir\fR to the head of the list of directories to be
8055 searched for header files.  This can be used to override a system header
8056 file, substituting your own version, since these directories are
8057 searched before the system header file directories.  However, you should
8058 not use this option to add directories that contain vendor-supplied
8059 system header files (use \fB\-isystem\fR for that).  If you use more than
8060 one \fB\-I\fR option, the directories are scanned in left-to-right
8061 order; the standard system directories come after.
8062 .Sp
8063 If a standard system include directory, or a directory specified with
8064 \&\fB\-isystem\fR, is also specified with \fB\-I\fR, the \fB\-I\fR
8065 option will be ignored.  The directory will still be searched but as a
8066 system directory at its normal position in the system include chain.
8067 This is to ensure that \s-1GCC\s0's procedure to fix buggy system headers and
8068 the ordering for the include_next directive are not inadvertently changed.
8069 If you really need to change the search order for system directories,
8070 use the \fB\-nostdinc\fR and/or \fB\-isystem\fR options.
8071 .IP "\fB\-iquote\fR\fIdir\fR" 4
8072 .IX Item "-iquotedir"
8073 Add the directory \fIdir\fR to the head of the list of directories to
8074 be searched for header files only for the case of \fB#include
8075 "\fR\fIfile\fR\fB"\fR; they are not searched for \fB#include <\fR\fIfile\fR\fB>\fR,
8076 otherwise just like \fB\-I\fR.
8077 .IP "\fB\-L\fR\fIdir\fR" 4
8078 .IX Item "-Ldir"
8079 Add directory \fIdir\fR to the list of directories to be searched
8080 for \fB\-l\fR.
8081 .IP "\fB\-B\fR\fIprefix\fR" 4
8082 .IX Item "-Bprefix"
8083 This option specifies where to find the executables, libraries,
8084 include files, and data files of the compiler itself.
8085 .Sp
8086 The compiler driver program runs one or more of the subprograms
8087 \&\fIcpp\fR, \fIcc1\fR, \fIas\fR and \fIld\fR.  It tries
8088 \&\fIprefix\fR as a prefix for each program it tries to run, both with and
8089 without \fImachine\fR\fB/\fR\fIversion\fR\fB/\fR.
8090 .Sp
8091 For each subprogram to be run, the compiler driver first tries the
8092 \&\fB\-B\fR prefix, if any.  If that name is not found, or if \fB\-B\fR
8093 was not specified, the driver tries two standard prefixes, which are
8094 \&\fI/usr/lib/gcc/\fR and \fI/usr/local/lib/gcc/\fR.  If neither of
8095 those results in a file name that is found, the unmodified program
8096 name is searched for using the directories specified in your
8097 \&\fB\s-1PATH\s0\fR environment variable.
8098 .Sp
8099 The compiler will check to see if the path provided by the \fB\-B\fR
8100 refers to a directory, and if necessary it will add a directory
8101 separator character at the end of the path.
8102 .Sp
8103 \&\fB\-B\fR prefixes that effectively specify directory names also apply
8104 to libraries in the linker, because the compiler translates these
8105 options into \fB\-L\fR options for the linker.  They also apply to
8106 includes files in the preprocessor, because the compiler translates these
8107 options into \fB\-isystem\fR options for the preprocessor.  In this case,
8108 the compiler appends \fBinclude\fR to the prefix.
8109 .Sp
8110 The run-time support file \fIlibgcc.a\fR can also be searched for using
8111 the \fB\-B\fR prefix, if needed.  If it is not found there, the two
8112 standard prefixes above are tried, and that is all.  The file is left
8113 out of the link if it is not found by those means.
8114 .Sp
8115 Another way to specify a prefix much like the \fB\-B\fR prefix is to use
8116 the environment variable \fB\s-1GCC_EXEC_PREFIX\s0\fR.
8117 .Sp
8118 As a special kludge, if the path provided by \fB\-B\fR is
8119 \&\fI[dir/]stage\fIN\fI/\fR, where \fIN\fR is a number in the range 0 to
8120 9, then it will be replaced by \fI[dir/]include\fR.  This is to help
8121 with boot-strapping the compiler.
8122 .IP "\fB\-specs=\fR\fIfile\fR" 4
8123 .IX Item "-specs=file"
8124 Process \fIfile\fR after the compiler reads in the standard \fIspecs\fR
8125 file, in order to override the defaults that the \fIgcc\fR driver
8126 program uses when determining what switches to pass to \fIcc1\fR,
8127 \&\fIcc1plus\fR, \fIas\fR, \fIld\fR, etc.  More than one
8128 \&\fB\-specs=\fR\fIfile\fR can be specified on the command line, and they
8129 are processed in order, from left to right.
8130 .IP "\fB\-\-sysroot=\fR\fIdir\fR" 4
8131 .IX Item "--sysroot=dir"
8132 Use \fIdir\fR as the logical root directory for headers and libraries.
8133 For example, if the compiler would normally search for headers in
8134 \&\fI/usr/include\fR and libraries in \fI/usr/lib\fR, it will instead
8135 search \fI\fIdir\fI/usr/include\fR and \fI\fIdir\fI/usr/lib\fR.
8136 .Sp
8137 If you use both this option and the \fB\-isysroot\fR option, then
8138 the \fB\-\-sysroot\fR option will apply to libraries, but the
8139 \&\fB\-isysroot\fR option will apply to header files.
8140 .Sp
8141 The \s-1GNU\s0 linker (beginning with version 2.16) has the necessary support
8142 for this option.  If your linker does not support this option, the
8143 header file aspect of \fB\-\-sysroot\fR will still work, but the
8144 library aspect will not.
8145 .IP "\fB\-I\-\fR" 4
8146 .IX Item "-I-"
8147 This option has been deprecated.  Please use \fB\-iquote\fR instead for
8148 \&\fB\-I\fR directories before the \fB\-I\-\fR and remove the \fB\-I\-\fR.
8149 Any directories you specify with \fB\-I\fR options before the \fB\-I\-\fR
8150 option are searched only for the case of \fB#include "\fR\fIfile\fR\fB"\fR;
8151 they are not searched for \fB#include <\fR\fIfile\fR\fB>\fR.
8152 .Sp
8153 If additional directories are specified with \fB\-I\fR options after
8154 the \fB\-I\-\fR, these directories are searched for all \fB#include\fR
8155 directives.  (Ordinarily \fIall\fR \fB\-I\fR directories are used
8156 this way.)
8157 .Sp
8158 In addition, the \fB\-I\-\fR option inhibits the use of the current
8159 directory (where the current input file came from) as the first search
8160 directory for \fB#include "\fR\fIfile\fR\fB"\fR.  There is no way to
8161 override this effect of \fB\-I\-\fR.  With \fB\-I.\fR you can specify
8162 searching the directory which was current when the compiler was
8163 invoked.  That is not exactly the same as what the preprocessor does
8164 by default, but it is often satisfactory.
8165 .Sp
8166 \&\fB\-I\-\fR does not inhibit the use of the standard system directories
8167 for header files.  Thus, \fB\-I\-\fR and \fB\-nostdinc\fR are
8168 independent.
8169 .SS "Specifying Target Machine and Compiler Version"
8170 .IX Subsection "Specifying Target Machine and Compiler Version"
8171 The usual way to run \s-1GCC\s0 is to run the executable called \fIgcc\fR, or
8172 \&\fI<machine>\-gcc\fR when cross-compiling, or
8173 \&\fI<machine>\-gcc\-<version>\fR to run a version other than the one that
8174 was installed last.  Sometimes this is inconvenient, so \s-1GCC\s0 provides
8175 options that will switch to another cross-compiler or version.
8176 .IP "\fB\-b\fR \fImachine\fR" 4
8177 .IX Item "-b machine"
8178 The argument \fImachine\fR specifies the target machine for compilation.
8179 .Sp
8180 The value to use for \fImachine\fR is the same as was specified as the
8181 machine type when configuring \s-1GCC\s0 as a cross-compiler.  For
8182 example, if a cross-compiler was configured with \fBconfigure
8183 arm-elf\fR, meaning to compile for an arm processor with elf binaries,
8184 then you would specify \fB\-b arm-elf\fR to run that cross compiler.
8185 Because there are other options beginning with \fB\-b\fR, the
8186 configuration must contain a hyphen, or \fB\-b\fR alone should be one
8187 argument followed by the configuration in the next argument.
8188 .IP "\fB\-V\fR \fIversion\fR" 4
8189 .IX Item "-V version"
8190 The argument \fIversion\fR specifies which version of \s-1GCC\s0 to run.
8191 This is useful when multiple versions are installed.  For example,
8192 \&\fIversion\fR might be \fB4.0\fR, meaning to run \s-1GCC\s0 version 4.0.
8193 .PP
8194 The \fB\-V\fR and \fB\-b\fR options work by running the
8195 \&\fI<machine>\-gcc\-<version>\fR executable, so there's no real reason to
8196 use them if you can just run that directly.
8197 .SS "Hardware Models and Configurations"
8198 .IX Subsection "Hardware Models and Configurations"
8199 Earlier we discussed the standard option \fB\-b\fR which chooses among
8200 different installed compilers for completely different target
8201 machines, such as \s-1VAX\s0 vs. 68000 vs. 80386.
8202 .PP
8203 In addition, each of these target machine types can have its own
8204 special options, starting with \fB\-m\fR, to choose among various
8205 hardware models or configurations\-\-\-for example, 68010 vs 68020,
8206 floating coprocessor or none.  A single installed version of the
8207 compiler can compile for any model or configuration, according to the
8208 options specified.
8209 .PP
8210 Some configurations of the compiler also support additional special
8211 options, usually for compatibility with other compilers on the same
8212 platform.
8213 .PP
8214 \fI\s-1ARC\s0 Options\fR
8215 .IX Subsection "ARC Options"
8216 .PP
8217 These options are defined for \s-1ARC\s0 implementations:
8218 .IP "\fB\-EL\fR" 4
8219 .IX Item "-EL"
8220 Compile code for little endian mode.  This is the default.
8221 .IP "\fB\-EB\fR" 4
8222 .IX Item "-EB"
8223 Compile code for big endian mode.
8224 .IP "\fB\-mmangle\-cpu\fR" 4
8225 .IX Item "-mmangle-cpu"
8226 Prepend the name of the cpu to all public symbol names.
8227 In multiple-processor systems, there are many \s-1ARC\s0 variants with different
8228 instruction and register set characteristics.  This flag prevents code
8229 compiled for one cpu to be linked with code compiled for another.
8230 No facility exists for handling variants that are \*(L"almost identical\*(R".
8231 This is an all or nothing option.
8232 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
8233 .IX Item "-mcpu=cpu"
8234 Compile code for \s-1ARC\s0 variant \fIcpu\fR.
8235 Which variants are supported depend on the configuration.
8236 All variants support \fB\-mcpu=base\fR, this is the default.
8237 .IP "\fB\-mtext=\fR\fItext-section\fR" 4
8238 .IX Item "-mtext=text-section"
8239 .PD 0
8240 .IP "\fB\-mdata=\fR\fIdata-section\fR" 4
8241 .IX Item "-mdata=data-section"
8242 .IP "\fB\-mrodata=\fR\fIreadonly-data-section\fR" 4
8243 .IX Item "-mrodata=readonly-data-section"
8244 .PD
8245 Put functions, data, and readonly data in \fItext-section\fR,
8246 \&\fIdata-section\fR, and \fIreadonly-data-section\fR respectively
8247 by default.  This can be overridden with the \f(CW\*(C`section\*(C'\fR attribute.
8248 .IP "\fB\-mfix\-cortex\-m3\-ldrd\fR" 4
8249 .IX Item "-mfix-cortex-m3-ldrd"
8250 Some Cortex\-M3 cores can cause data corruption when \f(CW\*(C`ldrd\*(C'\fR instructions
8251 with overlapping destination and base registers are used.  This option avoids
8252 generating these instructions.  This option is enabled by default when
8253 \&\fB\-mcpu=cortex\-m3\fR is specified.
8254 .PP
8255 \fI\s-1ARM\s0 Options\fR
8256 .IX Subsection "ARM Options"
8257 .PP
8258 These \fB\-m\fR options are defined for Advanced \s-1RISC\s0 Machines (\s-1ARM\s0)
8259 architectures:
8260 .IP "\fB\-mabi=\fR\fIname\fR" 4
8261 .IX Item "-mabi=name"
8262 Generate code for the specified \s-1ABI\s0.  Permissible values are: \fBapcs-gnu\fR,
8263 \&\fBatpcs\fR, \fBaapcs\fR, \fBaapcs-linux\fR and \fBiwmmxt\fR.
8264 .IP "\fB\-mapcs\-frame\fR" 4
8265 .IX Item "-mapcs-frame"
8266 Generate a stack frame that is compliant with the \s-1ARM\s0 Procedure Call
8267 Standard for all functions, even if this is not strictly necessary for
8268 correct execution of the code.  Specifying \fB\-fomit\-frame\-pointer\fR
8269 with this option will cause the stack frames not to be generated for
8270 leaf functions.  The default is \fB\-mno\-apcs\-frame\fR.
8271 .IP "\fB\-mapcs\fR" 4
8272 .IX Item "-mapcs"
8273 This is a synonym for \fB\-mapcs\-frame\fR.
8274 .IP "\fB\-mthumb\-interwork\fR" 4
8275 .IX Item "-mthumb-interwork"
8276 Generate code which supports calling between the \s-1ARM\s0 and Thumb
8277 instruction sets.  Without this option the two instruction sets cannot
8278 be reliably used inside one program.  The default is
8279 \&\fB\-mno\-thumb\-interwork\fR, since slightly larger code is generated
8280 when \fB\-mthumb\-interwork\fR is specified.
8281 .IP "\fB\-mno\-sched\-prolog\fR" 4
8282 .IX Item "-mno-sched-prolog"
8283 Prevent the reordering of instructions in the function prolog, or the
8284 merging of those instruction with the instructions in the function's
8285 body.  This means that all functions will start with a recognizable set
8286 of instructions (or in fact one of a choice from a small set of
8287 different function prologues), and this information can be used to
8288 locate the start if functions inside an executable piece of code.  The
8289 default is \fB\-msched\-prolog\fR.
8290 .IP "\fB\-mfloat\-abi=\fR\fIname\fR" 4
8291 .IX Item "-mfloat-abi=name"
8292 Specifies which floating-point \s-1ABI\s0 to use.  Permissible values
8293 are: \fBsoft\fR, \fBsoftfp\fR and \fBhard\fR.
8294 .Sp
8295 Specifying \fBsoft\fR causes \s-1GCC\s0 to generate output containing 
8296 library calls for floating-point operations.
8297 \&\fBsoftfp\fR allows the generation of code using hardware floating-point 
8298 instructions, but still uses the soft-float calling conventions.  
8299 \&\fBhard\fR allows generation of floating-point instructions 
8300 and uses FPU-specific calling conventions.
8301 .Sp
8302 Using \fB\-mfloat\-abi=hard\fR with \s-1VFP\s0 coprocessors is not supported.
8303 Use \fB\-mfloat\-abi=softfp\fR with the appropriate \fB\-mfpu\fR option
8304 to allow the compiler to generate code that makes use of the hardware
8305 floating-point capabilities for these CPUs.
8306 .Sp
8307 The default depends on the specific target configuration.  Note that
8308 the hard-float and soft-float ABIs are not link-compatible; you must
8309 compile your entire program with the same \s-1ABI\s0, and link with a
8310 compatible set of libraries.
8311 .IP "\fB\-mhard\-float\fR" 4
8312 .IX Item "-mhard-float"
8313 Equivalent to \fB\-mfloat\-abi=hard\fR.
8314 .IP "\fB\-msoft\-float\fR" 4
8315 .IX Item "-msoft-float"
8316 Equivalent to \fB\-mfloat\-abi=soft\fR.
8317 .IP "\fB\-mlittle\-endian\fR" 4
8318 .IX Item "-mlittle-endian"
8319 Generate code for a processor running in little-endian mode.  This is
8320 the default for all standard configurations.
8321 .IP "\fB\-mbig\-endian\fR" 4
8322 .IX Item "-mbig-endian"
8323 Generate code for a processor running in big-endian mode; the default is
8324 to compile code for a little-endian processor.
8325 .IP "\fB\-mwords\-little\-endian\fR" 4
8326 .IX Item "-mwords-little-endian"
8327 This option only applies when generating code for big-endian processors.
8328 Generate code for a little-endian word order but a big-endian byte
8329 order.  That is, a byte order of the form \fB32107654\fR.  Note: this
8330 option should only be used if you require compatibility with code for
8331 big-endian \s-1ARM\s0 processors generated by versions of the compiler prior to
8332 2.8.
8333 .IP "\fB\-mcpu=\fR\fIname\fR" 4
8334 .IX Item "-mcpu=name"
8335 This specifies the name of the target \s-1ARM\s0 processor.  \s-1GCC\s0 uses this name
8336 to determine what kind of instructions it can emit when generating
8337 assembly code.  Permissible names are: \fBarm2\fR, \fBarm250\fR,
8338 \&\fBarm3\fR, \fBarm6\fR, \fBarm60\fR, \fBarm600\fR, \fBarm610\fR,
8339 \&\fBarm620\fR, \fBarm7\fR, \fBarm7m\fR, \fBarm7d\fR, \fBarm7dm\fR,
8340 \&\fBarm7di\fR, \fBarm7dmi\fR, \fBarm70\fR, \fBarm700\fR,
8341 \&\fBarm700i\fR, \fBarm710\fR, \fBarm710c\fR, \fBarm7100\fR,
8342 \&\fBarm720\fR,
8343 \&\fBarm7500\fR, \fBarm7500fe\fR, \fBarm7tdmi\fR, \fBarm7tdmi\-s\fR,
8344 \&\fBarm710t\fR, \fBarm720t\fR, \fBarm740t\fR,
8345 \&\fBstrongarm\fR, \fBstrongarm110\fR, \fBstrongarm1100\fR,
8346 \&\fBstrongarm1110\fR,
8347 \&\fBarm8\fR, \fBarm810\fR, \fBarm9\fR, \fBarm9e\fR, \fBarm920\fR,
8348 \&\fBarm920t\fR, \fBarm922t\fR, \fBarm946e\-s\fR, \fBarm966e\-s\fR,
8349 \&\fBarm968e\-s\fR, \fBarm926ej\-s\fR, \fBarm940t\fR, \fBarm9tdmi\fR,
8350 \&\fBarm10tdmi\fR, \fBarm1020t\fR, \fBarm1026ej\-s\fR,
8351 \&\fBarm10e\fR, \fBarm1020e\fR, \fBarm1022e\fR,
8352 \&\fBarm1136j\-s\fR, \fBarm1136jf\-s\fR, \fBmpcore\fR, \fBmpcorenovfp\fR,
8353 \&\fBarm1156t2\-s\fR, \fBarm1176jz\-s\fR, \fBarm1176jzf\-s\fR,
8354 \&\fBcortex\-a8\fR, \fBcortex\-a9\fR,
8355 \&\fBcortex\-r4\fR, \fBcortex\-r4f\fR, \fBcortex\-m3\fR,
8356 \&\fBcortex\-m1\fR,
8357 \&\fBxscale\fR, \fBiwmmxt\fR, \fBiwmmxt2\fR, \fBep9312\fR.
8358 .IP "\fB\-mtune=\fR\fIname\fR" 4
8359 .IX Item "-mtune=name"
8360 This option is very similar to the \fB\-mcpu=\fR option, except that
8361 instead of specifying the actual target processor type, and hence
8362 restricting which instructions can be used, it specifies that \s-1GCC\s0 should
8363 tune the performance of the code as if the target were of the type
8364 specified in this option, but still choosing the instructions that it
8365 will generate based on the cpu specified by a \fB\-mcpu=\fR option.
8366 For some \s-1ARM\s0 implementations better performance can be obtained by using
8367 this option.
8368 .IP "\fB\-march=\fR\fIname\fR" 4
8369 .IX Item "-march=name"
8370 This specifies the name of the target \s-1ARM\s0 architecture.  \s-1GCC\s0 uses this
8371 name to determine what kind of instructions it can emit when generating
8372 assembly code.  This option can be used in conjunction with or instead
8373 of the \fB\-mcpu=\fR option.  Permissible names are: \fBarmv2\fR,
8374 \&\fBarmv2a\fR, \fBarmv3\fR, \fBarmv3m\fR, \fBarmv4\fR, \fBarmv4t\fR,
8375 \&\fBarmv5\fR, \fBarmv5t\fR, \fBarmv5e\fR, \fBarmv5te\fR,
8376 \&\fBarmv6\fR, \fBarmv6j\fR,
8377 \&\fBarmv6t2\fR, \fBarmv6z\fR, \fBarmv6zk\fR, \fBarmv6\-m\fR,
8378 \&\fBarmv7\fR, \fBarmv7\-a\fR, \fBarmv7\-r\fR, \fBarmv7\-m\fR,
8379 \&\fBiwmmxt\fR, \fBiwmmxt2\fR, \fBep9312\fR.
8380 .IP "\fB\-mfpu=\fR\fIname\fR" 4
8381 .IX Item "-mfpu=name"
8382 .PD 0
8383 .IP "\fB\-mfpe=\fR\fInumber\fR" 4
8384 .IX Item "-mfpe=number"
8385 .IP "\fB\-mfp=\fR\fInumber\fR" 4
8386 .IX Item "-mfp=number"
8387 .PD
8388 This specifies what floating point hardware (or hardware emulation) is
8389 available on the target.  Permissible names are: \fBfpa\fR, \fBfpe2\fR,
8390 \&\fBfpe3\fR, \fBmaverick\fR, \fBvfp\fR, \fBvfpv3\fR, \fBvfpv3\-d16\fR and
8391 \&\fBneon\fR.  \fB\-mfp\fR and \fB\-mfpe\fR
8392 are synonyms for \fB\-mfpu\fR=\fBfpe\fR\fInumber\fR, for compatibility
8393 with older versions of \s-1GCC\s0.
8394 .Sp
8395 If \fB\-msoft\-float\fR is specified this specifies the format of
8396 floating point values.
8397 .IP "\fB\-mstructure\-size\-boundary=\fR\fIn\fR" 4
8398 .IX Item "-mstructure-size-boundary=n"
8399 The size of all structures and unions will be rounded up to a multiple
8400 of the number of bits set by this option.  Permissible values are 8, 32
8401 and 64.  The default value varies for different toolchains.  For the \s-1COFF\s0
8402 targeted toolchain the default value is 8.  A value of 64 is only allowed
8403 if the underlying \s-1ABI\s0 supports it.
8404 .Sp
8405 Specifying the larger number can produce faster, more efficient code, but
8406 can also increase the size of the program.  Different values are potentially
8407 incompatible.  Code compiled with one value cannot necessarily expect to
8408 work with code or libraries compiled with another value, if they exchange
8409 information using structures or unions.
8410 .IP "\fB\-mabort\-on\-noreturn\fR" 4
8411 .IX Item "-mabort-on-noreturn"
8412 Generate a call to the function \f(CW\*(C`abort\*(C'\fR at the end of a
8413 \&\f(CW\*(C`noreturn\*(C'\fR function.  It will be executed if the function tries to
8414 return.
8415 .IP "\fB\-mlong\-calls\fR" 4
8416 .IX Item "-mlong-calls"
8417 .PD 0
8418 .IP "\fB\-mno\-long\-calls\fR" 4
8419 .IX Item "-mno-long-calls"
8420 .PD
8421 Tells the compiler to perform function calls by first loading the
8422 address of the function into a register and then performing a subroutine
8423 call on this register.  This switch is needed if the target function
8424 will lie outside of the 64 megabyte addressing range of the offset based
8425 version of subroutine call instruction.
8426 .Sp
8427 Even if this switch is enabled, not all function calls will be turned
8428 into long calls.  The heuristic is that static functions, functions
8429 which have the \fBshort-call\fR attribute, functions that are inside
8430 the scope of a \fB#pragma no_long_calls\fR directive and functions whose
8431 definitions have already been compiled within the current compilation
8432 unit, will not be turned into long calls.  The exception to this rule is
8433 that weak function definitions, functions with the \fBlong-call\fR
8434 attribute or the \fBsection\fR attribute, and functions that are within
8435 the scope of a \fB#pragma long_calls\fR directive, will always be
8436 turned into long calls.
8437 .Sp
8438 This feature is not enabled by default.  Specifying
8439 \&\fB\-mno\-long\-calls\fR will restore the default behavior, as will
8440 placing the function calls within the scope of a \fB#pragma
8441 long_calls_off\fR directive.  Note these switches have no effect on how
8442 the compiler generates code to handle function calls via function
8443 pointers.
8444 .IP "\fB\-msingle\-pic\-base\fR" 4
8445 .IX Item "-msingle-pic-base"
8446 Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
8447 loading it in the prologue for each function.  The run-time system is
8448 responsible for initializing this register with an appropriate value
8449 before execution begins.
8450 .IP "\fB\-mpic\-register=\fR\fIreg\fR" 4
8451 .IX Item "-mpic-register=reg"
8452 Specify the register to be used for \s-1PIC\s0 addressing.  The default is R10
8453 unless stack-checking is enabled, when R9 is used.
8454 .IP "\fB\-mcirrus\-fix\-invalid\-insns\fR" 4
8455 .IX Item "-mcirrus-fix-invalid-insns"
8456 Insert NOPs into the instruction stream to in order to work around
8457 problems with invalid Maverick instruction combinations.  This option
8458 is only valid if the \fB\-mcpu=ep9312\fR option has been used to
8459 enable generation of instructions for the Cirrus Maverick floating
8460 point co-processor.  This option is not enabled by default, since the
8461 problem is only present in older Maverick implementations.  The default
8462 can be re-enabled by use of the \fB\-mno\-cirrus\-fix\-invalid\-insns\fR
8463 switch.
8464 .IP "\fB\-mpoke\-function\-name\fR" 4
8465 .IX Item "-mpoke-function-name"
8466 Write the name of each function into the text section, directly
8467 preceding the function prologue.  The generated code is similar to this:
8468 .Sp
8469 .Vb 9
8470 \&             t0
8471 \&                 .ascii "arm_poke_function_name", 0
8472 \&                 .align
8473 \&             t1
8474 \&                 .word 0xff000000 + (t1 \- t0)
8475 \&             arm_poke_function_name
8476 \&                 mov     ip, sp
8477 \&                 stmfd   sp!, {fp, ip, lr, pc}
8478 \&                 sub     fp, ip, #4
8479 .Ve
8480 .Sp
8481 When performing a stack backtrace, code can inspect the value of
8482 \&\f(CW\*(C`pc\*(C'\fR stored at \f(CW\*(C`fp + 0\*(C'\fR.  If the trace function then looks at
8483 location \f(CW\*(C`pc \- 12\*(C'\fR and the top 8 bits are set, then we know that
8484 there is a function name embedded immediately preceding this location
8485 and has length \f(CW\*(C`((pc[\-3]) & 0xff000000)\*(C'\fR.
8486 .IP "\fB\-mthumb\fR" 4
8487 .IX Item "-mthumb"
8488 Generate code for the Thumb instruction set.  The default is to
8489 use the 32\-bit \s-1ARM\s0 instruction set.
8490 This option automatically enables either 16\-bit Thumb\-1 or
8491 mixed 16/32\-bit Thumb\-2 instructions based on the \fB\-mcpu=\fR\fIname\fR
8492 and \fB\-march=\fR\fIname\fR options.
8493 .IP "\fB\-mtpcs\-frame\fR" 4
8494 .IX Item "-mtpcs-frame"
8495 Generate a stack frame that is compliant with the Thumb Procedure Call
8496 Standard for all non-leaf functions.  (A leaf function is one that does
8497 not call any other functions.)  The default is \fB\-mno\-tpcs\-frame\fR.
8498 .IP "\fB\-mtpcs\-leaf\-frame\fR" 4
8499 .IX Item "-mtpcs-leaf-frame"
8500 Generate a stack frame that is compliant with the Thumb Procedure Call
8501 Standard for all leaf functions.  (A leaf function is one that does
8502 not call any other functions.)  The default is \fB\-mno\-apcs\-leaf\-frame\fR.
8503 .IP "\fB\-mcallee\-super\-interworking\fR" 4
8504 .IX Item "-mcallee-super-interworking"
8505 Gives all externally visible functions in the file being compiled an \s-1ARM\s0
8506 instruction set header which switches to Thumb mode before executing the
8507 rest of the function.  This allows these functions to be called from
8508 non-interworking code.
8509 .IP "\fB\-mcaller\-super\-interworking\fR" 4
8510 .IX Item "-mcaller-super-interworking"
8511 Allows calls via function pointers (including virtual functions) to
8512 execute correctly regardless of whether the target code has been
8513 compiled for interworking or not.  There is a small overhead in the cost
8514 of executing a function pointer if this option is enabled.
8515 .IP "\fB\-mtp=\fR\fIname\fR" 4
8516 .IX Item "-mtp=name"
8517 Specify the access model for the thread local storage pointer.  The valid
8518 models are \fBsoft\fR, which generates calls to \f(CW\*(C`_\|_aeabi_read_tp\*(C'\fR,
8519 \&\fBcp15\fR, which fetches the thread pointer from \f(CW\*(C`cp15\*(C'\fR directly
8520 (supported in the arm6k architecture), and \fBauto\fR, which uses the
8521 best available method for the selected processor.  The default setting is
8522 \&\fBauto\fR.
8523 .IP "\fB\-mword\-relocations\fR" 4
8524 .IX Item "-mword-relocations"
8525 Only generate absolute relocations on word sized values (i.e. R_ARM_ABS32).
8526 This is enabled by default on targets (uClinux, SymbianOS) where the runtime
8527 loader imposes this restriction, and when \fB\-fpic\fR or \fB\-fPIC\fR
8528 is specified.
8529 .PP
8530 \fI\s-1AVR\s0 Options\fR
8531 .IX Subsection "AVR Options"
8532 .PP
8533 These options are defined for \s-1AVR\s0 implementations:
8534 .IP "\fB\-mmcu=\fR\fImcu\fR" 4
8535 .IX Item "-mmcu=mcu"
8536 Specify \s-1ATMEL\s0 \s-1AVR\s0 instruction set or \s-1MCU\s0 type.
8537 .Sp
8538 Instruction set avr1 is for the minimal \s-1AVR\s0 core, not supported by the C
8539 compiler, only for assembler programs (\s-1MCU\s0 types: at90s1200, attiny10,
8540 attiny11, attiny12, attiny15, attiny28).
8541 .Sp
8542 Instruction set avr2 (default) is for the classic \s-1AVR\s0 core with up to
8543 8K program memory space (\s-1MCU\s0 types: at90s2313, at90s2323, attiny22,
8544 at90s2333, at90s2343, at90s4414, at90s4433, at90s4434, at90s8515,
8545 at90c8534, at90s8535).
8546 .Sp
8547 Instruction set avr3 is for the classic \s-1AVR\s0 core with up to 128K program
8548 memory space (\s-1MCU\s0 types: atmega103, atmega603, at43usb320, at76c711).
8549 .Sp
8550 Instruction set avr4 is for the enhanced \s-1AVR\s0 core with up to 8K program
8551 memory space (\s-1MCU\s0 types: atmega8, atmega83, atmega85).
8552 .Sp
8553 Instruction set avr5 is for the enhanced \s-1AVR\s0 core with up to 128K program
8554 memory space (\s-1MCU\s0 types: atmega16, atmega161, atmega163, atmega32, atmega323,
8555 atmega64, atmega128, at43usb355, at94k).
8556 .IP "\fB\-msize\fR" 4
8557 .IX Item "-msize"
8558 Output instruction sizes to the asm file.
8559 .IP "\fB\-mno\-interrupts\fR" 4
8560 .IX Item "-mno-interrupts"
8561 Generated code is not compatible with hardware interrupts.
8562 Code size will be smaller.
8563 .IP "\fB\-mcall\-prologues\fR" 4
8564 .IX Item "-mcall-prologues"
8565 Functions prologues/epilogues expanded as call to appropriate
8566 subroutines.  Code size will be smaller.
8567 .IP "\fB\-mno\-tablejump\fR" 4
8568 .IX Item "-mno-tablejump"
8569 Do not generate tablejump insns which sometimes increase code size.
8570 The option is now deprecated in favor of the equivalent 
8571 \&\fB\-fno\-jump\-tables\fR
8572 .IP "\fB\-mtiny\-stack\fR" 4
8573 .IX Item "-mtiny-stack"
8574 Change only the low 8 bits of the stack pointer.
8575 .IP "\fB\-mint8\fR" 4
8576 .IX Item "-mint8"
8577 Assume int to be 8 bit integer.  This affects the sizes of all types: A
8578 char will be 1 byte, an int will be 1 byte, an long will be 2 bytes
8579 and long long will be 4 bytes.  Please note that this option does not
8580 comply to the C standards, but it will provide you with smaller code
8581 size.
8582 .PP
8583 \fIBlackfin Options\fR
8584 .IX Subsection "Blackfin Options"
8585 .IP "\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR]" 4
8586 .IX Item "-mcpu=cpu[-sirevision]"
8587 Specifies the name of the target Blackfin processor.  Currently, \fIcpu\fR
8588 can be one of \fBbf512\fR, \fBbf514\fR, \fBbf516\fR, \fBbf518\fR,
8589 \&\fBbf522\fR, \fBbf523\fR, \fBbf524\fR, \fBbf525\fR, \fBbf526\fR,
8590 \&\fBbf527\fR, \fBbf531\fR, \fBbf532\fR, \fBbf533\fR,
8591 \&\fBbf534\fR, \fBbf536\fR, \fBbf537\fR, \fBbf538\fR, \fBbf539\fR,
8592 \&\fBbf542\fR, \fBbf544\fR, \fBbf547\fR, \fBbf548\fR, \fBbf549\fR,
8593 \&\fBbf561\fR.
8594 The optional \fIsirevision\fR specifies the silicon revision of the target
8595 Blackfin processor.  Any workarounds available for the targeted silicon revision
8596 will be enabled.  If \fIsirevision\fR is \fBnone\fR, no workarounds are enabled.
8597 If \fIsirevision\fR is \fBany\fR, all workarounds for the targeted processor
8598 will be enabled.  The \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR macro is defined to two
8599 hexadecimal digits representing the major and minor numbers in the silicon
8600 revision.  If \fIsirevision\fR is \fBnone\fR, the \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR
8601 is not defined.  If \fIsirevision\fR is \fBany\fR, the
8602 \&\f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR is defined to be \f(CW0xffff\fR.
8603 If this optional \fIsirevision\fR is not used, \s-1GCC\s0 assumes the latest known
8604 silicon revision of the targeted Blackfin processor.
8605 .Sp
8606 Support for \fBbf561\fR is incomplete.  For \fBbf561\fR,
8607 Only the processor macro is defined.
8608 Without this option, \fBbf532\fR is used as the processor by default.
8609 The corresponding predefined processor macros for \fIcpu\fR is to
8610 be defined.  And for \fBbfin-elf\fR toolchain, this causes the hardware \s-1BSP\s0
8611 provided by libgloss to be linked in if \fB\-msim\fR is not given.
8612 .IP "\fB\-msim\fR" 4
8613 .IX Item "-msim"
8614 Specifies that the program will be run on the simulator.  This causes
8615 the simulator \s-1BSP\s0 provided by libgloss to be linked in.  This option
8616 has effect only for \fBbfin-elf\fR toolchain.
8617 Certain other options, such as \fB\-mid\-shared\-library\fR and
8618 \&\fB\-mfdpic\fR, imply \fB\-msim\fR.
8619 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
8620 .IX Item "-momit-leaf-frame-pointer"
8621 Don't keep the frame pointer in a register for leaf functions.  This
8622 avoids the instructions to save, set up and restore frame pointers and
8623 makes an extra register available in leaf functions.  The option
8624 \&\fB\-fomit\-frame\-pointer\fR removes the frame pointer for all functions
8625 which might make debugging harder.
8626 .IP "\fB\-mspecld\-anomaly\fR" 4
8627 .IX Item "-mspecld-anomaly"
8628 When enabled, the compiler will ensure that the generated code does not
8629 contain speculative loads after jump instructions. If this option is used,
8630 \&\f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_LOADS\*(C'\fR is defined.
8631 .IP "\fB\-mno\-specld\-anomaly\fR" 4
8632 .IX Item "-mno-specld-anomaly"
8633 Don't generate extra code to prevent speculative loads from occurring.
8634 .IP "\fB\-mcsync\-anomaly\fR" 4
8635 .IX Item "-mcsync-anomaly"
8636 When enabled, the compiler will ensure that the generated code does not
8637 contain \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions too soon after conditional branches.
8638 If this option is used, \f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_SYNCS\*(C'\fR is defined.
8639 .IP "\fB\-mno\-csync\-anomaly\fR" 4
8640 .IX Item "-mno-csync-anomaly"
8641 Don't generate extra code to prevent \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions from
8642 occurring too soon after a conditional branch.
8643 .IP "\fB\-mlow\-64k\fR" 4
8644 .IX Item "-mlow-64k"
8645 When enabled, the compiler is free to take advantage of the knowledge that
8646 the entire program fits into the low 64k of memory.
8647 .IP "\fB\-mno\-low\-64k\fR" 4
8648 .IX Item "-mno-low-64k"
8649 Assume that the program is arbitrarily large.  This is the default.
8650 .IP "\fB\-mstack\-check\-l1\fR" 4
8651 .IX Item "-mstack-check-l1"
8652 Do stack checking using information placed into L1 scratchpad memory by the
8653 uClinux kernel.
8654 .IP "\fB\-mid\-shared\-library\fR" 4
8655 .IX Item "-mid-shared-library"
8656 Generate code that supports shared libraries via the library \s-1ID\s0 method.
8657 This allows for execute in place and shared libraries in an environment
8658 without virtual memory management.  This option implies \fB\-fPIC\fR.
8659 With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
8660 .IP "\fB\-mno\-id\-shared\-library\fR" 4
8661 .IX Item "-mno-id-shared-library"
8662 Generate code that doesn't assume \s-1ID\s0 based shared libraries are being used.
8663 This is the default.
8664 .IP "\fB\-mleaf\-id\-shared\-library\fR" 4
8665 .IX Item "-mleaf-id-shared-library"
8666 Generate code that supports shared libraries via the library \s-1ID\s0 method,
8667 but assumes that this library or executable won't link against any other
8668 \&\s-1ID\s0 shared libraries.  That allows the compiler to use faster code for jumps
8669 and calls.
8670 .IP "\fB\-mno\-leaf\-id\-shared\-library\fR" 4
8671 .IX Item "-mno-leaf-id-shared-library"
8672 Do not assume that the code being compiled won't link against any \s-1ID\s0 shared
8673 libraries.  Slower code will be generated for jump and call insns.
8674 .IP "\fB\-mshared\-library\-id=n\fR" 4
8675 .IX Item "-mshared-library-id=n"
8676 Specified the identification number of the \s-1ID\s0 based shared library being
8677 compiled.  Specifying a value of 0 will generate more compact code, specifying
8678 other values will force the allocation of that number to the current
8679 library but is no more space or time efficient than omitting this option.
8680 .IP "\fB\-msep\-data\fR" 4
8681 .IX Item "-msep-data"
8682 Generate code that allows the data segment to be located in a different
8683 area of memory from the text segment.  This allows for execute in place in
8684 an environment without virtual memory management by eliminating relocations
8685 against the text section.
8686 .IP "\fB\-mno\-sep\-data\fR" 4
8687 .IX Item "-mno-sep-data"
8688 Generate code that assumes that the data segment follows the text segment.
8689 This is the default.
8690 .IP "\fB\-mlong\-calls\fR" 4
8691 .IX Item "-mlong-calls"
8692 .PD 0
8693 .IP "\fB\-mno\-long\-calls\fR" 4
8694 .IX Item "-mno-long-calls"
8695 .PD
8696 Tells the compiler to perform function calls by first loading the
8697 address of the function into a register and then performing a subroutine
8698 call on this register.  This switch is needed if the target function
8699 will lie outside of the 24 bit addressing range of the offset based
8700 version of subroutine call instruction.
8701 .Sp
8702 This feature is not enabled by default.  Specifying
8703 \&\fB\-mno\-long\-calls\fR will restore the default behavior.  Note these
8704 switches have no effect on how the compiler generates code to handle
8705 function calls via function pointers.
8706 .IP "\fB\-mfast\-fp\fR" 4
8707 .IX Item "-mfast-fp"
8708 Link with the fast floating-point library. This library relaxes some of
8709 the \s-1IEEE\s0 floating-point standard's rules for checking inputs against
8710 Not-a-Number (\s-1NAN\s0), in the interest of performance.
8711 .IP "\fB\-minline\-plt\fR" 4
8712 .IX Item "-minline-plt"
8713 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
8714 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
8715 .IP "\fB\-mmulticore\fR" 4
8716 .IX Item "-mmulticore"
8717 Build standalone application for multicore Blackfin processor. Proper
8718 start files and link scripts will be used to support multicore.
8719 This option defines \f(CW\*(C`_\|_BFIN_MULTICORE\*(C'\fR. It can only be used with
8720 \&\fB\-mcpu=bf561\fR[\fB\-\fR\fIsirevision\fR]. It can be used with
8721 \&\fB\-mcorea\fR or \fB\-mcoreb\fR. If it's used without
8722 \&\fB\-mcorea\fR or \fB\-mcoreb\fR, single application/dual core
8723 programming model is used. In this model, the main function of Core B
8724 should be named as coreb_main. If it's used with \fB\-mcorea\fR or
8725 \&\fB\-mcoreb\fR, one application per core programming model is used.
8726 If this option is not used, single core application programming
8727 model is used.
8728 .IP "\fB\-mcorea\fR" 4
8729 .IX Item "-mcorea"
8730 Build standalone application for Core A of \s-1BF561\s0 when using
8731 one application per core programming model. Proper start files
8732 and link scripts will be used to support Core A. This option
8733 defines \f(CW\*(C`_\|_BFIN_COREA\*(C'\fR. It must be used with \fB\-mmulticore\fR.
8734 .IP "\fB\-mcoreb\fR" 4
8735 .IX Item "-mcoreb"
8736 Build standalone application for Core B of \s-1BF561\s0 when using
8737 one application per core programming model. Proper start files
8738 and link scripts will be used to support Core B. This option
8739 defines \f(CW\*(C`_\|_BFIN_COREB\*(C'\fR. When this option is used, coreb_main
8740 should be used instead of main. It must be used with
8741 \&\fB\-mmulticore\fR.
8742 .IP "\fB\-msdram\fR" 4
8743 .IX Item "-msdram"
8744 Build standalone application for \s-1SDRAM\s0. Proper start files and
8745 link scripts will be used to put the application into \s-1SDRAM\s0.
8746 Loader should initialize \s-1SDRAM\s0 before loading the application
8747 into \s-1SDRAM\s0. This option defines \f(CW\*(C`_\|_BFIN_SDRAM\*(C'\fR.
8748 .IP "\fB\-micplb\fR" 4
8749 .IX Item "-micplb"
8750 Assume that ICPLBs are enabled at runtime.  This has an effect on certain
8751 anomaly workarounds.  For Linux targets, the default is to assume ICPLBs
8752 are enabled; for standalone applications the default is off.
8753 .PP
8754 \fI\s-1CRIS\s0 Options\fR
8755 .IX Subsection "CRIS Options"
8756 .PP
8757 These options are defined specifically for the \s-1CRIS\s0 ports.
8758 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
8759 .IX Item "-march=architecture-type"
8760 .PD 0
8761 .IP "\fB\-mcpu=\fR\fIarchitecture-type\fR" 4
8762 .IX Item "-mcpu=architecture-type"
8763 .PD
8764 Generate code for the specified architecture.  The choices for
8765 \&\fIarchitecture-type\fR are \fBv3\fR, \fBv8\fR and \fBv10\fR for
8766 respectively \s-1ETRAX\s0\ 4, \s-1ETRAX\s0\ 100, and \s-1ETRAX\s0\ 100\ \s-1LX\s0.
8767 Default is \fBv0\fR except for cris-axis-linux-gnu, where the default is
8768 \&\fBv10\fR.
8769 .IP "\fB\-mtune=\fR\fIarchitecture-type\fR" 4
8770 .IX Item "-mtune=architecture-type"
8771 Tune to \fIarchitecture-type\fR everything applicable about the generated
8772 code, except for the \s-1ABI\s0 and the set of available instructions.  The
8773 choices for \fIarchitecture-type\fR are the same as for
8774 \&\fB\-march=\fR\fIarchitecture-type\fR.
8775 .IP "\fB\-mmax\-stack\-frame=\fR\fIn\fR" 4
8776 .IX Item "-mmax-stack-frame=n"
8777 Warn when the stack frame of a function exceeds \fIn\fR bytes.
8778 .IP "\fB\-metrax4\fR" 4
8779 .IX Item "-metrax4"
8780 .PD 0
8781 .IP "\fB\-metrax100\fR" 4
8782 .IX Item "-metrax100"
8783 .PD
8784 The options \fB\-metrax4\fR and \fB\-metrax100\fR are synonyms for
8785 \&\fB\-march=v3\fR and \fB\-march=v8\fR respectively.
8786 .IP "\fB\-mmul\-bug\-workaround\fR" 4
8787 .IX Item "-mmul-bug-workaround"
8788 .PD 0
8789 .IP "\fB\-mno\-mul\-bug\-workaround\fR" 4
8790 .IX Item "-mno-mul-bug-workaround"
8791 .PD
8792 Work around a bug in the \f(CW\*(C`muls\*(C'\fR and \f(CW\*(C`mulu\*(C'\fR instructions for \s-1CPU\s0
8793 models where it applies.  This option is active by default.
8794 .IP "\fB\-mpdebug\fR" 4
8795 .IX Item "-mpdebug"
8796 Enable CRIS-specific verbose debug-related information in the assembly
8797 code.  This option also has the effect to turn off the \fB#NO_APP\fR
8798 formatted-code indicator to the assembler at the beginning of the
8799 assembly file.
8800 .IP "\fB\-mcc\-init\fR" 4
8801 .IX Item "-mcc-init"
8802 Do not use condition-code results from previous instruction; always emit
8803 compare and test instructions before use of condition codes.
8804 .IP "\fB\-mno\-side\-effects\fR" 4
8805 .IX Item "-mno-side-effects"
8806 Do not emit instructions with side-effects in addressing modes other than
8807 post-increment.
8808 .IP "\fB\-mstack\-align\fR" 4
8809 .IX Item "-mstack-align"
8810 .PD 0
8811 .IP "\fB\-mno\-stack\-align\fR" 4
8812 .IX Item "-mno-stack-align"
8813 .IP "\fB\-mdata\-align\fR" 4
8814 .IX Item "-mdata-align"
8815 .IP "\fB\-mno\-data\-align\fR" 4
8816 .IX Item "-mno-data-align"
8817 .IP "\fB\-mconst\-align\fR" 4
8818 .IX Item "-mconst-align"
8819 .IP "\fB\-mno\-const\-align\fR" 4
8820 .IX Item "-mno-const-align"
8821 .PD
8822 These options (no-options) arranges (eliminate arrangements) for the
8823 stack-frame, individual data and constants to be aligned for the maximum
8824 single data access size for the chosen \s-1CPU\s0 model.  The default is to
8825 arrange for 32\-bit alignment.  \s-1ABI\s0 details such as structure layout are
8826 not affected by these options.
8827 .IP "\fB\-m32\-bit\fR" 4
8828 .IX Item "-m32-bit"
8829 .PD 0
8830 .IP "\fB\-m16\-bit\fR" 4
8831 .IX Item "-m16-bit"
8832 .IP "\fB\-m8\-bit\fR" 4
8833 .IX Item "-m8-bit"
8834 .PD
8835 Similar to the stack\- data\- and const-align options above, these options
8836 arrange for stack-frame, writable data and constants to all be 32\-bit,
8837 16\-bit or 8\-bit aligned.  The default is 32\-bit alignment.
8838 .IP "\fB\-mno\-prologue\-epilogue\fR" 4
8839 .IX Item "-mno-prologue-epilogue"
8840 .PD 0
8841 .IP "\fB\-mprologue\-epilogue\fR" 4
8842 .IX Item "-mprologue-epilogue"
8843 .PD
8844 With \fB\-mno\-prologue\-epilogue\fR, the normal function prologue and
8845 epilogue that sets up the stack-frame are omitted and no return
8846 instructions or return sequences are generated in the code.  Use this
8847 option only together with visual inspection of the compiled code: no
8848 warnings or errors are generated when call-saved registers must be saved,
8849 or storage for local variable needs to be allocated.
8850 .IP "\fB\-mno\-gotplt\fR" 4
8851 .IX Item "-mno-gotplt"
8852 .PD 0
8853 .IP "\fB\-mgotplt\fR" 4
8854 .IX Item "-mgotplt"
8855 .PD
8856 With \fB\-fpic\fR and \fB\-fPIC\fR, don't generate (do generate)
8857 instruction sequences that load addresses for functions from the \s-1PLT\s0 part
8858 of the \s-1GOT\s0 rather than (traditional on other architectures) calls to the
8859 \&\s-1PLT\s0.  The default is \fB\-mgotplt\fR.
8860 .IP "\fB\-melf\fR" 4
8861 .IX Item "-melf"
8862 Legacy no-op option only recognized with the cris-axis-elf and
8863 cris-axis-linux-gnu targets.
8864 .IP "\fB\-mlinux\fR" 4
8865 .IX Item "-mlinux"
8866 Legacy no-op option only recognized with the cris-axis-linux-gnu target.
8867 .IP "\fB\-sim\fR" 4
8868 .IX Item "-sim"
8869 This option, recognized for the cris-axis-elf arranges
8870 to link with input-output functions from a simulator library.  Code,
8871 initialized data and zero-initialized data are allocated consecutively.
8872 .IP "\fB\-sim2\fR" 4
8873 .IX Item "-sim2"
8874 Like \fB\-sim\fR, but pass linker options to locate initialized data at
8875 0x40000000 and zero-initialized data at 0x80000000.
8876 .PP
8877 \fI\s-1CRX\s0 Options\fR
8878 .IX Subsection "CRX Options"
8879 .PP
8880 These options are defined specifically for the \s-1CRX\s0 ports.
8881 .IP "\fB\-mmac\fR" 4
8882 .IX Item "-mmac"
8883 Enable the use of multiply-accumulate instructions. Disabled by default.
8884 .IP "\fB\-mpush\-args\fR" 4
8885 .IX Item "-mpush-args"
8886 Push instructions will be used to pass outgoing arguments when functions
8887 are called. Enabled by default.
8888 .PP
8889 \fIDarwin Options\fR
8890 .IX Subsection "Darwin Options"
8891 .PP
8892 These options are defined for all architectures running the Darwin operating
8893 system.
8894 .PP
8895 \&\s-1FSF\s0 \s-1GCC\s0 on Darwin does not create \*(L"fat\*(R" object files; it will create
8896 an object file for the single architecture that it was built to
8897 target.  Apple's \s-1GCC\s0 on Darwin does create \*(L"fat\*(R" files if multiple
8898 \&\fB\-arch\fR options are used; it does so by running the compiler or
8899 linker multiple times and joining the results together with
8900 \&\fIlipo\fR.
8901 .PP
8902 The subtype of the file created (like \fBppc7400\fR or \fBppc970\fR or
8903 \&\fBi686\fR) is determined by the flags that specify the \s-1ISA\s0
8904 that \s-1GCC\s0 is targetting, like \fB\-mcpu\fR or \fB\-march\fR.  The
8905 \&\fB\-force_cpusubtype_ALL\fR option can be used to override this.
8906 .PP
8907 The Darwin tools vary in their behavior when presented with an \s-1ISA\s0
8908 mismatch.  The assembler, \fIas\fR, will only permit instructions to
8909 be used that are valid for the subtype of the file it is generating,
8910 so you cannot put 64\-bit instructions in an \fBppc750\fR object file.
8911 The linker for shared libraries, \fI/usr/bin/libtool\fR, will fail
8912 and print an error if asked to create a shared library with a less
8913 restrictive subtype than its input files (for instance, trying to put
8914 a \fBppc970\fR object file in a \fBppc7400\fR library).  The linker
8915 for executables, \fIld\fR, will quietly give the executable the most
8916 restrictive subtype of any of its input files.
8917 .IP "\fB\-F\fR\fIdir\fR" 4
8918 .IX Item "-Fdir"
8919 Add the framework directory \fIdir\fR to the head of the list of
8920 directories to be searched for header files.  These directories are
8921 interleaved with those specified by \fB\-I\fR options and are
8922 scanned in a left-to-right order.
8923 .Sp
8924 A framework directory is a directory with frameworks in it.  A
8925 framework is a directory with a \fB\*(L"Headers\*(R"\fR and/or
8926 \&\fB\*(L"PrivateHeaders\*(R"\fR directory contained directly in it that ends
8927 in \fB\*(L".framework\*(R"\fR.  The name of a framework is the name of this
8928 directory excluding the \fB\*(L".framework\*(R"\fR.  Headers associated with
8929 the framework are found in one of those two directories, with
8930 \&\fB\*(L"Headers\*(R"\fR being searched first.  A subframework is a framework
8931 directory that is in a framework's \fB\*(L"Frameworks\*(R"\fR directory.
8932 Includes of subframework headers can only appear in a header of a
8933 framework that contains the subframework, or in a sibling subframework
8934 header.  Two subframeworks are siblings if they occur in the same
8935 framework.  A subframework should not have the same name as a
8936 framework, a warning will be issued if this is violated.  Currently a
8937 subframework cannot have subframeworks, in the future, the mechanism
8938 may be extended to support this.  The standard frameworks can be found
8939 in \fB\*(L"/System/Library/Frameworks\*(R"\fR and
8940 \&\fB\*(L"/Library/Frameworks\*(R"\fR.  An example include looks like
8941 \&\f(CW\*(C`#include <Framework/header.h>\*(C'\fR, where \fBFramework\fR denotes
8942 the name of the framework and header.h is found in the
8943 \&\fB\*(L"PrivateHeaders\*(R"\fR or \fB\*(L"Headers\*(R"\fR directory.
8944 .IP "\fB\-iframework\fR\fIdir\fR" 4
8945 .IX Item "-iframeworkdir"
8946 Like \fB\-F\fR except the directory is a treated as a system
8947 directory.  The main difference between this \fB\-iframework\fR and
8948 \&\fB\-F\fR is that with \fB\-iframework\fR the compiler does not
8949 warn about constructs contained within header files found via
8950 \&\fIdir\fR.  This option is valid only for the C family of languages.
8951 .IP "\fB\-gused\fR" 4
8952 .IX Item "-gused"
8953 Emit debugging information for symbols that are used.  For \s-1STABS\s0
8954 debugging format, this enables \fB\-feliminate\-unused\-debug\-symbols\fR.
8955 This is by default \s-1ON\s0.
8956 .IP "\fB\-gfull\fR" 4
8957 .IX Item "-gfull"
8958 Emit debugging information for all symbols and types.
8959 .IP "\fB\-mmacosx\-version\-min=\fR\fIversion\fR" 4
8960 .IX Item "-mmacosx-version-min=version"
8961 The earliest version of MacOS X that this executable will run on
8962 is \fIversion\fR.  Typical values of \fIversion\fR include \f(CW10.1\fR,
8963 \&\f(CW10.2\fR, and \f(CW10.3.9\fR.
8964 .Sp
8965 If the compiler was built to use the system's headers by default,
8966 then the default for this option is the system version on which the
8967 compiler is running, otherwise the default is to make choices which
8968 are compatible with as many systems and code bases as possible.
8969 .IP "\fB\-mkernel\fR" 4
8970 .IX Item "-mkernel"
8971 Enable kernel development mode.  The \fB\-mkernel\fR option sets
8972 \&\fB\-static\fR, \fB\-fno\-common\fR, \fB\-fno\-cxa\-atexit\fR,
8973 \&\fB\-fno\-exceptions\fR, \fB\-fno\-non\-call\-exceptions\fR,
8974 \&\fB\-fapple\-kext\fR, \fB\-fno\-weak\fR and \fB\-fno\-rtti\fR where
8975 applicable.  This mode also sets \fB\-mno\-altivec\fR,
8976 \&\fB\-msoft\-float\fR, \fB\-fno\-builtin\fR and
8977 \&\fB\-mlong\-branch\fR for PowerPC targets.
8978 .IP "\fB\-mone\-byte\-bool\fR" 4
8979 .IX Item "-mone-byte-bool"
8980 Override the defaults for \fBbool\fR so that \fBsizeof(bool)==1\fR.
8981 By default \fBsizeof(bool)\fR is \fB4\fR when compiling for
8982 Darwin/PowerPC and \fB1\fR when compiling for Darwin/x86, so this
8983 option has no effect on x86.
8984 .Sp
8985 \&\fBWarning:\fR The \fB\-mone\-byte\-bool\fR switch causes \s-1GCC\s0
8986 to generate code that is not binary compatible with code generated
8987 without that switch.  Using this switch may require recompiling all
8988 other modules in a program, including system libraries.  Use this
8989 switch to conform to a non-default data model.
8990 .IP "\fB\-mfix\-and\-continue\fR" 4
8991 .IX Item "-mfix-and-continue"
8992 .PD 0
8993 .IP "\fB\-ffix\-and\-continue\fR" 4
8994 .IX Item "-ffix-and-continue"
8995 .IP "\fB\-findirect\-data\fR" 4
8996 .IX Item "-findirect-data"
8997 .PD
8998 Generate code suitable for fast turn around development.  Needed to
8999 enable gdb to dynamically load \f(CW\*(C`.o\*(C'\fR files into already running
9000 programs.  \fB\-findirect\-data\fR and \fB\-ffix\-and\-continue\fR
9001 are provided for backwards compatibility.
9002 .IP "\fB\-all_load\fR" 4
9003 .IX Item "-all_load"
9004 Loads all members of static archive libraries.
9005 See man \fIld\fR\|(1) for more information.
9006 .IP "\fB\-arch_errors_fatal\fR" 4
9007 .IX Item "-arch_errors_fatal"
9008 Cause the errors having to do with files that have the wrong architecture
9009 to be fatal.
9010 .IP "\fB\-bind_at_load\fR" 4
9011 .IX Item "-bind_at_load"
9012 Causes the output file to be marked such that the dynamic linker will
9013 bind all undefined references when the file is loaded or launched.
9014 .IP "\fB\-bundle\fR" 4
9015 .IX Item "-bundle"
9016 Produce a Mach-o bundle format file.
9017 See man \fIld\fR\|(1) for more information.
9018 .IP "\fB\-bundle_loader\fR \fIexecutable\fR" 4
9019 .IX Item "-bundle_loader executable"
9020 This option specifies the \fIexecutable\fR that will be loading the build
9021 output file being linked.  See man \fIld\fR\|(1) for more information.
9022 .IP "\fB\-dynamiclib\fR" 4
9023 .IX Item "-dynamiclib"
9024 When passed this option, \s-1GCC\s0 will produce a dynamic library instead of
9025 an executable when linking, using the Darwin \fIlibtool\fR command.
9026 .IP "\fB\-force_cpusubtype_ALL\fR" 4
9027 .IX Item "-force_cpusubtype_ALL"
9028 This causes \s-1GCC\s0's output file to have the \fI\s-1ALL\s0\fR subtype, instead of
9029 one controlled by the \fB\-mcpu\fR or \fB\-march\fR option.
9030 .IP "\fB\-allowable_client\fR  \fIclient_name\fR" 4
9031 .IX Item "-allowable_client  client_name"
9032 .PD 0
9033 .IP "\fB\-client_name\fR" 4
9034 .IX Item "-client_name"
9035 .IP "\fB\-compatibility_version\fR" 4
9036 .IX Item "-compatibility_version"
9037 .IP "\fB\-current_version\fR" 4
9038 .IX Item "-current_version"
9039 .IP "\fB\-dead_strip\fR" 4
9040 .IX Item "-dead_strip"
9041 .IP "\fB\-dependency\-file\fR" 4
9042 .IX Item "-dependency-file"
9043 .IP "\fB\-dylib_file\fR" 4
9044 .IX Item "-dylib_file"
9045 .IP "\fB\-dylinker_install_name\fR" 4
9046 .IX Item "-dylinker_install_name"
9047 .IP "\fB\-dynamic\fR" 4
9048 .IX Item "-dynamic"
9049 .IP "\fB\-exported_symbols_list\fR" 4
9050 .IX Item "-exported_symbols_list"
9051 .IP "\fB\-filelist\fR" 4
9052 .IX Item "-filelist"
9053 .IP "\fB\-flat_namespace\fR" 4
9054 .IX Item "-flat_namespace"
9055 .IP "\fB\-force_flat_namespace\fR" 4
9056 .IX Item "-force_flat_namespace"
9057 .IP "\fB\-headerpad_max_install_names\fR" 4
9058 .IX Item "-headerpad_max_install_names"
9059 .IP "\fB\-image_base\fR" 4
9060 .IX Item "-image_base"
9061 .IP "\fB\-init\fR" 4
9062 .IX Item "-init"
9063 .IP "\fB\-install_name\fR" 4
9064 .IX Item "-install_name"
9065 .IP "\fB\-keep_private_externs\fR" 4
9066 .IX Item "-keep_private_externs"
9067 .IP "\fB\-multi_module\fR" 4
9068 .IX Item "-multi_module"
9069 .IP "\fB\-multiply_defined\fR" 4
9070 .IX Item "-multiply_defined"
9071 .IP "\fB\-multiply_defined_unused\fR" 4
9072 .IX Item "-multiply_defined_unused"
9073 .IP "\fB\-noall_load\fR" 4
9074 .IX Item "-noall_load"
9075 .IP "\fB\-no_dead_strip_inits_and_terms\fR" 4
9076 .IX Item "-no_dead_strip_inits_and_terms"
9077 .IP "\fB\-nofixprebinding\fR" 4
9078 .IX Item "-nofixprebinding"
9079 .IP "\fB\-nomultidefs\fR" 4
9080 .IX Item "-nomultidefs"
9081 .IP "\fB\-noprebind\fR" 4
9082 .IX Item "-noprebind"
9083 .IP "\fB\-noseglinkedit\fR" 4
9084 .IX Item "-noseglinkedit"
9085 .IP "\fB\-pagezero_size\fR" 4
9086 .IX Item "-pagezero_size"
9087 .IP "\fB\-prebind\fR" 4
9088 .IX Item "-prebind"
9089 .IP "\fB\-prebind_all_twolevel_modules\fR" 4
9090 .IX Item "-prebind_all_twolevel_modules"
9091 .IP "\fB\-private_bundle\fR" 4
9092 .IX Item "-private_bundle"
9093 .IP "\fB\-read_only_relocs\fR" 4
9094 .IX Item "-read_only_relocs"
9095 .IP "\fB\-sectalign\fR" 4
9096 .IX Item "-sectalign"
9097 .IP "\fB\-sectobjectsymbols\fR" 4
9098 .IX Item "-sectobjectsymbols"
9099 .IP "\fB\-whyload\fR" 4
9100 .IX Item "-whyload"
9101 .IP "\fB\-seg1addr\fR" 4
9102 .IX Item "-seg1addr"
9103 .IP "\fB\-sectcreate\fR" 4
9104 .IX Item "-sectcreate"
9105 .IP "\fB\-sectobjectsymbols\fR" 4
9106 .IX Item "-sectobjectsymbols"
9107 .IP "\fB\-sectorder\fR" 4
9108 .IX Item "-sectorder"
9109 .IP "\fB\-segaddr\fR" 4
9110 .IX Item "-segaddr"
9111 .IP "\fB\-segs_read_only_addr\fR" 4
9112 .IX Item "-segs_read_only_addr"
9113 .IP "\fB\-segs_read_write_addr\fR" 4
9114 .IX Item "-segs_read_write_addr"
9115 .IP "\fB\-seg_addr_table\fR" 4
9116 .IX Item "-seg_addr_table"
9117 .IP "\fB\-seg_addr_table_filename\fR" 4
9118 .IX Item "-seg_addr_table_filename"
9119 .IP "\fB\-seglinkedit\fR" 4
9120 .IX Item "-seglinkedit"
9121 .IP "\fB\-segprot\fR" 4
9122 .IX Item "-segprot"
9123 .IP "\fB\-segs_read_only_addr\fR" 4
9124 .IX Item "-segs_read_only_addr"
9125 .IP "\fB\-segs_read_write_addr\fR" 4
9126 .IX Item "-segs_read_write_addr"
9127 .IP "\fB\-single_module\fR" 4
9128 .IX Item "-single_module"
9129 .IP "\fB\-static\fR" 4
9130 .IX Item "-static"
9131 .IP "\fB\-sub_library\fR" 4
9132 .IX Item "-sub_library"
9133 .IP "\fB\-sub_umbrella\fR" 4
9134 .IX Item "-sub_umbrella"
9135 .IP "\fB\-twolevel_namespace\fR" 4
9136 .IX Item "-twolevel_namespace"
9137 .IP "\fB\-umbrella\fR" 4
9138 .IX Item "-umbrella"
9139 .IP "\fB\-undefined\fR" 4
9140 .IX Item "-undefined"
9141 .IP "\fB\-unexported_symbols_list\fR" 4
9142 .IX Item "-unexported_symbols_list"
9143 .IP "\fB\-weak_reference_mismatches\fR" 4
9144 .IX Item "-weak_reference_mismatches"
9145 .IP "\fB\-whatsloaded\fR" 4
9146 .IX Item "-whatsloaded"
9147 .PD
9148 These options are passed to the Darwin linker.  The Darwin linker man page
9149 describes them in detail.
9150 .PP
9151 \fI\s-1DEC\s0 Alpha Options\fR
9152 .IX Subsection "DEC Alpha Options"
9153 .PP
9154 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha implementations:
9155 .IP "\fB\-mno\-soft\-float\fR" 4
9156 .IX Item "-mno-soft-float"
9157 .PD 0
9158 .IP "\fB\-msoft\-float\fR" 4
9159 .IX Item "-msoft-float"
9160 .PD
9161 Use (do not use) the hardware floating-point instructions for
9162 floating-point operations.  When \fB\-msoft\-float\fR is specified,
9163 functions in \fIlibgcc.a\fR will be used to perform floating-point
9164 operations.  Unless they are replaced by routines that emulate the
9165 floating-point operations, or compiled in such a way as to call such
9166 emulations routines, these routines will issue floating-point
9167 operations.   If you are compiling for an Alpha without floating-point
9168 operations, you must ensure that the library is built so as not to call
9169 them.
9170 .Sp
9171 Note that Alpha implementations without floating-point operations are
9172 required to have floating-point registers.
9173 .IP "\fB\-mfp\-reg\fR" 4
9174 .IX Item "-mfp-reg"
9175 .PD 0
9176 .IP "\fB\-mno\-fp\-regs\fR" 4
9177 .IX Item "-mno-fp-regs"
9178 .PD
9179 Generate code that uses (does not use) the floating-point register set.
9180 \&\fB\-mno\-fp\-regs\fR implies \fB\-msoft\-float\fR.  If the floating-point
9181 register set is not used, floating point operands are passed in integer
9182 registers as if they were integers and floating-point results are passed
9183 in \f(CW$0\fR instead of \f(CW$f0\fR.  This is a non-standard calling sequence,
9184 so any function with a floating-point argument or return value called by code
9185 compiled with \fB\-mno\-fp\-regs\fR must also be compiled with that
9186 option.
9187 .Sp
9188 A typical use of this option is building a kernel that does not use,
9189 and hence need not save and restore, any floating-point registers.
9190 .IP "\fB\-mieee\fR" 4
9191 .IX Item "-mieee"
9192 The Alpha architecture implements floating-point hardware optimized for
9193 maximum performance.  It is mostly compliant with the \s-1IEEE\s0 floating
9194 point standard.  However, for full compliance, software assistance is
9195 required.  This option generates code fully \s-1IEEE\s0 compliant code
9196 \&\fIexcept\fR that the \fIinexact-flag\fR is not maintained (see below).
9197 If this option is turned on, the preprocessor macro \f(CW\*(C`_IEEE_FP\*(C'\fR is
9198 defined during compilation.  The resulting code is less efficient but is
9199 able to correctly support denormalized numbers and exceptional \s-1IEEE\s0
9200 values such as not-a-number and plus/minus infinity.  Other Alpha
9201 compilers call this option \fB\-ieee_with_no_inexact\fR.
9202 .IP "\fB\-mieee\-with\-inexact\fR" 4
9203 .IX Item "-mieee-with-inexact"
9204 This is like \fB\-mieee\fR except the generated code also maintains
9205 the \s-1IEEE\s0 \fIinexact-flag\fR.  Turning on this option causes the
9206 generated code to implement fully-compliant \s-1IEEE\s0 math.  In addition to
9207 \&\f(CW\*(C`_IEEE_FP\*(C'\fR, \f(CW\*(C`_IEEE_FP_EXACT\*(C'\fR is defined as a preprocessor
9208 macro.  On some Alpha implementations the resulting code may execute
9209 significantly slower than the code generated by default.  Since there is
9210 very little code that depends on the \fIinexact-flag\fR, you should
9211 normally not specify this option.  Other Alpha compilers call this
9212 option \fB\-ieee_with_inexact\fR.
9213 .IP "\fB\-mfp\-trap\-mode=\fR\fItrap-mode\fR" 4
9214 .IX Item "-mfp-trap-mode=trap-mode"
9215 This option controls what floating-point related traps are enabled.
9216 Other Alpha compilers call this option \fB\-fptm\fR \fItrap-mode\fR.
9217 The trap mode can be set to one of four values:
9218 .RS 4
9219 .IP "\fBn\fR" 4
9220 .IX Item "n"
9221 This is the default (normal) setting.  The only traps that are enabled
9222 are the ones that cannot be disabled in software (e.g., division by zero
9223 trap).
9224 .IP "\fBu\fR" 4
9225 .IX Item "u"
9226 In addition to the traps enabled by \fBn\fR, underflow traps are enabled
9227 as well.
9228 .IP "\fBsu\fR" 4
9229 .IX Item "su"
9230 Like \fBu\fR, but the instructions are marked to be safe for software
9231 completion (see Alpha architecture manual for details).
9232 .IP "\fBsui\fR" 4
9233 .IX Item "sui"
9234 Like \fBsu\fR, but inexact traps are enabled as well.
9235 .RE
9236 .RS 4
9237 .RE
9238 .IP "\fB\-mfp\-rounding\-mode=\fR\fIrounding-mode\fR" 4
9239 .IX Item "-mfp-rounding-mode=rounding-mode"
9240 Selects the \s-1IEEE\s0 rounding mode.  Other Alpha compilers call this option
9241 \&\fB\-fprm\fR \fIrounding-mode\fR.  The \fIrounding-mode\fR can be one
9242 of:
9243 .RS 4
9244 .IP "\fBn\fR" 4
9245 .IX Item "n"
9246 Normal \s-1IEEE\s0 rounding mode.  Floating point numbers are rounded towards
9247 the nearest machine number or towards the even machine number in case
9248 of a tie.
9249 .IP "\fBm\fR" 4
9250 .IX Item "m"
9251 Round towards minus infinity.
9252 .IP "\fBc\fR" 4
9253 .IX Item "c"
9254 Chopped rounding mode.  Floating point numbers are rounded towards zero.
9255 .IP "\fBd\fR" 4
9256 .IX Item "d"
9257 Dynamic rounding mode.  A field in the floating point control register
9258 (\fIfpcr\fR, see Alpha architecture reference manual) controls the
9259 rounding mode in effect.  The C library initializes this register for
9260 rounding towards plus infinity.  Thus, unless your program modifies the
9261 \&\fIfpcr\fR, \fBd\fR corresponds to round towards plus infinity.
9262 .RE
9263 .RS 4
9264 .RE
9265 .IP "\fB\-mtrap\-precision=\fR\fItrap-precision\fR" 4
9266 .IX Item "-mtrap-precision=trap-precision"
9267 In the Alpha architecture, floating point traps are imprecise.  This
9268 means without software assistance it is impossible to recover from a
9269 floating trap and program execution normally needs to be terminated.
9270 \&\s-1GCC\s0 can generate code that can assist operating system trap handlers
9271 in determining the exact location that caused a floating point trap.
9272 Depending on the requirements of an application, different levels of
9273 precisions can be selected:
9274 .RS 4
9275 .IP "\fBp\fR" 4
9276 .IX Item "p"
9277 Program precision.  This option is the default and means a trap handler
9278 can only identify which program caused a floating point exception.
9279 .IP "\fBf\fR" 4
9280 .IX Item "f"
9281 Function precision.  The trap handler can determine the function that
9282 caused a floating point exception.
9283 .IP "\fBi\fR" 4
9284 .IX Item "i"
9285 Instruction precision.  The trap handler can determine the exact
9286 instruction that caused a floating point exception.
9287 .RE
9288 .RS 4
9289 .Sp
9290 Other Alpha compilers provide the equivalent options called
9291 \&\fB\-scope_safe\fR and \fB\-resumption_safe\fR.
9292 .RE
9293 .IP "\fB\-mieee\-conformant\fR" 4
9294 .IX Item "-mieee-conformant"
9295 This option marks the generated code as \s-1IEEE\s0 conformant.  You must not
9296 use this option unless you also specify \fB\-mtrap\-precision=i\fR and either
9297 \&\fB\-mfp\-trap\-mode=su\fR or \fB\-mfp\-trap\-mode=sui\fR.  Its only effect
9298 is to emit the line \fB.eflag 48\fR in the function prologue of the
9299 generated assembly file.  Under \s-1DEC\s0 Unix, this has the effect that
9300 IEEE-conformant math library routines will be linked in.
9301 .IP "\fB\-mbuild\-constants\fR" 4
9302 .IX Item "-mbuild-constants"
9303 Normally \s-1GCC\s0 examines a 32\- or 64\-bit integer constant to
9304 see if it can construct it from smaller constants in two or three
9305 instructions.  If it cannot, it will output the constant as a literal and
9306 generate code to load it from the data segment at runtime.
9307 .Sp
9308 Use this option to require \s-1GCC\s0 to construct \fIall\fR integer constants
9309 using code, even if it takes more instructions (the maximum is six).
9310 .Sp
9311 You would typically use this option to build a shared library dynamic
9312 loader.  Itself a shared library, it must relocate itself in memory
9313 before it can find the variables and constants in its own data segment.
9314 .IP "\fB\-malpha\-as\fR" 4
9315 .IX Item "-malpha-as"
9316 .PD 0
9317 .IP "\fB\-mgas\fR" 4
9318 .IX Item "-mgas"
9319 .PD
9320 Select whether to generate code to be assembled by the vendor-supplied
9321 assembler (\fB\-malpha\-as\fR) or by the \s-1GNU\s0 assembler \fB\-mgas\fR.
9322 .IP "\fB\-mbwx\fR" 4
9323 .IX Item "-mbwx"
9324 .PD 0
9325 .IP "\fB\-mno\-bwx\fR" 4
9326 .IX Item "-mno-bwx"
9327 .IP "\fB\-mcix\fR" 4
9328 .IX Item "-mcix"
9329 .IP "\fB\-mno\-cix\fR" 4
9330 .IX Item "-mno-cix"
9331 .IP "\fB\-mfix\fR" 4
9332 .IX Item "-mfix"
9333 .IP "\fB\-mno\-fix\fR" 4
9334 .IX Item "-mno-fix"
9335 .IP "\fB\-mmax\fR" 4
9336 .IX Item "-mmax"
9337 .IP "\fB\-mno\-max\fR" 4
9338 .IX Item "-mno-max"
9339 .PD
9340 Indicate whether \s-1GCC\s0 should generate code to use the optional \s-1BWX\s0,
9341 \&\s-1CIX\s0, \s-1FIX\s0 and \s-1MAX\s0 instruction sets.  The default is to use the instruction
9342 sets supported by the \s-1CPU\s0 type specified via \fB\-mcpu=\fR option or that
9343 of the \s-1CPU\s0 on which \s-1GCC\s0 was built if none was specified.
9344 .IP "\fB\-mfloat\-vax\fR" 4
9345 .IX Item "-mfloat-vax"
9346 .PD 0
9347 .IP "\fB\-mfloat\-ieee\fR" 4
9348 .IX Item "-mfloat-ieee"
9349 .PD
9350 Generate code that uses (does not use) \s-1VAX\s0 F and G floating point
9351 arithmetic instead of \s-1IEEE\s0 single and double precision.
9352 .IP "\fB\-mexplicit\-relocs\fR" 4
9353 .IX Item "-mexplicit-relocs"
9354 .PD 0
9355 .IP "\fB\-mno\-explicit\-relocs\fR" 4
9356 .IX Item "-mno-explicit-relocs"
9357 .PD
9358 Older Alpha assemblers provided no way to generate symbol relocations
9359 except via assembler macros.  Use of these macros does not allow
9360 optimal instruction scheduling.  \s-1GNU\s0 binutils as of version 2.12
9361 supports a new syntax that allows the compiler to explicitly mark
9362 which relocations should apply to which instructions.  This option
9363 is mostly useful for debugging, as \s-1GCC\s0 detects the capabilities of
9364 the assembler when it is built and sets the default accordingly.
9365 .IP "\fB\-msmall\-data\fR" 4
9366 .IX Item "-msmall-data"
9367 .PD 0
9368 .IP "\fB\-mlarge\-data\fR" 4
9369 .IX Item "-mlarge-data"
9370 .PD
9371 When \fB\-mexplicit\-relocs\fR is in effect, static data is
9372 accessed via \fIgp-relative\fR relocations.  When \fB\-msmall\-data\fR
9373 is used, objects 8 bytes long or smaller are placed in a \fIsmall data area\fR
9374 (the \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR sections) and are accessed via
9375 16\-bit relocations off of the \f(CW$gp\fR register.  This limits the
9376 size of the small data area to 64KB, but allows the variables to be
9377 directly accessed via a single instruction.
9378 .Sp
9379 The default is \fB\-mlarge\-data\fR.  With this option the data area
9380 is limited to just below 2GB.  Programs that require more than 2GB of
9381 data must use \f(CW\*(C`malloc\*(C'\fR or \f(CW\*(C`mmap\*(C'\fR to allocate the data in the
9382 heap instead of in the program's data segment.
9383 .Sp
9384 When generating code for shared libraries, \fB\-fpic\fR implies
9385 \&\fB\-msmall\-data\fR and \fB\-fPIC\fR implies \fB\-mlarge\-data\fR.
9386 .IP "\fB\-msmall\-text\fR" 4
9387 .IX Item "-msmall-text"
9388 .PD 0
9389 .IP "\fB\-mlarge\-text\fR" 4
9390 .IX Item "-mlarge-text"
9391 .PD
9392 When \fB\-msmall\-text\fR is used, the compiler assumes that the
9393 code of the entire program (or shared library) fits in 4MB, and is
9394 thus reachable with a branch instruction.  When \fB\-msmall\-data\fR
9395 is used, the compiler can assume that all local symbols share the
9396 same \f(CW$gp\fR value, and thus reduce the number of instructions
9397 required for a function call from 4 to 1.
9398 .Sp
9399 The default is \fB\-mlarge\-text\fR.
9400 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
9401 .IX Item "-mcpu=cpu_type"
9402 Set the instruction set and instruction scheduling parameters for
9403 machine type \fIcpu_type\fR.  You can specify either the \fB\s-1EV\s0\fR
9404 style name or the corresponding chip number.  \s-1GCC\s0 supports scheduling
9405 parameters for the \s-1EV4\s0, \s-1EV5\s0 and \s-1EV6\s0 family of processors and will
9406 choose the default values for the instruction set from the processor
9407 you specify.  If you do not specify a processor type, \s-1GCC\s0 will default
9408 to the processor on which the compiler was built.
9409 .Sp
9410 Supported values for \fIcpu_type\fR are
9411 .RS 4
9412 .IP "\fBev4\fR" 4
9413 .IX Item "ev4"
9414 .PD 0
9415 .IP "\fBev45\fR" 4
9416 .IX Item "ev45"
9417 .IP "\fB21064\fR" 4
9418 .IX Item "21064"
9419 .PD
9420 Schedules as an \s-1EV4\s0 and has no instruction set extensions.
9421 .IP "\fBev5\fR" 4
9422 .IX Item "ev5"
9423 .PD 0
9424 .IP "\fB21164\fR" 4
9425 .IX Item "21164"
9426 .PD
9427 Schedules as an \s-1EV5\s0 and has no instruction set extensions.
9428 .IP "\fBev56\fR" 4
9429 .IX Item "ev56"
9430 .PD 0
9431 .IP "\fB21164a\fR" 4
9432 .IX Item "21164a"
9433 .PD
9434 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 extension.
9435 .IP "\fBpca56\fR" 4
9436 .IX Item "pca56"
9437 .PD 0
9438 .IP "\fB21164pc\fR" 4
9439 .IX Item "21164pc"
9440 .IP "\fB21164PC\fR" 4
9441 .IX Item "21164PC"
9442 .PD
9443 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 and \s-1MAX\s0 extensions.
9444 .IP "\fBev6\fR" 4
9445 .IX Item "ev6"
9446 .PD 0
9447 .IP "\fB21264\fR" 4
9448 .IX Item "21264"
9449 .PD
9450 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
9451 .IP "\fBev67\fR" 4
9452 .IX Item "ev67"
9453 .PD 0
9454 .IP "\fB21264a\fR" 4
9455 .IX Item "21264a"
9456 .PD
9457 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1CIX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
9458 .RE
9459 .RS 4
9460 .Sp
9461 Native Linux/GNU toolchains also support the value \fBnative\fR,
9462 which selects the best architecture option for the host processor.
9463 \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize
9464 the processor.
9465 .RE
9466 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
9467 .IX Item "-mtune=cpu_type"
9468 Set only the instruction scheduling parameters for machine type
9469 \&\fIcpu_type\fR.  The instruction set is not changed.
9470 .Sp
9471 Native Linux/GNU toolchains also support the value \fBnative\fR,
9472 which selects the best architecture option for the host processor.
9473 \&\fB\-mtune=native\fR has no effect if \s-1GCC\s0 does not recognize
9474 the processor.
9475 .IP "\fB\-mmemory\-latency=\fR\fItime\fR" 4
9476 .IX Item "-mmemory-latency=time"
9477 Sets the latency the scheduler should assume for typical memory
9478 references as seen by the application.  This number is highly
9479 dependent on the memory access patterns used by the application
9480 and the size of the external cache on the machine.
9481 .Sp
9482 Valid options for \fItime\fR are
9483 .RS 4
9484 .IP "\fInumber\fR" 4
9485 .IX Item "number"
9486 A decimal number representing clock cycles.
9487 .IP "\fBL1\fR" 4
9488 .IX Item "L1"
9489 .PD 0
9490 .IP "\fBL2\fR" 4
9491 .IX Item "L2"
9492 .IP "\fBL3\fR" 4
9493 .IX Item "L3"
9494 .IP "\fBmain\fR" 4
9495 .IX Item "main"
9496 .PD
9497 The compiler contains estimates of the number of clock cycles for
9498 \&\*(L"typical\*(R" \s-1EV4\s0 & \s-1EV5\s0 hardware for the Level 1, 2 & 3 caches
9499 (also called Dcache, Scache, and Bcache), as well as to main memory.
9500 Note that L3 is only valid for \s-1EV5\s0.
9501 .RE
9502 .RS 4
9503 .RE
9504 .PP
9505 \fI\s-1DEC\s0 Alpha/VMS Options\fR
9506 .IX Subsection "DEC Alpha/VMS Options"
9507 .PP
9508 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha/VMS implementations:
9509 .IP "\fB\-mvms\-return\-codes\fR" 4
9510 .IX Item "-mvms-return-codes"
9511 Return \s-1VMS\s0 condition codes from main.  The default is to return \s-1POSIX\s0
9512 style condition (e.g. error) codes.
9513 .PP
9514 \fI\s-1FR30\s0 Options\fR
9515 .IX Subsection "FR30 Options"
9516 .PP
9517 These options are defined specifically for the \s-1FR30\s0 port.
9518 .IP "\fB\-msmall\-model\fR" 4
9519 .IX Item "-msmall-model"
9520 Use the small address space model.  This can produce smaller code, but
9521 it does assume that all symbolic values and addresses will fit into a
9522 20\-bit range.
9523 .IP "\fB\-mno\-lsim\fR" 4
9524 .IX Item "-mno-lsim"
9525 Assume that run-time support has been provided and so there is no need
9526 to include the simulator library (\fIlibsim.a\fR) on the linker
9527 command line.
9528 .PP
9529 \fI\s-1FRV\s0 Options\fR
9530 .IX Subsection "FRV Options"
9531 .IP "\fB\-mgpr\-32\fR" 4
9532 .IX Item "-mgpr-32"
9533 Only use the first 32 general purpose registers.
9534 .IP "\fB\-mgpr\-64\fR" 4
9535 .IX Item "-mgpr-64"
9536 Use all 64 general purpose registers.
9537 .IP "\fB\-mfpr\-32\fR" 4
9538 .IX Item "-mfpr-32"
9539 Use only the first 32 floating point registers.
9540 .IP "\fB\-mfpr\-64\fR" 4
9541 .IX Item "-mfpr-64"
9542 Use all 64 floating point registers
9543 .IP "\fB\-mhard\-float\fR" 4
9544 .IX Item "-mhard-float"
9545 Use hardware instructions for floating point operations.
9546 .IP "\fB\-msoft\-float\fR" 4
9547 .IX Item "-msoft-float"
9548 Use library routines for floating point operations.
9549 .IP "\fB\-malloc\-cc\fR" 4
9550 .IX Item "-malloc-cc"
9551 Dynamically allocate condition code registers.
9552 .IP "\fB\-mfixed\-cc\fR" 4
9553 .IX Item "-mfixed-cc"
9554 Do not try to dynamically allocate condition code registers, only
9555 use \f(CW\*(C`icc0\*(C'\fR and \f(CW\*(C`fcc0\*(C'\fR.
9556 .IP "\fB\-mdword\fR" 4
9557 .IX Item "-mdword"
9558 Change \s-1ABI\s0 to use double word insns.
9559 .IP "\fB\-mno\-dword\fR" 4
9560 .IX Item "-mno-dword"
9561 Do not use double word instructions.
9562 .IP "\fB\-mdouble\fR" 4
9563 .IX Item "-mdouble"
9564 Use floating point double instructions.
9565 .IP "\fB\-mno\-double\fR" 4
9566 .IX Item "-mno-double"
9567 Do not use floating point double instructions.
9568 .IP "\fB\-mmedia\fR" 4
9569 .IX Item "-mmedia"
9570 Use media instructions.
9571 .IP "\fB\-mno\-media\fR" 4
9572 .IX Item "-mno-media"
9573 Do not use media instructions.
9574 .IP "\fB\-mmuladd\fR" 4
9575 .IX Item "-mmuladd"
9576 Use multiply and add/subtract instructions.
9577 .IP "\fB\-mno\-muladd\fR" 4
9578 .IX Item "-mno-muladd"
9579 Do not use multiply and add/subtract instructions.
9580 .IP "\fB\-mfdpic\fR" 4
9581 .IX Item "-mfdpic"
9582 Select the \s-1FDPIC\s0 \s-1ABI\s0, that uses function descriptors to represent
9583 pointers to functions.  Without any PIC/PIE\-related options, it
9584 implies \fB\-fPIE\fR.  With \fB\-fpic\fR or \fB\-fpie\fR, it
9585 assumes \s-1GOT\s0 entries and small data are within a 12\-bit range from the
9586 \&\s-1GOT\s0 base address; with \fB\-fPIC\fR or \fB\-fPIE\fR, \s-1GOT\s0 offsets
9587 are computed with 32 bits.
9588 With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
9589 .IP "\fB\-minline\-plt\fR" 4
9590 .IX Item "-minline-plt"
9591 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
9592 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
9593 It's enabled by default if optimizing for speed and compiling for
9594 shared libraries (i.e., \fB\-fPIC\fR or \fB\-fpic\fR), or when an
9595 optimization option such as \fB\-O3\fR or above is present in the
9596 command line.
9597 .IP "\fB\-mTLS\fR" 4
9598 .IX Item "-mTLS"
9599 Assume a large \s-1TLS\s0 segment when generating thread-local code.
9600 .IP "\fB\-mtls\fR" 4
9601 .IX Item "-mtls"
9602 Do not assume a large \s-1TLS\s0 segment when generating thread-local code.
9603 .IP "\fB\-mgprel\-ro\fR" 4
9604 .IX Item "-mgprel-ro"
9605 Enable the use of \f(CW\*(C`GPREL\*(C'\fR relocations in the \s-1FDPIC\s0 \s-1ABI\s0 for data
9606 that is known to be in read-only sections.  It's enabled by default,
9607 except for \fB\-fpic\fR or \fB\-fpie\fR: even though it may help
9608 make the global offset table smaller, it trades 1 instruction for 4.
9609 With \fB\-fPIC\fR or \fB\-fPIE\fR, it trades 3 instructions for 4,
9610 one of which may be shared by multiple symbols, and it avoids the need
9611 for a \s-1GOT\s0 entry for the referenced symbol, so it's more likely to be a
9612 win.  If it is not, \fB\-mno\-gprel\-ro\fR can be used to disable it.
9613 .IP "\fB\-multilib\-library\-pic\fR" 4
9614 .IX Item "-multilib-library-pic"
9615 Link with the (library, not \s-1FD\s0) pic libraries.  It's implied by
9616 \&\fB\-mlibrary\-pic\fR, as well as by \fB\-fPIC\fR and
9617 \&\fB\-fpic\fR without \fB\-mfdpic\fR.  You should never have to use
9618 it explicitly.
9619 .IP "\fB\-mlinked\-fp\fR" 4
9620 .IX Item "-mlinked-fp"
9621 Follow the \s-1EABI\s0 requirement of always creating a frame pointer whenever
9622 a stack frame is allocated.  This option is enabled by default and can
9623 be disabled with \fB\-mno\-linked\-fp\fR.
9624 .IP "\fB\-mlong\-calls\fR" 4
9625 .IX Item "-mlong-calls"
9626 Use indirect addressing to call functions outside the current
9627 compilation unit.  This allows the functions to be placed anywhere
9628 within the 32\-bit address space.
9629 .IP "\fB\-malign\-labels\fR" 4
9630 .IX Item "-malign-labels"
9631 Try to align labels to an 8\-byte boundary by inserting nops into the
9632 previous packet.  This option only has an effect when \s-1VLIW\s0 packing
9633 is enabled.  It doesn't create new packets; it merely adds nops to
9634 existing ones.
9635 .IP "\fB\-mlibrary\-pic\fR" 4
9636 .IX Item "-mlibrary-pic"
9637 Generate position-independent \s-1EABI\s0 code.
9638 .IP "\fB\-macc\-4\fR" 4
9639 .IX Item "-macc-4"
9640 Use only the first four media accumulator registers.
9641 .IP "\fB\-macc\-8\fR" 4
9642 .IX Item "-macc-8"
9643 Use all eight media accumulator registers.
9644 .IP "\fB\-mpack\fR" 4
9645 .IX Item "-mpack"
9646 Pack \s-1VLIW\s0 instructions.
9647 .IP "\fB\-mno\-pack\fR" 4
9648 .IX Item "-mno-pack"
9649 Do not pack \s-1VLIW\s0 instructions.
9650 .IP "\fB\-mno\-eflags\fR" 4
9651 .IX Item "-mno-eflags"
9652 Do not mark \s-1ABI\s0 switches in e_flags.
9653 .IP "\fB\-mcond\-move\fR" 4
9654 .IX Item "-mcond-move"
9655 Enable the use of conditional-move instructions (default).
9656 .Sp
9657 This switch is mainly for debugging the compiler and will likely be removed
9658 in a future version.
9659 .IP "\fB\-mno\-cond\-move\fR" 4
9660 .IX Item "-mno-cond-move"
9661 Disable the use of conditional-move instructions.
9662 .Sp
9663 This switch is mainly for debugging the compiler and will likely be removed
9664 in a future version.
9665 .IP "\fB\-mscc\fR" 4
9666 .IX Item "-mscc"
9667 Enable the use of conditional set instructions (default).
9668 .Sp
9669 This switch is mainly for debugging the compiler and will likely be removed
9670 in a future version.
9671 .IP "\fB\-mno\-scc\fR" 4
9672 .IX Item "-mno-scc"
9673 Disable the use of conditional set instructions.
9674 .Sp
9675 This switch is mainly for debugging the compiler and will likely be removed
9676 in a future version.
9677 .IP "\fB\-mcond\-exec\fR" 4
9678 .IX Item "-mcond-exec"
9679 Enable the use of conditional execution (default).
9680 .Sp
9681 This switch is mainly for debugging the compiler and will likely be removed
9682 in a future version.
9683 .IP "\fB\-mno\-cond\-exec\fR" 4
9684 .IX Item "-mno-cond-exec"
9685 Disable the use of conditional execution.
9686 .Sp
9687 This switch is mainly for debugging the compiler and will likely be removed
9688 in a future version.
9689 .IP "\fB\-mvliw\-branch\fR" 4
9690 .IX Item "-mvliw-branch"
9691 Run a pass to pack branches into \s-1VLIW\s0 instructions (default).
9692 .Sp
9693 This switch is mainly for debugging the compiler and will likely be removed
9694 in a future version.
9695 .IP "\fB\-mno\-vliw\-branch\fR" 4
9696 .IX Item "-mno-vliw-branch"
9697 Do not run a pass to pack branches into \s-1VLIW\s0 instructions.
9698 .Sp
9699 This switch is mainly for debugging the compiler and will likely be removed
9700 in a future version.
9701 .IP "\fB\-mmulti\-cond\-exec\fR" 4
9702 .IX Item "-mmulti-cond-exec"
9703 Enable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution
9704 (default).
9705 .Sp
9706 This switch is mainly for debugging the compiler and will likely be removed
9707 in a future version.
9708 .IP "\fB\-mno\-multi\-cond\-exec\fR" 4
9709 .IX Item "-mno-multi-cond-exec"
9710 Disable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution.
9711 .Sp
9712 This switch is mainly for debugging the compiler and will likely be removed
9713 in a future version.
9714 .IP "\fB\-mnested\-cond\-exec\fR" 4
9715 .IX Item "-mnested-cond-exec"
9716 Enable nested conditional execution optimizations (default).
9717 .Sp
9718 This switch is mainly for debugging the compiler and will likely be removed
9719 in a future version.
9720 .IP "\fB\-mno\-nested\-cond\-exec\fR" 4
9721 .IX Item "-mno-nested-cond-exec"
9722 Disable nested conditional execution optimizations.
9723 .Sp
9724 This switch is mainly for debugging the compiler and will likely be removed
9725 in a future version.
9726 .IP "\fB\-moptimize\-membar\fR" 4
9727 .IX Item "-moptimize-membar"
9728 This switch removes redundant \f(CW\*(C`membar\*(C'\fR instructions from the
9729 compiler generated code.  It is enabled by default.
9730 .IP "\fB\-mno\-optimize\-membar\fR" 4
9731 .IX Item "-mno-optimize-membar"
9732 This switch disables the automatic removal of redundant \f(CW\*(C`membar\*(C'\fR
9733 instructions from the generated code.
9734 .IP "\fB\-mtomcat\-stats\fR" 4
9735 .IX Item "-mtomcat-stats"
9736 Cause gas to print out tomcat statistics.
9737 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
9738 .IX Item "-mcpu=cpu"
9739 Select the processor type for which to generate code.  Possible values are
9740 \&\fBfrv\fR, \fBfr550\fR, \fBtomcat\fR, \fBfr500\fR, \fBfr450\fR,
9741 \&\fBfr405\fR, \fBfr400\fR, \fBfr300\fR and \fBsimple\fR.
9742 .PP
9743 \fIGNU/Linux Options\fR
9744 .IX Subsection "GNU/Linux Options"
9745 .PP
9746 These \fB\-m\fR options are defined for GNU/Linux targets:
9747 .IP "\fB\-mglibc\fR" 4
9748 .IX Item "-mglibc"
9749 Use the \s-1GNU\s0 C library instead of uClibc.  This is the default except
9750 on \fB*\-*\-linux\-*uclibc*\fR targets.
9751 .IP "\fB\-muclibc\fR" 4
9752 .IX Item "-muclibc"
9753 Use uClibc instead of the \s-1GNU\s0 C library.  This is the default on
9754 \&\fB*\-*\-linux\-*uclibc*\fR targets.
9755 .PP
9756 \fIH8/300 Options\fR
9757 .IX Subsection "H8/300 Options"
9758 .PP
9759 These \fB\-m\fR options are defined for the H8/300 implementations:
9760 .IP "\fB\-mrelax\fR" 4
9761 .IX Item "-mrelax"
9762 Shorten some address references at link time, when possible; uses the
9763 linker option \fB\-relax\fR.
9764 .IP "\fB\-mh\fR" 4
9765 .IX Item "-mh"
9766 Generate code for the H8/300H.
9767 .IP "\fB\-ms\fR" 4
9768 .IX Item "-ms"
9769 Generate code for the H8S.
9770 .IP "\fB\-mn\fR" 4
9771 .IX Item "-mn"
9772 Generate code for the H8S and H8/300H in the normal mode.  This switch
9773 must be used either with \fB\-mh\fR or \fB\-ms\fR.
9774 .IP "\fB\-ms2600\fR" 4
9775 .IX Item "-ms2600"
9776 Generate code for the H8S/2600.  This switch must be used with \fB\-ms\fR.
9777 .IP "\fB\-mint32\fR" 4
9778 .IX Item "-mint32"
9779 Make \f(CW\*(C`int\*(C'\fR data 32 bits by default.
9780 .IP "\fB\-malign\-300\fR" 4
9781 .IX Item "-malign-300"
9782 On the H8/300H and H8S, use the same alignment rules as for the H8/300.
9783 The default for the H8/300H and H8S is to align longs and floats on 4
9784 byte boundaries.
9785 \&\fB\-malign\-300\fR causes them to be aligned on 2 byte boundaries.
9786 This option has no effect on the H8/300.
9787 .PP
9788 \fI\s-1HPPA\s0 Options\fR
9789 .IX Subsection "HPPA Options"
9790 .PP
9791 These \fB\-m\fR options are defined for the \s-1HPPA\s0 family of computers:
9792 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
9793 .IX Item "-march=architecture-type"
9794 Generate code for the specified architecture.  The choices for
9795 \&\fIarchitecture-type\fR are \fB1.0\fR for \s-1PA\s0 1.0, \fB1.1\fR for \s-1PA\s0
9796 1.1, and \fB2.0\fR for \s-1PA\s0 2.0 processors.  Refer to
9797 \&\fI/usr/lib/sched.models\fR on an HP-UX system to determine the proper
9798 architecture option for your machine.  Code compiled for lower numbered
9799 architectures will run on higher numbered architectures, but not the
9800 other way around.
9801 .IP "\fB\-mpa\-risc\-1\-0\fR" 4
9802 .IX Item "-mpa-risc-1-0"
9803 .PD 0
9804 .IP "\fB\-mpa\-risc\-1\-1\fR" 4
9805 .IX Item "-mpa-risc-1-1"
9806 .IP "\fB\-mpa\-risc\-2\-0\fR" 4
9807 .IX Item "-mpa-risc-2-0"
9808 .PD
9809 Synonyms for \fB\-march=1.0\fR, \fB\-march=1.1\fR, and \fB\-march=2.0\fR respectively.
9810 .IP "\fB\-mbig\-switch\fR" 4
9811 .IX Item "-mbig-switch"
9812 Generate code suitable for big switch tables.  Use this option only if
9813 the assembler/linker complain about out of range branches within a switch
9814 table.
9815 .IP "\fB\-mjump\-in\-delay\fR" 4
9816 .IX Item "-mjump-in-delay"
9817 Fill delay slots of function calls with unconditional jump instructions
9818 by modifying the return pointer for the function call to be the target
9819 of the conditional jump.
9820 .IP "\fB\-mdisable\-fpregs\fR" 4
9821 .IX Item "-mdisable-fpregs"
9822 Prevent floating point registers from being used in any manner.  This is
9823 necessary for compiling kernels which perform lazy context switching of
9824 floating point registers.  If you use this option and attempt to perform
9825 floating point operations, the compiler will abort.
9826 .IP "\fB\-mdisable\-indexing\fR" 4
9827 .IX Item "-mdisable-indexing"
9828 Prevent the compiler from using indexing address modes.  This avoids some
9829 rather obscure problems when compiling \s-1MIG\s0 generated code under \s-1MACH\s0.
9830 .IP "\fB\-mno\-space\-regs\fR" 4
9831 .IX Item "-mno-space-regs"
9832 Generate code that assumes the target has no space registers.  This allows
9833 \&\s-1GCC\s0 to generate faster indirect calls and use unscaled index address modes.
9834 .Sp
9835 Such code is suitable for level 0 \s-1PA\s0 systems and kernels.
9836 .IP "\fB\-mfast\-indirect\-calls\fR" 4
9837 .IX Item "-mfast-indirect-calls"
9838 Generate code that assumes calls never cross space boundaries.  This
9839 allows \s-1GCC\s0 to emit code which performs faster indirect calls.
9840 .Sp
9841 This option will not work in the presence of shared libraries or nested
9842 functions.
9843 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
9844 .IX Item "-mfixed-range=register-range"
9845 Generate code treating the given register range as fixed registers.
9846 A fixed register is one that the register allocator can not use.  This is
9847 useful when compiling kernel code.  A register range is specified as
9848 two registers separated by a dash.  Multiple register ranges can be
9849 specified separated by a comma.
9850 .IP "\fB\-mlong\-load\-store\fR" 4
9851 .IX Item "-mlong-load-store"
9852 Generate 3\-instruction load and store sequences as sometimes required by
9853 the HP-UX 10 linker.  This is equivalent to the \fB+k\fR option to
9854 the \s-1HP\s0 compilers.
9855 .IP "\fB\-mportable\-runtime\fR" 4
9856 .IX Item "-mportable-runtime"
9857 Use the portable calling conventions proposed by \s-1HP\s0 for \s-1ELF\s0 systems.
9858 .IP "\fB\-mgas\fR" 4
9859 .IX Item "-mgas"
9860 Enable the use of assembler directives only \s-1GAS\s0 understands.
9861 .IP "\fB\-mschedule=\fR\fIcpu-type\fR" 4
9862 .IX Item "-mschedule=cpu-type"
9863 Schedule code according to the constraints for the machine type
9864 \&\fIcpu-type\fR.  The choices for \fIcpu-type\fR are \fB700\fR
9865 \&\fB7100\fR, \fB7100LC\fR, \fB7200\fR, \fB7300\fR and \fB8000\fR.  Refer
9866 to \fI/usr/lib/sched.models\fR on an HP-UX system to determine the
9867 proper scheduling option for your machine.  The default scheduling is
9868 \&\fB8000\fR.
9869 .IP "\fB\-mlinker\-opt\fR" 4
9870 .IX Item "-mlinker-opt"
9871 Enable the optimization pass in the HP-UX linker.  Note this makes symbolic
9872 debugging impossible.  It also triggers a bug in the HP-UX 8 and HP-UX 9
9873 linkers in which they give bogus error messages when linking some programs.
9874 .IP "\fB\-msoft\-float\fR" 4
9875 .IX Item "-msoft-float"
9876 Generate output containing library calls for floating point.
9877 \&\fBWarning:\fR the requisite libraries are not available for all \s-1HPPA\s0
9878 targets.  Normally the facilities of the machine's usual C compiler are
9879 used, but this cannot be done directly in cross-compilation.  You must make
9880 your own arrangements to provide suitable library functions for
9881 cross-compilation.
9882 .Sp
9883 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
9884 therefore, it is only useful if you compile \fIall\fR of a program with
9885 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
9886 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
9887 this to work.
9888 .IP "\fB\-msio\fR" 4
9889 .IX Item "-msio"
9890 Generate the predefine, \f(CW\*(C`_SIO\*(C'\fR, for server \s-1IO\s0.  The default is
9891 \&\fB\-mwsio\fR.  This generates the predefines, \f(CW\*(C`_\|_hp9000s700\*(C'\fR,
9892 \&\f(CW\*(C`_\|_hp9000s700_\|_\*(C'\fR and \f(CW\*(C`_WSIO\*(C'\fR, for workstation \s-1IO\s0.  These
9893 options are available under HP-UX and HI-UX.
9894 .IP "\fB\-mgnu\-ld\fR" 4
9895 .IX Item "-mgnu-ld"
9896 Use \s-1GNU\s0 ld specific options.  This passes \fB\-shared\fR to ld when
9897 building a shared library.  It is the default when \s-1GCC\s0 is configured,
9898 explicitly or implicitly, with the \s-1GNU\s0 linker.  This option does not
9899 have any affect on which ld is called, it only changes what parameters
9900 are passed to that ld.  The ld that is called is determined by the
9901 \&\fB\-\-with\-ld\fR configure option, \s-1GCC\s0's program search path, and
9902 finally by the user's \fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed
9903 using \fBwhich `gcc \-print\-prog\-name=ld`\fR.  This option is only available
9904 on the 64 bit HP-UX \s-1GCC\s0, i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
9905 .IP "\fB\-mhp\-ld\fR" 4
9906 .IX Item "-mhp-ld"
9907 Use \s-1HP\s0 ld specific options.  This passes \fB\-b\fR to ld when building
9908 a shared library and passes \fB+Accept TypeMismatch\fR to ld on all
9909 links.  It is the default when \s-1GCC\s0 is configured, explicitly or
9910 implicitly, with the \s-1HP\s0 linker.  This option does not have any affect on
9911 which ld is called, it only changes what parameters are passed to that
9912 ld.  The ld that is called is determined by the \fB\-\-with\-ld\fR
9913 configure option, \s-1GCC\s0's program search path, and finally by the user's
9914 \&\fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed using \fBwhich
9915 `gcc \-print\-prog\-name=ld`\fR.  This option is only available on the 64 bit
9916 HP-UX \s-1GCC\s0, i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
9917 .IP "\fB\-mlong\-calls\fR" 4
9918 .IX Item "-mlong-calls"
9919 Generate code that uses long call sequences.  This ensures that a call
9920 is always able to reach linker generated stubs.  The default is to generate
9921 long calls only when the distance from the call site to the beginning
9922 of the function or translation unit, as the case may be, exceeds a
9923 predefined limit set by the branch type being used.  The limits for
9924 normal calls are 7,600,000 and 240,000 bytes, respectively for the
9925 \&\s-1PA\s0 2.0 and \s-1PA\s0 1.X architectures.  Sibcalls are always limited at
9926 240,000 bytes.
9927 .Sp
9928 Distances are measured from the beginning of functions when using the
9929 \&\fB\-ffunction\-sections\fR option, or when using the \fB\-mgas\fR
9930 and \fB\-mno\-portable\-runtime\fR options together under HP-UX with
9931 the \s-1SOM\s0 linker.
9932 .Sp
9933 It is normally not desirable to use this option as it will degrade
9934 performance.  However, it may be useful in large applications,
9935 particularly when partial linking is used to build the application.
9936 .Sp
9937 The types of long calls used depends on the capabilities of the
9938 assembler and linker, and the type of code being generated.  The
9939 impact on systems that support long absolute calls, and long pic
9940 symbol-difference or pc-relative calls should be relatively small.
9941 However, an indirect call is used on 32\-bit \s-1ELF\s0 systems in pic code
9942 and it is quite long.
9943 .IP "\fB\-munix=\fR\fIunix-std\fR" 4
9944 .IX Item "-munix=unix-std"
9945 Generate compiler predefines and select a startfile for the specified
9946 \&\s-1UNIX\s0 standard.  The choices for \fIunix-std\fR are \fB93\fR, \fB95\fR
9947 and \fB98\fR.  \fB93\fR is supported on all HP-UX versions.  \fB95\fR
9948 is available on HP-UX 10.10 and later.  \fB98\fR is available on HP-UX
9949 11.11 and later.  The default values are \fB93\fR for HP-UX 10.00,
9950 \&\fB95\fR for HP-UX 10.10 though to 11.00, and \fB98\fR for HP-UX 11.11
9951 and later.
9952 .Sp
9953 \&\fB\-munix=93\fR provides the same predefines as \s-1GCC\s0 3.3 and 3.4.
9954 \&\fB\-munix=95\fR provides additional predefines for \f(CW\*(C`XOPEN_UNIX\*(C'\fR
9955 and \f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, and the startfile \fIunix95.o\fR.
9956 \&\fB\-munix=98\fR provides additional predefines for \f(CW\*(C`_XOPEN_UNIX\*(C'\fR,
9957 \&\f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, \f(CW\*(C`_INCLUDE_\|_STDC_A1_SOURCE\*(C'\fR and
9958 \&\f(CW\*(C`_INCLUDE_XOPEN_SOURCE_500\*(C'\fR, and the startfile \fIunix98.o\fR.
9959 .Sp
9960 It is \fIimportant\fR to note that this option changes the interfaces
9961 for various library routines.  It also affects the operational behavior
9962 of the C library.  Thus, \fIextreme\fR care is needed in using this
9963 option.
9964 .Sp
9965 Library code that is intended to operate with more than one \s-1UNIX\s0
9966 standard must test, set and restore the variable \fI_\|_xpg4_extended_mask\fR
9967 as appropriate.  Most \s-1GNU\s0 software doesn't provide this capability.
9968 .IP "\fB\-nolibdld\fR" 4
9969 .IX Item "-nolibdld"
9970 Suppress the generation of link options to search libdld.sl when the
9971 \&\fB\-static\fR option is specified on HP-UX 10 and later.
9972 .IP "\fB\-static\fR" 4
9973 .IX Item "-static"
9974 The HP-UX implementation of setlocale in libc has a dependency on
9975 libdld.sl.  There isn't an archive version of libdld.sl.  Thus,
9976 when the \fB\-static\fR option is specified, special link options
9977 are needed to resolve this dependency.
9978 .Sp
9979 On HP-UX 10 and later, the \s-1GCC\s0 driver adds the necessary options to
9980 link with libdld.sl when the \fB\-static\fR option is specified.
9981 This causes the resulting binary to be dynamic.  On the 64\-bit port,
9982 the linkers generate dynamic binaries by default in any case.  The
9983 \&\fB\-nolibdld\fR option can be used to prevent the \s-1GCC\s0 driver from
9984 adding these link options.
9985 .IP "\fB\-threads\fR" 4
9986 .IX Item "-threads"
9987 Add support for multithreading with the \fIdce thread\fR library
9988 under HP-UX.  This option sets flags for both the preprocessor and
9989 linker.
9990 .PP
9991 \fIIntel 386 and \s-1AMD\s0 x86\-64 Options\fR
9992 .IX Subsection "Intel 386 and AMD x86-64 Options"
9993 .PP
9994 These \fB\-m\fR options are defined for the i386 and x86\-64 family of
9995 computers:
9996 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
9997 .IX Item "-mtune=cpu-type"
9998 Tune to \fIcpu-type\fR everything applicable about the generated code, except
9999 for the \s-1ABI\s0 and the set of available instructions.  The choices for
10000 \&\fIcpu-type\fR are:
10001 .RS 4
10002 .IP "\fIgeneric\fR" 4
10003 .IX Item "generic"
10004 Produce code optimized for the most common \s-1IA32/AMD64/EM64T\s0 processors.
10005 If you know the \s-1CPU\s0 on which your code will run, then you should use
10006 the corresponding \fB\-mtune\fR option instead of
10007 \&\fB\-mtune=generic\fR.  But, if you do not know exactly what \s-1CPU\s0 users
10008 of your application will have, then you should use this option.
10009 .Sp
10010 As new processors are deployed in the marketplace, the behavior of this
10011 option will change.  Therefore, if you upgrade to a newer version of
10012 \&\s-1GCC\s0, the code generated option will change to reflect the processors
10013 that were most common when that version of \s-1GCC\s0 was released.
10014 .Sp
10015 There is no \fB\-march=generic\fR option because \fB\-march\fR
10016 indicates the instruction set the compiler can use, and there is no
10017 generic instruction set applicable to all processors.  In contrast,
10018 \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
10019 processors) for which the code is optimized.
10020 .IP "\fInative\fR" 4
10021 .IX Item "native"
10022 This selects the \s-1CPU\s0 to tune for at compilation time by determining
10023 the processor type of the compiling machine.  Using \fB\-mtune=native\fR
10024 will produce code optimized for the local machine under the constraints
10025 of the selected instruction set.  Using \fB\-march=native\fR will
10026 enable all instruction subsets supported by the local machine (hence
10027 the result might not run on different machines).
10028 .IP "\fIi386\fR" 4
10029 .IX Item "i386"
10030 Original Intel's i386 \s-1CPU\s0.
10031 .IP "\fIi486\fR" 4
10032 .IX Item "i486"
10033 Intel's i486 \s-1CPU\s0.  (No scheduling is implemented for this chip.)
10034 .IP "\fIi586, pentium\fR" 4
10035 .IX Item "i586, pentium"
10036 Intel Pentium \s-1CPU\s0 with no \s-1MMX\s0 support.
10037 .IP "\fIpentium-mmx\fR" 4
10038 .IX Item "pentium-mmx"
10039 Intel PentiumMMX \s-1CPU\s0 based on Pentium core with \s-1MMX\s0 instruction set support.
10040 .IP "\fIpentiumpro\fR" 4
10041 .IX Item "pentiumpro"
10042 Intel PentiumPro \s-1CPU\s0.
10043 .IP "\fIi686\fR" 4
10044 .IX Item "i686"
10045 Same as \f(CW\*(C`generic\*(C'\fR, but when used as \f(CW\*(C`march\*(C'\fR option, PentiumPro
10046 instruction set will be used, so the code will run on all i686 family chips.
10047 .IP "\fIpentium2\fR" 4
10048 .IX Item "pentium2"
10049 Intel Pentium2 \s-1CPU\s0 based on PentiumPro core with \s-1MMX\s0 instruction set support.
10050 .IP "\fIpentium3, pentium3m\fR" 4
10051 .IX Item "pentium3, pentium3m"
10052 Intel Pentium3 \s-1CPU\s0 based on PentiumPro core with \s-1MMX\s0 and \s-1SSE\s0 instruction set
10053 support.
10054 .IP "\fIpentium-m\fR" 4
10055 .IX Item "pentium-m"
10056 Low power version of Intel Pentium3 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set
10057 support.  Used by Centrino notebooks.
10058 .IP "\fIpentium4, pentium4m\fR" 4
10059 .IX Item "pentium4, pentium4m"
10060 Intel Pentium4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set support.
10061 .IP "\fIprescott\fR" 4
10062 .IX Item "prescott"
10063 Improved version of Intel Pentium4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0 and \s-1SSE3\s0 instruction
10064 set support.
10065 .IP "\fInocona\fR" 4
10066 .IX Item "nocona"
10067 Improved version of Intel Pentium4 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0,
10068 \&\s-1SSE2\s0 and \s-1SSE3\s0 instruction set support.
10069 .IP "\fIcore2\fR" 4
10070 .IX Item "core2"
10071 Intel Core2 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0 and \s-1SSSE3\s0
10072 instruction set support.
10073 .IP "\fIk6\fR" 4
10074 .IX Item "k6"
10075 \&\s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 instruction set support.
10076 .IP "\fIk6\-2, k6\-3\fR" 4
10077 .IX Item "k6-2, k6-3"
10078 Improved versions of \s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 and 3dNOW! instruction set support.
10079 .IP "\fIathlon, athlon-tbird\fR" 4
10080 .IX Item "athlon, athlon-tbird"
10081 \&\s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3dNOW!, enhanced 3dNOW! and \s-1SSE\s0 prefetch instructions
10082 support.
10083 .IP "\fIathlon\-4, athlon-xp, athlon-mp\fR" 4
10084 .IX Item "athlon-4, athlon-xp, athlon-mp"
10085 Improved \s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3dNOW!, enhanced 3dNOW! and full \s-1SSE\s0
10086 instruction set support.
10087 .IP "\fIk8, opteron, athlon64, athlon-fx\fR" 4
10088 .IX Item "k8, opteron, athlon64, athlon-fx"
10089 \&\s-1AMD\s0 K8 core based CPUs with x86\-64 instruction set support.  (This supersets
10090 \&\s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, 3dNOW!, enhanced 3dNOW! and 64\-bit instruction set extensions.)
10091 .IP "\fIk8\-sse3, opteron\-sse3, athlon64\-sse3\fR" 4
10092 .IX Item "k8-sse3, opteron-sse3, athlon64-sse3"
10093 Improved versions of k8, opteron and athlon64 with \s-1SSE3\s0 instruction set support.
10094 .IP "\fIamdfam10, barcelona\fR" 4
10095 .IX Item "amdfam10, barcelona"
10096 \&\s-1AMD\s0 Family 10h core based CPUs with x86\-64 instruction set support.  (This
10097 supersets \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0, \s-1SSE4A\s0, 3dNOW!, enhanced 3dNOW!, \s-1ABM\s0 and 64\-bit
10098 instruction set extensions.)
10099 .IP "\fIwinchip\-c6\fR" 4
10100 .IX Item "winchip-c6"
10101 \&\s-1IDT\s0 Winchip C6 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 instruction
10102 set support.
10103 .IP "\fIwinchip2\fR" 4
10104 .IX Item "winchip2"
10105 \&\s-1IDT\s0 Winchip2 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 and 3dNOW!
10106 instruction set support.
10107 .IP "\fIc3\fR" 4
10108 .IX Item "c3"
10109 Via C3 \s-1CPU\s0 with \s-1MMX\s0 and 3dNOW! instruction set support.  (No scheduling is
10110 implemented for this chip.)
10111 .IP "\fIc3\-2\fR" 4
10112 .IX Item "c3-2"
10113 Via C3\-2 \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.  (No scheduling is
10114 implemented for this chip.)
10115 .IP "\fIgeode\fR" 4
10116 .IX Item "geode"
10117 Embedded \s-1AMD\s0 \s-1CPU\s0 with \s-1MMX\s0 and 3dNOW! instruction set support.
10118 .RE
10119 .RS 4
10120 .Sp
10121 While picking a specific \fIcpu-type\fR will schedule things appropriately
10122 for that particular chip, the compiler will not generate any code that
10123 does not run on the i386 without the \fB\-march=\fR\fIcpu-type\fR option
10124 being used.
10125 .RE
10126 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
10127 .IX Item "-march=cpu-type"
10128 Generate instructions for the machine type \fIcpu-type\fR.  The choices
10129 for \fIcpu-type\fR are the same as for \fB\-mtune\fR.  Moreover,
10130 specifying \fB\-march=\fR\fIcpu-type\fR implies \fB\-mtune=\fR\fIcpu-type\fR.
10131 .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
10132 .IX Item "-mcpu=cpu-type"
10133 A deprecated synonym for \fB\-mtune\fR.
10134 .IP "\fB\-mfpmath=\fR\fIunit\fR" 4
10135 .IX Item "-mfpmath=unit"
10136 Generate floating point arithmetics for selected unit \fIunit\fR.  The choices
10137 for \fIunit\fR are:
10138 .RS 4
10139 .IP "\fB387\fR" 4
10140 .IX Item "387"
10141 Use the standard 387 floating point coprocessor present majority of chips and
10142 emulated otherwise.  Code compiled with this option will run almost everywhere.
10143 The temporary results are computed in 80bit precision instead of precision
10144 specified by the type resulting in slightly different results compared to most
10145 of other chips.  See \fB\-ffloat\-store\fR for more detailed description.
10146 .Sp
10147 This is the default choice for i386 compiler.
10148 .IP "\fBsse\fR" 4
10149 .IX Item "sse"
10150 Use scalar floating point instructions present in the \s-1SSE\s0 instruction set.
10151 This instruction set is supported by Pentium3 and newer chips, in the \s-1AMD\s0 line
10152 by Athlon\-4, Athlon-xp and Athlon-mp chips.  The earlier version of \s-1SSE\s0
10153 instruction set supports only single precision arithmetics, thus the double and
10154 extended precision arithmetics is still done using 387.  Later version, present
10155 only in Pentium4 and the future \s-1AMD\s0 x86\-64 chips supports double precision
10156 arithmetics too.
10157 .Sp
10158 For the i386 compiler, you need to use \fB\-march=\fR\fIcpu-type\fR, \fB\-msse\fR
10159 or \fB\-msse2\fR switches to enable \s-1SSE\s0 extensions and make this option
10160 effective.  For the x86\-64 compiler, these extensions are enabled by default.
10161 .Sp
10162 The resulting code should be considerably faster in the majority of cases and avoid
10163 the numerical instability problems of 387 code, but may break some existing
10164 code that expects temporaries to be 80bit.
10165 .Sp
10166 This is the default choice for the x86\-64 compiler.
10167 .IP "\fBsse,387\fR" 4
10168 .IX Item "sse,387"
10169 .PD 0
10170 .IP "\fBsse+387\fR" 4
10171 .IX Item "sse+387"
10172 .IP "\fBboth\fR" 4
10173 .IX Item "both"
10174 .PD
10175 Attempt to utilize both instruction sets at once.  This effectively double the
10176 amount of available registers and on chips with separate execution units for
10177 387 and \s-1SSE\s0 the execution resources too.  Use this option with care, as it is
10178 still experimental, because the \s-1GCC\s0 register allocator does not model separate
10179 functional units well resulting in instable performance.
10180 .RE
10181 .RS 4
10182 .RE
10183 .IP "\fB\-masm=\fR\fIdialect\fR" 4
10184 .IX Item "-masm=dialect"
10185 Output asm instructions using selected \fIdialect\fR.  Supported
10186 choices are \fBintel\fR or \fBatt\fR (the default one).  Darwin does
10187 not support \fBintel\fR.
10188 .IP "\fB\-mieee\-fp\fR" 4
10189 .IX Item "-mieee-fp"
10190 .PD 0
10191 .IP "\fB\-mno\-ieee\-fp\fR" 4
10192 .IX Item "-mno-ieee-fp"
10193 .PD
10194 Control whether or not the compiler uses \s-1IEEE\s0 floating point
10195 comparisons.  These handle correctly the case where the result of a
10196 comparison is unordered.
10197 .IP "\fB\-msoft\-float\fR" 4
10198 .IX Item "-msoft-float"
10199 Generate output containing library calls for floating point.
10200 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC\s0.
10201 Normally the facilities of the machine's usual C compiler are used, but
10202 this can't be done directly in cross-compilation.  You must make your
10203 own arrangements to provide suitable library functions for
10204 cross-compilation.
10205 .Sp
10206 On machines where a function returns floating point results in the 80387
10207 register stack, some floating point opcodes may be emitted even if
10208 \&\fB\-msoft\-float\fR is used.
10209 .IP "\fB\-mno\-fp\-ret\-in\-387\fR" 4
10210 .IX Item "-mno-fp-ret-in-387"
10211 Do not use the \s-1FPU\s0 registers for return values of functions.
10212 .Sp
10213 The usual calling convention has functions return values of types
10214 \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR in an \s-1FPU\s0 register, even if there
10215 is no \s-1FPU\s0.  The idea is that the operating system should emulate
10216 an \s-1FPU\s0.
10217 .Sp
10218 The option \fB\-mno\-fp\-ret\-in\-387\fR causes such values to be returned
10219 in ordinary \s-1CPU\s0 registers instead.
10220 .IP "\fB\-mno\-fancy\-math\-387\fR" 4
10221 .IX Item "-mno-fancy-math-387"
10222 Some 387 emulators do not support the \f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR and
10223 \&\f(CW\*(C`sqrt\*(C'\fR instructions for the 387.  Specify this option to avoid
10224 generating those instructions.  This option is the default on FreeBSD,
10225 OpenBSD and NetBSD.  This option is overridden when \fB\-march\fR
10226 indicates that the target cpu will always have an \s-1FPU\s0 and so the
10227 instruction will not need emulation.  As of revision 2.6.1, these
10228 instructions are not generated unless you also use the
10229 \&\fB\-funsafe\-math\-optimizations\fR switch.
10230 .IP "\fB\-malign\-double\fR" 4
10231 .IX Item "-malign-double"
10232 .PD 0
10233 .IP "\fB\-mno\-align\-double\fR" 4
10234 .IX Item "-mno-align-double"
10235 .PD
10236 Control whether \s-1GCC\s0 aligns \f(CW\*(C`double\*(C'\fR, \f(CW\*(C`long double\*(C'\fR, and
10237 \&\f(CW\*(C`long long\*(C'\fR variables on a two word boundary or a one word
10238 boundary.  Aligning \f(CW\*(C`double\*(C'\fR variables on a two word boundary will
10239 produce code that runs somewhat faster on a \fBPentium\fR at the
10240 expense of more memory.
10241 .Sp
10242 On x86\-64, \fB\-malign\-double\fR is enabled by default.
10243 .Sp
10244 \&\fBWarning:\fR if you use the \fB\-malign\-double\fR switch,
10245 structures containing the above types will be aligned differently than
10246 the published application binary interface specifications for the 386
10247 and will not be binary compatible with structures in code compiled
10248 without that switch.
10249 .IP "\fB\-m96bit\-long\-double\fR" 4
10250 .IX Item "-m96bit-long-double"
10251 .PD 0
10252 .IP "\fB\-m128bit\-long\-double\fR" 4
10253 .IX Item "-m128bit-long-double"
10254 .PD
10255 These switches control the size of \f(CW\*(C`long double\*(C'\fR type.  The i386
10256 application binary interface specifies the size to be 96 bits,
10257 so \fB\-m96bit\-long\-double\fR is the default in 32 bit mode.
10258 .Sp
10259 Modern architectures (Pentium and newer) would prefer \f(CW\*(C`long double\*(C'\fR
10260 to be aligned to an 8 or 16 byte boundary.  In arrays or structures
10261 conforming to the \s-1ABI\s0, this would not be possible.  So specifying a
10262 \&\fB\-m128bit\-long\-double\fR will align \f(CW\*(C`long double\*(C'\fR
10263 to a 16 byte boundary by padding the \f(CW\*(C`long double\*(C'\fR with an additional
10264 32 bit zero.
10265 .Sp
10266 In the x86\-64 compiler, \fB\-m128bit\-long\-double\fR is the default choice as
10267 its \s-1ABI\s0 specifies that \f(CW\*(C`long double\*(C'\fR is to be aligned on 16 byte boundary.
10268 .Sp
10269 Notice that neither of these options enable any extra precision over the x87
10270 standard of 80 bits for a \f(CW\*(C`long double\*(C'\fR.
10271 .Sp
10272 \&\fBWarning:\fR if you override the default value for your target \s-1ABI\s0, the
10273 structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables will change
10274 their size as well as function calling convention for function taking
10275 \&\f(CW\*(C`long double\*(C'\fR will be modified.  Hence they will not be binary
10276 compatible with arrays or structures in code compiled without that switch.
10277 .IP "\fB\-mlarge\-data\-threshold=\fR\fInumber\fR" 4
10278 .IX Item "-mlarge-data-threshold=number"
10279 When \fB\-mcmodel=medium\fR is specified, the data greater than
10280 \&\fIthreshold\fR are placed in large data section.  This value must be the
10281 same across all object linked into the binary and defaults to 65535.
10282 .IP "\fB\-mrtd\fR" 4
10283 .IX Item "-mrtd"
10284 Use a different function-calling convention, in which functions that
10285 take a fixed number of arguments return with the \f(CW\*(C`ret\*(C'\fR \fInum\fR
10286 instruction, which pops their arguments while returning.  This saves one
10287 instruction in the caller since there is no need to pop the arguments
10288 there.
10289 .Sp
10290 You can specify that an individual function is called with this calling
10291 sequence with the function attribute \fBstdcall\fR.  You can also
10292 override the \fB\-mrtd\fR option by using the function attribute
10293 \&\fBcdecl\fR.
10294 .Sp
10295 \&\fBWarning:\fR this calling convention is incompatible with the one
10296 normally used on Unix, so you cannot use it if you need to call
10297 libraries compiled with the Unix compiler.
10298 .Sp
10299 Also, you must provide function prototypes for all functions that
10300 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
10301 otherwise incorrect code will be generated for calls to those
10302 functions.
10303 .Sp
10304 In addition, seriously incorrect code will result if you call a
10305 function with too many arguments.  (Normally, extra arguments are
10306 harmlessly ignored.)
10307 .IP "\fB\-mregparm=\fR\fInum\fR" 4
10308 .IX Item "-mregparm=num"
10309 Control how many registers are used to pass integer arguments.  By
10310 default, no registers are used to pass arguments, and at most 3
10311 registers can be used.  You can control this behavior for a specific
10312 function by using the function attribute \fBregparm\fR.
10313 .Sp
10314 \&\fBWarning:\fR if you use this switch, and
10315 \&\fInum\fR is nonzero, then you must build all modules with the same
10316 value, including any libraries.  This includes the system libraries and
10317 startup modules.
10318 .IP "\fB\-msseregparm\fR" 4
10319 .IX Item "-msseregparm"
10320 Use \s-1SSE\s0 register passing conventions for float and double arguments
10321 and return values.  You can control this behavior for a specific
10322 function by using the function attribute \fBsseregparm\fR.
10323 .Sp
10324 \&\fBWarning:\fR if you use this switch then you must build all
10325 modules with the same value, including any libraries.  This includes
10326 the system libraries and startup modules.
10327 .IP "\fB\-mpc32\fR" 4
10328 .IX Item "-mpc32"
10329 .PD 0
10330 .IP "\fB\-mpc64\fR" 4
10331 .IX Item "-mpc64"
10332 .IP "\fB\-mpc80\fR" 4
10333 .IX Item "-mpc80"
10334 .PD
10335 Set 80387 floating-point precision to 32, 64 or 80 bits.  When \fB\-mpc32\fR
10336 is specified, the significands of results of floating-point operations are
10337 rounded to 24 bits (single precision); \fB\-mpc64\fR rounds the
10338 significands of results of floating-point operations to 53 bits (double
10339 precision) and \fB\-mpc80\fR rounds the significands of results of
10340 floating-point operations to 64 bits (extended double precision), which is
10341 the default.  When this option is used, floating-point operations in higher
10342 precisions are not available to the programmer without setting the \s-1FPU\s0
10343 control word explicitly.
10344 .Sp
10345 Setting the rounding of floating-point operations to less than the default
10346 80 bits can speed some programs by 2% or more.  Note that some mathematical
10347 libraries assume that extended precision (80 bit) floating-point operations
10348 are enabled by default; routines in such libraries could suffer significant
10349 loss of accuracy, typically through so-called \*(L"catastrophic cancellation\*(R",
10350 when this option is used to set the precision to less than extended precision.
10351 .IP "\fB\-mstackrealign\fR" 4
10352 .IX Item "-mstackrealign"
10353 Realign the stack at entry.  On the Intel x86, the \fB\-mstackrealign\fR
10354 option will generate an alternate prologue and epilogue that realigns the
10355 runtime stack if necessary.  This supports mixing legacy codes that keep
10356 a 4\-byte aligned stack with modern codes that keep a 16\-byte stack for
10357 \&\s-1SSE\s0 compatibility.  See also the attribute \f(CW\*(C`force_align_arg_pointer\*(C'\fR,
10358 applicable to individual functions.
10359 .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
10360 .IX Item "-mpreferred-stack-boundary=num"
10361 Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
10362 byte boundary.  If \fB\-mpreferred\-stack\-boundary\fR is not specified,
10363 the default is 4 (16 bytes or 128 bits).
10364 .IP "\fB\-mincoming\-stack\-boundary=\fR\fInum\fR" 4
10365 .IX Item "-mincoming-stack-boundary=num"
10366 Assume the incoming stack is aligned to a 2 raised to \fInum\fR byte
10367 boundary.  If \fB\-mincoming\-stack\-boundary\fR is not specified,
10368 the one specified by \fB\-mpreferred\-stack\-boundary\fR will be used.
10369 .Sp
10370 On Pentium and PentiumPro, \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long double\*(C'\fR values
10371 should be aligned to an 8 byte boundary (see \fB\-malign\-double\fR) or
10372 suffer significant run time performance penalties.  On Pentium \s-1III\s0, the
10373 Streaming \s-1SIMD\s0 Extension (\s-1SSE\s0) data type \f(CW\*(C`_\|_m128\*(C'\fR may not work
10374 properly if it is not 16 byte aligned.
10375 .Sp
10376 To ensure proper alignment of this values on the stack, the stack boundary
10377 must be as aligned as that required by any value stored on the stack.
10378 Further, every function must be generated such that it keeps the stack
10379 aligned.  Thus calling a function compiled with a higher preferred
10380 stack boundary from a function compiled with a lower preferred stack
10381 boundary will most likely misalign the stack.  It is recommended that
10382 libraries that use callbacks always use the default setting.
10383 .Sp
10384 This extra alignment does consume extra stack space, and generally
10385 increases code size.  Code that is sensitive to stack space usage, such
10386 as embedded systems and operating system kernels, may want to reduce the
10387 preferred alignment to \fB\-mpreferred\-stack\-boundary=2\fR.
10388 .IP "\fB\-mmmx\fR" 4
10389 .IX Item "-mmmx"
10390 .PD 0
10391 .IP "\fB\-mno\-mmx\fR" 4
10392 .IX Item "-mno-mmx"
10393 .IP "\fB\-msse\fR" 4
10394 .IX Item "-msse"
10395 .IP "\fB\-mno\-sse\fR" 4
10396 .IX Item "-mno-sse"
10397 .IP "\fB\-msse2\fR" 4
10398 .IX Item "-msse2"
10399 .IP "\fB\-mno\-sse2\fR" 4
10400 .IX Item "-mno-sse2"
10401 .IP "\fB\-msse3\fR" 4
10402 .IX Item "-msse3"
10403 .IP "\fB\-mno\-sse3\fR" 4
10404 .IX Item "-mno-sse3"
10405 .IP "\fB\-mssse3\fR" 4
10406 .IX Item "-mssse3"
10407 .IP "\fB\-mno\-ssse3\fR" 4
10408 .IX Item "-mno-ssse3"
10409 .IP "\fB\-msse4.1\fR" 4
10410 .IX Item "-msse4.1"
10411 .IP "\fB\-mno\-sse4.1\fR" 4
10412 .IX Item "-mno-sse4.1"
10413 .IP "\fB\-msse4.2\fR" 4
10414 .IX Item "-msse4.2"
10415 .IP "\fB\-mno\-sse4.2\fR" 4
10416 .IX Item "-mno-sse4.2"
10417 .IP "\fB\-msse4\fR" 4
10418 .IX Item "-msse4"
10419 .IP "\fB\-mno\-sse4\fR" 4
10420 .IX Item "-mno-sse4"
10421 .IP "\fB\-mavx\fR" 4
10422 .IX Item "-mavx"
10423 .IP "\fB\-mno\-avx\fR" 4
10424 .IX Item "-mno-avx"
10425 .IP "\fB\-maes\fR" 4
10426 .IX Item "-maes"
10427 .IP "\fB\-mno\-aes\fR" 4
10428 .IX Item "-mno-aes"
10429 .IP "\fB\-mpclmul\fR" 4
10430 .IX Item "-mpclmul"
10431 .IP "\fB\-mno\-pclmul\fR" 4
10432 .IX Item "-mno-pclmul"
10433 .IP "\fB\-msse4a\fR" 4
10434 .IX Item "-msse4a"
10435 .IP "\fB\-mno\-sse4a\fR" 4
10436 .IX Item "-mno-sse4a"
10437 .IP "\fB\-msse5\fR" 4
10438 .IX Item "-msse5"
10439 .IP "\fB\-mno\-sse5\fR" 4
10440 .IX Item "-mno-sse5"
10441 .IP "\fB\-m3dnow\fR" 4
10442 .IX Item "-m3dnow"
10443 .IP "\fB\-mno\-3dnow\fR" 4
10444 .IX Item "-mno-3dnow"
10445 .IP "\fB\-mpopcnt\fR" 4
10446 .IX Item "-mpopcnt"
10447 .IP "\fB\-mno\-popcnt\fR" 4
10448 .IX Item "-mno-popcnt"
10449 .IP "\fB\-mabm\fR" 4
10450 .IX Item "-mabm"
10451 .IP "\fB\-mno\-abm\fR" 4
10452 .IX Item "-mno-abm"
10453 .PD
10454 These switches enable or disable the use of instructions in the \s-1MMX\s0,
10455 \&\s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0, \s-1SSSE3\s0, \s-1SSE4\s0.1, \s-1AVX\s0, \s-1AES\s0, \s-1PCLMUL\s0, \s-1SSE4A\s0, \s-1SSE5\s0, \s-1ABM\s0 or
10456 3DNow! extended instruction sets.
10457 These extensions are also available as built-in functions: see
10458 \&\fBX86 Built-in Functions\fR, for details of the functions enabled and
10459 disabled by these switches.
10460 .Sp
10461 To have \s-1SSE/SSE2\s0 instructions generated automatically from floating-point
10462 code (as opposed to 387 instructions), see \fB\-mfpmath=sse\fR.
10463 .Sp
10464 \&\s-1GCC\s0 depresses SSEx instructions when \fB\-mavx\fR is used. Instead, it
10465 generates new \s-1AVX\s0 instructions or \s-1AVX\s0 equivalence for all SSEx instructions
10466 when needed.
10467 .Sp
10468 These options will enable \s-1GCC\s0 to use these extended instructions in
10469 generated code, even without \fB\-mfpmath=sse\fR.  Applications which
10470 perform runtime \s-1CPU\s0 detection must compile separate files for each
10471 supported architecture, using the appropriate flags.  In particular,
10472 the file containing the \s-1CPU\s0 detection code should be compiled without
10473 these options.
10474 .IP "\fB\-mcld\fR" 4
10475 .IX Item "-mcld"
10476 This option instructs \s-1GCC\s0 to emit a \f(CW\*(C`cld\*(C'\fR instruction in the prologue
10477 of functions that use string instructions.  String instructions depend on
10478 the \s-1DF\s0 flag to select between autoincrement or autodecrement mode.  While the
10479 \&\s-1ABI\s0 specifies the \s-1DF\s0 flag to be cleared on function entry, some operating
10480 systems violate this specification by not clearing the \s-1DF\s0 flag in their
10481 exception dispatchers.  The exception handler can be invoked with the \s-1DF\s0 flag
10482 set which leads to wrong direction mode, when string instructions are used.
10483 This option can be enabled by default on 32\-bit x86 targets by configuring
10484 \&\s-1GCC\s0 with the \fB\-\-enable\-cld\fR configure option.  Generation of \f(CW\*(C`cld\*(C'\fR
10485 instructions can be suppressed with the \fB\-mno\-cld\fR compiler option
10486 in this case.
10487 .IP "\fB\-mcx16\fR" 4
10488 .IX Item "-mcx16"
10489 This option will enable \s-1GCC\s0 to use \s-1CMPXCHG16B\s0 instruction in generated code.
10490 \&\s-1CMPXCHG16B\s0 allows for atomic operations on 128\-bit double quadword (or oword)
10491 data types.  This is useful for high resolution counters that could be updated
10492 by multiple processors (or cores).  This instruction is generated as part of
10493 atomic built-in functions: see \fBAtomic Builtins\fR for details.
10494 .IP "\fB\-msahf\fR" 4
10495 .IX Item "-msahf"
10496 This option will enable \s-1GCC\s0 to use \s-1SAHF\s0 instruction in generated 64\-bit code.
10497 Early Intel CPUs with Intel 64 lacked \s-1LAHF\s0 and \s-1SAHF\s0 instructions supported
10498 by \s-1AMD64\s0 until introduction of Pentium 4 G1 step in December 2005.  \s-1LAHF\s0 and
10499 \&\s-1SAHF\s0 are load and store instructions, respectively, for certain status flags.
10500 In 64\-bit mode, \s-1SAHF\s0 instruction is used to optimize \f(CW\*(C`fmod\*(C'\fR, \f(CW\*(C`drem\*(C'\fR
10501 or \f(CW\*(C`remainder\*(C'\fR built-in functions: see \fBOther Builtins\fR for details.
10502 .IP "\fB\-mrecip\fR" 4
10503 .IX Item "-mrecip"
10504 This option will enable \s-1GCC\s0 to use \s-1RCPSS\s0 and \s-1RSQRTSS\s0 instructions (and their
10505 vectorized variants \s-1RCPPS\s0 and \s-1RSQRTPS\s0) with an additional Newton-Raphson step
10506 to increase precision instead of \s-1DIVSS\s0 and \s-1SQRTSS\s0 (and their vectorized
10507 variants) for single precision floating point arguments.  These instructions
10508 are generated only when \fB\-funsafe\-math\-optimizations\fR is enabled
10509 together with \fB\-finite\-math\-only\fR and \fB\-fno\-trapping\-math\fR.
10510 Note that while the throughput of the sequence is higher than the throughput
10511 of the non-reciprocal instruction, the precision of the sequence can be
10512 decreased by up to 2 ulp (i.e. the inverse of 1.0 equals 0.99999994).
10513 .IP "\fB\-mveclibabi=\fR\fItype\fR" 4
10514 .IX Item "-mveclibabi=type"
10515 Specifies the \s-1ABI\s0 type to use for vectorizing intrinsics using an
10516 external library.  Supported types are \f(CW\*(C`svml\*(C'\fR for the Intel short
10517 vector math library and \f(CW\*(C`acml\*(C'\fR for the \s-1AMD\s0 math core library style
10518 of interfacing.  \s-1GCC\s0 will currently emit calls to \f(CW\*(C`vmldExp2\*(C'\fR,
10519 \&\f(CW\*(C`vmldLn2\*(C'\fR, \f(CW\*(C`vmldLog102\*(C'\fR, \f(CW\*(C`vmldLog102\*(C'\fR, \f(CW\*(C`vmldPow2\*(C'\fR,
10520 \&\f(CW\*(C`vmldTanh2\*(C'\fR, \f(CW\*(C`vmldTan2\*(C'\fR, \f(CW\*(C`vmldAtan2\*(C'\fR, \f(CW\*(C`vmldAtanh2\*(C'\fR,
10521 \&\f(CW\*(C`vmldCbrt2\*(C'\fR, \f(CW\*(C`vmldSinh2\*(C'\fR, \f(CW\*(C`vmldSin2\*(C'\fR, \f(CW\*(C`vmldAsinh2\*(C'\fR,
10522 \&\f(CW\*(C`vmldAsin2\*(C'\fR, \f(CW\*(C`vmldCosh2\*(C'\fR, \f(CW\*(C`vmldCos2\*(C'\fR, \f(CW\*(C`vmldAcosh2\*(C'\fR,
10523 \&\f(CW\*(C`vmldAcos2\*(C'\fR, \f(CW\*(C`vmlsExp4\*(C'\fR, \f(CW\*(C`vmlsLn4\*(C'\fR, \f(CW\*(C`vmlsLog104\*(C'\fR,
10524 \&\f(CW\*(C`vmlsLog104\*(C'\fR, \f(CW\*(C`vmlsPow4\*(C'\fR, \f(CW\*(C`vmlsTanh4\*(C'\fR, \f(CW\*(C`vmlsTan4\*(C'\fR,
10525 \&\f(CW\*(C`vmlsAtan4\*(C'\fR, \f(CW\*(C`vmlsAtanh4\*(C'\fR, \f(CW\*(C`vmlsCbrt4\*(C'\fR, \f(CW\*(C`vmlsSinh4\*(C'\fR,
10526 \&\f(CW\*(C`vmlsSin4\*(C'\fR, \f(CW\*(C`vmlsAsinh4\*(C'\fR, \f(CW\*(C`vmlsAsin4\*(C'\fR, \f(CW\*(C`vmlsCosh4\*(C'\fR,
10527 \&\f(CW\*(C`vmlsCos4\*(C'\fR, \f(CW\*(C`vmlsAcosh4\*(C'\fR and \f(CW\*(C`vmlsAcos4\*(C'\fR for corresponding
10528 function type when \fB\-mveclibabi=svml\fR is used and \f(CW\*(C`_\|_vrd2_sin\*(C'\fR,
10529 \&\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,
10530 \&\f(CW\*(C`_\|_vrd2_log10\*(C'\fR, \f(CW\*(C`_\|_vrs4_sinf\*(C'\fR, \f(CW\*(C`_\|_vrs4_cosf\*(C'\fR,
10531 \&\f(CW\*(C`_\|_vrs4_expf\*(C'\fR, \f(CW\*(C`_\|_vrs4_logf\*(C'\fR, \f(CW\*(C`_\|_vrs4_log2f\*(C'\fR,
10532 \&\f(CW\*(C`_\|_vrs4_log10f\*(C'\fR and \f(CW\*(C`_\|_vrs4_powf\*(C'\fR for corresponding function type
10533 when \fB\-mveclibabi=acml\fR is used. Both \fB\-ftree\-vectorize\fR and
10534 \&\fB\-funsafe\-math\-optimizations\fR have to be enabled. A \s-1SVML\s0 or \s-1ACML\s0 \s-1ABI\s0
10535 compatible library will have to be specified at link time.
10536 .IP "\fB\-mpush\-args\fR" 4
10537 .IX Item "-mpush-args"
10538 .PD 0
10539 .IP "\fB\-mno\-push\-args\fR" 4
10540 .IX Item "-mno-push-args"
10541 .PD
10542 Use \s-1PUSH\s0 operations to store outgoing parameters.  This method is shorter
10543 and usually equally fast as method using \s-1SUB/MOV\s0 operations and is enabled
10544 by default.  In some cases disabling it may improve performance because of
10545 improved scheduling and reduced dependencies.
10546 .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
10547 .IX Item "-maccumulate-outgoing-args"
10548 If enabled, the maximum amount of space required for outgoing arguments will be
10549 computed in the function prologue.  This is faster on most modern CPUs
10550 because of reduced dependencies, improved scheduling and reduced stack usage
10551 when preferred stack boundary is not equal to 2.  The drawback is a notable
10552 increase in code size.  This switch implies \fB\-mno\-push\-args\fR.
10553 .IP "\fB\-mthreads\fR" 4
10554 .IX Item "-mthreads"
10555 Support thread-safe exception handling on \fBMingw32\fR.  Code that relies
10556 on thread-safe exception handling must compile and link all code with the
10557 \&\fB\-mthreads\fR option.  When compiling, \fB\-mthreads\fR defines
10558 \&\fB\-D_MT\fR; when linking, it links in a special thread helper library
10559 \&\fB\-lmingwthrd\fR which cleans up per thread exception handling data.
10560 .IP "\fB\-mno\-align\-stringops\fR" 4
10561 .IX Item "-mno-align-stringops"
10562 Do not align destination of inlined string operations.  This switch reduces
10563 code size and improves performance in case the destination is already aligned,
10564 but \s-1GCC\s0 doesn't know about it.
10565 .IP "\fB\-minline\-all\-stringops\fR" 4
10566 .IX Item "-minline-all-stringops"
10567 By default \s-1GCC\s0 inlines string operations only when destination is known to be
10568 aligned at least to 4 byte boundary.  This enables more inlining, increase code
10569 size, but may improve performance of code that depends on fast memcpy, strlen
10570 and memset for short lengths.
10571 .IP "\fB\-minline\-stringops\-dynamically\fR" 4
10572 .IX Item "-minline-stringops-dynamically"
10573 For string operation of unknown size, inline runtime checks so for small
10574 blocks inline code is used, while for large blocks library call is used.
10575 .IP "\fB\-mstringop\-strategy=\fR\fIalg\fR" 4
10576 .IX Item "-mstringop-strategy=alg"
10577 Overwrite internal decision heuristic about particular algorithm to inline
10578 string operation with.  The allowed values are \f(CW\*(C`rep_byte\*(C'\fR,
10579 \&\f(CW\*(C`rep_4byte\*(C'\fR, \f(CW\*(C`rep_8byte\*(C'\fR for expanding using i386 \f(CW\*(C`rep\*(C'\fR prefix
10580 of specified size, \f(CW\*(C`byte_loop\*(C'\fR, \f(CW\*(C`loop\*(C'\fR, \f(CW\*(C`unrolled_loop\*(C'\fR for
10581 expanding inline loop, \f(CW\*(C`libcall\*(C'\fR for always expanding library call.
10582 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
10583 .IX Item "-momit-leaf-frame-pointer"
10584 Don't keep the frame pointer in a register for leaf functions.  This
10585 avoids the instructions to save, set up and restore frame pointers and
10586 makes an extra register available in leaf functions.  The option
10587 \&\fB\-fomit\-frame\-pointer\fR removes the frame pointer for all functions
10588 which might make debugging harder.
10589 .IP "\fB\-mtls\-direct\-seg\-refs\fR" 4
10590 .IX Item "-mtls-direct-seg-refs"
10591 .PD 0
10592 .IP "\fB\-mno\-tls\-direct\-seg\-refs\fR" 4
10593 .IX Item "-mno-tls-direct-seg-refs"
10594 .PD
10595 Controls whether \s-1TLS\s0 variables may be accessed with offsets from the
10596 \&\s-1TLS\s0 segment register (\f(CW%gs\fR for 32\-bit, \f(CW%fs\fR for 64\-bit),
10597 or whether the thread base pointer must be added.  Whether or not this
10598 is legal depends on the operating system, and whether it maps the
10599 segment to cover the entire \s-1TLS\s0 area.
10600 .Sp
10601 For systems that use \s-1GNU\s0 libc, the default is on.
10602 .IP "\fB\-mfused\-madd\fR" 4
10603 .IX Item "-mfused-madd"
10604 .PD 0
10605 .IP "\fB\-mno\-fused\-madd\fR" 4
10606 .IX Item "-mno-fused-madd"
10607 .PD
10608 Enable automatic generation of fused floating point multiply-add instructions
10609 if the \s-1ISA\s0 supports such instructions.  The \-mfused\-madd option is on by
10610 default.  The fused multiply-add instructions have a different
10611 rounding behavior compared to executing a multiply followed by an add.
10612 .IP "\fB\-msse2avx\fR" 4
10613 .IX Item "-msse2avx"
10614 .PD 0
10615 .IP "\fB\-mno\-sse2avx\fR" 4
10616 .IX Item "-mno-sse2avx"
10617 .PD
10618 Specify that the assembler should encode \s-1SSE\s0 instructions with \s-1VEX\s0
10619 prefix.  The option \fB\-mavx\fR turns this on by default.
10620 .PP
10621 These \fB\-m\fR switches are supported in addition to the above
10622 on \s-1AMD\s0 x86\-64 processors in 64\-bit environments.
10623 .IP "\fB\-m32\fR" 4
10624 .IX Item "-m32"
10625 .PD 0
10626 .IP "\fB\-m64\fR" 4
10627 .IX Item "-m64"
10628 .PD
10629 Generate code for a 32\-bit or 64\-bit environment.
10630 The 32\-bit environment sets int, long and pointer to 32 bits and
10631 generates code that runs on any i386 system.
10632 The 64\-bit environment sets int to 32 bits and long and pointer
10633 to 64 bits and generates code for \s-1AMD\s0's x86\-64 architecture. For
10634 darwin only the \-m64 option turns off the \fB\-fno\-pic\fR and
10635 \&\fB\-mdynamic\-no\-pic\fR options.
10636 .IP "\fB\-mno\-red\-zone\fR" 4
10637 .IX Item "-mno-red-zone"
10638 Do not use a so called red zone for x86\-64 code.  The red zone is mandated
10639 by the x86\-64 \s-1ABI\s0, it is a 128\-byte area beyond the location of the
10640 stack pointer that will not be modified by signal or interrupt handlers
10641 and therefore can be used for temporary data without adjusting the stack
10642 pointer.  The flag \fB\-mno\-red\-zone\fR disables this red zone.
10643 .IP "\fB\-mcmodel=small\fR" 4
10644 .IX Item "-mcmodel=small"
10645 Generate code for the small code model: the program and its symbols must
10646 be linked in the lower 2 \s-1GB\s0 of the address space.  Pointers are 64 bits.
10647 Programs can be statically or dynamically linked.  This is the default
10648 code model.
10649 .IP "\fB\-mcmodel=kernel\fR" 4
10650 .IX Item "-mcmodel=kernel"
10651 Generate code for the kernel code model.  The kernel runs in the
10652 negative 2 \s-1GB\s0 of the address space.
10653 This model has to be used for Linux kernel code.
10654 .IP "\fB\-mcmodel=medium\fR" 4
10655 .IX Item "-mcmodel=medium"
10656 Generate code for the medium model: The program is linked in the lower 2
10657 \&\s-1GB\s0 of the address space.  Small symbols are also placed there.  Symbols
10658 with sizes larger than \fB\-mlarge\-data\-threshold\fR are put into
10659 large data or bss sections and can be located above 2GB.  Programs can
10660 be statically or dynamically linked.
10661 .IP "\fB\-mcmodel=large\fR" 4
10662 .IX Item "-mcmodel=large"
10663 Generate code for the large model: This model makes no assumptions
10664 about addresses and sizes of sections.
10665 .PP
10666 \fIi386 and x86\-64 Windows Options\fR
10667 .IX Subsection "i386 and x86-64 Windows Options"
10668 .PP
10669 These additional options are available for Windows targets:
10670 .IP "\fB\-mconsole\fR" 4
10671 .IX Item "-mconsole"
10672 This option is available for Cygwin and MinGW targets.  It
10673 specifies that a console application is to be generated, by
10674 instructing the linker to set the \s-1PE\s0 header subsystem type
10675 required for console applications.
10676 This is the default behaviour for Cygwin and MinGW targets.
10677 .IP "\fB\-mcygwin\fR" 4
10678 .IX Item "-mcygwin"
10679 This option is available for Cygwin targets.  It specifies that
10680 the Cygwin internal interface is to be used for predefined
10681 preprocessor macros, C runtime libraries and related linker
10682 paths and options.  For Cygwin targets this is the default behaviour.
10683 This option is deprecated and will be removed in a future release.
10684 .IP "\fB\-mno\-cygwin\fR" 4
10685 .IX Item "-mno-cygwin"
10686 This option is available for Cygwin targets.  It specifies that
10687 the MinGW internal interface is to be used instead of Cygwin's, by
10688 setting MinGW-related predefined macros and linker paths and default
10689 library options.
10690 This option is deprecated and will be removed in a future release.
10691 .IP "\fB\-mdll\fR" 4
10692 .IX Item "-mdll"
10693 This option is available for Cygwin and MinGW targets.  It
10694 specifies that a \s-1DLL\s0 \- a dynamic link library \- is to be
10695 generated, enabling the selection of the required runtime
10696 startup object and entry point.
10697 .IP "\fB\-mnop\-fun\-dllimport\fR" 4
10698 .IX Item "-mnop-fun-dllimport"
10699 This option is available for Cygwin and MinGW targets.  It
10700 specifies that the dllimport attribute should be ignored.
10701 .IP "\fB\-mthread\fR" 4
10702 .IX Item "-mthread"
10703 This option is available for MinGW targets. It specifies
10704 that MinGW-specific thread support is to be used.
10705 .IP "\fB\-mwin32\fR" 4
10706 .IX Item "-mwin32"
10707 This option is available for Cygwin and MinGW targets.  It
10708 specifies that the typical Windows pre-defined macros are to
10709 be set in the pre-processor, but does not influence the choice
10710 of runtime library/startup code.
10711 .IP "\fB\-mwindows\fR" 4
10712 .IX Item "-mwindows"
10713 This option is available for Cygwin and MinGW targets.  It
10714 specifies that a \s-1GUI\s0 application is to be generated by
10715 instructing the linker to set the \s-1PE\s0 header subsystem type
10716 appropriately.
10717 .PP
10718 See also under \fBi386 and x86\-64 Options\fR for standard options.
10719 .PP
10720 \fI\s-1IA\-64\s0 Options\fR
10721 .IX Subsection "IA-64 Options"
10722 .PP
10723 These are the \fB\-m\fR options defined for the Intel \s-1IA\-64\s0 architecture.
10724 .IP "\fB\-mbig\-endian\fR" 4
10725 .IX Item "-mbig-endian"
10726 Generate code for a big endian target.  This is the default for HP-UX.
10727 .IP "\fB\-mlittle\-endian\fR" 4
10728 .IX Item "-mlittle-endian"
10729 Generate code for a little endian target.  This is the default for \s-1AIX5\s0
10730 and GNU/Linux.
10731 .IP "\fB\-mgnu\-as\fR" 4
10732 .IX Item "-mgnu-as"
10733 .PD 0
10734 .IP "\fB\-mno\-gnu\-as\fR" 4
10735 .IX Item "-mno-gnu-as"
10736 .PD
10737 Generate (or don't) code for the \s-1GNU\s0 assembler.  This is the default.
10738 .IP "\fB\-mgnu\-ld\fR" 4
10739 .IX Item "-mgnu-ld"
10740 .PD 0
10741 .IP "\fB\-mno\-gnu\-ld\fR" 4
10742 .IX Item "-mno-gnu-ld"
10743 .PD
10744 Generate (or don't) code for the \s-1GNU\s0 linker.  This is the default.
10745 .IP "\fB\-mno\-pic\fR" 4
10746 .IX Item "-mno-pic"
10747 Generate code that does not use a global pointer register.  The result
10748 is not position independent code, and violates the \s-1IA\-64\s0 \s-1ABI\s0.
10749 .IP "\fB\-mvolatile\-asm\-stop\fR" 4
10750 .IX Item "-mvolatile-asm-stop"
10751 .PD 0
10752 .IP "\fB\-mno\-volatile\-asm\-stop\fR" 4
10753 .IX Item "-mno-volatile-asm-stop"
10754 .PD
10755 Generate (or don't) a stop bit immediately before and after volatile asm
10756 statements.
10757 .IP "\fB\-mregister\-names\fR" 4
10758 .IX Item "-mregister-names"
10759 .PD 0
10760 .IP "\fB\-mno\-register\-names\fR" 4
10761 .IX Item "-mno-register-names"
10762 .PD
10763 Generate (or don't) \fBin\fR, \fBloc\fR, and \fBout\fR register names for
10764 the stacked registers.  This may make assembler output more readable.
10765 .IP "\fB\-mno\-sdata\fR" 4
10766 .IX Item "-mno-sdata"
10767 .PD 0
10768 .IP "\fB\-msdata\fR" 4
10769 .IX Item "-msdata"
10770 .PD
10771 Disable (or enable) optimizations that use the small data section.  This may
10772 be useful for working around optimizer bugs.
10773 .IP "\fB\-mconstant\-gp\fR" 4
10774 .IX Item "-mconstant-gp"
10775 Generate code that uses a single constant global pointer value.  This is
10776 useful when compiling kernel code.
10777 .IP "\fB\-mauto\-pic\fR" 4
10778 .IX Item "-mauto-pic"
10779 Generate code that is self-relocatable.  This implies \fB\-mconstant\-gp\fR.
10780 This is useful when compiling firmware code.
10781 .IP "\fB\-minline\-float\-divide\-min\-latency\fR" 4
10782 .IX Item "-minline-float-divide-min-latency"
10783 Generate code for inline divides of floating point values
10784 using the minimum latency algorithm.
10785 .IP "\fB\-minline\-float\-divide\-max\-throughput\fR" 4
10786 .IX Item "-minline-float-divide-max-throughput"
10787 Generate code for inline divides of floating point values
10788 using the maximum throughput algorithm.
10789 .IP "\fB\-minline\-int\-divide\-min\-latency\fR" 4
10790 .IX Item "-minline-int-divide-min-latency"
10791 Generate code for inline divides of integer values
10792 using the minimum latency algorithm.
10793 .IP "\fB\-minline\-int\-divide\-max\-throughput\fR" 4
10794 .IX Item "-minline-int-divide-max-throughput"
10795 Generate code for inline divides of integer values
10796 using the maximum throughput algorithm.
10797 .IP "\fB\-minline\-sqrt\-min\-latency\fR" 4
10798 .IX Item "-minline-sqrt-min-latency"
10799 Generate code for inline square roots
10800 using the minimum latency algorithm.
10801 .IP "\fB\-minline\-sqrt\-max\-throughput\fR" 4
10802 .IX Item "-minline-sqrt-max-throughput"
10803 Generate code for inline square roots
10804 using the maximum throughput algorithm.
10805 .IP "\fB\-mno\-dwarf2\-asm\fR" 4
10806 .IX Item "-mno-dwarf2-asm"
10807 .PD 0
10808 .IP "\fB\-mdwarf2\-asm\fR" 4
10809 .IX Item "-mdwarf2-asm"
10810 .PD
10811 Don't (or do) generate assembler code for the \s-1DWARF2\s0 line number debugging
10812 info.  This may be useful when not using the \s-1GNU\s0 assembler.
10813 .IP "\fB\-mearly\-stop\-bits\fR" 4
10814 .IX Item "-mearly-stop-bits"
10815 .PD 0
10816 .IP "\fB\-mno\-early\-stop\-bits\fR" 4
10817 .IX Item "-mno-early-stop-bits"
10818 .PD
10819 Allow stop bits to be placed earlier than immediately preceding the
10820 instruction that triggered the stop bit.  This can improve instruction
10821 scheduling, but does not always do so.
10822 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
10823 .IX Item "-mfixed-range=register-range"
10824 Generate code treating the given register range as fixed registers.
10825 A fixed register is one that the register allocator can not use.  This is
10826 useful when compiling kernel code.  A register range is specified as
10827 two registers separated by a dash.  Multiple register ranges can be
10828 specified separated by a comma.
10829 .IP "\fB\-mtls\-size=\fR\fItls-size\fR" 4
10830 .IX Item "-mtls-size=tls-size"
10831 Specify bit size of immediate \s-1TLS\s0 offsets.  Valid values are 14, 22, and
10832 64.
10833 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
10834 .IX Item "-mtune=cpu-type"
10835 Tune the instruction scheduling for a particular \s-1CPU\s0, Valid values are
10836 itanium, itanium1, merced, itanium2, and mckinley.
10837 .IP "\fB\-mt\fR" 4
10838 .IX Item "-mt"
10839 .PD 0
10840 .IP "\fB\-pthread\fR" 4
10841 .IX Item "-pthread"
10842 .PD
10843 Add support for multithreading using the \s-1POSIX\s0 threads library.  This
10844 option sets flags for both the preprocessor and linker.  It does
10845 not affect the thread safety of object code produced by the compiler or
10846 that of libraries supplied with it.  These are HP-UX specific flags.
10847 .IP "\fB\-milp32\fR" 4
10848 .IX Item "-milp32"
10849 .PD 0
10850 .IP "\fB\-mlp64\fR" 4
10851 .IX Item "-mlp64"
10852 .PD
10853 Generate code for a 32\-bit or 64\-bit environment.
10854 The 32\-bit environment sets int, long and pointer to 32 bits.
10855 The 64\-bit environment sets int to 32 bits and long and pointer
10856 to 64 bits.  These are HP-UX specific flags.
10857 .IP "\fB\-mno\-sched\-br\-data\-spec\fR" 4
10858 .IX Item "-mno-sched-br-data-spec"
10859 .PD 0
10860 .IP "\fB\-msched\-br\-data\-spec\fR" 4
10861 .IX Item "-msched-br-data-spec"
10862 .PD
10863 (Dis/En)able data speculative scheduling before reload.
10864 This will result in generation of the ld.a instructions and
10865 the corresponding check instructions (ld.c / chk.a).
10866 The default is 'disable'.
10867 .IP "\fB\-msched\-ar\-data\-spec\fR" 4
10868 .IX Item "-msched-ar-data-spec"
10869 .PD 0
10870 .IP "\fB\-mno\-sched\-ar\-data\-spec\fR" 4
10871 .IX Item "-mno-sched-ar-data-spec"
10872 .PD
10873 (En/Dis)able data speculative scheduling after reload.
10874 This will result in generation of the ld.a instructions and
10875 the corresponding check instructions (ld.c / chk.a).
10876 The default is 'enable'.
10877 .IP "\fB\-mno\-sched\-control\-spec\fR" 4
10878 .IX Item "-mno-sched-control-spec"
10879 .PD 0
10880 .IP "\fB\-msched\-control\-spec\fR" 4
10881 .IX Item "-msched-control-spec"
10882 .PD
10883 (Dis/En)able control speculative scheduling.  This feature is
10884 available only during region scheduling (i.e. before reload).
10885 This will result in generation of the ld.s instructions and
10886 the corresponding check instructions chk.s .
10887 The default is 'disable'.
10888 .IP "\fB\-msched\-br\-in\-data\-spec\fR" 4
10889 .IX Item "-msched-br-in-data-spec"
10890 .PD 0
10891 .IP "\fB\-mno\-sched\-br\-in\-data\-spec\fR" 4
10892 .IX Item "-mno-sched-br-in-data-spec"
10893 .PD
10894 (En/Dis)able speculative scheduling of the instructions that
10895 are dependent on the data speculative loads before reload.
10896 This is effective only with \fB\-msched\-br\-data\-spec\fR enabled.
10897 The default is 'enable'.
10898 .IP "\fB\-msched\-ar\-in\-data\-spec\fR" 4
10899 .IX Item "-msched-ar-in-data-spec"
10900 .PD 0
10901 .IP "\fB\-mno\-sched\-ar\-in\-data\-spec\fR" 4
10902 .IX Item "-mno-sched-ar-in-data-spec"
10903 .PD
10904 (En/Dis)able speculative scheduling of the instructions that
10905 are dependent on the data speculative loads after reload.
10906 This is effective only with \fB\-msched\-ar\-data\-spec\fR enabled.
10907 The default is 'enable'.
10908 .IP "\fB\-msched\-in\-control\-spec\fR" 4
10909 .IX Item "-msched-in-control-spec"
10910 .PD 0
10911 .IP "\fB\-mno\-sched\-in\-control\-spec\fR" 4
10912 .IX Item "-mno-sched-in-control-spec"
10913 .PD
10914 (En/Dis)able speculative scheduling of the instructions that
10915 are dependent on the control speculative loads.
10916 This is effective only with \fB\-msched\-control\-spec\fR enabled.
10917 The default is 'enable'.
10918 .IP "\fB\-msched\-ldc\fR" 4
10919 .IX Item "-msched-ldc"
10920 .PD 0
10921 .IP "\fB\-mno\-sched\-ldc\fR" 4
10922 .IX Item "-mno-sched-ldc"
10923 .PD
10924 (En/Dis)able use of simple data speculation checks ld.c .
10925 If disabled, only chk.a instructions will be emitted to check
10926 data speculative loads.
10927 The default is 'enable'.
10928 .IP "\fB\-mno\-sched\-control\-ldc\fR" 4
10929 .IX Item "-mno-sched-control-ldc"
10930 .PD 0
10931 .IP "\fB\-msched\-control\-ldc\fR" 4
10932 .IX Item "-msched-control-ldc"
10933 .PD
10934 (Dis/En)able use of ld.c instructions to check control speculative loads.
10935 If enabled, in case of control speculative load with no speculatively
10936 scheduled dependent instructions this load will be emitted as ld.sa and
10937 ld.c will be used to check it.
10938 The default is 'disable'.
10939 .IP "\fB\-mno\-sched\-spec\-verbose\fR" 4
10940 .IX Item "-mno-sched-spec-verbose"
10941 .PD 0
10942 .IP "\fB\-msched\-spec\-verbose\fR" 4
10943 .IX Item "-msched-spec-verbose"
10944 .PD
10945 (Dis/En)able printing of the information about speculative motions.
10946 .IP "\fB\-mno\-sched\-prefer\-non\-data\-spec\-insns\fR" 4
10947 .IX Item "-mno-sched-prefer-non-data-spec-insns"
10948 .PD 0
10949 .IP "\fB\-msched\-prefer\-non\-data\-spec\-insns\fR" 4
10950 .IX Item "-msched-prefer-non-data-spec-insns"
10951 .PD
10952 If enabled, data speculative instructions will be chosen for schedule
10953 only if there are no other choices at the moment.  This will make
10954 the use of the data speculation much more conservative.
10955 The default is 'disable'.
10956 .IP "\fB\-mno\-sched\-prefer\-non\-control\-spec\-insns\fR" 4
10957 .IX Item "-mno-sched-prefer-non-control-spec-insns"
10958 .PD 0
10959 .IP "\fB\-msched\-prefer\-non\-control\-spec\-insns\fR" 4
10960 .IX Item "-msched-prefer-non-control-spec-insns"
10961 .PD
10962 If enabled, control speculative instructions will be chosen for schedule
10963 only if there are no other choices at the moment.  This will make
10964 the use of the control speculation much more conservative.
10965 The default is 'disable'.
10966 .IP "\fB\-mno\-sched\-count\-spec\-in\-critical\-path\fR" 4
10967 .IX Item "-mno-sched-count-spec-in-critical-path"
10968 .PD 0
10969 .IP "\fB\-msched\-count\-spec\-in\-critical\-path\fR" 4
10970 .IX Item "-msched-count-spec-in-critical-path"
10971 .PD
10972 If enabled, speculative dependencies will be considered during
10973 computation of the instructions priorities.  This will make the use of the
10974 speculation a bit more conservative.
10975 The default is 'disable'.
10976 .PP
10977 \fIM32C Options\fR
10978 .IX Subsection "M32C Options"
10979 .IP "\fB\-mcpu=\fR\fIname\fR" 4
10980 .IX Item "-mcpu=name"
10981 Select the \s-1CPU\s0 for which code is generated.  \fIname\fR may be one of
10982 \&\fBr8c\fR for the R8C/Tiny series, \fBm16c\fR for the M16C (up to
10983 /60) series, \fBm32cm\fR for the M16C/80 series, or \fBm32c\fR for
10984 the M32C/80 series.
10985 .IP "\fB\-msim\fR" 4
10986 .IX Item "-msim"
10987 Specifies that the program will be run on the simulator.  This causes
10988 an alternate runtime library to be linked in which supports, for
10989 example, file I/O.  You must not use this option when generating
10990 programs that will run on real hardware; you must provide your own
10991 runtime library for whatever I/O functions are needed.
10992 .IP "\fB\-memregs=\fR\fInumber\fR" 4
10993 .IX Item "-memregs=number"
10994 Specifies the number of memory-based pseudo-registers \s-1GCC\s0 will use
10995 during code generation.  These pseudo-registers will be used like real
10996 registers, so there is a tradeoff between \s-1GCC\s0's ability to fit the
10997 code into available registers, and the performance penalty of using
10998 memory instead of registers.  Note that all modules in a program must
10999 be compiled with the same value for this option.  Because of that, you
11000 must not use this option with the default runtime libraries gcc
11001 builds.
11002 .PP
11003 \fIM32R/D Options\fR
11004 .IX Subsection "M32R/D Options"
11005 .PP
11006 These \fB\-m\fR options are defined for Renesas M32R/D architectures:
11007 .IP "\fB\-m32r2\fR" 4
11008 .IX Item "-m32r2"
11009 Generate code for the M32R/2.
11010 .IP "\fB\-m32rx\fR" 4
11011 .IX Item "-m32rx"
11012 Generate code for the M32R/X.
11013 .IP "\fB\-m32r\fR" 4
11014 .IX Item "-m32r"
11015 Generate code for the M32R.  This is the default.
11016 .IP "\fB\-mmodel=small\fR" 4
11017 .IX Item "-mmodel=small"
11018 Assume all objects live in the lower 16MB of memory (so that their addresses
11019 can be loaded with the \f(CW\*(C`ld24\*(C'\fR instruction), and assume all subroutines
11020 are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
11021 This is the default.
11022 .Sp
11023 The addressability of a particular object can be set with the
11024 \&\f(CW\*(C`model\*(C'\fR attribute.
11025 .IP "\fB\-mmodel=medium\fR" 4
11026 .IX Item "-mmodel=medium"
11027 Assume objects may be anywhere in the 32\-bit address space (the compiler
11028 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
11029 assume all subroutines are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
11030 .IP "\fB\-mmodel=large\fR" 4
11031 .IX Item "-mmodel=large"
11032 Assume objects may be anywhere in the 32\-bit address space (the compiler
11033 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
11034 assume subroutines may not be reachable with the \f(CW\*(C`bl\*(C'\fR instruction
11035 (the compiler will generate the much slower \f(CW\*(C`seth/add3/jl\*(C'\fR
11036 instruction sequence).
11037 .IP "\fB\-msdata=none\fR" 4
11038 .IX Item "-msdata=none"
11039 Disable use of the small data area.  Variables will be put into
11040 one of \fB.data\fR, \fBbss\fR, or \fB.rodata\fR (unless the
11041 \&\f(CW\*(C`section\*(C'\fR attribute has been specified).
11042 This is the default.
11043 .Sp
11044 The small data area consists of sections \fB.sdata\fR and \fB.sbss\fR.
11045 Objects may be explicitly put in the small data area with the
11046 \&\f(CW\*(C`section\*(C'\fR attribute using one of these sections.
11047 .IP "\fB\-msdata=sdata\fR" 4
11048 .IX Item "-msdata=sdata"
11049 Put small global and static data in the small data area, but do not
11050 generate special code to reference them.
11051 .IP "\fB\-msdata=use\fR" 4
11052 .IX Item "-msdata=use"
11053 Put small global and static data in the small data area, and generate
11054 special instructions to reference them.
11055 .IP "\fB\-G\fR \fInum\fR" 4
11056 .IX Item "-G num"
11057 Put global and static objects less than or equal to \fInum\fR bytes
11058 into the small data or bss sections instead of the normal data or bss
11059 sections.  The default value of \fInum\fR is 8.
11060 The \fB\-msdata\fR option must be set to one of \fBsdata\fR or \fBuse\fR
11061 for this option to have any effect.
11062 .Sp
11063 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
11064 Compiling with different values of \fInum\fR may or may not work; if it
11065 doesn't the linker will give an error message\-\-\-incorrect code will not be
11066 generated.
11067 .IP "\fB\-mdebug\fR" 4
11068 .IX Item "-mdebug"
11069 Makes the M32R specific code in the compiler display some statistics
11070 that might help in debugging programs.
11071 .IP "\fB\-malign\-loops\fR" 4
11072 .IX Item "-malign-loops"
11073 Align all loops to a 32\-byte boundary.
11074 .IP "\fB\-mno\-align\-loops\fR" 4
11075 .IX Item "-mno-align-loops"
11076 Do not enforce a 32\-byte alignment for loops.  This is the default.
11077 .IP "\fB\-missue\-rate=\fR\fInumber\fR" 4
11078 .IX Item "-missue-rate=number"
11079 Issue \fInumber\fR instructions per cycle.  \fInumber\fR can only be 1
11080 or 2.
11081 .IP "\fB\-mbranch\-cost=\fR\fInumber\fR" 4
11082 .IX Item "-mbranch-cost=number"
11083 \&\fInumber\fR can only be 1 or 2.  If it is 1 then branches will be
11084 preferred over conditional code, if it is 2, then the opposite will
11085 apply.
11086 .IP "\fB\-mflush\-trap=\fR\fInumber\fR" 4
11087 .IX Item "-mflush-trap=number"
11088 Specifies the trap number to use to flush the cache.  The default is
11089 12.  Valid numbers are between 0 and 15 inclusive.
11090 .IP "\fB\-mno\-flush\-trap\fR" 4
11091 .IX Item "-mno-flush-trap"
11092 Specifies that the cache cannot be flushed by using a trap.
11093 .IP "\fB\-mflush\-func=\fR\fIname\fR" 4
11094 .IX Item "-mflush-func=name"
11095 Specifies the name of the operating system function to call to flush
11096 the cache.  The default is \fI_flush_cache\fR, but a function call
11097 will only be used if a trap is not available.
11098 .IP "\fB\-mno\-flush\-func\fR" 4
11099 .IX Item "-mno-flush-func"
11100 Indicates that there is no \s-1OS\s0 function for flushing the cache.
11101 .PP
11102 \fIM680x0 Options\fR
11103 .IX Subsection "M680x0 Options"
11104 .PP
11105 These are the \fB\-m\fR options defined for M680x0 and ColdFire processors.
11106 The default settings depend on which architecture was selected when
11107 the compiler was configured; the defaults for the most common choices
11108 are given below.
11109 .IP "\fB\-march=\fR\fIarch\fR" 4
11110 .IX Item "-march=arch"
11111 Generate code for a specific M680x0 or ColdFire instruction set
11112 architecture.  Permissible values of \fIarch\fR for M680x0
11113 architectures are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
11114 \&\fB68030\fR, \fB68040\fR, \fB68060\fR and \fBcpu32\fR.  ColdFire
11115 architectures are selected according to Freescale's \s-1ISA\s0 classification
11116 and the permissible values are: \fBisaa\fR, \fBisaaplus\fR,
11117 \&\fBisab\fR and \fBisac\fR.
11118 .Sp
11119 gcc defines a macro \fB_\|_mcf\fR\fIarch\fR\fB_\|_\fR whenever it is generating
11120 code for a ColdFire target.  The \fIarch\fR in this macro is one of the
11121 \&\fB\-march\fR arguments given above.
11122 .Sp
11123 When used together, \fB\-march\fR and \fB\-mtune\fR select code
11124 that runs on a family of similar processors but that is optimized
11125 for a particular microarchitecture.
11126 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
11127 .IX Item "-mcpu=cpu"
11128 Generate code for a specific M680x0 or ColdFire processor.
11129 The M680x0 \fIcpu\fRs are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
11130 \&\fB68030\fR, \fB68040\fR, \fB68060\fR, \fB68302\fR, \fB68332\fR
11131 and \fBcpu32\fR.  The ColdFire \fIcpu\fRs are given by the table
11132 below, which also classifies the CPUs into families:
11133 .RS 4
11134 .IP "Family : \fB\-mcpu\fR arguments" 4
11135 .IX Item "Family : -mcpu arguments"
11136 .PD 0
11137 .IP "\fB51qe\fR : \fB51qe\fR" 4
11138 .IX Item "51qe : 51qe"
11139 .IP "\fB5206\fR : \fB5202\fR \fB5204\fR \fB5206\fR" 4
11140 .IX Item "5206 : 5202 5204 5206"
11141 .IP "\fB5206e\fR : \fB5206e\fR" 4
11142 .IX Item "5206e : 5206e"
11143 .IP "\fB5208\fR : \fB5207\fR \fB5208\fR" 4
11144 .IX Item "5208 : 5207 5208"
11145 .IP "\fB5211a\fR : \fB5210a\fR \fB5211a\fR" 4
11146 .IX Item "5211a : 5210a 5211a"
11147 .IP "\fB5213\fR : \fB5211\fR \fB5212\fR \fB5213\fR" 4
11148 .IX Item "5213 : 5211 5212 5213"
11149 .IP "\fB5216\fR : \fB5214\fR \fB5216\fR" 4
11150 .IX Item "5216 : 5214 5216"
11151 .IP "\fB52235\fR : \fB52230\fR \fB52231\fR \fB52232\fR \fB52233\fR \fB52234\fR \fB52235\fR" 4
11152 .IX Item "52235 : 52230 52231 52232 52233 52234 52235"
11153 .IP "\fB5225\fR : \fB5224\fR \fB5225\fR" 4
11154 .IX Item "5225 : 5224 5225"
11155 .IP "\fB5235\fR : \fB5232\fR \fB5233\fR \fB5234\fR \fB5235\fR \fB523x\fR" 4
11156 .IX Item "5235 : 5232 5233 5234 5235 523x"
11157 .IP "\fB5249\fR : \fB5249\fR" 4
11158 .IX Item "5249 : 5249"
11159 .IP "\fB5250\fR : \fB5250\fR" 4
11160 .IX Item "5250 : 5250"
11161 .IP "\fB5271\fR : \fB5270\fR \fB5271\fR" 4
11162 .IX Item "5271 : 5270 5271"
11163 .IP "\fB5272\fR : \fB5272\fR" 4
11164 .IX Item "5272 : 5272"
11165 .IP "\fB5275\fR : \fB5274\fR \fB5275\fR" 4
11166 .IX Item "5275 : 5274 5275"
11167 .IP "\fB5282\fR : \fB5280\fR \fB5281\fR \fB5282\fR \fB528x\fR" 4
11168 .IX Item "5282 : 5280 5281 5282 528x"
11169 .IP "\fB5307\fR : \fB5307\fR" 4
11170 .IX Item "5307 : 5307"
11171 .IP "\fB5329\fR : \fB5327\fR \fB5328\fR \fB5329\fR \fB532x\fR" 4
11172 .IX Item "5329 : 5327 5328 5329 532x"
11173 .IP "\fB5373\fR : \fB5372\fR \fB5373\fR \fB537x\fR" 4
11174 .IX Item "5373 : 5372 5373 537x"
11175 .IP "\fB5407\fR : \fB5407\fR" 4
11176 .IX Item "5407 : 5407"
11177 .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
11178 .IX Item "5475 : 5470 5471 5472 5473 5474 5475 547x 5480 5481 5482 5483 5484 5485"
11179 .RE
11180 .RS 4
11181 .PD
11182 .Sp
11183 \&\fB\-mcpu=\fR\fIcpu\fR overrides \fB\-march=\fR\fIarch\fR if
11184 \&\fIarch\fR is compatible with \fIcpu\fR.  Other combinations of
11185 \&\fB\-mcpu\fR and \fB\-march\fR are rejected.
11186 .Sp
11187 gcc defines the macro \fB_\|_mcf_cpu_\fR\fIcpu\fR when ColdFire target
11188 \&\fIcpu\fR is selected.  It also defines \fB_\|_mcf_family_\fR\fIfamily\fR,
11189 where the value of \fIfamily\fR is given by the table above.
11190 .RE
11191 .IP "\fB\-mtune=\fR\fItune\fR" 4
11192 .IX Item "-mtune=tune"
11193 Tune the code for a particular microarchitecture, within the
11194 constraints set by \fB\-march\fR and \fB\-mcpu\fR.
11195 The M680x0 microarchitectures are: \fB68000\fR, \fB68010\fR,
11196 \&\fB68020\fR, \fB68030\fR, \fB68040\fR, \fB68060\fR
11197 and \fBcpu32\fR.  The ColdFire microarchitectures
11198 are: \fBcfv1\fR, \fBcfv2\fR, \fBcfv3\fR, \fBcfv4\fR and \fBcfv4e\fR.
11199 .Sp
11200 You can also use \fB\-mtune=68020\-40\fR for code that needs
11201 to run relatively well on 68020, 68030 and 68040 targets.
11202 \&\fB\-mtune=68020\-60\fR is similar but includes 68060 targets
11203 as well.  These two options select the same tuning decisions as
11204 \&\fB\-m68020\-40\fR and \fB\-m68020\-60\fR respectively.
11205 .Sp
11206 gcc defines the macros \fB_\|_mc\fR\fIarch\fR and \fB_\|_mc\fR\fIarch\fR\fB_\|_\fR
11207 when tuning for 680x0 architecture \fIarch\fR.  It also defines
11208 \&\fBmc\fR\fIarch\fR unless either \fB\-ansi\fR or a non-GNU \fB\-std\fR
11209 option is used.  If gcc is tuning for a range of architectures,
11210 as selected by \fB\-mtune=68020\-40\fR or \fB\-mtune=68020\-60\fR,
11211 it defines the macros for every architecture in the range.
11212 .Sp
11213 gcc also defines the macro \fB_\|_m\fR\fIuarch\fR\fB_\|_\fR when tuning for
11214 ColdFire microarchitecture \fIuarch\fR, where \fIuarch\fR is one
11215 of the arguments given above.
11216 .IP "\fB\-m68000\fR" 4
11217 .IX Item "-m68000"
11218 .PD 0
11219 .IP "\fB\-mc68000\fR" 4
11220 .IX Item "-mc68000"
11221 .PD
11222 Generate output for a 68000.  This is the default
11223 when the compiler is configured for 68000\-based systems.
11224 It is equivalent to \fB\-march=68000\fR.
11225 .Sp
11226 Use this option for microcontrollers with a 68000 or \s-1EC000\s0 core,
11227 including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
11228 .IP "\fB\-m68010\fR" 4
11229 .IX Item "-m68010"
11230 Generate output for a 68010.  This is the default
11231 when the compiler is configured for 68010\-based systems.
11232 It is equivalent to \fB\-march=68010\fR.
11233 .IP "\fB\-m68020\fR" 4
11234 .IX Item "-m68020"
11235 .PD 0
11236 .IP "\fB\-mc68020\fR" 4
11237 .IX Item "-mc68020"
11238 .PD
11239 Generate output for a 68020.  This is the default
11240 when the compiler is configured for 68020\-based systems.
11241 It is equivalent to \fB\-march=68020\fR.
11242 .IP "\fB\-m68030\fR" 4
11243 .IX Item "-m68030"
11244 Generate output for a 68030.  This is the default when the compiler is
11245 configured for 68030\-based systems.  It is equivalent to
11246 \&\fB\-march=68030\fR.
11247 .IP "\fB\-m68040\fR" 4
11248 .IX Item "-m68040"
11249 Generate output for a 68040.  This is the default when the compiler is
11250 configured for 68040\-based systems.  It is equivalent to
11251 \&\fB\-march=68040\fR.
11252 .Sp
11253 This option inhibits the use of 68881/68882 instructions that have to be
11254 emulated by software on the 68040.  Use this option if your 68040 does not
11255 have code to emulate those instructions.
11256 .IP "\fB\-m68060\fR" 4
11257 .IX Item "-m68060"
11258 Generate output for a 68060.  This is the default when the compiler is
11259 configured for 68060\-based systems.  It is equivalent to
11260 \&\fB\-march=68060\fR.
11261 .Sp
11262 This option inhibits the use of 68020 and 68881/68882 instructions that
11263 have to be emulated by software on the 68060.  Use this option if your 68060
11264 does not have code to emulate those instructions.
11265 .IP "\fB\-mcpu32\fR" 4
11266 .IX Item "-mcpu32"
11267 Generate output for a \s-1CPU32\s0.  This is the default
11268 when the compiler is configured for CPU32\-based systems.
11269 It is equivalent to \fB\-march=cpu32\fR.
11270 .Sp
11271 Use this option for microcontrollers with a
11272 \&\s-1CPU32\s0 or \s-1CPU32+\s0 core, including the 68330, 68331, 68332, 68333, 68334,
11273 68336, 68340, 68341, 68349 and 68360.
11274 .IP "\fB\-m5200\fR" 4
11275 .IX Item "-m5200"
11276 Generate output for a 520X ColdFire \s-1CPU\s0.  This is the default
11277 when the compiler is configured for 520X\-based systems.
11278 It is equivalent to \fB\-mcpu=5206\fR, and is now deprecated
11279 in favor of that option.
11280 .Sp
11281 Use this option for microcontroller with a 5200 core, including
11282 the \s-1MCF5202\s0, \s-1MCF5203\s0, \s-1MCF5204\s0 and \s-1MCF5206\s0.
11283 .IP "\fB\-m5206e\fR" 4
11284 .IX Item "-m5206e"
11285 Generate output for a 5206e ColdFire \s-1CPU\s0.  The option is now
11286 deprecated in favor of the equivalent \fB\-mcpu=5206e\fR.
11287 .IP "\fB\-m528x\fR" 4
11288 .IX Item "-m528x"
11289 Generate output for a member of the ColdFire 528X family.
11290 The option is now deprecated in favor of the equivalent
11291 \&\fB\-mcpu=528x\fR.
11292 .IP "\fB\-m5307\fR" 4
11293 .IX Item "-m5307"
11294 Generate output for a ColdFire 5307 \s-1CPU\s0.  The option is now deprecated
11295 in favor of the equivalent \fB\-mcpu=5307\fR.
11296 .IP "\fB\-m5407\fR" 4
11297 .IX Item "-m5407"
11298 Generate output for a ColdFire 5407 \s-1CPU\s0.  The option is now deprecated
11299 in favor of the equivalent \fB\-mcpu=5407\fR.
11300 .IP "\fB\-mcfv4e\fR" 4
11301 .IX Item "-mcfv4e"
11302 Generate output for a ColdFire V4e family \s-1CPU\s0 (e.g. 547x/548x).
11303 This includes use of hardware floating point instructions.
11304 The option is equivalent to \fB\-mcpu=547x\fR, and is now
11305 deprecated in favor of that option.
11306 .IP "\fB\-m68020\-40\fR" 4
11307 .IX Item "-m68020-40"
11308 Generate output for a 68040, without using any of the new instructions.
11309 This results in code which can run relatively efficiently on either a
11310 68020/68881 or a 68030 or a 68040.  The generated code does use the
11311 68881 instructions that are emulated on the 68040.
11312 .Sp
11313 The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-40\fR.
11314 .IP "\fB\-m68020\-60\fR" 4
11315 .IX Item "-m68020-60"
11316 Generate output for a 68060, without using any of the new instructions.
11317 This results in code which can run relatively efficiently on either a
11318 68020/68881 or a 68030 or a 68040.  The generated code does use the
11319 68881 instructions that are emulated on the 68060.
11320 .Sp
11321 The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-60\fR.
11322 .IP "\fB\-mhard\-float\fR" 4
11323 .IX Item "-mhard-float"
11324 .PD 0
11325 .IP "\fB\-m68881\fR" 4
11326 .IX Item "-m68881"
11327 .PD
11328 Generate floating-point instructions.  This is the default for 68020
11329 and above, and for ColdFire devices that have an \s-1FPU\s0.  It defines the
11330 macro \fB_\|_HAVE_68881_\|_\fR on M680x0 targets and \fB_\|_mcffpu_\|_\fR
11331 on ColdFire targets.
11332 .IP "\fB\-msoft\-float\fR" 4
11333 .IX Item "-msoft-float"
11334 Do not generate floating-point instructions; use library calls instead.
11335 This is the default for 68000, 68010, and 68832 targets.  It is also
11336 the default for ColdFire devices that have no \s-1FPU\s0.
11337 .IP "\fB\-mdiv\fR" 4
11338 .IX Item "-mdiv"
11339 .PD 0
11340 .IP "\fB\-mno\-div\fR" 4
11341 .IX Item "-mno-div"
11342 .PD
11343 Generate (do not generate) ColdFire hardware divide and remainder
11344 instructions.  If \fB\-march\fR is used without \fB\-mcpu\fR,
11345 the default is \*(L"on\*(R" for ColdFire architectures and \*(L"off\*(R" for M680x0
11346 architectures.  Otherwise, the default is taken from the target \s-1CPU\s0
11347 (either the default \s-1CPU\s0, or the one specified by \fB\-mcpu\fR).  For
11348 example, the default is \*(L"off\*(R" for \fB\-mcpu=5206\fR and \*(L"on\*(R" for
11349 \&\fB\-mcpu=5206e\fR.
11350 .Sp
11351 gcc defines the macro \fB_\|_mcfhwdiv_\|_\fR when this option is enabled.
11352 .IP "\fB\-mshort\fR" 4
11353 .IX Item "-mshort"
11354 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
11355 Additionally, parameters passed on the stack are also aligned to a
11356 16\-bit boundary even on targets whose \s-1API\s0 mandates promotion to 32\-bit.
11357 .IP "\fB\-mno\-short\fR" 4
11358 .IX Item "-mno-short"
11359 Do not consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide.  This is the default.
11360 .IP "\fB\-mnobitfield\fR" 4
11361 .IX Item "-mnobitfield"
11362 .PD 0
11363 .IP "\fB\-mno\-bitfield\fR" 4
11364 .IX Item "-mno-bitfield"
11365 .PD
11366 Do not use the bit-field instructions.  The \fB\-m68000\fR, \fB\-mcpu32\fR
11367 and \fB\-m5200\fR options imply \fB\-mnobitfield\fR.
11368 .IP "\fB\-mbitfield\fR" 4
11369 .IX Item "-mbitfield"
11370 Do use the bit-field instructions.  The \fB\-m68020\fR option implies
11371 \&\fB\-mbitfield\fR.  This is the default if you use a configuration
11372 designed for a 68020.
11373 .IP "\fB\-mrtd\fR" 4
11374 .IX Item "-mrtd"
11375 Use a different function-calling convention, in which functions
11376 that take a fixed number of arguments return with the \f(CW\*(C`rtd\*(C'\fR
11377 instruction, which pops their arguments while returning.  This
11378 saves one instruction in the caller since there is no need to pop
11379 the arguments there.
11380 .Sp
11381 This calling convention is incompatible with the one normally
11382 used on Unix, so you cannot use it if you need to call libraries
11383 compiled with the Unix compiler.
11384 .Sp
11385 Also, you must provide function prototypes for all functions that
11386 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
11387 otherwise incorrect code will be generated for calls to those
11388 functions.
11389 .Sp
11390 In addition, seriously incorrect code will result if you call a
11391 function with too many arguments.  (Normally, extra arguments are
11392 harmlessly ignored.)
11393 .Sp
11394 The \f(CW\*(C`rtd\*(C'\fR instruction is supported by the 68010, 68020, 68030,
11395 68040, 68060 and \s-1CPU32\s0 processors, but not by the 68000 or 5200.
11396 .IP "\fB\-mno\-rtd\fR" 4
11397 .IX Item "-mno-rtd"
11398 Do not use the calling conventions selected by \fB\-mrtd\fR.
11399 This is the default.
11400 .IP "\fB\-malign\-int\fR" 4
11401 .IX Item "-malign-int"
11402 .PD 0
11403 .IP "\fB\-mno\-align\-int\fR" 4
11404 .IX Item "-mno-align-int"
11405 .PD
11406 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,
11407 \&\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
11408 boundary (\fB\-malign\-int\fR) or a 16\-bit boundary (\fB\-mno\-align\-int\fR).
11409 Aligning variables on 32\-bit boundaries produces code that runs somewhat
11410 faster on processors with 32\-bit busses at the expense of more memory.
11411 .Sp
11412 \&\fBWarning:\fR if you use the \fB\-malign\-int\fR switch, \s-1GCC\s0 will
11413 align structures containing the above types  differently than
11414 most published application binary interface specifications for the m68k.
11415 .IP "\fB\-mpcrel\fR" 4
11416 .IX Item "-mpcrel"
11417 Use the pc-relative addressing mode of the 68000 directly, instead of
11418 using a global offset table.  At present, this option implies \fB\-fpic\fR,
11419 allowing at most a 16\-bit offset for pc-relative addressing.  \fB\-fPIC\fR is
11420 not presently supported with \fB\-mpcrel\fR, though this could be supported for
11421 68020 and higher processors.
11422 .IP "\fB\-mno\-strict\-align\fR" 4
11423 .IX Item "-mno-strict-align"
11424 .PD 0
11425 .IP "\fB\-mstrict\-align\fR" 4
11426 .IX Item "-mstrict-align"
11427 .PD
11428 Do not (do) assume that unaligned memory references will be handled by
11429 the system.
11430 .IP "\fB\-msep\-data\fR" 4
11431 .IX Item "-msep-data"
11432 Generate code that allows the data segment to be located in a different
11433 area of memory from the text segment.  This allows for execute in place in
11434 an environment without virtual memory management.  This option implies
11435 \&\fB\-fPIC\fR.
11436 .IP "\fB\-mno\-sep\-data\fR" 4
11437 .IX Item "-mno-sep-data"
11438 Generate code that assumes that the data segment follows the text segment.
11439 This is the default.
11440 .IP "\fB\-mid\-shared\-library\fR" 4
11441 .IX Item "-mid-shared-library"
11442 Generate code that supports shared libraries via the library \s-1ID\s0 method.
11443 This allows for execute in place and shared libraries in an environment
11444 without virtual memory management.  This option implies \fB\-fPIC\fR.
11445 .IP "\fB\-mno\-id\-shared\-library\fR" 4
11446 .IX Item "-mno-id-shared-library"
11447 Generate code that doesn't assume \s-1ID\s0 based shared libraries are being used.
11448 This is the default.
11449 .IP "\fB\-mshared\-library\-id=n\fR" 4
11450 .IX Item "-mshared-library-id=n"
11451 Specified the identification number of the \s-1ID\s0 based shared library being
11452 compiled.  Specifying a value of 0 will generate more compact code, specifying
11453 other values will force the allocation of that number to the current
11454 library but is no more space or time efficient than omitting this option.
11455 .IP "\fB\-mxgot\fR" 4
11456 .IX Item "-mxgot"
11457 .PD 0
11458 .IP "\fB\-mno\-xgot\fR" 4
11459 .IX Item "-mno-xgot"
11460 .PD
11461 When generating position-independent code for ColdFire, generate code
11462 that works if the \s-1GOT\s0 has more than 8192 entries.  This code is
11463 larger and slower than code generated without this option.  On M680x0
11464 processors, this option is not needed; \fB\-fPIC\fR suffices.
11465 .Sp
11466 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT\s0.
11467 While this is relatively efficient, it only works if the \s-1GOT\s0
11468 is smaller than about 64k.  Anything larger causes the linker
11469 to report an error such as:
11470 .Sp
11471 .Vb 1
11472 \&        relocation truncated to fit: R_68K_GOT16O foobar
11473 .Ve
11474 .Sp
11475 If this happens, you should recompile your code with \fB\-mxgot\fR.
11476 It should then work with very large GOTs.  However, code generated with
11477 \&\fB\-mxgot\fR is less efficient, since it takes 4 instructions to fetch
11478 the value of a global symbol.
11479 .Sp
11480 Note that some linkers, including newer versions of the \s-1GNU\s0 linker,
11481 can create multiple GOTs and sort \s-1GOT\s0 entries.  If you have such a linker,
11482 you should only need to use \fB\-mxgot\fR when compiling a single
11483 object file that accesses more than 8192 \s-1GOT\s0 entries.  Very few do.
11484 .Sp
11485 These options have no effect unless \s-1GCC\s0 is generating
11486 position-independent code.
11487 .PP
11488 \fIM68hc1x Options\fR
11489 .IX Subsection "M68hc1x Options"
11490 .PP
11491 These are the \fB\-m\fR options defined for the 68hc11 and 68hc12
11492 microcontrollers.  The default values for these options depends on
11493 which style of microcontroller was selected when the compiler was configured;
11494 the defaults for the most common choices are given below.
11495 .IP "\fB\-m6811\fR" 4
11496 .IX Item "-m6811"
11497 .PD 0
11498 .IP "\fB\-m68hc11\fR" 4
11499 .IX Item "-m68hc11"
11500 .PD
11501 Generate output for a 68HC11.  This is the default
11502 when the compiler is configured for 68HC11\-based systems.
11503 .IP "\fB\-m6812\fR" 4
11504 .IX Item "-m6812"
11505 .PD 0
11506 .IP "\fB\-m68hc12\fR" 4
11507 .IX Item "-m68hc12"
11508 .PD
11509 Generate output for a 68HC12.  This is the default
11510 when the compiler is configured for 68HC12\-based systems.
11511 .IP "\fB\-m68S12\fR" 4
11512 .IX Item "-m68S12"
11513 .PD 0
11514 .IP "\fB\-m68hcs12\fR" 4
11515 .IX Item "-m68hcs12"
11516 .PD
11517 Generate output for a 68HCS12.
11518 .IP "\fB\-mauto\-incdec\fR" 4
11519 .IX Item "-mauto-incdec"
11520 Enable the use of 68HC12 pre and post auto-increment and auto-decrement
11521 addressing modes.
11522 .IP "\fB\-minmax\fR" 4
11523 .IX Item "-minmax"
11524 .PD 0
11525 .IP "\fB\-nominmax\fR" 4
11526 .IX Item "-nominmax"
11527 .PD
11528 Enable the use of 68HC12 min and max instructions.
11529 .IP "\fB\-mlong\-calls\fR" 4
11530 .IX Item "-mlong-calls"
11531 .PD 0
11532 .IP "\fB\-mno\-long\-calls\fR" 4
11533 .IX Item "-mno-long-calls"
11534 .PD
11535 Treat all calls as being far away (near).  If calls are assumed to be
11536 far away, the compiler will use the \f(CW\*(C`call\*(C'\fR instruction to
11537 call a function and the \f(CW\*(C`rtc\*(C'\fR instruction for returning.
11538 .IP "\fB\-mshort\fR" 4
11539 .IX Item "-mshort"
11540 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
11541 .IP "\fB\-msoft\-reg\-count=\fR\fIcount\fR" 4
11542 .IX Item "-msoft-reg-count=count"
11543 Specify the number of pseudo-soft registers which are used for the
11544 code generation.  The maximum number is 32.  Using more pseudo-soft
11545 register may or may not result in better code depending on the program.
11546 The default is 4 for 68HC11 and 2 for 68HC12.
11547 .PP
11548 \fIMCore Options\fR
11549 .IX Subsection "MCore Options"
11550 .PP
11551 These are the \fB\-m\fR options defined for the Motorola M*Core
11552 processors.
11553 .IP "\fB\-mhardlit\fR" 4
11554 .IX Item "-mhardlit"
11555 .PD 0
11556 .IP "\fB\-mno\-hardlit\fR" 4
11557 .IX Item "-mno-hardlit"
11558 .PD
11559 Inline constants into the code stream if it can be done in two
11560 instructions or less.
11561 .IP "\fB\-mdiv\fR" 4
11562 .IX Item "-mdiv"
11563 .PD 0
11564 .IP "\fB\-mno\-div\fR" 4
11565 .IX Item "-mno-div"
11566 .PD
11567 Use the divide instruction.  (Enabled by default).
11568 .IP "\fB\-mrelax\-immediate\fR" 4
11569 .IX Item "-mrelax-immediate"
11570 .PD 0
11571 .IP "\fB\-mno\-relax\-immediate\fR" 4
11572 .IX Item "-mno-relax-immediate"
11573 .PD
11574 Allow arbitrary sized immediates in bit operations.
11575 .IP "\fB\-mwide\-bitfields\fR" 4
11576 .IX Item "-mwide-bitfields"
11577 .PD 0
11578 .IP "\fB\-mno\-wide\-bitfields\fR" 4
11579 .IX Item "-mno-wide-bitfields"
11580 .PD
11581 Always treat bit-fields as int-sized.
11582 .IP "\fB\-m4byte\-functions\fR" 4
11583 .IX Item "-m4byte-functions"
11584 .PD 0
11585 .IP "\fB\-mno\-4byte\-functions\fR" 4
11586 .IX Item "-mno-4byte-functions"
11587 .PD
11588 Force all functions to be aligned to a four byte boundary.
11589 .IP "\fB\-mcallgraph\-data\fR" 4
11590 .IX Item "-mcallgraph-data"
11591 .PD 0
11592 .IP "\fB\-mno\-callgraph\-data\fR" 4
11593 .IX Item "-mno-callgraph-data"
11594 .PD
11595 Emit callgraph information.
11596 .IP "\fB\-mslow\-bytes\fR" 4
11597 .IX Item "-mslow-bytes"
11598 .PD 0
11599 .IP "\fB\-mno\-slow\-bytes\fR" 4
11600 .IX Item "-mno-slow-bytes"
11601 .PD
11602 Prefer word access when reading byte quantities.
11603 .IP "\fB\-mlittle\-endian\fR" 4
11604 .IX Item "-mlittle-endian"
11605 .PD 0
11606 .IP "\fB\-mbig\-endian\fR" 4
11607 .IX Item "-mbig-endian"
11608 .PD
11609 Generate code for a little endian target.
11610 .IP "\fB\-m210\fR" 4
11611 .IX Item "-m210"
11612 .PD 0
11613 .IP "\fB\-m340\fR" 4
11614 .IX Item "-m340"
11615 .PD
11616 Generate code for the 210 processor.
11617 .IP "\fB\-mno\-lsim\fR" 4
11618 .IX Item "-mno-lsim"
11619 Assume that run-time support has been provided and so omit the
11620 simulator library (\fIlibsim.a)\fR from the linker command line.
11621 .IP "\fB\-mstack\-increment=\fR\fIsize\fR" 4
11622 .IX Item "-mstack-increment=size"
11623 Set the maximum amount for a single stack increment operation.  Large
11624 values can increase the speed of programs which contain functions
11625 that need a large amount of stack space, but they can also trigger a
11626 segmentation fault if the stack is extended too much.  The default
11627 value is 0x1000.
11628 .PP
11629 \fI\s-1MIPS\s0 Options\fR
11630 .IX Subsection "MIPS Options"
11631 .IP "\fB\-EB\fR" 4
11632 .IX Item "-EB"
11633 Generate big-endian code.
11634 .IP "\fB\-EL\fR" 4
11635 .IX Item "-EL"
11636 Generate little-endian code.  This is the default for \fBmips*el\-*\-*\fR
11637 configurations.
11638 .IP "\fB\-march=\fR\fIarch\fR" 4
11639 .IX Item "-march=arch"
11640 Generate code that will run on \fIarch\fR, which can be the name of a
11641 generic \s-1MIPS\s0 \s-1ISA\s0, or the name of a particular processor.
11642 The \s-1ISA\s0 names are:
11643 \&\fBmips1\fR, \fBmips2\fR, \fBmips3\fR, \fBmips4\fR,
11644 \&\fBmips32\fR, \fBmips32r2\fR, \fBmips64\fR and \fBmips64r2\fR.
11645 The processor names are:
11646 \&\fB4kc\fR, \fB4km\fR, \fB4kp\fR, \fB4ksc\fR,
11647 \&\fB4kec\fR, \fB4kem\fR, \fB4kep\fR, \fB4ksd\fR,
11648 \&\fB5kc\fR, \fB5kf\fR,
11649 \&\fB20kc\fR,
11650 \&\fB24kc\fR, \fB24kf2_1\fR, \fB24kf1_1\fR,
11651 \&\fB24kec\fR, \fB24kef2_1\fR, \fB24kef1_1\fR,
11652 \&\fB34kc\fR, \fB34kf2_1\fR, \fB34kf1_1\fR,
11653 \&\fB74kc\fR, \fB74kf2_1\fR, \fB74kf1_1\fR, \fB74kf3_2\fR,
11654 \&\fBloongson2e\fR, \fBloongson2f\fR,
11655 \&\fBm4k\fR,
11656 \&\fBocteon\fR,
11657 \&\fBorion\fR,
11658 \&\fBr2000\fR, \fBr3000\fR, \fBr3900\fR, \fBr4000\fR, \fBr4400\fR,
11659 \&\fBr4600\fR, \fBr4650\fR, \fBr6000\fR, \fBr8000\fR,
11660 \&\fBrm7000\fR, \fBrm9000\fR,
11661 \&\fBr10000\fR, \fBr12000\fR, \fBr14000\fR, \fBr16000\fR,
11662 \&\fBsb1\fR,
11663 \&\fBsr71000\fR,
11664 \&\fBvr4100\fR, \fBvr4111\fR, \fBvr4120\fR, \fBvr4130\fR, \fBvr4300\fR,
11665 \&\fBvr5000\fR, \fBvr5400\fR, \fBvr5500\fR
11666 and \fBxlr\fR.
11667 The special value \fBfrom-abi\fR selects the
11668 most compatible architecture for the selected \s-1ABI\s0 (that is,
11669 \&\fBmips1\fR for 32\-bit ABIs and \fBmips3\fR for 64\-bit ABIs).
11670 .Sp
11671 Native Linux/GNU toolchains also support the value \fBnative\fR,
11672 which selects the best architecture option for the host processor.
11673 \&\fB\-march=native\fR has no effect if \s-1GCC\s0 does not recognize
11674 the processor.
11675 .Sp
11676 In processor names, a final \fB000\fR can be abbreviated as \fBk\fR
11677 (for example, \fB\-march=r2k\fR).  Prefixes are optional, and
11678 \&\fBvr\fR may be written \fBr\fR.
11679 .Sp
11680 Names of the form \fIn\fR\fBf2_1\fR refer to processors with
11681 FPUs clocked at half the rate of the core, names of the form
11682 \&\fIn\fR\fBf1_1\fR refer to processors with FPUs clocked at the same
11683 rate as the core, and names of the form \fIn\fR\fBf3_2\fR refer to
11684 processors with FPUs clocked a ratio of 3:2 with respect to the core.
11685 For compatibility reasons, \fIn\fR\fBf\fR is accepted as a synonym
11686 for \fIn\fR\fBf2_1\fR while \fIn\fR\fBx\fR and \fIb\fR\fBfx\fR are
11687 accepted as synonyms for \fIn\fR\fBf1_1\fR.
11688 .Sp
11689 \&\s-1GCC\s0 defines two macros based on the value of this option.  The first
11690 is \fB_MIPS_ARCH\fR, which gives the name of target architecture, as
11691 a string.  The second has the form \fB_MIPS_ARCH_\fR\fIfoo\fR,
11692 where \fIfoo\fR is the capitalized value of \fB_MIPS_ARCH\fR.
11693 For example, \fB\-march=r2000\fR will set \fB_MIPS_ARCH\fR
11694 to \fB\*(L"r2000\*(R"\fR and define the macro \fB_MIPS_ARCH_R2000\fR.
11695 .Sp
11696 Note that the \fB_MIPS_ARCH\fR macro uses the processor names given
11697 above.  In other words, it will have the full prefix and will not
11698 abbreviate \fB000\fR as \fBk\fR.  In the case of \fBfrom-abi\fR,
11699 the macro names the resolved architecture (either \fB\*(L"mips1\*(R"\fR or
11700 \&\fB\*(L"mips3\*(R"\fR).  It names the default architecture when no
11701 \&\fB\-march\fR option is given.
11702 .IP "\fB\-mtune=\fR\fIarch\fR" 4
11703 .IX Item "-mtune=arch"
11704 Optimize for \fIarch\fR.  Among other things, this option controls
11705 the way instructions are scheduled, and the perceived cost of arithmetic
11706 operations.  The list of \fIarch\fR values is the same as for
11707 \&\fB\-march\fR.
11708 .Sp
11709 When this option is not used, \s-1GCC\s0 will optimize for the processor
11710 specified by \fB\-march\fR.  By using \fB\-march\fR and
11711 \&\fB\-mtune\fR together, it is possible to generate code that will
11712 run on a family of processors, but optimize the code for one
11713 particular member of that family.
11714 .Sp
11715 \&\fB\-mtune\fR defines the macros \fB_MIPS_TUNE\fR and
11716 \&\fB_MIPS_TUNE_\fR\fIfoo\fR, which work in the same way as the
11717 \&\fB\-march\fR ones described above.
11718 .IP "\fB\-mips1\fR" 4
11719 .IX Item "-mips1"
11720 Equivalent to \fB\-march=mips1\fR.
11721 .IP "\fB\-mips2\fR" 4
11722 .IX Item "-mips2"
11723 Equivalent to \fB\-march=mips2\fR.
11724 .IP "\fB\-mips3\fR" 4
11725 .IX Item "-mips3"
11726 Equivalent to \fB\-march=mips3\fR.
11727 .IP "\fB\-mips4\fR" 4
11728 .IX Item "-mips4"
11729 Equivalent to \fB\-march=mips4\fR.
11730 .IP "\fB\-mips32\fR" 4
11731 .IX Item "-mips32"
11732 Equivalent to \fB\-march=mips32\fR.
11733 .IP "\fB\-mips32r2\fR" 4
11734 .IX Item "-mips32r2"
11735 Equivalent to \fB\-march=mips32r2\fR.
11736 .IP "\fB\-mips64\fR" 4
11737 .IX Item "-mips64"
11738 Equivalent to \fB\-march=mips64\fR.
11739 .IP "\fB\-mips64r2\fR" 4
11740 .IX Item "-mips64r2"
11741 Equivalent to \fB\-march=mips64r2\fR.
11742 .IP "\fB\-mips16\fR" 4
11743 .IX Item "-mips16"
11744 .PD 0
11745 .IP "\fB\-mno\-mips16\fR" 4
11746 .IX Item "-mno-mips16"
11747 .PD
11748 Generate (do not generate) \s-1MIPS16\s0 code.  If \s-1GCC\s0 is targetting a
11749 \&\s-1MIPS32\s0 or \s-1MIPS64\s0 architecture, it will make use of the MIPS16e \s-1ASE\s0.
11750 .Sp
11751 \&\s-1MIPS16\s0 code generation can also be controlled on a per-function basis
11752 by means of \f(CW\*(C`mips16\*(C'\fR and \f(CW\*(C`nomips16\*(C'\fR attributes.
11753 .IP "\fB\-mflip\-mips16\fR" 4
11754 .IX Item "-mflip-mips16"
11755 Generate \s-1MIPS16\s0 code on alternating functions.  This option is provided
11756 for regression testing of mixed MIPS16/non\-MIPS16 code generation, and is
11757 not intended for ordinary use in compiling user code.
11758 .IP "\fB\-minterlink\-mips16\fR" 4
11759 .IX Item "-minterlink-mips16"
11760 .PD 0
11761 .IP "\fB\-mno\-interlink\-mips16\fR" 4
11762 .IX Item "-mno-interlink-mips16"
11763 .PD
11764 Require (do not require) that non\-MIPS16 code be link-compatible with
11765 \&\s-1MIPS16\s0 code.
11766 .Sp
11767 For example, non\-MIPS16 code cannot jump directly to \s-1MIPS16\s0 code;
11768 it must either use a call or an indirect jump.  \fB\-minterlink\-mips16\fR
11769 therefore disables direct jumps unless \s-1GCC\s0 knows that the target of the
11770 jump is not \s-1MIPS16\s0.
11771 .IP "\fB\-mabi=32\fR" 4
11772 .IX Item "-mabi=32"
11773 .PD 0
11774 .IP "\fB\-mabi=o64\fR" 4
11775 .IX Item "-mabi=o64"
11776 .IP "\fB\-mabi=n32\fR" 4
11777 .IX Item "-mabi=n32"
11778 .IP "\fB\-mabi=64\fR" 4
11779 .IX Item "-mabi=64"
11780 .IP "\fB\-mabi=eabi\fR" 4
11781 .IX Item "-mabi=eabi"
11782 .PD
11783 Generate code for the given \s-1ABI\s0.
11784 .Sp
11785 Note that the \s-1EABI\s0 has a 32\-bit and a 64\-bit variant.  \s-1GCC\s0 normally
11786 generates 64\-bit code when you select a 64\-bit architecture, but you
11787 can use \fB\-mgp32\fR to get 32\-bit code instead.
11788 .Sp
11789 For information about the O64 \s-1ABI\s0, see
11790 <\fBhttp://gcc.gnu.org/projects/mipso64\-abi.html\fR>.
11791 .Sp
11792 \&\s-1GCC\s0 supports a variant of the o32 \s-1ABI\s0 in which floating-point registers
11793 are 64 rather than 32 bits wide.  You can select this combination with
11794 \&\fB\-mabi=32\fR \fB\-mfp64\fR.  This \s-1ABI\s0 relies on the \fBmthc1\fR
11795 and \fBmfhc1\fR instructions and is therefore only supported for
11796 \&\s-1MIPS32R2\s0 processors.
11797 .Sp
11798 The register assignments for arguments and return values remain the
11799 same, but each scalar value is passed in a single 64\-bit register
11800 rather than a pair of 32\-bit registers.  For example, scalar
11801 floating-point values are returned in \fB\f(CB$f0\fB\fR only, not a
11802 \&\fB\f(CB$f0\fB\fR/\fB\f(CB$f1\fB\fR pair.  The set of call-saved registers also
11803 remains the same, but all 64 bits are saved.
11804 .IP "\fB\-mabicalls\fR" 4
11805 .IX Item "-mabicalls"
11806 .PD 0
11807 .IP "\fB\-mno\-abicalls\fR" 4
11808 .IX Item "-mno-abicalls"
11809 .PD
11810 Generate (do not generate) code that is suitable for SVR4\-style
11811 dynamic objects.  \fB\-mabicalls\fR is the default for SVR4\-based
11812 systems.
11813 .IP "\fB\-mshared\fR" 4
11814 .IX Item "-mshared"
11815 .PD 0
11816 .IP "\fB\-mno\-shared\fR" 4
11817 .IX Item "-mno-shared"
11818 .PD
11819 Generate (do not generate) code that is fully position-independent,
11820 and that can therefore be linked into shared libraries.  This option
11821 only affects \fB\-mabicalls\fR.
11822 .Sp
11823 All \fB\-mabicalls\fR code has traditionally been position-independent,
11824 regardless of options like \fB\-fPIC\fR and \fB\-fpic\fR.  However,
11825 as an extension, the \s-1GNU\s0 toolchain allows executables to use absolute
11826 accesses for locally-binding symbols.  It can also use shorter \s-1GP\s0
11827 initialization sequences and generate direct calls to locally-defined
11828 functions.  This mode is selected by \fB\-mno\-shared\fR.
11829 .Sp
11830 \&\fB\-mno\-shared\fR depends on binutils 2.16 or higher and generates
11831 objects that can only be linked by the \s-1GNU\s0 linker.  However, the option
11832 does not affect the \s-1ABI\s0 of the final executable; it only affects the \s-1ABI\s0
11833 of relocatable objects.  Using \fB\-mno\-shared\fR will generally make
11834 executables both smaller and quicker.
11835 .Sp
11836 \&\fB\-mshared\fR is the default.
11837 .IP "\fB\-mplt\fR" 4
11838 .IX Item "-mplt"
11839 .PD 0
11840 .IP "\fB\-mno\-plt\fR" 4
11841 .IX Item "-mno-plt"
11842 .PD
11843 Assume (do not assume) that the static and dynamic linkers
11844 support PLTs and copy relocations.  This option only affects
11845 \&\fB\-mno\-shared \-mabicalls\fR.  For the n64 \s-1ABI\s0, this option
11846 has no effect without \fB\-msym32\fR.
11847 .Sp
11848 You can make \fB\-mplt\fR the default by configuring
11849 \&\s-1GCC\s0 with \fB\-\-with\-mips\-plt\fR.  The default is
11850 \&\fB\-mno\-plt\fR otherwise.
11851 .IP "\fB\-mxgot\fR" 4
11852 .IX Item "-mxgot"
11853 .PD 0
11854 .IP "\fB\-mno\-xgot\fR" 4
11855 .IX Item "-mno-xgot"
11856 .PD
11857 Lift (do not lift) the usual restrictions on the size of the global
11858 offset table.
11859 .Sp
11860 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT\s0.
11861 While this is relatively efficient, it will only work if the \s-1GOT\s0
11862 is smaller than about 64k.  Anything larger will cause the linker
11863 to report an error such as:
11864 .Sp
11865 .Vb 1
11866 \&        relocation truncated to fit: R_MIPS_GOT16 foobar
11867 .Ve
11868 .Sp
11869 If this happens, you should recompile your code with \fB\-mxgot\fR.
11870 It should then work with very large GOTs, although it will also be
11871 less efficient, since it will take three instructions to fetch the
11872 value of a global symbol.
11873 .Sp
11874 Note that some linkers can create multiple GOTs.  If you have such a
11875 linker, you should only need to use \fB\-mxgot\fR when a single object
11876 file accesses more than 64k's worth of \s-1GOT\s0 entries.  Very few do.
11877 .Sp
11878 These options have no effect unless \s-1GCC\s0 is generating position
11879 independent code.
11880 .IP "\fB\-mgp32\fR" 4
11881 .IX Item "-mgp32"
11882 Assume that general-purpose registers are 32 bits wide.
11883 .IP "\fB\-mgp64\fR" 4
11884 .IX Item "-mgp64"
11885 Assume that general-purpose registers are 64 bits wide.
11886 .IP "\fB\-mfp32\fR" 4
11887 .IX Item "-mfp32"
11888 Assume that floating-point registers are 32 bits wide.
11889 .IP "\fB\-mfp64\fR" 4
11890 .IX Item "-mfp64"
11891 Assume that floating-point registers are 64 bits wide.
11892 .IP "\fB\-mhard\-float\fR" 4
11893 .IX Item "-mhard-float"
11894 Use floating-point coprocessor instructions.
11895 .IP "\fB\-msoft\-float\fR" 4
11896 .IX Item "-msoft-float"
11897 Do not use floating-point coprocessor instructions.  Implement
11898 floating-point calculations using library calls instead.
11899 .IP "\fB\-msingle\-float\fR" 4
11900 .IX Item "-msingle-float"
11901 Assume that the floating-point coprocessor only supports single-precision
11902 operations.
11903 .IP "\fB\-mdouble\-float\fR" 4
11904 .IX Item "-mdouble-float"
11905 Assume that the floating-point coprocessor supports double-precision
11906 operations.  This is the default.
11907 .IP "\fB\-mllsc\fR" 4
11908 .IX Item "-mllsc"
11909 .PD 0
11910 .IP "\fB\-mno\-llsc\fR" 4
11911 .IX Item "-mno-llsc"
11912 .PD
11913 Use (do not use) \fBll\fR, \fBsc\fR, and \fBsync\fR instructions to
11914 implement atomic memory built-in functions.  When neither option is
11915 specified, \s-1GCC\s0 will use the instructions if the target architecture
11916 supports them.
11917 .Sp
11918 \&\fB\-mllsc\fR is useful if the runtime environment can emulate the
11919 instructions and \fB\-mno\-llsc\fR can be useful when compiling for
11920 nonstandard ISAs.  You can make either option the default by
11921 configuring \s-1GCC\s0 with \fB\-\-with\-llsc\fR and \fB\-\-without\-llsc\fR
11922 respectively.  \fB\-\-with\-llsc\fR is the default for some
11923 configurations; see the installation documentation for details.
11924 .IP "\fB\-mdsp\fR" 4
11925 .IX Item "-mdsp"
11926 .PD 0
11927 .IP "\fB\-mno\-dsp\fR" 4
11928 .IX Item "-mno-dsp"
11929 .PD
11930 Use (do not use) revision 1 of the \s-1MIPS\s0 \s-1DSP\s0 \s-1ASE\s0.
11931   This option defines the
11932 preprocessor macro \fB_\|_mips_dsp\fR.  It also defines
11933 \&\fB_\|_mips_dsp_rev\fR to 1.
11934 .IP "\fB\-mdspr2\fR" 4
11935 .IX Item "-mdspr2"
11936 .PD 0
11937 .IP "\fB\-mno\-dspr2\fR" 4
11938 .IX Item "-mno-dspr2"
11939 .PD
11940 Use (do not use) revision 2 of the \s-1MIPS\s0 \s-1DSP\s0 \s-1ASE\s0.
11941   This option defines the
11942 preprocessor macros \fB_\|_mips_dsp\fR and \fB_\|_mips_dspr2\fR.
11943 It also defines \fB_\|_mips_dsp_rev\fR to 2.
11944 .IP "\fB\-msmartmips\fR" 4
11945 .IX Item "-msmartmips"
11946 .PD 0
11947 .IP "\fB\-mno\-smartmips\fR" 4
11948 .IX Item "-mno-smartmips"
11949 .PD
11950 Use (do not use) the \s-1MIPS\s0 SmartMIPS \s-1ASE\s0.
11951 .IP "\fB\-mpaired\-single\fR" 4
11952 .IX Item "-mpaired-single"
11953 .PD 0
11954 .IP "\fB\-mno\-paired\-single\fR" 4
11955 .IX Item "-mno-paired-single"
11956 .PD
11957 Use (do not use) paired-single floating-point instructions.
11958   This option requires
11959 hardware floating-point support to be enabled.
11960 .IP "\fB\-mdmx\fR" 4
11961 .IX Item "-mdmx"
11962 .PD 0
11963 .IP "\fB\-mno\-mdmx\fR" 4
11964 .IX Item "-mno-mdmx"
11965 .PD
11966 Use (do not use) \s-1MIPS\s0 Digital Media Extension instructions.
11967 This option can only be used when generating 64\-bit code and requires
11968 hardware floating-point support to be enabled.
11969 .IP "\fB\-mips3d\fR" 4
11970 .IX Item "-mips3d"
11971 .PD 0
11972 .IP "\fB\-mno\-mips3d\fR" 4
11973 .IX Item "-mno-mips3d"
11974 .PD
11975 Use (do not use) the \s-1MIPS\-3D\s0 \s-1ASE\s0.  
11976 The option \fB\-mips3d\fR implies \fB\-mpaired\-single\fR.
11977 .IP "\fB\-mmt\fR" 4
11978 .IX Item "-mmt"
11979 .PD 0
11980 .IP "\fB\-mno\-mt\fR" 4
11981 .IX Item "-mno-mt"
11982 .PD
11983 Use (do not use) \s-1MT\s0 Multithreading instructions.
11984 .IP "\fB\-mlong64\fR" 4
11985 .IX Item "-mlong64"
11986 Force \f(CW\*(C`long\*(C'\fR types to be 64 bits wide.  See \fB\-mlong32\fR for
11987 an explanation of the default and the way that the pointer size is
11988 determined.
11989 .IP "\fB\-mlong32\fR" 4
11990 .IX Item "-mlong32"
11991 Force \f(CW\*(C`long\*(C'\fR, \f(CW\*(C`int\*(C'\fR, and pointer types to be 32 bits wide.
11992 .Sp
11993 The default size of \f(CW\*(C`int\*(C'\fRs, \f(CW\*(C`long\*(C'\fRs and pointers depends on
11994 the \s-1ABI\s0.  All the supported ABIs use 32\-bit \f(CW\*(C`int\*(C'\fRs.  The n64 \s-1ABI\s0
11995 uses 64\-bit \f(CW\*(C`long\*(C'\fRs, as does the 64\-bit \s-1EABI\s0; the others use
11996 32\-bit \f(CW\*(C`long\*(C'\fRs.  Pointers are the same size as \f(CW\*(C`long\*(C'\fRs,
11997 or the same size as integer registers, whichever is smaller.
11998 .IP "\fB\-msym32\fR" 4
11999 .IX Item "-msym32"
12000 .PD 0
12001 .IP "\fB\-mno\-sym32\fR" 4
12002 .IX Item "-mno-sym32"
12003 .PD
12004 Assume (do not assume) that all symbols have 32\-bit values, regardless
12005 of the selected \s-1ABI\s0.  This option is useful in combination with
12006 \&\fB\-mabi=64\fR and \fB\-mno\-abicalls\fR because it allows \s-1GCC\s0
12007 to generate shorter and faster references to symbolic addresses.
12008 .IP "\fB\-G\fR \fInum\fR" 4
12009 .IX Item "-G num"
12010 Put definitions of externally-visible data in a small data section
12011 if that data is no bigger than \fInum\fR bytes.  \s-1GCC\s0 can then access
12012 the data more efficiently; see \fB\-mgpopt\fR for details.
12013 .Sp
12014 The default \fB\-G\fR option depends on the configuration.
12015 .IP "\fB\-mlocal\-sdata\fR" 4
12016 .IX Item "-mlocal-sdata"
12017 .PD 0
12018 .IP "\fB\-mno\-local\-sdata\fR" 4
12019 .IX Item "-mno-local-sdata"
12020 .PD
12021 Extend (do not extend) the \fB\-G\fR behavior to local data too,
12022 such as to static variables in C.  \fB\-mlocal\-sdata\fR is the
12023 default for all configurations.
12024 .Sp
12025 If the linker complains that an application is using too much small data,
12026 you might want to try rebuilding the less performance-critical parts with
12027 \&\fB\-mno\-local\-sdata\fR.  You might also want to build large
12028 libraries with \fB\-mno\-local\-sdata\fR, so that the libraries leave
12029 more room for the main program.
12030 .IP "\fB\-mextern\-sdata\fR" 4
12031 .IX Item "-mextern-sdata"
12032 .PD 0
12033 .IP "\fB\-mno\-extern\-sdata\fR" 4
12034 .IX Item "-mno-extern-sdata"
12035 .PD
12036 Assume (do not assume) that externally-defined data will be in
12037 a small data section if that data is within the \fB\-G\fR limit.
12038 \&\fB\-mextern\-sdata\fR is the default for all configurations.
12039 .Sp
12040 If you compile a module \fIMod\fR with \fB\-mextern\-sdata\fR \fB\-G\fR
12041 \&\fInum\fR \fB\-mgpopt\fR, and \fIMod\fR references a variable \fIVar\fR
12042 that is no bigger than \fInum\fR bytes, you must make sure that \fIVar\fR
12043 is placed in a small data section.  If \fIVar\fR is defined by another
12044 module, you must either compile that module with a high-enough
12045 \&\fB\-G\fR setting or attach a \f(CW\*(C`section\*(C'\fR attribute to \fIVar\fR's
12046 definition.  If \fIVar\fR is common, you must link the application
12047 with a high-enough \fB\-G\fR setting.
12048 .Sp
12049 The easiest way of satisfying these restrictions is to compile
12050 and link every module with the same \fB\-G\fR option.  However,
12051 you may wish to build a library that supports several different
12052 small data limits.  You can do this by compiling the library with
12053 the highest supported \fB\-G\fR setting and additionally using
12054 \&\fB\-mno\-extern\-sdata\fR to stop the library from making assumptions
12055 about externally-defined data.
12056 .IP "\fB\-mgpopt\fR" 4
12057 .IX Item "-mgpopt"
12058 .PD 0
12059 .IP "\fB\-mno\-gpopt\fR" 4
12060 .IX Item "-mno-gpopt"
12061 .PD
12062 Use (do not use) GP-relative accesses for symbols that are known to be
12063 in a small data section; see \fB\-G\fR, \fB\-mlocal\-sdata\fR and
12064 \&\fB\-mextern\-sdata\fR.  \fB\-mgpopt\fR is the default for all
12065 configurations.
12066 .Sp
12067 \&\fB\-mno\-gpopt\fR is useful for cases where the \f(CW$gp\fR register
12068 might not hold the value of \f(CW\*(C`_gp\*(C'\fR.  For example, if the code is
12069 part of a library that might be used in a boot monitor, programs that
12070 call boot monitor routines will pass an unknown value in \f(CW$gp\fR.
12071 (In such situations, the boot monitor itself would usually be compiled
12072 with \fB\-G0\fR.)
12073 .Sp
12074 \&\fB\-mno\-gpopt\fR implies \fB\-mno\-local\-sdata\fR and
12075 \&\fB\-mno\-extern\-sdata\fR.
12076 .IP "\fB\-membedded\-data\fR" 4
12077 .IX Item "-membedded-data"
12078 .PD 0
12079 .IP "\fB\-mno\-embedded\-data\fR" 4
12080 .IX Item "-mno-embedded-data"
12081 .PD
12082 Allocate variables to the read-only data section first if possible, then
12083 next in the small data section if possible, otherwise in data.  This gives
12084 slightly slower code than the default, but reduces the amount of \s-1RAM\s0 required
12085 when executing, and thus may be preferred for some embedded systems.
12086 .IP "\fB\-muninit\-const\-in\-rodata\fR" 4
12087 .IX Item "-muninit-const-in-rodata"
12088 .PD 0
12089 .IP "\fB\-mno\-uninit\-const\-in\-rodata\fR" 4
12090 .IX Item "-mno-uninit-const-in-rodata"
12091 .PD
12092 Put uninitialized \f(CW\*(C`const\*(C'\fR variables in the read-only data section.
12093 This option is only meaningful in conjunction with \fB\-membedded\-data\fR.
12094 .IP "\fB\-mcode\-readable=\fR\fIsetting\fR" 4
12095 .IX Item "-mcode-readable=setting"
12096 Specify whether \s-1GCC\s0 may generate code that reads from executable sections.
12097 There are three possible settings:
12098 .RS 4
12099 .IP "\fB\-mcode\-readable=yes\fR" 4
12100 .IX Item "-mcode-readable=yes"
12101 Instructions may freely access executable sections.  This is the
12102 default setting.
12103 .IP "\fB\-mcode\-readable=pcrel\fR" 4
12104 .IX Item "-mcode-readable=pcrel"
12105 \&\s-1MIPS16\s0 PC-relative load instructions can access executable sections,
12106 but other instructions must not do so.  This option is useful on 4KSc
12107 and 4KSd processors when the code TLBs have the Read Inhibit bit set.
12108 It is also useful on processors that can be configured to have a dual
12109 instruction/data \s-1SRAM\s0 interface and that, like the M4K, automatically
12110 redirect PC-relative loads to the instruction \s-1RAM\s0.
12111 .IP "\fB\-mcode\-readable=no\fR" 4
12112 .IX Item "-mcode-readable=no"
12113 Instructions must not access executable sections.  This option can be
12114 useful on targets that are configured to have a dual instruction/data
12115 \&\s-1SRAM\s0 interface but that (unlike the M4K) do not automatically redirect
12116 PC-relative loads to the instruction \s-1RAM\s0.
12117 .RE
12118 .RS 4
12119 .RE
12120 .IP "\fB\-msplit\-addresses\fR" 4
12121 .IX Item "-msplit-addresses"
12122 .PD 0
12123 .IP "\fB\-mno\-split\-addresses\fR" 4
12124 .IX Item "-mno-split-addresses"
12125 .PD
12126 Enable (disable) use of the \f(CW\*(C`%hi()\*(C'\fR and \f(CW\*(C`%lo()\*(C'\fR assembler
12127 relocation operators.  This option has been superseded by
12128 \&\fB\-mexplicit\-relocs\fR but is retained for backwards compatibility.
12129 .IP "\fB\-mexplicit\-relocs\fR" 4
12130 .IX Item "-mexplicit-relocs"
12131 .PD 0
12132 .IP "\fB\-mno\-explicit\-relocs\fR" 4
12133 .IX Item "-mno-explicit-relocs"
12134 .PD
12135 Use (do not use) assembler relocation operators when dealing with symbolic
12136 addresses.  The alternative, selected by \fB\-mno\-explicit\-relocs\fR,
12137 is to use assembler macros instead.
12138 .Sp
12139 \&\fB\-mexplicit\-relocs\fR is the default if \s-1GCC\s0 was configured
12140 to use an assembler that supports relocation operators.
12141 .IP "\fB\-mcheck\-zero\-division\fR" 4
12142 .IX Item "-mcheck-zero-division"
12143 .PD 0
12144 .IP "\fB\-mno\-check\-zero\-division\fR" 4
12145 .IX Item "-mno-check-zero-division"
12146 .PD
12147 Trap (do not trap) on integer division by zero.
12148 .Sp
12149 The default is \fB\-mcheck\-zero\-division\fR.
12150 .IP "\fB\-mdivide\-traps\fR" 4
12151 .IX Item "-mdivide-traps"
12152 .PD 0
12153 .IP "\fB\-mdivide\-breaks\fR" 4
12154 .IX Item "-mdivide-breaks"
12155 .PD
12156 \&\s-1MIPS\s0 systems check for division by zero by generating either a
12157 conditional trap or a break instruction.  Using traps results in
12158 smaller code, but is only supported on \s-1MIPS\s0 \s-1II\s0 and later.  Also, some
12159 versions of the Linux kernel have a bug that prevents trap from
12160 generating the proper signal (\f(CW\*(C`SIGFPE\*(C'\fR).  Use \fB\-mdivide\-traps\fR to
12161 allow conditional traps on architectures that support them and
12162 \&\fB\-mdivide\-breaks\fR to force the use of breaks.
12163 .Sp
12164 The default is usually \fB\-mdivide\-traps\fR, but this can be
12165 overridden at configure time using \fB\-\-with\-divide=breaks\fR.
12166 Divide-by-zero checks can be completely disabled using
12167 \&\fB\-mno\-check\-zero\-division\fR.
12168 .IP "\fB\-mmemcpy\fR" 4
12169 .IX Item "-mmemcpy"
12170 .PD 0
12171 .IP "\fB\-mno\-memcpy\fR" 4
12172 .IX Item "-mno-memcpy"
12173 .PD
12174 Force (do not force) the use of \f(CW\*(C`memcpy()\*(C'\fR for non-trivial block
12175 moves.  The default is \fB\-mno\-memcpy\fR, which allows \s-1GCC\s0 to inline
12176 most constant-sized copies.
12177 .IP "\fB\-mlong\-calls\fR" 4
12178 .IX Item "-mlong-calls"
12179 .PD 0
12180 .IP "\fB\-mno\-long\-calls\fR" 4
12181 .IX Item "-mno-long-calls"
12182 .PD
12183 Disable (do not disable) use of the \f(CW\*(C`jal\*(C'\fR instruction.  Calling
12184 functions using \f(CW\*(C`jal\*(C'\fR is more efficient but requires the caller
12185 and callee to be in the same 256 megabyte segment.
12186 .Sp
12187 This option has no effect on abicalls code.  The default is
12188 \&\fB\-mno\-long\-calls\fR.
12189 .IP "\fB\-mmad\fR" 4
12190 .IX Item "-mmad"
12191 .PD 0
12192 .IP "\fB\-mno\-mad\fR" 4
12193 .IX Item "-mno-mad"
12194 .PD
12195 Enable (disable) use of the \f(CW\*(C`mad\*(C'\fR, \f(CW\*(C`madu\*(C'\fR and \f(CW\*(C`mul\*(C'\fR
12196 instructions, as provided by the R4650 \s-1ISA\s0.
12197 .IP "\fB\-mfused\-madd\fR" 4
12198 .IX Item "-mfused-madd"
12199 .PD 0
12200 .IP "\fB\-mno\-fused\-madd\fR" 4
12201 .IX Item "-mno-fused-madd"
12202 .PD
12203 Enable (disable) use of the floating point multiply-accumulate
12204 instructions, when they are available.  The default is
12205 \&\fB\-mfused\-madd\fR.
12206 .Sp
12207 When multiply-accumulate instructions are used, the intermediate
12208 product is calculated to infinite precision and is not subject to
12209 the \s-1FCSR\s0 Flush to Zero bit.  This may be undesirable in some
12210 circumstances.
12211 .IP "\fB\-nocpp\fR" 4
12212 .IX Item "-nocpp"
12213 Tell the \s-1MIPS\s0 assembler to not run its preprocessor over user
12214 assembler files (with a \fB.s\fR suffix) when assembling them.
12215 .IP "\fB\-mfix\-r4000\fR" 4
12216 .IX Item "-mfix-r4000"
12217 .PD 0
12218 .IP "\fB\-mno\-fix\-r4000\fR" 4
12219 .IX Item "-mno-fix-r4000"
12220 .PD
12221 Work around certain R4000 \s-1CPU\s0 errata:
12222 .RS 4
12223 .IP "\-" 4
12224 A double-word or a variable shift may give an incorrect result if executed
12225 immediately after starting an integer division.
12226 .IP "\-" 4
12227 A double-word or a variable shift may give an incorrect result if executed
12228 while an integer multiplication is in progress.
12229 .IP "\-" 4
12230 An integer division may give an incorrect result if started in a delay slot
12231 of a taken branch or a jump.
12232 .RE
12233 .RS 4
12234 .RE
12235 .IP "\fB\-mfix\-r4400\fR" 4
12236 .IX Item "-mfix-r4400"
12237 .PD 0
12238 .IP "\fB\-mno\-fix\-r4400\fR" 4
12239 .IX Item "-mno-fix-r4400"
12240 .PD
12241 Work around certain R4400 \s-1CPU\s0 errata:
12242 .RS 4
12243 .IP "\-" 4
12244 A double-word or a variable shift may give an incorrect result if executed
12245 immediately after starting an integer division.
12246 .RE
12247 .RS 4
12248 .RE
12249 .IP "\fB\-mfix\-r10000\fR" 4
12250 .IX Item "-mfix-r10000"
12251 .PD 0
12252 .IP "\fB\-mno\-fix\-r10000\fR" 4
12253 .IX Item "-mno-fix-r10000"
12254 .PD
12255 Work around certain R10000 errata:
12256 .RS 4
12257 .IP "\-" 4
12258 \&\f(CW\*(C`ll\*(C'\fR/\f(CW\*(C`sc\*(C'\fR sequences may not behave atomically on revisions
12259 prior to 3.0.  They may deadlock on revisions 2.6 and earlier.
12260 .RE
12261 .RS 4
12262 .Sp
12263 This option can only be used if the target architecture supports
12264 branch-likely instructions.  \fB\-mfix\-r10000\fR is the default when
12265 \&\fB\-march=r10000\fR is used; \fB\-mno\-fix\-r10000\fR is the default
12266 otherwise.
12267 .RE
12268 .IP "\fB\-mfix\-vr4120\fR" 4
12269 .IX Item "-mfix-vr4120"
12270 .PD 0
12271 .IP "\fB\-mno\-fix\-vr4120\fR" 4
12272 .IX Item "-mno-fix-vr4120"
12273 .PD
12274 Work around certain \s-1VR4120\s0 errata:
12275 .RS 4
12276 .IP "\-" 4
12277 \&\f(CW\*(C`dmultu\*(C'\fR does not always produce the correct result.
12278 .IP "\-" 4
12279 \&\f(CW\*(C`div\*(C'\fR and \f(CW\*(C`ddiv\*(C'\fR do not always produce the correct result if one
12280 of the operands is negative.
12281 .RE
12282 .RS 4
12283 .Sp
12284 The workarounds for the division errata rely on special functions in
12285 \&\fIlibgcc.a\fR.  At present, these functions are only provided by
12286 the \f(CW\*(C`mips64vr*\-elf\*(C'\fR configurations.
12287 .Sp
12288 Other \s-1VR4120\s0 errata require a nop to be inserted between certain pairs of
12289 instructions.  These errata are handled by the assembler, not by \s-1GCC\s0 itself.
12290 .RE
12291 .IP "\fB\-mfix\-vr4130\fR" 4
12292 .IX Item "-mfix-vr4130"
12293 Work around the \s-1VR4130\s0 \f(CW\*(C`mflo\*(C'\fR/\f(CW\*(C`mfhi\*(C'\fR errata.  The
12294 workarounds are implemented by the assembler rather than by \s-1GCC\s0,
12295 although \s-1GCC\s0 will avoid using \f(CW\*(C`mflo\*(C'\fR and \f(CW\*(C`mfhi\*(C'\fR if the
12296 \&\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
12297 instructions are available instead.
12298 .IP "\fB\-mfix\-sb1\fR" 4
12299 .IX Item "-mfix-sb1"
12300 .PD 0
12301 .IP "\fB\-mno\-fix\-sb1\fR" 4
12302 .IX Item "-mno-fix-sb1"
12303 .PD
12304 Work around certain \s-1SB\-1\s0 \s-1CPU\s0 core errata.
12305 (This flag currently works around the \s-1SB\-1\s0 revision 2
12306 \&\*(L"F1\*(R" and \*(L"F2\*(R" floating point errata.)
12307 .IP "\fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR" 4
12308 .IX Item "-mr10k-cache-barrier=setting"
12309 Specify whether \s-1GCC\s0 should insert cache barriers to avoid the
12310 side-effects of speculation on R10K processors.
12311 .Sp
12312 In common with many processors, the R10K tries to predict the outcome
12313 of a conditional branch and speculatively executes instructions from
12314 the \*(L"taken\*(R" branch.  It later aborts these instructions if the
12315 predicted outcome was wrong.  However, on the R10K, even aborted
12316 instructions can have side effects.
12317 .Sp
12318 This problem only affects kernel stores and, depending on the system,
12319 kernel loads.  As an example, a speculatively-executed store may load
12320 the target memory into cache and mark the cache line as dirty, even if
12321 the store itself is later aborted.  If a \s-1DMA\s0 operation writes to the
12322 same area of memory before the \*(L"dirty\*(R" line is flushed, the cached
12323 data will overwrite the DMA-ed data.  See the R10K processor manual
12324 for a full description, including other potential problems.
12325 .Sp
12326 One workaround is to insert cache barrier instructions before every memory
12327 access that might be speculatively executed and that might have side
12328 effects even if aborted.  \fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR
12329 controls \s-1GCC\s0's implementation of this workaround.  It assumes that
12330 aborted accesses to any byte in the following regions will not have
12331 side effects:
12332 .RS 4
12333 .IP "1." 4
12334 the memory occupied by the current function's stack frame;
12335 .IP "2." 4
12336 the memory occupied by an incoming stack argument;
12337 .IP "3." 4
12338 the memory occupied by an object with a link-time-constant address.
12339 .RE
12340 .RS 4
12341 .Sp
12342 It is the kernel's responsibility to ensure that speculative
12343 accesses to these regions are indeed safe.
12344 .Sp
12345 If the input program contains a function declaration such as:
12346 .Sp
12347 .Vb 1
12348 \&        void foo (void);
12349 .Ve
12350 .Sp
12351 then the implementation of \f(CW\*(C`foo\*(C'\fR must allow \f(CW\*(C`j foo\*(C'\fR and
12352 \&\f(CW\*(C`jal foo\*(C'\fR to be executed speculatively.  \s-1GCC\s0 honors this
12353 restriction for functions it compiles itself.  It expects non-GCC
12354 functions (such as hand-written assembly code) to do the same.
12355 .Sp
12356 The option has three forms:
12357 .IP "\fB\-mr10k\-cache\-barrier=load\-store\fR" 4
12358 .IX Item "-mr10k-cache-barrier=load-store"
12359 Insert a cache barrier before a load or store that might be
12360 speculatively executed and that might have side effects even
12361 if aborted.
12362 .IP "\fB\-mr10k\-cache\-barrier=store\fR" 4
12363 .IX Item "-mr10k-cache-barrier=store"
12364 Insert a cache barrier before a store that might be speculatively
12365 executed and that might have side effects even if aborted.
12366 .IP "\fB\-mr10k\-cache\-barrier=none\fR" 4
12367 .IX Item "-mr10k-cache-barrier=none"
12368 Disable the insertion of cache barriers.  This is the default setting.
12369 .RE
12370 .RS 4
12371 .RE
12372 .IP "\fB\-mflush\-func=\fR\fIfunc\fR" 4
12373 .IX Item "-mflush-func=func"
12374 .PD 0
12375 .IP "\fB\-mno\-flush\-func\fR" 4
12376 .IX Item "-mno-flush-func"
12377 .PD
12378 Specifies the function to call to flush the I and D caches, or to not
12379 call any such function.  If called, the function must take the same
12380 arguments as the common \f(CW\*(C`_flush_func()\*(C'\fR, that is, the address of the
12381 memory range for which the cache is being flushed, the size of the
12382 memory range, and the number 3 (to flush both caches).  The default
12383 depends on the target \s-1GCC\s0 was configured for, but commonly is either
12384 \&\fB_flush_func\fR or \fB_\|_cpu_flush\fR.
12385 .IP "\fBmbranch\-cost=\fR\fInum\fR" 4
12386 .IX Item "mbranch-cost=num"
12387 Set the cost of branches to roughly \fInum\fR \*(L"simple\*(R" instructions.
12388 This cost is only a heuristic and is not guaranteed to produce
12389 consistent results across releases.  A zero cost redundantly selects
12390 the default, which is based on the \fB\-mtune\fR setting.
12391 .IP "\fB\-mbranch\-likely\fR" 4
12392 .IX Item "-mbranch-likely"
12393 .PD 0
12394 .IP "\fB\-mno\-branch\-likely\fR" 4
12395 .IX Item "-mno-branch-likely"
12396 .PD
12397 Enable or disable use of Branch Likely instructions, regardless of the
12398 default for the selected architecture.  By default, Branch Likely
12399 instructions may be generated if they are supported by the selected
12400 architecture.  An exception is for the \s-1MIPS32\s0 and \s-1MIPS64\s0 architectures
12401 and processors which implement those architectures; for those, Branch
12402 Likely instructions will not be generated by default because the \s-1MIPS32\s0
12403 and \s-1MIPS64\s0 architectures specifically deprecate their use.
12404 .IP "\fB\-mfp\-exceptions\fR" 4
12405 .IX Item "-mfp-exceptions"
12406 .PD 0
12407 .IP "\fB\-mno\-fp\-exceptions\fR" 4
12408 .IX Item "-mno-fp-exceptions"
12409 .PD
12410 Specifies whether \s-1FP\s0 exceptions are enabled.  This affects how we schedule
12411 \&\s-1FP\s0 instructions for some processors.  The default is that \s-1FP\s0 exceptions are
12412 enabled.
12413 .Sp
12414 For instance, on the \s-1SB\-1\s0, if \s-1FP\s0 exceptions are disabled, and we are emitting
12415 64\-bit code, then we can use both \s-1FP\s0 pipes.  Otherwise, we can only use one
12416 \&\s-1FP\s0 pipe.
12417 .IP "\fB\-mvr4130\-align\fR" 4
12418 .IX Item "-mvr4130-align"
12419 .PD 0
12420 .IP "\fB\-mno\-vr4130\-align\fR" 4
12421 .IX Item "-mno-vr4130-align"
12422 .PD
12423 The \s-1VR4130\s0 pipeline is two-way superscalar, but can only issue two
12424 instructions together if the first one is 8\-byte aligned.  When this
12425 option is enabled, \s-1GCC\s0 will align pairs of instructions that it
12426 thinks should execute in parallel.
12427 .Sp
12428 This option only has an effect when optimizing for the \s-1VR4130\s0.
12429 It normally makes code faster, but at the expense of making it bigger.
12430 It is enabled by default at optimization level \fB\-O3\fR.
12431 .PP
12432 \fI\s-1MMIX\s0 Options\fR
12433 .IX Subsection "MMIX Options"
12434 .PP
12435 These options are defined for the \s-1MMIX:\s0
12436 .IP "\fB\-mlibfuncs\fR" 4
12437 .IX Item "-mlibfuncs"
12438 .PD 0
12439 .IP "\fB\-mno\-libfuncs\fR" 4
12440 .IX Item "-mno-libfuncs"
12441 .PD
12442 Specify that intrinsic library functions are being compiled, passing all
12443 values in registers, no matter the size.
12444 .IP "\fB\-mepsilon\fR" 4
12445 .IX Item "-mepsilon"
12446 .PD 0
12447 .IP "\fB\-mno\-epsilon\fR" 4
12448 .IX Item "-mno-epsilon"
12449 .PD
12450 Generate floating-point comparison instructions that compare with respect
12451 to the \f(CW\*(C`rE\*(C'\fR epsilon register.
12452 .IP "\fB\-mabi=mmixware\fR" 4
12453 .IX Item "-mabi=mmixware"
12454 .PD 0
12455 .IP "\fB\-mabi=gnu\fR" 4
12456 .IX Item "-mabi=gnu"
12457 .PD
12458 Generate code that passes function parameters and return values that (in
12459 the called function) are seen as registers \f(CW$0\fR and up, as opposed to
12460 the \s-1GNU\s0 \s-1ABI\s0 which uses global registers \f(CW$231\fR and up.
12461 .IP "\fB\-mzero\-extend\fR" 4
12462 .IX Item "-mzero-extend"
12463 .PD 0
12464 .IP "\fB\-mno\-zero\-extend\fR" 4
12465 .IX Item "-mno-zero-extend"
12466 .PD
12467 When reading data from memory in sizes shorter than 64 bits, use (do not
12468 use) zero-extending load instructions by default, rather than
12469 sign-extending ones.
12470 .IP "\fB\-mknuthdiv\fR" 4
12471 .IX Item "-mknuthdiv"
12472 .PD 0
12473 .IP "\fB\-mno\-knuthdiv\fR" 4
12474 .IX Item "-mno-knuthdiv"
12475 .PD
12476 Make the result of a division yielding a remainder have the same sign as
12477 the divisor.  With the default, \fB\-mno\-knuthdiv\fR, the sign of the
12478 remainder follows the sign of the dividend.  Both methods are
12479 arithmetically valid, the latter being almost exclusively used.
12480 .IP "\fB\-mtoplevel\-symbols\fR" 4
12481 .IX Item "-mtoplevel-symbols"
12482 .PD 0
12483 .IP "\fB\-mno\-toplevel\-symbols\fR" 4
12484 .IX Item "-mno-toplevel-symbols"
12485 .PD
12486 Prepend (do not prepend) a \fB:\fR to all global symbols, so the assembly
12487 code can be used with the \f(CW\*(C`PREFIX\*(C'\fR assembly directive.
12488 .IP "\fB\-melf\fR" 4
12489 .IX Item "-melf"
12490 Generate an executable in the \s-1ELF\s0 format, rather than the default
12491 \&\fBmmo\fR format used by the \fBmmix\fR simulator.
12492 .IP "\fB\-mbranch\-predict\fR" 4
12493 .IX Item "-mbranch-predict"
12494 .PD 0
12495 .IP "\fB\-mno\-branch\-predict\fR" 4
12496 .IX Item "-mno-branch-predict"
12497 .PD
12498 Use (do not use) the probable-branch instructions, when static branch
12499 prediction indicates a probable branch.
12500 .IP "\fB\-mbase\-addresses\fR" 4
12501 .IX Item "-mbase-addresses"
12502 .PD 0
12503 .IP "\fB\-mno\-base\-addresses\fR" 4
12504 .IX Item "-mno-base-addresses"
12505 .PD
12506 Generate (do not generate) code that uses \fIbase addresses\fR.  Using a
12507 base address automatically generates a request (handled by the assembler
12508 and the linker) for a constant to be set up in a global register.  The
12509 register is used for one or more base address requests within the range 0
12510 to 255 from the value held in the register.  The generally leads to short
12511 and fast code, but the number of different data items that can be
12512 addressed is limited.  This means that a program that uses lots of static
12513 data may require \fB\-mno\-base\-addresses\fR.
12514 .IP "\fB\-msingle\-exit\fR" 4
12515 .IX Item "-msingle-exit"
12516 .PD 0
12517 .IP "\fB\-mno\-single\-exit\fR" 4
12518 .IX Item "-mno-single-exit"
12519 .PD
12520 Force (do not force) generated code to have a single exit point in each
12521 function.
12522 .PP
12523 \fI\s-1MN10300\s0 Options\fR
12524 .IX Subsection "MN10300 Options"
12525 .PP
12526 These \fB\-m\fR options are defined for Matsushita \s-1MN10300\s0 architectures:
12527 .IP "\fB\-mmult\-bug\fR" 4
12528 .IX Item "-mmult-bug"
12529 Generate code to avoid bugs in the multiply instructions for the \s-1MN10300\s0
12530 processors.  This is the default.
12531 .IP "\fB\-mno\-mult\-bug\fR" 4
12532 .IX Item "-mno-mult-bug"
12533 Do not generate code to avoid bugs in the multiply instructions for the
12534 \&\s-1MN10300\s0 processors.
12535 .IP "\fB\-mam33\fR" 4
12536 .IX Item "-mam33"
12537 Generate code which uses features specific to the \s-1AM33\s0 processor.
12538 .IP "\fB\-mno\-am33\fR" 4
12539 .IX Item "-mno-am33"
12540 Do not generate code which uses features specific to the \s-1AM33\s0 processor.  This
12541 is the default.
12542 .IP "\fB\-mreturn\-pointer\-on\-d0\fR" 4
12543 .IX Item "-mreturn-pointer-on-d0"
12544 When generating a function which returns a pointer, return the pointer
12545 in both \f(CW\*(C`a0\*(C'\fR and \f(CW\*(C`d0\*(C'\fR.  Otherwise, the pointer is returned
12546 only in a0, and attempts to call such functions without a prototype
12547 would result in errors.  Note that this option is on by default; use
12548 \&\fB\-mno\-return\-pointer\-on\-d0\fR to disable it.
12549 .IP "\fB\-mno\-crt0\fR" 4
12550 .IX Item "-mno-crt0"
12551 Do not link in the C run-time initialization object file.
12552 .IP "\fB\-mrelax\fR" 4
12553 .IX Item "-mrelax"
12554 Indicate to the linker that it should perform a relaxation optimization pass
12555 to shorten branches, calls and absolute memory addresses.  This option only
12556 has an effect when used on the command line for the final link step.
12557 .Sp
12558 This option makes symbolic debugging impossible.
12559 .PP
12560 \fI\s-1PDP\-11\s0 Options\fR
12561 .IX Subsection "PDP-11 Options"
12562 .PP
12563 These options are defined for the \s-1PDP\-11:\s0
12564 .IP "\fB\-mfpu\fR" 4
12565 .IX Item "-mfpu"
12566 Use hardware \s-1FPP\s0 floating point.  This is the default.  (\s-1FIS\s0 floating
12567 point on the \s-1PDP\-11/40\s0 is not supported.)
12568 .IP "\fB\-msoft\-float\fR" 4
12569 .IX Item "-msoft-float"
12570 Do not use hardware floating point.
12571 .IP "\fB\-mac0\fR" 4
12572 .IX Item "-mac0"
12573 Return floating-point results in ac0 (fr0 in Unix assembler syntax).
12574 .IP "\fB\-mno\-ac0\fR" 4
12575 .IX Item "-mno-ac0"
12576 Return floating-point results in memory.  This is the default.
12577 .IP "\fB\-m40\fR" 4
12578 .IX Item "-m40"
12579 Generate code for a \s-1PDP\-11/40\s0.
12580 .IP "\fB\-m45\fR" 4
12581 .IX Item "-m45"
12582 Generate code for a \s-1PDP\-11/45\s0.  This is the default.
12583 .IP "\fB\-m10\fR" 4
12584 .IX Item "-m10"
12585 Generate code for a \s-1PDP\-11/10\s0.
12586 .IP "\fB\-mbcopy\-builtin\fR" 4
12587 .IX Item "-mbcopy-builtin"
12588 Use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.  This is the
12589 default.
12590 .IP "\fB\-mbcopy\fR" 4
12591 .IX Item "-mbcopy"
12592 Do not use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.
12593 .IP "\fB\-mint16\fR" 4
12594 .IX Item "-mint16"
12595 .PD 0
12596 .IP "\fB\-mno\-int32\fR" 4
12597 .IX Item "-mno-int32"
12598 .PD
12599 Use 16\-bit \f(CW\*(C`int\*(C'\fR.  This is the default.
12600 .IP "\fB\-mint32\fR" 4
12601 .IX Item "-mint32"
12602 .PD 0
12603 .IP "\fB\-mno\-int16\fR" 4
12604 .IX Item "-mno-int16"
12605 .PD
12606 Use 32\-bit \f(CW\*(C`int\*(C'\fR.
12607 .IP "\fB\-mfloat64\fR" 4
12608 .IX Item "-mfloat64"
12609 .PD 0
12610 .IP "\fB\-mno\-float32\fR" 4
12611 .IX Item "-mno-float32"
12612 .PD
12613 Use 64\-bit \f(CW\*(C`float\*(C'\fR.  This is the default.
12614 .IP "\fB\-mfloat32\fR" 4
12615 .IX Item "-mfloat32"
12616 .PD 0
12617 .IP "\fB\-mno\-float64\fR" 4
12618 .IX Item "-mno-float64"
12619 .PD
12620 Use 32\-bit \f(CW\*(C`float\*(C'\fR.
12621 .IP "\fB\-mabshi\fR" 4
12622 .IX Item "-mabshi"
12623 Use \f(CW\*(C`abshi2\*(C'\fR pattern.  This is the default.
12624 .IP "\fB\-mno\-abshi\fR" 4
12625 .IX Item "-mno-abshi"
12626 Do not use \f(CW\*(C`abshi2\*(C'\fR pattern.
12627 .IP "\fB\-mbranch\-expensive\fR" 4
12628 .IX Item "-mbranch-expensive"
12629 Pretend that branches are expensive.  This is for experimenting with
12630 code generation only.
12631 .IP "\fB\-mbranch\-cheap\fR" 4
12632 .IX Item "-mbranch-cheap"
12633 Do not pretend that branches are expensive.  This is the default.
12634 .IP "\fB\-msplit\fR" 4
12635 .IX Item "-msplit"
12636 Generate code for a system with split I&D.
12637 .IP "\fB\-mno\-split\fR" 4
12638 .IX Item "-mno-split"
12639 Generate code for a system without split I&D.  This is the default.
12640 .IP "\fB\-munix\-asm\fR" 4
12641 .IX Item "-munix-asm"
12642 Use Unix assembler syntax.  This is the default when configured for
12643 \&\fBpdp11\-*\-bsd\fR.
12644 .IP "\fB\-mdec\-asm\fR" 4
12645 .IX Item "-mdec-asm"
12646 Use \s-1DEC\s0 assembler syntax.  This is the default when configured for any
12647 \&\s-1PDP\-11\s0 target other than \fBpdp11\-*\-bsd\fR.
12648 .PP
12649 \fIpicoChip Options\fR
12650 .IX Subsection "picoChip Options"
12651 .PP
12652 These \fB\-m\fR options are defined for picoChip implementations:
12653 .IP "\fB\-mae=\fR\fIae_type\fR" 4
12654 .IX Item "-mae=ae_type"
12655 Set the instruction set, register set, and instruction scheduling
12656 parameters for array element type \fIae_type\fR.  Supported values
12657 for \fIae_type\fR are \fB\s-1ANY\s0\fR, \fB\s-1MUL\s0\fR, and \fB\s-1MAC\s0\fR.
12658 .Sp
12659 \&\fB\-mae=ANY\fR selects a completely generic \s-1AE\s0 type.  Code
12660 generated with this option will run on any of the other \s-1AE\s0 types.  The
12661 code will not be as efficient as it would be if compiled for a specific
12662 \&\s-1AE\s0 type, and some types of operation (e.g., multiplication) will not
12663 work properly on all types of \s-1AE\s0.
12664 .Sp
12665 \&\fB\-mae=MUL\fR selects a \s-1MUL\s0 \s-1AE\s0 type.  This is the most useful \s-1AE\s0 type
12666 for compiled code, and is the default.
12667 .Sp
12668 \&\fB\-mae=MAC\fR selects a DSP-style \s-1MAC\s0 \s-1AE\s0.  Code compiled with this
12669 option may suffer from poor performance of byte (char) manipulation,
12670 since the \s-1DSP\s0 \s-1AE\s0 does not provide hardware support for byte load/stores.
12671 .IP "\fB\-msymbol\-as\-address\fR" 4
12672 .IX Item "-msymbol-as-address"
12673 Enable the compiler to directly use a symbol name as an address in a
12674 load/store instruction, without first loading it into a
12675 register.  Typically, the use of this option will generate larger
12676 programs, which run faster than when the option isn't used.  However, the
12677 results vary from program to program, so it is left as a user option,
12678 rather than being permanently enabled.
12679 .IP "\fB\-mno\-inefficient\-warnings\fR" 4
12680 .IX Item "-mno-inefficient-warnings"
12681 Disables warnings about the generation of inefficient code.  These
12682 warnings can be generated, for example, when compiling code which
12683 performs byte-level memory operations on the \s-1MAC\s0 \s-1AE\s0 type.  The \s-1MAC\s0 \s-1AE\s0 has
12684 no hardware support for byte-level memory operations, so all byte
12685 load/stores must be synthesized from word load/store operations.  This is
12686 inefficient and a warning will be generated indicating to the programmer
12687 that they should rewrite the code to avoid byte operations, or to target
12688 an \s-1AE\s0 type which has the necessary hardware support.  This option enables
12689 the warning to be turned off.
12690 .PP
12691 \fIPowerPC Options\fR
12692 .IX Subsection "PowerPC Options"
12693 .PP
12694 These are listed under
12695 .PP
12696 \fI\s-1IBM\s0 \s-1RS/6000\s0 and PowerPC Options\fR
12697 .IX Subsection "IBM RS/6000 and PowerPC Options"
12698 .PP
12699 These \fB\-m\fR options are defined for the \s-1IBM\s0 \s-1RS/6000\s0 and PowerPC:
12700 .IP "\fB\-mpower\fR" 4
12701 .IX Item "-mpower"
12702 .PD 0
12703 .IP "\fB\-mno\-power\fR" 4
12704 .IX Item "-mno-power"
12705 .IP "\fB\-mpower2\fR" 4
12706 .IX Item "-mpower2"
12707 .IP "\fB\-mno\-power2\fR" 4
12708 .IX Item "-mno-power2"
12709 .IP "\fB\-mpowerpc\fR" 4
12710 .IX Item "-mpowerpc"
12711 .IP "\fB\-mno\-powerpc\fR" 4
12712 .IX Item "-mno-powerpc"
12713 .IP "\fB\-mpowerpc\-gpopt\fR" 4
12714 .IX Item "-mpowerpc-gpopt"
12715 .IP "\fB\-mno\-powerpc\-gpopt\fR" 4
12716 .IX Item "-mno-powerpc-gpopt"
12717 .IP "\fB\-mpowerpc\-gfxopt\fR" 4
12718 .IX Item "-mpowerpc-gfxopt"
12719 .IP "\fB\-mno\-powerpc\-gfxopt\fR" 4
12720 .IX Item "-mno-powerpc-gfxopt"
12721 .IP "\fB\-mpowerpc64\fR" 4
12722 .IX Item "-mpowerpc64"
12723 .IP "\fB\-mno\-powerpc64\fR" 4
12724 .IX Item "-mno-powerpc64"
12725 .IP "\fB\-mmfcrf\fR" 4
12726 .IX Item "-mmfcrf"
12727 .IP "\fB\-mno\-mfcrf\fR" 4
12728 .IX Item "-mno-mfcrf"
12729 .IP "\fB\-mpopcntb\fR" 4
12730 .IX Item "-mpopcntb"
12731 .IP "\fB\-mno\-popcntb\fR" 4
12732 .IX Item "-mno-popcntb"
12733 .IP "\fB\-mfprnd\fR" 4
12734 .IX Item "-mfprnd"
12735 .IP "\fB\-mno\-fprnd\fR" 4
12736 .IX Item "-mno-fprnd"
12737 .IP "\fB\-mcmpb\fR" 4
12738 .IX Item "-mcmpb"
12739 .IP "\fB\-mno\-cmpb\fR" 4
12740 .IX Item "-mno-cmpb"
12741 .IP "\fB\-mmfpgpr\fR" 4
12742 .IX Item "-mmfpgpr"
12743 .IP "\fB\-mno\-mfpgpr\fR" 4
12744 .IX Item "-mno-mfpgpr"
12745 .IP "\fB\-mhard\-dfp\fR" 4
12746 .IX Item "-mhard-dfp"
12747 .IP "\fB\-mno\-hard\-dfp\fR" 4
12748 .IX Item "-mno-hard-dfp"
12749 .PD
12750 \&\s-1GCC\s0 supports two related instruction set architectures for the
12751 \&\s-1RS/6000\s0 and PowerPC.  The \fI\s-1POWER\s0\fR instruction set are those
12752 instructions supported by the \fBrios\fR chip set used in the original
12753 \&\s-1RS/6000\s0 systems and the \fIPowerPC\fR instruction set is the
12754 architecture of the Freescale MPC5xx, MPC6xx, MPC8xx microprocessors, and
12755 the \s-1IBM\s0 4xx, 6xx, and follow-on microprocessors.
12756 .Sp
12757 Neither architecture is a subset of the other.  However there is a
12758 large common subset of instructions supported by both.  An \s-1MQ\s0
12759 register is included in processors supporting the \s-1POWER\s0 architecture.
12760 .Sp
12761 You use these options to specify which instructions are available on the
12762 processor you are using.  The default value of these options is
12763 determined when configuring \s-1GCC\s0.  Specifying the
12764 \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
12765 options.  We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
12766 rather than the options listed above.
12767 .Sp
12768 The \fB\-mpower\fR option allows \s-1GCC\s0 to generate instructions that
12769 are found only in the \s-1POWER\s0 architecture and to use the \s-1MQ\s0 register.
12770 Specifying \fB\-mpower2\fR implies \fB\-power\fR and also allows \s-1GCC\s0
12771 to generate instructions that are present in the \s-1POWER2\s0 architecture but
12772 not the original \s-1POWER\s0 architecture.
12773 .Sp
12774 The \fB\-mpowerpc\fR option allows \s-1GCC\s0 to generate instructions that
12775 are found only in the 32\-bit subset of the PowerPC architecture.
12776 Specifying \fB\-mpowerpc\-gpopt\fR implies \fB\-mpowerpc\fR and also allows
12777 \&\s-1GCC\s0 to use the optional PowerPC architecture instructions in the
12778 General Purpose group, including floating-point square root.  Specifying
12779 \&\fB\-mpowerpc\-gfxopt\fR implies \fB\-mpowerpc\fR and also allows \s-1GCC\s0 to
12780 use the optional PowerPC architecture instructions in the Graphics
12781 group, including floating-point select.
12782 .Sp
12783 The \fB\-mmfcrf\fR option allows \s-1GCC\s0 to generate the move from
12784 condition register field instruction implemented on the \s-1POWER4\s0
12785 processor and other processors that support the PowerPC V2.01
12786 architecture.
12787 The \fB\-mpopcntb\fR option allows \s-1GCC\s0 to generate the popcount and
12788 double precision \s-1FP\s0 reciprocal estimate instruction implemented on the
12789 \&\s-1POWER5\s0 processor and other processors that support the PowerPC V2.02
12790 architecture.
12791 The \fB\-mfprnd\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 round to
12792 integer instructions implemented on the \s-1POWER5+\s0 processor and other
12793 processors that support the PowerPC V2.03 architecture.
12794 The \fB\-mcmpb\fR option allows \s-1GCC\s0 to generate the compare bytes
12795 instruction implemented on the \s-1POWER6\s0 processor and other processors
12796 that support the PowerPC V2.05 architecture.
12797 The \fB\-mmfpgpr\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 move to/from
12798 general purpose register instructions implemented on the \s-1POWER6X\s0
12799 processor and other processors that support the extended PowerPC V2.05
12800 architecture.
12801 The \fB\-mhard\-dfp\fR option allows \s-1GCC\s0 to generate the decimal floating
12802 point instructions implemented on some \s-1POWER\s0 processors.
12803 .Sp
12804 The \fB\-mpowerpc64\fR option allows \s-1GCC\s0 to generate the additional
12805 64\-bit instructions that are found in the full PowerPC64 architecture
12806 and to treat GPRs as 64\-bit, doubleword quantities.  \s-1GCC\s0 defaults to
12807 \&\fB\-mno\-powerpc64\fR.
12808 .Sp
12809 If you specify both \fB\-mno\-power\fR and \fB\-mno\-powerpc\fR, \s-1GCC\s0
12810 will use only the instructions in the common subset of both
12811 architectures plus some special \s-1AIX\s0 common-mode calls, and will not use
12812 the \s-1MQ\s0 register.  Specifying both \fB\-mpower\fR and \fB\-mpowerpc\fR
12813 permits \s-1GCC\s0 to use any instruction from either architecture and to
12814 allow use of the \s-1MQ\s0 register; specify this for the Motorola \s-1MPC601\s0.
12815 .IP "\fB\-mnew\-mnemonics\fR" 4
12816 .IX Item "-mnew-mnemonics"
12817 .PD 0
12818 .IP "\fB\-mold\-mnemonics\fR" 4
12819 .IX Item "-mold-mnemonics"
12820 .PD
12821 Select which mnemonics to use in the generated assembler code.  With
12822 \&\fB\-mnew\-mnemonics\fR, \s-1GCC\s0 uses the assembler mnemonics defined for
12823 the PowerPC architecture.  With \fB\-mold\-mnemonics\fR it uses the
12824 assembler mnemonics defined for the \s-1POWER\s0 architecture.  Instructions
12825 defined in only one architecture have only one mnemonic; \s-1GCC\s0 uses that
12826 mnemonic irrespective of which of these options is specified.
12827 .Sp
12828 \&\s-1GCC\s0 defaults to the mnemonics appropriate for the architecture in
12829 use.  Specifying \fB\-mcpu=\fR\fIcpu_type\fR sometimes overrides the
12830 value of these option.  Unless you are building a cross-compiler, you
12831 should normally not specify either \fB\-mnew\-mnemonics\fR or
12832 \&\fB\-mold\-mnemonics\fR, but should instead accept the default.
12833 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
12834 .IX Item "-mcpu=cpu_type"
12835 Set architecture type, register usage, choice of mnemonics, and
12836 instruction scheduling parameters for machine type \fIcpu_type\fR.
12837 Supported values for \fIcpu_type\fR are \fB401\fR, \fB403\fR,
12838 \&\fB405\fR, \fB405fp\fR, \fB440\fR, \fB440fp\fR, \fB464\fR, \fB464fp\fR,
12839 \&\fB505\fR, \fB601\fR, \fB602\fR, \fB603\fR, \fB603e\fR, \fB604\fR,
12840 \&\fB604e\fR, \fB620\fR, \fB630\fR, \fB740\fR, \fB7400\fR,
12841 \&\fB7450\fR, \fB750\fR, \fB801\fR, \fB821\fR, \fB823\fR,
12842 \&\fB860\fR, \fB970\fR, \fB8540\fR, \fBe300c2\fR, \fBe300c3\fR,
12843 \&\fBe500mc\fR, \fBec603e\fR, \fBG3\fR, \fBG4\fR, \fBG5\fR,
12844 \&\fBpower\fR, \fBpower2\fR, \fBpower3\fR, \fBpower4\fR,
12845 \&\fBpower5\fR, \fBpower5+\fR, \fBpower6\fR, \fBpower6x\fR, \fBpower7\fR
12846 \&\fBcommon\fR, \fBpowerpc\fR, \fBpowerpc64\fR, \fBrios\fR,
12847 \&\fBrios1\fR, \fBrios2\fR, \fBrsc\fR, and \fBrs64\fR.
12848 .Sp
12849 \&\fB\-mcpu=common\fR selects a completely generic processor.  Code
12850 generated under this option will run on any \s-1POWER\s0 or PowerPC processor.
12851 \&\s-1GCC\s0 will use only the instructions in the common subset of both
12852 architectures, and will not use the \s-1MQ\s0 register.  \s-1GCC\s0 assumes a generic
12853 processor model for scheduling purposes.
12854 .Sp
12855 \&\fB\-mcpu=power\fR, \fB\-mcpu=power2\fR, \fB\-mcpu=powerpc\fR, and
12856 \&\fB\-mcpu=powerpc64\fR specify generic \s-1POWER\s0, \s-1POWER2\s0, pure 32\-bit
12857 PowerPC (i.e., not \s-1MPC601\s0), and 64\-bit PowerPC architecture machine
12858 types, with an appropriate, generic processor model assumed for
12859 scheduling purposes.
12860 .Sp
12861 The other options specify a specific processor.  Code generated under
12862 those options will run best on that processor, and may not run at all on
12863 others.
12864 .Sp
12865 The \fB\-mcpu\fR options automatically enable or disable the
12866 following options:
12867 .Sp
12868 \&\fB\-maltivec  \-mfprnd  \-mhard\-float  \-mmfcrf  \-mmultiple 
12869 \&\-mnew\-mnemonics  \-mpopcntb  \-mpower  \-mpower2  \-mpowerpc64 
12870 \&\-mpowerpc\-gpopt  \-mpowerpc\-gfxopt  \-msingle\-float \-mdouble\-float 
12871 \&\-msimple\-fpu \-mstring  \-mmulhw  \-mdlmzb  \-mmfpgpr\fR
12872 .Sp
12873 The particular options set for any particular \s-1CPU\s0 will vary between
12874 compiler versions, depending on what setting seems to produce optimal
12875 code for that \s-1CPU\s0; it doesn't necessarily reflect the actual hardware's
12876 capabilities.  If you wish to set an individual option to a particular
12877 value, you may specify it after the \fB\-mcpu\fR option, like
12878 \&\fB\-mcpu=970 \-mno\-altivec\fR.
12879 .Sp
12880 On \s-1AIX\s0, the \fB\-maltivec\fR and \fB\-mpowerpc64\fR options are
12881 not enabled or disabled by the \fB\-mcpu\fR option at present because
12882 \&\s-1AIX\s0 does not have full support for these options.  You may still
12883 enable or disable them individually if you're sure it'll work in your
12884 environment.
12885 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
12886 .IX Item "-mtune=cpu_type"
12887 Set the instruction scheduling parameters for machine type
12888 \&\fIcpu_type\fR, but do not set the architecture type, register usage, or
12889 choice of mnemonics, as \fB\-mcpu=\fR\fIcpu_type\fR would.  The same
12890 values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
12891 \&\fB\-mcpu\fR.  If both are specified, the code generated will use the
12892 architecture, registers, and mnemonics set by \fB\-mcpu\fR, but the
12893 scheduling parameters set by \fB\-mtune\fR.
12894 .IP "\fB\-mswdiv\fR" 4
12895 .IX Item "-mswdiv"
12896 .PD 0
12897 .IP "\fB\-mno\-swdiv\fR" 4
12898 .IX Item "-mno-swdiv"
12899 .PD
12900 Generate code to compute division as reciprocal estimate and iterative
12901 refinement, creating opportunities for increased throughput.  This
12902 feature requires: optional PowerPC Graphics instruction set for single
12903 precision and \s-1FRE\s0 instruction for double precision, assuming divides
12904 cannot generate user-visible traps, and the domain values not include
12905 Infinities, denormals or zero denominator.
12906 .IP "\fB\-maltivec\fR" 4
12907 .IX Item "-maltivec"
12908 .PD 0
12909 .IP "\fB\-mno\-altivec\fR" 4
12910 .IX Item "-mno-altivec"
12911 .PD
12912 Generate code that uses (does not use) AltiVec instructions, and also
12913 enable the use of built-in functions that allow more direct access to
12914 the AltiVec instruction set.  You may also need to set
12915 \&\fB\-mabi=altivec\fR to adjust the current \s-1ABI\s0 with AltiVec \s-1ABI\s0
12916 enhancements.
12917 .IP "\fB\-mvrsave\fR" 4
12918 .IX Item "-mvrsave"
12919 .PD 0
12920 .IP "\fB\-mno\-vrsave\fR" 4
12921 .IX Item "-mno-vrsave"
12922 .PD
12923 Generate \s-1VRSAVE\s0 instructions when generating AltiVec code.
12924 .IP "\fB\-mgen\-cell\-microcode\fR" 4
12925 .IX Item "-mgen-cell-microcode"
12926 Generate Cell microcode instructions
12927 .IP "\fB\-mwarn\-cell\-microcode\fR" 4
12928 .IX Item "-mwarn-cell-microcode"
12929 Warning when a Cell microcode instruction is going to emitted.  An example
12930 of a Cell microcode instruction is a variable shift.
12931 .IP "\fB\-msecure\-plt\fR" 4
12932 .IX Item "-msecure-plt"
12933 Generate code that allows ld and ld.so to build executables and shared
12934 libraries with non-exec .plt and .got sections.  This is a PowerPC
12935 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
12936 .IP "\fB\-mbss\-plt\fR" 4
12937 .IX Item "-mbss-plt"
12938 Generate code that uses a \s-1BSS\s0 .plt section that ld.so fills in, and
12939 requires .plt and .got sections that are both writable and executable.
12940 This is a PowerPC 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
12941 .IP "\fB\-misel\fR" 4
12942 .IX Item "-misel"
12943 .PD 0
12944 .IP "\fB\-mno\-isel\fR" 4
12945 .IX Item "-mno-isel"
12946 .PD
12947 This switch enables or disables the generation of \s-1ISEL\s0 instructions.
12948 .IP "\fB\-misel=\fR\fIyes/no\fR" 4
12949 .IX Item "-misel=yes/no"
12950 This switch has been deprecated.  Use \fB\-misel\fR and
12951 \&\fB\-mno\-isel\fR instead.
12952 .IP "\fB\-mspe\fR" 4
12953 .IX Item "-mspe"
12954 .PD 0
12955 .IP "\fB\-mno\-spe\fR" 4
12956 .IX Item "-mno-spe"
12957 .PD
12958 This switch enables or disables the generation of \s-1SPE\s0 simd
12959 instructions.
12960 .IP "\fB\-mpaired\fR" 4
12961 .IX Item "-mpaired"
12962 .PD 0
12963 .IP "\fB\-mno\-paired\fR" 4
12964 .IX Item "-mno-paired"
12965 .PD
12966 This switch enables or disables the generation of \s-1PAIRED\s0 simd
12967 instructions.
12968 .IP "\fB\-mspe=\fR\fIyes/no\fR" 4
12969 .IX Item "-mspe=yes/no"
12970 This option has been deprecated.  Use \fB\-mspe\fR and
12971 \&\fB\-mno\-spe\fR instead.
12972 .IP "\fB\-mfloat\-gprs=\fR\fIyes/single/double/no\fR" 4
12973 .IX Item "-mfloat-gprs=yes/single/double/no"
12974 .PD 0
12975 .IP "\fB\-mfloat\-gprs\fR" 4
12976 .IX Item "-mfloat-gprs"
12977 .PD
12978 This switch enables or disables the generation of floating point
12979 operations on the general purpose registers for architectures that
12980 support it.
12981 .Sp
12982 The argument \fIyes\fR or \fIsingle\fR enables the use of
12983 single-precision floating point operations.
12984 .Sp
12985 The argument \fIdouble\fR enables the use of single and
12986 double-precision floating point operations.
12987 .Sp
12988 The argument \fIno\fR disables floating point operations on the
12989 general purpose registers.
12990 .Sp
12991 This option is currently only available on the MPC854x.
12992 .IP "\fB\-m32\fR" 4
12993 .IX Item "-m32"
12994 .PD 0
12995 .IP "\fB\-m64\fR" 4
12996 .IX Item "-m64"
12997 .PD
12998 Generate code for 32\-bit or 64\-bit environments of Darwin and \s-1SVR4\s0
12999 targets (including GNU/Linux).  The 32\-bit environment sets int, long
13000 and pointer to 32 bits and generates code that runs on any PowerPC
13001 variant.  The 64\-bit environment sets int to 32 bits and long and
13002 pointer to 64 bits, and generates code for PowerPC64, as for
13003 \&\fB\-mpowerpc64\fR.
13004 .IP "\fB\-mfull\-toc\fR" 4
13005 .IX Item "-mfull-toc"
13006 .PD 0
13007 .IP "\fB\-mno\-fp\-in\-toc\fR" 4
13008 .IX Item "-mno-fp-in-toc"
13009 .IP "\fB\-mno\-sum\-in\-toc\fR" 4
13010 .IX Item "-mno-sum-in-toc"
13011 .IP "\fB\-mminimal\-toc\fR" 4
13012 .IX Item "-mminimal-toc"
13013 .PD
13014 Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
13015 every executable file.  The \fB\-mfull\-toc\fR option is selected by
13016 default.  In that case, \s-1GCC\s0 will allocate at least one \s-1TOC\s0 entry for
13017 each unique non-automatic variable reference in your program.  \s-1GCC\s0
13018 will also place floating-point constants in the \s-1TOC\s0.  However, only
13019 16,384 entries are available in the \s-1TOC\s0.
13020 .Sp
13021 If you receive a linker error message that saying you have overflowed
13022 the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
13023 with the \fB\-mno\-fp\-in\-toc\fR and \fB\-mno\-sum\-in\-toc\fR options.
13024 \&\fB\-mno\-fp\-in\-toc\fR prevents \s-1GCC\s0 from putting floating-point
13025 constants in the \s-1TOC\s0 and \fB\-mno\-sum\-in\-toc\fR forces \s-1GCC\s0 to
13026 generate code to calculate the sum of an address and a constant at
13027 run-time instead of putting that sum into the \s-1TOC\s0.  You may specify one
13028 or both of these options.  Each causes \s-1GCC\s0 to produce very slightly
13029 slower and larger code at the expense of conserving \s-1TOC\s0 space.
13030 .Sp
13031 If you still run out of space in the \s-1TOC\s0 even when you specify both of
13032 these options, specify \fB\-mminimal\-toc\fR instead.  This option causes
13033 \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file.  When you specify this
13034 option, \s-1GCC\s0 will produce code that is slower and larger but which
13035 uses extremely little \s-1TOC\s0 space.  You may wish to use this option
13036 only on files that contain less frequently executed code.
13037 .IP "\fB\-maix64\fR" 4
13038 .IX Item "-maix64"
13039 .PD 0
13040 .IP "\fB\-maix32\fR" 4
13041 .IX Item "-maix32"
13042 .PD
13043 Enable 64\-bit \s-1AIX\s0 \s-1ABI\s0 and calling convention: 64\-bit pointers, 64\-bit
13044 \&\f(CW\*(C`long\*(C'\fR type, and the infrastructure needed to support them.
13045 Specifying \fB\-maix64\fR implies \fB\-mpowerpc64\fR and
13046 \&\fB\-mpowerpc\fR, while \fB\-maix32\fR disables the 64\-bit \s-1ABI\s0 and
13047 implies \fB\-mno\-powerpc64\fR.  \s-1GCC\s0 defaults to \fB\-maix32\fR.
13048 .IP "\fB\-mxl\-compat\fR" 4
13049 .IX Item "-mxl-compat"
13050 .PD 0
13051 .IP "\fB\-mno\-xl\-compat\fR" 4
13052 .IX Item "-mno-xl-compat"
13053 .PD
13054 Produce code that conforms more closely to \s-1IBM\s0 \s-1XL\s0 compiler semantics
13055 when using AIX-compatible \s-1ABI\s0.  Pass floating-point arguments to
13056 prototyped functions beyond the register save area (\s-1RSA\s0) on the stack
13057 in addition to argument FPRs.  Do not assume that most significant
13058 double in 128\-bit long double value is properly rounded when comparing
13059 values and converting to double.  Use \s-1XL\s0 symbol names for long double
13060 support routines.
13061 .Sp
13062 The \s-1AIX\s0 calling convention was extended but not initially documented to
13063 handle an obscure K&R C case of calling a function that takes the
13064 address of its arguments with fewer arguments than declared.  \s-1IBM\s0 \s-1XL\s0
13065 compilers access floating point arguments which do not fit in the
13066 \&\s-1RSA\s0 from the stack when a subroutine is compiled without
13067 optimization.  Because always storing floating-point arguments on the
13068 stack is inefficient and rarely needed, this option is not enabled by
13069 default and only is necessary when calling subroutines compiled by \s-1IBM\s0
13070 \&\s-1XL\s0 compilers without optimization.
13071 .IP "\fB\-mpe\fR" 4
13072 .IX Item "-mpe"
13073 Support \fI\s-1IBM\s0 \s-1RS/6000\s0 \s-1SP\s0\fR \fIParallel Environment\fR (\s-1PE\s0).  Link an
13074 application written to use message passing with special startup code to
13075 enable the application to run.  The system must have \s-1PE\s0 installed in the
13076 standard location (\fI/usr/lpp/ppe.poe/\fR), or the \fIspecs\fR file
13077 must be overridden with the \fB\-specs=\fR option to specify the
13078 appropriate directory location.  The Parallel Environment does not
13079 support threads, so the \fB\-mpe\fR option and the \fB\-pthread\fR
13080 option are incompatible.
13081 .IP "\fB\-malign\-natural\fR" 4
13082 .IX Item "-malign-natural"
13083 .PD 0
13084 .IP "\fB\-malign\-power\fR" 4
13085 .IX Item "-malign-power"
13086 .PD
13087 On \s-1AIX\s0, 32\-bit Darwin, and 64\-bit PowerPC GNU/Linux, the option
13088 \&\fB\-malign\-natural\fR overrides the ABI-defined alignment of larger
13089 types, such as floating-point doubles, on their natural size-based boundary.
13090 The option \fB\-malign\-power\fR instructs \s-1GCC\s0 to follow the ABI-specified
13091 alignment rules.  \s-1GCC\s0 defaults to the standard alignment defined in the \s-1ABI\s0.
13092 .Sp
13093 On 64\-bit Darwin, natural alignment is the default, and \fB\-malign\-power\fR
13094 is not supported.
13095 .IP "\fB\-msoft\-float\fR" 4
13096 .IX Item "-msoft-float"
13097 .PD 0
13098 .IP "\fB\-mhard\-float\fR" 4
13099 .IX Item "-mhard-float"
13100 .PD
13101 Generate code that does not use (uses) the floating-point register set.
13102 Software floating point emulation is provided if you use the
13103 \&\fB\-msoft\-float\fR option, and pass the option to \s-1GCC\s0 when linking.
13104 .IP "\fB\-msingle\-float\fR" 4
13105 .IX Item "-msingle-float"
13106 .PD 0
13107 .IP "\fB\-mdouble\-float\fR" 4
13108 .IX Item "-mdouble-float"
13109 .PD
13110 Generate code for single or double-precision floating point operations. 
13111 \&\fB\-mdouble\-float\fR implies \fB\-msingle\-float\fR.
13112 .IP "\fB\-msimple\-fpu\fR" 4
13113 .IX Item "-msimple-fpu"
13114 Do not generate sqrt and div instructions for hardware floating point unit.
13115 .IP "\fB\-mfpu\fR" 4
13116 .IX Item "-mfpu"
13117 Specify type of floating point unit.  Valid values are \fIsp_lite\fR 
13118 (equivalent to \-msingle\-float \-msimple\-fpu), \fIdp_lite\fR (equivalent
13119 to \-mdouble\-float \-msimple\-fpu), \fIsp_full\fR (equivalent to \-msingle\-float),
13120 and \fIdp_full\fR (equivalent to \-mdouble\-float).
13121 .IP "\fB\-mxilinx\-fpu\fR" 4
13122 .IX Item "-mxilinx-fpu"
13123 Perform optimizations for floating point unit on Xilinx \s-1PPC\s0 405/440.
13124 .IP "\fB\-mmultiple\fR" 4
13125 .IX Item "-mmultiple"
13126 .PD 0
13127 .IP "\fB\-mno\-multiple\fR" 4
13128 .IX Item "-mno-multiple"
13129 .PD
13130 Generate code that uses (does not use) the load multiple word
13131 instructions and the store multiple word instructions.  These
13132 instructions are generated by default on \s-1POWER\s0 systems, and not
13133 generated on PowerPC systems.  Do not use \fB\-mmultiple\fR on little
13134 endian PowerPC systems, since those instructions do not work when the
13135 processor is in little endian mode.  The exceptions are \s-1PPC740\s0 and
13136 \&\s-1PPC750\s0 which permit the instructions usage in little endian mode.
13137 .IP "\fB\-mstring\fR" 4
13138 .IX Item "-mstring"
13139 .PD 0
13140 .IP "\fB\-mno\-string\fR" 4
13141 .IX Item "-mno-string"
13142 .PD
13143 Generate code that uses (does not use) the load string instructions
13144 and the store string word instructions to save multiple registers and
13145 do small block moves.  These instructions are generated by default on
13146 \&\s-1POWER\s0 systems, and not generated on PowerPC systems.  Do not use
13147 \&\fB\-mstring\fR on little endian PowerPC systems, since those
13148 instructions do not work when the processor is in little endian mode.
13149 The exceptions are \s-1PPC740\s0 and \s-1PPC750\s0 which permit the instructions
13150 usage in little endian mode.
13151 .IP "\fB\-mupdate\fR" 4
13152 .IX Item "-mupdate"
13153 .PD 0
13154 .IP "\fB\-mno\-update\fR" 4
13155 .IX Item "-mno-update"
13156 .PD
13157 Generate code that uses (does not use) the load or store instructions
13158 that update the base register to the address of the calculated memory
13159 location.  These instructions are generated by default.  If you use
13160 \&\fB\-mno\-update\fR, there is a small window between the time that the
13161 stack pointer is updated and the address of the previous frame is
13162 stored, which means code that walks the stack frame across interrupts or
13163 signals may get corrupted data.
13164 .IP "\fB\-mavoid\-indexed\-addresses\fR" 4
13165 .IX Item "-mavoid-indexed-addresses"
13166 .PD 0
13167 .IP "\fB\-mno\-avoid\-indexed\-addresses\fR" 4
13168 .IX Item "-mno-avoid-indexed-addresses"
13169 .PD
13170 Generate code that tries to avoid (not avoid) the use of indexed load
13171 or store instructions. These instructions can incur a performance
13172 penalty on Power6 processors in certain situations, such as when
13173 stepping through large arrays that cross a 16M boundary.  This option
13174 is enabled by default when targetting Power6 and disabled otherwise.
13175 .IP "\fB\-mfused\-madd\fR" 4
13176 .IX Item "-mfused-madd"
13177 .PD 0
13178 .IP "\fB\-mno\-fused\-madd\fR" 4
13179 .IX Item "-mno-fused-madd"
13180 .PD
13181 Generate code that uses (does not use) the floating point multiply and
13182 accumulate instructions.  These instructions are generated by default if
13183 hardware floating is used.
13184 .IP "\fB\-mmulhw\fR" 4
13185 .IX Item "-mmulhw"
13186 .PD 0
13187 .IP "\fB\-mno\-mulhw\fR" 4
13188 .IX Item "-mno-mulhw"
13189 .PD
13190 Generate code that uses (does not use) the half-word multiply and
13191 multiply-accumulate instructions on the \s-1IBM\s0 405, 440 and 464 processors.
13192 These instructions are generated by default when targetting those
13193 processors.
13194 .IP "\fB\-mdlmzb\fR" 4
13195 .IX Item "-mdlmzb"
13196 .PD 0
13197 .IP "\fB\-mno\-dlmzb\fR" 4
13198 .IX Item "-mno-dlmzb"
13199 .PD
13200 Generate code that uses (does not use) the string-search \fBdlmzb\fR
13201 instruction on the \s-1IBM\s0 405, 440 and 464 processors.  This instruction is
13202 generated by default when targetting those processors.
13203 .IP "\fB\-mno\-bit\-align\fR" 4
13204 .IX Item "-mno-bit-align"
13205 .PD 0
13206 .IP "\fB\-mbit\-align\fR" 4
13207 .IX Item "-mbit-align"
13208 .PD
13209 On System V.4 and embedded PowerPC systems do not (do) force structures
13210 and unions that contain bit-fields to be aligned to the base type of the
13211 bit-field.
13212 .Sp
13213 For example, by default a structure containing nothing but 8
13214 \&\f(CW\*(C`unsigned\*(C'\fR bit-fields of length 1 would be aligned to a 4 byte
13215 boundary and have a size of 4 bytes.  By using \fB\-mno\-bit\-align\fR,
13216 the structure would be aligned to a 1 byte boundary and be one byte in
13217 size.
13218 .IP "\fB\-mno\-strict\-align\fR" 4
13219 .IX Item "-mno-strict-align"
13220 .PD 0
13221 .IP "\fB\-mstrict\-align\fR" 4
13222 .IX Item "-mstrict-align"
13223 .PD
13224 On System V.4 and embedded PowerPC systems do not (do) assume that
13225 unaligned memory references will be handled by the system.
13226 .IP "\fB\-mrelocatable\fR" 4
13227 .IX Item "-mrelocatable"
13228 .PD 0
13229 .IP "\fB\-mno\-relocatable\fR" 4
13230 .IX Item "-mno-relocatable"
13231 .PD
13232 On embedded PowerPC systems generate code that allows (does not allow)
13233 the program to be relocated to a different address at runtime.  If you
13234 use \fB\-mrelocatable\fR on any module, all objects linked together must
13235 be compiled with \fB\-mrelocatable\fR or \fB\-mrelocatable\-lib\fR.
13236 .IP "\fB\-mrelocatable\-lib\fR" 4
13237 .IX Item "-mrelocatable-lib"
13238 .PD 0
13239 .IP "\fB\-mno\-relocatable\-lib\fR" 4
13240 .IX Item "-mno-relocatable-lib"
13241 .PD
13242 On embedded PowerPC systems generate code that allows (does not allow)
13243 the program to be relocated to a different address at runtime.  Modules
13244 compiled with \fB\-mrelocatable\-lib\fR can be linked with either modules
13245 compiled without \fB\-mrelocatable\fR and \fB\-mrelocatable\-lib\fR or
13246 with modules compiled with the \fB\-mrelocatable\fR options.
13247 .IP "\fB\-mno\-toc\fR" 4
13248 .IX Item "-mno-toc"
13249 .PD 0
13250 .IP "\fB\-mtoc\fR" 4
13251 .IX Item "-mtoc"
13252 .PD
13253 On System V.4 and embedded PowerPC systems do not (do) assume that
13254 register 2 contains a pointer to a global area pointing to the addresses
13255 used in the program.
13256 .IP "\fB\-mlittle\fR" 4
13257 .IX Item "-mlittle"
13258 .PD 0
13259 .IP "\fB\-mlittle\-endian\fR" 4
13260 .IX Item "-mlittle-endian"
13261 .PD
13262 On System V.4 and embedded PowerPC systems compile code for the
13263 processor in little endian mode.  The \fB\-mlittle\-endian\fR option is
13264 the same as \fB\-mlittle\fR.
13265 .IP "\fB\-mbig\fR" 4
13266 .IX Item "-mbig"
13267 .PD 0
13268 .IP "\fB\-mbig\-endian\fR" 4
13269 .IX Item "-mbig-endian"
13270 .PD
13271 On System V.4 and embedded PowerPC systems compile code for the
13272 processor in big endian mode.  The \fB\-mbig\-endian\fR option is
13273 the same as \fB\-mbig\fR.
13274 .IP "\fB\-mdynamic\-no\-pic\fR" 4
13275 .IX Item "-mdynamic-no-pic"
13276 On Darwin and Mac \s-1OS\s0 X systems, compile code so that it is not
13277 relocatable, but that its external references are relocatable.  The
13278 resulting code is suitable for applications, but not shared
13279 libraries.
13280 .IP "\fB\-mprioritize\-restricted\-insns=\fR\fIpriority\fR" 4
13281 .IX Item "-mprioritize-restricted-insns=priority"
13282 This option controls the priority that is assigned to
13283 dispatch-slot restricted instructions during the second scheduling
13284 pass.  The argument \fIpriority\fR takes the value \fI0/1/2\fR to assign
13285 \&\fIno/highest/second\-highest\fR priority to dispatch slot restricted
13286 instructions.
13287 .IP "\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR" 4
13288 .IX Item "-msched-costly-dep=dependence_type"
13289 This option controls which dependences are considered costly
13290 by the target during instruction scheduling.  The argument
13291 \&\fIdependence_type\fR takes one of the following values:
13292 \&\fIno\fR: no dependence is costly,
13293 \&\fIall\fR: all dependences are costly,
13294 \&\fItrue_store_to_load\fR: a true dependence from store to load is costly,
13295 \&\fIstore_to_load\fR: any dependence from store to load is costly,
13296 \&\fInumber\fR: any dependence which latency >= \fInumber\fR is costly.
13297 .IP "\fB\-minsert\-sched\-nops=\fR\fIscheme\fR" 4
13298 .IX Item "-minsert-sched-nops=scheme"
13299 This option controls which nop insertion scheme will be used during
13300 the second scheduling pass.  The argument \fIscheme\fR takes one of the
13301 following values:
13302 \&\fIno\fR: Don't insert nops.
13303 \&\fIpad\fR: Pad with nops any dispatch group which has vacant issue slots,
13304 according to the scheduler's grouping.
13305 \&\fIregroup_exact\fR: Insert nops to force costly dependent insns into
13306 separate groups.  Insert exactly as many nops as needed to force an insn
13307 to a new group, according to the estimated processor grouping.
13308 \&\fInumber\fR: Insert nops to force costly dependent insns into
13309 separate groups.  Insert \fInumber\fR nops to force an insn to a new group.
13310 .IP "\fB\-mcall\-sysv\fR" 4
13311 .IX Item "-mcall-sysv"
13312 On System V.4 and embedded PowerPC systems compile code using calling
13313 conventions that adheres to the March 1995 draft of the System V
13314 Application Binary Interface, PowerPC processor supplement.  This is the
13315 default unless you configured \s-1GCC\s0 using \fBpowerpc\-*\-eabiaix\fR.
13316 .IP "\fB\-mcall\-sysv\-eabi\fR" 4
13317 .IX Item "-mcall-sysv-eabi"
13318 Specify both \fB\-mcall\-sysv\fR and \fB\-meabi\fR options.
13319 .IP "\fB\-mcall\-sysv\-noeabi\fR" 4
13320 .IX Item "-mcall-sysv-noeabi"
13321 Specify both \fB\-mcall\-sysv\fR and \fB\-mno\-eabi\fR options.
13322 .IP "\fB\-mcall\-solaris\fR" 4
13323 .IX Item "-mcall-solaris"
13324 On System V.4 and embedded PowerPC systems compile code for the Solaris
13325 operating system.
13326 .IP "\fB\-mcall\-linux\fR" 4
13327 .IX Item "-mcall-linux"
13328 On System V.4 and embedded PowerPC systems compile code for the
13329 Linux-based \s-1GNU\s0 system.
13330 .IP "\fB\-mcall\-gnu\fR" 4
13331 .IX Item "-mcall-gnu"
13332 On System V.4 and embedded PowerPC systems compile code for the
13333 Hurd-based \s-1GNU\s0 system.
13334 .IP "\fB\-mcall\-netbsd\fR" 4
13335 .IX Item "-mcall-netbsd"
13336 On System V.4 and embedded PowerPC systems compile code for the
13337 NetBSD operating system.
13338 .IP "\fB\-maix\-struct\-return\fR" 4
13339 .IX Item "-maix-struct-return"
13340 Return all structures in memory (as specified by the \s-1AIX\s0 \s-1ABI\s0).
13341 .IP "\fB\-msvr4\-struct\-return\fR" 4
13342 .IX Item "-msvr4-struct-return"
13343 Return structures smaller than 8 bytes in registers (as specified by the
13344 \&\s-1SVR4\s0 \s-1ABI\s0).
13345 .IP "\fB\-mabi=\fR\fIabi-type\fR" 4
13346 .IX Item "-mabi=abi-type"
13347 Extend the current \s-1ABI\s0 with a particular extension, or remove such extension.
13348 Valid values are \fIaltivec\fR, \fIno-altivec\fR, \fIspe\fR,
13349 \&\fIno-spe\fR, \fIibmlongdouble\fR, \fIieeelongdouble\fR.
13350 .IP "\fB\-mabi=spe\fR" 4
13351 .IX Item "-mabi=spe"
13352 Extend the current \s-1ABI\s0 with \s-1SPE\s0 \s-1ABI\s0 extensions.  This does not change
13353 the default \s-1ABI\s0, instead it adds the \s-1SPE\s0 \s-1ABI\s0 extensions to the current
13354 \&\s-1ABI\s0.
13355 .IP "\fB\-mabi=no\-spe\fR" 4
13356 .IX Item "-mabi=no-spe"
13357 Disable Booke \s-1SPE\s0 \s-1ABI\s0 extensions for the current \s-1ABI\s0.
13358 .IP "\fB\-mabi=ibmlongdouble\fR" 4
13359 .IX Item "-mabi=ibmlongdouble"
13360 Change the current \s-1ABI\s0 to use \s-1IBM\s0 extended precision long double.
13361 This is a PowerPC 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
13362 .IP "\fB\-mabi=ieeelongdouble\fR" 4
13363 .IX Item "-mabi=ieeelongdouble"
13364 Change the current \s-1ABI\s0 to use \s-1IEEE\s0 extended precision long double.
13365 This is a PowerPC 32\-bit Linux \s-1ABI\s0 option.
13366 .IP "\fB\-mprototype\fR" 4
13367 .IX Item "-mprototype"
13368 .PD 0
13369 .IP "\fB\-mno\-prototype\fR" 4
13370 .IX Item "-mno-prototype"
13371 .PD
13372 On System V.4 and embedded PowerPC systems assume that all calls to
13373 variable argument functions are properly prototyped.  Otherwise, the
13374 compiler must insert an instruction before every non prototyped call to
13375 set or clear bit 6 of the condition code register (\fI\s-1CR\s0\fR) to
13376 indicate whether floating point values were passed in the floating point
13377 registers in case the function takes a variable arguments.  With
13378 \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
13379 will set or clear the bit.
13380 .IP "\fB\-msim\fR" 4
13381 .IX Item "-msim"
13382 On embedded PowerPC systems, assume that the startup module is called
13383 \&\fIsim\-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
13384 \&\fIlibc.a\fR.  This is the default for \fBpowerpc\-*\-eabisim\fR
13385 configurations.
13386 .IP "\fB\-mmvme\fR" 4
13387 .IX Item "-mmvme"
13388 On embedded PowerPC systems, assume that the startup module is called
13389 \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
13390 \&\fIlibc.a\fR.
13391 .IP "\fB\-mads\fR" 4
13392 .IX Item "-mads"
13393 On embedded PowerPC systems, assume that the startup module is called
13394 \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
13395 \&\fIlibc.a\fR.
13396 .IP "\fB\-myellowknife\fR" 4
13397 .IX Item "-myellowknife"
13398 On embedded PowerPC systems, assume that the startup module is called
13399 \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
13400 \&\fIlibc.a\fR.
13401 .IP "\fB\-mvxworks\fR" 4
13402 .IX Item "-mvxworks"
13403 On System V.4 and embedded PowerPC systems, specify that you are
13404 compiling for a VxWorks system.
13405 .IP "\fB\-memb\fR" 4
13406 .IX Item "-memb"
13407 On embedded PowerPC systems, set the \fI\s-1PPC_EMB\s0\fR bit in the \s-1ELF\s0 flags
13408 header to indicate that \fBeabi\fR extended relocations are used.
13409 .IP "\fB\-meabi\fR" 4
13410 .IX Item "-meabi"
13411 .PD 0
13412 .IP "\fB\-mno\-eabi\fR" 4
13413 .IX Item "-mno-eabi"
13414 .PD
13415 On System V.4 and embedded PowerPC systems do (do not) adhere to the
13416 Embedded Applications Binary Interface (eabi) which is a set of
13417 modifications to the System V.4 specifications.  Selecting \fB\-meabi\fR
13418 means that the stack is aligned to an 8 byte boundary, a function
13419 \&\f(CW\*(C`_\|_eabi\*(C'\fR is called to from \f(CW\*(C`main\*(C'\fR to set up the eabi
13420 environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
13421 \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas.  Selecting
13422 \&\fB\-mno\-eabi\fR means that the stack is aligned to a 16 byte boundary,
13423 do not call an initialization function from \f(CW\*(C`main\*(C'\fR, and the
13424 \&\fB\-msdata\fR option will only use \f(CW\*(C`r13\*(C'\fR to point to a single
13425 small data area.  The \fB\-meabi\fR option is on by default if you
13426 configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
13427 .IP "\fB\-msdata=eabi\fR" 4
13428 .IX Item "-msdata=eabi"
13429 On System V.4 and embedded PowerPC systems, put small initialized
13430 \&\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata2\fR section, which
13431 is pointed to by register \f(CW\*(C`r2\*(C'\fR.  Put small initialized
13432 non\-\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata\fR section,
13433 which is pointed to by register \f(CW\*(C`r13\*(C'\fR.  Put small uninitialized
13434 global and static data in the \fB.sbss\fR section, which is adjacent to
13435 the \fB.sdata\fR section.  The \fB\-msdata=eabi\fR option is
13436 incompatible with the \fB\-mrelocatable\fR option.  The
13437 \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
13438 .IP "\fB\-msdata=sysv\fR" 4
13439 .IX Item "-msdata=sysv"
13440 On System V.4 and embedded PowerPC systems, put small global and static
13441 data in the \fB.sdata\fR section, which is pointed to by register
13442 \&\f(CW\*(C`r13\*(C'\fR.  Put small uninitialized global and static data in the
13443 \&\fB.sbss\fR section, which is adjacent to the \fB.sdata\fR section.
13444 The \fB\-msdata=sysv\fR option is incompatible with the
13445 \&\fB\-mrelocatable\fR option.
13446 .IP "\fB\-msdata=default\fR" 4
13447 .IX Item "-msdata=default"
13448 .PD 0
13449 .IP "\fB\-msdata\fR" 4
13450 .IX Item "-msdata"
13451 .PD
13452 On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
13453 compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
13454 same as \fB\-msdata=sysv\fR.
13455 .IP "\fB\-msdata=data\fR" 4
13456 .IX Item "-msdata=data"
13457 On System V.4 and embedded PowerPC systems, put small global
13458 data in the \fB.sdata\fR section.  Put small uninitialized global
13459 data in the \fB.sbss\fR section.  Do not use register \f(CW\*(C`r13\*(C'\fR
13460 to address small data however.  This is the default behavior unless
13461 other \fB\-msdata\fR options are used.
13462 .IP "\fB\-msdata=none\fR" 4
13463 .IX Item "-msdata=none"
13464 .PD 0
13465 .IP "\fB\-mno\-sdata\fR" 4
13466 .IX Item "-mno-sdata"
13467 .PD
13468 On embedded PowerPC systems, put all initialized global and static data
13469 in the \fB.data\fR section, and all uninitialized data in the
13470 \&\fB.bss\fR section.
13471 .IP "\fB\-G\fR \fInum\fR" 4
13472 .IX Item "-G num"
13473 On embedded PowerPC systems, put global and static items less than or
13474 equal to \fInum\fR bytes into the small data or bss sections instead of
13475 the normal data or bss section.  By default, \fInum\fR is 8.  The
13476 \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
13477 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
13478 .IP "\fB\-mregnames\fR" 4
13479 .IX Item "-mregnames"
13480 .PD 0
13481 .IP "\fB\-mno\-regnames\fR" 4
13482 .IX Item "-mno-regnames"
13483 .PD
13484 On System V.4 and embedded PowerPC systems do (do not) emit register
13485 names in the assembly language output using symbolic forms.
13486 .IP "\fB\-mlongcall\fR" 4
13487 .IX Item "-mlongcall"
13488 .PD 0
13489 .IP "\fB\-mno\-longcall\fR" 4
13490 .IX Item "-mno-longcall"
13491 .PD
13492 By default assume that all calls are far away so that a longer more
13493 expensive calling sequence is required.  This is required for calls
13494 further than 32 megabytes (33,554,432 bytes) from the current location.
13495 A short call will be generated if the compiler knows
13496 the call cannot be that far away.  This setting can be overridden by
13497 the \f(CW\*(C`shortcall\*(C'\fR function attribute, or by \f(CW\*(C`#pragma
13498 longcall(0)\*(C'\fR.
13499 .Sp
13500 Some linkers are capable of detecting out-of-range calls and generating
13501 glue code on the fly.  On these systems, long calls are unnecessary and
13502 generate slower code.  As of this writing, the \s-1AIX\s0 linker can do this,
13503 as can the \s-1GNU\s0 linker for PowerPC/64.  It is planned to add this feature
13504 to the \s-1GNU\s0 linker for 32\-bit PowerPC systems as well.
13505 .Sp
13506 On Darwin/PPC systems, \f(CW\*(C`#pragma longcall\*(C'\fR will generate \*(L"jbsr
13507 callee, L42\*(R", plus a \*(L"branch island\*(R" (glue code).  The two target
13508 addresses represent the callee and the \*(L"branch island\*(R".  The
13509 Darwin/PPC linker will prefer the first address and generate a \*(L"bl
13510 callee\*(R" if the \s-1PPC\s0 \*(L"bl\*(R" instruction will reach the callee directly;
13511 otherwise, the linker will generate \*(L"bl L42\*(R" to call the \*(L"branch
13512 island\*(R".  The \*(L"branch island\*(R" is appended to the body of the
13513 calling function; it computes the full 32\-bit address of the callee
13514 and jumps to it.
13515 .Sp
13516 On Mach-O (Darwin) systems, this option directs the compiler emit to
13517 the glue for every direct call, and the Darwin linker decides whether
13518 to use or discard it.
13519 .Sp
13520 In the future, we may cause \s-1GCC\s0 to ignore all longcall specifications
13521 when the linker is known to generate glue.
13522 .IP "\fB\-pthread\fR" 4
13523 .IX Item "-pthread"
13524 Adds support for multithreading with the \fIpthreads\fR library.
13525 This option sets flags for both the preprocessor and linker.
13526 .PP
13527 \fIS/390 and zSeries Options\fR
13528 .IX Subsection "S/390 and zSeries Options"
13529 .PP
13530 These are the \fB\-m\fR options defined for the S/390 and zSeries architecture.
13531 .IP "\fB\-mhard\-float\fR" 4
13532 .IX Item "-mhard-float"
13533 .PD 0
13534 .IP "\fB\-msoft\-float\fR" 4
13535 .IX Item "-msoft-float"
13536 .PD
13537 Use (do not use) the hardware floating-point instructions and registers
13538 for floating-point operations.  When \fB\-msoft\-float\fR is specified,
13539 functions in \fIlibgcc.a\fR will be used to perform floating-point
13540 operations.  When \fB\-mhard\-float\fR is specified, the compiler
13541 generates \s-1IEEE\s0 floating-point instructions.  This is the default.
13542 .IP "\fB\-mhard\-dfp\fR" 4
13543 .IX Item "-mhard-dfp"
13544 .PD 0
13545 .IP "\fB\-mno\-hard\-dfp\fR" 4
13546 .IX Item "-mno-hard-dfp"
13547 .PD
13548 Use (do not use) the hardware decimal-floating-point instructions for
13549 decimal-floating-point operations.  When \fB\-mno\-hard\-dfp\fR is
13550 specified, functions in \fIlibgcc.a\fR will be used to perform
13551 decimal-floating-point operations.  When \fB\-mhard\-dfp\fR is
13552 specified, the compiler generates decimal-floating-point hardware
13553 instructions.  This is the default for \fB\-march=z9\-ec\fR or higher.
13554 .IP "\fB\-mlong\-double\-64\fR" 4
13555 .IX Item "-mlong-double-64"
13556 .PD 0
13557 .IP "\fB\-mlong\-double\-128\fR" 4
13558 .IX Item "-mlong-double-128"
13559 .PD
13560 These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
13561 of 64bit makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
13562 type. This is the default.
13563 .IP "\fB\-mbackchain\fR" 4
13564 .IX Item "-mbackchain"
13565 .PD 0
13566 .IP "\fB\-mno\-backchain\fR" 4
13567 .IX Item "-mno-backchain"
13568 .PD
13569 Store (do not store) the address of the caller's frame as backchain pointer
13570 into the callee's stack frame.
13571 A backchain may be needed to allow debugging using tools that do not understand
13572 \&\s-1DWARF\-2\s0 call frame information.
13573 When \fB\-mno\-packed\-stack\fR is in effect, the backchain pointer is stored
13574 at the bottom of the stack frame; when \fB\-mpacked\-stack\fR is in effect,
13575 the backchain is placed into the topmost word of the 96/160 byte register
13576 save area.
13577 .Sp
13578 In general, code compiled with \fB\-mbackchain\fR is call-compatible with
13579 code compiled with \fB\-mmo\-backchain\fR; however, use of the backchain
13580 for debugging purposes usually requires that the whole binary is built with
13581 \&\fB\-mbackchain\fR.  Note that the combination of \fB\-mbackchain\fR,
13582 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
13583 to build a linux kernel use \fB\-msoft\-float\fR.
13584 .Sp
13585 The default is to not maintain the backchain.
13586 .IP "\fB\-mpacked\-stack\fR" 4
13587 .IX Item "-mpacked-stack"
13588 .PD 0
13589 .IP "\fB\-mno\-packed\-stack\fR" 4
13590 .IX Item "-mno-packed-stack"
13591 .PD
13592 Use (do not use) the packed stack layout.  When \fB\-mno\-packed\-stack\fR is
13593 specified, the compiler uses the all fields of the 96/160 byte register save
13594 area only for their default purpose; unused fields still take up stack space.
13595 When \fB\-mpacked\-stack\fR is specified, register save slots are densely
13596 packed at the top of the register save area; unused space is reused for other
13597 purposes, allowing for more efficient use of the available stack space.
13598 However, when \fB\-mbackchain\fR is also in effect, the topmost word of
13599 the save area is always used to store the backchain, and the return address
13600 register is always saved two words below the backchain.
13601 .Sp
13602 As long as the stack frame backchain is not used, code generated with
13603 \&\fB\-mpacked\-stack\fR is call-compatible with code generated with
13604 \&\fB\-mno\-packed\-stack\fR.  Note that some non-FSF releases of \s-1GCC\s0 2.95 for
13605 S/390 or zSeries generated code that uses the stack frame backchain at run
13606 time, not just for debugging purposes.  Such code is not call-compatible
13607 with code compiled with \fB\-mpacked\-stack\fR.  Also, note that the
13608 combination of \fB\-mbackchain\fR,
13609 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
13610 to build a linux kernel use \fB\-msoft\-float\fR.
13611 .Sp
13612 The default is to not use the packed stack layout.
13613 .IP "\fB\-msmall\-exec\fR" 4
13614 .IX Item "-msmall-exec"
13615 .PD 0
13616 .IP "\fB\-mno\-small\-exec\fR" 4
13617 .IX Item "-mno-small-exec"
13618 .PD
13619 Generate (or do not generate) code using the \f(CW\*(C`bras\*(C'\fR instruction
13620 to do subroutine calls.
13621 This only works reliably if the total executable size does not
13622 exceed 64k.  The default is to use the \f(CW\*(C`basr\*(C'\fR instruction instead,
13623 which does not have this limitation.
13624 .IP "\fB\-m64\fR" 4
13625 .IX Item "-m64"
13626 .PD 0
13627 .IP "\fB\-m31\fR" 4
13628 .IX Item "-m31"
13629 .PD
13630 When \fB\-m31\fR is specified, generate code compliant to the
13631 GNU/Linux for S/390 \s-1ABI\s0.  When \fB\-m64\fR is specified, generate
13632 code compliant to the GNU/Linux for zSeries \s-1ABI\s0.  This allows \s-1GCC\s0 in
13633 particular to generate 64\-bit instructions.  For the \fBs390\fR
13634 targets, the default is \fB\-m31\fR, while the \fBs390x\fR
13635 targets default to \fB\-m64\fR.
13636 .IP "\fB\-mzarch\fR" 4
13637 .IX Item "-mzarch"
13638 .PD 0
13639 .IP "\fB\-mesa\fR" 4
13640 .IX Item "-mesa"
13641 .PD
13642 When \fB\-mzarch\fR is specified, generate code using the
13643 instructions available on z/Architecture.
13644 When \fB\-mesa\fR is specified, generate code using the
13645 instructions available on \s-1ESA/390\s0.  Note that \fB\-mesa\fR is
13646 not possible with \fB\-m64\fR.
13647 When generating code compliant to the GNU/Linux for S/390 \s-1ABI\s0,
13648 the default is \fB\-mesa\fR.  When generating code compliant
13649 to the GNU/Linux for zSeries \s-1ABI\s0, the default is \fB\-mzarch\fR.
13650 .IP "\fB\-mmvcle\fR" 4
13651 .IX Item "-mmvcle"
13652 .PD 0
13653 .IP "\fB\-mno\-mvcle\fR" 4
13654 .IX Item "-mno-mvcle"
13655 .PD
13656 Generate (or do not generate) code using the \f(CW\*(C`mvcle\*(C'\fR instruction
13657 to perform block moves.  When \fB\-mno\-mvcle\fR is specified,
13658 use a \f(CW\*(C`mvc\*(C'\fR loop instead.  This is the default unless optimizing for
13659 size.
13660 .IP "\fB\-mdebug\fR" 4
13661 .IX Item "-mdebug"
13662 .PD 0
13663 .IP "\fB\-mno\-debug\fR" 4
13664 .IX Item "-mno-debug"
13665 .PD
13666 Print (or do not print) additional debug information when compiling.
13667 The default is to not print debug information.
13668 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
13669 .IX Item "-march=cpu-type"
13670 Generate code that will run on \fIcpu-type\fR, which is the name of a system
13671 representing a certain processor type.  Possible values for
13672 \&\fIcpu-type\fR are \fBg5\fR, \fBg6\fR, \fBz900\fR, \fBz990\fR,
13673 \&\fBz9\-109\fR, \fBz9\-ec\fR and \fBz10\fR.
13674 When generating code using the instructions available on z/Architecture,
13675 the default is \fB\-march=z900\fR.  Otherwise, the default is
13676 \&\fB\-march=g5\fR.
13677 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
13678 .IX Item "-mtune=cpu-type"
13679 Tune to \fIcpu-type\fR everything applicable about the generated code,
13680 except for the \s-1ABI\s0 and the set of available instructions.
13681 The list of \fIcpu-type\fR values is the same as for \fB\-march\fR.
13682 The default is the value used for \fB\-march\fR.
13683 .IP "\fB\-mtpf\-trace\fR" 4
13684 .IX Item "-mtpf-trace"
13685 .PD 0
13686 .IP "\fB\-mno\-tpf\-trace\fR" 4
13687 .IX Item "-mno-tpf-trace"
13688 .PD
13689 Generate code that adds (does not add) in \s-1TPF\s0 \s-1OS\s0 specific branches to trace
13690 routines in the operating system.  This option is off by default, even
13691 when compiling for the \s-1TPF\s0 \s-1OS\s0.
13692 .IP "\fB\-mfused\-madd\fR" 4
13693 .IX Item "-mfused-madd"
13694 .PD 0
13695 .IP "\fB\-mno\-fused\-madd\fR" 4
13696 .IX Item "-mno-fused-madd"
13697 .PD
13698 Generate code that uses (does not use) the floating point multiply and
13699 accumulate instructions.  These instructions are generated by default if
13700 hardware floating point is used.
13701 .IP "\fB\-mwarn\-framesize=\fR\fIframesize\fR" 4
13702 .IX Item "-mwarn-framesize=framesize"
13703 Emit a warning if the current function exceeds the given frame size.  Because
13704 this is a compile time check it doesn't need to be a real problem when the program
13705 runs.  It is intended to identify functions which most probably cause
13706 a stack overflow.  It is useful to be used in an environment with limited stack
13707 size e.g. the linux kernel.
13708 .IP "\fB\-mwarn\-dynamicstack\fR" 4
13709 .IX Item "-mwarn-dynamicstack"
13710 Emit a warning if the function calls alloca or uses dynamically
13711 sized arrays.  This is generally a bad idea with a limited stack size.
13712 .IP "\fB\-mstack\-guard=\fR\fIstack-guard\fR" 4
13713 .IX Item "-mstack-guard=stack-guard"
13714 .PD 0
13715 .IP "\fB\-mstack\-size=\fR\fIstack-size\fR" 4
13716 .IX Item "-mstack-size=stack-size"
13717 .PD
13718 If these options are provided the s390 back end emits additional instructions in
13719 the function prologue which trigger a trap if the stack size is \fIstack-guard\fR
13720 bytes above the \fIstack-size\fR (remember that the stack on s390 grows downward).
13721 If the \fIstack-guard\fR option is omitted the smallest power of 2 larger than
13722 the frame size of the compiled function is chosen.
13723 These options are intended to be used to help debugging stack overflow problems.
13724 The additionally emitted code causes only little overhead and hence can also be
13725 used in production like systems without greater performance degradation.  The given
13726 values have to be exact powers of 2 and \fIstack-size\fR has to be greater than
13727 \&\fIstack-guard\fR without exceeding 64k.
13728 In order to be efficient the extra code makes the assumption that the stack starts
13729 at an address aligned to the value given by \fIstack-size\fR.
13730 The \fIstack-guard\fR option can only be used in conjunction with \fIstack-size\fR.
13731 .PP
13732 \fIScore Options\fR
13733 .IX Subsection "Score Options"
13734 .PP
13735 These options are defined for Score implementations:
13736 .IP "\fB\-meb\fR" 4
13737 .IX Item "-meb"
13738 Compile code for big endian mode.  This is the default.
13739 .IP "\fB\-mel\fR" 4
13740 .IX Item "-mel"
13741 Compile code for little endian mode.
13742 .IP "\fB\-mnhwloop\fR" 4
13743 .IX Item "-mnhwloop"
13744 Disable generate bcnz instruction.
13745 .IP "\fB\-muls\fR" 4
13746 .IX Item "-muls"
13747 Enable generate unaligned load and store instruction.
13748 .IP "\fB\-mmac\fR" 4
13749 .IX Item "-mmac"
13750 Enable the use of multiply-accumulate instructions. Disabled by default.
13751 .IP "\fB\-mscore5\fR" 4
13752 .IX Item "-mscore5"
13753 Specify the \s-1SCORE5\s0 as the target architecture.
13754 .IP "\fB\-mscore5u\fR" 4
13755 .IX Item "-mscore5u"
13756 Specify the \s-1SCORE5U\s0 of the target architecture.
13757 .IP "\fB\-mscore7\fR" 4
13758 .IX Item "-mscore7"
13759 Specify the \s-1SCORE7\s0 as the target architecture. This is the default.
13760 .IP "\fB\-mscore7d\fR" 4
13761 .IX Item "-mscore7d"
13762 Specify the \s-1SCORE7D\s0 as the target architecture.
13763 .PP
13764 \fI\s-1SH\s0 Options\fR
13765 .IX Subsection "SH Options"
13766 .PP
13767 These \fB\-m\fR options are defined for the \s-1SH\s0 implementations:
13768 .IP "\fB\-m1\fR" 4
13769 .IX Item "-m1"
13770 Generate code for the \s-1SH1\s0.
13771 .IP "\fB\-m2\fR" 4
13772 .IX Item "-m2"
13773 Generate code for the \s-1SH2\s0.
13774 .IP "\fB\-m2e\fR" 4
13775 .IX Item "-m2e"
13776 Generate code for the SH2e.
13777 .IP "\fB\-m3\fR" 4
13778 .IX Item "-m3"
13779 Generate code for the \s-1SH3\s0.
13780 .IP "\fB\-m3e\fR" 4
13781 .IX Item "-m3e"
13782 Generate code for the SH3e.
13783 .IP "\fB\-m4\-nofpu\fR" 4
13784 .IX Item "-m4-nofpu"
13785 Generate code for the \s-1SH4\s0 without a floating-point unit.
13786 .IP "\fB\-m4\-single\-only\fR" 4
13787 .IX Item "-m4-single-only"
13788 Generate code for the \s-1SH4\s0 with a floating-point unit that only
13789 supports single-precision arithmetic.
13790 .IP "\fB\-m4\-single\fR" 4
13791 .IX Item "-m4-single"
13792 Generate code for the \s-1SH4\s0 assuming the floating-point unit is in
13793 single-precision mode by default.
13794 .IP "\fB\-m4\fR" 4
13795 .IX Item "-m4"
13796 Generate code for the \s-1SH4\s0.
13797 .IP "\fB\-m4a\-nofpu\fR" 4
13798 .IX Item "-m4a-nofpu"
13799 Generate code for the SH4al\-dsp, or for a SH4a in such a way that the
13800 floating-point unit is not used.
13801 .IP "\fB\-m4a\-single\-only\fR" 4
13802 .IX Item "-m4a-single-only"
13803 Generate code for the SH4a, in such a way that no double-precision
13804 floating point operations are used.
13805 .IP "\fB\-m4a\-single\fR" 4
13806 .IX Item "-m4a-single"
13807 Generate code for the SH4a assuming the floating-point unit is in
13808 single-precision mode by default.
13809 .IP "\fB\-m4a\fR" 4
13810 .IX Item "-m4a"
13811 Generate code for the SH4a.
13812 .IP "\fB\-m4al\fR" 4
13813 .IX Item "-m4al"
13814 Same as \fB\-m4a\-nofpu\fR, except that it implicitly passes
13815 \&\fB\-dsp\fR to the assembler.  \s-1GCC\s0 doesn't generate any \s-1DSP\s0
13816 instructions at the moment.
13817 .IP "\fB\-mb\fR" 4
13818 .IX Item "-mb"
13819 Compile code for the processor in big endian mode.
13820 .IP "\fB\-ml\fR" 4
13821 .IX Item "-ml"
13822 Compile code for the processor in little endian mode.
13823 .IP "\fB\-mdalign\fR" 4
13824 .IX Item "-mdalign"
13825 Align doubles at 64\-bit boundaries.  Note that this changes the calling
13826 conventions, and thus some functions from the standard C library will
13827 not work unless you recompile it first with \fB\-mdalign\fR.
13828 .IP "\fB\-mrelax\fR" 4
13829 .IX Item "-mrelax"
13830 Shorten some address references at link time, when possible; uses the
13831 linker option \fB\-relax\fR.
13832 .IP "\fB\-mbigtable\fR" 4
13833 .IX Item "-mbigtable"
13834 Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables.  The default is to use
13835 16\-bit offsets.
13836 .IP "\fB\-mbitops\fR" 4
13837 .IX Item "-mbitops"
13838 Enable the use of bit manipulation instructions on \s-1SH2A\s0.
13839 .IP "\fB\-mfmovd\fR" 4
13840 .IX Item "-mfmovd"
13841 Enable the use of the instruction \f(CW\*(C`fmovd\*(C'\fR.
13842 .IP "\fB\-mhitachi\fR" 4
13843 .IX Item "-mhitachi"
13844 Comply with the calling conventions defined by Renesas.
13845 .IP "\fB\-mrenesas\fR" 4
13846 .IX Item "-mrenesas"
13847 Comply with the calling conventions defined by Renesas.
13848 .IP "\fB\-mno\-renesas\fR" 4
13849 .IX Item "-mno-renesas"
13850 Comply with the calling conventions defined for \s-1GCC\s0 before the Renesas
13851 conventions were available.  This option is the default for all
13852 targets of the \s-1SH\s0 toolchain except for \fBsh-symbianelf\fR.
13853 .IP "\fB\-mnomacsave\fR" 4
13854 .IX Item "-mnomacsave"
13855 Mark the \f(CW\*(C`MAC\*(C'\fR register as call-clobbered, even if
13856 \&\fB\-mhitachi\fR is given.
13857 .IP "\fB\-mieee\fR" 4
13858 .IX Item "-mieee"
13859 Increase IEEE-compliance of floating-point code.
13860 At the moment, this is equivalent to \fB\-fno\-finite\-math\-only\fR.
13861 When generating 16 bit \s-1SH\s0 opcodes, getting IEEE-conforming results for
13862 comparisons of NANs / infinities incurs extra overhead in every
13863 floating point comparison, therefore the default is set to
13864 \&\fB\-ffinite\-math\-only\fR.
13865 .IP "\fB\-minline\-ic_invalidate\fR" 4
13866 .IX Item "-minline-ic_invalidate"
13867 Inline code to invalidate instruction cache entries after setting up
13868 nested function trampolines.
13869 This option has no effect if \-musermode is in effect and the selected
13870 code generation option (e.g. \-m4) does not allow the use of the icbi
13871 instruction.
13872 If the selected code generation option does not allow the use of the icbi
13873 instruction, and \-musermode is not in effect, the inlined code will
13874 manipulate the instruction cache address array directly with an associative
13875 write.  This not only requires privileged mode, but it will also
13876 fail if the cache line had been mapped via the \s-1TLB\s0 and has become unmapped.
13877 .IP "\fB\-misize\fR" 4
13878 .IX Item "-misize"
13879 Dump instruction size and location in the assembly code.
13880 .IP "\fB\-mpadstruct\fR" 4
13881 .IX Item "-mpadstruct"
13882 This option is deprecated.  It pads structures to multiple of 4 bytes,
13883 which is incompatible with the \s-1SH\s0 \s-1ABI\s0.
13884 .IP "\fB\-mspace\fR" 4
13885 .IX Item "-mspace"
13886 Optimize for space instead of speed.  Implied by \fB\-Os\fR.
13887 .IP "\fB\-mprefergot\fR" 4
13888 .IX Item "-mprefergot"
13889 When generating position-independent code, emit function calls using
13890 the Global Offset Table instead of the Procedure Linkage Table.
13891 .IP "\fB\-musermode\fR" 4
13892 .IX Item "-musermode"
13893 Don't generate privileged mode only code; implies \-mno\-inline\-ic_invalidate
13894 if the inlined code would not work in user mode.
13895 This is the default when the target is \f(CW\*(C`sh\-*\-linux*\*(C'\fR.
13896 .IP "\fB\-multcost=\fR\fInumber\fR" 4
13897 .IX Item "-multcost=number"
13898 Set the cost to assume for a multiply insn.
13899 .IP "\fB\-mdiv=\fR\fIstrategy\fR" 4
13900 .IX Item "-mdiv=strategy"
13901 Set the division strategy to use for SHmedia code.  \fIstrategy\fR must be
13902 one of: call, call2, fp, inv, inv:minlat, inv20u, inv20l, inv:call,
13903 inv:call2, inv:fp .
13904 \&\*(L"fp\*(R" performs the operation in floating point.  This has a very high latency,
13905 but needs only a few instructions, so it might be a good choice if
13906 your code has enough easily exploitable \s-1ILP\s0 to allow the compiler to
13907 schedule the floating point instructions together with other instructions.
13908 Division by zero causes a floating point exception.
13909 \&\*(L"inv\*(R" uses integer operations to calculate the inverse of the divisor,
13910 and then multiplies the dividend with the inverse.  This strategy allows
13911 cse and hoisting of the inverse calculation.  Division by zero calculates
13912 an unspecified result, but does not trap.
13913 \&\*(L"inv:minlat\*(R" is a variant of \*(L"inv\*(R" where if no cse / hoisting opportunities
13914 have been found, or if the entire operation has been hoisted to the same
13915 place, the last stages of the inverse calculation are intertwined with the
13916 final multiply to reduce the overall latency, at the expense of using a few
13917 more instructions, and thus offering fewer scheduling opportunities with
13918 other code.
13919 \&\*(L"call\*(R" calls a library function that usually implements the inv:minlat
13920 strategy.
13921 This gives high code density for m5\-*media\-nofpu compilations.
13922 \&\*(L"call2\*(R" uses a different entry point of the same library function, where it
13923 assumes that a pointer to a lookup table has already been set up, which
13924 exposes the pointer load to cse / code hoisting optimizations.
13925 \&\*(L"inv:call\*(R", \*(L"inv:call2\*(R" and \*(L"inv:fp\*(R" all use the \*(L"inv\*(R" algorithm for initial
13926 code generation, but if the code stays unoptimized, revert to the \*(L"call\*(R",
13927 \&\*(L"call2\*(R", or \*(L"fp\*(R" strategies, respectively.  Note that the
13928 potentially-trapping side effect of division by zero is carried by a
13929 separate instruction, so it is possible that all the integer instructions
13930 are hoisted out, but the marker for the side effect stays where it is.
13931 A recombination to fp operations or a call is not possible in that case.
13932 \&\*(L"inv20u\*(R" and \*(L"inv20l\*(R" are variants of the \*(L"inv:minlat\*(R" strategy.  In the case
13933 that the inverse calculation was nor separated from the multiply, they speed
13934 up division where the dividend fits into 20 bits (plus sign where applicable),
13935 by inserting a test to skip a number of operations in this case; this test
13936 slows down the case of larger dividends.  inv20u assumes the case of a such
13937 a small dividend to be unlikely, and inv20l assumes it to be likely.
13938 .IP "\fB\-mdivsi3_libfunc=\fR\fIname\fR" 4
13939 .IX Item "-mdivsi3_libfunc=name"
13940 Set the name of the library function used for 32 bit signed division to
13941 \&\fIname\fR.  This only affect the name used in the call and inv:call
13942 division strategies, and the compiler will still expect the same
13943 sets of input/output/clobbered registers as if this option was not present.
13944 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
13945 .IX Item "-mfixed-range=register-range"
13946 Generate code treating the given register range as fixed registers.
13947 A fixed register is one that the register allocator can not use.  This is
13948 useful when compiling kernel code.  A register range is specified as
13949 two registers separated by a dash.  Multiple register ranges can be
13950 specified separated by a comma.
13951 .IP "\fB\-madjust\-unroll\fR" 4
13952 .IX Item "-madjust-unroll"
13953 Throttle unrolling to avoid thrashing target registers.
13954 This option only has an effect if the gcc code base supports the
13955 \&\s-1TARGET_ADJUST_UNROLL_MAX\s0 target hook.
13956 .IP "\fB\-mindexed\-addressing\fR" 4
13957 .IX Item "-mindexed-addressing"
13958 Enable the use of the indexed addressing mode for SHmedia32/SHcompact.
13959 This is only safe if the hardware and/or \s-1OS\s0 implement 32 bit wrap-around
13960 semantics for the indexed addressing mode.  The architecture allows the
13961 implementation of processors with 64 bit \s-1MMU\s0, which the \s-1OS\s0 could use to
13962 get 32 bit addressing, but since no current hardware implementation supports
13963 this or any other way to make the indexed addressing mode safe to use in
13964 the 32 bit \s-1ABI\s0, the default is \-mno\-indexed\-addressing.
13965 .IP "\fB\-mgettrcost=\fR\fInumber\fR" 4
13966 .IX Item "-mgettrcost=number"
13967 Set the cost assumed for the gettr instruction to \fInumber\fR.
13968 The default is 2 if \fB\-mpt\-fixed\fR is in effect, 100 otherwise.
13969 .IP "\fB\-mpt\-fixed\fR" 4
13970 .IX Item "-mpt-fixed"
13971 Assume pt* instructions won't trap.  This will generally generate better
13972 scheduled code, but is unsafe on current hardware.  The current architecture
13973 definition says that ptabs and ptrel trap when the target anded with 3 is 3.
13974 This has the unintentional effect of making it unsafe to schedule ptabs /
13975 ptrel before a branch, or hoist it out of a loop.  For example,
13976 _\|_do_global_ctors, a part of libgcc that runs constructors at program
13977 startup, calls functions in a list which is delimited by \-1.  With the
13978 \&\-mpt\-fixed option, the ptabs will be done before testing against \-1.
13979 That means that all the constructors will be run a bit quicker, but when
13980 the loop comes to the end of the list, the program crashes because ptabs
13981 loads \-1 into a target register.  Since this option is unsafe for any
13982 hardware implementing the current architecture specification, the default
13983 is \-mno\-pt\-fixed.  Unless the user specifies a specific cost with
13984 \&\fB\-mgettrcost\fR, \-mno\-pt\-fixed also implies \fB\-mgettrcost=100\fR;
13985 this deters register allocation using target registers for storing
13986 ordinary integers.
13987 .IP "\fB\-minvalid\-symbols\fR" 4
13988 .IX Item "-minvalid-symbols"
13989 Assume symbols might be invalid.  Ordinary function symbols generated by
13990 the compiler will always be valid to load with movi/shori/ptabs or
13991 movi/shori/ptrel, but with assembler and/or linker tricks it is possible
13992 to generate symbols that will cause ptabs / ptrel to trap.
13993 This option is only meaningful when \fB\-mno\-pt\-fixed\fR is in effect.
13994 It will then prevent cross-basic-block cse, hoisting and most scheduling
13995 of symbol loads.  The default is \fB\-mno\-invalid\-symbols\fR.
13996 .PP
13997 \fI\s-1SPARC\s0 Options\fR
13998 .IX Subsection "SPARC Options"
13999 .PP
14000 These \fB\-m\fR options are supported on the \s-1SPARC:\s0
14001 .IP "\fB\-mno\-app\-regs\fR" 4
14002 .IX Item "-mno-app-regs"
14003 .PD 0
14004 .IP "\fB\-mapp\-regs\fR" 4
14005 .IX Item "-mapp-regs"
14006 .PD
14007 Specify \fB\-mapp\-regs\fR to generate output using the global registers
14008 2 through 4, which the \s-1SPARC\s0 \s-1SVR4\s0 \s-1ABI\s0 reserves for applications.  This
14009 is the default.
14010 .Sp
14011 To be fully \s-1SVR4\s0 \s-1ABI\s0 compliant at the cost of some performance loss,
14012 specify \fB\-mno\-app\-regs\fR.  You should compile libraries and system
14013 software with this option.
14014 .IP "\fB\-mfpu\fR" 4
14015 .IX Item "-mfpu"
14016 .PD 0
14017 .IP "\fB\-mhard\-float\fR" 4
14018 .IX Item "-mhard-float"
14019 .PD
14020 Generate output containing floating point instructions.  This is the
14021 default.
14022 .IP "\fB\-mno\-fpu\fR" 4
14023 .IX Item "-mno-fpu"
14024 .PD 0
14025 .IP "\fB\-msoft\-float\fR" 4
14026 .IX Item "-msoft-float"
14027 .PD
14028 Generate output containing library calls for floating point.
14029 \&\fBWarning:\fR the requisite libraries are not available for all \s-1SPARC\s0
14030 targets.  Normally the facilities of the machine's usual C compiler are
14031 used, but this cannot be done directly in cross-compilation.  You must make
14032 your own arrangements to provide suitable library functions for
14033 cross-compilation.  The embedded targets \fBsparc\-*\-aout\fR and
14034 \&\fBsparclite\-*\-*\fR do provide software floating point support.
14035 .Sp
14036 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
14037 therefore, it is only useful if you compile \fIall\fR of a program with
14038 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
14039 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
14040 this to work.
14041 .IP "\fB\-mhard\-quad\-float\fR" 4
14042 .IX Item "-mhard-quad-float"
14043 Generate output containing quad-word (long double) floating point
14044 instructions.
14045 .IP "\fB\-msoft\-quad\-float\fR" 4
14046 .IX Item "-msoft-quad-float"
14047 Generate output containing library calls for quad-word (long double)
14048 floating point instructions.  The functions called are those specified
14049 in the \s-1SPARC\s0 \s-1ABI\s0.  This is the default.
14050 .Sp
14051 As of this writing, there are no \s-1SPARC\s0 implementations that have hardware
14052 support for the quad-word floating point instructions.  They all invoke
14053 a trap handler for one of these instructions, and then the trap handler
14054 emulates the effect of the instruction.  Because of the trap handler overhead,
14055 this is much slower than calling the \s-1ABI\s0 library routines.  Thus the
14056 \&\fB\-msoft\-quad\-float\fR option is the default.
14057 .IP "\fB\-mno\-unaligned\-doubles\fR" 4
14058 .IX Item "-mno-unaligned-doubles"
14059 .PD 0
14060 .IP "\fB\-munaligned\-doubles\fR" 4
14061 .IX Item "-munaligned-doubles"
14062 .PD
14063 Assume that doubles have 8 byte alignment.  This is the default.
14064 .Sp
14065 With \fB\-munaligned\-doubles\fR, \s-1GCC\s0 assumes that doubles have 8 byte
14066 alignment only if they are contained in another type, or if they have an
14067 absolute address.  Otherwise, it assumes they have 4 byte alignment.
14068 Specifying this option avoids some rare compatibility problems with code
14069 generated by other compilers.  It is not the default because it results
14070 in a performance loss, especially for floating point code.
14071 .IP "\fB\-mno\-faster\-structs\fR" 4
14072 .IX Item "-mno-faster-structs"
14073 .PD 0
14074 .IP "\fB\-mfaster\-structs\fR" 4
14075 .IX Item "-mfaster-structs"
14076 .PD
14077 With \fB\-mfaster\-structs\fR, the compiler assumes that structures
14078 should have 8 byte alignment.  This enables the use of pairs of
14079 \&\f(CW\*(C`ldd\*(C'\fR and \f(CW\*(C`std\*(C'\fR instructions for copies in structure
14080 assignment, in place of twice as many \f(CW\*(C`ld\*(C'\fR and \f(CW\*(C`st\*(C'\fR pairs.
14081 However, the use of this changed alignment directly violates the \s-1SPARC\s0
14082 \&\s-1ABI\s0.  Thus, it's intended only for use on targets where the developer
14083 acknowledges that their resulting code will not be directly in line with
14084 the rules of the \s-1ABI\s0.
14085 .IP "\fB\-mimpure\-text\fR" 4
14086 .IX Item "-mimpure-text"
14087 \&\fB\-mimpure\-text\fR, used in addition to \fB\-shared\fR, tells
14088 the compiler to not pass \fB\-z text\fR to the linker when linking a
14089 shared object.  Using this option, you can link position-dependent
14090 code into a shared object.
14091 .Sp
14092 \&\fB\-mimpure\-text\fR suppresses the \*(L"relocations remain against
14093 allocatable but non-writable sections\*(R" linker error message.
14094 However, the necessary relocations will trigger copy-on-write, and the
14095 shared object is not actually shared across processes.  Instead of
14096 using \fB\-mimpure\-text\fR, you should compile all source code with
14097 \&\fB\-fpic\fR or \fB\-fPIC\fR.
14098 .Sp
14099 This option is only available on SunOS and Solaris.
14100 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
14101 .IX Item "-mcpu=cpu_type"
14102 Set the instruction set, register set, and instruction scheduling parameters
14103 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
14104 \&\fBv7\fR, \fBcypress\fR, \fBv8\fR, \fBsupersparc\fR, \fBsparclite\fR,
14105 \&\fBf930\fR, \fBf934\fR, \fBhypersparc\fR, \fBsparclite86x\fR,
14106 \&\fBsparclet\fR, \fBtsc701\fR, \fBv9\fR, \fBultrasparc\fR,
14107 \&\fBultrasparc3\fR, \fBniagara\fR and \fBniagara2\fR.
14108 .Sp
14109 Default instruction scheduling parameters are used for values that select
14110 an architecture and not an implementation.  These are \fBv7\fR, \fBv8\fR,
14111 \&\fBsparclite\fR, \fBsparclet\fR, \fBv9\fR.
14112 .Sp
14113 Here is a list of each supported architecture and their supported
14114 implementations.
14115 .Sp
14116 .Vb 5
14117 \&            v7:             cypress
14118 \&            v8:             supersparc, hypersparc
14119 \&            sparclite:      f930, f934, sparclite86x
14120 \&            sparclet:       tsc701
14121 \&            v9:             ultrasparc, ultrasparc3, niagara, niagara2
14122 .Ve
14123 .Sp
14124 By default (unless configured otherwise), \s-1GCC\s0 generates code for the V7
14125 variant of the \s-1SPARC\s0 architecture.  With \fB\-mcpu=cypress\fR, the compiler
14126 additionally optimizes it for the Cypress \s-1CY7C602\s0 chip, as used in the
14127 SPARCStation/SPARCServer 3xx series.  This is also appropriate for the older
14128 SPARCStation 1, 2, \s-1IPX\s0 etc.
14129 .Sp
14130 With \fB\-mcpu=v8\fR, \s-1GCC\s0 generates code for the V8 variant of the \s-1SPARC\s0
14131 architecture.  The only difference from V7 code is that the compiler emits
14132 the integer multiply and integer divide instructions which exist in \s-1SPARC\-V8\s0
14133 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=supersparc\fR, the compiler additionally
14134 optimizes it for the SuperSPARC chip, as used in the SPARCStation 10, 1000 and
14135 2000 series.
14136 .Sp
14137 With \fB\-mcpu=sparclite\fR, \s-1GCC\s0 generates code for the SPARClite variant of
14138 the \s-1SPARC\s0 architecture.  This adds the integer multiply, integer divide step
14139 and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClite but not in \s-1SPARC\-V7\s0.
14140 With \fB\-mcpu=f930\fR, the compiler additionally optimizes it for the
14141 Fujitsu \s-1MB86930\s0 chip, which is the original SPARClite, with no \s-1FPU\s0.  With
14142 \&\fB\-mcpu=f934\fR, the compiler additionally optimizes it for the Fujitsu
14143 \&\s-1MB86934\s0 chip, which is the more recent SPARClite with \s-1FPU\s0.
14144 .Sp
14145 With \fB\-mcpu=sparclet\fR, \s-1GCC\s0 generates code for the SPARClet variant of
14146 the \s-1SPARC\s0 architecture.  This adds the integer multiply, multiply/accumulate,
14147 integer divide step and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClet
14148 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=tsc701\fR, the compiler additionally
14149 optimizes it for the \s-1TEMIC\s0 SPARClet chip.
14150 .Sp
14151 With \fB\-mcpu=v9\fR, \s-1GCC\s0 generates code for the V9 variant of the \s-1SPARC\s0
14152 architecture.  This adds 64\-bit integer and floating-point move instructions,
14153 3 additional floating-point condition code registers and conditional move
14154 instructions.  With \fB\-mcpu=ultrasparc\fR, the compiler additionally
14155 optimizes it for the Sun UltraSPARC I/II/IIi chips.  With
14156 \&\fB\-mcpu=ultrasparc3\fR, the compiler additionally optimizes it for the
14157 Sun UltraSPARC III/III+/IIIi/IIIi+/IV/IV+ chips.  With
14158 \&\fB\-mcpu=niagara\fR, the compiler additionally optimizes it for
14159 Sun UltraSPARC T1 chips.  With \fB\-mcpu=niagara2\fR, the compiler
14160 additionally optimizes it for Sun UltraSPARC T2 chips.
14161 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
14162 .IX Item "-mtune=cpu_type"
14163 Set the instruction scheduling parameters for machine type
14164 \&\fIcpu_type\fR, but do not set the instruction set or register set that the
14165 option \fB\-mcpu=\fR\fIcpu_type\fR would.
14166 .Sp
14167 The same values for \fB\-mcpu=\fR\fIcpu_type\fR can be used for
14168 \&\fB\-mtune=\fR\fIcpu_type\fR, but the only useful values are those
14169 that select a particular cpu implementation.  Those are \fBcypress\fR,
14170 \&\fBsupersparc\fR, \fBhypersparc\fR, \fBf930\fR, \fBf934\fR,
14171 \&\fBsparclite86x\fR, \fBtsc701\fR, \fBultrasparc\fR,
14172 \&\fBultrasparc3\fR, \fBniagara\fR, and \fBniagara2\fR.
14173 .IP "\fB\-mv8plus\fR" 4
14174 .IX Item "-mv8plus"
14175 .PD 0
14176 .IP "\fB\-mno\-v8plus\fR" 4
14177 .IX Item "-mno-v8plus"
14178 .PD
14179 With \fB\-mv8plus\fR, \s-1GCC\s0 generates code for the \s-1SPARC\-V8+\s0 \s-1ABI\s0.  The
14180 difference from the V8 \s-1ABI\s0 is that the global and out registers are
14181 considered 64\-bit wide.  This is enabled by default on Solaris in 32\-bit
14182 mode for all \s-1SPARC\-V9\s0 processors.
14183 .IP "\fB\-mvis\fR" 4
14184 .IX Item "-mvis"
14185 .PD 0
14186 .IP "\fB\-mno\-vis\fR" 4
14187 .IX Item "-mno-vis"
14188 .PD
14189 With \fB\-mvis\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
14190 Visual Instruction Set extensions.  The default is \fB\-mno\-vis\fR.
14191 .PP
14192 These \fB\-m\fR options are supported in addition to the above
14193 on \s-1SPARC\-V9\s0 processors in 64\-bit environments:
14194 .IP "\fB\-mlittle\-endian\fR" 4
14195 .IX Item "-mlittle-endian"
14196 Generate code for a processor running in little-endian mode.  It is only
14197 available for a few configurations and most notably not on Solaris and Linux.
14198 .IP "\fB\-m32\fR" 4
14199 .IX Item "-m32"
14200 .PD 0
14201 .IP "\fB\-m64\fR" 4
14202 .IX Item "-m64"
14203 .PD
14204 Generate code for a 32\-bit or 64\-bit environment.
14205 The 32\-bit environment sets int, long and pointer to 32 bits.
14206 The 64\-bit environment sets int to 32 bits and long and pointer
14207 to 64 bits.
14208 .IP "\fB\-mcmodel=medlow\fR" 4
14209 .IX Item "-mcmodel=medlow"
14210 Generate code for the Medium/Low code model: 64\-bit addresses, programs
14211 must be linked in the low 32 bits of memory.  Programs can be statically
14212 or dynamically linked.
14213 .IP "\fB\-mcmodel=medmid\fR" 4
14214 .IX Item "-mcmodel=medmid"
14215 Generate code for the Medium/Middle code model: 64\-bit addresses, programs
14216 must be linked in the low 44 bits of memory, the text and data segments must
14217 be less than 2GB in size and the data segment must be located within 2GB of
14218 the text segment.
14219 .IP "\fB\-mcmodel=medany\fR" 4
14220 .IX Item "-mcmodel=medany"
14221 Generate code for the Medium/Anywhere code model: 64\-bit addresses, programs
14222 may be linked anywhere in memory, the text and data segments must be less
14223 than 2GB in size and the data segment must be located within 2GB of the
14224 text segment.
14225 .IP "\fB\-mcmodel=embmedany\fR" 4
14226 .IX Item "-mcmodel=embmedany"
14227 Generate code for the Medium/Anywhere code model for embedded systems:
14228 64\-bit addresses, the text and data segments must be less than 2GB in
14229 size, both starting anywhere in memory (determined at link time).  The
14230 global register \f(CW%g4\fR points to the base of the data segment.  Programs
14231 are statically linked and \s-1PIC\s0 is not supported.
14232 .IP "\fB\-mstack\-bias\fR" 4
14233 .IX Item "-mstack-bias"
14234 .PD 0
14235 .IP "\fB\-mno\-stack\-bias\fR" 4
14236 .IX Item "-mno-stack-bias"
14237 .PD
14238 With \fB\-mstack\-bias\fR, \s-1GCC\s0 assumes that the stack pointer, and
14239 frame pointer if present, are offset by \-2047 which must be added back
14240 when making stack frame references.  This is the default in 64\-bit mode.
14241 Otherwise, assume no such offset is present.
14242 .PP
14243 These switches are supported in addition to the above on Solaris:
14244 .IP "\fB\-threads\fR" 4
14245 .IX Item "-threads"
14246 Add support for multithreading using the Solaris threads library.  This
14247 option sets flags for both the preprocessor and linker.  This option does
14248 not affect the thread safety of object code produced by the compiler or
14249 that of libraries supplied with it.
14250 .IP "\fB\-pthreads\fR" 4
14251 .IX Item "-pthreads"
14252 Add support for multithreading using the \s-1POSIX\s0 threads library.  This
14253 option sets flags for both the preprocessor and linker.  This option does
14254 not affect the thread safety of object code produced  by the compiler or
14255 that of libraries supplied with it.
14256 .IP "\fB\-pthread\fR" 4
14257 .IX Item "-pthread"
14258 This is a synonym for \fB\-pthreads\fR.
14259 .PP
14260 \fI\s-1SPU\s0 Options\fR
14261 .IX Subsection "SPU Options"
14262 .PP
14263 These \fB\-m\fR options are supported on the \s-1SPU:\s0
14264 .IP "\fB\-mwarn\-reloc\fR" 4
14265 .IX Item "-mwarn-reloc"
14266 .PD 0
14267 .IP "\fB\-merror\-reloc\fR" 4
14268 .IX Item "-merror-reloc"
14269 .PD
14270 The loader for \s-1SPU\s0 does not handle dynamic relocations.  By default, \s-1GCC\s0
14271 will give an error when it generates code that requires a dynamic
14272 relocation.  \fB\-mno\-error\-reloc\fR disables the error,
14273 \&\fB\-mwarn\-reloc\fR will generate a warning instead.
14274 .IP "\fB\-msafe\-dma\fR" 4
14275 .IX Item "-msafe-dma"
14276 .PD 0
14277 .IP "\fB\-munsafe\-dma\fR" 4
14278 .IX Item "-munsafe-dma"
14279 .PD
14280 Instructions which initiate or test completion of \s-1DMA\s0 must not be
14281 reordered with respect to loads and stores of the memory which is being
14282 accessed.  Users typically address this problem using the volatile
14283 keyword, but that can lead to inefficient code in places where the
14284 memory is known to not change.  Rather than mark the memory as volatile
14285 we treat the \s-1DMA\s0 instructions as potentially effecting all memory.  With
14286 \&\fB\-munsafe\-dma\fR users must use the volatile keyword to protect
14287 memory accesses.
14288 .IP "\fB\-mbranch\-hints\fR" 4
14289 .IX Item "-mbranch-hints"
14290 By default, \s-1GCC\s0 will generate a branch hint instruction to avoid
14291 pipeline stalls for always taken or probably taken branches.  A hint
14292 will not be generated closer than 8 instructions away from its branch.
14293 There is little reason to disable them, except for debugging purposes,
14294 or to make an object a little bit smaller.
14295 .IP "\fB\-msmall\-mem\fR" 4
14296 .IX Item "-msmall-mem"
14297 .PD 0
14298 .IP "\fB\-mlarge\-mem\fR" 4
14299 .IX Item "-mlarge-mem"
14300 .PD
14301 By default, \s-1GCC\s0 generates code assuming that addresses are never larger
14302 than 18 bits.  With \fB\-mlarge\-mem\fR code is generated that assumes
14303 a full 32 bit address.
14304 .IP "\fB\-mstdmain\fR" 4
14305 .IX Item "-mstdmain"
14306 By default, \s-1GCC\s0 links against startup code that assumes the SPU-style
14307 main function interface (which has an unconventional parameter list).
14308 With \fB\-mstdmain\fR, \s-1GCC\s0 will link your program against startup
14309 code that assumes a C99\-style interface to \f(CW\*(C`main\*(C'\fR, including a
14310 local copy of \f(CW\*(C`argv\*(C'\fR strings.
14311 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
14312 .IX Item "-mfixed-range=register-range"
14313 Generate code treating the given register range as fixed registers.
14314 A fixed register is one that the register allocator can not use.  This is
14315 useful when compiling kernel code.  A register range is specified as
14316 two registers separated by a dash.  Multiple register ranges can be
14317 specified separated by a comma.
14318 .IP "\fB\-mdual\-nops\fR" 4
14319 .IX Item "-mdual-nops"
14320 .PD 0
14321 .IP "\fB\-mdual\-nops=\fR\fIn\fR" 4
14322 .IX Item "-mdual-nops=n"
14323 .PD
14324 By default, \s-1GCC\s0 will insert nops to increase dual issue when it expects
14325 it to increase performance.  \fIn\fR can be a value from 0 to 10.  A
14326 smaller \fIn\fR will insert fewer nops.  10 is the default, 0 is the
14327 same as \fB\-mno\-dual\-nops\fR.  Disabled with \fB\-Os\fR.
14328 .IP "\fB\-mhint\-max\-nops=\fR\fIn\fR" 4
14329 .IX Item "-mhint-max-nops=n"
14330 Maximum number of nops to insert for a branch hint.  A branch hint must
14331 be at least 8 instructions away from the branch it is effecting.  \s-1GCC\s0
14332 will insert up to \fIn\fR nops to enforce this, otherwise it will not
14333 generate the branch hint.
14334 .IP "\fB\-mhint\-max\-distance=\fR\fIn\fR" 4
14335 .IX Item "-mhint-max-distance=n"
14336 The encoding of the branch hint instruction limits the hint to be within
14337 256 instructions of the branch it is effecting.  By default, \s-1GCC\s0 makes
14338 sure it is within 125.
14339 .IP "\fB\-msafe\-hints\fR" 4
14340 .IX Item "-msafe-hints"
14341 Work around a hardware bug which causes the \s-1SPU\s0 to stall indefinitely.
14342 By default, \s-1GCC\s0 will insert the \f(CW\*(C`hbrp\*(C'\fR instruction to make sure
14343 this stall won't happen.
14344 .PP
14345 \fIOptions for System V\fR
14346 .IX Subsection "Options for System V"
14347 .PP
14348 These additional options are available on System V Release 4 for
14349 compatibility with other compilers on those systems:
14350 .IP "\fB\-G\fR" 4
14351 .IX Item "-G"
14352 Create a shared object.
14353 It is recommended that \fB\-symbolic\fR or \fB\-shared\fR be used instead.
14354 .IP "\fB\-Qy\fR" 4
14355 .IX Item "-Qy"
14356 Identify the versions of each tool used by the compiler, in a
14357 \&\f(CW\*(C`.ident\*(C'\fR assembler directive in the output.
14358 .IP "\fB\-Qn\fR" 4
14359 .IX Item "-Qn"
14360 Refrain from adding \f(CW\*(C`.ident\*(C'\fR directives to the output file (this is
14361 the default).
14362 .IP "\fB\-YP,\fR\fIdirs\fR" 4
14363 .IX Item "-YP,dirs"
14364 Search the directories \fIdirs\fR, and no others, for libraries
14365 specified with \fB\-l\fR.
14366 .IP "\fB\-Ym,\fR\fIdir\fR" 4
14367 .IX Item "-Ym,dir"
14368 Look in the directory \fIdir\fR to find the M4 preprocessor.
14369 The assembler uses this option.
14370 .PP
14371 \fIV850 Options\fR
14372 .IX Subsection "V850 Options"
14373 .PP
14374 These \fB\-m\fR options are defined for V850 implementations:
14375 .IP "\fB\-mlong\-calls\fR" 4
14376 .IX Item "-mlong-calls"
14377 .PD 0
14378 .IP "\fB\-mno\-long\-calls\fR" 4
14379 .IX Item "-mno-long-calls"
14380 .PD
14381 Treat all calls as being far away (near).  If calls are assumed to be
14382 far away, the compiler will always load the functions address up into a
14383 register, and call indirect through the pointer.
14384 .IP "\fB\-mno\-ep\fR" 4
14385 .IX Item "-mno-ep"
14386 .PD 0
14387 .IP "\fB\-mep\fR" 4
14388 .IX Item "-mep"
14389 .PD
14390 Do not optimize (do optimize) basic blocks that use the same index
14391 pointer 4 or more times to copy pointer into the \f(CW\*(C`ep\*(C'\fR register, and
14392 use the shorter \f(CW\*(C`sld\*(C'\fR and \f(CW\*(C`sst\*(C'\fR instructions.  The \fB\-mep\fR
14393 option is on by default if you optimize.
14394 .IP "\fB\-mno\-prolog\-function\fR" 4
14395 .IX Item "-mno-prolog-function"
14396 .PD 0
14397 .IP "\fB\-mprolog\-function\fR" 4
14398 .IX Item "-mprolog-function"
14399 .PD
14400 Do not use (do use) external functions to save and restore registers
14401 at the prologue and epilogue of a function.  The external functions
14402 are slower, but use less code space if more than one function saves
14403 the same number of registers.  The \fB\-mprolog\-function\fR option
14404 is on by default if you optimize.
14405 .IP "\fB\-mspace\fR" 4
14406 .IX Item "-mspace"
14407 Try to make the code as small as possible.  At present, this just turns
14408 on the \fB\-mep\fR and \fB\-mprolog\-function\fR options.
14409 .IP "\fB\-mtda=\fR\fIn\fR" 4
14410 .IX Item "-mtda=n"
14411 Put static or global variables whose size is \fIn\fR bytes or less into
14412 the tiny data area that register \f(CW\*(C`ep\*(C'\fR points to.  The tiny data
14413 area can hold up to 256 bytes in total (128 bytes for byte references).
14414 .IP "\fB\-msda=\fR\fIn\fR" 4
14415 .IX Item "-msda=n"
14416 Put static or global variables whose size is \fIn\fR bytes or less into
14417 the small data area that register \f(CW\*(C`gp\*(C'\fR points to.  The small data
14418 area can hold up to 64 kilobytes.
14419 .IP "\fB\-mzda=\fR\fIn\fR" 4
14420 .IX Item "-mzda=n"
14421 Put static or global variables whose size is \fIn\fR bytes or less into
14422 the first 32 kilobytes of memory.
14423 .IP "\fB\-mv850\fR" 4
14424 .IX Item "-mv850"
14425 Specify that the target processor is the V850.
14426 .IP "\fB\-mbig\-switch\fR" 4
14427 .IX Item "-mbig-switch"
14428 Generate code suitable for big switch tables.  Use this option only if
14429 the assembler/linker complain about out of range branches within a switch
14430 table.
14431 .IP "\fB\-mapp\-regs\fR" 4
14432 .IX Item "-mapp-regs"
14433 This option will cause r2 and r5 to be used in the code generated by
14434 the compiler.  This setting is the default.
14435 .IP "\fB\-mno\-app\-regs\fR" 4
14436 .IX Item "-mno-app-regs"
14437 This option will cause r2 and r5 to be treated as fixed registers.
14438 .IP "\fB\-mv850e1\fR" 4
14439 .IX Item "-mv850e1"
14440 Specify that the target processor is the V850E1.  The preprocessor
14441 constants \fB_\|_v850e1_\|_\fR and \fB_\|_v850e_\|_\fR will be defined if
14442 this option is used.
14443 .IP "\fB\-mv850e\fR" 4
14444 .IX Item "-mv850e"
14445 Specify that the target processor is the V850E.  The preprocessor
14446 constant \fB_\|_v850e_\|_\fR will be defined if this option is used.
14447 .Sp
14448 If neither \fB\-mv850\fR nor \fB\-mv850e\fR nor \fB\-mv850e1\fR
14449 are defined then a default target processor will be chosen and the
14450 relevant \fB_\|_v850*_\|_\fR preprocessor constant will be defined.
14451 .Sp
14452 The preprocessor constants \fB_\|_v850\fR and \fB_\|_v851_\|_\fR are always
14453 defined, regardless of which processor variant is the target.
14454 .IP "\fB\-mdisable\-callt\fR" 4
14455 .IX Item "-mdisable-callt"
14456 This option will suppress generation of the \s-1CALLT\s0 instruction for the
14457 v850e and v850e1 flavors of the v850 architecture.  The default is
14458 \&\fB\-mno\-disable\-callt\fR which allows the \s-1CALLT\s0 instruction to be used.
14459 .PP
14460 \fI\s-1VAX\s0 Options\fR
14461 .IX Subsection "VAX Options"
14462 .PP
14463 These \fB\-m\fR options are defined for the \s-1VAX:\s0
14464 .IP "\fB\-munix\fR" 4
14465 .IX Item "-munix"
14466 Do not output certain jump instructions (\f(CW\*(C`aobleq\*(C'\fR and so on)
14467 that the Unix assembler for the \s-1VAX\s0 cannot handle across long
14468 ranges.
14469 .IP "\fB\-mgnu\fR" 4
14470 .IX Item "-mgnu"
14471 Do output those jump instructions, on the assumption that you
14472 will assemble with the \s-1GNU\s0 assembler.
14473 .IP "\fB\-mg\fR" 4
14474 .IX Item "-mg"
14475 Output code for g\-format floating point numbers instead of d\-format.
14476 .PP
14477 \fIVxWorks Options\fR
14478 .IX Subsection "VxWorks Options"
14479 .PP
14480 The options in this section are defined for all VxWorks targets.
14481 Options specific to the target hardware are listed with the other
14482 options for that target.
14483 .IP "\fB\-mrtp\fR" 4
14484 .IX Item "-mrtp"
14485 \&\s-1GCC\s0 can generate code for both VxWorks kernels and real time processes
14486 (RTPs).  This option switches from the former to the latter.  It also
14487 defines the preprocessor macro \f(CW\*(C`_\|_RTP_\|_\*(C'\fR.
14488 .IP "\fB\-non\-static\fR" 4
14489 .IX Item "-non-static"
14490 Link an \s-1RTP\s0 executable against shared libraries rather than static
14491 libraries.  The options \fB\-static\fR and \fB\-shared\fR can
14492 also be used for RTPs; \fB\-static\fR
14493 is the default.
14494 .IP "\fB\-Bstatic\fR" 4
14495 .IX Item "-Bstatic"
14496 .PD 0
14497 .IP "\fB\-Bdynamic\fR" 4
14498 .IX Item "-Bdynamic"
14499 .PD
14500 These options are passed down to the linker.  They are defined for
14501 compatibility with Diab.
14502 .IP "\fB\-Xbind\-lazy\fR" 4
14503 .IX Item "-Xbind-lazy"
14504 Enable lazy binding of function calls.  This option is equivalent to
14505 \&\fB\-Wl,\-z,now\fR and is defined for compatibility with Diab.
14506 .IP "\fB\-Xbind\-now\fR" 4
14507 .IX Item "-Xbind-now"
14508 Disable lazy binding of function calls.  This option is the default and
14509 is defined for compatibility with Diab.
14510 .PP
14511 \fIx86\-64 Options\fR
14512 .IX Subsection "x86-64 Options"
14513 .PP
14514 These are listed under
14515 .PP
14516 \fIXstormy16 Options\fR
14517 .IX Subsection "Xstormy16 Options"
14518 .PP
14519 These options are defined for Xstormy16:
14520 .IP "\fB\-msim\fR" 4
14521 .IX Item "-msim"
14522 Choose startup files and linker script suitable for the simulator.
14523 .PP
14524 \fIXtensa Options\fR
14525 .IX Subsection "Xtensa Options"
14526 .PP
14527 These options are supported for Xtensa targets:
14528 .IP "\fB\-mconst16\fR" 4
14529 .IX Item "-mconst16"
14530 .PD 0
14531 .IP "\fB\-mno\-const16\fR" 4
14532 .IX Item "-mno-const16"
14533 .PD
14534 Enable or disable use of \f(CW\*(C`CONST16\*(C'\fR instructions for loading
14535 constant values.  The \f(CW\*(C`CONST16\*(C'\fR instruction is currently not a
14536 standard option from Tensilica.  When enabled, \f(CW\*(C`CONST16\*(C'\fR
14537 instructions are always used in place of the standard \f(CW\*(C`L32R\*(C'\fR
14538 instructions.  The use of \f(CW\*(C`CONST16\*(C'\fR is enabled by default only if
14539 the \f(CW\*(C`L32R\*(C'\fR instruction is not available.
14540 .IP "\fB\-mfused\-madd\fR" 4
14541 .IX Item "-mfused-madd"
14542 .PD 0
14543 .IP "\fB\-mno\-fused\-madd\fR" 4
14544 .IX Item "-mno-fused-madd"
14545 .PD
14546 Enable or disable use of fused multiply/add and multiply/subtract
14547 instructions in the floating-point option.  This has no effect if the
14548 floating-point option is not also enabled.  Disabling fused multiply/add
14549 and multiply/subtract instructions forces the compiler to use separate
14550 instructions for the multiply and add/subtract operations.  This may be
14551 desirable in some cases where strict \s-1IEEE\s0 754\-compliant results are
14552 required: the fused multiply add/subtract instructions do not round the
14553 intermediate result, thereby producing results with \fImore\fR bits of
14554 precision than specified by the \s-1IEEE\s0 standard.  Disabling fused multiply
14555 add/subtract instructions also ensures that the program output is not
14556 sensitive to the compiler's ability to combine multiply and add/subtract
14557 operations.
14558 .IP "\fB\-mserialize\-volatile\fR" 4
14559 .IX Item "-mserialize-volatile"
14560 .PD 0
14561 .IP "\fB\-mno\-serialize\-volatile\fR" 4
14562 .IX Item "-mno-serialize-volatile"
14563 .PD
14564 When this option is enabled, \s-1GCC\s0 inserts \f(CW\*(C`MEMW\*(C'\fR instructions before
14565 \&\f(CW\*(C`volatile\*(C'\fR memory references to guarantee sequential consistency.
14566 The default is \fB\-mserialize\-volatile\fR.  Use
14567 \&\fB\-mno\-serialize\-volatile\fR to omit the \f(CW\*(C`MEMW\*(C'\fR instructions.
14568 .IP "\fB\-mtext\-section\-literals\fR" 4
14569 .IX Item "-mtext-section-literals"
14570 .PD 0
14571 .IP "\fB\-mno\-text\-section\-literals\fR" 4
14572 .IX Item "-mno-text-section-literals"
14573 .PD
14574 Control the treatment of literal pools.  The default is
14575 \&\fB\-mno\-text\-section\-literals\fR, which places literals in a separate
14576 section in the output file.  This allows the literal pool to be placed
14577 in a data \s-1RAM/ROM\s0, and it also allows the linker to combine literal
14578 pools from separate object files to remove redundant literals and
14579 improve code size.  With \fB\-mtext\-section\-literals\fR, the literals
14580 are interspersed in the text section in order to keep them as close as
14581 possible to their references.  This may be necessary for large assembly
14582 files.
14583 .IP "\fB\-mtarget\-align\fR" 4
14584 .IX Item "-mtarget-align"
14585 .PD 0
14586 .IP "\fB\-mno\-target\-align\fR" 4
14587 .IX Item "-mno-target-align"
14588 .PD
14589 When this option is enabled, \s-1GCC\s0 instructs the assembler to
14590 automatically align instructions to reduce branch penalties at the
14591 expense of some code density.  The assembler attempts to widen density
14592 instructions to align branch targets and the instructions following call
14593 instructions.  If there are not enough preceding safe density
14594 instructions to align a target, no widening will be performed.  The
14595 default is \fB\-mtarget\-align\fR.  These options do not affect the
14596 treatment of auto-aligned instructions like \f(CW\*(C`LOOP\*(C'\fR, which the
14597 assembler will always align, either by widening density instructions or
14598 by inserting no-op instructions.
14599 .IP "\fB\-mlongcalls\fR" 4
14600 .IX Item "-mlongcalls"
14601 .PD 0
14602 .IP "\fB\-mno\-longcalls\fR" 4
14603 .IX Item "-mno-longcalls"
14604 .PD
14605 When this option is enabled, \s-1GCC\s0 instructs the assembler to translate
14606 direct calls to indirect calls unless it can determine that the target
14607 of a direct call is in the range allowed by the call instruction.  This
14608 translation typically occurs for calls to functions in other source
14609 files.  Specifically, the assembler translates a direct \f(CW\*(C`CALL\*(C'\fR
14610 instruction into an \f(CW\*(C`L32R\*(C'\fR followed by a \f(CW\*(C`CALLX\*(C'\fR instruction.
14611 The default is \fB\-mno\-longcalls\fR.  This option should be used in
14612 programs where the call target can potentially be out of range.  This
14613 option is implemented in the assembler, not the compiler, so the
14614 assembly code generated by \s-1GCC\s0 will still show direct call
14615 instructions\-\-\-look at the disassembled object code to see the actual
14616 instructions.  Note that the assembler will use an indirect call for
14617 every cross-file call, not just those that really will be out of range.
14618 .PP
14619 \fIzSeries Options\fR
14620 .IX Subsection "zSeries Options"
14621 .PP
14622 These are listed under
14623 .SS "Options for Code Generation Conventions"
14624 .IX Subsection "Options for Code Generation Conventions"
14625 These machine-independent options control the interface conventions
14626 used in code generation.
14627 .PP
14628 Most of them have both positive and negative forms; the negative form
14629 of \fB\-ffoo\fR would be \fB\-fno\-foo\fR.  In the table below, only
14630 one of the forms is listed\-\-\-the one which is not the default.  You
14631 can figure out the other form by either removing \fBno\-\fR or adding
14632 it.
14633 .IP "\fB\-fbounds\-check\fR" 4
14634 .IX Item "-fbounds-check"
14635 For front-ends that support it, generate additional code to check that
14636 indices used to access arrays are within the declared range.  This is
14637 currently only supported by the Java and Fortran front-ends, where
14638 this option defaults to true and false respectively.
14639 .IP "\fB\-ftrapv\fR" 4
14640 .IX Item "-ftrapv"
14641 This option generates traps for signed overflow on addition, subtraction,
14642 multiplication operations.
14643 .IP "\fB\-fwrapv\fR" 4
14644 .IX Item "-fwrapv"
14645 This option instructs the compiler to assume that signed arithmetic
14646 overflow of addition, subtraction and multiplication wraps around
14647 using twos-complement representation.  This flag enables some optimizations
14648 and disables others.  This option is enabled by default for the Java
14649 front-end, as required by the Java language specification.
14650 .IP "\fB\-fexceptions\fR" 4
14651 .IX Item "-fexceptions"
14652 Enable exception handling.  Generates extra code needed to propagate
14653 exceptions.  For some targets, this implies \s-1GCC\s0 will generate frame
14654 unwind information for all functions, which can produce significant data
14655 size overhead, although it does not affect execution.  If you do not
14656 specify this option, \s-1GCC\s0 will enable it by default for languages like
14657 \&\*(C+ which normally require exception handling, and disable it for
14658 languages like C that do not normally require it.  However, you may need
14659 to enable this option when compiling C code that needs to interoperate
14660 properly with exception handlers written in \*(C+.  You may also wish to
14661 disable this option if you are compiling older \*(C+ programs that don't
14662 use exception handling.
14663 .IP "\fB\-fnon\-call\-exceptions\fR" 4
14664 .IX Item "-fnon-call-exceptions"
14665 Generate code that allows trapping instructions to throw exceptions.
14666 Note that this requires platform-specific runtime support that does
14667 not exist everywhere.  Moreover, it only allows \fItrapping\fR
14668 instructions to throw exceptions, i.e. memory references or floating
14669 point instructions.  It does not allow exceptions to be thrown from
14670 arbitrary signal handlers such as \f(CW\*(C`SIGALRM\*(C'\fR.
14671 .IP "\fB\-funwind\-tables\fR" 4
14672 .IX Item "-funwind-tables"
14673 Similar to \fB\-fexceptions\fR, except that it will just generate any needed
14674 static data, but will not affect the generated code in any other way.
14675 You will normally not enable this option; instead, a language processor
14676 that needs this handling would enable it on your behalf.
14677 .IP "\fB\-fasynchronous\-unwind\-tables\fR" 4
14678 .IX Item "-fasynchronous-unwind-tables"
14679 Generate unwind table in dwarf2 format, if supported by target machine.  The
14680 table is exact at each instruction boundary, so it can be used for stack
14681 unwinding from asynchronous events (such as debugger or garbage collector).
14682 .IP "\fB\-fpcc\-struct\-return\fR" 4
14683 .IX Item "-fpcc-struct-return"
14684 Return \*(L"short\*(R" \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in memory like
14685 longer ones, rather than in registers.  This convention is less
14686 efficient, but it has the advantage of allowing intercallability between
14687 GCC-compiled files and files compiled with other compilers, particularly
14688 the Portable C Compiler (pcc).
14689 .Sp
14690 The precise convention for returning structures in memory depends
14691 on the target configuration macros.
14692 .Sp
14693 Short structures and unions are those whose size and alignment match
14694 that of some integer type.
14695 .Sp
14696 \&\fBWarning:\fR code compiled with the \fB\-fpcc\-struct\-return\fR
14697 switch is not binary compatible with code compiled with the
14698 \&\fB\-freg\-struct\-return\fR switch.
14699 Use it to conform to a non-default application binary interface.
14700 .IP "\fB\-freg\-struct\-return\fR" 4
14701 .IX Item "-freg-struct-return"
14702 Return \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in registers when possible.
14703 This is more efficient for small structures than
14704 \&\fB\-fpcc\-struct\-return\fR.
14705 .Sp
14706 If you specify neither \fB\-fpcc\-struct\-return\fR nor
14707 \&\fB\-freg\-struct\-return\fR, \s-1GCC\s0 defaults to whichever convention is
14708 standard for the target.  If there is no standard convention, \s-1GCC\s0
14709 defaults to \fB\-fpcc\-struct\-return\fR, except on targets where \s-1GCC\s0 is
14710 the principal compiler.  In those cases, we can choose the standard, and
14711 we chose the more efficient register return alternative.
14712 .Sp
14713 \&\fBWarning:\fR code compiled with the \fB\-freg\-struct\-return\fR
14714 switch is not binary compatible with code compiled with the
14715 \&\fB\-fpcc\-struct\-return\fR switch.
14716 Use it to conform to a non-default application binary interface.
14717 .IP "\fB\-fshort\-enums\fR" 4
14718 .IX Item "-fshort-enums"
14719 Allocate to an \f(CW\*(C`enum\*(C'\fR type only as many bytes as it needs for the
14720 declared range of possible values.  Specifically, the \f(CW\*(C`enum\*(C'\fR type
14721 will be equivalent to the smallest integer type which has enough room.
14722 .Sp
14723 \&\fBWarning:\fR the \fB\-fshort\-enums\fR switch causes \s-1GCC\s0 to generate
14724 code that is not binary compatible with code generated without that switch.
14725 Use it to conform to a non-default application binary interface.
14726 .IP "\fB\-fshort\-double\fR" 4
14727 .IX Item "-fshort-double"
14728 Use the same size for \f(CW\*(C`double\*(C'\fR as for \f(CW\*(C`float\*(C'\fR.
14729 .Sp
14730 \&\fBWarning:\fR the \fB\-fshort\-double\fR switch causes \s-1GCC\s0 to generate
14731 code that is not binary compatible with code generated without that switch.
14732 Use it to conform to a non-default application binary interface.
14733 .IP "\fB\-fshort\-wchar\fR" 4
14734 .IX Item "-fshort-wchar"
14735 Override the underlying type for \fBwchar_t\fR to be \fBshort
14736 unsigned int\fR instead of the default for the target.  This option is
14737 useful for building programs to run under \s-1WINE\s0.
14738 .Sp
14739 \&\fBWarning:\fR the \fB\-fshort\-wchar\fR switch causes \s-1GCC\s0 to generate
14740 code that is not binary compatible with code generated without that switch.
14741 Use it to conform to a non-default application binary interface.
14742 .IP "\fB\-fno\-common\fR" 4
14743 .IX Item "-fno-common"
14744 In C code, controls the placement of uninitialized global variables.
14745 Unix C compilers have traditionally permitted multiple definitions of
14746 such variables in different compilation units by placing the variables
14747 in a common block.  
14748 This is the behavior specified by \fB\-fcommon\fR, and is the default 
14749 for \s-1GCC\s0 on most targets.  
14750 On the other hand, this behavior is not required by \s-1ISO\s0 C, and on some
14751 targets may carry a speed or code size penalty on variable references.
14752 The \fB\-fno\-common\fR option specifies that the compiler should place 
14753 uninitialized global variables in the data section of the object file,
14754 rather than generating them as common blocks.
14755 This has the effect that if the same variable is declared 
14756 (without \f(CW\*(C`extern\*(C'\fR) in two different compilations,
14757 you will get a multiple-definition error when you link them.
14758 In this case, you must compile with \fB\-fcommon\fR instead.  
14759 Compiling with \fB\-fno\-common\fR is useful on targets for which 
14760 it provides better performance, or if you wish to verify that the
14761 program will work on other systems which always treat uninitialized
14762 variable declarations this way.
14763 .IP "\fB\-fno\-ident\fR" 4
14764 .IX Item "-fno-ident"
14765 Ignore the \fB#ident\fR directive.
14766 .IP "\fB\-finhibit\-size\-directive\fR" 4
14767 .IX Item "-finhibit-size-directive"
14768 Don't output a \f(CW\*(C`.size\*(C'\fR assembler directive, or anything else that
14769 would cause trouble if the function is split in the middle, and the
14770 two halves are placed at locations far apart in memory.  This option is
14771 used when compiling \fIcrtstuff.c\fR; you should not need to use it
14772 for anything else.
14773 .IP "\fB\-fverbose\-asm\fR" 4
14774 .IX Item "-fverbose-asm"
14775 Put extra commentary information in the generated assembly code to
14776 make it more readable.  This option is generally only of use to those
14777 who actually need to read the generated assembly code (perhaps while
14778 debugging the compiler itself).
14779 .Sp
14780 \&\fB\-fno\-verbose\-asm\fR, the default, causes the
14781 extra information to be omitted and is useful when comparing two assembler
14782 files.
14783 .IP "\fB\-frecord\-gcc\-switches\fR" 4
14784 .IX Item "-frecord-gcc-switches"
14785 This switch causes the command line that was used to invoke the
14786 compiler to be recorded into the object file that is being created.
14787 This switch is only implemented on some targets and the exact format
14788 of the recording is target and binary file format dependent, but it
14789 usually takes the form of a section containing \s-1ASCII\s0 text.  This
14790 switch is related to the \fB\-fverbose\-asm\fR switch, but that
14791 switch only records information in the assembler output file as
14792 comments, so it never reaches the object file.
14793 .IP "\fB\-fpic\fR" 4
14794 .IX Item "-fpic"
14795 Generate position-independent code (\s-1PIC\s0) suitable for use in a shared
14796 library, if supported for the target machine.  Such code accesses all
14797 constant addresses through a global offset table (\s-1GOT\s0).  The dynamic
14798 loader resolves the \s-1GOT\s0 entries when the program starts (the dynamic
14799 loader is not part of \s-1GCC\s0; it is part of the operating system).  If
14800 the \s-1GOT\s0 size for the linked executable exceeds a machine-specific
14801 maximum size, you get an error message from the linker indicating that
14802 \&\fB\-fpic\fR does not work; in that case, recompile with \fB\-fPIC\fR
14803 instead.  (These maximums are 8k on the \s-1SPARC\s0 and 32k
14804 on the m68k and \s-1RS/6000\s0.  The 386 has no such limit.)
14805 .Sp
14806 Position-independent code requires special support, and therefore works
14807 only on certain machines.  For the 386, \s-1GCC\s0 supports \s-1PIC\s0 for System V
14808 but not for the Sun 386i.  Code generated for the \s-1IBM\s0 \s-1RS/6000\s0 is always
14809 position-independent.
14810 .Sp
14811 When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
14812 are defined to 1.
14813 .IP "\fB\-fPIC\fR" 4
14814 .IX Item "-fPIC"
14815 If supported for the target machine, emit position-independent code,
14816 suitable for dynamic linking and avoiding any limit on the size of the
14817 global offset table.  This option makes a difference on the m68k,
14818 PowerPC and \s-1SPARC\s0.
14819 .Sp
14820 Position-independent code requires special support, and therefore works
14821 only on certain machines.
14822 .Sp
14823 When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
14824 are defined to 2.
14825 .IP "\fB\-fpie\fR" 4
14826 .IX Item "-fpie"
14827 .PD 0
14828 .IP "\fB\-fPIE\fR" 4
14829 .IX Item "-fPIE"
14830 .PD
14831 These options are similar to \fB\-fpic\fR and \fB\-fPIC\fR, but
14832 generated position independent code can be only linked into executables.
14833 Usually these options are used when \fB\-pie\fR \s-1GCC\s0 option will be
14834 used during linking.
14835 .Sp
14836 \&\fB\-fpie\fR and \fB\-fPIE\fR both define the macros
14837 \&\f(CW\*(C`_\|_pie_\|_\*(C'\fR and \f(CW\*(C`_\|_PIE_\|_\*(C'\fR.  The macros have the value 1
14838 for \fB\-fpie\fR and 2 for \fB\-fPIE\fR.
14839 .IP "\fB\-fno\-jump\-tables\fR" 4
14840 .IX Item "-fno-jump-tables"
14841 Do not use jump tables for switch statements even where it would be
14842 more efficient than other code generation strategies.  This option is
14843 of use in conjunction with \fB\-fpic\fR or \fB\-fPIC\fR for
14844 building code which forms part of a dynamic linker and cannot
14845 reference the address of a jump table.  On some targets, jump tables
14846 do not require a \s-1GOT\s0 and this option is not needed.
14847 .IP "\fB\-ffixed\-\fR\fIreg\fR" 4
14848 .IX Item "-ffixed-reg"
14849 Treat the register named \fIreg\fR as a fixed register; generated code
14850 should never refer to it (except perhaps as a stack pointer, frame
14851 pointer or in some other fixed role).
14852 .Sp
14853 \&\fIreg\fR must be the name of a register.  The register names accepted
14854 are machine-specific and are defined in the \f(CW\*(C`REGISTER_NAMES\*(C'\fR
14855 macro in the machine description macro file.
14856 .Sp
14857 This flag does not have a negative form, because it specifies a
14858 three-way choice.
14859 .IP "\fB\-fcall\-used\-\fR\fIreg\fR" 4
14860 .IX Item "-fcall-used-reg"
14861 Treat the register named \fIreg\fR as an allocable register that is
14862 clobbered by function calls.  It may be allocated for temporaries or
14863 variables that do not live across a call.  Functions compiled this way
14864 will not save and restore the register \fIreg\fR.
14865 .Sp
14866 It is an error to used this flag with the frame pointer or stack pointer.
14867 Use of this flag for other registers that have fixed pervasive roles in
14868 the machine's execution model will produce disastrous results.
14869 .Sp
14870 This flag does not have a negative form, because it specifies a
14871 three-way choice.
14872 .IP "\fB\-fcall\-saved\-\fR\fIreg\fR" 4
14873 .IX Item "-fcall-saved-reg"
14874 Treat the register named \fIreg\fR as an allocable register saved by
14875 functions.  It may be allocated even for temporaries or variables that
14876 live across a call.  Functions compiled this way will save and restore
14877 the register \fIreg\fR if they use it.
14878 .Sp
14879 It is an error to used this flag with the frame pointer or stack pointer.
14880 Use of this flag for other registers that have fixed pervasive roles in
14881 the machine's execution model will produce disastrous results.
14882 .Sp
14883 A different sort of disaster will result from the use of this flag for
14884 a register in which function values may be returned.
14885 .Sp
14886 This flag does not have a negative form, because it specifies a
14887 three-way choice.
14888 .IP "\fB\-fpack\-struct[=\fR\fIn\fR\fB]\fR" 4
14889 .IX Item "-fpack-struct[=n]"
14890 Without a value specified, pack all structure members together without
14891 holes.  When a value is specified (which must be a small power of two), pack
14892 structure members according to this value, representing the maximum
14893 alignment (that is, objects with default alignment requirements larger than
14894 this will be output potentially unaligned at the next fitting location.
14895 .Sp
14896 \&\fBWarning:\fR the \fB\-fpack\-struct\fR switch causes \s-1GCC\s0 to generate
14897 code that is not binary compatible with code generated without that switch.
14898 Additionally, it makes the code suboptimal.
14899 Use it to conform to a non-default application binary interface.
14900 .IP "\fB\-finstrument\-functions\fR" 4
14901 .IX Item "-finstrument-functions"
14902 Generate instrumentation calls for entry and exit to functions.  Just
14903 after function entry and just before function exit, the following
14904 profiling functions will be called with the address of the current
14905 function and its call site.  (On some platforms,
14906 \&\f(CW\*(C`_\|_builtin_return_address\*(C'\fR does not work beyond the current
14907 function, so the call site information may not be available to the
14908 profiling functions otherwise.)
14909 .Sp
14910 .Vb 4
14911 \&        void _\|_cyg_profile_func_enter (void *this_fn,
14912 \&                                       void *call_site);
14913 \&        void _\|_cyg_profile_func_exit  (void *this_fn,
14914 \&                                       void *call_site);
14915 .Ve
14916 .Sp
14917 The first argument is the address of the start of the current function,
14918 which may be looked up exactly in the symbol table.
14919 .Sp
14920 This instrumentation is also done for functions expanded inline in other
14921 functions.  The profiling calls will indicate where, conceptually, the
14922 inline function is entered and exited.  This means that addressable
14923 versions of such functions must be available.  If all your uses of a
14924 function are expanded inline, this may mean an additional expansion of
14925 code size.  If you use \fBextern inline\fR in your C code, an
14926 addressable version of such functions must be provided.  (This is
14927 normally the case anyways, but if you get lucky and the optimizer always
14928 expands the functions inline, you might have gotten away without
14929 providing static copies.)
14930 .Sp
14931 A function may be given the attribute \f(CW\*(C`no_instrument_function\*(C'\fR, in
14932 which case this instrumentation will not be done.  This can be used, for
14933 example, for the profiling functions listed above, high-priority
14934 interrupt routines, and any functions from which the profiling functions
14935 cannot safely be called (perhaps signal handlers, if the profiling
14936 routines generate output or allocate memory).
14937 .IP "\fB\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,...\fR" 4
14938 .IX Item "-finstrument-functions-exclude-file-list=file,file,..."
14939 Set the list of functions that are excluded from instrumentation (see
14940 the description of \f(CW\*(C`\-finstrument\-functions\*(C'\fR).  If the file that
14941 contains a function definition matches with one of \fIfile\fR, then
14942 that function is not instrumented.  The match is done on substrings:
14943 if the \fIfile\fR parameter is a substring of the file name, it is
14944 considered to be a match.
14945 .Sp
14946 For example,
14947 \&\f(CW\*(C`\-finstrument\-functions\-exclude\-file\-list=/bits/stl,include/sys\*(C'\fR
14948 will exclude any inline function defined in files whose pathnames
14949 contain \f(CW\*(C`/bits/stl\*(C'\fR or \f(CW\*(C`include/sys\*(C'\fR.
14950 .Sp
14951 If, for some reason, you want to include letter \f(CW\*(Aq,\*(Aq\fR in one of
14952 \&\fIsym\fR, write \f(CW\*(Aq,\*(Aq\fR. For example,
14953 \&\f(CW\*(C`\-finstrument\-functions\-exclude\-file\-list=\*(Aq,,tmp\*(Aq\*(C'\fR
14954 (note the single quote surrounding the option).
14955 .IP "\fB\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,...\fR" 4
14956 .IX Item "-finstrument-functions-exclude-function-list=sym,sym,..."
14957 This is similar to \f(CW\*(C`\-finstrument\-functions\-exclude\-file\-list\*(C'\fR,
14958 but this option sets the list of function names to be excluded from
14959 instrumentation.  The function name to be matched is its user-visible
14960 name, such as \f(CW\*(C`vector<int> blah(const vector<int> &)\*(C'\fR, not the
14961 internal mangled name (e.g., \f(CW\*(C`_Z4blahRSt6vectorIiSaIiEE\*(C'\fR).  The
14962 match is done on substrings: if the \fIsym\fR parameter is a substring
14963 of the function name, it is considered to be a match.
14964 .IP "\fB\-fstack\-check\fR" 4
14965 .IX Item "-fstack-check"
14966 Generate code to verify that you do not go beyond the boundary of the
14967 stack.  You should specify this flag if you are running in an
14968 environment with multiple threads, but only rarely need to specify it in
14969 a single-threaded environment since stack overflow is automatically
14970 detected on nearly all systems if there is only one stack.
14971 .Sp
14972 Note that this switch does not actually cause checking to be done; the
14973 operating system or the language runtime must do that.  The switch causes
14974 generation of code to ensure that they see the stack being extended.
14975 .Sp
14976 You can additionally specify a string parameter: \f(CW\*(C`no\*(C'\fR means no
14977 checking, \f(CW\*(C`generic\*(C'\fR means force the use of old-style checking,
14978 \&\f(CW\*(C`specific\*(C'\fR means use the best checking method and is equivalent
14979 to bare \fB\-fstack\-check\fR.
14980 .Sp
14981 Old-style checking is a generic mechanism that requires no specific
14982 target support in the compiler but comes with the following drawbacks:
14983 .RS 4
14984 .IP "1." 4
14985 Modified allocation strategy for large objects: they will always be
14986 allocated dynamically if their size exceeds a fixed threshold.
14987 .IP "2." 4
14988 Fixed limit on the size of the static frame of functions: when it is
14989 topped by a particular function, stack checking is not reliable and
14990 a warning is issued by the compiler.
14991 .IP "3." 4
14992 Inefficiency: because of both the modified allocation strategy and the
14993 generic implementation, the performances of the code are hampered.
14994 .RE
14995 .RS 4
14996 .Sp
14997 Note that old-style stack checking is also the fallback method for
14998 \&\f(CW\*(C`specific\*(C'\fR if no target support has been added in the compiler.
14999 .RE
15000 .IP "\fB\-fstack\-limit\-register=\fR\fIreg\fR" 4
15001 .IX Item "-fstack-limit-register=reg"
15002 .PD 0
15003 .IP "\fB\-fstack\-limit\-symbol=\fR\fIsym\fR" 4
15004 .IX Item "-fstack-limit-symbol=sym"
15005 .IP "\fB\-fno\-stack\-limit\fR" 4
15006 .IX Item "-fno-stack-limit"
15007 .PD
15008 Generate code to ensure that the stack does not grow beyond a certain value,
15009 either the value of a register or the address of a symbol.  If the stack
15010 would grow beyond the value, a signal is raised.  For most targets,
15011 the signal is raised before the stack overruns the boundary, so
15012 it is possible to catch the signal without taking special precautions.
15013 .Sp
15014 For instance, if the stack starts at absolute address \fB0x80000000\fR
15015 and grows downwards, you can use the flags
15016 \&\fB\-fstack\-limit\-symbol=_\|_stack_limit\fR and
15017 \&\fB\-Wl,\-\-defsym,_\|_stack_limit=0x7ffe0000\fR to enforce a stack limit
15018 of 128KB.  Note that this may only work with the \s-1GNU\s0 linker.
15019 .IP "\fB\-fargument\-alias\fR" 4
15020 .IX Item "-fargument-alias"
15021 .PD 0
15022 .IP "\fB\-fargument\-noalias\fR" 4
15023 .IX Item "-fargument-noalias"
15024 .IP "\fB\-fargument\-noalias\-global\fR" 4
15025 .IX Item "-fargument-noalias-global"
15026 .IP "\fB\-fargument\-noalias\-anything\fR" 4
15027 .IX Item "-fargument-noalias-anything"
15028 .PD
15029 Specify the possible relationships among parameters and between
15030 parameters and global data.
15031 .Sp
15032 \&\fB\-fargument\-alias\fR specifies that arguments (parameters) may
15033 alias each other and may alias global storage.\fB\-fargument\-noalias\fR specifies that arguments do not alias
15034 each other, but may alias global storage.\fB\-fargument\-noalias\-global\fR specifies that arguments do not
15035 alias each other and do not alias global storage.
15036 \&\fB\-fargument\-noalias\-anything\fR specifies that arguments do not
15037 alias any other storage.
15038 .Sp
15039 Each language will automatically use whatever option is required by
15040 the language standard.  You should not need to use these options yourself.
15041 .IP "\fB\-fleading\-underscore\fR" 4
15042 .IX Item "-fleading-underscore"
15043 This option and its counterpart, \fB\-fno\-leading\-underscore\fR, forcibly
15044 change the way C symbols are represented in the object file.  One use
15045 is to help link with legacy assembly code.
15046 .Sp
15047 \&\fBWarning:\fR the \fB\-fleading\-underscore\fR switch causes \s-1GCC\s0 to
15048 generate code that is not binary compatible with code generated without that
15049 switch.  Use it to conform to a non-default application binary interface.
15050 Not all targets provide complete support for this switch.
15051 .IP "\fB\-ftls\-model=\fR\fImodel\fR" 4
15052 .IX Item "-ftls-model=model"
15053 Alter the thread-local storage model to be used.
15054 The \fImodel\fR argument should be one of \f(CW\*(C`global\-dynamic\*(C'\fR,
15055 \&\f(CW\*(C`local\-dynamic\*(C'\fR, \f(CW\*(C`initial\-exec\*(C'\fR or \f(CW\*(C`local\-exec\*(C'\fR.
15056 .Sp
15057 The default without \fB\-fpic\fR is \f(CW\*(C`initial\-exec\*(C'\fR; with
15058 \&\fB\-fpic\fR the default is \f(CW\*(C`global\-dynamic\*(C'\fR.
15059 .IP "\fB\-fvisibility=\fR\fIdefault|internal|hidden|protected\fR" 4
15060 .IX Item "-fvisibility=default|internal|hidden|protected"
15061 Set the default \s-1ELF\s0 image symbol visibility to the specified option\-\-\-all
15062 symbols will be marked with this unless overridden within the code.
15063 Using this feature can very substantially improve linking and
15064 load times of shared object libraries, produce more optimized
15065 code, provide near-perfect \s-1API\s0 export and prevent symbol clashes.
15066 It is \fBstrongly\fR recommended that you use this in any shared objects
15067 you distribute.
15068 .Sp
15069 Despite the nomenclature, \f(CW\*(C`default\*(C'\fR always means public ie;
15070 available to be linked against from outside the shared object.
15071 \&\f(CW\*(C`protected\*(C'\fR and \f(CW\*(C`internal\*(C'\fR are pretty useless in real-world
15072 usage so the only other commonly used option will be \f(CW\*(C`hidden\*(C'\fR.
15073 The default if \fB\-fvisibility\fR isn't specified is
15074 \&\f(CW\*(C`default\*(C'\fR, i.e., make every
15075 symbol public\-\-\-this causes the same behavior as previous versions of
15076 \&\s-1GCC\s0.
15077 .Sp
15078 A good explanation of the benefits offered by ensuring \s-1ELF\s0
15079 symbols have the correct visibility is given by \*(L"How To Write
15080 Shared Libraries\*(R" by Ulrich Drepper (which can be found at
15081 <\fBhttp://people.redhat.com/~drepper/\fR>)\-\-\-however a superior
15082 solution made possible by this option to marking things hidden when
15083 the default is public is to make the default hidden and mark things
15084 public.  This is the norm with \s-1DLL\s0's on Windows and with \fB\-fvisibility=hidden\fR
15085 and \f(CW\*(C`_\|_attribute_\|_ ((visibility("default")))\*(C'\fR instead of
15086 \&\f(CW\*(C`_\|_declspec(dllexport)\*(C'\fR you get almost identical semantics with
15087 identical syntax.  This is a great boon to those working with
15088 cross-platform projects.
15089 .Sp
15090 For those adding visibility support to existing code, you may find
15091 \&\fB#pragma \s-1GCC\s0 visibility\fR of use.  This works by you enclosing
15092 the declarations you wish to set visibility for with (for example)
15093 \&\fB#pragma \s-1GCC\s0 visibility push(hidden)\fR and
15094 \&\fB#pragma \s-1GCC\s0 visibility pop\fR.
15095 Bear in mind that symbol visibility should be viewed \fBas
15096 part of the \s-1API\s0 interface contract\fR and thus all new code should
15097 always specify visibility when it is not the default ie; declarations
15098 only for use within the local \s-1DSO\s0 should \fBalways\fR be marked explicitly
15099 as hidden as so to avoid \s-1PLT\s0 indirection overheads\-\-\-making this
15100 abundantly clear also aids readability and self-documentation of the code.
15101 Note that due to \s-1ISO\s0 \*(C+ specification requirements, operator new and
15102 operator delete must always be of default visibility.
15103 .Sp
15104 Be aware that headers from outside your project, in particular system
15105 headers and headers from any other library you use, may not be
15106 expecting to be compiled with visibility other than the default.  You
15107 may need to explicitly say \fB#pragma \s-1GCC\s0 visibility push(default)\fR
15108 before including any such headers.
15109 .Sp
15110 \&\fBextern\fR declarations are not affected by \fB\-fvisibility\fR, so
15111 a lot of code can be recompiled with \fB\-fvisibility=hidden\fR with
15112 no modifications.  However, this means that calls to \fBextern\fR
15113 functions with no explicit visibility will use the \s-1PLT\s0, so it is more
15114 effective to use \fB_\|_attribute ((visibility))\fR and/or
15115 \&\fB#pragma \s-1GCC\s0 visibility\fR to tell the compiler which \fBextern\fR
15116 declarations should be treated as hidden.
15117 .Sp
15118 Note that \fB\-fvisibility\fR does affect \*(C+ vague linkage
15119 entities. This means that, for instance, an exception class that will
15120 be thrown between DSOs must be explicitly marked with default
15121 visibility so that the \fBtype_info\fR nodes will be unified between
15122 the DSOs.
15123 .Sp
15124 An overview of these techniques, their benefits and how to use them
15125 is at <\fBhttp://gcc.gnu.org/wiki/Visibility\fR>.
15126 .SH "ENVIRONMENT"
15127 .IX Header "ENVIRONMENT"
15128 This section describes several environment variables that affect how \s-1GCC\s0
15129 operates.  Some of them work by specifying directories or prefixes to use
15130 when searching for various kinds of files.  Some are used to specify other
15131 aspects of the compilation environment.
15132 .PP
15133 Note that you can also specify places to search using options such as
15134 \&\fB\-B\fR, \fB\-I\fR and \fB\-L\fR.  These
15135 take precedence over places specified using environment variables, which
15136 in turn take precedence over those specified by the configuration of \s-1GCC\s0.
15137 .IP "\fB\s-1LANG\s0\fR" 4
15138 .IX Item "LANG"
15139 .PD 0
15140 .IP "\fB\s-1LC_CTYPE\s0\fR" 4
15141 .IX Item "LC_CTYPE"
15142 .IP "\fB\s-1LC_MESSAGES\s0\fR" 4
15143 .IX Item "LC_MESSAGES"
15144 .IP "\fB\s-1LC_ALL\s0\fR" 4
15145 .IX Item "LC_ALL"
15146 .PD
15147 These environment variables control the way that \s-1GCC\s0 uses
15148 localization information that allow \s-1GCC\s0 to work with different
15149 national conventions.  \s-1GCC\s0 inspects the locale categories
15150 \&\fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR if it has been configured to do
15151 so.  These locale categories can be set to any value supported by your
15152 installation.  A typical value is \fBen_GB.UTF\-8\fR for English in the United
15153 Kingdom encoded in \s-1UTF\-8\s0.
15154 .Sp
15155 The \fB\s-1LC_CTYPE\s0\fR environment variable specifies character
15156 classification.  \s-1GCC\s0 uses it to determine the character boundaries in
15157 a string; this is needed for some multibyte encodings that contain quote
15158 and escape characters that would otherwise be interpreted as a string
15159 end or escape.
15160 .Sp
15161 The \fB\s-1LC_MESSAGES\s0\fR environment variable specifies the language to
15162 use in diagnostic messages.
15163 .Sp
15164 If the \fB\s-1LC_ALL\s0\fR environment variable is set, it overrides the value
15165 of \fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR; otherwise, \fB\s-1LC_CTYPE\s0\fR
15166 and \fB\s-1LC_MESSAGES\s0\fR default to the value of the \fB\s-1LANG\s0\fR
15167 environment variable.  If none of these variables are set, \s-1GCC\s0
15168 defaults to traditional C English behavior.
15169 .IP "\fB\s-1TMPDIR\s0\fR" 4
15170 .IX Item "TMPDIR"
15171 If \fB\s-1TMPDIR\s0\fR is set, it specifies the directory to use for temporary
15172 files.  \s-1GCC\s0 uses temporary files to hold the output of one stage of
15173 compilation which is to be used as input to the next stage: for example,
15174 the output of the preprocessor, which is the input to the compiler
15175 proper.
15176 .IP "\fB\s-1GCC_EXEC_PREFIX\s0\fR" 4
15177 .IX Item "GCC_EXEC_PREFIX"
15178 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is set, it specifies a prefix to use in the
15179 names of the subprograms executed by the compiler.  No slash is added
15180 when this prefix is combined with the name of a subprogram, but you can
15181 specify a prefix that ends with a slash if you wish.
15182 .Sp
15183 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is not set, \s-1GCC\s0 will attempt to figure out
15184 an appropriate prefix to use based on the pathname it was invoked with.
15185 .Sp
15186 If \s-1GCC\s0 cannot find the subprogram using the specified prefix, it
15187 tries looking in the usual places for the subprogram.
15188 .Sp
15189 The default value of \fB\s-1GCC_EXEC_PREFIX\s0\fR is
15190 \&\fI\fIprefix\fI/lib/gcc/\fR where \fIprefix\fR is the prefix to
15191 the installed compiler. In many cases \fIprefix\fR is the value
15192 of \f(CW\*(C`prefix\*(C'\fR when you ran the \fIconfigure\fR script.
15193 .Sp
15194 Other prefixes specified with \fB\-B\fR take precedence over this prefix.
15195 .Sp
15196 This prefix is also used for finding files such as \fIcrt0.o\fR that are
15197 used for linking.
15198 .Sp
15199 In addition, the prefix is used in an unusual way in finding the
15200 directories to search for header files.  For each of the standard
15201 directories whose name normally begins with \fB/usr/local/lib/gcc\fR
15202 (more precisely, with the value of \fB\s-1GCC_INCLUDE_DIR\s0\fR), \s-1GCC\s0 tries
15203 replacing that beginning with the specified prefix to produce an
15204 alternate directory name.  Thus, with \fB\-Bfoo/\fR, \s-1GCC\s0 will search
15205 \&\fIfoo/bar\fR where it would normally search \fI/usr/local/lib/bar\fR.
15206 These alternate directories are searched first; the standard directories
15207 come next. If a standard directory begins with the configured
15208 \&\fIprefix\fR then the value of \fIprefix\fR is replaced by
15209 \&\fB\s-1GCC_EXEC_PREFIX\s0\fR when looking for header files.
15210 .IP "\fB\s-1COMPILER_PATH\s0\fR" 4
15211 .IX Item "COMPILER_PATH"
15212 The value of \fB\s-1COMPILER_PATH\s0\fR is a colon-separated list of
15213 directories, much like \fB\s-1PATH\s0\fR.  \s-1GCC\s0 tries the directories thus
15214 specified when searching for subprograms, if it can't find the
15215 subprograms using \fB\s-1GCC_EXEC_PREFIX\s0\fR.
15216 .IP "\fB\s-1LIBRARY_PATH\s0\fR" 4
15217 .IX Item "LIBRARY_PATH"
15218 The value of \fB\s-1LIBRARY_PATH\s0\fR is a colon-separated list of
15219 directories, much like \fB\s-1PATH\s0\fR.  When configured as a native compiler,
15220 \&\s-1GCC\s0 tries the directories thus specified when searching for special
15221 linker files, if it can't find them using \fB\s-1GCC_EXEC_PREFIX\s0\fR.  Linking
15222 using \s-1GCC\s0 also uses these directories when searching for ordinary
15223 libraries for the \fB\-l\fR option (but directories specified with
15224 \&\fB\-L\fR come first).
15225 .IP "\fB\s-1LANG\s0\fR" 4
15226 .IX Item "LANG"
15227 This variable is used to pass locale information to the compiler.  One way in
15228 which this information is used is to determine the character set to be used
15229 when character literals, string literals and comments are parsed in C and \*(C+.
15230 When the compiler is configured to allow multibyte characters,
15231 the following values for \fB\s-1LANG\s0\fR are recognized:
15232 .RS 4
15233 .IP "\fBC\-JIS\fR" 4
15234 .IX Item "C-JIS"
15235 Recognize \s-1JIS\s0 characters.
15236 .IP "\fBC\-SJIS\fR" 4
15237 .IX Item "C-SJIS"
15238 Recognize \s-1SJIS\s0 characters.
15239 .IP "\fBC\-EUCJP\fR" 4
15240 .IX Item "C-EUCJP"
15241 Recognize \s-1EUCJP\s0 characters.
15242 .RE
15243 .RS 4
15244 .Sp
15245 If \fB\s-1LANG\s0\fR is not defined, or if it has some other value, then the
15246 compiler will use mblen and mbtowc as defined by the default locale to
15247 recognize and translate multibyte characters.
15248 .RE
15249 .PP
15250 Some additional environments variables affect the behavior of the
15251 preprocessor.
15252 .IP "\fB\s-1CPATH\s0\fR" 4
15253 .IX Item "CPATH"
15254 .PD 0
15255 .IP "\fBC_INCLUDE_PATH\fR" 4
15256 .IX Item "C_INCLUDE_PATH"
15257 .IP "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4
15258 .IX Item "CPLUS_INCLUDE_PATH"
15259 .IP "\fB\s-1OBJC_INCLUDE_PATH\s0\fR" 4
15260 .IX Item "OBJC_INCLUDE_PATH"
15261 .PD
15262 Each variable's value is a list of directories separated by a special
15263 character, much like \fB\s-1PATH\s0\fR, in which to look for header files.
15264 The special character, \f(CW\*(C`PATH_SEPARATOR\*(C'\fR, is target-dependent and
15265 determined at \s-1GCC\s0 build time.  For Microsoft Windows-based targets it is a
15266 semicolon, and for almost all other targets it is a colon.
15267 .Sp
15268 \&\fB\s-1CPATH\s0\fR specifies a list of directories to be searched as if
15269 specified with \fB\-I\fR, but after any paths given with \fB\-I\fR
15270 options on the command line.  This environment variable is used
15271 regardless of which language is being preprocessed.
15272 .Sp
15273 The remaining environment variables apply only when preprocessing the
15274 particular language indicated.  Each specifies a list of directories
15275 to be searched as if specified with \fB\-isystem\fR, but after any
15276 paths given with \fB\-isystem\fR options on the command line.
15277 .Sp
15278 In all these variables, an empty element instructs the compiler to
15279 search its current working directory.  Empty elements can appear at the
15280 beginning or end of a path.  For instance, if the value of
15281 \&\fB\s-1CPATH\s0\fR is \f(CW\*(C`:/special/include\*(C'\fR, that has the same
15282 effect as \fB\-I.\ \-I/special/include\fR.
15283 .IP "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4
15284 .IX Item "DEPENDENCIES_OUTPUT"
15285 If this variable is set, its value specifies how to output
15286 dependencies for Make based on the non-system header files processed
15287 by the compiler.  System header files are ignored in the dependency
15288 output.
15289 .Sp
15290 The value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, in
15291 which case the Make rules are written to that file, guessing the target
15292 name from the source file name.  Or the value can have the form
15293 \&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written to
15294 file \fIfile\fR using \fItarget\fR as the target name.
15295 .Sp
15296 In other words, this environment variable is equivalent to combining
15297 the options \fB\-MM\fR and \fB\-MF\fR,
15298 with an optional \fB\-MT\fR switch too.
15299 .IP "\fB\s-1SUNPRO_DEPENDENCIES\s0\fR" 4
15300 .IX Item "SUNPRO_DEPENDENCIES"
15301 This variable is the same as \fB\s-1DEPENDENCIES_OUTPUT\s0\fR (see above),
15302 except that system header files are not ignored, so it implies
15303 \&\fB\-M\fR rather than \fB\-MM\fR.  However, the dependence on the
15304 main input file is omitted.
15305 .SH "BUGS"
15306 .IX Header "BUGS"
15307 For instructions on reporting bugs, see
15308 <\fBhttp://gcc.gnu.org/bugs.html\fR>.
15309 .SH "FOOTNOTES"
15310 .IX Header "FOOTNOTES"
15311 .IP "1." 4
15312 On some systems, \fBgcc \-shared\fR
15313 needs to build supplementary stub code for constructors to work.  On
15314 multi-libbed systems, \fBgcc \-shared\fR must select the correct support
15315 libraries to link against.  Failing to supply the correct flags may lead
15316 to subtle defects.  Supplying them in cases where they are not necessary
15317 is innocuous.
15318 .SH "SEE ALSO"
15319 .IX Header "SEE ALSO"
15320 \&\fIgpl\fR\|(7), \fIgfdl\fR\|(7), \fIfsf\-funding\fR\|(7),
15321 \&\fIcpp\fR\|(1), \fIgcov\fR\|(1), \fIas\fR\|(1), \fIld\fR\|(1), \fIgdb\fR\|(1), \fIadb\fR\|(1), \fIdbx\fR\|(1), \fIsdb\fR\|(1)
15322 and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIas\fR,
15323 \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
15324 .SH "AUTHOR"
15325 .IX Header "AUTHOR"
15326 See the Info entry for \fBgcc\fR, or
15327 <\fBhttp://gcc.gnu.org/onlinedocs/gcc/Contributors.html\fR>,
15328 for contributors to \s-1GCC\s0.
15329 .SH "COPYRIGHT"
15330 .IX Header "COPYRIGHT"
15331 Copyright (c) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
15332 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
15333 Free Software Foundation, Inc.
15334 .PP
15335 Permission is granted to copy, distribute and/or modify this document
15336 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.2 or
15337 any later version published by the Free Software Foundation; with the
15338 Invariant Sections being \*(L"\s-1GNU\s0 General Public License\*(R" and \*(L"Funding
15339 Free Software\*(R", the Front-Cover texts being (a) (see below), and with
15340 the Back-Cover Texts being (b) (see below).  A copy of the license is
15341 included in the \fIgfdl\fR\|(7) man page.
15342 .PP
15343 (a) The \s-1FSF\s0's Front-Cover Text is:
15344 .PP
15345 .Vb 1
15346 \&     A GNU Manual
15347 .Ve
15348 .PP
15349 (b) The \s-1FSF\s0's Back-Cover Text is:
15350 .PP
15351 .Vb 3
15352 \&     You have freedom to copy and modify this GNU Manual, like GNU
15353 \&     software.  Copies published by the Free Software Foundation raise
15354 \&     funds for GNU development.
15355 .Ve