Merge from vendor branch OPENSSH:
[dragonfly.git] / contrib / gcc-4.0 / gcc / doc / gcc.1
1 .\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.14
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-07-07" "gcc-4.0.1" "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  \-Wstrict\-null\-sentinel 
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 \&\fIBlackfin Options\fR
414 \&\fB\-momit\-leaf\-frame\-pointer \-mno\-omit\-leaf\-frame\-pointer \-mcsync 
415 \&\-mno\-csync \-mlow\-64k \-mno\-low64k \-mid\-shared\-library 
416 \&\-mno\-id\-shared\-library \-mshared\-library\-id=\fR\fIn\fR\fB \fR
417 .Sp
418 \&\fI\s-1CRIS\s0 Options\fR
419 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-march=\fR\fIcpu\fR  \fB\-mtune=\fR\fIcpu\fR 
420 \&\fB\-mmax\-stack\-frame=\fR\fIn\fR  \fB\-melinux\-stacksize=\fR\fIn\fR 
421 \&\fB\-metrax4  \-metrax100  \-mpdebug  \-mcc\-init  \-mno\-side\-effects 
422 \&\-mstack\-align  \-mdata\-align  \-mconst\-align 
423 \&\-m32\-bit  \-m16\-bit  \-m8\-bit  \-mno\-prologue\-epilogue  \-mno\-gotplt 
424 \&\-melf  \-maout  \-melinux  \-mlinux  \-sim  \-sim2 
425 \&\-mmul\-bug\-workaround  \-mno\-mul\-bug\-workaround\fR
426 .Sp
427 \&\fIDarwin Options\fR
428 \&\fB\-all_load  \-allowable_client  \-arch  \-arch_errors_fatal 
429 \&\-arch_only  \-bind_at_load  \-bundle  \-bundle_loader 
430 \&\-client_name  \-compatibility_version  \-current_version 
431 \&\-dead_strip 
432 \&\-dependency\-file  \-dylib_file  \-dylinker_install_name 
433 \&\-dynamic  \-dynamiclib  \-exported_symbols_list 
434 \&\-filelist  \-flat_namespace  \-force_cpusubtype_ALL 
435 \&\-force_flat_namespace  \-headerpad_max_install_names 
436 \&\-image_base  \-init  \-install_name  \-keep_private_externs 
437 \&\-multi_module  \-multiply_defined  \-multiply_defined_unused 
438 \&\-noall_load   \-no_dead_strip_inits_and_terms 
439 \&\-nofixprebinding \-nomultidefs  \-noprebind  \-noseglinkedit 
440 \&\-pagezero_size  \-prebind  \-prebind_all_twolevel_modules 
441 \&\-private_bundle  \-read_only_relocs  \-sectalign 
442 \&\-sectobjectsymbols  \-whyload  \-seg1addr 
443 \&\-sectcreate  \-sectobjectsymbols  \-sectorder 
444 \&\-segaddr \-segs_read_only_addr \-segs_read_write_addr 
445 \&\-seg_addr_table  \-seg_addr_table_filename  \-seglinkedit 
446 \&\-segprot  \-segs_read_only_addr  \-segs_read_write_addr 
447 \&\-single_module  \-static  \-sub_library  \-sub_umbrella 
448 \&\-twolevel_namespace  \-umbrella  \-undefined 
449 \&\-unexported_symbols_list  \-weak_reference_mismatches 
450 \&\-whatsloaded \-F \-gused \-gfull \-mone\-byte\-bool\fR
451 .Sp
452 \&\fI\s-1DEC\s0 Alpha Options\fR
453 \&\fB\-mno\-fp\-regs  \-msoft\-float  \-malpha\-as  \-mgas 
454 \&\-mieee  \-mieee\-with\-inexact  \-mieee\-conformant 
455 \&\-mfp\-trap\-mode=\fR\fImode\fR  \fB\-mfp\-rounding\-mode=\fR\fImode\fR 
456 \&\fB\-mtrap\-precision=\fR\fImode\fR  \fB\-mbuild\-constants 
457 \&\-mcpu=\fR\fIcpu-type\fR  \fB\-mtune=\fR\fIcpu-type\fR 
458 \&\fB\-mbwx  \-mmax  \-mfix  \-mcix 
459 \&\-mfloat\-vax  \-mfloat\-ieee 
460 \&\-mexplicit\-relocs  \-msmall\-data  \-mlarge\-data 
461 \&\-msmall\-text  \-mlarge\-text 
462 \&\-mmemory\-latency=\fR\fItime\fR
463 .Sp
464 \&\fI\s-1DEC\s0 Alpha/VMS Options\fR
465 \&\fB\-mvms\-return\-codes\fR
466 .Sp
467 \&\fI\s-1FRV\s0 Options\fR
468 \&\fB\-mgpr\-32  \-mgpr\-64  \-mfpr\-32  \-mfpr\-64 
469 \&\-mhard\-float  \-msoft\-float 
470 \&\-malloc\-cc  \-mfixed\-cc  \-mdword  \-mno\-dword 
471 \&\-mdouble  \-mno\-double 
472 \&\-mmedia  \-mno\-media  \-mmuladd  \-mno\-muladd 
473 \&\-mfdpic  \-minline\-plt \-mgprel\-ro  \-multilib\-library\-pic 
474 \&\-mlinked\-fp  \-mlong\-calls  \-malign\-labels 
475 \&\-mlibrary\-pic  \-macc\-4  \-macc\-8 
476 \&\-mpack  \-mno\-pack  \-mno\-eflags  \-mcond\-move  \-mno\-cond\-move 
477 \&\-mscc  \-mno\-scc  \-mcond\-exec  \-mno\-cond\-exec 
478 \&\-mvliw\-branch  \-mno\-vliw\-branch 
479 \&\-mmulti\-cond\-exec  \-mno\-multi\-cond\-exec  \-mnested\-cond\-exec 
480 \&\-mno\-nested\-cond\-exec  \-mtomcat\-stats 
481 \&\-mTLS \-mtls 
482 \&\-mcpu=\fR\fIcpu\fR
483 .Sp
484 \&\fIH8/300 Options\fR
485 \&\fB\-mrelax  \-mh  \-ms  \-mn  \-mint32  \-malign\-300\fR
486 .Sp
487 \&\fI\s-1HPPA\s0 Options\fR
488 \&\fB\-march=\fR\fIarchitecture-type\fR 
489 \&\fB\-mbig\-switch  \-mdisable\-fpregs  \-mdisable\-indexing 
490 \&\-mfast\-indirect\-calls  \-mgas  \-mgnu\-ld   \-mhp\-ld 
491 \&\-mfixed\-range=\fR\fIregister-range\fR 
492 \&\fB\-mjump\-in\-delay \-mlinker\-opt \-mlong\-calls 
493 \&\-mlong\-load\-store  \-mno\-big\-switch  \-mno\-disable\-fpregs 
494 \&\-mno\-disable\-indexing  \-mno\-fast\-indirect\-calls  \-mno\-gas 
495 \&\-mno\-jump\-in\-delay  \-mno\-long\-load\-store 
496 \&\-mno\-portable\-runtime  \-mno\-soft\-float 
497 \&\-mno\-space\-regs  \-msoft\-float  \-mpa\-risc\-1\-0 
498 \&\-mpa\-risc\-1\-1  \-mpa\-risc\-2\-0  \-mportable\-runtime 
499 \&\-mschedule=\fR\fIcpu-type\fR  \fB\-mspace\-regs  \-msio  \-mwsio 
500 \&\-munix=\fR\fIunix-std\fR  \fB\-nolibdld  \-static  \-threads\fR
501 .Sp
502 \&\fIi386 and x86\-64 Options\fR
503 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
504 \&\fB\-mfpmath=\fR\fIunit\fR 
505 \&\fB\-masm=\fR\fIdialect\fR  \fB\-mno\-fancy\-math\-387 
506 \&\-mno\-fp\-ret\-in\-387  \-msoft\-float  \-msvr3\-shlib 
507 \&\-mno\-wide\-multiply  \-mrtd  \-malign\-double 
508 \&\-mpreferred\-stack\-boundary=\fR\fInum\fR 
509 \&\fB\-mmmx  \-msse  \-msse2 \-msse3 \-m3dnow 
510 \&\-mthreads  \-mno\-align\-stringops  \-minline\-all\-stringops 
511 \&\-mpush\-args  \-maccumulate\-outgoing\-args  \-m128bit\-long\-double 
512 \&\-m96bit\-long\-double  \-mregparm=\fR\fInum\fR  \fB\-momit\-leaf\-frame\-pointer 
513 \&\-mno\-red\-zone \-mno\-tls\-direct\-seg\-refs 
514 \&\-mcmodel=\fR\fIcode-model\fR 
515 \&\fB\-m32  \-m64\fR
516 .Sp
517 \&\fI\s-1IA\-64\s0 Options\fR
518 \&\fB\-mbig\-endian  \-mlittle\-endian  \-mgnu\-as  \-mgnu\-ld  \-mno\-pic 
519 \&\-mvolatile\-asm\-stop  \-mregister\-names  \-mno\-sdata 
520 \&\-mconstant\-gp  \-mauto\-pic  \-minline\-float\-divide\-min\-latency 
521 \&\-minline\-float\-divide\-max\-throughput 
522 \&\-minline\-int\-divide\-min\-latency 
523 \&\-minline\-int\-divide\-max\-throughput  
524 \&\-minline\-sqrt\-min\-latency \-minline\-sqrt\-max\-throughput 
525 \&\-mno\-dwarf2\-asm \-mearly\-stop\-bits 
526 \&\-mfixed\-range=\fR\fIregister-range\fR \fB\-mtls\-size=\fR\fItls-size\fR 
527 \&\fB\-mtune=\fR\fIcpu-type\fR \fB\-mt \-pthread \-milp32 \-mlp64\fR
528 .Sp
529 \&\fIM32R/D Options\fR
530 \&\fB\-m32r2 \-m32rx \-m32r 
531 \&\-mdebug 
532 \&\-malign\-loops \-mno\-align\-loops 
533 \&\-missue\-rate=\fR\fInumber\fR 
534 \&\fB\-mbranch\-cost=\fR\fInumber\fR 
535 \&\fB\-mmodel=\fR\fIcode-size-model-type\fR 
536 \&\fB\-msdata=\fR\fIsdata-type\fR 
537 \&\fB\-mno\-flush\-func \-mflush\-func=\fR\fIname\fR 
538 \&\fB\-mno\-flush\-trap \-mflush\-trap=\fR\fInumber\fR 
539 \&\fB\-G\fR \fInum\fR
540 .Sp
541 \&\fIM680x0 Options\fR
542 \&\fB\-m68000  \-m68020  \-m68020\-40  \-m68020\-60  \-m68030  \-m68040 
543 \&\-m68060  \-mcpu32  \-m5200  \-m68881  \-mbitfield  \-mc68000  \-mc68020   
544 \&\-mnobitfield  \-mrtd  \-mshort  \-msoft\-float  \-mpcrel 
545 \&\-malign\-int  \-mstrict\-align  \-msep\-data  \-mno\-sep\-data 
546 \&\-mshared\-library\-id=n  \-mid\-shared\-library  \-mno\-id\-shared\-library\fR
547 .Sp
548 \&\fIM68hc1x Options\fR
549 \&\fB\-m6811  \-m6812  \-m68hc11  \-m68hc12   \-m68hcs12 
550 \&\-mauto\-incdec  \-minmax  \-mlong\-calls  \-mshort 
551 \&\-msoft\-reg\-count=\fR\fIcount\fR
552 .Sp
553 \&\fIMCore Options\fR
554 \&\fB\-mhardlit  \-mno\-hardlit  \-mdiv  \-mno\-div  \-mrelax\-immediates 
555 \&\-mno\-relax\-immediates  \-mwide\-bitfields  \-mno\-wide\-bitfields 
556 \&\-m4byte\-functions  \-mno\-4byte\-functions  \-mcallgraph\-data 
557 \&\-mno\-callgraph\-data  \-mslow\-bytes  \-mno\-slow\-bytes  \-mno\-lsim 
558 \&\-mlittle\-endian  \-mbig\-endian  \-m210  \-m340  \-mstack\-increment\fR
559 .Sp
560 \&\fI\s-1MIPS\s0 Options\fR
561 \&\fB\-EL  \-EB  \-march=\fR\fIarch\fR  \fB\-mtune=\fR\fIarch\fR 
562 \&\fB\-mips1  \-mips2  \-mips3  \-mips4  \-mips32  \-mips32r2  \-mips64 
563 \&\-mips16  \-mno\-mips16  \-mabi=\fR\fIabi\fR  \fB\-mabicalls  \-mno\-abicalls 
564 \&\-mxgot  \-mno\-xgot  \-mgp32  \-mgp64  \-mfp32  \-mfp64 
565 \&\-mhard\-float  \-msoft\-float  \-msingle\-float  \-mdouble\-float 
566 \&\-mpaired\-single  \-mips3d 
567 \&\-mint64  \-mlong64  \-mlong32  \-msym32  \-mno\-sym32 
568 \&\-G\fR\fInum\fR  \fB\-membedded\-data  \-mno\-embedded\-data 
569 \&\-muninit\-const\-in\-rodata  \-mno\-uninit\-const\-in\-rodata 
570 \&\-msplit\-addresses  \-mno\-split\-addresses  
571 \&\-mexplicit\-relocs  \-mno\-explicit\-relocs  
572 \&\-mcheck\-zero\-division  \-mno\-check\-zero\-division 
573 \&\-mdivide\-traps  \-mdivide\-breaks 
574 \&\-mmemcpy  \-mno\-memcpy  \-mlong\-calls  \-mno\-long\-calls 
575 \&\-mmad  \-mno\-mad  \-mfused\-madd  \-mno\-fused\-madd  \-nocpp 
576 \&\-mfix\-r4000  \-mno\-fix\-r4000  \-mfix\-r4400  \-mno\-fix\-r4400 
577 \&\-mfix\-vr4120  \-mno\-fix\-vr4120  \-mfix\-vr4130 
578 \&\-mfix\-sb1  \-mno\-fix\-sb1 
579 \&\-mflush\-func=\fR\fIfunc\fR  \fB\-mno\-flush\-func 
580 \&\-mbranch\-likely  \-mno\-branch\-likely 
581 \&\-mfp\-exceptions \-mno\-fp\-exceptions 
582 \&\-mvr4130\-align \-mno\-vr4130\-align\fR
583 .Sp
584 \&\fI\s-1MMIX\s0 Options\fR
585 \&\fB\-mlibfuncs  \-mno\-libfuncs  \-mepsilon  \-mno\-epsilon  \-mabi=gnu 
586 \&\-mabi=mmixware  \-mzero\-extend  \-mknuthdiv  \-mtoplevel\-symbols 
587 \&\-melf  \-mbranch\-predict  \-mno\-branch\-predict  \-mbase\-addresses 
588 \&\-mno\-base\-addresses  \-msingle\-exit  \-mno\-single\-exit\fR
589 .Sp
590 \&\fI\s-1MN10300\s0 Options\fR
591 \&\fB\-mmult\-bug  \-mno\-mult\-bug 
592 \&\-mam33  \-mno\-am33 
593 \&\-mam33\-2  \-mno\-am33\-2 
594 \&\-mno\-crt0  \-mrelax\fR
595 .Sp
596 \&\fI\s-1NS32K\s0 Options\fR
597 \&\fB\-m32032  \-m32332  \-m32532  \-m32081  \-m32381 
598 \&\-mmult\-add  \-mnomult\-add  \-msoft\-float  \-mrtd  \-mnortd 
599 \&\-mregparam  \-mnoregparam  \-msb  \-mnosb 
600 \&\-mbitfield  \-mnobitfield  \-mhimem  \-mnohimem\fR
601 .Sp
602 \&\fI\s-1PDP\-11\s0 Options\fR
603 \&\fB\-mfpu  \-msoft\-float  \-mac0  \-mno\-ac0  \-m40  \-m45  \-m10 
604 \&\-mbcopy  \-mbcopy\-builtin  \-mint32  \-mno\-int16 
605 \&\-mint16  \-mno\-int32  \-mfloat32  \-mno\-float64 
606 \&\-mfloat64  \-mno\-float32  \-mabshi  \-mno\-abshi 
607 \&\-mbranch\-expensive  \-mbranch\-cheap 
608 \&\-msplit  \-mno\-split  \-munix\-asm  \-mdec\-asm\fR
609 .Sp
610 \&\fIPowerPC Options\fR
611 See \s-1RS/6000\s0 and PowerPC Options.
612 .Sp
613 \&\fI\s-1RS/6000\s0 and PowerPC Options\fR
614 \&\fB\-mcpu=\fR\fIcpu-type\fR 
615 \&\fB\-mtune=\fR\fIcpu-type\fR 
616 \&\fB\-mpower  \-mno\-power  \-mpower2  \-mno\-power2 
617 \&\-mpowerpc  \-mpowerpc64  \-mno\-powerpc 
618 \&\-maltivec  \-mno\-altivec 
619 \&\-mpowerpc\-gpopt  \-mno\-powerpc\-gpopt 
620 \&\-mpowerpc\-gfxopt  \-mno\-powerpc\-gfxopt 
621 \&\-mnew\-mnemonics  \-mold\-mnemonics 
622 \&\-mfull\-toc   \-mminimal\-toc  \-mno\-fp\-in\-toc  \-mno\-sum\-in\-toc 
623 \&\-m64  \-m32  \-mxl\-compat  \-mno\-xl\-compat  \-mpe 
624 \&\-malign\-power  \-malign\-natural 
625 \&\-msoft\-float  \-mhard\-float  \-mmultiple  \-mno\-multiple 
626 \&\-mstring  \-mno\-string  \-mupdate  \-mno\-update 
627 \&\-mfused\-madd  \-mno\-fused\-madd  \-mbit\-align  \-mno\-bit\-align 
628 \&\-mstrict\-align  \-mno\-strict\-align  \-mrelocatable 
629 \&\-mno\-relocatable  \-mrelocatable\-lib  \-mno\-relocatable\-lib 
630 \&\-mtoc  \-mno\-toc  \-mlittle  \-mlittle\-endian  \-mbig  \-mbig\-endian 
631 \&\-mdynamic\-no\-pic 
632 \&\-mprioritize\-restricted\-insns=\fR\fIpriority\fR 
633 \&\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR 
634 \&\fB\-minsert\-sched\-nops=\fR\fIscheme\fR 
635 \&\fB\-mcall\-sysv  \-mcall\-netbsd 
636 \&\-maix\-struct\-return  \-msvr4\-struct\-return 
637 \&\-mabi=altivec  \-mabi=no\-altivec 
638 \&\-mabi=spe  \-mabi=no\-spe 
639 \&\-misel=yes  \-misel=no 
640 \&\-mspe=yes  \-mspe=no 
641 \&\-mfloat\-gprs=yes  \-mfloat\-gprs=no \-mfloat\-gprs=single \-mfloat\-gprs=double 
642 \&\-mprototype  \-mno\-prototype 
643 \&\-msim  \-mmvme  \-mads  \-myellowknife  \-memb  \-msdata 
644 \&\-msdata=\fR\fIopt\fR  \fB\-mvxworks  \-mwindiss  \-G\fR \fInum\fR  \fB\-pthread\fR
645 .Sp
646 \&\fIS/390 and zSeries Options\fR
647 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
648 \&\fB\-mhard\-float  \-msoft\-float  \-mbackchain  \-mno\-backchain 
649 \&\-mpacked\-stack  \-mno\-packed\-stack 
650 \&\-msmall\-exec  \-mno\-small\-exec  \-mmvcle \-mno\-mvcle 
651 \&\-m64  \-m31  \-mdebug  \-mno\-debug  \-mesa  \-mzarch 
652 \&\-mtpf\-trace \-mno\-tpf\-trace  \-mfused\-madd  \-mno\-fused\-madd 
653 \&\-mwarn\-framesize  \-mwarn\-dynamicstack  \-mstack\-size \-mstack\-guard\fR
654 .Sp
655 \&\fI\s-1SH\s0 Options\fR
656 \&\fB\-m1  \-m2  \-m2e  \-m3  \-m3e 
657 \&\-m4\-nofpu  \-m4\-single\-only  \-m4\-single  \-m4 
658 \&\-m4a\-nofpu \-m4a\-single\-only \-m4a\-single \-m4a \-m4al 
659 \&\-m5\-64media  \-m5\-64media\-nofpu 
660 \&\-m5\-32media  \-m5\-32media\-nofpu 
661 \&\-m5\-compact  \-m5\-compact\-nofpu 
662 \&\-mb  \-ml  \-mdalign  \-mrelax 
663 \&\-mbigtable  \-mfmovd  \-mhitachi \-mrenesas \-mno\-renesas \-mnomacsave 
664 \&\-mieee  \-misize  \-mpadstruct  \-mspace 
665 \&\-mprefergot  \-musermode\fR
666 .Sp
667 \&\fI\s-1SPARC\s0 Options\fR
668 \&\fB\-mcpu=\fR\fIcpu-type\fR 
669 \&\fB\-mtune=\fR\fIcpu-type\fR 
670 \&\fB\-mcmodel=\fR\fIcode-model\fR 
671 \&\fB\-m32  \-m64  \-mapp\-regs  \-mno\-app\-regs 
672 \&\-mfaster\-structs  \-mno\-faster\-structs 
673 \&\-mfpu  \-mno\-fpu  \-mhard\-float  \-msoft\-float 
674 \&\-mhard\-quad\-float  \-msoft\-quad\-float 
675 \&\-mimpure\-text  \-mno\-impure\-text  \-mlittle\-endian 
676 \&\-mstack\-bias  \-mno\-stack\-bias 
677 \&\-munaligned\-doubles  \-mno\-unaligned\-doubles 
678 \&\-mv8plus  \-mno\-v8plus  \-mvis  \-mno\-vis
679 \&\-threads \-pthreads\fR
680 .Sp
681 \&\fISystem V Options\fR
682 \&\fB\-Qy  \-Qn  \-YP,\fR\fIpaths\fR  \fB\-Ym,\fR\fIdir\fR
683 .Sp
684 \&\fITMS320C3x/C4x Options\fR
685 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-mbig  \-msmall  \-mregparm  \-mmemparm 
686 \&\-mfast\-fix  \-mmpyi  \-mbk  \-mti  \-mdp\-isr\-reload 
687 \&\-mrpts=\fR\fIcount\fR  \fB\-mrptb  \-mdb  \-mloop\-unsigned 
688 \&\-mparallel\-insns  \-mparallel\-mpy  \-mpreserve\-float\fR
689 .Sp
690 \&\fIV850 Options\fR
691 \&\fB\-mlong\-calls  \-mno\-long\-calls  \-mep  \-mno\-ep 
692 \&\-mprolog\-function  \-mno\-prolog\-function  \-mspace 
693 \&\-mtda=\fR\fIn\fR  \fB\-msda=\fR\fIn\fR  \fB\-mzda=\fR\fIn\fR 
694 \&\fB\-mapp\-regs  \-mno\-app\-regs 
695 \&\-mdisable\-callt  \-mno\-disable\-callt 
696 \&\-mv850e1 
697 \&\-mv850e 
698 \&\-mv850  \-mbig\-switch\fR
699 .Sp
700 \&\fI\s-1VAX\s0 Options\fR
701 \&\fB\-mg  \-mgnu  \-munix\fR
702 .Sp
703 \&\fIx86\-64 Options\fR
704 See i386 and x86\-64 Options.
705 .Sp
706 \&\fIXstormy16 Options\fR
707 \&\fB\-msim\fR
708 .Sp
709 \&\fIXtensa Options\fR
710 \&\fB\-mconst16 \-mno\-const16 
711 \&\-mfused\-madd  \-mno\-fused\-madd 
712 \&\-mtext\-section\-literals  \-mno\-text\-section\-literals 
713 \&\-mtarget\-align  \-mno\-target\-align 
714 \&\-mlongcalls  \-mno\-longcalls\fR
715 .Sp
716 \&\fIzSeries Options\fR
717 See S/390 and zSeries Options.
718 .IP "\fICode Generation Options\fR" 4
719 .IX Item "Code Generation Options"
720 \&\fB\-fcall\-saved\-\fR\fIreg\fR  \fB\-fcall\-used\-\fR\fIreg\fR 
721 \&\fB\-ffixed\-\fR\fIreg\fR  \fB\-fexceptions 
722 \&\-fnon\-call\-exceptions  \-funwind\-tables 
723 \&\-fasynchronous\-unwind\-tables 
724 \&\-finhibit\-size\-directive  \-finstrument\-functions 
725 \&\-fno\-common  \-fno\-ident 
726 \&\-fpcc\-struct\-return  \-fpic  \-fPIC \-fpie \-fPIE 
727 \&\-freg\-struct\-return  \-fshared\-data  \-fshort\-enums 
728 \&\-fshort\-double  \-fshort\-wchar 
729 \&\-fverbose\-asm  \-fpack\-struct[=\fR\fIn\fR\fB]  \-fstack\-check 
730 \&\-fstack\-limit\-register=\fR\fIreg\fR  \fB\-fstack\-limit\-symbol=\fR\fIsym\fR 
731 \&\fB\-fargument\-alias  \-fargument\-noalias 
732 \&\-fargument\-noalias\-global  \-fleading\-underscore 
733 \&\-ftls\-model=\fR\fImodel\fR 
734 \&\fB\-ftrapv  \-fwrapv  \-fbounds\-check 
735 \&\-fvisibility\fR
736 .Sh "Options Controlling the Kind of Output"
737 .IX Subsection "Options Controlling the Kind of Output"
738 Compilation can involve up to four stages: preprocessing, compilation
739 proper, assembly and linking, always in that order.  \s-1GCC\s0 is capable of
740 preprocessing and compiling several files either into several
741 assembler input files, or into one assembler input file; then each
742 assembler input file produces an object file, and linking combines all
743 the object files (those newly compiled, and those specified as input)
744 into an executable file.
745 .PP
746 For any given input file, the file name suffix determines what kind of
747 compilation is done:
748 .IP "\fIfile\fR\fB.c\fR" 4
749 .IX Item "file.c"
750 C source code which must be preprocessed.
751 .IP "\fIfile\fR\fB.i\fR" 4
752 .IX Item "file.i"
753 C source code which should not be preprocessed.
754 .IP "\fIfile\fR\fB.ii\fR" 4
755 .IX Item "file.ii"
756 \&\*(C+ source code which should not be preprocessed.
757 .IP "\fIfile\fR\fB.m\fR" 4
758 .IX Item "file.m"
759 Objective-C source code.  Note that you must link with the \fIlibobjc\fR
760 library to make an Objective-C program work.
761 .IP "\fIfile\fR\fB.mi\fR" 4
762 .IX Item "file.mi"
763 Objective-C source code which should not be preprocessed.
764 .IP "\fIfile\fR\fB.mm\fR" 4
765 .IX Item "file.mm"
766 .PD 0
767 .IP "\fIfile\fR\fB.M\fR" 4
768 .IX Item "file.M"
769 .PD
770 Objective\-\*(C+ source code.  Note that you must link with the \fIlibobjc\fR
771 library to make an Objective\-\*(C+ program work.  Note that \fB.M\fR refers
772 to a literal capital M.
773 .IP "\fIfile\fR\fB.mii\fR" 4
774 .IX Item "file.mii"
775 Objective\-\*(C+ source code which should not be preprocessed.
776 .IP "\fIfile\fR\fB.h\fR" 4
777 .IX Item "file.h"
778 C, \*(C+, Objective-C or Objective\-\*(C+ header file to be turned into a
779 precompiled header.
780 .IP "\fIfile\fR\fB.cc\fR" 4
781 .IX Item "file.cc"
782 .PD 0
783 .IP "\fIfile\fR\fB.cp\fR" 4
784 .IX Item "file.cp"
785 .IP "\fIfile\fR\fB.cxx\fR" 4
786 .IX Item "file.cxx"
787 .IP "\fIfile\fR\fB.cpp\fR" 4
788 .IX Item "file.cpp"
789 .IP "\fIfile\fR\fB.CPP\fR" 4
790 .IX Item "file.CPP"
791 .IP "\fIfile\fR\fB.c++\fR" 4
792 .IX Item "file.c++"
793 .IP "\fIfile\fR\fB.C\fR" 4
794 .IX Item "file.C"
795 .PD
796 \&\*(C+ source code which must be preprocessed.  Note that in \fB.cxx\fR,
797 the last two letters must both be literally \fBx\fR.  Likewise,
798 \&\fB.C\fR refers to a literal capital C.
799 .IP "\fIfile\fR\fB.hh\fR" 4
800 .IX Item "file.hh"
801 .PD 0
802 .IP "\fIfile\fR\fB.H\fR" 4
803 .IX Item "file.H"
804 .PD
805 \&\*(C+ header file to be turned into a precompiled header.
806 .IP "\fIfile\fR\fB.f\fR" 4
807 .IX Item "file.f"
808 .PD 0
809 .IP "\fIfile\fR\fB.for\fR" 4
810 .IX Item "file.for"
811 .IP "\fIfile\fR\fB.FOR\fR" 4
812 .IX Item "file.FOR"
813 .PD
814 Fortran source code which should not be preprocessed.
815 .IP "\fIfile\fR\fB.F\fR" 4
816 .IX Item "file.F"
817 .PD 0
818 .IP "\fIfile\fR\fB.fpp\fR" 4
819 .IX Item "file.fpp"
820 .IP "\fIfile\fR\fB.FPP\fR" 4
821 .IX Item "file.FPP"
822 .PD
823 Fortran source code which must be preprocessed (with the traditional
824 preprocessor).
825 .IP "\fIfile\fR\fB.r\fR" 4
826 .IX Item "file.r"
827 Fortran source code which must be preprocessed with a \s-1RATFOR\s0
828 preprocessor (not included with \s-1GCC\s0).
829 .IP "\fIfile\fR\fB.f90\fR" 4
830 .IX Item "file.f90"
831 .PD 0
832 .IP "\fIfile\fR\fB.f95\fR" 4
833 .IX Item "file.f95"
834 .PD
835 Fortran 90/95 source code which should not be preprocessed.
836 .IP "\fIfile\fR\fB.ads\fR" 4
837 .IX Item "file.ads"
838 Ada source code file which contains a library unit declaration (a
839 declaration of a package, subprogram, or generic, or a generic
840 instantiation), or a library unit renaming declaration (a package,
841 generic, or subprogram renaming declaration).  Such files are also
842 called \fIspecs\fR.
843 .IP "\fIfile\fR\fB.adb\fR" 4
844 .IX Item "file.adb"
845 Ada source code file containing a library unit body (a subprogram or
846 package body).  Such files are also called \fIbodies\fR.
847 .IP "\fIfile\fR\fB.s\fR" 4
848 .IX Item "file.s"
849 Assembler code.
850 .IP "\fIfile\fR\fB.S\fR" 4
851 .IX Item "file.S"
852 Assembler code which must be preprocessed.
853 .IP "\fIother\fR" 4
854 .IX Item "other"
855 An object file to be fed straight into linking.
856 Any file name with no recognized suffix is treated this way.
857 .PP
858 You can specify the input language explicitly with the \fB\-x\fR option:
859 .IP "\fB\-x\fR \fIlanguage\fR" 4
860 .IX Item "-x language"
861 Specify explicitly the \fIlanguage\fR for the following input files
862 (rather than letting the compiler choose a default based on the file
863 name suffix).  This option applies to all following input files until
864 the next \fB\-x\fR option.  Possible values for \fIlanguage\fR are:
865 .Sp
866 .Vb 10
867 \&        c  c-header  c-cpp-output
868 \&        c++  c++-header  c++-cpp-output
869 \&        objective-c  objective-c-header  objective-c-cpp-output
870 \&        objective-c++ objective-c++-header objective-c++-cpp-output
871 \&        assembler  assembler-with-cpp
872 \&        ada
873 \&        f77  f77-cpp-input  ratfor
874 \&        f95
875 \&        java
876 \&        treelang
877 .Ve
878 .IP "\fB\-x none\fR" 4
879 .IX Item "-x none"
880 Turn off any specification of a language, so that subsequent files are
881 handled according to their file name suffixes (as they are if \fB\-x\fR
882 has not been used at all).
883 .IP "\fB\-pass\-exit\-codes\fR" 4
884 .IX Item "-pass-exit-codes"
885 Normally the \fBgcc\fR program will exit with the code of 1 if any
886 phase of the compiler returns a non-success return code.  If you specify
887 \&\fB\-pass\-exit\-codes\fR, the \fBgcc\fR program will instead return with
888 numerically highest error produced by any phase that returned an error
889 indication.
890 .PP
891 If you only want some of the stages of compilation, you can use
892 \&\fB\-x\fR (or filename suffixes) to tell \fBgcc\fR where to start, and
893 one of the options \fB\-c\fR, \fB\-S\fR, or \fB\-E\fR to say where
894 \&\fBgcc\fR is to stop.  Note that some combinations (for example,
895 \&\fB\-x cpp-output \-E\fR) instruct \fBgcc\fR to do nothing at all.
896 .IP "\fB\-c\fR" 4
897 .IX Item "-c"
898 Compile or assemble the source files, but do not link.  The linking
899 stage simply is not done.  The ultimate output is in the form of an
900 object file for each source file.
901 .Sp
902 By default, the object file name for a source file is made by replacing
903 the suffix \fB.c\fR, \fB.i\fR, \fB.s\fR, etc., with \fB.o\fR.
904 .Sp
905 Unrecognized input files, not requiring compilation or assembly, are
906 ignored.
907 .IP "\fB\-S\fR" 4
908 .IX Item "-S"
909 Stop after the stage of compilation proper; do not assemble.  The output
910 is in the form of an assembler code file for each non-assembler input
911 file specified.
912 .Sp
913 By default, the assembler file name for a source file is made by
914 replacing the suffix \fB.c\fR, \fB.i\fR, etc., with \fB.s\fR.
915 .Sp
916 Input files that don't require compilation are ignored.
917 .IP "\fB\-E\fR" 4
918 .IX Item "-E"
919 Stop after the preprocessing stage; do not run the compiler proper.  The
920 output is in the form of preprocessed source code, which is sent to the
921 standard output.
922 .Sp
923 Input files which don't require preprocessing are ignored.
924 .IP "\fB\-o\fR \fIfile\fR" 4
925 .IX Item "-o file"
926 Place output in file \fIfile\fR.  This applies regardless to whatever
927 sort of output is being produced, whether it be an executable file,
928 an object file, an assembler file or preprocessed C code.
929 .Sp
930 If \fB\-o\fR is not specified, the default is to put an executable
931 file in \fIa.out\fR, the object file for
932 \&\fI\fIsource\fI.\fIsuffix\fI\fR in \fI\fIsource\fI.o\fR, its
933 assembler file in \fI\fIsource\fI.s\fR, a precompiled header file in
934 \&\fI\fIsource\fI.\fIsuffix\fI.gch\fR, and all preprocessed C source on
935 standard output.
936 .IP "\fB\-v\fR" 4
937 .IX Item "-v"
938 Print (on standard error output) the commands executed to run the stages
939 of compilation.  Also print the version number of the compiler driver
940 program and of the preprocessor and the compiler proper.
941 .IP "\fB\-###\fR" 4
942 .IX Item "-###"
943 Like \fB\-v\fR except the commands are not executed and all command
944 arguments are quoted.  This is useful for shell scripts to capture the
945 driver-generated command lines.
946 .IP "\fB\-pipe\fR" 4
947 .IX Item "-pipe"
948 Use pipes rather than temporary files for communication between the
949 various stages of compilation.  This fails to work on some systems where
950 the assembler is unable to read from a pipe; but the \s-1GNU\s0 assembler has
951 no trouble.
952 .IP "\fB\-combine\fR" 4
953 .IX Item "-combine"
954 If you are compiling multiple source files, this option tells the driver
955 to pass all the source files to the compiler at once (for those
956 languages for which the compiler can handle this).  This will allow
957 intermodule analysis (\s-1IMA\s0) to be performed by the compiler.  Currently the only
958 language for which this is supported is C.  If you pass source files for
959 multiple languages to the driver, using this option, the driver will invoke
960 the compiler(s) that support \s-1IMA\s0 once each, passing each compiler all the
961 source files appropriate for it.  For those languages that do not support
962 \&\s-1IMA\s0 this option will be ignored, and the compiler will be invoked once for
963 each source file in that language.  If you use this option in conjunction
964 with \fB\-save\-temps\fR, the compiler will generate multiple
965 pre-processed files
966 (one for each source file), but only one (combined) \fI.o\fR or
967 \&\fI.s\fR file.
968 .IP "\fB\-\-help\fR" 4
969 .IX Item "--help"
970 Print (on the standard output) a description of the command line options
971 understood by \fBgcc\fR.  If the \fB\-v\fR option is also specified
972 then \fB\-\-help\fR will also be passed on to the various processes
973 invoked by \fBgcc\fR, so that they can display the command line options
974 they accept.  If the \fB\-Wextra\fR option is also specified then command
975 line options which have no documentation associated with them will also
976 be displayed.
977 .IP "\fB\-\-target\-help\fR" 4
978 .IX Item "--target-help"
979 Print (on the standard output) a description of target specific command
980 line options for each tool.
981 .IP "\fB\-\-version\fR" 4
982 .IX Item "--version"
983 Display the version number and copyrights of the invoked \s-1GCC\s0.
984 .Sh "Compiling \*(C+ Programs"
985 .IX Subsection "Compiling  Programs"
986 \&\*(C+ source files conventionally use one of the suffixes \fB.C\fR,
987 \&\fB.cc\fR, \fB.cpp\fR, \fB.CPP\fR, \fB.c++\fR, \fB.cp\fR, or
988 \&\fB.cxx\fR; \*(C+ header files often use \fB.hh\fR or \fB.H\fR; and
989 preprocessed \*(C+ files use the suffix \fB.ii\fR.  \s-1GCC\s0 recognizes
990 files with these names and compiles them as \*(C+ programs even if you
991 call the compiler the same way as for compiling C programs (usually
992 with the name \fBgcc\fR).
993 .PP
994 However, \*(C+ programs often require class libraries as well as a
995 compiler that understands the \*(C+ language\-\-\-and under some
996 circumstances, you might want to compile programs or header files from
997 standard input, or otherwise without a suffix that flags them as \*(C+
998 programs.  You might also like to precompile a C header file with a
999 \&\fB.h\fR extension to be used in \*(C+ compilations.  \fBg++\fR is a
1000 program that calls \s-1GCC\s0 with the default language set to \*(C+, and
1001 automatically specifies linking against the \*(C+ library.  On many
1002 systems, \fBg++\fR is also installed with the name \fBc++\fR.
1003 .PP
1004 When you compile \*(C+ programs, you may specify many of the same
1005 command-line options that you use for compiling programs in any
1006 language; or command-line options meaningful for C and related
1007 languages; or options that are meaningful only for \*(C+ programs.
1008 .Sh "Options Controlling C Dialect"
1009 .IX Subsection "Options Controlling C Dialect"
1010 The following options control the dialect of C (or languages derived
1011 from C, such as \*(C+, Objective-C and Objective\-\*(C+) that the compiler
1012 accepts:
1013 .IP "\fB\-ansi\fR" 4
1014 .IX Item "-ansi"
1015 In C mode, support all \s-1ISO\s0 C90 programs.  In \*(C+ mode,
1016 remove \s-1GNU\s0 extensions that conflict with \s-1ISO\s0 \*(C+.
1017 .Sp
1018 This turns off certain features of \s-1GCC\s0 that are incompatible with \s-1ISO\s0
1019 C90 (when compiling C code), or of standard \*(C+ (when compiling \*(C+ code),
1020 such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, and
1021 predefined macros such as \f(CW\*(C`unix\*(C'\fR and \f(CW\*(C`vax\*(C'\fR that identify the
1022 type of system you are using.  It also enables the undesirable and
1023 rarely used \s-1ISO\s0 trigraph feature.  For the C compiler,
1024 it disables recognition of \*(C+ style \fB//\fR comments as well as
1025 the \f(CW\*(C`inline\*(C'\fR keyword.
1026 .Sp
1027 The alternate keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_extension_\|_\*(C'\fR,
1028 \&\f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR continue to work despite
1029 \&\fB\-ansi\fR.  You would not want to use them in an \s-1ISO\s0 C program, of
1030 course, but it is useful to put them in header files that might be included
1031 in compilations done with \fB\-ansi\fR.  Alternate predefined macros
1032 such as \f(CW\*(C`_\|_unix_\|_\*(C'\fR and \f(CW\*(C`_\|_vax_\|_\*(C'\fR are also available, with or
1033 without \fB\-ansi\fR.
1034 .Sp
1035 The \fB\-ansi\fR option does not cause non-ISO programs to be
1036 rejected gratuitously.  For that, \fB\-pedantic\fR is required in
1037 addition to \fB\-ansi\fR.  
1038 .Sp
1039 The macro \f(CW\*(C`_\|_STRICT_ANSI_\|_\*(C'\fR is predefined when the \fB\-ansi\fR
1040 option is used.  Some header files may notice this macro and refrain
1041 from declaring certain functions or defining certain macros that the
1042 \&\s-1ISO\s0 standard doesn't call for; this is to avoid interfering with any
1043 programs that might use these names for other things.
1044 .Sp
1045 Functions which would normally be built in but do not have semantics
1046 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
1047 functions with \fB\-ansi\fR is used.  
1048 .IP "\fB\-std=\fR" 4
1049 .IX Item "-std="
1050 Determine the language standard.  This option is currently only
1051 supported when compiling C or \*(C+.  A value for this option must be
1052 provided; possible values are
1053 .RS 4
1054 .IP "\fBc89\fR" 4
1055 .IX Item "c89"
1056 .PD 0
1057 .IP "\fBiso9899:1990\fR" 4
1058 .IX Item "iso9899:1990"
1059 .PD
1060 \&\s-1ISO\s0 C90 (same as \fB\-ansi\fR).
1061 .IP "\fBiso9899:199409\fR" 4
1062 .IX Item "iso9899:199409"
1063 \&\s-1ISO\s0 C90 as modified in amendment 1.
1064 .IP "\fBc99\fR" 4
1065 .IX Item "c99"
1066 .PD 0
1067 .IP "\fBc9x\fR" 4
1068 .IX Item "c9x"
1069 .IP "\fBiso9899:1999\fR" 4
1070 .IX Item "iso9899:1999"
1071 .IP "\fBiso9899:199x\fR" 4
1072 .IX Item "iso9899:199x"
1073 .PD
1074 \&\s-1ISO\s0 C99.  Note that this standard is not yet fully supported; see
1075 <\fBhttp://gcc.gnu.org/gcc\-4.0/c99status.html\fR> for more information.  The
1076 names \fBc9x\fR and \fBiso9899:199x\fR are deprecated.
1077 .IP "\fBgnu89\fR" 4
1078 .IX Item "gnu89"
1079 Default, \s-1ISO\s0 C90 plus \s-1GNU\s0 extensions (including some C99 features).
1080 .IP "\fBgnu99\fR" 4
1081 .IX Item "gnu99"
1082 .PD 0
1083 .IP "\fBgnu9x\fR" 4
1084 .IX Item "gnu9x"
1085 .PD
1086 \&\s-1ISO\s0 C99 plus \s-1GNU\s0 extensions.  When \s-1ISO\s0 C99 is fully implemented in \s-1GCC\s0,
1087 this will become the default.  The name \fBgnu9x\fR is deprecated.
1088 .IP "\fBc++98\fR" 4
1089 .IX Item "c++98"
1090 The 1998 \s-1ISO\s0 \*(C+ standard plus amendments.
1091 .IP "\fBgnu++98\fR" 4
1092 .IX Item "gnu++98"
1093 The same as \fB\-std=c++98\fR plus \s-1GNU\s0 extensions.  This is the
1094 default for \*(C+ code.
1095 .RE
1096 .RS 4
1097 .Sp
1098 Even when this option is not specified, you can still use some of the
1099 features of newer standards in so far as they do not conflict with
1100 previous C standards.  For example, you may use \f(CW\*(C`_\|_restrict_\|_\*(C'\fR even
1101 when \fB\-std=c99\fR is not specified.
1102 .Sp
1103 The \fB\-std\fR options specifying some version of \s-1ISO\s0 C have the same
1104 effects as \fB\-ansi\fR, except that features that were not in \s-1ISO\s0 C90
1105 but are in the specified version (for example, \fB//\fR comments and
1106 the \f(CW\*(C`inline\*(C'\fR keyword in \s-1ISO\s0 C99) are not disabled.
1107 .RE
1108 .IP "\fB\-aux\-info\fR \fIfilename\fR" 4
1109 .IX Item "-aux-info filename"
1110 Output to the given filename prototyped declarations for all functions
1111 declared and/or defined in a translation unit, including those in header
1112 files.  This option is silently ignored in any language other than C.
1113 .Sp
1114 Besides declarations, the file indicates, in comments, the origin of
1115 each declaration (source file and line), whether the declaration was
1116 implicit, prototyped or unprototyped (\fBI\fR, \fBN\fR for new or
1117 \&\fBO\fR for old, respectively, in the first character after the line
1118 number and the colon), and whether it came from a declaration or a
1119 definition (\fBC\fR or \fBF\fR, respectively, in the following
1120 character).  In the case of function definitions, a K&R\-style list of
1121 arguments followed by their declarations is also provided, inside
1122 comments, after the declaration.
1123 .IP "\fB\-fno\-asm\fR" 4
1124 .IX Item "-fno-asm"
1125 Do not recognize \f(CW\*(C`asm\*(C'\fR, \f(CW\*(C`inline\*(C'\fR or \f(CW\*(C`typeof\*(C'\fR as a
1126 keyword, so that code can use these words as identifiers.  You can use
1127 the keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR
1128 instead.  \fB\-ansi\fR implies \fB\-fno\-asm\fR.
1129 .Sp
1130 In \*(C+, this switch only affects the \f(CW\*(C`typeof\*(C'\fR keyword, since
1131 \&\f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`inline\*(C'\fR are standard keywords.  You may want to
1132 use the \fB\-fno\-gnu\-keywords\fR flag instead, which has the same
1133 effect.  In C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this
1134 switch only affects the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, since
1135 \&\f(CW\*(C`inline\*(C'\fR is a standard keyword in \s-1ISO\s0 C99.
1136 .IP "\fB\-fno\-builtin\fR" 4
1137 .IX Item "-fno-builtin"
1138 .PD 0
1139 .IP "\fB\-fno\-builtin\-\fR\fIfunction\fR" 4
1140 .IX Item "-fno-builtin-function"
1141 .PD
1142 Don't recognize built-in functions that do not begin with
1143 \&\fB_\|_builtin_\fR as prefix.  
1144 .Sp
1145 \&\s-1GCC\s0 normally generates special code to handle certain built-in functions
1146 more efficiently; for instance, calls to \f(CW\*(C`alloca\*(C'\fR may become single
1147 instructions that adjust the stack directly, and calls to \f(CW\*(C`memcpy\*(C'\fR
1148 may become inline copy loops.  The resulting code is often both smaller
1149 and faster, but since the function calls no longer appear as such, you
1150 cannot set a breakpoint on those calls, nor can you change the behavior
1151 of the functions by linking with a different library.  In addition,
1152 when a function is recognized as a built-in function, \s-1GCC\s0 may use
1153 information about that function to warn about problems with calls to
1154 that function, or to generate more efficient code, even if the
1155 resulting code still contains calls to that function.  For example,
1156 warnings are given with \fB\-Wformat\fR for bad calls to
1157 \&\f(CW\*(C`printf\*(C'\fR, when \f(CW\*(C`printf\*(C'\fR is built in, and \f(CW\*(C`strlen\*(C'\fR is
1158 known not to modify global memory.
1159 .Sp
1160 With the \fB\-fno\-builtin\-\fR\fIfunction\fR option
1161 only the built-in function \fIfunction\fR is
1162 disabled.  \fIfunction\fR must not begin with \fB_\|_builtin_\fR.  If a
1163 function is named this is not built-in in this version of \s-1GCC\s0, this
1164 option is ignored.  There is no corresponding
1165 \&\fB\-fbuiltin\-\fR\fIfunction\fR option; if you wish to enable
1166 built-in functions selectively when using \fB\-fno\-builtin\fR or
1167 \&\fB\-ffreestanding\fR, you may define macros such as:
1168 .Sp
1169 .Vb 2
1170 \&        #define abs(n)          __builtin_abs ((n))
1171 \&        #define strcpy(d, s)    __builtin_strcpy ((d), (s))
1172 .Ve
1173 .IP "\fB\-fhosted\fR" 4
1174 .IX Item "-fhosted"
1175 Assert that compilation takes place in a hosted environment.  This implies
1176 \&\fB\-fbuiltin\fR.  A hosted environment is one in which the
1177 entire standard library is available, and in which \f(CW\*(C`main\*(C'\fR has a return
1178 type of \f(CW\*(C`int\*(C'\fR.  Examples are nearly everything except a kernel.
1179 This is equivalent to \fB\-fno\-freestanding\fR.
1180 .IP "\fB\-ffreestanding\fR" 4
1181 .IX Item "-ffreestanding"
1182 Assert that compilation takes place in a freestanding environment.  This
1183 implies \fB\-fno\-builtin\fR.  A freestanding environment
1184 is one in which the standard library may not exist, and program startup may
1185 not necessarily be at \f(CW\*(C`main\*(C'\fR.  The most obvious example is an \s-1OS\s0 kernel.
1186 This is equivalent to \fB\-fno\-hosted\fR.
1187 .IP "\fB\-fms\-extensions\fR" 4
1188 .IX Item "-fms-extensions"
1189 Accept some non-standard constructs used in Microsoft header files.
1190 .Sp
1191 Some cases of unnamed fields in structures and unions are only
1192 accepted with this option.  
1193 .IP "\fB\-trigraphs\fR" 4
1194 .IX Item "-trigraphs"
1195 Support \s-1ISO\s0 C trigraphs.  The \fB\-ansi\fR option (and \fB\-std\fR
1196 options for strict \s-1ISO\s0 C conformance) implies \fB\-trigraphs\fR.
1197 .IP "\fB\-no\-integrated\-cpp\fR" 4
1198 .IX Item "-no-integrated-cpp"
1199 Performs a compilation in two passes: preprocessing and compiling.  This
1200 option allows a user supplied \*(L"cc1\*(R", \*(L"cc1plus\*(R", or \*(L"cc1obj\*(R" via the
1201 \&\fB\-B\fR option.  The user supplied compilation step can then add in
1202 an additional preprocessing step after normal preprocessing but before
1203 compiling.  The default is to use the integrated cpp (internal cpp)
1204 .Sp
1205 The semantics of this option will change if \*(L"cc1\*(R", \*(L"cc1plus\*(R", and
1206 \&\*(L"cc1obj\*(R" are merged.
1207 .IP "\fB\-traditional\fR" 4
1208 .IX Item "-traditional"
1209 .PD 0
1210 .IP "\fB\-traditional\-cpp\fR" 4
1211 .IX Item "-traditional-cpp"
1212 .PD
1213 Formerly, these options caused \s-1GCC\s0 to attempt to emulate a pre-standard
1214 C compiler.  They are now only supported with the \fB\-E\fR switch.
1215 The preprocessor continues to support a pre-standard mode.  See the \s-1GNU\s0
1216 \&\s-1CPP\s0 manual for details.
1217 .IP "\fB\-fcond\-mismatch\fR" 4
1218 .IX Item "-fcond-mismatch"
1219 Allow conditional expressions with mismatched types in the second and
1220 third arguments.  The value of such an expression is void.  This option
1221 is not supported for \*(C+.
1222 .IP "\fB\-funsigned\-char\fR" 4
1223 .IX Item "-funsigned-char"
1224 Let the type \f(CW\*(C`char\*(C'\fR be unsigned, like \f(CW\*(C`unsigned char\*(C'\fR.
1225 .Sp
1226 Each kind of machine has a default for what \f(CW\*(C`char\*(C'\fR should
1227 be.  It is either like \f(CW\*(C`unsigned char\*(C'\fR by default or like
1228 \&\f(CW\*(C`signed char\*(C'\fR by default.
1229 .Sp
1230 Ideally, a portable program should always use \f(CW\*(C`signed char\*(C'\fR or
1231 \&\f(CW\*(C`unsigned char\*(C'\fR when it depends on the signedness of an object.
1232 But many programs have been written to use plain \f(CW\*(C`char\*(C'\fR and
1233 expect it to be signed, or expect it to be unsigned, depending on the
1234 machines they were written for.  This option, and its inverse, let you
1235 make such a program work with the opposite default.
1236 .Sp
1237 The type \f(CW\*(C`char\*(C'\fR is always a distinct type from each of
1238 \&\f(CW\*(C`signed char\*(C'\fR or \f(CW\*(C`unsigned char\*(C'\fR, even though its behavior
1239 is always just like one of those two.
1240 .IP "\fB\-fsigned\-char\fR" 4
1241 .IX Item "-fsigned-char"
1242 Let the type \f(CW\*(C`char\*(C'\fR be signed, like \f(CW\*(C`signed char\*(C'\fR.
1243 .Sp
1244 Note that this is equivalent to \fB\-fno\-unsigned\-char\fR, which is
1245 the negative form of \fB\-funsigned\-char\fR.  Likewise, the option
1246 \&\fB\-fno\-signed\-char\fR is equivalent to \fB\-funsigned\-char\fR.
1247 .IP "\fB\-fsigned\-bitfields\fR" 4
1248 .IX Item "-fsigned-bitfields"
1249 .PD 0
1250 .IP "\fB\-funsigned\-bitfields\fR" 4
1251 .IX Item "-funsigned-bitfields"
1252 .IP "\fB\-fno\-signed\-bitfields\fR" 4
1253 .IX Item "-fno-signed-bitfields"
1254 .IP "\fB\-fno\-unsigned\-bitfields\fR" 4
1255 .IX Item "-fno-unsigned-bitfields"
1256 .PD
1257 These options control whether a bit-field is signed or unsigned, when the
1258 declaration does not use either \f(CW\*(C`signed\*(C'\fR or \f(CW\*(C`unsigned\*(C'\fR.  By
1259 default, such a bit-field is signed, because this is consistent: the
1260 basic integer types such as \f(CW\*(C`int\*(C'\fR are signed types.
1261 .Sh "Options Controlling \*(C+ Dialect"
1262 .IX Subsection "Options Controlling  Dialect"
1263 This section describes the command-line options that are only meaningful
1264 for \*(C+ programs; but you can also use most of the \s-1GNU\s0 compiler options
1265 regardless of what language your program is in.  For example, you
1266 might compile a file \f(CW\*(C`firstClass.C\*(C'\fR like this:
1267 .PP
1268 .Vb 1
1269 \&        g++ -g -frepo -O -c firstClass.C
1270 .Ve
1271 .PP
1272 In this example, only \fB\-frepo\fR is an option meant
1273 only for \*(C+ programs; you can use the other options with any
1274 language supported by \s-1GCC\s0.
1275 .PP
1276 Here is a list of options that are \fIonly\fR for compiling \*(C+ programs:
1277 .IP "\fB\-fabi\-version=\fR\fIn\fR" 4
1278 .IX Item "-fabi-version=n"
1279 Use version \fIn\fR of the \*(C+ \s-1ABI\s0.  Version 2 is the version of the
1280 \&\*(C+ \s-1ABI\s0 that first appeared in G++ 3.4.  Version 1 is the version of
1281 the \*(C+ \s-1ABI\s0 that first appeared in G++ 3.2.  Version 0 will always be
1282 the version that conforms most closely to the \*(C+ \s-1ABI\s0 specification.
1283 Therefore, the \s-1ABI\s0 obtained using version 0 will change as \s-1ABI\s0 bugs
1284 are fixed.
1285 .Sp
1286 The default is version 2.
1287 .IP "\fB\-fno\-access\-control\fR" 4
1288 .IX Item "-fno-access-control"
1289 Turn off all access checking.  This switch is mainly useful for working
1290 around bugs in the access control code.
1291 .IP "\fB\-fcheck\-new\fR" 4
1292 .IX Item "-fcheck-new"
1293 Check that the pointer returned by \f(CW\*(C`operator new\*(C'\fR is non-null
1294 before attempting to modify the storage allocated.  This check is
1295 normally unnecessary because the \*(C+ standard specifies that
1296 \&\f(CW\*(C`operator new\*(C'\fR will only return \f(CW0\fR if it is declared
1297 \&\fB\f(BIthrow()\fB\fR, in which case the compiler will always check the
1298 return value even without this option.  In all other cases, when
1299 \&\f(CW\*(C`operator new\*(C'\fR has a non-empty exception specification, memory
1300 exhaustion is signalled by throwing \f(CW\*(C`std::bad_alloc\*(C'\fR.  See also
1301 \&\fBnew (nothrow)\fR.
1302 .IP "\fB\-fconserve\-space\fR" 4
1303 .IX Item "-fconserve-space"
1304 Put uninitialized or runtime-initialized global variables into the
1305 common segment, as C does.  This saves space in the executable at the
1306 cost of not diagnosing duplicate definitions.  If you compile with this
1307 flag and your program mysteriously crashes after \f(CW\*(C`main()\*(C'\fR has
1308 completed, you may have an object that is being destroyed twice because
1309 two definitions were merged.
1310 .Sp
1311 This option is no longer useful on most targets, now that support has
1312 been added for putting variables into \s-1BSS\s0 without making them common.
1313 .IP "\fB\-fno\-const\-strings\fR" 4
1314 .IX Item "-fno-const-strings"
1315 Give string constants type \f(CW\*(C`char *\*(C'\fR instead of type \f(CW\*(C`const
1316 char *\*(C'\fR.  By default, G++ uses type \f(CW\*(C`const char *\*(C'\fR as required by
1317 the standard.  Even if you use \fB\-fno\-const\-strings\fR, you cannot
1318 actually modify the value of a string constant.
1319 .Sp
1320 This option might be removed in a future release of G++.  For maximum
1321 portability, you should structure your code so that it works with
1322 string constants that have type \f(CW\*(C`const char *\*(C'\fR.
1323 .IP "\fB\-fno\-elide\-constructors\fR" 4
1324 .IX Item "-fno-elide-constructors"
1325 The \*(C+ standard allows an implementation to omit creating a temporary
1326 which is only used to initialize another object of the same type.
1327 Specifying this option disables that optimization, and forces G++ to
1328 call the copy constructor in all cases.
1329 .IP "\fB\-fno\-enforce\-eh\-specs\fR" 4
1330 .IX Item "-fno-enforce-eh-specs"
1331 Don't check for violation of exception specifications at runtime.  This
1332 option violates the \*(C+ standard, but may be useful for reducing code
1333 size in production builds, much like defining \fB\s-1NDEBUG\s0\fR.  The compiler
1334 will still optimize based on the exception specifications.
1335 .IP "\fB\-ffor\-scope\fR" 4
1336 .IX Item "-ffor-scope"
1337 .PD 0
1338 .IP "\fB\-fno\-for\-scope\fR" 4
1339 .IX Item "-fno-for-scope"
1340 .PD
1341 If \fB\-ffor\-scope\fR is specified, the scope of variables declared in
1342 a \fIfor-init-statement\fR is limited to the \fBfor\fR loop itself,
1343 as specified by the \*(C+ standard.
1344 If \fB\-fno\-for\-scope\fR is specified, the scope of variables declared in
1345 a \fIfor-init-statement\fR extends to the end of the enclosing scope,
1346 as was the case in old versions of G++, and other (traditional)
1347 implementations of \*(C+.
1348 .Sp
1349 The default if neither flag is given to follow the standard,
1350 but to allow and give a warning for old-style code that would
1351 otherwise be invalid, or have different behavior.
1352 .IP "\fB\-fno\-gnu\-keywords\fR" 4
1353 .IX Item "-fno-gnu-keywords"
1354 Do not recognize \f(CW\*(C`typeof\*(C'\fR as a keyword, so that code can use this
1355 word as an identifier.  You can use the keyword \f(CW\*(C`_\|_typeof_\|_\*(C'\fR instead.
1356 \&\fB\-ansi\fR implies \fB\-fno\-gnu\-keywords\fR.
1357 .IP "\fB\-fno\-implicit\-templates\fR" 4
1358 .IX Item "-fno-implicit-templates"
1359 Never emit code for non-inline templates which are instantiated
1360 implicitly (i.e. by use); only emit code for explicit instantiations.
1361 .IP "\fB\-fno\-implicit\-inline\-templates\fR" 4
1362 .IX Item "-fno-implicit-inline-templates"
1363 Don't emit code for implicit instantiations of inline templates, either.
1364 The default is to handle inlines differently so that compiles with and
1365 without optimization will need the same set of explicit instantiations.
1366 .IP "\fB\-fno\-implement\-inlines\fR" 4
1367 .IX Item "-fno-implement-inlines"
1368 To save space, do not emit out-of-line copies of inline functions
1369 controlled by \fB#pragma implementation\fR.  This will cause linker
1370 errors if these functions are not inlined everywhere they are called.
1371 .IP "\fB\-fms\-extensions\fR" 4
1372 .IX Item "-fms-extensions"
1373 Disable pedantic warnings about constructs used in \s-1MFC\s0, such as implicit
1374 int and getting a pointer to member function via non-standard syntax.
1375 .IP "\fB\-fno\-nonansi\-builtins\fR" 4
1376 .IX Item "-fno-nonansi-builtins"
1377 Disable built-in declarations of functions that are not mandated by
1378 \&\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,
1379 \&\f(CW\*(C`index\*(C'\fR, \f(CW\*(C`bzero\*(C'\fR, \f(CW\*(C`conjf\*(C'\fR, and other related functions.
1380 .IP "\fB\-fno\-operator\-names\fR" 4
1381 .IX Item "-fno-operator-names"
1382 Do not treat the operator name keywords \f(CW\*(C`and\*(C'\fR, \f(CW\*(C`bitand\*(C'\fR,
1383 \&\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
1384 synonyms as keywords.
1385 .IP "\fB\-fno\-optional\-diags\fR" 4
1386 .IX Item "-fno-optional-diags"
1387 Disable diagnostics that the standard says a compiler does not need to
1388 issue.  Currently, the only such diagnostic issued by G++ is the one for
1389 a name having multiple meanings within a class.
1390 .IP "\fB\-fpermissive\fR" 4
1391 .IX Item "-fpermissive"
1392 Downgrade some diagnostics about nonconformant code from errors to
1393 warnings.  Thus, using \fB\-fpermissive\fR will allow some
1394 nonconforming code to compile.
1395 .IP "\fB\-frepo\fR" 4
1396 .IX Item "-frepo"
1397 Enable automatic template instantiation at link time.  This option also
1398 implies \fB\-fno\-implicit\-templates\fR.  
1399 .IP "\fB\-fno\-rtti\fR" 4
1400 .IX Item "-fno-rtti"
1401 Disable generation of information about every class with virtual
1402 functions for use by the \*(C+ runtime type identification features
1403 (\fBdynamic_cast\fR and \fBtypeid\fR).  If you don't use those parts
1404 of the language, you can save some space by using this flag.  Note that
1405 exception handling uses the same information, but it will generate it as
1406 needed.
1407 .IP "\fB\-fstats\fR" 4
1408 .IX Item "-fstats"
1409 Emit statistics about front-end processing at the end of the compilation.
1410 This information is generally only useful to the G++ development team.
1411 .IP "\fB\-ftemplate\-depth\-\fR\fIn\fR" 4
1412 .IX Item "-ftemplate-depth-n"
1413 Set the maximum instantiation depth for template classes to \fIn\fR.
1414 A limit on the template instantiation depth is needed to detect
1415 endless recursions during template class instantiation.  \s-1ANSI/ISO\s0 \*(C+
1416 conforming programs must not rely on a maximum depth greater than 17.
1417 .IP "\fB\-fno\-threadsafe\-statics\fR" 4
1418 .IX Item "-fno-threadsafe-statics"
1419 Do not emit the extra code to use the routines specified in the \*(C+
1420 \&\s-1ABI\s0 for thread-safe initialization of local statics.  You can use this
1421 option to reduce code size slightly in code that doesn't need to be
1422 thread\-safe.
1423 .IP "\fB\-fuse\-cxa\-atexit\fR" 4
1424 .IX Item "-fuse-cxa-atexit"
1425 Register destructors for objects with static storage duration with the
1426 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR function rather than the \f(CW\*(C`atexit\*(C'\fR function.
1427 This option is required for fully standards-compliant handling of static
1428 destructors, but will only work if your C library supports
1429 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR.
1430 .IP "\fB\-fvisibility\-inlines\-hidden\fR" 4
1431 .IX Item "-fvisibility-inlines-hidden"
1432 Causes all inlined methods to be marked with
1433 \&\f(CW\*(C`_\|_attribute_\|_ ((visibility ("hidden")))\*(C'\fR so that they do not
1434 appear in the export table of a \s-1DSO\s0 and do not require a \s-1PLT\s0 indirection
1435 when used within the \s-1DSO\s0.  Enabling this option can have a dramatic effect
1436 on load and link times of a \s-1DSO\s0 as it massively reduces the size of the
1437 dynamic export table when the library makes heavy use of templates.  While
1438 it can cause bloating through duplication of code within each \s-1DSO\s0 where
1439 it is used, often the wastage is less than the considerable space occupied
1440 by a long symbol name in the export table which is typical when using
1441 templates and namespaces.  For even more savings, combine with the
1442 \&\fB\-fvisibility=hidden\fR switch.
1443 .IP "\fB\-fno\-weak\fR" 4
1444 .IX Item "-fno-weak"
1445 Do not use weak symbol support, even if it is provided by the linker.
1446 By default, G++ will use weak symbols if they are available.  This
1447 option exists only for testing, and should not be used by end\-users;
1448 it will result in inferior code and has no benefits.  This option may
1449 be removed in a future release of G++.
1450 .IP "\fB\-nostdinc++\fR" 4
1451 .IX Item "-nostdinc++"
1452 Do not search for header files in the standard directories specific to
1453 \&\*(C+, but do still search the other standard directories.  (This option
1454 is used when building the \*(C+ library.)
1455 .PP
1456 In addition, these optimization, warning, and code generation options
1457 have meanings only for \*(C+ programs:
1458 .IP "\fB\-fno\-default\-inline\fR" 4
1459 .IX Item "-fno-default-inline"
1460 Do not assume \fBinline\fR for functions defined inside a class scope.
1461   Note that these
1462 functions will have linkage like inline functions; they just won't be
1463 inlined by default.
1464 .IP "\fB\-Wabi\fR (\*(C+ only)" 4
1465 .IX Item "-Wabi ( only)"
1466 Warn when G++ generates code that is probably not compatible with the
1467 vendor-neutral \*(C+ \s-1ABI\s0.  Although an effort has been made to warn about
1468 all such cases, there are probably some cases that are not warned about,
1469 even though G++ is generating incompatible code.  There may also be
1470 cases where warnings are emitted even though the code that is generated
1471 will be compatible.
1472 .Sp
1473 You should rewrite your code to avoid these warnings if you are
1474 concerned about the fact that code generated by G++ may not be binary
1475 compatible with code generated by other compilers.
1476 .Sp
1477 The known incompatibilities at this point include:
1478 .RS 4
1479 .IP "*" 4
1480 Incorrect handling of tail-padding for bit\-fields.  G++ may attempt to
1481 pack data into the same byte as a base class.  For example:
1482 .Sp
1483 .Vb 2
1484 \&        struct A { virtual void f(); int f1 : 1; };
1485 \&        struct B : public A { int f2 : 1; };
1486 .Ve
1487 .Sp
1488 In this case, G++ will place \f(CW\*(C`B::f2\*(C'\fR into the same byte
1489 as\f(CW\*(C`A::f1\*(C'\fR; other compilers will not.  You can avoid this problem
1490 by explicitly padding \f(CW\*(C`A\*(C'\fR so that its size is a multiple of the
1491 byte size on your platform; that will cause G++ and other compilers to
1492 layout \f(CW\*(C`B\*(C'\fR identically.
1493 .IP "*" 4
1494 Incorrect handling of tail-padding for virtual bases.  G++ does not use
1495 tail padding when laying out virtual bases.  For example:
1496 .Sp
1497 .Vb 3
1498 \&        struct A { virtual void f(); char c1; };
1499 \&        struct B { B(); char c2; };
1500 \&        struct C : public A, public virtual B {};
1501 .Ve
1502 .Sp
1503 In this case, G++ will not place \f(CW\*(C`B\*(C'\fR into the tail-padding for
1504 \&\f(CW\*(C`A\*(C'\fR; other compilers will.  You can avoid this problem by
1505 explicitly padding \f(CW\*(C`A\*(C'\fR so that its size is a multiple of its
1506 alignment (ignoring virtual base classes); that will cause G++ and other
1507 compilers to layout \f(CW\*(C`C\*(C'\fR identically.
1508 .IP "*" 4
1509 Incorrect handling of bit-fields with declared widths greater than that
1510 of their underlying types, when the bit-fields appear in a union.  For
1511 example:
1512 .Sp
1513 .Vb 1
1514 \&        union U { int i : 4096; };
1515 .Ve
1516 .Sp
1517 Assuming that an \f(CW\*(C`int\*(C'\fR does not have 4096 bits, G++ will make the
1518 union too small by the number of bits in an \f(CW\*(C`int\*(C'\fR.
1519 .IP "*" 4
1520 Empty classes can be placed at incorrect offsets.  For example:
1521 .Sp
1522 .Vb 1
1523 \&        struct A {};
1524 .Ve
1525 .Sp
1526 .Vb 4
1527 \&        struct B {
1528 \&          A a;
1529 \&          virtual void f ();
1530 \&        };
1531 .Ve
1532 .Sp
1533 .Vb 1
1534 \&        struct C : public B, public A {};
1535 .Ve
1536 .Sp
1537 G++ will place the \f(CW\*(C`A\*(C'\fR base class of \f(CW\*(C`C\*(C'\fR at a nonzero offset;
1538 it should be placed at offset zero.  G++ mistakenly believes that the
1539 \&\f(CW\*(C`A\*(C'\fR data member of \f(CW\*(C`B\*(C'\fR is already at offset zero.
1540 .IP "*" 4
1541 Names of template functions whose types involve \f(CW\*(C`typename\*(C'\fR or
1542 template template parameters can be mangled incorrectly.
1543 .Sp
1544 .Vb 2
1545 \&        template <typename Q>
1546 \&        void f(typename Q::X) {}
1547 .Ve
1548 .Sp
1549 .Vb 2
1550 \&        template <template <typename> class Q>
1551 \&        void f(typename Q<int>::X) {}
1552 .Ve
1553 .Sp
1554 Instantiations of these templates may be mangled incorrectly.
1555 .RE
1556 .RS 4
1557 .RE
1558 .IP "\fB\-Wctor\-dtor\-privacy\fR (\*(C+ only)" 4
1559 .IX Item "-Wctor-dtor-privacy ( only)"
1560 Warn when a class seems unusable because all the constructors or
1561 destructors in that class are private, and it has neither friends nor
1562 public static member functions.
1563 .IP "\fB\-Wnon\-virtual\-dtor\fR (\*(C+ only)" 4
1564 .IX Item "-Wnon-virtual-dtor ( only)"
1565 Warn when a class appears to be polymorphic, thereby requiring a virtual
1566 destructor, yet it declares a non-virtual one.
1567 This warning is enabled by \fB\-Wall\fR.
1568 .IP "\fB\-Wreorder\fR (\*(C+ only)" 4
1569 .IX Item "-Wreorder ( only)"
1570 Warn when the order of member initializers given in the code does not
1571 match the order in which they must be executed.  For instance:
1572 .Sp
1573 .Vb 5
1574 \&        struct A {
1575 \&          int i;
1576 \&          int j;
1577 \&          A(): j (0), i (1) { }
1578 \&        };
1579 .Ve
1580 .Sp
1581 The compiler will rearrange the member initializers for \fBi\fR
1582 and \fBj\fR to match the declaration order of the members, emitting
1583 a warning to that effect.  This warning is enabled by \fB\-Wall\fR.
1584 .PP
1585 The following \fB\-W...\fR options are not affected by \fB\-Wall\fR.
1586 .IP "\fB\-Weffc++\fR (\*(C+ only)" 4
1587 .IX Item "-Weffc++ ( only)"
1588 Warn about violations of the following style guidelines from Scott Meyers'
1589 \&\fIEffective \*(C+\fR book:
1590 .RS 4
1591 .IP "*" 4
1592 Item 11:  Define a copy constructor and an assignment operator for classes
1593 with dynamically allocated memory.
1594 .IP "*" 4
1595 Item 12:  Prefer initialization to assignment in constructors.
1596 .IP "*" 4
1597 Item 14:  Make destructors virtual in base classes.
1598 .IP "*" 4
1599 Item 15:  Have \f(CW\*(C`operator=\*(C'\fR return a reference to \f(CW*this\fR.
1600 .IP "*" 4
1601 Item 23:  Don't try to return a reference when you must return an object.
1602 .RE
1603 .RS 4
1604 .Sp
1605 Also warn about violations of the following style guidelines from
1606 Scott Meyers' \fIMore Effective \*(C+\fR book:
1607 .IP "*" 4
1608 Item 6:  Distinguish between prefix and postfix forms of increment and
1609 decrement operators.
1610 .IP "*" 4
1611 Item 7:  Never overload \f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`||\*(C'\fR, or \f(CW\*(C`,\*(C'\fR.
1612 .RE
1613 .RS 4
1614 .Sp
1615 When selecting this option, be aware that the standard library
1616 headers do not obey all of these guidelines; use \fBgrep \-v\fR
1617 to filter out those warnings.
1618 .RE
1619 .IP "\fB\-Wno\-deprecated\fR (\*(C+ only)" 4
1620 .IX Item "-Wno-deprecated ( only)"
1621 Do not warn about usage of deprecated features.  
1622 .IP "\fB\-Wstrict\-null\-sentinel\fR (\*(C+ only)" 4
1623 .IX Item "-Wstrict-null-sentinel ( only)"
1624 Warn also about the use of an uncasted \f(CW\*(C`NULL\*(C'\fR as sentinel.  When
1625 compiling only with \s-1GCC\s0 this is a valid sentinel, as \f(CW\*(C`NULL\*(C'\fR is defined
1626 to \f(CW\*(C`_\|_null\*(C'\fR.  Although it is a null pointer constant not a null pointer,
1627 it is guaranteed to of the same size as a pointer.  But this use is
1628 not portable across different compilers.
1629 .IP "\fB\-Wno\-non\-template\-friend\fR (\*(C+ only)" 4
1630 .IX Item "-Wno-non-template-friend ( only)"
1631 Disable warnings when non-templatized friend functions are declared
1632 within a template.  Since the advent of explicit template specification
1633 support in G++, if the name of the friend is an unqualified-id (i.e.,
1634 \&\fBfriend foo(int)\fR), the \*(C+ language specification demands that the
1635 friend declare or define an ordinary, nontemplate function.  (Section
1636 14.5.3).  Before G++ implemented explicit specification, unqualified-ids
1637 could be interpreted as a particular specialization of a templatized
1638 function.  Because this non-conforming behavior is no longer the default
1639 behavior for G++, \fB\-Wnon\-template\-friend\fR allows the compiler to
1640 check existing code for potential trouble spots and is on by default.
1641 This new compiler behavior can be turned off with
1642 \&\fB\-Wno\-non\-template\-friend\fR which keeps the conformant compiler code
1643 but disables the helpful warning.
1644 .IP "\fB\-Wold\-style\-cast\fR (\*(C+ only)" 4
1645 .IX Item "-Wold-style-cast ( only)"
1646 Warn if an old-style (C\-style) cast to a non-void type is used within
1647 a \*(C+ program.  The new-style casts (\fBstatic_cast\fR,
1648 \&\fBreinterpret_cast\fR, and \fBconst_cast\fR) are less vulnerable to
1649 unintended effects and much easier to search for.
1650 .IP "\fB\-Woverloaded\-virtual\fR (\*(C+ only)" 4
1651 .IX Item "-Woverloaded-virtual ( only)"
1652 Warn when a function declaration hides virtual functions from a
1653 base class.  For example, in:
1654 .Sp
1655 .Vb 3
1656 \&        struct A {
1657 \&          virtual void f();
1658 \&        };
1659 .Ve
1660 .Sp
1661 .Vb 3
1662 \&        struct B: public A {
1663 \&          void f(int);
1664 \&        };
1665 .Ve
1666 .Sp
1667 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
1668 like:
1669 .Sp
1670 .Vb 2
1671 \&        B* b;
1672 \&        b->f();
1673 .Ve
1674 .Sp
1675 will fail to compile.
1676 .IP "\fB\-Wno\-pmf\-conversions\fR (\*(C+ only)" 4
1677 .IX Item "-Wno-pmf-conversions ( only)"
1678 Disable the diagnostic for converting a bound pointer to member function
1679 to a plain pointer.
1680 .IP "\fB\-Wsign\-promo\fR (\*(C+ only)" 4
1681 .IX Item "-Wsign-promo ( only)"
1682 Warn when overload resolution chooses a promotion from unsigned or
1683 enumerated type to a signed type, over a conversion to an unsigned type of
1684 the same size.  Previous versions of G++ would try to preserve
1685 unsignedness, but the standard mandates the current behavior.
1686 .Sp
1687 .Vb 4
1688 \&        struct A {
1689 \&          operator int ();
1690 \&          A& operator = (int);
1691 \&        };
1692 .Ve
1693 .Sp
1694 .Vb 5
1695 \&        main ()
1696 \&        {
1697 \&          A a,b;
1698 \&          a = b;
1699 \&        }
1700 .Ve
1701 .Sp
1702 In this example, G++ will synthesize a default \fBA& operator =
1703 (const A&);\fR, while cfront will use the user-defined \fBoperator =\fR.
1704 .Sh "Options Controlling Objective-C and Objective\-\*(C+ Dialects"
1705 .IX Subsection "Options Controlling Objective-C and Objective- Dialects"
1706 (\s-1NOTE:\s0 This manual does not describe the Objective-C and Objective\-\*(C+
1707 languages themselves.  See 
1708 .PP
1709 This section describes the command-line options that are only meaningful
1710 for Objective-C and Objective\-\*(C+ programs, but you can also use most of
1711 the language-independent \s-1GNU\s0 compiler options.
1712 For example, you might compile a file \f(CW\*(C`some_class.m\*(C'\fR like this:
1713 .PP
1714 .Vb 1
1715 \&        gcc -g -fgnu-runtime -O -c some_class.m
1716 .Ve
1717 .PP
1718 In this example, \fB\-fgnu\-runtime\fR is an option meant only for
1719 Objective-C and Objective\-\*(C+ programs; you can use the other options with
1720 any language supported by \s-1GCC\s0.
1721 .PP
1722 Note that since Objective-C is an extension of the C language, Objective-C
1723 compilations may also use options specific to the C front-end (e.g.,
1724 \&\fB\-Wtraditional\fR).  Similarly, Objective\-\*(C+ compilations may use
1725 \&\*(C+\-specific options (e.g., \fB\-Wabi\fR).
1726 .PP
1727 Here is a list of options that are \fIonly\fR for compiling Objective-C
1728 and Objective\-\*(C+ programs:
1729 .IP "\fB\-fconstant\-string\-class=\fR\fIclass-name\fR" 4
1730 .IX Item "-fconstant-string-class=class-name"
1731 Use \fIclass-name\fR as the name of the class to instantiate for each
1732 literal string specified with the syntax \f(CW\*(C`@"..."\*(C'\fR.  The default
1733 class name is \f(CW\*(C`NXConstantString\*(C'\fR if the \s-1GNU\s0 runtime is being used, and
1734 \&\f(CW\*(C`NSConstantString\*(C'\fR if the NeXT runtime is being used (see below).  The
1735 \&\fB\-fconstant\-cfstrings\fR option, if also present, will override the
1736 \&\fB\-fconstant\-string\-class\fR setting and cause \f(CW\*(C`@"..."\*(C'\fR literals
1737 to be laid out as constant CoreFoundation strings.
1738 .IP "\fB\-fgnu\-runtime\fR" 4
1739 .IX Item "-fgnu-runtime"
1740 Generate object code compatible with the standard \s-1GNU\s0 Objective-C
1741 runtime.  This is the default for most types of systems.
1742 .IP "\fB\-fnext\-runtime\fR" 4
1743 .IX Item "-fnext-runtime"
1744 Generate output compatible with the NeXT runtime.  This is the default
1745 for NeXT-based systems, including Darwin and Mac \s-1OS\s0 X.  The macro
1746 \&\f(CW\*(C`_\|_NEXT_RUNTIME_\|_\*(C'\fR is predefined if (and only if) this option is
1747 used.
1748 .IP "\fB\-fno\-nil\-receivers\fR" 4
1749 .IX Item "-fno-nil-receivers"
1750 Assume that all Objective-C message dispatches (e.g.,
1751 \&\f(CW\*(C`[receiver message:arg]\*(C'\fR) in this translation unit ensure that the receiver
1752 is not \f(CW\*(C`nil\*(C'\fR.  This allows for more efficient entry points in the runtime
1753 to be used.  Currently, this option is only available in conjunction with
1754 the NeXT runtime on Mac \s-1OS\s0 X 10.3 and later.
1755 .IP "\fB\-fobjc\-exceptions\fR" 4
1756 .IX Item "-fobjc-exceptions"
1757 Enable syntactic support for structured exception handling in Objective\-C,
1758 similar to what is offered by \*(C+ and Java.  Currently, this option is only
1759 available in conjunction with the NeXT runtime on Mac \s-1OS\s0 X 10.3 and later.
1760 .Sp
1761 .Vb 23
1762 \&          @try {
1763 \&            ...
1764 \&               @throw expr;
1765 \&            ...
1766 \&          }
1767 \&          @catch (AnObjCClass *exc) {
1768 \&            ...
1769 \&              @throw expr;
1770 \&            ...
1771 \&              @throw;
1772 \&            ...
1773 \&          }
1774 \&          @catch (AnotherClass *exc) {
1775 \&            ...
1776 \&          }
1777 \&          @catch (id allOthers) {
1778 \&            ...
1779 \&          }
1780 \&          @finally {
1781 \&            ...
1782 \&              @throw expr;
1783 \&            ...
1784 \&          }
1785 .Ve
1786 .Sp
1787 The \f(CW@throw\fR statement may appear anywhere in an Objective-C or
1788 Objective\-\*(C+ program; when used inside of a \f(CW@catch\fR block, the
1789 \&\f(CW@throw\fR may appear without an argument (as shown above), in which case
1790 the object caught by the \f(CW@catch\fR will be rethrown.
1791 .Sp
1792 Note that only (pointers to) Objective-C objects may be thrown and
1793 caught using this scheme.  When an object is thrown, it will be caught
1794 by the nearest \f(CW@catch\fR clause capable of handling objects of that type,
1795 analogously to how \f(CW\*(C`catch\*(C'\fR blocks work in \*(C+ and Java.  A
1796 \&\f(CW\*(C`@catch(id ...)\*(C'\fR clause (as shown above) may also be provided to catch
1797 any and all Objective-C exceptions not caught by previous \f(CW@catch\fR
1798 clauses (if any).
1799 .Sp
1800 The \f(CW@finally\fR clause, if present, will be executed upon exit from the
1801 immediately preceding \f(CW\*(C`@try ... @catch\*(C'\fR section.  This will happen
1802 regardless of whether any exceptions are thrown, caught or rethrown
1803 inside the \f(CW\*(C`@try ... @catch\*(C'\fR section, analogously to the behavior
1804 of the \f(CW\*(C`finally\*(C'\fR clause in Java.
1805 .Sp
1806 There are several caveats to using the new exception mechanism:
1807 .RS 4
1808 .IP "*" 4
1809 Although currently designed to be binary compatible with \f(CW\*(C`NS_HANDLER\*(C'\fR\-style
1810 idioms provided by the \f(CW\*(C`NSException\*(C'\fR class, the new
1811 exceptions can only be used on Mac \s-1OS\s0 X 10.3 (Panther) and later
1812 systems, due to additional functionality needed in the (NeXT) Objective-C
1813 runtime.
1814 .IP "*" 4
1815 As mentioned above, the new exceptions do not support handling
1816 types other than Objective-C objects.   Furthermore, when used from
1817 Objective\-\*(C+, the Objective-C exception model does not interoperate with \*(C+
1818 exceptions at this time.  This means you cannot \f(CW@throw\fR an exception
1819 from Objective-C and \f(CW\*(C`catch\*(C'\fR it in \*(C+, or vice versa
1820 (i.e., \f(CW\*(C`throw ... @catch\*(C'\fR).
1821 .RE
1822 .RS 4
1823 .Sp
1824 The \fB\-fobjc\-exceptions\fR switch also enables the use of synchronization
1825 blocks for thread-safe execution:
1826 .Sp
1827 .Vb 3
1828 \&          @synchronized (ObjCClass *guard) {
1829 \&            ...
1830 \&          }
1831 .Ve
1832 .Sp
1833 Upon entering the \f(CW@synchronized\fR block, a thread of execution shall
1834 first check whether a lock has been placed on the corresponding \f(CW\*(C`guard\*(C'\fR
1835 object by another thread.  If it has, the current thread shall wait until
1836 the other thread relinquishes its lock.  Once \f(CW\*(C`guard\*(C'\fR becomes available,
1837 the current thread will place its own lock on it, execute the code contained in
1838 the \f(CW@synchronized\fR block, and finally relinquish the lock (thereby
1839 making \f(CW\*(C`guard\*(C'\fR available to other threads).
1840 .Sp
1841 Unlike Java, Objective-C does not allow for entire methods to be marked
1842 \&\f(CW@synchronized\fR.  Note that throwing exceptions out of
1843 \&\f(CW@synchronized\fR blocks is allowed, and will cause the guarding object
1844 to be unlocked properly.
1845 .RE
1846 .IP "\fB\-freplace\-objc\-classes\fR" 4
1847 .IX Item "-freplace-objc-classes"
1848 Emit a special marker instructing \fB\f(BIld\fB\|(1)\fR not to statically link in
1849 the resulting object file, and allow \fB\f(BIdyld\fB\|(1)\fR to load it in at
1850 run time instead.  This is used in conjunction with the Fix-and-Continue
1851 debugging mode, where the object file in question may be recompiled and
1852 dynamically reloaded in the course of program execution, without the need
1853 to restart the program itself.  Currently, Fix-and-Continue functionality
1854 is only available in conjunction with the NeXT runtime on Mac \s-1OS\s0 X 10.3
1855 and later.
1856 .IP "\fB\-fzero\-link\fR" 4
1857 .IX Item "-fzero-link"
1858 When compiling for the NeXT runtime, the compiler ordinarily replaces calls
1859 to \f(CW\*(C`objc_getClass("...")\*(C'\fR (when the name of the class is known at
1860 compile time) with static class references that get initialized at load time,
1861 which improves run-time performance.  Specifying the \fB\-fzero\-link\fR flag
1862 suppresses this behavior and causes calls to \f(CW\*(C`objc_getClass("...")\*(C'\fR
1863 to be retained.  This is useful in Zero-Link debugging mode, since it allows
1864 for individual class implementations to be modified during program execution.
1865 .IP "\fB\-gen\-decls\fR" 4
1866 .IX Item "-gen-decls"
1867 Dump interface declarations for all classes seen in the source file to a
1868 file named \fI\fIsourcename\fI.decl\fR.
1869 .IP "\fB\-Wno\-protocol\fR" 4
1870 .IX Item "-Wno-protocol"
1871 If a class is declared to implement a protocol, a warning is issued for
1872 every method in the protocol that is not implemented by the class.  The
1873 default behavior is to issue a warning for every method not explicitly
1874 implemented in the class, even if a method implementation is inherited
1875 from the superclass.  If you use the \fB\-Wno\-protocol\fR option, then
1876 methods inherited from the superclass are considered to be implemented,
1877 and no warning is issued for them.
1878 .IP "\fB\-Wselector\fR" 4
1879 .IX Item "-Wselector"
1880 Warn if multiple methods of different types for the same selector are
1881 found during compilation.  The check is performed on the list of methods
1882 in the final stage of compilation.  Additionally, a check is performed
1883 for each selector appearing in a \f(CW\*(C`@selector(...)\*(C'\fR
1884 expression, and a corresponding method for that selector has been found
1885 during compilation.  Because these checks scan the method table only at
1886 the end of compilation, these warnings are not produced if the final
1887 stage of compilation is not reached, for example because an error is
1888 found during compilation, or because the \fB\-fsyntax\-only\fR option is
1889 being used.
1890 .IP "\fB\-Wundeclared\-selector\fR" 4
1891 .IX Item "-Wundeclared-selector"
1892 Warn if a \f(CW\*(C`@selector(...)\*(C'\fR expression referring to an
1893 undeclared selector is found.  A selector is considered undeclared if no
1894 method with that name has been declared before the
1895 \&\f(CW\*(C`@selector(...)\*(C'\fR expression, either explicitly in an
1896 \&\f(CW@interface\fR or \f(CW@protocol\fR declaration, or implicitly in
1897 an \f(CW@implementation\fR section.  This option always performs its
1898 checks as soon as a \f(CW\*(C`@selector(...)\*(C'\fR expression is found,
1899 while \fB\-Wselector\fR only performs its checks in the final stage of
1900 compilation.  This also enforces the coding style convention
1901 that methods and selectors must be declared before being used.
1902 .IP "\fB\-print\-objc\-runtime\-info\fR" 4
1903 .IX Item "-print-objc-runtime-info"
1904 Generate C header describing the largest structure that is passed by
1905 value, if any.
1906 .Sh "Options to Control Diagnostic Messages Formatting"
1907 .IX Subsection "Options to Control Diagnostic Messages Formatting"
1908 Traditionally, diagnostic messages have been formatted irrespective of
1909 the output device's aspect (e.g. its width, ...).  The options described
1910 below can be used to control the diagnostic messages formatting
1911 algorithm, e.g. how many characters per line, how often source location
1912 information should be reported.  Right now, only the \*(C+ front end can
1913 honor these options.  However it is expected, in the near future, that
1914 the remaining front ends would be able to digest them correctly.
1915 .IP "\fB\-fmessage\-length=\fR\fIn\fR" 4
1916 .IX Item "-fmessage-length=n"
1917 Try to format error messages so that they fit on lines of about \fIn\fR
1918 characters.  The default is 72 characters for \fBg++\fR and 0 for the rest of
1919 the front ends supported by \s-1GCC\s0.  If \fIn\fR is zero, then no
1920 line-wrapping will be done; each error message will appear on a single
1921 line.
1922 .IP "\fB\-fdiagnostics\-show\-location=once\fR" 4
1923 .IX Item "-fdiagnostics-show-location=once"
1924 Only meaningful in line-wrapping mode.  Instructs the diagnostic messages
1925 reporter to emit \fIonce\fR source location information; that is, in
1926 case the message is too long to fit on a single physical line and has to
1927 be wrapped, the source location won't be emitted (as prefix) again,
1928 over and over, in subsequent continuation lines.  This is the default
1929 behavior.
1930 .IP "\fB\-fdiagnostics\-show\-location=every\-line\fR" 4
1931 .IX Item "-fdiagnostics-show-location=every-line"
1932 Only meaningful in line-wrapping mode.  Instructs the diagnostic
1933 messages reporter to emit the same source location information (as
1934 prefix) for physical lines that result from the process of breaking
1935 a message which is too long to fit on a single line.
1936 .Sh "Options to Request or Suppress Warnings"
1937 .IX Subsection "Options to Request or Suppress Warnings"
1938 Warnings are diagnostic messages that report constructions which
1939 are not inherently erroneous but which are risky or suggest there
1940 may have been an error.
1941 .PP
1942 You can request many specific warnings with options beginning \fB\-W\fR,
1943 for example \fB\-Wimplicit\fR to request warnings on implicit
1944 declarations.  Each of these specific warning options also has a
1945 negative form beginning \fB\-Wno\-\fR to turn off warnings;
1946 for example, \fB\-Wno\-implicit\fR.  This manual lists only one of the
1947 two forms, whichever is not the default.
1948 .PP
1949 The following options control the amount and kinds of warnings produced
1950 by \s-1GCC\s0; for further, language-specific options also refer to
1951 \&\fB\*(C+ Dialect Options\fR and \fBObjective-C and Objective\-\*(C+ Dialect
1952 Options\fR.
1953 .IP "\fB\-fsyntax\-only\fR" 4
1954 .IX Item "-fsyntax-only"
1955 Check the code for syntax errors, but don't do anything beyond that.
1956 .IP "\fB\-pedantic\fR" 4
1957 .IX Item "-pedantic"
1958 Issue all the warnings demanded by strict \s-1ISO\s0 C and \s-1ISO\s0 \*(C+;
1959 reject all programs that use forbidden extensions, and some other
1960 programs that do not follow \s-1ISO\s0 C and \s-1ISO\s0 \*(C+.  For \s-1ISO\s0 C, follows the
1961 version of the \s-1ISO\s0 C standard specified by any \fB\-std\fR option used.
1962 .Sp
1963 Valid \s-1ISO\s0 C and \s-1ISO\s0 \*(C+ programs should compile properly with or without
1964 this option (though a rare few will require \fB\-ansi\fR or a
1965 \&\fB\-std\fR option specifying the required version of \s-1ISO\s0 C).  However,
1966 without this option, certain \s-1GNU\s0 extensions and traditional C and \*(C+
1967 features are supported as well.  With this option, they are rejected.
1968 .Sp
1969 \&\fB\-pedantic\fR does not cause warning messages for use of the
1970 alternate keywords whose names begin and end with \fB_\|_\fR.  Pedantic
1971 warnings are also disabled in the expression that follows
1972 \&\f(CW\*(C`_\|_extension_\|_\*(C'\fR.  However, only system header files should use
1973 these escape routes; application programs should avoid them.
1974 .Sp
1975 Some users try to use \fB\-pedantic\fR to check programs for strict \s-1ISO\s0
1976 C conformance.  They soon find that it does not do quite what they want:
1977 it finds some non-ISO practices, but not all\-\-\-only those for which
1978 \&\s-1ISO\s0 C \fIrequires\fR a diagnostic, and some others for which
1979 diagnostics have been added.
1980 .Sp
1981 A feature to report any failure to conform to \s-1ISO\s0 C might be useful in
1982 some instances, but would require considerable additional work and would
1983 be quite different from \fB\-pedantic\fR.  We don't have plans to
1984 support such a feature in the near future.
1985 .Sp
1986 Where the standard specified with \fB\-std\fR represents a \s-1GNU\s0
1987 extended dialect of C, such as \fBgnu89\fR or \fBgnu99\fR, there is a
1988 corresponding \fIbase standard\fR, the version of \s-1ISO\s0 C on which the \s-1GNU\s0
1989 extended dialect is based.  Warnings from \fB\-pedantic\fR are given
1990 where they are required by the base standard.  (It would not make sense
1991 for such warnings to be given only for features not in the specified \s-1GNU\s0
1992 C dialect, since by definition the \s-1GNU\s0 dialects of C include all
1993 features the compiler supports with the given option, and there would be
1994 nothing to warn about.)
1995 .IP "\fB\-pedantic\-errors\fR" 4
1996 .IX Item "-pedantic-errors"
1997 Like \fB\-pedantic\fR, except that errors are produced rather than
1998 warnings.
1999 .IP "\fB\-w\fR" 4
2000 .IX Item "-w"
2001 Inhibit all warning messages.
2002 .IP "\fB\-Wno\-import\fR" 4
2003 .IX Item "-Wno-import"
2004 Inhibit warning messages about the use of \fB#import\fR.
2005 .IP "\fB\-Wchar\-subscripts\fR" 4
2006 .IX Item "-Wchar-subscripts"
2007 Warn if an array subscript has type \f(CW\*(C`char\*(C'\fR.  This is a common cause
2008 of error, as programmers often forget that this type is signed on some
2009 machines.
2010 This warning is enabled by \fB\-Wall\fR.
2011 .IP "\fB\-Wcomment\fR" 4
2012 .IX Item "-Wcomment"
2013 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
2014 comment, or whenever a Backslash-Newline appears in a \fB//\fR comment.
2015 This warning is enabled by \fB\-Wall\fR.
2016 .IP "\fB\-Wfatal\-errors\fR" 4
2017 .IX Item "-Wfatal-errors"
2018 This option causes the compiler to abort compilation on the first error
2019 occurred rather than trying to keep going and printing further error
2020 messages.
2021 .IP "\fB\-Wformat\fR" 4
2022 .IX Item "-Wformat"
2023 Check calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR, etc., to make sure that
2024 the arguments supplied have types appropriate to the format string
2025 specified, and that the conversions specified in the format string make
2026 sense.  This includes standard functions, and others specified by format
2027 attributes, in the \f(CW\*(C`printf\*(C'\fR,
2028 \&\f(CW\*(C`scanf\*(C'\fR, \f(CW\*(C`strftime\*(C'\fR and \f(CW\*(C`strfmon\*(C'\fR (an X/Open extension,
2029 not in the C standard) families (or other target-specific families).
2030 Which functions are checked without format attributes having been
2031 specified depends on the standard version selected, and such checks of
2032 functions without the attribute specified are disabled by
2033 \&\fB\-ffreestanding\fR or \fB\-fno\-builtin\fR.
2034 .Sp
2035 The formats are checked against the format features supported by \s-1GNU\s0
2036 libc version 2.2.  These include all \s-1ISO\s0 C90 and C99 features, as well
2037 as features from the Single Unix Specification and some \s-1BSD\s0 and \s-1GNU\s0
2038 extensions.  Other library implementations may not support all these
2039 features; \s-1GCC\s0 does not support warning about features that go beyond a
2040 particular library's limitations.  However, if \fB\-pedantic\fR is used
2041 with \fB\-Wformat\fR, warnings will be given about format features not
2042 in the selected standard version (but not for \f(CW\*(C`strfmon\*(C'\fR formats,
2043 since those are not in any version of the C standard).  
2044 .Sp
2045 Since \fB\-Wformat\fR also checks for null format arguments for
2046 several functions, \fB\-Wformat\fR also implies \fB\-Wnonnull\fR.
2047 .Sp
2048 \&\fB\-Wformat\fR is included in \fB\-Wall\fR.  For more control over some
2049 aspects of format checking, the options \fB\-Wformat\-y2k\fR,
2050 \&\fB\-Wno\-format\-extra\-args\fR, \fB\-Wno\-format\-zero\-length\fR,
2051 \&\fB\-Wformat\-nonliteral\fR, \fB\-Wformat\-security\fR, and
2052 \&\fB\-Wformat=2\fR are available, but are not included in \fB\-Wall\fR.
2053 .IP "\fB\-Wformat\-y2k\fR" 4
2054 .IX Item "-Wformat-y2k"
2055 If \fB\-Wformat\fR is specified, also warn about \f(CW\*(C`strftime\*(C'\fR
2056 formats which may yield only a two-digit year.
2057 .IP "\fB\-Wno\-format\-extra\-args\fR" 4
2058 .IX Item "-Wno-format-extra-args"
2059 If \fB\-Wformat\fR is specified, do not warn about excess arguments to a
2060 \&\f(CW\*(C`printf\*(C'\fR or \f(CW\*(C`scanf\*(C'\fR format function.  The C standard specifies
2061 that such arguments are ignored.
2062 .Sp
2063 Where the unused arguments lie between used arguments that are
2064 specified with \fB$\fR operand number specifications, normally
2065 warnings are still given, since the implementation could not know what
2066 type to pass to \f(CW\*(C`va_arg\*(C'\fR to skip the unused arguments.  However,
2067 in the case of \f(CW\*(C`scanf\*(C'\fR formats, this option will suppress the
2068 warning if the unused arguments are all pointers, since the Single
2069 Unix Specification says that such unused arguments are allowed.
2070 .IP "\fB\-Wno\-format\-zero\-length\fR" 4
2071 .IX Item "-Wno-format-zero-length"
2072 If \fB\-Wformat\fR is specified, do not warn about zero-length formats.
2073 The C standard specifies that zero-length formats are allowed.
2074 .IP "\fB\-Wformat\-nonliteral\fR" 4
2075 .IX Item "-Wformat-nonliteral"
2076 If \fB\-Wformat\fR is specified, also warn if the format string is not a
2077 string literal and so cannot be checked, unless the format function
2078 takes its format arguments as a \f(CW\*(C`va_list\*(C'\fR.
2079 .IP "\fB\-Wformat\-security\fR" 4
2080 .IX Item "-Wformat-security"
2081 If \fB\-Wformat\fR is specified, also warn about uses of format
2082 functions that represent possible security problems.  At present, this
2083 warns about calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR functions where the
2084 format string is not a string literal and there are no format arguments,
2085 as in \f(CW\*(C`printf (foo);\*(C'\fR.  This may be a security hole if the format
2086 string came from untrusted input and contains \fB%n\fR.  (This is
2087 currently a subset of what \fB\-Wformat\-nonliteral\fR warns about, but
2088 in future warnings may be added to \fB\-Wformat\-security\fR that are not
2089 included in \fB\-Wformat\-nonliteral\fR.)
2090 .IP "\fB\-Wformat=2\fR" 4
2091 .IX Item "-Wformat=2"
2092 Enable \fB\-Wformat\fR plus format checks not included in
2093 \&\fB\-Wformat\fR.  Currently equivalent to \fB\-Wformat
2094 \&\-Wformat\-nonliteral \-Wformat\-security \-Wformat\-y2k\fR.
2095 .IP "\fB\-Wnonnull\fR" 4
2096 .IX Item "-Wnonnull"
2097 Warn about passing a null pointer for arguments marked as
2098 requiring a non-null value by the \f(CW\*(C`nonnull\*(C'\fR function attribute.
2099 .Sp
2100 \&\fB\-Wnonnull\fR is included in \fB\-Wall\fR and \fB\-Wformat\fR.  It
2101 can be disabled with the \fB\-Wno\-nonnull\fR option.
2102 .IP "\fB\-Winit\-self\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
2103 .IX Item "-Winit-self (C, , Objective-C and Objective- only)"
2104 Warn about uninitialized variables which are initialized with themselves.
2105 Note this option can only be used with the \fB\-Wuninitialized\fR option,
2106 which in turn only works with \fB\-O1\fR and above.
2107 .Sp
2108 For example, \s-1GCC\s0 will warn about \f(CW\*(C`i\*(C'\fR being uninitialized in the
2109 following snippet only when \fB\-Winit\-self\fR has been specified:
2110 .Sp
2111 .Vb 5
2112 \&        int f()
2113 \&        {
2114 \&          int i = i;
2115 \&          return i;
2116 \&        }
2117 .Ve
2118 .IP "\fB\-Wimplicit\-int\fR" 4
2119 .IX Item "-Wimplicit-int"
2120 Warn when a declaration does not specify a type.
2121 This warning is enabled by \fB\-Wall\fR.
2122 .IP "\fB\-Wimplicit\-function\-declaration\fR" 4
2123 .IX Item "-Wimplicit-function-declaration"
2124 .PD 0
2125 .IP "\fB\-Werror\-implicit\-function\-declaration\fR" 4
2126 .IX Item "-Werror-implicit-function-declaration"
2127 .PD
2128 Give a warning (or error) whenever a function is used before being
2129 declared.  The form \fB\-Wno\-error\-implicit\-function\-declaration\fR
2130 is not supported.
2131 This warning is enabled by \fB\-Wall\fR (as a warning, not an error).
2132 .IP "\fB\-Wimplicit\fR" 4
2133 .IX Item "-Wimplicit"
2134 Same as \fB\-Wimplicit\-int\fR and \fB\-Wimplicit\-function\-declaration\fR.
2135 This warning is enabled by \fB\-Wall\fR.
2136 .IP "\fB\-Wmain\fR" 4
2137 .IX Item "-Wmain"
2138 Warn if the type of \fBmain\fR is suspicious.  \fBmain\fR should be a
2139 function with external linkage, returning int, taking either zero
2140 arguments, two, or three arguments of appropriate types.
2141 This warning is enabled by \fB\-Wall\fR.
2142 .IP "\fB\-Wmissing\-braces\fR" 4
2143 .IX Item "-Wmissing-braces"
2144 Warn if an aggregate or union initializer is not fully bracketed.  In
2145 the following example, the initializer for \fBa\fR is not fully
2146 bracketed, but that for \fBb\fR is fully bracketed.
2147 .Sp
2148 .Vb 2
2149 \&        int a[2][2] = { 0, 1, 2, 3 };
2150 \&        int b[2][2] = { { 0, 1 }, { 2, 3 } };
2151 .Ve
2152 .Sp
2153 This warning is enabled by \fB\-Wall\fR.
2154 .IP "\fB\-Wmissing\-include\-dirs\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
2155 .IX Item "-Wmissing-include-dirs (C, , Objective-C and Objective- only)"
2156 Warn if a user-supplied include directory does not exist.
2157 .IP "\fB\-Wparentheses\fR" 4
2158 .IX Item "-Wparentheses"
2159 Warn if parentheses are omitted in certain contexts, such
2160 as when there is an assignment in a context where a truth value
2161 is expected, or when operators are nested whose precedence people
2162 often get confused about.  Only the warning for an assignment used as
2163 a truth value is supported when compiling \*(C+; the other warnings are
2164 only supported when compiling C.
2165 .Sp
2166 Also warn if a comparison like \fBx<=y<=z\fR appears; this is
2167 equivalent to \fB(x<=y ? 1 : 0) <= z\fR, which is a different
2168 interpretation from that of ordinary mathematical notation.
2169 .Sp
2170 Also warn about constructions where there may be confusion to which
2171 \&\f(CW\*(C`if\*(C'\fR statement an \f(CW\*(C`else\*(C'\fR branch belongs.  Here is an example of
2172 such a case:
2173 .Sp
2174 .Vb 7
2175 \&        {
2176 \&          if (a)
2177 \&            if (b)
2178 \&              foo ();
2179 \&          else
2180 \&            bar ();
2181 \&        }
2182 .Ve
2183 .Sp
2184 In C, every \f(CW\*(C`else\*(C'\fR branch belongs to the innermost possible \f(CW\*(C`if\*(C'\fR
2185 statement, which in this example is \f(CW\*(C`if (b)\*(C'\fR.  This is often not
2186 what the programmer expected, as illustrated in the above example by
2187 indentation the programmer chose.  When there is the potential for this
2188 confusion, \s-1GCC\s0 will issue a warning when this flag is specified.
2189 To eliminate the warning, add explicit braces around the innermost
2190 \&\f(CW\*(C`if\*(C'\fR statement so there is no way the \f(CW\*(C`else\*(C'\fR could belong to
2191 the enclosing \f(CW\*(C`if\*(C'\fR.  The resulting code would look like this:
2192 .Sp
2193 .Vb 9
2194 \&        {
2195 \&          if (a)
2196 \&            {
2197 \&              if (b)
2198 \&                foo ();
2199 \&              else
2200 \&                bar ();
2201 \&            }
2202 \&        }
2203 .Ve
2204 .Sp
2205 This warning is enabled by \fB\-Wall\fR.
2206 .IP "\fB\-Wsequence\-point\fR" 4
2207 .IX Item "-Wsequence-point"
2208 Warn about code that may have undefined semantics because of violations
2209 of sequence point rules in the C standard.
2210 .Sp
2211 The C standard defines the order in which expressions in a C program are
2212 evaluated in terms of \fIsequence points\fR, which represent a partial
2213 ordering between the execution of parts of the program: those executed
2214 before the sequence point, and those executed after it.  These occur
2215 after the evaluation of a full expression (one which is not part of a
2216 larger expression), after the evaluation of the first operand of a
2217 \&\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
2218 function is called (but after the evaluation of its arguments and the
2219 expression denoting the called function), and in certain other places.
2220 Other than as expressed by the sequence point rules, the order of
2221 evaluation of subexpressions of an expression is not specified.  All
2222 these rules describe only a partial order rather than a total order,
2223 since, for example, if two functions are called within one expression
2224 with no sequence point between them, the order in which the functions
2225 are called is not specified.  However, the standards committee have
2226 ruled that function calls do not overlap.
2227 .Sp
2228 It is not specified when between sequence points modifications to the
2229 values of objects take effect.  Programs whose behavior depends on this
2230 have undefined behavior; the C standard specifies that ``Between the
2231 previous and next sequence point an object shall have its stored value
2232 modified at most once by the evaluation of an expression.  Furthermore,
2233 the prior value shall be read only to determine the value to be
2234 stored.''.  If a program breaks these rules, the results on any
2235 particular implementation are entirely unpredictable.
2236 .Sp
2237 Examples of code with undefined behavior are \f(CW\*(C`a = a++;\*(C'\fR, \f(CW\*(C`a[n]
2238 = b[n++]\*(C'\fR and \f(CW\*(C`a[i++] = i;\*(C'\fR.  Some more complicated cases are not
2239 diagnosed by this option, and it may give an occasional false positive
2240 result, but in general it has been found fairly effective at detecting
2241 this sort of problem in programs.
2242 .Sp
2243 The present implementation of this option only works for C programs.  A
2244 future implementation may also work for \*(C+ programs.
2245 .Sp
2246 The C standard is worded confusingly, therefore there is some debate
2247 over the precise meaning of the sequence point rules in subtle cases.
2248 Links to discussions of the problem, including proposed formal
2249 definitions, may be found on the \s-1GCC\s0 readings page, at
2250 <\fBhttp://gcc.gnu.org/readings.html\fR>.
2251 .Sp
2252 This warning is enabled by \fB\-Wall\fR.
2253 .IP "\fB\-Wreturn\-type\fR" 4
2254 .IX Item "-Wreturn-type"
2255 Warn whenever a function is defined with a return-type that defaults to
2256 \&\f(CW\*(C`int\*(C'\fR.  Also warn about any \f(CW\*(C`return\*(C'\fR statement with no
2257 return-value in a function whose return-type is not \f(CW\*(C`void\*(C'\fR.
2258 .Sp
2259 For C, also warn if the return type of a function has a type qualifier
2260 such as \f(CW\*(C`const\*(C'\fR.  Such a type qualifier has no effect, since the
2261 value returned by a function is not an lvalue.  \s-1ISO\s0 C prohibits
2262 qualified \f(CW\*(C`void\*(C'\fR return types on function definitions, so such
2263 return types always receive a warning even without this option.
2264 .Sp
2265 For \*(C+, a function without return type always produces a diagnostic
2266 message, even when \fB\-Wno\-return\-type\fR is specified.  The only
2267 exceptions are \fBmain\fR and functions defined in system headers.
2268 .Sp
2269 This warning is enabled by \fB\-Wall\fR.
2270 .IP "\fB\-Wswitch\fR" 4
2271 .IX Item "-Wswitch"
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.  (The presence of a \f(CW\*(C`default\*(C'\fR label prevents this
2275 warning.)  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
2276 provoke warnings when this option is used.
2277 This warning is enabled by \fB\-Wall\fR.
2278 .IP "\fB\-Wswitch\-default\fR" 4
2279 .IX Item "-Wswitch-default"
2280 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement does not have a \f(CW\*(C`default\*(C'\fR
2281 case.
2282 .IP "\fB\-Wswitch\-enum\fR" 4
2283 .IX Item "-Wswitch-enum"
2284 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
2285 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
2286 enumeration.  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
2287 provoke warnings when this option is used.
2288 .IP "\fB\-Wtrigraphs\fR" 4
2289 .IX Item "-Wtrigraphs"
2290 Warn if any trigraphs are encountered that might change the meaning of
2291 the program (trigraphs within comments are not warned about).
2292 This warning is enabled by \fB\-Wall\fR.
2293 .IP "\fB\-Wunused\-function\fR" 4
2294 .IX Item "-Wunused-function"
2295 Warn whenever a static function is declared but not defined or a
2296 non\e\-inline static function is unused.
2297 This warning is enabled by \fB\-Wall\fR.
2298 .IP "\fB\-Wunused\-label\fR" 4
2299 .IX Item "-Wunused-label"
2300 Warn whenever a label is declared but not used.
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\-parameter\fR" 4
2305 .IX Item "-Wunused-parameter"
2306 Warn whenever a function parameter is unused aside from its declaration.
2307 .Sp
2308 To suppress this warning use the \fBunused\fR attribute.
2309 .IP "\fB\-Wunused\-variable\fR" 4
2310 .IX Item "-Wunused-variable"
2311 Warn whenever a local variable or non-constant static variable is unused
2312 aside from its declaration
2313 This warning is enabled by \fB\-Wall\fR.
2314 .Sp
2315 To suppress this warning use the \fBunused\fR attribute.
2316 .IP "\fB\-Wunused\-value\fR" 4
2317 .IX Item "-Wunused-value"
2318 Warn whenever a statement computes a result that is explicitly not used.
2319 This warning is enabled by \fB\-Wall\fR.
2320 .Sp
2321 To suppress this warning cast the expression to \fBvoid\fR.
2322 .IP "\fB\-Wunused\fR" 4
2323 .IX Item "-Wunused"
2324 All the above \fB\-Wunused\fR options combined.
2325 .Sp
2326 In order to get a warning about an unused function parameter, you must
2327 either specify \fB\-Wextra \-Wunused\fR (note that \fB\-Wall\fR implies
2328 \&\fB\-Wunused\fR), or separately specify \fB\-Wunused\-parameter\fR.
2329 .IP "\fB\-Wuninitialized\fR" 4
2330 .IX Item "-Wuninitialized"
2331 Warn if an automatic variable is used without first being initialized or
2332 if a variable may be clobbered by a \f(CW\*(C`setjmp\*(C'\fR call.
2333 .Sp
2334 These warnings are possible only in optimizing compilation,
2335 because they require data flow information that is computed only
2336 when optimizing.  If you don't specify \fB\-O\fR, you simply won't
2337 get these warnings.
2338 .Sp
2339 If you want to warn about code which uses the uninitialized value of the
2340 variable in its own initializer, use the \fB\-Winit\-self\fR option.
2341 .Sp
2342 These warnings occur for individual uninitialized or clobbered
2343 elements of structure, union or array variables as well as for
2344 variables which are uninitialized or clobbered as a whole.  They do
2345 not occur for variables or elements declared \f(CW\*(C`volatile\*(C'\fR.  Because
2346 these warnings depend on optimization, the exact variables or elements
2347 for which there are warnings will depend on the precise optimization
2348 options and version of \s-1GCC\s0 used.
2349 .Sp
2350 Note that there may be no warning about a variable that is used only
2351 to compute a value that itself is never used, because such
2352 computations may be deleted by data flow analysis before the warnings
2353 are printed.
2354 .Sp
2355 These warnings are made optional because \s-1GCC\s0 is not smart
2356 enough to see all the reasons why the code might be correct
2357 despite appearing to have an error.  Here is one example of how
2358 this can happen:
2359 .Sp
2360 .Vb 12
2361 \&        {
2362 \&          int x;
2363 \&          switch (y)
2364 \&            {
2365 \&            case 1: x = 1;
2366 \&              break;
2367 \&            case 2: x = 4;
2368 \&              break;
2369 \&            case 3: x = 5;
2370 \&            }
2371 \&          foo (x);
2372 \&        }
2373 .Ve
2374 .Sp
2375 If the value of \f(CW\*(C`y\*(C'\fR is always 1, 2 or 3, then \f(CW\*(C`x\*(C'\fR is
2376 always initialized, but \s-1GCC\s0 doesn't know this.  Here is
2377 another common case:
2378 .Sp
2379 .Vb 6
2380 \&        {
2381 \&          int save_y;
2382 \&          if (change_y) save_y = y, y = new_y;
2383 \&          ...
2384 \&          if (change_y) y = save_y;
2385 \&        }
2386 .Ve
2387 .Sp
2388 This has no bug because \f(CW\*(C`save_y\*(C'\fR is used only if it is set.
2389 .Sp
2390 This option also warns when a non-volatile automatic variable might be
2391 changed by a call to \f(CW\*(C`longjmp\*(C'\fR.  These warnings as well are possible
2392 only in optimizing compilation.
2393 .Sp
2394 The compiler sees only the calls to \f(CW\*(C`setjmp\*(C'\fR.  It cannot know
2395 where \f(CW\*(C`longjmp\*(C'\fR will be called; in fact, a signal handler could
2396 call it at any point in the code.  As a result, you may get a warning
2397 even when there is in fact no problem because \f(CW\*(C`longjmp\*(C'\fR cannot
2398 in fact be called at the place which would cause a problem.
2399 .Sp
2400 Some spurious warnings can be avoided if you declare all the functions
2401 you use that never return as \f(CW\*(C`noreturn\*(C'\fR.  
2402 .Sp
2403 This warning is enabled by \fB\-Wall\fR.
2404 .IP "\fB\-Wunknown\-pragmas\fR" 4
2405 .IX Item "-Wunknown-pragmas"
2406 Warn when a #pragma directive is encountered which is not understood by
2407 \&\s-1GCC\s0.  If this command line option is used, warnings will even be issued
2408 for unknown pragmas in system header files.  This is not the case if
2409 the warnings were only enabled by the \fB\-Wall\fR command line option.
2410 .IP "\fB\-Wstrict\-aliasing\fR" 4
2411 .IX Item "-Wstrict-aliasing"
2412 This option is only active when \fB\-fstrict\-aliasing\fR is active.
2413 It warns about code which might break the strict aliasing rules that the
2414 compiler is using for optimization.  The warning does not catch all
2415 cases, but does attempt to catch the more common pitfalls.  It is
2416 included in \fB\-Wall\fR.
2417 .IP "\fB\-Wstrict\-aliasing=2\fR" 4
2418 .IX Item "-Wstrict-aliasing=2"
2419 This option is only active when \fB\-fstrict\-aliasing\fR is active.
2420 It warns about all code which might break the strict aliasing rules that the
2421 compiler is using for optimization.  This warning catches all cases, but
2422 it will also give a warning for some ambiguous cases that are safe.
2423 .IP "\fB\-Wall\fR" 4
2424 .IX Item "-Wall"
2425 All of the above \fB\-W\fR options combined.  This enables all the
2426 warnings about constructions that some users consider questionable, and
2427 that are easy to avoid (or modify to prevent the warning), even in
2428 conjunction with macros.  This also enables some language-specific
2429 warnings described in \fB\*(C+ Dialect Options\fR and
2430 \&\fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
2431 .PP
2432 The following \fB\-W...\fR options are not implied by \fB\-Wall\fR.
2433 Some of them warn about constructions that users generally do not
2434 consider questionable, but which occasionally you might wish to check
2435 for; others warn about constructions that are necessary or hard to avoid
2436 in some cases, and there is no simple way to modify the code to suppress
2437 the warning.
2438 .IP "\fB\-Wextra\fR" 4
2439 .IX Item "-Wextra"
2440 (This option used to be called \fB\-W\fR.  The older name is still
2441 supported, but the newer name is more descriptive.)  Print extra warning
2442 messages for these events:
2443 .RS 4
2444 .IP "*" 4
2445 A function can return either with or without a value.  (Falling
2446 off the end of the function body is considered returning without
2447 a value.)  For example, this function would evoke such a
2448 warning:
2449 .Sp
2450 .Vb 5
2451 \&        foo (a)
2452 \&        {
2453 \&          if (a > 0)
2454 \&            return a;
2455 \&        }
2456 .Ve
2457 .IP "*" 4
2458 An expression-statement or the left-hand side of a comma expression
2459 contains no side effects.
2460 To suppress the warning, cast the unused expression to void.
2461 For example, an expression such as \fBx[i,j]\fR will cause a warning,
2462 but \fBx[(void)i,j]\fR will not.
2463 .IP "*" 4
2464 An unsigned value is compared against zero with \fB<\fR or \fB>=\fR.
2465 .IP "*" 4
2466 Storage-class specifiers like \f(CW\*(C`static\*(C'\fR are not the first things in
2467 a declaration.  According to the C Standard, this usage is obsolescent.
2468 .IP "*" 4
2469 If \fB\-Wall\fR or \fB\-Wunused\fR is also specified, warn about unused
2470 arguments.
2471 .IP "*" 4
2472 A comparison between signed and unsigned values could produce an
2473 incorrect result when the signed value is converted to unsigned.
2474 (But don't warn if \fB\-Wno\-sign\-compare\fR is also specified.)
2475 .IP "*" 4
2476 An aggregate has an initializer which does not initialize all members.
2477 This warning can be independently controlled by
2478 \&\fB\-Wmissing\-field\-initializers\fR.
2479 .IP "*" 4
2480 A function parameter is declared without a type specifier in K&R\-style
2481 functions:
2482 .Sp
2483 .Vb 1
2484 \&        void foo(bar) { }
2485 .Ve
2486 .IP "*" 4
2487 An empty body occurs in an \fBif\fR or \fBelse\fR statement.
2488 .IP "*" 4
2489 A pointer is compared against integer zero with \fB<\fR, \fB<=\fR,
2490 \&\fB>\fR, or \fB>=\fR.
2491 .IP "*" 4
2492 A variable might be changed by \fBlongjmp\fR or \fBvfork\fR.
2493 .IP "*" 4
2494 Any of several floating-point events that often indicate errors, such as
2495 overflow, underflow, loss of precision, etc.
2496 .IP "*<(\*(C+ only)>" 4
2497 .IX Item "*<( only)>"
2498 An enumerator and a non-enumerator both appear in a conditional expression.
2499 .IP "*<(\*(C+ only)>" 4
2500 .IX Item "*<( only)>"
2501 A non-static reference or non-static \fBconst\fR member appears in a
2502 class without constructors.
2503 .IP "*<(\*(C+ only)>" 4
2504 .IX Item "*<( only)>"
2505 Ambiguous virtual bases.
2506 .IP "*<(\*(C+ only)>" 4
2507 .IX Item "*<( only)>"
2508 Subscripting an array which has been declared \fBregister\fR.
2509 .IP "*<(\*(C+ only)>" 4
2510 .IX Item "*<( only)>"
2511 Taking the address of a variable which has been declared \fBregister\fR.
2512 .IP "*<(\*(C+ only)>" 4
2513 .IX Item "*<( only)>"
2514 A base class is not initialized in a derived class' copy constructor.
2515 .RE
2516 .RS 4
2517 .RE
2518 .IP "\fB\-Wno\-div\-by\-zero\fR" 4
2519 .IX Item "-Wno-div-by-zero"
2520 Do not warn about compile-time integer division by zero.  Floating point
2521 division by zero is not warned about, as it can be a legitimate way of
2522 obtaining infinities and NaNs.
2523 .IP "\fB\-Wsystem\-headers\fR" 4
2524 .IX Item "-Wsystem-headers"
2525 Print warning messages for constructs found in system header files.
2526 Warnings from system headers are normally suppressed, on the assumption
2527 that they usually do not indicate real problems and would only make the
2528 compiler output harder to read.  Using this command line option tells
2529 \&\s-1GCC\s0 to emit warnings from system headers as if they occurred in user
2530 code.  However, note that using \fB\-Wall\fR in conjunction with this
2531 option will \fInot\fR warn about unknown pragmas in system
2532 headers\-\-\-for that, \fB\-Wunknown\-pragmas\fR must also be used.
2533 .IP "\fB\-Wfloat\-equal\fR" 4
2534 .IX Item "-Wfloat-equal"
2535 Warn if floating point values are used in equality comparisons.
2536 .Sp
2537 The idea behind this is that sometimes it is convenient (for the
2538 programmer) to consider floating-point values as approximations to
2539 infinitely precise real numbers.  If you are doing this, then you need
2540 to compute (by analyzing the code, or in some other way) the maximum or
2541 likely maximum error that the computation introduces, and allow for it
2542 when performing comparisons (and when producing output, but that's a
2543 different problem).  In particular, instead of testing for equality, you
2544 would check to see whether the two values have ranges that overlap; and
2545 this is done with the relational operators, so equality comparisons are
2546 probably mistaken.
2547 .IP "\fB\-Wtraditional\fR (C only)" 4
2548 .IX Item "-Wtraditional (C only)"
2549 Warn about certain constructs that behave differently in traditional and
2550 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
2551 equivalent, and/or problematic constructs which should be avoided.
2552 .RS 4
2553 .IP "*" 4
2554 Macro parameters that appear within string literals in the macro body.
2555 In traditional C macro replacement takes place within string literals,
2556 but does not in \s-1ISO\s0 C.
2557 .IP "*" 4
2558 In traditional C, some preprocessor directives did not exist.
2559 Traditional preprocessors would only consider a line to be a directive
2560 if the \fB#\fR appeared in column 1 on the line.  Therefore
2561 \&\fB\-Wtraditional\fR warns about directives that traditional C
2562 understands but would ignore because the \fB#\fR does not appear as the
2563 first character on the line.  It also suggests you hide directives like
2564 \&\fB#pragma\fR not understood by traditional C by indenting them.  Some
2565 traditional implementations would not recognize \fB#elif\fR, so it
2566 suggests avoiding it altogether.
2567 .IP "*" 4
2568 A function-like macro that appears without arguments.
2569 .IP "*" 4
2570 The unary plus operator.
2571 .IP "*" 4
2572 The \fBU\fR integer constant suffix, or the \fBF\fR or \fBL\fR floating point
2573 constant suffixes.  (Traditional C does support the \fBL\fR suffix on integer
2574 constants.)  Note, these suffixes appear in macros defined in the system
2575 headers of most modern systems, e.g. the \fB_MIN\fR/\fB_MAX\fR macros in \f(CW\*(C`<limits.h>\*(C'\fR.
2576 Use of these macros in user code might normally lead to spurious
2577 warnings, however \s-1GCC\s0's integrated preprocessor has enough context to
2578 avoid warning in these cases.
2579 .IP "*" 4
2580 A function declared external in one block and then used after the end of
2581 the block.
2582 .IP "*" 4
2583 A \f(CW\*(C`switch\*(C'\fR statement has an operand of type \f(CW\*(C`long\*(C'\fR.
2584 .IP "*" 4
2585 A non\-\f(CW\*(C`static\*(C'\fR function declaration follows a \f(CW\*(C`static\*(C'\fR one.
2586 This construct is not accepted by some traditional C compilers.
2587 .IP "*" 4
2588 The \s-1ISO\s0 type of an integer constant has a different width or
2589 signedness from its traditional type.  This warning is only issued if
2590 the base of the constant is ten.  I.e. hexadecimal or octal values, which
2591 typically represent bit patterns, are not warned about.
2592 .IP "*" 4
2593 Usage of \s-1ISO\s0 string concatenation is detected.
2594 .IP "*" 4
2595 Initialization of automatic aggregates.
2596 .IP "*" 4
2597 Identifier conflicts with labels.  Traditional C lacks a separate
2598 namespace for labels.
2599 .IP "*" 4
2600 Initialization of unions.  If the initializer is zero, the warning is
2601 omitted.  This is done under the assumption that the zero initializer in
2602 user code appears conditioned on e.g. \f(CW\*(C`_\|_STDC_\|_\*(C'\fR to avoid missing
2603 initializer warnings and relies on default initialization to zero in the
2604 traditional C case.
2605 .IP "*" 4
2606 Conversions by prototypes between fixed/floating point values and vice
2607 versa.  The absence of these prototypes when compiling with traditional
2608 C would cause serious problems.  This is a subset of the possible
2609 conversion warnings, for the full set use \fB\-Wconversion\fR.
2610 .IP "*" 4
2611 Use of \s-1ISO\s0 C style function definitions.  This warning intentionally is
2612 \&\fInot\fR issued for prototype declarations or variadic functions
2613 because these \s-1ISO\s0 C features will appear in your code when using
2614 libiberty's traditional C compatibility macros, \f(CW\*(C`PARAMS\*(C'\fR and
2615 \&\f(CW\*(C`VPARAMS\*(C'\fR.  This warning is also bypassed for nested functions
2616 because that feature is already a \s-1GCC\s0 extension and thus not relevant to
2617 traditional C compatibility.
2618 .RE
2619 .RS 4
2620 .RE
2621 .IP "\fB\-Wdeclaration\-after\-statement\fR (C only)" 4
2622 .IX Item "-Wdeclaration-after-statement (C only)"
2623 Warn when a declaration is found after a statement in a block.  This
2624 construct, known from \*(C+, was introduced with \s-1ISO\s0 C99 and is by default
2625 allowed in \s-1GCC\s0.  It is not supported by \s-1ISO\s0 C90 and was not supported by
2626 \&\s-1GCC\s0 versions before \s-1GCC\s0 3.0.  
2627 .IP "\fB\-Wundef\fR" 4
2628 .IX Item "-Wundef"
2629 Warn if an undefined identifier is evaluated in an \fB#if\fR directive.
2630 .IP "\fB\-Wno\-endif\-labels\fR" 4
2631 .IX Item "-Wno-endif-labels"
2632 Do not warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
2633 .IP "\fB\-Wshadow\fR" 4
2634 .IX Item "-Wshadow"
2635 Warn whenever a local variable shadows another local variable, parameter or
2636 global variable or whenever a built-in function is shadowed.
2637 .IP "\fB\-Wlarger\-than\-\fR\fIlen\fR" 4
2638 .IX Item "-Wlarger-than-len"
2639 Warn whenever an object of larger than \fIlen\fR bytes is defined.
2640 .IP "\fB\-Wpointer\-arith\fR" 4
2641 .IX Item "-Wpointer-arith"
2642 Warn about anything that depends on the ``size of'' a function type or
2643 of \f(CW\*(C`void\*(C'\fR.  \s-1GNU\s0 C assigns these types a size of 1, for
2644 convenience in calculations with \f(CW\*(C`void *\*(C'\fR pointers and pointers
2645 to functions.
2646 .IP "\fB\-Wbad\-function\-cast\fR (C only)" 4
2647 .IX Item "-Wbad-function-cast (C only)"
2648 Warn whenever a function call is cast to a non-matching type.
2649 For example, warn if \f(CW\*(C`int malloc()\*(C'\fR is cast to \f(CW\*(C`anything *\*(C'\fR.
2650 .IP "\fB\-Wcast\-qual\fR" 4
2651 .IX Item "-Wcast-qual"
2652 Warn whenever a pointer is cast so as to remove a type qualifier from
2653 the target type.  For example, warn if a \f(CW\*(C`const char *\*(C'\fR is cast
2654 to an ordinary \f(CW\*(C`char *\*(C'\fR.
2655 .IP "\fB\-Wcast\-align\fR" 4
2656 .IX Item "-Wcast-align"
2657 Warn whenever a pointer is cast such that the required alignment of the
2658 target is increased.  For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
2659 an \f(CW\*(C`int *\*(C'\fR on machines where integers can only be accessed at
2660 two\- or four-byte boundaries.
2661 .IP "\fB\-Wwrite\-strings\fR" 4
2662 .IX Item "-Wwrite-strings"
2663 When compiling C, give string constants the type \f(CW\*(C`const
2664 char[\f(CIlength\f(CW]\*(C'\fR so that
2665 copying the address of one into a non\-\f(CW\*(C`const\*(C'\fR \f(CW\*(C`char *\*(C'\fR
2666 pointer will get a warning; when compiling \*(C+, warn about the
2667 deprecated conversion from string constants to \f(CW\*(C`char *\*(C'\fR.
2668 These warnings will help you find at
2669 compile time code that can try to write into a string constant, but
2670 only if you have been very careful about using \f(CW\*(C`const\*(C'\fR in
2671 declarations and prototypes.  Otherwise, it will just be a nuisance;
2672 this is why we did not make \fB\-Wall\fR request these warnings.
2673 .IP "\fB\-Wconversion\fR" 4
2674 .IX Item "-Wconversion"
2675 Warn if a prototype causes a type conversion that is different from what
2676 would happen to the same argument in the absence of a prototype.  This
2677 includes conversions of fixed point to floating and vice versa, and
2678 conversions changing the width or signedness of a fixed point argument
2679 except when the same as the default promotion.
2680 .Sp
2681 Also, warn if a negative integer constant expression is implicitly
2682 converted to an unsigned type.  For example, warn about the assignment
2683 \&\f(CW\*(C`x = \-1\*(C'\fR if \f(CW\*(C`x\*(C'\fR is unsigned.  But do not warn about explicit
2684 casts like \f(CW\*(C`(unsigned) \-1\*(C'\fR.
2685 .IP "\fB\-Wsign\-compare\fR" 4
2686 .IX Item "-Wsign-compare"
2687 Warn when a comparison between signed and unsigned values could produce
2688 an incorrect result when the signed value is converted to unsigned.
2689 This warning is also enabled by \fB\-Wextra\fR; to get the other warnings
2690 of \fB\-Wextra\fR without this warning, use \fB\-Wextra \-Wno\-sign\-compare\fR.
2691 .IP "\fB\-Waggregate\-return\fR" 4
2692 .IX Item "-Waggregate-return"
2693 Warn if any functions that return structures or unions are defined or
2694 called.  (In languages where you can return an array, this also elicits
2695 a warning.)
2696 .IP "\fB\-Wstrict\-prototypes\fR (C only)" 4
2697 .IX Item "-Wstrict-prototypes (C only)"
2698 Warn if a function is declared or defined without specifying the
2699 argument types.  (An old-style function definition is permitted without
2700 a warning if preceded by a declaration which specifies the argument
2701 types.)
2702 .IP "\fB\-Wold\-style\-definition\fR (C only)" 4
2703 .IX Item "-Wold-style-definition (C only)"
2704 Warn if an old-style function definition is used.  A warning is given
2705 even if there is a previous prototype.
2706 .IP "\fB\-Wmissing\-prototypes\fR (C only)" 4
2707 .IX Item "-Wmissing-prototypes (C only)"
2708 Warn if a global function is defined without a previous prototype
2709 declaration.  This warning is issued even if the definition itself
2710 provides a prototype.  The aim is to detect global functions that fail
2711 to be declared in header files.
2712 .IP "\fB\-Wmissing\-declarations\fR (C only)" 4
2713 .IX Item "-Wmissing-declarations (C only)"
2714 Warn if a global function is defined without a previous declaration.
2715 Do so even if the definition itself provides a prototype.
2716 Use this option to detect global functions that are not declared in
2717 header files.
2718 .IP "\fB\-Wmissing\-field\-initializers\fR" 4
2719 .IX Item "-Wmissing-field-initializers"
2720 Warn if a structure's initializer has some fields missing.  For
2721 example, the following code would cause such a warning, because
2722 \&\f(CW\*(C`x.h\*(C'\fR is implicitly zero:
2723 .Sp
2724 .Vb 2
2725 \&        struct s { int f, g, h; };
2726 \&        struct s x = { 3, 4 };
2727 .Ve
2728 .Sp
2729 This option does not warn about designated initializers, so the following
2730 modification would not trigger a warning:
2731 .Sp
2732 .Vb 2
2733 \&        struct s { int f, g, h; };
2734 \&        struct s x = { .f = 3, .g = 4 };
2735 .Ve
2736 .Sp
2737 This warning is included in \fB\-Wextra\fR.  To get other \fB\-Wextra\fR
2738 warnings without this one, use \fB\-Wextra \-Wno\-missing\-field\-initializers\fR.
2739 .IP "\fB\-Wmissing\-noreturn\fR" 4
2740 .IX Item "-Wmissing-noreturn"
2741 Warn about functions which might be candidates for attribute \f(CW\*(C`noreturn\*(C'\fR.
2742 Note these are only possible candidates, not absolute ones.  Care should
2743 be taken to manually verify functions actually do not ever return before
2744 adding the \f(CW\*(C`noreturn\*(C'\fR attribute, otherwise subtle code generation
2745 bugs could be introduced.  You will not get a warning for \f(CW\*(C`main\*(C'\fR in
2746 hosted C environments.
2747 .IP "\fB\-Wmissing\-format\-attribute\fR" 4
2748 .IX Item "-Wmissing-format-attribute"
2749 If \fB\-Wformat\fR is enabled, also warn about functions which might be
2750 candidates for \f(CW\*(C`format\*(C'\fR attributes.  Note these are only possible
2751 candidates, not absolute ones.  \s-1GCC\s0 will guess that \f(CW\*(C`format\*(C'\fR
2752 attributes might be appropriate for any function that calls a function
2753 like \f(CW\*(C`vprintf\*(C'\fR or \f(CW\*(C`vscanf\*(C'\fR, but this might not always be the
2754 case, and some functions for which \f(CW\*(C`format\*(C'\fR attributes are
2755 appropriate may not be detected.  This option has no effect unless
2756 \&\fB\-Wformat\fR is enabled (possibly by \fB\-Wall\fR).
2757 .IP "\fB\-Wno\-multichar\fR" 4
2758 .IX Item "-Wno-multichar"
2759 Do not warn if a multicharacter constant (\fB'\s-1FOOF\s0'\fR) is used.
2760 Usually they indicate a typo in the user's code, as they have
2761 implementation-defined values, and should not be used in portable code.
2762 .IP "\fB\-Wno\-deprecated\-declarations\fR" 4
2763 .IX Item "-Wno-deprecated-declarations"
2764 Do not warn about uses of functions, variables, and types marked as
2765 deprecated by using the \f(CW\*(C`deprecated\*(C'\fR attribute.
2766 (@pxref{Function Attributes}, \f(CW@pxref\fR{Variable Attributes},
2767 \&\f(CW@pxref\fR{Type Attributes}.)
2768 .IP "\fB\-Wpacked\fR" 4
2769 .IX Item "-Wpacked"
2770 Warn if a structure is given the packed attribute, but the packed
2771 attribute has no effect on the layout or size of the structure.
2772 Such structures may be mis-aligned for little benefit.  For
2773 instance, in this code, the variable \f(CW\*(C`f.x\*(C'\fR in \f(CW\*(C`struct bar\*(C'\fR
2774 will be misaligned even though \f(CW\*(C`struct bar\*(C'\fR does not itself
2775 have the packed attribute:
2776 .Sp
2777 .Vb 8
2778 \&        struct foo {
2779 \&          int x;
2780 \&          char a, b, c, d;
2781 \&        } __attribute__((packed));
2782 \&        struct bar {
2783 \&          char z;
2784 \&          struct foo f;
2785 \&        };
2786 .Ve
2787 .IP "\fB\-Wpadded\fR" 4
2788 .IX Item "-Wpadded"
2789 Warn if padding is included in a structure, either to align an element
2790 of the structure or to align the whole structure.  Sometimes when this
2791 happens it is possible to rearrange the fields of the structure to
2792 reduce the padding and so make the structure smaller.
2793 .IP "\fB\-Wredundant\-decls\fR" 4
2794 .IX Item "-Wredundant-decls"
2795 Warn if anything is declared more than once in the same scope, even in
2796 cases where multiple declaration is valid and changes nothing.
2797 .IP "\fB\-Wnested\-externs\fR (C only)" 4
2798 .IX Item "-Wnested-externs (C only)"
2799 Warn if an \f(CW\*(C`extern\*(C'\fR declaration is encountered within a function.
2800 .IP "\fB\-Wunreachable\-code\fR" 4
2801 .IX Item "-Wunreachable-code"
2802 Warn if the compiler detects that code will never be executed.
2803 .Sp
2804 This option is intended to warn when the compiler detects that at
2805 least a whole line of source code will never be executed, because
2806 some condition is never satisfied or because it is after a
2807 procedure that never returns.
2808 .Sp
2809 It is possible for this option to produce a warning even though there
2810 are circumstances under which part of the affected line can be executed,
2811 so care should be taken when removing apparently-unreachable code.
2812 .Sp
2813 For instance, when a function is inlined, a warning may mean that the
2814 line is unreachable in only one inlined copy of the function.
2815 .Sp
2816 This option is not made part of \fB\-Wall\fR because in a debugging
2817 version of a program there is often substantial code which checks
2818 correct functioning of the program and is, hopefully, unreachable
2819 because the program does work.  Another common use of unreachable
2820 code is to provide behavior which is selectable at compile\-time.
2821 .IP "\fB\-Winline\fR" 4
2822 .IX Item "-Winline"
2823 Warn if a function can not be inlined and it was declared as inline.
2824 Even with this option, the compiler will not warn about failures to
2825 inline functions declared in system headers.
2826 .Sp
2827 The compiler uses a variety of heuristics to determine whether or not
2828 to inline a function.  For example, the compiler takes into account
2829 the size of the function being inlined and the amount of inlining
2830 that has already been done in the current function.  Therefore,
2831 seemingly insignificant changes in the source program can cause the
2832 warnings produced by \fB\-Winline\fR to appear or disappear.
2833 .IP "\fB\-Wno\-invalid\-offsetof\fR (\*(C+ only)" 4
2834 .IX Item "-Wno-invalid-offsetof ( only)"
2835 Suppress warnings from applying the \fBoffsetof\fR macro to a non-POD
2836 type.  According to the 1998 \s-1ISO\s0 \*(C+ standard, applying \fBoffsetof\fR
2837 to a non-POD type is undefined.  In existing \*(C+ implementations,
2838 however, \fBoffsetof\fR typically gives meaningful results even when
2839 applied to certain kinds of non-POD types. (Such as a simple
2840 \&\fBstruct\fR that fails to be a \s-1POD\s0 type only by virtue of having a
2841 constructor.)  This flag is for users who are aware that they are
2842 writing nonportable code and who have deliberately chosen to ignore the
2843 warning about it.
2844 .Sp
2845 The restrictions on \fBoffsetof\fR may be relaxed in a future version
2846 of the \*(C+ standard.
2847 .IP "\fB\-Winvalid\-pch\fR" 4
2848 .IX Item "-Winvalid-pch"
2849 Warn if a precompiled header is found in
2850 the search path but can't be used.
2851 .IP "\fB\-Wlong\-long\fR" 4
2852 .IX Item "-Wlong-long"
2853 Warn if \fBlong long\fR type is used.  This is default.  To inhibit
2854 the warning messages, use \fB\-Wno\-long\-long\fR.  Flags
2855 \&\fB\-Wlong\-long\fR and \fB\-Wno\-long\-long\fR are taken into account
2856 only when \fB\-pedantic\fR flag is used.
2857 .IP "\fB\-Wvariadic\-macros\fR" 4
2858 .IX Item "-Wvariadic-macros"
2859 Warn if variadic macros are used in pedantic \s-1ISO\s0 C90 mode, or the \s-1GNU\s0
2860 alternate syntax when in pedantic \s-1ISO\s0 C99 mode.  This is default.
2861 To inhibit the warning messages, use \fB\-Wno\-variadic\-macros\fR.
2862 .IP "\fB\-Wdisabled\-optimization\fR" 4
2863 .IX Item "-Wdisabled-optimization"
2864 Warn if a requested optimization pass is disabled.  This warning does
2865 not generally indicate that there is anything wrong with your code; it
2866 merely indicates that \s-1GCC\s0's optimizers were unable to handle the code
2867 effectively.  Often, the problem is that your code is too big or too
2868 complex; \s-1GCC\s0 will refuse to optimize programs when the optimization
2869 itself is likely to take inordinate amounts of time.
2870 .IP "\fB\-Wno\-pointer\-sign\fR" 4
2871 .IX Item "-Wno-pointer-sign"
2872 Don't warn for pointer argument passing or assignment with different signedness.
2873 Only useful in the negative form since this warning is enabled by default.
2874 This option is only supported for C and Objective\-C.
2875 .IP "\fB\-Werror\fR" 4
2876 .IX Item "-Werror"
2877 Make all warnings into errors.
2878 .Sh "Options for Debugging Your Program or \s-1GCC\s0"
2879 .IX Subsection "Options for Debugging Your Program or GCC"
2880 \&\s-1GCC\s0 has various special options that are used for debugging
2881 either your program or \s-1GCC:\s0
2882 .IP "\fB\-g\fR" 4
2883 .IX Item "-g"
2884 Produce debugging information in the operating system's native format
2885 (stabs, \s-1COFF\s0, \s-1XCOFF\s0, or \s-1DWARF\s0 2).  \s-1GDB\s0 can work with this debugging
2886 information.
2887 .Sp
2888 On most systems that use stabs format, \fB\-g\fR enables use of extra
2889 debugging information that only \s-1GDB\s0 can use; this extra information
2890 makes debugging work better in \s-1GDB\s0 but will probably make other debuggers
2891 crash or
2892 refuse to read the program.  If you want to control for certain whether
2893 to generate the extra information, use \fB\-gstabs+\fR, \fB\-gstabs\fR,
2894 \&\fB\-gxcoff+\fR, \fB\-gxcoff\fR, or \fB\-gvms\fR (see below).
2895 .Sp
2896 \&\s-1GCC\s0 allows you to use \fB\-g\fR with
2897 \&\fB\-O\fR.  The shortcuts taken by optimized code may occasionally
2898 produce surprising results: some variables you declared may not exist
2899 at all; flow of control may briefly move where you did not expect it;
2900 some statements may not be executed because they compute constant
2901 results or their values were already at hand; some statements may
2902 execute in different places because they were moved out of loops.
2903 .Sp
2904 Nevertheless it proves possible to debug optimized output.  This makes
2905 it reasonable to use the optimizer for programs that might have bugs.
2906 .Sp
2907 The following options are useful when \s-1GCC\s0 is generated with the
2908 capability for more than one debugging format.
2909 .IP "\fB\-ggdb\fR" 4
2910 .IX Item "-ggdb"
2911 Produce debugging information for use by \s-1GDB\s0.  This means to use the
2912 most expressive format available (\s-1DWARF\s0 2, stabs, or the native format
2913 if neither of those are supported), including \s-1GDB\s0 extensions if at all
2914 possible.
2915 .IP "\fB\-gstabs\fR" 4
2916 .IX Item "-gstabs"
2917 Produce debugging information in stabs format (if that is supported),
2918 without \s-1GDB\s0 extensions.  This is the format used by \s-1DBX\s0 on most \s-1BSD\s0
2919 systems.  On \s-1MIPS\s0, Alpha and System V Release 4 systems this option
2920 produces stabs debugging output which is not understood by \s-1DBX\s0 or \s-1SDB\s0.
2921 On System V Release 4 systems this option requires the \s-1GNU\s0 assembler.
2922 .IP "\fB\-feliminate\-unused\-debug\-symbols\fR" 4
2923 .IX Item "-feliminate-unused-debug-symbols"
2924 Produce debugging information in stabs format (if that is supported),
2925 for only symbols that are actually used.
2926 .IP "\fB\-gstabs+\fR" 4
2927 .IX Item "-gstabs+"
2928 Produce debugging information in stabs format (if that is supported),
2929 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
2930 use of these extensions is likely to make other debuggers crash or
2931 refuse to read the program.
2932 .IP "\fB\-gcoff\fR" 4
2933 .IX Item "-gcoff"
2934 Produce debugging information in \s-1COFF\s0 format (if that is supported).
2935 This is the format used by \s-1SDB\s0 on most System V systems prior to
2936 System V Release 4.
2937 .IP "\fB\-gxcoff\fR" 4
2938 .IX Item "-gxcoff"
2939 Produce debugging information in \s-1XCOFF\s0 format (if that is supported).
2940 This is the format used by the \s-1DBX\s0 debugger on \s-1IBM\s0 \s-1RS/6000\s0 systems.
2941 .IP "\fB\-gxcoff+\fR" 4
2942 .IX Item "-gxcoff+"
2943 Produce debugging information in \s-1XCOFF\s0 format (if that is supported),
2944 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
2945 use of these extensions is likely to make other debuggers crash or
2946 refuse to read the program, and may cause assemblers other than the \s-1GNU\s0
2947 assembler (\s-1GAS\s0) to fail with an error.
2948 .IP "\fB\-gdwarf\-2\fR" 4
2949 .IX Item "-gdwarf-2"
2950 Produce debugging information in \s-1DWARF\s0 version 2 format (if that is
2951 supported).  This is the format used by \s-1DBX\s0 on \s-1IRIX\s0 6.  With this
2952 option, \s-1GCC\s0 uses features of \s-1DWARF\s0 version 3 when they are useful;
2953 version 3 is upward compatible with version 2, but may still cause
2954 problems for older debuggers.
2955 .IP "\fB\-gvms\fR" 4
2956 .IX Item "-gvms"
2957 Produce debugging information in \s-1VMS\s0 debug format (if that is
2958 supported).  This is the format used by \s-1DEBUG\s0 on \s-1VMS\s0 systems.
2959 .IP "\fB\-g\fR\fIlevel\fR" 4
2960 .IX Item "-glevel"
2961 .PD 0
2962 .IP "\fB\-ggdb\fR\fIlevel\fR" 4
2963 .IX Item "-ggdblevel"
2964 .IP "\fB\-gstabs\fR\fIlevel\fR" 4
2965 .IX Item "-gstabslevel"
2966 .IP "\fB\-gcoff\fR\fIlevel\fR" 4
2967 .IX Item "-gcofflevel"
2968 .IP "\fB\-gxcoff\fR\fIlevel\fR" 4
2969 .IX Item "-gxcofflevel"
2970 .IP "\fB\-gvms\fR\fIlevel\fR" 4
2971 .IX Item "-gvmslevel"
2972 .PD
2973 Request debugging information and also use \fIlevel\fR to specify how
2974 much information.  The default level is 2.
2975 .Sp
2976 Level 1 produces minimal information, enough for making backtraces in
2977 parts of the program that you don't plan to debug.  This includes
2978 descriptions of functions and external variables, but no information
2979 about local variables and no line numbers.
2980 .Sp
2981 Level 3 includes extra information, such as all the macro definitions
2982 present in the program.  Some debuggers support macro expansion when
2983 you use \fB\-g3\fR.
2984 .Sp
2985 \&\fB\-gdwarf\-2\fR does not accept a concatenated debug level, because
2986 \&\s-1GCC\s0 used to support an option \fB\-gdwarf\fR that meant to generate
2987 debug information in version 1 of the \s-1DWARF\s0 format (which is very
2988 different from version 2), and it would have been too confusing.  That
2989 debug format is long obsolete, but the option cannot be changed now.
2990 Instead use an additional \fB\-g\fR\fIlevel\fR option to change the
2991 debug level for \s-1DWARF2\s0.
2992 .IP "\fB\-feliminate\-dwarf2\-dups\fR" 4
2993 .IX Item "-feliminate-dwarf2-dups"
2994 Compress \s-1DWARF2\s0 debugging information by eliminating duplicated
2995 information about each symbol.  This option only makes sense when
2996 generating \s-1DWARF2\s0 debugging information with \fB\-gdwarf\-2\fR.
2997 .IP "\fB\-p\fR" 4
2998 .IX Item "-p"
2999 Generate extra code to write profile information suitable for the
3000 analysis program \fBprof\fR.  You must use this option when compiling
3001 the source files you want data about, and you must also use it when
3002 linking.
3003 .IP "\fB\-pg\fR" 4
3004 .IX Item "-pg"
3005 Generate extra code to write profile information suitable for the
3006 analysis program \fBgprof\fR.  You must use this option when compiling
3007 the source files you want data about, and you must also use it when
3008 linking.
3009 .IP "\fB\-Q\fR" 4
3010 .IX Item "-Q"
3011 Makes the compiler print out each function name as it is compiled, and
3012 print some statistics about each pass when it finishes.
3013 .IP "\fB\-ftime\-report\fR" 4
3014 .IX Item "-ftime-report"
3015 Makes the compiler print some statistics about the time consumed by each
3016 pass when it finishes.
3017 .IP "\fB\-fmem\-report\fR" 4
3018 .IX Item "-fmem-report"
3019 Makes the compiler print some statistics about permanent memory
3020 allocation when it finishes.
3021 .IP "\fB\-fprofile\-arcs\fR" 4
3022 .IX Item "-fprofile-arcs"
3023 Add code so that program flow \fIarcs\fR are instrumented.  During
3024 execution the program records how many times each branch and call is
3025 executed and how many times it is taken or returns.  When the compiled
3026 program exits it saves this data to a file called
3027 \&\fI\fIauxname\fI.gcda\fR for each source file.  The data may be used for
3028 profile-directed optimizations (\fB\-fbranch\-probabilities\fR), or for
3029 test coverage analysis (\fB\-ftest\-coverage\fR).  Each object file's
3030 \&\fIauxname\fR is generated from the name of the output file, if
3031 explicitly specified and it is not the final executable, otherwise it is
3032 the basename of the source file.  In both cases any suffix is removed
3033 (e.g. \fIfoo.gcda\fR for input file \fIdir/foo.c\fR, or
3034 \&\fIdir/foo.gcda\fR for output file specified as \fB\-o dir/foo.o\fR).
3035 .RS 4
3036 .IP "@bullet" 4
3037 .IX Item "@bullet"
3038 Compile the source files with \fB\-fprofile\-arcs\fR plus optimization
3039 and code generation options.  For test coverage analysis, use the
3040 additional \fB\-ftest\-coverage\fR option.  You do not need to profile
3041 every source file in a program.
3042 .IP "@cvmmfu" 4
3043 .IX Item "@cvmmfu"
3044 Link your object files with \fB\-lgcov\fR or \fB\-fprofile\-arcs\fR
3045 (the latter implies the former).
3046 .IP "@dwnngv" 4
3047 .IX Item "@dwnngv"
3048 Run the program on a representative workload to generate the arc profile
3049 information.  This may be repeated any number of times.  You can run
3050 concurrent instances of your program, and provided that the file system
3051 supports locking, the data files will be correctly updated.  Also
3052 \&\f(CW\*(C`fork\*(C'\fR calls are detected and correctly handled (double counting
3053 will not happen).
3054 .IP "@exoohw" 4
3055 .IX Item "@exoohw"
3056 For profile-directed optimizations, compile the source files again with
3057 the same optimization and code generation options plus
3058 \&\fB\-fbranch\-probabilities\fR.
3059 .IP "@fyppix" 4
3060 .IX Item "@fyppix"
3061 For test coverage analysis, use \fBgcov\fR to produce human readable
3062 information from the \fI.gcno\fR and \fI.gcda\fR files.  Refer to the
3063 \&\fBgcov\fR documentation for further information.
3064 .RE
3065 .RS 4
3066 .Sp
3067 With \fB\-fprofile\-arcs\fR, for each function of your program \s-1GCC\s0
3068 creates a program flow graph, then finds a spanning tree for the graph.
3069 Only arcs that are not on the spanning tree have to be instrumented: the
3070 compiler adds code to count the number of times that these arcs are
3071 executed.  When an arc is the only exit or only entrance to a block, the
3072 instrumentation code can be added to the block; otherwise, a new basic
3073 block must be created to hold the instrumentation code.
3074 .RE
3075 .IP "\fB\-ftree\-based\-profiling\fR" 4
3076 .IX Item "-ftree-based-profiling"
3077 This option is used in addition to \fB\-fprofile\-arcs\fR or
3078 \&\fB\-fbranch\-probabilities\fR to control whether those optimizations
3079 are performed on a tree-based or rtl-based internal representation.
3080 If you use this option when compiling with \fB\-fprofile\-arcs\fR,
3081 you must also use it when compiling later with \fB\-fbranch\-probabilities\fR.
3082 Currently the tree-based optimization is in an early stage of
3083 development, and this option is recommended only for those people
3084 working on improving it.
3085 .IP "\fB\-ftest\-coverage\fR" 4
3086 .IX Item "-ftest-coverage"
3087 Produce a notes file that the \fBgcov\fR code-coverage utility can use to
3088 show program coverage.  Each source file's note file is called
3089 \&\fI\fIauxname\fI.gcno\fR.  Refer to the \fB\-fprofile\-arcs\fR option
3090 above for a description of \fIauxname\fR and instructions on how to
3091 generate test coverage data.  Coverage data will match the source files
3092 more closely, if you do not optimize.
3093 .IP "\fB\-d\fR\fIletters\fR" 4
3094 .IX Item "-dletters"
3095 .PD 0
3096 .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR" 4
3097 .IX Item "-fdump-rtl-pass"
3098 .PD
3099 Says to make debugging dumps during compilation at times specified by
3100 \&\fIletters\fR.    This is used for debugging the RTL-based passes of the
3101 compiler.  The file names for most of the dumps are made by appending a
3102 pass number and a word to the \fIdumpname\fR.  \fIdumpname\fR is generated
3103 from the name of the output file, if explicitly specified and it is not
3104 an executable, otherwise it is the basename of the source file.
3105 .Sp
3106 Most debug dumps can be enabled either passing a letter to the \fB\-d\fR
3107 option, or with a long \fB\-fdump\-rtl\fR switch; here are the possible
3108 letters for use in \fIletters\fR and \fIpass\fR, and their meanings:
3109 .RS 4
3110 .IP "\fB\-dA\fR" 4
3111 .IX Item "-dA"
3112 Annotate the assembler output with miscellaneous debugging information.
3113 .IP "\fB\-db\fR" 4
3114 .IX Item "-db"
3115 .PD 0
3116 .IP "\fB\-fdump\-rtl\-bp\fR" 4
3117 .IX Item "-fdump-rtl-bp"
3118 .PD
3119 Dump after computing branch probabilities, to \fI\fIfile\fI.09.bp\fR.
3120 .IP "\fB\-dB\fR" 4
3121 .IX Item "-dB"
3122 .PD 0
3123 .IP "\fB\-fdump\-rtl\-bbro\fR" 4
3124 .IX Item "-fdump-rtl-bbro"
3125 .PD
3126 Dump after block reordering, to \fI\fIfile\fI.30.bbro\fR.
3127 .IP "\fB\-dc\fR" 4
3128 .IX Item "-dc"
3129 .PD 0
3130 .IP "\fB\-fdump\-rtl\-combine\fR" 4
3131 .IX Item "-fdump-rtl-combine"
3132 .PD
3133 Dump after instruction combination, to the file \fI\fIfile\fI.17.combine\fR.
3134 .IP "\fB\-dC\fR" 4
3135 .IX Item "-dC"
3136 .PD 0
3137 .IP "\fB\-fdump\-rtl\-ce1\fR" 4
3138 .IX Item "-fdump-rtl-ce1"
3139 .IP "\fB\-fdump\-rtl\-ce2\fR" 4
3140 .IX Item "-fdump-rtl-ce2"
3141 .PD
3142 \&\fB\-dC\fR and \fB\-fdump\-rtl\-ce1\fR enable dumping after the
3143 first if conversion, to the file \fI\fIfile\fI.11.ce1\fR.  \fB\-dC\fR
3144 and \fB\-fdump\-rtl\-ce2\fR enable dumping after the second if
3145 conversion, to the file \fI\fIfile\fI.18.ce2\fR.
3146 .IP "\fB\-dd\fR" 4
3147 .IX Item "-dd"
3148 .PD 0
3149 .IP "\fB\-fdump\-rtl\-btl\fR" 4
3150 .IX Item "-fdump-rtl-btl"
3151 .IP "\fB\-fdump\-rtl\-dbr\fR" 4
3152 .IX Item "-fdump-rtl-dbr"
3153 .PD
3154 \&\fB\-dd\fR and \fB\-fdump\-rtl\-btl\fR enable dumping after branch
3155 target load optimization, to \fI\fIfile\fI.31.btl\fR.  \fB\-dd\fR
3156 and \fB\-fdump\-rtl\-dbr\fR enable dumping after delayed branch
3157 scheduling, to \fI\fIfile\fI.36.dbr\fR.
3158 .IP "\fB\-dD\fR" 4
3159 .IX Item "-dD"
3160 Dump all macro definitions, at the end of preprocessing, in addition to
3161 normal output.
3162 .IP "\fB\-dE\fR" 4
3163 .IX Item "-dE"
3164 .PD 0
3165 .IP "\fB\-fdump\-rtl\-ce3\fR" 4
3166 .IX Item "-fdump-rtl-ce3"
3167 .PD
3168 Dump after the third if conversion, to \fI\fIfile\fI.28.ce3\fR.
3169 .IP "\fB\-df\fR" 4
3170 .IX Item "-df"
3171 .PD 0
3172 .IP "\fB\-fdump\-rtl\-cfg\fR" 4
3173 .IX Item "-fdump-rtl-cfg"
3174 .IP "\fB\-fdump\-rtl\-life\fR" 4
3175 .IX Item "-fdump-rtl-life"
3176 .PD
3177 \&\fB\-df\fR and \fB\-fdump\-rtl\-cfg\fR enable dumping after control
3178 and data flow analysis, to \fI\fIfile\fI.08.cfg\fR.  \fB\-df\fR
3179 and \fB\-fdump\-rtl\-cfg\fR enable dumping dump after life analysis,
3180 to \fI\fIfile\fI.16.life\fR.
3181 .IP "\fB\-dg\fR" 4
3182 .IX Item "-dg"
3183 .PD 0
3184 .IP "\fB\-fdump\-rtl\-greg\fR" 4
3185 .IX Item "-fdump-rtl-greg"
3186 .PD
3187 Dump after global register allocation, to \fI\fIfile\fI.23.greg\fR.
3188 .IP "\fB\-dG\fR" 4
3189 .IX Item "-dG"
3190 .PD 0
3191 .IP "\fB\-fdump\-rtl\-gcse\fR" 4
3192 .IX Item "-fdump-rtl-gcse"
3193 .IP "\fB\-fdump\-rtl\-bypass\fR" 4
3194 .IX Item "-fdump-rtl-bypass"
3195 .PD
3196 \&\fB\-dG\fR and \fB\-fdump\-rtl\-gcse\fR enable dumping after \s-1GCSE\s0, to
3197 \&\fI\fIfile\fI.05.gcse\fR.  \fB\-dG\fR and \fB\-fdump\-rtl\-bypass\fR
3198 enable dumping after jump bypassing and control flow optimizations, to
3199 \&\fI\fIfile\fI.07.bypass\fR.
3200 .IP "\fB\-dh\fR" 4
3201 .IX Item "-dh"
3202 .PD 0
3203 .IP "\fB\-fdump\-rtl\-eh\fR" 4
3204 .IX Item "-fdump-rtl-eh"
3205 .PD
3206 Dump after finalization of \s-1EH\s0 handling code, to \fI\fIfile\fI.02.eh\fR.
3207 .IP "\fB\-di\fR" 4
3208 .IX Item "-di"
3209 .PD 0
3210 .IP "\fB\-fdump\-rtl\-sibling\fR" 4
3211 .IX Item "-fdump-rtl-sibling"
3212 .PD
3213 Dump after sibling call optimizations, to \fI\fIfile\fI.01.sibling\fR.
3214 .IP "\fB\-dj\fR" 4
3215 .IX Item "-dj"
3216 .PD 0
3217 .IP "\fB\-fdump\-rtl\-jump\fR" 4
3218 .IX Item "-fdump-rtl-jump"
3219 .PD
3220 Dump after the first jump optimization, to \fI\fIfile\fI.03.jump\fR.
3221 .IP "\fB\-dk\fR" 4
3222 .IX Item "-dk"
3223 .PD 0
3224 .IP "\fB\-fdump\-rtl\-stack\fR" 4
3225 .IX Item "-fdump-rtl-stack"
3226 .PD
3227 Dump after conversion from registers to stack, to \fI\fIfile\fI.33.stack\fR.
3228 .IP "\fB\-dl\fR" 4
3229 .IX Item "-dl"
3230 .PD 0
3231 .IP "\fB\-fdump\-rtl\-lreg\fR" 4
3232 .IX Item "-fdump-rtl-lreg"
3233 .PD
3234 Dump after local register allocation, to \fI\fIfile\fI.22.lreg\fR.
3235 .IP "\fB\-dL\fR" 4
3236 .IX Item "-dL"
3237 .PD 0
3238 .IP "\fB\-fdump\-rtl\-loop\fR" 4
3239 .IX Item "-fdump-rtl-loop"
3240 .IP "\fB\-fdump\-rtl\-loop2\fR" 4
3241 .IX Item "-fdump-rtl-loop2"
3242 .PD
3243 \&\fB\-dL\fR and \fB\-fdump\-rtl\-loop\fR enable dumping after the first
3244 loop optimization pass, to \fI\fIfile\fI.06.loop\fR.  \fB\-dL\fR and
3245 \&\fB\-fdump\-rtl\-loop2\fR enable dumping after the second pass, to
3246 \&\fI\fIfile\fI.13.loop2\fR.
3247 .IP "\fB\-dm\fR" 4
3248 .IX Item "-dm"
3249 .PD 0
3250 .IP "\fB\-fdump\-rtl\-sms\fR" 4
3251 .IX Item "-fdump-rtl-sms"
3252 .PD
3253 Dump after modulo scheduling, to \fI\fIfile\fI.20.sms\fR.
3254 .IP "\fB\-dM\fR" 4
3255 .IX Item "-dM"
3256 .PD 0
3257 .IP "\fB\-fdump\-rtl\-mach\fR" 4
3258 .IX Item "-fdump-rtl-mach"
3259 .PD
3260 Dump after performing the machine dependent reorganization pass, to
3261 \&\fI\fIfile\fI.35.mach\fR.
3262 .IP "\fB\-dn\fR" 4
3263 .IX Item "-dn"
3264 .PD 0
3265 .IP "\fB\-fdump\-rtl\-rnreg\fR" 4
3266 .IX Item "-fdump-rtl-rnreg"
3267 .PD
3268 Dump after register renumbering, to \fI\fIfile\fI.29.rnreg\fR.
3269 .IP "\fB\-dN\fR" 4
3270 .IX Item "-dN"
3271 .PD 0
3272 .IP "\fB\-fdump\-rtl\-regmove\fR" 4
3273 .IX Item "-fdump-rtl-regmove"
3274 .PD
3275 Dump after the register move pass, to \fI\fIfile\fI.19.regmove\fR.
3276 .IP "\fB\-do\fR" 4
3277 .IX Item "-do"
3278 .PD 0
3279 .IP "\fB\-fdump\-rtl\-postreload\fR" 4
3280 .IX Item "-fdump-rtl-postreload"
3281 .PD
3282 Dump after post-reload optimizations, to \fI\fIfile\fI.24.postreload\fR.
3283 .IP "\fB\-dr\fR" 4
3284 .IX Item "-dr"
3285 .PD 0
3286 .IP "\fB\-fdump\-rtl\-expand\fR" 4
3287 .IX Item "-fdump-rtl-expand"
3288 .PD
3289 Dump after \s-1RTL\s0 generation, to \fI\fIfile\fI.00.expand\fR.
3290 .IP "\fB\-dR\fR" 4
3291 .IX Item "-dR"
3292 .PD 0
3293 .IP "\fB\-fdump\-rtl\-sched2\fR" 4
3294 .IX Item "-fdump-rtl-sched2"
3295 .PD
3296 Dump after the second scheduling pass, to \fI\fIfile\fI.32.sched2\fR.
3297 .IP "\fB\-ds\fR" 4
3298 .IX Item "-ds"
3299 .PD 0
3300 .IP "\fB\-fdump\-rtl\-cse\fR" 4
3301 .IX Item "-fdump-rtl-cse"
3302 .PD
3303 Dump after \s-1CSE\s0 (including the jump optimization that sometimes follows
3304 \&\s-1CSE\s0), to \fI\fIfile\fI.04.cse\fR.
3305 .IP "\fB\-dS\fR" 4
3306 .IX Item "-dS"
3307 .PD 0
3308 .IP "\fB\-fdump\-rtl\-sched\fR" 4
3309 .IX Item "-fdump-rtl-sched"
3310 .PD
3311 Dump after the first scheduling pass, to \fI\fIfile\fI.21.sched\fR.
3312 .IP "\fB\-dt\fR" 4
3313 .IX Item "-dt"
3314 .PD 0
3315 .IP "\fB\-fdump\-rtl\-cse2\fR" 4
3316 .IX Item "-fdump-rtl-cse2"
3317 .PD
3318 Dump after the second \s-1CSE\s0 pass (including the jump optimization that
3319 sometimes follows \s-1CSE\s0), to \fI\fIfile\fI.15.cse2\fR.
3320 .IP "\fB\-dT\fR" 4
3321 .IX Item "-dT"
3322 .PD 0
3323 .IP "\fB\-fdump\-rtl\-tracer\fR" 4
3324 .IX Item "-fdump-rtl-tracer"
3325 .PD
3326 Dump after running tracer, to \fI\fIfile\fI.12.tracer\fR.
3327 .IP "\fB\-dV\fR" 4
3328 .IX Item "-dV"
3329 .PD 0
3330 .IP "\fB\-fdump\-rtl\-vpt\fR" 4
3331 .IX Item "-fdump-rtl-vpt"
3332 .IP "\fB\-fdump\-rtl\-vartrack\fR" 4
3333 .IX Item "-fdump-rtl-vartrack"
3334 .PD
3335 \&\fB\-dV\fR and \fB\-fdump\-rtl\-vpt\fR enable dumping after the value
3336 profile transformations, to \fI\fIfile\fI.10.vpt\fR.  \fB\-dV\fR
3337 and \fB\-fdump\-rtl\-vartrack\fR enable dumping after variable tracking,
3338 to \fI\fIfile\fI.34.vartrack\fR.
3339 .IP "\fB\-dw\fR" 4
3340 .IX Item "-dw"
3341 .PD 0
3342 .IP "\fB\-fdump\-rtl\-flow2\fR" 4
3343 .IX Item "-fdump-rtl-flow2"
3344 .PD
3345 Dump after the second flow pass, to \fI\fIfile\fI.26.flow2\fR.
3346 .IP "\fB\-dz\fR" 4
3347 .IX Item "-dz"
3348 .PD 0
3349 .IP "\fB\-fdump\-rtl\-peephole2\fR" 4
3350 .IX Item "-fdump-rtl-peephole2"
3351 .PD
3352 Dump after the peephole pass, to \fI\fIfile\fI.27.peephole2\fR.
3353 .IP "\fB\-dZ\fR" 4
3354 .IX Item "-dZ"
3355 .PD 0
3356 .IP "\fB\-fdump\-rtl\-web\fR" 4
3357 .IX Item "-fdump-rtl-web"
3358 .PD
3359 Dump after live range splitting, to \fI\fIfile\fI.14.web\fR.
3360 .IP "\fB\-da\fR" 4
3361 .IX Item "-da"
3362 .PD 0
3363 .IP "\fB\-fdump\-rtl\-all\fR" 4
3364 .IX Item "-fdump-rtl-all"
3365 .PD
3366 Produce all the dumps listed above.
3367 .IP "\fB\-dH\fR" 4
3368 .IX Item "-dH"
3369 Produce a core dump whenever an error occurs.
3370 .IP "\fB\-dm\fR" 4
3371 .IX Item "-dm"
3372 Print statistics on memory usage, at the end of the run, to
3373 standard error.
3374 .IP "\fB\-dp\fR" 4
3375 .IX Item "-dp"
3376 Annotate the assembler output with a comment indicating which
3377 pattern and alternative was used.  The length of each instruction is
3378 also printed.
3379 .IP "\fB\-dP\fR" 4
3380 .IX Item "-dP"
3381 Dump the \s-1RTL\s0 in the assembler output as a comment before each instruction.
3382 Also turns on \fB\-dp\fR annotation.
3383 .IP "\fB\-dv\fR" 4
3384 .IX Item "-dv"
3385 For each of the other indicated dump files (either with \fB\-d\fR or
3386 \&\fB\-fdump\-rtl\-\fR\fIpass\fR), dump a representation of the control flow
3387 graph suitable for viewing with \s-1VCG\s0 to \fI\fIfile\fI.\fIpass\fI.vcg\fR.
3388 .IP "\fB\-dx\fR" 4
3389 .IX Item "-dx"
3390 Just generate \s-1RTL\s0 for a function instead of compiling it.  Usually used
3391 with \fBr\fR (\fB\-fdump\-rtl\-expand\fR).
3392 .IP "\fB\-dy\fR" 4
3393 .IX Item "-dy"
3394 Dump debugging information during parsing, to standard error.
3395 .RE
3396 .RS 4
3397 .RE
3398 .IP "\fB\-fdump\-unnumbered\fR" 4
3399 .IX Item "-fdump-unnumbered"
3400 When doing debugging dumps (see \fB\-d\fR option above), suppress instruction
3401 numbers and line number note output.  This makes it more feasible to
3402 use diff on debugging dumps for compiler invocations with different
3403 options, in particular with and without \fB\-g\fR.
3404 .IP "\fB\-fdump\-translation\-unit\fR (C and \*(C+ only)" 4
3405 .IX Item "-fdump-translation-unit (C and  only)"
3406 .PD 0
3407 .IP "\fB\-fdump\-translation\-unit\-\fR\fIoptions\fR\fB \fR(C and \*(C+ only)" 4
3408 .IX Item "-fdump-translation-unit-options (C and  only)"
3409 .PD
3410 Dump a representation of the tree structure for the entire translation
3411 unit to a file.  The file name is made by appending \fI.tu\fR to the
3412 source file name.  If the \fB\-\fR\fIoptions\fR form is used, \fIoptions\fR
3413 controls the details of the dump as described for the
3414 \&\fB\-fdump\-tree\fR options.
3415 .IP "\fB\-fdump\-class\-hierarchy\fR (\*(C+ only)" 4
3416 .IX Item "-fdump-class-hierarchy ( only)"
3417 .PD 0
3418 .IP "\fB\-fdump\-class\-hierarchy\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
3419 .IX Item "-fdump-class-hierarchy-options ( only)"
3420 .PD
3421 Dump a representation of each class's hierarchy and virtual function
3422 table layout to a file.  The file name is made by appending \fI.class\fR
3423 to the source file name.  If the \fB\-\fR\fIoptions\fR form is used,
3424 \&\fIoptions\fR controls the details of the dump as described for the
3425 \&\fB\-fdump\-tree\fR options.
3426 .IP "\fB\-fdump\-ipa\-\fR\fIswitch\fR" 4
3427 .IX Item "-fdump-ipa-switch"
3428 Control the dumping at various stages of inter-procedural analysis
3429 language tree to a file.  The file name is generated by appending a switch
3430 specific suffix to the source file name.  The following dumps are possible:
3431 .RS 4
3432 .IP "\fBall\fR" 4
3433 .IX Item "all"
3434 Enables all inter-procedural analysis dumps; currently the only produced
3435 dump is the \fBcgraph\fR dump.
3436 .IP "\fBcgraph\fR" 4
3437 .IX Item "cgraph"
3438 Dumps information about call-graph optimization, unused function removal,
3439 and inlining decisions.
3440 .RE
3441 .RS 4
3442 .RE
3443 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB \fR(C and \*(C+ only)" 4
3444 .IX Item "-fdump-tree-switch (C and  only)"
3445 .PD 0
3446 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB \fR(C and \*(C+ only)" 4
3447 .IX Item "-fdump-tree-switch-options (C and  only)"
3448 .PD
3449 Control the dumping at various stages of processing the intermediate
3450 language tree to a file.  The file name is generated by appending a switch
3451 specific suffix to the source file name.  If the \fB\-\fR\fIoptions\fR
3452 form is used, \fIoptions\fR is a list of \fB\-\fR separated options that
3453 control the details of the dump.  Not all options are applicable to all
3454 dumps, those which are not meaningful will be ignored.  The following
3455 options are available
3456 .RS 4
3457 .IP "\fBaddress\fR" 4
3458 .IX Item "address"
3459 Print the address of each node.  Usually this is not meaningful as it
3460 changes according to the environment and source file.  Its primary use
3461 is for tying up a dump file with a debug environment.
3462 .IP "\fBslim\fR" 4
3463 .IX Item "slim"
3464 Inhibit dumping of members of a scope or body of a function merely
3465 because that scope has been reached.  Only dump such items when they
3466 are directly reachable by some other path.  When dumping pretty-printed
3467 trees, this option inhibits dumping the bodies of control structures.
3468 .IP "\fBraw\fR" 4
3469 .IX Item "raw"
3470 Print a raw representation of the tree.  By default, trees are
3471 pretty-printed into a C\-like representation.
3472 .IP "\fBdetails\fR" 4
3473 .IX Item "details"
3474 Enable more detailed dumps (not honored by every dump option).
3475 .IP "\fBstats\fR" 4
3476 .IX Item "stats"
3477 Enable dumping various statistics about the pass (not honored by every dump
3478 option).
3479 .IP "\fBblocks\fR" 4
3480 .IX Item "blocks"
3481 Enable showing basic block boundaries (disabled in raw dumps).
3482 .IP "\fBvops\fR" 4
3483 .IX Item "vops"
3484 Enable showing virtual operands for every statement.
3485 .IP "\fBlineno\fR" 4
3486 .IX Item "lineno"
3487 Enable showing line numbers for statements.
3488 .IP "\fBuid\fR" 4
3489 .IX Item "uid"
3490 Enable showing the unique \s-1ID\s0 (\f(CW\*(C`DECL_UID\*(C'\fR) for each variable.
3491 .IP "\fBall\fR" 4
3492 .IX Item "all"
3493 Turn on all options, except \fBraw\fR, \fBslim\fR and \fBlineno\fR.
3494 .RE
3495 .RS 4
3496 .Sp
3497 The following tree dumps are possible:
3498 .IP "\fBoriginal\fR" 4
3499 .IX Item "original"
3500 Dump before any tree based optimization, to \fI\fIfile\fI.original\fR.
3501 .IP "\fBoptimized\fR" 4
3502 .IX Item "optimized"
3503 Dump after all tree based optimization, to \fI\fIfile\fI.optimized\fR.
3504 .IP "\fBinlined\fR" 4
3505 .IX Item "inlined"
3506 Dump after function inlining, to \fI\fIfile\fI.inlined\fR.
3507 .IP "\fBgimple\fR" 4
3508 .IX Item "gimple"
3509 Dump each function before and after the gimplification pass to a file.  The
3510 file name is made by appending \fI.gimple\fR to the source file name.
3511 .IP "\fBcfg\fR" 4
3512 .IX Item "cfg"
3513 Dump the control flow graph of each function to a file.  The file name is
3514 made by appending \fI.cfg\fR to the source file name.
3515 .IP "\fBvcg\fR" 4
3516 .IX Item "vcg"
3517 Dump the control flow graph of each function to a file in \s-1VCG\s0 format.  The
3518 file name is made by appending \fI.vcg\fR to the source file name.  Note
3519 that if the file contains more than one function, the generated file cannot
3520 be used directly by \s-1VCG\s0.  You will need to cut and paste each function's
3521 graph into its own separate file first.
3522 .IP "\fBch\fR" 4
3523 .IX Item "ch"
3524 Dump each function after copying loop headers.  The file name is made by
3525 appending \fI.ch\fR to the source file name.
3526 .IP "\fBssa\fR" 4
3527 .IX Item "ssa"
3528 Dump \s-1SSA\s0 related information to a file.  The file name is made by appending
3529 \&\fI.ssa\fR to the source file name.
3530 .IP "\fBalias\fR" 4
3531 .IX Item "alias"
3532 Dump aliasing information for each function.  The file name is made by
3533 appending \fI.alias\fR to the source file name.
3534 .IP "\fBccp\fR" 4
3535 .IX Item "ccp"
3536 Dump each function after \s-1CCP\s0.  The file name is made by appending
3537 \&\fI.ccp\fR to the source file name.
3538 .IP "\fBpre\fR" 4
3539 .IX Item "pre"
3540 Dump trees after partial redundancy elimination.  The file name is made
3541 by appending \fI.pre\fR to the source file name.
3542 .IP "\fBfre\fR" 4
3543 .IX Item "fre"
3544 Dump trees after full redundancy elimination.  The file name is made
3545 by appending \fI.fre\fR to the source file name.
3546 .IP "\fBdce\fR" 4
3547 .IX Item "dce"
3548 Dump each function after dead code elimination.  The file name is made by
3549 appending \fI.dce\fR to the source file name.
3550 .IP "\fBmudflap\fR" 4
3551 .IX Item "mudflap"
3552 Dump each function after adding mudflap instrumentation.  The file name is
3553 made by appending \fI.mudflap\fR to the source file name.
3554 .IP "\fBsra\fR" 4
3555 .IX Item "sra"
3556 Dump each function after performing scalar replacement of aggregates.  The
3557 file name is made by appending \fI.sra\fR to the source file name.
3558 .IP "\fBdom\fR" 4
3559 .IX Item "dom"
3560 Dump each function after applying dominator tree optimizations.  The file
3561 name is made by appending \fI.dom\fR to the source file name.
3562 .IP "\fBdse\fR" 4
3563 .IX Item "dse"
3564 Dump each function after applying dead store elimination.  The file
3565 name is made by appending \fI.dse\fR to the source file name.
3566 .IP "\fBphiopt\fR" 4
3567 .IX Item "phiopt"
3568 Dump each function after optimizing \s-1PHI\s0 nodes into straightline code.  The file
3569 name is made by appending \fI.phiopt\fR to the source file name.
3570 .IP "\fBforwprop\fR" 4
3571 .IX Item "forwprop"
3572 Dump each function after forward propagating single use variables.  The file
3573 name is made by appending \fI.forwprop\fR to the source file name.
3574 .IP "\fBcopyrename\fR" 4
3575 .IX Item "copyrename"
3576 Dump each function after applying the copy rename optimization.  The file
3577 name is made by appending \fI.copyrename\fR to the source file name.
3578 .IP "\fBnrv\fR" 4
3579 .IX Item "nrv"
3580 Dump each function after applying the named return value optimization on
3581 generic trees.  The file name is made by appending \fI.nrv\fR to the source
3582 file name.
3583 .IP "\fBvect\fR" 4
3584 .IX Item "vect"
3585 Dump each function after applying vectorization of loops.  The file name is
3586 made by appending \fI.vect\fR to the source file name.
3587 .IP "\fBall\fR" 4
3588 .IX Item "all"
3589 Enable all the available tree dumps with the flags provided in this option.
3590 .RE
3591 .RS 4
3592 .RE
3593 .IP "\fB\-ftree\-vectorizer\-verbose=\fR\fIn\fR" 4
3594 .IX Item "-ftree-vectorizer-verbose=n"
3595 This option controls the amount of debugging output the vectorizer prints.
3596 This information is written to standard error, unless \fB\-fdump\-tree\-all\fR
3597 or \fB\-fdump\-tree\-vect\fR is specified, in which case it is output to the
3598 usual dump listing file, \fI.vect\fR.
3599 .IP "\fB\-frandom\-seed=\fR\fIstring\fR" 4
3600 .IX Item "-frandom-seed=string"
3601 This option provides a seed that \s-1GCC\s0 uses when it would otherwise use
3602 random numbers.  It is used to generate certain symbol names
3603 that have to be different in every compiled file.  It is also used to
3604 place unique stamps in coverage data files and the object files that
3605 produce them.  You can use the \fB\-frandom\-seed\fR option to produce
3606 reproducibly identical object files.
3607 .Sp
3608 The \fIstring\fR should be different for every file you compile.
3609 .IP "\fB\-fsched\-verbose=\fR\fIn\fR" 4
3610 .IX Item "-fsched-verbose=n"
3611 On targets that use instruction scheduling, this option controls the
3612 amount of debugging output the scheduler prints.  This information is
3613 written to standard error, unless \fB\-dS\fR or \fB\-dR\fR is
3614 specified, in which case it is output to the usual dump
3615 listing file, \fI.sched\fR or \fI.sched2\fR respectively.  However
3616 for \fIn\fR greater than nine, the output is always printed to standard
3617 error.
3618 .Sp
3619 For \fIn\fR greater than zero, \fB\-fsched\-verbose\fR outputs the
3620 same information as \fB\-dRS\fR.  For \fIn\fR greater than one, it
3621 also output basic block probabilities, detailed ready list information
3622 and unit/insn info.  For \fIn\fR greater than two, it includes \s-1RTL\s0
3623 at abort point, control-flow and regions info.  And for \fIn\fR over
3624 four, \fB\-fsched\-verbose\fR also includes dependence info.
3625 .IP "\fB\-save\-temps\fR" 4
3626 .IX Item "-save-temps"
3627 Store the usual ``temporary'' intermediate files permanently; place them
3628 in the current directory and name them based on the source file.  Thus,
3629 compiling \fIfoo.c\fR with \fB\-c \-save\-temps\fR would produce files
3630 \&\fIfoo.i\fR and \fIfoo.s\fR, as well as \fIfoo.o\fR.  This creates a
3631 preprocessed \fIfoo.i\fR output file even though the compiler now
3632 normally uses an integrated preprocessor.
3633 .Sp
3634 When used in combination with the \fB\-x\fR command line option,
3635 \&\fB\-save\-temps\fR is sensible enough to avoid over writing an
3636 input source file with the same extension as an intermediate file.
3637 The corresponding intermediate file may be obtained by renaming the
3638 source file before using \fB\-save\-temps\fR.
3639 .IP "\fB\-time\fR" 4
3640 .IX Item "-time"
3641 Report the \s-1CPU\s0 time taken by each subprocess in the compilation
3642 sequence.  For C source files, this is the compiler proper and assembler
3643 (plus the linker if linking is done).  The output looks like this:
3644 .Sp
3645 .Vb 2
3646 \&        # cc1 0.12 0.01
3647 \&        # as 0.00 0.01
3648 .Ve
3649 .Sp
3650 The first number on each line is the ``user time'', that is time spent
3651 executing the program itself.  The second number is ``system time'',
3652 time spent executing operating system routines on behalf of the program.
3653 Both numbers are in seconds.
3654 .IP "\fB\-fvar\-tracking\fR" 4
3655 .IX Item "-fvar-tracking"
3656 Run variable tracking pass.  It computes where variables are stored at each
3657 position in code.  Better debugging information is then generated
3658 (if the debugging information format supports this information).
3659 .Sp
3660 It is enabled by default when compiling with optimization (\fB\-Os\fR,
3661 \&\fB\-O\fR, \fB\-O2\fR, ...), debugging information (\fB\-g\fR) and
3662 the debug info format supports it.
3663 .IP "\fB\-print\-file\-name=\fR\fIlibrary\fR" 4
3664 .IX Item "-print-file-name=library"
3665 Print the full absolute name of the library file \fIlibrary\fR that
3666 would be used when linking\-\-\-and don't do anything else.  With this
3667 option, \s-1GCC\s0 does not compile or link anything; it just prints the
3668 file name.
3669 .IP "\fB\-print\-multi\-directory\fR" 4
3670 .IX Item "-print-multi-directory"
3671 Print the directory name corresponding to the multilib selected by any
3672 other switches present in the command line.  This directory is supposed
3673 to exist in \fB\s-1GCC_EXEC_PREFIX\s0\fR.
3674 .IP "\fB\-print\-multi\-lib\fR" 4
3675 .IX Item "-print-multi-lib"
3676 Print the mapping from multilib directory names to compiler switches
3677 that enable them.  The directory name is separated from the switches by
3678 \&\fB;\fR, and each switch starts with an \fB@} instead of the
3679 \&\f(CB@samp\fB{\-\fR, without spaces between multiple switches.  This is supposed to
3680 ease shell\-processing.
3681 .IP "\fB\-print\-prog\-name=\fR\fIprogram\fR" 4
3682 .IX Item "-print-prog-name=program"
3683 Like \fB\-print\-file\-name\fR, but searches for a program such as \fBcpp\fR.
3684 .IP "\fB\-print\-libgcc\-file\-name\fR" 4
3685 .IX Item "-print-libgcc-file-name"
3686 Same as \fB\-print\-file\-name=libgcc.a\fR.
3687 .Sp
3688 This is useful when you use \fB\-nostdlib\fR or \fB\-nodefaultlibs\fR
3689 but you do want to link with \fIlibgcc.a\fR.  You can do
3690 .Sp
3691 .Vb 1
3692 \&        gcc -nostdlib <files>... `gcc -print-libgcc-file-name`
3693 .Ve
3694 .IP "\fB\-print\-search\-dirs\fR" 4
3695 .IX Item "-print-search-dirs"
3696 Print the name of the configured installation directory and a list of
3697 program and library directories \fBgcc\fR will search\-\-\-and don't do anything else.
3698 .Sp
3699 This is useful when \fBgcc\fR prints the error message
3700 \&\fBinstallation problem, cannot exec cpp0: No such file or directory\fR.
3701 To resolve this you either need to put \fIcpp0\fR and the other compiler
3702 components where \fBgcc\fR expects to find them, or you can set the environment
3703 variable \fB\s-1GCC_EXEC_PREFIX\s0\fR to the directory where you installed them.
3704 Don't forget the trailing \fB/\fR.
3705 .IP "\fB\-dumpmachine\fR" 4
3706 .IX Item "-dumpmachine"
3707 Print the compiler's target machine (for example,
3708 \&\fBi686\-pc\-linux\-gnu\fR)\-\-\-and don't do anything else.
3709 .IP "\fB\-dumpversion\fR" 4
3710 .IX Item "-dumpversion"
3711 Print the compiler version (for example, \fB3.0\fR)\-\-\-and don't do
3712 anything else.
3713 .IP "\fB\-dumpspecs\fR" 4
3714 .IX Item "-dumpspecs"
3715 Print the compiler's built-in specs\-\-\-and don't do anything else.  (This
3716 is used when \s-1GCC\s0 itself is being built.)  
3717 .IP "\fB\-feliminate\-unused\-debug\-types\fR" 4
3718 .IX Item "-feliminate-unused-debug-types"
3719 Normally, when producing \s-1DWARF2\s0 output, \s-1GCC\s0 will emit debugging
3720 information for all types declared in a compilation
3721 unit, regardless of whether or not they are actually used
3722 in that compilation unit.  Sometimes this is useful, such as
3723 if, in the debugger, you want to cast a value to a type that is
3724 not actually used in your program (but is declared).  More often,
3725 however, this results in a significant amount of wasted space.
3726 With this option, \s-1GCC\s0 will avoid producing debug symbol output
3727 for types that are nowhere used in the source file being compiled.
3728 .Sh "Options That Control Optimization"
3729 .IX Subsection "Options That Control Optimization"
3730 These options control various sorts of optimizations.
3731 .PP
3732 Without any optimization option, the compiler's goal is to reduce the
3733 cost of compilation and to make debugging produce the expected
3734 results.  Statements are independent: if you stop the program with a
3735 breakpoint between statements, you can then assign a new value to any
3736 variable or change the program counter to any other statement in the
3737 function and get exactly the results you would expect from the source
3738 code.
3739 .PP
3740 Turning on optimization flags makes the compiler attempt to improve
3741 the performance and/or code size at the expense of compilation time
3742 and possibly the ability to debug the program.
3743 .PP
3744 The compiler performs optimization based on the knowledge it has of
3745 the program.  Optimization levels \fB\-O2\fR and above, in
3746 particular, enable \fIunit-at-a-time\fR mode, which allows the
3747 compiler to consider information gained from later functions in
3748 the file when compiling a function.  Compiling multiple files at
3749 once to a single output file in \fIunit-at-a-time\fR mode allows
3750 the compiler to use information gained from all of the files when
3751 compiling each of them.
3752 .PP
3753 Not all optimizations are controlled directly by a flag.  Only
3754 optimizations that have a flag are listed.
3755 .IP "\fB\-O\fR" 4
3756 .IX Item "-O"
3757 .PD 0
3758 .IP "\fB\-O1\fR" 4
3759 .IX Item "-O1"
3760 .PD
3761 Optimize.  Optimizing compilation takes somewhat more time, and a lot
3762 more memory for a large function.
3763 .Sp
3764 With \fB\-O\fR, the compiler tries to reduce code size and execution
3765 time, without performing any optimizations that take a great deal of
3766 compilation time.
3767 .Sp
3768 \&\fB\-O\fR turns on the following optimization flags:
3769 \&\fB\-fdefer\-pop 
3770 \&\-fdelayed\-branch 
3771 \&\-fguess\-branch\-probability 
3772 \&\-fcprop\-registers 
3773 \&\-floop\-optimize 
3774 \&\-fif\-conversion 
3775 \&\-fif\-conversion2 
3776 \&\-ftree\-ccp 
3777 \&\-ftree\-dce 
3778 \&\-ftree\-dominator\-opts 
3779 \&\-ftree\-dse 
3780 \&\-ftree\-ter 
3781 \&\-ftree\-lrs 
3782 \&\-ftree\-sra 
3783 \&\-ftree\-copyrename 
3784 \&\-ftree\-fre 
3785 \&\-ftree\-ch 
3786 \&\-fmerge\-constants\fR
3787 .Sp
3788 \&\fB\-O\fR also turns on \fB\-fomit\-frame\-pointer\fR on machines
3789 where doing so does not interfere with debugging.
3790 .Sp
3791 \&\fB\-O\fR doesn't turn on \fB\-ftree\-sra\fR for the Ada compiler.
3792 This option must be explicitly specified on the command line to be
3793 enabled for the Ada compiler.
3794 .IP "\fB\-O2\fR" 4
3795 .IX Item "-O2"
3796 Optimize even more.  \s-1GCC\s0 performs nearly all supported optimizations
3797 that do not involve a space-speed tradeoff.  The compiler does not
3798 perform loop unrolling or function inlining when you specify \fB\-O2\fR.
3799 As compared to \fB\-O\fR, this option increases both compilation time
3800 and the performance of the generated code.
3801 .Sp
3802 \&\fB\-O2\fR turns on all optimization flags specified by \fB\-O\fR.  It
3803 also turns on the following optimization flags:
3804 \&\fB\-fthread\-jumps 
3805 \&\-fcrossjumping 
3806 \&\-foptimize\-sibling\-calls 
3807 \&\-fcse\-follow\-jumps  \-fcse\-skip\-blocks 
3808 \&\-fgcse  \-fgcse\-lm  
3809 \&\-fexpensive\-optimizations 
3810 \&\-fstrength\-reduce 
3811 \&\-frerun\-cse\-after\-loop  \-frerun\-loop\-opt 
3812 \&\-fcaller\-saves 
3813 \&\-fforce\-mem 
3814 \&\-fpeephole2 
3815 \&\-fschedule\-insns  \-fschedule\-insns2 
3816 \&\-fsched\-interblock  \-fsched\-spec 
3817 \&\-fregmove 
3818 \&\-fstrict\-aliasing 
3819 \&\-fdelete\-null\-pointer\-checks 
3820 \&\-freorder\-blocks  \-freorder\-functions 
3821 \&\-funit\-at\-a\-time 
3822 \&\-falign\-functions  \-falign\-jumps 
3823 \&\-falign\-loops  \-falign\-labels 
3824 \&\-ftree\-pre\fR
3825 .Sp
3826 Please note the warning under \fB\-fgcse\fR about
3827 invoking \fB\-O2\fR on programs that use computed gotos.
3828 .IP "\fB\-O3\fR" 4
3829 .IX Item "-O3"
3830 Optimize yet more.  \fB\-O3\fR turns on all optimizations specified by
3831 \&\fB\-O2\fR and also turns on the \fB\-finline\-functions\fR,
3832 \&\fB\-funswitch\-loops\fR and \fB\-fgcse\-after\-reload\fR options.
3833 .IP "\fB\-O0\fR" 4
3834 .IX Item "-O0"
3835 Do not optimize.  This is the default.
3836 .IP "\fB\-Os\fR" 4
3837 .IX Item "-Os"
3838 Optimize for size.  \fB\-Os\fR enables all \fB\-O2\fR optimizations that
3839 do not typically increase code size.  It also performs further
3840 optimizations designed to reduce code size.
3841 .Sp
3842 \&\fB\-Os\fR disables the following optimization flags:
3843 \&\fB\-falign\-functions  \-falign\-jumps  \-falign\-loops 
3844 \&\-falign\-labels  \-freorder\-blocks  \-freorder\-blocks\-and\-partition \-fprefetch\-loop\-arrays\fR
3845 .Sp
3846 If you use multiple \fB\-O\fR options, with or without level numbers,
3847 the last such option is the one that is effective.
3848 .PP
3849 Options of the form \fB\-f\fR\fIflag\fR specify machine-independent
3850 flags.  Most flags have both positive and negative forms; the negative
3851 form of \fB\-ffoo\fR would be \fB\-fno\-foo\fR.  In the table
3852 below, only one of the forms is listed\-\-\-the one you typically will
3853 use.  You can figure out the other form by either removing \fBno\-\fR
3854 or adding it.
3855 .PP
3856 The following options control specific optimizations.  They are either
3857 activated by \fB\-O\fR options or are related to ones that are.  You
3858 can use the following flags in the rare cases when ``fine\-tuning'' of
3859 optimizations to be performed is desired.
3860 .IP "\fB\-fno\-default\-inline\fR" 4
3861 .IX Item "-fno-default-inline"
3862 Do not make member functions inline by default merely because they are
3863 defined inside the class scope (\*(C+ only).  Otherwise, when you specify
3864 \&\fB\-O\fR, member functions defined inside class scope are compiled
3865 inline by default; i.e., you don't need to add \fBinline\fR in front of
3866 the member function name.
3867 .IP "\fB\-fno\-defer\-pop\fR" 4
3868 .IX Item "-fno-defer-pop"
3869 Always pop the arguments to each function call as soon as that function
3870 returns.  For machines which must pop arguments after a function call,
3871 the compiler normally lets arguments accumulate on the stack for several
3872 function calls and pops them all at once.
3873 .Sp
3874 Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3875 .IP "\fB\-fforce\-mem\fR" 4
3876 .IX Item "-fforce-mem"
3877 Force memory operands to be copied into registers before doing
3878 arithmetic on them.  This produces better code by making all memory
3879 references potential common subexpressions.  When they are not common
3880 subexpressions, instruction combination should eliminate the separate
3881 register\-load.
3882 .Sp
3883 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3884 .IP "\fB\-fforce\-addr\fR" 4
3885 .IX Item "-fforce-addr"
3886 Force memory address constants to be copied into registers before
3887 doing arithmetic on them.  This may produce better code just as
3888 \&\fB\-fforce\-mem\fR may.
3889 .IP "\fB\-fomit\-frame\-pointer\fR" 4
3890 .IX Item "-fomit-frame-pointer"
3891 Don't keep the frame pointer in a register for functions that
3892 don't need one.  This avoids the instructions to save, set up and
3893 restore frame pointers; it also makes an extra register available
3894 in many functions.  \fBIt also makes debugging impossible on
3895 some machines.\fR
3896 .Sp
3897 On some machines, such as the \s-1VAX\s0, this flag has no effect, because
3898 the standard calling sequence automatically handles the frame pointer
3899 and nothing is saved by pretending it doesn't exist.  The
3900 machine-description macro \f(CW\*(C`FRAME_POINTER_REQUIRED\*(C'\fR controls
3901 whether a target machine supports this flag.  
3902 .Sp
3903 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3904 .IP "\fB\-foptimize\-sibling\-calls\fR" 4
3905 .IX Item "-foptimize-sibling-calls"
3906 Optimize sibling and tail recursive calls.
3907 .Sp
3908 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3909 .IP "\fB\-fno\-inline\fR" 4
3910 .IX Item "-fno-inline"
3911 Don't pay attention to the \f(CW\*(C`inline\*(C'\fR keyword.  Normally this option
3912 is used to keep the compiler from expanding any functions inline.
3913 Note that if you are not optimizing, no functions can be expanded inline.
3914 .IP "\fB\-finline\-functions\fR" 4
3915 .IX Item "-finline-functions"
3916 Integrate all simple functions into their callers.  The compiler
3917 heuristically decides which functions are simple enough to be worth
3918 integrating in this way.
3919 .Sp
3920 If all calls to a given function are integrated, and the function is
3921 declared \f(CW\*(C`static\*(C'\fR, then the function is normally not output as
3922 assembler code in its own right.
3923 .Sp
3924 Enabled at level \fB\-O3\fR.
3925 .IP "\fB\-finline\-limit=\fR\fIn\fR" 4
3926 .IX Item "-finline-limit=n"
3927 By default, \s-1GCC\s0 limits the size of functions that can be inlined.  This flag
3928 allows the control of this limit for functions that are explicitly marked as
3929 inline (i.e., marked with the inline keyword or defined within the class
3930 definition in c++).  \fIn\fR is the size of functions that can be inlined in
3931 number of pseudo instructions (not counting parameter handling).  The default
3932 value of \fIn\fR is 600.
3933 Increasing this value can result in more inlined code at
3934 the cost of compilation time and memory consumption.  Decreasing usually makes
3935 the compilation faster and less code will be inlined (which presumably
3936 means slower programs).  This option is particularly useful for programs that
3937 use inlining heavily such as those based on recursive templates with \*(C+.
3938 .Sp
3939 Inlining is actually controlled by a number of parameters, which may be
3940 specified individually by using \fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR.
3941 The \fB\-finline\-limit=\fR\fIn\fR option sets some of these parameters
3942 as follows:
3943 .RS 4
3944 .Sp
3945 .Vb 8
3946 \& @item max-inline-insns-single
3947 \&  is set to I<n>/2.
3948 \& @item max-inline-insns-auto
3949 \&  is set to I<n>/2.
3950 \& @item min-inline-insns
3951 \&  is set to 130 or I<n>/4, whichever is smaller.
3952 \& @item max-inline-insns-rtl
3953 \&  is set to I<n>.
3954 .Ve
3955 .RE
3956 .RS 4
3957 .Sp
3958 See below for a documentation of the individual
3959 parameters controlling inlining.
3960 .Sp
3961 \&\fINote:\fR pseudo instruction represents, in this particular context, an
3962 abstract measurement of function's size.  In no way, it represents a count
3963 of assembly instructions and as such its exact meaning might change from one
3964 release to an another.
3965 .RE
3966 .IP "\fB\-fkeep\-inline\-functions\fR" 4
3967 .IX Item "-fkeep-inline-functions"
3968 In C, emit \f(CW\*(C`static\*(C'\fR functions that are declared \f(CW\*(C`inline\*(C'\fR
3969 into the object file, even if the function has been inlined into all
3970 of its callers.  This switch does not affect functions using the
3971 \&\f(CW\*(C`extern inline\*(C'\fR extension in \s-1GNU\s0 C.  In \*(C+, emit any and all
3972 inline functions into the object file.
3973 .IP "\fB\-fkeep\-static\-consts\fR" 4
3974 .IX Item "-fkeep-static-consts"
3975 Emit variables declared \f(CW\*(C`static const\*(C'\fR when optimization isn't turned
3976 on, even if the variables aren't referenced.
3977 .Sp
3978 \&\s-1GCC\s0 enables this option by default.  If you want to force the compiler to
3979 check if the variable was referenced, regardless of whether or not
3980 optimization is turned on, use the \fB\-fno\-keep\-static\-consts\fR option.
3981 .IP "\fB\-fmerge\-constants\fR" 4
3982 .IX Item "-fmerge-constants"
3983 Attempt to merge identical constants (string constants and floating point
3984 constants) across compilation units.
3985 .Sp
3986 This option is the default for optimized compilation if the assembler and
3987 linker support it.  Use \fB\-fno\-merge\-constants\fR to inhibit this
3988 behavior.
3989 .Sp
3990 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3991 .IP "\fB\-fmerge\-all\-constants\fR" 4
3992 .IX Item "-fmerge-all-constants"
3993 Attempt to merge identical constants and identical variables.
3994 .Sp
3995 This option implies \fB\-fmerge\-constants\fR.  In addition to
3996 \&\fB\-fmerge\-constants\fR this considers e.g. even constant initialized
3997 arrays or initialized constant variables with integral or floating point
3998 types.  Languages like C or \*(C+ require each non-automatic variable to
3999 have distinct location, so using this option will result in non-conforming
4000 behavior.
4001 .IP "\fB\-fmodulo\-sched\fR" 4
4002 .IX Item "-fmodulo-sched"
4003 Perform swing modulo scheduling immediately before the first scheduling
4004 pass.  This pass looks at innermost loops and reorders their
4005 instructions by overlapping different iterations.
4006 .IP "\fB\-fno\-branch\-count\-reg\fR" 4
4007 .IX Item "-fno-branch-count-reg"
4008 Do not use ``decrement and branch'' instructions on a count register,
4009 but instead generate a sequence of instructions that decrement a
4010 register, compare it against zero, then branch based upon the result.
4011 This option is only meaningful on architectures that support such
4012 instructions, which include x86, PowerPC, \s-1IA\-64\s0 and S/390.
4013 .Sp
4014 The default is \fB\-fbranch\-count\-reg\fR, enabled when
4015 \&\fB\-fstrength\-reduce\fR is enabled.
4016 .IP "\fB\-fno\-function\-cse\fR" 4
4017 .IX Item "-fno-function-cse"
4018 Do not put function addresses in registers; make each instruction that
4019 calls a constant function contain the function's address explicitly.
4020 .Sp
4021 This option results in less efficient code, but some strange hacks
4022 that alter the assembler output may be confused by the optimizations
4023 performed when this option is not used.
4024 .Sp
4025 The default is \fB\-ffunction\-cse\fR
4026 .IP "\fB\-fno\-zero\-initialized\-in\-bss\fR" 4
4027 .IX Item "-fno-zero-initialized-in-bss"
4028 If the target supports a \s-1BSS\s0 section, \s-1GCC\s0 by default puts variables that
4029 are initialized to zero into \s-1BSS\s0.  This can save space in the resulting
4030 code.
4031 .Sp
4032 This option turns off this behavior because some programs explicitly
4033 rely on variables going to the data section.  E.g., so that the
4034 resulting executable can find the beginning of that section and/or make
4035 assumptions based on that.
4036 .Sp
4037 The default is \fB\-fzero\-initialized\-in\-bss\fR.
4038 .IP "\fB\-fbounds\-check\fR" 4
4039 .IX Item "-fbounds-check"
4040 For front-ends that support it, generate additional code to check that
4041 indices used to access arrays are within the declared range.  This is
4042 currently only supported by the Java and Fortran front\-ends, where
4043 this option defaults to true and false respectively.
4044 .IP "\fB\-fmudflap \-fmudflapth \-fmudflapir\fR" 4
4045 .IX Item "-fmudflap -fmudflapth -fmudflapir"
4046 For front-ends that support it (C and \*(C+), instrument all risky
4047 pointer/array dereferencing operations, some standard library
4048 string/heap functions, and some other associated constructs with
4049 range/validity tests.  Modules so instrumented should be immune to
4050 buffer overflows, invalid heap use, and some other classes of C/\*(C+
4051 programming errors.  The instrumentation relies on a separate runtime
4052 library (\fIlibmudflap\fR), which will be linked into a program if
4053 \&\fB\-fmudflap\fR is given at link time.  Run-time behavior of the
4054 instrumented program is controlled by the \fB\s-1MUDFLAP_OPTIONS\s0\fR
4055 environment variable.  See \f(CW\*(C`env MUDFLAP_OPTIONS=\-help a.out\*(C'\fR
4056 for its options.
4057 .Sp
4058 Use \fB\-fmudflapth\fR instead of \fB\-fmudflap\fR to compile and to
4059 link if your program is multi\-threaded.  Use \fB\-fmudflapir\fR, in
4060 addition to \fB\-fmudflap\fR or \fB\-fmudflapth\fR, if
4061 instrumentation should ignore pointer reads.  This produces less
4062 instrumentation (and therefore faster execution) and still provides
4063 some protection against outright memory corrupting writes, but allows
4064 erroneously read data to propagate within a program.
4065 .IP "\fB\-fstrength\-reduce\fR" 4
4066 .IX Item "-fstrength-reduce"
4067 Perform the optimizations of loop strength reduction and
4068 elimination of iteration variables.
4069 .Sp
4070 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4071 .IP "\fB\-fthread\-jumps\fR" 4
4072 .IX Item "-fthread-jumps"
4073 Perform optimizations where we check to see if a jump branches to a
4074 location where another comparison subsumed by the first is found.  If
4075 so, the first branch is redirected to either the destination of the
4076 second branch or a point immediately following it, depending on whether
4077 the condition is known to be true or false.
4078 .Sp
4079 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4080 .IP "\fB\-fcse\-follow\-jumps\fR" 4
4081 .IX Item "-fcse-follow-jumps"
4082 In common subexpression elimination, scan through jump instructions
4083 when the target of the jump is not reached by any other path.  For
4084 example, when \s-1CSE\s0 encounters an \f(CW\*(C`if\*(C'\fR statement with an
4085 \&\f(CW\*(C`else\*(C'\fR clause, \s-1CSE\s0 will follow the jump when the condition
4086 tested is false.
4087 .Sp
4088 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4089 .IP "\fB\-fcse\-skip\-blocks\fR" 4
4090 .IX Item "-fcse-skip-blocks"
4091 This is similar to \fB\-fcse\-follow\-jumps\fR, but causes \s-1CSE\s0 to
4092 follow jumps which conditionally skip over blocks.  When \s-1CSE\s0
4093 encounters a simple \f(CW\*(C`if\*(C'\fR statement with no else clause,
4094 \&\fB\-fcse\-skip\-blocks\fR causes \s-1CSE\s0 to follow the jump around the
4095 body of the \f(CW\*(C`if\*(C'\fR.
4096 .Sp
4097 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4098 .IP "\fB\-frerun\-cse\-after\-loop\fR" 4
4099 .IX Item "-frerun-cse-after-loop"
4100 Re-run common subexpression elimination after loop optimizations has been
4101 performed.
4102 .Sp
4103 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4104 .IP "\fB\-frerun\-loop\-opt\fR" 4
4105 .IX Item "-frerun-loop-opt"
4106 Run the loop optimizer twice.
4107 .Sp
4108 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4109 .IP "\fB\-fgcse\fR" 4
4110 .IX Item "-fgcse"
4111 Perform a global common subexpression elimination pass.
4112 This pass also performs global constant and copy propagation.
4113 .Sp
4114 \&\fINote:\fR When compiling a program using computed gotos, a \s-1GCC\s0
4115 extension, you may get better runtime performance if you disable
4116 the global common subexpression elimination pass by adding
4117 \&\fB\-fno\-gcse\fR to the command line.
4118 .Sp
4119 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4120 .IP "\fB\-fgcse\-lm\fR" 4
4121 .IX Item "-fgcse-lm"
4122 When \fB\-fgcse\-lm\fR is enabled, global common subexpression elimination will
4123 attempt to move loads which are only killed by stores into themselves.  This
4124 allows a loop containing a load/store sequence to be changed to a load outside
4125 the loop, and a copy/store within the loop.
4126 .Sp
4127 Enabled by default when gcse is enabled.
4128 .IP "\fB\-fgcse\-sm\fR" 4
4129 .IX Item "-fgcse-sm"
4130 When \fB\-fgcse\-sm\fR is enabled, a store motion pass is run after
4131 global common subexpression elimination.  This pass will attempt to move
4132 stores out of loops.  When used in conjunction with \fB\-fgcse\-lm\fR,
4133 loops containing a load/store sequence can be changed to a load before
4134 the loop and a store after the loop.
4135 .Sp
4136 Not enabled at any optimization level.
4137 .IP "\fB\-fgcse\-las\fR" 4
4138 .IX Item "-fgcse-las"
4139 When \fB\-fgcse\-las\fR is enabled, the global common subexpression
4140 elimination pass eliminates redundant loads that come after stores to the
4141 same memory location (both partial and full redundancies).
4142 .Sp
4143 Not enabled at any optimization level.
4144 .IP "\fB\-fgcse\-after\-reload\fR" 4
4145 .IX Item "-fgcse-after-reload"
4146 When \fB\-fgcse\-after\-reload\fR is enabled, a redundant load elimination
4147 pass is performed after reload.  The purpose of this pass is to cleanup
4148 redundant spilling.
4149 .IP "\fB\-floop\-optimize\fR" 4
4150 .IX Item "-floop-optimize"
4151 Perform loop optimizations: move constant expressions out of loops, simplify
4152 exit test conditions and optionally do strength-reduction as well.
4153 .Sp
4154 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4155 .IP "\fB\-floop\-optimize2\fR" 4
4156 .IX Item "-floop-optimize2"
4157 Perform loop optimizations using the new loop optimizer.  The optimizations
4158 (loop unrolling, peeling and unswitching, loop invariant motion) are enabled
4159 by separate flags.
4160 .IP "\fB\-fcrossjumping\fR" 4
4161 .IX Item "-fcrossjumping"
4162 Perform cross-jumping transformation.  This transformation unifies equivalent code and save code size.  The
4163 resulting code may or may not perform better than without cross\-jumping.
4164 .Sp
4165 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4166 .IP "\fB\-fif\-conversion\fR" 4
4167 .IX Item "-fif-conversion"
4168 Attempt to transform conditional jumps into branch-less equivalents.  This
4169 include use of conditional moves, min, max, set flags and abs instructions, and
4170 some tricks doable by standard arithmetics.  The use of conditional execution
4171 on chips where it is available is controlled by \f(CW\*(C`if\-conversion2\*(C'\fR.
4172 .Sp
4173 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4174 .IP "\fB\-fif\-conversion2\fR" 4
4175 .IX Item "-fif-conversion2"
4176 Use conditional execution (where available) to transform conditional jumps into
4177 branch-less equivalents.
4178 .Sp
4179 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4180 .IP "\fB\-fdelete\-null\-pointer\-checks\fR" 4
4181 .IX Item "-fdelete-null-pointer-checks"
4182 Use global dataflow analysis to identify and eliminate useless checks
4183 for null pointers.  The compiler assumes that dereferencing a null
4184 pointer would have halted the program.  If a pointer is checked after
4185 it has already been dereferenced, it cannot be null.
4186 .Sp
4187 In some environments, this assumption is not true, and programs can
4188 safely dereference null pointers.  Use
4189 \&\fB\-fno\-delete\-null\-pointer\-checks\fR to disable this optimization
4190 for programs which depend on that behavior.
4191 .Sp
4192 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4193 .IP "\fB\-fexpensive\-optimizations\fR" 4
4194 .IX Item "-fexpensive-optimizations"
4195 Perform a number of minor optimizations that are relatively expensive.
4196 .Sp
4197 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4198 .IP "\fB\-foptimize\-register\-move\fR" 4
4199 .IX Item "-foptimize-register-move"
4200 .PD 0
4201 .IP "\fB\-fregmove\fR" 4
4202 .IX Item "-fregmove"
4203 .PD
4204 Attempt to reassign register numbers in move instructions and as
4205 operands of other simple instructions in order to maximize the amount of
4206 register tying.  This is especially helpful on machines with two-operand
4207 instructions.
4208 .Sp
4209 Note \fB\-fregmove\fR and \fB\-foptimize\-register\-move\fR are the same
4210 optimization.
4211 .Sp
4212 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4213 .IP "\fB\-fdelayed\-branch\fR" 4
4214 .IX Item "-fdelayed-branch"
4215 If supported for the target machine, attempt to reorder instructions
4216 to exploit instruction slots available after delayed branch
4217 instructions.
4218 .Sp
4219 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4220 .IP "\fB\-fschedule\-insns\fR" 4
4221 .IX Item "-fschedule-insns"
4222 If supported for the target machine, attempt to reorder instructions to
4223 eliminate execution stalls due to required data being unavailable.  This
4224 helps machines that have slow floating point or memory load instructions
4225 by allowing other instructions to be issued until the result of the load
4226 or floating point instruction is required.
4227 .Sp
4228 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4229 .IP "\fB\-fschedule\-insns2\fR" 4
4230 .IX Item "-fschedule-insns2"
4231 Similar to \fB\-fschedule\-insns\fR, but requests an additional pass of
4232 instruction scheduling after register allocation has been done.  This is
4233 especially useful on machines with a relatively small number of
4234 registers and where memory load instructions take more than one cycle.
4235 .Sp
4236 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4237 .IP "\fB\-fno\-sched\-interblock\fR" 4
4238 .IX Item "-fno-sched-interblock"
4239 Don't schedule instructions across basic blocks.  This is normally
4240 enabled by default when scheduling before register allocation, i.e.
4241 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
4242 .IP "\fB\-fno\-sched\-spec\fR" 4
4243 .IX Item "-fno-sched-spec"
4244 Don't allow speculative motion of non-load instructions.  This is normally
4245 enabled by default when scheduling before register allocation, i.e.
4246 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
4247 .IP "\fB\-fsched\-spec\-load\fR" 4
4248 .IX Item "-fsched-spec-load"
4249 Allow speculative motion of some load instructions.  This only makes
4250 sense when scheduling before register allocation, i.e. with
4251 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
4252 .IP "\fB\-fsched\-spec\-load\-dangerous\fR" 4
4253 .IX Item "-fsched-spec-load-dangerous"
4254 Allow speculative motion of more load instructions.  This only makes
4255 sense when scheduling before register allocation, i.e. with
4256 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
4257 .IP "\fB\-fsched\-stalled\-insns=\fR\fIn\fR" 4
4258 .IX Item "-fsched-stalled-insns=n"
4259 Define how many insns (if any) can be moved prematurely from the queue
4260 of stalled insns into the ready list, during the second scheduling pass.
4261 .IP "\fB\-fsched\-stalled\-insns\-dep=\fR\fIn\fR" 4
4262 .IX Item "-fsched-stalled-insns-dep=n"
4263 Define how many insn groups (cycles) will be examined for a dependency
4264 on a stalled insn that is candidate for premature removal from the queue
4265 of stalled insns.  Has an effect only during the second scheduling pass,
4266 and only if \fB\-fsched\-stalled\-insns\fR is used and its value is not zero.
4267 .IP "\fB\-fsched2\-use\-superblocks\fR" 4
4268 .IX Item "-fsched2-use-superblocks"
4269 When scheduling after register allocation, do use superblock scheduling
4270 algorithm.  Superblock scheduling allows motion across basic block boundaries
4271 resulting on faster schedules.  This option is experimental, as not all machine
4272 descriptions used by \s-1GCC\s0 model the \s-1CPU\s0 closely enough to avoid unreliable
4273 results from the algorithm.
4274 .Sp
4275 This only makes sense when scheduling after register allocation, i.e. with
4276 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
4277 .IP "\fB\-fsched2\-use\-traces\fR" 4
4278 .IX Item "-fsched2-use-traces"
4279 Use \fB\-fsched2\-use\-superblocks\fR algorithm when scheduling after register
4280 allocation and additionally perform code duplication in order to increase the
4281 size of superblocks using tracer pass.  See \fB\-ftracer\fR for details on
4282 trace formation.
4283 .Sp
4284 This mode should produce faster but significantly longer programs.  Also
4285 without \fB\-fbranch\-probabilities\fR the traces constructed may not
4286 match the reality and hurt the performance.  This only makes
4287 sense when scheduling after register allocation, i.e. with
4288 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
4289 .IP "\fB\-freschedule\-modulo\-scheduled\-loops\fR" 4
4290 .IX Item "-freschedule-modulo-scheduled-loops"
4291 The modulo scheduling comes before the traditional scheduling, if a loop was modulo scheduled
4292 we may want to prevent the later scheduling passes from changing its schedule, we use this
4293 option to control that.
4294 .IP "\fB\-fcaller\-saves\fR" 4
4295 .IX Item "-fcaller-saves"
4296 Enable values to be allocated in registers that will be clobbered by
4297 function calls, by emitting extra instructions to save and restore the
4298 registers around such calls.  Such allocation is done only when it
4299 seems to result in better code than would otherwise be produced.
4300 .Sp
4301 This option is always enabled by default on certain machines, usually
4302 those which have no call-preserved registers to use instead.
4303 .Sp
4304 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4305 .IP "\fB\-ftree\-pre\fR" 4
4306 .IX Item "-ftree-pre"
4307 Perform Partial Redundancy Elimination (\s-1PRE\s0) on trees.  This flag is
4308 enabled by default at \fB\-O2\fR and \fB\-O3\fR.
4309 .IP "\fB\-ftree\-fre\fR" 4
4310 .IX Item "-ftree-fre"
4311 Perform Full Redundancy Elimination (\s-1FRE\s0) on trees.  The difference
4312 between \s-1FRE\s0 and \s-1PRE\s0 is that \s-1FRE\s0 only considers expressions
4313 that are computed on all paths leading to the redundant computation.
4314 This analysis faster than \s-1PRE\s0, though it exposes fewer redundancies.
4315 This flag is enabled by default at \fB\-O\fR and higher.
4316 .IP "\fB\-ftree\-ccp\fR" 4
4317 .IX Item "-ftree-ccp"
4318 Perform sparse conditional constant propagation (\s-1CCP\s0) on trees.  This flag
4319 is enabled by default at \fB\-O\fR and higher.
4320 .IP "\fB\-ftree\-dce\fR" 4
4321 .IX Item "-ftree-dce"
4322 Perform dead code elimination (\s-1DCE\s0) on trees.  This flag is enabled by
4323 default at \fB\-O\fR and higher.
4324 .IP "\fB\-ftree\-dominator\-opts\fR" 4
4325 .IX Item "-ftree-dominator-opts"
4326 Perform dead code elimination (\s-1DCE\s0) on trees.  This flag is enabled by
4327 default at \fB\-O\fR and higher.
4328 .IP "\fB\-ftree\-ch\fR" 4
4329 .IX Item "-ftree-ch"
4330 Perform loop header copying on trees.  This is beneficial since it increases
4331 effectiveness of code motion optimizations.  It also saves one jump.  This flag
4332 is enabled by default at \fB\-O\fR and higher.  It is not enabled
4333 for \fB\-Os\fR, since it usually increases code size.
4334 .IP "\fB\-ftree\-loop\-optimize\fR" 4
4335 .IX Item "-ftree-loop-optimize"
4336 Perform loop optimizations on trees.  This flag is enabled by default
4337 at \fB\-O\fR and higher.
4338 .IP "\fB\-ftree\-loop\-linear\fR" 4
4339 .IX Item "-ftree-loop-linear"
4340 Perform linear loop transformations on tree.  This flag can improve cache
4341 performance and allow further loop optimizations to take place.
4342 .IP "\fB\-ftree\-loop\-im\fR" 4
4343 .IX Item "-ftree-loop-im"
4344 Perform loop invariant motion on trees.  This pass moves only invariants that
4345 would be hard to handle at \s-1RTL\s0 level (function calls, operations that expand to
4346 nontrivial sequences of insns).  With \fB\-funswitch\-loops\fR it also moves
4347 operands of conditions that are invariant out of the loop, so that we can use
4348 just trivial invariantness analysis in loop unswitching.  The pass also includes
4349 store motion.
4350 .IP "\fB\-ftree\-loop\-ivcanon\fR" 4
4351 .IX Item "-ftree-loop-ivcanon"
4352 Create a canonical counter for number of iterations in the loop for that
4353 determining number of iterations requires complicated analysis.  Later
4354 optimizations then may determine the number easily.  Useful especially
4355 in connection with unrolling.
4356 .IP "\fB\-fivopts\fR" 4
4357 .IX Item "-fivopts"
4358 Perform induction variable optimizations (strength reduction, induction
4359 variable merging and induction variable elimination) on trees.
4360 .IP "\fB\-ftree\-sra\fR" 4
4361 .IX Item "-ftree-sra"
4362 Perform scalar replacement of aggregates.  This pass replaces structure
4363 references with scalars to prevent committing structures to memory too
4364 early.  This flag is enabled by default at \fB\-O\fR and higher.
4365 .IP "\fB\-ftree\-copyrename\fR" 4
4366 .IX Item "-ftree-copyrename"
4367 Perform copy renaming on trees.  This pass attempts to rename compiler
4368 temporaries to other variables at copy locations, usually resulting in
4369 variable names which more closely resemble the original variables.  This flag
4370 is enabled by default at \fB\-O\fR and higher.
4371 .IP "\fB\-ftree\-ter\fR" 4
4372 .IX Item "-ftree-ter"
4373 Perform temporary expression replacement during the \s-1SSA\-\s0>normal phase.  Single
4374 use/single def temporaries are replaced at their use location with their
4375 defining expression.  This results in non-GIMPLE code, but gives the expanders
4376 much more complex trees to work on resulting in better \s-1RTL\s0 generation.  This is
4377 enabled by default at \fB\-O\fR and higher.
4378 .IP "\fB\-ftree\-lrs\fR" 4
4379 .IX Item "-ftree-lrs"
4380 Perform live range splitting during the \s-1SSA\-\s0>normal phase.  Distinct live
4381 ranges of a variable are split into unique variables, allowing for better
4382 optimization later.  This is enabled by default at \fB\-O\fR and higher.
4383 .IP "\fB\-ftree\-vectorize\fR" 4
4384 .IX Item "-ftree-vectorize"
4385 Perform loop vectorization on trees.
4386 .IP "\fB\-ftracer\fR" 4
4387 .IX Item "-ftracer"
4388 Perform tail duplication to enlarge superblock size.  This transformation
4389 simplifies the control flow of the function allowing other optimizations to do
4390 better job.
4391 .IP "\fB\-funroll\-loops\fR" 4
4392 .IX Item "-funroll-loops"
4393 Unroll loops whose number of iterations can be determined at compile
4394 time or upon entry to the loop.  \fB\-funroll\-loops\fR implies both
4395 \&\fB\-fstrength\-reduce\fR and \fB\-frerun\-cse\-after\-loop\fR.  This
4396 option makes code larger, and may or may not make it run faster.
4397 .IP "\fB\-funroll\-all\-loops\fR" 4
4398 .IX Item "-funroll-all-loops"
4399 Unroll all loops, even if their number of iterations is uncertain when
4400 the loop is entered.  This usually makes programs run more slowly.
4401 \&\fB\-funroll\-all\-loops\fR implies the same options as
4402 \&\fB\-funroll\-loops\fR,
4403 .IP "\fB\-fsplit\-ivs\-in\-unroller\fR" 4
4404 .IX Item "-fsplit-ivs-in-unroller"
4405 Enables expressing of values of induction variables in later iterations
4406 of the unrolled loop using the value in the first iteration.  This breaks
4407 long dependency chains, thus improving efficiency of the scheduling passes
4408 (for best results, \fB\-fweb\fR should be used as well).
4409 .Sp
4410 Combination of \fB\-fweb\fR and \s-1CSE\s0 is often sufficient to obtain the
4411 same effect.  However in cases the loop body is more complicated than
4412 a single basic block, this is not reliable.  It also does not work at all
4413 on some of the architectures due to restrictions in the \s-1CSE\s0 pass.
4414 .Sp
4415 This optimization is enabled by default.
4416 .IP "\fB\-fvariable\-expansion\-in\-unroller\fR" 4
4417 .IX Item "-fvariable-expansion-in-unroller"
4418 With this option, the compiler will create multiple copies of some
4419 local variables when unrolling a loop which can result in superior code.
4420 .IP "\fB\-fprefetch\-loop\-arrays\fR" 4
4421 .IX Item "-fprefetch-loop-arrays"
4422 If supported by the target machine, generate instructions to prefetch
4423 memory to improve the performance of loops that access large arrays.
4424 .Sp
4425 These options may generate better or worse code; results are highly
4426 dependent on the structure of loops within the source code.
4427 .IP "\fB\-fno\-peephole\fR" 4
4428 .IX Item "-fno-peephole"
4429 .PD 0
4430 .IP "\fB\-fno\-peephole2\fR" 4
4431 .IX Item "-fno-peephole2"
4432 .PD
4433 Disable any machine-specific peephole optimizations.  The difference
4434 between \fB\-fno\-peephole\fR and \fB\-fno\-peephole2\fR is in how they
4435 are implemented in the compiler; some targets use one, some use the
4436 other, a few use both.
4437 .Sp
4438 \&\fB\-fpeephole\fR is enabled by default.
4439 \&\fB\-fpeephole2\fR enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4440 .IP "\fB\-fno\-guess\-branch\-probability\fR" 4
4441 .IX Item "-fno-guess-branch-probability"
4442 Do not guess branch probabilities using heuristics.
4443 .Sp
4444 \&\s-1GCC\s0 will use heuristics to guess branch probabilities if they are
4445 not provided by profiling feedback (\fB\-fprofile\-arcs\fR).  These
4446 heuristics are based on the control flow graph.  If some branch probabilities
4447 are specified by \fB_\|_builtin_expect\fR, then the heuristics will be
4448 used to guess branch probabilities for the rest of the control flow graph,
4449 taking the \fB_\|_builtin_expect\fR info into account.  The interactions
4450 between the heuristics and \fB_\|_builtin_expect\fR can be complex, and in
4451 some cases, it may be useful to disable the heuristics so that the effects
4452 of \fB_\|_builtin_expect\fR are easier to understand.
4453 .Sp
4454 The default is \fB\-fguess\-branch\-probability\fR at levels
4455 \&\fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4456 .IP "\fB\-freorder\-blocks\fR" 4
4457 .IX Item "-freorder-blocks"
4458 Reorder basic blocks in the compiled function in order to reduce number of
4459 taken branches and improve code locality.
4460 .Sp
4461 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4462 .IP "\fB\-freorder\-blocks\-and\-partition\fR" 4
4463 .IX Item "-freorder-blocks-and-partition"
4464 In addition to reordering basic blocks in the compiled function, in order
4465 to reduce number of taken branches, partitions hot and cold basic blocks
4466 into separate sections of the assembly and .o files, to improve
4467 paging and cache locality performance.
4468 .Sp
4469 This optimization is automatically turned off in the presence of
4470 exception handling, for linkonce sections, for functions with a user-defined
4471 section attribute and on any architecture that does not support named
4472 sections.
4473 .IP "\fB\-freorder\-functions\fR" 4
4474 .IX Item "-freorder-functions"
4475 Reorder functions in the object file in order to
4476 improve code locality.  This is implemented by using special
4477 subsections \f(CW\*(C`.text.hot\*(C'\fR for most frequently executed functions and
4478 \&\f(CW\*(C`.text.unlikely\*(C'\fR for unlikely executed functions.  Reordering is done by
4479 the linker so object file format must support named sections and linker must
4480 place them in a reasonable way.
4481 .Sp
4482 Also profile feedback must be available in to make this option effective.  See
4483 \&\fB\-fprofile\-arcs\fR for details.
4484 .Sp
4485 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4486 .IP "\fB\-fstrict\-aliasing\fR" 4
4487 .IX Item "-fstrict-aliasing"
4488 Allows the compiler to assume the strictest aliasing rules applicable to
4489 the language being compiled.  For C (and \*(C+), this activates
4490 optimizations based on the type of expressions.  In particular, an
4491 object of one type is assumed never to reside at the same address as an
4492 object of a different type, unless the types are almost the same.  For
4493 example, an \f(CW\*(C`unsigned int\*(C'\fR can alias an \f(CW\*(C`int\*(C'\fR, but not a
4494 \&\f(CW\*(C`void*\*(C'\fR or a \f(CW\*(C`double\*(C'\fR.  A character type may alias any other
4495 type.
4496 .Sp
4497 Pay special attention to code like this:
4498 .Sp
4499 .Vb 4
4500 \&        union a_union {
4501 \&          int i;
4502 \&          double d;
4503 \&        };
4504 .Ve
4505 .Sp
4506 .Vb 5
4507 \&        int f() {
4508 \&          a_union t;
4509 \&          t.d = 3.0;
4510 \&          return t.i;
4511 \&        }
4512 .Ve
4513 .Sp
4514 The practice of reading from a different union member than the one most
4515 recently written to (called ``type\-punning'') is common.  Even with
4516 \&\fB\-fstrict\-aliasing\fR, type-punning is allowed, provided the memory
4517 is accessed through the union type.  So, the code above will work as
4518 expected.  However, this code might not:
4519 .Sp
4520 .Vb 7
4521 \&        int f() {
4522 \&          a_union t;
4523 \&          int* ip;
4524 \&          t.d = 3.0;
4525 \&          ip = &t.i;
4526 \&          return *ip;
4527 \&        }
4528 .Ve
4529 .Sp
4530 Every language that wishes to perform language-specific alias analysis
4531 should define a function that computes, given an \f(CW\*(C`tree\*(C'\fR
4532 node, an alias set for the node.  Nodes in different alias sets are not
4533 allowed to alias.  For an example, see the C front-end function
4534 \&\f(CW\*(C`c_get_alias_set\*(C'\fR.
4535 .Sp
4536 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4537 .IP "\fB\-falign\-functions\fR" 4
4538 .IX Item "-falign-functions"
4539 .PD 0
4540 .IP "\fB\-falign\-functions=\fR\fIn\fR" 4
4541 .IX Item "-falign-functions=n"
4542 .PD
4543 Align the start of functions to the next power-of-two greater than
4544 \&\fIn\fR, skipping up to \fIn\fR bytes.  For instance,
4545 \&\fB\-falign\-functions=32\fR aligns functions to the next 32\-byte
4546 boundary, but \fB\-falign\-functions=24\fR would align to the next
4547 32\-byte boundary only if this can be done by skipping 23 bytes or less.
4548 .Sp
4549 \&\fB\-fno\-align\-functions\fR and \fB\-falign\-functions=1\fR are
4550 equivalent and mean that functions will not be aligned.
4551 .Sp
4552 Some assemblers only support this flag when \fIn\fR is a power of two;
4553 in that case, it is rounded up.
4554 .Sp
4555 If \fIn\fR is not specified or is zero, use a machine-dependent default.
4556 .Sp
4557 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4558 .IP "\fB\-falign\-labels\fR" 4
4559 .IX Item "-falign-labels"
4560 .PD 0
4561 .IP "\fB\-falign\-labels=\fR\fIn\fR" 4
4562 .IX Item "-falign-labels=n"
4563 .PD
4564 Align all branch targets to a power-of-two boundary, skipping up to
4565 \&\fIn\fR bytes like \fB\-falign\-functions\fR.  This option can easily
4566 make code slower, because it must insert dummy operations for when the
4567 branch target is reached in the usual flow of the code.
4568 .Sp
4569 \&\fB\-fno\-align\-labels\fR and \fB\-falign\-labels=1\fR are
4570 equivalent and mean that labels will not be aligned.
4571 .Sp
4572 If \fB\-falign\-loops\fR or \fB\-falign\-jumps\fR are applicable and
4573 are greater than this value, then their values are used instead.
4574 .Sp
4575 If \fIn\fR is not specified or is zero, use a machine-dependent default
4576 which is very likely to be \fB1\fR, meaning no alignment.
4577 .Sp
4578 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4579 .IP "\fB\-falign\-loops\fR" 4
4580 .IX Item "-falign-loops"
4581 .PD 0
4582 .IP "\fB\-falign\-loops=\fR\fIn\fR" 4
4583 .IX Item "-falign-loops=n"
4584 .PD
4585 Align loops to a power-of-two boundary, skipping up to \fIn\fR bytes
4586 like \fB\-falign\-functions\fR.  The hope is that the loop will be
4587 executed many times, which will make up for any execution of the dummy
4588 operations.
4589 .Sp
4590 \&\fB\-fno\-align\-loops\fR and \fB\-falign\-loops=1\fR are
4591 equivalent and mean that loops will not be aligned.
4592 .Sp
4593 If \fIn\fR is not specified or is zero, use a machine-dependent default.
4594 .Sp
4595 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4596 .IP "\fB\-falign\-jumps\fR" 4
4597 .IX Item "-falign-jumps"
4598 .PD 0
4599 .IP "\fB\-falign\-jumps=\fR\fIn\fR" 4
4600 .IX Item "-falign-jumps=n"
4601 .PD
4602 Align branch targets to a power-of-two boundary, for branch targets
4603 where the targets can only be reached by jumping, skipping up to \fIn\fR
4604 bytes like \fB\-falign\-functions\fR.  In this case, no dummy operations
4605 need be executed.
4606 .Sp
4607 \&\fB\-fno\-align\-jumps\fR and \fB\-falign\-jumps=1\fR are
4608 equivalent and mean that loops will not be aligned.
4609 .Sp
4610 If \fIn\fR is not specified or is zero, use a machine-dependent default.
4611 .Sp
4612 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4613 .IP "\fB\-funit\-at\-a\-time\fR" 4
4614 .IX Item "-funit-at-a-time"
4615 Parse the whole compilation unit before starting to produce code.
4616 This allows some extra optimizations to take place but consumes
4617 more memory (in general).  There are some compatibility issues
4618 with \fIunit-at-at-time\fR mode:
4619 .RS 4
4620 .IP "*" 4
4621 enabling \fIunit-at-a-time\fR mode may change the order
4622 in which functions, variables, and top-level \f(CW\*(C`asm\*(C'\fR statements
4623 are emitted, and will likely break code relying on some particular
4624 ordering.  The majority of such top-level \f(CW\*(C`asm\*(C'\fR statements,
4625 though, can be replaced by \f(CW\*(C`section\*(C'\fR attributes.
4626 .IP "*" 4
4627 \&\fIunit-at-a-time\fR mode removes unreferenced static variables
4628 and functions are removed.  This may result in undefined references
4629 when an \f(CW\*(C`asm\*(C'\fR statement refers directly to variables or functions
4630 that are otherwise unused.  In that case either the variable/function
4631 shall be listed as an operand of the \f(CW\*(C`asm\*(C'\fR statement operand or,
4632 in the case of top-level \f(CW\*(C`asm\*(C'\fR statements the attribute \f(CW\*(C`used\*(C'\fR
4633 shall be used on the declaration.
4634 .IP "*" 4
4635 Static functions now can use non-standard passing conventions that
4636 may break \f(CW\*(C`asm\*(C'\fR statements calling functions directly.  Again,
4637 attribute \f(CW\*(C`used\*(C'\fR will prevent this behavior.
4638 .RE
4639 .RS 4
4640 .Sp
4641 As a temporary workaround, \fB\-fno\-unit\-at\-a\-time\fR can be used,
4642 but this scheme may not be supported by future releases of \s-1GCC\s0.
4643 .Sp
4644 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4645 .RE
4646 .IP "\fB\-fweb\fR" 4
4647 .IX Item "-fweb"
4648 Constructs webs as commonly used for register allocation purposes and assign
4649 each web individual pseudo register.  This allows the register allocation pass
4650 to operate on pseudos directly, but also strengthens several other optimization
4651 passes, such as \s-1CSE\s0, loop optimizer and trivial dead code remover.  It can,
4652 however, make debugging impossible, since variables will no longer stay in a
4653 ``home register''.
4654 .Sp
4655 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR,
4656 on targets where the default format for debugging information supports
4657 variable tracking.
4658 .IP "\fB\-fno\-cprop\-registers\fR" 4
4659 .IX Item "-fno-cprop-registers"
4660 After register allocation and post-register allocation instruction splitting,
4661 we perform a copy-propagation pass to try to reduce scheduling dependencies
4662 and occasionally eliminate the copy.
4663 .Sp
4664 Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4665 .IP "\fB\-fprofile\-generate\fR" 4
4666 .IX Item "-fprofile-generate"
4667 Enable options usually used for instrumenting application to produce
4668 profile useful for later recompilation with profile feedback based
4669 optimization.  You must use \fB\-fprofile\-generate\fR both when
4670 compiling and when linking your program.
4671 .Sp
4672 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.
4673 .IP "\fB\-fprofile\-use\fR" 4
4674 .IX Item "-fprofile-use"
4675 Enable profile feedback directed optimizations, and optimizations
4676 generally profitable only with profile feedback available.
4677 .Sp
4678 The following options are enabled: \f(CW\*(C`\-fbranch\-probabilities\*(C'\fR,
4679 \&\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.
4680 .PP
4681 The following options control compiler behavior regarding floating
4682 point arithmetic.  These options trade off between speed and
4683 correctness.  All must be specifically enabled.
4684 .IP "\fB\-ffloat\-store\fR" 4
4685 .IX Item "-ffloat-store"
4686 Do not store floating point variables in registers, and inhibit other
4687 options that might change whether a floating point value is taken from a
4688 register or memory.
4689 .Sp
4690 This option prevents undesirable excess precision on machines such as
4691 the 68000 where the floating registers (of the 68881) keep more
4692 precision than a \f(CW\*(C`double\*(C'\fR is supposed to have.  Similarly for the
4693 x86 architecture.  For most programs, the excess precision does only
4694 good, but a few programs rely on the precise definition of \s-1IEEE\s0 floating
4695 point.  Use \fB\-ffloat\-store\fR for such programs, after modifying
4696 them to store all pertinent intermediate computations into variables.
4697 .IP "\fB\-ffast\-math\fR" 4
4698 .IX Item "-ffast-math"
4699 Sets \fB\-fno\-math\-errno\fR, \fB\-funsafe\-math\-optimizations\fR, \fB\-fno\-trapping\-math\fR, \fB\-ffinite\-math\-only\fR,
4700 \&\fB\-fno\-rounding\-math\fR, \fB\-fno\-signaling\-nans\fR
4701 and \fBfcx-limited-range\fR.
4702 .Sp
4703 This option causes the preprocessor macro \f(CW\*(C`_\|_FAST_MATH_\|_\*(C'\fR to be defined.
4704 .Sp
4705 This option should never be turned on by any \fB\-O\fR option since
4706 it can result in incorrect output for programs which depend on
4707 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
4708 math functions.
4709 .IP "\fB\-fno\-math\-errno\fR" 4
4710 .IX Item "-fno-math-errno"
4711 Do not set \s-1ERRNO\s0 after calling math functions that are executed
4712 with a single instruction, e.g., sqrt.  A program that relies on
4713 \&\s-1IEEE\s0 exceptions for math error handling may want to use this flag
4714 for speed while maintaining \s-1IEEE\s0 arithmetic compatibility.
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\-fmath\-errno\fR.
4722 .IP "\fB\-funsafe\-math\-optimizations\fR" 4
4723 .IX Item "-funsafe-math-optimizations"
4724 Allow optimizations for floating-point arithmetic that (a) assume
4725 that arguments and results are valid and (b) may violate \s-1IEEE\s0 or
4726 \&\s-1ANSI\s0 standards.  When used at link\-time, it may include libraries
4727 or startup files that change the default \s-1FPU\s0 control word or other
4728 similar optimizations.
4729 .Sp
4730 This option should never be turned on by any \fB\-O\fR option since
4731 it can result in incorrect output for programs which depend on
4732 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
4733 math functions.
4734 .Sp
4735 The default is \fB\-fno\-unsafe\-math\-optimizations\fR.
4736 .IP "\fB\-ffinite\-math\-only\fR" 4
4737 .IX Item "-ffinite-math-only"
4738 Allow optimizations for floating-point arithmetic that assume
4739 that arguments and results are not NaNs or +\-Infs.
4740 .Sp
4741 This option should never be turned on by any \fB\-O\fR option since
4742 it can result in incorrect output for programs which depend on
4743 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications.
4744 .Sp
4745 The default is \fB\-fno\-finite\-math\-only\fR.
4746 .IP "\fB\-fno\-trapping\-math\fR" 4
4747 .IX Item "-fno-trapping-math"
4748 Compile code assuming that floating-point operations cannot generate
4749 user-visible traps.  These traps include division by zero, overflow,
4750 underflow, inexact result and invalid operation.  This option implies
4751 \&\fB\-fno\-signaling\-nans\fR.  Setting this option may allow faster
4752 code if one relies on ``non\-stop'' \s-1IEEE\s0 arithmetic, for example.
4753 .Sp
4754 This option should never be turned on by any \fB\-O\fR option since
4755 it can result in incorrect output for programs which depend on
4756 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
4757 math functions.
4758 .Sp
4759 The default is \fB\-ftrapping\-math\fR.
4760 .IP "\fB\-frounding\-math\fR" 4
4761 .IX Item "-frounding-math"
4762 Disable transformations and optimizations that assume default floating
4763 point rounding behavior.  This is round-to-zero for all floating point
4764 to integer conversions, and round-to-nearest for all other arithmetic
4765 truncations.  This option should be specified for programs that change
4766 the \s-1FP\s0 rounding mode dynamically, or that may be executed with a
4767 non-default rounding mode.  This option disables constant folding of
4768 floating point expressions at compile-time (which may be affected by
4769 rounding mode) and arithmetic transformations that are unsafe in the
4770 presence of sign-dependent rounding modes.
4771 .Sp
4772 The default is \fB\-fno\-rounding\-math\fR.
4773 .Sp
4774 This option is experimental and does not currently guarantee to
4775 disable all \s-1GCC\s0 optimizations that are affected by rounding mode.
4776 Future versions of \s-1GCC\s0 may provide finer control of this setting
4777 using C99's \f(CW\*(C`FENV_ACCESS\*(C'\fR pragma.  This command line option
4778 will be used to specify the default state for \f(CW\*(C`FENV_ACCESS\*(C'\fR.
4779 .IP "\fB\-fsignaling\-nans\fR" 4
4780 .IX Item "-fsignaling-nans"
4781 Compile code assuming that \s-1IEEE\s0 signaling NaNs may generate user-visible
4782 traps during floating-point operations.  Setting this option disables
4783 optimizations that may change the number of exceptions visible with
4784 signaling NaNs.  This option implies \fB\-ftrapping\-math\fR.
4785 .Sp
4786 This option causes the preprocessor macro \f(CW\*(C`_\|_SUPPORT_SNAN_\|_\*(C'\fR to
4787 be defined.
4788 .Sp
4789 The default is \fB\-fno\-signaling\-nans\fR.
4790 .Sp
4791 This option is experimental and does not currently guarantee to
4792 disable all \s-1GCC\s0 optimizations that affect signaling NaN behavior.
4793 .IP "\fB\-fsingle\-precision\-constant\fR" 4
4794 .IX Item "-fsingle-precision-constant"
4795 Treat floating point constant as single precision constant instead of
4796 implicitly converting it to double precision constant.
4797 .IP "\fB\-fcx\-limited\-range\fR" 4
4798 .IX Item "-fcx-limited-range"
4799 .PD 0
4800 .IP "\fB\-fno\-cx\-limited\-range\fR" 4
4801 .IX Item "-fno-cx-limited-range"
4802 .PD
4803 When enabled, this option states that a range reduction step is not
4804 needed when performing complex division.  The default is
4805 \&\fB\-fno\-cx\-limited\-range\fR, but is enabled by \fB\-ffast\-math\fR.
4806 .Sp
4807 This option controls the default setting of the \s-1ISO\s0 C99 
4808 \&\f(CW\*(C`CX_LIMITED_RANGE\*(C'\fR pragma.  Nevertheless, the option applies to
4809 all languages.
4810 .PP
4811 The following options control optimizations that may improve
4812 performance, but are not enabled by any \fB\-O\fR options.  This
4813 section includes experimental options that may produce broken code.
4814 .IP "\fB\-fbranch\-probabilities\fR" 4
4815 .IX Item "-fbranch-probabilities"
4816 After running a program compiled with \fB\-fprofile\-arcs\fR, you can compile it a second time using
4817 \&\fB\-fbranch\-probabilities\fR, to improve optimizations based on
4818 the number of times each branch was taken.  When the program
4819 compiled with \fB\-fprofile\-arcs\fR exits it saves arc execution
4820 counts to a file called \fI\fIsourcename\fI.gcda\fR for each source
4821 file  The information in this data file is very dependent on the
4822 structure of the generated code, so you must use the same source code
4823 and the same optimization options for both compilations.
4824 .Sp
4825 With \fB\-fbranch\-probabilities\fR, \s-1GCC\s0 puts a
4826 \&\fB\s-1REG_BR_PROB\s0\fR note on each \fB\s-1JUMP_INSN\s0\fR and \fB\s-1CALL_INSN\s0\fR.
4827 These can be used to improve optimization.  Currently, they are only
4828 used in one place: in \fIreorg.c\fR, instead of guessing which path a
4829 branch is mostly to take, the \fB\s-1REG_BR_PROB\s0\fR values are used to
4830 exactly determine which path is taken more often.
4831 .IP "\fB\-fprofile\-values\fR" 4
4832 .IX Item "-fprofile-values"
4833 If combined with \fB\-fprofile\-arcs\fR, it adds code so that some
4834 data about values of expressions in the program is gathered.
4835 .Sp
4836 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
4837 from profiling values of expressions and adds \fB\s-1REG_VALUE_PROFILE\s0\fR
4838 notes to instructions for their later usage in optimizations.
4839 .Sp
4840 Enabled with \fB\-fprofile\-generate\fR and \fB\-fprofile\-use\fR.
4841 .IP "\fB\-fvpt\fR" 4
4842 .IX Item "-fvpt"
4843 If combined with \fB\-fprofile\-arcs\fR, it instructs the compiler to add
4844 a code to gather information about values of expressions.
4845 .Sp
4846 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
4847 and actually performs the optimizations based on them.
4848 Currently the optimizations include specialization of division operation
4849 using the knowledge about the value of the denominator.
4850 .IP "\fB\-fspeculative\-prefetching\fR" 4
4851 .IX Item "-fspeculative-prefetching"
4852 If combined with \fB\-fprofile\-arcs\fR, it instructs the compiler to add
4853 a code to gather information about addresses of memory references in the
4854 program.
4855 .Sp
4856 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
4857 and issues prefetch instructions according to them.  In addition to the opportunities
4858 noticed by \fB\-fprefetch\-loop\-arrays\fR, it also notices more complicated
4859 memory access patterns\-\-\-for example accesses to the data stored in linked
4860 list whose elements are usually allocated sequentially.
4861 .Sp
4862 In order to prevent issuing double prefetches, usage of
4863 \&\fB\-fspeculative\-prefetching\fR implies \fB\-fno\-prefetch\-loop\-arrays\fR.
4864 .Sp
4865 Enabled with \fB\-fprofile\-generate\fR and \fB\-fprofile\-use\fR.
4866 .IP "\fB\-frename\-registers\fR" 4
4867 .IX Item "-frename-registers"
4868 Attempt to avoid false dependencies in scheduled code by making use
4869 of registers left over after register allocation.  This optimization
4870 will most benefit processors with lots of registers.  Depending on the
4871 debug information format adopted by the target, however, it can
4872 make debugging impossible, since variables will no longer stay in
4873 a ``home register''.
4874 .Sp
4875 Not enabled by default at any level because it has known bugs.
4876 .IP "\fB\-ftracer\fR" 4
4877 .IX Item "-ftracer"
4878 Perform tail duplication to enlarge superblock size.  This transformation
4879 simplifies the control flow of the function allowing other optimizations to do
4880 better job.
4881 .Sp
4882 Enabled with \fB\-fprofile\-use\fR.
4883 .IP "\fB\-funroll\-loops\fR" 4
4884 .IX Item "-funroll-loops"
4885 Unroll loops whose number of iterations can be determined at compile time or
4886 upon entry to the loop.  \fB\-funroll\-loops\fR implies
4887 \&\fB\-frerun\-cse\-after\-loop\fR.  It also turns on complete loop peeling
4888 (i.e. complete removal of loops with small constant number of iterations).
4889 This option makes code larger, and may or may not make it run faster.
4890 .Sp
4891 Enabled with \fB\-fprofile\-use\fR.
4892 .IP "\fB\-funroll\-all\-loops\fR" 4
4893 .IX Item "-funroll-all-loops"
4894 Unroll all loops, even if their number of iterations is uncertain when
4895 the loop is entered.  This usually makes programs run more slowly.
4896 \&\fB\-funroll\-all\-loops\fR implies the same options as
4897 \&\fB\-funroll\-loops\fR.
4898 .IP "\fB\-fpeel\-loops\fR" 4
4899 .IX Item "-fpeel-loops"
4900 Peels the loops for that there is enough information that they do not
4901 roll much (from profile feedback).  It also turns on complete loop peeling
4902 (i.e. complete removal of loops with small constant number of iterations).
4903 .Sp
4904 Enabled with \fB\-fprofile\-use\fR.
4905 .IP "\fB\-fmove\-loop\-invariants\fR" 4
4906 .IX Item "-fmove-loop-invariants"
4907 Enables the loop invariant motion pass in the new loop optimizer.  Enabled
4908 at level \fB\-O1\fR
4909 .IP "\fB\-funswitch\-loops\fR" 4
4910 .IX Item "-funswitch-loops"
4911 Move branches with loop invariant conditions out of the loop, with duplicates
4912 of the loop on both branches (modified according to result of the condition).
4913 .IP "\fB\-fprefetch\-loop\-arrays\fR" 4
4914 .IX Item "-fprefetch-loop-arrays"
4915 If supported by the target machine, generate instructions to prefetch
4916 memory to improve the performance of loops that access large arrays.
4917 .Sp
4918 Disabled at level \fB\-Os\fR.
4919 .IP "\fB\-ffunction\-sections\fR" 4
4920 .IX Item "-ffunction-sections"
4921 .PD 0
4922 .IP "\fB\-fdata\-sections\fR" 4
4923 .IX Item "-fdata-sections"
4924 .PD
4925 Place each function or data item into its own section in the output
4926 file if the target supports arbitrary sections.  The name of the
4927 function or the name of the data item determines the section's name
4928 in the output file.
4929 .Sp
4930 Use these options on systems where the linker can perform optimizations
4931 to improve locality of reference in the instruction space.  Most systems
4932 using the \s-1ELF\s0 object format and \s-1SPARC\s0 processors running Solaris 2 have
4933 linkers with such optimizations.  \s-1AIX\s0 may have these optimizations in
4934 the future.
4935 .Sp
4936 Only use these options when there are significant benefits from doing
4937 so.  When you specify these options, the assembler and linker will
4938 create larger object and executable files and will also be slower.
4939 You will not be able to use \f(CW\*(C`gprof\*(C'\fR on all systems if you
4940 specify this option and you may have problems with debugging if
4941 you specify both this option and \fB\-g\fR.
4942 .IP "\fB\-fbranch\-target\-load\-optimize\fR" 4
4943 .IX Item "-fbranch-target-load-optimize"
4944 Perform branch target register load optimization before prologue / epilogue
4945 threading.
4946 The use of target registers can typically be exposed only during reload,
4947 thus hoisting loads out of loops and doing inter-block scheduling needs
4948 a separate optimization pass.
4949 .IP "\fB\-fbranch\-target\-load\-optimize2\fR" 4
4950 .IX Item "-fbranch-target-load-optimize2"
4951 Perform branch target register load optimization after prologue / epilogue
4952 threading.
4953 .IP "\fB\-fbtr\-bb\-exclusive\fR" 4
4954 .IX Item "-fbtr-bb-exclusive"
4955 When performing branch target register load optimization, don't reuse
4956 branch target registers in within any basic block.
4957 .IP "\fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR" 4
4958 .IX Item "--param name=value"
4959 In some places, \s-1GCC\s0 uses various constants to control the amount of
4960 optimization that is done.  For example, \s-1GCC\s0 will not inline functions
4961 that contain more that a certain number of instructions.  You can
4962 control some of these constants on the command-line using the
4963 \&\fB\-\-param\fR option.
4964 .Sp
4965 The names of specific parameters, and the meaning of the values, are
4966 tied to the internals of the compiler, and are subject to change
4967 without notice in future releases.
4968 .Sp
4969 In each case, the \fIvalue\fR is an integer.  The allowable choices for
4970 \&\fIname\fR are given in the following table:
4971 .RS 4
4972 .IP "\fBsra-max-structure-size\fR" 4
4973 .IX Item "sra-max-structure-size"
4974 The maximum structure size, in bytes, at which the scalar replacement
4975 of aggregates (\s-1SRA\s0) optimization will perform block copies.  The
4976 default value, 0, implies that \s-1GCC\s0 will select the most appropriate
4977 size itself.
4978 .IP "\fBsra-field-structure-ratio\fR" 4
4979 .IX Item "sra-field-structure-ratio"
4980 The threshold ratio (as a percentage) between instantiated fields and
4981 the complete structure size.  We say that if the ratio of the number
4982 of bytes in instantiated fields to the number of bytes in the complete
4983 structure exceeds this parameter, then block copies are not used.  The
4984 default is 75.
4985 .IP "\fBmax-crossjump-edges\fR" 4
4986 .IX Item "max-crossjump-edges"
4987 The maximum number of incoming edges to consider for crossjumping.
4988 The algorithm used by \fB\-fcrossjumping\fR is O(N^2) in
4989 the number of edges incoming to each block.  Increasing values mean
4990 more aggressive optimization, making the compile time increase with
4991 probably small improvement in executable size.
4992 .IP "\fBmin-crossjump-insns\fR" 4
4993 .IX Item "min-crossjump-insns"
4994 The minimum number of instructions which must be matched at the end
4995 of two blocks before crossjumping will be performed on them.  This
4996 value is ignored in the case where all instructions in the block being
4997 crossjumped from are matched.  The default value is 5.
4998 .IP "\fBmax-goto-duplication-insns\fR" 4
4999 .IX Item "max-goto-duplication-insns"
5000 The maximum number of instructions to duplicate to a block that jumps
5001 to a computed goto.  To avoid O(N^2) behavior in a number of
5002 passes, \s-1GCC\s0 factors computed gotos early in the compilation process,
5003 and unfactors them as late as possible.  Only computed jumps at the
5004 end of a basic blocks with no more than max-goto-duplication-insns are
5005 unfactored.  The default value is 8.
5006 .IP "\fBmax-delay-slot-insn-search\fR" 4
5007 .IX Item "max-delay-slot-insn-search"
5008 The maximum number of instructions to consider when looking for an
5009 instruction to fill a delay slot.  If more than this arbitrary number of
5010 instructions is searched, the time savings from filling the delay slot
5011 will be minimal so stop searching.  Increasing values mean more
5012 aggressive optimization, making the compile time increase with probably
5013 small improvement in executable run time.
5014 .IP "\fBmax-delay-slot-live-search\fR" 4
5015 .IX Item "max-delay-slot-live-search"
5016 When trying to fill delay slots, the maximum number of instructions to
5017 consider when searching for a block with valid live register
5018 information.  Increasing this arbitrarily chosen value means more
5019 aggressive optimization, increasing the compile time.  This parameter
5020 should be removed when the delay slot code is rewritten to maintain the
5021 control-flow graph.
5022 .IP "\fBmax-gcse-memory\fR" 4
5023 .IX Item "max-gcse-memory"
5024 The approximate maximum amount of memory that will be allocated in
5025 order to perform the global common subexpression elimination
5026 optimization.  If more memory than specified is required, the
5027 optimization will not be done.
5028 .IP "\fBmax-gcse-passes\fR" 4
5029 .IX Item "max-gcse-passes"
5030 The maximum number of passes of \s-1GCSE\s0 to run.  The default is 1.
5031 .IP "\fBmax-pending-list-length\fR" 4
5032 .IX Item "max-pending-list-length"
5033 The maximum number of pending dependencies scheduling will allow
5034 before flushing the current state and starting over.  Large functions
5035 with few branches or calls can create excessively large lists which
5036 needlessly consume memory and resources.
5037 .IP "\fBmax-inline-insns-single\fR" 4
5038 .IX Item "max-inline-insns-single"
5039 Several parameters control the tree inliner used in gcc.
5040 This number sets the maximum number of instructions (counted in \s-1GCC\s0's
5041 internal representation) in a single function that the tree inliner
5042 will consider for inlining.  This only affects functions declared
5043 inline and methods implemented in a class declaration (\*(C+).
5044 The default value is 450.
5045 .IP "\fBmax-inline-insns-auto\fR" 4
5046 .IX Item "max-inline-insns-auto"
5047 When you use \fB\-finline\-functions\fR (included in \fB\-O3\fR),
5048 a lot of functions that would otherwise not be considered for inlining
5049 by the compiler will be investigated.  To those functions, a different
5050 (more restrictive) limit compared to functions declared inline can
5051 be applied.
5052 The default value is 90.
5053 .IP "\fBlarge-function-insns\fR" 4
5054 .IX Item "large-function-insns"
5055 The limit specifying really large functions.  For functions larger than this
5056 limit after inlining inlining is constrained by
5057 \&\fB\-\-param large-function-growth\fR.  This parameter is useful primarily
5058 to avoid extreme compilation time caused by non-linear algorithms used by the
5059 backend.
5060 This parameter is ignored when \fB\-funit\-at\-a\-time\fR is not used.
5061 The default value is 2700.
5062 .IP "\fBlarge-function-growth\fR" 4
5063 .IX Item "large-function-growth"
5064 Specifies maximal growth of large function caused by inlining in percents.
5065 This parameter is ignored when \fB\-funit\-at\-a\-time\fR is not used.
5066 The default value is 100 which limits large function growth to 2.0 times
5067 the original size.
5068 .IP "\fBinline-unit-growth\fR" 4
5069 .IX Item "inline-unit-growth"
5070 Specifies maximal overall growth of the compilation unit caused by inlining.
5071 This parameter is ignored when \fB\-funit\-at\-a\-time\fR is not used.
5072 The default value is 50 which limits unit growth to 1.5 times the original
5073 size.
5074 .IP "\fBmax-inline-insns-recursive\fR" 4
5075 .IX Item "max-inline-insns-recursive"
5076 .PD 0
5077 .IP "\fBmax-inline-insns-recursive-auto\fR" 4
5078 .IX Item "max-inline-insns-recursive-auto"
5079 .PD
5080 Specifies maximum number of instructions out-of-line copy of self recursive inline
5081 function can grow into by performing recursive inlining.
5082 .Sp
5083 For functions declared inline \fB\-\-param max-inline-insns-recursive\fR is
5084 taken into acount.  For function not declared inline, recursive inlining
5085 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
5086 enabled and \fB\-\-param max-inline-insns-recursive-auto\fR is used.  The
5087 default value is 450.
5088 .IP "\fBmax-inline-recursive-depth\fR" 4
5089 .IX Item "max-inline-recursive-depth"
5090 .PD 0
5091 .IP "\fBmax-inline-recursive-depth-auto\fR" 4
5092 .IX Item "max-inline-recursive-depth-auto"
5093 .PD
5094 Specifies maximum recursion depth used by the recursive inlining.
5095 .Sp
5096 For functions declared inline \fB\-\-param max-inline-recursive-depth\fR is
5097 taken into acount.  For function not declared inline, recursive inlining
5098 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
5099 enabled and \fB\-\-param max-inline-recursive-depth-auto\fR is used.  The
5100 default value is 450.
5101 .IP "\fBinline-call-cost\fR" 4
5102 .IX Item "inline-call-cost"
5103 Specify cost of call instruction relative to simple arithmetics operations
5104 (having cost of 1).  Increasing this cost disqualify inlinining of non-leaf
5105 functions and at same time increase size of leaf function that is believed to
5106 reduce function size by being inlined.  In effect it increase amount of
5107 inlining for code having large abstraction penalty (many functions that just
5108 pass the argumetns to other functions) and decrease inlining for code with low
5109 abstraction penalty.  Default value is 16.
5110 .IP "\fBmax-unrolled-insns\fR" 4
5111 .IX Item "max-unrolled-insns"
5112 The maximum number of instructions that a loop should have if that loop
5113 is unrolled, and if the loop is unrolled, it determines how many times
5114 the loop code is unrolled.
5115 .IP "\fBmax-average-unrolled-insns\fR" 4
5116 .IX Item "max-average-unrolled-insns"
5117 The maximum number of instructions biased by probabilities of their execution
5118 that a loop should have if that loop is unrolled, and if the loop is unrolled,
5119 it determines how many times the loop code is unrolled.
5120 .IP "\fBmax-unroll-times\fR" 4
5121 .IX Item "max-unroll-times"
5122 The maximum number of unrollings of a single loop.
5123 .IP "\fBmax-peeled-insns\fR" 4
5124 .IX Item "max-peeled-insns"
5125 The maximum number of instructions that a loop should have if that loop
5126 is peeled, and if the loop is peeled, it determines how many times
5127 the loop code is peeled.
5128 .IP "\fBmax-peel-times\fR" 4
5129 .IX Item "max-peel-times"
5130 The maximum number of peelings of a single loop.
5131 .IP "\fBmax-completely-peeled-insns\fR" 4
5132 .IX Item "max-completely-peeled-insns"
5133 The maximum number of insns of a completely peeled loop.
5134 .IP "\fBmax-completely-peel-times\fR" 4
5135 .IX Item "max-completely-peel-times"
5136 The maximum number of iterations of a loop to be suitable for complete peeling.
5137 .IP "\fBmax-unswitch-insns\fR" 4
5138 .IX Item "max-unswitch-insns"
5139 The maximum number of insns of an unswitched loop.
5140 .IP "\fBmax-unswitch-level\fR" 4
5141 .IX Item "max-unswitch-level"
5142 The maximum number of branches unswitched in a single loop.
5143 .IP "\fBlim-expensive\fR" 4
5144 .IX Item "lim-expensive"
5145 The minimum cost of an expensive expression in the loop invariant motion.
5146 .IP "\fBiv-consider-all-candidates-bound\fR" 4
5147 .IX Item "iv-consider-all-candidates-bound"
5148 Bound on number of candidates for induction variables below that
5149 all candidates are considered for each use in induction variable
5150 optimizations.  Only the most relevant candidates are considered
5151 if there are more candidates, to avoid quadratic time complexity.
5152 .IP "\fBiv-max-considered-uses\fR" 4
5153 .IX Item "iv-max-considered-uses"
5154 The induction variable optimizations give up on loops that contain more
5155 induction variable uses.
5156 .IP "\fBiv-always-prune-cand-set-bound\fR" 4
5157 .IX Item "iv-always-prune-cand-set-bound"
5158 If number of candidates in the set is smaller than this value,
5159 we always try to remove unnecessary ivs from the set during its
5160 optimization when a new iv is added to the set.
5161 .IP "\fBscev-max-expr-size\fR" 4
5162 .IX Item "scev-max-expr-size"
5163 Bound on size of expressions used in the scalar evolutions analyzer.
5164 Large expressions slow the analyzer.
5165 .IP "\fBmax-iterations-to-track\fR" 4
5166 .IX Item "max-iterations-to-track"
5167 The maximum number of iterations of a loop the brute force algorithm
5168 for analysis of # of iterations of the loop tries to evaluate.
5169 .IP "\fBhot-bb-count-fraction\fR" 4
5170 .IX Item "hot-bb-count-fraction"
5171 Select fraction of the maximal count of repetitions of basic block in program
5172 given basic block needs to have to be considered hot.
5173 .IP "\fBhot-bb-frequency-fraction\fR" 4
5174 .IX Item "hot-bb-frequency-fraction"
5175 Select fraction of the maximal frequency of executions of basic block in
5176 function given basic block needs to have to be considered hot
5177 .IP "\fBtracer-dynamic-coverage\fR" 4
5178 .IX Item "tracer-dynamic-coverage"
5179 .PD 0
5180 .IP "\fBtracer-dynamic-coverage-feedback\fR" 4
5181 .IX Item "tracer-dynamic-coverage-feedback"
5182 .PD
5183 This value is used to limit superblock formation once the given percentage of
5184 executed instructions is covered.  This limits unnecessary code size
5185 expansion.
5186 .Sp
5187 The \fBtracer-dynamic-coverage-feedback\fR is used only when profile
5188 feedback is available.  The real profiles (as opposed to statically estimated
5189 ones) are much less balanced allowing the threshold to be larger value.
5190 .IP "\fBtracer-max-code-growth\fR" 4
5191 .IX Item "tracer-max-code-growth"
5192 Stop tail duplication once code growth has reached given percentage.  This is
5193 rather hokey argument, as most of the duplicates will be eliminated later in
5194 cross jumping, so it may be set to much higher values than is the desired code
5195 growth.
5196 .IP "\fBtracer-min-branch-ratio\fR" 4
5197 .IX Item "tracer-min-branch-ratio"
5198 Stop reverse growth when the reverse probability of best edge is less than this
5199 threshold (in percent).
5200 .IP "\fBtracer-min-branch-ratio\fR" 4
5201 .IX Item "tracer-min-branch-ratio"
5202 .PD 0
5203 .IP "\fBtracer-min-branch-ratio-feedback\fR" 4
5204 .IX Item "tracer-min-branch-ratio-feedback"
5205 .PD
5206 Stop forward growth if the best edge do have probability lower than this
5207 threshold.
5208 .Sp
5209 Similarly to \fBtracer-dynamic-coverage\fR two values are present, one for
5210 compilation for profile feedback and one for compilation without.  The value
5211 for compilation with profile feedback needs to be more conservative (higher) in
5212 order to make tracer effective.
5213 .IP "\fBmax-cse-path-length\fR" 4
5214 .IX Item "max-cse-path-length"
5215 Maximum number of basic blocks on path that cse considers.  The default is 10.
5216 .IP "\fBglobal-var-threshold\fR" 4
5217 .IX Item "global-var-threshold"
5218 Counts the number of function calls (\fIn\fR) and the number of
5219 call-clobbered variables (\fIv\fR).  If \fIn\fRx\fIv\fR is larger than this limit, a
5220 single artificial variable will be created to represent all the
5221 call-clobbered variables at function call sites.  This artificial
5222 variable will then be made to alias every call-clobbered variable.
5223 (done as \f(CW\*(C`int * size_t\*(C'\fR on the host machine; beware overflow).
5224 .IP "\fBmax-aliased-vops\fR" 4
5225 .IX Item "max-aliased-vops"
5226 Maximum number of virtual operands allowed to represent aliases
5227 before triggering the alias grouping heuristic.  Alias grouping
5228 reduces compile times and memory consumption needed for aliasing at
5229 the expense of precision loss in alias information.
5230 .IP "\fBggc-min-expand\fR" 4
5231 .IX Item "ggc-min-expand"
5232 \&\s-1GCC\s0 uses a garbage collector to manage its own memory allocation.  This
5233 parameter specifies the minimum percentage by which the garbage
5234 collector's heap should be allowed to expand between collections.
5235 Tuning this may improve compilation speed; it has no effect on code
5236 generation.
5237 .Sp
5238 The default is 30% + 70% * (\s-1RAM/1GB\s0) with an upper bound of 100% when
5239 \&\s-1RAM\s0 >= 1GB.  If \f(CW\*(C`getrlimit\*(C'\fR is available, the notion of \*(L"\s-1RAM\s0\*(R" is
5240 the smallest of actual \s-1RAM\s0 and \f(CW\*(C`RLIMIT_DATA\*(C'\fR or \f(CW\*(C`RLIMIT_AS\*(C'\fR.  If
5241 \&\s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a particular platform, the lower
5242 bound of 30% is used.  Setting this parameter and
5243 \&\fBggc-min-heapsize\fR to zero causes a full collection to occur at
5244 every opportunity.  This is extremely slow, but can be useful for
5245 debugging.
5246 .IP "\fBggc-min-heapsize\fR" 4
5247 .IX Item "ggc-min-heapsize"
5248 Minimum size of the garbage collector's heap before it begins bothering
5249 to collect garbage.  The first collection occurs after the heap expands
5250 by \fBggc-min-expand\fR% beyond \fBggc-min-heapsize\fR.  Again,
5251 tuning this may improve compilation speed, and has no effect on code
5252 generation.
5253 .Sp
5254 The default is the smaller of \s-1RAM/8\s0, \s-1RLIMIT_RSS\s0, or a limit which
5255 tries to ensure that \s-1RLIMIT_DATA\s0 or \s-1RLIMIT_AS\s0 are not exceeded, but
5256 with a lower bound of 4096 (four megabytes) and an upper bound of
5257 131072 (128 megabytes).  If \s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a
5258 particular platform, the lower bound is used.  Setting this parameter
5259 very large effectively disables garbage collection.  Setting this
5260 parameter and \fBggc-min-expand\fR to zero causes a full collection
5261 to occur at every opportunity.
5262 .IP "\fBmax-reload-search-insns\fR" 4
5263 .IX Item "max-reload-search-insns"
5264 The maximum number of instruction reload should look backward for equivalent
5265 register.  Increasing values mean more aggressive optimization, making the
5266 compile time increase with probably slightly better performance.  The default
5267 value is 100.
5268 .IP "\fBmax-cselib-memory-location\fR" 4
5269 .IX Item "max-cselib-memory-location"
5270 The maximum number of memory locations cselib should take into acount.
5271 Increasing values mean more aggressive optimization, making the compile time
5272 increase with probably slightly better performance.  The default value is 500.
5273 .IP "\fBreorder-blocks-duplicate\fR" 4
5274 .IX Item "reorder-blocks-duplicate"
5275 .PD 0
5276 .IP "\fBreorder-blocks-duplicate-feedback\fR" 4
5277 .IX Item "reorder-blocks-duplicate-feedback"
5278 .PD
5279 Used by basic block reordering pass to decide whether to use unconditional
5280 branch or duplicate the code on its destination.  Code is duplicated when its
5281 estimated size is smaller than this value multiplied by the estimated size of
5282 unconditional jump in the hot spots of the program.
5283 .Sp
5284 The \fBreorder-block-duplicate-feedback\fR is used only when profile
5285 feedback is available and may be set to higher values than
5286 \&\fBreorder-block-duplicate\fR since information about the hot spots is more
5287 accurate.
5288 .IP "\fBmax-sched-region-blocks\fR" 4
5289 .IX Item "max-sched-region-blocks"
5290 The maximum number of blocks in a region to be considered for
5291 interblock scheduling.  The default value is 10.
5292 .IP "\fBmax-sched-region-insns\fR" 4
5293 .IX Item "max-sched-region-insns"
5294 The maximum number of insns in a region to be considered for
5295 interblock scheduling.  The default value is 100.
5296 .IP "\fBmax-last-value-rtl\fR" 4
5297 .IX Item "max-last-value-rtl"
5298 The maximum size measured as number of RTLs that can be recorded in an expression
5299 in combiner for a pseudo register as last known value of that register.  The default
5300 is 10000.
5301 .IP "\fBinteger-share-limit\fR" 4
5302 .IX Item "integer-share-limit"
5303 Small integer constants can use a shared data structure, reducing the
5304 compiler's memory usage and increasing its speed.  This sets the maximum
5305 value of a shared integer constant's.  The default value is 256.
5306 .RE
5307 .RS 4
5308 .RE
5309 .Sh "Options Controlling the Preprocessor"
5310 .IX Subsection "Options Controlling the Preprocessor"
5311 These options control the C preprocessor, which is run on each C source
5312 file before actual compilation.
5313 .PP
5314 If you use the \fB\-E\fR option, nothing is done except preprocessing.
5315 Some of these options make sense only together with \fB\-E\fR because
5316 they cause the preprocessor output to be unsuitable for actual
5317 compilation.
5318 .Sp
5319 .RS 4
5320 You can use \fB\-Wp,\fR\fIoption\fR to bypass the compiler driver
5321 and pass \fIoption\fR directly through to the preprocessor.  If
5322 \&\fIoption\fR contains commas, it is split into multiple options at the
5323 commas.  However, many options are modified, translated or interpreted
5324 by the compiler driver before being passed to the preprocessor, and
5325 \&\fB\-Wp\fR forcibly bypasses this phase.  The preprocessor's direct
5326 interface is undocumented and subject to change, so whenever possible
5327 you should avoid using \fB\-Wp\fR and let the driver handle the
5328 options instead.
5329 .RE
5330 .IP "\fB\-Xpreprocessor\fR \fIoption\fR" 4
5331 .IX Item "-Xpreprocessor option"
5332 Pass \fIoption\fR as an option to the preprocessor.  You can use this to
5333 supply system-specific preprocessor options which \s-1GCC\s0 does not know how to
5334 recognize.
5335 .Sp
5336 If you want to pass an option that takes an argument, you must use
5337 \&\fB\-Xpreprocessor\fR twice, once for the option and once for the argument.
5338 .IP "\fB\-D\fR \fIname\fR" 4
5339 .IX Item "-D name"
5340 Predefine \fIname\fR as a macro, with definition \f(CW1\fR.
5341 .IP "\fB\-D\fR \fIname\fR\fB=\fR\fIdefinition\fR" 4
5342 .IX Item "-D name=definition"
5343 The contents of \fIdefinition\fR are tokenized and processed as if
5344 they appeared during translation phase three in a \fB#define\fR
5345 directive.  In particular, the definition will be truncated by
5346 embedded newline characters.
5347 .Sp
5348 If you are invoking the preprocessor from a shell or shell-like
5349 program you may need to use the shell's quoting syntax to protect
5350 characters such as spaces that have a meaning in the shell syntax.
5351 .Sp
5352 If you wish to define a function-like macro on the command line, write
5353 its argument list with surrounding parentheses before the equals sign
5354 (if any).  Parentheses are meaningful to most shells, so you will need
5355 to quote the option.  With \fBsh\fR and \fBcsh\fR,
5356 \&\fB\-D'\fR\fIname\fR\fB(\fR\fIargs...\fR\fB)=\fR\fIdefinition\fR\fB'\fR works.
5357 .Sp
5358 \&\fB\-D\fR and \fB\-U\fR options are processed in the order they
5359 are given on the command line.  All \fB\-imacros\fR \fIfile\fR and
5360 \&\fB\-include\fR \fIfile\fR options are processed after all
5361 \&\fB\-D\fR and \fB\-U\fR options.
5362 .IP "\fB\-U\fR \fIname\fR" 4
5363 .IX Item "-U name"
5364 Cancel any previous definition of \fIname\fR, either built in or
5365 provided with a \fB\-D\fR option.
5366 .IP "\fB\-undef\fR" 4
5367 .IX Item "-undef"
5368 Do not predefine any system-specific or GCC-specific macros.  The
5369 standard predefined macros remain defined.
5370 .IP "\fB\-I\fR \fIdir\fR" 4
5371 .IX Item "-I dir"
5372 Add the directory \fIdir\fR to the list of directories to be searched
5373 for header files.
5374 Directories named by \fB\-I\fR are searched before the standard
5375 system include directories.  If the directory \fIdir\fR is a standard
5376 system include directory, the option is ignored to ensure that the
5377 default search order for system directories and the special treatment
5378 of system headers are not defeated
5379 \&.
5380 .IP "\fB\-o\fR \fIfile\fR" 4
5381 .IX Item "-o file"
5382 Write output to \fIfile\fR.  This is the same as specifying \fIfile\fR
5383 as the second non-option argument to \fBcpp\fR.  \fBgcc\fR has a
5384 different interpretation of a second non-option argument, so you must
5385 use \fB\-o\fR to specify the output file.
5386 .IP "\fB\-Wall\fR" 4
5387 .IX Item "-Wall"
5388 Turns on all optional warnings which are desirable for normal code.
5389 At present this is \fB\-Wcomment\fR, \fB\-Wtrigraphs\fR,
5390 \&\fB\-Wmultichar\fR and a warning about integer promotion causing a
5391 change of sign in \f(CW\*(C`#if\*(C'\fR expressions.  Note that many of the
5392 preprocessor's warnings are on by default and have no options to
5393 control them.
5394 .IP "\fB\-Wcomment\fR" 4
5395 .IX Item "-Wcomment"
5396 .PD 0
5397 .IP "\fB\-Wcomments\fR" 4
5398 .IX Item "-Wcomments"
5399 .PD
5400 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
5401 comment, or whenever a backslash-newline appears in a \fB//\fR comment.
5402 (Both forms have the same effect.)
5403 .IP "\fB\-Wtrigraphs\fR" 4
5404 .IX Item "-Wtrigraphs"
5405 @anchor{Wtrigraphs}
5406 Most trigraphs in comments cannot affect the meaning of the program.
5407 However, a trigraph that would form an escaped newline (\fB??/\fR at
5408 the end of a line) can, by changing where the comment begins or ends.
5409 Therefore, only trigraphs that would form escaped newlines produce
5410 warnings inside a comment.
5411 .Sp
5412 This option is implied by \fB\-Wall\fR.  If \fB\-Wall\fR is not
5413 given, this option is still enabled unless trigraphs are enabled.  To
5414 get trigraph conversion without warnings, but get the other
5415 \&\fB\-Wall\fR warnings, use \fB\-trigraphs \-Wall \-Wno\-trigraphs\fR.
5416 .IP "\fB\-Wtraditional\fR" 4
5417 .IX Item "-Wtraditional"
5418 Warn about certain constructs that behave differently in traditional and
5419 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
5420 equivalent, and problematic constructs which should be avoided.
5421 .IP "\fB\-Wimport\fR" 4
5422 .IX Item "-Wimport"
5423 Warn the first time \fB#import\fR is used.
5424 .IP "\fB\-Wundef\fR" 4
5425 .IX Item "-Wundef"
5426 Warn whenever an identifier which is not a macro is encountered in an
5427 \&\fB#if\fR directive, outside of \fBdefined\fR.  Such identifiers are
5428 replaced with zero.
5429 .IP "\fB\-Wunused\-macros\fR" 4
5430 .IX Item "-Wunused-macros"
5431 Warn about macros defined in the main file that are unused.  A macro
5432 is \fIused\fR if it is expanded or tested for existence at least once.
5433 The preprocessor will also warn if the macro has not been used at the
5434 time it is redefined or undefined.
5435 .Sp
5436 Built-in macros, macros defined on the command line, and macros
5437 defined in include files are not warned about.
5438 .Sp
5439 \&\fINote:\fR If a macro is actually used, but only used in skipped
5440 conditional blocks, then \s-1CPP\s0 will report it as unused.  To avoid the
5441 warning in such a case, you might improve the scope of the macro's
5442 definition by, for example, moving it into the first skipped block.
5443 Alternatively, you could provide a dummy use with something like:
5444 .Sp
5445 .Vb 2
5446 \&        #if defined the_macro_causing_the_warning
5447 \&        #endif
5448 .Ve
5449 .IP "\fB\-Wendif\-labels\fR" 4
5450 .IX Item "-Wendif-labels"
5451 Warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
5452 This usually happens in code of the form
5453 .Sp
5454 .Vb 5
5455 \&        #if FOO
5456 \&        ...
5457 \&        #else FOO
5458 \&        ...
5459 \&        #endif FOO
5460 .Ve
5461 .Sp
5462 The second and third \f(CW\*(C`FOO\*(C'\fR should be in comments, but often are not
5463 in older programs.  This warning is on by default.
5464 .IP "\fB\-Werror\fR" 4
5465 .IX Item "-Werror"
5466 Make all warnings into hard errors.  Source code which triggers warnings
5467 will be rejected.
5468 .IP "\fB\-Wsystem\-headers\fR" 4
5469 .IX Item "-Wsystem-headers"
5470 Issue warnings for code in system headers.  These are normally unhelpful
5471 in finding bugs in your own code, therefore suppressed.  If you are
5472 responsible for the system library, you may want to see them.
5473 .IP "\fB\-w\fR" 4
5474 .IX Item "-w"
5475 Suppress all warnings, including those which \s-1GNU\s0 \s-1CPP\s0 issues by default.
5476 .IP "\fB\-pedantic\fR" 4
5477 .IX Item "-pedantic"
5478 Issue all the mandatory diagnostics listed in the C standard.  Some of
5479 them are left out by default, since they trigger frequently on harmless
5480 code.
5481 .IP "\fB\-pedantic\-errors\fR" 4
5482 .IX Item "-pedantic-errors"
5483 Issue all the mandatory diagnostics, and make all mandatory diagnostics
5484 into errors.  This includes mandatory diagnostics that \s-1GCC\s0 issues
5485 without \fB\-pedantic\fR but treats as warnings.
5486 .IP "\fB\-M\fR" 4
5487 .IX Item "-M"
5488 Instead of outputting the result of preprocessing, output a rule
5489 suitable for \fBmake\fR describing the dependencies of the main
5490 source file.  The preprocessor outputs one \fBmake\fR rule containing
5491 the object file name for that source file, a colon, and the names of all
5492 the included files, including those coming from \fB\-include\fR or
5493 \&\fB\-imacros\fR command line options.
5494 .Sp
5495 Unless specified explicitly (with \fB\-MT\fR or \fB\-MQ\fR), the
5496 object file name consists of the basename of the source file with any
5497 suffix replaced with object file suffix.  If there are many included
5498 files then the rule is split into several lines using \fB\e\fR\-newline.
5499 The rule has no commands.
5500 .Sp
5501 This option does not suppress the preprocessor's debug output, such as
5502 \&\fB\-dM\fR.  To avoid mixing such debug output with the dependency
5503 rules you should explicitly specify the dependency output file with
5504 \&\fB\-MF\fR, or use an environment variable like
5505 \&\fB\s-1DEPENDENCIES_OUTPUT\s0\fR.  Debug output
5506 will still be sent to the regular output stream as normal.
5507 .Sp
5508 Passing \fB\-M\fR to the driver implies \fB\-E\fR, and suppresses
5509 warnings with an implicit \fB\-w\fR.
5510 .IP "\fB\-MM\fR" 4
5511 .IX Item "-MM"
5512 Like \fB\-M\fR but do not mention header files that are found in
5513 system header directories, nor header files that are included,
5514 directly or indirectly, from such a header.
5515 .Sp
5516 This implies that the choice of angle brackets or double quotes in an
5517 \&\fB#include\fR directive does not in itself determine whether that
5518 header will appear in \fB\-MM\fR dependency output.  This is a
5519 slight change in semantics from \s-1GCC\s0 versions 3.0 and earlier.
5520 .Sp
5521 @anchor{dashMF}
5522 .IP "\fB\-MF\fR \fIfile\fR" 4
5523 .IX Item "-MF file"
5524 When used with \fB\-M\fR or \fB\-MM\fR, specifies a
5525 file to write the dependencies to.  If no \fB\-MF\fR switch is given
5526 the preprocessor sends the rules to the same place it would have sent
5527 preprocessed output.
5528 .Sp
5529 When used with the driver options \fB\-MD\fR or \fB\-MMD\fR,
5530 \&\fB\-MF\fR overrides the default dependency output file.
5531 .IP "\fB\-MG\fR" 4
5532 .IX Item "-MG"
5533 In conjunction with an option such as \fB\-M\fR requesting
5534 dependency generation, \fB\-MG\fR assumes missing header files are
5535 generated files and adds them to the dependency list without raising
5536 an error.  The dependency filename is taken directly from the
5537 \&\f(CW\*(C`#include\*(C'\fR directive without prepending any path.  \fB\-MG\fR
5538 also suppresses preprocessed output, as a missing header file renders
5539 this useless.
5540 .Sp
5541 This feature is used in automatic updating of makefiles.
5542 .IP "\fB\-MP\fR" 4
5543 .IX Item "-MP"
5544 This option instructs \s-1CPP\s0 to add a phony target for each dependency
5545 other than the main file, causing each to depend on nothing.  These
5546 dummy rules work around errors \fBmake\fR gives if you remove header
5547 files without updating the \fIMakefile\fR to match.
5548 .Sp
5549 This is typical output:
5550 .Sp
5551 .Vb 1
5552 \&        test.o: test.c test.h
5553 .Ve
5554 .Sp
5555 .Vb 1
5556 \&        test.h:
5557 .Ve
5558 .IP "\fB\-MT\fR \fItarget\fR" 4
5559 .IX Item "-MT target"
5560 Change the target of the rule emitted by dependency generation.  By
5561 default \s-1CPP\s0 takes the name of the main input file, including any path,
5562 deletes any file suffix such as \fB.c\fR, and appends the platform's
5563 usual object suffix.  The result is the target.
5564 .Sp
5565 An \fB\-MT\fR option will set the target to be exactly the string you
5566 specify.  If you want multiple targets, you can specify them as a single
5567 argument to \fB\-MT\fR, or use multiple \fB\-MT\fR options.
5568 .Sp
5569 For example, \fB\-MT\ '$(objpfx)foo.o'\fR might give
5570 .Sp
5571 .Vb 1
5572 \&        $(objpfx)foo.o: foo.c
5573 .Ve
5574 .IP "\fB\-MQ\fR \fItarget\fR" 4
5575 .IX Item "-MQ target"
5576 Same as \fB\-MT\fR, but it quotes any characters which are special to
5577 Make.  \fB\-MQ\ '$(objpfx)foo.o'\fR gives
5578 .Sp
5579 .Vb 1
5580 \&        $$(objpfx)foo.o: foo.c
5581 .Ve
5582 .Sp
5583 The default target is automatically quoted, as if it were given with
5584 \&\fB\-MQ\fR.
5585 .IP "\fB\-MD\fR" 4
5586 .IX Item "-MD"
5587 \&\fB\-MD\fR is equivalent to \fB\-M \-MF\fR \fIfile\fR, except that
5588 \&\fB\-E\fR is not implied.  The driver determines \fIfile\fR based on
5589 whether an \fB\-o\fR option is given.  If it is, the driver uses its
5590 argument but with a suffix of \fI.d\fR, otherwise it take the
5591 basename of the input file and applies a \fI.d\fR suffix.
5592 .Sp
5593 If \fB\-MD\fR is used in conjunction with \fB\-E\fR, any
5594 \&\fB\-o\fR switch is understood to specify the dependency output file
5595 (but \f(CW@pxref\fR{dashMF,,\-MF}), but if used without \fB\-E\fR, each \fB\-o\fR
5596 is understood to specify a target object file.
5597 .Sp
5598 Since \fB\-E\fR is not implied, \fB\-MD\fR can be used to generate
5599 a dependency output file as a side-effect of the compilation process.
5600 .IP "\fB\-MMD\fR" 4
5601 .IX Item "-MMD"
5602 Like \fB\-MD\fR except mention only user header files, not system
5603 header files.
5604 .IP "\fB\-fpch\-deps\fR" 4
5605 .IX Item "-fpch-deps"
5606 When using precompiled headers, this flag
5607 will cause the dependency-output flags to also list the files from the
5608 precompiled header's dependencies.  If not specified only the
5609 precompiled header would be listed and not the files that were used to
5610 create it because those files are not consulted when a precompiled
5611 header is used.
5612 .IP "\fB\-fpch\-preprocess\fR" 4
5613 .IX Item "-fpch-preprocess"
5614 This option allows use of a precompiled header together with \fB\-E\fR.  It inserts a special \f(CW\*(C`#pragma\*(C'\fR,
5615 \&\f(CW\*(C`#pragma GCC pch_preprocess "<filename>"\*(C'\fR in the output to mark
5616 the place where the precompiled header was found, and its filename.  When
5617 \&\fB\-fpreprocessed\fR is in use, \s-1GCC\s0 recognizes this \f(CW\*(C`#pragma\*(C'\fR and
5618 loads the \s-1PCH\s0.
5619 .Sp
5620 This option is off by default, because the resulting preprocessed output
5621 is only really suitable as input to \s-1GCC\s0.  It is switched on by
5622 \&\fB\-save\-temps\fR.
5623 .Sp
5624 You should not write this \f(CW\*(C`#pragma\*(C'\fR in your own code, but it is
5625 safe to edit the filename if the \s-1PCH\s0 file is available in a different
5626 location.  The filename may be absolute or it may be relative to \s-1GCC\s0's
5627 current directory.
5628 .IP "\fB\-x c\fR" 4
5629 .IX Item "-x c"
5630 .PD 0
5631 .IP "\fB\-x c++\fR" 4
5632 .IX Item "-x c++"
5633 .IP "\fB\-x objective-c\fR" 4
5634 .IX Item "-x objective-c"
5635 .IP "\fB\-x assembler-with-cpp\fR" 4
5636 .IX Item "-x assembler-with-cpp"
5637 .PD
5638 Specify the source language: C, \*(C+, Objective\-C, or assembly.  This has
5639 nothing to do with standards conformance or extensions; it merely
5640 selects which base syntax to expect.  If you give none of these options,
5641 cpp will deduce the language from the extension of the source file:
5642 \&\fB.c\fR, \fB.cc\fR, \fB.m\fR, or \fB.S\fR.  Some other common
5643 extensions for \*(C+ and assembly are also recognized.  If cpp does not
5644 recognize the extension, it will treat the file as C; this is the most
5645 generic mode.
5646 .Sp
5647 \&\fINote:\fR Previous versions of cpp accepted a \fB\-lang\fR option
5648 which selected both the language and the standards conformance level.
5649 This option has been removed, because it conflicts with the \fB\-l\fR
5650 option.
5651 .IP "\fB\-std=\fR\fIstandard\fR" 4
5652 .IX Item "-std=standard"
5653 .PD 0
5654 .IP "\fB\-ansi\fR" 4
5655 .IX Item "-ansi"
5656 .PD
5657 Specify the standard to which the code should conform.  Currently \s-1CPP\s0
5658 knows about C and \*(C+ standards; others may be added in the future.
5659 .Sp
5660 \&\fIstandard\fR
5661 may be one of:
5662 .RS 4
5663 .ie n .IP """iso9899:1990""" 4
5664 .el .IP "\f(CWiso9899:1990\fR" 4
5665 .IX Item "iso9899:1990"
5666 .PD 0
5667 .ie n .IP """c89""" 4
5668 .el .IP "\f(CWc89\fR" 4
5669 .IX Item "c89"
5670 .PD
5671 The \s-1ISO\s0 C standard from 1990.  \fBc89\fR is the customary shorthand for
5672 this version of the standard.
5673 .Sp
5674 The \fB\-ansi\fR option is equivalent to \fB\-std=c89\fR.
5675 .ie n .IP """iso9899:199409""" 4
5676 .el .IP "\f(CWiso9899:199409\fR" 4
5677 .IX Item "iso9899:199409"
5678 The 1990 C standard, as amended in 1994.
5679 .ie n .IP """iso9899:1999""" 4
5680 .el .IP "\f(CWiso9899:1999\fR" 4
5681 .IX Item "iso9899:1999"
5682 .PD 0
5683 .ie n .IP """c99""" 4
5684 .el .IP "\f(CWc99\fR" 4
5685 .IX Item "c99"
5686 .ie n .IP """iso9899:199x""" 4
5687 .el .IP "\f(CWiso9899:199x\fR" 4
5688 .IX Item "iso9899:199x"
5689 .ie n .IP """c9x""" 4
5690 .el .IP "\f(CWc9x\fR" 4
5691 .IX Item "c9x"
5692 .PD
5693 The revised \s-1ISO\s0 C standard, published in December 1999.  Before
5694 publication, this was known as C9X.
5695 .ie n .IP """gnu89""" 4
5696 .el .IP "\f(CWgnu89\fR" 4
5697 .IX Item "gnu89"
5698 The 1990 C standard plus \s-1GNU\s0 extensions.  This is the default.
5699 .ie n .IP """gnu99""" 4
5700 .el .IP "\f(CWgnu99\fR" 4
5701 .IX Item "gnu99"
5702 .PD 0
5703 .ie n .IP """gnu9x""" 4
5704 .el .IP "\f(CWgnu9x\fR" 4
5705 .IX Item "gnu9x"
5706 .PD
5707 The 1999 C standard plus \s-1GNU\s0 extensions.
5708 .ie n .IP """c++98""" 4
5709 .el .IP "\f(CWc++98\fR" 4
5710 .IX Item "c++98"
5711 The 1998 \s-1ISO\s0 \*(C+ standard plus amendments.
5712 .ie n .IP """gnu++98""" 4
5713 .el .IP "\f(CWgnu++98\fR" 4
5714 .IX Item "gnu++98"
5715 The same as \fB\-std=c++98\fR plus \s-1GNU\s0 extensions.  This is the
5716 default for \*(C+ code.
5717 .RE
5718 .RS 4
5719 .RE
5720 .IP "\fB\-I\-\fR" 4
5721 .IX Item "-I-"
5722 Split the include path.  Any directories specified with \fB\-I\fR
5723 options before \fB\-I\-\fR are searched only for headers requested with
5724 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
5725 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR.  If additional directories are
5726 specified with \fB\-I\fR options after the \fB\-I\-\fR, those
5727 directories are searched for all \fB#include\fR directives.
5728 .Sp
5729 In addition, \fB\-I\-\fR inhibits the use of the directory of the current
5730 file directory as the first search directory for \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR.
5731 This option has been deprecated.
5732 .IP "\fB\-nostdinc\fR" 4
5733 .IX Item "-nostdinc"
5734 Do not search the standard system directories for header files.
5735 Only the directories you have specified with \fB\-I\fR options
5736 (and the directory of the current file, if appropriate) are searched.
5737 .IP "\fB\-nostdinc++\fR" 4
5738 .IX Item "-nostdinc++"
5739 Do not search for header files in the \*(C+\-specific standard directories,
5740 but do still search the other standard directories.  (This option is
5741 used when building the \*(C+ library.)
5742 .IP "\fB\-include\fR \fIfile\fR" 4
5743 .IX Item "-include file"
5744 Process \fIfile\fR as if \f(CW\*(C`#include "file"\*(C'\fR appeared as the first
5745 line of the primary source file.  However, the first directory searched
5746 for \fIfile\fR is the preprocessor's working directory \fIinstead of\fR
5747 the directory containing the main source file.  If not found there, it
5748 is searched for in the remainder of the \f(CW\*(C`#include "..."\*(C'\fR search
5749 chain as normal.
5750 .Sp
5751 If multiple \fB\-include\fR options are given, the files are included
5752 in the order they appear on the command line.
5753 .IP "\fB\-imacros\fR \fIfile\fR" 4
5754 .IX Item "-imacros file"
5755 Exactly like \fB\-include\fR, except that any output produced by
5756 scanning \fIfile\fR is thrown away.  Macros it defines remain defined.
5757 This allows you to acquire all the macros from a header without also
5758 processing its declarations.
5759 .Sp
5760 All files specified by \fB\-imacros\fR are processed before all files
5761 specified by \fB\-include\fR.
5762 .IP "\fB\-idirafter\fR \fIdir\fR" 4
5763 .IX Item "-idirafter dir"
5764 Search \fIdir\fR for header files, but do it \fIafter\fR all
5765 directories specified with \fB\-I\fR and the standard system directories
5766 have been exhausted.  \fIdir\fR is treated as a system include directory.
5767 .IP "\fB\-iprefix\fR \fIprefix\fR" 4
5768 .IX Item "-iprefix prefix"
5769 Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
5770 options.  If the prefix represents a directory, you should include the
5771 final \fB/\fR.
5772 .IP "\fB\-iwithprefix\fR \fIdir\fR" 4
5773 .IX Item "-iwithprefix dir"
5774 .PD 0
5775 .IP "\fB\-iwithprefixbefore\fR \fIdir\fR" 4
5776 .IX Item "-iwithprefixbefore dir"
5777 .PD
5778 Append \fIdir\fR to the prefix specified previously with
5779 \&\fB\-iprefix\fR, and add the resulting directory to the include search
5780 path.  \fB\-iwithprefixbefore\fR puts it in the same place \fB\-I\fR
5781 would; \fB\-iwithprefix\fR puts it where \fB\-idirafter\fR would.
5782 .IP "\fB\-isystem\fR \fIdir\fR" 4
5783 .IX Item "-isystem dir"
5784 Search \fIdir\fR for header files, after all directories specified by
5785 \&\fB\-I\fR but before the standard system directories.  Mark it
5786 as a system directory, so that it gets the same special treatment as
5787 is applied to the standard system directories.
5788 .IP "\fB\-iquote\fR \fIdir\fR" 4
5789 .IX Item "-iquote dir"
5790 Search \fIdir\fR only for header files requested with
5791 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
5792 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR, before all directories specified by
5793 \&\fB\-I\fR and before the standard system directories.
5794 .IP "\fB\-fdollars\-in\-identifiers\fR" 4
5795 .IX Item "-fdollars-in-identifiers"
5796 @anchor{fdollars\-in\-identifiers}
5797 Accept \fB$\fR in identifiers.
5798 .IP "\fB\-fpreprocessed\fR" 4
5799 .IX Item "-fpreprocessed"
5800 Indicate to the preprocessor that the input file has already been
5801 preprocessed.  This suppresses things like macro expansion, trigraph
5802 conversion, escaped newline splicing, and processing of most directives.
5803 The preprocessor still recognizes and removes comments, so that you can
5804 pass a file preprocessed with \fB\-C\fR to the compiler without
5805 problems.  In this mode the integrated preprocessor is little more than
5806 a tokenizer for the front ends.
5807 .Sp
5808 \&\fB\-fpreprocessed\fR is implicit if the input file has one of the
5809 extensions \fB.i\fR, \fB.ii\fR or \fB.mi\fR.  These are the
5810 extensions that \s-1GCC\s0 uses for preprocessed files created by
5811 \&\fB\-save\-temps\fR.
5812 .IP "\fB\-ftabstop=\fR\fIwidth\fR" 4
5813 .IX Item "-ftabstop=width"
5814 Set the distance between tab stops.  This helps the preprocessor report
5815 correct column numbers in warnings or errors, even if tabs appear on the
5816 line.  If the value is less than 1 or greater than 100, the option is
5817 ignored.  The default is 8.
5818 .IP "\fB\-fexec\-charset=\fR\fIcharset\fR" 4
5819 .IX Item "-fexec-charset=charset"
5820 Set the execution character set, used for string and character
5821 constants.  The default is \s-1UTF\-8\s0.  \fIcharset\fR can be any encoding
5822 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
5823 .IP "\fB\-fwide\-exec\-charset=\fR\fIcharset\fR" 4
5824 .IX Item "-fwide-exec-charset=charset"
5825 Set the wide execution character set, used for wide string and
5826 character constants.  The default is \s-1UTF\-32\s0 or \s-1UTF\-16\s0, whichever
5827 corresponds to the width of \f(CW\*(C`wchar_t\*(C'\fR.  As with
5828 \&\fB\-fexec\-charset\fR, \fIcharset\fR can be any encoding supported
5829 by the system's \f(CW\*(C`iconv\*(C'\fR library routine; however, you will have
5830 problems with encodings that do not fit exactly in \f(CW\*(C`wchar_t\*(C'\fR.
5831 .IP "\fB\-finput\-charset=\fR\fIcharset\fR" 4
5832 .IX Item "-finput-charset=charset"
5833 Set the input character set, used for translation from the character
5834 set of the input file to the source character set used by \s-1GCC\s0.  If the
5835 locale does not specify, or \s-1GCC\s0 cannot get this information from the
5836 locale, the default is \s-1UTF\-8\s0.  This can be overridden by either the locale
5837 or this command line option.  Currently the command line option takes
5838 precedence if there's a conflict.  \fIcharset\fR can be any encoding
5839 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
5840 .IP "\fB\-fworking\-directory\fR" 4
5841 .IX Item "-fworking-directory"
5842 Enable generation of linemarkers in the preprocessor output that will
5843 let the compiler know the current working directory at the time of
5844 preprocessing.  When this option is enabled, the preprocessor will
5845 emit, after the initial linemarker, a second linemarker with the
5846 current working directory followed by two slashes.  \s-1GCC\s0 will use this
5847 directory, when it's present in the preprocessed input, as the
5848 directory emitted as the current working directory in some debugging
5849 information formats.  This option is implicitly enabled if debugging
5850 information is enabled, but this can be inhibited with the negated
5851 form \fB\-fno\-working\-directory\fR.  If the \fB\-P\fR flag is
5852 present in the command line, this option has no effect, since no
5853 \&\f(CW\*(C`#line\*(C'\fR directives are emitted whatsoever.
5854 .IP "\fB\-fno\-show\-column\fR" 4
5855 .IX Item "-fno-show-column"
5856 Do not print column numbers in diagnostics.  This may be necessary if
5857 diagnostics are being scanned by a program that does not understand the
5858 column numbers, such as \fBdejagnu\fR.
5859 .IP "\fB\-A\fR \fIpredicate\fR\fB=\fR\fIanswer\fR" 4
5860 .IX Item "-A predicate=answer"
5861 Make an assertion with the predicate \fIpredicate\fR and answer
5862 \&\fIanswer\fR.  This form is preferred to the older form \fB\-A\fR
5863 \&\fIpredicate\fR\fB(\fR\fIanswer\fR\fB)\fR, which is still supported, because
5864 it does not use shell special characters.
5865 .IP "\fB\-A \-\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4
5866 .IX Item "-A -predicate=answer"
5867 Cancel an assertion with the predicate \fIpredicate\fR and answer
5868 \&\fIanswer\fR.
5869 .IP "\fB\-dCHARS\fR" 4
5870 .IX Item "-dCHARS"
5871 \&\fI\s-1CHARS\s0\fR is a sequence of one or more of the following characters,
5872 and must not be preceded by a space.  Other characters are interpreted
5873 by the compiler proper, or reserved for future versions of \s-1GCC\s0, and so
5874 are silently ignored.  If you specify characters whose behavior
5875 conflicts, the result is undefined.
5876 .RS 4
5877 .IP "\fBM\fR" 4
5878 .IX Item "M"
5879 Instead of the normal output, generate a list of \fB#define\fR
5880 directives for all the macros defined during the execution of the
5881 preprocessor, including predefined macros.  This gives you a way of
5882 finding out what is predefined in your version of the preprocessor.
5883 Assuming you have no file \fIfoo.h\fR, the command
5884 .Sp
5885 .Vb 1
5886 \&        touch foo.h; cpp -dM foo.h
5887 .Ve
5888 .Sp
5889 will show all the predefined macros.
5890 .IP "\fBD\fR" 4
5891 .IX Item "D"
5892 Like \fBM\fR except in two respects: it does \fInot\fR include the
5893 predefined macros, and it outputs \fIboth\fR the \fB#define\fR
5894 directives and the result of preprocessing.  Both kinds of output go to
5895 the standard output file.
5896 .IP "\fBN\fR" 4
5897 .IX Item "N"
5898 Like \fBD\fR, but emit only the macro names, not their expansions.
5899 .IP "\fBI\fR" 4
5900 .IX Item "I"
5901 Output \fB#include\fR directives in addition to the result of
5902 preprocessing.
5903 .RE
5904 .RS 4
5905 .RE
5906 .IP "\fB\-P\fR" 4
5907 .IX Item "-P"
5908 Inhibit generation of linemarkers in the output from the preprocessor.
5909 This might be useful when running the preprocessor on something that is
5910 not C code, and will be sent to a program which might be confused by the
5911 linemarkers.
5912 .IP "\fB\-C\fR" 4
5913 .IX Item "-C"
5914 Do not discard comments.  All comments are passed through to the output
5915 file, except for comments in processed directives, which are deleted
5916 along with the directive.
5917 .Sp
5918 You should be prepared for side effects when using \fB\-C\fR; it
5919 causes the preprocessor to treat comments as tokens in their own right.
5920 For example, comments appearing at the start of what would be a
5921 directive line have the effect of turning that line into an ordinary
5922 source line, since the first token on the line is no longer a \fB#\fR.
5923 .IP "\fB\-CC\fR" 4
5924 .IX Item "-CC"
5925 Do not discard comments, including during macro expansion.  This is
5926 like \fB\-C\fR, except that comments contained within macros are
5927 also passed through to the output file where the macro is expanded.
5928 .Sp
5929 In addition to the side-effects of the \fB\-C\fR option, the
5930 \&\fB\-CC\fR option causes all \*(C+\-style comments inside a macro
5931 to be converted to C\-style comments.  This is to prevent later use
5932 of that macro from inadvertently commenting out the remainder of
5933 the source line.
5934 .Sp
5935 The \fB\-CC\fR option is generally used to support lint comments.
5936 .IP "\fB\-traditional\-cpp\fR" 4
5937 .IX Item "-traditional-cpp"
5938 Try to imitate the behavior of old-fashioned C preprocessors, as
5939 opposed to \s-1ISO\s0 C preprocessors.
5940 .IP "\fB\-trigraphs\fR" 4
5941 .IX Item "-trigraphs"
5942 Process trigraph sequences.
5943 These are three-character sequences, all starting with \fB??\fR, that
5944 are defined by \s-1ISO\s0 C to stand for single characters.  For example,
5945 \&\fB??/\fR stands for \fB\e\fR, so \fB'??/n'\fR is a character
5946 constant for a newline.  By default, \s-1GCC\s0 ignores trigraphs, but in
5947 standard-conforming modes it converts them.  See the \fB\-std\fR and
5948 \&\fB\-ansi\fR options.
5949 .Sp
5950 The nine trigraphs and their replacements are
5951 .Sp
5952 .Vb 2
5953 \&        Trigraph:       ??(  ??)  ??<  ??>  ??=  ??/  ??'  ??!  ??-
5954 \&        Replacement:      [    ]    {    }    #    \e    ^    |    ~
5955 .Ve
5956 .IP "\fB\-remap\fR" 4
5957 .IX Item "-remap"
5958 Enable special code to work around file systems which only permit very
5959 short file names, such as \s-1MS\-DOS\s0.
5960 .IP "\fB\-\-help\fR" 4
5961 .IX Item "--help"
5962 .PD 0
5963 .IP "\fB\-\-target\-help\fR" 4
5964 .IX Item "--target-help"
5965 .PD
5966 Print text describing all the command line options instead of
5967 preprocessing anything.
5968 .IP "\fB\-v\fR" 4
5969 .IX Item "-v"
5970 Verbose mode.  Print out \s-1GNU\s0 \s-1CPP\s0's version number at the beginning of
5971 execution, and report the final form of the include path.
5972 .IP "\fB\-H\fR" 4
5973 .IX Item "-H"
5974 Print the name of each header file used, in addition to other normal
5975 activities.  Each name is indented to show how deep in the
5976 \&\fB#include\fR stack it is.  Precompiled header files are also
5977 printed, even if they are found to be invalid; an invalid precompiled
5978 header file is printed with \fB...x\fR and a valid one with \fB...!\fR .
5979 .IP "\fB\-version\fR" 4
5980 .IX Item "-version"
5981 .PD 0
5982 .IP "\fB\-\-version\fR" 4
5983 .IX Item "--version"
5984 .PD
5985 Print out \s-1GNU\s0 \s-1CPP\s0's version number.  With one dash, proceed to
5986 preprocess as normal.  With two dashes, exit immediately.
5987 .Sh "Passing Options to the Assembler"
5988 .IX Subsection "Passing Options to the Assembler"
5989 You can pass options to the assembler.
5990 .IP "\fB\-Wa,\fR\fIoption\fR" 4
5991 .IX Item "-Wa,option"
5992 Pass \fIoption\fR as an option to the assembler.  If \fIoption\fR
5993 contains commas, it is split into multiple options at the commas.
5994 .IP "\fB\-Xassembler\fR \fIoption\fR" 4
5995 .IX Item "-Xassembler option"
5996 Pass \fIoption\fR as an option to the assembler.  You can use this to
5997 supply system-specific assembler options which \s-1GCC\s0 does not know how to
5998 recognize.
5999 .Sp
6000 If you want to pass an option that takes an argument, you must use
6001 \&\fB\-Xassembler\fR twice, once for the option and once for the argument.
6002 .Sh "Options for Linking"
6003 .IX Subsection "Options for Linking"
6004 These options come into play when the compiler links object files into
6005 an executable output file.  They are meaningless if the compiler is
6006 not doing a link step.
6007 .IP "\fIobject-file-name\fR" 4
6008 .IX Item "object-file-name"
6009 A file name that does not end in a special recognized suffix is
6010 considered to name an object file or library.  (Object files are
6011 distinguished from libraries by the linker according to the file
6012 contents.)  If linking is done, these object files are used as input
6013 to the linker.
6014 .IP "\fB\-c\fR" 4
6015 .IX Item "-c"
6016 .PD 0
6017 .IP "\fB\-S\fR" 4
6018 .IX Item "-S"
6019 .IP "\fB\-E\fR" 4
6020 .IX Item "-E"
6021 .PD
6022 If any of these options is used, then the linker is not run, and
6023 object file names should not be used as arguments.  
6024 .IP "\fB\-l\fR\fIlibrary\fR" 4
6025 .IX Item "-llibrary"
6026 .PD 0
6027 .IP "\fB\-l\fR \fIlibrary\fR" 4
6028 .IX Item "-l library"
6029 .PD
6030 Search the library named \fIlibrary\fR when linking.  (The second
6031 alternative with the library as a separate argument is only for
6032 \&\s-1POSIX\s0 compliance and is not recommended.)
6033 .Sp
6034 It makes a difference where in the command you write this option; the
6035 linker searches and processes libraries and object files in the order they
6036 are specified.  Thus, \fBfoo.o \-lz bar.o\fR searches library \fBz\fR
6037 after file \fIfoo.o\fR but before \fIbar.o\fR.  If \fIbar.o\fR refers
6038 to functions in \fBz\fR, those functions may not be loaded.
6039 .Sp
6040 The linker searches a standard list of directories for the library,
6041 which is actually a file named \fIlib\fIlibrary\fI.a\fR.  The linker
6042 then uses this file as if it had been specified precisely by name.
6043 .Sp
6044 The directories searched include several standard system directories
6045 plus any that you specify with \fB\-L\fR.
6046 .Sp
6047 Normally the files found this way are library files\-\-\-archive files
6048 whose members are object files.  The linker handles an archive file by
6049 scanning through it for members which define symbols that have so far
6050 been referenced but not defined.  But if the file that is found is an
6051 ordinary object file, it is linked in the usual fashion.  The only
6052 difference between using an \fB\-l\fR option and specifying a file name
6053 is that \fB\-l\fR surrounds \fIlibrary\fR with \fBlib\fR and \fB.a\fR
6054 and searches several directories.
6055 .IP "\fB\-lobjc\fR" 4
6056 .IX Item "-lobjc"
6057 You need this special case of the \fB\-l\fR option in order to
6058 link an Objective-C or Objective\-\*(C+ program.
6059 .IP "\fB\-nostartfiles\fR" 4
6060 .IX Item "-nostartfiles"
6061 Do not use the standard system startup files when linking.
6062 The standard system libraries are used normally, unless \fB\-nostdlib\fR
6063 or \fB\-nodefaultlibs\fR is used.
6064 .IP "\fB\-nodefaultlibs\fR" 4
6065 .IX Item "-nodefaultlibs"
6066 Do not use the standard system libraries when linking.
6067 Only the libraries you specify will be passed to the linker.
6068 The standard startup files are used normally, unless \fB\-nostartfiles\fR
6069 is used.  The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR,
6070 \&\f(CW\*(C`memset\*(C'\fR, \f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
6071 These entries are usually resolved by entries in
6072 libc.  These entry points should be supplied through some other
6073 mechanism when this option is specified.
6074 .IP "\fB\-nostdlib\fR" 4
6075 .IX Item "-nostdlib"
6076 Do not use the standard system startup files or libraries when linking.
6077 No startup files and only the libraries you specify will be passed to
6078 the linker.  The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR, \f(CW\*(C`memset\*(C'\fR,
6079 \&\f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
6080 These entries are usually resolved by entries in
6081 libc.  These entry points should be supplied through some other
6082 mechanism when this option is specified.
6083 .Sp
6084 One of the standard libraries bypassed by \fB\-nostdlib\fR and
6085 \&\fB\-nodefaultlibs\fR is \fIlibgcc.a\fR, a library of internal subroutines
6086 that \s-1GCC\s0 uses to overcome shortcomings of particular machines, or special
6087 needs for some languages.
6088 .Sp
6089 In most cases, you need \fIlibgcc.a\fR even when you want to avoid
6090 other standard libraries.  In other words, when you specify \fB\-nostdlib\fR
6091 or \fB\-nodefaultlibs\fR you should usually specify \fB\-lgcc\fR as well.
6092 This ensures that you have no unresolved references to internal \s-1GCC\s0
6093 library subroutines.  (For example, \fB_\|_main\fR, used to ensure \*(C+
6094 constructors will be called.)
6095 .IP "\fB\-pie\fR" 4
6096 .IX Item "-pie"
6097 Produce a position independent executable on targets which support it.
6098 For predictable results, you must also specify the same set of options
6099 that were used to generate code (\fB\-fpie\fR, \fB\-fPIE\fR,
6100 or model suboptions) when you specify this option.
6101 .IP "\fB\-s\fR" 4
6102 .IX Item "-s"
6103 Remove all symbol table and relocation information from the executable.
6104 .IP "\fB\-static\fR" 4
6105 .IX Item "-static"
6106 On systems that support dynamic linking, this prevents linking with the shared
6107 libraries.  On other systems, this option has no effect.
6108 .IP "\fB\-shared\fR" 4
6109 .IX Item "-shared"
6110 Produce a shared object which can then be linked with other objects to
6111 form an executable.  Not all systems support this option.  For predictable
6112 results, you must also specify the same set of options that were used to
6113 generate code (\fB\-fpic\fR, \fB\-fPIC\fR, or model suboptions)
6114 when you specify this option.[1]
6115 .IP "\fB\-shared\-libgcc\fR" 4
6116 .IX Item "-shared-libgcc"
6117 .PD 0
6118 .IP "\fB\-static\-libgcc\fR" 4
6119 .IX Item "-static-libgcc"
6120 .PD
6121 On systems that provide \fIlibgcc\fR as a shared library, these options
6122 force the use of either the shared or static version respectively.
6123 If no shared version of \fIlibgcc\fR was built when the compiler was
6124 configured, these options have no effect.
6125 .Sp
6126 There are several situations in which an application should use the
6127 shared \fIlibgcc\fR instead of the static version.  The most common
6128 of these is when the application wishes to throw and catch exceptions
6129 across different shared libraries.  In that case, each of the libraries
6130 as well as the application itself should use the shared \fIlibgcc\fR.
6131 .Sp
6132 Therefore, the G++ and \s-1GCJ\s0 drivers automatically add
6133 \&\fB\-shared\-libgcc\fR whenever you build a shared library or a main
6134 executable, because \*(C+ and Java programs typically use exceptions, so
6135 this is the right thing to do.
6136 .Sp
6137 If, instead, you use the \s-1GCC\s0 driver to create shared libraries, you may
6138 find that they will not always be linked with the shared \fIlibgcc\fR.
6139 If \s-1GCC\s0 finds, at its configuration time, that you have a non-GNU linker
6140 or a \s-1GNU\s0 linker that does not support option \fB\-\-eh\-frame\-hdr\fR,
6141 it will link the shared version of \fIlibgcc\fR into shared libraries
6142 by default.  Otherwise, it will take advantage of the linker and optimize
6143 away the linking with the shared version of \fIlibgcc\fR, linking with
6144 the static version of libgcc by default.  This allows exceptions to
6145 propagate through such shared libraries, without incurring relocation
6146 costs at library load time.
6147 .Sp
6148 However, if a library or main executable is supposed to throw or catch
6149 exceptions, you must link it using the G++ or \s-1GCJ\s0 driver, as appropriate
6150 for the languages used in the program, or using the option
6151 \&\fB\-shared\-libgcc\fR, such that it is linked with the shared
6152 \&\fIlibgcc\fR.
6153 .IP "\fB\-symbolic\fR" 4
6154 .IX Item "-symbolic"
6155 Bind references to global symbols when building a shared object.  Warn
6156 about any unresolved references (unless overridden by the link editor
6157 option \fB\-Xlinker \-z \-Xlinker defs\fR).  Only a few systems support
6158 this option.
6159 .IP "\fB\-Xlinker\fR \fIoption\fR" 4
6160 .IX Item "-Xlinker option"
6161 Pass \fIoption\fR as an option to the linker.  You can use this to
6162 supply system-specific linker options which \s-1GCC\s0 does not know how to
6163 recognize.
6164 .Sp
6165 If you want to pass an option that takes an argument, you must use
6166 \&\fB\-Xlinker\fR twice, once for the option and once for the argument.
6167 For example, to pass \fB\-assert definitions\fR, you must write
6168 \&\fB\-Xlinker \-assert \-Xlinker definitions\fR.  It does not work to write
6169 \&\fB\-Xlinker \*(L"\-assert definitions\*(R"\fR, because this passes the entire
6170 string as a single argument, which is not what the linker expects.
6171 .IP "\fB\-Wl,\fR\fIoption\fR" 4
6172 .IX Item "-Wl,option"
6173 Pass \fIoption\fR as an option to the linker.  If \fIoption\fR contains
6174 commas, it is split into multiple options at the commas.
6175 .IP "\fB\-u\fR \fIsymbol\fR" 4
6176 .IX Item "-u symbol"
6177 Pretend the symbol \fIsymbol\fR is undefined, to force linking of
6178 library modules to define it.  You can use \fB\-u\fR multiple times with
6179 different symbols to force loading of additional library modules.
6180 .Sh "Options for Directory Search"
6181 .IX Subsection "Options for Directory Search"
6182 These options specify directories to search for header files, for
6183 libraries and for parts of the compiler:
6184 .IP "\fB\-I\fR\fIdir\fR" 4
6185 .IX Item "-Idir"
6186 Add the directory \fIdir\fR to the head of the list of directories to be
6187 searched for header files.  This can be used to override a system header
6188 file, substituting your own version, since these directories are
6189 searched before the system header file directories.  However, you should
6190 not use this option to add directories that contain vendor-supplied
6191 system header files (use \fB\-isystem\fR for that).  If you use more than
6192 one \fB\-I\fR option, the directories are scanned in left-to-right
6193 order; the standard system directories come after.
6194 .Sp
6195 If a standard system include directory, or a directory specified with
6196 \&\fB\-isystem\fR, is also specified with \fB\-I\fR, the \fB\-I\fR
6197 option will be ignored.  The directory will still be searched but as a
6198 system directory at its normal position in the system include chain.
6199 This is to ensure that \s-1GCC\s0's procedure to fix buggy system headers and
6200 the ordering for the include_next directive are not inadvertently changed.
6201 If you really need to change the search order for system directories,
6202 use the \fB\-nostdinc\fR and/or \fB\-isystem\fR options.
6203 .IP "\fB\-iquote\fR\fIdir\fR" 4
6204 .IX Item "-iquotedir"
6205 Add the directory \fIdir\fR to the head of the list of directories to
6206 be searched for header files only for the case of \fB#include
6207 "\fR\fIfile\fR\fB"\fR; they are not searched for \fB#include <\fR\fIfile\fR\fB>\fR,
6208 otherwise just like \fB\-I\fR.
6209 .IP "\fB\-L\fR\fIdir\fR" 4
6210 .IX Item "-Ldir"
6211 Add directory \fIdir\fR to the list of directories to be searched
6212 for \fB\-l\fR.
6213 .IP "\fB\-B\fR\fIprefix\fR" 4
6214 .IX Item "-Bprefix"
6215 This option specifies where to find the executables, libraries,
6216 include files, and data files of the compiler itself.
6217 .Sp
6218 The compiler driver program runs one or more of the subprograms
6219 \&\fIcpp\fR, \fIcc1\fR, \fIas\fR and \fIld\fR.  It tries
6220 \&\fIprefix\fR as a prefix for each program it tries to run, both with and
6221 without \fImachine\fR\fB/\fR\fIversion\fR\fB/\fR.
6222 .Sp
6223 For each subprogram to be run, the compiler driver first tries the
6224 \&\fB\-B\fR prefix, if any.  If that name is not found, or if \fB\-B\fR
6225 was not specified, the driver tries two standard prefixes, which are
6226 \&\fI/usr/lib/gcc/\fR and \fI/usr/local/lib/gcc/\fR.  If neither of
6227 those results in a file name that is found, the unmodified program
6228 name is searched for using the directories specified in your
6229 \&\fB\s-1PATH\s0\fR environment variable.
6230 .Sp
6231 The compiler will check to see if the path provided by the \fB\-B\fR
6232 refers to a directory, and if necessary it will add a directory
6233 separator character at the end of the path.
6234 .Sp
6235 \&\fB\-B\fR prefixes that effectively specify directory names also apply
6236 to libraries in the linker, because the compiler translates these
6237 options into \fB\-L\fR options for the linker.  They also apply to
6238 includes files in the preprocessor, because the compiler translates these
6239 options into \fB\-isystem\fR options for the preprocessor.  In this case,
6240 the compiler appends \fBinclude\fR to the prefix.
6241 .Sp
6242 The run-time support file \fIlibgcc.a\fR can also be searched for using
6243 the \fB\-B\fR prefix, if needed.  If it is not found there, the two
6244 standard prefixes above are tried, and that is all.  The file is left
6245 out of the link if it is not found by those means.
6246 .Sp
6247 Another way to specify a prefix much like the \fB\-B\fR prefix is to use
6248 the environment variable \fB\s-1GCC_EXEC_PREFIX\s0\fR.  
6249 .Sp
6250 As a special kludge, if the path provided by \fB\-B\fR is
6251 \&\fI[dir/]stage\fIN\fI/\fR, where \fIN\fR is a number in the range 0 to
6252 9, then it will be replaced by \fI[dir/]include\fR.  This is to help
6253 with boot-strapping the compiler.
6254 .IP "\fB\-specs=\fR\fIfile\fR" 4
6255 .IX Item "-specs=file"
6256 Process \fIfile\fR after the compiler reads in the standard \fIspecs\fR
6257 file, in order to override the defaults that the \fIgcc\fR driver
6258 program uses when determining what switches to pass to \fIcc1\fR,
6259 \&\fIcc1plus\fR, \fIas\fR, \fIld\fR, etc.  More than one
6260 \&\fB\-specs=\fR\fIfile\fR can be specified on the command line, and they
6261 are processed in order, from left to right.
6262 .IP "\fB\-I\-\fR" 4
6263 .IX Item "-I-"
6264 This option has been deprecated.  Please use \fB\-iquote\fR instead for
6265 \&\fB\-I\fR directories before the \fB\-I\-\fR and remove the \fB\-I\-\fR.
6266 Any directories you specify with \fB\-I\fR options before the \fB\-I\-\fR
6267 option are searched only for the case of \fB#include "\fR\fIfile\fR\fB"\fR;
6268 they are not searched for \fB#include <\fR\fIfile\fR\fB>\fR.
6269 .Sp
6270 If additional directories are specified with \fB\-I\fR options after
6271 the \fB\-I\-\fR, these directories are searched for all \fB#include\fR
6272 directives.  (Ordinarily \fIall\fR \fB\-I\fR directories are used
6273 this way.)
6274 .Sp
6275 In addition, the \fB\-I\-\fR option inhibits the use of the current
6276 directory (where the current input file came from) as the first search
6277 directory for \fB#include "\fR\fIfile\fR\fB"\fR.  There is no way to
6278 override this effect of \fB\-I\-\fR.  With \fB\-I.\fR you can specify
6279 searching the directory which was current when the compiler was
6280 invoked.  That is not exactly the same as what the preprocessor does
6281 by default, but it is often satisfactory.
6282 .Sp
6283 \&\fB\-I\-\fR does not inhibit the use of the standard system directories
6284 for header files.  Thus, \fB\-I\-\fR and \fB\-nostdinc\fR are
6285 independent.
6286 .Sh "Specifying Target Machine and Compiler Version"
6287 .IX Subsection "Specifying Target Machine and Compiler Version"
6288 The usual way to run \s-1GCC\s0 is to run the executable called \fIgcc\fR, or
6289 \&\fI<machine>\-gcc\fR when cross\-compiling, or
6290 \&\fI<machine>\-gcc\-<version>\fR to run a version other than the one that
6291 was installed last.  Sometimes this is inconvenient, so \s-1GCC\s0 provides
6292 options that will switch to another cross-compiler or version.
6293 .IP "\fB\-b\fR \fImachine\fR" 4
6294 .IX Item "-b machine"
6295 The argument \fImachine\fR specifies the target machine for compilation.
6296 .Sp
6297 The value to use for \fImachine\fR is the same as was specified as the
6298 machine type when configuring \s-1GCC\s0 as a cross\-compiler.  For
6299 example, if a cross-compiler was configured with \fBconfigure
6300 i386v\fR, meaning to compile for an 80386 running System V, then you
6301 would specify \fB\-b i386v\fR to run that cross compiler.
6302 .IP "\fB\-V\fR \fIversion\fR" 4
6303 .IX Item "-V version"
6304 The argument \fIversion\fR specifies which version of \s-1GCC\s0 to run.
6305 This is useful when multiple versions are installed.  For example,
6306 \&\fIversion\fR might be \fB2.0\fR, meaning to run \s-1GCC\s0 version 2.0.
6307 .PP
6308 The \fB\-V\fR and \fB\-b\fR options work by running the
6309 \&\fI<machine>\-gcc\-<version>\fR executable, so there's no real reason to
6310 use them if you can just run that directly.
6311 .Sh "Hardware Models and Configurations"
6312 .IX Subsection "Hardware Models and Configurations"
6313 Earlier we discussed the standard option \fB\-b\fR which chooses among
6314 different installed compilers for completely different target
6315 machines, such as \s-1VAX\s0 vs. 68000 vs. 80386.
6316 .PP
6317 In addition, each of these target machine types can have its own
6318 special options, starting with \fB\-m\fR, to choose among various
6319 hardware models or configurations\-\-\-for example, 68010 vs 68020,
6320 floating coprocessor or none.  A single installed version of the
6321 compiler can compile for any model or configuration, according to the
6322 options specified.
6323 .PP
6324 Some configurations of the compiler also support additional special
6325 options, usually for compatibility with other compilers on the same
6326 platform.
6327 .PP
6328 These options are defined by the macro \f(CW\*(C`TARGET_SWITCHES\*(C'\fR in the
6329 machine description.  The default for the options is also defined by
6330 that macro, which enables you to change the defaults.
6331 .PP
6332 \fI\s-1ARC\s0 Options\fR
6333 .IX Subsection "ARC Options"
6334 .PP
6335 These options are defined for \s-1ARC\s0 implementations:
6336 .IP "\fB\-EL\fR" 4
6337 .IX Item "-EL"
6338 Compile code for little endian mode.  This is the default.
6339 .IP "\fB\-EB\fR" 4
6340 .IX Item "-EB"
6341 Compile code for big endian mode.
6342 .IP "\fB\-mmangle\-cpu\fR" 4
6343 .IX Item "-mmangle-cpu"
6344 Prepend the name of the cpu to all public symbol names.
6345 In multiple-processor systems, there are many \s-1ARC\s0 variants with different
6346 instruction and register set characteristics.  This flag prevents code
6347 compiled for one cpu to be linked with code compiled for another.
6348 No facility exists for handling variants that are ``almost identical''.
6349 This is an all or nothing option.
6350 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
6351 .IX Item "-mcpu=cpu"
6352 Compile code for \s-1ARC\s0 variant \fIcpu\fR.
6353 Which variants are supported depend on the configuration.
6354 All variants support \fB\-mcpu=base\fR, this is the default.
6355 .IP "\fB\-mtext=\fR\fItext-section\fR" 4
6356 .IX Item "-mtext=text-section"
6357 .PD 0
6358 .IP "\fB\-mdata=\fR\fIdata-section\fR" 4
6359 .IX Item "-mdata=data-section"
6360 .IP "\fB\-mrodata=\fR\fIreadonly-data-section\fR" 4
6361 .IX Item "-mrodata=readonly-data-section"
6362 .PD
6363 Put functions, data, and readonly data in \fItext-section\fR,
6364 \&\fIdata-section\fR, and \fIreadonly-data-section\fR respectively
6365 by default.  This can be overridden with the \f(CW\*(C`section\*(C'\fR attribute.
6366 .PP
6367 \fI\s-1ARM\s0 Options\fR
6368 .IX Subsection "ARM Options"
6369 .PP
6370 These \fB\-m\fR options are defined for Advanced \s-1RISC\s0 Machines (\s-1ARM\s0)
6371 architectures:
6372 .IP "\fB\-mabi=\fR\fIname\fR" 4
6373 .IX Item "-mabi=name"
6374 Generate code for the specified \s-1ABI\s0.  Permissible values are: \fBapcs-gnu\fR,
6375 \&\fBatpcs\fR, \fBaapcs\fR and \fBiwmmxt\fR.
6376 .IP "\fB\-mapcs\-frame\fR" 4
6377 .IX Item "-mapcs-frame"
6378 Generate a stack frame that is compliant with the \s-1ARM\s0 Procedure Call
6379 Standard for all functions, even if this is not strictly necessary for
6380 correct execution of the code.  Specifying \fB\-fomit\-frame\-pointer\fR
6381 with this option will cause the stack frames not to be generated for
6382 leaf functions.  The default is \fB\-mno\-apcs\-frame\fR.
6383 .IP "\fB\-mapcs\fR" 4
6384 .IX Item "-mapcs"
6385 This is a synonym for \fB\-mapcs\-frame\fR.
6386 .IP "\fB\-mthumb\-interwork\fR" 4
6387 .IX Item "-mthumb-interwork"
6388 Generate code which supports calling between the \s-1ARM\s0 and Thumb
6389 instruction sets.  Without this option the two instruction sets cannot
6390 be reliably used inside one program.  The default is
6391 \&\fB\-mno\-thumb\-interwork\fR, since slightly larger code is generated
6392 when \fB\-mthumb\-interwork\fR is specified.
6393 .IP "\fB\-mno\-sched\-prolog\fR" 4
6394 .IX Item "-mno-sched-prolog"
6395 Prevent the reordering of instructions in the function prolog, or the
6396 merging of those instruction with the instructions in the function's
6397 body.  This means that all functions will start with a recognizable set
6398 of instructions (or in fact one of a choice from a small set of
6399 different function prologues), and this information can be used to
6400 locate the start if functions inside an executable piece of code.  The
6401 default is \fB\-msched\-prolog\fR.
6402 .IP "\fB\-mhard\-float\fR" 4
6403 .IX Item "-mhard-float"
6404 Generate output containing floating point instructions.  This is the
6405 default.
6406 .IP "\fB\-msoft\-float\fR" 4
6407 .IX Item "-msoft-float"
6408 Generate output containing library calls for floating point.
6409 \&\fBWarning:\fR the requisite libraries are not available for all \s-1ARM\s0
6410 targets.  Normally the facilities of the machine's usual C compiler are
6411 used, but this cannot be done directly in cross\-compilation.  You must make
6412 your own arrangements to provide suitable library functions for
6413 cross\-compilation.
6414 .Sp
6415 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
6416 therefore, it is only useful if you compile \fIall\fR of a program with
6417 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
6418 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
6419 this to work.
6420 .IP "\fB\-mfloat\-abi=\fR\fIname\fR" 4
6421 .IX Item "-mfloat-abi=name"
6422 Specifies which \s-1ABI\s0 to use for floating point values.  Permissible values
6423 are: \fBsoft\fR, \fBsoftfp\fR and \fBhard\fR.
6424 .Sp
6425 \&\fBsoft\fR and \fBhard\fR are equivalent to \fB\-msoft\-float\fR
6426 and \fB\-mhard\-float\fR respectively.  \fBsoftfp\fR allows the generation
6427 of floating point instructions, but still uses the soft-float calling
6428 conventions.
6429 .IP "\fB\-mlittle\-endian\fR" 4
6430 .IX Item "-mlittle-endian"
6431 Generate code for a processor running in little-endian mode.  This is
6432 the default for all standard configurations.
6433 .IP "\fB\-mbig\-endian\fR" 4
6434 .IX Item "-mbig-endian"
6435 Generate code for a processor running in big-endian mode; the default is
6436 to compile code for a little-endian processor.
6437 .IP "\fB\-mwords\-little\-endian\fR" 4
6438 .IX Item "-mwords-little-endian"
6439 This option only applies when generating code for big-endian processors.
6440 Generate code for a little-endian word order but a big-endian byte
6441 order.  That is, a byte order of the form \fB32107654\fR.  Note: this
6442 option should only be used if you require compatibility with code for
6443 big-endian \s-1ARM\s0 processors generated by versions of the compiler prior to
6444 2.8.
6445 .IP "\fB\-mcpu=\fR\fIname\fR" 4
6446 .IX Item "-mcpu=name"
6447 This specifies the name of the target \s-1ARM\s0 processor.  \s-1GCC\s0 uses this name
6448 to determine what kind of instructions it can emit when generating
6449 assembly code.  Permissible names are: \fBarm2\fR, \fBarm250\fR,
6450 \&\fBarm3\fR, \fBarm6\fR, \fBarm60\fR, \fBarm600\fR, \fBarm610\fR,
6451 \&\fBarm620\fR, \fBarm7\fR, \fBarm7m\fR, \fBarm7d\fR, \fBarm7dm\fR,
6452 \&\fBarm7di\fR, \fBarm7dmi\fR, \fBarm70\fR, \fBarm700\fR,
6453 \&\fBarm700i\fR, \fBarm710\fR, \fBarm710c\fR, \fBarm7100\fR,
6454 \&\fBarm7500\fR, \fBarm7500fe\fR, \fBarm7tdmi\fR, \fBarm7tdmi\-s\fR,
6455 \&\fBarm8\fR, \fBstrongarm\fR, \fBstrongarm110\fR, \fBstrongarm1100\fR,
6456 \&\fBarm8\fR, \fBarm810\fR, \fBarm9\fR, \fBarm9e\fR, \fBarm920\fR,
6457 \&\fBarm920t\fR, \fBarm922t\fR, \fBarm946e\-s\fR, \fBarm966e\-s\fR,
6458 \&\fBarm968e\-s\fR, \fBarm926ej\-s\fR, \fBarm940t\fR, \fBarm9tdmi\fR,
6459 \&\fBarm10tdmi\fR, \fBarm1020t\fR, \fBarm1026ej\-s\fR,
6460 \&\fBarm10e\fR, \fBarm1020e\fR, \fBarm1022e\fR,
6461 \&\fBarm1136j\-s\fR, \fBarm1136jf\-s\fR, \fBmpcore\fR, \fBmpcorenovfp\fR,
6462 \&\fBarm1176jz\-s\fR, \fBarm1176jzf\-s\fR, \fBxscale\fR, \fBiwmmxt\fR,
6463 \&\fBep9312\fR.
6464 .IP "\fB\-mtune=\fR\fIname\fR" 4
6465 .IX Item "-mtune=name"
6466 This option is very similar to the \fB\-mcpu=\fR option, except that
6467 instead of specifying the actual target processor type, and hence
6468 restricting which instructions can be used, it specifies that \s-1GCC\s0 should
6469 tune the performance of the code as if the target were of the type
6470 specified in this option, but still choosing the instructions that it
6471 will generate based on the cpu specified by a \fB\-mcpu=\fR option.
6472 For some \s-1ARM\s0 implementations better performance can be obtained by using
6473 this option.
6474 .IP "\fB\-march=\fR\fIname\fR" 4
6475 .IX Item "-march=name"
6476 This specifies the name of the target \s-1ARM\s0 architecture.  \s-1GCC\s0 uses this
6477 name to determine what kind of instructions it can emit when generating
6478 assembly code.  This option can be used in conjunction with or instead
6479 of the \fB\-mcpu=\fR option.  Permissible names are: \fBarmv2\fR,
6480 \&\fBarmv2a\fR, \fBarmv3\fR, \fBarmv3m\fR, \fBarmv4\fR, \fBarmv4t\fR,
6481 \&\fBarmv5\fR, \fBarmv5t\fR, \fBarmv5te\fR, \fBarmv6\fR, \fBarmv6j\fR,
6482 \&\fBiwmmxt\fR, \fBep9312\fR.
6483 .IP "\fB\-mfpu=\fR\fIname\fR" 4
6484 .IX Item "-mfpu=name"
6485 .PD 0
6486 .IP "\fB\-mfpe=\fR\fInumber\fR" 4
6487 .IX Item "-mfpe=number"
6488 .IP "\fB\-mfp=\fR\fInumber\fR" 4
6489 .IX Item "-mfp=number"
6490 .PD
6491 This specifies what floating point hardware (or hardware emulation) is
6492 available on the target.  Permissible names are: \fBfpa\fR, \fBfpe2\fR,
6493 \&\fBfpe3\fR, \fBmaverick\fR, \fBvfp\fR.  \fB\-mfp\fR and \fB\-mfpe\fR
6494 are synonyms for \fB\-mfpu\fR=\fBfpe\fR\fInumber\fR, for compatibility
6495 with older versions of \s-1GCC\s0.
6496 .Sp
6497 If \fB\-msoft\-float\fR is specified this specifies the format of
6498 floating point values.
6499 .IP "\fB\-mstructure\-size\-boundary=\fR\fIn\fR" 4
6500 .IX Item "-mstructure-size-boundary=n"
6501 The size of all structures and unions will be rounded up to a multiple
6502 of the number of bits set by this option.  Permissible values are 8, 32
6503 and 64.  The default value varies for different toolchains.  For the \s-1COFF\s0
6504 targeted toolchain the default value is 8.  A value of 64 is only allowed
6505 if the underlying \s-1ABI\s0 supports it.
6506 .Sp
6507 Specifying the larger number can produce faster, more efficient code, but
6508 can also increase the size of the program.  Different values are potentially
6509 incompatible.  Code compiled with one value cannot necessarily expect to
6510 work with code or libraries compiled with another value, if they exchange
6511 information using structures or unions.
6512 .IP "\fB\-mabort\-on\-noreturn\fR" 4
6513 .IX Item "-mabort-on-noreturn"
6514 Generate a call to the function \f(CW\*(C`abort\*(C'\fR at the end of a
6515 \&\f(CW\*(C`noreturn\*(C'\fR function.  It will be executed if the function tries to
6516 return.
6517 .IP "\fB\-mlong\-calls\fR" 4
6518 .IX Item "-mlong-calls"
6519 .PD 0
6520 .IP "\fB\-mno\-long\-calls\fR" 4
6521 .IX Item "-mno-long-calls"
6522 .PD
6523 Tells the compiler to perform function calls by first loading the
6524 address of the function into a register and then performing a subroutine
6525 call on this register.  This switch is needed if the target function
6526 will lie outside of the 64 megabyte addressing range of the offset based
6527 version of subroutine call instruction.
6528 .Sp
6529 Even if this switch is enabled, not all function calls will be turned
6530 into long calls.  The heuristic is that static functions, functions
6531 which have the \fBshort-call\fR attribute, functions that are inside
6532 the scope of a \fB#pragma no_long_calls\fR directive and functions whose
6533 definitions have already been compiled within the current compilation
6534 unit, will not be turned into long calls.  The exception to this rule is
6535 that weak function definitions, functions with the \fBlong-call\fR
6536 attribute or the \fBsection\fR attribute, and functions that are within
6537 the scope of a \fB#pragma long_calls\fR directive, will always be
6538 turned into long calls.
6539 .Sp
6540 This feature is not enabled by default.  Specifying
6541 \&\fB\-mno\-long\-calls\fR will restore the default behavior, as will
6542 placing the function calls within the scope of a \fB#pragma
6543 long_calls_off\fR directive.  Note these switches have no effect on how
6544 the compiler generates code to handle function calls via function
6545 pointers.
6546 .IP "\fB\-mnop\-fun\-dllimport\fR" 4
6547 .IX Item "-mnop-fun-dllimport"
6548 Disable support for the \f(CW\*(C`dllimport\*(C'\fR attribute.
6549 .IP "\fB\-msingle\-pic\-base\fR" 4
6550 .IX Item "-msingle-pic-base"
6551 Treat the register used for \s-1PIC\s0 addressing as read\-only, rather than
6552 loading it in the prologue for each function.  The run-time system is
6553 responsible for initializing this register with an appropriate value
6554 before execution begins.
6555 .IP "\fB\-mpic\-register=\fR\fIreg\fR" 4
6556 .IX Item "-mpic-register=reg"
6557 Specify the register to be used for \s-1PIC\s0 addressing.  The default is R10
6558 unless stack-checking is enabled, when R9 is used.
6559 .IP "\fB\-mcirrus\-fix\-invalid\-insns\fR" 4
6560 .IX Item "-mcirrus-fix-invalid-insns"
6561 Insert NOPs into the instruction stream to in order to work around
6562 problems with invalid Maverick instruction combinations.  This option
6563 is only valid if the \fB\-mcpu=ep9312\fR option has been used to
6564 enable generation of instructions for the Cirrus Maverick floating
6565 point co\-processor.  This option is not enabled by default, since the
6566 problem is only present in older Maverick implementations.  The default
6567 can be re-enabled by use of the \fB\-mno\-cirrus\-fix\-invalid\-insns\fR
6568 switch.
6569 .IP "\fB\-mpoke\-function\-name\fR" 4
6570 .IX Item "-mpoke-function-name"
6571 Write the name of each function into the text section, directly
6572 preceding the function prologue.  The generated code is similar to this:
6573 .Sp
6574 .Vb 9
6575 \&             t0
6576 \&                 .ascii "arm_poke_function_name", 0
6577 \&                 .align
6578 \&             t1
6579 \&                 .word 0xff000000 + (t1 - t0)
6580 \&             arm_poke_function_name
6581 \&                 mov     ip, sp
6582 \&                 stmfd   sp!, {fp, ip, lr, pc}
6583 \&                 sub     fp, ip, #4
6584 .Ve
6585 .Sp
6586 When performing a stack backtrace, code can inspect the value of
6587 \&\f(CW\*(C`pc\*(C'\fR stored at \f(CW\*(C`fp + 0\*(C'\fR.  If the trace function then looks at
6588 location \f(CW\*(C`pc \- 12\*(C'\fR and the top 8 bits are set, then we know that
6589 there is a function name embedded immediately preceding this location
6590 and has length \f(CW\*(C`((pc[\-3]) & 0xff000000)\*(C'\fR.
6591 .IP "\fB\-mthumb\fR" 4
6592 .IX Item "-mthumb"
6593 Generate code for the 16\-bit Thumb instruction set.  The default is to
6594 use the 32\-bit \s-1ARM\s0 instruction set.
6595 .IP "\fB\-mtpcs\-frame\fR" 4
6596 .IX Item "-mtpcs-frame"
6597 Generate a stack frame that is compliant with the Thumb Procedure Call
6598 Standard for all non-leaf functions.  (A leaf function is one that does
6599 not call any other functions.)  The default is \fB\-mno\-tpcs\-frame\fR.
6600 .IP "\fB\-mtpcs\-leaf\-frame\fR" 4
6601 .IX Item "-mtpcs-leaf-frame"
6602 Generate a stack frame that is compliant with the Thumb Procedure Call
6603 Standard for all leaf functions.  (A leaf function is one that does
6604 not call any other functions.)  The default is \fB\-mno\-apcs\-leaf\-frame\fR.
6605 .IP "\fB\-mcallee\-super\-interworking\fR" 4
6606 .IX Item "-mcallee-super-interworking"
6607 Gives all externally visible functions in the file being compiled an \s-1ARM\s0
6608 instruction set header which switches to Thumb mode before executing the
6609 rest of the function.  This allows these functions to be called from
6610 non-interworking code.
6611 .IP "\fB\-mcaller\-super\-interworking\fR" 4
6612 .IX Item "-mcaller-super-interworking"
6613 Allows calls via function pointers (including virtual functions) to
6614 execute correctly regardless of whether the target code has been
6615 compiled for interworking or not.  There is a small overhead in the cost
6616 of executing a function pointer if this option is enabled.
6617 .PP
6618 \fI\s-1AVR\s0 Options\fR
6619 .IX Subsection "AVR Options"
6620 .PP
6621 These options are defined for \s-1AVR\s0 implementations:
6622 .IP "\fB\-mmcu=\fR\fImcu\fR" 4
6623 .IX Item "-mmcu=mcu"
6624 Specify \s-1ATMEL\s0 \s-1AVR\s0 instruction set or \s-1MCU\s0 type.
6625 .Sp
6626 Instruction set avr1 is for the minimal \s-1AVR\s0 core, not supported by the C
6627 compiler, only for assembler programs (\s-1MCU\s0 types: at90s1200, attiny10,
6628 attiny11, attiny12, attiny15, attiny28).
6629 .Sp
6630 Instruction set avr2 (default) is for the classic \s-1AVR\s0 core with up to
6631 8K program memory space (\s-1MCU\s0 types: at90s2313, at90s2323, attiny22,
6632 at90s2333, at90s2343, at90s4414, at90s4433, at90s4434, at90s8515,
6633 at90c8534, at90s8535).
6634 .Sp
6635 Instruction set avr3 is for the classic \s-1AVR\s0 core with up to 128K program
6636 memory space (\s-1MCU\s0 types: atmega103, atmega603, at43usb320, at76c711).
6637 .Sp
6638 Instruction set avr4 is for the enhanced \s-1AVR\s0 core with up to 8K program
6639 memory space (\s-1MCU\s0 types: atmega8, atmega83, atmega85).
6640 .Sp
6641 Instruction set avr5 is for the enhanced \s-1AVR\s0 core with up to 128K program
6642 memory space (\s-1MCU\s0 types: atmega16, atmega161, atmega163, atmega32, atmega323,
6643 atmega64, atmega128, at43usb355, at94k).
6644 .IP "\fB\-msize\fR" 4
6645 .IX Item "-msize"
6646 Output instruction sizes to the asm file.
6647 .IP "\fB\-minit\-stack=\fR\fIN\fR" 4
6648 .IX Item "-minit-stack=N"
6649 Specify the initial stack address, which may be a symbol or numeric value,
6650 \&\fB_\|_stack\fR is the default.
6651 .IP "\fB\-mno\-interrupts\fR" 4
6652 .IX Item "-mno-interrupts"
6653 Generated code is not compatible with hardware interrupts.
6654 Code size will be smaller.
6655 .IP "\fB\-mcall\-prologues\fR" 4
6656 .IX Item "-mcall-prologues"
6657 Functions prologues/epilogues expanded as call to appropriate
6658 subroutines.  Code size will be smaller.
6659 .IP "\fB\-mno\-tablejump\fR" 4
6660 .IX Item "-mno-tablejump"
6661 Do not generate tablejump insns which sometimes increase code size.
6662 .IP "\fB\-mtiny\-stack\fR" 4
6663 .IX Item "-mtiny-stack"
6664 Change only the low 8 bits of the stack pointer.
6665 .IP "\fB\-mint8\fR" 4
6666 .IX Item "-mint8"
6667 Assume int to be 8 bit integer.  This affects the sizes of all types: A
6668 char will be 1 byte, an int will be 1 byte, an long will be 2 bytes
6669 and long long will be 4 bytes.  Please note that this option does not
6670 comply to the C standards, but it will provide you with smaller code
6671 size.
6672 .PP
6673 \fIBlackfin Options\fR
6674 .IX Subsection "Blackfin Options"
6675 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
6676 .IX Item "-momit-leaf-frame-pointer"
6677 Don't keep the frame pointer in a register for leaf functions.  This
6678 avoids the instructions to save, set up and restore frame pointers and
6679 makes an extra register available in leaf functions.  The option
6680 \&\fB\-fomit\-frame\-pointer\fR removes the frame pointer for all functions
6681 which might make debugging harder.
6682 .IP "\fB\-mcsync\fR" 4
6683 .IX Item "-mcsync"
6684 When enabled, the compiler will ensure that the generated code does not
6685 contain speculative loads after jump instructions.  This option is enabled
6686 by default.
6687 .IP "\fB\-mno\-csync\fR" 4
6688 .IX Item "-mno-csync"
6689 Don't generate extra code to prevent speculative loads from occurring.
6690 .IP "\fB\-mlow\-64k\fR" 4
6691 .IX Item "-mlow-64k"
6692 When enabled, the compiler is free to take advantage of the knowledge that
6693 the entire program fits into the low 64k of memory.
6694 .IP "\fB\-mno\-low\-64k\fR" 4
6695 .IX Item "-mno-low-64k"
6696 Assume that the program is arbitrarily large.  This is the default.
6697 .IP "\fB\-mid\-shared\-library\fR" 4
6698 .IX Item "-mid-shared-library"
6699 Generate code that supports shared libraries via the library \s-1ID\s0 method.
6700 This allows for execute in place and shared libraries in an environment
6701 without virtual memory management.  This option implies \fB\-fPIC\fR.
6702 .IP "\fB\-mno\-id\-shared\-library\fR" 4
6703 .IX Item "-mno-id-shared-library"
6704 Generate code that doesn't assume \s-1ID\s0 based shared libraries are being used.
6705 This is the default.
6706 .IP "\fB\-mshared\-library\-id=n\fR" 4
6707 .IX Item "-mshared-library-id=n"
6708 Specified the identification number of the \s-1ID\s0 based shared library being
6709 compiled.  Specifying a value of 0 will generate more compact code, specifying
6710 other values will force the allocation of that number to the current
6711 library but is no more space or time efficient than omitting this option.
6712 .PP
6713 \fI\s-1CRIS\s0 Options\fR
6714 .IX Subsection "CRIS Options"
6715 .PP
6716 These options are defined specifically for the \s-1CRIS\s0 ports.
6717 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
6718 .IX Item "-march=architecture-type"
6719 .PD 0
6720 .IP "\fB\-mcpu=\fR\fIarchitecture-type\fR" 4
6721 .IX Item "-mcpu=architecture-type"
6722 .PD
6723 Generate code for the specified architecture.  The choices for
6724 \&\fIarchitecture-type\fR are \fBv3\fR, \fBv8\fR and \fBv10\fR for
6725 respectively \s-1ETRAX\s0\ 4, \s-1ETRAX\s0\ 100, and \s-1ETRAX\s0\ 100\ \s-1LX\s0.
6726 Default is \fBv0\fR except for cris\-axis\-linux\-gnu, where the default is
6727 \&\fBv10\fR.
6728 .IP "\fB\-mtune=\fR\fIarchitecture-type\fR" 4
6729 .IX Item "-mtune=architecture-type"
6730 Tune to \fIarchitecture-type\fR everything applicable about the generated
6731 code, except for the \s-1ABI\s0 and the set of available instructions.  The
6732 choices for \fIarchitecture-type\fR are the same as for
6733 \&\fB\-march=\fR\fIarchitecture-type\fR.
6734 .IP "\fB\-mmax\-stack\-frame=\fR\fIn\fR" 4
6735 .IX Item "-mmax-stack-frame=n"
6736 Warn when the stack frame of a function exceeds \fIn\fR bytes.
6737 .IP "\fB\-melinux\-stacksize=\fR\fIn\fR" 4
6738 .IX Item "-melinux-stacksize=n"
6739 Only available with the \fBcris-axis-aout\fR target.  Arranges for
6740 indications in the program to the kernel loader that the stack of the
6741 program should be set to \fIn\fR bytes.
6742 .IP "\fB\-metrax4\fR" 4
6743 .IX Item "-metrax4"
6744 .PD 0
6745 .IP "\fB\-metrax100\fR" 4
6746 .IX Item "-metrax100"
6747 .PD
6748 The options \fB\-metrax4\fR and \fB\-metrax100\fR are synonyms for
6749 \&\fB\-march=v3\fR and \fB\-march=v8\fR respectively.
6750 .IP "\fB\-mmul\-bug\-workaround\fR" 4
6751 .IX Item "-mmul-bug-workaround"
6752 .PD 0
6753 .IP "\fB\-mno\-mul\-bug\-workaround\fR" 4
6754 .IX Item "-mno-mul-bug-workaround"
6755 .PD
6756 Work around a bug in the \f(CW\*(C`muls\*(C'\fR and \f(CW\*(C`mulu\*(C'\fR instructions for \s-1CPU\s0
6757 models where it applies.  This option is active by default.
6758 .IP "\fB\-mpdebug\fR" 4
6759 .IX Item "-mpdebug"
6760 Enable CRIS-specific verbose debug-related information in the assembly
6761 code.  This option also has the effect to turn off the \fB#NO_APP\fR
6762 formatted-code indicator to the assembler at the beginning of the
6763 assembly file.
6764 .IP "\fB\-mcc\-init\fR" 4
6765 .IX Item "-mcc-init"
6766 Do not use condition-code results from previous instruction; always emit
6767 compare and test instructions before use of condition codes.
6768 .IP "\fB\-mno\-side\-effects\fR" 4
6769 .IX Item "-mno-side-effects"
6770 Do not emit instructions with side-effects in addressing modes other than
6771 post\-increment.
6772 .IP "\fB\-mstack\-align\fR" 4
6773 .IX Item "-mstack-align"
6774 .PD 0
6775 .IP "\fB\-mno\-stack\-align\fR" 4
6776 .IX Item "-mno-stack-align"
6777 .IP "\fB\-mdata\-align\fR" 4
6778 .IX Item "-mdata-align"
6779 .IP "\fB\-mno\-data\-align\fR" 4
6780 .IX Item "-mno-data-align"
6781 .IP "\fB\-mconst\-align\fR" 4
6782 .IX Item "-mconst-align"
6783 .IP "\fB\-mno\-const\-align\fR" 4
6784 .IX Item "-mno-const-align"
6785 .PD
6786 These options (no\-options) arranges (eliminate arrangements) for the
6787 stack\-frame, individual data and constants to be aligned for the maximum
6788 single data access size for the chosen \s-1CPU\s0 model.  The default is to
6789 arrange for 32\-bit alignment.  \s-1ABI\s0 details such as structure layout are
6790 not affected by these options.
6791 .IP "\fB\-m32\-bit\fR" 4
6792 .IX Item "-m32-bit"
6793 .PD 0
6794 .IP "\fB\-m16\-bit\fR" 4
6795 .IX Item "-m16-bit"
6796 .IP "\fB\-m8\-bit\fR" 4
6797 .IX Item "-m8-bit"
6798 .PD
6799 Similar to the stack\- data\- and const-align options above, these options
6800 arrange for stack\-frame, writable data and constants to all be 32\-bit,
6801 16\-bit or 8\-bit aligned.  The default is 32\-bit alignment.
6802 .IP "\fB\-mno\-prologue\-epilogue\fR" 4
6803 .IX Item "-mno-prologue-epilogue"
6804 .PD 0
6805 .IP "\fB\-mprologue\-epilogue\fR" 4
6806 .IX Item "-mprologue-epilogue"
6807 .PD
6808 With \fB\-mno\-prologue\-epilogue\fR, the normal function prologue and
6809 epilogue that sets up the stack-frame are omitted and no return
6810 instructions or return sequences are generated in the code.  Use this
6811 option only together with visual inspection of the compiled code: no
6812 warnings or errors are generated when call-saved registers must be saved,
6813 or storage for local variable needs to be allocated.
6814 .IP "\fB\-mno\-gotplt\fR" 4
6815 .IX Item "-mno-gotplt"
6816 .PD 0
6817 .IP "\fB\-mgotplt\fR" 4
6818 .IX Item "-mgotplt"
6819 .PD
6820 With \fB\-fpic\fR and \fB\-fPIC\fR, don't generate (do generate)
6821 instruction sequences that load addresses for functions from the \s-1PLT\s0 part
6822 of the \s-1GOT\s0 rather than (traditional on other architectures) calls to the
6823 \&\s-1PLT\s0.  The default is \fB\-mgotplt\fR.
6824 .IP "\fB\-maout\fR" 4
6825 .IX Item "-maout"
6826 Legacy no-op option only recognized with the cris-axis-aout target.
6827 .IP "\fB\-melf\fR" 4
6828 .IX Item "-melf"
6829 Legacy no-op option only recognized with the cris-axis-elf and
6830 cris-axis-linux-gnu targets.
6831 .IP "\fB\-melinux\fR" 4
6832 .IX Item "-melinux"
6833 Only recognized with the cris-axis-aout target, where it selects a
6834 GNU/linux\-like multilib, include files and instruction set for
6835 \&\fB\-march=v8\fR.
6836 .IP "\fB\-mlinux\fR" 4
6837 .IX Item "-mlinux"
6838 Legacy no-op option only recognized with the cris-axis-linux-gnu target.
6839 .IP "\fB\-sim\fR" 4
6840 .IX Item "-sim"
6841 This option, recognized for the cris-axis-aout and cris-axis-elf arranges
6842 to link with input-output functions from a simulator library.  Code,
6843 initialized data and zero-initialized data are allocated consecutively.
6844 .IP "\fB\-sim2\fR" 4
6845 .IX Item "-sim2"
6846 Like \fB\-sim\fR, but pass linker options to locate initialized data at
6847 0x40000000 and zero-initialized data at 0x80000000.
6848 .PP
6849 \fIDarwin Options\fR
6850 .IX Subsection "Darwin Options"
6851 .PP
6852 These options are defined for all architectures running the Darwin operating
6853 system.
6854 .PP
6855 \&\s-1FSF\s0 \s-1GCC\s0 on Darwin does not create ``fat'' object files; it will create
6856 an object file for the single architecture that it was built to
6857 target.  Apple's \s-1GCC\s0 on Darwin does create ``fat'' files if multiple
6858 \&\fB\-arch\fR options are used; it does so by running the compiler or
6859 linker multiple times and joining the results together with
6860 \&\fIlipo\fR.
6861 .PP
6862 The subtype of the file created (like \fBppc7400\fR or \fBppc970\fR or
6863 \&\fBi686\fR) is determined by the flags that specify the \s-1ISA\s0
6864 that \s-1GCC\s0 is targetting, like \fB\-mcpu\fR or \fB\-march\fR.  The
6865 \&\fB\-force_cpusubtype_ALL\fR option can be used to override this.
6866 .PP
6867 The Darwin tools vary in their behavior when presented with an \s-1ISA\s0
6868 mismatch.  The assembler, \fIas\fR, will only permit instructions to
6869 be used that are valid for the subtype of the file it is generating,
6870 so you cannot put 64\-bit instructions in an \fBppc750\fR object file.
6871 The linker for shared libraries, \fI/usr/bin/libtool\fR, will fail
6872 and print an error if asked to create a shared library with a less
6873 restrictive subtype than its input files (for instance, trying to put
6874 a \fBppc970\fR object file in a \fBppc7400\fR library).  The linker
6875 for executables, \fIld\fR, will quietly give the executable the most
6876 restrictive subtype of any of its input files.
6877 .IP "\fB\-F\fR\fIdir\fR" 4
6878 .IX Item "-Fdir"
6879 Add the framework directory \fIdir\fR to the head of the list of
6880 directories to be searched for header files.  These directories are
6881 interleaved with those specified by \fB\-I\fR options and are
6882 scanned in a left-to-right order.
6883 .Sp
6884 A framework directory is a directory with frameworks in it.  A
6885 framework is a directory with a \fB\*(L"Headers\*(R"\fR and/or
6886 \&\fB\*(L"PrivateHeaders\*(R"\fR directory contained directly in it that ends
6887 in \fB\*(L".framework\*(R"\fR.  The name of a framework is the name of this
6888 directory excluding the \fB\*(L".framework\*(R"\fR.  Headers associated with
6889 the framework are found in one of those two directories, with
6890 \&\fB\*(L"Headers\*(R"\fR being searched first.  A subframework is a framework
6891 directory that is in a framework's \fB\*(L"Frameworks\*(R"\fR directory.
6892 Includes of subframework headers can only appear in a header of a
6893 framework that contains the subframework, or in a sibling subframework
6894 header.  Two subframeworks are siblings if they occur in the same
6895 framework.  A subframework should not have the same name as a
6896 framework, a warning will be issued if this is violated.  Currently a
6897 subframework cannot have subframeworks, in the future, the mechanism
6898 may be extended to support this.  The standard frameworks can be found
6899 in \fB\*(L"/System/Library/Frameworks\*(R"\fR and
6900 \&\fB\*(L"/Library/Frameworks\*(R"\fR.  An example include looks like
6901 \&\f(CW\*(C`#include <Framework/header.h>\*(C'\fR, where \fBFramework\fR denotes
6902 the name of the framework and header.h is found in the
6903 \&\fB\*(L"PrivateHeaders\*(R"\fR or \fB\*(L"Headers\*(R"\fR directory.
6904 .IP "\fB\-gused\fR" 4
6905 .IX Item "-gused"
6906 Emit debugging information for symbols that are used.  For \s-1STABS\s0
6907 debugging format, this enables \fB\-feliminate\-unused\-debug\-symbols\fR.
6908 This is by default \s-1ON\s0.
6909 .IP "\fB\-gfull\fR" 4
6910 .IX Item "-gfull"
6911 Emit debugging information for all symbols and types.
6912 .IP "\fB\-mone\-byte\-bool\fR" 4
6913 .IX Item "-mone-byte-bool"
6914 Override the defaults for \fBbool\fR so that \fBsizeof(bool)==1\fR.
6915 By default \fBsizeof(bool)\fR is \fB4\fR when compiling for
6916 Darwin/PowerPC and \fB1\fR when compiling for Darwin/x86, so this
6917 option has no effect on x86.
6918 .Sp
6919 \&\fBWarning:\fR The \fB\-mone\-byte\-bool\fR switch causes \s-1GCC\s0
6920 to generate code that is not binary compatible with code generated
6921 without that switch.  Using this switch may require recompiling all
6922 other modules in a program, including system libraries.  Use this
6923 switch to conform to a non-default data model.
6924 .IP "\fB\-mfix\-and\-continue\fR" 4
6925 .IX Item "-mfix-and-continue"
6926 .PD 0
6927 .IP "\fB\-ffix\-and\-continue\fR" 4
6928 .IX Item "-ffix-and-continue"
6929 .IP "\fB\-findirect\-data\fR" 4
6930 .IX Item "-findirect-data"
6931 .PD
6932 Generate code suitable for fast turn around development.  Needed to
6933 enable gdb to dynamically load \f(CW\*(C`.o\*(C'\fR files into already running
6934 programs.  \fB\-findirect\-data\fR and \fB\-ffix\-and\-continue\fR
6935 are provided for backwards compatibility.
6936 .IP "\fB\-all_load\fR" 4
6937 .IX Item "-all_load"
6938 Loads all members of static archive libraries.
6939 See man \fIld\fR\|(1) for more information.
6940 .IP "\fB\-arch_errors_fatal\fR" 4
6941 .IX Item "-arch_errors_fatal"
6942 Cause the errors having to do with files that have the wrong architecture
6943 to be fatal.
6944 .IP "\fB\-bind_at_load\fR" 4
6945 .IX Item "-bind_at_load"
6946 Causes the output file to be marked such that the dynamic linker will
6947 bind all undefined references when the file is loaded or launched.
6948 .IP "\fB\-bundle\fR" 4
6949 .IX Item "-bundle"
6950 Produce a Mach-o bundle format file.
6951 See man \fIld\fR\|(1) for more information.
6952 .IP "\fB\-bundle_loader\fR \fIexecutable\fR" 4
6953 .IX Item "-bundle_loader executable"
6954 This option specifies the \fIexecutable\fR that will be loading the build
6955 output file being linked.  See man \fIld\fR\|(1) for more information.
6956 .IP "\fB\-dynamiclib\fR" 4
6957 .IX Item "-dynamiclib"
6958 When passed this option, \s-1GCC\s0 will produce a dynamic library instead of
6959 an executable when linking, using the Darwin \fIlibtool\fR command.
6960 .IP "\fB\-force_cpusubtype_ALL\fR" 4
6961 .IX Item "-force_cpusubtype_ALL"
6962 This causes \s-1GCC\s0's output file to have the \fI\s-1ALL\s0\fR subtype, instead of
6963 one controlled by the \fB\-mcpu\fR or \fB\-march\fR option.
6964 .IP "\fB\-allowable_client\fR  \fIclient_name\fR" 4
6965 .IX Item "-allowable_client  client_name"
6966 .PD 0
6967 .IP "\fB\-client_name\fR" 4
6968 .IX Item "-client_name"
6969 .IP "\fB\-compatibility_version\fR" 4
6970 .IX Item "-compatibility_version"
6971 .IP "\fB\-current_version\fR" 4
6972 .IX Item "-current_version"
6973 .IP "\fB\-dead_strip\fR" 4
6974 .IX Item "-dead_strip"
6975 .IP "\fB\-dependency\-file\fR" 4
6976 .IX Item "-dependency-file"
6977 .IP "\fB\-dylib_file\fR" 4
6978 .IX Item "-dylib_file"
6979 .IP "\fB\-dylinker_install_name\fR" 4
6980 .IX Item "-dylinker_install_name"
6981 .IP "\fB\-dynamic\fR" 4
6982 .IX Item "-dynamic"
6983 .IP "\fB\-exported_symbols_list\fR" 4
6984 .IX Item "-exported_symbols_list"
6985 .IP "\fB\-filelist\fR" 4
6986 .IX Item "-filelist"
6987 .IP "\fB\-flat_namespace\fR" 4
6988 .IX Item "-flat_namespace"
6989 .IP "\fB\-force_flat_namespace\fR" 4
6990 .IX Item "-force_flat_namespace"
6991 .IP "\fB\-headerpad_max_install_names\fR" 4
6992 .IX Item "-headerpad_max_install_names"
6993 .IP "\fB\-image_base\fR" 4
6994 .IX Item "-image_base"
6995 .IP "\fB\-init\fR" 4
6996 .IX Item "-init"
6997 .IP "\fB\-install_name\fR" 4
6998 .IX Item "-install_name"
6999 .IP "\fB\-keep_private_externs\fR" 4
7000 .IX Item "-keep_private_externs"
7001 .IP "\fB\-multi_module\fR" 4
7002 .IX Item "-multi_module"
7003 .IP "\fB\-multiply_defined\fR" 4
7004 .IX Item "-multiply_defined"
7005 .IP "\fB\-multiply_defined_unused\fR" 4
7006 .IX Item "-multiply_defined_unused"
7007 .IP "\fB\-noall_load\fR" 4
7008 .IX Item "-noall_load"
7009 .IP "\fB\-no_dead_strip_inits_and_terms\fR" 4
7010 .IX Item "-no_dead_strip_inits_and_terms"
7011 .IP "\fB\-nofixprebinding\fR" 4
7012 .IX Item "-nofixprebinding"
7013 .IP "\fB\-nomultidefs\fR" 4
7014 .IX Item "-nomultidefs"
7015 .IP "\fB\-noprebind\fR" 4
7016 .IX Item "-noprebind"
7017 .IP "\fB\-noseglinkedit\fR" 4
7018 .IX Item "-noseglinkedit"
7019 .IP "\fB\-pagezero_size\fR" 4
7020 .IX Item "-pagezero_size"
7021 .IP "\fB\-prebind\fR" 4
7022 .IX Item "-prebind"
7023 .IP "\fB\-prebind_all_twolevel_modules\fR" 4
7024 .IX Item "-prebind_all_twolevel_modules"
7025 .IP "\fB\-private_bundle\fR" 4
7026 .IX Item "-private_bundle"
7027 .IP "\fB\-read_only_relocs\fR" 4
7028 .IX Item "-read_only_relocs"
7029 .IP "\fB\-sectalign\fR" 4
7030 .IX Item "-sectalign"
7031 .IP "\fB\-sectobjectsymbols\fR" 4
7032 .IX Item "-sectobjectsymbols"
7033 .IP "\fB\-whyload\fR" 4
7034 .IX Item "-whyload"
7035 .IP "\fB\-seg1addr\fR" 4
7036 .IX Item "-seg1addr"
7037 .IP "\fB\-sectcreate\fR" 4
7038 .IX Item "-sectcreate"
7039 .IP "\fB\-sectobjectsymbols\fR" 4
7040 .IX Item "-sectobjectsymbols"
7041 .IP "\fB\-sectorder\fR" 4
7042 .IX Item "-sectorder"
7043 .IP "\fB\-segaddr\fR" 4
7044 .IX Item "-segaddr"
7045 .IP "\fB\-segs_read_only_addr\fR" 4
7046 .IX Item "-segs_read_only_addr"
7047 .IP "\fB\-segs_read_write_addr\fR" 4
7048 .IX Item "-segs_read_write_addr"
7049 .IP "\fB\-seg_addr_table\fR" 4
7050 .IX Item "-seg_addr_table"
7051 .IP "\fB\-seg_addr_table_filename\fR" 4
7052 .IX Item "-seg_addr_table_filename"
7053 .IP "\fB\-seglinkedit\fR" 4
7054 .IX Item "-seglinkedit"
7055 .IP "\fB\-segprot\fR" 4
7056 .IX Item "-segprot"
7057 .IP "\fB\-segs_read_only_addr\fR" 4
7058 .IX Item "-segs_read_only_addr"
7059 .IP "\fB\-segs_read_write_addr\fR" 4
7060 .IX Item "-segs_read_write_addr"
7061 .IP "\fB\-single_module\fR" 4
7062 .IX Item "-single_module"
7063 .IP "\fB\-static\fR" 4
7064 .IX Item "-static"
7065 .IP "\fB\-sub_library\fR" 4
7066 .IX Item "-sub_library"
7067 .IP "\fB\-sub_umbrella\fR" 4
7068 .IX Item "-sub_umbrella"
7069 .IP "\fB\-twolevel_namespace\fR" 4
7070 .IX Item "-twolevel_namespace"
7071 .IP "\fB\-umbrella\fR" 4
7072 .IX Item "-umbrella"
7073 .IP "\fB\-undefined\fR" 4
7074 .IX Item "-undefined"
7075 .IP "\fB\-unexported_symbols_list\fR" 4
7076 .IX Item "-unexported_symbols_list"
7077 .IP "\fB\-weak_reference_mismatches\fR" 4
7078 .IX Item "-weak_reference_mismatches"
7079 .IP "\fB\-whatsloaded\fR" 4
7080 .IX Item "-whatsloaded"
7081 .PD
7082 These options are passed to the Darwin linker.  The Darwin linker man page
7083 describes them in detail.
7084 .PP
7085 \fI\s-1DEC\s0 Alpha Options\fR
7086 .IX Subsection "DEC Alpha Options"
7087 .PP
7088 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha implementations:
7089 .IP "\fB\-mno\-soft\-float\fR" 4
7090 .IX Item "-mno-soft-float"
7091 .PD 0
7092 .IP "\fB\-msoft\-float\fR" 4
7093 .IX Item "-msoft-float"
7094 .PD
7095 Use (do not use) the hardware floating-point instructions for
7096 floating-point operations.  When \fB\-msoft\-float\fR is specified,
7097 functions in \fIlibgcc.a\fR will be used to perform floating-point
7098 operations.  Unless they are replaced by routines that emulate the
7099 floating-point operations, or compiled in such a way as to call such
7100 emulations routines, these routines will issue floating-point
7101 operations.   If you are compiling for an Alpha without floating-point
7102 operations, you must ensure that the library is built so as not to call
7103 them.
7104 .Sp
7105 Note that Alpha implementations without floating-point operations are
7106 required to have floating-point registers.
7107 .IP "\fB\-mfp\-reg\fR" 4
7108 .IX Item "-mfp-reg"
7109 .PD 0
7110 .IP "\fB\-mno\-fp\-regs\fR" 4
7111 .IX Item "-mno-fp-regs"
7112 .PD
7113 Generate code that uses (does not use) the floating-point register set.
7114 \&\fB\-mno\-fp\-regs\fR implies \fB\-msoft\-float\fR.  If the floating-point
7115 register set is not used, floating point operands are passed in integer
7116 registers as if they were integers and floating-point results are passed
7117 in \f(CW$0\fR instead of \f(CW$f0\fR.  This is a non-standard calling sequence,
7118 so any function with a floating-point argument or return value called by code
7119 compiled with \fB\-mno\-fp\-regs\fR must also be compiled with that
7120 option.
7121 .Sp
7122 A typical use of this option is building a kernel that does not use,
7123 and hence need not save and restore, any floating-point registers.
7124 .IP "\fB\-mieee\fR" 4
7125 .IX Item "-mieee"
7126 The Alpha architecture implements floating-point hardware optimized for
7127 maximum performance.  It is mostly compliant with the \s-1IEEE\s0 floating
7128 point standard.  However, for full compliance, software assistance is
7129 required.  This option generates code fully \s-1IEEE\s0 compliant code
7130 \&\fIexcept\fR that the \fIinexact-flag\fR is not maintained (see below).
7131 If this option is turned on, the preprocessor macro \f(CW\*(C`_IEEE_FP\*(C'\fR is
7132 defined during compilation.  The resulting code is less efficient but is
7133 able to correctly support denormalized numbers and exceptional \s-1IEEE\s0
7134 values such as not-a-number and plus/minus infinity.  Other Alpha
7135 compilers call this option \fB\-ieee_with_no_inexact\fR.
7136 .IP "\fB\-mieee\-with\-inexact\fR" 4
7137 .IX Item "-mieee-with-inexact"
7138 This is like \fB\-mieee\fR except the generated code also maintains
7139 the \s-1IEEE\s0 \fIinexact-flag\fR.  Turning on this option causes the
7140 generated code to implement fully-compliant \s-1IEEE\s0 math.  In addition to
7141 \&\f(CW\*(C`_IEEE_FP\*(C'\fR, \f(CW\*(C`_IEEE_FP_EXACT\*(C'\fR is defined as a preprocessor
7142 macro.  On some Alpha implementations the resulting code may execute
7143 significantly slower than the code generated by default.  Since there is
7144 very little code that depends on the \fIinexact-flag\fR, you should
7145 normally not specify this option.  Other Alpha compilers call this
7146 option \fB\-ieee_with_inexact\fR.
7147 .IP "\fB\-mfp\-trap\-mode=\fR\fItrap-mode\fR" 4
7148 .IX Item "-mfp-trap-mode=trap-mode"
7149 This option controls what floating-point related traps are enabled.
7150 Other Alpha compilers call this option \fB\-fptm\fR \fItrap-mode\fR.
7151 The trap mode can be set to one of four values:
7152 .RS 4
7153 .IP "\fBn\fR" 4
7154 .IX Item "n"
7155 This is the default (normal) setting.  The only traps that are enabled
7156 are the ones that cannot be disabled in software (e.g., division by zero
7157 trap).
7158 .IP "\fBu\fR" 4
7159 .IX Item "u"
7160 In addition to the traps enabled by \fBn\fR, underflow traps are enabled
7161 as well.
7162 .IP "\fBsu\fR" 4
7163 .IX Item "su"
7164 Like \fBsu\fR, but the instructions are marked to be safe for software
7165 completion (see Alpha architecture manual for details).
7166 .IP "\fBsui\fR" 4
7167 .IX Item "sui"
7168 Like \fBsu\fR, but inexact traps are enabled as well.
7169 .RE
7170 .RS 4
7171 .RE
7172 .IP "\fB\-mfp\-rounding\-mode=\fR\fIrounding-mode\fR" 4
7173 .IX Item "-mfp-rounding-mode=rounding-mode"
7174 Selects the \s-1IEEE\s0 rounding mode.  Other Alpha compilers call this option
7175 \&\fB\-fprm\fR \fIrounding-mode\fR.  The \fIrounding-mode\fR can be one
7176 of:
7177 .RS 4
7178 .IP "\fBn\fR" 4
7179 .IX Item "n"
7180 Normal \s-1IEEE\s0 rounding mode.  Floating point numbers are rounded towards
7181 the nearest machine number or towards the even machine number in case
7182 of a tie.
7183 .IP "\fBm\fR" 4
7184 .IX Item "m"
7185 Round towards minus infinity.
7186 .IP "\fBc\fR" 4
7187 .IX Item "c"
7188 Chopped rounding mode.  Floating point numbers are rounded towards zero.
7189 .IP "\fBd\fR" 4
7190 .IX Item "d"
7191 Dynamic rounding mode.  A field in the floating point control register
7192 (\fIfpcr\fR, see Alpha architecture reference manual) controls the
7193 rounding mode in effect.  The C library initializes this register for
7194 rounding towards plus infinity.  Thus, unless your program modifies the
7195 \&\fIfpcr\fR, \fBd\fR corresponds to round towards plus infinity.
7196 .RE
7197 .RS 4
7198 .RE
7199 .IP "\fB\-mtrap\-precision=\fR\fItrap-precision\fR" 4
7200 .IX Item "-mtrap-precision=trap-precision"
7201 In the Alpha architecture, floating point traps are imprecise.  This
7202 means without software assistance it is impossible to recover from a
7203 floating trap and program execution normally needs to be terminated.
7204 \&\s-1GCC\s0 can generate code that can assist operating system trap handlers
7205 in determining the exact location that caused a floating point trap.
7206 Depending on the requirements of an application, different levels of
7207 precisions can be selected:
7208 .RS 4
7209 .IP "\fBp\fR" 4
7210 .IX Item "p"
7211 Program precision.  This option is the default and means a trap handler
7212 can only identify which program caused a floating point exception.
7213 .IP "\fBf\fR" 4
7214 .IX Item "f"
7215 Function precision.  The trap handler can determine the function that
7216 caused a floating point exception.
7217 .IP "\fBi\fR" 4
7218 .IX Item "i"
7219 Instruction precision.  The trap handler can determine the exact
7220 instruction that caused a floating point exception.
7221 .RE
7222 .RS 4
7223 .Sp
7224 Other Alpha compilers provide the equivalent options called
7225 \&\fB\-scope_safe\fR and \fB\-resumption_safe\fR.
7226 .RE
7227 .IP "\fB\-mieee\-conformant\fR" 4
7228 .IX Item "-mieee-conformant"
7229 This option marks the generated code as \s-1IEEE\s0 conformant.  You must not
7230 use this option unless you also specify \fB\-mtrap\-precision=i\fR and either
7231 \&\fB\-mfp\-trap\-mode=su\fR or \fB\-mfp\-trap\-mode=sui\fR.  Its only effect
7232 is to emit the line \fB.eflag 48\fR in the function prologue of the
7233 generated assembly file.  Under \s-1DEC\s0 Unix, this has the effect that
7234 IEEE-conformant math library routines will be linked in.
7235 .IP "\fB\-mbuild\-constants\fR" 4
7236 .IX Item "-mbuild-constants"
7237 Normally \s-1GCC\s0 examines a 32\- or 64\-bit integer constant to
7238 see if it can construct it from smaller constants in two or three
7239 instructions.  If it cannot, it will output the constant as a literal and
7240 generate code to load it from the data segment at runtime.
7241 .Sp
7242 Use this option to require \s-1GCC\s0 to construct \fIall\fR integer constants
7243 using code, even if it takes more instructions (the maximum is six).
7244 .Sp
7245 You would typically use this option to build a shared library dynamic
7246 loader.  Itself a shared library, it must relocate itself in memory
7247 before it can find the variables and constants in its own data segment.
7248 .IP "\fB\-malpha\-as\fR" 4
7249 .IX Item "-malpha-as"
7250 .PD 0
7251 .IP "\fB\-mgas\fR" 4
7252 .IX Item "-mgas"
7253 .PD
7254 Select whether to generate code to be assembled by the vendor-supplied
7255 assembler (\fB\-malpha\-as\fR) or by the \s-1GNU\s0 assembler \fB\-mgas\fR.
7256 .IP "\fB\-mbwx\fR" 4
7257 .IX Item "-mbwx"
7258 .PD 0
7259 .IP "\fB\-mno\-bwx\fR" 4
7260 .IX Item "-mno-bwx"
7261 .IP "\fB\-mcix\fR" 4
7262 .IX Item "-mcix"
7263 .IP "\fB\-mno\-cix\fR" 4
7264 .IX Item "-mno-cix"
7265 .IP "\fB\-mfix\fR" 4
7266 .IX Item "-mfix"
7267 .IP "\fB\-mno\-fix\fR" 4
7268 .IX Item "-mno-fix"
7269 .IP "\fB\-mmax\fR" 4
7270 .IX Item "-mmax"
7271 .IP "\fB\-mno\-max\fR" 4
7272 .IX Item "-mno-max"
7273 .PD
7274 Indicate whether \s-1GCC\s0 should generate code to use the optional \s-1BWX\s0,
7275 \&\s-1CIX\s0, \s-1FIX\s0 and \s-1MAX\s0 instruction sets.  The default is to use the instruction
7276 sets supported by the \s-1CPU\s0 type specified via \fB\-mcpu=\fR option or that
7277 of the \s-1CPU\s0 on which \s-1GCC\s0 was built if none was specified.
7278 .IP "\fB\-mfloat\-vax\fR" 4
7279 .IX Item "-mfloat-vax"
7280 .PD 0
7281 .IP "\fB\-mfloat\-ieee\fR" 4
7282 .IX Item "-mfloat-ieee"
7283 .PD
7284 Generate code that uses (does not use) \s-1VAX\s0 F and G floating point
7285 arithmetic instead of \s-1IEEE\s0 single and double precision.
7286 .IP "\fB\-mexplicit\-relocs\fR" 4
7287 .IX Item "-mexplicit-relocs"
7288 .PD 0
7289 .IP "\fB\-mno\-explicit\-relocs\fR" 4
7290 .IX Item "-mno-explicit-relocs"
7291 .PD
7292 Older Alpha assemblers provided no way to generate symbol relocations
7293 except via assembler macros.  Use of these macros does not allow
7294 optimal instruction scheduling.  \s-1GNU\s0 binutils as of version 2.12
7295 supports a new syntax that allows the compiler to explicitly mark
7296 which relocations should apply to which instructions.  This option
7297 is mostly useful for debugging, as \s-1GCC\s0 detects the capabilities of
7298 the assembler when it is built and sets the default accordingly.
7299 .IP "\fB\-msmall\-data\fR" 4
7300 .IX Item "-msmall-data"
7301 .PD 0
7302 .IP "\fB\-mlarge\-data\fR" 4
7303 .IX Item "-mlarge-data"
7304 .PD
7305 When \fB\-mexplicit\-relocs\fR is in effect, static data is
7306 accessed via \fIgp-relative\fR relocations.  When \fB\-msmall\-data\fR
7307 is used, objects 8 bytes long or smaller are placed in a \fIsmall data area\fR
7308 (the \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR sections) and are accessed via
7309 16\-bit relocations off of the \f(CW$gp\fR register.  This limits the
7310 size of the small data area to 64KB, but allows the variables to be
7311 directly accessed via a single instruction.
7312 .Sp
7313 The default is \fB\-mlarge\-data\fR.  With this option the data area
7314 is limited to just below 2GB.  Programs that require more than 2GB of
7315 data must use \f(CW\*(C`malloc\*(C'\fR or \f(CW\*(C`mmap\*(C'\fR to allocate the data in the
7316 heap instead of in the program's data segment.
7317 .Sp
7318 When generating code for shared libraries, \fB\-fpic\fR implies
7319 \&\fB\-msmall\-data\fR and \fB\-fPIC\fR implies \fB\-mlarge\-data\fR.
7320 .IP "\fB\-msmall\-text\fR" 4
7321 .IX Item "-msmall-text"
7322 .PD 0
7323 .IP "\fB\-mlarge\-text\fR" 4
7324 .IX Item "-mlarge-text"
7325 .PD
7326 When \fB\-msmall\-text\fR is used, the compiler assumes that the
7327 code of the entire program (or shared library) fits in 4MB, and is
7328 thus reachable with a branch instruction.  When \fB\-msmall\-data\fR
7329 is used, the compiler can assume that all local symbols share the
7330 same \f(CW$gp\fR value, and thus reduce the number of instructions
7331 required for a function call from 4 to 1.
7332 .Sp
7333 The default is \fB\-mlarge\-text\fR.
7334 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
7335 .IX Item "-mcpu=cpu_type"
7336 Set the instruction set and instruction scheduling parameters for
7337 machine type \fIcpu_type\fR.  You can specify either the \fB\s-1EV\s0\fR
7338 style name or the corresponding chip number.  \s-1GCC\s0 supports scheduling
7339 parameters for the \s-1EV4\s0, \s-1EV5\s0 and \s-1EV6\s0 family of processors and will
7340 choose the default values for the instruction set from the processor
7341 you specify.  If you do not specify a processor type, \s-1GCC\s0 will default
7342 to the processor on which the compiler was built.
7343 .Sp
7344 Supported values for \fIcpu_type\fR are
7345 .RS 4
7346 .IP "\fBev4\fR" 4
7347 .IX Item "ev4"
7348 .PD 0
7349 .IP "\fBev45\fR" 4
7350 .IX Item "ev45"
7351 .IP "\fB21064\fR" 4
7352 .IX Item "21064"
7353 .PD
7354 Schedules as an \s-1EV4\s0 and has no instruction set extensions.
7355 .IP "\fBev5\fR" 4
7356 .IX Item "ev5"
7357 .PD 0
7358 .IP "\fB21164\fR" 4
7359 .IX Item "21164"
7360 .PD
7361 Schedules as an \s-1EV5\s0 and has no instruction set extensions.
7362 .IP "\fBev56\fR" 4
7363 .IX Item "ev56"
7364 .PD 0
7365 .IP "\fB21164a\fR" 4
7366 .IX Item "21164a"
7367 .PD
7368 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 extension.
7369 .IP "\fBpca56\fR" 4
7370 .IX Item "pca56"
7371 .PD 0
7372 .IP "\fB21164pc\fR" 4
7373 .IX Item "21164pc"
7374 .IP "\fB21164PC\fR" 4
7375 .IX Item "21164PC"
7376 .PD
7377 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 and \s-1MAX\s0 extensions.
7378 .IP "\fBev6\fR" 4
7379 .IX Item "ev6"
7380 .PD 0
7381 .IP "\fB21264\fR" 4
7382 .IX Item "21264"
7383 .PD
7384 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
7385 .IP "\fBev67\fR" 4
7386 .IX Item "ev67"
7387 .PD 0
7388 .IP "\fB21264a\fR" 4
7389 .IX Item "21264a"
7390 .PD
7391 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1CIX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
7392 .RE
7393 .RS 4
7394 .RE
7395 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
7396 .IX Item "-mtune=cpu_type"
7397 Set only the instruction scheduling parameters for machine type
7398 \&\fIcpu_type\fR.  The instruction set is not changed.
7399 .IP "\fB\-mmemory\-latency=\fR\fItime\fR" 4
7400 .IX Item "-mmemory-latency=time"
7401 Sets the latency the scheduler should assume for typical memory
7402 references as seen by the application.  This number is highly
7403 dependent on the memory access patterns used by the application
7404 and the size of the external cache on the machine.
7405 .Sp
7406 Valid options for \fItime\fR are
7407 .RS 4
7408 .IP "\fInumber\fR" 4
7409 .IX Item "number"
7410 A decimal number representing clock cycles.
7411 .IP "\fBL1\fR" 4
7412 .IX Item "L1"
7413 .PD 0
7414 .IP "\fBL2\fR" 4
7415 .IX Item "L2"
7416 .IP "\fBL3\fR" 4
7417 .IX Item "L3"
7418 .IP "\fBmain\fR" 4
7419 .IX Item "main"
7420 .PD
7421 The compiler contains estimates of the number of clock cycles for
7422 ``typical'' \s-1EV4\s0 & \s-1EV5\s0 hardware for the Level 1, 2 & 3 caches
7423 (also called Dcache, Scache, and Bcache), as well as to main memory.
7424 Note that L3 is only valid for \s-1EV5\s0.
7425 .RE
7426 .RS 4
7427 .RE
7428 .PP
7429 \fI\s-1DEC\s0 Alpha/VMS Options\fR
7430 .IX Subsection "DEC Alpha/VMS Options"
7431 .PP
7432 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha/VMS implementations:
7433 .IP "\fB\-mvms\-return\-codes\fR" 4
7434 .IX Item "-mvms-return-codes"
7435 Return \s-1VMS\s0 condition codes from main.  The default is to return \s-1POSIX\s0
7436 style condition (e.g. error) codes.
7437 .PP
7438 \fI\s-1FRV\s0 Options\fR
7439 .IX Subsection "FRV Options"
7440 .IP "\fB\-mgpr\-32\fR" 4
7441 .IX Item "-mgpr-32"
7442 Only use the first 32 general purpose registers.
7443 .IP "\fB\-mgpr\-64\fR" 4
7444 .IX Item "-mgpr-64"
7445 Use all 64 general purpose registers.
7446 .IP "\fB\-mfpr\-32\fR" 4
7447 .IX Item "-mfpr-32"
7448 Use only the first 32 floating point registers.
7449 .IP "\fB\-mfpr\-64\fR" 4
7450 .IX Item "-mfpr-64"
7451 Use all 64 floating point registers
7452 .IP "\fB\-mhard\-float\fR" 4
7453 .IX Item "-mhard-float"
7454 Use hardware instructions for floating point operations.
7455 .IP "\fB\-msoft\-float\fR" 4
7456 .IX Item "-msoft-float"
7457 Use library routines for floating point operations.
7458 .IP "\fB\-malloc\-cc\fR" 4
7459 .IX Item "-malloc-cc"
7460 Dynamically allocate condition code registers.
7461 .IP "\fB\-mfixed\-cc\fR" 4
7462 .IX Item "-mfixed-cc"
7463 Do not try to dynamically allocate condition code registers, only
7464 use \f(CW\*(C`icc0\*(C'\fR and \f(CW\*(C`fcc0\*(C'\fR.
7465 .IP "\fB\-mdword\fR" 4
7466 .IX Item "-mdword"
7467 Change \s-1ABI\s0 to use double word insns.
7468 .IP "\fB\-mno\-dword\fR" 4
7469 .IX Item "-mno-dword"
7470 Do not use double word instructions.
7471 .IP "\fB\-mdouble\fR" 4
7472 .IX Item "-mdouble"
7473 Use floating point double instructions.
7474 .IP "\fB\-mno\-double\fR" 4
7475 .IX Item "-mno-double"
7476 Do not use floating point double instructions.
7477 .IP "\fB\-mmedia\fR" 4
7478 .IX Item "-mmedia"
7479 Use media instructions.
7480 .IP "\fB\-mno\-media\fR" 4
7481 .IX Item "-mno-media"
7482 Do not use media instructions.
7483 .IP "\fB\-mmuladd\fR" 4
7484 .IX Item "-mmuladd"
7485 Use multiply and add/subtract instructions.
7486 .IP "\fB\-mno\-muladd\fR" 4
7487 .IX Item "-mno-muladd"
7488 Do not use multiply and add/subtract instructions.
7489 .IP "\fB\-mfdpic\fR" 4
7490 .IX Item "-mfdpic"
7491 Select the \s-1FDPIC\s0 \s-1ABI\s0, that uses function descriptors to represent
7492 pointers to functions.  Without any PIC/PIE\-related options, it
7493 implies \fB\-fPIE\fR.  With \fB\-fpic\fR or \fB\-fpie\fR, it
7494 assumes \s-1GOT\s0 entries and small data are within a 12\-bit range from the
7495 \&\s-1GOT\s0 base address; with \fB\-fPIC\fR or \fB\-fPIE\fR, \s-1GOT\s0 offsets
7496 are computed with 32 bits.
7497 .IP "\fB\-minline\-plt\fR" 4
7498 .IX Item "-minline-plt"
7499 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
7500 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
7501 It's enabled by default if optimizing for speed and compiling for
7502 shared libraries (i.e., \fB\-fPIC\fR or \fB\-fpic\fR), or when an
7503 optimization option such as \fB\-O3\fR or above is present in the
7504 command line.
7505 .IP "\fB\-mTLS\fR" 4
7506 .IX Item "-mTLS"
7507 Assume a large \s-1TLS\s0 segment when generating thread-local code.
7508 .IP "\fB\-mtls\fR" 4
7509 .IX Item "-mtls"
7510 Do not assume a large \s-1TLS\s0 segment when generating thread-local code.
7511 .IP "\fB\-mgprel\-ro\fR" 4
7512 .IX Item "-mgprel-ro"
7513 Enable the use of \f(CW\*(C`GPREL\*(C'\fR relocations in the \s-1FDPIC\s0 \s-1ABI\s0 for data
7514 that is known to be in read-only sections.  It's enabled by default,
7515 except for \fB\-fpic\fR or \fB\-fpie\fR: even though it may help
7516 make the global offset table smaller, it trades 1 instruction for 4.
7517 With \fB\-fPIC\fR or \fB\-fPIE\fR, it trades 3 instructions for 4,
7518 one of which may be shared by multiple symbols, and it avoids the need
7519 for a \s-1GOT\s0 entry for the referenced symbol, so it's more likely to be a
7520 win.  If it is not, \fB\-mno\-gprel\-ro\fR can be used to disable it.
7521 .IP "\fB\-multilib\-library\-pic\fR" 4
7522 .IX Item "-multilib-library-pic"
7523 Link with the (library, not \s-1FD\s0) pic libraries.  It's implied by
7524 \&\fB\-mlibrary\-pic\fR, as well as by \fB\-fPIC\fR and
7525 \&\fB\-fpic\fR without \fB\-mfdpic\fR.  You should never have to use
7526 it explicitly.
7527 .IP "\fB\-mlinked\-fp\fR" 4
7528 .IX Item "-mlinked-fp"
7529 Follow the \s-1EABI\s0 requirement of always creating a frame pointer whenever
7530 a stack frame is allocated.  This option is enabled by default and can
7531 be disabled with \fB\-mno\-linked\-fp\fR.
7532 .IP "\fB\-mlong\-calls\fR" 4
7533 .IX Item "-mlong-calls"
7534 Use indirect addressing to call functions outside the current
7535 compilation unit.  This allows the functions to be placed anywhere
7536 within the 32\-bit address space.
7537 .IP "\fB\-malign\-labels\fR" 4
7538 .IX Item "-malign-labels"
7539 Try to align labels to an 8\-byte boundary by inserting nops into the
7540 previous packet.  This option only has an effect when \s-1VLIW\s0 packing
7541 is enabled.  It doesn't create new packets; it merely adds nops to
7542 existing ones.
7543 .IP "\fB\-mlibrary\-pic\fR" 4
7544 .IX Item "-mlibrary-pic"
7545 Generate position-independent \s-1EABI\s0 code.
7546 .IP "\fB\-macc\-4\fR" 4
7547 .IX Item "-macc-4"
7548 Use only the first four media accumulator registers.
7549 .IP "\fB\-macc\-8\fR" 4
7550 .IX Item "-macc-8"
7551 Use all eight media accumulator registers.
7552 .IP "\fB\-mpack\fR" 4
7553 .IX Item "-mpack"
7554 Pack \s-1VLIW\s0 instructions.
7555 .IP "\fB\-mno\-pack\fR" 4
7556 .IX Item "-mno-pack"
7557 Do not pack \s-1VLIW\s0 instructions.
7558 .IP "\fB\-mno\-eflags\fR" 4
7559 .IX Item "-mno-eflags"
7560 Do not mark \s-1ABI\s0 switches in e_flags.
7561 .IP "\fB\-mcond\-move\fR" 4
7562 .IX Item "-mcond-move"
7563 Enable the use of conditional-move instructions (default).
7564 .Sp
7565 This switch is mainly for debugging the compiler and will likely be removed
7566 in a future version.
7567 .IP "\fB\-mno\-cond\-move\fR" 4
7568 .IX Item "-mno-cond-move"
7569 Disable the use of conditional-move instructions.
7570 .Sp
7571 This switch is mainly for debugging the compiler and will likely be removed
7572 in a future version.
7573 .IP "\fB\-mscc\fR" 4
7574 .IX Item "-mscc"
7575 Enable the use of conditional set instructions (default).
7576 .Sp
7577 This switch is mainly for debugging the compiler and will likely be removed
7578 in a future version.
7579 .IP "\fB\-mno\-scc\fR" 4
7580 .IX Item "-mno-scc"
7581 Disable the use of conditional set instructions.
7582 .Sp
7583 This switch is mainly for debugging the compiler and will likely be removed
7584 in a future version.
7585 .IP "\fB\-mcond\-exec\fR" 4
7586 .IX Item "-mcond-exec"
7587 Enable the use of conditional execution (default).
7588 .Sp
7589 This switch is mainly for debugging the compiler and will likely be removed
7590 in a future version.
7591 .IP "\fB\-mno\-cond\-exec\fR" 4
7592 .IX Item "-mno-cond-exec"
7593 Disable the use of conditional execution.
7594 .Sp
7595 This switch is mainly for debugging the compiler and will likely be removed
7596 in a future version.
7597 .IP "\fB\-mvliw\-branch\fR" 4
7598 .IX Item "-mvliw-branch"
7599 Run a pass to pack branches into \s-1VLIW\s0 instructions (default).
7600 .Sp
7601 This switch is mainly for debugging the compiler and will likely be removed
7602 in a future version.
7603 .IP "\fB\-mno\-vliw\-branch\fR" 4
7604 .IX Item "-mno-vliw-branch"
7605 Do not run a pass to pack branches into \s-1VLIW\s0 instructions.
7606 .Sp
7607 This switch is mainly for debugging the compiler and will likely be removed
7608 in a future version.
7609 .IP "\fB\-mmulti\-cond\-exec\fR" 4
7610 .IX Item "-mmulti-cond-exec"
7611 Enable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution
7612 (default).
7613 .Sp
7614 This switch is mainly for debugging the compiler and will likely be removed
7615 in a future version.
7616 .IP "\fB\-mno\-multi\-cond\-exec\fR" 4
7617 .IX Item "-mno-multi-cond-exec"
7618 Disable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution.
7619 .Sp
7620 This switch is mainly for debugging the compiler and will likely be removed
7621 in a future version.
7622 .IP "\fB\-mnested\-cond\-exec\fR" 4
7623 .IX Item "-mnested-cond-exec"
7624 Enable nested conditional execution optimizations (default).
7625 .Sp
7626 This switch is mainly for debugging the compiler and will likely be removed
7627 in a future version.
7628 .IP "\fB\-mno\-nested\-cond\-exec\fR" 4
7629 .IX Item "-mno-nested-cond-exec"
7630 Disable nested conditional execution optimizations.
7631 .Sp
7632 This switch is mainly for debugging the compiler and will likely be removed
7633 in a future version.
7634 .IP "\fB\-mtomcat\-stats\fR" 4
7635 .IX Item "-mtomcat-stats"
7636 Cause gas to print out tomcat statistics.
7637 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
7638 .IX Item "-mcpu=cpu"
7639 Select the processor type for which to generate code.  Possible values are
7640 \&\fBfrv\fR, \fBfr550\fR, \fBtomcat\fR, \fBfr500\fR, \fBfr450\fR,
7641 \&\fBfr405\fR, \fBfr400\fR, \fBfr300\fR and \fBsimple\fR.
7642 .PP
7643 \fIH8/300 Options\fR
7644 .IX Subsection "H8/300 Options"
7645 .PP
7646 These \fB\-m\fR options are defined for the H8/300 implementations:
7647 .IP "\fB\-mrelax\fR" 4
7648 .IX Item "-mrelax"
7649 Shorten some address references at link time, when possible; uses the
7650 linker option \fB\-relax\fR.  
7651 .IP "\fB\-mh\fR" 4
7652 .IX Item "-mh"
7653 Generate code for the H8/300H.
7654 .IP "\fB\-ms\fR" 4
7655 .IX Item "-ms"
7656 Generate code for the H8S.
7657 .IP "\fB\-mn\fR" 4
7658 .IX Item "-mn"
7659 Generate code for the H8S and H8/300H in the normal mode.  This switch
7660 must be used either with \fB\-mh\fR or \fB\-ms\fR.
7661 .IP "\fB\-ms2600\fR" 4
7662 .IX Item "-ms2600"
7663 Generate code for the H8S/2600.  This switch must be used with \fB\-ms\fR.
7664 .IP "\fB\-mint32\fR" 4
7665 .IX Item "-mint32"
7666 Make \f(CW\*(C`int\*(C'\fR data 32 bits by default.
7667 .IP "\fB\-malign\-300\fR" 4
7668 .IX Item "-malign-300"
7669 On the H8/300H and H8S, use the same alignment rules as for the H8/300.
7670 The default for the H8/300H and H8S is to align longs and floats on 4
7671 byte boundaries.
7672 \&\fB\-malign\-300\fR causes them to be aligned on 2 byte boundaries.
7673 This option has no effect on the H8/300.
7674 .PP
7675 \fI\s-1HPPA\s0 Options\fR
7676 .IX Subsection "HPPA Options"
7677 .PP
7678 These \fB\-m\fR options are defined for the \s-1HPPA\s0 family of computers:
7679 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
7680 .IX Item "-march=architecture-type"
7681 Generate code for the specified architecture.  The choices for
7682 \&\fIarchitecture-type\fR are \fB1.0\fR for \s-1PA\s0 1.0, \fB1.1\fR for \s-1PA\s0
7683 1.1, and \fB2.0\fR for \s-1PA\s0 2.0 processors.  Refer to
7684 \&\fI/usr/lib/sched.models\fR on an HP-UX system to determine the proper
7685 architecture option for your machine.  Code compiled for lower numbered
7686 architectures will run on higher numbered architectures, but not the
7687 other way around.
7688 .IP "\fB\-mpa\-risc\-1\-0\fR" 4
7689 .IX Item "-mpa-risc-1-0"
7690 .PD 0
7691 .IP "\fB\-mpa\-risc\-1\-1\fR" 4
7692 .IX Item "-mpa-risc-1-1"
7693 .IP "\fB\-mpa\-risc\-2\-0\fR" 4
7694 .IX Item "-mpa-risc-2-0"
7695 .PD
7696 Synonyms for \fB\-march=1.0\fR, \fB\-march=1.1\fR, and \fB\-march=2.0\fR respectively.
7697 .IP "\fB\-mbig\-switch\fR" 4
7698 .IX Item "-mbig-switch"
7699 Generate code suitable for big switch tables.  Use this option only if
7700 the assembler/linker complain about out of range branches within a switch
7701 table.
7702 .IP "\fB\-mjump\-in\-delay\fR" 4
7703 .IX Item "-mjump-in-delay"
7704 Fill delay slots of function calls with unconditional jump instructions
7705 by modifying the return pointer for the function call to be the target
7706 of the conditional jump.
7707 .IP "\fB\-mdisable\-fpregs\fR" 4
7708 .IX Item "-mdisable-fpregs"
7709 Prevent floating point registers from being used in any manner.  This is
7710 necessary for compiling kernels which perform lazy context switching of
7711 floating point registers.  If you use this option and attempt to perform
7712 floating point operations, the compiler will abort.
7713 .IP "\fB\-mdisable\-indexing\fR" 4
7714 .IX Item "-mdisable-indexing"
7715 Prevent the compiler from using indexing address modes.  This avoids some
7716 rather obscure problems when compiling \s-1MIG\s0 generated code under \s-1MACH\s0.
7717 .IP "\fB\-mno\-space\-regs\fR" 4
7718 .IX Item "-mno-space-regs"
7719 Generate code that assumes the target has no space registers.  This allows
7720 \&\s-1GCC\s0 to generate faster indirect calls and use unscaled index address modes.
7721 .Sp
7722 Such code is suitable for level 0 \s-1PA\s0 systems and kernels.
7723 .IP "\fB\-mfast\-indirect\-calls\fR" 4
7724 .IX Item "-mfast-indirect-calls"
7725 Generate code that assumes calls never cross space boundaries.  This
7726 allows \s-1GCC\s0 to emit code which performs faster indirect calls.
7727 .Sp
7728 This option will not work in the presence of shared libraries or nested
7729 functions.
7730 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
7731 .IX Item "-mfixed-range=register-range"
7732 Generate code treating the given register range as fixed registers.
7733 A fixed register is one that the register allocator can not use.  This is
7734 useful when compiling kernel code.  A register range is specified as
7735 two registers separated by a dash.  Multiple register ranges can be
7736 specified separated by a comma.
7737 .IP "\fB\-mlong\-load\-store\fR" 4
7738 .IX Item "-mlong-load-store"
7739 Generate 3\-instruction load and store sequences as sometimes required by
7740 the HP-UX 10 linker.  This is equivalent to the \fB+k\fR option to
7741 the \s-1HP\s0 compilers.
7742 .IP "\fB\-mportable\-runtime\fR" 4
7743 .IX Item "-mportable-runtime"
7744 Use the portable calling conventions proposed by \s-1HP\s0 for \s-1ELF\s0 systems.
7745 .IP "\fB\-mgas\fR" 4
7746 .IX Item "-mgas"
7747 Enable the use of assembler directives only \s-1GAS\s0 understands.
7748 .IP "\fB\-mschedule=\fR\fIcpu-type\fR" 4
7749 .IX Item "-mschedule=cpu-type"
7750 Schedule code according to the constraints for the machine type
7751 \&\fIcpu-type\fR.  The choices for \fIcpu-type\fR are \fB700\fR
7752 \&\fB7100\fR, \fB7100LC\fR, \fB7200\fR, \fB7300\fR and \fB8000\fR.  Refer
7753 to \fI/usr/lib/sched.models\fR on an HP-UX system to determine the
7754 proper scheduling option for your machine.  The default scheduling is
7755 \&\fB8000\fR.
7756 .IP "\fB\-mlinker\-opt\fR" 4
7757 .IX Item "-mlinker-opt"
7758 Enable the optimization pass in the HP-UX linker.  Note this makes symbolic
7759 debugging impossible.  It also triggers a bug in the HP-UX 8 and HP-UX 9
7760 linkers in which they give bogus error messages when linking some programs.
7761 .IP "\fB\-msoft\-float\fR" 4
7762 .IX Item "-msoft-float"
7763 Generate output containing library calls for floating point.
7764 \&\fBWarning:\fR the requisite libraries are not available for all \s-1HPPA\s0
7765 targets.  Normally the facilities of the machine's usual C compiler are
7766 used, but this cannot be done directly in cross\-compilation.  You must make
7767 your own arrangements to provide suitable library functions for
7768 cross\-compilation.  The embedded target \fBhppa1.1\-*\-pro\fR
7769 does provide software floating point support.
7770 .Sp
7771 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
7772 therefore, it is only useful if you compile \fIall\fR of a program with
7773 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
7774 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
7775 this to work.
7776 .IP "\fB\-msio\fR" 4
7777 .IX Item "-msio"
7778 Generate the predefine, \f(CW\*(C`_SIO\*(C'\fR, for server \s-1IO\s0.  The default is
7779 \&\fB\-mwsio\fR.  This generates the predefines, \f(CW\*(C`_\|_hp9000s700\*(C'\fR,
7780 \&\f(CW\*(C`_\|_hp9000s700_\|_\*(C'\fR and \f(CW\*(C`_WSIO\*(C'\fR, for workstation \s-1IO\s0.  These
7781 options are available under HP-UX and \s-1HI\-UX\s0.
7782 .IP "\fB\-mgnu\-ld\fR" 4
7783 .IX Item "-mgnu-ld"
7784 Use \s-1GNU\s0 ld specific options.  This passes \fB\-shared\fR to ld when
7785 building a shared library.  It is the default when \s-1GCC\s0 is configured,
7786 explicitly or implicitly, with the \s-1GNU\s0 linker.  This option does not
7787 have any affect on which ld is called, it only changes what parameters
7788 are passed to that ld.  The ld that is called is determined by the
7789 \&\fB\-\-with\-ld\fR configure option, \s-1GCC\s0's program search path, and
7790 finally by the user's \fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed
7791 using \fBwhich `gcc \-print\-prog\-name=ld`\fR.
7792 .IP "\fB\-mhp\-ld\fR" 4
7793 .IX Item "-mhp-ld"
7794 Use \s-1HP\s0 ld specific options.  This passes \fB\-b\fR to ld when building
7795 a shared library and passes \fB+Accept TypeMismatch\fR to ld on all
7796 links.  It is the default when \s-1GCC\s0 is configured, explicitly or
7797 implicitly, with the \s-1HP\s0 linker.  This option does not have any affect on
7798 which ld is called, it only changes what parameters are passed to that
7799 ld.  The ld that is called is determined by the \fB\-\-with\-ld\fR
7800 configure option, \s-1GCC\s0's program search path, and finally by the user's
7801 \&\fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed using \fBwhich
7802 `gcc \-print\-prog\-name=ld`\fR.
7803 .IP "\fB\-mlong\-calls\fR" 4
7804 .IX Item "-mlong-calls"
7805 Generate code that uses long call sequences.  This ensures that a call
7806 is always able to reach linker generated stubs.  The default is to generate
7807 long calls only when the distance from the call site to the beginning
7808 of the function or translation unit, as the case may be, exceeds a
7809 predefined limit set by the branch type being used.  The limits for
7810 normal calls are 7,600,000 and 240,000 bytes, respectively for the
7811 \&\s-1PA\s0 2.0 and \s-1PA\s0 1.X architectures.  Sibcalls are always limited at
7812 240,000 bytes.
7813 .Sp
7814 Distances are measured from the beginning of functions when using the
7815 \&\fB\-ffunction\-sections\fR option, or when using the \fB\-mgas\fR
7816 and \fB\-mno\-portable\-runtime\fR options together under HP-UX with
7817 the \s-1SOM\s0 linker.
7818 .Sp
7819 It is normally not desirable to use this option as it will degrade
7820 performance.  However, it may be useful in large applications,
7821 particularly when partial linking is used to build the application.
7822 .Sp
7823 The types of long calls used depends on the capabilities of the
7824 assembler and linker, and the type of code being generated.  The
7825 impact on systems that support long absolute calls, and long pic
7826 symbol-difference or pc-relative calls should be relatively small.
7827 However, an indirect call is used on 32\-bit \s-1ELF\s0 systems in pic code
7828 and it is quite long.
7829 .IP "\fB\-munix=\fR\fIunix-std\fR" 4
7830 .IX Item "-munix=unix-std"
7831 Generate compiler predefines and select a startfile for the specified
7832 \&\s-1UNIX\s0 standard.  The choices for \fIunix-std\fR are \fB93\fR, \fB95\fR
7833 and \fB98\fR.  \fB93\fR is supported on all HP-UX versions.  \fB95\fR
7834 is available on HP-UX 10.10 and later.  \fB98\fR is available on HP-UX
7835 11.11 and later.  The default values are \fB93\fR for HP-UX 10.00,
7836 \&\fB95\fR for HP-UX 10.10 though to 11.00, and \fB98\fR for HP-UX 11.11
7837 and later.
7838 .Sp
7839 \&\fB\-munix=93\fR provides the same predefines as \s-1GCC\s0 3.3 and 3.4.
7840 \&\fB\-munix=95\fR provides additional predefines for \f(CW\*(C`XOPEN_UNIX\*(C'\fR
7841 and \f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, and the startfile \fIunix95.o\fR.
7842 \&\fB\-munix=98\fR provides additional predefines for \f(CW\*(C`_XOPEN_UNIX\*(C'\fR,
7843 \&\f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, \f(CW\*(C`_INCLUDE_\|_STDC_A1_SOURCE\*(C'\fR and
7844 \&\f(CW\*(C`_INCLUDE_XOPEN_SOURCE_500\*(C'\fR, and the startfile \fIunix98.o\fR.
7845 .Sp
7846 It is \fIimportant\fR to note that this option changes the interfaces
7847 for various library routines.  It also affects the operational behavior
7848 of the C library.  Thus, \fIextreme\fR care is needed in using this
7849 option.
7850 .Sp
7851 Library code that is intended to operate with more than one \s-1UNIX\s0
7852 standard must test, set and restore the variable \fI_\|_xpg4_extended_mask\fR
7853 as appropriate.  Most \s-1GNU\s0 software doesn't provide this capability.
7854 .IP "\fB\-nolibdld\fR" 4
7855 .IX Item "-nolibdld"
7856 Suppress the generation of link options to search libdld.sl when the
7857 \&\fB\-static\fR option is specified on HP-UX 10 and later.
7858 .IP "\fB\-static\fR" 4
7859 .IX Item "-static"
7860 The HP-UX implementation of setlocale in libc has a dependency on
7861 libdld.sl.  There isn't an archive version of libdld.sl.  Thus,
7862 when the \fB\-static\fR option is specified, special link options
7863 are needed to resolve this dependency.
7864 .Sp
7865 On HP-UX 10 and later, the \s-1GCC\s0 driver adds the necessary options to
7866 link with libdld.sl when the \fB\-static\fR option is specified.
7867 This causes the resulting binary to be dynamic.  On the 64\-bit port,
7868 the linkers generate dynamic binaries by default in any case.  The
7869 \&\fB\-nolibdld\fR option can be used to prevent the \s-1GCC\s0 driver from
7870 adding these link options.
7871 .IP "\fB\-threads\fR" 4
7872 .IX Item "-threads"
7873 Add support for multithreading with the \fIdce thread\fR library
7874 under \s-1HP\-UX\s0.  This option sets flags for both the preprocessor and
7875 linker.
7876 .PP
7877 \fIIntel 386 and \s-1AMD\s0 x86\-64 Options\fR
7878 .IX Subsection "Intel 386 and AMD x86-64 Options"
7879 .PP
7880 These \fB\-m\fR options are defined for the i386 and x86\-64 family of
7881 computers:
7882 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
7883 .IX Item "-mtune=cpu-type"
7884 Tune to \fIcpu-type\fR everything applicable about the generated code, except
7885 for the \s-1ABI\s0 and the set of available instructions.  The choices for
7886 \&\fIcpu-type\fR are:
7887 .RS 4
7888 .IP "\fIi386\fR" 4
7889 .IX Item "i386"
7890 Original Intel's i386 \s-1CPU\s0.
7891 .IP "\fIi486\fR" 4
7892 .IX Item "i486"
7893 Intel's i486 \s-1CPU\s0.  (No scheduling is implemented for this chip.)
7894 .IP "\fIi586, pentium\fR" 4
7895 .IX Item "i586, pentium"
7896 Intel Pentium \s-1CPU\s0 with no \s-1MMX\s0 support.
7897 .IP "\fIpentium-mmx\fR" 4
7898 .IX Item "pentium-mmx"
7899 Intel PentiumMMX \s-1CPU\s0 based on Pentium core with \s-1MMX\s0 instruction set support.
7900 .IP "\fIi686, pentiumpro\fR" 4
7901 .IX Item "i686, pentiumpro"
7902 Intel PentiumPro \s-1CPU\s0.
7903 .IP "\fIpentium2\fR" 4
7904 .IX Item "pentium2"
7905 Intel Pentium2 \s-1CPU\s0 based on PentiumPro core with \s-1MMX\s0 instruction set support.
7906 .IP "\fIpentium3, pentium3m\fR" 4
7907 .IX Item "pentium3, pentium3m"
7908 Intel Pentium3 \s-1CPU\s0 based on PentiumPro core with \s-1MMX\s0 and \s-1SSE\s0 instruction set
7909 support.
7910 .IP "\fIpentium-m\fR" 4
7911 .IX Item "pentium-m"
7912 Low power version of Intel Pentium3 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set
7913 support.  Used by Centrino notebooks.
7914 .IP "\fIpentium4, pentium4m\fR" 4
7915 .IX Item "pentium4, pentium4m"
7916 Intel Pentium4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set support.
7917 .IP "\fIprescott\fR" 4
7918 .IX Item "prescott"
7919 Improved version of Intel Pentium4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0 and \s-1SSE3\s0 instruction
7920 set support.
7921 .IP "\fInocona\fR" 4
7922 .IX Item "nocona"
7923 Improved version of Intel Pentium4 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0,
7924 \&\s-1SSE2\s0 and \s-1SSE3\s0 instruction set support.
7925 .IP "\fIk6\fR" 4
7926 .IX Item "k6"
7927 \&\s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 instruction set support.
7928 .IP "\fIk6\-2, k6\-3\fR" 4
7929 .IX Item "k6-2, k6-3"
7930 Improved versions of \s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 and 3dNOW! instruction set support.
7931 .IP "\fIathlon, athlon-tbird\fR" 4
7932 .IX Item "athlon, athlon-tbird"
7933 \&\s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3dNOW!, enhanced 3dNOW! and \s-1SSE\s0 prefetch instructions
7934 support.
7935 .IP "\fIathlon\-4, athlon\-xp, athlon-mp\fR" 4
7936 .IX Item "athlon-4, athlon-xp, athlon-mp"
7937 Improved \s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3dNOW!, enhanced 3dNOW! and full \s-1SSE\s0
7938 instruction set support.
7939 .IP "\fIk8, opteron, athlon64, athlon-fx\fR" 4
7940 .IX Item "k8, opteron, athlon64, athlon-fx"
7941 \&\s-1AMD\s0 K8 core based CPUs with x86\-64 instruction set support.  (This supersets
7942 \&\s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, 3dNOW!, enhanced 3dNOW! and 64\-bit instruction set extensions.)
7943 .IP "\fIwinchip\-c6\fR" 4
7944 .IX Item "winchip-c6"
7945 \&\s-1IDT\s0 Winchip C6 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 instruction
7946 set support.
7947 .IP "\fIwinchip2\fR" 4
7948 .IX Item "winchip2"
7949 \&\s-1IDT\s0 Winchip2 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 and 3dNOW!
7950 instruction set support.
7951 .IP "\fIc3\fR" 4
7952 .IX Item "c3"
7953 Via C3 \s-1CPU\s0 with \s-1MMX\s0 and 3dNOW! instruction set support.  (No scheduling is
7954 implemented for this chip.)
7955 .IP "\fIc3\-2\fR" 4
7956 .IX Item "c3-2"
7957 Via C3\-2 \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.  (No scheduling is
7958 implemented for this chip.)
7959 .RE
7960 .RS 4
7961 .Sp
7962 While picking a specific \fIcpu-type\fR will schedule things appropriately
7963 for that particular chip, the compiler will not generate any code that
7964 does not run on the i386 without the \fB\-march=\fR\fIcpu-type\fR option
7965 being used.
7966 .RE
7967 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
7968 .IX Item "-march=cpu-type"
7969 Generate instructions for the machine type \fIcpu-type\fR.  The choices
7970 for \fIcpu-type\fR are the same as for \fB\-mtune\fR.  Moreover,
7971 specifying \fB\-march=\fR\fIcpu-type\fR implies \fB\-mtune=\fR\fIcpu-type\fR.
7972 .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
7973 .IX Item "-mcpu=cpu-type"
7974 A deprecated synonym for \fB\-mtune\fR.
7975 .IP "\fB\-m386\fR" 4
7976 .IX Item "-m386"
7977 .PD 0
7978 .IP "\fB\-m486\fR" 4
7979 .IX Item "-m486"
7980 .IP "\fB\-mpentium\fR" 4
7981 .IX Item "-mpentium"
7982 .IP "\fB\-mpentiumpro\fR" 4
7983 .IX Item "-mpentiumpro"
7984 .PD
7985 These options are synonyms for \fB\-mtune=i386\fR, \fB\-mtune=i486\fR,
7986 \&\fB\-mtune=pentium\fR, and \fB\-mtune=pentiumpro\fR respectively.
7987 These synonyms are deprecated.
7988 .IP "\fB\-mfpmath=\fR\fIunit\fR" 4
7989 .IX Item "-mfpmath=unit"
7990 Generate floating point arithmetics for selected unit \fIunit\fR.  The choices
7991 for \fIunit\fR are:
7992 .RS 4
7993 .IP "\fB387\fR" 4
7994 .IX Item "387"
7995 Use the standard 387 floating point coprocessor present majority of chips and
7996 emulated otherwise.  Code compiled with this option will run almost everywhere.
7997 The temporary results are computed in 80bit precision instead of precision
7998 specified by the type resulting in slightly different results compared to most
7999 of other chips.  See \fB\-ffloat\-store\fR for more detailed description.
8000 .Sp
8001 This is the default choice for i386 compiler.
8002 .IP "\fBsse\fR" 4
8003 .IX Item "sse"
8004 Use scalar floating point instructions present in the \s-1SSE\s0 instruction set.
8005 This instruction set is supported by Pentium3 and newer chips, in the \s-1AMD\s0 line
8006 by Athlon\-4, Athlon-xp and Athlon-mp chips.  The earlier version of \s-1SSE\s0
8007 instruction set supports only single precision arithmetics, thus the double and
8008 extended precision arithmetics is still done using 387.  Later version, present
8009 only in Pentium4 and the future \s-1AMD\s0 x86\-64 chips supports double precision
8010 arithmetics too.
8011 .Sp
8012 For the i386 compiler, you need to use \fB\-march=\fR\fIcpu-type\fR, \fB\-msse\fR
8013 or \fB\-msse2\fR switches to enable \s-1SSE\s0 extensions and make this option
8014 effective.  For the x86\-64 compiler, these extensions are enabled by default.
8015 .Sp
8016 The resulting code should be considerably faster in the majority of cases and avoid
8017 the numerical instability problems of 387 code, but may break some existing
8018 code that expects temporaries to be 80bit.
8019 .Sp
8020 This is the default choice for the x86\-64 compiler.
8021 .IP "\fBsse,387\fR" 4
8022 .IX Item "sse,387"
8023 Attempt to utilize both instruction sets at once.  This effectively double the
8024 amount of available registers and on chips with separate execution units for
8025 387 and \s-1SSE\s0 the execution resources too.  Use this option with care, as it is
8026 still experimental, because the \s-1GCC\s0 register allocator does not model separate
8027 functional units well resulting in instable performance.
8028 .RE
8029 .RS 4
8030 .RE
8031 .IP "\fB\-masm=\fR\fIdialect\fR" 4
8032 .IX Item "-masm=dialect"
8033 Output asm instructions using selected \fIdialect\fR.  Supported choices are
8034 \&\fBintel\fR or \fBatt\fR (the default one).
8035 .IP "\fB\-mieee\-fp\fR" 4
8036 .IX Item "-mieee-fp"
8037 .PD 0
8038 .IP "\fB\-mno\-ieee\-fp\fR" 4
8039 .IX Item "-mno-ieee-fp"
8040 .PD
8041 Control whether or not the compiler uses \s-1IEEE\s0 floating point
8042 comparisons.  These handle correctly the case where the result of a
8043 comparison is unordered.
8044 .IP "\fB\-msoft\-float\fR" 4
8045 .IX Item "-msoft-float"
8046 Generate output containing library calls for floating point.
8047 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC\s0.
8048 Normally the facilities of the machine's usual C compiler are used, but
8049 this can't be done directly in cross\-compilation.  You must make your
8050 own arrangements to provide suitable library functions for
8051 cross\-compilation.
8052 .Sp
8053 On machines where a function returns floating point results in the 80387
8054 register stack, some floating point opcodes may be emitted even if
8055 \&\fB\-msoft\-float\fR is used.
8056 .IP "\fB\-mno\-fp\-ret\-in\-387\fR" 4
8057 .IX Item "-mno-fp-ret-in-387"
8058 Do not use the \s-1FPU\s0 registers for return values of functions.
8059 .Sp
8060 The usual calling convention has functions return values of types
8061 \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR in an \s-1FPU\s0 register, even if there
8062 is no \s-1FPU\s0.  The idea is that the operating system should emulate
8063 an \s-1FPU\s0.
8064 .Sp
8065 The option \fB\-mno\-fp\-ret\-in\-387\fR causes such values to be returned
8066 in ordinary \s-1CPU\s0 registers instead.
8067 .IP "\fB\-mno\-fancy\-math\-387\fR" 4
8068 .IX Item "-mno-fancy-math-387"
8069 Some 387 emulators do not support the \f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR and
8070 \&\f(CW\*(C`sqrt\*(C'\fR instructions for the 387.  Specify this option to avoid
8071 generating those instructions.  This option is the default on FreeBSD,
8072 OpenBSD and NetBSD.  This option is overridden when \fB\-march\fR
8073 indicates that the target cpu will always have an \s-1FPU\s0 and so the
8074 instruction will not need emulation.  As of revision 2.6.1, these
8075 instructions are not generated unless you also use the
8076 \&\fB\-funsafe\-math\-optimizations\fR switch.
8077 .IP "\fB\-malign\-double\fR" 4
8078 .IX Item "-malign-double"
8079 .PD 0
8080 .IP "\fB\-mno\-align\-double\fR" 4
8081 .IX Item "-mno-align-double"
8082 .PD
8083 Control whether \s-1GCC\s0 aligns \f(CW\*(C`double\*(C'\fR, \f(CW\*(C`long double\*(C'\fR, and
8084 \&\f(CW\*(C`long long\*(C'\fR variables on a two word boundary or a one word
8085 boundary.  Aligning \f(CW\*(C`double\*(C'\fR variables on a two word boundary will
8086 produce code that runs somewhat faster on a \fBPentium\fR at the
8087 expense of more memory.
8088 .Sp
8089 \&\fBWarning:\fR if you use the \fB\-malign\-double\fR switch,
8090 structures containing the above types will be aligned differently than
8091 the published application binary interface specifications for the 386
8092 and will not be binary compatible with structures in code compiled
8093 without that switch.
8094 .IP "\fB\-m96bit\-long\-double\fR" 4
8095 .IX Item "-m96bit-long-double"
8096 .PD 0
8097 .IP "\fB\-m128bit\-long\-double\fR" 4
8098 .IX Item "-m128bit-long-double"
8099 .PD
8100 These switches control the size of \f(CW\*(C`long double\*(C'\fR type.  The i386
8101 application binary interface specifies the size to be 96 bits,
8102 so \fB\-m96bit\-long\-double\fR is the default in 32 bit mode.
8103 .Sp
8104 Modern architectures (Pentium and newer) would prefer \f(CW\*(C`long double\*(C'\fR
8105 to be aligned to an 8 or 16 byte boundary.  In arrays or structures
8106 conforming to the \s-1ABI\s0, this would not be possible.  So specifying a
8107 \&\fB\-m128bit\-long\-double\fR will align \f(CW\*(C`long double\*(C'\fR
8108 to a 16 byte boundary by padding the \f(CW\*(C`long double\*(C'\fR with an additional
8109 32 bit zero.
8110 .Sp
8111 In the x86\-64 compiler, \fB\-m128bit\-long\-double\fR is the default choice as
8112 its \s-1ABI\s0 specifies that \f(CW\*(C`long double\*(C'\fR is to be aligned on 16 byte boundary.
8113 .Sp
8114 Notice that neither of these options enable any extra precision over the x87
8115 standard of 80 bits for a \f(CW\*(C`long double\*(C'\fR.
8116 .Sp
8117 \&\fBWarning:\fR if you override the default value for your target \s-1ABI\s0, the
8118 structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables will change
8119 their size as well as function calling convention for function taking
8120 \&\f(CW\*(C`long double\*(C'\fR will be modified.  Hence they will not be binary
8121 compatible with arrays or structures in code compiled without that switch.
8122 .IP "\fB\-msvr3\-shlib\fR" 4
8123 .IX Item "-msvr3-shlib"
8124 .PD 0
8125 .IP "\fB\-mno\-svr3\-shlib\fR" 4
8126 .IX Item "-mno-svr3-shlib"
8127 .PD
8128 Control whether \s-1GCC\s0 places uninitialized local variables into the
8129 \&\f(CW\*(C`bss\*(C'\fR or \f(CW\*(C`data\*(C'\fR segments.  \fB\-msvr3\-shlib\fR places them
8130 into \f(CW\*(C`bss\*(C'\fR.  These options are meaningful only on System V Release 3.
8131 .IP "\fB\-mrtd\fR" 4
8132 .IX Item "-mrtd"
8133 Use a different function-calling convention, in which functions that
8134 take a fixed number of arguments return with the \f(CW\*(C`ret\*(C'\fR \fInum\fR
8135 instruction, which pops their arguments while returning.  This saves one
8136 instruction in the caller since there is no need to pop the arguments
8137 there.
8138 .Sp
8139 You can specify that an individual function is called with this calling
8140 sequence with the function attribute \fBstdcall\fR.  You can also
8141 override the \fB\-mrtd\fR option by using the function attribute
8142 \&\fBcdecl\fR.  
8143 .Sp
8144 \&\fBWarning:\fR this calling convention is incompatible with the one
8145 normally used on Unix, so you cannot use it if you need to call
8146 libraries compiled with the Unix compiler.
8147 .Sp
8148 Also, you must provide function prototypes for all functions that
8149 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
8150 otherwise incorrect code will be generated for calls to those
8151 functions.
8152 .Sp
8153 In addition, seriously incorrect code will result if you call a
8154 function with too many arguments.  (Normally, extra arguments are
8155 harmlessly ignored.)
8156 .IP "\fB\-mregparm=\fR\fInum\fR" 4
8157 .IX Item "-mregparm=num"
8158 Control how many registers are used to pass integer arguments.  By
8159 default, no registers are used to pass arguments, and at most 3
8160 registers can be used.  You can control this behavior for a specific
8161 function by using the function attribute \fBregparm\fR.
8162 .Sp
8163 \&\fBWarning:\fR if you use this switch, and
8164 \&\fInum\fR is nonzero, then you must build all modules with the same
8165 value, including any libraries.  This includes the system libraries and
8166 startup modules.
8167 .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
8168 .IX Item "-mpreferred-stack-boundary=num"
8169 Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
8170 byte boundary.  If \fB\-mpreferred\-stack\-boundary\fR is not specified,
8171 the default is 4 (16 bytes or 128 bits), except when optimizing for code
8172 size (\fB\-Os\fR), in which case the default is the minimum correct
8173 alignment (4 bytes for x86, and 8 bytes for x86\-64).
8174 .Sp
8175 On Pentium and PentiumPro, \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long double\*(C'\fR values
8176 should be aligned to an 8 byte boundary (see \fB\-malign\-double\fR) or
8177 suffer significant run time performance penalties.  On Pentium \s-1III\s0, the
8178 Streaming \s-1SIMD\s0 Extension (\s-1SSE\s0) data type \f(CW\*(C`_\|_m128\*(C'\fR suffers similar
8179 penalties if it is not 16 byte aligned.
8180 .Sp
8181 To ensure proper alignment of this values on the stack, the stack boundary
8182 must be as aligned as that required by any value stored on the stack.
8183 Further, every function must be generated such that it keeps the stack
8184 aligned.  Thus calling a function compiled with a higher preferred
8185 stack boundary from a function compiled with a lower preferred stack
8186 boundary will most likely misalign the stack.  It is recommended that
8187 libraries that use callbacks always use the default setting.
8188 .Sp
8189 This extra alignment does consume extra stack space, and generally
8190 increases code size.  Code that is sensitive to stack space usage, such
8191 as embedded systems and operating system kernels, may want to reduce the
8192 preferred alignment to \fB\-mpreferred\-stack\-boundary=2\fR.
8193 .IP "\fB\-mmmx\fR" 4
8194 .IX Item "-mmmx"
8195 .PD 0
8196 .IP "\fB\-mno\-mmx\fR" 4
8197 .IX Item "-mno-mmx"
8198 .IP "\fB\-msse\fR" 4
8199 .IX Item "-msse"
8200 .IP "\fB\-mno\-sse\fR" 4
8201 .IX Item "-mno-sse"
8202 .IP "\fB\-msse2\fR" 4
8203 .IX Item "-msse2"
8204 .IP "\fB\-mno\-sse2\fR" 4
8205 .IX Item "-mno-sse2"
8206 .IP "\fB\-msse3\fR" 4
8207 .IX Item "-msse3"
8208 .IP "\fB\-mno\-sse3\fR" 4
8209 .IX Item "-mno-sse3"
8210 .IP "\fB\-m3dnow\fR" 4
8211 .IX Item "-m3dnow"
8212 .IP "\fB\-mno\-3dnow\fR" 4
8213 .IX Item "-mno-3dnow"
8214 .PD
8215 These switches enable or disable the use of built-in functions that allow
8216 direct access to the \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0 and 3Dnow extensions of the
8217 instruction set.
8218 .Sp
8219 To have \s-1SSE/SSE2\s0 instructions generated automatically from floating-point
8220 code, see \fB\-mfpmath=sse\fR.
8221 .IP "\fB\-mpush\-args\fR" 4
8222 .IX Item "-mpush-args"
8223 .PD 0
8224 .IP "\fB\-mno\-push\-args\fR" 4
8225 .IX Item "-mno-push-args"
8226 .PD
8227 Use \s-1PUSH\s0 operations to store outgoing parameters.  This method is shorter
8228 and usually equally fast as method using \s-1SUB/MOV\s0 operations and is enabled
8229 by default.  In some cases disabling it may improve performance because of
8230 improved scheduling and reduced dependencies.
8231 .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
8232 .IX Item "-maccumulate-outgoing-args"
8233 If enabled, the maximum amount of space required for outgoing arguments will be
8234 computed in the function prologue.  This is faster on most modern CPUs
8235 because of reduced dependencies, improved scheduling and reduced stack usage
8236 when preferred stack boundary is not equal to 2.  The drawback is a notable
8237 increase in code size.  This switch implies \fB\-mno\-push\-args\fR.
8238 .IP "\fB\-mthreads\fR" 4
8239 .IX Item "-mthreads"
8240 Support thread-safe exception handling on \fBMingw32\fR.  Code that relies
8241 on thread-safe exception handling must compile and link all code with the
8242 \&\fB\-mthreads\fR option.  When compiling, \fB\-mthreads\fR defines
8243 \&\fB\-D_MT\fR; when linking, it links in a special thread helper library
8244 \&\fB\-lmingwthrd\fR which cleans up per thread exception handling data.
8245 .IP "\fB\-mno\-align\-stringops\fR" 4
8246 .IX Item "-mno-align-stringops"
8247 Do not align destination of inlined string operations.  This switch reduces
8248 code size and improves performance in case the destination is already aligned,
8249 but \s-1GCC\s0 doesn't know about it.
8250 .IP "\fB\-minline\-all\-stringops\fR" 4
8251 .IX Item "-minline-all-stringops"
8252 By default \s-1GCC\s0 inlines string operations only when destination is known to be
8253 aligned at least to 4 byte boundary.  This enables more inlining, increase code
8254 size, but may improve performance of code that depends on fast memcpy, strlen
8255 and memset for short lengths.
8256 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
8257 .IX Item "-momit-leaf-frame-pointer"
8258 Don't keep the frame pointer in a register for leaf functions.  This
8259 avoids the instructions to save, set up and restore frame pointers and
8260 makes an extra register available in leaf functions.  The option
8261 \&\fB\-fomit\-frame\-pointer\fR removes the frame pointer for all functions
8262 which might make debugging harder.
8263 .IP "\fB\-mtls\-direct\-seg\-refs\fR" 4
8264 .IX Item "-mtls-direct-seg-refs"
8265 .PD 0
8266 .IP "\fB\-mno\-tls\-direct\-seg\-refs\fR" 4
8267 .IX Item "-mno-tls-direct-seg-refs"
8268 .PD
8269 Controls whether \s-1TLS\s0 variables may be accessed with offsets from the
8270 \&\s-1TLS\s0 segment register (\f(CW%gs\fR for 32\-bit, \f(CW%fs\fR for 64\-bit),
8271 or whether the thread base pointer must be added.  Whether or not this
8272 is legal depends on the operating system, and whether it maps the
8273 segment to cover the entire \s-1TLS\s0 area.
8274 .Sp
8275 For systems that use \s-1GNU\s0 libc, the default is on.
8276 .PP
8277 These \fB\-m\fR switches are supported in addition to the above
8278 on \s-1AMD\s0 x86\-64 processors in 64\-bit environments.
8279 .IP "\fB\-m32\fR" 4
8280 .IX Item "-m32"
8281 .PD 0
8282 .IP "\fB\-m64\fR" 4
8283 .IX Item "-m64"
8284 .PD
8285 Generate code for a 32\-bit or 64\-bit environment.
8286 The 32\-bit environment sets int, long and pointer to 32 bits and
8287 generates code that runs on any i386 system.
8288 The 64\-bit environment sets int to 32 bits and long and pointer
8289 to 64 bits and generates code for \s-1AMD\s0's x86\-64 architecture.
8290 .IP "\fB\-mno\-red\-zone\fR" 4
8291 .IX Item "-mno-red-zone"
8292 Do not use a so called red zone for x86\-64 code.  The red zone is mandated
8293 by the x86\-64 \s-1ABI\s0, it is a 128\-byte area beyond the location of the
8294 stack pointer that will not be modified by signal or interrupt handlers
8295 and therefore can be used for temporary data without adjusting the stack
8296 pointer.  The flag \fB\-mno\-red\-zone\fR disables this red zone.
8297 .IP "\fB\-mcmodel=small\fR" 4
8298 .IX Item "-mcmodel=small"
8299 Generate code for the small code model: the program and its symbols must
8300 be linked in the lower 2 \s-1GB\s0 of the address space.  Pointers are 64 bits.
8301 Programs can be statically or dynamically linked.  This is the default
8302 code model.
8303 .IP "\fB\-mcmodel=kernel\fR" 4
8304 .IX Item "-mcmodel=kernel"
8305 Generate code for the kernel code model.  The kernel runs in the
8306 negative 2 \s-1GB\s0 of the address space.
8307 This model has to be used for Linux kernel code.
8308 .IP "\fB\-mcmodel=medium\fR" 4
8309 .IX Item "-mcmodel=medium"
8310 Generate code for the medium model: The program is linked in the lower 2
8311 \&\s-1GB\s0 of the address space but symbols can be located anywhere in the
8312 address space.  Programs can be statically or dynamically linked, but
8313 building of shared libraries are not supported with the medium model.
8314 .IP "\fB\-mcmodel=large\fR" 4
8315 .IX Item "-mcmodel=large"
8316 Generate code for the large model: This model makes no assumptions
8317 about addresses and sizes of sections.  Currently \s-1GCC\s0 does not implement
8318 this model.
8319 .PP
8320 \fI\s-1IA\-64\s0 Options\fR
8321 .IX Subsection "IA-64 Options"
8322 .PP
8323 These are the \fB\-m\fR options defined for the Intel \s-1IA\-64\s0 architecture.
8324 .IP "\fB\-mbig\-endian\fR" 4
8325 .IX Item "-mbig-endian"
8326 Generate code for a big endian target.  This is the default for \s-1HP\-UX\s0.
8327 .IP "\fB\-mlittle\-endian\fR" 4
8328 .IX Item "-mlittle-endian"
8329 Generate code for a little endian target.  This is the default for \s-1AIX5\s0
8330 and GNU/Linux.
8331 .IP "\fB\-mgnu\-as\fR" 4
8332 .IX Item "-mgnu-as"
8333 .PD 0
8334 .IP "\fB\-mno\-gnu\-as\fR" 4
8335 .IX Item "-mno-gnu-as"
8336 .PD
8337 Generate (or don't) code for the \s-1GNU\s0 assembler.  This is the default.
8338 .IP "\fB\-mgnu\-ld\fR" 4
8339 .IX Item "-mgnu-ld"
8340 .PD 0
8341 .IP "\fB\-mno\-gnu\-ld\fR" 4
8342 .IX Item "-mno-gnu-ld"
8343 .PD
8344 Generate (or don't) code for the \s-1GNU\s0 linker.  This is the default.
8345 .IP "\fB\-mno\-pic\fR" 4
8346 .IX Item "-mno-pic"
8347 Generate code that does not use a global pointer register.  The result
8348 is not position independent code, and violates the \s-1IA\-64\s0 \s-1ABI\s0.
8349 .IP "\fB\-mvolatile\-asm\-stop\fR" 4
8350 .IX Item "-mvolatile-asm-stop"
8351 .PD 0
8352 .IP "\fB\-mno\-volatile\-asm\-stop\fR" 4
8353 .IX Item "-mno-volatile-asm-stop"
8354 .PD
8355 Generate (or don't) a stop bit immediately before and after volatile asm
8356 statements.
8357 .IP "\fB\-mregister\-names\fR" 4
8358 .IX Item "-mregister-names"
8359 .PD 0
8360 .IP "\fB\-mno\-register\-names\fR" 4
8361 .IX Item "-mno-register-names"
8362 .PD
8363 Generate (or don't) \fBin\fR, \fBloc\fR, and \fBout\fR register names for
8364 the stacked registers.  This may make assembler output more readable.
8365 .IP "\fB\-mno\-sdata\fR" 4
8366 .IX Item "-mno-sdata"
8367 .PD 0
8368 .IP "\fB\-msdata\fR" 4
8369 .IX Item "-msdata"
8370 .PD
8371 Disable (or enable) optimizations that use the small data section.  This may
8372 be useful for working around optimizer bugs.
8373 .IP "\fB\-mconstant\-gp\fR" 4
8374 .IX Item "-mconstant-gp"
8375 Generate code that uses a single constant global pointer value.  This is
8376 useful when compiling kernel code.
8377 .IP "\fB\-mauto\-pic\fR" 4
8378 .IX Item "-mauto-pic"
8379 Generate code that is self\-relocatable.  This implies \fB\-mconstant\-gp\fR.
8380 This is useful when compiling firmware code.
8381 .IP "\fB\-minline\-float\-divide\-min\-latency\fR" 4
8382 .IX Item "-minline-float-divide-min-latency"
8383 Generate code for inline divides of floating point values
8384 using the minimum latency algorithm.
8385 .IP "\fB\-minline\-float\-divide\-max\-throughput\fR" 4
8386 .IX Item "-minline-float-divide-max-throughput"
8387 Generate code for inline divides of floating point values
8388 using the maximum throughput algorithm.
8389 .IP "\fB\-minline\-int\-divide\-min\-latency\fR" 4
8390 .IX Item "-minline-int-divide-min-latency"
8391 Generate code for inline divides of integer values
8392 using the minimum latency algorithm.
8393 .IP "\fB\-minline\-int\-divide\-max\-throughput\fR" 4
8394 .IX Item "-minline-int-divide-max-throughput"
8395 Generate code for inline divides of integer values
8396 using the maximum throughput algorithm.
8397 .IP "\fB\-minline\-sqrt\-min\-latency\fR" 4
8398 .IX Item "-minline-sqrt-min-latency"
8399 Generate code for inline square roots
8400 using the minimum latency algorithm.
8401 .IP "\fB\-minline\-sqrt\-max\-throughput\fR" 4
8402 .IX Item "-minline-sqrt-max-throughput"
8403 Generate code for inline square roots
8404 using the maximum throughput algorithm.
8405 .IP "\fB\-mno\-dwarf2\-asm\fR" 4
8406 .IX Item "-mno-dwarf2-asm"
8407 .PD 0
8408 .IP "\fB\-mdwarf2\-asm\fR" 4
8409 .IX Item "-mdwarf2-asm"
8410 .PD
8411 Don't (or do) generate assembler code for the \s-1DWARF2\s0 line number debugging
8412 info.  This may be useful when not using the \s-1GNU\s0 assembler.
8413 .IP "\fB\-mearly\-stop\-bits\fR" 4
8414 .IX Item "-mearly-stop-bits"
8415 .PD 0
8416 .IP "\fB\-mno\-early\-stop\-bits\fR" 4
8417 .IX Item "-mno-early-stop-bits"
8418 .PD
8419 Allow stop bits to be placed earlier than immediately preceding the
8420 instruction that triggered the stop bit.  This can improve instruction
8421 scheduling, but does not always do so.
8422 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
8423 .IX Item "-mfixed-range=register-range"
8424 Generate code treating the given register range as fixed registers.
8425 A fixed register is one that the register allocator can not use.  This is
8426 useful when compiling kernel code.  A register range is specified as
8427 two registers separated by a dash.  Multiple register ranges can be
8428 specified separated by a comma.
8429 .IP "\fB\-mtls\-size=\fR\fItls-size\fR" 4
8430 .IX Item "-mtls-size=tls-size"
8431 Specify bit size of immediate \s-1TLS\s0 offsets.  Valid values are 14, 22, and
8432 64.
8433 .IP "\fB\-mtune\-arch=\fR\fIcpu-type\fR" 4
8434 .IX Item "-mtune-arch=cpu-type"
8435 Tune the instruction scheduling for a particular \s-1CPU\s0, Valid values are
8436 itanium, itanium1, merced, itanium2, and mckinley.
8437 .IP "\fB\-mt\fR" 4
8438 .IX Item "-mt"
8439 .PD 0
8440 .IP "\fB\-pthread\fR" 4
8441 .IX Item "-pthread"
8442 .PD
8443 Add support for multithreading using the \s-1POSIX\s0 threads library.  This
8444 option sets flags for both the preprocessor and linker.  It does
8445 not affect the thread safety of object code produced by the compiler or
8446 that of libraries supplied with it.  These are HP-UX specific flags.
8447 .IP "\fB\-milp32\fR" 4
8448 .IX Item "-milp32"
8449 .PD 0
8450 .IP "\fB\-mlp64\fR" 4
8451 .IX Item "-mlp64"
8452 .PD
8453 Generate code for a 32\-bit or 64\-bit environment.
8454 The 32\-bit environment sets int, long and pointer to 32 bits.
8455 The 64\-bit environment sets int to 32 bits and long and pointer
8456 to 64 bits.  These are HP-UX specific flags.
8457 .PP
8458 \fIM32R/D Options\fR
8459 .IX Subsection "M32R/D Options"
8460 .PP
8461 These \fB\-m\fR options are defined for Renesas M32R/D architectures:
8462 .IP "\fB\-m32r2\fR" 4
8463 .IX Item "-m32r2"
8464 Generate code for the M32R/2.
8465 .IP "\fB\-m32rx\fR" 4
8466 .IX Item "-m32rx"
8467 Generate code for the M32R/X.
8468 .IP "\fB\-m32r\fR" 4
8469 .IX Item "-m32r"
8470 Generate code for the M32R.  This is the default.
8471 .IP "\fB\-mmodel=small\fR" 4
8472 .IX Item "-mmodel=small"
8473 Assume all objects live in the lower 16MB of memory (so that their addresses
8474 can be loaded with the \f(CW\*(C`ld24\*(C'\fR instruction), and assume all subroutines
8475 are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
8476 This is the default.
8477 .Sp
8478 The addressability of a particular object can be set with the
8479 \&\f(CW\*(C`model\*(C'\fR attribute.
8480 .IP "\fB\-mmodel=medium\fR" 4
8481 .IX Item "-mmodel=medium"
8482 Assume objects may be anywhere in the 32\-bit address space (the compiler
8483 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
8484 assume all subroutines are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
8485 .IP "\fB\-mmodel=large\fR" 4
8486 .IX Item "-mmodel=large"
8487 Assume objects may be anywhere in the 32\-bit address space (the compiler
8488 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
8489 assume subroutines may not be reachable with the \f(CW\*(C`bl\*(C'\fR instruction
8490 (the compiler will generate the much slower \f(CW\*(C`seth/add3/jl\*(C'\fR
8491 instruction sequence).
8492 .IP "\fB\-msdata=none\fR" 4
8493 .IX Item "-msdata=none"
8494 Disable use of the small data area.  Variables will be put into
8495 one of \fB.data\fR, \fBbss\fR, or \fB.rodata\fR (unless the
8496 \&\f(CW\*(C`section\*(C'\fR attribute has been specified).
8497 This is the default.
8498 .Sp
8499 The small data area consists of sections \fB.sdata\fR and \fB.sbss\fR.
8500 Objects may be explicitly put in the small data area with the
8501 \&\f(CW\*(C`section\*(C'\fR attribute using one of these sections.
8502 .IP "\fB\-msdata=sdata\fR" 4
8503 .IX Item "-msdata=sdata"
8504 Put small global and static data in the small data area, but do not
8505 generate special code to reference them.
8506 .IP "\fB\-msdata=use\fR" 4
8507 .IX Item "-msdata=use"
8508 Put small global and static data in the small data area, and generate
8509 special instructions to reference them.
8510 .IP "\fB\-G\fR \fInum\fR" 4
8511 .IX Item "-G num"
8512 Put global and static objects less than or equal to \fInum\fR bytes
8513 into the small data or bss sections instead of the normal data or bss
8514 sections.  The default value of \fInum\fR is 8.
8515 The \fB\-msdata\fR option must be set to one of \fBsdata\fR or \fBuse\fR
8516 for this option to have any effect.
8517 .Sp
8518 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
8519 Compiling with different values of \fInum\fR may or may not work; if it
8520 doesn't the linker will give an error message\-\-\-incorrect code will not be
8521 generated.
8522 .IP "\fB\-mdebug\fR" 4
8523 .IX Item "-mdebug"
8524 Makes the M32R specific code in the compiler display some statistics
8525 that might help in debugging programs.
8526 .IP "\fB\-malign\-loops\fR" 4
8527 .IX Item "-malign-loops"
8528 Align all loops to a 32\-byte boundary.
8529 .IP "\fB\-mno\-align\-loops\fR" 4
8530 .IX Item "-mno-align-loops"
8531 Do not enforce a 32\-byte alignment for loops.  This is the default.
8532 .IP "\fB\-missue\-rate=\fR\fInumber\fR" 4
8533 .IX Item "-missue-rate=number"
8534 Issue \fInumber\fR instructions per cycle.  \fInumber\fR can only be 1
8535 or 2.
8536 .IP "\fB\-mbranch\-cost=\fR\fInumber\fR" 4
8537 .IX Item "-mbranch-cost=number"
8538 \&\fInumber\fR can only be 1 or 2.  If it is 1 then branches will be
8539 preferred over conditional code, if it is 2, then the opposite will
8540 apply.
8541 .IP "\fB\-mflush\-trap=\fR\fInumber\fR" 4
8542 .IX Item "-mflush-trap=number"
8543 Specifies the trap number to use to flush the cache.  The default is
8544 12.  Valid numbers are between 0 and 15 inclusive.
8545 .IP "\fB\-mno\-flush\-trap\fR" 4
8546 .IX Item "-mno-flush-trap"
8547 Specifies that the cache cannot be flushed by using a trap.
8548 .IP "\fB\-mflush\-func=\fR\fIname\fR" 4
8549 .IX Item "-mflush-func=name"
8550 Specifies the name of the operating system function to call to flush
8551 the cache.  The default is \fI_flush_cache\fR, but a function call
8552 will only be used if a trap is not available.
8553 .IP "\fB\-mno\-flush\-func\fR" 4
8554 .IX Item "-mno-flush-func"
8555 Indicates that there is no \s-1OS\s0 function for flushing the cache.
8556 .PP
8557 \fIM680x0 Options\fR
8558 .IX Subsection "M680x0 Options"
8559 .PP
8560 These are the \fB\-m\fR options defined for the 68000 series.  The default
8561 values for these options depends on which style of 68000 was selected when
8562 the compiler was configured; the defaults for the most common choices are
8563 given below.
8564 .IP "\fB\-m68000\fR" 4
8565 .IX Item "-m68000"
8566 .PD 0
8567 .IP "\fB\-mc68000\fR" 4
8568 .IX Item "-mc68000"
8569 .PD
8570 Generate output for a 68000.  This is the default
8571 when the compiler is configured for 68000\-based systems.
8572 .Sp
8573 Use this option for microcontrollers with a 68000 or \s-1EC000\s0 core,
8574 including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
8575 .IP "\fB\-m68020\fR" 4
8576 .IX Item "-m68020"
8577 .PD 0
8578 .IP "\fB\-mc68020\fR" 4
8579 .IX Item "-mc68020"
8580 .PD
8581 Generate output for a 68020.  This is the default
8582 when the compiler is configured for 68020\-based systems.
8583 .IP "\fB\-m68881\fR" 4
8584 .IX Item "-m68881"
8585 Generate output containing 68881 instructions for floating point.
8586 This is the default for most 68020 systems unless \fB\-\-nfp\fR was
8587 specified when the compiler was configured.
8588 .IP "\fB\-m68030\fR" 4
8589 .IX Item "-m68030"
8590 Generate output for a 68030.  This is the default when the compiler is
8591 configured for 68030\-based systems.
8592 .IP "\fB\-m68040\fR" 4
8593 .IX Item "-m68040"
8594 Generate output for a 68040.  This is the default when the compiler is
8595 configured for 68040\-based systems.
8596 .Sp
8597 This option inhibits the use of 68881/68882 instructions that have to be
8598 emulated by software on the 68040.  Use this option if your 68040 does not
8599 have code to emulate those instructions.
8600 .IP "\fB\-m68060\fR" 4
8601 .IX Item "-m68060"
8602 Generate output for a 68060.  This is the default when the compiler is
8603 configured for 68060\-based systems.
8604 .Sp
8605 This option inhibits the use of 68020 and 68881/68882 instructions that
8606 have to be emulated by software on the 68060.  Use this option if your 68060
8607 does not have code to emulate those instructions.
8608 .IP "\fB\-mcpu32\fR" 4
8609 .IX Item "-mcpu32"
8610 Generate output for a \s-1CPU32\s0.  This is the default
8611 when the compiler is configured for CPU32\-based systems.
8612 .Sp
8613 Use this option for microcontrollers with a
8614 \&\s-1CPU32\s0 or \s-1CPU32+\s0 core, including the 68330, 68331, 68332, 68333, 68334,
8615 68336, 68340, 68341, 68349 and 68360.
8616 .IP "\fB\-m5200\fR" 4
8617 .IX Item "-m5200"
8618 Generate output for a 520X ``coldfire'' family cpu.  This is the default
8619 when the compiler is configured for 520X\-based systems.
8620 .Sp
8621 Use this option for microcontroller with a 5200 core, including
8622 the \s-1MCF5202\s0, \s-1MCF5203\s0, \s-1MCF5204\s0 and \s-1MCF5202\s0.
8623 .IP "\fB\-m68020\-40\fR" 4
8624 .IX Item "-m68020-40"
8625 Generate output for a 68040, without using any of the new instructions.
8626 This results in code which can run relatively efficiently on either a
8627 68020/68881 or a 68030 or a 68040.  The generated code does use the
8628 68881 instructions that are emulated on the 68040.
8629 .IP "\fB\-m68020\-60\fR" 4
8630 .IX Item "-m68020-60"
8631 Generate output for a 68060, without using any of the new instructions.
8632 This results in code which can run relatively efficiently on either a
8633 68020/68881 or a 68030 or a 68040.  The generated code does use the
8634 68881 instructions that are emulated on the 68060.
8635 .IP "\fB\-msoft\-float\fR" 4
8636 .IX Item "-msoft-float"
8637 Generate output containing library calls for floating point.
8638 \&\fBWarning:\fR the requisite libraries are not available for all m68k
8639 targets.  Normally the facilities of the machine's usual C compiler are
8640 used, but this can't be done directly in cross\-compilation.  You must
8641 make your own arrangements to provide suitable library functions for
8642 cross\-compilation.  The embedded targets \fBm68k\-*\-aout\fR and
8643 \&\fBm68k\-*\-coff\fR do provide software floating point support.
8644 .IP "\fB\-mshort\fR" 4
8645 .IX Item "-mshort"
8646 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
8647 Additionally, parameters passed on the stack are also aligned to a
8648 16\-bit boundary even on targets whose \s-1API\s0 mandates promotion to 32\-bit.
8649 .IP "\fB\-mnobitfield\fR" 4
8650 .IX Item "-mnobitfield"
8651 Do not use the bit-field instructions.  The \fB\-m68000\fR, \fB\-mcpu32\fR
8652 and \fB\-m5200\fR options imply \fB\-mnobitfield\fR.
8653 .IP "\fB\-mbitfield\fR" 4
8654 .IX Item "-mbitfield"
8655 Do use the bit-field instructions.  The \fB\-m68020\fR option implies
8656 \&\fB\-mbitfield\fR.  This is the default if you use a configuration
8657 designed for a 68020.
8658 .IP "\fB\-mrtd\fR" 4
8659 .IX Item "-mrtd"
8660 Use a different function-calling convention, in which functions
8661 that take a fixed number of arguments return with the \f(CW\*(C`rtd\*(C'\fR
8662 instruction, which pops their arguments while returning.  This
8663 saves one instruction in the caller since there is no need to pop
8664 the arguments there.
8665 .Sp
8666 This calling convention is incompatible with the one normally
8667 used on Unix, so you cannot use it if you need to call libraries
8668 compiled with the Unix compiler.
8669 .Sp
8670 Also, you must provide function prototypes for all functions that
8671 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
8672 otherwise incorrect code will be generated for calls to those
8673 functions.
8674 .Sp
8675 In addition, seriously incorrect code will result if you call a
8676 function with too many arguments.  (Normally, extra arguments are
8677 harmlessly ignored.)
8678 .Sp
8679 The \f(CW\*(C`rtd\*(C'\fR instruction is supported by the 68010, 68020, 68030,
8680 68040, 68060 and \s-1CPU32\s0 processors, but not by the 68000 or 5200.
8681 .IP "\fB\-malign\-int\fR" 4
8682 .IX Item "-malign-int"
8683 .PD 0
8684 .IP "\fB\-mno\-align\-int\fR" 4
8685 .IX Item "-mno-align-int"
8686 .PD
8687 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,
8688 \&\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
8689 boundary (\fB\-malign\-int\fR) or a 16\-bit boundary (\fB\-mno\-align\-int\fR).
8690 Aligning variables on 32\-bit boundaries produces code that runs somewhat
8691 faster on processors with 32\-bit busses at the expense of more memory.
8692 .Sp
8693 \&\fBWarning:\fR if you use the \fB\-malign\-int\fR switch, \s-1GCC\s0 will
8694 align structures containing the above types  differently than
8695 most published application binary interface specifications for the m68k.
8696 .IP "\fB\-mpcrel\fR" 4
8697 .IX Item "-mpcrel"
8698 Use the pc-relative addressing mode of the 68000 directly, instead of
8699 using a global offset table.  At present, this option implies \fB\-fpic\fR,
8700 allowing at most a 16\-bit offset for pc-relative addressing.  \fB\-fPIC\fR is
8701 not presently supported with \fB\-mpcrel\fR, though this could be supported for
8702 68020 and higher processors.
8703 .IP "\fB\-mno\-strict\-align\fR" 4
8704 .IX Item "-mno-strict-align"
8705 .PD 0
8706 .IP "\fB\-mstrict\-align\fR" 4
8707 .IX Item "-mstrict-align"
8708 .PD
8709 Do not (do) assume that unaligned memory references will be handled by
8710 the system.
8711 .IP "\fB\-msep\-data\fR" 4
8712 .IX Item "-msep-data"
8713 Generate code that allows the data segment to be located in a different
8714 area of memory from the text segment.  This allows for execute in place in
8715 an environment without virtual memory management.  This option implies
8716 \&\fB\-fPIC\fR.
8717 .IP "\fB\-mno\-sep\-data\fR" 4
8718 .IX Item "-mno-sep-data"
8719 Generate code that assumes that the data segment follows the text segment.
8720 This is the default.
8721 .IP "\fB\-mid\-shared\-library\fR" 4
8722 .IX Item "-mid-shared-library"
8723 Generate code that supports shared libraries via the library \s-1ID\s0 method.
8724 This allows for execute in place and shared libraries in an environment
8725 without virtual memory management.  This option implies \fB\-fPIC\fR.
8726 .IP "\fB\-mno\-id\-shared\-library\fR" 4
8727 .IX Item "-mno-id-shared-library"
8728 Generate code that doesn't assume \s-1ID\s0 based shared libraries are being used.
8729 This is the default.
8730 .IP "\fB\-mshared\-library\-id=n\fR" 4
8731 .IX Item "-mshared-library-id=n"
8732 Specified the identification number of the \s-1ID\s0 based shared library being
8733 compiled.  Specifying a value of 0 will generate more compact code, specifying
8734 other values will force the allocation of that number to the current
8735 library but is no more space or time efficient than omitting this option.
8736 .PP
8737 \fIM68hc1x Options\fR
8738 .IX Subsection "M68hc1x Options"
8739 .PP
8740 These are the \fB\-m\fR options defined for the 68hc11 and 68hc12
8741 microcontrollers.  The default values for these options depends on
8742 which style of microcontroller was selected when the compiler was configured;
8743 the defaults for the most common choices are given below.
8744 .IP "\fB\-m6811\fR" 4
8745 .IX Item "-m6811"
8746 .PD 0
8747 .IP "\fB\-m68hc11\fR" 4
8748 .IX Item "-m68hc11"
8749 .PD
8750 Generate output for a 68HC11.  This is the default
8751 when the compiler is configured for 68HC11\-based systems.
8752 .IP "\fB\-m6812\fR" 4
8753 .IX Item "-m6812"
8754 .PD 0
8755 .IP "\fB\-m68hc12\fR" 4
8756 .IX Item "-m68hc12"
8757 .PD
8758 Generate output for a 68HC12.  This is the default
8759 when the compiler is configured for 68HC12\-based systems.
8760 .IP "\fB\-m68S12\fR" 4
8761 .IX Item "-m68S12"
8762 .PD 0
8763 .IP "\fB\-m68hcs12\fR" 4
8764 .IX Item "-m68hcs12"
8765 .PD
8766 Generate output for a 68HCS12.
8767 .IP "\fB\-mauto\-incdec\fR" 4
8768 .IX Item "-mauto-incdec"
8769 Enable the use of 68HC12 pre and post auto-increment and auto-decrement
8770 addressing modes.
8771 .IP "\fB\-minmax\fR" 4
8772 .IX Item "-minmax"
8773 .PD 0
8774 .IP "\fB\-nominmax\fR" 4
8775 .IX Item "-nominmax"
8776 .PD
8777 Enable the use of 68HC12 min and max instructions.
8778 .IP "\fB\-mlong\-calls\fR" 4
8779 .IX Item "-mlong-calls"
8780 .PD 0
8781 .IP "\fB\-mno\-long\-calls\fR" 4
8782 .IX Item "-mno-long-calls"
8783 .PD
8784 Treat all calls as being far away (near).  If calls are assumed to be
8785 far away, the compiler will use the \f(CW\*(C`call\*(C'\fR instruction to
8786 call a function and the \f(CW\*(C`rtc\*(C'\fR instruction for returning.
8787 .IP "\fB\-mshort\fR" 4
8788 .IX Item "-mshort"
8789 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
8790 .IP "\fB\-msoft\-reg\-count=\fR\fIcount\fR" 4
8791 .IX Item "-msoft-reg-count=count"
8792 Specify the number of pseudo-soft registers which are used for the
8793 code generation.  The maximum number is 32.  Using more pseudo-soft
8794 register may or may not result in better code depending on the program.
8795 The default is 4 for 68HC11 and 2 for 68HC12.
8796 .PP
8797 \fIMCore Options\fR
8798 .IX Subsection "MCore Options"
8799 .PP
8800 These are the \fB\-m\fR options defined for the Motorola M*Core
8801 processors.
8802 .IP "\fB\-mhardlit\fR" 4
8803 .IX Item "-mhardlit"
8804 .PD 0
8805 .IP "\fB\-mno\-hardlit\fR" 4
8806 .IX Item "-mno-hardlit"
8807 .PD
8808 Inline constants into the code stream if it can be done in two
8809 instructions or less.
8810 .IP "\fB\-mdiv\fR" 4
8811 .IX Item "-mdiv"
8812 .PD 0
8813 .IP "\fB\-mno\-div\fR" 4
8814 .IX Item "-mno-div"
8815 .PD
8816 Use the divide instruction.  (Enabled by default).
8817 .IP "\fB\-mrelax\-immediate\fR" 4
8818 .IX Item "-mrelax-immediate"
8819 .PD 0
8820 .IP "\fB\-mno\-relax\-immediate\fR" 4
8821 .IX Item "-mno-relax-immediate"
8822 .PD
8823 Allow arbitrary sized immediates in bit operations.
8824 .IP "\fB\-mwide\-bitfields\fR" 4
8825 .IX Item "-mwide-bitfields"
8826 .PD 0
8827 .IP "\fB\-mno\-wide\-bitfields\fR" 4
8828 .IX Item "-mno-wide-bitfields"
8829 .PD
8830 Always treat bit-fields as int\-sized.
8831 .IP "\fB\-m4byte\-functions\fR" 4
8832 .IX Item "-m4byte-functions"
8833 .PD 0
8834 .IP "\fB\-mno\-4byte\-functions\fR" 4
8835 .IX Item "-mno-4byte-functions"
8836 .PD
8837 Force all functions to be aligned to a four byte boundary.
8838 .IP "\fB\-mcallgraph\-data\fR" 4
8839 .IX Item "-mcallgraph-data"
8840 .PD 0
8841 .IP "\fB\-mno\-callgraph\-data\fR" 4
8842 .IX Item "-mno-callgraph-data"
8843 .PD
8844 Emit callgraph information.
8845 .IP "\fB\-mslow\-bytes\fR" 4
8846 .IX Item "-mslow-bytes"
8847 .PD 0
8848 .IP "\fB\-mno\-slow\-bytes\fR" 4
8849 .IX Item "-mno-slow-bytes"
8850 .PD
8851 Prefer word access when reading byte quantities.
8852 .IP "\fB\-mlittle\-endian\fR" 4
8853 .IX Item "-mlittle-endian"
8854 .PD 0
8855 .IP "\fB\-mbig\-endian\fR" 4
8856 .IX Item "-mbig-endian"
8857 .PD
8858 Generate code for a little endian target.
8859 .IP "\fB\-m210\fR" 4
8860 .IX Item "-m210"
8861 .PD 0
8862 .IP "\fB\-m340\fR" 4
8863 .IX Item "-m340"
8864 .PD
8865 Generate code for the 210 processor.
8866 .PP
8867 \fI\s-1MIPS\s0 Options\fR
8868 .IX Subsection "MIPS Options"
8869 .IP "\fB\-EB\fR" 4
8870 .IX Item "-EB"
8871 Generate big-endian code.
8872 .IP "\fB\-EL\fR" 4
8873 .IX Item "-EL"
8874 Generate little-endian code.  This is the default for \fBmips*el\-*\-*\fR
8875 configurations.
8876 .IP "\fB\-march=\fR\fIarch\fR" 4
8877 .IX Item "-march=arch"
8878 Generate code that will run on \fIarch\fR, which can be the name of a
8879 generic \s-1MIPS\s0 \s-1ISA\s0, or the name of a particular processor.
8880 The \s-1ISA\s0 names are:
8881 \&\fBmips1\fR, \fBmips2\fR, \fBmips3\fR, \fBmips4\fR,
8882 \&\fBmips32\fR, \fBmips32r2\fR, and \fBmips64\fR.
8883 The processor names are:
8884 \&\fB4kc\fR, \fB4kp\fR, \fB5kc\fR, \fB20kc\fR,
8885 \&\fBm4k\fR,
8886 \&\fBr2000\fR, \fBr3000\fR, \fBr3900\fR, \fBr4000\fR, \fBr4400\fR,
8887 \&\fBr4600\fR, \fBr4650\fR, \fBr6000\fR, \fBr8000\fR, \fBrm7000\fR,
8888 \&\fBrm9000\fR,
8889 \&\fBorion\fR,
8890 \&\fBsb1\fR,
8891 \&\fBvr4100\fR, \fBvr4111\fR, \fBvr4120\fR, \fBvr4130\fR, \fBvr4300\fR,
8892 \&\fBvr5000\fR, \fBvr5400\fR and \fBvr5500\fR.
8893 The special value \fBfrom-abi\fR selects the
8894 most compatible architecture for the selected \s-1ABI\s0 (that is,
8895 \&\fBmips1\fR for 32\-bit ABIs and \fBmips3\fR for 64\-bit ABIs).
8896 .Sp
8897 In processor names, a final \fB000\fR can be abbreviated as \fBk\fR
8898 (for example, \fB\-march=r2k\fR).  Prefixes are optional, and
8899 \&\fBvr\fR may be written \fBr\fR.
8900 .Sp
8901 \&\s-1GCC\s0 defines two macros based on the value of this option.  The first
8902 is \fB_MIPS_ARCH\fR, which gives the name of target architecture, as
8903 a string.  The second has the form \fB_MIPS_ARCH_\fR\fIfoo\fR,
8904 where \fIfoo\fR is the capitalized value of \fB_MIPS_ARCH\fR.
8905 For example, \fB\-march=r2000\fR will set \fB_MIPS_ARCH\fR
8906 to \fB\*(L"r2000\*(R"\fR and define the macro \fB_MIPS_ARCH_R2000\fR.
8907 .Sp
8908 Note that the \fB_MIPS_ARCH\fR macro uses the processor names given
8909 above.  In other words, it will have the full prefix and will not
8910 abbreviate \fB000\fR as \fBk\fR.  In the case of \fBfrom-abi\fR,
8911 the macro names the resolved architecture (either \fB\*(L"mips1\*(R"\fR or
8912 \&\fB\*(L"mips3\*(R"\fR).  It names the default architecture when no
8913 \&\fB\-march\fR option is given.
8914 .IP "\fB\-mtune=\fR\fIarch\fR" 4
8915 .IX Item "-mtune=arch"
8916 Optimize for \fIarch\fR.  Among other things, this option controls
8917 the way instructions are scheduled, and the perceived cost of arithmetic
8918 operations.  The list of \fIarch\fR values is the same as for
8919 \&\fB\-march\fR.
8920 .Sp
8921 When this option is not used, \s-1GCC\s0 will optimize for the processor
8922 specified by \fB\-march\fR.  By using \fB\-march\fR and
8923 \&\fB\-mtune\fR together, it is possible to generate code that will
8924 run on a family of processors, but optimize the code for one
8925 particular member of that family.
8926 .Sp
8927 \&\fB\-mtune\fR defines the macros \fB_MIPS_TUNE\fR and
8928 \&\fB_MIPS_TUNE_\fR\fIfoo\fR, which work in the same way as the
8929 \&\fB\-march\fR ones described above.
8930 .IP "\fB\-mips1\fR" 4
8931 .IX Item "-mips1"
8932 Equivalent to \fB\-march=mips1\fR.
8933 .IP "\fB\-mips2\fR" 4
8934 .IX Item "-mips2"
8935 Equivalent to \fB\-march=mips2\fR.
8936 .IP "\fB\-mips3\fR" 4
8937 .IX Item "-mips3"
8938 Equivalent to \fB\-march=mips3\fR.
8939 .IP "\fB\-mips4\fR" 4
8940 .IX Item "-mips4"
8941 Equivalent to \fB\-march=mips4\fR.
8942 .IP "\fB\-mips32\fR" 4
8943 .IX Item "-mips32"
8944 Equivalent to \fB\-march=mips32\fR.
8945 .IP "\fB\-mips32r2\fR" 4
8946 .IX Item "-mips32r2"
8947 Equivalent to \fB\-march=mips32r2\fR.
8948 .IP "\fB\-mips64\fR" 4
8949 .IX Item "-mips64"
8950 Equivalent to \fB\-march=mips64\fR.
8951 .IP "\fB\-mips16\fR" 4
8952 .IX Item "-mips16"
8953 .PD 0
8954 .IP "\fB\-mno\-mips16\fR" 4
8955 .IX Item "-mno-mips16"
8956 .PD
8957 Use (do not use) the \s-1MIPS16\s0 \s-1ISA\s0.
8958 .IP "\fB\-mabi=32\fR" 4
8959 .IX Item "-mabi=32"
8960 .PD 0
8961 .IP "\fB\-mabi=o64\fR" 4
8962 .IX Item "-mabi=o64"
8963 .IP "\fB\-mabi=n32\fR" 4
8964 .IX Item "-mabi=n32"
8965 .IP "\fB\-mabi=64\fR" 4
8966 .IX Item "-mabi=64"
8967 .IP "\fB\-mabi=eabi\fR" 4
8968 .IX Item "-mabi=eabi"
8969 .PD
8970 Generate code for the given \s-1ABI\s0.
8971 .Sp
8972 Note that the \s-1EABI\s0 has a 32\-bit and a 64\-bit variant.  \s-1GCC\s0 normally
8973 generates 64\-bit code when you select a 64\-bit architecture, but you
8974 can use \fB\-mgp32\fR to get 32\-bit code instead.
8975 .Sp
8976 For information about the O64 \s-1ABI\s0, see
8977 <\fBhttp://gcc.gnu.org/projects/mipso64\-abi.html\fR>.
8978 .IP "\fB\-mabicalls\fR" 4
8979 .IX Item "-mabicalls"
8980 .PD 0
8981 .IP "\fB\-mno\-abicalls\fR" 4
8982 .IX Item "-mno-abicalls"
8983 .PD
8984 Generate (do not generate) SVR4\-style position-independent code.
8985 \&\fB\-mabicalls\fR is the default for SVR4\-based systems.
8986 .IP "\fB\-mxgot\fR" 4
8987 .IX Item "-mxgot"
8988 .PD 0
8989 .IP "\fB\-mno\-xgot\fR" 4
8990 .IX Item "-mno-xgot"
8991 .PD
8992 Lift (do not lift) the usual restrictions on the size of the global
8993 offset table.
8994 .Sp
8995 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT\s0.
8996 While this is relatively efficient, it will only work if the \s-1GOT\s0
8997 is smaller than about 64k.  Anything larger will cause the linker
8998 to report an error such as:
8999 .Sp
9000 .Vb 1
9001 \&        relocation truncated to fit: R_MIPS_GOT16 foobar
9002 .Ve
9003 .Sp
9004 If this happens, you should recompile your code with \fB\-mxgot\fR.
9005 It should then work with very large GOTs, although it will also be
9006 less efficient, since it will take three instructions to fetch the
9007 value of a global symbol.
9008 .Sp
9009 Note that some linkers can create multiple GOTs.  If you have such a
9010 linker, you should only need to use \fB\-mxgot\fR when a single object
9011 file accesses more than 64k's worth of \s-1GOT\s0 entries.  Very few do.
9012 .Sp
9013 These options have no effect unless \s-1GCC\s0 is generating position
9014 independent code.
9015 .IP "\fB\-mgp32\fR" 4
9016 .IX Item "-mgp32"
9017 Assume that general-purpose registers are 32 bits wide.
9018 .IP "\fB\-mgp64\fR" 4
9019 .IX Item "-mgp64"
9020 Assume that general-purpose registers are 64 bits wide.
9021 .IP "\fB\-mfp32\fR" 4
9022 .IX Item "-mfp32"
9023 Assume that floating-point registers are 32 bits wide.
9024 .IP "\fB\-mfp64\fR" 4
9025 .IX Item "-mfp64"
9026 Assume that floating-point registers are 64 bits wide.
9027 .IP "\fB\-mhard\-float\fR" 4
9028 .IX Item "-mhard-float"
9029 Use floating-point coprocessor instructions.
9030 .IP "\fB\-msoft\-float\fR" 4
9031 .IX Item "-msoft-float"
9032 Do not use floating-point coprocessor instructions.  Implement
9033 floating-point calculations using library calls instead.
9034 .IP "\fB\-msingle\-float\fR" 4
9035 .IX Item "-msingle-float"
9036 Assume that the floating-point coprocessor only supports single-precision
9037 operations.
9038 .IP "\fB\-mdouble\-float\fR" 4
9039 .IX Item "-mdouble-float"
9040 Assume that the floating-point coprocessor supports double-precision
9041 operations.  This is the default.
9042 .IP "\fB\-mpaired\-single\fR" 4
9043 .IX Item "-mpaired-single"
9044 .PD 0
9045 .IP "\fB\-mno\-paired\-single\fR" 4
9046 .IX Item "-mno-paired-single"
9047 .PD
9048 Use (do not use) paired-single floating-point instructions.
9049   This option can only be used
9050 when generating 64\-bit code and requires hardware floating-point
9051 support to be enabled.
9052 .IP "\fB\-mips3d\fR" 4
9053 .IX Item "-mips3d"
9054 .PD 0
9055 .IP "\fB\-mno\-mips3d\fR" 4
9056 .IX Item "-mno-mips3d"
9057 .PD
9058 Use (do not use) the \s-1MIPS\-3D\s0 \s-1ASE\s0.  
9059 The option \fB\-mips3d\fR implies \fB\-mpaired\-single\fR.
9060 .IP "\fB\-mint64\fR" 4
9061 .IX Item "-mint64"
9062 Force \f(CW\*(C`int\*(C'\fR and \f(CW\*(C`long\*(C'\fR types to be 64 bits wide.  See
9063 \&\fB\-mlong32\fR for an explanation of the default and the way
9064 that the pointer size is determined.
9065 .Sp
9066 This option has been deprecated and will be removed in a future release.
9067 .IP "\fB\-mlong64\fR" 4
9068 .IX Item "-mlong64"
9069 Force \f(CW\*(C`long\*(C'\fR types to be 64 bits wide.  See \fB\-mlong32\fR for
9070 an explanation of the default and the way that the pointer size is
9071 determined.
9072 .IP "\fB\-mlong32\fR" 4
9073 .IX Item "-mlong32"
9074 Force \f(CW\*(C`long\*(C'\fR, \f(CW\*(C`int\*(C'\fR, and pointer types to be 32 bits wide.
9075 .Sp
9076 The default size of \f(CW\*(C`int\*(C'\fRs, \f(CW\*(C`long\*(C'\fRs and pointers depends on
9077 the \s-1ABI\s0.  All the supported ABIs use 32\-bit \f(CW\*(C`int\*(C'\fRs.  The n64 \s-1ABI\s0
9078 uses 64\-bit \f(CW\*(C`long\*(C'\fRs, as does the 64\-bit \s-1EABI\s0; the others use
9079 32\-bit \f(CW\*(C`long\*(C'\fRs.  Pointers are the same size as \f(CW\*(C`long\*(C'\fRs,
9080 or the same size as integer registers, whichever is smaller.
9081 .IP "\fB\-msym32\fR" 4
9082 .IX Item "-msym32"
9083 .PD 0
9084 .IP "\fB\-mno\-sym32\fR" 4
9085 .IX Item "-mno-sym32"
9086 .PD
9087 Assume (do not assume) that all symbols have 32\-bit values, regardless
9088 of the selected \s-1ABI\s0.  This option is useful in combination with
9089 \&\fB\-mabi=64\fR and \fB\-mno\-abicalls\fR because it allows \s-1GCC\s0
9090 to generate shorter and faster references to symbolic addresses.
9091 .IP "\fB\-G\fR \fInum\fR" 4
9092 .IX Item "-G num"
9093 Put global and static items less than or equal to \fInum\fR bytes into
9094 the small data or bss section instead of the normal data or bss section.
9095 This allows the data to be accessed using a single instruction.
9096 .Sp
9097 All modules should be compiled with the same \fB\-G\fR \fInum\fR
9098 value.
9099 .IP "\fB\-membedded\-data\fR" 4
9100 .IX Item "-membedded-data"
9101 .PD 0
9102 .IP "\fB\-mno\-embedded\-data\fR" 4
9103 .IX Item "-mno-embedded-data"
9104 .PD
9105 Allocate variables to the read-only data section first if possible, then
9106 next in the small data section if possible, otherwise in data.  This gives
9107 slightly slower code than the default, but reduces the amount of \s-1RAM\s0 required
9108 when executing, and thus may be preferred for some embedded systems.
9109 .IP "\fB\-muninit\-const\-in\-rodata\fR" 4
9110 .IX Item "-muninit-const-in-rodata"
9111 .PD 0
9112 .IP "\fB\-mno\-uninit\-const\-in\-rodata\fR" 4
9113 .IX Item "-mno-uninit-const-in-rodata"
9114 .PD
9115 Put uninitialized \f(CW\*(C`const\*(C'\fR variables in the read-only data section.
9116 This option is only meaningful in conjunction with \fB\-membedded\-data\fR.
9117 .IP "\fB\-msplit\-addresses\fR" 4
9118 .IX Item "-msplit-addresses"
9119 .PD 0
9120 .IP "\fB\-mno\-split\-addresses\fR" 4
9121 .IX Item "-mno-split-addresses"
9122 .PD
9123 Enable (disable) use of the \f(CW\*(C`%hi()\*(C'\fR and \f(CW\*(C`%lo()\*(C'\fR assembler
9124 relocation operators.  This option has been superseded by
9125 \&\fB\-mexplicit\-relocs\fR but is retained for backwards compatibility.
9126 .IP "\fB\-mexplicit\-relocs\fR" 4
9127 .IX Item "-mexplicit-relocs"
9128 .PD 0
9129 .IP "\fB\-mno\-explicit\-relocs\fR" 4
9130 .IX Item "-mno-explicit-relocs"
9131 .PD
9132 Use (do not use) assembler relocation operators when dealing with symbolic
9133 addresses.  The alternative, selected by \fB\-mno\-explicit\-relocs\fR,
9134 is to use assembler macros instead.
9135 .Sp
9136 \&\fB\-mexplicit\-relocs\fR is the default if \s-1GCC\s0 was configured
9137 to use an assembler that supports relocation operators.
9138 .IP "\fB\-mcheck\-zero\-division\fR" 4
9139 .IX Item "-mcheck-zero-division"
9140 .PD 0
9141 .IP "\fB\-mno\-check\-zero\-division\fR" 4
9142 .IX Item "-mno-check-zero-division"
9143 .PD
9144 Trap (do not trap) on integer division by zero.  The default is
9145 \&\fB\-mcheck\-zero\-division\fR.
9146 .IP "\fB\-mdivide\-traps\fR" 4
9147 .IX Item "-mdivide-traps"
9148 .PD 0
9149 .IP "\fB\-mdivide\-breaks\fR" 4
9150 .IX Item "-mdivide-breaks"
9151 .PD
9152 \&\s-1MIPS\s0 systems check for division by zero by generating either a
9153 conditional trap or a break instruction.  Using traps results in
9154 smaller code, but is only supported on \s-1MIPS\s0 \s-1II\s0 and later.  Also, some
9155 versions of the Linux kernel have a bug that prevents trap from
9156 generating the proper signal (\f(CW\*(C`SIGFPE\*(C'\fR).  Use \fB\-mdivide\-traps\fR to
9157 allow conditional traps on architectures that support them and
9158 \&\fB\-mdivide\-breaks\fR to force the use of breaks.
9159 .Sp
9160 The default is usually \fB\-mdivide\-traps\fR, but this can be
9161 overridden at configure time using \fB\-\-with\-divide=breaks\fR.
9162 Divide-by-zero checks can be completely disabled using
9163 \&\fB\-mno\-check\-zero\-division\fR.
9164 .IP "\fB\-mmemcpy\fR" 4
9165 .IX Item "-mmemcpy"
9166 .PD 0
9167 .IP "\fB\-mno\-memcpy\fR" 4
9168 .IX Item "-mno-memcpy"
9169 .PD
9170 Force (do not force) the use of \f(CW\*(C`memcpy()\*(C'\fR for non-trivial block
9171 moves.  The default is \fB\-mno\-memcpy\fR, which allows \s-1GCC\s0 to inline
9172 most constant-sized copies.
9173 .IP "\fB\-mlong\-calls\fR" 4
9174 .IX Item "-mlong-calls"
9175 .PD 0
9176 .IP "\fB\-mno\-long\-calls\fR" 4
9177 .IX Item "-mno-long-calls"
9178 .PD
9179 Disable (do not disable) use of the \f(CW\*(C`jal\*(C'\fR instruction.  Calling
9180 functions using \f(CW\*(C`jal\*(C'\fR is more efficient but requires the caller
9181 and callee to be in the same 256 megabyte segment.
9182 .Sp
9183 This option has no effect on abicalls code.  The default is
9184 \&\fB\-mno\-long\-calls\fR.
9185 .IP "\fB\-mmad\fR" 4
9186 .IX Item "-mmad"
9187 .PD 0
9188 .IP "\fB\-mno\-mad\fR" 4
9189 .IX Item "-mno-mad"
9190 .PD
9191 Enable (disable) use of the \f(CW\*(C`mad\*(C'\fR, \f(CW\*(C`madu\*(C'\fR and \f(CW\*(C`mul\*(C'\fR
9192 instructions, as provided by the R4650 \s-1ISA\s0.
9193 .IP "\fB\-mfused\-madd\fR" 4
9194 .IX Item "-mfused-madd"
9195 .PD 0
9196 .IP "\fB\-mno\-fused\-madd\fR" 4
9197 .IX Item "-mno-fused-madd"
9198 .PD
9199 Enable (disable) use of the floating point multiply-accumulate
9200 instructions, when they are available.  The default is
9201 \&\fB\-mfused\-madd\fR.
9202 .Sp
9203 When multiply-accumulate instructions are used, the intermediate
9204 product is calculated to infinite precision and is not subject to
9205 the \s-1FCSR\s0 Flush to Zero bit.  This may be undesirable in some
9206 circumstances.
9207 .IP "\fB\-nocpp\fR" 4
9208 .IX Item "-nocpp"
9209 Tell the \s-1MIPS\s0 assembler to not run its preprocessor over user
9210 assembler files (with a \fB.s\fR suffix) when assembling them.
9211 .IP "\fB\-mfix\-r4000\fR" 4
9212 .IX Item "-mfix-r4000"
9213 .PD 0
9214 .IP "\fB\-mno\-fix\-r4000\fR" 4
9215 .IX Item "-mno-fix-r4000"
9216 .PD
9217 Work around certain R4000 \s-1CPU\s0 errata:
9218 .RS 4
9219 .IP "\-" 4
9220 A double-word or a variable shift may give an incorrect result if executed
9221 immediately after starting an integer division.
9222 .IP "\-" 4
9223 A double-word or a variable shift may give an incorrect result if executed
9224 while an integer multiplication is in progress.
9225 .IP "\-" 4
9226 An integer division may give an incorrect result if started in a delay slot
9227 of a taken branch or a jump.
9228 .RE
9229 .RS 4
9230 .RE
9231 .IP "\fB\-mfix\-r4400\fR" 4
9232 .IX Item "-mfix-r4400"
9233 .PD 0
9234 .IP "\fB\-mno\-fix\-r4400\fR" 4
9235 .IX Item "-mno-fix-r4400"
9236 .PD
9237 Work around certain R4400 \s-1CPU\s0 errata:
9238 .RS 4
9239 .IP "\-" 4
9240 A double-word or a variable shift may give an incorrect result if executed
9241 immediately after starting an integer division.
9242 .RE
9243 .RS 4
9244 .RE
9245 .IP "\fB\-mfix\-vr4120\fR" 4
9246 .IX Item "-mfix-vr4120"
9247 .PD 0
9248 .IP "\fB\-mno\-fix\-vr4120\fR" 4
9249 .IX Item "-mno-fix-vr4120"
9250 .PD
9251 Work around certain \s-1VR4120\s0 errata:
9252 .RS 4
9253 .IP "\-" 4
9254 \&\f(CW\*(C`dmultu\*(C'\fR does not always produce the correct result.
9255 .IP "\-" 4
9256 \&\f(CW\*(C`div\*(C'\fR and \f(CW\*(C`ddiv\*(C'\fR do not always produce the correct result if one
9257 of the operands is negative.
9258 .RE
9259 .RS 4
9260 .Sp
9261 The workarounds for the division errata rely on special functions in
9262 \&\fIlibgcc.a\fR.  At present, these functions are only provided by
9263 the \f(CW\*(C`mips64vr*\-elf\*(C'\fR configurations.
9264 .Sp
9265 Other \s-1VR4120\s0 errata require a nop to be inserted between certain pairs of
9266 instructions.  These errata are handled by the assembler, not by \s-1GCC\s0 itself.
9267 .RE
9268 .IP "\fB\-mfix\-vr4130\fR" 4
9269 .IX Item "-mfix-vr4130"
9270 Work around the \s-1VR4130\s0 \f(CW\*(C`mflo\*(C'\fR/\f(CW\*(C`mfhi\*(C'\fR errata.  The
9271 workarounds are implemented by the assembler rather than by \s-1GCC\s0,
9272 although \s-1GCC\s0 will avoid using \f(CW\*(C`mflo\*(C'\fR and \f(CW\*(C`mfhi\*(C'\fR if the
9273 \&\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
9274 instructions are available instead.
9275 .IP "\fB\-mfix\-sb1\fR" 4
9276 .IX Item "-mfix-sb1"
9277 .PD 0
9278 .IP "\fB\-mno\-fix\-sb1\fR" 4
9279 .IX Item "-mno-fix-sb1"
9280 .PD
9281 Work around certain \s-1SB\-1\s0 \s-1CPU\s0 core errata.
9282 (This flag currently works around the \s-1SB\-1\s0 revision 2
9283 ``F1'' and ``F2'' floating point errata.)
9284 .IP "\fB\-mflush\-func=\fR\fIfunc\fR" 4
9285 .IX Item "-mflush-func=func"
9286 .PD 0
9287 .IP "\fB\-mno\-flush\-func\fR" 4
9288 .IX Item "-mno-flush-func"
9289 .PD
9290 Specifies the function to call to flush the I and D caches, or to not
9291 call any such function.  If called, the function must take the same
9292 arguments as the common \f(CW\*(C`_flush_func()\*(C'\fR, that is, the address of the
9293 memory range for which the cache is being flushed, the size of the
9294 memory range, and the number 3 (to flush both caches).  The default
9295 depends on the target \s-1GCC\s0 was configured for, but commonly is either
9296 \&\fB_flush_func\fR or \fB_\|_cpu_flush\fR.
9297 .IP "\fB\-mbranch\-likely\fR" 4
9298 .IX Item "-mbranch-likely"
9299 .PD 0
9300 .IP "\fB\-mno\-branch\-likely\fR" 4
9301 .IX Item "-mno-branch-likely"
9302 .PD
9303 Enable or disable use of Branch Likely instructions, regardless of the
9304 default for the selected architecture.  By default, Branch Likely
9305 instructions may be generated if they are supported by the selected
9306 architecture.  An exception is for the \s-1MIPS32\s0 and \s-1MIPS64\s0 architectures
9307 and processors which implement those architectures; for those, Branch
9308 Likely instructions will not be generated by default because the \s-1MIPS32\s0
9309 and \s-1MIPS64\s0 architectures specifically deprecate their use.
9310 .IP "\fB\-mfp\-exceptions\fR" 4
9311 .IX Item "-mfp-exceptions"
9312 .PD 0
9313 .IP "\fB\-mno\-fp\-exceptions\fR" 4
9314 .IX Item "-mno-fp-exceptions"
9315 .PD
9316 Specifies whether \s-1FP\s0 exceptions are enabled.  This affects how we schedule
9317 \&\s-1FP\s0 instructions for some processors.  The default is that \s-1FP\s0 exceptions are
9318 enabled.
9319 .Sp
9320 For instance, on the \s-1SB\-1\s0, if \s-1FP\s0 exceptions are disabled, and we are emitting
9321 64\-bit code, then we can use both \s-1FP\s0 pipes.  Otherwise, we can only use one
9322 \&\s-1FP\s0 pipe.
9323 .IP "\fB\-mvr4130\-align\fR" 4
9324 .IX Item "-mvr4130-align"
9325 .PD 0
9326 .IP "\fB\-mno\-vr4130\-align\fR" 4
9327 .IX Item "-mno-vr4130-align"
9328 .PD
9329 The \s-1VR4130\s0 pipeline is two-way superscalar, but can only issue two
9330 instructions together if the first one is 8\-byte aligned.  When this
9331 option is enabled, \s-1GCC\s0 will align pairs of instructions that it
9332 thinks should execute in parallel.
9333 .Sp
9334 This option only has an effect when optimizing for the \s-1VR4130\s0.
9335 It normally makes code faster, but at the expense of making it bigger.
9336 It is enabled by default at optimization level \fB\-O3\fR.
9337 .PP
9338 \fI\s-1MMIX\s0 Options\fR
9339 .IX Subsection "MMIX Options"
9340 .PP
9341 These options are defined for the \s-1MMIX:\s0
9342 .IP "\fB\-mlibfuncs\fR" 4
9343 .IX Item "-mlibfuncs"
9344 .PD 0
9345 .IP "\fB\-mno\-libfuncs\fR" 4
9346 .IX Item "-mno-libfuncs"
9347 .PD
9348 Specify that intrinsic library functions are being compiled, passing all
9349 values in registers, no matter the size.
9350 .IP "\fB\-mepsilon\fR" 4
9351 .IX Item "-mepsilon"
9352 .PD 0
9353 .IP "\fB\-mno\-epsilon\fR" 4
9354 .IX Item "-mno-epsilon"
9355 .PD
9356 Generate floating-point comparison instructions that compare with respect
9357 to the \f(CW\*(C`rE\*(C'\fR epsilon register.
9358 .IP "\fB\-mabi=mmixware\fR" 4
9359 .IX Item "-mabi=mmixware"
9360 .PD 0
9361 .IP "\fB\-mabi=gnu\fR" 4
9362 .IX Item "-mabi=gnu"
9363 .PD
9364 Generate code that passes function parameters and return values that (in
9365 the called function) are seen as registers \f(CW$0\fR and up, as opposed to
9366 the \s-1GNU\s0 \s-1ABI\s0 which uses global registers \f(CW$231\fR and up.
9367 .IP "\fB\-mzero\-extend\fR" 4
9368 .IX Item "-mzero-extend"
9369 .PD 0
9370 .IP "\fB\-mno\-zero\-extend\fR" 4
9371 .IX Item "-mno-zero-extend"
9372 .PD
9373 When reading data from memory in sizes shorter than 64 bits, use (do not
9374 use) zero-extending load instructions by default, rather than
9375 sign-extending ones.
9376 .IP "\fB\-mknuthdiv\fR" 4
9377 .IX Item "-mknuthdiv"
9378 .PD 0
9379 .IP "\fB\-mno\-knuthdiv\fR" 4
9380 .IX Item "-mno-knuthdiv"
9381 .PD
9382 Make the result of a division yielding a remainder have the same sign as
9383 the divisor.  With the default, \fB\-mno\-knuthdiv\fR, the sign of the
9384 remainder follows the sign of the dividend.  Both methods are
9385 arithmetically valid, the latter being almost exclusively used.
9386 .IP "\fB\-mtoplevel\-symbols\fR" 4
9387 .IX Item "-mtoplevel-symbols"
9388 .PD 0
9389 .IP "\fB\-mno\-toplevel\-symbols\fR" 4
9390 .IX Item "-mno-toplevel-symbols"
9391 .PD
9392 Prepend (do not prepend) a \fB:\fR to all global symbols, so the assembly
9393 code can be used with the \f(CW\*(C`PREFIX\*(C'\fR assembly directive.
9394 .IP "\fB\-melf\fR" 4
9395 .IX Item "-melf"
9396 Generate an executable in the \s-1ELF\s0 format, rather than the default
9397 \&\fBmmo\fR format used by the \fBmmix\fR simulator.
9398 .IP "\fB\-mbranch\-predict\fR" 4
9399 .IX Item "-mbranch-predict"
9400 .PD 0
9401 .IP "\fB\-mno\-branch\-predict\fR" 4
9402 .IX Item "-mno-branch-predict"
9403 .PD
9404 Use (do not use) the probable-branch instructions, when static branch
9405 prediction indicates a probable branch.
9406 .IP "\fB\-mbase\-addresses\fR" 4
9407 .IX Item "-mbase-addresses"
9408 .PD 0
9409 .IP "\fB\-mno\-base\-addresses\fR" 4
9410 .IX Item "-mno-base-addresses"
9411 .PD
9412 Generate (do not generate) code that uses \fIbase addresses\fR.  Using a
9413 base address automatically generates a request (handled by the assembler
9414 and the linker) for a constant to be set up in a global register.  The
9415 register is used for one or more base address requests within the range 0
9416 to 255 from the value held in the register.  The generally leads to short
9417 and fast code, but the number of different data items that can be
9418 addressed is limited.  This means that a program that uses lots of static
9419 data may require \fB\-mno\-base\-addresses\fR.
9420 .IP "\fB\-msingle\-exit\fR" 4
9421 .IX Item "-msingle-exit"
9422 .PD 0
9423 .IP "\fB\-mno\-single\-exit\fR" 4
9424 .IX Item "-mno-single-exit"
9425 .PD
9426 Force (do not force) generated code to have a single exit point in each
9427 function.
9428 .PP
9429 \fI\s-1MN10300\s0 Options\fR
9430 .IX Subsection "MN10300 Options"
9431 .PP
9432 These \fB\-m\fR options are defined for Matsushita \s-1MN10300\s0 architectures:
9433 .IP "\fB\-mmult\-bug\fR" 4
9434 .IX Item "-mmult-bug"
9435 Generate code to avoid bugs in the multiply instructions for the \s-1MN10300\s0
9436 processors.  This is the default.
9437 .IP "\fB\-mno\-mult\-bug\fR" 4
9438 .IX Item "-mno-mult-bug"
9439 Do not generate code to avoid bugs in the multiply instructions for the
9440 \&\s-1MN10300\s0 processors.
9441 .IP "\fB\-mam33\fR" 4
9442 .IX Item "-mam33"
9443 Generate code which uses features specific to the \s-1AM33\s0 processor.
9444 .IP "\fB\-mno\-am33\fR" 4
9445 .IX Item "-mno-am33"
9446 Do not generate code which uses features specific to the \s-1AM33\s0 processor.  This
9447 is the default.
9448 .IP "\fB\-mno\-crt0\fR" 4
9449 .IX Item "-mno-crt0"
9450 Do not link in the C run-time initialization object file.
9451 .IP "\fB\-mrelax\fR" 4
9452 .IX Item "-mrelax"
9453 Indicate to the linker that it should perform a relaxation optimization pass
9454 to shorten branches, calls and absolute memory addresses.  This option only
9455 has an effect when used on the command line for the final link step.
9456 .Sp
9457 This option makes symbolic debugging impossible.
9458 .PP
9459 \fI\s-1NS32K\s0 Options\fR
9460 .IX Subsection "NS32K Options"
9461 .PP
9462 These are the \fB\-m\fR options defined for the 32000 series.  The default
9463 values for these options depends on which style of 32000 was selected when
9464 the compiler was configured; the defaults for the most common choices are
9465 given below.
9466 .IP "\fB\-m32032\fR" 4
9467 .IX Item "-m32032"
9468 .PD 0
9469 .IP "\fB\-m32032\fR" 4
9470 .IX Item "-m32032"
9471 .PD
9472 Generate output for a 32032.  This is the default
9473 when the compiler is configured for 32032 and 32016 based systems.
9474 .IP "\fB\-m32332\fR" 4
9475 .IX Item "-m32332"
9476 .PD 0
9477 .IP "\fB\-m32332\fR" 4
9478 .IX Item "-m32332"
9479 .PD
9480 Generate output for a 32332.  This is the default
9481 when the compiler is configured for 32332\-based systems.
9482 .IP "\fB\-m32532\fR" 4
9483 .IX Item "-m32532"
9484 .PD 0
9485 .IP "\fB\-m32532\fR" 4
9486 .IX Item "-m32532"
9487 .PD
9488 Generate output for a 32532.  This is the default
9489 when the compiler is configured for 32532\-based systems.
9490 .IP "\fB\-m32081\fR" 4
9491 .IX Item "-m32081"
9492 Generate output containing 32081 instructions for floating point.
9493 This is the default for all systems.
9494 .IP "\fB\-m32381\fR" 4
9495 .IX Item "-m32381"
9496 Generate output containing 32381 instructions for floating point.  This
9497 also implies \fB\-m32081\fR.  The 32381 is only compatible with the 32332
9498 and 32532 cpus.  This is the default for the pc532\-netbsd configuration.
9499 .IP "\fB\-mmulti\-add\fR" 4
9500 .IX Item "-mmulti-add"
9501 Try and generate multiply-add floating point instructions \f(CW\*(C`polyF\*(C'\fR
9502 and \f(CW\*(C`dotF\*(C'\fR.  This option is only available if the \fB\-m32381\fR
9503 option is in effect.  Using these instructions requires changes to
9504 register allocation which generally has a negative impact on
9505 performance.  This option should only be enabled when compiling code
9506 particularly likely to make heavy use of multiply-add instructions.
9507 .IP "\fB\-mnomulti\-add\fR" 4
9508 .IX Item "-mnomulti-add"
9509 Do not try and generate multiply-add floating point instructions
9510 \&\f(CW\*(C`polyF\*(C'\fR and \f(CW\*(C`dotF\*(C'\fR.  This is the default on all platforms.
9511 .IP "\fB\-msoft\-float\fR" 4
9512 .IX Item "-msoft-float"
9513 Generate output containing library calls for floating point.
9514 \&\fBWarning:\fR the requisite libraries may not be available.
9515 .IP "\fB\-mieee\-compare\fR" 4
9516 .IX Item "-mieee-compare"
9517 .PD 0
9518 .IP "\fB\-mno\-ieee\-compare\fR" 4
9519 .IX Item "-mno-ieee-compare"
9520 .PD
9521 Control whether or not the compiler uses \s-1IEEE\s0 floating point
9522 comparisons.  These handle correctly the case where the result of a
9523 comparison is unordered.
9524 \&\fBWarning:\fR the requisite kernel support may not be available.
9525 .IP "\fB\-mnobitfield\fR" 4
9526 .IX Item "-mnobitfield"
9527 Do not use the bit-field instructions.  On some machines it is faster to
9528 use shifting and masking operations.  This is the default for the pc532.
9529 .IP "\fB\-mbitfield\fR" 4
9530 .IX Item "-mbitfield"
9531 Do use the bit-field instructions.  This is the default for all platforms
9532 except the pc532.
9533 .IP "\fB\-mrtd\fR" 4
9534 .IX Item "-mrtd"
9535 Use a different function-calling convention, in which functions
9536 that take a fixed number of arguments return pop their
9537 arguments on return with the \f(CW\*(C`ret\*(C'\fR instruction.
9538 .Sp
9539 This calling convention is incompatible with the one normally
9540 used on Unix, so you cannot use it if you need to call libraries
9541 compiled with the Unix compiler.
9542 .Sp
9543 Also, you must provide function prototypes for all functions that
9544 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
9545 otherwise incorrect code will be generated for calls to those
9546 functions.
9547 .Sp
9548 In addition, seriously incorrect code will result if you call a
9549 function with too many arguments.  (Normally, extra arguments are
9550 harmlessly ignored.)
9551 .Sp
9552 This option takes its name from the 680x0 \f(CW\*(C`rtd\*(C'\fR instruction.
9553 .IP "\fB\-mregparam\fR" 4
9554 .IX Item "-mregparam"
9555 Use a different function-calling convention where the first two arguments
9556 are passed in registers.
9557 .Sp
9558 This calling convention is incompatible with the one normally
9559 used on Unix, so you cannot use it if you need to call libraries
9560 compiled with the Unix compiler.
9561 .IP "\fB\-mnoregparam\fR" 4
9562 .IX Item "-mnoregparam"
9563 Do not pass any arguments in registers.  This is the default for all
9564 targets.
9565 .IP "\fB\-msb\fR" 4
9566 .IX Item "-msb"
9567 It is \s-1OK\s0 to use the sb as an index register which is always loaded with
9568 zero.  This is the default for the pc532\-netbsd target.
9569 .IP "\fB\-mnosb\fR" 4
9570 .IX Item "-mnosb"
9571 The sb register is not available for use or has not been initialized to
9572 zero by the run time system.  This is the default for all targets except
9573 the pc532\-netbsd.  It is also implied whenever \fB\-mhimem\fR or
9574 \&\fB\-fpic\fR is set.
9575 .IP "\fB\-mhimem\fR" 4
9576 .IX Item "-mhimem"
9577 Many ns32000 series addressing modes use displacements of up to 512MB.
9578 If an address is above 512MB then displacements from zero can not be used.
9579 This option causes code to be generated which can be loaded above 512MB.
9580 This may be useful for operating systems or \s-1ROM\s0 code.
9581 .IP "\fB\-mnohimem\fR" 4
9582 .IX Item "-mnohimem"
9583 Assume code will be loaded in the first 512MB of virtual address space.
9584 This is the default for all platforms.
9585 .PP
9586 \fI\s-1PDP\-11\s0 Options\fR
9587 .IX Subsection "PDP-11 Options"
9588 .PP
9589 These options are defined for the \s-1PDP\-11:\s0
9590 .IP "\fB\-mfpu\fR" 4
9591 .IX Item "-mfpu"
9592 Use hardware \s-1FPP\s0 floating point.  This is the default.  (\s-1FIS\s0 floating
9593 point on the \s-1PDP\-11/40\s0 is not supported.)
9594 .IP "\fB\-msoft\-float\fR" 4
9595 .IX Item "-msoft-float"
9596 Do not use hardware floating point.
9597 .IP "\fB\-mac0\fR" 4
9598 .IX Item "-mac0"
9599 Return floating-point results in ac0 (fr0 in Unix assembler syntax).
9600 .IP "\fB\-mno\-ac0\fR" 4
9601 .IX Item "-mno-ac0"
9602 Return floating-point results in memory.  This is the default.
9603 .IP "\fB\-m40\fR" 4
9604 .IX Item "-m40"
9605 Generate code for a \s-1PDP\-11/40\s0.
9606 .IP "\fB\-m45\fR" 4
9607 .IX Item "-m45"
9608 Generate code for a \s-1PDP\-11/45\s0.  This is the default.
9609 .IP "\fB\-m10\fR" 4
9610 .IX Item "-m10"
9611 Generate code for a \s-1PDP\-11/10\s0.
9612 .IP "\fB\-mbcopy\-builtin\fR" 4
9613 .IX Item "-mbcopy-builtin"
9614 Use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.  This is the
9615 default.
9616 .IP "\fB\-mbcopy\fR" 4
9617 .IX Item "-mbcopy"
9618 Do not use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.
9619 .IP "\fB\-mint16\fR" 4
9620 .IX Item "-mint16"
9621 .PD 0
9622 .IP "\fB\-mno\-int32\fR" 4
9623 .IX Item "-mno-int32"
9624 .PD
9625 Use 16\-bit \f(CW\*(C`int\*(C'\fR.  This is the default.
9626 .IP "\fB\-mint32\fR" 4
9627 .IX Item "-mint32"
9628 .PD 0
9629 .IP "\fB\-mno\-int16\fR" 4
9630 .IX Item "-mno-int16"
9631 .PD
9632 Use 32\-bit \f(CW\*(C`int\*(C'\fR.
9633 .IP "\fB\-mfloat64\fR" 4
9634 .IX Item "-mfloat64"
9635 .PD 0
9636 .IP "\fB\-mno\-float32\fR" 4
9637 .IX Item "-mno-float32"
9638 .PD
9639 Use 64\-bit \f(CW\*(C`float\*(C'\fR.  This is the default.
9640 .IP "\fB\-mfloat32\fR" 4
9641 .IX Item "-mfloat32"
9642 .PD 0
9643 .IP "\fB\-mno\-float64\fR" 4
9644 .IX Item "-mno-float64"
9645 .PD
9646 Use 32\-bit \f(CW\*(C`float\*(C'\fR.
9647 .IP "\fB\-mabshi\fR" 4
9648 .IX Item "-mabshi"
9649 Use \f(CW\*(C`abshi2\*(C'\fR pattern.  This is the default.
9650 .IP "\fB\-mno\-abshi\fR" 4
9651 .IX Item "-mno-abshi"
9652 Do not use \f(CW\*(C`abshi2\*(C'\fR pattern.
9653 .IP "\fB\-mbranch\-expensive\fR" 4
9654 .IX Item "-mbranch-expensive"
9655 Pretend that branches are expensive.  This is for experimenting with
9656 code generation only.
9657 .IP "\fB\-mbranch\-cheap\fR" 4
9658 .IX Item "-mbranch-cheap"
9659 Do not pretend that branches are expensive.  This is the default.
9660 .IP "\fB\-msplit\fR" 4
9661 .IX Item "-msplit"
9662 Generate code for a system with split I&D.
9663 .IP "\fB\-mno\-split\fR" 4
9664 .IX Item "-mno-split"
9665 Generate code for a system without split I&D.  This is the default.
9666 .IP "\fB\-munix\-asm\fR" 4
9667 .IX Item "-munix-asm"
9668 Use Unix assembler syntax.  This is the default when configured for
9669 \&\fBpdp11\-*\-bsd\fR.
9670 .IP "\fB\-mdec\-asm\fR" 4
9671 .IX Item "-mdec-asm"
9672 Use \s-1DEC\s0 assembler syntax.  This is the default when configured for any
9673 \&\s-1PDP\-11\s0 target other than \fBpdp11\-*\-bsd\fR.
9674 .PP
9675 \fIPowerPC Options\fR
9676 .IX Subsection "PowerPC Options"
9677 .PP
9678 These are listed under 
9679 .PP
9680 \fI\s-1IBM\s0 \s-1RS/6000\s0 and PowerPC Options\fR
9681 .IX Subsection "IBM RS/6000 and PowerPC Options"
9682 .PP
9683 These \fB\-m\fR options are defined for the \s-1IBM\s0 \s-1RS/6000\s0 and PowerPC:
9684 .IP "\fB\-mpower\fR" 4
9685 .IX Item "-mpower"
9686 .PD 0
9687 .IP "\fB\-mno\-power\fR" 4
9688 .IX Item "-mno-power"
9689 .IP "\fB\-mpower2\fR" 4
9690 .IX Item "-mpower2"
9691 .IP "\fB\-mno\-power2\fR" 4
9692 .IX Item "-mno-power2"
9693 .IP "\fB\-mpowerpc\fR" 4
9694 .IX Item "-mpowerpc"
9695 .IP "\fB\-mno\-powerpc\fR" 4
9696 .IX Item "-mno-powerpc"
9697 .IP "\fB\-mpowerpc\-gpopt\fR" 4
9698 .IX Item "-mpowerpc-gpopt"
9699 .IP "\fB\-mno\-powerpc\-gpopt\fR" 4
9700 .IX Item "-mno-powerpc-gpopt"
9701 .IP "\fB\-mpowerpc\-gfxopt\fR" 4
9702 .IX Item "-mpowerpc-gfxopt"
9703 .IP "\fB\-mno\-powerpc\-gfxopt\fR" 4
9704 .IX Item "-mno-powerpc-gfxopt"
9705 .IP "\fB\-mpowerpc64\fR" 4
9706 .IX Item "-mpowerpc64"
9707 .IP "\fB\-mno\-powerpc64\fR" 4
9708 .IX Item "-mno-powerpc64"
9709 .PD
9710 \&\s-1GCC\s0 supports two related instruction set architectures for the
9711 \&\s-1RS/6000\s0 and PowerPC.  The \fI\s-1POWER\s0\fR instruction set are those
9712 instructions supported by the \fBrios\fR chip set used in the original
9713 \&\s-1RS/6000\s0 systems and the \fIPowerPC\fR instruction set is the
9714 architecture of the Motorola MPC5xx, MPC6xx, MPC8xx microprocessors, and
9715 the \s-1IBM\s0 4xx microprocessors.
9716 .Sp
9717 Neither architecture is a subset of the other.  However there is a
9718 large common subset of instructions supported by both.  An \s-1MQ\s0
9719 register is included in processors supporting the \s-1POWER\s0 architecture.
9720 .Sp
9721 You use these options to specify which instructions are available on the
9722 processor you are using.  The default value of these options is
9723 determined when configuring \s-1GCC\s0.  Specifying the
9724 \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
9725 options.  We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
9726 rather than the options listed above.
9727 .Sp
9728 The \fB\-mpower\fR option allows \s-1GCC\s0 to generate instructions that
9729 are found only in the \s-1POWER\s0 architecture and to use the \s-1MQ\s0 register.
9730 Specifying \fB\-mpower2\fR implies \fB\-power\fR and also allows \s-1GCC\s0
9731 to generate instructions that are present in the \s-1POWER2\s0 architecture but
9732 not the original \s-1POWER\s0 architecture.
9733 .Sp
9734 The \fB\-mpowerpc\fR option allows \s-1GCC\s0 to generate instructions that
9735 are found only in the 32\-bit subset of the PowerPC architecture.
9736 Specifying \fB\-mpowerpc\-gpopt\fR implies \fB\-mpowerpc\fR and also allows
9737 \&\s-1GCC\s0 to use the optional PowerPC architecture instructions in the
9738 General Purpose group, including floating-point square root.  Specifying
9739 \&\fB\-mpowerpc\-gfxopt\fR implies \fB\-mpowerpc\fR and also allows \s-1GCC\s0 to
9740 use the optional PowerPC architecture instructions in the Graphics
9741 group, including floating-point select.
9742 .Sp
9743 The \fB\-mpowerpc64\fR option allows \s-1GCC\s0 to generate the additional
9744 64\-bit instructions that are found in the full PowerPC64 architecture
9745 and to treat GPRs as 64\-bit, doubleword quantities.  \s-1GCC\s0 defaults to
9746 \&\fB\-mno\-powerpc64\fR.
9747 .Sp
9748 If you specify both \fB\-mno\-power\fR and \fB\-mno\-powerpc\fR, \s-1GCC\s0
9749 will use only the instructions in the common subset of both
9750 architectures plus some special \s-1AIX\s0 common-mode calls, and will not use
9751 the \s-1MQ\s0 register.  Specifying both \fB\-mpower\fR and \fB\-mpowerpc\fR
9752 permits \s-1GCC\s0 to use any instruction from either architecture and to
9753 allow use of the \s-1MQ\s0 register; specify this for the Motorola \s-1MPC601\s0.
9754 .IP "\fB\-mnew\-mnemonics\fR" 4
9755 .IX Item "-mnew-mnemonics"
9756 .PD 0
9757 .IP "\fB\-mold\-mnemonics\fR" 4
9758 .IX Item "-mold-mnemonics"
9759 .PD
9760 Select which mnemonics to use in the generated assembler code.  With
9761 \&\fB\-mnew\-mnemonics\fR, \s-1GCC\s0 uses the assembler mnemonics defined for
9762 the PowerPC architecture.  With \fB\-mold\-mnemonics\fR it uses the
9763 assembler mnemonics defined for the \s-1POWER\s0 architecture.  Instructions
9764 defined in only one architecture have only one mnemonic; \s-1GCC\s0 uses that
9765 mnemonic irrespective of which of these options is specified.
9766 .Sp
9767 \&\s-1GCC\s0 defaults to the mnemonics appropriate for the architecture in
9768 use.  Specifying \fB\-mcpu=\fR\fIcpu_type\fR sometimes overrides the
9769 value of these option.  Unless you are building a cross\-compiler, you
9770 should normally not specify either \fB\-mnew\-mnemonics\fR or
9771 \&\fB\-mold\-mnemonics\fR, but should instead accept the default.
9772 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
9773 .IX Item "-mcpu=cpu_type"
9774 Set architecture type, register usage, choice of mnemonics, and
9775 instruction scheduling parameters for machine type \fIcpu_type\fR.
9776 Supported values for \fIcpu_type\fR are \fB401\fR, \fB403\fR,
9777 \&\fB405\fR, \fB405fp\fR, \fB440\fR, \fB440fp\fR, \fB505\fR,
9778 \&\fB601\fR, \fB602\fR, \fB603\fR, \fB603e\fR, \fB604\fR,
9779 \&\fB604e\fR, \fB620\fR, \fB630\fR, \fB740\fR, \fB7400\fR,
9780 \&\fB7450\fR, \fB750\fR, \fB801\fR, \fB821\fR, \fB823\fR,
9781 \&\fB860\fR, \fB970\fR, \fB8540\fR, \fBcommon\fR, \fBec603e\fR, \fBG3\fR,
9782 \&\fBG4\fR, \fBG5\fR, \fBpower\fR, \fBpower2\fR, \fBpower3\fR,
9783 \&\fBpower4\fR, \fBpower5\fR, \fBpowerpc\fR, \fBpowerpc64\fR,
9784 \&\fBrios\fR, \fBrios1\fR, \fBrios2\fR, \fBrsc\fR, and \fBrs64a\fR.
9785 .Sp
9786 \&\fB\-mcpu=common\fR selects a completely generic processor.  Code
9787 generated under this option will run on any \s-1POWER\s0 or PowerPC processor.
9788 \&\s-1GCC\s0 will use only the instructions in the common subset of both
9789 architectures, and will not use the \s-1MQ\s0 register.  \s-1GCC\s0 assumes a generic
9790 processor model for scheduling purposes.
9791 .Sp
9792 \&\fB\-mcpu=power\fR, \fB\-mcpu=power2\fR, \fB\-mcpu=powerpc\fR, and
9793 \&\fB\-mcpu=powerpc64\fR specify generic \s-1POWER\s0, \s-1POWER2\s0, pure 32\-bit
9794 PowerPC (i.e., not \s-1MPC601\s0), and 64\-bit PowerPC architecture machine
9795 types, with an appropriate, generic processor model assumed for
9796 scheduling purposes.
9797 .Sp
9798 The other options specify a specific processor.  Code generated under
9799 those options will run best on that processor, and may not run at all on
9800 others.
9801 .Sp
9802 The \fB\-mcpu\fR options automatically enable or disable the
9803 following options: \fB\-maltivec\fR, \fB\-mhard\-float\fR,
9804 \&\fB\-mmfcrf\fR, \fB\-mmultiple\fR, \fB\-mnew\-mnemonics\fR,
9805 \&\fB\-mpower\fR, \fB\-mpower2\fR, \fB\-mpowerpc64\fR,
9806 \&\fB\-mpowerpc\-gpopt\fR, \fB\-mpowerpc\-gfxopt\fR,
9807 \&\fB\-mstring\fR.  The particular options set for any particular \s-1CPU\s0
9808 will vary between compiler versions, depending on what setting seems
9809 to produce optimal code for that \s-1CPU\s0; it doesn't necessarily reflect
9810 the actual hardware's capabilities.  If you wish to set an individual
9811 option to a particular value, you may specify it after the
9812 \&\fB\-mcpu\fR option, like \fB\-mcpu=970 \-mno\-altivec\fR.
9813 .Sp
9814 On \s-1AIX\s0, the \fB\-maltivec\fR and \fB\-mpowerpc64\fR options are
9815 not enabled or disabled by the \fB\-mcpu\fR option at present, since
9816 \&\s-1AIX\s0 does not have full support for these options.  You may still
9817 enable or disable them individually if you're sure it'll work in your
9818 environment.
9819 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
9820 .IX Item "-mtune=cpu_type"
9821 Set the instruction scheduling parameters for machine type
9822 \&\fIcpu_type\fR, but do not set the architecture type, register usage, or
9823 choice of mnemonics, as \fB\-mcpu=\fR\fIcpu_type\fR would.  The same
9824 values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
9825 \&\fB\-mcpu\fR.  If both are specified, the code generated will use the
9826 architecture, registers, and mnemonics set by \fB\-mcpu\fR, but the
9827 scheduling parameters set by \fB\-mtune\fR.
9828 .IP "\fB\-maltivec\fR" 4
9829 .IX Item "-maltivec"
9830 .PD 0
9831 .IP "\fB\-mno\-altivec\fR" 4
9832 .IX Item "-mno-altivec"
9833 .PD
9834 Generate code that uses (does not use) AltiVec instructions, and also
9835 enable the use of built-in functions that allow more direct access to
9836 the AltiVec instruction set.  You may also need to set
9837 \&\fB\-mabi=altivec\fR to adjust the current \s-1ABI\s0 with AltiVec \s-1ABI\s0
9838 enhancements.
9839 .IP "\fB\-mabi=spe\fR" 4
9840 .IX Item "-mabi=spe"
9841 Extend the current \s-1ABI\s0 with \s-1SPE\s0 \s-1ABI\s0 extensions.  This does not change
9842 the default \s-1ABI\s0, instead it adds the \s-1SPE\s0 \s-1ABI\s0 extensions to the current
9843 \&\s-1ABI\s0.
9844 .IP "\fB\-mabi=no\-spe\fR" 4
9845 .IX Item "-mabi=no-spe"
9846 Disable Booke \s-1SPE\s0 \s-1ABI\s0 extensions for the current \s-1ABI\s0.
9847 .IP "\fB\-misel=\fR\fIyes/no\fR" 4
9848 .IX Item "-misel=yes/no"
9849 .PD 0
9850 .IP "\fB\-misel\fR" 4
9851 .IX Item "-misel"
9852 .PD
9853 This switch enables or disables the generation of \s-1ISEL\s0 instructions.
9854 .IP "\fB\-mspe=\fR\fIyes/no\fR" 4
9855 .IX Item "-mspe=yes/no"
9856 .PD 0
9857 .IP "\fB\-mspe\fR" 4
9858 .IX Item "-mspe"
9859 .PD
9860 This switch enables or disables the generation of \s-1SPE\s0 simd
9861 instructions.
9862 .IP "\fB\-mfloat\-gprs=\fR\fIyes/single/double/no\fR" 4
9863 .IX Item "-mfloat-gprs=yes/single/double/no"
9864 .PD 0
9865 .IP "\fB\-mfloat\-gprs\fR" 4
9866 .IX Item "-mfloat-gprs"
9867 .PD
9868 This switch enables or disables the generation of floating point
9869 operations on the general purpose registers for architectures that
9870 support it.
9871 .Sp
9872 The argument \fIyes\fR or \fIsingle\fR enables the use of
9873 single-precision floating point operations.
9874 .Sp
9875 The argument \fIdouble\fR enables the use of single and
9876 double-precision floating point operations.
9877 .Sp
9878 The argument \fIno\fR disables floating point operations on the
9879 general purpose registers.
9880 .Sp
9881 This option is currently only available on the MPC854x.
9882 .IP "\fB\-m32\fR" 4
9883 .IX Item "-m32"
9884 .PD 0
9885 .IP "\fB\-m64\fR" 4
9886 .IX Item "-m64"
9887 .PD
9888 Generate code for 32\-bit or 64\-bit environments of Darwin and \s-1SVR4\s0
9889 targets (including GNU/Linux).  The 32\-bit environment sets int, long
9890 and pointer to 32 bits and generates code that runs on any PowerPC
9891 variant.  The 64\-bit environment sets int to 32 bits and long and
9892 pointer to 64 bits, and generates code for PowerPC64, as for
9893 \&\fB\-mpowerpc64\fR.
9894 .IP "\fB\-mfull\-toc\fR" 4
9895 .IX Item "-mfull-toc"
9896 .PD 0
9897 .IP "\fB\-mno\-fp\-in\-toc\fR" 4
9898 .IX Item "-mno-fp-in-toc"
9899 .IP "\fB\-mno\-sum\-in\-toc\fR" 4
9900 .IX Item "-mno-sum-in-toc"
9901 .IP "\fB\-mminimal\-toc\fR" 4
9902 .IX Item "-mminimal-toc"
9903 .PD
9904 Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
9905 every executable file.  The \fB\-mfull\-toc\fR option is selected by
9906 default.  In that case, \s-1GCC\s0 will allocate at least one \s-1TOC\s0 entry for
9907 each unique non-automatic variable reference in your program.  \s-1GCC\s0
9908 will also place floating-point constants in the \s-1TOC\s0.  However, only
9909 16,384 entries are available in the \s-1TOC\s0.
9910 .Sp
9911 If you receive a linker error message that saying you have overflowed
9912 the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
9913 with the \fB\-mno\-fp\-in\-toc\fR and \fB\-mno\-sum\-in\-toc\fR options.
9914 \&\fB\-mno\-fp\-in\-toc\fR prevents \s-1GCC\s0 from putting floating-point
9915 constants in the \s-1TOC\s0 and \fB\-mno\-sum\-in\-toc\fR forces \s-1GCC\s0 to
9916 generate code to calculate the sum of an address and a constant at
9917 run-time instead of putting that sum into the \s-1TOC\s0.  You may specify one
9918 or both of these options.  Each causes \s-1GCC\s0 to produce very slightly
9919 slower and larger code at the expense of conserving \s-1TOC\s0 space.
9920 .Sp
9921 If you still run out of space in the \s-1TOC\s0 even when you specify both of
9922 these options, specify \fB\-mminimal\-toc\fR instead.  This option causes
9923 \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file.  When you specify this
9924 option, \s-1GCC\s0 will produce code that is slower and larger but which
9925 uses extremely little \s-1TOC\s0 space.  You may wish to use this option
9926 only on files that contain less frequently executed code.
9927 .IP "\fB\-maix64\fR" 4
9928 .IX Item "-maix64"
9929 .PD 0
9930 .IP "\fB\-maix32\fR" 4
9931 .IX Item "-maix32"
9932 .PD
9933 Enable 64\-bit \s-1AIX\s0 \s-1ABI\s0 and calling convention: 64\-bit pointers, 64\-bit
9934 \&\f(CW\*(C`long\*(C'\fR type, and the infrastructure needed to support them.
9935 Specifying \fB\-maix64\fR implies \fB\-mpowerpc64\fR and
9936 \&\fB\-mpowerpc\fR, while \fB\-maix32\fR disables the 64\-bit \s-1ABI\s0 and
9937 implies \fB\-mno\-powerpc64\fR.  \s-1GCC\s0 defaults to \fB\-maix32\fR.
9938 .IP "\fB\-mxl\-compat\fR" 4
9939 .IX Item "-mxl-compat"
9940 .PD 0
9941 .IP "\fB\-mno\-xl\-compat\fR" 4
9942 .IX Item "-mno-xl-compat"
9943 .PD
9944 Produce code that conforms more closely to \s-1IBM\s0 \s-1XLC\s0 semantics when using
9945 AIX-compatible \s-1ABI\s0.  Pass floating-point arguments to prototyped
9946 functions beyond the register save area (\s-1RSA\s0) on the stack in addition
9947 to argument FPRs.  Do not assume that most significant double in 128
9948 bit long double value is properly rounded when comparing values.
9949 .Sp
9950 The \s-1AIX\s0 calling convention was extended but not initially documented to
9951 handle an obscure K&R C case of calling a function that takes the
9952 address of its arguments with fewer arguments than declared.  \s-1AIX\s0 \s-1XL\s0
9953 compilers access floating point arguments which do not fit in the
9954 \&\s-1RSA\s0 from the stack when a subroutine is compiled without
9955 optimization.  Because always storing floating-point arguments on the
9956 stack is inefficient and rarely needed, this option is not enabled by
9957 default and only is necessary when calling subroutines compiled by \s-1AIX\s0
9958 \&\s-1XL\s0 compilers without optimization.
9959 .IP "\fB\-mpe\fR" 4
9960 .IX Item "-mpe"
9961 Support \fI\s-1IBM\s0 \s-1RS/6000\s0 \s-1SP\s0\fR \fIParallel Environment\fR (\s-1PE\s0).  Link an
9962 application written to use message passing with special startup code to
9963 enable the application to run.  The system must have \s-1PE\s0 installed in the
9964 standard location (\fI/usr/lpp/ppe.poe/\fR), or the \fIspecs\fR file
9965 must be overridden with the \fB\-specs=\fR option to specify the
9966 appropriate directory location.  The Parallel Environment does not
9967 support threads, so the \fB\-mpe\fR option and the \fB\-pthread\fR
9968 option are incompatible.
9969 .IP "\fB\-malign\-natural\fR" 4
9970 .IX Item "-malign-natural"
9971 .PD 0
9972 .IP "\fB\-malign\-power\fR" 4
9973 .IX Item "-malign-power"
9974 .PD
9975 On \s-1AIX\s0, 32\-bit Darwin, and 64\-bit PowerPC GNU/Linux, the option
9976 \&\fB\-malign\-natural\fR overrides the ABI-defined alignment of larger
9977 types, such as floating-point doubles, on their natural size-based boundary.
9978 The option \fB\-malign\-power\fR instructs \s-1GCC\s0 to follow the ABI-specified
9979 alignment rules.  \s-1GCC\s0 defaults to the standard alignment defined in the \s-1ABI\s0.
9980 .Sp
9981 On 64\-bit Darwin, natural alignment is the default, and \fB\-malign\-power\fR
9982 is not supported.
9983 .IP "\fB\-msoft\-float\fR" 4
9984 .IX Item "-msoft-float"
9985 .PD 0
9986 .IP "\fB\-mhard\-float\fR" 4
9987 .IX Item "-mhard-float"
9988 .PD
9989 Generate code that does not use (uses) the floating-point register set.
9990 Software floating point emulation is provided if you use the
9991 \&\fB\-msoft\-float\fR option, and pass the option to \s-1GCC\s0 when linking.
9992 .IP "\fB\-mmultiple\fR" 4
9993 .IX Item "-mmultiple"
9994 .PD 0
9995 .IP "\fB\-mno\-multiple\fR" 4
9996 .IX Item "-mno-multiple"
9997 .PD
9998 Generate code that uses (does not use) the load multiple word
9999 instructions and the store multiple word instructions.  These
10000 instructions are generated by default on \s-1POWER\s0 systems, and not
10001 generated on PowerPC systems.  Do not use \fB\-mmultiple\fR on little
10002 endian PowerPC systems, since those instructions do not work when the
10003 processor is in little endian mode.  The exceptions are \s-1PPC740\s0 and
10004 \&\s-1PPC750\s0 which permit the instructions usage in little endian mode.
10005 .IP "\fB\-mstring\fR" 4
10006 .IX Item "-mstring"
10007 .PD 0
10008 .IP "\fB\-mno\-string\fR" 4
10009 .IX Item "-mno-string"
10010 .PD
10011 Generate code that uses (does not use) the load string instructions
10012 and the store string word instructions to save multiple registers and
10013 do small block moves.  These instructions are generated by default on
10014 \&\s-1POWER\s0 systems, and not generated on PowerPC systems.  Do not use
10015 \&\fB\-mstring\fR on little endian PowerPC systems, since those
10016 instructions do not work when the processor is in little endian mode.
10017 The exceptions are \s-1PPC740\s0 and \s-1PPC750\s0 which permit the instructions
10018 usage in little endian mode.
10019 .IP "\fB\-mupdate\fR" 4
10020 .IX Item "-mupdate"
10021 .PD 0
10022 .IP "\fB\-mno\-update\fR" 4
10023 .IX Item "-mno-update"
10024 .PD
10025 Generate code that uses (does not use) the load or store instructions
10026 that update the base register to the address of the calculated memory
10027 location.  These instructions are generated by default.  If you use
10028 \&\fB\-mno\-update\fR, there is a small window between the time that the
10029 stack pointer is updated and the address of the previous frame is
10030 stored, which means code that walks the stack frame across interrupts or
10031 signals may get corrupted data.
10032 .IP "\fB\-mfused\-madd\fR" 4
10033 .IX Item "-mfused-madd"
10034 .PD 0
10035 .IP "\fB\-mno\-fused\-madd\fR" 4
10036 .IX Item "-mno-fused-madd"
10037 .PD
10038 Generate code that uses (does not use) the floating point multiply and
10039 accumulate instructions.  These instructions are generated by default if
10040 hardware floating is used.
10041 .IP "\fB\-mno\-bit\-align\fR" 4
10042 .IX Item "-mno-bit-align"
10043 .PD 0
10044 .IP "\fB\-mbit\-align\fR" 4
10045 .IX Item "-mbit-align"
10046 .PD
10047 On System V.4 and embedded PowerPC systems do not (do) force structures
10048 and unions that contain bit-fields to be aligned to the base type of the
10049 bit\-field.
10050 .Sp
10051 For example, by default a structure containing nothing but 8
10052 \&\f(CW\*(C`unsigned\*(C'\fR bit-fields of length 1 would be aligned to a 4 byte
10053 boundary and have a size of 4 bytes.  By using \fB\-mno\-bit\-align\fR,
10054 the structure would be aligned to a 1 byte boundary and be one byte in
10055 size.
10056 .IP "\fB\-mno\-strict\-align\fR" 4
10057 .IX Item "-mno-strict-align"
10058 .PD 0
10059 .IP "\fB\-mstrict\-align\fR" 4
10060 .IX Item "-mstrict-align"
10061 .PD
10062 On System V.4 and embedded PowerPC systems do not (do) assume that
10063 unaligned memory references will be handled by the system.
10064 .IP "\fB\-mrelocatable\fR" 4
10065 .IX Item "-mrelocatable"
10066 .PD 0
10067 .IP "\fB\-mno\-relocatable\fR" 4
10068 .IX Item "-mno-relocatable"
10069 .PD
10070 On embedded PowerPC systems generate code that allows (does not allow)
10071 the program to be relocated to a different address at runtime.  If you
10072 use \fB\-mrelocatable\fR on any module, all objects linked together must
10073 be compiled with \fB\-mrelocatable\fR or \fB\-mrelocatable\-lib\fR.
10074 .IP "\fB\-mrelocatable\-lib\fR" 4
10075 .IX Item "-mrelocatable-lib"
10076 .PD 0
10077 .IP "\fB\-mno\-relocatable\-lib\fR" 4
10078 .IX Item "-mno-relocatable-lib"
10079 .PD
10080 On embedded PowerPC systems generate code that allows (does not allow)
10081 the program to be relocated to a different address at runtime.  Modules
10082 compiled with \fB\-mrelocatable\-lib\fR can be linked with either modules
10083 compiled without \fB\-mrelocatable\fR and \fB\-mrelocatable\-lib\fR or
10084 with modules compiled with the \fB\-mrelocatable\fR options.
10085 .IP "\fB\-mno\-toc\fR" 4
10086 .IX Item "-mno-toc"
10087 .PD 0
10088 .IP "\fB\-mtoc\fR" 4
10089 .IX Item "-mtoc"
10090 .PD
10091 On System V.4 and embedded PowerPC systems do not (do) assume that
10092 register 2 contains a pointer to a global area pointing to the addresses
10093 used in the program.
10094 .IP "\fB\-mlittle\fR" 4
10095 .IX Item "-mlittle"
10096 .PD 0
10097 .IP "\fB\-mlittle\-endian\fR" 4
10098 .IX Item "-mlittle-endian"
10099 .PD
10100 On System V.4 and embedded PowerPC systems compile code for the
10101 processor in little endian mode.  The \fB\-mlittle\-endian\fR option is
10102 the same as \fB\-mlittle\fR.
10103 .IP "\fB\-mbig\fR" 4
10104 .IX Item "-mbig"
10105 .PD 0
10106 .IP "\fB\-mbig\-endian\fR" 4
10107 .IX Item "-mbig-endian"
10108 .PD
10109 On System V.4 and embedded PowerPC systems compile code for the
10110 processor in big endian mode.  The \fB\-mbig\-endian\fR option is
10111 the same as \fB\-mbig\fR.
10112 .IP "\fB\-mdynamic\-no\-pic\fR" 4
10113 .IX Item "-mdynamic-no-pic"
10114 On Darwin and Mac \s-1OS\s0 X systems, compile code so that it is not
10115 relocatable, but that its external references are relocatable.  The
10116 resulting code is suitable for applications, but not shared
10117 libraries.
10118 .IP "\fB\-mprioritize\-restricted\-insns=\fR\fIpriority\fR" 4
10119 .IX Item "-mprioritize-restricted-insns=priority"
10120 This option controls the priority that is assigned to
10121 dispatch-slot restricted instructions during the second scheduling
10122 pass.  The argument \fIpriority\fR takes the value \fI0/1/2\fR to assign
10123 \&\fIno/highest/second\-highest\fR priority to dispatch slot restricted
10124 instructions.
10125 .IP "\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR" 4
10126 .IX Item "-msched-costly-dep=dependence_type"
10127 This option controls which dependences are considered costly
10128 by the target during instruction scheduling.  The argument
10129 \&\fIdependence_type\fR takes one of the following values:
10130 \&\fIno\fR: no dependence is costly,
10131 \&\fIall\fR: all dependences are costly,
10132 \&\fItrue_store_to_load\fR: a true dependence from store to load is costly,
10133 \&\fIstore_to_load\fR: any dependence from store to load is costly,
10134 \&\fInumber\fR: any dependence which latency >= \fInumber\fR is costly.
10135 .IP "\fB\-minsert\-sched\-nops=\fR\fIscheme\fR" 4
10136 .IX Item "-minsert-sched-nops=scheme"
10137 This option controls which nop insertion scheme will be used during
10138 the second scheduling pass.  The argument \fIscheme\fR takes one of the
10139 following values:
10140 \&\fIno\fR: Don't insert nops.
10141 \&\fIpad\fR: Pad with nops any dispatch group which has vacant issue slots,
10142 according to the scheduler's grouping.
10143 \&\fIregroup_exact\fR: Insert nops to force costly dependent insns into
10144 separate groups.  Insert exactly as many nops as needed to force an insn
10145 to a new group, according to the estimated processor grouping.
10146 \&\fInumber\fR: Insert nops to force costly dependent insns into
10147 separate groups.  Insert \fInumber\fR nops to force an insn to a new group.
10148 .IP "\fB\-mcall\-sysv\fR" 4
10149 .IX Item "-mcall-sysv"
10150 On System V.4 and embedded PowerPC systems compile code using calling
10151 conventions that adheres to the March 1995 draft of the System V
10152 Application Binary Interface, PowerPC processor supplement.  This is the
10153 default unless you configured \s-1GCC\s0 using \fBpowerpc\-*\-eabiaix\fR.
10154 .IP "\fB\-mcall\-sysv\-eabi\fR" 4
10155 .IX Item "-mcall-sysv-eabi"
10156 Specify both \fB\-mcall\-sysv\fR and \fB\-meabi\fR options.
10157 .IP "\fB\-mcall\-sysv\-noeabi\fR" 4
10158 .IX Item "-mcall-sysv-noeabi"
10159 Specify both \fB\-mcall\-sysv\fR and \fB\-mno\-eabi\fR options.
10160 .IP "\fB\-mcall\-solaris\fR" 4
10161 .IX Item "-mcall-solaris"
10162 On System V.4 and embedded PowerPC systems compile code for the Solaris
10163 operating system.
10164 .IP "\fB\-mcall\-linux\fR" 4
10165 .IX Item "-mcall-linux"
10166 On System V.4 and embedded PowerPC systems compile code for the
10167 Linux-based \s-1GNU\s0 system.
10168 .IP "\fB\-mcall\-gnu\fR" 4
10169 .IX Item "-mcall-gnu"
10170 On System V.4 and embedded PowerPC systems compile code for the
10171 Hurd-based \s-1GNU\s0 system.
10172 .IP "\fB\-mcall\-netbsd\fR" 4
10173 .IX Item "-mcall-netbsd"
10174 On System V.4 and embedded PowerPC systems compile code for the
10175 NetBSD operating system.
10176 .IP "\fB\-maix\-struct\-return\fR" 4
10177 .IX Item "-maix-struct-return"
10178 Return all structures in memory (as specified by the \s-1AIX\s0 \s-1ABI\s0).
10179 .IP "\fB\-msvr4\-struct\-return\fR" 4
10180 .IX Item "-msvr4-struct-return"
10181 Return structures smaller than 8 bytes in registers (as specified by the
10182 \&\s-1SVR4\s0 \s-1ABI\s0).
10183 .IP "\fB\-mabi=altivec\fR" 4
10184 .IX Item "-mabi=altivec"
10185 Extend the current \s-1ABI\s0 with AltiVec \s-1ABI\s0 extensions.  This does not
10186 change the default \s-1ABI\s0, instead it adds the AltiVec \s-1ABI\s0 extensions to
10187 the current \s-1ABI\s0.
10188 .IP "\fB\-mabi=no\-altivec\fR" 4
10189 .IX Item "-mabi=no-altivec"
10190 Disable AltiVec \s-1ABI\s0 extensions for the current \s-1ABI\s0.
10191 .IP "\fB\-mprototype\fR" 4
10192 .IX Item "-mprototype"
10193 .PD 0
10194 .IP "\fB\-mno\-prototype\fR" 4
10195 .IX Item "-mno-prototype"
10196 .PD
10197 On System V.4 and embedded PowerPC systems assume that all calls to
10198 variable argument functions are properly prototyped.  Otherwise, the
10199 compiler must insert an instruction before every non prototyped call to
10200 set or clear bit 6 of the condition code register (\fI\s-1CR\s0\fR) to
10201 indicate whether floating point values were passed in the floating point
10202 registers in case the function takes a variable arguments.  With
10203 \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
10204 will set or clear the bit.
10205 .IP "\fB\-msim\fR" 4
10206 .IX Item "-msim"
10207 On embedded PowerPC systems, assume that the startup module is called
10208 \&\fIsim\-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
10209 \&\fIlibc.a\fR.  This is the default for \fBpowerpc\-*\-eabisim\fR.
10210 configurations.
10211 .IP "\fB\-mmvme\fR" 4
10212 .IX Item "-mmvme"
10213 On embedded PowerPC systems, assume that the startup module is called
10214 \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
10215 \&\fIlibc.a\fR.
10216 .IP "\fB\-mads\fR" 4
10217 .IX Item "-mads"
10218 On embedded PowerPC systems, assume that the startup module is called
10219 \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
10220 \&\fIlibc.a\fR.
10221 .IP "\fB\-myellowknife\fR" 4
10222 .IX Item "-myellowknife"
10223 On embedded PowerPC systems, assume that the startup module is called
10224 \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
10225 \&\fIlibc.a\fR.
10226 .IP "\fB\-mvxworks\fR" 4
10227 .IX Item "-mvxworks"
10228 On System V.4 and embedded PowerPC systems, specify that you are
10229 compiling for a VxWorks system.
10230 .IP "\fB\-mwindiss\fR" 4
10231 .IX Item "-mwindiss"
10232 Specify that you are compiling for the WindISS simulation environment.
10233 .IP "\fB\-memb\fR" 4
10234 .IX Item "-memb"
10235 On embedded PowerPC systems, set the \fI\s-1PPC_EMB\s0\fR bit in the \s-1ELF\s0 flags
10236 header to indicate that \fBeabi\fR extended relocations are used.
10237 .IP "\fB\-meabi\fR" 4
10238 .IX Item "-meabi"
10239 .PD 0
10240 .IP "\fB\-mno\-eabi\fR" 4
10241 .IX Item "-mno-eabi"
10242 .PD
10243 On System V.4 and embedded PowerPC systems do (do not) adhere to the
10244 Embedded Applications Binary Interface (eabi) which is a set of
10245 modifications to the System V.4 specifications.  Selecting \fB\-meabi\fR
10246 means that the stack is aligned to an 8 byte boundary, a function
10247 \&\f(CW\*(C`_\|_eabi\*(C'\fR is called to from \f(CW\*(C`main\*(C'\fR to set up the eabi
10248 environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
10249 \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas.  Selecting
10250 \&\fB\-mno\-eabi\fR means that the stack is aligned to a 16 byte boundary,
10251 do not call an initialization function from \f(CW\*(C`main\*(C'\fR, and the
10252 \&\fB\-msdata\fR option will only use \f(CW\*(C`r13\*(C'\fR to point to a single
10253 small data area.  The \fB\-meabi\fR option is on by default if you
10254 configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
10255 .IP "\fB\-msdata=eabi\fR" 4
10256 .IX Item "-msdata=eabi"
10257 On System V.4 and embedded PowerPC systems, put small initialized
10258 \&\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata2\fR section, which
10259 is pointed to by register \f(CW\*(C`r2\*(C'\fR.  Put small initialized
10260 non\-\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata\fR section,
10261 which is pointed to by register \f(CW\*(C`r13\*(C'\fR.  Put small uninitialized
10262 global and static data in the \fB.sbss\fR section, which is adjacent to
10263 the \fB.sdata\fR section.  The \fB\-msdata=eabi\fR option is
10264 incompatible with the \fB\-mrelocatable\fR option.  The
10265 \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
10266 .IP "\fB\-msdata=sysv\fR" 4
10267 .IX Item "-msdata=sysv"
10268 On System V.4 and embedded PowerPC systems, put small global and static
10269 data in the \fB.sdata\fR section, which is pointed to by register
10270 \&\f(CW\*(C`r13\*(C'\fR.  Put small uninitialized global and static data in the
10271 \&\fB.sbss\fR section, which is adjacent to the \fB.sdata\fR section.
10272 The \fB\-msdata=sysv\fR option is incompatible with the
10273 \&\fB\-mrelocatable\fR option.
10274 .IP "\fB\-msdata=default\fR" 4
10275 .IX Item "-msdata=default"
10276 .PD 0
10277 .IP "\fB\-msdata\fR" 4
10278 .IX Item "-msdata"
10279 .PD
10280 On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
10281 compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
10282 same as \fB\-msdata=sysv\fR.
10283 .IP "\fB\-msdata\-data\fR" 4
10284 .IX Item "-msdata-data"
10285 On System V.4 and embedded PowerPC systems, put small global and static
10286 data in the \fB.sdata\fR section.  Put small uninitialized global and
10287 static data in the \fB.sbss\fR section.  Do not use register \f(CW\*(C`r13\*(C'\fR
10288 to address small data however.  This is the default behavior unless
10289 other \fB\-msdata\fR options are used.
10290 .IP "\fB\-msdata=none\fR" 4
10291 .IX Item "-msdata=none"
10292 .PD 0
10293 .IP "\fB\-mno\-sdata\fR" 4
10294 .IX Item "-mno-sdata"
10295 .PD
10296 On embedded PowerPC systems, put all initialized global and static data
10297 in the \fB.data\fR section, and all uninitialized data in the
10298 \&\fB.bss\fR section.
10299 .IP "\fB\-G\fR \fInum\fR" 4
10300 .IX Item "-G num"
10301 On embedded PowerPC systems, put global and static items less than or
10302 equal to \fInum\fR bytes into the small data or bss sections instead of
10303 the normal data or bss section.  By default, \fInum\fR is 8.  The
10304 \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
10305 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
10306 .IP "\fB\-mregnames\fR" 4
10307 .IX Item "-mregnames"
10308 .PD 0
10309 .IP "\fB\-mno\-regnames\fR" 4
10310 .IX Item "-mno-regnames"
10311 .PD
10312 On System V.4 and embedded PowerPC systems do (do not) emit register
10313 names in the assembly language output using symbolic forms.
10314 .IP "\fB\-mlongcall\fR" 4
10315 .IX Item "-mlongcall"
10316 .PD 0
10317 .IP "\fB\-mno\-longcall\fR" 4
10318 .IX Item "-mno-longcall"
10319 .PD
10320 Default to making all function calls indirectly, using a register, so
10321 that functions which reside further than 32 megabytes (33,554,432
10322 bytes) from the current location can be called.  This setting can be
10323 overridden by the \f(CW\*(C`shortcall\*(C'\fR function attribute, or by
10324 \&\f(CW\*(C`#pragma longcall(0)\*(C'\fR.
10325 .Sp
10326 Some linkers are capable of detecting out-of-range calls and generating
10327 glue code on the fly.  On these systems, long calls are unnecessary and
10328 generate slower code.  As of this writing, the \s-1AIX\s0 linker can do this,
10329 as can the \s-1GNU\s0 linker for PowerPC/64.  It is planned to add this feature
10330 to the \s-1GNU\s0 linker for 32\-bit PowerPC systems as well.
10331 .Sp
10332 On Darwin/PPC systems, \f(CW\*(C`#pragma longcall\*(C'\fR will generate ``jbsr
10333 callee, L42'', plus a ``branch island'' (glue code).  The two target
10334 addresses represent the callee and the ``branch island''.  The
10335 Darwin/PPC linker will prefer the first address and generate a ``bl
10336 callee'' if the \s-1PPC\s0 ``bl'' instruction will reach the callee directly;
10337 otherwise, the linker will generate ``bl L42'' to call the ``branch
10338 island''.  The ``branch island'' is appended to the body of the
10339 calling function; it computes the full 32\-bit address of the callee
10340 and jumps to it.
10341 .Sp
10342 On Mach-O (Darwin) systems, this option directs the compiler emit to
10343 the glue for every direct call, and the Darwin linker decides whether
10344 to use or discard it.
10345 .Sp
10346 In the future, we may cause \s-1GCC\s0 to ignore all longcall specifications
10347 when the linker is known to generate glue.
10348 .IP "\fB\-pthread\fR" 4
10349 .IX Item "-pthread"
10350 Adds support for multithreading with the \fIpthreads\fR library.
10351 This option sets flags for both the preprocessor and linker.
10352 .PP
10353 \fIS/390 and zSeries Options\fR
10354 .IX Subsection "S/390 and zSeries Options"
10355 .PP
10356 These are the \fB\-m\fR options defined for the S/390 and zSeries architecture.
10357 .IP "\fB\-mhard\-float\fR" 4
10358 .IX Item "-mhard-float"
10359 .PD 0
10360 .IP "\fB\-msoft\-float\fR" 4
10361 .IX Item "-msoft-float"
10362 .PD
10363 Use (do not use) the hardware floating-point instructions and registers
10364 for floating-point operations.  When \fB\-msoft\-float\fR is specified,
10365 functions in \fIlibgcc.a\fR will be used to perform floating-point
10366 operations.  When \fB\-mhard\-float\fR is specified, the compiler
10367 generates \s-1IEEE\s0 floating-point instructions.  This is the default.
10368 .IP "\fB\-mbackchain\fR" 4
10369 .IX Item "-mbackchain"
10370 .PD 0
10371 .IP "\fB\-mno\-backchain\fR" 4
10372 .IX Item "-mno-backchain"
10373 .PD
10374 Store (do not store) the address of the caller's frame as backchain pointer
10375 into the callee's stack frame.
10376 A backchain may be needed to allow debugging using tools that do not understand
10377 \&\s-1DWARF\-2\s0 call frame information.
10378 When \fB\-mno\-packed\-stack\fR is in effect, the backchain pointer is stored
10379 at the bottom of the stack frame; when \fB\-mpacked\-stack\fR is in effect,
10380 the backchain is placed into the topmost word of the 96/160 byte register
10381 save area.
10382 .Sp
10383 In general, code compiled with \fB\-mbackchain\fR is call-compatible with
10384 code compiled with \fB\-mmo\-backchain\fR; however, use of the backchain
10385 for debugging purposes usually requires that the whole binary is built with
10386 \&\fB\-mbackchain\fR.  Note that the combination of \fB\-mbackchain\fR,
10387 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
10388 to build a linux kernel use \fB\-msoft\-float\fR.
10389 .Sp
10390 The default is to not maintain the backchain.
10391 .IP "\fB\-mpacked\-stack\fR" 4
10392 .IX Item "-mpacked-stack"
10393 .PD 0
10394 .IP "\fB\-mno\-packed\-stack\fR" 4
10395 .IX Item "-mno-packed-stack"
10396 .PD
10397 Use (do not use) the packed stack layout.  When \fB\-mno\-packed\-stack\fR is
10398 specified, the compiler uses the all fields of the 96/160 byte register save
10399 area only for their default purpose; unused fields still take up stack space.
10400 When \fB\-mpacked\-stack\fR is specified, register save slots are densely
10401 packed at the top of the register save area; unused space is reused for other
10402 purposes, allowing for more efficient use of the available stack space.
10403 However, when \fB\-mbackchain\fR is also in effect, the topmost word of
10404 the save area is always used to store the backchain, and the return address
10405 register is always saved two words below the backchain.
10406 .Sp
10407 As long as the stack frame backchain is not used, code generated with
10408 \&\fB\-mpacked\-stack\fR is call-compatible with code generated with
10409 \&\fB\-mno\-packed\-stack\fR.  Note that some non-FSF releases of \s-1GCC\s0 2.95 for
10410 S/390 or zSeries generated code that uses the stack frame backchain at run
10411 time, not just for debugging purposes.  Such code is not call-compatible
10412 with code compiled with \fB\-mpacked\-stack\fR.  Also, note that the
10413 combination of \fB\-mbackchain\fR,
10414 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
10415 to build a linux kernel use \fB\-msoft\-float\fR.
10416 .Sp
10417 The default is to not use the packed stack layout.
10418 .IP "\fB\-msmall\-exec\fR" 4
10419 .IX Item "-msmall-exec"
10420 .PD 0
10421 .IP "\fB\-mno\-small\-exec\fR" 4
10422 .IX Item "-mno-small-exec"
10423 .PD
10424 Generate (or do not generate) code using the \f(CW\*(C`bras\*(C'\fR instruction
10425 to do subroutine calls.
10426 This only works reliably if the total executable size does not
10427 exceed 64k.  The default is to use the \f(CW\*(C`basr\*(C'\fR instruction instead,
10428 which does not have this limitation.
10429 .IP "\fB\-m64\fR" 4
10430 .IX Item "-m64"
10431 .PD 0
10432 .IP "\fB\-m31\fR" 4
10433 .IX Item "-m31"
10434 .PD
10435 When \fB\-m31\fR is specified, generate code compliant to the
10436 GNU/Linux for S/390 \s-1ABI\s0.  When \fB\-m64\fR is specified, generate
10437 code compliant to the GNU/Linux for zSeries \s-1ABI\s0.  This allows \s-1GCC\s0 in
10438 particular to generate 64\-bit instructions.  For the \fBs390\fR
10439 targets, the default is \fB\-m31\fR, while the \fBs390x\fR
10440 targets default to \fB\-m64\fR.
10441 .IP "\fB\-mzarch\fR" 4
10442 .IX Item "-mzarch"
10443 .PD 0
10444 .IP "\fB\-mesa\fR" 4
10445 .IX Item "-mesa"
10446 .PD
10447 When \fB\-mzarch\fR is specified, generate code using the
10448 instructions available on z/Architecture.
10449 When \fB\-mesa\fR is specified, generate code using the
10450 instructions available on \s-1ESA/390\s0.  Note that \fB\-mesa\fR is
10451 not possible with \fB\-m64\fR.
10452 When generating code compliant to the GNU/Linux for S/390 \s-1ABI\s0,
10453 the default is \fB\-mesa\fR.  When generating code compliant
10454 to the GNU/Linux for zSeries \s-1ABI\s0, the default is \fB\-mzarch\fR.
10455 .IP "\fB\-mmvcle\fR" 4
10456 .IX Item "-mmvcle"
10457 .PD 0
10458 .IP "\fB\-mno\-mvcle\fR" 4
10459 .IX Item "-mno-mvcle"
10460 .PD
10461 Generate (or do not generate) code using the \f(CW\*(C`mvcle\*(C'\fR instruction
10462 to perform block moves.  When \fB\-mno\-mvcle\fR is specified,
10463 use a \f(CW\*(C`mvc\*(C'\fR loop instead.  This is the default.
10464 .IP "\fB\-mdebug\fR" 4
10465 .IX Item "-mdebug"
10466 .PD 0
10467 .IP "\fB\-mno\-debug\fR" 4
10468 .IX Item "-mno-debug"
10469 .PD
10470 Print (or do not print) additional debug information when compiling.
10471 The default is to not print debug information.
10472 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
10473 .IX Item "-march=cpu-type"
10474 Generate code that will run on \fIcpu-type\fR, which is the name of a system
10475 representing a certain processor type.  Possible values for
10476 \&\fIcpu-type\fR are \fBg5\fR, \fBg6\fR, \fBz900\fR, and \fBz990\fR.
10477 When generating code using the instructions available on z/Architecture,
10478 the default is \fB\-march=z900\fR.  Otherwise, the default is
10479 \&\fB\-march=g5\fR.
10480 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
10481 .IX Item "-mtune=cpu-type"
10482 Tune to \fIcpu-type\fR everything applicable about the generated code,
10483 except for the \s-1ABI\s0 and the set of available instructions.
10484 The list of \fIcpu-type\fR values is the same as for \fB\-march\fR.
10485 The default is the value used for \fB\-march\fR.
10486 .IP "\fB\-mtpf\-trace\fR" 4
10487 .IX Item "-mtpf-trace"
10488 .PD 0
10489 .IP "\fB\-mno\-tpf\-trace\fR" 4
10490 .IX Item "-mno-tpf-trace"
10491 .PD
10492 Generate code that adds (does not add) in \s-1TPF\s0 \s-1OS\s0 specific branches to trace
10493 routines in the operating system.  This option is off by default, even
10494 when compiling for the \s-1TPF\s0 \s-1OS\s0.
10495 .IP "\fB\-mfused\-madd\fR" 4
10496 .IX Item "-mfused-madd"
10497 .PD 0
10498 .IP "\fB\-mno\-fused\-madd\fR" 4
10499 .IX Item "-mno-fused-madd"
10500 .PD
10501 Generate code that uses (does not use) the floating point multiply and
10502 accumulate instructions.  These instructions are generated by default if
10503 hardware floating point is used.
10504 .IP "\fB\-mwarn\-framesize=\fR\fIframesize\fR" 4
10505 .IX Item "-mwarn-framesize=framesize"
10506 Emit a warning if the current function exceeds the given frame size.  Because
10507 this is a compile time check it doesn't need to be a real problem when the program
10508 runs.  It is intended to identify functions which most probably cause
10509 a stack overflow.  It is useful to be used in an environment with limited stack
10510 size e.g. the linux kernel.
10511 .IP "\fB\-mwarn\-dynamicstack\fR" 4
10512 .IX Item "-mwarn-dynamicstack"
10513 Emit a warning if the function calls alloca or uses dynamically
10514 sized arrays.  This is generally a bad idea with a limited stack size.
10515 .IP "\fB\-mstack\-guard=\fR\fIstack-guard\fR" 4
10516 .IX Item "-mstack-guard=stack-guard"
10517 .PD 0
10518 .IP "\fB\-mstack\-size=\fR\fIstack-size\fR" 4
10519 .IX Item "-mstack-size=stack-size"
10520 .PD
10521 These arguments always have to be used in conjunction.  If they are present the s390
10522 back end emits additional instructions in the function prologue which trigger a trap
10523 if the stack size is \fIstack-guard\fR bytes above the \fIstack-size\fR
10524 (remember that the stack on s390 grows downward).  These options are intended to
10525 be used to help debugging stack overflow problems.  The additionally emitted code
10526 cause only little overhead and hence can also be used in production like systems
10527 without greater performance degradation.  The given values have to be exact
10528 powers of 2 and \fIstack-size\fR has to be greater than \fIstack-guard\fR.
10529 In order to be efficient the extra code makes the assumption that the stack starts
10530 at an address aligned to the value given by \fIstack-size\fR.
10531 .PP
10532 \fI\s-1SH\s0 Options\fR
10533 .IX Subsection "SH Options"
10534 .PP
10535 These \fB\-m\fR options are defined for the \s-1SH\s0 implementations:
10536 .IP "\fB\-m1\fR" 4
10537 .IX Item "-m1"
10538 Generate code for the \s-1SH1\s0.
10539 .IP "\fB\-m2\fR" 4
10540 .IX Item "-m2"
10541 Generate code for the \s-1SH2\s0.
10542 .IP "\fB\-m2e\fR" 4
10543 .IX Item "-m2e"
10544 Generate code for the SH2e.
10545 .IP "\fB\-m3\fR" 4
10546 .IX Item "-m3"
10547 Generate code for the \s-1SH3\s0.
10548 .IP "\fB\-m3e\fR" 4
10549 .IX Item "-m3e"
10550 Generate code for the SH3e.
10551 .IP "\fB\-m4\-nofpu\fR" 4
10552 .IX Item "-m4-nofpu"
10553 Generate code for the \s-1SH4\s0 without a floating-point unit.
10554 .IP "\fB\-m4\-single\-only\fR" 4
10555 .IX Item "-m4-single-only"
10556 Generate code for the \s-1SH4\s0 with a floating-point unit that only
10557 supports single-precision arithmetic.
10558 .IP "\fB\-m4\-single\fR" 4
10559 .IX Item "-m4-single"
10560 Generate code for the \s-1SH4\s0 assuming the floating-point unit is in
10561 single-precision mode by default.
10562 .IP "\fB\-m4\fR" 4
10563 .IX Item "-m4"
10564 Generate code for the \s-1SH4\s0.
10565 .IP "\fB\-m4a\-nofpu\fR" 4
10566 .IX Item "-m4a-nofpu"
10567 Generate code for the SH4al\-dsp, or for a SH4a in such a way that the
10568 floating-point unit is not used.
10569 .IP "\fB\-m4a\-single\-only\fR" 4
10570 .IX Item "-m4a-single-only"
10571 Generate code for the SH4a, in such a way that no double-precision
10572 floating point operations are used.
10573 .IP "\fB\-m4a\-single\fR" 4
10574 .IX Item "-m4a-single"
10575 Generate code for the SH4a assuming the floating-point unit is in
10576 single-precision mode by default.
10577 .IP "\fB\-m4a\fR" 4
10578 .IX Item "-m4a"
10579 Generate code for the SH4a.
10580 .IP "\fB\-m4al\fR" 4
10581 .IX Item "-m4al"
10582 Same as \fB\-m4a\-nofpu\fR, except that it implicitly passes
10583 \&\fB\-dsp\fR to the assembler.  \s-1GCC\s0 doesn't generate any \s-1DSP\s0
10584 instructions at the moment.
10585 .IP "\fB\-mb\fR" 4
10586 .IX Item "-mb"
10587 Compile code for the processor in big endian mode.
10588 .IP "\fB\-ml\fR" 4
10589 .IX Item "-ml"
10590 Compile code for the processor in little endian mode.
10591 .IP "\fB\-mdalign\fR" 4
10592 .IX Item "-mdalign"
10593 Align doubles at 64\-bit boundaries.  Note that this changes the calling
10594 conventions, and thus some functions from the standard C library will
10595 not work unless you recompile it first with \fB\-mdalign\fR.
10596 .IP "\fB\-mrelax\fR" 4
10597 .IX Item "-mrelax"
10598 Shorten some address references at link time, when possible; uses the
10599 linker option \fB\-relax\fR.
10600 .IP "\fB\-mbigtable\fR" 4
10601 .IX Item "-mbigtable"
10602 Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables.  The default is to use
10603 16\-bit offsets.
10604 .IP "\fB\-mfmovd\fR" 4
10605 .IX Item "-mfmovd"
10606 Enable the use of the instruction \f(CW\*(C`fmovd\*(C'\fR.
10607 .IP "\fB\-mhitachi\fR" 4
10608 .IX Item "-mhitachi"
10609 Comply with the calling conventions defined by Renesas.
10610 .IP "\fB\-mrenesas\fR" 4
10611 .IX Item "-mrenesas"
10612 Comply with the calling conventions defined by Renesas.
10613 .IP "\fB\-mno\-renesas\fR" 4
10614 .IX Item "-mno-renesas"
10615 Comply with the calling conventions defined for \s-1GCC\s0 before the Renesas
10616 conventions were available.  This option is the default for all
10617 targets of the \s-1SH\s0 toolchain except for \fBsh-symbianelf\fR.
10618 .IP "\fB\-mnomacsave\fR" 4
10619 .IX Item "-mnomacsave"
10620 Mark the \f(CW\*(C`MAC\*(C'\fR register as call\-clobbered, even if
10621 \&\fB\-mhitachi\fR is given.
10622 .IP "\fB\-mieee\fR" 4
10623 .IX Item "-mieee"
10624 Increase IEEE-compliance of floating-point code.
10625 .IP "\fB\-misize\fR" 4
10626 .IX Item "-misize"
10627 Dump instruction size and location in the assembly code.
10628 .IP "\fB\-mpadstruct\fR" 4
10629 .IX Item "-mpadstruct"
10630 This option is deprecated.  It pads structures to multiple of 4 bytes,
10631 which is incompatible with the \s-1SH\s0 \s-1ABI\s0.
10632 .IP "\fB\-mspace\fR" 4
10633 .IX Item "-mspace"
10634 Optimize for space instead of speed.  Implied by \fB\-Os\fR.
10635 .IP "\fB\-mprefergot\fR" 4
10636 .IX Item "-mprefergot"
10637 When generating position-independent code, emit function calls using
10638 the Global Offset Table instead of the Procedure Linkage Table.
10639 .IP "\fB\-musermode\fR" 4
10640 .IX Item "-musermode"
10641 Generate a library function call to invalidate instruction cache
10642 entries, after fixing up a trampoline.  This library function call
10643 doesn't assume it can write to the whole memory address space.  This
10644 is the default when the target is \f(CW\*(C`sh\-*\-linux*\*(C'\fR.
10645 .PP
10646 \fI\s-1SPARC\s0 Options\fR
10647 .IX Subsection "SPARC Options"
10648 .PP
10649 These \fB\-m\fR options are supported on the \s-1SPARC:\s0
10650 .IP "\fB\-mno\-app\-regs\fR" 4
10651 .IX Item "-mno-app-regs"
10652 .PD 0
10653 .IP "\fB\-mapp\-regs\fR" 4
10654 .IX Item "-mapp-regs"
10655 .PD
10656 Specify \fB\-mapp\-regs\fR to generate output using the global registers
10657 2 through 4, which the \s-1SPARC\s0 \s-1SVR4\s0 \s-1ABI\s0 reserves for applications.  This
10658 is the default.
10659 .Sp
10660 To be fully \s-1SVR4\s0 \s-1ABI\s0 compliant at the cost of some performance loss,
10661 specify \fB\-mno\-app\-regs\fR.  You should compile libraries and system
10662 software with this option.
10663 .IP "\fB\-mfpu\fR" 4
10664 .IX Item "-mfpu"
10665 .PD 0
10666 .IP "\fB\-mhard\-float\fR" 4
10667 .IX Item "-mhard-float"
10668 .PD
10669 Generate output containing floating point instructions.  This is the
10670 default.
10671 .IP "\fB\-mno\-fpu\fR" 4
10672 .IX Item "-mno-fpu"
10673 .PD 0
10674 .IP "\fB\-msoft\-float\fR" 4
10675 .IX Item "-msoft-float"
10676 .PD
10677 Generate output containing library calls for floating point.
10678 \&\fBWarning:\fR the requisite libraries are not available for all \s-1SPARC\s0
10679 targets.  Normally the facilities of the machine's usual C compiler are
10680 used, but this cannot be done directly in cross\-compilation.  You must make
10681 your own arrangements to provide suitable library functions for
10682 cross\-compilation.  The embedded targets \fBsparc\-*\-aout\fR and
10683 \&\fBsparclite\-*\-*\fR do provide software floating point support.
10684 .Sp
10685 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
10686 therefore, it is only useful if you compile \fIall\fR of a program with
10687 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
10688 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
10689 this to work.
10690 .IP "\fB\-mhard\-quad\-float\fR" 4
10691 .IX Item "-mhard-quad-float"
10692 Generate output containing quad-word (long double) floating point
10693 instructions.
10694 .IP "\fB\-msoft\-quad\-float\fR" 4
10695 .IX Item "-msoft-quad-float"
10696 Generate output containing library calls for quad-word (long double)
10697 floating point instructions.  The functions called are those specified
10698 in the \s-1SPARC\s0 \s-1ABI\s0.  This is the default.
10699 .Sp
10700 As of this writing, there are no \s-1SPARC\s0 implementations that have hardware
10701 support for the quad-word floating point instructions.  They all invoke
10702 a trap handler for one of these instructions, and then the trap handler
10703 emulates the effect of the instruction.  Because of the trap handler overhead,
10704 this is much slower than calling the \s-1ABI\s0 library routines.  Thus the
10705 \&\fB\-msoft\-quad\-float\fR option is the default.
10706 .IP "\fB\-mno\-unaligned\-doubles\fR" 4
10707 .IX Item "-mno-unaligned-doubles"
10708 .PD 0
10709 .IP "\fB\-munaligned\-doubles\fR" 4
10710 .IX Item "-munaligned-doubles"
10711 .PD
10712 Assume that doubles have 8 byte alignment.  This is the default.
10713 .Sp
10714 With \fB\-munaligned\-doubles\fR, \s-1GCC\s0 assumes that doubles have 8 byte
10715 alignment only if they are contained in another type, or if they have an
10716 absolute address.  Otherwise, it assumes they have 4 byte alignment.
10717 Specifying this option avoids some rare compatibility problems with code
10718 generated by other compilers.  It is not the default because it results
10719 in a performance loss, especially for floating point code.
10720 .IP "\fB\-mno\-faster\-structs\fR" 4
10721 .IX Item "-mno-faster-structs"
10722 .PD 0
10723 .IP "\fB\-mfaster\-structs\fR" 4
10724 .IX Item "-mfaster-structs"
10725 .PD
10726 With \fB\-mfaster\-structs\fR, the compiler assumes that structures
10727 should have 8 byte alignment.  This enables the use of pairs of
10728 \&\f(CW\*(C`ldd\*(C'\fR and \f(CW\*(C`std\*(C'\fR instructions for copies in structure
10729 assignment, in place of twice as many \f(CW\*(C`ld\*(C'\fR and \f(CW\*(C`st\*(C'\fR pairs.
10730 However, the use of this changed alignment directly violates the \s-1SPARC\s0
10731 \&\s-1ABI\s0.  Thus, it's intended only for use on targets where the developer
10732 acknowledges that their resulting code will not be directly in line with
10733 the rules of the \s-1ABI\s0.
10734 .IP "\fB\-mimpure\-text\fR" 4
10735 .IX Item "-mimpure-text"
10736 \&\fB\-mimpure\-text\fR, used in addition to \fB\-shared\fR, tells
10737 the compiler to not pass \fB\-z text\fR to the linker when linking a
10738 shared object.  Using this option, you can link position-dependent
10739 code into a shared object.
10740 .Sp
10741 \&\fB\-mimpure\-text\fR suppresses the ``relocations remain against
10742 allocatable but non-writable sections'' linker error message.
10743 However, the necessary relocations will trigger copy\-on\-write, and the
10744 shared object is not actually shared across processes.  Instead of
10745 using \fB\-mimpure\-text\fR, you should compile all source code with
10746 \&\fB\-fpic\fR or \fB\-fPIC\fR.
10747 .Sp
10748 This option is only available on SunOS and Solaris.
10749 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
10750 .IX Item "-mcpu=cpu_type"
10751 Set the instruction set, register set, and instruction scheduling parameters
10752 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
10753 \&\fBv7\fR, \fBcypress\fR, \fBv8\fR, \fBsupersparc\fR, \fBsparclite\fR,
10754 \&\fBf930\fR, \fBf934\fR, \fBhypersparc\fR, \fBsparclite86x\fR,
10755 \&\fBsparclet\fR, \fBtsc701\fR, \fBv9\fR, \fBultrasparc\fR, and
10756 \&\fBultrasparc3\fR.
10757 .Sp
10758 Default instruction scheduling parameters are used for values that select
10759 an architecture and not an implementation.  These are \fBv7\fR, \fBv8\fR,
10760 \&\fBsparclite\fR, \fBsparclet\fR, \fBv9\fR.
10761 .Sp
10762 Here is a list of each supported architecture and their supported
10763 implementations.
10764 .Sp
10765 .Vb 5
10766 \&            v7:             cypress
10767 \&            v8:             supersparc, hypersparc
10768 \&            sparclite:      f930, f934, sparclite86x
10769 \&            sparclet:       tsc701
10770 \&            v9:             ultrasparc, ultrasparc3
10771 .Ve
10772 .Sp
10773 By default (unless configured otherwise), \s-1GCC\s0 generates code for the V7
10774 variant of the \s-1SPARC\s0 architecture.  With \fB\-mcpu=cypress\fR, the compiler
10775 additionally optimizes it for the Cypress \s-1CY7C602\s0 chip, as used in the
10776 SPARCStation/SPARCServer 3xx series.  This is also appropriate for the older
10777 SPARCStation 1, 2, \s-1IPX\s0 etc.
10778 .Sp
10779 With \fB\-mcpu=v8\fR, \s-1GCC\s0 generates code for the V8 variant of the \s-1SPARC\s0
10780 architecture.  The only difference from V7 code is that the compiler emits
10781 the integer multiply and integer divide instructions which exist in \s-1SPARC\-V8\s0
10782 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=supersparc\fR, the compiler additionally
10783 optimizes it for the SuperSPARC chip, as used in the SPARCStation 10, 1000 and
10784 2000 series.
10785 .Sp
10786 With \fB\-mcpu=sparclite\fR, \s-1GCC\s0 generates code for the SPARClite variant of
10787 the \s-1SPARC\s0 architecture.  This adds the integer multiply, integer divide step
10788 and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClite but not in \s-1SPARC\-V7\s0.
10789 With \fB\-mcpu=f930\fR, the compiler additionally optimizes it for the
10790 Fujitsu \s-1MB86930\s0 chip, which is the original SPARClite, with no \s-1FPU\s0.  With
10791 \&\fB\-mcpu=f934\fR, the compiler additionally optimizes it for the Fujitsu
10792 \&\s-1MB86934\s0 chip, which is the more recent SPARClite with \s-1FPU\s0.
10793 .Sp
10794 With \fB\-mcpu=sparclet\fR, \s-1GCC\s0 generates code for the SPARClet variant of
10795 the \s-1SPARC\s0 architecture.  This adds the integer multiply, multiply/accumulate,
10796 integer divide step and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClet
10797 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=tsc701\fR, the compiler additionally
10798 optimizes it for the \s-1TEMIC\s0 SPARClet chip.
10799 .Sp
10800 With \fB\-mcpu=v9\fR, \s-1GCC\s0 generates code for the V9 variant of the \s-1SPARC\s0
10801 architecture.  This adds 64\-bit integer and floating-point move instructions,
10802 3 additional floating-point condition code registers and conditional move
10803 instructions.  With \fB\-mcpu=ultrasparc\fR, the compiler additionally
10804 optimizes it for the Sun UltraSPARC I/II chips.  With
10805 \&\fB\-mcpu=ultrasparc3\fR, the compiler additionally optimizes it for the
10806 Sun UltraSPARC \s-1III\s0 chip.
10807 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
10808 .IX Item "-mtune=cpu_type"
10809 Set the instruction scheduling parameters for machine type
10810 \&\fIcpu_type\fR, but do not set the instruction set or register set that the
10811 option \fB\-mcpu=\fR\fIcpu_type\fR would.
10812 .Sp
10813 The same values for \fB\-mcpu=\fR\fIcpu_type\fR can be used for
10814 \&\fB\-mtune=\fR\fIcpu_type\fR, but the only useful values are those
10815 that select a particular cpu implementation.  Those are \fBcypress\fR,
10816 \&\fBsupersparc\fR, \fBhypersparc\fR, \fBf930\fR, \fBf934\fR,
10817 \&\fBsparclite86x\fR, \fBtsc701\fR, \fBultrasparc\fR, and
10818 \&\fBultrasparc3\fR.
10819 .IP "\fB\-mv8plus\fR" 4
10820 .IX Item "-mv8plus"
10821 .PD 0
10822 .IP "\fB\-mno\-v8plus\fR" 4
10823 .IX Item "-mno-v8plus"
10824 .PD
10825 With \fB\-mv8plus\fR, \s-1GCC\s0 generates code for the \s-1SPARC\-V8+\s0 \s-1ABI\s0.  The
10826 difference from the V8 \s-1ABI\s0 is that the global and out registers are
10827 considered 64\-bit wide.  This is enabled by default on Solaris in 32\-bit
10828 mode for all \s-1SPARC\-V9\s0 processors.
10829 .IP "\fB\-mvis\fR" 4
10830 .IX Item "-mvis"
10831 .PD 0
10832 .IP "\fB\-mno\-vis\fR" 4
10833 .IX Item "-mno-vis"
10834 .PD
10835 With \fB\-mvis\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
10836 Visual Instruction Set extensions.  The default is \fB\-mno\-vis\fR.
10837 .PP
10838 These \fB\-m\fR options are supported in addition to the above
10839 on \s-1SPARC\-V9\s0 processors in 64\-bit environments:
10840 .IP "\fB\-mlittle\-endian\fR" 4
10841 .IX Item "-mlittle-endian"
10842 Generate code for a processor running in little-endian mode.  It is only
10843 available for a few configurations and most notably not on Solaris and Linux.
10844 .IP "\fB\-m32\fR" 4
10845 .IX Item "-m32"
10846 .PD 0
10847 .IP "\fB\-m64\fR" 4
10848 .IX Item "-m64"
10849 .PD
10850 Generate code for a 32\-bit or 64\-bit environment.
10851 The 32\-bit environment sets int, long and pointer to 32 bits.
10852 The 64\-bit environment sets int to 32 bits and long and pointer
10853 to 64 bits.
10854 .IP "\fB\-mcmodel=medlow\fR" 4
10855 .IX Item "-mcmodel=medlow"
10856 Generate code for the Medium/Low code model: 64\-bit addresses, programs
10857 must be linked in the low 32 bits of memory.  Programs can be statically
10858 or dynamically linked.
10859 .IP "\fB\-mcmodel=medmid\fR" 4
10860 .IX Item "-mcmodel=medmid"
10861 Generate code for the Medium/Middle code model: 64\-bit addresses, programs
10862 must be linked in the low 44 bits of memory, the text and data segments must
10863 be less than 2GB in size and the data segment must be located within 2GB of
10864 the text segment.
10865 .IP "\fB\-mcmodel=medany\fR" 4
10866 .IX Item "-mcmodel=medany"
10867 Generate code for the Medium/Anywhere code model: 64\-bit addresses, programs
10868 may be linked anywhere in memory, the text and data segments must be less
10869 than 2GB in size and the data segment must be located within 2GB of the
10870 text segment.
10871 .IP "\fB\-mcmodel=embmedany\fR" 4
10872 .IX Item "-mcmodel=embmedany"
10873 Generate code for the Medium/Anywhere code model for embedded systems:
10874 64\-bit addresses, the text and data segments must be less than 2GB in
10875 size, both starting anywhere in memory (determined at link time).  The
10876 global register \f(CW%g4\fR points to the base of the data segment.  Programs
10877 are statically linked and \s-1PIC\s0 is not supported.
10878 .IP "\fB\-mstack\-bias\fR" 4
10879 .IX Item "-mstack-bias"
10880 .PD 0
10881 .IP "\fB\-mno\-stack\-bias\fR" 4
10882 .IX Item "-mno-stack-bias"
10883 .PD
10884 With \fB\-mstack\-bias\fR, \s-1GCC\s0 assumes that the stack pointer, and
10885 frame pointer if present, are offset by \-2047 which must be added back
10886 when making stack frame references.  This is the default in 64\-bit mode.
10887 Otherwise, assume no such offset is present.
10888 .PP
10889 These switches are supported in addition to the above on Solaris:
10890 .IP "\fB\-threads\fR" 4
10891 .IX Item "-threads"
10892 Add support for multithreading using the Solaris threads library.  This
10893 option sets flags for both the preprocessor and linker.  This option does
10894 not affect the thread safety of object code produced by the compiler or
10895 that of libraries supplied with it.
10896 .IP "\fB\-pthreads\fR" 4
10897 .IX Item "-pthreads"
10898 Add support for multithreading using the \s-1POSIX\s0 threads library.  This
10899 option sets flags for both the preprocessor and linker.  This option does
10900 not affect the thread safety of object code produced  by the compiler or
10901 that of libraries supplied with it.
10902 .PP
10903 \fIOptions for System V\fR
10904 .IX Subsection "Options for System V"
10905 .PP
10906 These additional options are available on System V Release 4 for
10907 compatibility with other compilers on those systems:
10908 .IP "\fB\-G\fR" 4
10909 .IX Item "-G"
10910 Create a shared object.
10911 It is recommended that \fB\-symbolic\fR or \fB\-shared\fR be used instead.
10912 .IP "\fB\-Qy\fR" 4
10913 .IX Item "-Qy"
10914 Identify the versions of each tool used by the compiler, in a
10915 \&\f(CW\*(C`.ident\*(C'\fR assembler directive in the output.
10916 .IP "\fB\-Qn\fR" 4
10917 .IX Item "-Qn"
10918 Refrain from adding \f(CW\*(C`.ident\*(C'\fR directives to the output file (this is
10919 the default).
10920 .IP "\fB\-YP,\fR\fIdirs\fR" 4
10921 .IX Item "-YP,dirs"
10922 Search the directories \fIdirs\fR, and no others, for libraries
10923 specified with \fB\-l\fR.
10924 .IP "\fB\-Ym,\fR\fIdir\fR" 4
10925 .IX Item "-Ym,dir"
10926 Look in the directory \fIdir\fR to find the M4 preprocessor.
10927 The assembler uses this option.
10928 .PP
10929 \fITMS320C3x/C4x Options\fR
10930 .IX Subsection "TMS320C3x/C4x Options"
10931 .PP
10932 These \fB\-m\fR options are defined for TMS320C3x/C4x implementations:
10933 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
10934 .IX Item "-mcpu=cpu_type"
10935 Set the instruction set, register set, and instruction scheduling
10936 parameters for machine type \fIcpu_type\fR.  Supported values for
10937 \&\fIcpu_type\fR are \fBc30\fR, \fBc31\fR, \fBc32\fR, \fBc40\fR, and
10938 \&\fBc44\fR.  The default is \fBc40\fR to generate code for the
10939 \&\s-1TMS320C40\s0.
10940 .IP "\fB\-mbig\-memory\fR" 4
10941 .IX Item "-mbig-memory"
10942 .PD 0
10943 .IP "\fB\-mbig\fR" 4
10944 .IX Item "-mbig"
10945 .IP "\fB\-msmall\-memory\fR" 4
10946 .IX Item "-msmall-memory"
10947 .IP "\fB\-msmall\fR" 4
10948 .IX Item "-msmall"
10949 .PD
10950 Generates code for the big or small memory model.  The small memory
10951 model assumed that all data fits into one 64K word page.  At run-time
10952 the data page (\s-1DP\s0) register must be set to point to the 64K page
10953 containing the .bss and .data program sections.  The big memory model is
10954 the default and requires reloading of the \s-1DP\s0 register for every direct
10955 memory access.
10956 .IP "\fB\-mbk\fR" 4
10957 .IX Item "-mbk"
10958 .PD 0
10959 .IP "\fB\-mno\-bk\fR" 4
10960 .IX Item "-mno-bk"
10961 .PD
10962 Allow (disallow) allocation of general integer operands into the block
10963 count register \s-1BK\s0.
10964 .IP "\fB\-mdb\fR" 4
10965 .IX Item "-mdb"
10966 .PD 0
10967 .IP "\fB\-mno\-db\fR" 4
10968 .IX Item "-mno-db"
10969 .PD
10970 Enable (disable) generation of code using decrement and branch,
10971 DBcond(D), instructions.  This is enabled by default for the C4x.  To be
10972 on the safe side, this is disabled for the C3x, since the maximum
10973 iteration count on the C3x is 2^{23 + 1} (but who iterates loops more than
10974 2^{23} times on the C3x?).  Note that \s-1GCC\s0 will try to reverse a loop so
10975 that it can utilize the decrement and branch instruction, but will give
10976 up if there is more than one memory reference in the loop.  Thus a loop
10977 where the loop counter is decremented can generate slightly more
10978 efficient code, in cases where the \s-1RPTB\s0 instruction cannot be utilized.
10979 .IP "\fB\-mdp\-isr\-reload\fR" 4
10980 .IX Item "-mdp-isr-reload"
10981 .PD 0
10982 .IP "\fB\-mparanoid\fR" 4
10983 .IX Item "-mparanoid"
10984 .PD
10985 Force the \s-1DP\s0 register to be saved on entry to an interrupt service
10986 routine (\s-1ISR\s0), reloaded to point to the data section, and restored on
10987 exit from the \s-1ISR\s0.  This should not be required unless someone has
10988 violated the small memory model by modifying the \s-1DP\s0 register, say within
10989 an object library.
10990 .IP "\fB\-mmpyi\fR" 4
10991 .IX Item "-mmpyi"
10992 .PD 0
10993 .IP "\fB\-mno\-mpyi\fR" 4
10994 .IX Item "-mno-mpyi"
10995 .PD
10996 For the C3x use the 24\-bit \s-1MPYI\s0 instruction for integer multiplies
10997 instead of a library call to guarantee 32\-bit results.  Note that if one
10998 of the operands is a constant, then the multiplication will be performed
10999 using shifts and adds.  If the \fB\-mmpyi\fR option is not specified for the C3x,
11000 then squaring operations are performed inline instead of a library call.
11001 .IP "\fB\-mfast\-fix\fR" 4
11002 .IX Item "-mfast-fix"
11003 .PD 0
11004 .IP "\fB\-mno\-fast\-fix\fR" 4
11005 .IX Item "-mno-fast-fix"
11006 .PD
11007 The C3x/C4x \s-1FIX\s0 instruction to convert a floating point value to an
11008 integer value chooses the nearest integer less than or equal to the
11009 floating point value rather than to the nearest integer.  Thus if the
11010 floating point number is negative, the result will be incorrectly
11011 truncated an additional code is necessary to detect and correct this
11012 case.  This option can be used to disable generation of the additional
11013 code required to correct the result.
11014 .IP "\fB\-mrptb\fR" 4
11015 .IX Item "-mrptb"
11016 .PD 0
11017 .IP "\fB\-mno\-rptb\fR" 4
11018 .IX Item "-mno-rptb"
11019 .PD
11020 Enable (disable) generation of repeat block sequences using the \s-1RPTB\s0
11021 instruction for zero overhead looping.  The \s-1RPTB\s0 construct is only used
11022 for innermost loops that do not call functions or jump across the loop
11023 boundaries.  There is no advantage having nested \s-1RPTB\s0 loops due to the
11024 overhead required to save and restore the \s-1RC\s0, \s-1RS\s0, and \s-1RE\s0 registers.
11025 This is enabled by default with \fB\-O2\fR.
11026 .IP "\fB\-mrpts=\fR\fIcount\fR" 4
11027 .IX Item "-mrpts=count"
11028 .PD 0
11029 .IP "\fB\-mno\-rpts\fR" 4
11030 .IX Item "-mno-rpts"
11031 .PD
11032 Enable (disable) the use of the single instruction repeat instruction
11033 \&\s-1RPTS\s0.  If a repeat block contains a single instruction, and the loop
11034 count can be guaranteed to be less than the value \fIcount\fR, \s-1GCC\s0 will
11035 emit a \s-1RPTS\s0 instruction instead of a \s-1RPTB\s0.  If no value is specified,
11036 then a \s-1RPTS\s0 will be emitted even if the loop count cannot be determined
11037 at compile time.  Note that the repeated instruction following \s-1RPTS\s0 does
11038 not have to be reloaded from memory each iteration, thus freeing up the
11039 \&\s-1CPU\s0 buses for operands.  However, since interrupts are blocked by this
11040 instruction, it is disabled by default.
11041 .IP "\fB\-mloop\-unsigned\fR" 4
11042 .IX Item "-mloop-unsigned"
11043 .PD 0
11044 .IP "\fB\-mno\-loop\-unsigned\fR" 4
11045 .IX Item "-mno-loop-unsigned"
11046 .PD
11047 The maximum iteration count when using \s-1RPTS\s0 and \s-1RPTB\s0 (and \s-1DB\s0 on the C40)
11048 is 2^{31 + 1} since these instructions test if the iteration count is
11049 negative to terminate the loop.  If the iteration count is unsigned
11050 there is a possibility than the 2^{31 + 1} maximum iteration count may be
11051 exceeded.  This switch allows an unsigned iteration count.
11052 .IP "\fB\-mti\fR" 4
11053 .IX Item "-mti"
11054 Try to emit an assembler syntax that the \s-1TI\s0 assembler (asm30) is happy
11055 with.  This also enforces compatibility with the \s-1API\s0 employed by the \s-1TI\s0
11056 C3x C compiler.  For example, long doubles are passed as structures
11057 rather than in floating point registers.
11058 .IP "\fB\-mregparm\fR" 4
11059 .IX Item "-mregparm"
11060 .PD 0
11061 .IP "\fB\-mmemparm\fR" 4
11062 .IX Item "-mmemparm"
11063 .PD
11064 Generate code that uses registers (stack) for passing arguments to functions.
11065 By default, arguments are passed in registers where possible rather
11066 than by pushing arguments on to the stack.
11067 .IP "\fB\-mparallel\-insns\fR" 4
11068 .IX Item "-mparallel-insns"
11069 .PD 0
11070 .IP "\fB\-mno\-parallel\-insns\fR" 4
11071 .IX Item "-mno-parallel-insns"
11072 .PD
11073 Allow the generation of parallel instructions.  This is enabled by
11074 default with \fB\-O2\fR.
11075 .IP "\fB\-mparallel\-mpy\fR" 4
11076 .IX Item "-mparallel-mpy"
11077 .PD 0
11078 .IP "\fB\-mno\-parallel\-mpy\fR" 4
11079 .IX Item "-mno-parallel-mpy"
11080 .PD
11081 Allow the generation of MPY||ADD and MPY||SUB parallel instructions,
11082 provided \fB\-mparallel\-insns\fR is also specified.  These instructions have
11083 tight register constraints which can pessimize the code generation
11084 of large functions.
11085 .PP
11086 \fIV850 Options\fR
11087 .IX Subsection "V850 Options"
11088 .PP
11089 These \fB\-m\fR options are defined for V850 implementations:
11090 .IP "\fB\-mlong\-calls\fR" 4
11091 .IX Item "-mlong-calls"
11092 .PD 0
11093 .IP "\fB\-mno\-long\-calls\fR" 4
11094 .IX Item "-mno-long-calls"
11095 .PD
11096 Treat all calls as being far away (near).  If calls are assumed to be
11097 far away, the compiler will always load the functions address up into a
11098 register, and call indirect through the pointer.
11099 .IP "\fB\-mno\-ep\fR" 4
11100 .IX Item "-mno-ep"
11101 .PD 0
11102 .IP "\fB\-mep\fR" 4
11103 .IX Item "-mep"
11104 .PD
11105 Do not optimize (do optimize) basic blocks that use the same index
11106 pointer 4 or more times to copy pointer into the \f(CW\*(C`ep\*(C'\fR register, and
11107 use the shorter \f(CW\*(C`sld\*(C'\fR and \f(CW\*(C`sst\*(C'\fR instructions.  The \fB\-mep\fR
11108 option is on by default if you optimize.
11109 .IP "\fB\-mno\-prolog\-function\fR" 4
11110 .IX Item "-mno-prolog-function"
11111 .PD 0
11112 .IP "\fB\-mprolog\-function\fR" 4
11113 .IX Item "-mprolog-function"
11114 .PD
11115 Do not use (do use) external functions to save and restore registers
11116 at the prologue and epilogue of a function.  The external functions
11117 are slower, but use less code space if more than one function saves
11118 the same number of registers.  The \fB\-mprolog\-function\fR option
11119 is on by default if you optimize.
11120 .IP "\fB\-mspace\fR" 4
11121 .IX Item "-mspace"
11122 Try to make the code as small as possible.  At present, this just turns
11123 on the \fB\-mep\fR and \fB\-mprolog\-function\fR options.
11124 .IP "\fB\-mtda=\fR\fIn\fR" 4
11125 .IX Item "-mtda=n"
11126 Put static or global variables whose size is \fIn\fR bytes or less into
11127 the tiny data area that register \f(CW\*(C`ep\*(C'\fR points to.  The tiny data
11128 area can hold up to 256 bytes in total (128 bytes for byte references).
11129 .IP "\fB\-msda=\fR\fIn\fR" 4
11130 .IX Item "-msda=n"
11131 Put static or global variables whose size is \fIn\fR bytes or less into
11132 the small data area that register \f(CW\*(C`gp\*(C'\fR points to.  The small data
11133 area can hold up to 64 kilobytes.
11134 .IP "\fB\-mzda=\fR\fIn\fR" 4
11135 .IX Item "-mzda=n"
11136 Put static or global variables whose size is \fIn\fR bytes or less into
11137 the first 32 kilobytes of memory.
11138 .IP "\fB\-mv850\fR" 4
11139 .IX Item "-mv850"
11140 Specify that the target processor is the V850.
11141 .IP "\fB\-mbig\-switch\fR" 4
11142 .IX Item "-mbig-switch"
11143 Generate code suitable for big switch tables.  Use this option only if
11144 the assembler/linker complain about out of range branches within a switch
11145 table.
11146 .IP "\fB\-mapp\-regs\fR" 4
11147 .IX Item "-mapp-regs"
11148 This option will cause r2 and r5 to be used in the code generated by
11149 the compiler.  This setting is the default.
11150 .IP "\fB\-mno\-app\-regs\fR" 4
11151 .IX Item "-mno-app-regs"
11152 This option will cause r2 and r5 to be treated as fixed registers.
11153 .IP "\fB\-mv850e1\fR" 4
11154 .IX Item "-mv850e1"
11155 Specify that the target processor is the V850E1.  The preprocessor
11156 constants \fB_\|_v850e1_\|_\fR and \fB_\|_v850e_\|_\fR will be defined if
11157 this option is used.
11158 .IP "\fB\-mv850e\fR" 4
11159 .IX Item "-mv850e"
11160 Specify that the target processor is the V850E.  The preprocessor
11161 constant \fB_\|_v850e_\|_\fR will be defined if this option is used.
11162 .Sp
11163 If neither \fB\-mv850\fR nor \fB\-mv850e\fR nor \fB\-mv850e1\fR
11164 are defined then a default target processor will be chosen and the
11165 relevant \fB_\|_v850*_\|_\fR preprocessor constant will be defined.
11166 .Sp
11167 The preprocessor constants \fB_\|_v850\fR and \fB_\|_v851_\|_\fR are always
11168 defined, regardless of which processor variant is the target.
11169 .IP "\fB\-mdisable\-callt\fR" 4
11170 .IX Item "-mdisable-callt"
11171 This option will suppress generation of the \s-1CALLT\s0 instruction for the
11172 v850e and v850e1 flavors of the v850 architecture.  The default is
11173 \&\fB\-mno\-disable\-callt\fR which allows the \s-1CALLT\s0 instruction to be used.
11174 .PP
11175 \fI\s-1VAX\s0 Options\fR
11176 .IX Subsection "VAX Options"
11177 .PP
11178 These \fB\-m\fR options are defined for the \s-1VAX:\s0
11179 .IP "\fB\-munix\fR" 4
11180 .IX Item "-munix"
11181 Do not output certain jump instructions (\f(CW\*(C`aobleq\*(C'\fR and so on)
11182 that the Unix assembler for the \s-1VAX\s0 cannot handle across long
11183 ranges.
11184 .IP "\fB\-mgnu\fR" 4
11185 .IX Item "-mgnu"
11186 Do output those jump instructions, on the assumption that you
11187 will assemble with the \s-1GNU\s0 assembler.
11188 .IP "\fB\-mg\fR" 4
11189 .IX Item "-mg"
11190 Output code for g\-format floating point numbers instead of d\-format.
11191 .PP
11192 \fIx86\-64 Options\fR
11193 .IX Subsection "x86-64 Options"
11194 .PP
11195 These are listed under 
11196 .PP
11197 \fIXstormy16 Options\fR
11198 .IX Subsection "Xstormy16 Options"
11199 .PP
11200 These options are defined for Xstormy16:
11201 .IP "\fB\-msim\fR" 4
11202 .IX Item "-msim"
11203 Choose startup files and linker script suitable for the simulator.
11204 .PP
11205 \fIXtensa Options\fR
11206 .IX Subsection "Xtensa Options"
11207 .PP
11208 These options are supported for Xtensa targets:
11209 .IP "\fB\-mconst16\fR" 4
11210 .IX Item "-mconst16"
11211 .PD 0
11212 .IP "\fB\-mno\-const16\fR" 4
11213 .IX Item "-mno-const16"
11214 .PD
11215 Enable or disable use of \f(CW\*(C`CONST16\*(C'\fR instructions for loading
11216 constant values.  The \f(CW\*(C`CONST16\*(C'\fR instruction is currently not a
11217 standard option from Tensilica.  When enabled, \f(CW\*(C`CONST16\*(C'\fR
11218 instructions are always used in place of the standard \f(CW\*(C`L32R\*(C'\fR
11219 instructions.  The use of \f(CW\*(C`CONST16\*(C'\fR is enabled by default only if
11220 the \f(CW\*(C`L32R\*(C'\fR instruction is not available.
11221 .IP "\fB\-mfused\-madd\fR" 4
11222 .IX Item "-mfused-madd"
11223 .PD 0
11224 .IP "\fB\-mno\-fused\-madd\fR" 4
11225 .IX Item "-mno-fused-madd"
11226 .PD
11227 Enable or disable use of fused multiply/add and multiply/subtract
11228 instructions in the floating-point option.  This has no effect if the
11229 floating-point option is not also enabled.  Disabling fused multiply/add
11230 and multiply/subtract instructions forces the compiler to use separate
11231 instructions for the multiply and add/subtract operations.  This may be
11232 desirable in some cases where strict \s-1IEEE\s0 754\-compliant results are
11233 required: the fused multiply add/subtract instructions do not round the
11234 intermediate result, thereby producing results with \fImore\fR bits of
11235 precision than specified by the \s-1IEEE\s0 standard.  Disabling fused multiply
11236 add/subtract instructions also ensures that the program output is not
11237 sensitive to the compiler's ability to combine multiply and add/subtract
11238 operations.
11239 .IP "\fB\-mtext\-section\-literals\fR" 4
11240 .IX Item "-mtext-section-literals"
11241 .PD 0
11242 .IP "\fB\-mno\-text\-section\-literals\fR" 4
11243 .IX Item "-mno-text-section-literals"
11244 .PD
11245 Control the treatment of literal pools.  The default is
11246 \&\fB\-mno\-text\-section\-literals\fR, which places literals in a separate
11247 section in the output file.  This allows the literal pool to be placed
11248 in a data \s-1RAM/ROM\s0, and it also allows the linker to combine literal
11249 pools from separate object files to remove redundant literals and
11250 improve code size.  With \fB\-mtext\-section\-literals\fR, the literals
11251 are interspersed in the text section in order to keep them as close as
11252 possible to their references.  This may be necessary for large assembly
11253 files.
11254 .IP "\fB\-mtarget\-align\fR" 4
11255 .IX Item "-mtarget-align"
11256 .PD 0
11257 .IP "\fB\-mno\-target\-align\fR" 4
11258 .IX Item "-mno-target-align"
11259 .PD
11260 When this option is enabled, \s-1GCC\s0 instructs the assembler to
11261 automatically align instructions to reduce branch penalties at the
11262 expense of some code density.  The assembler attempts to widen density
11263 instructions to align branch targets and the instructions following call
11264 instructions.  If there are not enough preceding safe density
11265 instructions to align a target, no widening will be performed.  The
11266 default is \fB\-mtarget\-align\fR.  These options do not affect the
11267 treatment of auto-aligned instructions like \f(CW\*(C`LOOP\*(C'\fR, which the
11268 assembler will always align, either by widening density instructions or
11269 by inserting no-op instructions.
11270 .IP "\fB\-mlongcalls\fR" 4
11271 .IX Item "-mlongcalls"
11272 .PD 0
11273 .IP "\fB\-mno\-longcalls\fR" 4
11274 .IX Item "-mno-longcalls"
11275 .PD
11276 When this option is enabled, \s-1GCC\s0 instructs the assembler to translate
11277 direct calls to indirect calls unless it can determine that the target
11278 of a direct call is in the range allowed by the call instruction.  This
11279 translation typically occurs for calls to functions in other source
11280 files.  Specifically, the assembler translates a direct \f(CW\*(C`CALL\*(C'\fR
11281 instruction into an \f(CW\*(C`L32R\*(C'\fR followed by a \f(CW\*(C`CALLX\*(C'\fR instruction.
11282 The default is \fB\-mno\-longcalls\fR.  This option should be used in
11283 programs where the call target can potentially be out of range.  This
11284 option is implemented in the assembler, not the compiler, so the
11285 assembly code generated by \s-1GCC\s0 will still show direct call
11286 instructions\-\-\-look at the disassembled object code to see the actual
11287 instructions.  Note that the assembler will use an indirect call for
11288 every cross-file call, not just those that really will be out of range.
11289 .PP
11290 \fIzSeries Options\fR
11291 .IX Subsection "zSeries Options"
11292 .PP
11293 These are listed under 
11294 .Sh "Options for Code Generation Conventions"
11295 .IX Subsection "Options for Code Generation Conventions"
11296 These machine-independent options control the interface conventions
11297 used in code generation.
11298 .PP
11299 Most of them have both positive and negative forms; the negative form
11300 of \fB\-ffoo\fR would be \fB\-fno\-foo\fR.  In the table below, only
11301 one of the forms is listed\-\-\-the one which is not the default.  You
11302 can figure out the other form by either removing \fBno\-\fR or adding
11303 it.
11304 .IP "\fB\-fbounds\-check\fR" 4
11305 .IX Item "-fbounds-check"
11306 For front-ends that support it, generate additional code to check that
11307 indices used to access arrays are within the declared range.  This is
11308 currently only supported by the Java and Fortran 77 front\-ends, where
11309 this option defaults to true and false respectively.
11310 .IP "\fB\-ftrapv\fR" 4
11311 .IX Item "-ftrapv"
11312 This option generates traps for signed overflow on addition, subtraction,
11313 multiplication operations.
11314 .IP "\fB\-fwrapv\fR" 4
11315 .IX Item "-fwrapv"
11316 This option instructs the compiler to assume that signed arithmetic
11317 overflow of addition, subtraction and multiplication wraps around
11318 using twos-complement representation.  This flag enables some optimizations
11319 and disables other.  This option is enabled by default for the Java
11320 front\-end, as required by the Java language specification.
11321 .IP "\fB\-fexceptions\fR" 4
11322 .IX Item "-fexceptions"
11323 Enable exception handling.  Generates extra code needed to propagate
11324 exceptions.  For some targets, this implies \s-1GCC\s0 will generate frame
11325 unwind information for all functions, which can produce significant data
11326 size overhead, although it does not affect execution.  If you do not
11327 specify this option, \s-1GCC\s0 will enable it by default for languages like
11328 \&\*(C+ which normally require exception handling, and disable it for
11329 languages like C that do not normally require it.  However, you may need
11330 to enable this option when compiling C code that needs to interoperate
11331 properly with exception handlers written in \*(C+.  You may also wish to
11332 disable this option if you are compiling older \*(C+ programs that don't
11333 use exception handling.
11334 .IP "\fB\-fnon\-call\-exceptions\fR" 4
11335 .IX Item "-fnon-call-exceptions"
11336 Generate code that allows trapping instructions to throw exceptions.
11337 Note that this requires platform-specific runtime support that does
11338 not exist everywhere.  Moreover, it only allows \fItrapping\fR
11339 instructions to throw exceptions, i.e. memory references or floating
11340 point instructions.  It does not allow exceptions to be thrown from
11341 arbitrary signal handlers such as \f(CW\*(C`SIGALRM\*(C'\fR.
11342 .IP "\fB\-funwind\-tables\fR" 4
11343 .IX Item "-funwind-tables"
11344 Similar to \fB\-fexceptions\fR, except that it will just generate any needed
11345 static data, but will not affect the generated code in any other way.
11346 You will normally not enable this option; instead, a language processor
11347 that needs this handling would enable it on your behalf.
11348 .IP "\fB\-fasynchronous\-unwind\-tables\fR" 4
11349 .IX Item "-fasynchronous-unwind-tables"
11350 Generate unwind table in dwarf2 format, if supported by target machine.  The
11351 table is exact at each instruction boundary, so it can be used for stack
11352 unwinding from asynchronous events (such as debugger or garbage collector).
11353 .IP "\fB\-fpcc\-struct\-return\fR" 4
11354 .IX Item "-fpcc-struct-return"
11355 Return ``short'' \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in memory like
11356 longer ones, rather than in registers.  This convention is less
11357 efficient, but it has the advantage of allowing intercallability between
11358 GCC-compiled files and files compiled with other compilers, particularly
11359 the Portable C Compiler (pcc).
11360 .Sp
11361 The precise convention for returning structures in memory depends
11362 on the target configuration macros.
11363 .Sp
11364 Short structures and unions are those whose size and alignment match
11365 that of some integer type.
11366 .Sp
11367 \&\fBWarning:\fR code compiled with the \fB\-fpcc\-struct\-return\fR
11368 switch is not binary compatible with code compiled with the
11369 \&\fB\-freg\-struct\-return\fR switch.
11370 Use it to conform to a non-default application binary interface.
11371 .IP "\fB\-freg\-struct\-return\fR" 4
11372 .IX Item "-freg-struct-return"
11373 Return \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in registers when possible.
11374 This is more efficient for small structures than
11375 \&\fB\-fpcc\-struct\-return\fR.
11376 .Sp
11377 If you specify neither \fB\-fpcc\-struct\-return\fR nor
11378 \&\fB\-freg\-struct\-return\fR, \s-1GCC\s0 defaults to whichever convention is
11379 standard for the target.  If there is no standard convention, \s-1GCC\s0
11380 defaults to \fB\-fpcc\-struct\-return\fR, except on targets where \s-1GCC\s0 is
11381 the principal compiler.  In those cases, we can choose the standard, and
11382 we chose the more efficient register return alternative.
11383 .Sp
11384 \&\fBWarning:\fR code compiled with the \fB\-freg\-struct\-return\fR
11385 switch is not binary compatible with code compiled with the
11386 \&\fB\-fpcc\-struct\-return\fR switch.
11387 Use it to conform to a non-default application binary interface.
11388 .IP "\fB\-fshort\-enums\fR" 4
11389 .IX Item "-fshort-enums"
11390 Allocate to an \f(CW\*(C`enum\*(C'\fR type only as many bytes as it needs for the
11391 declared range of possible values.  Specifically, the \f(CW\*(C`enum\*(C'\fR type
11392 will be equivalent to the smallest integer type which has enough room.
11393 .Sp
11394 \&\fBWarning:\fR the \fB\-fshort\-enums\fR switch causes \s-1GCC\s0 to generate
11395 code that is not binary compatible with code generated without that switch.
11396 Use it to conform to a non-default application binary interface.
11397 .IP "\fB\-fshort\-double\fR" 4
11398 .IX Item "-fshort-double"
11399 Use the same size for \f(CW\*(C`double\*(C'\fR as for \f(CW\*(C`float\*(C'\fR.
11400 .Sp
11401 \&\fBWarning:\fR the \fB\-fshort\-double\fR switch causes \s-1GCC\s0 to generate
11402 code that is not binary compatible with code generated without that switch.
11403 Use it to conform to a non-default application binary interface.
11404 .IP "\fB\-fshort\-wchar\fR" 4
11405 .IX Item "-fshort-wchar"
11406 Override the underlying type for \fBwchar_t\fR to be \fBshort
11407 unsigned int\fR instead of the default for the target.  This option is
11408 useful for building programs to run under \s-1WINE\s0.
11409 .Sp
11410 \&\fBWarning:\fR the \fB\-fshort\-wchar\fR switch causes \s-1GCC\s0 to generate
11411 code that is not binary compatible with code generated without that switch.
11412 Use it to conform to a non-default application binary interface.
11413 .IP "\fB\-fshared\-data\fR" 4
11414 .IX Item "-fshared-data"
11415 Requests that the data and non\-\f(CW\*(C`const\*(C'\fR variables of this
11416 compilation be shared data rather than private data.  The distinction
11417 makes sense only on certain operating systems, where shared data is
11418 shared between processes running the same program, while private data
11419 exists in one copy per process.
11420 .IP "\fB\-fno\-common\fR" 4
11421 .IX Item "-fno-common"
11422 In C, allocate even uninitialized global variables in the data section of the
11423 object file, rather than generating them as common blocks.  This has the
11424 effect that if the same variable is declared (without \f(CW\*(C`extern\*(C'\fR) in
11425 two different compilations, you will get an error when you link them.
11426 The only reason this might be useful is if you wish to verify that the
11427 program will work on other systems which always work this way.
11428 .IP "\fB\-fno\-ident\fR" 4
11429 .IX Item "-fno-ident"
11430 Ignore the \fB#ident\fR directive.
11431 .IP "\fB\-finhibit\-size\-directive\fR" 4
11432 .IX Item "-finhibit-size-directive"
11433 Don't output a \f(CW\*(C`.size\*(C'\fR assembler directive, or anything else that
11434 would cause trouble if the function is split in the middle, and the
11435 two halves are placed at locations far apart in memory.  This option is
11436 used when compiling \fIcrtstuff.c\fR; you should not need to use it
11437 for anything else.
11438 .IP "\fB\-fverbose\-asm\fR" 4
11439 .IX Item "-fverbose-asm"
11440 Put extra commentary information in the generated assembly code to
11441 make it more readable.  This option is generally only of use to those
11442 who actually need to read the generated assembly code (perhaps while
11443 debugging the compiler itself).
11444 .Sp
11445 \&\fB\-fno\-verbose\-asm\fR, the default, causes the
11446 extra information to be omitted and is useful when comparing two assembler
11447 files.
11448 .IP "\fB\-fpic\fR" 4
11449 .IX Item "-fpic"
11450 Generate position-independent code (\s-1PIC\s0) suitable for use in a shared
11451 library, if supported for the target machine.  Such code accesses all
11452 constant addresses through a global offset table (\s-1GOT\s0).  The dynamic
11453 loader resolves the \s-1GOT\s0 entries when the program starts (the dynamic
11454 loader is not part of \s-1GCC\s0; it is part of the operating system).  If
11455 the \s-1GOT\s0 size for the linked executable exceeds a machine-specific
11456 maximum size, you get an error message from the linker indicating that
11457 \&\fB\-fpic\fR does not work; in that case, recompile with \fB\-fPIC\fR
11458 instead.  (These maximums are 8k on the \s-1SPARC\s0 and 32k
11459 on the m68k and \s-1RS/6000\s0.  The 386 has no such limit.)
11460 .Sp
11461 Position-independent code requires special support, and therefore works
11462 only on certain machines.  For the 386, \s-1GCC\s0 supports \s-1PIC\s0 for System V
11463 but not for the Sun 386i.  Code generated for the \s-1IBM\s0 \s-1RS/6000\s0 is always
11464 position\-independent.
11465 .IP "\fB\-fPIC\fR" 4
11466 .IX Item "-fPIC"
11467 If supported for the target machine, emit position-independent code,
11468 suitable for dynamic linking and avoiding any limit on the size of the
11469 global offset table.  This option makes a difference on the m68k,
11470 PowerPC and \s-1SPARC\s0.
11471 .Sp
11472 Position-independent code requires special support, and therefore works
11473 only on certain machines.
11474 .IP "\fB\-fpie\fR" 4
11475 .IX Item "-fpie"
11476 .PD 0
11477 .IP "\fB\-fPIE\fR" 4
11478 .IX Item "-fPIE"
11479 .PD
11480 These options are similar to \fB\-fpic\fR and \fB\-fPIC\fR, but
11481 generated position independent code can be only linked into executables.
11482 Usually these options are used when \fB\-pie\fR \s-1GCC\s0 option will be
11483 used during linking.
11484 .IP "\fB\-ffixed\-\fR\fIreg\fR" 4
11485 .IX Item "-ffixed-reg"
11486 Treat the register named \fIreg\fR as a fixed register; generated code
11487 should never refer to it (except perhaps as a stack pointer, frame
11488 pointer or in some other fixed role).
11489 .Sp
11490 \&\fIreg\fR must be the name of a register.  The register names accepted
11491 are machine-specific and are defined in the \f(CW\*(C`REGISTER_NAMES\*(C'\fR
11492 macro in the machine description macro file.
11493 .Sp
11494 This flag does not have a negative form, because it specifies a
11495 three-way choice.
11496 .IP "\fB\-fcall\-used\-\fR\fIreg\fR" 4
11497 .IX Item "-fcall-used-reg"
11498 Treat the register named \fIreg\fR as an allocable register that is
11499 clobbered by function calls.  It may be allocated for temporaries or
11500 variables that do not live across a call.  Functions compiled this way
11501 will not save and restore the register \fIreg\fR.
11502 .Sp
11503 It is an error to used this flag with the frame pointer or stack pointer.
11504 Use of this flag for other registers that have fixed pervasive roles in
11505 the machine's execution model will produce disastrous results.
11506 .Sp
11507 This flag does not have a negative form, because it specifies a
11508 three-way choice.
11509 .IP "\fB\-fcall\-saved\-\fR\fIreg\fR" 4
11510 .IX Item "-fcall-saved-reg"
11511 Treat the register named \fIreg\fR as an allocable register saved by
11512 functions.  It may be allocated even for temporaries or variables that
11513 live across a call.  Functions compiled this way will save and restore
11514 the register \fIreg\fR if they use it.
11515 .Sp
11516 It is an error to used this flag with the frame pointer or stack pointer.
11517 Use of this flag for other registers that have fixed pervasive roles in
11518 the machine's execution model will produce disastrous results.
11519 .Sp
11520 A different sort of disaster will result from the use of this flag for
11521 a register in which function values may be returned.
11522 .Sp
11523 This flag does not have a negative form, because it specifies a
11524 three-way choice.
11525 .IP "\fB\-fpack\-struct[=\fR\fIn\fR\fB]\fR" 4
11526 .IX Item "-fpack-struct[=n]"
11527 Without a value specified, pack all structure members together without
11528 holes.  When a value is specified (which must be a small power of two), pack
11529 structure members according to this value, representing the maximum
11530 alignment (that is, objects with default alignment requirements larger than
11531 this will be output potentially unaligned at the next fitting location.
11532 .Sp
11533 \&\fBWarning:\fR the \fB\-fpack\-struct\fR switch causes \s-1GCC\s0 to generate
11534 code that is not binary compatible with code generated without that switch.
11535 Additionally, it makes the code suboptimal.
11536 Use it to conform to a non-default application binary interface.
11537 .IP "\fB\-finstrument\-functions\fR" 4
11538 .IX Item "-finstrument-functions"
11539 Generate instrumentation calls for entry and exit to functions.  Just
11540 after function entry and just before function exit, the following
11541 profiling functions will be called with the address of the current
11542 function and its call site.  (On some platforms,
11543 \&\f(CW\*(C`_\|_builtin_return_address\*(C'\fR does not work beyond the current
11544 function, so the call site information may not be available to the
11545 profiling functions otherwise.)
11546 .Sp
11547 .Vb 4
11548 \&        void __cyg_profile_func_enter (void *this_fn,
11549 \&                                       void *call_site);
11550 \&        void __cyg_profile_func_exit  (void *this_fn,
11551 \&                                       void *call_site);
11552 .Ve
11553 .Sp
11554 The first argument is the address of the start of the current function,
11555 which may be looked up exactly in the symbol table.
11556 .Sp
11557 This instrumentation is also done for functions expanded inline in other
11558 functions.  The profiling calls will indicate where, conceptually, the
11559 inline function is entered and exited.  This means that addressable
11560 versions of such functions must be available.  If all your uses of a
11561 function are expanded inline, this may mean an additional expansion of
11562 code size.  If you use \fBextern inline\fR in your C code, an
11563 addressable version of such functions must be provided.  (This is
11564 normally the case anyways, but if you get lucky and the optimizer always
11565 expands the functions inline, you might have gotten away without
11566 providing static copies.)
11567 .Sp
11568 A function may be given the attribute \f(CW\*(C`no_instrument_function\*(C'\fR, in
11569 which case this instrumentation will not be done.  This can be used, for
11570 example, for the profiling functions listed above, high-priority
11571 interrupt routines, and any functions from which the profiling functions
11572 cannot safely be called (perhaps signal handlers, if the profiling
11573 routines generate output or allocate memory).
11574 .IP "\fB\-fstack\-check\fR" 4
11575 .IX Item "-fstack-check"
11576 Generate code to verify that you do not go beyond the boundary of the
11577 stack.  You should specify this flag if you are running in an
11578 environment with multiple threads, but only rarely need to specify it in
11579 a single-threaded environment since stack overflow is automatically
11580 detected on nearly all systems if there is only one stack.
11581 .Sp
11582 Note that this switch does not actually cause checking to be done; the
11583 operating system must do that.  The switch causes generation of code
11584 to ensure that the operating system sees the stack being extended.
11585 .IP "\fB\-fstack\-limit\-register=\fR\fIreg\fR" 4
11586 .IX Item "-fstack-limit-register=reg"
11587 .PD 0
11588 .IP "\fB\-fstack\-limit\-symbol=\fR\fIsym\fR" 4
11589 .IX Item "-fstack-limit-symbol=sym"
11590 .IP "\fB\-fno\-stack\-limit\fR" 4
11591 .IX Item "-fno-stack-limit"
11592 .PD
11593 Generate code to ensure that the stack does not grow beyond a certain value,
11594 either the value of a register or the address of a symbol.  If the stack
11595 would grow beyond the value, a signal is raised.  For most targets,
11596 the signal is raised before the stack overruns the boundary, so
11597 it is possible to catch the signal without taking special precautions.
11598 .Sp
11599 For instance, if the stack starts at absolute address \fB0x80000000\fR
11600 and grows downwards, you can use the flags
11601 \&\fB\-fstack\-limit\-symbol=_\|_stack_limit\fR and
11602 \&\fB\-Wl,\-\-defsym,_\|_stack_limit=0x7ffe0000\fR to enforce a stack limit
11603 of 128KB.  Note that this may only work with the \s-1GNU\s0 linker.
11604 .IP "\fB\-fargument\-alias\fR" 4
11605 .IX Item "-fargument-alias"
11606 .PD 0
11607 .IP "\fB\-fargument\-noalias\fR" 4
11608 .IX Item "-fargument-noalias"
11609 .IP "\fB\-fargument\-noalias\-global\fR" 4
11610 .IX Item "-fargument-noalias-global"
11611 .PD
11612 Specify the possible relationships among parameters and between
11613 parameters and global data.
11614 .Sp
11615 \&\fB\-fargument\-alias\fR specifies that arguments (parameters) may
11616 alias each other and may alias global storage.\fB\-fargument\-noalias\fR specifies that arguments do not alias
11617 each other, but may alias global storage.\fB\-fargument\-noalias\-global\fR specifies that arguments do not
11618 alias each other and do not alias global storage.
11619 .Sp
11620 Each language will automatically use whatever option is required by
11621 the language standard.  You should not need to use these options yourself.
11622 .IP "\fB\-fleading\-underscore\fR" 4
11623 .IX Item "-fleading-underscore"
11624 This option and its counterpart, \fB\-fno\-leading\-underscore\fR, forcibly
11625 change the way C symbols are represented in the object file.  One use
11626 is to help link with legacy assembly code.
11627 .Sp
11628 \&\fBWarning:\fR the \fB\-fleading\-underscore\fR switch causes \s-1GCC\s0 to
11629 generate code that is not binary compatible with code generated without that
11630 switch.  Use it to conform to a non-default application binary interface.
11631 Not all targets provide complete support for this switch.
11632 .IP "\fB\-ftls\-model=\fR\fImodel\fR" 4
11633 .IX Item "-ftls-model=model"
11634 Alter the thread-local storage model to be used.
11635 The \fImodel\fR argument should be one of \f(CW\*(C`global\-dynamic\*(C'\fR,
11636 \&\f(CW\*(C`local\-dynamic\*(C'\fR, \f(CW\*(C`initial\-exec\*(C'\fR or \f(CW\*(C`local\-exec\*(C'\fR.
11637 .Sp
11638 The default without \fB\-fpic\fR is \f(CW\*(C`initial\-exec\*(C'\fR; with
11639 \&\fB\-fpic\fR the default is \f(CW\*(C`global\-dynamic\*(C'\fR.
11640 .IP "\fB\-fvisibility=\fR\fIdefault|internal|hidden|protected\fR" 4
11641 .IX Item "-fvisibility=default|internal|hidden|protected"
11642 Set the default \s-1ELF\s0 image symbol visibility to the specified option\-\-\-all
11643 symbols will be marked with this unless overridden within the code.
11644 Using this feature can very substantially improve linking and
11645 load times of shared object libraries, produce more optimized
11646 code, provide near-perfect \s-1API\s0 export and prevent symbol clashes.
11647 It is \fBstrongly\fR recommended that you use this in any shared objects
11648 you distribute.
11649 .Sp
11650 Despite the nomenclature, \f(CW\*(C`default\*(C'\fR always means public ie;
11651 available to be linked against from outside the shared object.
11652 \&\f(CW\*(C`protected\*(C'\fR and \f(CW\*(C`internal\*(C'\fR are pretty useless in real-world
11653 usage so the only other commonly used option will be \f(CW\*(C`hidden\*(C'\fR.
11654 The default if \fB\-fvisibility\fR isn't specified is
11655 \&\f(CW\*(C`default\*(C'\fR, i.e., make every
11656 symbol public\-\-\-this causes the same behavior as previous versions of
11657 \&\s-1GCC\s0.
11658 .Sp
11659 A good explanation of the benefits offered by ensuring \s-1ELF\s0
11660 symbols have the correct visibility is given by ``How To Write
11661 Shared Libraries'' by Ulrich Drepper (which can be found at
11662 <\fBhttp://people.redhat.com/~drepper/\fR>)\-\-\-however a superior
11663 solution made possible by this option to marking things hidden when
11664 the default is public is to make the default hidden and mark things
11665 public.  This is the norm with \s-1DLL\s0's on Windows and with \fB\-fvisibility=hidden\fR
11666 and \f(CW\*(C`_\|_attribute_\|_ ((visibility("default")))\*(C'\fR instead of
11667 \&\f(CW\*(C`_\|_declspec(dllexport)\*(C'\fR you get almost identical semantics with
11668 identical syntax.  This is a great boon to those working with
11669 cross-platform projects.
11670 .Sp
11671 For those adding visibility support to existing code, you may find
11672 \&\fB#pragma \s-1GCC\s0 visibility\fR of use.  This works by you enclosing
11673 the declarations you wish to set visibility for with (for example)
11674 \&\fB#pragma \s-1GCC\s0 visibility push(hidden)\fR and
11675 \&\fB#pragma \s-1GCC\s0 visibility pop\fR.  These can be nested up to sixteen
11676 times.  Bear in mind that symbol visibility should be viewed \fBas
11677 part of the \s-1API\s0 interface contract\fR and thus all new code should
11678 always specify visibility when it is not the default ie; declarations
11679 only for use within the local \s-1DSO\s0 should \fBalways\fR be marked explicitly
11680 as hidden as so to avoid \s-1PLT\s0 indirection overheads\-\-\-making this
11681 abundantly clear also aids readability and self-documentation of the code.
11682 Note that due to \s-1ISO\s0 \*(C+ specification requirements, operator new and
11683 operator delete must always be of default visibility.
11684 .Sp
11685 An overview of these techniques, their benefits and how to use them
11686 is at <\fBhttp://www.nedprod.com/programs/gccvisibility.html\fR>.
11687 .SH "ENVIRONMENT"
11688 .IX Header "ENVIRONMENT"
11689 This section describes several environment variables that affect how \s-1GCC\s0
11690 operates.  Some of them work by specifying directories or prefixes to use
11691 when searching for various kinds of files.  Some are used to specify other
11692 aspects of the compilation environment.
11693 .PP
11694 Note that you can also specify places to search using options such as
11695 \&\fB\-B\fR, \fB\-I\fR and \fB\-L\fR.  These
11696 take precedence over places specified using environment variables, which
11697 in turn take precedence over those specified by the configuration of \s-1GCC\s0.
11698 .IP "\fB\s-1LANG\s0\fR" 4
11699 .IX Item "LANG"
11700 .PD 0
11701 .IP "\fB\s-1LC_CTYPE\s0\fR" 4
11702 .IX Item "LC_CTYPE"
11703 .IP "\fB\s-1LC_MESSAGES\s0\fR" 4
11704 .IX Item "LC_MESSAGES"
11705 .IP "\fB\s-1LC_ALL\s0\fR" 4
11706 .IX Item "LC_ALL"
11707 .PD
11708 These environment variables control the way that \s-1GCC\s0 uses
11709 localization information that allow \s-1GCC\s0 to work with different
11710 national conventions.  \s-1GCC\s0 inspects the locale categories
11711 \&\fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR if it has been configured to do
11712 so.  These locale categories can be set to any value supported by your
11713 installation.  A typical value is \fBen_GB.UTF\-8\fR for English in the United
11714 Kingdom encoded in \s-1UTF\-8\s0.
11715 .Sp
11716 The \fB\s-1LC_CTYPE\s0\fR environment variable specifies character
11717 classification.  \s-1GCC\s0 uses it to determine the character boundaries in
11718 a string; this is needed for some multibyte encodings that contain quote
11719 and escape characters that would otherwise be interpreted as a string
11720 end or escape.
11721 .Sp
11722 The \fB\s-1LC_MESSAGES\s0\fR environment variable specifies the language to
11723 use in diagnostic messages.
11724 .Sp
11725 If the \fB\s-1LC_ALL\s0\fR environment variable is set, it overrides the value
11726 of \fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR; otherwise, \fB\s-1LC_CTYPE\s0\fR
11727 and \fB\s-1LC_MESSAGES\s0\fR default to the value of the \fB\s-1LANG\s0\fR
11728 environment variable.  If none of these variables are set, \s-1GCC\s0
11729 defaults to traditional C English behavior.
11730 .IP "\fB\s-1TMPDIR\s0\fR" 4
11731 .IX Item "TMPDIR"
11732 If \fB\s-1TMPDIR\s0\fR is set, it specifies the directory to use for temporary
11733 files.  \s-1GCC\s0 uses temporary files to hold the output of one stage of
11734 compilation which is to be used as input to the next stage: for example,
11735 the output of the preprocessor, which is the input to the compiler
11736 proper.
11737 .IP "\fB\s-1GCC_EXEC_PREFIX\s0\fR" 4
11738 .IX Item "GCC_EXEC_PREFIX"
11739 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is set, it specifies a prefix to use in the
11740 names of the subprograms executed by the compiler.  No slash is added
11741 when this prefix is combined with the name of a subprogram, but you can
11742 specify a prefix that ends with a slash if you wish.
11743 .Sp
11744 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is not set, \s-1GCC\s0 will attempt to figure out
11745 an appropriate prefix to use based on the pathname it was invoked with.
11746 .Sp
11747 If \s-1GCC\s0 cannot find the subprogram using the specified prefix, it
11748 tries looking in the usual places for the subprogram.
11749 .Sp
11750 The default value of \fB\s-1GCC_EXEC_PREFIX\s0\fR is
11751 \&\fI\fIprefix\fI/lib/gcc/\fR where \fIprefix\fR is the value
11752 of \f(CW\*(C`prefix\*(C'\fR when you ran the \fIconfigure\fR script.
11753 .Sp
11754 Other prefixes specified with \fB\-B\fR take precedence over this prefix.
11755 .Sp
11756 This prefix is also used for finding files such as \fIcrt0.o\fR that are
11757 used for linking.
11758 .Sp
11759 In addition, the prefix is used in an unusual way in finding the
11760 directories to search for header files.  For each of the standard
11761 directories whose name normally begins with \fB/usr/local/lib/gcc\fR
11762 (more precisely, with the value of \fB\s-1GCC_INCLUDE_DIR\s0\fR), \s-1GCC\s0 tries
11763 replacing that beginning with the specified prefix to produce an
11764 alternate directory name.  Thus, with \fB\-Bfoo/\fR, \s-1GCC\s0 will search
11765 \&\fIfoo/bar\fR where it would normally search \fI/usr/local/lib/bar\fR.
11766 These alternate directories are searched first; the standard directories
11767 come next.
11768 .IP "\fB\s-1COMPILER_PATH\s0\fR" 4
11769 .IX Item "COMPILER_PATH"
11770 The value of \fB\s-1COMPILER_PATH\s0\fR is a colon-separated list of
11771 directories, much like \fB\s-1PATH\s0\fR.  \s-1GCC\s0 tries the directories thus
11772 specified when searching for subprograms, if it can't find the
11773 subprograms using \fB\s-1GCC_EXEC_PREFIX\s0\fR.
11774 .IP "\fB\s-1LIBRARY_PATH\s0\fR" 4
11775 .IX Item "LIBRARY_PATH"
11776 The value of \fB\s-1LIBRARY_PATH\s0\fR is a colon-separated list of
11777 directories, much like \fB\s-1PATH\s0\fR.  When configured as a native compiler,
11778 \&\s-1GCC\s0 tries the directories thus specified when searching for special
11779 linker files, if it can't find them using \fB\s-1GCC_EXEC_PREFIX\s0\fR.  Linking
11780 using \s-1GCC\s0 also uses these directories when searching for ordinary
11781 libraries for the \fB\-l\fR option (but directories specified with
11782 \&\fB\-L\fR come first).
11783 .IP "\fB\s-1LANG\s0\fR" 4
11784 .IX Item "LANG"
11785 This variable is used to pass locale information to the compiler.  One way in
11786 which this information is used is to determine the character set to be used
11787 when character literals, string literals and comments are parsed in C and \*(C+.
11788 When the compiler is configured to allow multibyte characters,
11789 the following values for \fB\s-1LANG\s0\fR are recognized:
11790 .RS 4
11791 .IP "\fBC\-JIS\fR" 4
11792 .IX Item "C-JIS"
11793 Recognize \s-1JIS\s0 characters.
11794 .IP "\fBC\-SJIS\fR" 4
11795 .IX Item "C-SJIS"
11796 Recognize \s-1SJIS\s0 characters.
11797 .IP "\fBC\-EUCJP\fR" 4
11798 .IX Item "C-EUCJP"
11799 Recognize \s-1EUCJP\s0 characters.
11800 .RE
11801 .RS 4
11802 .Sp
11803 If \fB\s-1LANG\s0\fR is not defined, or if it has some other value, then the
11804 compiler will use mblen and mbtowc as defined by the default locale to
11805 recognize and translate multibyte characters.
11806 .RE
11807 .PP
11808 Some additional environments variables affect the behavior of the
11809 preprocessor.
11810 .IP "\fB\s-1CPATH\s0\fR" 4
11811 .IX Item "CPATH"
11812 .PD 0
11813 .IP "\fBC_INCLUDE_PATH\fR" 4
11814 .IX Item "C_INCLUDE_PATH"
11815 .IP "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4
11816 .IX Item "CPLUS_INCLUDE_PATH"
11817 .IP "\fB\s-1OBJC_INCLUDE_PATH\s0\fR" 4
11818 .IX Item "OBJC_INCLUDE_PATH"
11819 .PD
11820 Each variable's value is a list of directories separated by a special
11821 character, much like \fB\s-1PATH\s0\fR, in which to look for header files.
11822 The special character, \f(CW\*(C`PATH_SEPARATOR\*(C'\fR, is target-dependent and
11823 determined at \s-1GCC\s0 build time.  For Microsoft Windows-based targets it is a
11824 semicolon, and for almost all other targets it is a colon.
11825 .Sp
11826 \&\fB\s-1CPATH\s0\fR specifies a list of directories to be searched as if
11827 specified with \fB\-I\fR, but after any paths given with \fB\-I\fR
11828 options on the command line.  This environment variable is used
11829 regardless of which language is being preprocessed.
11830 .Sp
11831 The remaining environment variables apply only when preprocessing the
11832 particular language indicated.  Each specifies a list of directories
11833 to be searched as if specified with \fB\-isystem\fR, but after any
11834 paths given with \fB\-isystem\fR options on the command line.
11835 .Sp
11836 In all these variables, an empty element instructs the compiler to
11837 search its current working directory.  Empty elements can appear at the
11838 beginning or end of a path.  For instance, if the value of
11839 \&\fB\s-1CPATH\s0\fR is \f(CW\*(C`:/special/include\*(C'\fR, that has the same
11840 effect as \fB\-I.\ \-I/special/include\fR.
11841 .IP "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4
11842 .IX Item "DEPENDENCIES_OUTPUT"
11843 If this variable is set, its value specifies how to output
11844 dependencies for Make based on the non-system header files processed
11845 by the compiler.  System header files are ignored in the dependency
11846 output.
11847 .Sp
11848 The value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, in
11849 which case the Make rules are written to that file, guessing the target
11850 name from the source file name.  Or the value can have the form
11851 \&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written to
11852 file \fIfile\fR using \fItarget\fR as the target name.
11853 .Sp
11854 In other words, this environment variable is equivalent to combining
11855 the options \fB\-MM\fR and \fB\-MF\fR,
11856 with an optional \fB\-MT\fR switch too.
11857 .IP "\fB\s-1SUNPRO_DEPENDENCIES\s0\fR" 4
11858 .IX Item "SUNPRO_DEPENDENCIES"
11859 This variable is the same as \fB\s-1DEPENDENCIES_OUTPUT\s0\fR (see above),
11860 except that system header files are not ignored, so it implies
11861 \&\fB\-M\fR rather than \fB\-MM\fR.  However, the dependence on the
11862 main input file is omitted.
11863 .SH "BUGS"
11864 .IX Header "BUGS"
11865 For instructions on reporting bugs, see
11866 <\fBhttp://gcc.gnu.org/bugs.html\fR>.
11867 .SH "FOOTNOTES"
11868 .IX Header "FOOTNOTES"
11869 .IP "1." 4
11870 On some systems, \fBgcc \-shared\fR
11871 needs to build supplementary stub code for constructors to work.  On
11872 multi-libbed systems, \fBgcc \-shared\fR must select the correct support
11873 libraries to link against.  Failing to supply the correct flags may lead
11874 to subtle defects.  Supplying them in cases where they are not necessary
11875 is innocuous.
11876 .SH "SEE ALSO"
11877 .IX Header "SEE ALSO"
11878 \&\fIgpl\fR\|(7), \fIgfdl\fR\|(7), \fIfsf\-funding\fR\|(7),
11879 \&\fIcpp\fR\|(1), \fIgcov\fR\|(1), \fIas\fR\|(1), \fIld\fR\|(1), \fIgdb\fR\|(1), \fIadb\fR\|(1), \fIdbx\fR\|(1), \fIsdb\fR\|(1)
11880 and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIas\fR,
11881 \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
11882 .SH "AUTHOR"
11883 .IX Header "AUTHOR"
11884 See the Info entry for \fBgcc\fR, or
11885 <\fBhttp://gcc.gnu.org/onlinedocs/gcc/Contributors.html\fR>,
11886 for contributors to \s-1GCC\s0.
11887 .SH "COPYRIGHT"
11888 .IX Header "COPYRIGHT"
11889 Copyright (c) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997,
11890 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
11891 .PP
11892 Permission is granted to copy, distribute and/or modify this document
11893 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.2 or
11894 any later version published by the Free Software Foundation; with the
11895 Invariant Sections being ``\s-1GNU\s0 General Public License'' and ``Funding
11896 Free Software'', the Front-Cover texts being (a) (see below), and with
11897 the Back-Cover Texts being (b) (see below).  A copy of the license is
11898 included in the \fIgfdl\fR\|(7) man page.
11899 .PP
11900 (a) The \s-1FSF\s0's Front-Cover Text is:
11901 .PP
11902 .Vb 1
11903 \&     A GNU Manual
11904 .Ve
11905 .PP
11906 (b) The \s-1FSF\s0's Back-Cover Text is:
11907 .PP
11908 .Vb 3
11909 \&     You have freedom to copy and modify this GNU Manual, like GNU
11910 \&     software.  Copies published by the Free Software Foundation raise
11911 \&     funds for GNU development.
11912 .Ve