Merge from vendor branch OPENSSH:
[dragonfly.git] / contrib / gcc-4.0 / gcc / doc / gcc.1
1 .\" Automatically generated by Pod::Man v1.34, Pod::Parser v1.13
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
12 ..
13 .de Sp \" Vertical space (when we can't use .PP)
14 .if t .sp .5v
15 .if n .sp
16 ..
17 .de Vb \" Begin verbatim text
18 .ft CW
19 .nf
20 .ne \\$1
21 ..
22 .de Ve \" End verbatim text
23 .ft R
24 .fi
25 ..
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"
58 ..
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'
101 .\}
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 \
117 \{\
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
127 .\}
128 .rm #[ #] #H #V #F C
129 .\" ========================================================================
130 .\"
131 .IX Title "GCC 1"
132 .TH GCC 1 "2005-04-21" "gcc-4.0.0" "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] \fIinfile\fR...
144 .PP
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 ``overall options'' 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.
154 .PP
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.
159 .PP
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.
165 .PP
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\-dr\fR is very different from \fB\-d\ \-r\fR.
169 .PP
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 options
172 of the same kind; for example, if you specify \fB\-L\fR more than once,
173 the directories are searched in the order specified.
174 .PP
175 Many options have long names starting with \fB\-f\fR or with
176 \&\fB\-W\fR\-\-\-for example, \fB\-fforce\-mem\fR,
177 \&\fB\-fstrength\-reduce\fR, \fB\-Wformat\fR and so on.  Most of
178 these have both positive and negative forms; the negative form of
179 \&\fB\-ffoo\fR would be \fB\-fno\-foo\fR.  This manual documents
180 only one of these two forms, whichever one is not the default.
181 .SH "OPTIONS"
182 .IX Header "OPTIONS"
183 .Sh "Option Summary"
184 .IX Subsection "Option Summary"
185 Here is a summary of all the options, grouped by type.  Explanations are
186 in the following sections.
187 .IP "\fIOverall Options\fR" 4
188 .IX Item "Overall Options"
189 \&\fB\-c  \-S  \-E  \-o\fR \fIfile\fR  \fB\-combine \-pipe  \-pass\-exit\-codes  
190 \&\-x\fR \fIlanguage\fR  \fB\-v  \-###  \-\-help  \-\-target\-help  \-\-version\fR
191 .IP "\fIC Language Options\fR" 4
192 .IX Item "C Language Options"
193 \&\fB\-ansi  \-std=\fR\fIstandard\fR  \fB\-aux\-info\fR \fIfilename\fR 
194 \&\fB\-fno\-asm  \-fno\-builtin  \-fno\-builtin\-\fR\fIfunction\fR 
195 \&\fB\-fhosted  \-ffreestanding  \-fms\-extensions 
196 \&\-trigraphs  \-no\-integrated\-cpp  \-traditional  \-traditional\-cpp 
197 \&\-fallow\-single\-precision  \-fcond\-mismatch 
198 \&\-fsigned\-bitfields  \-fsigned\-char 
199 \&\-funsigned\-bitfields  \-funsigned\-char\fR
200 .IP "\fI\*(C+ Language Options\fR" 4
201 .IX Item " Language Options"
202 \&\fB\-fabi\-version=\fR\fIn\fR  \fB\-fno\-access\-control  \-fcheck\-new 
203 \&\-fconserve\-space  \-fno\-const\-strings 
204 \&\-fno\-elide\-constructors 
205 \&\-fno\-enforce\-eh\-specs 
206 \&\-ffor\-scope  \-fno\-for\-scope  \-fno\-gnu\-keywords 
207 \&\-fno\-implicit\-templates 
208 \&\-fno\-implicit\-inline\-templates 
209 \&\-fno\-implement\-inlines  \-fms\-extensions 
210 \&\-fno\-nonansi\-builtins  \-fno\-operator\-names 
211 \&\-fno\-optional\-diags  \-fpermissive 
212 \&\-frepo  \-fno\-rtti  \-fstats  \-ftemplate\-depth\-\fR\fIn\fR 
213 \&\fB\-fno\-threadsafe\-statics \-fuse\-cxa\-atexit  \-fno\-weak  \-nostdinc++ 
214 \&\-fno\-default\-inline  \-fvisibility\-inlines\-hidden 
215 \&\-Wabi  \-Wctor\-dtor\-privacy 
216 \&\-Wnon\-virtual\-dtor  \-Wreorder 
217 \&\-Weffc++  \-Wno\-deprecated 
218 \&\-Wno\-non\-template\-friend  \-Wold\-style\-cast 
219 \&\-Woverloaded\-virtual  \-Wno\-pmf\-conversions 
220 \&\-Wsign\-promo\fR
221 .IP "\fIObjective-C and Objective\-\*(C+ Language Options\fR" 4
222 .IX Item "Objective-C and Objective- Language Options"
223 \&\fB\-fconstant\-string\-class=\fR\fIclass-name\fR 
224 \&\fB\-fgnu\-runtime  \-fnext\-runtime 
225 \&\-fno\-nil\-receivers 
226 \&\-fobjc\-exceptions 
227 \&\-freplace\-objc\-classes 
228 \&\-fzero\-link 
229 \&\-gen\-decls 
230 \&\-Wno\-protocol  \-Wselector \-Wundeclared\-selector\fR
231 .IP "\fILanguage Independent Options\fR" 4
232 .IX Item "Language Independent Options"
233 \&\fB\-fmessage\-length=\fR\fIn\fR  
234 \&\fB\-fdiagnostics\-show\-location=\fR[\fBonce\fR|\fBevery-line\fR]
235 .IP "\fIWarning Options\fR" 4
236 .IX Item "Warning Options"
237 \&\fB\-fsyntax\-only  \-pedantic  \-pedantic\-errors 
238 \&\-w  \-Wextra  \-Wall  \-Waggregate\-return 
239 \&\-Wcast\-align  \-Wcast\-qual  \-Wchar\-subscripts  \-Wcomment 
240 \&\-Wconversion  \-Wno\-deprecated\-declarations 
241 \&\-Wdisabled\-optimization  \-Wno\-div\-by\-zero  \-Wno\-endif\-labels 
242 \&\-Werror  \-Werror\-implicit\-function\-declaration 
243 \&\-Wfatal\-errors  \-Wfloat\-equal  \-Wformat  \-Wformat=2 
244 \&\-Wno\-format\-extra\-args \-Wformat\-nonliteral 
245 \&\-Wformat\-security  \-Wformat\-y2k 
246 \&\-Wimplicit  \-Wimplicit\-function\-declaration  \-Wimplicit\-int 
247 \&\-Wimport  \-Wno\-import  \-Winit\-self  \-Winline 
248 \&\-Wno\-invalid\-offsetof  \-Winvalid\-pch 
249 \&\-Wlarger\-than\-\fR\fIlen\fR  \fB\-Wlong\-long 
250 \&\-Wmain  \-Wmissing\-braces  \-Wmissing\-field\-initializers 
251 \&\-Wmissing\-format\-attribute  \-Wmissing\-include\-dirs 
252 \&\-Wmissing\-noreturn 
253 \&\-Wno\-multichar  \-Wnonnull  \-Wpacked  \-Wpadded 
254 \&\-Wparentheses  \-Wpointer\-arith  \-Wredundant\-decls 
255 \&\-Wreturn\-type  \-Wsequence\-point  \-Wshadow 
256 \&\-Wsign\-compare  \-Wstrict\-aliasing \-Wstrict\-aliasing=2 
257 \&\-Wswitch  \-Wswitch\-default  \-Wswitch\-enum 
258 \&\-Wsystem\-headers  \-Wtrigraphs  \-Wundef  \-Wuninitialized 
259 \&\-Wunknown\-pragmas  \-Wunreachable\-code 
260 \&\-Wunused  \-Wunused\-function  \-Wunused\-label  \-Wunused\-parameter 
261 \&\-Wunused\-value  \-Wunused\-variable  \-Wwrite\-strings 
262 \&\-Wvariadic\-macros\fR
263 .IP "\fIC\-only Warning Options\fR" 4
264 .IX Item "C-only Warning Options"
265 \&\fB\-Wbad\-function\-cast  \-Wmissing\-declarations 
266 \&\-Wmissing\-prototypes  \-Wnested\-externs  \-Wold\-style\-definition 
267 \&\-Wstrict\-prototypes  \-Wtraditional 
268 \&\-Wdeclaration\-after\-statement \-Wno\-pointer\-sign\fR
269 .IP "\fIDebugging Options\fR" 4
270 .IX Item "Debugging Options"
271 \&\fB\-d\fR\fIletters\fR  \fB\-dumpspecs  \-dumpmachine  \-dumpversion 
272 \&\-fdump\-unnumbered  \-fdump\-translation\-unit\fR[\fB\-\fR\fIn\fR] 
273 \&\fB\-fdump\-class\-hierarchy\fR[\fB\-\fR\fIn\fR] 
274 \&\fB\-fdump\-ipa\-all \-fdump\-ipa\-cgraph 
275 \&\-fdump\-tree\-all 
276 \&\-fdump\-tree\-original\fR[\fB\-\fR\fIn\fR]  
277 \&\fB\-fdump\-tree\-optimized\fR[\fB\-\fR\fIn\fR] 
278 \&\fB\-fdump\-tree\-inlined\fR[\fB\-\fR\fIn\fR] 
279 \&\fB\-fdump\-tree\-cfg \-fdump\-tree\-vcg \-fdump\-tree\-alias 
280 \&\-fdump\-tree\-ch 
281 \&\-fdump\-tree\-ssa\fR[\fB\-\fR\fIn\fR] \fB\-fdump\-tree\-pre\fR[\fB\-\fR\fIn\fR] 
282 \&\fB\-fdump\-tree\-ccp\fR[\fB\-\fR\fIn\fR] \fB\-fdump\-tree\-dce\fR[\fB\-\fR\fIn\fR] 
283 \&\fB\-fdump\-tree\-gimple\fR[\fB\-raw\fR] \fB\-fdump\-tree\-mudflap\fR[\fB\-\fR\fIn\fR] 
284 \&\fB\-fdump\-tree\-dom\fR[\fB\-\fR\fIn\fR] 
285 \&\fB\-fdump\-tree\-dse\fR[\fB\-\fR\fIn\fR] 
286 \&\fB\-fdump\-tree\-phiopt\fR[\fB\-\fR\fIn\fR] 
287 \&\fB\-fdump\-tree\-forwprop\fR[\fB\-\fR\fIn\fR] 
288 \&\fB\-fdump\-tree\-copyrename\fR[\fB\-\fR\fIn\fR] 
289 \&\fB\-fdump\-tree\-nrv \-fdump\-tree\-vect 
290 \&\-fdump\-tree\-sra\fR[\fB\-\fR\fIn\fR] 
291 \&\fB\-fdump\-tree\-fre\fR[\fB\-\fR\fIn\fR] 
292 \&\fB\-ftree\-vectorizer\-verbose=\fR\fIn\fR 
293 \&\fB\-feliminate\-dwarf2\-dups \-feliminate\-unused\-debug\-types 
294 \&\-feliminate\-unused\-debug\-symbols \-fmem\-report \-fprofile\-arcs \-ftree\-based\-profiling 
295 \&\-frandom\-seed=\fR\fIstring\fR \fB\-fsched\-verbose=\fR\fIn\fR 
296 \&\fB\-ftest\-coverage  \-ftime\-report \-fvar\-tracking 
297 \&\-g  \-g\fR\fIlevel\fR  \fB\-gcoff \-gdwarf\-2 
298 \&\-ggdb  \-gstabs  \-gstabs+  \-gvms  \-gxcoff  \-gxcoff+ 
299 \&\-p  \-pg  \-print\-file\-name=\fR\fIlibrary\fR  \fB\-print\-libgcc\-file\-name 
300 \&\-print\-multi\-directory  \-print\-multi\-lib 
301 \&\-print\-prog\-name=\fR\fIprogram\fR  \fB\-print\-search\-dirs  \-Q 
302 \&\-save\-temps  \-time\fR
303 .IP "\fIOptimization Options\fR" 4
304 .IX Item "Optimization Options"
305 \&\fB\-falign\-functions=\fR\fIn\fR  \fB\-falign\-jumps=\fR\fIn\fR 
306 \&\fB\-falign\-labels=\fR\fIn\fR  \fB\-falign\-loops=\fR\fIn\fR  
307 \&\fB\-fbounds\-check \-fmudflap \-fmudflapth \-fmudflapir 
308 \&\-fbranch\-probabilities \-fprofile\-values \-fvpt \-fbranch\-target\-load\-optimize 
309 \&\-fbranch\-target\-load\-optimize2 \-fbtr\-bb\-exclusive 
310 \&\-fcaller\-saves  \-fcprop\-registers  \-fcse\-follow\-jumps 
311 \&\-fcse\-skip\-blocks  \-fcx\-limited\-range  \-fdata\-sections 
312 \&\-fdelayed\-branch  \-fdelete\-null\-pointer\-checks 
313 \&\-fexpensive\-optimizations  \-ffast\-math  \-ffloat\-store 
314 \&\-fforce\-addr  \-fforce\-mem  \-ffunction\-sections 
315 \&\-fgcse  \-fgcse\-lm  \-fgcse\-sm  \-fgcse\-las  \-fgcse\-after\-reload 
316 \&\-floop\-optimize \-fcrossjumping  \-fif\-conversion  \-fif\-conversion2 
317 \&\-finline\-functions  \-finline\-limit=\fR\fIn\fR  \fB\-fkeep\-inline\-functions 
318 \&\-fkeep\-static\-consts  \-fmerge\-constants  \-fmerge\-all\-constants 
319 \&\-fmodulo\-sched \-fno\-branch\-count\-reg 
320 \&\-fno\-default\-inline  \-fno\-defer\-pop \-floop\-optimize2 \-fmove\-loop\-invariants 
321 \&\-fno\-function\-cse  \-fno\-guess\-branch\-probability 
322 \&\-fno\-inline  \-fno\-math\-errno  \-fno\-peephole  \-fno\-peephole2 
323 \&\-funsafe\-math\-optimizations  \-ffinite\-math\-only 
324 \&\-fno\-trapping\-math  \-fno\-zero\-initialized\-in\-bss 
325 \&\-fomit\-frame\-pointer  \-foptimize\-register\-move 
326 \&\-foptimize\-sibling\-calls  \-fprefetch\-loop\-arrays 
327 \&\-fprofile\-generate \-fprofile\-use 
328 \&\-fregmove  \-frename\-registers 
329 \&\-freorder\-blocks  \-freorder\-blocks\-and\-partition \-freorder\-functions 
330 \&\-frerun\-cse\-after\-loop  \-frerun\-loop\-opt 
331 \&\-frounding\-math \-fschedule\-insns  \-fschedule\-insns2 
332 \&\-fno\-sched\-interblock  \-fno\-sched\-spec  \-fsched\-spec\-load 
333 \&\-fsched\-spec\-load\-dangerous  
334 \&\-fsched\-stalled\-insns=\fR\fIn\fR \fB\-sched\-stalled\-insns\-dep=\fR\fIn\fR 
335 \&\fB\-fsched2\-use\-superblocks 
336 \&\-fsched2\-use\-traces \-freschedule\-modulo\-scheduled\-loops 
337 \&\-fsignaling\-nans \-fsingle\-precision\-constant  \-fspeculative\-prefetching 
338 \&\-fstrength\-reduce  \-fstrict\-aliasing  \-ftracer  \-fthread\-jumps 
339 \&\-funroll\-all\-loops  \-funroll\-loops  \-fpeel\-loops 
340 \&\-fsplit\-ivs\-in\-unroller \-funswitch\-loops 
341 \&\-fvariable\-expansion\-in\-unroller 
342 \&\-ftree\-pre  \-ftree\-ccp  \-ftree\-dce \-ftree\-loop\-optimize 
343 \&\-ftree\-loop\-linear \-ftree\-loop\-im \-ftree\-loop\-ivcanon \-fivopts 
344 \&\-ftree\-dominator\-opts \-ftree\-dse \-ftree\-copyrename 
345 \&\-ftree\-ch \-ftree\-sra \-ftree\-ter \-ftree\-lrs \-ftree\-fre \-ftree\-vectorize 
346 \&\-fweb 
347 \&\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR
348 \&\fB\-O  \-O0  \-O1  \-O2  \-O3  \-Os\fR
349 .IP "\fIPreprocessor Options\fR" 4
350 .IX Item "Preprocessor Options"
351 \&\fB\-A\fR\fIquestion\fR\fB=\fR\fIanswer\fR 
352 \&\fB\-A\-\fR\fIquestion\fR[\fB=\fR\fIanswer\fR] 
353 \&\fB\-C  \-dD  \-dI  \-dM  \-dN 
354 \&\-D\fR\fImacro\fR[\fB=\fR\fIdefn\fR]  \fB\-E  \-H 
355 \&\-idirafter\fR \fIdir\fR 
356 \&\fB\-include\fR \fIfile\fR  \fB\-imacros\fR \fIfile\fR 
357 \&\fB\-iprefix\fR \fIfile\fR  \fB\-iwithprefix\fR \fIdir\fR 
358 \&\fB\-iwithprefixbefore\fR \fIdir\fR  \fB\-isystem\fR \fIdir\fR 
359 \&\fB\-M  \-MM  \-MF  \-MG  \-MP  \-MQ  \-MT  \-nostdinc  
360 \&\-P  \-fworking\-directory  \-remap 
361 \&\-trigraphs  \-undef  \-U\fR\fImacro\fR  \fB\-Wp,\fR\fIoption\fR 
362 \&\fB\-Xpreprocessor\fR \fIoption\fR
363 .IP "\fIAssembler Option\fR" 4
364 .IX Item "Assembler Option"
365 \&\fB\-Wa,\fR\fIoption\fR  \fB\-Xassembler\fR \fIoption\fR
366 .IP "\fILinker Options\fR" 4
367 .IX Item "Linker Options"
368 \&\fIobject-file-name\fR  \fB\-l\fR\fIlibrary\fR 
369 \&\fB\-nostartfiles  \-nodefaultlibs  \-nostdlib \-pie 
370 \&\-s  \-static  \-static\-libgcc  \-shared  \-shared\-libgcc  \-symbolic 
371 \&\-Wl,\fR\fIoption\fR  \fB\-Xlinker\fR \fIoption\fR 
372 \&\fB\-u\fR \fIsymbol\fR
373 .IP "\fIDirectory Options\fR" 4
374 .IX Item "Directory Options"
375 \&\fB\-B\fR\fIprefix\fR  \fB\-I\fR\fIdir\fR  \fB\-iquote\fR\fIdir\fR  \fB\-L\fR\fIdir\fR  \fB\-specs=\fR\fIfile\fR  \fB\-I\-\fR
376 .IP "\fITarget Options\fR" 4
377 .IX Item "Target Options"
378 \&\fB\-V\fR \fIversion\fR  \fB\-b\fR \fImachine\fR
379 .IP "\fIMachine Dependent Options\fR" 4
380 .IX Item "Machine Dependent Options"
381 \&\fI\s-1ARC\s0 Options\fR
382 \&\fB\-EB  \-EL 
383 \&\-mmangle\-cpu  \-mcpu=\fR\fIcpu\fR  \fB\-mtext=\fR\fItext-section\fR 
384 \&\fB\-mdata=\fR\fIdata-section\fR  \fB\-mrodata=\fR\fIreadonly-data-section\fR
385 .Sp
386 \&\fI\s-1ARM\s0 Options\fR
387 \&\fB\-mapcs\-frame  \-mno\-apcs\-frame 
388 \&\-mabi=\fR\fIname\fR 
389 \&\fB\-mapcs\-stack\-check  \-mno\-apcs\-stack\-check 
390 \&\-mapcs\-float  \-mno\-apcs\-float 
391 \&\-mapcs\-reentrant  \-mno\-apcs\-reentrant 
392 \&\-msched\-prolog  \-mno\-sched\-prolog 
393 \&\-mlittle\-endian  \-mbig\-endian  \-mwords\-little\-endian 
394 \&\-mfloat\-abi=\fR\fIname\fR  \fB\-msoft\-float  \-mhard\-float  \-mfpe 
395 \&\-mthumb\-interwork  \-mno\-thumb\-interwork 
396 \&\-mcpu=\fR\fIname\fR  \fB\-march=\fR\fIname\fR  \fB\-mfpu=\fR\fIname\fR  
397 \&\fB\-mstructure\-size\-boundary=\fR\fIn\fR 
398 \&\fB\-mabort\-on\-noreturn 
399 \&\-mlong\-calls  \-mno\-long\-calls 
400 \&\-msingle\-pic\-base  \-mno\-single\-pic\-base 
401 \&\-mpic\-register=\fR\fIreg\fR 
402 \&\fB\-mnop\-fun\-dllimport 
403 \&\-mcirrus\-fix\-invalid\-insns \-mno\-cirrus\-fix\-invalid\-insns 
404 \&\-mpoke\-function\-name 
405 \&\-mthumb  \-marm 
406 \&\-mtpcs\-frame  \-mtpcs\-leaf\-frame 
407 \&\-mcaller\-super\-interworking  \-mcallee\-super\-interworking\fR
408 .Sp
409 \&\fI\s-1AVR\s0 Options\fR
410 \&\fB\-mmcu=\fR\fImcu\fR  \fB\-msize  \-minit\-stack=\fR\fIn\fR  \fB\-mno\-interrupts 
411 \&\-mcall\-prologues  \-mno\-tablejump  \-mtiny\-stack  \-mint8\fR
412 .Sp
413 \&\fI\s-1CRIS\s0 Options\fR
414 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-march=\fR\fIcpu\fR  \fB\-mtune=\fR\fIcpu\fR 
415 \&\fB\-mmax\-stack\-frame=\fR\fIn\fR  \fB\-melinux\-stacksize=\fR\fIn\fR 
416 \&\fB\-metrax4  \-metrax100  \-mpdebug  \-mcc\-init  \-mno\-side\-effects 
417 \&\-mstack\-align  \-mdata\-align  \-mconst\-align 
418 \&\-m32\-bit  \-m16\-bit  \-m8\-bit  \-mno\-prologue\-epilogue  \-mno\-gotplt 
419 \&\-melf  \-maout  \-melinux  \-mlinux  \-sim  \-sim2 
420 \&\-mmul\-bug\-workaround  \-mno\-mul\-bug\-workaround\fR
421 .Sp
422 \&\fIDarwin Options\fR
423 \&\fB\-all_load  \-allowable_client  \-arch  \-arch_errors_fatal 
424 \&\-arch_only  \-bind_at_load  \-bundle  \-bundle_loader 
425 \&\-client_name  \-compatibility_version  \-current_version 
426 \&\-dead_strip 
427 \&\-dependency\-file  \-dylib_file  \-dylinker_install_name 
428 \&\-dynamic  \-dynamiclib  \-exported_symbols_list 
429 \&\-filelist  \-flat_namespace  \-force_cpusubtype_ALL 
430 \&\-force_flat_namespace  \-headerpad_max_install_names 
431 \&\-image_base  \-init  \-install_name  \-keep_private_externs 
432 \&\-multi_module  \-multiply_defined  \-multiply_defined_unused 
433 \&\-noall_load   \-no_dead_strip_inits_and_terms 
434 \&\-nofixprebinding \-nomultidefs  \-noprebind  \-noseglinkedit 
435 \&\-pagezero_size  \-prebind  \-prebind_all_twolevel_modules 
436 \&\-private_bundle  \-read_only_relocs  \-sectalign 
437 \&\-sectobjectsymbols  \-whyload  \-seg1addr 
438 \&\-sectcreate  \-sectobjectsymbols  \-sectorder 
439 \&\-segaddr \-segs_read_only_addr \-segs_read_write_addr 
440 \&\-seg_addr_table  \-seg_addr_table_filename  \-seglinkedit 
441 \&\-segprot  \-segs_read_only_addr  \-segs_read_write_addr 
442 \&\-single_module  \-static  \-sub_library  \-sub_umbrella 
443 \&\-twolevel_namespace  \-umbrella  \-undefined 
444 \&\-unexported_symbols_list  \-weak_reference_mismatches 
445 \&\-whatsloaded \-F \-gused \-gfull \-mone\-byte\-bool\fR
446 .Sp
447 \&\fI\s-1DEC\s0 Alpha Options\fR
448 \&\fB\-mno\-fp\-regs  \-msoft\-float  \-malpha\-as  \-mgas 
449 \&\-mieee  \-mieee\-with\-inexact  \-mieee\-conformant 
450 \&\-mfp\-trap\-mode=\fR\fImode\fR  \fB\-mfp\-rounding\-mode=\fR\fImode\fR 
451 \&\fB\-mtrap\-precision=\fR\fImode\fR  \fB\-mbuild\-constants 
452 \&\-mcpu=\fR\fIcpu-type\fR  \fB\-mtune=\fR\fIcpu-type\fR 
453 \&\fB\-mbwx  \-mmax  \-mfix  \-mcix 
454 \&\-mfloat\-vax  \-mfloat\-ieee 
455 \&\-mexplicit\-relocs  \-msmall\-data  \-mlarge\-data 
456 \&\-msmall\-text  \-mlarge\-text 
457 \&\-mmemory\-latency=\fR\fItime\fR
458 .Sp
459 \&\fI\s-1DEC\s0 Alpha/VMS Options\fR
460 \&\fB\-mvms\-return\-codes\fR
461 .Sp
462 \&\fI\s-1FRV\s0 Options\fR
463 \&\fB\-mgpr\-32  \-mgpr\-64  \-mfpr\-32  \-mfpr\-64 
464 \&\-mhard\-float  \-msoft\-float 
465 \&\-malloc\-cc  \-mfixed\-cc  \-mdword  \-mno\-dword 
466 \&\-mdouble  \-mno\-double 
467 \&\-mmedia  \-mno\-media  \-mmuladd  \-mno\-muladd 
468 \&\-mfdpic  \-minline\-plt \-mgprel\-ro  \-multilib\-library\-pic 
469 \&\-mlinked\-fp  \-mlong\-calls  \-malign\-labels 
470 \&\-mlibrary\-pic  \-macc\-4  \-macc\-8 
471 \&\-mpack  \-mno\-pack  \-mno\-eflags  \-mcond\-move  \-mno\-cond\-move 
472 \&\-mscc  \-mno\-scc  \-mcond\-exec  \-mno\-cond\-exec 
473 \&\-mvliw\-branch  \-mno\-vliw\-branch 
474 \&\-mmulti\-cond\-exec  \-mno\-multi\-cond\-exec  \-mnested\-cond\-exec 
475 \&\-mno\-nested\-cond\-exec  \-mtomcat\-stats 
476 \&\-mTLS \-mtls 
477 \&\-mcpu=\fR\fIcpu\fR
478 .Sp
479 \&\fIH8/300 Options\fR
480 \&\fB\-mrelax  \-mh  \-ms  \-mn  \-mint32  \-malign\-300\fR
481 .Sp
482 \&\fI\s-1HPPA\s0 Options\fR
483 \&\fB\-march=\fR\fIarchitecture-type\fR 
484 \&\fB\-mbig\-switch  \-mdisable\-fpregs  \-mdisable\-indexing 
485 \&\-mfast\-indirect\-calls  \-mgas  \-mgnu\-ld   \-mhp\-ld 
486 \&\-mfixed\-range=\fR\fIregister-range\fR 
487 \&\fB\-mjump\-in\-delay \-mlinker\-opt \-mlong\-calls 
488 \&\-mlong\-load\-store  \-mno\-big\-switch  \-mno\-disable\-fpregs 
489 \&\-mno\-disable\-indexing  \-mno\-fast\-indirect\-calls  \-mno\-gas 
490 \&\-mno\-jump\-in\-delay  \-mno\-long\-load\-store 
491 \&\-mno\-portable\-runtime  \-mno\-soft\-float 
492 \&\-mno\-space\-regs  \-msoft\-float  \-mpa\-risc\-1\-0 
493 \&\-mpa\-risc\-1\-1  \-mpa\-risc\-2\-0  \-mportable\-runtime 
494 \&\-mschedule=\fR\fIcpu-type\fR  \fB\-mspace\-regs  \-msio  \-mwsio 
495 \&\-munix=\fR\fIunix-std\fR  \fB\-nolibdld  \-static  \-threads\fR
496 .Sp
497 \&\fIi386 and x86\-64 Options\fR
498 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
499 \&\fB\-mfpmath=\fR\fIunit\fR 
500 \&\fB\-masm=\fR\fIdialect\fR  \fB\-mno\-fancy\-math\-387 
501 \&\-mno\-fp\-ret\-in\-387  \-msoft\-float  \-msvr3\-shlib 
502 \&\-mno\-wide\-multiply  \-mrtd  \-malign\-double 
503 \&\-mpreferred\-stack\-boundary=\fR\fInum\fR 
504 \&\fB\-mmmx  \-msse  \-msse2 \-msse3 \-m3dnow 
505 \&\-mthreads  \-mno\-align\-stringops  \-minline\-all\-stringops 
506 \&\-mpush\-args  \-maccumulate\-outgoing\-args  \-m128bit\-long\-double 
507 \&\-m96bit\-long\-double  \-mregparm=\fR\fInum\fR  \fB\-momit\-leaf\-frame\-pointer 
508 \&\-mno\-red\-zone \-mno\-tls\-direct\-seg\-refs 
509 \&\-mcmodel=\fR\fIcode-model\fR 
510 \&\fB\-m32  \-m64\fR
511 .Sp
512 \&\fI\s-1IA\-64\s0 Options\fR
513 \&\fB\-mbig\-endian  \-mlittle\-endian  \-mgnu\-as  \-mgnu\-ld  \-mno\-pic 
514 \&\-mvolatile\-asm\-stop  \-mregister\-names  \-mno\-sdata 
515 \&\-mconstant\-gp  \-mauto\-pic  \-minline\-float\-divide\-min\-latency 
516 \&\-minline\-float\-divide\-max\-throughput 
517 \&\-minline\-int\-divide\-min\-latency 
518 \&\-minline\-int\-divide\-max\-throughput  
519 \&\-minline\-sqrt\-min\-latency \-minline\-sqrt\-max\-throughput 
520 \&\-mno\-dwarf2\-asm \-mearly\-stop\-bits 
521 \&\-mfixed\-range=\fR\fIregister-range\fR \fB\-mtls\-size=\fR\fItls-size\fR 
522 \&\fB\-mtune=\fR\fIcpu-type\fR \fB\-mt \-pthread \-milp32 \-mlp64\fR
523 .Sp
524 \&\fIM32R/D Options\fR
525 \&\fB\-m32r2 \-m32rx \-m32r 
526 \&\-mdebug 
527 \&\-malign\-loops \-mno\-align\-loops 
528 \&\-missue\-rate=\fR\fInumber\fR 
529 \&\fB\-mbranch\-cost=\fR\fInumber\fR 
530 \&\fB\-mmodel=\fR\fIcode-size-model-type\fR 
531 \&\fB\-msdata=\fR\fIsdata-type\fR 
532 \&\fB\-mno\-flush\-func \-mflush\-func=\fR\fIname\fR 
533 \&\fB\-mno\-flush\-trap \-mflush\-trap=\fR\fInumber\fR 
534 \&\fB\-G\fR \fInum\fR
535 .Sp
536 \&\fIM680x0 Options\fR
537 \&\fB\-m68000  \-m68020  \-m68020\-40  \-m68020\-60  \-m68030  \-m68040 
538 \&\-m68060  \-mcpu32  \-m5200  \-m68881  \-mbitfield  \-mc68000  \-mc68020   
539 \&\-mnobitfield  \-mrtd  \-mshort  \-msoft\-float  \-mpcrel 
540 \&\-malign\-int  \-mstrict\-align  \-msep\-data  \-mno\-sep\-data 
541 \&\-mshared\-library\-id=n  \-mid\-shared\-library  \-mno\-id\-shared\-library\fR
542 .Sp
543 \&\fIM68hc1x Options\fR
544 \&\fB\-m6811  \-m6812  \-m68hc11  \-m68hc12   \-m68hcs12 
545 \&\-mauto\-incdec  \-minmax  \-mlong\-calls  \-mshort 
546 \&\-msoft\-reg\-count=\fR\fIcount\fR
547 .Sp
548 \&\fIMCore Options\fR
549 \&\fB\-mhardlit  \-mno\-hardlit  \-mdiv  \-mno\-div  \-mrelax\-immediates 
550 \&\-mno\-relax\-immediates  \-mwide\-bitfields  \-mno\-wide\-bitfields 
551 \&\-m4byte\-functions  \-mno\-4byte\-functions  \-mcallgraph\-data 
552 \&\-mno\-callgraph\-data  \-mslow\-bytes  \-mno\-slow\-bytes  \-mno\-lsim 
553 \&\-mlittle\-endian  \-mbig\-endian  \-m210  \-m340  \-mstack\-increment\fR
554 .Sp
555 \&\fI\s-1MIPS\s0 Options\fR
556 \&\fB\-EL  \-EB  \-march=\fR\fIarch\fR  \fB\-mtune=\fR\fIarch\fR 
557 \&\fB\-mips1  \-mips2  \-mips3  \-mips4  \-mips32  \-mips32r2  \-mips64 
558 \&\-mips16  \-mno\-mips16  \-mabi=\fR\fIabi\fR  \fB\-mabicalls  \-mno\-abicalls 
559 \&\-mxgot  \-mno\-xgot  \-mgp32  \-mgp64  \-mfp32  \-mfp64 
560 \&\-mhard\-float  \-msoft\-float  \-msingle\-float  \-mdouble\-float 
561 \&\-mpaired\-single  \-mips3d 
562 \&\-mint64  \-mlong64  \-mlong32  \-msym32  \-mno\-sym32 
563 \&\-G\fR\fInum\fR  \fB\-membedded\-data  \-mno\-embedded\-data 
564 \&\-muninit\-const\-in\-rodata  \-mno\-uninit\-const\-in\-rodata 
565 \&\-msplit\-addresses  \-mno\-split\-addresses  
566 \&\-mexplicit\-relocs  \-mno\-explicit\-relocs  
567 \&\-mcheck\-zero\-division  \-mno\-check\-zero\-division 
568 \&\-mdivide\-traps  \-mdivide\-breaks 
569 \&\-mmemcpy  \-mno\-memcpy  \-mlong\-calls  \-mno\-long\-calls 
570 \&\-mmad  \-mno\-mad  \-mfused\-madd  \-mno\-fused\-madd  \-nocpp 
571 \&\-mfix\-r4000  \-mno\-fix\-r4000  \-mfix\-r4400  \-mno\-fix\-r4400 
572 \&\-mfix\-vr4120  \-mno\-fix\-vr4120  \-mfix\-vr4130 
573 \&\-mfix\-sb1  \-mno\-fix\-sb1 
574 \&\-mflush\-func=\fR\fIfunc\fR  \fB\-mno\-flush\-func 
575 \&\-mbranch\-likely  \-mno\-branch\-likely 
576 \&\-mfp\-exceptions \-mno\-fp\-exceptions 
577 \&\-mvr4130\-align \-mno\-vr4130\-align\fR
578 .Sp
579 \&\fI\s-1MMIX\s0 Options\fR
580 \&\fB\-mlibfuncs  \-mno\-libfuncs  \-mepsilon  \-mno\-epsilon  \-mabi=gnu 
581 \&\-mabi=mmixware  \-mzero\-extend  \-mknuthdiv  \-mtoplevel\-symbols 
582 \&\-melf  \-mbranch\-predict  \-mno\-branch\-predict  \-mbase\-addresses 
583 \&\-mno\-base\-addresses  \-msingle\-exit  \-mno\-single\-exit\fR
584 .Sp
585 \&\fI\s-1MN10300\s0 Options\fR
586 \&\fB\-mmult\-bug  \-mno\-mult\-bug 
587 \&\-mam33  \-mno\-am33 
588 \&\-mam33\-2  \-mno\-am33\-2 
589 \&\-mno\-crt0  \-mrelax\fR
590 .Sp
591 \&\fI\s-1NS32K\s0 Options\fR
592 \&\fB\-m32032  \-m32332  \-m32532  \-m32081  \-m32381 
593 \&\-mmult\-add  \-mnomult\-add  \-msoft\-float  \-mrtd  \-mnortd 
594 \&\-mregparam  \-mnoregparam  \-msb  \-mnosb 
595 \&\-mbitfield  \-mnobitfield  \-mhimem  \-mnohimem\fR
596 .Sp
597 \&\fI\s-1PDP\-11\s0 Options\fR
598 \&\fB\-mfpu  \-msoft\-float  \-mac0  \-mno\-ac0  \-m40  \-m45  \-m10 
599 \&\-mbcopy  \-mbcopy\-builtin  \-mint32  \-mno\-int16 
600 \&\-mint16  \-mno\-int32  \-mfloat32  \-mno\-float64 
601 \&\-mfloat64  \-mno\-float32  \-mabshi  \-mno\-abshi 
602 \&\-mbranch\-expensive  \-mbranch\-cheap 
603 \&\-msplit  \-mno\-split  \-munix\-asm  \-mdec\-asm\fR
604 .Sp
605 \&\fIPowerPC Options\fR
606 See \s-1RS/6000\s0 and PowerPC Options.
607 .Sp
608 \&\fI\s-1RS/6000\s0 and PowerPC Options\fR
609 \&\fB\-mcpu=\fR\fIcpu-type\fR 
610 \&\fB\-mtune=\fR\fIcpu-type\fR 
611 \&\fB\-mpower  \-mno\-power  \-mpower2  \-mno\-power2 
612 \&\-mpowerpc  \-mpowerpc64  \-mno\-powerpc 
613 \&\-maltivec  \-mno\-altivec 
614 \&\-mpowerpc\-gpopt  \-mno\-powerpc\-gpopt 
615 \&\-mpowerpc\-gfxopt  \-mno\-powerpc\-gfxopt 
616 \&\-mnew\-mnemonics  \-mold\-mnemonics 
617 \&\-mfull\-toc   \-mminimal\-toc  \-mno\-fp\-in\-toc  \-mno\-sum\-in\-toc 
618 \&\-m64  \-m32  \-mxl\-compat  \-mno\-xl\-compat  \-mpe 
619 \&\-malign\-power  \-malign\-natural 
620 \&\-msoft\-float  \-mhard\-float  \-mmultiple  \-mno\-multiple 
621 \&\-mstring  \-mno\-string  \-mupdate  \-mno\-update 
622 \&\-mfused\-madd  \-mno\-fused\-madd  \-mbit\-align  \-mno\-bit\-align 
623 \&\-mstrict\-align  \-mno\-strict\-align  \-mrelocatable 
624 \&\-mno\-relocatable  \-mrelocatable\-lib  \-mno\-relocatable\-lib 
625 \&\-mtoc  \-mno\-toc  \-mlittle  \-mlittle\-endian  \-mbig  \-mbig\-endian 
626 \&\-mdynamic\-no\-pic 
627 \&\-mprioritize\-restricted\-insns=\fR\fIpriority\fR 
628 \&\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR 
629 \&\fB\-minsert\-sched\-nops=\fR\fIscheme\fR 
630 \&\fB\-mcall\-sysv  \-mcall\-netbsd 
631 \&\-maix\-struct\-return  \-msvr4\-struct\-return 
632 \&\-mabi=altivec  \-mabi=no\-altivec 
633 \&\-mabi=spe  \-mabi=no\-spe 
634 \&\-misel=yes  \-misel=no 
635 \&\-mspe=yes  \-mspe=no 
636 \&\-mfloat\-gprs=yes  \-mfloat\-gprs=no \-mfloat\-gprs=single \-mfloat\-gprs=double 
637 \&\-mprototype  \-mno\-prototype 
638 \&\-msim  \-mmvme  \-mads  \-myellowknife  \-memb  \-msdata 
639 \&\-msdata=\fR\fIopt\fR  \fB\-mvxworks  \-mwindiss  \-G\fR \fInum\fR  \fB\-pthread\fR
640 .Sp
641 \&\fIS/390 and zSeries Options\fR
642 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
643 \&\fB\-mhard\-float  \-msoft\-float  \-mbackchain  \-mno\-backchain 
644 \&\-mpacked\-stack  \-mno\-packed\-stack 
645 \&\-msmall\-exec  \-mno\-small\-exec  \-mmvcle \-mno\-mvcle 
646 \&\-m64  \-m31  \-mdebug  \-mno\-debug  \-mesa  \-mzarch 
647 \&\-mtpf\-trace \-mno\-tpf\-trace  \-mfused\-madd  \-mno\-fused\-madd 
648 \&\-mwarn\-framesize  \-mwarn\-dynamicstack  \-mstack\-size \-mstack\-guard\fR
649 .Sp
650 \&\fI\s-1SH\s0 Options\fR
651 \&\fB\-m1  \-m2  \-m2e  \-m3  \-m3e 
652 \&\-m4\-nofpu  \-m4\-single\-only  \-m4\-single  \-m4 
653 \&\-m4a\-nofpu \-m4a\-single\-only \-m4a\-single \-m4a \-m4al 
654 \&\-m5\-64media  \-m5\-64media\-nofpu 
655 \&\-m5\-32media  \-m5\-32media\-nofpu 
656 \&\-m5\-compact  \-m5\-compact\-nofpu 
657 \&\-mb  \-ml  \-mdalign  \-mrelax 
658 \&\-mbigtable  \-mfmovd  \-mhitachi \-mrenesas \-mno\-renesas \-mnomacsave 
659 \&\-mieee  \-misize  \-mpadstruct  \-mspace 
660 \&\-mprefergot  \-musermode\fR
661 .Sp
662 \&\fI\s-1SPARC\s0 Options\fR
663 \&\fB\-mcpu=\fR\fIcpu-type\fR 
664 \&\fB\-mtune=\fR\fIcpu-type\fR 
665 \&\fB\-mcmodel=\fR\fIcode-model\fR 
666 \&\fB\-m32  \-m64  \-mapp\-regs  \-mno\-app\-regs 
667 \&\-mfaster\-structs  \-mno\-faster\-structs 
668 \&\-mfpu  \-mno\-fpu  \-mhard\-float  \-msoft\-float 
669 \&\-mhard\-quad\-float  \-msoft\-quad\-float 
670 \&\-mimpure\-text  \-mno\-impure\-text  \-mlittle\-endian 
671 \&\-mstack\-bias  \-mno\-stack\-bias 
672 \&\-munaligned\-doubles  \-mno\-unaligned\-doubles 
673 \&\-mv8plus  \-mno\-v8plus  \-mvis  \-mno\-vis
674 \&\-threads \-pthreads\fR
675 .Sp
676 \&\fISystem V Options\fR
677 \&\fB\-Qy  \-Qn  \-YP,\fR\fIpaths\fR  \fB\-Ym,\fR\fIdir\fR
678 .Sp
679 \&\fITMS320C3x/C4x Options\fR
680 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-mbig  \-msmall  \-mregparm  \-mmemparm 
681 \&\-mfast\-fix  \-mmpyi  \-mbk  \-mti  \-mdp\-isr\-reload 
682 \&\-mrpts=\fR\fIcount\fR  \fB\-mrptb  \-mdb  \-mloop\-unsigned 
683 \&\-mparallel\-insns  \-mparallel\-mpy  \-mpreserve\-float\fR
684 .Sp
685 \&\fIV850 Options\fR
686 \&\fB\-mlong\-calls  \-mno\-long\-calls  \-mep  \-mno\-ep 
687 \&\-mprolog\-function  \-mno\-prolog\-function  \-mspace 
688 \&\-mtda=\fR\fIn\fR  \fB\-msda=\fR\fIn\fR  \fB\-mzda=\fR\fIn\fR 
689 \&\fB\-mapp\-regs  \-mno\-app\-regs 
690 \&\-mdisable\-callt  \-mno\-disable\-callt 
691 \&\-mv850e1 
692 \&\-mv850e 
693 \&\-mv850  \-mbig\-switch\fR
694 .Sp
695 \&\fI\s-1VAX\s0 Options\fR
696 \&\fB\-mg  \-mgnu  \-munix\fR
697 .Sp
698 \&\fIx86\-64 Options\fR
699 See i386 and x86\-64 Options.
700 .Sp
701 \&\fIXstormy16 Options\fR
702 \&\fB\-msim\fR
703 .Sp
704 \&\fIXtensa Options\fR
705 \&\fB\-mconst16 \-mno\-const16 
706 \&\-mfused\-madd  \-mno\-fused\-madd 
707 \&\-mtext\-section\-literals  \-mno\-text\-section\-literals 
708 \&\-mtarget\-align  \-mno\-target\-align 
709 \&\-mlongcalls  \-mno\-longcalls\fR
710 .Sp
711 \&\fIzSeries Options\fR
712 See S/390 and zSeries Options.
713 .IP "\fICode Generation Options\fR" 4
714 .IX Item "Code Generation Options"
715 \&\fB\-fcall\-saved\-\fR\fIreg\fR  \fB\-fcall\-used\-\fR\fIreg\fR 
716 \&\fB\-ffixed\-\fR\fIreg\fR  \fB\-fexceptions 
717 \&\-fnon\-call\-exceptions  \-funwind\-tables 
718 \&\-fasynchronous\-unwind\-tables 
719 \&\-finhibit\-size\-directive  \-finstrument\-functions 
720 \&\-fno\-common  \-fno\-ident 
721 \&\-fpcc\-struct\-return  \-fpic  \-fPIC \-fpie \-fPIE 
722 \&\-freg\-struct\-return  \-fshared\-data  \-fshort\-enums 
723 \&\-fshort\-double  \-fshort\-wchar 
724 \&\-fverbose\-asm  \-fpack\-struct[=\fR\fIn\fR\fB]  \-fstack\-check 
725 \&\-fstack\-limit\-register=\fR\fIreg\fR  \fB\-fstack\-limit\-symbol=\fR\fIsym\fR 
726 \&\fB\-fargument\-alias  \-fargument\-noalias 
727 \&\-fargument\-noalias\-global  \-fleading\-underscore 
728 \&\-ftls\-model=\fR\fImodel\fR 
729 \&\fB\-ftrapv  \-fwrapv  \-fbounds\-check 
730 \&\-fvisibility\fR
731 .Sh "Options Controlling the Kind of Output"
732 .IX Subsection "Options Controlling the Kind of Output"
733 Compilation can involve up to four stages: preprocessing, compilation
734 proper, assembly and linking, always in that order.  \s-1GCC\s0 is capable of
735 preprocessing and compiling several files either into several
736 assembler input files, or into one assembler input file; then each
737 assembler input file produces an object file, and linking combines all
738 the object files (those newly compiled, and those specified as input)
739 into an executable file.
740 .PP
741 For any given input file, the file name suffix determines what kind of
742 compilation is done:
743 .IP "\fIfile\fR\fB.c\fR" 4
744 .IX Item "file.c"
745 C source code which must be preprocessed.
746 .IP "\fIfile\fR\fB.i\fR" 4
747 .IX Item "file.i"
748 C source code which should not be preprocessed.
749 .IP "\fIfile\fR\fB.ii\fR" 4
750 .IX Item "file.ii"
751 \&\*(C+ source code which should not be preprocessed.
752 .IP "\fIfile\fR\fB.m\fR" 4
753 .IX Item "file.m"
754 Objective-C source code.  Note that you must link with the \fIlibobjc\fR
755 library to make an Objective-C program work.
756 .IP "\fIfile\fR\fB.mi\fR" 4
757 .IX Item "file.mi"
758 Objective-C source code which should not be preprocessed.
759 .IP "\fIfile\fR\fB.mm\fR" 4
760 .IX Item "file.mm"
761 .PD 0
762 .IP "\fIfile\fR\fB.M\fR" 4
763 .IX Item "file.M"
764 .PD
765 Objective\-\*(C+ source code.  Note that you must link with the \fIlibobjc\fR
766 library to make an Objective\-\*(C+ program work.  Note that \fB.M\fR refers
767 to a literal capital M.
768 .IP "\fIfile\fR\fB.mii\fR" 4
769 .IX Item "file.mii"
770 Objective\-\*(C+ source code which should not be preprocessed.
771 .IP "\fIfile\fR\fB.h\fR" 4
772 .IX Item "file.h"
773 C, \*(C+, Objective-C or Objective\-\*(C+ header file to be turned into a
774 precompiled header.
775 .IP "\fIfile\fR\fB.cc\fR" 4
776 .IX Item "file.cc"
777 .PD 0
778 .IP "\fIfile\fR\fB.cp\fR" 4
779 .IX Item "file.cp"
780 .IP "\fIfile\fR\fB.cxx\fR" 4
781 .IX Item "file.cxx"
782 .IP "\fIfile\fR\fB.cpp\fR" 4
783 .IX Item "file.cpp"
784 .IP "\fIfile\fR\fB.CPP\fR" 4
785 .IX Item "file.CPP"
786 .IP "\fIfile\fR\fB.c++\fR" 4
787 .IX Item "file.c++"
788 .IP "\fIfile\fR\fB.C\fR" 4
789 .IX Item "file.C"
790 .PD
791 \&\*(C+ source code which must be preprocessed.  Note that in \fB.cxx\fR,
792 the last two letters must both be literally \fBx\fR.  Likewise,
793 \&\fB.C\fR refers to a literal capital C.
794 .IP "\fIfile\fR\fB.hh\fR" 4
795 .IX Item "file.hh"
796 .PD 0
797 .IP "\fIfile\fR\fB.H\fR" 4
798 .IX Item "file.H"
799 .PD
800 \&\*(C+ header file to be turned into a precompiled header.
801 .IP "\fIfile\fR\fB.f\fR" 4
802 .IX Item "file.f"
803 .PD 0
804 .IP "\fIfile\fR\fB.for\fR" 4
805 .IX Item "file.for"
806 .IP "\fIfile\fR\fB.FOR\fR" 4
807 .IX Item "file.FOR"
808 .PD
809 Fortran source code which should not be preprocessed.
810 .IP "\fIfile\fR\fB.F\fR" 4
811 .IX Item "file.F"
812 .PD 0
813 .IP "\fIfile\fR\fB.fpp\fR" 4
814 .IX Item "file.fpp"
815 .IP "\fIfile\fR\fB.FPP\fR" 4
816 .IX Item "file.FPP"
817 .PD
818 Fortran source code which must be preprocessed (with the traditional
819 preprocessor).
820 .IP "\fIfile\fR\fB.r\fR" 4
821 .IX Item "file.r"
822 Fortran source code which must be preprocessed with a \s-1RATFOR\s0
823 preprocessor (not included with \s-1GCC\s0).
824 .IP "\fIfile\fR\fB.f90\fR" 4
825 .IX Item "file.f90"
826 .PD 0
827 .IP "\fIfile\fR\fB.f95\fR" 4
828 .IX Item "file.f95"
829 .PD
830 Fortran 90/95 source code which should not be preprocessed.
831 .IP "\fIfile\fR\fB.ads\fR" 4
832 .IX Item "file.ads"
833 Ada source code file which contains a library unit declaration (a
834 declaration of a package, subprogram, or generic, or a generic
835 instantiation), or a library unit renaming declaration (a package,
836 generic, or subprogram renaming declaration).  Such files are also
837 called \fIspecs\fR.
838 .IP "\fIfile\fR\fB.adb\fR" 4
839 .IX Item "file.adb"
840 Ada source code file containing a library unit body (a subprogram or
841 package body).  Such files are also called \fIbodies\fR.
842 .IP "\fIfile\fR\fB.s\fR" 4
843 .IX Item "file.s"
844 Assembler code.
845 .IP "\fIfile\fR\fB.S\fR" 4
846 .IX Item "file.S"
847 Assembler code which must be preprocessed.
848 .IP "\fIother\fR" 4
849 .IX Item "other"
850 An object file to be fed straight into linking.
851 Any file name with no recognized suffix is treated this way.
852 .PP
853 You can specify the input language explicitly with the \fB\-x\fR option:
854 .IP "\fB\-x\fR \fIlanguage\fR" 4
855 .IX Item "-x language"
856 Specify explicitly the \fIlanguage\fR for the following input files
857 (rather than letting the compiler choose a default based on the file
858 name suffix).  This option applies to all following input files until
859 the next \fB\-x\fR option.  Possible values for \fIlanguage\fR are:
860 .Sp
861 .Vb 10
862 \&        c  c-header  c-cpp-output
863 \&        c++  c++-header  c++-cpp-output
864 \&        objective-c  objective-c-header  objective-c-cpp-output
865 \&        objective-c++ objective-c++-header objective-c++-cpp-output
866 \&        assembler  assembler-with-cpp
867 \&        ada
868 \&        f77  f77-cpp-input  ratfor
869 \&        f95
870 \&        java
871 \&        treelang
872 .Ve
873 .IP "\fB\-x none\fR" 4
874 .IX Item "-x none"
875 Turn off any specification of a language, so that subsequent files are
876 handled according to their file name suffixes (as they are if \fB\-x\fR
877 has not been used at all).
878 .IP "\fB\-pass\-exit\-codes\fR" 4
879 .IX Item "-pass-exit-codes"
880 Normally the \fBgcc\fR program will exit with the code of 1 if any
881 phase of the compiler returns a non-success return code.  If you specify
882 \&\fB\-pass\-exit\-codes\fR, the \fBgcc\fR program will instead return with
883 numerically highest error produced by any phase that returned an error
884 indication.
885 .PP
886 If you only want some of the stages of compilation, you can use
887 \&\fB\-x\fR (or filename suffixes) to tell \fBgcc\fR where to start, and
888 one of the options \fB\-c\fR, \fB\-S\fR, or \fB\-E\fR to say where
889 \&\fBgcc\fR is to stop.  Note that some combinations (for example,
890 \&\fB\-x cpp-output \-E\fR) instruct \fBgcc\fR to do nothing at all.
891 .IP "\fB\-c\fR" 4
892 .IX Item "-c"
893 Compile or assemble the source files, but do not link.  The linking
894 stage simply is not done.  The ultimate output is in the form of an
895 object file for each source file.
896 .Sp
897 By default, the object file name for a source file is made by replacing
898 the suffix \fB.c\fR, \fB.i\fR, \fB.s\fR, etc., with \fB.o\fR.
899 .Sp
900 Unrecognized input files, not requiring compilation or assembly, are
901 ignored.
902 .IP "\fB\-S\fR" 4
903 .IX Item "-S"
904 Stop after the stage of compilation proper; do not assemble.  The output
905 is in the form of an assembler code file for each non-assembler input
906 file specified.
907 .Sp
908 By default, the assembler file name for a source file is made by
909 replacing the suffix \fB.c\fR, \fB.i\fR, etc., with \fB.s\fR.
910 .Sp
911 Input files that don't require compilation are ignored.
912 .IP "\fB\-E\fR" 4
913 .IX Item "-E"
914 Stop after the preprocessing stage; do not run the compiler proper.  The
915 output is in the form of preprocessed source code, which is sent to the
916 standard output.
917 .Sp
918 Input files which don't require preprocessing are ignored.
919 .IP "\fB\-o\fR \fIfile\fR" 4
920 .IX Item "-o file"
921 Place output in file \fIfile\fR.  This applies regardless to whatever
922 sort of output is being produced, whether it be an executable file,
923 an object file, an assembler file or preprocessed C code.
924 .Sp
925 If \fB\-o\fR is not specified, the default is to put an executable
926 file in \fIa.out\fR, the object file for
927 \&\fI\fIsource\fI.\fIsuffix\fI\fR in \fI\fIsource\fI.o\fR, its
928 assembler file in \fI\fIsource\fI.s\fR, a precompiled header file in
929 \&\fI\fIsource\fI.\fIsuffix\fI.gch\fR, and all preprocessed C source on
930 standard output.
931 .IP "\fB\-v\fR" 4
932 .IX Item "-v"
933 Print (on standard error output) the commands executed to run the stages
934 of compilation.  Also print the version number of the compiler driver
935 program and of the preprocessor and the compiler proper.
936 .IP "\fB\-###\fR" 4
937 .IX Item "-###"
938 Like \fB\-v\fR except the commands are not executed and all command
939 arguments are quoted.  This is useful for shell scripts to capture the
940 driver-generated command lines.
941 .IP "\fB\-pipe\fR" 4
942 .IX Item "-pipe"
943 Use pipes rather than temporary files for communication between the
944 various stages of compilation.  This fails to work on some systems where
945 the assembler is unable to read from a pipe; but the \s-1GNU\s0 assembler has
946 no trouble.
947 .IP "\fB\-combine\fR" 4
948 .IX Item "-combine"
949 If you are compiling multiple source files, this option tells the driver
950 to pass all the source files to the compiler at once (for those
951 languages for which the compiler can handle this).  This will allow
952 intermodule analysis (\s-1IMA\s0) to be performed by the compiler.  Currently the only
953 language for which this is supported is C.  If you pass source files for
954 multiple languages to the driver, using this option, the driver will invoke
955 the compiler(s) that support \s-1IMA\s0 once each, passing each compiler all the
956 source files appropriate for it.  For those languages that do not support
957 \&\s-1IMA\s0 this option will be ignored, and the compiler will be invoked once for
958 each source file in that language.  If you use this option in conjunction
959 with \fB\-save\-temps\fR, the compiler will generate multiple
960 pre-processed files
961 (one for each source file), but only one (combined) \fI.o\fR or
962 \&\fI.s\fR file.
963 .IP "\fB\-\-help\fR" 4
964 .IX Item "--help"
965 Print (on the standard output) a description of the command line options
966 understood by \fBgcc\fR.  If the \fB\-v\fR option is also specified
967 then \fB\-\-help\fR will also be passed on to the various processes
968 invoked by \fBgcc\fR, so that they can display the command line options
969 they accept.  If the \fB\-Wextra\fR option is also specified then command
970 line options which have no documentation associated with them will also
971 be displayed.
972 .IP "\fB\-\-target\-help\fR" 4
973 .IX Item "--target-help"
974 Print (on the standard output) a description of target specific command
975 line options for each tool.
976 .IP "\fB\-\-version\fR" 4
977 .IX Item "--version"
978 Display the version number and copyrights of the invoked \s-1GCC\s0.
979 .Sh "Compiling \*(C+ Programs"
980 .IX Subsection "Compiling  Programs"
981 \&\*(C+ source files conventionally use one of the suffixes \fB.C\fR,
982 \&\fB.cc\fR, \fB.cpp\fR, \fB.CPP\fR, \fB.c++\fR, \fB.cp\fR, or
983 \&\fB.cxx\fR; \*(C+ header files often use \fB.hh\fR or \fB.H\fR; and
984 preprocessed \*(C+ files use the suffix \fB.ii\fR.  \s-1GCC\s0 recognizes
985 files with these names and compiles them as \*(C+ programs even if you
986 call the compiler the same way as for compiling C programs (usually
987 with the name \fBgcc\fR).
988 .PP
989 However, \*(C+ programs often require class libraries as well as a
990 compiler that understands the \*(C+ language\-\-\-and under some
991 circumstances, you might want to compile programs or header files from
992 standard input, or otherwise without a suffix that flags them as \*(C+
993 programs.  You might also like to precompile a C header file with a
994 \&\fB.h\fR extension to be used in \*(C+ compilations.  \fBg++\fR is a
995 program that calls \s-1GCC\s0 with the default language set to \*(C+, and
996 automatically specifies linking against the \*(C+ library.  On many
997 systems, \fBg++\fR is also installed with the name \fBc++\fR.
998 .PP
999 When you compile \*(C+ programs, you may specify many of the same
1000 command-line options that you use for compiling programs in any
1001 language; or command-line options meaningful for C and related
1002 languages; or options that are meaningful only for \*(C+ programs.
1003 .Sh "Options Controlling C Dialect"
1004 .IX Subsection "Options Controlling C Dialect"
1005 The following options control the dialect of C (or languages derived
1006 from C, such as \*(C+, Objective-C and Objective\-\*(C+) that the compiler
1007 accepts:
1008 .IP "\fB\-ansi\fR" 4
1009 .IX Item "-ansi"
1010 In C mode, support all \s-1ISO\s0 C90 programs.  In \*(C+ mode,
1011 remove \s-1GNU\s0 extensions that conflict with \s-1ISO\s0 \*(C+.
1012 .Sp
1013 This turns off certain features of \s-1GCC\s0 that are incompatible with \s-1ISO\s0
1014 C90 (when compiling C code), or of standard \*(C+ (when compiling \*(C+ code),
1015 such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, and
1016 predefined macros such as \f(CW\*(C`unix\*(C'\fR and \f(CW\*(C`vax\*(C'\fR that identify the
1017 type of system you are using.  It also enables the undesirable and
1018 rarely used \s-1ISO\s0 trigraph feature.  For the C compiler,
1019 it disables recognition of \*(C+ style \fB//\fR comments as well as
1020 the \f(CW\*(C`inline\*(C'\fR keyword.
1021 .Sp
1022 The alternate keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_extension_\|_\*(C'\fR,
1023 \&\f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR continue to work despite
1024 \&\fB\-ansi\fR.  You would not want to use them in an \s-1ISO\s0 C program, of
1025 course, but it is useful to put them in header files that might be included
1026 in compilations done with \fB\-ansi\fR.  Alternate predefined macros
1027 such as \f(CW\*(C`_\|_unix_\|_\*(C'\fR and \f(CW\*(C`_\|_vax_\|_\*(C'\fR are also available, with or
1028 without \fB\-ansi\fR.
1029 .Sp
1030 The \fB\-ansi\fR option does not cause non-ISO programs to be
1031 rejected gratuitously.  For that, \fB\-pedantic\fR is required in
1032 addition to \fB\-ansi\fR.  
1033 .Sp
1034 The macro \f(CW\*(C`_\|_STRICT_ANSI_\|_\*(C'\fR is predefined when the \fB\-ansi\fR
1035 option is used.  Some header files may notice this macro and refrain
1036 from declaring certain functions or defining certain macros that the
1037 \&\s-1ISO\s0 standard doesn't call for; this is to avoid interfering with any
1038 programs that might use these names for other things.
1039 .Sp
1040 Functions which would normally be built in but do not have semantics
1041 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
1042 functions with \fB\-ansi\fR is used.  
1043 .IP "\fB\-std=\fR" 4
1044 .IX Item "-std="
1045 Determine the language standard.  This option is currently only
1046 supported when compiling C or \*(C+.  A value for this option must be
1047 provided; possible values are
1048 .RS 4
1049 .IP "\fBc89\fR" 4
1050 .IX Item "c89"
1051 .PD 0
1052 .IP "\fBiso9899:1990\fR" 4
1053 .IX Item "iso9899:1990"
1054 .PD
1055 \&\s-1ISO\s0 C90 (same as \fB\-ansi\fR).
1056 .IP "\fBiso9899:199409\fR" 4
1057 .IX Item "iso9899:199409"
1058 \&\s-1ISO\s0 C90 as modified in amendment 1.
1059 .IP "\fBc99\fR" 4
1060 .IX Item "c99"
1061 .PD 0
1062 .IP "\fBc9x\fR" 4
1063 .IX Item "c9x"
1064 .IP "\fBiso9899:1999\fR" 4
1065 .IX Item "iso9899:1999"
1066 .IP "\fBiso9899:199x\fR" 4
1067 .IX Item "iso9899:199x"
1068 .PD
1069 \&\s-1ISO\s0 C99.  Note that this standard is not yet fully supported; see
1070 <\fBhttp://gcc.gnu.org/gcc\-4.0/c99status.html\fR> for more information.  The
1071 names \fBc9x\fR and \fBiso9899:199x\fR are deprecated.
1072 .IP "\fBgnu89\fR" 4
1073 .IX Item "gnu89"
1074 Default, \s-1ISO\s0 C90 plus \s-1GNU\s0 extensions (including some C99 features).
1075 .IP "\fBgnu99\fR" 4
1076 .IX Item "gnu99"
1077 .PD 0
1078 .IP "\fBgnu9x\fR" 4
1079 .IX Item "gnu9x"
1080 .PD
1081 \&\s-1ISO\s0 C99 plus \s-1GNU\s0 extensions.  When \s-1ISO\s0 C99 is fully implemented in \s-1GCC\s0,
1082 this will become the default.  The name \fBgnu9x\fR is deprecated.
1083 .IP "\fBc++98\fR" 4
1084 .IX Item "c++98"
1085 The 1998 \s-1ISO\s0 \*(C+ standard plus amendments.
1086 .IP "\fBgnu++98\fR" 4
1087 .IX Item "gnu++98"
1088 The same as \fB\-std=c++98\fR plus \s-1GNU\s0 extensions.  This is the
1089 default for \*(C+ code.
1090 .RE
1091 .RS 4
1092 .Sp
1093 Even when this option is not specified, you can still use some of the
1094 features of newer standards in so far as they do not conflict with
1095 previous C standards.  For example, you may use \f(CW\*(C`_\|_restrict_\|_\*(C'\fR even
1096 when \fB\-std=c99\fR is not specified.
1097 .Sp
1098 The \fB\-std\fR options specifying some version of \s-1ISO\s0 C have the same
1099 effects as \fB\-ansi\fR, except that features that were not in \s-1ISO\s0 C90
1100 but are in the specified version (for example, \fB//\fR comments and
1101 the \f(CW\*(C`inline\*(C'\fR keyword in \s-1ISO\s0 C99) are not disabled.
1102 .RE
1103 .IP "\fB\-aux\-info\fR \fIfilename\fR" 4
1104 .IX Item "-aux-info filename"
1105 Output to the given filename prototyped declarations for all functions
1106 declared and/or defined in a translation unit, including those in header
1107 files.  This option is silently ignored in any language other than C.
1108 .Sp
1109 Besides declarations, the file indicates, in comments, the origin of
1110 each declaration (source file and line), whether the declaration was
1111 implicit, prototyped or unprototyped (\fBI\fR, \fBN\fR for new or
1112 \&\fBO\fR for old, respectively, in the first character after the line
1113 number and the colon), and whether it came from a declaration or a
1114 definition (\fBC\fR or \fBF\fR, respectively, in the following
1115 character).  In the case of function definitions, a K&R\-style list of
1116 arguments followed by their declarations is also provided, inside
1117 comments, after the declaration.
1118 .IP "\fB\-fno\-asm\fR" 4
1119 .IX Item "-fno-asm"
1120 Do not recognize \f(CW\*(C`asm\*(C'\fR, \f(CW\*(C`inline\*(C'\fR or \f(CW\*(C`typeof\*(C'\fR as a
1121 keyword, so that code can use these words as identifiers.  You can use
1122 the keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR
1123 instead.  \fB\-ansi\fR implies \fB\-fno\-asm\fR.
1124 .Sp
1125 In \*(C+, this switch only affects the \f(CW\*(C`typeof\*(C'\fR keyword, since
1126 \&\f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`inline\*(C'\fR are standard keywords.  You may want to
1127 use the \fB\-fno\-gnu\-keywords\fR flag instead, which has the same
1128 effect.  In C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this
1129 switch only affects the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, since
1130 \&\f(CW\*(C`inline\*(C'\fR is a standard keyword in \s-1ISO\s0 C99.
1131 .IP "\fB\-fno\-builtin\fR" 4
1132 .IX Item "-fno-builtin"
1133 .PD 0
1134 .IP "\fB\-fno\-builtin\-\fR\fIfunction\fR" 4
1135 .IX Item "-fno-builtin-function"
1136 .PD
1137 Don't recognize built-in functions that do not begin with
1138 \&\fB_\|_builtin_\fR as prefix.  
1139 .Sp
1140 \&\s-1GCC\s0 normally generates special code to handle certain built-in functions
1141 more efficiently; for instance, calls to \f(CW\*(C`alloca\*(C'\fR may become single
1142 instructions that adjust the stack directly, and calls to \f(CW\*(C`memcpy\*(C'\fR
1143 may become inline copy loops.  The resulting code is often both smaller
1144 and faster, but since the function calls no longer appear as such, you
1145 cannot set a breakpoint on those calls, nor can you change the behavior
1146 of the functions by linking with a different library.  In addition,
1147 when a function is recognized as a built-in function, \s-1GCC\s0 may use
1148 information about that function to warn about problems with calls to
1149 that function, or to generate more efficient code, even if the
1150 resulting code still contains calls to that function.  For example,
1151 warnings are given with \fB\-Wformat\fR for bad calls to
1152 \&\f(CW\*(C`printf\*(C'\fR, when \f(CW\*(C`printf\*(C'\fR is built in, and \f(CW\*(C`strlen\*(C'\fR is
1153 known not to modify global memory.
1154 .Sp
1155 With the \fB\-fno\-builtin\-\fR\fIfunction\fR option
1156 only the built-in function \fIfunction\fR is
1157 disabled.  \fIfunction\fR must not begin with \fB_\|_builtin_\fR.  If a
1158 function is named this is not built-in in this version of \s-1GCC\s0, this
1159 option is ignored.  There is no corresponding
1160 \&\fB\-fbuiltin\-\fR\fIfunction\fR option; if you wish to enable
1161 built-in functions selectively when using \fB\-fno\-builtin\fR or
1162 \&\fB\-ffreestanding\fR, you may define macros such as:
1163 .Sp
1164 .Vb 2
1165 \&        #define abs(n)          __builtin_abs ((n))
1166 \&        #define strcpy(d, s)    __builtin_strcpy ((d), (s))
1167 .Ve
1168 .IP "\fB\-fhosted\fR" 4
1169 .IX Item "-fhosted"
1170 Assert that compilation takes place in a hosted environment.  This implies
1171 \&\fB\-fbuiltin\fR.  A hosted environment is one in which the
1172 entire standard library is available, and in which \f(CW\*(C`main\*(C'\fR has a return
1173 type of \f(CW\*(C`int\*(C'\fR.  Examples are nearly everything except a kernel.
1174 This is equivalent to \fB\-fno\-freestanding\fR.
1175 .IP "\fB\-ffreestanding\fR" 4
1176 .IX Item "-ffreestanding"
1177 Assert that compilation takes place in a freestanding environment.  This
1178 implies \fB\-fno\-builtin\fR.  A freestanding environment
1179 is one in which the standard library may not exist, and program startup may
1180 not necessarily be at \f(CW\*(C`main\*(C'\fR.  The most obvious example is an \s-1OS\s0 kernel.
1181 This is equivalent to \fB\-fno\-hosted\fR.
1182 .IP "\fB\-fms\-extensions\fR" 4
1183 .IX Item "-fms-extensions"
1184 Accept some non-standard constructs used in Microsoft header files.
1185 .Sp
1186 Some cases of unnamed fields in structures and unions are only
1187 accepted with this option.  
1188 .IP "\fB\-trigraphs\fR" 4
1189 .IX Item "-trigraphs"
1190 Support \s-1ISO\s0 C trigraphs.  The \fB\-ansi\fR option (and \fB\-std\fR
1191 options for strict \s-1ISO\s0 C conformance) implies \fB\-trigraphs\fR.
1192 .IP "\fB\-no\-integrated\-cpp\fR" 4
1193 .IX Item "-no-integrated-cpp"
1194 Performs a compilation in two passes: preprocessing and compiling.  This
1195 option allows a user supplied \*(L"cc1\*(R", \*(L"cc1plus\*(R", or \*(L"cc1obj\*(R" via the
1196 \&\fB\-B\fR option.  The user supplied compilation step can then add in
1197 an additional preprocessing step after normal preprocessing but before
1198 compiling.  The default is to use the integrated cpp (internal cpp)
1199 .Sp
1200 The semantics of this option will change if \*(L"cc1\*(R", \*(L"cc1plus\*(R", and
1201 \&\*(L"cc1obj\*(R" are merged.
1202 .IP "\fB\-traditional\fR" 4
1203 .IX Item "-traditional"
1204 .PD 0
1205 .IP "\fB\-traditional\-cpp\fR" 4
1206 .IX Item "-traditional-cpp"
1207 .PD
1208 Formerly, these options caused \s-1GCC\s0 to attempt to emulate a pre-standard
1209 C compiler.  They are now only supported with the \fB\-E\fR switch.
1210 The preprocessor continues to support a pre-standard mode.  See the \s-1GNU\s0
1211 \&\s-1CPP\s0 manual for details.
1212 .IP "\fB\-fcond\-mismatch\fR" 4
1213 .IX Item "-fcond-mismatch"
1214 Allow conditional expressions with mismatched types in the second and
1215 third arguments.  The value of such an expression is void.  This option
1216 is not supported for \*(C+.
1217 .IP "\fB\-funsigned\-char\fR" 4
1218 .IX Item "-funsigned-char"
1219 Let the type \f(CW\*(C`char\*(C'\fR be unsigned, like \f(CW\*(C`unsigned char\*(C'\fR.
1220 .Sp
1221 Each kind of machine has a default for what \f(CW\*(C`char\*(C'\fR should
1222 be.  It is either like \f(CW\*(C`unsigned char\*(C'\fR by default or like
1223 \&\f(CW\*(C`signed char\*(C'\fR by default.
1224 .Sp
1225 Ideally, a portable program should always use \f(CW\*(C`signed char\*(C'\fR or
1226 \&\f(CW\*(C`unsigned char\*(C'\fR when it depends on the signedness of an object.
1227 But many programs have been written to use plain \f(CW\*(C`char\*(C'\fR and
1228 expect it to be signed, or expect it to be unsigned, depending on the
1229 machines they were written for.  This option, and its inverse, let you
1230 make such a program work with the opposite default.
1231 .Sp
1232 The type \f(CW\*(C`char\*(C'\fR is always a distinct type from each of
1233 \&\f(CW\*(C`signed char\*(C'\fR or \f(CW\*(C`unsigned char\*(C'\fR, even though its behavior
1234 is always just like one of those two.
1235 .IP "\fB\-fsigned\-char\fR" 4
1236 .IX Item "-fsigned-char"
1237 Let the type \f(CW\*(C`char\*(C'\fR be signed, like \f(CW\*(C`signed char\*(C'\fR.
1238 .Sp
1239 Note that this is equivalent to \fB\-fno\-unsigned\-char\fR, which is
1240 the negative form of \fB\-funsigned\-char\fR.  Likewise, the option
1241 \&\fB\-fno\-signed\-char\fR is equivalent to \fB\-funsigned\-char\fR.
1242 .IP "\fB\-fsigned\-bitfields\fR" 4
1243 .IX Item "-fsigned-bitfields"
1244 .PD 0
1245 .IP "\fB\-funsigned\-bitfields\fR" 4
1246 .IX Item "-funsigned-bitfields"
1247 .IP "\fB\-fno\-signed\-bitfields\fR" 4
1248 .IX Item "-fno-signed-bitfields"
1249 .IP "\fB\-fno\-unsigned\-bitfields\fR" 4
1250 .IX Item "-fno-unsigned-bitfields"
1251 .PD
1252 These options control whether a bit-field is signed or unsigned, when the
1253 declaration does not use either \f(CW\*(C`signed\*(C'\fR or \f(CW\*(C`unsigned\*(C'\fR.  By
1254 default, such a bit-field is signed, because this is consistent: the
1255 basic integer types such as \f(CW\*(C`int\*(C'\fR are signed types.
1256 .Sh "Options Controlling \*(C+ Dialect"
1257 .IX Subsection "Options Controlling  Dialect"
1258 This section describes the command-line options that are only meaningful
1259 for \*(C+ programs; but you can also use most of the \s-1GNU\s0 compiler options
1260 regardless of what language your program is in.  For example, you
1261 might compile a file \f(CW\*(C`firstClass.C\*(C'\fR like this:
1262 .PP
1263 .Vb 1
1264 \&        g++ -g -frepo -O -c firstClass.C
1265 .Ve
1266 .PP
1267 In this example, only \fB\-frepo\fR is an option meant
1268 only for \*(C+ programs; you can use the other options with any
1269 language supported by \s-1GCC\s0.
1270 .PP
1271 Here is a list of options that are \fIonly\fR for compiling \*(C+ programs:
1272 .IP "\fB\-fabi\-version=\fR\fIn\fR" 4
1273 .IX Item "-fabi-version=n"
1274 Use version \fIn\fR of the \*(C+ \s-1ABI\s0.  Version 2 is the version of the
1275 \&\*(C+ \s-1ABI\s0 that first appeared in G++ 3.4.  Version 1 is the version of
1276 the \*(C+ \s-1ABI\s0 that first appeared in G++ 3.2.  Version 0 will always be
1277 the version that conforms most closely to the \*(C+ \s-1ABI\s0 specification.
1278 Therefore, the \s-1ABI\s0 obtained using version 0 will change as \s-1ABI\s0 bugs
1279 are fixed.
1280 .Sp
1281 The default is version 2.
1282 .IP "\fB\-fno\-access\-control\fR" 4
1283 .IX Item "-fno-access-control"
1284 Turn off all access checking.  This switch is mainly useful for working
1285 around bugs in the access control code.
1286 .IP "\fB\-fcheck\-new\fR" 4
1287 .IX Item "-fcheck-new"
1288 Check that the pointer returned by \f(CW\*(C`operator new\*(C'\fR is non-null
1289 before attempting to modify the storage allocated.  This check is
1290 normally unnecessary because the \*(C+ standard specifies that
1291 \&\f(CW\*(C`operator new\*(C'\fR will only return \f(CW0\fR if it is declared
1292 \&\fB\f(BIthrow()\fB\fR, in which case the compiler will always check the
1293 return value even without this option.  In all other cases, when
1294 \&\f(CW\*(C`operator new\*(C'\fR has a non-empty exception specification, memory
1295 exhaustion is signalled by throwing \f(CW\*(C`std::bad_alloc\*(C'\fR.  See also
1296 \&\fBnew (nothrow)\fR.
1297 .IP "\fB\-fconserve\-space\fR" 4
1298 .IX Item "-fconserve-space"
1299 Put uninitialized or runtime-initialized global variables into the
1300 common segment, as C does.  This saves space in the executable at the
1301 cost of not diagnosing duplicate definitions.  If you compile with this
1302 flag and your program mysteriously crashes after \f(CW\*(C`main()\*(C'\fR has
1303 completed, you may have an object that is being destroyed twice because
1304 two definitions were merged.
1305 .Sp
1306 This option is no longer useful on most targets, now that support has
1307 been added for putting variables into \s-1BSS\s0 without making them common.
1308 .IP "\fB\-fno\-const\-strings\fR" 4
1309 .IX Item "-fno-const-strings"
1310 Give string constants type \f(CW\*(C`char *\*(C'\fR instead of type \f(CW\*(C`const
1311 char *\*(C'\fR.  By default, G++ uses type \f(CW\*(C`const char *\*(C'\fR as required by
1312 the standard.  Even if you use \fB\-fno\-const\-strings\fR, you cannot
1313 actually modify the value of a string constant.
1314 .Sp
1315 This option might be removed in a future release of G++.  For maximum
1316 portability, you should structure your code so that it works with
1317 string constants that have type \f(CW\*(C`const char *\*(C'\fR.
1318 .IP "\fB\-fno\-elide\-constructors\fR" 4
1319 .IX Item "-fno-elide-constructors"
1320 The \*(C+ standard allows an implementation to omit creating a temporary
1321 which is only used to initialize another object of the same type.
1322 Specifying this option disables that optimization, and forces G++ to
1323 call the copy constructor in all cases.
1324 .IP "\fB\-fno\-enforce\-eh\-specs\fR" 4
1325 .IX Item "-fno-enforce-eh-specs"
1326 Don't check for violation of exception specifications at runtime.  This
1327 option violates the \*(C+ standard, but may be useful for reducing code
1328 size in production builds, much like defining \fB\s-1NDEBUG\s0\fR.  The compiler
1329 will still optimize based on the exception specifications.
1330 .IP "\fB\-ffor\-scope\fR" 4
1331 .IX Item "-ffor-scope"
1332 .PD 0
1333 .IP "\fB\-fno\-for\-scope\fR" 4
1334 .IX Item "-fno-for-scope"
1335 .PD
1336 If \fB\-ffor\-scope\fR is specified, the scope of variables declared in
1337 a \fIfor-init-statement\fR is limited to the \fBfor\fR loop itself,
1338 as specified by the \*(C+ standard.
1339 If \fB\-fno\-for\-scope\fR is specified, the scope of variables declared in
1340 a \fIfor-init-statement\fR extends to the end of the enclosing scope,
1341 as was the case in old versions of G++, and other (traditional)
1342 implementations of \*(C+.
1343 .Sp
1344 The default if neither flag is given to follow the standard,
1345 but to allow and give a warning for old-style code that would
1346 otherwise be invalid, or have different behavior.
1347 .IP "\fB\-fno\-gnu\-keywords\fR" 4
1348 .IX Item "-fno-gnu-keywords"
1349 Do not recognize \f(CW\*(C`typeof\*(C'\fR as a keyword, so that code can use this
1350 word as an identifier.  You can use the keyword \f(CW\*(C`_\|_typeof_\|_\*(C'\fR instead.
1351 \&\fB\-ansi\fR implies \fB\-fno\-gnu\-keywords\fR.
1352 .IP "\fB\-fno\-implicit\-templates\fR" 4
1353 .IX Item "-fno-implicit-templates"
1354 Never emit code for non-inline templates which are instantiated
1355 implicitly (i.e. by use); only emit code for explicit instantiations.
1356 .IP "\fB\-fno\-implicit\-inline\-templates\fR" 4
1357 .IX Item "-fno-implicit-inline-templates"
1358 Don't emit code for implicit instantiations of inline templates, either.
1359 The default is to handle inlines differently so that compiles with and
1360 without optimization will need the same set of explicit instantiations.
1361 .IP "\fB\-fno\-implement\-inlines\fR" 4
1362 .IX Item "-fno-implement-inlines"
1363 To save space, do not emit out-of-line copies of inline functions
1364 controlled by \fB#pragma implementation\fR.  This will cause linker
1365 errors if these functions are not inlined everywhere they are called.
1366 .IP "\fB\-fms\-extensions\fR" 4
1367 .IX Item "-fms-extensions"
1368 Disable pedantic warnings about constructs used in \s-1MFC\s0, such as implicit
1369 int and getting a pointer to member function via non-standard syntax.
1370 .IP "\fB\-fno\-nonansi\-builtins\fR" 4
1371 .IX Item "-fno-nonansi-builtins"
1372 Disable built-in declarations of functions that are not mandated by
1373 \&\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,
1374 \&\f(CW\*(C`index\*(C'\fR, \f(CW\*(C`bzero\*(C'\fR, \f(CW\*(C`conjf\*(C'\fR, and other related functions.
1375 .IP "\fB\-fno\-operator\-names\fR" 4
1376 .IX Item "-fno-operator-names"
1377 Do not treat the operator name keywords \f(CW\*(C`and\*(C'\fR, \f(CW\*(C`bitand\*(C'\fR,
1378 \&\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
1379 synonyms as keywords.
1380 .IP "\fB\-fno\-optional\-diags\fR" 4
1381 .IX Item "-fno-optional-diags"
1382 Disable diagnostics that the standard says a compiler does not need to
1383 issue.  Currently, the only such diagnostic issued by G++ is the one for
1384 a name having multiple meanings within a class.
1385 .IP "\fB\-fpermissive\fR" 4
1386 .IX Item "-fpermissive"
1387 Downgrade some diagnostics about nonconformant code from errors to
1388 warnings.  Thus, using \fB\-fpermissive\fR will allow some
1389 nonconforming code to compile.
1390 .IP "\fB\-frepo\fR" 4
1391 .IX Item "-frepo"
1392 Enable automatic template instantiation at link time.  This option also
1393 implies \fB\-fno\-implicit\-templates\fR.  
1394 .IP "\fB\-fno\-rtti\fR" 4
1395 .IX Item "-fno-rtti"
1396 Disable generation of information about every class with virtual
1397 functions for use by the \*(C+ runtime type identification features
1398 (\fBdynamic_cast\fR and \fBtypeid\fR).  If you don't use those parts
1399 of the language, you can save some space by using this flag.  Note that
1400 exception handling uses the same information, but it will generate it as
1401 needed.
1402 .IP "\fB\-fstats\fR" 4
1403 .IX Item "-fstats"
1404 Emit statistics about front-end processing at the end of the compilation.
1405 This information is generally only useful to the G++ development team.
1406 .IP "\fB\-ftemplate\-depth\-\fR\fIn\fR" 4
1407 .IX Item "-ftemplate-depth-n"
1408 Set the maximum instantiation depth for template classes to \fIn\fR.
1409 A limit on the template instantiation depth is needed to detect
1410 endless recursions during template class instantiation.  \s-1ANSI/ISO\s0 \*(C+
1411 conforming programs must not rely on a maximum depth greater than 17.
1412 .IP "\fB\-fno\-threadsafe\-statics\fR" 4
1413 .IX Item "-fno-threadsafe-statics"
1414 Do not emit the extra code to use the routines specified in the \*(C+
1415 \&\s-1ABI\s0 for thread-safe initialization of local statics.  You can use this
1416 option to reduce code size slightly in code that doesn't need to be
1417 thread\-safe.
1418 .IP "\fB\-fuse\-cxa\-atexit\fR" 4
1419 .IX Item "-fuse-cxa-atexit"
1420 Register destructors for objects with static storage duration with the
1421 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR function rather than the \f(CW\*(C`atexit\*(C'\fR function.
1422 This option is required for fully standards-compliant handling of static
1423 destructors, but will only work if your C library supports
1424 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR.
1425 .IP "\fB\-fvisibility\-inlines\-hidden\fR" 4
1426 .IX Item "-fvisibility-inlines-hidden"
1427 Causes all inlined methods to be marked with
1428 \&\f(CW\*(C`_\|_attribute_\|_ ((visibility ("hidden")))\*(C'\fR so that they do not
1429 appear in the export table of a \s-1DSO\s0 and do not require a \s-1PLT\s0 indirection
1430 when used within the \s-1DSO\s0.  Enabling this option can have a dramatic effect
1431 on load and link times of a \s-1DSO\s0 as it massively reduces the size of the
1432 dynamic export table when the library makes heavy use of templates.  While
1433 it can cause bloating through duplication of code within each \s-1DSO\s0 where
1434 it is used, often the wastage is less than the considerable space occupied
1435 by a long symbol name in the export table which is typical when using
1436 templates and namespaces.  For even more savings, combine with the
1437 \&\fB\-fvisibility=hidden\fR switch.
1438 .IP "\fB\-fno\-weak\fR" 4
1439 .IX Item "-fno-weak"
1440 Do not use weak symbol support, even if it is provided by the linker.
1441 By default, G++ will use weak symbols if they are available.  This
1442 option exists only for testing, and should not be used by end\-users;
1443 it will result in inferior code and has no benefits.  This option may
1444 be removed in a future release of G++.
1445 .IP "\fB\-nostdinc++\fR" 4
1446 .IX Item "-nostdinc++"
1447 Do not search for header files in the standard directories specific to
1448 \&\*(C+, but do still search the other standard directories.  (This option
1449 is used when building the \*(C+ library.)
1450 .PP
1451 In addition, these optimization, warning, and code generation options
1452 have meanings only for \*(C+ programs:
1453 .IP "\fB\-fno\-default\-inline\fR" 4
1454 .IX Item "-fno-default-inline"
1455 Do not assume \fBinline\fR for functions defined inside a class scope.
1456   Note that these
1457 functions will have linkage like inline functions; they just won't be
1458 inlined by default.
1459 .IP "\fB\-Wabi\fR (\*(C+ only)" 4
1460 .IX Item "-Wabi ( only)"
1461 Warn when G++ generates code that is probably not compatible with the
1462 vendor-neutral \*(C+ \s-1ABI\s0.  Although an effort has been made to warn about
1463 all such cases, there are probably some cases that are not warned about,
1464 even though G++ is generating incompatible code.  There may also be
1465 cases where warnings are emitted even though the code that is generated
1466 will be compatible.
1467 .Sp
1468 You should rewrite your code to avoid these warnings if you are
1469 concerned about the fact that code generated by G++ may not be binary
1470 compatible with code generated by other compilers.
1471 .Sp
1472 The known incompatibilities at this point include:
1473 .RS 4
1474 .IP "\(bu" 4
1475 Incorrect handling of tail-padding for bit\-fields.  G++ may attempt to
1476 pack data into the same byte as a base class.  For example:
1477 .Sp
1478 .Vb 2
1479 \&        struct A { virtual void f(); int f1 : 1; };
1480 \&        struct B : public A { int f2 : 1; };
1481 .Ve
1482 .Sp
1483 In this case, G++ will place \f(CW\*(C`B::f2\*(C'\fR into the same byte
1484 as\f(CW\*(C`A::f1\*(C'\fR; other compilers will not.  You can avoid this problem
1485 by explicitly padding \f(CW\*(C`A\*(C'\fR so that its size is a multiple of the
1486 byte size on your platform; that will cause G++ and other compilers to
1487 layout \f(CW\*(C`B\*(C'\fR identically.
1488 .IP "\(bu" 4
1489 Incorrect handling of tail-padding for virtual bases.  G++ does not use
1490 tail padding when laying out virtual bases.  For example:
1491 .Sp
1492 .Vb 3
1493 \&        struct A { virtual void f(); char c1; };
1494 \&        struct B { B(); char c2; };
1495 \&        struct C : public A, public virtual B {};
1496 .Ve
1497 .Sp
1498 In this case, G++ will not place \f(CW\*(C`B\*(C'\fR into the tail-padding for
1499 \&\f(CW\*(C`A\*(C'\fR; other compilers will.  You can avoid this problem by
1500 explicitly padding \f(CW\*(C`A\*(C'\fR so that its size is a multiple of its
1501 alignment (ignoring virtual base classes); that will cause G++ and other
1502 compilers to layout \f(CW\*(C`C\*(C'\fR identically.
1503 .IP "\(bu" 4
1504 Incorrect handling of bit-fields with declared widths greater than that
1505 of their underlying types, when the bit-fields appear in a union.  For
1506 example:
1507 .Sp
1508 .Vb 1
1509 \&        union U { int i : 4096; };
1510 .Ve
1511 .Sp
1512 Assuming that an \f(CW\*(C`int\*(C'\fR does not have 4096 bits, G++ will make the
1513 union too small by the number of bits in an \f(CW\*(C`int\*(C'\fR.
1514 .IP "\(bu" 4
1515 Empty classes can be placed at incorrect offsets.  For example:
1516 .Sp
1517 .Vb 1
1518 \&        struct A {};
1519 .Ve
1520 .Sp
1521 .Vb 4
1522 \&        struct B {
1523 \&          A a;
1524 \&          virtual void f ();
1525 \&        };
1526 .Ve
1527 .Sp
1528 .Vb 1
1529 \&        struct C : public B, public A {};
1530 .Ve
1531 .Sp
1532 G++ will place the \f(CW\*(C`A\*(C'\fR base class of \f(CW\*(C`C\*(C'\fR at a nonzero offset;
1533 it should be placed at offset zero.  G++ mistakenly believes that the
1534 \&\f(CW\*(C`A\*(C'\fR data member of \f(CW\*(C`B\*(C'\fR is already at offset zero.
1535 .IP "\(bu" 4
1536 Names of template functions whose types involve \f(CW\*(C`typename\*(C'\fR or
1537 template template parameters can be mangled incorrectly.
1538 .Sp
1539 .Vb 2
1540 \&        template <typename Q>
1541 \&        void f(typename Q::X) {}
1542 .Ve
1543 .Sp
1544 .Vb 2
1545 \&        template <template <typename> class Q>
1546 \&        void f(typename Q<int>::X) {}
1547 .Ve
1548 .Sp
1549 Instantiations of these templates may be mangled incorrectly.
1550 .RE
1551 .RS 4
1552 .RE
1553 .IP "\fB\-Wctor\-dtor\-privacy\fR (\*(C+ only)" 4
1554 .IX Item "-Wctor-dtor-privacy ( only)"
1555 Warn when a class seems unusable because all the constructors or
1556 destructors in that class are private, and it has neither friends nor
1557 public static member functions.
1558 .IP "\fB\-Wnon\-virtual\-dtor\fR (\*(C+ only)" 4
1559 .IX Item "-Wnon-virtual-dtor ( only)"
1560 Warn when a class appears to be polymorphic, thereby requiring a virtual
1561 destructor, yet it declares a non-virtual one.
1562 This warning is enabled by \fB\-Wall\fR.
1563 .IP "\fB\-Wreorder\fR (\*(C+ only)" 4
1564 .IX Item "-Wreorder ( only)"
1565 Warn when the order of member initializers given in the code does not
1566 match the order in which they must be executed.  For instance:
1567 .Sp
1568 .Vb 5
1569 \&        struct A {
1570 \&          int i;
1571 \&          int j;
1572 \&          A(): j (0), i (1) { }
1573 \&        };
1574 .Ve
1575 .Sp
1576 The compiler will rearrange the member initializers for \fBi\fR
1577 and \fBj\fR to match the declaration order of the members, emitting
1578 a warning to that effect.  This warning is enabled by \fB\-Wall\fR.
1579 .PP
1580 The following \fB\-W...\fR options are not affected by \fB\-Wall\fR.
1581 .IP "\fB\-Weffc++\fR (\*(C+ only)" 4
1582 .IX Item "-Weffc++ ( only)"
1583 Warn about violations of the following style guidelines from Scott Meyers'
1584 \&\fIEffective \*(C+\fR book:
1585 .RS 4
1586 .IP "\(bu" 4
1587 Item 11:  Define a copy constructor and an assignment operator for classes
1588 with dynamically allocated memory.
1589 .IP "\(bu" 4
1590 Item 12:  Prefer initialization to assignment in constructors.
1591 .IP "\(bu" 4
1592 Item 14:  Make destructors virtual in base classes.
1593 .IP "\(bu" 4
1594 Item 15:  Have \f(CW\*(C`operator=\*(C'\fR return a reference to \f(CW*this\fR.
1595 .IP "\(bu" 4
1596 Item 23:  Don't try to return a reference when you must return an object.
1597 .RE
1598 .RS 4
1599 .Sp
1600 Also warn about violations of the following style guidelines from
1601 Scott Meyers' \fIMore Effective \*(C+\fR book:
1602 .IP "\(bu" 4
1603 Item 6:  Distinguish between prefix and postfix forms of increment and
1604 decrement operators.
1605 .IP "\(bu" 4
1606 Item 7:  Never overload \f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`||\*(C'\fR, or \f(CW\*(C`,\*(C'\fR.
1607 .RE
1608 .RS 4
1609 .Sp
1610 When selecting this option, be aware that the standard library
1611 headers do not obey all of these guidelines; use \fBgrep \-v\fR
1612 to filter out those warnings.
1613 .RE
1614 .IP "\fB\-Wno\-deprecated\fR (\*(C+ only)" 4
1615 .IX Item "-Wno-deprecated ( only)"
1616 Do not warn about usage of deprecated features.  
1617 .IP "\fB\-Wno\-non\-template\-friend\fR (\*(C+ only)" 4
1618 .IX Item "-Wno-non-template-friend ( only)"
1619 Disable warnings when non-templatized friend functions are declared
1620 within a template.  Since the advent of explicit template specification
1621 support in G++, if the name of the friend is an unqualified-id (i.e.,
1622 \&\fBfriend foo(int)\fR), the \*(C+ language specification demands that the
1623 friend declare or define an ordinary, nontemplate function.  (Section
1624 14.5.3).  Before G++ implemented explicit specification, unqualified-ids
1625 could be interpreted as a particular specialization of a templatized
1626 function.  Because this non-conforming behavior is no longer the default
1627 behavior for G++, \fB\-Wnon\-template\-friend\fR allows the compiler to
1628 check existing code for potential trouble spots and is on by default.
1629 This new compiler behavior can be turned off with
1630 \&\fB\-Wno\-non\-template\-friend\fR which keeps the conformant compiler code
1631 but disables the helpful warning.
1632 .IP "\fB\-Wold\-style\-cast\fR (\*(C+ only)" 4
1633 .IX Item "-Wold-style-cast ( only)"
1634 Warn if an old-style (C\-style) cast to a non-void type is used within
1635 a \*(C+ program.  The new-style casts (\fBstatic_cast\fR,
1636 \&\fBreinterpret_cast\fR, and \fBconst_cast\fR) are less vulnerable to
1637 unintended effects and much easier to search for.
1638 .IP "\fB\-Woverloaded\-virtual\fR (\*(C+ only)" 4
1639 .IX Item "-Woverloaded-virtual ( only)"
1640 Warn when a function declaration hides virtual functions from a
1641 base class.  For example, in:
1642 .Sp
1643 .Vb 3
1644 \&        struct A {
1645 \&          virtual void f();
1646 \&        };
1647 .Ve
1648 .Sp
1649 .Vb 3
1650 \&        struct B: public A {
1651 \&          void f(int);
1652 \&        };
1653 .Ve
1654 .Sp
1655 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
1656 like:
1657 .Sp
1658 .Vb 2
1659 \&        B* b;
1660 \&        b->f();
1661 .Ve
1662 .Sp
1663 will fail to compile.
1664 .IP "\fB\-Wno\-pmf\-conversions\fR (\*(C+ only)" 4
1665 .IX Item "-Wno-pmf-conversions ( only)"
1666 Disable the diagnostic for converting a bound pointer to member function
1667 to a plain pointer.
1668 .IP "\fB\-Wsign\-promo\fR (\*(C+ only)" 4
1669 .IX Item "-Wsign-promo ( only)"
1670 Warn when overload resolution chooses a promotion from unsigned or
1671 enumerated type to a signed type, over a conversion to an unsigned type of
1672 the same size.  Previous versions of G++ would try to preserve
1673 unsignedness, but the standard mandates the current behavior.
1674 .Sp
1675 .Vb 4
1676 \&        struct A {
1677 \&          operator int ();
1678 \&          A& operator = (int);
1679 \&        };
1680 .Ve
1681 .Sp
1682 .Vb 5
1683 \&        main ()
1684 \&        {
1685 \&          A a,b;
1686 \&          a = b;
1687 \&        }
1688 .Ve
1689 .Sp
1690 In this example, G++ will synthesize a default \fBA& operator =
1691 (const A&);\fR, while cfront will use the user-defined \fBoperator =\fR.
1692 .Sh "Options Controlling Objective-C and Objective\-\*(C+ Dialects"
1693 .IX Subsection "Options Controlling Objective-C and Objective- Dialects"
1694 (\s-1NOTE:\s0 This manual does not describe the Objective-C and Objective\-\*(C+
1695 languages themselves.  See 
1696 .PP
1697 This section describes the command-line options that are only meaningful
1698 for Objective-C and Objective\-\*(C+ programs, but you can also use most of
1699 the language-independent \s-1GNU\s0 compiler options.
1700 For example, you might compile a file \f(CW\*(C`some_class.m\*(C'\fR like this:
1701 .PP
1702 .Vb 1
1703 \&        gcc -g -fgnu-runtime -O -c some_class.m
1704 .Ve
1705 .PP
1706 In this example, \fB\-fgnu\-runtime\fR is an option meant only for
1707 Objective-C and Objective\-\*(C+ programs; you can use the other options with
1708 any language supported by \s-1GCC\s0.
1709 .PP
1710 Note that since Objective-C is an extension of the C language, Objective-C
1711 compilations may also use options specific to the C front-end (e.g.,
1712 \&\fB\-Wtraditional\fR).  Similarly, Objective\-\*(C+ compilations may use
1713 \&\*(C+\-specific options (e.g., \fB\-Wabi\fR).
1714 .PP
1715 Here is a list of options that are \fIonly\fR for compiling Objective-C
1716 and Objective\-\*(C+ programs:
1717 .IP "\fB\-fconstant\-string\-class=\fR\fIclass-name\fR" 4
1718 .IX Item "-fconstant-string-class=class-name"
1719 Use \fIclass-name\fR as the name of the class to instantiate for each
1720 literal string specified with the syntax \f(CW\*(C`@"..."\*(C'\fR.  The default
1721 class name is \f(CW\*(C`NXConstantString\*(C'\fR if the \s-1GNU\s0 runtime is being used, and
1722 \&\f(CW\*(C`NSConstantString\*(C'\fR if the NeXT runtime is being used (see below).  The
1723 \&\fB\-fconstant\-cfstrings\fR option, if also present, will override the
1724 \&\fB\-fconstant\-string\-class\fR setting and cause \f(CW\*(C`@"..."\*(C'\fR literals
1725 to be laid out as constant CoreFoundation strings.
1726 .IP "\fB\-fgnu\-runtime\fR" 4
1727 .IX Item "-fgnu-runtime"
1728 Generate object code compatible with the standard \s-1GNU\s0 Objective-C
1729 runtime.  This is the default for most types of systems.
1730 .IP "\fB\-fnext\-runtime\fR" 4
1731 .IX Item "-fnext-runtime"
1732 Generate output compatible with the NeXT runtime.  This is the default
1733 for NeXT-based systems, including Darwin and Mac \s-1OS\s0 X.  The macro
1734 \&\f(CW\*(C`_\|_NEXT_RUNTIME_\|_\*(C'\fR is predefined if (and only if) this option is
1735 used.
1736 .IP "\fB\-fno\-nil\-receivers\fR" 4
1737 .IX Item "-fno-nil-receivers"
1738 Assume that all Objective-C message dispatches (e.g.,
1739 \&\f(CW\*(C`[receiver message:arg]\*(C'\fR) in this translation unit ensure that the receiver
1740 is not \f(CW\*(C`nil\*(C'\fR.  This allows for more efficient entry points in the runtime
1741 to be used.  Currently, this option is only available in conjunction with
1742 the NeXT runtime on Mac \s-1OS\s0 X 10.3 and later.
1743 .IP "\fB\-fobjc\-exceptions\fR" 4
1744 .IX Item "-fobjc-exceptions"
1745 Enable syntactic support for structured exception handling in Objective\-C,
1746 similar to what is offered by \*(C+ and Java.  Currently, this option is only
1747 available in conjunction with the NeXT runtime on Mac \s-1OS\s0 X 10.3 and later.
1748 .Sp
1749 .Vb 23
1750 \&          @try {
1751 \&            ...
1752 \&               @throw expr;
1753 \&            ...
1754 \&          }
1755 \&          @catch (AnObjCClass *exc) {
1756 \&            ...
1757 \&              @throw expr;
1758 \&            ...
1759 \&              @throw;
1760 \&            ...
1761 \&          }
1762 \&          @catch (AnotherClass *exc) {
1763 \&            ...
1764 \&          }
1765 \&          @catch (id allOthers) {
1766 \&            ...
1767 \&          }
1768 \&          @finally {
1769 \&            ...
1770 \&              @throw expr;
1771 \&            ...
1772 \&          }
1773 .Ve
1774 .Sp
1775 The \f(CW@throw\fR statement may appear anywhere in an Objective-C or
1776 Objective\-\*(C+ program; when used inside of a \f(CW@catch\fR block, the
1777 \&\f(CW@throw\fR may appear without an argument (as shown above), in which case
1778 the object caught by the \f(CW@catch\fR will be rethrown.
1779 .Sp
1780 Note that only (pointers to) Objective-C objects may be thrown and
1781 caught using this scheme.  When an object is thrown, it will be caught
1782 by the nearest \f(CW@catch\fR clause capable of handling objects of that type,
1783 analogously to how \f(CW\*(C`catch\*(C'\fR blocks work in \*(C+ and Java.  A
1784 \&\f(CW\*(C`@catch(id ...)\*(C'\fR clause (as shown above) may also be provided to catch
1785 any and all Objective-C exceptions not caught by previous \f(CW@catch\fR
1786 clauses (if any).
1787 .Sp
1788 The \f(CW@finally\fR clause, if present, will be executed upon exit from the
1789 immediately preceding \f(CW\*(C`@try ... @catch\*(C'\fR section.  This will happen
1790 regardless of whether any exceptions are thrown, caught or rethrown
1791 inside the \f(CW\*(C`@try ... @catch\*(C'\fR section, analogously to the behavior
1792 of the \f(CW\*(C`finally\*(C'\fR clause in Java.
1793 .Sp
1794 There are several caveats to using the new exception mechanism:
1795 .RS 4
1796 .IP "\(bu" 4
1797 Although currently designed to be binary compatible with \f(CW\*(C`NS_HANDLER\*(C'\fR\-style
1798 idioms provided by the \f(CW\*(C`NSException\*(C'\fR class, the new
1799 exceptions can only be used on Mac \s-1OS\s0 X 10.3 (Panther) and later
1800 systems, due to additional functionality needed in the (NeXT) Objective-C
1801 runtime.
1802 .IP "\(bu" 4
1803 As mentioned above, the new exceptions do not support handling
1804 types other than Objective-C objects.   Furthermore, when used from
1805 Objective\-\*(C+, the Objective-C exception model does not interoperate with \*(C+
1806 exceptions at this time.  This means you cannot \f(CW@throw\fR an exception
1807 from Objective-C and \f(CW\*(C`catch\*(C'\fR it in \*(C+, or vice versa
1808 (i.e., \f(CW\*(C`throw ... @catch\*(C'\fR).
1809 .RE
1810 .RS 4
1811 .Sp
1812 The \fB\-fobjc\-exceptions\fR switch also enables the use of synchronization
1813 blocks for thread-safe execution:
1814 .Sp
1815 .Vb 3
1816 \&          @synchronized (ObjCClass *guard) {
1817 \&            ...
1818 \&          }
1819 .Ve
1820 .Sp
1821 Upon entering the \f(CW@synchronized\fR block, a thread of execution shall
1822 first check whether a lock has been placed on the corresponding \f(CW\*(C`guard\*(C'\fR
1823 object by another thread.  If it has, the current thread shall wait until
1824 the other thread relinquishes its lock.  Once \f(CW\*(C`guard\*(C'\fR becomes available,
1825 the current thread will place its own lock on it, execute the code contained in
1826 the \f(CW@synchronized\fR block, and finally relinquish the lock (thereby
1827 making \f(CW\*(C`guard\*(C'\fR available to other threads).
1828 .Sp
1829 Unlike Java, Objective-C does not allow for entire methods to be marked
1830 \&\f(CW@synchronized\fR.  Note that throwing exceptions out of
1831 \&\f(CW@synchronized\fR blocks is allowed, and will cause the guarding object
1832 to be unlocked properly.
1833 .RE
1834 .IP "\fB\-freplace\-objc\-classes\fR" 4
1835 .IX Item "-freplace-objc-classes"
1836 Emit a special marker instructing \fB\f(BIld\fB\|(1)\fR not to statically link in
1837 the resulting object file, and allow \fB\f(BIdyld\fB\|(1)\fR to load it in at
1838 run time instead.  This is used in conjunction with the Fix-and-Continue
1839 debugging mode, where the object file in question may be recompiled and
1840 dynamically reloaded in the course of program execution, without the need
1841 to restart the program itself.  Currently, Fix-and-Continue functionality
1842 is only available in conjunction with the NeXT runtime on Mac \s-1OS\s0 X 10.3
1843 and later.
1844 .IP "\fB\-fzero\-link\fR" 4
1845 .IX Item "-fzero-link"
1846 When compiling for the NeXT runtime, the compiler ordinarily replaces calls
1847 to \f(CW\*(C`objc_getClass("...")\*(C'\fR (when the name of the class is known at
1848 compile time) with static class references that get initialized at load time,
1849 which improves run-time performance.  Specifying the \fB\-fzero\-link\fR flag
1850 suppresses this behavior and causes calls to \f(CW\*(C`objc_getClass("...")\*(C'\fR
1851 to be retained.  This is useful in Zero-Link debugging mode, since it allows
1852 for individual class implementations to be modified during program execution.
1853 .IP "\fB\-gen\-decls\fR" 4
1854 .IX Item "-gen-decls"
1855 Dump interface declarations for all classes seen in the source file to a
1856 file named \fI\fIsourcename\fI.decl\fR.
1857 .IP "\fB\-Wno\-protocol\fR" 4
1858 .IX Item "-Wno-protocol"
1859 If a class is declared to implement a protocol, a warning is issued for
1860 every method in the protocol that is not implemented by the class.  The
1861 default behavior is to issue a warning for every method not explicitly
1862 implemented in the class, even if a method implementation is inherited
1863 from the superclass.  If you use the \fB\-Wno\-protocol\fR option, then
1864 methods inherited from the superclass are considered to be implemented,
1865 and no warning is issued for them.
1866 .IP "\fB\-Wselector\fR" 4
1867 .IX Item "-Wselector"
1868 Warn if multiple methods of different types for the same selector are
1869 found during compilation.  The check is performed on the list of methods
1870 in the final stage of compilation.  Additionally, a check is performed
1871 for each selector appearing in a \f(CW\*(C`@selector(...)\*(C'\fR
1872 expression, and a corresponding method for that selector has been found
1873 during compilation.  Because these checks scan the method table only at
1874 the end of compilation, these warnings are not produced if the final
1875 stage of compilation is not reached, for example because an error is
1876 found during compilation, or because the \fB\-fsyntax\-only\fR option is
1877 being used.
1878 .IP "\fB\-Wundeclared\-selector\fR" 4
1879 .IX Item "-Wundeclared-selector"
1880 Warn if a \f(CW\*(C`@selector(...)\*(C'\fR expression referring to an
1881 undeclared selector is found.  A selector is considered undeclared if no
1882 method with that name has been declared before the
1883 \&\f(CW\*(C`@selector(...)\*(C'\fR expression, either explicitly in an
1884 \&\f(CW@interface\fR or \f(CW@protocol\fR declaration, or implicitly in
1885 an \f(CW@implementation\fR section.  This option always performs its
1886 checks as soon as a \f(CW\*(C`@selector(...)\*(C'\fR expression is found,
1887 while \fB\-Wselector\fR only performs its checks in the final stage of
1888 compilation.  This also enforces the coding style convention
1889 that methods and selectors must be declared before being used.
1890 .IP "\fB\-print\-objc\-runtime\-info\fR" 4
1891 .IX Item "-print-objc-runtime-info"
1892 Generate C header describing the largest structure that is passed by
1893 value, if any.
1894 .Sh "Options to Control Diagnostic Messages Formatting"
1895 .IX Subsection "Options to Control Diagnostic Messages Formatting"
1896 Traditionally, diagnostic messages have been formatted irrespective of
1897 the output device's aspect (e.g. its width, ...).  The options described
1898 below can be used to control the diagnostic messages formatting
1899 algorithm, e.g. how many characters per line, how often source location
1900 information should be reported.  Right now, only the \*(C+ front end can
1901 honor these options.  However it is expected, in the near future, that
1902 the remaining front ends would be able to digest them correctly.
1903 .IP "\fB\-fmessage\-length=\fR\fIn\fR" 4
1904 .IX Item "-fmessage-length=n"
1905 Try to format error messages so that they fit on lines of about \fIn\fR
1906 characters.  The default is 72 characters for \fBg++\fR and 0 for the rest of
1907 the front ends supported by \s-1GCC\s0.  If \fIn\fR is zero, then no
1908 line-wrapping will be done; each error message will appear on a single
1909 line.
1910 .IP "\fB\-fdiagnostics\-show\-location=once\fR" 4
1911 .IX Item "-fdiagnostics-show-location=once"
1912 Only meaningful in line-wrapping mode.  Instructs the diagnostic messages
1913 reporter to emit \fIonce\fR source location information; that is, in
1914 case the message is too long to fit on a single physical line and has to
1915 be wrapped, the source location won't be emitted (as prefix) again,
1916 over and over, in subsequent continuation lines.  This is the default
1917 behavior.
1918 .IP "\fB\-fdiagnostics\-show\-location=every\-line\fR" 4
1919 .IX Item "-fdiagnostics-show-location=every-line"
1920 Only meaningful in line-wrapping mode.  Instructs the diagnostic
1921 messages reporter to emit the same source location information (as
1922 prefix) for physical lines that result from the process of breaking
1923 a message which is too long to fit on a single line.
1924 .Sh "Options to Request or Suppress Warnings"
1925 .IX Subsection "Options to Request or Suppress Warnings"
1926 Warnings are diagnostic messages that report constructions which
1927 are not inherently erroneous but which are risky or suggest there
1928 may have been an error.
1929 .PP
1930 You can request many specific warnings with options beginning \fB\-W\fR,
1931 for example \fB\-Wimplicit\fR to request warnings on implicit
1932 declarations.  Each of these specific warning options also has a
1933 negative form beginning \fB\-Wno\-\fR to turn off warnings;
1934 for example, \fB\-Wno\-implicit\fR.  This manual lists only one of the
1935 two forms, whichever is not the default.
1936 .PP
1937 The following options control the amount and kinds of warnings produced
1938 by \s-1GCC\s0; for further, language-specific options also refer to
1939 \&\fB\*(C+ Dialect Options\fR and \fBObjective-C and Objective\-\*(C+ Dialect
1940 Options\fR.
1941 .IP "\fB\-fsyntax\-only\fR" 4
1942 .IX Item "-fsyntax-only"
1943 Check the code for syntax errors, but don't do anything beyond that.
1944 .IP "\fB\-pedantic\fR" 4
1945 .IX Item "-pedantic"
1946 Issue all the warnings demanded by strict \s-1ISO\s0 C and \s-1ISO\s0 \*(C+;
1947 reject all programs that use forbidden extensions, and some other
1948 programs that do not follow \s-1ISO\s0 C and \s-1ISO\s0 \*(C+.  For \s-1ISO\s0 C, follows the
1949 version of the \s-1ISO\s0 C standard specified by any \fB\-std\fR option used.
1950 .Sp
1951 Valid \s-1ISO\s0 C and \s-1ISO\s0 \*(C+ programs should compile properly with or without
1952 this option (though a rare few will require \fB\-ansi\fR or a
1953 \&\fB\-std\fR option specifying the required version of \s-1ISO\s0 C).  However,
1954 without this option, certain \s-1GNU\s0 extensions and traditional C and \*(C+
1955 features are supported as well.  With this option, they are rejected.
1956 .Sp
1957 \&\fB\-pedantic\fR does not cause warning messages for use of the
1958 alternate keywords whose names begin and end with \fB_\|_\fR.  Pedantic
1959 warnings are also disabled in the expression that follows
1960 \&\f(CW\*(C`_\|_extension_\|_\*(C'\fR.  However, only system header files should use
1961 these escape routes; application programs should avoid them.
1962 .Sp
1963 Some users try to use \fB\-pedantic\fR to check programs for strict \s-1ISO\s0
1964 C conformance.  They soon find that it does not do quite what they want:
1965 it finds some non-ISO practices, but not all\-\-\-only those for which
1966 \&\s-1ISO\s0 C \fIrequires\fR a diagnostic, and some others for which
1967 diagnostics have been added.
1968 .Sp
1969 A feature to report any failure to conform to \s-1ISO\s0 C might be useful in
1970 some instances, but would require considerable additional work and would
1971 be quite different from \fB\-pedantic\fR.  We don't have plans to
1972 support such a feature in the near future.
1973 .Sp
1974 Where the standard specified with \fB\-std\fR represents a \s-1GNU\s0
1975 extended dialect of C, such as \fBgnu89\fR or \fBgnu99\fR, there is a
1976 corresponding \fIbase standard\fR, the version of \s-1ISO\s0 C on which the \s-1GNU\s0
1977 extended dialect is based.  Warnings from \fB\-pedantic\fR are given
1978 where they are required by the base standard.  (It would not make sense
1979 for such warnings to be given only for features not in the specified \s-1GNU\s0
1980 C dialect, since by definition the \s-1GNU\s0 dialects of C include all
1981 features the compiler supports with the given option, and there would be
1982 nothing to warn about.)
1983 .IP "\fB\-pedantic\-errors\fR" 4
1984 .IX Item "-pedantic-errors"
1985 Like \fB\-pedantic\fR, except that errors are produced rather than
1986 warnings.
1987 .IP "\fB\-w\fR" 4
1988 .IX Item "-w"
1989 Inhibit all warning messages.
1990 .IP "\fB\-Wno\-import\fR" 4
1991 .IX Item "-Wno-import"
1992 Inhibit warning messages about the use of \fB#import\fR.
1993 .IP "\fB\-Wchar\-subscripts\fR" 4
1994 .IX Item "-Wchar-subscripts"
1995 Warn if an array subscript has type \f(CW\*(C`char\*(C'\fR.  This is a common cause
1996 of error, as programmers often forget that this type is signed on some
1997 machines.
1998 This warning is enabled by \fB\-Wall\fR.
1999 .IP "\fB\-Wcomment\fR" 4
2000 .IX Item "-Wcomment"
2001 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
2002 comment, or whenever a Backslash-Newline appears in a \fB//\fR comment.
2003 This warning is enabled by \fB\-Wall\fR.
2004 .IP "\fB\-Wfatal\-errors\fR" 4
2005 .IX Item "-Wfatal-errors"
2006 This option causes the compiler to abort compilation on the first error
2007 occurred rather than trying to keep going and printing further error
2008 messages.
2009 .IP "\fB\-Wformat\fR" 4
2010 .IX Item "-Wformat"
2011 Check calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR, etc., to make sure that
2012 the arguments supplied have types appropriate to the format string
2013 specified, and that the conversions specified in the format string make
2014 sense.  This includes standard functions, and others specified by format
2015 attributes, in the \f(CW\*(C`printf\*(C'\fR,
2016 \&\f(CW\*(C`scanf\*(C'\fR, \f(CW\*(C`strftime\*(C'\fR and \f(CW\*(C`strfmon\*(C'\fR (an X/Open extension,
2017 not in the C standard) families (or other target-specific families).
2018 Which functions are checked without format attributes having been
2019 specified depends on the standard version selected, and such checks of
2020 functions without the attribute specified are disabled by
2021 \&\fB\-ffreestanding\fR or \fB\-fno\-builtin\fR.
2022 .Sp
2023 The formats are checked against the format features supported by \s-1GNU\s0
2024 libc version 2.2.  These include all \s-1ISO\s0 C90 and C99 features, as well
2025 as features from the Single Unix Specification and some \s-1BSD\s0 and \s-1GNU\s0
2026 extensions.  Other library implementations may not support all these
2027 features; \s-1GCC\s0 does not support warning about features that go beyond a
2028 particular library's limitations.  However, if \fB\-pedantic\fR is used
2029 with \fB\-Wformat\fR, warnings will be given about format features not
2030 in the selected standard version (but not for \f(CW\*(C`strfmon\*(C'\fR formats,
2031 since those are not in any version of the C standard).  
2032 .Sp
2033 Since \fB\-Wformat\fR also checks for null format arguments for
2034 several functions, \fB\-Wformat\fR also implies \fB\-Wnonnull\fR.
2035 .Sp
2036 \&\fB\-Wformat\fR is included in \fB\-Wall\fR.  For more control over some
2037 aspects of format checking, the options \fB\-Wformat\-y2k\fR,
2038 \&\fB\-Wno\-format\-extra\-args\fR, \fB\-Wno\-format\-zero\-length\fR,
2039 \&\fB\-Wformat\-nonliteral\fR, \fB\-Wformat\-security\fR, and
2040 \&\fB\-Wformat=2\fR are available, but are not included in \fB\-Wall\fR.
2041 .IP "\fB\-Wformat\-y2k\fR" 4
2042 .IX Item "-Wformat-y2k"
2043 If \fB\-Wformat\fR is specified, also warn about \f(CW\*(C`strftime\*(C'\fR
2044 formats which may yield only a two-digit year.
2045 .IP "\fB\-Wno\-format\-extra\-args\fR" 4
2046 .IX Item "-Wno-format-extra-args"
2047 If \fB\-Wformat\fR is specified, do not warn about excess arguments to a
2048 \&\f(CW\*(C`printf\*(C'\fR or \f(CW\*(C`scanf\*(C'\fR format function.  The C standard specifies
2049 that such arguments are ignored.
2050 .Sp
2051 Where the unused arguments lie between used arguments that are
2052 specified with \fB$\fR operand number specifications, normally
2053 warnings are still given, since the implementation could not know what
2054 type to pass to \f(CW\*(C`va_arg\*(C'\fR to skip the unused arguments.  However,
2055 in the case of \f(CW\*(C`scanf\*(C'\fR formats, this option will suppress the
2056 warning if the unused arguments are all pointers, since the Single
2057 Unix Specification says that such unused arguments are allowed.
2058 .IP "\fB\-Wno\-format\-zero\-length\fR" 4
2059 .IX Item "-Wno-format-zero-length"
2060 If \fB\-Wformat\fR is specified, do not warn about zero-length formats.
2061 The C standard specifies that zero-length formats are allowed.
2062 .IP "\fB\-Wformat\-nonliteral\fR" 4
2063 .IX Item "-Wformat-nonliteral"
2064 If \fB\-Wformat\fR is specified, also warn if the format string is not a
2065 string literal and so cannot be checked, unless the format function
2066 takes its format arguments as a \f(CW\*(C`va_list\*(C'\fR.
2067 .IP "\fB\-Wformat\-security\fR" 4
2068 .IX Item "-Wformat-security"
2069 If \fB\-Wformat\fR is specified, also warn about uses of format
2070 functions that represent possible security problems.  At present, this
2071 warns about calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR functions where the
2072 format string is not a string literal and there are no format arguments,
2073 as in \f(CW\*(C`printf (foo);\*(C'\fR.  This may be a security hole if the format
2074 string came from untrusted input and contains \fB%n\fR.  (This is
2075 currently a subset of what \fB\-Wformat\-nonliteral\fR warns about, but
2076 in future warnings may be added to \fB\-Wformat\-security\fR that are not
2077 included in \fB\-Wformat\-nonliteral\fR.)
2078 .IP "\fB\-Wformat=2\fR" 4
2079 .IX Item "-Wformat=2"
2080 Enable \fB\-Wformat\fR plus format checks not included in
2081 \&\fB\-Wformat\fR.  Currently equivalent to \fB\-Wformat
2082 \&\-Wformat\-nonliteral \-Wformat\-security \-Wformat\-y2k\fR.
2083 .IP "\fB\-Wnonnull\fR" 4
2084 .IX Item "-Wnonnull"
2085 Warn about passing a null pointer for arguments marked as
2086 requiring a non-null value by the \f(CW\*(C`nonnull\*(C'\fR function attribute.
2087 .Sp
2088 \&\fB\-Wnonnull\fR is included in \fB\-Wall\fR and \fB\-Wformat\fR.  It
2089 can be disabled with the \fB\-Wno\-nonnull\fR option.
2090 .IP "\fB\-Winit\-self\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
2091 .IX Item "-Winit-self (C, , Objective-C and Objective- only)"
2092 Warn about uninitialized variables which are initialized with themselves.
2093 Note this option can only be used with the \fB\-Wuninitialized\fR option,
2094 which in turn only works with \fB\-O1\fR and above.
2095 .Sp
2096 For example, \s-1GCC\s0 will warn about \f(CW\*(C`i\*(C'\fR being uninitialized in the
2097 following snippet only when \fB\-Winit\-self\fR has been specified:
2098 .Sp
2099 .Vb 5
2100 \&        int f()
2101 \&        {
2102 \&          int i = i;
2103 \&          return i;
2104 \&        }
2105 .Ve
2106 .IP "\fB\-Wimplicit\-int\fR" 4
2107 .IX Item "-Wimplicit-int"
2108 Warn when a declaration does not specify a type.
2109 This warning is enabled by \fB\-Wall\fR.
2110 .IP "\fB\-Wimplicit\-function\-declaration\fR" 4
2111 .IX Item "-Wimplicit-function-declaration"
2112 .PD 0
2113 .IP "\fB\-Werror\-implicit\-function\-declaration\fR" 4
2114 .IX Item "-Werror-implicit-function-declaration"
2115 .PD
2116 Give a warning (or error) whenever a function is used before being
2117 declared.  The form \fB\-Wno\-error\-implicit\-function\-declaration\fR
2118 is not supported.
2119 This warning is enabled by \fB\-Wall\fR (as a warning, not an error).
2120 .IP "\fB\-Wimplicit\fR" 4
2121 .IX Item "-Wimplicit"
2122 Same as \fB\-Wimplicit\-int\fR and \fB\-Wimplicit\-function\-declaration\fR.
2123 This warning is enabled by \fB\-Wall\fR.
2124 .IP "\fB\-Wmain\fR" 4
2125 .IX Item "-Wmain"
2126 Warn if the type of \fBmain\fR is suspicious.  \fBmain\fR should be a
2127 function with external linkage, returning int, taking either zero
2128 arguments, two, or three arguments of appropriate types.
2129 This warning is enabled by \fB\-Wall\fR.
2130 .IP "\fB\-Wmissing\-braces\fR" 4
2131 .IX Item "-Wmissing-braces"
2132 Warn if an aggregate or union initializer is not fully bracketed.  In
2133 the following example, the initializer for \fBa\fR is not fully
2134 bracketed, but that for \fBb\fR is fully bracketed.
2135 .Sp
2136 .Vb 2
2137 \&        int a[2][2] = { 0, 1, 2, 3 };
2138 \&        int b[2][2] = { { 0, 1 }, { 2, 3 } };
2139 .Ve
2140 .Sp
2141 This warning is enabled by \fB\-Wall\fR.
2142 .IP "\fB\-Wmissing\-include\-dirs\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
2143 .IX Item "-Wmissing-include-dirs (C, , Objective-C and Objective- only)"
2144 Warn if a user-supplied include directory does not exist.
2145 .IP "\fB\-Wparentheses\fR" 4
2146 .IX Item "-Wparentheses"
2147 Warn if parentheses are omitted in certain contexts, such
2148 as when there is an assignment in a context where a truth value
2149 is expected, or when operators are nested whose precedence people
2150 often get confused about.  Only the warning for an assignment used as
2151 a truth value is supported when compiling \*(C+; the other warnings are
2152 only supported when compiling C.
2153 .Sp
2154 Also warn if a comparison like \fBx<=y<=z\fR appears; this is
2155 equivalent to \fB(x<=y ? 1 : 0) <= z\fR, which is a different
2156 interpretation from that of ordinary mathematical notation.
2157 .Sp
2158 Also warn about constructions where there may be confusion to which
2159 \&\f(CW\*(C`if\*(C'\fR statement an \f(CW\*(C`else\*(C'\fR branch belongs.  Here is an example of
2160 such a case:
2161 .Sp
2162 .Vb 7
2163 \&        {
2164 \&          if (a)
2165 \&            if (b)
2166 \&              foo ();
2167 \&          else
2168 \&            bar ();
2169 \&        }
2170 .Ve
2171 .Sp
2172 In C, every \f(CW\*(C`else\*(C'\fR branch belongs to the innermost possible \f(CW\*(C`if\*(C'\fR
2173 statement, which in this example is \f(CW\*(C`if (b)\*(C'\fR.  This is often not
2174 what the programmer expected, as illustrated in the above example by
2175 indentation the programmer chose.  When there is the potential for this
2176 confusion, \s-1GCC\s0 will issue a warning when this flag is specified.
2177 To eliminate the warning, add explicit braces around the innermost
2178 \&\f(CW\*(C`if\*(C'\fR statement so there is no way the \f(CW\*(C`else\*(C'\fR could belong to
2179 the enclosing \f(CW\*(C`if\*(C'\fR.  The resulting code would look like this:
2180 .Sp
2181 .Vb 9
2182 \&        {
2183 \&          if (a)
2184 \&            {
2185 \&              if (b)
2186 \&                foo ();
2187 \&              else
2188 \&                bar ();
2189 \&            }
2190 \&        }
2191 .Ve
2192 .Sp
2193 This warning is enabled by \fB\-Wall\fR.
2194 .IP "\fB\-Wsequence\-point\fR" 4
2195 .IX Item "-Wsequence-point"
2196 Warn about code that may have undefined semantics because of violations
2197 of sequence point rules in the C standard.
2198 .Sp
2199 The C standard defines the order in which expressions in a C program are
2200 evaluated in terms of \fIsequence points\fR, which represent a partial
2201 ordering between the execution of parts of the program: those executed
2202 before the sequence point, and those executed after it.  These occur
2203 after the evaluation of a full expression (one which is not part of a
2204 larger expression), after the evaluation of the first operand of a
2205 \&\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
2206 function is called (but after the evaluation of its arguments and the
2207 expression denoting the called function), and in certain other places.
2208 Other than as expressed by the sequence point rules, the order of
2209 evaluation of subexpressions of an expression is not specified.  All
2210 these rules describe only a partial order rather than a total order,
2211 since, for example, if two functions are called within one expression
2212 with no sequence point between them, the order in which the functions
2213 are called is not specified.  However, the standards committee have
2214 ruled that function calls do not overlap.
2215 .Sp
2216 It is not specified when between sequence points modifications to the
2217 values of objects take effect.  Programs whose behavior depends on this
2218 have undefined behavior; the C standard specifies that ``Between the
2219 previous and next sequence point an object shall have its stored value
2220 modified at most once by the evaluation of an expression.  Furthermore,
2221 the prior value shall be read only to determine the value to be
2222 stored.''.  If a program breaks these rules, the results on any
2223 particular implementation are entirely unpredictable.
2224 .Sp
2225 Examples of code with undefined behavior are \f(CW\*(C`a = a++;\*(C'\fR, \f(CW\*(C`a[n]
2226 = b[n++]\*(C'\fR and \f(CW\*(C`a[i++] = i;\*(C'\fR.  Some more complicated cases are not
2227 diagnosed by this option, and it may give an occasional false positive
2228 result, but in general it has been found fairly effective at detecting
2229 this sort of problem in programs.
2230 .Sp
2231 The present implementation of this option only works for C programs.  A
2232 future implementation may also work for \*(C+ programs.
2233 .Sp
2234 The C standard is worded confusingly, therefore there is some debate
2235 over the precise meaning of the sequence point rules in subtle cases.
2236 Links to discussions of the problem, including proposed formal
2237 definitions, may be found on the \s-1GCC\s0 readings page, at
2238 <\fBhttp://gcc.gnu.org/readings.html\fR>.
2239 .Sp
2240 This warning is enabled by \fB\-Wall\fR.
2241 .IP "\fB\-Wreturn\-type\fR" 4
2242 .IX Item "-Wreturn-type"
2243 Warn whenever a function is defined with a return-type that defaults to
2244 \&\f(CW\*(C`int\*(C'\fR.  Also warn about any \f(CW\*(C`return\*(C'\fR statement with no
2245 return-value in a function whose return-type is not \f(CW\*(C`void\*(C'\fR.
2246 .Sp
2247 For C, also warn if the return type of a function has a type qualifier
2248 such as \f(CW\*(C`const\*(C'\fR.  Such a type qualifier has no effect, since the
2249 value returned by a function is not an lvalue.  \s-1ISO\s0 C prohibits
2250 qualified \f(CW\*(C`void\*(C'\fR return types on function definitions, so such
2251 return types always receive a warning even without this option.
2252 .Sp
2253 For \*(C+, a function without return type always produces a diagnostic
2254 message, even when \fB\-Wno\-return\-type\fR is specified.  The only
2255 exceptions are \fBmain\fR and functions defined in system headers.
2256 .Sp
2257 This warning is enabled by \fB\-Wall\fR.
2258 .IP "\fB\-Wswitch\fR" 4
2259 .IX Item "-Wswitch"
2260 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
2261 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
2262 enumeration.  (The presence of a \f(CW\*(C`default\*(C'\fR label prevents this
2263 warning.)  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
2264 provoke warnings when this option is used.
2265 This warning is enabled by \fB\-Wall\fR.
2266 .IP "\fB\-Wswitch\-default\fR" 4
2267 .IX Item "-Wswitch-default"
2268 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement does not have a \f(CW\*(C`default\*(C'\fR
2269 case.
2270 .IP "\fB\-Wswitch\-enum\fR" 4
2271 .IX Item "-Wswitch-enum"
2272 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
2273 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
2274 enumeration.  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
2275 provoke warnings when this option is used.
2276 .IP "\fB\-Wtrigraphs\fR" 4
2277 .IX Item "-Wtrigraphs"
2278 Warn if any trigraphs are encountered that might change the meaning of
2279 the program (trigraphs within comments are not warned about).
2280 This warning is enabled by \fB\-Wall\fR.
2281 .IP "\fB\-Wunused\-function\fR" 4
2282 .IX Item "-Wunused-function"
2283 Warn whenever a static function is declared but not defined or a
2284 non\e\-inline static function is unused.
2285 This warning is enabled by \fB\-Wall\fR.
2286 .IP "\fB\-Wunused\-label\fR" 4
2287 .IX Item "-Wunused-label"
2288 Warn whenever a label is declared but not used.
2289 This warning is enabled by \fB\-Wall\fR.
2290 .Sp
2291 To suppress this warning use the \fBunused\fR attribute.
2292 .IP "\fB\-Wunused\-parameter\fR" 4
2293 .IX Item "-Wunused-parameter"
2294 Warn whenever a function parameter is unused aside from its declaration.
2295 .Sp
2296 To suppress this warning use the \fBunused\fR attribute.
2297 .IP "\fB\-Wunused\-variable\fR" 4
2298 .IX Item "-Wunused-variable"
2299 Warn whenever a local variable or non-constant static variable is unused
2300 aside from its declaration
2301 This warning is enabled by \fB\-Wall\fR.
2302 .Sp
2303 To suppress this warning use the \fBunused\fR attribute.
2304 .IP "\fB\-Wunused\-value\fR" 4
2305 .IX Item "-Wunused-value"
2306 Warn whenever a statement computes a result that is explicitly not used.
2307 This warning is enabled by \fB\-Wall\fR.
2308 .Sp
2309 To suppress this warning cast the expression to \fBvoid\fR.
2310 .IP "\fB\-Wunused\fR" 4
2311 .IX Item "-Wunused"
2312 All the above \fB\-Wunused\fR options combined.
2313 .Sp
2314 In order to get a warning about an unused function parameter, you must
2315 either specify \fB\-Wextra \-Wunused\fR (note that \fB\-Wall\fR implies
2316 \&\fB\-Wunused\fR), or separately specify \fB\-Wunused\-parameter\fR.
2317 .IP "\fB\-Wuninitialized\fR" 4
2318 .IX Item "-Wuninitialized"
2319 Warn if an automatic variable is used without first being initialized or
2320 if a variable may be clobbered by a \f(CW\*(C`setjmp\*(C'\fR call.
2321 .Sp
2322 These warnings are possible only in optimizing compilation,
2323 because they require data flow information that is computed only
2324 when optimizing.  If you don't specify \fB\-O\fR, you simply won't
2325 get these warnings.
2326 .Sp
2327 If you want to warn about code which uses the uninitialized value of the
2328 variable in its own initializer, use the \fB\-Winit\-self\fR option.
2329 .Sp
2330 These warnings occur only for variables that are candidates for
2331 register allocation.  Therefore, they do not occur for a variable that
2332 is declared \f(CW\*(C`volatile\*(C'\fR, or whose address is taken, or whose size
2333 is other than 1, 2, 4 or 8 bytes.  Also, they do not occur for
2334 structures, unions or arrays, even when they are in registers.
2335 .Sp
2336 Note that there may be no warning about a variable that is used only
2337 to compute a value that itself is never used, because such
2338 computations may be deleted by data flow analysis before the warnings
2339 are printed.
2340 .Sp
2341 These warnings are made optional because \s-1GCC\s0 is not smart
2342 enough to see all the reasons why the code might be correct
2343 despite appearing to have an error.  Here is one example of how
2344 this can happen:
2345 .Sp
2346 .Vb 12
2347 \&        {
2348 \&          int x;
2349 \&          switch (y)
2350 \&            {
2351 \&            case 1: x = 1;
2352 \&              break;
2353 \&            case 2: x = 4;
2354 \&              break;
2355 \&            case 3: x = 5;
2356 \&            }
2357 \&          foo (x);
2358 \&        }
2359 .Ve
2360 .Sp
2361 If the value of \f(CW\*(C`y\*(C'\fR is always 1, 2 or 3, then \f(CW\*(C`x\*(C'\fR is
2362 always initialized, but \s-1GCC\s0 doesn't know this.  Here is
2363 another common case:
2364 .Sp
2365 .Vb 6
2366 \&        {
2367 \&          int save_y;
2368 \&          if (change_y) save_y = y, y = new_y;
2369 \&          ...
2370 \&          if (change_y) y = save_y;
2371 \&        }
2372 .Ve
2373 .Sp
2374 This has no bug because \f(CW\*(C`save_y\*(C'\fR is used only if it is set.
2375 .Sp
2376 This option also warns when a non-volatile automatic variable might be
2377 changed by a call to \f(CW\*(C`longjmp\*(C'\fR.  These warnings as well are possible
2378 only in optimizing compilation.
2379 .Sp
2380 The compiler sees only the calls to \f(CW\*(C`setjmp\*(C'\fR.  It cannot know
2381 where \f(CW\*(C`longjmp\*(C'\fR will be called; in fact, a signal handler could
2382 call it at any point in the code.  As a result, you may get a warning
2383 even when there is in fact no problem because \f(CW\*(C`longjmp\*(C'\fR cannot
2384 in fact be called at the place which would cause a problem.
2385 .Sp
2386 Some spurious warnings can be avoided if you declare all the functions
2387 you use that never return as \f(CW\*(C`noreturn\*(C'\fR.  
2388 .Sp
2389 This warning is enabled by \fB\-Wall\fR.
2390 .IP "\fB\-Wunknown\-pragmas\fR" 4
2391 .IX Item "-Wunknown-pragmas"
2392 Warn when a #pragma directive is encountered which is not understood by
2393 \&\s-1GCC\s0.  If this command line option is used, warnings will even be issued
2394 for unknown pragmas in system header files.  This is not the case if
2395 the warnings were only enabled by the \fB\-Wall\fR command line option.
2396 .IP "\fB\-Wstrict\-aliasing\fR" 4
2397 .IX Item "-Wstrict-aliasing"
2398 This option is only active when \fB\-fstrict\-aliasing\fR is active.
2399 It warns about code which might break the strict aliasing rules that the
2400 compiler is using for optimization.  The warning does not catch all
2401 cases, but does attempt to catch the more common pitfalls.  It is
2402 included in \fB\-Wall\fR.
2403 .IP "\fB\-Wstrict\-aliasing=2\fR" 4
2404 .IX Item "-Wstrict-aliasing=2"
2405 This option is only active when \fB\-fstrict\-aliasing\fR is active.
2406 It warns about all code which might break the strict aliasing rules that the
2407 compiler is using for optimization.  This warning catches all cases, but
2408 it will also give a warning for some ambiguous cases that are safe.
2409 .IP "\fB\-Wall\fR" 4
2410 .IX Item "-Wall"
2411 All of the above \fB\-W\fR options combined.  This enables all the
2412 warnings about constructions that some users consider questionable, and
2413 that are easy to avoid (or modify to prevent the warning), even in
2414 conjunction with macros.  This also enables some language-specific
2415 warnings described in \fB\*(C+ Dialect Options\fR and
2416 \&\fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
2417 .PP
2418 The following \fB\-W...\fR options are not implied by \fB\-Wall\fR.
2419 Some of them warn about constructions that users generally do not
2420 consider questionable, but which occasionally you might wish to check
2421 for; others warn about constructions that are necessary or hard to avoid
2422 in some cases, and there is no simple way to modify the code to suppress
2423 the warning.
2424 .IP "\fB\-Wextra\fR" 4
2425 .IX Item "-Wextra"
2426 (This option used to be called \fB\-W\fR.  The older name is still
2427 supported, but the newer name is more descriptive.)  Print extra warning
2428 messages for these events:
2429 .RS 4
2430 .IP "\(bu" 4
2431 A function can return either with or without a value.  (Falling
2432 off the end of the function body is considered returning without
2433 a value.)  For example, this function would evoke such a
2434 warning:
2435 .Sp
2436 .Vb 5
2437 \&        foo (a)
2438 \&        {
2439 \&          if (a > 0)
2440 \&            return a;
2441 \&        }
2442 .Ve
2443 .IP "\(bu" 4
2444 An expression-statement or the left-hand side of a comma expression
2445 contains no side effects.
2446 To suppress the warning, cast the unused expression to void.
2447 For example, an expression such as \fBx[i,j]\fR will cause a warning,
2448 but \fBx[(void)i,j]\fR will not.
2449 .IP "\(bu" 4
2450 An unsigned value is compared against zero with \fB<\fR or \fB>=\fR.
2451 .IP "\(bu" 4
2452 Storage-class specifiers like \f(CW\*(C`static\*(C'\fR are not the first things in
2453 a declaration.  According to the C Standard, this usage is obsolescent.
2454 .IP "\(bu" 4
2455 If \fB\-Wall\fR or \fB\-Wunused\fR is also specified, warn about unused
2456 arguments.
2457 .IP "\(bu" 4
2458 A comparison between signed and unsigned values could produce an
2459 incorrect result when the signed value is converted to unsigned.
2460 (But don't warn if \fB\-Wno\-sign\-compare\fR is also specified.)
2461 .IP "\(bu" 4
2462 An aggregate has an initializer which does not initialize all members.
2463 This warning can be independently controlled by
2464 \&\fB\-Wmissing\-field\-initializers\fR.
2465 .IP "\(bu" 4
2466 A function parameter is declared without a type specifier in K&R\-style
2467 functions:
2468 .Sp
2469 .Vb 1
2470 \&        void foo(bar) { }
2471 .Ve
2472 .IP "\(bu" 4
2473 An empty body occurs in an \fBif\fR or \fBelse\fR statement.
2474 .IP "\(bu" 4
2475 A pointer is compared against integer zero with \fB<\fR, \fB<=\fR,
2476 \&\fB>\fR, or \fB>=\fR.
2477 .IP "\(bu" 4
2478 A variable might be changed by \fBlongjmp\fR or \fBvfork\fR.
2479 .IP "\(bu" 4
2480 Any of several floating-point events that often indicate errors, such as
2481 overflow, underflow, loss of precision, etc.
2482 .IP "*<(\*(C+ only)>" 4
2483 .IX Item "*<( only)>"
2484 An enumerator and a non-enumerator both appear in a conditional expression.
2485 .IP "*<(\*(C+ only)>" 4
2486 .IX Item "*<( only)>"
2487 A non-static reference or non-static \fBconst\fR member appears in a
2488 class without constructors.
2489 .IP "*<(\*(C+ only)>" 4
2490 .IX Item "*<( only)>"
2491 Ambiguous virtual bases.
2492 .IP "*<(\*(C+ only)>" 4
2493 .IX Item "*<( only)>"
2494 Subscripting an array which has been declared \fBregister\fR.
2495 .IP "*<(\*(C+ only)>" 4
2496 .IX Item "*<( only)>"
2497 Taking the address of a variable which has been declared \fBregister\fR.
2498 .IP "*<(\*(C+ only)>" 4
2499 .IX Item "*<( only)>"
2500 A base class is not initialized in a derived class' copy constructor.
2501 .RE
2502 .RS 4
2503 .RE
2504 .IP "\fB\-Wno\-div\-by\-zero\fR" 4
2505 .IX Item "-Wno-div-by-zero"
2506 Do not warn about compile-time integer division by zero.  Floating point
2507 division by zero is not warned about, as it can be a legitimate way of
2508 obtaining infinities and NaNs.
2509 .IP "\fB\-Wsystem\-headers\fR" 4
2510 .IX Item "-Wsystem-headers"
2511 Print warning messages for constructs found in system header files.
2512 Warnings from system headers are normally suppressed, on the assumption
2513 that they usually do not indicate real problems and would only make the
2514 compiler output harder to read.  Using this command line option tells
2515 \&\s-1GCC\s0 to emit warnings from system headers as if they occurred in user
2516 code.  However, note that using \fB\-Wall\fR in conjunction with this
2517 option will \fInot\fR warn about unknown pragmas in system
2518 headers\-\-\-for that, \fB\-Wunknown\-pragmas\fR must also be used.
2519 .IP "\fB\-Wfloat\-equal\fR" 4
2520 .IX Item "-Wfloat-equal"
2521 Warn if floating point values are used in equality comparisons.
2522 .Sp
2523 The idea behind this is that sometimes it is convenient (for the
2524 programmer) to consider floating-point values as approximations to
2525 infinitely precise real numbers.  If you are doing this, then you need
2526 to compute (by analyzing the code, or in some other way) the maximum or
2527 likely maximum error that the computation introduces, and allow for it
2528 when performing comparisons (and when producing output, but that's a
2529 different problem).  In particular, instead of testing for equality, you
2530 would check to see whether the two values have ranges that overlap; and
2531 this is done with the relational operators, so equality comparisons are
2532 probably mistaken.
2533 .IP "\fB\-Wtraditional\fR (C only)" 4
2534 .IX Item "-Wtraditional (C only)"
2535 Warn about certain constructs that behave differently in traditional and
2536 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
2537 equivalent, and/or problematic constructs which should be avoided.
2538 .RS 4
2539 .IP "\(bu" 4
2540 Macro parameters that appear within string literals in the macro body.
2541 In traditional C macro replacement takes place within string literals,
2542 but does not in \s-1ISO\s0 C.
2543 .IP "\(bu" 4
2544 In traditional C, some preprocessor directives did not exist.
2545 Traditional preprocessors would only consider a line to be a directive
2546 if the \fB#\fR appeared in column 1 on the line.  Therefore
2547 \&\fB\-Wtraditional\fR warns about directives that traditional C
2548 understands but would ignore because the \fB#\fR does not appear as the
2549 first character on the line.  It also suggests you hide directives like
2550 \&\fB#pragma\fR not understood by traditional C by indenting them.  Some
2551 traditional implementations would not recognize \fB#elif\fR, so it
2552 suggests avoiding it altogether.
2553 .IP "\(bu" 4
2554 A function-like macro that appears without arguments.
2555 .IP "\(bu" 4
2556 The unary plus operator.
2557 .IP "\(bu" 4
2558 The \fBU\fR integer constant suffix, or the \fBF\fR or \fBL\fR floating point
2559 constant suffixes.  (Traditional C does support the \fBL\fR suffix on integer
2560 constants.)  Note, these suffixes appear in macros defined in the system
2561 headers of most modern systems, e.g. the \fB_MIN\fR/\fB_MAX\fR macros in \f(CW\*(C`<limits.h>\*(C'\fR.
2562 Use of these macros in user code might normally lead to spurious
2563 warnings, however \s-1GCC\s0's integrated preprocessor has enough context to
2564 avoid warning in these cases.
2565 .IP "\(bu" 4
2566 A function declared external in one block and then used after the end of
2567 the block.
2568 .IP "\(bu" 4
2569 A \f(CW\*(C`switch\*(C'\fR statement has an operand of type \f(CW\*(C`long\*(C'\fR.
2570 .IP "\(bu" 4
2571 A non\-\f(CW\*(C`static\*(C'\fR function declaration follows a \f(CW\*(C`static\*(C'\fR one.
2572 This construct is not accepted by some traditional C compilers.
2573 .IP "\(bu" 4
2574 The \s-1ISO\s0 type of an integer constant has a different width or
2575 signedness from its traditional type.  This warning is only issued if
2576 the base of the constant is ten.  I.e. hexadecimal or octal values, which
2577 typically represent bit patterns, are not warned about.
2578 .IP "\(bu" 4
2579 Usage of \s-1ISO\s0 string concatenation is detected.
2580 .IP "\(bu" 4
2581 Initialization of automatic aggregates.
2582 .IP "\(bu" 4
2583 Identifier conflicts with labels.  Traditional C lacks a separate
2584 namespace for labels.
2585 .IP "\(bu" 4
2586 Initialization of unions.  If the initializer is zero, the warning is
2587 omitted.  This is done under the assumption that the zero initializer in
2588 user code appears conditioned on e.g. \f(CW\*(C`_\|_STDC_\|_\*(C'\fR to avoid missing
2589 initializer warnings and relies on default initialization to zero in the
2590 traditional C case.
2591 .IP "\(bu" 4
2592 Conversions by prototypes between fixed/floating point values and vice
2593 versa.  The absence of these prototypes when compiling with traditional
2594 C would cause serious problems.  This is a subset of the possible
2595 conversion warnings, for the full set use \fB\-Wconversion\fR.
2596 .IP "\(bu" 4
2597 Use of \s-1ISO\s0 C style function definitions.  This warning intentionally is
2598 \&\fInot\fR issued for prototype declarations or variadic functions
2599 because these \s-1ISO\s0 C features will appear in your code when using
2600 libiberty's traditional C compatibility macros, \f(CW\*(C`PARAMS\*(C'\fR and
2601 \&\f(CW\*(C`VPARAMS\*(C'\fR.  This warning is also bypassed for nested functions
2602 because that feature is already a \s-1GCC\s0 extension and thus not relevant to
2603 traditional C compatibility.
2604 .RE
2605 .RS 4
2606 .RE
2607 .IP "\fB\-Wdeclaration\-after\-statement\fR (C only)" 4
2608 .IX Item "-Wdeclaration-after-statement (C only)"
2609 Warn when a declaration is found after a statement in a block.  This
2610 construct, known from \*(C+, was introduced with \s-1ISO\s0 C99 and is by default
2611 allowed in \s-1GCC\s0.  It is not supported by \s-1ISO\s0 C90 and was not supported by
2612 \&\s-1GCC\s0 versions before \s-1GCC\s0 3.0.  
2613 .IP "\fB\-Wundef\fR" 4
2614 .IX Item "-Wundef"
2615 Warn if an undefined identifier is evaluated in an \fB#if\fR directive.
2616 .IP "\fB\-Wno\-endif\-labels\fR" 4
2617 .IX Item "-Wno-endif-labels"
2618 Do not warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
2619 .IP "\fB\-Wshadow\fR" 4
2620 .IX Item "-Wshadow"
2621 Warn whenever a local variable shadows another local variable, parameter or
2622 global variable or whenever a built-in function is shadowed.
2623 .IP "\fB\-Wlarger\-than\-\fR\fIlen\fR" 4
2624 .IX Item "-Wlarger-than-len"
2625 Warn whenever an object of larger than \fIlen\fR bytes is defined.
2626 .IP "\fB\-Wpointer\-arith\fR" 4
2627 .IX Item "-Wpointer-arith"
2628 Warn about anything that depends on the ``size of'' a function type or
2629 of \f(CW\*(C`void\*(C'\fR.  \s-1GNU\s0 C assigns these types a size of 1, for
2630 convenience in calculations with \f(CW\*(C`void *\*(C'\fR pointers and pointers
2631 to functions.
2632 .IP "\fB\-Wbad\-function\-cast\fR (C only)" 4
2633 .IX Item "-Wbad-function-cast (C only)"
2634 Warn whenever a function call is cast to a non-matching type.
2635 For example, warn if \f(CW\*(C`int malloc()\*(C'\fR is cast to \f(CW\*(C`anything *\*(C'\fR.
2636 .IP "\fB\-Wcast\-qual\fR" 4
2637 .IX Item "-Wcast-qual"
2638 Warn whenever a pointer is cast so as to remove a type qualifier from
2639 the target type.  For example, warn if a \f(CW\*(C`const char *\*(C'\fR is cast
2640 to an ordinary \f(CW\*(C`char *\*(C'\fR.
2641 .IP "\fB\-Wcast\-align\fR" 4
2642 .IX Item "-Wcast-align"
2643 Warn whenever a pointer is cast such that the required alignment of the
2644 target is increased.  For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
2645 an \f(CW\*(C`int *\*(C'\fR on machines where integers can only be accessed at
2646 two\- or four-byte boundaries.
2647 .IP "\fB\-Wwrite\-strings\fR" 4
2648 .IX Item "-Wwrite-strings"
2649 When compiling C, give string constants the type \f(CW\*(C`const
2650 char[\f(CIlength\f(CW]\*(C'\fR so that
2651 copying the address of one into a non\-\f(CW\*(C`const\*(C'\fR \f(CW\*(C`char *\*(C'\fR
2652 pointer will get a warning; when compiling \*(C+, warn about the
2653 deprecated conversion from string constants to \f(CW\*(C`char *\*(C'\fR.
2654 These warnings will help you find at
2655 compile time code that can try to write into a string constant, but
2656 only if you have been very careful about using \f(CW\*(C`const\*(C'\fR in
2657 declarations and prototypes.  Otherwise, it will just be a nuisance;
2658 this is why we did not make \fB\-Wall\fR request these warnings.
2659 .IP "\fB\-Wconversion\fR" 4
2660 .IX Item "-Wconversion"
2661 Warn if a prototype causes a type conversion that is different from what
2662 would happen to the same argument in the absence of a prototype.  This
2663 includes conversions of fixed point to floating and vice versa, and
2664 conversions changing the width or signedness of a fixed point argument
2665 except when the same as the default promotion.
2666 .Sp
2667 Also, warn if a negative integer constant expression is implicitly
2668 converted to an unsigned type.  For example, warn about the assignment
2669 \&\f(CW\*(C`x = \-1\*(C'\fR if \f(CW\*(C`x\*(C'\fR is unsigned.  But do not warn about explicit
2670 casts like \f(CW\*(C`(unsigned) \-1\*(C'\fR.
2671 .IP "\fB\-Wsign\-compare\fR" 4
2672 .IX Item "-Wsign-compare"
2673 Warn when a comparison between signed and unsigned values could produce
2674 an incorrect result when the signed value is converted to unsigned.
2675 This warning is also enabled by \fB\-Wextra\fR; to get the other warnings
2676 of \fB\-Wextra\fR without this warning, use \fB\-Wextra \-Wno\-sign\-compare\fR.
2677 .IP "\fB\-Waggregate\-return\fR" 4
2678 .IX Item "-Waggregate-return"
2679 Warn if any functions that return structures or unions are defined or
2680 called.  (In languages where you can return an array, this also elicits
2681 a warning.)
2682 .IP "\fB\-Wstrict\-prototypes\fR (C only)" 4
2683 .IX Item "-Wstrict-prototypes (C only)"
2684 Warn if a function is declared or defined without specifying the
2685 argument types.  (An old-style function definition is permitted without
2686 a warning if preceded by a declaration which specifies the argument
2687 types.)
2688 .IP "\fB\-Wold\-style\-definition\fR (C only)" 4
2689 .IX Item "-Wold-style-definition (C only)"
2690 Warn if an old-style function definition is used.  A warning is given
2691 even if there is a previous prototype.
2692 .IP "\fB\-Wmissing\-prototypes\fR (C only)" 4
2693 .IX Item "-Wmissing-prototypes (C only)"
2694 Warn if a global function is defined without a previous prototype
2695 declaration.  This warning is issued even if the definition itself
2696 provides a prototype.  The aim is to detect global functions that fail
2697 to be declared in header files.
2698 .IP "\fB\-Wmissing\-declarations\fR (C only)" 4
2699 .IX Item "-Wmissing-declarations (C only)"
2700 Warn if a global function is defined without a previous declaration.
2701 Do so even if the definition itself provides a prototype.
2702 Use this option to detect global functions that are not declared in
2703 header files.
2704 .IP "\fB\-Wmissing\-field\-initializers\fR" 4
2705 .IX Item "-Wmissing-field-initializers"
2706 Warn if a structure's initializer has some fields missing.  For
2707 example, the following code would cause such a warning, because
2708 \&\f(CW\*(C`x.h\*(C'\fR is implicitly zero:
2709 .Sp
2710 .Vb 2
2711 \&        struct s { int f, g, h; };
2712 \&        struct s x = { 3, 4 };
2713 .Ve
2714 .Sp
2715 This option does not warn about designated initializers, so the following
2716 modification would not trigger a warning:
2717 .Sp
2718 .Vb 2
2719 \&        struct s { int f, g, h; };
2720 \&        struct s x = { .f = 3, .g = 4 };
2721 .Ve
2722 .Sp
2723 This warning is included in \fB\-Wextra\fR.  To get other \fB\-Wextra\fR
2724 warnings without this one, use \fB\-Wextra \-Wno\-missing\-field\-initializers\fR.
2725 .IP "\fB\-Wmissing\-noreturn\fR" 4
2726 .IX Item "-Wmissing-noreturn"
2727 Warn about functions which might be candidates for attribute \f(CW\*(C`noreturn\*(C'\fR.
2728 Note these are only possible candidates, not absolute ones.  Care should
2729 be taken to manually verify functions actually do not ever return before
2730 adding the \f(CW\*(C`noreturn\*(C'\fR attribute, otherwise subtle code generation
2731 bugs could be introduced.  You will not get a warning for \f(CW\*(C`main\*(C'\fR in
2732 hosted C environments.
2733 .IP "\fB\-Wmissing\-format\-attribute\fR" 4
2734 .IX Item "-Wmissing-format-attribute"
2735 If \fB\-Wformat\fR is enabled, also warn about functions which might be
2736 candidates for \f(CW\*(C`format\*(C'\fR attributes.  Note these are only possible
2737 candidates, not absolute ones.  \s-1GCC\s0 will guess that \f(CW\*(C`format\*(C'\fR
2738 attributes might be appropriate for any function that calls a function
2739 like \f(CW\*(C`vprintf\*(C'\fR or \f(CW\*(C`vscanf\*(C'\fR, but this might not always be the
2740 case, and some functions for which \f(CW\*(C`format\*(C'\fR attributes are
2741 appropriate may not be detected.  This option has no effect unless
2742 \&\fB\-Wformat\fR is enabled (possibly by \fB\-Wall\fR).
2743 .IP "\fB\-Wno\-multichar\fR" 4
2744 .IX Item "-Wno-multichar"
2745 Do not warn if a multicharacter constant (\fB'\s-1FOOF\s0'\fR) is used.
2746 Usually they indicate a typo in the user's code, as they have
2747 implementation-defined values, and should not be used in portable code.
2748 .IP "\fB\-Wno\-deprecated\-declarations\fR" 4
2749 .IX Item "-Wno-deprecated-declarations"
2750 Do not warn about uses of functions, variables, and types marked as
2751 deprecated by using the \f(CW\*(C`deprecated\*(C'\fR attribute.
2752 (@pxref{Function Attributes}, \f(CW@pxref\fR{Variable Attributes},
2753 \&\f(CW@pxref\fR{Type Attributes}.)
2754 .IP "\fB\-Wpacked\fR" 4
2755 .IX Item "-Wpacked"
2756 Warn if a structure is given the packed attribute, but the packed
2757 attribute has no effect on the layout or size of the structure.
2758 Such structures may be mis-aligned for little benefit.  For
2759 instance, in this code, the variable \f(CW\*(C`f.x\*(C'\fR in \f(CW\*(C`struct bar\*(C'\fR
2760 will be misaligned even though \f(CW\*(C`struct bar\*(C'\fR does not itself
2761 have the packed attribute:
2762 .Sp
2763 .Vb 8
2764 \&        struct foo {
2765 \&          int x;
2766 \&          char a, b, c, d;
2767 \&        } __attribute__((packed));
2768 \&        struct bar {
2769 \&          char z;
2770 \&          struct foo f;
2771 \&        };
2772 .Ve
2773 .IP "\fB\-Wpadded\fR" 4
2774 .IX Item "-Wpadded"
2775 Warn if padding is included in a structure, either to align an element
2776 of the structure or to align the whole structure.  Sometimes when this
2777 happens it is possible to rearrange the fields of the structure to
2778 reduce the padding and so make the structure smaller.
2779 .IP "\fB\-Wredundant\-decls\fR" 4
2780 .IX Item "-Wredundant-decls"
2781 Warn if anything is declared more than once in the same scope, even in
2782 cases where multiple declaration is valid and changes nothing.
2783 .IP "\fB\-Wnested\-externs\fR (C only)" 4
2784 .IX Item "-Wnested-externs (C only)"
2785 Warn if an \f(CW\*(C`extern\*(C'\fR declaration is encountered within a function.
2786 .IP "\fB\-Wunreachable\-code\fR" 4
2787 .IX Item "-Wunreachable-code"
2788 Warn if the compiler detects that code will never be executed.
2789 .Sp
2790 This option is intended to warn when the compiler detects that at
2791 least a whole line of source code will never be executed, because
2792 some condition is never satisfied or because it is after a
2793 procedure that never returns.
2794 .Sp
2795 It is possible for this option to produce a warning even though there
2796 are circumstances under which part of the affected line can be executed,
2797 so care should be taken when removing apparently-unreachable code.
2798 .Sp
2799 For instance, when a function is inlined, a warning may mean that the
2800 line is unreachable in only one inlined copy of the function.
2801 .Sp
2802 This option is not made part of \fB\-Wall\fR because in a debugging
2803 version of a program there is often substantial code which checks
2804 correct functioning of the program and is, hopefully, unreachable
2805 because the program does work.  Another common use of unreachable
2806 code is to provide behavior which is selectable at compile\-time.
2807 .IP "\fB\-Winline\fR" 4
2808 .IX Item "-Winline"
2809 Warn if a function can not be inlined and it was declared as inline.
2810 Even with this option, the compiler will not warn about failures to
2811 inline functions declared in system headers.
2812 .Sp
2813 The compiler uses a variety of heuristics to determine whether or not
2814 to inline a function.  For example, the compiler takes into account
2815 the size of the function being inlined and the amount of inlining
2816 that has already been done in the current function.  Therefore,
2817 seemingly insignificant changes in the source program can cause the
2818 warnings produced by \fB\-Winline\fR to appear or disappear.
2819 .IP "\fB\-Wno\-invalid\-offsetof\fR (\*(C+ only)" 4
2820 .IX Item "-Wno-invalid-offsetof ( only)"
2821 Suppress warnings from applying the \fBoffsetof\fR macro to a non-POD
2822 type.  According to the 1998 \s-1ISO\s0 \*(C+ standard, applying \fBoffsetof\fR
2823 to a non-POD type is undefined.  In existing \*(C+ implementations,
2824 however, \fBoffsetof\fR typically gives meaningful results even when
2825 applied to certain kinds of non-POD types. (Such as a simple
2826 \&\fBstruct\fR that fails to be a \s-1POD\s0 type only by virtue of having a
2827 constructor.)  This flag is for users who are aware that they are
2828 writing nonportable code and who have deliberately chosen to ignore the
2829 warning about it.
2830 .Sp
2831 The restrictions on \fBoffsetof\fR may be relaxed in a future version
2832 of the \*(C+ standard.
2833 .IP "\fB\-Winvalid\-pch\fR" 4
2834 .IX Item "-Winvalid-pch"
2835 Warn if a precompiled header is found in
2836 the search path but can't be used.
2837 .IP "\fB\-Wlong\-long\fR" 4
2838 .IX Item "-Wlong-long"
2839 Warn if \fBlong long\fR type is used.  This is default.  To inhibit
2840 the warning messages, use \fB\-Wno\-long\-long\fR.  Flags
2841 \&\fB\-Wlong\-long\fR and \fB\-Wno\-long\-long\fR are taken into account
2842 only when \fB\-pedantic\fR flag is used.
2843 .IP "\fB\-Wvariadic\-macros\fR" 4
2844 .IX Item "-Wvariadic-macros"
2845 Warn if variadic macros are used in pedantic \s-1ISO\s0 C90 mode, or the \s-1GNU\s0
2846 alternate syntax when in pedantic \s-1ISO\s0 C99 mode.  This is default.
2847 To inhibit the warning messages, use \fB\-Wno\-variadic\-macros\fR.
2848 .IP "\fB\-Wdisabled\-optimization\fR" 4
2849 .IX Item "-Wdisabled-optimization"
2850 Warn if a requested optimization pass is disabled.  This warning does
2851 not generally indicate that there is anything wrong with your code; it
2852 merely indicates that \s-1GCC\s0's optimizers were unable to handle the code
2853 effectively.  Often, the problem is that your code is too big or too
2854 complex; \s-1GCC\s0 will refuse to optimize programs when the optimization
2855 itself is likely to take inordinate amounts of time.
2856 .IP "\fB\-Wno\-pointer\-sign\fR" 4
2857 .IX Item "-Wno-pointer-sign"
2858 Don't warn for pointer argument passing or assignment with different signedness.
2859 Only useful in the negative form since this warning is enabled by default.
2860 This option is only supported for C and Objective\-C.
2861 .IP "\fB\-Werror\fR" 4
2862 .IX Item "-Werror"
2863 Make all warnings into errors.
2864 .Sh "Options for Debugging Your Program or \s-1GCC\s0"
2865 .IX Subsection "Options for Debugging Your Program or GCC"
2866 \&\s-1GCC\s0 has various special options that are used for debugging
2867 either your program or \s-1GCC:\s0
2868 .IP "\fB\-g\fR" 4
2869 .IX Item "-g"
2870 Produce debugging information in the operating system's native format
2871 (stabs, \s-1COFF\s0, \s-1XCOFF\s0, or \s-1DWARF\s0 2).  \s-1GDB\s0 can work with this debugging
2872 information.
2873 .Sp
2874 On most systems that use stabs format, \fB\-g\fR enables use of extra
2875 debugging information that only \s-1GDB\s0 can use; this extra information
2876 makes debugging work better in \s-1GDB\s0 but will probably make other debuggers
2877 crash or
2878 refuse to read the program.  If you want to control for certain whether
2879 to generate the extra information, use \fB\-gstabs+\fR, \fB\-gstabs\fR,
2880 \&\fB\-gxcoff+\fR, \fB\-gxcoff\fR, or \fB\-gvms\fR (see below).
2881 .Sp
2882 \&\s-1GCC\s0 allows you to use \fB\-g\fR with
2883 \&\fB\-O\fR.  The shortcuts taken by optimized code may occasionally
2884 produce surprising results: some variables you declared may not exist
2885 at all; flow of control may briefly move where you did not expect it;
2886 some statements may not be executed because they compute constant
2887 results or their values were already at hand; some statements may
2888 execute in different places because they were moved out of loops.
2889 .Sp
2890 Nevertheless it proves possible to debug optimized output.  This makes
2891 it reasonable to use the optimizer for programs that might have bugs.
2892 .Sp
2893 The following options are useful when \s-1GCC\s0 is generated with the
2894 capability for more than one debugging format.
2895 .IP "\fB\-ggdb\fR" 4
2896 .IX Item "-ggdb"
2897 Produce debugging information for use by \s-1GDB\s0.  This means to use the
2898 most expressive format available (\s-1DWARF\s0 2, stabs, or the native format
2899 if neither of those are supported), including \s-1GDB\s0 extensions if at all
2900 possible.
2901 .IP "\fB\-gstabs\fR" 4
2902 .IX Item "-gstabs"
2903 Produce debugging information in stabs format (if that is supported),
2904 without \s-1GDB\s0 extensions.  This is the format used by \s-1DBX\s0 on most \s-1BSD\s0
2905 systems.  On \s-1MIPS\s0, Alpha and System V Release 4 systems this option
2906 produces stabs debugging output which is not understood by \s-1DBX\s0 or \s-1SDB\s0.
2907 On System V Release 4 systems this option requires the \s-1GNU\s0 assembler.
2908 .IP "\fB\-feliminate\-unused\-debug\-symbols\fR" 4
2909 .IX Item "-feliminate-unused-debug-symbols"
2910 Produce debugging information in stabs format (if that is supported),
2911 for only symbols that are actually used.
2912 .IP "\fB\-gstabs+\fR" 4
2913 .IX Item "-gstabs+"
2914 Produce debugging information in stabs format (if that is supported),
2915 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
2916 use of these extensions is likely to make other debuggers crash or
2917 refuse to read the program.
2918 .IP "\fB\-gcoff\fR" 4
2919 .IX Item "-gcoff"
2920 Produce debugging information in \s-1COFF\s0 format (if that is supported).
2921 This is the format used by \s-1SDB\s0 on most System V systems prior to
2922 System V Release 4.
2923 .IP "\fB\-gxcoff\fR" 4
2924 .IX Item "-gxcoff"
2925 Produce debugging information in \s-1XCOFF\s0 format (if that is supported).
2926 This is the format used by the \s-1DBX\s0 debugger on \s-1IBM\s0 \s-1RS/6000\s0 systems.
2927 .IP "\fB\-gxcoff+\fR" 4
2928 .IX Item "-gxcoff+"
2929 Produce debugging information in \s-1XCOFF\s0 format (if that is supported),
2930 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
2931 use of these extensions is likely to make other debuggers crash or
2932 refuse to read the program, and may cause assemblers other than the \s-1GNU\s0
2933 assembler (\s-1GAS\s0) to fail with an error.
2934 .IP "\fB\-gdwarf\-2\fR" 4
2935 .IX Item "-gdwarf-2"
2936 Produce debugging information in \s-1DWARF\s0 version 2 format (if that is
2937 supported).  This is the format used by \s-1DBX\s0 on \s-1IRIX\s0 6.  With this
2938 option, \s-1GCC\s0 uses features of \s-1DWARF\s0 version 3 when they are useful;
2939 version 3 is upward compatible with version 2, but may still cause
2940 problems for older debuggers.
2941 .IP "\fB\-gvms\fR" 4
2942 .IX Item "-gvms"
2943 Produce debugging information in \s-1VMS\s0 debug format (if that is
2944 supported).  This is the format used by \s-1DEBUG\s0 on \s-1VMS\s0 systems.
2945 .IP "\fB\-g\fR\fIlevel\fR" 4
2946 .IX Item "-glevel"
2947 .PD 0
2948 .IP "\fB\-ggdb\fR\fIlevel\fR" 4
2949 .IX Item "-ggdblevel"
2950 .IP "\fB\-gstabs\fR\fIlevel\fR" 4
2951 .IX Item "-gstabslevel"
2952 .IP "\fB\-gcoff\fR\fIlevel\fR" 4
2953 .IX Item "-gcofflevel"
2954 .IP "\fB\-gxcoff\fR\fIlevel\fR" 4
2955 .IX Item "-gxcofflevel"
2956 .IP "\fB\-gvms\fR\fIlevel\fR" 4
2957 .IX Item "-gvmslevel"
2958 .PD
2959 Request debugging information and also use \fIlevel\fR to specify how
2960 much information.  The default level is 2.
2961 .Sp
2962 Level 1 produces minimal information, enough for making backtraces in
2963 parts of the program that you don't plan to debug.  This includes
2964 descriptions of functions and external variables, but no information
2965 about local variables and no line numbers.
2966 .Sp
2967 Level 3 includes extra information, such as all the macro definitions
2968 present in the program.  Some debuggers support macro expansion when
2969 you use \fB\-g3\fR.
2970 .Sp
2971 \&\fB\-gdwarf\-2\fR does not accept a concatenated debug level, because
2972 \&\s-1GCC\s0 used to support an option \fB\-gdwarf\fR that meant to generate
2973 debug information in version 1 of the \s-1DWARF\s0 format (which is very
2974 different from version 2), and it would have been too confusing.  That
2975 debug format is long obsolete, but the option cannot be changed now.
2976 Instead use an additional \fB\-g\fR\fIlevel\fR option to change the
2977 debug level for \s-1DWARF2\s0.
2978 .IP "\fB\-feliminate\-dwarf2\-dups\fR" 4
2979 .IX Item "-feliminate-dwarf2-dups"
2980 Compress \s-1DWARF2\s0 debugging information by eliminating duplicated
2981 information about each symbol.  This option only makes sense when
2982 generating \s-1DWARF2\s0 debugging information with \fB\-gdwarf\-2\fR.
2983 .IP "\fB\-p\fR" 4
2984 .IX Item "-p"
2985 Generate extra code to write profile information suitable for the
2986 analysis program \fBprof\fR.  You must use this option when compiling
2987 the source files you want data about, and you must also use it when
2988 linking.
2989 .IP "\fB\-pg\fR" 4
2990 .IX Item "-pg"
2991 Generate extra code to write profile information suitable for the
2992 analysis program \fBgprof\fR.  You must use this option when compiling
2993 the source files you want data about, and you must also use it when
2994 linking.
2995 .IP "\fB\-Q\fR" 4
2996 .IX Item "-Q"
2997 Makes the compiler print out each function name as it is compiled, and
2998 print some statistics about each pass when it finishes.
2999 .IP "\fB\-ftime\-report\fR" 4
3000 .IX Item "-ftime-report"
3001 Makes the compiler print some statistics about the time consumed by each
3002 pass when it finishes.
3003 .IP "\fB\-fmem\-report\fR" 4
3004 .IX Item "-fmem-report"
3005 Makes the compiler print some statistics about permanent memory
3006 allocation when it finishes.
3007 .IP "\fB\-fprofile\-arcs\fR" 4
3008 .IX Item "-fprofile-arcs"
3009 Add code so that program flow \fIarcs\fR are instrumented.  During
3010 execution the program records how many times each branch and call is
3011 executed and how many times it is taken or returns.  When the compiled
3012 program exits it saves this data to a file called
3013 \&\fI\fIauxname\fI.gcda\fR for each source file.  The data may be used for
3014 profile-directed optimizations (\fB\-fbranch\-probabilities\fR), or for
3015 test coverage analysis (\fB\-ftest\-coverage\fR).  Each object file's
3016 \&\fIauxname\fR is generated from the name of the output file, if
3017 explicitly specified and it is not the final executable, otherwise it is
3018 the basename of the source file.  In both cases any suffix is removed
3019 (e.g. \fIfoo.gcda\fR for input file \fIdir/foo.c\fR, or
3020 \&\fIdir/foo.gcda\fR for output file specified as \fB\-o dir/foo.o\fR).
3021 .RS 4
3022 .IP "@bullet" 4
3023 .IX Item "@bullet"
3024 Compile the source files with \fB\-fprofile\-arcs\fR plus optimization
3025 and code generation options.  For test coverage analysis, use the
3026 additional \fB\-ftest\-coverage\fR option.  You do not need to profile
3027 every source file in a program.
3028 .IP "@cvmmfu" 4
3029 .IX Item "@cvmmfu"
3030 Link your object files with \fB\-lgcov\fR or \fB\-fprofile\-arcs\fR
3031 (the latter implies the former).
3032 .IP "@dwnngv" 4
3033 .IX Item "@dwnngv"
3034 Run the program on a representative workload to generate the arc profile
3035 information.  This may be repeated any number of times.  You can run
3036 concurrent instances of your program, and provided that the file system
3037 supports locking, the data files will be correctly updated.  Also
3038 \&\f(CW\*(C`fork\*(C'\fR calls are detected and correctly handled (double counting
3039 will not happen).
3040 .IP "@exoohw" 4
3041 .IX Item "@exoohw"
3042 For profile-directed optimizations, compile the source files again with
3043 the same optimization and code generation options plus
3044 \&\fB\-fbranch\-probabilities\fR.
3045 .IP "@fyppix" 4
3046 .IX Item "@fyppix"
3047 For test coverage analysis, use \fBgcov\fR to produce human readable
3048 information from the \fI.gcno\fR and \fI.gcda\fR files.  Refer to the
3049 \&\fBgcov\fR documentation for further information.
3050 .RE
3051 .RS 4
3052 .Sp
3053 With \fB\-fprofile\-arcs\fR, for each function of your program \s-1GCC\s0
3054 creates a program flow graph, then finds a spanning tree for the graph.
3055 Only arcs that are not on the spanning tree have to be instrumented: the
3056 compiler adds code to count the number of times that these arcs are
3057 executed.  When an arc is the only exit or only entrance to a block, the
3058 instrumentation code can be added to the block; otherwise, a new basic
3059 block must be created to hold the instrumentation code.
3060 .RE
3061 .IP "\fB\-ftree\-based\-profiling\fR" 4
3062 .IX Item "-ftree-based-profiling"
3063 This option is used in addition to \fB\-fprofile\-arcs\fR or
3064 \&\fB\-fbranch\-probabilities\fR to control whether those optimizations
3065 are performed on a tree-based or rtl-based internal representation.
3066 If you use this option when compiling with \fB\-fprofile\-arcs\fR,
3067 you must also use it when compiling later with \fB\-fbranch\-probabilities\fR.
3068 Currently the tree-based optimization is in an early stage of
3069 development, and this option is recommended only for those people
3070 working on improving it.
3071 .IP "\fB\-ftest\-coverage\fR" 4
3072 .IX Item "-ftest-coverage"
3073 Produce a notes file that the \fBgcov\fR code-coverage utility can use to
3074 show program coverage.  Each source file's note file is called
3075 \&\fI\fIauxname\fI.gcno\fR.  Refer to the \fB\-fprofile\-arcs\fR option
3076 above for a description of \fIauxname\fR and instructions on how to
3077 generate test coverage data.  Coverage data will match the source files
3078 more closely, if you do not optimize.
3079 .IP "\fB\-d\fR\fIletters\fR" 4
3080 .IX Item "-dletters"
3081 .PD 0
3082 .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR" 4
3083 .IX Item "-fdump-rtl-pass"
3084 .PD
3085 Says to make debugging dumps during compilation at times specified by
3086 \&\fIletters\fR.    This is used for debugging the RTL-based passes of the
3087 compiler.  The file names for most of the dumps are made by appending a
3088 pass number and a word to the \fIdumpname\fR.  \fIdumpname\fR is generated
3089 from the name of the output file, if explicitly specified and it is not
3090 an executable, otherwise it is the basename of the source file.
3091 .Sp
3092 Most debug dumps can be enabled either passing a letter to the \fB\-d\fR
3093 option, or with a long \fB\-fdump\-rtl\fR switch; here are the possible
3094 letters for use in \fIletters\fR and \fIpass\fR, and their meanings:
3095 .RS 4
3096 .IP "\fB\-dA\fR" 4
3097 .IX Item "-dA"
3098 Annotate the assembler output with miscellaneous debugging information.
3099 .IP "\fB\-db\fR" 4
3100 .IX Item "-db"
3101 .PD 0
3102 .IP "\fB\-fdump\-rtl\-bp\fR" 4
3103 .IX Item "-fdump-rtl-bp"
3104 .PD
3105 Dump after computing branch probabilities, to \fI\fIfile\fI.09.bp\fR.
3106 .IP "\fB\-dB\fR" 4
3107 .IX Item "-dB"
3108 .PD 0
3109 .IP "\fB\-fdump\-rtl\-bbro\fR" 4
3110 .IX Item "-fdump-rtl-bbro"
3111 .PD
3112 Dump after block reordering, to \fI\fIfile\fI.30.bbro\fR.
3113 .IP "\fB\-dc\fR" 4
3114 .IX Item "-dc"
3115 .PD 0
3116 .IP "\fB\-fdump\-rtl\-combine\fR" 4
3117 .IX Item "-fdump-rtl-combine"
3118 .PD
3119 Dump after instruction combination, to the file \fI\fIfile\fI.17.combine\fR.
3120 .IP "\fB\-dC\fR" 4
3121 .IX Item "-dC"
3122 .PD 0
3123 .IP "\fB\-fdump\-rtl\-ce1\fR" 4
3124 .IX Item "-fdump-rtl-ce1"
3125 .IP "\fB\-fdump\-rtl\-ce2\fR" 4
3126 .IX Item "-fdump-rtl-ce2"
3127 .PD
3128 \&\fB\-dC\fR and \fB\-fdump\-rtl\-ce1\fR enable dumping after the
3129 first if conversion, to the file \fI\fIfile\fI.11.ce1\fR.  \fB\-dC\fR
3130 and \fB\-fdump\-rtl\-ce2\fR enable dumping after the second if
3131 conversion, to the file \fI\fIfile\fI.18.ce2\fR.
3132 .IP "\fB\-dd\fR" 4
3133 .IX Item "-dd"
3134 .PD 0
3135 .IP "\fB\-fdump\-rtl\-btl\fR" 4
3136 .IX Item "-fdump-rtl-btl"
3137 .IP "\fB\-fdump\-rtl\-dbr\fR" 4
3138 .IX Item "-fdump-rtl-dbr"
3139 .PD
3140 \&\fB\-dd\fR and \fB\-fdump\-rtl\-btl\fR enable dumping after branch
3141 target load optimization, to \fI\fIfile\fI.31.btl\fR.  \fB\-dd\fR
3142 and \fB\-fdump\-rtl\-dbr\fR enable dumping after delayed branch
3143 scheduling, to \fI\fIfile\fI.36.dbr\fR.
3144 .IP "\fB\-dD\fR" 4
3145 .IX Item "-dD"
3146 Dump all macro definitions, at the end of preprocessing, in addition to
3147 normal output.
3148 .IP "\fB\-dE\fR" 4
3149 .IX Item "-dE"
3150 .PD 0
3151 .IP "\fB\-fdump\-rtl\-ce3\fR" 4
3152 .IX Item "-fdump-rtl-ce3"
3153 .PD
3154 Dump after the third if conversion, to \fI\fIfile\fI.28.ce3\fR.
3155 .IP "\fB\-df\fR" 4
3156 .IX Item "-df"
3157 .PD 0
3158 .IP "\fB\-fdump\-rtl\-cfg\fR" 4
3159 .IX Item "-fdump-rtl-cfg"
3160 .IP "\fB\-fdump\-rtl\-life\fR" 4
3161 .IX Item "-fdump-rtl-life"
3162 .PD
3163 \&\fB\-df\fR and \fB\-fdump\-rtl\-cfg\fR enable dumping after control
3164 and data flow analysis, to \fI\fIfile\fI.08.cfg\fR.  \fB\-df\fR
3165 and \fB\-fdump\-rtl\-cfg\fR enable dumping dump after life analysis,
3166 to \fI\fIfile\fI.16.life\fR.
3167 .IP "\fB\-dg\fR" 4
3168 .IX Item "-dg"
3169 .PD 0
3170 .IP "\fB\-fdump\-rtl\-greg\fR" 4
3171 .IX Item "-fdump-rtl-greg"
3172 .PD
3173 Dump after global register allocation, to \fI\fIfile\fI.23.greg\fR.
3174 .IP "\fB\-dG\fR" 4
3175 .IX Item "-dG"
3176 .PD 0
3177 .IP "\fB\-fdump\-rtl\-gcse\fR" 4
3178 .IX Item "-fdump-rtl-gcse"
3179 .IP "\fB\-fdump\-rtl\-bypass\fR" 4
3180 .IX Item "-fdump-rtl-bypass"
3181 .PD
3182 \&\fB\-dG\fR and \fB\-fdump\-rtl\-gcse\fR enable dumping after \s-1GCSE\s0, to
3183 \&\fI\fIfile\fI.05.gcse\fR.  \fB\-dG\fR and \fB\-fdump\-rtl\-bypass\fR
3184 enable dumping after jump bypassing and control flow optimizations, to
3185 \&\fI\fIfile\fI.07.bypass\fR.
3186 .IP "\fB\-dh\fR" 4
3187 .IX Item "-dh"
3188 .PD 0
3189 .IP "\fB\-fdump\-rtl\-eh\fR" 4
3190 .IX Item "-fdump-rtl-eh"
3191 .PD
3192 Dump after finalization of \s-1EH\s0 handling code, to \fI\fIfile\fI.02.eh\fR.
3193 .IP "\fB\-di\fR" 4
3194 .IX Item "-di"
3195 .PD 0
3196 .IP "\fB\-fdump\-rtl\-sibling\fR" 4
3197 .IX Item "-fdump-rtl-sibling"
3198 .PD
3199 Dump after sibling call optimizations, to \fI\fIfile\fI.01.sibling\fR.
3200 .IP "\fB\-dj\fR" 4
3201 .IX Item "-dj"
3202 .PD 0
3203 .IP "\fB\-fdump\-rtl\-jump\fR" 4
3204 .IX Item "-fdump-rtl-jump"
3205 .PD
3206 Dump after the first jump optimization, to \fI\fIfile\fI.03.jump\fR.
3207 .IP "\fB\-dk\fR" 4
3208 .IX Item "-dk"
3209 .PD 0
3210 .IP "\fB\-fdump\-rtl\-stack\fR" 4
3211 .IX Item "-fdump-rtl-stack"
3212 .PD
3213 Dump after conversion from registers to stack, to \fI\fIfile\fI.33.stack\fR.
3214 .IP "\fB\-dl\fR" 4
3215 .IX Item "-dl"
3216 .PD 0
3217 .IP "\fB\-fdump\-rtl\-lreg\fR" 4
3218 .IX Item "-fdump-rtl-lreg"
3219 .PD
3220 Dump after local register allocation, to \fI\fIfile\fI.22.lreg\fR.
3221 .IP "\fB\-dL\fR" 4
3222 .IX Item "-dL"
3223 .PD 0
3224 .IP "\fB\-fdump\-rtl\-loop\fR" 4
3225 .IX Item "-fdump-rtl-loop"
3226 .IP "\fB\-fdump\-rtl\-loop2\fR" 4
3227 .IX Item "-fdump-rtl-loop2"
3228 .PD
3229 \&\fB\-dL\fR and \fB\-fdump\-rtl\-loop\fR enable dumping after the first
3230 loop optimization pass, to \fI\fIfile\fI.06.loop\fR.  \fB\-dL\fR and
3231 \&\fB\-fdump\-rtl\-loop2\fR enable dumping after the second pass, to
3232 \&\fI\fIfile\fI.13.loop2\fR.
3233 .IP "\fB\-dm\fR" 4
3234 .IX Item "-dm"
3235 .PD 0
3236 .IP "\fB\-fdump\-rtl\-sms\fR" 4
3237 .IX Item "-fdump-rtl-sms"
3238 .PD
3239 Dump after modulo scheduling, to \fI\fIfile\fI.20.sms\fR.
3240 .IP "\fB\-dM\fR" 4
3241 .IX Item "-dM"
3242 .PD 0
3243 .IP "\fB\-fdump\-rtl\-mach\fR" 4
3244 .IX Item "-fdump-rtl-mach"
3245 .PD
3246 Dump after performing the machine dependent reorganization pass, to
3247 \&\fI\fIfile\fI.35.mach\fR.
3248 .IP "\fB\-dn\fR" 4
3249 .IX Item "-dn"
3250 .PD 0
3251 .IP "\fB\-fdump\-rtl\-rnreg\fR" 4
3252 .IX Item "-fdump-rtl-rnreg"
3253 .PD
3254 Dump after register renumbering, to \fI\fIfile\fI.29.rnreg\fR.
3255 .IP "\fB\-dN\fR" 4
3256 .IX Item "-dN"
3257 .PD 0
3258 .IP "\fB\-fdump\-rtl\-regmove\fR" 4
3259 .IX Item "-fdump-rtl-regmove"
3260 .PD
3261 Dump after the register move pass, to \fI\fIfile\fI.19.regmove\fR.
3262 .IP "\fB\-do\fR" 4
3263 .IX Item "-do"
3264 .PD 0
3265 .IP "\fB\-fdump\-rtl\-postreload\fR" 4
3266 .IX Item "-fdump-rtl-postreload"
3267 .PD
3268 Dump after post-reload optimizations, to \fI\fIfile\fI.24.postreload\fR.
3269 .IP "\fB\-dr\fR" 4
3270 .IX Item "-dr"
3271 .PD 0
3272 .IP "\fB\-fdump\-rtl\-expand\fR" 4
3273 .IX Item "-fdump-rtl-expand"
3274 .PD
3275 Dump after \s-1RTL\s0 generation, to \fI\fIfile\fI.00.expand\fR.
3276 .IP "\fB\-dR\fR" 4
3277 .IX Item "-dR"
3278 .PD 0
3279 .IP "\fB\-fdump\-rtl\-sched2\fR" 4
3280 .IX Item "-fdump-rtl-sched2"
3281 .PD
3282 Dump after the second scheduling pass, to \fI\fIfile\fI.32.sched2\fR.
3283 .IP "\fB\-ds\fR" 4
3284 .IX Item "-ds"
3285 .PD 0
3286 .IP "\fB\-fdump\-rtl\-cse\fR" 4
3287 .IX Item "-fdump-rtl-cse"
3288 .PD
3289 Dump after \s-1CSE\s0 (including the jump optimization that sometimes follows
3290 \&\s-1CSE\s0), to \fI\fIfile\fI.04.cse\fR.
3291 .IP "\fB\-dS\fR" 4
3292 .IX Item "-dS"
3293 .PD 0
3294 .IP "\fB\-fdump\-rtl\-sched\fR" 4
3295 .IX Item "-fdump-rtl-sched"
3296 .PD
3297 Dump after the first scheduling pass, to \fI\fIfile\fI.21.sched\fR.
3298 .IP "\fB\-dt\fR" 4
3299 .IX Item "-dt"
3300 .PD 0
3301 .IP "\fB\-fdump\-rtl\-cse2\fR" 4
3302 .IX Item "-fdump-rtl-cse2"
3303 .PD
3304 Dump after the second \s-1CSE\s0 pass (including the jump optimization that
3305 sometimes follows \s-1CSE\s0), to \fI\fIfile\fI.15.cse2\fR.
3306 .IP "\fB\-dT\fR" 4
3307 .IX Item "-dT"
3308 .PD 0
3309 .IP "\fB\-fdump\-rtl\-tracer\fR" 4
3310 .IX Item "-fdump-rtl-tracer"
3311 .PD
3312 Dump after running tracer, to \fI\fIfile\fI.12.tracer\fR.
3313 .IP "\fB\-dV\fR" 4
3314 .IX Item "-dV"
3315 .PD 0
3316 .IP "\fB\-fdump\-rtl\-vpt\fR" 4
3317 .IX Item "-fdump-rtl-vpt"
3318 .IP "\fB\-fdump\-rtl\-vartrack\fR" 4
3319 .IX Item "-fdump-rtl-vartrack"
3320 .PD
3321 \&\fB\-dV\fR and \fB\-fdump\-rtl\-vpt\fR enable dumping after the value
3322 profile transformations, to \fI\fIfile\fI.10.vpt\fR.  \fB\-dV\fR
3323 and \fB\-fdump\-rtl\-vartrack\fR enable dumping after variable tracking,
3324 to \fI\fIfile\fI.34.vartrack\fR.
3325 .IP "\fB\-dw\fR" 4
3326 .IX Item "-dw"
3327 .PD 0
3328 .IP "\fB\-fdump\-rtl\-flow2\fR" 4
3329 .IX Item "-fdump-rtl-flow2"
3330 .PD
3331 Dump after the second flow pass, to \fI\fIfile\fI.26.flow2\fR.
3332 .IP "\fB\-dz\fR" 4
3333 .IX Item "-dz"
3334 .PD 0
3335 .IP "\fB\-fdump\-rtl\-peephole2\fR" 4
3336 .IX Item "-fdump-rtl-peephole2"
3337 .PD
3338 Dump after the peephole pass, to \fI\fIfile\fI.27.peephole2\fR.
3339 .IP "\fB\-dZ\fR" 4
3340 .IX Item "-dZ"
3341 .PD 0
3342 .IP "\fB\-fdump\-rtl\-web\fR" 4
3343 .IX Item "-fdump-rtl-web"
3344 .PD
3345 Dump after live range splitting, to \fI\fIfile\fI.14.web\fR.
3346 .IP "\fB\-da\fR" 4
3347 .IX Item "-da"
3348 .PD 0
3349 .IP "\fB\-fdump\-rtl\-all\fR" 4
3350 .IX Item "-fdump-rtl-all"
3351 .PD
3352 Produce all the dumps listed above.
3353 .IP "\fB\-dH\fR" 4
3354 .IX Item "-dH"
3355 Produce a core dump whenever an error occurs.
3356 .IP "\fB\-dm\fR" 4
3357 .IX Item "-dm"
3358 Print statistics on memory usage, at the end of the run, to
3359 standard error.
3360 .IP "\fB\-dp\fR" 4
3361 .IX Item "-dp"
3362 Annotate the assembler output with a comment indicating which
3363 pattern and alternative was used.  The length of each instruction is
3364 also printed.
3365 .IP "\fB\-dP\fR" 4
3366 .IX Item "-dP"
3367 Dump the \s-1RTL\s0 in the assembler output as a comment before each instruction.
3368 Also turns on \fB\-dp\fR annotation.
3369 .IP "\fB\-dv\fR" 4
3370 .IX Item "-dv"
3371 For each of the other indicated dump files (either with \fB\-d\fR or
3372 \&\fB\-fdump\-rtl\-\fR\fIpass\fR), dump a representation of the control flow
3373 graph suitable for viewing with \s-1VCG\s0 to \fI\fIfile\fI.\fIpass\fI.vcg\fR.
3374 .IP "\fB\-dx\fR" 4
3375 .IX Item "-dx"
3376 Just generate \s-1RTL\s0 for a function instead of compiling it.  Usually used
3377 with \fBr\fR (\fB\-fdump\-rtl\-expand\fR).
3378 .IP "\fB\-dy\fR" 4
3379 .IX Item "-dy"
3380 Dump debugging information during parsing, to standard error.
3381 .RE
3382 .RS 4
3383 .RE
3384 .IP "\fB\-fdump\-unnumbered\fR" 4
3385 .IX Item "-fdump-unnumbered"
3386 When doing debugging dumps (see \fB\-d\fR option above), suppress instruction
3387 numbers and line number note output.  This makes it more feasible to
3388 use diff on debugging dumps for compiler invocations with different
3389 options, in particular with and without \fB\-g\fR.
3390 .IP "\fB\-fdump\-translation\-unit\fR (C and \*(C+ only)" 4
3391 .IX Item "-fdump-translation-unit (C and  only)"
3392 .PD 0
3393 .IP "\fB\-fdump\-translation\-unit\-\fR\fIoptions\fR\fB \fR(C and \*(C+ only)" 4
3394 .IX Item "-fdump-translation-unit-options (C and  only)"
3395 .PD
3396 Dump a representation of the tree structure for the entire translation
3397 unit to a file.  The file name is made by appending \fI.tu\fR to the
3398 source file name.  If the \fB\-\fR\fIoptions\fR form is used, \fIoptions\fR
3399 controls the details of the dump as described for the
3400 \&\fB\-fdump\-tree\fR options.
3401 .IP "\fB\-fdump\-class\-hierarchy\fR (\*(C+ only)" 4
3402 .IX Item "-fdump-class-hierarchy ( only)"
3403 .PD 0
3404 .IP "\fB\-fdump\-class\-hierarchy\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
3405 .IX Item "-fdump-class-hierarchy-options ( only)"
3406 .PD
3407 Dump a representation of each class's hierarchy and virtual function
3408 table layout to a file.  The file name is made by appending \fI.class\fR
3409 to the source file name.  If the \fB\-\fR\fIoptions\fR form is used,
3410 \&\fIoptions\fR controls the details of the dump as described for the
3411 \&\fB\-fdump\-tree\fR options.
3412 .IP "\fB\-fdump\-ipa\-\fR\fIswitch\fR" 4
3413 .IX Item "-fdump-ipa-switch"
3414 Control the dumping at various stages of inter-procedural analysis
3415 language tree to a file.  The file name is generated by appending a switch
3416 specific suffix to the source file name.  The following dumps are possible:
3417 .RS 4
3418 .IP "\fBall\fR" 4
3419 .IX Item "all"
3420 Enables all inter-procedural analysis dumps; currently the only produced
3421 dump is the \fBcgraph\fR dump.
3422 .IP "\fBcgraph\fR" 4
3423 .IX Item "cgraph"
3424 Dumps information about call-graph optimization, unused function removal,
3425 and inlining decisions.
3426 .RE
3427 .RS 4
3428 .RE
3429 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB \fR(C and \*(C+ only)" 4
3430 .IX Item "-fdump-tree-switch (C and  only)"
3431 .PD 0
3432 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB \fR(C and \*(C+ only)" 4
3433 .IX Item "-fdump-tree-switch-options (C and  only)"
3434 .PD
3435 Control the dumping at various stages of processing the intermediate
3436 language tree to a file.  The file name is generated by appending a switch
3437 specific suffix to the source file name.  If the \fB\-\fR\fIoptions\fR
3438 form is used, \fIoptions\fR is a list of \fB\-\fR separated options that
3439 control the details of the dump.  Not all options are applicable to all
3440 dumps, those which are not meaningful will be ignored.  The following
3441 options are available
3442 .RS 4
3443 .IP "\fBaddress\fR" 4
3444 .IX Item "address"
3445 Print the address of each node.  Usually this is not meaningful as it
3446 changes according to the environment and source file.  Its primary use
3447 is for tying up a dump file with a debug environment.
3448 .IP "\fBslim\fR" 4
3449 .IX Item "slim"
3450 Inhibit dumping of members of a scope or body of a function merely
3451 because that scope has been reached.  Only dump such items when they
3452 are directly reachable by some other path.  When dumping pretty-printed
3453 trees, this option inhibits dumping the bodies of control structures.
3454 .IP "\fBraw\fR" 4
3455 .IX Item "raw"
3456 Print a raw representation of the tree.  By default, trees are
3457 pretty-printed into a C\-like representation.
3458 .IP "\fBdetails\fR" 4
3459 .IX Item "details"
3460 Enable more detailed dumps (not honored by every dump option).
3461 .IP "\fBstats\fR" 4
3462 .IX Item "stats"
3463 Enable dumping various statistics about the pass (not honored by every dump
3464 option).
3465 .IP "\fBblocks\fR" 4
3466 .IX Item "blocks"
3467 Enable showing basic block boundaries (disabled in raw dumps).
3468 .IP "\fBvops\fR" 4
3469 .IX Item "vops"
3470 Enable showing virtual operands for every statement.
3471 .IP "\fBlineno\fR" 4
3472 .IX Item "lineno"
3473 Enable showing line numbers for statements.
3474 .IP "\fBuid\fR" 4
3475 .IX Item "uid"
3476 Enable showing the unique \s-1ID\s0 (\f(CW\*(C`DECL_UID\*(C'\fR) for each variable.
3477 .IP "\fBall\fR" 4
3478 .IX Item "all"
3479 Turn on all options, except \fBraw\fR, \fBslim\fR and \fBlineno\fR.
3480 .RE
3481 .RS 4
3482 .Sp
3483 The following tree dumps are possible:
3484 .IP "\fBoriginal\fR" 4
3485 .IX Item "original"
3486 Dump before any tree based optimization, to \fI\fIfile\fI.original\fR.
3487 .IP "\fBoptimized\fR" 4
3488 .IX Item "optimized"
3489 Dump after all tree based optimization, to \fI\fIfile\fI.optimized\fR.
3490 .IP "\fBinlined\fR" 4
3491 .IX Item "inlined"
3492 Dump after function inlining, to \fI\fIfile\fI.inlined\fR.
3493 .IP "\fBgimple\fR" 4
3494 .IX Item "gimple"
3495 Dump each function before and after the gimplification pass to a file.  The
3496 file name is made by appending \fI.gimple\fR to the source file name.
3497 .IP "\fBcfg\fR" 4
3498 .IX Item "cfg"
3499 Dump the control flow graph of each function to a file.  The file name is
3500 made by appending \fI.cfg\fR to the source file name.
3501 .IP "\fBvcg\fR" 4
3502 .IX Item "vcg"
3503 Dump the control flow graph of each function to a file in \s-1VCG\s0 format.  The
3504 file name is made by appending \fI.vcg\fR to the source file name.  Note
3505 that if the file contains more than one function, the generated file cannot
3506 be used directly by \s-1VCG\s0.  You will need to cut and paste each function's
3507 graph into its own separate file first.
3508 .IP "\fBch\fR" 4
3509 .IX Item "ch"
3510 Dump each function after copying loop headers.  The file name is made by
3511 appending \fI.ch\fR to the source file name.
3512 .IP "\fBssa\fR" 4
3513 .IX Item "ssa"
3514 Dump \s-1SSA\s0 related information to a file.  The file name is made by appending
3515 \&\fI.ssa\fR to the source file name.
3516 .IP "\fBalias\fR" 4
3517 .IX Item "alias"
3518 Dump aliasing information for each function.  The file name is made by
3519 appending \fI.alias\fR to the source file name.
3520 .IP "\fBccp\fR" 4
3521 .IX Item "ccp"
3522 Dump each function after \s-1CCP\s0.  The file name is made by appending
3523 \&\fI.ccp\fR to the source file name.
3524 .IP "\fBpre\fR" 4
3525 .IX Item "pre"
3526 Dump trees after partial redundancy elimination.  The file name is made
3527 by appending \fI.pre\fR to the source file name.
3528 .IP "\fBfre\fR" 4
3529 .IX Item "fre"
3530 Dump trees after full redundancy elimination.  The file name is made
3531 by appending \fI.fre\fR to the source file name.
3532 .IP "\fBdce\fR" 4
3533 .IX Item "dce"
3534 Dump each function after dead code elimination.  The file name is made by
3535 appending \fI.dce\fR to the source file name.
3536 .IP "\fBmudflap\fR" 4
3537 .IX Item "mudflap"
3538 Dump each function after adding mudflap instrumentation.  The file name is
3539 made by appending \fI.mudflap\fR to the source file name.
3540 .IP "\fBsra\fR" 4
3541 .IX Item "sra"
3542 Dump each function after performing scalar replacement of aggregates.  The
3543 file name is made by appending \fI.sra\fR to the source file name.
3544 .IP "\fBdom\fR" 4
3545 .IX Item "dom"
3546 Dump each function after applying dominator tree optimizations.  The file
3547 name is made by appending \fI.dom\fR to the source file name.
3548 .IP "\fBdse\fR" 4
3549 .IX Item "dse"
3550 Dump each function after applying dead store elimination.  The file
3551 name is made by appending \fI.dse\fR to the source file name.
3552 .IP "\fBphiopt\fR" 4
3553 .IX Item "phiopt"
3554 Dump each function after optimizing \s-1PHI\s0 nodes into straightline code.  The file
3555 name is made by appending \fI.phiopt\fR to the source file name.
3556 .IP "\fBforwprop\fR" 4
3557 .IX Item "forwprop"
3558 Dump each function after forward propagating single use variables.  The file
3559 name is made by appending \fI.forwprop\fR to the source file name.
3560 .IP "\fBcopyrename\fR" 4
3561 .IX Item "copyrename"
3562 Dump each function after applying the copy rename optimization.  The file
3563 name is made by appending \fI.copyrename\fR to the source file name.
3564 .IP "\fBnrv\fR" 4
3565 .IX Item "nrv"
3566 Dump each function after applying the named return value optimization on
3567 generic trees.  The file name is made by appending \fI.nrv\fR to the source
3568 file name.
3569 .IP "\fBvect\fR" 4
3570 .IX Item "vect"
3571 Dump each function after applying vectorization of loops.  The file name is
3572 made by appending \fI.vect\fR to the source file name.
3573 .IP "\fBall\fR" 4
3574 .IX Item "all"
3575 Enable all the available tree dumps with the flags provided in this option.
3576 .RE
3577 .RS 4
3578 .RE
3579 .IP "\fB\-ftree\-vectorizer\-verbose=\fR\fIn\fR" 4
3580 .IX Item "-ftree-vectorizer-verbose=n"
3581 This option controls the amount of debugging output the vectorizer prints.
3582 This information is written to standard error, unless \fB\-fdump\-tree\-all\fR
3583 or \fB\-fdump\-tree\-vect\fR is specified, in which case it is output to the
3584 usual dump listing file, \fI.vect\fR.
3585 .IP "\fB\-frandom\-seed=\fR\fIstring\fR" 4
3586 .IX Item "-frandom-seed=string"
3587 This option provides a seed that \s-1GCC\s0 uses when it would otherwise use
3588 random numbers.  It is used to generate certain symbol names
3589 that have to be different in every compiled file.  It is also used to
3590 place unique stamps in coverage data files and the object files that
3591 produce them.  You can use the \fB\-frandom\-seed\fR option to produce
3592 reproducibly identical object files.
3593 .Sp
3594 The \fIstring\fR should be different for every file you compile.
3595 .IP "\fB\-fsched\-verbose=\fR\fIn\fR" 4
3596 .IX Item "-fsched-verbose=n"
3597 On targets that use instruction scheduling, this option controls the
3598 amount of debugging output the scheduler prints.  This information is
3599 written to standard error, unless \fB\-dS\fR or \fB\-dR\fR is
3600 specified, in which case it is output to the usual dump
3601 listing file, \fI.sched\fR or \fI.sched2\fR respectively.  However
3602 for \fIn\fR greater than nine, the output is always printed to standard
3603 error.
3604 .Sp
3605 For \fIn\fR greater than zero, \fB\-fsched\-verbose\fR outputs the
3606 same information as \fB\-dRS\fR.  For \fIn\fR greater than one, it
3607 also output basic block probabilities, detailed ready list information
3608 and unit/insn info.  For \fIn\fR greater than two, it includes \s-1RTL\s0
3609 at abort point, control-flow and regions info.  And for \fIn\fR over
3610 four, \fB\-fsched\-verbose\fR also includes dependence info.
3611 .IP "\fB\-save\-temps\fR" 4
3612 .IX Item "-save-temps"
3613 Store the usual ``temporary'' intermediate files permanently; place them
3614 in the current directory and name them based on the source file.  Thus,
3615 compiling \fIfoo.c\fR with \fB\-c \-save\-temps\fR would produce files
3616 \&\fIfoo.i\fR and \fIfoo.s\fR, as well as \fIfoo.o\fR.  This creates a
3617 preprocessed \fIfoo.i\fR output file even though the compiler now
3618 normally uses an integrated preprocessor.
3619 .Sp
3620 When used in combination with the \fB\-x\fR command line option,
3621 \&\fB\-save\-temps\fR is sensible enough to avoid over writing an
3622 input source file with the same extension as an intermediate file.
3623 The corresponding intermediate file may be obtained by renaming the
3624 source file before using \fB\-save\-temps\fR.
3625 .IP "\fB\-time\fR" 4
3626 .IX Item "-time"
3627 Report the \s-1CPU\s0 time taken by each subprocess in the compilation
3628 sequence.  For C source files, this is the compiler proper and assembler
3629 (plus the linker if linking is done).  The output looks like this:
3630 .Sp
3631 .Vb 2
3632 \&        # cc1 0.12 0.01
3633 \&        # as 0.00 0.01
3634 .Ve
3635 .Sp
3636 The first number on each line is the ``user time'', that is time spent
3637 executing the program itself.  The second number is ``system time'',
3638 time spent executing operating system routines on behalf of the program.
3639 Both numbers are in seconds.
3640 .IP "\fB\-fvar\-tracking\fR" 4
3641 .IX Item "-fvar-tracking"
3642 Run variable tracking pass.  It computes where variables are stored at each
3643 position in code.  Better debugging information is then generated
3644 (if the debugging information format supports this information).
3645 .Sp
3646 It is enabled by default when compiling with optimization (\fB\-Os\fR,
3647 \&\fB\-O\fR, \fB\-O2\fR, ...), debugging information (\fB\-g\fR) and
3648 the debug info format supports it.
3649 .IP "\fB\-print\-file\-name=\fR\fIlibrary\fR" 4
3650 .IX Item "-print-file-name=library"
3651 Print the full absolute name of the library file \fIlibrary\fR that
3652 would be used when linking\-\-\-and don't do anything else.  With this
3653 option, \s-1GCC\s0 does not compile or link anything; it just prints the
3654 file name.
3655 .IP "\fB\-print\-multi\-directory\fR" 4
3656 .IX Item "-print-multi-directory"
3657 Print the directory name corresponding to the multilib selected by any
3658 other switches present in the command line.  This directory is supposed
3659 to exist in \fB\s-1GCC_EXEC_PREFIX\s0\fR.
3660 .IP "\fB\-print\-multi\-lib\fR" 4
3661 .IX Item "-print-multi-lib"
3662 Print the mapping from multilib directory names to compiler switches
3663 that enable them.  The directory name is separated from the switches by
3664 \&\fB;\fR, and each switch starts with an \fB@} instead of the
3665 \&\f(CB@samp\fB{\-\fR, without spaces between multiple switches.  This is supposed to
3666 ease shell\-processing.
3667 .IP "\fB\-print\-prog\-name=\fR\fIprogram\fR" 4
3668 .IX Item "-print-prog-name=program"
3669 Like \fB\-print\-file\-name\fR, but searches for a program such as \fBcpp\fR.
3670 .IP "\fB\-print\-libgcc\-file\-name\fR" 4
3671 .IX Item "-print-libgcc-file-name"
3672 Same as \fB\-print\-file\-name=libgcc.a\fR.
3673 .Sp
3674 This is useful when you use \fB\-nostdlib\fR or \fB\-nodefaultlibs\fR
3675 but you do want to link with \fIlibgcc.a\fR.  You can do
3676 .Sp
3677 .Vb 1
3678 \&        gcc -nostdlib <files>... `gcc -print-libgcc-file-name`
3679 .Ve
3680 .IP "\fB\-print\-search\-dirs\fR" 4
3681 .IX Item "-print-search-dirs"
3682 Print the name of the configured installation directory and a list of
3683 program and library directories \fBgcc\fR will search\-\-\-and don't do anything else.
3684 .Sp
3685 This is useful when \fBgcc\fR prints the error message
3686 \&\fBinstallation problem, cannot exec cpp0: No such file or directory\fR.
3687 To resolve this you either need to put \fIcpp0\fR and the other compiler
3688 components where \fBgcc\fR expects to find them, or you can set the environment
3689 variable \fB\s-1GCC_EXEC_PREFIX\s0\fR to the directory where you installed them.
3690 Don't forget the trailing \fB/\fR.
3691 .IP "\fB\-dumpmachine\fR" 4
3692 .IX Item "-dumpmachine"
3693 Print the compiler's target machine (for example,
3694 \&\fBi686\-pc\-linux\-gnu\fR)\-\-\-and don't do anything else.
3695 .IP "\fB\-dumpversion\fR" 4
3696 .IX Item "-dumpversion"
3697 Print the compiler version (for example, \fB3.0\fR)\-\-\-and don't do
3698 anything else.
3699 .IP "\fB\-dumpspecs\fR" 4
3700 .IX Item "-dumpspecs"
3701 Print the compiler's built-in specs\-\-\-and don't do anything else.  (This
3702 is used when \s-1GCC\s0 itself is being built.)  
3703 .IP "\fB\-feliminate\-unused\-debug\-types\fR" 4
3704 .IX Item "-feliminate-unused-debug-types"
3705 Normally, when producing \s-1DWARF2\s0 output, \s-1GCC\s0 will emit debugging
3706 information for all types declared in a compilation
3707 unit, regardless of whether or not they are actually used
3708 in that compilation unit.  Sometimes this is useful, such as
3709 if, in the debugger, you want to cast a value to a type that is
3710 not actually used in your program (but is declared).  More often,
3711 however, this results in a significant amount of wasted space.
3712 With this option, \s-1GCC\s0 will avoid producing debug symbol output
3713 for types that are nowhere used in the source file being compiled.
3714 .Sh "Options That Control Optimization"
3715 .IX Subsection "Options That Control Optimization"
3716 These options control various sorts of optimizations.
3717 .PP
3718 Without any optimization option, the compiler's goal is to reduce the
3719 cost of compilation and to make debugging produce the expected
3720 results.  Statements are independent: if you stop the program with a
3721 breakpoint between statements, you can then assign a new value to any
3722 variable or change the program counter to any other statement in the
3723 function and get exactly the results you would expect from the source
3724 code.
3725 .PP
3726 Turning on optimization flags makes the compiler attempt to improve
3727 the performance and/or code size at the expense of compilation time
3728 and possibly the ability to debug the program.
3729 .PP
3730 The compiler performs optimization based on the knowledge it has of
3731 the program.  Optimization levels \fB\-O2\fR and above, in
3732 particular, enable \fIunit-at-a-time\fR mode, which allows the
3733 compiler to consider information gained from later functions in
3734 the file when compiling a function.  Compiling multiple files at
3735 once to a single output file in \fIunit-at-a-time\fR mode allows
3736 the compiler to use information gained from all of the files when
3737 compiling each of them.
3738 .PP
3739 Not all optimizations are controlled directly by a flag.  Only
3740 optimizations that have a flag are listed.
3741 .IP "\fB\-O\fR" 4
3742 .IX Item "-O"
3743 .PD 0
3744 .IP "\fB\-O1\fR" 4
3745 .IX Item "-O1"
3746 .PD
3747 Optimize.  Optimizing compilation takes somewhat more time, and a lot
3748 more memory for a large function.
3749 .Sp
3750 With \fB\-O\fR, the compiler tries to reduce code size and execution
3751 time, without performing any optimizations that take a great deal of
3752 compilation time.
3753 .Sp
3754 \&\fB\-O\fR turns on the following optimization flags:
3755 \&\fB\-fdefer\-pop 
3756 \&\-fdelayed\-branch 
3757 \&\-fguess\-branch\-probability 
3758 \&\-fcprop\-registers 
3759 \&\-floop\-optimize 
3760 \&\-fif\-conversion 
3761 \&\-fif\-conversion2 
3762 \&\-ftree\-ccp 
3763 \&\-ftree\-dce 
3764 \&\-ftree\-dominator\-opts 
3765 \&\-ftree\-dse 
3766 \&\-ftree\-ter 
3767 \&\-ftree\-lrs 
3768 \&\-ftree\-sra 
3769 \&\-ftree\-copyrename 
3770 \&\-ftree\-fre 
3771 \&\-ftree\-ch 
3772 \&\-fmerge\-constants\fR
3773 .Sp
3774 \&\fB\-O\fR also turns on \fB\-fomit\-frame\-pointer\fR on machines
3775 where doing so does not interfere with debugging.
3776 .Sp
3777 \&\fB\-O\fR doesn't turn on \fB\-ftree\-sra\fR for the Ada compiler.
3778 This option must be explicitly specified on the command line to be
3779 enabled for the Ada compiler.
3780 .IP "\fB\-O2\fR" 4
3781 .IX Item "-O2"
3782 Optimize even more.  \s-1GCC\s0 performs nearly all supported optimizations
3783 that do not involve a space-speed tradeoff.  The compiler does not
3784 perform loop unrolling or function inlining when you specify \fB\-O2\fR.
3785 As compared to \fB\-O\fR, this option increases both compilation time
3786 and the performance of the generated code.
3787 .Sp
3788 \&\fB\-O2\fR turns on all optimization flags specified by \fB\-O\fR.  It
3789 also turns on the following optimization flags:
3790 \&\fB\-fthread\-jumps 
3791 \&\-fcrossjumping 
3792 \&\-foptimize\-sibling\-calls 
3793 \&\-fcse\-follow\-jumps  \-fcse\-skip\-blocks 
3794 \&\-fgcse  \-fgcse\-lm  
3795 \&\-fexpensive\-optimizations 
3796 \&\-fstrength\-reduce 
3797 \&\-frerun\-cse\-after\-loop  \-frerun\-loop\-opt 
3798 \&\-fcaller\-saves 
3799 \&\-fforce\-mem 
3800 \&\-fpeephole2 
3801 \&\-fschedule\-insns  \-fschedule\-insns2 
3802 \&\-fsched\-interblock  \-fsched\-spec 
3803 \&\-fregmove 
3804 \&\-fstrict\-aliasing 
3805 \&\-fdelete\-null\-pointer\-checks 
3806 \&\-freorder\-blocks  \-freorder\-functions 
3807 \&\-funit\-at\-a\-time 
3808 \&\-falign\-functions  \-falign\-jumps 
3809 \&\-falign\-loops  \-falign\-labels 
3810 \&\-ftree\-pre\fR
3811 .Sp
3812 Please note the warning under \fB\-fgcse\fR about
3813 invoking \fB\-O2\fR on programs that use computed gotos.
3814 .IP "\fB\-O3\fR" 4
3815 .IX Item "-O3"
3816 Optimize yet more.  \fB\-O3\fR turns on all optimizations specified by
3817 \&\fB\-O2\fR and also turns on the \fB\-finline\-functions\fR,
3818 \&\fB\-funswitch\-loops\fR and \fB\-fgcse\-after\-reload\fR options.
3819 .IP "\fB\-O0\fR" 4
3820 .IX Item "-O0"
3821 Do not optimize.  This is the default.
3822 .IP "\fB\-Os\fR" 4
3823 .IX Item "-Os"
3824 Optimize for size.  \fB\-Os\fR enables all \fB\-O2\fR optimizations that
3825 do not typically increase code size.  It also performs further
3826 optimizations designed to reduce code size.
3827 .Sp
3828 \&\fB\-Os\fR disables the following optimization flags:
3829 \&\fB\-falign\-functions  \-falign\-jumps  \-falign\-loops 
3830 \&\-falign\-labels  \-freorder\-blocks  \-freorder\-blocks\-and\-partition \-fprefetch\-loop\-arrays\fR
3831 .Sp
3832 If you use multiple \fB\-O\fR options, with or without level numbers,
3833 the last such option is the one that is effective.
3834 .PP
3835 Options of the form \fB\-f\fR\fIflag\fR specify machine-independent
3836 flags.  Most flags have both positive and negative forms; the negative
3837 form of \fB\-ffoo\fR would be \fB\-fno\-foo\fR.  In the table
3838 below, only one of the forms is listed\-\-\-the one you typically will
3839 use.  You can figure out the other form by either removing \fBno\-\fR
3840 or adding it.
3841 .PP
3842 The following options control specific optimizations.  They are either
3843 activated by \fB\-O\fR options or are related to ones that are.  You
3844 can use the following flags in the rare cases when ``fine\-tuning'' of
3845 optimizations to be performed is desired.
3846 .IP "\fB\-fno\-default\-inline\fR" 4
3847 .IX Item "-fno-default-inline"
3848 Do not make member functions inline by default merely because they are
3849 defined inside the class scope (\*(C+ only).  Otherwise, when you specify
3850 \&\fB\-O\fR, member functions defined inside class scope are compiled
3851 inline by default; i.e., you don't need to add \fBinline\fR in front of
3852 the member function name.
3853 .IP "\fB\-fno\-defer\-pop\fR" 4
3854 .IX Item "-fno-defer-pop"
3855 Always pop the arguments to each function call as soon as that function
3856 returns.  For machines which must pop arguments after a function call,
3857 the compiler normally lets arguments accumulate on the stack for several
3858 function calls and pops them all at once.
3859 .Sp
3860 Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3861 .IP "\fB\-fforce\-mem\fR" 4
3862 .IX Item "-fforce-mem"
3863 Force memory operands to be copied into registers before doing
3864 arithmetic on them.  This produces better code by making all memory
3865 references potential common subexpressions.  When they are not common
3866 subexpressions, instruction combination should eliminate the separate
3867 register\-load.
3868 .Sp
3869 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3870 .IP "\fB\-fforce\-addr\fR" 4
3871 .IX Item "-fforce-addr"
3872 Force memory address constants to be copied into registers before
3873 doing arithmetic on them.  This may produce better code just as
3874 \&\fB\-fforce\-mem\fR may.
3875 .IP "\fB\-fomit\-frame\-pointer\fR" 4
3876 .IX Item "-fomit-frame-pointer"
3877 Don't keep the frame pointer in a register for functions that
3878 don't need one.  This avoids the instructions to save, set up and
3879 restore frame pointers; it also makes an extra register available
3880 in many functions.  \fBIt also makes debugging impossible on
3881 some machines.\fR
3882 .Sp
3883 On some machines, such as the \s-1VAX\s0, this flag has no effect, because
3884 the standard calling sequence automatically handles the frame pointer
3885 and nothing is saved by pretending it doesn't exist.  The
3886 machine-description macro \f(CW\*(C`FRAME_POINTER_REQUIRED\*(C'\fR controls
3887 whether a target machine supports this flag.  
3888 .Sp
3889 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3890 .IP "\fB\-foptimize\-sibling\-calls\fR" 4
3891 .IX Item "-foptimize-sibling-calls"
3892 Optimize sibling and tail recursive calls.
3893 .Sp
3894 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3895 .IP "\fB\-fno\-inline\fR" 4
3896 .IX Item "-fno-inline"
3897 Don't pay attention to the \f(CW\*(C`inline\*(C'\fR keyword.  Normally this option
3898 is used to keep the compiler from expanding any functions inline.
3899 Note that if you are not optimizing, no functions can be expanded inline.
3900 .IP "\fB\-finline\-functions\fR" 4
3901 .IX Item "-finline-functions"
3902 Integrate all simple functions into their callers.  The compiler
3903 heuristically decides which functions are simple enough to be worth
3904 integrating in this way.
3905 .Sp
3906 If all calls to a given function are integrated, and the function is
3907 declared \f(CW\*(C`static\*(C'\fR, then the function is normally not output as
3908 assembler code in its own right.
3909 .Sp
3910 Enabled at level \fB\-O3\fR.
3911 .IP "\fB\-finline\-limit=\fR\fIn\fR" 4
3912 .IX Item "-finline-limit=n"
3913 By default, \s-1GCC\s0 limits the size of functions that can be inlined.  This flag
3914 allows the control of this limit for functions that are explicitly marked as
3915 inline (i.e., marked with the inline keyword or defined within the class
3916 definition in c++).  \fIn\fR is the size of functions that can be inlined in
3917 number of pseudo instructions (not counting parameter handling).  The default
3918 value of \fIn\fR is 600.
3919 Increasing this value can result in more inlined code at
3920 the cost of compilation time and memory consumption.  Decreasing usually makes
3921 the compilation faster and less code will be inlined (which presumably
3922 means slower programs).  This option is particularly useful for programs that
3923 use inlining heavily such as those based on recursive templates with \*(C+.
3924 .Sp
3925 Inlining is actually controlled by a number of parameters, which may be
3926 specified individually by using \fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR.
3927 The \fB\-finline\-limit=\fR\fIn\fR option sets some of these parameters
3928 as follows:
3929 .RS 4
3930 .Sp
3931 .Vb 8
3932 \& @item max-inline-insns-single
3933 \&  is set to I<n>/2.
3934 \& @item max-inline-insns-auto
3935 \&  is set to I<n>/2.
3936 \& @item min-inline-insns
3937 \&  is set to 130 or I<n>/4, whichever is smaller.
3938 \& @item max-inline-insns-rtl
3939 \&  is set to I<n>.
3940 .Ve
3941 .RE
3942 .RS 4
3943 .Sp
3944 See below for a documentation of the individual
3945 parameters controlling inlining.
3946 .Sp
3947 \&\fINote:\fR pseudo instruction represents, in this particular context, an
3948 abstract measurement of function's size.  In no way, it represents a count
3949 of assembly instructions and as such its exact meaning might change from one
3950 release to an another.
3951 .RE
3952 .IP "\fB\-fkeep\-inline\-functions\fR" 4
3953 .IX Item "-fkeep-inline-functions"
3954 In C, emit \f(CW\*(C`static\*(C'\fR functions that are declared \f(CW\*(C`inline\*(C'\fR
3955 into the object file, even if the function has been inlined into all
3956 of its callers.  This switch does not affect functions using the
3957 \&\f(CW\*(C`extern inline\*(C'\fR extension in \s-1GNU\s0 C.  In \*(C+, emit any and all
3958 inline functions into the object file.
3959 .IP "\fB\-fkeep\-static\-consts\fR" 4
3960 .IX Item "-fkeep-static-consts"
3961 Emit variables declared \f(CW\*(C`static const\*(C'\fR when optimization isn't turned
3962 on, even if the variables aren't referenced.
3963 .Sp
3964 \&\s-1GCC\s0 enables this option by default.  If you want to force the compiler to
3965 check if the variable was referenced, regardless of whether or not
3966 optimization is turned on, use the \fB\-fno\-keep\-static\-consts\fR option.
3967 .IP "\fB\-fmerge\-constants\fR" 4
3968 .IX Item "-fmerge-constants"
3969 Attempt to merge identical constants (string constants and floating point
3970 constants) across compilation units.
3971 .Sp
3972 This option is the default for optimized compilation if the assembler and
3973 linker support it.  Use \fB\-fno\-merge\-constants\fR to inhibit this
3974 behavior.
3975 .Sp
3976 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3977 .IP "\fB\-fmerge\-all\-constants\fR" 4
3978 .IX Item "-fmerge-all-constants"
3979 Attempt to merge identical constants and identical variables.
3980 .Sp
3981 This option implies \fB\-fmerge\-constants\fR.  In addition to
3982 \&\fB\-fmerge\-constants\fR this considers e.g. even constant initialized
3983 arrays or initialized constant variables with integral or floating point
3984 types.  Languages like C or \*(C+ require each non-automatic variable to
3985 have distinct location, so using this option will result in non-conforming
3986 behavior.
3987 .IP "\fB\-fmodulo\-sched\fR" 4
3988 .IX Item "-fmodulo-sched"
3989 Perform swing modulo scheduling immediately before the first scheduling
3990 pass.  This pass looks at innermost loops and reorders their
3991 instructions by overlapping different iterations.
3992 .IP "\fB\-fno\-branch\-count\-reg\fR" 4
3993 .IX Item "-fno-branch-count-reg"
3994 Do not use ``decrement and branch'' instructions on a count register,
3995 but instead generate a sequence of instructions that decrement a
3996 register, compare it against zero, then branch based upon the result.
3997 This option is only meaningful on architectures that support such
3998 instructions, which include x86, PowerPC, \s-1IA\-64\s0 and S/390.
3999 .Sp
4000 The default is \fB\-fbranch\-count\-reg\fR, enabled when
4001 \&\fB\-fstrength\-reduce\fR is enabled.
4002 .IP "\fB\-fno\-function\-cse\fR" 4
4003 .IX Item "-fno-function-cse"
4004 Do not put function addresses in registers; make each instruction that
4005 calls a constant function contain the function's address explicitly.
4006 .Sp
4007 This option results in less efficient code, but some strange hacks
4008 that alter the assembler output may be confused by the optimizations
4009 performed when this option is not used.
4010 .Sp
4011 The default is \fB\-ffunction\-cse\fR
4012 .IP "\fB\-fno\-zero\-initialized\-in\-bss\fR" 4
4013 .IX Item "-fno-zero-initialized-in-bss"
4014 If the target supports a \s-1BSS\s0 section, \s-1GCC\s0 by default puts variables that
4015 are initialized to zero into \s-1BSS\s0.  This can save space in the resulting
4016 code.
4017 .Sp
4018 This option turns off this behavior because some programs explicitly
4019 rely on variables going to the data section.  E.g., so that the
4020 resulting executable can find the beginning of that section and/or make
4021 assumptions based on that.
4022 .Sp
4023 The default is \fB\-fzero\-initialized\-in\-bss\fR.
4024 .IP "\fB\-fbounds\-check\fR" 4
4025 .IX Item "-fbounds-check"
4026 For front-ends that support it, generate additional code to check that
4027 indices used to access arrays are within the declared range.  This is
4028 currently only supported by the Java and Fortran front\-ends, where
4029 this option defaults to true and false respectively.
4030 .IP "\fB\-fmudflap \-fmudflapth \-fmudflapir\fR" 4
4031 .IX Item "-fmudflap -fmudflapth -fmudflapir"
4032 For front-ends that support it (C and \*(C+), instrument all risky
4033 pointer/array dereferencing operations, some standard library
4034 string/heap functions, and some other associated constructs with
4035 range/validity tests.  Modules so instrumented should be immune to
4036 buffer overflows, invalid heap use, and some other classes of C/\*(C+
4037 programming errors.  The instrumentation relies on a separate runtime
4038 library (\fIlibmudflap\fR), which will be linked into a program if
4039 \&\fB\-fmudflap\fR is given at link time.  Run-time behavior of the
4040 instrumented program is controlled by the \fB\s-1MUDFLAP_OPTIONS\s0\fR
4041 environment variable.  See \f(CW\*(C`env MUDFLAP_OPTIONS=\-help a.out\*(C'\fR
4042 for its options.
4043 .Sp
4044 Use \fB\-fmudflapth\fR instead of \fB\-fmudflap\fR to compile and to
4045 link if your program is multi\-threaded.  Use \fB\-fmudflapir\fR, in
4046 addition to \fB\-fmudflap\fR or \fB\-fmudflapth\fR, if
4047 instrumentation should ignore pointer reads.  This produces less
4048 instrumentation (and therefore faster execution) and still provides
4049 some protection against outright memory corrupting writes, but allows
4050 erroneously read data to propagate within a program.
4051 .IP "\fB\-fstrength\-reduce\fR" 4
4052 .IX Item "-fstrength-reduce"
4053 Perform the optimizations of loop strength reduction and
4054 elimination of iteration variables.
4055 .Sp
4056 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4057 .IP "\fB\-fthread\-jumps\fR" 4
4058 .IX Item "-fthread-jumps"
4059 Perform optimizations where we check to see if a jump branches to a
4060 location where another comparison subsumed by the first is found.  If
4061 so, the first branch is redirected to either the destination of the
4062 second branch or a point immediately following it, depending on whether
4063 the condition is known to be true or false.
4064 .Sp
4065 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4066 .IP "\fB\-fcse\-follow\-jumps\fR" 4
4067 .IX Item "-fcse-follow-jumps"
4068 In common subexpression elimination, scan through jump instructions
4069 when the target of the jump is not reached by any other path.  For
4070 example, when \s-1CSE\s0 encounters an \f(CW\*(C`if\*(C'\fR statement with an
4071 \&\f(CW\*(C`else\*(C'\fR clause, \s-1CSE\s0 will follow the jump when the condition
4072 tested is false.
4073 .Sp
4074 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4075 .IP "\fB\-fcse\-skip\-blocks\fR" 4
4076 .IX Item "-fcse-skip-blocks"
4077 This is similar to \fB\-fcse\-follow\-jumps\fR, but causes \s-1CSE\s0 to
4078 follow jumps which conditionally skip over blocks.  When \s-1CSE\s0
4079 encounters a simple \f(CW\*(C`if\*(C'\fR statement with no else clause,
4080 \&\fB\-fcse\-skip\-blocks\fR causes \s-1CSE\s0 to follow the jump around the
4081 body of the \f(CW\*(C`if\*(C'\fR.
4082 .Sp
4083 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4084 .IP "\fB\-frerun\-cse\-after\-loop\fR" 4
4085 .IX Item "-frerun-cse-after-loop"
4086 Re-run common subexpression elimination after loop optimizations has been
4087 performed.
4088 .Sp
4089 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4090 .IP "\fB\-frerun\-loop\-opt\fR" 4
4091 .IX Item "-frerun-loop-opt"
4092 Run the loop optimizer twice.
4093 .Sp
4094 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4095 .IP "\fB\-fgcse\fR" 4
4096 .IX Item "-fgcse"
4097 Perform a global common subexpression elimination pass.
4098 This pass also performs global constant and copy propagation.
4099 .Sp
4100 \&\fINote:\fR When compiling a program using computed gotos, a \s-1GCC\s0
4101 extension, you may get better runtime performance if you disable
4102 the global common subexpression elimination pass by adding
4103 \&\fB\-fno\-gcse\fR to the command line.
4104 .Sp
4105 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4106 .IP "\fB\-fgcse\-lm\fR" 4
4107 .IX Item "-fgcse-lm"
4108 When \fB\-fgcse\-lm\fR is enabled, global common subexpression elimination will
4109 attempt to move loads which are only killed by stores into themselves.  This
4110 allows a loop containing a load/store sequence to be changed to a load outside
4111 the loop, and a copy/store within the loop.
4112 .Sp
4113 Enabled by default when gcse is enabled.
4114 .IP "\fB\-fgcse\-sm\fR" 4
4115 .IX Item "-fgcse-sm"
4116 When \fB\-fgcse\-sm\fR is enabled, a store motion pass is run after
4117 global common subexpression elimination.  This pass will attempt to move
4118 stores out of loops.  When used in conjunction with \fB\-fgcse\-lm\fR,
4119 loops containing a load/store sequence can be changed to a load before
4120 the loop and a store after the loop.
4121 .Sp
4122 Not enabled at any optimization level.
4123 .IP "\fB\-fgcse\-las\fR" 4
4124 .IX Item "-fgcse-las"
4125 When \fB\-fgcse\-las\fR is enabled, the global common subexpression
4126 elimination pass eliminates redundant loads that come after stores to the
4127 same memory location (both partial and full redundancies).
4128 .Sp
4129 Not enabled at any optimization level.
4130 .IP "\fB\-fgcse\-after\-reload\fR" 4
4131 .IX Item "-fgcse-after-reload"
4132 When \fB\-fgcse\-after\-reload\fR is enabled, a redundant load elimination
4133 pass is performed after reload.  The purpose of this pass is to cleanup
4134 redundant spilling.
4135 .IP "\fB\-floop\-optimize\fR" 4
4136 .IX Item "-floop-optimize"
4137 Perform loop optimizations: move constant expressions out of loops, simplify
4138 exit test conditions and optionally do strength-reduction as well.
4139 .Sp
4140 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4141 .IP "\fB\-floop\-optimize2\fR" 4
4142 .IX Item "-floop-optimize2"
4143 Perform loop optimizations using the new loop optimizer.  The optimizations
4144 (loop unrolling, peeling and unswitching, loop invariant motion) are enabled
4145 by separate flags.
4146 .IP "\fB\-fcrossjumping\fR" 4
4147 .IX Item "-fcrossjumping"
4148 Perform cross-jumping transformation.  This transformation unifies equivalent code and save code size.  The
4149 resulting code may or may not perform better than without cross\-jumping.
4150 .Sp
4151 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4152 .IP "\fB\-fif\-conversion\fR" 4
4153 .IX Item "-fif-conversion"
4154 Attempt to transform conditional jumps into branch-less equivalents.  This
4155 include use of conditional moves, min, max, set flags and abs instructions, and
4156 some tricks doable by standard arithmetics.  The use of conditional execution
4157 on chips where it is available is controlled by \f(CW\*(C`if\-conversion2\*(C'\fR.
4158 .Sp
4159 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4160 .IP "\fB\-fif\-conversion2\fR" 4
4161 .IX Item "-fif-conversion2"
4162 Use conditional execution (where available) to transform conditional jumps into
4163 branch-less equivalents.
4164 .Sp
4165 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4166 .IP "\fB\-fdelete\-null\-pointer\-checks\fR" 4
4167 .IX Item "-fdelete-null-pointer-checks"
4168 Use global dataflow analysis to identify and eliminate useless checks
4169 for null pointers.  The compiler assumes that dereferencing a null
4170 pointer would have halted the program.  If a pointer is checked after
4171 it has already been dereferenced, it cannot be null.
4172 .Sp
4173 In some environments, this assumption is not true, and programs can
4174 safely dereference null pointers.  Use
4175 \&\fB\-fno\-delete\-null\-pointer\-checks\fR to disable this optimization
4176 for programs which depend on that behavior.
4177 .Sp
4178 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4179 .IP "\fB\-fexpensive\-optimizations\fR" 4
4180 .IX Item "-fexpensive-optimizations"
4181 Perform a number of minor optimizations that are relatively expensive.
4182 .Sp
4183 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4184 .IP "\fB\-foptimize\-register\-move\fR" 4
4185 .IX Item "-foptimize-register-move"
4186 .PD 0
4187 .IP "\fB\-fregmove\fR" 4
4188 .IX Item "-fregmove"
4189 .PD
4190 Attempt to reassign register numbers in move instructions and as
4191 operands of other simple instructions in order to maximize the amount of
4192 register tying.  This is especially helpful on machines with two-operand
4193 instructions.
4194 .Sp
4195 Note \fB\-fregmove\fR and \fB\-foptimize\-register\-move\fR are the same
4196 optimization.
4197 .Sp
4198 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4199 .IP "\fB\-fdelayed\-branch\fR" 4
4200 .IX Item "-fdelayed-branch"
4201 If supported for the target machine, attempt to reorder instructions
4202 to exploit instruction slots available after delayed branch
4203 instructions.
4204 .Sp
4205 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4206 .IP "\fB\-fschedule\-insns\fR" 4
4207 .IX Item "-fschedule-insns"
4208 If supported for the target machine, attempt to reorder instructions to
4209 eliminate execution stalls due to required data being unavailable.  This
4210 helps machines that have slow floating point or memory load instructions
4211 by allowing other instructions to be issued until the result of the load
4212 or floating point instruction is required.
4213 .Sp
4214 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4215 .IP "\fB\-fschedule\-insns2\fR" 4
4216 .IX Item "-fschedule-insns2"
4217 Similar to \fB\-fschedule\-insns\fR, but requests an additional pass of
4218 instruction scheduling after register allocation has been done.  This is
4219 especially useful on machines with a relatively small number of
4220 registers and where memory load instructions take more than one cycle.
4221 .Sp
4222 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4223 .IP "\fB\-fno\-sched\-interblock\fR" 4
4224 .IX Item "-fno-sched-interblock"
4225 Don't schedule instructions across basic blocks.  This is normally
4226 enabled by default when scheduling before register allocation, i.e.
4227 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
4228 .IP "\fB\-fno\-sched\-spec\fR" 4
4229 .IX Item "-fno-sched-spec"
4230 Don't allow speculative motion of non-load instructions.  This is normally
4231 enabled by default when scheduling before register allocation, i.e.
4232 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
4233 .IP "\fB\-fsched\-spec\-load\fR" 4
4234 .IX Item "-fsched-spec-load"
4235 Allow speculative motion of some load instructions.  This only makes
4236 sense when scheduling before register allocation, i.e. with
4237 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
4238 .IP "\fB\-fsched\-spec\-load\-dangerous\fR" 4
4239 .IX Item "-fsched-spec-load-dangerous"
4240 Allow speculative motion of more load instructions.  This only makes
4241 sense when scheduling before register allocation, i.e. with
4242 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
4243 .IP "\fB\-fsched\-stalled\-insns=\fR\fIn\fR" 4
4244 .IX Item "-fsched-stalled-insns=n"
4245 Define how many insns (if any) can be moved prematurely from the queue
4246 of stalled insns into the ready list, during the second scheduling pass.
4247 .IP "\fB\-fsched\-stalled\-insns\-dep=\fR\fIn\fR" 4
4248 .IX Item "-fsched-stalled-insns-dep=n"
4249 Define how many insn groups (cycles) will be examined for a dependency
4250 on a stalled insn that is candidate for premature removal from the queue
4251 of stalled insns.  Has an effect only during the second scheduling pass,
4252 and only if \fB\-fsched\-stalled\-insns\fR is used and its value is not zero.
4253 .IP "\fB\-fsched2\-use\-superblocks\fR" 4
4254 .IX Item "-fsched2-use-superblocks"
4255 When scheduling after register allocation, do use superblock scheduling
4256 algorithm.  Superblock scheduling allows motion across basic block boundaries
4257 resulting on faster schedules.  This option is experimental, as not all machine
4258 descriptions used by \s-1GCC\s0 model the \s-1CPU\s0 closely enough to avoid unreliable
4259 results from the algorithm.
4260 .Sp
4261 This only makes sense when scheduling after register allocation, i.e. with
4262 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
4263 .IP "\fB\-fsched2\-use\-traces\fR" 4
4264 .IX Item "-fsched2-use-traces"
4265 Use \fB\-fsched2\-use\-superblocks\fR algorithm when scheduling after register
4266 allocation and additionally perform code duplication in order to increase the
4267 size of superblocks using tracer pass.  See \fB\-ftracer\fR for details on
4268 trace formation.
4269 .Sp
4270 This mode should produce faster but significantly longer programs.  Also
4271 without \fB\-fbranch\-probabilities\fR the traces constructed may not
4272 match the reality and hurt the performance.  This only makes
4273 sense when scheduling after register allocation, i.e. with
4274 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
4275 .IP "\fB\-freschedule\-modulo\-scheduled\-loops\fR" 4
4276 .IX Item "-freschedule-modulo-scheduled-loops"
4277 The modulo scheduling comes before the traditional scheduling, if a loop was modulo scheduled
4278 we may want to prevent the later scheduling passes from changing its schedule, we use this
4279 option to control that.
4280 .IP "\fB\-fcaller\-saves\fR" 4
4281 .IX Item "-fcaller-saves"
4282 Enable values to be allocated in registers that will be clobbered by
4283 function calls, by emitting extra instructions to save and restore the
4284 registers around such calls.  Such allocation is done only when it
4285 seems to result in better code than would otherwise be produced.
4286 .Sp
4287 This option is always enabled by default on certain machines, usually
4288 those which have no call-preserved registers to use instead.
4289 .Sp
4290 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4291 .IP "\fB\-ftree\-pre\fR" 4
4292 .IX Item "-ftree-pre"
4293 Perform Partial Redundancy Elimination (\s-1PRE\s0) on trees.  This flag is
4294 enabled by default at \fB\-O2\fR and \fB\-O3\fR.
4295 .IP "\fB\-ftree\-fre\fR" 4
4296 .IX Item "-ftree-fre"
4297 Perform Full Redundancy Elimination (\s-1FRE\s0) on trees.  The difference
4298 between \s-1FRE\s0 and \s-1PRE\s0 is that \s-1FRE\s0 only considers expressions
4299 that are computed on all paths leading to the redundant computation.
4300 This analysis faster than \s-1PRE\s0, though it exposes fewer redundancies.
4301 This flag is enabled by default at \fB\-O\fR and higher.
4302 .IP "\fB\-ftree\-ccp\fR" 4
4303 .IX Item "-ftree-ccp"
4304 Perform sparse conditional constant propagation (\s-1CCP\s0) on trees.  This flag
4305 is enabled by default at \fB\-O\fR and higher.
4306 .IP "\fB\-ftree\-dce\fR" 4
4307 .IX Item "-ftree-dce"
4308 Perform dead code elimination (\s-1DCE\s0) on trees.  This flag is enabled by
4309 default at \fB\-O\fR and higher.
4310 .IP "\fB\-ftree\-dominator\-opts\fR" 4
4311 .IX Item "-ftree-dominator-opts"
4312 Perform dead code elimination (\s-1DCE\s0) on trees.  This flag is enabled by
4313 default at \fB\-O\fR and higher.
4314 .IP "\fB\-ftree\-ch\fR" 4
4315 .IX Item "-ftree-ch"
4316 Perform loop header copying on trees.  This is beneficial since it increases
4317 effectiveness of code motion optimizations.  It also saves one jump.  This flag
4318 is enabled by default at \fB\-O\fR and higher.  It is not enabled
4319 for \fB\-Os\fR, since it usually increases code size.
4320 .IP "\fB\-ftree\-loop\-optimize\fR" 4
4321 .IX Item "-ftree-loop-optimize"
4322 Perform loop optimizations on trees.  This flag is enabled by default
4323 at \fB\-O\fR and higher.
4324 .IP "\fB\-ftree\-loop\-linear\fR" 4
4325 .IX Item "-ftree-loop-linear"
4326 Perform linear loop transformations on tree.  This flag can improve cache
4327 performance and allow further loop optimizations to take place.
4328 .IP "\fB\-ftree\-loop\-im\fR" 4
4329 .IX Item "-ftree-loop-im"
4330 Perform loop invariant motion on trees.  This pass moves only invariants that
4331 would be hard to handle at \s-1RTL\s0 level (function calls, operations that expand to
4332 nontrivial sequences of insns).  With \fB\-funswitch\-loops\fR it also moves
4333 operands of conditions that are invariant out of the loop, so that we can use
4334 just trivial invariantness analysis in loop unswitching.  The pass also includes
4335 store motion.
4336 .IP "\fB\-ftree\-loop\-ivcanon\fR" 4
4337 .IX Item "-ftree-loop-ivcanon"
4338 Create a canonical counter for number of iterations in the loop for that
4339 determining number of iterations requires complicated analysis.  Later
4340 optimizations then may determine the number easily.  Useful especially
4341 in connection with unrolling.
4342 .IP "\fB\-fivopts\fR" 4
4343 .IX Item "-fivopts"
4344 Perform induction variable optimizations (strength reduction, induction
4345 variable merging and induction variable elimination) on trees.
4346 .IP "\fB\-ftree\-sra\fR" 4
4347 .IX Item "-ftree-sra"
4348 Perform scalar replacement of aggregates.  This pass replaces structure
4349 references with scalars to prevent committing structures to memory too
4350 early.  This flag is enabled by default at \fB\-O\fR and higher.
4351 .IP "\fB\-ftree\-copyrename\fR" 4
4352 .IX Item "-ftree-copyrename"
4353 Perform copy renaming on trees.  This pass attempts to rename compiler
4354 temporaries to other variables at copy locations, usually resulting in
4355 variable names which more closely resemble the original variables.  This flag
4356 is enabled by default at \fB\-O\fR and higher.
4357 .IP "\fB\-ftree\-ter\fR" 4
4358 .IX Item "-ftree-ter"
4359 Perform temporary expression replacement during the \s-1SSA\-\s0>normal phase.  Single
4360 use/single def temporaries are replaced at their use location with their
4361 defining expression.  This results in non-GIMPLE code, but gives the expanders
4362 much more complex trees to work on resulting in better \s-1RTL\s0 generation.  This is
4363 enabled by default at \fB\-O\fR and higher.
4364 .IP "\fB\-ftree\-lrs\fR" 4
4365 .IX Item "-ftree-lrs"
4366 Perform live range splitting during the \s-1SSA\-\s0>normal phase.  Distinct live
4367 ranges of a variable are split into unique variables, allowing for better
4368 optimization later.  This is enabled by default at \fB\-O\fR and higher.
4369 .IP "\fB\-ftree\-vectorize\fR" 4
4370 .IX Item "-ftree-vectorize"
4371 Perform loop vectorization on trees.
4372 .IP "\fB\-ftracer\fR" 4
4373 .IX Item "-ftracer"
4374 Perform tail duplication to enlarge superblock size.  This transformation
4375 simplifies the control flow of the function allowing other optimizations to do
4376 better job.
4377 .IP "\fB\-funroll\-loops\fR" 4
4378 .IX Item "-funroll-loops"
4379 Unroll loops whose number of iterations can be determined at compile
4380 time or upon entry to the loop.  \fB\-funroll\-loops\fR implies both
4381 \&\fB\-fstrength\-reduce\fR and \fB\-frerun\-cse\-after\-loop\fR.  This
4382 option makes code larger, and may or may not make it run faster.
4383 .IP "\fB\-funroll\-all\-loops\fR" 4
4384 .IX Item "-funroll-all-loops"
4385 Unroll all loops, even if their number of iterations is uncertain when
4386 the loop is entered.  This usually makes programs run more slowly.
4387 \&\fB\-funroll\-all\-loops\fR implies the same options as
4388 \&\fB\-funroll\-loops\fR,
4389 .IP "\fB\-fsplit\-ivs\-in\-unroller\fR" 4
4390 .IX Item "-fsplit-ivs-in-unroller"
4391 Enables expressing of values of induction variables in later iterations
4392 of the unrolled loop using the value in the first iteration.  This breaks
4393 long dependency chains, thus improving efficiency of the scheduling passes
4394 (for best results, \fB\-fweb\fR should be used as well).
4395 .Sp
4396 Combination of \fB\-fweb\fR and \s-1CSE\s0 is often sufficient to obtain the
4397 same effect.  However in cases the loop body is more complicated than
4398 a single basic block, this is not reliable.  It also does not work at all
4399 on some of the architectures due to restrictions in the \s-1CSE\s0 pass.
4400 .Sp
4401 This optimization is enabled by default.
4402 .IP "\fB\-fvariable\-expansion\-in\-unroller\fR" 4
4403 .IX Item "-fvariable-expansion-in-unroller"
4404 With this option, the compiler will create multiple copies of some
4405 local variables when unrolling a loop which can result in superior code.
4406 .IP "\fB\-fprefetch\-loop\-arrays\fR" 4
4407 .IX Item "-fprefetch-loop-arrays"
4408 If supported by the target machine, generate instructions to prefetch
4409 memory to improve the performance of loops that access large arrays.
4410 .Sp
4411 These options may generate better or worse code; results are highly
4412 dependent on the structure of loops within the source code.
4413 .IP "\fB\-fno\-peephole\fR" 4
4414 .IX Item "-fno-peephole"
4415 .PD 0
4416 .IP "\fB\-fno\-peephole2\fR" 4
4417 .IX Item "-fno-peephole2"
4418 .PD
4419 Disable any machine-specific peephole optimizations.  The difference
4420 between \fB\-fno\-peephole\fR and \fB\-fno\-peephole2\fR is in how they
4421 are implemented in the compiler; some targets use one, some use the
4422 other, a few use both.
4423 .Sp
4424 \&\fB\-fpeephole\fR is enabled by default.
4425 \&\fB\-fpeephole2\fR enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4426 .IP "\fB\-fno\-guess\-branch\-probability\fR" 4
4427 .IX Item "-fno-guess-branch-probability"
4428 Do not guess branch probabilities using heuristics.
4429 .Sp
4430 \&\s-1GCC\s0 will use heuristics to guess branch probabilities if they are
4431 not provided by profiling feedback (\fB\-fprofile\-arcs\fR).  These
4432 heuristics are based on the control flow graph.  If some branch probabilities
4433 are specified by \fB_\|_builtin_expect\fR, then the heuristics will be
4434 used to guess branch probabilities for the rest of the control flow graph,
4435 taking the \fB_\|_builtin_expect\fR info into account.  The interactions
4436 between the heuristics and \fB_\|_builtin_expect\fR can be complex, and in
4437 some cases, it may be useful to disable the heuristics so that the effects
4438 of \fB_\|_builtin_expect\fR are easier to understand.
4439 .Sp
4440 The default is \fB\-fguess\-branch\-probability\fR at levels
4441 \&\fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4442 .IP "\fB\-freorder\-blocks\fR" 4
4443 .IX Item "-freorder-blocks"
4444 Reorder basic blocks in the compiled function in order to reduce number of
4445 taken branches and improve code locality.
4446 .Sp
4447 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4448 .IP "\fB\-freorder\-blocks\-and\-partition\fR" 4
4449 .IX Item "-freorder-blocks-and-partition"
4450 In addition to reordering basic blocks in the compiled function, in order
4451 to reduce number of taken branches, partitions hot and cold basic blocks
4452 into separate sections of the assembly and .o files, to improve
4453 paging and cache locality performance.
4454 .Sp
4455 This optimization is automatically turned off in the presence of
4456 exception handling, for linkonce sections, for functions with a user-defined
4457 section attribute and on any architecture that does not support named
4458 sections.
4459 .IP "\fB\-freorder\-functions\fR" 4
4460 .IX Item "-freorder-functions"
4461 Reorder functions in the object file in order to
4462 improve code locality.  This is implemented by using special
4463 subsections \f(CW\*(C`.text.hot\*(C'\fR for most frequently executed functions and
4464 \&\f(CW\*(C`.text.unlikely\*(C'\fR for unlikely executed functions.  Reordering is done by
4465 the linker so object file format must support named sections and linker must
4466 place them in a reasonable way.
4467 .Sp
4468 Also profile feedback must be available in to make this option effective.  See
4469 \&\fB\-fprofile\-arcs\fR for details.
4470 .Sp
4471 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4472 .IP "\fB\-fstrict\-aliasing\fR" 4
4473 .IX Item "-fstrict-aliasing"
4474 Allows the compiler to assume the strictest aliasing rules applicable to
4475 the language being compiled.  For C (and \*(C+), this activates
4476 optimizations based on the type of expressions.  In particular, an
4477 object of one type is assumed never to reside at the same address as an
4478 object of a different type, unless the types are almost the same.  For
4479 example, an \f(CW\*(C`unsigned int\*(C'\fR can alias an \f(CW\*(C`int\*(C'\fR, but not a
4480 \&\f(CW\*(C`void*\*(C'\fR or a \f(CW\*(C`double\*(C'\fR.  A character type may alias any other
4481 type.
4482 .Sp
4483 Pay special attention to code like this:
4484 .Sp
4485 .Vb 4
4486 \&        union a_union {
4487 \&          int i;
4488 \&          double d;
4489 \&        };
4490 .Ve
4491 .Sp
4492 .Vb 5
4493 \&        int f() {
4494 \&          a_union t;
4495 \&          t.d = 3.0;
4496 \&          return t.i;
4497 \&        }
4498 .Ve
4499 .Sp
4500 The practice of reading from a different union member than the one most
4501 recently written to (called ``type\-punning'') is common.  Even with
4502 \&\fB\-fstrict\-aliasing\fR, type-punning is allowed, provided the memory
4503 is accessed through the union type.  So, the code above will work as
4504 expected.  However, this code might not:
4505 .Sp
4506 .Vb 7
4507 \&        int f() {
4508 \&          a_union t;
4509 \&          int* ip;
4510 \&          t.d = 3.0;
4511 \&          ip = &t.i;
4512 \&          return *ip;
4513 \&        }
4514 .Ve
4515 .Sp
4516 Every language that wishes to perform language-specific alias analysis
4517 should define a function that computes, given an \f(CW\*(C`tree\*(C'\fR
4518 node, an alias set for the node.  Nodes in different alias sets are not
4519 allowed to alias.  For an example, see the C front-end function
4520 \&\f(CW\*(C`c_get_alias_set\*(C'\fR.
4521 .Sp
4522 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4523 .IP "\fB\-falign\-functions\fR" 4
4524 .IX Item "-falign-functions"
4525 .PD 0
4526 .IP "\fB\-falign\-functions=\fR\fIn\fR" 4
4527 .IX Item "-falign-functions=n"
4528 .PD
4529 Align the start of functions to the next power-of-two greater than
4530 \&\fIn\fR, skipping up to \fIn\fR bytes.  For instance,
4531 \&\fB\-falign\-functions=32\fR aligns functions to the next 32\-byte
4532 boundary, but \fB\-falign\-functions=24\fR would align to the next
4533 32\-byte boundary only if this can be done by skipping 23 bytes or less.
4534 .Sp
4535 \&\fB\-fno\-align\-functions\fR and \fB\-falign\-functions=1\fR are
4536 equivalent and mean that functions will not be aligned.
4537 .Sp
4538 Some assemblers only support this flag when \fIn\fR is a power of two;
4539 in that case, it is rounded up.
4540 .Sp
4541 If \fIn\fR is not specified or is zero, use a machine-dependent default.
4542 .Sp
4543 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4544 .IP "\fB\-falign\-labels\fR" 4
4545 .IX Item "-falign-labels"
4546 .PD 0
4547 .IP "\fB\-falign\-labels=\fR\fIn\fR" 4
4548 .IX Item "-falign-labels=n"
4549 .PD
4550 Align all branch targets to a power-of-two boundary, skipping up to
4551 \&\fIn\fR bytes like \fB\-falign\-functions\fR.  This option can easily
4552 make code slower, because it must insert dummy operations for when the
4553 branch target is reached in the usual flow of the code.
4554 .Sp
4555 \&\fB\-fno\-align\-labels\fR and \fB\-falign\-labels=1\fR are
4556 equivalent and mean that labels will not be aligned.
4557 .Sp
4558 If \fB\-falign\-loops\fR or \fB\-falign\-jumps\fR are applicable and
4559 are greater than this value, then their values are used instead.
4560 .Sp
4561 If \fIn\fR is not specified or is zero, use a machine-dependent default
4562 which is very likely to be \fB1\fR, meaning no alignment.
4563 .Sp
4564 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4565 .IP "\fB\-falign\-loops\fR" 4
4566 .IX Item "-falign-loops"
4567 .PD 0
4568 .IP "\fB\-falign\-loops=\fR\fIn\fR" 4
4569 .IX Item "-falign-loops=n"
4570 .PD
4571 Align loops to a power-of-two boundary, skipping up to \fIn\fR bytes
4572 like \fB\-falign\-functions\fR.  The hope is that the loop will be
4573 executed many times, which will make up for any execution of the dummy
4574 operations.
4575 .Sp
4576 \&\fB\-fno\-align\-loops\fR and \fB\-falign\-loops=1\fR are
4577 equivalent and mean that loops will not be aligned.
4578 .Sp
4579 If \fIn\fR is not specified or is zero, use a machine-dependent default.
4580 .Sp
4581 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4582 .IP "\fB\-falign\-jumps\fR" 4
4583 .IX Item "-falign-jumps"
4584 .PD 0
4585 .IP "\fB\-falign\-jumps=\fR\fIn\fR" 4
4586 .IX Item "-falign-jumps=n"
4587 .PD
4588 Align branch targets to a power-of-two boundary, for branch targets
4589 where the targets can only be reached by jumping, skipping up to \fIn\fR
4590 bytes like \fB\-falign\-functions\fR.  In this case, no dummy operations
4591 need be executed.
4592 .Sp
4593 \&\fB\-fno\-align\-jumps\fR and \fB\-falign\-jumps=1\fR are
4594 equivalent and mean that loops will not be aligned.
4595 .Sp
4596 If \fIn\fR is not specified or is zero, use a machine-dependent default.
4597 .Sp
4598 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4599 .IP "\fB\-funit\-at\-a\-time\fR" 4
4600 .IX Item "-funit-at-a-time"
4601 Parse the whole compilation unit before starting to produce code.
4602 This allows some extra optimizations to take place but consumes
4603 more memory (in general).  There are some compatibility issues
4604 with \fIunit-at-at-time\fR mode:
4605 .RS 4
4606 .IP "\(bu" 4
4607 enabling \fIunit-at-a-time\fR mode may change the order
4608 in which functions, variables, and top-level \f(CW\*(C`asm\*(C'\fR statements
4609 are emitted, and will likely break code relying on some particular
4610 ordering.  The majority of such top-level \f(CW\*(C`asm\*(C'\fR statements,
4611 though, can be replaced by \f(CW\*(C`section\*(C'\fR attributes.
4612 .IP "\(bu" 4
4613 \&\fIunit-at-a-time\fR mode removes unreferenced static variables
4614 and functions are removed.  This may result in undefined references
4615 when an \f(CW\*(C`asm\*(C'\fR statement refers directly to variables or functions
4616 that are otherwise unused.  In that case either the variable/function
4617 shall be listed as an operand of the \f(CW\*(C`asm\*(C'\fR statement operand or,
4618 in the case of top-level \f(CW\*(C`asm\*(C'\fR statements the attribute \f(CW\*(C`used\*(C'\fR
4619 shall be used on the declaration.
4620 .IP "\(bu" 4
4621 Static functions now can use non-standard passing conventions that
4622 may break \f(CW\*(C`asm\*(C'\fR statements calling functions directly.  Again,
4623 attribute \f(CW\*(C`used\*(C'\fR will prevent this behavior.
4624 .RE
4625 .RS 4
4626 .Sp
4627 As a temporary workaround, \fB\-fno\-unit\-at\-a\-time\fR can be used,
4628 but this scheme may not be supported by future releases of \s-1GCC\s0.
4629 .Sp
4630 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4631 .RE
4632 .IP "\fB\-fweb\fR" 4
4633 .IX Item "-fweb"
4634 Constructs webs as commonly used for register allocation purposes and assign
4635 each web individual pseudo register.  This allows the register allocation pass
4636 to operate on pseudos directly, but also strengthens several other optimization
4637 passes, such as \s-1CSE\s0, loop optimizer and trivial dead code remover.  It can,
4638 however, make debugging impossible, since variables will no longer stay in a
4639 ``home register''.
4640 .Sp
4641 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR,
4642 on targets where the default format for debugging information supports
4643 variable tracking.
4644 .IP "\fB\-fno\-cprop\-registers\fR" 4
4645 .IX Item "-fno-cprop-registers"
4646 After register allocation and post-register allocation instruction splitting,
4647 we perform a copy-propagation pass to try to reduce scheduling dependencies
4648 and occasionally eliminate the copy.
4649 .Sp
4650 Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4651 .IP "\fB\-fprofile\-generate\fR" 4
4652 .IX Item "-fprofile-generate"
4653 Enable options usually used for instrumenting application to produce
4654 profile useful for later recompilation with profile feedback based
4655 optimization.  You must use \fB\-fprofile\-generate\fR both when
4656 compiling and when linking your program.
4657 .Sp
4658 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.
4659 .IP "\fB\-fprofile\-use\fR" 4
4660 .IX Item "-fprofile-use"
4661 Enable profile feedback directed optimizations, and optimizations
4662 generally profitable only with profile feedback available.
4663 .Sp
4664 The following options are enabled: \f(CW\*(C`\-fbranch\-probabilities\*(C'\fR,
4665 \&\f(CW\*(C`\-fvpt\*(C'\fR, \f(CW\*(C`\-funroll\-loops\*(C'\fR, \f(CW\*(C`\-fpeel\-loops\*(C'\fR, \f(CW\*(C`\-ftracer\*(C'\fR.
4666 .PP
4667 The following options control compiler behavior regarding floating
4668 point arithmetic.  These options trade off between speed and
4669 correctness.  All must be specifically enabled.
4670 .IP "\fB\-ffloat\-store\fR" 4
4671 .IX Item "-ffloat-store"
4672 Do not store floating point variables in registers, and inhibit other
4673 options that might change whether a floating point value is taken from a
4674 register or memory.
4675 .Sp
4676 This option prevents undesirable excess precision on machines such as
4677 the 68000 where the floating registers (of the 68881) keep more
4678 precision than a \f(CW\*(C`double\*(C'\fR is supposed to have.  Similarly for the
4679 x86 architecture.  For most programs, the excess precision does only
4680 good, but a few programs rely on the precise definition of \s-1IEEE\s0 floating
4681 point.  Use \fB\-ffloat\-store\fR for such programs, after modifying
4682 them to store all pertinent intermediate computations into variables.
4683 .IP "\fB\-ffast\-math\fR" 4
4684 .IX Item "-ffast-math"
4685 Sets \fB\-fno\-math\-errno\fR, \fB\-funsafe\-math\-optimizations\fR, \fB\-fno\-trapping\-math\fR, \fB\-ffinite\-math\-only\fR,
4686 \&\fB\-fno\-rounding\-math\fR, \fB\-fno\-signaling\-nans\fR
4687 and \fBfcx-limited-range\fR.
4688 .Sp
4689 This option causes the preprocessor macro \f(CW\*(C`_\|_FAST_MATH_\|_\*(C'\fR to be defined.
4690 .Sp
4691 This option should never be turned on by any \fB\-O\fR option since
4692 it can result in incorrect output for programs which depend on
4693 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
4694 math functions.
4695 .IP "\fB\-fno\-math\-errno\fR" 4
4696 .IX Item "-fno-math-errno"
4697 Do not set \s-1ERRNO\s0 after calling math functions that are executed
4698 with a single instruction, e.g., sqrt.  A program that relies on
4699 \&\s-1IEEE\s0 exceptions for math error handling may want to use this flag
4700 for speed while maintaining \s-1IEEE\s0 arithmetic compatibility.
4701 .Sp
4702 This option should never be turned on by any \fB\-O\fR option since
4703 it can result in incorrect output for programs which depend on
4704 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
4705 math functions.
4706 .Sp
4707 The default is \fB\-fmath\-errno\fR.
4708 .IP "\fB\-funsafe\-math\-optimizations\fR" 4
4709 .IX Item "-funsafe-math-optimizations"
4710 Allow optimizations for floating-point arithmetic that (a) assume
4711 that arguments and results are valid and (b) may violate \s-1IEEE\s0 or
4712 \&\s-1ANSI\s0 standards.  When used at link\-time, it may include libraries
4713 or startup files that change the default \s-1FPU\s0 control word or other
4714 similar optimizations.
4715 .Sp
4716 This option should never be turned on by any \fB\-O\fR option since
4717 it can result in incorrect output for programs which depend on
4718 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
4719 math functions.
4720 .Sp
4721 The default is \fB\-fno\-unsafe\-math\-optimizations\fR.
4722 .IP "\fB\-ffinite\-math\-only\fR" 4
4723 .IX Item "-ffinite-math-only"
4724 Allow optimizations for floating-point arithmetic that assume
4725 that arguments and results are not NaNs or +\-Infs.
4726 .Sp
4727 This option should never be turned on by any \fB\-O\fR option since
4728 it can result in incorrect output for programs which depend on
4729 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications.
4730 .Sp
4731 The default is \fB\-fno\-finite\-math\-only\fR.
4732 .IP "\fB\-fno\-trapping\-math\fR" 4
4733 .IX Item "-fno-trapping-math"
4734 Compile code assuming that floating-point operations cannot generate
4735 user-visible traps.  These traps include division by zero, overflow,
4736 underflow, inexact result and invalid operation.  This option implies
4737 \&\fB\-fno\-signaling\-nans\fR.  Setting this option may allow faster
4738 code if one relies on ``non\-stop'' \s-1IEEE\s0 arithmetic, for example.
4739 .Sp
4740 This option should never be turned on by any \fB\-O\fR option since
4741 it can result in incorrect output for programs which depend on
4742 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
4743 math functions.
4744 .Sp
4745 The default is \fB\-ftrapping\-math\fR.
4746 .IP "\fB\-frounding\-math\fR" 4
4747 .IX Item "-frounding-math"
4748 Disable transformations and optimizations that assume default floating
4749 point rounding behavior.  This is round-to-zero for all floating point
4750 to integer conversions, and round-to-nearest for all other arithmetic
4751 truncations.  This option should be specified for programs that change
4752 the \s-1FP\s0 rounding mode dynamically, or that may be executed with a
4753 non-default rounding mode.  This option disables constant folding of
4754 floating point expressions at compile-time (which may be affected by
4755 rounding mode) and arithmetic transformations that are unsafe in the
4756 presence of sign-dependent rounding modes.
4757 .Sp
4758 The default is \fB\-fno\-rounding\-math\fR.
4759 .Sp
4760 This option is experimental and does not currently guarantee to
4761 disable all \s-1GCC\s0 optimizations that are affected by rounding mode.
4762 Future versions of \s-1GCC\s0 may provide finer control of this setting
4763 using C99's \f(CW\*(C`FENV_ACCESS\*(C'\fR pragma.  This command line option
4764 will be used to specify the default state for \f(CW\*(C`FENV_ACCESS\*(C'\fR.
4765 .IP "\fB\-fsignaling\-nans\fR" 4
4766 .IX Item "-fsignaling-nans"
4767 Compile code assuming that \s-1IEEE\s0 signaling NaNs may generate user-visible
4768 traps during floating-point operations.  Setting this option disables
4769 optimizations that may change the number of exceptions visible with
4770 signaling NaNs.  This option implies \fB\-ftrapping\-math\fR.
4771 .Sp
4772 This option causes the preprocessor macro \f(CW\*(C`_\|_SUPPORT_SNAN_\|_\*(C'\fR to
4773 be defined.
4774 .Sp
4775 The default is \fB\-fno\-signaling\-nans\fR.
4776 .Sp
4777 This option is experimental and does not currently guarantee to
4778 disable all \s-1GCC\s0 optimizations that affect signaling NaN behavior.
4779 .IP "\fB\-fsingle\-precision\-constant\fR" 4
4780 .IX Item "-fsingle-precision-constant"
4781 Treat floating point constant as single precision constant instead of
4782 implicitly converting it to double precision constant.
4783 .IP "\fB\-fcx\-limited\-range\fR" 4
4784 .IX Item "-fcx-limited-range"
4785 .PD 0
4786 .IP "\fB\-fno\-cx\-limited\-range\fR" 4
4787 .IX Item "-fno-cx-limited-range"
4788 .PD
4789 When enabled, this option states that a range reduction step is not
4790 needed when performing complex division.  The default is
4791 \&\fB\-fno\-cx\-limited\-range\fR, but is enabled by \fB\-ffast\-math\fR.
4792 .Sp
4793 This option controls the default setting of the \s-1ISO\s0 C99 
4794 \&\f(CW\*(C`CX_LIMITED_RANGE\*(C'\fR pragma.  Nevertheless, the option applies to
4795 all languages.
4796 .PP
4797 The following options control optimizations that may improve
4798 performance, but are not enabled by any \fB\-O\fR options.  This
4799 section includes experimental options that may produce broken code.
4800 .IP "\fB\-fbranch\-probabilities\fR" 4
4801 .IX Item "-fbranch-probabilities"
4802 After running a program compiled with \fB\-fprofile\-arcs\fR, you can compile it a second time using
4803 \&\fB\-fbranch\-probabilities\fR, to improve optimizations based on
4804 the number of times each branch was taken.  When the program
4805 compiled with \fB\-fprofile\-arcs\fR exits it saves arc execution
4806 counts to a file called \fI\fIsourcename\fI.gcda\fR for each source
4807 file  The information in this data file is very dependent on the
4808 structure of the generated code, so you must use the same source code
4809 and the same optimization options for both compilations.
4810 .Sp
4811 With \fB\-fbranch\-probabilities\fR, \s-1GCC\s0 puts a
4812 \&\fB\s-1REG_BR_PROB\s0\fR note on each \fB\s-1JUMP_INSN\s0\fR and \fB\s-1CALL_INSN\s0\fR.
4813 These can be used to improve optimization.  Currently, they are only
4814 used in one place: in \fIreorg.c\fR, instead of guessing which path a
4815 branch is mostly to take, the \fB\s-1REG_BR_PROB\s0\fR values are used to
4816 exactly determine which path is taken more often.
4817 .IP "\fB\-fprofile\-values\fR" 4
4818 .IX Item "-fprofile-values"
4819 If combined with \fB\-fprofile\-arcs\fR, it adds code so that some
4820 data about values of expressions in the program is gathered.
4821 .Sp
4822 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
4823 from profiling values of expressions and adds \fB\s-1REG_VALUE_PROFILE\s0\fR
4824 notes to instructions for their later usage in optimizations.
4825 .Sp
4826 Enabled with \fB\-fprofile\-generate\fR and \fB\-fprofile\-use\fR.
4827 .IP "\fB\-fvpt\fR" 4
4828 .IX Item "-fvpt"
4829 If combined with \fB\-fprofile\-arcs\fR, it instructs the compiler to add
4830 a code to gather information about values of expressions.
4831 .Sp
4832 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
4833 and actually performs the optimizations based on them.
4834 Currently the optimizations include specialization of division operation
4835 using the knowledge about the value of the denominator.
4836 .IP "\fB\-fspeculative\-prefetching\fR" 4
4837 .IX Item "-fspeculative-prefetching"
4838 If combined with \fB\-fprofile\-arcs\fR, it instructs the compiler to add
4839 a code to gather information about addresses of memory references in the
4840 program.
4841 .Sp
4842 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
4843 and issues prefetch instructions according to them.  In addition to the opportunities
4844 noticed by \fB\-fprefetch\-loop\-arrays\fR, it also notices more complicated
4845 memory access patterns\-\-\-for example accesses to the data stored in linked
4846 list whose elements are usually allocated sequentially.
4847 .Sp
4848 In order to prevent issuing double prefetches, usage of
4849 \&\fB\-fspeculative\-prefetching\fR implies \fB\-fno\-prefetch\-loop\-arrays\fR.
4850 .Sp
4851 Enabled with \fB\-fprofile\-generate\fR and \fB\-fprofile\-use\fR.
4852 .IP "\fB\-frename\-registers\fR" 4
4853 .IX Item "-frename-registers"
4854 Attempt to avoid false dependencies in scheduled code by making use
4855 of registers left over after register allocation.  This optimization
4856 will most benefit processors with lots of registers.  Depending on the
4857 debug information format adopted by the target, however, it can
4858 make debugging impossible, since variables will no longer stay in
4859 a ``home register''.
4860 .Sp
4861 Not enabled by default at any level because it has known bugs.
4862 .IP "\fB\-ftracer\fR" 4
4863 .IX Item "-ftracer"
4864 Perform tail duplication to enlarge superblock size.  This transformation
4865 simplifies the control flow of the function allowing other optimizations to do
4866 better job.
4867 .Sp
4868 Enabled with \fB\-fprofile\-use\fR.
4869 .IP "\fB\-funroll\-loops\fR" 4
4870 .IX Item "-funroll-loops"
4871 Unroll loops whose number of iterations can be determined at compile time or
4872 upon entry to the loop.  \fB\-funroll\-loops\fR implies
4873 \&\fB\-frerun\-cse\-after\-loop\fR.  It also turns on complete loop peeling
4874 (i.e. complete removal of loops with small constant number of iterations).
4875 This option makes code larger, and may or may not make it run faster.
4876 .Sp
4877 Enabled with \fB\-fprofile\-use\fR.
4878 .IP "\fB\-funroll\-all\-loops\fR" 4
4879 .IX Item "-funroll-all-loops"
4880 Unroll all loops, even if their number of iterations is uncertain when
4881 the loop is entered.  This usually makes programs run more slowly.
4882 \&\fB\-funroll\-all\-loops\fR implies the same options as
4883 \&\fB\-funroll\-loops\fR.
4884 .IP "\fB\-fpeel\-loops\fR" 4
4885 .IX Item "-fpeel-loops"
4886 Peels the loops for that there is enough information that they do not
4887 roll much (from profile feedback).  It also turns on complete loop peeling
4888 (i.e. complete removal of loops with small constant number of iterations).
4889 .Sp
4890 Enabled with \fB\-fprofile\-use\fR.
4891 .IP "\fB\-fmove\-loop\-invariants\fR" 4
4892 .IX Item "-fmove-loop-invariants"
4893 Enables the loop invariant motion pass in the new loop optimizer.  Enabled
4894 at level \fB\-O1\fR
4895 .IP "\fB\-funswitch\-loops\fR" 4
4896 .IX Item "-funswitch-loops"
4897 Move branches with loop invariant conditions out of the loop, with duplicates
4898 of the loop on both branches (modified according to result of the condition).
4899 .IP "\fB\-fprefetch\-loop\-arrays\fR" 4
4900 .IX Item "-fprefetch-loop-arrays"
4901 If supported by the target machine, generate instructions to prefetch
4902 memory to improve the performance of loops that access large arrays.
4903 .Sp
4904 Disabled at level \fB\-Os\fR.
4905 .IP "\fB\-ffunction\-sections\fR" 4
4906 .IX Item "-ffunction-sections"
4907 .PD 0
4908 .IP "\fB\-fdata\-sections\fR" 4
4909 .IX Item "-fdata-sections"
4910 .PD
4911 Place each function or data item into its own section in the output
4912 file if the target supports arbitrary sections.  The name of the
4913 function or the name of the data item determines the section's name
4914 in the output file.
4915 .Sp
4916 Use these options on systems where the linker can perform optimizations
4917 to improve locality of reference in the instruction space.  Most systems
4918 using the \s-1ELF\s0 object format and \s-1SPARC\s0 processors running Solaris 2 have
4919 linkers with such optimizations.  \s-1AIX\s0 may have these optimizations in
4920 the future.
4921 .Sp
4922 Only use these options when there are significant benefits from doing
4923 so.  When you specify these options, the assembler and linker will
4924 create larger object and executable files and will also be slower.
4925 You will not be able to use \f(CW\*(C`gprof\*(C'\fR on all systems if you
4926 specify this option and you may have problems with debugging if
4927 you specify both this option and \fB\-g\fR.
4928 .IP "\fB\-fbranch\-target\-load\-optimize\fR" 4
4929 .IX Item "-fbranch-target-load-optimize"
4930 Perform branch target register load optimization before prologue / epilogue
4931 threading.
4932 The use of target registers can typically be exposed only during reload,
4933 thus hoisting loads out of loops and doing inter-block scheduling needs
4934 a separate optimization pass.
4935 .IP "\fB\-fbranch\-target\-load\-optimize2\fR" 4
4936 .IX Item "-fbranch-target-load-optimize2"
4937 Perform branch target register load optimization after prologue / epilogue
4938 threading.
4939 .IP "\fB\-fbtr\-bb\-exclusive\fR" 4
4940 .IX Item "-fbtr-bb-exclusive"
4941 When performing branch target register load optimization, don't reuse
4942 branch target registers in within any basic block.
4943 .IP "\fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR" 4
4944 .IX Item "--param name=value"
4945 In some places, \s-1GCC\s0 uses various constants to control the amount of
4946 optimization that is done.  For example, \s-1GCC\s0 will not inline functions
4947 that contain more that a certain number of instructions.  You can
4948 control some of these constants on the command-line using the
4949 \&\fB\-\-param\fR option.
4950 .Sp
4951 The names of specific parameters, and the meaning of the values, are
4952 tied to the internals of the compiler, and are subject to change
4953 without notice in future releases.
4954 .Sp
4955 In each case, the \fIvalue\fR is an integer.  The allowable choices for
4956 \&\fIname\fR are given in the following table:
4957 .RS 4
4958 .IP "\fBsra-max-structure-size\fR" 4
4959 .IX Item "sra-max-structure-size"
4960 The maximum structure size, in bytes, at which the scalar replacement
4961 of aggregates (\s-1SRA\s0) optimization will perform block copies.  The
4962 default value, 0, implies that \s-1GCC\s0 will select the most appropriate
4963 size itself.
4964 .IP "\fBsra-field-structure-ratio\fR" 4
4965 .IX Item "sra-field-structure-ratio"
4966 The threshold ratio (as a percentage) between instantiated fields and
4967 the complete structure size.  We say that if the ratio of the number
4968 of bytes in instantiated fields to the number of bytes in the complete
4969 structure exceeds this parameter, then block copies are not used.  The
4970 default is 75.
4971 .IP "\fBmax-crossjump-edges\fR" 4
4972 .IX Item "max-crossjump-edges"
4973 The maximum number of incoming edges to consider for crossjumping.
4974 The algorithm used by \fB\-fcrossjumping\fR is O(N^2) in
4975 the number of edges incoming to each block.  Increasing values mean
4976 more aggressive optimization, making the compile time increase with
4977 probably small improvement in executable size.
4978 .IP "\fBmin-crossjump-insns\fR" 4
4979 .IX Item "min-crossjump-insns"
4980 The minimum number of instructions which must be matched at the end
4981 of two blocks before crossjumping will be performed on them.  This
4982 value is ignored in the case where all instructions in the block being
4983 crossjumped from are matched.  The default value is 5.
4984 .IP "\fBmax-goto-duplication-insns\fR" 4
4985 .IX Item "max-goto-duplication-insns"
4986 The maximum number of instructions to duplicate to a block that jumps
4987 to a computed goto.  To avoid O(N^2) behavior in a number of
4988 passes, \s-1GCC\s0 factors computed gotos early in the compilation process,
4989 and unfactors them as late as possible.  Only computed jumps at the
4990 end of a basic blocks with no more than max-goto-duplication-insns are
4991 unfactored.  The default value is 8.
4992 .IP "\fBmax-delay-slot-insn-search\fR" 4
4993 .IX Item "max-delay-slot-insn-search"
4994 The maximum number of instructions to consider when looking for an
4995 instruction to fill a delay slot.  If more than this arbitrary number of
4996 instructions is searched, the time savings from filling the delay slot
4997 will be minimal so stop searching.  Increasing values mean more
4998 aggressive optimization, making the compile time increase with probably
4999 small improvement in executable run time.
5000 .IP "\fBmax-delay-slot-live-search\fR" 4
5001 .IX Item "max-delay-slot-live-search"
5002 When trying to fill delay slots, the maximum number of instructions to
5003 consider when searching for a block with valid live register
5004 information.  Increasing this arbitrarily chosen value means more
5005 aggressive optimization, increasing the compile time.  This parameter
5006 should be removed when the delay slot code is rewritten to maintain the
5007 control-flow graph.
5008 .IP "\fBmax-gcse-memory\fR" 4
5009 .IX Item "max-gcse-memory"
5010 The approximate maximum amount of memory that will be allocated in
5011 order to perform the global common subexpression elimination
5012 optimization.  If more memory than specified is required, the
5013 optimization will not be done.
5014 .IP "\fBmax-gcse-passes\fR" 4
5015 .IX Item "max-gcse-passes"
5016 The maximum number of passes of \s-1GCSE\s0 to run.  The default is 1.
5017 .IP "\fBmax-pending-list-length\fR" 4
5018 .IX Item "max-pending-list-length"
5019 The maximum number of pending dependencies scheduling will allow
5020 before flushing the current state and starting over.  Large functions
5021 with few branches or calls can create excessively large lists which
5022 needlessly consume memory and resources.
5023 .IP "\fBmax-inline-insns-single\fR" 4
5024 .IX Item "max-inline-insns-single"
5025 Several parameters control the tree inliner used in gcc.
5026 This number sets the maximum number of instructions (counted in \s-1GCC\s0's
5027 internal representation) in a single function that the tree inliner
5028 will consider for inlining.  This only affects functions declared
5029 inline and methods implemented in a class declaration (\*(C+).
5030 The default value is 450.
5031 .IP "\fBmax-inline-insns-auto\fR" 4
5032 .IX Item "max-inline-insns-auto"
5033 When you use \fB\-finline\-functions\fR (included in \fB\-O3\fR),
5034 a lot of functions that would otherwise not be considered for inlining
5035 by the compiler will be investigated.  To those functions, a different
5036 (more restrictive) limit compared to functions declared inline can
5037 be applied.
5038 The default value is 90.
5039 .IP "\fBlarge-function-insns\fR" 4
5040 .IX Item "large-function-insns"
5041 The limit specifying really large functions.  For functions larger than this
5042 limit after inlining inlining is constrained by
5043 \&\fB\-\-param large-function-growth\fR.  This parameter is useful primarily
5044 to avoid extreme compilation time caused by non-linear algorithms used by the
5045 backend.
5046 This parameter is ignored when \fB\-funit\-at\-a\-time\fR is not used.
5047 The default value is 2700.
5048 .IP "\fBlarge-function-growth\fR" 4
5049 .IX Item "large-function-growth"
5050 Specifies maximal growth of large function caused by inlining in percents.
5051 This parameter is ignored when \fB\-funit\-at\-a\-time\fR is not used.
5052 The default value is 100 which limits large function growth to 2.0 times
5053 the original size.
5054 .IP "\fBinline-unit-growth\fR" 4
5055 .IX Item "inline-unit-growth"
5056 Specifies maximal overall growth of the compilation unit caused by inlining.
5057 This parameter is ignored when \fB\-funit\-at\-a\-time\fR is not used.
5058 The default value is 50 which limits unit growth to 1.5 times the original
5059 size.
5060 .IP "\fBmax-inline-insns-recursive\fR" 4
5061 .IX Item "max-inline-insns-recursive"
5062 .PD 0
5063 .IP "\fBmax-inline-insns-recursive-auto\fR" 4
5064 .IX Item "max-inline-insns-recursive-auto"
5065 .PD
5066 Specifies maximum number of instructions out-of-line copy of self recursive inline
5067 function can grow into by performing recursive inlining.
5068 .Sp
5069 For functions declared inline \fB\-\-param max-inline-insns-recursive\fR is
5070 taken into acount.  For function not declared inline, recursive inlining
5071 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
5072 enabled and \fB\-\-param max-inline-insns-recursive-auto\fR is used.  The
5073 default value is 450.
5074 .IP "\fBmax-inline-recursive-depth\fR" 4
5075 .IX Item "max-inline-recursive-depth"
5076 .PD 0
5077 .IP "\fBmax-inline-recursive-depth-auto\fR" 4
5078 .IX Item "max-inline-recursive-depth-auto"
5079 .PD
5080 Specifies maximum recursion depth used by the recursive inlining.
5081 .Sp
5082 For functions declared inline \fB\-\-param max-inline-recursive-depth\fR is
5083 taken into acount.  For function not declared inline, recursive inlining
5084 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
5085 enabled and \fB\-\-param max-inline-recursive-depth-auto\fR is used.  The
5086 default value is 450.
5087 .IP "\fBinline-call-cost\fR" 4
5088 .IX Item "inline-call-cost"
5089 Specify cost of call instruction relative to simple arithmetics operations
5090 (having cost of 1).  Increasing this cost disqualify inlinining of non-leaf
5091 functions and at same time increase size of leaf function that is believed to
5092 reduce function size by being inlined.  In effect it increase amount of
5093 inlining for code having large abstraction penalty (many functions that just
5094 pass the argumetns to other functions) and decrease inlining for code with low
5095 abstraction penalty.  Default value is 16.
5096 .IP "\fBmax-unrolled-insns\fR" 4
5097 .IX Item "max-unrolled-insns"
5098 The maximum number of instructions that a loop should have if that loop
5099 is unrolled, and if the loop is unrolled, it determines how many times
5100 the loop code is unrolled.
5101 .IP "\fBmax-average-unrolled-insns\fR" 4
5102 .IX Item "max-average-unrolled-insns"
5103 The maximum number of instructions biased by probabilities of their execution
5104 that a loop should have if that loop is unrolled, and if the loop is unrolled,
5105 it determines how many times the loop code is unrolled.
5106 .IP "\fBmax-unroll-times\fR" 4
5107 .IX Item "max-unroll-times"
5108 The maximum number of unrollings of a single loop.
5109 .IP "\fBmax-peeled-insns\fR" 4
5110 .IX Item "max-peeled-insns"
5111 The maximum number of instructions that a loop should have if that loop
5112 is peeled, and if the loop is peeled, it determines how many times
5113 the loop code is peeled.
5114 .IP "\fBmax-peel-times\fR" 4
5115 .IX Item "max-peel-times"
5116 The maximum number of peelings of a single loop.
5117 .IP "\fBmax-completely-peeled-insns\fR" 4
5118 .IX Item "max-completely-peeled-insns"
5119 The maximum number of insns of a completely peeled loop.
5120 .IP "\fBmax-completely-peel-times\fR" 4
5121 .IX Item "max-completely-peel-times"
5122 The maximum number of iterations of a loop to be suitable for complete peeling.
5123 .IP "\fBmax-unswitch-insns\fR" 4
5124 .IX Item "max-unswitch-insns"
5125 The maximum number of insns of an unswitched loop.
5126 .IP "\fBmax-unswitch-level\fR" 4
5127 .IX Item "max-unswitch-level"
5128 The maximum number of branches unswitched in a single loop.
5129 .IP "\fBlim-expensive\fR" 4
5130 .IX Item "lim-expensive"
5131 The minimum cost of an expensive expression in the loop invariant motion.
5132 .IP "\fBiv-consider-all-candidates-bound\fR" 4
5133 .IX Item "iv-consider-all-candidates-bound"
5134 Bound on number of candidates for induction variables below that
5135 all candidates are considered for each use in induction variable
5136 optimizations.  Only the most relevant candidates are considered
5137 if there are more candidates, to avoid quadratic time complexity.
5138 .IP "\fBiv-max-considered-uses\fR" 4
5139 .IX Item "iv-max-considered-uses"
5140 The induction variable optimizations give up on loops that contain more
5141 induction variable uses.
5142 .IP "\fBiv-always-prune-cand-set-bound\fR" 4
5143 .IX Item "iv-always-prune-cand-set-bound"
5144 If number of candidates in the set is smaller than this value,
5145 we always try to remove unnecessary ivs from the set during its
5146 optimization when a new iv is added to the set.
5147 .IP "\fBmax-iterations-to-track\fR" 4
5148 .IX Item "max-iterations-to-track"
5149 The maximum number of iterations of a loop the brute force algorithm
5150 for analysis of # of iterations of the loop tries to evaluate.
5151 .IP "\fBhot-bb-count-fraction\fR" 4
5152 .IX Item "hot-bb-count-fraction"
5153 Select fraction of the maximal count of repetitions of basic block in program
5154 given basic block needs to have to be considered hot.
5155 .IP "\fBhot-bb-frequency-fraction\fR" 4
5156 .IX Item "hot-bb-frequency-fraction"
5157 Select fraction of the maximal frequency of executions of basic block in
5158 function given basic block needs to have to be considered hot
5159 .IP "\fBtracer-dynamic-coverage\fR" 4
5160 .IX Item "tracer-dynamic-coverage"
5161 .PD 0
5162 .IP "\fBtracer-dynamic-coverage-feedback\fR" 4
5163 .IX Item "tracer-dynamic-coverage-feedback"
5164 .PD
5165 This value is used to limit superblock formation once the given percentage of
5166 executed instructions is covered.  This limits unnecessary code size
5167 expansion.
5168 .Sp
5169 The \fBtracer-dynamic-coverage-feedback\fR is used only when profile
5170 feedback is available.  The real profiles (as opposed to statically estimated
5171 ones) are much less balanced allowing the threshold to be larger value.
5172 .IP "\fBtracer-max-code-growth\fR" 4
5173 .IX Item "tracer-max-code-growth"
5174 Stop tail duplication once code growth has reached given percentage.  This is
5175 rather hokey argument, as most of the duplicates will be eliminated later in
5176 cross jumping, so it may be set to much higher values than is the desired code
5177 growth.
5178 .IP "\fBtracer-min-branch-ratio\fR" 4
5179 .IX Item "tracer-min-branch-ratio"
5180 Stop reverse growth when the reverse probability of best edge is less than this
5181 threshold (in percent).
5182 .IP "\fBtracer-min-branch-ratio\fR" 4
5183 .IX Item "tracer-min-branch-ratio"
5184 .PD 0
5185 .IP "\fBtracer-min-branch-ratio-feedback\fR" 4
5186 .IX Item "tracer-min-branch-ratio-feedback"
5187 .PD
5188 Stop forward growth if the best edge do have probability lower than this
5189 threshold.
5190 .Sp
5191 Similarly to \fBtracer-dynamic-coverage\fR two values are present, one for
5192 compilation for profile feedback and one for compilation without.  The value
5193 for compilation with profile feedback needs to be more conservative (higher) in
5194 order to make tracer effective.
5195 .IP "\fBmax-cse-path-length\fR" 4
5196 .IX Item "max-cse-path-length"
5197 Maximum number of basic blocks on path that cse considers.  The default is 10.
5198 .IP "\fBglobal-var-threshold\fR" 4
5199 .IX Item "global-var-threshold"
5200 Counts the number of function calls (\fIn\fR) and the number of
5201 call-clobbered variables (\fIv\fR).  If \fIn\fRx\fIv\fR is larger than this limit, a
5202 single artificial variable will be created to represent all the
5203 call-clobbered variables at function call sites.  This artificial
5204 variable will then be made to alias every call-clobbered variable.
5205 (done as \f(CW\*(C`int * size_t\*(C'\fR on the host machine; beware overflow).
5206 .IP "\fBmax-aliased-vops\fR" 4
5207 .IX Item "max-aliased-vops"
5208 Maximum number of virtual operands allowed to represent aliases
5209 before triggering the alias grouping heuristic.  Alias grouping
5210 reduces compile times and memory consumption needed for aliasing at
5211 the expense of precision loss in alias information.
5212 .IP "\fBggc-min-expand\fR" 4
5213 .IX Item "ggc-min-expand"
5214 \&\s-1GCC\s0 uses a garbage collector to manage its own memory allocation.  This
5215 parameter specifies the minimum percentage by which the garbage
5216 collector's heap should be allowed to expand between collections.
5217 Tuning this may improve compilation speed; it has no effect on code
5218 generation.
5219 .Sp
5220 The default is 30% + 70% * (\s-1RAM/1GB\s0) with an upper bound of 100% when
5221 \&\s-1RAM\s0 >= 1GB.  If \f(CW\*(C`getrlimit\*(C'\fR is available, the notion of \*(L"\s-1RAM\s0\*(R" is
5222 the smallest of actual \s-1RAM\s0 and \f(CW\*(C`RLIMIT_DATA\*(C'\fR or \f(CW\*(C`RLIMIT_AS\*(C'\fR.  If
5223 \&\s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a particular platform, the lower
5224 bound of 30% is used.  Setting this parameter and
5225 \&\fBggc-min-heapsize\fR to zero causes a full collection to occur at
5226 every opportunity.  This is extremely slow, but can be useful for
5227 debugging.
5228 .IP "\fBggc-min-heapsize\fR" 4
5229 .IX Item "ggc-min-heapsize"
5230 Minimum size of the garbage collector's heap before it begins bothering
5231 to collect garbage.  The first collection occurs after the heap expands
5232 by \fBggc-min-expand\fR% beyond \fBggc-min-heapsize\fR.  Again,
5233 tuning this may improve compilation speed, and has no effect on code
5234 generation.
5235 .Sp
5236 The default is the smaller of \s-1RAM/8\s0, \s-1RLIMIT_RSS\s0, or a limit which
5237 tries to ensure that \s-1RLIMIT_DATA\s0 or \s-1RLIMIT_AS\s0 are not exceeded, but
5238 with a lower bound of 4096 (four megabytes) and an upper bound of
5239 131072 (128 megabytes).  If \s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a
5240 particular platform, the lower bound is used.  Setting this parameter
5241 very large effectively disables garbage collection.  Setting this
5242 parameter and \fBggc-min-expand\fR to zero causes a full collection
5243 to occur at every opportunity.
5244 .IP "\fBmax-reload-search-insns\fR" 4
5245 .IX Item "max-reload-search-insns"
5246 The maximum number of instruction reload should look backward for equivalent
5247 register.  Increasing values mean more aggressive optimization, making the
5248 compile time increase with probably slightly better performance.  The default
5249 value is 100.
5250 .IP "\fBmax-cselib-memory-location\fR" 4
5251 .IX Item "max-cselib-memory-location"
5252 The maximum number of memory locations cselib should take into acount.
5253 Increasing values mean more aggressive optimization, making the compile time
5254 increase with probably slightly better performance.  The default value is 500.
5255 .IP "\fBreorder-blocks-duplicate\fR" 4
5256 .IX Item "reorder-blocks-duplicate"
5257 .PD 0
5258 .IP "\fBreorder-blocks-duplicate-feedback\fR" 4
5259 .IX Item "reorder-blocks-duplicate-feedback"
5260 .PD
5261 Used by basic block reordering pass to decide whether to use unconditional
5262 branch or duplicate the code on its destination.  Code is duplicated when its
5263 estimated size is smaller than this value multiplied by the estimated size of
5264 unconditional jump in the hot spots of the program.
5265 .Sp
5266 The \fBreorder-block-duplicate-feedback\fR is used only when profile
5267 feedback is available and may be set to higher values than
5268 \&\fBreorder-block-duplicate\fR since information about the hot spots is more
5269 accurate.
5270 .IP "\fBmax-sched-region-blocks\fR" 4
5271 .IX Item "max-sched-region-blocks"
5272 The maximum number of blocks in a region to be considered for
5273 interblock scheduling.  The default value is 10.
5274 .IP "\fBmax-sched-region-insns\fR" 4
5275 .IX Item "max-sched-region-insns"
5276 The maximum number of insns in a region to be considered for
5277 interblock scheduling.  The default value is 100.
5278 .IP "\fBmax-last-value-rtl\fR" 4
5279 .IX Item "max-last-value-rtl"
5280 The maximum size measured as number of RTLs that can be recorded in an expression
5281 in combiner for a pseudo register as last known value of that register.  The default
5282 is 10000.
5283 .IP "\fBinteger-share-limit\fR" 4
5284 .IX Item "integer-share-limit"
5285 Small integer constants can use a shared data structure, reducing the
5286 compiler's memory usage and increasing its speed.  This sets the maximum
5287 value of a shared integer constant's.  The default value is 256.
5288 .RE
5289 .RS 4
5290 .RE
5291 .Sh "Options Controlling the Preprocessor"
5292 .IX Subsection "Options Controlling the Preprocessor"
5293 These options control the C preprocessor, which is run on each C source
5294 file before actual compilation.
5295 .PP
5296 If you use the \fB\-E\fR option, nothing is done except preprocessing.
5297 Some of these options make sense only together with \fB\-E\fR because
5298 they cause the preprocessor output to be unsuitable for actual
5299 compilation.
5300 .Sp
5301 .RS 4
5302 You can use \fB\-Wp,\fR\fIoption\fR to bypass the compiler driver
5303 and pass \fIoption\fR directly through to the preprocessor.  If
5304 \&\fIoption\fR contains commas, it is split into multiple options at the
5305 commas.  However, many options are modified, translated or interpreted
5306 by the compiler driver before being passed to the preprocessor, and
5307 \&\fB\-Wp\fR forcibly bypasses this phase.  The preprocessor's direct
5308 interface is undocumented and subject to change, so whenever possible
5309 you should avoid using \fB\-Wp\fR and let the driver handle the
5310 options instead.
5311 .RE
5312 .IP "\fB\-Xpreprocessor\fR \fIoption\fR" 4
5313 .IX Item "-Xpreprocessor option"
5314 Pass \fIoption\fR as an option to the preprocessor.  You can use this to
5315 supply system-specific preprocessor options which \s-1GCC\s0 does not know how to
5316 recognize.
5317 .Sp
5318 If you want to pass an option that takes an argument, you must use
5319 \&\fB\-Xpreprocessor\fR twice, once for the option and once for the argument.
5320 .IP "\fB\-D\fR \fIname\fR" 4
5321 .IX Item "-D name"
5322 Predefine \fIname\fR as a macro, with definition \f(CW1\fR.
5323 .IP "\fB\-D\fR \fIname\fR\fB=\fR\fIdefinition\fR" 4
5324 .IX Item "-D name=definition"
5325 The contents of \fIdefinition\fR are tokenized and processed as if
5326 they appeared during translation phase three in a \fB#define\fR
5327 directive.  In particular, the definition will be truncated by
5328 embedded newline characters.
5329 .Sp
5330 If you are invoking the preprocessor from a shell or shell-like
5331 program you may need to use the shell's quoting syntax to protect
5332 characters such as spaces that have a meaning in the shell syntax.
5333 .Sp
5334 If you wish to define a function-like macro on the command line, write
5335 its argument list with surrounding parentheses before the equals sign
5336 (if any).  Parentheses are meaningful to most shells, so you will need
5337 to quote the option.  With \fBsh\fR and \fBcsh\fR,
5338 \&\fB\-D'\fR\fIname\fR\fB(\fR\fIargs...\fR\fB)=\fR\fIdefinition\fR\fB'\fR works.
5339 .Sp
5340 \&\fB\-D\fR and \fB\-U\fR options are processed in the order they
5341 are given on the command line.  All \fB\-imacros\fR \fIfile\fR and
5342 \&\fB\-include\fR \fIfile\fR options are processed after all
5343 \&\fB\-D\fR and \fB\-U\fR options.
5344 .IP "\fB\-U\fR \fIname\fR" 4
5345 .IX Item "-U name"
5346 Cancel any previous definition of \fIname\fR, either built in or
5347 provided with a \fB\-D\fR option.
5348 .IP "\fB\-undef\fR" 4
5349 .IX Item "-undef"
5350 Do not predefine any system-specific or GCC-specific macros.  The
5351 standard predefined macros remain defined.
5352 .IP "\fB\-I\fR \fIdir\fR" 4
5353 .IX Item "-I dir"
5354 Add the directory \fIdir\fR to the list of directories to be searched
5355 for header files.
5356 Directories named by \fB\-I\fR are searched before the standard
5357 system include directories.  If the directory \fIdir\fR is a standard
5358 system include directory, the option is ignored to ensure that the
5359 default search order for system directories and the special treatment
5360 of system headers are not defeated
5361 \&.
5362 .IP "\fB\-o\fR \fIfile\fR" 4
5363 .IX Item "-o file"
5364 Write output to \fIfile\fR.  This is the same as specifying \fIfile\fR
5365 as the second non-option argument to \fBcpp\fR.  \fBgcc\fR has a
5366 different interpretation of a second non-option argument, so you must
5367 use \fB\-o\fR to specify the output file.
5368 .IP "\fB\-Wall\fR" 4
5369 .IX Item "-Wall"
5370 Turns on all optional warnings which are desirable for normal code.
5371 At present this is \fB\-Wcomment\fR, \fB\-Wtrigraphs\fR,
5372 \&\fB\-Wmultichar\fR and a warning about integer promotion causing a
5373 change of sign in \f(CW\*(C`#if\*(C'\fR expressions.  Note that many of the
5374 preprocessor's warnings are on by default and have no options to
5375 control them.
5376 .IP "\fB\-Wcomment\fR" 4
5377 .IX Item "-Wcomment"
5378 .PD 0
5379 .IP "\fB\-Wcomments\fR" 4
5380 .IX Item "-Wcomments"
5381 .PD
5382 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
5383 comment, or whenever a backslash-newline appears in a \fB//\fR comment.
5384 (Both forms have the same effect.)
5385 .IP "\fB\-Wtrigraphs\fR" 4
5386 .IX Item "-Wtrigraphs"
5387 @anchor{Wtrigraphs}
5388 Most trigraphs in comments cannot affect the meaning of the program.
5389 However, a trigraph that would form an escaped newline (\fB??/\fR at
5390 the end of a line) can, by changing where the comment begins or ends.
5391 Therefore, only trigraphs that would form escaped newlines produce
5392 warnings inside a comment.
5393 .Sp
5394 This option is implied by \fB\-Wall\fR.  If \fB\-Wall\fR is not
5395 given, this option is still enabled unless trigraphs are enabled.  To
5396 get trigraph conversion without warnings, but get the other
5397 \&\fB\-Wall\fR warnings, use \fB\-trigraphs \-Wall \-Wno\-trigraphs\fR.
5398 .IP "\fB\-Wtraditional\fR" 4
5399 .IX Item "-Wtraditional"
5400 Warn about certain constructs that behave differently in traditional and
5401 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
5402 equivalent, and problematic constructs which should be avoided.
5403 .IP "\fB\-Wimport\fR" 4
5404 .IX Item "-Wimport"
5405 Warn the first time \fB#import\fR is used.
5406 .IP "\fB\-Wundef\fR" 4
5407 .IX Item "-Wundef"
5408 Warn whenever an identifier which is not a macro is encountered in an
5409 \&\fB#if\fR directive, outside of \fBdefined\fR.  Such identifiers are
5410 replaced with zero.
5411 .IP "\fB\-Wunused\-macros\fR" 4
5412 .IX Item "-Wunused-macros"
5413 Warn about macros defined in the main file that are unused.  A macro
5414 is \fIused\fR if it is expanded or tested for existence at least once.
5415 The preprocessor will also warn if the macro has not been used at the
5416 time it is redefined or undefined.
5417 .Sp
5418 Built-in macros, macros defined on the command line, and macros
5419 defined in include files are not warned about.
5420 .Sp
5421 \&\fINote:\fR If a macro is actually used, but only used in skipped
5422 conditional blocks, then \s-1CPP\s0 will report it as unused.  To avoid the
5423 warning in such a case, you might improve the scope of the macro's
5424 definition by, for example, moving it into the first skipped block.
5425 Alternatively, you could provide a dummy use with something like:
5426 .Sp
5427 .Vb 2
5428 \&        #if defined the_macro_causing_the_warning
5429 \&        #endif
5430 .Ve
5431 .IP "\fB\-Wendif\-labels\fR" 4
5432 .IX Item "-Wendif-labels"
5433 Warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
5434 This usually happens in code of the form
5435 .Sp
5436 .Vb 5
5437 \&        #if FOO
5438 \&        ...
5439 \&        #else FOO
5440 \&        ...
5441 \&        #endif FOO
5442 .Ve
5443 .Sp
5444 The second and third \f(CW\*(C`FOO\*(C'\fR should be in comments, but often are not
5445 in older programs.  This warning is on by default.
5446 .IP "\fB\-Werror\fR" 4
5447 .IX Item "-Werror"
5448 Make all warnings into hard errors.  Source code which triggers warnings
5449 will be rejected.
5450 .IP "\fB\-Wsystem\-headers\fR" 4
5451 .IX Item "-Wsystem-headers"
5452 Issue warnings for code in system headers.  These are normally unhelpful
5453 in finding bugs in your own code, therefore suppressed.  If you are
5454 responsible for the system library, you may want to see them.
5455 .IP "\fB\-w\fR" 4
5456 .IX Item "-w"
5457 Suppress all warnings, including those which \s-1GNU\s0 \s-1CPP\s0 issues by default.
5458 .IP "\fB\-pedantic\fR" 4
5459 .IX Item "-pedantic"
5460 Issue all the mandatory diagnostics listed in the C standard.  Some of
5461 them are left out by default, since they trigger frequently on harmless
5462 code.
5463 .IP "\fB\-pedantic\-errors\fR" 4
5464 .IX Item "-pedantic-errors"
5465 Issue all the mandatory diagnostics, and make all mandatory diagnostics
5466 into errors.  This includes mandatory diagnostics that \s-1GCC\s0 issues
5467 without \fB\-pedantic\fR but treats as warnings.
5468 .IP "\fB\-M\fR" 4
5469 .IX Item "-M"
5470 Instead of outputting the result of preprocessing, output a rule
5471 suitable for \fBmake\fR describing the dependencies of the main
5472 source file.  The preprocessor outputs one \fBmake\fR rule containing
5473 the object file name for that source file, a colon, and the names of all
5474 the included files, including those coming from \fB\-include\fR or
5475 \&\fB\-imacros\fR command line options.
5476 .Sp
5477 Unless specified explicitly (with \fB\-MT\fR or \fB\-MQ\fR), the
5478 object file name consists of the basename of the source file with any
5479 suffix replaced with object file suffix.  If there are many included
5480 files then the rule is split into several lines using \fB\e\fR\-newline.
5481 The rule has no commands.
5482 .Sp
5483 This option does not suppress the preprocessor's debug output, such as
5484 \&\fB\-dM\fR.  To avoid mixing such debug output with the dependency
5485 rules you should explicitly specify the dependency output file with
5486 \&\fB\-MF\fR, or use an environment variable like
5487 \&\fB\s-1DEPENDENCIES_OUTPUT\s0\fR.  Debug output
5488 will still be sent to the regular output stream as normal.
5489 .Sp
5490 Passing \fB\-M\fR to the driver implies \fB\-E\fR, and suppresses
5491 warnings with an implicit \fB\-w\fR.
5492 .IP "\fB\-MM\fR" 4
5493 .IX Item "-MM"
5494 Like \fB\-M\fR but do not mention header files that are found in
5495 system header directories, nor header files that are included,
5496 directly or indirectly, from such a header.
5497 .Sp
5498 This implies that the choice of angle brackets or double quotes in an
5499 \&\fB#include\fR directive does not in itself determine whether that
5500 header will appear in \fB\-MM\fR dependency output.  This is a
5501 slight change in semantics from \s-1GCC\s0 versions 3.0 and earlier.
5502 .Sp
5503 @anchor{dashMF}
5504 .IP "\fB\-MF\fR \fIfile\fR" 4
5505 .IX Item "-MF file"
5506 When used with \fB\-M\fR or \fB\-MM\fR, specifies a
5507 file to write the dependencies to.  If no \fB\-MF\fR switch is given
5508 the preprocessor sends the rules to the same place it would have sent
5509 preprocessed output.
5510 .Sp
5511 When used with the driver options \fB\-MD\fR or \fB\-MMD\fR,
5512 \&\fB\-MF\fR overrides the default dependency output file.
5513 .IP "\fB\-MG\fR" 4
5514 .IX Item "-MG"
5515 In conjunction with an option such as \fB\-M\fR requesting
5516 dependency generation, \fB\-MG\fR assumes missing header files are
5517 generated files and adds them to the dependency list without raising
5518 an error.  The dependency filename is taken directly from the
5519 \&\f(CW\*(C`#include\*(C'\fR directive without prepending any path.  \fB\-MG\fR
5520 also suppresses preprocessed output, as a missing header file renders
5521 this useless.
5522 .Sp
5523 This feature is used in automatic updating of makefiles.
5524 .IP "\fB\-MP\fR" 4
5525 .IX Item "-MP"
5526 This option instructs \s-1CPP\s0 to add a phony target for each dependency
5527 other than the main file, causing each to depend on nothing.  These
5528 dummy rules work around errors \fBmake\fR gives if you remove header
5529 files without updating the \fIMakefile\fR to match.
5530 .Sp
5531 This is typical output:
5532 .Sp
5533 .Vb 1
5534 \&        test.o: test.c test.h
5535 .Ve
5536 .Sp
5537 .Vb 1
5538 \&        test.h:
5539 .Ve
5540 .IP "\fB\-MT\fR \fItarget\fR" 4
5541 .IX Item "-MT target"
5542 Change the target of the rule emitted by dependency generation.  By
5543 default \s-1CPP\s0 takes the name of the main input file, including any path,
5544 deletes any file suffix such as \fB.c\fR, and appends the platform's
5545 usual object suffix.  The result is the target.
5546 .Sp
5547 An \fB\-MT\fR option will set the target to be exactly the string you
5548 specify.  If you want multiple targets, you can specify them as a single
5549 argument to \fB\-MT\fR, or use multiple \fB\-MT\fR options.
5550 .Sp
5551 For example, \fB\-MT\ '$(objpfx)foo.o'\fR might give
5552 .Sp
5553 .Vb 1
5554 \&        $(objpfx)foo.o: foo.c
5555 .Ve
5556 .IP "\fB\-MQ\fR \fItarget\fR" 4
5557 .IX Item "-MQ target"
5558 Same as \fB\-MT\fR, but it quotes any characters which are special to
5559 Make.  \fB\-MQ\ '$(objpfx)foo.o'\fR gives
5560 .Sp
5561 .Vb 1
5562 \&        $$(objpfx)foo.o: foo.c
5563 .Ve
5564 .Sp
5565 The default target is automatically quoted, as if it were given with
5566 \&\fB\-MQ\fR.
5567 .IP "\fB\-MD\fR" 4
5568 .IX Item "-MD"
5569 \&\fB\-MD\fR is equivalent to \fB\-M \-MF\fR \fIfile\fR, except that
5570 \&\fB\-E\fR is not implied.  The driver determines \fIfile\fR based on
5571 whether an \fB\-o\fR option is given.  If it is, the driver uses its
5572 argument but with a suffix of \fI.d\fR, otherwise it take the
5573 basename of the input file and applies a \fI.d\fR suffix.
5574 .Sp
5575 If \fB\-MD\fR is used in conjunction with \fB\-E\fR, any
5576 \&\fB\-o\fR switch is understood to specify the dependency output file
5577 (but \f(CW@pxref\fR{dashMF,,\-MF}), but if used without \fB\-E\fR, each \fB\-o\fR
5578 is understood to specify a target object file.
5579 .Sp
5580 Since \fB\-E\fR is not implied, \fB\-MD\fR can be used to generate
5581 a dependency output file as a side-effect of the compilation process.
5582 .IP "\fB\-MMD\fR" 4
5583 .IX Item "-MMD"
5584 Like \fB\-MD\fR except mention only user header files, not system
5585 header files.
5586 .IP "\fB\-fpch\-deps\fR" 4
5587 .IX Item "-fpch-deps"
5588 When using precompiled headers, this flag
5589 will cause the dependency-output flags to also list the files from the
5590 precompiled header's dependencies.  If not specified only the
5591 precompiled header would be listed and not the files that were used to
5592 create it because those files are not consulted when a precompiled
5593 header is used.
5594 .IP "\fB\-fpch\-preprocess\fR" 4
5595 .IX Item "-fpch-preprocess"
5596 This option allows use of a precompiled header together with \fB\-E\fR.  It inserts a special \f(CW\*(C`#pragma\*(C'\fR,
5597 \&\f(CW\*(C`#pragma GCC pch_preprocess "<filename>"\*(C'\fR in the output to mark
5598 the place where the precompiled header was found, and its filename.  When
5599 \&\fB\-fpreprocessed\fR is in use, \s-1GCC\s0 recognizes this \f(CW\*(C`#pragma\*(C'\fR and
5600 loads the \s-1PCH\s0.
5601 .Sp
5602 This option is off by default, because the resulting preprocessed output
5603 is only really suitable as input to \s-1GCC\s0.  It is switched on by
5604 \&\fB\-save\-temps\fR.
5605 .Sp
5606 You should not write this \f(CW\*(C`#pragma\*(C'\fR in your own code, but it is
5607 safe to edit the filename if the \s-1PCH\s0 file is available in a different
5608 location.  The filename may be absolute or it may be relative to \s-1GCC\s0's
5609 current directory.
5610 .IP "\fB\-x c\fR" 4
5611 .IX Item "-x c"
5612 .PD 0
5613 .IP "\fB\-x c++\fR" 4
5614 .IX Item "-x c++"
5615 .IP "\fB\-x objective-c\fR" 4
5616 .IX Item "-x objective-c"
5617 .IP "\fB\-x assembler-with-cpp\fR" 4
5618 .IX Item "-x assembler-with-cpp"
5619 .PD
5620 Specify the source language: C, \*(C+, Objective\-C, or assembly.  This has
5621 nothing to do with standards conformance or extensions; it merely
5622 selects which base syntax to expect.  If you give none of these options,
5623 cpp will deduce the language from the extension of the source file:
5624 \&\fB.c\fR, \fB.cc\fR, \fB.m\fR, or \fB.S\fR.  Some other common
5625 extensions for \*(C+ and assembly are also recognized.  If cpp does not
5626 recognize the extension, it will treat the file as C; this is the most
5627 generic mode.
5628 .Sp
5629 \&\fINote:\fR Previous versions of cpp accepted a \fB\-lang\fR option
5630 which selected both the language and the standards conformance level.
5631 This option has been removed, because it conflicts with the \fB\-l\fR
5632 option.
5633 .IP "\fB\-std=\fR\fIstandard\fR" 4
5634 .IX Item "-std=standard"
5635 .PD 0
5636 .IP "\fB\-ansi\fR" 4
5637 .IX Item "-ansi"
5638 .PD
5639 Specify the standard to which the code should conform.  Currently \s-1CPP\s0
5640 knows about C and \*(C+ standards; others may be added in the future.
5641 .Sp
5642 \&\fIstandard\fR
5643 may be one of:
5644 .RS 4
5645 .ie n .IP """iso9899:1990""" 4
5646 .el .IP "\f(CWiso9899:1990\fR" 4
5647 .IX Item "iso9899:1990"
5648 .PD 0
5649 .ie n .IP """c89""" 4
5650 .el .IP "\f(CWc89\fR" 4
5651 .IX Item "c89"
5652 .PD
5653 The \s-1ISO\s0 C standard from 1990.  \fBc89\fR is the customary shorthand for
5654 this version of the standard.
5655 .Sp
5656 The \fB\-ansi\fR option is equivalent to \fB\-std=c89\fR.
5657 .ie n .IP """iso9899:199409""" 4
5658 .el .IP "\f(CWiso9899:199409\fR" 4
5659 .IX Item "iso9899:199409"
5660 The 1990 C standard, as amended in 1994.
5661 .ie n .IP """iso9899:1999""" 4
5662 .el .IP "\f(CWiso9899:1999\fR" 4
5663 .IX Item "iso9899:1999"
5664 .PD 0
5665 .ie n .IP """c99""" 4
5666 .el .IP "\f(CWc99\fR" 4
5667 .IX Item "c99"
5668 .ie n .IP """iso9899:199x""" 4
5669 .el .IP "\f(CWiso9899:199x\fR" 4
5670 .IX Item "iso9899:199x"
5671 .ie n .IP """c9x""" 4
5672 .el .IP "\f(CWc9x\fR" 4
5673 .IX Item "c9x"
5674 .PD
5675 The revised \s-1ISO\s0 C standard, published in December 1999.  Before
5676 publication, this was known as C9X.
5677 .ie n .IP """gnu89""" 4
5678 .el .IP "\f(CWgnu89\fR" 4
5679 .IX Item "gnu89"
5680 The 1990 C standard plus \s-1GNU\s0 extensions.  This is the default.
5681 .ie n .IP """gnu99""" 4
5682 .el .IP "\f(CWgnu99\fR" 4
5683 .IX Item "gnu99"
5684 .PD 0
5685 .ie n .IP """gnu9x""" 4
5686 .el .IP "\f(CWgnu9x\fR" 4
5687 .IX Item "gnu9x"
5688 .PD
5689 The 1999 C standard plus \s-1GNU\s0 extensions.
5690 .ie n .IP """c++98""" 4
5691 .el .IP "\f(CWc++98\fR" 4
5692 .IX Item "c++98"
5693 The 1998 \s-1ISO\s0 \*(C+ standard plus amendments.
5694 .ie n .IP """gnu++98""" 4
5695 .el .IP "\f(CWgnu++98\fR" 4
5696 .IX Item "gnu++98"
5697 The same as \fB\-std=c++98\fR plus \s-1GNU\s0 extensions.  This is the
5698 default for \*(C+ code.
5699 .RE
5700 .RS 4
5701 .RE
5702 .IP "\fB\-I\-\fR" 4
5703 .IX Item "-I-"
5704 Split the include path.  Any directories specified with \fB\-I\fR
5705 options before \fB\-I\-\fR are searched only for headers requested with
5706 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
5707 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR.  If additional directories are
5708 specified with \fB\-I\fR options after the \fB\-I\-\fR, those
5709 directories are searched for all \fB#include\fR directives.
5710 .Sp
5711 In addition, \fB\-I\-\fR inhibits the use of the directory of the current
5712 file directory as the first search directory for \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR.
5713 This option has been deprecated.
5714 .IP "\fB\-nostdinc\fR" 4
5715 .IX Item "-nostdinc"
5716 Do not search the standard system directories for header files.
5717 Only the directories you have specified with \fB\-I\fR options
5718 (and the directory of the current file, if appropriate) are searched.
5719 .IP "\fB\-nostdinc++\fR" 4
5720 .IX Item "-nostdinc++"
5721 Do not search for header files in the \*(C+\-specific standard directories,
5722 but do still search the other standard directories.  (This option is
5723 used when building the \*(C+ library.)
5724 .IP "\fB\-include\fR \fIfile\fR" 4
5725 .IX Item "-include file"
5726 Process \fIfile\fR as if \f(CW\*(C`#include "file"\*(C'\fR appeared as the first
5727 line of the primary source file.  However, the first directory searched
5728 for \fIfile\fR is the preprocessor's working directory \fIinstead of\fR
5729 the directory containing the main source file.  If not found there, it
5730 is searched for in the remainder of the \f(CW\*(C`#include "..."\*(C'\fR search
5731 chain as normal.
5732 .Sp
5733 If multiple \fB\-include\fR options are given, the files are included
5734 in the order they appear on the command line.
5735 .IP "\fB\-imacros\fR \fIfile\fR" 4
5736 .IX Item "-imacros file"
5737 Exactly like \fB\-include\fR, except that any output produced by
5738 scanning \fIfile\fR is thrown away.  Macros it defines remain defined.
5739 This allows you to acquire all the macros from a header without also
5740 processing its declarations.
5741 .Sp
5742 All files specified by \fB\-imacros\fR are processed before all files
5743 specified by \fB\-include\fR.
5744 .IP "\fB\-idirafter\fR \fIdir\fR" 4
5745 .IX Item "-idirafter dir"
5746 Search \fIdir\fR for header files, but do it \fIafter\fR all
5747 directories specified with \fB\-I\fR and the standard system directories
5748 have been exhausted.  \fIdir\fR is treated as a system include directory.
5749 .IP "\fB\-iprefix\fR \fIprefix\fR" 4
5750 .IX Item "-iprefix prefix"
5751 Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
5752 options.  If the prefix represents a directory, you should include the
5753 final \fB/\fR.
5754 .IP "\fB\-iwithprefix\fR \fIdir\fR" 4
5755 .IX Item "-iwithprefix dir"
5756 .PD 0
5757 .IP "\fB\-iwithprefixbefore\fR \fIdir\fR" 4
5758 .IX Item "-iwithprefixbefore dir"
5759 .PD
5760 Append \fIdir\fR to the prefix specified previously with
5761 \&\fB\-iprefix\fR, and add the resulting directory to the include search
5762 path.  \fB\-iwithprefixbefore\fR puts it in the same place \fB\-I\fR
5763 would; \fB\-iwithprefix\fR puts it where \fB\-idirafter\fR would.
5764 .IP "\fB\-isystem\fR \fIdir\fR" 4
5765 .IX Item "-isystem dir"
5766 Search \fIdir\fR for header files, after all directories specified by
5767 \&\fB\-I\fR but before the standard system directories.  Mark it
5768 as a system directory, so that it gets the same special treatment as
5769 is applied to the standard system directories.
5770 .IP "\fB\-iquote\fR \fIdir\fR" 4
5771 .IX Item "-iquote dir"
5772 Search \fIdir\fR only for header files requested with
5773 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
5774 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR, before all directories specified by
5775 \&\fB\-I\fR and before the standard system directories.
5776 .IP "\fB\-fdollars\-in\-identifiers\fR" 4
5777 .IX Item "-fdollars-in-identifiers"
5778 @anchor{fdollars\-in\-identifiers}
5779 Accept \fB$\fR in identifiers.
5780 .IP "\fB\-fpreprocessed\fR" 4
5781 .IX Item "-fpreprocessed"
5782 Indicate to the preprocessor that the input file has already been
5783 preprocessed.  This suppresses things like macro expansion, trigraph
5784 conversion, escaped newline splicing, and processing of most directives.
5785 The preprocessor still recognizes and removes comments, so that you can
5786 pass a file preprocessed with \fB\-C\fR to the compiler without
5787 problems.  In this mode the integrated preprocessor is little more than
5788 a tokenizer for the front ends.
5789 .Sp
5790 \&\fB\-fpreprocessed\fR is implicit if the input file has one of the
5791 extensions \fB.i\fR, \fB.ii\fR or \fB.mi\fR.  These are the
5792 extensions that \s-1GCC\s0 uses for preprocessed files created by
5793 \&\fB\-save\-temps\fR.
5794 .IP "\fB\-ftabstop=\fR\fIwidth\fR" 4
5795 .IX Item "-ftabstop=width"
5796 Set the distance between tab stops.  This helps the preprocessor report
5797 correct column numbers in warnings or errors, even if tabs appear on the
5798 line.  If the value is less than 1 or greater than 100, the option is
5799 ignored.  The default is 8.
5800 .IP "\fB\-fexec\-charset=\fR\fIcharset\fR" 4
5801 .IX Item "-fexec-charset=charset"
5802 Set the execution character set, used for string and character
5803 constants.  The default is \s-1UTF\-8\s0.  \fIcharset\fR can be any encoding
5804 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
5805 .IP "\fB\-fwide\-exec\-charset=\fR\fIcharset\fR" 4
5806 .IX Item "-fwide-exec-charset=charset"
5807 Set the wide execution character set, used for wide string and
5808 character constants.  The default is \s-1UTF\-32\s0 or \s-1UTF\-16\s0, whichever
5809 corresponds to the width of \f(CW\*(C`wchar_t\*(C'\fR.  As with
5810 \&\fB\-fexec\-charset\fR, \fIcharset\fR can be any encoding supported
5811 by the system's \f(CW\*(C`iconv\*(C'\fR library routine; however, you will have
5812 problems with encodings that do not fit exactly in \f(CW\*(C`wchar_t\*(C'\fR.
5813 .IP "\fB\-finput\-charset=\fR\fIcharset\fR" 4
5814 .IX Item "-finput-charset=charset"
5815 Set the input character set, used for translation from the character
5816 set of the input file to the source character set used by \s-1GCC\s0.  If the
5817 locale does not specify, or \s-1GCC\s0 cannot get this information from the
5818 locale, the default is \s-1UTF\-8\s0.  This can be overridden by either the locale
5819 or this command line option.  Currently the command line option takes
5820 precedence if there's a conflict.  \fIcharset\fR can be any encoding
5821 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
5822 .IP "\fB\-fworking\-directory\fR" 4
5823 .IX Item "-fworking-directory"
5824 Enable generation of linemarkers in the preprocessor output that will
5825 let the compiler know the current working directory at the time of
5826 preprocessing.  When this option is enabled, the preprocessor will
5827 emit, after the initial linemarker, a second linemarker with the
5828 current working directory followed by two slashes.  \s-1GCC\s0 will use this
5829 directory, when it's present in the preprocessed input, as the
5830 directory emitted as the current working directory in some debugging
5831 information formats.  This option is implicitly enabled if debugging
5832 information is enabled, but this can be inhibited with the negated
5833 form \fB\-fno\-working\-directory\fR.  If the \fB\-P\fR flag is
5834 present in the command line, this option has no effect, since no
5835 \&\f(CW\*(C`#line\*(C'\fR directives are emitted whatsoever.
5836 .IP "\fB\-fno\-show\-column\fR" 4
5837 .IX Item "-fno-show-column"
5838 Do not print column numbers in diagnostics.  This may be necessary if
5839 diagnostics are being scanned by a program that does not understand the
5840 column numbers, such as \fBdejagnu\fR.
5841 .IP "\fB\-A\fR \fIpredicate\fR\fB=\fR\fIanswer\fR" 4
5842 .IX Item "-A predicate=answer"
5843 Make an assertion with the predicate \fIpredicate\fR and answer
5844 \&\fIanswer\fR.  This form is preferred to the older form \fB\-A\fR
5845 \&\fIpredicate\fR\fB(\fR\fIanswer\fR\fB)\fR, which is still supported, because
5846 it does not use shell special characters.
5847 .IP "\fB\-A \-\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4
5848 .IX Item "-A -predicate=answer"
5849 Cancel an assertion with the predicate \fIpredicate\fR and answer
5850 \&\fIanswer\fR.
5851 .IP "\fB\-dCHARS\fR" 4
5852 .IX Item "-dCHARS"
5853 \&\fI\s-1CHARS\s0\fR is a sequence of one or more of the following characters,
5854 and must not be preceded by a space.  Other characters are interpreted
5855 by the compiler proper, or reserved for future versions of \s-1GCC\s0, and so
5856 are silently ignored.  If you specify characters whose behavior
5857 conflicts, the result is undefined.
5858 .RS 4
5859 .IP "\fBM\fR" 4
5860 .IX Item "M"
5861 Instead of the normal output, generate a list of \fB#define\fR
5862 directives for all the macros defined during the execution of the
5863 preprocessor, including predefined macros.  This gives you a way of
5864 finding out what is predefined in your version of the preprocessor.
5865 Assuming you have no file \fIfoo.h\fR, the command
5866 .Sp
5867 .Vb 1
5868 \&        touch foo.h; cpp -dM foo.h
5869 .Ve
5870 .Sp
5871 will show all the predefined macros.
5872 .IP "\fBD\fR" 4
5873 .IX Item "D"
5874 Like \fBM\fR except in two respects: it does \fInot\fR include the
5875 predefined macros, and it outputs \fIboth\fR the \fB#define\fR
5876 directives and the result of preprocessing.  Both kinds of output go to
5877 the standard output file.
5878 .IP "\fBN\fR" 4
5879 .IX Item "N"
5880 Like \fBD\fR, but emit only the macro names, not their expansions.
5881 .IP "\fBI\fR" 4
5882 .IX Item "I"
5883 Output \fB#include\fR directives in addition to the result of
5884 preprocessing.
5885 .RE
5886 .RS 4
5887 .RE
5888 .IP "\fB\-P\fR" 4
5889 .IX Item "-P"
5890 Inhibit generation of linemarkers in the output from the preprocessor.
5891 This might be useful when running the preprocessor on something that is
5892 not C code, and will be sent to a program which might be confused by the
5893 linemarkers.
5894 .IP "\fB\-C\fR" 4
5895 .IX Item "-C"
5896 Do not discard comments.  All comments are passed through to the output
5897 file, except for comments in processed directives, which are deleted
5898 along with the directive.
5899 .Sp
5900 You should be prepared for side effects when using \fB\-C\fR; it
5901 causes the preprocessor to treat comments as tokens in their own right.
5902 For example, comments appearing at the start of what would be a
5903 directive line have the effect of turning that line into an ordinary
5904 source line, since the first token on the line is no longer a \fB#\fR.
5905 .IP "\fB\-CC\fR" 4
5906 .IX Item "-CC"
5907 Do not discard comments, including during macro expansion.  This is
5908 like \fB\-C\fR, except that comments contained within macros are
5909 also passed through to the output file where the macro is expanded.
5910 .Sp
5911 In addition to the side-effects of the \fB\-C\fR option, the
5912 \&\fB\-CC\fR option causes all \*(C+\-style comments inside a macro
5913 to be converted to C\-style comments.  This is to prevent later use
5914 of that macro from inadvertently commenting out the remainder of
5915 the source line.
5916 .Sp
5917 The \fB\-CC\fR option is generally used to support lint comments.
5918 .IP "\fB\-traditional\-cpp\fR" 4
5919 .IX Item "-traditional-cpp"
5920 Try to imitate the behavior of old-fashioned C preprocessors, as
5921 opposed to \s-1ISO\s0 C preprocessors.
5922 .IP "\fB\-trigraphs\fR" 4
5923 .IX Item "-trigraphs"
5924 Process trigraph sequences.
5925 These are three-character sequences, all starting with \fB??\fR, that
5926 are defined by \s-1ISO\s0 C to stand for single characters.  For example,
5927 \&\fB??/\fR stands for \fB\e\fR, so \fB'??/n'\fR is a character
5928 constant for a newline.  By default, \s-1GCC\s0 ignores trigraphs, but in
5929 standard-conforming modes it converts them.  See the \fB\-std\fR and
5930 \&\fB\-ansi\fR options.
5931 .Sp
5932 The nine trigraphs and their replacements are
5933 .Sp
5934 .Vb 2
5935 \&        Trigraph:       ??(  ??)  ??<  ??>  ??=  ??/  ??'  ??!  ??-
5936 \&        Replacement:      [    ]    {    }    #    \e    ^    |    ~
5937 .Ve
5938 .IP "\fB\-remap\fR" 4
5939 .IX Item "-remap"
5940 Enable special code to work around file systems which only permit very
5941 short file names, such as \s-1MS\-DOS\s0.
5942 .IP "\fB\-\-help\fR" 4
5943 .IX Item "--help"
5944 .PD 0
5945 .IP "\fB\-\-target\-help\fR" 4
5946 .IX Item "--target-help"
5947 .PD
5948 Print text describing all the command line options instead of
5949 preprocessing anything.
5950 .IP "\fB\-v\fR" 4
5951 .IX Item "-v"
5952 Verbose mode.  Print out \s-1GNU\s0 \s-1CPP\s0's version number at the beginning of
5953 execution, and report the final form of the include path.
5954 .IP "\fB\-H\fR" 4
5955 .IX Item "-H"
5956 Print the name of each header file used, in addition to other normal
5957 activities.  Each name is indented to show how deep in the
5958 \&\fB#include\fR stack it is.  Precompiled header files are also
5959 printed, even if they are found to be invalid; an invalid precompiled
5960 header file is printed with \fB...x\fR and a valid one with \fB...!\fR .
5961 .IP "\fB\-version\fR" 4
5962 .IX Item "-version"
5963 .PD 0
5964 .IP "\fB\-\-version\fR" 4
5965 .IX Item "--version"
5966 .PD
5967 Print out \s-1GNU\s0 \s-1CPP\s0's version number.  With one dash, proceed to
5968 preprocess as normal.  With two dashes, exit immediately.
5969 .Sh "Passing Options to the Assembler"
5970 .IX Subsection "Passing Options to the Assembler"
5971 You can pass options to the assembler.
5972 .IP "\fB\-Wa,\fR\fIoption\fR" 4
5973 .IX Item "-Wa,option"
5974 Pass \fIoption\fR as an option to the assembler.  If \fIoption\fR
5975 contains commas, it is split into multiple options at the commas.
5976 .IP "\fB\-Xassembler\fR \fIoption\fR" 4
5977 .IX Item "-Xassembler option"
5978 Pass \fIoption\fR as an option to the assembler.  You can use this to
5979 supply system-specific assembler options which \s-1GCC\s0 does not know how to
5980 recognize.
5981 .Sp
5982 If you want to pass an option that takes an argument, you must use
5983 \&\fB\-Xassembler\fR twice, once for the option and once for the argument.
5984 .Sh "Options for Linking"
5985 .IX Subsection "Options for Linking"
5986 These options come into play when the compiler links object files into
5987 an executable output file.  They are meaningless if the compiler is
5988 not doing a link step.
5989 .IP "\fIobject-file-name\fR" 4
5990 .IX Item "object-file-name"
5991 A file name that does not end in a special recognized suffix is
5992 considered to name an object file or library.  (Object files are
5993 distinguished from libraries by the linker according to the file
5994 contents.)  If linking is done, these object files are used as input
5995 to the linker.
5996 .IP "\fB\-c\fR" 4
5997 .IX Item "-c"
5998 .PD 0
5999 .IP "\fB\-S\fR" 4
6000 .IX Item "-S"
6001 .IP "\fB\-E\fR" 4
6002 .IX Item "-E"
6003 .PD
6004 If any of these options is used, then the linker is not run, and
6005 object file names should not be used as arguments.  
6006 .IP "\fB\-l\fR\fIlibrary\fR" 4
6007 .IX Item "-llibrary"
6008 .PD 0
6009 .IP "\fB\-l\fR \fIlibrary\fR" 4
6010 .IX Item "-l library"
6011 .PD
6012 Search the library named \fIlibrary\fR when linking.  (The second
6013 alternative with the library as a separate argument is only for
6014 \&\s-1POSIX\s0 compliance and is not recommended.)
6015 .Sp
6016 It makes a difference where in the command you write this option; the
6017 linker searches and processes libraries and object files in the order they
6018 are specified.  Thus, \fBfoo.o \-lz bar.o\fR searches library \fBz\fR
6019 after file \fIfoo.o\fR but before \fIbar.o\fR.  If \fIbar.o\fR refers
6020 to functions in \fBz\fR, those functions may not be loaded.
6021 .Sp
6022 The linker searches a standard list of directories for the library,
6023 which is actually a file named \fIlib\fIlibrary\fI.a\fR.  The linker
6024 then uses this file as if it had been specified precisely by name.
6025 .Sp
6026 The directories searched include several standard system directories
6027 plus any that you specify with \fB\-L\fR.
6028 .Sp
6029 Normally the files found this way are library files\-\-\-archive files
6030 whose members are object files.  The linker handles an archive file by
6031 scanning through it for members which define symbols that have so far
6032 been referenced but not defined.  But if the file that is found is an
6033 ordinary object file, it is linked in the usual fashion.  The only
6034 difference between using an \fB\-l\fR option and specifying a file name
6035 is that \fB\-l\fR surrounds \fIlibrary\fR with \fBlib\fR and \fB.a\fR
6036 and searches several directories.
6037 .IP "\fB\-lobjc\fR" 4
6038 .IX Item "-lobjc"
6039 You need this special case of the \fB\-l\fR option in order to
6040 link an Objective-C or Objective\-\*(C+ program.
6041 .IP "\fB\-nostartfiles\fR" 4
6042 .IX Item "-nostartfiles"
6043 Do not use the standard system startup files when linking.
6044 The standard system libraries are used normally, unless \fB\-nostdlib\fR
6045 or \fB\-nodefaultlibs\fR is used.
6046 .IP "\fB\-nodefaultlibs\fR" 4
6047 .IX Item "-nodefaultlibs"
6048 Do not use the standard system libraries when linking.
6049 Only the libraries you specify will be passed to the linker.
6050 The standard startup files are used normally, unless \fB\-nostartfiles\fR
6051 is used.  The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR,
6052 \&\f(CW\*(C`memset\*(C'\fR, \f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
6053 These entries are usually resolved by entries in
6054 libc.  These entry points should be supplied through some other
6055 mechanism when this option is specified.
6056 .IP "\fB\-nostdlib\fR" 4
6057 .IX Item "-nostdlib"
6058 Do not use the standard system startup files or libraries when linking.
6059 No startup files and only the libraries you specify will be passed to
6060 the linker.  The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR, \f(CW\*(C`memset\*(C'\fR,
6061 \&\f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
6062 These entries are usually resolved by entries in
6063 libc.  These entry points should be supplied through some other
6064 mechanism when this option is specified.
6065 .Sp
6066 One of the standard libraries bypassed by \fB\-nostdlib\fR and
6067 \&\fB\-nodefaultlibs\fR is \fIlibgcc.a\fR, a library of internal subroutines
6068 that \s-1GCC\s0 uses to overcome shortcomings of particular machines, or special
6069 needs for some languages.
6070 .Sp
6071 In most cases, you need \fIlibgcc.a\fR even when you want to avoid
6072 other standard libraries.  In other words, when you specify \fB\-nostdlib\fR
6073 or \fB\-nodefaultlibs\fR you should usually specify \fB\-lgcc\fR as well.
6074 This ensures that you have no unresolved references to internal \s-1GCC\s0
6075 library subroutines.  (For example, \fB_\|_main\fR, used to ensure \*(C+
6076 constructors will be called.)
6077 .IP "\fB\-pie\fR" 4
6078 .IX Item "-pie"
6079 Produce a position independent executable on targets which support it.
6080 For predictable results, you must also specify the same set of options
6081 that were used to generate code (\fB\-fpie\fR, \fB\-fPIE\fR,
6082 or model suboptions) when you specify this option.
6083 .IP "\fB\-s\fR" 4
6084 .IX Item "-s"
6085 Remove all symbol table and relocation information from the executable.
6086 .IP "\fB\-static\fR" 4
6087 .IX Item "-static"
6088 On systems that support dynamic linking, this prevents linking with the shared
6089 libraries.  On other systems, this option has no effect.
6090 .IP "\fB\-shared\fR" 4
6091 .IX Item "-shared"
6092 Produce a shared object which can then be linked with other objects to
6093 form an executable.  Not all systems support this option.  For predictable
6094 results, you must also specify the same set of options that were used to
6095 generate code (\fB\-fpic\fR, \fB\-fPIC\fR, or model suboptions)
6096 when you specify this option.[1]
6097 .IP "\fB\-shared\-libgcc\fR" 4
6098 .IX Item "-shared-libgcc"
6099 .PD 0
6100 .IP "\fB\-static\-libgcc\fR" 4
6101 .IX Item "-static-libgcc"
6102 .PD
6103 On systems that provide \fIlibgcc\fR as a shared library, these options
6104 force the use of either the shared or static version respectively.
6105 If no shared version of \fIlibgcc\fR was built when the compiler was
6106 configured, these options have no effect.
6107 .Sp
6108 There are several situations in which an application should use the
6109 shared \fIlibgcc\fR instead of the static version.  The most common
6110 of these is when the application wishes to throw and catch exceptions
6111 across different shared libraries.  In that case, each of the libraries
6112 as well as the application itself should use the shared \fIlibgcc\fR.
6113 .Sp
6114 Therefore, the G++ and \s-1GCJ\s0 drivers automatically add
6115 \&\fB\-shared\-libgcc\fR whenever you build a shared library or a main
6116 executable, because \*(C+ and Java programs typically use exceptions, so
6117 this is the right thing to do.
6118 .Sp
6119 If, instead, you use the \s-1GCC\s0 driver to create shared libraries, you may
6120 find that they will not always be linked with the shared \fIlibgcc\fR.
6121 If \s-1GCC\s0 finds, at its configuration time, that you have a non-GNU linker
6122 or a \s-1GNU\s0 linker that does not support option \fB\-\-eh\-frame\-hdr\fR,
6123 it will link the shared version of \fIlibgcc\fR into shared libraries
6124 by default.  Otherwise, it will take advantage of the linker and optimize
6125 away the linking with the shared version of \fIlibgcc\fR, linking with
6126 the static version of libgcc by default.  This allows exceptions to
6127 propagate through such shared libraries, without incurring relocation
6128 costs at library load time.
6129 .Sp
6130 However, if a library or main executable is supposed to throw or catch
6131 exceptions, you must link it using the G++ or \s-1GCJ\s0 driver, as appropriate
6132 for the languages used in the program, or using the option
6133 \&\fB\-shared\-libgcc\fR, such that it is linked with the shared
6134 \&\fIlibgcc\fR.
6135 .IP "\fB\-symbolic\fR" 4
6136 .IX Item "-symbolic"
6137 Bind references to global symbols when building a shared object.  Warn
6138 about any unresolved references (unless overridden by the link editor
6139 option \fB\-Xlinker \-z \-Xlinker defs\fR).  Only a few systems support
6140 this option.
6141 .IP "\fB\-Xlinker\fR \fIoption\fR" 4
6142 .IX Item "-Xlinker option"
6143 Pass \fIoption\fR as an option to the linker.  You can use this to
6144 supply system-specific linker options which \s-1GCC\s0 does not know how to
6145 recognize.
6146 .Sp
6147 If you want to pass an option that takes an argument, you must use
6148 \&\fB\-Xlinker\fR twice, once for the option and once for the argument.
6149 For example, to pass \fB\-assert definitions\fR, you must write
6150 \&\fB\-Xlinker \-assert \-Xlinker definitions\fR.  It does not work to write
6151 \&\fB\-Xlinker \*(L"\-assert definitions\*(R"\fR, because this passes the entire
6152 string as a single argument, which is not what the linker expects.
6153 .IP "\fB\-Wl,\fR\fIoption\fR" 4
6154 .IX Item "-Wl,option"
6155 Pass \fIoption\fR as an option to the linker.  If \fIoption\fR contains
6156 commas, it is split into multiple options at the commas.
6157 .IP "\fB\-u\fR \fIsymbol\fR" 4
6158 .IX Item "-u symbol"
6159 Pretend the symbol \fIsymbol\fR is undefined, to force linking of
6160 library modules to define it.  You can use \fB\-u\fR multiple times with
6161 different symbols to force loading of additional library modules.
6162 .Sh "Options for Directory Search"
6163 .IX Subsection "Options for Directory Search"
6164 These options specify directories to search for header files, for
6165 libraries and for parts of the compiler:
6166 .IP "\fB\-I\fR\fIdir\fR" 4
6167 .IX Item "-Idir"
6168 Add the directory \fIdir\fR to the head of the list of directories to be
6169 searched for header files.  This can be used to override a system header
6170 file, substituting your own version, since these directories are
6171 searched before the system header file directories.  However, you should
6172 not use this option to add directories that contain vendor-supplied
6173 system header files (use \fB\-isystem\fR for that).  If you use more than
6174 one \fB\-I\fR option, the directories are scanned in left-to-right
6175 order; the standard system directories come after.
6176 .Sp
6177 If a standard system include directory, or a directory specified with
6178 \&\fB\-isystem\fR, is also specified with \fB\-I\fR, the \fB\-I\fR
6179 option will be ignored.  The directory will still be searched but as a
6180 system directory at its normal position in the system include chain.
6181 This is to ensure that \s-1GCC\s0's procedure to fix buggy system headers and
6182 the ordering for the include_next directive are not inadvertently changed.
6183 If you really need to change the search order for system directories,
6184 use the \fB\-nostdinc\fR and/or \fB\-isystem\fR options.
6185 .IP "\fB\-iquote\fR\fIdir\fR" 4
6186 .IX Item "-iquotedir"
6187 Add the directory \fIdir\fR to the head of the list of directories to
6188 be searched for header files only for the case of \fB#include
6189 "\fR\fIfile\fR\fB"\fR; they are not searched for \fB#include <\fR\fIfile\fR\fB>\fR,
6190 otherwise just like \fB\-I\fR.
6191 .IP "\fB\-L\fR\fIdir\fR" 4
6192 .IX Item "-Ldir"
6193 Add directory \fIdir\fR to the list of directories to be searched
6194 for \fB\-l\fR.
6195 .IP "\fB\-B\fR\fIprefix\fR" 4
6196 .IX Item "-Bprefix"
6197 This option specifies where to find the executables, libraries,
6198 include files, and data files of the compiler itself.
6199 .Sp
6200 The compiler driver program runs one or more of the subprograms
6201 \&\fIcpp\fR, \fIcc1\fR, \fIas\fR and \fIld\fR.  It tries
6202 \&\fIprefix\fR as a prefix for each program it tries to run, both with and
6203 without \fImachine\fR\fB/\fR\fIversion\fR\fB/\fR.
6204 .Sp
6205 For each subprogram to be run, the compiler driver first tries the
6206 \&\fB\-B\fR prefix, if any.  If that name is not found, or if \fB\-B\fR
6207 was not specified, the driver tries two standard prefixes, which are
6208 \&\fI/usr/lib/gcc/\fR and \fI/usr/local/lib/gcc/\fR.  If neither of
6209 those results in a file name that is found, the unmodified program
6210 name is searched for using the directories specified in your
6211 \&\fB\s-1PATH\s0\fR environment variable.
6212 .Sp
6213 The compiler will check to see if the path provided by the \fB\-B\fR
6214 refers to a directory, and if necessary it will add a directory
6215 separator character at the end of the path.
6216 .Sp
6217 \&\fB\-B\fR prefixes that effectively specify directory names also apply
6218 to libraries in the linker, because the compiler translates these
6219 options into \fB\-L\fR options for the linker.  They also apply to
6220 includes files in the preprocessor, because the compiler translates these
6221 options into \fB\-isystem\fR options for the preprocessor.  In this case,
6222 the compiler appends \fBinclude\fR to the prefix.
6223 .Sp
6224 The run-time support file \fIlibgcc.a\fR can also be searched for using
6225 the \fB\-B\fR prefix, if needed.  If it is not found there, the two
6226 standard prefixes above are tried, and that is all.  The file is left
6227 out of the link if it is not found by those means.
6228 .Sp
6229 Another way to specify a prefix much like the \fB\-B\fR prefix is to use
6230 the environment variable \fB\s-1GCC_EXEC_PREFIX\s0\fR.  
6231 .Sp
6232 As a special kludge, if the path provided by \fB\-B\fR is
6233 \&\fI[dir/]stage\fIN\fI/\fR, where \fIN\fR is a number in the range 0 to
6234 9, then it will be replaced by \fI[dir/]include\fR.  This is to help
6235 with boot-strapping the compiler.
6236 .IP "\fB\-specs=\fR\fIfile\fR" 4
6237 .IX Item "-specs=file"
6238 Process \fIfile\fR after the compiler reads in the standard \fIspecs\fR
6239 file, in order to override the defaults that the \fIgcc\fR driver
6240 program uses when determining what switches to pass to \fIcc1\fR,
6241 \&\fIcc1plus\fR, \fIas\fR, \fIld\fR, etc.  More than one
6242 \&\fB\-specs=\fR\fIfile\fR can be specified on the command line, and they
6243 are processed in order, from left to right.
6244 .IP "\fB\-I\-\fR" 4
6245 .IX Item "-I-"
6246 This option has been deprecated.  Please use \fB\-iquote\fR instead for
6247 \&\fB\-I\fR directories before the \fB\-I\-\fR and remove the \fB\-I\-\fR.
6248 Any directories you specify with \fB\-I\fR options before the \fB\-I\-\fR
6249 option are searched only for the case of \fB#include "\fR\fIfile\fR\fB"\fR;
6250 they are not searched for \fB#include <\fR\fIfile\fR\fB>\fR.
6251 .Sp
6252 If additional directories are specified with \fB\-I\fR options after
6253 the \fB\-I\-\fR, these directories are searched for all \fB#include\fR
6254 directives.  (Ordinarily \fIall\fR \fB\-I\fR directories are used
6255 this way.)
6256 .Sp
6257 In addition, the \fB\-I\-\fR option inhibits the use of the current
6258 directory (where the current input file came from) as the first search
6259 directory for \fB#include "\fR\fIfile\fR\fB"\fR.  There is no way to
6260 override this effect of \fB\-I\-\fR.  With \fB\-I.\fR you can specify
6261 searching the directory which was current when the compiler was
6262 invoked.  That is not exactly the same as what the preprocessor does
6263 by default, but it is often satisfactory.
6264 .Sp
6265 \&\fB\-I\-\fR does not inhibit the use of the standard system directories
6266 for header files.  Thus, \fB\-I\-\fR and \fB\-nostdinc\fR are
6267 independent.
6268 .Sh "Specifying Target Machine and Compiler Version"
6269 .IX Subsection "Specifying Target Machine and Compiler Version"
6270 The usual way to run \s-1GCC\s0 is to run the executable called \fIgcc\fR, or
6271 \&\fI<machine>\-gcc\fR when cross\-compiling, or
6272 \&\fI<machine>\-gcc\-<version>\fR to run a version other than the one that
6273 was installed last.  Sometimes this is inconvenient, so \s-1GCC\s0 provides
6274 options that will switch to another cross-compiler or version.
6275 .IP "\fB\-b\fR \fImachine\fR" 4
6276 .IX Item "-b machine"
6277 The argument \fImachine\fR specifies the target machine for compilation.
6278 .Sp
6279 The value to use for \fImachine\fR is the same as was specified as the
6280 machine type when configuring \s-1GCC\s0 as a cross\-compiler.  For
6281 example, if a cross-compiler was configured with \fBconfigure
6282 i386v\fR, meaning to compile for an 80386 running System V, then you
6283 would specify \fB\-b i386v\fR to run that cross compiler.
6284 .IP "\fB\-V\fR \fIversion\fR" 4
6285 .IX Item "-V version"
6286 The argument \fIversion\fR specifies which version of \s-1GCC\s0 to run.
6287 This is useful when multiple versions are installed.  For example,
6288 \&\fIversion\fR might be \fB2.0\fR, meaning to run \s-1GCC\s0 version 2.0.
6289 .PP
6290 The \fB\-V\fR and \fB\-b\fR options work by running the
6291 \&\fI<machine>\-gcc\-<version>\fR executable, so there's no real reason to
6292 use them if you can just run that directly.
6293 .Sh "Hardware Models and Configurations"
6294 .IX Subsection "Hardware Models and Configurations"
6295 Earlier we discussed the standard option \fB\-b\fR which chooses among
6296 different installed compilers for completely different target
6297 machines, such as \s-1VAX\s0 vs. 68000 vs. 80386.
6298 .PP
6299 In addition, each of these target machine types can have its own
6300 special options, starting with \fB\-m\fR, to choose among various
6301 hardware models or configurations\-\-\-for example, 68010 vs 68020,
6302 floating coprocessor or none.  A single installed version of the
6303 compiler can compile for any model or configuration, according to the
6304 options specified.
6305 .PP
6306 Some configurations of the compiler also support additional special
6307 options, usually for compatibility with other compilers on the same
6308 platform.
6309 .PP
6310 These options are defined by the macro \f(CW\*(C`TARGET_SWITCHES\*(C'\fR in the
6311 machine description.  The default for the options is also defined by
6312 that macro, which enables you to change the defaults.
6313 .PP
6314 \fI\s-1ARC\s0 Options\fR
6315 .IX Subsection "ARC Options"
6316 .PP
6317 These options are defined for \s-1ARC\s0 implementations:
6318 .IP "\fB\-EL\fR" 4
6319 .IX Item "-EL"
6320 Compile code for little endian mode.  This is the default.
6321 .IP "\fB\-EB\fR" 4
6322 .IX Item "-EB"
6323 Compile code for big endian mode.
6324 .IP "\fB\-mmangle\-cpu\fR" 4
6325 .IX Item "-mmangle-cpu"
6326 Prepend the name of the cpu to all public symbol names.
6327 In multiple-processor systems, there are many \s-1ARC\s0 variants with different
6328 instruction and register set characteristics.  This flag prevents code
6329 compiled for one cpu to be linked with code compiled for another.
6330 No facility exists for handling variants that are ``almost identical''.
6331 This is an all or nothing option.
6332 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
6333 .IX Item "-mcpu=cpu"
6334 Compile code for \s-1ARC\s0 variant \fIcpu\fR.
6335 Which variants are supported depend on the configuration.
6336 All variants support \fB\-mcpu=base\fR, this is the default.
6337 .IP "\fB\-mtext=\fR\fItext-section\fR" 4
6338 .IX Item "-mtext=text-section"
6339 .PD 0
6340 .IP "\fB\-mdata=\fR\fIdata-section\fR" 4
6341 .IX Item "-mdata=data-section"
6342 .IP "\fB\-mrodata=\fR\fIreadonly-data-section\fR" 4
6343 .IX Item "-mrodata=readonly-data-section"
6344 .PD
6345 Put functions, data, and readonly data in \fItext-section\fR,
6346 \&\fIdata-section\fR, and \fIreadonly-data-section\fR respectively
6347 by default.  This can be overridden with the \f(CW\*(C`section\*(C'\fR attribute.
6348 .PP
6349 \fI\s-1ARM\s0 Options\fR
6350 .IX Subsection "ARM Options"
6351 .PP
6352 These \fB\-m\fR options are defined for Advanced \s-1RISC\s0 Machines (\s-1ARM\s0)
6353 architectures:
6354 .IP "\fB\-mabi=\fR\fIname\fR" 4
6355 .IX Item "-mabi=name"
6356 Generate code for the specified \s-1ABI\s0.  Permissible values are: \fBapcs-gnu\fR,
6357 \&\fBatpcs\fR, \fBaapcs\fR and \fBiwmmxt\fR.
6358 .IP "\fB\-mapcs\-frame\fR" 4
6359 .IX Item "-mapcs-frame"
6360 Generate a stack frame that is compliant with the \s-1ARM\s0 Procedure Call
6361 Standard for all functions, even if this is not strictly necessary for
6362 correct execution of the code.  Specifying \fB\-fomit\-frame\-pointer\fR
6363 with this option will cause the stack frames not to be generated for
6364 leaf functions.  The default is \fB\-mno\-apcs\-frame\fR.
6365 .IP "\fB\-mapcs\fR" 4
6366 .IX Item "-mapcs"
6367 This is a synonym for \fB\-mapcs\-frame\fR.
6368 .IP "\fB\-mthumb\-interwork\fR" 4
6369 .IX Item "-mthumb-interwork"
6370 Generate code which supports calling between the \s-1ARM\s0 and Thumb
6371 instruction sets.  Without this option the two instruction sets cannot
6372 be reliably used inside one program.  The default is
6373 \&\fB\-mno\-thumb\-interwork\fR, since slightly larger code is generated
6374 when \fB\-mthumb\-interwork\fR is specified.
6375 .IP "\fB\-mno\-sched\-prolog\fR" 4
6376 .IX Item "-mno-sched-prolog"
6377 Prevent the reordering of instructions in the function prolog, or the
6378 merging of those instruction with the instructions in the function's
6379 body.  This means that all functions will start with a recognizable set
6380 of instructions (or in fact one of a choice from a small set of
6381 different function prologues), and this information can be used to
6382 locate the start if functions inside an executable piece of code.  The
6383 default is \fB\-msched\-prolog\fR.
6384 .IP "\fB\-mhard\-float\fR" 4
6385 .IX Item "-mhard-float"
6386 Generate output containing floating point instructions.  This is the
6387 default.
6388 .IP "\fB\-msoft\-float\fR" 4
6389 .IX Item "-msoft-float"
6390 Generate output containing library calls for floating point.
6391 \&\fBWarning:\fR the requisite libraries are not available for all \s-1ARM\s0
6392 targets.  Normally the facilities of the machine's usual C compiler are
6393 used, but this cannot be done directly in cross\-compilation.  You must make
6394 your own arrangements to provide suitable library functions for
6395 cross\-compilation.
6396 .Sp
6397 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
6398 therefore, it is only useful if you compile \fIall\fR of a program with
6399 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
6400 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
6401 this to work.
6402 .IP "\fB\-mfloat\-abi=\fR\fIname\fR" 4
6403 .IX Item "-mfloat-abi=name"
6404 Specifies which \s-1ABI\s0 to use for floating point values.  Permissible values
6405 are: \fBsoft\fR, \fBsoftfp\fR and \fBhard\fR.
6406 .Sp
6407 \&\fBsoft\fR and \fBhard\fR are equivalent to \fB\-msoft\-float\fR
6408 and \fB\-mhard\-float\fR respectively.  \fBsoftfp\fR allows the generation
6409 of floating point instructions, but still uses the soft-float calling
6410 conventions.
6411 .IP "\fB\-mlittle\-endian\fR" 4
6412 .IX Item "-mlittle-endian"
6413 Generate code for a processor running in little-endian mode.  This is
6414 the default for all standard configurations.
6415 .IP "\fB\-mbig\-endian\fR" 4
6416 .IX Item "-mbig-endian"
6417 Generate code for a processor running in big-endian mode; the default is
6418 to compile code for a little-endian processor.
6419 .IP "\fB\-mwords\-little\-endian\fR" 4
6420 .IX Item "-mwords-little-endian"
6421 This option only applies when generating code for big-endian processors.
6422 Generate code for a little-endian word order but a big-endian byte
6423 order.  That is, a byte order of the form \fB32107654\fR.  Note: this
6424 option should only be used if you require compatibility with code for
6425 big-endian \s-1ARM\s0 processors generated by versions of the compiler prior to
6426 2.8.
6427 .IP "\fB\-mcpu=\fR\fIname\fR" 4
6428 .IX Item "-mcpu=name"
6429 This specifies the name of the target \s-1ARM\s0 processor.  \s-1GCC\s0 uses this name
6430 to determine what kind of instructions it can emit when generating
6431 assembly code.  Permissible names are: \fBarm2\fR, \fBarm250\fR,
6432 \&\fBarm3\fR, \fBarm6\fR, \fBarm60\fR, \fBarm600\fR, \fBarm610\fR,
6433 \&\fBarm620\fR, \fBarm7\fR, \fBarm7m\fR, \fBarm7d\fR, \fBarm7dm\fR,
6434 \&\fBarm7di\fR, \fBarm7dmi\fR, \fBarm70\fR, \fBarm700\fR,
6435 \&\fBarm700i\fR, \fBarm710\fR, \fBarm710c\fR, \fBarm7100\fR,
6436 \&\fBarm7500\fR, \fBarm7500fe\fR, \fBarm7tdmi\fR, \fBarm7tdmi\-s\fR,
6437 \&\fBarm8\fR, \fBstrongarm\fR, \fBstrongarm110\fR, \fBstrongarm1100\fR,
6438 \&\fBarm8\fR, \fBarm810\fR, \fBarm9\fR, \fBarm9e\fR, \fBarm920\fR,
6439 \&\fBarm920t\fR, \fBarm922t\fR, \fBarm946e\-s\fR, \fBarm966e\-s\fR,
6440 \&\fBarm968e\-s\fR, \fBarm926ej\-s\fR, \fBarm940t\fR, \fBarm9tdmi\fR,
6441 \&\fBarm10tdmi\fR, \fBarm1020t\fR, \fBarm1026ej\-s\fR,
6442 \&\fBarm10e\fR, \fBarm1020e\fR, \fBarm1022e\fR,
6443 \&\fBarm1136j\-s\fR, \fBarm1136jf\-s\fR, \fBmpcore\fR, \fBmpcorenovfp\fR,
6444 \&\fBarm1176jz\-s\fR, \fBarm1176jzf\-s\fR, \fBxscale\fR, \fBiwmmxt\fR,
6445 \&\fBep9312\fR.
6446 .IP "\fB\-mtune=\fR\fIname\fR" 4
6447 .IX Item "-mtune=name"
6448 This option is very similar to the \fB\-mcpu=\fR option, except that
6449 instead of specifying the actual target processor type, and hence
6450 restricting which instructions can be used, it specifies that \s-1GCC\s0 should
6451 tune the performance of the code as if the target were of the type
6452 specified in this option, but still choosing the instructions that it
6453 will generate based on the cpu specified by a \fB\-mcpu=\fR option.
6454 For some \s-1ARM\s0 implementations better performance can be obtained by using
6455 this option.
6456 .IP "\fB\-march=\fR\fIname\fR" 4
6457 .IX Item "-march=name"
6458 This specifies the name of the target \s-1ARM\s0 architecture.  \s-1GCC\s0 uses this
6459 name to determine what kind of instructions it can emit when generating
6460 assembly code.  This option can be used in conjunction with or instead
6461 of the \fB\-mcpu=\fR option.  Permissible names are: \fBarmv2\fR,
6462 \&\fBarmv2a\fR, \fBarmv3\fR, \fBarmv3m\fR, \fBarmv4\fR, \fBarmv4t\fR,
6463 \&\fBarmv5\fR, \fBarmv5t\fR, \fBarmv5te\fR, \fBarmv6\fR, \fBarmv6j\fR,
6464 \&\fBiwmmxt\fR, \fBep9312\fR.
6465 .IP "\fB\-mfpu=\fR\fIname\fR" 4
6466 .IX Item "-mfpu=name"
6467 .PD 0
6468 .IP "\fB\-mfpe=\fR\fInumber\fR" 4
6469 .IX Item "-mfpe=number"
6470 .IP "\fB\-mfp=\fR\fInumber\fR" 4
6471 .IX Item "-mfp=number"
6472 .PD
6473 This specifies what floating point hardware (or hardware emulation) is
6474 available on the target.  Permissible names are: \fBfpa\fR, \fBfpe2\fR,
6475 \&\fBfpe3\fR, \fBmaverick\fR, \fBvfp\fR.  \fB\-mfp\fR and \fB\-mfpe\fR
6476 are synonyms for \fB\-mfpu\fR=\fBfpe\fR\fInumber\fR, for compatibility
6477 with older versions of \s-1GCC\s0.
6478 .Sp
6479 If \fB\-msoft\-float\fR is specified this specifies the format of
6480 floating point values.
6481 .IP "\fB\-mstructure\-size\-boundary=\fR\fIn\fR" 4
6482 .IX Item "-mstructure-size-boundary=n"
6483 The size of all structures and unions will be rounded up to a multiple
6484 of the number of bits set by this option.  Permissible values are 8, 32
6485 and 64.  The default value varies for different toolchains.  For the \s-1COFF\s0
6486 targeted toolchain the default value is 8.  A value of 64 is only allowed
6487 if the underlying \s-1ABI\s0 supports it.
6488 .Sp
6489 Specifying the larger number can produce faster, more efficient code, but
6490 can also increase the size of the program.  Different values are potentially
6491 incompatible.  Code compiled with one value cannot necessarily expect to
6492 work with code or libraries compiled with another value, if they exchange
6493 information using structures or unions.
6494 .IP "\fB\-mabort\-on\-noreturn\fR" 4
6495 .IX Item "-mabort-on-noreturn"
6496 Generate a call to the function \f(CW\*(C`abort\*(C'\fR at the end of a
6497 \&\f(CW\*(C`noreturn\*(C'\fR function.  It will be executed if the function tries to
6498 return.
6499 .IP "\fB\-mlong\-calls\fR" 4
6500 .IX Item "-mlong-calls"
6501 .PD 0
6502 .IP "\fB\-mno\-long\-calls\fR" 4
6503 .IX Item "-mno-long-calls"
6504 .PD
6505 Tells the compiler to perform function calls by first loading the
6506 address of the function into a register and then performing a subroutine
6507 call on this register.  This switch is needed if the target function
6508 will lie outside of the 64 megabyte addressing range of the offset based
6509 version of subroutine call instruction.
6510 .Sp
6511 Even if this switch is enabled, not all function calls will be turned
6512 into long calls.  The heuristic is that static functions, functions
6513 which have the \fBshort-call\fR attribute, functions that are inside
6514 the scope of a \fB#pragma no_long_calls\fR directive and functions whose
6515 definitions have already been compiled within the current compilation
6516 unit, will not be turned into long calls.  The exception to this rule is
6517 that weak function definitions, functions with the \fBlong-call\fR
6518 attribute or the \fBsection\fR attribute, and functions that are within
6519 the scope of a \fB#pragma long_calls\fR directive, will always be
6520 turned into long calls.
6521 .Sp
6522 This feature is not enabled by default.  Specifying
6523 \&\fB\-mno\-long\-calls\fR will restore the default behavior, as will
6524 placing the function calls within the scope of a \fB#pragma
6525 long_calls_off\fR directive.  Note these switches have no effect on how
6526 the compiler generates code to handle function calls via function
6527 pointers.
6528 .IP "\fB\-mnop\-fun\-dllimport\fR" 4
6529 .IX Item "-mnop-fun-dllimport"
6530 Disable support for the \f(CW\*(C`dllimport\*(C'\fR attribute.
6531 .IP "\fB\-msingle\-pic\-base\fR" 4
6532 .IX Item "-msingle-pic-base"
6533 Treat the register used for \s-1PIC\s0 addressing as read\-only, rather than
6534 loading it in the prologue for each function.  The run-time system is
6535 responsible for initializing this register with an appropriate value
6536 before execution begins.
6537 .IP "\fB\-mpic\-register=\fR\fIreg\fR" 4
6538 .IX Item "-mpic-register=reg"
6539 Specify the register to be used for \s-1PIC\s0 addressing.  The default is R10
6540 unless stack-checking is enabled, when R9 is used.
6541 .IP "\fB\-mcirrus\-fix\-invalid\-insns\fR" 4
6542 .IX Item "-mcirrus-fix-invalid-insns"
6543 Insert NOPs into the instruction stream to in order to work around
6544 problems with invalid Maverick instruction combinations.  This option
6545 is only valid if the \fB\-mcpu=ep9312\fR option has been used to
6546 enable generation of instructions for the Cirrus Maverick floating
6547 point co\-processor.  This option is not enabled by default, since the
6548 problem is only present in older Maverick implementations.  The default
6549 can be re-enabled by use of the \fB\-mno\-cirrus\-fix\-invalid\-insns\fR
6550 switch.
6551 .IP "\fB\-mpoke\-function\-name\fR" 4
6552 .IX Item "-mpoke-function-name"
6553 Write the name of each function into the text section, directly
6554 preceding the function prologue.  The generated code is similar to this:
6555 .Sp
6556 .Vb 9
6557 \&             t0
6558 \&                 .ascii "arm_poke_function_name", 0
6559 \&                 .align
6560 \&             t1
6561 \&                 .word 0xff000000 + (t1 - t0)
6562 \&             arm_poke_function_name
6563 \&                 mov     ip, sp
6564 \&                 stmfd   sp!, {fp, ip, lr, pc}
6565 \&                 sub     fp, ip, #4
6566 .Ve
6567 .Sp
6568 When performing a stack backtrace, code can inspect the value of
6569 \&\f(CW\*(C`pc\*(C'\fR stored at \f(CW\*(C`fp + 0\*(C'\fR.  If the trace function then looks at
6570 location \f(CW\*(C`pc \- 12\*(C'\fR and the top 8 bits are set, then we know that
6571 there is a function name embedded immediately preceding this location
6572 and has length \f(CW\*(C`((pc[\-3]) & 0xff000000)\*(C'\fR.
6573 .IP "\fB\-mthumb\fR" 4
6574 .IX Item "-mthumb"
6575 Generate code for the 16\-bit Thumb instruction set.  The default is to
6576 use the 32\-bit \s-1ARM\s0 instruction set.
6577 .IP "\fB\-mtpcs\-frame\fR" 4
6578 .IX Item "-mtpcs-frame"
6579 Generate a stack frame that is compliant with the Thumb Procedure Call
6580 Standard for all non-leaf functions.  (A leaf function is one that does
6581 not call any other functions.)  The default is \fB\-mno\-tpcs\-frame\fR.
6582 .IP "\fB\-mtpcs\-leaf\-frame\fR" 4
6583 .IX Item "-mtpcs-leaf-frame"
6584 Generate a stack frame that is compliant with the Thumb Procedure Call
6585 Standard for all leaf functions.  (A leaf function is one that does
6586 not call any other functions.)  The default is \fB\-mno\-apcs\-leaf\-frame\fR.
6587 .IP "\fB\-mcallee\-super\-interworking\fR" 4
6588 .IX Item "-mcallee-super-interworking"
6589 Gives all externally visible functions in the file being compiled an \s-1ARM\s0
6590 instruction set header which switches to Thumb mode before executing the
6591 rest of the function.  This allows these functions to be called from
6592 non-interworking code.
6593 .IP "\fB\-mcaller\-super\-interworking\fR" 4
6594 .IX Item "-mcaller-super-interworking"
6595 Allows calls via function pointers (including virtual functions) to
6596 execute correctly regardless of whether the target code has been
6597 compiled for interworking or not.  There is a small overhead in the cost
6598 of executing a function pointer if this option is enabled.
6599 .PP
6600 \fI\s-1AVR\s0 Options\fR
6601 .IX Subsection "AVR Options"
6602 .PP
6603 These options are defined for \s-1AVR\s0 implementations:
6604 .IP "\fB\-mmcu=\fR\fImcu\fR" 4
6605 .IX Item "-mmcu=mcu"
6606 Specify \s-1ATMEL\s0 \s-1AVR\s0 instruction set or \s-1MCU\s0 type.
6607 .Sp
6608 Instruction set avr1 is for the minimal \s-1AVR\s0 core, not supported by the C
6609 compiler, only for assembler programs (\s-1MCU\s0 types: at90s1200, attiny10,
6610 attiny11, attiny12, attiny15, attiny28).
6611 .Sp
6612 Instruction set avr2 (default) is for the classic \s-1AVR\s0 core with up to
6613 8K program memory space (\s-1MCU\s0 types: at90s2313, at90s2323, attiny22,
6614 at90s2333, at90s2343, at90s4414, at90s4433, at90s4434, at90s8515,
6615 at90c8534, at90s8535).
6616 .Sp
6617 Instruction set avr3 is for the classic \s-1AVR\s0 core with up to 128K program
6618 memory space (\s-1MCU\s0 types: atmega103, atmega603, at43usb320, at76c711).
6619 .Sp
6620 Instruction set avr4 is for the enhanced \s-1AVR\s0 core with up to 8K program
6621 memory space (\s-1MCU\s0 types: atmega8, atmega83, atmega85).
6622 .Sp
6623 Instruction set avr5 is for the enhanced \s-1AVR\s0 core with up to 128K program
6624 memory space (\s-1MCU\s0 types: atmega16, atmega161, atmega163, atmega32, atmega323,
6625 atmega64, atmega128, at43usb355, at94k).
6626 .IP "\fB\-msize\fR" 4
6627 .IX Item "-msize"
6628 Output instruction sizes to the asm file.
6629 .IP "\fB\-minit\-stack=\fR\fIN\fR" 4
6630 .IX Item "-minit-stack=N"
6631 Specify the initial stack address, which may be a symbol or numeric value,
6632 \&\fB_\|_stack\fR is the default.
6633 .IP "\fB\-mno\-interrupts\fR" 4
6634 .IX Item "-mno-interrupts"
6635 Generated code is not compatible with hardware interrupts.
6636 Code size will be smaller.
6637 .IP "\fB\-mcall\-prologues\fR" 4
6638 .IX Item "-mcall-prologues"
6639 Functions prologues/epilogues expanded as call to appropriate
6640 subroutines.  Code size will be smaller.
6641 .IP "\fB\-mno\-tablejump\fR" 4
6642 .IX Item "-mno-tablejump"
6643 Do not generate tablejump insns which sometimes increase code size.
6644 .IP "\fB\-mtiny\-stack\fR" 4
6645 .IX Item "-mtiny-stack"
6646 Change only the low 8 bits of the stack pointer.
6647 .IP "\fB\-mint8\fR" 4
6648 .IX Item "-mint8"
6649 Assume int to be 8 bit integer.  This affects the sizes of all types: A
6650 char will be 1 byte, an int will be 1 byte, an long will be 2 bytes
6651 and long long will be 4 bytes.  Please note that this option does not
6652 comply to the C standards, but it will provide you with smaller code
6653 size.
6654 .PP
6655 \fI\s-1CRIS\s0 Options\fR
6656 .IX Subsection "CRIS Options"
6657 .PP
6658 These options are defined specifically for the \s-1CRIS\s0 ports.
6659 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
6660 .IX Item "-march=architecture-type"
6661 .PD 0
6662 .IP "\fB\-mcpu=\fR\fIarchitecture-type\fR" 4
6663 .IX Item "-mcpu=architecture-type"
6664 .PD
6665 Generate code for the specified architecture.  The choices for
6666 \&\fIarchitecture-type\fR are \fBv3\fR, \fBv8\fR and \fBv10\fR for
6667 respectively \s-1ETRAX\s0\ 4, \s-1ETRAX\s0\ 100, and \s-1ETRAX\s0\ 100\ \s-1LX\s0.
6668 Default is \fBv0\fR except for cris\-axis\-linux\-gnu, where the default is
6669 \&\fBv10\fR.
6670 .IP "\fB\-mtune=\fR\fIarchitecture-type\fR" 4
6671 .IX Item "-mtune=architecture-type"
6672 Tune to \fIarchitecture-type\fR everything applicable about the generated
6673 code, except for the \s-1ABI\s0 and the set of available instructions.  The
6674 choices for \fIarchitecture-type\fR are the same as for
6675 \&\fB\-march=\fR\fIarchitecture-type\fR.
6676 .IP "\fB\-mmax\-stack\-frame=\fR\fIn\fR" 4
6677 .IX Item "-mmax-stack-frame=n"
6678 Warn when the stack frame of a function exceeds \fIn\fR bytes.
6679 .IP "\fB\-melinux\-stacksize=\fR\fIn\fR" 4
6680 .IX Item "-melinux-stacksize=n"
6681 Only available with the \fBcris-axis-aout\fR target.  Arranges for
6682 indications in the program to the kernel loader that the stack of the
6683 program should be set to \fIn\fR bytes.
6684 .IP "\fB\-metrax4\fR" 4
6685 .IX Item "-metrax4"
6686 .PD 0
6687 .IP "\fB\-metrax100\fR" 4
6688 .IX Item "-metrax100"
6689 .PD
6690 The options \fB\-metrax4\fR and \fB\-metrax100\fR are synonyms for
6691 \&\fB\-march=v3\fR and \fB\-march=v8\fR respectively.
6692 .IP "\fB\-mmul\-bug\-workaround\fR" 4
6693 .IX Item "-mmul-bug-workaround"
6694 .PD 0
6695 .IP "\fB\-mno\-mul\-bug\-workaround\fR" 4
6696 .IX Item "-mno-mul-bug-workaround"
6697 .PD
6698 Work around a bug in the \f(CW\*(C`muls\*(C'\fR and \f(CW\*(C`mulu\*(C'\fR instructions for \s-1CPU\s0
6699 models where it applies.  This option is active by default.
6700 .IP "\fB\-mpdebug\fR" 4
6701 .IX Item "-mpdebug"
6702 Enable CRIS-specific verbose debug-related information in the assembly
6703 code.  This option also has the effect to turn off the \fB#NO_APP\fR
6704 formatted-code indicator to the assembler at the beginning of the
6705 assembly file.
6706 .IP "\fB\-mcc\-init\fR" 4
6707 .IX Item "-mcc-init"
6708 Do not use condition-code results from previous instruction; always emit
6709 compare and test instructions before use of condition codes.
6710 .IP "\fB\-mno\-side\-effects\fR" 4
6711 .IX Item "-mno-side-effects"
6712 Do not emit instructions with side-effects in addressing modes other than
6713 post\-increment.
6714 .IP "\fB\-mstack\-align\fR" 4
6715 .IX Item "-mstack-align"
6716 .PD 0
6717 .IP "\fB\-mno\-stack\-align\fR" 4
6718 .IX Item "-mno-stack-align"
6719 .IP "\fB\-mdata\-align\fR" 4
6720 .IX Item "-mdata-align"
6721 .IP "\fB\-mno\-data\-align\fR" 4
6722 .IX Item "-mno-data-align"
6723 .IP "\fB\-mconst\-align\fR" 4
6724 .IX Item "-mconst-align"
6725 .IP "\fB\-mno\-const\-align\fR" 4
6726 .IX Item "-mno-const-align"
6727 .PD
6728 These options (no\-options) arranges (eliminate arrangements) for the
6729 stack\-frame, individual data and constants to be aligned for the maximum
6730 single data access size for the chosen \s-1CPU\s0 model.  The default is to
6731 arrange for 32\-bit alignment.  \s-1ABI\s0 details such as structure layout are
6732 not affected by these options.
6733 .IP "\fB\-m32\-bit\fR" 4
6734 .IX Item "-m32-bit"
6735 .PD 0
6736 .IP "\fB\-m16\-bit\fR" 4
6737 .IX Item "-m16-bit"
6738 .IP "\fB\-m8\-bit\fR" 4
6739 .IX Item "-m8-bit"
6740 .PD
6741 Similar to the stack\- data\- and const-align options above, these options
6742 arrange for stack\-frame, writable data and constants to all be 32\-bit,
6743 16\-bit or 8\-bit aligned.  The default is 32\-bit alignment.
6744 .IP "\fB\-mno\-prologue\-epilogue\fR" 4
6745 .IX Item "-mno-prologue-epilogue"
6746 .PD 0
6747 .IP "\fB\-mprologue\-epilogue\fR" 4
6748 .IX Item "-mprologue-epilogue"
6749 .PD
6750 With \fB\-mno\-prologue\-epilogue\fR, the normal function prologue and
6751 epilogue that sets up the stack-frame are omitted and no return
6752 instructions or return sequences are generated in the code.  Use this
6753 option only together with visual inspection of the compiled code: no
6754 warnings or errors are generated when call-saved registers must be saved,
6755 or storage for local variable needs to be allocated.
6756 .IP "\fB\-mno\-gotplt\fR" 4
6757 .IX Item "-mno-gotplt"
6758 .PD 0
6759 .IP "\fB\-mgotplt\fR" 4
6760 .IX Item "-mgotplt"
6761 .PD
6762 With \fB\-fpic\fR and \fB\-fPIC\fR, don't generate (do generate)
6763 instruction sequences that load addresses for functions from the \s-1PLT\s0 part
6764 of the \s-1GOT\s0 rather than (traditional on other architectures) calls to the
6765 \&\s-1PLT\s0.  The default is \fB\-mgotplt\fR.
6766 .IP "\fB\-maout\fR" 4
6767 .IX Item "-maout"
6768 Legacy no-op option only recognized with the cris-axis-aout target.
6769 .IP "\fB\-melf\fR" 4
6770 .IX Item "-melf"
6771 Legacy no-op option only recognized with the cris-axis-elf and
6772 cris-axis-linux-gnu targets.
6773 .IP "\fB\-melinux\fR" 4
6774 .IX Item "-melinux"
6775 Only recognized with the cris-axis-aout target, where it selects a
6776 GNU/linux\-like multilib, include files and instruction set for
6777 \&\fB\-march=v8\fR.
6778 .IP "\fB\-mlinux\fR" 4
6779 .IX Item "-mlinux"
6780 Legacy no-op option only recognized with the cris-axis-linux-gnu target.
6781 .IP "\fB\-sim\fR" 4
6782 .IX Item "-sim"
6783 This option, recognized for the cris-axis-aout and cris-axis-elf arranges
6784 to link with input-output functions from a simulator library.  Code,
6785 initialized data and zero-initialized data are allocated consecutively.
6786 .IP "\fB\-sim2\fR" 4
6787 .IX Item "-sim2"
6788 Like \fB\-sim\fR, but pass linker options to locate initialized data at
6789 0x40000000 and zero-initialized data at 0x80000000.
6790 .PP
6791 \fIDarwin Options\fR
6792 .IX Subsection "Darwin Options"
6793 .PP
6794 These options are defined for all architectures running the Darwin operating
6795 system.
6796 .PP
6797 \&\s-1FSF\s0 \s-1GCC\s0 on Darwin does not create ``fat'' object files; it will create
6798 an object file for the single architecture that it was built to
6799 target.  Apple's \s-1GCC\s0 on Darwin does create ``fat'' files if multiple
6800 \&\fB\-arch\fR options are used; it does so by running the compiler or
6801 linker multiple times and joining the results together with
6802 \&\fIlipo\fR.
6803 .PP
6804 The subtype of the file created (like \fBppc7400\fR or \fBppc970\fR or
6805 \&\fBi686\fR) is determined by the flags that specify the \s-1ISA\s0
6806 that \s-1GCC\s0 is targetting, like \fB\-mcpu\fR or \fB\-march\fR.  The
6807 \&\fB\-force_cpusubtype_ALL\fR option can be used to override this.
6808 .PP
6809 The Darwin tools vary in their behavior when presented with an \s-1ISA\s0
6810 mismatch.  The assembler, \fIas\fR, will only permit instructions to
6811 be used that are valid for the subtype of the file it is generating,
6812 so you cannot put 64\-bit instructions in an \fBppc750\fR object file.
6813 The linker for shared libraries, \fI/usr/bin/libtool\fR, will fail
6814 and print an error if asked to create a shared library with a less
6815 restrictive subtype than its input files (for instance, trying to put
6816 a \fBppc970\fR object file in a \fBppc7400\fR library).  The linker
6817 for executables, \fIld\fR, will quietly give the executable the most
6818 restrictive subtype of any of its input files.
6819 .IP "\fB\-F\fR\fIdir\fR" 4
6820 .IX Item "-Fdir"
6821 Add the framework directory \fIdir\fR to the head of the list of
6822 directories to be searched for header files.  These directories are
6823 interleaved with those specified by \fB\-I\fR options and are
6824 scanned in a left-to-right order.
6825 .Sp
6826 A framework directory is a directory with frameworks in it.  A
6827 framework is a directory with a \fB\*(L"Headers\*(R"\fR and/or
6828 \&\fB\*(L"PrivateHeaders\*(R"\fR directory contained directly in it that ends
6829 in \fB\*(L".framework\*(R"\fR.  The name of a framework is the name of this
6830 directory excluding the \fB\*(L".framework\*(R"\fR.  Headers associated with
6831 the framework are found in one of those two directories, with
6832 \&\fB\*(L"Headers\*(R"\fR being searched first.  A subframework is a framework
6833 directory that is in a framework's \fB\*(L"Frameworks\*(R"\fR directory.
6834 Includes of subframework headers can only appear in a header of a
6835 framework that contains the subframework, or in a sibling subframework
6836 header.  Two subframeworks are siblings if they occur in the same
6837 framework.  A subframework should not have the same name as a
6838 framework, a warning will be issued if this is violated.  Currently a
6839 subframework cannot have subframeworks, in the future, the mechanism
6840 may be extended to support this.  The standard frameworks can be found
6841 in \fB\*(L"/System/Library/Frameworks\*(R"\fR and
6842 \&\fB\*(L"/Library/Frameworks\*(R"\fR.  An example include looks like
6843 \&\f(CW\*(C`#include <Framework/header.h>\*(C'\fR, where \fBFramework\fR denotes
6844 the name of the framework and header.h is found in the
6845 \&\fB\*(L"PrivateHeaders\*(R"\fR or \fB\*(L"Headers\*(R"\fR directory.
6846 .IP "\fB\-gused\fR" 4
6847 .IX Item "-gused"
6848 Emit debugging information for symbols that are used.  For \s-1STABS\s0
6849 debugging format, this enables \fB\-feliminate\-unused\-debug\-symbols\fR.
6850 This is by default \s-1ON\s0.
6851 .IP "\fB\-gfull\fR" 4
6852 .IX Item "-gfull"
6853 Emit debugging information for all symbols and types.
6854 .IP "\fB\-mone\-byte\-bool\fR" 4
6855 .IX Item "-mone-byte-bool"
6856 Override the defaults for \fBbool\fR so that \fBsizeof(bool)==1\fR.
6857 By default \fBsizeof(bool)\fR is \fB4\fR when compiling for
6858 Darwin/PowerPC and \fB1\fR when compiling for Darwin/x86, so this
6859 option has no effect on x86.
6860 .Sp
6861 \&\fBWarning:\fR The \fB\-mone\-byte\-bool\fR switch causes \s-1GCC\s0
6862 to generate code that is not binary compatible with code generated
6863 without that switch.  Using this switch may require recompiling all
6864 other modules in a program, including system libraries.  Use this
6865 switch to conform to a non-default data model.
6866 .IP "\fB\-mfix\-and\-continue\fR" 4
6867 .IX Item "-mfix-and-continue"
6868 .PD 0
6869 .IP "\fB\-ffix\-and\-continue\fR" 4
6870 .IX Item "-ffix-and-continue"
6871 .IP "\fB\-findirect\-data\fR" 4
6872 .IX Item "-findirect-data"
6873 .PD
6874 Generate code suitable for fast turn around development.  Needed to
6875 enable gdb to dynamically load \f(CW\*(C`.o\*(C'\fR files into already running
6876 programs.  \fB\-findirect\-data\fR and \fB\-ffix\-and\-continue\fR
6877 are provided for backwards compatibility.
6878 .IP "\fB\-all_load\fR" 4
6879 .IX Item "-all_load"
6880 Loads all members of static archive libraries.
6881 See man \fIld\fR\|(1) for more information.
6882 .IP "\fB\-arch_errors_fatal\fR" 4
6883 .IX Item "-arch_errors_fatal"
6884 Cause the errors having to do with files that have the wrong architecture
6885 to be fatal.
6886 .IP "\fB\-bind_at_load\fR" 4
6887 .IX Item "-bind_at_load"
6888 Causes the output file to be marked such that the dynamic linker will
6889 bind all undefined references when the file is loaded or launched.
6890 .IP "\fB\-bundle\fR" 4
6891 .IX Item "-bundle"
6892 Produce a Mach-o bundle format file.
6893 See man \fIld\fR\|(1) for more information.
6894 .IP "\fB\-bundle_loader\fR \fIexecutable\fR" 4
6895 .IX Item "-bundle_loader executable"
6896 This option specifies the \fIexecutable\fR that will be loading the build
6897 output file being linked.  See man \fIld\fR\|(1) for more information.
6898 .IP "\fB\-dynamiclib\fR" 4
6899 .IX Item "-dynamiclib"
6900 When passed this option, \s-1GCC\s0 will produce a dynamic library instead of
6901 an executable when linking, using the Darwin \fIlibtool\fR command.
6902 .IP "\fB\-force_cpusubtype_ALL\fR" 4
6903 .IX Item "-force_cpusubtype_ALL"
6904 This causes \s-1GCC\s0's output file to have the \fI\s-1ALL\s0\fR subtype, instead of
6905 one controlled by the \fB\-mcpu\fR or \fB\-march\fR option.
6906 .IP "\fB\-allowable_client\fR  \fIclient_name\fR" 4
6907 .IX Item "-allowable_client  client_name"
6908 .PD 0
6909 .IP "\fB\-client_name\fR" 4
6910 .IX Item "-client_name"
6911 .IP "\fB\-compatibility_version\fR" 4
6912 .IX Item "-compatibility_version"
6913 .IP "\fB\-current_version\fR" 4
6914 .IX Item "-current_version"
6915 .IP "\fB\-dead_strip\fR" 4
6916 .IX Item "-dead_strip"
6917 .IP "\fB\-dependency\-file\fR" 4
6918 .IX Item "-dependency-file"
6919 .IP "\fB\-dylib_file\fR" 4
6920 .IX Item "-dylib_file"
6921 .IP "\fB\-dylinker_install_name\fR" 4
6922 .IX Item "-dylinker_install_name"
6923 .IP "\fB\-dynamic\fR" 4
6924 .IX Item "-dynamic"
6925 .IP "\fB\-exported_symbols_list\fR" 4
6926 .IX Item "-exported_symbols_list"
6927 .IP "\fB\-filelist\fR" 4
6928 .IX Item "-filelist"
6929 .IP "\fB\-flat_namespace\fR" 4
6930 .IX Item "-flat_namespace"
6931 .IP "\fB\-force_flat_namespace\fR" 4
6932 .IX Item "-force_flat_namespace"
6933 .IP "\fB\-headerpad_max_install_names\fR" 4
6934 .IX Item "-headerpad_max_install_names"
6935 .IP "\fB\-image_base\fR" 4
6936 .IX Item "-image_base"
6937 .IP "\fB\-init\fR" 4
6938 .IX Item "-init"
6939 .IP "\fB\-install_name\fR" 4
6940 .IX Item "-install_name"
6941 .IP "\fB\-keep_private_externs\fR" 4
6942 .IX Item "-keep_private_externs"
6943 .IP "\fB\-multi_module\fR" 4
6944 .IX Item "-multi_module"
6945 .IP "\fB\-multiply_defined\fR" 4
6946 .IX Item "-multiply_defined"
6947 .IP "\fB\-multiply_defined_unused\fR" 4
6948 .IX Item "-multiply_defined_unused"
6949 .IP "\fB\-noall_load\fR" 4
6950 .IX Item "-noall_load"
6951 .IP "\fB\-no_dead_strip_inits_and_terms\fR" 4
6952 .IX Item "-no_dead_strip_inits_and_terms"
6953 .IP "\fB\-nofixprebinding\fR" 4
6954 .IX Item "-nofixprebinding"
6955 .IP "\fB\-nomultidefs\fR" 4
6956 .IX Item "-nomultidefs"
6957 .IP "\fB\-noprebind\fR" 4
6958 .IX Item "-noprebind"
6959 .IP "\fB\-noseglinkedit\fR" 4
6960 .IX Item "-noseglinkedit"
6961 .IP "\fB\-pagezero_size\fR" 4
6962 .IX Item "-pagezero_size"
6963 .IP "\fB\-prebind\fR" 4
6964 .IX Item "-prebind"
6965 .IP "\fB\-prebind_all_twolevel_modules\fR" 4
6966 .IX Item "-prebind_all_twolevel_modules"
6967 .IP "\fB\-private_bundle\fR" 4
6968 .IX Item "-private_bundle"
6969 .IP "\fB\-read_only_relocs\fR" 4
6970 .IX Item "-read_only_relocs"
6971 .IP "\fB\-sectalign\fR" 4
6972 .IX Item "-sectalign"
6973 .IP "\fB\-sectobjectsymbols\fR" 4
6974 .IX Item "-sectobjectsymbols"
6975 .IP "\fB\-whyload\fR" 4
6976 .IX Item "-whyload"
6977 .IP "\fB\-seg1addr\fR" 4
6978 .IX Item "-seg1addr"
6979 .IP "\fB\-sectcreate\fR" 4
6980 .IX Item "-sectcreate"
6981 .IP "\fB\-sectobjectsymbols\fR" 4
6982 .IX Item "-sectobjectsymbols"
6983 .IP "\fB\-sectorder\fR" 4
6984 .IX Item "-sectorder"
6985 .IP "\fB\-segaddr\fR" 4
6986 .IX Item "-segaddr"
6987 .IP "\fB\-segs_read_only_addr\fR" 4
6988 .IX Item "-segs_read_only_addr"
6989 .IP "\fB\-segs_read_write_addr\fR" 4
6990 .IX Item "-segs_read_write_addr"
6991 .IP "\fB\-seg_addr_table\fR" 4
6992 .IX Item "-seg_addr_table"
6993 .IP "\fB\-seg_addr_table_filename\fR" 4
6994 .IX Item "-seg_addr_table_filename"
6995 .IP "\fB\-seglinkedit\fR" 4
6996 .IX Item "-seglinkedit"
6997 .IP "\fB\-segprot\fR" 4
6998 .IX Item "-segprot"
6999 .IP "\fB\-segs_read_only_addr\fR" 4
7000 .IX Item "-segs_read_only_addr"
7001 .IP "\fB\-segs_read_write_addr\fR" 4
7002 .IX Item "-segs_read_write_addr"
7003 .IP "\fB\-single_module\fR" 4
7004 .IX Item "-single_module"
7005 .IP "\fB\-static\fR" 4
7006 .IX Item "-static"
7007 .IP "\fB\-sub_library\fR" 4
7008 .IX Item "-sub_library"
7009 .IP "\fB\-sub_umbrella\fR" 4
7010 .IX Item "-sub_umbrella"
7011 .IP "\fB\-twolevel_namespace\fR" 4
7012 .IX Item "-twolevel_namespace"
7013 .IP "\fB\-umbrella\fR" 4
7014 .IX Item "-umbrella"
7015 .IP "\fB\-undefined\fR" 4
7016 .IX Item "-undefined"
7017 .IP "\fB\-unexported_symbols_list\fR" 4
7018 .IX Item "-unexported_symbols_list"
7019 .IP "\fB\-weak_reference_mismatches\fR" 4
7020 .IX Item "-weak_reference_mismatches"
7021 .IP "\fB\-whatsloaded\fR" 4
7022 .IX Item "-whatsloaded"
7023 .PD
7024 These options are passed to the Darwin linker.  The Darwin linker man page
7025 describes them in detail.
7026 .PP
7027 \fI\s-1DEC\s0 Alpha Options\fR
7028 .IX Subsection "DEC Alpha Options"
7029 .PP
7030 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha implementations:
7031 .IP "\fB\-mno\-soft\-float\fR" 4
7032 .IX Item "-mno-soft-float"
7033 .PD 0
7034 .IP "\fB\-msoft\-float\fR" 4
7035 .IX Item "-msoft-float"
7036 .PD
7037 Use (do not use) the hardware floating-point instructions for
7038 floating-point operations.  When \fB\-msoft\-float\fR is specified,
7039 functions in \fIlibgcc.a\fR will be used to perform floating-point
7040 operations.  Unless they are replaced by routines that emulate the
7041 floating-point operations, or compiled in such a way as to call such
7042 emulations routines, these routines will issue floating-point
7043 operations.   If you are compiling for an Alpha without floating-point
7044 operations, you must ensure that the library is built so as not to call
7045 them.
7046 .Sp
7047 Note that Alpha implementations without floating-point operations are
7048 required to have floating-point registers.
7049 .IP "\fB\-mfp\-reg\fR" 4
7050 .IX Item "-mfp-reg"
7051 .PD 0
7052 .IP "\fB\-mno\-fp\-regs\fR" 4
7053 .IX Item "-mno-fp-regs"
7054 .PD
7055 Generate code that uses (does not use) the floating-point register set.
7056 \&\fB\-mno\-fp\-regs\fR implies \fB\-msoft\-float\fR.  If the floating-point
7057 register set is not used, floating point operands are passed in integer
7058 registers as if they were integers and floating-point results are passed
7059 in \f(CW$0\fR instead of \f(CW$f0\fR.  This is a non-standard calling sequence,
7060 so any function with a floating-point argument or return value called by code
7061 compiled with \fB\-mno\-fp\-regs\fR must also be compiled with that
7062 option.
7063 .Sp
7064 A typical use of this option is building a kernel that does not use,
7065 and hence need not save and restore, any floating-point registers.
7066 .IP "\fB\-mieee\fR" 4
7067 .IX Item "-mieee"
7068 The Alpha architecture implements floating-point hardware optimized for
7069 maximum performance.  It is mostly compliant with the \s-1IEEE\s0 floating
7070 point standard.  However, for full compliance, software assistance is
7071 required.  This option generates code fully \s-1IEEE\s0 compliant code
7072 \&\fIexcept\fR that the \fIinexact-flag\fR is not maintained (see below).
7073 If this option is turned on, the preprocessor macro \f(CW\*(C`_IEEE_FP\*(C'\fR is
7074 defined during compilation.  The resulting code is less efficient but is
7075 able to correctly support denormalized numbers and exceptional \s-1IEEE\s0
7076 values such as not-a-number and plus/minus infinity.  Other Alpha
7077 compilers call this option \fB\-ieee_with_no_inexact\fR.
7078 .IP "\fB\-mieee\-with\-inexact\fR" 4
7079 .IX Item "-mieee-with-inexact"
7080 This is like \fB\-mieee\fR except the generated code also maintains
7081 the \s-1IEEE\s0 \fIinexact-flag\fR.  Turning on this option causes the
7082 generated code to implement fully-compliant \s-1IEEE\s0 math.  In addition to
7083 \&\f(CW\*(C`_IEEE_FP\*(C'\fR, \f(CW\*(C`_IEEE_FP_EXACT\*(C'\fR is defined as a preprocessor
7084 macro.  On some Alpha implementations the resulting code may execute
7085 significantly slower than the code generated by default.  Since there is
7086 very little code that depends on the \fIinexact-flag\fR, you should
7087 normally not specify this option.  Other Alpha compilers call this
7088 option \fB\-ieee_with_inexact\fR.
7089 .IP "\fB\-mfp\-trap\-mode=\fR\fItrap-mode\fR" 4
7090 .IX Item "-mfp-trap-mode=trap-mode"
7091 This option controls what floating-point related traps are enabled.
7092 Other Alpha compilers call this option \fB\-fptm\fR \fItrap-mode\fR.
7093 The trap mode can be set to one of four values:
7094 .RS 4
7095 .IP "\fBn\fR" 4
7096 .IX Item "n"
7097 This is the default (normal) setting.  The only traps that are enabled
7098 are the ones that cannot be disabled in software (e.g., division by zero
7099 trap).
7100 .IP "\fBu\fR" 4
7101 .IX Item "u"
7102 In addition to the traps enabled by \fBn\fR, underflow traps are enabled
7103 as well.
7104 .IP "\fBsu\fR" 4
7105 .IX Item "su"
7106 Like \fBsu\fR, but the instructions are marked to be safe for software
7107 completion (see Alpha architecture manual for details).
7108 .IP "\fBsui\fR" 4
7109 .IX Item "sui"
7110 Like \fBsu\fR, but inexact traps are enabled as well.
7111 .RE
7112 .RS 4
7113 .RE
7114 .IP "\fB\-mfp\-rounding\-mode=\fR\fIrounding-mode\fR" 4
7115 .IX Item "-mfp-rounding-mode=rounding-mode"
7116 Selects the \s-1IEEE\s0 rounding mode.  Other Alpha compilers call this option
7117 \&\fB\-fprm\fR \fIrounding-mode\fR.  The \fIrounding-mode\fR can be one
7118 of:
7119 .RS 4
7120 .IP "\fBn\fR" 4
7121 .IX Item "n"
7122 Normal \s-1IEEE\s0 rounding mode.  Floating point numbers are rounded towards
7123 the nearest machine number or towards the even machine number in case
7124 of a tie.
7125 .IP "\fBm\fR" 4
7126 .IX Item "m"
7127 Round towards minus infinity.
7128 .IP "\fBc\fR" 4
7129 .IX Item "c"
7130 Chopped rounding mode.  Floating point numbers are rounded towards zero.
7131 .IP "\fBd\fR" 4
7132 .IX Item "d"
7133 Dynamic rounding mode.  A field in the floating point control register
7134 (\fIfpcr\fR, see Alpha architecture reference manual) controls the
7135 rounding mode in effect.  The C library initializes this register for
7136 rounding towards plus infinity.  Thus, unless your program modifies the
7137 \&\fIfpcr\fR, \fBd\fR corresponds to round towards plus infinity.
7138 .RE
7139 .RS 4
7140 .RE
7141 .IP "\fB\-mtrap\-precision=\fR\fItrap-precision\fR" 4
7142 .IX Item "-mtrap-precision=trap-precision"
7143 In the Alpha architecture, floating point traps are imprecise.  This
7144 means without software assistance it is impossible to recover from a
7145 floating trap and program execution normally needs to be terminated.
7146 \&\s-1GCC\s0 can generate code that can assist operating system trap handlers
7147 in determining the exact location that caused a floating point trap.
7148 Depending on the requirements of an application, different levels of
7149 precisions can be selected:
7150 .RS 4
7151 .IP "\fBp\fR" 4
7152 .IX Item "p"
7153 Program precision.  This option is the default and means a trap handler
7154 can only identify which program caused a floating point exception.
7155 .IP "\fBf\fR" 4
7156 .IX Item "f"
7157 Function precision.  The trap handler can determine the function that
7158 caused a floating point exception.
7159 .IP "\fBi\fR" 4
7160 .IX Item "i"
7161 Instruction precision.  The trap handler can determine the exact
7162 instruction that caused a floating point exception.
7163 .RE
7164 .RS 4
7165 .Sp
7166 Other Alpha compilers provide the equivalent options called
7167 \&\fB\-scope_safe\fR and \fB\-resumption_safe\fR.
7168 .RE
7169 .IP "\fB\-mieee\-conformant\fR" 4
7170 .IX Item "-mieee-conformant"
7171 This option marks the generated code as \s-1IEEE\s0 conformant.  You must not
7172 use this option unless you also specify \fB\-mtrap\-precision=i\fR and either
7173 \&\fB\-mfp\-trap\-mode=su\fR or \fB\-mfp\-trap\-mode=sui\fR.  Its only effect
7174 is to emit the line \fB.eflag 48\fR in the function prologue of the
7175 generated assembly file.  Under \s-1DEC\s0 Unix, this has the effect that
7176 IEEE-conformant math library routines will be linked in.
7177 .IP "\fB\-mbuild\-constants\fR" 4
7178 .IX Item "-mbuild-constants"
7179 Normally \s-1GCC\s0 examines a 32\- or 64\-bit integer constant to
7180 see if it can construct it from smaller constants in two or three
7181 instructions.  If it cannot, it will output the constant as a literal and
7182 generate code to load it from the data segment at runtime.
7183 .Sp
7184 Use this option to require \s-1GCC\s0 to construct \fIall\fR integer constants
7185 using code, even if it takes more instructions (the maximum is six).
7186 .Sp
7187 You would typically use this option to build a shared library dynamic
7188 loader.  Itself a shared library, it must relocate itself in memory
7189 before it can find the variables and constants in its own data segment.
7190 .IP "\fB\-malpha\-as\fR" 4
7191 .IX Item "-malpha-as"
7192 .PD 0
7193 .IP "\fB\-mgas\fR" 4
7194 .IX Item "-mgas"
7195 .PD
7196 Select whether to generate code to be assembled by the vendor-supplied
7197 assembler (\fB\-malpha\-as\fR) or by the \s-1GNU\s0 assembler \fB\-mgas\fR.
7198 .IP "\fB\-mbwx\fR" 4
7199 .IX Item "-mbwx"
7200 .PD 0
7201 .IP "\fB\-mno\-bwx\fR" 4
7202 .IX Item "-mno-bwx"
7203 .IP "\fB\-mcix\fR" 4
7204 .IX Item "-mcix"
7205 .IP "\fB\-mno\-cix\fR" 4
7206 .IX Item "-mno-cix"
7207 .IP "\fB\-mfix\fR" 4
7208 .IX Item "-mfix"
7209 .IP "\fB\-mno\-fix\fR" 4
7210 .IX Item "-mno-fix"
7211 .IP "\fB\-mmax\fR" 4
7212 .IX Item "-mmax"
7213 .IP "\fB\-mno\-max\fR" 4
7214 .IX Item "-mno-max"
7215 .PD
7216 Indicate whether \s-1GCC\s0 should generate code to use the optional \s-1BWX\s0,
7217 \&\s-1CIX\s0, \s-1FIX\s0 and \s-1MAX\s0 instruction sets.  The default is to use the instruction
7218 sets supported by the \s-1CPU\s0 type specified via \fB\-mcpu=\fR option or that
7219 of the \s-1CPU\s0 on which \s-1GCC\s0 was built if none was specified.
7220 .IP "\fB\-mfloat\-vax\fR" 4
7221 .IX Item "-mfloat-vax"
7222 .PD 0
7223 .IP "\fB\-mfloat\-ieee\fR" 4
7224 .IX Item "-mfloat-ieee"
7225 .PD
7226 Generate code that uses (does not use) \s-1VAX\s0 F and G floating point
7227 arithmetic instead of \s-1IEEE\s0 single and double precision.
7228 .IP "\fB\-mexplicit\-relocs\fR" 4
7229 .IX Item "-mexplicit-relocs"
7230 .PD 0
7231 .IP "\fB\-mno\-explicit\-relocs\fR" 4
7232 .IX Item "-mno-explicit-relocs"
7233 .PD
7234 Older Alpha assemblers provided no way to generate symbol relocations
7235 except via assembler macros.  Use of these macros does not allow
7236 optimal instruction scheduling.  \s-1GNU\s0 binutils as of version 2.12
7237 supports a new syntax that allows the compiler to explicitly mark
7238 which relocations should apply to which instructions.  This option
7239 is mostly useful for debugging, as \s-1GCC\s0 detects the capabilities of
7240 the assembler when it is built and sets the default accordingly.
7241 .IP "\fB\-msmall\-data\fR" 4
7242 .IX Item "-msmall-data"
7243 .PD 0
7244 .IP "\fB\-mlarge\-data\fR" 4
7245 .IX Item "-mlarge-data"
7246 .PD
7247 When \fB\-mexplicit\-relocs\fR is in effect, static data is
7248 accessed via \fIgp-relative\fR relocations.  When \fB\-msmall\-data\fR
7249 is used, objects 8 bytes long or smaller are placed in a \fIsmall data area\fR
7250 (the \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR sections) and are accessed via
7251 16\-bit relocations off of the \f(CW$gp\fR register.  This limits the
7252 size of the small data area to 64KB, but allows the variables to be
7253 directly accessed via a single instruction.
7254 .Sp
7255 The default is \fB\-mlarge\-data\fR.  With this option the data area
7256 is limited to just below 2GB.  Programs that require more than 2GB of
7257 data must use \f(CW\*(C`malloc\*(C'\fR or \f(CW\*(C`mmap\*(C'\fR to allocate the data in the
7258 heap instead of in the program's data segment.
7259 .Sp
7260 When generating code for shared libraries, \fB\-fpic\fR implies
7261 \&\fB\-msmall\-data\fR and \fB\-fPIC\fR implies \fB\-mlarge\-data\fR.
7262 .IP "\fB\-msmall\-text\fR" 4
7263 .IX Item "-msmall-text"
7264 .PD 0
7265 .IP "\fB\-mlarge\-text\fR" 4
7266 .IX Item "-mlarge-text"
7267 .PD
7268 When \fB\-msmall\-text\fR is used, the compiler assumes that the
7269 code of the entire program (or shared library) fits in 4MB, and is
7270 thus reachable with a branch instruction.  When \fB\-msmall\-data\fR
7271 is used, the compiler can assume that all local symbols share the
7272 same \f(CW$gp\fR value, and thus reduce the number of instructions
7273 required for a function call from 4 to 1.
7274 .Sp
7275 The default is \fB\-mlarge\-text\fR.
7276 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
7277 .IX Item "-mcpu=cpu_type"
7278 Set the instruction set and instruction scheduling parameters for
7279 machine type \fIcpu_type\fR.  You can specify either the \fB\s-1EV\s0\fR
7280 style name or the corresponding chip number.  \s-1GCC\s0 supports scheduling
7281 parameters for the \s-1EV4\s0, \s-1EV5\s0 and \s-1EV6\s0 family of processors and will
7282 choose the default values for the instruction set from the processor
7283 you specify.  If you do not specify a processor type, \s-1GCC\s0 will default
7284 to the processor on which the compiler was built.
7285 .Sp
7286 Supported values for \fIcpu_type\fR are
7287 .RS 4
7288 .IP "\fBev4\fR" 4
7289 .IX Item "ev4"
7290 .PD 0
7291 .IP "\fBev45\fR" 4
7292 .IX Item "ev45"
7293 .IP "\fB21064\fR" 4
7294 .IX Item "21064"
7295 .PD
7296 Schedules as an \s-1EV4\s0 and has no instruction set extensions.
7297 .IP "\fBev5\fR" 4
7298 .IX Item "ev5"
7299 .PD 0
7300 .IP "\fB21164\fR" 4
7301 .IX Item "21164"
7302 .PD
7303 Schedules as an \s-1EV5\s0 and has no instruction set extensions.
7304 .IP "\fBev56\fR" 4
7305 .IX Item "ev56"
7306 .PD 0
7307 .IP "\fB21164a\fR" 4
7308 .IX Item "21164a"
7309 .PD
7310 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 extension.
7311 .IP "\fBpca56\fR" 4
7312 .IX Item "pca56"
7313 .PD 0
7314 .IP "\fB21164pc\fR" 4
7315 .IX Item "21164pc"
7316 .IP "\fB21164PC\fR" 4
7317 .IX Item "21164PC"
7318 .PD
7319 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 and \s-1MAX\s0 extensions.
7320 .IP "\fBev6\fR" 4
7321 .IX Item "ev6"
7322 .PD 0
7323 .IP "\fB21264\fR" 4
7324 .IX Item "21264"
7325 .PD
7326 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
7327 .IP "\fBev67\fR" 4
7328 .IX Item "ev67"
7329 .PD 0
7330 .IP "\fB21264a\fR" 4
7331 .IX Item "21264a"
7332 .PD
7333 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1CIX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
7334 .RE
7335 .RS 4
7336 .RE
7337 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
7338 .IX Item "-mtune=cpu_type"
7339 Set only the instruction scheduling parameters for machine type
7340 \&\fIcpu_type\fR.  The instruction set is not changed.
7341 .IP "\fB\-mmemory\-latency=\fR\fItime\fR" 4
7342 .IX Item "-mmemory-latency=time"
7343 Sets the latency the scheduler should assume for typical memory
7344 references as seen by the application.  This number is highly
7345 dependent on the memory access patterns used by the application
7346 and the size of the external cache on the machine.
7347 .Sp
7348 Valid options for \fItime\fR are
7349 .RS 4
7350 .IP "\fInumber\fR" 4
7351 .IX Item "number"
7352 A decimal number representing clock cycles.
7353 .IP "\fBL1\fR" 4
7354 .IX Item "L1"
7355 .PD 0
7356 .IP "\fBL2\fR" 4
7357 .IX Item "L2"
7358 .IP "\fBL3\fR" 4
7359 .IX Item "L3"
7360 .IP "\fBmain\fR" 4
7361 .IX Item "main"
7362 .PD
7363 The compiler contains estimates of the number of clock cycles for
7364 ``typical'' \s-1EV4\s0 & \s-1EV5\s0 hardware for the Level 1, 2 & 3 caches
7365 (also called Dcache, Scache, and Bcache), as well as to main memory.
7366 Note that L3 is only valid for \s-1EV5\s0.
7367 .RE
7368 .RS 4
7369 .RE
7370 .PP
7371 \fI\s-1DEC\s0 Alpha/VMS Options\fR
7372 .IX Subsection "DEC Alpha/VMS Options"
7373 .PP
7374 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha/VMS implementations:
7375 .IP "\fB\-mvms\-return\-codes\fR" 4
7376 .IX Item "-mvms-return-codes"
7377 Return \s-1VMS\s0 condition codes from main.  The default is to return \s-1POSIX\s0
7378 style condition (e.g. error) codes.
7379 .PP
7380 \fI\s-1FRV\s0 Options\fR
7381 .IX Subsection "FRV Options"
7382 .IP "\fB\-mgpr\-32\fR" 4
7383 .IX Item "-mgpr-32"
7384 Only use the first 32 general purpose registers.
7385 .IP "\fB\-mgpr\-64\fR" 4
7386 .IX Item "-mgpr-64"
7387 Use all 64 general purpose registers.
7388 .IP "\fB\-mfpr\-32\fR" 4
7389 .IX Item "-mfpr-32"
7390 Use only the first 32 floating point registers.
7391 .IP "\fB\-mfpr\-64\fR" 4
7392 .IX Item "-mfpr-64"
7393 Use all 64 floating point registers
7394 .IP "\fB\-mhard\-float\fR" 4
7395 .IX Item "-mhard-float"
7396 Use hardware instructions for floating point operations.
7397 .IP "\fB\-msoft\-float\fR" 4
7398 .IX Item "-msoft-float"
7399 Use library routines for floating point operations.
7400 .IP "\fB\-malloc\-cc\fR" 4
7401 .IX Item "-malloc-cc"
7402 Dynamically allocate condition code registers.
7403 .IP "\fB\-mfixed\-cc\fR" 4
7404 .IX Item "-mfixed-cc"
7405 Do not try to dynamically allocate condition code registers, only
7406 use \f(CW\*(C`icc0\*(C'\fR and \f(CW\*(C`fcc0\*(C'\fR.
7407 .IP "\fB\-mdword\fR" 4
7408 .IX Item "-mdword"
7409 Change \s-1ABI\s0 to use double word insns.
7410 .IP "\fB\-mno\-dword\fR" 4
7411 .IX Item "-mno-dword"
7412 Do not use double word instructions.
7413 .IP "\fB\-mdouble\fR" 4
7414 .IX Item "-mdouble"
7415 Use floating point double instructions.
7416 .IP "\fB\-mno\-double\fR" 4
7417 .IX Item "-mno-double"
7418 Do not use floating point double instructions.
7419 .IP "\fB\-mmedia\fR" 4
7420 .IX Item "-mmedia"
7421 Use media instructions.
7422 .IP "\fB\-mno\-media\fR" 4
7423 .IX Item "-mno-media"
7424 Do not use media instructions.
7425 .IP "\fB\-mmuladd\fR" 4
7426 .IX Item "-mmuladd"
7427 Use multiply and add/subtract instructions.
7428 .IP "\fB\-mno\-muladd\fR" 4
7429 .IX Item "-mno-muladd"
7430 Do not use multiply and add/subtract instructions.
7431 .IP "\fB\-mfdpic\fR" 4
7432 .IX Item "-mfdpic"
7433 Select the \s-1FDPIC\s0 \s-1ABI\s0, that uses function descriptors to represent
7434 pointers to functions.  Without any PIC/PIE\-related options, it
7435 implies \fB\-fPIE\fR.  With \fB\-fpic\fR or \fB\-fpie\fR, it
7436 assumes \s-1GOT\s0 entries and small data are within a 12\-bit range from the
7437 \&\s-1GOT\s0 base address; with \fB\-fPIC\fR or \fB\-fPIE\fR, \s-1GOT\s0 offsets
7438 are computed with 32 bits.
7439 .IP "\fB\-minline\-plt\fR" 4
7440 .IX Item "-minline-plt"
7441 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
7442 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
7443 It's enabled by default if optimizing for speed and compiling for
7444 shared libraries (i.e., \fB\-fPIC\fR or \fB\-fpic\fR), or when an
7445 optimization option such as \fB\-O3\fR or above is present in the
7446 command line.
7447 .IP "\fB\-mTLS\fR" 4
7448 .IX Item "-mTLS"
7449 Assume a large \s-1TLS\s0 segment when generating thread-local code.
7450 .IP "\fB\-mtls\fR" 4
7451 .IX Item "-mtls"
7452 Do not assume a large \s-1TLS\s0 segment when generating thread-local code.
7453 .IP "\fB\-mgprel\-ro\fR" 4
7454 .IX Item "-mgprel-ro"
7455 Enable the use of \f(CW\*(C`GPREL\*(C'\fR relocations in the \s-1FDPIC\s0 \s-1ABI\s0 for data
7456 that is known to be in read-only sections.  It's enabled by default,
7457 except for \fB\-fpic\fR or \fB\-fpie\fR: even though it may help
7458 make the global offset table smaller, it trades 1 instruction for 4.
7459 With \fB\-fPIC\fR or \fB\-fPIE\fR, it trades 3 instructions for 4,
7460 one of which may be shared by multiple symbols, and it avoids the need
7461 for a \s-1GOT\s0 entry for the referenced symbol, so it's more likely to be a
7462 win.  If it is not, \fB\-mno\-gprel\-ro\fR can be used to disable it.
7463 .IP "\fB\-multilib\-library\-pic\fR" 4
7464 .IX Item "-multilib-library-pic"
7465 Link with the (library, not \s-1FD\s0) pic libraries.  It's implied by
7466 \&\fB\-mlibrary\-pic\fR, as well as by \fB\-fPIC\fR and
7467 \&\fB\-fpic\fR without \fB\-mfdpic\fR.  You should never have to use
7468 it explicitly.
7469 .IP "\fB\-mlinked\-fp\fR" 4
7470 .IX Item "-mlinked-fp"
7471 Follow the \s-1EABI\s0 requirement of always creating a frame pointer whenever
7472 a stack frame is allocated.  This option is enabled by default and can
7473 be disabled with \fB\-mno\-linked\-fp\fR.
7474 .IP "\fB\-mlong\-calls\fR" 4
7475 .IX Item "-mlong-calls"
7476 Use indirect addressing to call functions outside the current
7477 compilation unit.  This allows the functions to be placed anywhere
7478 within the 32\-bit address space.
7479 .IP "\fB\-malign\-labels\fR" 4
7480 .IX Item "-malign-labels"
7481 Try to align labels to an 8\-byte boundary by inserting nops into the
7482 previous packet.  This option only has an effect when \s-1VLIW\s0 packing
7483 is enabled.  It doesn't create new packets; it merely adds nops to
7484 existing ones.
7485 .IP "\fB\-mlibrary\-pic\fR" 4
7486 .IX Item "-mlibrary-pic"
7487 Generate position-independent \s-1EABI\s0 code.
7488 .IP "\fB\-macc\-4\fR" 4
7489 .IX Item "-macc-4"
7490 Use only the first four media accumulator registers.
7491 .IP "\fB\-macc\-8\fR" 4
7492 .IX Item "-macc-8"
7493 Use all eight media accumulator registers.
7494 .IP "\fB\-mpack\fR" 4
7495 .IX Item "-mpack"
7496 Pack \s-1VLIW\s0 instructions.
7497 .IP "\fB\-mno\-pack\fR" 4
7498 .IX Item "-mno-pack"
7499 Do not pack \s-1VLIW\s0 instructions.
7500 .IP "\fB\-mno\-eflags\fR" 4
7501 .IX Item "-mno-eflags"
7502 Do not mark \s-1ABI\s0 switches in e_flags.
7503 .IP "\fB\-mcond\-move\fR" 4
7504 .IX Item "-mcond-move"
7505 Enable the use of conditional-move instructions (default).
7506 .Sp
7507 This switch is mainly for debugging the compiler and will likely be removed
7508 in a future version.
7509 .IP "\fB\-mno\-cond\-move\fR" 4
7510 .IX Item "-mno-cond-move"
7511 Disable the use of conditional-move instructions.
7512 .Sp
7513 This switch is mainly for debugging the compiler and will likely be removed
7514 in a future version.
7515 .IP "\fB\-mscc\fR" 4
7516 .IX Item "-mscc"
7517 Enable the use of conditional set instructions (default).
7518 .Sp
7519 This switch is mainly for debugging the compiler and will likely be removed
7520 in a future version.
7521 .IP "\fB\-mno\-scc\fR" 4
7522 .IX Item "-mno-scc"
7523 Disable the use of conditional set instructions.
7524 .Sp
7525 This switch is mainly for debugging the compiler and will likely be removed
7526 in a future version.
7527 .IP "\fB\-mcond\-exec\fR" 4
7528 .IX Item "-mcond-exec"
7529 Enable the use of conditional execution (default).
7530 .Sp
7531 This switch is mainly for debugging the compiler and will likely be removed
7532 in a future version.
7533 .IP "\fB\-mno\-cond\-exec\fR" 4
7534 .IX Item "-mno-cond-exec"
7535 Disable the use of conditional execution.
7536 .Sp
7537 This switch is mainly for debugging the compiler and will likely be removed
7538 in a future version.
7539 .IP "\fB\-mvliw\-branch\fR" 4
7540 .IX Item "-mvliw-branch"
7541 Run a pass to pack branches into \s-1VLIW\s0 instructions (default).
7542 .Sp
7543 This switch is mainly for debugging the compiler and will likely be removed
7544 in a future version.
7545 .IP "\fB\-mno\-vliw\-branch\fR" 4
7546 .IX Item "-mno-vliw-branch"
7547 Do not run a pass to pack branches into \s-1VLIW\s0 instructions.
7548 .Sp
7549 This switch is mainly for debugging the compiler and will likely be removed
7550 in a future version.
7551 .IP "\fB\-mmulti\-cond\-exec\fR" 4
7552 .IX Item "-mmulti-cond-exec"
7553 Enable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution
7554 (default).
7555 .Sp
7556 This switch is mainly for debugging the compiler and will likely be removed
7557 in a future version.
7558 .IP "\fB\-mno\-multi\-cond\-exec\fR" 4
7559 .IX Item "-mno-multi-cond-exec"
7560 Disable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution.
7561 .Sp
7562 This switch is mainly for debugging the compiler and will likely be removed
7563 in a future version.
7564 .IP "\fB\-mnested\-cond\-exec\fR" 4
7565 .IX Item "-mnested-cond-exec"
7566 Enable nested conditional execution optimizations (default).
7567 .Sp
7568 This switch is mainly for debugging the compiler and will likely be removed
7569 in a future version.
7570 .IP "\fB\-mno\-nested\-cond\-exec\fR" 4
7571 .IX Item "-mno-nested-cond-exec"
7572 Disable nested conditional execution optimizations.
7573 .Sp
7574 This switch is mainly for debugging the compiler and will likely be removed
7575 in a future version.
7576 .IP "\fB\-mtomcat\-stats\fR" 4
7577 .IX Item "-mtomcat-stats"
7578 Cause gas to print out tomcat statistics.
7579 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
7580 .IX Item "-mcpu=cpu"
7581 Select the processor type for which to generate code.  Possible values are
7582 \&\fBfrv\fR, \fBfr550\fR, \fBtomcat\fR, \fBfr500\fR, \fBfr450\fR,
7583 \&\fBfr405\fR, \fBfr400\fR, \fBfr300\fR and \fBsimple\fR.
7584 .PP
7585 \fIH8/300 Options\fR
7586 .IX Subsection "H8/300 Options"
7587 .PP
7588 These \fB\-m\fR options are defined for the H8/300 implementations:
7589 .IP "\fB\-mrelax\fR" 4
7590 .IX Item "-mrelax"
7591 Shorten some address references at link time, when possible; uses the
7592 linker option \fB\-relax\fR.  
7593 .IP "\fB\-mh\fR" 4
7594 .IX Item "-mh"
7595 Generate code for the H8/300H.
7596 .IP "\fB\-ms\fR" 4
7597 .IX Item "-ms"
7598 Generate code for the H8S.
7599 .IP "\fB\-mn\fR" 4
7600 .IX Item "-mn"
7601 Generate code for the H8S and H8/300H in the normal mode.  This switch
7602 must be used either with \fB\-mh\fR or \fB\-ms\fR.
7603 .IP "\fB\-ms2600\fR" 4
7604 .IX Item "-ms2600"
7605 Generate code for the H8S/2600.  This switch must be used with \fB\-ms\fR.
7606 .IP "\fB\-mint32\fR" 4
7607 .IX Item "-mint32"
7608 Make \f(CW\*(C`int\*(C'\fR data 32 bits by default.
7609 .IP "\fB\-malign\-300\fR" 4
7610 .IX Item "-malign-300"
7611 On the H8/300H and H8S, use the same alignment rules as for the H8/300.
7612 The default for the H8/300H and H8S is to align longs and floats on 4
7613 byte boundaries.
7614 \&\fB\-malign\-300\fR causes them to be aligned on 2 byte boundaries.
7615 This option has no effect on the H8/300.
7616 .PP
7617 \fI\s-1HPPA\s0 Options\fR
7618 .IX Subsection "HPPA Options"
7619 .PP
7620 These \fB\-m\fR options are defined for the \s-1HPPA\s0 family of computers:
7621 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
7622 .IX Item "-march=architecture-type"
7623 Generate code for the specified architecture.  The choices for
7624 \&\fIarchitecture-type\fR are \fB1.0\fR for \s-1PA\s0 1.0, \fB1.1\fR for \s-1PA\s0
7625 1.1, and \fB2.0\fR for \s-1PA\s0 2.0 processors.  Refer to
7626 \&\fI/usr/lib/sched.models\fR on an HP-UX system to determine the proper
7627 architecture option for your machine.  Code compiled for lower numbered
7628 architectures will run on higher numbered architectures, but not the
7629 other way around.
7630 .IP "\fB\-mpa\-risc\-1\-0\fR" 4
7631 .IX Item "-mpa-risc-1-0"
7632 .PD 0
7633 .IP "\fB\-mpa\-risc\-1\-1\fR" 4
7634 .IX Item "-mpa-risc-1-1"
7635 .IP "\fB\-mpa\-risc\-2\-0\fR" 4
7636 .IX Item "-mpa-risc-2-0"
7637 .PD
7638 Synonyms for \fB\-march=1.0\fR, \fB\-march=1.1\fR, and \fB\-march=2.0\fR respectively.
7639 .IP "\fB\-mbig\-switch\fR" 4
7640 .IX Item "-mbig-switch"
7641 Generate code suitable for big switch tables.  Use this option only if
7642 the assembler/linker complain about out of range branches within a switch
7643 table.
7644 .IP "\fB\-mjump\-in\-delay\fR" 4
7645 .IX Item "-mjump-in-delay"
7646 Fill delay slots of function calls with unconditional jump instructions
7647 by modifying the return pointer for the function call to be the target
7648 of the conditional jump.
7649 .IP "\fB\-mdisable\-fpregs\fR" 4
7650 .IX Item "-mdisable-fpregs"
7651 Prevent floating point registers from being used in any manner.  This is
7652 necessary for compiling kernels which perform lazy context switching of
7653 floating point registers.  If you use this option and attempt to perform
7654 floating point operations, the compiler will abort.
7655 .IP "\fB\-mdisable\-indexing\fR" 4
7656 .IX Item "-mdisable-indexing"
7657 Prevent the compiler from using indexing address modes.  This avoids some
7658 rather obscure problems when compiling \s-1MIG\s0 generated code under \s-1MACH\s0.
7659 .IP "\fB\-mno\-space\-regs\fR" 4
7660 .IX Item "-mno-space-regs"
7661 Generate code that assumes the target has no space registers.  This allows
7662 \&\s-1GCC\s0 to generate faster indirect calls and use unscaled index address modes.
7663 .Sp
7664 Such code is suitable for level 0 \s-1PA\s0 systems and kernels.
7665 .IP "\fB\-mfast\-indirect\-calls\fR" 4
7666 .IX Item "-mfast-indirect-calls"
7667 Generate code that assumes calls never cross space boundaries.  This
7668 allows \s-1GCC\s0 to emit code which performs faster indirect calls.
7669 .Sp
7670 This option will not work in the presence of shared libraries or nested
7671 functions.
7672 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
7673 .IX Item "-mfixed-range=register-range"
7674 Generate code treating the given register range as fixed registers.
7675 A fixed register is one that the register allocator can not use.  This is
7676 useful when compiling kernel code.  A register range is specified as
7677 two registers separated by a dash.  Multiple register ranges can be
7678 specified separated by a comma.
7679 .IP "\fB\-mlong\-load\-store\fR" 4
7680 .IX Item "-mlong-load-store"
7681 Generate 3\-instruction load and store sequences as sometimes required by
7682 the HP-UX 10 linker.  This is equivalent to the \fB+k\fR option to
7683 the \s-1HP\s0 compilers.
7684 .IP "\fB\-mportable\-runtime\fR" 4
7685 .IX Item "-mportable-runtime"
7686 Use the portable calling conventions proposed by \s-1HP\s0 for \s-1ELF\s0 systems.
7687 .IP "\fB\-mgas\fR" 4
7688 .IX Item "-mgas"
7689 Enable the use of assembler directives only \s-1GAS\s0 understands.
7690 .IP "\fB\-mschedule=\fR\fIcpu-type\fR" 4
7691 .IX Item "-mschedule=cpu-type"
7692 Schedule code according to the constraints for the machine type
7693 \&\fIcpu-type\fR.  The choices for \fIcpu-type\fR are \fB700\fR
7694 \&\fB7100\fR, \fB7100LC\fR, \fB7200\fR, \fB7300\fR and \fB8000\fR.  Refer
7695 to \fI/usr/lib/sched.models\fR on an HP-UX system to determine the
7696 proper scheduling option for your machine.  The default scheduling is
7697 \&\fB8000\fR.
7698 .IP "\fB\-mlinker\-opt\fR" 4
7699 .IX Item "-mlinker-opt"
7700 Enable the optimization pass in the HP-UX linker.  Note this makes symbolic
7701 debugging impossible.  It also triggers a bug in the HP-UX 8 and HP-UX 9
7702 linkers in which they give bogus error messages when linking some programs.
7703 .IP "\fB\-msoft\-float\fR" 4
7704 .IX Item "-msoft-float"
7705 Generate output containing library calls for floating point.
7706 \&\fBWarning:\fR the requisite libraries are not available for all \s-1HPPA\s0
7707 targets.  Normally the facilities of the machine's usual C compiler are
7708 used, but this cannot be done directly in cross\-compilation.  You must make
7709 your own arrangements to provide suitable library functions for
7710 cross\-compilation.  The embedded target \fBhppa1.1\-*\-pro\fR
7711 does provide software floating point support.
7712 .Sp
7713 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
7714 therefore, it is only useful if you compile \fIall\fR of a program with
7715 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
7716 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
7717 this to work.
7718 .IP "\fB\-msio\fR" 4
7719 .IX Item "-msio"
7720 Generate the predefine, \f(CW\*(C`_SIO\*(C'\fR, for server \s-1IO\s0.  The default is
7721 \&\fB\-mwsio\fR.  This generates the predefines, \f(CW\*(C`_\|_hp9000s700\*(C'\fR,
7722 \&\f(CW\*(C`_\|_hp9000s700_\|_\*(C'\fR and \f(CW\*(C`_WSIO\*(C'\fR, for workstation \s-1IO\s0.  These
7723 options are available under HP-UX and \s-1HI\-UX\s0.
7724 .IP "\fB\-mgnu\-ld\fR" 4
7725 .IX Item "-mgnu-ld"
7726 Use \s-1GNU\s0 ld specific options.  This passes \fB\-shared\fR to ld when
7727 building a shared library.  It is the default when \s-1GCC\s0 is configured,
7728 explicitly or implicitly, with the \s-1GNU\s0 linker.  This option does not
7729 have any affect on which ld is called, it only changes what parameters
7730 are passed to that ld.  The ld that is called is determined by the
7731 \&\fB\-\-with\-ld\fR configure option, \s-1GCC\s0's program search path, and
7732 finally by the user's \fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed
7733 using \fBwhich `gcc \-print\-prog\-name=ld`\fR.
7734 .IP "\fB\-mhp\-ld\fR" 4
7735 .IX Item "-mhp-ld"
7736 Use \s-1HP\s0 ld specific options.  This passes \fB\-b\fR to ld when building
7737 a shared library and passes \fB+Accept TypeMismatch\fR to ld on all
7738 links.  It is the default when \s-1GCC\s0 is configured, explicitly or
7739 implicitly, with the \s-1HP\s0 linker.  This option does not have any affect on
7740 which ld is called, it only changes what parameters are passed to that
7741 ld.  The ld that is called is determined by the \fB\-\-with\-ld\fR
7742 configure option, \s-1GCC\s0's program search path, and finally by the user's
7743 \&\fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed using \fBwhich
7744 `gcc \-print\-prog\-name=ld`\fR.
7745 .IP "\fB\-mlong\-calls\fR" 4
7746 .IX Item "-mlong-calls"
7747 Generate code that uses long call sequences.  This ensures that a call
7748 is always able to reach linker generated stubs.  The default is to generate
7749 long calls only when the distance from the call site to the beginning
7750 of the function or translation unit, as the case may be, exceeds a
7751 predefined limit set by the branch type being used.  The limits for
7752 normal calls are 7,600,000 and 240,000 bytes, respectively for the
7753 \&\s-1PA\s0 2.0 and \s-1PA\s0 1.X architectures.  Sibcalls are always limited at
7754 240,000 bytes.
7755 .Sp
7756 Distances are measured from the beginning of functions when using the
7757 \&\fB\-ffunction\-sections\fR option, or when using the \fB\-mgas\fR
7758 and \fB\-mno\-portable\-runtime\fR options together under HP-UX with
7759 the \s-1SOM\s0 linker.
7760 .Sp
7761 It is normally not desirable to use this option as it will degrade
7762 performance.  However, it may be useful in large applications,
7763 particularly when partial linking is used to build the application.
7764 .Sp
7765 The types of long calls used depends on the capabilities of the
7766 assembler and linker, and the type of code being generated.  The
7767 impact on systems that support long absolute calls, and long pic
7768 symbol-difference or pc-relative calls should be relatively small.
7769 However, an indirect call is used on 32\-bit \s-1ELF\s0 systems in pic code
7770 and it is quite long.
7771 .IP "\fB\-munix=\fR\fIunix-std\fR" 4
7772 .IX Item "-munix=unix-std"
7773 Generate compiler predefines and select a startfile for the specified
7774 \&\s-1UNIX\s0 standard.  The choices for \fIunix-std\fR are \fB93\fR, \fB95\fR
7775 and \fB98\fR.  \fB93\fR is supported on all HP-UX versions.  \fB95\fR
7776 is available on HP-UX 10.10 and later.  \fB98\fR is available on HP-UX
7777 11.11 and later.  The default values are \fB93\fR for HP-UX 10.00,
7778 \&\fB95\fR for HP-UX 10.10 though to 11.00, and \fB98\fR for HP-UX 11.11
7779 and later.
7780 .Sp
7781 \&\fB\-munix=93\fR provides the same predefines as \s-1GCC\s0 3.3 and 3.4.
7782 \&\fB\-munix=95\fR provides additional predefines for \f(CW\*(C`XOPEN_UNIX\*(C'\fR
7783 and \f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, and the startfile \fIunix95.o\fR.
7784 \&\fB\-munix=98\fR provides additional predefines for \f(CW\*(C`_XOPEN_UNIX\*(C'\fR,
7785 \&\f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, \f(CW\*(C`_INCLUDE_\|_STDC_A1_SOURCE\*(C'\fR and
7786 \&\f(CW\*(C`_INCLUDE_XOPEN_SOURCE_500\*(C'\fR, and the startfile \fIunix98.o\fR.
7787 .Sp
7788 It is \fIimportant\fR to note that this option changes the interfaces
7789 for various library routines.  It also affects the operational behavior
7790 of the C library.  Thus, \fIextreme\fR care is needed in using this
7791 option.
7792 .Sp
7793 Library code that is intended to operate with more than one \s-1UNIX\s0
7794 standard must test, set and restore the variable \fI_\|_xpg4_extended_mask\fR
7795 as appropriate.  Most \s-1GNU\s0 software doesn't provide this capability.
7796 .IP "\fB\-nolibdld\fR" 4
7797 .IX Item "-nolibdld"
7798 Suppress the generation of link options to search libdld.sl when the
7799 \&\fB\-static\fR option is specified on HP-UX 10 and later.
7800 .IP "\fB\-static\fR" 4
7801 .IX Item "-static"
7802 The HP-UX implementation of setlocale in libc has a dependency on
7803 libdld.sl.  There isn't an archive version of libdld.sl.  Thus,
7804 when the \fB\-static\fR option is specified, special link options
7805 are needed to resolve this dependency.
7806 .Sp
7807 On HP-UX 10 and later, the \s-1GCC\s0 driver adds the necessary options to
7808 link with libdld.sl when the \fB\-static\fR option is specified.
7809 This causes the resulting binary to be dynamic.  On the 64\-bit port,
7810 the linkers generate dynamic binaries by default in any case.  The
7811 \&\fB\-nolibdld\fR option can be used to prevent the \s-1GCC\s0 driver from
7812 adding these link options.
7813 .IP "\fB\-threads\fR" 4
7814 .IX Item "-threads"
7815 Add support for multithreading with the \fIdce thread\fR library
7816 under \s-1HP\-UX\s0.  This option sets flags for both the preprocessor and
7817 linker.
7818 .PP
7819 \fIIntel 386 and \s-1AMD\s0 x86\-64 Options\fR
7820 .IX Subsection "Intel 386 and AMD x86-64 Options"
7821 .PP
7822 These \fB\-m\fR options are defined for the i386 and x86\-64 family of
7823 computers:
7824 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
7825 .IX Item "-mtune=cpu-type"
7826 Tune to \fIcpu-type\fR everything applicable about the generated code, except
7827 for the \s-1ABI\s0 and the set of available instructions.  The choices for
7828 \&\fIcpu-type\fR are:
7829 .RS 4
7830 .IP "\fIi386\fR" 4
7831 .IX Item "i386"
7832 Original Intel's i386 \s-1CPU\s0.
7833 .IP "\fIi486\fR" 4
7834 .IX Item "i486"
7835 Intel's i486 \s-1CPU\s0.  (No scheduling is implemented for this chip.)
7836 .IP "\fIi586, pentium\fR" 4
7837 .IX Item "i586, pentium"
7838 Intel Pentium \s-1CPU\s0 with no \s-1MMX\s0 support.
7839 .IP "\fIpentium-mmx\fR" 4
7840 .IX Item "pentium-mmx"
7841 Intel PentiumMMX \s-1CPU\s0 based on Pentium core with \s-1MMX\s0 instruction set support.
7842 .IP "\fIi686, pentiumpro\fR" 4
7843 .IX Item "i686, pentiumpro"
7844 Intel PentiumPro \s-1CPU\s0.
7845 .IP "\fIpentium2\fR" 4
7846 .IX Item "pentium2"
7847 Intel Pentium2 \s-1CPU\s0 based on PentiumPro core with \s-1MMX\s0 instruction set support.
7848 .IP "\fIpentium3, pentium3m\fR" 4
7849 .IX Item "pentium3, pentium3m"
7850 Intel Pentium3 \s-1CPU\s0 based on PentiumPro core with \s-1MMX\s0 and \s-1SSE\s0 instruction set
7851 support.
7852 .IP "\fIpentium-m\fR" 4
7853 .IX Item "pentium-m"
7854 Low power version of Intel Pentium3 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set
7855 support.  Used by Centrino notebooks.
7856 .IP "\fIpentium4, pentium4m\fR" 4
7857 .IX Item "pentium4, pentium4m"
7858 Intel Pentium4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set support.
7859 .IP "\fIprescott\fR" 4
7860 .IX Item "prescott"
7861 Improved version of Intel Pentium4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0 and \s-1SSE3\s0 instruction
7862 set support.
7863 .IP "\fInocona\fR" 4
7864 .IX Item "nocona"
7865 Improved version of Intel Pentium4 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0,
7866 \&\s-1SSE2\s0 and \s-1SSE3\s0 instruction set support.
7867 .IP "\fIk6\fR" 4
7868 .IX Item "k6"
7869 \&\s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 instruction set support.
7870 .IP "\fIk6\-2, k6\-3\fR" 4
7871 .IX Item "k6-2, k6-3"
7872 Improved versions of \s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 and 3dNOW! instruction set support.
7873 .IP "\fIathlon, athlon-tbird\fR" 4
7874 .IX Item "athlon, athlon-tbird"
7875 \&\s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3dNOW!, enhanced 3dNOW! and \s-1SSE\s0 prefetch instructions
7876 support.
7877 .IP "\fIathlon\-4, athlon\-xp, athlon-mp\fR" 4
7878 .IX Item "athlon-4, athlon-xp, athlon-mp"
7879 Improved \s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3dNOW!, enhanced 3dNOW! and full \s-1SSE\s0
7880 instruction set support.
7881 .IP "\fIk8, opteron, athlon64, athlon-fx\fR" 4
7882 .IX Item "k8, opteron, athlon64, athlon-fx"
7883 \&\s-1AMD\s0 K8 core based CPUs with x86\-64 instruction set support.  (This supersets
7884 \&\s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, 3dNOW!, enhanced 3dNOW! and 64\-bit instruction set extensions.)
7885 .IP "\fIwinchip\-c6\fR" 4
7886 .IX Item "winchip-c6"
7887 \&\s-1IDT\s0 Winchip C6 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 instruction
7888 set support.
7889 .IP "\fIwinchip2\fR" 4
7890 .IX Item "winchip2"
7891 \&\s-1IDT\s0 Winchip2 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 and 3dNOW!
7892 instruction set support.
7893 .IP "\fIc3\fR" 4
7894 .IX Item "c3"
7895 Via C3 \s-1CPU\s0 with \s-1MMX\s0 and 3dNOW! instruction set support.  (No scheduling is
7896 implemented for this chip.)
7897 .IP "\fIc3\-2\fR" 4
7898 .IX Item "c3-2"
7899 Via C3\-2 \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.  (No scheduling is
7900 implemented for this chip.)
7901 .RE
7902 .RS 4
7903 .Sp
7904 While picking a specific \fIcpu-type\fR will schedule things appropriately
7905 for that particular chip, the compiler will not generate any code that
7906 does not run on the i386 without the \fB\-march=\fR\fIcpu-type\fR option
7907 being used.
7908 .RE
7909 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
7910 .IX Item "-march=cpu-type"
7911 Generate instructions for the machine type \fIcpu-type\fR.  The choices
7912 for \fIcpu-type\fR are the same as for \fB\-mtune\fR.  Moreover,
7913 specifying \fB\-march=\fR\fIcpu-type\fR implies \fB\-mtune=\fR\fIcpu-type\fR.
7914 .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
7915 .IX Item "-mcpu=cpu-type"
7916 A deprecated synonym for \fB\-mtune\fR.
7917 .IP "\fB\-m386\fR" 4
7918 .IX Item "-m386"
7919 .PD 0
7920 .IP "\fB\-m486\fR" 4
7921 .IX Item "-m486"
7922 .IP "\fB\-mpentium\fR" 4
7923 .IX Item "-mpentium"
7924 .IP "\fB\-mpentiumpro\fR" 4
7925 .IX Item "-mpentiumpro"
7926 .PD
7927 These options are synonyms for \fB\-mtune=i386\fR, \fB\-mtune=i486\fR,
7928 \&\fB\-mtune=pentium\fR, and \fB\-mtune=pentiumpro\fR respectively.
7929 These synonyms are deprecated.
7930 .IP "\fB\-mfpmath=\fR\fIunit\fR" 4
7931 .IX Item "-mfpmath=unit"
7932 Generate floating point arithmetics for selected unit \fIunit\fR.  The choices
7933 for \fIunit\fR are:
7934 .RS 4
7935 .IP "\fB387\fR" 4
7936 .IX Item "387"
7937 Use the standard 387 floating point coprocessor present majority of chips and
7938 emulated otherwise.  Code compiled with this option will run almost everywhere.
7939 The temporary results are computed in 80bit precision instead of precision
7940 specified by the type resulting in slightly different results compared to most
7941 of other chips.  See \fB\-ffloat\-store\fR for more detailed description.
7942 .Sp
7943 This is the default choice for i386 compiler.
7944 .IP "\fBsse\fR" 4
7945 .IX Item "sse"
7946 Use scalar floating point instructions present in the \s-1SSE\s0 instruction set.
7947 This instruction set is supported by Pentium3 and newer chips, in the \s-1AMD\s0 line
7948 by Athlon\-4, Athlon-xp and Athlon-mp chips.  The earlier version of \s-1SSE\s0
7949 instruction set supports only single precision arithmetics, thus the double and
7950 extended precision arithmetics is still done using 387.  Later version, present
7951 only in Pentium4 and the future \s-1AMD\s0 x86\-64 chips supports double precision
7952 arithmetics too.
7953 .Sp
7954 For the i386 compiler, you need to use \fB\-march=\fR\fIcpu-type\fR, \fB\-msse\fR
7955 or \fB\-msse2\fR switches to enable \s-1SSE\s0 extensions and make this option
7956 effective.  For the x86\-64 compiler, these extensions are enabled by default.
7957 .Sp
7958 The resulting code should be considerably faster in the majority of cases and avoid
7959 the numerical instability problems of 387 code, but may break some existing
7960 code that expects temporaries to be 80bit.
7961 .Sp
7962 This is the default choice for the x86\-64 compiler.
7963 .IP "\fBsse,387\fR" 4
7964 .IX Item "sse,387"
7965 Attempt to utilize both instruction sets at once.  This effectively double the
7966 amount of available registers and on chips with separate execution units for
7967 387 and \s-1SSE\s0 the execution resources too.  Use this option with care, as it is
7968 still experimental, because the \s-1GCC\s0 register allocator does not model separate
7969 functional units well resulting in instable performance.
7970 .RE
7971 .RS 4
7972 .RE
7973 .IP "\fB\-masm=\fR\fIdialect\fR" 4
7974 .IX Item "-masm=dialect"
7975 Output asm instructions using selected \fIdialect\fR.  Supported choices are
7976 \&\fBintel\fR or \fBatt\fR (the default one).
7977 .IP "\fB\-mieee\-fp\fR" 4
7978 .IX Item "-mieee-fp"
7979 .PD 0
7980 .IP "\fB\-mno\-ieee\-fp\fR" 4
7981 .IX Item "-mno-ieee-fp"
7982 .PD
7983 Control whether or not the compiler uses \s-1IEEE\s0 floating point
7984 comparisons.  These handle correctly the case where the result of a
7985 comparison is unordered.
7986 .IP "\fB\-msoft\-float\fR" 4
7987 .IX Item "-msoft-float"
7988 Generate output containing library calls for floating point.
7989 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC\s0.
7990 Normally the facilities of the machine's usual C compiler are used, but
7991 this can't be done directly in cross\-compilation.  You must make your
7992 own arrangements to provide suitable library functions for
7993 cross\-compilation.
7994 .Sp
7995 On machines where a function returns floating point results in the 80387
7996 register stack, some floating point opcodes may be emitted even if
7997 \&\fB\-msoft\-float\fR is used.
7998 .IP "\fB\-mno\-fp\-ret\-in\-387\fR" 4
7999 .IX Item "-mno-fp-ret-in-387"
8000 Do not use the \s-1FPU\s0 registers for return values of functions.
8001 .Sp
8002 The usual calling convention has functions return values of types
8003 \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR in an \s-1FPU\s0 register, even if there
8004 is no \s-1FPU\s0.  The idea is that the operating system should emulate
8005 an \s-1FPU\s0.
8006 .Sp
8007 The option \fB\-mno\-fp\-ret\-in\-387\fR causes such values to be returned
8008 in ordinary \s-1CPU\s0 registers instead.
8009 .IP "\fB\-mno\-fancy\-math\-387\fR" 4
8010 .IX Item "-mno-fancy-math-387"
8011 Some 387 emulators do not support the \f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR and
8012 \&\f(CW\*(C`sqrt\*(C'\fR instructions for the 387.  Specify this option to avoid
8013 generating those instructions.  This option is the default on FreeBSD,
8014 OpenBSD and NetBSD.  This option is overridden when \fB\-march\fR
8015 indicates that the target cpu will always have an \s-1FPU\s0 and so the
8016 instruction will not need emulation.  As of revision 2.6.1, these
8017 instructions are not generated unless you also use the
8018 \&\fB\-funsafe\-math\-optimizations\fR switch.
8019 .IP "\fB\-malign\-double\fR" 4
8020 .IX Item "-malign-double"
8021 .PD 0
8022 .IP "\fB\-mno\-align\-double\fR" 4
8023 .IX Item "-mno-align-double"
8024 .PD
8025 Control whether \s-1GCC\s0 aligns \f(CW\*(C`double\*(C'\fR, \f(CW\*(C`long double\*(C'\fR, and
8026 \&\f(CW\*(C`long long\*(C'\fR variables on a two word boundary or a one word
8027 boundary.  Aligning \f(CW\*(C`double\*(C'\fR variables on a two word boundary will
8028 produce code that runs somewhat faster on a \fBPentium\fR at the
8029 expense of more memory.
8030 .Sp
8031 \&\fBWarning:\fR if you use the \fB\-malign\-double\fR switch,
8032 structures containing the above types will be aligned differently than
8033 the published application binary interface specifications for the 386
8034 and will not be binary compatible with structures in code compiled
8035 without that switch.
8036 .IP "\fB\-m96bit\-long\-double\fR" 4
8037 .IX Item "-m96bit-long-double"
8038 .PD 0
8039 .IP "\fB\-m128bit\-long\-double\fR" 4
8040 .IX Item "-m128bit-long-double"
8041 .PD
8042 These switches control the size of \f(CW\*(C`long double\*(C'\fR type.  The i386
8043 application binary interface specifies the size to be 96 bits,
8044 so \fB\-m96bit\-long\-double\fR is the default in 32 bit mode.
8045 .Sp
8046 Modern architectures (Pentium and newer) would prefer \f(CW\*(C`long double\*(C'\fR
8047 to be aligned to an 8 or 16 byte boundary.  In arrays or structures
8048 conforming to the \s-1ABI\s0, this would not be possible.  So specifying a
8049 \&\fB\-m128bit\-long\-double\fR will align \f(CW\*(C`long double\*(C'\fR
8050 to a 16 byte boundary by padding the \f(CW\*(C`long double\*(C'\fR with an additional
8051 32 bit zero.
8052 .Sp
8053 In the x86\-64 compiler, \fB\-m128bit\-long\-double\fR is the default choice as
8054 its \s-1ABI\s0 specifies that \f(CW\*(C`long double\*(C'\fR is to be aligned on 16 byte boundary.
8055 .Sp
8056 Notice that neither of these options enable any extra precision over the x87
8057 standard of 80 bits for a \f(CW\*(C`long double\*(C'\fR.
8058 .Sp
8059 \&\fBWarning:\fR if you override the default value for your target \s-1ABI\s0, the
8060 structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables will change
8061 their size as well as function calling convention for function taking
8062 \&\f(CW\*(C`long double\*(C'\fR will be modified.  Hence they will not be binary
8063 compatible with arrays or structures in code compiled without that switch.
8064 .IP "\fB\-msvr3\-shlib\fR" 4
8065 .IX Item "-msvr3-shlib"
8066 .PD 0
8067 .IP "\fB\-mno\-svr3\-shlib\fR" 4
8068 .IX Item "-mno-svr3-shlib"
8069 .PD
8070 Control whether \s-1GCC\s0 places uninitialized local variables into the
8071 \&\f(CW\*(C`bss\*(C'\fR or \f(CW\*(C`data\*(C'\fR segments.  \fB\-msvr3\-shlib\fR places them
8072 into \f(CW\*(C`bss\*(C'\fR.  These options are meaningful only on System V Release 3.
8073 .IP "\fB\-mrtd\fR" 4
8074 .IX Item "-mrtd"
8075 Use a different function-calling convention, in which functions that
8076 take a fixed number of arguments return with the \f(CW\*(C`ret\*(C'\fR \fInum\fR
8077 instruction, which pops their arguments while returning.  This saves one
8078 instruction in the caller since there is no need to pop the arguments
8079 there.
8080 .Sp
8081 You can specify that an individual function is called with this calling
8082 sequence with the function attribute \fBstdcall\fR.  You can also
8083 override the \fB\-mrtd\fR option by using the function attribute
8084 \&\fBcdecl\fR.  
8085 .Sp
8086 \&\fBWarning:\fR this calling convention is incompatible with the one
8087 normally used on Unix, so you cannot use it if you need to call
8088 libraries compiled with the Unix compiler.
8089 .Sp
8090 Also, you must provide function prototypes for all functions that
8091 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
8092 otherwise incorrect code will be generated for calls to those
8093 functions.
8094 .Sp
8095 In addition, seriously incorrect code will result if you call a
8096 function with too many arguments.  (Normally, extra arguments are
8097 harmlessly ignored.)
8098 .IP "\fB\-mregparm=\fR\fInum\fR" 4
8099 .IX Item "-mregparm=num"
8100 Control how many registers are used to pass integer arguments.  By
8101 default, no registers are used to pass arguments, and at most 3
8102 registers can be used.  You can control this behavior for a specific
8103 function by using the function attribute \fBregparm\fR.
8104 .Sp
8105 \&\fBWarning:\fR if you use this switch, and
8106 \&\fInum\fR is nonzero, then you must build all modules with the same
8107 value, including any libraries.  This includes the system libraries and
8108 startup modules.
8109 .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
8110 .IX Item "-mpreferred-stack-boundary=num"
8111 Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
8112 byte boundary.  If \fB\-mpreferred\-stack\-boundary\fR is not specified,
8113 the default is 4 (16 bytes or 128 bits), except when optimizing for code
8114 size (\fB\-Os\fR), in which case the default is the minimum correct
8115 alignment (4 bytes for x86, and 8 bytes for x86\-64).
8116 .Sp
8117 On Pentium and PentiumPro, \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long double\*(C'\fR values
8118 should be aligned to an 8 byte boundary (see \fB\-malign\-double\fR) or
8119 suffer significant run time performance penalties.  On Pentium \s-1III\s0, the
8120 Streaming \s-1SIMD\s0 Extension (\s-1SSE\s0) data type \f(CW\*(C`_\|_m128\*(C'\fR suffers similar
8121 penalties if it is not 16 byte aligned.
8122 .Sp
8123 To ensure proper alignment of this values on the stack, the stack boundary
8124 must be as aligned as that required by any value stored on the stack.
8125 Further, every function must be generated such that it keeps the stack
8126 aligned.  Thus calling a function compiled with a higher preferred
8127 stack boundary from a function compiled with a lower preferred stack
8128 boundary will most likely misalign the stack.  It is recommended that
8129 libraries that use callbacks always use the default setting.
8130 .Sp
8131 This extra alignment does consume extra stack space, and generally
8132 increases code size.  Code that is sensitive to stack space usage, such
8133 as embedded systems and operating system kernels, may want to reduce the
8134 preferred alignment to \fB\-mpreferred\-stack\-boundary=2\fR.
8135 .IP "\fB\-mmmx\fR" 4
8136 .IX Item "-mmmx"
8137 .PD 0
8138 .IP "\fB\-mno\-mmx\fR" 4
8139 .IX Item "-mno-mmx"
8140 .IP "\fB\-msse\fR" 4
8141 .IX Item "-msse"
8142 .IP "\fB\-mno\-sse\fR" 4
8143 .IX Item "-mno-sse"
8144 .IP "\fB\-msse2\fR" 4
8145 .IX Item "-msse2"
8146 .IP "\fB\-mno\-sse2\fR" 4
8147 .IX Item "-mno-sse2"
8148 .IP "\fB\-msse3\fR" 4
8149 .IX Item "-msse3"
8150 .IP "\fB\-mno\-sse3\fR" 4
8151 .IX Item "-mno-sse3"
8152 .IP "\fB\-m3dnow\fR" 4
8153 .IX Item "-m3dnow"
8154 .IP "\fB\-mno\-3dnow\fR" 4
8155 .IX Item "-mno-3dnow"
8156 .PD
8157 These switches enable or disable the use of built-in functions that allow
8158 direct access to the \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0 and 3Dnow extensions of the
8159 instruction set.
8160 .Sp
8161 To have \s-1SSE/SSE2\s0 instructions generated automatically from floating-point
8162 code, see \fB\-mfpmath=sse\fR.
8163 .IP "\fB\-mpush\-args\fR" 4
8164 .IX Item "-mpush-args"
8165 .PD 0
8166 .IP "\fB\-mno\-push\-args\fR" 4
8167 .IX Item "-mno-push-args"
8168 .PD
8169 Use \s-1PUSH\s0 operations to store outgoing parameters.  This method is shorter
8170 and usually equally fast as method using \s-1SUB/MOV\s0 operations and is enabled
8171 by default.  In some cases disabling it may improve performance because of
8172 improved scheduling and reduced dependencies.
8173 .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
8174 .IX Item "-maccumulate-outgoing-args"
8175 If enabled, the maximum amount of space required for outgoing arguments will be
8176 computed in the function prologue.  This is faster on most modern CPUs
8177 because of reduced dependencies, improved scheduling and reduced stack usage
8178 when preferred stack boundary is not equal to 2.  The drawback is a notable
8179 increase in code size.  This switch implies \fB\-mno\-push\-args\fR.
8180 .IP "\fB\-mthreads\fR" 4
8181 .IX Item "-mthreads"
8182 Support thread-safe exception handling on \fBMingw32\fR.  Code that relies
8183 on thread-safe exception handling must compile and link all code with the
8184 \&\fB\-mthreads\fR option.  When compiling, \fB\-mthreads\fR defines
8185 \&\fB\-D_MT\fR; when linking, it links in a special thread helper library
8186 \&\fB\-lmingwthrd\fR which cleans up per thread exception handling data.
8187 .IP "\fB\-mno\-align\-stringops\fR" 4
8188 .IX Item "-mno-align-stringops"
8189 Do not align destination of inlined string operations.  This switch reduces
8190 code size and improves performance in case the destination is already aligned,
8191 but \s-1GCC\s0 doesn't know about it.
8192 .IP "\fB\-minline\-all\-stringops\fR" 4
8193 .IX Item "-minline-all-stringops"
8194 By default \s-1GCC\s0 inlines string operations only when destination is known to be
8195 aligned at least to 4 byte boundary.  This enables more inlining, increase code
8196 size, but may improve performance of code that depends on fast memcpy, strlen
8197 and memset for short lengths.
8198 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
8199 .IX Item "-momit-leaf-frame-pointer"
8200 Don't keep the frame pointer in a register for leaf functions.  This
8201 avoids the instructions to save, set up and restore frame pointers and
8202 makes an extra register available in leaf functions.  The option
8203 \&\fB\-fomit\-frame\-pointer\fR removes the frame pointer for all functions
8204 which might make debugging harder.
8205 .IP "\fB\-mtls\-direct\-seg\-refs\fR" 4
8206 .IX Item "-mtls-direct-seg-refs"
8207 .PD 0
8208 .IP "\fB\-mno\-tls\-direct\-seg\-refs\fR" 4
8209 .IX Item "-mno-tls-direct-seg-refs"
8210 .PD
8211 Controls whether \s-1TLS\s0 variables may be accessed with offsets from the
8212 \&\s-1TLS\s0 segment register (\f(CW%gs\fR for 32\-bit, \f(CW%fs\fR for 64\-bit),
8213 or whether the thread base pointer must be added.  Whether or not this
8214 is legal depends on the operating system, and whether it maps the
8215 segment to cover the entire \s-1TLS\s0 area.
8216 .Sp
8217 For systems that use \s-1GNU\s0 libc, the default is on.
8218 .PP
8219 These \fB\-m\fR switches are supported in addition to the above
8220 on \s-1AMD\s0 x86\-64 processors in 64\-bit environments.
8221 .IP "\fB\-m32\fR" 4
8222 .IX Item "-m32"
8223 .PD 0
8224 .IP "\fB\-m64\fR" 4
8225 .IX Item "-m64"
8226 .PD
8227 Generate code for a 32\-bit or 64\-bit environment.
8228 The 32\-bit environment sets int, long and pointer to 32 bits and
8229 generates code that runs on any i386 system.
8230 The 64\-bit environment sets int to 32 bits and long and pointer
8231 to 64 bits and generates code for \s-1AMD\s0's x86\-64 architecture.
8232 .IP "\fB\-mno\-red\-zone\fR" 4
8233 .IX Item "-mno-red-zone"
8234 Do not use a so called red zone for x86\-64 code.  The red zone is mandated
8235 by the x86\-64 \s-1ABI\s0, it is a 128\-byte area beyond the location of the
8236 stack pointer that will not be modified by signal or interrupt handlers
8237 and therefore can be used for temporary data without adjusting the stack
8238 pointer.  The flag \fB\-mno\-red\-zone\fR disables this red zone.
8239 .IP "\fB\-mcmodel=small\fR" 4
8240 .IX Item "-mcmodel=small"
8241 Generate code for the small code model: the program and its symbols must
8242 be linked in the lower 2 \s-1GB\s0 of the address space.  Pointers are 64 bits.
8243 Programs can be statically or dynamically linked.  This is the default
8244 code model.
8245 .IP "\fB\-mcmodel=kernel\fR" 4
8246 .IX Item "-mcmodel=kernel"
8247 Generate code for the kernel code model.  The kernel runs in the
8248 negative 2 \s-1GB\s0 of the address space.
8249 This model has to be used for Linux kernel code.
8250 .IP "\fB\-mcmodel=medium\fR" 4
8251 .IX Item "-mcmodel=medium"
8252 Generate code for the medium model: The program is linked in the lower 2
8253 \&\s-1GB\s0 of the address space but symbols can be located anywhere in the
8254 address space.  Programs can be statically or dynamically linked, but
8255 building of shared libraries are not supported with the medium model.
8256 .IP "\fB\-mcmodel=large\fR" 4
8257 .IX Item "-mcmodel=large"
8258 Generate code for the large model: This model makes no assumptions
8259 about addresses and sizes of sections.  Currently \s-1GCC\s0 does not implement
8260 this model.
8261 .PP
8262 \fI\s-1IA\-64\s0 Options\fR
8263 .IX Subsection "IA-64 Options"
8264 .PP
8265 These are the \fB\-m\fR options defined for the Intel \s-1IA\-64\s0 architecture.
8266 .IP "\fB\-mbig\-endian\fR" 4
8267 .IX Item "-mbig-endian"
8268 Generate code for a big endian target.  This is the default for \s-1HP\-UX\s0.
8269 .IP "\fB\-mlittle\-endian\fR" 4
8270 .IX Item "-mlittle-endian"
8271 Generate code for a little endian target.  This is the default for \s-1AIX5\s0
8272 and GNU/Linux.
8273 .IP "\fB\-mgnu\-as\fR" 4
8274 .IX Item "-mgnu-as"
8275 .PD 0
8276 .IP "\fB\-mno\-gnu\-as\fR" 4
8277 .IX Item "-mno-gnu-as"
8278 .PD
8279 Generate (or don't) code for the \s-1GNU\s0 assembler.  This is the default.
8280 .IP "\fB\-mgnu\-ld\fR" 4
8281 .IX Item "-mgnu-ld"
8282 .PD 0
8283 .IP "\fB\-mno\-gnu\-ld\fR" 4
8284 .IX Item "-mno-gnu-ld"
8285 .PD
8286 Generate (or don't) code for the \s-1GNU\s0 linker.  This is the default.
8287 .IP "\fB\-mno\-pic\fR" 4
8288 .IX Item "-mno-pic"
8289 Generate code that does not use a global pointer register.  The result
8290 is not position independent code, and violates the \s-1IA\-64\s0 \s-1ABI\s0.
8291 .IP "\fB\-mvolatile\-asm\-stop\fR" 4
8292 .IX Item "-mvolatile-asm-stop"
8293 .PD 0
8294 .IP "\fB\-mno\-volatile\-asm\-stop\fR" 4
8295 .IX Item "-mno-volatile-asm-stop"
8296 .PD
8297 Generate (or don't) a stop bit immediately before and after volatile asm
8298 statements.
8299 .IP "\fB\-mregister\-names\fR" 4
8300 .IX Item "-mregister-names"
8301 .PD 0
8302 .IP "\fB\-mno\-register\-names\fR" 4
8303 .IX Item "-mno-register-names"
8304 .PD
8305 Generate (or don't) \fBin\fR, \fBloc\fR, and \fBout\fR register names for
8306 the stacked registers.  This may make assembler output more readable.
8307 .IP "\fB\-mno\-sdata\fR" 4
8308 .IX Item "-mno-sdata"
8309 .PD 0
8310 .IP "\fB\-msdata\fR" 4
8311 .IX Item "-msdata"
8312 .PD
8313 Disable (or enable) optimizations that use the small data section.  This may
8314 be useful for working around optimizer bugs.
8315 .IP "\fB\-mconstant\-gp\fR" 4
8316 .IX Item "-mconstant-gp"
8317 Generate code that uses a single constant global pointer value.  This is
8318 useful when compiling kernel code.
8319 .IP "\fB\-mauto\-pic\fR" 4
8320 .IX Item "-mauto-pic"
8321 Generate code that is self\-relocatable.  This implies \fB\-mconstant\-gp\fR.
8322 This is useful when compiling firmware code.
8323 .IP "\fB\-minline\-float\-divide\-min\-latency\fR" 4
8324 .IX Item "-minline-float-divide-min-latency"
8325 Generate code for inline divides of floating point values
8326 using the minimum latency algorithm.
8327 .IP "\fB\-minline\-float\-divide\-max\-throughput\fR" 4
8328 .IX Item "-minline-float-divide-max-throughput"
8329 Generate code for inline divides of floating point values
8330 using the maximum throughput algorithm.
8331 .IP "\fB\-minline\-int\-divide\-min\-latency\fR" 4
8332 .IX Item "-minline-int-divide-min-latency"
8333 Generate code for inline divides of integer values
8334 using the minimum latency algorithm.
8335 .IP "\fB\-minline\-int\-divide\-max\-throughput\fR" 4
8336 .IX Item "-minline-int-divide-max-throughput"
8337 Generate code for inline divides of integer values
8338 using the maximum throughput algorithm.
8339 .IP "\fB\-minline\-sqrt\-min\-latency\fR" 4
8340 .IX Item "-minline-sqrt-min-latency"
8341 Generate code for inline square roots
8342 using the minimum latency algorithm.
8343 .IP "\fB\-minline\-sqrt\-max\-throughput\fR" 4
8344 .IX Item "-minline-sqrt-max-throughput"
8345 Generate code for inline square roots
8346 using the maximum throughput algorithm.
8347 .IP "\fB\-mno\-dwarf2\-asm\fR" 4
8348 .IX Item "-mno-dwarf2-asm"
8349 .PD 0
8350 .IP "\fB\-mdwarf2\-asm\fR" 4
8351 .IX Item "-mdwarf2-asm"
8352 .PD
8353 Don't (or do) generate assembler code for the \s-1DWARF2\s0 line number debugging
8354 info.  This may be useful when not using the \s-1GNU\s0 assembler.
8355 .IP "\fB\-mearly\-stop\-bits\fR" 4
8356 .IX Item "-mearly-stop-bits"
8357 .PD 0
8358 .IP "\fB\-mno\-early\-stop\-bits\fR" 4
8359 .IX Item "-mno-early-stop-bits"
8360 .PD
8361 Allow stop bits to be placed earlier than immediately preceding the
8362 instruction that triggered the stop bit.  This can improve instruction
8363 scheduling, but does not always do so.
8364 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
8365 .IX Item "-mfixed-range=register-range"
8366 Generate code treating the given register range as fixed registers.
8367 A fixed register is one that the register allocator can not use.  This is
8368 useful when compiling kernel code.  A register range is specified as
8369 two registers separated by a dash.  Multiple register ranges can be
8370 specified separated by a comma.
8371 .IP "\fB\-mtls\-size=\fR\fItls-size\fR" 4
8372 .IX Item "-mtls-size=tls-size"
8373 Specify bit size of immediate \s-1TLS\s0 offsets.  Valid values are 14, 22, and
8374 64.
8375 .IP "\fB\-mtune\-arch=\fR\fIcpu-type\fR" 4
8376 .IX Item "-mtune-arch=cpu-type"
8377 Tune the instruction scheduling for a particular \s-1CPU\s0, Valid values are
8378 itanium, itanium1, merced, itanium2, and mckinley.
8379 .IP "\fB\-mt\fR" 4
8380 .IX Item "-mt"
8381 .PD 0
8382 .IP "\fB\-pthread\fR" 4
8383 .IX Item "-pthread"
8384 .PD
8385 Add support for multithreading using the \s-1POSIX\s0 threads library.  This
8386 option sets flags for both the preprocessor and linker.  It does
8387 not affect the thread safety of object code produced by the compiler or
8388 that of libraries supplied with it.  These are HP-UX specific flags.
8389 .IP "\fB\-milp32\fR" 4
8390 .IX Item "-milp32"
8391 .PD 0
8392 .IP "\fB\-mlp64\fR" 4
8393 .IX Item "-mlp64"
8394 .PD
8395 Generate code for a 32\-bit or 64\-bit environment.
8396 The 32\-bit environment sets int, long and pointer to 32 bits.
8397 The 64\-bit environment sets int to 32 bits and long and pointer
8398 to 64 bits.  These are HP-UX specific flags.
8399 .PP
8400 \fIM32R/D Options\fR
8401 .IX Subsection "M32R/D Options"
8402 .PP
8403 These \fB\-m\fR options are defined for Renesas M32R/D architectures:
8404 .IP "\fB\-m32r2\fR" 4
8405 .IX Item "-m32r2"
8406 Generate code for the M32R/2.
8407 .IP "\fB\-m32rx\fR" 4
8408 .IX Item "-m32rx"
8409 Generate code for the M32R/X.
8410 .IP "\fB\-m32r\fR" 4
8411 .IX Item "-m32r"
8412 Generate code for the M32R.  This is the default.
8413 .IP "\fB\-mmodel=small\fR" 4
8414 .IX Item "-mmodel=small"
8415 Assume all objects live in the lower 16MB of memory (so that their addresses
8416 can be loaded with the \f(CW\*(C`ld24\*(C'\fR instruction), and assume all subroutines
8417 are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
8418 This is the default.
8419 .Sp
8420 The addressability of a particular object can be set with the
8421 \&\f(CW\*(C`model\*(C'\fR attribute.
8422 .IP "\fB\-mmodel=medium\fR" 4
8423 .IX Item "-mmodel=medium"
8424 Assume objects may be anywhere in the 32\-bit address space (the compiler
8425 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
8426 assume all subroutines are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
8427 .IP "\fB\-mmodel=large\fR" 4
8428 .IX Item "-mmodel=large"
8429 Assume objects may be anywhere in the 32\-bit address space (the compiler
8430 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
8431 assume subroutines may not be reachable with the \f(CW\*(C`bl\*(C'\fR instruction
8432 (the compiler will generate the much slower \f(CW\*(C`seth/add3/jl\*(C'\fR
8433 instruction sequence).
8434 .IP "\fB\-msdata=none\fR" 4
8435 .IX Item "-msdata=none"
8436 Disable use of the small data area.  Variables will be put into
8437 one of \fB.data\fR, \fBbss\fR, or \fB.rodata\fR (unless the
8438 \&\f(CW\*(C`section\*(C'\fR attribute has been specified).
8439 This is the default.
8440 .Sp
8441 The small data area consists of sections \fB.sdata\fR and \fB.sbss\fR.
8442 Objects may be explicitly put in the small data area with the
8443 \&\f(CW\*(C`section\*(C'\fR attribute using one of these sections.
8444 .IP "\fB\-msdata=sdata\fR" 4
8445 .IX Item "-msdata=sdata"
8446 Put small global and static data in the small data area, but do not
8447 generate special code to reference them.
8448 .IP "\fB\-msdata=use\fR" 4
8449 .IX Item "-msdata=use"
8450 Put small global and static data in the small data area, and generate
8451 special instructions to reference them.
8452 .IP "\fB\-G\fR \fInum\fR" 4
8453 .IX Item "-G num"
8454 Put global and static objects less than or equal to \fInum\fR bytes
8455 into the small data or bss sections instead of the normal data or bss
8456 sections.  The default value of \fInum\fR is 8.
8457 The \fB\-msdata\fR option must be set to one of \fBsdata\fR or \fBuse\fR
8458 for this option to have any effect.
8459 .Sp
8460 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
8461 Compiling with different values of \fInum\fR may or may not work; if it
8462 doesn't the linker will give an error message\-\-\-incorrect code will not be
8463 generated.
8464 .IP "\fB\-mdebug\fR" 4
8465 .IX Item "-mdebug"
8466 Makes the M32R specific code in the compiler display some statistics
8467 that might help in debugging programs.
8468 .IP "\fB\-malign\-loops\fR" 4
8469 .IX Item "-malign-loops"
8470 Align all loops to a 32\-byte boundary.
8471 .IP "\fB\-mno\-align\-loops\fR" 4
8472 .IX Item "-mno-align-loops"
8473 Do not enforce a 32\-byte alignment for loops.  This is the default.
8474 .IP "\fB\-missue\-rate=\fR\fInumber\fR" 4
8475 .IX Item "-missue-rate=number"
8476 Issue \fInumber\fR instructions per cycle.  \fInumber\fR can only be 1
8477 or 2.
8478 .IP "\fB\-mbranch\-cost=\fR\fInumber\fR" 4
8479 .IX Item "-mbranch-cost=number"
8480 \&\fInumber\fR can only be 1 or 2.  If it is 1 then branches will be
8481 preferred over conditional code, if it is 2, then the opposite will
8482 apply.
8483 .IP "\fB\-mflush\-trap=\fR\fInumber\fR" 4
8484 .IX Item "-mflush-trap=number"
8485 Specifies the trap number to use to flush the cache.  The default is
8486 12.  Valid numbers are between 0 and 15 inclusive.
8487 .IP "\fB\-mno\-flush\-trap\fR" 4
8488 .IX Item "-mno-flush-trap"
8489 Specifies that the cache cannot be flushed by using a trap.
8490 .IP "\fB\-mflush\-func=\fR\fIname\fR" 4
8491 .IX Item "-mflush-func=name"
8492 Specifies the name of the operating system function to call to flush
8493 the cache.  The default is \fI_flush_cache\fR, but a function call
8494 will only be used if a trap is not available.
8495 .IP "\fB\-mno\-flush\-func\fR" 4
8496 .IX Item "-mno-flush-func"
8497 Indicates that there is no \s-1OS\s0 function for flushing the cache.
8498 .PP
8499 \fIM680x0 Options\fR
8500 .IX Subsection "M680x0 Options"
8501 .PP
8502 These are the \fB\-m\fR options defined for the 68000 series.  The default
8503 values for these options depends on which style of 68000 was selected when
8504 the compiler was configured; the defaults for the most common choices are
8505 given below.
8506 .IP "\fB\-m68000\fR" 4
8507 .IX Item "-m68000"
8508 .PD 0
8509 .IP "\fB\-mc68000\fR" 4
8510 .IX Item "-mc68000"
8511 .PD
8512 Generate output for a 68000.  This is the default
8513 when the compiler is configured for 68000\-based systems.
8514 .Sp
8515 Use this option for microcontrollers with a 68000 or \s-1EC000\s0 core,
8516 including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
8517 .IP "\fB\-m68020\fR" 4
8518 .IX Item "-m68020"
8519 .PD 0
8520 .IP "\fB\-mc68020\fR" 4
8521 .IX Item "-mc68020"
8522 .PD
8523 Generate output for a 68020.  This is the default
8524 when the compiler is configured for 68020\-based systems.
8525 .IP "\fB\-m68881\fR" 4
8526 .IX Item "-m68881"
8527 Generate output containing 68881 instructions for floating point.
8528 This is the default for most 68020 systems unless \fB\-\-nfp\fR was
8529 specified when the compiler was configured.
8530 .IP "\fB\-m68030\fR" 4
8531 .IX Item "-m68030"
8532 Generate output for a 68030.  This is the default when the compiler is
8533 configured for 68030\-based systems.
8534 .IP "\fB\-m68040\fR" 4
8535 .IX Item "-m68040"
8536 Generate output for a 68040.  This is the default when the compiler is
8537 configured for 68040\-based systems.
8538 .Sp
8539 This option inhibits the use of 68881/68882 instructions that have to be
8540 emulated by software on the 68040.  Use this option if your 68040 does not
8541 have code to emulate those instructions.
8542 .IP "\fB\-m68060\fR" 4
8543 .IX Item "-m68060"
8544 Generate output for a 68060.  This is the default when the compiler is
8545 configured for 68060\-based systems.
8546 .Sp
8547 This option inhibits the use of 68020 and 68881/68882 instructions that
8548 have to be emulated by software on the 68060.  Use this option if your 68060
8549 does not have code to emulate those instructions.
8550 .IP "\fB\-mcpu32\fR" 4
8551 .IX Item "-mcpu32"
8552 Generate output for a \s-1CPU32\s0.  This is the default
8553 when the compiler is configured for CPU32\-based systems.
8554 .Sp
8555 Use this option for microcontrollers with a
8556 \&\s-1CPU32\s0 or \s-1CPU32+\s0 core, including the 68330, 68331, 68332, 68333, 68334,
8557 68336, 68340, 68341, 68349 and 68360.
8558 .IP "\fB\-m5200\fR" 4
8559 .IX Item "-m5200"
8560 Generate output for a 520X ``coldfire'' family cpu.  This is the default
8561 when the compiler is configured for 520X\-based systems.
8562 .Sp
8563 Use this option for microcontroller with a 5200 core, including
8564 the \s-1MCF5202\s0, \s-1MCF5203\s0, \s-1MCF5204\s0 and \s-1MCF5202\s0.
8565 .IP "\fB\-m68020\-40\fR" 4
8566 .IX Item "-m68020-40"
8567 Generate output for a 68040, without using any of the new instructions.
8568 This results in code which can run relatively efficiently on either a
8569 68020/68881 or a 68030 or a 68040.  The generated code does use the
8570 68881 instructions that are emulated on the 68040.
8571 .IP "\fB\-m68020\-60\fR" 4
8572 .IX Item "-m68020-60"
8573 Generate output for a 68060, without using any of the new instructions.
8574 This results in code which can run relatively efficiently on either a
8575 68020/68881 or a 68030 or a 68040.  The generated code does use the
8576 68881 instructions that are emulated on the 68060.
8577 .IP "\fB\-msoft\-float\fR" 4
8578 .IX Item "-msoft-float"
8579 Generate output containing library calls for floating point.
8580 \&\fBWarning:\fR the requisite libraries are not available for all m68k
8581 targets.  Normally the facilities of the machine's usual C compiler are
8582 used, but this can't be done directly in cross\-compilation.  You must
8583 make your own arrangements to provide suitable library functions for
8584 cross\-compilation.  The embedded targets \fBm68k\-*\-aout\fR and
8585 \&\fBm68k\-*\-coff\fR do provide software floating point support.
8586 .IP "\fB\-mshort\fR" 4
8587 .IX Item "-mshort"
8588 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
8589 Additionally, parameters passed on the stack are also aligned to a
8590 16\-bit boundary even on targets whose \s-1API\s0 mandates promotion to 32\-bit.
8591 .IP "\fB\-mnobitfield\fR" 4
8592 .IX Item "-mnobitfield"
8593 Do not use the bit-field instructions.  The \fB\-m68000\fR, \fB\-mcpu32\fR
8594 and \fB\-m5200\fR options imply \fB\-mnobitfield\fR.
8595 .IP "\fB\-mbitfield\fR" 4
8596 .IX Item "-mbitfield"
8597 Do use the bit-field instructions.  The \fB\-m68020\fR option implies
8598 \&\fB\-mbitfield\fR.  This is the default if you use a configuration
8599 designed for a 68020.
8600 .IP "\fB\-mrtd\fR" 4
8601 .IX Item "-mrtd"
8602 Use a different function-calling convention, in which functions
8603 that take a fixed number of arguments return with the \f(CW\*(C`rtd\*(C'\fR
8604 instruction, which pops their arguments while returning.  This
8605 saves one instruction in the caller since there is no need to pop
8606 the arguments there.
8607 .Sp
8608 This calling convention is incompatible with the one normally
8609 used on Unix, so you cannot use it if you need to call libraries
8610 compiled with the Unix compiler.
8611 .Sp
8612 Also, you must provide function prototypes for all functions that
8613 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
8614 otherwise incorrect code will be generated for calls to those
8615 functions.
8616 .Sp
8617 In addition, seriously incorrect code will result if you call a
8618 function with too many arguments.  (Normally, extra arguments are
8619 harmlessly ignored.)
8620 .Sp
8621 The \f(CW\*(C`rtd\*(C'\fR instruction is supported by the 68010, 68020, 68030,
8622 68040, 68060 and \s-1CPU32\s0 processors, but not by the 68000 or 5200.
8623 .IP "\fB\-malign\-int\fR" 4
8624 .IX Item "-malign-int"
8625 .PD 0
8626 .IP "\fB\-mno\-align\-int\fR" 4
8627 .IX Item "-mno-align-int"
8628 .PD
8629 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,
8630 \&\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
8631 boundary (\fB\-malign\-int\fR) or a 16\-bit boundary (\fB\-mno\-align\-int\fR).
8632 Aligning variables on 32\-bit boundaries produces code that runs somewhat
8633 faster on processors with 32\-bit busses at the expense of more memory.
8634 .Sp
8635 \&\fBWarning:\fR if you use the \fB\-malign\-int\fR switch, \s-1GCC\s0 will
8636 align structures containing the above types  differently than
8637 most published application binary interface specifications for the m68k.
8638 .IP "\fB\-mpcrel\fR" 4
8639 .IX Item "-mpcrel"
8640 Use the pc-relative addressing mode of the 68000 directly, instead of
8641 using a global offset table.  At present, this option implies \fB\-fpic\fR,
8642 allowing at most a 16\-bit offset for pc-relative addressing.  \fB\-fPIC\fR is
8643 not presently supported with \fB\-mpcrel\fR, though this could be supported for
8644 68020 and higher processors.
8645 .IP "\fB\-mno\-strict\-align\fR" 4
8646 .IX Item "-mno-strict-align"
8647 .PD 0
8648 .IP "\fB\-mstrict\-align\fR" 4
8649 .IX Item "-mstrict-align"
8650 .PD
8651 Do not (do) assume that unaligned memory references will be handled by
8652 the system.
8653 .IP "\fB\-msep\-data\fR" 4
8654 .IX Item "-msep-data"
8655 Generate code that allows the data segment to be located in a different
8656 area of memory from the text segment.  This allows for execute in place in
8657 an environment without virtual memory management.  This option implies
8658 \&\fB\-fPIC\fR.
8659 .IP "\fB\-mno\-sep\-data\fR" 4
8660 .IX Item "-mno-sep-data"
8661 Generate code that assumes that the data segment follows the text segment.
8662 This is the default.
8663 .IP "\fB\-mid\-shared\-library\fR" 4
8664 .IX Item "-mid-shared-library"
8665 Generate code that supports shared libraries via the library \s-1ID\s0 method.
8666 This allows for execute in place and shared libraries in an environment
8667 without virtual memory management.  This option implies \fB\-fPIC\fR.
8668 .IP "\fB\-mno\-id\-shared\-library\fR" 4
8669 .IX Item "-mno-id-shared-library"
8670 Generate code that doesn't assume \s-1ID\s0 based shared libraries are being used.
8671 This is the default.
8672 .IP "\fB\-mshared\-library\-id=n\fR" 4
8673 .IX Item "-mshared-library-id=n"
8674 Specified the identification number of the \s-1ID\s0 based shared library being
8675 compiled.  Specifying a value of 0 will generate more compact code, specifying
8676 other values will force the allocation of that number to the current
8677 library but is no more space or time efficient than omitting this option.
8678 .PP
8679 \fIM68hc1x Options\fR
8680 .IX Subsection "M68hc1x Options"
8681 .PP
8682 These are the \fB\-m\fR options defined for the 68hc11 and 68hc12
8683 microcontrollers.  The default values for these options depends on
8684 which style of microcontroller was selected when the compiler was configured;
8685 the defaults for the most common choices are given below.
8686 .IP "\fB\-m6811\fR" 4
8687 .IX Item "-m6811"
8688 .PD 0
8689 .IP "\fB\-m68hc11\fR" 4
8690 .IX Item "-m68hc11"
8691 .PD
8692 Generate output for a 68HC11.  This is the default
8693 when the compiler is configured for 68HC11\-based systems.
8694 .IP "\fB\-m6812\fR" 4
8695 .IX Item "-m6812"
8696 .PD 0
8697 .IP "\fB\-m68hc12\fR" 4
8698 .IX Item "-m68hc12"
8699 .PD
8700 Generate output for a 68HC12.  This is the default
8701 when the compiler is configured for 68HC12\-based systems.
8702 .IP "\fB\-m68S12\fR" 4
8703 .IX Item "-m68S12"
8704 .PD 0
8705 .IP "\fB\-m68hcs12\fR" 4
8706 .IX Item "-m68hcs12"
8707 .PD
8708 Generate output for a 68HCS12.
8709 .IP "\fB\-mauto\-incdec\fR" 4
8710 .IX Item "-mauto-incdec"
8711 Enable the use of 68HC12 pre and post auto-increment and auto-decrement
8712 addressing modes.
8713 .IP "\fB\-minmax\fR" 4
8714 .IX Item "-minmax"
8715 .PD 0
8716 .IP "\fB\-nominmax\fR" 4
8717 .IX Item "-nominmax"
8718 .PD
8719 Enable the use of 68HC12 min and max instructions.
8720 .IP "\fB\-mlong\-calls\fR" 4
8721 .IX Item "-mlong-calls"
8722 .PD 0
8723 .IP "\fB\-mno\-long\-calls\fR" 4
8724 .IX Item "-mno-long-calls"
8725 .PD
8726 Treat all calls as being far away (near).  If calls are assumed to be
8727 far away, the compiler will use the \f(CW\*(C`call\*(C'\fR instruction to
8728 call a function and the \f(CW\*(C`rtc\*(C'\fR instruction for returning.
8729 .IP "\fB\-mshort\fR" 4
8730 .IX Item "-mshort"
8731 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
8732 .IP "\fB\-msoft\-reg\-count=\fR\fIcount\fR" 4
8733 .IX Item "-msoft-reg-count=count"
8734 Specify the number of pseudo-soft registers which are used for the
8735 code generation.  The maximum number is 32.  Using more pseudo-soft
8736 register may or may not result in better code depending on the program.
8737 The default is 4 for 68HC11 and 2 for 68HC12.
8738 .PP
8739 \fIMCore Options\fR
8740 .IX Subsection "MCore Options"
8741 .PP
8742 These are the \fB\-m\fR options defined for the Motorola M*Core
8743 processors.
8744 .IP "\fB\-mhardlit\fR" 4
8745 .IX Item "-mhardlit"
8746 .PD 0
8747 .IP "\fB\-mno\-hardlit\fR" 4
8748 .IX Item "-mno-hardlit"
8749 .PD
8750 Inline constants into the code stream if it can be done in two
8751 instructions or less.
8752 .IP "\fB\-mdiv\fR" 4
8753 .IX Item "-mdiv"
8754 .PD 0
8755 .IP "\fB\-mno\-div\fR" 4
8756 .IX Item "-mno-div"
8757 .PD
8758 Use the divide instruction.  (Enabled by default).
8759 .IP "\fB\-mrelax\-immediate\fR" 4
8760 .IX Item "-mrelax-immediate"
8761 .PD 0
8762 .IP "\fB\-mno\-relax\-immediate\fR" 4
8763 .IX Item "-mno-relax-immediate"
8764 .PD
8765 Allow arbitrary sized immediates in bit operations.
8766 .IP "\fB\-mwide\-bitfields\fR" 4
8767 .IX Item "-mwide-bitfields"
8768 .PD 0
8769 .IP "\fB\-mno\-wide\-bitfields\fR" 4
8770 .IX Item "-mno-wide-bitfields"
8771 .PD
8772 Always treat bit-fields as int\-sized.
8773 .IP "\fB\-m4byte\-functions\fR" 4
8774 .IX Item "-m4byte-functions"
8775 .PD 0
8776 .IP "\fB\-mno\-4byte\-functions\fR" 4
8777 .IX Item "-mno-4byte-functions"
8778 .PD
8779 Force all functions to be aligned to a four byte boundary.
8780 .IP "\fB\-mcallgraph\-data\fR" 4
8781 .IX Item "-mcallgraph-data"
8782 .PD 0
8783 .IP "\fB\-mno\-callgraph\-data\fR" 4
8784 .IX Item "-mno-callgraph-data"
8785 .PD
8786 Emit callgraph information.
8787 .IP "\fB\-mslow\-bytes\fR" 4
8788 .IX Item "-mslow-bytes"
8789 .PD 0
8790 .IP "\fB\-mno\-slow\-bytes\fR" 4
8791 .IX Item "-mno-slow-bytes"
8792 .PD
8793 Prefer word access when reading byte quantities.
8794 .IP "\fB\-mlittle\-endian\fR" 4
8795 .IX Item "-mlittle-endian"
8796 .PD 0
8797 .IP "\fB\-mbig\-endian\fR" 4
8798 .IX Item "-mbig-endian"
8799 .PD
8800 Generate code for a little endian target.
8801 .IP "\fB\-m210\fR" 4
8802 .IX Item "-m210"
8803 .PD 0
8804 .IP "\fB\-m340\fR" 4
8805 .IX Item "-m340"
8806 .PD
8807 Generate code for the 210 processor.
8808 .PP
8809 \fI\s-1MIPS\s0 Options\fR
8810 .IX Subsection "MIPS Options"
8811 .IP "\fB\-EB\fR" 4
8812 .IX Item "-EB"
8813 Generate big-endian code.
8814 .IP "\fB\-EL\fR" 4
8815 .IX Item "-EL"
8816 Generate little-endian code.  This is the default for \fBmips*el\-*\-*\fR
8817 configurations.
8818 .IP "\fB\-march=\fR\fIarch\fR" 4
8819 .IX Item "-march=arch"
8820 Generate code that will run on \fIarch\fR, which can be the name of a
8821 generic \s-1MIPS\s0 \s-1ISA\s0, or the name of a particular processor.
8822 The \s-1ISA\s0 names are:
8823 \&\fBmips1\fR, \fBmips2\fR, \fBmips3\fR, \fBmips4\fR,
8824 \&\fBmips32\fR, \fBmips32r2\fR, and \fBmips64\fR.
8825 The processor names are:
8826 \&\fB4kc\fR, \fB4kp\fR, \fB5kc\fR, \fB20kc\fR,
8827 \&\fBm4k\fR,
8828 \&\fBr2000\fR, \fBr3000\fR, \fBr3900\fR, \fBr4000\fR, \fBr4400\fR,
8829 \&\fBr4600\fR, \fBr4650\fR, \fBr6000\fR, \fBr8000\fR, \fBrm7000\fR,
8830 \&\fBrm9000\fR,
8831 \&\fBorion\fR,
8832 \&\fBsb1\fR,
8833 \&\fBvr4100\fR, \fBvr4111\fR, \fBvr4120\fR, \fBvr4130\fR, \fBvr4300\fR,
8834 \&\fBvr5000\fR, \fBvr5400\fR and \fBvr5500\fR.
8835 The special value \fBfrom-abi\fR selects the
8836 most compatible architecture for the selected \s-1ABI\s0 (that is,
8837 \&\fBmips1\fR for 32\-bit ABIs and \fBmips3\fR for 64\-bit ABIs).
8838 .Sp
8839 In processor names, a final \fB000\fR can be abbreviated as \fBk\fR
8840 (for example, \fB\-march=r2k\fR).  Prefixes are optional, and
8841 \&\fBvr\fR may be written \fBr\fR.
8842 .Sp
8843 \&\s-1GCC\s0 defines two macros based on the value of this option.  The first
8844 is \fB_MIPS_ARCH\fR, which gives the name of target architecture, as
8845 a string.  The second has the form \fB_MIPS_ARCH_\fR\fIfoo\fR,
8846 where \fIfoo\fR is the capitalized value of \fB_MIPS_ARCH\fR.
8847 For example, \fB\-march=r2000\fR will set \fB_MIPS_ARCH\fR
8848 to \fB\*(L"r2000\*(R"\fR and define the macro \fB_MIPS_ARCH_R2000\fR.
8849 .Sp
8850 Note that the \fB_MIPS_ARCH\fR macro uses the processor names given
8851 above.  In other words, it will have the full prefix and will not
8852 abbreviate \fB000\fR as \fBk\fR.  In the case of \fBfrom-abi\fR,
8853 the macro names the resolved architecture (either \fB\*(L"mips1\*(R"\fR or
8854 \&\fB\*(L"mips3\*(R"\fR).  It names the default architecture when no
8855 \&\fB\-march\fR option is given.
8856 .IP "\fB\-mtune=\fR\fIarch\fR" 4
8857 .IX Item "-mtune=arch"
8858 Optimize for \fIarch\fR.  Among other things, this option controls
8859 the way instructions are scheduled, and the perceived cost of arithmetic
8860 operations.  The list of \fIarch\fR values is the same as for
8861 \&\fB\-march\fR.
8862 .Sp
8863 When this option is not used, \s-1GCC\s0 will optimize for the processor
8864 specified by \fB\-march\fR.  By using \fB\-march\fR and
8865 \&\fB\-mtune\fR together, it is possible to generate code that will
8866 run on a family of processors, but optimize the code for one
8867 particular member of that family.
8868 .Sp
8869 \&\fB\-mtune\fR defines the macros \fB_MIPS_TUNE\fR and
8870 \&\fB_MIPS_TUNE_\fR\fIfoo\fR, which work in the same way as the
8871 \&\fB\-march\fR ones described above.
8872 .IP "\fB\-mips1\fR" 4
8873 .IX Item "-mips1"
8874 Equivalent to \fB\-march=mips1\fR.
8875 .IP "\fB\-mips2\fR" 4
8876 .IX Item "-mips2"
8877 Equivalent to \fB\-march=mips2\fR.
8878 .IP "\fB\-mips3\fR" 4
8879 .IX Item "-mips3"
8880 Equivalent to \fB\-march=mips3\fR.
8881 .IP "\fB\-mips4\fR" 4
8882 .IX Item "-mips4"
8883 Equivalent to \fB\-march=mips4\fR.
8884 .IP "\fB\-mips32\fR" 4
8885 .IX Item "-mips32"
8886 Equivalent to \fB\-march=mips32\fR.
8887 .IP "\fB\-mips32r2\fR" 4
8888 .IX Item "-mips32r2"
8889 Equivalent to \fB\-march=mips32r2\fR.
8890 .IP "\fB\-mips64\fR" 4
8891 .IX Item "-mips64"
8892 Equivalent to \fB\-march=mips64\fR.
8893 .IP "\fB\-mips16\fR" 4
8894 .IX Item "-mips16"
8895 .PD 0
8896 .IP "\fB\-mno\-mips16\fR" 4
8897 .IX Item "-mno-mips16"
8898 .PD
8899 Use (do not use) the \s-1MIPS16\s0 \s-1ISA\s0.
8900 .IP "\fB\-mabi=32\fR" 4
8901 .IX Item "-mabi=32"
8902 .PD 0
8903 .IP "\fB\-mabi=o64\fR" 4
8904 .IX Item "-mabi=o64"
8905 .IP "\fB\-mabi=n32\fR" 4
8906 .IX Item "-mabi=n32"
8907 .IP "\fB\-mabi=64\fR" 4
8908 .IX Item "-mabi=64"
8909 .IP "\fB\-mabi=eabi\fR" 4
8910 .IX Item "-mabi=eabi"
8911 .PD
8912 Generate code for the given \s-1ABI\s0.
8913 .Sp
8914 Note that the \s-1EABI\s0 has a 32\-bit and a 64\-bit variant.  \s-1GCC\s0 normally
8915 generates 64\-bit code when you select a 64\-bit architecture, but you
8916 can use \fB\-mgp32\fR to get 32\-bit code instead.
8917 .Sp
8918 For information about the O64 \s-1ABI\s0, see
8919 <\fBhttp://gcc.gnu.org/projects/mipso64\-abi.html\fR>.
8920 .IP "\fB\-mabicalls\fR" 4
8921 .IX Item "-mabicalls"
8922 .PD 0
8923 .IP "\fB\-mno\-abicalls\fR" 4
8924 .IX Item "-mno-abicalls"
8925 .PD
8926 Generate (do not generate) SVR4\-style position-independent code.
8927 \&\fB\-mabicalls\fR is the default for SVR4\-based systems.
8928 .IP "\fB\-mxgot\fR" 4
8929 .IX Item "-mxgot"
8930 .PD 0
8931 .IP "\fB\-mno\-xgot\fR" 4
8932 .IX Item "-mno-xgot"
8933 .PD
8934 Lift (do not lift) the usual restrictions on the size of the global
8935 offset table.
8936 .Sp
8937 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT\s0.
8938 While this is relatively efficient, it will only work if the \s-1GOT\s0
8939 is smaller than about 64k.  Anything larger will cause the linker
8940 to report an error such as:
8941 .Sp
8942 .Vb 1
8943 \&        relocation truncated to fit: R_MIPS_GOT16 foobar
8944 .Ve
8945 .Sp
8946 If this happens, you should recompile your code with \fB\-mxgot\fR.
8947 It should then work with very large GOTs, although it will also be
8948 less efficient, since it will take three instructions to fetch the
8949 value of a global symbol.
8950 .Sp
8951 Note that some linkers can create multiple GOTs.  If you have such a
8952 linker, you should only need to use \fB\-mxgot\fR when a single object
8953 file accesses more than 64k's worth of \s-1GOT\s0 entries.  Very few do.
8954 .Sp
8955 These options have no effect unless \s-1GCC\s0 is generating position
8956 independent code.
8957 .IP "\fB\-mgp32\fR" 4
8958 .IX Item "-mgp32"
8959 Assume that general-purpose registers are 32 bits wide.
8960 .IP "\fB\-mgp64\fR" 4
8961 .IX Item "-mgp64"
8962 Assume that general-purpose registers are 64 bits wide.
8963 .IP "\fB\-mfp32\fR" 4
8964 .IX Item "-mfp32"
8965 Assume that floating-point registers are 32 bits wide.
8966 .IP "\fB\-mfp64\fR" 4
8967 .IX Item "-mfp64"
8968 Assume that floating-point registers are 64 bits wide.
8969 .IP "\fB\-mhard\-float\fR" 4
8970 .IX Item "-mhard-float"
8971 Use floating-point coprocessor instructions.
8972 .IP "\fB\-msoft\-float\fR" 4
8973 .IX Item "-msoft-float"
8974 Do not use floating-point coprocessor instructions.  Implement
8975 floating-point calculations using library calls instead.
8976 .IP "\fB\-msingle\-float\fR" 4
8977 .IX Item "-msingle-float"
8978 Assume that the floating-point coprocessor only supports single-precision
8979 operations.
8980 .IP "\fB\-mdouble\-float\fR" 4
8981 .IX Item "-mdouble-float"
8982 Assume that the floating-point coprocessor supports double-precision
8983 operations.  This is the default.
8984 .IP "\fB\-mpaired\-single\fR" 4
8985 .IX Item "-mpaired-single"
8986 .PD 0
8987 .IP "\fB\-mno\-paired\-single\fR" 4
8988 .IX Item "-mno-paired-single"
8989 .PD
8990 Use (do not use) paired-single floating-point instructions.
8991   This option can only be used
8992 when generating 64\-bit code and requires hardware floating-point
8993 support to be enabled.
8994 .IP "\fB\-mips3d\fR" 4
8995 .IX Item "-mips3d"
8996 .PD 0
8997 .IP "\fB\-mno\-mips3d\fR" 4
8998 .IX Item "-mno-mips3d"
8999 .PD
9000 Use (do not use) the \s-1MIPS\-3D\s0 \s-1ASE\s0.  
9001 The option \fB\-mips3d\fR implies \fB\-mpaired\-single\fR.
9002 .IP "\fB\-mint64\fR" 4
9003 .IX Item "-mint64"
9004 Force \f(CW\*(C`int\*(C'\fR and \f(CW\*(C`long\*(C'\fR types to be 64 bits wide.  See
9005 \&\fB\-mlong32\fR for an explanation of the default and the way
9006 that the pointer size is determined.
9007 .Sp
9008 This option has been deprecated and will be removed in a future release.
9009 .IP "\fB\-mlong64\fR" 4
9010 .IX Item "-mlong64"
9011 Force \f(CW\*(C`long\*(C'\fR types to be 64 bits wide.  See \fB\-mlong32\fR for
9012 an explanation of the default and the way that the pointer size is
9013 determined.
9014 .IP "\fB\-mlong32\fR" 4
9015 .IX Item "-mlong32"
9016 Force \f(CW\*(C`long\*(C'\fR, \f(CW\*(C`int\*(C'\fR, and pointer types to be 32 bits wide.
9017 .Sp
9018 The default size of \f(CW\*(C`int\*(C'\fRs, \f(CW\*(C`long\*(C'\fRs and pointers depends on
9019 the \s-1ABI\s0.  All the supported ABIs use 32\-bit \f(CW\*(C`int\*(C'\fRs.  The n64 \s-1ABI\s0
9020 uses 64\-bit \f(CW\*(C`long\*(C'\fRs, as does the 64\-bit \s-1EABI\s0; the others use
9021 32\-bit \f(CW\*(C`long\*(C'\fRs.  Pointers are the same size as \f(CW\*(C`long\*(C'\fRs,
9022 or the same size as integer registers, whichever is smaller.
9023 .IP "\fB\-msym32\fR" 4
9024 .IX Item "-msym32"
9025 .PD 0
9026 .IP "\fB\-mno\-sym32\fR" 4
9027 .IX Item "-mno-sym32"
9028 .PD
9029 Assume (do not assume) that all symbols have 32\-bit values, regardless
9030 of the selected \s-1ABI\s0.  This option is useful in combination with
9031 \&\fB\-mabi=64\fR and \fB\-mno\-abicalls\fR because it allows \s-1GCC\s0
9032 to generate shorter and faster references to symbolic addresses.
9033 .IP "\fB\-G\fR \fInum\fR" 4
9034 .IX Item "-G num"
9035 Put global and static items less than or equal to \fInum\fR bytes into
9036 the small data or bss section instead of the normal data or bss section.
9037 This allows the data to be accessed using a single instruction.
9038 .Sp
9039 All modules should be compiled with the same \fB\-G\fR \fInum\fR
9040 value.
9041 .IP "\fB\-membedded\-data\fR" 4
9042 .IX Item "-membedded-data"
9043 .PD 0
9044 .IP "\fB\-mno\-embedded\-data\fR" 4
9045 .IX Item "-mno-embedded-data"
9046 .PD
9047 Allocate variables to the read-only data section first if possible, then
9048 next in the small data section if possible, otherwise in data.  This gives
9049 slightly slower code than the default, but reduces the amount of \s-1RAM\s0 required
9050 when executing, and thus may be preferred for some embedded systems.
9051 .IP "\fB\-muninit\-const\-in\-rodata\fR" 4
9052 .IX Item "-muninit-const-in-rodata"
9053 .PD 0
9054 .IP "\fB\-mno\-uninit\-const\-in\-rodata\fR" 4
9055 .IX Item "-mno-uninit-const-in-rodata"
9056 .PD
9057 Put uninitialized \f(CW\*(C`const\*(C'\fR variables in the read-only data section.
9058 This option is only meaningful in conjunction with \fB\-membedded\-data\fR.
9059 .IP "\fB\-msplit\-addresses\fR" 4
9060 .IX Item "-msplit-addresses"
9061 .PD 0
9062 .IP "\fB\-mno\-split\-addresses\fR" 4
9063 .IX Item "-mno-split-addresses"
9064 .PD
9065 Enable (disable) use of the \f(CW\*(C`%hi()\*(C'\fR and \f(CW\*(C`%lo()\*(C'\fR assembler
9066 relocation operators.  This option has been superseded by
9067 \&\fB\-mexplicit\-relocs\fR but is retained for backwards compatibility.
9068 .IP "\fB\-mexplicit\-relocs\fR" 4
9069 .IX Item "-mexplicit-relocs"
9070 .PD 0
9071 .IP "\fB\-mno\-explicit\-relocs\fR" 4
9072 .IX Item "-mno-explicit-relocs"
9073 .PD
9074 Use (do not use) assembler relocation operators when dealing with symbolic
9075 addresses.  The alternative, selected by \fB\-mno\-explicit\-relocs\fR,
9076 is to use assembler macros instead.
9077 .Sp
9078 \&\fB\-mexplicit\-relocs\fR is the default if \s-1GCC\s0 was configured
9079 to use an assembler that supports relocation operators.
9080 .IP "\fB\-mcheck\-zero\-division\fR" 4
9081 .IX Item "-mcheck-zero-division"
9082 .PD 0
9083 .IP "\fB\-mno\-check\-zero\-division\fR" 4
9084 .IX Item "-mno-check-zero-division"
9085 .PD
9086 Trap (do not trap) on integer division by zero.  The default is
9087 \&\fB\-mcheck\-zero\-division\fR.
9088 .IP "\fB\-mdivide\-traps\fR" 4
9089 .IX Item "-mdivide-traps"
9090 .PD 0
9091 .IP "\fB\-mdivide\-breaks\fR" 4
9092 .IX Item "-mdivide-breaks"
9093 .PD
9094 \&\s-1MIPS\s0 systems check for division by zero by generating either a
9095 conditional trap or a break instruction.  Using traps results in
9096 smaller code, but is only supported on \s-1MIPS\s0 \s-1II\s0 and later.  Also, some
9097 versions of the Linux kernel have a bug that prevents trap from
9098 generating the proper signal (\f(CW\*(C`SIGFPE\*(C'\fR).  Use \fB\-mdivide\-traps\fR to
9099 allow conditional traps on architectures that support them and
9100 \&\fB\-mdivide\-breaks\fR to force the use of breaks.
9101 .Sp
9102 The default is usually \fB\-mdivide\-traps\fR, but this can be
9103 overridden at configure time using \fB\-\-with\-divide=breaks\fR.
9104 Divide-by-zero checks can be completely disabled using
9105 \&\fB\-mno\-check\-zero\-division\fR.
9106 .IP "\fB\-mmemcpy\fR" 4
9107 .IX Item "-mmemcpy"
9108 .PD 0
9109 .IP "\fB\-mno\-memcpy\fR" 4
9110 .IX Item "-mno-memcpy"
9111 .PD
9112 Force (do not force) the use of \f(CW\*(C`memcpy()\*(C'\fR for non-trivial block
9113 moves.  The default is \fB\-mno\-memcpy\fR, which allows \s-1GCC\s0 to inline
9114 most constant-sized copies.
9115 .IP "\fB\-mlong\-calls\fR" 4
9116 .IX Item "-mlong-calls"
9117 .PD 0
9118 .IP "\fB\-mno\-long\-calls\fR" 4
9119 .IX Item "-mno-long-calls"
9120 .PD
9121 Disable (do not disable) use of the \f(CW\*(C`jal\*(C'\fR instruction.  Calling
9122 functions using \f(CW\*(C`jal\*(C'\fR is more efficient but requires the caller
9123 and callee to be in the same 256 megabyte segment.
9124 .Sp
9125 This option has no effect on abicalls code.  The default is
9126 \&\fB\-mno\-long\-calls\fR.
9127 .IP "\fB\-mmad\fR" 4
9128 .IX Item "-mmad"
9129 .PD 0
9130 .IP "\fB\-mno\-mad\fR" 4
9131 .IX Item "-mno-mad"
9132 .PD
9133 Enable (disable) use of the \f(CW\*(C`mad\*(C'\fR, \f(CW\*(C`madu\*(C'\fR and \f(CW\*(C`mul\*(C'\fR
9134 instructions, as provided by the R4650 \s-1ISA\s0.
9135 .IP "\fB\-mfused\-madd\fR" 4
9136 .IX Item "-mfused-madd"
9137 .PD 0
9138 .IP "\fB\-mno\-fused\-madd\fR" 4
9139 .IX Item "-mno-fused-madd"
9140 .PD
9141 Enable (disable) use of the floating point multiply-accumulate
9142 instructions, when they are available.  The default is
9143 \&\fB\-mfused\-madd\fR.
9144 .Sp
9145 When multiply-accumulate instructions are used, the intermediate
9146 product is calculated to infinite precision and is not subject to
9147 the \s-1FCSR\s0 Flush to Zero bit.  This may be undesirable in some
9148 circumstances.
9149 .IP "\fB\-nocpp\fR" 4
9150 .IX Item "-nocpp"
9151 Tell the \s-1MIPS\s0 assembler to not run its preprocessor over user
9152 assembler files (with a \fB.s\fR suffix) when assembling them.
9153 .IP "\fB\-mfix\-r4000\fR" 4
9154 .IX Item "-mfix-r4000"
9155 .PD 0
9156 .IP "\fB\-mno\-fix\-r4000\fR" 4
9157 .IX Item "-mno-fix-r4000"
9158 .PD
9159 Work around certain R4000 \s-1CPU\s0 errata:
9160 .RS 4
9161 .IP "\-" 4
9162 A double-word or a variable shift may give an incorrect result if executed
9163 immediately after starting an integer division.
9164 .IP "\-" 4
9165 A double-word or a variable shift may give an incorrect result if executed
9166 while an integer multiplication is in progress.
9167 .IP "\-" 4
9168 An integer division may give an incorrect result if started in a delay slot
9169 of a taken branch or a jump.
9170 .RE
9171 .RS 4
9172 .RE
9173 .IP "\fB\-mfix\-r4400\fR" 4
9174 .IX Item "-mfix-r4400"
9175 .PD 0
9176 .IP "\fB\-mno\-fix\-r4400\fR" 4
9177 .IX Item "-mno-fix-r4400"
9178 .PD
9179 Work around certain R4400 \s-1CPU\s0 errata:
9180 .RS 4
9181 .IP "\-" 4
9182 A double-word or a variable shift may give an incorrect result if executed
9183 immediately after starting an integer division.
9184 .RE
9185 .RS 4
9186 .RE
9187 .IP "\fB\-mfix\-vr4120\fR" 4
9188 .IX Item "-mfix-vr4120"
9189 .PD 0
9190 .IP "\fB\-mno\-fix\-vr4120\fR" 4
9191 .IX Item "-mno-fix-vr4120"
9192 .PD
9193 Work around certain \s-1VR4120\s0 errata:
9194 .RS 4
9195 .IP "\-" 4
9196 \&\f(CW\*(C`dmultu\*(C'\fR does not always produce the correct result.
9197 .IP "\-" 4
9198 \&\f(CW\*(C`div\*(C'\fR and \f(CW\*(C`ddiv\*(C'\fR do not always produce the correct result if one
9199 of the operands is negative.
9200 .RE
9201 .RS 4
9202 .Sp
9203 The workarounds for the division errata rely on special functions in
9204 \&\fIlibgcc.a\fR.  At present, these functions are only provided by
9205 the \f(CW\*(C`mips64vr*\-elf\*(C'\fR configurations.
9206 .Sp
9207 Other \s-1VR4120\s0 errata require a nop to be inserted between certain pairs of
9208 instructions.  These errata are handled by the assembler, not by \s-1GCC\s0 itself.
9209 .RE
9210 .IP "\fB\-mfix\-vr4130\fR" 4
9211 .IX Item "-mfix-vr4130"
9212 Work around the \s-1VR4130\s0 \f(CW\*(C`mflo\*(C'\fR/\f(CW\*(C`mfhi\*(C'\fR errata.  The
9213 workarounds are implemented by the assembler rather than by \s-1GCC\s0,
9214 although \s-1GCC\s0 will avoid using \f(CW\*(C`mflo\*(C'\fR and \f(CW\*(C`mfhi\*(C'\fR if the
9215 \&\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
9216 instructions are available instead.
9217 .IP "\fB\-mfix\-sb1\fR" 4
9218 .IX Item "-mfix-sb1"
9219 .PD 0
9220 .IP "\fB\-mno\-fix\-sb1\fR" 4
9221 .IX Item "-mno-fix-sb1"
9222 .PD
9223 Work around certain \s-1SB\-1\s0 \s-1CPU\s0 core errata.
9224 (This flag currently works around the \s-1SB\-1\s0 revision 2
9225 ``F1'' and ``F2'' floating point errata.)
9226 .IP "\fB\-mflush\-func=\fR\fIfunc\fR" 4
9227 .IX Item "-mflush-func=func"
9228 .PD 0
9229 .IP "\fB\-mno\-flush\-func\fR" 4
9230 .IX Item "-mno-flush-func"
9231 .PD
9232 Specifies the function to call to flush the I and D caches, or to not
9233 call any such function.  If called, the function must take the same
9234 arguments as the common \f(CW\*(C`_flush_func()\*(C'\fR, that is, the address of the
9235 memory range for which the cache is being flushed, the size of the
9236 memory range, and the number 3 (to flush both caches).  The default
9237 depends on the target \s-1GCC\s0 was configured for, but commonly is either
9238 \&\fB_flush_func\fR or \fB_\|_cpu_flush\fR.
9239 .IP "\fB\-mbranch\-likely\fR" 4
9240 .IX Item "-mbranch-likely"
9241 .PD 0
9242 .IP "\fB\-mno\-branch\-likely\fR" 4
9243 .IX Item "-mno-branch-likely"
9244 .PD
9245 Enable or disable use of Branch Likely instructions, regardless of the
9246 default for the selected architecture.  By default, Branch Likely
9247 instructions may be generated if they are supported by the selected
9248 architecture.  An exception is for the \s-1MIPS32\s0 and \s-1MIPS64\s0 architectures
9249 and processors which implement those architectures; for those, Branch
9250 Likely instructions will not be generated by default because the \s-1MIPS32\s0
9251 and \s-1MIPS64\s0 architectures specifically deprecate their use.
9252 .IP "\fB\-mfp\-exceptions\fR" 4
9253 .IX Item "-mfp-exceptions"
9254 .PD 0
9255 .IP "\fB\-mno\-fp\-exceptions\fR" 4
9256 .IX Item "-mno-fp-exceptions"
9257 .PD
9258 Specifies whether \s-1FP\s0 exceptions are enabled.  This affects how we schedule
9259 \&\s-1FP\s0 instructions for some processors.  The default is that \s-1FP\s0 exceptions are
9260 enabled.
9261 .Sp
9262 For instance, on the \s-1SB\-1\s0, if \s-1FP\s0 exceptions are disabled, and we are emitting
9263 64\-bit code, then we can use both \s-1FP\s0 pipes.  Otherwise, we can only use one
9264 \&\s-1FP\s0 pipe.
9265 .IP "\fB\-mvr4130\-align\fR" 4
9266 .IX Item "-mvr4130-align"
9267 .PD 0
9268 .IP "\fB\-mno\-vr4130\-align\fR" 4
9269 .IX Item "-mno-vr4130-align"
9270 .PD
9271 The \s-1VR4130\s0 pipeline is two-way superscalar, but can only issue two
9272 instructions together if the first one is 8\-byte aligned.  When this
9273 option is enabled, \s-1GCC\s0 will align pairs of instructions that it
9274 thinks should execute in parallel.
9275 .Sp
9276 This option only has an effect when optimizing for the \s-1VR4130\s0.
9277 It normally makes code faster, but at the expense of making it bigger.
9278 It is enabled by default at optimization level \fB\-O3\fR.
9279 .PP
9280 \fI\s-1MMIX\s0 Options\fR
9281 .IX Subsection "MMIX Options"
9282 .PP
9283 These options are defined for the \s-1MMIX:\s0
9284 .IP "\fB\-mlibfuncs\fR" 4
9285 .IX Item "-mlibfuncs"
9286 .PD 0
9287 .IP "\fB\-mno\-libfuncs\fR" 4
9288 .IX Item "-mno-libfuncs"
9289 .PD
9290 Specify that intrinsic library functions are being compiled, passing all
9291 values in registers, no matter the size.
9292 .IP "\fB\-mepsilon\fR" 4
9293 .IX Item "-mepsilon"
9294 .PD 0
9295 .IP "\fB\-mno\-epsilon\fR" 4
9296 .IX Item "-mno-epsilon"
9297 .PD
9298 Generate floating-point comparison instructions that compare with respect
9299 to the \f(CW\*(C`rE\*(C'\fR epsilon register.
9300 .IP "\fB\-mabi=mmixware\fR" 4
9301 .IX Item "-mabi=mmixware"
9302 .PD 0
9303 .IP "\fB\-mabi=gnu\fR" 4
9304 .IX Item "-mabi=gnu"
9305 .PD
9306 Generate code that passes function parameters and return values that (in
9307 the called function) are seen as registers \f(CW$0\fR and up, as opposed to
9308 the \s-1GNU\s0 \s-1ABI\s0 which uses global registers \f(CW$231\fR and up.
9309 .IP "\fB\-mzero\-extend\fR" 4
9310 .IX Item "-mzero-extend"
9311 .PD 0
9312 .IP "\fB\-mno\-zero\-extend\fR" 4
9313 .IX Item "-mno-zero-extend"
9314 .PD
9315 When reading data from memory in sizes shorter than 64 bits, use (do not
9316 use) zero-extending load instructions by default, rather than
9317 sign-extending ones.
9318 .IP "\fB\-mknuthdiv\fR" 4
9319 .IX Item "-mknuthdiv"
9320 .PD 0
9321 .IP "\fB\-mno\-knuthdiv\fR" 4
9322 .IX Item "-mno-knuthdiv"
9323 .PD
9324 Make the result of a division yielding a remainder have the same sign as
9325 the divisor.  With the default, \fB\-mno\-knuthdiv\fR, the sign of the
9326 remainder follows the sign of the dividend.  Both methods are
9327 arithmetically valid, the latter being almost exclusively used.
9328 .IP "\fB\-mtoplevel\-symbols\fR" 4
9329 .IX Item "-mtoplevel-symbols"
9330 .PD 0
9331 .IP "\fB\-mno\-toplevel\-symbols\fR" 4
9332 .IX Item "-mno-toplevel-symbols"
9333 .PD
9334 Prepend (do not prepend) a \fB:\fR to all global symbols, so the assembly
9335 code can be used with the \f(CW\*(C`PREFIX\*(C'\fR assembly directive.
9336 .IP "\fB\-melf\fR" 4
9337 .IX Item "-melf"
9338 Generate an executable in the \s-1ELF\s0 format, rather than the default
9339 \&\fBmmo\fR format used by the \fBmmix\fR simulator.
9340 .IP "\fB\-mbranch\-predict\fR" 4
9341 .IX Item "-mbranch-predict"
9342 .PD 0
9343 .IP "\fB\-mno\-branch\-predict\fR" 4
9344 .IX Item "-mno-branch-predict"
9345 .PD
9346 Use (do not use) the probable-branch instructions, when static branch
9347 prediction indicates a probable branch.
9348 .IP "\fB\-mbase\-addresses\fR" 4
9349 .IX Item "-mbase-addresses"
9350 .PD 0
9351 .IP "\fB\-mno\-base\-addresses\fR" 4
9352 .IX Item "-mno-base-addresses"
9353 .PD
9354 Generate (do not generate) code that uses \fIbase addresses\fR.  Using a
9355 base address automatically generates a request (handled by the assembler
9356 and the linker) for a constant to be set up in a global register.  The
9357 register is used for one or more base address requests within the range 0
9358 to 255 from the value held in the register.  The generally leads to short
9359 and fast code, but the number of different data items that can be
9360 addressed is limited.  This means that a program that uses lots of static
9361 data may require \fB\-mno\-base\-addresses\fR.
9362 .IP "\fB\-msingle\-exit\fR" 4
9363 .IX Item "-msingle-exit"
9364 .PD 0
9365 .IP "\fB\-mno\-single\-exit\fR" 4
9366 .IX Item "-mno-single-exit"
9367 .PD
9368 Force (do not force) generated code to have a single exit point in each
9369 function.
9370 .PP
9371 \fI\s-1MN10300\s0 Options\fR
9372 .IX Subsection "MN10300 Options"
9373 .PP
9374 These \fB\-m\fR options are defined for Matsushita \s-1MN10300\s0 architectures:
9375 .IP "\fB\-mmult\-bug\fR" 4
9376 .IX Item "-mmult-bug"
9377 Generate code to avoid bugs in the multiply instructions for the \s-1MN10300\s0
9378 processors.  This is the default.
9379 .IP "\fB\-mno\-mult\-bug\fR" 4
9380 .IX Item "-mno-mult-bug"
9381 Do not generate code to avoid bugs in the multiply instructions for the
9382 \&\s-1MN10300\s0 processors.
9383 .IP "\fB\-mam33\fR" 4
9384 .IX Item "-mam33"
9385 Generate code which uses features specific to the \s-1AM33\s0 processor.
9386 .IP "\fB\-mno\-am33\fR" 4
9387 .IX Item "-mno-am33"
9388 Do not generate code which uses features specific to the \s-1AM33\s0 processor.  This
9389 is the default.
9390 .IP "\fB\-mno\-crt0\fR" 4
9391 .IX Item "-mno-crt0"
9392 Do not link in the C run-time initialization object file.
9393 .IP "\fB\-mrelax\fR" 4
9394 .IX Item "-mrelax"
9395 Indicate to the linker that it should perform a relaxation optimization pass
9396 to shorten branches, calls and absolute memory addresses.  This option only
9397 has an effect when used on the command line for the final link step.
9398 .Sp
9399 This option makes symbolic debugging impossible.
9400 .PP
9401 \fI\s-1NS32K\s0 Options\fR
9402 .IX Subsection "NS32K Options"
9403 .PP
9404 These are the \fB\-m\fR options defined for the 32000 series.  The default
9405 values for these options depends on which style of 32000 was selected when
9406 the compiler was configured; the defaults for the most common choices are
9407 given below.
9408 .IP "\fB\-m32032\fR" 4
9409 .IX Item "-m32032"
9410 .PD 0
9411 .IP "\fB\-m32032\fR" 4
9412 .IX Item "-m32032"
9413 .PD
9414 Generate output for a 32032.  This is the default
9415 when the compiler is configured for 32032 and 32016 based systems.
9416 .IP "\fB\-m32332\fR" 4
9417 .IX Item "-m32332"
9418 .PD 0
9419 .IP "\fB\-m32332\fR" 4
9420 .IX Item "-m32332"
9421 .PD
9422 Generate output for a 32332.  This is the default
9423 when the compiler is configured for 32332\-based systems.
9424 .IP "\fB\-m32532\fR" 4
9425 .IX Item "-m32532"
9426 .PD 0
9427 .IP "\fB\-m32532\fR" 4
9428 .IX Item "-m32532"
9429 .PD
9430 Generate output for a 32532.  This is the default
9431 when the compiler is configured for 32532\-based systems.
9432 .IP "\fB\-m32081\fR" 4
9433 .IX Item "-m32081"
9434 Generate output containing 32081 instructions for floating point.
9435 This is the default for all systems.
9436 .IP "\fB\-m32381\fR" 4
9437 .IX Item "-m32381"
9438 Generate output containing 32381 instructions for floating point.  This
9439 also implies \fB\-m32081\fR.  The 32381 is only compatible with the 32332
9440 and 32532 cpus.  This is the default for the pc532\-netbsd configuration.
9441 .IP "\fB\-mmulti\-add\fR" 4
9442 .IX Item "-mmulti-add"
9443 Try and generate multiply-add floating point instructions \f(CW\*(C`polyF\*(C'\fR
9444 and \f(CW\*(C`dotF\*(C'\fR.  This option is only available if the \fB\-m32381\fR
9445 option is in effect.  Using these instructions requires changes to
9446 register allocation which generally has a negative impact on
9447 performance.  This option should only be enabled when compiling code
9448 particularly likely to make heavy use of multiply-add instructions.
9449 .IP "\fB\-mnomulti\-add\fR" 4
9450 .IX Item "-mnomulti-add"
9451 Do not try and generate multiply-add floating point instructions
9452 \&\f(CW\*(C`polyF\*(C'\fR and \f(CW\*(C`dotF\*(C'\fR.  This is the default on all platforms.
9453 .IP "\fB\-msoft\-float\fR" 4
9454 .IX Item "-msoft-float"
9455 Generate output containing library calls for floating point.
9456 \&\fBWarning:\fR the requisite libraries may not be available.
9457 .IP "\fB\-mieee\-compare\fR" 4
9458 .IX Item "-mieee-compare"
9459 .PD 0
9460 .IP "\fB\-mno\-ieee\-compare\fR" 4
9461 .IX Item "-mno-ieee-compare"
9462 .PD
9463 Control whether or not the compiler uses \s-1IEEE\s0 floating point
9464 comparisons.  These handle correctly the case where the result of a
9465 comparison is unordered.
9466 \&\fBWarning:\fR the requisite kernel support may not be available.
9467 .IP "\fB\-mnobitfield\fR" 4
9468 .IX Item "-mnobitfield"
9469 Do not use the bit-field instructions.  On some machines it is faster to
9470 use shifting and masking operations.  This is the default for the pc532.
9471 .IP "\fB\-mbitfield\fR" 4
9472 .IX Item "-mbitfield"
9473 Do use the bit-field instructions.  This is the default for all platforms
9474 except the pc532.
9475 .IP "\fB\-mrtd\fR" 4
9476 .IX Item "-mrtd"
9477 Use a different function-calling convention, in which functions
9478 that take a fixed number of arguments return pop their
9479 arguments on return with the \f(CW\*(C`ret\*(C'\fR instruction.
9480 .Sp
9481 This calling convention is incompatible with the one normally
9482 used on Unix, so you cannot use it if you need to call libraries
9483 compiled with the Unix compiler.
9484 .Sp
9485 Also, you must provide function prototypes for all functions that
9486 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
9487 otherwise incorrect code will be generated for calls to those
9488 functions.
9489 .Sp
9490 In addition, seriously incorrect code will result if you call a
9491 function with too many arguments.  (Normally, extra arguments are
9492 harmlessly ignored.)
9493 .Sp
9494 This option takes its name from the 680x0 \f(CW\*(C`rtd\*(C'\fR instruction.
9495 .IP "\fB\-mregparam\fR" 4
9496 .IX Item "-mregparam"
9497 Use a different function-calling convention where the first two arguments
9498 are passed in registers.
9499 .Sp
9500 This calling convention is incompatible with the one normally
9501 used on Unix, so you cannot use it if you need to call libraries
9502 compiled with the Unix compiler.
9503 .IP "\fB\-mnoregparam\fR" 4
9504 .IX Item "-mnoregparam"
9505 Do not pass any arguments in registers.  This is the default for all
9506 targets.
9507 .IP "\fB\-msb\fR" 4
9508 .IX Item "-msb"
9509 It is \s-1OK\s0 to use the sb as an index register which is always loaded with
9510 zero.  This is the default for the pc532\-netbsd target.
9511 .IP "\fB\-mnosb\fR" 4
9512 .IX Item "-mnosb"
9513 The sb register is not available for use or has not been initialized to
9514 zero by the run time system.  This is the default for all targets except
9515 the pc532\-netbsd.  It is also implied whenever \fB\-mhimem\fR or
9516 \&\fB\-fpic\fR is set.
9517 .IP "\fB\-mhimem\fR" 4
9518 .IX Item "-mhimem"
9519 Many ns32000 series addressing modes use displacements of up to 512MB.
9520 If an address is above 512MB then displacements from zero can not be used.
9521 This option causes code to be generated which can be loaded above 512MB.
9522 This may be useful for operating systems or \s-1ROM\s0 code.
9523 .IP "\fB\-mnohimem\fR" 4
9524 .IX Item "-mnohimem"
9525 Assume code will be loaded in the first 512MB of virtual address space.
9526 This is the default for all platforms.
9527 .PP
9528 \fI\s-1PDP\-11\s0 Options\fR
9529 .IX Subsection "PDP-11 Options"
9530 .PP
9531 These options are defined for the \s-1PDP\-11:\s0
9532 .IP "\fB\-mfpu\fR" 4
9533 .IX Item "-mfpu"
9534 Use hardware \s-1FPP\s0 floating point.  This is the default.  (\s-1FIS\s0 floating
9535 point on the \s-1PDP\-11/40\s0 is not supported.)
9536 .IP "\fB\-msoft\-float\fR" 4
9537 .IX Item "-msoft-float"
9538 Do not use hardware floating point.
9539 .IP "\fB\-mac0\fR" 4
9540 .IX Item "-mac0"
9541 Return floating-point results in ac0 (fr0 in Unix assembler syntax).
9542 .IP "\fB\-mno\-ac0\fR" 4
9543 .IX Item "-mno-ac0"
9544 Return floating-point results in memory.  This is the default.
9545 .IP "\fB\-m40\fR" 4
9546 .IX Item "-m40"
9547 Generate code for a \s-1PDP\-11/40\s0.
9548 .IP "\fB\-m45\fR" 4
9549 .IX Item "-m45"
9550 Generate code for a \s-1PDP\-11/45\s0.  This is the default.
9551 .IP "\fB\-m10\fR" 4
9552 .IX Item "-m10"
9553 Generate code for a \s-1PDP\-11/10\s0.
9554 .IP "\fB\-mbcopy\-builtin\fR" 4
9555 .IX Item "-mbcopy-builtin"
9556 Use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.  This is the
9557 default.
9558 .IP "\fB\-mbcopy\fR" 4
9559 .IX Item "-mbcopy"
9560 Do not use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.
9561 .IP "\fB\-mint16\fR" 4
9562 .IX Item "-mint16"
9563 .PD 0
9564 .IP "\fB\-mno\-int32\fR" 4
9565 .IX Item "-mno-int32"
9566 .PD
9567 Use 16\-bit \f(CW\*(C`int\*(C'\fR.  This is the default.
9568 .IP "\fB\-mint32\fR" 4
9569 .IX Item "-mint32"
9570 .PD 0
9571 .IP "\fB\-mno\-int16\fR" 4
9572 .IX Item "-mno-int16"
9573 .PD
9574 Use 32\-bit \f(CW\*(C`int\*(C'\fR.
9575 .IP "\fB\-mfloat64\fR" 4
9576 .IX Item "-mfloat64"
9577 .PD 0
9578 .IP "\fB\-mno\-float32\fR" 4
9579 .IX Item "-mno-float32"
9580 .PD
9581 Use 64\-bit \f(CW\*(C`float\*(C'\fR.  This is the default.
9582 .IP "\fB\-mfloat32\fR" 4
9583 .IX Item "-mfloat32"
9584 .PD 0
9585 .IP "\fB\-mno\-float64\fR" 4
9586 .IX Item "-mno-float64"
9587 .PD
9588 Use 32\-bit \f(CW\*(C`float\*(C'\fR.
9589 .IP "\fB\-mabshi\fR" 4
9590 .IX Item "-mabshi"
9591 Use \f(CW\*(C`abshi2\*(C'\fR pattern.  This is the default.
9592 .IP "\fB\-mno\-abshi\fR" 4
9593 .IX Item "-mno-abshi"
9594 Do not use \f(CW\*(C`abshi2\*(C'\fR pattern.
9595 .IP "\fB\-mbranch\-expensive\fR" 4
9596 .IX Item "-mbranch-expensive"
9597 Pretend that branches are expensive.  This is for experimenting with
9598 code generation only.
9599 .IP "\fB\-mbranch\-cheap\fR" 4
9600 .IX Item "-mbranch-cheap"
9601 Do not pretend that branches are expensive.  This is the default.
9602 .IP "\fB\-msplit\fR" 4
9603 .IX Item "-msplit"
9604 Generate code for a system with split I&D.
9605 .IP "\fB\-mno\-split\fR" 4
9606 .IX Item "-mno-split"
9607 Generate code for a system without split I&D.  This is the default.
9608 .IP "\fB\-munix\-asm\fR" 4
9609 .IX Item "-munix-asm"
9610 Use Unix assembler syntax.  This is the default when configured for
9611 \&\fBpdp11\-*\-bsd\fR.
9612 .IP "\fB\-mdec\-asm\fR" 4
9613 .IX Item "-mdec-asm"
9614 Use \s-1DEC\s0 assembler syntax.  This is the default when configured for any
9615 \&\s-1PDP\-11\s0 target other than \fBpdp11\-*\-bsd\fR.
9616 .PP
9617 \fIPowerPC Options\fR
9618 .IX Subsection "PowerPC Options"
9619 .PP
9620 These are listed under 
9621 .PP
9622 \fI\s-1IBM\s0 \s-1RS/6000\s0 and PowerPC Options\fR
9623 .IX Subsection "IBM RS/6000 and PowerPC Options"
9624 .PP
9625 These \fB\-m\fR options are defined for the \s-1IBM\s0 \s-1RS/6000\s0 and PowerPC:
9626 .IP "\fB\-mpower\fR" 4
9627 .IX Item "-mpower"
9628 .PD 0
9629 .IP "\fB\-mno\-power\fR" 4
9630 .IX Item "-mno-power"
9631 .IP "\fB\-mpower2\fR" 4
9632 .IX Item "-mpower2"
9633 .IP "\fB\-mno\-power2\fR" 4
9634 .IX Item "-mno-power2"
9635 .IP "\fB\-mpowerpc\fR" 4
9636 .IX Item "-mpowerpc"
9637 .IP "\fB\-mno\-powerpc\fR" 4
9638 .IX Item "-mno-powerpc"
9639 .IP "\fB\-mpowerpc\-gpopt\fR" 4
9640 .IX Item "-mpowerpc-gpopt"
9641 .IP "\fB\-mno\-powerpc\-gpopt\fR" 4
9642 .IX Item "-mno-powerpc-gpopt"
9643 .IP "\fB\-mpowerpc\-gfxopt\fR" 4
9644 .IX Item "-mpowerpc-gfxopt"
9645 .IP "\fB\-mno\-powerpc\-gfxopt\fR" 4
9646 .IX Item "-mno-powerpc-gfxopt"
9647 .IP "\fB\-mpowerpc64\fR" 4
9648 .IX Item "-mpowerpc64"
9649 .IP "\fB\-mno\-powerpc64\fR" 4
9650 .IX Item "-mno-powerpc64"
9651 .PD
9652 \&\s-1GCC\s0 supports two related instruction set architectures for the
9653 \&\s-1RS/6000\s0 and PowerPC.  The \fI\s-1POWER\s0\fR instruction set are those
9654 instructions supported by the \fBrios\fR chip set used in the original
9655 \&\s-1RS/6000\s0 systems and the \fIPowerPC\fR instruction set is the
9656 architecture of the Motorola MPC5xx, MPC6xx, MPC8xx microprocessors, and
9657 the \s-1IBM\s0 4xx microprocessors.
9658 .Sp
9659 Neither architecture is a subset of the other.  However there is a
9660 large common subset of instructions supported by both.  An \s-1MQ\s0
9661 register is included in processors supporting the \s-1POWER\s0 architecture.
9662 .Sp
9663 You use these options to specify which instructions are available on the
9664 processor you are using.  The default value of these options is
9665 determined when configuring \s-1GCC\s0.  Specifying the
9666 \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
9667 options.  We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
9668 rather than the options listed above.
9669 .Sp
9670 The \fB\-mpower\fR option allows \s-1GCC\s0 to generate instructions that
9671 are found only in the \s-1POWER\s0 architecture and to use the \s-1MQ\s0 register.
9672 Specifying \fB\-mpower2\fR implies \fB\-power\fR and also allows \s-1GCC\s0
9673 to generate instructions that are present in the \s-1POWER2\s0 architecture but
9674 not the original \s-1POWER\s0 architecture.
9675 .Sp
9676 The \fB\-mpowerpc\fR option allows \s-1GCC\s0 to generate instructions that
9677 are found only in the 32\-bit subset of the PowerPC architecture.
9678 Specifying \fB\-mpowerpc\-gpopt\fR implies \fB\-mpowerpc\fR and also allows
9679 \&\s-1GCC\s0 to use the optional PowerPC architecture instructions in the
9680 General Purpose group, including floating-point square root.  Specifying
9681 \&\fB\-mpowerpc\-gfxopt\fR implies \fB\-mpowerpc\fR and also allows \s-1GCC\s0 to
9682 use the optional PowerPC architecture instructions in the Graphics
9683 group, including floating-point select.
9684 .Sp
9685 The \fB\-mpowerpc64\fR option allows \s-1GCC\s0 to generate the additional
9686 64\-bit instructions that are found in the full PowerPC64 architecture
9687 and to treat GPRs as 64\-bit, doubleword quantities.  \s-1GCC\s0 defaults to
9688 \&\fB\-mno\-powerpc64\fR.
9689 .Sp
9690 If you specify both \fB\-mno\-power\fR and \fB\-mno\-powerpc\fR, \s-1GCC\s0
9691 will use only the instructions in the common subset of both
9692 architectures plus some special \s-1AIX\s0 common-mode calls, and will not use
9693 the \s-1MQ\s0 register.  Specifying both \fB\-mpower\fR and \fB\-mpowerpc\fR
9694 permits \s-1GCC\s0 to use any instruction from either architecture and to
9695 allow use of the \s-1MQ\s0 register; specify this for the Motorola \s-1MPC601\s0.
9696 .IP "\fB\-mnew\-mnemonics\fR" 4
9697 .IX Item "-mnew-mnemonics"
9698 .PD 0
9699 .IP "\fB\-mold\-mnemonics\fR" 4
9700 .IX Item "-mold-mnemonics"
9701 .PD
9702 Select which mnemonics to use in the generated assembler code.  With
9703 \&\fB\-mnew\-mnemonics\fR, \s-1GCC\s0 uses the assembler mnemonics defined for
9704 the PowerPC architecture.  With \fB\-mold\-mnemonics\fR it uses the
9705 assembler mnemonics defined for the \s-1POWER\s0 architecture.  Instructions
9706 defined in only one architecture have only one mnemonic; \s-1GCC\s0 uses that
9707 mnemonic irrespective of which of these options is specified.
9708 .Sp
9709 \&\s-1GCC\s0 defaults to the mnemonics appropriate for the architecture in
9710 use.  Specifying \fB\-mcpu=\fR\fIcpu_type\fR sometimes overrides the
9711 value of these option.  Unless you are building a cross\-compiler, you
9712 should normally not specify either \fB\-mnew\-mnemonics\fR or
9713 \&\fB\-mold\-mnemonics\fR, but should instead accept the default.
9714 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
9715 .IX Item "-mcpu=cpu_type"
9716 Set architecture type, register usage, choice of mnemonics, and
9717 instruction scheduling parameters for machine type \fIcpu_type\fR.
9718 Supported values for \fIcpu_type\fR are \fB401\fR, \fB403\fR,
9719 \&\fB405\fR, \fB405fp\fR, \fB440\fR, \fB440fp\fR, \fB505\fR,
9720 \&\fB601\fR, \fB602\fR, \fB603\fR, \fB603e\fR, \fB604\fR,
9721 \&\fB604e\fR, \fB620\fR, \fB630\fR, \fB740\fR, \fB7400\fR,
9722 \&\fB7450\fR, \fB750\fR, \fB801\fR, \fB821\fR, \fB823\fR,
9723 \&\fB860\fR, \fB970\fR, \fB8540\fR, \fBcommon\fR, \fBec603e\fR, \fBG3\fR,
9724 \&\fBG4\fR, \fBG5\fR, \fBpower\fR, \fBpower2\fR, \fBpower3\fR,
9725 \&\fBpower4\fR, \fBpower5\fR, \fBpowerpc\fR, \fBpowerpc64\fR,
9726 \&\fBrios\fR, \fBrios1\fR, \fBrios2\fR, \fBrsc\fR, and \fBrs64a\fR.
9727 .Sp
9728 \&\fB\-mcpu=common\fR selects a completely generic processor.  Code
9729 generated under this option will run on any \s-1POWER\s0 or PowerPC processor.
9730 \&\s-1GCC\s0 will use only the instructions in the common subset of both
9731 architectures, and will not use the \s-1MQ\s0 register.  \s-1GCC\s0 assumes a generic
9732 processor model for scheduling purposes.
9733 .Sp
9734 \&\fB\-mcpu=power\fR, \fB\-mcpu=power2\fR, \fB\-mcpu=powerpc\fR, and
9735 \&\fB\-mcpu=powerpc64\fR specify generic \s-1POWER\s0, \s-1POWER2\s0, pure 32\-bit
9736 PowerPC (i.e., not \s-1MPC601\s0), and 64\-bit PowerPC architecture machine
9737 types, with an appropriate, generic processor model assumed for
9738 scheduling purposes.
9739 .Sp
9740 The other options specify a specific processor.  Code generated under
9741 those options will run best on that processor, and may not run at all on
9742 others.
9743 .Sp
9744 The \fB\-mcpu\fR options automatically enable or disable the
9745 following options: \fB\-maltivec\fR, \fB\-mhard\-float\fR,
9746 \&\fB\-mmfcrf\fR, \fB\-mmultiple\fR, \fB\-mnew\-mnemonics\fR,
9747 \&\fB\-mpower\fR, \fB\-mpower2\fR, \fB\-mpowerpc64\fR,
9748 \&\fB\-mpowerpc\-gpopt\fR, \fB\-mpowerpc\-gfxopt\fR,
9749 \&\fB\-mstring\fR.  The particular options set for any particular \s-1CPU\s0
9750 will vary between compiler versions, depending on what setting seems
9751 to produce optimal code for that \s-1CPU\s0; it doesn't necessarily reflect
9752 the actual hardware's capabilities.  If you wish to set an individual
9753 option to a particular value, you may specify it after the
9754 \&\fB\-mcpu\fR option, like \fB\-mcpu=970 \-mno\-altivec\fR.
9755 .Sp
9756 On \s-1AIX\s0, the \fB\-maltivec\fR and \fB\-mpowerpc64\fR options are
9757 not enabled or disabled by the \fB\-mcpu\fR option at present, since
9758 \&\s-1AIX\s0 does not have full support for these options.  You may still
9759 enable or disable them individually if you're sure it'll work in your
9760 environment.
9761 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
9762 .IX Item "-mtune=cpu_type"
9763 Set the instruction scheduling parameters for machine type
9764 \&\fIcpu_type\fR, but do not set the architecture type, register usage, or
9765 choice of mnemonics, as \fB\-mcpu=\fR\fIcpu_type\fR would.  The same
9766 values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
9767 \&\fB\-mcpu\fR.  If both are specified, the code generated will use the
9768 architecture, registers, and mnemonics set by \fB\-mcpu\fR, but the
9769 scheduling parameters set by \fB\-mtune\fR.
9770 .IP "\fB\-maltivec\fR" 4
9771 .IX Item "-maltivec"
9772 .PD 0
9773 .IP "\fB\-mno\-altivec\fR" 4
9774 .IX Item "-mno-altivec"
9775 .PD
9776 Generate code that uses (does not use) AltiVec instructions, and also
9777 enable the use of built-in functions that allow more direct access to
9778 the AltiVec instruction set.  You may also need to set
9779 \&\fB\-mabi=altivec\fR to adjust the current \s-1ABI\s0 with AltiVec \s-1ABI\s0
9780 enhancements.
9781 .IP "\fB\-mabi=spe\fR" 4
9782 .IX Item "-mabi=spe"
9783 Extend the current \s-1ABI\s0 with \s-1SPE\s0 \s-1ABI\s0 extensions.  This does not change
9784 the default \s-1ABI\s0, instead it adds the \s-1SPE\s0 \s-1ABI\s0 extensions to the current
9785 \&\s-1ABI\s0.
9786 .IP "\fB\-mabi=no\-spe\fR" 4
9787 .IX Item "-mabi=no-spe"
9788 Disable Booke \s-1SPE\s0 \s-1ABI\s0 extensions for the current \s-1ABI\s0.
9789 .IP "\fB\-misel=\fR\fIyes/no\fR" 4
9790 .IX Item "-misel=yes/no"
9791 .PD 0
9792 .IP "\fB\-misel\fR" 4
9793 .IX Item "-misel"
9794 .PD
9795 This switch enables or disables the generation of \s-1ISEL\s0 instructions.
9796 .IP "\fB\-mspe=\fR\fIyes/no\fR" 4
9797 .IX Item "-mspe=yes/no"
9798 .PD 0
9799 .IP "\fB\-mspe\fR" 4
9800 .IX Item "-mspe"
9801 .PD
9802 This switch enables or disables the generation of \s-1SPE\s0 simd
9803 instructions.
9804 .IP "\fB\-mfloat\-gprs=\fR\fIyes/single/double/no\fR" 4
9805 .IX Item "-mfloat-gprs=yes/single/double/no"
9806 .PD 0
9807 .IP "\fB\-mfloat\-gprs\fR" 4
9808 .IX Item "-mfloat-gprs"
9809 .PD
9810 This switch enables or disables the generation of floating point
9811 operations on the general purpose registers for architectures that
9812 support it.
9813 .Sp
9814 The argument \fIyes\fR or \fIsingle\fR enables the use of
9815 single-precision floating point operations.
9816 .Sp
9817 The argument \fIdouble\fR enables the use of single and
9818 double-precision floating point operations.
9819 .Sp
9820 The argument \fIno\fR disables floating point operations on the
9821 general purpose registers.
9822 .Sp
9823 This option is currently only available on the MPC854x.
9824 .IP "\fB\-m32\fR" 4
9825 .IX Item "-m32"
9826 .PD 0
9827 .IP "\fB\-m64\fR" 4
9828 .IX Item "-m64"
9829 .PD
9830 Generate code for 32\-bit or 64\-bit environments of Darwin and \s-1SVR4\s0
9831 targets (including GNU/Linux).  The 32\-bit environment sets int, long
9832 and pointer to 32 bits and generates code that runs on any PowerPC
9833 variant.  The 64\-bit environment sets int to 32 bits and long and
9834 pointer to 64 bits, and generates code for PowerPC64, as for
9835 \&\fB\-mpowerpc64\fR.
9836 .IP "\fB\-mfull\-toc\fR" 4
9837 .IX Item "-mfull-toc"
9838 .PD 0
9839 .IP "\fB\-mno\-fp\-in\-toc\fR" 4
9840 .IX Item "-mno-fp-in-toc"
9841 .IP "\fB\-mno\-sum\-in\-toc\fR" 4
9842 .IX Item "-mno-sum-in-toc"
9843 .IP "\fB\-mminimal\-toc\fR" 4
9844 .IX Item "-mminimal-toc"
9845 .PD
9846 Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
9847 every executable file.  The \fB\-mfull\-toc\fR option is selected by
9848 default.  In that case, \s-1GCC\s0 will allocate at least one \s-1TOC\s0 entry for
9849 each unique non-automatic variable reference in your program.  \s-1GCC\s0
9850 will also place floating-point constants in the \s-1TOC\s0.  However, only
9851 16,384 entries are available in the \s-1TOC\s0.
9852 .Sp
9853 If you receive a linker error message that saying you have overflowed
9854 the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
9855 with the \fB\-mno\-fp\-in\-toc\fR and \fB\-mno\-sum\-in\-toc\fR options.
9856 \&\fB\-mno\-fp\-in\-toc\fR prevents \s-1GCC\s0 from putting floating-point
9857 constants in the \s-1TOC\s0 and \fB\-mno\-sum\-in\-toc\fR forces \s-1GCC\s0 to
9858 generate code to calculate the sum of an address and a constant at
9859 run-time instead of putting that sum into the \s-1TOC\s0.  You may specify one
9860 or both of these options.  Each causes \s-1GCC\s0 to produce very slightly
9861 slower and larger code at the expense of conserving \s-1TOC\s0 space.
9862 .Sp
9863 If you still run out of space in the \s-1TOC\s0 even when you specify both of
9864 these options, specify \fB\-mminimal\-toc\fR instead.  This option causes
9865 \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file.  When you specify this
9866 option, \s-1GCC\s0 will produce code that is slower and larger but which
9867 uses extremely little \s-1TOC\s0 space.  You may wish to use this option
9868 only on files that contain less frequently executed code.
9869 .IP "\fB\-maix64\fR" 4
9870 .IX Item "-maix64"
9871 .PD 0
9872 .IP "\fB\-maix32\fR" 4
9873 .IX Item "-maix32"
9874 .PD
9875 Enable 64\-bit \s-1AIX\s0 \s-1ABI\s0 and calling convention: 64\-bit pointers, 64\-bit
9876 \&\f(CW\*(C`long\*(C'\fR type, and the infrastructure needed to support them.
9877 Specifying \fB\-maix64\fR implies \fB\-mpowerpc64\fR and
9878 \&\fB\-mpowerpc\fR, while \fB\-maix32\fR disables the 64\-bit \s-1ABI\s0 and
9879 implies \fB\-mno\-powerpc64\fR.  \s-1GCC\s0 defaults to \fB\-maix32\fR.
9880 .IP "\fB\-mxl\-compat\fR" 4
9881 .IX Item "-mxl-compat"
9882 .PD 0
9883 .IP "\fB\-mno\-xl\-compat\fR" 4
9884 .IX Item "-mno-xl-compat"
9885 .PD
9886 Produce code that conforms more closely to \s-1IBM\s0 \s-1XLC\s0 semantics when using
9887 AIX-compatible \s-1ABI\s0.  Pass floating-point arguments to prototyped
9888 functions beyond the register save area (\s-1RSA\s0) on the stack in addition
9889 to argument FPRs.  Do not assume that most significant double in 128
9890 bit long double value is properly rounded when comparing values.
9891 .Sp
9892 The \s-1AIX\s0 calling convention was extended but not initially documented to
9893 handle an obscure K&R C case of calling a function that takes the
9894 address of its arguments with fewer arguments than declared.  \s-1AIX\s0 \s-1XL\s0
9895 compilers access floating point arguments which do not fit in the
9896 \&\s-1RSA\s0 from the stack when a subroutine is compiled without
9897 optimization.  Because always storing floating-point arguments on the
9898 stack is inefficient and rarely needed, this option is not enabled by
9899 default and only is necessary when calling subroutines compiled by \s-1AIX\s0
9900 \&\s-1XL\s0 compilers without optimization.
9901 .IP "\fB\-mpe\fR" 4
9902 .IX Item "-mpe"
9903 Support \fI\s-1IBM\s0 \s-1RS/6000\s0 \s-1SP\s0\fR \fIParallel Environment\fR (\s-1PE\s0).  Link an
9904 application written to use message passing with special startup code to
9905 enable the application to run.  The system must have \s-1PE\s0 installed in the
9906 standard location (\fI/usr/lpp/ppe.poe/\fR), or the \fIspecs\fR file
9907 must be overridden with the \fB\-specs=\fR option to specify the
9908 appropriate directory location.  The Parallel Environment does not
9909 support threads, so the \fB\-mpe\fR option and the \fB\-pthread\fR
9910 option are incompatible.
9911 .IP "\fB\-malign\-natural\fR" 4
9912 .IX Item "-malign-natural"
9913 .PD 0
9914 .IP "\fB\-malign\-power\fR" 4
9915 .IX Item "-malign-power"
9916 .PD
9917 On \s-1AIX\s0, 32\-bit Darwin, and 64\-bit PowerPC GNU/Linux, the option
9918 \&\fB\-malign\-natural\fR overrides the ABI-defined alignment of larger
9919 types, such as floating-point doubles, on their natural size-based boundary.
9920 The option \fB\-malign\-power\fR instructs \s-1GCC\s0 to follow the ABI-specified
9921 alignment rules.  \s-1GCC\s0 defaults to the standard alignment defined in the \s-1ABI\s0.
9922 .Sp
9923 On 64\-bit Darwin, natural alignment is the default, and \fB\-malign\-power\fR
9924 is not supported.
9925 .IP "\fB\-msoft\-float\fR" 4
9926 .IX Item "-msoft-float"
9927 .PD 0
9928 .IP "\fB\-mhard\-float\fR" 4
9929 .IX Item "-mhard-float"
9930 .PD
9931 Generate code that does not use (uses) the floating-point register set.
9932 Software floating point emulation is provided if you use the
9933 \&\fB\-msoft\-float\fR option, and pass the option to \s-1GCC\s0 when linking.
9934 .IP "\fB\-mmultiple\fR" 4
9935 .IX Item "-mmultiple"
9936 .PD 0
9937 .IP "\fB\-mno\-multiple\fR" 4
9938 .IX Item "-mno-multiple"
9939 .PD
9940 Generate code that uses (does not use) the load multiple word
9941 instructions and the store multiple word instructions.  These
9942 instructions are generated by default on \s-1POWER\s0 systems, and not
9943 generated on PowerPC systems.  Do not use \fB\-mmultiple\fR on little
9944 endian PowerPC systems, since those instructions do not work when the
9945 processor is in little endian mode.  The exceptions are \s-1PPC740\s0 and
9946 \&\s-1PPC750\s0 which permit the instructions usage in little endian mode.
9947 .IP "\fB\-mstring\fR" 4
9948 .IX Item "-mstring"
9949 .PD 0
9950 .IP "\fB\-mno\-string\fR" 4
9951 .IX Item "-mno-string"
9952 .PD
9953 Generate code that uses (does not use) the load string instructions
9954 and the store string word instructions to save multiple registers and
9955 do small block moves.  These instructions are generated by default on
9956 \&\s-1POWER\s0 systems, and not generated on PowerPC systems.  Do not use
9957 \&\fB\-mstring\fR on little endian PowerPC systems, since those
9958 instructions do not work when the processor is in little endian mode.
9959 The exceptions are \s-1PPC740\s0 and \s-1PPC750\s0 which permit the instructions
9960 usage in little endian mode.
9961 .IP "\fB\-mupdate\fR" 4
9962 .IX Item "-mupdate"
9963 .PD 0
9964 .IP "\fB\-mno\-update\fR" 4
9965 .IX Item "-mno-update"
9966 .PD
9967 Generate code that uses (does not use) the load or store instructions
9968 that update the base register to the address of the calculated memory
9969 location.  These instructions are generated by default.  If you use
9970 \&\fB\-mno\-update\fR, there is a small window between the time that the
9971 stack pointer is updated and the address of the previous frame is
9972 stored, which means code that walks the stack frame across interrupts or
9973 signals may get corrupted data.
9974 .IP "\fB\-mfused\-madd\fR" 4
9975 .IX Item "-mfused-madd"
9976 .PD 0
9977 .IP "\fB\-mno\-fused\-madd\fR" 4
9978 .IX Item "-mno-fused-madd"
9979 .PD
9980 Generate code that uses (does not use) the floating point multiply and
9981 accumulate instructions.  These instructions are generated by default if
9982 hardware floating is used.
9983 .IP "\fB\-mno\-bit\-align\fR" 4
9984 .IX Item "-mno-bit-align"
9985 .PD 0
9986 .IP "\fB\-mbit\-align\fR" 4
9987 .IX Item "-mbit-align"
9988 .PD
9989 On System V.4 and embedded PowerPC systems do not (do) force structures
9990 and unions that contain bit-fields to be aligned to the base type of the
9991 bit\-field.
9992 .Sp
9993 For example, by default a structure containing nothing but 8
9994 \&\f(CW\*(C`unsigned\*(C'\fR bit-fields of length 1 would be aligned to a 4 byte
9995 boundary and have a size of 4 bytes.  By using \fB\-mno\-bit\-align\fR,
9996 the structure would be aligned to a 1 byte boundary and be one byte in
9997 size.
9998 .IP "\fB\-mno\-strict\-align\fR" 4
9999 .IX Item "-mno-strict-align"
10000 .PD 0
10001 .IP "\fB\-mstrict\-align\fR" 4
10002 .IX Item "-mstrict-align"
10003 .PD
10004 On System V.4 and embedded PowerPC systems do not (do) assume that
10005 unaligned memory references will be handled by the system.
10006 .IP "\fB\-mrelocatable\fR" 4
10007 .IX Item "-mrelocatable"
10008 .PD 0
10009 .IP "\fB\-mno\-relocatable\fR" 4
10010 .IX Item "-mno-relocatable"
10011 .PD
10012 On embedded PowerPC systems generate code that allows (does not allow)
10013 the program to be relocated to a different address at runtime.  If you
10014 use \fB\-mrelocatable\fR on any module, all objects linked together must
10015 be compiled with \fB\-mrelocatable\fR or \fB\-mrelocatable\-lib\fR.
10016 .IP "\fB\-mrelocatable\-lib\fR" 4
10017 .IX Item "-mrelocatable-lib"
10018 .PD 0
10019 .IP "\fB\-mno\-relocatable\-lib\fR" 4
10020 .IX Item "-mno-relocatable-lib"
10021 .PD
10022 On embedded PowerPC systems generate code that allows (does not allow)
10023 the program to be relocated to a different address at runtime.  Modules
10024 compiled with \fB\-mrelocatable\-lib\fR can be linked with either modules
10025 compiled without \fB\-mrelocatable\fR and \fB\-mrelocatable\-lib\fR or
10026 with modules compiled with the \fB\-mrelocatable\fR options.
10027 .IP "\fB\-mno\-toc\fR" 4
10028 .IX Item "-mno-toc"
10029 .PD 0
10030 .IP "\fB\-mtoc\fR" 4
10031 .IX Item "-mtoc"
10032 .PD
10033 On System V.4 and embedded PowerPC systems do not (do) assume that
10034 register 2 contains a pointer to a global area pointing to the addresses
10035 used in the program.
10036 .IP "\fB\-mlittle\fR" 4
10037 .IX Item "-mlittle"
10038 .PD 0
10039 .IP "\fB\-mlittle\-endian\fR" 4
10040 .IX Item "-mlittle-endian"
10041 .PD
10042 On System V.4 and embedded PowerPC systems compile code for the
10043 processor in little endian mode.  The \fB\-mlittle\-endian\fR option is
10044 the same as \fB\-mlittle\fR.
10045 .IP "\fB\-mbig\fR" 4
10046 .IX Item "-mbig"
10047 .PD 0
10048 .IP "\fB\-mbig\-endian\fR" 4
10049 .IX Item "-mbig-endian"
10050 .PD
10051 On System V.4 and embedded PowerPC systems compile code for the
10052 processor in big endian mode.  The \fB\-mbig\-endian\fR option is
10053 the same as \fB\-mbig\fR.
10054 .IP "\fB\-mdynamic\-no\-pic\fR" 4
10055 .IX Item "-mdynamic-no-pic"
10056 On Darwin and Mac \s-1OS\s0 X systems, compile code so that it is not
10057 relocatable, but that its external references are relocatable.  The
10058 resulting code is suitable for applications, but not shared
10059 libraries.
10060 .IP "\fB\-mprioritize\-restricted\-insns=\fR\fIpriority\fR" 4
10061 .IX Item "-mprioritize-restricted-insns=priority"
10062 This option controls the priority that is assigned to
10063 dispatch-slot restricted instructions during the second scheduling
10064 pass.  The argument \fIpriority\fR takes the value \fI0/1/2\fR to assign
10065 \&\fIno/highest/second\-highest\fR priority to dispatch slot restricted
10066 instructions.
10067 .IP "\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR" 4
10068 .IX Item "-msched-costly-dep=dependence_type"
10069 This option controls which dependences are considered costly
10070 by the target during instruction scheduling.  The argument
10071 \&\fIdependence_type\fR takes one of the following values:
10072 \&\fIno\fR: no dependence is costly,
10073 \&\fIall\fR: all dependences are costly,
10074 \&\fItrue_store_to_load\fR: a true dependence from store to load is costly,
10075 \&\fIstore_to_load\fR: any dependence from store to load is costly,
10076 \&\fInumber\fR: any dependence which latency >= \fInumber\fR is costly.
10077 .IP "\fB\-minsert\-sched\-nops=\fR\fIscheme\fR" 4
10078 .IX Item "-minsert-sched-nops=scheme"
10079 This option controls which nop insertion scheme will be used during
10080 the second scheduling pass.  The argument \fIscheme\fR takes one of the
10081 following values:
10082 \&\fIno\fR: Don't insert nops.
10083 \&\fIpad\fR: Pad with nops any dispatch group which has vacant issue slots,
10084 according to the scheduler's grouping.
10085 \&\fIregroup_exact\fR: Insert nops to force costly dependent insns into
10086 separate groups.  Insert exactly as many nops as needed to force an insn
10087 to a new group, according to the estimated processor grouping.
10088 \&\fInumber\fR: Insert nops to force costly dependent insns into
10089 separate groups.  Insert \fInumber\fR nops to force an insn to a new group.
10090 .IP "\fB\-mcall\-sysv\fR" 4
10091 .IX Item "-mcall-sysv"
10092 On System V.4 and embedded PowerPC systems compile code using calling
10093 conventions that adheres to the March 1995 draft of the System V
10094 Application Binary Interface, PowerPC processor supplement.  This is the
10095 default unless you configured \s-1GCC\s0 using \fBpowerpc\-*\-eabiaix\fR.
10096 .IP "\fB\-mcall\-sysv\-eabi\fR" 4
10097 .IX Item "-mcall-sysv-eabi"
10098 Specify both \fB\-mcall\-sysv\fR and \fB\-meabi\fR options.
10099 .IP "\fB\-mcall\-sysv\-noeabi\fR" 4
10100 .IX Item "-mcall-sysv-noeabi"
10101 Specify both \fB\-mcall\-sysv\fR and \fB\-mno\-eabi\fR options.
10102 .IP "\fB\-mcall\-solaris\fR" 4
10103 .IX Item "-mcall-solaris"
10104 On System V.4 and embedded PowerPC systems compile code for the Solaris
10105 operating system.
10106 .IP "\fB\-mcall\-linux\fR" 4
10107 .IX Item "-mcall-linux"
10108 On System V.4 and embedded PowerPC systems compile code for the
10109 Linux-based \s-1GNU\s0 system.
10110 .IP "\fB\-mcall\-gnu\fR" 4
10111 .IX Item "-mcall-gnu"
10112 On System V.4 and embedded PowerPC systems compile code for the
10113 Hurd-based \s-1GNU\s0 system.
10114 .IP "\fB\-mcall\-netbsd\fR" 4
10115 .IX Item "-mcall-netbsd"
10116 On System V.4 and embedded PowerPC systems compile code for the
10117 NetBSD operating system.
10118 .IP "\fB\-maix\-struct\-return\fR" 4
10119 .IX Item "-maix-struct-return"
10120 Return all structures in memory (as specified by the \s-1AIX\s0 \s-1ABI\s0).
10121 .IP "\fB\-msvr4\-struct\-return\fR" 4
10122 .IX Item "-msvr4-struct-return"
10123 Return structures smaller than 8 bytes in registers (as specified by the
10124 \&\s-1SVR4\s0 \s-1ABI\s0).
10125 .IP "\fB\-mabi=altivec\fR" 4
10126 .IX Item "-mabi=altivec"
10127 Extend the current \s-1ABI\s0 with AltiVec \s-1ABI\s0 extensions.  This does not
10128 change the default \s-1ABI\s0, instead it adds the AltiVec \s-1ABI\s0 extensions to
10129 the current \s-1ABI\s0.
10130 .IP "\fB\-mabi=no\-altivec\fR" 4
10131 .IX Item "-mabi=no-altivec"
10132 Disable AltiVec \s-1ABI\s0 extensions for the current \s-1ABI\s0.
10133 .IP "\fB\-mprototype\fR" 4
10134 .IX Item "-mprototype"
10135 .PD 0
10136 .IP "\fB\-mno\-prototype\fR" 4
10137 .IX Item "-mno-prototype"
10138 .PD
10139 On System V.4 and embedded PowerPC systems assume that all calls to
10140 variable argument functions are properly prototyped.  Otherwise, the
10141 compiler must insert an instruction before every non prototyped call to
10142 set or clear bit 6 of the condition code register (\fI\s-1CR\s0\fR) to
10143 indicate whether floating point values were passed in the floating point
10144 registers in case the function takes a variable arguments.  With
10145 \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
10146 will set or clear the bit.
10147 .IP "\fB\-msim\fR" 4
10148 .IX Item "-msim"
10149 On embedded PowerPC systems, assume that the startup module is called
10150 \&\fIsim\-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
10151 \&\fIlibc.a\fR.  This is the default for \fBpowerpc\-*\-eabisim\fR.
10152 configurations.
10153 .IP "\fB\-mmvme\fR" 4
10154 .IX Item "-mmvme"
10155 On embedded PowerPC systems, assume that the startup module is called
10156 \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
10157 \&\fIlibc.a\fR.
10158 .IP "\fB\-mads\fR" 4
10159 .IX Item "-mads"
10160 On embedded PowerPC systems, assume that the startup module is called
10161 \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
10162 \&\fIlibc.a\fR.
10163 .IP "\fB\-myellowknife\fR" 4
10164 .IX Item "-myellowknife"
10165 On embedded PowerPC systems, assume that the startup module is called
10166 \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
10167 \&\fIlibc.a\fR.
10168 .IP "\fB\-mvxworks\fR" 4
10169 .IX Item "-mvxworks"
10170 On System V.4 and embedded PowerPC systems, specify that you are
10171 compiling for a VxWorks system.
10172 .IP "\fB\-mwindiss\fR" 4
10173 .IX Item "-mwindiss"
10174 Specify that you are compiling for the WindISS simulation environment.
10175 .IP "\fB\-memb\fR" 4
10176 .IX Item "-memb"
10177 On embedded PowerPC systems, set the \fI\s-1PPC_EMB\s0\fR bit in the \s-1ELF\s0 flags
10178 header to indicate that \fBeabi\fR extended relocations are used.
10179 .IP "\fB\-meabi\fR" 4
10180 .IX Item "-meabi"
10181 .PD 0
10182 .IP "\fB\-mno\-eabi\fR" 4
10183 .IX Item "-mno-eabi"
10184 .PD
10185 On System V.4 and embedded PowerPC systems do (do not) adhere to the
10186 Embedded Applications Binary Interface (eabi) which is a set of
10187 modifications to the System V.4 specifications.  Selecting \fB\-meabi\fR
10188 means that the stack is aligned to an 8 byte boundary, a function
10189 \&\f(CW\*(C`_\|_eabi\*(C'\fR is called to from \f(CW\*(C`main\*(C'\fR to set up the eabi
10190 environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
10191 \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas.  Selecting
10192 \&\fB\-mno\-eabi\fR means that the stack is aligned to a 16 byte boundary,
10193 do not call an initialization function from \f(CW\*(C`main\*(C'\fR, and the
10194 \&\fB\-msdata\fR option will only use \f(CW\*(C`r13\*(C'\fR to point to a single
10195 small data area.  The \fB\-meabi\fR option is on by default if you
10196 configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
10197 .IP "\fB\-msdata=eabi\fR" 4
10198 .IX Item "-msdata=eabi"
10199 On System V.4 and embedded PowerPC systems, put small initialized
10200 \&\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata2\fR section, which
10201 is pointed to by register \f(CW\*(C`r2\*(C'\fR.  Put small initialized
10202 non\-\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata\fR section,
10203 which is pointed to by register \f(CW\*(C`r13\*(C'\fR.  Put small uninitialized
10204 global and static data in the \fB.sbss\fR section, which is adjacent to
10205 the \fB.sdata\fR section.  The \fB\-msdata=eabi\fR option is
10206 incompatible with the \fB\-mrelocatable\fR option.  The
10207 \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
10208 .IP "\fB\-msdata=sysv\fR" 4
10209 .IX Item "-msdata=sysv"
10210 On System V.4 and embedded PowerPC systems, put small global and static
10211 data in the \fB.sdata\fR section, which is pointed to by register
10212 \&\f(CW\*(C`r13\*(C'\fR.  Put small uninitialized global and static data in the
10213 \&\fB.sbss\fR section, which is adjacent to the \fB.sdata\fR section.
10214 The \fB\-msdata=sysv\fR option is incompatible with the
10215 \&\fB\-mrelocatable\fR option.
10216 .IP "\fB\-msdata=default\fR" 4
10217 .IX Item "-msdata=default"
10218 .PD 0
10219 .IP "\fB\-msdata\fR" 4
10220 .IX Item "-msdata"
10221 .PD
10222 On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
10223 compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
10224 same as \fB\-msdata=sysv\fR.
10225 .IP "\fB\-msdata\-data\fR" 4
10226 .IX Item "-msdata-data"
10227 On System V.4 and embedded PowerPC systems, put small global and static
10228 data in the \fB.sdata\fR section.  Put small uninitialized global and
10229 static data in the \fB.sbss\fR section.  Do not use register \f(CW\*(C`r13\*(C'\fR
10230 to address small data however.  This is the default behavior unless
10231 other \fB\-msdata\fR options are used.
10232 .IP "\fB\-msdata=none\fR" 4
10233 .IX Item "-msdata=none"
10234 .PD 0
10235 .IP "\fB\-mno\-sdata\fR" 4
10236 .IX Item "-mno-sdata"
10237 .PD
10238 On embedded PowerPC systems, put all initialized global and static data
10239 in the \fB.data\fR section, and all uninitialized data in the
10240 \&\fB.bss\fR section.
10241 .IP "\fB\-G\fR \fInum\fR" 4
10242 .IX Item "-G num"
10243 On embedded PowerPC systems, put global and static items less than or
10244 equal to \fInum\fR bytes into the small data or bss sections instead of
10245 the normal data or bss section.  By default, \fInum\fR is 8.  The
10246 \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
10247 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
10248 .IP "\fB\-mregnames\fR" 4
10249 .IX Item "-mregnames"
10250 .PD 0
10251 .IP "\fB\-mno\-regnames\fR" 4
10252 .IX Item "-mno-regnames"
10253 .PD
10254 On System V.4 and embedded PowerPC systems do (do not) emit register
10255 names in the assembly language output using symbolic forms.
10256 .IP "\fB\-mlongcall\fR" 4
10257 .IX Item "-mlongcall"
10258 .PD 0
10259 .IP "\fB\-mno\-longcall\fR" 4
10260 .IX Item "-mno-longcall"
10261 .PD
10262 Default to making all function calls indirectly, using a register, so
10263 that functions which reside further than 32 megabytes (33,554,432
10264 bytes) from the current location can be called.  This setting can be
10265 overridden by the \f(CW\*(C`shortcall\*(C'\fR function attribute, or by
10266 \&\f(CW\*(C`#pragma longcall(0)\*(C'\fR.
10267 .Sp
10268 Some linkers are capable of detecting out-of-range calls and generating
10269 glue code on the fly.  On these systems, long calls are unnecessary and
10270 generate slower code.  As of this writing, the \s-1AIX\s0 linker can do this,
10271 as can the \s-1GNU\s0 linker for PowerPC/64.  It is planned to add this feature
10272 to the \s-1GNU\s0 linker for 32\-bit PowerPC systems as well.
10273 .Sp
10274 On Darwin/PPC systems, \f(CW\*(C`#pragma longcall\*(C'\fR will generate ``jbsr
10275 callee, L42'', plus a ``branch island'' (glue code).  The two target
10276 addresses represent the callee and the ``branch island''.  The
10277 Darwin/PPC linker will prefer the first address and generate a ``bl
10278 callee'' if the \s-1PPC\s0 ``bl'' instruction will reach the callee directly;
10279 otherwise, the linker will generate ``bl L42'' to call the ``branch
10280 island''.  The ``branch island'' is appended to the body of the
10281 calling function; it computes the full 32\-bit address of the callee
10282 and jumps to it.
10283 .Sp
10284 On Mach-O (Darwin) systems, this option directs the compiler emit to
10285 the glue for every direct call, and the Darwin linker decides whether
10286 to use or discard it.
10287 .Sp
10288 In the future, we may cause \s-1GCC\s0 to ignore all longcall specifications
10289 when the linker is known to generate glue.
10290 .IP "\fB\-pthread\fR" 4
10291 .IX Item "-pthread"
10292 Adds support for multithreading with the \fIpthreads\fR library.
10293 This option sets flags for both the preprocessor and linker.
10294 .PP
10295 \fIS/390 and zSeries Options\fR
10296 .IX Subsection "S/390 and zSeries Options"
10297 .PP
10298 These are the \fB\-m\fR options defined for the S/390 and zSeries architecture.
10299 .IP "\fB\-mhard\-float\fR" 4
10300 .IX Item "-mhard-float"
10301 .PD 0
10302 .IP "\fB\-msoft\-float\fR" 4
10303 .IX Item "-msoft-float"
10304 .PD
10305 Use (do not use) the hardware floating-point instructions and registers
10306 for floating-point operations.  When \fB\-msoft\-float\fR is specified,
10307 functions in \fIlibgcc.a\fR will be used to perform floating-point
10308 operations.  When \fB\-mhard\-float\fR is specified, the compiler
10309 generates \s-1IEEE\s0 floating-point instructions.  This is the default.
10310 .IP "\fB\-mbackchain\fR" 4
10311 .IX Item "-mbackchain"
10312 .PD 0
10313 .IP "\fB\-mno\-backchain\fR" 4
10314 .IX Item "-mno-backchain"
10315 .PD
10316 Store (do not store) the address of the caller's frame as backchain pointer
10317 into the callee's stack frame.
10318 A backchain may be needed to allow debugging using tools that do not understand
10319 \&\s-1DWARF\-2\s0 call frame information.
10320 When \fB\-mno\-packed\-stack\fR is in effect, the backchain pointer is stored
10321 at the bottom of the stack frame; when \fB\-mpacked\-stack\fR is in effect,
10322 the backchain is placed into the topmost word of the 96/160 byte register
10323 save area.
10324 .Sp
10325 In general, code compiled with \fB\-mbackchain\fR is call-compatible with
10326 code compiled with \fB\-mmo\-backchain\fR; however, use of the backchain
10327 for debugging purposes usually requires that the whole binary is built with
10328 \&\fB\-mbackchain\fR.  Note that the combination of \fB\-mbackchain\fR,
10329 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
10330 to build a linux kernel use \fB\-msoft\-float\fR.
10331 .Sp
10332 The default is to not maintain the backchain.
10333 .IP "\fB\-mpacked\-stack\fR" 4
10334 .IX Item "-mpacked-stack"
10335 .PD 0
10336 .IP "\fB\-mno\-packed\-stack\fR" 4
10337 .IX Item "-mno-packed-stack"
10338 .PD
10339 Use (do not use) the packed stack layout.  When \fB\-mno\-packed\-stack\fR is
10340 specified, the compiler uses the all fields of the 96/160 byte register save
10341 area only for their default purpose; unused fields still take up stack space.
10342 When \fB\-mpacked\-stack\fR is specified, register save slots are densely
10343 packed at the top of the register save area; unused space is reused for other
10344 purposes, allowing for more efficient use of the available stack space.
10345 However, when \fB\-mbackchain\fR is also in effect, the topmost word of
10346 the save area is always used to store the backchain, and the return address
10347 register is always saved two words below the backchain.
10348 .Sp
10349 As long as the stack frame backchain is not used, code generated with
10350 \&\fB\-mpacked\-stack\fR is call-compatible with code generated with
10351 \&\fB\-mno\-packed\-stack\fR.  Note that some non-FSF releases of \s-1GCC\s0 2.95 for
10352 S/390 or zSeries generated code that uses the stack frame backchain at run
10353 time, not just for debugging purposes.  Such code is not call-compatible
10354 with code compiled with \fB\-mpacked\-stack\fR.  Also, note that the
10355 combination of \fB\-mbackchain\fR,
10356 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
10357 to build a linux kernel use \fB\-msoft\-float\fR.
10358 .Sp
10359 The default is to not use the packed stack layout.
10360 .IP "\fB\-msmall\-exec\fR" 4
10361 .IX Item "-msmall-exec"
10362 .PD 0
10363 .IP "\fB\-mno\-small\-exec\fR" 4
10364 .IX Item "-mno-small-exec"
10365 .PD
10366 Generate (or do not generate) code using the \f(CW\*(C`bras\*(C'\fR instruction
10367 to do subroutine calls.
10368 This only works reliably if the total executable size does not
10369 exceed 64k.  The default is to use the \f(CW\*(C`basr\*(C'\fR instruction instead,
10370 which does not have this limitation.
10371 .IP "\fB\-m64\fR" 4
10372 .IX Item "-m64"
10373 .PD 0
10374 .IP "\fB\-m31\fR" 4
10375 .IX Item "-m31"
10376 .PD
10377 When \fB\-m31\fR is specified, generate code compliant to the
10378 GNU/Linux for S/390 \s-1ABI\s0.  When \fB\-m64\fR is specified, generate
10379 code compliant to the GNU/Linux for zSeries \s-1ABI\s0.  This allows \s-1GCC\s0 in
10380 particular to generate 64\-bit instructions.  For the \fBs390\fR
10381 targets, the default is \fB\-m31\fR, while the \fBs390x\fR
10382 targets default to \fB\-m64\fR.
10383 .IP "\fB\-mzarch\fR" 4
10384 .IX Item "-mzarch"
10385 .PD 0
10386 .IP "\fB\-mesa\fR" 4
10387 .IX Item "-mesa"
10388 .PD
10389 When \fB\-mzarch\fR is specified, generate code using the
10390 instructions available on z/Architecture.
10391 When \fB\-mesa\fR is specified, generate code using the
10392 instructions available on \s-1ESA/390\s0.  Note that \fB\-mesa\fR is
10393 not possible with \fB\-m64\fR.
10394 When generating code compliant to the GNU/Linux for S/390 \s-1ABI\s0,
10395 the default is \fB\-mesa\fR.  When generating code compliant
10396 to the GNU/Linux for zSeries \s-1ABI\s0, the default is \fB\-mzarch\fR.
10397 .IP "\fB\-mmvcle\fR" 4
10398 .IX Item "-mmvcle"
10399 .PD 0
10400 .IP "\fB\-mno\-mvcle\fR" 4
10401 .IX Item "-mno-mvcle"
10402 .PD
10403 Generate (or do not generate) code using the \f(CW\*(C`mvcle\*(C'\fR instruction
10404 to perform block moves.  When \fB\-mno\-mvcle\fR is specified,
10405 use a \f(CW\*(C`mvc\*(C'\fR loop instead.  This is the default.
10406 .IP "\fB\-mdebug\fR" 4
10407 .IX Item "-mdebug"
10408 .PD 0
10409 .IP "\fB\-mno\-debug\fR" 4
10410 .IX Item "-mno-debug"
10411 .PD
10412 Print (or do not print) additional debug information when compiling.
10413 The default is to not print debug information.
10414 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
10415 .IX Item "-march=cpu-type"
10416 Generate code that will run on \fIcpu-type\fR, which is the name of a system
10417 representing a certain processor type.  Possible values for
10418 \&\fIcpu-type\fR are \fBg5\fR, \fBg6\fR, \fBz900\fR, and \fBz990\fR.
10419 When generating code using the instructions available on z/Architecture,
10420 the default is \fB\-march=z900\fR.  Otherwise, the default is
10421 \&\fB\-march=g5\fR.
10422 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
10423 .IX Item "-mtune=cpu-type"
10424 Tune to \fIcpu-type\fR everything applicable about the generated code,
10425 except for the \s-1ABI\s0 and the set of available instructions.
10426 The list of \fIcpu-type\fR values is the same as for \fB\-march\fR.
10427 The default is the value used for \fB\-march\fR.
10428 .IP "\fB\-mtpf\-trace\fR" 4
10429 .IX Item "-mtpf-trace"
10430 .PD 0
10431 .IP "\fB\-mno\-tpf\-trace\fR" 4
10432 .IX Item "-mno-tpf-trace"
10433 .PD
10434 Generate code that adds (does not add) in \s-1TPF\s0 \s-1OS\s0 specific branches to trace
10435 routines in the operating system.  This option is off by default, even
10436 when compiling for the \s-1TPF\s0 \s-1OS\s0.
10437 .IP "\fB\-mfused\-madd\fR" 4
10438 .IX Item "-mfused-madd"
10439 .PD 0
10440 .IP "\fB\-mno\-fused\-madd\fR" 4
10441 .IX Item "-mno-fused-madd"
10442 .PD
10443 Generate code that uses (does not use) the floating point multiply and
10444 accumulate instructions.  These instructions are generated by default if
10445 hardware floating point is used.
10446 .IP "\fB\-mwarn\-framesize=\fR\fIframesize\fR" 4
10447 .IX Item "-mwarn-framesize=framesize"
10448 Emit a warning if the current function exceeds the given frame size.  Because
10449 this is a compile time check it doesn't need to be a real problem when the program
10450 runs.  It is intended to identify functions which most probably cause
10451 a stack overflow.  It is useful to be used in an environment with limited stack
10452 size e.g. the linux kernel.
10453 .IP "\fB\-mwarn\-dynamicstack\fR" 4
10454 .IX Item "-mwarn-dynamicstack"
10455 Emit a warning if the function calls alloca or uses dynamically
10456 sized arrays.  This is generally a bad idea with a limited stack size.
10457 .IP "\fB\-mstack\-guard=\fR\fIstack-guard\fR" 4
10458 .IX Item "-mstack-guard=stack-guard"
10459 .PD 0
10460 .IP "\fB\-mstack\-size=\fR\fIstack-size\fR" 4
10461 .IX Item "-mstack-size=stack-size"
10462 .PD
10463 These arguments always have to be used in conjunction.  If they are present the s390
10464 back end emits additional instructions in the function prologue which trigger a trap
10465 if the stack size is \fIstack-guard\fR bytes above the \fIstack-size\fR
10466 (remember that the stack on s390 grows downward).  These options are intended to
10467 be used to help debugging stack overflow problems.  The additionally emitted code
10468 cause only little overhead and hence can also be used in production like systems
10469 without greater performance degradation.  The given values have to be exact
10470 powers of 2 and \fIstack-size\fR has to be greater than \fIstack-guard\fR.
10471 In order to be efficient the extra code makes the assumption that the stack starts
10472 at an address aligned to the value given by \fIstack-size\fR.
10473 .PP
10474 \fI\s-1SH\s0 Options\fR
10475 .IX Subsection "SH Options"
10476 .PP
10477 These \fB\-m\fR options are defined for the \s-1SH\s0 implementations:
10478 .IP "\fB\-m1\fR" 4
10479 .IX Item "-m1"
10480 Generate code for the \s-1SH1\s0.
10481 .IP "\fB\-m2\fR" 4
10482 .IX Item "-m2"
10483 Generate code for the \s-1SH2\s0.
10484 .IP "\fB\-m2e\fR" 4
10485 .IX Item "-m2e"
10486 Generate code for the SH2e.
10487 .IP "\fB\-m3\fR" 4
10488 .IX Item "-m3"
10489 Generate code for the \s-1SH3\s0.
10490 .IP "\fB\-m3e\fR" 4
10491 .IX Item "-m3e"
10492 Generate code for the SH3e.
10493 .IP "\fB\-m4\-nofpu\fR" 4
10494 .IX Item "-m4-nofpu"
10495 Generate code for the \s-1SH4\s0 without a floating-point unit.
10496 .IP "\fB\-m4\-single\-only\fR" 4
10497 .IX Item "-m4-single-only"
10498 Generate code for the \s-1SH4\s0 with a floating-point unit that only
10499 supports single-precision arithmetic.
10500 .IP "\fB\-m4\-single\fR" 4
10501 .IX Item "-m4-single"
10502 Generate code for the \s-1SH4\s0 assuming the floating-point unit is in
10503 single-precision mode by default.
10504 .IP "\fB\-m4\fR" 4
10505 .IX Item "-m4"
10506 Generate code for the \s-1SH4\s0.
10507 .IP "\fB\-m4a\-nofpu\fR" 4
10508 .IX Item "-m4a-nofpu"
10509 Generate code for the SH4al\-dsp, or for a SH4a in such a way that the
10510 floating-point unit is not used.
10511 .IP "\fB\-m4a\-single\-only\fR" 4
10512 .IX Item "-m4a-single-only"
10513 Generate code for the SH4a, in such a way that no double-precision
10514 floating point operations are used.
10515 .IP "\fB\-m4a\-single\fR" 4
10516 .IX Item "-m4a-single"
10517 Generate code for the SH4a assuming the floating-point unit is in
10518 single-precision mode by default.
10519 .IP "\fB\-m4a\fR" 4
10520 .IX Item "-m4a"
10521 Generate code for the SH4a.
10522 .IP "\fB\-m4al\fR" 4
10523 .IX Item "-m4al"
10524 Same as \fB\-m4a\-nofpu\fR, except that it implicitly passes
10525 \&\fB\-dsp\fR to the assembler.  \s-1GCC\s0 doesn't generate any \s-1DSP\s0
10526 instructions at the moment.
10527 .IP "\fB\-mb\fR" 4
10528 .IX Item "-mb"
10529 Compile code for the processor in big endian mode.
10530 .IP "\fB\-ml\fR" 4
10531 .IX Item "-ml"
10532 Compile code for the processor in little endian mode.
10533 .IP "\fB\-mdalign\fR" 4
10534 .IX Item "-mdalign"
10535 Align doubles at 64\-bit boundaries.  Note that this changes the calling
10536 conventions, and thus some functions from the standard C library will
10537 not work unless you recompile it first with \fB\-mdalign\fR.
10538 .IP "\fB\-mrelax\fR" 4
10539 .IX Item "-mrelax"
10540 Shorten some address references at link time, when possible; uses the
10541 linker option \fB\-relax\fR.
10542 .IP "\fB\-mbigtable\fR" 4
10543 .IX Item "-mbigtable"
10544 Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables.  The default is to use
10545 16\-bit offsets.
10546 .IP "\fB\-mfmovd\fR" 4
10547 .IX Item "-mfmovd"
10548 Enable the use of the instruction \f(CW\*(C`fmovd\*(C'\fR.
10549 .IP "\fB\-mhitachi\fR" 4
10550 .IX Item "-mhitachi"
10551 Comply with the calling conventions defined by Renesas.
10552 .IP "\fB\-mrenesas\fR" 4
10553 .IX Item "-mrenesas"
10554 Comply with the calling conventions defined by Renesas.
10555 .IP "\fB\-mno\-renesas\fR" 4
10556 .IX Item "-mno-renesas"
10557 Comply with the calling conventions defined for \s-1GCC\s0 before the Renesas
10558 conventions were available.  This option is the default for all
10559 targets of the \s-1SH\s0 toolchain except for \fBsh-symbianelf\fR.
10560 .IP "\fB\-mnomacsave\fR" 4
10561 .IX Item "-mnomacsave"
10562 Mark the \f(CW\*(C`MAC\*(C'\fR register as call\-clobbered, even if
10563 \&\fB\-mhitachi\fR is given.
10564 .IP "\fB\-mieee\fR" 4
10565 .IX Item "-mieee"
10566 Increase IEEE-compliance of floating-point code.
10567 .IP "\fB\-misize\fR" 4
10568 .IX Item "-misize"
10569 Dump instruction size and location in the assembly code.
10570 .IP "\fB\-mpadstruct\fR" 4
10571 .IX Item "-mpadstruct"
10572 This option is deprecated.  It pads structures to multiple of 4 bytes,
10573 which is incompatible with the \s-1SH\s0 \s-1ABI\s0.
10574 .IP "\fB\-mspace\fR" 4
10575 .IX Item "-mspace"
10576 Optimize for space instead of speed.  Implied by \fB\-Os\fR.
10577 .IP "\fB\-mprefergot\fR" 4
10578 .IX Item "-mprefergot"
10579 When generating position-independent code, emit function calls using
10580 the Global Offset Table instead of the Procedure Linkage Table.
10581 .IP "\fB\-musermode\fR" 4
10582 .IX Item "-musermode"
10583 Generate a library function call to invalidate instruction cache
10584 entries, after fixing up a trampoline.  This library function call
10585 doesn't assume it can write to the whole memory address space.  This
10586 is the default when the target is \f(CW\*(C`sh\-*\-linux*\*(C'\fR.
10587 .PP
10588 \fI\s-1SPARC\s0 Options\fR
10589 .IX Subsection "SPARC Options"
10590 .PP
10591 These \fB\-m\fR options are supported on the \s-1SPARC:\s0
10592 .IP "\fB\-mno\-app\-regs\fR" 4
10593 .IX Item "-mno-app-regs"
10594 .PD 0
10595 .IP "\fB\-mapp\-regs\fR" 4
10596 .IX Item "-mapp-regs"
10597 .PD
10598 Specify \fB\-mapp\-regs\fR to generate output using the global registers
10599 2 through 4, which the \s-1SPARC\s0 \s-1SVR4\s0 \s-1ABI\s0 reserves for applications.  This
10600 is the default.
10601 .Sp
10602 To be fully \s-1SVR4\s0 \s-1ABI\s0 compliant at the cost of some performance loss,
10603 specify \fB\-mno\-app\-regs\fR.  You should compile libraries and system
10604 software with this option.
10605 .IP "\fB\-mfpu\fR" 4
10606 .IX Item "-mfpu"
10607 .PD 0
10608 .IP "\fB\-mhard\-float\fR" 4
10609 .IX Item "-mhard-float"
10610 .PD
10611 Generate output containing floating point instructions.  This is the
10612 default.
10613 .IP "\fB\-mno\-fpu\fR" 4
10614 .IX Item "-mno-fpu"
10615 .PD 0
10616 .IP "\fB\-msoft\-float\fR" 4
10617 .IX Item "-msoft-float"
10618 .PD
10619 Generate output containing library calls for floating point.
10620 \&\fBWarning:\fR the requisite libraries are not available for all \s-1SPARC\s0
10621 targets.  Normally the facilities of the machine's usual C compiler are
10622 used, but this cannot be done directly in cross\-compilation.  You must make
10623 your own arrangements to provide suitable library functions for
10624 cross\-compilation.  The embedded targets \fBsparc\-*\-aout\fR and
10625 \&\fBsparclite\-*\-*\fR do provide software floating point support.
10626 .Sp
10627 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
10628 therefore, it is only useful if you compile \fIall\fR of a program with
10629 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
10630 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
10631 this to work.
10632 .IP "\fB\-mhard\-quad\-float\fR" 4
10633 .IX Item "-mhard-quad-float"
10634 Generate output containing quad-word (long double) floating point
10635 instructions.
10636 .IP "\fB\-msoft\-quad\-float\fR" 4
10637 .IX Item "-msoft-quad-float"
10638 Generate output containing library calls for quad-word (long double)
10639 floating point instructions.  The functions called are those specified
10640 in the \s-1SPARC\s0 \s-1ABI\s0.  This is the default.
10641 .Sp
10642 As of this writing, there are no \s-1SPARC\s0 implementations that have hardware
10643 support for the quad-word floating point instructions.  They all invoke
10644 a trap handler for one of these instructions, and then the trap handler
10645 emulates the effect of the instruction.  Because of the trap handler overhead,
10646 this is much slower than calling the \s-1ABI\s0 library routines.  Thus the
10647 \&\fB\-msoft\-quad\-float\fR option is the default.
10648 .IP "\fB\-mno\-unaligned\-doubles\fR" 4
10649 .IX Item "-mno-unaligned-doubles"
10650 .PD 0
10651 .IP "\fB\-munaligned\-doubles\fR" 4
10652 .IX Item "-munaligned-doubles"
10653 .PD
10654 Assume that doubles have 8 byte alignment.  This is the default.
10655 .Sp
10656 With \fB\-munaligned\-doubles\fR, \s-1GCC\s0 assumes that doubles have 8 byte
10657 alignment only if they are contained in another type, or if they have an
10658 absolute address.  Otherwise, it assumes they have 4 byte alignment.
10659 Specifying this option avoids some rare compatibility problems with code
10660 generated by other compilers.  It is not the default because it results
10661 in a performance loss, especially for floating point code.
10662 .IP "\fB\-mno\-faster\-structs\fR" 4
10663 .IX Item "-mno-faster-structs"
10664 .PD 0
10665 .IP "\fB\-mfaster\-structs\fR" 4
10666 .IX Item "-mfaster-structs"
10667 .PD
10668 With \fB\-mfaster\-structs\fR, the compiler assumes that structures
10669 should have 8 byte alignment.  This enables the use of pairs of
10670 \&\f(CW\*(C`ldd\*(C'\fR and \f(CW\*(C`std\*(C'\fR instructions for copies in structure
10671 assignment, in place of twice as many \f(CW\*(C`ld\*(C'\fR and \f(CW\*(C`st\*(C'\fR pairs.
10672 However, the use of this changed alignment directly violates the \s-1SPARC\s0
10673 \&\s-1ABI\s0.  Thus, it's intended only for use on targets where the developer
10674 acknowledges that their resulting code will not be directly in line with
10675 the rules of the \s-1ABI\s0.
10676 .IP "\fB\-mimpure\-text\fR" 4
10677 .IX Item "-mimpure-text"
10678 \&\fB\-mimpure\-text\fR, used in addition to \fB\-shared\fR, tells
10679 the compiler to not pass \fB\-z text\fR to the linker when linking a
10680 shared object.  Using this option, you can link position-dependent
10681 code into a shared object.
10682 .Sp
10683 \&\fB\-mimpure\-text\fR suppresses the ``relocations remain against
10684 allocatable but non-writable sections'' linker error message.
10685 However, the necessary relocations will trigger copy\-on\-write, and the
10686 shared object is not actually shared across processes.  Instead of
10687 using \fB\-mimpure\-text\fR, you should compile all source code with
10688 \&\fB\-fpic\fR or \fB\-fPIC\fR.
10689 .Sp
10690 This option is only available on SunOS and Solaris.
10691 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
10692 .IX Item "-mcpu=cpu_type"
10693 Set the instruction set, register set, and instruction scheduling parameters
10694 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
10695 \&\fBv7\fR, \fBcypress\fR, \fBv8\fR, \fBsupersparc\fR, \fBsparclite\fR,
10696 \&\fBf930\fR, \fBf934\fR, \fBhypersparc\fR, \fBsparclite86x\fR,
10697 \&\fBsparclet\fR, \fBtsc701\fR, \fBv9\fR, \fBultrasparc\fR, and
10698 \&\fBultrasparc3\fR.
10699 .Sp
10700 Default instruction scheduling parameters are used for values that select
10701 an architecture and not an implementation.  These are \fBv7\fR, \fBv8\fR,
10702 \&\fBsparclite\fR, \fBsparclet\fR, \fBv9\fR.
10703 .Sp
10704 Here is a list of each supported architecture and their supported
10705 implementations.
10706 .Sp
10707 .Vb 5
10708 \&            v7:             cypress
10709 \&            v8:             supersparc, hypersparc
10710 \&            sparclite:      f930, f934, sparclite86x
10711 \&            sparclet:       tsc701
10712 \&            v9:             ultrasparc, ultrasparc3
10713 .Ve
10714 .Sp
10715 By default (unless configured otherwise), \s-1GCC\s0 generates code for the V7
10716 variant of the \s-1SPARC\s0 architecture.  With \fB\-mcpu=cypress\fR, the compiler
10717 additionally optimizes it for the Cypress \s-1CY7C602\s0 chip, as used in the
10718 SPARCStation/SPARCServer 3xx series.  This is also appropriate for the older
10719 SPARCStation 1, 2, \s-1IPX\s0 etc.
10720 .Sp
10721 With \fB\-mcpu=v8\fR, \s-1GCC\s0 generates code for the V8 variant of the \s-1SPARC\s0
10722 architecture.  The only difference from V7 code is that the compiler emits
10723 the integer multiply and integer divide instructions which exist in \s-1SPARC\-V8\s0
10724 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=supersparc\fR, the compiler additionally
10725 optimizes it for the SuperSPARC chip, as used in the SPARCStation 10, 1000 and
10726 2000 series.
10727 .Sp
10728 With \fB\-mcpu=sparclite\fR, \s-1GCC\s0 generates code for the SPARClite variant of
10729 the \s-1SPARC\s0 architecture.  This adds the integer multiply, integer divide step
10730 and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClite but not in \s-1SPARC\-V7\s0.
10731 With \fB\-mcpu=f930\fR, the compiler additionally optimizes it for the
10732 Fujitsu \s-1MB86930\s0 chip, which is the original SPARClite, with no \s-1FPU\s0.  With
10733 \&\fB\-mcpu=f934\fR, the compiler additionally optimizes it for the Fujitsu
10734 \&\s-1MB86934\s0 chip, which is the more recent SPARClite with \s-1FPU\s0.
10735 .Sp
10736 With \fB\-mcpu=sparclet\fR, \s-1GCC\s0 generates code for the SPARClet variant of
10737 the \s-1SPARC\s0 architecture.  This adds the integer multiply, multiply/accumulate,
10738 integer divide step and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClet
10739 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=tsc701\fR, the compiler additionally
10740 optimizes it for the \s-1TEMIC\s0 SPARClet chip.
10741 .Sp
10742 With \fB\-mcpu=v9\fR, \s-1GCC\s0 generates code for the V9 variant of the \s-1SPARC\s0
10743 architecture.  This adds 64\-bit integer and floating-point move instructions,
10744 3 additional floating-point condition code registers and conditional move
10745 instructions.  With \fB\-mcpu=ultrasparc\fR, the compiler additionally
10746 optimizes it for the Sun UltraSPARC I/II chips.  With
10747 \&\fB\-mcpu=ultrasparc3\fR, the compiler additionally optimizes it for the
10748 Sun UltraSPARC \s-1III\s0 chip.
10749 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
10750 .IX Item "-mtune=cpu_type"
10751 Set the instruction scheduling parameters for machine type
10752 \&\fIcpu_type\fR, but do not set the instruction set or register set that the
10753 option \fB\-mcpu=\fR\fIcpu_type\fR would.
10754 .Sp
10755 The same values for \fB\-mcpu=\fR\fIcpu_type\fR can be used for
10756 \&\fB\-mtune=\fR\fIcpu_type\fR, but the only useful values are those
10757 that select a particular cpu implementation.  Those are \fBcypress\fR,
10758 \&\fBsupersparc\fR, \fBhypersparc\fR, \fBf930\fR, \fBf934\fR,
10759 \&\fBsparclite86x\fR, \fBtsc701\fR, \fBultrasparc\fR, and
10760 \&\fBultrasparc3\fR.
10761 .IP "\fB\-mv8plus\fR" 4
10762 .IX Item "-mv8plus"
10763 .PD 0
10764 .IP "\fB\-mno\-v8plus\fR" 4
10765 .IX Item "-mno-v8plus"
10766 .PD
10767 With \fB\-mv8plus\fR, \s-1GCC\s0 generates code for the \s-1SPARC\-V8+\s0 \s-1ABI\s0.  The
10768 difference from the V8 \s-1ABI\s0 is that the global and out registers are
10769 considered 64\-bit wide.  This is enabled by default on Solaris in 32\-bit
10770 mode for all \s-1SPARC\-V9\s0 processors.
10771 .IP "\fB\-mvis\fR" 4
10772 .IX Item "-mvis"
10773 .PD 0
10774 .IP "\fB\-mno\-vis\fR" 4
10775 .IX Item "-mno-vis"
10776 .PD
10777 With \fB\-mvis\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
10778 Visual Instruction Set extensions.  The default is \fB\-mno\-vis\fR.
10779 .PP
10780 These \fB\-m\fR options are supported in addition to the above
10781 on \s-1SPARC\-V9\s0 processors in 64\-bit environments:
10782 .IP "\fB\-mlittle\-endian\fR" 4
10783 .IX Item "-mlittle-endian"
10784 Generate code for a processor running in little-endian mode.  It is only
10785 available for a few configurations and most notably not on Solaris and Linux.
10786 .IP "\fB\-m32\fR" 4
10787 .IX Item "-m32"
10788 .PD 0
10789 .IP "\fB\-m64\fR" 4
10790 .IX Item "-m64"
10791 .PD
10792 Generate code for a 32\-bit or 64\-bit environment.
10793 The 32\-bit environment sets int, long and pointer to 32 bits.
10794 The 64\-bit environment sets int to 32 bits and long and pointer
10795 to 64 bits.
10796 .IP "\fB\-mcmodel=medlow\fR" 4
10797 .IX Item "-mcmodel=medlow"
10798 Generate code for the Medium/Low code model: 64\-bit addresses, programs
10799 must be linked in the low 32 bits of memory.  Programs can be statically
10800 or dynamically linked.
10801 .IP "\fB\-mcmodel=medmid\fR" 4
10802 .IX Item "-mcmodel=medmid"
10803 Generate code for the Medium/Middle code model: 64\-bit addresses, programs
10804 must be linked in the low 44 bits of memory, the text and data segments must
10805 be less than 2GB in size and the data segment must be located within 2GB of
10806 the text segment.
10807 .IP "\fB\-mcmodel=medany\fR" 4
10808 .IX Item "-mcmodel=medany"
10809 Generate code for the Medium/Anywhere code model: 64\-bit addresses, programs
10810 may be linked anywhere in memory, the text and data segments must be less
10811 than 2GB in size and the data segment must be located within 2GB of the
10812 text segment.
10813 .IP "\fB\-mcmodel=embmedany\fR" 4
10814 .IX Item "-mcmodel=embmedany"
10815 Generate code for the Medium/Anywhere code model for embedded systems:
10816 64\-bit addresses, the text and data segments must be less than 2GB in
10817 size, both starting anywhere in memory (determined at link time).  The
10818 global register \f(CW%g4\fR points to the base of the data segment.  Programs
10819 are statically linked and \s-1PIC\s0 is not supported.
10820 .IP "\fB\-mstack\-bias\fR" 4
10821 .IX Item "-mstack-bias"
10822 .PD 0
10823 .IP "\fB\-mno\-stack\-bias\fR" 4
10824 .IX Item "-mno-stack-bias"
10825 .PD
10826 With \fB\-mstack\-bias\fR, \s-1GCC\s0 assumes that the stack pointer, and
10827 frame pointer if present, are offset by \-2047 which must be added back
10828 when making stack frame references.  This is the default in 64\-bit mode.
10829 Otherwise, assume no such offset is present.
10830 .PP
10831 These switches are supported in addition to the above on Solaris:
10832 .IP "\fB\-threads\fR" 4
10833 .IX Item "-threads"
10834 Add support for multithreading using the Solaris threads library.  This
10835 option sets flags for both the preprocessor and linker.  This option does
10836 not affect the thread safety of object code produced by the compiler or
10837 that of libraries supplied with it.
10838 .IP "\fB\-pthreads\fR" 4
10839 .IX Item "-pthreads"
10840 Add support for multithreading using the \s-1POSIX\s0 threads library.  This
10841 option sets flags for both the preprocessor and linker.  This option does
10842 not affect the thread safety of object code produced  by the compiler or
10843 that of libraries supplied with it.
10844 .PP
10845 \fIOptions for System V\fR
10846 .IX Subsection "Options for System V"
10847 .PP
10848 These additional options are available on System V Release 4 for
10849 compatibility with other compilers on those systems:
10850 .IP "\fB\-G\fR" 4
10851 .IX Item "-G"
10852 Create a shared object.
10853 It is recommended that \fB\-symbolic\fR or \fB\-shared\fR be used instead.
10854 .IP "\fB\-Qy\fR" 4
10855 .IX Item "-Qy"
10856 Identify the versions of each tool used by the compiler, in a
10857 \&\f(CW\*(C`.ident\*(C'\fR assembler directive in the output.
10858 .IP "\fB\-Qn\fR" 4
10859 .IX Item "-Qn"
10860 Refrain from adding \f(CW\*(C`.ident\*(C'\fR directives to the output file (this is
10861 the default).
10862 .IP "\fB\-YP,\fR\fIdirs\fR" 4
10863 .IX Item "-YP,dirs"
10864 Search the directories \fIdirs\fR, and no others, for libraries
10865 specified with \fB\-l\fR.
10866 .IP "\fB\-Ym,\fR\fIdir\fR" 4
10867 .IX Item "-Ym,dir"
10868 Look in the directory \fIdir\fR to find the M4 preprocessor.
10869 The assembler uses this option.
10870 .PP
10871 \fITMS320C3x/C4x Options\fR
10872 .IX Subsection "TMS320C3x/C4x Options"
10873 .PP
10874 These \fB\-m\fR options are defined for TMS320C3x/C4x implementations:
10875 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
10876 .IX Item "-mcpu=cpu_type"
10877 Set the instruction set, register set, and instruction scheduling
10878 parameters for machine type \fIcpu_type\fR.  Supported values for
10879 \&\fIcpu_type\fR are \fBc30\fR, \fBc31\fR, \fBc32\fR, \fBc40\fR, and
10880 \&\fBc44\fR.  The default is \fBc40\fR to generate code for the
10881 \&\s-1TMS320C40\s0.
10882 .IP "\fB\-mbig\-memory\fR" 4
10883 .IX Item "-mbig-memory"
10884 .PD 0
10885 .IP "\fB\-mbig\fR" 4
10886 .IX Item "-mbig"
10887 .IP "\fB\-msmall\-memory\fR" 4
10888 .IX Item "-msmall-memory"
10889 .IP "\fB\-msmall\fR" 4
10890 .IX Item "-msmall"
10891 .PD
10892 Generates code for the big or small memory model.  The small memory
10893 model assumed that all data fits into one 64K word page.  At run-time
10894 the data page (\s-1DP\s0) register must be set to point to the 64K page
10895 containing the .bss and .data program sections.  The big memory model is
10896 the default and requires reloading of the \s-1DP\s0 register for every direct
10897 memory access.
10898 .IP "\fB\-mbk\fR" 4
10899 .IX Item "-mbk"
10900 .PD 0
10901 .IP "\fB\-mno\-bk\fR" 4
10902 .IX Item "-mno-bk"
10903 .PD
10904 Allow (disallow) allocation of general integer operands into the block
10905 count register \s-1BK\s0.
10906 .IP "\fB\-mdb\fR" 4
10907 .IX Item "-mdb"
10908 .PD 0
10909 .IP "\fB\-mno\-db\fR" 4
10910 .IX Item "-mno-db"
10911 .PD
10912 Enable (disable) generation of code using decrement and branch,
10913 DBcond(D), instructions.  This is enabled by default for the C4x.  To be
10914 on the safe side, this is disabled for the C3x, since the maximum
10915 iteration count on the C3x is 2^{23 + 1} (but who iterates loops more than
10916 2^{23} times on the C3x?).  Note that \s-1GCC\s0 will try to reverse a loop so
10917 that it can utilize the decrement and branch instruction, but will give
10918 up if there is more than one memory reference in the loop.  Thus a loop
10919 where the loop counter is decremented can generate slightly more
10920 efficient code, in cases where the \s-1RPTB\s0 instruction cannot be utilized.
10921 .IP "\fB\-mdp\-isr\-reload\fR" 4
10922 .IX Item "-mdp-isr-reload"
10923 .PD 0
10924 .IP "\fB\-mparanoid\fR" 4
10925 .IX Item "-mparanoid"
10926 .PD
10927 Force the \s-1DP\s0 register to be saved on entry to an interrupt service
10928 routine (\s-1ISR\s0), reloaded to point to the data section, and restored on
10929 exit from the \s-1ISR\s0.  This should not be required unless someone has
10930 violated the small memory model by modifying the \s-1DP\s0 register, say within
10931 an object library.
10932 .IP "\fB\-mmpyi\fR" 4
10933 .IX Item "-mmpyi"
10934 .PD 0
10935 .IP "\fB\-mno\-mpyi\fR" 4
10936 .IX Item "-mno-mpyi"
10937 .PD
10938 For the C3x use the 24\-bit \s-1MPYI\s0 instruction for integer multiplies
10939 instead of a library call to guarantee 32\-bit results.  Note that if one
10940 of the operands is a constant, then the multiplication will be performed
10941 using shifts and adds.  If the \fB\-mmpyi\fR option is not specified for the C3x,
10942 then squaring operations are performed inline instead of a library call.
10943 .IP "\fB\-mfast\-fix\fR" 4
10944 .IX Item "-mfast-fix"
10945 .PD 0
10946 .IP "\fB\-mno\-fast\-fix\fR" 4
10947 .IX Item "-mno-fast-fix"
10948 .PD
10949 The C3x/C4x \s-1FIX\s0 instruction to convert a floating point value to an
10950 integer value chooses the nearest integer less than or equal to the
10951 floating point value rather than to the nearest integer.  Thus if the
10952 floating point number is negative, the result will be incorrectly
10953 truncated an additional code is necessary to detect and correct this
10954 case.  This option can be used to disable generation of the additional
10955 code required to correct the result.
10956 .IP "\fB\-mrptb\fR" 4
10957 .IX Item "-mrptb"
10958 .PD 0
10959 .IP "\fB\-mno\-rptb\fR" 4
10960 .IX Item "-mno-rptb"
10961 .PD
10962 Enable (disable) generation of repeat block sequences using the \s-1RPTB\s0
10963 instruction for zero overhead looping.  The \s-1RPTB\s0 construct is only used
10964 for innermost loops that do not call functions or jump across the loop
10965 boundaries.  There is no advantage having nested \s-1RPTB\s0 loops due to the
10966 overhead required to save and restore the \s-1RC\s0, \s-1RS\s0, and \s-1RE\s0 registers.
10967 This is enabled by default with \fB\-O2\fR.
10968 .IP "\fB\-mrpts=\fR\fIcount\fR" 4
10969 .IX Item "-mrpts=count"
10970 .PD 0
10971 .IP "\fB\-mno\-rpts\fR" 4
10972 .IX Item "-mno-rpts"
10973 .PD
10974 Enable (disable) the use of the single instruction repeat instruction
10975 \&\s-1RPTS\s0.  If a repeat block contains a single instruction, and the loop
10976 count can be guaranteed to be less than the value \fIcount\fR, \s-1GCC\s0 will
10977 emit a \s-1RPTS\s0 instruction instead of a \s-1RPTB\s0.  If no value is specified,
10978 then a \s-1RPTS\s0 will be emitted even if the loop count cannot be determined
10979 at compile time.  Note that the repeated instruction following \s-1RPTS\s0 does
10980 not have to be reloaded from memory each iteration, thus freeing up the
10981 \&\s-1CPU\s0 buses for operands.  However, since interrupts are blocked by this
10982 instruction, it is disabled by default.
10983 .IP "\fB\-mloop\-unsigned\fR" 4
10984 .IX Item "-mloop-unsigned"
10985 .PD 0
10986 .IP "\fB\-mno\-loop\-unsigned\fR" 4
10987 .IX Item "-mno-loop-unsigned"
10988 .PD
10989 The maximum iteration count when using \s-1RPTS\s0 and \s-1RPTB\s0 (and \s-1DB\s0 on the C40)
10990 is 2^{31 + 1} since these instructions test if the iteration count is
10991 negative to terminate the loop.  If the iteration count is unsigned
10992 there is a possibility than the 2^{31 + 1} maximum iteration count may be
10993 exceeded.  This switch allows an unsigned iteration count.
10994 .IP "\fB\-mti\fR" 4
10995 .IX Item "-mti"
10996 Try to emit an assembler syntax that the \s-1TI\s0 assembler (asm30) is happy
10997 with.  This also enforces compatibility with the \s-1API\s0 employed by the \s-1TI\s0
10998 C3x C compiler.  For example, long doubles are passed as structures
10999 rather than in floating point registers.
11000 .IP "\fB\-mregparm\fR" 4
11001 .IX Item "-mregparm"
11002 .PD 0
11003 .IP "\fB\-mmemparm\fR" 4
11004 .IX Item "-mmemparm"
11005 .PD
11006 Generate code that uses registers (stack) for passing arguments to functions.
11007 By default, arguments are passed in registers where possible rather
11008 than by pushing arguments on to the stack.
11009 .IP "\fB\-mparallel\-insns\fR" 4
11010 .IX Item "-mparallel-insns"
11011 .PD 0
11012 .IP "\fB\-mno\-parallel\-insns\fR" 4
11013 .IX Item "-mno-parallel-insns"
11014 .PD
11015 Allow the generation of parallel instructions.  This is enabled by
11016 default with \fB\-O2\fR.
11017 .IP "\fB\-mparallel\-mpy\fR" 4
11018 .IX Item "-mparallel-mpy"
11019 .PD 0
11020 .IP "\fB\-mno\-parallel\-mpy\fR" 4
11021 .IX Item "-mno-parallel-mpy"
11022 .PD
11023 Allow the generation of MPY||ADD and MPY||SUB parallel instructions,
11024 provided \fB\-mparallel\-insns\fR is also specified.  These instructions have
11025 tight register constraints which can pessimize the code generation
11026 of large functions.
11027 .PP
11028 \fIV850 Options\fR
11029 .IX Subsection "V850 Options"
11030 .PP
11031 These \fB\-m\fR options are defined for V850 implementations:
11032 .IP "\fB\-mlong\-calls\fR" 4
11033 .IX Item "-mlong-calls"
11034 .PD 0
11035 .IP "\fB\-mno\-long\-calls\fR" 4
11036 .IX Item "-mno-long-calls"
11037 .PD
11038 Treat all calls as being far away (near).  If calls are assumed to be
11039 far away, the compiler will always load the functions address up into a
11040 register, and call indirect through the pointer.
11041 .IP "\fB\-mno\-ep\fR" 4
11042 .IX Item "-mno-ep"
11043 .PD 0
11044 .IP "\fB\-mep\fR" 4
11045 .IX Item "-mep"
11046 .PD
11047 Do not optimize (do optimize) basic blocks that use the same index
11048 pointer 4 or more times to copy pointer into the \f(CW\*(C`ep\*(C'\fR register, and
11049 use the shorter \f(CW\*(C`sld\*(C'\fR and \f(CW\*(C`sst\*(C'\fR instructions.  The \fB\-mep\fR
11050 option is on by default if you optimize.
11051 .IP "\fB\-mno\-prolog\-function\fR" 4
11052 .IX Item "-mno-prolog-function"
11053 .PD 0
11054 .IP "\fB\-mprolog\-function\fR" 4
11055 .IX Item "-mprolog-function"
11056 .PD
11057 Do not use (do use) external functions to save and restore registers
11058 at the prologue and epilogue of a function.  The external functions
11059 are slower, but use less code space if more than one function saves
11060 the same number of registers.  The \fB\-mprolog\-function\fR option
11061 is on by default if you optimize.
11062 .IP "\fB\-mspace\fR" 4
11063 .IX Item "-mspace"
11064 Try to make the code as small as possible.  At present, this just turns
11065 on the \fB\-mep\fR and \fB\-mprolog\-function\fR options.
11066 .IP "\fB\-mtda=\fR\fIn\fR" 4
11067 .IX Item "-mtda=n"
11068 Put static or global variables whose size is \fIn\fR bytes or less into
11069 the tiny data area that register \f(CW\*(C`ep\*(C'\fR points to.  The tiny data
11070 area can hold up to 256 bytes in total (128 bytes for byte references).
11071 .IP "\fB\-msda=\fR\fIn\fR" 4
11072 .IX Item "-msda=n"
11073 Put static or global variables whose size is \fIn\fR bytes or less into
11074 the small data area that register \f(CW\*(C`gp\*(C'\fR points to.  The small data
11075 area can hold up to 64 kilobytes.
11076 .IP "\fB\-mzda=\fR\fIn\fR" 4
11077 .IX Item "-mzda=n"
11078 Put static or global variables whose size is \fIn\fR bytes or less into
11079 the first 32 kilobytes of memory.
11080 .IP "\fB\-mv850\fR" 4
11081 .IX Item "-mv850"
11082 Specify that the target processor is the V850.
11083 .IP "\fB\-mbig\-switch\fR" 4
11084 .IX Item "-mbig-switch"
11085 Generate code suitable for big switch tables.  Use this option only if
11086 the assembler/linker complain about out of range branches within a switch
11087 table.
11088 .IP "\fB\-mapp\-regs\fR" 4
11089 .IX Item "-mapp-regs"
11090 This option will cause r2 and r5 to be used in the code generated by
11091 the compiler.  This setting is the default.
11092 .IP "\fB\-mno\-app\-regs\fR" 4
11093 .IX Item "-mno-app-regs"
11094 This option will cause r2 and r5 to be treated as fixed registers.
11095 .IP "\fB\-mv850e1\fR" 4
11096 .IX Item "-mv850e1"
11097 Specify that the target processor is the V850E1.  The preprocessor
11098 constants \fB_\|_v850e1_\|_\fR and \fB_\|_v850e_\|_\fR will be defined if
11099 this option is used.
11100 .IP "\fB\-mv850e\fR" 4
11101 .IX Item "-mv850e"
11102 Specify that the target processor is the V850E.  The preprocessor
11103 constant \fB_\|_v850e_\|_\fR will be defined if this option is used.
11104 .Sp
11105 If neither \fB\-mv850\fR nor \fB\-mv850e\fR nor \fB\-mv850e1\fR
11106 are defined then a default target processor will be chosen and the
11107 relevant \fB_\|_v850*_\|_\fR preprocessor constant will be defined.
11108 .Sp
11109 The preprocessor constants \fB_\|_v850\fR and \fB_\|_v851_\|_\fR are always
11110 defined, regardless of which processor variant is the target.
11111 .IP "\fB\-mdisable\-callt\fR" 4
11112 .IX Item "-mdisable-callt"
11113 This option will suppress generation of the \s-1CALLT\s0 instruction for the
11114 v850e and v850e1 flavors of the v850 architecture.  The default is
11115 \&\fB\-mno\-disable\-callt\fR which allows the \s-1CALLT\s0 instruction to be used.
11116 .PP
11117 \fI\s-1VAX\s0 Options\fR
11118 .IX Subsection "VAX Options"
11119 .PP
11120 These \fB\-m\fR options are defined for the \s-1VAX:\s0
11121 .IP "\fB\-munix\fR" 4
11122 .IX Item "-munix"
11123 Do not output certain jump instructions (\f(CW\*(C`aobleq\*(C'\fR and so on)
11124 that the Unix assembler for the \s-1VAX\s0 cannot handle across long
11125 ranges.
11126 .IP "\fB\-mgnu\fR" 4
11127 .IX Item "-mgnu"
11128 Do output those jump instructions, on the assumption that you
11129 will assemble with the \s-1GNU\s0 assembler.
11130 .IP "\fB\-mg\fR" 4
11131 .IX Item "-mg"
11132 Output code for g\-format floating point numbers instead of d\-format.
11133 .PP
11134 \fIx86\-64 Options\fR
11135 .IX Subsection "x86-64 Options"
11136 .PP
11137 These are listed under 
11138 .PP
11139 \fIXstormy16 Options\fR
11140 .IX Subsection "Xstormy16 Options"
11141 .PP
11142 These options are defined for Xstormy16:
11143 .IP "\fB\-msim\fR" 4
11144 .IX Item "-msim"
11145 Choose startup files and linker script suitable for the simulator.
11146 .PP
11147 \fIXtensa Options\fR
11148 .IX Subsection "Xtensa Options"
11149 .PP
11150 These options are supported for Xtensa targets:
11151 .IP "\fB\-mconst16\fR" 4
11152 .IX Item "-mconst16"
11153 .PD 0
11154 .IP "\fB\-mno\-const16\fR" 4
11155 .IX Item "-mno-const16"
11156 .PD
11157 Enable or disable use of \f(CW\*(C`CONST16\*(C'\fR instructions for loading
11158 constant values.  The \f(CW\*(C`CONST16\*(C'\fR instruction is currently not a
11159 standard option from Tensilica.  When enabled, \f(CW\*(C`CONST16\*(C'\fR
11160 instructions are always used in place of the standard \f(CW\*(C`L32R\*(C'\fR
11161 instructions.  The use of \f(CW\*(C`CONST16\*(C'\fR is enabled by default only if
11162 the \f(CW\*(C`L32R\*(C'\fR instruction is not available.
11163 .IP "\fB\-mfused\-madd\fR" 4
11164 .IX Item "-mfused-madd"
11165 .PD 0
11166 .IP "\fB\-mno\-fused\-madd\fR" 4
11167 .IX Item "-mno-fused-madd"
11168 .PD
11169 Enable or disable use of fused multiply/add and multiply/subtract
11170 instructions in the floating-point option.  This has no effect if the
11171 floating-point option is not also enabled.  Disabling fused multiply/add
11172 and multiply/subtract instructions forces the compiler to use separate
11173 instructions for the multiply and add/subtract operations.  This may be
11174 desirable in some cases where strict \s-1IEEE\s0 754\-compliant results are
11175 required: the fused multiply add/subtract instructions do not round the
11176 intermediate result, thereby producing results with \fImore\fR bits of
11177 precision than specified by the \s-1IEEE\s0 standard.  Disabling fused multiply
11178 add/subtract instructions also ensures that the program output is not
11179 sensitive to the compiler's ability to combine multiply and add/subtract
11180 operations.
11181 .IP "\fB\-mtext\-section\-literals\fR" 4
11182 .IX Item "-mtext-section-literals"
11183 .PD 0
11184 .IP "\fB\-mno\-text\-section\-literals\fR" 4
11185 .IX Item "-mno-text-section-literals"
11186 .PD
11187 Control the treatment of literal pools.  The default is
11188 \&\fB\-mno\-text\-section\-literals\fR, which places literals in a separate
11189 section in the output file.  This allows the literal pool to be placed
11190 in a data \s-1RAM/ROM\s0, and it also allows the linker to combine literal
11191 pools from separate object files to remove redundant literals and
11192 improve code size.  With \fB\-mtext\-section\-literals\fR, the literals
11193 are interspersed in the text section in order to keep them as close as
11194 possible to their references.  This may be necessary for large assembly
11195 files.
11196 .IP "\fB\-mtarget\-align\fR" 4
11197 .IX Item "-mtarget-align"
11198 .PD 0
11199 .IP "\fB\-mno\-target\-align\fR" 4
11200 .IX Item "-mno-target-align"
11201 .PD
11202 When this option is enabled, \s-1GCC\s0 instructs the assembler to
11203 automatically align instructions to reduce branch penalties at the
11204 expense of some code density.  The assembler attempts to widen density
11205 instructions to align branch targets and the instructions following call
11206 instructions.  If there are not enough preceding safe density
11207 instructions to align a target, no widening will be performed.  The
11208 default is \fB\-mtarget\-align\fR.  These options do not affect the
11209 treatment of auto-aligned instructions like \f(CW\*(C`LOOP\*(C'\fR, which the
11210 assembler will always align, either by widening density instructions or
11211 by inserting no-op instructions.
11212 .IP "\fB\-mlongcalls\fR" 4
11213 .IX Item "-mlongcalls"
11214 .PD 0
11215 .IP "\fB\-mno\-longcalls\fR" 4
11216 .IX Item "-mno-longcalls"
11217 .PD
11218 When this option is enabled, \s-1GCC\s0 instructs the assembler to translate
11219 direct calls to indirect calls unless it can determine that the target
11220 of a direct call is in the range allowed by the call instruction.  This
11221 translation typically occurs for calls to functions in other source
11222 files.  Specifically, the assembler translates a direct \f(CW\*(C`CALL\*(C'\fR
11223 instruction into an \f(CW\*(C`L32R\*(C'\fR followed by a \f(CW\*(C`CALLX\*(C'\fR instruction.
11224 The default is \fB\-mno\-longcalls\fR.  This option should be used in
11225 programs where the call target can potentially be out of range.  This
11226 option is implemented in the assembler, not the compiler, so the
11227 assembly code generated by \s-1GCC\s0 will still show direct call
11228 instructions\-\-\-look at the disassembled object code to see the actual
11229 instructions.  Note that the assembler will use an indirect call for
11230 every cross-file call, not just those that really will be out of range.
11231 .PP
11232 \fIzSeries Options\fR
11233 .IX Subsection "zSeries Options"
11234 .PP
11235 These are listed under 
11236 .Sh "Options for Code Generation Conventions"
11237 .IX Subsection "Options for Code Generation Conventions"
11238 These machine-independent options control the interface conventions
11239 used in code generation.
11240 .PP
11241 Most of them have both positive and negative forms; the negative form
11242 of \fB\-ffoo\fR would be \fB\-fno\-foo\fR.  In the table below, only
11243 one of the forms is listed\-\-\-the one which is not the default.  You
11244 can figure out the other form by either removing \fBno\-\fR or adding
11245 it.
11246 .IP "\fB\-fbounds\-check\fR" 4
11247 .IX Item "-fbounds-check"
11248 For front-ends that support it, generate additional code to check that
11249 indices used to access arrays are within the declared range.  This is
11250 currently only supported by the Java and Fortran 77 front\-ends, where
11251 this option defaults to true and false respectively.
11252 .IP "\fB\-ftrapv\fR" 4
11253 .IX Item "-ftrapv"
11254 This option generates traps for signed overflow on addition, subtraction,
11255 multiplication operations.
11256 .IP "\fB\-fwrapv\fR" 4
11257 .IX Item "-fwrapv"
11258 This option instructs the compiler to assume that signed arithmetic
11259 overflow of addition, subtraction and multiplication wraps around
11260 using twos-complement representation.  This flag enables some optimizations
11261 and disables other.  This option is enabled by default for the Java
11262 front\-end, as required by the Java language specification.
11263 .IP "\fB\-fexceptions\fR" 4
11264 .IX Item "-fexceptions"
11265 Enable exception handling.  Generates extra code needed to propagate
11266 exceptions.  For some targets, this implies \s-1GCC\s0 will generate frame
11267 unwind information for all functions, which can produce significant data
11268 size overhead, although it does not affect execution.  If you do not
11269 specify this option, \s-1GCC\s0 will enable it by default for languages like
11270 \&\*(C+ which normally require exception handling, and disable it for
11271 languages like C that do not normally require it.  However, you may need
11272 to enable this option when compiling C code that needs to interoperate
11273 properly with exception handlers written in \*(C+.  You may also wish to
11274 disable this option if you are compiling older \*(C+ programs that don't
11275 use exception handling.
11276 .IP "\fB\-fnon\-call\-exceptions\fR" 4
11277 .IX Item "-fnon-call-exceptions"
11278 Generate code that allows trapping instructions to throw exceptions.
11279 Note that this requires platform-specific runtime support that does
11280 not exist everywhere.  Moreover, it only allows \fItrapping\fR
11281 instructions to throw exceptions, i.e. memory references or floating
11282 point instructions.  It does not allow exceptions to be thrown from
11283 arbitrary signal handlers such as \f(CW\*(C`SIGALRM\*(C'\fR.
11284 .IP "\fB\-funwind\-tables\fR" 4
11285 .IX Item "-funwind-tables"
11286 Similar to \fB\-fexceptions\fR, except that it will just generate any needed
11287 static data, but will not affect the generated code in any other way.
11288 You will normally not enable this option; instead, a language processor
11289 that needs this handling would enable it on your behalf.
11290 .IP "\fB\-fasynchronous\-unwind\-tables\fR" 4
11291 .IX Item "-fasynchronous-unwind-tables"
11292 Generate unwind table in dwarf2 format, if supported by target machine.  The
11293 table is exact at each instruction boundary, so it can be used for stack
11294 unwinding from asynchronous events (such as debugger or garbage collector).
11295 .IP "\fB\-fpcc\-struct\-return\fR" 4
11296 .IX Item "-fpcc-struct-return"
11297 Return ``short'' \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in memory like
11298 longer ones, rather than in registers.  This convention is less
11299 efficient, but it has the advantage of allowing intercallability between
11300 GCC-compiled files and files compiled with other compilers, particularly
11301 the Portable C Compiler (pcc).
11302 .Sp
11303 The precise convention for returning structures in memory depends
11304 on the target configuration macros.
11305 .Sp
11306 Short structures and unions are those whose size and alignment match
11307 that of some integer type.
11308 .Sp
11309 \&\fBWarning:\fR code compiled with the \fB\-fpcc\-struct\-return\fR
11310 switch is not binary compatible with code compiled with the
11311 \&\fB\-freg\-struct\-return\fR switch.
11312 Use it to conform to a non-default application binary interface.
11313 .IP "\fB\-freg\-struct\-return\fR" 4
11314 .IX Item "-freg-struct-return"
11315 Return \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in registers when possible.
11316 This is more efficient for small structures than
11317 \&\fB\-fpcc\-struct\-return\fR.
11318 .Sp
11319 If you specify neither \fB\-fpcc\-struct\-return\fR nor
11320 \&\fB\-freg\-struct\-return\fR, \s-1GCC\s0 defaults to whichever convention is
11321 standard for the target.  If there is no standard convention, \s-1GCC\s0
11322 defaults to \fB\-fpcc\-struct\-return\fR, except on targets where \s-1GCC\s0 is
11323 the principal compiler.  In those cases, we can choose the standard, and
11324 we chose the more efficient register return alternative.
11325 .Sp
11326 \&\fBWarning:\fR code compiled with the \fB\-freg\-struct\-return\fR
11327 switch is not binary compatible with code compiled with the
11328 \&\fB\-fpcc\-struct\-return\fR switch.
11329 Use it to conform to a non-default application binary interface.
11330 .IP "\fB\-fshort\-enums\fR" 4
11331 .IX Item "-fshort-enums"
11332 Allocate to an \f(CW\*(C`enum\*(C'\fR type only as many bytes as it needs for the
11333 declared range of possible values.  Specifically, the \f(CW\*(C`enum\*(C'\fR type
11334 will be equivalent to the smallest integer type which has enough room.
11335 .Sp
11336 \&\fBWarning:\fR the \fB\-fshort\-enums\fR switch causes \s-1GCC\s0 to generate
11337 code that is not binary compatible with code generated without that switch.
11338 Use it to conform to a non-default application binary interface.
11339 .IP "\fB\-fshort\-double\fR" 4
11340 .IX Item "-fshort-double"
11341 Use the same size for \f(CW\*(C`double\*(C'\fR as for \f(CW\*(C`float\*(C'\fR.
11342 .Sp
11343 \&\fBWarning:\fR the \fB\-fshort\-double\fR switch causes \s-1GCC\s0 to generate
11344 code that is not binary compatible with code generated without that switch.
11345 Use it to conform to a non-default application binary interface.
11346 .IP "\fB\-fshort\-wchar\fR" 4
11347 .IX Item "-fshort-wchar"
11348 Override the underlying type for \fBwchar_t\fR to be \fBshort
11349 unsigned int\fR instead of the default for the target.  This option is
11350 useful for building programs to run under \s-1WINE\s0.
11351 .Sp
11352 \&\fBWarning:\fR the \fB\-fshort\-wchar\fR switch causes \s-1GCC\s0 to generate
11353 code that is not binary compatible with code generated without that switch.
11354 Use it to conform to a non-default application binary interface.
11355 .IP "\fB\-fshared\-data\fR" 4
11356 .IX Item "-fshared-data"
11357 Requests that the data and non\-\f(CW\*(C`const\*(C'\fR variables of this
11358 compilation be shared data rather than private data.  The distinction
11359 makes sense only on certain operating systems, where shared data is
11360 shared between processes running the same program, while private data
11361 exists in one copy per process.
11362 .IP "\fB\-fno\-common\fR" 4
11363 .IX Item "-fno-common"
11364 In C, allocate even uninitialized global variables in the data section of the
11365 object file, rather than generating them as common blocks.  This has the
11366 effect that if the same variable is declared (without \f(CW\*(C`extern\*(C'\fR) in
11367 two different compilations, you will get an error when you link them.
11368 The only reason this might be useful is if you wish to verify that the
11369 program will work on other systems which always work this way.
11370 .IP "\fB\-fno\-ident\fR" 4
11371 .IX Item "-fno-ident"
11372 Ignore the \fB#ident\fR directive.
11373 .IP "\fB\-finhibit\-size\-directive\fR" 4
11374 .IX Item "-finhibit-size-directive"
11375 Don't output a \f(CW\*(C`.size\*(C'\fR assembler directive, or anything else that
11376 would cause trouble if the function is split in the middle, and the
11377 two halves are placed at locations far apart in memory.  This option is
11378 used when compiling \fIcrtstuff.c\fR; you should not need to use it
11379 for anything else.
11380 .IP "\fB\-fverbose\-asm\fR" 4
11381 .IX Item "-fverbose-asm"
11382 Put extra commentary information in the generated assembly code to
11383 make it more readable.  This option is generally only of use to those
11384 who actually need to read the generated assembly code (perhaps while
11385 debugging the compiler itself).
11386 .Sp
11387 \&\fB\-fno\-verbose\-asm\fR, the default, causes the
11388 extra information to be omitted and is useful when comparing two assembler
11389 files.
11390 .IP "\fB\-fpic\fR" 4
11391 .IX Item "-fpic"
11392 Generate position-independent code (\s-1PIC\s0) suitable for use in a shared
11393 library, if supported for the target machine.  Such code accesses all
11394 constant addresses through a global offset table (\s-1GOT\s0).  The dynamic
11395 loader resolves the \s-1GOT\s0 entries when the program starts (the dynamic
11396 loader is not part of \s-1GCC\s0; it is part of the operating system).  If
11397 the \s-1GOT\s0 size for the linked executable exceeds a machine-specific
11398 maximum size, you get an error message from the linker indicating that
11399 \&\fB\-fpic\fR does not work; in that case, recompile with \fB\-fPIC\fR
11400 instead.  (These maximums are 8k on the \s-1SPARC\s0 and 32k
11401 on the m68k and \s-1RS/6000\s0.  The 386 has no such limit.)
11402 .Sp
11403 Position-independent code requires special support, and therefore works
11404 only on certain machines.  For the 386, \s-1GCC\s0 supports \s-1PIC\s0 for System V
11405 but not for the Sun 386i.  Code generated for the \s-1IBM\s0 \s-1RS/6000\s0 is always
11406 position\-independent.
11407 .IP "\fB\-fPIC\fR" 4
11408 .IX Item "-fPIC"
11409 If supported for the target machine, emit position-independent code,
11410 suitable for dynamic linking and avoiding any limit on the size of the
11411 global offset table.  This option makes a difference on the m68k,
11412 PowerPC and \s-1SPARC\s0.
11413 .Sp
11414 Position-independent code requires special support, and therefore works
11415 only on certain machines.
11416 .IP "\fB\-fpie\fR" 4
11417 .IX Item "-fpie"
11418 .PD 0
11419 .IP "\fB\-fPIE\fR" 4
11420 .IX Item "-fPIE"
11421 .PD
11422 These options are similar to \fB\-fpic\fR and \fB\-fPIC\fR, but
11423 generated position independent code can be only linked into executables.
11424 Usually these options are used when \fB\-pie\fR \s-1GCC\s0 option will be
11425 used during linking.
11426 .IP "\fB\-ffixed\-\fR\fIreg\fR" 4
11427 .IX Item "-ffixed-reg"
11428 Treat the register named \fIreg\fR as a fixed register; generated code
11429 should never refer to it (except perhaps as a stack pointer, frame
11430 pointer or in some other fixed role).
11431 .Sp
11432 \&\fIreg\fR must be the name of a register.  The register names accepted
11433 are machine-specific and are defined in the \f(CW\*(C`REGISTER_NAMES\*(C'\fR
11434 macro in the machine description macro file.
11435 .Sp
11436 This flag does not have a negative form, because it specifies a
11437 three-way choice.
11438 .IP "\fB\-fcall\-used\-\fR\fIreg\fR" 4
11439 .IX Item "-fcall-used-reg"
11440 Treat the register named \fIreg\fR as an allocable register that is
11441 clobbered by function calls.  It may be allocated for temporaries or
11442 variables that do not live across a call.  Functions compiled this way
11443 will not save and restore the register \fIreg\fR.
11444 .Sp
11445 It is an error to used this flag with the frame pointer or stack pointer.
11446 Use of this flag for other registers that have fixed pervasive roles in
11447 the machine's execution model will produce disastrous results.
11448 .Sp
11449 This flag does not have a negative form, because it specifies a
11450 three-way choice.
11451 .IP "\fB\-fcall\-saved\-\fR\fIreg\fR" 4
11452 .IX Item "-fcall-saved-reg"
11453 Treat the register named \fIreg\fR as an allocable register saved by
11454 functions.  It may be allocated even for temporaries or variables that
11455 live across a call.  Functions compiled this way will save and restore
11456 the register \fIreg\fR if they use it.
11457 .Sp
11458 It is an error to used this flag with the frame pointer or stack pointer.
11459 Use of this flag for other registers that have fixed pervasive roles in
11460 the machine's execution model will produce disastrous results.
11461 .Sp
11462 A different sort of disaster will result from the use of this flag for
11463 a register in which function values may be returned.
11464 .Sp
11465 This flag does not have a negative form, because it specifies a
11466 three-way choice.
11467 .IP "\fB\-fpack\-struct[=\fR\fIn\fR\fB]\fR" 4
11468 .IX Item "-fpack-struct[=n]"
11469 Without a value specified, pack all structure members together without
11470 holes.  When a value is specified (which must be a small power of two), pack
11471 structure members according to this value, representing the maximum
11472 alignment (that is, objects with default alignment requirements larger than
11473 this will be output potentially unaligned at the next fitting location.
11474 .Sp
11475 \&\fBWarning:\fR the \fB\-fpack\-struct\fR switch causes \s-1GCC\s0 to generate
11476 code that is not binary compatible with code generated without that switch.
11477 Additionally, it makes the code suboptimal.
11478 Use it to conform to a non-default application binary interface.
11479 .IP "\fB\-finstrument\-functions\fR" 4
11480 .IX Item "-finstrument-functions"
11481 Generate instrumentation calls for entry and exit to functions.  Just
11482 after function entry and just before function exit, the following
11483 profiling functions will be called with the address of the current
11484 function and its call site.  (On some platforms,
11485 \&\f(CW\*(C`_\|_builtin_return_address\*(C'\fR does not work beyond the current
11486 function, so the call site information may not be available to the
11487 profiling functions otherwise.)
11488 .Sp
11489 .Vb 4
11490 \&        void __cyg_profile_func_enter (void *this_fn,
11491 \&                                       void *call_site);
11492 \&        void __cyg_profile_func_exit  (void *this_fn,
11493 \&                                       void *call_site);
11494 .Ve
11495 .Sp
11496 The first argument is the address of the start of the current function,
11497 which may be looked up exactly in the symbol table.
11498 .Sp
11499 This instrumentation is also done for functions expanded inline in other
11500 functions.  The profiling calls will indicate where, conceptually, the
11501 inline function is entered and exited.  This means that addressable
11502 versions of such functions must be available.  If all your uses of a
11503 function are expanded inline, this may mean an additional expansion of
11504 code size.  If you use \fBextern inline\fR in your C code, an
11505 addressable version of such functions must be provided.  (This is
11506 normally the case anyways, but if you get lucky and the optimizer always
11507 expands the functions inline, you might have gotten away without
11508 providing static copies.)
11509 .Sp
11510 A function may be given the attribute \f(CW\*(C`no_instrument_function\*(C'\fR, in
11511 which case this instrumentation will not be done.  This can be used, for
11512 example, for the profiling functions listed above, high-priority
11513 interrupt routines, and any functions from which the profiling functions
11514 cannot safely be called (perhaps signal handlers, if the profiling
11515 routines generate output or allocate memory).
11516 .IP "\fB\-fstack\-check\fR" 4
11517 .IX Item "-fstack-check"
11518 Generate code to verify that you do not go beyond the boundary of the
11519 stack.  You should specify this flag if you are running in an
11520 environment with multiple threads, but only rarely need to specify it in
11521 a single-threaded environment since stack overflow is automatically
11522 detected on nearly all systems if there is only one stack.
11523 .Sp
11524 Note that this switch does not actually cause checking to be done; the
11525 operating system must do that.  The switch causes generation of code
11526 to ensure that the operating system sees the stack being extended.
11527 .IP "\fB\-fstack\-limit\-register=\fR\fIreg\fR" 4
11528 .IX Item "-fstack-limit-register=reg"
11529 .PD 0
11530 .IP "\fB\-fstack\-limit\-symbol=\fR\fIsym\fR" 4
11531 .IX Item "-fstack-limit-symbol=sym"
11532 .IP "\fB\-fno\-stack\-limit\fR" 4
11533 .IX Item "-fno-stack-limit"
11534 .PD
11535 Generate code to ensure that the stack does not grow beyond a certain value,
11536 either the value of a register or the address of a symbol.  If the stack
11537 would grow beyond the value, a signal is raised.  For most targets,
11538 the signal is raised before the stack overruns the boundary, so
11539 it is possible to catch the signal without taking special precautions.
11540 .Sp
11541 For instance, if the stack starts at absolute address \fB0x80000000\fR
11542 and grows downwards, you can use the flags
11543 \&\fB\-fstack\-limit\-symbol=_\|_stack_limit\fR and
11544 \&\fB\-Wl,\-\-defsym,_\|_stack_limit=0x7ffe0000\fR to enforce a stack limit
11545 of 128KB.  Note that this may only work with the \s-1GNU\s0 linker.
11546 .IP "\fB\-fargument\-alias\fR" 4
11547 .IX Item "-fargument-alias"
11548 .PD 0
11549 .IP "\fB\-fargument\-noalias\fR" 4
11550 .IX Item "-fargument-noalias"
11551 .IP "\fB\-fargument\-noalias\-global\fR" 4
11552 .IX Item "-fargument-noalias-global"
11553 .PD
11554 Specify the possible relationships among parameters and between
11555 parameters and global data.
11556 .Sp
11557 \&\fB\-fargument\-alias\fR specifies that arguments (parameters) may
11558 alias each other and may alias global storage.\fB\-fargument\-noalias\fR specifies that arguments do not alias
11559 each other, but may alias global storage.\fB\-fargument\-noalias\-global\fR specifies that arguments do not
11560 alias each other and do not alias global storage.
11561 .Sp
11562 Each language will automatically use whatever option is required by
11563 the language standard.  You should not need to use these options yourself.
11564 .IP "\fB\-fleading\-underscore\fR" 4
11565 .IX Item "-fleading-underscore"
11566 This option and its counterpart, \fB\-fno\-leading\-underscore\fR, forcibly
11567 change the way C symbols are represented in the object file.  One use
11568 is to help link with legacy assembly code.
11569 .Sp
11570 \&\fBWarning:\fR the \fB\-fleading\-underscore\fR switch causes \s-1GCC\s0 to
11571 generate code that is not binary compatible with code generated without that
11572 switch.  Use it to conform to a non-default application binary interface.
11573 Not all targets provide complete support for this switch.
11574 .IP "\fB\-ftls\-model=\fR\fImodel\fR" 4
11575 .IX Item "-ftls-model=model"
11576 Alter the thread-local storage model to be used.
11577 The \fImodel\fR argument should be one of \f(CW\*(C`global\-dynamic\*(C'\fR,
11578 \&\f(CW\*(C`local\-dynamic\*(C'\fR, \f(CW\*(C`initial\-exec\*(C'\fR or \f(CW\*(C`local\-exec\*(C'\fR.
11579 .Sp
11580 The default without \fB\-fpic\fR is \f(CW\*(C`initial\-exec\*(C'\fR; with
11581 \&\fB\-fpic\fR the default is \f(CW\*(C`global\-dynamic\*(C'\fR.
11582 .IP "\fB\-fvisibility=\fR\fIdefault|internal|hidden|protected\fR" 4
11583 .IX Item "-fvisibility=default|internal|hidden|protected"
11584 Set the default \s-1ELF\s0 image symbol visibility to the specified option\-\-\-all
11585 symbols will be marked with this unless overridden within the code.
11586 Using this feature can very substantially improve linking and
11587 load times of shared object libraries, produce more optimized
11588 code, provide near-perfect \s-1API\s0 export and prevent symbol clashes.
11589 It is \fBstrongly\fR recommended that you use this in any shared objects
11590 you distribute.
11591 .Sp
11592 Despite the nomenclature, \f(CW\*(C`default\*(C'\fR always means public ie;
11593 available to be linked against from outside the shared object.
11594 \&\f(CW\*(C`protected\*(C'\fR and \f(CW\*(C`internal\*(C'\fR are pretty useless in real-world
11595 usage so the only other commonly used option will be \f(CW\*(C`hidden\*(C'\fR.
11596 The default if \fB\-fvisibility\fR isn't specified is
11597 \&\f(CW\*(C`default\*(C'\fR, i.e., make every
11598 symbol public\-\-\-this causes the same behavior as previous versions of
11599 \&\s-1GCC\s0.
11600 .Sp
11601 A good explanation of the benefits offered by ensuring \s-1ELF\s0
11602 symbols have the correct visibility is given by ``How To Write
11603 Shared Libraries'' by Ulrich Drepper (which can be found at
11604 <\fBhttp://people.redhat.com/~drepper/\fR>)\-\-\-however a superior
11605 solution made possible by this option to marking things hidden when
11606 the default is public is to make the default hidden and mark things
11607 public.  This is the norm with \s-1DLL\s0's on Windows and with \fB\-fvisibility=hidden\fR
11608 and \f(CW\*(C`_\|_attribute_\|_ ((visibility("default")))\*(C'\fR instead of
11609 \&\f(CW\*(C`_\|_declspec(dllexport)\*(C'\fR you get almost identical semantics with
11610 identical syntax.  This is a great boon to those working with
11611 cross-platform projects.
11612 .Sp
11613 For those adding visibility support to existing code, you may find
11614 \&\fB#pragma \s-1GCC\s0 visibility\fR of use.  This works by you enclosing
11615 the declarations you wish to set visibility for with (for example)
11616 \&\fB#pragma \s-1GCC\s0 visibility push(hidden)\fR and
11617 \&\fB#pragma \s-1GCC\s0 visibility pop\fR.  These can be nested up to sixteen
11618 times.  Bear in mind that symbol visibility should be viewed \fBas
11619 part of the \s-1API\s0 interface contract\fR and thus all new code should
11620 always specify visibility when it is not the default ie; declarations
11621 only for use within the local \s-1DSO\s0 should \fBalways\fR be marked explicitly
11622 as hidden as so to avoid \s-1PLT\s0 indirection overheads\-\-\-making this
11623 abundantly clear also aids readability and self-documentation of the code.
11624 Note that due to \s-1ISO\s0 \*(C+ specification requirements, operator new and
11625 operator delete must always be of default visibility.
11626 .Sp
11627 An overview of these techniques, their benefits and how to use them
11628 is at <\fBhttp://www.nedprod.com/programs/gccvisibility.html\fR>.
11629 .SH "ENVIRONMENT"
11630 .IX Header "ENVIRONMENT"
11631 This section describes several environment variables that affect how \s-1GCC\s0
11632 operates.  Some of them work by specifying directories or prefixes to use
11633 when searching for various kinds of files.  Some are used to specify other
11634 aspects of the compilation environment.
11635 .PP
11636 Note that you can also specify places to search using options such as
11637 \&\fB\-B\fR, \fB\-I\fR and \fB\-L\fR.  These
11638 take precedence over places specified using environment variables, which
11639 in turn take precedence over those specified by the configuration of \s-1GCC\s0.
11640 .IP "\fB\s-1LANG\s0\fR" 4
11641 .IX Item "LANG"
11642 .PD 0
11643 .IP "\fB\s-1LC_CTYPE\s0\fR" 4
11644 .IX Item "LC_CTYPE"
11645 .IP "\fB\s-1LC_MESSAGES\s0\fR" 4
11646 .IX Item "LC_MESSAGES"
11647 .IP "\fB\s-1LC_ALL\s0\fR" 4
11648 .IX Item "LC_ALL"
11649 .PD
11650 These environment variables control the way that \s-1GCC\s0 uses
11651 localization information that allow \s-1GCC\s0 to work with different
11652 national conventions.  \s-1GCC\s0 inspects the locale categories
11653 \&\fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR if it has been configured to do
11654 so.  These locale categories can be set to any value supported by your
11655 installation.  A typical value is \fBen_GB.UTF\-8\fR for English in the United
11656 Kingdom encoded in \s-1UTF\-8\s0.
11657 .Sp
11658 The \fB\s-1LC_CTYPE\s0\fR environment variable specifies character
11659 classification.  \s-1GCC\s0 uses it to determine the character boundaries in
11660 a string; this is needed for some multibyte encodings that contain quote
11661 and escape characters that would otherwise be interpreted as a string
11662 end or escape.
11663 .Sp
11664 The \fB\s-1LC_MESSAGES\s0\fR environment variable specifies the language to
11665 use in diagnostic messages.
11666 .Sp
11667 If the \fB\s-1LC_ALL\s0\fR environment variable is set, it overrides the value
11668 of \fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR; otherwise, \fB\s-1LC_CTYPE\s0\fR
11669 and \fB\s-1LC_MESSAGES\s0\fR default to the value of the \fB\s-1LANG\s0\fR
11670 environment variable.  If none of these variables are set, \s-1GCC\s0
11671 defaults to traditional C English behavior.
11672 .IP "\fB\s-1TMPDIR\s0\fR" 4
11673 .IX Item "TMPDIR"
11674 If \fB\s-1TMPDIR\s0\fR is set, it specifies the directory to use for temporary
11675 files.  \s-1GCC\s0 uses temporary files to hold the output of one stage of
11676 compilation which is to be used as input to the next stage: for example,
11677 the output of the preprocessor, which is the input to the compiler
11678 proper.
11679 .IP "\fB\s-1GCC_EXEC_PREFIX\s0\fR" 4
11680 .IX Item "GCC_EXEC_PREFIX"
11681 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is set, it specifies a prefix to use in the
11682 names of the subprograms executed by the compiler.  No slash is added
11683 when this prefix is combined with the name of a subprogram, but you can
11684 specify a prefix that ends with a slash if you wish.
11685 .Sp
11686 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is not set, \s-1GCC\s0 will attempt to figure out
11687 an appropriate prefix to use based on the pathname it was invoked with.
11688 .Sp
11689 If \s-1GCC\s0 cannot find the subprogram using the specified prefix, it
11690 tries looking in the usual places for the subprogram.
11691 .Sp
11692 The default value of \fB\s-1GCC_EXEC_PREFIX\s0\fR is
11693 \&\fI\fIprefix\fI/lib/gcc/\fR where \fIprefix\fR is the value
11694 of \f(CW\*(C`prefix\*(C'\fR when you ran the \fIconfigure\fR script.
11695 .Sp
11696 Other prefixes specified with \fB\-B\fR take precedence over this prefix.
11697 .Sp
11698 This prefix is also used for finding files such as \fIcrt0.o\fR that are
11699 used for linking.
11700 .Sp
11701 In addition, the prefix is used in an unusual way in finding the
11702 directories to search for header files.  For each of the standard
11703 directories whose name normally begins with \fB/usr/local/lib/gcc\fR
11704 (more precisely, with the value of \fB\s-1GCC_INCLUDE_DIR\s0\fR), \s-1GCC\s0 tries
11705 replacing that beginning with the specified prefix to produce an
11706 alternate directory name.  Thus, with \fB\-Bfoo/\fR, \s-1GCC\s0 will search
11707 \&\fIfoo/bar\fR where it would normally search \fI/usr/local/lib/bar\fR.
11708 These alternate directories are searched first; the standard directories
11709 come next.
11710 .IP "\fB\s-1COMPILER_PATH\s0\fR" 4
11711 .IX Item "COMPILER_PATH"
11712 The value of \fB\s-1COMPILER_PATH\s0\fR is a colon-separated list of
11713 directories, much like \fB\s-1PATH\s0\fR.  \s-1GCC\s0 tries the directories thus
11714 specified when searching for subprograms, if it can't find the
11715 subprograms using \fB\s-1GCC_EXEC_PREFIX\s0\fR.
11716 .IP "\fB\s-1LIBRARY_PATH\s0\fR" 4
11717 .IX Item "LIBRARY_PATH"
11718 The value of \fB\s-1LIBRARY_PATH\s0\fR is a colon-separated list of
11719 directories, much like \fB\s-1PATH\s0\fR.  When configured as a native compiler,
11720 \&\s-1GCC\s0 tries the directories thus specified when searching for special
11721 linker files, if it can't find them using \fB\s-1GCC_EXEC_PREFIX\s0\fR.  Linking
11722 using \s-1GCC\s0 also uses these directories when searching for ordinary
11723 libraries for the \fB\-l\fR option (but directories specified with
11724 \&\fB\-L\fR come first).
11725 .IP "\fB\s-1LANG\s0\fR" 4
11726 .IX Item "LANG"
11727 This variable is used to pass locale information to the compiler.  One way in
11728 which this information is used is to determine the character set to be used
11729 when character literals, string literals and comments are parsed in C and \*(C+.
11730 When the compiler is configured to allow multibyte characters,
11731 the following values for \fB\s-1LANG\s0\fR are recognized:
11732 .RS 4
11733 .IP "\fBC\-JIS\fR" 4
11734 .IX Item "C-JIS"
11735 Recognize \s-1JIS\s0 characters.
11736 .IP "\fBC\-SJIS\fR" 4
11737 .IX Item "C-SJIS"
11738 Recognize \s-1SJIS\s0 characters.
11739 .IP "\fBC\-EUCJP\fR" 4
11740 .IX Item "C-EUCJP"
11741 Recognize \s-1EUCJP\s0 characters.
11742 .RE
11743 .RS 4
11744 .Sp
11745 If \fB\s-1LANG\s0\fR is not defined, or if it has some other value, then the
11746 compiler will use mblen and mbtowc as defined by the default locale to
11747 recognize and translate multibyte characters.
11748 .RE
11749 .PP
11750 Some additional environments variables affect the behavior of the
11751 preprocessor.
11752 .IP "\fB\s-1CPATH\s0\fR" 4
11753 .IX Item "CPATH"
11754 .PD 0
11755 .IP "\fBC_INCLUDE_PATH\fR" 4
11756 .IX Item "C_INCLUDE_PATH"
11757 .IP "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4
11758 .IX Item "CPLUS_INCLUDE_PATH"
11759 .IP "\fB\s-1OBJC_INCLUDE_PATH\s0\fR" 4
11760 .IX Item "OBJC_INCLUDE_PATH"
11761 .PD
11762 Each variable's value is a list of directories separated by a special
11763 character, much like \fB\s-1PATH\s0\fR, in which to look for header files.
11764 The special character, \f(CW\*(C`PATH_SEPARATOR\*(C'\fR, is target-dependent and
11765 determined at \s-1GCC\s0 build time.  For Microsoft Windows-based targets it is a
11766 semicolon, and for almost all other targets it is a colon.
11767 .Sp
11768 \&\fB\s-1CPATH\s0\fR specifies a list of directories to be searched as if
11769 specified with \fB\-I\fR, but after any paths given with \fB\-I\fR
11770 options on the command line.  This environment variable is used
11771 regardless of which language is being preprocessed.
11772 .Sp
11773 The remaining environment variables apply only when preprocessing the
11774 particular language indicated.  Each specifies a list of directories
11775 to be searched as if specified with \fB\-isystem\fR, but after any
11776 paths given with \fB\-isystem\fR options on the command line.
11777 .Sp
11778 In all these variables, an empty element instructs the compiler to
11779 search its current working directory.  Empty elements can appear at the
11780 beginning or end of a path.  For instance, if the value of
11781 \&\fB\s-1CPATH\s0\fR is \f(CW\*(C`:/special/include\*(C'\fR, that has the same
11782 effect as \fB\-I.\ \-I/special/include\fR.
11783 .IP "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4
11784 .IX Item "DEPENDENCIES_OUTPUT"
11785 If this variable is set, its value specifies how to output
11786 dependencies for Make based on the non-system header files processed
11787 by the compiler.  System header files are ignored in the dependency
11788 output.
11789 .Sp
11790 The value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, in
11791 which case the Make rules are written to that file, guessing the target
11792 name from the source file name.  Or the value can have the form
11793 \&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written to
11794 file \fIfile\fR using \fItarget\fR as the target name.
11795 .Sp
11796 In other words, this environment variable is equivalent to combining
11797 the options \fB\-MM\fR and \fB\-MF\fR,
11798 with an optional \fB\-MT\fR switch too.
11799 .IP "\fB\s-1SUNPRO_DEPENDENCIES\s0\fR" 4
11800 .IX Item "SUNPRO_DEPENDENCIES"
11801 This variable is the same as \fB\s-1DEPENDENCIES_OUTPUT\s0\fR (see above),
11802 except that system header files are not ignored, so it implies
11803 \&\fB\-M\fR rather than \fB\-MM\fR.  However, the dependence on the
11804 main input file is omitted.
11805 .SH "BUGS"
11806 .IX Header "BUGS"
11807 For instructions on reporting bugs, see
11808 <\fBhttp://gcc.gnu.org/bugs.html\fR>.
11809 .SH "FOOTNOTES"
11810 .IX Header "FOOTNOTES"
11811 .IP "1." 4
11812 On some systems, \fBgcc \-shared\fR
11813 needs to build supplementary stub code for constructors to work.  On
11814 multi-libbed systems, \fBgcc \-shared\fR must select the correct support
11815 libraries to link against.  Failing to supply the correct flags may lead
11816 to subtle defects.  Supplying them in cases where they are not necessary
11817 is innocuous.
11818 .SH "SEE ALSO"
11819 .IX Header "SEE ALSO"
11820 \&\fIgpl\fR\|(7), \fIgfdl\fR\|(7), \fIfsf\-funding\fR\|(7),
11821 \&\fIcpp\fR\|(1), \fIgcov\fR\|(1), \fIas\fR\|(1), \fIld\fR\|(1), \fIgdb\fR\|(1), \fIadb\fR\|(1), \fIdbx\fR\|(1), \fIsdb\fR\|(1)
11822 and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIas\fR,
11823 \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
11824 .SH "AUTHOR"
11825 .IX Header "AUTHOR"
11826 See the Info entry for \fBgcc\fR, or
11827 <\fBhttp://gcc.gnu.org/onlinedocs/gcc/Contributors.html\fR>,
11828 for contributors to \s-1GCC\s0.
11829 .SH "COPYRIGHT"
11830 .IX Header "COPYRIGHT"
11831 Copyright (c) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997,
11832 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
11833 .PP
11834 Permission is granted to copy, distribute and/or modify this document
11835 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.2 or
11836 any later version published by the Free Software Foundation; with the
11837 Invariant Sections being ``\s-1GNU\s0 General Public License'' and ``Funding
11838 Free Software'', the Front-Cover texts being (a) (see below), and with
11839 the Back-Cover Texts being (b) (see below).  A copy of the license is
11840 included in the \fIgfdl\fR\|(7) man page.
11841 .PP
11842 (a) The \s-1FSF\s0's Front-Cover Text is:
11843 .PP
11844 .Vb 1
11845 \&     A GNU Manual
11846 .Ve
11847 .PP
11848 (b) The \s-1FSF\s0's Back-Cover Text is:
11849 .PP
11850 .Vb 3
11851 \&     You have freedom to copy and modify this GNU Manual, like GNU
11852 \&     software.  Copies published by the Free Software Foundation raise
11853 \&     funds for GNU development.
11854 .Ve