RT-AC56 3.0.0.4.374.37 core
[tomato.git] / release / src-rt-6.x.4708 / toolchains / hndtools-arm-linux-2.6.36-uclibc-4.5.3 / share / man / man1 / arm-brcm-linux-uclibcgnueabi-g++.1
blobc2c16b4bbd5946db17e56fba34aab8c5e6b08032
1 .\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.32
2 .\"
3 .\" Standard preamble:
4 .\" ========================================================================
5 .de Sh \" Subsection heading
6 .br
7 .if t .Sp
8 .ne 5
9 .PP
10 \fB\\$1\fR
11 .PP
13 .de Sp \" Vertical space (when we can't use .PP)
14 .if t .sp .5v
15 .if n .sp
17 .de Vb \" Begin verbatim text
18 .ft CW
19 .nf
20 .ne \\$1
22 .de Ve \" End verbatim text
23 .ft R
24 .fi
26 .\" Set up some character translations and predefined strings.  \*(-- will
27 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
28 .\" double quote, and \*(R" will give a right double quote.  | will give a
29 .\" real vertical bar.  \*(C+ will give a nicer C++.  Capital omega is used to
30 .\" do unbreakable dashes and therefore won't be available.  \*(C` and \*(C'
31 .\" expand to `' in nroff, nothing in troff, for use with C<>.
32 .tr \(*W-|\(bv\*(Tr
33 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
34 .ie n \{\
35 .    ds -- \(*W-
36 .    ds PI pi
37 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
38 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
39 .    ds L" ""
40 .    ds R" ""
41 .    ds C` ""
42 .    ds C' ""
43 'br\}
44 .el\{\
45 .    ds -- \|\(em\|
46 .    ds PI \(*p
47 .    ds L" ``
48 .    ds R" ''
49 'br\}
50 .\"
51 .\" If the F register is turned on, we'll generate index entries on stderr for
52 .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
53 .\" entries marked with X<> in POD.  Of course, you'll have to process the
54 .\" output yourself in some meaningful fashion.
55 .if \nF \{\
56 .    de IX
57 .    tm Index:\\$1\t\\n%\t"\\$2"
59 .    nr % 0
60 .    rr F
61 .\}
62 .\"
63 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
64 .\" way too many mistakes in technical documents.
65 .hy 0
66 .if n .na
67 .\"
68 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
69 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
70 .    \" fudge factors for nroff and troff
71 .if n \{\
72 .    ds #H 0
73 .    ds #V .8m
74 .    ds #F .3m
75 .    ds #[ \f1
76 .    ds #] \fP
77 .\}
78 .if t \{\
79 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
80 .    ds #V .6m
81 .    ds #F 0
82 .    ds #[ \&
83 .    ds #] \&
84 .\}
85 .    \" simple accents for nroff and troff
86 .if n \{\
87 .    ds ' \&
88 .    ds ` \&
89 .    ds ^ \&
90 .    ds , \&
91 .    ds ~ ~
92 .    ds /
93 .\}
94 .if t \{\
95 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
96 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
97 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
98 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
99 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
100 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
102 .    \" troff and (daisy-wheel) nroff accents
103 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
104 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
105 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
106 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
107 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
108 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
109 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
110 .ds ae a\h'-(\w'a'u*4/10)'e
111 .ds Ae A\h'-(\w'A'u*4/10)'E
112 .    \" corrections for vroff
113 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
114 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
115 .    \" for low resolution devices (crt and lpr)
116 .if \n(.H>23 .if \n(.V>19 \
118 .    ds : e
119 .    ds 8 ss
120 .    ds o a
121 .    ds d- d\h'-1'\(ga
122 .    ds D- D\h'-1'\(hy
123 .    ds th \o'bp'
124 .    ds Th \o'LP'
125 .    ds ae ae
126 .    ds Ae AE
128 .rm #[ #] #H #V #F C
129 .\" ========================================================================
131 .IX Title "GCC 1"
132 .TH GCC 1 "2012-06-12" "gcc-4.5.3" "GNU"
133 .SH "NAME"
134 gcc \- GNU project C and C++ compiler
135 .SH "SYNOPSIS"
136 .IX Header "SYNOPSIS"
137 gcc [\fB\-c\fR|\fB\-S\fR|\fB\-E\fR] [\fB\-std=\fR\fIstandard\fR]
138     [\fB\-g\fR] [\fB\-pg\fR] [\fB\-O\fR\fIlevel\fR]
139     [\fB\-W\fR\fIwarn\fR...] [\fB\-pedantic\fR]
140     [\fB\-I\fR\fIdir\fR...] [\fB\-L\fR\fIdir\fR...]
141     [\fB\-D\fR\fImacro\fR[=\fIdefn\fR]...] [\fB\-U\fR\fImacro\fR]
142     [\fB\-f\fR\fIoption\fR...] [\fB\-m\fR\fImachine-option\fR...]
143     [\fB\-o\fR \fIoutfile\fR] [@\fIfile\fR] \fIinfile\fR...
145 Only the most useful options are listed here; see below for the
146 remainder.  \fBg++\fR accepts mostly the same options as \fBgcc\fR.
147 .SH "DESCRIPTION"
148 .IX Header "DESCRIPTION"
149 When you invoke \s-1GCC\s0, it normally does preprocessing, compilation,
150 assembly and linking.  The \*(L"overall options\*(R" allow you to stop this
151 process at an intermediate stage.  For example, the \fB\-c\fR option
152 says not to run the linker.  Then the output consists of object files
153 output by the assembler.
155 Other options are passed on to one stage of processing.  Some options
156 control the preprocessor and others the compiler itself.  Yet other
157 options control the assembler and linker; most of these are not
158 documented here, since you rarely need to use any of them.
160 Most of the command line options that you can use with \s-1GCC\s0 are useful
161 for C programs; when an option is only useful with another language
162 (usually \*(C+), the explanation says so explicitly.  If the description
163 for a particular option does not mention a source language, you can use
164 that option with all supported languages.
166 The \fBgcc\fR program accepts options and file names as operands.  Many
167 options have multi-letter names; therefore multiple single-letter options
168 may \fInot\fR be grouped: \fB\-dv\fR is very different from \fB\-d\ \-v\fR.
170 You can mix options and other arguments.  For the most part, the order
171 you use doesn't matter.  Order does matter when you use several
172 options of the same kind; for example, if you specify \fB\-L\fR more
173 than once, the directories are searched in the order specified.  Also,
174 the placement of the \fB\-l\fR option is significant.
176 Many options have long names starting with \fB\-f\fR or with
177 \&\fB\-W\fR\-\-\-for example,
178 \&\fB\-fmove\-loop\-invariants\fR, \fB\-Wformat\fR and so on.  Most of
179 these have both positive and negative forms; the negative form of
180 \&\fB\-ffoo\fR would be \fB\-fno\-foo\fR.  This manual documents
181 only one of these two forms, whichever one is not the default.
182 .SH "OPTIONS"
183 .IX Header "OPTIONS"
184 .Sh "Option Summary"
185 .IX Subsection "Option Summary"
186 Here is a summary of all the options, grouped by type.  Explanations are
187 in the following sections.
188 .IP "\fIOverall Options\fR" 4
189 .IX Item "Overall Options"
190 \&\fB\-c  \-S  \-E  \-o\fR \fIfile\fR  \fB\-combine  \-no\-canonical\-prefixes  
191 \&\-pipe  \-pass\-exit\-codes  
192 \&\-x\fR \fIlanguage\fR  \fB\-v  \-###  \-\-help\fR[\fB=\fR\fIclass\fR[\fB,...\fR]]  \fB\-\-target\-help  
193 \&\-\-version \-wrapper@\fR\fIfile\fR \fB\-fplugin=\fR\fIfile\fR \fB\-fplugin\-arg\-\fR\fIname\fR\fB=\fR\fIarg\fR
194 .IP "\fIC Language Options\fR" 4
195 .IX Item "C Language Options"
196 \&\fB\-ansi  \-std=\fR\fIstandard\fR  \fB\-fgnu89\-inline 
197 \&\-aux\-info\fR \fIfilename\fR 
198 \&\fB\-fno\-asm  \-fno\-builtin  \-fno\-builtin\-\fR\fIfunction\fR 
199 \&\fB\-fhosted  \-ffreestanding \-fopenmp \-fms\-extensions 
200 \&\-trigraphs  \-no\-integrated\-cpp  \-traditional  \-traditional\-cpp 
201 \&\-fallow\-single\-precision  \-fcond\-mismatch \-flax\-vector\-conversions 
202 \&\-fsigned\-bitfields  \-fsigned\-char 
203 \&\-funsigned\-bitfields  \-funsigned\-char\fR
204 .IP "\fI\*(C+ Language Options\fR" 4
205 .IX Item " Language Options"
206 \&\fB\-fabi\-version=\fR\fIn\fR  \fB\-fno\-access\-control  \-fcheck\-new 
207 \&\-fconserve\-space  \-ffriend\-injection 
208 \&\-fno\-elide\-constructors 
209 \&\-fno\-enforce\-eh\-specs 
210 \&\-ffor\-scope  \-fno\-for\-scope  \-fno\-gnu\-keywords 
211 \&\-fno\-implicit\-templates 
212 \&\-fno\-implicit\-inline\-templates 
213 \&\-fno\-implement\-inlines  \-fms\-extensions 
214 \&\-fno\-nonansi\-builtins  \-fno\-operator\-names 
215 \&\-fno\-optional\-diags  \-fpermissive 
216 \&\-fno\-pretty\-templates 
217 \&\-frepo  \-fno\-rtti  \-fstats  \-ftemplate\-depth=\fR\fIn\fR 
218 \&\fB\-fno\-threadsafe\-statics \-fuse\-cxa\-atexit  \-fno\-weak  \-nostdinc++ 
219 \&\-fno\-default\-inline  \-fvisibility\-inlines\-hidden 
220 \&\-fvisibility\-ms\-compat 
221 \&\-Wabi  \-Wconversion\-null  \-Wctor\-dtor\-privacy 
222 \&\-Wnon\-virtual\-dtor  \-Wreorder 
223 \&\-Weffc++  \-Wstrict\-null\-sentinel 
224 \&\-Wno\-non\-template\-friend  \-Wold\-style\-cast 
225 \&\-Woverloaded\-virtual  \-Wno\-pmf\-conversions 
226 \&\-Wsign\-promo\fR
227 .IP "\fIObjective-C and Objective\-\*(C+ Language Options\fR" 4
228 .IX Item "Objective-C and Objective- Language Options"
229 \&\fB\-fconstant\-string\-class=\fR\fIclass-name\fR 
230 \&\fB\-fgnu\-runtime  \-fnext\-runtime 
231 \&\-fno\-nil\-receivers 
232 \&\-fobjc\-call\-cxx\-cdtors 
233 \&\-fobjc\-direct\-dispatch 
234 \&\-fobjc\-exceptions 
235 \&\-fobjc\-gc 
236 \&\-freplace\-objc\-classes 
237 \&\-fzero\-link 
238 \&\-gen\-decls 
239 \&\-Wassign\-intercept 
240 \&\-Wno\-protocol  \-Wselector 
241 \&\-Wstrict\-selector\-match 
242 \&\-Wundeclared\-selector\fR
243 .IP "\fILanguage Independent Options\fR" 4
244 .IX Item "Language Independent Options"
245 \&\fB\-fmessage\-length=\fR\fIn\fR  
246 \&\fB\-fdiagnostics\-show\-location=\fR[\fBonce\fR|\fBevery-line\fR]  
247 \&\fB\-fdiagnostics\-show\-option\fR
248 .IP "\fIWarning Options\fR" 4
249 .IX Item "Warning Options"
250 \&\fB\-fsyntax\-only  \-pedantic  \-pedantic\-errors 
251 \&\-w  \-Wextra  \-Wall  \-Waddress  \-Waggregate\-return  \-Warray\-bounds 
252 \&\-Wno\-attributes \-Wno\-builtin\-macro\-redefined 
253 \&\-Wc++\-compat \-Wc++0x\-compat \-Wcast\-align  \-Wcast\-qual  
254 \&\-Wchar\-subscripts \-Wclobbered  \-Wcomment 
255 \&\-Wconversion  \-Wcoverage\-mismatch  \-Wno\-deprecated  
256 \&\-Wno\-deprecated\-declarations \-Wdisabled\-optimization  
257 \&\-Wno\-div\-by\-zero \-Wempty\-body  \-Wenum\-compare \-Wno\-endif\-labels 
258 \&\-Werror  \-Werror=* 
259 \&\-Wfatal\-errors  \-Wfloat\-equal  \-Wformat  \-Wformat=2 
260 \&\-Wno\-format\-contains\-nul \-Wno\-format\-extra\-args \-Wformat\-nonliteral 
261 \&\-Wformat\-security  \-Wformat\-y2k 
262 \&\-Wframe\-larger\-than=\fR\fIlen\fR \fB\-Wjump\-misses\-init \-Wignored\-qualifiers 
263 \&\-Wimplicit  \-Wimplicit\-function\-declaration  \-Wimplicit\-int 
264 \&\-Winit\-self  \-Winline 
265 \&\-Wno\-int\-to\-pointer\-cast \-Wno\-invalid\-offsetof 
266 \&\-Winvalid\-pch \-Wlarger\-than=\fR\fIlen\fR  \fB\-Wunsafe\-loop\-optimizations 
267 \&\-Wlogical\-op \-Wlong\-long 
268 \&\-Wmain  \-Wmissing\-braces  \-Wmissing\-field\-initializers 
269 \&\-Wmissing\-format\-attribute  \-Wmissing\-include\-dirs 
270 \&\-Wmissing\-noreturn  \-Wno\-mudflap 
271 \&\-Wno\-multichar  \-Wnonnull  \-Wno\-overflow 
272 \&\-Woverlength\-strings  \-Wpacked  \-Wpacked\-bitfield\-compat  \-Wpadded 
273 \&\-Wparentheses  \-Wpedantic\-ms\-format \-Wno\-pedantic\-ms\-format 
274 \&\-Wpointer\-arith  \-Wno\-pointer\-to\-int\-cast 
275 \&\-Wredundant\-decls 
276 \&\-Wreturn\-type  \-Wsequence\-point  \-Wshadow 
277 \&\-Wsign\-compare  \-Wsign\-conversion  \-Wstack\-protector 
278 \&\-Wstrict\-aliasing \-Wstrict\-aliasing=n 
279 \&\-Wstrict\-overflow \-Wstrict\-overflow=\fR\fIn\fR 
280 \&\fB\-Wswitch  \-Wswitch\-default  \-Wswitch\-enum \-Wsync\-nand 
281 \&\-Wsystem\-headers  \-Wtrigraphs  \-Wtype\-limits  \-Wundef  \-Wuninitialized 
282 \&\-Wunknown\-pragmas  \-Wno\-pragmas 
283 \&\-Wunsuffixed\-float\-constants  \-Wunused  \-Wunused\-function 
284 \&\-Wunused\-label  \-Wunused\-parameter \-Wno\-unused\-result \-Wunused\-value  \-Wunused\-variable 
285 \&\-Wvariadic\-macros \-Wvla 
286 \&\-Wvolatile\-register\-var  \-Wwrite\-strings\fR
287 .IP "\fIC and Objective-C-only Warning Options\fR" 4
288 .IX Item "C and Objective-C-only Warning Options"
289 \&\fB\-Wbad\-function\-cast  \-Wmissing\-declarations 
290 \&\-Wmissing\-parameter\-type  \-Wmissing\-prototypes  \-Wnested\-externs 
291 \&\-Wold\-style\-declaration  \-Wold\-style\-definition 
292 \&\-Wstrict\-prototypes  \-Wtraditional  \-Wtraditional\-conversion 
293 \&\-Wdeclaration\-after\-statement \-Wpointer\-sign\fR
294 .IP "\fIDebugging Options\fR" 4
295 .IX Item "Debugging Options"
296 \&\fB\-d\fR\fIletters\fR  \fB\-dumpspecs  \-dumpmachine  \-dumpversion 
297 \&\-fdbg\-cnt\-list \-fdbg\-cnt=\fR\fIcounter-value-list\fR 
298 \&\fB\-fdump\-noaddr \-fdump\-unnumbered \-fdump\-unnumbered\-links 
299 \&\-fdump\-translation\-unit\fR[\fB\-\fR\fIn\fR] 
300 \&\fB\-fdump\-class\-hierarchy\fR[\fB\-\fR\fIn\fR] 
301 \&\fB\-fdump\-ipa\-all \-fdump\-ipa\-cgraph \-fdump\-ipa\-inline 
302 \&\-fdump\-statistics 
303 \&\-fdump\-tree\-all 
304 \&\-fdump\-tree\-original\fR[\fB\-\fR\fIn\fR]  
305 \&\fB\-fdump\-tree\-optimized\fR[\fB\-\fR\fIn\fR] 
306 \&\fB\-fdump\-tree\-cfg \-fdump\-tree\-vcg \-fdump\-tree\-alias 
307 \&\-fdump\-tree\-ch 
308 \&\-fdump\-tree\-ssa\fR[\fB\-\fR\fIn\fR] \fB\-fdump\-tree\-pre\fR[\fB\-\fR\fIn\fR] 
309 \&\fB\-fdump\-tree\-ccp\fR[\fB\-\fR\fIn\fR] \fB\-fdump\-tree\-dce\fR[\fB\-\fR\fIn\fR] 
310 \&\fB\-fdump\-tree\-gimple\fR[\fB\-raw\fR] \fB\-fdump\-tree\-mudflap\fR[\fB\-\fR\fIn\fR] 
311 \&\fB\-fdump\-tree\-dom\fR[\fB\-\fR\fIn\fR] 
312 \&\fB\-fdump\-tree\-dse\fR[\fB\-\fR\fIn\fR] 
313 \&\fB\-fdump\-tree\-phiprop\fR[\fB\-\fR\fIn\fR] 
314 \&\fB\-fdump\-tree\-phiopt\fR[\fB\-\fR\fIn\fR] 
315 \&\fB\-fdump\-tree\-forwprop\fR[\fB\-\fR\fIn\fR] 
316 \&\fB\-fdump\-tree\-copyrename\fR[\fB\-\fR\fIn\fR] 
317 \&\fB\-fdump\-tree\-nrv \-fdump\-tree\-vect 
318 \&\-fdump\-tree\-sink 
319 \&\-fdump\-tree\-sra\fR[\fB\-\fR\fIn\fR] 
320 \&\fB\-fdump\-tree\-forwprop\fR[\fB\-\fR\fIn\fR] 
321 \&\fB\-fdump\-tree\-fre\fR[\fB\-\fR\fIn\fR] 
322 \&\fB\-fdump\-tree\-vrp\fR[\fB\-\fR\fIn\fR] 
323 \&\fB\-ftree\-vectorizer\-verbose=\fR\fIn\fR 
324 \&\fB\-fdump\-tree\-storeccp\fR[\fB\-\fR\fIn\fR] 
325 \&\fB\-fdump\-final\-insns=\fR\fIfile\fR 
326 \&\fB\-fcompare\-debug\fR[\fB=\fR\fIopts\fR]  \fB\-fcompare\-debug\-second 
327 \&\-feliminate\-dwarf2\-dups \-feliminate\-unused\-debug\-types 
328 \&\-feliminate\-unused\-debug\-symbols \-femit\-class\-debug\-always 
329 \&\-fenable\-icf\-debug 
330 \&\-fmem\-report \-fpre\-ipa\-mem\-report \-fpost\-ipa\-mem\-report \-fprofile\-arcs 
331 \&\-frandom\-seed=\fR\fIstring\fR \fB\-fsched\-verbose=\fR\fIn\fR 
332 \&\fB\-fsel\-sched\-verbose \-fsel\-sched\-dump\-cfg \-fsel\-sched\-pipelining\-verbose 
333 \&\-ftest\-coverage  \-ftime\-report \-fvar\-tracking 
334 \&\-fvar\-tracking\-assignments  \-fvar\-tracking\-assignments\-toggle 
335 \&\-g  \-g\fR\fIlevel\fR  \fB\-gtoggle  \-gcoff  \-gdwarf\-\fR\fIversion\fR 
336 \&\fB\-ggdb  \-gstabs  \-gstabs+  \-gstrict\-dwarf  \-gno\-strict\-dwarf 
337 \&\-gvms  \-gxcoff  \-gxcoff+ 
338 \&\-fno\-merge\-debug\-strings \-fno\-dwarf2\-cfi\-asm 
339 \&\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR 
340 \&\fB\-femit\-struct\-debug\-baseonly \-femit\-struct\-debug\-reduced 
341 \&\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR] 
342 \&\fB\-p  \-pg  \-print\-file\-name=\fR\fIlibrary\fR  \fB\-print\-libgcc\-file\-name 
343 \&\-print\-multi\-directory  \-print\-multi\-lib  \-print\-multi\-os\-directory 
344 \&\-print\-prog\-name=\fR\fIprogram\fR  \fB\-print\-search\-dirs  \-Q 
345 \&\-print\-sysroot \-print\-sysroot\-headers\-suffix 
346 \&\-save\-temps \-save\-temps=cwd \-save\-temps=obj \-time\fR[\fB=\fR\fIfile\fR]
347 .IP "\fIOptimization Options\fR" 4
348 .IX Item "Optimization Options"
349 \&\fB\-falign\-functions[=\fR\fIn\fR\fB] \-falign\-jumps[=\fR\fIn\fR\fB] 
350 \&\-falign\-labels[=\fR\fIn\fR\fB] \-falign\-loops[=\fR\fIn\fR\fB] \-fassociative\-math 
351 \&\-fauto\-inc\-dec \-fbranch\-probabilities \-fbranch\-target\-load\-optimize 
352 \&\-fbranch\-target\-load\-optimize2 \-fbtr\-bb\-exclusive \-fcaller\-saves 
353 \&\-fcheck\-data\-deps \-fconserve\-stack \-fcprop\-registers \-fcrossjumping 
354 \&\-fcse\-follow\-jumps \-fcse\-skip\-blocks \-fcx\-fortran\-rules \-fcx\-limited\-range 
355 \&\-fdata\-sections \-fdce \-fdce 
356 \&\-fdelayed\-branch \-fdelete\-null\-pointer\-checks \-fdse \-fdse 
357 \&\-fearly\-inlining \-fipa\-sra \-fexpensive\-optimizations \-ffast\-math 
358 \&\-ffinite\-math\-only \-ffloat\-store \-fexcess\-precision=\fR\fIstyle\fR 
359 \&\fB\-fforward\-propagate \-ffunction\-sections 
360 \&\-fgcse \-fgcse\-after\-reload \-fgcse\-las \-fgcse\-lm 
361 \&\-fgcse\-sm \-fif\-conversion \-fif\-conversion2 \-findirect\-inlining 
362 \&\-finline\-functions \-finline\-functions\-called\-once \-finline\-limit=\fR\fIn\fR 
363 \&\fB\-finline\-small\-functions \-fipa\-cp \-fipa\-cp\-clone \-fipa\-matrix\-reorg \-fipa\-pta 
364 \&\-fipa\-pure\-const \-fipa\-reference \-fipa\-struct\-reorg 
365 \&\-fipa\-type\-escape \-fira\-algorithm=\fR\fIalgorithm\fR 
366 \&\fB\-fira\-region=\fR\fIregion\fR \fB\-fira\-coalesce 
367 \&\-fira\-loop\-pressure \-fno\-ira\-share\-save\-slots 
368 \&\-fno\-ira\-share\-spill\-slots \-fira\-verbose=\fR\fIn\fR 
369 \&\fB\-fivopts \-fkeep\-inline\-functions \-fkeep\-static\-consts 
370 \&\-floop\-block \-floop\-interchange \-floop\-strip\-mine \-fgraphite\-identity 
371 \&\-floop\-parallelize\-all \-flto \-flto\-compression\-level \-flto\-report \-fltrans 
372 \&\-fltrans\-output\-list \-fmerge\-all\-constants \-fmerge\-constants \-fmodulo\-sched 
373 \&\-fmodulo\-sched\-allow\-regmoves \-fmove\-loop\-invariants \-fmudflap 
374 \&\-fmudflapir \-fmudflapth \-fno\-branch\-count\-reg \-fno\-default\-inline 
375 \&\-fno\-defer\-pop \-fno\-function\-cse \-fno\-guess\-branch\-probability 
376 \&\-fno\-inline \-fno\-math\-errno \-fno\-peephole \-fno\-peephole2 
377 \&\-fno\-sched\-interblock \-fno\-sched\-spec \-fno\-signed\-zeros 
378 \&\-fno\-toplevel\-reorder \-fno\-trapping\-math \-fno\-zero\-initialized\-in\-bss 
379 \&\-fomit\-frame\-pointer \-foptimize\-register\-move \-foptimize\-sibling\-calls 
380 \&\-fpeel\-loops \-fpredictive\-commoning \-fprefetch\-loop\-arrays 
381 \&\-fprofile\-correction \-fprofile\-dir=\fR\fIpath\fR \fB\-fprofile\-generate 
382 \&\-fprofile\-generate=\fR\fIpath\fR 
383 \&\fB\-fprofile\-use \-fprofile\-use=\fR\fIpath\fR \fB\-fprofile\-values 
384 \&\-freciprocal\-math \-fregmove \-frename\-registers \-freorder\-blocks 
385 \&\-freorder\-blocks\-and\-partition \-freorder\-functions 
386 \&\-frerun\-cse\-after\-loop \-freschedule\-modulo\-scheduled\-loops 
387 \&\-frounding\-math \-fsched2\-use\-superblocks \-fsched\-pressure 
388 \&\-fsched\-spec\-load \-fsched\-spec\-load\-dangerous 
389 \&\-fsched\-stalled\-insns\-dep[=\fR\fIn\fR\fB] \-fsched\-stalled\-insns[=\fR\fIn\fR\fB] 
390 \&\-fsched\-group\-heuristic \-fsched\-critical\-path\-heuristic 
391 \&\-fsched\-spec\-insn\-heuristic \-fsched\-rank\-heuristic 
392 \&\-fsched\-last\-insn\-heuristic \-fsched\-dep\-count\-heuristic 
393 \&\-fschedule\-insns \-fschedule\-insns2 \-fsection\-anchors 
394 \&\-fselective\-scheduling \-fselective\-scheduling2 
395 \&\-fsel\-sched\-pipelining \-fsel\-sched\-pipelining\-outer\-loops 
396 \&\-fsignaling\-nans \-fsingle\-precision\-constant \-fsplit\-ivs\-in\-unroller 
397 \&\-fsplit\-wide\-types \-fstack\-protector \-fstack\-protector\-all 
398 \&\-fstrict\-aliasing \-fstrict\-overflow \-fthread\-jumps \-ftracer 
399 \&\-ftree\-builtin\-call\-dce \-ftree\-ccp \-ftree\-ch \-ftree\-copy\-prop 
400 \&\-ftree\-copyrename \-ftree\-dce 
401 \&\-ftree\-dominator\-opts \-ftree\-dse \-ftree\-forwprop \-ftree\-fre \-ftree\-loop\-im 
402 \&\-ftree\-phiprop \-ftree\-loop\-distribution 
403 \&\-ftree\-loop\-ivcanon \-ftree\-loop\-linear \-ftree\-loop\-optimize 
404 \&\-ftree\-parallelize\-loops=\fR\fIn\fR \fB\-ftree\-pre \-ftree\-pta \-ftree\-reassoc 
405 \&\-ftree\-sink \-ftree\-sra \-ftree\-switch\-conversion 
406 \&\-ftree\-ter \-ftree\-vect\-loop\-version \-ftree\-vectorize \-ftree\-vrp 
407 \&\-funit\-at\-a\-time \-funroll\-all\-loops \-funroll\-loops 
408 \&\-funsafe\-loop\-optimizations \-funsafe\-math\-optimizations \-funswitch\-loops 
409 \&\-fvariable\-expansion\-in\-unroller \-fvect\-cost\-model \-fvpt \-fweb 
410 \&\-fwhole\-program \-fwhopr \-fwpa \-fuse\-linker\-plugin 
411 \&\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR
412 \&\fB\-O  \-O0  \-O1  \-O2  \-O3  \-Os\fR
413 .IP "\fIPreprocessor Options\fR" 4
414 .IX Item "Preprocessor Options"
415 \&\fB\-A\fR\fIquestion\fR\fB=\fR\fIanswer\fR 
416 \&\fB\-A\-\fR\fIquestion\fR[\fB=\fR\fIanswer\fR] 
417 \&\fB\-C  \-dD  \-dI  \-dM  \-dN 
418 \&\-D\fR\fImacro\fR[\fB=\fR\fIdefn\fR]  \fB\-E  \-H 
419 \&\-idirafter\fR \fIdir\fR 
420 \&\fB\-include\fR \fIfile\fR  \fB\-imacros\fR \fIfile\fR 
421 \&\fB\-iprefix\fR \fIfile\fR  \fB\-iwithprefix\fR \fIdir\fR 
422 \&\fB\-iwithprefixbefore\fR \fIdir\fR  \fB\-isystem\fR \fIdir\fR 
423 \&\fB\-imultilib\fR \fIdir\fR \fB\-isysroot\fR \fIdir\fR 
424 \&\fB\-M  \-MM  \-MF  \-MG  \-MP  \-MQ  \-MT  \-nostdinc  
425 \&\-P  \-fworking\-directory  \-remap 
426 \&\-trigraphs  \-undef  \-U\fR\fImacro\fR  \fB\-Wp,\fR\fIoption\fR 
427 \&\fB\-Xpreprocessor\fR \fIoption\fR
428 .IP "\fIAssembler Option\fR" 4
429 .IX Item "Assembler Option"
430 \&\fB\-Wa,\fR\fIoption\fR  \fB\-Xassembler\fR \fIoption\fR
431 .IP "\fILinker Options\fR" 4
432 .IX Item "Linker Options"
433 \&\fIobject-file-name\fR  \fB\-l\fR\fIlibrary\fR 
434 \&\fB\-nostartfiles  \-nodefaultlibs  \-nostdlib \-pie \-rdynamic 
435 \&\-s  \-static  \-static\-libgcc  \-static\-libstdc++ \-shared  
436 \&\-shared\-libgcc  \-symbolic 
437 \&\-T\fR \fIscript\fR  \fB\-Wl,\fR\fIoption\fR  \fB\-Xlinker\fR \fIoption\fR 
438 \&\fB\-u\fR \fIsymbol\fR
439 .IP "\fIDirectory Options\fR" 4
440 .IX Item "Directory Options"
441 \&\fB\-B\fR\fIprefix\fR  \fB\-I\fR\fIdir\fR  \fB\-iquote\fR\fIdir\fR  \fB\-L\fR\fIdir\fR
442 \&\fB\-specs=\fR\fIfile\fR  \fB\-I\- \-\-sysroot=\fR\fIdir\fR
443 .IP "\fITarget Options\fR" 4
444 .IX Item "Target Options"
445 \&\fB\-V\fR \fIversion\fR  \fB\-b\fR \fImachine\fR
446 .IP "\fIMachine Dependent Options\fR" 4
447 .IX Item "Machine Dependent Options"
448 \&\fI\s-1ARC\s0 Options\fR
449 \&\fB\-EB  \-EL 
450 \&\-mmangle\-cpu  \-mcpu=\fR\fIcpu\fR  \fB\-mtext=\fR\fItext-section\fR 
451 \&\fB\-mdata=\fR\fIdata-section\fR  \fB\-mrodata=\fR\fIreadonly-data-section\fR
453 \&\fI\s-1ARM\s0 Options\fR
454 \&\fB\-mapcs\-frame  \-mno\-apcs\-frame 
455 \&\-mabi=\fR\fIname\fR 
456 \&\fB\-mapcs\-stack\-check  \-mno\-apcs\-stack\-check 
457 \&\-mapcs\-float  \-mno\-apcs\-float 
458 \&\-mapcs\-reentrant  \-mno\-apcs\-reentrant 
459 \&\-msched\-prolog  \-mno\-sched\-prolog 
460 \&\-mlittle\-endian  \-mbig\-endian  \-mwords\-little\-endian 
461 \&\-mfloat\-abi=\fR\fIname\fR  \fB\-msoft\-float  \-mhard\-float  \-mfpe 
462 \&\-mfp16\-format=\fR\fIname\fR
463 \&\fB\-mthumb\-interwork  \-mno\-thumb\-interwork 
464 \&\-mcpu=\fR\fIname\fR  \fB\-march=\fR\fIname\fR  \fB\-mfpu=\fR\fIname\fR  
465 \&\fB\-mstructure\-size\-boundary=\fR\fIn\fR 
466 \&\fB\-mabort\-on\-noreturn 
467 \&\-mlong\-calls  \-mno\-long\-calls 
468 \&\-msingle\-pic\-base  \-mno\-single\-pic\-base 
469 \&\-mpic\-register=\fR\fIreg\fR 
470 \&\fB\-mnop\-fun\-dllimport 
471 \&\-mcirrus\-fix\-invalid\-insns \-mno\-cirrus\-fix\-invalid\-insns 
472 \&\-mpoke\-function\-name 
473 \&\-mthumb  \-marm 
474 \&\-mtpcs\-frame  \-mtpcs\-leaf\-frame 
475 \&\-mcaller\-super\-interworking  \-mcallee\-super\-interworking 
476 \&\-mtp=\fR\fIname\fR 
477 \&\fB\-mword\-relocations 
478 \&\-mfix\-cortex\-m3\-ldrd\fR
480 \&\fI\s-1AVR\s0 Options\fR
481 \&\fB\-mmcu=\fR\fImcu\fR  \fB\-mno\-interrupts 
482 \&\-mcall\-prologues  \-mtiny\-stack  \-mint8\fR
484 \&\fIBlackfin Options\fR
485 \&\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR] 
486 \&\fB\-msim \-momit\-leaf\-frame\-pointer  \-mno\-omit\-leaf\-frame\-pointer 
487 \&\-mspecld\-anomaly  \-mno\-specld\-anomaly  \-mcsync\-anomaly  \-mno\-csync\-anomaly 
488 \&\-mlow\-64k \-mno\-low64k  \-mstack\-check\-l1  \-mid\-shared\-library 
489 \&\-mno\-id\-shared\-library  \-mshared\-library\-id=\fR\fIn\fR 
490 \&\fB\-mleaf\-id\-shared\-library  \-mno\-leaf\-id\-shared\-library 
491 \&\-msep\-data  \-mno\-sep\-data  \-mlong\-calls  \-mno\-long\-calls 
492 \&\-mfast\-fp \-minline\-plt \-mmulticore  \-mcorea  \-mcoreb  \-msdram 
493 \&\-micplb\fR
495 \&\fI\s-1CRIS\s0 Options\fR
496 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-march=\fR\fIcpu\fR  \fB\-mtune=\fR\fIcpu\fR 
497 \&\fB\-mmax\-stack\-frame=\fR\fIn\fR  \fB\-melinux\-stacksize=\fR\fIn\fR 
498 \&\fB\-metrax4  \-metrax100  \-mpdebug  \-mcc\-init  \-mno\-side\-effects 
499 \&\-mstack\-align  \-mdata\-align  \-mconst\-align 
500 \&\-m32\-bit  \-m16\-bit  \-m8\-bit  \-mno\-prologue\-epilogue  \-mno\-gotplt 
501 \&\-melf  \-maout  \-melinux  \-mlinux  \-sim  \-sim2 
502 \&\-mmul\-bug\-workaround  \-mno\-mul\-bug\-workaround\fR
504 \&\fI\s-1CRX\s0 Options\fR
505 \&\fB\-mmac \-mpush\-args\fR
507 \&\fIDarwin Options\fR
508 \&\fB\-all_load  \-allowable_client  \-arch  \-arch_errors_fatal 
509 \&\-arch_only  \-bind_at_load  \-bundle  \-bundle_loader 
510 \&\-client_name  \-compatibility_version  \-current_version 
511 \&\-dead_strip 
512 \&\-dependency\-file  \-dylib_file  \-dylinker_install_name 
513 \&\-dynamic  \-dynamiclib  \-exported_symbols_list 
514 \&\-filelist  \-flat_namespace  \-force_cpusubtype_ALL 
515 \&\-force_flat_namespace  \-headerpad_max_install_names 
516 \&\-iframework 
517 \&\-image_base  \-init  \-install_name  \-keep_private_externs 
518 \&\-multi_module  \-multiply_defined  \-multiply_defined_unused 
519 \&\-noall_load   \-no_dead_strip_inits_and_terms 
520 \&\-nofixprebinding \-nomultidefs  \-noprebind  \-noseglinkedit 
521 \&\-pagezero_size  \-prebind  \-prebind_all_twolevel_modules 
522 \&\-private_bundle  \-read_only_relocs  \-sectalign 
523 \&\-sectobjectsymbols  \-whyload  \-seg1addr 
524 \&\-sectcreate  \-sectobjectsymbols  \-sectorder 
525 \&\-segaddr \-segs_read_only_addr \-segs_read_write_addr 
526 \&\-seg_addr_table  \-seg_addr_table_filename  \-seglinkedit 
527 \&\-segprot  \-segs_read_only_addr  \-segs_read_write_addr 
528 \&\-single_module  \-static  \-sub_library  \-sub_umbrella 
529 \&\-twolevel_namespace  \-umbrella  \-undefined 
530 \&\-unexported_symbols_list  \-weak_reference_mismatches 
531 \&\-whatsloaded \-F \-gused \-gfull \-mmacosx\-version\-min=\fR\fIversion\fR 
532 \&\fB\-mkernel \-mone\-byte\-bool\fR
534 \&\fI\s-1DEC\s0 Alpha Options\fR
535 \&\fB\-mno\-fp\-regs  \-msoft\-float  \-malpha\-as  \-mgas 
536 \&\-mieee  \-mieee\-with\-inexact  \-mieee\-conformant 
537 \&\-mfp\-trap\-mode=\fR\fImode\fR  \fB\-mfp\-rounding\-mode=\fR\fImode\fR 
538 \&\fB\-mtrap\-precision=\fR\fImode\fR  \fB\-mbuild\-constants 
539 \&\-mcpu=\fR\fIcpu-type\fR  \fB\-mtune=\fR\fIcpu-type\fR 
540 \&\fB\-mbwx  \-mmax  \-mfix  \-mcix 
541 \&\-mfloat\-vax  \-mfloat\-ieee 
542 \&\-mexplicit\-relocs  \-msmall\-data  \-mlarge\-data 
543 \&\-msmall\-text  \-mlarge\-text 
544 \&\-mmemory\-latency=\fR\fItime\fR
546 \&\fI\s-1DEC\s0 Alpha/VMS Options\fR
547 \&\fB\-mvms\-return\-codes \-mdebug\-main=\fR\fIprefix\fR \fB\-mmalloc64\fR
549 \&\fI\s-1FR30\s0 Options\fR
550 \&\fB\-msmall\-model \-mno\-lsim\fR
552 \&\fI\s-1FRV\s0 Options\fR
553 \&\fB\-mgpr\-32  \-mgpr\-64  \-mfpr\-32  \-mfpr\-64 
554 \&\-mhard\-float  \-msoft\-float 
555 \&\-malloc\-cc  \-mfixed\-cc  \-mdword  \-mno\-dword 
556 \&\-mdouble  \-mno\-double 
557 \&\-mmedia  \-mno\-media  \-mmuladd  \-mno\-muladd 
558 \&\-mfdpic  \-minline\-plt \-mgprel\-ro  \-multilib\-library\-pic 
559 \&\-mlinked\-fp  \-mlong\-calls  \-malign\-labels 
560 \&\-mlibrary\-pic  \-macc\-4  \-macc\-8 
561 \&\-mpack  \-mno\-pack  \-mno\-eflags  \-mcond\-move  \-mno\-cond\-move 
562 \&\-moptimize\-membar \-mno\-optimize\-membar 
563 \&\-mscc  \-mno\-scc  \-mcond\-exec  \-mno\-cond\-exec 
564 \&\-mvliw\-branch  \-mno\-vliw\-branch 
565 \&\-mmulti\-cond\-exec  \-mno\-multi\-cond\-exec  \-mnested\-cond\-exec 
566 \&\-mno\-nested\-cond\-exec  \-mtomcat\-stats 
567 \&\-mTLS \-mtls 
568 \&\-mcpu=\fR\fIcpu\fR
570 \&\fIGNU/Linux Options\fR
571 \&\fB\-muclibc\fR
573 \&\fIH8/300 Options\fR
574 \&\fB\-mrelax  \-mh  \-ms  \-mn  \-mint32  \-malign\-300\fR
576 \&\fI\s-1HPPA\s0 Options\fR
577 \&\fB\-march=\fR\fIarchitecture-type\fR 
578 \&\fB\-mbig\-switch  \-mdisable\-fpregs  \-mdisable\-indexing 
579 \&\-mfast\-indirect\-calls  \-mgas  \-mgnu\-ld   \-mhp\-ld 
580 \&\-mfixed\-range=\fR\fIregister-range\fR 
581 \&\fB\-mjump\-in\-delay \-mlinker\-opt \-mlong\-calls 
582 \&\-mlong\-load\-store  \-mno\-big\-switch  \-mno\-disable\-fpregs 
583 \&\-mno\-disable\-indexing  \-mno\-fast\-indirect\-calls  \-mno\-gas 
584 \&\-mno\-jump\-in\-delay  \-mno\-long\-load\-store 
585 \&\-mno\-portable\-runtime  \-mno\-soft\-float 
586 \&\-mno\-space\-regs  \-msoft\-float  \-mpa\-risc\-1\-0 
587 \&\-mpa\-risc\-1\-1  \-mpa\-risc\-2\-0  \-mportable\-runtime 
588 \&\-mschedule=\fR\fIcpu-type\fR  \fB\-mspace\-regs  \-msio  \-mwsio 
589 \&\-munix=\fR\fIunix-std\fR  \fB\-nolibdld  \-static  \-threads\fR
591 \&\fIi386 and x86\-64 Options\fR
592 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
593 \&\fB\-mfpmath=\fR\fIunit\fR 
594 \&\fB\-masm=\fR\fIdialect\fR  \fB\-mno\-fancy\-math\-387 
595 \&\-mno\-fp\-ret\-in\-387  \-msoft\-float 
596 \&\-mno\-wide\-multiply  \-mrtd  \-malign\-double 
597 \&\-mpreferred\-stack\-boundary=\fR\fInum\fR
598 \&\fB\-mincoming\-stack\-boundary=\fR\fInum\fR
599 \&\fB\-mcld \-mcx16 \-msahf \-mmovbe \-mcrc32 \-mrecip 
600 \&\-mmmx  \-msse  \-msse2 \-msse3 \-mssse3 \-msse4.1 \-msse4.2 \-msse4 \-mavx 
601 \&\-maes \-mpclmul \-mfused\-madd 
602 \&\-msse4a \-m3dnow \-mpopcnt \-mabm \-mfma4 \-mxop \-mlwp 
603 \&\-mthreads  \-mno\-align\-stringops  \-minline\-all\-stringops 
604 \&\-minline\-stringops\-dynamically \-mstringop\-strategy=\fR\fIalg\fR 
605 \&\fB\-mpush\-args  \-maccumulate\-outgoing\-args  \-m128bit\-long\-double 
606 \&\-m96bit\-long\-double  \-mregparm=\fR\fInum\fR  \fB\-msseregparm 
607 \&\-mveclibabi=\fR\fItype\fR \fB\-mpc32 \-mpc64 \-mpc80 \-mstackrealign 
608 \&\-momit\-leaf\-frame\-pointer  \-mno\-red\-zone \-mno\-tls\-direct\-seg\-refs 
609 \&\-mcmodel=\fR\fIcode-model\fR \fB\-mabi=\fR\fIname\fR 
610 \&\fB\-m32  \-m64 \-mlarge\-data\-threshold=\fR\fInum\fR 
611 \&\fB\-msse2avx\fR
613 \&\fIi386 and x86\-64 Windows Options\fR
614 \&\fB\-mconsole \-mcygwin \-mno\-cygwin \-mdll
615 \&\-mnop\-fun\-dllimport \-mthread \-municode \-mwin32 \-mwindows
616 \&\-fno\-set\-stack\-executable\fR
618 \&\fI\s-1IA\-64\s0 Options\fR
619 \&\fB\-mbig\-endian  \-mlittle\-endian  \-mgnu\-as  \-mgnu\-ld  \-mno\-pic 
620 \&\-mvolatile\-asm\-stop  \-mregister\-names  \-msdata \-mno\-sdata 
621 \&\-mconstant\-gp  \-mauto\-pic  \-mfused\-madd 
622 \&\-minline\-float\-divide\-min\-latency 
623 \&\-minline\-float\-divide\-max\-throughput 
624 \&\-mno\-inline\-float\-divide 
625 \&\-minline\-int\-divide\-min\-latency 
626 \&\-minline\-int\-divide\-max\-throughput  
627 \&\-mno\-inline\-int\-divide 
628 \&\-minline\-sqrt\-min\-latency \-minline\-sqrt\-max\-throughput 
629 \&\-mno\-inline\-sqrt 
630 \&\-mdwarf2\-asm \-mearly\-stop\-bits 
631 \&\-mfixed\-range=\fR\fIregister-range\fR \fB\-mtls\-size=\fR\fItls-size\fR 
632 \&\fB\-mtune=\fR\fIcpu-type\fR \fB\-milp32 \-mlp64 
633 \&\-msched\-br\-data\-spec \-msched\-ar\-data\-spec \-msched\-control\-spec 
634 \&\-msched\-br\-in\-data\-spec \-msched\-ar\-in\-data\-spec \-msched\-in\-control\-spec 
635 \&\-msched\-spec\-ldc \-msched\-spec\-control\-ldc 
636 \&\-msched\-prefer\-non\-data\-spec\-insns \-msched\-prefer\-non\-control\-spec\-insns 
637 \&\-msched\-stop\-bits\-after\-every\-cycle \-msched\-count\-spec\-in\-critical\-path 
638 \&\-msel\-sched\-dont\-check\-control\-spec \-msched\-fp\-mem\-deps\-zero\-cost 
639 \&\-msched\-max\-memory\-insns\-hard\-limit \-msched\-max\-memory\-insns=\fR\fImax-insns\fR
641 \&\fI\s-1IA\-64/VMS\s0 Options\fR
642 \&\fB\-mvms\-return\-codes \-mdebug\-main=\fR\fIprefix\fR \fB\-mmalloc64\fR
644 \&\fI\s-1LM32\s0 Options\fR
645 \&\fB\-mbarrel\-shift\-enabled \-mdivide\-enabled \-mmultiply\-enabled 
646 \&\-msign\-extend\-enabled \-muser\-enabled\fR
648 \&\fIM32R/D Options\fR
649 \&\fB\-m32r2 \-m32rx \-m32r 
650 \&\-mdebug 
651 \&\-malign\-loops \-mno\-align\-loops 
652 \&\-missue\-rate=\fR\fInumber\fR 
653 \&\fB\-mbranch\-cost=\fR\fInumber\fR 
654 \&\fB\-mmodel=\fR\fIcode-size-model-type\fR 
655 \&\fB\-msdata=\fR\fIsdata-type\fR 
656 \&\fB\-mno\-flush\-func \-mflush\-func=\fR\fIname\fR 
657 \&\fB\-mno\-flush\-trap \-mflush\-trap=\fR\fInumber\fR 
658 \&\fB\-G\fR \fInum\fR
660 \&\fIM32C Options\fR
661 \&\fB\-mcpu=\fR\fIcpu\fR \fB\-msim \-memregs=\fR\fInumber\fR
663 \&\fIM680x0 Options\fR
664 \&\fB\-march=\fR\fIarch\fR  \fB\-mcpu=\fR\fIcpu\fR  \fB\-mtune=\fR\fItune\fR
665 \&\fB\-m68000  \-m68020  \-m68020\-40  \-m68020\-60  \-m68030  \-m68040 
666 \&\-m68060  \-mcpu32  \-m5200  \-m5206e  \-m528x  \-m5307  \-m5407 
667 \&\-mcfv4e  \-mbitfield  \-mno\-bitfield  \-mc68000  \-mc68020 
668 \&\-mnobitfield  \-mrtd  \-mno\-rtd  \-mdiv  \-mno\-div  \-mshort 
669 \&\-mno\-short  \-mhard\-float  \-m68881  \-msoft\-float  \-mpcrel 
670 \&\-malign\-int  \-mstrict\-align  \-msep\-data  \-mno\-sep\-data 
671 \&\-mshared\-library\-id=n  \-mid\-shared\-library  \-mno\-id\-shared\-library 
672 \&\-mxgot \-mno\-xgot\fR
674 \&\fIM68hc1x Options\fR
675 \&\fB\-m6811  \-m6812  \-m68hc11  \-m68hc12   \-m68hcs12 
676 \&\-mauto\-incdec  \-minmax  \-mlong\-calls  \-mshort 
677 \&\-msoft\-reg\-count=\fR\fIcount\fR
679 \&\fIMCore Options\fR
680 \&\fB\-mhardlit  \-mno\-hardlit  \-mdiv  \-mno\-div  \-mrelax\-immediates 
681 \&\-mno\-relax\-immediates  \-mwide\-bitfields  \-mno\-wide\-bitfields 
682 \&\-m4byte\-functions  \-mno\-4byte\-functions  \-mcallgraph\-data 
683 \&\-mno\-callgraph\-data  \-mslow\-bytes  \-mno\-slow\-bytes  \-mno\-lsim 
684 \&\-mlittle\-endian  \-mbig\-endian  \-m210  \-m340  \-mstack\-increment\fR
686 \&\fIMeP Options\fR
687 \&\fB\-mabsdiff \-mall\-opts \-maverage \-mbased=\fR\fIn\fR \fB\-mbitops 
688 \&\-mc=\fR\fIn\fR \fB\-mclip \-mconfig=\fR\fIname\fR \fB\-mcop \-mcop32 \-mcop64 \-mivc2 
689 \&\-mdc \-mdiv \-meb \-mel \-mio\-volatile \-ml \-mleadz \-mm \-mminmax 
690 \&\-mmult \-mno\-opts \-mrepeat \-ms \-msatur \-msdram \-msim \-msimnovec \-mtf 
691 \&\-mtiny=\fR\fIn\fR
693 \&\fI\s-1MIPS\s0 Options\fR
694 \&\fB\-EL  \-EB  \-march=\fR\fIarch\fR  \fB\-mtune=\fR\fIarch\fR 
695 \&\fB\-mips1  \-mips2  \-mips3  \-mips4  \-mips32  \-mips32r2 
696 \&\-mips64  \-mips64r2 
697 \&\-mips16  \-mno\-mips16  \-mflip\-mips16 
698 \&\-minterlink\-mips16  \-mno\-interlink\-mips16 
699 \&\-mabi=\fR\fIabi\fR  \fB\-mabicalls  \-mno\-abicalls 
700 \&\-mshared  \-mno\-shared  \-mplt  \-mno\-plt  \-mxgot  \-mno\-xgot 
701 \&\-mgp32  \-mgp64  \-mfp32  \-mfp64  \-mhard\-float  \-msoft\-float 
702 \&\-msingle\-float  \-mdouble\-float  \-mdsp  \-mno\-dsp  \-mdspr2  \-mno\-dspr2 
703 \&\-mfpu=\fR\fIfpu-type\fR 
704 \&\fB\-msmartmips  \-mno\-smartmips 
705 \&\-mpaired\-single  \-mno\-paired\-single  \-mdmx  \-mno\-mdmx 
706 \&\-mips3d  \-mno\-mips3d  \-mmt  \-mno\-mt  \-mllsc  \-mno\-llsc 
707 \&\-mlong64  \-mlong32  \-msym32  \-mno\-sym32 
708 \&\-G\fR\fInum\fR  \fB\-mlocal\-sdata  \-mno\-local\-sdata 
709 \&\-mextern\-sdata  \-mno\-extern\-sdata  \-mgpopt  \-mno\-gopt 
710 \&\-membedded\-data  \-mno\-embedded\-data 
711 \&\-muninit\-const\-in\-rodata  \-mno\-uninit\-const\-in\-rodata 
712 \&\-mcode\-readable=\fR\fIsetting\fR 
713 \&\fB\-msplit\-addresses  \-mno\-split\-addresses 
714 \&\-mexplicit\-relocs  \-mno\-explicit\-relocs 
715 \&\-mcheck\-zero\-division  \-mno\-check\-zero\-division 
716 \&\-mdivide\-traps  \-mdivide\-breaks 
717 \&\-mmemcpy  \-mno\-memcpy  \-mlong\-calls  \-mno\-long\-calls 
718 \&\-mmad  \-mno\-mad  \-mfused\-madd  \-mno\-fused\-madd  \-nocpp 
719 \&\-mfix\-r4000  \-mno\-fix\-r4000  \-mfix\-r4400  \-mno\-fix\-r4400 
720 \&\-mfix\-r10000 \-mno\-fix\-r10000  \-mfix\-vr4120  \-mno\-fix\-vr4120 
721 \&\-mfix\-vr4130  \-mno\-fix\-vr4130  \-mfix\-sb1  \-mno\-fix\-sb1 
722 \&\-mflush\-func=\fR\fIfunc\fR  \fB\-mno\-flush\-func 
723 \&\-mbranch\-cost=\fR\fInum\fR  \fB\-mbranch\-likely  \-mno\-branch\-likely 
724 \&\-mfp\-exceptions \-mno\-fp\-exceptions 
725 \&\-mvr4130\-align \-mno\-vr4130\-align \-msynci \-mno\-synci 
726 \&\-mrelax\-pic\-calls \-mno\-relax\-pic\-calls \-mmcount\-ra\-address\fR
728 \&\fI\s-1MMIX\s0 Options\fR
729 \&\fB\-mlibfuncs  \-mno\-libfuncs  \-mepsilon  \-mno\-epsilon  \-mabi=gnu 
730 \&\-mabi=mmixware  \-mzero\-extend  \-mknuthdiv  \-mtoplevel\-symbols 
731 \&\-melf  \-mbranch\-predict  \-mno\-branch\-predict  \-mbase\-addresses 
732 \&\-mno\-base\-addresses  \-msingle\-exit  \-mno\-single\-exit\fR
734 \&\fI\s-1MN10300\s0 Options\fR
735 \&\fB\-mmult\-bug  \-mno\-mult\-bug 
736 \&\-mam33  \-mno\-am33 
737 \&\-mam33\-2  \-mno\-am33\-2 
738 \&\-mreturn\-pointer\-on\-d0 
739 \&\-mno\-crt0  \-mrelax\fR
741 \&\fI\s-1PDP\-11\s0 Options\fR
742 \&\fB\-mfpu  \-msoft\-float  \-mac0  \-mno\-ac0  \-m40  \-m45  \-m10 
743 \&\-mbcopy  \-mbcopy\-builtin  \-mint32  \-mno\-int16 
744 \&\-mint16  \-mno\-int32  \-mfloat32  \-mno\-float64 
745 \&\-mfloat64  \-mno\-float32  \-mabshi  \-mno\-abshi 
746 \&\-mbranch\-expensive  \-mbranch\-cheap 
747 \&\-msplit  \-mno\-split  \-munix\-asm  \-mdec\-asm\fR
749 \&\fIpicoChip Options\fR
750 \&\fB\-mae=\fR\fIae_type\fR \fB\-mvliw\-lookahead=\fR\fIN\fR
751 \&\fB\-msymbol\-as\-address \-mno\-inefficient\-warnings\fR
753 \&\fIPowerPC Options\fR
754 See \s-1RS/6000\s0 and PowerPC Options.
756 \&\fI\s-1RS/6000\s0 and PowerPC Options\fR
757 \&\fB\-mcpu=\fR\fIcpu-type\fR 
758 \&\fB\-mtune=\fR\fIcpu-type\fR 
759 \&\fB\-mpower  \-mno\-power  \-mpower2  \-mno\-power2 
760 \&\-mpowerpc  \-mpowerpc64  \-mno\-powerpc 
761 \&\-maltivec  \-mno\-altivec 
762 \&\-mpowerpc\-gpopt  \-mno\-powerpc\-gpopt 
763 \&\-mpowerpc\-gfxopt  \-mno\-powerpc\-gfxopt 
764 \&\-mmfcrf  \-mno\-mfcrf  \-mpopcntb  \-mno\-popcntb \-mpopcntd \-mno\-popcntd 
765 \&\-mfprnd  \-mno\-fprnd 
766 \&\-mcmpb \-mno\-cmpb \-mmfpgpr \-mno\-mfpgpr \-mhard\-dfp \-mno\-hard\-dfp 
767 \&\-mnew\-mnemonics  \-mold\-mnemonics 
768 \&\-mfull\-toc   \-mminimal\-toc  \-mno\-fp\-in\-toc  \-mno\-sum\-in\-toc 
769 \&\-m64  \-m32  \-mxl\-compat  \-mno\-xl\-compat  \-mpe 
770 \&\-malign\-power  \-malign\-natural 
771 \&\-msoft\-float  \-mhard\-float  \-mmultiple  \-mno\-multiple 
772 \&\-msingle\-float \-mdouble\-float \-msimple\-fpu 
773 \&\-mstring  \-mno\-string  \-mupdate  \-mno\-update 
774 \&\-mavoid\-indexed\-addresses  \-mno\-avoid\-indexed\-addresses 
775 \&\-mfused\-madd  \-mno\-fused\-madd  \-mbit\-align  \-mno\-bit\-align 
776 \&\-mstrict\-align  \-mno\-strict\-align  \-mrelocatable 
777 \&\-mno\-relocatable  \-mrelocatable\-lib  \-mno\-relocatable\-lib 
778 \&\-mtoc  \-mno\-toc  \-mlittle  \-mlittle\-endian  \-mbig  \-mbig\-endian 
779 \&\-mdynamic\-no\-pic  \-maltivec \-mswdiv 
780 \&\-mprioritize\-restricted\-insns=\fR\fIpriority\fR 
781 \&\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR 
782 \&\fB\-minsert\-sched\-nops=\fR\fIscheme\fR 
783 \&\fB\-mcall\-sysv  \-mcall\-netbsd 
784 \&\-maix\-struct\-return  \-msvr4\-struct\-return 
785 \&\-mabi=\fR\fIabi-type\fR \fB\-msecure\-plt \-mbss\-plt 
786 \&\-misel \-mno\-isel 
787 \&\-misel=yes  \-misel=no 
788 \&\-mspe \-mno\-spe 
789 \&\-mspe=yes  \-mspe=no 
790 \&\-mpaired 
791 \&\-mgen\-cell\-microcode \-mwarn\-cell\-microcode 
792 \&\-mvrsave \-mno\-vrsave 
793 \&\-mmulhw \-mno\-mulhw 
794 \&\-mdlmzb \-mno\-dlmzb 
795 \&\-mfloat\-gprs=yes  \-mfloat\-gprs=no \-mfloat\-gprs=single \-mfloat\-gprs=double 
796 \&\-mprototype  \-mno\-prototype 
797 \&\-msim  \-mmvme  \-mads  \-myellowknife  \-memb  \-msdata 
798 \&\-msdata=\fR\fIopt\fR  \fB\-mvxworks  \-G\fR \fInum\fR  \fB\-pthread\fR
800 \&\fI\s-1RX\s0 Options\fR
801 \&\fB\-m64bit\-doubles  \-m32bit\-doubles  \-fpu  \-nofpu
802 \&\-mcpu= \-patch=
803 \&\-mbig\-endian\-data \-mlittle\-endian\-data 
804 \&\-msmall\-data 
805 \&\-msim  \-mno\-sim
806 \&\-mas100\-syntax \-mno\-as100\-syntax
807 \&\-mrelax
808 \&\-mmax\-constant\-size=
809 \&\-mint\-register=
810 \&\-msave\-acc\-in\-interrupts\fR
812 \&\fIS/390 and zSeries Options\fR
813 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
814 \&\fB\-mhard\-float  \-msoft\-float  \-mhard\-dfp \-mno\-hard\-dfp 
815 \&\-mlong\-double\-64 \-mlong\-double\-128 
816 \&\-mbackchain  \-mno\-backchain \-mpacked\-stack  \-mno\-packed\-stack 
817 \&\-msmall\-exec  \-mno\-small\-exec  \-mmvcle \-mno\-mvcle 
818 \&\-m64  \-m31  \-mdebug  \-mno\-debug  \-mesa  \-mzarch 
819 \&\-mtpf\-trace \-mno\-tpf\-trace  \-mfused\-madd  \-mno\-fused\-madd 
820 \&\-mwarn\-framesize  \-mwarn\-dynamicstack  \-mstack\-size \-mstack\-guard\fR
822 \&\fIScore Options\fR
823 \&\fB\-meb \-mel 
824 \&\-mnhwloop 
825 \&\-muls 
826 \&\-mmac 
827 \&\-mscore5 \-mscore5u \-mscore7 \-mscore7d\fR
829 \&\fI\s-1SH\s0 Options\fR
830 \&\fB\-m1  \-m2  \-m2e 
831 \&\-m2a\-nofpu \-m2a\-single\-only \-m2a\-single \-m2a 
832 \&\-m3  \-m3e 
833 \&\-m4\-nofpu  \-m4\-single\-only  \-m4\-single  \-m4 
834 \&\-m4a\-nofpu \-m4a\-single\-only \-m4a\-single \-m4a \-m4al 
835 \&\-m5\-64media  \-m5\-64media\-nofpu 
836 \&\-m5\-32media  \-m5\-32media\-nofpu 
837 \&\-m5\-compact  \-m5\-compact\-nofpu 
838 \&\-mb  \-ml  \-mdalign  \-mrelax 
839 \&\-mbigtable \-mfmovd \-mhitachi \-mrenesas \-mno\-renesas \-mnomacsave 
840 \&\-mieee  \-mbitops  \-misize  \-minline\-ic_invalidate \-mpadstruct  \-mspace 
841 \&\-mprefergot  \-musermode \-multcost=\fR\fInumber\fR \fB\-mdiv=\fR\fIstrategy\fR 
842 \&\fB\-mdivsi3_libfunc=\fR\fIname\fR \fB\-mfixed\-range=\fR\fIregister-range\fR 
843 \&\fB\-madjust\-unroll \-mindexed\-addressing \-mgettrcost=\fR\fInumber\fR \fB\-mpt\-fixed 
844 \&\-minvalid\-symbols\fR
846 \&\fI\s-1SPARC\s0 Options\fR
847 \&\fB\-mcpu=\fR\fIcpu-type\fR 
848 \&\fB\-mtune=\fR\fIcpu-type\fR 
849 \&\fB\-mcmodel=\fR\fIcode-model\fR 
850 \&\fB\-m32  \-m64  \-mapp\-regs  \-mno\-app\-regs 
851 \&\-mfaster\-structs  \-mno\-faster\-structs 
852 \&\-mfpu  \-mno\-fpu  \-mhard\-float  \-msoft\-float 
853 \&\-mhard\-quad\-float  \-msoft\-quad\-float 
854 \&\-mimpure\-text  \-mno\-impure\-text  \-mlittle\-endian 
855 \&\-mstack\-bias  \-mno\-stack\-bias 
856 \&\-munaligned\-doubles  \-mno\-unaligned\-doubles 
857 \&\-mv8plus  \-mno\-v8plus  \-mvis  \-mno\-vis
858 \&\-threads \-pthreads \-pthread\fR
860 \&\fI\s-1SPU\s0 Options\fR
861 \&\fB\-mwarn\-reloc \-merror\-reloc 
862 \&\-msafe\-dma \-munsafe\-dma 
863 \&\-mbranch\-hints 
864 \&\-msmall\-mem \-mlarge\-mem \-mstdmain 
865 \&\-mfixed\-range=\fR\fIregister-range\fR 
866 \&\fB\-mea32 \-mea64 
867 \&\-maddress\-space\-conversion \-mno\-address\-space\-conversion 
868 \&\-mcache\-size=\fR\fIcache-size\fR 
869 \&\fB\-matomic\-updates \-mno\-atomic\-updates\fR
871 \&\fISystem V Options\fR
872 \&\fB\-Qy  \-Qn  \-YP,\fR\fIpaths\fR  \fB\-Ym,\fR\fIdir\fR
874 \&\fIV850 Options\fR
875 \&\fB\-mlong\-calls  \-mno\-long\-calls  \-mep  \-mno\-ep 
876 \&\-mprolog\-function  \-mno\-prolog\-function  \-mspace 
877 \&\-mtda=\fR\fIn\fR  \fB\-msda=\fR\fIn\fR  \fB\-mzda=\fR\fIn\fR 
878 \&\fB\-mapp\-regs  \-mno\-app\-regs 
879 \&\-mdisable\-callt  \-mno\-disable\-callt 
880 \&\-mv850e1 
881 \&\-mv850e 
882 \&\-mv850  \-mbig\-switch\fR
884 \&\fI\s-1VAX\s0 Options\fR
885 \&\fB\-mg  \-mgnu  \-munix\fR
887 \&\fIVxWorks Options\fR
888 \&\fB\-mrtp  \-non\-static  \-Bstatic  \-Bdynamic 
889 \&\-Xbind\-lazy  \-Xbind\-now\fR
891 \&\fIx86\-64 Options\fR
892 See i386 and x86\-64 Options.
894 \&\fIXstormy16 Options\fR
895 \&\fB\-msim\fR
897 \&\fIXtensa Options\fR
898 \&\fB\-mconst16 \-mno\-const16 
899 \&\-mfused\-madd  \-mno\-fused\-madd 
900 \&\-mserialize\-volatile  \-mno\-serialize\-volatile 
901 \&\-mtext\-section\-literals  \-mno\-text\-section\-literals 
902 \&\-mtarget\-align  \-mno\-target\-align 
903 \&\-mlongcalls  \-mno\-longcalls\fR
905 \&\fIzSeries Options\fR
906 See S/390 and zSeries Options.
907 .IP "\fICode Generation Options\fR" 4
908 .IX Item "Code Generation Options"
909 \&\fB\-fcall\-saved\-\fR\fIreg\fR  \fB\-fcall\-used\-\fR\fIreg\fR 
910 \&\fB\-ffixed\-\fR\fIreg\fR  \fB\-fexceptions 
911 \&\-fnon\-call\-exceptions  \-funwind\-tables 
912 \&\-fasynchronous\-unwind\-tables 
913 \&\-finhibit\-size\-directive  \-finstrument\-functions 
914 \&\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,... 
915 \&\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,... 
916 \&\-fno\-common  \-fno\-ident 
917 \&\-fpcc\-struct\-return  \-fpic  \-fPIC \-fpie \-fPIE 
918 \&\-fno\-jump\-tables 
919 \&\-frecord\-gcc\-switches 
920 \&\-freg\-struct\-return  \-fshort\-enums 
921 \&\-fshort\-double  \-fshort\-wchar 
922 \&\-fverbose\-asm  \-fpack\-struct[=\fR\fIn\fR\fB]  \-fstack\-check 
923 \&\-fstack\-limit\-register=\fR\fIreg\fR  \fB\-fstack\-limit\-symbol=\fR\fIsym\fR 
924 \&\fB\-fno\-stack\-limit  \-fargument\-alias  \-fargument\-noalias 
925 \&\-fargument\-noalias\-global  \-fargument\-noalias\-anything 
926 \&\-fleading\-underscore  \-ftls\-model=\fR\fImodel\fR 
927 \&\fB\-ftrapv  \-fwrapv  \-fbounds\-check 
928 \&\-fvisibility\fR
929 .Sh "Options Controlling the Kind of Output"
930 .IX Subsection "Options Controlling the Kind of Output"
931 Compilation can involve up to four stages: preprocessing, compilation
932 proper, assembly and linking, always in that order.  \s-1GCC\s0 is capable of
933 preprocessing and compiling several files either into several
934 assembler input files, or into one assembler input file; then each
935 assembler input file produces an object file, and linking combines all
936 the object files (those newly compiled, and those specified as input)
937 into an executable file.
939 For any given input file, the file name suffix determines what kind of
940 compilation is done:
941 .IP "\fIfile\fR\fB.c\fR" 4
942 .IX Item "file.c"
943 C source code which must be preprocessed.
944 .IP "\fIfile\fR\fB.i\fR" 4
945 .IX Item "file.i"
946 C source code which should not be preprocessed.
947 .IP "\fIfile\fR\fB.ii\fR" 4
948 .IX Item "file.ii"
949 \&\*(C+ source code which should not be preprocessed.
950 .IP "\fIfile\fR\fB.m\fR" 4
951 .IX Item "file.m"
952 Objective-C source code.  Note that you must link with the \fIlibobjc\fR
953 library to make an Objective-C program work.
954 .IP "\fIfile\fR\fB.mi\fR" 4
955 .IX Item "file.mi"
956 Objective-C source code which should not be preprocessed.
957 .IP "\fIfile\fR\fB.mm\fR" 4
958 .IX Item "file.mm"
959 .PD 0
960 .IP "\fIfile\fR\fB.M\fR" 4
961 .IX Item "file.M"
963 Objective\-\*(C+ source code.  Note that you must link with the \fIlibobjc\fR
964 library to make an Objective\-\*(C+ program work.  Note that \fB.M\fR refers
965 to a literal capital M.
966 .IP "\fIfile\fR\fB.mii\fR" 4
967 .IX Item "file.mii"
968 Objective\-\*(C+ source code which should not be preprocessed.
969 .IP "\fIfile\fR\fB.h\fR" 4
970 .IX Item "file.h"
971 C, \*(C+, Objective-C or Objective\-\*(C+ header file to be turned into a
972 precompiled header.
973 .IP "\fIfile\fR\fB.cc\fR" 4
974 .IX Item "file.cc"
975 .PD 0
976 .IP "\fIfile\fR\fB.cp\fR" 4
977 .IX Item "file.cp"
978 .IP "\fIfile\fR\fB.cxx\fR" 4
979 .IX Item "file.cxx"
980 .IP "\fIfile\fR\fB.cpp\fR" 4
981 .IX Item "file.cpp"
982 .IP "\fIfile\fR\fB.CPP\fR" 4
983 .IX Item "file.CPP"
984 .IP "\fIfile\fR\fB.c++\fR" 4
985 .IX Item "file.c++"
986 .IP "\fIfile\fR\fB.C\fR" 4
987 .IX Item "file.C"
989 \&\*(C+ source code which must be preprocessed.  Note that in \fB.cxx\fR,
990 the last two letters must both be literally \fBx\fR.  Likewise,
991 \&\fB.C\fR refers to a literal capital C.
992 .IP "\fIfile\fR\fB.mm\fR" 4
993 .IX Item "file.mm"
994 .PD 0
995 .IP "\fIfile\fR\fB.M\fR" 4
996 .IX Item "file.M"
998 Objective\-\*(C+ source code which must be preprocessed.
999 .IP "\fIfile\fR\fB.mii\fR" 4
1000 .IX Item "file.mii"
1001 Objective\-\*(C+ source code which should not be preprocessed.
1002 .IP "\fIfile\fR\fB.hh\fR" 4
1003 .IX Item "file.hh"
1004 .PD 0
1005 .IP "\fIfile\fR\fB.H\fR" 4
1006 .IX Item "file.H"
1007 .IP "\fIfile\fR\fB.hp\fR" 4
1008 .IX Item "file.hp"
1009 .IP "\fIfile\fR\fB.hxx\fR" 4
1010 .IX Item "file.hxx"
1011 .IP "\fIfile\fR\fB.hpp\fR" 4
1012 .IX Item "file.hpp"
1013 .IP "\fIfile\fR\fB.HPP\fR" 4
1014 .IX Item "file.HPP"
1015 .IP "\fIfile\fR\fB.h++\fR" 4
1016 .IX Item "file.h++"
1017 .IP "\fIfile\fR\fB.tcc\fR" 4
1018 .IX Item "file.tcc"
1020 \&\*(C+ header file to be turned into a precompiled header.
1021 .IP "\fIfile\fR\fB.f\fR" 4
1022 .IX Item "file.f"
1023 .PD 0
1024 .IP "\fIfile\fR\fB.for\fR" 4
1025 .IX Item "file.for"
1026 .IP "\fIfile\fR\fB.ftn\fR" 4
1027 .IX Item "file.ftn"
1029 Fixed form Fortran source code which should not be preprocessed.
1030 .IP "\fIfile\fR\fB.F\fR" 4
1031 .IX Item "file.F"
1032 .PD 0
1033 .IP "\fIfile\fR\fB.FOR\fR" 4
1034 .IX Item "file.FOR"
1035 .IP "\fIfile\fR\fB.fpp\fR" 4
1036 .IX Item "file.fpp"
1037 .IP "\fIfile\fR\fB.FPP\fR" 4
1038 .IX Item "file.FPP"
1039 .IP "\fIfile\fR\fB.FTN\fR" 4
1040 .IX Item "file.FTN"
1042 Fixed form Fortran source code which must be preprocessed (with the traditional
1043 preprocessor).
1044 .IP "\fIfile\fR\fB.f90\fR" 4
1045 .IX Item "file.f90"
1046 .PD 0
1047 .IP "\fIfile\fR\fB.f95\fR" 4
1048 .IX Item "file.f95"
1049 .IP "\fIfile\fR\fB.f03\fR" 4
1050 .IX Item "file.f03"
1051 .IP "\fIfile\fR\fB.f08\fR" 4
1052 .IX Item "file.f08"
1054 Free form Fortran source code which should not be preprocessed.
1055 .IP "\fIfile\fR\fB.F90\fR" 4
1056 .IX Item "file.F90"
1057 .PD 0
1058 .IP "\fIfile\fR\fB.F95\fR" 4
1059 .IX Item "file.F95"
1060 .IP "\fIfile\fR\fB.F03\fR" 4
1061 .IX Item "file.F03"
1062 .IP "\fIfile\fR\fB.F08\fR" 4
1063 .IX Item "file.F08"
1065 Free form Fortran source code which must be preprocessed (with the
1066 traditional preprocessor).
1067 .IP "\fIfile\fR\fB.ads\fR" 4
1068 .IX Item "file.ads"
1069 Ada source code file which contains a library unit declaration (a
1070 declaration of a package, subprogram, or generic, or a generic
1071 instantiation), or a library unit renaming declaration (a package,
1072 generic, or subprogram renaming declaration).  Such files are also
1073 called \fIspecs\fR.
1074 .IP "\fIfile\fR\fB.adb\fR" 4
1075 .IX Item "file.adb"
1076 Ada source code file containing a library unit body (a subprogram or
1077 package body).  Such files are also called \fIbodies\fR.
1078 .IP "\fIfile\fR\fB.s\fR" 4
1079 .IX Item "file.s"
1080 Assembler code.
1081 .IP "\fIfile\fR\fB.S\fR" 4
1082 .IX Item "file.S"
1083 .PD 0
1084 .IP "\fIfile\fR\fB.sx\fR" 4
1085 .IX Item "file.sx"
1087 Assembler code which must be preprocessed.
1088 .IP "\fIother\fR" 4
1089 .IX Item "other"
1090 An object file to be fed straight into linking.
1091 Any file name with no recognized suffix is treated this way.
1093 You can specify the input language explicitly with the \fB\-x\fR option:
1094 .IP "\fB\-x\fR \fIlanguage\fR" 4
1095 .IX Item "-x language"
1096 Specify explicitly the \fIlanguage\fR for the following input files
1097 (rather than letting the compiler choose a default based on the file
1098 name suffix).  This option applies to all following input files until
1099 the next \fB\-x\fR option.  Possible values for \fIlanguage\fR are:
1101 .Vb 8
1102 \&        c  c-header  c-cpp-output
1103 \&        c++  c++-header  c++-cpp-output
1104 \&        objective-c  objective-c-header  objective-c-cpp-output
1105 \&        objective-c++ objective-c++-header objective-c++-cpp-output
1106 \&        assembler  assembler-with-cpp
1107 \&        ada
1108 \&        f77  f77-cpp-input f95  f95-cpp-input
1109 \&        java
1111 .IP "\fB\-x none\fR" 4
1112 .IX Item "-x none"
1113 Turn off any specification of a language, so that subsequent files are
1114 handled according to their file name suffixes (as they are if \fB\-x\fR
1115 has not been used at all).
1116 .IP "\fB\-pass\-exit\-codes\fR" 4
1117 .IX Item "-pass-exit-codes"
1118 Normally the \fBgcc\fR program will exit with the code of 1 if any
1119 phase of the compiler returns a non-success return code.  If you specify
1120 \&\fB\-pass\-exit\-codes\fR, the \fBgcc\fR program will instead return with
1121 numerically highest error produced by any phase that returned an error
1122 indication.  The C, \*(C+, and Fortran frontends return 4, if an internal
1123 compiler error is encountered.
1125 If you only want some of the stages of compilation, you can use
1126 \&\fB\-x\fR (or filename suffixes) to tell \fBgcc\fR where to start, and
1127 one of the options \fB\-c\fR, \fB\-S\fR, or \fB\-E\fR to say where
1128 \&\fBgcc\fR is to stop.  Note that some combinations (for example,
1129 \&\fB\-x cpp-output \-E\fR) instruct \fBgcc\fR to do nothing at all.
1130 .IP "\fB\-c\fR" 4
1131 .IX Item "-c"
1132 Compile or assemble the source files, but do not link.  The linking
1133 stage simply is not done.  The ultimate output is in the form of an
1134 object file for each source file.
1136 By default, the object file name for a source file is made by replacing
1137 the suffix \fB.c\fR, \fB.i\fR, \fB.s\fR, etc., with \fB.o\fR.
1139 Unrecognized input files, not requiring compilation or assembly, are
1140 ignored.
1141 .IP "\fB\-S\fR" 4
1142 .IX Item "-S"
1143 Stop after the stage of compilation proper; do not assemble.  The output
1144 is in the form of an assembler code file for each non-assembler input
1145 file specified.
1147 By default, the assembler file name for a source file is made by
1148 replacing the suffix \fB.c\fR, \fB.i\fR, etc., with \fB.s\fR.
1150 Input files that don't require compilation are ignored.
1151 .IP "\fB\-E\fR" 4
1152 .IX Item "-E"
1153 Stop after the preprocessing stage; do not run the compiler proper.  The
1154 output is in the form of preprocessed source code, which is sent to the
1155 standard output.
1157 Input files which don't require preprocessing are ignored.
1158 .IP "\fB\-o\fR \fIfile\fR" 4
1159 .IX Item "-o file"
1160 Place output in file \fIfile\fR.  This applies regardless to whatever
1161 sort of output is being produced, whether it be an executable file,
1162 an object file, an assembler file or preprocessed C code.
1164 If \fB\-o\fR is not specified, the default is to put an executable
1165 file in \fIa.out\fR, the object file for
1166 \&\fI\fIsource\fI.\fIsuffix\fI\fR in \fI\fIsource\fI.o\fR, its
1167 assembler file in \fI\fIsource\fI.s\fR, a precompiled header file in
1168 \&\fI\fIsource\fI.\fIsuffix\fI.gch\fR, and all preprocessed C source on
1169 standard output.
1170 .IP "\fB\-v\fR" 4
1171 .IX Item "-v"
1172 Print (on standard error output) the commands executed to run the stages
1173 of compilation.  Also print the version number of the compiler driver
1174 program and of the preprocessor and the compiler proper.
1175 .IP "\fB\-###\fR" 4
1176 .IX Item "-###"
1177 Like \fB\-v\fR except the commands are not executed and all command
1178 arguments are quoted.  This is useful for shell scripts to capture the
1179 driver-generated command lines.
1180 .IP "\fB\-pipe\fR" 4
1181 .IX Item "-pipe"
1182 Use pipes rather than temporary files for communication between the
1183 various stages of compilation.  This fails to work on some systems where
1184 the assembler is unable to read from a pipe; but the \s-1GNU\s0 assembler has
1185 no trouble.
1186 .IP "\fB\-combine\fR" 4
1187 .IX Item "-combine"
1188 If you are compiling multiple source files, this option tells the driver
1189 to pass all the source files to the compiler at once (for those
1190 languages for which the compiler can handle this).  This will allow
1191 intermodule analysis (\s-1IMA\s0) to be performed by the compiler.  Currently the only
1192 language for which this is supported is C.  If you pass source files for
1193 multiple languages to the driver, using this option, the driver will invoke
1194 the compiler(s) that support \s-1IMA\s0 once each, passing each compiler all the
1195 source files appropriate for it.  For those languages that do not support
1196 \&\s-1IMA\s0 this option will be ignored, and the compiler will be invoked once for
1197 each source file in that language.  If you use this option in conjunction
1198 with \fB\-save\-temps\fR, the compiler will generate multiple
1199 pre-processed files
1200 (one for each source file), but only one (combined) \fI.o\fR or
1201 \&\fI.s\fR file.
1202 .IP "\fB\-\-help\fR" 4
1203 .IX Item "--help"
1204 Print (on the standard output) a description of the command line options
1205 understood by \fBgcc\fR.  If the \fB\-v\fR option is also specified
1206 then \fB\-\-help\fR will also be passed on to the various processes
1207 invoked by \fBgcc\fR, so that they can display the command line options
1208 they accept.  If the \fB\-Wextra\fR option has also been specified
1209 (prior to the \fB\-\-help\fR option), then command line options which
1210 have no documentation associated with them will also be displayed.
1211 .IP "\fB\-\-target\-help\fR" 4
1212 .IX Item "--target-help"
1213 Print (on the standard output) a description of target-specific command
1214 line options for each tool.  For some targets extra target-specific
1215 information may also be printed.
1216 .IP "\fB\-\-help={\fR\fIclass\fR|[\fB^\fR]\fIqualifier\fR\fB}\fR[\fB,...\fR]" 4
1217 .IX Item "--help={class|[^]qualifier}[,...]"
1218 Print (on the standard output) a description of the command line
1219 options understood by the compiler that fit into all specified classes
1220 and qualifiers.  These are the supported classes:
1221 .RS 4
1222 .IP "\fBoptimizers\fR" 4
1223 .IX Item "optimizers"
1224 This will display all of the optimization options supported by the
1225 compiler.
1226 .IP "\fBwarnings\fR" 4
1227 .IX Item "warnings"
1228 This will display all of the options controlling warning messages
1229 produced by the compiler.
1230 .IP "\fBtarget\fR" 4
1231 .IX Item "target"
1232 This will display target-specific options.  Unlike the
1233 \&\fB\-\-target\-help\fR option however, target-specific options of the
1234 linker and assembler will not be displayed.  This is because those
1235 tools do not currently support the extended \fB\-\-help=\fR syntax.
1236 .IP "\fBparams\fR" 4
1237 .IX Item "params"
1238 This will display the values recognized by the \fB\-\-param\fR
1239 option.
1240 .IP "\fIlanguage\fR" 4
1241 .IX Item "language"
1242 This will display the options supported for \fIlanguage\fR, where
1243 \&\fIlanguage\fR is the name of one of the languages supported in this
1244 version of \s-1GCC\s0.
1245 .IP "\fBcommon\fR" 4
1246 .IX Item "common"
1247 This will display the options that are common to all languages.
1249 .RS 4
1251 These are the supported qualifiers:
1252 .IP "\fBundocumented\fR" 4
1253 .IX Item "undocumented"
1254 Display only those options which are undocumented.
1255 .IP "\fBjoined\fR" 4
1256 .IX Item "joined"
1257 Display options which take an argument that appears after an equal
1258 sign in the same continuous piece of text, such as:
1259 \&\fB\-\-help=target\fR.
1260 .IP "\fBseparate\fR" 4
1261 .IX Item "separate"
1262 Display options which take an argument that appears as a separate word
1263 following the original option, such as: \fB\-o output-file\fR.
1265 .RS 4
1267 Thus for example to display all the undocumented target-specific
1268 switches supported by the compiler the following can be used:
1270 .Vb 1
1271 \&        --help=target,undocumented
1274 The sense of a qualifier can be inverted by prefixing it with the
1275 \&\fB^\fR character, so for example to display all binary warning
1276 options (i.e., ones that are either on or off and that do not take an
1277 argument), which have a description the following can be used:
1279 .Vb 1
1280 \&        --help=warnings,^joined,^undocumented
1283 The argument to \fB\-\-help=\fR should not consist solely of inverted
1284 qualifiers.
1286 Combining several classes is possible, although this usually
1287 restricts the output by so much that there is nothing to display.  One
1288 case where it does work however is when one of the classes is
1289 \&\fItarget\fR.  So for example to display all the target-specific
1290 optimization options the following can be used:
1292 .Vb 1
1293 \&        --help=target,optimizers
1296 The \fB\-\-help=\fR option can be repeated on the command line.  Each
1297 successive use will display its requested class of options, skipping
1298 those that have already been displayed.
1300 If the \fB\-Q\fR option appears on the command line before the
1301 \&\fB\-\-help=\fR option, then the descriptive text displayed by
1302 \&\fB\-\-help=\fR is changed.  Instead of describing the displayed
1303 options, an indication is given as to whether the option is enabled,
1304 disabled or set to a specific value (assuming that the compiler
1305 knows this at the point where the \fB\-\-help=\fR option is used).
1307 Here is a truncated example from the \s-1ARM\s0 port of \fBgcc\fR:
1309 .Vb 5
1310 \&          % gcc -Q -mabi=2 --help=target -c
1311 \&          The following options are target specific:
1312 \&          -mabi=                                2
1313 \&          -mabort-on-noreturn                   [disabled]
1314 \&          -mapcs                                [disabled]
1317 The output is sensitive to the effects of previous command line
1318 options, so for example it is possible to find out which optimizations
1319 are enabled at \fB\-O2\fR by using:
1321 .Vb 1
1322 \&        -Q -O2 --help=optimizers
1325 Alternatively you can discover which binary optimizations are enabled
1326 by \fB\-O3\fR by using:
1328 .Vb 3
1329 \&        gcc -c -Q -O3 --help=optimizers > /tmp/O3-opts
1330 \&        gcc -c -Q -O2 --help=optimizers > /tmp/O2-opts
1331 \&        diff /tmp/O2-opts /tmp/O3-opts | grep enabled
1334 .IP "\fB\-no\-canonical\-prefixes\fR" 4
1335 .IX Item "-no-canonical-prefixes"
1336 Do not expand any symbolic links, resolve references to \fB/../\fR
1337 or \fB/./\fR, or make the path absolute when generating a relative
1338 prefix.
1339 .IP "\fB\-\-version\fR" 4
1340 .IX Item "--version"
1341 Display the version number and copyrights of the invoked \s-1GCC\s0.
1342 .IP "\fB\-wrapper\fR" 4
1343 .IX Item "-wrapper"
1344 Invoke all subcommands under a wrapper program. It takes a single
1345 comma separated list as an argument, which will be used to invoke
1346 the wrapper:
1348 .Vb 1
1349 \&        gcc -c t.c -wrapper gdb,--args
1352 This will invoke all subprograms of gcc under \*(L"gdb \-\-args\*(R",
1353 thus cc1 invocation will be \*(L"gdb \-\-args cc1 ...\*(R".
1354 .IP "\fB\-fplugin=\fR\fIname\fR\fB.so\fR" 4
1355 .IX Item "-fplugin=name.so"
1356 Load the plugin code in file \fIname\fR.so, assumed to be a
1357 shared object to be dlopen'd by the compiler.  The base name of
1358 the shared object file is used to identify the plugin for the
1359 purposes of argument parsing (See
1360 \&\fB\-fplugin\-arg\-\fR\fIname\fR\fB\-\fR\fIkey\fR\fB=\fR\fIvalue\fR below).
1361 Each plugin should define the callback functions specified in the
1362 Plugins \s-1API\s0.
1363 .IP "\fB\-fplugin\-arg\-\fR\fIname\fR\fB\-\fR\fIkey\fR\fB=\fR\fIvalue\fR" 4
1364 .IX Item "-fplugin-arg-name-key=value"
1365 Define an argument called \fIkey\fR with a value of \fIvalue\fR
1366 for the plugin called \fIname\fR.
1367 .IP "\fB@\fR\fIfile\fR" 4
1368 .IX Item "@file"
1369 Read command-line options from \fIfile\fR.  The options read are
1370 inserted in place of the original @\fIfile\fR option.  If \fIfile\fR
1371 does not exist, or cannot be read, then the option will be treated
1372 literally, and not removed.  
1374 Options in \fIfile\fR are separated by whitespace.  A whitespace
1375 character may be included in an option by surrounding the entire
1376 option in either single or double quotes.  Any character (including a
1377 backslash) may be included by prefixing the character to be included
1378 with a backslash.  The \fIfile\fR may itself contain additional
1379 @\fIfile\fR options; any such options will be processed recursively.
1380 .Sh "Compiling \*(C+ Programs"
1381 .IX Subsection "Compiling  Programs"
1382 \&\*(C+ source files conventionally use one of the suffixes \fB.C\fR,
1383 \&\fB.cc\fR, \fB.cpp\fR, \fB.CPP\fR, \fB.c++\fR, \fB.cp\fR, or
1384 \&\fB.cxx\fR; \*(C+ header files often use \fB.hh\fR, \fB.hpp\fR,
1385 \&\fB.H\fR, or (for shared template code) \fB.tcc\fR; and
1386 preprocessed \*(C+ files use the suffix \fB.ii\fR.  \s-1GCC\s0 recognizes
1387 files with these names and compiles them as \*(C+ programs even if you
1388 call the compiler the same way as for compiling C programs (usually
1389 with the name \fBgcc\fR).
1391 However, the use of \fBgcc\fR does not add the \*(C+ library.
1392 \&\fBg++\fR is a program that calls \s-1GCC\s0 and treats \fB.c\fR,
1393 \&\fB.h\fR and \fB.i\fR files as \*(C+ source files instead of C source
1394 files unless \fB\-x\fR is used, and automatically specifies linking
1395 against the \*(C+ library.  This program is also useful when
1396 precompiling a C header file with a \fB.h\fR extension for use in \*(C+
1397 compilations.  On many systems, \fBg++\fR is also installed with
1398 the name \fBc++\fR.
1400 When you compile \*(C+ programs, you may specify many of the same
1401 command-line options that you use for compiling programs in any
1402 language; or command-line options meaningful for C and related
1403 languages; or options that are meaningful only for \*(C+ programs.
1404 .Sh "Options Controlling C Dialect"
1405 .IX Subsection "Options Controlling C Dialect"
1406 The following options control the dialect of C (or languages derived
1407 from C, such as \*(C+, Objective-C and Objective\-\*(C+) that the compiler
1408 accepts:
1409 .IP "\fB\-ansi\fR" 4
1410 .IX Item "-ansi"
1411 In C mode, this is equivalent to \fB\-std=c90\fR. In \*(C+ mode, it is
1412 equivalent to \fB\-std=c++98\fR.
1414 This turns off certain features of \s-1GCC\s0 that are incompatible with \s-1ISO\s0
1415 C90 (when compiling C code), or of standard \*(C+ (when compiling \*(C+ code),
1416 such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, and
1417 predefined macros such as \f(CW\*(C`unix\*(C'\fR and \f(CW\*(C`vax\*(C'\fR that identify the
1418 type of system you are using.  It also enables the undesirable and
1419 rarely used \s-1ISO\s0 trigraph feature.  For the C compiler,
1420 it disables recognition of \*(C+ style \fB//\fR comments as well as
1421 the \f(CW\*(C`inline\*(C'\fR keyword.
1423 The alternate keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_extension_\|_\*(C'\fR,
1424 \&\f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR continue to work despite
1425 \&\fB\-ansi\fR.  You would not want to use them in an \s-1ISO\s0 C program, of
1426 course, but it is useful to put them in header files that might be included
1427 in compilations done with \fB\-ansi\fR.  Alternate predefined macros
1428 such as \f(CW\*(C`_\|_unix_\|_\*(C'\fR and \f(CW\*(C`_\|_vax_\|_\*(C'\fR are also available, with or
1429 without \fB\-ansi\fR.
1431 The \fB\-ansi\fR option does not cause non-ISO programs to be
1432 rejected gratuitously.  For that, \fB\-pedantic\fR is required in
1433 addition to \fB\-ansi\fR.  
1435 The macro \f(CW\*(C`_\|_STRICT_ANSI_\|_\*(C'\fR is predefined when the \fB\-ansi\fR
1436 option is used.  Some header files may notice this macro and refrain
1437 from declaring certain functions or defining certain macros that the
1438 \&\s-1ISO\s0 standard doesn't call for; this is to avoid interfering with any
1439 programs that might use these names for other things.
1441 Functions that would normally be built in but do not have semantics
1442 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
1443 functions when \fB\-ansi\fR is used.  
1444 .IP "\fB\-std=\fR" 4
1445 .IX Item "-std="
1446 Determine the language standard.   This option
1447 is currently only supported when compiling C or \*(C+.
1449 The compiler can accept several base standards, such as \fBc90\fR or
1450 \&\fBc++98\fR, and \s-1GNU\s0 dialects of those standards, such as
1451 \&\fBgnu90\fR or \fBgnu++98\fR.  By specifying a base standard, the
1452 compiler will accept all programs following that standard and those
1453 using \s-1GNU\s0 extensions that do not contradict it.  For example,
1454 \&\fB\-std=c90\fR turns off certain features of \s-1GCC\s0 that are
1455 incompatible with \s-1ISO\s0 C90, such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR
1456 keywords, but not other \s-1GNU\s0 extensions that do not have a meaning in
1457 \&\s-1ISO\s0 C90, such as omitting the middle term of a \f(CW\*(C`?:\*(C'\fR
1458 expression. On the other hand, by specifying a \s-1GNU\s0 dialect of a
1459 standard, all features the compiler support are enabled, even when
1460 those features change the meaning of the base standard and some
1461 strict-conforming programs may be rejected.  The particular standard
1462 is used by \fB\-pedantic\fR to identify which features are \s-1GNU\s0
1463 extensions given that version of the standard. For example
1464 \&\fB\-std=gnu90 \-pedantic\fR would warn about \*(C+ style \fB//\fR
1465 comments, while \fB\-std=gnu99 \-pedantic\fR would not.
1467 A value for this option must be provided; possible values are
1468 .RS 4
1469 .IP "\fBc90\fR" 4
1470 .IX Item "c90"
1471 .PD 0
1472 .IP "\fBc89\fR" 4
1473 .IX Item "c89"
1474 .IP "\fBiso9899:1990\fR" 4
1475 .IX Item "iso9899:1990"
1477 Support all \s-1ISO\s0 C90 programs (certain \s-1GNU\s0 extensions that conflict
1478 with \s-1ISO\s0 C90 are disabled). Same as \fB\-ansi\fR for C code.
1479 .IP "\fBiso9899:199409\fR" 4
1480 .IX Item "iso9899:199409"
1481 \&\s-1ISO\s0 C90 as modified in amendment 1.
1482 .IP "\fBc99\fR" 4
1483 .IX Item "c99"
1484 .PD 0
1485 .IP "\fBc9x\fR" 4
1486 .IX Item "c9x"
1487 .IP "\fBiso9899:1999\fR" 4
1488 .IX Item "iso9899:1999"
1489 .IP "\fBiso9899:199x\fR" 4
1490 .IX Item "iso9899:199x"
1492 \&\s-1ISO\s0 C99.  Note that this standard is not yet fully supported; see
1493 <\fBhttp://gcc.gnu.org/gcc\-4.5/c99status.html\fR> for more information.  The
1494 names \fBc9x\fR and \fBiso9899:199x\fR are deprecated.
1495 .IP "\fBgnu90\fR" 4
1496 .IX Item "gnu90"
1497 .PD 0
1498 .IP "\fBgnu89\fR" 4
1499 .IX Item "gnu89"
1501 \&\s-1GNU\s0 dialect of \s-1ISO\s0 C90 (including some C99 features). This
1502 is the default for C code.
1503 .IP "\fBgnu99\fR" 4
1504 .IX Item "gnu99"
1505 .PD 0
1506 .IP "\fBgnu9x\fR" 4
1507 .IX Item "gnu9x"
1509 \&\s-1GNU\s0 dialect of \s-1ISO\s0 C99.  When \s-1ISO\s0 C99 is fully implemented in \s-1GCC\s0,
1510 this will become the default.  The name \fBgnu9x\fR is deprecated.
1511 .IP "\fBc++98\fR" 4
1512 .IX Item "c++98"
1513 The 1998 \s-1ISO\s0 \*(C+ standard plus amendments. Same as \fB\-ansi\fR for
1514 \&\*(C+ code.
1515 .IP "\fBgnu++98\fR" 4
1516 .IX Item "gnu++98"
1517 \&\s-1GNU\s0 dialect of \fB\-std=c++98\fR.  This is the default for
1518 \&\*(C+ code.
1519 .IP "\fBc++0x\fR" 4
1520 .IX Item "c++0x"
1521 The working draft of the upcoming \s-1ISO\s0 \*(C+0x standard. This option
1522 enables experimental features that are likely to be included in
1523 \&\*(C+0x. The working draft is constantly changing, and any feature that is
1524 enabled by this flag may be removed from future versions of \s-1GCC\s0 if it is
1525 not part of the \*(C+0x standard.
1526 .IP "\fBgnu++0x\fR" 4
1527 .IX Item "gnu++0x"
1528 \&\s-1GNU\s0 dialect of \fB\-std=c++0x\fR. This option enables
1529 experimental features that may be removed in future versions of \s-1GCC\s0.
1531 .RS 4
1533 .IP "\fB\-fgnu89\-inline\fR" 4
1534 .IX Item "-fgnu89-inline"
1535 The option \fB\-fgnu89\-inline\fR tells \s-1GCC\s0 to use the traditional
1536 \&\s-1GNU\s0 semantics for \f(CW\*(C`inline\*(C'\fR functions when in C99 mode.
1537   This option
1538 is accepted and ignored by \s-1GCC\s0 versions 4.1.3 up to but not including
1539 4.3.  In \s-1GCC\s0 versions 4.3 and later it changes the behavior of \s-1GCC\s0 in
1540 C99 mode.  Using this option is roughly equivalent to adding the
1541 \&\f(CW\*(C`gnu_inline\*(C'\fR function attribute to all inline functions.
1543 The option \fB\-fno\-gnu89\-inline\fR explicitly tells \s-1GCC\s0 to use the
1544 C99 semantics for \f(CW\*(C`inline\*(C'\fR when in C99 or gnu99 mode (i.e., it
1545 specifies the default behavior).  This option was first supported in
1546 \&\s-1GCC\s0 4.3.  This option is not supported in \fB\-std=c90\fR or
1547 \&\fB\-std=gnu90\fR mode.
1549 The preprocessor macros \f(CW\*(C`_\|_GNUC_GNU_INLINE_\|_\*(C'\fR and
1550 \&\f(CW\*(C`_\|_GNUC_STDC_INLINE_\|_\*(C'\fR may be used to check which semantics are
1551 in effect for \f(CW\*(C`inline\*(C'\fR functions.  
1552 .IP "\fB\-aux\-info\fR \fIfilename\fR" 4
1553 .IX Item "-aux-info filename"
1554 Output to the given filename prototyped declarations for all functions
1555 declared and/or defined in a translation unit, including those in header
1556 files.  This option is silently ignored in any language other than C.
1558 Besides declarations, the file indicates, in comments, the origin of
1559 each declaration (source file and line), whether the declaration was
1560 implicit, prototyped or unprototyped (\fBI\fR, \fBN\fR for new or
1561 \&\fBO\fR for old, respectively, in the first character after the line
1562 number and the colon), and whether it came from a declaration or a
1563 definition (\fBC\fR or \fBF\fR, respectively, in the following
1564 character).  In the case of function definitions, a K&R\-style list of
1565 arguments followed by their declarations is also provided, inside
1566 comments, after the declaration.
1567 .IP "\fB\-fno\-asm\fR" 4
1568 .IX Item "-fno-asm"
1569 Do not recognize \f(CW\*(C`asm\*(C'\fR, \f(CW\*(C`inline\*(C'\fR or \f(CW\*(C`typeof\*(C'\fR as a
1570 keyword, so that code can use these words as identifiers.  You can use
1571 the keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR
1572 instead.  \fB\-ansi\fR implies \fB\-fno\-asm\fR.
1574 In \*(C+, this switch only affects the \f(CW\*(C`typeof\*(C'\fR keyword, since
1575 \&\f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`inline\*(C'\fR are standard keywords.  You may want to
1576 use the \fB\-fno\-gnu\-keywords\fR flag instead, which has the same
1577 effect.  In C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this
1578 switch only affects the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, since
1579 \&\f(CW\*(C`inline\*(C'\fR is a standard keyword in \s-1ISO\s0 C99.
1580 .IP "\fB\-fno\-builtin\fR" 4
1581 .IX Item "-fno-builtin"
1582 .PD 0
1583 .IP "\fB\-fno\-builtin\-\fR\fIfunction\fR" 4
1584 .IX Item "-fno-builtin-function"
1586 Don't recognize built-in functions that do not begin with
1587 \&\fB_\|_builtin_\fR as prefix.  
1589 \&\s-1GCC\s0 normally generates special code to handle certain built-in functions
1590 more efficiently; for instance, calls to \f(CW\*(C`alloca\*(C'\fR may become single
1591 instructions that adjust the stack directly, and calls to \f(CW\*(C`memcpy\*(C'\fR
1592 may become inline copy loops.  The resulting code is often both smaller
1593 and faster, but since the function calls no longer appear as such, you
1594 cannot set a breakpoint on those calls, nor can you change the behavior
1595 of the functions by linking with a different library.  In addition,
1596 when a function is recognized as a built-in function, \s-1GCC\s0 may use
1597 information about that function to warn about problems with calls to
1598 that function, or to generate more efficient code, even if the
1599 resulting code still contains calls to that function.  For example,
1600 warnings are given with \fB\-Wformat\fR for bad calls to
1601 \&\f(CW\*(C`printf\*(C'\fR, when \f(CW\*(C`printf\*(C'\fR is built in, and \f(CW\*(C`strlen\*(C'\fR is
1602 known not to modify global memory.
1604 With the \fB\-fno\-builtin\-\fR\fIfunction\fR option
1605 only the built-in function \fIfunction\fR is
1606 disabled.  \fIfunction\fR must not begin with \fB_\|_builtin_\fR.  If a
1607 function is named that is not built-in in this version of \s-1GCC\s0, this
1608 option is ignored.  There is no corresponding
1609 \&\fB\-fbuiltin\-\fR\fIfunction\fR option; if you wish to enable
1610 built-in functions selectively when using \fB\-fno\-builtin\fR or
1611 \&\fB\-ffreestanding\fR, you may define macros such as:
1613 .Vb 2
1614 \&        #define abs(n)          __builtin_abs ((n))
1615 \&        #define strcpy(d, s)    __builtin_strcpy ((d), (s))
1617 .IP "\fB\-fhosted\fR" 4
1618 .IX Item "-fhosted"
1619 Assert that compilation takes place in a hosted environment.  This implies
1620 \&\fB\-fbuiltin\fR.  A hosted environment is one in which the
1621 entire standard library is available, and in which \f(CW\*(C`main\*(C'\fR has a return
1622 type of \f(CW\*(C`int\*(C'\fR.  Examples are nearly everything except a kernel.
1623 This is equivalent to \fB\-fno\-freestanding\fR.
1624 .IP "\fB\-ffreestanding\fR" 4
1625 .IX Item "-ffreestanding"
1626 Assert that compilation takes place in a freestanding environment.  This
1627 implies \fB\-fno\-builtin\fR.  A freestanding environment
1628 is one in which the standard library may not exist, and program startup may
1629 not necessarily be at \f(CW\*(C`main\*(C'\fR.  The most obvious example is an \s-1OS\s0 kernel.
1630 This is equivalent to \fB\-fno\-hosted\fR.
1631 .IP "\fB\-fopenmp\fR" 4
1632 .IX Item "-fopenmp"
1633 Enable handling of OpenMP directives \f(CW\*(C`#pragma omp\*(C'\fR in C/\*(C+ and
1634 \&\f(CW\*(C`!$omp\*(C'\fR in Fortran.  When \fB\-fopenmp\fR is specified, the
1635 compiler generates parallel code according to the OpenMP Application
1636 Program Interface v3.0 <\fBhttp://www.openmp.org/\fR>.  This option
1637 implies \fB\-pthread\fR, and thus is only supported on targets that
1638 have support for \fB\-pthread\fR.
1639 .IP "\fB\-fms\-extensions\fR" 4
1640 .IX Item "-fms-extensions"
1641 Accept some non-standard constructs used in Microsoft header files.
1643 Some cases of unnamed fields in structures and unions are only
1644 accepted with this option.  
1645 .IP "\fB\-trigraphs\fR" 4
1646 .IX Item "-trigraphs"
1647 Support \s-1ISO\s0 C trigraphs.  The \fB\-ansi\fR option (and \fB\-std\fR
1648 options for strict \s-1ISO\s0 C conformance) implies \fB\-trigraphs\fR.
1649 .IP "\fB\-no\-integrated\-cpp\fR" 4
1650 .IX Item "-no-integrated-cpp"
1651 Performs a compilation in two passes: preprocessing and compiling.  This
1652 option allows a user supplied \*(L"cc1\*(R", \*(L"cc1plus\*(R", or \*(L"cc1obj\*(R" via the
1653 \&\fB\-B\fR option.  The user supplied compilation step can then add in
1654 an additional preprocessing step after normal preprocessing but before
1655 compiling.  The default is to use the integrated cpp (internal cpp)
1657 The semantics of this option will change if \*(L"cc1\*(R", \*(L"cc1plus\*(R", and
1658 \&\*(L"cc1obj\*(R" are merged.
1659 .IP "\fB\-traditional\fR" 4
1660 .IX Item "-traditional"
1661 .PD 0
1662 .IP "\fB\-traditional\-cpp\fR" 4
1663 .IX Item "-traditional-cpp"
1665 Formerly, these options caused \s-1GCC\s0 to attempt to emulate a pre-standard
1666 C compiler.  They are now only supported with the \fB\-E\fR switch.
1667 The preprocessor continues to support a pre-standard mode.  See the \s-1GNU\s0
1668 \&\s-1CPP\s0 manual for details.
1669 .IP "\fB\-fcond\-mismatch\fR" 4
1670 .IX Item "-fcond-mismatch"
1671 Allow conditional expressions with mismatched types in the second and
1672 third arguments.  The value of such an expression is void.  This option
1673 is not supported for \*(C+.
1674 .IP "\fB\-flax\-vector\-conversions\fR" 4
1675 .IX Item "-flax-vector-conversions"
1676 Allow implicit conversions between vectors with differing numbers of
1677 elements and/or incompatible element types.  This option should not be
1678 used for new code.
1679 .IP "\fB\-funsigned\-char\fR" 4
1680 .IX Item "-funsigned-char"
1681 Let the type \f(CW\*(C`char\*(C'\fR be unsigned, like \f(CW\*(C`unsigned char\*(C'\fR.
1683 Each kind of machine has a default for what \f(CW\*(C`char\*(C'\fR should
1684 be.  It is either like \f(CW\*(C`unsigned char\*(C'\fR by default or like
1685 \&\f(CW\*(C`signed char\*(C'\fR by default.
1687 Ideally, a portable program should always use \f(CW\*(C`signed char\*(C'\fR or
1688 \&\f(CW\*(C`unsigned char\*(C'\fR when it depends on the signedness of an object.
1689 But many programs have been written to use plain \f(CW\*(C`char\*(C'\fR and
1690 expect it to be signed, or expect it to be unsigned, depending on the
1691 machines they were written for.  This option, and its inverse, let you
1692 make such a program work with the opposite default.
1694 The type \f(CW\*(C`char\*(C'\fR is always a distinct type from each of
1695 \&\f(CW\*(C`signed char\*(C'\fR or \f(CW\*(C`unsigned char\*(C'\fR, even though its behavior
1696 is always just like one of those two.
1697 .IP "\fB\-fsigned\-char\fR" 4
1698 .IX Item "-fsigned-char"
1699 Let the type \f(CW\*(C`char\*(C'\fR be signed, like \f(CW\*(C`signed char\*(C'\fR.
1701 Note that this is equivalent to \fB\-fno\-unsigned\-char\fR, which is
1702 the negative form of \fB\-funsigned\-char\fR.  Likewise, the option
1703 \&\fB\-fno\-signed\-char\fR is equivalent to \fB\-funsigned\-char\fR.
1704 .IP "\fB\-fsigned\-bitfields\fR" 4
1705 .IX Item "-fsigned-bitfields"
1706 .PD 0
1707 .IP "\fB\-funsigned\-bitfields\fR" 4
1708 .IX Item "-funsigned-bitfields"
1709 .IP "\fB\-fno\-signed\-bitfields\fR" 4
1710 .IX Item "-fno-signed-bitfields"
1711 .IP "\fB\-fno\-unsigned\-bitfields\fR" 4
1712 .IX Item "-fno-unsigned-bitfields"
1714 These options control whether a bit-field is signed or unsigned, when the
1715 declaration does not use either \f(CW\*(C`signed\*(C'\fR or \f(CW\*(C`unsigned\*(C'\fR.  By
1716 default, such a bit-field is signed, because this is consistent: the
1717 basic integer types such as \f(CW\*(C`int\*(C'\fR are signed types.
1718 .Sh "Options Controlling \*(C+ Dialect"
1719 .IX Subsection "Options Controlling  Dialect"
1720 This section describes the command-line options that are only meaningful
1721 for \*(C+ programs; but you can also use most of the \s-1GNU\s0 compiler options
1722 regardless of what language your program is in.  For example, you
1723 might compile a file \f(CW\*(C`firstClass.C\*(C'\fR like this:
1725 .Vb 1
1726 \&        g++ -g -frepo -O -c firstClass.C
1729 In this example, only \fB\-frepo\fR is an option meant
1730 only for \*(C+ programs; you can use the other options with any
1731 language supported by \s-1GCC\s0.
1733 Here is a list of options that are \fIonly\fR for compiling \*(C+ programs:
1734 .IP "\fB\-fabi\-version=\fR\fIn\fR" 4
1735 .IX Item "-fabi-version=n"
1736 Use version \fIn\fR of the \*(C+ \s-1ABI\s0.  Version 2 is the version of the
1737 \&\*(C+ \s-1ABI\s0 that first appeared in G++ 3.4.  Version 1 is the version of
1738 the \*(C+ \s-1ABI\s0 that first appeared in G++ 3.2.  Version 0 will always be
1739 the version that conforms most closely to the \*(C+ \s-1ABI\s0 specification.
1740 Therefore, the \s-1ABI\s0 obtained using version 0 will change as \s-1ABI\s0 bugs
1741 are fixed.
1743 The default is version 2.
1745 Version 3 corrects an error in mangling a constant address as a
1746 template argument.
1748 Version 4 implements a standard mangling for vector types.
1750 See also \fB\-Wabi\fR.
1751 .IP "\fB\-fno\-access\-control\fR" 4
1752 .IX Item "-fno-access-control"
1753 Turn off all access checking.  This switch is mainly useful for working
1754 around bugs in the access control code.
1755 .IP "\fB\-fcheck\-new\fR" 4
1756 .IX Item "-fcheck-new"
1757 Check that the pointer returned by \f(CW\*(C`operator new\*(C'\fR is non-null
1758 before attempting to modify the storage allocated.  This check is
1759 normally unnecessary because the \*(C+ standard specifies that
1760 \&\f(CW\*(C`operator new\*(C'\fR will only return \f(CW0\fR if it is declared
1761 \&\fB\f(BIthrow()\fB\fR, in which case the compiler will always check the
1762 return value even without this option.  In all other cases, when
1763 \&\f(CW\*(C`operator new\*(C'\fR has a non-empty exception specification, memory
1764 exhaustion is signalled by throwing \f(CW\*(C`std::bad_alloc\*(C'\fR.  See also
1765 \&\fBnew (nothrow)\fR.
1766 .IP "\fB\-fconserve\-space\fR" 4
1767 .IX Item "-fconserve-space"
1768 Put uninitialized or runtime-initialized global variables into the
1769 common segment, as C does.  This saves space in the executable at the
1770 cost of not diagnosing duplicate definitions.  If you compile with this
1771 flag and your program mysteriously crashes after \f(CW\*(C`main()\*(C'\fR has
1772 completed, you may have an object that is being destroyed twice because
1773 two definitions were merged.
1775 This option is no longer useful on most targets, now that support has
1776 been added for putting variables into \s-1BSS\s0 without making them common.
1777 .IP "\fB\-fno\-deduce\-init\-list\fR" 4
1778 .IX Item "-fno-deduce-init-list"
1779 Disable deduction of a template type parameter as
1780 std::initializer_list from a brace-enclosed initializer list, i.e.
1782 .Vb 4
1783 \&        template <class T> auto forward(T t) -> decltype (realfn (t))
1784 \&        {
1785 \&          return realfn (t);
1786 \&        }
1789 .Vb 4
1790 \&        void f()
1791 \&        {
1792 \&          forward({1,2}); // call forward<std::initializer_list<int>>
1793 \&        }
1796 This option is present because this deduction is an extension to the
1797 current specification in the \*(C+0x working draft, and there was
1798 some concern about potential overload resolution problems.
1799 .IP "\fB\-ffriend\-injection\fR" 4
1800 .IX Item "-ffriend-injection"
1801 Inject friend functions into the enclosing namespace, so that they are
1802 visible outside the scope of the class in which they are declared.
1803 Friend functions were documented to work this way in the old Annotated
1804 \&\*(C+ Reference Manual, and versions of G++ before 4.1 always worked
1805 that way.  However, in \s-1ISO\s0 \*(C+ a friend function which is not declared
1806 in an enclosing scope can only be found using argument dependent
1807 lookup.  This option causes friends to be injected as they were in
1808 earlier releases.
1810 This option is for compatibility, and may be removed in a future
1811 release of G++.
1812 .IP "\fB\-fno\-elide\-constructors\fR" 4
1813 .IX Item "-fno-elide-constructors"
1814 The \*(C+ standard allows an implementation to omit creating a temporary
1815 which is only used to initialize another object of the same type.
1816 Specifying this option disables that optimization, and forces G++ to
1817 call the copy constructor in all cases.
1818 .IP "\fB\-fno\-enforce\-eh\-specs\fR" 4
1819 .IX Item "-fno-enforce-eh-specs"
1820 Don't generate code to check for violation of exception specifications
1821 at runtime.  This option violates the \*(C+ standard, but may be useful
1822 for reducing code size in production builds, much like defining
1823 \&\fB\s-1NDEBUG\s0\fR.  This does not give user code permission to throw
1824 exceptions in violation of the exception specifications; the compiler
1825 will still optimize based on the specifications, so throwing an
1826 unexpected exception will result in undefined behavior.
1827 .IP "\fB\-ffor\-scope\fR" 4
1828 .IX Item "-ffor-scope"
1829 .PD 0
1830 .IP "\fB\-fno\-for\-scope\fR" 4
1831 .IX Item "-fno-for-scope"
1833 If \fB\-ffor\-scope\fR is specified, the scope of variables declared in
1834 a \fIfor-init-statement\fR is limited to the \fBfor\fR loop itself,
1835 as specified by the \*(C+ standard.
1836 If \fB\-fno\-for\-scope\fR is specified, the scope of variables declared in
1837 a \fIfor-init-statement\fR extends to the end of the enclosing scope,
1838 as was the case in old versions of G++, and other (traditional)
1839 implementations of \*(C+.
1841 The default if neither flag is given to follow the standard,
1842 but to allow and give a warning for old-style code that would
1843 otherwise be invalid, or have different behavior.
1844 .IP "\fB\-fno\-gnu\-keywords\fR" 4
1845 .IX Item "-fno-gnu-keywords"
1846 Do not recognize \f(CW\*(C`typeof\*(C'\fR as a keyword, so that code can use this
1847 word as an identifier.  You can use the keyword \f(CW\*(C`_\|_typeof_\|_\*(C'\fR instead.
1848 \&\fB\-ansi\fR implies \fB\-fno\-gnu\-keywords\fR.
1849 .IP "\fB\-fno\-implicit\-templates\fR" 4
1850 .IX Item "-fno-implicit-templates"
1851 Never emit code for non-inline templates which are instantiated
1852 implicitly (i.e. by use); only emit code for explicit instantiations.
1853 .IP "\fB\-fno\-implicit\-inline\-templates\fR" 4
1854 .IX Item "-fno-implicit-inline-templates"
1855 Don't emit code for implicit instantiations of inline templates, either.
1856 The default is to handle inlines differently so that compiles with and
1857 without optimization will need the same set of explicit instantiations.
1858 .IP "\fB\-fno\-implement\-inlines\fR" 4
1859 .IX Item "-fno-implement-inlines"
1860 To save space, do not emit out-of-line copies of inline functions
1861 controlled by \fB#pragma implementation\fR.  This will cause linker
1862 errors if these functions are not inlined everywhere they are called.
1863 .IP "\fB\-fms\-extensions\fR" 4
1864 .IX Item "-fms-extensions"
1865 Disable pedantic warnings about constructs used in \s-1MFC\s0, such as implicit
1866 int and getting a pointer to member function via non-standard syntax.
1867 .IP "\fB\-fno\-nonansi\-builtins\fR" 4
1868 .IX Item "-fno-nonansi-builtins"
1869 Disable built-in declarations of functions that are not mandated by
1870 \&\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,
1871 \&\f(CW\*(C`index\*(C'\fR, \f(CW\*(C`bzero\*(C'\fR, \f(CW\*(C`conjf\*(C'\fR, and other related functions.
1872 .IP "\fB\-fno\-operator\-names\fR" 4
1873 .IX Item "-fno-operator-names"
1874 Do not treat the operator name keywords \f(CW\*(C`and\*(C'\fR, \f(CW\*(C`bitand\*(C'\fR,
1875 \&\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
1876 synonyms as keywords.
1877 .IP "\fB\-fno\-optional\-diags\fR" 4
1878 .IX Item "-fno-optional-diags"
1879 Disable diagnostics that the standard says a compiler does not need to
1880 issue.  Currently, the only such diagnostic issued by G++ is the one for
1881 a name having multiple meanings within a class.
1882 .IP "\fB\-fpermissive\fR" 4
1883 .IX Item "-fpermissive"
1884 Downgrade some diagnostics about nonconformant code from errors to
1885 warnings.  Thus, using \fB\-fpermissive\fR will allow some
1886 nonconforming code to compile.
1887 .IP "\fB\-fno\-pretty\-templates\fR" 4
1888 .IX Item "-fno-pretty-templates"
1889 When an error message refers to a specialization of a function
1890 template, the compiler will normally print the signature of the
1891 template followed by the template arguments and any typedefs or
1892 typenames in the signature (e.g. \f(CW\*(C`void f(T) [with T = int]\*(C'\fR
1893 rather than \f(CW\*(C`void f(int)\*(C'\fR) so that it's clear which template is
1894 involved.  When an error message refers to a specialization of a class
1895 template, the compiler will omit any template arguments which match
1896 the default template arguments for that template.  If either of these
1897 behaviors make it harder to understand the error message rather than
1898 easier, using \fB\-fno\-pretty\-templates\fR will disable them.
1899 .IP "\fB\-frepo\fR" 4
1900 .IX Item "-frepo"
1901 Enable automatic template instantiation at link time.  This option also
1902 implies \fB\-fno\-implicit\-templates\fR.  
1903 .IP "\fB\-fno\-rtti\fR" 4
1904 .IX Item "-fno-rtti"
1905 Disable generation of information about every class with virtual
1906 functions for use by the \*(C+ runtime type identification features
1907 (\fBdynamic_cast\fR and \fBtypeid\fR).  If you don't use those parts
1908 of the language, you can save some space by using this flag.  Note that
1909 exception handling uses the same information, but it will generate it as
1910 needed. The \fBdynamic_cast\fR operator can still be used for casts that
1911 do not require runtime type information, i.e. casts to \f(CW\*(C`void *\*(C'\fR or to
1912 unambiguous base classes.
1913 .IP "\fB\-fstats\fR" 4
1914 .IX Item "-fstats"
1915 Emit statistics about front-end processing at the end of the compilation.
1916 This information is generally only useful to the G++ development team.
1917 .IP "\fB\-ftemplate\-depth=\fR\fIn\fR" 4
1918 .IX Item "-ftemplate-depth=n"
1919 Set the maximum instantiation depth for template classes to \fIn\fR.
1920 A limit on the template instantiation depth is needed to detect
1921 endless recursions during template class instantiation.  \s-1ANSI/ISO\s0 \*(C+
1922 conforming programs must not rely on a maximum depth greater than 17
1923 (changed to 1024 in \*(C+0x).
1924 .IP "\fB\-fno\-threadsafe\-statics\fR" 4
1925 .IX Item "-fno-threadsafe-statics"
1926 Do not emit the extra code to use the routines specified in the \*(C+
1927 \&\s-1ABI\s0 for thread-safe initialization of local statics.  You can use this
1928 option to reduce code size slightly in code that doesn't need to be
1929 thread\-safe.
1930 .IP "\fB\-fuse\-cxa\-atexit\fR" 4
1931 .IX Item "-fuse-cxa-atexit"
1932 Register destructors for objects with static storage duration with the
1933 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR function rather than the \f(CW\*(C`atexit\*(C'\fR function.
1934 This option is required for fully standards-compliant handling of static
1935 destructors, but will only work if your C library supports
1936 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR.
1937 .IP "\fB\-fno\-use\-cxa\-get\-exception\-ptr\fR" 4
1938 .IX Item "-fno-use-cxa-get-exception-ptr"
1939 Don't use the \f(CW\*(C`_\|_cxa_get_exception_ptr\*(C'\fR runtime routine.  This
1940 will cause \f(CW\*(C`std::uncaught_exception\*(C'\fR to be incorrect, but is necessary
1941 if the runtime routine is not available.
1942 .IP "\fB\-fvisibility\-inlines\-hidden\fR" 4
1943 .IX Item "-fvisibility-inlines-hidden"
1944 This switch declares that the user does not attempt to compare
1945 pointers to inline methods where the addresses of the two functions
1946 were taken in different shared objects.
1948 The effect of this is that \s-1GCC\s0 may, effectively, mark inline methods with
1949 \&\f(CW\*(C`_\|_attribute_\|_ ((visibility ("hidden")))\*(C'\fR so that they do not
1950 appear in the export table of a \s-1DSO\s0 and do not require a \s-1PLT\s0 indirection
1951 when used within the \s-1DSO\s0.  Enabling this option can have a dramatic effect
1952 on load and link times of a \s-1DSO\s0 as it massively reduces the size of the
1953 dynamic export table when the library makes heavy use of templates.
1955 The behavior of this switch is not quite the same as marking the
1956 methods as hidden directly, because it does not affect static variables
1957 local to the function or cause the compiler to deduce that
1958 the function is defined in only one shared object.
1960 You may mark a method as having a visibility explicitly to negate the
1961 effect of the switch for that method.  For example, if you do want to
1962 compare pointers to a particular inline method, you might mark it as
1963 having default visibility.  Marking the enclosing class with explicit
1964 visibility will have no effect.
1966 Explicitly instantiated inline methods are unaffected by this option
1967 as their linkage might otherwise cross a shared library boundary.
1968 .IP "\fB\-fvisibility\-ms\-compat\fR" 4
1969 .IX Item "-fvisibility-ms-compat"
1970 This flag attempts to use visibility settings to make \s-1GCC\s0's \*(C+
1971 linkage model compatible with that of Microsoft Visual Studio.
1973 The flag makes these changes to \s-1GCC\s0's linkage model:
1974 .RS 4
1975 .IP "1." 4
1976 It sets the default visibility to \f(CW\*(C`hidden\*(C'\fR, like
1977 \&\fB\-fvisibility=hidden\fR.
1978 .IP "2." 4
1979 Types, but not their members, are not hidden by default.
1980 .IP "3." 4
1981 The One Definition Rule is relaxed for types without explicit
1982 visibility specifications which are defined in more than one different
1983 shared object: those declarations are permitted if they would have
1984 been permitted when this option was not used.
1986 .RS 4
1988 In new code it is better to use \fB\-fvisibility=hidden\fR and
1989 export those classes which are intended to be externally visible.
1990 Unfortunately it is possible for code to rely, perhaps accidentally,
1991 on the Visual Studio behavior.
1993 Among the consequences of these changes are that static data members
1994 of the same type with the same name but defined in different shared
1995 objects will be different, so changing one will not change the other;
1996 and that pointers to function members defined in different shared
1997 objects may not compare equal.  When this flag is given, it is a
1998 violation of the \s-1ODR\s0 to define types with the same name differently.
2000 .IP "\fB\-fno\-weak\fR" 4
2001 .IX Item "-fno-weak"
2002 Do not use weak symbol support, even if it is provided by the linker.
2003 By default, G++ will use weak symbols if they are available.  This
2004 option exists only for testing, and should not be used by end\-users;
2005 it will result in inferior code and has no benefits.  This option may
2006 be removed in a future release of G++.
2007 .IP "\fB\-nostdinc++\fR" 4
2008 .IX Item "-nostdinc++"
2009 Do not search for header files in the standard directories specific to
2010 \&\*(C+, but do still search the other standard directories.  (This option
2011 is used when building the \*(C+ library.)
2013 In addition, these optimization, warning, and code generation options
2014 have meanings only for \*(C+ programs:
2015 .IP "\fB\-fno\-default\-inline\fR" 4
2016 .IX Item "-fno-default-inline"
2017 Do not assume \fBinline\fR for functions defined inside a class scope.
2018   Note that these
2019 functions will have linkage like inline functions; they just won't be
2020 inlined by default.
2021 .IP "\fB\-Wabi\fR (C, Objective\-C, \*(C+ and Objective\-\*(C+ only)" 4
2022 .IX Item "-Wabi (C, Objective-C,  and Objective- only)"
2023 Warn when G++ generates code that is probably not compatible with the
2024 vendor-neutral \*(C+ \s-1ABI\s0.  Although an effort has been made to warn about
2025 all such cases, there are probably some cases that are not warned about,
2026 even though G++ is generating incompatible code.  There may also be
2027 cases where warnings are emitted even though the code that is generated
2028 will be compatible.
2030 You should rewrite your code to avoid these warnings if you are
2031 concerned about the fact that code generated by G++ may not be binary
2032 compatible with code generated by other compilers.
2034 The known incompatibilities in \fB\-fabi\-version=2\fR (the default) include:
2035 .RS 4
2036 .IP "*" 4
2037 A template with a non-type template parameter of reference type is
2038 mangled incorrectly:
2040 .Vb 3
2041 \&        extern int N;
2042 \&        template <int &> struct S {};
2043 \&        void n (S<N>) {2}
2046 This is fixed in \fB\-fabi\-version=3\fR.
2047 .IP "*" 4
2048 \&\s-1SIMD\s0 vector types declared using \f(CW\*(C`_\|_attribute ((vector_size))\*(C'\fR are
2049 mangled in a non-standard way that does not allow for overloading of
2050 functions taking vectors of different sizes.
2052 The mangling is changed in \fB\-fabi\-version=4\fR.
2054 .RS 4
2056 The known incompatibilities in \fB\-fabi\-version=1\fR include:
2057 .IP "*" 4
2058 Incorrect handling of tail-padding for bit\-fields.  G++ may attempt to
2059 pack data into the same byte as a base class.  For example:
2061 .Vb 2
2062 \&        struct A { virtual void f(); int f1 : 1; };
2063 \&        struct B : public A { int f2 : 1; };
2066 In this case, G++ will place \f(CW\*(C`B::f2\*(C'\fR into the same byte
2067 as\f(CW\*(C`A::f1\*(C'\fR; other compilers will not.  You can avoid this problem
2068 by explicitly padding \f(CW\*(C`A\*(C'\fR so that its size is a multiple of the
2069 byte size on your platform; that will cause G++ and other compilers to
2070 layout \f(CW\*(C`B\*(C'\fR identically.
2071 .IP "*" 4
2072 Incorrect handling of tail-padding for virtual bases.  G++ does not use
2073 tail padding when laying out virtual bases.  For example:
2075 .Vb 3
2076 \&        struct A { virtual void f(); char c1; };
2077 \&        struct B { B(); char c2; };
2078 \&        struct C : public A, public virtual B {};
2081 In this case, G++ will not place \f(CW\*(C`B\*(C'\fR into the tail-padding for
2082 \&\f(CW\*(C`A\*(C'\fR; other compilers will.  You can avoid this problem by
2083 explicitly padding \f(CW\*(C`A\*(C'\fR so that its size is a multiple of its
2084 alignment (ignoring virtual base classes); that will cause G++ and other
2085 compilers to layout \f(CW\*(C`C\*(C'\fR identically.
2086 .IP "*" 4
2087 Incorrect handling of bit-fields with declared widths greater than that
2088 of their underlying types, when the bit-fields appear in a union.  For
2089 example:
2091 .Vb 1
2092 \&        union U { int i : 4096; };
2095 Assuming that an \f(CW\*(C`int\*(C'\fR does not have 4096 bits, G++ will make the
2096 union too small by the number of bits in an \f(CW\*(C`int\*(C'\fR.
2097 .IP "*" 4
2098 Empty classes can be placed at incorrect offsets.  For example:
2100 .Vb 1
2101 \&        struct A {};
2104 .Vb 4
2105 \&        struct B {
2106 \&          A a;
2107 \&          virtual void f ();
2108 \&        };
2111 .Vb 1
2112 \&        struct C : public B, public A {};
2115 G++ will place the \f(CW\*(C`A\*(C'\fR base class of \f(CW\*(C`C\*(C'\fR at a nonzero offset;
2116 it should be placed at offset zero.  G++ mistakenly believes that the
2117 \&\f(CW\*(C`A\*(C'\fR data member of \f(CW\*(C`B\*(C'\fR is already at offset zero.
2118 .IP "*" 4
2119 Names of template functions whose types involve \f(CW\*(C`typename\*(C'\fR or
2120 template template parameters can be mangled incorrectly.
2122 .Vb 2
2123 \&        template <typename Q>
2124 \&        void f(typename Q::X) {}
2127 .Vb 2
2128 \&        template <template <typename> class Q>
2129 \&        void f(typename Q<int>::X) {}
2132 Instantiations of these templates may be mangled incorrectly.
2134 .RS 4
2136 It also warns psABI related changes.  The known psABI changes at this
2137 point include:
2138 .IP "*" 4
2139 For SYSV/x86\-64, when passing union with long double, it is changed to
2140 pass in memory as specified in psABI.  For example:
2142 .Vb 4
2143 \&        union U {
2144 \&          long double ld;
2145 \&          int i;
2146 \&        };
2149 \&\f(CW\*(C`union U\*(C'\fR will always be passed in memory.
2151 .RS 4
2153 .IP "\fB\-Wctor\-dtor\-privacy\fR (\*(C+ and Objective\-\*(C+ only)" 4
2154 .IX Item "-Wctor-dtor-privacy ( and Objective- only)"
2155 Warn when a class seems unusable because all the constructors or
2156 destructors in that class are private, and it has neither friends nor
2157 public static member functions.
2158 .IP "\fB\-Wnon\-virtual\-dtor\fR (\*(C+ and Objective\-\*(C+ only)" 4
2159 .IX Item "-Wnon-virtual-dtor ( and Objective- only)"
2160 Warn when a class has virtual functions and accessible non-virtual
2161 destructor, in which case it would be possible but unsafe to delete
2162 an instance of a derived class through a pointer to the base class.
2163 This warning is also enabled if \-Weffc++ is specified.
2164 .IP "\fB\-Wreorder\fR (\*(C+ and Objective\-\*(C+ only)" 4
2165 .IX Item "-Wreorder ( and Objective- only)"
2166 Warn when the order of member initializers given in the code does not
2167 match the order in which they must be executed.  For instance:
2169 .Vb 5
2170 \&        struct A {
2171 \&          int i;
2172 \&          int j;
2173 \&          A(): j (0), i (1) { }
2174 \&        };
2177 The compiler will rearrange the member initializers for \fBi\fR
2178 and \fBj\fR to match the declaration order of the members, emitting
2179 a warning to that effect.  This warning is enabled by \fB\-Wall\fR.
2181 The following \fB\-W...\fR options are not affected by \fB\-Wall\fR.
2182 .IP "\fB\-Weffc++\fR (\*(C+ and Objective\-\*(C+ only)" 4
2183 .IX Item "-Weffc++ ( and Objective- only)"
2184 Warn about violations of the following style guidelines from Scott Meyers'
2185 \&\fIEffective \*(C+\fR book:
2186 .RS 4
2187 .IP "*" 4
2188 Item 11:  Define a copy constructor and an assignment operator for classes
2189 with dynamically allocated memory.
2190 .IP "*" 4
2191 Item 12:  Prefer initialization to assignment in constructors.
2192 .IP "*" 4
2193 Item 14:  Make destructors virtual in base classes.
2194 .IP "*" 4
2195 Item 15:  Have \f(CW\*(C`operator=\*(C'\fR return a reference to \f(CW*this\fR.
2196 .IP "*" 4
2197 Item 23:  Don't try to return a reference when you must return an object.
2199 .RS 4
2201 Also warn about violations of the following style guidelines from
2202 Scott Meyers' \fIMore Effective \*(C+\fR book:
2203 .IP "*" 4
2204 Item 6:  Distinguish between prefix and postfix forms of increment and
2205 decrement operators.
2206 .IP "*" 4
2207 Item 7:  Never overload \f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`||\*(C'\fR, or \f(CW\*(C`,\*(C'\fR.
2209 .RS 4
2211 When selecting this option, be aware that the standard library
2212 headers do not obey all of these guidelines; use \fBgrep \-v\fR
2213 to filter out those warnings.
2215 .IP "\fB\-Wstrict\-null\-sentinel\fR (\*(C+ and Objective\-\*(C+ only)" 4
2216 .IX Item "-Wstrict-null-sentinel ( and Objective- only)"
2217 Warn also about the use of an uncasted \f(CW\*(C`NULL\*(C'\fR as sentinel.  When
2218 compiling only with \s-1GCC\s0 this is a valid sentinel, as \f(CW\*(C`NULL\*(C'\fR is defined
2219 to \f(CW\*(C`_\|_null\*(C'\fR.  Although it is a null pointer constant not a null pointer,
2220 it is guaranteed to be of the same size as a pointer.  But this use is
2221 not portable across different compilers.
2222 .IP "\fB\-Wno\-non\-template\-friend\fR (\*(C+ and Objective\-\*(C+ only)" 4
2223 .IX Item "-Wno-non-template-friend ( and Objective- only)"
2224 Disable warnings when non-templatized friend functions are declared
2225 within a template.  Since the advent of explicit template specification
2226 support in G++, if the name of the friend is an unqualified-id (i.e.,
2227 \&\fBfriend foo(int)\fR), the \*(C+ language specification demands that the
2228 friend declare or define an ordinary, nontemplate function.  (Section
2229 14.5.3).  Before G++ implemented explicit specification, unqualified-ids
2230 could be interpreted as a particular specialization of a templatized
2231 function.  Because this non-conforming behavior is no longer the default
2232 behavior for G++, \fB\-Wnon\-template\-friend\fR allows the compiler to
2233 check existing code for potential trouble spots and is on by default.
2234 This new compiler behavior can be turned off with
2235 \&\fB\-Wno\-non\-template\-friend\fR which keeps the conformant compiler code
2236 but disables the helpful warning.
2237 .IP "\fB\-Wold\-style\-cast\fR (\*(C+ and Objective\-\*(C+ only)" 4
2238 .IX Item "-Wold-style-cast ( and Objective- only)"
2239 Warn if an old-style (C\-style) cast to a non-void type is used within
2240 a \*(C+ program.  The new-style casts (\fBdynamic_cast\fR,
2241 \&\fBstatic_cast\fR, \fBreinterpret_cast\fR, and \fBconst_cast\fR) are
2242 less vulnerable to unintended effects and much easier to search for.
2243 .IP "\fB\-Woverloaded\-virtual\fR (\*(C+ and Objective\-\*(C+ only)" 4
2244 .IX Item "-Woverloaded-virtual ( and Objective- only)"
2245 Warn when a function declaration hides virtual functions from a
2246 base class.  For example, in:
2248 .Vb 3
2249 \&        struct A {
2250 \&          virtual void f();
2251 \&        };
2254 .Vb 3
2255 \&        struct B: public A {
2256 \&          void f(int);
2257 \&        };
2260 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
2261 like:
2263 .Vb 2
2264 \&        B* b;
2265 \&        b->f();
2268 will fail to compile.
2269 .IP "\fB\-Wno\-pmf\-conversions\fR (\*(C+ and Objective\-\*(C+ only)" 4
2270 .IX Item "-Wno-pmf-conversions ( and Objective- only)"
2271 Disable the diagnostic for converting a bound pointer to member function
2272 to a plain pointer.
2273 .IP "\fB\-Wsign\-promo\fR (\*(C+ and Objective\-\*(C+ only)" 4
2274 .IX Item "-Wsign-promo ( and Objective- only)"
2275 Warn when overload resolution chooses a promotion from unsigned or
2276 enumerated type to a signed type, over a conversion to an unsigned type of
2277 the same size.  Previous versions of G++ would try to preserve
2278 unsignedness, but the standard mandates the current behavior.
2280 .Vb 4
2281 \&        struct A {
2282 \&          operator int ();
2283 \&          A& operator = (int);
2284 \&        };
2287 .Vb 5
2288 \&        main ()
2289 \&        {
2290 \&          A a,b;
2291 \&          a = b;
2292 \&        }
2295 In this example, G++ will synthesize a default \fBA& operator =
2296 (const A&);\fR, while cfront will use the user-defined \fBoperator =\fR.
2297 .Sh "Options Controlling Objective-C and Objective\-\*(C+ Dialects"
2298 .IX Subsection "Options Controlling Objective-C and Objective- Dialects"
2299 (\s-1NOTE:\s0 This manual does not describe the Objective-C and Objective\-\*(C+
2300 languages themselves.  
2302 This section describes the command-line options that are only meaningful
2303 for Objective-C and Objective\-\*(C+ programs, but you can also use most of
2304 the language-independent \s-1GNU\s0 compiler options.
2305 For example, you might compile a file \f(CW\*(C`some_class.m\*(C'\fR like this:
2307 .Vb 1
2308 \&        gcc -g -fgnu-runtime -O -c some_class.m
2311 In this example, \fB\-fgnu\-runtime\fR is an option meant only for
2312 Objective-C and Objective\-\*(C+ programs; you can use the other options with
2313 any language supported by \s-1GCC\s0.
2315 Note that since Objective-C is an extension of the C language, Objective-C
2316 compilations may also use options specific to the C front-end (e.g.,
2317 \&\fB\-Wtraditional\fR).  Similarly, Objective\-\*(C+ compilations may use
2318 \&\*(C+\-specific options (e.g., \fB\-Wabi\fR).
2320 Here is a list of options that are \fIonly\fR for compiling Objective-C
2321 and Objective\-\*(C+ programs:
2322 .IP "\fB\-fconstant\-string\-class=\fR\fIclass-name\fR" 4
2323 .IX Item "-fconstant-string-class=class-name"
2324 Use \fIclass-name\fR as the name of the class to instantiate for each
2325 literal string specified with the syntax \f(CW\*(C`@"..."\*(C'\fR.  The default
2326 class name is \f(CW\*(C`NXConstantString\*(C'\fR if the \s-1GNU\s0 runtime is being used, and
2327 \&\f(CW\*(C`NSConstantString\*(C'\fR if the NeXT runtime is being used (see below).  The
2328 \&\fB\-fconstant\-cfstrings\fR option, if also present, will override the
2329 \&\fB\-fconstant\-string\-class\fR setting and cause \f(CW\*(C`@"..."\*(C'\fR literals
2330 to be laid out as constant CoreFoundation strings.
2331 .IP "\fB\-fgnu\-runtime\fR" 4
2332 .IX Item "-fgnu-runtime"
2333 Generate object code compatible with the standard \s-1GNU\s0 Objective-C
2334 runtime.  This is the default for most types of systems.
2335 .IP "\fB\-fnext\-runtime\fR" 4
2336 .IX Item "-fnext-runtime"
2337 Generate output compatible with the NeXT runtime.  This is the default
2338 for NeXT-based systems, including Darwin and Mac \s-1OS\s0 X.  The macro
2339 \&\f(CW\*(C`_\|_NEXT_RUNTIME_\|_\*(C'\fR is predefined if (and only if) this option is
2340 used.
2341 .IP "\fB\-fno\-nil\-receivers\fR" 4
2342 .IX Item "-fno-nil-receivers"
2343 Assume that all Objective-C message dispatches (e.g.,
2344 \&\f(CW\*(C`[receiver message:arg]\*(C'\fR) in this translation unit ensure that the receiver
2345 is not \f(CW\*(C`nil\*(C'\fR.  This allows for more efficient entry points in the runtime
2346 to be used.  Currently, this option is only available in conjunction with
2347 the NeXT runtime on Mac \s-1OS\s0 X 10.3 and later.
2348 .IP "\fB\-fobjc\-call\-cxx\-cdtors\fR" 4
2349 .IX Item "-fobjc-call-cxx-cdtors"
2350 For each Objective-C class, check if any of its instance variables is a
2351 \&\*(C+ object with a non-trivial default constructor.  If so, synthesize a
2352 special \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR instance method that will run
2353 non-trivial default constructors on any such instance variables, in order,
2354 and then return \f(CW\*(C`self\*(C'\fR.  Similarly, check if any instance variable
2355 is a \*(C+ object with a non-trivial destructor, and if so, synthesize a
2356 special \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR method that will run
2357 all such default destructors, in reverse order.
2359 The \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR and/or \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods
2360 thusly generated will only operate on instance variables declared in the
2361 current Objective-C class, and not those inherited from superclasses.  It
2362 is the responsibility of the Objective-C runtime to invoke all such methods
2363 in an object's inheritance hierarchy.  The \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR methods
2364 will be invoked by the runtime immediately after a new object
2365 instance is allocated; the \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods will
2366 be invoked immediately before the runtime deallocates an object instance.
2368 As of this writing, only the NeXT runtime on Mac \s-1OS\s0 X 10.4 and later has
2369 support for invoking the \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR and
2370 \&\f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods.
2371 .IP "\fB\-fobjc\-direct\-dispatch\fR" 4
2372 .IX Item "-fobjc-direct-dispatch"
2373 Allow fast jumps to the message dispatcher.  On Darwin this is
2374 accomplished via the comm page.
2375 .IP "\fB\-fobjc\-exceptions\fR" 4
2376 .IX Item "-fobjc-exceptions"
2377 Enable syntactic support for structured exception handling in Objective\-C,
2378 similar to what is offered by \*(C+ and Java.  This option is
2379 unavailable in conjunction with the NeXT runtime on Mac \s-1OS\s0 X 10.2 and
2380 earlier.
2382 .Vb 23
2383 \&          @try {
2384 \&            ...
2385 \&               @throw expr;
2386 \&            ...
2387 \&          }
2388 \&          @catch (AnObjCClass *exc) {
2389 \&            ...
2390 \&              @throw expr;
2391 \&            ...
2392 \&              @throw;
2393 \&            ...
2394 \&          }
2395 \&          @catch (AnotherClass *exc) {
2396 \&            ...
2397 \&          }
2398 \&          @catch (id allOthers) {
2399 \&            ...
2400 \&          }
2401 \&          @finally {
2402 \&            ...
2403 \&              @throw expr;
2404 \&            ...
2405 \&          }
2408 The \f(CW@throw\fR statement may appear anywhere in an Objective-C or
2409 Objective\-\*(C+ program; when used inside of a \f(CW@catch\fR block, the
2410 \&\f(CW@throw\fR may appear without an argument (as shown above), in which case
2411 the object caught by the \f(CW@catch\fR will be rethrown.
2413 Note that only (pointers to) Objective-C objects may be thrown and
2414 caught using this scheme.  When an object is thrown, it will be caught
2415 by the nearest \f(CW@catch\fR clause capable of handling objects of that type,
2416 analogously to how \f(CW\*(C`catch\*(C'\fR blocks work in \*(C+ and Java.  A
2417 \&\f(CW\*(C`@catch(id ...)\*(C'\fR clause (as shown above) may also be provided to catch
2418 any and all Objective-C exceptions not caught by previous \f(CW@catch\fR
2419 clauses (if any).
2421 The \f(CW@finally\fR clause, if present, will be executed upon exit from the
2422 immediately preceding \f(CW\*(C`@try ... @catch\*(C'\fR section.  This will happen
2423 regardless of whether any exceptions are thrown, caught or rethrown
2424 inside the \f(CW\*(C`@try ... @catch\*(C'\fR section, analogously to the behavior
2425 of the \f(CW\*(C`finally\*(C'\fR clause in Java.
2427 There are several caveats to using the new exception mechanism:
2428 .RS 4
2429 .IP "*" 4
2430 Although currently designed to be binary compatible with \f(CW\*(C`NS_HANDLER\*(C'\fR\-style
2431 idioms provided by the \f(CW\*(C`NSException\*(C'\fR class, the new
2432 exceptions can only be used on Mac \s-1OS\s0 X 10.3 (Panther) and later
2433 systems, due to additional functionality needed in the (NeXT) Objective-C
2434 runtime.
2435 .IP "*" 4
2436 As mentioned above, the new exceptions do not support handling
2437 types other than Objective-C objects.   Furthermore, when used from
2438 Objective\-\*(C+, the Objective-C exception model does not interoperate with \*(C+
2439 exceptions at this time.  This means you cannot \f(CW@throw\fR an exception
2440 from Objective-C and \f(CW\*(C`catch\*(C'\fR it in \*(C+, or vice versa
2441 (i.e., \f(CW\*(C`throw ... @catch\*(C'\fR).
2443 .RS 4
2445 The \fB\-fobjc\-exceptions\fR switch also enables the use of synchronization
2446 blocks for thread-safe execution:
2448 .Vb 3
2449 \&          @synchronized (ObjCClass *guard) {
2450 \&            ...
2451 \&          }
2454 Upon entering the \f(CW@synchronized\fR block, a thread of execution shall
2455 first check whether a lock has been placed on the corresponding \f(CW\*(C`guard\*(C'\fR
2456 object by another thread.  If it has, the current thread shall wait until
2457 the other thread relinquishes its lock.  Once \f(CW\*(C`guard\*(C'\fR becomes available,
2458 the current thread will place its own lock on it, execute the code contained in
2459 the \f(CW@synchronized\fR block, and finally relinquish the lock (thereby
2460 making \f(CW\*(C`guard\*(C'\fR available to other threads).
2462 Unlike Java, Objective-C does not allow for entire methods to be marked
2463 \&\f(CW@synchronized\fR.  Note that throwing exceptions out of
2464 \&\f(CW@synchronized\fR blocks is allowed, and will cause the guarding object
2465 to be unlocked properly.
2467 .IP "\fB\-fobjc\-gc\fR" 4
2468 .IX Item "-fobjc-gc"
2469 Enable garbage collection (\s-1GC\s0) in Objective-C and Objective\-\*(C+ programs.
2470 .IP "\fB\-freplace\-objc\-classes\fR" 4
2471 .IX Item "-freplace-objc-classes"
2472 Emit a special marker instructing \fB\f(BIld\fB\|(1)\fR not to statically link in
2473 the resulting object file, and allow \fB\f(BIdyld\fB\|(1)\fR to load it in at
2474 run time instead.  This is used in conjunction with the Fix-and-Continue
2475 debugging mode, where the object file in question may be recompiled and
2476 dynamically reloaded in the course of program execution, without the need
2477 to restart the program itself.  Currently, Fix-and-Continue functionality
2478 is only available in conjunction with the NeXT runtime on Mac \s-1OS\s0 X 10.3
2479 and later.
2480 .IP "\fB\-fzero\-link\fR" 4
2481 .IX Item "-fzero-link"
2482 When compiling for the NeXT runtime, the compiler ordinarily replaces calls
2483 to \f(CW\*(C`objc_getClass("...")\*(C'\fR (when the name of the class is known at
2484 compile time) with static class references that get initialized at load time,
2485 which improves run-time performance.  Specifying the \fB\-fzero\-link\fR flag
2486 suppresses this behavior and causes calls to \f(CW\*(C`objc_getClass("...")\*(C'\fR
2487 to be retained.  This is useful in Zero-Link debugging mode, since it allows
2488 for individual class implementations to be modified during program execution.
2489 .IP "\fB\-gen\-decls\fR" 4
2490 .IX Item "-gen-decls"
2491 Dump interface declarations for all classes seen in the source file to a
2492 file named \fI\fIsourcename\fI.decl\fR.
2493 .IP "\fB\-Wassign\-intercept\fR (Objective\-C and Objective\-\*(C+ only)" 4
2494 .IX Item "-Wassign-intercept (Objective-C and Objective- only)"
2495 Warn whenever an Objective-C assignment is being intercepted by the
2496 garbage collector.
2497 .IP "\fB\-Wno\-protocol\fR (Objective\-C and Objective\-\*(C+ only)" 4
2498 .IX Item "-Wno-protocol (Objective-C and Objective- only)"
2499 If a class is declared to implement a protocol, a warning is issued for
2500 every method in the protocol that is not implemented by the class.  The
2501 default behavior is to issue a warning for every method not explicitly
2502 implemented in the class, even if a method implementation is inherited
2503 from the superclass.  If you use the \fB\-Wno\-protocol\fR option, then
2504 methods inherited from the superclass are considered to be implemented,
2505 and no warning is issued for them.
2506 .IP "\fB\-Wselector\fR (Objective\-C and Objective\-\*(C+ only)" 4
2507 .IX Item "-Wselector (Objective-C and Objective- only)"
2508 Warn if multiple methods of different types for the same selector are
2509 found during compilation.  The check is performed on the list of methods
2510 in the final stage of compilation.  Additionally, a check is performed
2511 for each selector appearing in a \f(CW\*(C`@selector(...)\*(C'\fR
2512 expression, and a corresponding method for that selector has been found
2513 during compilation.  Because these checks scan the method table only at
2514 the end of compilation, these warnings are not produced if the final
2515 stage of compilation is not reached, for example because an error is
2516 found during compilation, or because the \fB\-fsyntax\-only\fR option is
2517 being used.
2518 .IP "\fB\-Wstrict\-selector\-match\fR (Objective\-C and Objective\-\*(C+ only)" 4
2519 .IX Item "-Wstrict-selector-match (Objective-C and Objective- only)"
2520 Warn if multiple methods with differing argument and/or return types are
2521 found for a given selector when attempting to send a message using this
2522 selector to a receiver of type \f(CW\*(C`id\*(C'\fR or \f(CW\*(C`Class\*(C'\fR.  When this flag
2523 is off (which is the default behavior), the compiler will omit such warnings
2524 if any differences found are confined to types which share the same size
2525 and alignment.
2526 .IP "\fB\-Wundeclared\-selector\fR (Objective\-C and Objective\-\*(C+ only)" 4
2527 .IX Item "-Wundeclared-selector (Objective-C and Objective- only)"
2528 Warn if a \f(CW\*(C`@selector(...)\*(C'\fR expression referring to an
2529 undeclared selector is found.  A selector is considered undeclared if no
2530 method with that name has been declared before the
2531 \&\f(CW\*(C`@selector(...)\*(C'\fR expression, either explicitly in an
2532 \&\f(CW@interface\fR or \f(CW@protocol\fR declaration, or implicitly in
2533 an \f(CW@implementation\fR section.  This option always performs its
2534 checks as soon as a \f(CW\*(C`@selector(...)\*(C'\fR expression is found,
2535 while \fB\-Wselector\fR only performs its checks in the final stage of
2536 compilation.  This also enforces the coding style convention
2537 that methods and selectors must be declared before being used.
2538 .IP "\fB\-print\-objc\-runtime\-info\fR" 4
2539 .IX Item "-print-objc-runtime-info"
2540 Generate C header describing the largest structure that is passed by
2541 value, if any.
2542 .Sh "Options to Control Diagnostic Messages Formatting"
2543 .IX Subsection "Options to Control Diagnostic Messages Formatting"
2544 Traditionally, diagnostic messages have been formatted irrespective of
2545 the output device's aspect (e.g. its width, ...).  The options described
2546 below can be used to control the diagnostic messages formatting
2547 algorithm, e.g. how many characters per line, how often source location
2548 information should be reported.  Right now, only the \*(C+ front end can
2549 honor these options.  However it is expected, in the near future, that
2550 the remaining front ends would be able to digest them correctly.
2551 .IP "\fB\-fmessage\-length=\fR\fIn\fR" 4
2552 .IX Item "-fmessage-length=n"
2553 Try to format error messages so that they fit on lines of about \fIn\fR
2554 characters.  The default is 72 characters for \fBg++\fR and 0 for the rest of
2555 the front ends supported by \s-1GCC\s0.  If \fIn\fR is zero, then no
2556 line-wrapping will be done; each error message will appear on a single
2557 line.
2558 .IP "\fB\-fdiagnostics\-show\-location=once\fR" 4
2559 .IX Item "-fdiagnostics-show-location=once"
2560 Only meaningful in line-wrapping mode.  Instructs the diagnostic messages
2561 reporter to emit \fIonce\fR source location information; that is, in
2562 case the message is too long to fit on a single physical line and has to
2563 be wrapped, the source location won't be emitted (as prefix) again,
2564 over and over, in subsequent continuation lines.  This is the default
2565 behavior.
2566 .IP "\fB\-fdiagnostics\-show\-location=every\-line\fR" 4
2567 .IX Item "-fdiagnostics-show-location=every-line"
2568 Only meaningful in line-wrapping mode.  Instructs the diagnostic
2569 messages reporter to emit the same source location information (as
2570 prefix) for physical lines that result from the process of breaking
2571 a message which is too long to fit on a single line.
2572 .IP "\fB\-fdiagnostics\-show\-option\fR" 4
2573 .IX Item "-fdiagnostics-show-option"
2574 This option instructs the diagnostic machinery to add text to each
2575 diagnostic emitted, which indicates which command line option directly
2576 controls that diagnostic, when such an option is known to the
2577 diagnostic machinery.
2578 .IP "\fB\-Wcoverage\-mismatch\fR" 4
2579 .IX Item "-Wcoverage-mismatch"
2580 Warn if feedback profiles do not match when using the
2581 \&\fB\-fprofile\-use\fR option.
2582 If a source file was changed between \fB\-fprofile\-gen\fR and
2583 \&\fB\-fprofile\-use\fR, the files with the profile feedback can fail
2584 to match the source file and \s-1GCC\s0 can not use the profile feedback
2585 information.  By default, \s-1GCC\s0 emits an error message in this case.
2586 The option \fB\-Wcoverage\-mismatch\fR emits a warning instead of an
2587 error.  \s-1GCC\s0 does not use appropriate feedback profiles, so using this
2588 option can result in poorly optimized code.  This option is useful
2589 only in the case of very minor changes such as bug fixes to an
2590 existing code\-base.
2591 .Sh "Options to Request or Suppress Warnings"
2592 .IX Subsection "Options to Request or Suppress Warnings"
2593 Warnings are diagnostic messages that report constructions which
2594 are not inherently erroneous but which are risky or suggest there
2595 may have been an error.
2597 The following language-independent options do not enable specific
2598 warnings but control the kinds of diagnostics produced by \s-1GCC\s0.
2599 .IP "\fB\-fsyntax\-only\fR" 4
2600 .IX Item "-fsyntax-only"
2601 Check the code for syntax errors, but don't do anything beyond that.
2602 .IP "\fB\-w\fR" 4
2603 .IX Item "-w"
2604 Inhibit all warning messages.
2605 .IP "\fB\-Werror\fR" 4
2606 .IX Item "-Werror"
2607 Make all warnings into errors.
2608 .IP "\fB\-Werror=\fR" 4
2609 .IX Item "-Werror="
2610 Make the specified warning into an error.  The specifier for a warning
2611 is appended, for example \fB\-Werror=switch\fR turns the warnings
2612 controlled by \fB\-Wswitch\fR into errors.  This switch takes a
2613 negative form, to be used to negate \fB\-Werror\fR for specific
2614 warnings, for example \fB\-Wno\-error=switch\fR makes
2615 \&\fB\-Wswitch\fR warnings not be errors, even when \fB\-Werror\fR
2616 is in effect.  You can use the \fB\-fdiagnostics\-show\-option\fR
2617 option to have each controllable warning amended with the option which
2618 controls it, to determine what to use with this option.
2620 Note that specifying \fB\-Werror=\fR\fIfoo\fR automatically implies
2621 \&\fB\-W\fR\fIfoo\fR.  However, \fB\-Wno\-error=\fR\fIfoo\fR does not
2622 imply anything.
2623 .IP "\fB\-Wfatal\-errors\fR" 4
2624 .IX Item "-Wfatal-errors"
2625 This option causes the compiler to abort compilation on the first error
2626 occurred rather than trying to keep going and printing further error
2627 messages.
2629 You can request many specific warnings with options beginning
2630 \&\fB\-W\fR, for example \fB\-Wimplicit\fR to request warnings on
2631 implicit declarations.  Each of these specific warning options also
2632 has a negative form beginning \fB\-Wno\-\fR to turn off warnings; for
2633 example, \fB\-Wno\-implicit\fR.  This manual lists only one of the
2634 two forms, whichever is not the default.  For further,
2635 language-specific options also refer to \fB\*(C+ Dialect Options\fR and
2636 \&\fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
2637 .IP "\fB\-pedantic\fR" 4
2638 .IX Item "-pedantic"
2639 Issue all the warnings demanded by strict \s-1ISO\s0 C and \s-1ISO\s0 \*(C+;
2640 reject all programs that use forbidden extensions, and some other
2641 programs that do not follow \s-1ISO\s0 C and \s-1ISO\s0 \*(C+.  For \s-1ISO\s0 C, follows the
2642 version of the \s-1ISO\s0 C standard specified by any \fB\-std\fR option used.
2644 Valid \s-1ISO\s0 C and \s-1ISO\s0 \*(C+ programs should compile properly with or without
2645 this option (though a rare few will require \fB\-ansi\fR or a
2646 \&\fB\-std\fR option specifying the required version of \s-1ISO\s0 C).  However,
2647 without this option, certain \s-1GNU\s0 extensions and traditional C and \*(C+
2648 features are supported as well.  With this option, they are rejected.
2650 \&\fB\-pedantic\fR does not cause warning messages for use of the
2651 alternate keywords whose names begin and end with \fB_\|_\fR.  Pedantic
2652 warnings are also disabled in the expression that follows
2653 \&\f(CW\*(C`_\|_extension_\|_\*(C'\fR.  However, only system header files should use
2654 these escape routes; application programs should avoid them.
2656 Some users try to use \fB\-pedantic\fR to check programs for strict \s-1ISO\s0
2657 C conformance.  They soon find that it does not do quite what they want:
2658 it finds some non-ISO practices, but not all\-\-\-only those for which
2659 \&\s-1ISO\s0 C \fIrequires\fR a diagnostic, and some others for which
2660 diagnostics have been added.
2662 A feature to report any failure to conform to \s-1ISO\s0 C might be useful in
2663 some instances, but would require considerable additional work and would
2664 be quite different from \fB\-pedantic\fR.  We don't have plans to
2665 support such a feature in the near future.
2667 Where the standard specified with \fB\-std\fR represents a \s-1GNU\s0
2668 extended dialect of C, such as \fBgnu90\fR or \fBgnu99\fR, there is a
2669 corresponding \fIbase standard\fR, the version of \s-1ISO\s0 C on which the \s-1GNU\s0
2670 extended dialect is based.  Warnings from \fB\-pedantic\fR are given
2671 where they are required by the base standard.  (It would not make sense
2672 for such warnings to be given only for features not in the specified \s-1GNU\s0
2673 C dialect, since by definition the \s-1GNU\s0 dialects of C include all
2674 features the compiler supports with the given option, and there would be
2675 nothing to warn about.)
2676 .IP "\fB\-pedantic\-errors\fR" 4
2677 .IX Item "-pedantic-errors"
2678 Like \fB\-pedantic\fR, except that errors are produced rather than
2679 warnings.
2680 .IP "\fB\-Wall\fR" 4
2681 .IX Item "-Wall"
2682 This enables all the warnings about constructions that some users
2683 consider questionable, and that are easy to avoid (or modify to
2684 prevent the warning), even in conjunction with macros.  This also
2685 enables some language-specific warnings described in \fB\*(C+ Dialect
2686 Options\fR and \fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
2688 \&\fB\-Wall\fR turns on the following warning flags:
2690 \&\fB\-Waddress   
2691 \&\-Warray\-bounds\fR (only with\fB \fR\fB\-O2\fR)  
2692 \&\fB\-Wc++0x\-compat  
2693 \&\-Wchar\-subscripts  
2694 \&\-Wenum\-compare\fR (in C/Objc; this is on by default in \*(C+) 
2695 \&\fB\-Wimplicit\-int  
2696 \&\-Wimplicit\-function\-declaration  
2697 \&\-Wcomment  
2698 \&\-Wformat   
2699 \&\-Wmain\fR (only for C/ObjC and unless\fB \fR\fB\-ffreestanding\fR)  
2700 \&\fB\-Wmissing\-braces  
2701 \&\-Wnonnull  
2702 \&\-Wparentheses  
2703 \&\-Wpointer\-sign  
2704 \&\-Wreorder   
2705 \&\-Wreturn\-type  
2706 \&\-Wsequence\-point  
2707 \&\-Wsign\-compare\fR (only in \*(C+)  
2708 \&\fB\-Wstrict\-aliasing  
2709 \&\-Wstrict\-overflow=1  
2710 \&\-Wswitch  
2711 \&\-Wtrigraphs  
2712 \&\-Wuninitialized  
2713 \&\-Wunknown\-pragmas  
2714 \&\-Wunused\-function  
2715 \&\-Wunused\-label     
2716 \&\-Wunused\-value     
2717 \&\-Wunused\-variable  
2718 \&\-Wvolatile\-register\-var\fR 
2720 Note that some warning flags are not implied by \fB\-Wall\fR.  Some of
2721 them warn about constructions that users generally do not consider
2722 questionable, but which occasionally you might wish to check for;
2723 others warn about constructions that are necessary or hard to avoid in
2724 some cases, and there is no simple way to modify the code to suppress
2725 the warning. Some of them are enabled by \fB\-Wextra\fR but many of
2726 them must be enabled individually.
2727 .IP "\fB\-Wextra\fR" 4
2728 .IX Item "-Wextra"
2729 This enables some extra warning flags that are not enabled by
2730 \&\fB\-Wall\fR. (This option used to be called \fB\-W\fR.  The older
2731 name is still supported, but the newer name is more descriptive.)
2733 \&\fB\-Wclobbered  
2734 \&\-Wempty\-body  
2735 \&\-Wignored\-qualifiers 
2736 \&\-Wmissing\-field\-initializers  
2737 \&\-Wmissing\-parameter\-type\fR (C only)  
2738 \&\fB\-Wold\-style\-declaration\fR (C only)  
2739 \&\fB\-Woverride\-init  
2740 \&\-Wsign\-compare  
2741 \&\-Wtype\-limits  
2742 \&\-Wuninitialized  
2743 \&\-Wunused\-parameter\fR (only with\fB \fR\fB\-Wunused\fR\fB \fRor\fB \fR\fB\-Wall\fR)  \fB
2744 \&\fR
2746 The option \fB\-Wextra\fR also prints warning messages for the
2747 following cases:
2748 .RS 4
2749 .IP "*" 4
2750 A pointer is compared against integer zero with \fB<\fR, \fB<=\fR,
2751 \&\fB>\fR, or \fB>=\fR.
2752 .IP "*" 4
2753 (\*(C+ only) An enumerator and a non-enumerator both appear in a
2754 conditional expression.
2755 .IP "*" 4
2756 (\*(C+ only) Ambiguous virtual bases.
2757 .IP "*" 4
2758 (\*(C+ only) Subscripting an array which has been declared \fBregister\fR.
2759 .IP "*" 4
2760 (\*(C+ only) Taking the address of a variable which has been declared
2761 \&\fBregister\fR.
2762 .IP "*" 4
2763 (\*(C+ only) A base class is not initialized in a derived class' copy
2764 constructor.
2766 .RS 4
2768 .IP "\fB\-Wchar\-subscripts\fR" 4
2769 .IX Item "-Wchar-subscripts"
2770 Warn if an array subscript has type \f(CW\*(C`char\*(C'\fR.  This is a common cause
2771 of error, as programmers often forget that this type is signed on some
2772 machines.
2773 This warning is enabled by \fB\-Wall\fR.
2774 .IP "\fB\-Wcomment\fR" 4
2775 .IX Item "-Wcomment"
2776 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
2777 comment, or whenever a Backslash-Newline appears in a \fB//\fR comment.
2778 This warning is enabled by \fB\-Wall\fR.
2779 .IP "\fB\-Wformat\fR" 4
2780 .IX Item "-Wformat"
2781 Check calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR, etc., to make sure that
2782 the arguments supplied have types appropriate to the format string
2783 specified, and that the conversions specified in the format string make
2784 sense.  This includes standard functions, and others specified by format
2785 attributes, in the \f(CW\*(C`printf\*(C'\fR,
2786 \&\f(CW\*(C`scanf\*(C'\fR, \f(CW\*(C`strftime\*(C'\fR and \f(CW\*(C`strfmon\*(C'\fR (an X/Open extension,
2787 not in the C standard) families (or other target-specific families).
2788 Which functions are checked without format attributes having been
2789 specified depends on the standard version selected, and such checks of
2790 functions without the attribute specified are disabled by
2791 \&\fB\-ffreestanding\fR or \fB\-fno\-builtin\fR.
2793 The formats are checked against the format features supported by \s-1GNU\s0
2794 libc version 2.2.  These include all \s-1ISO\s0 C90 and C99 features, as well
2795 as features from the Single Unix Specification and some \s-1BSD\s0 and \s-1GNU\s0
2796 extensions.  Other library implementations may not support all these
2797 features; \s-1GCC\s0 does not support warning about features that go beyond a
2798 particular library's limitations.  However, if \fB\-pedantic\fR is used
2799 with \fB\-Wformat\fR, warnings will be given about format features not
2800 in the selected standard version (but not for \f(CW\*(C`strfmon\*(C'\fR formats,
2801 since those are not in any version of the C standard).  
2803 Since \fB\-Wformat\fR also checks for null format arguments for
2804 several functions, \fB\-Wformat\fR also implies \fB\-Wnonnull\fR.
2806 \&\fB\-Wformat\fR is included in \fB\-Wall\fR.  For more control over some
2807 aspects of format checking, the options \fB\-Wformat\-y2k\fR,
2808 \&\fB\-Wno\-format\-extra\-args\fR, \fB\-Wno\-format\-zero\-length\fR,
2809 \&\fB\-Wformat\-nonliteral\fR, \fB\-Wformat\-security\fR, and
2810 \&\fB\-Wformat=2\fR are available, but are not included in \fB\-Wall\fR.
2811 .IP "\fB\-Wformat\-y2k\fR" 4
2812 .IX Item "-Wformat-y2k"
2813 If \fB\-Wformat\fR is specified, also warn about \f(CW\*(C`strftime\*(C'\fR
2814 formats which may yield only a two-digit year.
2815 .IP "\fB\-Wno\-format\-contains\-nul\fR" 4
2816 .IX Item "-Wno-format-contains-nul"
2817 If \fB\-Wformat\fR is specified, do not warn about format strings that
2818 contain \s-1NUL\s0 bytes.
2819 .IP "\fB\-Wno\-format\-extra\-args\fR" 4
2820 .IX Item "-Wno-format-extra-args"
2821 If \fB\-Wformat\fR is specified, do not warn about excess arguments to a
2822 \&\f(CW\*(C`printf\*(C'\fR or \f(CW\*(C`scanf\*(C'\fR format function.  The C standard specifies
2823 that such arguments are ignored.
2825 Where the unused arguments lie between used arguments that are
2826 specified with \fB$\fR operand number specifications, normally
2827 warnings are still given, since the implementation could not know what
2828 type to pass to \f(CW\*(C`va_arg\*(C'\fR to skip the unused arguments.  However,
2829 in the case of \f(CW\*(C`scanf\*(C'\fR formats, this option will suppress the
2830 warning if the unused arguments are all pointers, since the Single
2831 Unix Specification says that such unused arguments are allowed.
2832 .IP "\fB\-Wno\-format\-zero\-length\fR (C and Objective-C only)" 4
2833 .IX Item "-Wno-format-zero-length (C and Objective-C only)"
2834 If \fB\-Wformat\fR is specified, do not warn about zero-length formats.
2835 The C standard specifies that zero-length formats are allowed.
2836 .IP "\fB\-Wformat\-nonliteral\fR" 4
2837 .IX Item "-Wformat-nonliteral"
2838 If \fB\-Wformat\fR is specified, also warn if the format string is not a
2839 string literal and so cannot be checked, unless the format function
2840 takes its format arguments as a \f(CW\*(C`va_list\*(C'\fR.
2841 .IP "\fB\-Wformat\-security\fR" 4
2842 .IX Item "-Wformat-security"
2843 If \fB\-Wformat\fR is specified, also warn about uses of format
2844 functions that represent possible security problems.  At present, this
2845 warns about calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR functions where the
2846 format string is not a string literal and there are no format arguments,
2847 as in \f(CW\*(C`printf (foo);\*(C'\fR.  This may be a security hole if the format
2848 string came from untrusted input and contains \fB%n\fR.  (This is
2849 currently a subset of what \fB\-Wformat\-nonliteral\fR warns about, but
2850 in future warnings may be added to \fB\-Wformat\-security\fR that are not
2851 included in \fB\-Wformat\-nonliteral\fR.)
2852 .IP "\fB\-Wformat=2\fR" 4
2853 .IX Item "-Wformat=2"
2854 Enable \fB\-Wformat\fR plus format checks not included in
2855 \&\fB\-Wformat\fR.  Currently equivalent to \fB\-Wformat
2856 \&\-Wformat\-nonliteral \-Wformat\-security \-Wformat\-y2k\fR.
2857 .IP "\fB\-Wnonnull\fR (C and Objective-C only)" 4
2858 .IX Item "-Wnonnull (C and Objective-C only)"
2859 Warn about passing a null pointer for arguments marked as
2860 requiring a non-null value by the \f(CW\*(C`nonnull\*(C'\fR function attribute.
2862 \&\fB\-Wnonnull\fR is included in \fB\-Wall\fR and \fB\-Wformat\fR.  It
2863 can be disabled with the \fB\-Wno\-nonnull\fR option.
2864 .IP "\fB\-Winit\-self\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
2865 .IX Item "-Winit-self (C, , Objective-C and Objective- only)"
2866 Warn about uninitialized variables which are initialized with themselves.
2867 Note this option can only be used with the \fB\-Wuninitialized\fR option.
2869 For example, \s-1GCC\s0 will warn about \f(CW\*(C`i\*(C'\fR being uninitialized in the
2870 following snippet only when \fB\-Winit\-self\fR has been specified:
2872 .Vb 5
2873 \&        int f()
2874 \&        {
2875 \&          int i = i;
2876 \&          return i;
2877 \&        }
2879 .IP "\fB\-Wimplicit\-int\fR (C and Objective-C only)" 4
2880 .IX Item "-Wimplicit-int (C and Objective-C only)"
2881 Warn when a declaration does not specify a type.
2882 This warning is enabled by \fB\-Wall\fR.
2883 .IP "\fB\-Wimplicit\-function\-declaration\fR (C and Objective-C only)" 4
2884 .IX Item "-Wimplicit-function-declaration (C and Objective-C only)"
2885 Give a warning whenever a function is used before being declared. In
2886 C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this warning is
2887 enabled by default and it is made into an error by
2888 \&\fB\-pedantic\-errors\fR. This warning is also enabled by
2889 \&\fB\-Wall\fR.
2890 .IP "\fB\-Wimplicit\fR" 4
2891 .IX Item "-Wimplicit"
2892 Same as \fB\-Wimplicit\-int\fR and \fB\-Wimplicit\-function\-declaration\fR.
2893 This warning is enabled by \fB\-Wall\fR.
2894 .IP "\fB\-Wignored\-qualifiers\fR (C and \*(C+ only)" 4
2895 .IX Item "-Wignored-qualifiers (C and  only)"
2896 Warn if the return type of a function has a type qualifier
2897 such as \f(CW\*(C`const\*(C'\fR.  For \s-1ISO\s0 C such a type qualifier has no effect,
2898 since the value returned by a function is not an lvalue.
2899 For \*(C+, the warning is only emitted for scalar types or \f(CW\*(C`void\*(C'\fR.
2900 \&\s-1ISO\s0 C prohibits qualified \f(CW\*(C`void\*(C'\fR return types on function
2901 definitions, so such return types always receive a warning
2902 even without this option.
2904 This warning is also enabled by \fB\-Wextra\fR.
2905 .IP "\fB\-Wmain\fR" 4
2906 .IX Item "-Wmain"
2907 Warn if the type of \fBmain\fR is suspicious.  \fBmain\fR should be
2908 a function with external linkage, returning int, taking either zero
2909 arguments, two, or three arguments of appropriate types.  This warning
2910 is enabled by default in \*(C+ and is enabled by either \fB\-Wall\fR
2911 or \fB\-pedantic\fR.
2912 .IP "\fB\-Wmissing\-braces\fR" 4
2913 .IX Item "-Wmissing-braces"
2914 Warn if an aggregate or union initializer is not fully bracketed.  In
2915 the following example, the initializer for \fBa\fR is not fully
2916 bracketed, but that for \fBb\fR is fully bracketed.
2918 .Vb 2
2919 \&        int a[2][2] = { 0, 1, 2, 3 };
2920 \&        int b[2][2] = { { 0, 1 }, { 2, 3 } };
2923 This warning is enabled by \fB\-Wall\fR.
2924 .IP "\fB\-Wmissing\-include\-dirs\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
2925 .IX Item "-Wmissing-include-dirs (C, , Objective-C and Objective- only)"
2926 Warn if a user-supplied include directory does not exist.
2927 .IP "\fB\-Wparentheses\fR" 4
2928 .IX Item "-Wparentheses"
2929 Warn if parentheses are omitted in certain contexts, such
2930 as when there is an assignment in a context where a truth value
2931 is expected, or when operators are nested whose precedence people
2932 often get confused about.
2934 Also warn if a comparison like \fBx<=y<=z\fR appears; this is
2935 equivalent to \fB(x<=y ? 1 : 0) <= z\fR, which is a different
2936 interpretation from that of ordinary mathematical notation.
2938 Also warn about constructions where there may be confusion to which
2939 \&\f(CW\*(C`if\*(C'\fR statement an \f(CW\*(C`else\*(C'\fR branch belongs.  Here is an example of
2940 such a case:
2942 .Vb 7
2943 \&        {
2944 \&          if (a)
2945 \&            if (b)
2946 \&              foo ();
2947 \&          else
2948 \&            bar ();
2949 \&        }
2952 In C/\*(C+, every \f(CW\*(C`else\*(C'\fR branch belongs to the innermost possible
2953 \&\f(CW\*(C`if\*(C'\fR statement, which in this example is \f(CW\*(C`if (b)\*(C'\fR.  This is
2954 often not what the programmer expected, as illustrated in the above
2955 example by indentation the programmer chose.  When there is the
2956 potential for this confusion, \s-1GCC\s0 will issue a warning when this flag
2957 is specified.  To eliminate the warning, add explicit braces around
2958 the innermost \f(CW\*(C`if\*(C'\fR statement so there is no way the \f(CW\*(C`else\*(C'\fR
2959 could belong to the enclosing \f(CW\*(C`if\*(C'\fR.  The resulting code would
2960 look like this:
2962 .Vb 9
2963 \&        {
2964 \&          if (a)
2965 \&            {
2966 \&              if (b)
2967 \&                foo ();
2968 \&              else
2969 \&                bar ();
2970 \&            }
2971 \&        }
2974 This warning is enabled by \fB\-Wall\fR.
2975 .IP "\fB\-Wsequence\-point\fR" 4
2976 .IX Item "-Wsequence-point"
2977 Warn about code that may have undefined semantics because of violations
2978 of sequence point rules in the C and \*(C+ standards.
2980 The C and \*(C+ standards defines the order in which expressions in a C/\*(C+
2981 program are evaluated in terms of \fIsequence points\fR, which represent
2982 a partial ordering between the execution of parts of the program: those
2983 executed before the sequence point, and those executed after it.  These
2984 occur after the evaluation of a full expression (one which is not part
2985 of a larger expression), after the evaluation of the first operand of a
2986 \&\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
2987 function is called (but after the evaluation of its arguments and the
2988 expression denoting the called function), and in certain other places.
2989 Other than as expressed by the sequence point rules, the order of
2990 evaluation of subexpressions of an expression is not specified.  All
2991 these rules describe only a partial order rather than a total order,
2992 since, for example, if two functions are called within one expression
2993 with no sequence point between them, the order in which the functions
2994 are called is not specified.  However, the standards committee have
2995 ruled that function calls do not overlap.
2997 It is not specified when between sequence points modifications to the
2998 values of objects take effect.  Programs whose behavior depends on this
2999 have undefined behavior; the C and \*(C+ standards specify that \*(L"Between
3000 the previous and next sequence point an object shall have its stored
3001 value modified at most once by the evaluation of an expression.
3002 Furthermore, the prior value shall be read only to determine the value
3003 to be stored.\*(R".  If a program breaks these rules, the results on any
3004 particular implementation are entirely unpredictable.
3006 Examples of code with undefined behavior are \f(CW\*(C`a = a++;\*(C'\fR, \f(CW\*(C`a[n]
3007 = b[n++]\*(C'\fR and \f(CW\*(C`a[i++] = i;\*(C'\fR.  Some more complicated cases are not
3008 diagnosed by this option, and it may give an occasional false positive
3009 result, but in general it has been found fairly effective at detecting
3010 this sort of problem in programs.
3012 The standard is worded confusingly, therefore there is some debate
3013 over the precise meaning of the sequence point rules in subtle cases.
3014 Links to discussions of the problem, including proposed formal
3015 definitions, may be found on the \s-1GCC\s0 readings page, at
3016 <\fBhttp://gcc.gnu.org/readings.html\fR>.
3018 This warning is enabled by \fB\-Wall\fR for C and \*(C+.
3019 .IP "\fB\-Wreturn\-type\fR" 4
3020 .IX Item "-Wreturn-type"
3021 Warn whenever a function is defined with a return-type that defaults
3022 to \f(CW\*(C`int\*(C'\fR.  Also warn about any \f(CW\*(C`return\*(C'\fR statement with no
3023 return-value in a function whose return-type is not \f(CW\*(C`void\*(C'\fR
3024 (falling off the end of the function body is considered returning
3025 without a value), and about a \f(CW\*(C`return\*(C'\fR statement with an
3026 expression in a function whose return-type is \f(CW\*(C`void\*(C'\fR.
3028 For \*(C+, a function without return type always produces a diagnostic
3029 message, even when \fB\-Wno\-return\-type\fR is specified.  The only
3030 exceptions are \fBmain\fR and functions defined in system headers.
3032 This warning is enabled by \fB\-Wall\fR.
3033 .IP "\fB\-Wswitch\fR" 4
3034 .IX Item "-Wswitch"
3035 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
3036 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
3037 enumeration.  (The presence of a \f(CW\*(C`default\*(C'\fR label prevents this
3038 warning.)  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
3039 provoke warnings when this option is used (even if there is a
3040 \&\f(CW\*(C`default\*(C'\fR label).
3041 This warning is enabled by \fB\-Wall\fR.
3042 .IP "\fB\-Wswitch\-default\fR" 4
3043 .IX Item "-Wswitch-default"
3044 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement does not have a \f(CW\*(C`default\*(C'\fR
3045 case.
3046 .IP "\fB\-Wswitch\-enum\fR" 4
3047 .IX Item "-Wswitch-enum"
3048 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
3049 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
3050 enumeration.  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
3051 provoke warnings when this option is used.  The only difference
3052 between \fB\-Wswitch\fR and this option is that this option gives a
3053 warning about an omitted enumeration code even if there is a
3054 \&\f(CW\*(C`default\*(C'\fR label.
3055 .IP "\fB\-Wsync\-nand\fR (C and \*(C+ only)" 4
3056 .IX Item "-Wsync-nand (C and  only)"
3057 Warn when \f(CW\*(C`_\|_sync_fetch_and_nand\*(C'\fR and \f(CW\*(C`_\|_sync_nand_and_fetch\*(C'\fR
3058 built-in functions are used.  These functions changed semantics in \s-1GCC\s0 4.4.
3059 .IP "\fB\-Wtrigraphs\fR" 4
3060 .IX Item "-Wtrigraphs"
3061 Warn if any trigraphs are encountered that might change the meaning of
3062 the program (trigraphs within comments are not warned about).
3063 This warning is enabled by \fB\-Wall\fR.
3064 .IP "\fB\-Wunused\-function\fR" 4
3065 .IX Item "-Wunused-function"
3066 Warn whenever a static function is declared but not defined or a
3067 non-inline static function is unused.
3068 This warning is enabled by \fB\-Wall\fR.
3069 .IP "\fB\-Wunused\-label\fR" 4
3070 .IX Item "-Wunused-label"
3071 Warn whenever a label is declared but not used.
3072 This warning is enabled by \fB\-Wall\fR.
3074 To suppress this warning use the \fBunused\fR attribute.
3075 .IP "\fB\-Wunused\-parameter\fR" 4
3076 .IX Item "-Wunused-parameter"
3077 Warn whenever a function parameter is unused aside from its declaration.
3079 To suppress this warning use the \fBunused\fR attribute.
3080 .IP "\fB\-Wno\-unused\-result\fR" 4
3081 .IX Item "-Wno-unused-result"
3082 Do not warn if a caller of a function marked with attribute
3083 \&\f(CW\*(C`warn_unused_result\*(C'\fR does not use
3084 its return value. The default is \fB\-Wunused\-result\fR.
3085 .IP "\fB\-Wunused\-variable\fR" 4
3086 .IX Item "-Wunused-variable"
3087 Warn whenever a local variable or non-constant static variable is unused
3088 aside from its declaration.
3089 This warning is enabled by \fB\-Wall\fR.
3091 To suppress this warning use the \fBunused\fR attribute.
3092 .IP "\fB\-Wunused\-value\fR" 4
3093 .IX Item "-Wunused-value"
3094 Warn whenever a statement computes a result that is explicitly not
3095 used. To suppress this warning cast the unused expression to
3096 \&\fBvoid\fR. This includes an expression-statement or the left-hand
3097 side of a comma expression that contains no side effects. For example,
3098 an expression such as \fBx[i,j]\fR will cause a warning, while
3099 \&\fBx[(void)i,j]\fR will not.
3101 This warning is enabled by \fB\-Wall\fR.
3102 .IP "\fB\-Wunused\fR" 4
3103 .IX Item "-Wunused"
3104 All the above \fB\-Wunused\fR options combined.
3106 In order to get a warning about an unused function parameter, you must
3107 either specify \fB\-Wextra \-Wunused\fR (note that \fB\-Wall\fR implies
3108 \&\fB\-Wunused\fR), or separately specify \fB\-Wunused\-parameter\fR.
3109 .IP "\fB\-Wuninitialized\fR" 4
3110 .IX Item "-Wuninitialized"
3111 Warn if an automatic variable is used without first being initialized
3112 or if a variable may be clobbered by a \f(CW\*(C`setjmp\*(C'\fR call. In \*(C+,
3113 warn if a non-static reference or non-static \fBconst\fR member
3114 appears in a class without constructors.
3116 If you want to warn about code which uses the uninitialized value of the
3117 variable in its own initializer, use the \fB\-Winit\-self\fR option.
3119 These warnings occur for individual uninitialized or clobbered
3120 elements of structure, union or array variables as well as for
3121 variables which are uninitialized or clobbered as a whole.  They do
3122 not occur for variables or elements declared \f(CW\*(C`volatile\*(C'\fR.  Because
3123 these warnings depend on optimization, the exact variables or elements
3124 for which there are warnings will depend on the precise optimization
3125 options and version of \s-1GCC\s0 used.
3127 Note that there may be no warning about a variable that is used only
3128 to compute a value that itself is never used, because such
3129 computations may be deleted by data flow analysis before the warnings
3130 are printed.
3132 These warnings are made optional because \s-1GCC\s0 is not smart
3133 enough to see all the reasons why the code might be correct
3134 despite appearing to have an error.  Here is one example of how
3135 this can happen:
3137 .Vb 12
3138 \&        {
3139 \&          int x;
3140 \&          switch (y)
3141 \&            {
3142 \&            case 1: x = 1;
3143 \&              break;
3144 \&            case 2: x = 4;
3145 \&              break;
3146 \&            case 3: x = 5;
3147 \&            }
3148 \&          foo (x);
3149 \&        }
3152 If the value of \f(CW\*(C`y\*(C'\fR is always 1, 2 or 3, then \f(CW\*(C`x\*(C'\fR is
3153 always initialized, but \s-1GCC\s0 doesn't know this.  Here is
3154 another common case:
3156 .Vb 6
3157 \&        {
3158 \&          int save_y;
3159 \&          if (change_y) save_y = y, y = new_y;
3160 \&          ...
3161 \&          if (change_y) y = save_y;
3162 \&        }
3165 This has no bug because \f(CW\*(C`save_y\*(C'\fR is used only if it is set.
3167 This option also warns when a non-volatile automatic variable might be
3168 changed by a call to \f(CW\*(C`longjmp\*(C'\fR.  These warnings as well are possible
3169 only in optimizing compilation.
3171 The compiler sees only the calls to \f(CW\*(C`setjmp\*(C'\fR.  It cannot know
3172 where \f(CW\*(C`longjmp\*(C'\fR will be called; in fact, a signal handler could
3173 call it at any point in the code.  As a result, you may get a warning
3174 even when there is in fact no problem because \f(CW\*(C`longjmp\*(C'\fR cannot
3175 in fact be called at the place which would cause a problem.
3177 Some spurious warnings can be avoided if you declare all the functions
3178 you use that never return as \f(CW\*(C`noreturn\*(C'\fR.  
3180 This warning is enabled by \fB\-Wall\fR or \fB\-Wextra\fR.
3181 .IP "\fB\-Wunknown\-pragmas\fR" 4
3182 .IX Item "-Wunknown-pragmas"
3183 Warn when a #pragma directive is encountered which is not understood by
3184 \&\s-1GCC\s0.  If this command line option is used, warnings will even be issued
3185 for unknown pragmas in system header files.  This is not the case if
3186 the warnings were only enabled by the \fB\-Wall\fR command line option.
3187 .IP "\fB\-Wno\-pragmas\fR" 4
3188 .IX Item "-Wno-pragmas"
3189 Do not warn about misuses of pragmas, such as incorrect parameters,
3190 invalid syntax, or conflicts between pragmas.  See also
3191 \&\fB\-Wunknown\-pragmas\fR.
3192 .IP "\fB\-Wstrict\-aliasing\fR" 4
3193 .IX Item "-Wstrict-aliasing"
3194 This option is only active when \fB\-fstrict\-aliasing\fR is active.
3195 It warns about code which might break the strict aliasing rules that the
3196 compiler is using for optimization.  The warning does not catch all
3197 cases, but does attempt to catch the more common pitfalls.  It is
3198 included in \fB\-Wall\fR.
3199 It is equivalent to \fB\-Wstrict\-aliasing=3\fR
3200 .IP "\fB\-Wstrict\-aliasing=n\fR" 4
3201 .IX Item "-Wstrict-aliasing=n"
3202 This option is only active when \fB\-fstrict\-aliasing\fR is active.
3203 It warns about code which might break the strict aliasing rules that the
3204 compiler is using for optimization.
3205 Higher levels correspond to higher accuracy (fewer false positives).
3206 Higher levels also correspond to more effort, similar to the way \-O works.
3207 \&\fB\-Wstrict\-aliasing\fR is equivalent to \fB\-Wstrict\-aliasing=n\fR,
3208 with n=3.
3210 Level 1: Most aggressive, quick, least accurate.
3211 Possibly useful when higher levels
3212 do not warn but \-fstrict\-aliasing still breaks the code, as it has very few
3213 false negatives.  However, it has many false positives.
3214 Warns for all pointer conversions between possibly incompatible types,
3215 even if never dereferenced.  Runs in the frontend only.
3217 Level 2: Aggressive, quick, not too precise.
3218 May still have many false positives (not as many as level 1 though),
3219 and few false negatives (but possibly more than level 1).
3220 Unlike level 1, it only warns when an address is taken.  Warns about
3221 incomplete types.  Runs in the frontend only.
3223 Level 3 (default for \fB\-Wstrict\-aliasing\fR):
3224 Should have very few false positives and few false
3225 negatives.  Slightly slower than levels 1 or 2 when optimization is enabled.
3226 Takes care of the common pun+dereference pattern in the frontend:
3227 \&\f(CW\*(C`*(int*)&some_float\*(C'\fR.
3228 If optimization is enabled, it also runs in the backend, where it deals
3229 with multiple statement cases using flow-sensitive points-to information.
3230 Only warns when the converted pointer is dereferenced.
3231 Does not warn about incomplete types.
3232 .IP "\fB\-Wstrict\-overflow\fR" 4
3233 .IX Item "-Wstrict-overflow"
3234 .PD 0
3235 .IP "\fB\-Wstrict\-overflow=\fR\fIn\fR" 4
3236 .IX Item "-Wstrict-overflow=n"
3238 This option is only active when \fB\-fstrict\-overflow\fR is active.
3239 It warns about cases where the compiler optimizes based on the
3240 assumption that signed overflow does not occur.  Note that it does not
3241 warn about all cases where the code might overflow: it only warns
3242 about cases where the compiler implements some optimization.  Thus
3243 this warning depends on the optimization level.
3245 An optimization which assumes that signed overflow does not occur is
3246 perfectly safe if the values of the variables involved are such that
3247 overflow never does, in fact, occur.  Therefore this warning can
3248 easily give a false positive: a warning about code which is not
3249 actually a problem.  To help focus on important issues, several
3250 warning levels are defined.  No warnings are issued for the use of
3251 undefined signed overflow when estimating how many iterations a loop
3252 will require, in particular when determining whether a loop will be
3253 executed at all.
3254 .RS 4
3255 .IP "\fB\-Wstrict\-overflow=1\fR" 4
3256 .IX Item "-Wstrict-overflow=1"
3257 Warn about cases which are both questionable and easy to avoid.  For
3258 example: \f(CW\*(C`x + 1 > x\*(C'\fR; with \fB\-fstrict\-overflow\fR, the
3259 compiler will simplify this to \f(CW1\fR.  This level of
3260 \&\fB\-Wstrict\-overflow\fR is enabled by \fB\-Wall\fR; higher levels
3261 are not, and must be explicitly requested.
3262 .IP "\fB\-Wstrict\-overflow=2\fR" 4
3263 .IX Item "-Wstrict-overflow=2"
3264 Also warn about other cases where a comparison is simplified to a
3265 constant.  For example: \f(CW\*(C`abs (x) >= 0\*(C'\fR.  This can only be
3266 simplified when \fB\-fstrict\-overflow\fR is in effect, because
3267 \&\f(CW\*(C`abs (INT_MIN)\*(C'\fR overflows to \f(CW\*(C`INT_MIN\*(C'\fR, which is less than
3268 zero.  \fB\-Wstrict\-overflow\fR (with no level) is the same as
3269 \&\fB\-Wstrict\-overflow=2\fR.
3270 .IP "\fB\-Wstrict\-overflow=3\fR" 4
3271 .IX Item "-Wstrict-overflow=3"
3272 Also warn about other cases where a comparison is simplified.  For
3273 example: \f(CW\*(C`x + 1 > 1\*(C'\fR will be simplified to \f(CW\*(C`x > 0\*(C'\fR.
3274 .IP "\fB\-Wstrict\-overflow=4\fR" 4
3275 .IX Item "-Wstrict-overflow=4"
3276 Also warn about other simplifications not covered by the above cases.
3277 For example: \f(CW\*(C`(x * 10) / 5\*(C'\fR will be simplified to \f(CW\*(C`x * 2\*(C'\fR.
3278 .IP "\fB\-Wstrict\-overflow=5\fR" 4
3279 .IX Item "-Wstrict-overflow=5"
3280 Also warn about cases where the compiler reduces the magnitude of a
3281 constant involved in a comparison.  For example: \f(CW\*(C`x + 2 > y\*(C'\fR will
3282 be simplified to \f(CW\*(C`x + 1 >= y\*(C'\fR.  This is reported only at the
3283 highest warning level because this simplification applies to many
3284 comparisons, so this warning level will give a very large number of
3285 false positives.
3287 .RS 4
3289 .IP "\fB\-Warray\-bounds\fR" 4
3290 .IX Item "-Warray-bounds"
3291 This option is only active when \fB\-ftree\-vrp\fR is active
3292 (default for \-O2 and above). It warns about subscripts to arrays
3293 that are always out of bounds. This warning is enabled by \fB\-Wall\fR.
3294 .IP "\fB\-Wno\-div\-by\-zero\fR" 4
3295 .IX Item "-Wno-div-by-zero"
3296 Do not warn about compile-time integer division by zero.  Floating point
3297 division by zero is not warned about, as it can be a legitimate way of
3298 obtaining infinities and NaNs.
3299 .IP "\fB\-Wsystem\-headers\fR" 4
3300 .IX Item "-Wsystem-headers"
3301 Print warning messages for constructs found in system header files.
3302 Warnings from system headers are normally suppressed, on the assumption
3303 that they usually do not indicate real problems and would only make the
3304 compiler output harder to read.  Using this command line option tells
3305 \&\s-1GCC\s0 to emit warnings from system headers as if they occurred in user
3306 code.  However, note that using \fB\-Wall\fR in conjunction with this
3307 option will \fInot\fR warn about unknown pragmas in system
3308 headers\-\-\-for that, \fB\-Wunknown\-pragmas\fR must also be used.
3309 .IP "\fB\-Wfloat\-equal\fR" 4
3310 .IX Item "-Wfloat-equal"
3311 Warn if floating point values are used in equality comparisons.
3313 The idea behind this is that sometimes it is convenient (for the
3314 programmer) to consider floating-point values as approximations to
3315 infinitely precise real numbers.  If you are doing this, then you need
3316 to compute (by analyzing the code, or in some other way) the maximum or
3317 likely maximum error that the computation introduces, and allow for it
3318 when performing comparisons (and when producing output, but that's a
3319 different problem).  In particular, instead of testing for equality, you
3320 would check to see whether the two values have ranges that overlap; and
3321 this is done with the relational operators, so equality comparisons are
3322 probably mistaken.
3323 .IP "\fB\-Wtraditional\fR (C and Objective-C only)" 4
3324 .IX Item "-Wtraditional (C and Objective-C only)"
3325 Warn about certain constructs that behave differently in traditional and
3326 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
3327 equivalent, and/or problematic constructs which should be avoided.
3328 .RS 4
3329 .IP "*" 4
3330 Macro parameters that appear within string literals in the macro body.
3331 In traditional C macro replacement takes place within string literals,
3332 but does not in \s-1ISO\s0 C.
3333 .IP "*" 4
3334 In traditional C, some preprocessor directives did not exist.
3335 Traditional preprocessors would only consider a line to be a directive
3336 if the \fB#\fR appeared in column 1 on the line.  Therefore
3337 \&\fB\-Wtraditional\fR warns about directives that traditional C
3338 understands but would ignore because the \fB#\fR does not appear as the
3339 first character on the line.  It also suggests you hide directives like
3340 \&\fB#pragma\fR not understood by traditional C by indenting them.  Some
3341 traditional implementations would not recognize \fB#elif\fR, so it
3342 suggests avoiding it altogether.
3343 .IP "*" 4
3344 A function-like macro that appears without arguments.
3345 .IP "*" 4
3346 The unary plus operator.
3347 .IP "*" 4
3348 The \fBU\fR integer constant suffix, or the \fBF\fR or \fBL\fR floating point
3349 constant suffixes.  (Traditional C does support the \fBL\fR suffix on integer
3350 constants.)  Note, these suffixes appear in macros defined in the system
3351 headers of most modern systems, e.g. the \fB_MIN\fR/\fB_MAX\fR macros in \f(CW\*(C`<limits.h>\*(C'\fR.
3352 Use of these macros in user code might normally lead to spurious
3353 warnings, however \s-1GCC\s0's integrated preprocessor has enough context to
3354 avoid warning in these cases.
3355 .IP "*" 4
3356 A function declared external in one block and then used after the end of
3357 the block.
3358 .IP "*" 4
3359 A \f(CW\*(C`switch\*(C'\fR statement has an operand of type \f(CW\*(C`long\*(C'\fR.
3360 .IP "*" 4
3361 A non\-\f(CW\*(C`static\*(C'\fR function declaration follows a \f(CW\*(C`static\*(C'\fR one.
3362 This construct is not accepted by some traditional C compilers.
3363 .IP "*" 4
3364 The \s-1ISO\s0 type of an integer constant has a different width or
3365 signedness from its traditional type.  This warning is only issued if
3366 the base of the constant is ten.  I.e. hexadecimal or octal values, which
3367 typically represent bit patterns, are not warned about.
3368 .IP "*" 4
3369 Usage of \s-1ISO\s0 string concatenation is detected.
3370 .IP "*" 4
3371 Initialization of automatic aggregates.
3372 .IP "*" 4
3373 Identifier conflicts with labels.  Traditional C lacks a separate
3374 namespace for labels.
3375 .IP "*" 4
3376 Initialization of unions.  If the initializer is zero, the warning is
3377 omitted.  This is done under the assumption that the zero initializer in
3378 user code appears conditioned on e.g. \f(CW\*(C`_\|_STDC_\|_\*(C'\fR to avoid missing
3379 initializer warnings and relies on default initialization to zero in the
3380 traditional C case.
3381 .IP "*" 4
3382 Conversions by prototypes between fixed/floating point values and vice
3383 versa.  The absence of these prototypes when compiling with traditional
3384 C would cause serious problems.  This is a subset of the possible
3385 conversion warnings, for the full set use \fB\-Wtraditional\-conversion\fR.
3386 .IP "*" 4
3387 Use of \s-1ISO\s0 C style function definitions.  This warning intentionally is
3388 \&\fInot\fR issued for prototype declarations or variadic functions
3389 because these \s-1ISO\s0 C features will appear in your code when using
3390 libiberty's traditional C compatibility macros, \f(CW\*(C`PARAMS\*(C'\fR and
3391 \&\f(CW\*(C`VPARAMS\*(C'\fR.  This warning is also bypassed for nested functions
3392 because that feature is already a \s-1GCC\s0 extension and thus not relevant to
3393 traditional C compatibility.
3395 .RS 4
3397 .IP "\fB\-Wtraditional\-conversion\fR (C and Objective-C only)" 4
3398 .IX Item "-Wtraditional-conversion (C and Objective-C only)"
3399 Warn if a prototype causes a type conversion that is different from what
3400 would happen to the same argument in the absence of a prototype.  This
3401 includes conversions of fixed point to floating and vice versa, and
3402 conversions changing the width or signedness of a fixed point argument
3403 except when the same as the default promotion.
3404 .IP "\fB\-Wdeclaration\-after\-statement\fR (C and Objective-C only)" 4
3405 .IX Item "-Wdeclaration-after-statement (C and Objective-C only)"
3406 Warn when a declaration is found after a statement in a block.  This
3407 construct, known from \*(C+, was introduced with \s-1ISO\s0 C99 and is by default
3408 allowed in \s-1GCC\s0.  It is not supported by \s-1ISO\s0 C90 and was not supported by
3409 \&\s-1GCC\s0 versions before \s-1GCC\s0 3.0.  
3410 .IP "\fB\-Wundef\fR" 4
3411 .IX Item "-Wundef"
3412 Warn if an undefined identifier is evaluated in an \fB#if\fR directive.
3413 .IP "\fB\-Wno\-endif\-labels\fR" 4
3414 .IX Item "-Wno-endif-labels"
3415 Do not warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
3416 .IP "\fB\-Wshadow\fR" 4
3417 .IX Item "-Wshadow"
3418 Warn whenever a local variable shadows another local variable, parameter or
3419 global variable or whenever a built-in function is shadowed.
3420 .IP "\fB\-Wlarger\-than=\fR\fIlen\fR" 4
3421 .IX Item "-Wlarger-than=len"
3422 Warn whenever an object of larger than \fIlen\fR bytes is defined.
3423 .IP "\fB\-Wframe\-larger\-than=\fR\fIlen\fR" 4
3424 .IX Item "-Wframe-larger-than=len"
3425 Warn if the size of a function frame is larger than \fIlen\fR bytes.
3426 The computation done to determine the stack frame size is approximate
3427 and not conservative.
3428 The actual requirements may be somewhat greater than \fIlen\fR
3429 even if you do not get a warning.  In addition, any space allocated
3430 via \f(CW\*(C`alloca\*(C'\fR, variable-length arrays, or related constructs
3431 is not included by the compiler when determining
3432 whether or not to issue a warning.
3433 .IP "\fB\-Wunsafe\-loop\-optimizations\fR" 4
3434 .IX Item "-Wunsafe-loop-optimizations"
3435 Warn if the loop cannot be optimized because the compiler could not
3436 assume anything on the bounds of the loop indices.  With
3437 \&\fB\-funsafe\-loop\-optimizations\fR warn if the compiler made
3438 such assumptions.
3439 .IP "\fB\-Wno\-pedantic\-ms\-format\fR (MinGW targets only)" 4
3440 .IX Item "-Wno-pedantic-ms-format (MinGW targets only)"
3441 Disables the warnings about non-ISO \f(CW\*(C`printf\*(C'\fR / \f(CW\*(C`scanf\*(C'\fR format
3442 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
3443 depending on the \s-1MS\s0 runtime, when you are using the options \fB\-Wformat\fR
3444 and \fB\-pedantic\fR without gnu\-extensions.
3445 .IP "\fB\-Wpointer\-arith\fR" 4
3446 .IX Item "-Wpointer-arith"
3447 Warn about anything that depends on the \*(L"size of\*(R" a function type or
3448 of \f(CW\*(C`void\*(C'\fR.  \s-1GNU\s0 C assigns these types a size of 1, for
3449 convenience in calculations with \f(CW\*(C`void *\*(C'\fR pointers and pointers
3450 to functions.  In \*(C+, warn also when an arithmetic operation involves
3451 \&\f(CW\*(C`NULL\*(C'\fR.  This warning is also enabled by \fB\-pedantic\fR.
3452 .IP "\fB\-Wtype\-limits\fR" 4
3453 .IX Item "-Wtype-limits"
3454 Warn if a comparison is always true or always false due to the limited
3455 range of the data type, but do not warn for constant expressions.  For
3456 example, warn if an unsigned variable is compared against zero with
3457 \&\fB<\fR or \fB>=\fR.  This warning is also enabled by
3458 \&\fB\-Wextra\fR.
3459 .IP "\fB\-Wbad\-function\-cast\fR (C and Objective-C only)" 4
3460 .IX Item "-Wbad-function-cast (C and Objective-C only)"
3461 Warn whenever a function call is cast to a non-matching type.
3462 For example, warn if \f(CW\*(C`int malloc()\*(C'\fR is cast to \f(CW\*(C`anything *\*(C'\fR.
3463 .IP "\fB\-Wc++\-compat\fR (C and Objective-C only)" 4
3464 .IX Item "-Wc++-compat (C and Objective-C only)"
3465 Warn about \s-1ISO\s0 C constructs that are outside of the common subset of
3466 \&\s-1ISO\s0 C and \s-1ISO\s0 \*(C+, e.g. request for implicit conversion from
3467 \&\f(CW\*(C`void *\*(C'\fR to a pointer to non\-\f(CW\*(C`void\*(C'\fR type.
3468 .IP "\fB\-Wc++0x\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
3469 .IX Item "-Wc++0x-compat ( and Objective- only)"
3470 Warn about \*(C+ constructs whose meaning differs between \s-1ISO\s0 \*(C+ 1998 and
3471 \&\s-1ISO\s0 \*(C+ 200x, e.g., identifiers in \s-1ISO\s0 \*(C+ 1998 that will become keywords
3472 in \s-1ISO\s0 \*(C+ 200x.  This warning is enabled by \fB\-Wall\fR.
3473 .IP "\fB\-Wcast\-qual\fR" 4
3474 .IX Item "-Wcast-qual"
3475 Warn whenever a pointer is cast so as to remove a type qualifier from
3476 the target type.  For example, warn if a \f(CW\*(C`const char *\*(C'\fR is cast
3477 to an ordinary \f(CW\*(C`char *\*(C'\fR.
3479 Also warn when making a cast which introduces a type qualifier in an
3480 unsafe way.  For example, casting \f(CW\*(C`char **\*(C'\fR to \f(CW\*(C`const char **\*(C'\fR
3481 is unsafe, as in this example:
3483 .Vb 6
3484 \&          /* p is char ** value.  */
3485 \&          const char **q = (const char **) p;
3486 \&          /* Assignment of readonly string to const char * is OK.  */
3487 \&          *q = "string";
3488 \&          /* Now char** pointer points to read-only memory.  */
3489 \&          **p = 'b';
3491 .IP "\fB\-Wcast\-align\fR" 4
3492 .IX Item "-Wcast-align"
3493 Warn whenever a pointer is cast such that the required alignment of the
3494 target is increased.  For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
3495 an \f(CW\*(C`int *\*(C'\fR on machines where integers can only be accessed at
3496 two\- or four-byte boundaries.
3497 .IP "\fB\-Wwrite\-strings\fR" 4
3498 .IX Item "-Wwrite-strings"
3499 When compiling C, give string constants the type \f(CW\*(C`const
3500 char[\f(CIlength\f(CW]\*(C'\fR so that copying the address of one into a
3501 non\-\f(CW\*(C`const\*(C'\fR \f(CW\*(C`char *\*(C'\fR pointer will get a warning.  These
3502 warnings will help you find at compile time code that can try to write
3503 into a string constant, but only if you have been very careful about
3504 using \f(CW\*(C`const\*(C'\fR in declarations and prototypes.  Otherwise, it will
3505 just be a nuisance. This is why we did not make \fB\-Wall\fR request
3506 these warnings.
3508 When compiling \*(C+, warn about the deprecated conversion from string
3509 literals to \f(CW\*(C`char *\*(C'\fR.  This warning is enabled by default for \*(C+
3510 programs.
3511 .IP "\fB\-Wclobbered\fR" 4
3512 .IX Item "-Wclobbered"
3513 Warn for variables that might be changed by \fBlongjmp\fR or
3514 \&\fBvfork\fR.  This warning is also enabled by \fB\-Wextra\fR.
3515 .IP "\fB\-Wconversion\fR" 4
3516 .IX Item "-Wconversion"
3517 Warn for implicit conversions that may alter a value. This includes
3518 conversions between real and integer, like \f(CW\*(C`abs (x)\*(C'\fR when
3519 \&\f(CW\*(C`x\*(C'\fR is \f(CW\*(C`double\*(C'\fR; conversions between signed and unsigned,
3520 like \f(CW\*(C`unsigned ui = \-1\*(C'\fR; and conversions to smaller types, like
3521 \&\f(CW\*(C`sqrtf (M_PI)\*(C'\fR. Do not warn for explicit casts like \f(CW\*(C`abs
3522 ((int) x)\*(C'\fR and \f(CW\*(C`ui = (unsigned) \-1\*(C'\fR, or if the value is not
3523 changed by the conversion like in \f(CW\*(C`abs (2.0)\*(C'\fR.  Warnings about
3524 conversions between signed and unsigned integers can be disabled by
3525 using \fB\-Wno\-sign\-conversion\fR.
3527 For \*(C+, also warn for confusing overload resolution for user-defined
3528 conversions; and conversions that will never use a type conversion
3529 operator: conversions to \f(CW\*(C`void\*(C'\fR, the same type, a base class or a
3530 reference to them. Warnings about conversions between signed and
3531 unsigned integers are disabled by default in \*(C+ unless
3532 \&\fB\-Wsign\-conversion\fR is explicitly enabled.
3533 .IP "\fB\-Wno\-conversion\-null\fR (\*(C+ and Objective\-\*(C+ only)" 4
3534 .IX Item "-Wno-conversion-null ( and Objective- only)"
3535 Do not warn for conversions between \f(CW\*(C`NULL\*(C'\fR and non-pointer
3536 types. \fB\-Wconversion\-null\fR is enabled by default.
3537 .IP "\fB\-Wempty\-body\fR" 4
3538 .IX Item "-Wempty-body"
3539 Warn if an empty body occurs in an \fBif\fR, \fBelse\fR or \fBdo
3540 while\fR statement.  This warning is also enabled by \fB\-Wextra\fR.
3541 .IP "\fB\-Wenum\-compare\fR" 4
3542 .IX Item "-Wenum-compare"
3543 Warn about a comparison between values of different enum types. In \*(C+
3544 this warning is enabled by default.  In C this warning is enabled by
3545 \&\fB\-Wall\fR.
3546 .IP "\fB\-Wjump\-misses\-init\fR (C, Objective-C only)" 4
3547 .IX Item "-Wjump-misses-init (C, Objective-C only)"
3548 Warn if a \f(CW\*(C`goto\*(C'\fR statement or a \f(CW\*(C`switch\*(C'\fR statement jumps
3549 forward across the initialization of a variable, or jumps backward to a
3550 label after the variable has been initialized.  This only warns about
3551 variables which are initialized when they are declared.  This warning is
3552 only supported for C and Objective C; in \*(C+ this sort of branch is an
3553 error in any case.
3555 \&\fB\-Wjump\-misses\-init\fR is included in \fB\-Wc++\-compat\fR.  It
3556 can be disabled with the \fB\-Wno\-jump\-misses\-init\fR option.
3557 .IP "\fB\-Wsign\-compare\fR" 4
3558 .IX Item "-Wsign-compare"
3559 Warn when a comparison between signed and unsigned values could produce
3560 an incorrect result when the signed value is converted to unsigned.
3561 This warning is also enabled by \fB\-Wextra\fR; to get the other warnings
3562 of \fB\-Wextra\fR without this warning, use \fB\-Wextra \-Wno\-sign\-compare\fR.
3563 .IP "\fB\-Wsign\-conversion\fR" 4
3564 .IX Item "-Wsign-conversion"
3565 Warn for implicit conversions that may change the sign of an integer
3566 value, like assigning a signed integer expression to an unsigned
3567 integer variable. An explicit cast silences the warning. In C, this
3568 option is enabled also by \fB\-Wconversion\fR.
3569 .IP "\fB\-Waddress\fR" 4
3570 .IX Item "-Waddress"
3571 Warn about suspicious uses of memory addresses. These include using
3572 the address of a function in a conditional expression, such as
3573 \&\f(CW\*(C`void func(void); if (func)\*(C'\fR, and comparisons against the memory
3574 address of a string literal, such as \f(CW\*(C`if (x == "abc")\*(C'\fR.  Such
3575 uses typically indicate a programmer error: the address of a function
3576 always evaluates to true, so their use in a conditional usually
3577 indicate that the programmer forgot the parentheses in a function
3578 call; and comparisons against string literals result in unspecified
3579 behavior and are not portable in C, so they usually indicate that the
3580 programmer intended to use \f(CW\*(C`strcmp\*(C'\fR.  This warning is enabled by
3581 \&\fB\-Wall\fR.
3582 .IP "\fB\-Wlogical\-op\fR" 4
3583 .IX Item "-Wlogical-op"
3584 Warn about suspicious uses of logical operators in expressions.
3585 This includes using logical operators in contexts where a
3586 bit-wise operator is likely to be expected.
3587 .IP "\fB\-Waggregate\-return\fR" 4
3588 .IX Item "-Waggregate-return"
3589 Warn if any functions that return structures or unions are defined or
3590 called.  (In languages where you can return an array, this also elicits
3591 a warning.)
3592 .IP "\fB\-Wno\-attributes\fR" 4
3593 .IX Item "-Wno-attributes"
3594 Do not warn if an unexpected \f(CW\*(C`_\|_attribute_\|_\*(C'\fR is used, such as
3595 unrecognized attributes, function attributes applied to variables,
3596 etc.  This will not stop errors for incorrect use of supported
3597 attributes.
3598 .IP "\fB\-Wno\-builtin\-macro\-redefined\fR" 4
3599 .IX Item "-Wno-builtin-macro-redefined"
3600 Do not warn if certain built-in macros are redefined.  This suppresses
3601 warnings for redefinition of \f(CW\*(C`_\|_TIMESTAMP_\|_\*(C'\fR, \f(CW\*(C`_\|_TIME_\|_\*(C'\fR,
3602 \&\f(CW\*(C`_\|_DATE_\|_\*(C'\fR, \f(CW\*(C`_\|_FILE_\|_\*(C'\fR, and \f(CW\*(C`_\|_BASE_FILE_\|_\*(C'\fR.
3603 .IP "\fB\-Wstrict\-prototypes\fR (C and Objective-C only)" 4
3604 .IX Item "-Wstrict-prototypes (C and Objective-C only)"
3605 Warn if a function is declared or defined without specifying the
3606 argument types.  (An old-style function definition is permitted without
3607 a warning if preceded by a declaration which specifies the argument
3608 types.)
3609 .IP "\fB\-Wold\-style\-declaration\fR (C and Objective-C only)" 4
3610 .IX Item "-Wold-style-declaration (C and Objective-C only)"
3611 Warn for obsolescent usages, according to the C Standard, in a
3612 declaration. For example, warn if storage-class specifiers like
3613 \&\f(CW\*(C`static\*(C'\fR are not the first things in a declaration.  This warning
3614 is also enabled by \fB\-Wextra\fR.
3615 .IP "\fB\-Wold\-style\-definition\fR (C and Objective-C only)" 4
3616 .IX Item "-Wold-style-definition (C and Objective-C only)"
3617 Warn if an old-style function definition is used.  A warning is given
3618 even if there is a previous prototype.
3619 .IP "\fB\-Wmissing\-parameter\-type\fR (C and Objective-C only)" 4
3620 .IX Item "-Wmissing-parameter-type (C and Objective-C only)"
3621 A function parameter is declared without a type specifier in K&R\-style
3622 functions:
3624 .Vb 1
3625 \&        void foo(bar) { }
3628 This warning is also enabled by \fB\-Wextra\fR.
3629 .IP "\fB\-Wmissing\-prototypes\fR (C and Objective-C only)" 4
3630 .IX Item "-Wmissing-prototypes (C and Objective-C only)"
3631 Warn if a global function is defined without a previous prototype
3632 declaration.  This warning is issued even if the definition itself
3633 provides a prototype.  The aim is to detect global functions that fail
3634 to be declared in header files.
3635 .IP "\fB\-Wmissing\-declarations\fR" 4
3636 .IX Item "-Wmissing-declarations"
3637 Warn if a global function is defined without a previous declaration.
3638 Do so even if the definition itself provides a prototype.
3639 Use this option to detect global functions that are not declared in
3640 header files.  In \*(C+, no warnings are issued for function templates,
3641 or for inline functions, or for functions in anonymous namespaces.
3642 .IP "\fB\-Wmissing\-field\-initializers\fR" 4
3643 .IX Item "-Wmissing-field-initializers"
3644 Warn if a structure's initializer has some fields missing.  For
3645 example, the following code would cause such a warning, because
3646 \&\f(CW\*(C`x.h\*(C'\fR is implicitly zero:
3648 .Vb 2
3649 \&        struct s { int f, g, h; };
3650 \&        struct s x = { 3, 4 };
3653 This option does not warn about designated initializers, so the following
3654 modification would not trigger a warning:
3656 .Vb 2
3657 \&        struct s { int f, g, h; };
3658 \&        struct s x = { .f = 3, .g = 4 };
3661 This warning is included in \fB\-Wextra\fR.  To get other \fB\-Wextra\fR
3662 warnings without this one, use \fB\-Wextra \-Wno\-missing\-field\-initializers\fR.
3663 .IP "\fB\-Wmissing\-noreturn\fR" 4
3664 .IX Item "-Wmissing-noreturn"
3665 Warn about functions which might be candidates for attribute \f(CW\*(C`noreturn\*(C'\fR.
3666 Note these are only possible candidates, not absolute ones.  Care should
3667 be taken to manually verify functions actually do not ever return before
3668 adding the \f(CW\*(C`noreturn\*(C'\fR attribute, otherwise subtle code generation
3669 bugs could be introduced.  You will not get a warning for \f(CW\*(C`main\*(C'\fR in
3670 hosted C environments.
3671 .IP "\fB\-Wmissing\-format\-attribute\fR" 4
3672 .IX Item "-Wmissing-format-attribute"
3673 Warn about function pointers which might be candidates for \f(CW\*(C`format\*(C'\fR
3674 attributes.  Note these are only possible candidates, not absolute ones.
3675 \&\s-1GCC\s0 will guess that function pointers with \f(CW\*(C`format\*(C'\fR attributes that
3676 are used in assignment, initialization, parameter passing or return
3677 statements should have a corresponding \f(CW\*(C`format\*(C'\fR attribute in the
3678 resulting type.  I.e. the left-hand side of the assignment or
3679 initialization, the type of the parameter variable, or the return type
3680 of the containing function respectively should also have a \f(CW\*(C`format\*(C'\fR
3681 attribute to avoid the warning.
3683 \&\s-1GCC\s0 will also warn about function definitions which might be
3684 candidates for \f(CW\*(C`format\*(C'\fR attributes.  Again, these are only
3685 possible candidates.  \s-1GCC\s0 will guess that \f(CW\*(C`format\*(C'\fR attributes
3686 might be appropriate for any function that calls a function like
3687 \&\f(CW\*(C`vprintf\*(C'\fR or \f(CW\*(C`vscanf\*(C'\fR, but this might not always be the
3688 case, and some functions for which \f(CW\*(C`format\*(C'\fR attributes are
3689 appropriate may not be detected.
3690 .IP "\fB\-Wno\-multichar\fR" 4
3691 .IX Item "-Wno-multichar"
3692 Do not warn if a multicharacter constant (\fB'\s-1FOOF\s0'\fR) is used.
3693 Usually they indicate a typo in the user's code, as they have
3694 implementation-defined values, and should not be used in portable code.
3695 .IP "\fB\-Wnormalized=<none|id|nfc|nfkc>\fR" 4
3696 .IX Item "-Wnormalized=<none|id|nfc|nfkc>"
3697 In \s-1ISO\s0 C and \s-1ISO\s0 \*(C+, two identifiers are different if they are
3698 different sequences of characters.  However, sometimes when characters
3699 outside the basic \s-1ASCII\s0 character set are used, you can have two
3700 different character sequences that look the same.  To avoid confusion,
3701 the \s-1ISO\s0 10646 standard sets out some \fInormalization rules\fR which
3702 when applied ensure that two sequences that look the same are turned into
3703 the same sequence.  \s-1GCC\s0 can warn you if you are using identifiers which
3704 have not been normalized; this option controls that warning.
3706 There are four levels of warning that \s-1GCC\s0 supports.  The default is
3707 \&\fB\-Wnormalized=nfc\fR, which warns about any identifier which is
3708 not in the \s-1ISO\s0 10646 \*(L"C\*(R" normalized form, \fI\s-1NFC\s0\fR.  \s-1NFC\s0 is the
3709 recommended form for most uses.
3711 Unfortunately, there are some characters which \s-1ISO\s0 C and \s-1ISO\s0 \*(C+ allow
3712 in identifiers that when turned into \s-1NFC\s0 aren't allowable as
3713 identifiers.  That is, there's no way to use these symbols in portable
3714 \&\s-1ISO\s0 C or \*(C+ and have all your identifiers in \s-1NFC\s0.
3715 \&\fB\-Wnormalized=id\fR suppresses the warning for these characters.
3716 It is hoped that future versions of the standards involved will correct
3717 this, which is why this option is not the default.
3719 You can switch the warning off for all characters by writing
3720 \&\fB\-Wnormalized=none\fR.  You would only want to do this if you
3721 were using some other normalization scheme (like \*(L"D\*(R"), because
3722 otherwise you can easily create bugs that are literally impossible to see.
3724 Some characters in \s-1ISO\s0 10646 have distinct meanings but look identical
3725 in some fonts or display methodologies, especially once formatting has
3726 been applied.  For instance \f(CW\*(C`\eu207F\*(C'\fR, \*(L"\s-1SUPERSCRIPT\s0 \s-1LATIN\s0 \s-1SMALL\s0
3727 \&\s-1LETTER\s0 N\*(R", will display just like a regular \f(CW\*(C`n\*(C'\fR which has been
3728 placed in a superscript.  \s-1ISO\s0 10646 defines the \fI\s-1NFKC\s0\fR
3729 normalization scheme to convert all these into a standard form as
3730 well, and \s-1GCC\s0 will warn if your code is not in \s-1NFKC\s0 if you use
3731 \&\fB\-Wnormalized=nfkc\fR.  This warning is comparable to warning
3732 about every identifier that contains the letter O because it might be
3733 confused with the digit 0, and so is not the default, but may be
3734 useful as a local coding convention if the programming environment is
3735 unable to be fixed to display these characters distinctly.
3736 .IP "\fB\-Wno\-deprecated\fR" 4
3737 .IX Item "-Wno-deprecated"
3738 Do not warn about usage of deprecated features.  
3739 .IP "\fB\-Wno\-deprecated\-declarations\fR" 4
3740 .IX Item "-Wno-deprecated-declarations"
3741 Do not warn about uses of functions,
3742 variables, and types marked as deprecated by using the \f(CW\*(C`deprecated\*(C'\fR
3743 attribute.
3744 .IP "\fB\-Wno\-overflow\fR" 4
3745 .IX Item "-Wno-overflow"
3746 Do not warn about compile-time overflow in constant expressions.
3747 .IP "\fB\-Woverride\-init\fR (C and Objective-C only)" 4
3748 .IX Item "-Woverride-init (C and Objective-C only)"
3749 Warn if an initialized field without side effects is overridden when
3750 using designated initializers.
3752 This warning is included in \fB\-Wextra\fR.  To get other
3753 \&\fB\-Wextra\fR warnings without this one, use \fB\-Wextra
3754 \&\-Wno\-override\-init\fR.
3755 .IP "\fB\-Wpacked\fR" 4
3756 .IX Item "-Wpacked"
3757 Warn if a structure is given the packed attribute, but the packed
3758 attribute has no effect on the layout or size of the structure.
3759 Such structures may be mis-aligned for little benefit.  For
3760 instance, in this code, the variable \f(CW\*(C`f.x\*(C'\fR in \f(CW\*(C`struct bar\*(C'\fR
3761 will be misaligned even though \f(CW\*(C`struct bar\*(C'\fR does not itself
3762 have the packed attribute:
3764 .Vb 8
3765 \&        struct foo {
3766 \&          int x;
3767 \&          char a, b, c, d;
3768 \&        } __attribute__((packed));
3769 \&        struct bar {
3770 \&          char z;
3771 \&          struct foo f;
3772 \&        };
3774 .IP "\fB\-Wpacked\-bitfield\-compat\fR" 4
3775 .IX Item "-Wpacked-bitfield-compat"
3776 The 4.1, 4.2 and 4.3 series of \s-1GCC\s0 ignore the \f(CW\*(C`packed\*(C'\fR attribute
3777 on bit-fields of type \f(CW\*(C`char\*(C'\fR.  This has been fixed in \s-1GCC\s0 4.4 but
3778 the change can lead to differences in the structure layout.  \s-1GCC\s0
3779 informs you when the offset of such a field has changed in \s-1GCC\s0 4.4.
3780 For example there is no longer a 4\-bit padding between field \f(CW\*(C`a\*(C'\fR
3781 and \f(CW\*(C`b\*(C'\fR in this structure:
3783 .Vb 5
3784 \&        struct foo
3785 \&        {
3786 \&          char a:4;
3787 \&          char b:8;
3788 \&        } __attribute__ ((packed));
3791 This warning is enabled by default.  Use
3792 \&\fB\-Wno\-packed\-bitfield\-compat\fR to disable this warning.
3793 .IP "\fB\-Wpadded\fR" 4
3794 .IX Item "-Wpadded"
3795 Warn if padding is included in a structure, either to align an element
3796 of the structure or to align the whole structure.  Sometimes when this
3797 happens it is possible to rearrange the fields of the structure to
3798 reduce the padding and so make the structure smaller.
3799 .IP "\fB\-Wredundant\-decls\fR" 4
3800 .IX Item "-Wredundant-decls"
3801 Warn if anything is declared more than once in the same scope, even in
3802 cases where multiple declaration is valid and changes nothing.
3803 .IP "\fB\-Wnested\-externs\fR (C and Objective-C only)" 4
3804 .IX Item "-Wnested-externs (C and Objective-C only)"
3805 Warn if an \f(CW\*(C`extern\*(C'\fR declaration is encountered within a function.
3806 .IP "\fB\-Winline\fR" 4
3807 .IX Item "-Winline"
3808 Warn if a function can not be inlined and it was declared as inline.
3809 Even with this option, the compiler will not warn about failures to
3810 inline functions declared in system headers.
3812 The compiler uses a variety of heuristics to determine whether or not
3813 to inline a function.  For example, the compiler takes into account
3814 the size of the function being inlined and the amount of inlining
3815 that has already been done in the current function.  Therefore,
3816 seemingly insignificant changes in the source program can cause the
3817 warnings produced by \fB\-Winline\fR to appear or disappear.
3818 .IP "\fB\-Wno\-invalid\-offsetof\fR (\*(C+ and Objective\-\*(C+ only)" 4
3819 .IX Item "-Wno-invalid-offsetof ( and Objective- only)"
3820 Suppress warnings from applying the \fBoffsetof\fR macro to a non-POD
3821 type.  According to the 1998 \s-1ISO\s0 \*(C+ standard, applying \fBoffsetof\fR
3822 to a non-POD type is undefined.  In existing \*(C+ implementations,
3823 however, \fBoffsetof\fR typically gives meaningful results even when
3824 applied to certain kinds of non-POD types. (Such as a simple
3825 \&\fBstruct\fR that fails to be a \s-1POD\s0 type only by virtue of having a
3826 constructor.)  This flag is for users who are aware that they are
3827 writing nonportable code and who have deliberately chosen to ignore the
3828 warning about it.
3830 The restrictions on \fBoffsetof\fR may be relaxed in a future version
3831 of the \*(C+ standard.
3832 .IP "\fB\-Wno\-int\-to\-pointer\-cast\fR (C and Objective-C only)" 4
3833 .IX Item "-Wno-int-to-pointer-cast (C and Objective-C only)"
3834 Suppress warnings from casts to pointer type of an integer of a
3835 different size.
3836 .IP "\fB\-Wno\-pointer\-to\-int\-cast\fR (C and Objective-C only)" 4
3837 .IX Item "-Wno-pointer-to-int-cast (C and Objective-C only)"
3838 Suppress warnings from casts from a pointer to an integer type of a
3839 different size.
3840 .IP "\fB\-Winvalid\-pch\fR" 4
3841 .IX Item "-Winvalid-pch"
3842 Warn if a precompiled header is found in
3843 the search path but can't be used.
3844 .IP "\fB\-Wlong\-long\fR" 4
3845 .IX Item "-Wlong-long"
3846 Warn if \fBlong long\fR type is used.  This is enabled by either
3847 \&\fB\-pedantic\fR or \fB\-Wtraditional\fR in \s-1ISO\s0 C90 and \*(C+98
3848 modes.  To inhibit the warning messages, use \fB\-Wno\-long\-long\fR.
3849 .IP "\fB\-Wvariadic\-macros\fR" 4
3850 .IX Item "-Wvariadic-macros"
3851 Warn if variadic macros are used in pedantic \s-1ISO\s0 C90 mode, or the \s-1GNU\s0
3852 alternate syntax when in pedantic \s-1ISO\s0 C99 mode.  This is default.
3853 To inhibit the warning messages, use \fB\-Wno\-variadic\-macros\fR.
3854 .IP "\fB\-Wvla\fR" 4
3855 .IX Item "-Wvla"
3856 Warn if variable length array is used in the code.
3857 \&\fB\-Wno\-vla\fR will prevent the \fB\-pedantic\fR warning of
3858 the variable length array.
3859 .IP "\fB\-Wvolatile\-register\-var\fR" 4
3860 .IX Item "-Wvolatile-register-var"
3861 Warn if a register variable is declared volatile.  The volatile
3862 modifier does not inhibit all optimizations that may eliminate reads
3863 and/or writes to register variables.  This warning is enabled by
3864 \&\fB\-Wall\fR.
3865 .IP "\fB\-Wdisabled\-optimization\fR" 4
3866 .IX Item "-Wdisabled-optimization"
3867 Warn if a requested optimization pass is disabled.  This warning does
3868 not generally indicate that there is anything wrong with your code; it
3869 merely indicates that \s-1GCC\s0's optimizers were unable to handle the code
3870 effectively.  Often, the problem is that your code is too big or too
3871 complex; \s-1GCC\s0 will refuse to optimize programs when the optimization
3872 itself is likely to take inordinate amounts of time.
3873 .IP "\fB\-Wpointer\-sign\fR (C and Objective-C only)" 4
3874 .IX Item "-Wpointer-sign (C and Objective-C only)"
3875 Warn for pointer argument passing or assignment with different signedness.
3876 This option is only supported for C and Objective\-C.  It is implied by
3877 \&\fB\-Wall\fR and by \fB\-pedantic\fR, which can be disabled with
3878 \&\fB\-Wno\-pointer\-sign\fR.
3879 .IP "\fB\-Wstack\-protector\fR" 4
3880 .IX Item "-Wstack-protector"
3881 This option is only active when \fB\-fstack\-protector\fR is active.  It
3882 warns about functions that will not be protected against stack smashing.
3883 .IP "\fB\-Wno\-mudflap\fR" 4
3884 .IX Item "-Wno-mudflap"
3885 Suppress warnings about constructs that cannot be instrumented by
3886 \&\fB\-fmudflap\fR.
3887 .IP "\fB\-Woverlength\-strings\fR" 4
3888 .IX Item "-Woverlength-strings"
3889 Warn about string constants which are longer than the \*(L"minimum
3890 maximum\*(R" length specified in the C standard.  Modern compilers
3891 generally allow string constants which are much longer than the
3892 standard's minimum limit, but very portable programs should avoid
3893 using longer strings.
3895 The limit applies \fIafter\fR string constant concatenation, and does
3896 not count the trailing \s-1NUL\s0.  In C90, the limit was 509 characters; in
3897 C99, it was raised to 4095.  \*(C+98 does not specify a normative
3898 minimum maximum, so we do not diagnose overlength strings in \*(C+.
3900 This option is implied by \fB\-pedantic\fR, and can be disabled with
3901 \&\fB\-Wno\-overlength\-strings\fR.
3902 .IP "\fB\-Wunsuffixed\-float\-constants\fR (C and Objective-C only)" 4
3903 .IX Item "-Wunsuffixed-float-constants (C and Objective-C only)"
3904 \&\s-1GCC\s0 will issue a warning for any floating constant that does not have
3905 a suffix.  When used together with \fB\-Wsystem\-headers\fR it will
3906 warn about such constants in system header files.  This can be useful
3907 when preparing code to use with the \f(CW\*(C`FLOAT_CONST_DECIMAL64\*(C'\fR pragma
3908 from the decimal floating-point extension to C99.
3909 .Sh "Options for Debugging Your Program or \s-1GCC\s0"
3910 .IX Subsection "Options for Debugging Your Program or GCC"
3911 \&\s-1GCC\s0 has various special options that are used for debugging
3912 either your program or \s-1GCC:\s0
3913 .IP "\fB\-g\fR" 4
3914 .IX Item "-g"
3915 Produce debugging information in the operating system's native format
3916 (stabs, \s-1COFF\s0, \s-1XCOFF\s0, or \s-1DWARF\s0 2).  \s-1GDB\s0 can work with this debugging
3917 information.
3919 On most systems that use stabs format, \fB\-g\fR enables use of extra
3920 debugging information that only \s-1GDB\s0 can use; this extra information
3921 makes debugging work better in \s-1GDB\s0 but will probably make other debuggers
3922 crash or
3923 refuse to read the program.  If you want to control for certain whether
3924 to generate the extra information, use \fB\-gstabs+\fR, \fB\-gstabs\fR,
3925 \&\fB\-gxcoff+\fR, \fB\-gxcoff\fR, or \fB\-gvms\fR (see below).
3927 \&\s-1GCC\s0 allows you to use \fB\-g\fR with
3928 \&\fB\-O\fR.  The shortcuts taken by optimized code may occasionally
3929 produce surprising results: some variables you declared may not exist
3930 at all; flow of control may briefly move where you did not expect it;
3931 some statements may not be executed because they compute constant
3932 results or their values were already at hand; some statements may
3933 execute in different places because they were moved out of loops.
3935 Nevertheless it proves possible to debug optimized output.  This makes
3936 it reasonable to use the optimizer for programs that might have bugs.
3938 The following options are useful when \s-1GCC\s0 is generated with the
3939 capability for more than one debugging format.
3940 .IP "\fB\-ggdb\fR" 4
3941 .IX Item "-ggdb"
3942 Produce debugging information for use by \s-1GDB\s0.  This means to use the
3943 most expressive format available (\s-1DWARF\s0 2, stabs, or the native format
3944 if neither of those are supported), including \s-1GDB\s0 extensions if at all
3945 possible.
3946 .IP "\fB\-gstabs\fR" 4
3947 .IX Item "-gstabs"
3948 Produce debugging information in stabs format (if that is supported),
3949 without \s-1GDB\s0 extensions.  This is the format used by \s-1DBX\s0 on most \s-1BSD\s0
3950 systems.  On \s-1MIPS\s0, Alpha and System V Release 4 systems this option
3951 produces stabs debugging output which is not understood by \s-1DBX\s0 or \s-1SDB\s0.
3952 On System V Release 4 systems this option requires the \s-1GNU\s0 assembler.
3953 .IP "\fB\-feliminate\-unused\-debug\-symbols\fR" 4
3954 .IX Item "-feliminate-unused-debug-symbols"
3955 Produce debugging information in stabs format (if that is supported),
3956 for only symbols that are actually used.
3957 .IP "\fB\-femit\-class\-debug\-always\fR" 4
3958 .IX Item "-femit-class-debug-always"
3959 Instead of emitting debugging information for a \*(C+ class in only one
3960 object file, emit it in all object files using the class.  This option
3961 should be used only with debuggers that are unable to handle the way \s-1GCC\s0
3962 normally emits debugging information for classes because using this
3963 option will increase the size of debugging information by as much as a
3964 factor of two.
3965 .IP "\fB\-gstabs+\fR" 4
3966 .IX Item "-gstabs+"
3967 Produce debugging information in stabs format (if that is supported),
3968 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
3969 use of these extensions is likely to make other debuggers crash or
3970 refuse to read the program.
3971 .IP "\fB\-gcoff\fR" 4
3972 .IX Item "-gcoff"
3973 Produce debugging information in \s-1COFF\s0 format (if that is supported).
3974 This is the format used by \s-1SDB\s0 on most System V systems prior to
3975 System V Release 4.
3976 .IP "\fB\-gxcoff\fR" 4
3977 .IX Item "-gxcoff"
3978 Produce debugging information in \s-1XCOFF\s0 format (if that is supported).
3979 This is the format used by the \s-1DBX\s0 debugger on \s-1IBM\s0 \s-1RS/6000\s0 systems.
3980 .IP "\fB\-gxcoff+\fR" 4
3981 .IX Item "-gxcoff+"
3982 Produce debugging information in \s-1XCOFF\s0 format (if that is supported),
3983 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
3984 use of these extensions is likely to make other debuggers crash or
3985 refuse to read the program, and may cause assemblers other than the \s-1GNU\s0
3986 assembler (\s-1GAS\s0) to fail with an error.
3987 .IP "\fB\-gdwarf\-\fR\fIversion\fR" 4
3988 .IX Item "-gdwarf-version"
3989 Produce debugging information in \s-1DWARF\s0 format (if that is
3990 supported).  This is the format used by \s-1DBX\s0 on \s-1IRIX\s0 6.  The value
3991 of \fIversion\fR may be either 2, 3 or 4; the default version is 2.
3993 Note that with \s-1DWARF\s0 version 2 some ports require, and will always
3994 use, some non-conflicting \s-1DWARF\s0 3 extensions in the unwind tables.
3996 Version 4 may require \s-1GDB\s0 7.0 and \fB\-fvar\-tracking\-assignments\fR
3997 for maximum benefit.
3998 .IP "\fB\-gstrict\-dwarf\fR" 4
3999 .IX Item "-gstrict-dwarf"
4000 Disallow using extensions of later \s-1DWARF\s0 standard version than selected
4001 with \fB\-gdwarf\-\fR\fIversion\fR.  On most targets using non-conflicting
4002 \&\s-1DWARF\s0 extensions from later standard versions is allowed.
4003 .IP "\fB\-gno\-strict\-dwarf\fR" 4
4004 .IX Item "-gno-strict-dwarf"
4005 Allow using extensions of later \s-1DWARF\s0 standard version than selected with
4006 \&\fB\-gdwarf\-\fR\fIversion\fR.
4007 .IP "\fB\-gvms\fR" 4
4008 .IX Item "-gvms"
4009 Produce debugging information in \s-1VMS\s0 debug format (if that is
4010 supported).  This is the format used by \s-1DEBUG\s0 on \s-1VMS\s0 systems.
4011 .IP "\fB\-g\fR\fIlevel\fR" 4
4012 .IX Item "-glevel"
4013 .PD 0
4014 .IP "\fB\-ggdb\fR\fIlevel\fR" 4
4015 .IX Item "-ggdblevel"
4016 .IP "\fB\-gstabs\fR\fIlevel\fR" 4
4017 .IX Item "-gstabslevel"
4018 .IP "\fB\-gcoff\fR\fIlevel\fR" 4
4019 .IX Item "-gcofflevel"
4020 .IP "\fB\-gxcoff\fR\fIlevel\fR" 4
4021 .IX Item "-gxcofflevel"
4022 .IP "\fB\-gvms\fR\fIlevel\fR" 4
4023 .IX Item "-gvmslevel"
4025 Request debugging information and also use \fIlevel\fR to specify how
4026 much information.  The default level is 2.
4028 Level 0 produces no debug information at all.  Thus, \fB\-g0\fR negates
4029 \&\fB\-g\fR.
4031 Level 1 produces minimal information, enough for making backtraces in
4032 parts of the program that you don't plan to debug.  This includes
4033 descriptions of functions and external variables, but no information
4034 about local variables and no line numbers.
4036 Level 3 includes extra information, such as all the macro definitions
4037 present in the program.  Some debuggers support macro expansion when
4038 you use \fB\-g3\fR.
4040 \&\fB\-gdwarf\-2\fR does not accept a concatenated debug level, because
4041 \&\s-1GCC\s0 used to support an option \fB\-gdwarf\fR that meant to generate
4042 debug information in version 1 of the \s-1DWARF\s0 format (which is very
4043 different from version 2), and it would have been too confusing.  That
4044 debug format is long obsolete, but the option cannot be changed now.
4045 Instead use an additional \fB\-g\fR\fIlevel\fR option to change the
4046 debug level for \s-1DWARF\s0.
4047 .IP "\fB\-gtoggle\fR" 4
4048 .IX Item "-gtoggle"
4049 Turn off generation of debug info, if leaving out this option would have
4050 generated it, or turn it on at level 2 otherwise.  The position of this
4051 argument in the command line does not matter, it takes effect after all
4052 other options are processed, and it does so only once, no matter how
4053 many times it is given.  This is mainly intended to be used with
4054 \&\fB\-fcompare\-debug\fR.
4055 .IP "\fB\-fdump\-final\-insns\fR[\fB=\fR\fIfile\fR]" 4
4056 .IX Item "-fdump-final-insns[=file]"
4057 Dump the final internal representation (\s-1RTL\s0) to \fIfile\fR.  If the
4058 optional argument is omitted (or if \fIfile\fR is \f(CW\*(C`.\*(C'\fR), the name
4059 of the dump file will be determined by appending \f(CW\*(C`.gkd\*(C'\fR to the
4060 compilation output file name.
4061 .IP "\fB\-fcompare\-debug\fR[\fB=\fR\fIopts\fR]" 4
4062 .IX Item "-fcompare-debug[=opts]"
4063 If no error occurs during compilation, run the compiler a second time,
4064 adding \fIopts\fR and \fB\-fcompare\-debug\-second\fR to the arguments
4065 passed to the second compilation.  Dump the final internal
4066 representation in both compilations, and print an error if they differ.
4068 If the equal sign is omitted, the default \fB\-gtoggle\fR is used.
4070 The environment variable \fB\s-1GCC_COMPARE_DEBUG\s0\fR, if defined, non-empty
4071 and nonzero, implicitly enables \fB\-fcompare\-debug\fR.  If
4072 \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR is defined to a string starting with a dash,
4073 then it is used for \fIopts\fR, otherwise the default \fB\-gtoggle\fR
4074 is used.
4076 \&\fB\-fcompare\-debug=\fR, with the equal sign but without \fIopts\fR,
4077 is equivalent to \fB\-fno\-compare\-debug\fR, which disables the dumping
4078 of the final representation and the second compilation, preventing even
4079 \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR from taking effect.
4081 To verify full coverage during \fB\-fcompare\-debug\fR testing, set
4082 \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR to say \fB\-fcompare\-debug\-not\-overridden\fR,
4083 which \s-1GCC\s0 will reject as an invalid option in any actual compilation
4084 (rather than preprocessing, assembly or linking).  To get just a
4085 warning, setting \fB\s-1GCC_COMPARE_DEBUG\s0\fR to \fB\-w%n\-fcompare\-debug
4086 not overridden\fR will do.
4087 .IP "\fB\-fcompare\-debug\-second\fR" 4
4088 .IX Item "-fcompare-debug-second"
4089 This option is implicitly passed to the compiler for the second
4090 compilation requested by \fB\-fcompare\-debug\fR, along with options to
4091 silence warnings, and omitting other options that would cause
4092 side-effect compiler outputs to files or to the standard output.  Dump
4093 files and preserved temporary files are renamed so as to contain the
4094 \&\f(CW\*(C`.gk\*(C'\fR additional extension during the second compilation, to avoid
4095 overwriting those generated by the first.
4097 When this option is passed to the compiler driver, it causes the
4098 \&\fIfirst\fR compilation to be skipped, which makes it useful for little
4099 other than debugging the compiler proper.
4100 .IP "\fB\-feliminate\-dwarf2\-dups\fR" 4
4101 .IX Item "-feliminate-dwarf2-dups"
4102 Compress \s-1DWARF2\s0 debugging information by eliminating duplicated
4103 information about each symbol.  This option only makes sense when
4104 generating \s-1DWARF2\s0 debugging information with \fB\-gdwarf\-2\fR.
4105 .IP "\fB\-femit\-struct\-debug\-baseonly\fR" 4
4106 .IX Item "-femit-struct-debug-baseonly"
4107 Emit debug information for struct-like types
4108 only when the base name of the compilation source file
4109 matches the base name of file in which the struct was defined.
4111 This option substantially reduces the size of debugging information,
4112 but at significant potential loss in type information to the debugger.
4113 See \fB\-femit\-struct\-debug\-reduced\fR for a less aggressive option.
4114 See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
4116 This option works only with \s-1DWARF\s0 2.
4117 .IP "\fB\-femit\-struct\-debug\-reduced\fR" 4
4118 .IX Item "-femit-struct-debug-reduced"
4119 Emit debug information for struct-like types
4120 only when the base name of the compilation source file
4121 matches the base name of file in which the type was defined,
4122 unless the struct is a template or defined in a system header.
4124 This option significantly reduces the size of debugging information,
4125 with some potential loss in type information to the debugger.
4126 See \fB\-femit\-struct\-debug\-baseonly\fR for a more aggressive option.
4127 See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
4129 This option works only with \s-1DWARF\s0 2.
4130 .IP "\fB\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR]" 4
4131 .IX Item "-femit-struct-debug-detailed[=spec-list]"
4132 Specify the struct-like types
4133 for which the compiler will generate debug information.
4134 The intent is to reduce duplicate struct debug information
4135 between different object files within the same program.
4137 This option is a detailed version of
4138 \&\fB\-femit\-struct\-debug\-reduced\fR and \fB\-femit\-struct\-debug\-baseonly\fR,
4139 which will serve for most needs.
4141 A specification has the syntax
4142 [\fBdir:\fR|\fBind:\fR][\fBord:\fR|\fBgen:\fR](\fBany\fR|\fBsys\fR|\fBbase\fR|\fBnone\fR)
4144 The optional first word limits the specification to
4145 structs that are used directly (\fBdir:\fR) or used indirectly (\fBind:\fR).
4146 A struct type is used directly when it is the type of a variable, member.
4147 Indirect uses arise through pointers to structs.
4148 That is, when use of an incomplete struct would be legal, the use is indirect.
4149 An example is
4150 \&\fBstruct one direct; struct two * indirect;\fR.
4152 The optional second word limits the specification to
4153 ordinary structs (\fBord:\fR) or generic structs (\fBgen:\fR).
4154 Generic structs are a bit complicated to explain.
4155 For \*(C+, these are non-explicit specializations of template classes,
4156 or non-template classes within the above.
4157 Other programming languages have generics,
4158 but \fB\-femit\-struct\-debug\-detailed\fR does not yet implement them.
4160 The third word specifies the source files for those
4161 structs for which the compiler will emit debug information.
4162 The values \fBnone\fR and \fBany\fR have the normal meaning.
4163 The value \fBbase\fR means that
4164 the base of name of the file in which the type declaration appears
4165 must match the base of the name of the main compilation file.
4166 In practice, this means that
4167 types declared in \fIfoo.c\fR and \fIfoo.h\fR will have debug information,
4168 but types declared in other header will not.
4169 The value \fBsys\fR means those types satisfying \fBbase\fR
4170 or declared in system or compiler headers.
4172 You may need to experiment to determine the best settings for your application.
4174 The default is \fB\-femit\-struct\-debug\-detailed=all\fR.
4176 This option works only with \s-1DWARF\s0 2.
4177 .IP "\fB\-fenable\-icf\-debug\fR" 4
4178 .IX Item "-fenable-icf-debug"
4179 Generate additional debug information to support identical code folding (\s-1ICF\s0).
4180 This option only works with \s-1DWARF\s0 version 2 or higher.
4181 .IP "\fB\-fno\-merge\-debug\-strings\fR" 4
4182 .IX Item "-fno-merge-debug-strings"
4183 Direct the linker to not merge together strings in the debugging
4184 information which are identical in different object files.  Merging is
4185 not supported by all assemblers or linkers.  Merging decreases the size
4186 of the debug information in the output file at the cost of increasing
4187 link processing time.  Merging is enabled by default.
4188 .IP "\fB\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR" 4
4189 .IX Item "-fdebug-prefix-map=old=new"
4190 When compiling files in directory \fI\fIold\fI\fR, record debugging
4191 information describing them as in \fI\fInew\fI\fR instead.
4192 .IP "\fB\-fno\-dwarf2\-cfi\-asm\fR" 4
4193 .IX Item "-fno-dwarf2-cfi-asm"
4194 Emit \s-1DWARF\s0 2 unwind info as compiler generated \f(CW\*(C`.eh_frame\*(C'\fR section
4195 instead of using \s-1GAS\s0 \f(CW\*(C`.cfi_*\*(C'\fR directives.
4196 .IP "\fB\-p\fR" 4
4197 .IX Item "-p"
4198 Generate extra code to write profile information suitable for the
4199 analysis program \fBprof\fR.  You must use this option when compiling
4200 the source files you want data about, and you must also use it when
4201 linking.
4202 .IP "\fB\-pg\fR" 4
4203 .IX Item "-pg"
4204 Generate extra code to write profile information suitable for the
4205 analysis program \fBgprof\fR.  You must use this option when compiling
4206 the source files you want data about, and you must also use it when
4207 linking.
4208 .IP "\fB\-Q\fR" 4
4209 .IX Item "-Q"
4210 Makes the compiler print out each function name as it is compiled, and
4211 print some statistics about each pass when it finishes.
4212 .IP "\fB\-ftime\-report\fR" 4
4213 .IX Item "-ftime-report"
4214 Makes the compiler print some statistics about the time consumed by each
4215 pass when it finishes.
4216 .IP "\fB\-fmem\-report\fR" 4
4217 .IX Item "-fmem-report"
4218 Makes the compiler print some statistics about permanent memory
4219 allocation when it finishes.
4220 .IP "\fB\-fpre\-ipa\-mem\-report\fR" 4
4221 .IX Item "-fpre-ipa-mem-report"
4222 .PD 0
4223 .IP "\fB\-fpost\-ipa\-mem\-report\fR" 4
4224 .IX Item "-fpost-ipa-mem-report"
4226 Makes the compiler print some statistics about permanent memory
4227 allocation before or after interprocedural optimization.
4228 .IP "\fB\-fprofile\-arcs\fR" 4
4229 .IX Item "-fprofile-arcs"
4230 Add code so that program flow \fIarcs\fR are instrumented.  During
4231 execution the program records how many times each branch and call is
4232 executed and how many times it is taken or returns.  When the compiled
4233 program exits it saves this data to a file called
4234 \&\fI\fIauxname\fI.gcda\fR for each source file.  The data may be used for
4235 profile-directed optimizations (\fB\-fbranch\-probabilities\fR), or for
4236 test coverage analysis (\fB\-ftest\-coverage\fR).  Each object file's
4237 \&\fIauxname\fR is generated from the name of the output file, if
4238 explicitly specified and it is not the final executable, otherwise it is
4239 the basename of the source file.  In both cases any suffix is removed
4240 (e.g. \fIfoo.gcda\fR for input file \fIdir/foo.c\fR, or
4241 \&\fIdir/foo.gcda\fR for output file specified as \fB\-o dir/foo.o\fR).
4242 .IP "\fB\-\-coverage\fR" 4
4243 .IX Item "--coverage"
4244 This option is used to compile and link code instrumented for coverage
4245 analysis.  The option is a synonym for \fB\-fprofile\-arcs\fR
4246 \&\fB\-ftest\-coverage\fR (when compiling) and \fB\-lgcov\fR (when
4247 linking).  See the documentation for those options for more details.
4248 .RS 4
4249 .IP "*" 4
4250 Compile the source files with \fB\-fprofile\-arcs\fR plus optimization
4251 and code generation options.  For test coverage analysis, use the
4252 additional \fB\-ftest\-coverage\fR option.  You do not need to profile
4253 every source file in a program.
4254 .IP "*" 4
4255 Link your object files with \fB\-lgcov\fR or \fB\-fprofile\-arcs\fR
4256 (the latter implies the former).
4257 .IP "*" 4
4258 Run the program on a representative workload to generate the arc profile
4259 information.  This may be repeated any number of times.  You can run
4260 concurrent instances of your program, and provided that the file system
4261 supports locking, the data files will be correctly updated.  Also
4262 \&\f(CW\*(C`fork\*(C'\fR calls are detected and correctly handled (double counting
4263 will not happen).
4264 .IP "*" 4
4265 For profile-directed optimizations, compile the source files again with
4266 the same optimization and code generation options plus
4267 \&\fB\-fbranch\-probabilities\fR.
4268 .IP "*" 4
4269 For test coverage analysis, use \fBgcov\fR to produce human readable
4270 information from the \fI.gcno\fR and \fI.gcda\fR files.  Refer to the
4271 \&\fBgcov\fR documentation for further information.
4273 .RS 4
4275 With \fB\-fprofile\-arcs\fR, for each function of your program \s-1GCC\s0
4276 creates a program flow graph, then finds a spanning tree for the graph.
4277 Only arcs that are not on the spanning tree have to be instrumented: the
4278 compiler adds code to count the number of times that these arcs are
4279 executed.  When an arc is the only exit or only entrance to a block, the
4280 instrumentation code can be added to the block; otherwise, a new basic
4281 block must be created to hold the instrumentation code.
4283 .IP "\fB\-ftest\-coverage\fR" 4
4284 .IX Item "-ftest-coverage"
4285 Produce a notes file that the \fBgcov\fR code-coverage utility can use to
4286 show program coverage.  Each source file's note file is called
4287 \&\fI\fIauxname\fI.gcno\fR.  Refer to the \fB\-fprofile\-arcs\fR option
4288 above for a description of \fIauxname\fR and instructions on how to
4289 generate test coverage data.  Coverage data will match the source files
4290 more closely, if you do not optimize.
4291 .IP "\fB\-fdbg\-cnt\-list\fR" 4
4292 .IX Item "-fdbg-cnt-list"
4293 Print the name and the counter upperbound for all debug counters.
4294 .IP "\fB\-fdbg\-cnt=\fR\fIcounter-value-list\fR" 4
4295 .IX Item "-fdbg-cnt=counter-value-list"
4296 Set the internal debug counter upperbound. \fIcounter-value-list\fR
4297 is a comma-separated list of \fIname\fR:\fIvalue\fR pairs
4298 which sets the upperbound of each debug counter \fIname\fR to \fIvalue\fR.
4299 All debug counters have the initial upperbound of \fI\s-1UINT_MAX\s0\fR,
4300 thus \fIdbg_cnt()\fR returns true always unless the upperbound is set by this option.
4301 e.g. With \-fdbg\-cnt=dce:10,tail_call:0
4302 dbg_cnt(dce) will return true only for first 10 invocations
4303 and dbg_cnt(tail_call) will return false always.
4304 .IP "\fB\-d\fR\fIletters\fR" 4
4305 .IX Item "-dletters"
4306 .PD 0
4307 .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR" 4
4308 .IX Item "-fdump-rtl-pass"
4310 Says to make debugging dumps during compilation at times specified by
4311 \&\fIletters\fR.  This is used for debugging the RTL-based passes of the
4312 compiler.  The file names for most of the dumps are made by appending
4313 a pass number and a word to the \fIdumpname\fR, and the files are
4314 created in the directory of the output file.  \fIdumpname\fR is
4315 generated from the name of the output file, if explicitly specified
4316 and it is not an executable, otherwise it is the basename of the
4317 source file. These switches may have different effects when
4318 \&\fB\-E\fR is used for preprocessing.
4320 Debug dumps can be enabled with a \fB\-fdump\-rtl\fR switch or some
4321 \&\fB\-d\fR option \fIletters\fR.  Here are the possible
4322 letters for use in \fIpass\fR and \fIletters\fR, and their meanings:
4323 .RS 4
4324 .IP "\fB\-fdump\-rtl\-alignments\fR" 4
4325 .IX Item "-fdump-rtl-alignments"
4326 Dump after branch alignments have been computed.
4327 .IP "\fB\-fdump\-rtl\-asmcons\fR" 4
4328 .IX Item "-fdump-rtl-asmcons"
4329 Dump after fixing rtl statements that have unsatisfied in/out constraints.
4330 .IP "\fB\-fdump\-rtl\-auto_inc_dec\fR" 4
4331 .IX Item "-fdump-rtl-auto_inc_dec"
4332 Dump after auto-inc-dec discovery.  This pass is only run on
4333 architectures that have auto inc or auto dec instructions.
4334 .IP "\fB\-fdump\-rtl\-barriers\fR" 4
4335 .IX Item "-fdump-rtl-barriers"
4336 Dump after cleaning up the barrier instructions.
4337 .IP "\fB\-fdump\-rtl\-bbpart\fR" 4
4338 .IX Item "-fdump-rtl-bbpart"
4339 Dump after partitioning hot and cold basic blocks.
4340 .IP "\fB\-fdump\-rtl\-bbro\fR" 4
4341 .IX Item "-fdump-rtl-bbro"
4342 Dump after block reordering.
4343 .IP "\fB\-fdump\-rtl\-btl1\fR" 4
4344 .IX Item "-fdump-rtl-btl1"
4345 .PD 0
4346 .IP "\fB\-fdump\-rtl\-btl2\fR" 4
4347 .IX Item "-fdump-rtl-btl2"
4349 \&\fB\-fdump\-rtl\-btl1\fR and \fB\-fdump\-rtl\-btl2\fR enable dumping
4350 after the two branch
4351 target load optimization passes.
4352 .IP "\fB\-fdump\-rtl\-bypass\fR" 4
4353 .IX Item "-fdump-rtl-bypass"
4354 Dump after jump bypassing and control flow optimizations.
4355 .IP "\fB\-fdump\-rtl\-combine\fR" 4
4356 .IX Item "-fdump-rtl-combine"
4357 Dump after the \s-1RTL\s0 instruction combination pass.
4358 .IP "\fB\-fdump\-rtl\-compgotos\fR" 4
4359 .IX Item "-fdump-rtl-compgotos"
4360 Dump after duplicating the computed gotos.
4361 .IP "\fB\-fdump\-rtl\-ce1\fR" 4
4362 .IX Item "-fdump-rtl-ce1"
4363 .PD 0
4364 .IP "\fB\-fdump\-rtl\-ce2\fR" 4
4365 .IX Item "-fdump-rtl-ce2"
4366 .IP "\fB\-fdump\-rtl\-ce3\fR" 4
4367 .IX Item "-fdump-rtl-ce3"
4369 \&\fB\-fdump\-rtl\-ce1\fR, \fB\-fdump\-rtl\-ce2\fR, and
4370 \&\fB\-fdump\-rtl\-ce3\fR enable dumping after the three
4371 if conversion passes.
4372 .IP "\fB\-fdump\-rtl\-cprop_hardreg\fR" 4
4373 .IX Item "-fdump-rtl-cprop_hardreg"
4374 Dump after hard register copy propagation.
4375 .IP "\fB\-fdump\-rtl\-csa\fR" 4
4376 .IX Item "-fdump-rtl-csa"
4377 Dump after combining stack adjustments.
4378 .IP "\fB\-fdump\-rtl\-cse1\fR" 4
4379 .IX Item "-fdump-rtl-cse1"
4380 .PD 0
4381 .IP "\fB\-fdump\-rtl\-cse2\fR" 4
4382 .IX Item "-fdump-rtl-cse2"
4384 \&\fB\-fdump\-rtl\-cse1\fR and \fB\-fdump\-rtl\-cse2\fR enable dumping after
4385 the two common sub-expression elimination passes.
4386 .IP "\fB\-fdump\-rtl\-dce\fR" 4
4387 .IX Item "-fdump-rtl-dce"
4388 Dump after the standalone dead code elimination passes.
4389 .IP "\fB\-fdump\-rtl\-dbr\fR" 4
4390 .IX Item "-fdump-rtl-dbr"
4391 Dump after delayed branch scheduling.
4392 .IP "\fB\-fdump\-rtl\-dce1\fR" 4
4393 .IX Item "-fdump-rtl-dce1"
4394 .PD 0
4395 .IP "\fB\-fdump\-rtl\-dce2\fR" 4
4396 .IX Item "-fdump-rtl-dce2"
4398 \&\fB\-fdump\-rtl\-dce1\fR and \fB\-fdump\-rtl\-dce2\fR enable dumping after
4399 the two dead store elimination passes.
4400 .IP "\fB\-fdump\-rtl\-eh\fR" 4
4401 .IX Item "-fdump-rtl-eh"
4402 Dump after finalization of \s-1EH\s0 handling code.
4403 .IP "\fB\-fdump\-rtl\-eh_ranges\fR" 4
4404 .IX Item "-fdump-rtl-eh_ranges"
4405 Dump after conversion of \s-1EH\s0 handling range regions.
4406 .IP "\fB\-fdump\-rtl\-expand\fR" 4
4407 .IX Item "-fdump-rtl-expand"
4408 Dump after \s-1RTL\s0 generation.
4409 .IP "\fB\-fdump\-rtl\-fwprop1\fR" 4
4410 .IX Item "-fdump-rtl-fwprop1"
4411 .PD 0
4412 .IP "\fB\-fdump\-rtl\-fwprop2\fR" 4
4413 .IX Item "-fdump-rtl-fwprop2"
4415 \&\fB\-fdump\-rtl\-fwprop1\fR and \fB\-fdump\-rtl\-fwprop2\fR enable
4416 dumping after the two forward propagation passes.
4417 .IP "\fB\-fdump\-rtl\-gcse1\fR" 4
4418 .IX Item "-fdump-rtl-gcse1"
4419 .PD 0
4420 .IP "\fB\-fdump\-rtl\-gcse2\fR" 4
4421 .IX Item "-fdump-rtl-gcse2"
4423 \&\fB\-fdump\-rtl\-gcse1\fR and \fB\-fdump\-rtl\-gcse2\fR enable dumping
4424 after global common subexpression elimination.
4425 .IP "\fB\-fdump\-rtl\-init\-regs\fR" 4
4426 .IX Item "-fdump-rtl-init-regs"
4427 Dump after the initialization of the registers.
4428 .IP "\fB\-fdump\-rtl\-initvals\fR" 4
4429 .IX Item "-fdump-rtl-initvals"
4430 Dump after the computation of the initial value sets.
4431 .IP "\fB\-fdump\-rtl\-into_cfglayout\fR" 4
4432 .IX Item "-fdump-rtl-into_cfglayout"
4433 Dump after converting to cfglayout mode.
4434 .IP "\fB\-fdump\-rtl\-ira\fR" 4
4435 .IX Item "-fdump-rtl-ira"
4436 Dump after iterated register allocation.
4437 .IP "\fB\-fdump\-rtl\-jump\fR" 4
4438 .IX Item "-fdump-rtl-jump"
4439 Dump after the second jump optimization.
4440 .IP "\fB\-fdump\-rtl\-loop2\fR" 4
4441 .IX Item "-fdump-rtl-loop2"
4442 \&\fB\-fdump\-rtl\-loop2\fR enables dumping after the rtl
4443 loop optimization passes.
4444 .IP "\fB\-fdump\-rtl\-mach\fR" 4
4445 .IX Item "-fdump-rtl-mach"
4446 Dump after performing the machine dependent reorganization pass, if that
4447 pass exists.
4448 .IP "\fB\-fdump\-rtl\-mode_sw\fR" 4
4449 .IX Item "-fdump-rtl-mode_sw"
4450 Dump after removing redundant mode switches.
4451 .IP "\fB\-fdump\-rtl\-rnreg\fR" 4
4452 .IX Item "-fdump-rtl-rnreg"
4453 Dump after register renumbering.
4454 .IP "\fB\-fdump\-rtl\-outof_cfglayout\fR" 4
4455 .IX Item "-fdump-rtl-outof_cfglayout"
4456 Dump after converting from cfglayout mode.
4457 .IP "\fB\-fdump\-rtl\-peephole2\fR" 4
4458 .IX Item "-fdump-rtl-peephole2"
4459 Dump after the peephole pass.
4460 .IP "\fB\-fdump\-rtl\-postreload\fR" 4
4461 .IX Item "-fdump-rtl-postreload"
4462 Dump after post-reload optimizations.
4463 .IP "\fB\-fdump\-rtl\-pro_and_epilogue\fR" 4
4464 .IX Item "-fdump-rtl-pro_and_epilogue"
4465 Dump after generating the function pro and epilogues.
4466 .IP "\fB\-fdump\-rtl\-regmove\fR" 4
4467 .IX Item "-fdump-rtl-regmove"
4468 Dump after the register move pass.
4469 .IP "\fB\-fdump\-rtl\-sched1\fR" 4
4470 .IX Item "-fdump-rtl-sched1"
4471 .PD 0
4472 .IP "\fB\-fdump\-rtl\-sched2\fR" 4
4473 .IX Item "-fdump-rtl-sched2"
4475 \&\fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR enable dumping
4476 after the basic block scheduling passes.
4477 .IP "\fB\-fdump\-rtl\-see\fR" 4
4478 .IX Item "-fdump-rtl-see"
4479 Dump after sign extension elimination.
4480 .IP "\fB\-fdump\-rtl\-seqabstr\fR" 4
4481 .IX Item "-fdump-rtl-seqabstr"
4482 Dump after common sequence discovery.
4483 .IP "\fB\-fdump\-rtl\-shorten\fR" 4
4484 .IX Item "-fdump-rtl-shorten"
4485 Dump after shortening branches.
4486 .IP "\fB\-fdump\-rtl\-sibling\fR" 4
4487 .IX Item "-fdump-rtl-sibling"
4488 Dump after sibling call optimizations.
4489 .IP "\fB\-fdump\-rtl\-split1\fR" 4
4490 .IX Item "-fdump-rtl-split1"
4491 .PD 0
4492 .IP "\fB\-fdump\-rtl\-split2\fR" 4
4493 .IX Item "-fdump-rtl-split2"
4494 .IP "\fB\-fdump\-rtl\-split3\fR" 4
4495 .IX Item "-fdump-rtl-split3"
4496 .IP "\fB\-fdump\-rtl\-split4\fR" 4
4497 .IX Item "-fdump-rtl-split4"
4498 .IP "\fB\-fdump\-rtl\-split5\fR" 4
4499 .IX Item "-fdump-rtl-split5"
4501 \&\fB\-fdump\-rtl\-split1\fR, \fB\-fdump\-rtl\-split2\fR,
4502 \&\fB\-fdump\-rtl\-split3\fR, \fB\-fdump\-rtl\-split4\fR and
4503 \&\fB\-fdump\-rtl\-split5\fR enable dumping after five rounds of
4504 instruction splitting.
4505 .IP "\fB\-fdump\-rtl\-sms\fR" 4
4506 .IX Item "-fdump-rtl-sms"
4507 Dump after modulo scheduling.  This pass is only run on some
4508 architectures.
4509 .IP "\fB\-fdump\-rtl\-stack\fR" 4
4510 .IX Item "-fdump-rtl-stack"
4511 Dump after conversion from \s-1GCC\s0's \*(L"flat register file\*(R" registers to the
4512 x87's stack-like registers.  This pass is only run on x86 variants.
4513 .IP "\fB\-fdump\-rtl\-subreg1\fR" 4
4514 .IX Item "-fdump-rtl-subreg1"
4515 .PD 0
4516 .IP "\fB\-fdump\-rtl\-subreg2\fR" 4
4517 .IX Item "-fdump-rtl-subreg2"
4519 \&\fB\-fdump\-rtl\-subreg1\fR and \fB\-fdump\-rtl\-subreg2\fR enable dumping after
4520 the two subreg expansion passes.
4521 .IP "\fB\-fdump\-rtl\-unshare\fR" 4
4522 .IX Item "-fdump-rtl-unshare"
4523 Dump after all rtl has been unshared.
4524 .IP "\fB\-fdump\-rtl\-vartrack\fR" 4
4525 .IX Item "-fdump-rtl-vartrack"
4526 Dump after variable tracking.
4527 .IP "\fB\-fdump\-rtl\-vregs\fR" 4
4528 .IX Item "-fdump-rtl-vregs"
4529 Dump after converting virtual registers to hard registers.
4530 .IP "\fB\-fdump\-rtl\-web\fR" 4
4531 .IX Item "-fdump-rtl-web"
4532 Dump after live range splitting.
4533 .IP "\fB\-fdump\-rtl\-regclass\fR" 4
4534 .IX Item "-fdump-rtl-regclass"
4535 .PD 0
4536 .IP "\fB\-fdump\-rtl\-subregs_of_mode_init\fR" 4
4537 .IX Item "-fdump-rtl-subregs_of_mode_init"
4538 .IP "\fB\-fdump\-rtl\-subregs_of_mode_finish\fR" 4
4539 .IX Item "-fdump-rtl-subregs_of_mode_finish"
4540 .IP "\fB\-fdump\-rtl\-dfinit\fR" 4
4541 .IX Item "-fdump-rtl-dfinit"
4542 .IP "\fB\-fdump\-rtl\-dfinish\fR" 4
4543 .IX Item "-fdump-rtl-dfinish"
4545 These dumps are defined but always produce empty files.
4546 .IP "\fB\-fdump\-rtl\-all\fR" 4
4547 .IX Item "-fdump-rtl-all"
4548 Produce all the dumps listed above.
4549 .IP "\fB\-dA\fR" 4
4550 .IX Item "-dA"
4551 Annotate the assembler output with miscellaneous debugging information.
4552 .IP "\fB\-dD\fR" 4
4553 .IX Item "-dD"
4554 Dump all macro definitions, at the end of preprocessing, in addition to
4555 normal output.
4556 .IP "\fB\-dH\fR" 4
4557 .IX Item "-dH"
4558 Produce a core dump whenever an error occurs.
4559 .IP "\fB\-dm\fR" 4
4560 .IX Item "-dm"
4561 Print statistics on memory usage, at the end of the run, to
4562 standard error.
4563 .IP "\fB\-dp\fR" 4
4564 .IX Item "-dp"
4565 Annotate the assembler output with a comment indicating which
4566 pattern and alternative was used.  The length of each instruction is
4567 also printed.
4568 .IP "\fB\-dP\fR" 4
4569 .IX Item "-dP"
4570 Dump the \s-1RTL\s0 in the assembler output as a comment before each instruction.
4571 Also turns on \fB\-dp\fR annotation.
4572 .IP "\fB\-dv\fR" 4
4573 .IX Item "-dv"
4574 For each of the other indicated dump files (\fB\-fdump\-rtl\-\fR\fIpass\fR),
4575 dump a representation of the control flow graph suitable for viewing with \s-1VCG\s0
4576 to \fI\fIfile\fI.\fIpass\fI.vcg\fR.
4577 .IP "\fB\-dx\fR" 4
4578 .IX Item "-dx"
4579 Just generate \s-1RTL\s0 for a function instead of compiling it.  Usually used
4580 with \fB\-fdump\-rtl\-expand\fR.
4581 .IP "\fB\-dy\fR" 4
4582 .IX Item "-dy"
4583 Dump debugging information during parsing, to standard error.
4585 .RS 4
4587 .IP "\fB\-fdump\-noaddr\fR" 4
4588 .IX Item "-fdump-noaddr"
4589 When doing debugging dumps, suppress address output.  This makes it more
4590 feasible to use diff on debugging dumps for compiler invocations with
4591 different compiler binaries and/or different
4592 text / bss / data / heap / stack / dso start locations.
4593 .IP "\fB\-fdump\-unnumbered\fR" 4
4594 .IX Item "-fdump-unnumbered"
4595 When doing debugging dumps, suppress instruction numbers and address output.
4596 This makes it more feasible to use diff on debugging dumps for compiler
4597 invocations with different options, in particular with and without
4598 \&\fB\-g\fR.
4599 .IP "\fB\-fdump\-unnumbered\-links\fR" 4
4600 .IX Item "-fdump-unnumbered-links"
4601 When doing debugging dumps (see \fB\-d\fR option above), suppress
4602 instruction numbers for the links to the previous and next instructions
4603 in a sequence.
4604 .IP "\fB\-fdump\-translation\-unit\fR (\*(C+ only)" 4
4605 .IX Item "-fdump-translation-unit ( only)"
4606 .PD 0
4607 .IP "\fB\-fdump\-translation\-unit\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
4608 .IX Item "-fdump-translation-unit-options ( only)"
4610 Dump a representation of the tree structure for the entire translation
4611 unit to a file.  The file name is made by appending \fI.tu\fR to the
4612 source file name, and the file is created in the same directory as the
4613 output file.  If the \fB\-\fR\fIoptions\fR form is used, \fIoptions\fR
4614 controls the details of the dump as described for the
4615 \&\fB\-fdump\-tree\fR options.
4616 .IP "\fB\-fdump\-class\-hierarchy\fR (\*(C+ only)" 4
4617 .IX Item "-fdump-class-hierarchy ( only)"
4618 .PD 0
4619 .IP "\fB\-fdump\-class\-hierarchy\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
4620 .IX Item "-fdump-class-hierarchy-options ( only)"
4622 Dump a representation of each class's hierarchy and virtual function
4623 table layout to a file.  The file name is made by appending
4624 \&\fI.class\fR to the source file name, and the file is created in the
4625 same directory as the output file.  If the \fB\-\fR\fIoptions\fR form
4626 is used, \fIoptions\fR controls the details of the dump as described
4627 for the \fB\-fdump\-tree\fR options.
4628 .IP "\fB\-fdump\-ipa\-\fR\fIswitch\fR" 4
4629 .IX Item "-fdump-ipa-switch"
4630 Control the dumping at various stages of inter-procedural analysis
4631 language tree to a file.  The file name is generated by appending a
4632 switch specific suffix to the source file name, and the file is created
4633 in the same directory as the output file.  The following dumps are
4634 possible:
4635 .RS 4
4636 .IP "\fBall\fR" 4
4637 .IX Item "all"
4638 Enables all inter-procedural analysis dumps.
4639 .IP "\fBcgraph\fR" 4
4640 .IX Item "cgraph"
4641 Dumps information about call-graph optimization, unused function removal,
4642 and inlining decisions.
4643 .IP "\fBinline\fR" 4
4644 .IX Item "inline"
4645 Dump after function inlining.
4647 .RS 4
4649 .IP "\fB\-fdump\-statistics\-\fR\fIoption\fR" 4
4650 .IX Item "-fdump-statistics-option"
4651 Enable and control dumping of pass statistics in a separate file.  The
4652 file name is generated by appending a suffix ending in
4653 \&\fB.statistics\fR to the source file name, and the file is created in
4654 the same directory as the output file.  If the \fB\-\fR\fIoption\fR
4655 form is used, \fB\-stats\fR will cause counters to be summed over the
4656 whole compilation unit while \fB\-details\fR will dump every event as
4657 the passes generate them.  The default with no option is to sum
4658 counters for each function compiled.
4659 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR" 4
4660 .IX Item "-fdump-tree-switch"
4661 .PD 0
4662 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR" 4
4663 .IX Item "-fdump-tree-switch-options"
4665 Control the dumping at various stages of processing the intermediate
4666 language tree to a file.  The file name is generated by appending a
4667 switch specific suffix to the source file name, and the file is
4668 created in the same directory as the output file.  If the
4669 \&\fB\-\fR\fIoptions\fR form is used, \fIoptions\fR is a list of
4670 \&\fB\-\fR separated options that control the details of the dump.  Not
4671 all options are applicable to all dumps, those which are not
4672 meaningful will be ignored.  The following options are available
4673 .RS 4
4674 .IP "\fBaddress\fR" 4
4675 .IX Item "address"
4676 Print the address of each node.  Usually this is not meaningful as it
4677 changes according to the environment and source file.  Its primary use
4678 is for tying up a dump file with a debug environment.
4679 .IP "\fBasmname\fR" 4
4680 .IX Item "asmname"
4681 If \f(CW\*(C`DECL_ASSEMBLER_NAME\*(C'\fR has been set for a given decl, use that
4682 in the dump instead of \f(CW\*(C`DECL_NAME\*(C'\fR.  Its primary use is ease of
4683 use working backward from mangled names in the assembly file.
4684 .IP "\fBslim\fR" 4
4685 .IX Item "slim"
4686 Inhibit dumping of members of a scope or body of a function merely
4687 because that scope has been reached.  Only dump such items when they
4688 are directly reachable by some other path.  When dumping pretty-printed
4689 trees, this option inhibits dumping the bodies of control structures.
4690 .IP "\fBraw\fR" 4
4691 .IX Item "raw"
4692 Print a raw representation of the tree.  By default, trees are
4693 pretty-printed into a C\-like representation.
4694 .IP "\fBdetails\fR" 4
4695 .IX Item "details"
4696 Enable more detailed dumps (not honored by every dump option).
4697 .IP "\fBstats\fR" 4
4698 .IX Item "stats"
4699 Enable dumping various statistics about the pass (not honored by every dump
4700 option).
4701 .IP "\fBblocks\fR" 4
4702 .IX Item "blocks"
4703 Enable showing basic block boundaries (disabled in raw dumps).
4704 .IP "\fBvops\fR" 4
4705 .IX Item "vops"
4706 Enable showing virtual operands for every statement.
4707 .IP "\fBlineno\fR" 4
4708 .IX Item "lineno"
4709 Enable showing line numbers for statements.
4710 .IP "\fBuid\fR" 4
4711 .IX Item "uid"
4712 Enable showing the unique \s-1ID\s0 (\f(CW\*(C`DECL_UID\*(C'\fR) for each variable.
4713 .IP "\fBverbose\fR" 4
4714 .IX Item "verbose"
4715 Enable showing the tree dump for each statement.
4716 .IP "\fBeh\fR" 4
4717 .IX Item "eh"
4718 Enable showing the \s-1EH\s0 region number holding each statement.
4719 .IP "\fBall\fR" 4
4720 .IX Item "all"
4721 Turn on all options, except \fBraw\fR, \fBslim\fR, \fBverbose\fR
4722 and \fBlineno\fR.
4724 .RS 4
4726 The following tree dumps are possible:
4727 .IP "\fBoriginal\fR" 4
4728 .IX Item "original"
4729 Dump before any tree based optimization, to \fI\fIfile\fI.original\fR.
4730 .IP "\fBoptimized\fR" 4
4731 .IX Item "optimized"
4732 Dump after all tree based optimization, to \fI\fIfile\fI.optimized\fR.
4733 .IP "\fBgimple\fR" 4
4734 .IX Item "gimple"
4735 Dump each function before and after the gimplification pass to a file.  The
4736 file name is made by appending \fI.gimple\fR to the source file name.
4737 .IP "\fBcfg\fR" 4
4738 .IX Item "cfg"
4739 Dump the control flow graph of each function to a file.  The file name is
4740 made by appending \fI.cfg\fR to the source file name.
4741 .IP "\fBvcg\fR" 4
4742 .IX Item "vcg"
4743 Dump the control flow graph of each function to a file in \s-1VCG\s0 format.  The
4744 file name is made by appending \fI.vcg\fR to the source file name.  Note
4745 that if the file contains more than one function, the generated file cannot
4746 be used directly by \s-1VCG\s0.  You will need to cut and paste each function's
4747 graph into its own separate file first.
4748 .IP "\fBch\fR" 4
4749 .IX Item "ch"
4750 Dump each function after copying loop headers.  The file name is made by
4751 appending \fI.ch\fR to the source file name.
4752 .IP "\fBssa\fR" 4
4753 .IX Item "ssa"
4754 Dump \s-1SSA\s0 related information to a file.  The file name is made by appending
4755 \&\fI.ssa\fR to the source file name.
4756 .IP "\fBalias\fR" 4
4757 .IX Item "alias"
4758 Dump aliasing information for each function.  The file name is made by
4759 appending \fI.alias\fR to the source file name.
4760 .IP "\fBccp\fR" 4
4761 .IX Item "ccp"
4762 Dump each function after \s-1CCP\s0.  The file name is made by appending
4763 \&\fI.ccp\fR to the source file name.
4764 .IP "\fBstoreccp\fR" 4
4765 .IX Item "storeccp"
4766 Dump each function after \s-1STORE\-CCP\s0.  The file name is made by appending
4767 \&\fI.storeccp\fR to the source file name.
4768 .IP "\fBpre\fR" 4
4769 .IX Item "pre"
4770 Dump trees after partial redundancy elimination.  The file name is made
4771 by appending \fI.pre\fR to the source file name.
4772 .IP "\fBfre\fR" 4
4773 .IX Item "fre"
4774 Dump trees after full redundancy elimination.  The file name is made
4775 by appending \fI.fre\fR to the source file name.
4776 .IP "\fBcopyprop\fR" 4
4777 .IX Item "copyprop"
4778 Dump trees after copy propagation.  The file name is made
4779 by appending \fI.copyprop\fR to the source file name.
4780 .IP "\fBstore_copyprop\fR" 4
4781 .IX Item "store_copyprop"
4782 Dump trees after store copy\-propagation.  The file name is made
4783 by appending \fI.store_copyprop\fR to the source file name.
4784 .IP "\fBdce\fR" 4
4785 .IX Item "dce"
4786 Dump each function after dead code elimination.  The file name is made by
4787 appending \fI.dce\fR to the source file name.
4788 .IP "\fBmudflap\fR" 4
4789 .IX Item "mudflap"
4790 Dump each function after adding mudflap instrumentation.  The file name is
4791 made by appending \fI.mudflap\fR to the source file name.
4792 .IP "\fBsra\fR" 4
4793 .IX Item "sra"
4794 Dump each function after performing scalar replacement of aggregates.  The
4795 file name is made by appending \fI.sra\fR to the source file name.
4796 .IP "\fBsink\fR" 4
4797 .IX Item "sink"
4798 Dump each function after performing code sinking.  The file name is made
4799 by appending \fI.sink\fR to the source file name.
4800 .IP "\fBdom\fR" 4
4801 .IX Item "dom"
4802 Dump each function after applying dominator tree optimizations.  The file
4803 name is made by appending \fI.dom\fR to the source file name.
4804 .IP "\fBdse\fR" 4
4805 .IX Item "dse"
4806 Dump each function after applying dead store elimination.  The file
4807 name is made by appending \fI.dse\fR to the source file name.
4808 .IP "\fBphiopt\fR" 4
4809 .IX Item "phiopt"
4810 Dump each function after optimizing \s-1PHI\s0 nodes into straightline code.  The file
4811 name is made by appending \fI.phiopt\fR to the source file name.
4812 .IP "\fBforwprop\fR" 4
4813 .IX Item "forwprop"
4814 Dump each function after forward propagating single use variables.  The file
4815 name is made by appending \fI.forwprop\fR to the source file name.
4816 .IP "\fBcopyrename\fR" 4
4817 .IX Item "copyrename"
4818 Dump each function after applying the copy rename optimization.  The file
4819 name is made by appending \fI.copyrename\fR to the source file name.
4820 .IP "\fBnrv\fR" 4
4821 .IX Item "nrv"
4822 Dump each function after applying the named return value optimization on
4823 generic trees.  The file name is made by appending \fI.nrv\fR to the source
4824 file name.
4825 .IP "\fBvect\fR" 4
4826 .IX Item "vect"
4827 Dump each function after applying vectorization of loops.  The file name is
4828 made by appending \fI.vect\fR to the source file name.
4829 .IP "\fBslp\fR" 4
4830 .IX Item "slp"
4831 Dump each function after applying vectorization of basic blocks.  The file name
4832 is made by appending \fI.slp\fR to the source file name.
4833 .IP "\fBvrp\fR" 4
4834 .IX Item "vrp"
4835 Dump each function after Value Range Propagation (\s-1VRP\s0).  The file name
4836 is made by appending \fI.vrp\fR to the source file name.
4837 .IP "\fBall\fR" 4
4838 .IX Item "all"
4839 Enable all the available tree dumps with the flags provided in this option.
4841 .RS 4
4843 .IP "\fB\-ftree\-vectorizer\-verbose=\fR\fIn\fR" 4
4844 .IX Item "-ftree-vectorizer-verbose=n"
4845 This option controls the amount of debugging output the vectorizer prints.
4846 This information is written to standard error, unless
4847 \&\fB\-fdump\-tree\-all\fR or \fB\-fdump\-tree\-vect\fR is specified,
4848 in which case it is output to the usual dump listing file, \fI.vect\fR.
4849 For \fIn\fR=0 no diagnostic information is reported.
4850 If \fIn\fR=1 the vectorizer reports each loop that got vectorized,
4851 and the total number of loops that got vectorized.
4852 If \fIn\fR=2 the vectorizer also reports non-vectorized loops that passed
4853 the first analysis phase (vect_analyze_loop_form) \- i.e. countable,
4854 inner\-most, single\-bb, single\-entry/exit loops.  This is the same verbosity
4855 level that \fB\-fdump\-tree\-vect\-stats\fR uses.
4856 Higher verbosity levels mean either more information dumped for each
4857 reported loop, or same amount of information reported for more loops:
4858 if \fIn\fR=3, vectorizer cost model information is reported.
4859 If \fIn\fR=4, alignment related information is added to the reports.
4860 If \fIn\fR=5, data-references related information (e.g. memory dependences,
4861 memory access\-patterns) is added to the reports.
4862 If \fIn\fR=6, the vectorizer reports also non-vectorized inner-most loops
4863 that did not pass the first analysis phase (i.e., may not be countable, or
4864 may have complicated control\-flow).
4865 If \fIn\fR=7, the vectorizer reports also non-vectorized nested loops.
4866 If \fIn\fR=8, \s-1SLP\s0 related information is added to the reports.
4867 For \fIn\fR=9, all the information the vectorizer generates during its
4868 analysis and transformation is reported.  This is the same verbosity level
4869 that \fB\-fdump\-tree\-vect\-details\fR uses.
4870 .IP "\fB\-frandom\-seed=\fR\fIstring\fR" 4
4871 .IX Item "-frandom-seed=string"
4872 This option provides a seed that \s-1GCC\s0 uses when it would otherwise use
4873 random numbers.  It is used to generate certain symbol names
4874 that have to be different in every compiled file.  It is also used to
4875 place unique stamps in coverage data files and the object files that
4876 produce them.  You can use the \fB\-frandom\-seed\fR option to produce
4877 reproducibly identical object files.
4879 The \fIstring\fR should be different for every file you compile.
4880 .IP "\fB\-fsched\-verbose=\fR\fIn\fR" 4
4881 .IX Item "-fsched-verbose=n"
4882 On targets that use instruction scheduling, this option controls the
4883 amount of debugging output the scheduler prints.  This information is
4884 written to standard error, unless \fB\-fdump\-rtl\-sched1\fR or
4885 \&\fB\-fdump\-rtl\-sched2\fR is specified, in which case it is output
4886 to the usual dump listing file, \fI.sched1\fR or \fI.sched2\fR
4887 respectively.  However for \fIn\fR greater than nine, the output is
4888 always printed to standard error.
4890 For \fIn\fR greater than zero, \fB\-fsched\-verbose\fR outputs the
4891 same information as \fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR.
4892 For \fIn\fR greater than one, it also output basic block probabilities,
4893 detailed ready list information and unit/insn info.  For \fIn\fR greater
4894 than two, it includes \s-1RTL\s0 at abort point, control-flow and regions info.
4895 And for \fIn\fR over four, \fB\-fsched\-verbose\fR also includes
4896 dependence info.
4897 .IP "\fB\-save\-temps\fR" 4
4898 .IX Item "-save-temps"
4899 .PD 0
4900 .IP "\fB\-save\-temps=cwd\fR" 4
4901 .IX Item "-save-temps=cwd"
4903 Store the usual \*(L"temporary\*(R" intermediate files permanently; place them
4904 in the current directory and name them based on the source file.  Thus,
4905 compiling \fIfoo.c\fR with \fB\-c \-save\-temps\fR would produce files
4906 \&\fIfoo.i\fR and \fIfoo.s\fR, as well as \fIfoo.o\fR.  This creates a
4907 preprocessed \fIfoo.i\fR output file even though the compiler now
4908 normally uses an integrated preprocessor.
4910 When used in combination with the \fB\-x\fR command line option,
4911 \&\fB\-save\-temps\fR is sensible enough to avoid over writing an
4912 input source file with the same extension as an intermediate file.
4913 The corresponding intermediate file may be obtained by renaming the
4914 source file before using \fB\-save\-temps\fR.
4916 If you invoke \s-1GCC\s0 in parallel, compiling several different source
4917 files that share a common base name in different subdirectories or the
4918 same source file compiled for multiple output destinations, it is
4919 likely that the different parallel compilers will interfere with each
4920 other, and overwrite the temporary files.  For instance:
4922 .Vb 2
4923 \&        gcc -save-temps -o outdir1/foo.o indir1/foo.c&
4924 \&        gcc -save-temps -o outdir2/foo.o indir2/foo.c&
4927 may result in \fIfoo.i\fR and \fIfoo.o\fR being written to
4928 simultaneously by both compilers.
4929 .IP "\fB\-save\-temps=obj\fR" 4
4930 .IX Item "-save-temps=obj"
4931 Store the usual \*(L"temporary\*(R" intermediate files permanently.  If the
4932 \&\fB\-o\fR option is used, the temporary files are based on the
4933 object file.  If the \fB\-o\fR option is not used, the
4934 \&\fB\-save\-temps=obj\fR switch behaves like \fB\-save\-temps\fR.
4936 For example:
4938 .Vb 3
4939 \&        gcc -save-temps=obj -c foo.c
4940 \&        gcc -save-temps=obj -c bar.c -o dir/xbar.o
4941 \&        gcc -save-temps=obj foobar.c -o dir2/yfoobar
4944 would create \fIfoo.i\fR, \fIfoo.s\fR, \fIdir/xbar.i\fR,
4945 \&\fIdir/xbar.s\fR, \fIdir2/yfoobar.i\fR, \fIdir2/yfoobar.s\fR, and
4946 \&\fIdir2/yfoobar.o\fR.
4947 .IP "\fB\-time\fR[\fB=\fR\fIfile\fR]" 4
4948 .IX Item "-time[=file]"
4949 Report the \s-1CPU\s0 time taken by each subprocess in the compilation
4950 sequence.  For C source files, this is the compiler proper and assembler
4951 (plus the linker if linking is done).
4953 Without the specification of an output file, the output looks like this:
4955 .Vb 2
4956 \&        # cc1 0.12 0.01
4957 \&        # as 0.00 0.01
4960 The first number on each line is the \*(L"user time\*(R", that is time spent
4961 executing the program itself.  The second number is \*(L"system time\*(R",
4962 time spent executing operating system routines on behalf of the program.
4963 Both numbers are in seconds.
4965 With the specification of an output file, the output is appended to the
4966 named file, and it looks like this:
4968 .Vb 2
4969 \&        0.12 0.01 cc1 <options>
4970 \&        0.00 0.01 as <options>
4973 The \*(L"user time\*(R" and the \*(L"system time\*(R" are moved before the program
4974 name, and the options passed to the program are displayed, so that one
4975 can later tell what file was being compiled, and with which options.
4976 .IP "\fB\-fvar\-tracking\fR" 4
4977 .IX Item "-fvar-tracking"
4978 Run variable tracking pass.  It computes where variables are stored at each
4979 position in code.  Better debugging information is then generated
4980 (if the debugging information format supports this information).
4982 It is enabled by default when compiling with optimization (\fB\-Os\fR,
4983 \&\fB\-O\fR, \fB\-O2\fR, ...), debugging information (\fB\-g\fR) and
4984 the debug info format supports it.
4985 .IP "\fB\-fvar\-tracking\-assignments\fR" 4
4986 .IX Item "-fvar-tracking-assignments"
4987 Annotate assignments to user variables early in the compilation and
4988 attempt to carry the annotations over throughout the compilation all the
4989 way to the end, in an attempt to improve debug information while
4990 optimizing.  Use of \fB\-gdwarf\-4\fR is recommended along with it.
4992 It can be enabled even if var-tracking is disabled, in which case
4993 annotations will be created and maintained, but discarded at the end.
4994 .IP "\fB\-fvar\-tracking\-assignments\-toggle\fR" 4
4995 .IX Item "-fvar-tracking-assignments-toggle"
4996 Toggle \fB\-fvar\-tracking\-assignments\fR, in the same way that
4997 \&\fB\-gtoggle\fR toggles \fB\-g\fR.
4998 .IP "\fB\-print\-file\-name=\fR\fIlibrary\fR" 4
4999 .IX Item "-print-file-name=library"
5000 Print the full absolute name of the library file \fIlibrary\fR that
5001 would be used when linking\-\-\-and don't do anything else.  With this
5002 option, \s-1GCC\s0 does not compile or link anything; it just prints the
5003 file name.
5004 .IP "\fB\-print\-multi\-directory\fR" 4
5005 .IX Item "-print-multi-directory"
5006 Print the directory name corresponding to the multilib selected by any
5007 other switches present in the command line.  This directory is supposed
5008 to exist in \fB\s-1GCC_EXEC_PREFIX\s0\fR.
5009 .IP "\fB\-print\-multi\-lib\fR" 4
5010 .IX Item "-print-multi-lib"
5011 Print the mapping from multilib directory names to compiler switches
5012 that enable them.  The directory name is separated from the switches by
5013 \&\fB;\fR, and each switch starts with an \fB@} instead of the
5014 \&\f(CB@samp\fB{\-\fR, without spaces between multiple switches.  This is supposed to
5015 ease shell\-processing.
5016 .IP "\fB\-print\-multi\-os\-directory\fR" 4
5017 .IX Item "-print-multi-os-directory"
5018 Print the path to \s-1OS\s0 libraries for the selected
5019 multilib, relative to some \fIlib\fR subdirectory.  If \s-1OS\s0 libraries are
5020 present in the \fIlib\fR subdirectory and no multilibs are used, this is
5021 usually just \fI.\fR, if \s-1OS\s0 libraries are present in \fIlib\fIsuffix\fI\fR
5022 sibling directories this prints e.g. \fI../lib64\fR, \fI../lib\fR or
5023 \&\fI../lib32\fR, or if \s-1OS\s0 libraries are present in \fIlib/\fIsubdir\fI\fR
5024 subdirectories it prints e.g. \fIamd64\fR, \fIsparcv9\fR or \fIev6\fR.
5025 .IP "\fB\-print\-prog\-name=\fR\fIprogram\fR" 4
5026 .IX Item "-print-prog-name=program"
5027 Like \fB\-print\-file\-name\fR, but searches for a program such as \fBcpp\fR.
5028 .IP "\fB\-print\-libgcc\-file\-name\fR" 4
5029 .IX Item "-print-libgcc-file-name"
5030 Same as \fB\-print\-file\-name=libgcc.a\fR.
5032 This is useful when you use \fB\-nostdlib\fR or \fB\-nodefaultlibs\fR
5033 but you do want to link with \fIlibgcc.a\fR.  You can do
5035 .Vb 1
5036 \&        gcc -nostdlib <files>... `gcc -print-libgcc-file-name`
5038 .IP "\fB\-print\-search\-dirs\fR" 4
5039 .IX Item "-print-search-dirs"
5040 Print the name of the configured installation directory and a list of
5041 program and library directories \fBgcc\fR will search\-\-\-and don't do anything else.
5043 This is useful when \fBgcc\fR prints the error message
5044 \&\fBinstallation problem, cannot exec cpp0: No such file or directory\fR.
5045 To resolve this you either need to put \fIcpp0\fR and the other compiler
5046 components where \fBgcc\fR expects to find them, or you can set the environment
5047 variable \fB\s-1GCC_EXEC_PREFIX\s0\fR to the directory where you installed them.
5048 Don't forget the trailing \fB/\fR.
5049 .IP "\fB\-print\-sysroot\fR" 4
5050 .IX Item "-print-sysroot"
5051 Print the target sysroot directory that will be used during
5052 compilation.  This is the target sysroot specified either at configure
5053 time or using the \fB\-\-sysroot\fR option, possibly with an extra
5054 suffix that depends on compilation options.  If no target sysroot is
5055 specified, the option prints nothing.
5056 .IP "\fB\-print\-sysroot\-headers\-suffix\fR" 4
5057 .IX Item "-print-sysroot-headers-suffix"
5058 Print the suffix added to the target sysroot when searching for
5059 headers, or give an error if the compiler is not configured with such
5060 a suffix\-\-\-and don't do anything else.
5061 .IP "\fB\-dumpmachine\fR" 4
5062 .IX Item "-dumpmachine"
5063 Print the compiler's target machine (for example,
5064 \&\fBi686\-pc\-linux\-gnu\fR)\-\-\-and don't do anything else.
5065 .IP "\fB\-dumpversion\fR" 4
5066 .IX Item "-dumpversion"
5067 Print the compiler version (for example, \fB3.0\fR)\-\-\-and don't do
5068 anything else.
5069 .IP "\fB\-dumpspecs\fR" 4
5070 .IX Item "-dumpspecs"
5071 Print the compiler's built-in specs\-\-\-and don't do anything else.  (This
5072 is used when \s-1GCC\s0 itself is being built.)  
5073 .IP "\fB\-feliminate\-unused\-debug\-types\fR" 4
5074 .IX Item "-feliminate-unused-debug-types"
5075 Normally, when producing \s-1DWARF2\s0 output, \s-1GCC\s0 will emit debugging
5076 information for all types declared in a compilation
5077 unit, regardless of whether or not they are actually used
5078 in that compilation unit.  Sometimes this is useful, such as
5079 if, in the debugger, you want to cast a value to a type that is
5080 not actually used in your program (but is declared).  More often,
5081 however, this results in a significant amount of wasted space.
5082 With this option, \s-1GCC\s0 will avoid producing debug symbol output
5083 for types that are nowhere used in the source file being compiled.
5084 .Sh "Options That Control Optimization"
5085 .IX Subsection "Options That Control Optimization"
5086 These options control various sorts of optimizations.
5088 Without any optimization option, the compiler's goal is to reduce the
5089 cost of compilation and to make debugging produce the expected
5090 results.  Statements are independent: if you stop the program with a
5091 breakpoint between statements, you can then assign a new value to any
5092 variable or change the program counter to any other statement in the
5093 function and get exactly the results you would expect from the source
5094 code.
5096 Turning on optimization flags makes the compiler attempt to improve
5097 the performance and/or code size at the expense of compilation time
5098 and possibly the ability to debug the program.
5100 The compiler performs optimization based on the knowledge it has of the
5101 program.  Compiling multiple files at once to a single output file mode allows
5102 the compiler to use information gained from all of the files when compiling
5103 each of them.
5105 Not all optimizations are controlled directly by a flag.  Only
5106 optimizations that have a flag are listed in this section.
5108 Most optimizations are only enabled if an \fB\-O\fR level is set on
5109 the command line.  Otherwise they are disabled, even if individual             
5110 optimization flags are specified.
5112 Depending on the target and how \s-1GCC\s0 was configured, a slightly different
5113 set of optimizations may be enabled at each \fB\-O\fR level than
5114 those listed here.  You can invoke \s-1GCC\s0 with \fB\-Q \-\-help=optimizers\fR
5115 to find out the exact set of optimizations that are enabled at each level.
5116 .IP "\fB\-O\fR" 4
5117 .IX Item "-O"
5118 .PD 0
5119 .IP "\fB\-O1\fR" 4
5120 .IX Item "-O1"
5122 Optimize.  Optimizing compilation takes somewhat more time, and a lot
5123 more memory for a large function.
5125 With \fB\-O\fR, the compiler tries to reduce code size and execution
5126 time, without performing any optimizations that take a great deal of
5127 compilation time.
5129 \&\fB\-O\fR turns on the following optimization flags:
5131 \&\fB\-fauto\-inc\-dec 
5132 \&\-fcprop\-registers 
5133 \&\-fdce 
5134 \&\-fdefer\-pop 
5135 \&\-fdelayed\-branch 
5136 \&\-fdse 
5137 \&\-fguess\-branch\-probability 
5138 \&\-fif\-conversion2 
5139 \&\-fif\-conversion 
5140 \&\-fipa\-pure\-const 
5141 \&\-fipa\-reference 
5142 \&\-fmerge\-constants
5143 \&\-fsplit\-wide\-types 
5144 \&\-ftree\-builtin\-call\-dce 
5145 \&\-ftree\-ccp 
5146 \&\-ftree\-ch 
5147 \&\-ftree\-copyrename 
5148 \&\-ftree\-dce 
5149 \&\-ftree\-dominator\-opts 
5150 \&\-ftree\-dse 
5151 \&\-ftree\-forwprop 
5152 \&\-ftree\-fre 
5153 \&\-ftree\-phiprop 
5154 \&\-ftree\-sra 
5155 \&\-ftree\-pta 
5156 \&\-ftree\-ter 
5157 \&\-funit\-at\-a\-time\fR
5159 \&\fB\-O\fR also turns on \fB\-fomit\-frame\-pointer\fR on machines
5160 where doing so does not interfere with debugging.
5161 .IP "\fB\-O2\fR" 4
5162 .IX Item "-O2"
5163 Optimize even more.  \s-1GCC\s0 performs nearly all supported optimizations
5164 that do not involve a space-speed tradeoff.
5165 As compared to \fB\-O\fR, this option increases both compilation time
5166 and the performance of the generated code.
5168 \&\fB\-O2\fR turns on all optimization flags specified by \fB\-O\fR.  It
5169 also turns on the following optimization flags:
5170 \&\fB\-fthread\-jumps 
5171 \&\-falign\-functions  \-falign\-jumps 
5172 \&\-falign\-loops  \-falign\-labels 
5173 \&\-fcaller\-saves 
5174 \&\-fcrossjumping 
5175 \&\-fcse\-follow\-jumps  \-fcse\-skip\-blocks 
5176 \&\-fdelete\-null\-pointer\-checks 
5177 \&\-fexpensive\-optimizations 
5178 \&\-fgcse  \-fgcse\-lm  
5179 \&\-finline\-small\-functions 
5180 \&\-findirect\-inlining 
5181 \&\-fipa\-sra 
5182 \&\-foptimize\-sibling\-calls 
5183 \&\-fpeephole2 
5184 \&\-fregmove 
5185 \&\-freorder\-blocks  \-freorder\-functions 
5186 \&\-frerun\-cse\-after\-loop  
5187 \&\-fsched\-interblock  \-fsched\-spec 
5188 \&\-fschedule\-insns  \-fschedule\-insns2 
5189 \&\-fstrict\-aliasing \-fstrict\-overflow 
5190 \&\-ftree\-switch\-conversion 
5191 \&\-ftree\-pre 
5192 \&\-ftree\-vrp\fR
5194 Please note the warning under \fB\-fgcse\fR about
5195 invoking \fB\-O2\fR on programs that use computed gotos.
5196 .IP "\fB\-O3\fR" 4
5197 .IX Item "-O3"
5198 Optimize yet more.  \fB\-O3\fR turns on all optimizations specified
5199 by \fB\-O2\fR and also turns on the \fB\-finline\-functions\fR,
5200 \&\fB\-funswitch\-loops\fR, \fB\-fpredictive\-commoning\fR,
5201 \&\fB\-fgcse\-after\-reload\fR, \fB\-ftree\-vectorize\fR and
5202 \&\fB\-fipa\-cp\-clone\fR options.
5203 .IP "\fB\-O0\fR" 4
5204 .IX Item "-O0"
5205 Reduce compilation time and make debugging produce the expected
5206 results.  This is the default.
5207 .IP "\fB\-Os\fR" 4
5208 .IX Item "-Os"
5209 Optimize for size.  \fB\-Os\fR enables all \fB\-O2\fR optimizations that
5210 do not typically increase code size.  It also performs further
5211 optimizations designed to reduce code size.
5213 \&\fB\-Os\fR disables the following optimization flags:
5214 \&\fB\-falign\-functions  \-falign\-jumps  \-falign\-loops 
5215 \&\-falign\-labels  \-freorder\-blocks  \-freorder\-blocks\-and\-partition 
5216 \&\-fprefetch\-loop\-arrays  \-ftree\-vect\-loop\-version\fR
5218 If you use multiple \fB\-O\fR options, with or without level numbers,
5219 the last such option is the one that is effective.
5221 Options of the form \fB\-f\fR\fIflag\fR specify machine-independent
5222 flags.  Most flags have both positive and negative forms; the negative
5223 form of \fB\-ffoo\fR would be \fB\-fno\-foo\fR.  In the table
5224 below, only one of the forms is listed\-\-\-the one you typically will
5225 use.  You can figure out the other form by either removing \fBno\-\fR
5226 or adding it.
5228 The following options control specific optimizations.  They are either
5229 activated by \fB\-O\fR options or are related to ones that are.  You
5230 can use the following flags in the rare cases when \*(L"fine\-tuning\*(R" of
5231 optimizations to be performed is desired.
5232 .IP "\fB\-fno\-default\-inline\fR" 4
5233 .IX Item "-fno-default-inline"
5234 Do not make member functions inline by default merely because they are
5235 defined inside the class scope (\*(C+ only).  Otherwise, when you specify
5236 \&\fB\-O\fR, member functions defined inside class scope are compiled
5237 inline by default; i.e., you don't need to add \fBinline\fR in front of
5238 the member function name.
5239 .IP "\fB\-fno\-defer\-pop\fR" 4
5240 .IX Item "-fno-defer-pop"
5241 Always pop the arguments to each function call as soon as that function
5242 returns.  For machines which must pop arguments after a function call,
5243 the compiler normally lets arguments accumulate on the stack for several
5244 function calls and pops them all at once.
5246 Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5247 .IP "\fB\-fforward\-propagate\fR" 4
5248 .IX Item "-fforward-propagate"
5249 Perform a forward propagation pass on \s-1RTL\s0.  The pass tries to combine two
5250 instructions and checks if the result can be simplified.  If loop unrolling
5251 is active, two passes are performed and the second is scheduled after
5252 loop unrolling.
5254 This option is enabled by default at optimization levels \fB\-O\fR,
5255 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5256 .IP "\fB\-fomit\-frame\-pointer\fR" 4
5257 .IX Item "-fomit-frame-pointer"
5258 Don't keep the frame pointer in a register for functions that
5259 don't need one.  This avoids the instructions to save, set up and
5260 restore frame pointers; it also makes an extra register available
5261 in many functions.  \fBIt also makes debugging impossible on
5262 some machines.\fR
5264 On some machines, such as the \s-1VAX\s0, this flag has no effect, because
5265 the standard calling sequence automatically handles the frame pointer
5266 and nothing is saved by pretending it doesn't exist.  The
5267 machine-description macro \f(CW\*(C`FRAME_POINTER_REQUIRED\*(C'\fR controls
5268 whether a target machine supports this flag.  
5270 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5271 .IP "\fB\-foptimize\-sibling\-calls\fR" 4
5272 .IX Item "-foptimize-sibling-calls"
5273 Optimize sibling and tail recursive calls.
5275 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5276 .IP "\fB\-fno\-inline\fR" 4
5277 .IX Item "-fno-inline"
5278 Don't pay attention to the \f(CW\*(C`inline\*(C'\fR keyword.  Normally this option
5279 is used to keep the compiler from expanding any functions inline.
5280 Note that if you are not optimizing, no functions can be expanded inline.
5281 .IP "\fB\-finline\-small\-functions\fR" 4
5282 .IX Item "-finline-small-functions"
5283 Integrate functions into their callers when their body is smaller than expected
5284 function call code (so overall size of program gets smaller).  The compiler
5285 heuristically decides which functions are simple enough to be worth integrating
5286 in this way.
5288 Enabled at level \fB\-O2\fR.
5289 .IP "\fB\-findirect\-inlining\fR" 4
5290 .IX Item "-findirect-inlining"
5291 Inline also indirect calls that are discovered to be known at compile
5292 time thanks to previous inlining.  This option has any effect only
5293 when inlining itself is turned on by the \fB\-finline\-functions\fR
5294 or \fB\-finline\-small\-functions\fR options.
5296 Enabled at level \fB\-O2\fR.
5297 .IP "\fB\-finline\-functions\fR" 4
5298 .IX Item "-finline-functions"
5299 Integrate all simple functions into their callers.  The compiler
5300 heuristically decides which functions are simple enough to be worth
5301 integrating in this way.
5303 If all calls to a given function are integrated, and the function is
5304 declared \f(CW\*(C`static\*(C'\fR, then the function is normally not output as
5305 assembler code in its own right.
5307 Enabled at level \fB\-O3\fR.
5308 .IP "\fB\-finline\-functions\-called\-once\fR" 4
5309 .IX Item "-finline-functions-called-once"
5310 Consider all \f(CW\*(C`static\*(C'\fR functions called once for inlining into their
5311 caller even if they are not marked \f(CW\*(C`inline\*(C'\fR.  If a call to a given
5312 function is integrated, then the function is not output as assembler code
5313 in its own right.
5315 Enabled at levels \fB\-O1\fR, \fB\-O2\fR, \fB\-O3\fR and \fB\-Os\fR.
5316 .IP "\fB\-fearly\-inlining\fR" 4
5317 .IX Item "-fearly-inlining"
5318 Inline functions marked by \f(CW\*(C`always_inline\*(C'\fR and functions whose body seems
5319 smaller than the function call overhead early before doing
5320 \&\fB\-fprofile\-generate\fR instrumentation and real inlining pass.  Doing so
5321 makes profiling significantly cheaper and usually inlining faster on programs
5322 having large chains of nested wrapper functions.
5324 Enabled by default.
5325 .IP "\fB\-fipa\-sra\fR" 4
5326 .IX Item "-fipa-sra"
5327 Perform interprocedural scalar replacement of aggregates, removal of
5328 unused parameters and replacement of parameters passed by reference
5329 by parameters passed by value.
5331 Enabled at levels \fB\-O2\fR, \fB\-O3\fR and \fB\-Os\fR.
5332 .IP "\fB\-finline\-limit=\fR\fIn\fR" 4
5333 .IX Item "-finline-limit=n"
5334 By default, \s-1GCC\s0 limits the size of functions that can be inlined.  This flag
5335 allows coarse control of this limit.  \fIn\fR is the size of functions that
5336 can be inlined in number of pseudo instructions.
5338 Inlining is actually controlled by a number of parameters, which may be
5339 specified individually by using \fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR.
5340 The \fB\-finline\-limit=\fR\fIn\fR option sets some of these parameters
5341 as follows:
5342 .RS 4
5343 .IP "\fBmax-inline-insns-single\fR" 4
5344 .IX Item "max-inline-insns-single"
5345 is set to \fIn\fR/2.
5346 .IP "\fBmax-inline-insns-auto\fR" 4
5347 .IX Item "max-inline-insns-auto"
5348 is set to \fIn\fR/2.
5350 .RS 4
5352 See below for a documentation of the individual
5353 parameters controlling inlining and for the defaults of these parameters.
5355 \&\fINote:\fR there may be no value to \fB\-finline\-limit\fR that results
5356 in default behavior.
5358 \&\fINote:\fR pseudo instruction represents, in this particular context, an
5359 abstract measurement of function's size.  In no way does it represent a count
5360 of assembly instructions and as such its exact meaning might change from one
5361 release to an another.
5363 .IP "\fB\-fkeep\-inline\-functions\fR" 4
5364 .IX Item "-fkeep-inline-functions"
5365 In C, emit \f(CW\*(C`static\*(C'\fR functions that are declared \f(CW\*(C`inline\*(C'\fR
5366 into the object file, even if the function has been inlined into all
5367 of its callers.  This switch does not affect functions using the
5368 \&\f(CW\*(C`extern inline\*(C'\fR extension in \s-1GNU\s0 C90.  In \*(C+, emit any and all
5369 inline functions into the object file.
5370 .IP "\fB\-fkeep\-static\-consts\fR" 4
5371 .IX Item "-fkeep-static-consts"
5372 Emit variables declared \f(CW\*(C`static const\*(C'\fR when optimization isn't turned
5373 on, even if the variables aren't referenced.
5375 \&\s-1GCC\s0 enables this option by default.  If you want to force the compiler to
5376 check if the variable was referenced, regardless of whether or not
5377 optimization is turned on, use the \fB\-fno\-keep\-static\-consts\fR option.
5378 .IP "\fB\-fmerge\-constants\fR" 4
5379 .IX Item "-fmerge-constants"
5380 Attempt to merge identical constants (string constants and floating point
5381 constants) across compilation units.
5383 This option is the default for optimized compilation if the assembler and
5384 linker support it.  Use \fB\-fno\-merge\-constants\fR to inhibit this
5385 behavior.
5387 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5388 .IP "\fB\-fmerge\-all\-constants\fR" 4
5389 .IX Item "-fmerge-all-constants"
5390 Attempt to merge identical constants and identical variables.
5392 This option implies \fB\-fmerge\-constants\fR.  In addition to
5393 \&\fB\-fmerge\-constants\fR this considers e.g. even constant initialized
5394 arrays or initialized constant variables with integral or floating point
5395 types.  Languages like C or \*(C+ require each variable, including multiple
5396 instances of the same variable in recursive calls, to have distinct locations,
5397 so using this option will result in non-conforming
5398 behavior.
5399 .IP "\fB\-fmodulo\-sched\fR" 4
5400 .IX Item "-fmodulo-sched"
5401 Perform swing modulo scheduling immediately before the first scheduling
5402 pass.  This pass looks at innermost loops and reorders their
5403 instructions by overlapping different iterations.
5404 .IP "\fB\-fmodulo\-sched\-allow\-regmoves\fR" 4
5405 .IX Item "-fmodulo-sched-allow-regmoves"
5406 Perform more aggressive \s-1SMS\s0 based modulo scheduling with register moves
5407 allowed.  By setting this flag certain anti-dependences edges will be
5408 deleted which will trigger the generation of reg-moves based on the
5409 life-range analysis.  This option is effective only with
5410 \&\fB\-fmodulo\-sched\fR enabled.
5411 .IP "\fB\-fno\-branch\-count\-reg\fR" 4
5412 .IX Item "-fno-branch-count-reg"
5413 Do not use \*(L"decrement and branch\*(R" instructions on a count register,
5414 but instead generate a sequence of instructions that decrement a
5415 register, compare it against zero, then branch based upon the result.
5416 This option is only meaningful on architectures that support such
5417 instructions, which include x86, PowerPC, \s-1IA\-64\s0 and S/390.
5419 The default is \fB\-fbranch\-count\-reg\fR.
5420 .IP "\fB\-fno\-function\-cse\fR" 4
5421 .IX Item "-fno-function-cse"
5422 Do not put function addresses in registers; make each instruction that
5423 calls a constant function contain the function's address explicitly.
5425 This option results in less efficient code, but some strange hacks
5426 that alter the assembler output may be confused by the optimizations
5427 performed when this option is not used.
5429 The default is \fB\-ffunction\-cse\fR
5430 .IP "\fB\-fno\-zero\-initialized\-in\-bss\fR" 4
5431 .IX Item "-fno-zero-initialized-in-bss"
5432 If the target supports a \s-1BSS\s0 section, \s-1GCC\s0 by default puts variables that
5433 are initialized to zero into \s-1BSS\s0.  This can save space in the resulting
5434 code.
5436 This option turns off this behavior because some programs explicitly
5437 rely on variables going to the data section.  E.g., so that the
5438 resulting executable can find the beginning of that section and/or make
5439 assumptions based on that.
5441 The default is \fB\-fzero\-initialized\-in\-bss\fR.
5442 .IP "\fB\-fmudflap \-fmudflapth \-fmudflapir\fR" 4
5443 .IX Item "-fmudflap -fmudflapth -fmudflapir"
5444 For front-ends that support it (C and \*(C+), instrument all risky
5445 pointer/array dereferencing operations, some standard library
5446 string/heap functions, and some other associated constructs with
5447 range/validity tests.  Modules so instrumented should be immune to
5448 buffer overflows, invalid heap use, and some other classes of C/\*(C+
5449 programming errors.  The instrumentation relies on a separate runtime
5450 library (\fIlibmudflap\fR), which will be linked into a program if
5451 \&\fB\-fmudflap\fR is given at link time.  Run-time behavior of the
5452 instrumented program is controlled by the \fB\s-1MUDFLAP_OPTIONS\s0\fR
5453 environment variable.  See \f(CW\*(C`env MUDFLAP_OPTIONS=\-help a.out\*(C'\fR
5454 for its options.
5456 Use \fB\-fmudflapth\fR instead of \fB\-fmudflap\fR to compile and to
5457 link if your program is multi\-threaded.  Use \fB\-fmudflapir\fR, in
5458 addition to \fB\-fmudflap\fR or \fB\-fmudflapth\fR, if
5459 instrumentation should ignore pointer reads.  This produces less
5460 instrumentation (and therefore faster execution) and still provides
5461 some protection against outright memory corrupting writes, but allows
5462 erroneously read data to propagate within a program.
5463 .IP "\fB\-fthread\-jumps\fR" 4
5464 .IX Item "-fthread-jumps"
5465 Perform optimizations where we check to see if a jump branches to a
5466 location where another comparison subsumed by the first is found.  If
5467 so, the first branch is redirected to either the destination of the
5468 second branch or a point immediately following it, depending on whether
5469 the condition is known to be true or false.
5471 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5472 .IP "\fB\-fsplit\-wide\-types\fR" 4
5473 .IX Item "-fsplit-wide-types"
5474 When using a type that occupies multiple registers, such as \f(CW\*(C`long
5475 long\*(C'\fR on a 32\-bit system, split the registers apart and allocate them
5476 independently.  This normally generates better code for those types,
5477 but may make debugging more difficult.
5479 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR,
5480 \&\fB\-Os\fR.
5481 .IP "\fB\-fcse\-follow\-jumps\fR" 4
5482 .IX Item "-fcse-follow-jumps"
5483 In common subexpression elimination (\s-1CSE\s0), scan through jump instructions
5484 when the target of the jump is not reached by any other path.  For
5485 example, when \s-1CSE\s0 encounters an \f(CW\*(C`if\*(C'\fR statement with an
5486 \&\f(CW\*(C`else\*(C'\fR clause, \s-1CSE\s0 will follow the jump when the condition
5487 tested is false.
5489 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5490 .IP "\fB\-fcse\-skip\-blocks\fR" 4
5491 .IX Item "-fcse-skip-blocks"
5492 This is similar to \fB\-fcse\-follow\-jumps\fR, but causes \s-1CSE\s0 to
5493 follow jumps which conditionally skip over blocks.  When \s-1CSE\s0
5494 encounters a simple \f(CW\*(C`if\*(C'\fR statement with no else clause,
5495 \&\fB\-fcse\-skip\-blocks\fR causes \s-1CSE\s0 to follow the jump around the
5496 body of the \f(CW\*(C`if\*(C'\fR.
5498 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5499 .IP "\fB\-frerun\-cse\-after\-loop\fR" 4
5500 .IX Item "-frerun-cse-after-loop"
5501 Re-run common subexpression elimination after loop optimizations has been
5502 performed.
5504 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5505 .IP "\fB\-fgcse\fR" 4
5506 .IX Item "-fgcse"
5507 Perform a global common subexpression elimination pass.
5508 This pass also performs global constant and copy propagation.
5510 \&\fINote:\fR When compiling a program using computed gotos, a \s-1GCC\s0
5511 extension, you may get better runtime performance if you disable
5512 the global common subexpression elimination pass by adding
5513 \&\fB\-fno\-gcse\fR to the command line.
5515 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5516 .IP "\fB\-fgcse\-lm\fR" 4
5517 .IX Item "-fgcse-lm"
5518 When \fB\-fgcse\-lm\fR is enabled, global common subexpression elimination will
5519 attempt to move loads which are only killed by stores into themselves.  This
5520 allows a loop containing a load/store sequence to be changed to a load outside
5521 the loop, and a copy/store within the loop.
5523 Enabled by default when gcse is enabled.
5524 .IP "\fB\-fgcse\-sm\fR" 4
5525 .IX Item "-fgcse-sm"
5526 When \fB\-fgcse\-sm\fR is enabled, a store motion pass is run after
5527 global common subexpression elimination.  This pass will attempt to move
5528 stores out of loops.  When used in conjunction with \fB\-fgcse\-lm\fR,
5529 loops containing a load/store sequence can be changed to a load before
5530 the loop and a store after the loop.
5532 Not enabled at any optimization level.
5533 .IP "\fB\-fgcse\-las\fR" 4
5534 .IX Item "-fgcse-las"
5535 When \fB\-fgcse\-las\fR is enabled, the global common subexpression
5536 elimination pass eliminates redundant loads that come after stores to the
5537 same memory location (both partial and full redundancies).
5539 Not enabled at any optimization level.
5540 .IP "\fB\-fgcse\-after\-reload\fR" 4
5541 .IX Item "-fgcse-after-reload"
5542 When \fB\-fgcse\-after\-reload\fR is enabled, a redundant load elimination
5543 pass is performed after reload.  The purpose of this pass is to cleanup
5544 redundant spilling.
5545 .IP "\fB\-funsafe\-loop\-optimizations\fR" 4
5546 .IX Item "-funsafe-loop-optimizations"
5547 If given, the loop optimizer will assume that loop indices do not
5548 overflow, and that the loops with nontrivial exit condition are not
5549 infinite.  This enables a wider range of loop optimizations even if
5550 the loop optimizer itself cannot prove that these assumptions are valid.
5551 Using \fB\-Wunsafe\-loop\-optimizations\fR, the compiler will warn you
5552 if it finds this kind of loop.
5553 .IP "\fB\-fcrossjumping\fR" 4
5554 .IX Item "-fcrossjumping"
5555 Perform cross-jumping transformation.  This transformation unifies equivalent code and save code size.  The
5556 resulting code may or may not perform better than without cross\-jumping.
5558 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5559 .IP "\fB\-fauto\-inc\-dec\fR" 4
5560 .IX Item "-fauto-inc-dec"
5561 Combine increments or decrements of addresses with memory accesses.
5562 This pass is always skipped on architectures that do not have
5563 instructions to support this.  Enabled by default at \fB\-O\fR and
5564 higher on architectures that support this.
5565 .IP "\fB\-fdce\fR" 4
5566 .IX Item "-fdce"
5567 Perform dead code elimination (\s-1DCE\s0) on \s-1RTL\s0.
5568 Enabled by default at \fB\-O\fR and higher.
5569 .IP "\fB\-fdse\fR" 4
5570 .IX Item "-fdse"
5571 Perform dead store elimination (\s-1DSE\s0) on \s-1RTL\s0.
5572 Enabled by default at \fB\-O\fR and higher.
5573 .IP "\fB\-fif\-conversion\fR" 4
5574 .IX Item "-fif-conversion"
5575 Attempt to transform conditional jumps into branch-less equivalents.  This
5576 include use of conditional moves, min, max, set flags and abs instructions, and
5577 some tricks doable by standard arithmetics.  The use of conditional execution
5578 on chips where it is available is controlled by \f(CW\*(C`if\-conversion2\*(C'\fR.
5580 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5581 .IP "\fB\-fif\-conversion2\fR" 4
5582 .IX Item "-fif-conversion2"
5583 Use conditional execution (where available) to transform conditional jumps into
5584 branch-less equivalents.
5586 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5587 .IP "\fB\-fdelete\-null\-pointer\-checks\fR" 4
5588 .IX Item "-fdelete-null-pointer-checks"
5589 Assume that programs cannot safely dereference null pointers, and that
5590 no code or data element resides there.  This enables simple constant
5591 folding optimizations at all optimization levels.  In addition, other
5592 optimization passes in \s-1GCC\s0 use this flag to control global dataflow
5593 analyses that eliminate useless checks for null pointers; these assume
5594 that if a pointer is checked after it has already been dereferenced,
5595 it cannot be null.
5597 Note however that in some environments this assumption is not true.
5598 Use \fB\-fno\-delete\-null\-pointer\-checks\fR to disable this optimization
5599 for programs which depend on that behavior.
5601 Some targets, especially embedded ones, disable this option at all levels.
5602 Otherwise it is enabled at all levels: \fB\-O0\fR, \fB\-O1\fR,
5603 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.  Passes that use the information
5604 are enabled independently at different optimization levels.
5605 .IP "\fB\-fexpensive\-optimizations\fR" 4
5606 .IX Item "-fexpensive-optimizations"
5607 Perform a number of minor optimizations that are relatively expensive.
5609 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5610 .IP "\fB\-foptimize\-register\-move\fR" 4
5611 .IX Item "-foptimize-register-move"
5612 .PD 0
5613 .IP "\fB\-fregmove\fR" 4
5614 .IX Item "-fregmove"
5616 Attempt to reassign register numbers in move instructions and as
5617 operands of other simple instructions in order to maximize the amount of
5618 register tying.  This is especially helpful on machines with two-operand
5619 instructions.
5621 Note \fB\-fregmove\fR and \fB\-foptimize\-register\-move\fR are the same
5622 optimization.
5624 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5625 .IP "\fB\-fira\-algorithm=\fR\fIalgorithm\fR" 4
5626 .IX Item "-fira-algorithm=algorithm"
5627 Use specified coloring algorithm for the integrated register
5628 allocator.  The \fIalgorithm\fR argument should be \f(CW\*(C`priority\*(C'\fR or
5629 \&\f(CW\*(C`CB\*(C'\fR.  The first algorithm specifies Chow's priority coloring,
5630 the second one specifies Chaitin-Briggs coloring.  The second
5631 algorithm can be unimplemented for some architectures.  If it is
5632 implemented, it is the default because Chaitin-Briggs coloring as a
5633 rule generates a better code.
5634 .IP "\fB\-fira\-region=\fR\fIregion\fR" 4
5635 .IX Item "-fira-region=region"
5636 Use specified regions for the integrated register allocator.  The
5637 \&\fIregion\fR argument should be one of \f(CW\*(C`all\*(C'\fR, \f(CW\*(C`mixed\*(C'\fR, or
5638 \&\f(CW\*(C`one\*(C'\fR.  The first value means using all loops as register
5639 allocation regions, the second value which is the default means using
5640 all loops except for loops with small register pressure as the
5641 regions, and third one means using all function as a single region.
5642 The first value can give best result for machines with small size and
5643 irregular register set, the third one results in faster and generates
5644 decent code and the smallest size code, and the default value usually
5645 give the best results in most cases and for most architectures.
5646 .IP "\fB\-fira\-coalesce\fR" 4
5647 .IX Item "-fira-coalesce"
5648 Do optimistic register coalescing.  This option might be profitable for
5649 architectures with big regular register files.
5650 .IP "\fB\-fira\-loop\-pressure\fR" 4
5651 .IX Item "-fira-loop-pressure"
5652 Use \s-1IRA\s0 to evaluate register pressure in loops for decision to move
5653 loop invariants.  Usage of this option usually results in generation
5654 of faster and smaller code on machines with big register files (>= 32
5655 registers) but it can slow compiler down.
5657 This option is enabled at level \fB\-O3\fR for some targets.
5658 .IP "\fB\-fno\-ira\-share\-save\-slots\fR" 4
5659 .IX Item "-fno-ira-share-save-slots"
5660 Switch off sharing stack slots used for saving call used hard
5661 registers living through a call.  Each hard register will get a
5662 separate stack slot and as a result function stack frame will be
5663 bigger.
5664 .IP "\fB\-fno\-ira\-share\-spill\-slots\fR" 4
5665 .IX Item "-fno-ira-share-spill-slots"
5666 Switch off sharing stack slots allocated for pseudo\-registers.  Each
5667 pseudo-register which did not get a hard register will get a separate
5668 stack slot and as a result function stack frame will be bigger.
5669 .IP "\fB\-fira\-verbose=\fR\fIn\fR" 4
5670 .IX Item "-fira-verbose=n"
5671 Set up how verbose dump file for the integrated register allocator
5672 will be.  Default value is 5.  If the value is greater or equal to 10,
5673 the dump file will be stderr as if the value were \fIn\fR minus 10.
5674 .IP "\fB\-fdelayed\-branch\fR" 4
5675 .IX Item "-fdelayed-branch"
5676 If supported for the target machine, attempt to reorder instructions
5677 to exploit instruction slots available after delayed branch
5678 instructions.
5680 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5681 .IP "\fB\-fschedule\-insns\fR" 4
5682 .IX Item "-fschedule-insns"
5683 If supported for the target machine, attempt to reorder instructions to
5684 eliminate execution stalls due to required data being unavailable.  This
5685 helps machines that have slow floating point or memory load instructions
5686 by allowing other instructions to be issued until the result of the load
5687 or floating point instruction is required.
5689 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
5690 .IP "\fB\-fschedule\-insns2\fR" 4
5691 .IX Item "-fschedule-insns2"
5692 Similar to \fB\-fschedule\-insns\fR, but requests an additional pass of
5693 instruction scheduling after register allocation has been done.  This is
5694 especially useful on machines with a relatively small number of
5695 registers and where memory load instructions take more than one cycle.
5697 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5698 .IP "\fB\-fno\-sched\-interblock\fR" 4
5699 .IX Item "-fno-sched-interblock"
5700 Don't schedule instructions across basic blocks.  This is normally
5701 enabled by default when scheduling before register allocation, i.e.
5702 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
5703 .IP "\fB\-fno\-sched\-spec\fR" 4
5704 .IX Item "-fno-sched-spec"
5705 Don't allow speculative motion of non-load instructions.  This is normally
5706 enabled by default when scheduling before register allocation, i.e.
5707 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
5708 .IP "\fB\-fsched\-pressure\fR" 4
5709 .IX Item "-fsched-pressure"
5710 Enable register pressure sensitive insn scheduling before the register
5711 allocation.  This only makes sense when scheduling before register
5712 allocation is enabled, i.e. with \fB\-fschedule\-insns\fR or at
5713 \&\fB\-O2\fR or higher.  Usage of this option can improve the
5714 generated code and decrease its size by preventing register pressure
5715 increase above the number of available hard registers and as a
5716 consequence register spills in the register allocation.
5717 .IP "\fB\-fsched\-spec\-load\fR" 4
5718 .IX Item "-fsched-spec-load"
5719 Allow speculative motion of some load instructions.  This only makes
5720 sense when scheduling before register allocation, i.e. with
5721 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
5722 .IP "\fB\-fsched\-spec\-load\-dangerous\fR" 4
5723 .IX Item "-fsched-spec-load-dangerous"
5724 Allow speculative motion of more load instructions.  This only makes
5725 sense when scheduling before register allocation, i.e. with
5726 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
5727 .IP "\fB\-fsched\-stalled\-insns\fR" 4
5728 .IX Item "-fsched-stalled-insns"
5729 .PD 0
5730 .IP "\fB\-fsched\-stalled\-insns=\fR\fIn\fR" 4
5731 .IX Item "-fsched-stalled-insns=n"
5733 Define how many insns (if any) can be moved prematurely from the queue
5734 of stalled insns into the ready list, during the second scheduling pass.
5735 \&\fB\-fno\-sched\-stalled\-insns\fR means that no insns will be moved
5736 prematurely, \fB\-fsched\-stalled\-insns=0\fR means there is no limit
5737 on how many queued insns can be moved prematurely.
5738 \&\fB\-fsched\-stalled\-insns\fR without a value is equivalent to
5739 \&\fB\-fsched\-stalled\-insns=1\fR.
5740 .IP "\fB\-fsched\-stalled\-insns\-dep\fR" 4
5741 .IX Item "-fsched-stalled-insns-dep"
5742 .PD 0
5743 .IP "\fB\-fsched\-stalled\-insns\-dep=\fR\fIn\fR" 4
5744 .IX Item "-fsched-stalled-insns-dep=n"
5746 Define how many insn groups (cycles) will be examined for a dependency
5747 on a stalled insn that is candidate for premature removal from the queue
5748 of stalled insns.  This has an effect only during the second scheduling pass,
5749 and only if \fB\-fsched\-stalled\-insns\fR is used.
5750 \&\fB\-fno\-sched\-stalled\-insns\-dep\fR is equivalent to
5751 \&\fB\-fsched\-stalled\-insns\-dep=0\fR.
5752 \&\fB\-fsched\-stalled\-insns\-dep\fR without a value is equivalent to
5753 \&\fB\-fsched\-stalled\-insns\-dep=1\fR.
5754 .IP "\fB\-fsched2\-use\-superblocks\fR" 4
5755 .IX Item "-fsched2-use-superblocks"
5756 When scheduling after register allocation, do use superblock scheduling
5757 algorithm.  Superblock scheduling allows motion across basic block boundaries
5758 resulting on faster schedules.  This option is experimental, as not all machine
5759 descriptions used by \s-1GCC\s0 model the \s-1CPU\s0 closely enough to avoid unreliable
5760 results from the algorithm.
5762 This only makes sense when scheduling after register allocation, i.e. with
5763 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
5764 .IP "\fB\-fsched\-group\-heuristic\fR" 4
5765 .IX Item "-fsched-group-heuristic"
5766 Enable the group heuristic in the scheduler.  This heuristic favors 
5767 the instruction that belongs to a schedule group.  This is enabled 
5768 by default when scheduling is enabled, i.e. with \fB\-fschedule\-insns\fR 
5769 or \fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
5770 .IP "\fB\-fsched\-critical\-path\-heuristic\fR" 4
5771 .IX Item "-fsched-critical-path-heuristic"
5772 Enable the critical-path heuristic in the scheduler.  This heuristic favors 
5773 instructions on the critical path.  This is enabled by default when 
5774 scheduling is enabled, i.e. with \fB\-fschedule\-insns\fR 
5775 or \fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
5776 .IP "\fB\-fsched\-spec\-insn\-heuristic\fR" 4
5777 .IX Item "-fsched-spec-insn-heuristic"
5778 Enable the speculative instruction heuristic in the scheduler.  This 
5779 heuristic favors speculative instructions with greater dependency weakness.  
5780 This is enabled by default when scheduling is enabled, i.e. 
5781 with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR 
5782 or at \fB\-O2\fR or higher.
5783 .IP "\fB\-fsched\-rank\-heuristic\fR" 4
5784 .IX Item "-fsched-rank-heuristic"
5785 Enable the rank heuristic in the scheduler.  This heuristic favors 
5786 the instruction belonging to a basic block with greater size or frequency.  
5787 This is enabled by default when scheduling is enabled, i.e. 
5788 with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or 
5789 at \fB\-O2\fR or higher.
5790 .IP "\fB\-fsched\-last\-insn\-heuristic\fR" 4
5791 .IX Item "-fsched-last-insn-heuristic"
5792 Enable the last-instruction heuristic in the scheduler.  This heuristic 
5793 favors the instruction that is less dependent on the last instruction
5794 scheduled.  This is enabled by default when scheduling is enabled, 
5795 i.e. with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or 
5796 at \fB\-O2\fR or higher.
5797 .IP "\fB\-fsched\-dep\-count\-heuristic\fR" 4
5798 .IX Item "-fsched-dep-count-heuristic"
5799 Enable the dependent-count heuristic in the scheduler.  This heuristic 
5800 favors the instruction that has more instructions depending on it.  
5801 This is enabled by default when scheduling is enabled, i.e. 
5802 with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or 
5803 at \fB\-O2\fR or higher.
5804 .IP "\fB\-freschedule\-modulo\-scheduled\-loops\fR" 4
5805 .IX Item "-freschedule-modulo-scheduled-loops"
5806 The modulo scheduling comes before the traditional scheduling, if a loop
5807 was modulo scheduled we may want to prevent the later scheduling passes
5808 from changing its schedule, we use this option to control that.
5809 .IP "\fB\-fselective\-scheduling\fR" 4
5810 .IX Item "-fselective-scheduling"
5811 Schedule instructions using selective scheduling algorithm.  Selective
5812 scheduling runs instead of the first scheduler pass.
5813 .IP "\fB\-fselective\-scheduling2\fR" 4
5814 .IX Item "-fselective-scheduling2"
5815 Schedule instructions using selective scheduling algorithm.  Selective
5816 scheduling runs instead of the second scheduler pass.
5817 .IP "\fB\-fsel\-sched\-pipelining\fR" 4
5818 .IX Item "-fsel-sched-pipelining"
5819 Enable software pipelining of innermost loops during selective scheduling.
5820 This option has no effect until one of \fB\-fselective\-scheduling\fR or
5821 \&\fB\-fselective\-scheduling2\fR is turned on.
5822 .IP "\fB\-fsel\-sched\-pipelining\-outer\-loops\fR" 4
5823 .IX Item "-fsel-sched-pipelining-outer-loops"
5824 When pipelining loops during selective scheduling, also pipeline outer loops.
5825 This option has no effect until \fB\-fsel\-sched\-pipelining\fR is turned on.
5826 .IP "\fB\-fcaller\-saves\fR" 4
5827 .IX Item "-fcaller-saves"
5828 Enable values to be allocated in registers that will be clobbered by
5829 function calls, by emitting extra instructions to save and restore the
5830 registers around such calls.  Such allocation is done only when it
5831 seems to result in better code than would otherwise be produced.
5833 This option is always enabled by default on certain machines, usually
5834 those which have no call-preserved registers to use instead.
5836 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5837 .IP "\fB\-fconserve\-stack\fR" 4
5838 .IX Item "-fconserve-stack"
5839 Attempt to minimize stack usage.  The compiler will attempt to use less
5840 stack space, even if that makes the program slower.  This option
5841 implies setting the \fBlarge-stack-frame\fR parameter to 100
5842 and the \fBlarge-stack-frame-growth\fR parameter to 400.
5843 .IP "\fB\-ftree\-reassoc\fR" 4
5844 .IX Item "-ftree-reassoc"
5845 Perform reassociation on trees.  This flag is enabled by default
5846 at \fB\-O\fR and higher.
5847 .IP "\fB\-ftree\-pre\fR" 4
5848 .IX Item "-ftree-pre"
5849 Perform partial redundancy elimination (\s-1PRE\s0) on trees.  This flag is
5850 enabled by default at \fB\-O2\fR and \fB\-O3\fR.
5851 .IP "\fB\-ftree\-forwprop\fR" 4
5852 .IX Item "-ftree-forwprop"
5853 Perform forward propagation on trees.  This flag is enabled by default
5854 at \fB\-O\fR and higher.
5855 .IP "\fB\-ftree\-fre\fR" 4
5856 .IX Item "-ftree-fre"
5857 Perform full redundancy elimination (\s-1FRE\s0) on trees.  The difference
5858 between \s-1FRE\s0 and \s-1PRE\s0 is that \s-1FRE\s0 only considers expressions
5859 that are computed on all paths leading to the redundant computation.
5860 This analysis is faster than \s-1PRE\s0, though it exposes fewer redundancies.
5861 This flag is enabled by default at \fB\-O\fR and higher.
5862 .IP "\fB\-ftree\-phiprop\fR" 4
5863 .IX Item "-ftree-phiprop"
5864 Perform hoisting of loads from conditional pointers on trees.  This
5865 pass is enabled by default at \fB\-O\fR and higher.
5866 .IP "\fB\-ftree\-copy\-prop\fR" 4
5867 .IX Item "-ftree-copy-prop"
5868 Perform copy propagation on trees.  This pass eliminates unnecessary
5869 copy operations.  This flag is enabled by default at \fB\-O\fR and
5870 higher.
5871 .IP "\fB\-fipa\-pure\-const\fR" 4
5872 .IX Item "-fipa-pure-const"
5873 Discover which functions are pure or constant.
5874 Enabled by default at \fB\-O\fR and higher.
5875 .IP "\fB\-fipa\-reference\fR" 4
5876 .IX Item "-fipa-reference"
5877 Discover which static variables do not escape cannot escape the
5878 compilation unit.
5879 Enabled by default at \fB\-O\fR and higher.
5880 .IP "\fB\-fipa\-struct\-reorg\fR" 4
5881 .IX Item "-fipa-struct-reorg"
5882 Perform structure reorganization optimization, that change C\-like structures
5883 layout in order to better utilize spatial locality.  This transformation is
5884 effective for programs containing arrays of structures.  Available in two
5885 compilation modes: profile-based (enabled with \fB\-fprofile\-generate\fR)
5886 or static (which uses built-in heuristics).  Require \fB\-fipa\-type\-escape\fR
5887 to provide the safety of this transformation.  It works only in whole program
5888 mode, so it requires \fB\-fwhole\-program\fR and \fB\-combine\fR to be
5889 enabled.  Structures considered \fBcold\fR by this transformation are not
5890 affected (see \fB\-\-param struct\-reorg\-cold\-struct\-ratio=\fR\fIvalue\fR).
5892 With this flag, the program debug info reflects a new structure layout.
5893 .IP "\fB\-fipa\-pta\fR" 4
5894 .IX Item "-fipa-pta"
5895 Perform interprocedural pointer analysis.  This option is experimental
5896 and does not affect generated code.
5897 .IP "\fB\-fipa\-cp\fR" 4
5898 .IX Item "-fipa-cp"
5899 Perform interprocedural constant propagation.
5900 This optimization analyzes the program to determine when values passed
5901 to functions are constants and then optimizes accordingly.
5902 This optimization can substantially increase performance
5903 if the application has constants passed to functions.
5904 This flag is enabled by default at \fB\-O2\fR, \fB\-Os\fR and \fB\-O3\fR.
5905 .IP "\fB\-fipa\-cp\-clone\fR" 4
5906 .IX Item "-fipa-cp-clone"
5907 Perform function cloning to make interprocedural constant propagation stronger.
5908 When enabled, interprocedural constant propagation will perform function cloning
5909 when externally visible function can be called with constant arguments.
5910 Because this optimization can create multiple copies of functions,
5911 it may significantly increase code size
5912 (see \fB\-\-param ipcp\-unit\-growth=\fR\fIvalue\fR).
5913 This flag is enabled by default at \fB\-O3\fR.
5914 .IP "\fB\-fipa\-matrix\-reorg\fR" 4
5915 .IX Item "-fipa-matrix-reorg"
5916 Perform matrix flattening and transposing.
5917 Matrix flattening tries to replace an m\-dimensional matrix
5918 with its equivalent n\-dimensional matrix, where n < m.
5919 This reduces the level of indirection needed for accessing the elements
5920 of the matrix. The second optimization is matrix transposing that
5921 attempts to change the order of the matrix's dimensions in order to
5922 improve cache locality.
5923 Both optimizations need the \fB\-fwhole\-program\fR flag.
5924 Transposing is enabled only if profiling information is available.
5925 .IP "\fB\-ftree\-sink\fR" 4
5926 .IX Item "-ftree-sink"
5927 Perform forward store motion  on trees.  This flag is
5928 enabled by default at \fB\-O\fR and higher.
5929 .IP "\fB\-ftree\-ccp\fR" 4
5930 .IX Item "-ftree-ccp"
5931 Perform sparse conditional constant propagation (\s-1CCP\s0) on trees.  This
5932 pass only operates on local scalar variables and is enabled by default
5933 at \fB\-O\fR and higher.
5934 .IP "\fB\-ftree\-switch\-conversion\fR" 4
5935 .IX Item "-ftree-switch-conversion"
5936 Perform conversion of simple initializations in a switch to
5937 initializations from a scalar array.  This flag is enabled by default
5938 at \fB\-O2\fR and higher.
5939 .IP "\fB\-ftree\-dce\fR" 4
5940 .IX Item "-ftree-dce"
5941 Perform dead code elimination (\s-1DCE\s0) on trees.  This flag is enabled by
5942 default at \fB\-O\fR and higher.
5943 .IP "\fB\-ftree\-builtin\-call\-dce\fR" 4
5944 .IX Item "-ftree-builtin-call-dce"
5945 Perform conditional dead code elimination (\s-1DCE\s0) for calls to builtin functions
5946 that may set \f(CW\*(C`errno\*(C'\fR but are otherwise side-effect free.  This flag is
5947 enabled by default at \fB\-O2\fR and higher if \fB\-Os\fR is not also
5948 specified.
5949 .IP "\fB\-ftree\-dominator\-opts\fR" 4
5950 .IX Item "-ftree-dominator-opts"
5951 Perform a variety of simple scalar cleanups (constant/copy
5952 propagation, redundancy elimination, range propagation and expression
5953 simplification) based on a dominator tree traversal.  This also
5954 performs jump threading (to reduce jumps to jumps). This flag is
5955 enabled by default at \fB\-O\fR and higher.
5956 .IP "\fB\-ftree\-dse\fR" 4
5957 .IX Item "-ftree-dse"
5958 Perform dead store elimination (\s-1DSE\s0) on trees.  A dead store is a store into
5959 a memory location which will later be overwritten by another store without
5960 any intervening loads.  In this case the earlier store can be deleted.  This
5961 flag is enabled by default at \fB\-O\fR and higher.
5962 .IP "\fB\-ftree\-ch\fR" 4
5963 .IX Item "-ftree-ch"
5964 Perform loop header copying on trees.  This is beneficial since it increases
5965 effectiveness of code motion optimizations.  It also saves one jump.  This flag
5966 is enabled by default at \fB\-O\fR and higher.  It is not enabled
5967 for \fB\-Os\fR, since it usually increases code size.
5968 .IP "\fB\-ftree\-loop\-optimize\fR" 4
5969 .IX Item "-ftree-loop-optimize"
5970 Perform loop optimizations on trees.  This flag is enabled by default
5971 at \fB\-O\fR and higher.
5972 .IP "\fB\-ftree\-loop\-linear\fR" 4
5973 .IX Item "-ftree-loop-linear"
5974 Perform linear loop transformations on tree.  This flag can improve cache
5975 performance and allow further loop optimizations to take place.
5976 .IP "\fB\-floop\-interchange\fR" 4
5977 .IX Item "-floop-interchange"
5978 Perform loop interchange transformations on loops.  Interchanging two
5979 nested loops switches the inner and outer loops.  For example, given a
5980 loop like:
5982 .Vb 5
5983 \&        DO J = 1, M
5984 \&          DO I = 1, N
5985 \&            A(J, I) = A(J, I) * C
5986 \&          ENDDO
5987 \&        ENDDO
5990 loop interchange will transform the loop as if the user had written:
5992 .Vb 5
5993 \&        DO I = 1, N
5994 \&          DO J = 1, M
5995 \&            A(J, I) = A(J, I) * C
5996 \&          ENDDO
5997 \&        ENDDO
6000 which can be beneficial when \f(CW\*(C`N\*(C'\fR is larger than the caches,
6001 because in Fortran, the elements of an array are stored in memory
6002 contiguously by column, and the original loop iterates over rows,
6003 potentially creating at each access a cache miss.  This optimization
6004 applies to all the languages supported by \s-1GCC\s0 and is not limited to
6005 Fortran.  To use this code transformation, \s-1GCC\s0 has to be configured
6006 with \fB\-\-with\-ppl\fR and \fB\-\-with\-cloog\fR to enable the
6007 Graphite loop transformation infrastructure.
6008 .IP "\fB\-floop\-strip\-mine\fR" 4
6009 .IX Item "-floop-strip-mine"
6010 Perform loop strip mining transformations on loops.  Strip mining
6011 splits a loop into two nested loops.  The outer loop has strides
6012 equal to the strip size and the inner loop has strides of the
6013 original loop within a strip.  The strip length can be changed
6014 using the \fBloop-block-tile-size\fR parameter.  For example,
6015 given a loop like:
6017 .Vb 3
6018 \&        DO I = 1, N
6019 \&          A(I) = A(I) + C
6020 \&        ENDDO
6023 loop strip mining will transform the loop as if the user had written:
6025 .Vb 5
6026 \&        DO II = 1, N, 51
6027 \&          DO I = II, min (II + 50, N)
6028 \&            A(I) = A(I) + C
6029 \&          ENDDO
6030 \&        ENDDO
6033 This optimization applies to all the languages supported by \s-1GCC\s0 and is
6034 not limited to Fortran.  To use this code transformation, \s-1GCC\s0 has to
6035 be configured with \fB\-\-with\-ppl\fR and \fB\-\-with\-cloog\fR to
6036 enable the Graphite loop transformation infrastructure.
6037 .IP "\fB\-floop\-block\fR" 4
6038 .IX Item "-floop-block"
6039 Perform loop blocking transformations on loops.  Blocking strip mines
6040 each loop in the loop nest such that the memory accesses of the
6041 element loops fit inside caches.  The strip length can be changed
6042 using the \fBloop-block-tile-size\fR parameter.  For example, given
6043 a loop like:
6045 .Vb 5
6046 \&        DO I = 1, N
6047 \&          DO J = 1, M
6048 \&            A(J, I) = B(I) + C(J)
6049 \&          ENDDO
6050 \&        ENDDO
6053 loop blocking will transform the loop as if the user had written:
6055 .Vb 9
6056 \&        DO II = 1, N, 51
6057 \&          DO JJ = 1, M, 51
6058 \&            DO I = II, min (II + 50, N)
6059 \&              DO J = JJ, min (JJ + 50, M)
6060 \&                A(J, I) = B(I) + C(J)
6061 \&              ENDDO
6062 \&            ENDDO
6063 \&          ENDDO
6064 \&        ENDDO
6067 which can be beneficial when \f(CW\*(C`M\*(C'\fR is larger than the caches,
6068 because the innermost loop will iterate over a smaller amount of data
6069 that can be kept in the caches.  This optimization applies to all the
6070 languages supported by \s-1GCC\s0 and is not limited to Fortran.  To use this
6071 code transformation, \s-1GCC\s0 has to be configured with \fB\-\-with\-ppl\fR
6072 and \fB\-\-with\-cloog\fR to enable the Graphite loop transformation
6073 infrastructure.
6074 .IP "\fB\-fgraphite\-identity\fR" 4
6075 .IX Item "-fgraphite-identity"
6076 Enable the identity transformation for graphite.  For every SCoP we generate
6077 the polyhedral representation and transform it back to gimple.  Using
6078 \&\fB\-fgraphite\-identity\fR we can check the costs or benefits of the
6079 \&\s-1GIMPLE\s0 \-> \s-1GRAPHITE\s0 \-> \s-1GIMPLE\s0 transformation.  Some minimal optimizations
6080 are also performed by the code generator CLooG, like index splitting and
6081 dead code elimination in loops.
6082 .IP "\fB\-floop\-parallelize\-all\fR" 4
6083 .IX Item "-floop-parallelize-all"
6084 Use the Graphite data dependence analysis to identify loops that can
6085 be parallelized.  Parallelize all the loops that can be analyzed to
6086 not contain loop carried dependences without checking that it is
6087 profitable to parallelize the loops.
6088 .IP "\fB\-fcheck\-data\-deps\fR" 4
6089 .IX Item "-fcheck-data-deps"
6090 Compare the results of several data dependence analyzers.  This option
6091 is used for debugging the data dependence analyzers.
6092 .IP "\fB\-ftree\-loop\-distribution\fR" 4
6093 .IX Item "-ftree-loop-distribution"
6094 Perform loop distribution.  This flag can improve cache performance on
6095 big loop bodies and allow further loop optimizations, like
6096 parallelization or vectorization, to take place.  For example, the loop
6098 .Vb 4
6099 \&        DO I = 1, N
6100 \&          A(I) = B(I) + C
6101 \&          D(I) = E(I) * F
6102 \&        ENDDO
6105 is transformed to
6107 .Vb 6
6108 \&        DO I = 1, N
6109 \&           A(I) = B(I) + C
6110 \&        ENDDO
6111 \&        DO I = 1, N
6112 \&           D(I) = E(I) * F
6113 \&        ENDDO
6115 .IP "\fB\-ftree\-loop\-im\fR" 4
6116 .IX Item "-ftree-loop-im"
6117 Perform loop invariant motion on trees.  This pass moves only invariants that
6118 would be hard to handle at \s-1RTL\s0 level (function calls, operations that expand to
6119 nontrivial sequences of insns).  With \fB\-funswitch\-loops\fR it also moves
6120 operands of conditions that are invariant out of the loop, so that we can use
6121 just trivial invariantness analysis in loop unswitching.  The pass also includes
6122 store motion.
6123 .IP "\fB\-ftree\-loop\-ivcanon\fR" 4
6124 .IX Item "-ftree-loop-ivcanon"
6125 Create a canonical counter for number of iterations in the loop for that
6126 determining number of iterations requires complicated analysis.  Later
6127 optimizations then may determine the number easily.  Useful especially
6128 in connection with unrolling.
6129 .IP "\fB\-fivopts\fR" 4
6130 .IX Item "-fivopts"
6131 Perform induction variable optimizations (strength reduction, induction
6132 variable merging and induction variable elimination) on trees.
6133 .IP "\fB\-ftree\-parallelize\-loops=n\fR" 4
6134 .IX Item "-ftree-parallelize-loops=n"
6135 Parallelize loops, i.e., split their iteration space to run in n threads.
6136 This is only possible for loops whose iterations are independent
6137 and can be arbitrarily reordered.  The optimization is only
6138 profitable on multiprocessor machines, for loops that are CPU\-intensive,
6139 rather than constrained e.g. by memory bandwidth.  This option
6140 implies \fB\-pthread\fR, and thus is only supported on targets
6141 that have support for \fB\-pthread\fR.
6142 .IP "\fB\-ftree\-pta\fR" 4
6143 .IX Item "-ftree-pta"
6144 Perform function-local points-to analysis on trees.  This flag is
6145 enabled by default at \fB\-O\fR and higher.
6146 .IP "\fB\-ftree\-sra\fR" 4
6147 .IX Item "-ftree-sra"
6148 Perform scalar replacement of aggregates.  This pass replaces structure
6149 references with scalars to prevent committing structures to memory too
6150 early.  This flag is enabled by default at \fB\-O\fR and higher.
6151 .IP "\fB\-ftree\-copyrename\fR" 4
6152 .IX Item "-ftree-copyrename"
6153 Perform copy renaming on trees.  This pass attempts to rename compiler
6154 temporaries to other variables at copy locations, usually resulting in
6155 variable names which more closely resemble the original variables.  This flag
6156 is enabled by default at \fB\-O\fR and higher.
6157 .IP "\fB\-ftree\-ter\fR" 4
6158 .IX Item "-ftree-ter"
6159 Perform temporary expression replacement during the \s-1SSA\-\s0>normal phase.  Single
6160 use/single def temporaries are replaced at their use location with their
6161 defining expression.  This results in non-GIMPLE code, but gives the expanders
6162 much more complex trees to work on resulting in better \s-1RTL\s0 generation.  This is
6163 enabled by default at \fB\-O\fR and higher.
6164 .IP "\fB\-ftree\-vectorize\fR" 4
6165 .IX Item "-ftree-vectorize"
6166 Perform loop vectorization on trees. This flag is enabled by default at
6167 \&\fB\-O3\fR.
6168 .IP "\fB\-ftree\-slp\-vectorize\fR" 4
6169 .IX Item "-ftree-slp-vectorize"
6170 Perform basic block vectorization on trees. This flag is enabled by default at
6171 \&\fB\-O3\fR and when \fB\-ftree\-vectorize\fR is enabled.
6172 .IP "\fB\-ftree\-vect\-loop\-version\fR" 4
6173 .IX Item "-ftree-vect-loop-version"
6174 Perform loop versioning when doing loop vectorization on trees.  When a loop
6175 appears to be vectorizable except that data alignment or data dependence cannot
6176 be determined at compile time then vectorized and non-vectorized versions of
6177 the loop are generated along with runtime checks for alignment or dependence
6178 to control which version is executed.  This option is enabled by default
6179 except at level \fB\-Os\fR where it is disabled.
6180 .IP "\fB\-fvect\-cost\-model\fR" 4
6181 .IX Item "-fvect-cost-model"
6182 Enable cost model for vectorization.
6183 .IP "\fB\-ftree\-vrp\fR" 4
6184 .IX Item "-ftree-vrp"
6185 Perform Value Range Propagation on trees.  This is similar to the
6186 constant propagation pass, but instead of values, ranges of values are
6187 propagated.  This allows the optimizers to remove unnecessary range
6188 checks like array bound checks and null pointer checks.  This is
6189 enabled by default at \fB\-O2\fR and higher.  Null pointer check
6190 elimination is only done if \fB\-fdelete\-null\-pointer\-checks\fR is
6191 enabled.
6192 .IP "\fB\-ftracer\fR" 4
6193 .IX Item "-ftracer"
6194 Perform tail duplication to enlarge superblock size.  This transformation
6195 simplifies the control flow of the function allowing other optimizations to do
6196 better job.
6197 .IP "\fB\-funroll\-loops\fR" 4
6198 .IX Item "-funroll-loops"
6199 Unroll loops whose number of iterations can be determined at compile
6200 time or upon entry to the loop.  \fB\-funroll\-loops\fR implies
6201 \&\fB\-frerun\-cse\-after\-loop\fR.  This option makes code larger,
6202 and may or may not make it run faster.
6203 .IP "\fB\-funroll\-all\-loops\fR" 4
6204 .IX Item "-funroll-all-loops"
6205 Unroll all loops, even if their number of iterations is uncertain when
6206 the loop is entered.  This usually makes programs run more slowly.
6207 \&\fB\-funroll\-all\-loops\fR implies the same options as
6208 \&\fB\-funroll\-loops\fR,
6209 .IP "\fB\-fsplit\-ivs\-in\-unroller\fR" 4
6210 .IX Item "-fsplit-ivs-in-unroller"
6211 Enables expressing of values of induction variables in later iterations
6212 of the unrolled loop using the value in the first iteration.  This breaks
6213 long dependency chains, thus improving efficiency of the scheduling passes.
6215 Combination of \fB\-fweb\fR and \s-1CSE\s0 is often sufficient to obtain the
6216 same effect.  However in cases the loop body is more complicated than
6217 a single basic block, this is not reliable.  It also does not work at all
6218 on some of the architectures due to restrictions in the \s-1CSE\s0 pass.
6220 This optimization is enabled by default.
6221 .IP "\fB\-fvariable\-expansion\-in\-unroller\fR" 4
6222 .IX Item "-fvariable-expansion-in-unroller"
6223 With this option, the compiler will create multiple copies of some
6224 local variables when unrolling a loop which can result in superior code.
6225 .IP "\fB\-fpredictive\-commoning\fR" 4
6226 .IX Item "-fpredictive-commoning"
6227 Perform predictive commoning optimization, i.e., reusing computations
6228 (especially memory loads and stores) performed in previous
6229 iterations of loops.
6231 This option is enabled at level \fB\-O3\fR.
6232 .IP "\fB\-fprefetch\-loop\-arrays\fR" 4
6233 .IX Item "-fprefetch-loop-arrays"
6234 If supported by the target machine, generate instructions to prefetch
6235 memory to improve the performance of loops that access large arrays.
6237 This option may generate better or worse code; results are highly
6238 dependent on the structure of loops within the source code.
6240 Disabled at level \fB\-Os\fR.
6241 .IP "\fB\-fno\-peephole\fR" 4
6242 .IX Item "-fno-peephole"
6243 .PD 0
6244 .IP "\fB\-fno\-peephole2\fR" 4
6245 .IX Item "-fno-peephole2"
6247 Disable any machine-specific peephole optimizations.  The difference
6248 between \fB\-fno\-peephole\fR and \fB\-fno\-peephole2\fR is in how they
6249 are implemented in the compiler; some targets use one, some use the
6250 other, a few use both.
6252 \&\fB\-fpeephole\fR is enabled by default.
6253 \&\fB\-fpeephole2\fR enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
6254 .IP "\fB\-fno\-guess\-branch\-probability\fR" 4
6255 .IX Item "-fno-guess-branch-probability"
6256 Do not guess branch probabilities using heuristics.
6258 \&\s-1GCC\s0 will use heuristics to guess branch probabilities if they are
6259 not provided by profiling feedback (\fB\-fprofile\-arcs\fR).  These
6260 heuristics are based on the control flow graph.  If some branch probabilities
6261 are specified by \fB_\|_builtin_expect\fR, then the heuristics will be
6262 used to guess branch probabilities for the rest of the control flow graph,
6263 taking the \fB_\|_builtin_expect\fR info into account.  The interactions
6264 between the heuristics and \fB_\|_builtin_expect\fR can be complex, and in
6265 some cases, it may be useful to disable the heuristics so that the effects
6266 of \fB_\|_builtin_expect\fR are easier to understand.
6268 The default is \fB\-fguess\-branch\-probability\fR at levels
6269 \&\fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
6270 .IP "\fB\-freorder\-blocks\fR" 4
6271 .IX Item "-freorder-blocks"
6272 Reorder basic blocks in the compiled function in order to reduce number of
6273 taken branches and improve code locality.
6275 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
6276 .IP "\fB\-freorder\-blocks\-and\-partition\fR" 4
6277 .IX Item "-freorder-blocks-and-partition"
6278 In addition to reordering basic blocks in the compiled function, in order
6279 to reduce number of taken branches, partitions hot and cold basic blocks
6280 into separate sections of the assembly and .o files, to improve
6281 paging and cache locality performance.
6283 This optimization is automatically turned off in the presence of
6284 exception handling, for linkonce sections, for functions with a user-defined
6285 section attribute and on any architecture that does not support named
6286 sections.
6287 .IP "\fB\-freorder\-functions\fR" 4
6288 .IX Item "-freorder-functions"
6289 Reorder functions in the object file in order to
6290 improve code locality.  This is implemented by using special
6291 subsections \f(CW\*(C`.text.hot\*(C'\fR for most frequently executed functions and
6292 \&\f(CW\*(C`.text.unlikely\*(C'\fR for unlikely executed functions.  Reordering is done by
6293 the linker so object file format must support named sections and linker must
6294 place them in a reasonable way.
6296 Also profile feedback must be available in to make this option effective.  See
6297 \&\fB\-fprofile\-arcs\fR for details.
6299 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
6300 .IP "\fB\-fstrict\-aliasing\fR" 4
6301 .IX Item "-fstrict-aliasing"
6302 Allow the compiler to assume the strictest aliasing rules applicable to
6303 the language being compiled.  For C (and \*(C+), this activates
6304 optimizations based on the type of expressions.  In particular, an
6305 object of one type is assumed never to reside at the same address as an
6306 object of a different type, unless the types are almost the same.  For
6307 example, an \f(CW\*(C`unsigned int\*(C'\fR can alias an \f(CW\*(C`int\*(C'\fR, but not a
6308 \&\f(CW\*(C`void*\*(C'\fR or a \f(CW\*(C`double\*(C'\fR.  A character type may alias any other
6309 type.
6311 Pay special attention to code like this:
6313 .Vb 4
6314 \&        union a_union {
6315 \&          int i;
6316 \&          double d;
6317 \&        };
6320 .Vb 5
6321 \&        int f() {
6322 \&          union a_union t;
6323 \&          t.d = 3.0;
6324 \&          return t.i;
6325 \&        }
6328 The practice of reading from a different union member than the one most
6329 recently written to (called \*(L"type\-punning\*(R") is common.  Even with
6330 \&\fB\-fstrict\-aliasing\fR, type-punning is allowed, provided the memory
6331 is accessed through the union type.  So, the code above will work as
6332 expected.    However, this code might not:
6334 .Vb 7
6335 \&        int f() {
6336 \&          union a_union t;
6337 \&          int* ip;
6338 \&          t.d = 3.0;
6339 \&          ip = &t.i;
6340 \&          return *ip;
6341 \&        }
6344 Similarly, access by taking the address, casting the resulting pointer
6345 and dereferencing the result has undefined behavior, even if the cast
6346 uses a union type, e.g.:
6348 .Vb 4
6349 \&        int f() {
6350 \&          double d = 3.0;
6351 \&          return ((union a_union *) &d)->i;
6352 \&        }
6355 The \fB\-fstrict\-aliasing\fR option is enabled at levels
6356 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
6357 .IP "\fB\-fstrict\-overflow\fR" 4
6358 .IX Item "-fstrict-overflow"
6359 Allow the compiler to assume strict signed overflow rules, depending
6360 on the language being compiled.  For C (and \*(C+) this means that
6361 overflow when doing arithmetic with signed numbers is undefined, which
6362 means that the compiler may assume that it will not happen.  This
6363 permits various optimizations.  For example, the compiler will assume
6364 that an expression like \f(CW\*(C`i + 10 > i\*(C'\fR will always be true for
6365 signed \f(CW\*(C`i\*(C'\fR.  This assumption is only valid if signed overflow is
6366 undefined, as the expression is false if \f(CW\*(C`i + 10\*(C'\fR overflows when
6367 using twos complement arithmetic.  When this option is in effect any
6368 attempt to determine whether an operation on signed numbers will
6369 overflow must be written carefully to not actually involve overflow.
6371 This option also allows the compiler to assume strict pointer
6372 semantics: given a pointer to an object, if adding an offset to that
6373 pointer does not produce a pointer to the same object, the addition is
6374 undefined.  This permits the compiler to conclude that \f(CW\*(C`p + u >
6375 p\*(C'\fR is always true for a pointer \f(CW\*(C`p\*(C'\fR and unsigned integer
6376 \&\f(CW\*(C`u\*(C'\fR.  This assumption is only valid because pointer wraparound is
6377 undefined, as the expression is false if \f(CW\*(C`p + u\*(C'\fR overflows using
6378 twos complement arithmetic.
6380 See also the \fB\-fwrapv\fR option.  Using \fB\-fwrapv\fR means
6381 that integer signed overflow is fully defined: it wraps.  When
6382 \&\fB\-fwrapv\fR is used, there is no difference between
6383 \&\fB\-fstrict\-overflow\fR and \fB\-fno\-strict\-overflow\fR for
6384 integers.  With \fB\-fwrapv\fR certain types of overflow are
6385 permitted.  For example, if the compiler gets an overflow when doing
6386 arithmetic on constants, the overflowed value can still be used with
6387 \&\fB\-fwrapv\fR, but not otherwise.
6389 The \fB\-fstrict\-overflow\fR option is enabled at levels
6390 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
6391 .IP "\fB\-falign\-functions\fR" 4
6392 .IX Item "-falign-functions"
6393 .PD 0
6394 .IP "\fB\-falign\-functions=\fR\fIn\fR" 4
6395 .IX Item "-falign-functions=n"
6397 Align the start of functions to the next power-of-two greater than
6398 \&\fIn\fR, skipping up to \fIn\fR bytes.  For instance,
6399 \&\fB\-falign\-functions=32\fR aligns functions to the next 32\-byte
6400 boundary, but \fB\-falign\-functions=24\fR would align to the next
6401 32\-byte boundary only if this can be done by skipping 23 bytes or less.
6403 \&\fB\-fno\-align\-functions\fR and \fB\-falign\-functions=1\fR are
6404 equivalent and mean that functions will not be aligned.
6406 Some assemblers only support this flag when \fIn\fR is a power of two;
6407 in that case, it is rounded up.
6409 If \fIn\fR is not specified or is zero, use a machine-dependent default.
6411 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
6412 .IP "\fB\-falign\-labels\fR" 4
6413 .IX Item "-falign-labels"
6414 .PD 0
6415 .IP "\fB\-falign\-labels=\fR\fIn\fR" 4
6416 .IX Item "-falign-labels=n"
6418 Align all branch targets to a power-of-two boundary, skipping up to
6419 \&\fIn\fR bytes like \fB\-falign\-functions\fR.  This option can easily
6420 make code slower, because it must insert dummy operations for when the
6421 branch target is reached in the usual flow of the code.
6423 \&\fB\-fno\-align\-labels\fR and \fB\-falign\-labels=1\fR are
6424 equivalent and mean that labels will not be aligned.
6426 If \fB\-falign\-loops\fR or \fB\-falign\-jumps\fR are applicable and
6427 are greater than this value, then their values are used instead.
6429 If \fIn\fR is not specified or is zero, use a machine-dependent default
6430 which is very likely to be \fB1\fR, meaning no alignment.
6432 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
6433 .IP "\fB\-falign\-loops\fR" 4
6434 .IX Item "-falign-loops"
6435 .PD 0
6436 .IP "\fB\-falign\-loops=\fR\fIn\fR" 4
6437 .IX Item "-falign-loops=n"
6439 Align loops to a power-of-two boundary, skipping up to \fIn\fR bytes
6440 like \fB\-falign\-functions\fR.  The hope is that the loop will be
6441 executed many times, which will make up for any execution of the dummy
6442 operations.
6444 \&\fB\-fno\-align\-loops\fR and \fB\-falign\-loops=1\fR are
6445 equivalent and mean that loops will not be aligned.
6447 If \fIn\fR is not specified or is zero, use a machine-dependent default.
6449 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
6450 .IP "\fB\-falign\-jumps\fR" 4
6451 .IX Item "-falign-jumps"
6452 .PD 0
6453 .IP "\fB\-falign\-jumps=\fR\fIn\fR" 4
6454 .IX Item "-falign-jumps=n"
6456 Align branch targets to a power-of-two boundary, for branch targets
6457 where the targets can only be reached by jumping, skipping up to \fIn\fR
6458 bytes like \fB\-falign\-functions\fR.  In this case, no dummy operations
6459 need be executed.
6461 \&\fB\-fno\-align\-jumps\fR and \fB\-falign\-jumps=1\fR are
6462 equivalent and mean that loops will not be aligned.
6464 If \fIn\fR is not specified or is zero, use a machine-dependent default.
6466 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
6467 .IP "\fB\-funit\-at\-a\-time\fR" 4
6468 .IX Item "-funit-at-a-time"
6469 This option is left for compatibility reasons. \fB\-funit\-at\-a\-time\fR
6470 has no effect, while \fB\-fno\-unit\-at\-a\-time\fR implies
6471 \&\fB\-fno\-toplevel\-reorder\fR and \fB\-fno\-section\-anchors\fR.
6473 Enabled by default.
6474 .IP "\fB\-fno\-toplevel\-reorder\fR" 4
6475 .IX Item "-fno-toplevel-reorder"
6476 Do not reorder top-level functions, variables, and \f(CW\*(C`asm\*(C'\fR
6477 statements.  Output them in the same order that they appear in the
6478 input file.  When this option is used, unreferenced static variables
6479 will not be removed.  This option is intended to support existing code
6480 which relies on a particular ordering.  For new code, it is better to
6481 use attributes.
6483 Enabled at level \fB\-O0\fR.  When disabled explicitly, it also imply
6484 \&\fB\-fno\-section\-anchors\fR that is otherwise enabled at \fB\-O0\fR on some
6485 targets.
6486 .IP "\fB\-fweb\fR" 4
6487 .IX Item "-fweb"
6488 Constructs webs as commonly used for register allocation purposes and assign
6489 each web individual pseudo register.  This allows the register allocation pass
6490 to operate on pseudos directly, but also strengthens several other optimization
6491 passes, such as \s-1CSE\s0, loop optimizer and trivial dead code remover.  It can,
6492 however, make debugging impossible, since variables will no longer stay in a
6493 \&\*(L"home register\*(R".
6495 Enabled by default with \fB\-funroll\-loops\fR.
6496 .IP "\fB\-fwhole\-program\fR" 4
6497 .IX Item "-fwhole-program"
6498 Assume that the current compilation unit represents the whole program being
6499 compiled.  All public functions and variables with the exception of \f(CW\*(C`main\*(C'\fR
6500 and those merged by attribute \f(CW\*(C`externally_visible\*(C'\fR become static functions
6501 and in effect are optimized more aggressively by interprocedural optimizers.
6502 While this option is equivalent to proper use of the \f(CW\*(C`static\*(C'\fR keyword for
6503 programs consisting of a single file, in combination with option
6504 \&\fB\-combine\fR, \fB\-flto\fR or \fB\-fwhopr\fR this flag can be used to
6505 compile many smaller scale programs since the functions and variables become
6506 local for the whole combined compilation unit, not for the single source file
6507 itself.
6509 This option implies \fB\-fwhole\-file\fR for Fortran programs.
6510 .IP "\fB\-flto\fR" 4
6511 .IX Item "-flto"
6512 This option runs the standard link-time optimizer.  When invoked
6513 with source code, it generates \s-1GIMPLE\s0 (one of \s-1GCC\s0's internal
6514 representations) and writes it to special \s-1ELF\s0 sections in the object
6515 file.  When the object files are linked together, all the function
6516 bodies are read from these \s-1ELF\s0 sections and instantiated as if they
6517 had been part of the same translation unit.
6519 To use the link-timer optimizer, \fB\-flto\fR needs to be specified at
6520 compile time and during the final link.  For example,
6522 .Vb 3
6523 \&        gcc -c -O2 -flto foo.c
6524 \&        gcc -c -O2 -flto bar.c
6525 \&        gcc -o myprog -flto -O2 foo.o bar.o
6528 The first two invocations to \s-1GCC\s0 will save a bytecode representation
6529 of \s-1GIMPLE\s0 into special \s-1ELF\s0 sections inside \fIfoo.o\fR and
6530 \&\fIbar.o\fR.  The final invocation will read the \s-1GIMPLE\s0 bytecode from
6531 \&\fIfoo.o\fR and \fIbar.o\fR, merge the two files into a single
6532 internal image, and compile the result as usual.  Since both
6533 \&\fIfoo.o\fR and \fIbar.o\fR are merged into a single image, this
6534 causes all the inter-procedural analyses and optimizations in \s-1GCC\s0 to
6535 work across the two files as if they were a single one.  This means,
6536 for example, that the inliner will be able to inline functions in
6537 \&\fIbar.o\fR into functions in \fIfoo.o\fR and vice\-versa.
6539 Another (simpler) way to enable link-time optimization is,
6541 .Vb 1
6542 \&        gcc -o myprog -flto -O2 foo.c bar.c
6545 The above will generate bytecode for \fIfoo.c\fR and \fIbar.c\fR,
6546 merge them together into a single \s-1GIMPLE\s0 representation and optimize
6547 them as usual to produce \fImyprog\fR.
6549 The only important thing to keep in mind is that to enable link-time
6550 optimizations the \fB\-flto\fR flag needs to be passed to both the
6551 compile and the link commands.
6553 Note that when a file is compiled with \fB\-flto\fR, the generated
6554 object file will be larger than a regular object file because it will
6555 contain \s-1GIMPLE\s0 bytecodes and the usual final code.  This means that
6556 object files with \s-1LTO\s0 information can be linked as a normal object
6557 file.  So, in the previous example, if the final link is done with
6559 .Vb 1
6560 \&        gcc -o myprog foo.o bar.o
6563 The only difference will be that no inter-procedural optimizations
6564 will be applied to produce \fImyprog\fR.  The two object files
6565 \&\fIfoo.o\fR and \fIbar.o\fR will be simply sent to the regular
6566 linker.
6568 Additionally, the optimization flags used to compile individual files
6569 are not necessarily related to those used at link\-time.  For instance,
6571 .Vb 3
6572 \&        gcc -c -O0 -flto foo.c
6573 \&        gcc -c -O0 -flto bar.c
6574 \&        gcc -o myprog -flto -O3 foo.o bar.o
6577 This will produce individual object files with unoptimized assembler
6578 code, but the resulting binary \fImyprog\fR will be optimized at
6579 \&\fB\-O3\fR.  Now, if the final binary is generated without
6580 \&\fB\-flto\fR, then \fImyprog\fR will not be optimized.
6582 When producing the final binary with \fB\-flto\fR, \s-1GCC\s0 will only
6583 apply link-time optimizations to those files that contain bytecode.
6584 Therefore, you can mix and match object files and libraries with
6585 \&\s-1GIMPLE\s0 bytecodes and final object code.  \s-1GCC\s0 will automatically select
6586 which files to optimize in \s-1LTO\s0 mode and which files to link without
6587 further processing.
6589 There are some code generation flags that \s-1GCC\s0 will preserve when
6590 generating bytecodes, as they need to be used during the final link
6591 stage.  Currently, the following options are saved into the \s-1GIMPLE\s0
6592 bytecode files: \fB\-fPIC\fR, \fB\-fcommon\fR and all the
6593 \&\fB\-m\fR target flags.
6595 At link time, these options are read-in and reapplied.  Note that the
6596 current implementation makes no attempt at recognizing conflicting
6597 values for these options.  If two or more files have a conflicting
6598 value (e.g., one file is compiled with \fB\-fPIC\fR and another
6599 isn't), the compiler will simply use the last value read from the
6600 bytecode files.  It is recommended, then, that all the files
6601 participating in the same link be compiled with the same options.
6603 Another feature of \s-1LTO\s0 is that it is possible to apply interprocedural
6604 optimizations on files written in different languages.  This requires
6605 some support in the language front end.  Currently, the C, \*(C+ and
6606 Fortran front ends are capable of emitting \s-1GIMPLE\s0 bytecodes, so
6607 something like this should work
6609 .Vb 4
6610 \&        gcc -c -flto foo.c
6611 \&        g++ -c -flto bar.cc
6612 \&        gfortran -c -flto baz.f90
6613 \&        g++ -o myprog -flto -O3 foo.o bar.o baz.o -lgfortran
6616 Notice that the final link is done with \fBg++\fR to get the \*(C+
6617 runtime libraries and \fB\-lgfortran\fR is added to get the Fortran
6618 runtime libraries.  In general, when mixing languages in \s-1LTO\s0 mode, you
6619 should use the same link command used when mixing languages in a
6620 regular (non\-LTO) compilation.  This means that if your build process
6621 was mixing languages before, all you need to add is \fB\-flto\fR to
6622 all the compile and link commands.
6624 If \s-1LTO\s0 encounters objects with C linkage declared with incompatible
6625 types in separate translation units to be linked together (undefined
6626 behavior according to \s-1ISO\s0 C99 6.2.7), a non-fatal diagnostic may be
6627 issued.  The behavior is still undefined at runtime.
6629 If object files containing \s-1GIMPLE\s0 bytecode are stored in a library
6630 archive, say \fIlibfoo.a\fR, it is possible to extract and use them
6631 in an \s-1LTO\s0 link if you are using \fBgold\fR as the linker (which,
6632 in turn requires \s-1GCC\s0 to be configured with \fB\-\-enable\-gold\fR).
6633 To enable this feature, use the flag \fB\-fuse\-linker\-plugin\fR at
6634 link\-time:
6636 .Vb 1
6637 \&        gcc -o myprog -O2 -flto -fuse-linker-plugin a.o b.o -lfoo
6640 With the linker plugin enabled, \fBgold\fR will extract the needed
6641 \&\s-1GIMPLE\s0 files from \fIlibfoo.a\fR and pass them on to the running \s-1GCC\s0
6642 to make them part of the aggregated \s-1GIMPLE\s0 image to be optimized.
6644 If you are not using \fBgold\fR and/or do not specify
6645 \&\fB\-fuse\-linker\-plugin\fR then the objects inside \fIlibfoo.a\fR
6646 will be extracted and linked as usual, but they will not participate
6647 in the \s-1LTO\s0 optimization process.
6649 Link time optimizations do not require the presence of the whole
6650 program to operate.  If the program does not require any symbols to
6651 be exported, it is possible to combine \fB\-flto\fR and
6652 \&\fB\-fwhopr\fR with \fB\-fwhole\-program\fR to allow the
6653 interprocedural optimizers to use more aggressive assumptions which
6654 may lead to improved optimization opportunities.
6656 Regarding portability: the current implementation of \s-1LTO\s0 makes no
6657 attempt at generating bytecode that can be ported between different
6658 types of hosts.  The bytecode files are versioned and there is a
6659 strict version check, so bytecode files generated in one version of
6660 \&\s-1GCC\s0 will not work with an older/newer version of \s-1GCC\s0.
6662 Link time optimization does not play well with generating debugging
6663 information.  Combining \fB\-flto\fR or \fB\-fwhopr\fR with
6664 \&\fB\-g\fR is experimental.
6666 This option is disabled by default.
6667 .IP "\fB\-fwhopr\fR" 4
6668 .IX Item "-fwhopr"
6669 This option is identical in functionality to \fB\-flto\fR but it
6670 differs in how the final link stage is executed.  Instead of loading
6671 all the function bodies in memory, the callgraph is analyzed and
6672 optimization decisions are made (whole program analysis or \s-1WPA\s0). Once
6673 optimization decisions are made, the callgraph is partitioned and the
6674 different sections are compiled separately (local transformations or
6675 \&\s-1LTRANS\s0).  This process allows optimizations on very large programs
6676 that otherwise would not fit in memory.  This option enables
6677 \&\fB\-fwpa\fR and \fB\-fltrans\fR automatically.
6679 Disabled by default.
6681 This option is experimental.
6682 .IP "\fB\-fwpa\fR" 4
6683 .IX Item "-fwpa"
6684 This is an internal option used by \s-1GCC\s0 when compiling with
6685 \&\fB\-fwhopr\fR.  You should never need to use it.
6687 This option runs the link-time optimizer in the whole-program-analysis
6688 (\s-1WPA\s0) mode, which reads in summary information from all inputs and
6689 performs a whole-program analysis based on summary information only.
6690 It generates object files for subsequent runs of the link-time
6691 optimizer where individual object files are optimized using both
6692 summary information from the \s-1WPA\s0 mode and the actual function bodies.
6693 It then drives the \s-1LTRANS\s0 phase.
6695 Disabled by default.
6696 .IP "\fB\-fltrans\fR" 4
6697 .IX Item "-fltrans"
6698 This is an internal option used by \s-1GCC\s0 when compiling with
6699 \&\fB\-fwhopr\fR.  You should never need to use it.
6701 This option runs the link-time optimizer in the local-transformation (\s-1LTRANS\s0)
6702 mode, which reads in output from a previous run of the \s-1LTO\s0 in \s-1WPA\s0 mode.
6703 In the \s-1LTRANS\s0 mode, \s-1LTO\s0 optimizes an object and produces the final assembly.
6705 Disabled by default.
6706 .IP "\fB\-fltrans\-output\-list=\fR\fIfile\fR" 4
6707 .IX Item "-fltrans-output-list=file"
6708 This is an internal option used by \s-1GCC\s0 when compiling with
6709 \&\fB\-fwhopr\fR.  You should never need to use it.
6711 This option specifies a file to which the names of \s-1LTRANS\s0 output files are
6712 written.  This option is only meaningful in conjunction with \fB\-fwpa\fR.
6714 Disabled by default.
6715 .IP "\fB\-flto\-compression\-level=\fR\fIn\fR" 4
6716 .IX Item "-flto-compression-level=n"
6717 This option specifies the level of compression used for intermediate
6718 language written to \s-1LTO\s0 object files, and is only meaningful in
6719 conjunction with \s-1LTO\s0 mode (\fB\-fwhopr\fR, \fB\-flto\fR).  Valid
6720 values are 0 (no compression) to 9 (maximum compression).  Values
6721 outside this range are clamped to either 0 or 9.  If the option is not
6722 given, a default balanced compression setting is used.
6723 .IP "\fB\-flto\-report\fR" 4
6724 .IX Item "-flto-report"
6725 Prints a report with internal details on the workings of the link-time
6726 optimizer.  The contents of this report vary from version to version,
6727 it is meant to be useful to \s-1GCC\s0 developers when processing object
6728 files in \s-1LTO\s0 mode (via \fB\-fwhopr\fR or \fB\-flto\fR).
6730 Disabled by default.
6731 .IP "\fB\-fuse\-linker\-plugin\fR" 4
6732 .IX Item "-fuse-linker-plugin"
6733 Enables the extraction of objects with \s-1GIMPLE\s0 bytecode information
6734 from library archives.  This option relies on features available only
6735 in \fBgold\fR, so to use this you must configure \s-1GCC\s0 with
6736 \&\fB\-\-enable\-gold\fR.  See \fB\-flto\fR for a description on the
6737 effect of this flag and how to use it.
6739 Disabled by default.
6740 .IP "\fB\-fcprop\-registers\fR" 4
6741 .IX Item "-fcprop-registers"
6742 After register allocation and post-register allocation instruction splitting,
6743 we perform a copy-propagation pass to try to reduce scheduling dependencies
6744 and occasionally eliminate the copy.
6746 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
6747 .IP "\fB\-fprofile\-correction\fR" 4
6748 .IX Item "-fprofile-correction"
6749 Profiles collected using an instrumented binary for multi-threaded programs may
6750 be inconsistent due to missed counter updates. When this option is specified,
6751 \&\s-1GCC\s0 will use heuristics to correct or smooth out such inconsistencies. By
6752 default, \s-1GCC\s0 will emit an error message when an inconsistent profile is detected.
6753 .IP "\fB\-fprofile\-dir=\fR\fIpath\fR" 4
6754 .IX Item "-fprofile-dir=path"
6755 Set the directory to search the profile data files in to \fIpath\fR.
6756 This option affects only the profile data generated by
6757 \&\fB\-fprofile\-generate\fR, \fB\-ftest\-coverage\fR, \fB\-fprofile\-arcs\fR
6758 and used by \fB\-fprofile\-use\fR and \fB\-fbranch\-probabilities\fR
6759 and its related options.
6760 By default, \s-1GCC\s0 will use the current directory as \fIpath\fR
6761 thus the profile data file will appear in the same directory as the object file.
6762 .IP "\fB\-fprofile\-generate\fR" 4
6763 .IX Item "-fprofile-generate"
6764 .PD 0
6765 .IP "\fB\-fprofile\-generate=\fR\fIpath\fR" 4
6766 .IX Item "-fprofile-generate=path"
6768 Enable options usually used for instrumenting application to produce
6769 profile useful for later recompilation with profile feedback based
6770 optimization.  You must use \fB\-fprofile\-generate\fR both when
6771 compiling and when linking your program.
6773 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.
6775 If \fIpath\fR is specified, \s-1GCC\s0 will look at the \fIpath\fR to find
6776 the profile feedback data files. See \fB\-fprofile\-dir\fR.
6777 .IP "\fB\-fprofile\-use\fR" 4
6778 .IX Item "-fprofile-use"
6779 .PD 0
6780 .IP "\fB\-fprofile\-use=\fR\fIpath\fR" 4
6781 .IX Item "-fprofile-use=path"
6783 Enable profile feedback directed optimizations, and optimizations
6784 generally profitable only with profile feedback available.
6786 The following options are enabled: \f(CW\*(C`\-fbranch\-probabilities\*(C'\fR, \f(CW\*(C`\-fvpt\*(C'\fR,
6787 \&\f(CW\*(C`\-funroll\-loops\*(C'\fR, \f(CW\*(C`\-fpeel\-loops\*(C'\fR, \f(CW\*(C`\-ftracer\*(C'\fR
6789 By default, \s-1GCC\s0 emits an error message if the feedback profiles do not
6790 match the source code.  This error can be turned into a warning by using
6791 \&\fB\-Wcoverage\-mismatch\fR.  Note this may result in poorly optimized
6792 code.
6794 If \fIpath\fR is specified, \s-1GCC\s0 will look at the \fIpath\fR to find
6795 the profile feedback data files. See \fB\-fprofile\-dir\fR.
6797 The following options control compiler behavior regarding floating
6798 point arithmetic.  These options trade off between speed and
6799 correctness.  All must be specifically enabled.
6800 .IP "\fB\-ffloat\-store\fR" 4
6801 .IX Item "-ffloat-store"
6802 Do not store floating point variables in registers, and inhibit other
6803 options that might change whether a floating point value is taken from a
6804 register or memory.
6806 This option prevents undesirable excess precision on machines such as
6807 the 68000 where the floating registers (of the 68881) keep more
6808 precision than a \f(CW\*(C`double\*(C'\fR is supposed to have.  Similarly for the
6809 x86 architecture.  For most programs, the excess precision does only
6810 good, but a few programs rely on the precise definition of \s-1IEEE\s0 floating
6811 point.  Use \fB\-ffloat\-store\fR for such programs, after modifying
6812 them to store all pertinent intermediate computations into variables.
6813 .IP "\fB\-fexcess\-precision=\fR\fIstyle\fR" 4
6814 .IX Item "-fexcess-precision=style"
6815 This option allows further control over excess precision on machines
6816 where floating-point registers have more precision than the \s-1IEEE\s0
6817 \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR types and the processor does not
6818 support operations rounding to those types.  By default,
6819 \&\fB\-fexcess\-precision=fast\fR is in effect; this means that
6820 operations are carried out in the precision of the registers and that
6821 it is unpredictable when rounding to the types specified in the source
6822 code takes place.  When compiling C, if
6823 \&\fB\-fexcess\-precision=standard\fR is specified then excess
6824 precision will follow the rules specified in \s-1ISO\s0 C99; in particular,
6825 both casts and assignments cause values to be rounded to their
6826 semantic types (whereas \fB\-ffloat\-store\fR only affects
6827 assignments).  This option is enabled by default for C if a strict
6828 conformance option such as \fB\-std=c99\fR is used.
6830 \&\fB\-fexcess\-precision=standard\fR is not implemented for languages
6831 other than C, and has no effect if
6832 \&\fB\-funsafe\-math\-optimizations\fR or \fB\-ffast\-math\fR is
6833 specified.  On the x86, it also has no effect if \fB\-mfpmath=sse\fR
6834 or \fB\-mfpmath=sse+387\fR is specified; in the former case, \s-1IEEE\s0
6835 semantics apply without excess precision, and in the latter, rounding
6836 is unpredictable.
6837 .IP "\fB\-ffast\-math\fR" 4
6838 .IX Item "-ffast-math"
6839 Sets \fB\-fno\-math\-errno\fR, \fB\-funsafe\-math\-optimizations\fR,
6840 \&\fB\-ffinite\-math\-only\fR, \fB\-fno\-rounding\-math\fR,
6841 \&\fB\-fno\-signaling\-nans\fR and \fB\-fcx\-limited\-range\fR.
6843 This option causes the preprocessor macro \f(CW\*(C`_\|_FAST_MATH_\|_\*(C'\fR to be defined.
6845 This option is not turned on by any \fB\-O\fR option since
6846 it can result in incorrect output for programs which depend on
6847 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
6848 math functions. It may, however, yield faster code for programs
6849 that do not require the guarantees of these specifications.
6850 .IP "\fB\-fno\-math\-errno\fR" 4
6851 .IX Item "-fno-math-errno"
6852 Do not set \s-1ERRNO\s0 after calling math functions that are executed
6853 with a single instruction, e.g., sqrt.  A program that relies on
6854 \&\s-1IEEE\s0 exceptions for math error handling may want to use this flag
6855 for speed while maintaining \s-1IEEE\s0 arithmetic compatibility.
6857 This option is not turned on by any \fB\-O\fR option since
6858 it can result in incorrect output for programs which depend on
6859 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
6860 math functions. It may, however, yield faster code for programs
6861 that do not require the guarantees of these specifications.
6863 The default is \fB\-fmath\-errno\fR.
6865 On Darwin systems, the math library never sets \f(CW\*(C`errno\*(C'\fR.  There is
6866 therefore no reason for the compiler to consider the possibility that
6867 it might, and \fB\-fno\-math\-errno\fR is the default.
6868 .IP "\fB\-funsafe\-math\-optimizations\fR" 4
6869 .IX Item "-funsafe-math-optimizations"
6870 Allow optimizations for floating-point arithmetic that (a) assume
6871 that arguments and results are valid and (b) may violate \s-1IEEE\s0 or
6872 \&\s-1ANSI\s0 standards.  When used at link\-time, it may include libraries
6873 or startup files that change the default \s-1FPU\s0 control word or other
6874 similar optimizations.
6876 This option is not turned on by any \fB\-O\fR option since
6877 it can result in incorrect output for programs which depend on
6878 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
6879 math functions. It may, however, yield faster code for programs
6880 that do not require the guarantees of these specifications.
6881 Enables \fB\-fno\-signed\-zeros\fR, \fB\-fno\-trapping\-math\fR,
6882 \&\fB\-fassociative\-math\fR and \fB\-freciprocal\-math\fR.
6884 The default is \fB\-fno\-unsafe\-math\-optimizations\fR.
6885 .IP "\fB\-fassociative\-math\fR" 4
6886 .IX Item "-fassociative-math"
6887 Allow re-association of operands in series of floating-point operations.
6888 This violates the \s-1ISO\s0 C and \*(C+ language standard by possibly changing
6889 computation result.  \s-1NOTE:\s0 re-ordering may change the sign of zero as
6890 well as ignore NaNs and inhibit or create underflow or overflow (and
6891 thus cannot be used on a code which relies on rounding behavior like
6892 \&\f(CW\*(C`(x + 2**52) \- 2**52)\*(C'\fR.  May also reorder floating-point comparisons
6893 and thus may not be used when ordered comparisons are required.
6894 This option requires that both \fB\-fno\-signed\-zeros\fR and
6895 \&\fB\-fno\-trapping\-math\fR be in effect.  Moreover, it doesn't make
6896 much sense with \fB\-frounding\-math\fR. For Fortran the option
6897 is automatically enabled when both \fB\-fno\-signed\-zeros\fR and
6898 \&\fB\-fno\-trapping\-math\fR are in effect.
6900 The default is \fB\-fno\-associative\-math\fR.
6901 .IP "\fB\-freciprocal\-math\fR" 4
6902 .IX Item "-freciprocal-math"
6903 Allow the reciprocal of a value to be used instead of dividing by
6904 the value if this enables optimizations.  For example \f(CW\*(C`x / y\*(C'\fR
6905 can be replaced with \f(CW\*(C`x * (1/y)\*(C'\fR which is useful if \f(CW\*(C`(1/y)\*(C'\fR
6906 is subject to common subexpression elimination.  Note that this loses
6907 precision and increases the number of flops operating on the value.
6909 The default is \fB\-fno\-reciprocal\-math\fR.
6910 .IP "\fB\-ffinite\-math\-only\fR" 4
6911 .IX Item "-ffinite-math-only"
6912 Allow optimizations for floating-point arithmetic that assume
6913 that arguments and results are not NaNs or +\-Infs.
6915 This option is not turned on by any \fB\-O\fR option since
6916 it can result in incorrect output for programs which depend on
6917 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
6918 math functions. It may, however, yield faster code for programs
6919 that do not require the guarantees of these specifications.
6921 The default is \fB\-fno\-finite\-math\-only\fR.
6922 .IP "\fB\-fno\-signed\-zeros\fR" 4
6923 .IX Item "-fno-signed-zeros"
6924 Allow optimizations for floating point arithmetic that ignore the
6925 signedness of zero.  \s-1IEEE\s0 arithmetic specifies the behavior of
6926 distinct +0.0 and \-0.0 values, which then prohibits simplification
6927 of expressions such as x+0.0 or 0.0*x (even with \fB\-ffinite\-math\-only\fR).
6928 This option implies that the sign of a zero result isn't significant.
6930 The default is \fB\-fsigned\-zeros\fR.
6931 .IP "\fB\-fno\-trapping\-math\fR" 4
6932 .IX Item "-fno-trapping-math"
6933 Compile code assuming that floating-point operations cannot generate
6934 user-visible traps.  These traps include division by zero, overflow,
6935 underflow, inexact result and invalid operation.  This option requires
6936 that \fB\-fno\-signaling\-nans\fR be in effect.  Setting this option may
6937 allow faster code if one relies on \*(L"non\-stop\*(R" \s-1IEEE\s0 arithmetic, for example.
6939 This option should never be turned on by any \fB\-O\fR option since
6940 it can result in incorrect output for programs which depend on
6941 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
6942 math functions.
6944 The default is \fB\-ftrapping\-math\fR.
6945 .IP "\fB\-frounding\-math\fR" 4
6946 .IX Item "-frounding-math"
6947 Disable transformations and optimizations that assume default floating
6948 point rounding behavior.  This is round-to-zero for all floating point
6949 to integer conversions, and round-to-nearest for all other arithmetic
6950 truncations.  This option should be specified for programs that change
6951 the \s-1FP\s0 rounding mode dynamically, or that may be executed with a
6952 non-default rounding mode.  This option disables constant folding of
6953 floating point expressions at compile-time (which may be affected by
6954 rounding mode) and arithmetic transformations that are unsafe in the
6955 presence of sign-dependent rounding modes.
6957 The default is \fB\-fno\-rounding\-math\fR.
6959 This option is experimental and does not currently guarantee to
6960 disable all \s-1GCC\s0 optimizations that are affected by rounding mode.
6961 Future versions of \s-1GCC\s0 may provide finer control of this setting
6962 using C99's \f(CW\*(C`FENV_ACCESS\*(C'\fR pragma.  This command line option
6963 will be used to specify the default state for \f(CW\*(C`FENV_ACCESS\*(C'\fR.
6964 .IP "\fB\-fsignaling\-nans\fR" 4
6965 .IX Item "-fsignaling-nans"
6966 Compile code assuming that \s-1IEEE\s0 signaling NaNs may generate user-visible
6967 traps during floating-point operations.  Setting this option disables
6968 optimizations that may change the number of exceptions visible with
6969 signaling NaNs.  This option implies \fB\-ftrapping\-math\fR.
6971 This option causes the preprocessor macro \f(CW\*(C`_\|_SUPPORT_SNAN_\|_\*(C'\fR to
6972 be defined.
6974 The default is \fB\-fno\-signaling\-nans\fR.
6976 This option is experimental and does not currently guarantee to
6977 disable all \s-1GCC\s0 optimizations that affect signaling NaN behavior.
6978 .IP "\fB\-fsingle\-precision\-constant\fR" 4
6979 .IX Item "-fsingle-precision-constant"
6980 Treat floating point constant as single precision constant instead of
6981 implicitly converting it to double precision constant.
6982 .IP "\fB\-fcx\-limited\-range\fR" 4
6983 .IX Item "-fcx-limited-range"
6984 When enabled, this option states that a range reduction step is not
6985 needed when performing complex division.  Also, there is no checking
6986 whether the result of a complex multiplication or division is \f(CW\*(C`NaN
6987 + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case.  The
6988 default is \fB\-fno\-cx\-limited\-range\fR, but is enabled by
6989 \&\fB\-ffast\-math\fR.
6991 This option controls the default setting of the \s-1ISO\s0 C99
6992 \&\f(CW\*(C`CX_LIMITED_RANGE\*(C'\fR pragma.  Nevertheless, the option applies to
6993 all languages.
6994 .IP "\fB\-fcx\-fortran\-rules\fR" 4
6995 .IX Item "-fcx-fortran-rules"
6996 Complex multiplication and division follow Fortran rules.  Range
6997 reduction is done as part of complex division, but there is no checking
6998 whether the result of a complex multiplication or division is \f(CW\*(C`NaN
6999 + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case.
7001 The default is \fB\-fno\-cx\-fortran\-rules\fR.
7003 The following options control optimizations that may improve
7004 performance, but are not enabled by any \fB\-O\fR options.  This
7005 section includes experimental options that may produce broken code.
7006 .IP "\fB\-fbranch\-probabilities\fR" 4
7007 .IX Item "-fbranch-probabilities"
7008 After running a program compiled with \fB\-fprofile\-arcs\fR, you can compile it a second time using
7009 \&\fB\-fbranch\-probabilities\fR, to improve optimizations based on
7010 the number of times each branch was taken.  When the program
7011 compiled with \fB\-fprofile\-arcs\fR exits it saves arc execution
7012 counts to a file called \fI\fIsourcename\fI.gcda\fR for each source
7013 file.  The information in this data file is very dependent on the
7014 structure of the generated code, so you must use the same source code
7015 and the same optimization options for both compilations.
7017 With \fB\-fbranch\-probabilities\fR, \s-1GCC\s0 puts a
7018 \&\fB\s-1REG_BR_PROB\s0\fR note on each \fB\s-1JUMP_INSN\s0\fR and \fB\s-1CALL_INSN\s0\fR.
7019 These can be used to improve optimization.  Currently, they are only
7020 used in one place: in \fIreorg.c\fR, instead of guessing which path a
7021 branch is mostly to take, the \fB\s-1REG_BR_PROB\s0\fR values are used to
7022 exactly determine which path is taken more often.
7023 .IP "\fB\-fprofile\-values\fR" 4
7024 .IX Item "-fprofile-values"
7025 If combined with \fB\-fprofile\-arcs\fR, it adds code so that some
7026 data about values of expressions in the program is gathered.
7028 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
7029 from profiling values of expressions and adds \fB\s-1REG_VALUE_PROFILE\s0\fR
7030 notes to instructions for their later usage in optimizations.
7032 Enabled with \fB\-fprofile\-generate\fR and \fB\-fprofile\-use\fR.
7033 .IP "\fB\-fvpt\fR" 4
7034 .IX Item "-fvpt"
7035 If combined with \fB\-fprofile\-arcs\fR, it instructs the compiler to add
7036 a code to gather information about values of expressions.
7038 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
7039 and actually performs the optimizations based on them.
7040 Currently the optimizations include specialization of division operation
7041 using the knowledge about the value of the denominator.
7042 .IP "\fB\-frename\-registers\fR" 4
7043 .IX Item "-frename-registers"
7044 Attempt to avoid false dependencies in scheduled code by making use
7045 of registers left over after register allocation.  This optimization
7046 will most benefit processors with lots of registers.  Depending on the
7047 debug information format adopted by the target, however, it can
7048 make debugging impossible, since variables will no longer stay in
7049 a \*(L"home register\*(R".
7051 Enabled by default with \fB\-funroll\-loops\fR and \fB\-fpeel\-loops\fR.
7052 .IP "\fB\-ftracer\fR" 4
7053 .IX Item "-ftracer"
7054 Perform tail duplication to enlarge superblock size.  This transformation
7055 simplifies the control flow of the function allowing other optimizations to do
7056 better job.
7058 Enabled with \fB\-fprofile\-use\fR.
7059 .IP "\fB\-funroll\-loops\fR" 4
7060 .IX Item "-funroll-loops"
7061 Unroll loops whose number of iterations can be determined at compile time or
7062 upon entry to the loop.  \fB\-funroll\-loops\fR implies
7063 \&\fB\-frerun\-cse\-after\-loop\fR, \fB\-fweb\fR and \fB\-frename\-registers\fR.
7064 It also turns on complete loop peeling (i.e. complete removal of loops with
7065 small constant number of iterations).  This option makes code larger, and may
7066 or may not make it run faster.
7068 Enabled with \fB\-fprofile\-use\fR.
7069 .IP "\fB\-funroll\-all\-loops\fR" 4
7070 .IX Item "-funroll-all-loops"
7071 Unroll all loops, even if their number of iterations is uncertain when
7072 the loop is entered.  This usually makes programs run more slowly.
7073 \&\fB\-funroll\-all\-loops\fR implies the same options as
7074 \&\fB\-funroll\-loops\fR.
7075 .IP "\fB\-fpeel\-loops\fR" 4
7076 .IX Item "-fpeel-loops"
7077 Peels the loops for that there is enough information that they do not
7078 roll much (from profile feedback).  It also turns on complete loop peeling
7079 (i.e. complete removal of loops with small constant number of iterations).
7081 Enabled with \fB\-fprofile\-use\fR.
7082 .IP "\fB\-fmove\-loop\-invariants\fR" 4
7083 .IX Item "-fmove-loop-invariants"
7084 Enables the loop invariant motion pass in the \s-1RTL\s0 loop optimizer.  Enabled
7085 at level \fB\-O1\fR
7086 .IP "\fB\-funswitch\-loops\fR" 4
7087 .IX Item "-funswitch-loops"
7088 Move branches with loop invariant conditions out of the loop, with duplicates
7089 of the loop on both branches (modified according to result of the condition).
7090 .IP "\fB\-ffunction\-sections\fR" 4
7091 .IX Item "-ffunction-sections"
7092 .PD 0
7093 .IP "\fB\-fdata\-sections\fR" 4
7094 .IX Item "-fdata-sections"
7096 Place each function or data item into its own section in the output
7097 file if the target supports arbitrary sections.  The name of the
7098 function or the name of the data item determines the section's name
7099 in the output file.
7101 Use these options on systems where the linker can perform optimizations
7102 to improve locality of reference in the instruction space.  Most systems
7103 using the \s-1ELF\s0 object format and \s-1SPARC\s0 processors running Solaris 2 have
7104 linkers with such optimizations.  \s-1AIX\s0 may have these optimizations in
7105 the future.
7107 Only use these options when there are significant benefits from doing
7108 so.  When you specify these options, the assembler and linker will
7109 create larger object and executable files and will also be slower.
7110 You will not be able to use \f(CW\*(C`gprof\*(C'\fR on all systems if you
7111 specify this option and you may have problems with debugging if
7112 you specify both this option and \fB\-g\fR.
7113 .IP "\fB\-fbranch\-target\-load\-optimize\fR" 4
7114 .IX Item "-fbranch-target-load-optimize"
7115 Perform branch target register load optimization before prologue / epilogue
7116 threading.
7117 The use of target registers can typically be exposed only during reload,
7118 thus hoisting loads out of loops and doing inter-block scheduling needs
7119 a separate optimization pass.
7120 .IP "\fB\-fbranch\-target\-load\-optimize2\fR" 4
7121 .IX Item "-fbranch-target-load-optimize2"
7122 Perform branch target register load optimization after prologue / epilogue
7123 threading.
7124 .IP "\fB\-fbtr\-bb\-exclusive\fR" 4
7125 .IX Item "-fbtr-bb-exclusive"
7126 When performing branch target register load optimization, don't reuse
7127 branch target registers in within any basic block.
7128 .IP "\fB\-fstack\-protector\fR" 4
7129 .IX Item "-fstack-protector"
7130 Emit extra code to check for buffer overflows, such as stack smashing
7131 attacks.  This is done by adding a guard variable to functions with
7132 vulnerable objects.  This includes functions that call alloca, and
7133 functions with buffers larger than 8 bytes.  The guards are initialized
7134 when a function is entered and then checked when the function exits.
7135 If a guard check fails, an error message is printed and the program exits.
7136 .IP "\fB\-fstack\-protector\-all\fR" 4
7137 .IX Item "-fstack-protector-all"
7138 Like \fB\-fstack\-protector\fR except that all functions are protected.
7139 .IP "\fB\-fsection\-anchors\fR" 4
7140 .IX Item "-fsection-anchors"
7141 Try to reduce the number of symbolic address calculations by using
7142 shared \*(L"anchor\*(R" symbols to address nearby objects.  This transformation
7143 can help to reduce the number of \s-1GOT\s0 entries and \s-1GOT\s0 accesses on some
7144 targets.
7146 For example, the implementation of the following function \f(CW\*(C`foo\*(C'\fR:
7148 .Vb 2
7149 \&        static int a, b, c;
7150 \&        int foo (void) { return a + b + c; }
7153 would usually calculate the addresses of all three variables, but if you
7154 compile it with \fB\-fsection\-anchors\fR, it will access the variables
7155 from a common anchor point instead.  The effect is similar to the
7156 following pseudocode (which isn't valid C):
7158 .Vb 5
7159 \&        int foo (void)
7160 \&        {
7161 \&          register int *xr = &x;
7162 \&          return xr[&a - &x] + xr[&b - &x] + xr[&c - &x];
7163 \&        }
7166 Not all targets support this option.
7167 .IP "\fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR" 4
7168 .IX Item "--param name=value"
7169 In some places, \s-1GCC\s0 uses various constants to control the amount of
7170 optimization that is done.  For example, \s-1GCC\s0 will not inline functions
7171 that contain more that a certain number of instructions.  You can
7172 control some of these constants on the command-line using the
7173 \&\fB\-\-param\fR option.
7175 The names of specific parameters, and the meaning of the values, are
7176 tied to the internals of the compiler, and are subject to change
7177 without notice in future releases.
7179 In each case, the \fIvalue\fR is an integer.  The allowable choices for
7180 \&\fIname\fR are given in the following table:
7181 .RS 4
7182 .IP "\fBstruct-reorg-cold-struct-ratio\fR" 4
7183 .IX Item "struct-reorg-cold-struct-ratio"
7184 The threshold ratio (as a percentage) between a structure frequency
7185 and the frequency of the hottest structure in the program.  This parameter
7186 is used by struct-reorg optimization enabled by \fB\-fipa\-struct\-reorg\fR.
7187 We say that if the ratio of a structure frequency, calculated by profiling,
7188 to the hottest structure frequency in the program is less than this
7189 parameter, then structure reorganization is not applied to this structure.
7190 The default is 10.
7191 .IP "\fBpredictable-branch-outcome\fR" 4
7192 .IX Item "predictable-branch-outcome"
7193 When branch is predicted to be taken with probability lower than this threshold
7194 (in percent), then it is considered well predictable. The default is 10.
7195 .IP "\fBmax-crossjump-edges\fR" 4
7196 .IX Item "max-crossjump-edges"
7197 The maximum number of incoming edges to consider for crossjumping.
7198 The algorithm used by \fB\-fcrossjumping\fR is O(N^2) in
7199 the number of edges incoming to each block.  Increasing values mean
7200 more aggressive optimization, making the compile time increase with
7201 probably small improvement in executable size.
7202 .IP "\fBmin-crossjump-insns\fR" 4
7203 .IX Item "min-crossjump-insns"
7204 The minimum number of instructions which must be matched at the end
7205 of two blocks before crossjumping will be performed on them.  This
7206 value is ignored in the case where all instructions in the block being
7207 crossjumped from are matched.  The default value is 5.
7208 .IP "\fBmax-grow-copy-bb-insns\fR" 4
7209 .IX Item "max-grow-copy-bb-insns"
7210 The maximum code size expansion factor when copying basic blocks
7211 instead of jumping.  The expansion is relative to a jump instruction.
7212 The default value is 8.
7213 .IP "\fBmax-goto-duplication-insns\fR" 4
7214 .IX Item "max-goto-duplication-insns"
7215 The maximum number of instructions to duplicate to a block that jumps
7216 to a computed goto.  To avoid O(N^2) behavior in a number of
7217 passes, \s-1GCC\s0 factors computed gotos early in the compilation process,
7218 and unfactors them as late as possible.  Only computed jumps at the
7219 end of a basic blocks with no more than max-goto-duplication-insns are
7220 unfactored.  The default value is 8.
7221 .IP "\fBmax-delay-slot-insn-search\fR" 4
7222 .IX Item "max-delay-slot-insn-search"
7223 The maximum number of instructions to consider when looking for an
7224 instruction to fill a delay slot.  If more than this arbitrary number of
7225 instructions is searched, the time savings from filling the delay slot
7226 will be minimal so stop searching.  Increasing values mean more
7227 aggressive optimization, making the compile time increase with probably
7228 small improvement in executable run time.
7229 .IP "\fBmax-delay-slot-live-search\fR" 4
7230 .IX Item "max-delay-slot-live-search"
7231 When trying to fill delay slots, the maximum number of instructions to
7232 consider when searching for a block with valid live register
7233 information.  Increasing this arbitrarily chosen value means more
7234 aggressive optimization, increasing the compile time.  This parameter
7235 should be removed when the delay slot code is rewritten to maintain the
7236 control-flow graph.
7237 .IP "\fBmax-gcse-memory\fR" 4
7238 .IX Item "max-gcse-memory"
7239 The approximate maximum amount of memory that will be allocated in
7240 order to perform the global common subexpression elimination
7241 optimization.  If more memory than specified is required, the
7242 optimization will not be done.
7243 .IP "\fBmax-pending-list-length\fR" 4
7244 .IX Item "max-pending-list-length"
7245 The maximum number of pending dependencies scheduling will allow
7246 before flushing the current state and starting over.  Large functions
7247 with few branches or calls can create excessively large lists which
7248 needlessly consume memory and resources.
7249 .IP "\fBmax-inline-insns-single\fR" 4
7250 .IX Item "max-inline-insns-single"
7251 Several parameters control the tree inliner used in gcc.
7252 This number sets the maximum number of instructions (counted in \s-1GCC\s0's
7253 internal representation) in a single function that the tree inliner
7254 will consider for inlining.  This only affects functions declared
7255 inline and methods implemented in a class declaration (\*(C+).
7256 The default value is 300.
7257 .IP "\fBmax-inline-insns-auto\fR" 4
7258 .IX Item "max-inline-insns-auto"
7259 When you use \fB\-finline\-functions\fR (included in \fB\-O3\fR),
7260 a lot of functions that would otherwise not be considered for inlining
7261 by the compiler will be investigated.  To those functions, a different
7262 (more restrictive) limit compared to functions declared inline can
7263 be applied.
7264 The default value is 50.
7265 .IP "\fBlarge-function-insns\fR" 4
7266 .IX Item "large-function-insns"
7267 The limit specifying really large functions.  For functions larger than this
7268 limit after inlining, inlining is constrained by
7269 \&\fB\-\-param large-function-growth\fR.  This parameter is useful primarily
7270 to avoid extreme compilation time caused by non-linear algorithms used by the
7271 backend.
7272 The default value is 2700.
7273 .IP "\fBlarge-function-growth\fR" 4
7274 .IX Item "large-function-growth"
7275 Specifies maximal growth of large function caused by inlining in percents.
7276 The default value is 100 which limits large function growth to 2.0 times
7277 the original size.
7278 .IP "\fBlarge-unit-insns\fR" 4
7279 .IX Item "large-unit-insns"
7280 The limit specifying large translation unit.  Growth caused by inlining of
7281 units larger than this limit is limited by \fB\-\-param inline-unit-growth\fR.
7282 For small units this might be too tight (consider unit consisting of function A
7283 that is inline and B that just calls A three time.  If B is small relative to
7284 A, the growth of unit is 300\e% and yet such inlining is very sane.  For very
7285 large units consisting of small inlineable functions however the overall unit
7286 growth limit is needed to avoid exponential explosion of code size.  Thus for
7287 smaller units, the size is increased to \fB\-\-param large-unit-insns\fR
7288 before applying \fB\-\-param inline-unit-growth\fR.  The default is 10000
7289 .IP "\fBinline-unit-growth\fR" 4
7290 .IX Item "inline-unit-growth"
7291 Specifies maximal overall growth of the compilation unit caused by inlining.
7292 The default value is 30 which limits unit growth to 1.3 times the original
7293 size.
7294 .IP "\fBipcp-unit-growth\fR" 4
7295 .IX Item "ipcp-unit-growth"
7296 Specifies maximal overall growth of the compilation unit caused by
7297 interprocedural constant propagation.  The default value is 10 which limits
7298 unit growth to 1.1 times the original size.
7299 .IP "\fBlarge-stack-frame\fR" 4
7300 .IX Item "large-stack-frame"
7301 The limit specifying large stack frames.  While inlining the algorithm is trying
7302 to not grow past this limit too much.  Default value is 256 bytes.
7303 .IP "\fBlarge-stack-frame-growth\fR" 4
7304 .IX Item "large-stack-frame-growth"
7305 Specifies maximal growth of large stack frames caused by inlining in percents.
7306 The default value is 1000 which limits large stack frame growth to 11 times
7307 the original size.
7308 .IP "\fBmax-inline-insns-recursive\fR" 4
7309 .IX Item "max-inline-insns-recursive"
7310 .PD 0
7311 .IP "\fBmax-inline-insns-recursive-auto\fR" 4
7312 .IX Item "max-inline-insns-recursive-auto"
7314 Specifies maximum number of instructions out-of-line copy of self recursive inline
7315 function can grow into by performing recursive inlining.
7317 For functions declared inline \fB\-\-param max-inline-insns-recursive\fR is
7318 taken into account.  For function not declared inline, recursive inlining
7319 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
7320 enabled and \fB\-\-param max-inline-insns-recursive-auto\fR is used.  The
7321 default value is 450.
7322 .IP "\fBmax-inline-recursive-depth\fR" 4
7323 .IX Item "max-inline-recursive-depth"
7324 .PD 0
7325 .IP "\fBmax-inline-recursive-depth-auto\fR" 4
7326 .IX Item "max-inline-recursive-depth-auto"
7328 Specifies maximum recursion depth used by the recursive inlining.
7330 For functions declared inline \fB\-\-param max-inline-recursive-depth\fR is
7331 taken into account.  For function not declared inline, recursive inlining
7332 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
7333 enabled and \fB\-\-param max-inline-recursive-depth-auto\fR is used.  The
7334 default value is 8.
7335 .IP "\fBmin-inline-recursive-probability\fR" 4
7336 .IX Item "min-inline-recursive-probability"
7337 Recursive inlining is profitable only for function having deep recursion
7338 in average and can hurt for function having little recursion depth by
7339 increasing the prologue size or complexity of function body to other
7340 optimizers.
7342 When profile feedback is available (see \fB\-fprofile\-generate\fR) the actual
7343 recursion depth can be guessed from probability that function will recurse via
7344 given call expression.  This parameter limits inlining only to call expression
7345 whose probability exceeds given threshold (in percents).  The default value is
7347 .IP "\fBearly-inlining-insns\fR" 4
7348 .IX Item "early-inlining-insns"
7349 Specify growth that early inliner can make.  In effect it increases amount of
7350 inlining for code having large abstraction penalty.  The default value is 8.
7351 .IP "\fBmax-early-inliner-iterations\fR" 4
7352 .IX Item "max-early-inliner-iterations"
7353 .PD 0
7354 .IP "\fBmax-early-inliner-iterations\fR" 4
7355 .IX Item "max-early-inliner-iterations"
7357 Limit of iterations of early inliner.  This basically bounds number of nested
7358 indirect calls early inliner can resolve.  Deeper chains are still handled by
7359 late inlining.
7360 .IP "\fBmin-vect-loop-bound\fR" 4
7361 .IX Item "min-vect-loop-bound"
7362 The minimum number of iterations under which a loop will not get vectorized
7363 when \fB\-ftree\-vectorize\fR is used.  The number of iterations after
7364 vectorization needs to be greater than the value specified by this option
7365 to allow vectorization.  The default value is 0.
7366 .IP "\fBmax-unrolled-insns\fR" 4
7367 .IX Item "max-unrolled-insns"
7368 The maximum number of instructions that a loop should have if that loop
7369 is unrolled, and if the loop is unrolled, it determines how many times
7370 the loop code is unrolled.
7371 .IP "\fBmax-average-unrolled-insns\fR" 4
7372 .IX Item "max-average-unrolled-insns"
7373 The maximum number of instructions biased by probabilities of their execution
7374 that a loop should have if that loop is unrolled, and if the loop is unrolled,
7375 it determines how many times the loop code is unrolled.
7376 .IP "\fBmax-unroll-times\fR" 4
7377 .IX Item "max-unroll-times"
7378 The maximum number of unrollings of a single loop.
7379 .IP "\fBmax-peeled-insns\fR" 4
7380 .IX Item "max-peeled-insns"
7381 The maximum number of instructions that a loop should have if that loop
7382 is peeled, and if the loop is peeled, it determines how many times
7383 the loop code is peeled.
7384 .IP "\fBmax-peel-times\fR" 4
7385 .IX Item "max-peel-times"
7386 The maximum number of peelings of a single loop.
7387 .IP "\fBmax-completely-peeled-insns\fR" 4
7388 .IX Item "max-completely-peeled-insns"
7389 The maximum number of insns of a completely peeled loop.
7390 .IP "\fBmax-completely-peel-times\fR" 4
7391 .IX Item "max-completely-peel-times"
7392 The maximum number of iterations of a loop to be suitable for complete peeling.
7393 .IP "\fBmax-completely-peel-loop-nest-depth\fR" 4
7394 .IX Item "max-completely-peel-loop-nest-depth"
7395 The maximum depth of a loop nest suitable for complete peeling.
7396 .IP "\fBmax-unswitch-insns\fR" 4
7397 .IX Item "max-unswitch-insns"
7398 The maximum number of insns of an unswitched loop.
7399 .IP "\fBmax-unswitch-level\fR" 4
7400 .IX Item "max-unswitch-level"
7401 The maximum number of branches unswitched in a single loop.
7402 .IP "\fBlim-expensive\fR" 4
7403 .IX Item "lim-expensive"
7404 The minimum cost of an expensive expression in the loop invariant motion.
7405 .IP "\fBiv-consider-all-candidates-bound\fR" 4
7406 .IX Item "iv-consider-all-candidates-bound"
7407 Bound on number of candidates for induction variables below that
7408 all candidates are considered for each use in induction variable
7409 optimizations.  Only the most relevant candidates are considered
7410 if there are more candidates, to avoid quadratic time complexity.
7411 .IP "\fBiv-max-considered-uses\fR" 4
7412 .IX Item "iv-max-considered-uses"
7413 The induction variable optimizations give up on loops that contain more
7414 induction variable uses.
7415 .IP "\fBiv-always-prune-cand-set-bound\fR" 4
7416 .IX Item "iv-always-prune-cand-set-bound"
7417 If number of candidates in the set is smaller than this value,
7418 we always try to remove unnecessary ivs from the set during its
7419 optimization when a new iv is added to the set.
7420 .IP "\fBscev-max-expr-size\fR" 4
7421 .IX Item "scev-max-expr-size"
7422 Bound on size of expressions used in the scalar evolutions analyzer.
7423 Large expressions slow the analyzer.
7424 .IP "\fBomega-max-vars\fR" 4
7425 .IX Item "omega-max-vars"
7426 The maximum number of variables in an Omega constraint system.
7427 The default value is 128.
7428 .IP "\fBomega-max-geqs\fR" 4
7429 .IX Item "omega-max-geqs"
7430 The maximum number of inequalities in an Omega constraint system.
7431 The default value is 256.
7432 .IP "\fBomega-max-eqs\fR" 4
7433 .IX Item "omega-max-eqs"
7434 The maximum number of equalities in an Omega constraint system.
7435 The default value is 128.
7436 .IP "\fBomega-max-wild-cards\fR" 4
7437 .IX Item "omega-max-wild-cards"
7438 The maximum number of wildcard variables that the Omega solver will
7439 be able to insert.  The default value is 18.
7440 .IP "\fBomega-hash-table-size\fR" 4
7441 .IX Item "omega-hash-table-size"
7442 The size of the hash table in the Omega solver.  The default value is
7443 550.
7444 .IP "\fBomega-max-keys\fR" 4
7445 .IX Item "omega-max-keys"
7446 The maximal number of keys used by the Omega solver.  The default
7447 value is 500.
7448 .IP "\fBomega-eliminate-redundant-constraints\fR" 4
7449 .IX Item "omega-eliminate-redundant-constraints"
7450 When set to 1, use expensive methods to eliminate all redundant
7451 constraints.  The default value is 0.
7452 .IP "\fBvect-max-version-for-alignment-checks\fR" 4
7453 .IX Item "vect-max-version-for-alignment-checks"
7454 The maximum number of runtime checks that can be performed when
7455 doing loop versioning for alignment in the vectorizer.  See option
7456 ftree-vect-loop-version for more information.
7457 .IP "\fBvect-max-version-for-alias-checks\fR" 4
7458 .IX Item "vect-max-version-for-alias-checks"
7459 The maximum number of runtime checks that can be performed when
7460 doing loop versioning for alias in the vectorizer.  See option
7461 ftree-vect-loop-version for more information.
7462 .IP "\fBmax-iterations-to-track\fR" 4
7463 .IX Item "max-iterations-to-track"
7464 The maximum number of iterations of a loop the brute force algorithm
7465 for analysis of # of iterations of the loop tries to evaluate.
7466 .IP "\fBhot-bb-count-fraction\fR" 4
7467 .IX Item "hot-bb-count-fraction"
7468 Select fraction of the maximal count of repetitions of basic block in program
7469 given basic block needs to have to be considered hot.
7470 .IP "\fBhot-bb-frequency-fraction\fR" 4
7471 .IX Item "hot-bb-frequency-fraction"
7472 Select fraction of the maximal frequency of executions of basic block in
7473 function given basic block needs to have to be considered hot
7474 .IP "\fBmax-predicted-iterations\fR" 4
7475 .IX Item "max-predicted-iterations"
7476 The maximum number of loop iterations we predict statically.  This is useful
7477 in cases where function contain single loop with known bound and other loop
7478 with unknown.  We predict the known number of iterations correctly, while
7479 the unknown number of iterations average to roughly 10.  This means that the
7480 loop without bounds would appear artificially cold relative to the other one.
7481 .IP "\fBalign-threshold\fR" 4
7482 .IX Item "align-threshold"
7483 Select fraction of the maximal frequency of executions of basic block in
7484 function given basic block will get aligned.
7485 .IP "\fBalign-loop-iterations\fR" 4
7486 .IX Item "align-loop-iterations"
7487 A loop expected to iterate at lest the selected number of iterations will get
7488 aligned.
7489 .IP "\fBtracer-dynamic-coverage\fR" 4
7490 .IX Item "tracer-dynamic-coverage"
7491 .PD 0
7492 .IP "\fBtracer-dynamic-coverage-feedback\fR" 4
7493 .IX Item "tracer-dynamic-coverage-feedback"
7495 This value is used to limit superblock formation once the given percentage of
7496 executed instructions is covered.  This limits unnecessary code size
7497 expansion.
7499 The \fBtracer-dynamic-coverage-feedback\fR is used only when profile
7500 feedback is available.  The real profiles (as opposed to statically estimated
7501 ones) are much less balanced allowing the threshold to be larger value.
7502 .IP "\fBtracer-max-code-growth\fR" 4
7503 .IX Item "tracer-max-code-growth"
7504 Stop tail duplication once code growth has reached given percentage.  This is
7505 rather hokey argument, as most of the duplicates will be eliminated later in
7506 cross jumping, so it may be set to much higher values than is the desired code
7507 growth.
7508 .IP "\fBtracer-min-branch-ratio\fR" 4
7509 .IX Item "tracer-min-branch-ratio"
7510 Stop reverse growth when the reverse probability of best edge is less than this
7511 threshold (in percent).
7512 .IP "\fBtracer-min-branch-ratio\fR" 4
7513 .IX Item "tracer-min-branch-ratio"
7514 .PD 0
7515 .IP "\fBtracer-min-branch-ratio-feedback\fR" 4
7516 .IX Item "tracer-min-branch-ratio-feedback"
7518 Stop forward growth if the best edge do have probability lower than this
7519 threshold.
7521 Similarly to \fBtracer-dynamic-coverage\fR two values are present, one for
7522 compilation for profile feedback and one for compilation without.  The value
7523 for compilation with profile feedback needs to be more conservative (higher) in
7524 order to make tracer effective.
7525 .IP "\fBmax-cse-path-length\fR" 4
7526 .IX Item "max-cse-path-length"
7527 Maximum number of basic blocks on path that cse considers.  The default is 10.
7528 .IP "\fBmax-cse-insns\fR" 4
7529 .IX Item "max-cse-insns"
7530 The maximum instructions \s-1CSE\s0 process before flushing. The default is 1000.
7531 .IP "\fBggc-min-expand\fR" 4
7532 .IX Item "ggc-min-expand"
7533 \&\s-1GCC\s0 uses a garbage collector to manage its own memory allocation.  This
7534 parameter specifies the minimum percentage by which the garbage
7535 collector's heap should be allowed to expand between collections.
7536 Tuning this may improve compilation speed; it has no effect on code
7537 generation.
7539 The default is 30% + 70% * (\s-1RAM/1GB\s0) with an upper bound of 100% when
7540 \&\s-1RAM\s0 >= 1GB.  If \f(CW\*(C`getrlimit\*(C'\fR is available, the notion of \*(L"\s-1RAM\s0\*(R" is
7541 the smallest of actual \s-1RAM\s0 and \f(CW\*(C`RLIMIT_DATA\*(C'\fR or \f(CW\*(C`RLIMIT_AS\*(C'\fR.  If
7542 \&\s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a particular platform, the lower
7543 bound of 30% is used.  Setting this parameter and
7544 \&\fBggc-min-heapsize\fR to zero causes a full collection to occur at
7545 every opportunity.  This is extremely slow, but can be useful for
7546 debugging.
7547 .IP "\fBggc-min-heapsize\fR" 4
7548 .IX Item "ggc-min-heapsize"
7549 Minimum size of the garbage collector's heap before it begins bothering
7550 to collect garbage.  The first collection occurs after the heap expands
7551 by \fBggc-min-expand\fR% beyond \fBggc-min-heapsize\fR.  Again,
7552 tuning this may improve compilation speed, and has no effect on code
7553 generation.
7555 The default is the smaller of \s-1RAM/8\s0, \s-1RLIMIT_RSS\s0, or a limit which
7556 tries to ensure that \s-1RLIMIT_DATA\s0 or \s-1RLIMIT_AS\s0 are not exceeded, but
7557 with a lower bound of 4096 (four megabytes) and an upper bound of
7558 131072 (128 megabytes).  If \s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a
7559 particular platform, the lower bound is used.  Setting this parameter
7560 very large effectively disables garbage collection.  Setting this
7561 parameter and \fBggc-min-expand\fR to zero causes a full collection
7562 to occur at every opportunity.
7563 .IP "\fBmax-reload-search-insns\fR" 4
7564 .IX Item "max-reload-search-insns"
7565 The maximum number of instruction reload should look backward for equivalent
7566 register.  Increasing values mean more aggressive optimization, making the
7567 compile time increase with probably slightly better performance.  The default
7568 value is 100.
7569 .IP "\fBmax-cselib-memory-locations\fR" 4
7570 .IX Item "max-cselib-memory-locations"
7571 The maximum number of memory locations cselib should take into account.
7572 Increasing values mean more aggressive optimization, making the compile time
7573 increase with probably slightly better performance.  The default value is 500.
7574 .IP "\fBreorder-blocks-duplicate\fR" 4
7575 .IX Item "reorder-blocks-duplicate"
7576 .PD 0
7577 .IP "\fBreorder-blocks-duplicate-feedback\fR" 4
7578 .IX Item "reorder-blocks-duplicate-feedback"
7580 Used by basic block reordering pass to decide whether to use unconditional
7581 branch or duplicate the code on its destination.  Code is duplicated when its
7582 estimated size is smaller than this value multiplied by the estimated size of
7583 unconditional jump in the hot spots of the program.
7585 The \fBreorder-block-duplicate-feedback\fR is used only when profile
7586 feedback is available and may be set to higher values than
7587 \&\fBreorder-block-duplicate\fR since information about the hot spots is more
7588 accurate.
7589 .IP "\fBmax-sched-ready-insns\fR" 4
7590 .IX Item "max-sched-ready-insns"
7591 The maximum number of instructions ready to be issued the scheduler should
7592 consider at any given time during the first scheduling pass.  Increasing
7593 values mean more thorough searches, making the compilation time increase
7594 with probably little benefit.  The default value is 100.
7595 .IP "\fBmax-sched-region-blocks\fR" 4
7596 .IX Item "max-sched-region-blocks"
7597 The maximum number of blocks in a region to be considered for
7598 interblock scheduling.  The default value is 10.
7599 .IP "\fBmax-pipeline-region-blocks\fR" 4
7600 .IX Item "max-pipeline-region-blocks"
7601 The maximum number of blocks in a region to be considered for
7602 pipelining in the selective scheduler.  The default value is 15.
7603 .IP "\fBmax-sched-region-insns\fR" 4
7604 .IX Item "max-sched-region-insns"
7605 The maximum number of insns in a region to be considered for
7606 interblock scheduling.  The default value is 100.
7607 .IP "\fBmax-pipeline-region-insns\fR" 4
7608 .IX Item "max-pipeline-region-insns"
7609 The maximum number of insns in a region to be considered for
7610 pipelining in the selective scheduler.  The default value is 200.
7611 .IP "\fBmin-spec-prob\fR" 4
7612 .IX Item "min-spec-prob"
7613 The minimum probability (in percents) of reaching a source block
7614 for interblock speculative scheduling.  The default value is 40.
7615 .IP "\fBmax-sched-extend-regions-iters\fR" 4
7616 .IX Item "max-sched-extend-regions-iters"
7617 The maximum number of iterations through \s-1CFG\s0 to extend regions.
7618 0 \- disable region extension,
7619 N \- do at most N iterations.
7620 The default value is 0.
7621 .IP "\fBmax-sched-insn-conflict-delay\fR" 4
7622 .IX Item "max-sched-insn-conflict-delay"
7623 The maximum conflict delay for an insn to be considered for speculative motion.
7624 The default value is 3.
7625 .IP "\fBsched-spec-prob-cutoff\fR" 4
7626 .IX Item "sched-spec-prob-cutoff"
7627 The minimal probability of speculation success (in percents), so that
7628 speculative insn will be scheduled.
7629 The default value is 40.
7630 .IP "\fBsched-mem-true-dep-cost\fR" 4
7631 .IX Item "sched-mem-true-dep-cost"
7632 Minimal distance (in \s-1CPU\s0 cycles) between store and load targeting same
7633 memory locations.  The default value is 1.
7634 .IP "\fBselsched-max-lookahead\fR" 4
7635 .IX Item "selsched-max-lookahead"
7636 The maximum size of the lookahead window of selective scheduling.  It is a
7637 depth of search for available instructions.
7638 The default value is 50.
7639 .IP "\fBselsched-max-sched-times\fR" 4
7640 .IX Item "selsched-max-sched-times"
7641 The maximum number of times that an instruction will be scheduled during
7642 selective scheduling.  This is the limit on the number of iterations
7643 through which the instruction may be pipelined.  The default value is 2.
7644 .IP "\fBselsched-max-insns-to-rename\fR" 4
7645 .IX Item "selsched-max-insns-to-rename"
7646 The maximum number of best instructions in the ready list that are considered
7647 for renaming in the selective scheduler.  The default value is 2.
7648 .IP "\fBmax-last-value-rtl\fR" 4
7649 .IX Item "max-last-value-rtl"
7650 The maximum size measured as number of RTLs that can be recorded in an expression
7651 in combiner for a pseudo register as last known value of that register.  The default
7652 is 10000.
7653 .IP "\fBinteger-share-limit\fR" 4
7654 .IX Item "integer-share-limit"
7655 Small integer constants can use a shared data structure, reducing the
7656 compiler's memory usage and increasing its speed.  This sets the maximum
7657 value of a shared integer constant.  The default value is 256.
7658 .IP "\fBmin-virtual-mappings\fR" 4
7659 .IX Item "min-virtual-mappings"
7660 Specifies the minimum number of virtual mappings in the incremental
7661 \&\s-1SSA\s0 updater that should be registered to trigger the virtual mappings
7662 heuristic defined by virtual\-mappings\-ratio.  The default value is
7663 100.
7664 .IP "\fBvirtual-mappings-ratio\fR" 4
7665 .IX Item "virtual-mappings-ratio"
7666 If the number of virtual mappings is virtual-mappings-ratio bigger
7667 than the number of virtual symbols to be updated, then the incremental
7668 \&\s-1SSA\s0 updater switches to a full update for those symbols.  The default
7669 ratio is 3.
7670 .IP "\fBssp-buffer-size\fR" 4
7671 .IX Item "ssp-buffer-size"
7672 The minimum size of buffers (i.e. arrays) that will receive stack smashing
7673 protection when \fB\-fstack\-protection\fR is used.
7674 .IP "\fBmax-jump-thread-duplication-stmts\fR" 4
7675 .IX Item "max-jump-thread-duplication-stmts"
7676 Maximum number of statements allowed in a block that needs to be
7677 duplicated when threading jumps.
7678 .IP "\fBmax-fields-for-field-sensitive\fR" 4
7679 .IX Item "max-fields-for-field-sensitive"
7680 Maximum number of fields in a structure we will treat in
7681 a field sensitive manner during pointer analysis.  The default is zero
7682 for \-O0, and \-O1 and 100 for \-Os, \-O2, and \-O3.
7683 .IP "\fBprefetch-latency\fR" 4
7684 .IX Item "prefetch-latency"
7685 Estimate on average number of instructions that are executed before
7686 prefetch finishes.  The distance we prefetch ahead is proportional
7687 to this constant.  Increasing this number may also lead to less
7688 streams being prefetched (see \fBsimultaneous-prefetches\fR).
7689 .IP "\fBsimultaneous-prefetches\fR" 4
7690 .IX Item "simultaneous-prefetches"
7691 Maximum number of prefetches that can run at the same time.
7692 .IP "\fBl1\-cache\-line\-size\fR" 4
7693 .IX Item "l1-cache-line-size"
7694 The size of cache line in L1 cache, in bytes.
7695 .IP "\fBl1\-cache\-size\fR" 4
7696 .IX Item "l1-cache-size"
7697 The size of L1 cache, in kilobytes.
7698 .IP "\fBl2\-cache\-size\fR" 4
7699 .IX Item "l2-cache-size"
7700 The size of L2 cache, in kilobytes.
7701 .IP "\fBmin-insn-to-prefetch-ratio\fR" 4
7702 .IX Item "min-insn-to-prefetch-ratio"
7703 The minimum ratio between the number of instructions and the
7704 number of prefetches to enable prefetching in a loop with an
7705 unknown trip count.
7706 .IP "\fBprefetch-min-insn-to-mem-ratio\fR" 4
7707 .IX Item "prefetch-min-insn-to-mem-ratio"
7708 The minimum ratio between the number of instructions and the
7709 number of memory references to enable prefetching in a loop.
7710 .IP "\fBuse-canonical-types\fR" 4
7711 .IX Item "use-canonical-types"
7712 Whether the compiler should use the \*(L"canonical\*(R" type system.  By
7713 default, this should always be 1, which uses a more efficient internal
7714 mechanism for comparing types in \*(C+ and Objective\-\*(C+.  However, if
7715 bugs in the canonical type system are causing compilation failures,
7716 set this value to 0 to disable canonical types.
7717 .IP "\fBswitch-conversion-max-branch-ratio\fR" 4
7718 .IX Item "switch-conversion-max-branch-ratio"
7719 Switch initialization conversion will refuse to create arrays that are
7720 bigger than \fBswitch-conversion-max-branch-ratio\fR times the number of
7721 branches in the switch.
7722 .IP "\fBmax-partial-antic-length\fR" 4
7723 .IX Item "max-partial-antic-length"
7724 Maximum length of the partial antic set computed during the tree
7725 partial redundancy elimination optimization (\fB\-ftree\-pre\fR) when
7726 optimizing at \fB\-O3\fR and above.  For some sorts of source code
7727 the enhanced partial redundancy elimination optimization can run away,
7728 consuming all of the memory available on the host machine.  This
7729 parameter sets a limit on the length of the sets that are computed,
7730 which prevents the runaway behavior.  Setting a value of 0 for
7731 this parameter will allow an unlimited set length.
7732 .IP "\fBsccvn-max-scc-size\fR" 4
7733 .IX Item "sccvn-max-scc-size"
7734 Maximum size of a strongly connected component (\s-1SCC\s0) during \s-1SCCVN\s0
7735 processing.  If this limit is hit, \s-1SCCVN\s0 processing for the whole
7736 function will not be done and optimizations depending on it will
7737 be disabled.  The default maximum \s-1SCC\s0 size is 10000.
7738 .IP "\fBira-max-loops-num\fR" 4
7739 .IX Item "ira-max-loops-num"
7740 \&\s-1IRA\s0 uses a regional register allocation by default.  If a function
7741 contains loops more than number given by the parameter, only at most
7742 given number of the most frequently executed loops will form regions
7743 for the regional register allocation.  The default value of the
7744 parameter is 100.
7745 .IP "\fBira-max-conflict-table-size\fR" 4
7746 .IX Item "ira-max-conflict-table-size"
7747 Although \s-1IRA\s0 uses a sophisticated algorithm of compression conflict
7748 table, the table can be still big for huge functions.  If the conflict
7749 table for a function could be more than size in \s-1MB\s0 given by the
7750 parameter, the conflict table is not built and faster, simpler, and
7751 lower quality register allocation algorithm will be used.  The
7752 algorithm do not use pseudo-register conflicts.  The default value of
7753 the parameter is 2000.
7754 .IP "\fBira-loop-reserved-regs\fR" 4
7755 .IX Item "ira-loop-reserved-regs"
7756 \&\s-1IRA\s0 can be used to evaluate more accurate register pressure in loops
7757 for decision to move loop invariants (see \fB\-O3\fR).  The number
7758 of available registers reserved for some other purposes is described
7759 by this parameter.  The default value of the parameter is 2 which is
7760 minimal number of registers needed for execution of typical
7761 instruction.  This value is the best found from numerous experiments.
7762 .IP "\fBloop-invariant-max-bbs-in-loop\fR" 4
7763 .IX Item "loop-invariant-max-bbs-in-loop"
7764 Loop invariant motion can be very expensive, both in compile time and
7765 in amount of needed compile time memory, with very large loops.  Loops
7766 with more basic blocks than this parameter won't have loop invariant
7767 motion optimization performed on them.  The default value of the
7768 parameter is 1000 for \-O1 and 10000 for \-O2 and above.
7769 .IP "\fBmax-vartrack-size\fR" 4
7770 .IX Item "max-vartrack-size"
7771 Sets a maximum number of hash table slots to use during variable
7772 tracking dataflow analysis of any function.  If this limit is exceeded
7773 with variable tracking at assignments enabled, analysis for that
7774 function is retried without it, after removing all debug insns from
7775 the function.  If the limit is exceeded even without debug insns, var
7776 tracking analysis is completely disabled for the function.  Setting
7777 the parameter to zero makes it unlimited.
7778 .IP "\fBmin-nondebug-insn-uid\fR" 4
7779 .IX Item "min-nondebug-insn-uid"
7780 Use uids starting at this parameter for nondebug insns.  The range below
7781 the parameter is reserved exclusively for debug insns created by
7782 \&\fB\-fvar\-tracking\-assignments\fR, but debug insns may get
7783 (non\-overlapping) uids above it if the reserved range is exhausted.
7784 .IP "\fBipa-sra-ptr-growth-factor\fR" 4
7785 .IX Item "ipa-sra-ptr-growth-factor"
7786 IPA-SRA will replace a pointer to an aggregate with one or more new
7787 parameters only when their cumulative size is less or equal to
7788 \&\fBipa-sra-ptr-growth-factor\fR times the size of the original
7789 pointer parameter.
7790 .IP "\fBgraphite-max-nb-scop-params\fR" 4
7791 .IX Item "graphite-max-nb-scop-params"
7792 To avoid exponential effects in the Graphite loop transforms, the
7793 number of parameters in a Static Control Part (SCoP) is bounded.  The
7794 default value is 10 parameters.  A variable whose value is unknown at
7795 compile time and defined outside a SCoP is a parameter of the SCoP.
7796 .IP "\fBgraphite-max-bbs-per-function\fR" 4
7797 .IX Item "graphite-max-bbs-per-function"
7798 To avoid exponential effects in the detection of SCoPs, the size of
7799 the functions analyzed by Graphite is bounded.  The default value is
7800 100 basic blocks.
7801 .IP "\fBloop-block-tile-size\fR" 4
7802 .IX Item "loop-block-tile-size"
7803 Loop blocking or strip mining transforms, enabled with
7804 \&\fB\-floop\-block\fR or \fB\-floop\-strip\-mine\fR, strip mine each
7805 loop in the loop nest by a given number of iterations.  The strip
7806 length can be changed using the \fBloop-block-tile-size\fR
7807 parameter.  The default value is 51 iterations.
7809 .RS 4
7811 .Sh "Options Controlling the Preprocessor"
7812 .IX Subsection "Options Controlling the Preprocessor"
7813 These options control the C preprocessor, which is run on each C source
7814 file before actual compilation.
7816 If you use the \fB\-E\fR option, nothing is done except preprocessing.
7817 Some of these options make sense only together with \fB\-E\fR because
7818 they cause the preprocessor output to be unsuitable for actual
7819 compilation.
7820 .IP "\fB\-Wp,\fR\fIoption\fR" 4
7821 .IX Item "-Wp,option"
7822 You can use \fB\-Wp,\fR\fIoption\fR to bypass the compiler driver
7823 and pass \fIoption\fR directly through to the preprocessor.  If
7824 \&\fIoption\fR contains commas, it is split into multiple options at the
7825 commas.  However, many options are modified, translated or interpreted
7826 by the compiler driver before being passed to the preprocessor, and
7827 \&\fB\-Wp\fR forcibly bypasses this phase.  The preprocessor's direct
7828 interface is undocumented and subject to change, so whenever possible
7829 you should avoid using \fB\-Wp\fR and let the driver handle the
7830 options instead.
7831 .IP "\fB\-Xpreprocessor\fR \fIoption\fR" 4
7832 .IX Item "-Xpreprocessor option"
7833 Pass \fIoption\fR as an option to the preprocessor.  You can use this to
7834 supply system-specific preprocessor options which \s-1GCC\s0 does not know how to
7835 recognize.
7837 If you want to pass an option that takes an argument, you must use
7838 \&\fB\-Xpreprocessor\fR twice, once for the option and once for the argument.
7839 .IP "\fB\-D\fR \fIname\fR" 4
7840 .IX Item "-D name"
7841 Predefine \fIname\fR as a macro, with definition \f(CW1\fR.
7842 .IP "\fB\-D\fR \fIname\fR\fB=\fR\fIdefinition\fR" 4
7843 .IX Item "-D name=definition"
7844 The contents of \fIdefinition\fR are tokenized and processed as if
7845 they appeared during translation phase three in a \fB#define\fR
7846 directive.  In particular, the definition will be truncated by
7847 embedded newline characters.
7849 If you are invoking the preprocessor from a shell or shell-like
7850 program you may need to use the shell's quoting syntax to protect
7851 characters such as spaces that have a meaning in the shell syntax.
7853 If you wish to define a function-like macro on the command line, write
7854 its argument list with surrounding parentheses before the equals sign
7855 (if any).  Parentheses are meaningful to most shells, so you will need
7856 to quote the option.  With \fBsh\fR and \fBcsh\fR,
7857 \&\fB\-D'\fR\fIname\fR\fB(\fR\fIargs...\fR\fB)=\fR\fIdefinition\fR\fB'\fR works.
7859 \&\fB\-D\fR and \fB\-U\fR options are processed in the order they
7860 are given on the command line.  All \fB\-imacros\fR \fIfile\fR and
7861 \&\fB\-include\fR \fIfile\fR options are processed after all
7862 \&\fB\-D\fR and \fB\-U\fR options.
7863 .IP "\fB\-U\fR \fIname\fR" 4
7864 .IX Item "-U name"
7865 Cancel any previous definition of \fIname\fR, either built in or
7866 provided with a \fB\-D\fR option.
7867 .IP "\fB\-undef\fR" 4
7868 .IX Item "-undef"
7869 Do not predefine any system-specific or GCC-specific macros.  The
7870 standard predefined macros remain defined.
7871 .IP "\fB\-I\fR \fIdir\fR" 4
7872 .IX Item "-I dir"
7873 Add the directory \fIdir\fR to the list of directories to be searched
7874 for header files.
7875 Directories named by \fB\-I\fR are searched before the standard
7876 system include directories.  If the directory \fIdir\fR is a standard
7877 system include directory, the option is ignored to ensure that the
7878 default search order for system directories and the special treatment
7879 of system headers are not defeated
7881 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
7882 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
7883 .IP "\fB\-o\fR \fIfile\fR" 4
7884 .IX Item "-o file"
7885 Write output to \fIfile\fR.  This is the same as specifying \fIfile\fR
7886 as the second non-option argument to \fBcpp\fR.  \fBgcc\fR has a
7887 different interpretation of a second non-option argument, so you must
7888 use \fB\-o\fR to specify the output file.
7889 .IP "\fB\-Wall\fR" 4
7890 .IX Item "-Wall"
7891 Turns on all optional warnings which are desirable for normal code.
7892 At present this is \fB\-Wcomment\fR, \fB\-Wtrigraphs\fR,
7893 \&\fB\-Wmultichar\fR and a warning about integer promotion causing a
7894 change of sign in \f(CW\*(C`#if\*(C'\fR expressions.  Note that many of the
7895 preprocessor's warnings are on by default and have no options to
7896 control them.
7897 .IP "\fB\-Wcomment\fR" 4
7898 .IX Item "-Wcomment"
7899 .PD 0
7900 .IP "\fB\-Wcomments\fR" 4
7901 .IX Item "-Wcomments"
7903 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
7904 comment, or whenever a backslash-newline appears in a \fB//\fR comment.
7905 (Both forms have the same effect.)
7906 .IP "\fB\-Wtrigraphs\fR" 4
7907 .IX Item "-Wtrigraphs"
7908 Most trigraphs in comments cannot affect the meaning of the program.
7909 However, a trigraph that would form an escaped newline (\fB??/\fR at
7910 the end of a line) can, by changing where the comment begins or ends.
7911 Therefore, only trigraphs that would form escaped newlines produce
7912 warnings inside a comment.
7914 This option is implied by \fB\-Wall\fR.  If \fB\-Wall\fR is not
7915 given, this option is still enabled unless trigraphs are enabled.  To
7916 get trigraph conversion without warnings, but get the other
7917 \&\fB\-Wall\fR warnings, use \fB\-trigraphs \-Wall \-Wno\-trigraphs\fR.
7918 .IP "\fB\-Wtraditional\fR" 4
7919 .IX Item "-Wtraditional"
7920 Warn about certain constructs that behave differently in traditional and
7921 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
7922 equivalent, and problematic constructs which should be avoided.
7923 .IP "\fB\-Wundef\fR" 4
7924 .IX Item "-Wundef"
7925 Warn whenever an identifier which is not a macro is encountered in an
7926 \&\fB#if\fR directive, outside of \fBdefined\fR.  Such identifiers are
7927 replaced with zero.
7928 .IP "\fB\-Wunused\-macros\fR" 4
7929 .IX Item "-Wunused-macros"
7930 Warn about macros defined in the main file that are unused.  A macro
7931 is \fIused\fR if it is expanded or tested for existence at least once.
7932 The preprocessor will also warn if the macro has not been used at the
7933 time it is redefined or undefined.
7935 Built-in macros, macros defined on the command line, and macros
7936 defined in include files are not warned about.
7938 \&\fINote:\fR If a macro is actually used, but only used in skipped
7939 conditional blocks, then \s-1CPP\s0 will report it as unused.  To avoid the
7940 warning in such a case, you might improve the scope of the macro's
7941 definition by, for example, moving it into the first skipped block.
7942 Alternatively, you could provide a dummy use with something like:
7944 .Vb 2
7945 \&        #if defined the_macro_causing_the_warning
7946 \&        #endif
7948 .IP "\fB\-Wendif\-labels\fR" 4
7949 .IX Item "-Wendif-labels"
7950 Warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
7951 This usually happens in code of the form
7953 .Vb 5
7954 \&        #if FOO
7955 \&        ...
7956 \&        #else FOO
7957 \&        ...
7958 \&        #endif FOO
7961 The second and third \f(CW\*(C`FOO\*(C'\fR should be in comments, but often are not
7962 in older programs.  This warning is on by default.
7963 .IP "\fB\-Werror\fR" 4
7964 .IX Item "-Werror"
7965 Make all warnings into hard errors.  Source code which triggers warnings
7966 will be rejected.
7967 .IP "\fB\-Wsystem\-headers\fR" 4
7968 .IX Item "-Wsystem-headers"
7969 Issue warnings for code in system headers.  These are normally unhelpful
7970 in finding bugs in your own code, therefore suppressed.  If you are
7971 responsible for the system library, you may want to see them.
7972 .IP "\fB\-w\fR" 4
7973 .IX Item "-w"
7974 Suppress all warnings, including those which \s-1GNU\s0 \s-1CPP\s0 issues by default.
7975 .IP "\fB\-pedantic\fR" 4
7976 .IX Item "-pedantic"
7977 Issue all the mandatory diagnostics listed in the C standard.  Some of
7978 them are left out by default, since they trigger frequently on harmless
7979 code.
7980 .IP "\fB\-pedantic\-errors\fR" 4
7981 .IX Item "-pedantic-errors"
7982 Issue all the mandatory diagnostics, and make all mandatory diagnostics
7983 into errors.  This includes mandatory diagnostics that \s-1GCC\s0 issues
7984 without \fB\-pedantic\fR but treats as warnings.
7985 .IP "\fB\-M\fR" 4
7986 .IX Item "-M"
7987 Instead of outputting the result of preprocessing, output a rule
7988 suitable for \fBmake\fR describing the dependencies of the main
7989 source file.  The preprocessor outputs one \fBmake\fR rule containing
7990 the object file name for that source file, a colon, and the names of all
7991 the included files, including those coming from \fB\-include\fR or
7992 \&\fB\-imacros\fR command line options.
7994 Unless specified explicitly (with \fB\-MT\fR or \fB\-MQ\fR), the
7995 object file name consists of the name of the source file with any
7996 suffix replaced with object file suffix and with any leading directory
7997 parts removed.  If there are many included files then the rule is
7998 split into several lines using \fB\e\fR\-newline.  The rule has no
7999 commands.
8001 This option does not suppress the preprocessor's debug output, such as
8002 \&\fB\-dM\fR.  To avoid mixing such debug output with the dependency
8003 rules you should explicitly specify the dependency output file with
8004 \&\fB\-MF\fR, or use an environment variable like
8005 \&\fB\s-1DEPENDENCIES_OUTPUT\s0\fR.  Debug output
8006 will still be sent to the regular output stream as normal.
8008 Passing \fB\-M\fR to the driver implies \fB\-E\fR, and suppresses
8009 warnings with an implicit \fB\-w\fR.
8010 .IP "\fB\-MM\fR" 4
8011 .IX Item "-MM"
8012 Like \fB\-M\fR but do not mention header files that are found in
8013 system header directories, nor header files that are included,
8014 directly or indirectly, from such a header.
8016 This implies that the choice of angle brackets or double quotes in an
8017 \&\fB#include\fR directive does not in itself determine whether that
8018 header will appear in \fB\-MM\fR dependency output.  This is a
8019 slight change in semantics from \s-1GCC\s0 versions 3.0 and earlier.
8020 .IP "\fB\-MF\fR \fIfile\fR" 4
8021 .IX Item "-MF file"
8022 When used with \fB\-M\fR or \fB\-MM\fR, specifies a
8023 file to write the dependencies to.  If no \fB\-MF\fR switch is given
8024 the preprocessor sends the rules to the same place it would have sent
8025 preprocessed output.
8027 When used with the driver options \fB\-MD\fR or \fB\-MMD\fR,
8028 \&\fB\-MF\fR overrides the default dependency output file.
8029 .IP "\fB\-MG\fR" 4
8030 .IX Item "-MG"
8031 In conjunction with an option such as \fB\-M\fR requesting
8032 dependency generation, \fB\-MG\fR assumes missing header files are
8033 generated files and adds them to the dependency list without raising
8034 an error.  The dependency filename is taken directly from the
8035 \&\f(CW\*(C`#include\*(C'\fR directive without prepending any path.  \fB\-MG\fR
8036 also suppresses preprocessed output, as a missing header file renders
8037 this useless.
8039 This feature is used in automatic updating of makefiles.
8040 .IP "\fB\-MP\fR" 4
8041 .IX Item "-MP"
8042 This option instructs \s-1CPP\s0 to add a phony target for each dependency
8043 other than the main file, causing each to depend on nothing.  These
8044 dummy rules work around errors \fBmake\fR gives if you remove header
8045 files without updating the \fIMakefile\fR to match.
8047 This is typical output:
8049 .Vb 1
8050 \&        test.o: test.c test.h
8053 .Vb 1
8054 \&        test.h:
8056 .IP "\fB\-MT\fR \fItarget\fR" 4
8057 .IX Item "-MT target"
8058 Change the target of the rule emitted by dependency generation.  By
8059 default \s-1CPP\s0 takes the name of the main input file, deletes any
8060 directory components and any file suffix such as \fB.c\fR, and
8061 appends the platform's usual object suffix.  The result is the target.
8063 An \fB\-MT\fR option will set the target to be exactly the string you
8064 specify.  If you want multiple targets, you can specify them as a single
8065 argument to \fB\-MT\fR, or use multiple \fB\-MT\fR options.
8067 For example, \fB\-MT\ '$(objpfx)foo.o'\fR might give
8069 .Vb 1
8070 \&        $(objpfx)foo.o: foo.c
8072 .IP "\fB\-MQ\fR \fItarget\fR" 4
8073 .IX Item "-MQ target"
8074 Same as \fB\-MT\fR, but it quotes any characters which are special to
8075 Make.  \fB\-MQ\ '$(objpfx)foo.o'\fR gives
8077 .Vb 1
8078 \&        $$(objpfx)foo.o: foo.c
8081 The default target is automatically quoted, as if it were given with
8082 \&\fB\-MQ\fR.
8083 .IP "\fB\-MD\fR" 4
8084 .IX Item "-MD"
8085 \&\fB\-MD\fR is equivalent to \fB\-M \-MF\fR \fIfile\fR, except that
8086 \&\fB\-E\fR is not implied.  The driver determines \fIfile\fR based on
8087 whether an \fB\-o\fR option is given.  If it is, the driver uses its
8088 argument but with a suffix of \fI.d\fR, otherwise it takes the name
8089 of the input file, removes any directory components and suffix, and
8090 applies a \fI.d\fR suffix.
8092 If \fB\-MD\fR is used in conjunction with \fB\-E\fR, any
8093 \&\fB\-o\fR switch is understood to specify the dependency output file, but if used without \fB\-E\fR, each \fB\-o\fR
8094 is understood to specify a target object file.
8096 Since \fB\-E\fR is not implied, \fB\-MD\fR can be used to generate
8097 a dependency output file as a side-effect of the compilation process.
8098 .IP "\fB\-MMD\fR" 4
8099 .IX Item "-MMD"
8100 Like \fB\-MD\fR except mention only user header files, not system
8101 header files.
8102 .IP "\fB\-fpch\-deps\fR" 4
8103 .IX Item "-fpch-deps"
8104 When using precompiled headers, this flag
8105 will cause the dependency-output flags to also list the files from the
8106 precompiled header's dependencies.  If not specified only the
8107 precompiled header would be listed and not the files that were used to
8108 create it because those files are not consulted when a precompiled
8109 header is used.
8110 .IP "\fB\-fpch\-preprocess\fR" 4
8111 .IX Item "-fpch-preprocess"
8112 This option allows use of a precompiled header together with \fB\-E\fR.  It inserts a special \f(CW\*(C`#pragma\*(C'\fR,
8113 \&\f(CW\*(C`#pragma GCC pch_preprocess "<filename>"\*(C'\fR in the output to mark
8114 the place where the precompiled header was found, and its filename.  When
8115 \&\fB\-fpreprocessed\fR is in use, \s-1GCC\s0 recognizes this \f(CW\*(C`#pragma\*(C'\fR and
8116 loads the \s-1PCH\s0.
8118 This option is off by default, because the resulting preprocessed output
8119 is only really suitable as input to \s-1GCC\s0.  It is switched on by
8120 \&\fB\-save\-temps\fR.
8122 You should not write this \f(CW\*(C`#pragma\*(C'\fR in your own code, but it is
8123 safe to edit the filename if the \s-1PCH\s0 file is available in a different
8124 location.  The filename may be absolute or it may be relative to \s-1GCC\s0's
8125 current directory.
8126 .IP "\fB\-x c\fR" 4
8127 .IX Item "-x c"
8128 .PD 0
8129 .IP "\fB\-x c++\fR" 4
8130 .IX Item "-x c++"
8131 .IP "\fB\-x objective-c\fR" 4
8132 .IX Item "-x objective-c"
8133 .IP "\fB\-x assembler-with-cpp\fR" 4
8134 .IX Item "-x assembler-with-cpp"
8136 Specify the source language: C, \*(C+, Objective\-C, or assembly.  This has
8137 nothing to do with standards conformance or extensions; it merely
8138 selects which base syntax to expect.  If you give none of these options,
8139 cpp will deduce the language from the extension of the source file:
8140 \&\fB.c\fR, \fB.cc\fR, \fB.m\fR, or \fB.S\fR.  Some other common
8141 extensions for \*(C+ and assembly are also recognized.  If cpp does not
8142 recognize the extension, it will treat the file as C; this is the most
8143 generic mode.
8145 \&\fINote:\fR Previous versions of cpp accepted a \fB\-lang\fR option
8146 which selected both the language and the standards conformance level.
8147 This option has been removed, because it conflicts with the \fB\-l\fR
8148 option.
8149 .IP "\fB\-std=\fR\fIstandard\fR" 4
8150 .IX Item "-std=standard"
8151 .PD 0
8152 .IP "\fB\-ansi\fR" 4
8153 .IX Item "-ansi"
8155 Specify the standard to which the code should conform.  Currently \s-1CPP\s0
8156 knows about C and \*(C+ standards; others may be added in the future.
8158 \&\fIstandard\fR
8159 may be one of:
8160 .RS 4
8161 .ie n .IP """c90""" 4
8162 .el .IP "\f(CWc90\fR" 4
8163 .IX Item "c90"
8164 .PD 0
8165 .ie n .IP """c89""" 4
8166 .el .IP "\f(CWc89\fR" 4
8167 .IX Item "c89"
8168 .ie n .IP """iso9899:1990""" 4
8169 .el .IP "\f(CWiso9899:1990\fR" 4
8170 .IX Item "iso9899:1990"
8172 The \s-1ISO\s0 C standard from 1990.  \fBc90\fR is the customary shorthand for
8173 this version of the standard.
8175 The \fB\-ansi\fR option is equivalent to \fB\-std=c90\fR.
8176 .ie n .IP """iso9899:199409""" 4
8177 .el .IP "\f(CWiso9899:199409\fR" 4
8178 .IX Item "iso9899:199409"
8179 The 1990 C standard, as amended in 1994.
8180 .ie n .IP """iso9899:1999""" 4
8181 .el .IP "\f(CWiso9899:1999\fR" 4
8182 .IX Item "iso9899:1999"
8183 .PD 0
8184 .ie n .IP """c99""" 4
8185 .el .IP "\f(CWc99\fR" 4
8186 .IX Item "c99"
8187 .ie n .IP """iso9899:199x""" 4
8188 .el .IP "\f(CWiso9899:199x\fR" 4
8189 .IX Item "iso9899:199x"
8190 .ie n .IP """c9x""" 4
8191 .el .IP "\f(CWc9x\fR" 4
8192 .IX Item "c9x"
8194 The revised \s-1ISO\s0 C standard, published in December 1999.  Before
8195 publication, this was known as C9X.
8196 .ie n .IP """gnu90""" 4
8197 .el .IP "\f(CWgnu90\fR" 4
8198 .IX Item "gnu90"
8199 .PD 0
8200 .ie n .IP """gnu89""" 4
8201 .el .IP "\f(CWgnu89\fR" 4
8202 .IX Item "gnu89"
8204 The 1990 C standard plus \s-1GNU\s0 extensions.  This is the default.
8205 .ie n .IP """gnu99""" 4
8206 .el .IP "\f(CWgnu99\fR" 4
8207 .IX Item "gnu99"
8208 .PD 0
8209 .ie n .IP """gnu9x""" 4
8210 .el .IP "\f(CWgnu9x\fR" 4
8211 .IX Item "gnu9x"
8213 The 1999 C standard plus \s-1GNU\s0 extensions.
8214 .ie n .IP """c++98""" 4
8215 .el .IP "\f(CWc++98\fR" 4
8216 .IX Item "c++98"
8217 The 1998 \s-1ISO\s0 \*(C+ standard plus amendments.
8218 .ie n .IP """gnu++98""" 4
8219 .el .IP "\f(CWgnu++98\fR" 4
8220 .IX Item "gnu++98"
8221 The same as \fB\-std=c++98\fR plus \s-1GNU\s0 extensions.  This is the
8222 default for \*(C+ code.
8224 .RS 4
8226 .IP "\fB\-I\-\fR" 4
8227 .IX Item "-I-"
8228 Split the include path.  Any directories specified with \fB\-I\fR
8229 options before \fB\-I\-\fR are searched only for headers requested with
8230 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
8231 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR.  If additional directories are
8232 specified with \fB\-I\fR options after the \fB\-I\-\fR, those
8233 directories are searched for all \fB#include\fR directives.
8235 In addition, \fB\-I\-\fR inhibits the use of the directory of the current
8236 file directory as the first search directory for \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR.
8237 This option has been deprecated.
8238 .IP "\fB\-nostdinc\fR" 4
8239 .IX Item "-nostdinc"
8240 Do not search the standard system directories for header files.
8241 Only the directories you have specified with \fB\-I\fR options
8242 (and the directory of the current file, if appropriate) are searched.
8243 .IP "\fB\-nostdinc++\fR" 4
8244 .IX Item "-nostdinc++"
8245 Do not search for header files in the \*(C+\-specific standard directories,
8246 but do still search the other standard directories.  (This option is
8247 used when building the \*(C+ library.)
8248 .IP "\fB\-include\fR \fIfile\fR" 4
8249 .IX Item "-include file"
8250 Process \fIfile\fR as if \f(CW\*(C`#include "file"\*(C'\fR appeared as the first
8251 line of the primary source file.  However, the first directory searched
8252 for \fIfile\fR is the preprocessor's working directory \fIinstead of\fR
8253 the directory containing the main source file.  If not found there, it
8254 is searched for in the remainder of the \f(CW\*(C`#include "..."\*(C'\fR search
8255 chain as normal.
8257 If multiple \fB\-include\fR options are given, the files are included
8258 in the order they appear on the command line.
8259 .IP "\fB\-imacros\fR \fIfile\fR" 4
8260 .IX Item "-imacros file"
8261 Exactly like \fB\-include\fR, except that any output produced by
8262 scanning \fIfile\fR is thrown away.  Macros it defines remain defined.
8263 This allows you to acquire all the macros from a header without also
8264 processing its declarations.
8266 All files specified by \fB\-imacros\fR are processed before all files
8267 specified by \fB\-include\fR.
8268 .IP "\fB\-idirafter\fR \fIdir\fR" 4
8269 .IX Item "-idirafter dir"
8270 Search \fIdir\fR for header files, but do it \fIafter\fR all
8271 directories specified with \fB\-I\fR and the standard system directories
8272 have been exhausted.  \fIdir\fR is treated as a system include directory.
8273 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
8274 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
8275 .IP "\fB\-iprefix\fR \fIprefix\fR" 4
8276 .IX Item "-iprefix prefix"
8277 Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
8278 options.  If the prefix represents a directory, you should include the
8279 final \fB/\fR.
8280 .IP "\fB\-iwithprefix\fR \fIdir\fR" 4
8281 .IX Item "-iwithprefix dir"
8282 .PD 0
8283 .IP "\fB\-iwithprefixbefore\fR \fIdir\fR" 4
8284 .IX Item "-iwithprefixbefore dir"
8286 Append \fIdir\fR to the prefix specified previously with
8287 \&\fB\-iprefix\fR, and add the resulting directory to the include search
8288 path.  \fB\-iwithprefixbefore\fR puts it in the same place \fB\-I\fR
8289 would; \fB\-iwithprefix\fR puts it where \fB\-idirafter\fR would.
8290 .IP "\fB\-isysroot\fR \fIdir\fR" 4
8291 .IX Item "-isysroot dir"
8292 This option is like the \fB\-\-sysroot\fR option, but applies only to
8293 header files.  See the \fB\-\-sysroot\fR option for more information.
8294 .IP "\fB\-imultilib\fR \fIdir\fR" 4
8295 .IX Item "-imultilib dir"
8296 Use \fIdir\fR as a subdirectory of the directory containing
8297 target-specific \*(C+ headers.
8298 .IP "\fB\-isystem\fR \fIdir\fR" 4
8299 .IX Item "-isystem dir"
8300 Search \fIdir\fR for header files, after all directories specified by
8301 \&\fB\-I\fR but before the standard system directories.  Mark it
8302 as a system directory, so that it gets the same special treatment as
8303 is applied to the standard system directories.
8304 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
8305 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
8306 .IP "\fB\-iquote\fR \fIdir\fR" 4
8307 .IX Item "-iquote dir"
8308 Search \fIdir\fR only for header files requested with
8309 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
8310 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR, before all directories specified by
8311 \&\fB\-I\fR and before the standard system directories.
8312 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
8313 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
8314 .IP "\fB\-fdirectives\-only\fR" 4
8315 .IX Item "-fdirectives-only"
8316 When preprocessing, handle directives, but do not expand macros.
8318 The option's behavior depends on the \fB\-E\fR and \fB\-fpreprocessed\fR
8319 options.
8321 With \fB\-E\fR, preprocessing is limited to the handling of directives
8322 such as \f(CW\*(C`#define\*(C'\fR, \f(CW\*(C`#ifdef\*(C'\fR, and \f(CW\*(C`#error\*(C'\fR.  Other
8323 preprocessor operations, such as macro expansion and trigraph
8324 conversion are not performed.  In addition, the \fB\-dD\fR option is
8325 implicitly enabled.
8327 With \fB\-fpreprocessed\fR, predefinition of command line and most
8328 builtin macros is disabled.  Macros such as \f(CW\*(C`_\|_LINE_\|_\*(C'\fR, which are
8329 contextually dependent, are handled normally.  This enables compilation of
8330 files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
8332 With both \fB\-E\fR and \fB\-fpreprocessed\fR, the rules for
8333 \&\fB\-fpreprocessed\fR take precedence.  This enables full preprocessing of
8334 files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
8335 .IP "\fB\-fdollars\-in\-identifiers\fR" 4
8336 .IX Item "-fdollars-in-identifiers"
8337 Accept \fB$\fR in identifiers.
8338 .IP "\fB\-fextended\-identifiers\fR" 4
8339 .IX Item "-fextended-identifiers"
8340 Accept universal character names in identifiers.  This option is
8341 experimental; in a future version of \s-1GCC\s0, it will be enabled by
8342 default for C99 and \*(C+.
8343 .IP "\fB\-fpreprocessed\fR" 4
8344 .IX Item "-fpreprocessed"
8345 Indicate to the preprocessor that the input file has already been
8346 preprocessed.  This suppresses things like macro expansion, trigraph
8347 conversion, escaped newline splicing, and processing of most directives.
8348 The preprocessor still recognizes and removes comments, so that you can
8349 pass a file preprocessed with \fB\-C\fR to the compiler without
8350 problems.  In this mode the integrated preprocessor is little more than
8351 a tokenizer for the front ends.
8353 \&\fB\-fpreprocessed\fR is implicit if the input file has one of the
8354 extensions \fB.i\fR, \fB.ii\fR or \fB.mi\fR.  These are the
8355 extensions that \s-1GCC\s0 uses for preprocessed files created by
8356 \&\fB\-save\-temps\fR.
8357 .IP "\fB\-ftabstop=\fR\fIwidth\fR" 4
8358 .IX Item "-ftabstop=width"
8359 Set the distance between tab stops.  This helps the preprocessor report
8360 correct column numbers in warnings or errors, even if tabs appear on the
8361 line.  If the value is less than 1 or greater than 100, the option is
8362 ignored.  The default is 8.
8363 .IP "\fB\-fexec\-charset=\fR\fIcharset\fR" 4
8364 .IX Item "-fexec-charset=charset"
8365 Set the execution character set, used for string and character
8366 constants.  The default is \s-1UTF\-8\s0.  \fIcharset\fR can be any encoding
8367 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
8368 .IP "\fB\-fwide\-exec\-charset=\fR\fIcharset\fR" 4
8369 .IX Item "-fwide-exec-charset=charset"
8370 Set the wide execution character set, used for wide string and
8371 character constants.  The default is \s-1UTF\-32\s0 or \s-1UTF\-16\s0, whichever
8372 corresponds to the width of \f(CW\*(C`wchar_t\*(C'\fR.  As with
8373 \&\fB\-fexec\-charset\fR, \fIcharset\fR can be any encoding supported
8374 by the system's \f(CW\*(C`iconv\*(C'\fR library routine; however, you will have
8375 problems with encodings that do not fit exactly in \f(CW\*(C`wchar_t\*(C'\fR.
8376 .IP "\fB\-finput\-charset=\fR\fIcharset\fR" 4
8377 .IX Item "-finput-charset=charset"
8378 Set the input character set, used for translation from the character
8379 set of the input file to the source character set used by \s-1GCC\s0.  If the
8380 locale does not specify, or \s-1GCC\s0 cannot get this information from the
8381 locale, the default is \s-1UTF\-8\s0.  This can be overridden by either the locale
8382 or this command line option.  Currently the command line option takes
8383 precedence if there's a conflict.  \fIcharset\fR can be any encoding
8384 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
8385 .IP "\fB\-fworking\-directory\fR" 4
8386 .IX Item "-fworking-directory"
8387 Enable generation of linemarkers in the preprocessor output that will
8388 let the compiler know the current working directory at the time of
8389 preprocessing.  When this option is enabled, the preprocessor will
8390 emit, after the initial linemarker, a second linemarker with the
8391 current working directory followed by two slashes.  \s-1GCC\s0 will use this
8392 directory, when it's present in the preprocessed input, as the
8393 directory emitted as the current working directory in some debugging
8394 information formats.  This option is implicitly enabled if debugging
8395 information is enabled, but this can be inhibited with the negated
8396 form \fB\-fno\-working\-directory\fR.  If the \fB\-P\fR flag is
8397 present in the command line, this option has no effect, since no
8398 \&\f(CW\*(C`#line\*(C'\fR directives are emitted whatsoever.
8399 .IP "\fB\-fno\-show\-column\fR" 4
8400 .IX Item "-fno-show-column"
8401 Do not print column numbers in diagnostics.  This may be necessary if
8402 diagnostics are being scanned by a program that does not understand the
8403 column numbers, such as \fBdejagnu\fR.
8404 .IP "\fB\-A\fR \fIpredicate\fR\fB=\fR\fIanswer\fR" 4
8405 .IX Item "-A predicate=answer"
8406 Make an assertion with the predicate \fIpredicate\fR and answer
8407 \&\fIanswer\fR.  This form is preferred to the older form \fB\-A\fR
8408 \&\fIpredicate\fR\fB(\fR\fIanswer\fR\fB)\fR, which is still supported, because
8409 it does not use shell special characters.
8410 .IP "\fB\-A \-\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4
8411 .IX Item "-A -predicate=answer"
8412 Cancel an assertion with the predicate \fIpredicate\fR and answer
8413 \&\fIanswer\fR.
8414 .IP "\fB\-dCHARS\fR" 4
8415 .IX Item "-dCHARS"
8416 \&\fI\s-1CHARS\s0\fR is a sequence of one or more of the following characters,
8417 and must not be preceded by a space.  Other characters are interpreted
8418 by the compiler proper, or reserved for future versions of \s-1GCC\s0, and so
8419 are silently ignored.  If you specify characters whose behavior
8420 conflicts, the result is undefined.
8421 .RS 4
8422 .IP "\fBM\fR" 4
8423 .IX Item "M"
8424 Instead of the normal output, generate a list of \fB#define\fR
8425 directives for all the macros defined during the execution of the
8426 preprocessor, including predefined macros.  This gives you a way of
8427 finding out what is predefined in your version of the preprocessor.
8428 Assuming you have no file \fIfoo.h\fR, the command
8430 .Vb 1
8431 \&        touch foo.h; cpp -dM foo.h
8434 will show all the predefined macros.
8436 If you use \fB\-dM\fR without the \fB\-E\fR option, \fB\-dM\fR is
8437 interpreted as a synonym for \fB\-fdump\-rtl\-mach\fR.
8438 .IP "\fBD\fR" 4
8439 .IX Item "D"
8440 Like \fBM\fR except in two respects: it does \fInot\fR include the
8441 predefined macros, and it outputs \fIboth\fR the \fB#define\fR
8442 directives and the result of preprocessing.  Both kinds of output go to
8443 the standard output file.
8444 .IP "\fBN\fR" 4
8445 .IX Item "N"
8446 Like \fBD\fR, but emit only the macro names, not their expansions.
8447 .IP "\fBI\fR" 4
8448 .IX Item "I"
8449 Output \fB#include\fR directives in addition to the result of
8450 preprocessing.
8451 .IP "\fBU\fR" 4
8452 .IX Item "U"
8453 Like \fBD\fR except that only macros that are expanded, or whose
8454 definedness is tested in preprocessor directives, are output; the
8455 output is delayed until the use or test of the macro; and
8456 \&\fB#undef\fR directives are also output for macros tested but
8457 undefined at the time.
8459 .RS 4
8461 .IP "\fB\-P\fR" 4
8462 .IX Item "-P"
8463 Inhibit generation of linemarkers in the output from the preprocessor.
8464 This might be useful when running the preprocessor on something that is
8465 not C code, and will be sent to a program which might be confused by the
8466 linemarkers.
8467 .IP "\fB\-C\fR" 4
8468 .IX Item "-C"
8469 Do not discard comments.  All comments are passed through to the output
8470 file, except for comments in processed directives, which are deleted
8471 along with the directive.
8473 You should be prepared for side effects when using \fB\-C\fR; it
8474 causes the preprocessor to treat comments as tokens in their own right.
8475 For example, comments appearing at the start of what would be a
8476 directive line have the effect of turning that line into an ordinary
8477 source line, since the first token on the line is no longer a \fB#\fR.
8478 .IP "\fB\-CC\fR" 4
8479 .IX Item "-CC"
8480 Do not discard comments, including during macro expansion.  This is
8481 like \fB\-C\fR, except that comments contained within macros are
8482 also passed through to the output file where the macro is expanded.
8484 In addition to the side-effects of the \fB\-C\fR option, the
8485 \&\fB\-CC\fR option causes all \*(C+\-style comments inside a macro
8486 to be converted to C\-style comments.  This is to prevent later use
8487 of that macro from inadvertently commenting out the remainder of
8488 the source line.
8490 The \fB\-CC\fR option is generally used to support lint comments.
8491 .IP "\fB\-traditional\-cpp\fR" 4
8492 .IX Item "-traditional-cpp"
8493 Try to imitate the behavior of old-fashioned C preprocessors, as
8494 opposed to \s-1ISO\s0 C preprocessors.
8495 .IP "\fB\-trigraphs\fR" 4
8496 .IX Item "-trigraphs"
8497 Process trigraph sequences.
8498 These are three-character sequences, all starting with \fB??\fR, that
8499 are defined by \s-1ISO\s0 C to stand for single characters.  For example,
8500 \&\fB??/\fR stands for \fB\e\fR, so \fB'??/n'\fR is a character
8501 constant for a newline.  By default, \s-1GCC\s0 ignores trigraphs, but in
8502 standard-conforming modes it converts them.  See the \fB\-std\fR and
8503 \&\fB\-ansi\fR options.
8505 The nine trigraphs and their replacements are
8507 .Vb 2
8508 \&        Trigraph:       ??(  ??)  ??<  ??>  ??=  ??/  ??'  ??!  ??-
8509 \&        Replacement:      [    ]    {    }    #    \e    ^    |    ~
8511 .IP "\fB\-remap\fR" 4
8512 .IX Item "-remap"
8513 Enable special code to work around file systems which only permit very
8514 short file names, such as \s-1MS\-DOS\s0.
8515 .IP "\fB\-\-help\fR" 4
8516 .IX Item "--help"
8517 .PD 0
8518 .IP "\fB\-\-target\-help\fR" 4
8519 .IX Item "--target-help"
8521 Print text describing all the command line options instead of
8522 preprocessing anything.
8523 .IP "\fB\-v\fR" 4
8524 .IX Item "-v"
8525 Verbose mode.  Print out \s-1GNU\s0 \s-1CPP\s0's version number at the beginning of
8526 execution, and report the final form of the include path.
8527 .IP "\fB\-H\fR" 4
8528 .IX Item "-H"
8529 Print the name of each header file used, in addition to other normal
8530 activities.  Each name is indented to show how deep in the
8531 \&\fB#include\fR stack it is.  Precompiled header files are also
8532 printed, even if they are found to be invalid; an invalid precompiled
8533 header file is printed with \fB...x\fR and a valid one with \fB...!\fR .
8534 .IP "\fB\-version\fR" 4
8535 .IX Item "-version"
8536 .PD 0
8537 .IP "\fB\-\-version\fR" 4
8538 .IX Item "--version"
8540 Print out \s-1GNU\s0 \s-1CPP\s0's version number.  With one dash, proceed to
8541 preprocess as normal.  With two dashes, exit immediately.
8542 .Sh "Passing Options to the Assembler"
8543 .IX Subsection "Passing Options to the Assembler"
8544 You can pass options to the assembler.
8545 .IP "\fB\-Wa,\fR\fIoption\fR" 4
8546 .IX Item "-Wa,option"
8547 Pass \fIoption\fR as an option to the assembler.  If \fIoption\fR
8548 contains commas, it is split into multiple options at the commas.
8549 .IP "\fB\-Xassembler\fR \fIoption\fR" 4
8550 .IX Item "-Xassembler option"
8551 Pass \fIoption\fR as an option to the assembler.  You can use this to
8552 supply system-specific assembler options which \s-1GCC\s0 does not know how to
8553 recognize.
8555 If you want to pass an option that takes an argument, you must use
8556 \&\fB\-Xassembler\fR twice, once for the option and once for the argument.
8557 .Sh "Options for Linking"
8558 .IX Subsection "Options for Linking"
8559 These options come into play when the compiler links object files into
8560 an executable output file.  They are meaningless if the compiler is
8561 not doing a link step.
8562 .IP "\fIobject-file-name\fR" 4
8563 .IX Item "object-file-name"
8564 A file name that does not end in a special recognized suffix is
8565 considered to name an object file or library.  (Object files are
8566 distinguished from libraries by the linker according to the file
8567 contents.)  If linking is done, these object files are used as input
8568 to the linker.
8569 .IP "\fB\-c\fR" 4
8570 .IX Item "-c"
8571 .PD 0
8572 .IP "\fB\-S\fR" 4
8573 .IX Item "-S"
8574 .IP "\fB\-E\fR" 4
8575 .IX Item "-E"
8577 If any of these options is used, then the linker is not run, and
8578 object file names should not be used as arguments.  
8579 .IP "\fB\-l\fR\fIlibrary\fR" 4
8580 .IX Item "-llibrary"
8581 .PD 0
8582 .IP "\fB\-l\fR \fIlibrary\fR" 4
8583 .IX Item "-l library"
8585 Search the library named \fIlibrary\fR when linking.  (The second
8586 alternative with the library as a separate argument is only for
8587 \&\s-1POSIX\s0 compliance and is not recommended.)
8589 It makes a difference where in the command you write this option; the
8590 linker searches and processes libraries and object files in the order they
8591 are specified.  Thus, \fBfoo.o \-lz bar.o\fR searches library \fBz\fR
8592 after file \fIfoo.o\fR but before \fIbar.o\fR.  If \fIbar.o\fR refers
8593 to functions in \fBz\fR, those functions may not be loaded.
8595 The linker searches a standard list of directories for the library,
8596 which is actually a file named \fIlib\fIlibrary\fI.a\fR.  The linker
8597 then uses this file as if it had been specified precisely by name.
8599 The directories searched include several standard system directories
8600 plus any that you specify with \fB\-L\fR.
8602 Normally the files found this way are library files\-\-\-archive files
8603 whose members are object files.  The linker handles an archive file by
8604 scanning through it for members which define symbols that have so far
8605 been referenced but not defined.  But if the file that is found is an
8606 ordinary object file, it is linked in the usual fashion.  The only
8607 difference between using an \fB\-l\fR option and specifying a file name
8608 is that \fB\-l\fR surrounds \fIlibrary\fR with \fBlib\fR and \fB.a\fR
8609 and searches several directories.
8610 .IP "\fB\-lobjc\fR" 4
8611 .IX Item "-lobjc"
8612 You need this special case of the \fB\-l\fR option in order to
8613 link an Objective-C or Objective\-\*(C+ program.
8614 .IP "\fB\-nostartfiles\fR" 4
8615 .IX Item "-nostartfiles"
8616 Do not use the standard system startup files when linking.
8617 The standard system libraries are used normally, unless \fB\-nostdlib\fR
8618 or \fB\-nodefaultlibs\fR is used.
8619 .IP "\fB\-nodefaultlibs\fR" 4
8620 .IX Item "-nodefaultlibs"
8621 Do not use the standard system libraries when linking.
8622 Only the libraries you specify will be passed to the linker, options
8623 specifying linkage of the system libraries, such as \f(CW\*(C`\-static\-libgcc\*(C'\fR
8624 or \f(CW\*(C`\-shared\-libgcc\*(C'\fR, will be ignored.
8625 The standard startup files are used normally, unless \fB\-nostartfiles\fR
8626 is used.  The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR,
8627 \&\f(CW\*(C`memset\*(C'\fR, \f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
8628 These entries are usually resolved by entries in
8629 libc.  These entry points should be supplied through some other
8630 mechanism when this option is specified.
8631 .IP "\fB\-nostdlib\fR" 4
8632 .IX Item "-nostdlib"
8633 Do not use the standard system startup files or libraries when linking.
8634 No startup files and only the libraries you specify will be passed to
8635 the linker, options specifying linkage of the system libraries, such as
8636 \&\f(CW\*(C`\-static\-libgcc\*(C'\fR or \f(CW\*(C`\-shared\-libgcc\*(C'\fR, will be ignored.
8637 The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR, \f(CW\*(C`memset\*(C'\fR,
8638 \&\f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
8639 These entries are usually resolved by entries in
8640 libc.  These entry points should be supplied through some other
8641 mechanism when this option is specified.
8643 One of the standard libraries bypassed by \fB\-nostdlib\fR and
8644 \&\fB\-nodefaultlibs\fR is \fIlibgcc.a\fR, a library of internal subroutines
8645 that \s-1GCC\s0 uses to overcome shortcomings of particular machines, or special
8646 needs for some languages.
8648 In most cases, you need \fIlibgcc.a\fR even when you want to avoid
8649 other standard libraries.  In other words, when you specify \fB\-nostdlib\fR
8650 or \fB\-nodefaultlibs\fR you should usually specify \fB\-lgcc\fR as well.
8651 This ensures that you have no unresolved references to internal \s-1GCC\s0
8652 library subroutines.  (For example, \fB_\|_main\fR, used to ensure \*(C+
8653 constructors will be called.)
8654 .IP "\fB\-pie\fR" 4
8655 .IX Item "-pie"
8656 Produce a position independent executable on targets which support it.
8657 For predictable results, you must also specify the same set of options
8658 that were used to generate code (\fB\-fpie\fR, \fB\-fPIE\fR,
8659 or model suboptions) when you specify this option.
8660 .IP "\fB\-rdynamic\fR" 4
8661 .IX Item "-rdynamic"
8662 Pass the flag \fB\-export\-dynamic\fR to the \s-1ELF\s0 linker, on targets
8663 that support it. This instructs the linker to add all symbols, not
8664 only used ones, to the dynamic symbol table. This option is needed
8665 for some uses of \f(CW\*(C`dlopen\*(C'\fR or to allow obtaining backtraces
8666 from within a program.
8667 .IP "\fB\-s\fR" 4
8668 .IX Item "-s"
8669 Remove all symbol table and relocation information from the executable.
8670 .IP "\fB\-static\fR" 4
8671 .IX Item "-static"
8672 On systems that support dynamic linking, this prevents linking with the shared
8673 libraries.  On other systems, this option has no effect.
8674 .IP "\fB\-shared\fR" 4
8675 .IX Item "-shared"
8676 Produce a shared object which can then be linked with other objects to
8677 form an executable.  Not all systems support this option.  For predictable
8678 results, you must also specify the same set of options that were used to
8679 generate code (\fB\-fpic\fR, \fB\-fPIC\fR, or model suboptions)
8680 when you specify this option.[1]
8681 .IP "\fB\-shared\-libgcc\fR" 4
8682 .IX Item "-shared-libgcc"
8683 .PD 0
8684 .IP "\fB\-static\-libgcc\fR" 4
8685 .IX Item "-static-libgcc"
8687 On systems that provide \fIlibgcc\fR as a shared library, these options
8688 force the use of either the shared or static version respectively.
8689 If no shared version of \fIlibgcc\fR was built when the compiler was
8690 configured, these options have no effect.
8692 There are several situations in which an application should use the
8693 shared \fIlibgcc\fR instead of the static version.  The most common
8694 of these is when the application wishes to throw and catch exceptions
8695 across different shared libraries.  In that case, each of the libraries
8696 as well as the application itself should use the shared \fIlibgcc\fR.
8698 Therefore, the G++ and \s-1GCJ\s0 drivers automatically add
8699 \&\fB\-shared\-libgcc\fR whenever you build a shared library or a main
8700 executable, because \*(C+ and Java programs typically use exceptions, so
8701 this is the right thing to do.
8703 If, instead, you use the \s-1GCC\s0 driver to create shared libraries, you may
8704 find that they will not always be linked with the shared \fIlibgcc\fR.
8705 If \s-1GCC\s0 finds, at its configuration time, that you have a non-GNU linker
8706 or a \s-1GNU\s0 linker that does not support option \fB\-\-eh\-frame\-hdr\fR,
8707 it will link the shared version of \fIlibgcc\fR into shared libraries
8708 by default.  Otherwise, it will take advantage of the linker and optimize
8709 away the linking with the shared version of \fIlibgcc\fR, linking with
8710 the static version of libgcc by default.  This allows exceptions to
8711 propagate through such shared libraries, without incurring relocation
8712 costs at library load time.
8714 However, if a library or main executable is supposed to throw or catch
8715 exceptions, you must link it using the G++ or \s-1GCJ\s0 driver, as appropriate
8716 for the languages used in the program, or using the option
8717 \&\fB\-shared\-libgcc\fR, such that it is linked with the shared
8718 \&\fIlibgcc\fR.
8719 .IP "\fB\-static\-libstdc++\fR" 4
8720 .IX Item "-static-libstdc++"
8721 When the \fBg++\fR program is used to link a \*(C+ program, it will
8722 normally automatically link against \fBlibstdc++\fR.  If
8723 \&\fIlibstdc++\fR is available as a shared library, and the
8724 \&\fB\-static\fR option is not used, then this will link against the
8725 shared version of \fIlibstdc++\fR.  That is normally fine.  However, it
8726 is sometimes useful to freeze the version of \fIlibstdc++\fR used by
8727 the program without going all the way to a fully static link.  The
8728 \&\fB\-static\-libstdc++\fR option directs the \fBg++\fR driver to
8729 link \fIlibstdc++\fR statically, without necessarily linking other
8730 libraries statically.
8731 .IP "\fB\-symbolic\fR" 4
8732 .IX Item "-symbolic"
8733 Bind references to global symbols when building a shared object.  Warn
8734 about any unresolved references (unless overridden by the link editor
8735 option \fB\-Xlinker \-z \-Xlinker defs\fR).  Only a few systems support
8736 this option.
8737 .IP "\fB\-T\fR \fIscript\fR" 4
8738 .IX Item "-T script"
8739 Use \fIscript\fR as the linker script.  This option is supported by most
8740 systems using the \s-1GNU\s0 linker.  On some targets, such as bare-board
8741 targets without an operating system, the \fB\-T\fR option may be required
8742 when linking to avoid references to undefined symbols.
8743 .IP "\fB\-Xlinker\fR \fIoption\fR" 4
8744 .IX Item "-Xlinker option"
8745 Pass \fIoption\fR as an option to the linker.  You can use this to
8746 supply system-specific linker options which \s-1GCC\s0 does not know how to
8747 recognize.
8749 If you want to pass an option that takes a separate argument, you must use
8750 \&\fB\-Xlinker\fR twice, once for the option and once for the argument.
8751 For example, to pass \fB\-assert definitions\fR, you must write
8752 \&\fB\-Xlinker \-assert \-Xlinker definitions\fR.  It does not work to write
8753 \&\fB\-Xlinker \*(L"\-assert definitions\*(R"\fR, because this passes the entire
8754 string as a single argument, which is not what the linker expects.
8756 When using the \s-1GNU\s0 linker, it is usually more convenient to pass
8757 arguments to linker options using the \fIoption\fR\fB=\fR\fIvalue\fR
8758 syntax than as separate arguments.  For example, you can specify
8759 \&\fB\-Xlinker \-Map=output.map\fR rather than
8760 \&\fB\-Xlinker \-Map \-Xlinker output.map\fR.  Other linkers may not support
8761 this syntax for command-line options.
8762 .IP "\fB\-Wl,\fR\fIoption\fR" 4
8763 .IX Item "-Wl,option"
8764 Pass \fIoption\fR as an option to the linker.  If \fIoption\fR contains
8765 commas, it is split into multiple options at the commas.  You can use this
8766 syntax to pass an argument to the option.
8767 For example, \fB\-Wl,\-Map,output.map\fR passes \fB\-Map output.map\fR to the
8768 linker.  When using the \s-1GNU\s0 linker, you can also get the same effect with
8769 \&\fB\-Wl,\-Map=output.map\fR.
8770 .IP "\fB\-u\fR \fIsymbol\fR" 4
8771 .IX Item "-u symbol"
8772 Pretend the symbol \fIsymbol\fR is undefined, to force linking of
8773 library modules to define it.  You can use \fB\-u\fR multiple times with
8774 different symbols to force loading of additional library modules.
8775 .Sh "Options for Directory Search"
8776 .IX Subsection "Options for Directory Search"
8777 These options specify directories to search for header files, for
8778 libraries and for parts of the compiler:
8779 .IP "\fB\-I\fR\fIdir\fR" 4
8780 .IX Item "-Idir"
8781 Add the directory \fIdir\fR to the head of the list of directories to be
8782 searched for header files.  This can be used to override a system header
8783 file, substituting your own version, since these directories are
8784 searched before the system header file directories.  However, you should
8785 not use this option to add directories that contain vendor-supplied
8786 system header files (use \fB\-isystem\fR for that).  If you use more than
8787 one \fB\-I\fR option, the directories are scanned in left-to-right
8788 order; the standard system directories come after.
8790 If a standard system include directory, or a directory specified with
8791 \&\fB\-isystem\fR, is also specified with \fB\-I\fR, the \fB\-I\fR
8792 option will be ignored.  The directory will still be searched but as a
8793 system directory at its normal position in the system include chain.
8794 This is to ensure that \s-1GCC\s0's procedure to fix buggy system headers and
8795 the ordering for the include_next directive are not inadvertently changed.
8796 If you really need to change the search order for system directories,
8797 use the \fB\-nostdinc\fR and/or \fB\-isystem\fR options.
8798 .IP "\fB\-iquote\fR\fIdir\fR" 4
8799 .IX Item "-iquotedir"
8800 Add the directory \fIdir\fR to the head of the list of directories to
8801 be searched for header files only for the case of \fB#include
8802 "\fR\fIfile\fR\fB"\fR; they are not searched for \fB#include <\fR\fIfile\fR\fB>\fR,
8803 otherwise just like \fB\-I\fR.
8804 .IP "\fB\-L\fR\fIdir\fR" 4
8805 .IX Item "-Ldir"
8806 Add directory \fIdir\fR to the list of directories to be searched
8807 for \fB\-l\fR.
8808 .IP "\fB\-B\fR\fIprefix\fR" 4
8809 .IX Item "-Bprefix"
8810 This option specifies where to find the executables, libraries,
8811 include files, and data files of the compiler itself.
8813 The compiler driver program runs one or more of the subprograms
8814 \&\fIcpp\fR, \fIcc1\fR, \fIas\fR and \fIld\fR.  It tries
8815 \&\fIprefix\fR as a prefix for each program it tries to run, both with and
8816 without \fImachine\fR\fB/\fR\fIversion\fR\fB/\fR.
8818 For each subprogram to be run, the compiler driver first tries the
8819 \&\fB\-B\fR prefix, if any.  If that name is not found, or if \fB\-B\fR
8820 was not specified, the driver tries two standard prefixes, which are
8821 \&\fI/usr/lib/gcc/\fR and \fI/usr/local/lib/gcc/\fR.  If neither of
8822 those results in a file name that is found, the unmodified program
8823 name is searched for using the directories specified in your
8824 \&\fB\s-1PATH\s0\fR environment variable.
8826 The compiler will check to see if the path provided by the \fB\-B\fR
8827 refers to a directory, and if necessary it will add a directory
8828 separator character at the end of the path.
8830 \&\fB\-B\fR prefixes that effectively specify directory names also apply
8831 to libraries in the linker, because the compiler translates these
8832 options into \fB\-L\fR options for the linker.  They also apply to
8833 includes files in the preprocessor, because the compiler translates these
8834 options into \fB\-isystem\fR options for the preprocessor.  In this case,
8835 the compiler appends \fBinclude\fR to the prefix.
8837 The run-time support file \fIlibgcc.a\fR can also be searched for using
8838 the \fB\-B\fR prefix, if needed.  If it is not found there, the two
8839 standard prefixes above are tried, and that is all.  The file is left
8840 out of the link if it is not found by those means.
8842 Another way to specify a prefix much like the \fB\-B\fR prefix is to use
8843 the environment variable \fB\s-1GCC_EXEC_PREFIX\s0\fR.  
8845 As a special kludge, if the path provided by \fB\-B\fR is
8846 \&\fI[dir/]stage\fIN\fI/\fR, where \fIN\fR is a number in the range 0 to
8847 9, then it will be replaced by \fI[dir/]include\fR.  This is to help
8848 with boot-strapping the compiler.
8849 .IP "\fB\-specs=\fR\fIfile\fR" 4
8850 .IX Item "-specs=file"
8851 Process \fIfile\fR after the compiler reads in the standard \fIspecs\fR
8852 file, in order to override the defaults that the \fIgcc\fR driver
8853 program uses when determining what switches to pass to \fIcc1\fR,
8854 \&\fIcc1plus\fR, \fIas\fR, \fIld\fR, etc.  More than one
8855 \&\fB\-specs=\fR\fIfile\fR can be specified on the command line, and they
8856 are processed in order, from left to right.
8857 .IP "\fB\-\-sysroot=\fR\fIdir\fR" 4
8858 .IX Item "--sysroot=dir"
8859 Use \fIdir\fR as the logical root directory for headers and libraries.
8860 For example, if the compiler would normally search for headers in
8861 \&\fI/usr/include\fR and libraries in \fI/usr/lib\fR, it will instead
8862 search \fI\fIdir\fI/usr/include\fR and \fI\fIdir\fI/usr/lib\fR.
8864 If you use both this option and the \fB\-isysroot\fR option, then
8865 the \fB\-\-sysroot\fR option will apply to libraries, but the
8866 \&\fB\-isysroot\fR option will apply to header files.
8868 The \s-1GNU\s0 linker (beginning with version 2.16) has the necessary support
8869 for this option.  If your linker does not support this option, the
8870 header file aspect of \fB\-\-sysroot\fR will still work, but the
8871 library aspect will not.
8872 .IP "\fB\-I\-\fR" 4
8873 .IX Item "-I-"
8874 This option has been deprecated.  Please use \fB\-iquote\fR instead for
8875 \&\fB\-I\fR directories before the \fB\-I\-\fR and remove the \fB\-I\-\fR.
8876 Any directories you specify with \fB\-I\fR options before the \fB\-I\-\fR
8877 option are searched only for the case of \fB#include "\fR\fIfile\fR\fB"\fR;
8878 they are not searched for \fB#include <\fR\fIfile\fR\fB>\fR.
8880 If additional directories are specified with \fB\-I\fR options after
8881 the \fB\-I\-\fR, these directories are searched for all \fB#include\fR
8882 directives.  (Ordinarily \fIall\fR \fB\-I\fR directories are used
8883 this way.)
8885 In addition, the \fB\-I\-\fR option inhibits the use of the current
8886 directory (where the current input file came from) as the first search
8887 directory for \fB#include "\fR\fIfile\fR\fB"\fR.  There is no way to
8888 override this effect of \fB\-I\-\fR.  With \fB\-I.\fR you can specify
8889 searching the directory which was current when the compiler was
8890 invoked.  That is not exactly the same as what the preprocessor does
8891 by default, but it is often satisfactory.
8893 \&\fB\-I\-\fR does not inhibit the use of the standard system directories
8894 for header files.  Thus, \fB\-I\-\fR and \fB\-nostdinc\fR are
8895 independent.
8896 .Sh "Specifying Target Machine and Compiler Version"
8897 .IX Subsection "Specifying Target Machine and Compiler Version"
8898 The usual way to run \s-1GCC\s0 is to run the executable called \fIgcc\fR, or
8899 \&\fI<machine>\-gcc\fR when cross\-compiling, or
8900 \&\fI<machine>\-gcc\-<version>\fR to run a version other than the one that
8901 was installed last.  Sometimes this is inconvenient, so \s-1GCC\s0 provides
8902 options that will switch to another cross-compiler or version.
8903 .IP "\fB\-b\fR \fImachine\fR" 4
8904 .IX Item "-b machine"
8905 The argument \fImachine\fR specifies the target machine for compilation.
8907 The value to use for \fImachine\fR is the same as was specified as the
8908 machine type when configuring \s-1GCC\s0 as a cross\-compiler.  For
8909 example, if a cross-compiler was configured with \fBconfigure
8910 arm-elf\fR, meaning to compile for an arm processor with elf binaries,
8911 then you would specify \fB\-b arm-elf\fR to run that cross compiler.
8912 Because there are other options beginning with \fB\-b\fR, the
8913 configuration must contain a hyphen, or \fB\-b\fR alone should be one
8914 argument followed by the configuration in the next argument.
8915 .IP "\fB\-V\fR \fIversion\fR" 4
8916 .IX Item "-V version"
8917 The argument \fIversion\fR specifies which version of \s-1GCC\s0 to run.
8918 This is useful when multiple versions are installed.  For example,
8919 \&\fIversion\fR might be \fB4.0\fR, meaning to run \s-1GCC\s0 version 4.0.
8921 The \fB\-V\fR and \fB\-b\fR options work by running the
8922 \&\fI<machine>\-gcc\-<version>\fR executable, so there's no real reason to
8923 use them if you can just run that directly.
8924 .Sh "Hardware Models and Configurations"
8925 .IX Subsection "Hardware Models and Configurations"
8926 Earlier we discussed the standard option \fB\-b\fR which chooses among
8927 different installed compilers for completely different target
8928 machines, such as \s-1VAX\s0 vs. 68000 vs. 80386.
8930 In addition, each of these target machine types can have its own
8931 special options, starting with \fB\-m\fR, to choose among various
8932 hardware models or configurations\-\-\-for example, 68010 vs 68020,
8933 floating coprocessor or none.  A single installed version of the
8934 compiler can compile for any model or configuration, according to the
8935 options specified.
8937 Some configurations of the compiler also support additional special
8938 options, usually for compatibility with other compilers on the same
8939 platform.
8941 \fI\s-1ARC\s0 Options\fR
8942 .IX Subsection "ARC Options"
8944 These options are defined for \s-1ARC\s0 implementations:
8945 .IP "\fB\-EL\fR" 4
8946 .IX Item "-EL"
8947 Compile code for little endian mode.  This is the default.
8948 .IP "\fB\-EB\fR" 4
8949 .IX Item "-EB"
8950 Compile code for big endian mode.
8951 .IP "\fB\-mmangle\-cpu\fR" 4
8952 .IX Item "-mmangle-cpu"
8953 Prepend the name of the \s-1CPU\s0 to all public symbol names.
8954 In multiple-processor systems, there are many \s-1ARC\s0 variants with different
8955 instruction and register set characteristics.  This flag prevents code
8956 compiled for one \s-1CPU\s0 to be linked with code compiled for another.
8957 No facility exists for handling variants that are \*(L"almost identical\*(R".
8958 This is an all or nothing option.
8959 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
8960 .IX Item "-mcpu=cpu"
8961 Compile code for \s-1ARC\s0 variant \fIcpu\fR.
8962 Which variants are supported depend on the configuration.
8963 All variants support \fB\-mcpu=base\fR, this is the default.
8964 .IP "\fB\-mtext=\fR\fItext-section\fR" 4
8965 .IX Item "-mtext=text-section"
8966 .PD 0
8967 .IP "\fB\-mdata=\fR\fIdata-section\fR" 4
8968 .IX Item "-mdata=data-section"
8969 .IP "\fB\-mrodata=\fR\fIreadonly-data-section\fR" 4
8970 .IX Item "-mrodata=readonly-data-section"
8972 Put functions, data, and readonly data in \fItext-section\fR,
8973 \&\fIdata-section\fR, and \fIreadonly-data-section\fR respectively
8974 by default.  This can be overridden with the \f(CW\*(C`section\*(C'\fR attribute.
8975 .IP "\fB\-mfix\-cortex\-m3\-ldrd\fR" 4
8976 .IX Item "-mfix-cortex-m3-ldrd"
8977 Some Cortex\-M3 cores can cause data corruption when \f(CW\*(C`ldrd\*(C'\fR instructions
8978 with overlapping destination and base registers are used.  This option avoids
8979 generating these instructions.  This option is enabled by default when
8980 \&\fB\-mcpu=cortex\-m3\fR is specified.
8982 \fI\s-1ARM\s0 Options\fR
8983 .IX Subsection "ARM Options"
8985 These \fB\-m\fR options are defined for Advanced \s-1RISC\s0 Machines (\s-1ARM\s0)
8986 architectures:
8987 .IP "\fB\-mabi=\fR\fIname\fR" 4
8988 .IX Item "-mabi=name"
8989 Generate code for the specified \s-1ABI\s0.  Permissible values are: \fBapcs-gnu\fR,
8990 \&\fBatpcs\fR, \fBaapcs\fR, \fBaapcs-linux\fR and \fBiwmmxt\fR.
8991 .IP "\fB\-mapcs\-frame\fR" 4
8992 .IX Item "-mapcs-frame"
8993 Generate a stack frame that is compliant with the \s-1ARM\s0 Procedure Call
8994 Standard for all functions, even if this is not strictly necessary for
8995 correct execution of the code.  Specifying \fB\-fomit\-frame\-pointer\fR
8996 with this option will cause the stack frames not to be generated for
8997 leaf functions.  The default is \fB\-mno\-apcs\-frame\fR.
8998 .IP "\fB\-mapcs\fR" 4
8999 .IX Item "-mapcs"
9000 This is a synonym for \fB\-mapcs\-frame\fR.
9001 .IP "\fB\-mthumb\-interwork\fR" 4
9002 .IX Item "-mthumb-interwork"
9003 Generate code which supports calling between the \s-1ARM\s0 and Thumb
9004 instruction sets.  Without this option the two instruction sets cannot
9005 be reliably used inside one program.  The default is
9006 \&\fB\-mno\-thumb\-interwork\fR, since slightly larger code is generated
9007 when \fB\-mthumb\-interwork\fR is specified.
9008 .IP "\fB\-mno\-sched\-prolog\fR" 4
9009 .IX Item "-mno-sched-prolog"
9010 Prevent the reordering of instructions in the function prolog, or the
9011 merging of those instruction with the instructions in the function's
9012 body.  This means that all functions will start with a recognizable set
9013 of instructions (or in fact one of a choice from a small set of
9014 different function prologues), and this information can be used to
9015 locate the start if functions inside an executable piece of code.  The
9016 default is \fB\-msched\-prolog\fR.
9017 .IP "\fB\-mfloat\-abi=\fR\fIname\fR" 4
9018 .IX Item "-mfloat-abi=name"
9019 Specifies which floating-point \s-1ABI\s0 to use.  Permissible values
9020 are: \fBsoft\fR, \fBsoftfp\fR and \fBhard\fR.
9022 Specifying \fBsoft\fR causes \s-1GCC\s0 to generate output containing
9023 library calls for floating-point operations.
9024 \&\fBsoftfp\fR allows the generation of code using hardware floating-point
9025 instructions, but still uses the soft-float calling conventions.
9026 \&\fBhard\fR allows generation of floating-point instructions
9027 and uses FPU-specific calling conventions.
9029 The default depends on the specific target configuration.  Note that
9030 the hard-float and soft-float ABIs are not link\-compatible; you must
9031 compile your entire program with the same \s-1ABI\s0, and link with a
9032 compatible set of libraries.
9033 .IP "\fB\-mhard\-float\fR" 4
9034 .IX Item "-mhard-float"
9035 Equivalent to \fB\-mfloat\-abi=hard\fR.
9036 .IP "\fB\-msoft\-float\fR" 4
9037 .IX Item "-msoft-float"
9038 Equivalent to \fB\-mfloat\-abi=soft\fR.
9039 .IP "\fB\-mlittle\-endian\fR" 4
9040 .IX Item "-mlittle-endian"
9041 Generate code for a processor running in little-endian mode.  This is
9042 the default for all standard configurations.
9043 .IP "\fB\-mbig\-endian\fR" 4
9044 .IX Item "-mbig-endian"
9045 Generate code for a processor running in big-endian mode; the default is
9046 to compile code for a little-endian processor.
9047 .IP "\fB\-mwords\-little\-endian\fR" 4
9048 .IX Item "-mwords-little-endian"
9049 This option only applies when generating code for big-endian processors.
9050 Generate code for a little-endian word order but a big-endian byte
9051 order.  That is, a byte order of the form \fB32107654\fR.  Note: this
9052 option should only be used if you require compatibility with code for
9053 big-endian \s-1ARM\s0 processors generated by versions of the compiler prior to
9054 2.8.
9055 .IP "\fB\-mcpu=\fR\fIname\fR" 4
9056 .IX Item "-mcpu=name"
9057 This specifies the name of the target \s-1ARM\s0 processor.  \s-1GCC\s0 uses this name
9058 to determine what kind of instructions it can emit when generating
9059 assembly code.  Permissible names are: \fBarm2\fR, \fBarm250\fR,
9060 \&\fBarm3\fR, \fBarm6\fR, \fBarm60\fR, \fBarm600\fR, \fBarm610\fR,
9061 \&\fBarm620\fR, \fBarm7\fR, \fBarm7m\fR, \fBarm7d\fR, \fBarm7dm\fR,
9062 \&\fBarm7di\fR, \fBarm7dmi\fR, \fBarm70\fR, \fBarm700\fR,
9063 \&\fBarm700i\fR, \fBarm710\fR, \fBarm710c\fR, \fBarm7100\fR,
9064 \&\fBarm720\fR,
9065 \&\fBarm7500\fR, \fBarm7500fe\fR, \fBarm7tdmi\fR, \fBarm7tdmi\-s\fR,
9066 \&\fBarm710t\fR, \fBarm720t\fR, \fBarm740t\fR,
9067 \&\fBstrongarm\fR, \fBstrongarm110\fR, \fBstrongarm1100\fR,
9068 \&\fBstrongarm1110\fR,
9069 \&\fBarm8\fR, \fBarm810\fR, \fBarm9\fR, \fBarm9e\fR, \fBarm920\fR,
9070 \&\fBarm920t\fR, \fBarm922t\fR, \fBarm946e\-s\fR, \fBarm966e\-s\fR,
9071 \&\fBarm968e\-s\fR, \fBarm926ej\-s\fR, \fBarm940t\fR, \fBarm9tdmi\fR,
9072 \&\fBarm10tdmi\fR, \fBarm1020t\fR, \fBarm1026ej\-s\fR,
9073 \&\fBarm10e\fR, \fBarm1020e\fR, \fBarm1022e\fR,
9074 \&\fBarm1136j\-s\fR, \fBarm1136jf\-s\fR, \fBmpcore\fR, \fBmpcorenovfp\fR,
9075 \&\fBarm1156t2\-s\fR, \fBarm1156t2f\-s\fR, \fBarm1176jz\-s\fR, \fBarm1176jzf\-s\fR,
9076 \&\fBcortex\-a5\fR, \fBcortex\-a8\fR, \fBcortex\-a9\fR,
9077 \&\fBcortex\-r4\fR, \fBcortex\-r4f\fR, \fBcortex\-m3\fR,
9078 \&\fBcortex\-m1\fR,
9079 \&\fBcortex\-m0\fR,
9080 \&\fBxscale\fR, \fBiwmmxt\fR, \fBiwmmxt2\fR, \fBep9312\fR.
9081 .IP "\fB\-mtune=\fR\fIname\fR" 4
9082 .IX Item "-mtune=name"
9083 This option is very similar to the \fB\-mcpu=\fR option, except that
9084 instead of specifying the actual target processor type, and hence
9085 restricting which instructions can be used, it specifies that \s-1GCC\s0 should
9086 tune the performance of the code as if the target were of the type
9087 specified in this option, but still choosing the instructions that it
9088 will generate based on the \s-1CPU\s0 specified by a \fB\-mcpu=\fR option.
9089 For some \s-1ARM\s0 implementations better performance can be obtained by using
9090 this option.
9091 .IP "\fB\-march=\fR\fIname\fR" 4
9092 .IX Item "-march=name"
9093 This specifies the name of the target \s-1ARM\s0 architecture.  \s-1GCC\s0 uses this
9094 name to determine what kind of instructions it can emit when generating
9095 assembly code.  This option can be used in conjunction with or instead
9096 of the \fB\-mcpu=\fR option.  Permissible names are: \fBarmv2\fR,
9097 \&\fBarmv2a\fR, \fBarmv3\fR, \fBarmv3m\fR, \fBarmv4\fR, \fBarmv4t\fR,
9098 \&\fBarmv5\fR, \fBarmv5t\fR, \fBarmv5e\fR, \fBarmv5te\fR,
9099 \&\fBarmv6\fR, \fBarmv6j\fR,
9100 \&\fBarmv6t2\fR, \fBarmv6z\fR, \fBarmv6zk\fR, \fBarmv6\-m\fR,
9101 \&\fBarmv7\fR, \fBarmv7\-a\fR, \fBarmv7\-r\fR, \fBarmv7\-m\fR,
9102 \&\fBiwmmxt\fR, \fBiwmmxt2\fR, \fBep9312\fR.
9103 .IP "\fB\-mfpu=\fR\fIname\fR" 4
9104 .IX Item "-mfpu=name"
9105 .PD 0
9106 .IP "\fB\-mfpe=\fR\fInumber\fR" 4
9107 .IX Item "-mfpe=number"
9108 .IP "\fB\-mfp=\fR\fInumber\fR" 4
9109 .IX Item "-mfp=number"
9111 This specifies what floating point hardware (or hardware emulation) is
9112 available on the target.  Permissible names are: \fBfpa\fR, \fBfpe2\fR,
9113 \&\fBfpe3\fR, \fBmaverick\fR, \fBvfp\fR, \fBvfpv3\fR, \fBvfpv3\-fp16\fR,
9114 \&\fBvfpv3\-d16\fR, \fBvfpv3\-d16\-fp16\fR, \fBvfpv3xd\fR, \fBvfpv3xd\-fp16\fR,
9115 \&\fBneon\fR, \fBneon\-fp16\fR, \fBvfpv4\fR, \fBvfpv4\-d16\fR,
9116 \&\fBfpv4\-sp\-d16\fR and \fBneon\-vfpv4\fR.
9117 \&\fB\-mfp\fR and \fB\-mfpe\fR are synonyms for
9118 \&\fB\-mfpu\fR=\fBfpe\fR\fInumber\fR, for compatibility with older versions
9119 of \s-1GCC\s0.
9121 If \fB\-msoft\-float\fR is specified this specifies the format of
9122 floating point values.
9123 .IP "\fB\-mfp16\-format=\fR\fIname\fR" 4
9124 .IX Item "-mfp16-format=name"
9125 Specify the format of the \f(CW\*(C`_\|_fp16\*(C'\fR half-precision floating-point type.
9126 Permissible names are \fBnone\fR, \fBieee\fR, and \fBalternative\fR;
9127 the default is \fBnone\fR, in which case the \f(CW\*(C`_\|_fp16\*(C'\fR type is not
9128 defined.  
9129 .IP "\fB\-mstructure\-size\-boundary=\fR\fIn\fR" 4
9130 .IX Item "-mstructure-size-boundary=n"
9131 The size of all structures and unions will be rounded up to a multiple
9132 of the number of bits set by this option.  Permissible values are 8, 32
9133 and 64.  The default value varies for different toolchains.  For the \s-1COFF\s0
9134 targeted toolchain the default value is 8.  A value of 64 is only allowed
9135 if the underlying \s-1ABI\s0 supports it.
9137 Specifying the larger number can produce faster, more efficient code, but
9138 can also increase the size of the program.  Different values are potentially
9139 incompatible.  Code compiled with one value cannot necessarily expect to
9140 work with code or libraries compiled with another value, if they exchange
9141 information using structures or unions.
9142 .IP "\fB\-mabort\-on\-noreturn\fR" 4
9143 .IX Item "-mabort-on-noreturn"
9144 Generate a call to the function \f(CW\*(C`abort\*(C'\fR at the end of a
9145 \&\f(CW\*(C`noreturn\*(C'\fR function.  It will be executed if the function tries to
9146 return.
9147 .IP "\fB\-mlong\-calls\fR" 4
9148 .IX Item "-mlong-calls"
9149 .PD 0
9150 .IP "\fB\-mno\-long\-calls\fR" 4
9151 .IX Item "-mno-long-calls"
9153 Tells the compiler to perform function calls by first loading the
9154 address of the function into a register and then performing a subroutine
9155 call on this register.  This switch is needed if the target function
9156 will lie outside of the 64 megabyte addressing range of the offset based
9157 version of subroutine call instruction.
9159 Even if this switch is enabled, not all function calls will be turned
9160 into long calls.  The heuristic is that static functions, functions
9161 which have the \fBshort-call\fR attribute, functions that are inside
9162 the scope of a \fB#pragma no_long_calls\fR directive and functions whose
9163 definitions have already been compiled within the current compilation
9164 unit, will not be turned into long calls.  The exception to this rule is
9165 that weak function definitions, functions with the \fBlong-call\fR
9166 attribute or the \fBsection\fR attribute, and functions that are within
9167 the scope of a \fB#pragma long_calls\fR directive, will always be
9168 turned into long calls.
9170 This feature is not enabled by default.  Specifying
9171 \&\fB\-mno\-long\-calls\fR will restore the default behavior, as will
9172 placing the function calls within the scope of a \fB#pragma
9173 long_calls_off\fR directive.  Note these switches have no effect on how
9174 the compiler generates code to handle function calls via function
9175 pointers.
9176 .IP "\fB\-msingle\-pic\-base\fR" 4
9177 .IX Item "-msingle-pic-base"
9178 Treat the register used for \s-1PIC\s0 addressing as read\-only, rather than
9179 loading it in the prologue for each function.  The run-time system is
9180 responsible for initializing this register with an appropriate value
9181 before execution begins.
9182 .IP "\fB\-mpic\-register=\fR\fIreg\fR" 4
9183 .IX Item "-mpic-register=reg"
9184 Specify the register to be used for \s-1PIC\s0 addressing.  The default is R10
9185 unless stack-checking is enabled, when R9 is used.
9186 .IP "\fB\-mcirrus\-fix\-invalid\-insns\fR" 4
9187 .IX Item "-mcirrus-fix-invalid-insns"
9188 Insert NOPs into the instruction stream to in order to work around
9189 problems with invalid Maverick instruction combinations.  This option
9190 is only valid if the \fB\-mcpu=ep9312\fR option has been used to
9191 enable generation of instructions for the Cirrus Maverick floating
9192 point co\-processor.  This option is not enabled by default, since the
9193 problem is only present in older Maverick implementations.  The default
9194 can be re-enabled by use of the \fB\-mno\-cirrus\-fix\-invalid\-insns\fR
9195 switch.
9196 .IP "\fB\-mpoke\-function\-name\fR" 4
9197 .IX Item "-mpoke-function-name"
9198 Write the name of each function into the text section, directly
9199 preceding the function prologue.  The generated code is similar to this:
9201 .Vb 9
9202 \&             t0
9203 \&                 .ascii "arm_poke_function_name", 0
9204 \&                 .align
9205 \&             t1
9206 \&                 .word 0xff000000 + (t1 - t0)
9207 \&             arm_poke_function_name
9208 \&                 mov     ip, sp
9209 \&                 stmfd   sp!, {fp, ip, lr, pc}
9210 \&                 sub     fp, ip, #4
9213 When performing a stack backtrace, code can inspect the value of
9214 \&\f(CW\*(C`pc\*(C'\fR stored at \f(CW\*(C`fp + 0\*(C'\fR.  If the trace function then looks at
9215 location \f(CW\*(C`pc \- 12\*(C'\fR and the top 8 bits are set, then we know that
9216 there is a function name embedded immediately preceding this location
9217 and has length \f(CW\*(C`((pc[\-3]) & 0xff000000)\*(C'\fR.
9218 .IP "\fB\-mthumb\fR" 4
9219 .IX Item "-mthumb"
9220 Generate code for the Thumb instruction set.  The default is to
9221 use the 32\-bit \s-1ARM\s0 instruction set.
9222 This option automatically enables either 16\-bit Thumb\-1 or
9223 mixed 16/32\-bit Thumb\-2 instructions based on the \fB\-mcpu=\fR\fIname\fR
9224 and \fB\-march=\fR\fIname\fR options.  This option is not passed to the
9225 assembler. If you want to force assembler files to be interpreted as Thumb code,
9226 either add a \fB.thumb\fR directive to the source or pass the \fB\-mthumb\fR
9227 option directly to the assembler by prefixing it with \fB\-Wa\fR.
9228 .IP "\fB\-mtpcs\-frame\fR" 4
9229 .IX Item "-mtpcs-frame"
9230 Generate a stack frame that is compliant with the Thumb Procedure Call
9231 Standard for all non-leaf functions.  (A leaf function is one that does
9232 not call any other functions.)  The default is \fB\-mno\-tpcs\-frame\fR.
9233 .IP "\fB\-mtpcs\-leaf\-frame\fR" 4
9234 .IX Item "-mtpcs-leaf-frame"
9235 Generate a stack frame that is compliant with the Thumb Procedure Call
9236 Standard for all leaf functions.  (A leaf function is one that does
9237 not call any other functions.)  The default is \fB\-mno\-apcs\-leaf\-frame\fR.
9238 .IP "\fB\-mcallee\-super\-interworking\fR" 4
9239 .IX Item "-mcallee-super-interworking"
9240 Gives all externally visible functions in the file being compiled an \s-1ARM\s0
9241 instruction set header which switches to Thumb mode before executing the
9242 rest of the function.  This allows these functions to be called from
9243 non-interworking code.  This option is not valid in \s-1AAPCS\s0 configurations
9244 because interworking is enabled by default.
9245 .IP "\fB\-mcaller\-super\-interworking\fR" 4
9246 .IX Item "-mcaller-super-interworking"
9247 Allows calls via function pointers (including virtual functions) to
9248 execute correctly regardless of whether the target code has been
9249 compiled for interworking or not.  There is a small overhead in the cost
9250 of executing a function pointer if this option is enabled.  This option
9251 is not valid in \s-1AAPCS\s0 configurations because interworking is enabled
9252 by default.
9253 .IP "\fB\-mtp=\fR\fIname\fR" 4
9254 .IX Item "-mtp=name"
9255 Specify the access model for the thread local storage pointer.  The valid
9256 models are \fBsoft\fR, which generates calls to \f(CW\*(C`_\|_aeabi_read_tp\*(C'\fR,
9257 \&\fBcp15\fR, which fetches the thread pointer from \f(CW\*(C`cp15\*(C'\fR directly
9258 (supported in the arm6k architecture), and \fBauto\fR, which uses the
9259 best available method for the selected processor.  The default setting is
9260 \&\fBauto\fR.
9261 .IP "\fB\-mword\-relocations\fR" 4
9262 .IX Item "-mword-relocations"
9263 Only generate absolute relocations on word sized values (i.e. R_ARM_ABS32).
9264 This is enabled by default on targets (uClinux, SymbianOS) where the runtime
9265 loader imposes this restriction, and when \fB\-fpic\fR or \fB\-fPIC\fR
9266 is specified.
9268 \fI\s-1AVR\s0 Options\fR
9269 .IX Subsection "AVR Options"
9271 These options are defined for \s-1AVR\s0 implementations:
9272 .IP "\fB\-mmcu=\fR\fImcu\fR" 4
9273 .IX Item "-mmcu=mcu"
9274 Specify \s-1ATMEL\s0 \s-1AVR\s0 instruction set or \s-1MCU\s0 type.
9276 Instruction set avr1 is for the minimal \s-1AVR\s0 core, not supported by the C
9277 compiler, only for assembler programs (\s-1MCU\s0 types: at90s1200, attiny10,
9278 attiny11, attiny12, attiny15, attiny28).
9280 Instruction set avr2 (default) is for the classic \s-1AVR\s0 core with up to
9281 8K program memory space (\s-1MCU\s0 types: at90s2313, at90s2323, attiny22,
9282 at90s2333, at90s2343, at90s4414, at90s4433, at90s4434, at90s8515,
9283 at90c8534, at90s8535).
9285 Instruction set avr3 is for the classic \s-1AVR\s0 core with up to 128K program
9286 memory space (\s-1MCU\s0 types: atmega103, atmega603, at43usb320, at76c711).
9288 Instruction set avr4 is for the enhanced \s-1AVR\s0 core with up to 8K program
9289 memory space (\s-1MCU\s0 types: atmega8, atmega83, atmega85).
9291 Instruction set avr5 is for the enhanced \s-1AVR\s0 core with up to 128K program
9292 memory space (\s-1MCU\s0 types: atmega16, atmega161, atmega163, atmega32, atmega323,
9293 atmega64, atmega128, at43usb355, at94k).
9294 .IP "\fB\-mno\-interrupts\fR" 4
9295 .IX Item "-mno-interrupts"
9296 Generated code is not compatible with hardware interrupts.
9297 Code size will be smaller.
9298 .IP "\fB\-mcall\-prologues\fR" 4
9299 .IX Item "-mcall-prologues"
9300 Functions prologues/epilogues expanded as call to appropriate
9301 subroutines.  Code size will be smaller.
9302 .IP "\fB\-mtiny\-stack\fR" 4
9303 .IX Item "-mtiny-stack"
9304 Change only the low 8 bits of the stack pointer.
9305 .IP "\fB\-mint8\fR" 4
9306 .IX Item "-mint8"
9307 Assume int to be 8 bit integer.  This affects the sizes of all types: A
9308 char will be 1 byte, an int will be 1 byte, a long will be 2 bytes
9309 and long long will be 4 bytes.  Please note that this option does not
9310 comply to the C standards, but it will provide you with smaller code
9311 size.
9313 \fIBlackfin Options\fR
9314 .IX Subsection "Blackfin Options"
9315 .IP "\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR]" 4
9316 .IX Item "-mcpu=cpu[-sirevision]"
9317 Specifies the name of the target Blackfin processor.  Currently, \fIcpu\fR
9318 can be one of \fBbf512\fR, \fBbf514\fR, \fBbf516\fR, \fBbf518\fR,
9319 \&\fBbf522\fR, \fBbf523\fR, \fBbf524\fR, \fBbf525\fR, \fBbf526\fR,
9320 \&\fBbf527\fR, \fBbf531\fR, \fBbf532\fR, \fBbf533\fR,
9321 \&\fBbf534\fR, \fBbf536\fR, \fBbf537\fR, \fBbf538\fR, \fBbf539\fR,
9322 \&\fBbf542\fR, \fBbf544\fR, \fBbf547\fR, \fBbf548\fR, \fBbf549\fR,
9323 \&\fBbf542m\fR, \fBbf544m\fR, \fBbf547m\fR, \fBbf548m\fR, \fBbf549m\fR,
9324 \&\fBbf561\fR.
9325 The optional \fIsirevision\fR specifies the silicon revision of the target
9326 Blackfin processor.  Any workarounds available for the targeted silicon revision
9327 will be enabled.  If \fIsirevision\fR is \fBnone\fR, no workarounds are enabled.
9328 If \fIsirevision\fR is \fBany\fR, all workarounds for the targeted processor
9329 will be enabled.  The \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR macro is defined to two
9330 hexadecimal digits representing the major and minor numbers in the silicon
9331 revision.  If \fIsirevision\fR is \fBnone\fR, the \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR
9332 is not defined.  If \fIsirevision\fR is \fBany\fR, the
9333 \&\f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR is defined to be \f(CW0xffff\fR.
9334 If this optional \fIsirevision\fR is not used, \s-1GCC\s0 assumes the latest known
9335 silicon revision of the targeted Blackfin processor.
9337 Support for \fBbf561\fR is incomplete.  For \fBbf561\fR,
9338 Only the processor macro is defined.
9339 Without this option, \fBbf532\fR is used as the processor by default.
9340 The corresponding predefined processor macros for \fIcpu\fR is to
9341 be defined.  And for \fBbfin-elf\fR toolchain, this causes the hardware \s-1BSP\s0
9342 provided by libgloss to be linked in if \fB\-msim\fR is not given.
9343 .IP "\fB\-msim\fR" 4
9344 .IX Item "-msim"
9345 Specifies that the program will be run on the simulator.  This causes
9346 the simulator \s-1BSP\s0 provided by libgloss to be linked in.  This option
9347 has effect only for \fBbfin-elf\fR toolchain.
9348 Certain other options, such as \fB\-mid\-shared\-library\fR and
9349 \&\fB\-mfdpic\fR, imply \fB\-msim\fR.
9350 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
9351 .IX Item "-momit-leaf-frame-pointer"
9352 Don't keep the frame pointer in a register for leaf functions.  This
9353 avoids the instructions to save, set up and restore frame pointers and
9354 makes an extra register available in leaf functions.  The option
9355 \&\fB\-fomit\-frame\-pointer\fR removes the frame pointer for all functions
9356 which might make debugging harder.
9357 .IP "\fB\-mspecld\-anomaly\fR" 4
9358 .IX Item "-mspecld-anomaly"
9359 When enabled, the compiler will ensure that the generated code does not
9360 contain speculative loads after jump instructions. If this option is used,
9361 \&\f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_LOADS\*(C'\fR is defined.
9362 .IP "\fB\-mno\-specld\-anomaly\fR" 4
9363 .IX Item "-mno-specld-anomaly"
9364 Don't generate extra code to prevent speculative loads from occurring.
9365 .IP "\fB\-mcsync\-anomaly\fR" 4
9366 .IX Item "-mcsync-anomaly"
9367 When enabled, the compiler will ensure that the generated code does not
9368 contain \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions too soon after conditional branches.
9369 If this option is used, \f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_SYNCS\*(C'\fR is defined.
9370 .IP "\fB\-mno\-csync\-anomaly\fR" 4
9371 .IX Item "-mno-csync-anomaly"
9372 Don't generate extra code to prevent \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions from
9373 occurring too soon after a conditional branch.
9374 .IP "\fB\-mlow\-64k\fR" 4
9375 .IX Item "-mlow-64k"
9376 When enabled, the compiler is free to take advantage of the knowledge that
9377 the entire program fits into the low 64k of memory.
9378 .IP "\fB\-mno\-low\-64k\fR" 4
9379 .IX Item "-mno-low-64k"
9380 Assume that the program is arbitrarily large.  This is the default.
9381 .IP "\fB\-mstack\-check\-l1\fR" 4
9382 .IX Item "-mstack-check-l1"
9383 Do stack checking using information placed into L1 scratchpad memory by the
9384 uClinux kernel.
9385 .IP "\fB\-mid\-shared\-library\fR" 4
9386 .IX Item "-mid-shared-library"
9387 Generate code that supports shared libraries via the library \s-1ID\s0 method.
9388 This allows for execute in place and shared libraries in an environment
9389 without virtual memory management.  This option implies \fB\-fPIC\fR.
9390 With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
9391 .IP "\fB\-mno\-id\-shared\-library\fR" 4
9392 .IX Item "-mno-id-shared-library"
9393 Generate code that doesn't assume \s-1ID\s0 based shared libraries are being used.
9394 This is the default.
9395 .IP "\fB\-mleaf\-id\-shared\-library\fR" 4
9396 .IX Item "-mleaf-id-shared-library"
9397 Generate code that supports shared libraries via the library \s-1ID\s0 method,
9398 but assumes that this library or executable won't link against any other
9399 \&\s-1ID\s0 shared libraries.  That allows the compiler to use faster code for jumps
9400 and calls.
9401 .IP "\fB\-mno\-leaf\-id\-shared\-library\fR" 4
9402 .IX Item "-mno-leaf-id-shared-library"
9403 Do not assume that the code being compiled won't link against any \s-1ID\s0 shared
9404 libraries.  Slower code will be generated for jump and call insns.
9405 .IP "\fB\-mshared\-library\-id=n\fR" 4
9406 .IX Item "-mshared-library-id=n"
9407 Specified the identification number of the \s-1ID\s0 based shared library being
9408 compiled.  Specifying a value of 0 will generate more compact code, specifying
9409 other values will force the allocation of that number to the current
9410 library but is no more space or time efficient than omitting this option.
9411 .IP "\fB\-msep\-data\fR" 4
9412 .IX Item "-msep-data"
9413 Generate code that allows the data segment to be located in a different
9414 area of memory from the text segment.  This allows for execute in place in
9415 an environment without virtual memory management by eliminating relocations
9416 against the text section.
9417 .IP "\fB\-mno\-sep\-data\fR" 4
9418 .IX Item "-mno-sep-data"
9419 Generate code that assumes that the data segment follows the text segment.
9420 This is the default.
9421 .IP "\fB\-mlong\-calls\fR" 4
9422 .IX Item "-mlong-calls"
9423 .PD 0
9424 .IP "\fB\-mno\-long\-calls\fR" 4
9425 .IX Item "-mno-long-calls"
9427 Tells the compiler to perform function calls by first loading the
9428 address of the function into a register and then performing a subroutine
9429 call on this register.  This switch is needed if the target function
9430 will lie outside of the 24 bit addressing range of the offset based
9431 version of subroutine call instruction.
9433 This feature is not enabled by default.  Specifying
9434 \&\fB\-mno\-long\-calls\fR will restore the default behavior.  Note these
9435 switches have no effect on how the compiler generates code to handle
9436 function calls via function pointers.
9437 .IP "\fB\-mfast\-fp\fR" 4
9438 .IX Item "-mfast-fp"
9439 Link with the fast floating-point library. This library relaxes some of
9440 the \s-1IEEE\s0 floating-point standard's rules for checking inputs against
9441 Not-a-Number (\s-1NAN\s0), in the interest of performance.
9442 .IP "\fB\-minline\-plt\fR" 4
9443 .IX Item "-minline-plt"
9444 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
9445 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
9446 .IP "\fB\-mmulticore\fR" 4
9447 .IX Item "-mmulticore"
9448 Build standalone application for multicore Blackfin processor. Proper
9449 start files and link scripts will be used to support multicore.
9450 This option defines \f(CW\*(C`_\|_BFIN_MULTICORE\*(C'\fR. It can only be used with
9451 \&\fB\-mcpu=bf561\fR[\fB\-\fR\fIsirevision\fR]. It can be used with
9452 \&\fB\-mcorea\fR or \fB\-mcoreb\fR. If it's used without
9453 \&\fB\-mcorea\fR or \fB\-mcoreb\fR, single application/dual core
9454 programming model is used. In this model, the main function of Core B
9455 should be named as coreb_main. If it's used with \fB\-mcorea\fR or
9456 \&\fB\-mcoreb\fR, one application per core programming model is used.
9457 If this option is not used, single core application programming
9458 model is used.
9459 .IP "\fB\-mcorea\fR" 4
9460 .IX Item "-mcorea"
9461 Build standalone application for Core A of \s-1BF561\s0 when using
9462 one application per core programming model. Proper start files
9463 and link scripts will be used to support Core A. This option
9464 defines \f(CW\*(C`_\|_BFIN_COREA\*(C'\fR. It must be used with \fB\-mmulticore\fR.
9465 .IP "\fB\-mcoreb\fR" 4
9466 .IX Item "-mcoreb"
9467 Build standalone application for Core B of \s-1BF561\s0 when using
9468 one application per core programming model. Proper start files
9469 and link scripts will be used to support Core B. This option
9470 defines \f(CW\*(C`_\|_BFIN_COREB\*(C'\fR. When this option is used, coreb_main
9471 should be used instead of main. It must be used with
9472 \&\fB\-mmulticore\fR.
9473 .IP "\fB\-msdram\fR" 4
9474 .IX Item "-msdram"
9475 Build standalone application for \s-1SDRAM\s0. Proper start files and
9476 link scripts will be used to put the application into \s-1SDRAM\s0.
9477 Loader should initialize \s-1SDRAM\s0 before loading the application
9478 into \s-1SDRAM\s0. This option defines \f(CW\*(C`_\|_BFIN_SDRAM\*(C'\fR.
9479 .IP "\fB\-micplb\fR" 4
9480 .IX Item "-micplb"
9481 Assume that ICPLBs are enabled at runtime.  This has an effect on certain
9482 anomaly workarounds.  For Linux targets, the default is to assume ICPLBs
9483 are enabled; for standalone applications the default is off.
9485 \fI\s-1CRIS\s0 Options\fR
9486 .IX Subsection "CRIS Options"
9488 These options are defined specifically for the \s-1CRIS\s0 ports.
9489 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
9490 .IX Item "-march=architecture-type"
9491 .PD 0
9492 .IP "\fB\-mcpu=\fR\fIarchitecture-type\fR" 4
9493 .IX Item "-mcpu=architecture-type"
9495 Generate code for the specified architecture.  The choices for
9496 \&\fIarchitecture-type\fR are \fBv3\fR, \fBv8\fR and \fBv10\fR for
9497 respectively \s-1ETRAX\s0\ 4, \s-1ETRAX\s0\ 100, and \s-1ETRAX\s0\ 100\ \s-1LX\s0.
9498 Default is \fBv0\fR except for cris\-axis\-linux\-gnu, where the default is
9499 \&\fBv10\fR.
9500 .IP "\fB\-mtune=\fR\fIarchitecture-type\fR" 4
9501 .IX Item "-mtune=architecture-type"
9502 Tune to \fIarchitecture-type\fR everything applicable about the generated
9503 code, except for the \s-1ABI\s0 and the set of available instructions.  The
9504 choices for \fIarchitecture-type\fR are the same as for
9505 \&\fB\-march=\fR\fIarchitecture-type\fR.
9506 .IP "\fB\-mmax\-stack\-frame=\fR\fIn\fR" 4
9507 .IX Item "-mmax-stack-frame=n"
9508 Warn when the stack frame of a function exceeds \fIn\fR bytes.
9509 .IP "\fB\-metrax4\fR" 4
9510 .IX Item "-metrax4"
9511 .PD 0
9512 .IP "\fB\-metrax100\fR" 4
9513 .IX Item "-metrax100"
9515 The options \fB\-metrax4\fR and \fB\-metrax100\fR are synonyms for
9516 \&\fB\-march=v3\fR and \fB\-march=v8\fR respectively.
9517 .IP "\fB\-mmul\-bug\-workaround\fR" 4
9518 .IX Item "-mmul-bug-workaround"
9519 .PD 0
9520 .IP "\fB\-mno\-mul\-bug\-workaround\fR" 4
9521 .IX Item "-mno-mul-bug-workaround"
9523 Work around a bug in the \f(CW\*(C`muls\*(C'\fR and \f(CW\*(C`mulu\*(C'\fR instructions for \s-1CPU\s0
9524 models where it applies.  This option is active by default.
9525 .IP "\fB\-mpdebug\fR" 4
9526 .IX Item "-mpdebug"
9527 Enable CRIS-specific verbose debug-related information in the assembly
9528 code.  This option also has the effect to turn off the \fB#NO_APP\fR
9529 formatted-code indicator to the assembler at the beginning of the
9530 assembly file.
9531 .IP "\fB\-mcc\-init\fR" 4
9532 .IX Item "-mcc-init"
9533 Do not use condition-code results from previous instruction; always emit
9534 compare and test instructions before use of condition codes.
9535 .IP "\fB\-mno\-side\-effects\fR" 4
9536 .IX Item "-mno-side-effects"
9537 Do not emit instructions with side-effects in addressing modes other than
9538 post\-increment.
9539 .IP "\fB\-mstack\-align\fR" 4
9540 .IX Item "-mstack-align"
9541 .PD 0
9542 .IP "\fB\-mno\-stack\-align\fR" 4
9543 .IX Item "-mno-stack-align"
9544 .IP "\fB\-mdata\-align\fR" 4
9545 .IX Item "-mdata-align"
9546 .IP "\fB\-mno\-data\-align\fR" 4
9547 .IX Item "-mno-data-align"
9548 .IP "\fB\-mconst\-align\fR" 4
9549 .IX Item "-mconst-align"
9550 .IP "\fB\-mno\-const\-align\fR" 4
9551 .IX Item "-mno-const-align"
9553 These options (no\-options) arranges (eliminate arrangements) for the
9554 stack\-frame, individual data and constants to be aligned for the maximum
9555 single data access size for the chosen \s-1CPU\s0 model.  The default is to
9556 arrange for 32\-bit alignment.  \s-1ABI\s0 details such as structure layout are
9557 not affected by these options.
9558 .IP "\fB\-m32\-bit\fR" 4
9559 .IX Item "-m32-bit"
9560 .PD 0
9561 .IP "\fB\-m16\-bit\fR" 4
9562 .IX Item "-m16-bit"
9563 .IP "\fB\-m8\-bit\fR" 4
9564 .IX Item "-m8-bit"
9566 Similar to the stack\- data\- and const-align options above, these options
9567 arrange for stack\-frame, writable data and constants to all be 32\-bit,
9568 16\-bit or 8\-bit aligned.  The default is 32\-bit alignment.
9569 .IP "\fB\-mno\-prologue\-epilogue\fR" 4
9570 .IX Item "-mno-prologue-epilogue"
9571 .PD 0
9572 .IP "\fB\-mprologue\-epilogue\fR" 4
9573 .IX Item "-mprologue-epilogue"
9575 With \fB\-mno\-prologue\-epilogue\fR, the normal function prologue and
9576 epilogue that sets up the stack-frame are omitted and no return
9577 instructions or return sequences are generated in the code.  Use this
9578 option only together with visual inspection of the compiled code: no
9579 warnings or errors are generated when call-saved registers must be saved,
9580 or storage for local variable needs to be allocated.
9581 .IP "\fB\-mno\-gotplt\fR" 4
9582 .IX Item "-mno-gotplt"
9583 .PD 0
9584 .IP "\fB\-mgotplt\fR" 4
9585 .IX Item "-mgotplt"
9587 With \fB\-fpic\fR and \fB\-fPIC\fR, don't generate (do generate)
9588 instruction sequences that load addresses for functions from the \s-1PLT\s0 part
9589 of the \s-1GOT\s0 rather than (traditional on other architectures) calls to the
9590 \&\s-1PLT\s0.  The default is \fB\-mgotplt\fR.
9591 .IP "\fB\-melf\fR" 4
9592 .IX Item "-melf"
9593 Legacy no-op option only recognized with the cris-axis-elf and
9594 cris-axis-linux-gnu targets.
9595 .IP "\fB\-mlinux\fR" 4
9596 .IX Item "-mlinux"
9597 Legacy no-op option only recognized with the cris-axis-linux-gnu target.
9598 .IP "\fB\-sim\fR" 4
9599 .IX Item "-sim"
9600 This option, recognized for the cris-axis-elf arranges
9601 to link with input-output functions from a simulator library.  Code,
9602 initialized data and zero-initialized data are allocated consecutively.
9603 .IP "\fB\-sim2\fR" 4
9604 .IX Item "-sim2"
9605 Like \fB\-sim\fR, but pass linker options to locate initialized data at
9606 0x40000000 and zero-initialized data at 0x80000000.
9608 \fI\s-1CRX\s0 Options\fR
9609 .IX Subsection "CRX Options"
9611 These options are defined specifically for the \s-1CRX\s0 ports.
9612 .IP "\fB\-mmac\fR" 4
9613 .IX Item "-mmac"
9614 Enable the use of multiply-accumulate instructions. Disabled by default.
9615 .IP "\fB\-mpush\-args\fR" 4
9616 .IX Item "-mpush-args"
9617 Push instructions will be used to pass outgoing arguments when functions
9618 are called. Enabled by default.
9620 \fIDarwin Options\fR
9621 .IX Subsection "Darwin Options"
9623 These options are defined for all architectures running the Darwin operating
9624 system.
9626 \&\s-1FSF\s0 \s-1GCC\s0 on Darwin does not create \*(L"fat\*(R" object files; it will create
9627 an object file for the single architecture that it was built to
9628 target.  Apple's \s-1GCC\s0 on Darwin does create \*(L"fat\*(R" files if multiple
9629 \&\fB\-arch\fR options are used; it does so by running the compiler or
9630 linker multiple times and joining the results together with
9631 \&\fIlipo\fR.
9633 The subtype of the file created (like \fBppc7400\fR or \fBppc970\fR or
9634 \&\fBi686\fR) is determined by the flags that specify the \s-1ISA\s0
9635 that \s-1GCC\s0 is targetting, like \fB\-mcpu\fR or \fB\-march\fR.  The
9636 \&\fB\-force_cpusubtype_ALL\fR option can be used to override this.
9638 The Darwin tools vary in their behavior when presented with an \s-1ISA\s0
9639 mismatch.  The assembler, \fIas\fR, will only permit instructions to
9640 be used that are valid for the subtype of the file it is generating,
9641 so you cannot put 64\-bit instructions in a \fBppc750\fR object file.
9642 The linker for shared libraries, \fI/usr/bin/libtool\fR, will fail
9643 and print an error if asked to create a shared library with a less
9644 restrictive subtype than its input files (for instance, trying to put
9645 a \fBppc970\fR object file in a \fBppc7400\fR library).  The linker
9646 for executables, \fIld\fR, will quietly give the executable the most
9647 restrictive subtype of any of its input files.
9648 .IP "\fB\-F\fR\fIdir\fR" 4
9649 .IX Item "-Fdir"
9650 Add the framework directory \fIdir\fR to the head of the list of
9651 directories to be searched for header files.  These directories are
9652 interleaved with those specified by \fB\-I\fR options and are
9653 scanned in a left-to-right order.
9655 A framework directory is a directory with frameworks in it.  A
9656 framework is a directory with a \fB\*(L"Headers\*(R"\fR and/or
9657 \&\fB\*(L"PrivateHeaders\*(R"\fR directory contained directly in it that ends
9658 in \fB\*(L".framework\*(R"\fR.  The name of a framework is the name of this
9659 directory excluding the \fB\*(L".framework\*(R"\fR.  Headers associated with
9660 the framework are found in one of those two directories, with
9661 \&\fB\*(L"Headers\*(R"\fR being searched first.  A subframework is a framework
9662 directory that is in a framework's \fB\*(L"Frameworks\*(R"\fR directory.
9663 Includes of subframework headers can only appear in a header of a
9664 framework that contains the subframework, or in a sibling subframework
9665 header.  Two subframeworks are siblings if they occur in the same
9666 framework.  A subframework should not have the same name as a
9667 framework, a warning will be issued if this is violated.  Currently a
9668 subframework cannot have subframeworks, in the future, the mechanism
9669 may be extended to support this.  The standard frameworks can be found
9670 in \fB\*(L"/System/Library/Frameworks\*(R"\fR and
9671 \&\fB\*(L"/Library/Frameworks\*(R"\fR.  An example include looks like
9672 \&\f(CW\*(C`#include <Framework/header.h>\*(C'\fR, where \fBFramework\fR denotes
9673 the name of the framework and header.h is found in the
9674 \&\fB\*(L"PrivateHeaders\*(R"\fR or \fB\*(L"Headers\*(R"\fR directory.
9675 .IP "\fB\-iframework\fR\fIdir\fR" 4
9676 .IX Item "-iframeworkdir"
9677 Like \fB\-F\fR except the directory is a treated as a system
9678 directory.  The main difference between this \fB\-iframework\fR and
9679 \&\fB\-F\fR is that with \fB\-iframework\fR the compiler does not
9680 warn about constructs contained within header files found via
9681 \&\fIdir\fR.  This option is valid only for the C family of languages.
9682 .IP "\fB\-gused\fR" 4
9683 .IX Item "-gused"
9684 Emit debugging information for symbols that are used.  For \s-1STABS\s0
9685 debugging format, this enables \fB\-feliminate\-unused\-debug\-symbols\fR.
9686 This is by default \s-1ON\s0.
9687 .IP "\fB\-gfull\fR" 4
9688 .IX Item "-gfull"
9689 Emit debugging information for all symbols and types.
9690 .IP "\fB\-mmacosx\-version\-min=\fR\fIversion\fR" 4
9691 .IX Item "-mmacosx-version-min=version"
9692 The earliest version of MacOS X that this executable will run on
9693 is \fIversion\fR.  Typical values of \fIversion\fR include \f(CW10.1\fR,
9694 \&\f(CW10.2\fR, and \f(CW10.3.9\fR.
9696 If the compiler was built to use the system's headers by default,
9697 then the default for this option is the system version on which the
9698 compiler is running, otherwise the default is to make choices which
9699 are compatible with as many systems and code bases as possible.
9700 .IP "\fB\-mkernel\fR" 4
9701 .IX Item "-mkernel"
9702 Enable kernel development mode.  The \fB\-mkernel\fR option sets
9703 \&\fB\-static\fR, \fB\-fno\-common\fR, \fB\-fno\-cxa\-atexit\fR,
9704 \&\fB\-fno\-exceptions\fR, \fB\-fno\-non\-call\-exceptions\fR,
9705 \&\fB\-fapple\-kext\fR, \fB\-fno\-weak\fR and \fB\-fno\-rtti\fR where
9706 applicable.  This mode also sets \fB\-mno\-altivec\fR,
9707 \&\fB\-msoft\-float\fR, \fB\-fno\-builtin\fR and
9708 \&\fB\-mlong\-branch\fR for PowerPC targets.
9709 .IP "\fB\-mone\-byte\-bool\fR" 4
9710 .IX Item "-mone-byte-bool"
9711 Override the defaults for \fBbool\fR so that \fBsizeof(bool)==1\fR.
9712 By default \fBsizeof(bool)\fR is \fB4\fR when compiling for
9713 Darwin/PowerPC and \fB1\fR when compiling for Darwin/x86, so this
9714 option has no effect on x86.
9716 \&\fBWarning:\fR The \fB\-mone\-byte\-bool\fR switch causes \s-1GCC\s0
9717 to generate code that is not binary compatible with code generated
9718 without that switch.  Using this switch may require recompiling all
9719 other modules in a program, including system libraries.  Use this
9720 switch to conform to a non-default data model.
9721 .IP "\fB\-mfix\-and\-continue\fR" 4
9722 .IX Item "-mfix-and-continue"
9723 .PD 0
9724 .IP "\fB\-ffix\-and\-continue\fR" 4
9725 .IX Item "-ffix-and-continue"
9726 .IP "\fB\-findirect\-data\fR" 4
9727 .IX Item "-findirect-data"
9729 Generate code suitable for fast turn around development.  Needed to
9730 enable gdb to dynamically load \f(CW\*(C`.o\*(C'\fR files into already running
9731 programs.  \fB\-findirect\-data\fR and \fB\-ffix\-and\-continue\fR
9732 are provided for backwards compatibility.
9733 .IP "\fB\-all_load\fR" 4
9734 .IX Item "-all_load"
9735 Loads all members of static archive libraries.
9736 See man \fIld\fR\|(1) for more information.
9737 .IP "\fB\-arch_errors_fatal\fR" 4
9738 .IX Item "-arch_errors_fatal"
9739 Cause the errors having to do with files that have the wrong architecture
9740 to be fatal.
9741 .IP "\fB\-bind_at_load\fR" 4
9742 .IX Item "-bind_at_load"
9743 Causes the output file to be marked such that the dynamic linker will
9744 bind all undefined references when the file is loaded or launched.
9745 .IP "\fB\-bundle\fR" 4
9746 .IX Item "-bundle"
9747 Produce a Mach-o bundle format file.
9748 See man \fIld\fR\|(1) for more information.
9749 .IP "\fB\-bundle_loader\fR \fIexecutable\fR" 4
9750 .IX Item "-bundle_loader executable"
9751 This option specifies the \fIexecutable\fR that will be loading the build
9752 output file being linked.  See man \fIld\fR\|(1) for more information.
9753 .IP "\fB\-dynamiclib\fR" 4
9754 .IX Item "-dynamiclib"
9755 When passed this option, \s-1GCC\s0 will produce a dynamic library instead of
9756 an executable when linking, using the Darwin \fIlibtool\fR command.
9757 .IP "\fB\-force_cpusubtype_ALL\fR" 4
9758 .IX Item "-force_cpusubtype_ALL"
9759 This causes \s-1GCC\s0's output file to have the \fI\s-1ALL\s0\fR subtype, instead of
9760 one controlled by the \fB\-mcpu\fR or \fB\-march\fR option.
9761 .IP "\fB\-allowable_client\fR  \fIclient_name\fR" 4
9762 .IX Item "-allowable_client  client_name"
9763 .PD 0
9764 .IP "\fB\-client_name\fR" 4
9765 .IX Item "-client_name"
9766 .IP "\fB\-compatibility_version\fR" 4
9767 .IX Item "-compatibility_version"
9768 .IP "\fB\-current_version\fR" 4
9769 .IX Item "-current_version"
9770 .IP "\fB\-dead_strip\fR" 4
9771 .IX Item "-dead_strip"
9772 .IP "\fB\-dependency\-file\fR" 4
9773 .IX Item "-dependency-file"
9774 .IP "\fB\-dylib_file\fR" 4
9775 .IX Item "-dylib_file"
9776 .IP "\fB\-dylinker_install_name\fR" 4
9777 .IX Item "-dylinker_install_name"
9778 .IP "\fB\-dynamic\fR" 4
9779 .IX Item "-dynamic"
9780 .IP "\fB\-exported_symbols_list\fR" 4
9781 .IX Item "-exported_symbols_list"
9782 .IP "\fB\-filelist\fR" 4
9783 .IX Item "-filelist"
9784 .IP "\fB\-flat_namespace\fR" 4
9785 .IX Item "-flat_namespace"
9786 .IP "\fB\-force_flat_namespace\fR" 4
9787 .IX Item "-force_flat_namespace"
9788 .IP "\fB\-headerpad_max_install_names\fR" 4
9789 .IX Item "-headerpad_max_install_names"
9790 .IP "\fB\-image_base\fR" 4
9791 .IX Item "-image_base"
9792 .IP "\fB\-init\fR" 4
9793 .IX Item "-init"
9794 .IP "\fB\-install_name\fR" 4
9795 .IX Item "-install_name"
9796 .IP "\fB\-keep_private_externs\fR" 4
9797 .IX Item "-keep_private_externs"
9798 .IP "\fB\-multi_module\fR" 4
9799 .IX Item "-multi_module"
9800 .IP "\fB\-multiply_defined\fR" 4
9801 .IX Item "-multiply_defined"
9802 .IP "\fB\-multiply_defined_unused\fR" 4
9803 .IX Item "-multiply_defined_unused"
9804 .IP "\fB\-noall_load\fR" 4
9805 .IX Item "-noall_load"
9806 .IP "\fB\-no_dead_strip_inits_and_terms\fR" 4
9807 .IX Item "-no_dead_strip_inits_and_terms"
9808 .IP "\fB\-nofixprebinding\fR" 4
9809 .IX Item "-nofixprebinding"
9810 .IP "\fB\-nomultidefs\fR" 4
9811 .IX Item "-nomultidefs"
9812 .IP "\fB\-noprebind\fR" 4
9813 .IX Item "-noprebind"
9814 .IP "\fB\-noseglinkedit\fR" 4
9815 .IX Item "-noseglinkedit"
9816 .IP "\fB\-pagezero_size\fR" 4
9817 .IX Item "-pagezero_size"
9818 .IP "\fB\-prebind\fR" 4
9819 .IX Item "-prebind"
9820 .IP "\fB\-prebind_all_twolevel_modules\fR" 4
9821 .IX Item "-prebind_all_twolevel_modules"
9822 .IP "\fB\-private_bundle\fR" 4
9823 .IX Item "-private_bundle"
9824 .IP "\fB\-read_only_relocs\fR" 4
9825 .IX Item "-read_only_relocs"
9826 .IP "\fB\-sectalign\fR" 4
9827 .IX Item "-sectalign"
9828 .IP "\fB\-sectobjectsymbols\fR" 4
9829 .IX Item "-sectobjectsymbols"
9830 .IP "\fB\-whyload\fR" 4
9831 .IX Item "-whyload"
9832 .IP "\fB\-seg1addr\fR" 4
9833 .IX Item "-seg1addr"
9834 .IP "\fB\-sectcreate\fR" 4
9835 .IX Item "-sectcreate"
9836 .IP "\fB\-sectobjectsymbols\fR" 4
9837 .IX Item "-sectobjectsymbols"
9838 .IP "\fB\-sectorder\fR" 4
9839 .IX Item "-sectorder"
9840 .IP "\fB\-segaddr\fR" 4
9841 .IX Item "-segaddr"
9842 .IP "\fB\-segs_read_only_addr\fR" 4
9843 .IX Item "-segs_read_only_addr"
9844 .IP "\fB\-segs_read_write_addr\fR" 4
9845 .IX Item "-segs_read_write_addr"
9846 .IP "\fB\-seg_addr_table\fR" 4
9847 .IX Item "-seg_addr_table"
9848 .IP "\fB\-seg_addr_table_filename\fR" 4
9849 .IX Item "-seg_addr_table_filename"
9850 .IP "\fB\-seglinkedit\fR" 4
9851 .IX Item "-seglinkedit"
9852 .IP "\fB\-segprot\fR" 4
9853 .IX Item "-segprot"
9854 .IP "\fB\-segs_read_only_addr\fR" 4
9855 .IX Item "-segs_read_only_addr"
9856 .IP "\fB\-segs_read_write_addr\fR" 4
9857 .IX Item "-segs_read_write_addr"
9858 .IP "\fB\-single_module\fR" 4
9859 .IX Item "-single_module"
9860 .IP "\fB\-static\fR" 4
9861 .IX Item "-static"
9862 .IP "\fB\-sub_library\fR" 4
9863 .IX Item "-sub_library"
9864 .IP "\fB\-sub_umbrella\fR" 4
9865 .IX Item "-sub_umbrella"
9866 .IP "\fB\-twolevel_namespace\fR" 4
9867 .IX Item "-twolevel_namespace"
9868 .IP "\fB\-umbrella\fR" 4
9869 .IX Item "-umbrella"
9870 .IP "\fB\-undefined\fR" 4
9871 .IX Item "-undefined"
9872 .IP "\fB\-unexported_symbols_list\fR" 4
9873 .IX Item "-unexported_symbols_list"
9874 .IP "\fB\-weak_reference_mismatches\fR" 4
9875 .IX Item "-weak_reference_mismatches"
9876 .IP "\fB\-whatsloaded\fR" 4
9877 .IX Item "-whatsloaded"
9879 These options are passed to the Darwin linker.  The Darwin linker man page
9880 describes them in detail.
9882 \fI\s-1DEC\s0 Alpha Options\fR
9883 .IX Subsection "DEC Alpha Options"
9885 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha implementations:
9886 .IP "\fB\-mno\-soft\-float\fR" 4
9887 .IX Item "-mno-soft-float"
9888 .PD 0
9889 .IP "\fB\-msoft\-float\fR" 4
9890 .IX Item "-msoft-float"
9892 Use (do not use) the hardware floating-point instructions for
9893 floating-point operations.  When \fB\-msoft\-float\fR is specified,
9894 functions in \fIlibgcc.a\fR will be used to perform floating-point
9895 operations.  Unless they are replaced by routines that emulate the
9896 floating-point operations, or compiled in such a way as to call such
9897 emulations routines, these routines will issue floating-point
9898 operations.   If you are compiling for an Alpha without floating-point
9899 operations, you must ensure that the library is built so as not to call
9900 them.
9902 Note that Alpha implementations without floating-point operations are
9903 required to have floating-point registers.
9904 .IP "\fB\-mfp\-reg\fR" 4
9905 .IX Item "-mfp-reg"
9906 .PD 0
9907 .IP "\fB\-mno\-fp\-regs\fR" 4
9908 .IX Item "-mno-fp-regs"
9910 Generate code that uses (does not use) the floating-point register set.
9911 \&\fB\-mno\-fp\-regs\fR implies \fB\-msoft\-float\fR.  If the floating-point
9912 register set is not used, floating point operands are passed in integer
9913 registers as if they were integers and floating-point results are passed
9914 in \f(CW$0\fR instead of \f(CW$f0\fR.  This is a non-standard calling sequence,
9915 so any function with a floating-point argument or return value called by code
9916 compiled with \fB\-mno\-fp\-regs\fR must also be compiled with that
9917 option.
9919 A typical use of this option is building a kernel that does not use,
9920 and hence need not save and restore, any floating-point registers.
9921 .IP "\fB\-mieee\fR" 4
9922 .IX Item "-mieee"
9923 The Alpha architecture implements floating-point hardware optimized for
9924 maximum performance.  It is mostly compliant with the \s-1IEEE\s0 floating
9925 point standard.  However, for full compliance, software assistance is
9926 required.  This option generates code fully \s-1IEEE\s0 compliant code
9927 \&\fIexcept\fR that the \fIinexact-flag\fR is not maintained (see below).
9928 If this option is turned on, the preprocessor macro \f(CW\*(C`_IEEE_FP\*(C'\fR is
9929 defined during compilation.  The resulting code is less efficient but is
9930 able to correctly support denormalized numbers and exceptional \s-1IEEE\s0
9931 values such as not-a-number and plus/minus infinity.  Other Alpha
9932 compilers call this option \fB\-ieee_with_no_inexact\fR.
9933 .IP "\fB\-mieee\-with\-inexact\fR" 4
9934 .IX Item "-mieee-with-inexact"
9935 This is like \fB\-mieee\fR except the generated code also maintains
9936 the \s-1IEEE\s0 \fIinexact-flag\fR.  Turning on this option causes the
9937 generated code to implement fully-compliant \s-1IEEE\s0 math.  In addition to
9938 \&\f(CW\*(C`_IEEE_FP\*(C'\fR, \f(CW\*(C`_IEEE_FP_EXACT\*(C'\fR is defined as a preprocessor
9939 macro.  On some Alpha implementations the resulting code may execute
9940 significantly slower than the code generated by default.  Since there is
9941 very little code that depends on the \fIinexact-flag\fR, you should
9942 normally not specify this option.  Other Alpha compilers call this
9943 option \fB\-ieee_with_inexact\fR.
9944 .IP "\fB\-mfp\-trap\-mode=\fR\fItrap-mode\fR" 4
9945 .IX Item "-mfp-trap-mode=trap-mode"
9946 This option controls what floating-point related traps are enabled.
9947 Other Alpha compilers call this option \fB\-fptm\fR \fItrap-mode\fR.
9948 The trap mode can be set to one of four values:
9949 .RS 4
9950 .IP "\fBn\fR" 4
9951 .IX Item "n"
9952 This is the default (normal) setting.  The only traps that are enabled
9953 are the ones that cannot be disabled in software (e.g., division by zero
9954 trap).
9955 .IP "\fBu\fR" 4
9956 .IX Item "u"
9957 In addition to the traps enabled by \fBn\fR, underflow traps are enabled
9958 as well.
9959 .IP "\fBsu\fR" 4
9960 .IX Item "su"
9961 Like \fBu\fR, but the instructions are marked to be safe for software
9962 completion (see Alpha architecture manual for details).
9963 .IP "\fBsui\fR" 4
9964 .IX Item "sui"
9965 Like \fBsu\fR, but inexact traps are enabled as well.
9967 .RS 4
9969 .IP "\fB\-mfp\-rounding\-mode=\fR\fIrounding-mode\fR" 4
9970 .IX Item "-mfp-rounding-mode=rounding-mode"
9971 Selects the \s-1IEEE\s0 rounding mode.  Other Alpha compilers call this option
9972 \&\fB\-fprm\fR \fIrounding-mode\fR.  The \fIrounding-mode\fR can be one
9974 .RS 4
9975 .IP "\fBn\fR" 4
9976 .IX Item "n"
9977 Normal \s-1IEEE\s0 rounding mode.  Floating point numbers are rounded towards
9978 the nearest machine number or towards the even machine number in case
9979 of a tie.
9980 .IP "\fBm\fR" 4
9981 .IX Item "m"
9982 Round towards minus infinity.
9983 .IP "\fBc\fR" 4
9984 .IX Item "c"
9985 Chopped rounding mode.  Floating point numbers are rounded towards zero.
9986 .IP "\fBd\fR" 4
9987 .IX Item "d"
9988 Dynamic rounding mode.  A field in the floating point control register
9989 (\fIfpcr\fR, see Alpha architecture reference manual) controls the
9990 rounding mode in effect.  The C library initializes this register for
9991 rounding towards plus infinity.  Thus, unless your program modifies the
9992 \&\fIfpcr\fR, \fBd\fR corresponds to round towards plus infinity.
9994 .RS 4
9996 .IP "\fB\-mtrap\-precision=\fR\fItrap-precision\fR" 4
9997 .IX Item "-mtrap-precision=trap-precision"
9998 In the Alpha architecture, floating point traps are imprecise.  This
9999 means without software assistance it is impossible to recover from a
10000 floating trap and program execution normally needs to be terminated.
10001 \&\s-1GCC\s0 can generate code that can assist operating system trap handlers
10002 in determining the exact location that caused a floating point trap.
10003 Depending on the requirements of an application, different levels of
10004 precisions can be selected:
10005 .RS 4
10006 .IP "\fBp\fR" 4
10007 .IX Item "p"
10008 Program precision.  This option is the default and means a trap handler
10009 can only identify which program caused a floating point exception.
10010 .IP "\fBf\fR" 4
10011 .IX Item "f"
10012 Function precision.  The trap handler can determine the function that
10013 caused a floating point exception.
10014 .IP "\fBi\fR" 4
10015 .IX Item "i"
10016 Instruction precision.  The trap handler can determine the exact
10017 instruction that caused a floating point exception.
10019 .RS 4
10021 Other Alpha compilers provide the equivalent options called
10022 \&\fB\-scope_safe\fR and \fB\-resumption_safe\fR.
10024 .IP "\fB\-mieee\-conformant\fR" 4
10025 .IX Item "-mieee-conformant"
10026 This option marks the generated code as \s-1IEEE\s0 conformant.  You must not
10027 use this option unless you also specify \fB\-mtrap\-precision=i\fR and either
10028 \&\fB\-mfp\-trap\-mode=su\fR or \fB\-mfp\-trap\-mode=sui\fR.  Its only effect
10029 is to emit the line \fB.eflag 48\fR in the function prologue of the
10030 generated assembly file.  Under \s-1DEC\s0 Unix, this has the effect that
10031 IEEE-conformant math library routines will be linked in.
10032 .IP "\fB\-mbuild\-constants\fR" 4
10033 .IX Item "-mbuild-constants"
10034 Normally \s-1GCC\s0 examines a 32\- or 64\-bit integer constant to
10035 see if it can construct it from smaller constants in two or three
10036 instructions.  If it cannot, it will output the constant as a literal and
10037 generate code to load it from the data segment at runtime.
10039 Use this option to require \s-1GCC\s0 to construct \fIall\fR integer constants
10040 using code, even if it takes more instructions (the maximum is six).
10042 You would typically use this option to build a shared library dynamic
10043 loader.  Itself a shared library, it must relocate itself in memory
10044 before it can find the variables and constants in its own data segment.
10045 .IP "\fB\-malpha\-as\fR" 4
10046 .IX Item "-malpha-as"
10047 .PD 0
10048 .IP "\fB\-mgas\fR" 4
10049 .IX Item "-mgas"
10051 Select whether to generate code to be assembled by the vendor-supplied
10052 assembler (\fB\-malpha\-as\fR) or by the \s-1GNU\s0 assembler \fB\-mgas\fR.
10053 .IP "\fB\-mbwx\fR" 4
10054 .IX Item "-mbwx"
10055 .PD 0
10056 .IP "\fB\-mno\-bwx\fR" 4
10057 .IX Item "-mno-bwx"
10058 .IP "\fB\-mcix\fR" 4
10059 .IX Item "-mcix"
10060 .IP "\fB\-mno\-cix\fR" 4
10061 .IX Item "-mno-cix"
10062 .IP "\fB\-mfix\fR" 4
10063 .IX Item "-mfix"
10064 .IP "\fB\-mno\-fix\fR" 4
10065 .IX Item "-mno-fix"
10066 .IP "\fB\-mmax\fR" 4
10067 .IX Item "-mmax"
10068 .IP "\fB\-mno\-max\fR" 4
10069 .IX Item "-mno-max"
10071 Indicate whether \s-1GCC\s0 should generate code to use the optional \s-1BWX\s0,
10072 \&\s-1CIX\s0, \s-1FIX\s0 and \s-1MAX\s0 instruction sets.  The default is to use the instruction
10073 sets supported by the \s-1CPU\s0 type specified via \fB\-mcpu=\fR option or that
10074 of the \s-1CPU\s0 on which \s-1GCC\s0 was built if none was specified.
10075 .IP "\fB\-mfloat\-vax\fR" 4
10076 .IX Item "-mfloat-vax"
10077 .PD 0
10078 .IP "\fB\-mfloat\-ieee\fR" 4
10079 .IX Item "-mfloat-ieee"
10081 Generate code that uses (does not use) \s-1VAX\s0 F and G floating point
10082 arithmetic instead of \s-1IEEE\s0 single and double precision.
10083 .IP "\fB\-mexplicit\-relocs\fR" 4
10084 .IX Item "-mexplicit-relocs"
10085 .PD 0
10086 .IP "\fB\-mno\-explicit\-relocs\fR" 4
10087 .IX Item "-mno-explicit-relocs"
10089 Older Alpha assemblers provided no way to generate symbol relocations
10090 except via assembler macros.  Use of these macros does not allow
10091 optimal instruction scheduling.  \s-1GNU\s0 binutils as of version 2.12
10092 supports a new syntax that allows the compiler to explicitly mark
10093 which relocations should apply to which instructions.  This option
10094 is mostly useful for debugging, as \s-1GCC\s0 detects the capabilities of
10095 the assembler when it is built and sets the default accordingly.
10096 .IP "\fB\-msmall\-data\fR" 4
10097 .IX Item "-msmall-data"
10098 .PD 0
10099 .IP "\fB\-mlarge\-data\fR" 4
10100 .IX Item "-mlarge-data"
10102 When \fB\-mexplicit\-relocs\fR is in effect, static data is
10103 accessed via \fIgp-relative\fR relocations.  When \fB\-msmall\-data\fR
10104 is used, objects 8 bytes long or smaller are placed in a \fIsmall data area\fR
10105 (the \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR sections) and are accessed via
10106 16\-bit relocations off of the \f(CW$gp\fR register.  This limits the
10107 size of the small data area to 64KB, but allows the variables to be
10108 directly accessed via a single instruction.
10110 The default is \fB\-mlarge\-data\fR.  With this option the data area
10111 is limited to just below 2GB.  Programs that require more than 2GB of
10112 data must use \f(CW\*(C`malloc\*(C'\fR or \f(CW\*(C`mmap\*(C'\fR to allocate the data in the
10113 heap instead of in the program's data segment.
10115 When generating code for shared libraries, \fB\-fpic\fR implies
10116 \&\fB\-msmall\-data\fR and \fB\-fPIC\fR implies \fB\-mlarge\-data\fR.
10117 .IP "\fB\-msmall\-text\fR" 4
10118 .IX Item "-msmall-text"
10119 .PD 0
10120 .IP "\fB\-mlarge\-text\fR" 4
10121 .IX Item "-mlarge-text"
10123 When \fB\-msmall\-text\fR is used, the compiler assumes that the
10124 code of the entire program (or shared library) fits in 4MB, and is
10125 thus reachable with a branch instruction.  When \fB\-msmall\-data\fR
10126 is used, the compiler can assume that all local symbols share the
10127 same \f(CW$gp\fR value, and thus reduce the number of instructions
10128 required for a function call from 4 to 1.
10130 The default is \fB\-mlarge\-text\fR.
10131 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
10132 .IX Item "-mcpu=cpu_type"
10133 Set the instruction set and instruction scheduling parameters for
10134 machine type \fIcpu_type\fR.  You can specify either the \fB\s-1EV\s0\fR
10135 style name or the corresponding chip number.  \s-1GCC\s0 supports scheduling
10136 parameters for the \s-1EV4\s0, \s-1EV5\s0 and \s-1EV6\s0 family of processors and will
10137 choose the default values for the instruction set from the processor
10138 you specify.  If you do not specify a processor type, \s-1GCC\s0 will default
10139 to the processor on which the compiler was built.
10141 Supported values for \fIcpu_type\fR are
10142 .RS 4
10143 .IP "\fBev4\fR" 4
10144 .IX Item "ev4"
10145 .PD 0
10146 .IP "\fBev45\fR" 4
10147 .IX Item "ev45"
10148 .IP "\fB21064\fR" 4
10149 .IX Item "21064"
10151 Schedules as an \s-1EV4\s0 and has no instruction set extensions.
10152 .IP "\fBev5\fR" 4
10153 .IX Item "ev5"
10154 .PD 0
10155 .IP "\fB21164\fR" 4
10156 .IX Item "21164"
10158 Schedules as an \s-1EV5\s0 and has no instruction set extensions.
10159 .IP "\fBev56\fR" 4
10160 .IX Item "ev56"
10161 .PD 0
10162 .IP "\fB21164a\fR" 4
10163 .IX Item "21164a"
10165 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 extension.
10166 .IP "\fBpca56\fR" 4
10167 .IX Item "pca56"
10168 .PD 0
10169 .IP "\fB21164pc\fR" 4
10170 .IX Item "21164pc"
10171 .IP "\fB21164PC\fR" 4
10172 .IX Item "21164PC"
10174 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 and \s-1MAX\s0 extensions.
10175 .IP "\fBev6\fR" 4
10176 .IX Item "ev6"
10177 .PD 0
10178 .IP "\fB21264\fR" 4
10179 .IX Item "21264"
10181 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
10182 .IP "\fBev67\fR" 4
10183 .IX Item "ev67"
10184 .PD 0
10185 .IP "\fB21264a\fR" 4
10186 .IX Item "21264a"
10188 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1CIX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
10190 .RS 4
10192 Native Linux/GNU toolchains also support the value \fBnative\fR,
10193 which selects the best architecture option for the host processor.
10194 \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize
10195 the processor.
10197 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
10198 .IX Item "-mtune=cpu_type"
10199 Set only the instruction scheduling parameters for machine type
10200 \&\fIcpu_type\fR.  The instruction set is not changed.
10202 Native Linux/GNU toolchains also support the value \fBnative\fR,
10203 which selects the best architecture option for the host processor.
10204 \&\fB\-mtune=native\fR has no effect if \s-1GCC\s0 does not recognize
10205 the processor.
10206 .IP "\fB\-mmemory\-latency=\fR\fItime\fR" 4
10207 .IX Item "-mmemory-latency=time"
10208 Sets the latency the scheduler should assume for typical memory
10209 references as seen by the application.  This number is highly
10210 dependent on the memory access patterns used by the application
10211 and the size of the external cache on the machine.
10213 Valid options for \fItime\fR are
10214 .RS 4
10215 .IP "\fInumber\fR" 4
10216 .IX Item "number"
10217 A decimal number representing clock cycles.
10218 .IP "\fBL1\fR" 4
10219 .IX Item "L1"
10220 .PD 0
10221 .IP "\fBL2\fR" 4
10222 .IX Item "L2"
10223 .IP "\fBL3\fR" 4
10224 .IX Item "L3"
10225 .IP "\fBmain\fR" 4
10226 .IX Item "main"
10228 The compiler contains estimates of the number of clock cycles for
10229 \&\*(L"typical\*(R" \s-1EV4\s0 & \s-1EV5\s0 hardware for the Level 1, 2 & 3 caches
10230 (also called Dcache, Scache, and Bcache), as well as to main memory.
10231 Note that L3 is only valid for \s-1EV5\s0.
10233 .RS 4
10236 \fI\s-1DEC\s0 Alpha/VMS Options\fR
10237 .IX Subsection "DEC Alpha/VMS Options"
10239 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha/VMS implementations:
10240 .IP "\fB\-mvms\-return\-codes\fR" 4
10241 .IX Item "-mvms-return-codes"
10242 Return \s-1VMS\s0 condition codes from main.  The default is to return \s-1POSIX\s0
10243 style condition (e.g. error) codes.
10244 .IP "\fB\-mdebug\-main=\fR\fIprefix\fR" 4
10245 .IX Item "-mdebug-main=prefix"
10246 Flag the first routine whose name starts with \fIprefix\fR as the main
10247 routine for the debugger.
10248 .IP "\fB\-mmalloc64\fR" 4
10249 .IX Item "-mmalloc64"
10250 Default to 64bit memory allocation routines.
10252 \fI\s-1FR30\s0 Options\fR
10253 .IX Subsection "FR30 Options"
10255 These options are defined specifically for the \s-1FR30\s0 port.
10256 .IP "\fB\-msmall\-model\fR" 4
10257 .IX Item "-msmall-model"
10258 Use the small address space model.  This can produce smaller code, but
10259 it does assume that all symbolic values and addresses will fit into a
10260 20\-bit range.
10261 .IP "\fB\-mno\-lsim\fR" 4
10262 .IX Item "-mno-lsim"
10263 Assume that run-time support has been provided and so there is no need
10264 to include the simulator library (\fIlibsim.a\fR) on the linker
10265 command line.
10267 \fI\s-1FRV\s0 Options\fR
10268 .IX Subsection "FRV Options"
10269 .IP "\fB\-mgpr\-32\fR" 4
10270 .IX Item "-mgpr-32"
10271 Only use the first 32 general purpose registers.
10272 .IP "\fB\-mgpr\-64\fR" 4
10273 .IX Item "-mgpr-64"
10274 Use all 64 general purpose registers.
10275 .IP "\fB\-mfpr\-32\fR" 4
10276 .IX Item "-mfpr-32"
10277 Use only the first 32 floating point registers.
10278 .IP "\fB\-mfpr\-64\fR" 4
10279 .IX Item "-mfpr-64"
10280 Use all 64 floating point registers
10281 .IP "\fB\-mhard\-float\fR" 4
10282 .IX Item "-mhard-float"
10283 Use hardware instructions for floating point operations.
10284 .IP "\fB\-msoft\-float\fR" 4
10285 .IX Item "-msoft-float"
10286 Use library routines for floating point operations.
10287 .IP "\fB\-malloc\-cc\fR" 4
10288 .IX Item "-malloc-cc"
10289 Dynamically allocate condition code registers.
10290 .IP "\fB\-mfixed\-cc\fR" 4
10291 .IX Item "-mfixed-cc"
10292 Do not try to dynamically allocate condition code registers, only
10293 use \f(CW\*(C`icc0\*(C'\fR and \f(CW\*(C`fcc0\*(C'\fR.
10294 .IP "\fB\-mdword\fR" 4
10295 .IX Item "-mdword"
10296 Change \s-1ABI\s0 to use double word insns.
10297 .IP "\fB\-mno\-dword\fR" 4
10298 .IX Item "-mno-dword"
10299 Do not use double word instructions.
10300 .IP "\fB\-mdouble\fR" 4
10301 .IX Item "-mdouble"
10302 Use floating point double instructions.
10303 .IP "\fB\-mno\-double\fR" 4
10304 .IX Item "-mno-double"
10305 Do not use floating point double instructions.
10306 .IP "\fB\-mmedia\fR" 4
10307 .IX Item "-mmedia"
10308 Use media instructions.
10309 .IP "\fB\-mno\-media\fR" 4
10310 .IX Item "-mno-media"
10311 Do not use media instructions.
10312 .IP "\fB\-mmuladd\fR" 4
10313 .IX Item "-mmuladd"
10314 Use multiply and add/subtract instructions.
10315 .IP "\fB\-mno\-muladd\fR" 4
10316 .IX Item "-mno-muladd"
10317 Do not use multiply and add/subtract instructions.
10318 .IP "\fB\-mfdpic\fR" 4
10319 .IX Item "-mfdpic"
10320 Select the \s-1FDPIC\s0 \s-1ABI\s0, that uses function descriptors to represent
10321 pointers to functions.  Without any PIC/PIE\-related options, it
10322 implies \fB\-fPIE\fR.  With \fB\-fpic\fR or \fB\-fpie\fR, it
10323 assumes \s-1GOT\s0 entries and small data are within a 12\-bit range from the
10324 \&\s-1GOT\s0 base address; with \fB\-fPIC\fR or \fB\-fPIE\fR, \s-1GOT\s0 offsets
10325 are computed with 32 bits.
10326 With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
10327 .IP "\fB\-minline\-plt\fR" 4
10328 .IX Item "-minline-plt"
10329 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
10330 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
10331 It's enabled by default if optimizing for speed and compiling for
10332 shared libraries (i.e., \fB\-fPIC\fR or \fB\-fpic\fR), or when an
10333 optimization option such as \fB\-O3\fR or above is present in the
10334 command line.
10335 .IP "\fB\-mTLS\fR" 4
10336 .IX Item "-mTLS"
10337 Assume a large \s-1TLS\s0 segment when generating thread-local code.
10338 .IP "\fB\-mtls\fR" 4
10339 .IX Item "-mtls"
10340 Do not assume a large \s-1TLS\s0 segment when generating thread-local code.
10341 .IP "\fB\-mgprel\-ro\fR" 4
10342 .IX Item "-mgprel-ro"
10343 Enable the use of \f(CW\*(C`GPREL\*(C'\fR relocations in the \s-1FDPIC\s0 \s-1ABI\s0 for data
10344 that is known to be in read-only sections.  It's enabled by default,
10345 except for \fB\-fpic\fR or \fB\-fpie\fR: even though it may help
10346 make the global offset table smaller, it trades 1 instruction for 4.
10347 With \fB\-fPIC\fR or \fB\-fPIE\fR, it trades 3 instructions for 4,
10348 one of which may be shared by multiple symbols, and it avoids the need
10349 for a \s-1GOT\s0 entry for the referenced symbol, so it's more likely to be a
10350 win.  If it is not, \fB\-mno\-gprel\-ro\fR can be used to disable it.
10351 .IP "\fB\-multilib\-library\-pic\fR" 4
10352 .IX Item "-multilib-library-pic"
10353 Link with the (library, not \s-1FD\s0) pic libraries.  It's implied by
10354 \&\fB\-mlibrary\-pic\fR, as well as by \fB\-fPIC\fR and
10355 \&\fB\-fpic\fR without \fB\-mfdpic\fR.  You should never have to use
10356 it explicitly.
10357 .IP "\fB\-mlinked\-fp\fR" 4
10358 .IX Item "-mlinked-fp"
10359 Follow the \s-1EABI\s0 requirement of always creating a frame pointer whenever
10360 a stack frame is allocated.  This option is enabled by default and can
10361 be disabled with \fB\-mno\-linked\-fp\fR.
10362 .IP "\fB\-mlong\-calls\fR" 4
10363 .IX Item "-mlong-calls"
10364 Use indirect addressing to call functions outside the current
10365 compilation unit.  This allows the functions to be placed anywhere
10366 within the 32\-bit address space.
10367 .IP "\fB\-malign\-labels\fR" 4
10368 .IX Item "-malign-labels"
10369 Try to align labels to an 8\-byte boundary by inserting nops into the
10370 previous packet.  This option only has an effect when \s-1VLIW\s0 packing
10371 is enabled.  It doesn't create new packets; it merely adds nops to
10372 existing ones.
10373 .IP "\fB\-mlibrary\-pic\fR" 4
10374 .IX Item "-mlibrary-pic"
10375 Generate position-independent \s-1EABI\s0 code.
10376 .IP "\fB\-macc\-4\fR" 4
10377 .IX Item "-macc-4"
10378 Use only the first four media accumulator registers.
10379 .IP "\fB\-macc\-8\fR" 4
10380 .IX Item "-macc-8"
10381 Use all eight media accumulator registers.
10382 .IP "\fB\-mpack\fR" 4
10383 .IX Item "-mpack"
10384 Pack \s-1VLIW\s0 instructions.
10385 .IP "\fB\-mno\-pack\fR" 4
10386 .IX Item "-mno-pack"
10387 Do not pack \s-1VLIW\s0 instructions.
10388 .IP "\fB\-mno\-eflags\fR" 4
10389 .IX Item "-mno-eflags"
10390 Do not mark \s-1ABI\s0 switches in e_flags.
10391 .IP "\fB\-mcond\-move\fR" 4
10392 .IX Item "-mcond-move"
10393 Enable the use of conditional-move instructions (default).
10395 This switch is mainly for debugging the compiler and will likely be removed
10396 in a future version.
10397 .IP "\fB\-mno\-cond\-move\fR" 4
10398 .IX Item "-mno-cond-move"
10399 Disable the use of conditional-move instructions.
10401 This switch is mainly for debugging the compiler and will likely be removed
10402 in a future version.
10403 .IP "\fB\-mscc\fR" 4
10404 .IX Item "-mscc"
10405 Enable the use of conditional set instructions (default).
10407 This switch is mainly for debugging the compiler and will likely be removed
10408 in a future version.
10409 .IP "\fB\-mno\-scc\fR" 4
10410 .IX Item "-mno-scc"
10411 Disable the use of conditional set instructions.
10413 This switch is mainly for debugging the compiler and will likely be removed
10414 in a future version.
10415 .IP "\fB\-mcond\-exec\fR" 4
10416 .IX Item "-mcond-exec"
10417 Enable the use of conditional execution (default).
10419 This switch is mainly for debugging the compiler and will likely be removed
10420 in a future version.
10421 .IP "\fB\-mno\-cond\-exec\fR" 4
10422 .IX Item "-mno-cond-exec"
10423 Disable the use of conditional execution.
10425 This switch is mainly for debugging the compiler and will likely be removed
10426 in a future version.
10427 .IP "\fB\-mvliw\-branch\fR" 4
10428 .IX Item "-mvliw-branch"
10429 Run a pass to pack branches into \s-1VLIW\s0 instructions (default).
10431 This switch is mainly for debugging the compiler and will likely be removed
10432 in a future version.
10433 .IP "\fB\-mno\-vliw\-branch\fR" 4
10434 .IX Item "-mno-vliw-branch"
10435 Do not run a pass to pack branches into \s-1VLIW\s0 instructions.
10437 This switch is mainly for debugging the compiler and will likely be removed
10438 in a future version.
10439 .IP "\fB\-mmulti\-cond\-exec\fR" 4
10440 .IX Item "-mmulti-cond-exec"
10441 Enable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution
10442 (default).
10444 This switch is mainly for debugging the compiler and will likely be removed
10445 in a future version.
10446 .IP "\fB\-mno\-multi\-cond\-exec\fR" 4
10447 .IX Item "-mno-multi-cond-exec"
10448 Disable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution.
10450 This switch is mainly for debugging the compiler and will likely be removed
10451 in a future version.
10452 .IP "\fB\-mnested\-cond\-exec\fR" 4
10453 .IX Item "-mnested-cond-exec"
10454 Enable nested conditional execution optimizations (default).
10456 This switch is mainly for debugging the compiler and will likely be removed
10457 in a future version.
10458 .IP "\fB\-mno\-nested\-cond\-exec\fR" 4
10459 .IX Item "-mno-nested-cond-exec"
10460 Disable nested conditional execution optimizations.
10462 This switch is mainly for debugging the compiler and will likely be removed
10463 in a future version.
10464 .IP "\fB\-moptimize\-membar\fR" 4
10465 .IX Item "-moptimize-membar"
10466 This switch removes redundant \f(CW\*(C`membar\*(C'\fR instructions from the
10467 compiler generated code.  It is enabled by default.
10468 .IP "\fB\-mno\-optimize\-membar\fR" 4
10469 .IX Item "-mno-optimize-membar"
10470 This switch disables the automatic removal of redundant \f(CW\*(C`membar\*(C'\fR
10471 instructions from the generated code.
10472 .IP "\fB\-mtomcat\-stats\fR" 4
10473 .IX Item "-mtomcat-stats"
10474 Cause gas to print out tomcat statistics.
10475 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
10476 .IX Item "-mcpu=cpu"
10477 Select the processor type for which to generate code.  Possible values are
10478 \&\fBfrv\fR, \fBfr550\fR, \fBtomcat\fR, \fBfr500\fR, \fBfr450\fR,
10479 \&\fBfr405\fR, \fBfr400\fR, \fBfr300\fR and \fBsimple\fR.
10481 \fIGNU/Linux Options\fR
10482 .IX Subsection "GNU/Linux Options"
10484 These \fB\-m\fR options are defined for GNU/Linux targets:
10485 .IP "\fB\-mglibc\fR" 4
10486 .IX Item "-mglibc"
10487 Use the \s-1GNU\s0 C library instead of uClibc.  This is the default except
10488 on \fB*\-*\-linux\-*uclibc*\fR targets.
10489 .IP "\fB\-muclibc\fR" 4
10490 .IX Item "-muclibc"
10491 Use uClibc instead of the \s-1GNU\s0 C library.  This is the default on
10492 \&\fB*\-*\-linux\-*uclibc*\fR targets.
10494 \fIH8/300 Options\fR
10495 .IX Subsection "H8/300 Options"
10497 These \fB\-m\fR options are defined for the H8/300 implementations:
10498 .IP "\fB\-mrelax\fR" 4
10499 .IX Item "-mrelax"
10500 Shorten some address references at link time, when possible; uses the
10501 linker option \fB\-relax\fR.  
10502 .IP "\fB\-mh\fR" 4
10503 .IX Item "-mh"
10504 Generate code for the H8/300H.
10505 .IP "\fB\-ms\fR" 4
10506 .IX Item "-ms"
10507 Generate code for the H8S.
10508 .IP "\fB\-mn\fR" 4
10509 .IX Item "-mn"
10510 Generate code for the H8S and H8/300H in the normal mode.  This switch
10511 must be used either with \fB\-mh\fR or \fB\-ms\fR.
10512 .IP "\fB\-ms2600\fR" 4
10513 .IX Item "-ms2600"
10514 Generate code for the H8S/2600.  This switch must be used with \fB\-ms\fR.
10515 .IP "\fB\-mint32\fR" 4
10516 .IX Item "-mint32"
10517 Make \f(CW\*(C`int\*(C'\fR data 32 bits by default.
10518 .IP "\fB\-malign\-300\fR" 4
10519 .IX Item "-malign-300"
10520 On the H8/300H and H8S, use the same alignment rules as for the H8/300.
10521 The default for the H8/300H and H8S is to align longs and floats on 4
10522 byte boundaries.
10523 \&\fB\-malign\-300\fR causes them to be aligned on 2 byte boundaries.
10524 This option has no effect on the H8/300.
10526 \fI\s-1HPPA\s0 Options\fR
10527 .IX Subsection "HPPA Options"
10529 These \fB\-m\fR options are defined for the \s-1HPPA\s0 family of computers:
10530 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
10531 .IX Item "-march=architecture-type"
10532 Generate code for the specified architecture.  The choices for
10533 \&\fIarchitecture-type\fR are \fB1.0\fR for \s-1PA\s0 1.0, \fB1.1\fR for \s-1PA\s0
10534 1.1, and \fB2.0\fR for \s-1PA\s0 2.0 processors.  Refer to
10535 \&\fI/usr/lib/sched.models\fR on an HP-UX system to determine the proper
10536 architecture option for your machine.  Code compiled for lower numbered
10537 architectures will run on higher numbered architectures, but not the
10538 other way around.
10539 .IP "\fB\-mpa\-risc\-1\-0\fR" 4
10540 .IX Item "-mpa-risc-1-0"
10541 .PD 0
10542 .IP "\fB\-mpa\-risc\-1\-1\fR" 4
10543 .IX Item "-mpa-risc-1-1"
10544 .IP "\fB\-mpa\-risc\-2\-0\fR" 4
10545 .IX Item "-mpa-risc-2-0"
10547 Synonyms for \fB\-march=1.0\fR, \fB\-march=1.1\fR, and \fB\-march=2.0\fR respectively.
10548 .IP "\fB\-mbig\-switch\fR" 4
10549 .IX Item "-mbig-switch"
10550 Generate code suitable for big switch tables.  Use this option only if
10551 the assembler/linker complain about out of range branches within a switch
10552 table.
10553 .IP "\fB\-mjump\-in\-delay\fR" 4
10554 .IX Item "-mjump-in-delay"
10555 Fill delay slots of function calls with unconditional jump instructions
10556 by modifying the return pointer for the function call to be the target
10557 of the conditional jump.
10558 .IP "\fB\-mdisable\-fpregs\fR" 4
10559 .IX Item "-mdisable-fpregs"
10560 Prevent floating point registers from being used in any manner.  This is
10561 necessary for compiling kernels which perform lazy context switching of
10562 floating point registers.  If you use this option and attempt to perform
10563 floating point operations, the compiler will abort.
10564 .IP "\fB\-mdisable\-indexing\fR" 4
10565 .IX Item "-mdisable-indexing"
10566 Prevent the compiler from using indexing address modes.  This avoids some
10567 rather obscure problems when compiling \s-1MIG\s0 generated code under \s-1MACH\s0.
10568 .IP "\fB\-mno\-space\-regs\fR" 4
10569 .IX Item "-mno-space-regs"
10570 Generate code that assumes the target has no space registers.  This allows
10571 \&\s-1GCC\s0 to generate faster indirect calls and use unscaled index address modes.
10573 Such code is suitable for level 0 \s-1PA\s0 systems and kernels.
10574 .IP "\fB\-mfast\-indirect\-calls\fR" 4
10575 .IX Item "-mfast-indirect-calls"
10576 Generate code that assumes calls never cross space boundaries.  This
10577 allows \s-1GCC\s0 to emit code which performs faster indirect calls.
10579 This option will not work in the presence of shared libraries or nested
10580 functions.
10581 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
10582 .IX Item "-mfixed-range=register-range"
10583 Generate code treating the given register range as fixed registers.
10584 A fixed register is one that the register allocator can not use.  This is
10585 useful when compiling kernel code.  A register range is specified as
10586 two registers separated by a dash.  Multiple register ranges can be
10587 specified separated by a comma.
10588 .IP "\fB\-mlong\-load\-store\fR" 4
10589 .IX Item "-mlong-load-store"
10590 Generate 3\-instruction load and store sequences as sometimes required by
10591 the HP-UX 10 linker.  This is equivalent to the \fB+k\fR option to
10592 the \s-1HP\s0 compilers.
10593 .IP "\fB\-mportable\-runtime\fR" 4
10594 .IX Item "-mportable-runtime"
10595 Use the portable calling conventions proposed by \s-1HP\s0 for \s-1ELF\s0 systems.
10596 .IP "\fB\-mgas\fR" 4
10597 .IX Item "-mgas"
10598 Enable the use of assembler directives only \s-1GAS\s0 understands.
10599 .IP "\fB\-mschedule=\fR\fIcpu-type\fR" 4
10600 .IX Item "-mschedule=cpu-type"
10601 Schedule code according to the constraints for the machine type
10602 \&\fIcpu-type\fR.  The choices for \fIcpu-type\fR are \fB700\fR
10603 \&\fB7100\fR, \fB7100LC\fR, \fB7200\fR, \fB7300\fR and \fB8000\fR.  Refer
10604 to \fI/usr/lib/sched.models\fR on an HP-UX system to determine the
10605 proper scheduling option for your machine.  The default scheduling is
10606 \&\fB8000\fR.
10607 .IP "\fB\-mlinker\-opt\fR" 4
10608 .IX Item "-mlinker-opt"
10609 Enable the optimization pass in the HP-UX linker.  Note this makes symbolic
10610 debugging impossible.  It also triggers a bug in the HP-UX 8 and HP-UX 9
10611 linkers in which they give bogus error messages when linking some programs.
10612 .IP "\fB\-msoft\-float\fR" 4
10613 .IX Item "-msoft-float"
10614 Generate output containing library calls for floating point.
10615 \&\fBWarning:\fR the requisite libraries are not available for all \s-1HPPA\s0
10616 targets.  Normally the facilities of the machine's usual C compiler are
10617 used, but this cannot be done directly in cross\-compilation.  You must make
10618 your own arrangements to provide suitable library functions for
10619 cross\-compilation.
10621 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
10622 therefore, it is only useful if you compile \fIall\fR of a program with
10623 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
10624 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
10625 this to work.
10626 .IP "\fB\-msio\fR" 4
10627 .IX Item "-msio"
10628 Generate the predefine, \f(CW\*(C`_SIO\*(C'\fR, for server \s-1IO\s0.  The default is
10629 \&\fB\-mwsio\fR.  This generates the predefines, \f(CW\*(C`_\|_hp9000s700\*(C'\fR,
10630 \&\f(CW\*(C`_\|_hp9000s700_\|_\*(C'\fR and \f(CW\*(C`_WSIO\*(C'\fR, for workstation \s-1IO\s0.  These
10631 options are available under HP-UX and \s-1HI\-UX\s0.
10632 .IP "\fB\-mgnu\-ld\fR" 4
10633 .IX Item "-mgnu-ld"
10634 Use \s-1GNU\s0 ld specific options.  This passes \fB\-shared\fR to ld when
10635 building a shared library.  It is the default when \s-1GCC\s0 is configured,
10636 explicitly or implicitly, with the \s-1GNU\s0 linker.  This option does not
10637 have any affect on which ld is called, it only changes what parameters
10638 are passed to that ld.  The ld that is called is determined by the
10639 \&\fB\-\-with\-ld\fR configure option, \s-1GCC\s0's program search path, and
10640 finally by the user's \fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed
10641 using \fBwhich `gcc \-print\-prog\-name=ld`\fR.  This option is only available
10642 on the 64 bit HP-UX \s-1GCC\s0, i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
10643 .IP "\fB\-mhp\-ld\fR" 4
10644 .IX Item "-mhp-ld"
10645 Use \s-1HP\s0 ld specific options.  This passes \fB\-b\fR to ld when building
10646 a shared library and passes \fB+Accept TypeMismatch\fR to ld on all
10647 links.  It is the default when \s-1GCC\s0 is configured, explicitly or
10648 implicitly, with the \s-1HP\s0 linker.  This option does not have any affect on
10649 which ld is called, it only changes what parameters are passed to that
10650 ld.  The ld that is called is determined by the \fB\-\-with\-ld\fR
10651 configure option, \s-1GCC\s0's program search path, and finally by the user's
10652 \&\fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed using \fBwhich
10653 `gcc \-print\-prog\-name=ld`\fR.  This option is only available on the 64 bit
10654 HP-UX \s-1GCC\s0, i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
10655 .IP "\fB\-mlong\-calls\fR" 4
10656 .IX Item "-mlong-calls"
10657 Generate code that uses long call sequences.  This ensures that a call
10658 is always able to reach linker generated stubs.  The default is to generate
10659 long calls only when the distance from the call site to the beginning
10660 of the function or translation unit, as the case may be, exceeds a
10661 predefined limit set by the branch type being used.  The limits for
10662 normal calls are 7,600,000 and 240,000 bytes, respectively for the
10663 \&\s-1PA\s0 2.0 and \s-1PA\s0 1.X architectures.  Sibcalls are always limited at
10664 240,000 bytes.
10666 Distances are measured from the beginning of functions when using the
10667 \&\fB\-ffunction\-sections\fR option, or when using the \fB\-mgas\fR
10668 and \fB\-mno\-portable\-runtime\fR options together under HP-UX with
10669 the \s-1SOM\s0 linker.
10671 It is normally not desirable to use this option as it will degrade
10672 performance.  However, it may be useful in large applications,
10673 particularly when partial linking is used to build the application.
10675 The types of long calls used depends on the capabilities of the
10676 assembler and linker, and the type of code being generated.  The
10677 impact on systems that support long absolute calls, and long pic
10678 symbol-difference or pc-relative calls should be relatively small.
10679 However, an indirect call is used on 32\-bit \s-1ELF\s0 systems in pic code
10680 and it is quite long.
10681 .IP "\fB\-munix=\fR\fIunix-std\fR" 4
10682 .IX Item "-munix=unix-std"
10683 Generate compiler predefines and select a startfile for the specified
10684 \&\s-1UNIX\s0 standard.  The choices for \fIunix-std\fR are \fB93\fR, \fB95\fR
10685 and \fB98\fR.  \fB93\fR is supported on all HP-UX versions.  \fB95\fR
10686 is available on HP-UX 10.10 and later.  \fB98\fR is available on HP-UX
10687 11.11 and later.  The default values are \fB93\fR for HP-UX 10.00,
10688 \&\fB95\fR for HP-UX 10.10 though to 11.00, and \fB98\fR for HP-UX 11.11
10689 and later.
10691 \&\fB\-munix=93\fR provides the same predefines as \s-1GCC\s0 3.3 and 3.4.
10692 \&\fB\-munix=95\fR provides additional predefines for \f(CW\*(C`XOPEN_UNIX\*(C'\fR
10693 and \f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, and the startfile \fIunix95.o\fR.
10694 \&\fB\-munix=98\fR provides additional predefines for \f(CW\*(C`_XOPEN_UNIX\*(C'\fR,
10695 \&\f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, \f(CW\*(C`_INCLUDE_\|_STDC_A1_SOURCE\*(C'\fR and
10696 \&\f(CW\*(C`_INCLUDE_XOPEN_SOURCE_500\*(C'\fR, and the startfile \fIunix98.o\fR.
10698 It is \fIimportant\fR to note that this option changes the interfaces
10699 for various library routines.  It also affects the operational behavior
10700 of the C library.  Thus, \fIextreme\fR care is needed in using this
10701 option.
10703 Library code that is intended to operate with more than one \s-1UNIX\s0
10704 standard must test, set and restore the variable \fI_\|_xpg4_extended_mask\fR
10705 as appropriate.  Most \s-1GNU\s0 software doesn't provide this capability.
10706 .IP "\fB\-nolibdld\fR" 4
10707 .IX Item "-nolibdld"
10708 Suppress the generation of link options to search libdld.sl when the
10709 \&\fB\-static\fR option is specified on HP-UX 10 and later.
10710 .IP "\fB\-static\fR" 4
10711 .IX Item "-static"
10712 The HP-UX implementation of setlocale in libc has a dependency on
10713 libdld.sl.  There isn't an archive version of libdld.sl.  Thus,
10714 when the \fB\-static\fR option is specified, special link options
10715 are needed to resolve this dependency.
10717 On HP-UX 10 and later, the \s-1GCC\s0 driver adds the necessary options to
10718 link with libdld.sl when the \fB\-static\fR option is specified.
10719 This causes the resulting binary to be dynamic.  On the 64\-bit port,
10720 the linkers generate dynamic binaries by default in any case.  The
10721 \&\fB\-nolibdld\fR option can be used to prevent the \s-1GCC\s0 driver from
10722 adding these link options.
10723 .IP "\fB\-threads\fR" 4
10724 .IX Item "-threads"
10725 Add support for multithreading with the \fIdce thread\fR library
10726 under \s-1HP\-UX\s0.  This option sets flags for both the preprocessor and
10727 linker.
10729 \fIIntel 386 and \s-1AMD\s0 x86\-64 Options\fR
10730 .IX Subsection "Intel 386 and AMD x86-64 Options"
10732 These \fB\-m\fR options are defined for the i386 and x86\-64 family of
10733 computers:
10734 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
10735 .IX Item "-mtune=cpu-type"
10736 Tune to \fIcpu-type\fR everything applicable about the generated code, except
10737 for the \s-1ABI\s0 and the set of available instructions.  The choices for
10738 \&\fIcpu-type\fR are:
10739 .RS 4
10740 .IP "\fIgeneric\fR" 4
10741 .IX Item "generic"
10742 Produce code optimized for the most common \s-1IA32/AMD64/EM64T\s0 processors.
10743 If you know the \s-1CPU\s0 on which your code will run, then you should use
10744 the corresponding \fB\-mtune\fR option instead of
10745 \&\fB\-mtune=generic\fR.  But, if you do not know exactly what \s-1CPU\s0 users
10746 of your application will have, then you should use this option.
10748 As new processors are deployed in the marketplace, the behavior of this
10749 option will change.  Therefore, if you upgrade to a newer version of
10750 \&\s-1GCC\s0, the code generated option will change to reflect the processors
10751 that were most common when that version of \s-1GCC\s0 was released.
10753 There is no \fB\-march=generic\fR option because \fB\-march\fR
10754 indicates the instruction set the compiler can use, and there is no
10755 generic instruction set applicable to all processors.  In contrast,
10756 \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
10757 processors) for which the code is optimized.
10758 .IP "\fInative\fR" 4
10759 .IX Item "native"
10760 This selects the \s-1CPU\s0 to tune for at compilation time by determining
10761 the processor type of the compiling machine.  Using \fB\-mtune=native\fR
10762 will produce code optimized for the local machine under the constraints
10763 of the selected instruction set.  Using \fB\-march=native\fR will
10764 enable all instruction subsets supported by the local machine (hence
10765 the result might not run on different machines).
10766 .IP "\fIi386\fR" 4
10767 .IX Item "i386"
10768 Original Intel's i386 \s-1CPU\s0.
10769 .IP "\fIi486\fR" 4
10770 .IX Item "i486"
10771 Intel's i486 \s-1CPU\s0.  (No scheduling is implemented for this chip.)
10772 .IP "\fIi586, pentium\fR" 4
10773 .IX Item "i586, pentium"
10774 Intel Pentium \s-1CPU\s0 with no \s-1MMX\s0 support.
10775 .IP "\fIpentium-mmx\fR" 4
10776 .IX Item "pentium-mmx"
10777 Intel PentiumMMX \s-1CPU\s0 based on Pentium core with \s-1MMX\s0 instruction set support.
10778 .IP "\fIpentiumpro\fR" 4
10779 .IX Item "pentiumpro"
10780 Intel PentiumPro \s-1CPU\s0.
10781 .IP "\fIi686\fR" 4
10782 .IX Item "i686"
10783 Same as \f(CW\*(C`generic\*(C'\fR, but when used as \f(CW\*(C`march\*(C'\fR option, PentiumPro
10784 instruction set will be used, so the code will run on all i686 family chips.
10785 .IP "\fIpentium2\fR" 4
10786 .IX Item "pentium2"
10787 Intel Pentium2 \s-1CPU\s0 based on PentiumPro core with \s-1MMX\s0 instruction set support.
10788 .IP "\fIpentium3, pentium3m\fR" 4
10789 .IX Item "pentium3, pentium3m"
10790 Intel Pentium3 \s-1CPU\s0 based on PentiumPro core with \s-1MMX\s0 and \s-1SSE\s0 instruction set
10791 support.
10792 .IP "\fIpentium-m\fR" 4
10793 .IX Item "pentium-m"
10794 Low power version of Intel Pentium3 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set
10795 support.  Used by Centrino notebooks.
10796 .IP "\fIpentium4, pentium4m\fR" 4
10797 .IX Item "pentium4, pentium4m"
10798 Intel Pentium4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set support.
10799 .IP "\fIprescott\fR" 4
10800 .IX Item "prescott"
10801 Improved version of Intel Pentium4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0 and \s-1SSE3\s0 instruction
10802 set support.
10803 .IP "\fInocona\fR" 4
10804 .IX Item "nocona"
10805 Improved version of Intel Pentium4 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0,
10806 \&\s-1SSE2\s0 and \s-1SSE3\s0 instruction set support.
10807 .IP "\fIcore2\fR" 4
10808 .IX Item "core2"
10809 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
10810 instruction set support.
10811 .IP "\fIatom\fR" 4
10812 .IX Item "atom"
10813 Intel Atom \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0 and \s-1SSSE3\s0
10814 instruction set support.
10815 .IP "\fIk6\fR" 4
10816 .IX Item "k6"
10817 \&\s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 instruction set support.
10818 .IP "\fIk6\-2, k6\-3\fR" 4
10819 .IX Item "k6-2, k6-3"
10820 Improved versions of \s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.
10821 .IP "\fIathlon, athlon-tbird\fR" 4
10822 .IX Item "athlon, athlon-tbird"
10823 \&\s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3dNOW!, enhanced 3DNow! and \s-1SSE\s0 prefetch instructions
10824 support.
10825 .IP "\fIathlon\-4, athlon\-xp, athlon-mp\fR" 4
10826 .IX Item "athlon-4, athlon-xp, athlon-mp"
10827 Improved \s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3DNow!, enhanced 3DNow! and full \s-1SSE\s0
10828 instruction set support.
10829 .IP "\fIk8, opteron, athlon64, athlon-fx\fR" 4
10830 .IX Item "k8, opteron, athlon64, athlon-fx"
10831 \&\s-1AMD\s0 K8 core based CPUs with x86\-64 instruction set support.  (This supersets
10832 \&\s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, 3DNow!, enhanced 3DNow! and 64\-bit instruction set extensions.)
10833 .IP "\fIk8\-sse3, opteron\-sse3, athlon64\-sse3\fR" 4
10834 .IX Item "k8-sse3, opteron-sse3, athlon64-sse3"
10835 Improved versions of k8, opteron and athlon64 with \s-1SSE3\s0 instruction set support.
10836 .IP "\fIamdfam10, barcelona\fR" 4
10837 .IX Item "amdfam10, barcelona"
10838 \&\s-1AMD\s0 Family 10h core based CPUs with x86\-64 instruction set support.  (This
10839 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
10840 instruction set extensions.)
10841 .IP "\fIwinchip\-c6\fR" 4
10842 .IX Item "winchip-c6"
10843 \&\s-1IDT\s0 Winchip C6 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 instruction
10844 set support.
10845 .IP "\fIwinchip2\fR" 4
10846 .IX Item "winchip2"
10847 \&\s-1IDT\s0 Winchip2 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 and 3DNow!
10848 instruction set support.
10849 .IP "\fIc3\fR" 4
10850 .IX Item "c3"
10851 Via C3 \s-1CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.  (No scheduling is
10852 implemented for this chip.)
10853 .IP "\fIc3\-2\fR" 4
10854 .IX Item "c3-2"
10855 Via C3\-2 \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.  (No scheduling is
10856 implemented for this chip.)
10857 .IP "\fIgeode\fR" 4
10858 .IX Item "geode"
10859 Embedded \s-1AMD\s0 \s-1CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.
10861 .RS 4
10863 While picking a specific \fIcpu-type\fR will schedule things appropriately
10864 for that particular chip, the compiler will not generate any code that
10865 does not run on the i386 without the \fB\-march=\fR\fIcpu-type\fR option
10866 being used.
10868 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
10869 .IX Item "-march=cpu-type"
10870 Generate instructions for the machine type \fIcpu-type\fR.  The choices
10871 for \fIcpu-type\fR are the same as for \fB\-mtune\fR.  Moreover,
10872 specifying \fB\-march=\fR\fIcpu-type\fR implies \fB\-mtune=\fR\fIcpu-type\fR.
10873 .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
10874 .IX Item "-mcpu=cpu-type"
10875 A deprecated synonym for \fB\-mtune\fR.
10876 .IP "\fB\-mfpmath=\fR\fIunit\fR" 4
10877 .IX Item "-mfpmath=unit"
10878 Generate floating point arithmetics for selected unit \fIunit\fR.  The choices
10879 for \fIunit\fR are:
10880 .RS 4
10881 .IP "\fB387\fR" 4
10882 .IX Item "387"
10883 Use the standard 387 floating point coprocessor present majority of chips and
10884 emulated otherwise.  Code compiled with this option will run almost everywhere.
10885 The temporary results are computed in 80bit precision instead of precision
10886 specified by the type resulting in slightly different results compared to most
10887 of other chips.  See \fB\-ffloat\-store\fR for more detailed description.
10889 This is the default choice for i386 compiler.
10890 .IP "\fBsse\fR" 4
10891 .IX Item "sse"
10892 Use scalar floating point instructions present in the \s-1SSE\s0 instruction set.
10893 This instruction set is supported by Pentium3 and newer chips, in the \s-1AMD\s0 line
10894 by Athlon\-4, Athlon-xp and Athlon-mp chips.  The earlier version of \s-1SSE\s0
10895 instruction set supports only single precision arithmetics, thus the double and
10896 extended precision arithmetics is still done using 387.  Later version, present
10897 only in Pentium4 and the future \s-1AMD\s0 x86\-64 chips supports double precision
10898 arithmetics too.
10900 For the i386 compiler, you need to use \fB\-march=\fR\fIcpu-type\fR, \fB\-msse\fR
10901 or \fB\-msse2\fR switches to enable \s-1SSE\s0 extensions and make this option
10902 effective.  For the x86\-64 compiler, these extensions are enabled by default.
10904 The resulting code should be considerably faster in the majority of cases and avoid
10905 the numerical instability problems of 387 code, but may break some existing
10906 code that expects temporaries to be 80bit.
10908 This is the default choice for the x86\-64 compiler.
10909 .IP "\fBsse,387\fR" 4
10910 .IX Item "sse,387"
10911 .PD 0
10912 .IP "\fBsse+387\fR" 4
10913 .IX Item "sse+387"
10914 .IP "\fBboth\fR" 4
10915 .IX Item "both"
10917 Attempt to utilize both instruction sets at once.  This effectively double the
10918 amount of available registers and on chips with separate execution units for
10919 387 and \s-1SSE\s0 the execution resources too.  Use this option with care, as it is
10920 still experimental, because the \s-1GCC\s0 register allocator does not model separate
10921 functional units well resulting in instable performance.
10923 .RS 4
10925 .IP "\fB\-masm=\fR\fIdialect\fR" 4
10926 .IX Item "-masm=dialect"
10927 Output asm instructions using selected \fIdialect\fR.  Supported
10928 choices are \fBintel\fR or \fBatt\fR (the default one).  Darwin does
10929 not support \fBintel\fR.
10930 .IP "\fB\-mieee\-fp\fR" 4
10931 .IX Item "-mieee-fp"
10932 .PD 0
10933 .IP "\fB\-mno\-ieee\-fp\fR" 4
10934 .IX Item "-mno-ieee-fp"
10936 Control whether or not the compiler uses \s-1IEEE\s0 floating point
10937 comparisons.  These handle correctly the case where the result of a
10938 comparison is unordered.
10939 .IP "\fB\-msoft\-float\fR" 4
10940 .IX Item "-msoft-float"
10941 Generate output containing library calls for floating point.
10942 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC\s0.
10943 Normally the facilities of the machine's usual C compiler are used, but
10944 this can't be done directly in cross\-compilation.  You must make your
10945 own arrangements to provide suitable library functions for
10946 cross\-compilation.
10948 On machines where a function returns floating point results in the 80387
10949 register stack, some floating point opcodes may be emitted even if
10950 \&\fB\-msoft\-float\fR is used.
10951 .IP "\fB\-mno\-fp\-ret\-in\-387\fR" 4
10952 .IX Item "-mno-fp-ret-in-387"
10953 Do not use the \s-1FPU\s0 registers for return values of functions.
10955 The usual calling convention has functions return values of types
10956 \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR in an \s-1FPU\s0 register, even if there
10957 is no \s-1FPU\s0.  The idea is that the operating system should emulate
10958 an \s-1FPU\s0.
10960 The option \fB\-mno\-fp\-ret\-in\-387\fR causes such values to be returned
10961 in ordinary \s-1CPU\s0 registers instead.
10962 .IP "\fB\-mno\-fancy\-math\-387\fR" 4
10963 .IX Item "-mno-fancy-math-387"
10964 Some 387 emulators do not support the \f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR and
10965 \&\f(CW\*(C`sqrt\*(C'\fR instructions for the 387.  Specify this option to avoid
10966 generating those instructions.  This option is the default on FreeBSD,
10967 OpenBSD and NetBSD.  This option is overridden when \fB\-march\fR
10968 indicates that the target \s-1CPU\s0 will always have an \s-1FPU\s0 and so the
10969 instruction will not need emulation.  As of revision 2.6.1, these
10970 instructions are not generated unless you also use the
10971 \&\fB\-funsafe\-math\-optimizations\fR switch.
10972 .IP "\fB\-malign\-double\fR" 4
10973 .IX Item "-malign-double"
10974 .PD 0
10975 .IP "\fB\-mno\-align\-double\fR" 4
10976 .IX Item "-mno-align-double"
10978 Control whether \s-1GCC\s0 aligns \f(CW\*(C`double\*(C'\fR, \f(CW\*(C`long double\*(C'\fR, and
10979 \&\f(CW\*(C`long long\*(C'\fR variables on a two word boundary or a one word
10980 boundary.  Aligning \f(CW\*(C`double\*(C'\fR variables on a two word boundary will
10981 produce code that runs somewhat faster on a \fBPentium\fR at the
10982 expense of more memory.
10984 On x86\-64, \fB\-malign\-double\fR is enabled by default.
10986 \&\fBWarning:\fR if you use the \fB\-malign\-double\fR switch,
10987 structures containing the above types will be aligned differently than
10988 the published application binary interface specifications for the 386
10989 and will not be binary compatible with structures in code compiled
10990 without that switch.
10991 .IP "\fB\-m96bit\-long\-double\fR" 4
10992 .IX Item "-m96bit-long-double"
10993 .PD 0
10994 .IP "\fB\-m128bit\-long\-double\fR" 4
10995 .IX Item "-m128bit-long-double"
10997 These switches control the size of \f(CW\*(C`long double\*(C'\fR type.  The i386
10998 application binary interface specifies the size to be 96 bits,
10999 so \fB\-m96bit\-long\-double\fR is the default in 32 bit mode.
11001 Modern architectures (Pentium and newer) would prefer \f(CW\*(C`long double\*(C'\fR
11002 to be aligned to an 8 or 16 byte boundary.  In arrays or structures
11003 conforming to the \s-1ABI\s0, this would not be possible.  So specifying a
11004 \&\fB\-m128bit\-long\-double\fR will align \f(CW\*(C`long double\*(C'\fR
11005 to a 16 byte boundary by padding the \f(CW\*(C`long double\*(C'\fR with an additional
11006 32 bit zero.
11008 In the x86\-64 compiler, \fB\-m128bit\-long\-double\fR is the default choice as
11009 its \s-1ABI\s0 specifies that \f(CW\*(C`long double\*(C'\fR is to be aligned on 16 byte boundary.
11011 Notice that neither of these options enable any extra precision over the x87
11012 standard of 80 bits for a \f(CW\*(C`long double\*(C'\fR.
11014 \&\fBWarning:\fR if you override the default value for your target \s-1ABI\s0, the
11015 structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables will change
11016 their size as well as function calling convention for function taking
11017 \&\f(CW\*(C`long double\*(C'\fR will be modified.  Hence they will not be binary
11018 compatible with arrays or structures in code compiled without that switch.
11019 .IP "\fB\-mlarge\-data\-threshold=\fR\fInumber\fR" 4
11020 .IX Item "-mlarge-data-threshold=number"
11021 When \fB\-mcmodel=medium\fR is specified, the data greater than
11022 \&\fIthreshold\fR are placed in large data section.  This value must be the
11023 same across all object linked into the binary and defaults to 65535.
11024 .IP "\fB\-mrtd\fR" 4
11025 .IX Item "-mrtd"
11026 Use a different function-calling convention, in which functions that
11027 take a fixed number of arguments return with the \f(CW\*(C`ret\*(C'\fR \fInum\fR
11028 instruction, which pops their arguments while returning.  This saves one
11029 instruction in the caller since there is no need to pop the arguments
11030 there.
11032 You can specify that an individual function is called with this calling
11033 sequence with the function attribute \fBstdcall\fR.  You can also
11034 override the \fB\-mrtd\fR option by using the function attribute
11035 \&\fBcdecl\fR.  
11037 \&\fBWarning:\fR this calling convention is incompatible with the one
11038 normally used on Unix, so you cannot use it if you need to call
11039 libraries compiled with the Unix compiler.
11041 Also, you must provide function prototypes for all functions that
11042 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
11043 otherwise incorrect code will be generated for calls to those
11044 functions.
11046 In addition, seriously incorrect code will result if you call a
11047 function with too many arguments.  (Normally, extra arguments are
11048 harmlessly ignored.)
11049 .IP "\fB\-mregparm=\fR\fInum\fR" 4
11050 .IX Item "-mregparm=num"
11051 Control how many registers are used to pass integer arguments.  By
11052 default, no registers are used to pass arguments, and at most 3
11053 registers can be used.  You can control this behavior for a specific
11054 function by using the function attribute \fBregparm\fR.
11056 \&\fBWarning:\fR if you use this switch, and
11057 \&\fInum\fR is nonzero, then you must build all modules with the same
11058 value, including any libraries.  This includes the system libraries and
11059 startup modules.
11060 .IP "\fB\-msseregparm\fR" 4
11061 .IX Item "-msseregparm"
11062 Use \s-1SSE\s0 register passing conventions for float and double arguments
11063 and return values.  You can control this behavior for a specific
11064 function by using the function attribute \fBsseregparm\fR.
11066 \&\fBWarning:\fR if you use this switch then you must build all
11067 modules with the same value, including any libraries.  This includes
11068 the system libraries and startup modules.
11069 .IP "\fB\-mpc32\fR" 4
11070 .IX Item "-mpc32"
11071 .PD 0
11072 .IP "\fB\-mpc64\fR" 4
11073 .IX Item "-mpc64"
11074 .IP "\fB\-mpc80\fR" 4
11075 .IX Item "-mpc80"
11077 Set 80387 floating-point precision to 32, 64 or 80 bits.  When \fB\-mpc32\fR
11078 is specified, the significands of results of floating-point operations are
11079 rounded to 24 bits (single precision); \fB\-mpc64\fR rounds the
11080 significands of results of floating-point operations to 53 bits (double
11081 precision) and \fB\-mpc80\fR rounds the significands of results of
11082 floating-point operations to 64 bits (extended double precision), which is
11083 the default.  When this option is used, floating-point operations in higher
11084 precisions are not available to the programmer without setting the \s-1FPU\s0
11085 control word explicitly.
11087 Setting the rounding of floating-point operations to less than the default
11088 80 bits can speed some programs by 2% or more.  Note that some mathematical
11089 libraries assume that extended precision (80 bit) floating-point operations
11090 are enabled by default; routines in such libraries could suffer significant
11091 loss of accuracy, typically through so-called \*(L"catastrophic cancellation\*(R",
11092 when this option is used to set the precision to less than extended precision.
11093 .IP "\fB\-mstackrealign\fR" 4
11094 .IX Item "-mstackrealign"
11095 Realign the stack at entry.  On the Intel x86, the \fB\-mstackrealign\fR
11096 option will generate an alternate prologue and epilogue that realigns the
11097 runtime stack if necessary.  This supports mixing legacy codes that keep
11098 a 4\-byte aligned stack with modern codes that keep a 16\-byte stack for
11099 \&\s-1SSE\s0 compatibility.  See also the attribute \f(CW\*(C`force_align_arg_pointer\*(C'\fR,
11100 applicable to individual functions.
11101 .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
11102 .IX Item "-mpreferred-stack-boundary=num"
11103 Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
11104 byte boundary.  If \fB\-mpreferred\-stack\-boundary\fR is not specified,
11105 the default is 4 (16 bytes or 128 bits).
11106 .IP "\fB\-mincoming\-stack\-boundary=\fR\fInum\fR" 4
11107 .IX Item "-mincoming-stack-boundary=num"
11108 Assume the incoming stack is aligned to a 2 raised to \fInum\fR byte
11109 boundary.  If \fB\-mincoming\-stack\-boundary\fR is not specified,
11110 the one specified by \fB\-mpreferred\-stack\-boundary\fR will be used.
11112 On Pentium and PentiumPro, \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long double\*(C'\fR values
11113 should be aligned to an 8 byte boundary (see \fB\-malign\-double\fR) or
11114 suffer significant run time performance penalties.  On Pentium \s-1III\s0, the
11115 Streaming \s-1SIMD\s0 Extension (\s-1SSE\s0) data type \f(CW\*(C`_\|_m128\*(C'\fR may not work
11116 properly if it is not 16 byte aligned.
11118 To ensure proper alignment of this values on the stack, the stack boundary
11119 must be as aligned as that required by any value stored on the stack.
11120 Further, every function must be generated such that it keeps the stack
11121 aligned.  Thus calling a function compiled with a higher preferred
11122 stack boundary from a function compiled with a lower preferred stack
11123 boundary will most likely misalign the stack.  It is recommended that
11124 libraries that use callbacks always use the default setting.
11126 This extra alignment does consume extra stack space, and generally
11127 increases code size.  Code that is sensitive to stack space usage, such
11128 as embedded systems and operating system kernels, may want to reduce the
11129 preferred alignment to \fB\-mpreferred\-stack\-boundary=2\fR.
11130 .IP "\fB\-mmmx\fR" 4
11131 .IX Item "-mmmx"
11132 .PD 0
11133 .IP "\fB\-mno\-mmx\fR" 4
11134 .IX Item "-mno-mmx"
11135 .IP "\fB\-msse\fR" 4
11136 .IX Item "-msse"
11137 .IP "\fB\-mno\-sse\fR" 4
11138 .IX Item "-mno-sse"
11139 .IP "\fB\-msse2\fR" 4
11140 .IX Item "-msse2"
11141 .IP "\fB\-mno\-sse2\fR" 4
11142 .IX Item "-mno-sse2"
11143 .IP "\fB\-msse3\fR" 4
11144 .IX Item "-msse3"
11145 .IP "\fB\-mno\-sse3\fR" 4
11146 .IX Item "-mno-sse3"
11147 .IP "\fB\-mssse3\fR" 4
11148 .IX Item "-mssse3"
11149 .IP "\fB\-mno\-ssse3\fR" 4
11150 .IX Item "-mno-ssse3"
11151 .IP "\fB\-msse4.1\fR" 4
11152 .IX Item "-msse4.1"
11153 .IP "\fB\-mno\-sse4.1\fR" 4
11154 .IX Item "-mno-sse4.1"
11155 .IP "\fB\-msse4.2\fR" 4
11156 .IX Item "-msse4.2"
11157 .IP "\fB\-mno\-sse4.2\fR" 4
11158 .IX Item "-mno-sse4.2"
11159 .IP "\fB\-msse4\fR" 4
11160 .IX Item "-msse4"
11161 .IP "\fB\-mno\-sse4\fR" 4
11162 .IX Item "-mno-sse4"
11163 .IP "\fB\-mavx\fR" 4
11164 .IX Item "-mavx"
11165 .IP "\fB\-mno\-avx\fR" 4
11166 .IX Item "-mno-avx"
11167 .IP "\fB\-maes\fR" 4
11168 .IX Item "-maes"
11169 .IP "\fB\-mno\-aes\fR" 4
11170 .IX Item "-mno-aes"
11171 .IP "\fB\-mpclmul\fR" 4
11172 .IX Item "-mpclmul"
11173 .IP "\fB\-mno\-pclmul\fR" 4
11174 .IX Item "-mno-pclmul"
11175 .IP "\fB\-msse4a\fR" 4
11176 .IX Item "-msse4a"
11177 .IP "\fB\-mno\-sse4a\fR" 4
11178 .IX Item "-mno-sse4a"
11179 .IP "\fB\-mfma4\fR" 4
11180 .IX Item "-mfma4"
11181 .IP "\fB\-mno\-fma4\fR" 4
11182 .IX Item "-mno-fma4"
11183 .IP "\fB\-mxop\fR" 4
11184 .IX Item "-mxop"
11185 .IP "\fB\-mno\-xop\fR" 4
11186 .IX Item "-mno-xop"
11187 .IP "\fB\-mlwp\fR" 4
11188 .IX Item "-mlwp"
11189 .IP "\fB\-mno\-lwp\fR" 4
11190 .IX Item "-mno-lwp"
11191 .IP "\fB\-m3dnow\fR" 4
11192 .IX Item "-m3dnow"
11193 .IP "\fB\-mno\-3dnow\fR" 4
11194 .IX Item "-mno-3dnow"
11195 .IP "\fB\-mpopcnt\fR" 4
11196 .IX Item "-mpopcnt"
11197 .IP "\fB\-mno\-popcnt\fR" 4
11198 .IX Item "-mno-popcnt"
11199 .IP "\fB\-mabm\fR" 4
11200 .IX Item "-mabm"
11201 .IP "\fB\-mno\-abm\fR" 4
11202 .IX Item "-mno-abm"
11204 These switches enable or disable the use of instructions in the \s-1MMX\s0,
11205 \&\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-1FMA4\s0, \s-1XOP\s0,
11206 \&\s-1LWP\s0, \s-1ABM\s0 or 3DNow! extended instruction sets.
11207 These extensions are also available as built-in functions: see
11208 \&\fBX86 Built-in Functions\fR, for details of the functions enabled and
11209 disabled by these switches.
11211 To have \s-1SSE/SSE2\s0 instructions generated automatically from floating-point
11212 code (as opposed to 387 instructions), see \fB\-mfpmath=sse\fR.
11214 \&\s-1GCC\s0 depresses SSEx instructions when \fB\-mavx\fR is used. Instead, it
11215 generates new \s-1AVX\s0 instructions or \s-1AVX\s0 equivalence for all SSEx instructions
11216 when needed.
11218 These options will enable \s-1GCC\s0 to use these extended instructions in
11219 generated code, even without \fB\-mfpmath=sse\fR.  Applications which
11220 perform runtime \s-1CPU\s0 detection must compile separate files for each
11221 supported architecture, using the appropriate flags.  In particular,
11222 the file containing the \s-1CPU\s0 detection code should be compiled without
11223 these options.
11224 .IP "\fB\-mfused\-madd\fR" 4
11225 .IX Item "-mfused-madd"
11226 .PD 0
11227 .IP "\fB\-mno\-fused\-madd\fR" 4
11228 .IX Item "-mno-fused-madd"
11230 Do (don't) generate code that uses the fused multiply/add or multiply/subtract
11231 instructions.  The default is to use these instructions.
11232 .IP "\fB\-mcld\fR" 4
11233 .IX Item "-mcld"
11234 This option instructs \s-1GCC\s0 to emit a \f(CW\*(C`cld\*(C'\fR instruction in the prologue
11235 of functions that use string instructions.  String instructions depend on
11236 the \s-1DF\s0 flag to select between autoincrement or autodecrement mode.  While the
11237 \&\s-1ABI\s0 specifies the \s-1DF\s0 flag to be cleared on function entry, some operating
11238 systems violate this specification by not clearing the \s-1DF\s0 flag in their
11239 exception dispatchers.  The exception handler can be invoked with the \s-1DF\s0 flag
11240 set which leads to wrong direction mode, when string instructions are used.
11241 This option can be enabled by default on 32\-bit x86 targets by configuring
11242 \&\s-1GCC\s0 with the \fB\-\-enable\-cld\fR configure option.  Generation of \f(CW\*(C`cld\*(C'\fR
11243 instructions can be suppressed with the \fB\-mno\-cld\fR compiler option
11244 in this case.
11245 .IP "\fB\-mcx16\fR" 4
11246 .IX Item "-mcx16"
11247 This option will enable \s-1GCC\s0 to use \s-1CMPXCHG16B\s0 instruction in generated code.
11248 \&\s-1CMPXCHG16B\s0 allows for atomic operations on 128\-bit double quadword (or oword)
11249 data types.  This is useful for high resolution counters that could be updated
11250 by multiple processors (or cores).  This instruction is generated as part of
11251 atomic built-in functions: see \fBAtomic Builtins\fR for details.
11252 .IP "\fB\-msahf\fR" 4
11253 .IX Item "-msahf"
11254 This option will enable \s-1GCC\s0 to use \s-1SAHF\s0 instruction in generated 64\-bit code.
11255 Early Intel CPUs with Intel 64 lacked \s-1LAHF\s0 and \s-1SAHF\s0 instructions supported
11256 by \s-1AMD64\s0 until introduction of Pentium 4 G1 step in December 2005.  \s-1LAHF\s0 and
11257 \&\s-1SAHF\s0 are load and store instructions, respectively, for certain status flags.
11258 In 64\-bit mode, \s-1SAHF\s0 instruction is used to optimize \f(CW\*(C`fmod\*(C'\fR, \f(CW\*(C`drem\*(C'\fR
11259 or \f(CW\*(C`remainder\*(C'\fR built-in functions: see \fBOther Builtins\fR for details.
11260 .IP "\fB\-mmovbe\fR" 4
11261 .IX Item "-mmovbe"
11262 This option will enable \s-1GCC\s0 to use movbe instruction to implement
11263 \&\f(CW\*(C`_\|_builtin_bswap32\*(C'\fR and \f(CW\*(C`_\|_builtin_bswap64\*(C'\fR.
11264 .IP "\fB\-mcrc32\fR" 4
11265 .IX Item "-mcrc32"
11266 This option will enable built-in functions, \f(CW\*(C`_\|_builtin_ia32_crc32qi\*(C'\fR,
11267 \&\f(CW\*(C`_\|_builtin_ia32_crc32hi\*(C'\fR. \f(CW\*(C`_\|_builtin_ia32_crc32si\*(C'\fR and
11268 \&\f(CW\*(C`_\|_builtin_ia32_crc32di\*(C'\fR to generate the crc32 machine instruction.
11269 .IP "\fB\-mrecip\fR" 4
11270 .IX Item "-mrecip"
11271 This option will enable \s-1GCC\s0 to use \s-1RCPSS\s0 and \s-1RSQRTSS\s0 instructions (and their
11272 vectorized variants \s-1RCPPS\s0 and \s-1RSQRTPS\s0) with an additional Newton-Raphson step
11273 to increase precision instead of \s-1DIVSS\s0 and \s-1SQRTSS\s0 (and their vectorized
11274 variants) for single precision floating point arguments.  These instructions
11275 are generated only when \fB\-funsafe\-math\-optimizations\fR is enabled
11276 together with \fB\-finite\-math\-only\fR and \fB\-fno\-trapping\-math\fR.
11277 Note that while the throughput of the sequence is higher than the throughput
11278 of the non-reciprocal instruction, the precision of the sequence can be
11279 decreased by up to 2 ulp (i.e. the inverse of 1.0 equals 0.99999994).
11281 Note that \s-1GCC\s0 implements 1.0f/sqrtf(x) in terms of \s-1RSQRTSS\s0 (or \s-1RSQRTPS\s0)
11282 already with \fB\-ffast\-math\fR (or the above option combination), and
11283 doesn't need \fB\-mrecip\fR.
11284 .IP "\fB\-mveclibabi=\fR\fItype\fR" 4
11285 .IX Item "-mveclibabi=type"
11286 Specifies the \s-1ABI\s0 type to use for vectorizing intrinsics using an
11287 external library.  Supported types are \f(CW\*(C`svml\*(C'\fR for the Intel short
11288 vector math library and \f(CW\*(C`acml\*(C'\fR for the \s-1AMD\s0 math core library style
11289 of interfacing.  \s-1GCC\s0 will currently emit calls to \f(CW\*(C`vmldExp2\*(C'\fR,
11290 \&\f(CW\*(C`vmldLn2\*(C'\fR, \f(CW\*(C`vmldLog102\*(C'\fR, \f(CW\*(C`vmldLog102\*(C'\fR, \f(CW\*(C`vmldPow2\*(C'\fR,
11291 \&\f(CW\*(C`vmldTanh2\*(C'\fR, \f(CW\*(C`vmldTan2\*(C'\fR, \f(CW\*(C`vmldAtan2\*(C'\fR, \f(CW\*(C`vmldAtanh2\*(C'\fR,
11292 \&\f(CW\*(C`vmldCbrt2\*(C'\fR, \f(CW\*(C`vmldSinh2\*(C'\fR, \f(CW\*(C`vmldSin2\*(C'\fR, \f(CW\*(C`vmldAsinh2\*(C'\fR,
11293 \&\f(CW\*(C`vmldAsin2\*(C'\fR, \f(CW\*(C`vmldCosh2\*(C'\fR, \f(CW\*(C`vmldCos2\*(C'\fR, \f(CW\*(C`vmldAcosh2\*(C'\fR,
11294 \&\f(CW\*(C`vmldAcos2\*(C'\fR, \f(CW\*(C`vmlsExp4\*(C'\fR, \f(CW\*(C`vmlsLn4\*(C'\fR, \f(CW\*(C`vmlsLog104\*(C'\fR,
11295 \&\f(CW\*(C`vmlsLog104\*(C'\fR, \f(CW\*(C`vmlsPow4\*(C'\fR, \f(CW\*(C`vmlsTanh4\*(C'\fR, \f(CW\*(C`vmlsTan4\*(C'\fR,
11296 \&\f(CW\*(C`vmlsAtan4\*(C'\fR, \f(CW\*(C`vmlsAtanh4\*(C'\fR, \f(CW\*(C`vmlsCbrt4\*(C'\fR, \f(CW\*(C`vmlsSinh4\*(C'\fR,
11297 \&\f(CW\*(C`vmlsSin4\*(C'\fR, \f(CW\*(C`vmlsAsinh4\*(C'\fR, \f(CW\*(C`vmlsAsin4\*(C'\fR, \f(CW\*(C`vmlsCosh4\*(C'\fR,
11298 \&\f(CW\*(C`vmlsCos4\*(C'\fR, \f(CW\*(C`vmlsAcosh4\*(C'\fR and \f(CW\*(C`vmlsAcos4\*(C'\fR for corresponding
11299 function type when \fB\-mveclibabi=svml\fR is used and \f(CW\*(C`_\|_vrd2_sin\*(C'\fR,
11300 \&\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,
11301 \&\f(CW\*(C`_\|_vrd2_log10\*(C'\fR, \f(CW\*(C`_\|_vrs4_sinf\*(C'\fR, \f(CW\*(C`_\|_vrs4_cosf\*(C'\fR,
11302 \&\f(CW\*(C`_\|_vrs4_expf\*(C'\fR, \f(CW\*(C`_\|_vrs4_logf\*(C'\fR, \f(CW\*(C`_\|_vrs4_log2f\*(C'\fR,
11303 \&\f(CW\*(C`_\|_vrs4_log10f\*(C'\fR and \f(CW\*(C`_\|_vrs4_powf\*(C'\fR for corresponding function type
11304 when \fB\-mveclibabi=acml\fR is used. Both \fB\-ftree\-vectorize\fR and
11305 \&\fB\-funsafe\-math\-optimizations\fR have to be enabled. A \s-1SVML\s0 or \s-1ACML\s0 \s-1ABI\s0
11306 compatible library will have to be specified at link time.
11307 .IP "\fB\-mabi=\fR\fIname\fR" 4
11308 .IX Item "-mabi=name"
11309 Generate code for the specified calling convention.  Permissible values
11310 are: \fBsysv\fR for the \s-1ABI\s0 used on GNU/Linux and other systems and
11311 \&\fBms\fR for the Microsoft \s-1ABI\s0.  The default is to use the Microsoft
11312 \&\s-1ABI\s0 when targeting Windows.  On all other systems, the default is the
11313 \&\s-1SYSV\s0 \s-1ABI\s0.  You can control this behavior for a specific function by
11314 using the function attribute \fBms_abi\fR/\fBsysv_abi\fR.
11315 .IP "\fB\-mpush\-args\fR" 4
11316 .IX Item "-mpush-args"
11317 .PD 0
11318 .IP "\fB\-mno\-push\-args\fR" 4
11319 .IX Item "-mno-push-args"
11321 Use \s-1PUSH\s0 operations to store outgoing parameters.  This method is shorter
11322 and usually equally fast as method using \s-1SUB/MOV\s0 operations and is enabled
11323 by default.  In some cases disabling it may improve performance because of
11324 improved scheduling and reduced dependencies.
11325 .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
11326 .IX Item "-maccumulate-outgoing-args"
11327 If enabled, the maximum amount of space required for outgoing arguments will be
11328 computed in the function prologue.  This is faster on most modern CPUs
11329 because of reduced dependencies, improved scheduling and reduced stack usage
11330 when preferred stack boundary is not equal to 2.  The drawback is a notable
11331 increase in code size.  This switch implies \fB\-mno\-push\-args\fR.
11332 .IP "\fB\-mthreads\fR" 4
11333 .IX Item "-mthreads"
11334 Support thread-safe exception handling on \fBMingw32\fR.  Code that relies
11335 on thread-safe exception handling must compile and link all code with the
11336 \&\fB\-mthreads\fR option.  When compiling, \fB\-mthreads\fR defines
11337 \&\fB\-D_MT\fR; when linking, it links in a special thread helper library
11338 \&\fB\-lmingwthrd\fR which cleans up per thread exception handling data.
11339 .IP "\fB\-mno\-align\-stringops\fR" 4
11340 .IX Item "-mno-align-stringops"
11341 Do not align destination of inlined string operations.  This switch reduces
11342 code size and improves performance in case the destination is already aligned,
11343 but \s-1GCC\s0 doesn't know about it.
11344 .IP "\fB\-minline\-all\-stringops\fR" 4
11345 .IX Item "-minline-all-stringops"
11346 By default \s-1GCC\s0 inlines string operations only when destination is known to be
11347 aligned at least to 4 byte boundary.  This enables more inlining, increase code
11348 size, but may improve performance of code that depends on fast memcpy, strlen
11349 and memset for short lengths.
11350 .IP "\fB\-minline\-stringops\-dynamically\fR" 4
11351 .IX Item "-minline-stringops-dynamically"
11352 For string operation of unknown size, inline runtime checks so for small
11353 blocks inline code is used, while for large blocks library call is used.
11354 .IP "\fB\-mstringop\-strategy=\fR\fIalg\fR" 4
11355 .IX Item "-mstringop-strategy=alg"
11356 Overwrite internal decision heuristic about particular algorithm to inline
11357 string operation with.  The allowed values are \f(CW\*(C`rep_byte\*(C'\fR,
11358 \&\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
11359 of specified size, \f(CW\*(C`byte_loop\*(C'\fR, \f(CW\*(C`loop\*(C'\fR, \f(CW\*(C`unrolled_loop\*(C'\fR for
11360 expanding inline loop, \f(CW\*(C`libcall\*(C'\fR for always expanding library call.
11361 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
11362 .IX Item "-momit-leaf-frame-pointer"
11363 Don't keep the frame pointer in a register for leaf functions.  This
11364 avoids the instructions to save, set up and restore frame pointers and
11365 makes an extra register available in leaf functions.  The option
11366 \&\fB\-fomit\-frame\-pointer\fR removes the frame pointer for all functions
11367 which might make debugging harder.
11368 .IP "\fB\-mtls\-direct\-seg\-refs\fR" 4
11369 .IX Item "-mtls-direct-seg-refs"
11370 .PD 0
11371 .IP "\fB\-mno\-tls\-direct\-seg\-refs\fR" 4
11372 .IX Item "-mno-tls-direct-seg-refs"
11374 Controls whether \s-1TLS\s0 variables may be accessed with offsets from the
11375 \&\s-1TLS\s0 segment register (\f(CW%gs\fR for 32\-bit, \f(CW%fs\fR for 64\-bit),
11376 or whether the thread base pointer must be added.  Whether or not this
11377 is legal depends on the operating system, and whether it maps the
11378 segment to cover the entire \s-1TLS\s0 area.
11380 For systems that use \s-1GNU\s0 libc, the default is on.
11381 .IP "\fB\-msse2avx\fR" 4
11382 .IX Item "-msse2avx"
11383 .PD 0
11384 .IP "\fB\-mno\-sse2avx\fR" 4
11385 .IX Item "-mno-sse2avx"
11387 Specify that the assembler should encode \s-1SSE\s0 instructions with \s-1VEX\s0
11388 prefix.  The option \fB\-mavx\fR turns this on by default.
11390 These \fB\-m\fR switches are supported in addition to the above
11391 on \s-1AMD\s0 x86\-64 processors in 64\-bit environments.
11392 .IP "\fB\-m32\fR" 4
11393 .IX Item "-m32"
11394 .PD 0
11395 .IP "\fB\-m64\fR" 4
11396 .IX Item "-m64"
11398 Generate code for a 32\-bit or 64\-bit environment.
11399 The 32\-bit environment sets int, long and pointer to 32 bits and
11400 generates code that runs on any i386 system.
11401 The 64\-bit environment sets int to 32 bits and long and pointer
11402 to 64 bits and generates code for \s-1AMD\s0's x86\-64 architecture. For
11403 darwin only the \-m64 option turns off the \fB\-fno\-pic\fR and
11404 \&\fB\-mdynamic\-no\-pic\fR options.
11405 .IP "\fB\-mno\-red\-zone\fR" 4
11406 .IX Item "-mno-red-zone"
11407 Do not use a so called red zone for x86\-64 code.  The red zone is mandated
11408 by the x86\-64 \s-1ABI\s0, it is a 128\-byte area beyond the location of the
11409 stack pointer that will not be modified by signal or interrupt handlers
11410 and therefore can be used for temporary data without adjusting the stack
11411 pointer.  The flag \fB\-mno\-red\-zone\fR disables this red zone.
11412 .IP "\fB\-mcmodel=small\fR" 4
11413 .IX Item "-mcmodel=small"
11414 Generate code for the small code model: the program and its symbols must
11415 be linked in the lower 2 \s-1GB\s0 of the address space.  Pointers are 64 bits.
11416 Programs can be statically or dynamically linked.  This is the default
11417 code model.
11418 .IP "\fB\-mcmodel=kernel\fR" 4
11419 .IX Item "-mcmodel=kernel"
11420 Generate code for the kernel code model.  The kernel runs in the
11421 negative 2 \s-1GB\s0 of the address space.
11422 This model has to be used for Linux kernel code.
11423 .IP "\fB\-mcmodel=medium\fR" 4
11424 .IX Item "-mcmodel=medium"
11425 Generate code for the medium model: The program is linked in the lower 2
11426 \&\s-1GB\s0 of the address space.  Small symbols are also placed there.  Symbols
11427 with sizes larger than \fB\-mlarge\-data\-threshold\fR are put into
11428 large data or bss sections and can be located above 2GB.  Programs can
11429 be statically or dynamically linked.
11430 .IP "\fB\-mcmodel=large\fR" 4
11431 .IX Item "-mcmodel=large"
11432 Generate code for the large model: This model makes no assumptions
11433 about addresses and sizes of sections.
11435 \fIi386 and x86\-64 Windows Options\fR
11436 .IX Subsection "i386 and x86-64 Windows Options"
11438 These additional options are available for Windows targets:
11439 .IP "\fB\-mconsole\fR" 4
11440 .IX Item "-mconsole"
11441 This option is available for Cygwin and MinGW targets.  It
11442 specifies that a console application is to be generated, by
11443 instructing the linker to set the \s-1PE\s0 header subsystem type
11444 required for console applications.
11445 This is the default behavior for Cygwin and MinGW targets.
11446 .IP "\fB\-mcygwin\fR" 4
11447 .IX Item "-mcygwin"
11448 This option is available for Cygwin targets.  It specifies that
11449 the Cygwin internal interface is to be used for predefined
11450 preprocessor macros, C runtime libraries and related linker
11451 paths and options.  For Cygwin targets this is the default behavior.
11452 This option is deprecated and will be removed in a future release.
11453 .IP "\fB\-mno\-cygwin\fR" 4
11454 .IX Item "-mno-cygwin"
11455 This option is available for Cygwin targets.  It specifies that
11456 the MinGW internal interface is to be used instead of Cygwin's, by
11457 setting MinGW-related predefined macros and linker paths and default
11458 library options.
11459 This option is deprecated and will be removed in a future release.
11460 .IP "\fB\-mdll\fR" 4
11461 .IX Item "-mdll"
11462 This option is available for Cygwin and MinGW targets.  It
11463 specifies that a \s-1DLL\s0 \- a dynamic link library \- is to be
11464 generated, enabling the selection of the required runtime
11465 startup object and entry point.
11466 .IP "\fB\-mnop\-fun\-dllimport\fR" 4
11467 .IX Item "-mnop-fun-dllimport"
11468 This option is available for Cygwin and MinGW targets.  It
11469 specifies that the dllimport attribute should be ignored.
11470 .IP "\fB\-mthread\fR" 4
11471 .IX Item "-mthread"
11472 This option is available for MinGW targets. It specifies
11473 that MinGW-specific thread support is to be used.
11474 .IP "\fB\-municode\fR" 4
11475 .IX Item "-municode"
11476 This option is available for mingw\-w64 targets.  It specifies
11477 that the \s-1UNICODE\s0 macro is getting pre-defined and that the
11478 unicode capable runtime startup code is chosen.
11479 .IP "\fB\-mwin32\fR" 4
11480 .IX Item "-mwin32"
11481 This option is available for Cygwin and MinGW targets.  It
11482 specifies that the typical Windows pre-defined macros are to
11483 be set in the pre\-processor, but does not influence the choice
11484 of runtime library/startup code.
11485 .IP "\fB\-mwindows\fR" 4
11486 .IX Item "-mwindows"
11487 This option is available for Cygwin and MinGW targets.  It
11488 specifies that a \s-1GUI\s0 application is to be generated by
11489 instructing the linker to set the \s-1PE\s0 header subsystem type
11490 appropriately.
11491 .IP "\fB\-fno\-set\-stack\-executable\fR" 4
11492 .IX Item "-fno-set-stack-executable"
11493 This option is available for MinGW targets. It specifies that
11494 the executable flag for stack used by nested functions isn't
11495 set. This is necessary for binaries running in kernel mode of
11496 Windows, as there the user32 \s-1API\s0, which is used to set executable
11497 privileges, isn't available.
11498 .IP "\fB\-mpe\-aligned\-commons\fR" 4
11499 .IX Item "-mpe-aligned-commons"
11500 This option is available for Cygwin and MinGW targets.  It
11501 specifies that the \s-1GNU\s0 extension to the \s-1PE\s0 file format that
11502 permits the correct alignment of \s-1COMMON\s0 variables should be
11503 used when generating code.  It will be enabled by default if
11504 \&\s-1GCC\s0 detects that the target assembler found during configuration
11505 supports the feature.
11507 See also under \fBi386 and x86\-64 Options\fR for standard options.
11509 \fI\s-1IA\-64\s0 Options\fR
11510 .IX Subsection "IA-64 Options"
11512 These are the \fB\-m\fR options defined for the Intel \s-1IA\-64\s0 architecture.
11513 .IP "\fB\-mbig\-endian\fR" 4
11514 .IX Item "-mbig-endian"
11515 Generate code for a big endian target.  This is the default for \s-1HP\-UX\s0.
11516 .IP "\fB\-mlittle\-endian\fR" 4
11517 .IX Item "-mlittle-endian"
11518 Generate code for a little endian target.  This is the default for \s-1AIX5\s0
11519 and GNU/Linux.
11520 .IP "\fB\-mgnu\-as\fR" 4
11521 .IX Item "-mgnu-as"
11522 .PD 0
11523 .IP "\fB\-mno\-gnu\-as\fR" 4
11524 .IX Item "-mno-gnu-as"
11526 Generate (or don't) code for the \s-1GNU\s0 assembler.  This is the default.
11527 .IP "\fB\-mgnu\-ld\fR" 4
11528 .IX Item "-mgnu-ld"
11529 .PD 0
11530 .IP "\fB\-mno\-gnu\-ld\fR" 4
11531 .IX Item "-mno-gnu-ld"
11533 Generate (or don't) code for the \s-1GNU\s0 linker.  This is the default.
11534 .IP "\fB\-mno\-pic\fR" 4
11535 .IX Item "-mno-pic"
11536 Generate code that does not use a global pointer register.  The result
11537 is not position independent code, and violates the \s-1IA\-64\s0 \s-1ABI\s0.
11538 .IP "\fB\-mvolatile\-asm\-stop\fR" 4
11539 .IX Item "-mvolatile-asm-stop"
11540 .PD 0
11541 .IP "\fB\-mno\-volatile\-asm\-stop\fR" 4
11542 .IX Item "-mno-volatile-asm-stop"
11544 Generate (or don't) a stop bit immediately before and after volatile asm
11545 statements.
11546 .IP "\fB\-mregister\-names\fR" 4
11547 .IX Item "-mregister-names"
11548 .PD 0
11549 .IP "\fB\-mno\-register\-names\fR" 4
11550 .IX Item "-mno-register-names"
11552 Generate (or don't) \fBin\fR, \fBloc\fR, and \fBout\fR register names for
11553 the stacked registers.  This may make assembler output more readable.
11554 .IP "\fB\-mno\-sdata\fR" 4
11555 .IX Item "-mno-sdata"
11556 .PD 0
11557 .IP "\fB\-msdata\fR" 4
11558 .IX Item "-msdata"
11560 Disable (or enable) optimizations that use the small data section.  This may
11561 be useful for working around optimizer bugs.
11562 .IP "\fB\-mconstant\-gp\fR" 4
11563 .IX Item "-mconstant-gp"
11564 Generate code that uses a single constant global pointer value.  This is
11565 useful when compiling kernel code.
11566 .IP "\fB\-mauto\-pic\fR" 4
11567 .IX Item "-mauto-pic"
11568 Generate code that is self\-relocatable.  This implies \fB\-mconstant\-gp\fR.
11569 This is useful when compiling firmware code.
11570 .IP "\fB\-minline\-float\-divide\-min\-latency\fR" 4
11571 .IX Item "-minline-float-divide-min-latency"
11572 Generate code for inline divides of floating point values
11573 using the minimum latency algorithm.
11574 .IP "\fB\-minline\-float\-divide\-max\-throughput\fR" 4
11575 .IX Item "-minline-float-divide-max-throughput"
11576 Generate code for inline divides of floating point values
11577 using the maximum throughput algorithm.
11578 .IP "\fB\-mno\-inline\-float\-divide\fR" 4
11579 .IX Item "-mno-inline-float-divide"
11580 Do not generate inline code for divides of floating point values.
11581 .IP "\fB\-minline\-int\-divide\-min\-latency\fR" 4
11582 .IX Item "-minline-int-divide-min-latency"
11583 Generate code for inline divides of integer values
11584 using the minimum latency algorithm.
11585 .IP "\fB\-minline\-int\-divide\-max\-throughput\fR" 4
11586 .IX Item "-minline-int-divide-max-throughput"
11587 Generate code for inline divides of integer values
11588 using the maximum throughput algorithm.
11589 .IP "\fB\-mno\-inline\-int\-divide\fR" 4
11590 .IX Item "-mno-inline-int-divide"
11591 Do not generate inline code for divides of integer values.
11592 .IP "\fB\-minline\-sqrt\-min\-latency\fR" 4
11593 .IX Item "-minline-sqrt-min-latency"
11594 Generate code for inline square roots
11595 using the minimum latency algorithm.
11596 .IP "\fB\-minline\-sqrt\-max\-throughput\fR" 4
11597 .IX Item "-minline-sqrt-max-throughput"
11598 Generate code for inline square roots
11599 using the maximum throughput algorithm.
11600 .IP "\fB\-mno\-inline\-sqrt\fR" 4
11601 .IX Item "-mno-inline-sqrt"
11602 Do not generate inline code for sqrt.
11603 .IP "\fB\-mfused\-madd\fR" 4
11604 .IX Item "-mfused-madd"
11605 .PD 0
11606 .IP "\fB\-mno\-fused\-madd\fR" 4
11607 .IX Item "-mno-fused-madd"
11609 Do (don't) generate code that uses the fused multiply/add or multiply/subtract
11610 instructions.  The default is to use these instructions.
11611 .IP "\fB\-mno\-dwarf2\-asm\fR" 4
11612 .IX Item "-mno-dwarf2-asm"
11613 .PD 0
11614 .IP "\fB\-mdwarf2\-asm\fR" 4
11615 .IX Item "-mdwarf2-asm"
11617 Don't (or do) generate assembler code for the \s-1DWARF2\s0 line number debugging
11618 info.  This may be useful when not using the \s-1GNU\s0 assembler.
11619 .IP "\fB\-mearly\-stop\-bits\fR" 4
11620 .IX Item "-mearly-stop-bits"
11621 .PD 0
11622 .IP "\fB\-mno\-early\-stop\-bits\fR" 4
11623 .IX Item "-mno-early-stop-bits"
11625 Allow stop bits to be placed earlier than immediately preceding the
11626 instruction that triggered the stop bit.  This can improve instruction
11627 scheduling, but does not always do so.
11628 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
11629 .IX Item "-mfixed-range=register-range"
11630 Generate code treating the given register range as fixed registers.
11631 A fixed register is one that the register allocator can not use.  This is
11632 useful when compiling kernel code.  A register range is specified as
11633 two registers separated by a dash.  Multiple register ranges can be
11634 specified separated by a comma.
11635 .IP "\fB\-mtls\-size=\fR\fItls-size\fR" 4
11636 .IX Item "-mtls-size=tls-size"
11637 Specify bit size of immediate \s-1TLS\s0 offsets.  Valid values are 14, 22, and
11639 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
11640 .IX Item "-mtune=cpu-type"
11641 Tune the instruction scheduling for a particular \s-1CPU\s0, Valid values are
11642 itanium, itanium1, merced, itanium2, and mckinley.
11643 .IP "\fB\-milp32\fR" 4
11644 .IX Item "-milp32"
11645 .PD 0
11646 .IP "\fB\-mlp64\fR" 4
11647 .IX Item "-mlp64"
11649 Generate code for a 32\-bit or 64\-bit environment.
11650 The 32\-bit environment sets int, long and pointer to 32 bits.
11651 The 64\-bit environment sets int to 32 bits and long and pointer
11652 to 64 bits.  These are HP-UX specific flags.
11653 .IP "\fB\-mno\-sched\-br\-data\-spec\fR" 4
11654 .IX Item "-mno-sched-br-data-spec"
11655 .PD 0
11656 .IP "\fB\-msched\-br\-data\-spec\fR" 4
11657 .IX Item "-msched-br-data-spec"
11659 (Dis/En)able data speculative scheduling before reload.
11660 This will result in generation of the ld.a instructions and
11661 the corresponding check instructions (ld.c / chk.a).
11662 The default is 'disable'.
11663 .IP "\fB\-msched\-ar\-data\-spec\fR" 4
11664 .IX Item "-msched-ar-data-spec"
11665 .PD 0
11666 .IP "\fB\-mno\-sched\-ar\-data\-spec\fR" 4
11667 .IX Item "-mno-sched-ar-data-spec"
11669 (En/Dis)able data speculative scheduling after reload.
11670 This will result in generation of the ld.a instructions and
11671 the corresponding check instructions (ld.c / chk.a).
11672 The default is 'enable'.
11673 .IP "\fB\-mno\-sched\-control\-spec\fR" 4
11674 .IX Item "-mno-sched-control-spec"
11675 .PD 0
11676 .IP "\fB\-msched\-control\-spec\fR" 4
11677 .IX Item "-msched-control-spec"
11679 (Dis/En)able control speculative scheduling.  This feature is
11680 available only during region scheduling (i.e. before reload).
11681 This will result in generation of the ld.s instructions and
11682 the corresponding check instructions chk.s .
11683 The default is 'disable'.
11684 .IP "\fB\-msched\-br\-in\-data\-spec\fR" 4
11685 .IX Item "-msched-br-in-data-spec"
11686 .PD 0
11687 .IP "\fB\-mno\-sched\-br\-in\-data\-spec\fR" 4
11688 .IX Item "-mno-sched-br-in-data-spec"
11690 (En/Dis)able speculative scheduling of the instructions that
11691 are dependent on the data speculative loads before reload.
11692 This is effective only with \fB\-msched\-br\-data\-spec\fR enabled.
11693 The default is 'enable'.
11694 .IP "\fB\-msched\-ar\-in\-data\-spec\fR" 4
11695 .IX Item "-msched-ar-in-data-spec"
11696 .PD 0
11697 .IP "\fB\-mno\-sched\-ar\-in\-data\-spec\fR" 4
11698 .IX Item "-mno-sched-ar-in-data-spec"
11700 (En/Dis)able speculative scheduling of the instructions that
11701 are dependent on the data speculative loads after reload.
11702 This is effective only with \fB\-msched\-ar\-data\-spec\fR enabled.
11703 The default is 'enable'.
11704 .IP "\fB\-msched\-in\-control\-spec\fR" 4
11705 .IX Item "-msched-in-control-spec"
11706 .PD 0
11707 .IP "\fB\-mno\-sched\-in\-control\-spec\fR" 4
11708 .IX Item "-mno-sched-in-control-spec"
11710 (En/Dis)able speculative scheduling of the instructions that
11711 are dependent on the control speculative loads.
11712 This is effective only with \fB\-msched\-control\-spec\fR enabled.
11713 The default is 'enable'.
11714 .IP "\fB\-mno\-sched\-prefer\-non\-data\-spec\-insns\fR" 4
11715 .IX Item "-mno-sched-prefer-non-data-spec-insns"
11716 .PD 0
11717 .IP "\fB\-msched\-prefer\-non\-data\-spec\-insns\fR" 4
11718 .IX Item "-msched-prefer-non-data-spec-insns"
11720 If enabled, data speculative instructions will be chosen for schedule
11721 only if there are no other choices at the moment.  This will make
11722 the use of the data speculation much more conservative.
11723 The default is 'disable'.
11724 .IP "\fB\-mno\-sched\-prefer\-non\-control\-spec\-insns\fR" 4
11725 .IX Item "-mno-sched-prefer-non-control-spec-insns"
11726 .PD 0
11727 .IP "\fB\-msched\-prefer\-non\-control\-spec\-insns\fR" 4
11728 .IX Item "-msched-prefer-non-control-spec-insns"
11730 If enabled, control speculative instructions will be chosen for schedule
11731 only if there are no other choices at the moment.  This will make
11732 the use of the control speculation much more conservative.
11733 The default is 'disable'.
11734 .IP "\fB\-mno\-sched\-count\-spec\-in\-critical\-path\fR" 4
11735 .IX Item "-mno-sched-count-spec-in-critical-path"
11736 .PD 0
11737 .IP "\fB\-msched\-count\-spec\-in\-critical\-path\fR" 4
11738 .IX Item "-msched-count-spec-in-critical-path"
11740 If enabled, speculative dependencies will be considered during
11741 computation of the instructions priorities.  This will make the use of the
11742 speculation a bit more conservative.
11743 The default is 'disable'.
11744 .IP "\fB\-msched\-spec\-ldc\fR" 4
11745 .IX Item "-msched-spec-ldc"
11746 Use a simple data speculation check.  This option is on by default.
11747 .IP "\fB\-msched\-control\-spec\-ldc\fR" 4
11748 .IX Item "-msched-control-spec-ldc"
11749 Use a simple check for control speculation.  This option is on by default.
11750 .IP "\fB\-msched\-stop\-bits\-after\-every\-cycle\fR" 4
11751 .IX Item "-msched-stop-bits-after-every-cycle"
11752 Place a stop bit after every cycle when scheduling.  This option is on
11753 by default.
11754 .IP "\fB\-msched\-fp\-mem\-deps\-zero\-cost\fR" 4
11755 .IX Item "-msched-fp-mem-deps-zero-cost"
11756 Assume that floating-point stores and loads are not likely to cause a conflict
11757 when placed into the same instruction group.  This option is disabled by
11758 default.
11759 .IP "\fB\-msel\-sched\-dont\-check\-control\-spec\fR" 4
11760 .IX Item "-msel-sched-dont-check-control-spec"
11761 Generate checks for control speculation in selective scheduling.
11762 This flag is disabled by default.
11763 .IP "\fB\-msched\-max\-memory\-insns=\fR\fImax-insns\fR" 4
11764 .IX Item "-msched-max-memory-insns=max-insns"
11765 Limit on the number of memory insns per instruction group, giving lower
11766 priority to subsequent memory insns attempting to schedule in the same
11767 instruction group. Frequently useful to prevent cache bank conflicts.
11768 The default value is 1.
11769 .IP "\fB\-msched\-max\-memory\-insns\-hard\-limit\fR" 4
11770 .IX Item "-msched-max-memory-insns-hard-limit"
11771 Disallow more than `msched\-max\-memory\-insns' in instruction group.
11772 Otherwise, limit is `soft' meaning that we would prefer non-memory operations
11773 when limit is reached but may still schedule memory operations.
11775 \fI\s-1IA\-64/VMS\s0 Options\fR
11776 .IX Subsection "IA-64/VMS Options"
11778 These \fB\-m\fR options are defined for the \s-1IA\-64/VMS\s0 implementations:
11779 .IP "\fB\-mvms\-return\-codes\fR" 4
11780 .IX Item "-mvms-return-codes"
11781 Return \s-1VMS\s0 condition codes from main. The default is to return \s-1POSIX\s0
11782 style condition (e.g. error) codes.
11783 .IP "\fB\-mdebug\-main=\fR\fIprefix\fR" 4
11784 .IX Item "-mdebug-main=prefix"
11785 Flag the first routine whose name starts with \fIprefix\fR as the main
11786 routine for the debugger.
11787 .IP "\fB\-mmalloc64\fR" 4
11788 .IX Item "-mmalloc64"
11789 Default to 64bit memory allocation routines.
11791 \fI\s-1LM32\s0 Options\fR
11792 .IX Subsection "LM32 Options"
11794 These \fB\-m\fR options are defined for the Lattice Mico32 architecture:
11795 .IP "\fB\-mbarrel\-shift\-enabled\fR" 4
11796 .IX Item "-mbarrel-shift-enabled"
11797 Enable barrel-shift instructions.
11798 .IP "\fB\-mdivide\-enabled\fR" 4
11799 .IX Item "-mdivide-enabled"
11800 Enable divide and modulus instructions.
11801 .IP "\fB\-mmultiply\-enabled\fR" 4
11802 .IX Item "-mmultiply-enabled"
11803 Enable multiply instructions.
11804 .IP "\fB\-msign\-extend\-enabled\fR" 4
11805 .IX Item "-msign-extend-enabled"
11806 Enable sign extend instructions.
11807 .IP "\fB\-muser\-enabled\fR" 4
11808 .IX Item "-muser-enabled"
11809 Enable user-defined instructions.
11811 \fIM32C Options\fR
11812 .IX Subsection "M32C Options"
11813 .IP "\fB\-mcpu=\fR\fIname\fR" 4
11814 .IX Item "-mcpu=name"
11815 Select the \s-1CPU\s0 for which code is generated.  \fIname\fR may be one of
11816 \&\fBr8c\fR for the R8C/Tiny series, \fBm16c\fR for the M16C (up to
11817 /60) series, \fBm32cm\fR for the M16C/80 series, or \fBm32c\fR for
11818 the M32C/80 series.
11819 .IP "\fB\-msim\fR" 4
11820 .IX Item "-msim"
11821 Specifies that the program will be run on the simulator.  This causes
11822 an alternate runtime library to be linked in which supports, for
11823 example, file I/O.  You must not use this option when generating
11824 programs that will run on real hardware; you must provide your own
11825 runtime library for whatever I/O functions are needed.
11826 .IP "\fB\-memregs=\fR\fInumber\fR" 4
11827 .IX Item "-memregs=number"
11828 Specifies the number of memory-based pseudo-registers \s-1GCC\s0 will use
11829 during code generation.  These pseudo-registers will be used like real
11830 registers, so there is a tradeoff between \s-1GCC\s0's ability to fit the
11831 code into available registers, and the performance penalty of using
11832 memory instead of registers.  Note that all modules in a program must
11833 be compiled with the same value for this option.  Because of that, you
11834 must not use this option with the default runtime libraries gcc
11835 builds.
11837 \fIM32R/D Options\fR
11838 .IX Subsection "M32R/D Options"
11840 These \fB\-m\fR options are defined for Renesas M32R/D architectures:
11841 .IP "\fB\-m32r2\fR" 4
11842 .IX Item "-m32r2"
11843 Generate code for the M32R/2.
11844 .IP "\fB\-m32rx\fR" 4
11845 .IX Item "-m32rx"
11846 Generate code for the M32R/X.
11847 .IP "\fB\-m32r\fR" 4
11848 .IX Item "-m32r"
11849 Generate code for the M32R.  This is the default.
11850 .IP "\fB\-mmodel=small\fR" 4
11851 .IX Item "-mmodel=small"
11852 Assume all objects live in the lower 16MB of memory (so that their addresses
11853 can be loaded with the \f(CW\*(C`ld24\*(C'\fR instruction), and assume all subroutines
11854 are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
11855 This is the default.
11857 The addressability of a particular object can be set with the
11858 \&\f(CW\*(C`model\*(C'\fR attribute.
11859 .IP "\fB\-mmodel=medium\fR" 4
11860 .IX Item "-mmodel=medium"
11861 Assume objects may be anywhere in the 32\-bit address space (the compiler
11862 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
11863 assume all subroutines are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
11864 .IP "\fB\-mmodel=large\fR" 4
11865 .IX Item "-mmodel=large"
11866 Assume objects may be anywhere in the 32\-bit address space (the compiler
11867 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
11868 assume subroutines may not be reachable with the \f(CW\*(C`bl\*(C'\fR instruction
11869 (the compiler will generate the much slower \f(CW\*(C`seth/add3/jl\*(C'\fR
11870 instruction sequence).
11871 .IP "\fB\-msdata=none\fR" 4
11872 .IX Item "-msdata=none"
11873 Disable use of the small data area.  Variables will be put into
11874 one of \fB.data\fR, \fBbss\fR, or \fB.rodata\fR (unless the
11875 \&\f(CW\*(C`section\*(C'\fR attribute has been specified).
11876 This is the default.
11878 The small data area consists of sections \fB.sdata\fR and \fB.sbss\fR.
11879 Objects may be explicitly put in the small data area with the
11880 \&\f(CW\*(C`section\*(C'\fR attribute using one of these sections.
11881 .IP "\fB\-msdata=sdata\fR" 4
11882 .IX Item "-msdata=sdata"
11883 Put small global and static data in the small data area, but do not
11884 generate special code to reference them.
11885 .IP "\fB\-msdata=use\fR" 4
11886 .IX Item "-msdata=use"
11887 Put small global and static data in the small data area, and generate
11888 special instructions to reference them.
11889 .IP "\fB\-G\fR \fInum\fR" 4
11890 .IX Item "-G num"
11891 Put global and static objects less than or equal to \fInum\fR bytes
11892 into the small data or bss sections instead of the normal data or bss
11893 sections.  The default value of \fInum\fR is 8.
11894 The \fB\-msdata\fR option must be set to one of \fBsdata\fR or \fBuse\fR
11895 for this option to have any effect.
11897 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
11898 Compiling with different values of \fInum\fR may or may not work; if it
11899 doesn't the linker will give an error message\-\-\-incorrect code will not be
11900 generated.
11901 .IP "\fB\-mdebug\fR" 4
11902 .IX Item "-mdebug"
11903 Makes the M32R specific code in the compiler display some statistics
11904 that might help in debugging programs.
11905 .IP "\fB\-malign\-loops\fR" 4
11906 .IX Item "-malign-loops"
11907 Align all loops to a 32\-byte boundary.
11908 .IP "\fB\-mno\-align\-loops\fR" 4
11909 .IX Item "-mno-align-loops"
11910 Do not enforce a 32\-byte alignment for loops.  This is the default.
11911 .IP "\fB\-missue\-rate=\fR\fInumber\fR" 4
11912 .IX Item "-missue-rate=number"
11913 Issue \fInumber\fR instructions per cycle.  \fInumber\fR can only be 1
11914 or 2.
11915 .IP "\fB\-mbranch\-cost=\fR\fInumber\fR" 4
11916 .IX Item "-mbranch-cost=number"
11917 \&\fInumber\fR can only be 1 or 2.  If it is 1 then branches will be
11918 preferred over conditional code, if it is 2, then the opposite will
11919 apply.
11920 .IP "\fB\-mflush\-trap=\fR\fInumber\fR" 4
11921 .IX Item "-mflush-trap=number"
11922 Specifies the trap number to use to flush the cache.  The default is
11923 12.  Valid numbers are between 0 and 15 inclusive.
11924 .IP "\fB\-mno\-flush\-trap\fR" 4
11925 .IX Item "-mno-flush-trap"
11926 Specifies that the cache cannot be flushed by using a trap.
11927 .IP "\fB\-mflush\-func=\fR\fIname\fR" 4
11928 .IX Item "-mflush-func=name"
11929 Specifies the name of the operating system function to call to flush
11930 the cache.  The default is \fI_flush_cache\fR, but a function call
11931 will only be used if a trap is not available.
11932 .IP "\fB\-mno\-flush\-func\fR" 4
11933 .IX Item "-mno-flush-func"
11934 Indicates that there is no \s-1OS\s0 function for flushing the cache.
11936 \fIM680x0 Options\fR
11937 .IX Subsection "M680x0 Options"
11939 These are the \fB\-m\fR options defined for M680x0 and ColdFire processors.
11940 The default settings depend on which architecture was selected when
11941 the compiler was configured; the defaults for the most common choices
11942 are given below.
11943 .IP "\fB\-march=\fR\fIarch\fR" 4
11944 .IX Item "-march=arch"
11945 Generate code for a specific M680x0 or ColdFire instruction set
11946 architecture.  Permissible values of \fIarch\fR for M680x0
11947 architectures are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
11948 \&\fB68030\fR, \fB68040\fR, \fB68060\fR and \fBcpu32\fR.  ColdFire
11949 architectures are selected according to Freescale's \s-1ISA\s0 classification
11950 and the permissible values are: \fBisaa\fR, \fBisaaplus\fR,
11951 \&\fBisab\fR and \fBisac\fR.
11953 gcc defines a macro \fB_\|_mcf\fR\fIarch\fR\fB_\|_\fR whenever it is generating
11954 code for a ColdFire target.  The \fIarch\fR in this macro is one of the
11955 \&\fB\-march\fR arguments given above.
11957 When used together, \fB\-march\fR and \fB\-mtune\fR select code
11958 that runs on a family of similar processors but that is optimized
11959 for a particular microarchitecture.
11960 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
11961 .IX Item "-mcpu=cpu"
11962 Generate code for a specific M680x0 or ColdFire processor.
11963 The M680x0 \fIcpu\fRs are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
11964 \&\fB68030\fR, \fB68040\fR, \fB68060\fR, \fB68302\fR, \fB68332\fR
11965 and \fBcpu32\fR.  The ColdFire \fIcpu\fRs are given by the table
11966 below, which also classifies the CPUs into families:
11967 .RS 4
11968 .IP "Family : \fB\-mcpu\fR arguments" 4
11969 .IX Item "Family : -mcpu arguments"
11970 .PD 0
11971 .IP "\fB51\fR : \fB51\fR \fB51ac\fR \fB51cn\fR \fB51em\fR \fB51qe\fR" 4
11972 .IX Item "51 : 51 51ac 51cn 51em 51qe"
11973 .IP "\fB5206\fR : \fB5202\fR \fB5204\fR \fB5206\fR" 4
11974 .IX Item "5206 : 5202 5204 5206"
11975 .IP "\fB5206e\fR : \fB5206e\fR" 4
11976 .IX Item "5206e : 5206e"
11977 .IP "\fB5208\fR : \fB5207\fR \fB5208\fR" 4
11978 .IX Item "5208 : 5207 5208"
11979 .IP "\fB5211a\fR : \fB5210a\fR \fB5211a\fR" 4
11980 .IX Item "5211a : 5210a 5211a"
11981 .IP "\fB5213\fR : \fB5211\fR \fB5212\fR \fB5213\fR" 4
11982 .IX Item "5213 : 5211 5212 5213"
11983 .IP "\fB5216\fR : \fB5214\fR \fB5216\fR" 4
11984 .IX Item "5216 : 5214 5216"
11985 .IP "\fB52235\fR : \fB52230\fR \fB52231\fR \fB52232\fR \fB52233\fR \fB52234\fR \fB52235\fR" 4
11986 .IX Item "52235 : 52230 52231 52232 52233 52234 52235"
11987 .IP "\fB5225\fR : \fB5224\fR \fB5225\fR" 4
11988 .IX Item "5225 : 5224 5225"
11989 .IP "\fB52259\fR : \fB52252\fR \fB52254\fR \fB52255\fR \fB52256\fR \fB52258\fR \fB52259\fR" 4
11990 .IX Item "52259 : 52252 52254 52255 52256 52258 52259"
11991 .IP "\fB5235\fR : \fB5232\fR \fB5233\fR \fB5234\fR \fB5235\fR \fB523x\fR" 4
11992 .IX Item "5235 : 5232 5233 5234 5235 523x"
11993 .IP "\fB5249\fR : \fB5249\fR" 4
11994 .IX Item "5249 : 5249"
11995 .IP "\fB5250\fR : \fB5250\fR" 4
11996 .IX Item "5250 : 5250"
11997 .IP "\fB5271\fR : \fB5270\fR \fB5271\fR" 4
11998 .IX Item "5271 : 5270 5271"
11999 .IP "\fB5272\fR : \fB5272\fR" 4
12000 .IX Item "5272 : 5272"
12001 .IP "\fB5275\fR : \fB5274\fR \fB5275\fR" 4
12002 .IX Item "5275 : 5274 5275"
12003 .IP "\fB5282\fR : \fB5280\fR \fB5281\fR \fB5282\fR \fB528x\fR" 4
12004 .IX Item "5282 : 5280 5281 5282 528x"
12005 .IP "\fB53017\fR : \fB53011\fR \fB53012\fR \fB53013\fR \fB53014\fR \fB53015\fR \fB53016\fR \fB53017\fR" 4
12006 .IX Item "53017 : 53011 53012 53013 53014 53015 53016 53017"
12007 .IP "\fB5307\fR : \fB5307\fR" 4
12008 .IX Item "5307 : 5307"
12009 .IP "\fB5329\fR : \fB5327\fR \fB5328\fR \fB5329\fR \fB532x\fR" 4
12010 .IX Item "5329 : 5327 5328 5329 532x"
12011 .IP "\fB5373\fR : \fB5372\fR \fB5373\fR \fB537x\fR" 4
12012 .IX Item "5373 : 5372 5373 537x"
12013 .IP "\fB5407\fR : \fB5407\fR" 4
12014 .IX Item "5407 : 5407"
12015 .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
12016 .IX Item "5475 : 5470 5471 5472 5473 5474 5475 547x 5480 5481 5482 5483 5484 5485"
12018 .RS 4
12021 \&\fB\-mcpu=\fR\fIcpu\fR overrides \fB\-march=\fR\fIarch\fR if
12022 \&\fIarch\fR is compatible with \fIcpu\fR.  Other combinations of
12023 \&\fB\-mcpu\fR and \fB\-march\fR are rejected.
12025 gcc defines the macro \fB_\|_mcf_cpu_\fR\fIcpu\fR when ColdFire target
12026 \&\fIcpu\fR is selected.  It also defines \fB_\|_mcf_family_\fR\fIfamily\fR,
12027 where the value of \fIfamily\fR is given by the table above.
12029 .IP "\fB\-mtune=\fR\fItune\fR" 4
12030 .IX Item "-mtune=tune"
12031 Tune the code for a particular microarchitecture, within the
12032 constraints set by \fB\-march\fR and \fB\-mcpu\fR.
12033 The M680x0 microarchitectures are: \fB68000\fR, \fB68010\fR,
12034 \&\fB68020\fR, \fB68030\fR, \fB68040\fR, \fB68060\fR
12035 and \fBcpu32\fR.  The ColdFire microarchitectures
12036 are: \fBcfv1\fR, \fBcfv2\fR, \fBcfv3\fR, \fBcfv4\fR and \fBcfv4e\fR.
12038 You can also use \fB\-mtune=68020\-40\fR for code that needs
12039 to run relatively well on 68020, 68030 and 68040 targets.
12040 \&\fB\-mtune=68020\-60\fR is similar but includes 68060 targets
12041 as well.  These two options select the same tuning decisions as
12042 \&\fB\-m68020\-40\fR and \fB\-m68020\-60\fR respectively.
12044 gcc defines the macros \fB_\|_mc\fR\fIarch\fR and \fB_\|_mc\fR\fIarch\fR\fB_\|_\fR
12045 when tuning for 680x0 architecture \fIarch\fR.  It also defines
12046 \&\fBmc\fR\fIarch\fR unless either \fB\-ansi\fR or a non-GNU \fB\-std\fR
12047 option is used.  If gcc is tuning for a range of architectures,
12048 as selected by \fB\-mtune=68020\-40\fR or \fB\-mtune=68020\-60\fR,
12049 it defines the macros for every architecture in the range.
12051 gcc also defines the macro \fB_\|_m\fR\fIuarch\fR\fB_\|_\fR when tuning for
12052 ColdFire microarchitecture \fIuarch\fR, where \fIuarch\fR is one
12053 of the arguments given above.
12054 .IP "\fB\-m68000\fR" 4
12055 .IX Item "-m68000"
12056 .PD 0
12057 .IP "\fB\-mc68000\fR" 4
12058 .IX Item "-mc68000"
12060 Generate output for a 68000.  This is the default
12061 when the compiler is configured for 68000\-based systems.
12062 It is equivalent to \fB\-march=68000\fR.
12064 Use this option for microcontrollers with a 68000 or \s-1EC000\s0 core,
12065 including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
12066 .IP "\fB\-m68010\fR" 4
12067 .IX Item "-m68010"
12068 Generate output for a 68010.  This is the default
12069 when the compiler is configured for 68010\-based systems.
12070 It is equivalent to \fB\-march=68010\fR.
12071 .IP "\fB\-m68020\fR" 4
12072 .IX Item "-m68020"
12073 .PD 0
12074 .IP "\fB\-mc68020\fR" 4
12075 .IX Item "-mc68020"
12077 Generate output for a 68020.  This is the default
12078 when the compiler is configured for 68020\-based systems.
12079 It is equivalent to \fB\-march=68020\fR.
12080 .IP "\fB\-m68030\fR" 4
12081 .IX Item "-m68030"
12082 Generate output for a 68030.  This is the default when the compiler is
12083 configured for 68030\-based systems.  It is equivalent to
12084 \&\fB\-march=68030\fR.
12085 .IP "\fB\-m68040\fR" 4
12086 .IX Item "-m68040"
12087 Generate output for a 68040.  This is the default when the compiler is
12088 configured for 68040\-based systems.  It is equivalent to
12089 \&\fB\-march=68040\fR.
12091 This option inhibits the use of 68881/68882 instructions that have to be
12092 emulated by software on the 68040.  Use this option if your 68040 does not
12093 have code to emulate those instructions.
12094 .IP "\fB\-m68060\fR" 4
12095 .IX Item "-m68060"
12096 Generate output for a 68060.  This is the default when the compiler is
12097 configured for 68060\-based systems.  It is equivalent to
12098 \&\fB\-march=68060\fR.
12100 This option inhibits the use of 68020 and 68881/68882 instructions that
12101 have to be emulated by software on the 68060.  Use this option if your 68060
12102 does not have code to emulate those instructions.
12103 .IP "\fB\-mcpu32\fR" 4
12104 .IX Item "-mcpu32"
12105 Generate output for a \s-1CPU32\s0.  This is the default
12106 when the compiler is configured for CPU32\-based systems.
12107 It is equivalent to \fB\-march=cpu32\fR.
12109 Use this option for microcontrollers with a
12110 \&\s-1CPU32\s0 or \s-1CPU32+\s0 core, including the 68330, 68331, 68332, 68333, 68334,
12111 68336, 68340, 68341, 68349 and 68360.
12112 .IP "\fB\-m5200\fR" 4
12113 .IX Item "-m5200"
12114 Generate output for a 520X ColdFire \s-1CPU\s0.  This is the default
12115 when the compiler is configured for 520X\-based systems.
12116 It is equivalent to \fB\-mcpu=5206\fR, and is now deprecated
12117 in favor of that option.
12119 Use this option for microcontroller with a 5200 core, including
12120 the \s-1MCF5202\s0, \s-1MCF5203\s0, \s-1MCF5204\s0 and \s-1MCF5206\s0.
12121 .IP "\fB\-m5206e\fR" 4
12122 .IX Item "-m5206e"
12123 Generate output for a 5206e ColdFire \s-1CPU\s0.  The option is now
12124 deprecated in favor of the equivalent \fB\-mcpu=5206e\fR.
12125 .IP "\fB\-m528x\fR" 4
12126 .IX Item "-m528x"
12127 Generate output for a member of the ColdFire 528X family.
12128 The option is now deprecated in favor of the equivalent
12129 \&\fB\-mcpu=528x\fR.
12130 .IP "\fB\-m5307\fR" 4
12131 .IX Item "-m5307"
12132 Generate output for a ColdFire 5307 \s-1CPU\s0.  The option is now deprecated
12133 in favor of the equivalent \fB\-mcpu=5307\fR.
12134 .IP "\fB\-m5407\fR" 4
12135 .IX Item "-m5407"
12136 Generate output for a ColdFire 5407 \s-1CPU\s0.  The option is now deprecated
12137 in favor of the equivalent \fB\-mcpu=5407\fR.
12138 .IP "\fB\-mcfv4e\fR" 4
12139 .IX Item "-mcfv4e"
12140 Generate output for a ColdFire V4e family \s-1CPU\s0 (e.g. 547x/548x).
12141 This includes use of hardware floating point instructions.
12142 The option is equivalent to \fB\-mcpu=547x\fR, and is now
12143 deprecated in favor of that option.
12144 .IP "\fB\-m68020\-40\fR" 4
12145 .IX Item "-m68020-40"
12146 Generate output for a 68040, without using any of the new instructions.
12147 This results in code which can run relatively efficiently on either a
12148 68020/68881 or a 68030 or a 68040.  The generated code does use the
12149 68881 instructions that are emulated on the 68040.
12151 The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-40\fR.
12152 .IP "\fB\-m68020\-60\fR" 4
12153 .IX Item "-m68020-60"
12154 Generate output for a 68060, without using any of the new instructions.
12155 This results in code which can run relatively efficiently on either a
12156 68020/68881 or a 68030 or a 68040.  The generated code does use the
12157 68881 instructions that are emulated on the 68060.
12159 The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-60\fR.
12160 .IP "\fB\-mhard\-float\fR" 4
12161 .IX Item "-mhard-float"
12162 .PD 0
12163 .IP "\fB\-m68881\fR" 4
12164 .IX Item "-m68881"
12166 Generate floating-point instructions.  This is the default for 68020
12167 and above, and for ColdFire devices that have an \s-1FPU\s0.  It defines the
12168 macro \fB_\|_HAVE_68881_\|_\fR on M680x0 targets and \fB_\|_mcffpu_\|_\fR
12169 on ColdFire targets.
12170 .IP "\fB\-msoft\-float\fR" 4
12171 .IX Item "-msoft-float"
12172 Do not generate floating-point instructions; use library calls instead.
12173 This is the default for 68000, 68010, and 68832 targets.  It is also
12174 the default for ColdFire devices that have no \s-1FPU\s0.
12175 .IP "\fB\-mdiv\fR" 4
12176 .IX Item "-mdiv"
12177 .PD 0
12178 .IP "\fB\-mno\-div\fR" 4
12179 .IX Item "-mno-div"
12181 Generate (do not generate) ColdFire hardware divide and remainder
12182 instructions.  If \fB\-march\fR is used without \fB\-mcpu\fR,
12183 the default is \*(L"on\*(R" for ColdFire architectures and \*(L"off\*(R" for M680x0
12184 architectures.  Otherwise, the default is taken from the target \s-1CPU\s0
12185 (either the default \s-1CPU\s0, or the one specified by \fB\-mcpu\fR).  For
12186 example, the default is \*(L"off\*(R" for \fB\-mcpu=5206\fR and \*(L"on\*(R" for
12187 \&\fB\-mcpu=5206e\fR.
12189 gcc defines the macro \fB_\|_mcfhwdiv_\|_\fR when this option is enabled.
12190 .IP "\fB\-mshort\fR" 4
12191 .IX Item "-mshort"
12192 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
12193 Additionally, parameters passed on the stack are also aligned to a
12194 16\-bit boundary even on targets whose \s-1API\s0 mandates promotion to 32\-bit.
12195 .IP "\fB\-mno\-short\fR" 4
12196 .IX Item "-mno-short"
12197 Do not consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide.  This is the default.
12198 .IP "\fB\-mnobitfield\fR" 4
12199 .IX Item "-mnobitfield"
12200 .PD 0
12201 .IP "\fB\-mno\-bitfield\fR" 4
12202 .IX Item "-mno-bitfield"
12204 Do not use the bit-field instructions.  The \fB\-m68000\fR, \fB\-mcpu32\fR
12205 and \fB\-m5200\fR options imply \fB\-mnobitfield\fR.
12206 .IP "\fB\-mbitfield\fR" 4
12207 .IX Item "-mbitfield"
12208 Do use the bit-field instructions.  The \fB\-m68020\fR option implies
12209 \&\fB\-mbitfield\fR.  This is the default if you use a configuration
12210 designed for a 68020.
12211 .IP "\fB\-mrtd\fR" 4
12212 .IX Item "-mrtd"
12213 Use a different function-calling convention, in which functions
12214 that take a fixed number of arguments return with the \f(CW\*(C`rtd\*(C'\fR
12215 instruction, which pops their arguments while returning.  This
12216 saves one instruction in the caller since there is no need to pop
12217 the arguments there.
12219 This calling convention is incompatible with the one normally
12220 used on Unix, so you cannot use it if you need to call libraries
12221 compiled with the Unix compiler.
12223 Also, you must provide function prototypes for all functions that
12224 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
12225 otherwise incorrect code will be generated for calls to those
12226 functions.
12228 In addition, seriously incorrect code will result if you call a
12229 function with too many arguments.  (Normally, extra arguments are
12230 harmlessly ignored.)
12232 The \f(CW\*(C`rtd\*(C'\fR instruction is supported by the 68010, 68020, 68030,
12233 68040, 68060 and \s-1CPU32\s0 processors, but not by the 68000 or 5200.
12234 .IP "\fB\-mno\-rtd\fR" 4
12235 .IX Item "-mno-rtd"
12236 Do not use the calling conventions selected by \fB\-mrtd\fR.
12237 This is the default.
12238 .IP "\fB\-malign\-int\fR" 4
12239 .IX Item "-malign-int"
12240 .PD 0
12241 .IP "\fB\-mno\-align\-int\fR" 4
12242 .IX Item "-mno-align-int"
12244 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,
12245 \&\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
12246 boundary (\fB\-malign\-int\fR) or a 16\-bit boundary (\fB\-mno\-align\-int\fR).
12247 Aligning variables on 32\-bit boundaries produces code that runs somewhat
12248 faster on processors with 32\-bit busses at the expense of more memory.
12250 \&\fBWarning:\fR if you use the \fB\-malign\-int\fR switch, \s-1GCC\s0 will
12251 align structures containing the above types  differently than
12252 most published application binary interface specifications for the m68k.
12253 .IP "\fB\-mpcrel\fR" 4
12254 .IX Item "-mpcrel"
12255 Use the pc-relative addressing mode of the 68000 directly, instead of
12256 using a global offset table.  At present, this option implies \fB\-fpic\fR,
12257 allowing at most a 16\-bit offset for pc-relative addressing.  \fB\-fPIC\fR is
12258 not presently supported with \fB\-mpcrel\fR, though this could be supported for
12259 68020 and higher processors.
12260 .IP "\fB\-mno\-strict\-align\fR" 4
12261 .IX Item "-mno-strict-align"
12262 .PD 0
12263 .IP "\fB\-mstrict\-align\fR" 4
12264 .IX Item "-mstrict-align"
12266 Do not (do) assume that unaligned memory references will be handled by
12267 the system.
12268 .IP "\fB\-msep\-data\fR" 4
12269 .IX Item "-msep-data"
12270 Generate code that allows the data segment to be located in a different
12271 area of memory from the text segment.  This allows for execute in place in
12272 an environment without virtual memory management.  This option implies
12273 \&\fB\-fPIC\fR.
12274 .IP "\fB\-mno\-sep\-data\fR" 4
12275 .IX Item "-mno-sep-data"
12276 Generate code that assumes that the data segment follows the text segment.
12277 This is the default.
12278 .IP "\fB\-mid\-shared\-library\fR" 4
12279 .IX Item "-mid-shared-library"
12280 Generate code that supports shared libraries via the library \s-1ID\s0 method.
12281 This allows for execute in place and shared libraries in an environment
12282 without virtual memory management.  This option implies \fB\-fPIC\fR.
12283 .IP "\fB\-mno\-id\-shared\-library\fR" 4
12284 .IX Item "-mno-id-shared-library"
12285 Generate code that doesn't assume \s-1ID\s0 based shared libraries are being used.
12286 This is the default.
12287 .IP "\fB\-mshared\-library\-id=n\fR" 4
12288 .IX Item "-mshared-library-id=n"
12289 Specified the identification number of the \s-1ID\s0 based shared library being
12290 compiled.  Specifying a value of 0 will generate more compact code, specifying
12291 other values will force the allocation of that number to the current
12292 library but is no more space or time efficient than omitting this option.
12293 .IP "\fB\-mxgot\fR" 4
12294 .IX Item "-mxgot"
12295 .PD 0
12296 .IP "\fB\-mno\-xgot\fR" 4
12297 .IX Item "-mno-xgot"
12299 When generating position-independent code for ColdFire, generate code
12300 that works if the \s-1GOT\s0 has more than 8192 entries.  This code is
12301 larger and slower than code generated without this option.  On M680x0
12302 processors, this option is not needed; \fB\-fPIC\fR suffices.
12304 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT\s0.
12305 While this is relatively efficient, it only works if the \s-1GOT\s0
12306 is smaller than about 64k.  Anything larger causes the linker
12307 to report an error such as:
12309 .Vb 1
12310 \&        relocation truncated to fit: R_68K_GOT16O foobar
12313 If this happens, you should recompile your code with \fB\-mxgot\fR.
12314 It should then work with very large GOTs.  However, code generated with
12315 \&\fB\-mxgot\fR is less efficient, since it takes 4 instructions to fetch
12316 the value of a global symbol.
12318 Note that some linkers, including newer versions of the \s-1GNU\s0 linker,
12319 can create multiple GOTs and sort \s-1GOT\s0 entries.  If you have such a linker,
12320 you should only need to use \fB\-mxgot\fR when compiling a single
12321 object file that accesses more than 8192 \s-1GOT\s0 entries.  Very few do.
12323 These options have no effect unless \s-1GCC\s0 is generating
12324 position-independent code.
12326 \fIM68hc1x Options\fR
12327 .IX Subsection "M68hc1x Options"
12329 These are the \fB\-m\fR options defined for the 68hc11 and 68hc12
12330 microcontrollers.  The default values for these options depends on
12331 which style of microcontroller was selected when the compiler was configured;
12332 the defaults for the most common choices are given below.
12333 .IP "\fB\-m6811\fR" 4
12334 .IX Item "-m6811"
12335 .PD 0
12336 .IP "\fB\-m68hc11\fR" 4
12337 .IX Item "-m68hc11"
12339 Generate output for a 68HC11.  This is the default
12340 when the compiler is configured for 68HC11\-based systems.
12341 .IP "\fB\-m6812\fR" 4
12342 .IX Item "-m6812"
12343 .PD 0
12344 .IP "\fB\-m68hc12\fR" 4
12345 .IX Item "-m68hc12"
12347 Generate output for a 68HC12.  This is the default
12348 when the compiler is configured for 68HC12\-based systems.
12349 .IP "\fB\-m68S12\fR" 4
12350 .IX Item "-m68S12"
12351 .PD 0
12352 .IP "\fB\-m68hcs12\fR" 4
12353 .IX Item "-m68hcs12"
12355 Generate output for a 68HCS12.
12356 .IP "\fB\-mauto\-incdec\fR" 4
12357 .IX Item "-mauto-incdec"
12358 Enable the use of 68HC12 pre and post auto-increment and auto-decrement
12359 addressing modes.
12360 .IP "\fB\-minmax\fR" 4
12361 .IX Item "-minmax"
12362 .PD 0
12363 .IP "\fB\-mnominmax\fR" 4
12364 .IX Item "-mnominmax"
12366 Enable the use of 68HC12 min and max instructions.
12367 .IP "\fB\-mlong\-calls\fR" 4
12368 .IX Item "-mlong-calls"
12369 .PD 0
12370 .IP "\fB\-mno\-long\-calls\fR" 4
12371 .IX Item "-mno-long-calls"
12373 Treat all calls as being far away (near).  If calls are assumed to be
12374 far away, the compiler will use the \f(CW\*(C`call\*(C'\fR instruction to
12375 call a function and the \f(CW\*(C`rtc\*(C'\fR instruction for returning.
12376 .IP "\fB\-mshort\fR" 4
12377 .IX Item "-mshort"
12378 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
12379 .IP "\fB\-msoft\-reg\-count=\fR\fIcount\fR" 4
12380 .IX Item "-msoft-reg-count=count"
12381 Specify the number of pseudo-soft registers which are used for the
12382 code generation.  The maximum number is 32.  Using more pseudo-soft
12383 register may or may not result in better code depending on the program.
12384 The default is 4 for 68HC11 and 2 for 68HC12.
12386 \fIMCore Options\fR
12387 .IX Subsection "MCore Options"
12389 These are the \fB\-m\fR options defined for the Motorola M*Core
12390 processors.
12391 .IP "\fB\-mhardlit\fR" 4
12392 .IX Item "-mhardlit"
12393 .PD 0
12394 .IP "\fB\-mno\-hardlit\fR" 4
12395 .IX Item "-mno-hardlit"
12397 Inline constants into the code stream if it can be done in two
12398 instructions or less.
12399 .IP "\fB\-mdiv\fR" 4
12400 .IX Item "-mdiv"
12401 .PD 0
12402 .IP "\fB\-mno\-div\fR" 4
12403 .IX Item "-mno-div"
12405 Use the divide instruction.  (Enabled by default).
12406 .IP "\fB\-mrelax\-immediate\fR" 4
12407 .IX Item "-mrelax-immediate"
12408 .PD 0
12409 .IP "\fB\-mno\-relax\-immediate\fR" 4
12410 .IX Item "-mno-relax-immediate"
12412 Allow arbitrary sized immediates in bit operations.
12413 .IP "\fB\-mwide\-bitfields\fR" 4
12414 .IX Item "-mwide-bitfields"
12415 .PD 0
12416 .IP "\fB\-mno\-wide\-bitfields\fR" 4
12417 .IX Item "-mno-wide-bitfields"
12419 Always treat bit-fields as int\-sized.
12420 .IP "\fB\-m4byte\-functions\fR" 4
12421 .IX Item "-m4byte-functions"
12422 .PD 0
12423 .IP "\fB\-mno\-4byte\-functions\fR" 4
12424 .IX Item "-mno-4byte-functions"
12426 Force all functions to be aligned to a four byte boundary.
12427 .IP "\fB\-mcallgraph\-data\fR" 4
12428 .IX Item "-mcallgraph-data"
12429 .PD 0
12430 .IP "\fB\-mno\-callgraph\-data\fR" 4
12431 .IX Item "-mno-callgraph-data"
12433 Emit callgraph information.
12434 .IP "\fB\-mslow\-bytes\fR" 4
12435 .IX Item "-mslow-bytes"
12436 .PD 0
12437 .IP "\fB\-mno\-slow\-bytes\fR" 4
12438 .IX Item "-mno-slow-bytes"
12440 Prefer word access when reading byte quantities.
12441 .IP "\fB\-mlittle\-endian\fR" 4
12442 .IX Item "-mlittle-endian"
12443 .PD 0
12444 .IP "\fB\-mbig\-endian\fR" 4
12445 .IX Item "-mbig-endian"
12447 Generate code for a little endian target.
12448 .IP "\fB\-m210\fR" 4
12449 .IX Item "-m210"
12450 .PD 0
12451 .IP "\fB\-m340\fR" 4
12452 .IX Item "-m340"
12454 Generate code for the 210 processor.
12455 .IP "\fB\-mno\-lsim\fR" 4
12456 .IX Item "-mno-lsim"
12457 Assume that run-time support has been provided and so omit the
12458 simulator library (\fIlibsim.a)\fR from the linker command line.
12459 .IP "\fB\-mstack\-increment=\fR\fIsize\fR" 4
12460 .IX Item "-mstack-increment=size"
12461 Set the maximum amount for a single stack increment operation.  Large
12462 values can increase the speed of programs which contain functions
12463 that need a large amount of stack space, but they can also trigger a
12464 segmentation fault if the stack is extended too much.  The default
12465 value is 0x1000.
12467 \fIMeP Options\fR
12468 .IX Subsection "MeP Options"
12469 .IP "\fB\-mabsdiff\fR" 4
12470 .IX Item "-mabsdiff"
12471 Enables the \f(CW\*(C`abs\*(C'\fR instruction, which is the absolute difference
12472 between two registers.
12473 .IP "\fB\-mall\-opts\fR" 4
12474 .IX Item "-mall-opts"
12475 Enables all the optional instructions \- average, multiply, divide, bit
12476 operations, leading zero, absolute difference, min/max, clip, and
12477 saturation.
12478 .IP "\fB\-maverage\fR" 4
12479 .IX Item "-maverage"
12480 Enables the \f(CW\*(C`ave\*(C'\fR instruction, which computes the average of two
12481 registers.
12482 .IP "\fB\-mbased=\fR\fIn\fR" 4
12483 .IX Item "-mbased=n"
12484 Variables of size \fIn\fR bytes or smaller will be placed in the
12485 \&\f(CW\*(C`.based\*(C'\fR section by default.  Based variables use the \f(CW$tp\fR
12486 register as a base register, and there is a 128 byte limit to the
12487 \&\f(CW\*(C`.based\*(C'\fR section.
12488 .IP "\fB\-mbitops\fR" 4
12489 .IX Item "-mbitops"
12490 Enables the bit operation instructions \- bit test (\f(CW\*(C`btstm\*(C'\fR), set
12491 (\f(CW\*(C`bsetm\*(C'\fR), clear (\f(CW\*(C`bclrm\*(C'\fR), invert (\f(CW\*(C`bnotm\*(C'\fR), and
12492 test-and-set (\f(CW\*(C`tas\*(C'\fR).
12493 .IP "\fB\-mc=\fR\fIname\fR" 4
12494 .IX Item "-mc=name"
12495 Selects which section constant data will be placed in.  \fIname\fR may
12496 be \f(CW\*(C`tiny\*(C'\fR, \f(CW\*(C`near\*(C'\fR, or \f(CW\*(C`far\*(C'\fR.
12497 .IP "\fB\-mclip\fR" 4
12498 .IX Item "-mclip"
12499 Enables the \f(CW\*(C`clip\*(C'\fR instruction.  Note that \f(CW\*(C`\-mclip\*(C'\fR is not
12500 useful unless you also provide \f(CW\*(C`\-mminmax\*(C'\fR.
12501 .IP "\fB\-mconfig=\fR\fIname\fR" 4
12502 .IX Item "-mconfig=name"
12503 Selects one of the build-in core configurations.  Each MeP chip has
12504 one or more modules in it; each module has a core \s-1CPU\s0 and a variety of
12505 coprocessors, optional instructions, and peripherals.  The
12506 \&\f(CW\*(C`MeP\-Integrator\*(C'\fR tool, not part of \s-1GCC\s0, provides these
12507 configurations through this option; using this option is the same as
12508 using all the corresponding command line options.  The default
12509 configuration is \f(CW\*(C`default\*(C'\fR.
12510 .IP "\fB\-mcop\fR" 4
12511 .IX Item "-mcop"
12512 Enables the coprocessor instructions.  By default, this is a 32\-bit
12513 coprocessor.  Note that the coprocessor is normally enabled via the
12514 \&\f(CW\*(C`\-mconfig=\*(C'\fR option.
12515 .IP "\fB\-mcop32\fR" 4
12516 .IX Item "-mcop32"
12517 Enables the 32\-bit coprocessor's instructions.
12518 .IP "\fB\-mcop64\fR" 4
12519 .IX Item "-mcop64"
12520 Enables the 64\-bit coprocessor's instructions.
12521 .IP "\fB\-mivc2\fR" 4
12522 .IX Item "-mivc2"
12523 Enables \s-1IVC2\s0 scheduling.  \s-1IVC2\s0 is a 64\-bit \s-1VLIW\s0 coprocessor.
12524 .IP "\fB\-mdc\fR" 4
12525 .IX Item "-mdc"
12526 Causes constant variables to be placed in the \f(CW\*(C`.near\*(C'\fR section.
12527 .IP "\fB\-mdiv\fR" 4
12528 .IX Item "-mdiv"
12529 Enables the \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`divu\*(C'\fR instructions.
12530 .IP "\fB\-meb\fR" 4
12531 .IX Item "-meb"
12532 Generate big-endian code.
12533 .IP "\fB\-mel\fR" 4
12534 .IX Item "-mel"
12535 Generate little-endian code.
12536 .IP "\fB\-mio\-volatile\fR" 4
12537 .IX Item "-mio-volatile"
12538 Tells the compiler that any variable marked with the \f(CW\*(C`io\*(C'\fR
12539 attribute is to be considered volatile.
12540 .IP "\fB\-ml\fR" 4
12541 .IX Item "-ml"
12542 Causes variables to be assigned to the \f(CW\*(C`.far\*(C'\fR section by default.
12543 .IP "\fB\-mleadz\fR" 4
12544 .IX Item "-mleadz"
12545 Enables the \f(CW\*(C`leadz\*(C'\fR (leading zero) instruction.
12546 .IP "\fB\-mm\fR" 4
12547 .IX Item "-mm"
12548 Causes variables to be assigned to the \f(CW\*(C`.near\*(C'\fR section by default.
12549 .IP "\fB\-mminmax\fR" 4
12550 .IX Item "-mminmax"
12551 Enables the \f(CW\*(C`min\*(C'\fR and \f(CW\*(C`max\*(C'\fR instructions.
12552 .IP "\fB\-mmult\fR" 4
12553 .IX Item "-mmult"
12554 Enables the multiplication and multiply-accumulate instructions.
12555 .IP "\fB\-mno\-opts\fR" 4
12556 .IX Item "-mno-opts"
12557 Disables all the optional instructions enabled by \f(CW\*(C`\-mall\-opts\*(C'\fR.
12558 .IP "\fB\-mrepeat\fR" 4
12559 .IX Item "-mrepeat"
12560 Enables the \f(CW\*(C`repeat\*(C'\fR and \f(CW\*(C`erepeat\*(C'\fR instructions, used for
12561 low-overhead looping.
12562 .IP "\fB\-ms\fR" 4
12563 .IX Item "-ms"
12564 Causes all variables to default to the \f(CW\*(C`.tiny\*(C'\fR section.  Note
12565 that there is a 65536 byte limit to this section.  Accesses to these
12566 variables use the \f(CW%gp\fR base register.
12567 .IP "\fB\-msatur\fR" 4
12568 .IX Item "-msatur"
12569 Enables the saturation instructions.  Note that the compiler does not
12570 currently generate these itself, but this option is included for
12571 compatibility with other tools, like \f(CW\*(C`as\*(C'\fR.
12572 .IP "\fB\-msdram\fR" 4
12573 .IX Item "-msdram"
12574 Link the SDRAM-based runtime instead of the default ROM-based runtime.
12575 .IP "\fB\-msim\fR" 4
12576 .IX Item "-msim"
12577 Link the simulator runtime libraries.
12578 .IP "\fB\-msimnovec\fR" 4
12579 .IX Item "-msimnovec"
12580 Link the simulator runtime libraries, excluding built-in support
12581 for reset and exception vectors and tables.
12582 .IP "\fB\-mtf\fR" 4
12583 .IX Item "-mtf"
12584 Causes all functions to default to the \f(CW\*(C`.far\*(C'\fR section.  Without
12585 this option, functions default to the \f(CW\*(C`.near\*(C'\fR section.
12586 .IP "\fB\-mtiny=\fR\fIn\fR" 4
12587 .IX Item "-mtiny=n"
12588 Variables that are \fIn\fR bytes or smaller will be allocated to the
12589 \&\f(CW\*(C`.tiny\*(C'\fR section.  These variables use the \f(CW$gp\fR base
12590 register.  The default for this option is 4, but note that there's a
12591 65536 byte limit to the \f(CW\*(C`.tiny\*(C'\fR section.
12593 \fI\s-1MIPS\s0 Options\fR
12594 .IX Subsection "MIPS Options"
12595 .IP "\fB\-EB\fR" 4
12596 .IX Item "-EB"
12597 Generate big-endian code.
12598 .IP "\fB\-EL\fR" 4
12599 .IX Item "-EL"
12600 Generate little-endian code.  This is the default for \fBmips*el\-*\-*\fR
12601 configurations.
12602 .IP "\fB\-march=\fR\fIarch\fR" 4
12603 .IX Item "-march=arch"
12604 Generate code that will run on \fIarch\fR, which can be the name of a
12605 generic \s-1MIPS\s0 \s-1ISA\s0, or the name of a particular processor.
12606 The \s-1ISA\s0 names are:
12607 \&\fBmips1\fR, \fBmips2\fR, \fBmips3\fR, \fBmips4\fR,
12608 \&\fBmips32\fR, \fBmips32r2\fR, \fBmips64\fR and \fBmips64r2\fR.
12609 The processor names are:
12610 \&\fB4kc\fR, \fB4km\fR, \fB4kp\fR, \fB4ksc\fR,
12611 \&\fB4kec\fR, \fB4kem\fR, \fB4kep\fR, \fB4ksd\fR,
12612 \&\fB5kc\fR, \fB5kf\fR,
12613 \&\fB20kc\fR,
12614 \&\fB24kc\fR, \fB24kf2_1\fR, \fB24kf1_1\fR,
12615 \&\fB24kec\fR, \fB24kef2_1\fR, \fB24kef1_1\fR,
12616 \&\fB34kc\fR, \fB34kf2_1\fR, \fB34kf1_1\fR,
12617 \&\fB74kc\fR, \fB74kf2_1\fR, \fB74kf1_1\fR, \fB74kf3_2\fR,
12618 \&\fB1004kc\fR, \fB1004kf2_1\fR, \fB1004kf1_1\fR,
12619 \&\fBloongson2e\fR, \fBloongson2f\fR,
12620 \&\fBm4k\fR,
12621 \&\fBocteon\fR,
12622 \&\fBorion\fR,
12623 \&\fBr2000\fR, \fBr3000\fR, \fBr3900\fR, \fBr4000\fR, \fBr4400\fR,
12624 \&\fBr4600\fR, \fBr4650\fR, \fBr6000\fR, \fBr8000\fR,
12625 \&\fBrm7000\fR, \fBrm9000\fR,
12626 \&\fBr10000\fR, \fBr12000\fR, \fBr14000\fR, \fBr16000\fR,
12627 \&\fBsb1\fR,
12628 \&\fBsr71000\fR,
12629 \&\fBvr4100\fR, \fBvr4111\fR, \fBvr4120\fR, \fBvr4130\fR, \fBvr4300\fR,
12630 \&\fBvr5000\fR, \fBvr5400\fR, \fBvr5500\fR
12631 and \fBxlr\fR.
12632 The special value \fBfrom-abi\fR selects the
12633 most compatible architecture for the selected \s-1ABI\s0 (that is,
12634 \&\fBmips1\fR for 32\-bit ABIs and \fBmips3\fR for 64\-bit ABIs).
12636 Native Linux/GNU toolchains also support the value \fBnative\fR,
12637 which selects the best architecture option for the host processor.
12638 \&\fB\-march=native\fR has no effect if \s-1GCC\s0 does not recognize
12639 the processor.
12641 In processor names, a final \fB000\fR can be abbreviated as \fBk\fR
12642 (for example, \fB\-march=r2k\fR).  Prefixes are optional, and
12643 \&\fBvr\fR may be written \fBr\fR.
12645 Names of the form \fIn\fR\fBf2_1\fR refer to processors with
12646 FPUs clocked at half the rate of the core, names of the form
12647 \&\fIn\fR\fBf1_1\fR refer to processors with FPUs clocked at the same
12648 rate as the core, and names of the form \fIn\fR\fBf3_2\fR refer to
12649 processors with FPUs clocked a ratio of 3:2 with respect to the core.
12650 For compatibility reasons, \fIn\fR\fBf\fR is accepted as a synonym
12651 for \fIn\fR\fBf2_1\fR while \fIn\fR\fBx\fR and \fIb\fR\fBfx\fR are
12652 accepted as synonyms for \fIn\fR\fBf1_1\fR.
12654 \&\s-1GCC\s0 defines two macros based on the value of this option.  The first
12655 is \fB_MIPS_ARCH\fR, which gives the name of target architecture, as
12656 a string.  The second has the form \fB_MIPS_ARCH_\fR\fIfoo\fR,
12657 where \fIfoo\fR is the capitalized value of \fB_MIPS_ARCH\fR.
12658 For example, \fB\-march=r2000\fR will set \fB_MIPS_ARCH\fR
12659 to \fB\*(L"r2000\*(R"\fR and define the macro \fB_MIPS_ARCH_R2000\fR.
12661 Note that the \fB_MIPS_ARCH\fR macro uses the processor names given
12662 above.  In other words, it will have the full prefix and will not
12663 abbreviate \fB000\fR as \fBk\fR.  In the case of \fBfrom-abi\fR,
12664 the macro names the resolved architecture (either \fB\*(L"mips1\*(R"\fR or
12665 \&\fB\*(L"mips3\*(R"\fR).  It names the default architecture when no
12666 \&\fB\-march\fR option is given.
12667 .IP "\fB\-mtune=\fR\fIarch\fR" 4
12668 .IX Item "-mtune=arch"
12669 Optimize for \fIarch\fR.  Among other things, this option controls
12670 the way instructions are scheduled, and the perceived cost of arithmetic
12671 operations.  The list of \fIarch\fR values is the same as for
12672 \&\fB\-march\fR.
12674 When this option is not used, \s-1GCC\s0 will optimize for the processor
12675 specified by \fB\-march\fR.  By using \fB\-march\fR and
12676 \&\fB\-mtune\fR together, it is possible to generate code that will
12677 run on a family of processors, but optimize the code for one
12678 particular member of that family.
12680 \&\fB\-mtune\fR defines the macros \fB_MIPS_TUNE\fR and
12681 \&\fB_MIPS_TUNE_\fR\fIfoo\fR, which work in the same way as the
12682 \&\fB\-march\fR ones described above.
12683 .IP "\fB\-mips1\fR" 4
12684 .IX Item "-mips1"
12685 Equivalent to \fB\-march=mips1\fR.
12686 .IP "\fB\-mips2\fR" 4
12687 .IX Item "-mips2"
12688 Equivalent to \fB\-march=mips2\fR.
12689 .IP "\fB\-mips3\fR" 4
12690 .IX Item "-mips3"
12691 Equivalent to \fB\-march=mips3\fR.
12692 .IP "\fB\-mips4\fR" 4
12693 .IX Item "-mips4"
12694 Equivalent to \fB\-march=mips4\fR.
12695 .IP "\fB\-mips32\fR" 4
12696 .IX Item "-mips32"
12697 Equivalent to \fB\-march=mips32\fR.
12698 .IP "\fB\-mips32r2\fR" 4
12699 .IX Item "-mips32r2"
12700 Equivalent to \fB\-march=mips32r2\fR.
12701 .IP "\fB\-mips64\fR" 4
12702 .IX Item "-mips64"
12703 Equivalent to \fB\-march=mips64\fR.
12704 .IP "\fB\-mips64r2\fR" 4
12705 .IX Item "-mips64r2"
12706 Equivalent to \fB\-march=mips64r2\fR.
12707 .IP "\fB\-mips16\fR" 4
12708 .IX Item "-mips16"
12709 .PD 0
12710 .IP "\fB\-mno\-mips16\fR" 4
12711 .IX Item "-mno-mips16"
12713 Generate (do not generate) \s-1MIPS16\s0 code.  If \s-1GCC\s0 is targetting a
12714 \&\s-1MIPS32\s0 or \s-1MIPS64\s0 architecture, it will make use of the MIPS16e \s-1ASE\s0.
12716 \&\s-1MIPS16\s0 code generation can also be controlled on a per-function basis
12717 by means of \f(CW\*(C`mips16\*(C'\fR and \f(CW\*(C`nomips16\*(C'\fR attributes.
12718 .IP "\fB\-mflip\-mips16\fR" 4
12719 .IX Item "-mflip-mips16"
12720 Generate \s-1MIPS16\s0 code on alternating functions.  This option is provided
12721 for regression testing of mixed MIPS16/non\-MIPS16 code generation, and is
12722 not intended for ordinary use in compiling user code.
12723 .IP "\fB\-minterlink\-mips16\fR" 4
12724 .IX Item "-minterlink-mips16"
12725 .PD 0
12726 .IP "\fB\-mno\-interlink\-mips16\fR" 4
12727 .IX Item "-mno-interlink-mips16"
12729 Require (do not require) that non\-MIPS16 code be link-compatible with
12730 \&\s-1MIPS16\s0 code.
12732 For example, non\-MIPS16 code cannot jump directly to \s-1MIPS16\s0 code;
12733 it must either use a call or an indirect jump.  \fB\-minterlink\-mips16\fR
12734 therefore disables direct jumps unless \s-1GCC\s0 knows that the target of the
12735 jump is not \s-1MIPS16\s0.
12736 .IP "\fB\-mabi=32\fR" 4
12737 .IX Item "-mabi=32"
12738 .PD 0
12739 .IP "\fB\-mabi=o64\fR" 4
12740 .IX Item "-mabi=o64"
12741 .IP "\fB\-mabi=n32\fR" 4
12742 .IX Item "-mabi=n32"
12743 .IP "\fB\-mabi=64\fR" 4
12744 .IX Item "-mabi=64"
12745 .IP "\fB\-mabi=eabi\fR" 4
12746 .IX Item "-mabi=eabi"
12748 Generate code for the given \s-1ABI\s0.
12750 Note that the \s-1EABI\s0 has a 32\-bit and a 64\-bit variant.  \s-1GCC\s0 normally
12751 generates 64\-bit code when you select a 64\-bit architecture, but you
12752 can use \fB\-mgp32\fR to get 32\-bit code instead.
12754 For information about the O64 \s-1ABI\s0, see
12755 <\fBhttp://gcc.gnu.org/projects/mipso64\-abi.html\fR>.
12757 \&\s-1GCC\s0 supports a variant of the o32 \s-1ABI\s0 in which floating-point registers
12758 are 64 rather than 32 bits wide.  You can select this combination with
12759 \&\fB\-mabi=32\fR \fB\-mfp64\fR.  This \s-1ABI\s0 relies on the \fBmthc1\fR
12760 and \fBmfhc1\fR instructions and is therefore only supported for
12761 \&\s-1MIPS32R2\s0 processors.
12763 The register assignments for arguments and return values remain the
12764 same, but each scalar value is passed in a single 64\-bit register
12765 rather than a pair of 32\-bit registers.  For example, scalar
12766 floating-point values are returned in \fB$f0\fR only, not a
12767 \&\fB$f0\fR/\fB$f1\fR pair.  The set of call-saved registers also
12768 remains the same, but all 64 bits are saved.
12769 .IP "\fB\-mabicalls\fR" 4
12770 .IX Item "-mabicalls"
12771 .PD 0
12772 .IP "\fB\-mno\-abicalls\fR" 4
12773 .IX Item "-mno-abicalls"
12775 Generate (do not generate) code that is suitable for SVR4\-style
12776 dynamic objects.  \fB\-mabicalls\fR is the default for SVR4\-based
12777 systems.
12778 .IP "\fB\-mshared\fR" 4
12779 .IX Item "-mshared"
12780 .PD 0
12781 .IP "\fB\-mno\-shared\fR" 4
12782 .IX Item "-mno-shared"
12784 Generate (do not generate) code that is fully position\-independent,
12785 and that can therefore be linked into shared libraries.  This option
12786 only affects \fB\-mabicalls\fR.
12788 All \fB\-mabicalls\fR code has traditionally been position\-independent,
12789 regardless of options like \fB\-fPIC\fR and \fB\-fpic\fR.  However,
12790 as an extension, the \s-1GNU\s0 toolchain allows executables to use absolute
12791 accesses for locally-binding symbols.  It can also use shorter \s-1GP\s0
12792 initialization sequences and generate direct calls to locally-defined
12793 functions.  This mode is selected by \fB\-mno\-shared\fR.
12795 \&\fB\-mno\-shared\fR depends on binutils 2.16 or higher and generates
12796 objects that can only be linked by the \s-1GNU\s0 linker.  However, the option
12797 does not affect the \s-1ABI\s0 of the final executable; it only affects the \s-1ABI\s0
12798 of relocatable objects.  Using \fB\-mno\-shared\fR will generally make
12799 executables both smaller and quicker.
12801 \&\fB\-mshared\fR is the default.
12802 .IP "\fB\-mplt\fR" 4
12803 .IX Item "-mplt"
12804 .PD 0
12805 .IP "\fB\-mno\-plt\fR" 4
12806 .IX Item "-mno-plt"
12808 Assume (do not assume) that the static and dynamic linkers
12809 support PLTs and copy relocations.  This option only affects
12810 \&\fB\-mno\-shared \-mabicalls\fR.  For the n64 \s-1ABI\s0, this option
12811 has no effect without \fB\-msym32\fR.
12813 You can make \fB\-mplt\fR the default by configuring
12814 \&\s-1GCC\s0 with \fB\-\-with\-mips\-plt\fR.  The default is
12815 \&\fB\-mno\-plt\fR otherwise.
12816 .IP "\fB\-mxgot\fR" 4
12817 .IX Item "-mxgot"
12818 .PD 0
12819 .IP "\fB\-mno\-xgot\fR" 4
12820 .IX Item "-mno-xgot"
12822 Lift (do not lift) the usual restrictions on the size of the global
12823 offset table.
12825 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT\s0.
12826 While this is relatively efficient, it will only work if the \s-1GOT\s0
12827 is smaller than about 64k.  Anything larger will cause the linker
12828 to report an error such as:
12830 .Vb 1
12831 \&        relocation truncated to fit: R_MIPS_GOT16 foobar
12834 If this happens, you should recompile your code with \fB\-mxgot\fR.
12835 It should then work with very large GOTs, although it will also be
12836 less efficient, since it will take three instructions to fetch the
12837 value of a global symbol.
12839 Note that some linkers can create multiple GOTs.  If you have such a
12840 linker, you should only need to use \fB\-mxgot\fR when a single object
12841 file accesses more than 64k's worth of \s-1GOT\s0 entries.  Very few do.
12843 These options have no effect unless \s-1GCC\s0 is generating position
12844 independent code.
12845 .IP "\fB\-mgp32\fR" 4
12846 .IX Item "-mgp32"
12847 Assume that general-purpose registers are 32 bits wide.
12848 .IP "\fB\-mgp64\fR" 4
12849 .IX Item "-mgp64"
12850 Assume that general-purpose registers are 64 bits wide.
12851 .IP "\fB\-mfp32\fR" 4
12852 .IX Item "-mfp32"
12853 Assume that floating-point registers are 32 bits wide.
12854 .IP "\fB\-mfp64\fR" 4
12855 .IX Item "-mfp64"
12856 Assume that floating-point registers are 64 bits wide.
12857 .IP "\fB\-mhard\-float\fR" 4
12858 .IX Item "-mhard-float"
12859 Use floating-point coprocessor instructions.
12860 .IP "\fB\-msoft\-float\fR" 4
12861 .IX Item "-msoft-float"
12862 Do not use floating-point coprocessor instructions.  Implement
12863 floating-point calculations using library calls instead.
12864 .IP "\fB\-msingle\-float\fR" 4
12865 .IX Item "-msingle-float"
12866 Assume that the floating-point coprocessor only supports single-precision
12867 operations.
12868 .IP "\fB\-mdouble\-float\fR" 4
12869 .IX Item "-mdouble-float"
12870 Assume that the floating-point coprocessor supports double-precision
12871 operations.  This is the default.
12872 .IP "\fB\-mllsc\fR" 4
12873 .IX Item "-mllsc"
12874 .PD 0
12875 .IP "\fB\-mno\-llsc\fR" 4
12876 .IX Item "-mno-llsc"
12878 Use (do not use) \fBll\fR, \fBsc\fR, and \fBsync\fR instructions to
12879 implement atomic memory built-in functions.  When neither option is
12880 specified, \s-1GCC\s0 will use the instructions if the target architecture
12881 supports them.
12883 \&\fB\-mllsc\fR is useful if the runtime environment can emulate the
12884 instructions and \fB\-mno\-llsc\fR can be useful when compiling for
12885 nonstandard ISAs.  You can make either option the default by
12886 configuring \s-1GCC\s0 with \fB\-\-with\-llsc\fR and \fB\-\-without\-llsc\fR
12887 respectively.  \fB\-\-with\-llsc\fR is the default for some
12888 configurations; see the installation documentation for details.
12889 .IP "\fB\-mdsp\fR" 4
12890 .IX Item "-mdsp"
12891 .PD 0
12892 .IP "\fB\-mno\-dsp\fR" 4
12893 .IX Item "-mno-dsp"
12895 Use (do not use) revision 1 of the \s-1MIPS\s0 \s-1DSP\s0 \s-1ASE\s0.
12896   This option defines the
12897 preprocessor macro \fB_\|_mips_dsp\fR.  It also defines
12898 \&\fB_\|_mips_dsp_rev\fR to 1.
12899 .IP "\fB\-mdspr2\fR" 4
12900 .IX Item "-mdspr2"
12901 .PD 0
12902 .IP "\fB\-mno\-dspr2\fR" 4
12903 .IX Item "-mno-dspr2"
12905 Use (do not use) revision 2 of the \s-1MIPS\s0 \s-1DSP\s0 \s-1ASE\s0.
12906   This option defines the
12907 preprocessor macros \fB_\|_mips_dsp\fR and \fB_\|_mips_dspr2\fR.
12908 It also defines \fB_\|_mips_dsp_rev\fR to 2.
12909 .IP "\fB\-msmartmips\fR" 4
12910 .IX Item "-msmartmips"
12911 .PD 0
12912 .IP "\fB\-mno\-smartmips\fR" 4
12913 .IX Item "-mno-smartmips"
12915 Use (do not use) the \s-1MIPS\s0 SmartMIPS \s-1ASE\s0.
12916 .IP "\fB\-mpaired\-single\fR" 4
12917 .IX Item "-mpaired-single"
12918 .PD 0
12919 .IP "\fB\-mno\-paired\-single\fR" 4
12920 .IX Item "-mno-paired-single"
12922 Use (do not use) paired-single floating-point instructions.
12923   This option requires
12924 hardware floating-point support to be enabled.
12925 .IP "\fB\-mdmx\fR" 4
12926 .IX Item "-mdmx"
12927 .PD 0
12928 .IP "\fB\-mno\-mdmx\fR" 4
12929 .IX Item "-mno-mdmx"
12931 Use (do not use) \s-1MIPS\s0 Digital Media Extension instructions.
12932 This option can only be used when generating 64\-bit code and requires
12933 hardware floating-point support to be enabled.
12934 .IP "\fB\-mips3d\fR" 4
12935 .IX Item "-mips3d"
12936 .PD 0
12937 .IP "\fB\-mno\-mips3d\fR" 4
12938 .IX Item "-mno-mips3d"
12940 Use (do not use) the \s-1MIPS\-3D\s0 \s-1ASE\s0.  
12941 The option \fB\-mips3d\fR implies \fB\-mpaired\-single\fR.
12942 .IP "\fB\-mmt\fR" 4
12943 .IX Item "-mmt"
12944 .PD 0
12945 .IP "\fB\-mno\-mt\fR" 4
12946 .IX Item "-mno-mt"
12948 Use (do not use) \s-1MT\s0 Multithreading instructions.
12949 .IP "\fB\-mlong64\fR" 4
12950 .IX Item "-mlong64"
12951 Force \f(CW\*(C`long\*(C'\fR types to be 64 bits wide.  See \fB\-mlong32\fR for
12952 an explanation of the default and the way that the pointer size is
12953 determined.
12954 .IP "\fB\-mlong32\fR" 4
12955 .IX Item "-mlong32"
12956 Force \f(CW\*(C`long\*(C'\fR, \f(CW\*(C`int\*(C'\fR, and pointer types to be 32 bits wide.
12958 The default size of \f(CW\*(C`int\*(C'\fRs, \f(CW\*(C`long\*(C'\fRs and pointers depends on
12959 the \s-1ABI\s0.  All the supported ABIs use 32\-bit \f(CW\*(C`int\*(C'\fRs.  The n64 \s-1ABI\s0
12960 uses 64\-bit \f(CW\*(C`long\*(C'\fRs, as does the 64\-bit \s-1EABI\s0; the others use
12961 32\-bit \f(CW\*(C`long\*(C'\fRs.  Pointers are the same size as \f(CW\*(C`long\*(C'\fRs,
12962 or the same size as integer registers, whichever is smaller.
12963 .IP "\fB\-msym32\fR" 4
12964 .IX Item "-msym32"
12965 .PD 0
12966 .IP "\fB\-mno\-sym32\fR" 4
12967 .IX Item "-mno-sym32"
12969 Assume (do not assume) that all symbols have 32\-bit values, regardless
12970 of the selected \s-1ABI\s0.  This option is useful in combination with
12971 \&\fB\-mabi=64\fR and \fB\-mno\-abicalls\fR because it allows \s-1GCC\s0
12972 to generate shorter and faster references to symbolic addresses.
12973 .IP "\fB\-G\fR \fInum\fR" 4
12974 .IX Item "-G num"
12975 Put definitions of externally-visible data in a small data section
12976 if that data is no bigger than \fInum\fR bytes.  \s-1GCC\s0 can then access
12977 the data more efficiently; see \fB\-mgpopt\fR for details.
12979 The default \fB\-G\fR option depends on the configuration.
12980 .IP "\fB\-mlocal\-sdata\fR" 4
12981 .IX Item "-mlocal-sdata"
12982 .PD 0
12983 .IP "\fB\-mno\-local\-sdata\fR" 4
12984 .IX Item "-mno-local-sdata"
12986 Extend (do not extend) the \fB\-G\fR behavior to local data too,
12987 such as to static variables in C.  \fB\-mlocal\-sdata\fR is the
12988 default for all configurations.
12990 If the linker complains that an application is using too much small data,
12991 you might want to try rebuilding the less performance-critical parts with
12992 \&\fB\-mno\-local\-sdata\fR.  You might also want to build large
12993 libraries with \fB\-mno\-local\-sdata\fR, so that the libraries leave
12994 more room for the main program.
12995 .IP "\fB\-mextern\-sdata\fR" 4
12996 .IX Item "-mextern-sdata"
12997 .PD 0
12998 .IP "\fB\-mno\-extern\-sdata\fR" 4
12999 .IX Item "-mno-extern-sdata"
13001 Assume (do not assume) that externally-defined data will be in
13002 a small data section if that data is within the \fB\-G\fR limit.
13003 \&\fB\-mextern\-sdata\fR is the default for all configurations.
13005 If you compile a module \fIMod\fR with \fB\-mextern\-sdata\fR \fB\-G\fR
13006 \&\fInum\fR \fB\-mgpopt\fR, and \fIMod\fR references a variable \fIVar\fR
13007 that is no bigger than \fInum\fR bytes, you must make sure that \fIVar\fR
13008 is placed in a small data section.  If \fIVar\fR is defined by another
13009 module, you must either compile that module with a high-enough
13010 \&\fB\-G\fR setting or attach a \f(CW\*(C`section\*(C'\fR attribute to \fIVar\fR's
13011 definition.  If \fIVar\fR is common, you must link the application
13012 with a high-enough \fB\-G\fR setting.
13014 The easiest way of satisfying these restrictions is to compile
13015 and link every module with the same \fB\-G\fR option.  However,
13016 you may wish to build a library that supports several different
13017 small data limits.  You can do this by compiling the library with
13018 the highest supported \fB\-G\fR setting and additionally using
13019 \&\fB\-mno\-extern\-sdata\fR to stop the library from making assumptions
13020 about externally-defined data.
13021 .IP "\fB\-mgpopt\fR" 4
13022 .IX Item "-mgpopt"
13023 .PD 0
13024 .IP "\fB\-mno\-gpopt\fR" 4
13025 .IX Item "-mno-gpopt"
13027 Use (do not use) GP-relative accesses for symbols that are known to be
13028 in a small data section; see \fB\-G\fR, \fB\-mlocal\-sdata\fR and
13029 \&\fB\-mextern\-sdata\fR.  \fB\-mgpopt\fR is the default for all
13030 configurations.
13032 \&\fB\-mno\-gpopt\fR is useful for cases where the \f(CW$gp\fR register
13033 might not hold the value of \f(CW\*(C`_gp\*(C'\fR.  For example, if the code is
13034 part of a library that might be used in a boot monitor, programs that
13035 call boot monitor routines will pass an unknown value in \f(CW$gp\fR.
13036 (In such situations, the boot monitor itself would usually be compiled
13037 with \fB\-G0\fR.)
13039 \&\fB\-mno\-gpopt\fR implies \fB\-mno\-local\-sdata\fR and
13040 \&\fB\-mno\-extern\-sdata\fR.
13041 .IP "\fB\-membedded\-data\fR" 4
13042 .IX Item "-membedded-data"
13043 .PD 0
13044 .IP "\fB\-mno\-embedded\-data\fR" 4
13045 .IX Item "-mno-embedded-data"
13047 Allocate variables to the read-only data section first if possible, then
13048 next in the small data section if possible, otherwise in data.  This gives
13049 slightly slower code than the default, but reduces the amount of \s-1RAM\s0 required
13050 when executing, and thus may be preferred for some embedded systems.
13051 .IP "\fB\-muninit\-const\-in\-rodata\fR" 4
13052 .IX Item "-muninit-const-in-rodata"
13053 .PD 0
13054 .IP "\fB\-mno\-uninit\-const\-in\-rodata\fR" 4
13055 .IX Item "-mno-uninit-const-in-rodata"
13057 Put uninitialized \f(CW\*(C`const\*(C'\fR variables in the read-only data section.
13058 This option is only meaningful in conjunction with \fB\-membedded\-data\fR.
13059 .IP "\fB\-mcode\-readable=\fR\fIsetting\fR" 4
13060 .IX Item "-mcode-readable=setting"
13061 Specify whether \s-1GCC\s0 may generate code that reads from executable sections.
13062 There are three possible settings:
13063 .RS 4
13064 .IP "\fB\-mcode\-readable=yes\fR" 4
13065 .IX Item "-mcode-readable=yes"
13066 Instructions may freely access executable sections.  This is the
13067 default setting.
13068 .IP "\fB\-mcode\-readable=pcrel\fR" 4
13069 .IX Item "-mcode-readable=pcrel"
13070 \&\s-1MIPS16\s0 PC-relative load instructions can access executable sections,
13071 but other instructions must not do so.  This option is useful on 4KSc
13072 and 4KSd processors when the code TLBs have the Read Inhibit bit set.
13073 It is also useful on processors that can be configured to have a dual
13074 instruction/data \s-1SRAM\s0 interface and that, like the M4K, automatically
13075 redirect PC-relative loads to the instruction \s-1RAM\s0.
13076 .IP "\fB\-mcode\-readable=no\fR" 4
13077 .IX Item "-mcode-readable=no"
13078 Instructions must not access executable sections.  This option can be
13079 useful on targets that are configured to have a dual instruction/data
13080 \&\s-1SRAM\s0 interface but that (unlike the M4K) do not automatically redirect
13081 PC-relative loads to the instruction \s-1RAM\s0.
13083 .RS 4
13085 .IP "\fB\-msplit\-addresses\fR" 4
13086 .IX Item "-msplit-addresses"
13087 .PD 0
13088 .IP "\fB\-mno\-split\-addresses\fR" 4
13089 .IX Item "-mno-split-addresses"
13091 Enable (disable) use of the \f(CW\*(C`%hi()\*(C'\fR and \f(CW\*(C`%lo()\*(C'\fR assembler
13092 relocation operators.  This option has been superseded by
13093 \&\fB\-mexplicit\-relocs\fR but is retained for backwards compatibility.
13094 .IP "\fB\-mexplicit\-relocs\fR" 4
13095 .IX Item "-mexplicit-relocs"
13096 .PD 0
13097 .IP "\fB\-mno\-explicit\-relocs\fR" 4
13098 .IX Item "-mno-explicit-relocs"
13100 Use (do not use) assembler relocation operators when dealing with symbolic
13101 addresses.  The alternative, selected by \fB\-mno\-explicit\-relocs\fR,
13102 is to use assembler macros instead.
13104 \&\fB\-mexplicit\-relocs\fR is the default if \s-1GCC\s0 was configured
13105 to use an assembler that supports relocation operators.
13106 .IP "\fB\-mcheck\-zero\-division\fR" 4
13107 .IX Item "-mcheck-zero-division"
13108 .PD 0
13109 .IP "\fB\-mno\-check\-zero\-division\fR" 4
13110 .IX Item "-mno-check-zero-division"
13112 Trap (do not trap) on integer division by zero.
13114 The default is \fB\-mcheck\-zero\-division\fR.
13115 .IP "\fB\-mdivide\-traps\fR" 4
13116 .IX Item "-mdivide-traps"
13117 .PD 0
13118 .IP "\fB\-mdivide\-breaks\fR" 4
13119 .IX Item "-mdivide-breaks"
13121 \&\s-1MIPS\s0 systems check for division by zero by generating either a
13122 conditional trap or a break instruction.  Using traps results in
13123 smaller code, but is only supported on \s-1MIPS\s0 \s-1II\s0 and later.  Also, some
13124 versions of the Linux kernel have a bug that prevents trap from
13125 generating the proper signal (\f(CW\*(C`SIGFPE\*(C'\fR).  Use \fB\-mdivide\-traps\fR to
13126 allow conditional traps on architectures that support them and
13127 \&\fB\-mdivide\-breaks\fR to force the use of breaks.
13129 The default is usually \fB\-mdivide\-traps\fR, but this can be
13130 overridden at configure time using \fB\-\-with\-divide=breaks\fR.
13131 Divide-by-zero checks can be completely disabled using
13132 \&\fB\-mno\-check\-zero\-division\fR.
13133 .IP "\fB\-mmemcpy\fR" 4
13134 .IX Item "-mmemcpy"
13135 .PD 0
13136 .IP "\fB\-mno\-memcpy\fR" 4
13137 .IX Item "-mno-memcpy"
13139 Force (do not force) the use of \f(CW\*(C`memcpy()\*(C'\fR for non-trivial block
13140 moves.  The default is \fB\-mno\-memcpy\fR, which allows \s-1GCC\s0 to inline
13141 most constant-sized copies.
13142 .IP "\fB\-mlong\-calls\fR" 4
13143 .IX Item "-mlong-calls"
13144 .PD 0
13145 .IP "\fB\-mno\-long\-calls\fR" 4
13146 .IX Item "-mno-long-calls"
13148 Disable (do not disable) use of the \f(CW\*(C`jal\*(C'\fR instruction.  Calling
13149 functions using \f(CW\*(C`jal\*(C'\fR is more efficient but requires the caller
13150 and callee to be in the same 256 megabyte segment.
13152 This option has no effect on abicalls code.  The default is
13153 \&\fB\-mno\-long\-calls\fR.
13154 .IP "\fB\-mmad\fR" 4
13155 .IX Item "-mmad"
13156 .PD 0
13157 .IP "\fB\-mno\-mad\fR" 4
13158 .IX Item "-mno-mad"
13160 Enable (disable) use of the \f(CW\*(C`mad\*(C'\fR, \f(CW\*(C`madu\*(C'\fR and \f(CW\*(C`mul\*(C'\fR
13161 instructions, as provided by the R4650 \s-1ISA\s0.
13162 .IP "\fB\-mfused\-madd\fR" 4
13163 .IX Item "-mfused-madd"
13164 .PD 0
13165 .IP "\fB\-mno\-fused\-madd\fR" 4
13166 .IX Item "-mno-fused-madd"
13168 Enable (disable) use of the floating point multiply-accumulate
13169 instructions, when they are available.  The default is
13170 \&\fB\-mfused\-madd\fR.
13172 When multiply-accumulate instructions are used, the intermediate
13173 product is calculated to infinite precision and is not subject to
13174 the \s-1FCSR\s0 Flush to Zero bit.  This may be undesirable in some
13175 circumstances.
13176 .IP "\fB\-nocpp\fR" 4
13177 .IX Item "-nocpp"
13178 Tell the \s-1MIPS\s0 assembler to not run its preprocessor over user
13179 assembler files (with a \fB.s\fR suffix) when assembling them.
13180 .IP "\fB\-mfix\-r4000\fR" 4
13181 .IX Item "-mfix-r4000"
13182 .PD 0
13183 .IP "\fB\-mno\-fix\-r4000\fR" 4
13184 .IX Item "-mno-fix-r4000"
13186 Work around certain R4000 \s-1CPU\s0 errata:
13187 .RS 4
13188 .IP "\-" 4
13189 A double-word or a variable shift may give an incorrect result if executed
13190 immediately after starting an integer division.
13191 .IP "\-" 4
13192 A double-word or a variable shift may give an incorrect result if executed
13193 while an integer multiplication is in progress.
13194 .IP "\-" 4
13195 An integer division may give an incorrect result if started in a delay slot
13196 of a taken branch or a jump.
13198 .RS 4
13200 .IP "\fB\-mfix\-r4400\fR" 4
13201 .IX Item "-mfix-r4400"
13202 .PD 0
13203 .IP "\fB\-mno\-fix\-r4400\fR" 4
13204 .IX Item "-mno-fix-r4400"
13206 Work around certain R4400 \s-1CPU\s0 errata:
13207 .RS 4
13208 .IP "\-" 4
13209 A double-word or a variable shift may give an incorrect result if executed
13210 immediately after starting an integer division.
13212 .RS 4
13214 .IP "\fB\-mfix\-r10000\fR" 4
13215 .IX Item "-mfix-r10000"
13216 .PD 0
13217 .IP "\fB\-mno\-fix\-r10000\fR" 4
13218 .IX Item "-mno-fix-r10000"
13220 Work around certain R10000 errata:
13221 .RS 4
13222 .IP "\-" 4
13223 \&\f(CW\*(C`ll\*(C'\fR/\f(CW\*(C`sc\*(C'\fR sequences may not behave atomically on revisions
13224 prior to 3.0.  They may deadlock on revisions 2.6 and earlier.
13226 .RS 4
13228 This option can only be used if the target architecture supports
13229 branch-likely instructions.  \fB\-mfix\-r10000\fR is the default when
13230 \&\fB\-march=r10000\fR is used; \fB\-mno\-fix\-r10000\fR is the default
13231 otherwise.
13233 .IP "\fB\-mfix\-vr4120\fR" 4
13234 .IX Item "-mfix-vr4120"
13235 .PD 0
13236 .IP "\fB\-mno\-fix\-vr4120\fR" 4
13237 .IX Item "-mno-fix-vr4120"
13239 Work around certain \s-1VR4120\s0 errata:
13240 .RS 4
13241 .IP "\-" 4
13242 \&\f(CW\*(C`dmultu\*(C'\fR does not always produce the correct result.
13243 .IP "\-" 4
13244 \&\f(CW\*(C`div\*(C'\fR and \f(CW\*(C`ddiv\*(C'\fR do not always produce the correct result if one
13245 of the operands is negative.
13247 .RS 4
13249 The workarounds for the division errata rely on special functions in
13250 \&\fIlibgcc.a\fR.  At present, these functions are only provided by
13251 the \f(CW\*(C`mips64vr*\-elf\*(C'\fR configurations.
13253 Other \s-1VR4120\s0 errata require a nop to be inserted between certain pairs of
13254 instructions.  These errata are handled by the assembler, not by \s-1GCC\s0 itself.
13256 .IP "\fB\-mfix\-vr4130\fR" 4
13257 .IX Item "-mfix-vr4130"
13258 Work around the \s-1VR4130\s0 \f(CW\*(C`mflo\*(C'\fR/\f(CW\*(C`mfhi\*(C'\fR errata.  The
13259 workarounds are implemented by the assembler rather than by \s-1GCC\s0,
13260 although \s-1GCC\s0 will avoid using \f(CW\*(C`mflo\*(C'\fR and \f(CW\*(C`mfhi\*(C'\fR if the
13261 \&\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
13262 instructions are available instead.
13263 .IP "\fB\-mfix\-sb1\fR" 4
13264 .IX Item "-mfix-sb1"
13265 .PD 0
13266 .IP "\fB\-mno\-fix\-sb1\fR" 4
13267 .IX Item "-mno-fix-sb1"
13269 Work around certain \s-1SB\-1\s0 \s-1CPU\s0 core errata.
13270 (This flag currently works around the \s-1SB\-1\s0 revision 2
13271 \&\*(L"F1\*(R" and \*(L"F2\*(R" floating point errata.)
13272 .IP "\fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR" 4
13273 .IX Item "-mr10k-cache-barrier=setting"
13274 Specify whether \s-1GCC\s0 should insert cache barriers to avoid the
13275 side-effects of speculation on R10K processors.
13277 In common with many processors, the R10K tries to predict the outcome
13278 of a conditional branch and speculatively executes instructions from
13279 the \*(L"taken\*(R" branch.  It later aborts these instructions if the
13280 predicted outcome was wrong.  However, on the R10K, even aborted
13281 instructions can have side effects.
13283 This problem only affects kernel stores and, depending on the system,
13284 kernel loads.  As an example, a speculatively-executed store may load
13285 the target memory into cache and mark the cache line as dirty, even if
13286 the store itself is later aborted.  If a \s-1DMA\s0 operation writes to the
13287 same area of memory before the \*(L"dirty\*(R" line is flushed, the cached
13288 data will overwrite the DMA-ed data.  See the R10K processor manual
13289 for a full description, including other potential problems.
13291 One workaround is to insert cache barrier instructions before every memory
13292 access that might be speculatively executed and that might have side
13293 effects even if aborted.  \fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR
13294 controls \s-1GCC\s0's implementation of this workaround.  It assumes that
13295 aborted accesses to any byte in the following regions will not have
13296 side effects:
13297 .RS 4
13298 .IP "1." 4
13299 the memory occupied by the current function's stack frame;
13300 .IP "2." 4
13301 the memory occupied by an incoming stack argument;
13302 .IP "3." 4
13303 the memory occupied by an object with a link-time-constant address.
13305 .RS 4
13307 It is the kernel's responsibility to ensure that speculative
13308 accesses to these regions are indeed safe.
13310 If the input program contains a function declaration such as:
13312 .Vb 1
13313 \&        void foo (void);
13316 then the implementation of \f(CW\*(C`foo\*(C'\fR must allow \f(CW\*(C`j foo\*(C'\fR and
13317 \&\f(CW\*(C`jal foo\*(C'\fR to be executed speculatively.  \s-1GCC\s0 honors this
13318 restriction for functions it compiles itself.  It expects non-GCC
13319 functions (such as hand-written assembly code) to do the same.
13321 The option has three forms:
13322 .IP "\fB\-mr10k\-cache\-barrier=load\-store\fR" 4
13323 .IX Item "-mr10k-cache-barrier=load-store"
13324 Insert a cache barrier before a load or store that might be
13325 speculatively executed and that might have side effects even
13326 if aborted.
13327 .IP "\fB\-mr10k\-cache\-barrier=store\fR" 4
13328 .IX Item "-mr10k-cache-barrier=store"
13329 Insert a cache barrier before a store that might be speculatively
13330 executed and that might have side effects even if aborted.
13331 .IP "\fB\-mr10k\-cache\-barrier=none\fR" 4
13332 .IX Item "-mr10k-cache-barrier=none"
13333 Disable the insertion of cache barriers.  This is the default setting.
13335 .RS 4
13337 .IP "\fB\-mflush\-func=\fR\fIfunc\fR" 4
13338 .IX Item "-mflush-func=func"
13339 .PD 0
13340 .IP "\fB\-mno\-flush\-func\fR" 4
13341 .IX Item "-mno-flush-func"
13343 Specifies the function to call to flush the I and D caches, or to not
13344 call any such function.  If called, the function must take the same
13345 arguments as the common \f(CW\*(C`_flush_func()\*(C'\fR, that is, the address of the
13346 memory range for which the cache is being flushed, the size of the
13347 memory range, and the number 3 (to flush both caches).  The default
13348 depends on the target \s-1GCC\s0 was configured for, but commonly is either
13349 \&\fB_flush_func\fR or \fB_\|_cpu_flush\fR.
13350 .IP "\fBmbranch\-cost=\fR\fInum\fR" 4
13351 .IX Item "mbranch-cost=num"
13352 Set the cost of branches to roughly \fInum\fR \*(L"simple\*(R" instructions.
13353 This cost is only a heuristic and is not guaranteed to produce
13354 consistent results across releases.  A zero cost redundantly selects
13355 the default, which is based on the \fB\-mtune\fR setting.
13356 .IP "\fB\-mbranch\-likely\fR" 4
13357 .IX Item "-mbranch-likely"
13358 .PD 0
13359 .IP "\fB\-mno\-branch\-likely\fR" 4
13360 .IX Item "-mno-branch-likely"
13362 Enable or disable use of Branch Likely instructions, regardless of the
13363 default for the selected architecture.  By default, Branch Likely
13364 instructions may be generated if they are supported by the selected
13365 architecture.  An exception is for the \s-1MIPS32\s0 and \s-1MIPS64\s0 architectures
13366 and processors which implement those architectures; for those, Branch
13367 Likely instructions will not be generated by default because the \s-1MIPS32\s0
13368 and \s-1MIPS64\s0 architectures specifically deprecate their use.
13369 .IP "\fB\-mfp\-exceptions\fR" 4
13370 .IX Item "-mfp-exceptions"
13371 .PD 0
13372 .IP "\fB\-mno\-fp\-exceptions\fR" 4
13373 .IX Item "-mno-fp-exceptions"
13375 Specifies whether \s-1FP\s0 exceptions are enabled.  This affects how we schedule
13376 \&\s-1FP\s0 instructions for some processors.  The default is that \s-1FP\s0 exceptions are
13377 enabled.
13379 For instance, on the \s-1SB\-1\s0, if \s-1FP\s0 exceptions are disabled, and we are emitting
13380 64\-bit code, then we can use both \s-1FP\s0 pipes.  Otherwise, we can only use one
13381 \&\s-1FP\s0 pipe.
13382 .IP "\fB\-mvr4130\-align\fR" 4
13383 .IX Item "-mvr4130-align"
13384 .PD 0
13385 .IP "\fB\-mno\-vr4130\-align\fR" 4
13386 .IX Item "-mno-vr4130-align"
13388 The \s-1VR4130\s0 pipeline is two-way superscalar, but can only issue two
13389 instructions together if the first one is 8\-byte aligned.  When this
13390 option is enabled, \s-1GCC\s0 will align pairs of instructions that it
13391 thinks should execute in parallel.
13393 This option only has an effect when optimizing for the \s-1VR4130\s0.
13394 It normally makes code faster, but at the expense of making it bigger.
13395 It is enabled by default at optimization level \fB\-O3\fR.
13396 .IP "\fB\-msynci\fR" 4
13397 .IX Item "-msynci"
13398 .PD 0
13399 .IP "\fB\-mno\-synci\fR" 4
13400 .IX Item "-mno-synci"
13402 Enable (disable) generation of \f(CW\*(C`synci\*(C'\fR instructions on
13403 architectures that support it.  The \f(CW\*(C`synci\*(C'\fR instructions (if
13404 enabled) will be generated when \f(CW\*(C`_\|_builtin_\|__clear_cache()\*(C'\fR is
13405 compiled.
13407 This option defaults to \f(CW\*(C`\-mno\-synci\*(C'\fR, but the default can be
13408 overridden by configuring with \f(CW\*(C`\-\-with\-synci\*(C'\fR.
13410 When compiling code for single processor systems, it is generally safe
13411 to use \f(CW\*(C`synci\*(C'\fR.  However, on many multi-core (\s-1SMP\s0) systems, it
13412 will not invalidate the instruction caches on all cores and may lead
13413 to undefined behavior.
13414 .IP "\fB\-mrelax\-pic\-calls\fR" 4
13415 .IX Item "-mrelax-pic-calls"
13416 .PD 0
13417 .IP "\fB\-mno\-relax\-pic\-calls\fR" 4
13418 .IX Item "-mno-relax-pic-calls"
13420 Try to turn \s-1PIC\s0 calls that are normally dispatched via register
13421 \&\f(CW$25\fR into direct calls.  This is only possible if the linker can
13422 resolve the destination at link-time and if the destination is within
13423 range for a direct call.
13425 \&\fB\-mrelax\-pic\-calls\fR is the default if \s-1GCC\s0 was configured to use
13426 an assembler and a linker that supports the \f(CW\*(C`.reloc\*(C'\fR assembly
13427 directive and \f(CW\*(C`\-mexplicit\-relocs\*(C'\fR is in effect.  With
13428 \&\f(CW\*(C`\-mno\-explicit\-relocs\*(C'\fR, this optimization can be performed by the
13429 assembler and the linker alone without help from the compiler.
13430 .IP "\fB\-mmcount\-ra\-address\fR" 4
13431 .IX Item "-mmcount-ra-address"
13432 .PD 0
13433 .IP "\fB\-mno\-mcount\-ra\-address\fR" 4
13434 .IX Item "-mno-mcount-ra-address"
13436 Emit (do not emit) code that allows \f(CW\*(C`_mcount\*(C'\fR to modify the
13437 calling function's return address.  When enabled, this option extends
13438 the usual \f(CW\*(C`_mcount\*(C'\fR interface with a new \fIra-address\fR
13439 parameter, which has type \f(CW\*(C`intptr_t *\*(C'\fR and is passed in register
13440 \&\f(CW$12\fR.  \f(CW\*(C`_mcount\*(C'\fR can then modify the return address by
13441 doing both of the following:
13442 .RS 4
13443 .IP "*" 4
13444 Returning the new address in register \f(CW$31\fR.
13445 .IP "*" 4
13446 Storing the new address in \f(CW\*(C`*\f(CIra-address\f(CW\*(C'\fR,
13447 if \fIra-address\fR is nonnull.
13449 .RS 4
13451 The default is \fB\-mno\-mcount\-ra\-address\fR.
13454 \fI\s-1MMIX\s0 Options\fR
13455 .IX Subsection "MMIX Options"
13457 These options are defined for the \s-1MMIX:\s0
13458 .IP "\fB\-mlibfuncs\fR" 4
13459 .IX Item "-mlibfuncs"
13460 .PD 0
13461 .IP "\fB\-mno\-libfuncs\fR" 4
13462 .IX Item "-mno-libfuncs"
13464 Specify that intrinsic library functions are being compiled, passing all
13465 values in registers, no matter the size.
13466 .IP "\fB\-mepsilon\fR" 4
13467 .IX Item "-mepsilon"
13468 .PD 0
13469 .IP "\fB\-mno\-epsilon\fR" 4
13470 .IX Item "-mno-epsilon"
13472 Generate floating-point comparison instructions that compare with respect
13473 to the \f(CW\*(C`rE\*(C'\fR epsilon register.
13474 .IP "\fB\-mabi=mmixware\fR" 4
13475 .IX Item "-mabi=mmixware"
13476 .PD 0
13477 .IP "\fB\-mabi=gnu\fR" 4
13478 .IX Item "-mabi=gnu"
13480 Generate code that passes function parameters and return values that (in
13481 the called function) are seen as registers \f(CW$0\fR and up, as opposed to
13482 the \s-1GNU\s0 \s-1ABI\s0 which uses global registers \f(CW$231\fR and up.
13483 .IP "\fB\-mzero\-extend\fR" 4
13484 .IX Item "-mzero-extend"
13485 .PD 0
13486 .IP "\fB\-mno\-zero\-extend\fR" 4
13487 .IX Item "-mno-zero-extend"
13489 When reading data from memory in sizes shorter than 64 bits, use (do not
13490 use) zero-extending load instructions by default, rather than
13491 sign-extending ones.
13492 .IP "\fB\-mknuthdiv\fR" 4
13493 .IX Item "-mknuthdiv"
13494 .PD 0
13495 .IP "\fB\-mno\-knuthdiv\fR" 4
13496 .IX Item "-mno-knuthdiv"
13498 Make the result of a division yielding a remainder have the same sign as
13499 the divisor.  With the default, \fB\-mno\-knuthdiv\fR, the sign of the
13500 remainder follows the sign of the dividend.  Both methods are
13501 arithmetically valid, the latter being almost exclusively used.
13502 .IP "\fB\-mtoplevel\-symbols\fR" 4
13503 .IX Item "-mtoplevel-symbols"
13504 .PD 0
13505 .IP "\fB\-mno\-toplevel\-symbols\fR" 4
13506 .IX Item "-mno-toplevel-symbols"
13508 Prepend (do not prepend) a \fB:\fR to all global symbols, so the assembly
13509 code can be used with the \f(CW\*(C`PREFIX\*(C'\fR assembly directive.
13510 .IP "\fB\-melf\fR" 4
13511 .IX Item "-melf"
13512 Generate an executable in the \s-1ELF\s0 format, rather than the default
13513 \&\fBmmo\fR format used by the \fBmmix\fR simulator.
13514 .IP "\fB\-mbranch\-predict\fR" 4
13515 .IX Item "-mbranch-predict"
13516 .PD 0
13517 .IP "\fB\-mno\-branch\-predict\fR" 4
13518 .IX Item "-mno-branch-predict"
13520 Use (do not use) the probable-branch instructions, when static branch
13521 prediction indicates a probable branch.
13522 .IP "\fB\-mbase\-addresses\fR" 4
13523 .IX Item "-mbase-addresses"
13524 .PD 0
13525 .IP "\fB\-mno\-base\-addresses\fR" 4
13526 .IX Item "-mno-base-addresses"
13528 Generate (do not generate) code that uses \fIbase addresses\fR.  Using a
13529 base address automatically generates a request (handled by the assembler
13530 and the linker) for a constant to be set up in a global register.  The
13531 register is used for one or more base address requests within the range 0
13532 to 255 from the value held in the register.  The generally leads to short
13533 and fast code, but the number of different data items that can be
13534 addressed is limited.  This means that a program that uses lots of static
13535 data may require \fB\-mno\-base\-addresses\fR.
13536 .IP "\fB\-msingle\-exit\fR" 4
13537 .IX Item "-msingle-exit"
13538 .PD 0
13539 .IP "\fB\-mno\-single\-exit\fR" 4
13540 .IX Item "-mno-single-exit"
13542 Force (do not force) generated code to have a single exit point in each
13543 function.
13545 \fI\s-1MN10300\s0 Options\fR
13546 .IX Subsection "MN10300 Options"
13548 These \fB\-m\fR options are defined for Matsushita \s-1MN10300\s0 architectures:
13549 .IP "\fB\-mmult\-bug\fR" 4
13550 .IX Item "-mmult-bug"
13551 Generate code to avoid bugs in the multiply instructions for the \s-1MN10300\s0
13552 processors.  This is the default.
13553 .IP "\fB\-mno\-mult\-bug\fR" 4
13554 .IX Item "-mno-mult-bug"
13555 Do not generate code to avoid bugs in the multiply instructions for the
13556 \&\s-1MN10300\s0 processors.
13557 .IP "\fB\-mam33\fR" 4
13558 .IX Item "-mam33"
13559 Generate code which uses features specific to the \s-1AM33\s0 processor.
13560 .IP "\fB\-mno\-am33\fR" 4
13561 .IX Item "-mno-am33"
13562 Do not generate code which uses features specific to the \s-1AM33\s0 processor.  This
13563 is the default.
13564 .IP "\fB\-mreturn\-pointer\-on\-d0\fR" 4
13565 .IX Item "-mreturn-pointer-on-d0"
13566 When generating a function which returns a pointer, return the pointer
13567 in both \f(CW\*(C`a0\*(C'\fR and \f(CW\*(C`d0\*(C'\fR.  Otherwise, the pointer is returned
13568 only in a0, and attempts to call such functions without a prototype
13569 would result in errors.  Note that this option is on by default; use
13570 \&\fB\-mno\-return\-pointer\-on\-d0\fR to disable it.
13571 .IP "\fB\-mno\-crt0\fR" 4
13572 .IX Item "-mno-crt0"
13573 Do not link in the C run-time initialization object file.
13574 .IP "\fB\-mrelax\fR" 4
13575 .IX Item "-mrelax"
13576 Indicate to the linker that it should perform a relaxation optimization pass
13577 to shorten branches, calls and absolute memory addresses.  This option only
13578 has an effect when used on the command line for the final link step.
13580 This option makes symbolic debugging impossible.
13582 \fI\s-1PDP\-11\s0 Options\fR
13583 .IX Subsection "PDP-11 Options"
13585 These options are defined for the \s-1PDP\-11:\s0
13586 .IP "\fB\-mfpu\fR" 4
13587 .IX Item "-mfpu"
13588 Use hardware \s-1FPP\s0 floating point.  This is the default.  (\s-1FIS\s0 floating
13589 point on the \s-1PDP\-11/40\s0 is not supported.)
13590 .IP "\fB\-msoft\-float\fR" 4
13591 .IX Item "-msoft-float"
13592 Do not use hardware floating point.
13593 .IP "\fB\-mac0\fR" 4
13594 .IX Item "-mac0"
13595 Return floating-point results in ac0 (fr0 in Unix assembler syntax).
13596 .IP "\fB\-mno\-ac0\fR" 4
13597 .IX Item "-mno-ac0"
13598 Return floating-point results in memory.  This is the default.
13599 .IP "\fB\-m40\fR" 4
13600 .IX Item "-m40"
13601 Generate code for a \s-1PDP\-11/40\s0.
13602 .IP "\fB\-m45\fR" 4
13603 .IX Item "-m45"
13604 Generate code for a \s-1PDP\-11/45\s0.  This is the default.
13605 .IP "\fB\-m10\fR" 4
13606 .IX Item "-m10"
13607 Generate code for a \s-1PDP\-11/10\s0.
13608 .IP "\fB\-mbcopy\-builtin\fR" 4
13609 .IX Item "-mbcopy-builtin"
13610 Use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.  This is the
13611 default.
13612 .IP "\fB\-mbcopy\fR" 4
13613 .IX Item "-mbcopy"
13614 Do not use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.
13615 .IP "\fB\-mint16\fR" 4
13616 .IX Item "-mint16"
13617 .PD 0
13618 .IP "\fB\-mno\-int32\fR" 4
13619 .IX Item "-mno-int32"
13621 Use 16\-bit \f(CW\*(C`int\*(C'\fR.  This is the default.
13622 .IP "\fB\-mint32\fR" 4
13623 .IX Item "-mint32"
13624 .PD 0
13625 .IP "\fB\-mno\-int16\fR" 4
13626 .IX Item "-mno-int16"
13628 Use 32\-bit \f(CW\*(C`int\*(C'\fR.
13629 .IP "\fB\-mfloat64\fR" 4
13630 .IX Item "-mfloat64"
13631 .PD 0
13632 .IP "\fB\-mno\-float32\fR" 4
13633 .IX Item "-mno-float32"
13635 Use 64\-bit \f(CW\*(C`float\*(C'\fR.  This is the default.
13636 .IP "\fB\-mfloat32\fR" 4
13637 .IX Item "-mfloat32"
13638 .PD 0
13639 .IP "\fB\-mno\-float64\fR" 4
13640 .IX Item "-mno-float64"
13642 Use 32\-bit \f(CW\*(C`float\*(C'\fR.
13643 .IP "\fB\-mabshi\fR" 4
13644 .IX Item "-mabshi"
13645 Use \f(CW\*(C`abshi2\*(C'\fR pattern.  This is the default.
13646 .IP "\fB\-mno\-abshi\fR" 4
13647 .IX Item "-mno-abshi"
13648 Do not use \f(CW\*(C`abshi2\*(C'\fR pattern.
13649 .IP "\fB\-mbranch\-expensive\fR" 4
13650 .IX Item "-mbranch-expensive"
13651 Pretend that branches are expensive.  This is for experimenting with
13652 code generation only.
13653 .IP "\fB\-mbranch\-cheap\fR" 4
13654 .IX Item "-mbranch-cheap"
13655 Do not pretend that branches are expensive.  This is the default.
13656 .IP "\fB\-msplit\fR" 4
13657 .IX Item "-msplit"
13658 Generate code for a system with split I&D.
13659 .IP "\fB\-mno\-split\fR" 4
13660 .IX Item "-mno-split"
13661 Generate code for a system without split I&D.  This is the default.
13662 .IP "\fB\-munix\-asm\fR" 4
13663 .IX Item "-munix-asm"
13664 Use Unix assembler syntax.  This is the default when configured for
13665 \&\fBpdp11\-*\-bsd\fR.
13666 .IP "\fB\-mdec\-asm\fR" 4
13667 .IX Item "-mdec-asm"
13668 Use \s-1DEC\s0 assembler syntax.  This is the default when configured for any
13669 \&\s-1PDP\-11\s0 target other than \fBpdp11\-*\-bsd\fR.
13671 \fIpicoChip Options\fR
13672 .IX Subsection "picoChip Options"
13674 These \fB\-m\fR options are defined for picoChip implementations:
13675 .IP "\fB\-mae=\fR\fIae_type\fR" 4
13676 .IX Item "-mae=ae_type"
13677 Set the instruction set, register set, and instruction scheduling
13678 parameters for array element type \fIae_type\fR.  Supported values
13679 for \fIae_type\fR are \fB\s-1ANY\s0\fR, \fB\s-1MUL\s0\fR, and \fB\s-1MAC\s0\fR.
13681 \&\fB\-mae=ANY\fR selects a completely generic \s-1AE\s0 type.  Code
13682 generated with this option will run on any of the other \s-1AE\s0 types.  The
13683 code will not be as efficient as it would be if compiled for a specific
13684 \&\s-1AE\s0 type, and some types of operation (e.g., multiplication) will not
13685 work properly on all types of \s-1AE\s0.
13687 \&\fB\-mae=MUL\fR selects a \s-1MUL\s0 \s-1AE\s0 type.  This is the most useful \s-1AE\s0 type
13688 for compiled code, and is the default.
13690 \&\fB\-mae=MAC\fR selects a DSP-style \s-1MAC\s0 \s-1AE\s0.  Code compiled with this
13691 option may suffer from poor performance of byte (char) manipulation,
13692 since the \s-1DSP\s0 \s-1AE\s0 does not provide hardware support for byte load/stores.
13693 .IP "\fB\-msymbol\-as\-address\fR" 4
13694 .IX Item "-msymbol-as-address"
13695 Enable the compiler to directly use a symbol name as an address in a
13696 load/store instruction, without first loading it into a
13697 register.  Typically, the use of this option will generate larger
13698 programs, which run faster than when the option isn't used.  However, the
13699 results vary from program to program, so it is left as a user option,
13700 rather than being permanently enabled.
13701 .IP "\fB\-mno\-inefficient\-warnings\fR" 4
13702 .IX Item "-mno-inefficient-warnings"
13703 Disables warnings about the generation of inefficient code.  These
13704 warnings can be generated, for example, when compiling code which
13705 performs byte-level memory operations on the \s-1MAC\s0 \s-1AE\s0 type.  The \s-1MAC\s0 \s-1AE\s0 has
13706 no hardware support for byte-level memory operations, so all byte
13707 load/stores must be synthesized from word load/store operations.  This is
13708 inefficient and a warning will be generated indicating to the programmer
13709 that they should rewrite the code to avoid byte operations, or to target
13710 an \s-1AE\s0 type which has the necessary hardware support.  This option enables
13711 the warning to be turned off.
13713 \fIPowerPC Options\fR
13714 .IX Subsection "PowerPC Options"
13716 These are listed under 
13718 \fI\s-1IBM\s0 \s-1RS/6000\s0 and PowerPC Options\fR
13719 .IX Subsection "IBM RS/6000 and PowerPC Options"
13721 These \fB\-m\fR options are defined for the \s-1IBM\s0 \s-1RS/6000\s0 and PowerPC:
13722 .IP "\fB\-mpower\fR" 4
13723 .IX Item "-mpower"
13724 .PD 0
13725 .IP "\fB\-mno\-power\fR" 4
13726 .IX Item "-mno-power"
13727 .IP "\fB\-mpower2\fR" 4
13728 .IX Item "-mpower2"
13729 .IP "\fB\-mno\-power2\fR" 4
13730 .IX Item "-mno-power2"
13731 .IP "\fB\-mpowerpc\fR" 4
13732 .IX Item "-mpowerpc"
13733 .IP "\fB\-mno\-powerpc\fR" 4
13734 .IX Item "-mno-powerpc"
13735 .IP "\fB\-mpowerpc\-gpopt\fR" 4
13736 .IX Item "-mpowerpc-gpopt"
13737 .IP "\fB\-mno\-powerpc\-gpopt\fR" 4
13738 .IX Item "-mno-powerpc-gpopt"
13739 .IP "\fB\-mpowerpc\-gfxopt\fR" 4
13740 .IX Item "-mpowerpc-gfxopt"
13741 .IP "\fB\-mno\-powerpc\-gfxopt\fR" 4
13742 .IX Item "-mno-powerpc-gfxopt"
13743 .IP "\fB\-mpowerpc64\fR" 4
13744 .IX Item "-mpowerpc64"
13745 .IP "\fB\-mno\-powerpc64\fR" 4
13746 .IX Item "-mno-powerpc64"
13747 .IP "\fB\-mmfcrf\fR" 4
13748 .IX Item "-mmfcrf"
13749 .IP "\fB\-mno\-mfcrf\fR" 4
13750 .IX Item "-mno-mfcrf"
13751 .IP "\fB\-mpopcntb\fR" 4
13752 .IX Item "-mpopcntb"
13753 .IP "\fB\-mno\-popcntb\fR" 4
13754 .IX Item "-mno-popcntb"
13755 .IP "\fB\-mpopcntd\fR" 4
13756 .IX Item "-mpopcntd"
13757 .IP "\fB\-mno\-popcntd\fR" 4
13758 .IX Item "-mno-popcntd"
13759 .IP "\fB\-mfprnd\fR" 4
13760 .IX Item "-mfprnd"
13761 .IP "\fB\-mno\-fprnd\fR" 4
13762 .IX Item "-mno-fprnd"
13763 .IP "\fB\-mcmpb\fR" 4
13764 .IX Item "-mcmpb"
13765 .IP "\fB\-mno\-cmpb\fR" 4
13766 .IX Item "-mno-cmpb"
13767 .IP "\fB\-mmfpgpr\fR" 4
13768 .IX Item "-mmfpgpr"
13769 .IP "\fB\-mno\-mfpgpr\fR" 4
13770 .IX Item "-mno-mfpgpr"
13771 .IP "\fB\-mhard\-dfp\fR" 4
13772 .IX Item "-mhard-dfp"
13773 .IP "\fB\-mno\-hard\-dfp\fR" 4
13774 .IX Item "-mno-hard-dfp"
13776 \&\s-1GCC\s0 supports two related instruction set architectures for the
13777 \&\s-1RS/6000\s0 and PowerPC.  The \fI\s-1POWER\s0\fR instruction set are those
13778 instructions supported by the \fBrios\fR chip set used in the original
13779 \&\s-1RS/6000\s0 systems and the \fIPowerPC\fR instruction set is the
13780 architecture of the Freescale MPC5xx, MPC6xx, MPC8xx microprocessors, and
13781 the \s-1IBM\s0 4xx, 6xx, and follow-on microprocessors.
13783 Neither architecture is a subset of the other.  However there is a
13784 large common subset of instructions supported by both.  An \s-1MQ\s0
13785 register is included in processors supporting the \s-1POWER\s0 architecture.
13787 You use these options to specify which instructions are available on the
13788 processor you are using.  The default value of these options is
13789 determined when configuring \s-1GCC\s0.  Specifying the
13790 \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
13791 options.  We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
13792 rather than the options listed above.
13794 The \fB\-mpower\fR option allows \s-1GCC\s0 to generate instructions that
13795 are found only in the \s-1POWER\s0 architecture and to use the \s-1MQ\s0 register.
13796 Specifying \fB\-mpower2\fR implies \fB\-power\fR and also allows \s-1GCC\s0
13797 to generate instructions that are present in the \s-1POWER2\s0 architecture but
13798 not the original \s-1POWER\s0 architecture.
13800 The \fB\-mpowerpc\fR option allows \s-1GCC\s0 to generate instructions that
13801 are found only in the 32\-bit subset of the PowerPC architecture.
13802 Specifying \fB\-mpowerpc\-gpopt\fR implies \fB\-mpowerpc\fR and also allows
13803 \&\s-1GCC\s0 to use the optional PowerPC architecture instructions in the
13804 General Purpose group, including floating-point square root.  Specifying
13805 \&\fB\-mpowerpc\-gfxopt\fR implies \fB\-mpowerpc\fR and also allows \s-1GCC\s0 to
13806 use the optional PowerPC architecture instructions in the Graphics
13807 group, including floating-point select.
13809 The \fB\-mmfcrf\fR option allows \s-1GCC\s0 to generate the move from
13810 condition register field instruction implemented on the \s-1POWER4\s0
13811 processor and other processors that support the PowerPC V2.01
13812 architecture.
13813 The \fB\-mpopcntb\fR option allows \s-1GCC\s0 to generate the popcount and
13814 double precision \s-1FP\s0 reciprocal estimate instruction implemented on the
13815 \&\s-1POWER5\s0 processor and other processors that support the PowerPC V2.02
13816 architecture.
13817 The \fB\-mpopcntd\fR option allows \s-1GCC\s0 to generate the popcount
13818 instruction implemented on the \s-1POWER7\s0 processor and other processors
13819 that support the PowerPC V2.06 architecture.
13820 The \fB\-mfprnd\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 round to
13821 integer instructions implemented on the \s-1POWER5+\s0 processor and other
13822 processors that support the PowerPC V2.03 architecture.
13823 The \fB\-mcmpb\fR option allows \s-1GCC\s0 to generate the compare bytes
13824 instruction implemented on the \s-1POWER6\s0 processor and other processors
13825 that support the PowerPC V2.05 architecture.
13826 The \fB\-mmfpgpr\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 move to/from
13827 general purpose register instructions implemented on the \s-1POWER6X\s0
13828 processor and other processors that support the extended PowerPC V2.05
13829 architecture.
13830 The \fB\-mhard\-dfp\fR option allows \s-1GCC\s0 to generate the decimal floating
13831 point instructions implemented on some \s-1POWER\s0 processors.
13833 The \fB\-mpowerpc64\fR option allows \s-1GCC\s0 to generate the additional
13834 64\-bit instructions that are found in the full PowerPC64 architecture
13835 and to treat GPRs as 64\-bit, doubleword quantities.  \s-1GCC\s0 defaults to
13836 \&\fB\-mno\-powerpc64\fR.
13838 If you specify both \fB\-mno\-power\fR and \fB\-mno\-powerpc\fR, \s-1GCC\s0
13839 will use only the instructions in the common subset of both
13840 architectures plus some special \s-1AIX\s0 common-mode calls, and will not use
13841 the \s-1MQ\s0 register.  Specifying both \fB\-mpower\fR and \fB\-mpowerpc\fR
13842 permits \s-1GCC\s0 to use any instruction from either architecture and to
13843 allow use of the \s-1MQ\s0 register; specify this for the Motorola \s-1MPC601\s0.
13844 .IP "\fB\-mnew\-mnemonics\fR" 4
13845 .IX Item "-mnew-mnemonics"
13846 .PD 0
13847 .IP "\fB\-mold\-mnemonics\fR" 4
13848 .IX Item "-mold-mnemonics"
13850 Select which mnemonics to use in the generated assembler code.  With
13851 \&\fB\-mnew\-mnemonics\fR, \s-1GCC\s0 uses the assembler mnemonics defined for
13852 the PowerPC architecture.  With \fB\-mold\-mnemonics\fR it uses the
13853 assembler mnemonics defined for the \s-1POWER\s0 architecture.  Instructions
13854 defined in only one architecture have only one mnemonic; \s-1GCC\s0 uses that
13855 mnemonic irrespective of which of these options is specified.
13857 \&\s-1GCC\s0 defaults to the mnemonics appropriate for the architecture in
13858 use.  Specifying \fB\-mcpu=\fR\fIcpu_type\fR sometimes overrides the
13859 value of these option.  Unless you are building a cross\-compiler, you
13860 should normally not specify either \fB\-mnew\-mnemonics\fR or
13861 \&\fB\-mold\-mnemonics\fR, but should instead accept the default.
13862 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
13863 .IX Item "-mcpu=cpu_type"
13864 Set architecture type, register usage, choice of mnemonics, and
13865 instruction scheduling parameters for machine type \fIcpu_type\fR.
13866 Supported values for \fIcpu_type\fR are \fB401\fR, \fB403\fR,
13867 \&\fB405\fR, \fB405fp\fR, \fB440\fR, \fB440fp\fR, \fB464\fR, \fB464fp\fR,
13868 \&\fB476\fR, \fB476fp\fR, \fB505\fR, \fB601\fR, \fB602\fR, \fB603\fR,
13869 \&\fB603e\fR, \fB604\fR, \fB604e\fR, \fB620\fR, \fB630\fR, \fB740\fR,
13870 \&\fB7400\fR, \fB7450\fR, \fB750\fR, \fB801\fR, \fB821\fR, \fB823\fR,
13871 \&\fB860\fR, \fB970\fR, \fB8540\fR, \fBa2\fR, \fBe300c2\fR,
13872 \&\fBe300c3\fR, \fBe500mc\fR, \fBe500mc64\fR, \fBec603e\fR, \fBG3\fR,
13873 \&\fBG4\fR, \fBG5\fR, \fBpower\fR, \fBpower2\fR, \fBpower3\fR,
13874 \&\fBpower4\fR, \fBpower5\fR, \fBpower5+\fR, \fBpower6\fR, \fBpower6x\fR,
13875 \&\fBpower7\fR, \fBcommon\fR, \fBpowerpc\fR, \fBpowerpc64\fR, \fBrios\fR,
13876 \&\fBrios1\fR, \fBrios2\fR, \fBrsc\fR, and \fBrs64\fR.
13878 \&\fB\-mcpu=common\fR selects a completely generic processor.  Code
13879 generated under this option will run on any \s-1POWER\s0 or PowerPC processor.
13880 \&\s-1GCC\s0 will use only the instructions in the common subset of both
13881 architectures, and will not use the \s-1MQ\s0 register.  \s-1GCC\s0 assumes a generic
13882 processor model for scheduling purposes.
13884 \&\fB\-mcpu=power\fR, \fB\-mcpu=power2\fR, \fB\-mcpu=powerpc\fR, and
13885 \&\fB\-mcpu=powerpc64\fR specify generic \s-1POWER\s0, \s-1POWER2\s0, pure 32\-bit
13886 PowerPC (i.e., not \s-1MPC601\s0), and 64\-bit PowerPC architecture machine
13887 types, with an appropriate, generic processor model assumed for
13888 scheduling purposes.
13890 The other options specify a specific processor.  Code generated under
13891 those options will run best on that processor, and may not run at all on
13892 others.
13894 The \fB\-mcpu\fR options automatically enable or disable the
13895 following options:
13897 \&\fB\-maltivec  \-mfprnd  \-mhard\-float  \-mmfcrf  \-mmultiple 
13898 \&\-mnew\-mnemonics  \-mpopcntb \-mpopcntd  \-mpower  \-mpower2  \-mpowerpc64 
13899 \&\-mpowerpc\-gpopt  \-mpowerpc\-gfxopt  \-msingle\-float \-mdouble\-float 
13900 \&\-msimple\-fpu \-mstring  \-mmulhw  \-mdlmzb  \-mmfpgpr \-mvsx\fR
13902 The particular options set for any particular \s-1CPU\s0 will vary between
13903 compiler versions, depending on what setting seems to produce optimal
13904 code for that \s-1CPU\s0; it doesn't necessarily reflect the actual hardware's
13905 capabilities.  If you wish to set an individual option to a particular
13906 value, you may specify it after the \fB\-mcpu\fR option, like
13907 \&\fB\-mcpu=970 \-mno\-altivec\fR.
13909 On \s-1AIX\s0, the \fB\-maltivec\fR and \fB\-mpowerpc64\fR options are
13910 not enabled or disabled by the \fB\-mcpu\fR option at present because
13911 \&\s-1AIX\s0 does not have full support for these options.  You may still
13912 enable or disable them individually if you're sure it'll work in your
13913 environment.
13914 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
13915 .IX Item "-mtune=cpu_type"
13916 Set the instruction scheduling parameters for machine type
13917 \&\fIcpu_type\fR, but do not set the architecture type, register usage, or
13918 choice of mnemonics, as \fB\-mcpu=\fR\fIcpu_type\fR would.  The same
13919 values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
13920 \&\fB\-mcpu\fR.  If both are specified, the code generated will use the
13921 architecture, registers, and mnemonics set by \fB\-mcpu\fR, but the
13922 scheduling parameters set by \fB\-mtune\fR.
13923 .IP "\fB\-mswdiv\fR" 4
13924 .IX Item "-mswdiv"
13925 .PD 0
13926 .IP "\fB\-mno\-swdiv\fR" 4
13927 .IX Item "-mno-swdiv"
13929 Generate code to compute division as reciprocal estimate and iterative
13930 refinement, creating opportunities for increased throughput.  This
13931 feature requires: optional PowerPC Graphics instruction set for single
13932 precision and \s-1FRE\s0 instruction for double precision, assuming divides
13933 cannot generate user-visible traps, and the domain values not include
13934 Infinities, denormals or zero denominator.
13935 .IP "\fB\-maltivec\fR" 4
13936 .IX Item "-maltivec"
13937 .PD 0
13938 .IP "\fB\-mno\-altivec\fR" 4
13939 .IX Item "-mno-altivec"
13941 Generate code that uses (does not use) AltiVec instructions, and also
13942 enable the use of built-in functions that allow more direct access to
13943 the AltiVec instruction set.  You may also need to set
13944 \&\fB\-mabi=altivec\fR to adjust the current \s-1ABI\s0 with AltiVec \s-1ABI\s0
13945 enhancements.
13946 .IP "\fB\-mvrsave\fR" 4
13947 .IX Item "-mvrsave"
13948 .PD 0
13949 .IP "\fB\-mno\-vrsave\fR" 4
13950 .IX Item "-mno-vrsave"
13952 Generate \s-1VRSAVE\s0 instructions when generating AltiVec code.
13953 .IP "\fB\-mgen\-cell\-microcode\fR" 4
13954 .IX Item "-mgen-cell-microcode"
13955 Generate Cell microcode instructions
13956 .IP "\fB\-mwarn\-cell\-microcode\fR" 4
13957 .IX Item "-mwarn-cell-microcode"
13958 Warning when a Cell microcode instruction is going to emitted.  An example
13959 of a Cell microcode instruction is a variable shift.
13960 .IP "\fB\-msecure\-plt\fR" 4
13961 .IX Item "-msecure-plt"
13962 Generate code that allows ld and ld.so to build executables and shared
13963 libraries with non-exec .plt and .got sections.  This is a PowerPC
13964 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
13965 .IP "\fB\-mbss\-plt\fR" 4
13966 .IX Item "-mbss-plt"
13967 Generate code that uses a \s-1BSS\s0 .plt section that ld.so fills in, and
13968 requires .plt and .got sections that are both writable and executable.
13969 This is a PowerPC 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
13970 .IP "\fB\-misel\fR" 4
13971 .IX Item "-misel"
13972 .PD 0
13973 .IP "\fB\-mno\-isel\fR" 4
13974 .IX Item "-mno-isel"
13976 This switch enables or disables the generation of \s-1ISEL\s0 instructions.
13977 .IP "\fB\-misel=\fR\fIyes/no\fR" 4
13978 .IX Item "-misel=yes/no"
13979 This switch has been deprecated.  Use \fB\-misel\fR and
13980 \&\fB\-mno\-isel\fR instead.
13981 .IP "\fB\-mspe\fR" 4
13982 .IX Item "-mspe"
13983 .PD 0
13984 .IP "\fB\-mno\-spe\fR" 4
13985 .IX Item "-mno-spe"
13987 This switch enables or disables the generation of \s-1SPE\s0 simd
13988 instructions.
13989 .IP "\fB\-mpaired\fR" 4
13990 .IX Item "-mpaired"
13991 .PD 0
13992 .IP "\fB\-mno\-paired\fR" 4
13993 .IX Item "-mno-paired"
13995 This switch enables or disables the generation of \s-1PAIRED\s0 simd
13996 instructions.
13997 .IP "\fB\-mspe=\fR\fIyes/no\fR" 4
13998 .IX Item "-mspe=yes/no"
13999 This option has been deprecated.  Use \fB\-mspe\fR and
14000 \&\fB\-mno\-spe\fR instead.
14001 .IP "\fB\-mvsx\fR" 4
14002 .IX Item "-mvsx"
14003 .PD 0
14004 .IP "\fB\-mno\-vsx\fR" 4
14005 .IX Item "-mno-vsx"
14007 Generate code that uses (does not use) vector/scalar (\s-1VSX\s0)
14008 instructions, and also enable the use of built-in functions that allow
14009 more direct access to the \s-1VSX\s0 instruction set.
14010 .IP "\fB\-mfloat\-gprs=\fR\fIyes/single/double/no\fR" 4
14011 .IX Item "-mfloat-gprs=yes/single/double/no"
14012 .PD 0
14013 .IP "\fB\-mfloat\-gprs\fR" 4
14014 .IX Item "-mfloat-gprs"
14016 This switch enables or disables the generation of floating point
14017 operations on the general purpose registers for architectures that
14018 support it.
14020 The argument \fIyes\fR or \fIsingle\fR enables the use of
14021 single-precision floating point operations.
14023 The argument \fIdouble\fR enables the use of single and
14024 double-precision floating point operations.
14026 The argument \fIno\fR disables floating point operations on the
14027 general purpose registers.
14029 This option is currently only available on the MPC854x.
14030 .IP "\fB\-m32\fR" 4
14031 .IX Item "-m32"
14032 .PD 0
14033 .IP "\fB\-m64\fR" 4
14034 .IX Item "-m64"
14036 Generate code for 32\-bit or 64\-bit environments of Darwin and \s-1SVR4\s0
14037 targets (including GNU/Linux).  The 32\-bit environment sets int, long
14038 and pointer to 32 bits and generates code that runs on any PowerPC
14039 variant.  The 64\-bit environment sets int to 32 bits and long and
14040 pointer to 64 bits, and generates code for PowerPC64, as for
14041 \&\fB\-mpowerpc64\fR.
14042 .IP "\fB\-mfull\-toc\fR" 4
14043 .IX Item "-mfull-toc"
14044 .PD 0
14045 .IP "\fB\-mno\-fp\-in\-toc\fR" 4
14046 .IX Item "-mno-fp-in-toc"
14047 .IP "\fB\-mno\-sum\-in\-toc\fR" 4
14048 .IX Item "-mno-sum-in-toc"
14049 .IP "\fB\-mminimal\-toc\fR" 4
14050 .IX Item "-mminimal-toc"
14052 Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
14053 every executable file.  The \fB\-mfull\-toc\fR option is selected by
14054 default.  In that case, \s-1GCC\s0 will allocate at least one \s-1TOC\s0 entry for
14055 each unique non-automatic variable reference in your program.  \s-1GCC\s0
14056 will also place floating-point constants in the \s-1TOC\s0.  However, only
14057 16,384 entries are available in the \s-1TOC\s0.
14059 If you receive a linker error message that saying you have overflowed
14060 the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
14061 with the \fB\-mno\-fp\-in\-toc\fR and \fB\-mno\-sum\-in\-toc\fR options.
14062 \&\fB\-mno\-fp\-in\-toc\fR prevents \s-1GCC\s0 from putting floating-point
14063 constants in the \s-1TOC\s0 and \fB\-mno\-sum\-in\-toc\fR forces \s-1GCC\s0 to
14064 generate code to calculate the sum of an address and a constant at
14065 run-time instead of putting that sum into the \s-1TOC\s0.  You may specify one
14066 or both of these options.  Each causes \s-1GCC\s0 to produce very slightly
14067 slower and larger code at the expense of conserving \s-1TOC\s0 space.
14069 If you still run out of space in the \s-1TOC\s0 even when you specify both of
14070 these options, specify \fB\-mminimal\-toc\fR instead.  This option causes
14071 \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file.  When you specify this
14072 option, \s-1GCC\s0 will produce code that is slower and larger but which
14073 uses extremely little \s-1TOC\s0 space.  You may wish to use this option
14074 only on files that contain less frequently executed code.
14075 .IP "\fB\-maix64\fR" 4
14076 .IX Item "-maix64"
14077 .PD 0
14078 .IP "\fB\-maix32\fR" 4
14079 .IX Item "-maix32"
14081 Enable 64\-bit \s-1AIX\s0 \s-1ABI\s0 and calling convention: 64\-bit pointers, 64\-bit
14082 \&\f(CW\*(C`long\*(C'\fR type, and the infrastructure needed to support them.
14083 Specifying \fB\-maix64\fR implies \fB\-mpowerpc64\fR and
14084 \&\fB\-mpowerpc\fR, while \fB\-maix32\fR disables the 64\-bit \s-1ABI\s0 and
14085 implies \fB\-mno\-powerpc64\fR.  \s-1GCC\s0 defaults to \fB\-maix32\fR.
14086 .IP "\fB\-mxl\-compat\fR" 4
14087 .IX Item "-mxl-compat"
14088 .PD 0
14089 .IP "\fB\-mno\-xl\-compat\fR" 4
14090 .IX Item "-mno-xl-compat"
14092 Produce code that conforms more closely to \s-1IBM\s0 \s-1XL\s0 compiler semantics
14093 when using AIX-compatible \s-1ABI\s0.  Pass floating-point arguments to
14094 prototyped functions beyond the register save area (\s-1RSA\s0) on the stack
14095 in addition to argument FPRs.  Do not assume that most significant
14096 double in 128\-bit long double value is properly rounded when comparing
14097 values and converting to double.  Use \s-1XL\s0 symbol names for long double
14098 support routines.
14100 The \s-1AIX\s0 calling convention was extended but not initially documented to
14101 handle an obscure K&R C case of calling a function that takes the
14102 address of its arguments with fewer arguments than declared.  \s-1IBM\s0 \s-1XL\s0
14103 compilers access floating point arguments which do not fit in the
14104 \&\s-1RSA\s0 from the stack when a subroutine is compiled without
14105 optimization.  Because always storing floating-point arguments on the
14106 stack is inefficient and rarely needed, this option is not enabled by
14107 default and only is necessary when calling subroutines compiled by \s-1IBM\s0
14108 \&\s-1XL\s0 compilers without optimization.
14109 .IP "\fB\-mpe\fR" 4
14110 .IX Item "-mpe"
14111 Support \fI\s-1IBM\s0 \s-1RS/6000\s0 \s-1SP\s0\fR \fIParallel Environment\fR (\s-1PE\s0).  Link an
14112 application written to use message passing with special startup code to
14113 enable the application to run.  The system must have \s-1PE\s0 installed in the
14114 standard location (\fI/usr/lpp/ppe.poe/\fR), or the \fIspecs\fR file
14115 must be overridden with the \fB\-specs=\fR option to specify the
14116 appropriate directory location.  The Parallel Environment does not
14117 support threads, so the \fB\-mpe\fR option and the \fB\-pthread\fR
14118 option are incompatible.
14119 .IP "\fB\-malign\-natural\fR" 4
14120 .IX Item "-malign-natural"
14121 .PD 0
14122 .IP "\fB\-malign\-power\fR" 4
14123 .IX Item "-malign-power"
14125 On \s-1AIX\s0, 32\-bit Darwin, and 64\-bit PowerPC GNU/Linux, the option
14126 \&\fB\-malign\-natural\fR overrides the ABI-defined alignment of larger
14127 types, such as floating-point doubles, on their natural size-based boundary.
14128 The option \fB\-malign\-power\fR instructs \s-1GCC\s0 to follow the ABI-specified
14129 alignment rules.  \s-1GCC\s0 defaults to the standard alignment defined in the \s-1ABI\s0.
14131 On 64\-bit Darwin, natural alignment is the default, and \fB\-malign\-power\fR
14132 is not supported.
14133 .IP "\fB\-msoft\-float\fR" 4
14134 .IX Item "-msoft-float"
14135 .PD 0
14136 .IP "\fB\-mhard\-float\fR" 4
14137 .IX Item "-mhard-float"
14139 Generate code that does not use (uses) the floating-point register set.
14140 Software floating point emulation is provided if you use the
14141 \&\fB\-msoft\-float\fR option, and pass the option to \s-1GCC\s0 when linking.
14142 .IP "\fB\-msingle\-float\fR" 4
14143 .IX Item "-msingle-float"
14144 .PD 0
14145 .IP "\fB\-mdouble\-float\fR" 4
14146 .IX Item "-mdouble-float"
14148 Generate code for single or double-precision floating point operations.
14149 \&\fB\-mdouble\-float\fR implies \fB\-msingle\-float\fR.
14150 .IP "\fB\-msimple\-fpu\fR" 4
14151 .IX Item "-msimple-fpu"
14152 Do not generate sqrt and div instructions for hardware floating point unit.
14153 .IP "\fB\-mfpu\fR" 4
14154 .IX Item "-mfpu"
14155 Specify type of floating point unit.  Valid values are \fIsp_lite\fR
14156 (equivalent to \-msingle\-float \-msimple\-fpu), \fIdp_lite\fR (equivalent
14157 to \-mdouble\-float \-msimple\-fpu), \fIsp_full\fR (equivalent to \-msingle\-float),
14158 and \fIdp_full\fR (equivalent to \-mdouble\-float).
14159 .IP "\fB\-mxilinx\-fpu\fR" 4
14160 .IX Item "-mxilinx-fpu"
14161 Perform optimizations for floating point unit on Xilinx \s-1PPC\s0 405/440.
14162 .IP "\fB\-mmultiple\fR" 4
14163 .IX Item "-mmultiple"
14164 .PD 0
14165 .IP "\fB\-mno\-multiple\fR" 4
14166 .IX Item "-mno-multiple"
14168 Generate code that uses (does not use) the load multiple word
14169 instructions and the store multiple word instructions.  These
14170 instructions are generated by default on \s-1POWER\s0 systems, and not
14171 generated on PowerPC systems.  Do not use \fB\-mmultiple\fR on little
14172 endian PowerPC systems, since those instructions do not work when the
14173 processor is in little endian mode.  The exceptions are \s-1PPC740\s0 and
14174 \&\s-1PPC750\s0 which permit the instructions usage in little endian mode.
14175 .IP "\fB\-mstring\fR" 4
14176 .IX Item "-mstring"
14177 .PD 0
14178 .IP "\fB\-mno\-string\fR" 4
14179 .IX Item "-mno-string"
14181 Generate code that uses (does not use) the load string instructions
14182 and the store string word instructions to save multiple registers and
14183 do small block moves.  These instructions are generated by default on
14184 \&\s-1POWER\s0 systems, and not generated on PowerPC systems.  Do not use
14185 \&\fB\-mstring\fR on little endian PowerPC systems, since those
14186 instructions do not work when the processor is in little endian mode.
14187 The exceptions are \s-1PPC740\s0 and \s-1PPC750\s0 which permit the instructions
14188 usage in little endian mode.
14189 .IP "\fB\-mupdate\fR" 4
14190 .IX Item "-mupdate"
14191 .PD 0
14192 .IP "\fB\-mno\-update\fR" 4
14193 .IX Item "-mno-update"
14195 Generate code that uses (does not use) the load or store instructions
14196 that update the base register to the address of the calculated memory
14197 location.  These instructions are generated by default.  If you use
14198 \&\fB\-mno\-update\fR, there is a small window between the time that the
14199 stack pointer is updated and the address of the previous frame is
14200 stored, which means code that walks the stack frame across interrupts or
14201 signals may get corrupted data.
14202 .IP "\fB\-mavoid\-indexed\-addresses\fR" 4
14203 .IX Item "-mavoid-indexed-addresses"
14204 .PD 0
14205 .IP "\fB\-mno\-avoid\-indexed\-addresses\fR" 4
14206 .IX Item "-mno-avoid-indexed-addresses"
14208 Generate code that tries to avoid (not avoid) the use of indexed load
14209 or store instructions. These instructions can incur a performance
14210 penalty on Power6 processors in certain situations, such as when
14211 stepping through large arrays that cross a 16M boundary.  This option
14212 is enabled by default when targetting Power6 and disabled otherwise.
14213 .IP "\fB\-mfused\-madd\fR" 4
14214 .IX Item "-mfused-madd"
14215 .PD 0
14216 .IP "\fB\-mno\-fused\-madd\fR" 4
14217 .IX Item "-mno-fused-madd"
14219 Generate code that uses (does not use) the floating point multiply and
14220 accumulate instructions.  These instructions are generated by default if
14221 hardware floating is used.
14222 .IP "\fB\-mmulhw\fR" 4
14223 .IX Item "-mmulhw"
14224 .PD 0
14225 .IP "\fB\-mno\-mulhw\fR" 4
14226 .IX Item "-mno-mulhw"
14228 Generate code that uses (does not use) the half-word multiply and
14229 multiply-accumulate instructions on the \s-1IBM\s0 405, 440, 464 and 476 processors.
14230 These instructions are generated by default when targetting those
14231 processors.
14232 .IP "\fB\-mdlmzb\fR" 4
14233 .IX Item "-mdlmzb"
14234 .PD 0
14235 .IP "\fB\-mno\-dlmzb\fR" 4
14236 .IX Item "-mno-dlmzb"
14238 Generate code that uses (does not use) the string-search \fBdlmzb\fR
14239 instruction on the \s-1IBM\s0 405, 440, 464 and 476 processors.  This instruction is
14240 generated by default when targetting those processors.
14241 .IP "\fB\-mno\-bit\-align\fR" 4
14242 .IX Item "-mno-bit-align"
14243 .PD 0
14244 .IP "\fB\-mbit\-align\fR" 4
14245 .IX Item "-mbit-align"
14247 On System V.4 and embedded PowerPC systems do not (do) force structures
14248 and unions that contain bit-fields to be aligned to the base type of the
14249 bit\-field.
14251 For example, by default a structure containing nothing but 8
14252 \&\f(CW\*(C`unsigned\*(C'\fR bit-fields of length 1 would be aligned to a 4 byte
14253 boundary and have a size of 4 bytes.  By using \fB\-mno\-bit\-align\fR,
14254 the structure would be aligned to a 1 byte boundary and be one byte in
14255 size.
14256 .IP "\fB\-mno\-strict\-align\fR" 4
14257 .IX Item "-mno-strict-align"
14258 .PD 0
14259 .IP "\fB\-mstrict\-align\fR" 4
14260 .IX Item "-mstrict-align"
14262 On System V.4 and embedded PowerPC systems do not (do) assume that
14263 unaligned memory references will be handled by the system.
14264 .IP "\fB\-mrelocatable\fR" 4
14265 .IX Item "-mrelocatable"
14266 .PD 0
14267 .IP "\fB\-mno\-relocatable\fR" 4
14268 .IX Item "-mno-relocatable"
14270 On embedded PowerPC systems generate code that allows (does not allow)
14271 the program to be relocated to a different address at runtime.  If you
14272 use \fB\-mrelocatable\fR on any module, all objects linked together must
14273 be compiled with \fB\-mrelocatable\fR or \fB\-mrelocatable\-lib\fR.
14274 .IP "\fB\-mrelocatable\-lib\fR" 4
14275 .IX Item "-mrelocatable-lib"
14276 .PD 0
14277 .IP "\fB\-mno\-relocatable\-lib\fR" 4
14278 .IX Item "-mno-relocatable-lib"
14280 On embedded PowerPC systems generate code that allows (does not allow)
14281 the program to be relocated to a different address at runtime.  Modules
14282 compiled with \fB\-mrelocatable\-lib\fR can be linked with either modules
14283 compiled without \fB\-mrelocatable\fR and \fB\-mrelocatable\-lib\fR or
14284 with modules compiled with the \fB\-mrelocatable\fR options.
14285 .IP "\fB\-mno\-toc\fR" 4
14286 .IX Item "-mno-toc"
14287 .PD 0
14288 .IP "\fB\-mtoc\fR" 4
14289 .IX Item "-mtoc"
14291 On System V.4 and embedded PowerPC systems do not (do) assume that
14292 register 2 contains a pointer to a global area pointing to the addresses
14293 used in the program.
14294 .IP "\fB\-mlittle\fR" 4
14295 .IX Item "-mlittle"
14296 .PD 0
14297 .IP "\fB\-mlittle\-endian\fR" 4
14298 .IX Item "-mlittle-endian"
14300 On System V.4 and embedded PowerPC systems compile code for the
14301 processor in little endian mode.  The \fB\-mlittle\-endian\fR option is
14302 the same as \fB\-mlittle\fR.
14303 .IP "\fB\-mbig\fR" 4
14304 .IX Item "-mbig"
14305 .PD 0
14306 .IP "\fB\-mbig\-endian\fR" 4
14307 .IX Item "-mbig-endian"
14309 On System V.4 and embedded PowerPC systems compile code for the
14310 processor in big endian mode.  The \fB\-mbig\-endian\fR option is
14311 the same as \fB\-mbig\fR.
14312 .IP "\fB\-mdynamic\-no\-pic\fR" 4
14313 .IX Item "-mdynamic-no-pic"
14314 On Darwin and Mac \s-1OS\s0 X systems, compile code so that it is not
14315 relocatable, but that its external references are relocatable.  The
14316 resulting code is suitable for applications, but not shared
14317 libraries.
14318 .IP "\fB\-mprioritize\-restricted\-insns=\fR\fIpriority\fR" 4
14319 .IX Item "-mprioritize-restricted-insns=priority"
14320 This option controls the priority that is assigned to
14321 dispatch-slot restricted instructions during the second scheduling
14322 pass.  The argument \fIpriority\fR takes the value \fI0/1/2\fR to assign
14323 \&\fIno/highest/second\-highest\fR priority to dispatch slot restricted
14324 instructions.
14325 .IP "\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR" 4
14326 .IX Item "-msched-costly-dep=dependence_type"
14327 This option controls which dependences are considered costly
14328 by the target during instruction scheduling.  The argument
14329 \&\fIdependence_type\fR takes one of the following values:
14330 \&\fIno\fR: no dependence is costly,
14331 \&\fIall\fR: all dependences are costly,
14332 \&\fItrue_store_to_load\fR: a true dependence from store to load is costly,
14333 \&\fIstore_to_load\fR: any dependence from store to load is costly,
14334 \&\fInumber\fR: any dependence which latency >= \fInumber\fR is costly.
14335 .IP "\fB\-minsert\-sched\-nops=\fR\fIscheme\fR" 4
14336 .IX Item "-minsert-sched-nops=scheme"
14337 This option controls which nop insertion scheme will be used during
14338 the second scheduling pass.  The argument \fIscheme\fR takes one of the
14339 following values:
14340 \&\fIno\fR: Don't insert nops.
14341 \&\fIpad\fR: Pad with nops any dispatch group which has vacant issue slots,
14342 according to the scheduler's grouping.
14343 \&\fIregroup_exact\fR: Insert nops to force costly dependent insns into
14344 separate groups.  Insert exactly as many nops as needed to force an insn
14345 to a new group, according to the estimated processor grouping.
14346 \&\fInumber\fR: Insert nops to force costly dependent insns into
14347 separate groups.  Insert \fInumber\fR nops to force an insn to a new group.
14348 .IP "\fB\-mcall\-sysv\fR" 4
14349 .IX Item "-mcall-sysv"
14350 On System V.4 and embedded PowerPC systems compile code using calling
14351 conventions that adheres to the March 1995 draft of the System V
14352 Application Binary Interface, PowerPC processor supplement.  This is the
14353 default unless you configured \s-1GCC\s0 using \fBpowerpc\-*\-eabiaix\fR.
14354 .IP "\fB\-mcall\-sysv\-eabi\fR" 4
14355 .IX Item "-mcall-sysv-eabi"
14356 .PD 0
14357 .IP "\fB\-mcall\-eabi\fR" 4
14358 .IX Item "-mcall-eabi"
14360 Specify both \fB\-mcall\-sysv\fR and \fB\-meabi\fR options.
14361 .IP "\fB\-mcall\-sysv\-noeabi\fR" 4
14362 .IX Item "-mcall-sysv-noeabi"
14363 Specify both \fB\-mcall\-sysv\fR and \fB\-mno\-eabi\fR options.
14364 .IP "\fB\-mcall\-aixdesc\fR" 4
14365 .IX Item "-mcall-aixdesc"
14366 On System V.4 and embedded PowerPC systems compile code for the \s-1AIX\s0
14367 operating system.
14368 .IP "\fB\-mcall\-linux\fR" 4
14369 .IX Item "-mcall-linux"
14370 On System V.4 and embedded PowerPC systems compile code for the
14371 Linux-based \s-1GNU\s0 system.
14372 .IP "\fB\-mcall\-gnu\fR" 4
14373 .IX Item "-mcall-gnu"
14374 On System V.4 and embedded PowerPC systems compile code for the
14375 Hurd-based \s-1GNU\s0 system.
14376 .IP "\fB\-mcall\-freebsd\fR" 4
14377 .IX Item "-mcall-freebsd"
14378 On System V.4 and embedded PowerPC systems compile code for the
14379 FreeBSD operating system.
14380 .IP "\fB\-mcall\-netbsd\fR" 4
14381 .IX Item "-mcall-netbsd"
14382 On System V.4 and embedded PowerPC systems compile code for the
14383 NetBSD operating system.
14384 .IP "\fB\-mcall\-openbsd\fR" 4
14385 .IX Item "-mcall-openbsd"
14386 On System V.4 and embedded PowerPC systems compile code for the
14387 OpenBSD operating system.
14388 .IP "\fB\-maix\-struct\-return\fR" 4
14389 .IX Item "-maix-struct-return"
14390 Return all structures in memory (as specified by the \s-1AIX\s0 \s-1ABI\s0).
14391 .IP "\fB\-msvr4\-struct\-return\fR" 4
14392 .IX Item "-msvr4-struct-return"
14393 Return structures smaller than 8 bytes in registers (as specified by the
14394 \&\s-1SVR4\s0 \s-1ABI\s0).
14395 .IP "\fB\-mabi=\fR\fIabi-type\fR" 4
14396 .IX Item "-mabi=abi-type"
14397 Extend the current \s-1ABI\s0 with a particular extension, or remove such extension.
14398 Valid values are \fIaltivec\fR, \fIno-altivec\fR, \fIspe\fR,
14399 \&\fIno-spe\fR, \fIibmlongdouble\fR, \fIieeelongdouble\fR.
14400 .IP "\fB\-mabi=spe\fR" 4
14401 .IX Item "-mabi=spe"
14402 Extend the current \s-1ABI\s0 with \s-1SPE\s0 \s-1ABI\s0 extensions.  This does not change
14403 the default \s-1ABI\s0, instead it adds the \s-1SPE\s0 \s-1ABI\s0 extensions to the current
14404 \&\s-1ABI\s0.
14405 .IP "\fB\-mabi=no\-spe\fR" 4
14406 .IX Item "-mabi=no-spe"
14407 Disable Booke \s-1SPE\s0 \s-1ABI\s0 extensions for the current \s-1ABI\s0.
14408 .IP "\fB\-mabi=ibmlongdouble\fR" 4
14409 .IX Item "-mabi=ibmlongdouble"
14410 Change the current \s-1ABI\s0 to use \s-1IBM\s0 extended precision long double.
14411 This is a PowerPC 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
14412 .IP "\fB\-mabi=ieeelongdouble\fR" 4
14413 .IX Item "-mabi=ieeelongdouble"
14414 Change the current \s-1ABI\s0 to use \s-1IEEE\s0 extended precision long double.
14415 This is a PowerPC 32\-bit Linux \s-1ABI\s0 option.
14416 .IP "\fB\-mprototype\fR" 4
14417 .IX Item "-mprototype"
14418 .PD 0
14419 .IP "\fB\-mno\-prototype\fR" 4
14420 .IX Item "-mno-prototype"
14422 On System V.4 and embedded PowerPC systems assume that all calls to
14423 variable argument functions are properly prototyped.  Otherwise, the
14424 compiler must insert an instruction before every non prototyped call to
14425 set or clear bit 6 of the condition code register (\fI\s-1CR\s0\fR) to
14426 indicate whether floating point values were passed in the floating point
14427 registers in case the function takes a variable arguments.  With
14428 \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
14429 will set or clear the bit.
14430 .IP "\fB\-msim\fR" 4
14431 .IX Item "-msim"
14432 On embedded PowerPC systems, assume that the startup module is called
14433 \&\fIsim\-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
14434 \&\fIlibc.a\fR.  This is the default for \fBpowerpc\-*\-eabisim\fR
14435 configurations.
14436 .IP "\fB\-mmvme\fR" 4
14437 .IX Item "-mmvme"
14438 On embedded PowerPC systems, assume that the startup module is called
14439 \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
14440 \&\fIlibc.a\fR.
14441 .IP "\fB\-mads\fR" 4
14442 .IX Item "-mads"
14443 On embedded PowerPC systems, assume that the startup module is called
14444 \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
14445 \&\fIlibc.a\fR.
14446 .IP "\fB\-myellowknife\fR" 4
14447 .IX Item "-myellowknife"
14448 On embedded PowerPC systems, assume that the startup module is called
14449 \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
14450 \&\fIlibc.a\fR.
14451 .IP "\fB\-mvxworks\fR" 4
14452 .IX Item "-mvxworks"
14453 On System V.4 and embedded PowerPC systems, specify that you are
14454 compiling for a VxWorks system.
14455 .IP "\fB\-memb\fR" 4
14456 .IX Item "-memb"
14457 On embedded PowerPC systems, set the \fI\s-1PPC_EMB\s0\fR bit in the \s-1ELF\s0 flags
14458 header to indicate that \fBeabi\fR extended relocations are used.
14459 .IP "\fB\-meabi\fR" 4
14460 .IX Item "-meabi"
14461 .PD 0
14462 .IP "\fB\-mno\-eabi\fR" 4
14463 .IX Item "-mno-eabi"
14465 On System V.4 and embedded PowerPC systems do (do not) adhere to the
14466 Embedded Applications Binary Interface (eabi) which is a set of
14467 modifications to the System V.4 specifications.  Selecting \fB\-meabi\fR
14468 means that the stack is aligned to an 8 byte boundary, a function
14469 \&\f(CW\*(C`_\|_eabi\*(C'\fR is called to from \f(CW\*(C`main\*(C'\fR to set up the eabi
14470 environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
14471 \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas.  Selecting
14472 \&\fB\-mno\-eabi\fR means that the stack is aligned to a 16 byte boundary,
14473 do not call an initialization function from \f(CW\*(C`main\*(C'\fR, and the
14474 \&\fB\-msdata\fR option will only use \f(CW\*(C`r13\*(C'\fR to point to a single
14475 small data area.  The \fB\-meabi\fR option is on by default if you
14476 configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
14477 .IP "\fB\-msdata=eabi\fR" 4
14478 .IX Item "-msdata=eabi"
14479 On System V.4 and embedded PowerPC systems, put small initialized
14480 \&\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata2\fR section, which
14481 is pointed to by register \f(CW\*(C`r2\*(C'\fR.  Put small initialized
14482 non\-\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata\fR section,
14483 which is pointed to by register \f(CW\*(C`r13\*(C'\fR.  Put small uninitialized
14484 global and static data in the \fB.sbss\fR section, which is adjacent to
14485 the \fB.sdata\fR section.  The \fB\-msdata=eabi\fR option is
14486 incompatible with the \fB\-mrelocatable\fR option.  The
14487 \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
14488 .IP "\fB\-msdata=sysv\fR" 4
14489 .IX Item "-msdata=sysv"
14490 On System V.4 and embedded PowerPC systems, put small global and static
14491 data in the \fB.sdata\fR section, which is pointed to by register
14492 \&\f(CW\*(C`r13\*(C'\fR.  Put small uninitialized global and static data in the
14493 \&\fB.sbss\fR section, which is adjacent to the \fB.sdata\fR section.
14494 The \fB\-msdata=sysv\fR option is incompatible with the
14495 \&\fB\-mrelocatable\fR option.
14496 .IP "\fB\-msdata=default\fR" 4
14497 .IX Item "-msdata=default"
14498 .PD 0
14499 .IP "\fB\-msdata\fR" 4
14500 .IX Item "-msdata"
14502 On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
14503 compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
14504 same as \fB\-msdata=sysv\fR.
14505 .IP "\fB\-msdata=data\fR" 4
14506 .IX Item "-msdata=data"
14507 On System V.4 and embedded PowerPC systems, put small global
14508 data in the \fB.sdata\fR section.  Put small uninitialized global
14509 data in the \fB.sbss\fR section.  Do not use register \f(CW\*(C`r13\*(C'\fR
14510 to address small data however.  This is the default behavior unless
14511 other \fB\-msdata\fR options are used.
14512 .IP "\fB\-msdata=none\fR" 4
14513 .IX Item "-msdata=none"
14514 .PD 0
14515 .IP "\fB\-mno\-sdata\fR" 4
14516 .IX Item "-mno-sdata"
14518 On embedded PowerPC systems, put all initialized global and static data
14519 in the \fB.data\fR section, and all uninitialized data in the
14520 \&\fB.bss\fR section.
14521 .IP "\fB\-G\fR \fInum\fR" 4
14522 .IX Item "-G num"
14523 On embedded PowerPC systems, put global and static items less than or
14524 equal to \fInum\fR bytes into the small data or bss sections instead of
14525 the normal data or bss section.  By default, \fInum\fR is 8.  The
14526 \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
14527 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
14528 .IP "\fB\-mregnames\fR" 4
14529 .IX Item "-mregnames"
14530 .PD 0
14531 .IP "\fB\-mno\-regnames\fR" 4
14532 .IX Item "-mno-regnames"
14534 On System V.4 and embedded PowerPC systems do (do not) emit register
14535 names in the assembly language output using symbolic forms.
14536 .IP "\fB\-mlongcall\fR" 4
14537 .IX Item "-mlongcall"
14538 .PD 0
14539 .IP "\fB\-mno\-longcall\fR" 4
14540 .IX Item "-mno-longcall"
14542 By default assume that all calls are far away so that a longer more
14543 expensive calling sequence is required.  This is required for calls
14544 further than 32 megabytes (33,554,432 bytes) from the current location.
14545 A short call will be generated if the compiler knows
14546 the call cannot be that far away.  This setting can be overridden by
14547 the \f(CW\*(C`shortcall\*(C'\fR function attribute, or by \f(CW\*(C`#pragma
14548 longcall(0)\*(C'\fR.
14550 Some linkers are capable of detecting out-of-range calls and generating
14551 glue code on the fly.  On these systems, long calls are unnecessary and
14552 generate slower code.  As of this writing, the \s-1AIX\s0 linker can do this,
14553 as can the \s-1GNU\s0 linker for PowerPC/64.  It is planned to add this feature
14554 to the \s-1GNU\s0 linker for 32\-bit PowerPC systems as well.
14556 On Darwin/PPC systems, \f(CW\*(C`#pragma longcall\*(C'\fR will generate \*(L"jbsr
14557 callee, L42\*(R", plus a \*(L"branch island\*(R" (glue code).  The two target
14558 addresses represent the callee and the \*(L"branch island\*(R".  The
14559 Darwin/PPC linker will prefer the first address and generate a \*(L"bl
14560 callee\*(R" if the \s-1PPC\s0 \*(L"bl\*(R" instruction will reach the callee directly;
14561 otherwise, the linker will generate \*(L"bl L42\*(R" to call the \*(L"branch
14562 island\*(R".  The \*(L"branch island\*(R" is appended to the body of the
14563 calling function; it computes the full 32\-bit address of the callee
14564 and jumps to it.
14566 On Mach-O (Darwin) systems, this option directs the compiler emit to
14567 the glue for every direct call, and the Darwin linker decides whether
14568 to use or discard it.
14570 In the future, we may cause \s-1GCC\s0 to ignore all longcall specifications
14571 when the linker is known to generate glue.
14572 .IP "\fB\-mtls\-markers\fR" 4
14573 .IX Item "-mtls-markers"
14574 .PD 0
14575 .IP "\fB\-mno\-tls\-markers\fR" 4
14576 .IX Item "-mno-tls-markers"
14578 Mark (do not mark) calls to \f(CW\*(C`_\|_tls_get_addr\*(C'\fR with a relocation
14579 specifying the function argument.  The relocation allows ld to
14580 reliably associate function call with argument setup instructions for
14581 \&\s-1TLS\s0 optimization, which in turn allows gcc to better schedule the
14582 sequence.
14583 .IP "\fB\-pthread\fR" 4
14584 .IX Item "-pthread"
14585 Adds support for multithreading with the \fIpthreads\fR library.
14586 This option sets flags for both the preprocessor and linker.
14588 \fI\s-1RX\s0 Options\fR
14589 .IX Subsection "RX Options"
14591 These command line options are defined for \s-1RX\s0 targets:
14592 .IP "\fB\-m64bit\-doubles\fR" 4
14593 .IX Item "-m64bit-doubles"
14594 .PD 0
14595 .IP "\fB\-m32bit\-doubles\fR" 4
14596 .IX Item "-m32bit-doubles"
14598 Make the \f(CW\*(C`double\*(C'\fR data type be 64\-bits (\fB\-m64bit\-doubles\fR)
14599 or 32\-bits (\fB\-m32bit\-doubles\fR) in size.  The default is
14600 \&\fB\-m32bit\-doubles\fR.  \fINote\fR \s-1RX\s0 floating point hardware only
14601 works on 32\-bit values, which is why the default is
14602 \&\fB\-m32bit\-doubles\fR.
14603 .IP "\fB\-fpu\fR" 4
14604 .IX Item "-fpu"
14605 .PD 0
14606 .IP "\fB\-nofpu\fR" 4
14607 .IX Item "-nofpu"
14609 Enables (\fB\-fpu\fR) or disables (\fB\-nofpu\fR) the use of \s-1RX\s0
14610 floating point hardware.  The default is enabled for the \fI\s-1RX600\s0\fR
14611 series and disabled for the \fI\s-1RX200\s0\fR series.
14613 Floating point instructions will only be generated for 32\-bit floating
14614 point values however, so if the \fB\-m64bit\-doubles\fR option is in
14615 use then the \s-1FPU\s0 hardware will not be used for doubles.
14617 \&\fINote\fR If the \fB\-fpu\fR option is enabled then
14618 \&\fB\-funsafe\-math\-optimizations\fR is also enabled automatically.
14619 This is because the \s-1RX\s0 \s-1FPU\s0 instructions are themselves unsafe.
14620 .IP "\fB\-mcpu=\fR\fIname\fR" 4
14621 .IX Item "-mcpu=name"
14622 .PD 0
14623 .IP "\fB\-patch=\fR\fIname\fR" 4
14624 .IX Item "-patch=name"
14626 Selects the type of \s-1RX\s0 \s-1CPU\s0 to be targeted.  Currently three types are
14627 supported, the generic \fI\s-1RX600\s0\fR and \fI\s-1RX200\s0\fR series hardware and
14628 the specific \fI\s-1RX610\s0\fR \s-1CPU\s0.  The default is \fI\s-1RX600\s0\fR.
14630 The only difference between \fI\s-1RX600\s0\fR and \fI\s-1RX610\s0\fR is that the
14631 \&\fI\s-1RX610\s0\fR does not support the \f(CW\*(C`MVTIPL\*(C'\fR instruction.
14633 The \fI\s-1RX200\s0\fR series does not have a hardware floating point unit
14634 and so \fB\-nofpu\fR is enabled by default when this type is
14635 selected.
14636 .IP "\fB\-mbig\-endian\-data\fR" 4
14637 .IX Item "-mbig-endian-data"
14638 .PD 0
14639 .IP "\fB\-mlittle\-endian\-data\fR" 4
14640 .IX Item "-mlittle-endian-data"
14642 Store data (but not code) in the big-endian format.  The default is
14643 \&\fB\-mlittle\-endian\-data\fR, ie to store data in the little endian
14644 format.
14645 .IP "\fB\-msmall\-data\-limit=\fR\fIN\fR" 4
14646 .IX Item "-msmall-data-limit=N"
14647 Specifies the maximum size in bytes of global and static variables
14648 which can be placed into the small data area.  Using the small data
14649 area can lead to smaller and faster code, but the size of area is
14650 limited and it is up to the programmer to ensure that the area does
14651 not overflow.  Also when the small data area is used one of the \s-1RX\s0's
14652 registers (\f(CW\*(C`r13\*(C'\fR) is reserved for use pointing to this area, so
14653 it is no longer available for use by the compiler.  This could result
14654 in slower and/or larger code if variables which once could have been
14655 held in \f(CW\*(C`r13\*(C'\fR are now pushed onto the stack.
14657 Note, common variables (variables which have not been initialised) and
14658 constants are not placed into the small data area as they are assigned
14659 to other sections in the output executable.
14661 The default value is zero, which disables this feature.  Note, this
14662 feature is not enabled by default with higher optimization levels
14663 (\fB\-O2\fR etc) because of the potentially detrimental effects of
14664 reserving register \f(CW\*(C`r13\*(C'\fR.  It is up to the programmer to
14665 experiment and discover whether this feature is of benefit to their
14666 program.
14667 .IP "\fB\-msim\fR" 4
14668 .IX Item "-msim"
14669 .PD 0
14670 .IP "\fB\-mno\-sim\fR" 4
14671 .IX Item "-mno-sim"
14673 Use the simulator runtime.  The default is to use the libgloss board
14674 specific runtime.
14675 .IP "\fB\-mas100\-syntax\fR" 4
14676 .IX Item "-mas100-syntax"
14677 .PD 0
14678 .IP "\fB\-mno\-as100\-syntax\fR" 4
14679 .IX Item "-mno-as100-syntax"
14681 When generating assembler output use a syntax that is compatible with
14682 Renesas's \s-1AS100\s0 assembler.  This syntax can also be handled by the \s-1GAS\s0
14683 assembler but it has some restrictions so generating it is not the
14684 default option.
14685 .IP "\fB\-mmax\-constant\-size=\fR\fIN\fR" 4
14686 .IX Item "-mmax-constant-size=N"
14687 Specifies the maximum size, in bytes, of a constant that can be used as
14688 an operand in a \s-1RX\s0 instruction.  Although the \s-1RX\s0 instruction set does
14689 allow constants of up to 4 bytes in length to be used in instructions,
14690 a longer value equates to a longer instruction.  Thus in some
14691 circumstances it can be beneficial to restrict the size of constants
14692 that are used in instructions.  Constants that are too big are instead
14693 placed into a constant pool and referenced via register indirection.
14695 The value \fIN\fR can be between 0 and 4.  A value of 0 (the default)
14696 or 4 means that constants of any size are allowed.
14697 .IP "\fB\-mrelax\fR" 4
14698 .IX Item "-mrelax"
14699 Enable linker relaxation.  Linker relaxation is a process whereby the
14700 linker will attempt to reduce the size of a program by finding shorter
14701 versions of various instructions.  Disabled by default.
14702 .IP "\fB\-mint\-register=\fR\fIN\fR" 4
14703 .IX Item "-mint-register=N"
14704 Specify the number of registers to reserve for fast interrupt handler
14705 functions.  The value \fIN\fR can be between 0 and 4.  A value of 1
14706 means that register \f(CW\*(C`r13\*(C'\fR will be reserved for the exclusive use
14707 of fast interrupt handlers.  A value of 2 reserves \f(CW\*(C`r13\*(C'\fR and
14708 \&\f(CW\*(C`r12\*(C'\fR.  A value of 3 reserves \f(CW\*(C`r13\*(C'\fR, \f(CW\*(C`r12\*(C'\fR and
14709 \&\f(CW\*(C`r11\*(C'\fR, and a value of 4 reserves \f(CW\*(C`r13\*(C'\fR through \f(CW\*(C`r10\*(C'\fR.
14710 A value of 0, the default, does not reserve any registers.
14711 .IP "\fB\-msave\-acc\-in\-interrupts\fR" 4
14712 .IX Item "-msave-acc-in-interrupts"
14713 Specifies that interrupt handler functions should preserve the
14714 accumulator register.  This is only necessary if normal code might use
14715 the accumulator register, for example because it performs 64\-bit
14716 multiplications.  The default is to ignore the accumulator as this
14717 makes the interrupt handlers faster.
14719 \&\fINote:\fR The generic \s-1GCC\s0 command line \fB\-ffixed\-\fR\fIreg\fR
14720 has special significance to the \s-1RX\s0 port when used with the
14721 \&\f(CW\*(C`interrupt\*(C'\fR function attribute.  This attribute indicates a
14722 function intended to process fast interrupts.  \s-1GCC\s0 will will ensure
14723 that it only uses the registers \f(CW\*(C`r10\*(C'\fR, \f(CW\*(C`r11\*(C'\fR, \f(CW\*(C`r12\*(C'\fR
14724 and/or \f(CW\*(C`r13\*(C'\fR and only provided that the normal use of the
14725 corresponding registers have been restricted via the
14726 \&\fB\-ffixed\-\fR\fIreg\fR or \fB\-mint\-register\fR command line
14727 options.
14729 \fIS/390 and zSeries Options\fR
14730 .IX Subsection "S/390 and zSeries Options"
14732 These are the \fB\-m\fR options defined for the S/390 and zSeries architecture.
14733 .IP "\fB\-mhard\-float\fR" 4
14734 .IX Item "-mhard-float"
14735 .PD 0
14736 .IP "\fB\-msoft\-float\fR" 4
14737 .IX Item "-msoft-float"
14739 Use (do not use) the hardware floating-point instructions and registers
14740 for floating-point operations.  When \fB\-msoft\-float\fR is specified,
14741 functions in \fIlibgcc.a\fR will be used to perform floating-point
14742 operations.  When \fB\-mhard\-float\fR is specified, the compiler
14743 generates \s-1IEEE\s0 floating-point instructions.  This is the default.
14744 .IP "\fB\-mhard\-dfp\fR" 4
14745 .IX Item "-mhard-dfp"
14746 .PD 0
14747 .IP "\fB\-mno\-hard\-dfp\fR" 4
14748 .IX Item "-mno-hard-dfp"
14750 Use (do not use) the hardware decimal-floating-point instructions for
14751 decimal-floating-point operations.  When \fB\-mno\-hard\-dfp\fR is
14752 specified, functions in \fIlibgcc.a\fR will be used to perform
14753 decimal-floating-point operations.  When \fB\-mhard\-dfp\fR is
14754 specified, the compiler generates decimal-floating-point hardware
14755 instructions.  This is the default for \fB\-march=z9\-ec\fR or higher.
14756 .IP "\fB\-mlong\-double\-64\fR" 4
14757 .IX Item "-mlong-double-64"
14758 .PD 0
14759 .IP "\fB\-mlong\-double\-128\fR" 4
14760 .IX Item "-mlong-double-128"
14762 These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
14763 of 64bit makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
14764 type. This is the default.
14765 .IP "\fB\-mbackchain\fR" 4
14766 .IX Item "-mbackchain"
14767 .PD 0
14768 .IP "\fB\-mno\-backchain\fR" 4
14769 .IX Item "-mno-backchain"
14771 Store (do not store) the address of the caller's frame as backchain pointer
14772 into the callee's stack frame.
14773 A backchain may be needed to allow debugging using tools that do not understand
14774 \&\s-1DWARF\-2\s0 call frame information.
14775 When \fB\-mno\-packed\-stack\fR is in effect, the backchain pointer is stored
14776 at the bottom of the stack frame; when \fB\-mpacked\-stack\fR is in effect,
14777 the backchain is placed into the topmost word of the 96/160 byte register
14778 save area.
14780 In general, code compiled with \fB\-mbackchain\fR is call-compatible with
14781 code compiled with \fB\-mmo\-backchain\fR; however, use of the backchain
14782 for debugging purposes usually requires that the whole binary is built with
14783 \&\fB\-mbackchain\fR.  Note that the combination of \fB\-mbackchain\fR,
14784 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
14785 to build a linux kernel use \fB\-msoft\-float\fR.
14787 The default is to not maintain the backchain.
14788 .IP "\fB\-mpacked\-stack\fR" 4
14789 .IX Item "-mpacked-stack"
14790 .PD 0
14791 .IP "\fB\-mno\-packed\-stack\fR" 4
14792 .IX Item "-mno-packed-stack"
14794 Use (do not use) the packed stack layout.  When \fB\-mno\-packed\-stack\fR is
14795 specified, the compiler uses the all fields of the 96/160 byte register save
14796 area only for their default purpose; unused fields still take up stack space.
14797 When \fB\-mpacked\-stack\fR is specified, register save slots are densely
14798 packed at the top of the register save area; unused space is reused for other
14799 purposes, allowing for more efficient use of the available stack space.
14800 However, when \fB\-mbackchain\fR is also in effect, the topmost word of
14801 the save area is always used to store the backchain, and the return address
14802 register is always saved two words below the backchain.
14804 As long as the stack frame backchain is not used, code generated with
14805 \&\fB\-mpacked\-stack\fR is call-compatible with code generated with
14806 \&\fB\-mno\-packed\-stack\fR.  Note that some non-FSF releases of \s-1GCC\s0 2.95 for
14807 S/390 or zSeries generated code that uses the stack frame backchain at run
14808 time, not just for debugging purposes.  Such code is not call-compatible
14809 with code compiled with \fB\-mpacked\-stack\fR.  Also, note that the
14810 combination of \fB\-mbackchain\fR,
14811 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
14812 to build a linux kernel use \fB\-msoft\-float\fR.
14814 The default is to not use the packed stack layout.
14815 .IP "\fB\-msmall\-exec\fR" 4
14816 .IX Item "-msmall-exec"
14817 .PD 0
14818 .IP "\fB\-mno\-small\-exec\fR" 4
14819 .IX Item "-mno-small-exec"
14821 Generate (or do not generate) code using the \f(CW\*(C`bras\*(C'\fR instruction
14822 to do subroutine calls.
14823 This only works reliably if the total executable size does not
14824 exceed 64k.  The default is to use the \f(CW\*(C`basr\*(C'\fR instruction instead,
14825 which does not have this limitation.
14826 .IP "\fB\-m64\fR" 4
14827 .IX Item "-m64"
14828 .PD 0
14829 .IP "\fB\-m31\fR" 4
14830 .IX Item "-m31"
14832 When \fB\-m31\fR is specified, generate code compliant to the
14833 GNU/Linux for S/390 \s-1ABI\s0.  When \fB\-m64\fR is specified, generate
14834 code compliant to the GNU/Linux for zSeries \s-1ABI\s0.  This allows \s-1GCC\s0 in
14835 particular to generate 64\-bit instructions.  For the \fBs390\fR
14836 targets, the default is \fB\-m31\fR, while the \fBs390x\fR
14837 targets default to \fB\-m64\fR.
14838 .IP "\fB\-mzarch\fR" 4
14839 .IX Item "-mzarch"
14840 .PD 0
14841 .IP "\fB\-mesa\fR" 4
14842 .IX Item "-mesa"
14844 When \fB\-mzarch\fR is specified, generate code using the
14845 instructions available on z/Architecture.
14846 When \fB\-mesa\fR is specified, generate code using the
14847 instructions available on \s-1ESA/390\s0.  Note that \fB\-mesa\fR is
14848 not possible with \fB\-m64\fR.
14849 When generating code compliant to the GNU/Linux for S/390 \s-1ABI\s0,
14850 the default is \fB\-mesa\fR.  When generating code compliant
14851 to the GNU/Linux for zSeries \s-1ABI\s0, the default is \fB\-mzarch\fR.
14852 .IP "\fB\-mmvcle\fR" 4
14853 .IX Item "-mmvcle"
14854 .PD 0
14855 .IP "\fB\-mno\-mvcle\fR" 4
14856 .IX Item "-mno-mvcle"
14858 Generate (or do not generate) code using the \f(CW\*(C`mvcle\*(C'\fR instruction
14859 to perform block moves.  When \fB\-mno\-mvcle\fR is specified,
14860 use a \f(CW\*(C`mvc\*(C'\fR loop instead.  This is the default unless optimizing for
14861 size.
14862 .IP "\fB\-mdebug\fR" 4
14863 .IX Item "-mdebug"
14864 .PD 0
14865 .IP "\fB\-mno\-debug\fR" 4
14866 .IX Item "-mno-debug"
14868 Print (or do not print) additional debug information when compiling.
14869 The default is to not print debug information.
14870 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
14871 .IX Item "-march=cpu-type"
14872 Generate code that will run on \fIcpu-type\fR, which is the name of a system
14873 representing a certain processor type.  Possible values for
14874 \&\fIcpu-type\fR are \fBg5\fR, \fBg6\fR, \fBz900\fR, \fBz990\fR,
14875 \&\fBz9\-109\fR, \fBz9\-ec\fR and \fBz10\fR.
14876 When generating code using the instructions available on z/Architecture,
14877 the default is \fB\-march=z900\fR.  Otherwise, the default is
14878 \&\fB\-march=g5\fR.
14879 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
14880 .IX Item "-mtune=cpu-type"
14881 Tune to \fIcpu-type\fR everything applicable about the generated code,
14882 except for the \s-1ABI\s0 and the set of available instructions.
14883 The list of \fIcpu-type\fR values is the same as for \fB\-march\fR.
14884 The default is the value used for \fB\-march\fR.
14885 .IP "\fB\-mtpf\-trace\fR" 4
14886 .IX Item "-mtpf-trace"
14887 .PD 0
14888 .IP "\fB\-mno\-tpf\-trace\fR" 4
14889 .IX Item "-mno-tpf-trace"
14891 Generate code that adds (does not add) in \s-1TPF\s0 \s-1OS\s0 specific branches to trace
14892 routines in the operating system.  This option is off by default, even
14893 when compiling for the \s-1TPF\s0 \s-1OS\s0.
14894 .IP "\fB\-mfused\-madd\fR" 4
14895 .IX Item "-mfused-madd"
14896 .PD 0
14897 .IP "\fB\-mno\-fused\-madd\fR" 4
14898 .IX Item "-mno-fused-madd"
14900 Generate code that uses (does not use) the floating point multiply and
14901 accumulate instructions.  These instructions are generated by default if
14902 hardware floating point is used.
14903 .IP "\fB\-mwarn\-framesize=\fR\fIframesize\fR" 4
14904 .IX Item "-mwarn-framesize=framesize"
14905 Emit a warning if the current function exceeds the given frame size.  Because
14906 this is a compile time check it doesn't need to be a real problem when the program
14907 runs.  It is intended to identify functions which most probably cause
14908 a stack overflow.  It is useful to be used in an environment with limited stack
14909 size e.g. the linux kernel.
14910 .IP "\fB\-mwarn\-dynamicstack\fR" 4
14911 .IX Item "-mwarn-dynamicstack"
14912 Emit a warning if the function calls alloca or uses dynamically
14913 sized arrays.  This is generally a bad idea with a limited stack size.
14914 .IP "\fB\-mstack\-guard=\fR\fIstack-guard\fR" 4
14915 .IX Item "-mstack-guard=stack-guard"
14916 .PD 0
14917 .IP "\fB\-mstack\-size=\fR\fIstack-size\fR" 4
14918 .IX Item "-mstack-size=stack-size"
14920 If these options are provided the s390 back end emits additional instructions in
14921 the function prologue which trigger a trap if the stack size is \fIstack-guard\fR
14922 bytes above the \fIstack-size\fR (remember that the stack on s390 grows downward).
14923 If the \fIstack-guard\fR option is omitted the smallest power of 2 larger than
14924 the frame size of the compiled function is chosen.
14925 These options are intended to be used to help debugging stack overflow problems.
14926 The additionally emitted code causes only little overhead and hence can also be
14927 used in production like systems without greater performance degradation.  The given
14928 values have to be exact powers of 2 and \fIstack-size\fR has to be greater than
14929 \&\fIstack-guard\fR without exceeding 64k.
14930 In order to be efficient the extra code makes the assumption that the stack starts
14931 at an address aligned to the value given by \fIstack-size\fR.
14932 The \fIstack-guard\fR option can only be used in conjunction with \fIstack-size\fR.
14934 \fIScore Options\fR
14935 .IX Subsection "Score Options"
14937 These options are defined for Score implementations:
14938 .IP "\fB\-meb\fR" 4
14939 .IX Item "-meb"
14940 Compile code for big endian mode.  This is the default.
14941 .IP "\fB\-mel\fR" 4
14942 .IX Item "-mel"
14943 Compile code for little endian mode.
14944 .IP "\fB\-mnhwloop\fR" 4
14945 .IX Item "-mnhwloop"
14946 Disable generate bcnz instruction.
14947 .IP "\fB\-muls\fR" 4
14948 .IX Item "-muls"
14949 Enable generate unaligned load and store instruction.
14950 .IP "\fB\-mmac\fR" 4
14951 .IX Item "-mmac"
14952 Enable the use of multiply-accumulate instructions. Disabled by default.
14953 .IP "\fB\-mscore5\fR" 4
14954 .IX Item "-mscore5"
14955 Specify the \s-1SCORE5\s0 as the target architecture.
14956 .IP "\fB\-mscore5u\fR" 4
14957 .IX Item "-mscore5u"
14958 Specify the \s-1SCORE5U\s0 of the target architecture.
14959 .IP "\fB\-mscore7\fR" 4
14960 .IX Item "-mscore7"
14961 Specify the \s-1SCORE7\s0 as the target architecture. This is the default.
14962 .IP "\fB\-mscore7d\fR" 4
14963 .IX Item "-mscore7d"
14964 Specify the \s-1SCORE7D\s0 as the target architecture.
14966 \fI\s-1SH\s0 Options\fR
14967 .IX Subsection "SH Options"
14969 These \fB\-m\fR options are defined for the \s-1SH\s0 implementations:
14970 .IP "\fB\-m1\fR" 4
14971 .IX Item "-m1"
14972 Generate code for the \s-1SH1\s0.
14973 .IP "\fB\-m2\fR" 4
14974 .IX Item "-m2"
14975 Generate code for the \s-1SH2\s0.
14976 .IP "\fB\-m2e\fR" 4
14977 .IX Item "-m2e"
14978 Generate code for the SH2e.
14979 .IP "\fB\-m2a\-nofpu\fR" 4
14980 .IX Item "-m2a-nofpu"
14981 Generate code for the SH2a without \s-1FPU\s0, or for a SH2a\-FPU in such a way
14982 that the floating-point unit is not used.
14983 .IP "\fB\-m2a\-single\-only\fR" 4
14984 .IX Item "-m2a-single-only"
14985 Generate code for the SH2a\-FPU, in such a way that no double-precision
14986 floating point operations are used.
14987 .IP "\fB\-m2a\-single\fR" 4
14988 .IX Item "-m2a-single"
14989 Generate code for the SH2a\-FPU assuming the floating-point unit is in
14990 single-precision mode by default.
14991 .IP "\fB\-m2a\fR" 4
14992 .IX Item "-m2a"
14993 Generate code for the SH2a\-FPU assuming the floating-point unit is in
14994 double-precision mode by default.
14995 .IP "\fB\-m3\fR" 4
14996 .IX Item "-m3"
14997 Generate code for the \s-1SH3\s0.
14998 .IP "\fB\-m3e\fR" 4
14999 .IX Item "-m3e"
15000 Generate code for the SH3e.
15001 .IP "\fB\-m4\-nofpu\fR" 4
15002 .IX Item "-m4-nofpu"
15003 Generate code for the \s-1SH4\s0 without a floating-point unit.
15004 .IP "\fB\-m4\-single\-only\fR" 4
15005 .IX Item "-m4-single-only"
15006 Generate code for the \s-1SH4\s0 with a floating-point unit that only
15007 supports single-precision arithmetic.
15008 .IP "\fB\-m4\-single\fR" 4
15009 .IX Item "-m4-single"
15010 Generate code for the \s-1SH4\s0 assuming the floating-point unit is in
15011 single-precision mode by default.
15012 .IP "\fB\-m4\fR" 4
15013 .IX Item "-m4"
15014 Generate code for the \s-1SH4\s0.
15015 .IP "\fB\-m4a\-nofpu\fR" 4
15016 .IX Item "-m4a-nofpu"
15017 Generate code for the SH4al\-dsp, or for a SH4a in such a way that the
15018 floating-point unit is not used.
15019 .IP "\fB\-m4a\-single\-only\fR" 4
15020 .IX Item "-m4a-single-only"
15021 Generate code for the SH4a, in such a way that no double-precision
15022 floating point operations are used.
15023 .IP "\fB\-m4a\-single\fR" 4
15024 .IX Item "-m4a-single"
15025 Generate code for the SH4a assuming the floating-point unit is in
15026 single-precision mode by default.
15027 .IP "\fB\-m4a\fR" 4
15028 .IX Item "-m4a"
15029 Generate code for the SH4a.
15030 .IP "\fB\-m4al\fR" 4
15031 .IX Item "-m4al"
15032 Same as \fB\-m4a\-nofpu\fR, except that it implicitly passes
15033 \&\fB\-dsp\fR to the assembler.  \s-1GCC\s0 doesn't generate any \s-1DSP\s0
15034 instructions at the moment.
15035 .IP "\fB\-mb\fR" 4
15036 .IX Item "-mb"
15037 Compile code for the processor in big endian mode.
15038 .IP "\fB\-ml\fR" 4
15039 .IX Item "-ml"
15040 Compile code for the processor in little endian mode.
15041 .IP "\fB\-mdalign\fR" 4
15042 .IX Item "-mdalign"
15043 Align doubles at 64\-bit boundaries.  Note that this changes the calling
15044 conventions, and thus some functions from the standard C library will
15045 not work unless you recompile it first with \fB\-mdalign\fR.
15046 .IP "\fB\-mrelax\fR" 4
15047 .IX Item "-mrelax"
15048 Shorten some address references at link time, when possible; uses the
15049 linker option \fB\-relax\fR.
15050 .IP "\fB\-mbigtable\fR" 4
15051 .IX Item "-mbigtable"
15052 Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables.  The default is to use
15053 16\-bit offsets.
15054 .IP "\fB\-mbitops\fR" 4
15055 .IX Item "-mbitops"
15056 Enable the use of bit manipulation instructions on \s-1SH2A\s0.
15057 .IP "\fB\-mfmovd\fR" 4
15058 .IX Item "-mfmovd"
15059 Enable the use of the instruction \f(CW\*(C`fmovd\*(C'\fR.  Check \fB\-mdalign\fR for
15060 alignment constraints.
15061 .IP "\fB\-mhitachi\fR" 4
15062 .IX Item "-mhitachi"
15063 Comply with the calling conventions defined by Renesas.
15064 .IP "\fB\-mrenesas\fR" 4
15065 .IX Item "-mrenesas"
15066 Comply with the calling conventions defined by Renesas.
15067 .IP "\fB\-mno\-renesas\fR" 4
15068 .IX Item "-mno-renesas"
15069 Comply with the calling conventions defined for \s-1GCC\s0 before the Renesas
15070 conventions were available.  This option is the default for all
15071 targets of the \s-1SH\s0 toolchain except for \fBsh-symbianelf\fR.
15072 .IP "\fB\-mnomacsave\fR" 4
15073 .IX Item "-mnomacsave"
15074 Mark the \f(CW\*(C`MAC\*(C'\fR register as call\-clobbered, even if
15075 \&\fB\-mhitachi\fR is given.
15076 .IP "\fB\-mieee\fR" 4
15077 .IX Item "-mieee"
15078 Increase IEEE-compliance of floating-point code.
15079 At the moment, this is equivalent to \fB\-fno\-finite\-math\-only\fR.
15080 When generating 16 bit \s-1SH\s0 opcodes, getting IEEE-conforming results for
15081 comparisons of NANs / infinities incurs extra overhead in every
15082 floating point comparison, therefore the default is set to
15083 \&\fB\-ffinite\-math\-only\fR.
15084 .IP "\fB\-minline\-ic_invalidate\fR" 4
15085 .IX Item "-minline-ic_invalidate"
15086 Inline code to invalidate instruction cache entries after setting up
15087 nested function trampolines.
15088 This option has no effect if \-musermode is in effect and the selected
15089 code generation option (e.g. \-m4) does not allow the use of the icbi
15090 instruction.
15091 If the selected code generation option does not allow the use of the icbi
15092 instruction, and \-musermode is not in effect, the inlined code will
15093 manipulate the instruction cache address array directly with an associative
15094 write.  This not only requires privileged mode, but it will also
15095 fail if the cache line had been mapped via the \s-1TLB\s0 and has become unmapped.
15096 .IP "\fB\-misize\fR" 4
15097 .IX Item "-misize"
15098 Dump instruction size and location in the assembly code.
15099 .IP "\fB\-mpadstruct\fR" 4
15100 .IX Item "-mpadstruct"
15101 This option is deprecated.  It pads structures to multiple of 4 bytes,
15102 which is incompatible with the \s-1SH\s0 \s-1ABI\s0.
15103 .IP "\fB\-mspace\fR" 4
15104 .IX Item "-mspace"
15105 Optimize for space instead of speed.  Implied by \fB\-Os\fR.
15106 .IP "\fB\-mprefergot\fR" 4
15107 .IX Item "-mprefergot"
15108 When generating position-independent code, emit function calls using
15109 the Global Offset Table instead of the Procedure Linkage Table.
15110 .IP "\fB\-musermode\fR" 4
15111 .IX Item "-musermode"
15112 Don't generate privileged mode only code; implies \-mno\-inline\-ic_invalidate
15113 if the inlined code would not work in user mode.
15114 This is the default when the target is \f(CW\*(C`sh\-*\-linux*\*(C'\fR.
15115 .IP "\fB\-multcost=\fR\fInumber\fR" 4
15116 .IX Item "-multcost=number"
15117 Set the cost to assume for a multiply insn.
15118 .IP "\fB\-mdiv=\fR\fIstrategy\fR" 4
15119 .IX Item "-mdiv=strategy"
15120 Set the division strategy to use for SHmedia code.  \fIstrategy\fR must be
15121 one of: call, call2, fp, inv, inv:minlat, inv20u, inv20l, inv:call,
15122 inv:call2, inv:fp .
15123 \&\*(L"fp\*(R" performs the operation in floating point.  This has a very high latency,
15124 but needs only a few instructions, so it might be a good choice if
15125 your code has enough easily exploitable \s-1ILP\s0 to allow the compiler to
15126 schedule the floating point instructions together with other instructions.
15127 Division by zero causes a floating point exception.
15128 \&\*(L"inv\*(R" uses integer operations to calculate the inverse of the divisor,
15129 and then multiplies the dividend with the inverse.  This strategy allows
15130 cse and hoisting of the inverse calculation.  Division by zero calculates
15131 an unspecified result, but does not trap.
15132 \&\*(L"inv:minlat\*(R" is a variant of \*(L"inv\*(R" where if no cse / hoisting opportunities
15133 have been found, or if the entire operation has been hoisted to the same
15134 place, the last stages of the inverse calculation are intertwined with the
15135 final multiply to reduce the overall latency, at the expense of using a few
15136 more instructions, and thus offering fewer scheduling opportunities with
15137 other code.
15138 \&\*(L"call\*(R" calls a library function that usually implements the inv:minlat
15139 strategy.
15140 This gives high code density for m5\-*media\-nofpu compilations.
15141 \&\*(L"call2\*(R" uses a different entry point of the same library function, where it
15142 assumes that a pointer to a lookup table has already been set up, which
15143 exposes the pointer load to cse / code hoisting optimizations.
15144 \&\*(L"inv:call\*(R", \*(L"inv:call2\*(R" and \*(L"inv:fp\*(R" all use the \*(L"inv\*(R" algorithm for initial
15145 code generation, but if the code stays unoptimized, revert to the \*(L"call\*(R",
15146 \&\*(L"call2\*(R", or \*(L"fp\*(R" strategies, respectively.  Note that the
15147 potentially-trapping side effect of division by zero is carried by a
15148 separate instruction, so it is possible that all the integer instructions
15149 are hoisted out, but the marker for the side effect stays where it is.
15150 A recombination to fp operations or a call is not possible in that case.
15151 \&\*(L"inv20u\*(R" and \*(L"inv20l\*(R" are variants of the \*(L"inv:minlat\*(R" strategy.  In the case
15152 that the inverse calculation was nor separated from the multiply, they speed
15153 up division where the dividend fits into 20 bits (plus sign where applicable),
15154 by inserting a test to skip a number of operations in this case; this test
15155 slows down the case of larger dividends.  inv20u assumes the case of a such
15156 a small dividend to be unlikely, and inv20l assumes it to be likely.
15157 .IP "\fB\-mdivsi3_libfunc=\fR\fIname\fR" 4
15158 .IX Item "-mdivsi3_libfunc=name"
15159 Set the name of the library function used for 32 bit signed division to
15160 \&\fIname\fR.  This only affect the name used in the call and inv:call
15161 division strategies, and the compiler will still expect the same
15162 sets of input/output/clobbered registers as if this option was not present.
15163 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
15164 .IX Item "-mfixed-range=register-range"
15165 Generate code treating the given register range as fixed registers.
15166 A fixed register is one that the register allocator can not use.  This is
15167 useful when compiling kernel code.  A register range is specified as
15168 two registers separated by a dash.  Multiple register ranges can be
15169 specified separated by a comma.
15170 .IP "\fB\-madjust\-unroll\fR" 4
15171 .IX Item "-madjust-unroll"
15172 Throttle unrolling to avoid thrashing target registers.
15173 This option only has an effect if the gcc code base supports the
15174 \&\s-1TARGET_ADJUST_UNROLL_MAX\s0 target hook.
15175 .IP "\fB\-mindexed\-addressing\fR" 4
15176 .IX Item "-mindexed-addressing"
15177 Enable the use of the indexed addressing mode for SHmedia32/SHcompact.
15178 This is only safe if the hardware and/or \s-1OS\s0 implement 32 bit wrap-around
15179 semantics for the indexed addressing mode.  The architecture allows the
15180 implementation of processors with 64 bit \s-1MMU\s0, which the \s-1OS\s0 could use to
15181 get 32 bit addressing, but since no current hardware implementation supports
15182 this or any other way to make the indexed addressing mode safe to use in
15183 the 32 bit \s-1ABI\s0, the default is \-mno\-indexed\-addressing.
15184 .IP "\fB\-mgettrcost=\fR\fInumber\fR" 4
15185 .IX Item "-mgettrcost=number"
15186 Set the cost assumed for the gettr instruction to \fInumber\fR.
15187 The default is 2 if \fB\-mpt\-fixed\fR is in effect, 100 otherwise.
15188 .IP "\fB\-mpt\-fixed\fR" 4
15189 .IX Item "-mpt-fixed"
15190 Assume pt* instructions won't trap.  This will generally generate better
15191 scheduled code, but is unsafe on current hardware.  The current architecture
15192 definition says that ptabs and ptrel trap when the target anded with 3 is 3.
15193 This has the unintentional effect of making it unsafe to schedule ptabs /
15194 ptrel before a branch, or hoist it out of a loop.  For example,
15195 _\|_do_global_ctors, a part of libgcc that runs constructors at program
15196 startup, calls functions in a list which is delimited by \-1.  With the
15197 \&\-mpt\-fixed option, the ptabs will be done before testing against \-1.
15198 That means that all the constructors will be run a bit quicker, but when
15199 the loop comes to the end of the list, the program crashes because ptabs
15200 loads \-1 into a target register.  Since this option is unsafe for any
15201 hardware implementing the current architecture specification, the default
15202 is \-mno\-pt\-fixed.  Unless the user specifies a specific cost with
15203 \&\fB\-mgettrcost\fR, \-mno\-pt\-fixed also implies \fB\-mgettrcost=100\fR;
15204 this deters register allocation using target registers for storing
15205 ordinary integers.
15206 .IP "\fB\-minvalid\-symbols\fR" 4
15207 .IX Item "-minvalid-symbols"
15208 Assume symbols might be invalid.  Ordinary function symbols generated by
15209 the compiler will always be valid to load with movi/shori/ptabs or
15210 movi/shori/ptrel, but with assembler and/or linker tricks it is possible
15211 to generate symbols that will cause ptabs / ptrel to trap.
15212 This option is only meaningful when \fB\-mno\-pt\-fixed\fR is in effect.
15213 It will then prevent cross-basic-block cse, hoisting and most scheduling
15214 of symbol loads.  The default is \fB\-mno\-invalid\-symbols\fR.
15216 \fI\s-1SPARC\s0 Options\fR
15217 .IX Subsection "SPARC Options"
15219 These \fB\-m\fR options are supported on the \s-1SPARC:\s0
15220 .IP "\fB\-mno\-app\-regs\fR" 4
15221 .IX Item "-mno-app-regs"
15222 .PD 0
15223 .IP "\fB\-mapp\-regs\fR" 4
15224 .IX Item "-mapp-regs"
15226 Specify \fB\-mapp\-regs\fR to generate output using the global registers
15227 2 through 4, which the \s-1SPARC\s0 \s-1SVR4\s0 \s-1ABI\s0 reserves for applications.  This
15228 is the default.
15230 To be fully \s-1SVR4\s0 \s-1ABI\s0 compliant at the cost of some performance loss,
15231 specify \fB\-mno\-app\-regs\fR.  You should compile libraries and system
15232 software with this option.
15233 .IP "\fB\-mfpu\fR" 4
15234 .IX Item "-mfpu"
15235 .PD 0
15236 .IP "\fB\-mhard\-float\fR" 4
15237 .IX Item "-mhard-float"
15239 Generate output containing floating point instructions.  This is the
15240 default.
15241 .IP "\fB\-mno\-fpu\fR" 4
15242 .IX Item "-mno-fpu"
15243 .PD 0
15244 .IP "\fB\-msoft\-float\fR" 4
15245 .IX Item "-msoft-float"
15247 Generate output containing library calls for floating point.
15248 \&\fBWarning:\fR the requisite libraries are not available for all \s-1SPARC\s0
15249 targets.  Normally the facilities of the machine's usual C compiler are
15250 used, but this cannot be done directly in cross\-compilation.  You must make
15251 your own arrangements to provide suitable library functions for
15252 cross\-compilation.  The embedded targets \fBsparc\-*\-aout\fR and
15253 \&\fBsparclite\-*\-*\fR do provide software floating point support.
15255 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
15256 therefore, it is only useful if you compile \fIall\fR of a program with
15257 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
15258 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
15259 this to work.
15260 .IP "\fB\-mhard\-quad\-float\fR" 4
15261 .IX Item "-mhard-quad-float"
15262 Generate output containing quad-word (long double) floating point
15263 instructions.
15264 .IP "\fB\-msoft\-quad\-float\fR" 4
15265 .IX Item "-msoft-quad-float"
15266 Generate output containing library calls for quad-word (long double)
15267 floating point instructions.  The functions called are those specified
15268 in the \s-1SPARC\s0 \s-1ABI\s0.  This is the default.
15270 As of this writing, there are no \s-1SPARC\s0 implementations that have hardware
15271 support for the quad-word floating point instructions.  They all invoke
15272 a trap handler for one of these instructions, and then the trap handler
15273 emulates the effect of the instruction.  Because of the trap handler overhead,
15274 this is much slower than calling the \s-1ABI\s0 library routines.  Thus the
15275 \&\fB\-msoft\-quad\-float\fR option is the default.
15276 .IP "\fB\-mno\-unaligned\-doubles\fR" 4
15277 .IX Item "-mno-unaligned-doubles"
15278 .PD 0
15279 .IP "\fB\-munaligned\-doubles\fR" 4
15280 .IX Item "-munaligned-doubles"
15282 Assume that doubles have 8 byte alignment.  This is the default.
15284 With \fB\-munaligned\-doubles\fR, \s-1GCC\s0 assumes that doubles have 8 byte
15285 alignment only if they are contained in another type, or if they have an
15286 absolute address.  Otherwise, it assumes they have 4 byte alignment.
15287 Specifying this option avoids some rare compatibility problems with code
15288 generated by other compilers.  It is not the default because it results
15289 in a performance loss, especially for floating point code.
15290 .IP "\fB\-mno\-faster\-structs\fR" 4
15291 .IX Item "-mno-faster-structs"
15292 .PD 0
15293 .IP "\fB\-mfaster\-structs\fR" 4
15294 .IX Item "-mfaster-structs"
15296 With \fB\-mfaster\-structs\fR, the compiler assumes that structures
15297 should have 8 byte alignment.  This enables the use of pairs of
15298 \&\f(CW\*(C`ldd\*(C'\fR and \f(CW\*(C`std\*(C'\fR instructions for copies in structure
15299 assignment, in place of twice as many \f(CW\*(C`ld\*(C'\fR and \f(CW\*(C`st\*(C'\fR pairs.
15300 However, the use of this changed alignment directly violates the \s-1SPARC\s0
15301 \&\s-1ABI\s0.  Thus, it's intended only for use on targets where the developer
15302 acknowledges that their resulting code will not be directly in line with
15303 the rules of the \s-1ABI\s0.
15304 .IP "\fB\-mimpure\-text\fR" 4
15305 .IX Item "-mimpure-text"
15306 \&\fB\-mimpure\-text\fR, used in addition to \fB\-shared\fR, tells
15307 the compiler to not pass \fB\-z text\fR to the linker when linking a
15308 shared object.  Using this option, you can link position-dependent
15309 code into a shared object.
15311 \&\fB\-mimpure\-text\fR suppresses the \*(L"relocations remain against
15312 allocatable but non-writable sections\*(R" linker error message.
15313 However, the necessary relocations will trigger copy\-on\-write, and the
15314 shared object is not actually shared across processes.  Instead of
15315 using \fB\-mimpure\-text\fR, you should compile all source code with
15316 \&\fB\-fpic\fR or \fB\-fPIC\fR.
15318 This option is only available on SunOS and Solaris.
15319 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
15320 .IX Item "-mcpu=cpu_type"
15321 Set the instruction set, register set, and instruction scheduling parameters
15322 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
15323 \&\fBv7\fR, \fBcypress\fR, \fBv8\fR, \fBsupersparc\fR, \fBsparclite\fR,
15324 \&\fBf930\fR, \fBf934\fR, \fBhypersparc\fR, \fBsparclite86x\fR,
15325 \&\fBsparclet\fR, \fBtsc701\fR, \fBv9\fR, \fBultrasparc\fR,
15326 \&\fBultrasparc3\fR, \fBniagara\fR and \fBniagara2\fR.
15328 Default instruction scheduling parameters are used for values that select
15329 an architecture and not an implementation.  These are \fBv7\fR, \fBv8\fR,
15330 \&\fBsparclite\fR, \fBsparclet\fR, \fBv9\fR.
15332 Here is a list of each supported architecture and their supported
15333 implementations.
15335 .Vb 5
15336 \&            v7:             cypress
15337 \&            v8:             supersparc, hypersparc
15338 \&            sparclite:      f930, f934, sparclite86x
15339 \&            sparclet:       tsc701
15340 \&            v9:             ultrasparc, ultrasparc3, niagara, niagara2
15343 By default (unless configured otherwise), \s-1GCC\s0 generates code for the V7
15344 variant of the \s-1SPARC\s0 architecture.  With \fB\-mcpu=cypress\fR, the compiler
15345 additionally optimizes it for the Cypress \s-1CY7C602\s0 chip, as used in the
15346 SPARCStation/SPARCServer 3xx series.  This is also appropriate for the older
15347 SPARCStation 1, 2, \s-1IPX\s0 etc.
15349 With \fB\-mcpu=v8\fR, \s-1GCC\s0 generates code for the V8 variant of the \s-1SPARC\s0
15350 architecture.  The only difference from V7 code is that the compiler emits
15351 the integer multiply and integer divide instructions which exist in \s-1SPARC\-V8\s0
15352 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=supersparc\fR, the compiler additionally
15353 optimizes it for the SuperSPARC chip, as used in the SPARCStation 10, 1000 and
15354 2000 series.
15356 With \fB\-mcpu=sparclite\fR, \s-1GCC\s0 generates code for the SPARClite variant of
15357 the \s-1SPARC\s0 architecture.  This adds the integer multiply, integer divide step
15358 and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClite but not in \s-1SPARC\-V7\s0.
15359 With \fB\-mcpu=f930\fR, the compiler additionally optimizes it for the
15360 Fujitsu \s-1MB86930\s0 chip, which is the original SPARClite, with no \s-1FPU\s0.  With
15361 \&\fB\-mcpu=f934\fR, the compiler additionally optimizes it for the Fujitsu
15362 \&\s-1MB86934\s0 chip, which is the more recent SPARClite with \s-1FPU\s0.
15364 With \fB\-mcpu=sparclet\fR, \s-1GCC\s0 generates code for the SPARClet variant of
15365 the \s-1SPARC\s0 architecture.  This adds the integer multiply, multiply/accumulate,
15366 integer divide step and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClet
15367 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=tsc701\fR, the compiler additionally
15368 optimizes it for the \s-1TEMIC\s0 SPARClet chip.
15370 With \fB\-mcpu=v9\fR, \s-1GCC\s0 generates code for the V9 variant of the \s-1SPARC\s0
15371 architecture.  This adds 64\-bit integer and floating-point move instructions,
15372 3 additional floating-point condition code registers and conditional move
15373 instructions.  With \fB\-mcpu=ultrasparc\fR, the compiler additionally
15374 optimizes it for the Sun UltraSPARC I/II/IIi chips.  With
15375 \&\fB\-mcpu=ultrasparc3\fR, the compiler additionally optimizes it for the
15376 Sun UltraSPARC III/III+/IIIi/IIIi+/IV/IV+ chips.  With
15377 \&\fB\-mcpu=niagara\fR, the compiler additionally optimizes it for
15378 Sun UltraSPARC T1 chips.  With \fB\-mcpu=niagara2\fR, the compiler
15379 additionally optimizes it for Sun UltraSPARC T2 chips.
15380 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
15381 .IX Item "-mtune=cpu_type"
15382 Set the instruction scheduling parameters for machine type
15383 \&\fIcpu_type\fR, but do not set the instruction set or register set that the
15384 option \fB\-mcpu=\fR\fIcpu_type\fR would.
15386 The same values for \fB\-mcpu=\fR\fIcpu_type\fR can be used for
15387 \&\fB\-mtune=\fR\fIcpu_type\fR, but the only useful values are those
15388 that select a particular \s-1CPU\s0 implementation.  Those are \fBcypress\fR,
15389 \&\fBsupersparc\fR, \fBhypersparc\fR, \fBf930\fR, \fBf934\fR,
15390 \&\fBsparclite86x\fR, \fBtsc701\fR, \fBultrasparc\fR,
15391 \&\fBultrasparc3\fR, \fBniagara\fR, and \fBniagara2\fR.
15392 .IP "\fB\-mv8plus\fR" 4
15393 .IX Item "-mv8plus"
15394 .PD 0
15395 .IP "\fB\-mno\-v8plus\fR" 4
15396 .IX Item "-mno-v8plus"
15398 With \fB\-mv8plus\fR, \s-1GCC\s0 generates code for the \s-1SPARC\-V8+\s0 \s-1ABI\s0.  The
15399 difference from the V8 \s-1ABI\s0 is that the global and out registers are
15400 considered 64\-bit wide.  This is enabled by default on Solaris in 32\-bit
15401 mode for all \s-1SPARC\-V9\s0 processors.
15402 .IP "\fB\-mvis\fR" 4
15403 .IX Item "-mvis"
15404 .PD 0
15405 .IP "\fB\-mno\-vis\fR" 4
15406 .IX Item "-mno-vis"
15408 With \fB\-mvis\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
15409 Visual Instruction Set extensions.  The default is \fB\-mno\-vis\fR.
15411 These \fB\-m\fR options are supported in addition to the above
15412 on \s-1SPARC\-V9\s0 processors in 64\-bit environments:
15413 .IP "\fB\-mlittle\-endian\fR" 4
15414 .IX Item "-mlittle-endian"
15415 Generate code for a processor running in little-endian mode.  It is only
15416 available for a few configurations and most notably not on Solaris and Linux.
15417 .IP "\fB\-m32\fR" 4
15418 .IX Item "-m32"
15419 .PD 0
15420 .IP "\fB\-m64\fR" 4
15421 .IX Item "-m64"
15423 Generate code for a 32\-bit or 64\-bit environment.
15424 The 32\-bit environment sets int, long and pointer to 32 bits.
15425 The 64\-bit environment sets int to 32 bits and long and pointer
15426 to 64 bits.
15427 .IP "\fB\-mcmodel=medlow\fR" 4
15428 .IX Item "-mcmodel=medlow"
15429 Generate code for the Medium/Low code model: 64\-bit addresses, programs
15430 must be linked in the low 32 bits of memory.  Programs can be statically
15431 or dynamically linked.
15432 .IP "\fB\-mcmodel=medmid\fR" 4
15433 .IX Item "-mcmodel=medmid"
15434 Generate code for the Medium/Middle code model: 64\-bit addresses, programs
15435 must be linked in the low 44 bits of memory, the text and data segments must
15436 be less than 2GB in size and the data segment must be located within 2GB of
15437 the text segment.
15438 .IP "\fB\-mcmodel=medany\fR" 4
15439 .IX Item "-mcmodel=medany"
15440 Generate code for the Medium/Anywhere code model: 64\-bit addresses, programs
15441 may be linked anywhere in memory, the text and data segments must be less
15442 than 2GB in size and the data segment must be located within 2GB of the
15443 text segment.
15444 .IP "\fB\-mcmodel=embmedany\fR" 4
15445 .IX Item "-mcmodel=embmedany"
15446 Generate code for the Medium/Anywhere code model for embedded systems:
15447 64\-bit addresses, the text and data segments must be less than 2GB in
15448 size, both starting anywhere in memory (determined at link time).  The
15449 global register \f(CW%g4\fR points to the base of the data segment.  Programs
15450 are statically linked and \s-1PIC\s0 is not supported.
15451 .IP "\fB\-mstack\-bias\fR" 4
15452 .IX Item "-mstack-bias"
15453 .PD 0
15454 .IP "\fB\-mno\-stack\-bias\fR" 4
15455 .IX Item "-mno-stack-bias"
15457 With \fB\-mstack\-bias\fR, \s-1GCC\s0 assumes that the stack pointer, and
15458 frame pointer if present, are offset by \-2047 which must be added back
15459 when making stack frame references.  This is the default in 64\-bit mode.
15460 Otherwise, assume no such offset is present.
15462 These switches are supported in addition to the above on Solaris:
15463 .IP "\fB\-threads\fR" 4
15464 .IX Item "-threads"
15465 Add support for multithreading using the Solaris threads library.  This
15466 option sets flags for both the preprocessor and linker.  This option does
15467 not affect the thread safety of object code produced by the compiler or
15468 that of libraries supplied with it.
15469 .IP "\fB\-pthreads\fR" 4
15470 .IX Item "-pthreads"
15471 Add support for multithreading using the \s-1POSIX\s0 threads library.  This
15472 option sets flags for both the preprocessor and linker.  This option does
15473 not affect the thread safety of object code produced  by the compiler or
15474 that of libraries supplied with it.
15475 .IP "\fB\-pthread\fR" 4
15476 .IX Item "-pthread"
15477 This is a synonym for \fB\-pthreads\fR.
15479 \fI\s-1SPU\s0 Options\fR
15480 .IX Subsection "SPU Options"
15482 These \fB\-m\fR options are supported on the \s-1SPU:\s0
15483 .IP "\fB\-mwarn\-reloc\fR" 4
15484 .IX Item "-mwarn-reloc"
15485 .PD 0
15486 .IP "\fB\-merror\-reloc\fR" 4
15487 .IX Item "-merror-reloc"
15489 The loader for \s-1SPU\s0 does not handle dynamic relocations.  By default, \s-1GCC\s0
15490 will give an error when it generates code that requires a dynamic
15491 relocation.  \fB\-mno\-error\-reloc\fR disables the error,
15492 \&\fB\-mwarn\-reloc\fR will generate a warning instead.
15493 .IP "\fB\-msafe\-dma\fR" 4
15494 .IX Item "-msafe-dma"
15495 .PD 0
15496 .IP "\fB\-munsafe\-dma\fR" 4
15497 .IX Item "-munsafe-dma"
15499 Instructions which initiate or test completion of \s-1DMA\s0 must not be
15500 reordered with respect to loads and stores of the memory which is being
15501 accessed.  Users typically address this problem using the volatile
15502 keyword, but that can lead to inefficient code in places where the
15503 memory is known to not change.  Rather than mark the memory as volatile
15504 we treat the \s-1DMA\s0 instructions as potentially effecting all memory.  With
15505 \&\fB\-munsafe\-dma\fR users must use the volatile keyword to protect
15506 memory accesses.
15507 .IP "\fB\-mbranch\-hints\fR" 4
15508 .IX Item "-mbranch-hints"
15509 By default, \s-1GCC\s0 will generate a branch hint instruction to avoid
15510 pipeline stalls for always taken or probably taken branches.  A hint
15511 will not be generated closer than 8 instructions away from its branch.
15512 There is little reason to disable them, except for debugging purposes,
15513 or to make an object a little bit smaller.
15514 .IP "\fB\-msmall\-mem\fR" 4
15515 .IX Item "-msmall-mem"
15516 .PD 0
15517 .IP "\fB\-mlarge\-mem\fR" 4
15518 .IX Item "-mlarge-mem"
15520 By default, \s-1GCC\s0 generates code assuming that addresses are never larger
15521 than 18 bits.  With \fB\-mlarge\-mem\fR code is generated that assumes
15522 a full 32 bit address.
15523 .IP "\fB\-mstdmain\fR" 4
15524 .IX Item "-mstdmain"
15525 By default, \s-1GCC\s0 links against startup code that assumes the SPU-style
15526 main function interface (which has an unconventional parameter list).
15527 With \fB\-mstdmain\fR, \s-1GCC\s0 will link your program against startup
15528 code that assumes a C99\-style interface to \f(CW\*(C`main\*(C'\fR, including a
15529 local copy of \f(CW\*(C`argv\*(C'\fR strings.
15530 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
15531 .IX Item "-mfixed-range=register-range"
15532 Generate code treating the given register range as fixed registers.
15533 A fixed register is one that the register allocator can not use.  This is
15534 useful when compiling kernel code.  A register range is specified as
15535 two registers separated by a dash.  Multiple register ranges can be
15536 specified separated by a comma.
15537 .IP "\fB\-mea32\fR" 4
15538 .IX Item "-mea32"
15539 .PD 0
15540 .IP "\fB\-mea64\fR" 4
15541 .IX Item "-mea64"
15543 Compile code assuming that pointers to the \s-1PPU\s0 address space accessed
15544 via the \f(CW\*(C`_\|_ea\*(C'\fR named address space qualifier are either 32 or 64
15545 bits wide.  The default is 32 bits.  As this is an \s-1ABI\s0 changing option,
15546 all object code in an executable must be compiled with the same setting.
15547 .IP "\fB\-maddress\-space\-conversion\fR" 4
15548 .IX Item "-maddress-space-conversion"
15549 .PD 0
15550 .IP "\fB\-mno\-address\-space\-conversion\fR" 4
15551 .IX Item "-mno-address-space-conversion"
15553 Allow/disallow treating the \f(CW\*(C`_\|_ea\*(C'\fR address space as superset
15554 of the generic address space.  This enables explicit type casts
15555 between \f(CW\*(C`_\|_ea\*(C'\fR and generic pointer as well as implicit
15556 conversions of generic pointers to \f(CW\*(C`_\|_ea\*(C'\fR pointers.  The
15557 default is to allow address space pointer conversions.
15558 .IP "\fB\-mcache\-size=\fR\fIcache-size\fR" 4
15559 .IX Item "-mcache-size=cache-size"
15560 This option controls the version of libgcc that the compiler links to an
15561 executable and selects a software-managed cache for accessing variables
15562 in the \f(CW\*(C`_\|_ea\*(C'\fR address space with a particular cache size.  Possible
15563 options for \fIcache-size\fR are \fB8\fR, \fB16\fR, \fB32\fR, \fB64\fR
15564 and \fB128\fR.  The default cache size is 64KB.
15565 .IP "\fB\-matomic\-updates\fR" 4
15566 .IX Item "-matomic-updates"
15567 .PD 0
15568 .IP "\fB\-mno\-atomic\-updates\fR" 4
15569 .IX Item "-mno-atomic-updates"
15571 This option controls the version of libgcc that the compiler links to an
15572 executable and selects whether atomic updates to the software-managed
15573 cache of PPU-side variables are used.  If you use atomic updates, changes
15574 to a \s-1PPU\s0 variable from \s-1SPU\s0 code using the \f(CW\*(C`_\|_ea\*(C'\fR named address space
15575 qualifier will not interfere with changes to other \s-1PPU\s0 variables residing
15576 in the same cache line from \s-1PPU\s0 code.  If you do not use atomic updates,
15577 such interference may occur; however, writing back cache lines will be
15578 more efficient.  The default behavior is to use atomic updates.
15579 .IP "\fB\-mdual\-nops\fR" 4
15580 .IX Item "-mdual-nops"
15581 .PD 0
15582 .IP "\fB\-mdual\-nops=\fR\fIn\fR" 4
15583 .IX Item "-mdual-nops=n"
15585 By default, \s-1GCC\s0 will insert nops to increase dual issue when it expects
15586 it to increase performance.  \fIn\fR can be a value from 0 to 10.  A
15587 smaller \fIn\fR will insert fewer nops.  10 is the default, 0 is the
15588 same as \fB\-mno\-dual\-nops\fR.  Disabled with \fB\-Os\fR.
15589 .IP "\fB\-mhint\-max\-nops=\fR\fIn\fR" 4
15590 .IX Item "-mhint-max-nops=n"
15591 Maximum number of nops to insert for a branch hint.  A branch hint must
15592 be at least 8 instructions away from the branch it is effecting.  \s-1GCC\s0
15593 will insert up to \fIn\fR nops to enforce this, otherwise it will not
15594 generate the branch hint.
15595 .IP "\fB\-mhint\-max\-distance=\fR\fIn\fR" 4
15596 .IX Item "-mhint-max-distance=n"
15597 The encoding of the branch hint instruction limits the hint to be within
15598 256 instructions of the branch it is effecting.  By default, \s-1GCC\s0 makes
15599 sure it is within 125.
15600 .IP "\fB\-msafe\-hints\fR" 4
15601 .IX Item "-msafe-hints"
15602 Work around a hardware bug which causes the \s-1SPU\s0 to stall indefinitely.
15603 By default, \s-1GCC\s0 will insert the \f(CW\*(C`hbrp\*(C'\fR instruction to make sure
15604 this stall won't happen.
15606 \fIOptions for System V\fR
15607 .IX Subsection "Options for System V"
15609 These additional options are available on System V Release 4 for
15610 compatibility with other compilers on those systems:
15611 .IP "\fB\-G\fR" 4
15612 .IX Item "-G"
15613 Create a shared object.
15614 It is recommended that \fB\-symbolic\fR or \fB\-shared\fR be used instead.
15615 .IP "\fB\-Qy\fR" 4
15616 .IX Item "-Qy"
15617 Identify the versions of each tool used by the compiler, in a
15618 \&\f(CW\*(C`.ident\*(C'\fR assembler directive in the output.
15619 .IP "\fB\-Qn\fR" 4
15620 .IX Item "-Qn"
15621 Refrain from adding \f(CW\*(C`.ident\*(C'\fR directives to the output file (this is
15622 the default).
15623 .IP "\fB\-YP,\fR\fIdirs\fR" 4
15624 .IX Item "-YP,dirs"
15625 Search the directories \fIdirs\fR, and no others, for libraries
15626 specified with \fB\-l\fR.
15627 .IP "\fB\-Ym,\fR\fIdir\fR" 4
15628 .IX Item "-Ym,dir"
15629 Look in the directory \fIdir\fR to find the M4 preprocessor.
15630 The assembler uses this option.
15632 \fIV850 Options\fR
15633 .IX Subsection "V850 Options"
15635 These \fB\-m\fR options are defined for V850 implementations:
15636 .IP "\fB\-mlong\-calls\fR" 4
15637 .IX Item "-mlong-calls"
15638 .PD 0
15639 .IP "\fB\-mno\-long\-calls\fR" 4
15640 .IX Item "-mno-long-calls"
15642 Treat all calls as being far away (near).  If calls are assumed to be
15643 far away, the compiler will always load the functions address up into a
15644 register, and call indirect through the pointer.
15645 .IP "\fB\-mno\-ep\fR" 4
15646 .IX Item "-mno-ep"
15647 .PD 0
15648 .IP "\fB\-mep\fR" 4
15649 .IX Item "-mep"
15651 Do not optimize (do optimize) basic blocks that use the same index
15652 pointer 4 or more times to copy pointer into the \f(CW\*(C`ep\*(C'\fR register, and
15653 use the shorter \f(CW\*(C`sld\*(C'\fR and \f(CW\*(C`sst\*(C'\fR instructions.  The \fB\-mep\fR
15654 option is on by default if you optimize.
15655 .IP "\fB\-mno\-prolog\-function\fR" 4
15656 .IX Item "-mno-prolog-function"
15657 .PD 0
15658 .IP "\fB\-mprolog\-function\fR" 4
15659 .IX Item "-mprolog-function"
15661 Do not use (do use) external functions to save and restore registers
15662 at the prologue and epilogue of a function.  The external functions
15663 are slower, but use less code space if more than one function saves
15664 the same number of registers.  The \fB\-mprolog\-function\fR option
15665 is on by default if you optimize.
15666 .IP "\fB\-mspace\fR" 4
15667 .IX Item "-mspace"
15668 Try to make the code as small as possible.  At present, this just turns
15669 on the \fB\-mep\fR and \fB\-mprolog\-function\fR options.
15670 .IP "\fB\-mtda=\fR\fIn\fR" 4
15671 .IX Item "-mtda=n"
15672 Put static or global variables whose size is \fIn\fR bytes or less into
15673 the tiny data area that register \f(CW\*(C`ep\*(C'\fR points to.  The tiny data
15674 area can hold up to 256 bytes in total (128 bytes for byte references).
15675 .IP "\fB\-msda=\fR\fIn\fR" 4
15676 .IX Item "-msda=n"
15677 Put static or global variables whose size is \fIn\fR bytes or less into
15678 the small data area that register \f(CW\*(C`gp\*(C'\fR points to.  The small data
15679 area can hold up to 64 kilobytes.
15680 .IP "\fB\-mzda=\fR\fIn\fR" 4
15681 .IX Item "-mzda=n"
15682 Put static or global variables whose size is \fIn\fR bytes or less into
15683 the first 32 kilobytes of memory.
15684 .IP "\fB\-mv850\fR" 4
15685 .IX Item "-mv850"
15686 Specify that the target processor is the V850.
15687 .IP "\fB\-mbig\-switch\fR" 4
15688 .IX Item "-mbig-switch"
15689 Generate code suitable for big switch tables.  Use this option only if
15690 the assembler/linker complain about out of range branches within a switch
15691 table.
15692 .IP "\fB\-mapp\-regs\fR" 4
15693 .IX Item "-mapp-regs"
15694 This option will cause r2 and r5 to be used in the code generated by
15695 the compiler.  This setting is the default.
15696 .IP "\fB\-mno\-app\-regs\fR" 4
15697 .IX Item "-mno-app-regs"
15698 This option will cause r2 and r5 to be treated as fixed registers.
15699 .IP "\fB\-mv850e1\fR" 4
15700 .IX Item "-mv850e1"
15701 Specify that the target processor is the V850E1.  The preprocessor
15702 constants \fB_\|_v850e1_\|_\fR and \fB_\|_v850e_\|_\fR will be defined if
15703 this option is used.
15704 .IP "\fB\-mv850e\fR" 4
15705 .IX Item "-mv850e"
15706 Specify that the target processor is the V850E.  The preprocessor
15707 constant \fB_\|_v850e_\|_\fR will be defined if this option is used.
15709 If neither \fB\-mv850\fR nor \fB\-mv850e\fR nor \fB\-mv850e1\fR
15710 are defined then a default target processor will be chosen and the
15711 relevant \fB_\|_v850*_\|_\fR preprocessor constant will be defined.
15713 The preprocessor constants \fB_\|_v850\fR and \fB_\|_v851_\|_\fR are always
15714 defined, regardless of which processor variant is the target.
15715 .IP "\fB\-mdisable\-callt\fR" 4
15716 .IX Item "-mdisable-callt"
15717 This option will suppress generation of the \s-1CALLT\s0 instruction for the
15718 v850e and v850e1 flavors of the v850 architecture.  The default is
15719 \&\fB\-mno\-disable\-callt\fR which allows the \s-1CALLT\s0 instruction to be used.
15721 \fI\s-1VAX\s0 Options\fR
15722 .IX Subsection "VAX Options"
15724 These \fB\-m\fR options are defined for the \s-1VAX:\s0
15725 .IP "\fB\-munix\fR" 4
15726 .IX Item "-munix"
15727 Do not output certain jump instructions (\f(CW\*(C`aobleq\*(C'\fR and so on)
15728 that the Unix assembler for the \s-1VAX\s0 cannot handle across long
15729 ranges.
15730 .IP "\fB\-mgnu\fR" 4
15731 .IX Item "-mgnu"
15732 Do output those jump instructions, on the assumption that you
15733 will assemble with the \s-1GNU\s0 assembler.
15734 .IP "\fB\-mg\fR" 4
15735 .IX Item "-mg"
15736 Output code for g\-format floating point numbers instead of d\-format.
15738 \fIVxWorks Options\fR
15739 .IX Subsection "VxWorks Options"
15741 The options in this section are defined for all VxWorks targets.
15742 Options specific to the target hardware are listed with the other
15743 options for that target.
15744 .IP "\fB\-mrtp\fR" 4
15745 .IX Item "-mrtp"
15746 \&\s-1GCC\s0 can generate code for both VxWorks kernels and real time processes
15747 (RTPs).  This option switches from the former to the latter.  It also
15748 defines the preprocessor macro \f(CW\*(C`_\|_RTP_\|_\*(C'\fR.
15749 .IP "\fB\-non\-static\fR" 4
15750 .IX Item "-non-static"
15751 Link an \s-1RTP\s0 executable against shared libraries rather than static
15752 libraries.  The options \fB\-static\fR and \fB\-shared\fR can
15753 also be used for RTPs; \fB\-static\fR
15754 is the default.
15755 .IP "\fB\-Bstatic\fR" 4
15756 .IX Item "-Bstatic"
15757 .PD 0
15758 .IP "\fB\-Bdynamic\fR" 4
15759 .IX Item "-Bdynamic"
15761 These options are passed down to the linker.  They are defined for
15762 compatibility with Diab.
15763 .IP "\fB\-Xbind\-lazy\fR" 4
15764 .IX Item "-Xbind-lazy"
15765 Enable lazy binding of function calls.  This option is equivalent to
15766 \&\fB\-Wl,\-z,now\fR and is defined for compatibility with Diab.
15767 .IP "\fB\-Xbind\-now\fR" 4
15768 .IX Item "-Xbind-now"
15769 Disable lazy binding of function calls.  This option is the default and
15770 is defined for compatibility with Diab.
15772 \fIx86\-64 Options\fR
15773 .IX Subsection "x86-64 Options"
15775 These are listed under 
15777 \fIXstormy16 Options\fR
15778 .IX Subsection "Xstormy16 Options"
15780 These options are defined for Xstormy16:
15781 .IP "\fB\-msim\fR" 4
15782 .IX Item "-msim"
15783 Choose startup files and linker script suitable for the simulator.
15785 \fIXtensa Options\fR
15786 .IX Subsection "Xtensa Options"
15788 These options are supported for Xtensa targets:
15789 .IP "\fB\-mconst16\fR" 4
15790 .IX Item "-mconst16"
15791 .PD 0
15792 .IP "\fB\-mno\-const16\fR" 4
15793 .IX Item "-mno-const16"
15795 Enable or disable use of \f(CW\*(C`CONST16\*(C'\fR instructions for loading
15796 constant values.  The \f(CW\*(C`CONST16\*(C'\fR instruction is currently not a
15797 standard option from Tensilica.  When enabled, \f(CW\*(C`CONST16\*(C'\fR
15798 instructions are always used in place of the standard \f(CW\*(C`L32R\*(C'\fR
15799 instructions.  The use of \f(CW\*(C`CONST16\*(C'\fR is enabled by default only if
15800 the \f(CW\*(C`L32R\*(C'\fR instruction is not available.
15801 .IP "\fB\-mfused\-madd\fR" 4
15802 .IX Item "-mfused-madd"
15803 .PD 0
15804 .IP "\fB\-mno\-fused\-madd\fR" 4
15805 .IX Item "-mno-fused-madd"
15807 Enable or disable use of fused multiply/add and multiply/subtract
15808 instructions in the floating-point option.  This has no effect if the
15809 floating-point option is not also enabled.  Disabling fused multiply/add
15810 and multiply/subtract instructions forces the compiler to use separate
15811 instructions for the multiply and add/subtract operations.  This may be
15812 desirable in some cases where strict \s-1IEEE\s0 754\-compliant results are
15813 required: the fused multiply add/subtract instructions do not round the
15814 intermediate result, thereby producing results with \fImore\fR bits of
15815 precision than specified by the \s-1IEEE\s0 standard.  Disabling fused multiply
15816 add/subtract instructions also ensures that the program output is not
15817 sensitive to the compiler's ability to combine multiply and add/subtract
15818 operations.
15819 .IP "\fB\-mserialize\-volatile\fR" 4
15820 .IX Item "-mserialize-volatile"
15821 .PD 0
15822 .IP "\fB\-mno\-serialize\-volatile\fR" 4
15823 .IX Item "-mno-serialize-volatile"
15825 When this option is enabled, \s-1GCC\s0 inserts \f(CW\*(C`MEMW\*(C'\fR instructions before
15826 \&\f(CW\*(C`volatile\*(C'\fR memory references to guarantee sequential consistency.
15827 The default is \fB\-mserialize\-volatile\fR.  Use
15828 \&\fB\-mno\-serialize\-volatile\fR to omit the \f(CW\*(C`MEMW\*(C'\fR instructions.
15829 .IP "\fB\-mtext\-section\-literals\fR" 4
15830 .IX Item "-mtext-section-literals"
15831 .PD 0
15832 .IP "\fB\-mno\-text\-section\-literals\fR" 4
15833 .IX Item "-mno-text-section-literals"
15835 Control the treatment of literal pools.  The default is
15836 \&\fB\-mno\-text\-section\-literals\fR, which places literals in a separate
15837 section in the output file.  This allows the literal pool to be placed
15838 in a data \s-1RAM/ROM\s0, and it also allows the linker to combine literal
15839 pools from separate object files to remove redundant literals and
15840 improve code size.  With \fB\-mtext\-section\-literals\fR, the literals
15841 are interspersed in the text section in order to keep them as close as
15842 possible to their references.  This may be necessary for large assembly
15843 files.
15844 .IP "\fB\-mtarget\-align\fR" 4
15845 .IX Item "-mtarget-align"
15846 .PD 0
15847 .IP "\fB\-mno\-target\-align\fR" 4
15848 .IX Item "-mno-target-align"
15850 When this option is enabled, \s-1GCC\s0 instructs the assembler to
15851 automatically align instructions to reduce branch penalties at the
15852 expense of some code density.  The assembler attempts to widen density
15853 instructions to align branch targets and the instructions following call
15854 instructions.  If there are not enough preceding safe density
15855 instructions to align a target, no widening will be performed.  The
15856 default is \fB\-mtarget\-align\fR.  These options do not affect the
15857 treatment of auto-aligned instructions like \f(CW\*(C`LOOP\*(C'\fR, which the
15858 assembler will always align, either by widening density instructions or
15859 by inserting no-op instructions.
15860 .IP "\fB\-mlongcalls\fR" 4
15861 .IX Item "-mlongcalls"
15862 .PD 0
15863 .IP "\fB\-mno\-longcalls\fR" 4
15864 .IX Item "-mno-longcalls"
15866 When this option is enabled, \s-1GCC\s0 instructs the assembler to translate
15867 direct calls to indirect calls unless it can determine that the target
15868 of a direct call is in the range allowed by the call instruction.  This
15869 translation typically occurs for calls to functions in other source
15870 files.  Specifically, the assembler translates a direct \f(CW\*(C`CALL\*(C'\fR
15871 instruction into an \f(CW\*(C`L32R\*(C'\fR followed by a \f(CW\*(C`CALLX\*(C'\fR instruction.
15872 The default is \fB\-mno\-longcalls\fR.  This option should be used in
15873 programs where the call target can potentially be out of range.  This
15874 option is implemented in the assembler, not the compiler, so the
15875 assembly code generated by \s-1GCC\s0 will still show direct call
15876 instructions\-\-\-look at the disassembled object code to see the actual
15877 instructions.  Note that the assembler will use an indirect call for
15878 every cross-file call, not just those that really will be out of range.
15880 \fIzSeries Options\fR
15881 .IX Subsection "zSeries Options"
15883 These are listed under 
15884 .Sh "Options for Code Generation Conventions"
15885 .IX Subsection "Options for Code Generation Conventions"
15886 These machine-independent options control the interface conventions
15887 used in code generation.
15889 Most of them have both positive and negative forms; the negative form
15890 of \fB\-ffoo\fR would be \fB\-fno\-foo\fR.  In the table below, only
15891 one of the forms is listed\-\-\-the one which is not the default.  You
15892 can figure out the other form by either removing \fBno\-\fR or adding
15894 .IP "\fB\-fbounds\-check\fR" 4
15895 .IX Item "-fbounds-check"
15896 For front-ends that support it, generate additional code to check that
15897 indices used to access arrays are within the declared range.  This is
15898 currently only supported by the Java and Fortran front\-ends, where
15899 this option defaults to true and false respectively.
15900 .IP "\fB\-ftrapv\fR" 4
15901 .IX Item "-ftrapv"
15902 This option generates traps for signed overflow on addition, subtraction,
15903 multiplication operations.
15904 .IP "\fB\-fwrapv\fR" 4
15905 .IX Item "-fwrapv"
15906 This option instructs the compiler to assume that signed arithmetic
15907 overflow of addition, subtraction and multiplication wraps around
15908 using twos-complement representation.  This flag enables some optimizations
15909 and disables others.  This option is enabled by default for the Java
15910 front\-end, as required by the Java language specification.
15911 .IP "\fB\-fexceptions\fR" 4
15912 .IX Item "-fexceptions"
15913 Enable exception handling.  Generates extra code needed to propagate
15914 exceptions.  For some targets, this implies \s-1GCC\s0 will generate frame
15915 unwind information for all functions, which can produce significant data
15916 size overhead, although it does not affect execution.  If you do not
15917 specify this option, \s-1GCC\s0 will enable it by default for languages like
15918 \&\*(C+ which normally require exception handling, and disable it for
15919 languages like C that do not normally require it.  However, you may need
15920 to enable this option when compiling C code that needs to interoperate
15921 properly with exception handlers written in \*(C+.  You may also wish to
15922 disable this option if you are compiling older \*(C+ programs that don't
15923 use exception handling.
15924 .IP "\fB\-fnon\-call\-exceptions\fR" 4
15925 .IX Item "-fnon-call-exceptions"
15926 Generate code that allows trapping instructions to throw exceptions.
15927 Note that this requires platform-specific runtime support that does
15928 not exist everywhere.  Moreover, it only allows \fItrapping\fR
15929 instructions to throw exceptions, i.e. memory references or floating
15930 point instructions.  It does not allow exceptions to be thrown from
15931 arbitrary signal handlers such as \f(CW\*(C`SIGALRM\*(C'\fR.
15932 .IP "\fB\-funwind\-tables\fR" 4
15933 .IX Item "-funwind-tables"
15934 Similar to \fB\-fexceptions\fR, except that it will just generate any needed
15935 static data, but will not affect the generated code in any other way.
15936 You will normally not enable this option; instead, a language processor
15937 that needs this handling would enable it on your behalf.
15938 .IP "\fB\-fasynchronous\-unwind\-tables\fR" 4
15939 .IX Item "-fasynchronous-unwind-tables"
15940 Generate unwind table in dwarf2 format, if supported by target machine.  The
15941 table is exact at each instruction boundary, so it can be used for stack
15942 unwinding from asynchronous events (such as debugger or garbage collector).
15943 .IP "\fB\-fpcc\-struct\-return\fR" 4
15944 .IX Item "-fpcc-struct-return"
15945 Return \*(L"short\*(R" \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in memory like
15946 longer ones, rather than in registers.  This convention is less
15947 efficient, but it has the advantage of allowing intercallability between
15948 GCC-compiled files and files compiled with other compilers, particularly
15949 the Portable C Compiler (pcc).
15951 The precise convention for returning structures in memory depends
15952 on the target configuration macros.
15954 Short structures and unions are those whose size and alignment match
15955 that of some integer type.
15957 \&\fBWarning:\fR code compiled with the \fB\-fpcc\-struct\-return\fR
15958 switch is not binary compatible with code compiled with the
15959 \&\fB\-freg\-struct\-return\fR switch.
15960 Use it to conform to a non-default application binary interface.
15961 .IP "\fB\-freg\-struct\-return\fR" 4
15962 .IX Item "-freg-struct-return"
15963 Return \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in registers when possible.
15964 This is more efficient for small structures than
15965 \&\fB\-fpcc\-struct\-return\fR.
15967 If you specify neither \fB\-fpcc\-struct\-return\fR nor
15968 \&\fB\-freg\-struct\-return\fR, \s-1GCC\s0 defaults to whichever convention is
15969 standard for the target.  If there is no standard convention, \s-1GCC\s0
15970 defaults to \fB\-fpcc\-struct\-return\fR, except on targets where \s-1GCC\s0 is
15971 the principal compiler.  In those cases, we can choose the standard, and
15972 we chose the more efficient register return alternative.
15974 \&\fBWarning:\fR code compiled with the \fB\-freg\-struct\-return\fR
15975 switch is not binary compatible with code compiled with the
15976 \&\fB\-fpcc\-struct\-return\fR switch.
15977 Use it to conform to a non-default application binary interface.
15978 .IP "\fB\-fshort\-enums\fR" 4
15979 .IX Item "-fshort-enums"
15980 Allocate to an \f(CW\*(C`enum\*(C'\fR type only as many bytes as it needs for the
15981 declared range of possible values.  Specifically, the \f(CW\*(C`enum\*(C'\fR type
15982 will be equivalent to the smallest integer type which has enough room.
15984 \&\fBWarning:\fR the \fB\-fshort\-enums\fR switch causes \s-1GCC\s0 to generate
15985 code that is not binary compatible with code generated without that switch.
15986 Use it to conform to a non-default application binary interface.
15987 .IP "\fB\-fshort\-double\fR" 4
15988 .IX Item "-fshort-double"
15989 Use the same size for \f(CW\*(C`double\*(C'\fR as for \f(CW\*(C`float\*(C'\fR.
15991 \&\fBWarning:\fR the \fB\-fshort\-double\fR switch causes \s-1GCC\s0 to generate
15992 code that is not binary compatible with code generated without that switch.
15993 Use it to conform to a non-default application binary interface.
15994 .IP "\fB\-fshort\-wchar\fR" 4
15995 .IX Item "-fshort-wchar"
15996 Override the underlying type for \fBwchar_t\fR to be \fBshort
15997 unsigned int\fR instead of the default for the target.  This option is
15998 useful for building programs to run under \s-1WINE\s0.
16000 \&\fBWarning:\fR the \fB\-fshort\-wchar\fR switch causes \s-1GCC\s0 to generate
16001 code that is not binary compatible with code generated without that switch.
16002 Use it to conform to a non-default application binary interface.
16003 .IP "\fB\-fno\-common\fR" 4
16004 .IX Item "-fno-common"
16005 In C code, controls the placement of uninitialized global variables.
16006 Unix C compilers have traditionally permitted multiple definitions of
16007 such variables in different compilation units by placing the variables
16008 in a common block.
16009 This is the behavior specified by \fB\-fcommon\fR, and is the default
16010 for \s-1GCC\s0 on most targets.
16011 On the other hand, this behavior is not required by \s-1ISO\s0 C, and on some
16012 targets may carry a speed or code size penalty on variable references.
16013 The \fB\-fno\-common\fR option specifies that the compiler should place
16014 uninitialized global variables in the data section of the object file,
16015 rather than generating them as common blocks.
16016 This has the effect that if the same variable is declared
16017 (without \f(CW\*(C`extern\*(C'\fR) in two different compilations,
16018 you will get a multiple-definition error when you link them.
16019 In this case, you must compile with \fB\-fcommon\fR instead.
16020 Compiling with \fB\-fno\-common\fR is useful on targets for which
16021 it provides better performance, or if you wish to verify that the
16022 program will work on other systems which always treat uninitialized
16023 variable declarations this way.
16024 .IP "\fB\-fno\-ident\fR" 4
16025 .IX Item "-fno-ident"
16026 Ignore the \fB#ident\fR directive.
16027 .IP "\fB\-finhibit\-size\-directive\fR" 4
16028 .IX Item "-finhibit-size-directive"
16029 Don't output a \f(CW\*(C`.size\*(C'\fR assembler directive, or anything else that
16030 would cause trouble if the function is split in the middle, and the
16031 two halves are placed at locations far apart in memory.  This option is
16032 used when compiling \fIcrtstuff.c\fR; you should not need to use it
16033 for anything else.
16034 .IP "\fB\-fverbose\-asm\fR" 4
16035 .IX Item "-fverbose-asm"
16036 Put extra commentary information in the generated assembly code to
16037 make it more readable.  This option is generally only of use to those
16038 who actually need to read the generated assembly code (perhaps while
16039 debugging the compiler itself).
16041 \&\fB\-fno\-verbose\-asm\fR, the default, causes the
16042 extra information to be omitted and is useful when comparing two assembler
16043 files.
16044 .IP "\fB\-frecord\-gcc\-switches\fR" 4
16045 .IX Item "-frecord-gcc-switches"
16046 This switch causes the command line that was used to invoke the
16047 compiler to be recorded into the object file that is being created.
16048 This switch is only implemented on some targets and the exact format
16049 of the recording is target and binary file format dependent, but it
16050 usually takes the form of a section containing \s-1ASCII\s0 text.  This
16051 switch is related to the \fB\-fverbose\-asm\fR switch, but that
16052 switch only records information in the assembler output file as
16053 comments, so it never reaches the object file.
16054 .IP "\fB\-fpic\fR" 4
16055 .IX Item "-fpic"
16056 Generate position-independent code (\s-1PIC\s0) suitable for use in a shared
16057 library, if supported for the target machine.  Such code accesses all
16058 constant addresses through a global offset table (\s-1GOT\s0).  The dynamic
16059 loader resolves the \s-1GOT\s0 entries when the program starts (the dynamic
16060 loader is not part of \s-1GCC\s0; it is part of the operating system).  If
16061 the \s-1GOT\s0 size for the linked executable exceeds a machine-specific
16062 maximum size, you get an error message from the linker indicating that
16063 \&\fB\-fpic\fR does not work; in that case, recompile with \fB\-fPIC\fR
16064 instead.  (These maximums are 8k on the \s-1SPARC\s0 and 32k
16065 on the m68k and \s-1RS/6000\s0.  The 386 has no such limit.)
16067 Position-independent code requires special support, and therefore works
16068 only on certain machines.  For the 386, \s-1GCC\s0 supports \s-1PIC\s0 for System V
16069 but not for the Sun 386i.  Code generated for the \s-1IBM\s0 \s-1RS/6000\s0 is always
16070 position\-independent.
16072 When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
16073 are defined to 1.
16074 .IP "\fB\-fPIC\fR" 4
16075 .IX Item "-fPIC"
16076 If supported for the target machine, emit position-independent code,
16077 suitable for dynamic linking and avoiding any limit on the size of the
16078 global offset table.  This option makes a difference on the m68k,
16079 PowerPC and \s-1SPARC\s0.
16081 Position-independent code requires special support, and therefore works
16082 only on certain machines.
16084 When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
16085 are defined to 2.
16086 .IP "\fB\-fpie\fR" 4
16087 .IX Item "-fpie"
16088 .PD 0
16089 .IP "\fB\-fPIE\fR" 4
16090 .IX Item "-fPIE"
16092 These options are similar to \fB\-fpic\fR and \fB\-fPIC\fR, but
16093 generated position independent code can be only linked into executables.
16094 Usually these options are used when \fB\-pie\fR \s-1GCC\s0 option will be
16095 used during linking.
16097 \&\fB\-fpie\fR and \fB\-fPIE\fR both define the macros
16098 \&\f(CW\*(C`_\|_pie_\|_\*(C'\fR and \f(CW\*(C`_\|_PIE_\|_\*(C'\fR.  The macros have the value 1
16099 for \fB\-fpie\fR and 2 for \fB\-fPIE\fR.
16100 .IP "\fB\-fno\-jump\-tables\fR" 4
16101 .IX Item "-fno-jump-tables"
16102 Do not use jump tables for switch statements even where it would be
16103 more efficient than other code generation strategies.  This option is
16104 of use in conjunction with \fB\-fpic\fR or \fB\-fPIC\fR for
16105 building code which forms part of a dynamic linker and cannot
16106 reference the address of a jump table.  On some targets, jump tables
16107 do not require a \s-1GOT\s0 and this option is not needed.
16108 .IP "\fB\-ffixed\-\fR\fIreg\fR" 4
16109 .IX Item "-ffixed-reg"
16110 Treat the register named \fIreg\fR as a fixed register; generated code
16111 should never refer to it (except perhaps as a stack pointer, frame
16112 pointer or in some other fixed role).
16114 \&\fIreg\fR must be the name of a register.  The register names accepted
16115 are machine-specific and are defined in the \f(CW\*(C`REGISTER_NAMES\*(C'\fR
16116 macro in the machine description macro file.
16118 This flag does not have a negative form, because it specifies a
16119 three-way choice.
16120 .IP "\fB\-fcall\-used\-\fR\fIreg\fR" 4
16121 .IX Item "-fcall-used-reg"
16122 Treat the register named \fIreg\fR as an allocable register that is
16123 clobbered by function calls.  It may be allocated for temporaries or
16124 variables that do not live across a call.  Functions compiled this way
16125 will not save and restore the register \fIreg\fR.
16127 It is an error to used this flag with the frame pointer or stack pointer.
16128 Use of this flag for other registers that have fixed pervasive roles in
16129 the machine's execution model will produce disastrous results.
16131 This flag does not have a negative form, because it specifies a
16132 three-way choice.
16133 .IP "\fB\-fcall\-saved\-\fR\fIreg\fR" 4
16134 .IX Item "-fcall-saved-reg"
16135 Treat the register named \fIreg\fR as an allocable register saved by
16136 functions.  It may be allocated even for temporaries or variables that
16137 live across a call.  Functions compiled this way will save and restore
16138 the register \fIreg\fR if they use it.
16140 It is an error to used this flag with the frame pointer or stack pointer.
16141 Use of this flag for other registers that have fixed pervasive roles in
16142 the machine's execution model will produce disastrous results.
16144 A different sort of disaster will result from the use of this flag for
16145 a register in which function values may be returned.
16147 This flag does not have a negative form, because it specifies a
16148 three-way choice.
16149 .IP "\fB\-fpack\-struct[=\fR\fIn\fR\fB]\fR" 4
16150 .IX Item "-fpack-struct[=n]"
16151 Without a value specified, pack all structure members together without
16152 holes.  When a value is specified (which must be a small power of two), pack
16153 structure members according to this value, representing the maximum
16154 alignment (that is, objects with default alignment requirements larger than
16155 this will be output potentially unaligned at the next fitting location.
16157 \&\fBWarning:\fR the \fB\-fpack\-struct\fR switch causes \s-1GCC\s0 to generate
16158 code that is not binary compatible with code generated without that switch.
16159 Additionally, it makes the code suboptimal.
16160 Use it to conform to a non-default application binary interface.
16161 .IP "\fB\-finstrument\-functions\fR" 4
16162 .IX Item "-finstrument-functions"
16163 Generate instrumentation calls for entry and exit to functions.  Just
16164 after function entry and just before function exit, the following
16165 profiling functions will be called with the address of the current
16166 function and its call site.  (On some platforms,
16167 \&\f(CW\*(C`_\|_builtin_return_address\*(C'\fR does not work beyond the current
16168 function, so the call site information may not be available to the
16169 profiling functions otherwise.)
16171 .Vb 4
16172 \&        void __cyg_profile_func_enter (void *this_fn,
16173 \&                                       void *call_site);
16174 \&        void __cyg_profile_func_exit  (void *this_fn,
16175 \&                                       void *call_site);
16178 The first argument is the address of the start of the current function,
16179 which may be looked up exactly in the symbol table.
16181 This instrumentation is also done for functions expanded inline in other
16182 functions.  The profiling calls will indicate where, conceptually, the
16183 inline function is entered and exited.  This means that addressable
16184 versions of such functions must be available.  If all your uses of a
16185 function are expanded inline, this may mean an additional expansion of
16186 code size.  If you use \fBextern inline\fR in your C code, an
16187 addressable version of such functions must be provided.  (This is
16188 normally the case anyways, but if you get lucky and the optimizer always
16189 expands the functions inline, you might have gotten away without
16190 providing static copies.)
16192 A function may be given the attribute \f(CW\*(C`no_instrument_function\*(C'\fR, in
16193 which case this instrumentation will not be done.  This can be used, for
16194 example, for the profiling functions listed above, high-priority
16195 interrupt routines, and any functions from which the profiling functions
16196 cannot safely be called (perhaps signal handlers, if the profiling
16197 routines generate output or allocate memory).
16198 .IP "\fB\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,...\fR" 4
16199 .IX Item "-finstrument-functions-exclude-file-list=file,file,..."
16200 Set the list of functions that are excluded from instrumentation (see
16201 the description of \f(CW\*(C`\-finstrument\-functions\*(C'\fR).  If the file that
16202 contains a function definition matches with one of \fIfile\fR, then
16203 that function is not instrumented.  The match is done on substrings:
16204 if the \fIfile\fR parameter is a substring of the file name, it is
16205 considered to be a match.
16207 For example,
16208 \&\f(CW\*(C`\-finstrument\-functions\-exclude\-file\-list=/bits/stl,include/sys\*(C'\fR
16209 will exclude any inline function defined in files whose pathnames
16210 contain \f(CW\*(C`/bits/stl\*(C'\fR or \f(CW\*(C`include/sys\*(C'\fR.
16212 If, for some reason, you want to include letter \f(CW\(aq,\(aq\fR in one of
16213 \&\fIsym\fR, write \f(CW\(aq,\(aq\fR. For example,
16214 \&\f(CW\*(C`\-finstrument\-functions\-exclude\-file\-list=\(aq,,tmp\(aq\*(C'\fR
16215 (note the single quote surrounding the option).
16216 .IP "\fB\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,...\fR" 4
16217 .IX Item "-finstrument-functions-exclude-function-list=sym,sym,..."
16218 This is similar to \f(CW\*(C`\-finstrument\-functions\-exclude\-file\-list\*(C'\fR,
16219 but this option sets the list of function names to be excluded from
16220 instrumentation.  The function name to be matched is its user-visible
16221 name, such as \f(CW\*(C`vector<int> blah(const vector<int> &)\*(C'\fR, not the
16222 internal mangled name (e.g., \f(CW\*(C`_Z4blahRSt6vectorIiSaIiEE\*(C'\fR).  The
16223 match is done on substrings: if the \fIsym\fR parameter is a substring
16224 of the function name, it is considered to be a match.  For C99 and \*(C+
16225 extended identifiers, the function name must be given in \s-1UTF\-8\s0, not
16226 using universal character names.
16227 .IP "\fB\-fstack\-check\fR" 4
16228 .IX Item "-fstack-check"
16229 Generate code to verify that you do not go beyond the boundary of the
16230 stack.  You should specify this flag if you are running in an
16231 environment with multiple threads, but only rarely need to specify it in
16232 a single-threaded environment since stack overflow is automatically
16233 detected on nearly all systems if there is only one stack.
16235 Note that this switch does not actually cause checking to be done; the
16236 operating system or the language runtime must do that.  The switch causes
16237 generation of code to ensure that they see the stack being extended.
16239 You can additionally specify a string parameter: \f(CW\*(C`no\*(C'\fR means no
16240 checking, \f(CW\*(C`generic\*(C'\fR means force the use of old-style checking,
16241 \&\f(CW\*(C`specific\*(C'\fR means use the best checking method and is equivalent
16242 to bare \fB\-fstack\-check\fR.
16244 Old-style checking is a generic mechanism that requires no specific
16245 target support in the compiler but comes with the following drawbacks:
16246 .RS 4
16247 .IP "1." 4
16248 Modified allocation strategy for large objects: they will always be
16249 allocated dynamically if their size exceeds a fixed threshold.
16250 .IP "2." 4
16251 Fixed limit on the size of the static frame of functions: when it is
16252 topped by a particular function, stack checking is not reliable and
16253 a warning is issued by the compiler.
16254 .IP "3." 4
16255 Inefficiency: because of both the modified allocation strategy and the
16256 generic implementation, the performances of the code are hampered.
16258 .RS 4
16260 Note that old-style stack checking is also the fallback method for
16261 \&\f(CW\*(C`specific\*(C'\fR if no target support has been added in the compiler.
16263 .IP "\fB\-fstack\-limit\-register=\fR\fIreg\fR" 4
16264 .IX Item "-fstack-limit-register=reg"
16265 .PD 0
16266 .IP "\fB\-fstack\-limit\-symbol=\fR\fIsym\fR" 4
16267 .IX Item "-fstack-limit-symbol=sym"
16268 .IP "\fB\-fno\-stack\-limit\fR" 4
16269 .IX Item "-fno-stack-limit"
16271 Generate code to ensure that the stack does not grow beyond a certain value,
16272 either the value of a register or the address of a symbol.  If the stack
16273 would grow beyond the value, a signal is raised.  For most targets,
16274 the signal is raised before the stack overruns the boundary, so
16275 it is possible to catch the signal without taking special precautions.
16277 For instance, if the stack starts at absolute address \fB0x80000000\fR
16278 and grows downwards, you can use the flags
16279 \&\fB\-fstack\-limit\-symbol=_\|_stack_limit\fR and
16280 \&\fB\-Wl,\-\-defsym,_\|_stack_limit=0x7ffe0000\fR to enforce a stack limit
16281 of 128KB.  Note that this may only work with the \s-1GNU\s0 linker.
16282 .IP "\fB\-fargument\-alias\fR" 4
16283 .IX Item "-fargument-alias"
16284 .PD 0
16285 .IP "\fB\-fargument\-noalias\fR" 4
16286 .IX Item "-fargument-noalias"
16287 .IP "\fB\-fargument\-noalias\-global\fR" 4
16288 .IX Item "-fargument-noalias-global"
16289 .IP "\fB\-fargument\-noalias\-anything\fR" 4
16290 .IX Item "-fargument-noalias-anything"
16292 Specify the possible relationships among parameters and between
16293 parameters and global data.
16295 \&\fB\-fargument\-alias\fR specifies that arguments (parameters) may
16296 alias each other and may alias global storage.\fB\-fargument\-noalias\fR specifies that arguments do not alias
16297 each other, but may alias global storage.\fB\-fargument\-noalias\-global\fR specifies that arguments do not
16298 alias each other and do not alias global storage.
16299 \&\fB\-fargument\-noalias\-anything\fR specifies that arguments do not
16300 alias any other storage.
16302 Each language will automatically use whatever option is required by
16303 the language standard.  You should not need to use these options yourself.
16304 .IP "\fB\-fleading\-underscore\fR" 4
16305 .IX Item "-fleading-underscore"
16306 This option and its counterpart, \fB\-fno\-leading\-underscore\fR, forcibly
16307 change the way C symbols are represented in the object file.  One use
16308 is to help link with legacy assembly code.
16310 \&\fBWarning:\fR the \fB\-fleading\-underscore\fR switch causes \s-1GCC\s0 to
16311 generate code that is not binary compatible with code generated without that
16312 switch.  Use it to conform to a non-default application binary interface.
16313 Not all targets provide complete support for this switch.
16314 .IP "\fB\-ftls\-model=\fR\fImodel\fR" 4
16315 .IX Item "-ftls-model=model"
16316 Alter the thread-local storage model to be used.
16317 The \fImodel\fR argument should be one of \f(CW\*(C`global\-dynamic\*(C'\fR,
16318 \&\f(CW\*(C`local\-dynamic\*(C'\fR, \f(CW\*(C`initial\-exec\*(C'\fR or \f(CW\*(C`local\-exec\*(C'\fR.
16320 The default without \fB\-fpic\fR is \f(CW\*(C`initial\-exec\*(C'\fR; with
16321 \&\fB\-fpic\fR the default is \f(CW\*(C`global\-dynamic\*(C'\fR.
16322 .IP "\fB\-fvisibility=\fR\fIdefault|internal|hidden|protected\fR" 4
16323 .IX Item "-fvisibility=default|internal|hidden|protected"
16324 Set the default \s-1ELF\s0 image symbol visibility to the specified option\-\-\-all
16325 symbols will be marked with this unless overridden within the code.
16326 Using this feature can very substantially improve linking and
16327 load times of shared object libraries, produce more optimized
16328 code, provide near-perfect \s-1API\s0 export and prevent symbol clashes.
16329 It is \fBstrongly\fR recommended that you use this in any shared objects
16330 you distribute.
16332 Despite the nomenclature, \f(CW\*(C`default\*(C'\fR always means public ie;
16333 available to be linked against from outside the shared object.
16334 \&\f(CW\*(C`protected\*(C'\fR and \f(CW\*(C`internal\*(C'\fR are pretty useless in real-world
16335 usage so the only other commonly used option will be \f(CW\*(C`hidden\*(C'\fR.
16336 The default if \fB\-fvisibility\fR isn't specified is
16337 \&\f(CW\*(C`default\*(C'\fR, i.e., make every
16338 symbol public\-\-\-this causes the same behavior as previous versions of
16339 \&\s-1GCC\s0.
16341 A good explanation of the benefits offered by ensuring \s-1ELF\s0
16342 symbols have the correct visibility is given by \*(L"How To Write
16343 Shared Libraries\*(R" by Ulrich Drepper (which can be found at
16344 <\fBhttp://people.redhat.com/~drepper/\fR>)\-\-\-however a superior
16345 solution made possible by this option to marking things hidden when
16346 the default is public is to make the default hidden and mark things
16347 public.  This is the norm with \s-1DLL\s0's on Windows and with \fB\-fvisibility=hidden\fR
16348 and \f(CW\*(C`_\|_attribute_\|_ ((visibility("default")))\*(C'\fR instead of
16349 \&\f(CW\*(C`_\|_declspec(dllexport)\*(C'\fR you get almost identical semantics with
16350 identical syntax.  This is a great boon to those working with
16351 cross-platform projects.
16353 For those adding visibility support to existing code, you may find
16354 \&\fB#pragma \s-1GCC\s0 visibility\fR of use.  This works by you enclosing
16355 the declarations you wish to set visibility for with (for example)
16356 \&\fB#pragma \s-1GCC\s0 visibility push(hidden)\fR and
16357 \&\fB#pragma \s-1GCC\s0 visibility pop\fR.
16358 Bear in mind that symbol visibility should be viewed \fBas
16359 part of the \s-1API\s0 interface contract\fR and thus all new code should
16360 always specify visibility when it is not the default ie; declarations
16361 only for use within the local \s-1DSO\s0 should \fBalways\fR be marked explicitly
16362 as hidden as so to avoid \s-1PLT\s0 indirection overheads\-\-\-making this
16363 abundantly clear also aids readability and self-documentation of the code.
16364 Note that due to \s-1ISO\s0 \*(C+ specification requirements, operator new and
16365 operator delete must always be of default visibility.
16367 Be aware that headers from outside your project, in particular system
16368 headers and headers from any other library you use, may not be
16369 expecting to be compiled with visibility other than the default.  You
16370 may need to explicitly say \fB#pragma \s-1GCC\s0 visibility push(default)\fR
16371 before including any such headers.
16373 \&\fBextern\fR declarations are not affected by \fB\-fvisibility\fR, so
16374 a lot of code can be recompiled with \fB\-fvisibility=hidden\fR with
16375 no modifications.  However, this means that calls to \fBextern\fR
16376 functions with no explicit visibility will use the \s-1PLT\s0, so it is more
16377 effective to use \fB_\|_attribute ((visibility))\fR and/or
16378 \&\fB#pragma \s-1GCC\s0 visibility\fR to tell the compiler which \fBextern\fR
16379 declarations should be treated as hidden.
16381 Note that \fB\-fvisibility\fR does affect \*(C+ vague linkage
16382 entities. This means that, for instance, an exception class that will
16383 be thrown between DSOs must be explicitly marked with default
16384 visibility so that the \fBtype_info\fR nodes will be unified between
16385 the DSOs.
16387 An overview of these techniques, their benefits and how to use them
16388 is at <\fBhttp://gcc.gnu.org/wiki/Visibility\fR>.
16389 .SH "ENVIRONMENT"
16390 .IX Header "ENVIRONMENT"
16391 This section describes several environment variables that affect how \s-1GCC\s0
16392 operates.  Some of them work by specifying directories or prefixes to use
16393 when searching for various kinds of files.  Some are used to specify other
16394 aspects of the compilation environment.
16396 Note that you can also specify places to search using options such as
16397 \&\fB\-B\fR, \fB\-I\fR and \fB\-L\fR.  These
16398 take precedence over places specified using environment variables, which
16399 in turn take precedence over those specified by the configuration of \s-1GCC\s0.
16400 .IP "\fB\s-1LANG\s0\fR" 4
16401 .IX Item "LANG"
16402 .PD 0
16403 .IP "\fB\s-1LC_CTYPE\s0\fR" 4
16404 .IX Item "LC_CTYPE"
16405 .IP "\fB\s-1LC_MESSAGES\s0\fR" 4
16406 .IX Item "LC_MESSAGES"
16407 .IP "\fB\s-1LC_ALL\s0\fR" 4
16408 .IX Item "LC_ALL"
16410 These environment variables control the way that \s-1GCC\s0 uses
16411 localization information that allow \s-1GCC\s0 to work with different
16412 national conventions.  \s-1GCC\s0 inspects the locale categories
16413 \&\fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR if it has been configured to do
16414 so.  These locale categories can be set to any value supported by your
16415 installation.  A typical value is \fBen_GB.UTF\-8\fR for English in the United
16416 Kingdom encoded in \s-1UTF\-8\s0.
16418 The \fB\s-1LC_CTYPE\s0\fR environment variable specifies character
16419 classification.  \s-1GCC\s0 uses it to determine the character boundaries in
16420 a string; this is needed for some multibyte encodings that contain quote
16421 and escape characters that would otherwise be interpreted as a string
16422 end or escape.
16424 The \fB\s-1LC_MESSAGES\s0\fR environment variable specifies the language to
16425 use in diagnostic messages.
16427 If the \fB\s-1LC_ALL\s0\fR environment variable is set, it overrides the value
16428 of \fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR; otherwise, \fB\s-1LC_CTYPE\s0\fR
16429 and \fB\s-1LC_MESSAGES\s0\fR default to the value of the \fB\s-1LANG\s0\fR
16430 environment variable.  If none of these variables are set, \s-1GCC\s0
16431 defaults to traditional C English behavior.
16432 .IP "\fB\s-1TMPDIR\s0\fR" 4
16433 .IX Item "TMPDIR"
16434 If \fB\s-1TMPDIR\s0\fR is set, it specifies the directory to use for temporary
16435 files.  \s-1GCC\s0 uses temporary files to hold the output of one stage of
16436 compilation which is to be used as input to the next stage: for example,
16437 the output of the preprocessor, which is the input to the compiler
16438 proper.
16439 .IP "\fB\s-1GCC_EXEC_PREFIX\s0\fR" 4
16440 .IX Item "GCC_EXEC_PREFIX"
16441 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is set, it specifies a prefix to use in the
16442 names of the subprograms executed by the compiler.  No slash is added
16443 when this prefix is combined with the name of a subprogram, but you can
16444 specify a prefix that ends with a slash if you wish.
16446 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is not set, \s-1GCC\s0 will attempt to figure out
16447 an appropriate prefix to use based on the pathname it was invoked with.
16449 If \s-1GCC\s0 cannot find the subprogram using the specified prefix, it
16450 tries looking in the usual places for the subprogram.
16452 The default value of \fB\s-1GCC_EXEC_PREFIX\s0\fR is
16453 \&\fI\fIprefix\fI/lib/gcc/\fR where \fIprefix\fR is the prefix to
16454 the installed compiler. In many cases \fIprefix\fR is the value
16455 of \f(CW\*(C`prefix\*(C'\fR when you ran the \fIconfigure\fR script.
16457 Other prefixes specified with \fB\-B\fR take precedence over this prefix.
16459 This prefix is also used for finding files such as \fIcrt0.o\fR that are
16460 used for linking.
16462 In addition, the prefix is used in an unusual way in finding the
16463 directories to search for header files.  For each of the standard
16464 directories whose name normally begins with \fB/usr/local/lib/gcc\fR
16465 (more precisely, with the value of \fB\s-1GCC_INCLUDE_DIR\s0\fR), \s-1GCC\s0 tries
16466 replacing that beginning with the specified prefix to produce an
16467 alternate directory name.  Thus, with \fB\-Bfoo/\fR, \s-1GCC\s0 will search
16468 \&\fIfoo/bar\fR where it would normally search \fI/usr/local/lib/bar\fR.
16469 These alternate directories are searched first; the standard directories
16470 come next. If a standard directory begins with the configured
16471 \&\fIprefix\fR then the value of \fIprefix\fR is replaced by
16472 \&\fB\s-1GCC_EXEC_PREFIX\s0\fR when looking for header files.
16473 .IP "\fB\s-1COMPILER_PATH\s0\fR" 4
16474 .IX Item "COMPILER_PATH"
16475 The value of \fB\s-1COMPILER_PATH\s0\fR is a colon-separated list of
16476 directories, much like \fB\s-1PATH\s0\fR.  \s-1GCC\s0 tries the directories thus
16477 specified when searching for subprograms, if it can't find the
16478 subprograms using \fB\s-1GCC_EXEC_PREFIX\s0\fR.
16479 .IP "\fB\s-1LIBRARY_PATH\s0\fR" 4
16480 .IX Item "LIBRARY_PATH"
16481 The value of \fB\s-1LIBRARY_PATH\s0\fR is a colon-separated list of
16482 directories, much like \fB\s-1PATH\s0\fR.  When configured as a native compiler,
16483 \&\s-1GCC\s0 tries the directories thus specified when searching for special
16484 linker files, if it can't find them using \fB\s-1GCC_EXEC_PREFIX\s0\fR.  Linking
16485 using \s-1GCC\s0 also uses these directories when searching for ordinary
16486 libraries for the \fB\-l\fR option (but directories specified with
16487 \&\fB\-L\fR come first).
16488 .IP "\fB\s-1LANG\s0\fR" 4
16489 .IX Item "LANG"
16490 This variable is used to pass locale information to the compiler.  One way in
16491 which this information is used is to determine the character set to be used
16492 when character literals, string literals and comments are parsed in C and \*(C+.
16493 When the compiler is configured to allow multibyte characters,
16494 the following values for \fB\s-1LANG\s0\fR are recognized:
16495 .RS 4
16496 .IP "\fBC\-JIS\fR" 4
16497 .IX Item "C-JIS"
16498 Recognize \s-1JIS\s0 characters.
16499 .IP "\fBC\-SJIS\fR" 4
16500 .IX Item "C-SJIS"
16501 Recognize \s-1SJIS\s0 characters.
16502 .IP "\fBC\-EUCJP\fR" 4
16503 .IX Item "C-EUCJP"
16504 Recognize \s-1EUCJP\s0 characters.
16506 .RS 4
16508 If \fB\s-1LANG\s0\fR is not defined, or if it has some other value, then the
16509 compiler will use mblen and mbtowc as defined by the default locale to
16510 recognize and translate multibyte characters.
16513 Some additional environments variables affect the behavior of the
16514 preprocessor.
16515 .IP "\fB\s-1CPATH\s0\fR" 4
16516 .IX Item "CPATH"
16517 .PD 0
16518 .IP "\fBC_INCLUDE_PATH\fR" 4
16519 .IX Item "C_INCLUDE_PATH"
16520 .IP "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4
16521 .IX Item "CPLUS_INCLUDE_PATH"
16522 .IP "\fB\s-1OBJC_INCLUDE_PATH\s0\fR" 4
16523 .IX Item "OBJC_INCLUDE_PATH"
16525 Each variable's value is a list of directories separated by a special
16526 character, much like \fB\s-1PATH\s0\fR, in which to look for header files.
16527 The special character, \f(CW\*(C`PATH_SEPARATOR\*(C'\fR, is target-dependent and
16528 determined at \s-1GCC\s0 build time.  For Microsoft Windows-based targets it is a
16529 semicolon, and for almost all other targets it is a colon.
16531 \&\fB\s-1CPATH\s0\fR specifies a list of directories to be searched as if
16532 specified with \fB\-I\fR, but after any paths given with \fB\-I\fR
16533 options on the command line.  This environment variable is used
16534 regardless of which language is being preprocessed.
16536 The remaining environment variables apply only when preprocessing the
16537 particular language indicated.  Each specifies a list of directories
16538 to be searched as if specified with \fB\-isystem\fR, but after any
16539 paths given with \fB\-isystem\fR options on the command line.
16541 In all these variables, an empty element instructs the compiler to
16542 search its current working directory.  Empty elements can appear at the
16543 beginning or end of a path.  For instance, if the value of
16544 \&\fB\s-1CPATH\s0\fR is \f(CW\*(C`:/special/include\*(C'\fR, that has the same
16545 effect as \fB\-I.\ \-I/special/include\fR.
16546 .IP "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4
16547 .IX Item "DEPENDENCIES_OUTPUT"
16548 If this variable is set, its value specifies how to output
16549 dependencies for Make based on the non-system header files processed
16550 by the compiler.  System header files are ignored in the dependency
16551 output.
16553 The value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, in
16554 which case the Make rules are written to that file, guessing the target
16555 name from the source file name.  Or the value can have the form
16556 \&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written to
16557 file \fIfile\fR using \fItarget\fR as the target name.
16559 In other words, this environment variable is equivalent to combining
16560 the options \fB\-MM\fR and \fB\-MF\fR,
16561 with an optional \fB\-MT\fR switch too.
16562 .IP "\fB\s-1SUNPRO_DEPENDENCIES\s0\fR" 4
16563 .IX Item "SUNPRO_DEPENDENCIES"
16564 This variable is the same as \fB\s-1DEPENDENCIES_OUTPUT\s0\fR (see above),
16565 except that system header files are not ignored, so it implies
16566 \&\fB\-M\fR rather than \fB\-MM\fR.  However, the dependence on the
16567 main input file is omitted.
16568 .SH "BUGS"
16569 .IX Header "BUGS"
16570 For instructions on reporting bugs, see
16571 <\fBhttp://bugs.buildroot.net/\fR>.
16572 .SH "FOOTNOTES"
16573 .IX Header "FOOTNOTES"
16574 .IP "1." 4
16575 On some systems, \fBgcc \-shared\fR
16576 needs to build supplementary stub code for constructors to work.  On
16577 multi-libbed systems, \fBgcc \-shared\fR must select the correct support
16578 libraries to link against.  Failing to supply the correct flags may lead
16579 to subtle defects.  Supplying them in cases where they are not necessary
16580 is innocuous.
16581 .SH "SEE ALSO"
16582 .IX Header "SEE ALSO"
16583 \&\fIgpl\fR\|(7), \fIgfdl\fR\|(7), \fIfsf\-funding\fR\|(7),
16584 \&\fIcpp\fR\|(1), \fIgcov\fR\|(1), \fIas\fR\|(1), \fIld\fR\|(1), \fIgdb\fR\|(1), \fIadb\fR\|(1), \fIdbx\fR\|(1), \fIsdb\fR\|(1)
16585 and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIas\fR,
16586 \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
16587 .SH "AUTHOR"
16588 .IX Header "AUTHOR"
16589 See the Info entry for \fBgcc\fR, or
16590 <\fBhttp://gcc.gnu.org/onlinedocs/gcc/Contributors.html\fR>,
16591 for contributors to \s-1GCC\s0.
16592 .SH "COPYRIGHT"
16593 .IX Header "COPYRIGHT"
16594 Copyright (c) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
16595 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
16596 Free Software Foundation, Inc.
16598 Permission is granted to copy, distribute and/or modify this document
16599 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.2 or
16600 any later version published by the Free Software Foundation; with the
16601 Invariant Sections being \*(L"\s-1GNU\s0 General Public License\*(R" and \*(L"Funding
16602 Free Software\*(R", the Front-Cover texts being (a) (see below), and with
16603 the Back-Cover Texts being (b) (see below).  A copy of the license is
16604 included in the \fIgfdl\fR\|(7) man page.
16606 (a) The \s-1FSF\s0's Front-Cover Text is:
16608 .Vb 1
16609 \&     A GNU Manual
16612 (b) The \s-1FSF\s0's Back-Cover Text is:
16614 .Vb 3
16615 \&     You have freedom to copy and modify this GNU Manual, like GNU
16616 \&     software.  Copies published by the Free Software Foundation raise
16617 \&     funds for GNU development.