Add gcc40 infrastructure, but don't tie it to the build yet.
[dragonfly.git] / gnu / usr.bin / cc40 / cc / gcc40.1
1 .\" $DragonFly: src/gnu/usr.bin/cc40/cc/Attic/gcc40.1,v 1.1 2005/06/05 22:43:20 corecode Exp $
2 .\" Automatically generated by Pod::Man v1.34, Pod::Parser v1.13
3 .\"
4 .\" Standard preamble:
5 .\" ========================================================================
6 .de Sh \" Subsection heading
7 .br
8 .if t .Sp
9 .ne 5
10 .PP
11 \fB\\$1\fR
12 .PP
13 ..
14 .de Sp \" Vertical space (when we can't use .PP)
15 .if t .sp .5v
16 .if n .sp
17 ..
18 .de Vb \" Begin verbatim text
19 .ft CW
20 .nf
21 .ne \\$1
22 ..
23 .de Ve \" End verbatim text
24 .ft R
25 .fi
26 ..
27 .\" Set up some character translations and predefined strings.  \*(-- will
28 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
29 .\" double quote, and \*(R" will give a right double quote.  | will give a
30 .\" real vertical bar.  \*(C+ will give a nicer C++.  Capital omega is used to
31 .\" do unbreakable dashes and therefore won't be available.  \*(C` and \*(C'
32 .\" expand to `' in nroff, nothing in troff, for use with C<>.
33 .tr \(*W-|\(bv\*(Tr
34 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
35 .ie n \{\
36 .    ds -- \(*W-
37 .    ds PI pi
38 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
39 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
40 .    ds L" ""
41 .    ds R" ""
42 .    ds C` ""
43 .    ds C' ""
44 'br\}
45 .el\{\
46 .    ds -- \|\(em\|
47 .    ds PI \(*p
48 .    ds L" ``
49 .    ds R" ''
50 'br\}
51 .\"
52 .\" If the F register is turned on, we'll generate index entries on stderr for
53 .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
54 .\" entries marked with X<> in POD.  Of course, you'll have to process the
55 .\" output yourself in some meaningful fashion.
56 .if \nF \{\
57 .    de IX
58 .    tm Index:\\$1\t\\n%\t"\\$2"
59 ..
60 .    nr % 0
61 .    rr F
62 .\}
63 .\"
64 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
65 .\" way too many mistakes in technical documents.
66 .hy 0
67 .if n .na
68 .\"
69 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
70 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
71 .    \" fudge factors for nroff and troff
72 .if n \{\
73 .    ds #H 0
74 .    ds #V .8m
75 .    ds #F .3m
76 .    ds #[ \f1
77 .    ds #] \fP
78 .\}
79 .if t \{\
80 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
81 .    ds #V .6m
82 .    ds #F 0
83 .    ds #[ \&
84 .    ds #] \&
85 .\}
86 .    \" simple accents for nroff and troff
87 .if n \{\
88 .    ds ' \&
89 .    ds ` \&
90 .    ds ^ \&
91 .    ds , \&
92 .    ds ~ ~
93 .    ds /
94 .\}
95 .if t \{\
96 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
97 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
98 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
99 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
100 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
101 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
102 .\}
103 .    \" troff and (daisy-wheel) nroff accents
104 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
105 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
106 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
107 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
108 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
109 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
110 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
111 .ds ae a\h'-(\w'a'u*4/10)'e
112 .ds Ae A\h'-(\w'A'u*4/10)'E
113 .    \" corrections for vroff
114 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
115 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
116 .    \" for low resolution devices (crt and lpr)
117 .if \n(.H>23 .if \n(.V>19 \
118 \{\
119 .    ds : e
120 .    ds 8 ss
121 .    ds o a
122 .    ds d- d\h'-1'\(ga
123 .    ds D- D\h'-1'\(hy
124 .    ds th \o'bp'
125 .    ds Th \o'LP'
126 .    ds ae ae
127 .    ds Ae AE
128 .\}
129 .rm #[ #] #H #V #F C
130 .\" ========================================================================
131 .\"
132 .IX Title "GCC 1"
133 .TH GCC 1 "2005-04-21" "gcc-4.0.0" "GNU"
134 .SH "NAME"
135 gcc \- GNU project C and C++ compiler
136 .SH "SYNOPSIS"
137 .IX Header "SYNOPSIS"
138 gcc [\fB\-c\fR|\fB\-S\fR|\fB\-E\fR] [\fB\-std=\fR\fIstandard\fR]
139     [\fB\-g\fR] [\fB\-pg\fR] [\fB\-O\fR\fIlevel\fR]
140     [\fB\-W\fR\fIwarn\fR...] [\fB\-pedantic\fR]
141     [\fB\-I\fR\fIdir\fR...] [\fB\-L\fR\fIdir\fR...]
142     [\fB\-D\fR\fImacro\fR[=\fIdefn\fR]...] [\fB\-U\fR\fImacro\fR]
143     [\fB\-f\fR\fIoption\fR...] [\fB\-m\fR\fImachine-option\fR...]
144     [\fB\-o\fR \fIoutfile\fR] \fIinfile\fR...
145 .PP
146 Only the most useful options are listed here; see below for the
147 remainder.  \fBg++\fR accepts mostly the same options as \fBgcc\fR.
148 .SH "DESCRIPTION"
149 .IX Header "DESCRIPTION"
150 When you invoke \s-1GCC\s0, it normally does preprocessing, compilation,
151 assembly and linking.  The ``overall options'' allow you to stop this
152 process at an intermediate stage.  For example, the \fB\-c\fR option
153 says not to run the linker.  Then the output consists of object files
154 output by the assembler.
155 .PP
156 Other options are passed on to one stage of processing.  Some options
157 control the preprocessor and others the compiler itself.  Yet other
158 options control the assembler and linker; most of these are not
159 documented here, since you rarely need to use any of them.
160 .PP
161 Most of the command line options that you can use with \s-1GCC\s0 are useful
162 for C programs; when an option is only useful with another language
163 (usually \*(C+), the explanation says so explicitly.  If the description
164 for a particular option does not mention a source language, you can use
165 that option with all supported languages.
166 .PP
167 The \fBgcc\fR program accepts options and file names as operands.  Many
168 options have multi-letter names; therefore multiple single-letter options
169 may \fInot\fR be grouped: \fB\-dr\fR is very different from \fB\-d\ \-r\fR.
170 .PP
171 You can mix options and other arguments.  For the most part, the order
172 you use doesn't matter.  Order does matter when you use several options
173 of the same kind; for example, if you specify \fB\-L\fR more than once,
174 the directories are searched in the order specified.
175 .PP
176 Many options have long names starting with \fB\-f\fR or with
177 \&\fB\-W\fR\-\-\-for example, \fB\-fforce\-mem\fR,
178 \&\fB\-fstrength\-reduce\fR, \fB\-Wformat\fR and so on.  Most of
179 these have both positive and negative forms; the negative form of
180 \&\fB\-ffoo\fR would be \fB\-fno\-foo\fR.  This manual documents
181 only one of these two forms, whichever one is not the default.
182 .SH "OPTIONS"
183 .IX Header "OPTIONS"
184 .Sh "Option Summary"
185 .IX Subsection "Option Summary"
186 Here is a summary of all the options, grouped by type.  Explanations are
187 in the following sections.
188 .IP "\fIOverall Options\fR" 4
189 .IX Item "Overall Options"
190 \&\fB\-c  \-S  \-E  \-o\fR \fIfile\fR  \fB\-combine \-pipe  \-pass\-exit\-codes  
191 \&\-x\fR \fIlanguage\fR  \fB\-v  \-###  \-\-help  \-\-target\-help  \-\-version\fR
192 .IP "\fIC Language Options\fR" 4
193 .IX Item "C Language Options"
194 \&\fB\-ansi  \-std=\fR\fIstandard\fR  \fB\-aux\-info\fR \fIfilename\fR 
195 \&\fB\-fno\-asm  \-fno\-builtin  \-fno\-builtin\-\fR\fIfunction\fR 
196 \&\fB\-fhosted  \-ffreestanding  \-fms\-extensions 
197 \&\-trigraphs  \-no\-integrated\-cpp  \-traditional  \-traditional\-cpp 
198 \&\-fallow\-single\-precision  \-fcond\-mismatch 
199 \&\-fsigned\-bitfields  \-fsigned\-char 
200 \&\-funsigned\-bitfields  \-funsigned\-char\fR
201 .IP "\fI\*(C+ Language Options\fR" 4
202 .IX Item " Language Options"
203 \&\fB\-fabi\-version=\fR\fIn\fR  \fB\-fno\-access\-control  \-fcheck\-new 
204 \&\-fconserve\-space  \-fno\-const\-strings 
205 \&\-fno\-elide\-constructors 
206 \&\-fno\-enforce\-eh\-specs 
207 \&\-ffor\-scope  \-fno\-for\-scope  \-fno\-gnu\-keywords 
208 \&\-fno\-implicit\-templates 
209 \&\-fno\-implicit\-inline\-templates 
210 \&\-fno\-implement\-inlines  \-fms\-extensions 
211 \&\-fno\-nonansi\-builtins  \-fno\-operator\-names 
212 \&\-fno\-optional\-diags  \-fpermissive 
213 \&\-frepo  \-fno\-rtti  \-fstats  \-ftemplate\-depth\-\fR\fIn\fR 
214 \&\fB\-fno\-threadsafe\-statics \-fuse\-cxa\-atexit  \-fno\-weak  \-nostdinc++ 
215 \&\-fno\-default\-inline  \-fvisibility\-inlines\-hidden 
216 \&\-Wabi  \-Wctor\-dtor\-privacy 
217 \&\-Wnon\-virtual\-dtor  \-Wreorder 
218 \&\-Weffc++  \-Wno\-deprecated 
219 \&\-Wno\-non\-template\-friend  \-Wold\-style\-cast 
220 \&\-Woverloaded\-virtual  \-Wno\-pmf\-conversions 
221 \&\-Wsign\-promo\fR
222 .IP "\fIObjective-C and Objective\-\*(C+ Language Options\fR" 4
223 .IX Item "Objective-C and Objective- Language Options"
224 \&\fB\-fconstant\-string\-class=\fR\fIclass-name\fR 
225 \&\fB\-fgnu\-runtime  \-fnext\-runtime 
226 \&\-fno\-nil\-receivers 
227 \&\-fobjc\-exceptions 
228 \&\-freplace\-objc\-classes 
229 \&\-fzero\-link 
230 \&\-gen\-decls 
231 \&\-Wno\-protocol  \-Wselector \-Wundeclared\-selector\fR
232 .IP "\fILanguage Independent Options\fR" 4
233 .IX Item "Language Independent Options"
234 \&\fB\-fmessage\-length=\fR\fIn\fR  
235 \&\fB\-fdiagnostics\-show\-location=\fR[\fBonce\fR|\fBevery-line\fR]
236 .IP "\fIWarning Options\fR" 4
237 .IX Item "Warning Options"
238 \&\fB\-fsyntax\-only  \-pedantic  \-pedantic\-errors 
239 \&\-w  \-Wextra  \-Wall  \-Waggregate\-return 
240 \&\-Wcast\-align  \-Wcast\-qual  \-Wchar\-subscripts  \-Wcomment 
241 \&\-Wconversion  \-Wno\-deprecated\-declarations 
242 \&\-Wdisabled\-optimization  \-Wno\-div\-by\-zero  \-Wno\-endif\-labels 
243 \&\-Werror  \-Werror\-implicit\-function\-declaration 
244 \&\-Wfatal\-errors  \-Wfloat\-equal  \-Wformat  \-Wformat=2 
245 \&\-Wno\-format\-extra\-args \-Wformat\-nonliteral 
246 \&\-Wformat\-security  \-Wformat\-y2k 
247 \&\-Wimplicit  \-Wimplicit\-function\-declaration  \-Wimplicit\-int 
248 \&\-Wimport  \-Wno\-import  \-Winit\-self  \-Winline 
249 \&\-Wno\-invalid\-offsetof  \-Winvalid\-pch 
250 \&\-Wlarger\-than\-\fR\fIlen\fR  \fB\-Wlong\-long 
251 \&\-Wmain  \-Wmissing\-braces  \-Wmissing\-field\-initializers 
252 \&\-Wmissing\-format\-attribute  \-Wmissing\-include\-dirs 
253 \&\-Wmissing\-noreturn 
254 \&\-Wno\-multichar  \-Wnonnull  \-Wpacked  \-Wpadded 
255 \&\-Wparentheses  \-Wpointer\-arith  \-Wredundant\-decls 
256 \&\-Wreturn\-type  \-Wsequence\-point  \-Wshadow 
257 \&\-Wsign\-compare  \-Wstrict\-aliasing \-Wstrict\-aliasing=2 
258 \&\-Wswitch  \-Wswitch\-default  \-Wswitch\-enum 
259 \&\-Wsystem\-headers  \-Wtrigraphs  \-Wundef  \-Wuninitialized 
260 \&\-Wunknown\-pragmas  \-Wunreachable\-code 
261 \&\-Wunused  \-Wunused\-function  \-Wunused\-label  \-Wunused\-parameter 
262 \&\-Wunused\-value  \-Wunused\-variable  \-Wwrite\-strings 
263 \&\-Wvariadic\-macros\fR
264 .IP "\fIC\-only Warning Options\fR" 4
265 .IX Item "C-only Warning Options"
266 \&\fB\-Wbad\-function\-cast  \-Wmissing\-declarations 
267 \&\-Wmissing\-prototypes  \-Wnested\-externs  \-Wold\-style\-definition 
268 \&\-Wstrict\-prototypes  \-Wtraditional 
269 \&\-Wdeclaration\-after\-statement \-Wno\-pointer\-sign\fR
270 .IP "\fIDebugging Options\fR" 4
271 .IX Item "Debugging Options"
272 \&\fB\-d\fR\fIletters\fR  \fB\-dumpspecs  \-dumpmachine  \-dumpversion 
273 \&\-fdump\-unnumbered  \-fdump\-translation\-unit\fR[\fB\-\fR\fIn\fR] 
274 \&\fB\-fdump\-class\-hierarchy\fR[\fB\-\fR\fIn\fR] 
275 \&\fB\-fdump\-ipa\-all \-fdump\-ipa\-cgraph 
276 \&\-fdump\-tree\-all 
277 \&\-fdump\-tree\-original\fR[\fB\-\fR\fIn\fR]  
278 \&\fB\-fdump\-tree\-optimized\fR[\fB\-\fR\fIn\fR] 
279 \&\fB\-fdump\-tree\-inlined\fR[\fB\-\fR\fIn\fR] 
280 \&\fB\-fdump\-tree\-cfg \-fdump\-tree\-vcg \-fdump\-tree\-alias 
281 \&\-fdump\-tree\-ch 
282 \&\-fdump\-tree\-ssa\fR[\fB\-\fR\fIn\fR] \fB\-fdump\-tree\-pre\fR[\fB\-\fR\fIn\fR] 
283 \&\fB\-fdump\-tree\-ccp\fR[\fB\-\fR\fIn\fR] \fB\-fdump\-tree\-dce\fR[\fB\-\fR\fIn\fR] 
284 \&\fB\-fdump\-tree\-gimple\fR[\fB\-raw\fR] \fB\-fdump\-tree\-mudflap\fR[\fB\-\fR\fIn\fR] 
285 \&\fB\-fdump\-tree\-dom\fR[\fB\-\fR\fIn\fR] 
286 \&\fB\-fdump\-tree\-dse\fR[\fB\-\fR\fIn\fR] 
287 \&\fB\-fdump\-tree\-phiopt\fR[\fB\-\fR\fIn\fR] 
288 \&\fB\-fdump\-tree\-forwprop\fR[\fB\-\fR\fIn\fR] 
289 \&\fB\-fdump\-tree\-copyrename\fR[\fB\-\fR\fIn\fR] 
290 \&\fB\-fdump\-tree\-nrv \-fdump\-tree\-vect 
291 \&\-fdump\-tree\-sra\fR[\fB\-\fR\fIn\fR] 
292 \&\fB\-fdump\-tree\-fre\fR[\fB\-\fR\fIn\fR] 
293 \&\fB\-ftree\-vectorizer\-verbose=\fR\fIn\fR 
294 \&\fB\-feliminate\-dwarf2\-dups \-feliminate\-unused\-debug\-types 
295 \&\-feliminate\-unused\-debug\-symbols \-fmem\-report \-fprofile\-arcs \-ftree\-based\-profiling 
296 \&\-frandom\-seed=\fR\fIstring\fR \fB\-fsched\-verbose=\fR\fIn\fR 
297 \&\fB\-ftest\-coverage  \-ftime\-report \-fvar\-tracking 
298 \&\-g  \-g\fR\fIlevel\fR  \fB\-gcoff \-gdwarf\-2 
299 \&\-ggdb  \-gstabs  \-gstabs+  \-gvms  \-gxcoff  \-gxcoff+ 
300 \&\-p  \-pg  \-print\-file\-name=\fR\fIlibrary\fR  \fB\-print\-libgcc\-file\-name 
301 \&\-print\-multi\-directory  \-print\-multi\-lib 
302 \&\-print\-prog\-name=\fR\fIprogram\fR  \fB\-print\-search\-dirs  \-Q 
303 \&\-save\-temps  \-time\fR
304 .IP "\fIOptimization Options\fR" 4
305 .IX Item "Optimization Options"
306 \&\fB\-falign\-functions=\fR\fIn\fR  \fB\-falign\-jumps=\fR\fIn\fR 
307 \&\fB\-falign\-labels=\fR\fIn\fR  \fB\-falign\-loops=\fR\fIn\fR  
308 \&\fB\-fbounds\-check \-fmudflap \-fmudflapth \-fmudflapir 
309 \&\-fbranch\-probabilities \-fprofile\-values \-fvpt \-fbranch\-target\-load\-optimize 
310 \&\-fbranch\-target\-load\-optimize2 \-fbtr\-bb\-exclusive 
311 \&\-fcaller\-saves  \-fcprop\-registers  \-fcse\-follow\-jumps 
312 \&\-fcse\-skip\-blocks  \-fcx\-limited\-range  \-fdata\-sections 
313 \&\-fdelayed\-branch  \-fdelete\-null\-pointer\-checks 
314 \&\-fexpensive\-optimizations  \-ffast\-math  \-ffloat\-store 
315 \&\-fforce\-addr  \-fforce\-mem  \-ffunction\-sections 
316 \&\-fgcse  \-fgcse\-lm  \-fgcse\-sm  \-fgcse\-las  \-fgcse\-after\-reload 
317 \&\-floop\-optimize \-fcrossjumping  \-fif\-conversion  \-fif\-conversion2 
318 \&\-finline\-functions  \-finline\-limit=\fR\fIn\fR  \fB\-fkeep\-inline\-functions 
319 \&\-fkeep\-static\-consts  \-fmerge\-constants  \-fmerge\-all\-constants 
320 \&\-fmodulo\-sched \-fno\-branch\-count\-reg 
321 \&\-fno\-default\-inline  \-fno\-defer\-pop \-floop\-optimize2 \-fmove\-loop\-invariants 
322 \&\-fno\-function\-cse  \-fno\-guess\-branch\-probability 
323 \&\-fno\-inline  \-fno\-math\-errno  \-fno\-peephole  \-fno\-peephole2 
324 \&\-funsafe\-math\-optimizations  \-ffinite\-math\-only 
325 \&\-fno\-trapping\-math  \-fno\-zero\-initialized\-in\-bss 
326 \&\-fomit\-frame\-pointer  \-foptimize\-register\-move 
327 \&\-foptimize\-sibling\-calls  \-fprefetch\-loop\-arrays 
328 \&\-fprofile\-generate \-fprofile\-use 
329 \&\-fregmove  \-frename\-registers 
330 \&\-freorder\-blocks  \-freorder\-blocks\-and\-partition \-freorder\-functions 
331 \&\-frerun\-cse\-after\-loop  \-frerun\-loop\-opt 
332 \&\-frounding\-math \-fschedule\-insns  \-fschedule\-insns2 
333 \&\-fno\-sched\-interblock  \-fno\-sched\-spec  \-fsched\-spec\-load 
334 \&\-fsched\-spec\-load\-dangerous  
335 \&\-fsched\-stalled\-insns=\fR\fIn\fR \fB\-sched\-stalled\-insns\-dep=\fR\fIn\fR 
336 \&\fB\-fsched2\-use\-superblocks 
337 \&\-fsched2\-use\-traces \-freschedule\-modulo\-scheduled\-loops 
338 \&\-fsignaling\-nans \-fsingle\-precision\-constant  \-fspeculative\-prefetching 
339 \&\-fstrength\-reduce  \-fstrict\-aliasing  \-ftracer  \-fthread\-jumps 
340 \&\-funroll\-all\-loops  \-funroll\-loops  \-fpeel\-loops 
341 \&\-fsplit\-ivs\-in\-unroller \-funswitch\-loops 
342 \&\-fvariable\-expansion\-in\-unroller 
343 \&\-ftree\-pre  \-ftree\-ccp  \-ftree\-dce \-ftree\-loop\-optimize 
344 \&\-ftree\-loop\-linear \-ftree\-loop\-im \-ftree\-loop\-ivcanon \-fivopts 
345 \&\-ftree\-dominator\-opts \-ftree\-dse \-ftree\-copyrename 
346 \&\-ftree\-ch \-ftree\-sra \-ftree\-ter \-ftree\-lrs \-ftree\-fre \-ftree\-vectorize 
347 \&\-fweb 
348 \&\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR
349 \&\fB\-O  \-O0  \-O1  \-O2  \-O3  \-Os\fR
350 .IP "\fIPreprocessor Options\fR" 4
351 .IX Item "Preprocessor Options"
352 \&\fB\-A\fR\fIquestion\fR\fB=\fR\fIanswer\fR 
353 \&\fB\-A\-\fR\fIquestion\fR[\fB=\fR\fIanswer\fR] 
354 \&\fB\-C  \-dD  \-dI  \-dM  \-dN 
355 \&\-D\fR\fImacro\fR[\fB=\fR\fIdefn\fR]  \fB\-E  \-H 
356 \&\-idirafter\fR \fIdir\fR 
357 \&\fB\-include\fR \fIfile\fR  \fB\-imacros\fR \fIfile\fR 
358 \&\fB\-iprefix\fR \fIfile\fR  \fB\-iwithprefix\fR \fIdir\fR 
359 \&\fB\-iwithprefixbefore\fR \fIdir\fR  \fB\-isystem\fR \fIdir\fR 
360 \&\fB\-M  \-MM  \-MF  \-MG  \-MP  \-MQ  \-MT  \-nostdinc  
361 \&\-P  \-fworking\-directory  \-remap 
362 \&\-trigraphs  \-undef  \-U\fR\fImacro\fR  \fB\-Wp,\fR\fIoption\fR 
363 \&\fB\-Xpreprocessor\fR \fIoption\fR
364 .IP "\fIAssembler Option\fR" 4
365 .IX Item "Assembler Option"
366 \&\fB\-Wa,\fR\fIoption\fR  \fB\-Xassembler\fR \fIoption\fR
367 .IP "\fILinker Options\fR" 4
368 .IX Item "Linker Options"
369 \&\fIobject-file-name\fR  \fB\-l\fR\fIlibrary\fR 
370 \&\fB\-nostartfiles  \-nodefaultlibs  \-nostdlib \-pie 
371 \&\-s  \-static  \-static\-libgcc  \-shared  \-shared\-libgcc  \-symbolic 
372 \&\-Wl,\fR\fIoption\fR  \fB\-Xlinker\fR \fIoption\fR 
373 \&\fB\-u\fR \fIsymbol\fR
374 .IP "\fIDirectory Options\fR" 4
375 .IX Item "Directory Options"
376 \&\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
377 .IP "\fITarget Options\fR" 4
378 .IX Item "Target Options"
379 \&\fB\-V\fR \fIversion\fR  \fB\-b\fR \fImachine\fR
380 .IP "\fIMachine Dependent Options\fR" 4
381 .IX Item "Machine Dependent Options"
382 \&\fI\s-1ARC\s0 Options\fR
383 \&\fB\-EB  \-EL 
384 \&\-mmangle\-cpu  \-mcpu=\fR\fIcpu\fR  \fB\-mtext=\fR\fItext-section\fR 
385 \&\fB\-mdata=\fR\fIdata-section\fR  \fB\-mrodata=\fR\fIreadonly-data-section\fR
386 .Sp
387 \&\fI\s-1ARM\s0 Options\fR
388 \&\fB\-mapcs\-frame  \-mno\-apcs\-frame 
389 \&\-mabi=\fR\fIname\fR 
390 \&\fB\-mapcs\-stack\-check  \-mno\-apcs\-stack\-check 
391 \&\-mapcs\-float  \-mno\-apcs\-float 
392 \&\-mapcs\-reentrant  \-mno\-apcs\-reentrant 
393 \&\-msched\-prolog  \-mno\-sched\-prolog 
394 \&\-mlittle\-endian  \-mbig\-endian  \-mwords\-little\-endian 
395 \&\-mfloat\-abi=\fR\fIname\fR  \fB\-msoft\-float  \-mhard\-float  \-mfpe 
396 \&\-mthumb\-interwork  \-mno\-thumb\-interwork 
397 \&\-mcpu=\fR\fIname\fR  \fB\-march=\fR\fIname\fR  \fB\-mfpu=\fR\fIname\fR  
398 \&\fB\-mstructure\-size\-boundary=\fR\fIn\fR 
399 \&\fB\-mabort\-on\-noreturn 
400 \&\-mlong\-calls  \-mno\-long\-calls 
401 \&\-msingle\-pic\-base  \-mno\-single\-pic\-base 
402 \&\-mpic\-register=\fR\fIreg\fR 
403 \&\fB\-mnop\-fun\-dllimport 
404 \&\-mcirrus\-fix\-invalid\-insns \-mno\-cirrus\-fix\-invalid\-insns 
405 \&\-mpoke\-function\-name 
406 \&\-mthumb  \-marm 
407 \&\-mtpcs\-frame  \-mtpcs\-leaf\-frame 
408 \&\-mcaller\-super\-interworking  \-mcallee\-super\-interworking\fR
409 .Sp
410 \&\fI\s-1AVR\s0 Options\fR
411 \&\fB\-mmcu=\fR\fImcu\fR  \fB\-msize  \-minit\-stack=\fR\fIn\fR  \fB\-mno\-interrupts 
412 \&\-mcall\-prologues  \-mno\-tablejump  \-mtiny\-stack  \-mint8\fR
413 .Sp
414 \&\fI\s-1CRIS\s0 Options\fR
415 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-march=\fR\fIcpu\fR  \fB\-mtune=\fR\fIcpu\fR 
416 \&\fB\-mmax\-stack\-frame=\fR\fIn\fR  \fB\-melinux\-stacksize=\fR\fIn\fR 
417 \&\fB\-metrax4  \-metrax100  \-mpdebug  \-mcc\-init  \-mno\-side\-effects 
418 \&\-mstack\-align  \-mdata\-align  \-mconst\-align 
419 \&\-m32\-bit  \-m16\-bit  \-m8\-bit  \-mno\-prologue\-epilogue  \-mno\-gotplt 
420 \&\-melf  \-maout  \-melinux  \-mlinux  \-sim  \-sim2 
421 \&\-mmul\-bug\-workaround  \-mno\-mul\-bug\-workaround\fR
422 .Sp
423 \&\fIDarwin Options\fR
424 \&\fB\-all_load  \-allowable_client  \-arch  \-arch_errors_fatal 
425 \&\-arch_only  \-bind_at_load  \-bundle  \-bundle_loader 
426 \&\-client_name  \-compatibility_version  \-current_version 
427 \&\-dead_strip 
428 \&\-dependency\-file  \-dylib_file  \-dylinker_install_name 
429 \&\-dynamic  \-dynamiclib  \-exported_symbols_list 
430 \&\-filelist  \-flat_namespace  \-force_cpusubtype_ALL 
431 \&\-force_flat_namespace  \-headerpad_max_install_names 
432 \&\-image_base  \-init  \-install_name  \-keep_private_externs 
433 \&\-multi_module  \-multiply_defined  \-multiply_defined_unused 
434 \&\-noall_load   \-no_dead_strip_inits_and_terms 
435 \&\-nofixprebinding \-nomultidefs  \-noprebind  \-noseglinkedit 
436 \&\-pagezero_size  \-prebind  \-prebind_all_twolevel_modules 
437 \&\-private_bundle  \-read_only_relocs  \-sectalign 
438 \&\-sectobjectsymbols  \-whyload  \-seg1addr 
439 \&\-sectcreate  \-sectobjectsymbols  \-sectorder 
440 \&\-segaddr \-segs_read_only_addr \-segs_read_write_addr 
441 \&\-seg_addr_table  \-seg_addr_table_filename  \-seglinkedit 
442 \&\-segprot  \-segs_read_only_addr  \-segs_read_write_addr 
443 \&\-single_module  \-static  \-sub_library  \-sub_umbrella 
444 \&\-twolevel_namespace  \-umbrella  \-undefined 
445 \&\-unexported_symbols_list  \-weak_reference_mismatches 
446 \&\-whatsloaded \-F \-gused \-gfull \-mone\-byte\-bool\fR
447 .Sp
448 \&\fI\s-1DEC\s0 Alpha Options\fR
449 \&\fB\-mno\-fp\-regs  \-msoft\-float  \-malpha\-as  \-mgas 
450 \&\-mieee  \-mieee\-with\-inexact  \-mieee\-conformant 
451 \&\-mfp\-trap\-mode=\fR\fImode\fR  \fB\-mfp\-rounding\-mode=\fR\fImode\fR 
452 \&\fB\-mtrap\-precision=\fR\fImode\fR  \fB\-mbuild\-constants 
453 \&\-mcpu=\fR\fIcpu-type\fR  \fB\-mtune=\fR\fIcpu-type\fR 
454 \&\fB\-mbwx  \-mmax  \-mfix  \-mcix 
455 \&\-mfloat\-vax  \-mfloat\-ieee 
456 \&\-mexplicit\-relocs  \-msmall\-data  \-mlarge\-data 
457 \&\-msmall\-text  \-mlarge\-text 
458 \&\-mmemory\-latency=\fR\fItime\fR
459 .Sp
460 \&\fI\s-1DEC\s0 Alpha/VMS Options\fR
461 \&\fB\-mvms\-return\-codes\fR
462 .Sp
463 \&\fI\s-1FRV\s0 Options\fR
464 \&\fB\-mgpr\-32  \-mgpr\-64  \-mfpr\-32  \-mfpr\-64 
465 \&\-mhard\-float  \-msoft\-float 
466 \&\-malloc\-cc  \-mfixed\-cc  \-mdword  \-mno\-dword 
467 \&\-mdouble  \-mno\-double 
468 \&\-mmedia  \-mno\-media  \-mmuladd  \-mno\-muladd 
469 \&\-mfdpic  \-minline\-plt \-mgprel\-ro  \-multilib\-library\-pic 
470 \&\-mlinked\-fp  \-mlong\-calls  \-malign\-labels 
471 \&\-mlibrary\-pic  \-macc\-4  \-macc\-8 
472 \&\-mpack  \-mno\-pack  \-mno\-eflags  \-mcond\-move  \-mno\-cond\-move 
473 \&\-mscc  \-mno\-scc  \-mcond\-exec  \-mno\-cond\-exec 
474 \&\-mvliw\-branch  \-mno\-vliw\-branch 
475 \&\-mmulti\-cond\-exec  \-mno\-multi\-cond\-exec  \-mnested\-cond\-exec 
476 \&\-mno\-nested\-cond\-exec  \-mtomcat\-stats 
477 \&\-mTLS \-mtls 
478 \&\-mcpu=\fR\fIcpu\fR
479 .Sp
480 \&\fIH8/300 Options\fR
481 \&\fB\-mrelax  \-mh  \-ms  \-mn  \-mint32  \-malign\-300\fR
482 .Sp
483 \&\fI\s-1HPPA\s0 Options\fR
484 \&\fB\-march=\fR\fIarchitecture-type\fR 
485 \&\fB\-mbig\-switch  \-mdisable\-fpregs  \-mdisable\-indexing 
486 \&\-mfast\-indirect\-calls  \-mgas  \-mgnu\-ld   \-mhp\-ld 
487 \&\-mfixed\-range=\fR\fIregister-range\fR 
488 \&\fB\-mjump\-in\-delay \-mlinker\-opt \-mlong\-calls 
489 \&\-mlong\-load\-store  \-mno\-big\-switch  \-mno\-disable\-fpregs 
490 \&\-mno\-disable\-indexing  \-mno\-fast\-indirect\-calls  \-mno\-gas 
491 \&\-mno\-jump\-in\-delay  \-mno\-long\-load\-store 
492 \&\-mno\-portable\-runtime  \-mno\-soft\-float 
493 \&\-mno\-space\-regs  \-msoft\-float  \-mpa\-risc\-1\-0 
494 \&\-mpa\-risc\-1\-1  \-mpa\-risc\-2\-0  \-mportable\-runtime 
495 \&\-mschedule=\fR\fIcpu-type\fR  \fB\-mspace\-regs  \-msio  \-mwsio 
496 \&\-munix=\fR\fIunix-std\fR  \fB\-nolibdld  \-static  \-threads\fR
497 .Sp
498 \&\fIi386 and x86\-64 Options\fR
499 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
500 \&\fB\-mfpmath=\fR\fIunit\fR 
501 \&\fB\-masm=\fR\fIdialect\fR  \fB\-mno\-fancy\-math\-387 
502 \&\-mno\-fp\-ret\-in\-387  \-msoft\-float  \-msvr3\-shlib 
503 \&\-mno\-wide\-multiply  \-mrtd  \-malign\-double 
504 \&\-mpreferred\-stack\-boundary=\fR\fInum\fR 
505 \&\fB\-mmmx  \-msse  \-msse2 \-msse3 \-m3dnow 
506 \&\-mthreads  \-mno\-align\-stringops  \-minline\-all\-stringops 
507 \&\-mpush\-args  \-maccumulate\-outgoing\-args  \-m128bit\-long\-double 
508 \&\-m96bit\-long\-double  \-mregparm=\fR\fInum\fR  \fB\-momit\-leaf\-frame\-pointer 
509 \&\-mno\-red\-zone \-mno\-tls\-direct\-seg\-refs 
510 \&\-mcmodel=\fR\fIcode-model\fR 
511 \&\fB\-m32  \-m64\fR
512 .Sp
513 \&\fI\s-1IA\-64\s0 Options\fR
514 \&\fB\-mbig\-endian  \-mlittle\-endian  \-mgnu\-as  \-mgnu\-ld  \-mno\-pic 
515 \&\-mvolatile\-asm\-stop  \-mregister\-names  \-mno\-sdata 
516 \&\-mconstant\-gp  \-mauto\-pic  \-minline\-float\-divide\-min\-latency 
517 \&\-minline\-float\-divide\-max\-throughput 
518 \&\-minline\-int\-divide\-min\-latency 
519 \&\-minline\-int\-divide\-max\-throughput  
520 \&\-minline\-sqrt\-min\-latency \-minline\-sqrt\-max\-throughput 
521 \&\-mno\-dwarf2\-asm \-mearly\-stop\-bits 
522 \&\-mfixed\-range=\fR\fIregister-range\fR \fB\-mtls\-size=\fR\fItls-size\fR 
523 \&\fB\-mtune=\fR\fIcpu-type\fR \fB\-mt \-pthread \-milp32 \-mlp64\fR
524 .Sp
525 \&\fIM32R/D Options\fR
526 \&\fB\-m32r2 \-m32rx \-m32r 
527 \&\-mdebug 
528 \&\-malign\-loops \-mno\-align\-loops 
529 \&\-missue\-rate=\fR\fInumber\fR 
530 \&\fB\-mbranch\-cost=\fR\fInumber\fR 
531 \&\fB\-mmodel=\fR\fIcode-size-model-type\fR 
532 \&\fB\-msdata=\fR\fIsdata-type\fR 
533 \&\fB\-mno\-flush\-func \-mflush\-func=\fR\fIname\fR 
534 \&\fB\-mno\-flush\-trap \-mflush\-trap=\fR\fInumber\fR 
535 \&\fB\-G\fR \fInum\fR
536 .Sp
537 \&\fIM680x0 Options\fR
538 \&\fB\-m68000  \-m68020  \-m68020\-40  \-m68020\-60  \-m68030  \-m68040 
539 \&\-m68060  \-mcpu32  \-m5200  \-m68881  \-mbitfield  \-mc68000  \-mc68020   
540 \&\-mnobitfield  \-mrtd  \-mshort  \-msoft\-float  \-mpcrel 
541 \&\-malign\-int  \-mstrict\-align  \-msep\-data  \-mno\-sep\-data 
542 \&\-mshared\-library\-id=n  \-mid\-shared\-library  \-mno\-id\-shared\-library\fR
543 .Sp
544 \&\fIM68hc1x Options\fR
545 \&\fB\-m6811  \-m6812  \-m68hc11  \-m68hc12   \-m68hcs12 
546 \&\-mauto\-incdec  \-minmax  \-mlong\-calls  \-mshort 
547 \&\-msoft\-reg\-count=\fR\fIcount\fR
548 .Sp
549 \&\fIMCore Options\fR
550 \&\fB\-mhardlit  \-mno\-hardlit  \-mdiv  \-mno\-div  \-mrelax\-immediates 
551 \&\-mno\-relax\-immediates  \-mwide\-bitfields  \-mno\-wide\-bitfields 
552 \&\-m4byte\-functions  \-mno\-4byte\-functions  \-mcallgraph\-data 
553 \&\-mno\-callgraph\-data  \-mslow\-bytes  \-mno\-slow\-bytes  \-mno\-lsim 
554 \&\-mlittle\-endian  \-mbig\-endian  \-m210  \-m340  \-mstack\-increment\fR
555 .Sp
556 \&\fI\s-1MIPS\s0 Options\fR
557 \&\fB\-EL  \-EB  \-march=\fR\fIarch\fR  \fB\-mtune=\fR\fIarch\fR 
558 \&\fB\-mips1  \-mips2  \-mips3  \-mips4  \-mips32  \-mips32r2  \-mips64 
559 \&\-mips16  \-mno\-mips16  \-mabi=\fR\fIabi\fR  \fB\-mabicalls  \-mno\-abicalls 
560 \&\-mxgot  \-mno\-xgot  \-mgp32  \-mgp64  \-mfp32  \-mfp64 
561 \&\-mhard\-float  \-msoft\-float  \-msingle\-float  \-mdouble\-float 
562 \&\-mpaired\-single  \-mips3d 
563 \&\-mint64  \-mlong64  \-mlong32  \-msym32  \-mno\-sym32 
564 \&\-G\fR\fInum\fR  \fB\-membedded\-data  \-mno\-embedded\-data 
565 \&\-muninit\-const\-in\-rodata  \-mno\-uninit\-const\-in\-rodata 
566 \&\-msplit\-addresses  \-mno\-split\-addresses  
567 \&\-mexplicit\-relocs  \-mno\-explicit\-relocs  
568 \&\-mcheck\-zero\-division  \-mno\-check\-zero\-division 
569 \&\-mdivide\-traps  \-mdivide\-breaks 
570 \&\-mmemcpy  \-mno\-memcpy  \-mlong\-calls  \-mno\-long\-calls 
571 \&\-mmad  \-mno\-mad  \-mfused\-madd  \-mno\-fused\-madd  \-nocpp 
572 \&\-mfix\-r4000  \-mno\-fix\-r4000  \-mfix\-r4400  \-mno\-fix\-r4400 
573 \&\-mfix\-vr4120  \-mno\-fix\-vr4120  \-mfix\-vr4130 
574 \&\-mfix\-sb1  \-mno\-fix\-sb1 
575 \&\-mflush\-func=\fR\fIfunc\fR  \fB\-mno\-flush\-func 
576 \&\-mbranch\-likely  \-mno\-branch\-likely 
577 \&\-mfp\-exceptions \-mno\-fp\-exceptions 
578 \&\-mvr4130\-align \-mno\-vr4130\-align\fR
579 .Sp
580 \&\fI\s-1MMIX\s0 Options\fR
581 \&\fB\-mlibfuncs  \-mno\-libfuncs  \-mepsilon  \-mno\-epsilon  \-mabi=gnu 
582 \&\-mabi=mmixware  \-mzero\-extend  \-mknuthdiv  \-mtoplevel\-symbols 
583 \&\-melf  \-mbranch\-predict  \-mno\-branch\-predict  \-mbase\-addresses 
584 \&\-mno\-base\-addresses  \-msingle\-exit  \-mno\-single\-exit\fR
585 .Sp
586 \&\fI\s-1MN10300\s0 Options\fR
587 \&\fB\-mmult\-bug  \-mno\-mult\-bug 
588 \&\-mam33  \-mno\-am33 
589 \&\-mam33\-2  \-mno\-am33\-2 
590 \&\-mno\-crt0  \-mrelax\fR
591 .Sp
592 \&\fI\s-1NS32K\s0 Options\fR
593 \&\fB\-m32032  \-m32332  \-m32532  \-m32081  \-m32381 
594 \&\-mmult\-add  \-mnomult\-add  \-msoft\-float  \-mrtd  \-mnortd 
595 \&\-mregparam  \-mnoregparam  \-msb  \-mnosb 
596 \&\-mbitfield  \-mnobitfield  \-mhimem  \-mnohimem\fR
597 .Sp
598 \&\fI\s-1PDP\-11\s0 Options\fR
599 \&\fB\-mfpu  \-msoft\-float  \-mac0  \-mno\-ac0  \-m40  \-m45  \-m10 
600 \&\-mbcopy  \-mbcopy\-builtin  \-mint32  \-mno\-int16 
601 \&\-mint16  \-mno\-int32  \-mfloat32  \-mno\-float64 
602 \&\-mfloat64  \-mno\-float32  \-mabshi  \-mno\-abshi 
603 \&\-mbranch\-expensive  \-mbranch\-cheap 
604 \&\-msplit  \-mno\-split  \-munix\-asm  \-mdec\-asm\fR
605 .Sp
606 \&\fIPowerPC Options\fR
607 See \s-1RS/6000\s0 and PowerPC Options.
608 .Sp
609 \&\fI\s-1RS/6000\s0 and PowerPC Options\fR
610 \&\fB\-mcpu=\fR\fIcpu-type\fR 
611 \&\fB\-mtune=\fR\fIcpu-type\fR 
612 \&\fB\-mpower  \-mno\-power  \-mpower2  \-mno\-power2 
613 \&\-mpowerpc  \-mpowerpc64  \-mno\-powerpc 
614 \&\-maltivec  \-mno\-altivec 
615 \&\-mpowerpc\-gpopt  \-mno\-powerpc\-gpopt 
616 \&\-mpowerpc\-gfxopt  \-mno\-powerpc\-gfxopt 
617 \&\-mnew\-mnemonics  \-mold\-mnemonics 
618 \&\-mfull\-toc   \-mminimal\-toc  \-mno\-fp\-in\-toc  \-mno\-sum\-in\-toc 
619 \&\-m64  \-m32  \-mxl\-compat  \-mno\-xl\-compat  \-mpe 
620 \&\-malign\-power  \-malign\-natural 
621 \&\-msoft\-float  \-mhard\-float  \-mmultiple  \-mno\-multiple 
622 \&\-mstring  \-mno\-string  \-mupdate  \-mno\-update 
623 \&\-mfused\-madd  \-mno\-fused\-madd  \-mbit\-align  \-mno\-bit\-align 
624 \&\-mstrict\-align  \-mno\-strict\-align  \-mrelocatable 
625 \&\-mno\-relocatable  \-mrelocatable\-lib  \-mno\-relocatable\-lib 
626 \&\-mtoc  \-mno\-toc  \-mlittle  \-mlittle\-endian  \-mbig  \-mbig\-endian 
627 \&\-mdynamic\-no\-pic 
628 \&\-mprioritize\-restricted\-insns=\fR\fIpriority\fR 
629 \&\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR 
630 \&\fB\-minsert\-sched\-nops=\fR\fIscheme\fR 
631 \&\fB\-mcall\-sysv  \-mcall\-netbsd 
632 \&\-maix\-struct\-return  \-msvr4\-struct\-return 
633 \&\-mabi=altivec  \-mabi=no\-altivec 
634 \&\-mabi=spe  \-mabi=no\-spe 
635 \&\-misel=yes  \-misel=no 
636 \&\-mspe=yes  \-mspe=no 
637 \&\-mfloat\-gprs=yes  \-mfloat\-gprs=no \-mfloat\-gprs=single \-mfloat\-gprs=double 
638 \&\-mprototype  \-mno\-prototype 
639 \&\-msim  \-mmvme  \-mads  \-myellowknife  \-memb  \-msdata 
640 \&\-msdata=\fR\fIopt\fR  \fB\-mvxworks  \-mwindiss  \-G\fR \fInum\fR  \fB\-pthread\fR
641 .Sp
642 \&\fIS/390 and zSeries Options\fR
643 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
644 \&\fB\-mhard\-float  \-msoft\-float  \-mbackchain  \-mno\-backchain 
645 \&\-mpacked\-stack  \-mno\-packed\-stack 
646 \&\-msmall\-exec  \-mno\-small\-exec  \-mmvcle \-mno\-mvcle 
647 \&\-m64  \-m31  \-mdebug  \-mno\-debug  \-mesa  \-mzarch 
648 \&\-mtpf\-trace \-mno\-tpf\-trace  \-mfused\-madd  \-mno\-fused\-madd 
649 \&\-mwarn\-framesize  \-mwarn\-dynamicstack  \-mstack\-size \-mstack\-guard\fR
650 .Sp
651 \&\fI\s-1SH\s0 Options\fR
652 \&\fB\-m1  \-m2  \-m2e  \-m3  \-m3e 
653 \&\-m4\-nofpu  \-m4\-single\-only  \-m4\-single  \-m4 
654 \&\-m4a\-nofpu \-m4a\-single\-only \-m4a\-single \-m4a \-m4al 
655 \&\-m5\-64media  \-m5\-64media\-nofpu 
656 \&\-m5\-32media  \-m5\-32media\-nofpu 
657 \&\-m5\-compact  \-m5\-compact\-nofpu 
658 \&\-mb  \-ml  \-mdalign  \-mrelax 
659 \&\-mbigtable  \-mfmovd  \-mhitachi \-mrenesas \-mno\-renesas \-mnomacsave 
660 \&\-mieee  \-misize  \-mpadstruct  \-mspace 
661 \&\-mprefergot  \-musermode\fR
662 .Sp
663 \&\fI\s-1SPARC\s0 Options\fR
664 \&\fB\-mcpu=\fR\fIcpu-type\fR 
665 \&\fB\-mtune=\fR\fIcpu-type\fR 
666 \&\fB\-mcmodel=\fR\fIcode-model\fR 
667 \&\fB\-m32  \-m64  \-mapp\-regs  \-mno\-app\-regs 
668 \&\-mfaster\-structs  \-mno\-faster\-structs 
669 \&\-mfpu  \-mno\-fpu  \-mhard\-float  \-msoft\-float 
670 \&\-mhard\-quad\-float  \-msoft\-quad\-float 
671 \&\-mimpure\-text  \-mno\-impure\-text  \-mlittle\-endian 
672 \&\-mstack\-bias  \-mno\-stack\-bias 
673 \&\-munaligned\-doubles  \-mno\-unaligned\-doubles 
674 \&\-mv8plus  \-mno\-v8plus  \-mvis  \-mno\-vis
675 \&\-threads \-pthreads\fR
676 .Sp
677 \&\fISystem V Options\fR
678 \&\fB\-Qy  \-Qn  \-YP,\fR\fIpaths\fR  \fB\-Ym,\fR\fIdir\fR
679 .Sp
680 \&\fITMS320C3x/C4x Options\fR
681 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-mbig  \-msmall  \-mregparm  \-mmemparm 
682 \&\-mfast\-fix  \-mmpyi  \-mbk  \-mti  \-mdp\-isr\-reload 
683 \&\-mrpts=\fR\fIcount\fR  \fB\-mrptb  \-mdb  \-mloop\-unsigned 
684 \&\-mparallel\-insns  \-mparallel\-mpy  \-mpreserve\-float\fR
685 .Sp
686 \&\fIV850 Options\fR
687 \&\fB\-mlong\-calls  \-mno\-long\-calls  \-mep  \-mno\-ep 
688 \&\-mprolog\-function  \-mno\-prolog\-function  \-mspace 
689 \&\-mtda=\fR\fIn\fR  \fB\-msda=\fR\fIn\fR  \fB\-mzda=\fR\fIn\fR 
690 \&\fB\-mapp\-regs  \-mno\-app\-regs 
691 \&\-mdisable\-callt  \-mno\-disable\-callt 
692 \&\-mv850e1 
693 \&\-mv850e 
694 \&\-mv850  \-mbig\-switch\fR
695 .Sp
696 \&\fI\s-1VAX\s0 Options\fR
697 \&\fB\-mg  \-mgnu  \-munix\fR
698 .Sp
699 \&\fIx86\-64 Options\fR
700 See i386 and x86\-64 Options.
701 .Sp
702 \&\fIXstormy16 Options\fR
703 \&\fB\-msim\fR
704 .Sp
705 \&\fIXtensa Options\fR
706 \&\fB\-mconst16 \-mno\-const16 
707 \&\-mfused\-madd  \-mno\-fused\-madd 
708 \&\-mtext\-section\-literals  \-mno\-text\-section\-literals 
709 \&\-mtarget\-align  \-mno\-target\-align 
710 \&\-mlongcalls  \-mno\-longcalls\fR
711 .Sp
712 \&\fIzSeries Options\fR
713 See S/390 and zSeries Options.
714 .IP "\fICode Generation Options\fR" 4
715 .IX Item "Code Generation Options"
716 \&\fB\-fcall\-saved\-\fR\fIreg\fR  \fB\-fcall\-used\-\fR\fIreg\fR 
717 \&\fB\-ffixed\-\fR\fIreg\fR  \fB\-fexceptions 
718 \&\-fnon\-call\-exceptions  \-funwind\-tables 
719 \&\-fasynchronous\-unwind\-tables 
720 \&\-finhibit\-size\-directive  \-finstrument\-functions 
721 \&\-fno\-common  \-fno\-ident 
722 \&\-fpcc\-struct\-return  \-fpic  \-fPIC \-fpie \-fPIE 
723 \&\-freg\-struct\-return  \-fshared\-data  \-fshort\-enums 
724 \&\-fshort\-double  \-fshort\-wchar 
725 \&\-fverbose\-asm  \-fpack\-struct[=\fR\fIn\fR\fB]  \-fstack\-check 
726 \&\-fstack\-limit\-register=\fR\fIreg\fR  \fB\-fstack\-limit\-symbol=\fR\fIsym\fR 
727 \&\fB\-fargument\-alias  \-fargument\-noalias 
728 \&\-fargument\-noalias\-global  \-fleading\-underscore 
729 \&\-ftls\-model=\fR\fImodel\fR 
730 \&\fB\-ftrapv  \-fwrapv  \-fbounds\-check 
731 \&\-fvisibility\fR
732 .Sh "Options Controlling the Kind of Output"
733 .IX Subsection "Options Controlling the Kind of Output"
734 Compilation can involve up to four stages: preprocessing, compilation
735 proper, assembly and linking, always in that order.  \s-1GCC\s0 is capable of
736 preprocessing and compiling several files either into several
737 assembler input files, or into one assembler input file; then each
738 assembler input file produces an object file, and linking combines all
739 the object files (those newly compiled, and those specified as input)
740 into an executable file.
741 .PP
742 For any given input file, the file name suffix determines what kind of
743 compilation is done:
744 .IP "\fIfile\fR\fB.c\fR" 4
745 .IX Item "file.c"
746 C source code which must be preprocessed.
747 .IP "\fIfile\fR\fB.i\fR" 4
748 .IX Item "file.i"
749 C source code which should not be preprocessed.
750 .IP "\fIfile\fR\fB.ii\fR" 4
751 .IX Item "file.ii"
752 \&\*(C+ source code which should not be preprocessed.
753 .IP "\fIfile\fR\fB.m\fR" 4
754 .IX Item "file.m"
755 Objective-C source code.  Note that you must link with the \fIlibobjc\fR
756 library to make an Objective-C program work.
757 .IP "\fIfile\fR\fB.mi\fR" 4
758 .IX Item "file.mi"
759 Objective-C source code which should not be preprocessed.
760 .IP "\fIfile\fR\fB.mm\fR" 4
761 .IX Item "file.mm"
762 .PD 0
763 .IP "\fIfile\fR\fB.M\fR" 4
764 .IX Item "file.M"
765 .PD
766 Objective\-\*(C+ source code.  Note that you must link with the \fIlibobjc\fR
767 library to make an Objective\-\*(C+ program work.  Note that \fB.M\fR refers
768 to a literal capital M.
769 .IP "\fIfile\fR\fB.mii\fR" 4
770 .IX Item "file.mii"
771 Objective\-\*(C+ source code which should not be preprocessed.
772 .IP "\fIfile\fR\fB.h\fR" 4
773 .IX Item "file.h"
774 C, \*(C+, Objective-C or Objective\-\*(C+ header file to be turned into a
775 precompiled header.
776 .IP "\fIfile\fR\fB.cc\fR" 4
777 .IX Item "file.cc"
778 .PD 0
779 .IP "\fIfile\fR\fB.cp\fR" 4
780 .IX Item "file.cp"
781 .IP "\fIfile\fR\fB.cxx\fR" 4
782 .IX Item "file.cxx"
783 .IP "\fIfile\fR\fB.cpp\fR" 4
784 .IX Item "file.cpp"
785 .IP "\fIfile\fR\fB.CPP\fR" 4
786 .IX Item "file.CPP"
787 .IP "\fIfile\fR\fB.c++\fR" 4
788 .IX Item "file.c++"
789 .IP "\fIfile\fR\fB.C\fR" 4
790 .IX Item "file.C"
791 .PD
792 \&\*(C+ source code which must be preprocessed.  Note that in \fB.cxx\fR,
793 the last two letters must both be literally \fBx\fR.  Likewise,
794 \&\fB.C\fR refers to a literal capital C.
795 .IP "\fIfile\fR\fB.hh\fR" 4
796 .IX Item "file.hh"
797 .PD 0
798 .IP "\fIfile\fR\fB.H\fR" 4
799 .IX Item "file.H"
800 .PD
801 \&\*(C+ header file to be turned into a precompiled header.
802 .IP "\fIfile\fR\fB.f\fR" 4
803 .IX Item "file.f"
804 .PD 0
805 .IP "\fIfile\fR\fB.for\fR" 4
806 .IX Item "file.for"
807 .IP "\fIfile\fR\fB.FOR\fR" 4
808 .IX Item "file.FOR"
809 .PD
810 Fortran source code which should not be preprocessed.
811 .IP "\fIfile\fR\fB.F\fR" 4
812 .IX Item "file.F"
813 .PD 0
814 .IP "\fIfile\fR\fB.fpp\fR" 4
815 .IX Item "file.fpp"
816 .IP "\fIfile\fR\fB.FPP\fR" 4
817 .IX Item "file.FPP"
818 .PD
819 Fortran source code which must be preprocessed (with the traditional
820 preprocessor).
821 .IP "\fIfile\fR\fB.r\fR" 4
822 .IX Item "file.r"
823 Fortran source code which must be preprocessed with a \s-1RATFOR\s0
824 preprocessor (not included with \s-1GCC\s0).
825 .IP "\fIfile\fR\fB.f90\fR" 4
826 .IX Item "file.f90"
827 .PD 0
828 .IP "\fIfile\fR\fB.f95\fR" 4
829 .IX Item "file.f95"
830 .PD
831 Fortran 90/95 source code which should not be preprocessed.
832 .IP "\fIfile\fR\fB.ads\fR" 4
833 .IX Item "file.ads"
834 Ada source code file which contains a library unit declaration (a
835 declaration of a package, subprogram, or generic, or a generic
836 instantiation), or a library unit renaming declaration (a package,
837 generic, or subprogram renaming declaration).  Such files are also
838 called \fIspecs\fR.
839 .IP "\fIfile\fR\fB.adb\fR" 4
840 .IX Item "file.adb"
841 Ada source code file containing a library unit body (a subprogram or
842 package body).  Such files are also called \fIbodies\fR.
843 .IP "\fIfile\fR\fB.s\fR" 4
844 .IX Item "file.s"
845 Assembler code.
846 .IP "\fIfile\fR\fB.S\fR" 4
847 .IX Item "file.S"
848 Assembler code which must be preprocessed.
849 .IP "\fIother\fR" 4
850 .IX Item "other"
851 An object file to be fed straight into linking.
852 Any file name with no recognized suffix is treated this way.
853 .PP
854 You can specify the input language explicitly with the \fB\-x\fR option:
855 .IP "\fB\-x\fR \fIlanguage\fR" 4
856 .IX Item "-x language"
857 Specify explicitly the \fIlanguage\fR for the following input files
858 (rather than letting the compiler choose a default based on the file
859 name suffix).  This option applies to all following input files until
860 the next \fB\-x\fR option.  Possible values for \fIlanguage\fR are:
861 .Sp
862 .Vb 10
863 \&        c  c-header  c-cpp-output
864 \&        c++  c++-header  c++-cpp-output
865 \&        objective-c  objective-c-header  objective-c-cpp-output
866 \&        objective-c++ objective-c++-header objective-c++-cpp-output
867 \&        assembler  assembler-with-cpp
868 \&        ada
869 \&        f77  f77-cpp-input  ratfor
870 \&        f95
871 \&        java
872 \&        treelang
873 .Ve
874 .IP "\fB\-x none\fR" 4
875 .IX Item "-x none"
876 Turn off any specification of a language, so that subsequent files are
877 handled according to their file name suffixes (as they are if \fB\-x\fR
878 has not been used at all).
879 .IP "\fB\-pass\-exit\-codes\fR" 4
880 .IX Item "-pass-exit-codes"
881 Normally the \fBgcc\fR program will exit with the code of 1 if any
882 phase of the compiler returns a non-success return code.  If you specify
883 \&\fB\-pass\-exit\-codes\fR, the \fBgcc\fR program will instead return with
884 numerically highest error produced by any phase that returned an error
885 indication.
886 .PP
887 If you only want some of the stages of compilation, you can use
888 \&\fB\-x\fR (or filename suffixes) to tell \fBgcc\fR where to start, and
889 one of the options \fB\-c\fR, \fB\-S\fR, or \fB\-E\fR to say where
890 \&\fBgcc\fR is to stop.  Note that some combinations (for example,
891 \&\fB\-x cpp-output \-E\fR) instruct \fBgcc\fR to do nothing at all.
892 .IP "\fB\-c\fR" 4
893 .IX Item "-c"
894 Compile or assemble the source files, but do not link.  The linking
895 stage simply is not done.  The ultimate output is in the form of an
896 object file for each source file.
897 .Sp
898 By default, the object file name for a source file is made by replacing
899 the suffix \fB.c\fR, \fB.i\fR, \fB.s\fR, etc., with \fB.o\fR.
900 .Sp
901 Unrecognized input files, not requiring compilation or assembly, are
902 ignored.
903 .IP "\fB\-S\fR" 4
904 .IX Item "-S"
905 Stop after the stage of compilation proper; do not assemble.  The output
906 is in the form of an assembler code file for each non-assembler input
907 file specified.
908 .Sp
909 By default, the assembler file name for a source file is made by
910 replacing the suffix \fB.c\fR, \fB.i\fR, etc., with \fB.s\fR.
911 .Sp
912 Input files that don't require compilation are ignored.
913 .IP "\fB\-E\fR" 4
914 .IX Item "-E"
915 Stop after the preprocessing stage; do not run the compiler proper.  The
916 output is in the form of preprocessed source code, which is sent to the
917 standard output.
918 .Sp
919 Input files which don't require preprocessing are ignored.
920 .IP "\fB\-o\fR \fIfile\fR" 4
921 .IX Item "-o file"
922 Place output in file \fIfile\fR.  This applies regardless to whatever
923 sort of output is being produced, whether it be an executable file,
924 an object file, an assembler file or preprocessed C code.
925 .Sp
926 If \fB\-o\fR is not specified, the default is to put an executable
927 file in \fIa.out\fR, the object file for
928 \&\fI\fIsource\fI.\fIsuffix\fI\fR in \fI\fIsource\fI.o\fR, its
929 assembler file in \fI\fIsource\fI.s\fR, a precompiled header file in
930 \&\fI\fIsource\fI.\fIsuffix\fI.gch\fR, and all preprocessed C source on
931 standard output.
932 .IP "\fB\-v\fR" 4
933 .IX Item "-v"
934 Print (on standard error output) the commands executed to run the stages
935 of compilation.  Also print the version number of the compiler driver
936 program and of the preprocessor and the compiler proper.
937 .IP "\fB\-###\fR" 4
938 .IX Item "-###"
939 Like \fB\-v\fR except the commands are not executed and all command
940 arguments are quoted.  This is useful for shell scripts to capture the
941 driver-generated command lines.
942 .IP "\fB\-pipe\fR" 4
943 .IX Item "-pipe"
944 Use pipes rather than temporary files for communication between the
945 various stages of compilation.  This fails to work on some systems where
946 the assembler is unable to read from a pipe; but the \s-1GNU\s0 assembler has
947 no trouble.
948 .IP "\fB\-combine\fR" 4
949 .IX Item "-combine"
950 If you are compiling multiple source files, this option tells the driver
951 to pass all the source files to the compiler at once (for those
952 languages for which the compiler can handle this).  This will allow
953 intermodule analysis (\s-1IMA\s0) to be performed by the compiler.  Currently the only
954 language for which this is supported is C.  If you pass source files for
955 multiple languages to the driver, using this option, the driver will invoke
956 the compiler(s) that support \s-1IMA\s0 once each, passing each compiler all the
957 source files appropriate for it.  For those languages that do not support
958 \&\s-1IMA\s0 this option will be ignored, and the compiler will be invoked once for
959 each source file in that language.  If you use this option in conjunction
960 with \fB\-save\-temps\fR, the compiler will generate multiple
961 pre-processed files
962 (one for each source file), but only one (combined) \fI.o\fR or
963 \&\fI.s\fR file.
964 .IP "\fB\-\-help\fR" 4
965 .IX Item "--help"
966 Print (on the standard output) a description of the command line options
967 understood by \fBgcc\fR.  If the \fB\-v\fR option is also specified
968 then \fB\-\-help\fR will also be passed on to the various processes
969 invoked by \fBgcc\fR, so that they can display the command line options
970 they accept.  If the \fB\-Wextra\fR option is also specified then command
971 line options which have no documentation associated with them will also
972 be displayed.
973 .IP "\fB\-\-target\-help\fR" 4
974 .IX Item "--target-help"
975 Print (on the standard output) a description of target specific command
976 line options for each tool.
977 .IP "\fB\-\-version\fR" 4
978 .IX Item "--version"
979 Display the version number and copyrights of the invoked \s-1GCC\s0.
980 .Sh "Compiling \*(C+ Programs"
981 .IX Subsection "Compiling  Programs"
982 \&\*(C+ source files conventionally use one of the suffixes \fB.C\fR,
983 \&\fB.cc\fR, \fB.cpp\fR, \fB.CPP\fR, \fB.c++\fR, \fB.cp\fR, or
984 \&\fB.cxx\fR; \*(C+ header files often use \fB.hh\fR or \fB.H\fR; and
985 preprocessed \*(C+ files use the suffix \fB.ii\fR.  \s-1GCC\s0 recognizes
986 files with these names and compiles them as \*(C+ programs even if you
987 call the compiler the same way as for compiling C programs (usually
988 with the name \fBgcc\fR).
989 .PP
990 However, \*(C+ programs often require class libraries as well as a
991 compiler that understands the \*(C+ language\-\-\-and under some
992 circumstances, you might want to compile programs or header files from
993 standard input, or otherwise without a suffix that flags them as \*(C+
994 programs.  You might also like to precompile a C header file with a
995 \&\fB.h\fR extension to be used in \*(C+ compilations.  \fBg++\fR is a
996 program that calls \s-1GCC\s0 with the default language set to \*(C+, and
997 automatically specifies linking against the \*(C+ library.  On many
998 systems, \fBg++\fR is also installed with the name \fBc++\fR.
999 .PP
1000 When you compile \*(C+ programs, you may specify many of the same
1001 command-line options that you use for compiling programs in any
1002 language; or command-line options meaningful for C and related
1003 languages; or options that are meaningful only for \*(C+ programs.
1004 .Sh "Options Controlling C Dialect"
1005 .IX Subsection "Options Controlling C Dialect"
1006 The following options control the dialect of C (or languages derived
1007 from C, such as \*(C+, Objective-C and Objective\-\*(C+) that the compiler
1008 accepts:
1009 .IP "\fB\-ansi\fR" 4
1010 .IX Item "-ansi"
1011 In C mode, support all \s-1ISO\s0 C90 programs.  In \*(C+ mode,
1012 remove \s-1GNU\s0 extensions that conflict with \s-1ISO\s0 \*(C+.
1013 .Sp
1014 This turns off certain features of \s-1GCC\s0 that are incompatible with \s-1ISO\s0
1015 C90 (when compiling C code), or of standard \*(C+ (when compiling \*(C+ code),
1016 such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, and
1017 predefined macros such as \f(CW\*(C`unix\*(C'\fR and \f(CW\*(C`vax\*(C'\fR that identify the
1018 type of system you are using.  It also enables the undesirable and
1019 rarely used \s-1ISO\s0 trigraph feature.  For the C compiler,
1020 it disables recognition of \*(C+ style \fB//\fR comments as well as
1021 the \f(CW\*(C`inline\*(C'\fR keyword.
1022 .Sp
1023 The alternate keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_extension_\|_\*(C'\fR,
1024 \&\f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR continue to work despite
1025 \&\fB\-ansi\fR.  You would not want to use them in an \s-1ISO\s0 C program, of
1026 course, but it is useful to put them in header files that might be included
1027 in compilations done with \fB\-ansi\fR.  Alternate predefined macros
1028 such as \f(CW\*(C`_\|_unix_\|_\*(C'\fR and \f(CW\*(C`_\|_vax_\|_\*(C'\fR are also available, with or
1029 without \fB\-ansi\fR.
1030 .Sp
1031 The \fB\-ansi\fR option does not cause non-ISO programs to be
1032 rejected gratuitously.  For that, \fB\-pedantic\fR is required in
1033 addition to \fB\-ansi\fR.  
1034 .Sp
1035 The macro \f(CW\*(C`_\|_STRICT_ANSI_\|_\*(C'\fR is predefined when the \fB\-ansi\fR
1036 option is used.  Some header files may notice this macro and refrain
1037 from declaring certain functions or defining certain macros that the
1038 \&\s-1ISO\s0 standard doesn't call for; this is to avoid interfering with any
1039 programs that might use these names for other things.
1040 .Sp
1041 Functions which would normally be built in but do not have semantics
1042 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
1043 functions with \fB\-ansi\fR is used.  
1044 .IP "\fB\-std=\fR" 4
1045 .IX Item "-std="
1046 Determine the language standard.  This option is currently only
1047 supported when compiling C or \*(C+.  A value for this option must be
1048 provided; possible values are
1049 .RS 4
1050 .IP "\fBc89\fR" 4
1051 .IX Item "c89"
1052 .PD 0
1053 .IP "\fBiso9899:1990\fR" 4
1054 .IX Item "iso9899:1990"
1055 .PD
1056 \&\s-1ISO\s0 C90 (same as \fB\-ansi\fR).
1057 .IP "\fBiso9899:199409\fR" 4
1058 .IX Item "iso9899:199409"
1059 \&\s-1ISO\s0 C90 as modified in amendment 1.
1060 .IP "\fBc99\fR" 4
1061 .IX Item "c99"
1062 .PD 0
1063 .IP "\fBc9x\fR" 4
1064 .IX Item "c9x"
1065 .IP "\fBiso9899:1999\fR" 4
1066 .IX Item "iso9899:1999"
1067 .IP "\fBiso9899:199x\fR" 4
1068 .IX Item "iso9899:199x"
1069 .PD
1070 \&\s-1ISO\s0 C99.  Note that this standard is not yet fully supported; see
1071 <\fBhttp://gcc.gnu.org/gcc\-4.0/c99status.html\fR> for more information.  The
1072 names \fBc9x\fR and \fBiso9899:199x\fR are deprecated.
1073 .IP "\fBgnu89\fR" 4
1074 .IX Item "gnu89"
1075 Default, \s-1ISO\s0 C90 plus \s-1GNU\s0 extensions (including some C99 features).
1076 .IP "\fBgnu99\fR" 4
1077 .IX Item "gnu99"
1078 .PD 0
1079 .IP "\fBgnu9x\fR" 4
1080 .IX Item "gnu9x"
1081 .PD
1082 \&\s-1ISO\s0 C99 plus \s-1GNU\s0 extensions.  When \s-1ISO\s0 C99 is fully implemented in \s-1GCC\s0,
1083 this will become the default.  The name \fBgnu9x\fR is deprecated.
1084 .IP "\fBc++98\fR" 4
1085 .IX Item "c++98"
1086 The 1998 \s-1ISO\s0 \*(C+ standard plus amendments.
1087 .IP "\fBgnu++98\fR" 4
1088 .IX Item "gnu++98"
1089 The same as \fB\-std=c++98\fR plus \s-1GNU\s0 extensions.  This is the
1090 default for \*(C+ code.
1091 .RE
1092 .RS 4
1093 .Sp
1094 Even when this option is not specified, you can still use some of the
1095 features of newer standards in so far as they do not conflict with
1096 previous C standards.  For example, you may use \f(CW\*(C`_\|_restrict_\|_\*(C'\fR even
1097 when \fB\-std=c99\fR is not specified.
1098 .Sp
1099 The \fB\-std\fR options specifying some version of \s-1ISO\s0 C have the same
1100 effects as \fB\-ansi\fR, except that features that were not in \s-1ISO\s0 C90
1101 but are in the specified version (for example, \fB//\fR comments and
1102 the \f(CW\*(C`inline\*(C'\fR keyword in \s-1ISO\s0 C99) are not disabled.
1103 .RE
1104 .IP "\fB\-aux\-info\fR \fIfilename\fR" 4
1105 .IX Item "-aux-info filename"
1106 Output to the given filename prototyped declarations for all functions
1107 declared and/or defined in a translation unit, including those in header
1108 files.  This option is silently ignored in any language other than C.
1109 .Sp
1110 Besides declarations, the file indicates, in comments, the origin of
1111 each declaration (source file and line), whether the declaration was
1112 implicit, prototyped or unprototyped (\fBI\fR, \fBN\fR for new or
1113 \&\fBO\fR for old, respectively, in the first character after the line
1114 number and the colon), and whether it came from a declaration or a
1115 definition (\fBC\fR or \fBF\fR, respectively, in the following
1116 character).  In the case of function definitions, a K&R\-style list of
1117 arguments followed by their declarations is also provided, inside
1118 comments, after the declaration.
1119 .IP "\fB\-fno\-asm\fR" 4
1120 .IX Item "-fno-asm"
1121 Do not recognize \f(CW\*(C`asm\*(C'\fR, \f(CW\*(C`inline\*(C'\fR or \f(CW\*(C`typeof\*(C'\fR as a
1122 keyword, so that code can use these words as identifiers.  You can use
1123 the keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR
1124 instead.  \fB\-ansi\fR implies \fB\-fno\-asm\fR.
1125 .Sp
1126 In \*(C+, this switch only affects the \f(CW\*(C`typeof\*(C'\fR keyword, since
1127 \&\f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`inline\*(C'\fR are standard keywords.  You may want to
1128 use the \fB\-fno\-gnu\-keywords\fR flag instead, which has the same
1129 effect.  In C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this
1130 switch only affects the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, since
1131 \&\f(CW\*(C`inline\*(C'\fR is a standard keyword in \s-1ISO\s0 C99.
1132 .IP "\fB\-fno\-builtin\fR" 4
1133 .IX Item "-fno-builtin"
1134 .PD 0
1135 .IP "\fB\-fno\-builtin\-\fR\fIfunction\fR" 4
1136 .IX Item "-fno-builtin-function"
1137 .PD
1138 Don't recognize built-in functions that do not begin with
1139 \&\fB_\|_builtin_\fR as prefix.  
1140 .Sp
1141 \&\s-1GCC\s0 normally generates special code to handle certain built-in functions
1142 more efficiently; for instance, calls to \f(CW\*(C`alloca\*(C'\fR may become single
1143 instructions that adjust the stack directly, and calls to \f(CW\*(C`memcpy\*(C'\fR
1144 may become inline copy loops.  The resulting code is often both smaller
1145 and faster, but since the function calls no longer appear as such, you
1146 cannot set a breakpoint on those calls, nor can you change the behavior
1147 of the functions by linking with a different library.  In addition,
1148 when a function is recognized as a built-in function, \s-1GCC\s0 may use
1149 information about that function to warn about problems with calls to
1150 that function, or to generate more efficient code, even if the
1151 resulting code still contains calls to that function.  For example,
1152 warnings are given with \fB\-Wformat\fR for bad calls to
1153 \&\f(CW\*(C`printf\*(C'\fR, when \f(CW\*(C`printf\*(C'\fR is built in, and \f(CW\*(C`strlen\*(C'\fR is
1154 known not to modify global memory.
1155 .Sp
1156 With the \fB\-fno\-builtin\-\fR\fIfunction\fR option
1157 only the built-in function \fIfunction\fR is
1158 disabled.  \fIfunction\fR must not begin with \fB_\|_builtin_\fR.  If a
1159 function is named this is not built-in in this version of \s-1GCC\s0, this
1160 option is ignored.  There is no corresponding
1161 \&\fB\-fbuiltin\-\fR\fIfunction\fR option; if you wish to enable
1162 built-in functions selectively when using \fB\-fno\-builtin\fR or
1163 \&\fB\-ffreestanding\fR, you may define macros such as:
1164 .Sp
1165 .Vb 2
1166 \&        #define abs(n)          __builtin_abs ((n))
1167 \&        #define strcpy(d, s)    __builtin_strcpy ((d), (s))
1168 .Ve
1169 .IP "\fB\-fhosted\fR" 4
1170 .IX Item "-fhosted"
1171 Assert that compilation takes place in a hosted environment.  This implies
1172 \&\fB\-fbuiltin\fR.  A hosted environment is one in which the
1173 entire standard library is available, and in which \f(CW\*(C`main\*(C'\fR has a return
1174 type of \f(CW\*(C`int\*(C'\fR.  Examples are nearly everything except a kernel.
1175 This is equivalent to \fB\-fno\-freestanding\fR.
1176 .IP "\fB\-ffreestanding\fR" 4
1177 .IX Item "-ffreestanding"
1178 Assert that compilation takes place in a freestanding environment.  This
1179 implies \fB\-fno\-builtin\fR.  A freestanding environment
1180 is one in which the standard library may not exist, and program startup may
1181 not necessarily be at \f(CW\*(C`main\*(C'\fR.  The most obvious example is an \s-1OS\s0 kernel.
1182 This is equivalent to \fB\-fno\-hosted\fR.
1183 .IP "\fB\-fms\-extensions\fR" 4
1184 .IX Item "-fms-extensions"
1185 Accept some non-standard constructs used in Microsoft header files.
1186 .Sp
1187 Some cases of unnamed fields in structures and unions are only
1188 accepted with this option.  
1189 .IP "\fB\-trigraphs\fR" 4
1190 .IX Item "-trigraphs"
1191 Support \s-1ISO\s0 C trigraphs.  The \fB\-ansi\fR option (and \fB\-std\fR
1192 options for strict \s-1ISO\s0 C conformance) implies \fB\-trigraphs\fR.
1193 .IP "\fB\-no\-integrated\-cpp\fR" 4
1194 .IX Item "-no-integrated-cpp"
1195 Performs a compilation in two passes: preprocessing and compiling.  This
1196 option allows a user supplied \*(L"cc1\*(R", \*(L"cc1plus\*(R", or \*(L"cc1obj\*(R" via the
1197 \&\fB\-B\fR option.  The user supplied compilation step can then add in
1198 an additional preprocessing step after normal preprocessing but before
1199 compiling.  The default is to use the integrated cpp (internal cpp)
1200 .Sp
1201 The semantics of this option will change if \*(L"cc1\*(R", \*(L"cc1plus\*(R", and
1202 \&\*(L"cc1obj\*(R" are merged.
1203 .IP "\fB\-traditional\fR" 4
1204 .IX Item "-traditional"
1205 .PD 0
1206 .IP "\fB\-traditional\-cpp\fR" 4
1207 .IX Item "-traditional-cpp"
1208 .PD
1209 Formerly, these options caused \s-1GCC\s0 to attempt to emulate a pre-standard
1210 C compiler.  They are now only supported with the \fB\-E\fR switch.
1211 The preprocessor continues to support a pre-standard mode.  See the \s-1GNU\s0
1212 \&\s-1CPP\s0 manual for details.
1213 .IP "\fB\-fcond\-mismatch\fR" 4
1214 .IX Item "-fcond-mismatch"
1215 Allow conditional expressions with mismatched types in the second and
1216 third arguments.  The value of such an expression is void.  This option
1217 is not supported for \*(C+.
1218 .IP "\fB\-funsigned\-char\fR" 4
1219 .IX Item "-funsigned-char"
1220 Let the type \f(CW\*(C`char\*(C'\fR be unsigned, like \f(CW\*(C`unsigned char\*(C'\fR.
1221 .Sp
1222 Each kind of machine has a default for what \f(CW\*(C`char\*(C'\fR should
1223 be.  It is either like \f(CW\*(C`unsigned char\*(C'\fR by default or like
1224 \&\f(CW\*(C`signed char\*(C'\fR by default.
1225 .Sp
1226 Ideally, a portable program should always use \f(CW\*(C`signed char\*(C'\fR or
1227 \&\f(CW\*(C`unsigned char\*(C'\fR when it depends on the signedness of an object.
1228 But many programs have been written to use plain \f(CW\*(C`char\*(C'\fR and
1229 expect it to be signed, or expect it to be unsigned, depending on the
1230 machines they were written for.  This option, and its inverse, let you
1231 make such a program work with the opposite default.
1232 .Sp
1233 The type \f(CW\*(C`char\*(C'\fR is always a distinct type from each of
1234 \&\f(CW\*(C`signed char\*(C'\fR or \f(CW\*(C`unsigned char\*(C'\fR, even though its behavior
1235 is always just like one of those two.
1236 .IP "\fB\-fsigned\-char\fR" 4
1237 .IX Item "-fsigned-char"
1238 Let the type \f(CW\*(C`char\*(C'\fR be signed, like \f(CW\*(C`signed char\*(C'\fR.
1239 .Sp
1240 Note that this is equivalent to \fB\-fno\-unsigned\-char\fR, which is
1241 the negative form of \fB\-funsigned\-char\fR.  Likewise, the option
1242 \&\fB\-fno\-signed\-char\fR is equivalent to \fB\-funsigned\-char\fR.
1243 .IP "\fB\-fsigned\-bitfields\fR" 4
1244 .IX Item "-fsigned-bitfields"
1245 .PD 0
1246 .IP "\fB\-funsigned\-bitfields\fR" 4
1247 .IX Item "-funsigned-bitfields"
1248 .IP "\fB\-fno\-signed\-bitfields\fR" 4
1249 .IX Item "-fno-signed-bitfields"
1250 .IP "\fB\-fno\-unsigned\-bitfields\fR" 4
1251 .IX Item "-fno-unsigned-bitfields"
1252 .PD
1253 These options control whether a bit-field is signed or unsigned, when the
1254 declaration does not use either \f(CW\*(C`signed\*(C'\fR or \f(CW\*(C`unsigned\*(C'\fR.  By
1255 default, such a bit-field is signed, because this is consistent: the
1256 basic integer types such as \f(CW\*(C`int\*(C'\fR are signed types.
1257 .Sh "Options Controlling \*(C+ Dialect"
1258 .IX Subsection "Options Controlling  Dialect"
1259 This section describes the command-line options that are only meaningful
1260 for \*(C+ programs; but you can also use most of the \s-1GNU\s0 compiler options
1261 regardless of what language your program is in.  For example, you
1262 might compile a file \f(CW\*(C`firstClass.C\*(C'\fR like this:
1263 .PP
1264 .Vb 1
1265 \&        g++ -g -frepo -O -c firstClass.C
1266 .Ve
1267 .PP
1268 In this example, only \fB\-frepo\fR is an option meant
1269 only for \*(C+ programs; you can use the other options with any
1270 language supported by \s-1GCC\s0.
1271 .PP
1272 Here is a list of options that are \fIonly\fR for compiling \*(C+ programs:
1273 .IP "\fB\-fabi\-version=\fR\fIn\fR" 4
1274 .IX Item "-fabi-version=n"
1275 Use version \fIn\fR of the \*(C+ \s-1ABI\s0.  Version 2 is the version of the
1276 \&\*(C+ \s-1ABI\s0 that first appeared in G++ 3.4.  Version 1 is the version of
1277 the \*(C+ \s-1ABI\s0 that first appeared in G++ 3.2.  Version 0 will always be
1278 the version that conforms most closely to the \*(C+ \s-1ABI\s0 specification.
1279 Therefore, the \s-1ABI\s0 obtained using version 0 will change as \s-1ABI\s0 bugs
1280 are fixed.
1281 .Sp
1282 The default is version 2.
1283 .IP "\fB\-fno\-access\-control\fR" 4
1284 .IX Item "-fno-access-control"
1285 Turn off all access checking.  This switch is mainly useful for working
1286 around bugs in the access control code.
1287 .IP "\fB\-fcheck\-new\fR" 4
1288 .IX Item "-fcheck-new"
1289 Check that the pointer returned by \f(CW\*(C`operator new\*(C'\fR is non-null
1290 before attempting to modify the storage allocated.  This check is
1291 normally unnecessary because the \*(C+ standard specifies that
1292 \&\f(CW\*(C`operator new\*(C'\fR will only return \f(CW0\fR if it is declared
1293 \&\fB\f(BIthrow()\fB\fR, in which case the compiler will always check the
1294 return value even without this option.  In all other cases, when
1295 \&\f(CW\*(C`operator new\*(C'\fR has a non-empty exception specification, memory
1296 exhaustion is signalled by throwing \f(CW\*(C`std::bad_alloc\*(C'\fR.  See also
1297 \&\fBnew (nothrow)\fR.
1298 .IP "\fB\-fconserve\-space\fR" 4
1299 .IX Item "-fconserve-space"
1300 Put uninitialized or runtime-initialized global variables into the
1301 common segment, as C does.  This saves space in the executable at the
1302 cost of not diagnosing duplicate definitions.  If you compile with this
1303 flag and your program mysteriously crashes after \f(CW\*(C`main()\*(C'\fR has
1304 completed, you may have an object that is being destroyed twice because
1305 two definitions were merged.
1306 .Sp
1307 This option is no longer useful on most targets, now that support has
1308 been added for putting variables into \s-1BSS\s0 without making them common.
1309 .IP "\fB\-fno\-const\-strings\fR" 4
1310 .IX Item "-fno-const-strings"
1311 Give string constants type \f(CW\*(C`char *\*(C'\fR instead of type \f(CW\*(C`const
1312 char *\*(C'\fR.  By default, G++ uses type \f(CW\*(C`const char *\*(C'\fR as required by
1313 the standard.  Even if you use \fB\-fno\-const\-strings\fR, you cannot
1314 actually modify the value of a string constant.
1315 .Sp
1316 This option might be removed in a future release of G++.  For maximum
1317 portability, you should structure your code so that it works with
1318 string constants that have type \f(CW\*(C`const char *\*(C'\fR.
1319 .IP "\fB\-fno\-elide\-constructors\fR" 4
1320 .IX Item "-fno-elide-constructors"
1321 The \*(C+ standard allows an implementation to omit creating a temporary
1322 which is only used to initialize another object of the same type.
1323 Specifying this option disables that optimization, and forces G++ to
1324 call the copy constructor in all cases.
1325 .IP "\fB\-fno\-enforce\-eh\-specs\fR" 4
1326 .IX Item "-fno-enforce-eh-specs"
1327 Don't check for violation of exception specifications at runtime.  This
1328 option violates the \*(C+ standard, but may be useful for reducing code
1329 size in production builds, much like defining \fB\s-1NDEBUG\s0\fR.  The compiler
1330 will still optimize based on the exception specifications.
1331 .IP "\fB\-ffor\-scope\fR" 4
1332 .IX Item "-ffor-scope"
1333 .PD 0
1334 .IP "\fB\-fno\-for\-scope\fR" 4
1335 .IX Item "-fno-for-scope"
1336 .PD
1337 If \fB\-ffor\-scope\fR is specified, the scope of variables declared in
1338 a \fIfor-init-statement\fR is limited to the \fBfor\fR loop itself,
1339 as specified by the \*(C+ standard.
1340 If \fB\-fno\-for\-scope\fR is specified, the scope of variables declared in
1341 a \fIfor-init-statement\fR extends to the end of the enclosing scope,
1342 as was the case in old versions of G++, and other (traditional)
1343 implementations of \*(C+.
1344 .Sp
1345 The default if neither flag is given to follow the standard,
1346 but to allow and give a warning for old-style code that would
1347 otherwise be invalid, or have different behavior.
1348 .IP "\fB\-fno\-gnu\-keywords\fR" 4
1349 .IX Item "-fno-gnu-keywords"
1350 Do not recognize \f(CW\*(C`typeof\*(C'\fR as a keyword, so that code can use this
1351 word as an identifier.  You can use the keyword \f(CW\*(C`_\|_typeof_\|_\*(C'\fR instead.
1352 \&\fB\-ansi\fR implies \fB\-fno\-gnu\-keywords\fR.
1353 .IP "\fB\-fno\-implicit\-templates\fR" 4
1354 .IX Item "-fno-implicit-templates"
1355 Never emit code for non-inline templates which are instantiated
1356 implicitly (i.e. by use); only emit code for explicit instantiations.
1357 .IP "\fB\-fno\-implicit\-inline\-templates\fR" 4
1358 .IX Item "-fno-implicit-inline-templates"
1359 Don't emit code for implicit instantiations of inline templates, either.
1360 The default is to handle inlines differently so that compiles with and
1361 without optimization will need the same set of explicit instantiations.
1362 .IP "\fB\-fno\-implement\-inlines\fR" 4
1363 .IX Item "-fno-implement-inlines"
1364 To save space, do not emit out-of-line copies of inline functions
1365 controlled by \fB#pragma implementation\fR.  This will cause linker
1366 errors if these functions are not inlined everywhere they are called.
1367 .IP "\fB\-fms\-extensions\fR" 4
1368 .IX Item "-fms-extensions"
1369 Disable pedantic warnings about constructs used in \s-1MFC\s0, such as implicit
1370 int and getting a pointer to member function via non-standard syntax.
1371 .IP "\fB\-fno\-nonansi\-builtins\fR" 4
1372 .IX Item "-fno-nonansi-builtins"
1373 Disable built-in declarations of functions that are not mandated by
1374 \&\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,
1375 \&\f(CW\*(C`index\*(C'\fR, \f(CW\*(C`bzero\*(C'\fR, \f(CW\*(C`conjf\*(C'\fR, and other related functions.
1376 .IP "\fB\-fno\-operator\-names\fR" 4
1377 .IX Item "-fno-operator-names"
1378 Do not treat the operator name keywords \f(CW\*(C`and\*(C'\fR, \f(CW\*(C`bitand\*(C'\fR,
1379 \&\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
1380 synonyms as keywords.
1381 .IP "\fB\-fno\-optional\-diags\fR" 4
1382 .IX Item "-fno-optional-diags"
1383 Disable diagnostics that the standard says a compiler does not need to
1384 issue.  Currently, the only such diagnostic issued by G++ is the one for
1385 a name having multiple meanings within a class.
1386 .IP "\fB\-fpermissive\fR" 4
1387 .IX Item "-fpermissive"
1388 Downgrade some diagnostics about nonconformant code from errors to
1389 warnings.  Thus, using \fB\-fpermissive\fR will allow some
1390 nonconforming code to compile.
1391 .IP "\fB\-frepo\fR" 4
1392 .IX Item "-frepo"
1393 Enable automatic template instantiation at link time.  This option also
1394 implies \fB\-fno\-implicit\-templates\fR.  
1395 .IP "\fB\-fno\-rtti\fR" 4
1396 .IX Item "-fno-rtti"
1397 Disable generation of information about every class with virtual
1398 functions for use by the \*(C+ runtime type identification features
1399 (\fBdynamic_cast\fR and \fBtypeid\fR).  If you don't use those parts
1400 of the language, you can save some space by using this flag.  Note that
1401 exception handling uses the same information, but it will generate it as
1402 needed.
1403 .IP "\fB\-fstats\fR" 4
1404 .IX Item "-fstats"
1405 Emit statistics about front-end processing at the end of the compilation.
1406 This information is generally only useful to the G++ development team.
1407 .IP "\fB\-ftemplate\-depth\-\fR\fIn\fR" 4
1408 .IX Item "-ftemplate-depth-n"
1409 Set the maximum instantiation depth for template classes to \fIn\fR.
1410 A limit on the template instantiation depth is needed to detect
1411 endless recursions during template class instantiation.  \s-1ANSI/ISO\s0 \*(C+
1412 conforming programs must not rely on a maximum depth greater than 17.
1413 .IP "\fB\-fno\-threadsafe\-statics\fR" 4
1414 .IX Item "-fno-threadsafe-statics"
1415 Do not emit the extra code to use the routines specified in the \*(C+
1416 \&\s-1ABI\s0 for thread-safe initialization of local statics.  You can use this
1417 option to reduce code size slightly in code that doesn't need to be
1418 thread\-safe.
1419 .IP "\fB\-fuse\-cxa\-atexit\fR" 4
1420 .IX Item "-fuse-cxa-atexit"
1421 Register destructors for objects with static storage duration with the
1422 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR function rather than the \f(CW\*(C`atexit\*(C'\fR function.
1423 This option is required for fully standards-compliant handling of static
1424 destructors, but will only work if your C library supports
1425 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR.
1426 .IP "\fB\-fvisibility\-inlines\-hidden\fR" 4
1427 .IX Item "-fvisibility-inlines-hidden"
1428 Causes all inlined methods to be marked with
1429 \&\f(CW\*(C`_\|_attribute_\|_ ((visibility ("hidden")))\*(C'\fR so that they do not
1430 appear in the export table of a \s-1DSO\s0 and do not require a \s-1PLT\s0 indirection
1431 when used within the \s-1DSO\s0.  Enabling this option can have a dramatic effect
1432 on load and link times of a \s-1DSO\s0 as it massively reduces the size of the
1433 dynamic export table when the library makes heavy use of templates.  While
1434 it can cause bloating through duplication of code within each \s-1DSO\s0 where
1435 it is used, often the wastage is less than the considerable space occupied
1436 by a long symbol name in the export table which is typical when using
1437 templates and namespaces.  For even more savings, combine with the
1438 \&\fB\-fvisibility=hidden\fR switch.
1439 .IP "\fB\-fno\-weak\fR" 4
1440 .IX Item "-fno-weak"
1441 Do not use weak symbol support, even if it is provided by the linker.
1442 By default, G++ will use weak symbols if they are available.  This
1443 option exists only for testing, and should not be used by end\-users;
1444 it will result in inferior code and has no benefits.  This option may
1445 be removed in a future release of G++.
1446 .IP "\fB\-nostdinc++\fR" 4
1447 .IX Item "-nostdinc++"
1448 Do not search for header files in the standard directories specific to
1449 \&\*(C+, but do still search the other standard directories.  (This option
1450 is used when building the \*(C+ library.)
1451 .PP
1452 In addition, these optimization, warning, and code generation options
1453 have meanings only for \*(C+ programs:
1454 .IP "\fB\-fno\-default\-inline\fR" 4
1455 .IX Item "-fno-default-inline"
1456 Do not assume \fBinline\fR for functions defined inside a class scope.
1457   Note that these
1458 functions will have linkage like inline functions; they just won't be
1459 inlined by default.
1460 .IP "\fB\-Wabi\fR (\*(C+ only)" 4
1461 .IX Item "-Wabi ( only)"
1462 Warn when G++ generates code that is probably not compatible with the
1463 vendor-neutral \*(C+ \s-1ABI\s0.  Although an effort has been made to warn about
1464 all such cases, there are probably some cases that are not warned about,
1465 even though G++ is generating incompatible code.  There may also be
1466 cases where warnings are emitted even though the code that is generated
1467 will be compatible.
1468 .Sp
1469 You should rewrite your code to avoid these warnings if you are
1470 concerned about the fact that code generated by G++ may not be binary
1471 compatible with code generated by other compilers.
1472 .Sp
1473 The known incompatibilities at this point include:
1474 .RS 4
1475 .IP "\(bu" 4
1476 Incorrect handling of tail-padding for bit\-fields.  G++ may attempt to
1477 pack data into the same byte as a base class.  For example:
1478 .Sp
1479 .Vb 2
1480 \&        struct A { virtual void f(); int f1 : 1; };
1481 \&        struct B : public A { int f2 : 1; };
1482 .Ve
1483 .Sp
1484 In this case, G++ will place \f(CW\*(C`B::f2\*(C'\fR into the same byte
1485 as\f(CW\*(C`A::f1\*(C'\fR; other compilers will not.  You can avoid this problem
1486 by explicitly padding \f(CW\*(C`A\*(C'\fR so that its size is a multiple of the
1487 byte size on your platform; that will cause G++ and other compilers to
1488 layout \f(CW\*(C`B\*(C'\fR identically.
1489 .IP "\(bu" 4
1490 Incorrect handling of tail-padding for virtual bases.  G++ does not use
1491 tail padding when laying out virtual bases.  For example:
1492 .Sp
1493 .Vb 3
1494 \&        struct A { virtual void f(); char c1; };
1495 \&        struct B { B(); char c2; };
1496 \&        struct C : public A, public virtual B {};
1497 .Ve
1498 .Sp
1499 In this case, G++ will not place \f(CW\*(C`B\*(C'\fR into the tail-padding for
1500 \&\f(CW\*(C`A\*(C'\fR; other compilers will.  You can avoid this problem by
1501 explicitly padding \f(CW\*(C`A\*(C'\fR so that its size is a multiple of its
1502 alignment (ignoring virtual base classes); that will cause G++ and other
1503 compilers to layout \f(CW\*(C`C\*(C'\fR identically.
1504 .IP "\(bu" 4
1505 Incorrect handling of bit-fields with declared widths greater than that
1506 of their underlying types, when the bit-fields appear in a union.  For
1507 example:
1508 .Sp
1509 .Vb 1
1510 \&        union U { int i : 4096; };
1511 .Ve
1512 .Sp
1513 Assuming that an \f(CW\*(C`int\*(C'\fR does not have 4096 bits, G++ will make the
1514 union too small by the number of bits in an \f(CW\*(C`int\*(C'\fR.
1515 .IP "\(bu" 4
1516 Empty classes can be placed at incorrect offsets.  For example:
1517 .Sp
1518 .Vb 1
1519 \&        struct A {};
1520 .Ve
1521 .Sp
1522 .Vb 4
1523 \&        struct B {
1524 \&          A a;
1525 \&          virtual void f ();
1526 \&        };
1527 .Ve
1528 .Sp
1529 .Vb 1
1530 \&        struct C : public B, public A {};
1531 .Ve
1532 .Sp
1533 G++ will place the \f(CW\*(C`A\*(C'\fR base class of \f(CW\*(C`C\*(C'\fR at a nonzero offset;
1534 it should be placed at offset zero.  G++ mistakenly believes that the
1535 \&\f(CW\*(C`A\*(C'\fR data member of \f(CW\*(C`B\*(C'\fR is already at offset zero.
1536 .IP "\(bu" 4
1537 Names of template functions whose types involve \f(CW\*(C`typename\*(C'\fR or
1538 template template parameters can be mangled incorrectly.
1539 .Sp
1540 .Vb 2
1541 \&        template <typename Q>
1542 \&        void f(typename Q::X) {}
1543 .Ve
1544 .Sp
1545 .Vb 2
1546 \&        template <template <typename> class Q>
1547 \&        void f(typename Q<int>::X) {}
1548 .Ve
1549 .Sp
1550 Instantiations of these templates may be mangled incorrectly.
1551 .RE
1552 .RS 4
1553 .RE
1554 .IP "\fB\-Wctor\-dtor\-privacy\fR (\*(C+ only)" 4
1555 .IX Item "-Wctor-dtor-privacy ( only)"
1556 Warn when a class seems unusable because all the constructors or
1557 destructors in that class are private, and it has neither friends nor
1558 public static member functions.
1559 .IP "\fB\-Wnon\-virtual\-dtor\fR (\*(C+ only)" 4
1560 .IX Item "-Wnon-virtual-dtor ( only)"
1561 Warn when a class appears to be polymorphic, thereby requiring a virtual
1562 destructor, yet it declares a non-virtual one.
1563 This warning is enabled by \fB\-Wall\fR.
1564 .IP "\fB\-Wreorder\fR (\*(C+ only)" 4
1565 .IX Item "-Wreorder ( only)"
1566 Warn when the order of member initializers given in the code does not
1567 match the order in which they must be executed.  For instance:
1568 .Sp
1569 .Vb 5
1570 \&        struct A {
1571 \&          int i;
1572 \&          int j;
1573 \&          A(): j (0), i (1) { }
1574 \&        };
1575 .Ve
1576 .Sp
1577 The compiler will rearrange the member initializers for \fBi\fR
1578 and \fBj\fR to match the declaration order of the members, emitting
1579 a warning to that effect.  This warning is enabled by \fB\-Wall\fR.
1580 .PP
1581 The following \fB\-W...\fR options are not affected by \fB\-Wall\fR.
1582 .IP "\fB\-Weffc++\fR (\*(C+ only)" 4
1583 .IX Item "-Weffc++ ( only)"
1584 Warn about violations of the following style guidelines from Scott Meyers'
1585 \&\fIEffective \*(C+\fR book:
1586 .RS 4
1587 .IP "\(bu" 4
1588 Item 11:  Define a copy constructor and an assignment operator for classes
1589 with dynamically allocated memory.
1590 .IP "\(bu" 4
1591 Item 12:  Prefer initialization to assignment in constructors.
1592 .IP "\(bu" 4
1593 Item 14:  Make destructors virtual in base classes.
1594 .IP "\(bu" 4
1595 Item 15:  Have \f(CW\*(C`operator=\*(C'\fR return a reference to \f(CW*this\fR.
1596 .IP "\(bu" 4
1597 Item 23:  Don't try to return a reference when you must return an object.
1598 .RE
1599 .RS 4
1600 .Sp
1601 Also warn about violations of the following style guidelines from
1602 Scott Meyers' \fIMore Effective \*(C+\fR book:
1603 .IP "\(bu" 4
1604 Item 6:  Distinguish between prefix and postfix forms of increment and
1605 decrement operators.
1606 .IP "\(bu" 4
1607 Item 7:  Never overload \f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`||\*(C'\fR, or \f(CW\*(C`,\*(C'\fR.
1608 .RE
1609 .RS 4
1610 .Sp
1611 When selecting this option, be aware that the standard library
1612 headers do not obey all of these guidelines; use \fBgrep \-v\fR
1613 to filter out those warnings.
1614 .RE
1615 .IP "\fB\-Wno\-deprecated\fR (\*(C+ only)" 4
1616 .IX Item "-Wno-deprecated ( only)"
1617 Do not warn about usage of deprecated features.  
1618 .IP "\fB\-Wno\-non\-template\-friend\fR (\*(C+ only)" 4
1619 .IX Item "-Wno-non-template-friend ( only)"
1620 Disable warnings when non-templatized friend functions are declared
1621 within a template.  Since the advent of explicit template specification
1622 support in G++, if the name of the friend is an unqualified-id (i.e.,
1623 \&\fBfriend foo(int)\fR), the \*(C+ language specification demands that the
1624 friend declare or define an ordinary, nontemplate function.  (Section
1625 14.5.3).  Before G++ implemented explicit specification, unqualified-ids
1626 could be interpreted as a particular specialization of a templatized
1627 function.  Because this non-conforming behavior is no longer the default
1628 behavior for G++, \fB\-Wnon\-template\-friend\fR allows the compiler to
1629 check existing code for potential trouble spots and is on by default.
1630 This new compiler behavior can be turned off with
1631 \&\fB\-Wno\-non\-template\-friend\fR which keeps the conformant compiler code
1632 but disables the helpful warning.
1633 .IP "\fB\-Wold\-style\-cast\fR (\*(C+ only)" 4
1634 .IX Item "-Wold-style-cast ( only)"
1635 Warn if an old-style (C\-style) cast to a non-void type is used within
1636 a \*(C+ program.  The new-style casts (\fBstatic_cast\fR,
1637 \&\fBreinterpret_cast\fR, and \fBconst_cast\fR) are less vulnerable to
1638 unintended effects and much easier to search for.
1639 .IP "\fB\-Woverloaded\-virtual\fR (\*(C+ only)" 4
1640 .IX Item "-Woverloaded-virtual ( only)"
1641 Warn when a function declaration hides virtual functions from a
1642 base class.  For example, in:
1643 .Sp
1644 .Vb 3
1645 \&        struct A {
1646 \&          virtual void f();
1647 \&        };
1648 .Ve
1649 .Sp
1650 .Vb 3
1651 \&        struct B: public A {
1652 \&          void f(int);
1653 \&        };
1654 .Ve
1655 .Sp
1656 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
1657 like:
1658 .Sp
1659 .Vb 2
1660 \&        B* b;
1661 \&        b->f();
1662 .Ve
1663 .Sp
1664 will fail to compile.
1665 .IP "\fB\-Wno\-pmf\-conversions\fR (\*(C+ only)" 4
1666 .IX Item "-Wno-pmf-conversions ( only)"
1667 Disable the diagnostic for converting a bound pointer to member function
1668 to a plain pointer.
1669 .IP "\fB\-Wsign\-promo\fR (\*(C+ only)" 4
1670 .IX Item "-Wsign-promo ( only)"
1671 Warn when overload resolution chooses a promotion from unsigned or
1672 enumerated type to a signed type, over a conversion to an unsigned type of
1673 the same size.  Previous versions of G++ would try to preserve
1674 unsignedness, but the standard mandates the current behavior.
1675 .Sp
1676 .Vb 4
1677 \&        struct A {
1678 \&          operator int ();
1679 \&          A& operator = (int);
1680 \&        };
1681 .Ve
1682 .Sp
1683 .Vb 5
1684 \&        main ()
1685 \&        {
1686 \&          A a,b;
1687 \&          a = b;
1688 \&        }
1689 .Ve
1690 .Sp
1691 In this example, G++ will synthesize a default \fBA& operator =
1692 (const A&);\fR, while cfront will use the user-defined \fBoperator =\fR.
1693 .Sh "Options Controlling Objective-C and Objective\-\*(C+ Dialects"
1694 .IX Subsection "Options Controlling Objective-C and Objective- Dialects"
1695 (\s-1NOTE:\s0 This manual does not describe the Objective-C and Objective\-\*(C+
1696 languages themselves.  See 
1697 .PP
1698 This section describes the command-line options that are only meaningful
1699 for Objective-C and Objective\-\*(C+ programs, but you can also use most of
1700 the language-independent \s-1GNU\s0 compiler options.
1701 For example, you might compile a file \f(CW\*(C`some_class.m\*(C'\fR like this:
1702 .PP
1703 .Vb 1
1704 \&        gcc -g -fgnu-runtime -O -c some_class.m
1705 .Ve
1706 .PP
1707 In this example, \fB\-fgnu\-runtime\fR is an option meant only for
1708 Objective-C and Objective\-\*(C+ programs; you can use the other options with
1709 any language supported by \s-1GCC\s0.
1710 .PP
1711 Note that since Objective-C is an extension of the C language, Objective-C
1712 compilations may also use options specific to the C front-end (e.g.,
1713 \&\fB\-Wtraditional\fR).  Similarly, Objective\-\*(C+ compilations may use
1714 \&\*(C+\-specific options (e.g., \fB\-Wabi\fR).
1715 .PP
1716 Here is a list of options that are \fIonly\fR for compiling Objective-C
1717 and Objective\-\*(C+ programs:
1718 .IP "\fB\-fconstant\-string\-class=\fR\fIclass-name\fR" 4
1719 .IX Item "-fconstant-string-class=class-name"
1720 Use \fIclass-name\fR as the name of the class to instantiate for each
1721 literal string specified with the syntax \f(CW\*(C`@"..."\*(C'\fR.  The default
1722 class name is \f(CW\*(C`NXConstantString\*(C'\fR if the \s-1GNU\s0 runtime is being used, and
1723 \&\f(CW\*(C`NSConstantString\*(C'\fR if the NeXT runtime is being used (see below).  The
1724 \&\fB\-fconstant\-cfstrings\fR option, if also present, will override the
1725 \&\fB\-fconstant\-string\-class\fR setting and cause \f(CW\*(C`@"..."\*(C'\fR literals
1726 to be laid out as constant CoreFoundation strings.
1727 .IP "\fB\-fgnu\-runtime\fR" 4
1728 .IX Item "-fgnu-runtime"
1729 Generate object code compatible with the standard \s-1GNU\s0 Objective-C
1730 runtime.  This is the default for most types of systems.
1731 .IP "\fB\-fnext\-runtime\fR" 4
1732 .IX Item "-fnext-runtime"
1733 Generate output compatible with the NeXT runtime.  This is the default
1734 for NeXT-based systems, including Darwin and Mac \s-1OS\s0 X.  The macro
1735 \&\f(CW\*(C`_\|_NEXT_RUNTIME_\|_\*(C'\fR is predefined if (and only if) this option is
1736 used.
1737 .IP "\fB\-fno\-nil\-receivers\fR" 4
1738 .IX Item "-fno-nil-receivers"
1739 Assume that all Objective-C message dispatches (e.g.,
1740 \&\f(CW\*(C`[receiver message:arg]\*(C'\fR) in this translation unit ensure that the receiver
1741 is not \f(CW\*(C`nil\*(C'\fR.  This allows for more efficient entry points in the runtime
1742 to be used.  Currently, this option is only available in conjunction with
1743 the NeXT runtime on Mac \s-1OS\s0 X 10.3 and later.
1744 .IP "\fB\-fobjc\-exceptions\fR" 4
1745 .IX Item "-fobjc-exceptions"
1746 Enable syntactic support for structured exception handling in Objective\-C,
1747 similar to what is offered by \*(C+ and Java.  Currently, this option is only
1748 available in conjunction with the NeXT runtime on Mac \s-1OS\s0 X 10.3 and later.
1749 .Sp
1750 .Vb 23
1751 \&          @try {
1752 \&            ...
1753 \&               @throw expr;
1754 \&            ...
1755 \&          }
1756 \&          @catch (AnObjCClass *exc) {
1757 \&            ...
1758 \&              @throw expr;
1759 \&            ...
1760 \&              @throw;
1761 \&            ...
1762 \&          }
1763 \&          @catch (AnotherClass *exc) {
1764 \&            ...
1765 \&          }
1766 \&          @catch (id allOthers) {
1767 \&            ...
1768 \&          }
1769 \&          @finally {
1770 \&            ...
1771 \&              @throw expr;
1772 \&            ...
1773 \&          }
1774 .Ve
1775 .Sp
1776 The \f(CW@throw\fR statement may appear anywhere in an Objective-C or
1777 Objective\-\*(C+ program; when used inside of a \f(CW@catch\fR block, the
1778 \&\f(CW@throw\fR may appear without an argument (as shown above), in which case
1779 the object caught by the \f(CW@catch\fR will be rethrown.
1780 .Sp
1781 Note that only (pointers to) Objective-C objects may be thrown and
1782 caught using this scheme.  When an object is thrown, it will be caught
1783 by the nearest \f(CW@catch\fR clause capable of handling objects of that type,
1784 analogously to how \f(CW\*(C`catch\*(C'\fR blocks work in \*(C+ and Java.  A
1785 \&\f(CW\*(C`@catch(id ...)\*(C'\fR clause (as shown above) may also be provided to catch
1786 any and all Objective-C exceptions not caught by previous \f(CW@catch\fR
1787 clauses (if any).
1788 .Sp
1789 The \f(CW@finally\fR clause, if present, will be executed upon exit from the
1790 immediately preceding \f(CW\*(C`@try ... @catch\*(C'\fR section.  This will happen
1791 regardless of whether any exceptions are thrown, caught or rethrown
1792 inside the \f(CW\*(C`@try ... @catch\*(C'\fR section, analogously to the behavior
1793 of the \f(CW\*(C`finally\*(C'\fR clause in Java.
1794 .Sp
1795 There are several caveats to using the new exception mechanism:
1796 .RS 4
1797 .IP "\(bu" 4
1798 Although currently designed to be binary compatible with \f(CW\*(C`NS_HANDLER\*(C'\fR\-style
1799 idioms provided by the \f(CW\*(C`NSException\*(C'\fR class, the new
1800 exceptions can only be used on Mac \s-1OS\s0 X 10.3 (Panther) and later
1801 systems, due to additional functionality needed in the (NeXT) Objective-C
1802 runtime.
1803 .IP "\(bu" 4
1804 As mentioned above, the new exceptions do not support handling
1805 types other than Objective-C objects.   Furthermore, when used from
1806 Objective\-\*(C+, the Objective-C exception model does not interoperate with \*(C+
1807 exceptions at this time.  This means you cannot \f(CW@throw\fR an exception
1808 from Objective-C and \f(CW\*(C`catch\*(C'\fR it in \*(C+, or vice versa
1809 (i.e., \f(CW\*(C`throw ... @catch\*(C'\fR).
1810 .RE
1811 .RS 4
1812 .Sp
1813 The \fB\-fobjc\-exceptions\fR switch also enables the use of synchronization
1814 blocks for thread-safe execution:
1815 .Sp
1816 .Vb 3
1817 \&          @synchronized (ObjCClass *guard) {
1818 \&            ...
1819 \&          }
1820 .Ve
1821 .Sp
1822 Upon entering the \f(CW@synchronized\fR block, a thread of execution shall
1823 first check whether a lock has been placed on the corresponding \f(CW\*(C`guard\*(C'\fR
1824 object by another thread.  If it has, the current thread shall wait until
1825 the other thread relinquishes its lock.  Once \f(CW\*(C`guard\*(C'\fR becomes available,
1826 the current thread will place its own lock on it, execute the code contained in
1827 the \f(CW@synchronized\fR block, and finally relinquish the lock (thereby
1828 making \f(CW\*(C`guard\*(C'\fR available to other threads).
1829 .Sp
1830 Unlike Java, Objective-C does not allow for entire methods to be marked
1831 \&\f(CW@synchronized\fR.  Note that throwing exceptions out of
1832 \&\f(CW@synchronized\fR blocks is allowed, and will cause the guarding object
1833 to be unlocked properly.
1834 .RE
1835 .IP "\fB\-freplace\-objc\-classes\fR" 4
1836 .IX Item "-freplace-objc-classes"
1837 Emit a special marker instructing \fB\f(BIld\fB\|(1)\fR not to statically link in
1838 the resulting object file, and allow \fB\f(BIdyld\fB\|(1)\fR to load it in at
1839 run time instead.  This is used in conjunction with the Fix-and-Continue
1840 debugging mode, where the object file in question may be recompiled and
1841 dynamically reloaded in the course of program execution, without the need
1842 to restart the program itself.  Currently, Fix-and-Continue functionality
1843 is only available in conjunction with the NeXT runtime on Mac \s-1OS\s0 X 10.3
1844 and later.
1845 .IP "\fB\-fzero\-link\fR" 4
1846 .IX Item "-fzero-link"
1847 When compiling for the NeXT runtime, the compiler ordinarily replaces calls
1848 to \f(CW\*(C`objc_getClass("...")\*(C'\fR (when the name of the class is known at
1849 compile time) with static class references that get initialized at load time,
1850 which improves run-time performance.  Specifying the \fB\-fzero\-link\fR flag
1851 suppresses this behavior and causes calls to \f(CW\*(C`objc_getClass("...")\*(C'\fR
1852 to be retained.  This is useful in Zero-Link debugging mode, since it allows
1853 for individual class implementations to be modified during program execution.
1854 .IP "\fB\-gen\-decls\fR" 4
1855 .IX Item "-gen-decls"
1856 Dump interface declarations for all classes seen in the source file to a
1857 file named \fI\fIsourcename\fI.decl\fR.
1858 .IP "\fB\-Wno\-protocol\fR" 4
1859 .IX Item "-Wno-protocol"
1860 If a class is declared to implement a protocol, a warning is issued for
1861 every method in the protocol that is not implemented by the class.  The
1862 default behavior is to issue a warning for every method not explicitly
1863 implemented in the class, even if a method implementation is inherited
1864 from the superclass.  If you use the \fB\-Wno\-protocol\fR option, then
1865 methods inherited from the superclass are considered to be implemented,
1866 and no warning is issued for them.
1867 .IP "\fB\-Wselector\fR" 4
1868 .IX Item "-Wselector"
1869 Warn if multiple methods of different types for the same selector are
1870 found during compilation.  The check is performed on the list of methods
1871 in the final stage of compilation.  Additionally, a check is performed
1872 for each selector appearing in a \f(CW\*(C`@selector(...)\*(C'\fR
1873 expression, and a corresponding method for that selector has been found
1874 during compilation.  Because these checks scan the method table only at
1875 the end of compilation, these warnings are not produced if the final
1876 stage of compilation is not reached, for example because an error is
1877 found during compilation, or because the \fB\-fsyntax\-only\fR option is
1878 being used.
1879 .IP "\fB\-Wundeclared\-selector\fR" 4
1880 .IX Item "-Wundeclared-selector"
1881 Warn if a \f(CW\*(C`@selector(...)\*(C'\fR expression referring to an
1882 undeclared selector is found.  A selector is considered undeclared if no
1883 method with that name has been declared before the
1884 \&\f(CW\*(C`@selector(...)\*(C'\fR expression, either explicitly in an
1885 \&\f(CW@interface\fR or \f(CW@protocol\fR declaration, or implicitly in
1886 an \f(CW@implementation\fR section.  This option always performs its
1887 checks as soon as a \f(CW\*(C`@selector(...)\*(C'\fR expression is found,
1888 while \fB\-Wselector\fR only performs its checks in the final stage of
1889 compilation.  This also enforces the coding style convention
1890 that methods and selectors must be declared before being used.
1891 .IP "\fB\-print\-objc\-runtime\-info\fR" 4
1892 .IX Item "-print-objc-runtime-info"
1893 Generate C header describing the largest structure that is passed by
1894 value, if any.
1895 .Sh "Options to Control Diagnostic Messages Formatting"
1896 .IX Subsection "Options to Control Diagnostic Messages Formatting"
1897 Traditionally, diagnostic messages have been formatted irrespective of
1898 the output device's aspect (e.g. its width, ...).  The options described
1899 below can be used to control the diagnostic messages formatting
1900 algorithm, e.g. how many characters per line, how often source location
1901 information should be reported.  Right now, only the \*(C+ front end can
1902 honor these options.  However it is expected, in the near future, that
1903 the remaining front ends would be able to digest them correctly.
1904 .IP "\fB\-fmessage\-length=\fR\fIn\fR" 4
1905 .IX Item "-fmessage-length=n"
1906 Try to format error messages so that they fit on lines of about \fIn\fR
1907 characters.  The default is 72 characters for \fBg++\fR and 0 for the rest of
1908 the front ends supported by \s-1GCC\s0.  If \fIn\fR is zero, then no
1909 line-wrapping will be done; each error message will appear on a single
1910 line.
1911 .IP "\fB\-fdiagnostics\-show\-location=once\fR" 4
1912 .IX Item "-fdiagnostics-show-location=once"
1913 Only meaningful in line-wrapping mode.  Instructs the diagnostic messages
1914 reporter to emit \fIonce\fR source location information; that is, in
1915 case the message is too long to fit on a single physical line and has to
1916 be wrapped, the source location won't be emitted (as prefix) again,
1917 over and over, in subsequent continuation lines.  This is the default
1918 behavior.
1919 .IP "\fB\-fdiagnostics\-show\-location=every\-line\fR" 4
1920 .IX Item "-fdiagnostics-show-location=every-line"
1921 Only meaningful in line-wrapping mode.  Instructs the diagnostic
1922 messages reporter to emit the same source location information (as
1923 prefix) for physical lines that result from the process of breaking
1924 a message which is too long to fit on a single line.
1925 .Sh "Options to Request or Suppress Warnings"
1926 .IX Subsection "Options to Request or Suppress Warnings"
1927 Warnings are diagnostic messages that report constructions which
1928 are not inherently erroneous but which are risky or suggest there
1929 may have been an error.
1930 .PP
1931 You can request many specific warnings with options beginning \fB\-W\fR,
1932 for example \fB\-Wimplicit\fR to request warnings on implicit
1933 declarations.  Each of these specific warning options also has a
1934 negative form beginning \fB\-Wno\-\fR to turn off warnings;
1935 for example, \fB\-Wno\-implicit\fR.  This manual lists only one of the
1936 two forms, whichever is not the default.
1937 .PP
1938 The following options control the amount and kinds of warnings produced
1939 by \s-1GCC\s0; for further, language-specific options also refer to
1940 \&\fB\*(C+ Dialect Options\fR and \fBObjective-C and Objective\-\*(C+ Dialect
1941 Options\fR.
1942 .IP "\fB\-fsyntax\-only\fR" 4
1943 .IX Item "-fsyntax-only"
1944 Check the code for syntax errors, but don't do anything beyond that.
1945 .IP "\fB\-pedantic\fR" 4
1946 .IX Item "-pedantic"
1947 Issue all the warnings demanded by strict \s-1ISO\s0 C and \s-1ISO\s0 \*(C+;
1948 reject all programs that use forbidden extensions, and some other
1949 programs that do not follow \s-1ISO\s0 C and \s-1ISO\s0 \*(C+.  For \s-1ISO\s0 C, follows the
1950 version of the \s-1ISO\s0 C standard specified by any \fB\-std\fR option used.
1951 .Sp
1952 Valid \s-1ISO\s0 C and \s-1ISO\s0 \*(C+ programs should compile properly with or without
1953 this option (though a rare few will require \fB\-ansi\fR or a
1954 \&\fB\-std\fR option specifying the required version of \s-1ISO\s0 C).  However,
1955 without this option, certain \s-1GNU\s0 extensions and traditional C and \*(C+
1956 features are supported as well.  With this option, they are rejected.
1957 .Sp
1958 \&\fB\-pedantic\fR does not cause warning messages for use of the
1959 alternate keywords whose names begin and end with \fB_\|_\fR.  Pedantic
1960 warnings are also disabled in the expression that follows
1961 \&\f(CW\*(C`_\|_extension_\|_\*(C'\fR.  However, only system header files should use
1962 these escape routes; application programs should avoid them.
1963 .Sp
1964 Some users try to use \fB\-pedantic\fR to check programs for strict \s-1ISO\s0
1965 C conformance.  They soon find that it does not do quite what they want:
1966 it finds some non-ISO practices, but not all\-\-\-only those for which
1967 \&\s-1ISO\s0 C \fIrequires\fR a diagnostic, and some others for which
1968 diagnostics have been added.
1969 .Sp
1970 A feature to report any failure to conform to \s-1ISO\s0 C might be useful in
1971 some instances, but would require considerable additional work and would
1972 be quite different from \fB\-pedantic\fR.  We don't have plans to
1973 support such a feature in the near future.
1974 .Sp
1975 Where the standard specified with \fB\-std\fR represents a \s-1GNU\s0
1976 extended dialect of C, such as \fBgnu89\fR or \fBgnu99\fR, there is a
1977 corresponding \fIbase standard\fR, the version of \s-1ISO\s0 C on which the \s-1GNU\s0
1978 extended dialect is based.  Warnings from \fB\-pedantic\fR are given
1979 where they are required by the base standard.  (It would not make sense
1980 for such warnings to be given only for features not in the specified \s-1GNU\s0
1981 C dialect, since by definition the \s-1GNU\s0 dialects of C include all
1982 features the compiler supports with the given option, and there would be
1983 nothing to warn about.)
1984 .IP "\fB\-pedantic\-errors\fR" 4
1985 .IX Item "-pedantic-errors"
1986 Like \fB\-pedantic\fR, except that errors are produced rather than
1987 warnings.
1988 .IP "\fB\-w\fR" 4
1989 .IX Item "-w"
1990 Inhibit all warning messages.
1991 .IP "\fB\-Wno\-import\fR" 4
1992 .IX Item "-Wno-import"
1993 Inhibit warning messages about the use of \fB#import\fR.
1994 .IP "\fB\-Wchar\-subscripts\fR" 4
1995 .IX Item "-Wchar-subscripts"
1996 Warn if an array subscript has type \f(CW\*(C`char\*(C'\fR.  This is a common cause
1997 of error, as programmers often forget that this type is signed on some
1998 machines.
1999 This warning is enabled by \fB\-Wall\fR.
2000 .IP "\fB\-Wcomment\fR" 4
2001 .IX Item "-Wcomment"
2002 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
2003 comment, or whenever a Backslash-Newline appears in a \fB//\fR comment.
2004 This warning is enabled by \fB\-Wall\fR.
2005 .IP "\fB\-Wfatal\-errors\fR" 4
2006 .IX Item "-Wfatal-errors"
2007 This option causes the compiler to abort compilation on the first error
2008 occurred rather than trying to keep going and printing further error
2009 messages.
2010 .IP "\fB\-Wformat\fR" 4
2011 .IX Item "-Wformat"
2012 Check calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR, etc., to make sure that
2013 the arguments supplied have types appropriate to the format string
2014 specified, and that the conversions specified in the format string make
2015 sense.  This includes standard functions, and others specified by format
2016 attributes, in the \f(CW\*(C`printf\*(C'\fR,
2017 \&\f(CW\*(C`scanf\*(C'\fR, \f(CW\*(C`strftime\*(C'\fR and \f(CW\*(C`strfmon\*(C'\fR (an X/Open extension,
2018 not in the C standard) families (or other target-specific families).
2019 Which functions are checked without format attributes having been
2020 specified depends on the standard version selected, and such checks of
2021 functions without the attribute specified are disabled by
2022 \&\fB\-ffreestanding\fR or \fB\-fno\-builtin\fR.
2023 .Sp
2024 The formats are checked against the format features supported by \s-1GNU\s0
2025 libc version 2.2.  These include all \s-1ISO\s0 C90 and C99 features, as well
2026 as features from the Single Unix Specification and some \s-1BSD\s0 and \s-1GNU\s0
2027 extensions.  Other library implementations may not support all these
2028 features; \s-1GCC\s0 does not support warning about features that go beyond a
2029 particular library's limitations.  However, if \fB\-pedantic\fR is used
2030 with \fB\-Wformat\fR, warnings will be given about format features not
2031 in the selected standard version (but not for \f(CW\*(C`strfmon\*(C'\fR formats,
2032 since those are not in any version of the C standard).  
2033 .Sp
2034 Since \fB\-Wformat\fR also checks for null format arguments for
2035 several functions, \fB\-Wformat\fR also implies \fB\-Wnonnull\fR.
2036 .Sp
2037 \&\fB\-Wformat\fR is included in \fB\-Wall\fR.  For more control over some
2038 aspects of format checking, the options \fB\-Wformat\-y2k\fR,
2039 \&\fB\-Wno\-format\-extra\-args\fR, \fB\-Wno\-format\-zero\-length\fR,
2040 \&\fB\-Wformat\-nonliteral\fR, \fB\-Wformat\-security\fR, and
2041 \&\fB\-Wformat=2\fR are available, but are not included in \fB\-Wall\fR.
2042 .IP "\fB\-Wformat\-y2k\fR" 4
2043 .IX Item "-Wformat-y2k"
2044 If \fB\-Wformat\fR is specified, also warn about \f(CW\*(C`strftime\*(C'\fR
2045 formats which may yield only a two-digit year.
2046 .IP "\fB\-Wno\-format\-extra\-args\fR" 4
2047 .IX Item "-Wno-format-extra-args"
2048 If \fB\-Wformat\fR is specified, do not warn about excess arguments to a
2049 \&\f(CW\*(C`printf\*(C'\fR or \f(CW\*(C`scanf\*(C'\fR format function.  The C standard specifies
2050 that such arguments are ignored.
2051 .Sp
2052 Where the unused arguments lie between used arguments that are
2053 specified with \fB$\fR operand number specifications, normally
2054 warnings are still given, since the implementation could not know what
2055 type to pass to \f(CW\*(C`va_arg\*(C'\fR to skip the unused arguments.  However,
2056 in the case of \f(CW\*(C`scanf\*(C'\fR formats, this option will suppress the
2057 warning if the unused arguments are all pointers, since the Single
2058 Unix Specification says that such unused arguments are allowed.
2059 .IP "\fB\-Wno\-format\-zero\-length\fR" 4
2060 .IX Item "-Wno-format-zero-length"
2061 If \fB\-Wformat\fR is specified, do not warn about zero-length formats.
2062 The C standard specifies that zero-length formats are allowed.
2063 .IP "\fB\-Wformat\-nonliteral\fR" 4
2064 .IX Item "-Wformat-nonliteral"
2065 If \fB\-Wformat\fR is specified, also warn if the format string is not a
2066 string literal and so cannot be checked, unless the format function
2067 takes its format arguments as a \f(CW\*(C`va_list\*(C'\fR.
2068 .IP "\fB\-Wformat\-security\fR" 4
2069 .IX Item "-Wformat-security"
2070 If \fB\-Wformat\fR is specified, also warn about uses of format
2071 functions that represent possible security problems.  At present, this
2072 warns about calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR functions where the
2073 format string is not a string literal and there are no format arguments,
2074 as in \f(CW\*(C`printf (foo);\*(C'\fR.  This may be a security hole if the format
2075 string came from untrusted input and contains \fB%n\fR.  (This is
2076 currently a subset of what \fB\-Wformat\-nonliteral\fR warns about, but
2077 in future warnings may be added to \fB\-Wformat\-security\fR that are not
2078 included in \fB\-Wformat\-nonliteral\fR.)
2079 .IP "\fB\-Wformat=2\fR" 4
2080 .IX Item "-Wformat=2"
2081 Enable \fB\-Wformat\fR plus format checks not included in
2082 \&\fB\-Wformat\fR.  Currently equivalent to \fB\-Wformat
2083 \&\-Wformat\-nonliteral \-Wformat\-security \-Wformat\-y2k\fR.
2084 .IP "\fB\-Wnonnull\fR" 4
2085 .IX Item "-Wnonnull"
2086 Warn about passing a null pointer for arguments marked as
2087 requiring a non-null value by the \f(CW\*(C`nonnull\*(C'\fR function attribute.
2088 .Sp
2089 \&\fB\-Wnonnull\fR is included in \fB\-Wall\fR and \fB\-Wformat\fR.  It
2090 can be disabled with the \fB\-Wno\-nonnull\fR option.
2091 .IP "\fB\-Winit\-self\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
2092 .IX Item "-Winit-self (C, , Objective-C and Objective- only)"
2093 Warn about uninitialized variables which are initialized with themselves.
2094 Note this option can only be used with the \fB\-Wuninitialized\fR option,
2095 which in turn only works with \fB\-O1\fR and above.
2096 .Sp
2097 For example, \s-1GCC\s0 will warn about \f(CW\*(C`i\*(C'\fR being uninitialized in the
2098 following snippet only when \fB\-Winit\-self\fR has been specified:
2099 .Sp
2100 .Vb 5
2101 \&        int f()
2102 \&        {
2103 \&          int i = i;
2104 \&          return i;
2105 \&        }
2106 .Ve
2107 .IP "\fB\-Wimplicit\-int\fR" 4
2108 .IX Item "-Wimplicit-int"
2109 Warn when a declaration does not specify a type.
2110 This warning is enabled by \fB\-Wall\fR.
2111 .IP "\fB\-Wimplicit\-function\-declaration\fR" 4
2112 .IX Item "-Wimplicit-function-declaration"
2113 .PD 0
2114 .IP "\fB\-Werror\-implicit\-function\-declaration\fR" 4
2115 .IX Item "-Werror-implicit-function-declaration"
2116 .PD
2117 Give a warning (or error) whenever a function is used before being
2118 declared.  The form \fB\-Wno\-error\-implicit\-function\-declaration\fR
2119 is not supported.
2120 This warning is enabled by \fB\-Wall\fR (as a warning, not an error).
2121 .IP "\fB\-Wimplicit\fR" 4
2122 .IX Item "-Wimplicit"
2123 Same as \fB\-Wimplicit\-int\fR and \fB\-Wimplicit\-function\-declaration\fR.
2124 This warning is enabled by \fB\-Wall\fR.
2125 .IP "\fB\-Wmain\fR" 4
2126 .IX Item "-Wmain"
2127 Warn if the type of \fBmain\fR is suspicious.  \fBmain\fR should be a
2128 function with external linkage, returning int, taking either zero
2129 arguments, two, or three arguments of appropriate types.
2130 This warning is enabled by \fB\-Wall\fR.
2131 .IP "\fB\-Wmissing\-braces\fR" 4
2132 .IX Item "-Wmissing-braces"
2133 Warn if an aggregate or union initializer is not fully bracketed.  In
2134 the following example, the initializer for \fBa\fR is not fully
2135 bracketed, but that for \fBb\fR is fully bracketed.
2136 .Sp
2137 .Vb 2
2138 \&        int a[2][2] = { 0, 1, 2, 3 };
2139 \&        int b[2][2] = { { 0, 1 }, { 2, 3 } };
2140 .Ve
2141 .Sp
2142 This warning is enabled by \fB\-Wall\fR.
2143 .IP "\fB\-Wmissing\-include\-dirs\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
2144 .IX Item "-Wmissing-include-dirs (C, , Objective-C and Objective- only)"
2145 Warn if a user-supplied include directory does not exist.
2146 .IP "\fB\-Wparentheses\fR" 4
2147 .IX Item "-Wparentheses"
2148 Warn if parentheses are omitted in certain contexts, such
2149 as when there is an assignment in a context where a truth value
2150 is expected, or when operators are nested whose precedence people
2151 often get confused about.  Only the warning for an assignment used as
2152 a truth value is supported when compiling \*(C+; the other warnings are
2153 only supported when compiling C.
2154 .Sp
2155 Also warn if a comparison like \fBx<=y<=z\fR appears; this is
2156 equivalent to \fB(x<=y ? 1 : 0) <= z\fR, which is a different
2157 interpretation from that of ordinary mathematical notation.
2158 .Sp
2159 Also warn about constructions where there may be confusion to which
2160 \&\f(CW\*(C`if\*(C'\fR statement an \f(CW\*(C`else\*(C'\fR branch belongs.  Here is an example of
2161 such a case:
2162 .Sp
2163 .Vb 7
2164 \&        {
2165 \&          if (a)
2166 \&            if (b)
2167 \&              foo ();
2168 \&          else
2169 \&            bar ();
2170 \&        }
2171 .Ve
2172 .Sp
2173 In C, every \f(CW\*(C`else\*(C'\fR branch belongs to the innermost possible \f(CW\*(C`if\*(C'\fR
2174 statement, which in this example is \f(CW\*(C`if (b)\*(C'\fR.  This is often not
2175 what the programmer expected, as illustrated in the above example by
2176 indentation the programmer chose.  When there is the potential for this
2177 confusion, \s-1GCC\s0 will issue a warning when this flag is specified.
2178 To eliminate the warning, add explicit braces around the innermost
2179 \&\f(CW\*(C`if\*(C'\fR statement so there is no way the \f(CW\*(C`else\*(C'\fR could belong to
2180 the enclosing \f(CW\*(C`if\*(C'\fR.  The resulting code would look like this:
2181 .Sp
2182 .Vb 9
2183 \&        {
2184 \&          if (a)
2185 \&            {
2186 \&              if (b)
2187 \&                foo ();
2188 \&              else
2189 \&                bar ();
2190 \&            }
2191 \&        }
2192 .Ve
2193 .Sp
2194 This warning is enabled by \fB\-Wall\fR.
2195 .IP "\fB\-Wsequence\-point\fR" 4
2196 .IX Item "-Wsequence-point"
2197 Warn about code that may have undefined semantics because of violations
2198 of sequence point rules in the C standard.
2199 .Sp
2200 The C standard defines the order in which expressions in a C program are
2201 evaluated in terms of \fIsequence points\fR, which represent a partial
2202 ordering between the execution of parts of the program: those executed
2203 before the sequence point, and those executed after it.  These occur
2204 after the evaluation of a full expression (one which is not part of a
2205 larger expression), after the evaluation of the first operand of a
2206 \&\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
2207 function is called (but after the evaluation of its arguments and the
2208 expression denoting the called function), and in certain other places.
2209 Other than as expressed by the sequence point rules, the order of
2210 evaluation of subexpressions of an expression is not specified.  All
2211 these rules describe only a partial order rather than a total order,
2212 since, for example, if two functions are called within one expression
2213 with no sequence point between them, the order in which the functions
2214 are called is not specified.  However, the standards committee have
2215 ruled that function calls do not overlap.
2216 .Sp
2217 It is not specified when between sequence points modifications to the
2218 values of objects take effect.  Programs whose behavior depends on this
2219 have undefined behavior; the C standard specifies that ``Between the
2220 previous and next sequence point an object shall have its stored value
2221 modified at most once by the evaluation of an expression.  Furthermore,
2222 the prior value shall be read only to determine the value to be
2223 stored.''.  If a program breaks these rules, the results on any
2224 particular implementation are entirely unpredictable.
2225 .Sp
2226 Examples of code with undefined behavior are \f(CW\*(C`a = a++;\*(C'\fR, \f(CW\*(C`a[n]
2227 = b[n++]\*(C'\fR and \f(CW\*(C`a[i++] = i;\*(C'\fR.  Some more complicated cases are not
2228 diagnosed by this option, and it may give an occasional false positive
2229 result, but in general it has been found fairly effective at detecting
2230 this sort of problem in programs.
2231 .Sp
2232 The present implementation of this option only works for C programs.  A
2233 future implementation may also work for \*(C+ programs.
2234 .Sp
2235 The C standard is worded confusingly, therefore there is some debate
2236 over the precise meaning of the sequence point rules in subtle cases.
2237 Links to discussions of the problem, including proposed formal
2238 definitions, may be found on the \s-1GCC\s0 readings page, at
2239 <\fBhttp://gcc.gnu.org/readings.html\fR>.
2240 .Sp
2241 This warning is enabled by \fB\-Wall\fR.
2242 .IP "\fB\-Wreturn\-type\fR" 4
2243 .IX Item "-Wreturn-type"
2244 Warn whenever a function is defined with a return-type that defaults to
2245 \&\f(CW\*(C`int\*(C'\fR.  Also warn about any \f(CW\*(C`return\*(C'\fR statement with no
2246 return-value in a function whose return-type is not \f(CW\*(C`void\*(C'\fR.
2247 .Sp
2248 For C, also warn if the return type of a function has a type qualifier
2249 such as \f(CW\*(C`const\*(C'\fR.  Such a type qualifier has no effect, since the
2250 value returned by a function is not an lvalue.  \s-1ISO\s0 C prohibits
2251 qualified \f(CW\*(C`void\*(C'\fR return types on function definitions, so such
2252 return types always receive a warning even without this option.
2253 .Sp
2254 For \*(C+, a function without return type always produces a diagnostic
2255 message, even when \fB\-Wno\-return\-type\fR is specified.  The only
2256 exceptions are \fBmain\fR and functions defined in system headers.
2257 .Sp
2258 This warning is enabled by \fB\-Wall\fR.
2259 .IP "\fB\-Wswitch\fR" 4
2260 .IX Item "-Wswitch"
2261 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
2262 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
2263 enumeration.  (The presence of a \f(CW\*(C`default\*(C'\fR label prevents this
2264 warning.)  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
2265 provoke warnings when this option is used.
2266 This warning is enabled by \fB\-Wall\fR.
2267 .IP "\fB\-Wswitch\-default\fR" 4
2268 .IX Item "-Wswitch-default"
2269 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement does not have a \f(CW\*(C`default\*(C'\fR
2270 case.
2271 .IP "\fB\-Wswitch\-enum\fR" 4
2272 .IX Item "-Wswitch-enum"
2273 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
2274 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
2275 enumeration.  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
2276 provoke warnings when this option is used.
2277 .IP "\fB\-Wtrigraphs\fR" 4
2278 .IX Item "-Wtrigraphs"
2279 Warn if any trigraphs are encountered that might change the meaning of
2280 the program (trigraphs within comments are not warned about).
2281 This warning is enabled by \fB\-Wall\fR.
2282 .IP "\fB\-Wunused\-function\fR" 4
2283 .IX Item "-Wunused-function"
2284 Warn whenever a static function is declared but not defined or a
2285 non\e\-inline static function is unused.
2286 This warning is enabled by \fB\-Wall\fR.
2287 .IP "\fB\-Wunused\-label\fR" 4
2288 .IX Item "-Wunused-label"
2289 Warn whenever a label is declared but not used.
2290 This warning is enabled by \fB\-Wall\fR.
2291 .Sp
2292 To suppress this warning use the \fBunused\fR attribute.
2293 .IP "\fB\-Wunused\-parameter\fR" 4
2294 .IX Item "-Wunused-parameter"
2295 Warn whenever a function parameter is unused aside from its declaration.
2296 .Sp
2297 To suppress this warning use the \fBunused\fR attribute.
2298 .IP "\fB\-Wunused\-variable\fR" 4
2299 .IX Item "-Wunused-variable"
2300 Warn whenever a local variable or non-constant static variable is unused
2301 aside from its declaration
2302 This warning is enabled by \fB\-Wall\fR.
2303 .Sp
2304 To suppress this warning use the \fBunused\fR attribute.
2305 .IP "\fB\-Wunused\-value\fR" 4
2306 .IX Item "-Wunused-value"
2307 Warn whenever a statement computes a result that is explicitly not used.
2308 This warning is enabled by \fB\-Wall\fR.
2309 .Sp
2310 To suppress this warning cast the expression to \fBvoid\fR.
2311 .IP "\fB\-Wunused\fR" 4
2312 .IX Item "-Wunused"
2313 All the above \fB\-Wunused\fR options combined.
2314 .Sp
2315 In order to get a warning about an unused function parameter, you must
2316 either specify \fB\-Wextra \-Wunused\fR (note that \fB\-Wall\fR implies
2317 \&\fB\-Wunused\fR), or separately specify \fB\-Wunused\-parameter\fR.
2318 .IP "\fB\-Wuninitialized\fR" 4
2319 .IX Item "-Wuninitialized"
2320 Warn if an automatic variable is used without first being initialized or
2321 if a variable may be clobbered by a \f(CW\*(C`setjmp\*(C'\fR call.
2322 .Sp
2323 These warnings are possible only in optimizing compilation,
2324 because they require data flow information that is computed only
2325 when optimizing.  If you don't specify \fB\-O\fR, you simply won't
2326 get these warnings.
2327 .Sp
2328 If you want to warn about code which uses the uninitialized value of the
2329 variable in its own initializer, use the \fB\-Winit\-self\fR option.
2330 .Sp
2331 These warnings occur only for variables that are candidates for
2332 register allocation.  Therefore, they do not occur for a variable that
2333 is declared \f(CW\*(C`volatile\*(C'\fR, or whose address is taken, or whose size
2334 is other than 1, 2, 4 or 8 bytes.  Also, they do not occur for
2335 structures, unions or arrays, even when they are in registers.
2336 .Sp
2337 Note that there may be no warning about a variable that is used only
2338 to compute a value that itself is never used, because such
2339 computations may be deleted by data flow analysis before the warnings
2340 are printed.
2341 .Sp
2342 These warnings are made optional because \s-1GCC\s0 is not smart
2343 enough to see all the reasons why the code might be correct
2344 despite appearing to have an error.  Here is one example of how
2345 this can happen:
2346 .Sp
2347 .Vb 12
2348 \&        {
2349 \&          int x;
2350 \&          switch (y)
2351 \&            {
2352 \&            case 1: x = 1;
2353 \&              break;
2354 \&            case 2: x = 4;
2355 \&              break;
2356 \&            case 3: x = 5;
2357 \&            }
2358 \&          foo (x);
2359 \&        }
2360 .Ve
2361 .Sp
2362 If the value of \f(CW\*(C`y\*(C'\fR is always 1, 2 or 3, then \f(CW\*(C`x\*(C'\fR is
2363 always initialized, but \s-1GCC\s0 doesn't know this.  Here is
2364 another common case:
2365 .Sp
2366 .Vb 6
2367 \&        {
2368 \&          int save_y;
2369 \&          if (change_y) save_y = y, y = new_y;
2370 \&          ...
2371 \&          if (change_y) y = save_y;
2372 \&        }
2373 .Ve
2374 .Sp
2375 This has no bug because \f(CW\*(C`save_y\*(C'\fR is used only if it is set.
2376 .Sp
2377 This option also warns when a non-volatile automatic variable might be
2378 changed by a call to \f(CW\*(C`longjmp\*(C'\fR.  These warnings as well are possible
2379 only in optimizing compilation.
2380 .Sp
2381 The compiler sees only the calls to \f(CW\*(C`setjmp\*(C'\fR.  It cannot know
2382 where \f(CW\*(C`longjmp\*(C'\fR will be called; in fact, a signal handler could
2383 call it at any point in the code.  As a result, you may get a warning
2384 even when there is in fact no problem because \f(CW\*(C`longjmp\*(C'\fR cannot
2385 in fact be called at the place which would cause a problem.
2386 .Sp
2387 Some spurious warnings can be avoided if you declare all the functions
2388 you use that never return as \f(CW\*(C`noreturn\*(C'\fR.  
2389 .Sp
2390 This warning is enabled by \fB\-Wall\fR.
2391 .IP "\fB\-Wunknown\-pragmas\fR" 4
2392 .IX Item "-Wunknown-pragmas"
2393 Warn when a #pragma directive is encountered which is not understood by
2394 \&\s-1GCC\s0.  If this command line option is used, warnings will even be issued
2395 for unknown pragmas in system header files.  This is not the case if
2396 the warnings were only enabled by the \fB\-Wall\fR command line option.
2397 .IP "\fB\-Wstrict\-aliasing\fR" 4
2398 .IX Item "-Wstrict-aliasing"
2399 This option is only active when \fB\-fstrict\-aliasing\fR is active.
2400 It warns about code which might break the strict aliasing rules that the
2401 compiler is using for optimization.  The warning does not catch all
2402 cases, but does attempt to catch the more common pitfalls.  It is
2403 included in \fB\-Wall\fR.
2404 .IP "\fB\-Wstrict\-aliasing=2\fR" 4
2405 .IX Item "-Wstrict-aliasing=2"
2406 This option is only active when \fB\-fstrict\-aliasing\fR is active.
2407 It warns about all code which might break the strict aliasing rules that the
2408 compiler is using for optimization.  This warning catches all cases, but
2409 it will also give a warning for some ambiguous cases that are safe.
2410 .IP "\fB\-Wall\fR" 4
2411 .IX Item "-Wall"
2412 All of the above \fB\-W\fR options combined.  This enables all the
2413 warnings about constructions that some users consider questionable, and
2414 that are easy to avoid (or modify to prevent the warning), even in
2415 conjunction with macros.  This also enables some language-specific
2416 warnings described in \fB\*(C+ Dialect Options\fR and
2417 \&\fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
2418 .PP
2419 The following \fB\-W...\fR options are not implied by \fB\-Wall\fR.
2420 Some of them warn about constructions that users generally do not
2421 consider questionable, but which occasionally you might wish to check
2422 for; others warn about constructions that are necessary or hard to avoid
2423 in some cases, and there is no simple way to modify the code to suppress
2424 the warning.
2425 .IP "\fB\-Wextra\fR" 4
2426 .IX Item "-Wextra"
2427 (This option used to be called \fB\-W\fR.  The older name is still
2428 supported, but the newer name is more descriptive.)  Print extra warning
2429 messages for these events:
2430 .RS 4
2431 .IP "\(bu" 4
2432 A function can return either with or without a value.  (Falling
2433 off the end of the function body is considered returning without
2434 a value.)  For example, this function would evoke such a
2435 warning:
2436 .Sp
2437 .Vb 5
2438 \&        foo (a)
2439 \&        {
2440 \&          if (a > 0)
2441 \&            return a;
2442 \&        }
2443 .Ve
2444 .IP "\(bu" 4
2445 An expression-statement or the left-hand side of a comma expression
2446 contains no side effects.
2447 To suppress the warning, cast the unused expression to void.
2448 For example, an expression such as \fBx[i,j]\fR will cause a warning,
2449 but \fBx[(void)i,j]\fR will not.
2450 .IP "\(bu" 4
2451 An unsigned value is compared against zero with \fB<\fR or \fB>=\fR.
2452 .IP "\(bu" 4
2453 Storage-class specifiers like \f(CW\*(C`static\*(C'\fR are not the first things in
2454 a declaration.  According to the C Standard, this usage is obsolescent.
2455 .IP "\(bu" 4
2456 If \fB\-Wall\fR or \fB\-Wunused\fR is also specified, warn about unused
2457 arguments.
2458 .IP "\(bu" 4
2459 A comparison between signed and unsigned values could produce an
2460 incorrect result when the signed value is converted to unsigned.
2461 (But don't warn if \fB\-Wno\-sign\-compare\fR is also specified.)
2462 .IP "\(bu" 4
2463 An aggregate has an initializer which does not initialize all members.
2464 This warning can be independently controlled by
2465 \&\fB\-Wmissing\-field\-initializers\fR.
2466 .IP "\(bu" 4
2467 A function parameter is declared without a type specifier in K&R\-style
2468 functions:
2469 .Sp
2470 .Vb 1
2471 \&        void foo(bar) { }
2472 .Ve
2473 .IP "\(bu" 4
2474 An empty body occurs in an \fBif\fR or \fBelse\fR statement.
2475 .IP "\(bu" 4
2476 A pointer is compared against integer zero with \fB<\fR, \fB<=\fR,
2477 \&\fB>\fR, or \fB>=\fR.
2478 .IP "\(bu" 4
2479 A variable might be changed by \fBlongjmp\fR or \fBvfork\fR.
2480 .IP "\(bu" 4
2481 Any of several floating-point events that often indicate errors, such as
2482 overflow, underflow, loss of precision, etc.
2483 .IP "*<(\*(C+ only)>" 4
2484 .IX Item "*<( only)>"
2485 An enumerator and a non-enumerator both appear in a conditional expression.
2486 .IP "*<(\*(C+ only)>" 4
2487 .IX Item "*<( only)>"
2488 A non-static reference or non-static \fBconst\fR member appears in a
2489 class without constructors.
2490 .IP "*<(\*(C+ only)>" 4
2491 .IX Item "*<( only)>"
2492 Ambiguous virtual bases.
2493 .IP "*<(\*(C+ only)>" 4
2494 .IX Item "*<( only)>"
2495 Subscripting an array which has been declared \fBregister\fR.
2496 .IP "*<(\*(C+ only)>" 4
2497 .IX Item "*<( only)>"
2498 Taking the address of a variable which has been declared \fBregister\fR.
2499 .IP "*<(\*(C+ only)>" 4
2500 .IX Item "*<( only)>"
2501 A base class is not initialized in a derived class' copy constructor.
2502 .RE
2503 .RS 4
2504 .RE
2505 .IP "\fB\-Wno\-div\-by\-zero\fR" 4
2506 .IX Item "-Wno-div-by-zero"
2507 Do not warn about compile-time integer division by zero.  Floating point
2508 division by zero is not warned about, as it can be a legitimate way of
2509 obtaining infinities and NaNs.
2510 .IP "\fB\-Wsystem\-headers\fR" 4
2511 .IX Item "-Wsystem-headers"
2512 Print warning messages for constructs found in system header files.
2513 Warnings from system headers are normally suppressed, on the assumption
2514 that they usually do not indicate real problems and would only make the
2515 compiler output harder to read.  Using this command line option tells
2516 \&\s-1GCC\s0 to emit warnings from system headers as if they occurred in user
2517 code.  However, note that using \fB\-Wall\fR in conjunction with this
2518 option will \fInot\fR warn about unknown pragmas in system
2519 headers\-\-\-for that, \fB\-Wunknown\-pragmas\fR must also be used.
2520 .IP "\fB\-Wfloat\-equal\fR" 4
2521 .IX Item "-Wfloat-equal"
2522 Warn if floating point values are used in equality comparisons.
2523 .Sp
2524 The idea behind this is that sometimes it is convenient (for the
2525 programmer) to consider floating-point values as approximations to
2526 infinitely precise real numbers.  If you are doing this, then you need
2527 to compute (by analyzing the code, or in some other way) the maximum or
2528 likely maximum error that the computation introduces, and allow for it
2529 when performing comparisons (and when producing output, but that's a
2530 different problem).  In particular, instead of testing for equality, you
2531 would check to see whether the two values have ranges that overlap; and
2532 this is done with the relational operators, so equality comparisons are
2533 probably mistaken.
2534 .IP "\fB\-Wtraditional\fR (C only)" 4
2535 .IX Item "-Wtraditional (C only)"
2536 Warn about certain constructs that behave differently in traditional and
2537 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
2538 equivalent, and/or problematic constructs which should be avoided.
2539 .RS 4
2540 .IP "\(bu" 4
2541 Macro parameters that appear within string literals in the macro body.
2542 In traditional C macro replacement takes place within string literals,
2543 but does not in \s-1ISO\s0 C.
2544 .IP "\(bu" 4
2545 In traditional C, some preprocessor directives did not exist.
2546 Traditional preprocessors would only consider a line to be a directive
2547 if the \fB#\fR appeared in column 1 on the line.  Therefore
2548 \&\fB\-Wtraditional\fR warns about directives that traditional C
2549 understands but would ignore because the \fB#\fR does not appear as the
2550 first character on the line.  It also suggests you hide directives like
2551 \&\fB#pragma\fR not understood by traditional C by indenting them.  Some
2552 traditional implementations would not recognize \fB#elif\fR, so it
2553 suggests avoiding it altogether.
2554 .IP "\(bu" 4
2555 A function-like macro that appears without arguments.
2556 .IP "\(bu" 4
2557 The unary plus operator.
2558 .IP "\(bu" 4
2559 The \fBU\fR integer constant suffix, or the \fBF\fR or \fBL\fR floating point
2560 constant suffixes.  (Traditional C does support the \fBL\fR suffix on integer
2561 constants.)  Note, these suffixes appear in macros defined in the system
2562 headers of most modern systems, e.g. the \fB_MIN\fR/\fB_MAX\fR macros in \f(CW\*(C`<limits.h>\*(C'\fR.
2563 Use of these macros in user code might normally lead to spurious
2564 warnings, however \s-1GCC\s0's integrated preprocessor has enough context to
2565 avoid warning in these cases.
2566 .IP "\(bu" 4
2567 A function declared external in one block and then used after the end of
2568 the block.
2569 .IP "\(bu" 4
2570 A \f(CW\*(C`switch\*(C'\fR statement has an operand of type \f(CW\*(C`long\*(C'\fR.
2571 .IP "\(bu" 4
2572 A non\-\f(CW\*(C`static\*(C'\fR function declaration follows a \f(CW\*(C`static\*(C'\fR one.
2573 This construct is not accepted by some traditional C compilers.
2574 .IP "\(bu" 4
2575 The \s-1ISO\s0 type of an integer constant has a different width or
2576 signedness from its traditional type.  This warning is only issued if
2577 the base of the constant is ten.  I.e. hexadecimal or octal values, which
2578 typically represent bit patterns, are not warned about.
2579 .IP "\(bu" 4
2580 Usage of \s-1ISO\s0 string concatenation is detected.
2581 .IP "\(bu" 4
2582 Initialization of automatic aggregates.
2583 .IP "\(bu" 4
2584 Identifier conflicts with labels.  Traditional C lacks a separate
2585 namespace for labels.
2586 .IP "\(bu" 4
2587 Initialization of unions.  If the initializer is zero, the warning is
2588 omitted.  This is done under the assumption that the zero initializer in
2589 user code appears conditioned on e.g. \f(CW\*(C`_\|_STDC_\|_\*(C'\fR to avoid missing
2590 initializer warnings and relies on default initialization to zero in the
2591 traditional C case.
2592 .IP "\(bu" 4
2593 Conversions by prototypes between fixed/floating point values and vice
2594 versa.  The absence of these prototypes when compiling with traditional
2595 C would cause serious problems.  This is a subset of the possible
2596 conversion warnings, for the full set use \fB\-Wconversion\fR.
2597 .IP "\(bu" 4
2598 Use of \s-1ISO\s0 C style function definitions.  This warning intentionally is
2599 \&\fInot\fR issued for prototype declarations or variadic functions
2600 because these \s-1ISO\s0 C features will appear in your code when using
2601 libiberty's traditional C compatibility macros, \f(CW\*(C`PARAMS\*(C'\fR and
2602 \&\f(CW\*(C`VPARAMS\*(C'\fR.  This warning is also bypassed for nested functions
2603 because that feature is already a \s-1GCC\s0 extension and thus not relevant to
2604 traditional C compatibility.
2605 .RE
2606 .RS 4
2607 .RE
2608 .IP "\fB\-Wdeclaration\-after\-statement\fR (C only)" 4
2609 .IX Item "-Wdeclaration-after-statement (C only)"
2610 Warn when a declaration is found after a statement in a block.  This
2611 construct, known from \*(C+, was introduced with \s-1ISO\s0 C99 and is by default
2612 allowed in \s-1GCC\s0.  It is not supported by \s-1ISO\s0 C90 and was not supported by
2613 \&\s-1GCC\s0 versions before \s-1GCC\s0 3.0.  
2614 .IP "\fB\-Wundef\fR" 4
2615 .IX Item "-Wundef"
2616 Warn if an undefined identifier is evaluated in an \fB#if\fR directive.
2617 .IP "\fB\-Wno\-endif\-labels\fR" 4
2618 .IX Item "-Wno-endif-labels"
2619 Do not warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
2620 .IP "\fB\-Wshadow\fR" 4
2621 .IX Item "-Wshadow"
2622 Warn whenever a local variable shadows another local variable, parameter or
2623 global variable or whenever a built-in function is shadowed.
2624 .IP "\fB\-Wlarger\-than\-\fR\fIlen\fR" 4
2625 .IX Item "-Wlarger-than-len"
2626 Warn whenever an object of larger than \fIlen\fR bytes is defined.
2627 .IP "\fB\-Wpointer\-arith\fR" 4
2628 .IX Item "-Wpointer-arith"
2629 Warn about anything that depends on the ``size of'' a function type or
2630 of \f(CW\*(C`void\*(C'\fR.  \s-1GNU\s0 C assigns these types a size of 1, for
2631 convenience in calculations with \f(CW\*(C`void *\*(C'\fR pointers and pointers
2632 to functions.
2633 .IP "\fB\-Wbad\-function\-cast\fR (C only)" 4
2634 .IX Item "-Wbad-function-cast (C only)"
2635 Warn whenever a function call is cast to a non-matching type.
2636 For example, warn if \f(CW\*(C`int malloc()\*(C'\fR is cast to \f(CW\*(C`anything *\*(C'\fR.
2637 .IP "\fB\-Wcast\-qual\fR" 4
2638 .IX Item "-Wcast-qual"
2639 Warn whenever a pointer is cast so as to remove a type qualifier from
2640 the target type.  For example, warn if a \f(CW\*(C`const char *\*(C'\fR is cast
2641 to an ordinary \f(CW\*(C`char *\*(C'\fR.
2642 .IP "\fB\-Wcast\-align\fR" 4
2643 .IX Item "-Wcast-align"
2644 Warn whenever a pointer is cast such that the required alignment of the
2645 target is increased.  For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
2646 an \f(CW\*(C`int *\*(C'\fR on machines where integers can only be accessed at
2647 two\- or four-byte boundaries.
2648 .IP "\fB\-Wwrite\-strings\fR" 4
2649 .IX Item "-Wwrite-strings"
2650 When compiling C, give string constants the type \f(CW\*(C`const
2651 char[\f(CIlength\f(CW]\*(C'\fR so that
2652 copying the address of one into a non\-\f(CW\*(C`const\*(C'\fR \f(CW\*(C`char *\*(C'\fR
2653 pointer will get a warning; when compiling \*(C+, warn about the
2654 deprecated conversion from string constants to \f(CW\*(C`char *\*(C'\fR.
2655 These warnings will help you find at
2656 compile time code that can try to write into a string constant, but
2657 only if you have been very careful about using \f(CW\*(C`const\*(C'\fR in
2658 declarations and prototypes.  Otherwise, it will just be a nuisance;
2659 this is why we did not make \fB\-Wall\fR request these warnings.
2660 .IP "\fB\-Wconversion\fR" 4
2661 .IX Item "-Wconversion"
2662 Warn if a prototype causes a type conversion that is different from what
2663 would happen to the same argument in the absence of a prototype.  This
2664 includes conversions of fixed point to floating and vice versa, and
2665 conversions changing the width or signedness of a fixed point argument
2666 except when the same as the default promotion.
2667 .Sp
2668 Also, warn if a negative integer constant expression is implicitly
2669 converted to an unsigned type.  For example, warn about the assignment
2670 \&\f(CW\*(C`x = \-1\*(C'\fR if \f(CW\*(C`x\*(C'\fR is unsigned.  But do not warn about explicit
2671 casts like \f(CW\*(C`(unsigned) \-1\*(C'\fR.
2672 .IP "\fB\-Wsign\-compare\fR" 4
2673 .IX Item "-Wsign-compare"
2674 Warn when a comparison between signed and unsigned values could produce
2675 an incorrect result when the signed value is converted to unsigned.
2676 This warning is also enabled by \fB\-Wextra\fR; to get the other warnings
2677 of \fB\-Wextra\fR without this warning, use \fB\-Wextra \-Wno\-sign\-compare\fR.
2678 .IP "\fB\-Waggregate\-return\fR" 4
2679 .IX Item "-Waggregate-return"
2680 Warn if any functions that return structures or unions are defined or
2681 called.  (In languages where you can return an array, this also elicits
2682 a warning.)
2683 .IP "\fB\-Wstrict\-prototypes\fR (C only)" 4
2684 .IX Item "-Wstrict-prototypes (C only)"
2685 Warn if a function is declared or defined without specifying the
2686 argument types.  (An old-style function definition is permitted without
2687 a warning if preceded by a declaration which specifies the argument
2688 types.)
2689 .IP "\fB\-Wold\-style\-definition\fR (C only)" 4
2690 .IX Item "-Wold-style-definition (C only)"
2691 Warn if an old-style function definition is used.  A warning is given
2692 even if there is a previous prototype.
2693 .IP "\fB\-Wmissing\-prototypes\fR (C only)" 4
2694 .IX Item "-Wmissing-prototypes (C only)"
2695 Warn if a global function is defined without a previous prototype
2696 declaration.  This warning is issued even if the definition itself
2697 provides a prototype.  The aim is to detect global functions that fail
2698 to be declared in header files.
2699 .IP "\fB\-Wmissing\-declarations\fR (C only)" 4
2700 .IX Item "-Wmissing-declarations (C only)"
2701 Warn if a global function is defined without a previous declaration.
2702 Do so even if the definition itself provides a prototype.
2703 Use this option to detect global functions that are not declared in
2704 header files.
2705 .IP "\fB\-Wmissing\-field\-initializers\fR" 4
2706 .IX Item "-Wmissing-field-initializers"
2707 Warn if a structure's initializer has some fields missing.  For
2708 example, the following code would cause such a warning, because
2709 \&\f(CW\*(C`x.h\*(C'\fR is implicitly zero:
2710 .Sp
2711 .Vb 2
2712 \&        struct s { int f, g, h; };
2713 \&        struct s x = { 3, 4 };
2714 .Ve
2715 .Sp
2716 This option does not warn about designated initializers, so the following
2717 modification would not trigger a warning:
2718 .Sp
2719 .Vb 2
2720 \&        struct s { int f, g, h; };
2721 \&        struct s x = { .f = 3, .g = 4 };
2722 .Ve
2723 .Sp
2724 This warning is included in \fB\-Wextra\fR.  To get other \fB\-Wextra\fR
2725 warnings without this one, use \fB\-Wextra \-Wno\-missing\-field\-initializers\fR.
2726 .IP "\fB\-Wmissing\-noreturn\fR" 4
2727 .IX Item "-Wmissing-noreturn"
2728 Warn about functions which might be candidates for attribute \f(CW\*(C`noreturn\*(C'\fR.
2729 Note these are only possible candidates, not absolute ones.  Care should
2730 be taken to manually verify functions actually do not ever return before
2731 adding the \f(CW\*(C`noreturn\*(C'\fR attribute, otherwise subtle code generation
2732 bugs could be introduced.  You will not get a warning for \f(CW\*(C`main\*(C'\fR in
2733 hosted C environments.
2734 .IP "\fB\-Wmissing\-format\-attribute\fR" 4
2735 .IX Item "-Wmissing-format-attribute"
2736 If \fB\-Wformat\fR is enabled, also warn about functions which might be
2737 candidates for \f(CW\*(C`format\*(C'\fR attributes.  Note these are only possible
2738 candidates, not absolute ones.  \s-1GCC\s0 will guess that \f(CW\*(C`format\*(C'\fR
2739 attributes might be appropriate for any function that calls a function
2740 like \f(CW\*(C`vprintf\*(C'\fR or \f(CW\*(C`vscanf\*(C'\fR, but this might not always be the
2741 case, and some functions for which \f(CW\*(C`format\*(C'\fR attributes are
2742 appropriate may not be detected.  This option has no effect unless
2743 \&\fB\-Wformat\fR is enabled (possibly by \fB\-Wall\fR).
2744 .IP "\fB\-Wno\-multichar\fR" 4
2745 .IX Item "-Wno-multichar"
2746 Do not warn if a multicharacter constant (\fB'\s-1FOOF\s0'\fR) is used.
2747 Usually they indicate a typo in the user's code, as they have
2748 implementation-defined values, and should not be used in portable code.
2749 .IP "\fB\-Wno\-deprecated\-declarations\fR" 4
2750 .IX Item "-Wno-deprecated-declarations"
2751 Do not warn about uses of functions, variables, and types marked as
2752 deprecated by using the \f(CW\*(C`deprecated\*(C'\fR attribute.
2753 (@pxref{Function Attributes}, \f(CW@pxref\fR{Variable Attributes},
2754 \&\f(CW@pxref\fR{Type Attributes}.)
2755 .IP "\fB\-Wpacked\fR" 4
2756 .IX Item "-Wpacked"
2757 Warn if a structure is given the packed attribute, but the packed
2758 attribute has no effect on the layout or size of the structure.
2759 Such structures may be mis-aligned for little benefit.  For
2760 instance, in this code, the variable \f(CW\*(C`f.x\*(C'\fR in \f(CW\*(C`struct bar\*(C'\fR
2761 will be misaligned even though \f(CW\*(C`struct bar\*(C'\fR does not itself
2762 have the packed attribute:
2763 .Sp
2764 .Vb 8
2765 \&        struct foo {
2766 \&          int x;
2767 \&          char a, b, c, d;
2768 \&        } __attribute__((packed));
2769 \&        struct bar {
2770 \&          char z;
2771 \&          struct foo f;
2772 \&        };
2773 .Ve
2774 .IP "\fB\-Wpadded\fR" 4
2775 .IX Item "-Wpadded"
2776 Warn if padding is included in a structure, either to align an element
2777 of the structure or to align the whole structure.  Sometimes when this
2778 happens it is possible to rearrange the fields of the structure to
2779 reduce the padding and so make the structure smaller.
2780 .IP "\fB\-Wredundant\-decls\fR" 4
2781 .IX Item "-Wredundant-decls"
2782 Warn if anything is declared more than once in the same scope, even in
2783 cases where multiple declaration is valid and changes nothing.
2784 .IP "\fB\-Wnested\-externs\fR (C only)" 4
2785 .IX Item "-Wnested-externs (C only)"
2786 Warn if an \f(CW\*(C`extern\*(C'\fR declaration is encountered within a function.
2787 .IP "\fB\-Wunreachable\-code\fR" 4
2788 .IX Item "-Wunreachable-code"
2789 Warn if the compiler detects that code will never be executed.
2790 .Sp
2791 This option is intended to warn when the compiler detects that at
2792 least a whole line of source code will never be executed, because
2793 some condition is never satisfied or because it is after a
2794 procedure that never returns.
2795 .Sp
2796 It is possible for this option to produce a warning even though there
2797 are circumstances under which part of the affected line can be executed,
2798 so care should be taken when removing apparently-unreachable code.
2799 .Sp
2800 For instance, when a function is inlined, a warning may mean that the
2801 line is unreachable in only one inlined copy of the function.
2802 .Sp
2803 This option is not made part of \fB\-Wall\fR because in a debugging
2804 version of a program there is often substantial code which checks
2805 correct functioning of the program and is, hopefully, unreachable
2806 because the program does work.  Another common use of unreachable
2807 code is to provide behavior which is selectable at compile\-time.
2808 .IP "\fB\-Winline\fR" 4
2809 .IX Item "-Winline"
2810 Warn if a function can not be inlined and it was declared as inline.
2811 Even with this option, the compiler will not warn about failures to
2812 inline functions declared in system headers.
2813 .Sp
2814 The compiler uses a variety of heuristics to determine whether or not
2815 to inline a function.  For example, the compiler takes into account
2816 the size of the function being inlined and the amount of inlining
2817 that has already been done in the current function.  Therefore,
2818 seemingly insignificant changes in the source program can cause the
2819 warnings produced by \fB\-Winline\fR to appear or disappear.
2820 .IP "\fB\-Wno\-invalid\-offsetof\fR (\*(C+ only)" 4
2821 .IX Item "-Wno-invalid-offsetof ( only)"
2822 Suppress warnings from applying the \fBoffsetof\fR macro to a non-POD
2823 type.  According to the 1998 \s-1ISO\s0 \*(C+ standard, applying \fBoffsetof\fR
2824 to a non-POD type is undefined.  In existing \*(C+ implementations,
2825 however, \fBoffsetof\fR typically gives meaningful results even when
2826 applied to certain kinds of non-POD types. (Such as a simple
2827 \&\fBstruct\fR that fails to be a \s-1POD\s0 type only by virtue of having a
2828 constructor.)  This flag is for users who are aware that they are
2829 writing nonportable code and who have deliberately chosen to ignore the
2830 warning about it.
2831 .Sp
2832 The restrictions on \fBoffsetof\fR may be relaxed in a future version
2833 of the \*(C+ standard.
2834 .IP "\fB\-Winvalid\-pch\fR" 4
2835 .IX Item "-Winvalid-pch"
2836 Warn if a precompiled header is found in
2837 the search path but can't be used.
2838 .IP "\fB\-Wlong\-long\fR" 4
2839 .IX Item "-Wlong-long"
2840 Warn if \fBlong long\fR type is used.  This is default.  To inhibit
2841 the warning messages, use \fB\-Wno\-long\-long\fR.  Flags
2842 \&\fB\-Wlong\-long\fR and \fB\-Wno\-long\-long\fR are taken into account
2843 only when \fB\-pedantic\fR flag is used.
2844 .IP "\fB\-Wvariadic\-macros\fR" 4
2845 .IX Item "-Wvariadic-macros"
2846 Warn if variadic macros are used in pedantic \s-1ISO\s0 C90 mode, or the \s-1GNU\s0
2847 alternate syntax when in pedantic \s-1ISO\s0 C99 mode.  This is default.
2848 To inhibit the warning messages, use \fB\-Wno\-variadic\-macros\fR.
2849 .IP "\fB\-Wdisabled\-optimization\fR" 4
2850 .IX Item "-Wdisabled-optimization"
2851 Warn if a requested optimization pass is disabled.  This warning does
2852 not generally indicate that there is anything wrong with your code; it
2853 merely indicates that \s-1GCC\s0's optimizers were unable to handle the code
2854 effectively.  Often, the problem is that your code is too big or too
2855 complex; \s-1GCC\s0 will refuse to optimize programs when the optimization
2856 itself is likely to take inordinate amounts of time.
2857 .IP "\fB\-Wno\-pointer\-sign\fR" 4
2858 .IX Item "-Wno-pointer-sign"
2859 Don't warn for pointer argument passing or assignment with different signedness.
2860 Only useful in the negative form since this warning is enabled by default.
2861 This option is only supported for C and Objective\-C.
2862 .IP "\fB\-Werror\fR" 4
2863 .IX Item "-Werror"
2864 Make all warnings into errors.
2865 .Sh "Options for Debugging Your Program or \s-1GCC\s0"
2866 .IX Subsection "Options for Debugging Your Program or GCC"
2867 \&\s-1GCC\s0 has various special options that are used for debugging
2868 either your program or \s-1GCC:\s0
2869 .IP "\fB\-g\fR" 4
2870 .IX Item "-g"
2871 Produce debugging information in the operating system's native format
2872 (stabs, \s-1COFF\s0, \s-1XCOFF\s0, or \s-1DWARF\s0 2).  \s-1GDB\s0 can work with this debugging
2873 information.
2874 .Sp
2875 On most systems that use stabs format, \fB\-g\fR enables use of extra
2876 debugging information that only \s-1GDB\s0 can use; this extra information
2877 makes debugging work better in \s-1GDB\s0 but will probably make other debuggers
2878 crash or
2879 refuse to read the program.  If you want to control for certain whether
2880 to generate the extra information, use \fB\-gstabs+\fR, \fB\-gstabs\fR,
2881 \&\fB\-gxcoff+\fR, \fB\-gxcoff\fR, or \fB\-gvms\fR (see below).
2882 .Sp
2883 \&\s-1GCC\s0 allows you to use \fB\-g\fR with
2884 \&\fB\-O\fR.  The shortcuts taken by optimized code may occasionally
2885 produce surprising results: some variables you declared may not exist
2886 at all; flow of control may briefly move where you did not expect it;
2887 some statements may not be executed because they compute constant
2888 results or their values were already at hand; some statements may
2889 execute in different places because they were moved out of loops.
2890 .Sp
2891 Nevertheless it proves possible to debug optimized output.  This makes
2892 it reasonable to use the optimizer for programs that might have bugs.
2893 .Sp
2894 The following options are useful when \s-1GCC\s0 is generated with the
2895 capability for more than one debugging format.
2896 .IP "\fB\-ggdb\fR" 4
2897 .IX Item "-ggdb"
2898 Produce debugging information for use by \s-1GDB\s0.  This means to use the
2899 most expressive format available (\s-1DWARF\s0 2, stabs, or the native format
2900 if neither of those are supported), including \s-1GDB\s0 extensions if at all
2901 possible.
2902 .IP "\fB\-gstabs\fR" 4
2903 .IX Item "-gstabs"
2904 Produce debugging information in stabs format (if that is supported),
2905 without \s-1GDB\s0 extensions.  This is the format used by \s-1DBX\s0 on most \s-1BSD\s0
2906 systems.  On \s-1MIPS\s0, Alpha and System V Release 4 systems this option
2907 produces stabs debugging output which is not understood by \s-1DBX\s0 or \s-1SDB\s0.
2908 On System V Release 4 systems this option requires the \s-1GNU\s0 assembler.
2909 .IP "\fB\-feliminate\-unused\-debug\-symbols\fR" 4
2910 .IX Item "-feliminate-unused-debug-symbols"
2911 Produce debugging information in stabs format (if that is supported),
2912 for only symbols that are actually used.
2913 .IP "\fB\-gstabs+\fR" 4
2914 .IX Item "-gstabs+"
2915 Produce debugging information in stabs format (if that is supported),
2916 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
2917 use of these extensions is likely to make other debuggers crash or
2918 refuse to read the program.
2919 .IP "\fB\-gcoff\fR" 4
2920 .IX Item "-gcoff"
2921 Produce debugging information in \s-1COFF\s0 format (if that is supported).
2922 This is the format used by \s-1SDB\s0 on most System V systems prior to
2923 System V Release 4.
2924 .IP "\fB\-gxcoff\fR" 4
2925 .IX Item "-gxcoff"
2926 Produce debugging information in \s-1XCOFF\s0 format (if that is supported).
2927 This is the format used by the \s-1DBX\s0 debugger on \s-1IBM\s0 \s-1RS/6000\s0 systems.
2928 .IP "\fB\-gxcoff+\fR" 4
2929 .IX Item "-gxcoff+"
2930 Produce debugging information in \s-1XCOFF\s0 format (if that is supported),
2931 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
2932 use of these extensions is likely to make other debuggers crash or
2933 refuse to read the program, and may cause assemblers other than the \s-1GNU\s0
2934 assembler (\s-1GAS\s0) to fail with an error.
2935 .IP "\fB\-gdwarf\-2\fR" 4
2936 .IX Item "-gdwarf-2"
2937 Produce debugging information in \s-1DWARF\s0 version 2 format (if that is
2938 supported).  This is the format used by \s-1DBX\s0 on \s-1IRIX\s0 6.  With this
2939 option, \s-1GCC\s0 uses features of \s-1DWARF\s0 version 3 when they are useful;
2940 version 3 is upward compatible with version 2, but may still cause
2941 problems for older debuggers.
2942 .IP "\fB\-gvms\fR" 4
2943 .IX Item "-gvms"
2944 Produce debugging information in \s-1VMS\s0 debug format (if that is
2945 supported).  This is the format used by \s-1DEBUG\s0 on \s-1VMS\s0 systems.
2946 .IP "\fB\-g\fR\fIlevel\fR" 4
2947 .IX Item "-glevel"
2948 .PD 0
2949 .IP "\fB\-ggdb\fR\fIlevel\fR" 4
2950 .IX Item "-ggdblevel"
2951 .IP "\fB\-gstabs\fR\fIlevel\fR" 4
2952 .IX Item "-gstabslevel"
2953 .IP "\fB\-gcoff\fR\fIlevel\fR" 4
2954 .IX Item "-gcofflevel"
2955 .IP "\fB\-gxcoff\fR\fIlevel\fR" 4
2956 .IX Item "-gxcofflevel"
2957 .IP "\fB\-gvms\fR\fIlevel\fR" 4
2958 .IX Item "-gvmslevel"
2959 .PD
2960 Request debugging information and also use \fIlevel\fR to specify how
2961 much information.  The default level is 2.
2962 .Sp
2963 Level 1 produces minimal information, enough for making backtraces in
2964 parts of the program that you don't plan to debug.  This includes
2965 descriptions of functions and external variables, but no information
2966 about local variables and no line numbers.
2967 .Sp
2968 Level 3 includes extra information, such as all the macro definitions
2969 present in the program.  Some debuggers support macro expansion when
2970 you use \fB\-g3\fR.
2971 .Sp
2972 \&\fB\-gdwarf\-2\fR does not accept a concatenated debug level, because
2973 \&\s-1GCC\s0 used to support an option \fB\-gdwarf\fR that meant to generate
2974 debug information in version 1 of the \s-1DWARF\s0 format (which is very
2975 different from version 2), and it would have been too confusing.  That
2976 debug format is long obsolete, but the option cannot be changed now.
2977 Instead use an additional \fB\-g\fR\fIlevel\fR option to change the
2978 debug level for \s-1DWARF2\s0.
2979 .IP "\fB\-feliminate\-dwarf2\-dups\fR" 4
2980 .IX Item "-feliminate-dwarf2-dups"
2981 Compress \s-1DWARF2\s0 debugging information by eliminating duplicated
2982 information about each symbol.  This option only makes sense when
2983 generating \s-1DWARF2\s0 debugging information with \fB\-gdwarf\-2\fR.
2984 .IP "\fB\-p\fR" 4
2985 .IX Item "-p"
2986 Generate extra code to write profile information suitable for the
2987 analysis program \fBprof\fR.  You must use this option when compiling
2988 the source files you want data about, and you must also use it when
2989 linking.
2990 .IP "\fB\-pg\fR" 4
2991 .IX Item "-pg"
2992 Generate extra code to write profile information suitable for the
2993 analysis program \fBgprof\fR.  You must use this option when compiling
2994 the source files you want data about, and you must also use it when
2995 linking.
2996 .IP "\fB\-Q\fR" 4
2997 .IX Item "-Q"
2998 Makes the compiler print out each function name as it is compiled, and
2999 print some statistics about each pass when it finishes.
3000 .IP "\fB\-ftime\-report\fR" 4
3001 .IX Item "-ftime-report"
3002 Makes the compiler print some statistics about the time consumed by each
3003 pass when it finishes.
3004 .IP "\fB\-fmem\-report\fR" 4
3005 .IX Item "-fmem-report"
3006 Makes the compiler print some statistics about permanent memory
3007 allocation when it finishes.
3008 .IP "\fB\-fprofile\-arcs\fR" 4
3009 .IX Item "-fprofile-arcs"
3010 Add code so that program flow \fIarcs\fR are instrumented.  During
3011 execution the program records how many times each branch and call is
3012 executed and how many times it is taken or returns.  When the compiled
3013 program exits it saves this data to a file called
3014 \&\fI\fIauxname\fI.gcda\fR for each source file.  The data may be used for
3015 profile-directed optimizations (\fB\-fbranch\-probabilities\fR), or for
3016 test coverage analysis (\fB\-ftest\-coverage\fR).  Each object file's
3017 \&\fIauxname\fR is generated from the name of the output file, if
3018 explicitly specified and it is not the final executable, otherwise it is
3019 the basename of the source file.  In both cases any suffix is removed
3020 (e.g. \fIfoo.gcda\fR for input file \fIdir/foo.c\fR, or
3021 \&\fIdir/foo.gcda\fR for output file specified as \fB\-o dir/foo.o\fR).
3022 .RS 4
3023 .IP "@bullet" 4
3024 .IX Item "@bullet"
3025 Compile the source files with \fB\-fprofile\-arcs\fR plus optimization
3026 and code generation options.  For test coverage analysis, use the
3027 additional \fB\-ftest\-coverage\fR option.  You do not need to profile
3028 every source file in a program.
3029 .IP "@cvmmfu" 4
3030 .IX Item "@cvmmfu"
3031 Link your object files with \fB\-lgcov\fR or \fB\-fprofile\-arcs\fR
3032 (the latter implies the former).
3033 .IP "@dwnngv" 4
3034 .IX Item "@dwnngv"
3035 Run the program on a representative workload to generate the arc profile
3036 information.  This may be repeated any number of times.  You can run
3037 concurrent instances of your program, and provided that the file system
3038 supports locking, the data files will be correctly updated.  Also
3039 \&\f(CW\*(C`fork\*(C'\fR calls are detected and correctly handled (double counting
3040 will not happen).
3041 .IP "@exoohw" 4
3042 .IX Item "@exoohw"
3043 For profile-directed optimizations, compile the source files again with
3044 the same optimization and code generation options plus
3045 \&\fB\-fbranch\-probabilities\fR.
3046 .IP "@fyppix" 4
3047 .IX Item "@fyppix"
3048 For test coverage analysis, use \fBgcov\fR to produce human readable
3049 information from the \fI.gcno\fR and \fI.gcda\fR files.  Refer to the
3050 \&\fBgcov\fR documentation for further information.
3051 .RE
3052 .RS 4
3053 .Sp
3054 With \fB\-fprofile\-arcs\fR, for each function of your program \s-1GCC\s0
3055 creates a program flow graph, then finds a spanning tree for the graph.
3056 Only arcs that are not on the spanning tree have to be instrumented: the
3057 compiler adds code to count the number of times that these arcs are
3058 executed.  When an arc is the only exit or only entrance to a block, the
3059 instrumentation code can be added to the block; otherwise, a new basic
3060 block must be created to hold the instrumentation code.
3061 .RE
3062 .IP "\fB\-ftree\-based\-profiling\fR" 4
3063 .IX Item "-ftree-based-profiling"
3064 This option is used in addition to \fB\-fprofile\-arcs\fR or
3065 \&\fB\-fbranch\-probabilities\fR to control whether those optimizations
3066 are performed on a tree-based or rtl-based internal representation.
3067 If you use this option when compiling with \fB\-fprofile\-arcs\fR,
3068 you must also use it when compiling later with \fB\-fbranch\-probabilities\fR.
3069 Currently the tree-based optimization is in an early stage of
3070 development, and this option is recommended only for those people
3071 working on improving it.
3072 .IP "\fB\-ftest\-coverage\fR" 4
3073 .IX Item "-ftest-coverage"
3074 Produce a notes file that the \fBgcov\fR code-coverage utility can use to
3075 show program coverage.  Each source file's note file is called
3076 \&\fI\fIauxname\fI.gcno\fR.  Refer to the \fB\-fprofile\-arcs\fR option
3077 above for a description of \fIauxname\fR and instructions on how to
3078 generate test coverage data.  Coverage data will match the source files
3079 more closely, if you do not optimize.
3080 .IP "\fB\-d\fR\fIletters\fR" 4
3081 .IX Item "-dletters"
3082 .PD 0
3083 .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR" 4
3084 .IX Item "-fdump-rtl-pass"
3085 .PD
3086 Says to make debugging dumps during compilation at times specified by
3087 \&\fIletters\fR.    This is used for debugging the RTL-based passes of the
3088 compiler.  The file names for most of the dumps are made by appending a
3089 pass number and a word to the \fIdumpname\fR.  \fIdumpname\fR is generated
3090 from the name of the output file, if explicitly specified and it is not
3091 an executable, otherwise it is the basename of the source file.
3092 .Sp
3093 Most debug dumps can be enabled either passing a letter to the \fB\-d\fR
3094 option, or with a long \fB\-fdump\-rtl\fR switch; here are the possible
3095 letters for use in \fIletters\fR and \fIpass\fR, and their meanings:
3096 .RS 4
3097 .IP "\fB\-dA\fR" 4
3098 .IX Item "-dA"
3099 Annotate the assembler output with miscellaneous debugging information.
3100 .IP "\fB\-db\fR" 4
3101 .IX Item "-db"
3102 .PD 0
3103 .IP "\fB\-fdump\-rtl\-bp\fR" 4
3104 .IX Item "-fdump-rtl-bp"
3105 .PD
3106 Dump after computing branch probabilities, to \fI\fIfile\fI.09.bp\fR.
3107 .IP "\fB\-dB\fR" 4
3108 .IX Item "-dB"
3109 .PD 0
3110 .IP "\fB\-fdump\-rtl\-bbro\fR" 4
3111 .IX Item "-fdump-rtl-bbro"
3112 .PD
3113 Dump after block reordering, to \fI\fIfile\fI.30.bbro\fR.
3114 .IP "\fB\-dc\fR" 4
3115 .IX Item "-dc"
3116 .PD 0
3117 .IP "\fB\-fdump\-rtl\-combine\fR" 4
3118 .IX Item "-fdump-rtl-combine"
3119 .PD
3120 Dump after instruction combination, to the file \fI\fIfile\fI.17.combine\fR.
3121 .IP "\fB\-dC\fR" 4
3122 .IX Item "-dC"
3123 .PD 0
3124 .IP "\fB\-fdump\-rtl\-ce1\fR" 4
3125 .IX Item "-fdump-rtl-ce1"
3126 .IP "\fB\-fdump\-rtl\-ce2\fR" 4
3127 .IX Item "-fdump-rtl-ce2"
3128 .PD
3129 \&\fB\-dC\fR and \fB\-fdump\-rtl\-ce1\fR enable dumping after the
3130 first if conversion, to the file \fI\fIfile\fI.11.ce1\fR.  \fB\-dC\fR
3131 and \fB\-fdump\-rtl\-ce2\fR enable dumping after the second if
3132 conversion, to the file \fI\fIfile\fI.18.ce2\fR.
3133 .IP "\fB\-dd\fR" 4
3134 .IX Item "-dd"
3135 .PD 0
3136 .IP "\fB\-fdump\-rtl\-btl\fR" 4
3137 .IX Item "-fdump-rtl-btl"
3138 .IP "\fB\-fdump\-rtl\-dbr\fR" 4
3139 .IX Item "-fdump-rtl-dbr"
3140 .PD
3141 \&\fB\-dd\fR and \fB\-fdump\-rtl\-btl\fR enable dumping after branch
3142 target load optimization, to \fI\fIfile\fI.31.btl\fR.  \fB\-dd\fR
3143 and \fB\-fdump\-rtl\-dbr\fR enable dumping after delayed branch
3144 scheduling, to \fI\fIfile\fI.36.dbr\fR.
3145 .IP "\fB\-dD\fR" 4
3146 .IX Item "-dD"
3147 Dump all macro definitions, at the end of preprocessing, in addition to
3148 normal output.
3149 .IP "\fB\-dE\fR" 4
3150 .IX Item "-dE"
3151 .PD 0
3152 .IP "\fB\-fdump\-rtl\-ce3\fR" 4
3153 .IX Item "-fdump-rtl-ce3"
3154 .PD
3155 Dump after the third if conversion, to \fI\fIfile\fI.28.ce3\fR.
3156 .IP "\fB\-df\fR" 4
3157 .IX Item "-df"
3158 .PD 0
3159 .IP "\fB\-fdump\-rtl\-cfg\fR" 4
3160 .IX Item "-fdump-rtl-cfg"
3161 .IP "\fB\-fdump\-rtl\-life\fR" 4
3162 .IX Item "-fdump-rtl-life"
3163 .PD
3164 \&\fB\-df\fR and \fB\-fdump\-rtl\-cfg\fR enable dumping after control
3165 and data flow analysis, to \fI\fIfile\fI.08.cfg\fR.  \fB\-df\fR
3166 and \fB\-fdump\-rtl\-cfg\fR enable dumping dump after life analysis,
3167 to \fI\fIfile\fI.16.life\fR.
3168 .IP "\fB\-dg\fR" 4
3169 .IX Item "-dg"
3170 .PD 0
3171 .IP "\fB\-fdump\-rtl\-greg\fR" 4
3172 .IX Item "-fdump-rtl-greg"
3173 .PD
3174 Dump after global register allocation, to \fI\fIfile\fI.23.greg\fR.
3175 .IP "\fB\-dG\fR" 4
3176 .IX Item "-dG"
3177 .PD 0
3178 .IP "\fB\-fdump\-rtl\-gcse\fR" 4
3179 .IX Item "-fdump-rtl-gcse"
3180 .IP "\fB\-fdump\-rtl\-bypass\fR" 4
3181 .IX Item "-fdump-rtl-bypass"
3182 .PD
3183 \&\fB\-dG\fR and \fB\-fdump\-rtl\-gcse\fR enable dumping after \s-1GCSE\s0, to
3184 \&\fI\fIfile\fI.05.gcse\fR.  \fB\-dG\fR and \fB\-fdump\-rtl\-bypass\fR
3185 enable dumping after jump bypassing and control flow optimizations, to
3186 \&\fI\fIfile\fI.07.bypass\fR.
3187 .IP "\fB\-dh\fR" 4
3188 .IX Item "-dh"
3189 .PD 0
3190 .IP "\fB\-fdump\-rtl\-eh\fR" 4
3191 .IX Item "-fdump-rtl-eh"
3192 .PD
3193 Dump after finalization of \s-1EH\s0 handling code, to \fI\fIfile\fI.02.eh\fR.
3194 .IP "\fB\-di\fR" 4
3195 .IX Item "-di"
3196 .PD 0
3197 .IP "\fB\-fdump\-rtl\-sibling\fR" 4
3198 .IX Item "-fdump-rtl-sibling"
3199 .PD
3200 Dump after sibling call optimizations, to \fI\fIfile\fI.01.sibling\fR.
3201 .IP "\fB\-dj\fR" 4
3202 .IX Item "-dj"
3203 .PD 0
3204 .IP "\fB\-fdump\-rtl\-jump\fR" 4
3205 .IX Item "-fdump-rtl-jump"
3206 .PD
3207 Dump after the first jump optimization, to \fI\fIfile\fI.03.jump\fR.
3208 .IP "\fB\-dk\fR" 4
3209 .IX Item "-dk"
3210 .PD 0
3211 .IP "\fB\-fdump\-rtl\-stack\fR" 4
3212 .IX Item "-fdump-rtl-stack"
3213 .PD
3214 Dump after conversion from registers to stack, to \fI\fIfile\fI.33.stack\fR.
3215 .IP "\fB\-dl\fR" 4
3216 .IX Item "-dl"
3217 .PD 0
3218 .IP "\fB\-fdump\-rtl\-lreg\fR" 4
3219 .IX Item "-fdump-rtl-lreg"
3220 .PD
3221 Dump after local register allocation, to \fI\fIfile\fI.22.lreg\fR.
3222 .IP "\fB\-dL\fR" 4
3223 .IX Item "-dL"
3224 .PD 0
3225 .IP "\fB\-fdump\-rtl\-loop\fR" 4
3226 .IX Item "-fdump-rtl-loop"
3227 .IP "\fB\-fdump\-rtl\-loop2\fR" 4
3228 .IX Item "-fdump-rtl-loop2"
3229 .PD
3230 \&\fB\-dL\fR and \fB\-fdump\-rtl\-loop\fR enable dumping after the first
3231 loop optimization pass, to \fI\fIfile\fI.06.loop\fR.  \fB\-dL\fR and
3232 \&\fB\-fdump\-rtl\-loop2\fR enable dumping after the second pass, to
3233 \&\fI\fIfile\fI.13.loop2\fR.
3234 .IP "\fB\-dm\fR" 4
3235 .IX Item "-dm"
3236 .PD 0
3237 .IP "\fB\-fdump\-rtl\-sms\fR" 4
3238 .IX Item "-fdump-rtl-sms"
3239 .PD
3240 Dump after modulo scheduling, to \fI\fIfile\fI.20.sms\fR.
3241 .IP "\fB\-dM\fR" 4
3242 .IX Item "-dM"
3243 .PD 0
3244 .IP "\fB\-fdump\-rtl\-mach\fR" 4
3245 .IX Item "-fdump-rtl-mach"
3246 .PD
3247 Dump after performing the machine dependent reorganization pass, to
3248 \&\fI\fIfile\fI.35.mach\fR.
3249 .IP "\fB\-dn\fR" 4
3250 .IX Item "-dn"
3251 .PD 0
3252 .IP "\fB\-fdump\-rtl\-rnreg\fR" 4
3253 .IX Item "-fdump-rtl-rnreg"
3254 .PD
3255 Dump after register renumbering, to \fI\fIfile\fI.29.rnreg\fR.
3256 .IP "\fB\-dN\fR" 4
3257 .IX Item "-dN"
3258 .PD 0
3259 .IP "\fB\-fdump\-rtl\-regmove\fR" 4
3260 .IX Item "-fdump-rtl-regmove"
3261 .PD
3262 Dump after the register move pass, to \fI\fIfile\fI.19.regmove\fR.
3263 .IP "\fB\-do\fR" 4
3264 .IX Item "-do"
3265 .PD 0
3266 .IP "\fB\-fdump\-rtl\-postreload\fR" 4
3267 .IX Item "-fdump-rtl-postreload"
3268 .PD
3269 Dump after post-reload optimizations, to \fI\fIfile\fI.24.postreload\fR.
3270 .IP "\fB\-dr\fR" 4
3271 .IX Item "-dr"
3272 .PD 0
3273 .IP "\fB\-fdump\-rtl\-expand\fR" 4
3274 .IX Item "-fdump-rtl-expand"
3275 .PD
3276 Dump after \s-1RTL\s0 generation, to \fI\fIfile\fI.00.expand\fR.
3277 .IP "\fB\-dR\fR" 4
3278 .IX Item "-dR"
3279 .PD 0
3280 .IP "\fB\-fdump\-rtl\-sched2\fR" 4
3281 .IX Item "-fdump-rtl-sched2"
3282 .PD
3283 Dump after the second scheduling pass, to \fI\fIfile\fI.32.sched2\fR.
3284 .IP "\fB\-ds\fR" 4
3285 .IX Item "-ds"
3286 .PD 0
3287 .IP "\fB\-fdump\-rtl\-cse\fR" 4
3288 .IX Item "-fdump-rtl-cse"
3289 .PD
3290 Dump after \s-1CSE\s0 (including the jump optimization that sometimes follows
3291 \&\s-1CSE\s0), to \fI\fIfile\fI.04.cse\fR.
3292 .IP "\fB\-dS\fR" 4
3293 .IX Item "-dS"
3294 .PD 0
3295 .IP "\fB\-fdump\-rtl\-sched\fR" 4
3296 .IX Item "-fdump-rtl-sched"
3297 .PD
3298 Dump after the first scheduling pass, to \fI\fIfile\fI.21.sched\fR.
3299 .IP "\fB\-dt\fR" 4
3300 .IX Item "-dt"
3301 .PD 0
3302 .IP "\fB\-fdump\-rtl\-cse2\fR" 4
3303 .IX Item "-fdump-rtl-cse2"
3304 .PD
3305 Dump after the second \s-1CSE\s0 pass (including the jump optimization that
3306 sometimes follows \s-1CSE\s0), to \fI\fIfile\fI.15.cse2\fR.
3307 .IP "\fB\-dT\fR" 4
3308 .IX Item "-dT"
3309 .PD 0
3310 .IP "\fB\-fdump\-rtl\-tracer\fR" 4
3311 .IX Item "-fdump-rtl-tracer"
3312 .PD
3313 Dump after running tracer, to \fI\fIfile\fI.12.tracer\fR.
3314 .IP "\fB\-dV\fR" 4
3315 .IX Item "-dV"
3316 .PD 0
3317 .IP "\fB\-fdump\-rtl\-vpt\fR" 4
3318 .IX Item "-fdump-rtl-vpt"
3319 .IP "\fB\-fdump\-rtl\-vartrack\fR" 4
3320 .IX Item "-fdump-rtl-vartrack"
3321 .PD
3322 \&\fB\-dV\fR and \fB\-fdump\-rtl\-vpt\fR enable dumping after the value
3323 profile transformations, to \fI\fIfile\fI.10.vpt\fR.  \fB\-dV\fR
3324 and \fB\-fdump\-rtl\-vartrack\fR enable dumping after variable tracking,
3325 to \fI\fIfile\fI.34.vartrack\fR.
3326 .IP "\fB\-dw\fR" 4
3327 .IX Item "-dw"
3328 .PD 0
3329 .IP "\fB\-fdump\-rtl\-flow2\fR" 4
3330 .IX Item "-fdump-rtl-flow2"
3331 .PD
3332 Dump after the second flow pass, to \fI\fIfile\fI.26.flow2\fR.
3333 .IP "\fB\-dz\fR" 4
3334 .IX Item "-dz"
3335 .PD 0
3336 .IP "\fB\-fdump\-rtl\-peephole2\fR" 4
3337 .IX Item "-fdump-rtl-peephole2"
3338 .PD
3339 Dump after the peephole pass, to \fI\fIfile\fI.27.peephole2\fR.
3340 .IP "\fB\-dZ\fR" 4
3341 .IX Item "-dZ"
3342 .PD 0
3343 .IP "\fB\-fdump\-rtl\-web\fR" 4
3344 .IX Item "-fdump-rtl-web"
3345 .PD
3346 Dump after live range splitting, to \fI\fIfile\fI.14.web\fR.
3347 .IP "\fB\-da\fR" 4
3348 .IX Item "-da"
3349 .PD 0
3350 .IP "\fB\-fdump\-rtl\-all\fR" 4
3351 .IX Item "-fdump-rtl-all"
3352 .PD
3353 Produce all the dumps listed above.
3354 .IP "\fB\-dH\fR" 4
3355 .IX Item "-dH"
3356 Produce a core dump whenever an error occurs.
3357 .IP "\fB\-dm\fR" 4
3358 .IX Item "-dm"
3359 Print statistics on memory usage, at the end of the run, to
3360 standard error.
3361 .IP "\fB\-dp\fR" 4
3362 .IX Item "-dp"
3363 Annotate the assembler output with a comment indicating which
3364 pattern and alternative was used.  The length of each instruction is
3365 also printed.
3366 .IP "\fB\-dP\fR" 4
3367 .IX Item "-dP"
3368 Dump the \s-1RTL\s0 in the assembler output as a comment before each instruction.
3369 Also turns on \fB\-dp\fR annotation.
3370 .IP "\fB\-dv\fR" 4
3371 .IX Item "-dv"
3372 For each of the other indicated dump files (either with \fB\-d\fR or
3373 \&\fB\-fdump\-rtl\-\fR\fIpass\fR), dump a representation of the control flow
3374 graph suitable for viewing with \s-1VCG\s0 to \fI\fIfile\fI.\fIpass\fI.vcg\fR.
3375 .IP "\fB\-dx\fR" 4
3376 .IX Item "-dx"
3377 Just generate \s-1RTL\s0 for a function instead of compiling it.  Usually used
3378 with \fBr\fR (\fB\-fdump\-rtl\-expand\fR).
3379 .IP "\fB\-dy\fR" 4
3380 .IX Item "-dy"
3381 Dump debugging information during parsing, to standard error.
3382 .RE
3383 .RS 4
3384 .RE
3385 .IP "\fB\-fdump\-unnumbered\fR" 4
3386 .IX Item "-fdump-unnumbered"
3387 When doing debugging dumps (see \fB\-d\fR option above), suppress instruction
3388 numbers and line number note output.  This makes it more feasible to
3389 use diff on debugging dumps for compiler invocations with different
3390 options, in particular with and without \fB\-g\fR.
3391 .IP "\fB\-fdump\-translation\-unit\fR (C and \*(C+ only)" 4
3392 .IX Item "-fdump-translation-unit (C and  only)"
3393 .PD 0
3394 .IP "\fB\-fdump\-translation\-unit\-\fR\fIoptions\fR\fB \fR(C and \*(C+ only)" 4
3395 .IX Item "-fdump-translation-unit-options (C and  only)"
3396 .PD
3397 Dump a representation of the tree structure for the entire translation
3398 unit to a file.  The file name is made by appending \fI.tu\fR to the
3399 source file name.  If the \fB\-\fR\fIoptions\fR form is used, \fIoptions\fR
3400 controls the details of the dump as described for the
3401 \&\fB\-fdump\-tree\fR options.
3402 .IP "\fB\-fdump\-class\-hierarchy\fR (\*(C+ only)" 4
3403 .IX Item "-fdump-class-hierarchy ( only)"
3404 .PD 0
3405 .IP "\fB\-fdump\-class\-hierarchy\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
3406 .IX Item "-fdump-class-hierarchy-options ( only)"
3407 .PD
3408 Dump a representation of each class's hierarchy and virtual function
3409 table layout to a file.  The file name is made by appending \fI.class\fR
3410 to the source file name.  If the \fB\-\fR\fIoptions\fR form is used,
3411 \&\fIoptions\fR controls the details of the dump as described for the
3412 \&\fB\-fdump\-tree\fR options.
3413 .IP "\fB\-fdump\-ipa\-\fR\fIswitch\fR" 4
3414 .IX Item "-fdump-ipa-switch"
3415 Control the dumping at various stages of inter-procedural analysis
3416 language tree to a file.  The file name is generated by appending a switch
3417 specific suffix to the source file name.  The following dumps are possible:
3418 .RS 4
3419 .IP "\fBall\fR" 4
3420 .IX Item "all"
3421 Enables all inter-procedural analysis dumps; currently the only produced
3422 dump is the \fBcgraph\fR dump.
3423 .IP "\fBcgraph\fR" 4
3424 .IX Item "cgraph"
3425 Dumps information about call-graph optimization, unused function removal,
3426 and inlining decisions.
3427 .RE
3428 .RS 4
3429 .RE
3430 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB \fR(C and \*(C+ only)" 4
3431 .IX Item "-fdump-tree-switch (C and  only)"
3432 .PD 0
3433 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB \fR(C and \*(C+ only)" 4
3434 .IX Item "-fdump-tree-switch-options (C and  only)"
3435 .PD
3436 Control the dumping at various stages of processing the intermediate
3437 language tree to a file.  The file name is generated by appending a switch
3438 specific suffix to the source file name.  If the \fB\-\fR\fIoptions\fR
3439 form is used, \fIoptions\fR is a list of \fB\-\fR separated options that
3440 control the details of the dump.  Not all options are applicable to all
3441 dumps, those which are not meaningful will be ignored.  The following
3442 options are available
3443 .RS 4
3444 .IP "\fBaddress\fR" 4
3445 .IX Item "address"
3446 Print the address of each node.  Usually this is not meaningful as it
3447 changes according to the environment and source file.  Its primary use
3448 is for tying up a dump file with a debug environment.
3449 .IP "\fBslim\fR" 4
3450 .IX Item "slim"
3451 Inhibit dumping of members of a scope or body of a function merely
3452 because that scope has been reached.  Only dump such items when they
3453 are directly reachable by some other path.  When dumping pretty-printed
3454 trees, this option inhibits dumping the bodies of control structures.
3455 .IP "\fBraw\fR" 4
3456 .IX Item "raw"
3457 Print a raw representation of the tree.  By default, trees are
3458 pretty-printed into a C\-like representation.
3459 .IP "\fBdetails\fR" 4
3460 .IX Item "details"
3461 Enable more detailed dumps (not honored by every dump option).
3462 .IP "\fBstats\fR" 4
3463 .IX Item "stats"
3464 Enable dumping various statistics about the pass (not honored by every dump
3465 option).
3466 .IP "\fBblocks\fR" 4
3467 .IX Item "blocks"
3468 Enable showing basic block boundaries (disabled in raw dumps).
3469 .IP "\fBvops\fR" 4
3470 .IX Item "vops"
3471 Enable showing virtual operands for every statement.
3472 .IP "\fBlineno\fR" 4
3473 .IX Item "lineno"
3474 Enable showing line numbers for statements.
3475 .IP "\fBuid\fR" 4
3476 .IX Item "uid"
3477 Enable showing the unique \s-1ID\s0 (\f(CW\*(C`DECL_UID\*(C'\fR) for each variable.
3478 .IP "\fBall\fR" 4
3479 .IX Item "all"
3480 Turn on all options, except \fBraw\fR, \fBslim\fR and \fBlineno\fR.
3481 .RE
3482 .RS 4
3483 .Sp
3484 The following tree dumps are possible:
3485 .IP "\fBoriginal\fR" 4
3486 .IX Item "original"
3487 Dump before any tree based optimization, to \fI\fIfile\fI.original\fR.
3488 .IP "\fBoptimized\fR" 4
3489 .IX Item "optimized"
3490 Dump after all tree based optimization, to \fI\fIfile\fI.optimized\fR.
3491 .IP "\fBinlined\fR" 4
3492 .IX Item "inlined"
3493 Dump after function inlining, to \fI\fIfile\fI.inlined\fR.
3494 .IP "\fBgimple\fR" 4
3495 .IX Item "gimple"
3496 Dump each function before and after the gimplification pass to a file.  The
3497 file name is made by appending \fI.gimple\fR to the source file name.
3498 .IP "\fBcfg\fR" 4
3499 .IX Item "cfg"
3500 Dump the control flow graph of each function to a file.  The file name is
3501 made by appending \fI.cfg\fR to the source file name.
3502 .IP "\fBvcg\fR" 4
3503 .IX Item "vcg"
3504 Dump the control flow graph of each function to a file in \s-1VCG\s0 format.  The
3505 file name is made by appending \fI.vcg\fR to the source file name.  Note
3506 that if the file contains more than one function, the generated file cannot
3507 be used directly by \s-1VCG\s0.  You will need to cut and paste each function's
3508 graph into its own separate file first.
3509 .IP "\fBch\fR" 4
3510 .IX Item "ch"
3511 Dump each function after copying loop headers.  The file name is made by
3512 appending \fI.ch\fR to the source file name.
3513 .IP "\fBssa\fR" 4
3514 .IX Item "ssa"
3515 Dump \s-1SSA\s0 related information to a file.  The file name is made by appending
3516 \&\fI.ssa\fR to the source file name.
3517 .IP "\fBalias\fR" 4
3518 .IX Item "alias"
3519 Dump aliasing information for each function.  The file name is made by
3520 appending \fI.alias\fR to the source file name.
3521 .IP "\fBccp\fR" 4
3522 .IX Item "ccp"
3523 Dump each function after \s-1CCP\s0.  The file name is made by appending
3524 \&\fI.ccp\fR to the source file name.
3525 .IP "\fBpre\fR" 4
3526 .IX Item "pre"
3527 Dump trees after partial redundancy elimination.  The file name is made
3528 by appending \fI.pre\fR to the source file name.
3529 .IP "\fBfre\fR" 4
3530 .IX Item "fre"
3531 Dump trees after full redundancy elimination.  The file name is made
3532 by appending \fI.fre\fR to the source file name.
3533 .IP "\fBdce\fR" 4
3534 .IX Item "dce"
3535 Dump each function after dead code elimination.  The file name is made by
3536 appending \fI.dce\fR to the source file name.
3537 .IP "\fBmudflap\fR" 4
3538 .IX Item "mudflap"
3539 Dump each function after adding mudflap instrumentation.  The file name is
3540 made by appending \fI.mudflap\fR to the source file name.
3541 .IP "\fBsra\fR" 4
3542 .IX Item "sra"
3543 Dump each function after performing scalar replacement of aggregates.  The
3544 file name is made by appending \fI.sra\fR to the source file name.
3545 .IP "\fBdom\fR" 4
3546 .IX Item "dom"
3547 Dump each function after applying dominator tree optimizations.  The file
3548 name is made by appending \fI.dom\fR to the source file name.
3549 .IP "\fBdse\fR" 4
3550 .IX Item "dse"
3551 Dump each function after applying dead store elimination.  The file
3552 name is made by appending \fI.dse\fR to the source file name.
3553 .IP "\fBphiopt\fR" 4
3554 .IX Item "phiopt"
3555 Dump each function after optimizing \s-1PHI\s0 nodes into straightline code.  The file
3556 name is made by appending \fI.phiopt\fR to the source file name.
3557 .IP "\fBforwprop\fR" 4
3558 .IX Item "forwprop"
3559 Dump each function after forward propagating single use variables.  The file
3560 name is made by appending \fI.forwprop\fR to the source file name.
3561 .IP "\fBcopyrename\fR" 4
3562 .IX Item "copyrename"
3563 Dump each function after applying the copy rename optimization.  The file
3564 name is made by appending \fI.copyrename\fR to the source file name.
3565 .IP "\fBnrv\fR" 4
3566 .IX Item "nrv"
3567 Dump each function after applying the named return value optimization on
3568 generic trees.  The file name is made by appending \fI.nrv\fR to the source
3569 file name.
3570 .IP "\fBvect\fR" 4
3571 .IX Item "vect"
3572 Dump each function after applying vectorization of loops.  The file name is
3573 made by appending \fI.vect\fR to the source file name.
3574 .IP "\fBall\fR" 4
3575 .IX Item "all"
3576 Enable all the available tree dumps with the flags provided in this option.
3577 .RE
3578 .RS 4
3579 .RE
3580 .IP "\fB\-ftree\-vectorizer\-verbose=\fR\fIn\fR" 4
3581 .IX Item "-ftree-vectorizer-verbose=n"
3582 This option controls the amount of debugging output the vectorizer prints.
3583 This information is written to standard error, unless \fB\-fdump\-tree\-all\fR
3584 or \fB\-fdump\-tree\-vect\fR is specified, in which case it is output to the
3585 usual dump listing file, \fI.vect\fR.
3586 .IP "\fB\-frandom\-seed=\fR\fIstring\fR" 4
3587 .IX Item "-frandom-seed=string"
3588 This option provides a seed that \s-1GCC\s0 uses when it would otherwise use
3589 random numbers.  It is used to generate certain symbol names
3590 that have to be different in every compiled file.  It is also used to
3591 place unique stamps in coverage data files and the object files that
3592 produce them.  You can use the \fB\-frandom\-seed\fR option to produce
3593 reproducibly identical object files.
3594 .Sp
3595 The \fIstring\fR should be different for every file you compile.
3596 .IP "\fB\-fsched\-verbose=\fR\fIn\fR" 4
3597 .IX Item "-fsched-verbose=n"
3598 On targets that use instruction scheduling, this option controls the
3599 amount of debugging output the scheduler prints.  This information is
3600 written to standard error, unless \fB\-dS\fR or \fB\-dR\fR is
3601 specified, in which case it is output to the usual dump
3602 listing file, \fI.sched\fR or \fI.sched2\fR respectively.  However
3603 for \fIn\fR greater than nine, the output is always printed to standard
3604 error.
3605 .Sp
3606 For \fIn\fR greater than zero, \fB\-fsched\-verbose\fR outputs the
3607 same information as \fB\-dRS\fR.  For \fIn\fR greater than one, it
3608 also output basic block probabilities, detailed ready list information
3609 and unit/insn info.  For \fIn\fR greater than two, it includes \s-1RTL\s0
3610 at abort point, control-flow and regions info.  And for \fIn\fR over
3611 four, \fB\-fsched\-verbose\fR also includes dependence info.
3612 .IP "\fB\-save\-temps\fR" 4
3613 .IX Item "-save-temps"
3614 Store the usual ``temporary'' intermediate files permanently; place them
3615 in the current directory and name them based on the source file.  Thus,
3616 compiling \fIfoo.c\fR with \fB\-c \-save\-temps\fR would produce files
3617 \&\fIfoo.i\fR and \fIfoo.s\fR, as well as \fIfoo.o\fR.  This creates a
3618 preprocessed \fIfoo.i\fR output file even though the compiler now
3619 normally uses an integrated preprocessor.
3620 .Sp
3621 When used in combination with the \fB\-x\fR command line option,
3622 \&\fB\-save\-temps\fR is sensible enough to avoid over writing an
3623 input source file with the same extension as an intermediate file.
3624 The corresponding intermediate file may be obtained by renaming the
3625 source file before using \fB\-save\-temps\fR.
3626 .IP "\fB\-time\fR" 4
3627 .IX Item "-time"
3628 Report the \s-1CPU\s0 time taken by each subprocess in the compilation
3629 sequence.  For C source files, this is the compiler proper and assembler
3630 (plus the linker if linking is done).  The output looks like this:
3631 .Sp
3632 .Vb 2
3633 \&        # cc1 0.12 0.01
3634 \&        # as 0.00 0.01
3635 .Ve
3636 .Sp
3637 The first number on each line is the ``user time'', that is time spent
3638 executing the program itself.  The second number is ``system time'',
3639 time spent executing operating system routines on behalf of the program.
3640 Both numbers are in seconds.
3641 .IP "\fB\-fvar\-tracking\fR" 4
3642 .IX Item "-fvar-tracking"
3643 Run variable tracking pass.  It computes where variables are stored at each
3644 position in code.  Better debugging information is then generated
3645 (if the debugging information format supports this information).
3646 .Sp
3647 It is enabled by default when compiling with optimization (\fB\-Os\fR,
3648 \&\fB\-O\fR, \fB\-O2\fR, ...), debugging information (\fB\-g\fR) and
3649 the debug info format supports it.
3650 .IP "\fB\-print\-file\-name=\fR\fIlibrary\fR" 4
3651 .IX Item "-print-file-name=library"
3652 Print the full absolute name of the library file \fIlibrary\fR that
3653 would be used when linking\-\-\-and don't do anything else.  With this
3654 option, \s-1GCC\s0 does not compile or link anything; it just prints the
3655 file name.
3656 .IP "\fB\-print\-multi\-directory\fR" 4
3657 .IX Item "-print-multi-directory"
3658 Print the directory name corresponding to the multilib selected by any
3659 other switches present in the command line.  This directory is supposed
3660 to exist in \fB\s-1GCC_EXEC_PREFIX\s0\fR.
3661 .IP "\fB\-print\-multi\-lib\fR" 4
3662 .IX Item "-print-multi-lib"
3663 Print the mapping from multilib directory names to compiler switches
3664 that enable them.  The directory name is separated from the switches by
3665 \&\fB;\fR, and each switch starts with an \fB@} instead of the
3666 \&\f(CB@samp\fB{\-\fR, without spaces between multiple switches.  This is supposed to
3667 ease shell\-processing.
3668 .IP "\fB\-print\-prog\-name=\fR\fIprogram\fR" 4
3669 .IX Item "-print-prog-name=program"
3670 Like \fB\-print\-file\-name\fR, but searches for a program such as \fBcpp\fR.
3671 .IP "\fB\-print\-libgcc\-file\-name\fR" 4
3672 .IX Item "-print-libgcc-file-name"
3673 Same as \fB\-print\-file\-name=libgcc.a\fR.
3674 .Sp
3675 This is useful when you use \fB\-nostdlib\fR or \fB\-nodefaultlibs\fR
3676 but you do want to link with \fIlibgcc.a\fR.  You can do
3677 .Sp
3678 .Vb 1
3679 \&        gcc -nostdlib <files>... `gcc -print-libgcc-file-name`
3680 .Ve
3681 .IP "\fB\-print\-search\-dirs\fR" 4
3682 .IX Item "-print-search-dirs"
3683 Print the name of the configured installation directory and a list of
3684 program and library directories \fBgcc\fR will search\-\-\-and don't do anything else.
3685 .Sp
3686 This is useful when \fBgcc\fR prints the error message
3687 \&\fBinstallation problem, cannot exec cpp0: No such file or directory\fR.
3688 To resolve this you either need to put \fIcpp0\fR and the other compiler
3689 components where \fBgcc\fR expects to find them, or you can set the environment
3690 variable \fB\s-1GCC_EXEC_PREFIX\s0\fR to the directory where you installed them.
3691 Don't forget the trailing \fB/\fR.
3692 .IP "\fB\-dumpmachine\fR" 4
3693 .IX Item "-dumpmachine"
3694 Print the compiler's target machine (for example,
3695 \&\fBi686\-pc\-linux\-gnu\fR)\-\-\-and don't do anything else.
3696 .IP "\fB\-dumpversion\fR" 4
3697 .IX Item "-dumpversion"
3698 Print the compiler version (for example, \fB3.0\fR)\-\-\-and don't do
3699 anything else.
3700 .IP "\fB\-dumpspecs\fR" 4
3701 .IX Item "-dumpspecs"
3702 Print the compiler's built-in specs\-\-\-and don't do anything else.  (This
3703 is used when \s-1GCC\s0 itself is being built.)  
3704 .IP "\fB\-feliminate\-unused\-debug\-types\fR" 4
3705 .IX Item "-feliminate-unused-debug-types"
3706 Normally, when producing \s-1DWARF2\s0 output, \s-1GCC\s0 will emit debugging
3707 information for all types declared in a compilation
3708 unit, regardless of whether or not they are actually used
3709 in that compilation unit.  Sometimes this is useful, such as
3710 if, in the debugger, you want to cast a value to a type that is
3711 not actually used in your program (but is declared).  More often,
3712 however, this results in a significant amount of wasted space.
3713 With this option, \s-1GCC\s0 will avoid producing debug symbol output
3714 for types that are nowhere used in the source file being compiled.
3715 .Sh "Options That Control Optimization"
3716 .IX Subsection "Options That Control Optimization"
3717 These options control various sorts of optimizations.
3718 .PP
3719 Without any optimization option, the compiler's goal is to reduce the
3720 cost of compilation and to make debugging produce the expected
3721 results.  Statements are independent: if you stop the program with a
3722 breakpoint between statements, you can then assign a new value to any
3723 variable or change the program counter to any other statement in the
3724 function and get exactly the results you would expect from the source
3725 code.
3726 .PP
3727 Turning on optimization flags makes the compiler attempt to improve
3728 the performance and/or code size at the expense of compilation time
3729 and possibly the ability to debug the program.
3730 .PP
3731 The compiler performs optimization based on the knowledge it has of
3732 the program.  Optimization levels \fB\-O2\fR and above, in
3733 particular, enable \fIunit-at-a-time\fR mode, which allows the
3734 compiler to consider information gained from later functions in
3735 the file when compiling a function.  Compiling multiple files at
3736 once to a single output file in \fIunit-at-a-time\fR mode allows
3737 the compiler to use information gained from all of the files when
3738 compiling each of them.
3739 .PP
3740 Not all optimizations are controlled directly by a flag.  Only
3741 optimizations that have a flag are listed.
3742 .IP "\fB\-O\fR" 4
3743 .IX Item "-O"
3744 .PD 0
3745 .IP "\fB\-O1\fR" 4
3746 .IX Item "-O1"
3747 .PD
3748 Optimize.  Optimizing compilation takes somewhat more time, and a lot
3749 more memory for a large function.
3750 .Sp
3751 With \fB\-O\fR, the compiler tries to reduce code size and execution
3752 time, without performing any optimizations that take a great deal of
3753 compilation time.
3754 .Sp
3755 \&\fB\-O\fR turns on the following optimization flags:
3756 \&\fB\-fdefer\-pop 
3757 \&\-fdelayed\-branch 
3758 \&\-fguess\-branch\-probability 
3759 \&\-fcprop\-registers 
3760 \&\-floop\-optimize 
3761 \&\-fif\-conversion 
3762 \&\-fif\-conversion2 
3763 \&\-ftree\-ccp 
3764 \&\-ftree\-dce 
3765 \&\-ftree\-dominator\-opts 
3766 \&\-ftree\-dse 
3767 \&\-ftree\-ter 
3768 \&\-ftree\-lrs 
3769 \&\-ftree\-sra 
3770 \&\-ftree\-copyrename 
3771 \&\-ftree\-fre 
3772 \&\-ftree\-ch 
3773 \&\-fmerge\-constants\fR
3774 .Sp
3775 \&\fB\-O\fR also turns on \fB\-fomit\-frame\-pointer\fR on machines
3776 where doing so does not interfere with debugging.
3777 .Sp
3778 \&\fB\-O\fR doesn't turn on \fB\-ftree\-sra\fR for the Ada compiler.
3779 This option must be explicitly specified on the command line to be
3780 enabled for the Ada compiler.
3781 .IP "\fB\-O2\fR" 4
3782 .IX Item "-O2"
3783 Optimize even more.  \s-1GCC\s0 performs nearly all supported optimizations
3784 that do not involve a space-speed tradeoff.  The compiler does not
3785 perform loop unrolling or function inlining when you specify \fB\-O2\fR.
3786 As compared to \fB\-O\fR, this option increases both compilation time
3787 and the performance of the generated code.
3788 .Sp
3789 \&\fB\-O2\fR turns on all optimization flags specified by \fB\-O\fR.  It
3790 also turns on the following optimization flags:
3791 \&\fB\-fthread\-jumps 
3792 \&\-fcrossjumping 
3793 \&\-foptimize\-sibling\-calls 
3794 \&\-fcse\-follow\-jumps  \-fcse\-skip\-blocks 
3795 \&\-fgcse  \-fgcse\-lm  
3796 \&\-fexpensive\-optimizations 
3797 \&\-fstrength\-reduce 
3798 \&\-frerun\-cse\-after\-loop  \-frerun\-loop\-opt 
3799 \&\-fcaller\-saves 
3800 \&\-fforce\-mem 
3801 \&\-fpeephole2 
3802 \&\-fschedule\-insns  \-fschedule\-insns2 
3803 \&\-fsched\-interblock  \-fsched\-spec 
3804 \&\-fregmove 
3805 \&\-fstrict\-aliasing 
3806 \&\-fdelete\-null\-pointer\-checks 
3807 \&\-freorder\-blocks  \-freorder\-functions 
3808 \&\-funit\-at\-a\-time 
3809 \&\-falign\-functions  \-falign\-jumps 
3810 \&\-falign\-loops  \-falign\-labels 
3811 \&\-ftree\-pre\fR
3812 .Sp
3813 Please note the warning under \fB\-fgcse\fR about
3814 invoking \fB\-O2\fR on programs that use computed gotos.
3815 .IP "\fB\-O3\fR" 4
3816 .IX Item "-O3"
3817 Optimize yet more.  \fB\-O3\fR turns on all optimizations specified by
3818 \&\fB\-O2\fR and also turns on the \fB\-finline\-functions\fR,
3819 \&\fB\-funswitch\-loops\fR and \fB\-fgcse\-after\-reload\fR options.
3820 .IP "\fB\-O0\fR" 4
3821 .IX Item "-O0"
3822 Do not optimize.  This is the default.
3823 .IP "\fB\-Os\fR" 4
3824 .IX Item "-Os"
3825 Optimize for size.  \fB\-Os\fR enables all \fB\-O2\fR optimizations that
3826 do not typically increase code size.  It also performs further
3827 optimizations designed to reduce code size.
3828 .Sp
3829 \&\fB\-Os\fR disables the following optimization flags:
3830 \&\fB\-falign\-functions  \-falign\-jumps  \-falign\-loops 
3831 \&\-falign\-labels  \-freorder\-blocks  \-freorder\-blocks\-and\-partition \-fprefetch\-loop\-arrays\fR
3832 .Sp
3833 If you use multiple \fB\-O\fR options, with or without level numbers,
3834 the last such option is the one that is effective.
3835 .PP
3836 Options of the form \fB\-f\fR\fIflag\fR specify machine-independent
3837 flags.  Most flags have both positive and negative forms; the negative
3838 form of \fB\-ffoo\fR would be \fB\-fno\-foo\fR.  In the table
3839 below, only one of the forms is listed\-\-\-the one you typically will
3840 use.  You can figure out the other form by either removing \fBno\-\fR
3841 or adding it.
3842 .PP
3843 The following options control specific optimizations.  They are either
3844 activated by \fB\-O\fR options or are related to ones that are.  You
3845 can use the following flags in the rare cases when ``fine\-tuning'' of
3846 optimizations to be performed is desired.
3847 .IP "\fB\-fno\-default\-inline\fR" 4
3848 .IX Item "-fno-default-inline"
3849 Do not make member functions inline by default merely because they are
3850 defined inside the class scope (\*(C+ only).  Otherwise, when you specify
3851 \&\fB\-O\fR, member functions defined inside class scope are compiled
3852 inline by default; i.e., you don't need to add \fBinline\fR in front of
3853 the member function name.
3854 .IP "\fB\-fno\-defer\-pop\fR" 4
3855 .IX Item "-fno-defer-pop"
3856 Always pop the arguments to each function call as soon as that function
3857 returns.  For machines which must pop arguments after a function call,
3858 the compiler normally lets arguments accumulate on the stack for several
3859 function calls and pops them all at once.
3860 .Sp
3861 Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3862 .IP "\fB\-fforce\-mem\fR" 4
3863 .IX Item "-fforce-mem"
3864 Force memory operands to be copied into registers before doing
3865 arithmetic on them.  This produces better code by making all memory
3866 references potential common subexpressions.  When they are not common
3867 subexpressions, instruction combination should eliminate the separate
3868 register\-load.
3869 .Sp
3870 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3871 .IP "\fB\-fforce\-addr\fR" 4
3872 .IX Item "-fforce-addr"
3873 Force memory address constants to be copied into registers before
3874 doing arithmetic on them.  This may produce better code just as
3875 \&\fB\-fforce\-mem\fR may.
3876 .IP "\fB\-fomit\-frame\-pointer\fR" 4
3877 .IX Item "-fomit-frame-pointer"
3878 Don't keep the frame pointer in a register for functions that
3879 don't need one.  This avoids the instructions to save, set up and
3880 restore frame pointers; it also makes an extra register available
3881 in many functions.  \fBIt also makes debugging impossible on
3882 some machines.\fR
3883 .Sp
3884 On some machines, such as the \s-1VAX\s0, this flag has no effect, because
3885 the standard calling sequence automatically handles the frame pointer
3886 and nothing is saved by pretending it doesn't exist.  The
3887 machine-description macro \f(CW\*(C`FRAME_POINTER_REQUIRED\*(C'\fR controls
3888 whether a target machine supports this flag.  
3889 .Sp
3890 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3891 .IP "\fB\-foptimize\-sibling\-calls\fR" 4
3892 .IX Item "-foptimize-sibling-calls"
3893 Optimize sibling and tail recursive calls.
3894 .Sp
3895 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3896 .IP "\fB\-fno\-inline\fR" 4
3897 .IX Item "-fno-inline"
3898 Don't pay attention to the \f(CW\*(C`inline\*(C'\fR keyword.  Normally this option
3899 is used to keep the compiler from expanding any functions inline.
3900 Note that if you are not optimizing, no functions can be expanded inline.
3901 .IP "\fB\-finline\-functions\fR" 4
3902 .IX Item "-finline-functions"
3903 Integrate all simple functions into their callers.  The compiler
3904 heuristically decides which functions are simple enough to be worth
3905 integrating in this way.
3906 .Sp
3907 If all calls to a given function are integrated, and the function is
3908 declared \f(CW\*(C`static\*(C'\fR, then the function is normally not output as
3909 assembler code in its own right.
3910 .Sp
3911 Enabled at level \fB\-O3\fR.
3912 .IP "\fB\-finline\-limit=\fR\fIn\fR" 4
3913 .IX Item "-finline-limit=n"
3914 By default, \s-1GCC\s0 limits the size of functions that can be inlined.  This flag
3915 allows the control of this limit for functions that are explicitly marked as
3916 inline (i.e., marked with the inline keyword or defined within the class
3917 definition in c++).  \fIn\fR is the size of functions that can be inlined in
3918 number of pseudo instructions (not counting parameter handling).  The default
3919 value of \fIn\fR is 600.
3920 Increasing this value can result in more inlined code at
3921 the cost of compilation time and memory consumption.  Decreasing usually makes
3922 the compilation faster and less code will be inlined (which presumably
3923 means slower programs).  This option is particularly useful for programs that
3924 use inlining heavily such as those based on recursive templates with \*(C+.
3925 .Sp
3926 Inlining is actually controlled by a number of parameters, which may be
3927 specified individually by using \fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR.
3928 The \fB\-finline\-limit=\fR\fIn\fR option sets some of these parameters
3929 as follows:
3930 .RS 4
3931 .Sp
3932 .Vb 8
3933 \& @item max-inline-insns-single
3934 \&  is set to I<n>/2.
3935 \& @item max-inline-insns-auto
3936 \&  is set to I<n>/2.
3937 \& @item min-inline-insns
3938 \&  is set to 130 or I<n>/4, whichever is smaller.
3939 \& @item max-inline-insns-rtl
3940 \&  is set to I<n>.
3941 .Ve
3942 .RE
3943 .RS 4
3944 .Sp
3945 See below for a documentation of the individual
3946 parameters controlling inlining.
3947 .Sp
3948 \&\fINote:\fR pseudo instruction represents, in this particular context, an
3949 abstract measurement of function's size.  In no way, it represents a count
3950 of assembly instructions and as such its exact meaning might change from one
3951 release to an another.
3952 .RE
3953 .IP "\fB\-fkeep\-inline\-functions\fR" 4
3954 .IX Item "-fkeep-inline-functions"
3955 In C, emit \f(CW\*(C`static\*(C'\fR functions that are declared \f(CW\*(C`inline\*(C'\fR
3956 into the object file, even if the function has been inlined into all
3957 of its callers.  This switch does not affect functions using the
3958 \&\f(CW\*(C`extern inline\*(C'\fR extension in \s-1GNU\s0 C.  In \*(C+, emit any and all
3959 inline functions into the object file.
3960 .IP "\fB\-fkeep\-static\-consts\fR" 4
3961 .IX Item "-fkeep-static-consts"
3962 Emit variables declared \f(CW\*(C`static const\*(C'\fR when optimization isn't turned
3963 on, even if the variables aren't referenced.
3964 .Sp
3965 \&\s-1GCC\s0 enables this option by default.  If you want to force the compiler to
3966 check if the variable was referenced, regardless of whether or not
3967 optimization is turned on, use the \fB\-fno\-keep\-static\-consts\fR option.
3968 .IP "\fB\-fmerge\-constants\fR" 4
3969 .IX Item "-fmerge-constants"
3970 Attempt to merge identical constants (string constants and floating point
3971 constants) across compilation units.
3972 .Sp
3973 This option is the default for optimized compilation if the assembler and
3974 linker support it.  Use \fB\-fno\-merge\-constants\fR to inhibit this
3975 behavior.
3976 .Sp
3977 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3978 .IP "\fB\-fmerge\-all\-constants\fR" 4
3979 .IX Item "-fmerge-all-constants"
3980 Attempt to merge identical constants and identical variables.
3981 .Sp
3982 This option implies \fB\-fmerge\-constants\fR.  In addition to
3983 \&\fB\-fmerge\-constants\fR this considers e.g. even constant initialized
3984 arrays or initialized constant variables with integral or floating point
3985 types.  Languages like C or \*(C+ require each non-automatic variable to
3986 have distinct location, so using this option will result in non-conforming
3987 behavior.
3988 .IP "\fB\-fmodulo\-sched\fR" 4
3989 .IX Item "-fmodulo-sched"
3990 Perform swing modulo scheduling immediately before the first scheduling
3991 pass.  This pass looks at innermost loops and reorders their
3992 instructions by overlapping different iterations.
3993 .IP "\fB\-fno\-branch\-count\-reg\fR" 4
3994 .IX Item "-fno-branch-count-reg"
3995 Do not use ``decrement and branch'' instructions on a count register,
3996 but instead generate a sequence of instructions that decrement a
3997 register, compare it against zero, then branch based upon the result.
3998 This option is only meaningful on architectures that support such
3999 instructions, which include x86, PowerPC, \s-1IA\-64\s0 and S/390.
4000 .Sp
4001 The default is \fB\-fbranch\-count\-reg\fR, enabled when
4002 \&\fB\-fstrength\-reduce\fR is enabled.
4003 .IP "\fB\-fno\-function\-cse\fR" 4
4004 .IX Item "-fno-function-cse"
4005 Do not put function addresses in registers; make each instruction that
4006 calls a constant function contain the function's address explicitly.
4007 .Sp
4008 This option results in less efficient code, but some strange hacks
4009 that alter the assembler output may be confused by the optimizations
4010 performed when this option is not used.
4011 .Sp
4012 The default is \fB\-ffunction\-cse\fR
4013 .IP "\fB\-fno\-zero\-initialized\-in\-bss\fR" 4
4014 .IX Item "-fno-zero-initialized-in-bss"
4015 If the target supports a \s-1BSS\s0 section, \s-1GCC\s0 by default puts variables that
4016 are initialized to zero into \s-1BSS\s0.  This can save space in the resulting
4017 code.
4018 .Sp
4019 This option turns off this behavior because some programs explicitly
4020 rely on variables going to the data section.  E.g., so that the
4021 resulting executable can find the beginning of that section and/or make
4022 assumptions based on that.
4023 .Sp
4024 The default is \fB\-fzero\-initialized\-in\-bss\fR.
4025 .IP "\fB\-fbounds\-check\fR" 4
4026 .IX Item "-fbounds-check"
4027 For front-ends that support it, generate additional code to check that
4028 indices used to access arrays are within the declared range.  This is
4029 currently only supported by the Java and Fortran front\-ends, where
4030 this option defaults to true and false respectively.
4031 .IP "\fB\-fmudflap \-fmudflapth \-fmudflapir\fR" 4
4032 .IX Item "-fmudflap -fmudflapth -fmudflapir"
4033 For front-ends that support it (C and \*(C+), instrument all risky
4034 pointer/array dereferencing operations, some standard library
4035 string/heap functions, and some other associated constructs with
4036 range/validity tests.  Modules so instrumented should be immune to
4037 buffer overflows, invalid heap use, and some other classes of C/\*(C+
4038 programming errors.  The instrumentation relies on a separate runtime
4039 library (\fIlibmudflap\fR), which will be linked into a program if
4040 \&\fB\-fmudflap\fR is given at link time.  Run-time behavior of the
4041 instrumented program is controlled by the \fB\s-1MUDFLAP_OPTIONS\s0\fR
4042 environment variable.  See \f(CW\*(C`env MUDFLAP_OPTIONS=\-help a.out\*(C'\fR
4043 for its options.
4044 .Sp
4045 Use \fB\-fmudflapth\fR instead of \fB\-fmudflap\fR to compile and to
4046 link if your program is multi\-threaded.  Use \fB\-fmudflapir\fR, in
4047 addition to \fB\-fmudflap\fR or \fB\-fmudflapth\fR, if
4048 instrumentation should ignore pointer reads.  This produces less
4049 instrumentation (and therefore faster execution) and still provides
4050 some protection against outright memory corrupting writes, but allows
4051 erroneously read data to propagate within a program.
4052 .IP "\fB\-fstrength\-reduce\fR" 4
4053 .IX Item "-fstrength-reduce"
4054 Perform the optimizations of loop strength reduction and
4055 elimination of iteration variables.
4056 .Sp
4057 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4058 .IP "\fB\-fthread\-jumps\fR" 4
4059 .IX Item "-fthread-jumps"
4060 Perform optimizations where we check to see if a jump branches to a
4061 location where another comparison subsumed by the first is found.  If
4062 so, the first branch is redirected to either the destination of the
4063 second branch or a point immediately following it, depending on whether
4064 the condition is known to be true or false.
4065 .Sp
4066 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4067 .IP "\fB\-fcse\-follow\-jumps\fR" 4
4068 .IX Item "-fcse-follow-jumps"
4069 In common subexpression elimination, scan through jump instructions
4070 when the target of the jump is not reached by any other path.  For
4071 example, when \s-1CSE\s0 encounters an \f(CW\*(C`if\*(C'\fR statement with an
4072 \&\f(CW\*(C`else\*(C'\fR clause, \s-1CSE\s0 will follow the jump when the condition
4073 tested is false.
4074 .Sp
4075 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4076 .IP "\fB\-fcse\-skip\-blocks\fR" 4
4077 .IX Item "-fcse-skip-blocks"
4078 This is similar to \fB\-fcse\-follow\-jumps\fR, but causes \s-1CSE\s0 to
4079 follow jumps which conditionally skip over blocks.  When \s-1CSE\s0
4080 encounters a simple \f(CW\*(C`if\*(C'\fR statement with no else clause,
4081 \&\fB\-fcse\-skip\-blocks\fR causes \s-1CSE\s0 to follow the jump around the
4082 body of the \f(CW\*(C`if\*(C'\fR.
4083 .Sp
4084 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4085 .IP "\fB\-frerun\-cse\-after\-loop\fR" 4
4086 .IX Item "-frerun-cse-after-loop"
4087 Re-run common subexpression elimination after loop optimizations has been
4088 performed.
4089 .Sp
4090 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4091 .IP "\fB\-frerun\-loop\-opt\fR" 4
4092 .IX Item "-frerun-loop-opt"
4093 Run the loop optimizer twice.
4094 .Sp
4095 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4096 .IP "\fB\-fgcse\fR" 4
4097 .IX Item "-fgcse"
4098 Perform a global common subexpression elimination pass.
4099 This pass also performs global constant and copy propagation.
4100 .Sp
4101 \&\fINote:\fR When compiling a program using computed gotos, a \s-1GCC\s0
4102 extension, you may get better runtime performance if you disable
4103 the global common subexpression elimination pass by adding
4104 \&\fB\-fno\-gcse\fR to the command line.
4105 .Sp
4106 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4107 .IP "\fB\-fgcse\-lm\fR" 4
4108 .IX Item "-fgcse-lm"
4109 When \fB\-fgcse\-lm\fR is enabled, global common subexpression elimination will
4110 attempt to move loads which are only killed by stores into themselves.  This
4111 allows a loop containing a load/store sequence to be changed to a load outside
4112 the loop, and a copy/store within the loop.
4113 .Sp
4114 Enabled by default when gcse is enabled.
4115 .IP "\fB\-fgcse\-sm\fR" 4
4116 .IX Item "-fgcse-sm"
4117 When \fB\-fgcse\-sm\fR is enabled, a store motion pass is run after
4118 global common subexpression elimination.  This pass will attempt to move
4119 stores out of loops.  When used in conjunction with \fB\-fgcse\-lm\fR,
4120 loops containing a load/store sequence can be changed to a load before
4121 the loop and a store after the loop.
4122 .Sp
4123 Not enabled at any optimization level.
4124 .IP "\fB\-fgcse\-las\fR" 4
4125 .IX Item "-fgcse-las"
4126 When \fB\-fgcse\-las\fR is enabled, the global common subexpression
4127 elimination pass eliminates redundant loads that come after stores to the
4128 same memory location (both partial and full redundancies).
4129 .Sp
4130 Not enabled at any optimization level.
4131 .IP "\fB\-fgcse\-after\-reload\fR" 4
4132 .IX Item "-fgcse-after-reload"
4133 When \fB\-fgcse\-after\-reload\fR is enabled, a redundant load elimination
4134 pass is performed after reload.  The purpose of this pass is to cleanup
4135 redundant spilling.
4136 .IP "\fB\-floop\-optimize\fR" 4
4137 .IX Item "-floop-optimize"
4138 Perform loop optimizations: move constant expressions out of loops, simplify
4139 exit test conditions and optionally do strength-reduction as well.
4140 .Sp
4141 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4142 .IP "\fB\-floop\-optimize2\fR" 4
4143 .IX Item "-floop-optimize2"
4144 Perform loop optimizations using the new loop optimizer.  The optimizations
4145 (loop unrolling, peeling and unswitching, loop invariant motion) are enabled
4146 by separate flags.
4147 .IP "\fB\-fcrossjumping\fR" 4
4148 .IX Item "-fcrossjumping"
4149 Perform cross-jumping transformation.  This transformation unifies equivalent code and save code size.  The
4150 resulting code may or may not perform better than without cross\-jumping.
4151 .Sp
4152 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4153 .IP "\fB\-fif\-conversion\fR" 4
4154 .IX Item "-fif-conversion"
4155 Attempt to transform conditional jumps into branch-less equivalents.  This
4156 include use of conditional moves, min, max, set flags and abs instructions, and
4157 some tricks doable by standard arithmetics.  The use of conditional execution
4158 on chips where it is available is controlled by \f(CW\*(C`if\-conversion2\*(C'\fR.
4159 .Sp
4160 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4161 .IP "\fB\-fif\-conversion2\fR" 4
4162 .IX Item "-fif-conversion2"
4163 Use conditional execution (where available) to transform conditional jumps into
4164 branch-less equivalents.
4165 .Sp
4166 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4167 .IP "\fB\-fdelete\-null\-pointer\-checks\fR" 4
4168 .IX Item "-fdelete-null-pointer-checks"
4169 Use global dataflow analysis to identify and eliminate useless checks
4170 for null pointers.  The compiler assumes that dereferencing a null
4171 pointer would have halted the program.  If a pointer is checked after
4172 it has already been dereferenced, it cannot be null.
4173 .Sp
4174 In some environments, this assumption is not true, and programs can
4175 safely dereference null pointers.  Use
4176 \&\fB\-fno\-delete\-null\-pointer\-checks\fR to disable this optimization
4177 for programs which depend on that behavior.
4178 .Sp
4179 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4180 .IP "\fB\-fexpensive\-optimizations\fR" 4
4181 .IX Item "-fexpensive-optimizations"
4182 Perform a number of minor optimizations that are relatively expensive.
4183 .Sp
4184 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4185 .IP "\fB\-foptimize\-register\-move\fR" 4
4186 .IX Item "-foptimize-register-move"
4187 .PD 0
4188 .IP "\fB\-fregmove\fR" 4
4189 .IX Item "-fregmove"
4190 .PD
4191 Attempt to reassign register numbers in move instructions and as
4192 operands of other simple instructions in order to maximize the amount of
4193 register tying.  This is especially helpful on machines with two-operand
4194 instructions.
4195 .Sp
4196 Note \fB\-fregmove\fR and \fB\-foptimize\-register\-move\fR are the same
4197 optimization.
4198 .Sp
4199 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4200 .IP "\fB\-fdelayed\-branch\fR" 4
4201 .IX Item "-fdelayed-branch"
4202 If supported for the target machine, attempt to reorder instructions
4203 to exploit instruction slots available after delayed branch
4204 instructions.
4205 .Sp
4206 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4207 .IP "\fB\-fschedule\-insns\fR" 4
4208 .IX Item "-fschedule-insns"
4209 If supported for the target machine, attempt to reorder instructions to
4210 eliminate execution stalls due to required data being unavailable.  This
4211 helps machines that have slow floating point or memory load instructions
4212 by allowing other instructions to be issued until the result of the load
4213 or floating point instruction is required.
4214 .Sp
4215 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4216 .IP "\fB\-fschedule\-insns2\fR" 4
4217 .IX Item "-fschedule-insns2"
4218 Similar to \fB\-fschedule\-insns\fR, but requests an additional pass of
4219 instruction scheduling after register allocation has been done.  This is
4220 especially useful on machines with a relatively small number of
4221 registers and where memory load instructions take more than one cycle.
4222 .Sp
4223 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4224 .IP "\fB\-fno\-sched\-interblock\fR" 4
4225 .IX Item "-fno-sched-interblock"
4226 Don't schedule instructions across basic blocks.  This is normally
4227 enabled by default when scheduling before register allocation, i.e.
4228 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
4229 .IP "\fB\-fno\-sched\-spec\fR" 4
4230 .IX Item "-fno-sched-spec"
4231 Don't allow speculative motion of non-load instructions.  This is normally
4232 enabled by default when scheduling before register allocation, i.e.
4233 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
4234 .IP "\fB\-fsched\-spec\-load\fR" 4
4235 .IX Item "-fsched-spec-load"
4236 Allow speculative motion of some load instructions.  This only makes
4237 sense when scheduling before register allocation, i.e. with
4238 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
4239 .IP "\fB\-fsched\-spec\-load\-dangerous\fR" 4
4240 .IX Item "-fsched-spec-load-dangerous"
4241 Allow speculative motion of more load instructions.  This only makes
4242 sense when scheduling before register allocation, i.e. with
4243 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
4244 .IP "\fB\-fsched\-stalled\-insns=\fR\fIn\fR" 4
4245 .IX Item "-fsched-stalled-insns=n"
4246 Define how many insns (if any) can be moved prematurely from the queue
4247 of stalled insns into the ready list, during the second scheduling pass.
4248 .IP "\fB\-fsched\-stalled\-insns\-dep=\fR\fIn\fR" 4
4249 .IX Item "-fsched-stalled-insns-dep=n"
4250 Define how many insn groups (cycles) will be examined for a dependency
4251 on a stalled insn that is candidate for premature removal from the queue
4252 of stalled insns.  Has an effect only during the second scheduling pass,
4253 and only if \fB\-fsched\-stalled\-insns\fR is used and its value is not zero.
4254 .IP "\fB\-fsched2\-use\-superblocks\fR" 4
4255 .IX Item "-fsched2-use-superblocks"
4256 When scheduling after register allocation, do use superblock scheduling
4257 algorithm.  Superblock scheduling allows motion across basic block boundaries
4258 resulting on faster schedules.  This option is experimental, as not all machine
4259 descriptions used by \s-1GCC\s0 model the \s-1CPU\s0 closely enough to avoid unreliable
4260 results from the algorithm.
4261 .Sp
4262 This only makes sense when scheduling after register allocation, i.e. with
4263 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
4264 .IP "\fB\-fsched2\-use\-traces\fR" 4
4265 .IX Item "-fsched2-use-traces"
4266 Use \fB\-fsched2\-use\-superblocks\fR algorithm when scheduling after register
4267 allocation and additionally perform code duplication in order to increase the
4268 size of superblocks using tracer pass.  See \fB\-ftracer\fR for details on
4269 trace formation.
4270 .Sp
4271 This mode should produce faster but significantly longer programs.  Also
4272 without \fB\-fbranch\-probabilities\fR the traces constructed may not
4273 match the reality and hurt the performance.  This only makes
4274 sense when scheduling after register allocation, i.e. with
4275 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
4276 .IP "\fB\-freschedule\-modulo\-scheduled\-loops\fR" 4
4277 .IX Item "-freschedule-modulo-scheduled-loops"
4278 The modulo scheduling comes before the traditional scheduling, if a loop was modulo scheduled
4279 we may want to prevent the later scheduling passes from changing its schedule, we use this
4280 option to control that.
4281 .IP "\fB\-fcaller\-saves\fR" 4
4282 .IX Item "-fcaller-saves"
4283 Enable values to be allocated in registers that will be clobbered by
4284 function calls, by emitting extra instructions to save and restore the
4285 registers around such calls.  Such allocation is done only when it
4286 seems to result in better code than would otherwise be produced.
4287 .Sp
4288 This option is always enabled by default on certain machines, usually
4289 those which have no call-preserved registers to use instead.
4290 .Sp
4291 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4292 .IP "\fB\-ftree\-pre\fR" 4
4293 .IX Item "-ftree-pre"
4294 Perform Partial Redundancy Elimination (\s-1PRE\s0) on trees.  This flag is
4295 enabled by default at \fB\-O2\fR and \fB\-O3\fR.
4296 .IP "\fB\-ftree\-fre\fR" 4
4297 .IX Item "-ftree-fre"
4298 Perform Full Redundancy Elimination (\s-1FRE\s0) on trees.  The difference
4299 between \s-1FRE\s0 and \s-1PRE\s0 is that \s-1FRE\s0 only considers expressions
4300 that are computed on all paths leading to the redundant computation.
4301 This analysis faster than \s-1PRE\s0, though it exposes fewer redundancies.
4302 This flag is enabled by default at \fB\-O\fR and higher.
4303 .IP "\fB\-ftree\-ccp\fR" 4
4304 .IX Item "-ftree-ccp"
4305 Perform sparse conditional constant propagation (\s-1CCP\s0) on trees.  This flag
4306 is enabled by default at \fB\-O\fR and higher.
4307 .IP "\fB\-ftree\-dce\fR" 4
4308 .IX Item "-ftree-dce"
4309 Perform dead code elimination (\s-1DCE\s0) on trees.  This flag is enabled by
4310 default at \fB\-O\fR and higher.
4311 .IP "\fB\-ftree\-dominator\-opts\fR" 4
4312 .IX Item "-ftree-dominator-opts"
4313 Perform dead code elimination (\s-1DCE\s0) on trees.  This flag is enabled by
4314 default at \fB\-O\fR and higher.
4315 .IP "\fB\-ftree\-ch\fR" 4
4316 .IX Item "-ftree-ch"
4317 Perform loop header copying on trees.  This is beneficial since it increases
4318 effectiveness of code motion optimizations.  It also saves one jump.  This flag
4319 is enabled by default at \fB\-O\fR and higher.  It is not enabled
4320 for \fB\-Os\fR, since it usually increases code size.
4321 .IP "\fB\-ftree\-loop\-optimize\fR" 4
4322 .IX Item "-ftree-loop-optimize"
4323 Perform loop optimizations on trees.  This flag is enabled by default
4324 at \fB\-O\fR and higher.
4325 .IP "\fB\-ftree\-loop\-linear\fR" 4
4326 .IX Item "-ftree-loop-linear"
4327 Perform linear loop transformations on tree.  This flag can improve cache
4328 performance and allow further loop optimizations to take place.
4329 .IP "\fB\-ftree\-loop\-im\fR" 4
4330 .IX Item "-ftree-loop-im"
4331 Perform loop invariant motion on trees.  This pass moves only invariants that
4332 would be hard to handle at \s-1RTL\s0 level (function calls, operations that expand to
4333 nontrivial sequences of insns).  With \fB\-funswitch\-loops\fR it also moves
4334 operands of conditions that are invariant out of the loop, so that we can use
4335 just trivial invariantness analysis in loop unswitching.  The pass also includes
4336 store motion.
4337 .IP "\fB\-ftree\-loop\-ivcanon\fR" 4
4338 .IX Item "-ftree-loop-ivcanon"
4339 Create a canonical counter for number of iterations in the loop for that
4340 determining number of iterations requires complicated analysis.  Later
4341 optimizations then may determine the number easily.  Useful especially
4342 in connection with unrolling.
4343 .IP "\fB\-fivopts\fR" 4
4344 .IX Item "-fivopts"
4345 Perform induction variable optimizations (strength reduction, induction
4346 variable merging and induction variable elimination) on trees.
4347 .IP "\fB\-ftree\-sra\fR" 4
4348 .IX Item "-ftree-sra"
4349 Perform scalar replacement of aggregates.  This pass replaces structure
4350 references with scalars to prevent committing structures to memory too
4351 early.  This flag is enabled by default at \fB\-O\fR and higher.
4352 .IP "\fB\-ftree\-copyrename\fR" 4
4353 .IX Item "-ftree-copyrename"
4354 Perform copy renaming on trees.  This pass attempts to rename compiler
4355 temporaries to other variables at copy locations, usually resulting in
4356 variable names which more closely resemble the original variables.  This flag
4357 is enabled by default at \fB\-O\fR and higher.
4358 .IP "\fB\-ftree\-ter\fR" 4
4359 .IX Item "-ftree-ter"
4360 Perform temporary expression replacement during the \s-1SSA\-\s0>normal phase.  Single
4361 use/single def temporaries are replaced at their use location with their
4362 defining expression.  This results in non-GIMPLE code, but gives the expanders
4363 much more complex trees to work on resulting in better \s-1RTL\s0 generation.  This is
4364 enabled by default at \fB\-O\fR and higher.
4365 .IP "\fB\-ftree\-lrs\fR" 4
4366 .IX Item "-ftree-lrs"
4367 Perform live range splitting during the \s-1SSA\-\s0>normal phase.  Distinct live
4368 ranges of a variable are split into unique variables, allowing for better
4369 optimization later.  This is enabled by default at \fB\-O\fR and higher.
4370 .IP "\fB\-ftree\-vectorize\fR" 4
4371 .IX Item "-ftree-vectorize"
4372 Perform loop vectorization on trees.
4373 .IP "\fB\-ftracer\fR" 4
4374 .IX Item "-ftracer"
4375 Perform tail duplication to enlarge superblock size.  This transformation
4376 simplifies the control flow of the function allowing other optimizations to do
4377 better job.
4378 .IP "\fB\-funroll\-loops\fR" 4
4379 .IX Item "-funroll-loops"
4380 Unroll loops whose number of iterations can be determined at compile
4381 time or upon entry to the loop.  \fB\-funroll\-loops\fR implies both
4382 \&\fB\-fstrength\-reduce\fR and \fB\-frerun\-cse\-after\-loop\fR.  This
4383 option makes code larger, and may or may not make it run faster.
4384 .IP "\fB\-funroll\-all\-loops\fR" 4
4385 .IX Item "-funroll-all-loops"
4386 Unroll all loops, even if their number of iterations is uncertain when
4387 the loop is entered.  This usually makes programs run more slowly.
4388 \&\fB\-funroll\-all\-loops\fR implies the same options as
4389 \&\fB\-funroll\-loops\fR,
4390 .IP "\fB\-fsplit\-ivs\-in\-unroller\fR" 4
4391 .IX Item "-fsplit-ivs-in-unroller"
4392 Enables expressing of values of induction variables in later iterations
4393 of the unrolled loop using the value in the first iteration.  This breaks
4394 long dependency chains, thus improving efficiency of the scheduling passes
4395 (for best results, \fB\-fweb\fR should be used as well).
4396 .Sp
4397 Combination of \fB\-fweb\fR and \s-1CSE\s0 is often sufficient to obtain the
4398 same effect.  However in cases the loop body is more complicated than
4399 a single basic block, this is not reliable.  It also does not work at all
4400 on some of the architectures due to restrictions in the \s-1CSE\s0 pass.
4401 .Sp
4402 This optimization is enabled by default.
4403 .IP "\fB\-fvariable\-expansion\-in\-unroller\fR" 4
4404 .IX Item "-fvariable-expansion-in-unroller"
4405 With this option, the compiler will create multiple copies of some
4406 local variables when unrolling a loop which can result in superior code.
4407 .IP "\fB\-fprefetch\-loop\-arrays\fR" 4
4408 .IX Item "-fprefetch-loop-arrays"
4409 If supported by the target machine, generate instructions to prefetch
4410 memory to improve the performance of loops that access large arrays.
4411 .Sp
4412 These options may generate better or worse code; results are highly
4413 dependent on the structure of loops within the source code.
4414 .IP "\fB\-fno\-peephole\fR" 4
4415 .IX Item "-fno-peephole"
4416 .PD 0
4417 .IP "\fB\-fno\-peephole2\fR" 4
4418 .IX Item "-fno-peephole2"
4419 .PD
4420 Disable any machine-specific peephole optimizations.  The difference
4421 between \fB\-fno\-peephole\fR and \fB\-fno\-peephole2\fR is in how they
4422 are implemented in the compiler; some targets use one, some use the
4423 other, a few use both.
4424 .Sp
4425 \&\fB\-fpeephole\fR is enabled by default.
4426 \&\fB\-fpeephole2\fR enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4427 .IP "\fB\-fno\-guess\-branch\-probability\fR" 4
4428 .IX Item "-fno-guess-branch-probability"
4429 Do not guess branch probabilities using heuristics.
4430 .Sp
4431 \&\s-1GCC\s0 will use heuristics to guess branch probabilities if they are
4432 not provided by profiling feedback (\fB\-fprofile\-arcs\fR).  These
4433 heuristics are based on the control flow graph.  If some branch probabilities
4434 are specified by \fB_\|_builtin_expect\fR, then the heuristics will be
4435 used to guess branch probabilities for the rest of the control flow graph,
4436 taking the \fB_\|_builtin_expect\fR info into account.  The interactions
4437 between the heuristics and \fB_\|_builtin_expect\fR can be complex, and in
4438 some cases, it may be useful to disable the heuristics so that the effects
4439 of \fB_\|_builtin_expect\fR are easier to understand.
4440 .Sp
4441 The default is \fB\-fguess\-branch\-probability\fR at levels
4442 \&\fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4443 .IP "\fB\-freorder\-blocks\fR" 4
4444 .IX Item "-freorder-blocks"
4445 Reorder basic blocks in the compiled function in order to reduce number of
4446 taken branches and improve code locality.
4447 .Sp
4448 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4449 .IP "\fB\-freorder\-blocks\-and\-partition\fR" 4
4450 .IX Item "-freorder-blocks-and-partition"
4451 In addition to reordering basic blocks in the compiled function, in order
4452 to reduce number of taken branches, partitions hot and cold basic blocks
4453 into separate sections of the assembly and .o files, to improve
4454 paging and cache locality performance.
4455 .Sp
4456 This optimization is automatically turned off in the presence of
4457 exception handling, for linkonce sections, for functions with a user-defined
4458 section attribute and on any architecture that does not support named
4459 sections.
4460 .IP "\fB\-freorder\-functions\fR" 4
4461 .IX Item "-freorder-functions"
4462 Reorder functions in the object file in order to
4463 improve code locality.  This is implemented by using special
4464 subsections \f(CW\*(C`.text.hot\*(C'\fR for most frequently executed functions and
4465 \&\f(CW\*(C`.text.unlikely\*(C'\fR for unlikely executed functions.  Reordering is done by
4466 the linker so object file format must support named sections and linker must
4467 place them in a reasonable way.
4468 .Sp
4469 Also profile feedback must be available in to make this option effective.  See
4470 \&\fB\-fprofile\-arcs\fR for details.
4471 .Sp
4472 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4473 .IP "\fB\-fstrict\-aliasing\fR" 4
4474 .IX Item "-fstrict-aliasing"
4475 Allows the compiler to assume the strictest aliasing rules applicable to
4476 the language being compiled.  For C (and \*(C+), this activates
4477 optimizations based on the type of expressions.  In particular, an
4478 object of one type is assumed never to reside at the same address as an
4479 object of a different type, unless the types are almost the same.  For
4480 example, an \f(CW\*(C`unsigned int\*(C'\fR can alias an \f(CW\*(C`int\*(C'\fR, but not a
4481 \&\f(CW\*(C`void*\*(C'\fR or a \f(CW\*(C`double\*(C'\fR.  A character type may alias any other
4482 type.
4483 .Sp
4484 Pay special attention to code like this:
4485 .Sp
4486 .Vb 4
4487 \&        union a_union {
4488 \&          int i;
4489 \&          double d;
4490 \&        };
4491 .Ve
4492 .Sp
4493 .Vb 5
4494 \&        int f() {
4495 \&          a_union t;
4496 \&          t.d = 3.0;
4497 \&          return t.i;
4498 \&        }
4499 .Ve
4500 .Sp
4501 The practice of reading from a different union member than the one most
4502 recently written to (called ``type\-punning'') is common.  Even with
4503 \&\fB\-fstrict\-aliasing\fR, type-punning is allowed, provided the memory
4504 is accessed through the union type.  So, the code above will work as
4505 expected.  However, this code might not:
4506 .Sp
4507 .Vb 7
4508 \&        int f() {
4509 \&          a_union t;
4510 \&          int* ip;
4511 \&          t.d = 3.0;
4512 \&          ip = &t.i;
4513 \&          return *ip;
4514 \&        }
4515 .Ve
4516 .Sp
4517 Every language that wishes to perform language-specific alias analysis
4518 should define a function that computes, given an \f(CW\*(C`tree\*(C'\fR
4519 node, an alias set for the node.  Nodes in different alias sets are not
4520 allowed to alias.  For an example, see the C front-end function
4521 \&\f(CW\*(C`c_get_alias_set\*(C'\fR.
4522 .Sp
4523 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4524 .IP "\fB\-falign\-functions\fR" 4
4525 .IX Item "-falign-functions"
4526 .PD 0
4527 .IP "\fB\-falign\-functions=\fR\fIn\fR" 4
4528 .IX Item "-falign-functions=n"
4529 .PD
4530 Align the start of functions to the next power-of-two greater than
4531 \&\fIn\fR, skipping up to \fIn\fR bytes.  For instance,
4532 \&\fB\-falign\-functions=32\fR aligns functions to the next 32\-byte
4533 boundary, but \fB\-falign\-functions=24\fR would align to the next
4534 32\-byte boundary only if this can be done by skipping 23 bytes or less.
4535 .Sp
4536 \&\fB\-fno\-align\-functions\fR and \fB\-falign\-functions=1\fR are
4537 equivalent and mean that functions will not be aligned.
4538 .Sp
4539 Some assemblers only support this flag when \fIn\fR is a power of two;
4540 in that case, it is rounded up.
4541 .Sp
4542 If \fIn\fR is not specified or is zero, use a machine-dependent default.
4543 .Sp
4544 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4545 .IP "\fB\-falign\-labels\fR" 4
4546 .IX Item "-falign-labels"
4547 .PD 0
4548 .IP "\fB\-falign\-labels=\fR\fIn\fR" 4
4549 .IX Item "-falign-labels=n"
4550 .PD
4551 Align all branch targets to a power-of-two boundary, skipping up to
4552 \&\fIn\fR bytes like \fB\-falign\-functions\fR.  This option can easily
4553 make code slower, because it must insert dummy operations for when the
4554 branch target is reached in the usual flow of the code.
4555 .Sp
4556 \&\fB\-fno\-align\-labels\fR and \fB\-falign\-labels=1\fR are
4557 equivalent and mean that labels will not be aligned.
4558 .Sp
4559 If \fB\-falign\-loops\fR or \fB\-falign\-jumps\fR are applicable and
4560 are greater than this value, then their values are used instead.
4561 .Sp
4562 If \fIn\fR is not specified or is zero, use a machine-dependent default
4563 which is very likely to be \fB1\fR, meaning no alignment.
4564 .Sp
4565 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4566 .IP "\fB\-falign\-loops\fR" 4
4567 .IX Item "-falign-loops"
4568 .PD 0
4569 .IP "\fB\-falign\-loops=\fR\fIn\fR" 4
4570 .IX Item "-falign-loops=n"
4571 .PD
4572 Align loops to a power-of-two boundary, skipping up to \fIn\fR bytes
4573 like \fB\-falign\-functions\fR.  The hope is that the loop will be
4574 executed many times, which will make up for any execution of the dummy
4575 operations.
4576 .Sp
4577 \&\fB\-fno\-align\-loops\fR and \fB\-falign\-loops=1\fR are
4578 equivalent and mean that loops will not be aligned.
4579 .Sp
4580 If \fIn\fR is not specified or is zero, use a machine-dependent default.
4581 .Sp
4582 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4583 .IP "\fB\-falign\-jumps\fR" 4
4584 .IX Item "-falign-jumps"
4585 .PD 0
4586 .IP "\fB\-falign\-jumps=\fR\fIn\fR" 4
4587 .IX Item "-falign-jumps=n"
4588 .PD
4589 Align branch targets to a power-of-two boundary, for branch targets
4590 where the targets can only be reached by jumping, skipping up to \fIn\fR
4591 bytes like \fB\-falign\-functions\fR.  In this case, no dummy operations
4592 need be executed.
4593 .Sp
4594 \&\fB\-fno\-align\-jumps\fR and \fB\-falign\-jumps=1\fR are
4595 equivalent and mean that loops will not be aligned.
4596 .Sp
4597 If \fIn\fR is not specified or is zero, use a machine-dependent default.
4598 .Sp
4599 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4600 .IP "\fB\-funit\-at\-a\-time\fR" 4
4601 .IX Item "-funit-at-a-time"
4602 Parse the whole compilation unit before starting to produce code.
4603 This allows some extra optimizations to take place but consumes
4604 more memory (in general).  There are some compatibility issues
4605 with \fIunit-at-at-time\fR mode:
4606 .RS 4
4607 .IP "\(bu" 4
4608 enabling \fIunit-at-a-time\fR mode may change the order
4609 in which functions, variables, and top-level \f(CW\*(C`asm\*(C'\fR statements
4610 are emitted, and will likely break code relying on some particular
4611 ordering.  The majority of such top-level \f(CW\*(C`asm\*(C'\fR statements,
4612 though, can be replaced by \f(CW\*(C`section\*(C'\fR attributes.
4613 .IP "\(bu" 4
4614 \&\fIunit-at-a-time\fR mode removes unreferenced static variables
4615 and functions are removed.  This may result in undefined references
4616 when an \f(CW\*(C`asm\*(C'\fR statement refers directly to variables or functions
4617 that are otherwise unused.  In that case either the variable/function
4618 shall be listed as an operand of the \f(CW\*(C`asm\*(C'\fR statement operand or,
4619 in the case of top-level \f(CW\*(C`asm\*(C'\fR statements the attribute \f(CW\*(C`used\*(C'\fR
4620 shall be used on the declaration.
4621 .IP "\(bu" 4
4622 Static functions now can use non-standard passing conventions that
4623 may break \f(CW\*(C`asm\*(C'\fR statements calling functions directly.  Again,
4624 attribute \f(CW\*(C`used\*(C'\fR will prevent this behavior.
4625 .RE
4626 .RS 4
4627 .Sp
4628 As a temporary workaround, \fB\-fno\-unit\-at\-a\-time\fR can be used,
4629 but this scheme may not be supported by future releases of \s-1GCC\s0.
4630 .Sp
4631 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4632 .RE
4633 .IP "\fB\-fweb\fR" 4
4634 .IX Item "-fweb"
4635 Constructs webs as commonly used for register allocation purposes and assign
4636 each web individual pseudo register.  This allows the register allocation pass
4637 to operate on pseudos directly, but also strengthens several other optimization
4638 passes, such as \s-1CSE\s0, loop optimizer and trivial dead code remover.  It can,
4639 however, make debugging impossible, since variables will no longer stay in a
4640 ``home register''.
4641 .Sp
4642 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR,
4643 on targets where the default format for debugging information supports
4644 variable tracking.
4645 .IP "\fB\-fno\-cprop\-registers\fR" 4
4646 .IX Item "-fno-cprop-registers"
4647 After register allocation and post-register allocation instruction splitting,
4648 we perform a copy-propagation pass to try to reduce scheduling dependencies
4649 and occasionally eliminate the copy.
4650 .Sp
4651 Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4652 .IP "\fB\-fprofile\-generate\fR" 4
4653 .IX Item "-fprofile-generate"
4654 Enable options usually used for instrumenting application to produce
4655 profile useful for later recompilation with profile feedback based
4656 optimization.  You must use \fB\-fprofile\-generate\fR both when
4657 compiling and when linking your program.
4658 .Sp
4659 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.
4660 .IP "\fB\-fprofile\-use\fR" 4
4661 .IX Item "-fprofile-use"
4662 Enable profile feedback directed optimizations, and optimizations
4663 generally profitable only with profile feedback available.
4664 .Sp
4665 The following options are enabled: \f(CW\*(C`\-fbranch\-probabilities\*(C'\fR,
4666 \&\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.
4667 .PP
4668 The following options control compiler behavior regarding floating
4669 point arithmetic.  These options trade off between speed and
4670 correctness.  All must be specifically enabled.
4671 .IP "\fB\-ffloat\-store\fR" 4
4672 .IX Item "-ffloat-store"
4673 Do not store floating point variables in registers, and inhibit other
4674 options that might change whether a floating point value is taken from a
4675 register or memory.
4676 .Sp
4677 This option prevents undesirable excess precision on machines such as
4678 the 68000 where the floating registers (of the 68881) keep more
4679 precision than a \f(CW\*(C`double\*(C'\fR is supposed to have.  Similarly for the
4680 x86 architecture.  For most programs, the excess precision does only
4681 good, but a few programs rely on the precise definition of \s-1IEEE\s0 floating
4682 point.  Use \fB\-ffloat\-store\fR for such programs, after modifying
4683 them to store all pertinent intermediate computations into variables.
4684 .IP "\fB\-ffast\-math\fR" 4
4685 .IX Item "-ffast-math"
4686 Sets \fB\-fno\-math\-errno\fR, \fB\-funsafe\-math\-optimizations\fR, \fB\-fno\-trapping\-math\fR, \fB\-ffinite\-math\-only\fR,
4687 \&\fB\-fno\-rounding\-math\fR, \fB\-fno\-signaling\-nans\fR
4688 and \fBfcx-limited-range\fR.
4689 .Sp
4690 This option causes the preprocessor macro \f(CW\*(C`_\|_FAST_MATH_\|_\*(C'\fR to be defined.
4691 .Sp
4692 This option should never be turned on by any \fB\-O\fR option since
4693 it can result in incorrect output for programs which depend on
4694 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
4695 math functions.
4696 .IP "\fB\-fno\-math\-errno\fR" 4
4697 .IX Item "-fno-math-errno"
4698 Do not set \s-1ERRNO\s0 after calling math functions that are executed
4699 with a single instruction, e.g., sqrt.  A program that relies on
4700 \&\s-1IEEE\s0 exceptions for math error handling may want to use this flag
4701 for speed while maintaining \s-1IEEE\s0 arithmetic compatibility.
4702 .Sp
4703 This option should never be turned on by any \fB\-O\fR option since
4704 it can result in incorrect output for programs which depend on
4705 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
4706 math functions.
4707 .Sp
4708 The default is \fB\-fmath\-errno\fR.
4709 .IP "\fB\-funsafe\-math\-optimizations\fR" 4
4710 .IX Item "-funsafe-math-optimizations"
4711 Allow optimizations for floating-point arithmetic that (a) assume
4712 that arguments and results are valid and (b) may violate \s-1IEEE\s0 or
4713 \&\s-1ANSI\s0 standards.  When used at link\-time, it may include libraries
4714 or startup files that change the default \s-1FPU\s0 control word or other
4715 similar optimizations.
4716 .Sp
4717 This option should never be turned on by any \fB\-O\fR option since
4718 it can result in incorrect output for programs which depend on
4719 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
4720 math functions.
4721 .Sp
4722 The default is \fB\-fno\-unsafe\-math\-optimizations\fR.
4723 .IP "\fB\-ffinite\-math\-only\fR" 4
4724 .IX Item "-ffinite-math-only"
4725 Allow optimizations for floating-point arithmetic that assume
4726 that arguments and results are not NaNs or +\-Infs.
4727 .Sp
4728 This option should never be turned on by any \fB\-O\fR option since
4729 it can result in incorrect output for programs which depend on
4730 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications.
4731 .Sp
4732 The default is \fB\-fno\-finite\-math\-only\fR.
4733 .IP "\fB\-fno\-trapping\-math\fR" 4
4734 .IX Item "-fno-trapping-math"
4735 Compile code assuming that floating-point operations cannot generate
4736 user-visible traps.  These traps include division by zero, overflow,
4737 underflow, inexact result and invalid operation.  This option implies
4738 \&\fB\-fno\-signaling\-nans\fR.  Setting this option may allow faster
4739 code if one relies on ``non\-stop'' \s-1IEEE\s0 arithmetic, for example.
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 for
4744 math functions.
4745 .Sp
4746 The default is \fB\-ftrapping\-math\fR.
4747 .IP "\fB\-frounding\-math\fR" 4
4748 .IX Item "-frounding-math"
4749 Disable transformations and optimizations that assume default floating
4750 point rounding behavior.  This is round-to-zero for all floating point
4751 to integer conversions, and round-to-nearest for all other arithmetic
4752 truncations.  This option should be specified for programs that change
4753 the \s-1FP\s0 rounding mode dynamically, or that may be executed with a
4754 non-default rounding mode.  This option disables constant folding of
4755 floating point expressions at compile-time (which may be affected by
4756 rounding mode) and arithmetic transformations that are unsafe in the
4757 presence of sign-dependent rounding modes.
4758 .Sp
4759 The default is \fB\-fno\-rounding\-math\fR.
4760 .Sp
4761 This option is experimental and does not currently guarantee to
4762 disable all \s-1GCC\s0 optimizations that are affected by rounding mode.
4763 Future versions of \s-1GCC\s0 may provide finer control of this setting
4764 using C99's \f(CW\*(C`FENV_ACCESS\*(C'\fR pragma.  This command line option
4765 will be used to specify the default state for \f(CW\*(C`FENV_ACCESS\*(C'\fR.
4766 .IP "\fB\-fsignaling\-nans\fR" 4
4767 .IX Item "-fsignaling-nans"
4768 Compile code assuming that \s-1IEEE\s0 signaling NaNs may generate user-visible
4769 traps during floating-point operations.  Setting this option disables
4770 optimizations that may change the number of exceptions visible with
4771 signaling NaNs.  This option implies \fB\-ftrapping\-math\fR.
4772 .Sp
4773 This option causes the preprocessor macro \f(CW\*(C`_\|_SUPPORT_SNAN_\|_\*(C'\fR to
4774 be defined.
4775 .Sp
4776 The default is \fB\-fno\-signaling\-nans\fR.
4777 .Sp
4778 This option is experimental and does not currently guarantee to
4779 disable all \s-1GCC\s0 optimizations that affect signaling NaN behavior.
4780 .IP "\fB\-fsingle\-precision\-constant\fR" 4
4781 .IX Item "-fsingle-precision-constant"
4782 Treat floating point constant as single precision constant instead of
4783 implicitly converting it to double precision constant.
4784 .IP "\fB\-fcx\-limited\-range\fR" 4
4785 .IX Item "-fcx-limited-range"
4786 .PD 0
4787 .IP "\fB\-fno\-cx\-limited\-range\fR" 4
4788 .IX Item "-fno-cx-limited-range"
4789 .PD
4790 When enabled, this option states that a range reduction step is not
4791 needed when performing complex division.  The default is
4792 \&\fB\-fno\-cx\-limited\-range\fR, but is enabled by \fB\-ffast\-math\fR.
4793 .Sp
4794 This option controls the default setting of the \s-1ISO\s0 C99 
4795 \&\f(CW\*(C`CX_LIMITED_RANGE\*(C'\fR pragma.  Nevertheless, the option applies to
4796 all languages.
4797 .PP
4798 The following options control optimizations that may improve
4799 performance, but are not enabled by any \fB\-O\fR options.  This
4800 section includes experimental options that may produce broken code.
4801 .IP "\fB\-fbranch\-probabilities\fR" 4
4802 .IX Item "-fbranch-probabilities"
4803 After running a program compiled with \fB\-fprofile\-arcs\fR, you can compile it a second time using
4804 \&\fB\-fbranch\-probabilities\fR, to improve optimizations based on
4805 the number of times each branch was taken.  When the program
4806 compiled with \fB\-fprofile\-arcs\fR exits it saves arc execution
4807 counts to a file called \fI\fIsourcename\fI.gcda\fR for each source
4808 file  The information in this data file is very dependent on the
4809 structure of the generated code, so you must use the same source code
4810 and the same optimization options for both compilations.
4811 .Sp
4812 With \fB\-fbranch\-probabilities\fR, \s-1GCC\s0 puts a
4813 \&\fB\s-1REG_BR_PROB\s0\fR note on each \fB\s-1JUMP_INSN\s0\fR and \fB\s-1CALL_INSN\s0\fR.
4814 These can be used to improve optimization.  Currently, they are only
4815 used in one place: in \fIreorg.c\fR, instead of guessing which path a
4816 branch is mostly to take, the \fB\s-1REG_BR_PROB\s0\fR values are used to
4817 exactly determine which path is taken more often.
4818 .IP "\fB\-fprofile\-values\fR" 4
4819 .IX Item "-fprofile-values"
4820 If combined with \fB\-fprofile\-arcs\fR, it adds code so that some
4821 data about values of expressions in the program is gathered.
4822 .Sp
4823 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
4824 from profiling values of expressions and adds \fB\s-1REG_VALUE_PROFILE\s0\fR
4825 notes to instructions for their later usage in optimizations.
4826 .Sp
4827 Enabled with \fB\-fprofile\-generate\fR and \fB\-fprofile\-use\fR.
4828 .IP "\fB\-fvpt\fR" 4
4829 .IX Item "-fvpt"
4830 If combined with \fB\-fprofile\-arcs\fR, it instructs the compiler to add
4831 a code to gather information about values of expressions.
4832 .Sp
4833 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
4834 and actually performs the optimizations based on them.
4835 Currently the optimizations include specialization of division operation
4836 using the knowledge about the value of the denominator.
4837 .IP "\fB\-fspeculative\-prefetching\fR" 4
4838 .IX Item "-fspeculative-prefetching"
4839 If combined with \fB\-fprofile\-arcs\fR, it instructs the compiler to add
4840 a code to gather information about addresses of memory references in the
4841 program.
4842 .Sp
4843 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
4844 and issues prefetch instructions according to them.  In addition to the opportunities
4845 noticed by \fB\-fprefetch\-loop\-arrays\fR, it also notices more complicated
4846 memory access patterns\-\-\-for example accesses to the data stored in linked
4847 list whose elements are usually allocated sequentially.
4848 .Sp
4849 In order to prevent issuing double prefetches, usage of
4850 \&\fB\-fspeculative\-prefetching\fR implies \fB\-fno\-prefetch\-loop\-arrays\fR.
4851 .Sp
4852 Enabled with \fB\-fprofile\-generate\fR and \fB\-fprofile\-use\fR.
4853 .IP "\fB\-frename\-registers\fR" 4
4854 .IX Item "-frename-registers"
4855 Attempt to avoid false dependencies in scheduled code by making use
4856 of registers left over after register allocation.  This optimization
4857 will most benefit processors with lots of registers.  Depending on the
4858 debug information format adopted by the target, however, it can
4859 make debugging impossible, since variables will no longer stay in
4860 a ``home register''.
4861 .Sp
4862 Not enabled by default at any level because it has known bugs.
4863 .IP "\fB\-ftracer\fR" 4
4864 .IX Item "-ftracer"
4865 Perform tail duplication to enlarge superblock size.  This transformation
4866 simplifies the control flow of the function allowing other optimizations to do
4867 better job.
4868 .Sp
4869 Enabled with \fB\-fprofile\-use\fR.
4870 .IP "\fB\-funroll\-loops\fR" 4
4871 .IX Item "-funroll-loops"
4872 Unroll loops whose number of iterations can be determined at compile time or
4873 upon entry to the loop.  \fB\-funroll\-loops\fR implies
4874 \&\fB\-frerun\-cse\-after\-loop\fR.  It also turns on complete loop peeling
4875 (i.e. complete removal of loops with small constant number of iterations).
4876 This option makes code larger, and may or may not make it run faster.
4877 .Sp
4878 Enabled with \fB\-fprofile\-use\fR.
4879 .IP "\fB\-funroll\-all\-loops\fR" 4
4880 .IX Item "-funroll-all-loops"
4881 Unroll all loops, even if their number of iterations is uncertain when
4882 the loop is entered.  This usually makes programs run more slowly.
4883 \&\fB\-funroll\-all\-loops\fR implies the same options as
4884 \&\fB\-funroll\-loops\fR.
4885 .IP "\fB\-fpeel\-loops\fR" 4
4886 .IX Item "-fpeel-loops"
4887 Peels the loops for that there is enough information that they do not
4888 roll much (from profile feedback).  It also turns on complete loop peeling
4889 (i.e. complete removal of loops with small constant number of iterations).
4890 .Sp
4891 Enabled with \fB\-fprofile\-use\fR.
4892 .IP "\fB\-fmove\-loop\-invariants\fR" 4
4893 .IX Item "-fmove-loop-invariants"
4894 Enables the loop invariant motion pass in the new loop optimizer.  Enabled
4895 at level \fB\-O1\fR
4896 .IP "\fB\-funswitch\-loops\fR" 4
4897 .IX Item "-funswitch-loops"
4898 Move branches with loop invariant conditions out of the loop, with duplicates
4899 of the loop on both branches (modified according to result of the condition).
4900 .IP "\fB\-fprefetch\-loop\-arrays\fR" 4
4901 .IX Item "-fprefetch-loop-arrays"
4902 If supported by the target machine, generate instructions to prefetch
4903 memory to improve the performance of loops that access large arrays.
4904 .Sp
4905 Disabled at level \fB\-Os\fR.
4906 .IP "\fB\-ffunction\-sections\fR" 4
4907 .IX Item "-ffunction-sections"
4908 .PD 0
4909 .IP "\fB\-fdata\-sections\fR" 4
4910 .IX Item "-fdata-sections"
4911 .PD
4912 Place each function or data item into its own section in the output
4913 file if the target supports arbitrary sections.  The name of the
4914 function or the name of the data item determines the section's name
4915 in the output file.
4916 .Sp
4917 Use these options on systems where the linker can perform optimizations
4918 to improve locality of reference in the instruction space.  Most systems
4919 using the \s-1ELF\s0 object format and \s-1SPARC\s0 processors running Solaris 2 have
4920 linkers with such optimizations.  \s-1AIX\s0 may have these optimizations in
4921 the future.
4922 .Sp
4923 Only use these options when there are significant benefits from doing
4924 so.  When you specify these options, the assembler and linker will
4925 create larger object and executable files and will also be slower.
4926 You will not be able to use \f(CW\*(C`gprof\*(C'\fR on all systems if you
4927 specify this option and you may have problems with debugging if
4928 you specify both this option and \fB\-g\fR.
4929 .IP "\fB\-fbranch\-target\-load\-optimize\fR" 4
4930 .IX Item "-fbranch-target-load-optimize"
4931 Perform branch target register load optimization before prologue / epilogue
4932 threading.
4933 The use of target registers can typically be exposed only during reload,
4934 thus hoisting loads out of loops and doing inter-block scheduling needs
4935 a separate optimization pass.
4936 .IP "\fB\-fbranch\-target\-load\-optimize2\fR" 4
4937 .IX Item "-fbranch-target-load-optimize2"
4938 Perform branch target register load optimization after prologue / epilogue
4939 threading.
4940 .IP "\fB\-fbtr\-bb\-exclusive\fR" 4
4941 .IX Item "-fbtr-bb-exclusive"
4942 When performing branch target register load optimization, don't reuse
4943 branch target registers in within any basic block.
4944 .IP "\fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR" 4
4945 .IX Item "--param name=value"
4946 In some places, \s-1GCC\s0 uses various constants to control the amount of
4947 optimization that is done.  For example, \s-1GCC\s0 will not inline functions
4948 that contain more that a certain number of instructions.  You can
4949 control some of these constants on the command-line using the
4950 \&\fB\-\-param\fR option.
4951 .Sp
4952 The names of specific parameters, and the meaning of the values, are
4953 tied to the internals of the compiler, and are subject to change
4954 without notice in future releases.
4955 .Sp
4956 In each case, the \fIvalue\fR is an integer.  The allowable choices for
4957 \&\fIname\fR are given in the following table:
4958 .RS 4
4959 .IP "\fBsra-max-structure-size\fR" 4
4960 .IX Item "sra-max-structure-size"
4961 The maximum structure size, in bytes, at which the scalar replacement
4962 of aggregates (\s-1SRA\s0) optimization will perform block copies.  The
4963 default value, 0, implies that \s-1GCC\s0 will select the most appropriate
4964 size itself.
4965 .IP "\fBsra-field-structure-ratio\fR" 4
4966 .IX Item "sra-field-structure-ratio"
4967 The threshold ratio (as a percentage) between instantiated fields and
4968 the complete structure size.  We say that if the ratio of the number
4969 of bytes in instantiated fields to the number of bytes in the complete
4970 structure exceeds this parameter, then block copies are not used.  The
4971 default is 75.
4972 .IP "\fBmax-crossjump-edges\fR" 4
4973 .IX Item "max-crossjump-edges"
4974 The maximum number of incoming edges to consider for crossjumping.
4975 The algorithm used by \fB\-fcrossjumping\fR is O(N^2) in
4976 the number of edges incoming to each block.  Increasing values mean
4977 more aggressive optimization, making the compile time increase with
4978 probably small improvement in executable size.
4979 .IP "\fBmin-crossjump-insns\fR" 4
4980 .IX Item "min-crossjump-insns"
4981 The minimum number of instructions which must be matched at the end
4982 of two blocks before crossjumping will be performed on them.  This
4983 value is ignored in the case where all instructions in the block being
4984 crossjumped from are matched.  The default value is 5.
4985 .IP "\fBmax-goto-duplication-insns\fR" 4
4986 .IX Item "max-goto-duplication-insns"
4987 The maximum number of instructions to duplicate to a block that jumps
4988 to a computed goto.  To avoid O(N^2) behavior in a number of
4989 passes, \s-1GCC\s0 factors computed gotos early in the compilation process,
4990 and unfactors them as late as possible.  Only computed jumps at the
4991 end of a basic blocks with no more than max-goto-duplication-insns are
4992 unfactored.  The default value is 8.
4993 .IP "\fBmax-delay-slot-insn-search\fR" 4
4994 .IX Item "max-delay-slot-insn-search"
4995 The maximum number of instructions to consider when looking for an
4996 instruction to fill a delay slot.  If more than this arbitrary number of
4997 instructions is searched, the time savings from filling the delay slot
4998 will be minimal so stop searching.  Increasing values mean more
4999 aggressive optimization, making the compile time increase with probably
5000 small improvement in executable run time.
5001 .IP "\fBmax-delay-slot-live-search\fR" 4
5002 .IX Item "max-delay-slot-live-search"
5003 When trying to fill delay slots, the maximum number of instructions to
5004 consider when searching for a block with valid live register
5005 information.  Increasing this arbitrarily chosen value means more
5006 aggressive optimization, increasing the compile time.  This parameter
5007 should be removed when the delay slot code is rewritten to maintain the
5008 control-flow graph.
5009 .IP "\fBmax-gcse-memory\fR" 4
5010 .IX Item "max-gcse-memory"
5011 The approximate maximum amount of memory that will be allocated in
5012 order to perform the global common subexpression elimination
5013 optimization.  If more memory than specified is required, the
5014 optimization will not be done.
5015 .IP "\fBmax-gcse-passes\fR" 4
5016 .IX Item "max-gcse-passes"
5017 The maximum number of passes of \s-1GCSE\s0 to run.  The default is 1.
5018 .IP "\fBmax-pending-list-length\fR" 4
5019 .IX Item "max-pending-list-length"
5020 The maximum number of pending dependencies scheduling will allow
5021 before flushing the current state and starting over.  Large functions
5022 with few branches or calls can create excessively large lists which
5023 needlessly consume memory and resources.
5024 .IP "\fBmax-inline-insns-single\fR" 4
5025 .IX Item "max-inline-insns-single"
5026 Several parameters control the tree inliner used in gcc.
5027 This number sets the maximum number of instructions (counted in \s-1GCC\s0's
5028 internal representation) in a single function that the tree inliner
5029 will consider for inlining.  This only affects functions declared
5030 inline and methods implemented in a class declaration (\*(C+).
5031 The default value is 450.
5032 .IP "\fBmax-inline-insns-auto\fR" 4
5033 .IX Item "max-inline-insns-auto"
5034 When you use \fB\-finline\-functions\fR (included in \fB\-O3\fR),
5035 a lot of functions that would otherwise not be considered for inlining
5036 by the compiler will be investigated.  To those functions, a different
5037 (more restrictive) limit compared to functions declared inline can
5038 be applied.
5039 The default value is 90.
5040 .IP "\fBlarge-function-insns\fR" 4
5041 .IX Item "large-function-insns"
5042 The limit specifying really large functions.  For functions larger than this
5043 limit after inlining inlining is constrained by
5044 \&\fB\-\-param large-function-growth\fR.  This parameter is useful primarily
5045 to avoid extreme compilation time caused by non-linear algorithms used by the
5046 backend.
5047 This parameter is ignored when \fB\-funit\-at\-a\-time\fR is not used.
5048 The default value is 2700.
5049 .IP "\fBlarge-function-growth\fR" 4
5050 .IX Item "large-function-growth"
5051 Specifies maximal growth of large function caused by inlining in percents.
5052 This parameter is ignored when \fB\-funit\-at\-a\-time\fR is not used.
5053 The default value is 100 which limits large function growth to 2.0 times
5054 the original size.
5055 .IP "\fBinline-unit-growth\fR" 4
5056 .IX Item "inline-unit-growth"
5057 Specifies maximal overall growth of the compilation unit caused by inlining.
5058 This parameter is ignored when \fB\-funit\-at\-a\-time\fR is not used.
5059 The default value is 50 which limits unit growth to 1.5 times the original
5060 size.
5061 .IP "\fBmax-inline-insns-recursive\fR" 4
5062 .IX Item "max-inline-insns-recursive"
5063 .PD 0
5064 .IP "\fBmax-inline-insns-recursive-auto\fR" 4
5065 .IX Item "max-inline-insns-recursive-auto"
5066 .PD
5067 Specifies maximum number of instructions out-of-line copy of self recursive inline
5068 function can grow into by performing recursive inlining.
5069 .Sp
5070 For functions declared inline \fB\-\-param max-inline-insns-recursive\fR is
5071 taken into acount.  For function not declared inline, recursive inlining
5072 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
5073 enabled and \fB\-\-param max-inline-insns-recursive-auto\fR is used.  The
5074 default value is 450.
5075 .IP "\fBmax-inline-recursive-depth\fR" 4
5076 .IX Item "max-inline-recursive-depth"
5077 .PD 0
5078 .IP "\fBmax-inline-recursive-depth-auto\fR" 4
5079 .IX Item "max-inline-recursive-depth-auto"
5080 .PD
5081 Specifies maximum recursion depth used by the recursive inlining.
5082 .Sp
5083 For functions declared inline \fB\-\-param max-inline-recursive-depth\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-recursive-depth-auto\fR is used.  The
5087 default value is 450.
5088 .IP "\fBinline-call-cost\fR" 4
5089 .IX Item "inline-call-cost"
5090 Specify cost of call instruction relative to simple arithmetics operations
5091 (having cost of 1).  Increasing this cost disqualify inlinining of non-leaf
5092 functions and at same time increase size of leaf function that is believed to
5093 reduce function size by being inlined.  In effect it increase amount of
5094 inlining for code having large abstraction penalty (many functions that just
5095 pass the argumetns to other functions) and decrease inlining for code with low
5096 abstraction penalty.  Default value is 16.
5097 .IP "\fBmax-unrolled-insns\fR" 4
5098 .IX Item "max-unrolled-insns"
5099 The maximum number of instructions that a loop should have if that loop
5100 is unrolled, and if the loop is unrolled, it determines how many times
5101 the loop code is unrolled.
5102 .IP "\fBmax-average-unrolled-insns\fR" 4
5103 .IX Item "max-average-unrolled-insns"
5104 The maximum number of instructions biased by probabilities of their execution
5105 that a loop should have if that loop is unrolled, and if the loop is unrolled,
5106 it determines how many times the loop code is unrolled.
5107 .IP "\fBmax-unroll-times\fR" 4
5108 .IX Item "max-unroll-times"
5109 The maximum number of unrollings of a single loop.
5110 .IP "\fBmax-peeled-insns\fR" 4
5111 .IX Item "max-peeled-insns"
5112 The maximum number of instructions that a loop should have if that loop
5113 is peeled, and if the loop is peeled, it determines how many times
5114 the loop code is peeled.
5115 .IP "\fBmax-peel-times\fR" 4
5116 .IX Item "max-peel-times"
5117 The maximum number of peelings of a single loop.
5118 .IP "\fBmax-completely-peeled-insns\fR" 4
5119 .IX Item "max-completely-peeled-insns"
5120 The maximum number of insns of a completely peeled loop.
5121 .IP "\fBmax-completely-peel-times\fR" 4
5122 .IX Item "max-completely-peel-times"
5123 The maximum number of iterations of a loop to be suitable for complete peeling.
5124 .IP "\fBmax-unswitch-insns\fR" 4
5125 .IX Item "max-unswitch-insns"
5126 The maximum number of insns of an unswitched loop.
5127 .IP "\fBmax-unswitch-level\fR" 4
5128 .IX Item "max-unswitch-level"
5129 The maximum number of branches unswitched in a single loop.
5130 .IP "\fBlim-expensive\fR" 4
5131 .IX Item "lim-expensive"
5132 The minimum cost of an expensive expression in the loop invariant motion.
5133 .IP "\fBiv-consider-all-candidates-bound\fR" 4
5134 .IX Item "iv-consider-all-candidates-bound"
5135 Bound on number of candidates for induction variables below that
5136 all candidates are considered for each use in induction variable
5137 optimizations.  Only the most relevant candidates are considered
5138 if there are more candidates, to avoid quadratic time complexity.
5139 .IP "\fBiv-max-considered-uses\fR" 4
5140 .IX Item "iv-max-considered-uses"
5141 The induction variable optimizations give up on loops that contain more
5142 induction variable uses.
5143 .IP "\fBiv-always-prune-cand-set-bound\fR" 4
5144 .IX Item "iv-always-prune-cand-set-bound"
5145 If number of candidates in the set is smaller than this value,
5146 we always try to remove unnecessary ivs from the set during its
5147 optimization when a new iv is added to the set.
5148 .IP "\fBmax-iterations-to-track\fR" 4
5149 .IX Item "max-iterations-to-track"
5150 The maximum number of iterations of a loop the brute force algorithm
5151 for analysis of # of iterations of the loop tries to evaluate.
5152 .IP "\fBhot-bb-count-fraction\fR" 4
5153 .IX Item "hot-bb-count-fraction"
5154 Select fraction of the maximal count of repetitions of basic block in program
5155 given basic block needs to have to be considered hot.
5156 .IP "\fBhot-bb-frequency-fraction\fR" 4
5157 .IX Item "hot-bb-frequency-fraction"
5158 Select fraction of the maximal frequency of executions of basic block in
5159 function given basic block needs to have to be considered hot
5160 .IP "\fBtracer-dynamic-coverage\fR" 4
5161 .IX Item "tracer-dynamic-coverage"
5162 .PD 0
5163 .IP "\fBtracer-dynamic-coverage-feedback\fR" 4
5164 .IX Item "tracer-dynamic-coverage-feedback"
5165 .PD
5166 This value is used to limit superblock formation once the given percentage of
5167 executed instructions is covered.  This limits unnecessary code size
5168 expansion.
5169 .Sp
5170 The \fBtracer-dynamic-coverage-feedback\fR is used only when profile
5171 feedback is available.  The real profiles (as opposed to statically estimated
5172 ones) are much less balanced allowing the threshold to be larger value.
5173 .IP "\fBtracer-max-code-growth\fR" 4
5174 .IX Item "tracer-max-code-growth"
5175 Stop tail duplication once code growth has reached given percentage.  This is
5176 rather hokey argument, as most of the duplicates will be eliminated later in
5177 cross jumping, so it may be set to much higher values than is the desired code
5178 growth.
5179 .IP "\fBtracer-min-branch-ratio\fR" 4
5180 .IX Item "tracer-min-branch-ratio"
5181 Stop reverse growth when the reverse probability of best edge is less than this
5182 threshold (in percent).
5183 .IP "\fBtracer-min-branch-ratio\fR" 4
5184 .IX Item "tracer-min-branch-ratio"
5185 .PD 0
5186 .IP "\fBtracer-min-branch-ratio-feedback\fR" 4
5187 .IX Item "tracer-min-branch-ratio-feedback"
5188 .PD
5189 Stop forward growth if the best edge do have probability lower than this
5190 threshold.
5191 .Sp
5192 Similarly to \fBtracer-dynamic-coverage\fR two values are present, one for
5193 compilation for profile feedback and one for compilation without.  The value
5194 for compilation with profile feedback needs to be more conservative (higher) in
5195 order to make tracer effective.
5196 .IP "\fBmax-cse-path-length\fR" 4
5197 .IX Item "max-cse-path-length"
5198 Maximum number of basic blocks on path that cse considers.  The default is 10.
5199 .IP "\fBglobal-var-threshold\fR" 4
5200 .IX Item "global-var-threshold"
5201 Counts the number of function calls (\fIn\fR) and the number of
5202 call-clobbered variables (\fIv\fR).  If \fIn\fRx\fIv\fR is larger than this limit, a
5203 single artificial variable will be created to represent all the
5204 call-clobbered variables at function call sites.  This artificial
5205 variable will then be made to alias every call-clobbered variable.
5206 (done as \f(CW\*(C`int * size_t\*(C'\fR on the host machine; beware overflow).
5207 .IP "\fBmax-aliased-vops\fR" 4
5208 .IX Item "max-aliased-vops"
5209 Maximum number of virtual operands allowed to represent aliases
5210 before triggering the alias grouping heuristic.  Alias grouping
5211 reduces compile times and memory consumption needed for aliasing at
5212 the expense of precision loss in alias information.
5213 .IP "\fBggc-min-expand\fR" 4
5214 .IX Item "ggc-min-expand"
5215 \&\s-1GCC\s0 uses a garbage collector to manage its own memory allocation.  This
5216 parameter specifies the minimum percentage by which the garbage
5217 collector's heap should be allowed to expand between collections.
5218 Tuning this may improve compilation speed; it has no effect on code
5219 generation.
5220 .Sp
5221 The default is 30% + 70% * (\s-1RAM/1GB\s0) with an upper bound of 100% when
5222 \&\s-1RAM\s0 >= 1GB.  If \f(CW\*(C`getrlimit\*(C'\fR is available, the notion of \*(L"\s-1RAM\s0\*(R" is
5223 the smallest of actual \s-1RAM\s0 and \f(CW\*(C`RLIMIT_DATA\*(C'\fR or \f(CW\*(C`RLIMIT_AS\*(C'\fR.  If
5224 \&\s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a particular platform, the lower
5225 bound of 30% is used.  Setting this parameter and
5226 \&\fBggc-min-heapsize\fR to zero causes a full collection to occur at
5227 every opportunity.  This is extremely slow, but can be useful for
5228 debugging.
5229 .IP "\fBggc-min-heapsize\fR" 4
5230 .IX Item "ggc-min-heapsize"
5231 Minimum size of the garbage collector's heap before it begins bothering
5232 to collect garbage.  The first collection occurs after the heap expands
5233 by \fBggc-min-expand\fR% beyond \fBggc-min-heapsize\fR.  Again,
5234 tuning this may improve compilation speed, and has no effect on code
5235 generation.
5236 .Sp
5237 The default is the smaller of \s-1RAM/8\s0, \s-1RLIMIT_RSS\s0, or a limit which
5238 tries to ensure that \s-1RLIMIT_DATA\s0 or \s-1RLIMIT_AS\s0 are not exceeded, but
5239 with a lower bound of 4096 (four megabytes) and an upper bound of
5240 131072 (128 megabytes).  If \s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a
5241 particular platform, the lower bound is used.  Setting this parameter
5242 very large effectively disables garbage collection.  Setting this
5243 parameter and \fBggc-min-expand\fR to zero causes a full collection
5244 to occur at every opportunity.
5245 .IP "\fBmax-reload-search-insns\fR" 4
5246 .IX Item "max-reload-search-insns"
5247 The maximum number of instruction reload should look backward for equivalent
5248 register.  Increasing values mean more aggressive optimization, making the
5249 compile time increase with probably slightly better performance.  The default
5250 value is 100.
5251 .IP "\fBmax-cselib-memory-location\fR" 4
5252 .IX Item "max-cselib-memory-location"
5253 The maximum number of memory locations cselib should take into acount.
5254 Increasing values mean more aggressive optimization, making the compile time
5255 increase with probably slightly better performance.  The default value is 500.
5256 .IP "\fBreorder-blocks-duplicate\fR" 4
5257 .IX Item "reorder-blocks-duplicate"
5258 .PD 0
5259 .IP "\fBreorder-blocks-duplicate-feedback\fR" 4
5260 .IX Item "reorder-blocks-duplicate-feedback"
5261 .PD
5262 Used by basic block reordering pass to decide whether to use unconditional
5263 branch or duplicate the code on its destination.  Code is duplicated when its
5264 estimated size is smaller than this value multiplied by the estimated size of
5265 unconditional jump in the hot spots of the program.
5266 .Sp
5267 The \fBreorder-block-duplicate-feedback\fR is used only when profile
5268 feedback is available and may be set to higher values than
5269 \&\fBreorder-block-duplicate\fR since information about the hot spots is more
5270 accurate.
5271 .IP "\fBmax-sched-region-blocks\fR" 4
5272 .IX Item "max-sched-region-blocks"
5273 The maximum number of blocks in a region to be considered for
5274 interblock scheduling.  The default value is 10.
5275 .IP "\fBmax-sched-region-insns\fR" 4
5276 .IX Item "max-sched-region-insns"
5277 The maximum number of insns in a region to be considered for
5278 interblock scheduling.  The default value is 100.
5279 .IP "\fBmax-last-value-rtl\fR" 4
5280 .IX Item "max-last-value-rtl"
5281 The maximum size measured as number of RTLs that can be recorded in an expression
5282 in combiner for a pseudo register as last known value of that register.  The default
5283 is 10000.
5284 .IP "\fBinteger-share-limit\fR" 4
5285 .IX Item "integer-share-limit"
5286 Small integer constants can use a shared data structure, reducing the
5287 compiler's memory usage and increasing its speed.  This sets the maximum
5288 value of a shared integer constant's.  The default value is 256.
5289 .RE
5290 .RS 4
5291 .RE
5292 .Sh "Options Controlling the Preprocessor"
5293 .IX Subsection "Options Controlling the Preprocessor"
5294 These options control the C preprocessor, which is run on each C source
5295 file before actual compilation.
5296 .PP
5297 If you use the \fB\-E\fR option, nothing is done except preprocessing.
5298 Some of these options make sense only together with \fB\-E\fR because
5299 they cause the preprocessor output to be unsuitable for actual
5300 compilation.
5301 .Sp
5302 .RS 4
5303 You can use \fB\-Wp,\fR\fIoption\fR to bypass the compiler driver
5304 and pass \fIoption\fR directly through to the preprocessor.  If
5305 \&\fIoption\fR contains commas, it is split into multiple options at the
5306 commas.  However, many options are modified, translated or interpreted
5307 by the compiler driver before being passed to the preprocessor, and
5308 \&\fB\-Wp\fR forcibly bypasses this phase.  The preprocessor's direct
5309 interface is undocumented and subject to change, so whenever possible
5310 you should avoid using \fB\-Wp\fR and let the driver handle the
5311 options instead.
5312 .RE
5313 .IP "\fB\-Xpreprocessor\fR \fIoption\fR" 4
5314 .IX Item "-Xpreprocessor option"
5315 Pass \fIoption\fR as an option to the preprocessor.  You can use this to
5316 supply system-specific preprocessor options which \s-1GCC\s0 does not know how to
5317 recognize.
5318 .Sp
5319 If you want to pass an option that takes an argument, you must use
5320 \&\fB\-Xpreprocessor\fR twice, once for the option and once for the argument.
5321 .IP "\fB\-D\fR \fIname\fR" 4
5322 .IX Item "-D name"
5323 Predefine \fIname\fR as a macro, with definition \f(CW1\fR.
5324 .IP "\fB\-D\fR \fIname\fR\fB=\fR\fIdefinition\fR" 4
5325 .IX Item "-D name=definition"
5326 The contents of \fIdefinition\fR are tokenized and processed as if
5327 they appeared during translation phase three in a \fB#define\fR
5328 directive.  In particular, the definition will be truncated by
5329 embedded newline characters.
5330 .Sp
5331 If you are invoking the preprocessor from a shell or shell-like
5332 program you may need to use the shell's quoting syntax to protect
5333 characters such as spaces that have a meaning in the shell syntax.
5334 .Sp
5335 If you wish to define a function-like macro on the command line, write
5336 its argument list with surrounding parentheses before the equals sign
5337 (if any).  Parentheses are meaningful to most shells, so you will need
5338 to quote the option.  With \fBsh\fR and \fBcsh\fR,
5339 \&\fB\-D'\fR\fIname\fR\fB(\fR\fIargs...\fR\fB)=\fR\fIdefinition\fR\fB'\fR works.
5340 .Sp
5341 \&\fB\-D\fR and \fB\-U\fR options are processed in the order they
5342 are given on the command line.  All \fB\-imacros\fR \fIfile\fR and
5343 \&\fB\-include\fR \fIfile\fR options are processed after all
5344 \&\fB\-D\fR and \fB\-U\fR options.
5345 .IP "\fB\-U\fR \fIname\fR" 4
5346 .IX Item "-U name"
5347 Cancel any previous definition of \fIname\fR, either built in or
5348 provided with a \fB\-D\fR option.
5349 .IP "\fB\-undef\fR" 4
5350 .IX Item "-undef"
5351 Do not predefine any system-specific or GCC-specific macros.  The
5352 standard predefined macros remain defined.
5353 .IP "\fB\-I\fR \fIdir\fR" 4
5354 .IX Item "-I dir"
5355 Add the directory \fIdir\fR to the list of directories to be searched
5356 for header files.
5357 Directories named by \fB\-I\fR are searched before the standard
5358 system include directories.  If the directory \fIdir\fR is a standard
5359 system include directory, the option is ignored to ensure that the
5360 default search order for system directories and the special treatment
5361 of system headers are not defeated
5362 \&.
5363 .IP "\fB\-o\fR \fIfile\fR" 4
5364 .IX Item "-o file"
5365 Write output to \fIfile\fR.  This is the same as specifying \fIfile\fR
5366 as the second non-option argument to \fBcpp\fR.  \fBgcc\fR has a
5367 different interpretation of a second non-option argument, so you must
5368 use \fB\-o\fR to specify the output file.
5369 .IP "\fB\-Wall\fR" 4
5370 .IX Item "-Wall"
5371 Turns on all optional warnings which are desirable for normal code.
5372 At present this is \fB\-Wcomment\fR, \fB\-Wtrigraphs\fR,
5373 \&\fB\-Wmultichar\fR and a warning about integer promotion causing a
5374 change of sign in \f(CW\*(C`#if\*(C'\fR expressions.  Note that many of the
5375 preprocessor's warnings are on by default and have no options to
5376 control them.
5377 .IP "\fB\-Wcomment\fR" 4
5378 .IX Item "-Wcomment"
5379 .PD 0
5380 .IP "\fB\-Wcomments\fR" 4
5381 .IX Item "-Wcomments"
5382 .PD
5383 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
5384 comment, or whenever a backslash-newline appears in a \fB//\fR comment.
5385 (Both forms have the same effect.)
5386 .IP "\fB\-Wtrigraphs\fR" 4
5387 .IX Item "-Wtrigraphs"
5388 @anchor{Wtrigraphs}
5389 Most trigraphs in comments cannot affect the meaning of the program.
5390 However, a trigraph that would form an escaped newline (\fB??/\fR at
5391 the end of a line) can, by changing where the comment begins or ends.
5392 Therefore, only trigraphs that would form escaped newlines produce
5393 warnings inside a comment.
5394 .Sp
5395 This option is implied by \fB\-Wall\fR.  If \fB\-Wall\fR is not
5396 given, this option is still enabled unless trigraphs are enabled.  To
5397 get trigraph conversion without warnings, but get the other
5398 \&\fB\-Wall\fR warnings, use \fB\-trigraphs \-Wall \-Wno\-trigraphs\fR.
5399 .IP "\fB\-Wtraditional\fR" 4
5400 .IX Item "-Wtraditional"
5401 Warn about certain constructs that behave differently in traditional and
5402 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
5403 equivalent, and problematic constructs which should be avoided.
5404 .IP "\fB\-Wimport\fR" 4
5405 .IX Item "-Wimport"
5406 Warn the first time \fB#import\fR is used.
5407 .IP "\fB\-Wundef\fR" 4
5408 .IX Item "-Wundef"
5409 Warn whenever an identifier which is not a macro is encountered in an
5410 \&\fB#if\fR directive, outside of \fBdefined\fR.  Such identifiers are
5411 replaced with zero.
5412 .IP "\fB\-Wunused\-macros\fR" 4
5413 .IX Item "-Wunused-macros"
5414 Warn about macros defined in the main file that are unused.  A macro
5415 is \fIused\fR if it is expanded or tested for existence at least once.
5416 The preprocessor will also warn if the macro has not been used at the
5417 time it is redefined or undefined.
5418 .Sp
5419 Built-in macros, macros defined on the command line, and macros
5420 defined in include files are not warned about.
5421 .Sp
5422 \&\fINote:\fR If a macro is actually used, but only used in skipped
5423 conditional blocks, then \s-1CPP\s0 will report it as unused.  To avoid the
5424 warning in such a case, you might improve the scope of the macro's
5425 definition by, for example, moving it into the first skipped block.
5426 Alternatively, you could provide a dummy use with something like:
5427 .Sp
5428 .Vb 2
5429 \&        #if defined the_macro_causing_the_warning
5430 \&        #endif
5431 .Ve
5432 .IP "\fB\-Wendif\-labels\fR" 4
5433 .IX Item "-Wendif-labels"
5434 Warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
5435 This usually happens in code of the form
5436 .Sp
5437 .Vb 5
5438 \&        #if FOO
5439 \&        ...
5440 \&        #else FOO
5441 \&        ...
5442 \&        #endif FOO
5443 .Ve
5444 .Sp
5445 The second and third \f(CW\*(C`FOO\*(C'\fR should be in comments, but often are not
5446 in older programs.  This warning is on by default.
5447 .IP "\fB\-Werror\fR" 4
5448 .IX Item "-Werror"
5449 Make all warnings into hard errors.  Source code which triggers warnings
5450 will be rejected.
5451 .IP "\fB\-Wsystem\-headers\fR" 4
5452 .IX Item "-Wsystem-headers"
5453 Issue warnings for code in system headers.  These are normally unhelpful
5454 in finding bugs in your own code, therefore suppressed.  If you are
5455 responsible for the system library, you may want to see them.
5456 .IP "\fB\-w\fR" 4
5457 .IX Item "-w"
5458 Suppress all warnings, including those which \s-1GNU\s0 \s-1CPP\s0 issues by default.
5459 .IP "\fB\-pedantic\fR" 4
5460 .IX Item "-pedantic"
5461 Issue all the mandatory diagnostics listed in the C standard.  Some of
5462 them are left out by default, since they trigger frequently on harmless
5463 code.
5464 .IP "\fB\-pedantic\-errors\fR" 4
5465 .IX Item "-pedantic-errors"
5466 Issue all the mandatory diagnostics, and make all mandatory diagnostics
5467 into errors.  This includes mandatory diagnostics that \s-1GCC\s0 issues
5468 without \fB\-pedantic\fR but treats as warnings.
5469 .IP "\fB\-M\fR" 4
5470 .IX Item "-M"
5471 Instead of outputting the result of preprocessing, output a rule
5472 suitable for \fBmake\fR describing the dependencies of the main
5473 source file.  The preprocessor outputs one \fBmake\fR rule containing
5474 the object file name for that source file, a colon, and the names of all
5475 the included files, including those coming from \fB\-include\fR or
5476 \&\fB\-imacros\fR command line options.
5477 .Sp
5478 Unless specified explicitly (with \fB\-MT\fR or \fB\-MQ\fR), the
5479 object file name consists of the basename of the source file with any
5480 suffix replaced with object file suffix.  If there are many included
5481 files then the rule is split into several lines using \fB\e\fR\-newline.
5482 The rule has no commands.
5483 .Sp
5484 This option does not suppress the preprocessor's debug output, such as
5485 \&\fB\-dM\fR.  To avoid mixing such debug output with the dependency
5486 rules you should explicitly specify the dependency output file with
5487 \&\fB\-MF\fR, or use an environment variable like
5488 \&\fB\s-1DEPENDENCIES_OUTPUT\s0\fR.  Debug output
5489 will still be sent to the regular output stream as normal.
5490 .Sp
5491 Passing \fB\-M\fR to the driver implies \fB\-E\fR, and suppresses
5492 warnings with an implicit \fB\-w\fR.
5493 .IP "\fB\-MM\fR" 4
5494 .IX Item "-MM"
5495 Like \fB\-M\fR but do not mention header files that are found in
5496 system header directories, nor header files that are included,
5497 directly or indirectly, from such a header.
5498 .Sp
5499 This implies that the choice of angle brackets or double quotes in an
5500 \&\fB#include\fR directive does not in itself determine whether that
5501 header will appear in \fB\-MM\fR dependency output.  This is a
5502 slight change in semantics from \s-1GCC\s0 versions 3.0 and earlier.
5503 .Sp
5504 @anchor{dashMF}
5505 .IP "\fB\-MF\fR \fIfile\fR" 4
5506 .IX Item "-MF file"
5507 When used with \fB\-M\fR or \fB\-MM\fR, specifies a
5508 file to write the dependencies to.  If no \fB\-MF\fR switch is given
5509 the preprocessor sends the rules to the same place it would have sent
5510 preprocessed output.
5511 .Sp
5512 When used with the driver options \fB\-MD\fR or \fB\-MMD\fR,
5513 \&\fB\-MF\fR overrides the default dependency output file.
5514 .IP "\fB\-MG\fR" 4
5515 .IX Item "-MG"
5516 In conjunction with an option such as \fB\-M\fR requesting
5517 dependency generation, \fB\-MG\fR assumes missing header files are
5518 generated files and adds them to the dependency list without raising
5519 an error.  The dependency filename is taken directly from the
5520 \&\f(CW\*(C`#include\*(C'\fR directive without prepending any path.  \fB\-MG\fR
5521 also suppresses preprocessed output, as a missing header file renders
5522 this useless.
5523 .Sp
5524 This feature is used in automatic updating of makefiles.
5525 .IP "\fB\-MP\fR" 4
5526 .IX Item "-MP"
5527 This option instructs \s-1CPP\s0 to add a phony target for each dependency
5528 other than the main file, causing each to depend on nothing.  These
5529 dummy rules work around errors \fBmake\fR gives if you remove header
5530 files without updating the \fIMakefile\fR to match.
5531 .Sp
5532 This is typical output:
5533 .Sp
5534 .Vb 1
5535 \&        test.o: test.c test.h
5536 .Ve
5537 .Sp
5538 .Vb 1
5539 \&        test.h:
5540 .Ve
5541 .IP "\fB\-MT\fR \fItarget\fR" 4
5542 .IX Item "-MT target"
5543 Change the target of the rule emitted by dependency generation.  By
5544 default \s-1CPP\s0 takes the name of the main input file, including any path,
5545 deletes any file suffix such as \fB.c\fR, and appends the platform's
5546 usual object suffix.  The result is the target.
5547 .Sp
5548 An \fB\-MT\fR option will set the target to be exactly the string you
5549 specify.  If you want multiple targets, you can specify them as a single
5550 argument to \fB\-MT\fR, or use multiple \fB\-MT\fR options.
5551 .Sp
5552 For example, \fB\-MT\ '$(objpfx)foo.o'\fR might give
5553 .Sp
5554 .Vb 1
5555 \&        $(objpfx)foo.o: foo.c
5556 .Ve
5557 .IP "\fB\-MQ\fR \fItarget\fR" 4
5558 .IX Item "-MQ target"
5559 Same as \fB\-MT\fR, but it quotes any characters which are special to
5560 Make.  \fB\-MQ\ '$(objpfx)foo.o'\fR gives
5561 .Sp
5562 .Vb 1
5563 \&        $$(objpfx)foo.o: foo.c
5564 .Ve
5565 .Sp
5566 The default target is automatically quoted, as if it were given with
5567 \&\fB\-MQ\fR.
5568 .IP "\fB\-MD\fR" 4
5569 .IX Item "-MD"
5570 \&\fB\-MD\fR is equivalent to \fB\-M \-MF\fR \fIfile\fR, except that
5571 \&\fB\-E\fR is not implied.  The driver determines \fIfile\fR based on
5572 whether an \fB\-o\fR option is given.  If it is, the driver uses its
5573 argument but with a suffix of \fI.d\fR, otherwise it take the
5574 basename of the input file and applies a \fI.d\fR suffix.
5575 .Sp
5576 If \fB\-MD\fR is used in conjunction with \fB\-E\fR, any
5577 \&\fB\-o\fR switch is understood to specify the dependency output file
5578 (but \f(CW@pxref\fR{dashMF,,\-MF}), but if used without \fB\-E\fR, each \fB\-o\fR
5579 is understood to specify a target object file.
5580 .Sp
5581 Since \fB\-E\fR is not implied, \fB\-MD\fR can be used to generate
5582 a dependency output file as a side-effect of the compilation process.
5583 .IP "\fB\-MMD\fR" 4
5584 .IX Item "-MMD"
5585 Like \fB\-MD\fR except mention only user header files, not system
5586 header files.
5587 .IP "\fB\-fpch\-deps\fR" 4
5588 .IX Item "-fpch-deps"
5589 When using precompiled headers, this flag
5590 will cause the dependency-output flags to also list the files from the
5591 precompiled header's dependencies.  If not specified only the
5592 precompiled header would be listed and not the files that were used to
5593 create it because those files are not consulted when a precompiled
5594 header is used.
5595 .IP "\fB\-fpch\-preprocess\fR" 4
5596 .IX Item "-fpch-preprocess"
5597 This option allows use of a precompiled header together with \fB\-E\fR.  It inserts a special \f(CW\*(C`#pragma\*(C'\fR,
5598 \&\f(CW\*(C`#pragma GCC pch_preprocess "<filename>"\*(C'\fR in the output to mark
5599 the place where the precompiled header was found, and its filename.  When
5600 \&\fB\-fpreprocessed\fR is in use, \s-1GCC\s0 recognizes this \f(CW\*(C`#pragma\*(C'\fR and
5601 loads the \s-1PCH\s0.
5602 .Sp
5603 This option is off by default, because the resulting preprocessed output
5604 is only really suitable as input to \s-1GCC\s0.  It is switched on by
5605 \&\fB\-save\-temps\fR.
5606 .Sp
5607 You should not write this \f(CW\*(C`#pragma\*(C'\fR in your own code, but it is
5608 safe to edit the filename if the \s-1PCH\s0 file is available in a different
5609 location.  The filename may be absolute or it may be relative to \s-1GCC\s0's
5610 current directory.
5611 .IP "\fB\-x c\fR" 4
5612 .IX Item "-x c"
5613 .PD 0
5614 .IP "\fB\-x c++\fR" 4
5615 .IX Item "-x c++"
5616 .IP "\fB\-x objective-c\fR" 4
5617 .IX Item "-x objective-c"
5618 .IP "\fB\-x assembler-with-cpp\fR" 4
5619 .IX Item "-x assembler-with-cpp"
5620 .PD
5621 Specify the source language: C, \*(C+, Objective\-C, or assembly.  This has
5622 nothing to do with standards conformance or extensions; it merely
5623 selects which base syntax to expect.  If you give none of these options,
5624 cpp will deduce the language from the extension of the source file:
5625 \&\fB.c\fR, \fB.cc\fR, \fB.m\fR, or \fB.S\fR.  Some other common
5626 extensions for \*(C+ and assembly are also recognized.  If cpp does not
5627 recognize the extension, it will treat the file as C; this is the most
5628 generic mode.
5629 .Sp
5630 \&\fINote:\fR Previous versions of cpp accepted a \fB\-lang\fR option
5631 which selected both the language and the standards conformance level.
5632 This option has been removed, because it conflicts with the \fB\-l\fR
5633 option.
5634 .IP "\fB\-std=\fR\fIstandard\fR" 4
5635 .IX Item "-std=standard"
5636 .PD 0
5637 .IP "\fB\-ansi\fR" 4
5638 .IX Item "-ansi"
5639 .PD
5640 Specify the standard to which the code should conform.  Currently \s-1CPP\s0
5641 knows about C and \*(C+ standards; others may be added in the future.
5642 .Sp
5643 \&\fIstandard\fR
5644 may be one of:
5645 .RS 4
5646 .ie n .IP """iso9899:1990""" 4
5647 .el .IP "\f(CWiso9899:1990\fR" 4
5648 .IX Item "iso9899:1990"
5649 .PD 0
5650 .ie n .IP """c89""" 4
5651 .el .IP "\f(CWc89\fR" 4
5652 .IX Item "c89"
5653 .PD
5654 The \s-1ISO\s0 C standard from 1990.  \fBc89\fR is the customary shorthand for
5655 this version of the standard.
5656 .Sp
5657 The \fB\-ansi\fR option is equivalent to \fB\-std=c89\fR.
5658 .ie n .IP """iso9899:199409""" 4
5659 .el .IP "\f(CWiso9899:199409\fR" 4
5660 .IX Item "iso9899:199409"
5661 The 1990 C standard, as amended in 1994.
5662 .ie n .IP """iso9899:1999""" 4
5663 .el .IP "\f(CWiso9899:1999\fR" 4
5664 .IX Item "iso9899:1999"
5665 .PD 0
5666 .ie n .IP """c99""" 4
5667 .el .IP "\f(CWc99\fR" 4
5668 .IX Item "c99"
5669 .ie n .IP """iso9899:199x""" 4
5670 .el .IP "\f(CWiso9899:199x\fR" 4
5671 .IX Item "iso9899:199x"
5672 .ie n .IP """c9x""" 4
5673 .el .IP "\f(CWc9x\fR" 4
5674 .IX Item "c9x"
5675 .PD
5676 The revised \s-1ISO\s0 C standard, published in December 1999.  Before
5677 publication, this was known as C9X.
5678 .ie n .IP """gnu89""" 4
5679 .el .IP "\f(CWgnu89\fR" 4
5680 .IX Item "gnu89"
5681 The 1990 C standard plus \s-1GNU\s0 extensions.  This is the default.
5682 .ie n .IP """gnu99""" 4
5683 .el .IP "\f(CWgnu99\fR" 4
5684 .IX Item "gnu99"
5685 .PD 0
5686 .ie n .IP """gnu9x""" 4
5687 .el .IP "\f(CWgnu9x\fR" 4
5688 .IX Item "gnu9x"
5689 .PD
5690 The 1999 C standard plus \s-1GNU\s0 extensions.
5691 .ie n .IP """c++98""" 4
5692 .el .IP "\f(CWc++98\fR" 4
5693 .IX Item "c++98"
5694 The 1998 \s-1ISO\s0 \*(C+ standard plus amendments.
5695 .ie n .IP """gnu++98""" 4
5696 .el .IP "\f(CWgnu++98\fR" 4
5697 .IX Item "gnu++98"
5698 The same as \fB\-std=c++98\fR plus \s-1GNU\s0 extensions.  This is the
5699 default for \*(C+ code.
5700 .RE
5701 .RS 4
5702 .RE
5703 .IP "\fB\-I\-\fR" 4
5704 .IX Item "-I-"
5705 Split the include path.  Any directories specified with \fB\-I\fR
5706 options before \fB\-I\-\fR are searched only for headers requested with
5707 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
5708 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR.  If additional directories are
5709 specified with \fB\-I\fR options after the \fB\-I\-\fR, those
5710 directories are searched for all \fB#include\fR directives.
5711 .Sp
5712 In addition, \fB\-I\-\fR inhibits the use of the directory of the current
5713 file directory as the first search directory for \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR.
5714 This option has been deprecated.
5715 .IP "\fB\-nostdinc\fR" 4
5716 .IX Item "-nostdinc"
5717 Do not search the standard system directories for header files.
5718 Only the directories you have specified with \fB\-I\fR options
5719 (and the directory of the current file, if appropriate) are searched.
5720 .IP "\fB\-nostdinc++\fR" 4
5721 .IX Item "-nostdinc++"
5722 Do not search for header files in the \*(C+\-specific standard directories,
5723 but do still search the other standard directories.  (This option is
5724 used when building the \*(C+ library.)
5725 .IP "\fB\-include\fR \fIfile\fR" 4
5726 .IX Item "-include file"
5727 Process \fIfile\fR as if \f(CW\*(C`#include "file"\*(C'\fR appeared as the first
5728 line of the primary source file.  However, the first directory searched
5729 for \fIfile\fR is the preprocessor's working directory \fIinstead of\fR
5730 the directory containing the main source file.  If not found there, it
5731 is searched for in the remainder of the \f(CW\*(C`#include "..."\*(C'\fR search
5732 chain as normal.
5733 .Sp
5734 If multiple \fB\-include\fR options are given, the files are included
5735 in the order they appear on the command line.
5736 .IP "\fB\-imacros\fR \fIfile\fR" 4
5737 .IX Item "-imacros file"
5738 Exactly like \fB\-include\fR, except that any output produced by
5739 scanning \fIfile\fR is thrown away.  Macros it defines remain defined.
5740 This allows you to acquire all the macros from a header without also
5741 processing its declarations.
5742 .Sp
5743 All files specified by \fB\-imacros\fR are processed before all files
5744 specified by \fB\-include\fR.
5745 .IP "\fB\-idirafter\fR \fIdir\fR" 4
5746 .IX Item "-idirafter dir"
5747 Search \fIdir\fR for header files, but do it \fIafter\fR all
5748 directories specified with \fB\-I\fR and the standard system directories
5749 have been exhausted.  \fIdir\fR is treated as a system include directory.
5750 .IP "\fB\-iprefix\fR \fIprefix\fR" 4
5751 .IX Item "-iprefix prefix"
5752 Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
5753 options.  If the prefix represents a directory, you should include the
5754 final \fB/\fR.
5755 .IP "\fB\-iwithprefix\fR \fIdir\fR" 4
5756 .IX Item "-iwithprefix dir"
5757 .PD 0
5758 .IP "\fB\-iwithprefixbefore\fR \fIdir\fR" 4
5759 .IX Item "-iwithprefixbefore dir"
5760 .PD
5761 Append \fIdir\fR to the prefix specified previously with
5762 \&\fB\-iprefix\fR, and add the resulting directory to the include search
5763 path.  \fB\-iwithprefixbefore\fR puts it in the same place \fB\-I\fR
5764 would; \fB\-iwithprefix\fR puts it where \fB\-idirafter\fR would.
5765 .IP "\fB\-isystem\fR \fIdir\fR" 4
5766 .IX Item "-isystem dir"
5767 Search \fIdir\fR for header files, after all directories specified by
5768 \&\fB\-I\fR but before the standard system directories.  Mark it
5769 as a system directory, so that it gets the same special treatment as
5770 is applied to the standard system directories.
5771 .IP "\fB\-iquote\fR \fIdir\fR" 4
5772 .IX Item "-iquote dir"
5773 Search \fIdir\fR only for header files requested with
5774 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
5775 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR, before all directories specified by
5776 \&\fB\-I\fR and before the standard system directories.
5777 .IP "\fB\-fdollars\-in\-identifiers\fR" 4
5778 .IX Item "-fdollars-in-identifiers"
5779 @anchor{fdollars\-in\-identifiers}
5780 Accept \fB$\fR in identifiers.
5781 .IP "\fB\-fpreprocessed\fR" 4
5782 .IX Item "-fpreprocessed"
5783 Indicate to the preprocessor that the input file has already been
5784 preprocessed.  This suppresses things like macro expansion, trigraph
5785 conversion, escaped newline splicing, and processing of most directives.
5786 The preprocessor still recognizes and removes comments, so that you can
5787 pass a file preprocessed with \fB\-C\fR to the compiler without
5788 problems.  In this mode the integrated preprocessor is little more than
5789 a tokenizer for the front ends.
5790 .Sp
5791 \&\fB\-fpreprocessed\fR is implicit if the input file has one of the
5792 extensions \fB.i\fR, \fB.ii\fR or \fB.mi\fR.  These are the
5793 extensions that \s-1GCC\s0 uses for preprocessed files created by
5794 \&\fB\-save\-temps\fR.
5795 .IP "\fB\-ftabstop=\fR\fIwidth\fR" 4
5796 .IX Item "-ftabstop=width"
5797 Set the distance between tab stops.  This helps the preprocessor report
5798 correct column numbers in warnings or errors, even if tabs appear on the
5799 line.  If the value is less than 1 or greater than 100, the option is
5800 ignored.  The default is 8.
5801 .IP "\fB\-fexec\-charset=\fR\fIcharset\fR" 4
5802 .IX Item "-fexec-charset=charset"
5803 Set the execution character set, used for string and character
5804 constants.  The default is \s-1UTF\-8\s0.  \fIcharset\fR can be any encoding
5805 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
5806 .IP "\fB\-fwide\-exec\-charset=\fR\fIcharset\fR" 4
5807 .IX Item "-fwide-exec-charset=charset"
5808 Set the wide execution character set, used for wide string and
5809 character constants.  The default is \s-1UTF\-32\s0 or \s-1UTF\-16\s0, whichever
5810 corresponds to the width of \f(CW\*(C`wchar_t\*(C'\fR.  As with
5811 \&\fB\-fexec\-charset\fR, \fIcharset\fR can be any encoding supported
5812 by the system's \f(CW\*(C`iconv\*(C'\fR library routine; however, you will have
5813 problems with encodings that do not fit exactly in \f(CW\*(C`wchar_t\*(C'\fR.
5814 .IP "\fB\-finput\-charset=\fR\fIcharset\fR" 4
5815 .IX Item "-finput-charset=charset"
5816 Set the input character set, used for translation from the character
5817 set of the input file to the source character set used by \s-1GCC\s0.  If the
5818 locale does not specify, or \s-1GCC\s0 cannot get this information from the
5819 locale, the default is \s-1UTF\-8\s0.  This can be overridden by either the locale
5820 or this command line option.  Currently the command line option takes
5821 precedence if there's a conflict.  \fIcharset\fR can be any encoding
5822 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
5823 .IP "\fB\-fworking\-directory\fR" 4
5824 .IX Item "-fworking-directory"
5825 Enable generation of linemarkers in the preprocessor output that will
5826 let the compiler know the current working directory at the time of
5827 preprocessing.  When this option is enabled, the preprocessor will
5828 emit, after the initial linemarker, a second linemarker with the
5829 current working directory followed by two slashes.  \s-1GCC\s0 will use this
5830 directory, when it's present in the preprocessed input, as the
5831 directory emitted as the current working directory in some debugging
5832 information formats.  This option is implicitly enabled if debugging
5833 information is enabled, but this can be inhibited with the negated
5834 form \fB\-fno\-working\-directory\fR.  If the \fB\-P\fR flag is
5835 present in the command line, this option has no effect, since no
5836 \&\f(CW\*(C`#line\*(C'\fR directives are emitted whatsoever.
5837 .IP "\fB\-fno\-show\-column\fR" 4
5838 .IX Item "-fno-show-column"
5839 Do not print column numbers in diagnostics.  This may be necessary if
5840 diagnostics are being scanned by a program that does not understand the
5841 column numbers, such as \fBdejagnu\fR.
5842 .IP "\fB\-A\fR \fIpredicate\fR\fB=\fR\fIanswer\fR" 4
5843 .IX Item "-A predicate=answer"
5844 Make an assertion with the predicate \fIpredicate\fR and answer
5845 \&\fIanswer\fR.  This form is preferred to the older form \fB\-A\fR
5846 \&\fIpredicate\fR\fB(\fR\fIanswer\fR\fB)\fR, which is still supported, because
5847 it does not use shell special characters.
5848 .IP "\fB\-A \-\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4
5849 .IX Item "-A -predicate=answer"
5850 Cancel an assertion with the predicate \fIpredicate\fR and answer
5851 \&\fIanswer\fR.
5852 .IP "\fB\-dCHARS\fR" 4
5853 .IX Item "-dCHARS"
5854 \&\fI\s-1CHARS\s0\fR is a sequence of one or more of the following characters,
5855 and must not be preceded by a space.  Other characters are interpreted
5856 by the compiler proper, or reserved for future versions of \s-1GCC\s0, and so
5857 are silently ignored.  If you specify characters whose behavior
5858 conflicts, the result is undefined.
5859 .RS 4
5860 .IP "\fBM\fR" 4
5861 .IX Item "M"
5862 Instead of the normal output, generate a list of \fB#define\fR
5863 directives for all the macros defined during the execution of the
5864 preprocessor, including predefined macros.  This gives you a way of
5865 finding out what is predefined in your version of the preprocessor.
5866 Assuming you have no file \fIfoo.h\fR, the command
5867 .Sp
5868 .Vb 1
5869 \&        touch foo.h; cpp -dM foo.h
5870 .Ve
5871 .Sp
5872 will show all the predefined macros.
5873 .IP "\fBD\fR" 4
5874 .IX Item "D"
5875 Like \fBM\fR except in two respects: it does \fInot\fR include the
5876 predefined macros, and it outputs \fIboth\fR the \fB#define\fR
5877 directives and the result of preprocessing.  Both kinds of output go to
5878 the standard output file.
5879 .IP "\fBN\fR" 4
5880 .IX Item "N"
5881 Like \fBD\fR, but emit only the macro names, not their expansions.
5882 .IP "\fBI\fR" 4
5883 .IX Item "I"
5884 Output \fB#include\fR directives in addition to the result of
5885 preprocessing.
5886 .RE
5887 .RS 4
5888 .RE
5889 .IP "\fB\-P\fR" 4
5890 .IX Item "-P"
5891 Inhibit generation of linemarkers in the output from the preprocessor.
5892 This might be useful when running the preprocessor on something that is
5893 not C code, and will be sent to a program which might be confused by the
5894 linemarkers.
5895 .IP "\fB\-C\fR" 4
5896 .IX Item "-C"
5897 Do not discard comments.  All comments are passed through to the output
5898 file, except for comments in processed directives, which are deleted
5899 along with the directive.
5900 .Sp
5901 You should be prepared for side effects when using \fB\-C\fR; it
5902 causes the preprocessor to treat comments as tokens in their own right.
5903 For example, comments appearing at the start of what would be a
5904 directive line have the effect of turning that line into an ordinary
5905 source line, since the first token on the line is no longer a \fB#\fR.
5906 .IP "\fB\-CC\fR" 4
5907 .IX Item "-CC"
5908 Do not discard comments, including during macro expansion.  This is
5909 like \fB\-C\fR, except that comments contained within macros are
5910 also passed through to the output file where the macro is expanded.
5911 .Sp
5912 In addition to the side-effects of the \fB\-C\fR option, the
5913 \&\fB\-CC\fR option causes all \*(C+\-style comments inside a macro
5914 to be converted to C\-style comments.  This is to prevent later use
5915 of that macro from inadvertently commenting out the remainder of
5916 the source line.
5917 .Sp
5918 The \fB\-CC\fR option is generally used to support lint comments.
5919 .IP "\fB\-traditional\-cpp\fR" 4
5920 .IX Item "-traditional-cpp"
5921 Try to imitate the behavior of old-fashioned C preprocessors, as
5922 opposed to \s-1ISO\s0 C preprocessors.
5923 .IP "\fB\-trigraphs\fR" 4
5924 .IX Item "-trigraphs"
5925 Process trigraph sequences.
5926 These are three-character sequences, all starting with \fB??\fR, that
5927 are defined by \s-1ISO\s0 C to stand for single characters.  For example,
5928 \&\fB??/\fR stands for \fB\e\fR, so \fB'??/n'\fR is a character
5929 constant for a newline.  By default, \s-1GCC\s0 ignores trigraphs, but in
5930 standard-conforming modes it converts them.  See the \fB\-std\fR and
5931 \&\fB\-ansi\fR options.
5932 .Sp
5933 The nine trigraphs and their replacements are
5934 .Sp
5935 .Vb 2
5936 \&        Trigraph:       ??(  ??)  ??<  ??>  ??=  ??/  ??'  ??!  ??-
5937 \&        Replacement:      [    ]    {    }    #    \e    ^    |    ~
5938 .Ve
5939 .IP "\fB\-remap\fR" 4
5940 .IX Item "-remap"
5941 Enable special code to work around file systems which only permit very
5942 short file names, such as \s-1MS\-DOS\s0.
5943 .IP "\fB\-\-help\fR" 4
5944 .IX Item "--help"
5945 .PD 0
5946 .IP "\fB\-\-target\-help\fR" 4
5947 .IX Item "--target-help"
5948 .PD
5949 Print text describing all the command line options instead of
5950 preprocessing anything.
5951 .IP "\fB\-v\fR" 4
5952 .IX Item "-v"
5953 Verbose mode.  Print out \s-1GNU\s0 \s-1CPP\s0's version number at the beginning of
5954 execution, and report the final form of the include path.
5955 .IP "\fB\-H\fR" 4
5956 .IX Item "-H"
5957 Print the name of each header file used, in addition to other normal
5958 activities.  Each name is indented to show how deep in the
5959 \&\fB#include\fR stack it is.  Precompiled header files are also
5960 printed, even if they are found to be invalid; an invalid precompiled
5961 header file is printed with \fB...x\fR and a valid one with \fB...!\fR .
5962 .IP "\fB\-version\fR" 4
5963 .IX Item "-version"
5964 .PD 0
5965 .IP "\fB\-\-version\fR" 4
5966 .IX Item "--version"
5967 .PD
5968 Print out \s-1GNU\s0 \s-1CPP\s0's version number.  With one dash, proceed to
5969 preprocess as normal.  With two dashes, exit immediately.
5970 .Sh "Passing Options to the Assembler"
5971 .IX Subsection "Passing Options to the Assembler"
5972 You can pass options to the assembler.
5973 .IP "\fB\-Wa,\fR\fIoption\fR" 4
5974 .IX Item "-Wa,option"
5975 Pass \fIoption\fR as an option to the assembler.  If \fIoption\fR
5976 contains commas, it is split into multiple options at the commas.
5977 .IP "\fB\-Xassembler\fR \fIoption\fR" 4
5978 .IX Item "-Xassembler option"
5979 Pass \fIoption\fR as an option to the assembler.  You can use this to
5980 supply system-specific assembler options which \s-1GCC\s0 does not know how to
5981 recognize.
5982 .Sp
5983 If you want to pass an option that takes an argument, you must use
5984 \&\fB\-Xassembler\fR twice, once for the option and once for the argument.
5985 .Sh "Options for Linking"
5986 .IX Subsection "Options for Linking"
5987 These options come into play when the compiler links object files into
5988 an executable output file.  They are meaningless if the compiler is
5989 not doing a link step.
5990 .IP "\fIobject-file-name\fR" 4
5991 .IX Item "object-file-name"
5992 A file name that does not end in a special recognized suffix is
5993 considered to name an object file or library.  (Object files are
5994 distinguished from libraries by the linker according to the file
5995 contents.)  If linking is done, these object files are used as input
5996 to the linker.
5997 .IP "\fB\-c\fR" 4
5998 .IX Item "-c"
5999 .PD 0
6000 .IP "\fB\-S\fR" 4
6001 .IX Item "-S"
6002 .IP "\fB\-E\fR" 4
6003 .IX Item "-E"
6004 .PD
6005 If any of these options is used, then the linker is not run, and
6006 object file names should not be used as arguments.  
6007 .IP "\fB\-l\fR\fIlibrary\fR" 4
6008 .IX Item "-llibrary"
6009 .PD 0
6010 .IP "\fB\-l\fR \fIlibrary\fR" 4
6011 .IX Item "-l library"
6012 .PD
6013 Search the library named \fIlibrary\fR when linking.  (The second
6014 alternative with the library as a separate argument is only for
6015 \&\s-1POSIX\s0 compliance and is not recommended.)
6016 .Sp
6017 It makes a difference where in the command you write this option; the
6018 linker searches and processes libraries and object files in the order they
6019 are specified.  Thus, \fBfoo.o \-lz bar.o\fR searches library \fBz\fR
6020 after file \fIfoo.o\fR but before \fIbar.o\fR.  If \fIbar.o\fR refers
6021 to functions in \fBz\fR, those functions may not be loaded.
6022 .Sp
6023 The linker searches a standard list of directories for the library,
6024 which is actually a file named \fIlib\fIlibrary\fI.a\fR.  The linker
6025 then uses this file as if it had been specified precisely by name.
6026 .Sp
6027 The directories searched include several standard system directories
6028 plus any that you specify with \fB\-L\fR.
6029 .Sp
6030 Normally the files found this way are library files\-\-\-archive files
6031 whose members are object files.  The linker handles an archive file by
6032 scanning through it for members which define symbols that have so far
6033 been referenced but not defined.  But if the file that is found is an
6034 ordinary object file, it is linked in the usual fashion.  The only
6035 difference between using an \fB\-l\fR option and specifying a file name
6036 is that \fB\-l\fR surrounds \fIlibrary\fR with \fBlib\fR and \fB.a\fR
6037 and searches several directories.
6038 .IP "\fB\-lobjc\fR" 4
6039 .IX Item "-lobjc"
6040 You need this special case of the \fB\-l\fR option in order to
6041 link an Objective-C or Objective\-\*(C+ program.
6042 .IP "\fB\-nostartfiles\fR" 4
6043 .IX Item "-nostartfiles"
6044 Do not use the standard system startup files when linking.
6045 The standard system libraries are used normally, unless \fB\-nostdlib\fR
6046 or \fB\-nodefaultlibs\fR is used.
6047 .IP "\fB\-nodefaultlibs\fR" 4
6048 .IX Item "-nodefaultlibs"
6049 Do not use the standard system libraries when linking.
6050 Only the libraries you specify will be passed to the linker.
6051 The standard startup files are used normally, unless \fB\-nostartfiles\fR
6052 is used.  The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR,
6053 \&\f(CW\*(C`memset\*(C'\fR, \f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
6054 These entries are usually resolved by entries in
6055 libc.  These entry points should be supplied through some other
6056 mechanism when this option is specified.
6057 .IP "\fB\-nostdlib\fR" 4
6058 .IX Item "-nostdlib"
6059 Do not use the standard system startup files or libraries when linking.
6060 No startup files and only the libraries you specify will be passed to
6061 the linker.  The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR, \f(CW\*(C`memset\*(C'\fR,
6062 \&\f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
6063 These entries are usually resolved by entries in
6064 libc.  These entry points should be supplied through some other
6065 mechanism when this option is specified.
6066 .Sp
6067 One of the standard libraries bypassed by \fB\-nostdlib\fR and
6068 \&\fB\-nodefaultlibs\fR is \fIlibgcc.a\fR, a library of internal subroutines
6069 that \s-1GCC\s0 uses to overcome shortcomings of particular machines, or special
6070 needs for some languages.
6071 .Sp
6072 In most cases, you need \fIlibgcc.a\fR even when you want to avoid
6073 other standard libraries.  In other words, when you specify \fB\-nostdlib\fR
6074 or \fB\-nodefaultlibs\fR you should usually specify \fB\-lgcc\fR as well.
6075 This ensures that you have no unresolved references to internal \s-1GCC\s0
6076 library subroutines.  (For example, \fB_\|_main\fR, used to ensure \*(C+
6077 constructors will be called.)
6078 .IP "\fB\-pie\fR" 4
6079 .IX Item "-pie"
6080 Produce a position independent executable on targets which support it.
6081 For predictable results, you must also specify the same set of options
6082 that were used to generate code (\fB\-fpie\fR, \fB\-fPIE\fR,
6083 or model suboptions) when you specify this option.
6084 .IP "\fB\-s\fR" 4
6085 .IX Item "-s"
6086 Remove all symbol table and relocation information from the executable.
6087 .IP "\fB\-static\fR" 4
6088 .IX Item "-static"
6089 On systems that support dynamic linking, this prevents linking with the shared
6090 libraries.  On other systems, this option has no effect.
6091 .IP "\fB\-shared\fR" 4
6092 .IX Item "-shared"
6093 Produce a shared object which can then be linked with other objects to
6094 form an executable.  Not all systems support this option.  For predictable
6095 results, you must also specify the same set of options that were used to
6096 generate code (\fB\-fpic\fR, \fB\-fPIC\fR, or model suboptions)
6097 when you specify this option.[1]
6098 .IP "\fB\-shared\-libgcc\fR" 4
6099 .IX Item "-shared-libgcc"
6100 .PD 0
6101 .IP "\fB\-static\-libgcc\fR" 4
6102 .IX Item "-static-libgcc"
6103 .PD
6104 On systems that provide \fIlibgcc\fR as a shared library, these options
6105 force the use of either the shared or static version respectively.
6106 If no shared version of \fIlibgcc\fR was built when the compiler was
6107 configured, these options have no effect.
6108 .Sp
6109 There are several situations in which an application should use the
6110 shared \fIlibgcc\fR instead of the static version.  The most common
6111 of these is when the application wishes to throw and catch exceptions
6112 across different shared libraries.  In that case, each of the libraries
6113 as well as the application itself should use the shared \fIlibgcc\fR.
6114 .Sp
6115 Therefore, the G++ and \s-1GCJ\s0 drivers automatically add
6116 \&\fB\-shared\-libgcc\fR whenever you build a shared library or a main
6117 executable, because \*(C+ and Java programs typically use exceptions, so
6118 this is the right thing to do.
6119 .Sp
6120 If, instead, you use the \s-1GCC\s0 driver to create shared libraries, you may
6121 find that they will not always be linked with the shared \fIlibgcc\fR.
6122 If \s-1GCC\s0 finds, at its configuration time, that you have a non-GNU linker
6123 or a \s-1GNU\s0 linker that does not support option \fB\-\-eh\-frame\-hdr\fR,
6124 it will link the shared version of \fIlibgcc\fR into shared libraries
6125 by default.  Otherwise, it will take advantage of the linker and optimize
6126 away the linking with the shared version of \fIlibgcc\fR, linking with
6127 the static version of libgcc by default.  This allows exceptions to
6128 propagate through such shared libraries, without incurring relocation
6129 costs at library load time.
6130 .Sp
6131 However, if a library or main executable is supposed to throw or catch
6132 exceptions, you must link it using the G++ or \s-1GCJ\s0 driver, as appropriate
6133 for the languages used in the program, or using the option
6134 \&\fB\-shared\-libgcc\fR, such that it is linked with the shared
6135 \&\fIlibgcc\fR.
6136 .IP "\fB\-symbolic\fR" 4
6137 .IX Item "-symbolic"
6138 Bind references to global symbols when building a shared object.  Warn
6139 about any unresolved references (unless overridden by the link editor
6140 option \fB\-Xlinker \-z \-Xlinker defs\fR).  Only a few systems support
6141 this option.
6142 .IP "\fB\-Xlinker\fR \fIoption\fR" 4
6143 .IX Item "-Xlinker option"
6144 Pass \fIoption\fR as an option to the linker.  You can use this to
6145 supply system-specific linker options which \s-1GCC\s0 does not know how to
6146 recognize.
6147 .Sp
6148 If you want to pass an option that takes an argument, you must use
6149 \&\fB\-Xlinker\fR twice, once for the option and once for the argument.
6150 For example, to pass \fB\-assert definitions\fR, you must write
6151 \&\fB\-Xlinker \-assert \-Xlinker definitions\fR.  It does not work to write
6152 \&\fB\-Xlinker \*(L"\-assert definitions\*(R"\fR, because this passes the entire
6153 string as a single argument, which is not what the linker expects.
6154 .IP "\fB\-Wl,\fR\fIoption\fR" 4
6155 .IX Item "-Wl,option"
6156 Pass \fIoption\fR as an option to the linker.  If \fIoption\fR contains
6157 commas, it is split into multiple options at the commas.
6158 .IP "\fB\-u\fR \fIsymbol\fR" 4
6159 .IX Item "-u symbol"
6160 Pretend the symbol \fIsymbol\fR is undefined, to force linking of
6161 library modules to define it.  You can use \fB\-u\fR multiple times with
6162 different symbols to force loading of additional library modules.
6163 .Sh "Options for Directory Search"
6164 .IX Subsection "Options for Directory Search"
6165 These options specify directories to search for header files, for
6166 libraries and for parts of the compiler:
6167 .IP "\fB\-I\fR\fIdir\fR" 4
6168 .IX Item "-Idir"
6169 Add the directory \fIdir\fR to the head of the list of directories to be
6170 searched for header files.  This can be used to override a system header
6171 file, substituting your own version, since these directories are
6172 searched before the system header file directories.  However, you should
6173 not use this option to add directories that contain vendor-supplied
6174 system header files (use \fB\-isystem\fR for that).  If you use more than
6175 one \fB\-I\fR option, the directories are scanned in left-to-right
6176 order; the standard system directories come after.
6177 .Sp
6178 If a standard system include directory, or a directory specified with
6179 \&\fB\-isystem\fR, is also specified with \fB\-I\fR, the \fB\-I\fR
6180 option will be ignored.  The directory will still be searched but as a
6181 system directory at its normal position in the system include chain.
6182 This is to ensure that \s-1GCC\s0's procedure to fix buggy system headers and
6183 the ordering for the include_next directive are not inadvertently changed.
6184 If you really need to change the search order for system directories,
6185 use the \fB\-nostdinc\fR and/or \fB\-isystem\fR options.
6186 .IP "\fB\-iquote\fR\fIdir\fR" 4
6187 .IX Item "-iquotedir"
6188 Add the directory \fIdir\fR to the head of the list of directories to
6189 be searched for header files only for the case of \fB#include
6190 "\fR\fIfile\fR\fB"\fR; they are not searched for \fB#include <\fR\fIfile\fR\fB>\fR,
6191 otherwise just like \fB\-I\fR.
6192 .IP "\fB\-L\fR\fIdir\fR" 4
6193 .IX Item "-Ldir"
6194 Add directory \fIdir\fR to the list of directories to be searched
6195 for \fB\-l\fR.
6196 .IP "\fB\-B\fR\fIprefix\fR" 4
6197 .IX Item "-Bprefix"
6198 This option specifies where to find the executables, libraries,
6199 include files, and data files of the compiler itself.
6200 .Sp
6201 The compiler driver program runs one or more of the subprograms
6202 \&\fIcpp\fR, \fIcc1\fR, \fIas\fR and \fIld\fR.  It tries
6203 \&\fIprefix\fR as a prefix for each program it tries to run, both with and
6204 without \fImachine\fR\fB/\fR\fIversion\fR\fB/\fR.
6205 .Sp
6206 For each subprogram to be run, the compiler driver first tries the
6207 \&\fB\-B\fR prefix, if any.  If that name is not found, or if \fB\-B\fR
6208 was not specified, the driver tries two standard prefixes, which are
6209 \&\fI/usr/lib/gcc/\fR and \fI/usr/local/lib/gcc/\fR.  If neither of
6210 those results in a file name that is found, the unmodified program
6211 name is searched for using the directories specified in your
6212 \&\fB\s-1PATH\s0\fR environment variable.
6213 .Sp
6214 The compiler will check to see if the path provided by the \fB\-B\fR
6215 refers to a directory, and if necessary it will add a directory
6216 separator character at the end of the path.
6217 .Sp
6218 \&\fB\-B\fR prefixes that effectively specify directory names also apply
6219 to libraries in the linker, because the compiler translates these
6220 options into \fB\-L\fR options for the linker.  They also apply to
6221 includes files in the preprocessor, because the compiler translates these
6222 options into \fB\-isystem\fR options for the preprocessor.  In this case,
6223 the compiler appends \fBinclude\fR to the prefix.
6224 .Sp
6225 The run-time support file \fIlibgcc.a\fR can also be searched for using
6226 the \fB\-B\fR prefix, if needed.  If it is not found there, the two
6227 standard prefixes above are tried, and that is all.  The file is left
6228 out of the link if it is not found by those means.
6229 .Sp
6230 Another way to specify a prefix much like the \fB\-B\fR prefix is to use
6231 the environment variable \fB\s-1GCC_EXEC_PREFIX\s0\fR.  
6232 .Sp
6233 As a special kludge, if the path provided by \fB\-B\fR is
6234 \&\fI[dir/]stage\fIN\fI/\fR, where \fIN\fR is a number in the range 0 to
6235 9, then it will be replaced by \fI[dir/]include\fR.  This is to help
6236 with boot-strapping the compiler.
6237 .IP "\fB\-specs=\fR\fIfile\fR" 4
6238 .IX Item "-specs=file"
6239 Process \fIfile\fR after the compiler reads in the standard \fIspecs\fR
6240 file, in order to override the defaults that the \fIgcc\fR driver
6241 program uses when determining what switches to pass to \fIcc1\fR,
6242 \&\fIcc1plus\fR, \fIas\fR, \fIld\fR, etc.  More than one
6243 \&\fB\-specs=\fR\fIfile\fR can be specified on the command line, and they
6244 are processed in order, from left to right.
6245 .IP "\fB\-I\-\fR" 4
6246 .IX Item "-I-"
6247 This option has been deprecated.  Please use \fB\-iquote\fR instead for
6248 \&\fB\-I\fR directories before the \fB\-I\-\fR and remove the \fB\-I\-\fR.
6249 Any directories you specify with \fB\-I\fR options before the \fB\-I\-\fR
6250 option are searched only for the case of \fB#include "\fR\fIfile\fR\fB"\fR;
6251 they are not searched for \fB#include <\fR\fIfile\fR\fB>\fR.
6252 .Sp
6253 If additional directories are specified with \fB\-I\fR options after
6254 the \fB\-I\-\fR, these directories are searched for all \fB#include\fR
6255 directives.  (Ordinarily \fIall\fR \fB\-I\fR directories are used
6256 this way.)
6257 .Sp
6258 In addition, the \fB\-I\-\fR option inhibits the use of the current
6259 directory (where the current input file came from) as the first search
6260 directory for \fB#include "\fR\fIfile\fR\fB"\fR.  There is no way to
6261 override this effect of \fB\-I\-\fR.  With \fB\-I.\fR you can specify
6262 searching the directory which was current when the compiler was
6263 invoked.  That is not exactly the same as what the preprocessor does
6264 by default, but it is often satisfactory.
6265 .Sp
6266 \&\fB\-I\-\fR does not inhibit the use of the standard system directories
6267 for header files.  Thus, \fB\-I\-\fR and \fB\-nostdinc\fR are
6268 independent.
6269 .Sh "Specifying Target Machine and Compiler Version"
6270 .IX Subsection "Specifying Target Machine and Compiler Version"
6271 The usual way to run \s-1GCC\s0 is to run the executable called \fIgcc\fR, or
6272 \&\fI<machine>\-gcc\fR when cross\-compiling, or
6273 \&\fI<machine>\-gcc\-<version>\fR to run a version other than the one that
6274 was installed last.  Sometimes this is inconvenient, so \s-1GCC\s0 provides
6275 options that will switch to another cross-compiler or version.
6276 .IP "\fB\-b\fR \fImachine\fR" 4
6277 .IX Item "-b machine"
6278 The argument \fImachine\fR specifies the target machine for compilation.
6279 .Sp
6280 The value to use for \fImachine\fR is the same as was specified as the
6281 machine type when configuring \s-1GCC\s0 as a cross\-compiler.  For
6282 example, if a cross-compiler was configured with \fBconfigure
6283 i386v\fR, meaning to compile for an 80386 running System V, then you
6284 would specify \fB\-b i386v\fR to run that cross compiler.
6285 .IP "\fB\-V\fR \fIversion\fR" 4
6286 .IX Item "-V version"
6287 The argument \fIversion\fR specifies which version of \s-1GCC\s0 to run.
6288 This is useful when multiple versions are installed.  For example,
6289 \&\fIversion\fR might be \fB2.0\fR, meaning to run \s-1GCC\s0 version 2.0.
6290 .PP
6291 The \fB\-V\fR and \fB\-b\fR options work by running the
6292 \&\fI<machine>\-gcc\-<version>\fR executable, so there's no real reason to
6293 use them if you can just run that directly.
6294 .Sh "Hardware Models and Configurations"
6295 .IX Subsection "Hardware Models and Configurations"
6296 Earlier we discussed the standard option \fB\-b\fR which chooses among
6297 different installed compilers for completely different target
6298 machines, such as \s-1VAX\s0 vs. 68000 vs. 80386.
6299 .PP
6300 In addition, each of these target machine types can have its own
6301 special options, starting with \fB\-m\fR, to choose among various
6302 hardware models or configurations\-\-\-for example, 68010 vs 68020,
6303 floating coprocessor or none.  A single installed version of the
6304 compiler can compile for any model or configuration, according to the
6305 options specified.
6306 .PP
6307 Some configurations of the compiler also support additional special
6308 options, usually for compatibility with other compilers on the same
6309 platform.
6310 .PP
6311 These options are defined by the macro \f(CW\*(C`TARGET_SWITCHES\*(C'\fR in the
6312 machine description.  The default for the options is also defined by
6313 that macro, which enables you to change the defaults.
6314 .PP
6315 \fI\s-1ARC\s0 Options\fR
6316 .IX Subsection "ARC Options"
6317 .PP
6318 These options are defined for \s-1ARC\s0 implementations:
6319 .IP "\fB\-EL\fR" 4
6320 .IX Item "-EL"
6321 Compile code for little endian mode.  This is the default.
6322 .IP "\fB\-EB\fR" 4
6323 .IX Item "-EB"
6324 Compile code for big endian mode.
6325 .IP "\fB\-mmangle\-cpu\fR" 4
6326 .IX Item "-mmangle-cpu"
6327 Prepend the name of the cpu to all public symbol names.
6328 In multiple-processor systems, there are many \s-1ARC\s0 variants with different
6329 instruction and register set characteristics.  This flag prevents code
6330 compiled for one cpu to be linked with code compiled for another.
6331 No facility exists for handling variants that are ``almost identical''.
6332 This is an all or nothing option.
6333 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
6334 .IX Item "-mcpu=cpu"
6335 Compile code for \s-1ARC\s0 variant \fIcpu\fR.
6336 Which variants are supported depend on the configuration.
6337 All variants support \fB\-mcpu=base\fR, this is the default.
6338 .IP "\fB\-mtext=\fR\fItext-section\fR" 4
6339 .IX Item "-mtext=text-section"
6340 .PD 0
6341 .IP "\fB\-mdata=\fR\fIdata-section\fR" 4
6342 .IX Item "-mdata=data-section"
6343 .IP "\fB\-mrodata=\fR\fIreadonly-data-section\fR" 4
6344 .IX Item "-mrodata=readonly-data-section"
6345 .PD
6346 Put functions, data, and readonly data in \fItext-section\fR,
6347 \&\fIdata-section\fR, and \fIreadonly-data-section\fR respectively
6348 by default.  This can be overridden with the \f(CW\*(C`section\*(C'\fR attribute.
6349 .PP
6350 \fI\s-1ARM\s0 Options\fR
6351 .IX Subsection "ARM Options"
6352 .PP
6353 These \fB\-m\fR options are defined for Advanced \s-1RISC\s0 Machines (\s-1ARM\s0)
6354 architectures:
6355 .IP "\fB\-mabi=\fR\fIname\fR" 4
6356 .IX Item "-mabi=name"
6357 Generate code for the specified \s-1ABI\s0.  Permissible values are: \fBapcs-gnu\fR,
6358 \&\fBatpcs\fR, \fBaapcs\fR and \fBiwmmxt\fR.
6359 .IP "\fB\-mapcs\-frame\fR" 4
6360 .IX Item "-mapcs-frame"
6361 Generate a stack frame that is compliant with the \s-1ARM\s0 Procedure Call
6362 Standard for all functions, even if this is not strictly necessary for
6363 correct execution of the code.  Specifying \fB\-fomit\-frame\-pointer\fR
6364 with this option will cause the stack frames not to be generated for
6365 leaf functions.  The default is \fB\-mno\-apcs\-frame\fR.
6366 .IP "\fB\-mapcs\fR" 4
6367 .IX Item "-mapcs"
6368 This is a synonym for \fB\-mapcs\-frame\fR.
6369 .IP "\fB\-mthumb\-interwork\fR" 4
6370 .IX Item "-mthumb-interwork"
6371 Generate code which supports calling between the \s-1ARM\s0 and Thumb
6372 instruction sets.  Without this option the two instruction sets cannot
6373 be reliably used inside one program.  The default is
6374 \&\fB\-mno\-thumb\-interwork\fR, since slightly larger code is generated
6375 when \fB\-mthumb\-interwork\fR is specified.
6376 .IP "\fB\-mno\-sched\-prolog\fR" 4
6377 .IX Item "-mno-sched-prolog"
6378 Prevent the reordering of instructions in the function prolog, or the
6379 merging of those instruction with the instructions in the function's
6380 body.  This means that all functions will start with a recognizable set
6381 of instructions (or in fact one of a choice from a small set of
6382 different function prologues), and this information can be used to
6383 locate the start if functions inside an executable piece of code.  The
6384 default is \fB\-msched\-prolog\fR.
6385 .IP "\fB\-mhard\-float\fR" 4
6386 .IX Item "-mhard-float"
6387 Generate output containing floating point instructions.  This is the
6388 default.
6389 .IP "\fB\-msoft\-float\fR" 4
6390 .IX Item "-msoft-float"
6391 Generate output containing library calls for floating point.
6392 \&\fBWarning:\fR the requisite libraries are not available for all \s-1ARM\s0
6393 targets.  Normally the facilities of the machine's usual C compiler are
6394 used, but this cannot be done directly in cross\-compilation.  You must make
6395 your own arrangements to provide suitable library functions for
6396 cross\-compilation.
6397 .Sp
6398 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
6399 therefore, it is only useful if you compile \fIall\fR of a program with
6400 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
6401 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
6402 this to work.
6403 .IP "\fB\-mfloat\-abi=\fR\fIname\fR" 4
6404 .IX Item "-mfloat-abi=name"
6405 Specifies which \s-1ABI\s0 to use for floating point values.  Permissible values
6406 are: \fBsoft\fR, \fBsoftfp\fR and \fBhard\fR.
6407 .Sp
6408 \&\fBsoft\fR and \fBhard\fR are equivalent to \fB\-msoft\-float\fR
6409 and \fB\-mhard\-float\fR respectively.  \fBsoftfp\fR allows the generation
6410 of floating point instructions, but still uses the soft-float calling
6411 conventions.
6412 .IP "\fB\-mlittle\-endian\fR" 4
6413 .IX Item "-mlittle-endian"
6414 Generate code for a processor running in little-endian mode.  This is
6415 the default for all standard configurations.
6416 .IP "\fB\-mbig\-endian\fR" 4
6417 .IX Item "-mbig-endian"
6418 Generate code for a processor running in big-endian mode; the default is
6419 to compile code for a little-endian processor.
6420 .IP "\fB\-mwords\-little\-endian\fR" 4
6421 .IX Item "-mwords-little-endian"
6422 This option only applies when generating code for big-endian processors.
6423 Generate code for a little-endian word order but a big-endian byte
6424 order.  That is, a byte order of the form \fB32107654\fR.  Note: this
6425 option should only be used if you require compatibility with code for
6426 big-endian \s-1ARM\s0 processors generated by versions of the compiler prior to
6427 2.8.
6428 .IP "\fB\-mcpu=\fR\fIname\fR" 4
6429 .IX Item "-mcpu=name"
6430 This specifies the name of the target \s-1ARM\s0 processor.  \s-1GCC\s0 uses this name
6431 to determine what kind of instructions it can emit when generating
6432 assembly code.  Permissible names are: \fBarm2\fR, \fBarm250\fR,
6433 \&\fBarm3\fR, \fBarm6\fR, \fBarm60\fR, \fBarm600\fR, \fBarm610\fR,
6434 \&\fBarm620\fR, \fBarm7\fR, \fBarm7m\fR, \fBarm7d\fR, \fBarm7dm\fR,
6435 \&\fBarm7di\fR, \fBarm7dmi\fR, \fBarm70\fR, \fBarm700\fR,
6436 \&\fBarm700i\fR, \fBarm710\fR, \fBarm710c\fR, \fBarm7100\fR,
6437 \&\fBarm7500\fR, \fBarm7500fe\fR, \fBarm7tdmi\fR, \fBarm7tdmi\-s\fR,
6438 \&\fBarm8\fR, \fBstrongarm\fR, \fBstrongarm110\fR, \fBstrongarm1100\fR,
6439 \&\fBarm8\fR, \fBarm810\fR, \fBarm9\fR, \fBarm9e\fR, \fBarm920\fR,
6440 \&\fBarm920t\fR, \fBarm922t\fR, \fBarm946e\-s\fR, \fBarm966e\-s\fR,
6441 \&\fBarm968e\-s\fR, \fBarm926ej\-s\fR, \fBarm940t\fR, \fBarm9tdmi\fR,
6442 \&\fBarm10tdmi\fR, \fBarm1020t\fR, \fBarm1026ej\-s\fR,
6443 \&\fBarm10e\fR, \fBarm1020e\fR, \fBarm1022e\fR,
6444 \&\fBarm1136j\-s\fR, \fBarm1136jf\-s\fR, \fBmpcore\fR, \fBmpcorenovfp\fR,
6445 \&\fBarm1176jz\-s\fR, \fBarm1176jzf\-s\fR, \fBxscale\fR, \fBiwmmxt\fR,
6446 \&\fBep9312\fR.
6447 .IP "\fB\-mtune=\fR\fIname\fR" 4
6448 .IX Item "-mtune=name"
6449 This option is very similar to the \fB\-mcpu=\fR option, except that
6450 instead of specifying the actual target processor type, and hence
6451 restricting which instructions can be used, it specifies that \s-1GCC\s0 should
6452 tune the performance of the code as if the target were of the type
6453 specified in this option, but still choosing the instructions that it
6454 will generate based on the cpu specified by a \fB\-mcpu=\fR option.
6455 For some \s-1ARM\s0 implementations better performance can be obtained by using
6456 this option.
6457 .IP "\fB\-march=\fR\fIname\fR" 4
6458 .IX Item "-march=name"
6459 This specifies the name of the target \s-1ARM\s0 architecture.  \s-1GCC\s0 uses this
6460 name to determine what kind of instructions it can emit when generating
6461 assembly code.  This option can be used in conjunction with or instead
6462 of the \fB\-mcpu=\fR option.  Permissible names are: \fBarmv2\fR,
6463 \&\fBarmv2a\fR, \fBarmv3\fR, \fBarmv3m\fR, \fBarmv4\fR, \fBarmv4t\fR,
6464 \&\fBarmv5\fR, \fBarmv5t\fR, \fBarmv5te\fR, \fBarmv6\fR, \fBarmv6j\fR,
6465 \&\fBiwmmxt\fR, \fBep9312\fR.
6466 .IP "\fB\-mfpu=\fR\fIname\fR" 4
6467 .IX Item "-mfpu=name"
6468 .PD 0
6469 .IP "\fB\-mfpe=\fR\fInumber\fR" 4
6470 .IX Item "-mfpe=number"
6471 .IP "\fB\-mfp=\fR\fInumber\fR" 4
6472 .IX Item "-mfp=number"
6473 .PD
6474 This specifies what floating point hardware (or hardware emulation) is
6475 available on the target.  Permissible names are: \fBfpa\fR, \fBfpe2\fR,
6476 \&\fBfpe3\fR, \fBmaverick\fR, \fBvfp\fR.  \fB\-mfp\fR and \fB\-mfpe\fR
6477 are synonyms for \fB\-mfpu\fR=\fBfpe\fR\fInumber\fR, for compatibility
6478 with older versions of \s-1GCC\s0.
6479 .Sp
6480 If \fB\-msoft\-float\fR is specified this specifies the format of
6481 floating point values.
6482 .IP "\fB\-mstructure\-size\-boundary=\fR\fIn\fR" 4
6483 .IX Item "-mstructure-size-boundary=n"
6484 The size of all structures and unions will be rounded up to a multiple
6485 of the number of bits set by this option.  Permissible values are 8, 32
6486 and 64.  The default value varies for different toolchains.  For the \s-1COFF\s0
6487 targeted toolchain the default value is 8.  A value of 64 is only allowed
6488 if the underlying \s-1ABI\s0 supports it.
6489 .Sp
6490 Specifying the larger number can produce faster, more efficient code, but
6491 can also increase the size of the program.  Different values are potentially
6492 incompatible.  Code compiled with one value cannot necessarily expect to
6493 work with code or libraries compiled with another value, if they exchange
6494 information using structures or unions.
6495 .IP "\fB\-mabort\-on\-noreturn\fR" 4
6496 .IX Item "-mabort-on-noreturn"
6497 Generate a call to the function \f(CW\*(C`abort\*(C'\fR at the end of a
6498 \&\f(CW\*(C`noreturn\*(C'\fR function.  It will be executed if the function tries to
6499 return.
6500 .IP "\fB\-mlong\-calls\fR" 4
6501 .IX Item "-mlong-calls"
6502 .PD 0
6503 .IP "\fB\-mno\-long\-calls\fR" 4
6504 .IX Item "-mno-long-calls"
6505 .PD
6506 Tells the compiler to perform function calls by first loading the
6507 address of the function into a register and then performing a subroutine
6508 call on this register.  This switch is needed if the target function
6509 will lie outside of the 64 megabyte addressing range of the offset based
6510 version of subroutine call instruction.
6511 .Sp
6512 Even if this switch is enabled, not all function calls will be turned
6513 into long calls.  The heuristic is that static functions, functions
6514 which have the \fBshort-call\fR attribute, functions that are inside
6515 the scope of a \fB#pragma no_long_calls\fR directive and functions whose
6516 definitions have already been compiled within the current compilation
6517 unit, will not be turned into long calls.  The exception to this rule is
6518 that weak function definitions, functions with the \fBlong-call\fR
6519 attribute or the \fBsection\fR attribute, and functions that are within
6520 the scope of a \fB#pragma long_calls\fR directive, will always be
6521 turned into long calls.
6522 .Sp
6523 This feature is not enabled by default.  Specifying
6524 \&\fB\-mno\-long\-calls\fR will restore the default behavior, as will
6525 placing the function calls within the scope of a \fB#pragma
6526 long_calls_off\fR directive.  Note these switches have no effect on how
6527 the compiler generates code to handle function calls via function
6528 pointers.
6529 .IP "\fB\-mnop\-fun\-dllimport\fR" 4
6530 .IX Item "-mnop-fun-dllimport"
6531 Disable support for the \f(CW\*(C`dllimport\*(C'\fR attribute.
6532 .IP "\fB\-msingle\-pic\-base\fR" 4
6533 .IX Item "-msingle-pic-base"
6534 Treat the register used for \s-1PIC\s0 addressing as read\-only, rather than
6535 loading it in the prologue for each function.  The run-time system is
6536 responsible for initializing this register with an appropriate value
6537 before execution begins.
6538 .IP "\fB\-mpic\-register=\fR\fIreg\fR" 4
6539 .IX Item "-mpic-register=reg"
6540 Specify the register to be used for \s-1PIC\s0 addressing.  The default is R10
6541 unless stack-checking is enabled, when R9 is used.
6542 .IP "\fB\-mcirrus\-fix\-invalid\-insns\fR" 4
6543 .IX Item "-mcirrus-fix-invalid-insns"
6544 Insert NOPs into the instruction stream to in order to work around
6545 problems with invalid Maverick instruction combinations.  This option
6546 is only valid if the \fB\-mcpu=ep9312\fR option has been used to
6547 enable generation of instructions for the Cirrus Maverick floating
6548 point co\-processor.  This option is not enabled by default, since the
6549 problem is only present in older Maverick implementations.  The default
6550 can be re-enabled by use of the \fB\-mno\-cirrus\-fix\-invalid\-insns\fR
6551 switch.
6552 .IP "\fB\-mpoke\-function\-name\fR" 4
6553 .IX Item "-mpoke-function-name"
6554 Write the name of each function into the text section, directly
6555 preceding the function prologue.  The generated code is similar to this:
6556 .Sp
6557 .Vb 9
6558 \&             t0
6559 \&                 .ascii "arm_poke_function_name", 0
6560 \&                 .align
6561 \&             t1
6562 \&                 .word 0xff000000 + (t1 - t0)
6563 \&             arm_poke_function_name
6564 \&                 mov     ip, sp
6565 \&                 stmfd   sp!, {fp, ip, lr, pc}
6566 \&                 sub     fp, ip, #4
6567 .Ve
6568 .Sp
6569 When performing a stack backtrace, code can inspect the value of
6570 \&\f(CW\*(C`pc\*(C'\fR stored at \f(CW\*(C`fp + 0\*(C'\fR.  If the trace function then looks at
6571 location \f(CW\*(C`pc \- 12\*(C'\fR and the top 8 bits are set, then we know that
6572 there is a function name embedded immediately preceding this location
6573 and has length \f(CW\*(C`((pc[\-3]) & 0xff000000)\*(C'\fR.
6574 .IP "\fB\-mthumb\fR" 4
6575 .IX Item "-mthumb"
6576 Generate code for the 16\-bit Thumb instruction set.  The default is to
6577 use the 32\-bit \s-1ARM\s0 instruction set.
6578 .IP "\fB\-mtpcs\-frame\fR" 4
6579 .IX Item "-mtpcs-frame"
6580 Generate a stack frame that is compliant with the Thumb Procedure Call
6581 Standard for all non-leaf functions.  (A leaf function is one that does
6582 not call any other functions.)  The default is \fB\-mno\-tpcs\-frame\fR.
6583 .IP "\fB\-mtpcs\-leaf\-frame\fR" 4
6584 .IX Item "-mtpcs-leaf-frame"
6585 Generate a stack frame that is compliant with the Thumb Procedure Call
6586 Standard for all leaf functions.  (A leaf function is one that does
6587 not call any other functions.)  The default is \fB\-mno\-apcs\-leaf\-frame\fR.
6588 .IP "\fB\-mcallee\-super\-interworking\fR" 4
6589 .IX Item "-mcallee-super-interworking"
6590 Gives all externally visible functions in the file being compiled an \s-1ARM\s0
6591 instruction set header which switches to Thumb mode before executing the
6592 rest of the function.  This allows these functions to be called from
6593 non-interworking code.
6594 .IP "\fB\-mcaller\-super\-interworking\fR" 4
6595 .IX Item "-mcaller-super-interworking"
6596 Allows calls via function pointers (including virtual functions) to
6597 execute correctly regardless of whether the target code has been
6598 compiled for interworking or not.  There is a small overhead in the cost
6599 of executing a function pointer if this option is enabled.
6600 .PP
6601 \fI\s-1AVR\s0 Options\fR
6602 .IX Subsection "AVR Options"
6603 .PP
6604 These options are defined for \s-1AVR\s0 implementations:
6605 .IP "\fB\-mmcu=\fR\fImcu\fR" 4
6606 .IX Item "-mmcu=mcu"
6607 Specify \s-1ATMEL\s0 \s-1AVR\s0 instruction set or \s-1MCU\s0 type.
6608 .Sp
6609 Instruction set avr1 is for the minimal \s-1AVR\s0 core, not supported by the C
6610 compiler, only for assembler programs (\s-1MCU\s0 types: at90s1200, attiny10,
6611 attiny11, attiny12, attiny15, attiny28).
6612 .Sp
6613 Instruction set avr2 (default) is for the classic \s-1AVR\s0 core with up to
6614 8K program memory space (\s-1MCU\s0 types: at90s2313, at90s2323, attiny22,
6615 at90s2333, at90s2343, at90s4414, at90s4433, at90s4434, at90s8515,
6616 at90c8534, at90s8535).
6617 .Sp
6618 Instruction set avr3 is for the classic \s-1AVR\s0 core with up to 128K program
6619 memory space (\s-1MCU\s0 types: atmega103, atmega603, at43usb320, at76c711).
6620 .Sp
6621 Instruction set avr4 is for the enhanced \s-1AVR\s0 core with up to 8K program
6622 memory space (\s-1MCU\s0 types: atmega8, atmega83, atmega85).
6623 .Sp
6624 Instruction set avr5 is for the enhanced \s-1AVR\s0 core with up to 128K program
6625 memory space (\s-1MCU\s0 types: atmega16, atmega161, atmega163, atmega32, atmega323,
6626 atmega64, atmega128, at43usb355, at94k).
6627 .IP "\fB\-msize\fR" 4
6628 .IX Item "-msize"
6629 Output instruction sizes to the asm file.
6630 .IP "\fB\-minit\-stack=\fR\fIN\fR" 4
6631 .IX Item "-minit-stack=N"
6632 Specify the initial stack address, which may be a symbol or numeric value,
6633 \&\fB_\|_stack\fR is the default.
6634 .IP "\fB\-mno\-interrupts\fR" 4
6635 .IX Item "-mno-interrupts"
6636 Generated code is not compatible with hardware interrupts.
6637 Code size will be smaller.
6638 .IP "\fB\-mcall\-prologues\fR" 4
6639 .IX Item "-mcall-prologues"
6640 Functions prologues/epilogues expanded as call to appropriate
6641 subroutines.  Code size will be smaller.
6642 .IP "\fB\-mno\-tablejump\fR" 4
6643 .IX Item "-mno-tablejump"
6644 Do not generate tablejump insns which sometimes increase code size.
6645 .IP "\fB\-mtiny\-stack\fR" 4
6646 .IX Item "-mtiny-stack"
6647 Change only the low 8 bits of the stack pointer.
6648 .IP "\fB\-mint8\fR" 4
6649 .IX Item "-mint8"
6650 Assume int to be 8 bit integer.  This affects the sizes of all types: A
6651 char will be 1 byte, an int will be 1 byte, an long will be 2 bytes
6652 and long long will be 4 bytes.  Please note that this option does not
6653 comply to the C standards, but it will provide you with smaller code
6654 size.
6655 .PP
6656 \fI\s-1CRIS\s0 Options\fR
6657 .IX Subsection "CRIS Options"
6658 .PP
6659 These options are defined specifically for the \s-1CRIS\s0 ports.
6660 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
6661 .IX Item "-march=architecture-type"
6662 .PD 0
6663 .IP "\fB\-mcpu=\fR\fIarchitecture-type\fR" 4
6664 .IX Item "-mcpu=architecture-type"
6665 .PD
6666 Generate code for the specified architecture.  The choices for
6667 \&\fIarchitecture-type\fR are \fBv3\fR, \fBv8\fR and \fBv10\fR for
6668 respectively \s-1ETRAX\s0\ 4, \s-1ETRAX\s0\ 100, and \s-1ETRAX\s0\ 100\ \s-1LX\s0.
6669 Default is \fBv0\fR except for cris\-axis\-linux\-gnu, where the default is
6670 \&\fBv10\fR.
6671 .IP "\fB\-mtune=\fR\fIarchitecture-type\fR" 4
6672 .IX Item "-mtune=architecture-type"
6673 Tune to \fIarchitecture-type\fR everything applicable about the generated
6674 code, except for the \s-1ABI\s0 and the set of available instructions.  The
6675 choices for \fIarchitecture-type\fR are the same as for
6676 \&\fB\-march=\fR\fIarchitecture-type\fR.
6677 .IP "\fB\-mmax\-stack\-frame=\fR\fIn\fR" 4
6678 .IX Item "-mmax-stack-frame=n"
6679 Warn when the stack frame of a function exceeds \fIn\fR bytes.
6680 .IP "\fB\-melinux\-stacksize=\fR\fIn\fR" 4
6681 .IX Item "-melinux-stacksize=n"
6682 Only available with the \fBcris-axis-aout\fR target.  Arranges for
6683 indications in the program to the kernel loader that the stack of the
6684 program should be set to \fIn\fR bytes.
6685 .IP "\fB\-metrax4\fR" 4
6686 .IX Item "-metrax4"
6687 .PD 0
6688 .IP "\fB\-metrax100\fR" 4
6689 .IX Item "-metrax100"
6690 .PD
6691 The options \fB\-metrax4\fR and \fB\-metrax100\fR are synonyms for
6692 \&\fB\-march=v3\fR and \fB\-march=v8\fR respectively.
6693 .IP "\fB\-mmul\-bug\-workaround\fR" 4
6694 .IX Item "-mmul-bug-workaround"
6695 .PD 0
6696 .IP "\fB\-mno\-mul\-bug\-workaround\fR" 4
6697 .IX Item "-mno-mul-bug-workaround"
6698 .PD
6699 Work around a bug in the \f(CW\*(C`muls\*(C'\fR and \f(CW\*(C`mulu\*(C'\fR instructions for \s-1CPU\s0
6700 models where it applies.  This option is active by default.
6701 .IP "\fB\-mpdebug\fR" 4
6702 .IX Item "-mpdebug"
6703 Enable CRIS-specific verbose debug-related information in the assembly
6704 code.  This option also has the effect to turn off the \fB#NO_APP\fR
6705 formatted-code indicator to the assembler at the beginning of the
6706 assembly file.
6707 .IP "\fB\-mcc\-init\fR" 4
6708 .IX Item "-mcc-init"
6709 Do not use condition-code results from previous instruction; always emit
6710 compare and test instructions before use of condition codes.
6711 .IP "\fB\-mno\-side\-effects\fR" 4
6712 .IX Item "-mno-side-effects"
6713 Do not emit instructions with side-effects in addressing modes other than
6714 post\-increment.
6715 .IP "\fB\-mstack\-align\fR" 4
6716 .IX Item "-mstack-align"
6717 .PD 0
6718 .IP "\fB\-mno\-stack\-align\fR" 4
6719 .IX Item "-mno-stack-align"
6720 .IP "\fB\-mdata\-align\fR" 4
6721 .IX Item "-mdata-align"
6722 .IP "\fB\-mno\-data\-align\fR" 4
6723 .IX Item "-mno-data-align"
6724 .IP "\fB\-mconst\-align\fR" 4
6725 .IX Item "-mconst-align"
6726 .IP "\fB\-mno\-const\-align\fR" 4
6727 .IX Item "-mno-const-align"
6728 .PD
6729 These options (no\-options) arranges (eliminate arrangements) for the
6730 stack\-frame, individual data and constants to be aligned for the maximum
6731 single data access size for the chosen \s-1CPU\s0 model.  The default is to
6732 arrange for 32\-bit alignment.  \s-1ABI\s0 details such as structure layout are
6733 not affected by these options.
6734 .IP "\fB\-m32\-bit\fR" 4
6735 .IX Item "-m32-bit"
6736 .PD 0
6737 .IP "\fB\-m16\-bit\fR" 4
6738 .IX Item "-m16-bit"
6739 .IP "\fB\-m8\-bit\fR" 4
6740 .IX Item "-m8-bit"
6741 .PD
6742 Similar to the stack\- data\- and const-align options above, these options
6743 arrange for stack\-frame, writable data and constants to all be 32\-bit,
6744 16\-bit or 8\-bit aligned.  The default is 32\-bit alignment.
6745 .IP "\fB\-mno\-prologue\-epilogue\fR" 4
6746 .IX Item "-mno-prologue-epilogue"
6747 .PD 0
6748 .IP "\fB\-mprologue\-epilogue\fR" 4
6749 .IX Item "-mprologue-epilogue"
6750 .PD
6751 With \fB\-mno\-prologue\-epilogue\fR, the normal function prologue and
6752 epilogue that sets up the stack-frame are omitted and no return
6753 instructions or return sequences are generated in the code.  Use this
6754 option only together with visual inspection of the compiled code: no
6755 warnings or errors are generated when call-saved registers must be saved,
6756 or storage for local variable needs to be allocated.
6757 .IP "\fB\-mno\-gotplt\fR" 4
6758 .IX Item "-mno-gotplt"
6759 .PD 0
6760 .IP "\fB\-mgotplt\fR" 4
6761 .IX Item "-mgotplt"
6762 .PD
6763 With \fB\-fpic\fR and \fB\-fPIC\fR, don't generate (do generate)
6764 instruction sequences that load addresses for functions from the \s-1PLT\s0 part
6765 of the \s-1GOT\s0 rather than (traditional on other architectures) calls to the
6766 \&\s-1PLT\s0.  The default is \fB\-mgotplt\fR.
6767 .IP "\fB\-maout\fR" 4
6768 .IX Item "-maout"
6769 Legacy no-op option only recognized with the cris-axis-aout target.
6770 .IP "\fB\-melf\fR" 4
6771 .IX Item "-melf"
6772 Legacy no-op option only recognized with the cris-axis-elf and
6773 cris-axis-linux-gnu targets.
6774 .IP "\fB\-melinux\fR" 4
6775 .IX Item "-melinux"
6776 Only recognized with the cris-axis-aout target, where it selects a
6777 GNU/linux\-like multilib, include files and instruction set for
6778 \&\fB\-march=v8\fR.
6779 .IP "\fB\-mlinux\fR" 4
6780 .IX Item "-mlinux"
6781 Legacy no-op option only recognized with the cris-axis-linux-gnu target.
6782 .IP "\fB\-sim\fR" 4
6783 .IX Item "-sim"
6784 This option, recognized for the cris-axis-aout and cris-axis-elf arranges
6785 to link with input-output functions from a simulator library.  Code,
6786 initialized data and zero-initialized data are allocated consecutively.
6787 .IP "\fB\-sim2\fR" 4
6788 .IX Item "-sim2"
6789 Like \fB\-sim\fR, but pass linker options to locate initialized data at
6790 0x40000000 and zero-initialized data at 0x80000000.
6791 .PP
6792 \fIDarwin Options\fR
6793 .IX Subsection "Darwin Options"
6794 .PP
6795 These options are defined for all architectures running the Darwin operating
6796 system.
6797 .PP
6798 \&\s-1FSF\s0 \s-1GCC\s0 on Darwin does not create ``fat'' object files; it will create
6799 an object file for the single architecture that it was built to
6800 target.  Apple's \s-1GCC\s0 on Darwin does create ``fat'' files if multiple
6801 \&\fB\-arch\fR options are used; it does so by running the compiler or
6802 linker multiple times and joining the results together with
6803 \&\fIlipo\fR.
6804 .PP
6805 The subtype of the file created (like \fBppc7400\fR or \fBppc970\fR or
6806 \&\fBi686\fR) is determined by the flags that specify the \s-1ISA\s0
6807 that \s-1GCC\s0 is targetting, like \fB\-mcpu\fR or \fB\-march\fR.  The
6808 \&\fB\-force_cpusubtype_ALL\fR option can be used to override this.
6809 .PP
6810 The Darwin tools vary in their behavior when presented with an \s-1ISA\s0
6811 mismatch.  The assembler, \fIas\fR, will only permit instructions to
6812 be used that are valid for the subtype of the file it is generating,
6813 so you cannot put 64\-bit instructions in an \fBppc750\fR object file.
6814 The linker for shared libraries, \fI/usr/bin/libtool\fR, will fail
6815 and print an error if asked to create a shared library with a less
6816 restrictive subtype than its input files (for instance, trying to put
6817 a \fBppc970\fR object file in a \fBppc7400\fR library).  The linker
6818 for executables, \fIld\fR, will quietly give the executable the most
6819 restrictive subtype of any of its input files.
6820 .IP "\fB\-F\fR\fIdir\fR" 4
6821 .IX Item "-Fdir"
6822 Add the framework directory \fIdir\fR to the head of the list of
6823 directories to be searched for header files.  These directories are
6824 interleaved with those specified by \fB\-I\fR options and are
6825 scanned in a left-to-right order.
6826 .Sp
6827 A framework directory is a directory with frameworks in it.  A
6828 framework is a directory with a \fB\*(L"Headers\*(R"\fR and/or
6829 \&\fB\*(L"PrivateHeaders\*(R"\fR directory contained directly in it that ends
6830 in \fB\*(L".framework\*(R"\fR.  The name of a framework is the name of this
6831 directory excluding the \fB\*(L".framework\*(R"\fR.  Headers associated with
6832 the framework are found in one of those two directories, with
6833 \&\fB\*(L"Headers\*(R"\fR being searched first.  A subframework is a framework
6834 directory that is in a framework's \fB\*(L"Frameworks\*(R"\fR directory.
6835 Includes of subframework headers can only appear in a header of a
6836 framework that contains the subframework, or in a sibling subframework
6837 header.  Two subframeworks are siblings if they occur in the same
6838 framework.  A subframework should not have the same name as a
6839 framework, a warning will be issued if this is violated.  Currently a
6840 subframework cannot have subframeworks, in the future, the mechanism
6841 may be extended to support this.  The standard frameworks can be found
6842 in \fB\*(L"/System/Library/Frameworks\*(R"\fR and
6843 \&\fB\*(L"/Library/Frameworks\*(R"\fR.  An example include looks like
6844 \&\f(CW\*(C`#include <Framework/header.h>\*(C'\fR, where \fBFramework\fR denotes
6845 the name of the framework and header.h is found in the
6846 \&\fB\*(L"PrivateHeaders\*(R"\fR or \fB\*(L"Headers\*(R"\fR directory.
6847 .IP "\fB\-gused\fR" 4
6848 .IX Item "-gused"
6849 Emit debugging information for symbols that are used.  For \s-1STABS\s0
6850 debugging format, this enables \fB\-feliminate\-unused\-debug\-symbols\fR.
6851 This is by default \s-1ON\s0.
6852 .IP "\fB\-gfull\fR" 4
6853 .IX Item "-gfull"
6854 Emit debugging information for all symbols and types.
6855 .IP "\fB\-mone\-byte\-bool\fR" 4
6856 .IX Item "-mone-byte-bool"
6857 Override the defaults for \fBbool\fR so that \fBsizeof(bool)==1\fR.
6858 By default \fBsizeof(bool)\fR is \fB4\fR when compiling for
6859 Darwin/PowerPC and \fB1\fR when compiling for Darwin/x86, so this
6860 option has no effect on x86.
6861 .Sp
6862 \&\fBWarning:\fR The \fB\-mone\-byte\-bool\fR switch causes \s-1GCC\s0
6863 to generate code that is not binary compatible with code generated
6864 without that switch.  Using this switch may require recompiling all
6865 other modules in a program, including system libraries.  Use this
6866 switch to conform to a non-default data model.
6867 .IP "\fB\-mfix\-and\-continue\fR" 4
6868 .IX Item "-mfix-and-continue"
6869 .PD 0
6870 .IP "\fB\-ffix\-and\-continue\fR" 4
6871 .IX Item "-ffix-and-continue"
6872 .IP "\fB\-findirect\-data\fR" 4
6873 .IX Item "-findirect-data"
6874 .PD
6875 Generate code suitable for fast turn around development.  Needed to
6876 enable gdb to dynamically load \f(CW\*(C`.o\*(C'\fR files into already running
6877 programs.  \fB\-findirect\-data\fR and \fB\-ffix\-and\-continue\fR
6878 are provided for backwards compatibility.
6879 .IP "\fB\-all_load\fR" 4
6880 .IX Item "-all_load"
6881 Loads all members of static archive libraries.
6882 See man \fIld\fR\|(1) for more information.
6883 .IP "\fB\-arch_errors_fatal\fR" 4
6884 .IX Item "-arch_errors_fatal"
6885 Cause the errors having to do with files that have the wrong architecture
6886 to be fatal.
6887 .IP "\fB\-bind_at_load\fR" 4
6888 .IX Item "-bind_at_load"
6889 Causes the output file to be marked such that the dynamic linker will
6890 bind all undefined references when the file is loaded or launched.
6891 .IP "\fB\-bundle\fR" 4
6892 .IX Item "-bundle"
6893 Produce a Mach-o bundle format file.
6894 See man \fIld\fR\|(1) for more information.
6895 .IP "\fB\-bundle_loader\fR \fIexecutable\fR" 4
6896 .IX Item "-bundle_loader executable"
6897 This option specifies the \fIexecutable\fR that will be loading the build
6898 output file being linked.  See man \fIld\fR\|(1) for more information.
6899 .IP "\fB\-dynamiclib\fR" 4
6900 .IX Item "-dynamiclib"
6901 When passed this option, \s-1GCC\s0 will produce a dynamic library instead of
6902 an executable when linking, using the Darwin \fIlibtool\fR command.
6903 .IP "\fB\-force_cpusubtype_ALL\fR" 4
6904 .IX Item "-force_cpusubtype_ALL"
6905 This causes \s-1GCC\s0's output file to have the \fI\s-1ALL\s0\fR subtype, instead of
6906 one controlled by the \fB\-mcpu\fR or \fB\-march\fR option.
6907 .IP "\fB\-allowable_client\fR  \fIclient_name\fR" 4
6908 .IX Item "-allowable_client  client_name"
6909 .PD 0
6910 .IP "\fB\-client_name\fR" 4
6911 .IX Item "-client_name"
6912 .IP "\fB\-compatibility_version\fR" 4
6913 .IX Item "-compatibility_version"
6914 .IP "\fB\-current_version\fR" 4
6915 .IX Item "-current_version"
6916 .IP "\fB\-dead_strip\fR" 4
6917 .IX Item "-dead_strip"
6918 .IP "\fB\-dependency\-file\fR" 4
6919 .IX Item "-dependency-file"
6920 .IP "\fB\-dylib_file\fR" 4
6921 .IX Item "-dylib_file"
6922 .IP "\fB\-dylinker_install_name\fR" 4
6923 .IX Item "-dylinker_install_name"
6924 .IP "\fB\-dynamic\fR" 4
6925 .IX Item "-dynamic"
6926 .IP "\fB\-exported_symbols_list\fR" 4
6927 .IX Item "-exported_symbols_list"
6928 .IP "\fB\-filelist\fR" 4
6929 .IX Item "-filelist"
6930 .IP "\fB\-flat_namespace\fR" 4
6931 .IX Item "-flat_namespace"
6932 .IP "\fB\-force_flat_namespace\fR" 4
6933 .IX Item "-force_flat_namespace"
6934 .IP "\fB\-headerpad_max_install_names\fR" 4
6935 .IX Item "-headerpad_max_install_names"
6936 .IP "\fB\-image_base\fR" 4
6937 .IX Item "-image_base"
6938 .IP "\fB\-init\fR" 4
6939 .IX Item "-init"
6940 .IP "\fB\-install_name\fR" 4
6941 .IX Item "-install_name"
6942 .IP "\fB\-keep_private_externs\fR" 4
6943 .IX Item "-keep_private_externs"
6944 .IP "\fB\-multi_module\fR" 4
6945 .IX Item "-multi_module"
6946 .IP "\fB\-multiply_defined\fR" 4
6947 .IX Item "-multiply_defined"
6948 .IP "\fB\-multiply_defined_unused\fR" 4
6949 .IX Item "-multiply_defined_unused"
6950 .IP "\fB\-noall_load\fR" 4
6951 .IX Item "-noall_load"
6952 .IP "\fB\-no_dead_strip_inits_and_terms\fR" 4
6953 .IX Item "-no_dead_strip_inits_and_terms"
6954 .IP "\fB\-nofixprebinding\fR" 4
6955 .IX Item "-nofixprebinding"
6956 .IP "\fB\-nomultidefs\fR" 4
6957 .IX Item "-nomultidefs"
6958 .IP "\fB\-noprebind\fR" 4
6959 .IX Item "-noprebind"
6960 .IP "\fB\-noseglinkedit\fR" 4
6961 .IX Item "-noseglinkedit"
6962 .IP "\fB\-pagezero_size\fR" 4
6963 .IX Item "-pagezero_size"
6964 .IP "\fB\-prebind\fR" 4
6965 .IX Item "-prebind"
6966 .IP "\fB\-prebind_all_twolevel_modules\fR" 4
6967 .IX Item "-prebind_all_twolevel_modules"
6968 .IP "\fB\-private_bundle\fR" 4
6969 .IX Item "-private_bundle"
6970 .IP "\fB\-read_only_relocs\fR" 4
6971 .IX Item "-read_only_relocs"
6972 .IP "\fB\-sectalign\fR" 4
6973 .IX Item "-sectalign"
6974 .IP "\fB\-sectobjectsymbols\fR" 4
6975 .IX Item "-sectobjectsymbols"
6976 .IP "\fB\-whyload\fR" 4
6977 .IX Item "-whyload"
6978 .IP "\fB\-seg1addr\fR" 4
6979 .IX Item "-seg1addr"
6980 .IP "\fB\-sectcreate\fR" 4
6981 .IX Item "-sectcreate"
6982 .IP "\fB\-sectobjectsymbols\fR" 4
6983 .IX Item "-sectobjectsymbols"
6984 .IP "\fB\-sectorder\fR" 4
6985 .IX Item "-sectorder"
6986 .IP "\fB\-segaddr\fR" 4
6987 .IX Item "-segaddr"
6988 .IP "\fB\-segs_read_only_addr\fR" 4
6989 .IX Item "-segs_read_only_addr"
6990 .IP "\fB\-segs_read_write_addr\fR" 4
6991 .IX Item "-segs_read_write_addr"
6992 .IP "\fB\-seg_addr_table\fR" 4
6993 .IX Item "-seg_addr_table"
6994 .IP "\fB\-seg_addr_table_filename\fR" 4
6995 .IX Item "-seg_addr_table_filename"
6996 .IP "\fB\-seglinkedit\fR" 4
6997 .IX Item "-seglinkedit"
6998 .IP "\fB\-segprot\fR" 4
6999 .IX Item "-segprot"
7000 .IP "\fB\-segs_read_only_addr\fR" 4
7001 .IX Item "-segs_read_only_addr"
7002 .IP "\fB\-segs_read_write_addr\fR" 4
7003 .IX Item "-segs_read_write_addr"
7004 .IP "\fB\-single_module\fR" 4
7005 .IX Item "-single_module"
7006 .IP "\fB\-static\fR" 4
7007 .IX Item "-static"
7008 .IP "\fB\-sub_library\fR" 4
7009 .IX Item "-sub_library"
7010 .IP "\fB\-sub_umbrella\fR" 4
7011 .IX Item "-sub_umbrella"
7012 .IP "\fB\-twolevel_namespace\fR" 4
7013 .IX Item "-twolevel_namespace"
7014 .IP "\fB\-umbrella\fR" 4
7015 .IX Item "-umbrella"
7016 .IP "\fB\-undefined\fR" 4
7017 .IX Item "-undefined"
7018 .IP "\fB\-unexported_symbols_list\fR" 4
7019 .IX Item "-unexported_symbols_list"
7020 .IP "\fB\-weak_reference_mismatches\fR" 4
7021 .IX Item "-weak_reference_mismatches"
7022 .IP "\fB\-whatsloaded\fR" 4
7023 .IX Item "-whatsloaded"
7024 .PD
7025 These options are passed to the Darwin linker.  The Darwin linker man page
7026 describes them in detail.
7027 .PP
7028 \fI\s-1DEC\s0 Alpha Options\fR
7029 .IX Subsection "DEC Alpha Options"
7030 .PP
7031 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha implementations:
7032 .IP "\fB\-mno\-soft\-float\fR" 4
7033 .IX Item "-mno-soft-float"
7034 .PD 0
7035 .IP "\fB\-msoft\-float\fR" 4
7036 .IX Item "-msoft-float"
7037 .PD
7038 Use (do not use) the hardware floating-point instructions for
7039 floating-point operations.  When \fB\-msoft\-float\fR is specified,
7040 functions in \fIlibgcc.a\fR will be used to perform floating-point
7041 operations.  Unless they are replaced by routines that emulate the
7042 floating-point operations, or compiled in such a way as to call such
7043 emulations routines, these routines will issue floating-point
7044 operations.   If you are compiling for an Alpha without floating-point
7045 operations, you must ensure that the library is built so as not to call
7046 them.
7047 .Sp
7048 Note that Alpha implementations without floating-point operations are
7049 required to have floating-point registers.
7050 .IP "\fB\-mfp\-reg\fR" 4
7051 .IX Item "-mfp-reg"
7052 .PD 0
7053 .IP "\fB\-mno\-fp\-regs\fR" 4
7054 .IX Item "-mno-fp-regs"
7055 .PD
7056 Generate code that uses (does not use) the floating-point register set.
7057 \&\fB\-mno\-fp\-regs\fR implies \fB\-msoft\-float\fR.  If the floating-point
7058 register set is not used, floating point operands are passed in integer
7059 registers as if they were integers and floating-point results are passed
7060 in \f(CW$0\fR instead of \f(CW$f0\fR.  This is a non-standard calling sequence,
7061 so any function with a floating-point argument or return value called by code
7062 compiled with \fB\-mno\-fp\-regs\fR must also be compiled with that
7063 option.
7064 .Sp
7065 A typical use of this option is building a kernel that does not use,
7066 and hence need not save and restore, any floating-point registers.
7067 .IP "\fB\-mieee\fR" 4
7068 .IX Item "-mieee"
7069 The Alpha architecture implements floating-point hardware optimized for
7070 maximum performance.  It is mostly compliant with the \s-1IEEE\s0 floating
7071 point standard.  However, for full compliance, software assistance is
7072 required.  This option generates code fully \s-1IEEE\s0 compliant code
7073 \&\fIexcept\fR that the \fIinexact-flag\fR is not maintained (see below).
7074 If this option is turned on, the preprocessor macro \f(CW\*(C`_IEEE_FP\*(C'\fR is
7075 defined during compilation.  The resulting code is less efficient but is
7076 able to correctly support denormalized numbers and exceptional \s-1IEEE\s0
7077 values such as not-a-number and plus/minus infinity.  Other Alpha
7078 compilers call this option \fB\-ieee_with_no_inexact\fR.
7079 .IP "\fB\-mieee\-with\-inexact\fR" 4
7080 .IX Item "-mieee-with-inexact"
7081 This is like \fB\-mieee\fR except the generated code also maintains
7082 the \s-1IEEE\s0 \fIinexact-flag\fR.  Turning on this option causes the
7083 generated code to implement fully-compliant \s-1IEEE\s0 math.  In addition to
7084 \&\f(CW\*(C`_IEEE_FP\*(C'\fR, \f(CW\*(C`_IEEE_FP_EXACT\*(C'\fR is defined as a preprocessor
7085 macro.  On some Alpha implementations the resulting code may execute
7086 significantly slower than the code generated by default.  Since there is
7087 very little code that depends on the \fIinexact-flag\fR, you should
7088 normally not specify this option.  Other Alpha compilers call this
7089 option \fB\-ieee_with_inexact\fR.
7090 .IP "\fB\-mfp\-trap\-mode=\fR\fItrap-mode\fR" 4
7091 .IX Item "-mfp-trap-mode=trap-mode"
7092 This option controls what floating-point related traps are enabled.
7093 Other Alpha compilers call this option \fB\-fptm\fR \fItrap-mode\fR.
7094 The trap mode can be set to one of four values:
7095 .RS 4
7096 .IP "\fBn\fR" 4
7097 .IX Item "n"
7098 This is the default (normal) setting.  The only traps that are enabled
7099 are the ones that cannot be disabled in software (e.g., division by zero
7100 trap).
7101 .IP "\fBu\fR" 4
7102 .IX Item "u"
7103 In addition to the traps enabled by \fBn\fR, underflow traps are enabled
7104 as well.
7105 .IP "\fBsu\fR" 4
7106 .IX Item "su"
7107 Like \fBsu\fR, but the instructions are marked to be safe for software
7108 completion (see Alpha architecture manual for details).
7109 .IP "\fBsui\fR" 4
7110 .IX Item "sui"
7111 Like \fBsu\fR, but inexact traps are enabled as well.
7112 .RE
7113 .RS 4
7114 .RE
7115 .IP "\fB\-mfp\-rounding\-mode=\fR\fIrounding-mode\fR" 4
7116 .IX Item "-mfp-rounding-mode=rounding-mode"
7117 Selects the \s-1IEEE\s0 rounding mode.  Other Alpha compilers call this option
7118 \&\fB\-fprm\fR \fIrounding-mode\fR.  The \fIrounding-mode\fR can be one
7119 of:
7120 .RS 4
7121 .IP "\fBn\fR" 4
7122 .IX Item "n"
7123 Normal \s-1IEEE\s0 rounding mode.  Floating point numbers are rounded towards
7124 the nearest machine number or towards the even machine number in case
7125 of a tie.
7126 .IP "\fBm\fR" 4
7127 .IX Item "m"
7128 Round towards minus infinity.
7129 .IP "\fBc\fR" 4
7130 .IX Item "c"
7131 Chopped rounding mode.  Floating point numbers are rounded towards zero.
7132 .IP "\fBd\fR" 4
7133 .IX Item "d"
7134 Dynamic rounding mode.  A field in the floating point control register
7135 (\fIfpcr\fR, see Alpha architecture reference manual) controls the
7136 rounding mode in effect.  The C library initializes this register for
7137 rounding towards plus infinity.  Thus, unless your program modifies the
7138 \&\fIfpcr\fR, \fBd\fR corresponds to round towards plus infinity.
7139 .RE
7140 .RS 4
7141 .RE
7142 .IP "\fB\-mtrap\-precision=\fR\fItrap-precision\fR" 4
7143 .IX Item "-mtrap-precision=trap-precision"
7144 In the Alpha architecture, floating point traps are imprecise.  This
7145 means without software assistance it is impossible to recover from a
7146 floating trap and program execution normally needs to be terminated.
7147 \&\s-1GCC\s0 can generate code that can assist operating system trap handlers
7148 in determining the exact location that caused a floating point trap.
7149 Depending on the requirements of an application, different levels of
7150 precisions can be selected:
7151 .RS 4
7152 .IP "\fBp\fR" 4
7153 .IX Item "p"
7154 Program precision.  This option is the default and means a trap handler
7155 can only identify which program caused a floating point exception.
7156 .IP "\fBf\fR" 4
7157 .IX Item "f"
7158 Function precision.  The trap handler can determine the function that
7159 caused a floating point exception.
7160 .IP "\fBi\fR" 4
7161 .IX Item "i"
7162 Instruction precision.  The trap handler can determine the exact
7163 instruction that caused a floating point exception.
7164 .RE
7165 .RS 4
7166 .Sp
7167 Other Alpha compilers provide the equivalent options called
7168 \&\fB\-scope_safe\fR and \fB\-resumption_safe\fR.
7169 .RE
7170 .IP "\fB\-mieee\-conformant\fR" 4
7171 .IX Item "-mieee-conformant"
7172 This option marks the generated code as \s-1IEEE\s0 conformant.  You must not
7173 use this option unless you also specify \fB\-mtrap\-precision=i\fR and either
7174 \&\fB\-mfp\-trap\-mode=su\fR or \fB\-mfp\-trap\-mode=sui\fR.  Its only effect
7175 is to emit the line \fB.eflag 48\fR in the function prologue of the
7176 generated assembly file.  Under \s-1DEC\s0 Unix, this has the effect that
7177 IEEE-conformant math library routines will be linked in.
7178 .IP "\fB\-mbuild\-constants\fR" 4
7179 .IX Item "-mbuild-constants"
7180 Normally \s-1GCC\s0 examines a 32\- or 64\-bit integer constant to
7181 see if it can construct it from smaller constants in two or three
7182 instructions.  If it cannot, it will output the constant as a literal and
7183 generate code to load it from the data segment at runtime.
7184 .Sp
7185 Use this option to require \s-1GCC\s0 to construct \fIall\fR integer constants
7186 using code, even if it takes more instructions (the maximum is six).
7187 .Sp
7188 You would typically use this option to build a shared library dynamic
7189 loader.  Itself a shared library, it must relocate itself in memory
7190 before it can find the variables and constants in its own data segment.
7191 .IP "\fB\-malpha\-as\fR" 4
7192 .IX Item "-malpha-as"
7193 .PD 0
7194 .IP "\fB\-mgas\fR" 4
7195 .IX Item "-mgas"
7196 .PD
7197 Select whether to generate code to be assembled by the vendor-supplied
7198 assembler (\fB\-malpha\-as\fR) or by the \s-1GNU\s0 assembler \fB\-mgas\fR.
7199 .IP "\fB\-mbwx\fR" 4
7200 .IX Item "-mbwx"
7201 .PD 0
7202 .IP "\fB\-mno\-bwx\fR" 4
7203 .IX Item "-mno-bwx"
7204 .IP "\fB\-mcix\fR" 4
7205 .IX Item "-mcix"
7206 .IP "\fB\-mno\-cix\fR" 4
7207 .IX Item "-mno-cix"
7208 .IP "\fB\-mfix\fR" 4
7209 .IX Item "-mfix"
7210 .IP "\fB\-mno\-fix\fR" 4
7211 .IX Item "-mno-fix"
7212 .IP "\fB\-mmax\fR" 4
7213 .IX Item "-mmax"
7214 .IP "\fB\-mno\-max\fR" 4
7215 .IX Item "-mno-max"
7216 .PD
7217 Indicate whether \s-1GCC\s0 should generate code to use the optional \s-1BWX\s0,
7218 \&\s-1CIX\s0, \s-1FIX\s0 and \s-1MAX\s0 instruction sets.  The default is to use the instruction
7219 sets supported by the \s-1CPU\s0 type specified via \fB\-mcpu=\fR option or that
7220 of the \s-1CPU\s0 on which \s-1GCC\s0 was built if none was specified.
7221 .IP "\fB\-mfloat\-vax\fR" 4
7222 .IX Item "-mfloat-vax"
7223 .PD 0
7224 .IP "\fB\-mfloat\-ieee\fR" 4
7225 .IX Item "-mfloat-ieee"
7226 .PD
7227 Generate code that uses (does not use) \s-1VAX\s0 F and G floating point
7228 arithmetic instead of \s-1IEEE\s0 single and double precision.
7229 .IP "\fB\-mexplicit\-relocs\fR" 4
7230 .IX Item "-mexplicit-relocs"
7231 .PD 0
7232 .IP "\fB\-mno\-explicit\-relocs\fR" 4
7233 .IX Item "-mno-explicit-relocs"
7234 .PD
7235 Older Alpha assemblers provided no way to generate symbol relocations
7236 except via assembler macros.  Use of these macros does not allow
7237 optimal instruction scheduling.  \s-1GNU\s0 binutils as of version 2.12
7238 supports a new syntax that allows the compiler to explicitly mark
7239 which relocations should apply to which instructions.  This option
7240 is mostly useful for debugging, as \s-1GCC\s0 detects the capabilities of
7241 the assembler when it is built and sets the default accordingly.
7242 .IP "\fB\-msmall\-data\fR" 4
7243 .IX Item "-msmall-data"
7244 .PD 0
7245 .IP "\fB\-mlarge\-data\fR" 4
7246 .IX Item "-mlarge-data"
7247 .PD
7248 When \fB\-mexplicit\-relocs\fR is in effect, static data is
7249 accessed via \fIgp-relative\fR relocations.  When \fB\-msmall\-data\fR
7250 is used, objects 8 bytes long or smaller are placed in a \fIsmall data area\fR
7251 (the \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR sections) and are accessed via
7252 16\-bit relocations off of the \f(CW$gp\fR register.  This limits the
7253 size of the small data area to 64KB, but allows the variables to be
7254 directly accessed via a single instruction.
7255 .Sp
7256 The default is \fB\-mlarge\-data\fR.  With this option the data area
7257 is limited to just below 2GB.  Programs that require more than 2GB of
7258 data must use \f(CW\*(C`malloc\*(C'\fR or \f(CW\*(C`mmap\*(C'\fR to allocate the data in the
7259 heap instead of in the program's data segment.
7260 .Sp
7261 When generating code for shared libraries, \fB\-fpic\fR implies
7262 \&\fB\-msmall\-data\fR and \fB\-fPIC\fR implies \fB\-mlarge\-data\fR.
7263 .IP "\fB\-msmall\-text\fR" 4
7264 .IX Item "-msmall-text"
7265 .PD 0
7266 .IP "\fB\-mlarge\-text\fR" 4
7267 .IX Item "-mlarge-text"
7268 .PD
7269 When \fB\-msmall\-text\fR is used, the compiler assumes that the
7270 code of the entire program (or shared library) fits in 4MB, and is
7271 thus reachable with a branch instruction.  When \fB\-msmall\-data\fR
7272 is used, the compiler can assume that all local symbols share the
7273 same \f(CW$gp\fR value, and thus reduce the number of instructions
7274 required for a function call from 4 to 1.
7275 .Sp
7276 The default is \fB\-mlarge\-text\fR.
7277 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
7278 .IX Item "-mcpu=cpu_type"
7279 Set the instruction set and instruction scheduling parameters for
7280 machine type \fIcpu_type\fR.  You can specify either the \fB\s-1EV\s0\fR
7281 style name or the corresponding chip number.  \s-1GCC\s0 supports scheduling
7282 parameters for the \s-1EV4\s0, \s-1EV5\s0 and \s-1EV6\s0 family of processors and will
7283 choose the default values for the instruction set from the processor
7284 you specify.  If you do not specify a processor type, \s-1GCC\s0 will default
7285 to the processor on which the compiler was built.
7286 .Sp
7287 Supported values for \fIcpu_type\fR are
7288 .RS 4
7289 .IP "\fBev4\fR" 4
7290 .IX Item "ev4"
7291 .PD 0
7292 .IP "\fBev45\fR" 4
7293 .IX Item "ev45"
7294 .IP "\fB21064\fR" 4
7295 .IX Item "21064"
7296 .PD
7297 Schedules as an \s-1EV4\s0 and has no instruction set extensions.
7298 .IP "\fBev5\fR" 4
7299 .IX Item "ev5"
7300 .PD 0
7301 .IP "\fB21164\fR" 4
7302 .IX Item "21164"
7303 .PD
7304 Schedules as an \s-1EV5\s0 and has no instruction set extensions.
7305 .IP "\fBev56\fR" 4
7306 .IX Item "ev56"
7307 .PD 0
7308 .IP "\fB21164a\fR" 4
7309 .IX Item "21164a"
7310 .PD
7311 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 extension.
7312 .IP "\fBpca56\fR" 4
7313 .IX Item "pca56"
7314 .PD 0
7315 .IP "\fB21164pc\fR" 4
7316 .IX Item "21164pc"
7317 .IP "\fB21164PC\fR" 4
7318 .IX Item "21164PC"
7319 .PD
7320 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 and \s-1MAX\s0 extensions.
7321 .IP "\fBev6\fR" 4
7322 .IX Item "ev6"
7323 .PD 0
7324 .IP "\fB21264\fR" 4
7325 .IX Item "21264"
7326 .PD
7327 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
7328 .IP "\fBev67\fR" 4
7329 .IX Item "ev67"
7330 .PD 0
7331 .IP "\fB21264a\fR" 4
7332 .IX Item "21264a"
7333 .PD
7334 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1CIX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
7335 .RE
7336 .RS 4
7337 .RE
7338 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
7339 .IX Item "-mtune=cpu_type"
7340 Set only the instruction scheduling parameters for machine type
7341 \&\fIcpu_type\fR.  The instruction set is not changed.
7342 .IP "\fB\-mmemory\-latency=\fR\fItime\fR" 4
7343 .IX Item "-mmemory-latency=time"
7344 Sets the latency the scheduler should assume for typical memory
7345 references as seen by the application.  This number is highly
7346 dependent on the memory access patterns used by the application
7347 and the size of the external cache on the machine.
7348 .Sp
7349 Valid options for \fItime\fR are
7350 .RS 4
7351 .IP "\fInumber\fR" 4
7352 .IX Item "number"
7353 A decimal number representing clock cycles.
7354 .IP "\fBL1\fR" 4
7355 .IX Item "L1"
7356 .PD 0
7357 .IP "\fBL2\fR" 4
7358 .IX Item "L2"
7359 .IP "\fBL3\fR" 4
7360 .IX Item "L3"
7361 .IP "\fBmain\fR" 4
7362 .IX Item "main"
7363 .PD
7364 The compiler contains estimates of the number of clock cycles for
7365 ``typical'' \s-1EV4\s0 & \s-1EV5\s0 hardware for the Level 1, 2 & 3 caches
7366 (also called Dcache, Scache, and Bcache), as well as to main memory.
7367 Note that L3 is only valid for \s-1EV5\s0.
7368 .RE
7369 .RS 4
7370 .RE
7371 .PP
7372 \fI\s-1DEC\s0 Alpha/VMS Options\fR
7373 .IX Subsection "DEC Alpha/VMS Options"
7374 .PP
7375 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha/VMS implementations:
7376 .IP "\fB\-mvms\-return\-codes\fR" 4
7377 .IX Item "-mvms-return-codes"
7378 Return \s-1VMS\s0 condition codes from main.  The default is to return \s-1POSIX\s0
7379 style condition (e.g. error) codes.
7380 .PP
7381 \fI\s-1FRV\s0 Options\fR
7382 .IX Subsection "FRV Options"
7383 .IP "\fB\-mgpr\-32\fR" 4
7384 .IX Item "-mgpr-32"
7385 Only use the first 32 general purpose registers.
7386 .IP "\fB\-mgpr\-64\fR" 4
7387 .IX Item "-mgpr-64"
7388 Use all 64 general purpose registers.
7389 .IP "\fB\-mfpr\-32\fR" 4
7390 .IX Item "-mfpr-32"
7391 Use only the first 32 floating point registers.
7392 .IP "\fB\-mfpr\-64\fR" 4
7393 .IX Item "-mfpr-64"
7394 Use all 64 floating point registers
7395 .IP "\fB\-mhard\-float\fR" 4
7396 .IX Item "-mhard-float"
7397 Use hardware instructions for floating point operations.
7398 .IP "\fB\-msoft\-float\fR" 4
7399 .IX Item "-msoft-float"
7400 Use library routines for floating point operations.
7401 .IP "\fB\-malloc\-cc\fR" 4
7402 .IX Item "-malloc-cc"
7403 Dynamically allocate condition code registers.
7404 .IP "\fB\-mfixed\-cc\fR" 4
7405 .IX Item "-mfixed-cc"
7406 Do not try to dynamically allocate condition code registers, only
7407 use \f(CW\*(C`icc0\*(C'\fR and \f(CW\*(C`fcc0\*(C'\fR.
7408 .IP "\fB\-mdword\fR" 4
7409 .IX Item "-mdword"
7410 Change \s-1ABI\s0 to use double word insns.
7411 .IP "\fB\-mno\-dword\fR" 4
7412 .IX Item "-mno-dword"
7413 Do not use double word instructions.
7414 .IP "\fB\-mdouble\fR" 4
7415 .IX Item "-mdouble"
7416 Use floating point double instructions.
7417 .IP "\fB\-mno\-double\fR" 4
7418 .IX Item "-mno-double"
7419 Do not use floating point double instructions.
7420 .IP "\fB\-mmedia\fR" 4
7421 .IX Item "-mmedia"
7422 Use media instructions.
7423 .IP "\fB\-mno\-media\fR" 4
7424 .IX Item "-mno-media"
7425 Do not use media instructions.
7426 .IP "\fB\-mmuladd\fR" 4
7427 .IX Item "-mmuladd"
7428 Use multiply and add/subtract instructions.
7429 .IP "\fB\-mno\-muladd\fR" 4
7430 .IX Item "-mno-muladd"
7431 Do not use multiply and add/subtract instructions.
7432 .IP "\fB\-mfdpic\fR" 4
7433 .IX Item "-mfdpic"
7434 Select the \s-1FDPIC\s0 \s-1ABI\s0, that uses function descriptors to represent
7435 pointers to functions.  Without any PIC/PIE\-related options, it
7436 implies \fB\-fPIE\fR.  With \fB\-fpic\fR or \fB\-fpie\fR, it
7437 assumes \s-1GOT\s0 entries and small data are within a 12\-bit range from the
7438 \&\s-1GOT\s0 base address; with \fB\-fPIC\fR or \fB\-fPIE\fR, \s-1GOT\s0 offsets
7439 are computed with 32 bits.
7440 .IP "\fB\-minline\-plt\fR" 4
7441 .IX Item "-minline-plt"
7442 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
7443 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
7444 It's enabled by default if optimizing for speed and compiling for
7445 shared libraries (i.e., \fB\-fPIC\fR or \fB\-fpic\fR), or when an
7446 optimization option such as \fB\-O3\fR or above is present in the
7447 command line.
7448 .IP "\fB\-mTLS\fR" 4
7449 .IX Item "-mTLS"
7450 Assume a large \s-1TLS\s0 segment when generating thread-local code.
7451 .IP "\fB\-mtls\fR" 4
7452 .IX Item "-mtls"
7453 Do not assume a large \s-1TLS\s0 segment when generating thread-local code.
7454 .IP "\fB\-mgprel\-ro\fR" 4
7455 .IX Item "-mgprel-ro"
7456 Enable the use of \f(CW\*(C`GPREL\*(C'\fR relocations in the \s-1FDPIC\s0 \s-1ABI\s0 for data
7457 that is known to be in read-only sections.  It's enabled by default,
7458 except for \fB\-fpic\fR or \fB\-fpie\fR: even though it may help
7459 make the global offset table smaller, it trades 1 instruction for 4.
7460 With \fB\-fPIC\fR or \fB\-fPIE\fR, it trades 3 instructions for 4,
7461 one of which may be shared by multiple symbols, and it avoids the need
7462 for a \s-1GOT\s0 entry for the referenced symbol, so it's more likely to be a
7463 win.  If it is not, \fB\-mno\-gprel\-ro\fR can be used to disable it.
7464 .IP "\fB\-multilib\-library\-pic\fR" 4
7465 .IX Item "-multilib-library-pic"
7466 Link with the (library, not \s-1FD\s0) pic libraries.  It's implied by
7467 \&\fB\-mlibrary\-pic\fR, as well as by \fB\-fPIC\fR and
7468 \&\fB\-fpic\fR without \fB\-mfdpic\fR.  You should never have to use
7469 it explicitly.
7470 .IP "\fB\-mlinked\-fp\fR" 4
7471 .IX Item "-mlinked-fp"
7472 Follow the \s-1EABI\s0 requirement of always creating a frame pointer whenever
7473 a stack frame is allocated.  This option is enabled by default and can
7474 be disabled with \fB\-mno\-linked\-fp\fR.
7475 .IP "\fB\-mlong\-calls\fR" 4
7476 .IX Item "-mlong-calls"
7477 Use indirect addressing to call functions outside the current
7478 compilation unit.  This allows the functions to be placed anywhere
7479 within the 32\-bit address space.
7480 .IP "\fB\-malign\-labels\fR" 4
7481 .IX Item "-malign-labels"
7482 Try to align labels to an 8\-byte boundary by inserting nops into the
7483 previous packet.  This option only has an effect when \s-1VLIW\s0 packing
7484 is enabled.  It doesn't create new packets; it merely adds nops to
7485 existing ones.
7486 .IP "\fB\-mlibrary\-pic\fR" 4
7487 .IX Item "-mlibrary-pic"
7488 Generate position-independent \s-1EABI\s0 code.
7489 .IP "\fB\-macc\-4\fR" 4
7490 .IX Item "-macc-4"
7491 Use only the first four media accumulator registers.
7492 .IP "\fB\-macc\-8\fR" 4
7493 .IX Item "-macc-8"
7494 Use all eight media accumulator registers.
7495 .IP "\fB\-mpack\fR" 4
7496 .IX Item "-mpack"
7497 Pack \s-1VLIW\s0 instructions.
7498 .IP "\fB\-mno\-pack\fR" 4
7499 .IX Item "-mno-pack"
7500 Do not pack \s-1VLIW\s0 instructions.
7501 .IP "\fB\-mno\-eflags\fR" 4
7502 .IX Item "-mno-eflags"
7503 Do not mark \s-1ABI\s0 switches in e_flags.
7504 .IP "\fB\-mcond\-move\fR" 4
7505 .IX Item "-mcond-move"
7506 Enable the use of conditional-move instructions (default).
7507 .Sp
7508 This switch is mainly for debugging the compiler and will likely be removed
7509 in a future version.
7510 .IP "\fB\-mno\-cond\-move\fR" 4
7511 .IX Item "-mno-cond-move"
7512 Disable the use of conditional-move instructions.
7513 .Sp
7514 This switch is mainly for debugging the compiler and will likely be removed
7515 in a future version.
7516 .IP "\fB\-mscc\fR" 4
7517 .IX Item "-mscc"
7518 Enable the use of conditional set instructions (default).
7519 .Sp
7520 This switch is mainly for debugging the compiler and will likely be removed
7521 in a future version.
7522 .IP "\fB\-mno\-scc\fR" 4
7523 .IX Item "-mno-scc"
7524 Disable the use of conditional set instructions.
7525 .Sp
7526 This switch is mainly for debugging the compiler and will likely be removed
7527 in a future version.
7528 .IP "\fB\-mcond\-exec\fR" 4
7529 .IX Item "-mcond-exec"
7530 Enable the use of conditional execution (default).
7531 .Sp
7532 This switch is mainly for debugging the compiler and will likely be removed
7533 in a future version.
7534 .IP "\fB\-mno\-cond\-exec\fR" 4
7535 .IX Item "-mno-cond-exec"
7536 Disable the use of conditional execution.
7537 .Sp
7538 This switch is mainly for debugging the compiler and will likely be removed
7539 in a future version.
7540 .IP "\fB\-mvliw\-branch\fR" 4
7541 .IX Item "-mvliw-branch"
7542 Run a pass to pack branches into \s-1VLIW\s0 instructions (default).
7543 .Sp
7544 This switch is mainly for debugging the compiler and will likely be removed
7545 in a future version.
7546 .IP "\fB\-mno\-vliw\-branch\fR" 4
7547 .IX Item "-mno-vliw-branch"
7548 Do not run a pass to pack branches into \s-1VLIW\s0 instructions.
7549 .Sp
7550 This switch is mainly for debugging the compiler and will likely be removed
7551 in a future version.
7552 .IP "\fB\-mmulti\-cond\-exec\fR" 4
7553 .IX Item "-mmulti-cond-exec"
7554 Enable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution
7555 (default).
7556 .Sp
7557 This switch is mainly for debugging the compiler and will likely be removed
7558 in a future version.
7559 .IP "\fB\-mno\-multi\-cond\-exec\fR" 4
7560 .IX Item "-mno-multi-cond-exec"
7561 Disable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution.
7562 .Sp
7563 This switch is mainly for debugging the compiler and will likely be removed
7564 in a future version.
7565 .IP "\fB\-mnested\-cond\-exec\fR" 4
7566 .IX Item "-mnested-cond-exec"
7567 Enable nested conditional execution optimizations (default).
7568 .Sp
7569 This switch is mainly for debugging the compiler and will likely be removed
7570 in a future version.
7571 .IP "\fB\-mno\-nested\-cond\-exec\fR" 4
7572 .IX Item "-mno-nested-cond-exec"
7573 Disable nested conditional execution optimizations.
7574 .Sp
7575 This switch is mainly for debugging the compiler and will likely be removed
7576 in a future version.
7577 .IP "\fB\-mtomcat\-stats\fR" 4
7578 .IX Item "-mtomcat-stats"
7579 Cause gas to print out tomcat statistics.
7580 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
7581 .IX Item "-mcpu=cpu"
7582 Select the processor type for which to generate code.  Possible values are
7583 \&\fBfrv\fR, \fBfr550\fR, \fBtomcat\fR, \fBfr500\fR, \fBfr450\fR,
7584 \&\fBfr405\fR, \fBfr400\fR, \fBfr300\fR and \fBsimple\fR.
7585 .PP
7586 \fIH8/300 Options\fR
7587 .IX Subsection "H8/300 Options"
7588 .PP
7589 These \fB\-m\fR options are defined for the H8/300 implementations:
7590 .IP "\fB\-mrelax\fR" 4
7591 .IX Item "-mrelax"
7592 Shorten some address references at link time, when possible; uses the
7593 linker option \fB\-relax\fR.  
7594 .IP "\fB\-mh\fR" 4
7595 .IX Item "-mh"
7596 Generate code for the H8/300H.
7597 .IP "\fB\-ms\fR" 4
7598 .IX Item "-ms"
7599 Generate code for the H8S.
7600 .IP "\fB\-mn\fR" 4
7601 .IX Item "-mn"
7602 Generate code for the H8S and H8/300H in the normal mode.  This switch
7603 must be used either with \fB\-mh\fR or \fB\-ms\fR.
7604 .IP "\fB\-ms2600\fR" 4
7605 .IX Item "-ms2600"
7606 Generate code for the H8S/2600.  This switch must be used with \fB\-ms\fR.
7607 .IP "\fB\-mint32\fR" 4
7608 .IX Item "-mint32"
7609 Make \f(CW\*(C`int\*(C'\fR data 32 bits by default.
7610 .IP "\fB\-malign\-300\fR" 4
7611 .IX Item "-malign-300"
7612 On the H8/300H and H8S, use the same alignment rules as for the H8/300.
7613 The default for the H8/300H and H8S is to align longs and floats on 4
7614 byte boundaries.
7615 \&\fB\-malign\-300\fR causes them to be aligned on 2 byte boundaries.
7616 This option has no effect on the H8/300.
7617 .PP
7618 \fI\s-1HPPA\s0 Options\fR
7619 .IX Subsection "HPPA Options"
7620 .PP
7621 These \fB\-m\fR options are defined for the \s-1HPPA\s0 family of computers:
7622 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
7623 .IX Item "-march=architecture-type"
7624 Generate code for the specified architecture.  The choices for
7625 \&\fIarchitecture-type\fR are \fB1.0\fR for \s-1PA\s0 1.0, \fB1.1\fR for \s-1PA\s0
7626 1.1, and \fB2.0\fR for \s-1PA\s0 2.0 processors.  Refer to
7627 \&\fI/usr/lib/sched.models\fR on an HP-UX system to determine the proper
7628 architecture option for your machine.  Code compiled for lower numbered
7629 architectures will run on higher numbered architectures, but not the
7630 other way around.
7631 .IP "\fB\-mpa\-risc\-1\-0\fR" 4
7632 .IX Item "-mpa-risc-1-0"
7633 .PD 0
7634 .IP "\fB\-mpa\-risc\-1\-1\fR" 4
7635 .IX Item "-mpa-risc-1-1"
7636 .IP "\fB\-mpa\-risc\-2\-0\fR" 4
7637 .IX Item "-mpa-risc-2-0"
7638 .PD
7639 Synonyms for \fB\-march=1.0\fR, \fB\-march=1.1\fR, and \fB\-march=2.0\fR respectively.
7640 .IP "\fB\-mbig\-switch\fR" 4
7641 .IX Item "-mbig-switch"
7642 Generate code suitable for big switch tables.  Use this option only if
7643 the assembler/linker complain about out of range branches within a switch
7644 table.
7645 .IP "\fB\-mjump\-in\-delay\fR" 4
7646 .IX Item "-mjump-in-delay"
7647 Fill delay slots of function calls with unconditional jump instructions
7648 by modifying the return pointer for the function call to be the target
7649 of the conditional jump.
7650 .IP "\fB\-mdisable\-fpregs\fR" 4
7651 .IX Item "-mdisable-fpregs"
7652 Prevent floating point registers from being used in any manner.  This is
7653 necessary for compiling kernels which perform lazy context switching of
7654 floating point registers.  If you use this option and attempt to perform
7655 floating point operations, the compiler will abort.
7656 .IP "\fB\-mdisable\-indexing\fR" 4
7657 .IX Item "-mdisable-indexing"
7658 Prevent the compiler from using indexing address modes.  This avoids some
7659 rather obscure problems when compiling \s-1MIG\s0 generated code under \s-1MACH\s0.
7660 .IP "\fB\-mno\-space\-regs\fR" 4
7661 .IX Item "-mno-space-regs"
7662 Generate code that assumes the target has no space registers.  This allows
7663 \&\s-1GCC\s0 to generate faster indirect calls and use unscaled index address modes.
7664 .Sp
7665 Such code is suitable for level 0 \s-1PA\s0 systems and kernels.
7666 .IP "\fB\-mfast\-indirect\-calls\fR" 4
7667 .IX Item "-mfast-indirect-calls"
7668 Generate code that assumes calls never cross space boundaries.  This
7669 allows \s-1GCC\s0 to emit code which performs faster indirect calls.
7670 .Sp
7671 This option will not work in the presence of shared libraries or nested
7672 functions.
7673 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
7674 .IX Item "-mfixed-range=register-range"
7675 Generate code treating the given register range as fixed registers.
7676 A fixed register is one that the register allocator can not use.  This is
7677 useful when compiling kernel code.  A register range is specified as
7678 two registers separated by a dash.  Multiple register ranges can be
7679 specified separated by a comma.
7680 .IP "\fB\-mlong\-load\-store\fR" 4
7681 .IX Item "-mlong-load-store"
7682 Generate 3\-instruction load and store sequences as sometimes required by
7683 the HP-UX 10 linker.  This is equivalent to the \fB+k\fR option to
7684 the \s-1HP\s0 compilers.
7685 .IP "\fB\-mportable\-runtime\fR" 4
7686 .IX Item "-mportable-runtime"
7687 Use the portable calling conventions proposed by \s-1HP\s0 for \s-1ELF\s0 systems.
7688 .IP "\fB\-mgas\fR" 4
7689 .IX Item "-mgas"
7690 Enable the use of assembler directives only \s-1GAS\s0 understands.
7691 .IP "\fB\-mschedule=\fR\fIcpu-type\fR" 4
7692 .IX Item "-mschedule=cpu-type"
7693 Schedule code according to the constraints for the machine type
7694 \&\fIcpu-type\fR.  The choices for \fIcpu-type\fR are \fB700\fR
7695 \&\fB7100\fR, \fB7100LC\fR, \fB7200\fR, \fB7300\fR and \fB8000\fR.  Refer
7696 to \fI/usr/lib/sched.models\fR on an HP-UX system to determine the
7697 proper scheduling option for your machine.  The default scheduling is
7698 \&\fB8000\fR.
7699 .IP "\fB\-mlinker\-opt\fR" 4
7700 .IX Item "-mlinker-opt"
7701 Enable the optimization pass in the HP-UX linker.  Note this makes symbolic
7702 debugging impossible.  It also triggers a bug in the HP-UX 8 and HP-UX 9
7703 linkers in which they give bogus error messages when linking some programs.
7704 .IP "\fB\-msoft\-float\fR" 4
7705 .IX Item "-msoft-float"
7706 Generate output containing library calls for floating point.
7707 \&\fBWarning:\fR the requisite libraries are not available for all \s-1HPPA\s0
7708 targets.  Normally the facilities of the machine's usual C compiler are
7709 used, but this cannot be done directly in cross\-compilation.  You must make
7710 your own arrangements to provide suitable library functions for
7711 cross\-compilation.  The embedded target \fBhppa1.1\-*\-pro\fR
7712 does provide software floating point support.
7713 .Sp
7714 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
7715 therefore, it is only useful if you compile \fIall\fR of a program with
7716 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
7717 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
7718 this to work.
7719 .IP "\fB\-msio\fR" 4
7720 .IX Item "-msio"
7721 Generate the predefine, \f(CW\*(C`_SIO\*(C'\fR, for server \s-1IO\s0.  The default is
7722 \&\fB\-mwsio\fR.  This generates the predefines, \f(CW\*(C`_\|_hp9000s700\*(C'\fR,
7723 \&\f(CW\*(C`_\|_hp9000s700_\|_\*(C'\fR and \f(CW\*(C`_WSIO\*(C'\fR, for workstation \s-1IO\s0.  These
7724 options are available under HP-UX and \s-1HI\-UX\s0.
7725 .IP "\fB\-mgnu\-ld\fR" 4
7726 .IX Item "-mgnu-ld"
7727 Use \s-1GNU\s0 ld specific options.  This passes \fB\-shared\fR to ld when
7728 building a shared library.  It is the default when \s-1GCC\s0 is configured,
7729 explicitly or implicitly, with the \s-1GNU\s0 linker.  This option does not
7730 have any affect on which ld is called, it only changes what parameters
7731 are passed to that ld.  The ld that is called is determined by the
7732 \&\fB\-\-with\-ld\fR configure option, \s-1GCC\s0's program search path, and
7733 finally by the user's \fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed
7734 using \fBwhich `gcc \-print\-prog\-name=ld`\fR.
7735 .IP "\fB\-mhp\-ld\fR" 4
7736 .IX Item "-mhp-ld"
7737 Use \s-1HP\s0 ld specific options.  This passes \fB\-b\fR to ld when building
7738 a shared library and passes \fB+Accept TypeMismatch\fR to ld on all
7739 links.  It is the default when \s-1GCC\s0 is configured, explicitly or
7740 implicitly, with the \s-1HP\s0 linker.  This option does not have any affect on
7741 which ld is called, it only changes what parameters are passed to that
7742 ld.  The ld that is called is determined by the \fB\-\-with\-ld\fR
7743 configure option, \s-1GCC\s0's program search path, and finally by the user's
7744 \&\fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed using \fBwhich
7745 `gcc \-print\-prog\-name=ld`\fR.
7746 .IP "\fB\-mlong\-calls\fR" 4
7747 .IX Item "-mlong-calls"
7748 Generate code that uses long call sequences.  This ensures that a call
7749 is always able to reach linker generated stubs.  The default is to generate
7750 long calls only when the distance from the call site to the beginning
7751 of the function or translation unit, as the case may be, exceeds a
7752 predefined limit set by the branch type being used.  The limits for
7753 normal calls are 7,600,000 and 240,000 bytes, respectively for the
7754 \&\s-1PA\s0 2.0 and \s-1PA\s0 1.X architectures.  Sibcalls are always limited at
7755 240,000 bytes.
7756 .Sp
7757 Distances are measured from the beginning of functions when using the
7758 \&\fB\-ffunction\-sections\fR option, or when using the \fB\-mgas\fR
7759 and \fB\-mno\-portable\-runtime\fR options together under HP-UX with
7760 the \s-1SOM\s0 linker.
7761 .Sp
7762 It is normally not desirable to use this option as it will degrade
7763 performance.  However, it may be useful in large applications,
7764 particularly when partial linking is used to build the application.
7765 .Sp
7766 The types of long calls used depends on the capabilities of the
7767 assembler and linker, and the type of code being generated.  The
7768 impact on systems that support long absolute calls, and long pic
7769 symbol-difference or pc-relative calls should be relatively small.
7770 However, an indirect call is used on 32\-bit \s-1ELF\s0 systems in pic code
7771 and it is quite long.
7772 .IP "\fB\-munix=\fR\fIunix-std\fR" 4
7773 .IX Item "-munix=unix-std"
7774 Generate compiler predefines and select a startfile for the specified
7775 \&\s-1UNIX\s0 standard.  The choices for \fIunix-std\fR are \fB93\fR, \fB95\fR
7776 and \fB98\fR.  \fB93\fR is supported on all HP-UX versions.  \fB95\fR
7777 is available on HP-UX 10.10 and later.  \fB98\fR is available on HP-UX
7778 11.11 and later.  The default values are \fB93\fR for HP-UX 10.00,
7779 \&\fB95\fR for HP-UX 10.10 though to 11.00, and \fB98\fR for HP-UX 11.11
7780 and later.
7781 .Sp
7782 \&\fB\-munix=93\fR provides the same predefines as \s-1GCC\s0 3.3 and 3.4.
7783 \&\fB\-munix=95\fR provides additional predefines for \f(CW\*(C`XOPEN_UNIX\*(C'\fR
7784 and \f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, and the startfile \fIunix95.o\fR.
7785 \&\fB\-munix=98\fR provides additional predefines for \f(CW\*(C`_XOPEN_UNIX\*(C'\fR,
7786 \&\f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, \f(CW\*(C`_INCLUDE_\|_STDC_A1_SOURCE\*(C'\fR and
7787 \&\f(CW\*(C`_INCLUDE_XOPEN_SOURCE_500\*(C'\fR, and the startfile \fIunix98.o\fR.
7788 .Sp
7789 It is \fIimportant\fR to note that this option changes the interfaces
7790 for various library routines.  It also affects the operational behavior
7791 of the C library.  Thus, \fIextreme\fR care is needed in using this
7792 option.
7793 .Sp
7794 Library code that is intended to operate with more than one \s-1UNIX\s0
7795 standard must test, set and restore the variable \fI_\|_xpg4_extended_mask\fR
7796 as appropriate.  Most \s-1GNU\s0 software doesn't provide this capability.
7797 .IP "\fB\-nolibdld\fR" 4
7798 .IX Item "-nolibdld"
7799 Suppress the generation of link options to search libdld.sl when the
7800 \&\fB\-static\fR option is specified on HP-UX 10 and later.
7801 .IP "\fB\-static\fR" 4
7802 .IX Item "-static"
7803 The HP-UX implementation of setlocale in libc has a dependency on
7804 libdld.sl.  There isn't an archive version of libdld.sl.  Thus,
7805 when the \fB\-static\fR option is specified, special link options
7806 are needed to resolve this dependency.
7807 .Sp
7808 On HP-UX 10 and later, the \s-1GCC\s0 driver adds the necessary options to
7809 link with libdld.sl when the \fB\-static\fR option is specified.
7810 This causes the resulting binary to be dynamic.  On the 64\-bit port,
7811 the linkers generate dynamic binaries by default in any case.  The
7812 \&\fB\-nolibdld\fR option can be used to prevent the \s-1GCC\s0 driver from
7813 adding these link options.
7814 .IP "\fB\-threads\fR" 4
7815 .IX Item "-threads"
7816 Add support for multithreading with the \fIdce thread\fR library
7817 under \s-1HP\-UX\s0.  This option sets flags for both the preprocessor and
7818 linker.
7819 .PP
7820 \fIIntel 386 and \s-1AMD\s0 x86\-64 Options\fR
7821 .IX Subsection "Intel 386 and AMD x86-64 Options"
7822 .PP
7823 These \fB\-m\fR options are defined for the i386 and x86\-64 family of
7824 computers:
7825 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
7826 .IX Item "-mtune=cpu-type"
7827 Tune to \fIcpu-type\fR everything applicable about the generated code, except
7828 for the \s-1ABI\s0 and the set of available instructions.  The choices for
7829 \&\fIcpu-type\fR are:
7830 .RS 4
7831 .IP "\fIi386\fR" 4
7832 .IX Item "i386"
7833 Original Intel's i386 \s-1CPU\s0.
7834 .IP "\fIi486\fR" 4
7835 .IX Item "i486"
7836 Intel's i486 \s-1CPU\s0.  (No scheduling is implemented for this chip.)
7837 .IP "\fIi586, pentium\fR" 4
7838 .IX Item "i586, pentium"
7839 Intel Pentium \s-1CPU\s0 with no \s-1MMX\s0 support.
7840 .IP "\fIpentium-mmx\fR" 4
7841 .IX Item "pentium-mmx"
7842 Intel PentiumMMX \s-1CPU\s0 based on Pentium core with \s-1MMX\s0 instruction set support.
7843 .IP "\fIi686, pentiumpro\fR" 4
7844 .IX Item "i686, pentiumpro"
7845 Intel PentiumPro \s-1CPU\s0.
7846 .IP "\fIpentium2\fR" 4
7847 .IX Item "pentium2"
7848 Intel Pentium2 \s-1CPU\s0 based on PentiumPro core with \s-1MMX\s0 instruction set support.
7849 .IP "\fIpentium3, pentium3m\fR" 4
7850 .IX Item "pentium3, pentium3m"
7851 Intel Pentium3 \s-1CPU\s0 based on PentiumPro core with \s-1MMX\s0 and \s-1SSE\s0 instruction set
7852 support.
7853 .IP "\fIpentium-m\fR" 4
7854 .IX Item "pentium-m"
7855 Low power version of Intel Pentium3 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set
7856 support.  Used by Centrino notebooks.
7857 .IP "\fIpentium4, pentium4m\fR" 4
7858 .IX Item "pentium4, pentium4m"
7859 Intel Pentium4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set support.
7860 .IP "\fIprescott\fR" 4
7861 .IX Item "prescott"
7862 Improved version of Intel Pentium4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0 and \s-1SSE3\s0 instruction
7863 set support.
7864 .IP "\fInocona\fR" 4
7865 .IX Item "nocona"
7866 Improved version of Intel Pentium4 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0,
7867 \&\s-1SSE2\s0 and \s-1SSE3\s0 instruction set support.
7868 .IP "\fIk6\fR" 4
7869 .IX Item "k6"
7870 \&\s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 instruction set support.
7871 .IP "\fIk6\-2, k6\-3\fR" 4
7872 .IX Item "k6-2, k6-3"
7873 Improved versions of \s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 and 3dNOW! instruction set support.
7874 .IP "\fIathlon, athlon-tbird\fR" 4
7875 .IX Item "athlon, athlon-tbird"
7876 \&\s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3dNOW!, enhanced 3dNOW! and \s-1SSE\s0 prefetch instructions
7877 support.
7878 .IP "\fIathlon\-4, athlon\-xp, athlon-mp\fR" 4
7879 .IX Item "athlon-4, athlon-xp, athlon-mp"
7880 Improved \s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3dNOW!, enhanced 3dNOW! and full \s-1SSE\s0
7881 instruction set support.
7882 .IP "\fIk8, opteron, athlon64, athlon-fx\fR" 4
7883 .IX Item "k8, opteron, athlon64, athlon-fx"
7884 \&\s-1AMD\s0 K8 core based CPUs with x86\-64 instruction set support.  (This supersets
7885 \&\s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, 3dNOW!, enhanced 3dNOW! and 64\-bit instruction set extensions.)
7886 .IP "\fIwinchip\-c6\fR" 4
7887 .IX Item "winchip-c6"
7888 \&\s-1IDT\s0 Winchip C6 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 instruction
7889 set support.
7890 .IP "\fIwinchip2\fR" 4
7891 .IX Item "winchip2"
7892 \&\s-1IDT\s0 Winchip2 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 and 3dNOW!
7893 instruction set support.
7894 .IP "\fIc3\fR" 4
7895 .IX Item "c3"
7896 Via C3 \s-1CPU\s0 with \s-1MMX\s0 and 3dNOW! instruction set support.  (No scheduling is
7897 implemented for this chip.)
7898 .IP "\fIc3\-2\fR" 4
7899 .IX Item "c3-2"
7900 Via C3\-2 \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.  (No scheduling is
7901 implemented for this chip.)
7902 .RE
7903 .RS 4
7904 .Sp
7905 While picking a specific \fIcpu-type\fR will schedule things appropriately
7906 for that particular chip, the compiler will not generate any code that
7907 does not run on the i386 without the \fB\-march=\fR\fIcpu-type\fR option
7908 being used.
7909 .RE
7910 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
7911 .IX Item "-march=cpu-type"
7912 Generate instructions for the machine type \fIcpu-type\fR.  The choices
7913 for \fIcpu-type\fR are the same as for \fB\-mtune\fR.  Moreover,
7914 specifying \fB\-march=\fR\fIcpu-type\fR implies \fB\-mtune=\fR\fIcpu-type\fR.
7915 .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
7916 .IX Item "-mcpu=cpu-type"
7917 A deprecated synonym for \fB\-mtune\fR.
7918 .IP "\fB\-m386\fR" 4
7919 .IX Item "-m386"
7920 .PD 0
7921 .IP "\fB\-m486\fR" 4
7922 .IX Item "-m486"
7923 .IP "\fB\-mpentium\fR" 4
7924 .IX Item "-mpentium"
7925 .IP "\fB\-mpentiumpro\fR" 4
7926 .IX Item "-mpentiumpro"
7927 .PD
7928 These options are synonyms for \fB\-mtune=i386\fR, \fB\-mtune=i486\fR,
7929 \&\fB\-mtune=pentium\fR, and \fB\-mtune=pentiumpro\fR respectively.
7930 These synonyms are deprecated.
7931 .IP "\fB\-mfpmath=\fR\fIunit\fR" 4
7932 .IX Item "-mfpmath=unit"
7933 Generate floating point arithmetics for selected unit \fIunit\fR.  The choices
7934 for \fIunit\fR are:
7935 .RS 4
7936 .IP "\fB387\fR" 4
7937 .IX Item "387"
7938 Use the standard 387 floating point coprocessor present majority of chips and
7939 emulated otherwise.  Code compiled with this option will run almost everywhere.
7940 The temporary results are computed in 80bit precision instead of precision
7941 specified by the type resulting in slightly different results compared to most
7942 of other chips.  See \fB\-ffloat\-store\fR for more detailed description.
7943 .Sp
7944 This is the default choice for i386 compiler.
7945 .IP "\fBsse\fR" 4
7946 .IX Item "sse"
7947 Use scalar floating point instructions present in the \s-1SSE\s0 instruction set.
7948 This instruction set is supported by Pentium3 and newer chips, in the \s-1AMD\s0 line
7949 by Athlon\-4, Athlon-xp and Athlon-mp chips.  The earlier version of \s-1SSE\s0
7950 instruction set supports only single precision arithmetics, thus the double and
7951 extended precision arithmetics is still done using 387.  Later version, present
7952 only in Pentium4 and the future \s-1AMD\s0 x86\-64 chips supports double precision
7953 arithmetics too.
7954 .Sp
7955 For the i386 compiler, you need to use \fB\-march=\fR\fIcpu-type\fR, \fB\-msse\fR
7956 or \fB\-msse2\fR switches to enable \s-1SSE\s0 extensions and make this option
7957 effective.  For the x86\-64 compiler, these extensions are enabled by default.
7958 .Sp
7959 The resulting code should be considerably faster in the majority of cases and avoid
7960 the numerical instability problems of 387 code, but may break some existing
7961 code that expects temporaries to be 80bit.
7962 .Sp
7963 This is the default choice for the x86\-64 compiler.
7964 .IP "\fBsse,387\fR" 4
7965 .IX Item "sse,387"
7966 Attempt to utilize both instruction sets at once.  This effectively double the
7967 amount of available registers and on chips with separate execution units for
7968 387 and \s-1SSE\s0 the execution resources too.  Use this option with care, as it is
7969 still experimental, because the \s-1GCC\s0 register allocator does not model separate
7970 functional units well resulting in instable performance.
7971 .RE
7972 .RS 4
7973 .RE
7974 .IP "\fB\-masm=\fR\fIdialect\fR" 4
7975 .IX Item "-masm=dialect"
7976 Output asm instructions using selected \fIdialect\fR.  Supported choices are
7977 \&\fBintel\fR or \fBatt\fR (the default one).
7978 .IP "\fB\-mieee\-fp\fR" 4
7979 .IX Item "-mieee-fp"
7980 .PD 0
7981 .IP "\fB\-mno\-ieee\-fp\fR" 4
7982 .IX Item "-mno-ieee-fp"
7983 .PD
7984 Control whether or not the compiler uses \s-1IEEE\s0 floating point
7985 comparisons.  These handle correctly the case where the result of a
7986 comparison is unordered.
7987 .IP "\fB\-msoft\-float\fR" 4
7988 .IX Item "-msoft-float"
7989 Generate output containing library calls for floating point.
7990 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC\s0.
7991 Normally the facilities of the machine's usual C compiler are used, but
7992 this can't be done directly in cross\-compilation.  You must make your
7993 own arrangements to provide suitable library functions for
7994 cross\-compilation.
7995 .Sp
7996 On machines where a function returns floating point results in the 80387
7997 register stack, some floating point opcodes may be emitted even if
7998 \&\fB\-msoft\-float\fR is used.
7999 .IP "\fB\-mno\-fp\-ret\-in\-387\fR" 4
8000 .IX Item "-mno-fp-ret-in-387"
8001 Do not use the \s-1FPU\s0 registers for return values of functions.
8002 .Sp
8003 The usual calling convention has functions return values of types
8004 \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR in an \s-1FPU\s0 register, even if there
8005 is no \s-1FPU\s0.  The idea is that the operating system should emulate
8006 an \s-1FPU\s0.
8007 .Sp
8008 The option \fB\-mno\-fp\-ret\-in\-387\fR causes such values to be returned
8009 in ordinary \s-1CPU\s0 registers instead.
8010 .IP "\fB\-mno\-fancy\-math\-387\fR" 4
8011 .IX Item "-mno-fancy-math-387"
8012 Some 387 emulators do not support the \f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR and
8013 \&\f(CW\*(C`sqrt\*(C'\fR instructions for the 387.  Specify this option to avoid
8014 generating those instructions.  This option is the default on FreeBSD,
8015 OpenBSD and NetBSD.  This option is overridden when \fB\-march\fR
8016 indicates that the target cpu will always have an \s-1FPU\s0 and so the
8017 instruction will not need emulation.  As of revision 2.6.1, these
8018 instructions are not generated unless you also use the
8019 \&\fB\-funsafe\-math\-optimizations\fR switch.
8020 .IP "\fB\-malign\-double\fR" 4
8021 .IX Item "-malign-double"
8022 .PD 0
8023 .IP "\fB\-mno\-align\-double\fR" 4
8024 .IX Item "-mno-align-double"
8025 .PD
8026 Control whether \s-1GCC\s0 aligns \f(CW\*(C`double\*(C'\fR, \f(CW\*(C`long double\*(C'\fR, and
8027 \&\f(CW\*(C`long long\*(C'\fR variables on a two word boundary or a one word
8028 boundary.  Aligning \f(CW\*(C`double\*(C'\fR variables on a two word boundary will
8029 produce code that runs somewhat faster on a \fBPentium\fR at the
8030 expense of more memory.
8031 .Sp
8032 \&\fBWarning:\fR if you use the \fB\-malign\-double\fR switch,
8033 structures containing the above types will be aligned differently than
8034 the published application binary interface specifications for the 386
8035 and will not be binary compatible with structures in code compiled
8036 without that switch.
8037 .IP "\fB\-m96bit\-long\-double\fR" 4
8038 .IX Item "-m96bit-long-double"
8039 .PD 0
8040 .IP "\fB\-m128bit\-long\-double\fR" 4
8041 .IX Item "-m128bit-long-double"
8042 .PD
8043 These switches control the size of \f(CW\*(C`long double\*(C'\fR type.  The i386
8044 application binary interface specifies the size to be 96 bits,
8045 so \fB\-m96bit\-long\-double\fR is the default in 32 bit mode.
8046 .Sp
8047 Modern architectures (Pentium and newer) would prefer \f(CW\*(C`long double\*(C'\fR
8048 to be aligned to an 8 or 16 byte boundary.  In arrays or structures
8049 conforming to the \s-1ABI\s0, this would not be possible.  So specifying a
8050 \&\fB\-m128bit\-long\-double\fR will align \f(CW\*(C`long double\*(C'\fR
8051 to a 16 byte boundary by padding the \f(CW\*(C`long double\*(C'\fR with an additional
8052 32 bit zero.
8053 .Sp
8054 In the x86\-64 compiler, \fB\-m128bit\-long\-double\fR is the default choice as
8055 its \s-1ABI\s0 specifies that \f(CW\*(C`long double\*(C'\fR is to be aligned on 16 byte boundary.
8056 .Sp
8057 Notice that neither of these options enable any extra precision over the x87
8058 standard of 80 bits for a \f(CW\*(C`long double\*(C'\fR.
8059 .Sp
8060 \&\fBWarning:\fR if you override the default value for your target \s-1ABI\s0, the
8061 structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables will change
8062 their size as well as function calling convention for function taking
8063 \&\f(CW\*(C`long double\*(C'\fR will be modified.  Hence they will not be binary
8064 compatible with arrays or structures in code compiled without that switch.
8065 .IP "\fB\-msvr3\-shlib\fR" 4
8066 .IX Item "-msvr3-shlib"
8067 .PD 0
8068 .IP "\fB\-mno\-svr3\-shlib\fR" 4
8069 .IX Item "-mno-svr3-shlib"
8070 .PD
8071 Control whether \s-1GCC\s0 places uninitialized local variables into the
8072 \&\f(CW\*(C`bss\*(C'\fR or \f(CW\*(C`data\*(C'\fR segments.  \fB\-msvr3\-shlib\fR places them
8073 into \f(CW\*(C`bss\*(C'\fR.  These options are meaningful only on System V Release 3.
8074 .IP "\fB\-mrtd\fR" 4
8075 .IX Item "-mrtd"
8076 Use a different function-calling convention, in which functions that
8077 take a fixed number of arguments return with the \f(CW\*(C`ret\*(C'\fR \fInum\fR
8078 instruction, which pops their arguments while returning.  This saves one
8079 instruction in the caller since there is no need to pop the arguments
8080 there.
8081 .Sp
8082 You can specify that an individual function is called with this calling
8083 sequence with the function attribute \fBstdcall\fR.  You can also
8084 override the \fB\-mrtd\fR option by using the function attribute
8085 \&\fBcdecl\fR.  
8086 .Sp
8087 \&\fBWarning:\fR this calling convention is incompatible with the one
8088 normally used on Unix, so you cannot use it if you need to call
8089 libraries compiled with the Unix compiler.
8090 .Sp
8091 Also, you must provide function prototypes for all functions that
8092 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
8093 otherwise incorrect code will be generated for calls to those
8094 functions.
8095 .Sp
8096 In addition, seriously incorrect code will result if you call a
8097 function with too many arguments.  (Normally, extra arguments are
8098 harmlessly ignored.)
8099 .IP "\fB\-mregparm=\fR\fInum\fR" 4
8100 .IX Item "-mregparm=num"
8101 Control how many registers are used to pass integer arguments.  By
8102 default, no registers are used to pass arguments, and at most 3
8103 registers can be used.  You can control this behavior for a specific
8104 function by using the function attribute \fBregparm\fR.
8105 .Sp
8106 \&\fBWarning:\fR if you use this switch, and
8107 \&\fInum\fR is nonzero, then you must build all modules with the same
8108 value, including any libraries.  This includes the system libraries and
8109 startup modules.
8110 .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
8111 .IX Item "-mpreferred-stack-boundary=num"
8112 Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
8113 byte boundary.  If \fB\-mpreferred\-stack\-boundary\fR is not specified,
8114 the default is 4 (16 bytes or 128 bits), except when optimizing for code
8115 size (\fB\-Os\fR), in which case the default is the minimum correct
8116 alignment (4 bytes for x86, and 8 bytes for x86\-64).
8117 .Sp
8118 On Pentium and PentiumPro, \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long double\*(C'\fR values
8119 should be aligned to an 8 byte boundary (see \fB\-malign\-double\fR) or
8120 suffer significant run time performance penalties.  On Pentium \s-1III\s0, the
8121 Streaming \s-1SIMD\s0 Extension (\s-1SSE\s0) data type \f(CW\*(C`_\|_m128\*(C'\fR suffers similar
8122 penalties if it is not 16 byte aligned.
8123 .Sp
8124 To ensure proper alignment of this values on the stack, the stack boundary
8125 must be as aligned as that required by any value stored on the stack.
8126 Further, every function must be generated such that it keeps the stack
8127 aligned.  Thus calling a function compiled with a higher preferred
8128 stack boundary from a function compiled with a lower preferred stack
8129 boundary will most likely misalign the stack.  It is recommended that
8130 libraries that use callbacks always use the default setting.
8131 .Sp
8132 This extra alignment does consume extra stack space, and generally
8133 increases code size.  Code that is sensitive to stack space usage, such
8134 as embedded systems and operating system kernels, may want to reduce the
8135 preferred alignment to \fB\-mpreferred\-stack\-boundary=2\fR.
8136 .IP "\fB\-mmmx\fR" 4
8137 .IX Item "-mmmx"
8138 .PD 0
8139 .IP "\fB\-mno\-mmx\fR" 4
8140 .IX Item "-mno-mmx"
8141 .IP "\fB\-msse\fR" 4
8142 .IX Item "-msse"
8143 .IP "\fB\-mno\-sse\fR" 4
8144 .IX Item "-mno-sse"
8145 .IP "\fB\-msse2\fR" 4
8146 .IX Item "-msse2"
8147 .IP "\fB\-mno\-sse2\fR" 4
8148 .IX Item "-mno-sse2"
8149 .IP "\fB\-msse3\fR" 4
8150 .IX Item "-msse3"
8151 .IP "\fB\-mno\-sse3\fR" 4
8152 .IX Item "-mno-sse3"
8153 .IP "\fB\-m3dnow\fR" 4
8154 .IX Item "-m3dnow"
8155 .IP "\fB\-mno\-3dnow\fR" 4
8156 .IX Item "-mno-3dnow"
8157 .PD
8158 These switches enable or disable the use of built-in functions that allow
8159 direct access to the \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0 and 3Dnow extensions of the
8160 instruction set.
8161 .Sp
8162 To have \s-1SSE/SSE2\s0 instructions generated automatically from floating-point
8163 code, see \fB\-mfpmath=sse\fR.
8164 .IP "\fB\-mpush\-args\fR" 4
8165 .IX Item "-mpush-args"
8166 .PD 0
8167 .IP "\fB\-mno\-push\-args\fR" 4
8168 .IX Item "-mno-push-args"
8169 .PD
8170 Use \s-1PUSH\s0 operations to store outgoing parameters.  This method is shorter
8171 and usually equally fast as method using \s-1SUB/MOV\s0 operations and is enabled
8172 by default.  In some cases disabling it may improve performance because of
8173 improved scheduling and reduced dependencies.
8174 .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
8175 .IX Item "-maccumulate-outgoing-args"
8176 If enabled, the maximum amount of space required for outgoing arguments will be
8177 computed in the function prologue.  This is faster on most modern CPUs
8178 because of reduced dependencies, improved scheduling and reduced stack usage
8179 when preferred stack boundary is not equal to 2.  The drawback is a notable
8180 increase in code size.  This switch implies \fB\-mno\-push\-args\fR.
8181 .IP "\fB\-mthreads\fR" 4
8182 .IX Item "-mthreads"
8183 Support thread-safe exception handling on \fBMingw32\fR.  Code that relies
8184 on thread-safe exception handling must compile and link all code with the
8185 \&\fB\-mthreads\fR option.  When compiling, \fB\-mthreads\fR defines
8186 \&\fB\-D_MT\fR; when linking, it links in a special thread helper library
8187 \&\fB\-lmingwthrd\fR which cleans up per thread exception handling data.
8188 .IP "\fB\-mno\-align\-stringops\fR" 4
8189 .IX Item "-mno-align-stringops"
8190 Do not align destination of inlined string operations.  This switch reduces
8191 code size and improves performance in case the destination is already aligned,
8192 but \s-1GCC\s0 doesn't know about it.
8193 .IP "\fB\-minline\-all\-stringops\fR" 4
8194 .IX Item "-minline-all-stringops"
8195 By default \s-1GCC\s0 inlines string operations only when destination is known to be
8196 aligned at least to 4 byte boundary.  This enables more inlining, increase code
8197 size, but may improve performance of code that depends on fast memcpy, strlen
8198 and memset for short lengths.
8199 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
8200 .IX Item "-momit-leaf-frame-pointer"
8201 Don't keep the frame pointer in a register for leaf functions.  This
8202 avoids the instructions to save, set up and restore frame pointers and
8203 makes an extra register available in leaf functions.  The option
8204 \&\fB\-fomit\-frame\-pointer\fR removes the frame pointer for all functions
8205 which might make debugging harder.
8206 .IP "\fB\-mtls\-direct\-seg\-refs\fR" 4
8207 .IX Item "-mtls-direct-seg-refs"
8208 .PD 0
8209 .IP "\fB\-mno\-tls\-direct\-seg\-refs\fR" 4
8210 .IX Item "-mno-tls-direct-seg-refs"
8211 .PD
8212 Controls whether \s-1TLS\s0 variables may be accessed with offsets from the
8213 \&\s-1TLS\s0 segment register (\f(CW%gs\fR for 32\-bit, \f(CW%fs\fR for 64\-bit),
8214 or whether the thread base pointer must be added.  Whether or not this
8215 is legal depends on the operating system, and whether it maps the
8216 segment to cover the entire \s-1TLS\s0 area.
8217 .Sp
8218 For systems that use \s-1GNU\s0 libc, the default is on.
8219 .PP
8220 These \fB\-m\fR switches are supported in addition to the above
8221 on \s-1AMD\s0 x86\-64 processors in 64\-bit environments.
8222 .IP "\fB\-m32\fR" 4
8223 .IX Item "-m32"
8224 .PD 0
8225 .IP "\fB\-m64\fR" 4
8226 .IX Item "-m64"
8227 .PD
8228 Generate code for a 32\-bit or 64\-bit environment.
8229 The 32\-bit environment sets int, long and pointer to 32 bits and
8230 generates code that runs on any i386 system.
8231 The 64\-bit environment sets int to 32 bits and long and pointer
8232 to 64 bits and generates code for \s-1AMD\s0's x86\-64 architecture.
8233 .IP "\fB\-mno\-red\-zone\fR" 4
8234 .IX Item "-mno-red-zone"
8235 Do not use a so called red zone for x86\-64 code.  The red zone is mandated
8236 by the x86\-64 \s-1ABI\s0, it is a 128\-byte area beyond the location of the
8237 stack pointer that will not be modified by signal or interrupt handlers
8238 and therefore can be used for temporary data without adjusting the stack
8239 pointer.  The flag \fB\-mno\-red\-zone\fR disables this red zone.
8240 .IP "\fB\-mcmodel=small\fR" 4
8241 .IX Item "-mcmodel=small"
8242 Generate code for the small code model: the program and its symbols must
8243 be linked in the lower 2 \s-1GB\s0 of the address space.  Pointers are 64 bits.
8244 Programs can be statically or dynamically linked.  This is the default
8245 code model.
8246 .IP "\fB\-mcmodel=kernel\fR" 4
8247 .IX Item "-mcmodel=kernel"
8248 Generate code for the kernel code model.  The kernel runs in the
8249 negative 2 \s-1GB\s0 of the address space.
8250 This model has to be used for Linux kernel code.
8251 .IP "\fB\-mcmodel=medium\fR" 4
8252 .IX Item "-mcmodel=medium"
8253 Generate code for the medium model: The program is linked in the lower 2
8254 \&\s-1GB\s0 of the address space but symbols can be located anywhere in the
8255 address space.  Programs can be statically or dynamically linked, but
8256 building of shared libraries are not supported with the medium model.
8257 .IP "\fB\-mcmodel=large\fR" 4
8258 .IX Item "-mcmodel=large"
8259 Generate code for the large model: This model makes no assumptions
8260 about addresses and sizes of sections.  Currently \s-1GCC\s0 does not implement
8261 this model.
8262 .PP
8263 \fI\s-1IA\-64\s0 Options\fR
8264 .IX Subsection "IA-64 Options"
8265 .PP
8266 These are the \fB\-m\fR options defined for the Intel \s-1IA\-64\s0 architecture.
8267 .IP "\fB\-mbig\-endian\fR" 4
8268 .IX Item "-mbig-endian"
8269 Generate code for a big endian target.  This is the default for \s-1HP\-UX\s0.
8270 .IP "\fB\-mlittle\-endian\fR" 4
8271 .IX Item "-mlittle-endian"
8272 Generate code for a little endian target.  This is the default for \s-1AIX5\s0
8273 and GNU/Linux.
8274 .IP "\fB\-mgnu\-as\fR" 4
8275 .IX Item "-mgnu-as"
8276 .PD 0
8277 .IP "\fB\-mno\-gnu\-as\fR" 4
8278 .IX Item "-mno-gnu-as"
8279 .PD
8280 Generate (or don't) code for the \s-1GNU\s0 assembler.  This is the default.
8281 .IP "\fB\-mgnu\-ld\fR" 4
8282 .IX Item "-mgnu-ld"
8283 .PD 0
8284 .IP "\fB\-mno\-gnu\-ld\fR" 4
8285 .IX Item "-mno-gnu-ld"
8286 .PD
8287 Generate (or don't) code for the \s-1GNU\s0 linker.  This is the default.
8288 .IP "\fB\-mno\-pic\fR" 4
8289 .IX Item "-mno-pic"
8290 Generate code that does not use a global pointer register.  The result
8291 is not position independent code, and violates the \s-1IA\-64\s0 \s-1ABI\s0.
8292 .IP "\fB\-mvolatile\-asm\-stop\fR" 4
8293 .IX Item "-mvolatile-asm-stop"
8294 .PD 0
8295 .IP "\fB\-mno\-volatile\-asm\-stop\fR" 4
8296 .IX Item "-mno-volatile-asm-stop"
8297 .PD
8298 Generate (or don't) a stop bit immediately before and after volatile asm
8299 statements.
8300 .IP "\fB\-mregister\-names\fR" 4
8301 .IX Item "-mregister-names"
8302 .PD 0
8303 .IP "\fB\-mno\-register\-names\fR" 4
8304 .IX Item "-mno-register-names"
8305 .PD
8306 Generate (or don't) \fBin\fR, \fBloc\fR, and \fBout\fR register names for
8307 the stacked registers.  This may make assembler output more readable.
8308 .IP "\fB\-mno\-sdata\fR" 4
8309 .IX Item "-mno-sdata"
8310 .PD 0
8311 .IP "\fB\-msdata\fR" 4
8312 .IX Item "-msdata"
8313 .PD
8314 Disable (or enable) optimizations that use the small data section.  This may
8315 be useful for working around optimizer bugs.
8316 .IP "\fB\-mconstant\-gp\fR" 4
8317 .IX Item "-mconstant-gp"
8318 Generate code that uses a single constant global pointer value.  This is
8319 useful when compiling kernel code.
8320 .IP "\fB\-mauto\-pic\fR" 4
8321 .IX Item "-mauto-pic"
8322 Generate code that is self\-relocatable.  This implies \fB\-mconstant\-gp\fR.
8323 This is useful when compiling firmware code.
8324 .IP "\fB\-minline\-float\-divide\-min\-latency\fR" 4
8325 .IX Item "-minline-float-divide-min-latency"
8326 Generate code for inline divides of floating point values
8327 using the minimum latency algorithm.
8328 .IP "\fB\-minline\-float\-divide\-max\-throughput\fR" 4
8329 .IX Item "-minline-float-divide-max-throughput"
8330 Generate code for inline divides of floating point values
8331 using the maximum throughput algorithm.
8332 .IP "\fB\-minline\-int\-divide\-min\-latency\fR" 4
8333 .IX Item "-minline-int-divide-min-latency"
8334 Generate code for inline divides of integer values
8335 using the minimum latency algorithm.
8336 .IP "\fB\-minline\-int\-divide\-max\-throughput\fR" 4
8337 .IX Item "-minline-int-divide-max-throughput"
8338 Generate code for inline divides of integer values
8339 using the maximum throughput algorithm.
8340 .IP "\fB\-minline\-sqrt\-min\-latency\fR" 4
8341 .IX Item "-minline-sqrt-min-latency"
8342 Generate code for inline square roots
8343 using the minimum latency algorithm.
8344 .IP "\fB\-minline\-sqrt\-max\-throughput\fR" 4
8345 .IX Item "-minline-sqrt-max-throughput"
8346 Generate code for inline square roots
8347 using the maximum throughput algorithm.
8348 .IP "\fB\-mno\-dwarf2\-asm\fR" 4
8349 .IX Item "-mno-dwarf2-asm"
8350 .PD 0
8351 .IP "\fB\-mdwarf2\-asm\fR" 4
8352 .IX Item "-mdwarf2-asm"
8353 .PD
8354 Don't (or do) generate assembler code for the \s-1DWARF2\s0 line number debugging
8355 info.  This may be useful when not using the \s-1GNU\s0 assembler.
8356 .IP "\fB\-mearly\-stop\-bits\fR" 4
8357 .IX Item "-mearly-stop-bits"
8358 .PD 0
8359 .IP "\fB\-mno\-early\-stop\-bits\fR" 4
8360 .IX Item "-mno-early-stop-bits"
8361 .PD
8362 Allow stop bits to be placed earlier than immediately preceding the
8363 instruction that triggered the stop bit.  This can improve instruction
8364 scheduling, but does not always do so.
8365 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
8366 .IX Item "-mfixed-range=register-range"
8367 Generate code treating the given register range as fixed registers.
8368 A fixed register is one that the register allocator can not use.  This is
8369 useful when compiling kernel code.  A register range is specified as
8370 two registers separated by a dash.  Multiple register ranges can be
8371 specified separated by a comma.
8372 .IP "\fB\-mtls\-size=\fR\fItls-size\fR" 4
8373 .IX Item "-mtls-size=tls-size"
8374 Specify bit size of immediate \s-1TLS\s0 offsets.  Valid values are 14, 22, and
8375 64.
8376 .IP "\fB\-mtune\-arch=\fR\fIcpu-type\fR" 4
8377 .IX Item "-mtune-arch=cpu-type"
8378 Tune the instruction scheduling for a particular \s-1CPU\s0, Valid values are
8379 itanium, itanium1, merced, itanium2, and mckinley.
8380 .IP "\fB\-mt\fR" 4
8381 .IX Item "-mt"
8382 .PD 0
8383 .IP "\fB\-pthread\fR" 4
8384 .IX Item "-pthread"
8385 .PD
8386 Add support for multithreading using the \s-1POSIX\s0 threads library.  This
8387 option sets flags for both the preprocessor and linker.  It does
8388 not affect the thread safety of object code produced by the compiler or
8389 that of libraries supplied with it.  These are HP-UX specific flags.
8390 .IP "\fB\-milp32\fR" 4
8391 .IX Item "-milp32"
8392 .PD 0
8393 .IP "\fB\-mlp64\fR" 4
8394 .IX Item "-mlp64"
8395 .PD
8396 Generate code for a 32\-bit or 64\-bit environment.
8397 The 32\-bit environment sets int, long and pointer to 32 bits.
8398 The 64\-bit environment sets int to 32 bits and long and pointer
8399 to 64 bits.  These are HP-UX specific flags.
8400 .PP
8401 \fIM32R/D Options\fR
8402 .IX Subsection "M32R/D Options"
8403 .PP
8404 These \fB\-m\fR options are defined for Renesas M32R/D architectures:
8405 .IP "\fB\-m32r2\fR" 4
8406 .IX Item "-m32r2"
8407 Generate code for the M32R/2.
8408 .IP "\fB\-m32rx\fR" 4
8409 .IX Item "-m32rx"
8410 Generate code for the M32R/X.
8411 .IP "\fB\-m32r\fR" 4
8412 .IX Item "-m32r"
8413 Generate code for the M32R.  This is the default.
8414 .IP "\fB\-mmodel=small\fR" 4
8415 .IX Item "-mmodel=small"
8416 Assume all objects live in the lower 16MB of memory (so that their addresses
8417 can be loaded with the \f(CW\*(C`ld24\*(C'\fR instruction), and assume all subroutines
8418 are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
8419 This is the default.
8420 .Sp
8421 The addressability of a particular object can be set with the
8422 \&\f(CW\*(C`model\*(C'\fR attribute.
8423 .IP "\fB\-mmodel=medium\fR" 4
8424 .IX Item "-mmodel=medium"
8425 Assume objects may be anywhere in the 32\-bit address space (the compiler
8426 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
8427 assume all subroutines are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
8428 .IP "\fB\-mmodel=large\fR" 4
8429 .IX Item "-mmodel=large"
8430 Assume objects may be anywhere in the 32\-bit address space (the compiler
8431 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
8432 assume subroutines may not be reachable with the \f(CW\*(C`bl\*(C'\fR instruction
8433 (the compiler will generate the much slower \f(CW\*(C`seth/add3/jl\*(C'\fR
8434 instruction sequence).
8435 .IP "\fB\-msdata=none\fR" 4
8436 .IX Item "-msdata=none"
8437 Disable use of the small data area.  Variables will be put into
8438 one of \fB.data\fR, \fBbss\fR, or \fB.rodata\fR (unless the
8439 \&\f(CW\*(C`section\*(C'\fR attribute has been specified).
8440 This is the default.
8441 .Sp
8442 The small data area consists of sections \fB.sdata\fR and \fB.sbss\fR.
8443 Objects may be explicitly put in the small data area with the
8444 \&\f(CW\*(C`section\*(C'\fR attribute using one of these sections.
8445 .IP "\fB\-msdata=sdata\fR" 4
8446 .IX Item "-msdata=sdata"
8447 Put small global and static data in the small data area, but do not
8448 generate special code to reference them.
8449 .IP "\fB\-msdata=use\fR" 4
8450 .IX Item "-msdata=use"
8451 Put small global and static data in the small data area, and generate
8452 special instructions to reference them.
8453 .IP "\fB\-G\fR \fInum\fR" 4
8454 .IX Item "-G num"
8455 Put global and static objects less than or equal to \fInum\fR bytes
8456 into the small data or bss sections instead of the normal data or bss
8457 sections.  The default value of \fInum\fR is 8.
8458 The \fB\-msdata\fR option must be set to one of \fBsdata\fR or \fBuse\fR
8459 for this option to have any effect.
8460 .Sp
8461 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
8462 Compiling with different values of \fInum\fR may or may not work; if it
8463 doesn't the linker will give an error message\-\-\-incorrect code will not be
8464 generated.
8465 .IP "\fB\-mdebug\fR" 4
8466 .IX Item "-mdebug"
8467 Makes the M32R specific code in the compiler display some statistics
8468 that might help in debugging programs.
8469 .IP "\fB\-malign\-loops\fR" 4
8470 .IX Item "-malign-loops"
8471 Align all loops to a 32\-byte boundary.
8472 .IP "\fB\-mno\-align\-loops\fR" 4
8473 .IX Item "-mno-align-loops"
8474 Do not enforce a 32\-byte alignment for loops.  This is the default.
8475 .IP "\fB\-missue\-rate=\fR\fInumber\fR" 4
8476 .IX Item "-missue-rate=number"
8477 Issue \fInumber\fR instructions per cycle.  \fInumber\fR can only be 1
8478 or 2.
8479 .IP "\fB\-mbranch\-cost=\fR\fInumber\fR" 4
8480 .IX Item "-mbranch-cost=number"
8481 \&\fInumber\fR can only be 1 or 2.  If it is 1 then branches will be
8482 preferred over conditional code, if it is 2, then the opposite will
8483 apply.
8484 .IP "\fB\-mflush\-trap=\fR\fInumber\fR" 4
8485 .IX Item "-mflush-trap=number"
8486 Specifies the trap number to use to flush the cache.  The default is
8487 12.  Valid numbers are between 0 and 15 inclusive.
8488 .IP "\fB\-mno\-flush\-trap\fR" 4
8489 .IX Item "-mno-flush-trap"
8490 Specifies that the cache cannot be flushed by using a trap.
8491 .IP "\fB\-mflush\-func=\fR\fIname\fR" 4
8492 .IX Item "-mflush-func=name"
8493 Specifies the name of the operating system function to call to flush
8494 the cache.  The default is \fI_flush_cache\fR, but a function call
8495 will only be used if a trap is not available.
8496 .IP "\fB\-mno\-flush\-func\fR" 4
8497 .IX Item "-mno-flush-func"
8498 Indicates that there is no \s-1OS\s0 function for flushing the cache.
8499 .PP
8500 \fIM680x0 Options\fR
8501 .IX Subsection "M680x0 Options"
8502 .PP
8503 These are the \fB\-m\fR options defined for the 68000 series.  The default
8504 values for these options depends on which style of 68000 was selected when
8505 the compiler was configured; the defaults for the most common choices are
8506 given below.
8507 .IP "\fB\-m68000\fR" 4
8508 .IX Item "-m68000"
8509 .PD 0
8510 .IP "\fB\-mc68000\fR" 4
8511 .IX Item "-mc68000"
8512 .PD
8513 Generate output for a 68000.  This is the default
8514 when the compiler is configured for 68000\-based systems.
8515 .Sp
8516 Use this option for microcontrollers with a 68000 or \s-1EC000\s0 core,
8517 including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
8518 .IP "\fB\-m68020\fR" 4
8519 .IX Item "-m68020"
8520 .PD 0
8521 .IP "\fB\-mc68020\fR" 4
8522 .IX Item "-mc68020"
8523 .PD
8524 Generate output for a 68020.  This is the default
8525 when the compiler is configured for 68020\-based systems.
8526 .IP "\fB\-m68881\fR" 4
8527 .IX Item "-m68881"
8528 Generate output containing 68881 instructions for floating point.
8529 This is the default for most 68020 systems unless \fB\-\-nfp\fR was
8530 specified when the compiler was configured.
8531 .IP "\fB\-m68030\fR" 4
8532 .IX Item "-m68030"
8533 Generate output for a 68030.  This is the default when the compiler is
8534 configured for 68030\-based systems.
8535 .IP "\fB\-m68040\fR" 4
8536 .IX Item "-m68040"
8537 Generate output for a 68040.  This is the default when the compiler is
8538 configured for 68040\-based systems.
8539 .Sp
8540 This option inhibits the use of 68881/68882 instructions that have to be
8541 emulated by software on the 68040.  Use this option if your 68040 does not
8542 have code to emulate those instructions.
8543 .IP "\fB\-m68060\fR" 4
8544 .IX Item "-m68060"
8545 Generate output for a 68060.  This is the default when the compiler is
8546 configured for 68060\-based systems.
8547 .Sp
8548 This option inhibits the use of 68020 and 68881/68882 instructions that
8549 have to be emulated by software on the 68060.  Use this option if your 68060
8550 does not have code to emulate those instructions.
8551 .IP "\fB\-mcpu32\fR" 4
8552 .IX Item "-mcpu32"
8553 Generate output for a \s-1CPU32\s0.  This is the default
8554 when the compiler is configured for CPU32\-based systems.
8555 .Sp
8556 Use this option for microcontrollers with a
8557 \&\s-1CPU32\s0 or \s-1CPU32+\s0 core, including the 68330, 68331, 68332, 68333, 68334,
8558 68336, 68340, 68341, 68349 and 68360.
8559 .IP "\fB\-m5200\fR" 4
8560 .IX Item "-m5200"
8561 Generate output for a 520X ``coldfire'' family cpu.  This is the default
8562 when the compiler is configured for 520X\-based systems.
8563 .Sp
8564 Use this option for microcontroller with a 5200 core, including
8565 the \s-1MCF5202\s0, \s-1MCF5203\s0, \s-1MCF5204\s0 and \s-1MCF5202\s0.
8566 .IP "\fB\-m68020\-40\fR" 4
8567 .IX Item "-m68020-40"
8568 Generate output for a 68040, without using any of the new instructions.
8569 This results in code which can run relatively efficiently on either a
8570 68020/68881 or a 68030 or a 68040.  The generated code does use the
8571 68881 instructions that are emulated on the 68040.
8572 .IP "\fB\-m68020\-60\fR" 4
8573 .IX Item "-m68020-60"
8574 Generate output for a 68060, without using any of the new instructions.
8575 This results in code which can run relatively efficiently on either a
8576 68020/68881 or a 68030 or a 68040.  The generated code does use the
8577 68881 instructions that are emulated on the 68060.
8578 .IP "\fB\-msoft\-float\fR" 4
8579 .IX Item "-msoft-float"
8580 Generate output containing library calls for floating point.
8581 \&\fBWarning:\fR the requisite libraries are not available for all m68k
8582 targets.  Normally the facilities of the machine's usual C compiler are
8583 used, but this can't be done directly in cross\-compilation.  You must
8584 make your own arrangements to provide suitable library functions for
8585 cross\-compilation.  The embedded targets \fBm68k\-*\-aout\fR and
8586 \&\fBm68k\-*\-coff\fR do provide software floating point support.
8587 .IP "\fB\-mshort\fR" 4
8588 .IX Item "-mshort"
8589 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
8590 Additionally, parameters passed on the stack are also aligned to a
8591 16\-bit boundary even on targets whose \s-1API\s0 mandates promotion to 32\-bit.
8592 .IP "\fB\-mnobitfield\fR" 4
8593 .IX Item "-mnobitfield"
8594 Do not use the bit-field instructions.  The \fB\-m68000\fR, \fB\-mcpu32\fR
8595 and \fB\-m5200\fR options imply \fB\-mnobitfield\fR.
8596 .IP "\fB\-mbitfield\fR" 4
8597 .IX Item "-mbitfield"
8598 Do use the bit-field instructions.  The \fB\-m68020\fR option implies
8599 \&\fB\-mbitfield\fR.  This is the default if you use a configuration
8600 designed for a 68020.
8601 .IP "\fB\-mrtd\fR" 4
8602 .IX Item "-mrtd"
8603 Use a different function-calling convention, in which functions
8604 that take a fixed number of arguments return with the \f(CW\*(C`rtd\*(C'\fR
8605 instruction, which pops their arguments while returning.  This
8606 saves one instruction in the caller since there is no need to pop
8607 the arguments there.
8608 .Sp
8609 This calling convention is incompatible with the one normally
8610 used on Unix, so you cannot use it if you need to call libraries
8611 compiled with the Unix compiler.
8612 .Sp
8613 Also, you must provide function prototypes for all functions that
8614 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
8615 otherwise incorrect code will be generated for calls to those
8616 functions.
8617 .Sp
8618 In addition, seriously incorrect code will result if you call a
8619 function with too many arguments.  (Normally, extra arguments are
8620 harmlessly ignored.)
8621 .Sp
8622 The \f(CW\*(C`rtd\*(C'\fR instruction is supported by the 68010, 68020, 68030,
8623 68040, 68060 and \s-1CPU32\s0 processors, but not by the 68000 or 5200.
8624 .IP "\fB\-malign\-int\fR" 4
8625 .IX Item "-malign-int"
8626 .PD 0
8627 .IP "\fB\-mno\-align\-int\fR" 4
8628 .IX Item "-mno-align-int"
8629 .PD
8630 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,
8631 \&\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
8632 boundary (\fB\-malign\-int\fR) or a 16\-bit boundary (\fB\-mno\-align\-int\fR).
8633 Aligning variables on 32\-bit boundaries produces code that runs somewhat
8634 faster on processors with 32\-bit busses at the expense of more memory.
8635 .Sp
8636 \&\fBWarning:\fR if you use the \fB\-malign\-int\fR switch, \s-1GCC\s0 will
8637 align structures containing the above types  differently than
8638 most published application binary interface specifications for the m68k.
8639 .IP "\fB\-mpcrel\fR" 4
8640 .IX Item "-mpcrel"
8641 Use the pc-relative addressing mode of the 68000 directly, instead of
8642 using a global offset table.  At present, this option implies \fB\-fpic\fR,
8643 allowing at most a 16\-bit offset for pc-relative addressing.  \fB\-fPIC\fR is
8644 not presently supported with \fB\-mpcrel\fR, though this could be supported for
8645 68020 and higher processors.
8646 .IP "\fB\-mno\-strict\-align\fR" 4
8647 .IX Item "-mno-strict-align"
8648 .PD 0
8649 .IP "\fB\-mstrict\-align\fR" 4
8650 .IX Item "-mstrict-align"
8651 .PD
8652 Do not (do) assume that unaligned memory references will be handled by
8653 the system.
8654 .IP "\fB\-msep\-data\fR" 4
8655 .IX Item "-msep-data"
8656 Generate code that allows the data segment to be located in a different
8657 area of memory from the text segment.  This allows for execute in place in
8658 an environment without virtual memory management.  This option implies
8659 \&\fB\-fPIC\fR.
8660 .IP "\fB\-mno\-sep\-data\fR" 4
8661 .IX Item "-mno-sep-data"
8662 Generate code that assumes that the data segment follows the text segment.
8663 This is the default.
8664 .IP "\fB\-mid\-shared\-library\fR" 4
8665 .IX Item "-mid-shared-library"
8666 Generate code that supports shared libraries via the library \s-1ID\s0 method.
8667 This allows for execute in place and shared libraries in an environment
8668 without virtual memory management.  This option implies \fB\-fPIC\fR.
8669 .IP "\fB\-mno\-id\-shared\-library\fR" 4
8670 .IX Item "-mno-id-shared-library"
8671 Generate code that doesn't assume \s-1ID\s0 based shared libraries are being used.
8672 This is the default.
8673 .IP "\fB\-mshared\-library\-id=n\fR" 4
8674 .IX Item "-mshared-library-id=n"
8675 Specified the identification number of the \s-1ID\s0 based shared library being
8676 compiled.  Specifying a value of 0 will generate more compact code, specifying
8677 other values will force the allocation of that number to the current
8678 library but is no more space or time efficient than omitting this option.
8679 .PP
8680 \fIM68hc1x Options\fR
8681 .IX Subsection "M68hc1x Options"
8682 .PP
8683 These are the \fB\-m\fR options defined for the 68hc11 and 68hc12
8684 microcontrollers.  The default values for these options depends on
8685 which style of microcontroller was selected when the compiler was configured;
8686 the defaults for the most common choices are given below.
8687 .IP "\fB\-m6811\fR" 4
8688 .IX Item "-m6811"
8689 .PD 0
8690 .IP "\fB\-m68hc11\fR" 4
8691 .IX Item "-m68hc11"
8692 .PD
8693 Generate output for a 68HC11.  This is the default
8694 when the compiler is configured for 68HC11\-based systems.
8695 .IP "\fB\-m6812\fR" 4
8696 .IX Item "-m6812"
8697 .PD 0
8698 .IP "\fB\-m68hc12\fR" 4
8699 .IX Item "-m68hc12"
8700 .PD
8701 Generate output for a 68HC12.  This is the default
8702 when the compiler is configured for 68HC12\-based systems.
8703 .IP "\fB\-m68S12\fR" 4
8704 .IX Item "-m68S12"
8705 .PD 0
8706 .IP "\fB\-m68hcs12\fR" 4
8707 .IX Item "-m68hcs12"
8708 .PD
8709 Generate output for a 68HCS12.
8710 .IP "\fB\-mauto\-incdec\fR" 4
8711 .IX Item "-mauto-incdec"
8712 Enable the use of 68HC12 pre and post auto-increment and auto-decrement
8713 addressing modes.
8714 .IP "\fB\-minmax\fR" 4
8715 .IX Item "-minmax"
8716 .PD 0
8717 .IP "\fB\-nominmax\fR" 4
8718 .IX Item "-nominmax"
8719 .PD
8720 Enable the use of 68HC12 min and max instructions.
8721 .IP "\fB\-mlong\-calls\fR" 4
8722 .IX Item "-mlong-calls"
8723 .PD 0
8724 .IP "\fB\-mno\-long\-calls\fR" 4
8725 .IX Item "-mno-long-calls"
8726 .PD
8727 Treat all calls as being far away (near).  If calls are assumed to be
8728 far away, the compiler will use the \f(CW\*(C`call\*(C'\fR instruction to
8729 call a function and the \f(CW\*(C`rtc\*(C'\fR instruction for returning.
8730 .IP "\fB\-mshort\fR" 4
8731 .IX Item "-mshort"
8732 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
8733 .IP "\fB\-msoft\-reg\-count=\fR\fIcount\fR" 4
8734 .IX Item "-msoft-reg-count=count"
8735 Specify the number of pseudo-soft registers which are used for the
8736 code generation.  The maximum number is 32.  Using more pseudo-soft
8737 register may or may not result in better code depending on the program.
8738 The default is 4 for 68HC11 and 2 for 68HC12.
8739 .PP
8740 \fIMCore Options\fR
8741 .IX Subsection "MCore Options"
8742 .PP
8743 These are the \fB\-m\fR options defined for the Motorola M*Core
8744 processors.
8745 .IP "\fB\-mhardlit\fR" 4
8746 .IX Item "-mhardlit"
8747 .PD 0
8748 .IP "\fB\-mno\-hardlit\fR" 4
8749 .IX Item "-mno-hardlit"
8750 .PD
8751 Inline constants into the code stream if it can be done in two
8752 instructions or less.
8753 .IP "\fB\-mdiv\fR" 4
8754 .IX Item "-mdiv"
8755 .PD 0
8756 .IP "\fB\-mno\-div\fR" 4
8757 .IX Item "-mno-div"
8758 .PD
8759 Use the divide instruction.  (Enabled by default).
8760 .IP "\fB\-mrelax\-immediate\fR" 4
8761 .IX Item "-mrelax-immediate"
8762 .PD 0
8763 .IP "\fB\-mno\-relax\-immediate\fR" 4
8764 .IX Item "-mno-relax-immediate"
8765 .PD
8766 Allow arbitrary sized immediates in bit operations.
8767 .IP "\fB\-mwide\-bitfields\fR" 4
8768 .IX Item "-mwide-bitfields"
8769 .PD 0
8770 .IP "\fB\-mno\-wide\-bitfields\fR" 4
8771 .IX Item "-mno-wide-bitfields"
8772 .PD
8773 Always treat bit-fields as int\-sized.
8774 .IP "\fB\-m4byte\-functions\fR" 4
8775 .IX Item "-m4byte-functions"
8776 .PD 0
8777 .IP "\fB\-mno\-4byte\-functions\fR" 4
8778 .IX Item "-mno-4byte-functions"
8779 .PD
8780 Force all functions to be aligned to a four byte boundary.
8781 .IP "\fB\-mcallgraph\-data\fR" 4
8782 .IX Item "-mcallgraph-data"
8783 .PD 0
8784 .IP "\fB\-mno\-callgraph\-data\fR" 4
8785 .IX Item "-mno-callgraph-data"
8786 .PD
8787 Emit callgraph information.
8788 .IP "\fB\-mslow\-bytes\fR" 4
8789 .IX Item "-mslow-bytes"
8790 .PD 0
8791 .IP "\fB\-mno\-slow\-bytes\fR" 4
8792 .IX Item "-mno-slow-bytes"
8793 .PD
8794 Prefer word access when reading byte quantities.
8795 .IP "\fB\-mlittle\-endian\fR" 4
8796 .IX Item "-mlittle-endian"
8797 .PD 0
8798 .IP "\fB\-mbig\-endian\fR" 4
8799 .IX Item "-mbig-endian"
8800 .PD
8801 Generate code for a little endian target.
8802 .IP "\fB\-m210\fR" 4
8803 .IX Item "-m210"
8804 .PD 0
8805 .IP "\fB\-m340\fR" 4
8806 .IX Item "-m340"
8807 .PD
8808 Generate code for the 210 processor.
8809 .PP
8810 \fI\s-1MIPS\s0 Options\fR
8811 .IX Subsection "MIPS Options"
8812 .IP "\fB\-EB\fR" 4
8813 .IX Item "-EB"
8814 Generate big-endian code.
8815 .IP "\fB\-EL\fR" 4
8816 .IX Item "-EL"
8817 Generate little-endian code.  This is the default for \fBmips*el\-*\-*\fR
8818 configurations.
8819 .IP "\fB\-march=\fR\fIarch\fR" 4
8820 .IX Item "-march=arch"
8821 Generate code that will run on \fIarch\fR, which can be the name of a
8822 generic \s-1MIPS\s0 \s-1ISA\s0, or the name of a particular processor.
8823 The \s-1ISA\s0 names are:
8824 \&\fBmips1\fR, \fBmips2\fR, \fBmips3\fR, \fBmips4\fR,
8825 \&\fBmips32\fR, \fBmips32r2\fR, and \fBmips64\fR.
8826 The processor names are:
8827 \&\fB4kc\fR, \fB4kp\fR, \fB5kc\fR, \fB20kc\fR,
8828 \&\fBm4k\fR,
8829 \&\fBr2000\fR, \fBr3000\fR, \fBr3900\fR, \fBr4000\fR, \fBr4400\fR,
8830 \&\fBr4600\fR, \fBr4650\fR, \fBr6000\fR, \fBr8000\fR, \fBrm7000\fR,
8831 \&\fBrm9000\fR,
8832 \&\fBorion\fR,
8833 \&\fBsb1\fR,
8834 \&\fBvr4100\fR, \fBvr4111\fR, \fBvr4120\fR, \fBvr4130\fR, \fBvr4300\fR,
8835 \&\fBvr5000\fR, \fBvr5400\fR and \fBvr5500\fR.
8836 The special value \fBfrom-abi\fR selects the
8837 most compatible architecture for the selected \s-1ABI\s0 (that is,
8838 \&\fBmips1\fR for 32\-bit ABIs and \fBmips3\fR for 64\-bit ABIs).
8839 .Sp
8840 In processor names, a final \fB000\fR can be abbreviated as \fBk\fR
8841 (for example, \fB\-march=r2k\fR).  Prefixes are optional, and
8842 \&\fBvr\fR may be written \fBr\fR.
8843 .Sp
8844 \&\s-1GCC\s0 defines two macros based on the value of this option.  The first
8845 is \fB_MIPS_ARCH\fR, which gives the name of target architecture, as
8846 a string.  The second has the form \fB_MIPS_ARCH_\fR\fIfoo\fR,
8847 where \fIfoo\fR is the capitalized value of \fB_MIPS_ARCH\fR.
8848 For example, \fB\-march=r2000\fR will set \fB_MIPS_ARCH\fR
8849 to \fB\*(L"r2000\*(R"\fR and define the macro \fB_MIPS_ARCH_R2000\fR.
8850 .Sp
8851 Note that the \fB_MIPS_ARCH\fR macro uses the processor names given
8852 above.  In other words, it will have the full prefix and will not
8853 abbreviate \fB000\fR as \fBk\fR.  In the case of \fBfrom-abi\fR,
8854 the macro names the resolved architecture (either \fB\*(L"mips1\*(R"\fR or
8855 \&\fB\*(L"mips3\*(R"\fR).  It names the default architecture when no
8856 \&\fB\-march\fR option is given.
8857 .IP "\fB\-mtune=\fR\fIarch\fR" 4
8858 .IX Item "-mtune=arch"
8859 Optimize for \fIarch\fR.  Among other things, this option controls
8860 the way instructions are scheduled, and the perceived cost of arithmetic
8861 operations.  The list of \fIarch\fR values is the same as for
8862 \&\fB\-march\fR.
8863 .Sp
8864 When this option is not used, \s-1GCC\s0 will optimize for the processor
8865 specified by \fB\-march\fR.  By using \fB\-march\fR and
8866 \&\fB\-mtune\fR together, it is possible to generate code that will
8867 run on a family of processors, but optimize the code for one
8868 particular member of that family.
8869 .Sp
8870 \&\fB\-mtune\fR defines the macros \fB_MIPS_TUNE\fR and
8871 \&\fB_MIPS_TUNE_\fR\fIfoo\fR, which work in the same way as the
8872 \&\fB\-march\fR ones described above.
8873 .IP "\fB\-mips1\fR" 4
8874 .IX Item "-mips1"
8875 Equivalent to \fB\-march=mips1\fR.
8876 .IP "\fB\-mips2\fR" 4
8877 .IX Item "-mips2"
8878 Equivalent to \fB\-march=mips2\fR.
8879 .IP "\fB\-mips3\fR" 4
8880 .IX Item "-mips3"
8881 Equivalent to \fB\-march=mips3\fR.
8882 .IP "\fB\-mips4\fR" 4
8883 .IX Item "-mips4"
8884 Equivalent to \fB\-march=mips4\fR.
8885 .IP "\fB\-mips32\fR" 4
8886 .IX Item "-mips32"
8887 Equivalent to \fB\-march=mips32\fR.
8888 .IP "\fB\-mips32r2\fR" 4
8889 .IX Item "-mips32r2"
8890 Equivalent to \fB\-march=mips32r2\fR.
8891 .IP "\fB\-mips64\fR" 4
8892 .IX Item "-mips64"
8893 Equivalent to \fB\-march=mips64\fR.
8894 .IP "\fB\-mips16\fR" 4
8895 .IX Item "-mips16"
8896 .PD 0
8897 .IP "\fB\-mno\-mips16\fR" 4
8898 .IX Item "-mno-mips16"
8899 .PD
8900 Use (do not use) the \s-1MIPS16\s0 \s-1ISA\s0.
8901 .IP "\fB\-mabi=32\fR" 4
8902 .IX Item "-mabi=32"
8903 .PD 0
8904 .IP "\fB\-mabi=o64\fR" 4
8905 .IX Item "-mabi=o64"
8906 .IP "\fB\-mabi=n32\fR" 4
8907 .IX Item "-mabi=n32"
8908 .IP "\fB\-mabi=64\fR" 4
8909 .IX Item "-mabi=64"
8910 .IP "\fB\-mabi=eabi\fR" 4
8911 .IX Item "-mabi=eabi"
8912 .PD
8913 Generate code for the given \s-1ABI\s0.
8914 .Sp
8915 Note that the \s-1EABI\s0 has a 32\-bit and a 64\-bit variant.  \s-1GCC\s0 normally
8916 generates 64\-bit code when you select a 64\-bit architecture, but you
8917 can use \fB\-mgp32\fR to get 32\-bit code instead.
8918 .Sp
8919 For information about the O64 \s-1ABI\s0, see
8920 <\fBhttp://gcc.gnu.org/projects/mipso64\-abi.html\fR>.
8921 .IP "\fB\-mabicalls\fR" 4
8922 .IX Item "-mabicalls"
8923 .PD 0
8924 .IP "\fB\-mno\-abicalls\fR" 4
8925 .IX Item "-mno-abicalls"
8926 .PD
8927 Generate (do not generate) SVR4\-style position-independent code.
8928 \&\fB\-mabicalls\fR is the default for SVR4\-based systems.
8929 .IP "\fB\-mxgot\fR" 4
8930 .IX Item "-mxgot"
8931 .PD 0
8932 .IP "\fB\-mno\-xgot\fR" 4
8933 .IX Item "-mno-xgot"
8934 .PD
8935 Lift (do not lift) the usual restrictions on the size of the global
8936 offset table.
8937 .Sp
8938 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT\s0.
8939 While this is relatively efficient, it will only work if the \s-1GOT\s0
8940 is smaller than about 64k.  Anything larger will cause the linker
8941 to report an error such as:
8942 .Sp
8943 .Vb 1
8944 \&        relocation truncated to fit: R_MIPS_GOT16 foobar
8945 .Ve
8946 .Sp
8947 If this happens, you should recompile your code with \fB\-mxgot\fR.
8948 It should then work with very large GOTs, although it will also be
8949 less efficient, since it will take three instructions to fetch the
8950 value of a global symbol.
8951 .Sp
8952 Note that some linkers can create multiple GOTs.  If you have such a
8953 linker, you should only need to use \fB\-mxgot\fR when a single object
8954 file accesses more than 64k's worth of \s-1GOT\s0 entries.  Very few do.
8955 .Sp
8956 These options have no effect unless \s-1GCC\s0 is generating position
8957 independent code.
8958 .IP "\fB\-mgp32\fR" 4
8959 .IX Item "-mgp32"
8960 Assume that general-purpose registers are 32 bits wide.
8961 .IP "\fB\-mgp64\fR" 4
8962 .IX Item "-mgp64"
8963 Assume that general-purpose registers are 64 bits wide.
8964 .IP "\fB\-mfp32\fR" 4
8965 .IX Item "-mfp32"
8966 Assume that floating-point registers are 32 bits wide.
8967 .IP "\fB\-mfp64\fR" 4
8968 .IX Item "-mfp64"
8969 Assume that floating-point registers are 64 bits wide.
8970 .IP "\fB\-mhard\-float\fR" 4
8971 .IX Item "-mhard-float"
8972 Use floating-point coprocessor instructions.
8973 .IP "\fB\-msoft\-float\fR" 4
8974 .IX Item "-msoft-float"
8975 Do not use floating-point coprocessor instructions.  Implement
8976 floating-point calculations using library calls instead.
8977 .IP "\fB\-msingle\-float\fR" 4
8978 .IX Item "-msingle-float"
8979 Assume that the floating-point coprocessor only supports single-precision
8980 operations.
8981 .IP "\fB\-mdouble\-float\fR" 4
8982 .IX Item "-mdouble-float"
8983 Assume that the floating-point coprocessor supports double-precision
8984 operations.  This is the default.
8985 .IP "\fB\-mpaired\-single\fR" 4
8986 .IX Item "-mpaired-single"
8987 .PD 0
8988 .IP "\fB\-mno\-paired\-single\fR" 4
8989 .IX Item "-mno-paired-single"
8990 .PD
8991 Use (do not use) paired-single floating-point instructions.
8992   This option can only be used
8993 when generating 64\-bit code and requires hardware floating-point
8994 support to be enabled.
8995 .IP "\fB\-mips3d\fR" 4
8996 .IX Item "-mips3d"
8997 .PD 0
8998 .IP "\fB\-mno\-mips3d\fR" 4
8999 .IX Item "-mno-mips3d"
9000 .PD
9001 Use (do not use) the \s-1MIPS\-3D\s0 \s-1ASE\s0.  
9002 The option \fB\-mips3d\fR implies \fB\-mpaired\-single\fR.
9003 .IP "\fB\-mint64\fR" 4
9004 .IX Item "-mint64"
9005 Force \f(CW\*(C`int\*(C'\fR and \f(CW\*(C`long\*(C'\fR types to be 64 bits wide.  See
9006 \&\fB\-mlong32\fR for an explanation of the default and the way
9007 that the pointer size is determined.
9008 .Sp
9009 This option has been deprecated and will be removed in a future release.
9010 .IP "\fB\-mlong64\fR" 4
9011 .IX Item "-mlong64"
9012 Force \f(CW\*(C`long\*(C'\fR types to be 64 bits wide.  See \fB\-mlong32\fR for
9013 an explanation of the default and the way that the pointer size is
9014 determined.
9015 .IP "\fB\-mlong32\fR" 4
9016 .IX Item "-mlong32"
9017 Force \f(CW\*(C`long\*(C'\fR, \f(CW\*(C`int\*(C'\fR, and pointer types to be 32 bits wide.
9018 .Sp
9019 The default size of \f(CW\*(C`int\*(C'\fRs, \f(CW\*(C`long\*(C'\fRs and pointers depends on
9020 the \s-1ABI\s0.  All the supported ABIs use 32\-bit \f(CW\*(C`int\*(C'\fRs.  The n64 \s-1ABI\s0
9021 uses 64\-bit \f(CW\*(C`long\*(C'\fRs, as does the 64\-bit \s-1EABI\s0; the others use
9022 32\-bit \f(CW\*(C`long\*(C'\fRs.  Pointers are the same size as \f(CW\*(C`long\*(C'\fRs,
9023 or the same size as integer registers, whichever is smaller.
9024 .IP "\fB\-msym32\fR" 4
9025 .IX Item "-msym32"
9026 .PD 0
9027 .IP "\fB\-mno\-sym32\fR" 4
9028 .IX Item "-mno-sym32"
9029 .PD
9030 Assume (do not assume) that all symbols have 32\-bit values, regardless
9031 of the selected \s-1ABI\s0.  This option is useful in combination with
9032 \&\fB\-mabi=64\fR and \fB\-mno\-abicalls\fR because it allows \s-1GCC\s0
9033 to generate shorter and faster references to symbolic addresses.
9034 .IP "\fB\-G\fR \fInum\fR" 4
9035 .IX Item "-G num"
9036 Put global and static items less than or equal to \fInum\fR bytes into
9037 the small data or bss section instead of the normal data or bss section.
9038 This allows the data to be accessed using a single instruction.
9039 .Sp
9040 All modules should be compiled with the same \fB\-G\fR \fInum\fR
9041 value.
9042 .IP "\fB\-membedded\-data\fR" 4
9043 .IX Item "-membedded-data"
9044 .PD 0
9045 .IP "\fB\-mno\-embedded\-data\fR" 4
9046 .IX Item "-mno-embedded-data"
9047 .PD
9048 Allocate variables to the read-only data section first if possible, then
9049 next in the small data section if possible, otherwise in data.  This gives
9050 slightly slower code than the default, but reduces the amount of \s-1RAM\s0 required
9051 when executing, and thus may be preferred for some embedded systems.
9052 .IP "\fB\-muninit\-const\-in\-rodata\fR" 4
9053 .IX Item "-muninit-const-in-rodata"
9054 .PD 0
9055 .IP "\fB\-mno\-uninit\-const\-in\-rodata\fR" 4
9056 .IX Item "-mno-uninit-const-in-rodata"
9057 .PD
9058 Put uninitialized \f(CW\*(C`const\*(C'\fR variables in the read-only data section.
9059 This option is only meaningful in conjunction with \fB\-membedded\-data\fR.
9060 .IP "\fB\-msplit\-addresses\fR" 4
9061 .IX Item "-msplit-addresses"
9062 .PD 0
9063 .IP "\fB\-mno\-split\-addresses\fR" 4
9064 .IX Item "-mno-split-addresses"
9065 .PD
9066 Enable (disable) use of the \f(CW\*(C`%hi()\*(C'\fR and \f(CW\*(C`%lo()\*(C'\fR assembler
9067 relocation operators.  This option has been superseded by
9068 \&\fB\-mexplicit\-relocs\fR but is retained for backwards compatibility.
9069 .IP "\fB\-mexplicit\-relocs\fR" 4
9070 .IX Item "-mexplicit-relocs"
9071 .PD 0
9072 .IP "\fB\-mno\-explicit\-relocs\fR" 4
9073 .IX Item "-mno-explicit-relocs"
9074 .PD
9075 Use (do not use) assembler relocation operators when dealing with symbolic
9076 addresses.  The alternative, selected by \fB\-mno\-explicit\-relocs\fR,
9077 is to use assembler macros instead.
9078 .Sp
9079 \&\fB\-mexplicit\-relocs\fR is the default if \s-1GCC\s0 was configured
9080 to use an assembler that supports relocation operators.
9081 .IP "\fB\-mcheck\-zero\-division\fR" 4
9082 .IX Item "-mcheck-zero-division"
9083 .PD 0
9084 .IP "\fB\-mno\-check\-zero\-division\fR" 4
9085 .IX Item "-mno-check-zero-division"
9086 .PD
9087 Trap (do not trap) on integer division by zero.  The default is
9088 \&\fB\-mcheck\-zero\-division\fR.
9089 .IP "\fB\-mdivide\-traps\fR" 4
9090 .IX Item "-mdivide-traps"
9091 .PD 0
9092 .IP "\fB\-mdivide\-breaks\fR" 4
9093 .IX Item "-mdivide-breaks"
9094 .PD
9095 \&\s-1MIPS\s0 systems check for division by zero by generating either a
9096 conditional trap or a break instruction.  Using traps results in
9097 smaller code, but is only supported on \s-1MIPS\s0 \s-1II\s0 and later.  Also, some
9098 versions of the Linux kernel have a bug that prevents trap from
9099 generating the proper signal (\f(CW\*(C`SIGFPE\*(C'\fR).  Use \fB\-mdivide\-traps\fR to
9100 allow conditional traps on architectures that support them and
9101 \&\fB\-mdivide\-breaks\fR to force the use of breaks.
9102 .Sp
9103 The default is usually \fB\-mdivide\-traps\fR, but this can be
9104 overridden at configure time using \fB\-\-with\-divide=breaks\fR.
9105 Divide-by-zero checks can be completely disabled using
9106 \&\fB\-mno\-check\-zero\-division\fR.
9107 .IP "\fB\-mmemcpy\fR" 4
9108 .IX Item "-mmemcpy"
9109 .PD 0
9110 .IP "\fB\-mno\-memcpy\fR" 4
9111 .IX Item "-mno-memcpy"
9112 .PD
9113 Force (do not force) the use of \f(CW\*(C`memcpy()\*(C'\fR for non-trivial block
9114 moves.  The default is \fB\-mno\-memcpy\fR, which allows \s-1GCC\s0 to inline
9115 most constant-sized copies.
9116 .IP "\fB\-mlong\-calls\fR" 4
9117 .IX Item "-mlong-calls"
9118 .PD 0
9119 .IP "\fB\-mno\-long\-calls\fR" 4
9120 .IX Item "-mno-long-calls"
9121 .PD
9122 Disable (do not disable) use of the \f(CW\*(C`jal\*(C'\fR instruction.  Calling
9123 functions using \f(CW\*(C`jal\*(C'\fR is more efficient but requires the caller
9124 and callee to be in the same 256 megabyte segment.
9125 .Sp
9126 This option has no effect on abicalls code.  The default is
9127 \&\fB\-mno\-long\-calls\fR.
9128 .IP "\fB\-mmad\fR" 4
9129 .IX Item "-mmad"
9130 .PD 0
9131 .IP "\fB\-mno\-mad\fR" 4
9132 .IX Item "-mno-mad"
9133 .PD
9134 Enable (disable) use of the \f(CW\*(C`mad\*(C'\fR, \f(CW\*(C`madu\*(C'\fR and \f(CW\*(C`mul\*(C'\fR
9135 instructions, as provided by the R4650 \s-1ISA\s0.
9136 .IP "\fB\-mfused\-madd\fR" 4
9137 .IX Item "-mfused-madd"
9138 .PD 0
9139 .IP "\fB\-mno\-fused\-madd\fR" 4
9140 .IX Item "-mno-fused-madd"
9141 .PD
9142 Enable (disable) use of the floating point multiply-accumulate
9143 instructions, when they are available.  The default is
9144 \&\fB\-mfused\-madd\fR.
9145 .Sp
9146 When multiply-accumulate instructions are used, the intermediate
9147 product is calculated to infinite precision and is not subject to
9148 the \s-1FCSR\s0 Flush to Zero bit.  This may be undesirable in some
9149 circumstances.
9150 .IP "\fB\-nocpp\fR" 4
9151 .IX Item "-nocpp"
9152 Tell the \s-1MIPS\s0 assembler to not run its preprocessor over user
9153 assembler files (with a \fB.s\fR suffix) when assembling them.
9154 .IP "\fB\-mfix\-r4000\fR" 4
9155 .IX Item "-mfix-r4000"
9156 .PD 0
9157 .IP "\fB\-mno\-fix\-r4000\fR" 4
9158 .IX Item "-mno-fix-r4000"
9159 .PD
9160 Work around certain R4000 \s-1CPU\s0 errata:
9161 .RS 4
9162 .IP "\-" 4
9163 A double-word or a variable shift may give an incorrect result if executed
9164 immediately after starting an integer division.
9165 .IP "\-" 4
9166 A double-word or a variable shift may give an incorrect result if executed
9167 while an integer multiplication is in progress.
9168 .IP "\-" 4
9169 An integer division may give an incorrect result if started in a delay slot
9170 of a taken branch or a jump.
9171 .RE
9172 .RS 4
9173 .RE
9174 .IP "\fB\-mfix\-r4400\fR" 4
9175 .IX Item "-mfix-r4400"
9176 .PD 0
9177 .IP "\fB\-mno\-fix\-r4400\fR" 4
9178 .IX Item "-mno-fix-r4400"
9179 .PD
9180 Work around certain R4400 \s-1CPU\s0 errata:
9181 .RS 4
9182 .IP "\-" 4
9183 A double-word or a variable shift may give an incorrect result if executed
9184 immediately after starting an integer division.
9185 .RE
9186 .RS 4
9187 .RE
9188 .IP "\fB\-mfix\-vr4120\fR" 4
9189 .IX Item "-mfix-vr4120"
9190 .PD 0
9191 .IP "\fB\-mno\-fix\-vr4120\fR" 4
9192 .IX Item "-mno-fix-vr4120"
9193 .PD
9194 Work around certain \s-1VR4120\s0 errata:
9195 .RS 4
9196 .IP "\-" 4
9197 \&\f(CW\*(C`dmultu\*(C'\fR does not always produce the correct result.
9198 .IP "\-" 4
9199 \&\f(CW\*(C`div\*(C'\fR and \f(CW\*(C`ddiv\*(C'\fR do not always produce the correct result if one
9200 of the operands is negative.
9201 .RE
9202 .RS 4
9203 .Sp
9204 The workarounds for the division errata rely on special functions in
9205 \&\fIlibgcc.a\fR.  At present, these functions are only provided by
9206 the \f(CW\*(C`mips64vr*\-elf\*(C'\fR configurations.
9207 .Sp
9208 Other \s-1VR4120\s0 errata require a nop to be inserted between certain pairs of
9209 instructions.  These errata are handled by the assembler, not by \s-1GCC\s0 itself.
9210 .RE
9211 .IP "\fB\-mfix\-vr4130\fR" 4
9212 .IX Item "-mfix-vr4130"
9213 Work around the \s-1VR4130\s0 \f(CW\*(C`mflo\*(C'\fR/\f(CW\*(C`mfhi\*(C'\fR errata.  The
9214 workarounds are implemented by the assembler rather than by \s-1GCC\s0,
9215 although \s-1GCC\s0 will avoid using \f(CW\*(C`mflo\*(C'\fR and \f(CW\*(C`mfhi\*(C'\fR if the
9216 \&\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
9217 instructions are available instead.
9218 .IP "\fB\-mfix\-sb1\fR" 4
9219 .IX Item "-mfix-sb1"
9220 .PD 0
9221 .IP "\fB\-mno\-fix\-sb1\fR" 4
9222 .IX Item "-mno-fix-sb1"
9223 .PD
9224 Work around certain \s-1SB\-1\s0 \s-1CPU\s0 core errata.
9225 (This flag currently works around the \s-1SB\-1\s0 revision 2
9226 ``F1'' and ``F2'' floating point errata.)
9227 .IP "\fB\-mflush\-func=\fR\fIfunc\fR" 4
9228 .IX Item "-mflush-func=func"
9229 .PD 0
9230 .IP "\fB\-mno\-flush\-func\fR" 4
9231 .IX Item "-mno-flush-func"
9232 .PD
9233 Specifies the function to call to flush the I and D caches, or to not
9234 call any such function.  If called, the function must take the same
9235 arguments as the common \f(CW\*(C`_flush_func()\*(C'\fR, that is, the address of the
9236 memory range for which the cache is being flushed, the size of the
9237 memory range, and the number 3 (to flush both caches).  The default
9238 depends on the target \s-1GCC\s0 was configured for, but commonly is either
9239 \&\fB_flush_func\fR or \fB_\|_cpu_flush\fR.
9240 .IP "\fB\-mbranch\-likely\fR" 4
9241 .IX Item "-mbranch-likely"
9242 .PD 0
9243 .IP "\fB\-mno\-branch\-likely\fR" 4
9244 .IX Item "-mno-branch-likely"
9245 .PD
9246 Enable or disable use of Branch Likely instructions, regardless of the
9247 default for the selected architecture.  By default, Branch Likely
9248 instructions may be generated if they are supported by the selected
9249 architecture.  An exception is for the \s-1MIPS32\s0 and \s-1MIPS64\s0 architectures
9250 and processors which implement those architectures; for those, Branch
9251 Likely instructions will not be generated by default because the \s-1MIPS32\s0
9252 and \s-1MIPS64\s0 architectures specifically deprecate their use.
9253 .IP "\fB\-mfp\-exceptions\fR" 4
9254 .IX Item "-mfp-exceptions"
9255 .PD 0
9256 .IP "\fB\-mno\-fp\-exceptions\fR" 4
9257 .IX Item "-mno-fp-exceptions"
9258 .PD
9259 Specifies whether \s-1FP\s0 exceptions are enabled.  This affects how we schedule
9260 \&\s-1FP\s0 instructions for some processors.  The default is that \s-1FP\s0 exceptions are
9261 enabled.
9262 .Sp
9263 For instance, on the \s-1SB\-1\s0, if \s-1FP\s0 exceptions are disabled, and we are emitting
9264 64\-bit code, then we can use both \s-1FP\s0 pipes.  Otherwise, we can only use one
9265 \&\s-1FP\s0 pipe.
9266 .IP "\fB\-mvr4130\-align\fR" 4
9267 .IX Item "-mvr4130-align"
9268 .PD 0
9269 .IP "\fB\-mno\-vr4130\-align\fR" 4
9270 .IX Item "-mno-vr4130-align"
9271 .PD
9272 The \s-1VR4130\s0 pipeline is two-way superscalar, but can only issue two
9273 instructions together if the first one is 8\-byte aligned.  When this
9274 option is enabled, \s-1GCC\s0 will align pairs of instructions that it
9275 thinks should execute in parallel.
9276 .Sp
9277 This option only has an effect when optimizing for the \s-1VR4130\s0.
9278 It normally makes code faster, but at the expense of making it bigger.
9279 It is enabled by default at optimization level \fB\-O3\fR.
9280 .PP
9281 \fI\s-1MMIX\s0 Options\fR
9282 .IX Subsection "MMIX Options"
9283 .PP
9284 These options are defined for the \s-1MMIX:\s0
9285 .IP "\fB\-mlibfuncs\fR" 4
9286 .IX Item "-mlibfuncs"
9287 .PD 0
9288 .IP "\fB\-mno\-libfuncs\fR" 4
9289 .IX Item "-mno-libfuncs"
9290 .PD
9291 Specify that intrinsic library functions are being compiled, passing all
9292 values in registers, no matter the size.
9293 .IP "\fB\-mepsilon\fR" 4
9294 .IX Item "-mepsilon"
9295 .PD 0
9296 .IP "\fB\-mno\-epsilon\fR" 4
9297 .IX Item "-mno-epsilon"
9298 .PD
9299 Generate floating-point comparison instructions that compare with respect
9300 to the \f(CW\*(C`rE\*(C'\fR epsilon register.
9301 .IP "\fB\-mabi=mmixware\fR" 4
9302 .IX Item "-mabi=mmixware"
9303 .PD 0
9304 .IP "\fB\-mabi=gnu\fR" 4
9305 .IX Item "-mabi=gnu"
9306 .PD
9307 Generate code that passes function parameters and return values that (in
9308 the called function) are seen as registers \f(CW$0\fR and up, as opposed to
9309 the \s-1GNU\s0 \s-1ABI\s0 which uses global registers \f(CW$231\fR and up.
9310 .IP "\fB\-mzero\-extend\fR" 4
9311 .IX Item "-mzero-extend"
9312 .PD 0
9313 .IP "\fB\-mno\-zero\-extend\fR" 4
9314 .IX Item "-mno-zero-extend"
9315 .PD
9316 When reading data from memory in sizes shorter than 64 bits, use (do not
9317 use) zero-extending load instructions by default, rather than
9318 sign-extending ones.
9319 .IP "\fB\-mknuthdiv\fR" 4
9320 .IX Item "-mknuthdiv"
9321 .PD 0
9322 .IP "\fB\-mno\-knuthdiv\fR" 4
9323 .IX Item "-mno-knuthdiv"
9324 .PD
9325 Make the result of a division yielding a remainder have the same sign as
9326 the divisor.  With the default, \fB\-mno\-knuthdiv\fR, the sign of the
9327 remainder follows the sign of the dividend.  Both methods are
9328 arithmetically valid, the latter being almost exclusively used.
9329 .IP "\fB\-mtoplevel\-symbols\fR" 4
9330 .IX Item "-mtoplevel-symbols"
9331 .PD 0
9332 .IP "\fB\-mno\-toplevel\-symbols\fR" 4
9333 .IX Item "-mno-toplevel-symbols"
9334 .PD
9335 Prepend (do not prepend) a \fB:\fR to all global symbols, so the assembly
9336 code can be used with the \f(CW\*(C`PREFIX\*(C'\fR assembly directive.
9337 .IP "\fB\-melf\fR" 4
9338 .IX Item "-melf"
9339 Generate an executable in the \s-1ELF\s0 format, rather than the default
9340 \&\fBmmo\fR format used by the \fBmmix\fR simulator.
9341 .IP "\fB\-mbranch\-predict\fR" 4
9342 .IX Item "-mbranch-predict"
9343 .PD 0
9344 .IP "\fB\-mno\-branch\-predict\fR" 4
9345 .IX Item "-mno-branch-predict"
9346 .PD
9347 Use (do not use) the probable-branch instructions, when static branch
9348 prediction indicates a probable branch.
9349 .IP "\fB\-mbase\-addresses\fR" 4
9350 .IX Item "-mbase-addresses"
9351 .PD 0
9352 .IP "\fB\-mno\-base\-addresses\fR" 4
9353 .IX Item "-mno-base-addresses"
9354 .PD
9355 Generate (do not generate) code that uses \fIbase addresses\fR.  Using a
9356 base address automatically generates a request (handled by the assembler
9357 and the linker) for a constant to be set up in a global register.  The
9358 register is used for one or more base address requests within the range 0
9359 to 255 from the value held in the register.  The generally leads to short
9360 and fast code, but the number of different data items that can be
9361 addressed is limited.  This means that a program that uses lots of static
9362 data may require \fB\-mno\-base\-addresses\fR.
9363 .IP "\fB\-msingle\-exit\fR" 4
9364 .IX Item "-msingle-exit"
9365 .PD 0
9366 .IP "\fB\-mno\-single\-exit\fR" 4
9367 .IX Item "-mno-single-exit"
9368 .PD
9369 Force (do not force) generated code to have a single exit point in each
9370 function.
9371 .PP
9372 \fI\s-1MN10300\s0 Options\fR
9373 .IX Subsection "MN10300 Options"
9374 .PP
9375 These \fB\-m\fR options are defined for Matsushita \s-1MN10300\s0 architectures:
9376 .IP "\fB\-mmult\-bug\fR" 4
9377 .IX Item "-mmult-bug"
9378 Generate code to avoid bugs in the multiply instructions for the \s-1MN10300\s0
9379 processors.  This is the default.
9380 .IP "\fB\-mno\-mult\-bug\fR" 4
9381 .IX Item "-mno-mult-bug"
9382 Do not generate code to avoid bugs in the multiply instructions for the
9383 \&\s-1MN10300\s0 processors.
9384 .IP "\fB\-mam33\fR" 4
9385 .IX Item "-mam33"
9386 Generate code which uses features specific to the \s-1AM33\s0 processor.
9387 .IP "\fB\-mno\-am33\fR" 4
9388 .IX Item "-mno-am33"
9389 Do not generate code which uses features specific to the \s-1AM33\s0 processor.  This
9390 is the default.
9391 .IP "\fB\-mno\-crt0\fR" 4
9392 .IX Item "-mno-crt0"
9393 Do not link in the C run-time initialization object file.
9394 .IP "\fB\-mrelax\fR" 4
9395 .IX Item "-mrelax"
9396 Indicate to the linker that it should perform a relaxation optimization pass
9397 to shorten branches, calls and absolute memory addresses.  This option only
9398 has an effect when used on the command line for the final link step.
9399 .Sp
9400 This option makes symbolic debugging impossible.
9401 .PP
9402 \fI\s-1NS32K\s0 Options\fR
9403 .IX Subsection "NS32K Options"
9404 .PP
9405 These are the \fB\-m\fR options defined for the 32000 series.  The default
9406 values for these options depends on which style of 32000 was selected when
9407 the compiler was configured; the defaults for the most common choices are
9408 given below.
9409 .IP "\fB\-m32032\fR" 4
9410 .IX Item "-m32032"
9411 .PD 0
9412 .IP "\fB\-m32032\fR" 4
9413 .IX Item "-m32032"
9414 .PD
9415 Generate output for a 32032.  This is the default
9416 when the compiler is configured for 32032 and 32016 based systems.
9417 .IP "\fB\-m32332\fR" 4
9418 .IX Item "-m32332"
9419 .PD 0
9420 .IP "\fB\-m32332\fR" 4
9421 .IX Item "-m32332"
9422 .PD
9423 Generate output for a 32332.  This is the default
9424 when the compiler is configured for 32332\-based systems.
9425 .IP "\fB\-m32532\fR" 4
9426 .IX Item "-m32532"
9427 .PD 0
9428 .IP "\fB\-m32532\fR" 4
9429 .IX Item "-m32532"
9430 .PD
9431 Generate output for a 32532.  This is the default
9432 when the compiler is configured for 32532\-based systems.
9433 .IP "\fB\-m32081\fR" 4
9434 .IX Item "-m32081"
9435 Generate output containing 32081 instructions for floating point.
9436 This is the default for all systems.
9437 .IP "\fB\-m32381\fR" 4
9438 .IX Item "-m32381"
9439 Generate output containing 32381 instructions for floating point.  This
9440 also implies \fB\-m32081\fR.  The 32381 is only compatible with the 32332
9441 and 32532 cpus.  This is the default for the pc532\-netbsd configuration.
9442 .IP "\fB\-mmulti\-add\fR" 4
9443 .IX Item "-mmulti-add"
9444 Try and generate multiply-add floating point instructions \f(CW\*(C`polyF\*(C'\fR
9445 and \f(CW\*(C`dotF\*(C'\fR.  This option is only available if the \fB\-m32381\fR
9446 option is in effect.  Using these instructions requires changes to
9447 register allocation which generally has a negative impact on
9448 performance.  This option should only be enabled when compiling code
9449 particularly likely to make heavy use of multiply-add instructions.
9450 .IP "\fB\-mnomulti\-add\fR" 4
9451 .IX Item "-mnomulti-add"
9452 Do not try and generate multiply-add floating point instructions
9453 \&\f(CW\*(C`polyF\*(C'\fR and \f(CW\*(C`dotF\*(C'\fR.  This is the default on all platforms.
9454 .IP "\fB\-msoft\-float\fR" 4
9455 .IX Item "-msoft-float"
9456 Generate output containing library calls for floating point.
9457 \&\fBWarning:\fR the requisite libraries may not be available.
9458 .IP "\fB\-mieee\-compare\fR" 4
9459 .IX Item "-mieee-compare"
9460 .PD 0
9461 .IP "\fB\-mno\-ieee\-compare\fR" 4
9462 .IX Item "-mno-ieee-compare"
9463 .PD
9464 Control whether or not the compiler uses \s-1IEEE\s0 floating point
9465 comparisons.  These handle correctly the case where the result of a
9466 comparison is unordered.
9467 \&\fBWarning:\fR the requisite kernel support may not be available.
9468 .IP "\fB\-mnobitfield\fR" 4
9469 .IX Item "-mnobitfield"
9470 Do not use the bit-field instructions.  On some machines it is faster to
9471 use shifting and masking operations.  This is the default for the pc532.
9472 .IP "\fB\-mbitfield\fR" 4
9473 .IX Item "-mbitfield"
9474 Do use the bit-field instructions.  This is the default for all platforms
9475 except the pc532.
9476 .IP "\fB\-mrtd\fR" 4
9477 .IX Item "-mrtd"
9478 Use a different function-calling convention, in which functions
9479 that take a fixed number of arguments return pop their
9480 arguments on return with the \f(CW\*(C`ret\*(C'\fR instruction.
9481 .Sp
9482 This calling convention is incompatible with the one normally
9483 used on Unix, so you cannot use it if you need to call libraries
9484 compiled with the Unix compiler.
9485 .Sp
9486 Also, you must provide function prototypes for all functions that
9487 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
9488 otherwise incorrect code will be generated for calls to those
9489 functions.
9490 .Sp
9491 In addition, seriously incorrect code will result if you call a
9492 function with too many arguments.  (Normally, extra arguments are
9493 harmlessly ignored.)
9494 .Sp
9495 This option takes its name from the 680x0 \f(CW\*(C`rtd\*(C'\fR instruction.
9496 .IP "\fB\-mregparam\fR" 4
9497 .IX Item "-mregparam"
9498 Use a different function-calling convention where the first two arguments
9499 are passed in registers.
9500 .Sp
9501 This calling convention is incompatible with the one normally
9502 used on Unix, so you cannot use it if you need to call libraries
9503 compiled with the Unix compiler.
9504 .IP "\fB\-mnoregparam\fR" 4
9505 .IX Item "-mnoregparam"
9506 Do not pass any arguments in registers.  This is the default for all
9507 targets.
9508 .IP "\fB\-msb\fR" 4
9509 .IX Item "-msb"
9510 It is \s-1OK\s0 to use the sb as an index register which is always loaded with
9511 zero.  This is the default for the pc532\-netbsd target.
9512 .IP "\fB\-mnosb\fR" 4
9513 .IX Item "-mnosb"
9514 The sb register is not available for use or has not been initialized to
9515 zero by the run time system.  This is the default for all targets except
9516 the pc532\-netbsd.  It is also implied whenever \fB\-mhimem\fR or
9517 \&\fB\-fpic\fR is set.
9518 .IP "\fB\-mhimem\fR" 4
9519 .IX Item "-mhimem"
9520 Many ns32000 series addressing modes use displacements of up to 512MB.
9521 If an address is above 512MB then displacements from zero can not be used.
9522 This option causes code to be generated which can be loaded above 512MB.
9523 This may be useful for operating systems or \s-1ROM\s0 code.
9524 .IP "\fB\-mnohimem\fR" 4
9525 .IX Item "-mnohimem"
9526 Assume code will be loaded in the first 512MB of virtual address space.
9527 This is the default for all platforms.
9528 .PP
9529 \fI\s-1PDP\-11\s0 Options\fR
9530 .IX Subsection "PDP-11 Options"
9531 .PP
9532 These options are defined for the \s-1PDP\-11:\s0
9533 .IP "\fB\-mfpu\fR" 4
9534 .IX Item "-mfpu"
9535 Use hardware \s-1FPP\s0 floating point.  This is the default.  (\s-1FIS\s0 floating
9536 point on the \s-1PDP\-11/40\s0 is not supported.)
9537 .IP "\fB\-msoft\-float\fR" 4
9538 .IX Item "-msoft-float"
9539 Do not use hardware floating point.
9540 .IP "\fB\-mac0\fR" 4
9541 .IX Item "-mac0"
9542 Return floating-point results in ac0 (fr0 in Unix assembler syntax).
9543 .IP "\fB\-mno\-ac0\fR" 4
9544 .IX Item "-mno-ac0"
9545 Return floating-point results in memory.  This is the default.
9546 .IP "\fB\-m40\fR" 4
9547 .IX Item "-m40"
9548 Generate code for a \s-1PDP\-11/40\s0.
9549 .IP "\fB\-m45\fR" 4
9550 .IX Item "-m45"
9551 Generate code for a \s-1PDP\-11/45\s0.  This is the default.
9552 .IP "\fB\-m10\fR" 4
9553 .IX Item "-m10"
9554 Generate code for a \s-1PDP\-11/10\s0.
9555 .IP "\fB\-mbcopy\-builtin\fR" 4
9556 .IX Item "-mbcopy-builtin"
9557 Use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.  This is the
9558 default.
9559 .IP "\fB\-mbcopy\fR" 4
9560 .IX Item "-mbcopy"
9561 Do not use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.
9562 .IP "\fB\-mint16\fR" 4
9563 .IX Item "-mint16"
9564 .PD 0
9565 .IP "\fB\-mno\-int32\fR" 4
9566 .IX Item "-mno-int32"
9567 .PD
9568 Use 16\-bit \f(CW\*(C`int\*(C'\fR.  This is the default.
9569 .IP "\fB\-mint32\fR" 4
9570 .IX Item "-mint32"
9571 .PD 0
9572 .IP "\fB\-mno\-int16\fR" 4
9573 .IX Item "-mno-int16"
9574 .PD
9575 Use 32\-bit \f(CW\*(C`int\*(C'\fR.
9576 .IP "\fB\-mfloat64\fR" 4
9577 .IX Item "-mfloat64"
9578 .PD 0
9579 .IP "\fB\-mno\-float32\fR" 4
9580 .IX Item "-mno-float32"
9581 .PD
9582 Use 64\-bit \f(CW\*(C`float\*(C'\fR.  This is the default.
9583 .IP "\fB\-mfloat32\fR" 4
9584 .IX Item "-mfloat32"
9585 .PD 0
9586 .IP "\fB\-mno\-float64\fR" 4
9587 .IX Item "-mno-float64"
9588 .PD
9589 Use 32\-bit \f(CW\*(C`float\*(C'\fR.
9590 .IP "\fB\-mabshi\fR" 4
9591 .IX Item "-mabshi"
9592 Use \f(CW\*(C`abshi2\*(C'\fR pattern.  This is the default.
9593 .IP "\fB\-mno\-abshi\fR" 4
9594 .IX Item "-mno-abshi"
9595 Do not use \f(CW\*(C`abshi2\*(C'\fR pattern.
9596 .IP "\fB\-mbranch\-expensive\fR" 4
9597 .IX Item "-mbranch-expensive"
9598 Pretend that branches are expensive.  This is for experimenting with
9599 code generation only.
9600 .IP "\fB\-mbranch\-cheap\fR" 4
9601 .IX Item "-mbranch-cheap"
9602 Do not pretend that branches are expensive.  This is the default.
9603 .IP "\fB\-msplit\fR" 4
9604 .IX Item "-msplit"
9605 Generate code for a system with split I&D.
9606 .IP "\fB\-mno\-split\fR" 4
9607 .IX Item "-mno-split"
9608 Generate code for a system without split I&D.  This is the default.
9609 .IP "\fB\-munix\-asm\fR" 4
9610 .IX Item "-munix-asm"
9611 Use Unix assembler syntax.  This is the default when configured for
9612 \&\fBpdp11\-*\-bsd\fR.
9613 .IP "\fB\-mdec\-asm\fR" 4
9614 .IX Item "-mdec-asm"
9615 Use \s-1DEC\s0 assembler syntax.  This is the default when configured for any
9616 \&\s-1PDP\-11\s0 target other than \fBpdp11\-*\-bsd\fR.
9617 .PP
9618 \fIPowerPC Options\fR
9619 .IX Subsection "PowerPC Options"
9620 .PP
9621 These are listed under 
9622 .PP
9623 \fI\s-1IBM\s0 \s-1RS/6000\s0 and PowerPC Options\fR
9624 .IX Subsection "IBM RS/6000 and PowerPC Options"
9625 .PP
9626 These \fB\-m\fR options are defined for the \s-1IBM\s0 \s-1RS/6000\s0 and PowerPC:
9627 .IP "\fB\-mpower\fR" 4
9628 .IX Item "-mpower"
9629 .PD 0
9630 .IP "\fB\-mno\-power\fR" 4
9631 .IX Item "-mno-power"
9632 .IP "\fB\-mpower2\fR" 4
9633 .IX Item "-mpower2"
9634 .IP "\fB\-mno\-power2\fR" 4
9635 .IX Item "-mno-power2"
9636 .IP "\fB\-mpowerpc\fR" 4
9637 .IX Item "-mpowerpc"
9638 .IP "\fB\-mno\-powerpc\fR" 4
9639 .IX Item "-mno-powerpc"
9640 .IP "\fB\-mpowerpc\-gpopt\fR" 4
9641 .IX Item "-mpowerpc-gpopt"
9642 .IP "\fB\-mno\-powerpc\-gpopt\fR" 4
9643 .IX Item "-mno-powerpc-gpopt"
9644 .IP "\fB\-mpowerpc\-gfxopt\fR" 4
9645 .IX Item "-mpowerpc-gfxopt"
9646 .IP "\fB\-mno\-powerpc\-gfxopt\fR" 4
9647 .IX Item "-mno-powerpc-gfxopt"
9648 .IP "\fB\-mpowerpc64\fR" 4
9649 .IX Item "-mpowerpc64"
9650 .IP "\fB\-mno\-powerpc64\fR" 4
9651 .IX Item "-mno-powerpc64"
9652 .PD
9653 \&\s-1GCC\s0 supports two related instruction set architectures for the
9654 \&\s-1RS/6000\s0 and PowerPC.  The \fI\s-1POWER\s0\fR instruction set are those
9655 instructions supported by the \fBrios\fR chip set used in the original
9656 \&\s-1RS/6000\s0 systems and the \fIPowerPC\fR instruction set is the
9657 architecture of the Motorola MPC5xx, MPC6xx, MPC8xx microprocessors, and
9658 the \s-1IBM\s0 4xx microprocessors.
9659 .Sp
9660 Neither architecture is a subset of the other.  However there is a
9661 large common subset of instructions supported by both.  An \s-1MQ\s0
9662 register is included in processors supporting the \s-1POWER\s0 architecture.
9663 .Sp
9664 You use these options to specify which instructions are available on the
9665 processor you are using.  The default value of these options is
9666 determined when configuring \s-1GCC\s0.  Specifying the
9667 \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
9668 options.  We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
9669 rather than the options listed above.
9670 .Sp
9671 The \fB\-mpower\fR option allows \s-1GCC\s0 to generate instructions that
9672 are found only in the \s-1POWER\s0 architecture and to use the \s-1MQ\s0 register.
9673 Specifying \fB\-mpower2\fR implies \fB\-power\fR and also allows \s-1GCC\s0
9674 to generate instructions that are present in the \s-1POWER2\s0 architecture but
9675 not the original \s-1POWER\s0 architecture.
9676 .Sp
9677 The \fB\-mpowerpc\fR option allows \s-1GCC\s0 to generate instructions that
9678 are found only in the 32\-bit subset of the PowerPC architecture.
9679 Specifying \fB\-mpowerpc\-gpopt\fR implies \fB\-mpowerpc\fR and also allows
9680 \&\s-1GCC\s0 to use the optional PowerPC architecture instructions in the
9681 General Purpose group, including floating-point square root.  Specifying
9682 \&\fB\-mpowerpc\-gfxopt\fR implies \fB\-mpowerpc\fR and also allows \s-1GCC\s0 to
9683 use the optional PowerPC architecture instructions in the Graphics
9684 group, including floating-point select.
9685 .Sp
9686 The \fB\-mpowerpc64\fR option allows \s-1GCC\s0 to generate the additional
9687 64\-bit instructions that are found in the full PowerPC64 architecture
9688 and to treat GPRs as 64\-bit, doubleword quantities.  \s-1GCC\s0 defaults to
9689 \&\fB\-mno\-powerpc64\fR.
9690 .Sp
9691 If you specify both \fB\-mno\-power\fR and \fB\-mno\-powerpc\fR, \s-1GCC\s0
9692 will use only the instructions in the common subset of both
9693 architectures plus some special \s-1AIX\s0 common-mode calls, and will not use
9694 the \s-1MQ\s0 register.  Specifying both \fB\-mpower\fR and \fB\-mpowerpc\fR
9695 permits \s-1GCC\s0 to use any instruction from either architecture and to
9696 allow use of the \s-1MQ\s0 register; specify this for the Motorola \s-1MPC601\s0.
9697 .IP "\fB\-mnew\-mnemonics\fR" 4
9698 .IX Item "-mnew-mnemonics"
9699 .PD 0
9700 .IP "\fB\-mold\-mnemonics\fR" 4
9701 .IX Item "-mold-mnemonics"
9702 .PD
9703 Select which mnemonics to use in the generated assembler code.  With
9704 \&\fB\-mnew\-mnemonics\fR, \s-1GCC\s0 uses the assembler mnemonics defined for
9705 the PowerPC architecture.  With \fB\-mold\-mnemonics\fR it uses the
9706 assembler mnemonics defined for the \s-1POWER\s0 architecture.  Instructions
9707 defined in only one architecture have only one mnemonic; \s-1GCC\s0 uses that
9708 mnemonic irrespective of which of these options is specified.
9709 .Sp
9710 \&\s-1GCC\s0 defaults to the mnemonics appropriate for the architecture in
9711 use.  Specifying \fB\-mcpu=\fR\fIcpu_type\fR sometimes overrides the
9712 value of these option.  Unless you are building a cross\-compiler, you
9713 should normally not specify either \fB\-mnew\-mnemonics\fR or
9714 \&\fB\-mold\-mnemonics\fR, but should instead accept the default.
9715 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
9716 .IX Item "-mcpu=cpu_type"
9717 Set architecture type, register usage, choice of mnemonics, and
9718 instruction scheduling parameters for machine type \fIcpu_type\fR.
9719 Supported values for \fIcpu_type\fR are \fB401\fR, \fB403\fR,
9720 \&\fB405\fR, \fB405fp\fR, \fB440\fR, \fB440fp\fR, \fB505\fR,
9721 \&\fB601\fR, \fB602\fR, \fB603\fR, \fB603e\fR, \fB604\fR,
9722 \&\fB604e\fR, \fB620\fR, \fB630\fR, \fB740\fR, \fB7400\fR,
9723 \&\fB7450\fR, \fB750\fR, \fB801\fR, \fB821\fR, \fB823\fR,
9724 \&\fB860\fR, \fB970\fR, \fB8540\fR, \fBcommon\fR, \fBec603e\fR, \fBG3\fR,
9725 \&\fBG4\fR, \fBG5\fR, \fBpower\fR, \fBpower2\fR, \fBpower3\fR,
9726 \&\fBpower4\fR, \fBpower5\fR, \fBpowerpc\fR, \fBpowerpc64\fR,
9727 \&\fBrios\fR, \fBrios1\fR, \fBrios2\fR, \fBrsc\fR, and \fBrs64a\fR.
9728 .Sp
9729 \&\fB\-mcpu=common\fR selects a completely generic processor.  Code
9730 generated under this option will run on any \s-1POWER\s0 or PowerPC processor.
9731 \&\s-1GCC\s0 will use only the instructions in the common subset of both
9732 architectures, and will not use the \s-1MQ\s0 register.  \s-1GCC\s0 assumes a generic
9733 processor model for scheduling purposes.
9734 .Sp
9735 \&\fB\-mcpu=power\fR, \fB\-mcpu=power2\fR, \fB\-mcpu=powerpc\fR, and
9736 \&\fB\-mcpu=powerpc64\fR specify generic \s-1POWER\s0, \s-1POWER2\s0, pure 32\-bit
9737 PowerPC (i.e., not \s-1MPC601\s0), and 64\-bit PowerPC architecture machine
9738 types, with an appropriate, generic processor model assumed for
9739 scheduling purposes.
9740 .Sp
9741 The other options specify a specific processor.  Code generated under
9742 those options will run best on that processor, and may not run at all on
9743 others.
9744 .Sp
9745 The \fB\-mcpu\fR options automatically enable or disable the
9746 following options: \fB\-maltivec\fR, \fB\-mhard\-float\fR,
9747 \&\fB\-mmfcrf\fR, \fB\-mmultiple\fR, \fB\-mnew\-mnemonics\fR,
9748 \&\fB\-mpower\fR, \fB\-mpower2\fR, \fB\-mpowerpc64\fR,
9749 \&\fB\-mpowerpc\-gpopt\fR, \fB\-mpowerpc\-gfxopt\fR,
9750 \&\fB\-mstring\fR.  The particular options set for any particular \s-1CPU\s0
9751 will vary between compiler versions, depending on what setting seems
9752 to produce optimal code for that \s-1CPU\s0; it doesn't necessarily reflect
9753 the actual hardware's capabilities.  If you wish to set an individual
9754 option to a particular value, you may specify it after the
9755 \&\fB\-mcpu\fR option, like \fB\-mcpu=970 \-mno\-altivec\fR.
9756 .Sp
9757 On \s-1AIX\s0, the \fB\-maltivec\fR and \fB\-mpowerpc64\fR options are
9758 not enabled or disabled by the \fB\-mcpu\fR option at present, since
9759 \&\s-1AIX\s0 does not have full support for these options.  You may still
9760 enable or disable them individually if you're sure it'll work in your
9761 environment.
9762 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
9763 .IX Item "-mtune=cpu_type"
9764 Set the instruction scheduling parameters for machine type
9765 \&\fIcpu_type\fR, but do not set the architecture type, register usage, or
9766 choice of mnemonics, as \fB\-mcpu=\fR\fIcpu_type\fR would.  The same
9767 values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
9768 \&\fB\-mcpu\fR.  If both are specified, the code generated will use the
9769 architecture, registers, and mnemonics set by \fB\-mcpu\fR, but the
9770 scheduling parameters set by \fB\-mtune\fR.
9771 .IP "\fB\-maltivec\fR" 4
9772 .IX Item "-maltivec"
9773 .PD 0
9774 .IP "\fB\-mno\-altivec\fR" 4
9775 .IX Item "-mno-altivec"
9776 .PD
9777 Generate code that uses (does not use) AltiVec instructions, and also
9778 enable the use of built-in functions that allow more direct access to
9779 the AltiVec instruction set.  You may also need to set
9780 \&\fB\-mabi=altivec\fR to adjust the current \s-1ABI\s0 with AltiVec \s-1ABI\s0
9781 enhancements.
9782 .IP "\fB\-mabi=spe\fR" 4
9783 .IX Item "-mabi=spe"
9784 Extend the current \s-1ABI\s0 with \s-1SPE\s0 \s-1ABI\s0 extensions.  This does not change
9785 the default \s-1ABI\s0, instead it adds the \s-1SPE\s0 \s-1ABI\s0 extensions to the current
9786 \&\s-1ABI\s0.
9787 .IP "\fB\-mabi=no\-spe\fR" 4
9788 .IX Item "-mabi=no-spe"
9789 Disable Booke \s-1SPE\s0 \s-1ABI\s0 extensions for the current \s-1ABI\s0.
9790 .IP "\fB\-misel=\fR\fIyes/no\fR" 4
9791 .IX Item "-misel=yes/no"
9792 .PD 0
9793 .IP "\fB\-misel\fR" 4
9794 .IX Item "-misel"
9795 .PD
9796 This switch enables or disables the generation of \s-1ISEL\s0 instructions.
9797 .IP "\fB\-mspe=\fR\fIyes/no\fR" 4
9798 .IX Item "-mspe=yes/no"
9799 .PD 0
9800 .IP "\fB\-mspe\fR" 4
9801 .IX Item "-mspe"
9802 .PD
9803 This switch enables or disables the generation of \s-1SPE\s0 simd
9804 instructions.
9805 .IP "\fB\-mfloat\-gprs=\fR\fIyes/single/double/no\fR" 4
9806 .IX Item "-mfloat-gprs=yes/single/double/no"
9807 .PD 0
9808 .IP "\fB\-mfloat\-gprs\fR" 4
9809 .IX Item "-mfloat-gprs"
9810 .PD
9811 This switch enables or disables the generation of floating point
9812 operations on the general purpose registers for architectures that
9813 support it.
9814 .Sp
9815 The argument \fIyes\fR or \fIsingle\fR enables the use of
9816 single-precision floating point operations.
9817 .Sp
9818 The argument \fIdouble\fR enables the use of single and
9819 double-precision floating point operations.
9820 .Sp
9821 The argument \fIno\fR disables floating point operations on the
9822 general purpose registers.
9823 .Sp
9824 This option is currently only available on the MPC854x.
9825 .IP "\fB\-m32\fR" 4
9826 .IX Item "-m32"
9827 .PD 0
9828 .IP "\fB\-m64\fR" 4
9829 .IX Item "-m64"
9830 .PD
9831 Generate code for 32\-bit or 64\-bit environments of Darwin and \s-1SVR4\s0
9832 targets (including GNU/Linux).  The 32\-bit environment sets int, long
9833 and pointer to 32 bits and generates code that runs on any PowerPC
9834 variant.  The 64\-bit environment sets int to 32 bits and long and
9835 pointer to 64 bits, and generates code for PowerPC64, as for
9836 \&\fB\-mpowerpc64\fR.
9837 .IP "\fB\-mfull\-toc\fR" 4
9838 .IX Item "-mfull-toc"
9839 .PD 0
9840 .IP "\fB\-mno\-fp\-in\-toc\fR" 4
9841 .IX Item "-mno-fp-in-toc"
9842 .IP "\fB\-mno\-sum\-in\-toc\fR" 4
9843 .IX Item "-mno-sum-in-toc"
9844 .IP "\fB\-mminimal\-toc\fR" 4
9845 .IX Item "-mminimal-toc"
9846 .PD
9847 Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
9848 every executable file.  The \fB\-mfull\-toc\fR option is selected by
9849 default.  In that case, \s-1GCC\s0 will allocate at least one \s-1TOC\s0 entry for
9850 each unique non-automatic variable reference in your program.  \s-1GCC\s0
9851 will also place floating-point constants in the \s-1TOC\s0.  However, only
9852 16,384 entries are available in the \s-1TOC\s0.
9853 .Sp
9854 If you receive a linker error message that saying you have overflowed
9855 the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
9856 with the \fB\-mno\-fp\-in\-toc\fR and \fB\-mno\-sum\-in\-toc\fR options.
9857 \&\fB\-mno\-fp\-in\-toc\fR prevents \s-1GCC\s0 from putting floating-point
9858 constants in the \s-1TOC\s0 and \fB\-mno\-sum\-in\-toc\fR forces \s-1GCC\s0 to
9859 generate code to calculate the sum of an address and a constant at
9860 run-time instead of putting that sum into the \s-1TOC\s0.  You may specify one
9861 or both of these options.  Each causes \s-1GCC\s0 to produce very slightly
9862 slower and larger code at the expense of conserving \s-1TOC\s0 space.
9863 .Sp
9864 If you still run out of space in the \s-1TOC\s0 even when you specify both of
9865 these options, specify \fB\-mminimal\-toc\fR instead.  This option causes
9866 \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file.  When you specify this
9867 option, \s-1GCC\s0 will produce code that is slower and larger but which
9868 uses extremely little \s-1TOC\s0 space.  You may wish to use this option
9869 only on files that contain less frequently executed code.
9870 .IP "\fB\-maix64\fR" 4
9871 .IX Item "-maix64"
9872 .PD 0
9873 .IP "\fB\-maix32\fR" 4
9874 .IX Item "-maix32"
9875 .PD
9876 Enable 64\-bit \s-1AIX\s0 \s-1ABI\s0 and calling convention: 64\-bit pointers, 64\-bit
9877 \&\f(CW\*(C`long\*(C'\fR type, and the infrastructure needed to support them.
9878 Specifying \fB\-maix64\fR implies \fB\-mpowerpc64\fR and
9879 \&\fB\-mpowerpc\fR, while \fB\-maix32\fR disables the 64\-bit \s-1ABI\s0 and
9880 implies \fB\-mno\-powerpc64\fR.  \s-1GCC\s0 defaults to \fB\-maix32\fR.
9881 .IP "\fB\-mxl\-compat\fR" 4
9882 .IX Item "-mxl-compat"
9883 .PD 0
9884 .IP "\fB\-mno\-xl\-compat\fR" 4
9885 .IX Item "-mno-xl-compat"
9886 .PD
9887 Produce code that conforms more closely to \s-1IBM\s0 \s-1XLC\s0 semantics when using
9888 AIX-compatible \s-1ABI\s0.  Pass floating-point arguments to prototyped
9889 functions beyond the register save area (\s-1RSA\s0) on the stack in addition
9890 to argument FPRs.  Do not assume that most significant double in 128
9891 bit long double value is properly rounded when comparing values.
9892 .Sp
9893 The \s-1AIX\s0 calling convention was extended but not initially documented to
9894 handle an obscure K&R C case of calling a function that takes the
9895 address of its arguments with fewer arguments than declared.  \s-1AIX\s0 \s-1XL\s0
9896 compilers access floating point arguments which do not fit in the
9897 \&\s-1RSA\s0 from the stack when a subroutine is compiled without
9898 optimization.  Because always storing floating-point arguments on the
9899 stack is inefficient and rarely needed, this option is not enabled by
9900 default and only is necessary when calling subroutines compiled by \s-1AIX\s0
9901 \&\s-1XL\s0 compilers without optimization.
9902 .IP "\fB\-mpe\fR" 4
9903 .IX Item "-mpe"
9904 Support \fI\s-1IBM\s0 \s-1RS/6000\s0 \s-1SP\s0\fR \fIParallel Environment\fR (\s-1PE\s0).  Link an
9905 application written to use message passing with special startup code to
9906 enable the application to run.  The system must have \s-1PE\s0 installed in the
9907 standard location (\fI/usr/lpp/ppe.poe/\fR), or the \fIspecs\fR file
9908 must be overridden with the \fB\-specs=\fR option to specify the
9909 appropriate directory location.  The Parallel Environment does not
9910 support threads, so the \fB\-mpe\fR option and the \fB\-pthread\fR
9911 option are incompatible.
9912 .IP "\fB\-malign\-natural\fR" 4
9913 .IX Item "-malign-natural"
9914 .PD 0
9915 .IP "\fB\-malign\-power\fR" 4
9916 .IX Item "-malign-power"
9917 .PD
9918 On \s-1AIX\s0, 32\-bit Darwin, and 64\-bit PowerPC GNU/Linux, the option
9919 \&\fB\-malign\-natural\fR overrides the ABI-defined alignment of larger
9920 types, such as floating-point doubles, on their natural size-based boundary.
9921 The option \fB\-malign\-power\fR instructs \s-1GCC\s0 to follow the ABI-specified
9922 alignment rules.  \s-1GCC\s0 defaults to the standard alignment defined in the \s-1ABI\s0.
9923 .Sp
9924 On 64\-bit Darwin, natural alignment is the default, and \fB\-malign\-power\fR
9925 is not supported.
9926 .IP "\fB\-msoft\-float\fR" 4
9927 .IX Item "-msoft-float"
9928 .PD 0
9929 .IP "\fB\-mhard\-float\fR" 4
9930 .IX Item "-mhard-float"
9931 .PD
9932 Generate code that does not use (uses) the floating-point register set.
9933 Software floating point emulation is provided if you use the
9934 \&\fB\-msoft\-float\fR option, and pass the option to \s-1GCC\s0 when linking.
9935 .IP "\fB\-mmultiple\fR" 4
9936 .IX Item "-mmultiple"
9937 .PD 0
9938 .IP "\fB\-mno\-multiple\fR" 4
9939 .IX Item "-mno-multiple"
9940 .PD
9941 Generate code that uses (does not use) the load multiple word
9942 instructions and the store multiple word instructions.  These
9943 instructions are generated by default on \s-1POWER\s0 systems, and not
9944 generated on PowerPC systems.  Do not use \fB\-mmultiple\fR on little
9945 endian PowerPC systems, since those instructions do not work when the
9946 processor is in little endian mode.  The exceptions are \s-1PPC740\s0 and
9947 \&\s-1PPC750\s0 which permit the instructions usage in little endian mode.
9948 .IP "\fB\-mstring\fR" 4
9949 .IX Item "-mstring"
9950 .PD 0
9951 .IP "\fB\-mno\-string\fR" 4
9952 .IX Item "-mno-string"
9953 .PD
9954 Generate code that uses (does not use) the load string instructions
9955 and the store string word instructions to save multiple registers and
9956 do small block moves.  These instructions are generated by default on
9957 \&\s-1POWER\s0 systems, and not generated on PowerPC systems.  Do not use
9958 \&\fB\-mstring\fR on little endian PowerPC systems, since those
9959 instructions do not work when the processor is in little endian mode.
9960 The exceptions are \s-1PPC740\s0 and \s-1PPC750\s0 which permit the instructions
9961 usage in little endian mode.
9962 .IP "\fB\-mupdate\fR" 4
9963 .IX Item "-mupdate"
9964 .PD 0
9965 .IP "\fB\-mno\-update\fR" 4
9966 .IX Item "-mno-update"
9967 .PD
9968 Generate code that uses (does not use) the load or store instructions
9969 that update the base register to the address of the calculated memory
9970 location.  These instructions are generated by default.  If you use
9971 \&\fB\-mno\-update\fR, there is a small window between the time that the
9972 stack pointer is updated and the address of the previous frame is
9973 stored, which means code that walks the stack frame across interrupts or
9974 signals may get corrupted data.
9975 .IP "\fB\-mfused\-madd\fR" 4
9976 .IX Item "-mfused-madd"
9977 .PD 0
9978 .IP "\fB\-mno\-fused\-madd\fR" 4
9979 .IX Item "-mno-fused-madd"
9980 .PD
9981 Generate code that uses (does not use) the floating point multiply and
9982 accumulate instructions.  These instructions are generated by default if
9983 hardware floating is used.
9984 .IP "\fB\-mno\-bit\-align\fR" 4
9985 .IX Item "-mno-bit-align"
9986 .PD 0
9987 .IP "\fB\-mbit\-align\fR" 4
9988 .IX Item "-mbit-align"
9989 .PD
9990 On System V.4 and embedded PowerPC systems do not (do) force structures
9991 and unions that contain bit-fields to be aligned to the base type of the
9992 bit\-field.
9993 .Sp
9994 For example, by default a structure containing nothing but 8
9995 \&\f(CW\*(C`unsigned\*(C'\fR bit-fields of length 1 would be aligned to a 4 byte
9996 boundary and have a size of 4 bytes.  By using \fB\-mno\-bit\-align\fR,
9997 the structure would be aligned to a 1 byte boundary and be one byte in
9998 size.
9999 .IP "\fB\-mno\-strict\-align\fR" 4
10000 .IX Item "-mno-strict-align"
10001 .PD 0
10002 .IP "\fB\-mstrict\-align\fR" 4
10003 .IX Item "-mstrict-align"
10004 .PD
10005 On System V.4 and embedded PowerPC systems do not (do) assume that
10006 unaligned memory references will be handled by the system.
10007 .IP "\fB\-mrelocatable\fR" 4
10008 .IX Item "-mrelocatable"
10009 .PD 0
10010 .IP "\fB\-mno\-relocatable\fR" 4
10011 .IX Item "-mno-relocatable"
10012 .PD
10013 On embedded PowerPC systems generate code that allows (does not allow)
10014 the program to be relocated to a different address at runtime.  If you
10015 use \fB\-mrelocatable\fR on any module, all objects linked together must
10016 be compiled with \fB\-mrelocatable\fR or \fB\-mrelocatable\-lib\fR.
10017 .IP "\fB\-mrelocatable\-lib\fR" 4
10018 .IX Item "-mrelocatable-lib"
10019 .PD 0
10020 .IP "\fB\-mno\-relocatable\-lib\fR" 4
10021 .IX Item "-mno-relocatable-lib"
10022 .PD
10023 On embedded PowerPC systems generate code that allows (does not allow)
10024 the program to be relocated to a different address at runtime.  Modules
10025 compiled with \fB\-mrelocatable\-lib\fR can be linked with either modules
10026 compiled without \fB\-mrelocatable\fR and \fB\-mrelocatable\-lib\fR or
10027 with modules compiled with the \fB\-mrelocatable\fR options.
10028 .IP "\fB\-mno\-toc\fR" 4
10029 .IX Item "-mno-toc"
10030 .PD 0
10031 .IP "\fB\-mtoc\fR" 4
10032 .IX Item "-mtoc"
10033 .PD
10034 On System V.4 and embedded PowerPC systems do not (do) assume that
10035 register 2 contains a pointer to a global area pointing to the addresses
10036 used in the program.
10037 .IP "\fB\-mlittle\fR" 4
10038 .IX Item "-mlittle"
10039 .PD 0
10040 .IP "\fB\-mlittle\-endian\fR" 4
10041 .IX Item "-mlittle-endian"
10042 .PD
10043 On System V.4 and embedded PowerPC systems compile code for the
10044 processor in little endian mode.  The \fB\-mlittle\-endian\fR option is
10045 the same as \fB\-mlittle\fR.
10046 .IP "\fB\-mbig\fR" 4
10047 .IX Item "-mbig"
10048 .PD 0
10049 .IP "\fB\-mbig\-endian\fR" 4
10050 .IX Item "-mbig-endian"
10051 .PD
10052 On System V.4 and embedded PowerPC systems compile code for the
10053 processor in big endian mode.  The \fB\-mbig\-endian\fR option is
10054 the same as \fB\-mbig\fR.
10055 .IP "\fB\-mdynamic\-no\-pic\fR" 4
10056 .IX Item "-mdynamic-no-pic"
10057 On Darwin and Mac \s-1OS\s0 X systems, compile code so that it is not
10058 relocatable, but that its external references are relocatable.  The
10059 resulting code is suitable for applications, but not shared
10060 libraries.
10061 .IP "\fB\-mprioritize\-restricted\-insns=\fR\fIpriority\fR" 4
10062 .IX Item "-mprioritize-restricted-insns=priority"
10063 This option controls the priority that is assigned to
10064 dispatch-slot restricted instructions during the second scheduling
10065 pass.  The argument \fIpriority\fR takes the value \fI0/1/2\fR to assign
10066 \&\fIno/highest/second\-highest\fR priority to dispatch slot restricted
10067 instructions.
10068 .IP "\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR" 4
10069 .IX Item "-msched-costly-dep=dependence_type"
10070 This option controls which dependences are considered costly
10071 by the target during instruction scheduling.  The argument
10072 \&\fIdependence_type\fR takes one of the following values:
10073 \&\fIno\fR: no dependence is costly,
10074 \&\fIall\fR: all dependences are costly,
10075 \&\fItrue_store_to_load\fR: a true dependence from store to load is costly,
10076 \&\fIstore_to_load\fR: any dependence from store to load is costly,
10077 \&\fInumber\fR: any dependence which latency >= \fInumber\fR is costly.
10078 .IP "\fB\-minsert\-sched\-nops=\fR\fIscheme\fR" 4
10079 .IX Item "-minsert-sched-nops=scheme"
10080 This option controls which nop insertion scheme will be used during
10081 the second scheduling pass.  The argument \fIscheme\fR takes one of the
10082 following values:
10083 \&\fIno\fR: Don't insert nops.
10084 \&\fIpad\fR: Pad with nops any dispatch group which has vacant issue slots,
10085 according to the scheduler's grouping.
10086 \&\fIregroup_exact\fR: Insert nops to force costly dependent insns into
10087 separate groups.  Insert exactly as many nops as needed to force an insn
10088 to a new group, according to the estimated processor grouping.
10089 \&\fInumber\fR: Insert nops to force costly dependent insns into
10090 separate groups.  Insert \fInumber\fR nops to force an insn to a new group.
10091 .IP "\fB\-mcall\-sysv\fR" 4
10092 .IX Item "-mcall-sysv"
10093 On System V.4 and embedded PowerPC systems compile code using calling
10094 conventions that adheres to the March 1995 draft of the System V
10095 Application Binary Interface, PowerPC processor supplement.  This is the
10096 default unless you configured \s-1GCC\s0 using \fBpowerpc\-*\-eabiaix\fR.
10097 .IP "\fB\-mcall\-sysv\-eabi\fR" 4
10098 .IX Item "-mcall-sysv-eabi"
10099 Specify both \fB\-mcall\-sysv\fR and \fB\-meabi\fR options.
10100 .IP "\fB\-mcall\-sysv\-noeabi\fR" 4
10101 .IX Item "-mcall-sysv-noeabi"
10102 Specify both \fB\-mcall\-sysv\fR and \fB\-mno\-eabi\fR options.
10103 .IP "\fB\-mcall\-solaris\fR" 4
10104 .IX Item "-mcall-solaris"
10105 On System V.4 and embedded PowerPC systems compile code for the Solaris
10106 operating system.
10107 .IP "\fB\-mcall\-linux\fR" 4
10108 .IX Item "-mcall-linux"
10109 On System V.4 and embedded PowerPC systems compile code for the
10110 Linux-based \s-1GNU\s0 system.
10111 .IP "\fB\-mcall\-gnu\fR" 4
10112 .IX Item "-mcall-gnu"
10113 On System V.4 and embedded PowerPC systems compile code for the
10114 Hurd-based \s-1GNU\s0 system.
10115 .IP "\fB\-mcall\-netbsd\fR" 4
10116 .IX Item "-mcall-netbsd"
10117 On System V.4 and embedded PowerPC systems compile code for the
10118 NetBSD operating system.
10119 .IP "\fB\-maix\-struct\-return\fR" 4
10120 .IX Item "-maix-struct-return"
10121 Return all structures in memory (as specified by the \s-1AIX\s0 \s-1ABI\s0).
10122 .IP "\fB\-msvr4\-struct\-return\fR" 4
10123 .IX Item "-msvr4-struct-return"
10124 Return structures smaller than 8 bytes in registers (as specified by the
10125 \&\s-1SVR4\s0 \s-1ABI\s0).
10126 .IP "\fB\-mabi=altivec\fR" 4
10127 .IX Item "-mabi=altivec"
10128 Extend the current \s-1ABI\s0 with AltiVec \s-1ABI\s0 extensions.  This does not
10129 change the default \s-1ABI\s0, instead it adds the AltiVec \s-1ABI\s0 extensions to
10130 the current \s-1ABI\s0.
10131 .IP "\fB\-mabi=no\-altivec\fR" 4
10132 .IX Item "-mabi=no-altivec"
10133 Disable AltiVec \s-1ABI\s0 extensions for the current \s-1ABI\s0.
10134 .IP "\fB\-mprototype\fR" 4
10135 .IX Item "-mprototype"
10136 .PD 0
10137 .IP "\fB\-mno\-prototype\fR" 4
10138 .IX Item "-mno-prototype"
10139 .PD
10140 On System V.4 and embedded PowerPC systems assume that all calls to
10141 variable argument functions are properly prototyped.  Otherwise, the
10142 compiler must insert an instruction before every non prototyped call to
10143 set or clear bit 6 of the condition code register (\fI\s-1CR\s0\fR) to
10144 indicate whether floating point values were passed in the floating point
10145 registers in case the function takes a variable arguments.  With
10146 \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
10147 will set or clear the bit.
10148 .IP "\fB\-msim\fR" 4
10149 .IX Item "-msim"
10150 On embedded PowerPC systems, assume that the startup module is called
10151 \&\fIsim\-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
10152 \&\fIlibc.a\fR.  This is the default for \fBpowerpc\-*\-eabisim\fR.
10153 configurations.
10154 .IP "\fB\-mmvme\fR" 4
10155 .IX Item "-mmvme"
10156 On embedded PowerPC systems, assume that the startup module is called
10157 \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
10158 \&\fIlibc.a\fR.
10159 .IP "\fB\-mads\fR" 4
10160 .IX Item "-mads"
10161 On embedded PowerPC systems, assume that the startup module is called
10162 \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
10163 \&\fIlibc.a\fR.
10164 .IP "\fB\-myellowknife\fR" 4
10165 .IX Item "-myellowknife"
10166 On embedded PowerPC systems, assume that the startup module is called
10167 \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
10168 \&\fIlibc.a\fR.
10169 .IP "\fB\-mvxworks\fR" 4
10170 .IX Item "-mvxworks"
10171 On System V.4 and embedded PowerPC systems, specify that you are
10172 compiling for a VxWorks system.
10173 .IP "\fB\-mwindiss\fR" 4
10174 .IX Item "-mwindiss"
10175 Specify that you are compiling for the WindISS simulation environment.
10176 .IP "\fB\-memb\fR" 4
10177 .IX Item "-memb"
10178 On embedded PowerPC systems, set the \fI\s-1PPC_EMB\s0\fR bit in the \s-1ELF\s0 flags
10179 header to indicate that \fBeabi\fR extended relocations are used.
10180 .IP "\fB\-meabi\fR" 4
10181 .IX Item "-meabi"
10182 .PD 0
10183 .IP "\fB\-mno\-eabi\fR" 4
10184 .IX Item "-mno-eabi"
10185 .PD
10186 On System V.4 and embedded PowerPC systems do (do not) adhere to the
10187 Embedded Applications Binary Interface (eabi) which is a set of
10188 modifications to the System V.4 specifications.  Selecting \fB\-meabi\fR
10189 means that the stack is aligned to an 8 byte boundary, a function
10190 \&\f(CW\*(C`_\|_eabi\*(C'\fR is called to from \f(CW\*(C`main\*(C'\fR to set up the eabi
10191 environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
10192 \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas.  Selecting
10193 \&\fB\-mno\-eabi\fR means that the stack is aligned to a 16 byte boundary,
10194 do not call an initialization function from \f(CW\*(C`main\*(C'\fR, and the
10195 \&\fB\-msdata\fR option will only use \f(CW\*(C`r13\*(C'\fR to point to a single
10196 small data area.  The \fB\-meabi\fR option is on by default if you
10197 configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
10198 .IP "\fB\-msdata=eabi\fR" 4
10199 .IX Item "-msdata=eabi"
10200 On System V.4 and embedded PowerPC systems, put small initialized
10201 \&\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata2\fR section, which
10202 is pointed to by register \f(CW\*(C`r2\*(C'\fR.  Put small initialized
10203 non\-\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata\fR section,
10204 which is pointed to by register \f(CW\*(C`r13\*(C'\fR.  Put small uninitialized
10205 global and static data in the \fB.sbss\fR section, which is adjacent to
10206 the \fB.sdata\fR section.  The \fB\-msdata=eabi\fR option is
10207 incompatible with the \fB\-mrelocatable\fR option.  The
10208 \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
10209 .IP "\fB\-msdata=sysv\fR" 4
10210 .IX Item "-msdata=sysv"
10211 On System V.4 and embedded PowerPC systems, put small global and static
10212 data in the \fB.sdata\fR section, which is pointed to by register
10213 \&\f(CW\*(C`r13\*(C'\fR.  Put small uninitialized global and static data in the
10214 \&\fB.sbss\fR section, which is adjacent to the \fB.sdata\fR section.
10215 The \fB\-msdata=sysv\fR option is incompatible with the
10216 \&\fB\-mrelocatable\fR option.
10217 .IP "\fB\-msdata=default\fR" 4
10218 .IX Item "-msdata=default"
10219 .PD 0
10220 .IP "\fB\-msdata\fR" 4
10221 .IX Item "-msdata"
10222 .PD
10223 On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
10224 compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
10225 same as \fB\-msdata=sysv\fR.
10226 .IP "\fB\-msdata\-data\fR" 4
10227 .IX Item "-msdata-data"
10228 On System V.4 and embedded PowerPC systems, put small global and static
10229 data in the \fB.sdata\fR section.  Put small uninitialized global and
10230 static data in the \fB.sbss\fR section.  Do not use register \f(CW\*(C`r13\*(C'\fR
10231 to address small data however.  This is the default behavior unless
10232 other \fB\-msdata\fR options are used.
10233 .IP "\fB\-msdata=none\fR" 4
10234 .IX Item "-msdata=none"
10235 .PD 0
10236 .IP "\fB\-mno\-sdata\fR" 4
10237 .IX Item "-mno-sdata"
10238 .PD
10239 On embedded PowerPC systems, put all initialized global and static data
10240 in the \fB.data\fR section, and all uninitialized data in the
10241 \&\fB.bss\fR section.
10242 .IP "\fB\-G\fR \fInum\fR" 4
10243 .IX Item "-G num"
10244 On embedded PowerPC systems, put global and static items less than or
10245 equal to \fInum\fR bytes into the small data or bss sections instead of
10246 the normal data or bss section.  By default, \fInum\fR is 8.  The
10247 \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
10248 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
10249 .IP "\fB\-mregnames\fR" 4
10250 .IX Item "-mregnames"
10251 .PD 0
10252 .IP "\fB\-mno\-regnames\fR" 4
10253 .IX Item "-mno-regnames"
10254 .PD
10255 On System V.4 and embedded PowerPC systems do (do not) emit register
10256 names in the assembly language output using symbolic forms.
10257 .IP "\fB\-mlongcall\fR" 4
10258 .IX Item "-mlongcall"
10259 .PD 0
10260 .IP "\fB\-mno\-longcall\fR" 4
10261 .IX Item "-mno-longcall"
10262 .PD
10263 Default to making all function calls indirectly, using a register, so
10264 that functions which reside further than 32 megabytes (33,554,432
10265 bytes) from the current location can be called.  This setting can be
10266 overridden by the \f(CW\*(C`shortcall\*(C'\fR function attribute, or by
10267 \&\f(CW\*(C`#pragma longcall(0)\*(C'\fR.
10268 .Sp
10269 Some linkers are capable of detecting out-of-range calls and generating
10270 glue code on the fly.  On these systems, long calls are unnecessary and
10271 generate slower code.  As of this writing, the \s-1AIX\s0 linker can do this,
10272 as can the \s-1GNU\s0 linker for PowerPC/64.  It is planned to add this feature
10273 to the \s-1GNU\s0 linker for 32\-bit PowerPC systems as well.
10274 .Sp
10275 On Darwin/PPC systems, \f(CW\*(C`#pragma longcall\*(C'\fR will generate ``jbsr
10276 callee, L42'', plus a ``branch island'' (glue code).  The two target
10277 addresses represent the callee and the ``branch island''.  The
10278 Darwin/PPC linker will prefer the first address and generate a ``bl
10279 callee'' if the \s-1PPC\s0 ``bl'' instruction will reach the callee directly;
10280 otherwise, the linker will generate ``bl L42'' to call the ``branch
10281 island''.  The ``branch island'' is appended to the body of the
10282 calling function; it computes the full 32\-bit address of the callee
10283 and jumps to it.
10284 .Sp
10285 On Mach-O (Darwin) systems, this option directs the compiler emit to
10286 the glue for every direct call, and the Darwin linker decides whether
10287 to use or discard it.
10288 .Sp
10289 In the future, we may cause \s-1GCC\s0 to ignore all longcall specifications
10290 when the linker is known to generate glue.
10291 .IP "\fB\-pthread\fR" 4
10292 .IX Item "-pthread"
10293 Adds support for multithreading with the \fIpthreads\fR library.
10294 This option sets flags for both the preprocessor and linker.
10295 .PP
10296 \fIS/390 and zSeries Options\fR
10297 .IX Subsection "S/390 and zSeries Options"
10298 .PP
10299 These are the \fB\-m\fR options defined for the S/390 and zSeries architecture.
10300 .IP "\fB\-mhard\-float\fR" 4
10301 .IX Item "-mhard-float"
10302 .PD 0
10303 .IP "\fB\-msoft\-float\fR" 4
10304 .IX Item "-msoft-float"
10305 .PD
10306 Use (do not use) the hardware floating-point instructions and registers
10307 for floating-point operations.  When \fB\-msoft\-float\fR is specified,
10308 functions in \fIlibgcc.a\fR will be used to perform floating-point
10309 operations.  When \fB\-mhard\-float\fR is specified, the compiler
10310 generates \s-1IEEE\s0 floating-point instructions.  This is the default.
10311 .IP "\fB\-mbackchain\fR" 4
10312 .IX Item "-mbackchain"
10313 .PD 0
10314 .IP "\fB\-mno\-backchain\fR" 4
10315 .IX Item "-mno-backchain"
10316 .PD
10317 Store (do not store) the address of the caller's frame as backchain pointer
10318 into the callee's stack frame.
10319 A backchain may be needed to allow debugging using tools that do not understand
10320 \&\s-1DWARF\-2\s0 call frame information.
10321 When \fB\-mno\-packed\-stack\fR is in effect, the backchain pointer is stored
10322 at the bottom of the stack frame; when \fB\-mpacked\-stack\fR is in effect,
10323 the backchain is placed into the topmost word of the 96/160 byte register
10324 save area.
10325 .Sp
10326 In general, code compiled with \fB\-mbackchain\fR is call-compatible with
10327 code compiled with \fB\-mmo\-backchain\fR; however, use of the backchain
10328 for debugging purposes usually requires that the whole binary is built with
10329 \&\fB\-mbackchain\fR.  Note that the combination of \fB\-mbackchain\fR,
10330 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
10331 to build a linux kernel use \fB\-msoft\-float\fR.
10332 .Sp
10333 The default is to not maintain the backchain.
10334 .IP "\fB\-mpacked\-stack\fR" 4
10335 .IX Item "-mpacked-stack"
10336 .PD 0
10337 .IP "\fB\-mno\-packed\-stack\fR" 4
10338 .IX Item "-mno-packed-stack"
10339 .PD
10340 Use (do not use) the packed stack layout.  When \fB\-mno\-packed\-stack\fR is
10341 specified, the compiler uses the all fields of the 96/160 byte register save
10342 area only for their default purpose; unused fields still take up stack space.
10343 When \fB\-mpacked\-stack\fR is specified, register save slots are densely
10344 packed at the top of the register save area; unused space is reused for other
10345 purposes, allowing for more efficient use of the available stack space.
10346 However, when \fB\-mbackchain\fR is also in effect, the topmost word of
10347 the save area is always used to store the backchain, and the return address
10348 register is always saved two words below the backchain.
10349 .Sp
10350 As long as the stack frame backchain is not used, code generated with
10351 \&\fB\-mpacked\-stack\fR is call-compatible with code generated with
10352 \&\fB\-mno\-packed\-stack\fR.  Note that some non-FSF releases of \s-1GCC\s0 2.95 for
10353 S/390 or zSeries generated code that uses the stack frame backchain at run
10354 time, not just for debugging purposes.  Such code is not call-compatible
10355 with code compiled with \fB\-mpacked\-stack\fR.  Also, note that the
10356 combination of \fB\-mbackchain\fR,
10357 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
10358 to build a linux kernel use \fB\-msoft\-float\fR.
10359 .Sp
10360 The default is to not use the packed stack layout.
10361 .IP "\fB\-msmall\-exec\fR" 4
10362 .IX Item "-msmall-exec"
10363 .PD 0
10364 .IP "\fB\-mno\-small\-exec\fR" 4
10365 .IX Item "-mno-small-exec"
10366 .PD
10367 Generate (or do not generate) code using the \f(CW\*(C`bras\*(C'\fR instruction
10368 to do subroutine calls.
10369 This only works reliably if the total executable size does not
10370 exceed 64k.  The default is to use the \f(CW\*(C`basr\*(C'\fR instruction instead,
10371 which does not have this limitation.
10372 .IP "\fB\-m64\fR" 4
10373 .IX Item "-m64"
10374 .PD 0
10375 .IP "\fB\-m31\fR" 4
10376 .IX Item "-m31"
10377 .PD
10378 When \fB\-m31\fR is specified, generate code compliant to the
10379 GNU/Linux for S/390 \s-1ABI\s0.  When \fB\-m64\fR is specified, generate
10380 code compliant to the GNU/Linux for zSeries \s-1ABI\s0.  This allows \s-1GCC\s0 in
10381 particular to generate 64\-bit instructions.  For the \fBs390\fR
10382 targets, the default is \fB\-m31\fR, while the \fBs390x\fR
10383 targets default to \fB\-m64\fR.
10384 .IP "\fB\-mzarch\fR" 4
10385 .IX Item "-mzarch"
10386 .PD 0
10387 .IP "\fB\-mesa\fR" 4
10388 .IX Item "-mesa"
10389 .PD
10390 When \fB\-mzarch\fR is specified, generate code using the
10391 instructions available on z/Architecture.
10392 When \fB\-mesa\fR is specified, generate code using the
10393 instructions available on \s-1ESA/390\s0.  Note that \fB\-mesa\fR is
10394 not possible with \fB\-m64\fR.
10395 When generating code compliant to the GNU/Linux for S/390 \s-1ABI\s0,
10396 the default is \fB\-mesa\fR.  When generating code compliant
10397 to the GNU/Linux for zSeries \s-1ABI\s0, the default is \fB\-mzarch\fR.
10398 .IP "\fB\-mmvcle\fR" 4
10399 .IX Item "-mmvcle"
10400 .PD 0
10401 .IP "\fB\-mno\-mvcle\fR" 4
10402 .IX Item "-mno-mvcle"
10403 .PD
10404 Generate (or do not generate) code using the \f(CW\*(C`mvcle\*(C'\fR instruction
10405 to perform block moves.  When \fB\-mno\-mvcle\fR is specified,
10406 use a \f(CW\*(C`mvc\*(C'\fR loop instead.  This is the default.
10407 .IP "\fB\-mdebug\fR" 4
10408 .IX Item "-mdebug"
10409 .PD 0
10410 .IP "\fB\-mno\-debug\fR" 4
10411 .IX Item "-mno-debug"
10412 .PD
10413 Print (or do not print) additional debug information when compiling.
10414 The default is to not print debug information.
10415 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
10416 .IX Item "-march=cpu-type"
10417 Generate code that will run on \fIcpu-type\fR, which is the name of a system
10418 representing a certain processor type.  Possible values for
10419 \&\fIcpu-type\fR are \fBg5\fR, \fBg6\fR, \fBz900\fR, and \fBz990\fR.
10420 When generating code using the instructions available on z/Architecture,
10421 the default is \fB\-march=z900\fR.  Otherwise, the default is
10422 \&\fB\-march=g5\fR.
10423 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
10424 .IX Item "-mtune=cpu-type"
10425 Tune to \fIcpu-type\fR everything applicable about the generated code,
10426 except for the \s-1ABI\s0 and the set of available instructions.
10427 The list of \fIcpu-type\fR values is the same as for \fB\-march\fR.
10428 The default is the value used for \fB\-march\fR.
10429 .IP "\fB\-mtpf\-trace\fR" 4
10430 .IX Item "-mtpf-trace"
10431 .PD 0
10432 .IP "\fB\-mno\-tpf\-trace\fR" 4
10433 .IX Item "-mno-tpf-trace"
10434 .PD
10435 Generate code that adds (does not add) in \s-1TPF\s0 \s-1OS\s0 specific branches to trace
10436 routines in the operating system.  This option is off by default, even
10437 when compiling for the \s-1TPF\s0 \s-1OS\s0.
10438 .IP "\fB\-mfused\-madd\fR" 4
10439 .IX Item "-mfused-madd"
10440 .PD 0
10441 .IP "\fB\-mno\-fused\-madd\fR" 4
10442 .IX Item "-mno-fused-madd"
10443 .PD
10444 Generate code that uses (does not use) the floating point multiply and
10445 accumulate instructions.  These instructions are generated by default if
10446 hardware floating point is used.
10447 .IP "\fB\-mwarn\-framesize=\fR\fIframesize\fR" 4
10448 .IX Item "-mwarn-framesize=framesize"
10449 Emit a warning if the current function exceeds the given frame size.  Because
10450 this is a compile time check it doesn't need to be a real problem when the program
10451 runs.  It is intended to identify functions which most probably cause
10452 a stack overflow.  It is useful to be used in an environment with limited stack
10453 size e.g. the linux kernel.
10454 .IP "\fB\-mwarn\-dynamicstack\fR" 4
10455 .IX Item "-mwarn-dynamicstack"
10456 Emit a warning if the function calls alloca or uses dynamically
10457 sized arrays.  This is generally a bad idea with a limited stack size.
10458 .IP "\fB\-mstack\-guard=\fR\fIstack-guard\fR" 4
10459 .IX Item "-mstack-guard=stack-guard"
10460 .PD 0
10461 .IP "\fB\-mstack\-size=\fR\fIstack-size\fR" 4
10462 .IX Item "-mstack-size=stack-size"
10463 .PD
10464 These arguments always have to be used in conjunction.  If they are present the s390
10465 back end emits additional instructions in the function prologue which trigger a trap
10466 if the stack size is \fIstack-guard\fR bytes above the \fIstack-size\fR
10467 (remember that the stack on s390 grows downward).  These options are intended to
10468 be used to help debugging stack overflow problems.  The additionally emitted code
10469 cause only little overhead and hence can also be used in production like systems
10470 without greater performance degradation.  The given values have to be exact
10471 powers of 2 and \fIstack-size\fR has to be greater than \fIstack-guard\fR.
10472 In order to be efficient the extra code makes the assumption that the stack starts
10473 at an address aligned to the value given by \fIstack-size\fR.
10474 .PP
10475 \fI\s-1SH\s0 Options\fR
10476 .IX Subsection "SH Options"
10477 .PP
10478 These \fB\-m\fR options are defined for the \s-1SH\s0 implementations:
10479 .IP "\fB\-m1\fR" 4
10480 .IX Item "-m1"
10481 Generate code for the \s-1SH1\s0.
10482 .IP "\fB\-m2\fR" 4
10483 .IX Item "-m2"
10484 Generate code for the \s-1SH2\s0.
10485 .IP "\fB\-m2e\fR" 4
10486 .IX Item "-m2e"
10487 Generate code for the SH2e.
10488 .IP "\fB\-m3\fR" 4
10489 .IX Item "-m3"
10490 Generate code for the \s-1SH3\s0.
10491 .IP "\fB\-m3e\fR" 4
10492 .IX Item "-m3e"
10493 Generate code for the SH3e.
10494 .IP "\fB\-m4\-nofpu\fR" 4
10495 .IX Item "-m4-nofpu"
10496 Generate code for the \s-1SH4\s0 without a floating-point unit.
10497 .IP "\fB\-m4\-single\-only\fR" 4
10498 .IX Item "-m4-single-only"
10499 Generate code for the \s-1SH4\s0 with a floating-point unit that only
10500 supports single-precision arithmetic.
10501 .IP "\fB\-m4\-single\fR" 4
10502 .IX Item "-m4-single"
10503 Generate code for the \s-1SH4\s0 assuming the floating-point unit is in
10504 single-precision mode by default.
10505 .IP "\fB\-m4\fR" 4
10506 .IX Item "-m4"
10507 Generate code for the \s-1SH4\s0.
10508 .IP "\fB\-m4a\-nofpu\fR" 4
10509 .IX Item "-m4a-nofpu"
10510 Generate code for the SH4al\-dsp, or for a SH4a in such a way that the
10511 floating-point unit is not used.
10512 .IP "\fB\-m4a\-single\-only\fR" 4
10513 .IX Item "-m4a-single-only"
10514 Generate code for the SH4a, in such a way that no double-precision
10515 floating point operations are used.
10516 .IP "\fB\-m4a\-single\fR" 4
10517 .IX Item "-m4a-single"
10518 Generate code for the SH4a assuming the floating-point unit is in
10519 single-precision mode by default.
10520 .IP "\fB\-m4a\fR" 4
10521 .IX Item "-m4a"
10522 Generate code for the SH4a.
10523 .IP "\fB\-m4al\fR" 4
10524 .IX Item "-m4al"
10525 Same as \fB\-m4a\-nofpu\fR, except that it implicitly passes
10526 \&\fB\-dsp\fR to the assembler.  \s-1GCC\s0 doesn't generate any \s-1DSP\s0
10527 instructions at the moment.
10528 .IP "\fB\-mb\fR" 4
10529 .IX Item "-mb"
10530 Compile code for the processor in big endian mode.
10531 .IP "\fB\-ml\fR" 4
10532 .IX Item "-ml"
10533 Compile code for the processor in little endian mode.
10534 .IP "\fB\-mdalign\fR" 4
10535 .IX Item "-mdalign"
10536 Align doubles at 64\-bit boundaries.  Note that this changes the calling
10537 conventions, and thus some functions from the standard C library will
10538 not work unless you recompile it first with \fB\-mdalign\fR.
10539 .IP "\fB\-mrelax\fR" 4
10540 .IX Item "-mrelax"
10541 Shorten some address references at link time, when possible; uses the
10542 linker option \fB\-relax\fR.
10543 .IP "\fB\-mbigtable\fR" 4
10544 .IX Item "-mbigtable"
10545 Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables.  The default is to use
10546 16\-bit offsets.
10547 .IP "\fB\-mfmovd\fR" 4
10548 .IX Item "-mfmovd"
10549 Enable the use of the instruction \f(CW\*(C`fmovd\*(C'\fR.
10550 .IP "\fB\-mhitachi\fR" 4
10551 .IX Item "-mhitachi"
10552 Comply with the calling conventions defined by Renesas.
10553 .IP "\fB\-mrenesas\fR" 4
10554 .IX Item "-mrenesas"
10555 Comply with the calling conventions defined by Renesas.
10556 .IP "\fB\-mno\-renesas\fR" 4
10557 .IX Item "-mno-renesas"
10558 Comply with the calling conventions defined for \s-1GCC\s0 before the Renesas
10559 conventions were available.  This option is the default for all
10560 targets of the \s-1SH\s0 toolchain except for \fBsh-symbianelf\fR.
10561 .IP "\fB\-mnomacsave\fR" 4
10562 .IX Item "-mnomacsave"
10563 Mark the \f(CW\*(C`MAC\*(C'\fR register as call\-clobbered, even if
10564 \&\fB\-mhitachi\fR is given.
10565 .IP "\fB\-mieee\fR" 4
10566 .IX Item "-mieee"
10567 Increase IEEE-compliance of floating-point code.
10568 .IP "\fB\-misize\fR" 4
10569 .IX Item "-misize"
10570 Dump instruction size and location in the assembly code.
10571 .IP "\fB\-mpadstruct\fR" 4
10572 .IX Item "-mpadstruct"
10573 This option is deprecated.  It pads structures to multiple of 4 bytes,
10574 which is incompatible with the \s-1SH\s0 \s-1ABI\s0.
10575 .IP "\fB\-mspace\fR" 4
10576 .IX Item "-mspace"
10577 Optimize for space instead of speed.  Implied by \fB\-Os\fR.
10578 .IP "\fB\-mprefergot\fR" 4
10579 .IX Item "-mprefergot"
10580 When generating position-independent code, emit function calls using
10581 the Global Offset Table instead of the Procedure Linkage Table.
10582 .IP "\fB\-musermode\fR" 4
10583 .IX Item "-musermode"
10584 Generate a library function call to invalidate instruction cache
10585 entries, after fixing up a trampoline.  This library function call
10586 doesn't assume it can write to the whole memory address space.  This
10587 is the default when the target is \f(CW\*(C`sh\-*\-linux*\*(C'\fR.
10588 .PP
10589 \fI\s-1SPARC\s0 Options\fR
10590 .IX Subsection "SPARC Options"
10591 .PP
10592 These \fB\-m\fR options are supported on the \s-1SPARC:\s0
10593 .IP "\fB\-mno\-app\-regs\fR" 4
10594 .IX Item "-mno-app-regs"
10595 .PD 0
10596 .IP "\fB\-mapp\-regs\fR" 4
10597 .IX Item "-mapp-regs"
10598 .PD
10599 Specify \fB\-mapp\-regs\fR to generate output using the global registers
10600 2 through 4, which the \s-1SPARC\s0 \s-1SVR4\s0 \s-1ABI\s0 reserves for applications.  This
10601 is the default.
10602 .Sp
10603 To be fully \s-1SVR4\s0 \s-1ABI\s0 compliant at the cost of some performance loss,
10604 specify \fB\-mno\-app\-regs\fR.  You should compile libraries and system
10605 software with this option.
10606 .IP "\fB\-mfpu\fR" 4
10607 .IX Item "-mfpu"
10608 .PD 0
10609 .IP "\fB\-mhard\-float\fR" 4
10610 .IX Item "-mhard-float"
10611 .PD
10612 Generate output containing floating point instructions.  This is the
10613 default.
10614 .IP "\fB\-mno\-fpu\fR" 4
10615 .IX Item "-mno-fpu"
10616 .PD 0
10617 .IP "\fB\-msoft\-float\fR" 4
10618 .IX Item "-msoft-float"
10619 .PD
10620 Generate output containing library calls for floating point.
10621 \&\fBWarning:\fR the requisite libraries are not available for all \s-1SPARC\s0
10622 targets.  Normally the facilities of the machine's usual C compiler are
10623 used, but this cannot be done directly in cross\-compilation.  You must make
10624 your own arrangements to provide suitable library functions for
10625 cross\-compilation.  The embedded targets \fBsparc\-*\-aout\fR and
10626 \&\fBsparclite\-*\-*\fR do provide software floating point support.
10627 .Sp
10628 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
10629 therefore, it is only useful if you compile \fIall\fR of a program with
10630 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
10631 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
10632 this to work.
10633 .IP "\fB\-mhard\-quad\-float\fR" 4
10634 .IX Item "-mhard-quad-float"
10635 Generate output containing quad-word (long double) floating point
10636 instructions.
10637 .IP "\fB\-msoft\-quad\-float\fR" 4
10638 .IX Item "-msoft-quad-float"
10639 Generate output containing library calls for quad-word (long double)
10640 floating point instructions.  The functions called are those specified
10641 in the \s-1SPARC\s0 \s-1ABI\s0.  This is the default.
10642 .Sp
10643 As of this writing, there are no \s-1SPARC\s0 implementations that have hardware
10644 support for the quad-word floating point instructions.  They all invoke
10645 a trap handler for one of these instructions, and then the trap handler
10646 emulates the effect of the instruction.  Because of the trap handler overhead,
10647 this is much slower than calling the \s-1ABI\s0 library routines.  Thus the
10648 \&\fB\-msoft\-quad\-float\fR option is the default.
10649 .IP "\fB\-mno\-unaligned\-doubles\fR" 4
10650 .IX Item "-mno-unaligned-doubles"
10651 .PD 0
10652 .IP "\fB\-munaligned\-doubles\fR" 4
10653 .IX Item "-munaligned-doubles"
10654 .PD
10655 Assume that doubles have 8 byte alignment.  This is the default.
10656 .Sp
10657 With \fB\-munaligned\-doubles\fR, \s-1GCC\s0 assumes that doubles have 8 byte
10658 alignment only if they are contained in another type, or if they have an
10659 absolute address.  Otherwise, it assumes they have 4 byte alignment.
10660 Specifying this option avoids some rare compatibility problems with code
10661 generated by other compilers.  It is not the default because it results
10662 in a performance loss, especially for floating point code.
10663 .IP "\fB\-mno\-faster\-structs\fR" 4
10664 .IX Item "-mno-faster-structs"
10665 .PD 0
10666 .IP "\fB\-mfaster\-structs\fR" 4
10667 .IX Item "-mfaster-structs"
10668 .PD
10669 With \fB\-mfaster\-structs\fR, the compiler assumes that structures
10670 should have 8 byte alignment.  This enables the use of pairs of
10671 \&\f(CW\*(C`ldd\*(C'\fR and \f(CW\*(C`std\*(C'\fR instructions for copies in structure
10672 assignment, in place of twice as many \f(CW\*(C`ld\*(C'\fR and \f(CW\*(C`st\*(C'\fR pairs.
10673 However, the use of this changed alignment directly violates the \s-1SPARC\s0
10674 \&\s-1ABI\s0.  Thus, it's intended only for use on targets where the developer
10675 acknowledges that their resulting code will not be directly in line with
10676 the rules of the \s-1ABI\s0.
10677 .IP "\fB\-mimpure\-text\fR" 4
10678 .IX Item "-mimpure-text"
10679 \&\fB\-mimpure\-text\fR, used in addition to \fB\-shared\fR, tells
10680 the compiler to not pass \fB\-z text\fR to the linker when linking a
10681 shared object.  Using this option, you can link position-dependent
10682 code into a shared object.
10683 .Sp
10684 \&\fB\-mimpure\-text\fR suppresses the ``relocations remain against
10685 allocatable but non-writable sections'' linker error message.
10686 However, the necessary relocations will trigger copy\-on\-write, and the
10687 shared object is not actually shared across processes.  Instead of
10688 using \fB\-mimpure\-text\fR, you should compile all source code with
10689 \&\fB\-fpic\fR or \fB\-fPIC\fR.
10690 .Sp
10691 This option is only available on SunOS and Solaris.
10692 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
10693 .IX Item "-mcpu=cpu_type"
10694 Set the instruction set, register set, and instruction scheduling parameters
10695 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
10696 \&\fBv7\fR, \fBcypress\fR, \fBv8\fR, \fBsupersparc\fR, \fBsparclite\fR,
10697 \&\fBf930\fR, \fBf934\fR, \fBhypersparc\fR, \fBsparclite86x\fR,
10698 \&\fBsparclet\fR, \fBtsc701\fR, \fBv9\fR, \fBultrasparc\fR, and
10699 \&\fBultrasparc3\fR.
10700 .Sp
10701 Default instruction scheduling parameters are used for values that select
10702 an architecture and not an implementation.  These are \fBv7\fR, \fBv8\fR,
10703 \&\fBsparclite\fR, \fBsparclet\fR, \fBv9\fR.
10704 .Sp
10705 Here is a list of each supported architecture and their supported
10706 implementations.
10707 .Sp
10708 .Vb 5
10709 \&            v7:             cypress
10710 \&            v8:             supersparc, hypersparc
10711 \&            sparclite:      f930, f934, sparclite86x
10712 \&            sparclet:       tsc701
10713 \&            v9:             ultrasparc, ultrasparc3
10714 .Ve
10715 .Sp
10716 By default (unless configured otherwise), \s-1GCC\s0 generates code for the V7
10717 variant of the \s-1SPARC\s0 architecture.  With \fB\-mcpu=cypress\fR, the compiler
10718 additionally optimizes it for the Cypress \s-1CY7C602\s0 chip, as used in the
10719 SPARCStation/SPARCServer 3xx series.  This is also appropriate for the older
10720 SPARCStation 1, 2, \s-1IPX\s0 etc.
10721 .Sp
10722 With \fB\-mcpu=v8\fR, \s-1GCC\s0 generates code for the V8 variant of the \s-1SPARC\s0
10723 architecture.  The only difference from V7 code is that the compiler emits
10724 the integer multiply and integer divide instructions which exist in \s-1SPARC\-V8\s0
10725 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=supersparc\fR, the compiler additionally
10726 optimizes it for the SuperSPARC chip, as used in the SPARCStation 10, 1000 and
10727 2000 series.
10728 .Sp
10729 With \fB\-mcpu=sparclite\fR, \s-1GCC\s0 generates code for the SPARClite variant of
10730 the \s-1SPARC\s0 architecture.  This adds the integer multiply, integer divide step
10731 and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClite but not in \s-1SPARC\-V7\s0.
10732 With \fB\-mcpu=f930\fR, the compiler additionally optimizes it for the
10733 Fujitsu \s-1MB86930\s0 chip, which is the original SPARClite, with no \s-1FPU\s0.  With
10734 \&\fB\-mcpu=f934\fR, the compiler additionally optimizes it for the Fujitsu
10735 \&\s-1MB86934\s0 chip, which is the more recent SPARClite with \s-1FPU\s0.
10736 .Sp
10737 With \fB\-mcpu=sparclet\fR, \s-1GCC\s0 generates code for the SPARClet variant of
10738 the \s-1SPARC\s0 architecture.  This adds the integer multiply, multiply/accumulate,
10739 integer divide step and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClet
10740 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=tsc701\fR, the compiler additionally
10741 optimizes it for the \s-1TEMIC\s0 SPARClet chip.
10742 .Sp
10743 With \fB\-mcpu=v9\fR, \s-1GCC\s0 generates code for the V9 variant of the \s-1SPARC\s0
10744 architecture.  This adds 64\-bit integer and floating-point move instructions,
10745 3 additional floating-point condition code registers and conditional move
10746 instructions.  With \fB\-mcpu=ultrasparc\fR, the compiler additionally
10747 optimizes it for the Sun UltraSPARC I/II chips.  With
10748 \&\fB\-mcpu=ultrasparc3\fR, the compiler additionally optimizes it for the
10749 Sun UltraSPARC \s-1III\s0 chip.
10750 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
10751 .IX Item "-mtune=cpu_type"
10752 Set the instruction scheduling parameters for machine type
10753 \&\fIcpu_type\fR, but do not set the instruction set or register set that the
10754 option \fB\-mcpu=\fR\fIcpu_type\fR would.
10755 .Sp
10756 The same values for \fB\-mcpu=\fR\fIcpu_type\fR can be used for
10757 \&\fB\-mtune=\fR\fIcpu_type\fR, but the only useful values are those
10758 that select a particular cpu implementation.  Those are \fBcypress\fR,
10759 \&\fBsupersparc\fR, \fBhypersparc\fR, \fBf930\fR, \fBf934\fR,
10760 \&\fBsparclite86x\fR, \fBtsc701\fR, \fBultrasparc\fR, and
10761 \&\fBultrasparc3\fR.
10762 .IP "\fB\-mv8plus\fR" 4
10763 .IX Item "-mv8plus"
10764 .PD 0
10765 .IP "\fB\-mno\-v8plus\fR" 4
10766 .IX Item "-mno-v8plus"
10767 .PD
10768 With \fB\-mv8plus\fR, \s-1GCC\s0 generates code for the \s-1SPARC\-V8+\s0 \s-1ABI\s0.  The
10769 difference from the V8 \s-1ABI\s0 is that the global and out registers are
10770 considered 64\-bit wide.  This is enabled by default on Solaris in 32\-bit
10771 mode for all \s-1SPARC\-V9\s0 processors.
10772 .IP "\fB\-mvis\fR" 4
10773 .IX Item "-mvis"
10774 .PD 0
10775 .IP "\fB\-mno\-vis\fR" 4
10776 .IX Item "-mno-vis"
10777 .PD
10778 With \fB\-mvis\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
10779 Visual Instruction Set extensions.  The default is \fB\-mno\-vis\fR.
10780 .PP
10781 These \fB\-m\fR options are supported in addition to the above
10782 on \s-1SPARC\-V9\s0 processors in 64\-bit environments:
10783 .IP "\fB\-mlittle\-endian\fR" 4
10784 .IX Item "-mlittle-endian"
10785 Generate code for a processor running in little-endian mode.  It is only
10786 available for a few configurations and most notably not on Solaris and Linux.
10787 .IP "\fB\-m32\fR" 4
10788 .IX Item "-m32"
10789 .PD 0
10790 .IP "\fB\-m64\fR" 4
10791 .IX Item "-m64"
10792 .PD
10793 Generate code for a 32\-bit or 64\-bit environment.
10794 The 32\-bit environment sets int, long and pointer to 32 bits.
10795 The 64\-bit environment sets int to 32 bits and long and pointer
10796 to 64 bits.
10797 .IP "\fB\-mcmodel=medlow\fR" 4
10798 .IX Item "-mcmodel=medlow"
10799 Generate code for the Medium/Low code model: 64\-bit addresses, programs
10800 must be linked in the low 32 bits of memory.  Programs can be statically
10801 or dynamically linked.
10802 .IP "\fB\-mcmodel=medmid\fR" 4
10803 .IX Item "-mcmodel=medmid"
10804 Generate code for the Medium/Middle code model: 64\-bit addresses, programs
10805 must be linked in the low 44 bits of memory, the text and data segments must
10806 be less than 2GB in size and the data segment must be located within 2GB of
10807 the text segment.
10808 .IP "\fB\-mcmodel=medany\fR" 4
10809 .IX Item "-mcmodel=medany"
10810 Generate code for the Medium/Anywhere code model: 64\-bit addresses, programs
10811 may be linked anywhere in memory, the text and data segments must be less
10812 than 2GB in size and the data segment must be located within 2GB of the
10813 text segment.
10814 .IP "\fB\-mcmodel=embmedany\fR" 4
10815 .IX Item "-mcmodel=embmedany"
10816 Generate code for the Medium/Anywhere code model for embedded systems:
10817 64\-bit addresses, the text and data segments must be less than 2GB in
10818 size, both starting anywhere in memory (determined at link time).  The
10819 global register \f(CW%g4\fR points to the base of the data segment.  Programs
10820 are statically linked and \s-1PIC\s0 is not supported.
10821 .IP "\fB\-mstack\-bias\fR" 4
10822 .IX Item "-mstack-bias"
10823 .PD 0
10824 .IP "\fB\-mno\-stack\-bias\fR" 4
10825 .IX Item "-mno-stack-bias"
10826 .PD
10827 With \fB\-mstack\-bias\fR, \s-1GCC\s0 assumes that the stack pointer, and
10828 frame pointer if present, are offset by \-2047 which must be added back
10829 when making stack frame references.  This is the default in 64\-bit mode.
10830 Otherwise, assume no such offset is present.
10831 .PP
10832 These switches are supported in addition to the above on Solaris:
10833 .IP "\fB\-threads\fR" 4
10834 .IX Item "-threads"
10835 Add support for multithreading using the Solaris threads library.  This
10836 option sets flags for both the preprocessor and linker.  This option does
10837 not affect the thread safety of object code produced by the compiler or
10838 that of libraries supplied with it.
10839 .IP "\fB\-pthreads\fR" 4
10840 .IX Item "-pthreads"
10841 Add support for multithreading using the \s-1POSIX\s0 threads library.  This
10842 option sets flags for both the preprocessor and linker.  This option does
10843 not affect the thread safety of object code produced  by the compiler or
10844 that of libraries supplied with it.
10845 .PP
10846 \fIOptions for System V\fR
10847 .IX Subsection "Options for System V"
10848 .PP
10849 These additional options are available on System V Release 4 for
10850 compatibility with other compilers on those systems:
10851 .IP "\fB\-G\fR" 4
10852 .IX Item "-G"
10853 Create a shared object.
10854 It is recommended that \fB\-symbolic\fR or \fB\-shared\fR be used instead.
10855 .IP "\fB\-Qy\fR" 4
10856 .IX Item "-Qy"
10857 Identify the versions of each tool used by the compiler, in a
10858 \&\f(CW\*(C`.ident\*(C'\fR assembler directive in the output.
10859 .IP "\fB\-Qn\fR" 4
10860 .IX Item "-Qn"
10861 Refrain from adding \f(CW\*(C`.ident\*(C'\fR directives to the output file (this is
10862 the default).
10863 .IP "\fB\-YP,\fR\fIdirs\fR" 4
10864 .IX Item "-YP,dirs"
10865 Search the directories \fIdirs\fR, and no others, for libraries
10866 specified with \fB\-l\fR.
10867 .IP "\fB\-Ym,\fR\fIdir\fR" 4
10868 .IX Item "-Ym,dir"
10869 Look in the directory \fIdir\fR to find the M4 preprocessor.
10870 The assembler uses this option.
10871 .PP
10872 \fITMS320C3x/C4x Options\fR
10873 .IX Subsection "TMS320C3x/C4x Options"
10874 .PP
10875 These \fB\-m\fR options are defined for TMS320C3x/C4x implementations:
10876 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
10877 .IX Item "-mcpu=cpu_type"
10878 Set the instruction set, register set, and instruction scheduling
10879 parameters for machine type \fIcpu_type\fR.  Supported values for
10880 \&\fIcpu_type\fR are \fBc30\fR, \fBc31\fR, \fBc32\fR, \fBc40\fR, and
10881 \&\fBc44\fR.  The default is \fBc40\fR to generate code for the
10882 \&\s-1TMS320C40\s0.
10883 .IP "\fB\-mbig\-memory\fR" 4
10884 .IX Item "-mbig-memory"
10885 .PD 0
10886 .IP "\fB\-mbig\fR" 4
10887 .IX Item "-mbig"
10888 .IP "\fB\-msmall\-memory\fR" 4
10889 .IX Item "-msmall-memory"
10890 .IP "\fB\-msmall\fR" 4
10891 .IX Item "-msmall"
10892 .PD
10893 Generates code for the big or small memory model.  The small memory
10894 model assumed that all data fits into one 64K word page.  At run-time
10895 the data page (\s-1DP\s0) register must be set to point to the 64K page
10896 containing the .bss and .data program sections.  The big memory model is
10897 the default and requires reloading of the \s-1DP\s0 register for every direct
10898 memory access.
10899 .IP "\fB\-mbk\fR" 4
10900 .IX Item "-mbk"
10901 .PD 0
10902 .IP "\fB\-mno\-bk\fR" 4
10903 .IX Item "-mno-bk"
10904 .PD
10905 Allow (disallow) allocation of general integer operands into the block
10906 count register \s-1BK\s0.
10907 .IP "\fB\-mdb\fR" 4
10908 .IX Item "-mdb"
10909 .PD 0
10910 .IP "\fB\-mno\-db\fR" 4
10911 .IX Item "-mno-db"
10912 .PD
10913 Enable (disable) generation of code using decrement and branch,
10914 DBcond(D), instructions.  This is enabled by default for the C4x.  To be
10915 on the safe side, this is disabled for the C3x, since the maximum
10916 iteration count on the C3x is 2^{23 + 1} (but who iterates loops more than
10917 2^{23} times on the C3x?).  Note that \s-1GCC\s0 will try to reverse a loop so
10918 that it can utilize the decrement and branch instruction, but will give
10919 up if there is more than one memory reference in the loop.  Thus a loop
10920 where the loop counter is decremented can generate slightly more
10921 efficient code, in cases where the \s-1RPTB\s0 instruction cannot be utilized.
10922 .IP "\fB\-mdp\-isr\-reload\fR" 4
10923 .IX Item "-mdp-isr-reload"
10924 .PD 0
10925 .IP "\fB\-mparanoid\fR" 4
10926 .IX Item "-mparanoid"
10927 .PD
10928 Force the \s-1DP\s0 register to be saved on entry to an interrupt service
10929 routine (\s-1ISR\s0), reloaded to point to the data section, and restored on
10930 exit from the \s-1ISR\s0.  This should not be required unless someone has
10931 violated the small memory model by modifying the \s-1DP\s0 register, say within
10932 an object library.
10933 .IP "\fB\-mmpyi\fR" 4
10934 .IX Item "-mmpyi"
10935 .PD 0
10936 .IP "\fB\-mno\-mpyi\fR" 4
10937 .IX Item "-mno-mpyi"
10938 .PD
10939 For the C3x use the 24\-bit \s-1MPYI\s0 instruction for integer multiplies
10940 instead of a library call to guarantee 32\-bit results.  Note that if one
10941 of the operands is a constant, then the multiplication will be performed
10942 using shifts and adds.  If the \fB\-mmpyi\fR option is not specified for the C3x,
10943 then squaring operations are performed inline instead of a library call.
10944 .IP "\fB\-mfast\-fix\fR" 4
10945 .IX Item "-mfast-fix"
10946 .PD 0
10947 .IP "\fB\-mno\-fast\-fix\fR" 4
10948 .IX Item "-mno-fast-fix"
10949 .PD
10950 The C3x/C4x \s-1FIX\s0 instruction to convert a floating point value to an
10951 integer value chooses the nearest integer less than or equal to the
10952 floating point value rather than to the nearest integer.  Thus if the
10953 floating point number is negative, the result will be incorrectly
10954 truncated an additional code is necessary to detect and correct this
10955 case.  This option can be used to disable generation of the additional
10956 code required to correct the result.
10957 .IP "\fB\-mrptb\fR" 4
10958 .IX Item "-mrptb"
10959 .PD 0
10960 .IP "\fB\-mno\-rptb\fR" 4
10961 .IX Item "-mno-rptb"
10962 .PD
10963 Enable (disable) generation of repeat block sequences using the \s-1RPTB\s0
10964 instruction for zero overhead looping.  The \s-1RPTB\s0 construct is only used
10965 for innermost loops that do not call functions or jump across the loop
10966 boundaries.  There is no advantage having nested \s-1RPTB\s0 loops due to the
10967 overhead required to save and restore the \s-1RC\s0, \s-1RS\s0, and \s-1RE\s0 registers.
10968 This is enabled by default with \fB\-O2\fR.
10969 .IP "\fB\-mrpts=\fR\fIcount\fR" 4
10970 .IX Item "-mrpts=count"
10971 .PD 0
10972 .IP "\fB\-mno\-rpts\fR" 4
10973 .IX Item "-mno-rpts"
10974 .PD
10975 Enable (disable) the use of the single instruction repeat instruction
10976 \&\s-1RPTS\s0.  If a repeat block contains a single instruction, and the loop
10977 count can be guaranteed to be less than the value \fIcount\fR, \s-1GCC\s0 will
10978 emit a \s-1RPTS\s0 instruction instead of a \s-1RPTB\s0.  If no value is specified,
10979 then a \s-1RPTS\s0 will be emitted even if the loop count cannot be determined
10980 at compile time.  Note that the repeated instruction following \s-1RPTS\s0 does
10981 not have to be reloaded from memory each iteration, thus freeing up the
10982 \&\s-1CPU\s0 buses for operands.  However, since interrupts are blocked by this
10983 instruction, it is disabled by default.
10984 .IP "\fB\-mloop\-unsigned\fR" 4
10985 .IX Item "-mloop-unsigned"
10986 .PD 0
10987 .IP "\fB\-mno\-loop\-unsigned\fR" 4
10988 .IX Item "-mno-loop-unsigned"
10989 .PD
10990 The maximum iteration count when using \s-1RPTS\s0 and \s-1RPTB\s0 (and \s-1DB\s0 on the C40)
10991 is 2^{31 + 1} since these instructions test if the iteration count is
10992 negative to terminate the loop.  If the iteration count is unsigned
10993 there is a possibility than the 2^{31 + 1} maximum iteration count may be
10994 exceeded.  This switch allows an unsigned iteration count.
10995 .IP "\fB\-mti\fR" 4
10996 .IX Item "-mti"
10997 Try to emit an assembler syntax that the \s-1TI\s0 assembler (asm30) is happy
10998 with.  This also enforces compatibility with the \s-1API\s0 employed by the \s-1TI\s0
10999 C3x C compiler.  For example, long doubles are passed as structures
11000 rather than in floating point registers.
11001 .IP "\fB\-mregparm\fR" 4
11002 .IX Item "-mregparm"
11003 .PD 0
11004 .IP "\fB\-mmemparm\fR" 4
11005 .IX Item "-mmemparm"
11006 .PD
11007 Generate code that uses registers (stack) for passing arguments to functions.
11008 By default, arguments are passed in registers where possible rather
11009 than by pushing arguments on to the stack.
11010 .IP "\fB\-mparallel\-insns\fR" 4
11011 .IX Item "-mparallel-insns"
11012 .PD 0
11013 .IP "\fB\-mno\-parallel\-insns\fR" 4
11014 .IX Item "-mno-parallel-insns"
11015 .PD
11016 Allow the generation of parallel instructions.  This is enabled by
11017 default with \fB\-O2\fR.
11018 .IP "\fB\-mparallel\-mpy\fR" 4
11019 .IX Item "-mparallel-mpy"
11020 .PD 0
11021 .IP "\fB\-mno\-parallel\-mpy\fR" 4
11022 .IX Item "-mno-parallel-mpy"
11023 .PD
11024 Allow the generation of MPY||ADD and MPY||SUB parallel instructions,
11025 provided \fB\-mparallel\-insns\fR is also specified.  These instructions have
11026 tight register constraints which can pessimize the code generation
11027 of large functions.
11028 .PP
11029 \fIV850 Options\fR
11030 .IX Subsection "V850 Options"
11031 .PP
11032 These \fB\-m\fR options are defined for V850 implementations:
11033 .IP "\fB\-mlong\-calls\fR" 4
11034 .IX Item "-mlong-calls"
11035 .PD 0
11036 .IP "\fB\-mno\-long\-calls\fR" 4
11037 .IX Item "-mno-long-calls"
11038 .PD
11039 Treat all calls as being far away (near).  If calls are assumed to be
11040 far away, the compiler will always load the functions address up into a
11041 register, and call indirect through the pointer.
11042 .IP "\fB\-mno\-ep\fR" 4
11043 .IX Item "-mno-ep"
11044 .PD 0
11045 .IP "\fB\-mep\fR" 4
11046 .IX Item "-mep"
11047 .PD
11048 Do not optimize (do optimize) basic blocks that use the same index
11049 pointer 4 or more times to copy pointer into the \f(CW\*(C`ep\*(C'\fR register, and
11050 use the shorter \f(CW\*(C`sld\*(C'\fR and \f(CW\*(C`sst\*(C'\fR instructions.  The \fB\-mep\fR
11051 option is on by default if you optimize.
11052 .IP "\fB\-mno\-prolog\-function\fR" 4
11053 .IX Item "-mno-prolog-function"
11054 .PD 0
11055 .IP "\fB\-mprolog\-function\fR" 4
11056 .IX Item "-mprolog-function"
11057 .PD
11058 Do not use (do use) external functions to save and restore registers
11059 at the prologue and epilogue of a function.  The external functions
11060 are slower, but use less code space if more than one function saves
11061 the same number of registers.  The \fB\-mprolog\-function\fR option
11062 is on by default if you optimize.
11063 .IP "\fB\-mspace\fR" 4
11064 .IX Item "-mspace"
11065 Try to make the code as small as possible.  At present, this just turns
11066 on the \fB\-mep\fR and \fB\-mprolog\-function\fR options.
11067 .IP "\fB\-mtda=\fR\fIn\fR" 4
11068 .IX Item "-mtda=n"
11069 Put static or global variables whose size is \fIn\fR bytes or less into
11070 the tiny data area that register \f(CW\*(C`ep\*(C'\fR points to.  The tiny data
11071 area can hold up to 256 bytes in total (128 bytes for byte references).
11072 .IP "\fB\-msda=\fR\fIn\fR" 4
11073 .IX Item "-msda=n"
11074 Put static or global variables whose size is \fIn\fR bytes or less into
11075 the small data area that register \f(CW\*(C`gp\*(C'\fR points to.  The small data
11076 area can hold up to 64 kilobytes.
11077 .IP "\fB\-mzda=\fR\fIn\fR" 4
11078 .IX Item "-mzda=n"
11079 Put static or global variables whose size is \fIn\fR bytes or less into
11080 the first 32 kilobytes of memory.
11081 .IP "\fB\-mv850\fR" 4
11082 .IX Item "-mv850"
11083 Specify that the target processor is the V850.
11084 .IP "\fB\-mbig\-switch\fR" 4
11085 .IX Item "-mbig-switch"
11086 Generate code suitable for big switch tables.  Use this option only if
11087 the assembler/linker complain about out of range branches within a switch
11088 table.
11089 .IP "\fB\-mapp\-regs\fR" 4
11090 .IX Item "-mapp-regs"
11091 This option will cause r2 and r5 to be used in the code generated by
11092 the compiler.  This setting is the default.
11093 .IP "\fB\-mno\-app\-regs\fR" 4
11094 .IX Item "-mno-app-regs"
11095 This option will cause r2 and r5 to be treated as fixed registers.
11096 .IP "\fB\-mv850e1\fR" 4
11097 .IX Item "-mv850e1"
11098 Specify that the target processor is the V850E1.  The preprocessor
11099 constants \fB_\|_v850e1_\|_\fR and \fB_\|_v850e_\|_\fR will be defined if
11100 this option is used.
11101 .IP "\fB\-mv850e\fR" 4
11102 .IX Item "-mv850e"
11103 Specify that the target processor is the V850E.  The preprocessor
11104 constant \fB_\|_v850e_\|_\fR will be defined if this option is used.
11105 .Sp
11106 If neither \fB\-mv850\fR nor \fB\-mv850e\fR nor \fB\-mv850e1\fR
11107 are defined then a default target processor will be chosen and the
11108 relevant \fB_\|_v850*_\|_\fR preprocessor constant will be defined.
11109 .Sp
11110 The preprocessor constants \fB_\|_v850\fR and \fB_\|_v851_\|_\fR are always
11111 defined, regardless of which processor variant is the target.
11112 .IP "\fB\-mdisable\-callt\fR" 4
11113 .IX Item "-mdisable-callt"
11114 This option will suppress generation of the \s-1CALLT\s0 instruction for the
11115 v850e and v850e1 flavors of the v850 architecture.  The default is
11116 \&\fB\-mno\-disable\-callt\fR which allows the \s-1CALLT\s0 instruction to be used.
11117 .PP
11118 \fI\s-1VAX\s0 Options\fR
11119 .IX Subsection "VAX Options"
11120 .PP
11121 These \fB\-m\fR options are defined for the \s-1VAX:\s0
11122 .IP "\fB\-munix\fR" 4
11123 .IX Item "-munix"
11124 Do not output certain jump instructions (\f(CW\*(C`aobleq\*(C'\fR and so on)
11125 that the Unix assembler for the \s-1VAX\s0 cannot handle across long
11126 ranges.
11127 .IP "\fB\-mgnu\fR" 4
11128 .IX Item "-mgnu"
11129 Do output those jump instructions, on the assumption that you
11130 will assemble with the \s-1GNU\s0 assembler.
11131 .IP "\fB\-mg\fR" 4
11132 .IX Item "-mg"
11133 Output code for g\-format floating point numbers instead of d\-format.
11134 .PP
11135 \fIx86\-64 Options\fR
11136 .IX Subsection "x86-64 Options"
11137 .PP
11138 These are listed under 
11139 .PP
11140 \fIXstormy16 Options\fR
11141 .IX Subsection "Xstormy16 Options"
11142 .PP
11143 These options are defined for Xstormy16:
11144 .IP "\fB\-msim\fR" 4
11145 .IX Item "-msim"
11146 Choose startup files and linker script suitable for the simulator.
11147 .PP
11148 \fIXtensa Options\fR
11149 .IX Subsection "Xtensa Options"
11150 .PP
11151 These options are supported for Xtensa targets:
11152 .IP "\fB\-mconst16\fR" 4
11153 .IX Item "-mconst16"
11154 .PD 0
11155 .IP "\fB\-mno\-const16\fR" 4
11156 .IX Item "-mno-const16"
11157 .PD
11158 Enable or disable use of \f(CW\*(C`CONST16\*(C'\fR instructions for loading
11159 constant values.  The \f(CW\*(C`CONST16\*(C'\fR instruction is currently not a
11160 standard option from Tensilica.  When enabled, \f(CW\*(C`CONST16\*(C'\fR
11161 instructions are always used in place of the standard \f(CW\*(C`L32R\*(C'\fR
11162 instructions.  The use of \f(CW\*(C`CONST16\*(C'\fR is enabled by default only if
11163 the \f(CW\*(C`L32R\*(C'\fR instruction is not available.
11164 .IP "\fB\-mfused\-madd\fR" 4
11165 .IX Item "-mfused-madd"
11166 .PD 0
11167 .IP "\fB\-mno\-fused\-madd\fR" 4
11168 .IX Item "-mno-fused-madd"
11169 .PD
11170 Enable or disable use of fused multiply/add and multiply/subtract
11171 instructions in the floating-point option.  This has no effect if the
11172 floating-point option is not also enabled.  Disabling fused multiply/add
11173 and multiply/subtract instructions forces the compiler to use separate
11174 instructions for the multiply and add/subtract operations.  This may be
11175 desirable in some cases where strict \s-1IEEE\s0 754\-compliant results are
11176 required: the fused multiply add/subtract instructions do not round the
11177 intermediate result, thereby producing results with \fImore\fR bits of
11178 precision than specified by the \s-1IEEE\s0 standard.  Disabling fused multiply
11179 add/subtract instructions also ensures that the program output is not
11180 sensitive to the compiler's ability to combine multiply and add/subtract
11181 operations.
11182 .IP "\fB\-mtext\-section\-literals\fR" 4
11183 .IX Item "-mtext-section-literals"
11184 .PD 0
11185 .IP "\fB\-mno\-text\-section\-literals\fR" 4
11186 .IX Item "-mno-text-section-literals"
11187 .PD
11188 Control the treatment of literal pools.  The default is
11189 \&\fB\-mno\-text\-section\-literals\fR, which places literals in a separate
11190 section in the output file.  This allows the literal pool to be placed
11191 in a data \s-1RAM/ROM\s0, and it also allows the linker to combine literal
11192 pools from separate object files to remove redundant literals and
11193 improve code size.  With \fB\-mtext\-section\-literals\fR, the literals
11194 are interspersed in the text section in order to keep them as close as
11195 possible to their references.  This may be necessary for large assembly
11196 files.
11197 .IP "\fB\-mtarget\-align\fR" 4
11198 .IX Item "-mtarget-align"
11199 .PD 0
11200 .IP "\fB\-mno\-target\-align\fR" 4
11201 .IX Item "-mno-target-align"
11202 .PD
11203 When this option is enabled, \s-1GCC\s0 instructs the assembler to
11204 automatically align instructions to reduce branch penalties at the
11205 expense of some code density.  The assembler attempts to widen density
11206 instructions to align branch targets and the instructions following call
11207 instructions.  If there are not enough preceding safe density
11208 instructions to align a target, no widening will be performed.  The
11209 default is \fB\-mtarget\-align\fR.  These options do not affect the
11210 treatment of auto-aligned instructions like \f(CW\*(C`LOOP\*(C'\fR, which the
11211 assembler will always align, either by widening density instructions or
11212 by inserting no-op instructions.
11213 .IP "\fB\-mlongcalls\fR" 4
11214 .IX Item "-mlongcalls"
11215 .PD 0
11216 .IP "\fB\-mno\-longcalls\fR" 4
11217 .IX Item "-mno-longcalls"
11218 .PD
11219 When this option is enabled, \s-1GCC\s0 instructs the assembler to translate
11220 direct calls to indirect calls unless it can determine that the target
11221 of a direct call is in the range allowed by the call instruction.  This
11222 translation typically occurs for calls to functions in other source
11223 files.  Specifically, the assembler translates a direct \f(CW\*(C`CALL\*(C'\fR
11224 instruction into an \f(CW\*(C`L32R\*(C'\fR followed by a \f(CW\*(C`CALLX\*(C'\fR instruction.
11225 The default is \fB\-mno\-longcalls\fR.  This option should be used in
11226 programs where the call target can potentially be out of range.  This
11227 option is implemented in the assembler, not the compiler, so the
11228 assembly code generated by \s-1GCC\s0 will still show direct call
11229 instructions\-\-\-look at the disassembled object code to see the actual
11230 instructions.  Note that the assembler will use an indirect call for
11231 every cross-file call, not just those that really will be out of range.
11232 .PP
11233 \fIzSeries Options\fR
11234 .IX Subsection "zSeries Options"
11235 .PP
11236 These are listed under 
11237 .Sh "Options for Code Generation Conventions"
11238 .IX Subsection "Options for Code Generation Conventions"
11239 These machine-independent options control the interface conventions
11240 used in code generation.
11241 .PP
11242 Most of them have both positive and negative forms; the negative form
11243 of \fB\-ffoo\fR would be \fB\-fno\-foo\fR.  In the table below, only
11244 one of the forms is listed\-\-\-the one which is not the default.  You
11245 can figure out the other form by either removing \fBno\-\fR or adding
11246 it.
11247 .IP "\fB\-fbounds\-check\fR" 4
11248 .IX Item "-fbounds-check"
11249 For front-ends that support it, generate additional code to check that
11250 indices used to access arrays are within the declared range.  This is
11251 currently only supported by the Java and Fortran 77 front\-ends, where
11252 this option defaults to true and false respectively.
11253 .IP "\fB\-ftrapv\fR" 4
11254 .IX Item "-ftrapv"
11255 This option generates traps for signed overflow on addition, subtraction,
11256 multiplication operations.
11257 .IP "\fB\-fwrapv\fR" 4
11258 .IX Item "-fwrapv"
11259 This option instructs the compiler to assume that signed arithmetic
11260 overflow of addition, subtraction and multiplication wraps around
11261 using twos-complement representation.  This flag enables some optimizations
11262 and disables other.  This option is enabled by default for the Java
11263 front\-end, as required by the Java language specification.
11264 .IP "\fB\-fexceptions\fR" 4
11265 .IX Item "-fexceptions"
11266 Enable exception handling.  Generates extra code needed to propagate
11267 exceptions.  For some targets, this implies \s-1GCC\s0 will generate frame
11268 unwind information for all functions, which can produce significant data
11269 size overhead, although it does not affect execution.  If you do not
11270 specify this option, \s-1GCC\s0 will enable it by default for languages like
11271 \&\*(C+ which normally require exception handling, and disable it for
11272 languages like C that do not normally require it.  However, you may need
11273 to enable this option when compiling C code that needs to interoperate
11274 properly with exception handlers written in \*(C+.  You may also wish to
11275 disable this option if you are compiling older \*(C+ programs that don't
11276 use exception handling.
11277 .IP "\fB\-fnon\-call\-exceptions\fR" 4
11278 .IX Item "-fnon-call-exceptions"
11279 Generate code that allows trapping instructions to throw exceptions.
11280 Note that this requires platform-specific runtime support that does
11281 not exist everywhere.  Moreover, it only allows \fItrapping\fR
11282 instructions to throw exceptions, i.e. memory references or floating
11283 point instructions.  It does not allow exceptions to be thrown from
11284 arbitrary signal handlers such as \f(CW\*(C`SIGALRM\*(C'\fR.
11285 .IP "\fB\-funwind\-tables\fR" 4
11286 .IX Item "-funwind-tables"
11287 Similar to \fB\-fexceptions\fR, except that it will just generate any needed
11288 static data, but will not affect the generated code in any other way.
11289 You will normally not enable this option; instead, a language processor
11290 that needs this handling would enable it on your behalf.
11291 .IP "\fB\-fasynchronous\-unwind\-tables\fR" 4
11292 .IX Item "-fasynchronous-unwind-tables"
11293 Generate unwind table in dwarf2 format, if supported by target machine.  The
11294 table is exact at each instruction boundary, so it can be used for stack
11295 unwinding from asynchronous events (such as debugger or garbage collector).
11296 .IP "\fB\-fpcc\-struct\-return\fR" 4
11297 .IX Item "-fpcc-struct-return"
11298 Return ``short'' \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in memory like
11299 longer ones, rather than in registers.  This convention is less
11300 efficient, but it has the advantage of allowing intercallability between
11301 GCC-compiled files and files compiled with other compilers, particularly
11302 the Portable C Compiler (pcc).
11303 .Sp
11304 The precise convention for returning structures in memory depends
11305 on the target configuration macros.
11306 .Sp
11307 Short structures and unions are those whose size and alignment match
11308 that of some integer type.
11309 .Sp
11310 \&\fBWarning:\fR code compiled with the \fB\-fpcc\-struct\-return\fR
11311 switch is not binary compatible with code compiled with the
11312 \&\fB\-freg\-struct\-return\fR switch.
11313 Use it to conform to a non-default application binary interface.
11314 .IP "\fB\-freg\-struct\-return\fR" 4
11315 .IX Item "-freg-struct-return"
11316 Return \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in registers when possible.
11317 This is more efficient for small structures than
11318 \&\fB\-fpcc\-struct\-return\fR.
11319 .Sp
11320 If you specify neither \fB\-fpcc\-struct\-return\fR nor
11321 \&\fB\-freg\-struct\-return\fR, \s-1GCC\s0 defaults to whichever convention is
11322 standard for the target.  If there is no standard convention, \s-1GCC\s0
11323 defaults to \fB\-fpcc\-struct\-return\fR, except on targets where \s-1GCC\s0 is
11324 the principal compiler.  In those cases, we can choose the standard, and
11325 we chose the more efficient register return alternative.
11326 .Sp
11327 \&\fBWarning:\fR code compiled with the \fB\-freg\-struct\-return\fR
11328 switch is not binary compatible with code compiled with the
11329 \&\fB\-fpcc\-struct\-return\fR switch.
11330 Use it to conform to a non-default application binary interface.
11331 .IP "\fB\-fshort\-enums\fR" 4
11332 .IX Item "-fshort-enums"
11333 Allocate to an \f(CW\*(C`enum\*(C'\fR type only as many bytes as it needs for the
11334 declared range of possible values.  Specifically, the \f(CW\*(C`enum\*(C'\fR type
11335 will be equivalent to the smallest integer type which has enough room.
11336 .Sp
11337 \&\fBWarning:\fR the \fB\-fshort\-enums\fR switch causes \s-1GCC\s0 to generate
11338 code that is not binary compatible with code generated without that switch.
11339 Use it to conform to a non-default application binary interface.
11340 .IP "\fB\-fshort\-double\fR" 4
11341 .IX Item "-fshort-double"
11342 Use the same size for \f(CW\*(C`double\*(C'\fR as for \f(CW\*(C`float\*(C'\fR.
11343 .Sp
11344 \&\fBWarning:\fR the \fB\-fshort\-double\fR switch causes \s-1GCC\s0 to generate
11345 code that is not binary compatible with code generated without that switch.
11346 Use it to conform to a non-default application binary interface.
11347 .IP "\fB\-fshort\-wchar\fR" 4
11348 .IX Item "-fshort-wchar"
11349 Override the underlying type for \fBwchar_t\fR to be \fBshort
11350 unsigned int\fR instead of the default for the target.  This option is
11351 useful for building programs to run under \s-1WINE\s0.
11352 .Sp
11353 \&\fBWarning:\fR the \fB\-fshort\-wchar\fR switch causes \s-1GCC\s0 to generate
11354 code that is not binary compatible with code generated without that switch.
11355 Use it to conform to a non-default application binary interface.
11356 .IP "\fB\-fshared\-data\fR" 4
11357 .IX Item "-fshared-data"
11358 Requests that the data and non\-\f(CW\*(C`const\*(C'\fR variables of this
11359 compilation be shared data rather than private data.  The distinction
11360 makes sense only on certain operating systems, where shared data is
11361 shared between processes running the same program, while private data
11362 exists in one copy per process.
11363 .IP "\fB\-fno\-common\fR" 4
11364 .IX Item "-fno-common"
11365 In C, allocate even uninitialized global variables in the data section of the
11366 object file, rather than generating them as common blocks.  This has the
11367 effect that if the same variable is declared (without \f(CW\*(C`extern\*(C'\fR) in
11368 two different compilations, you will get an error when you link them.
11369 The only reason this might be useful is if you wish to verify that the
11370 program will work on other systems which always work this way.
11371 .IP "\fB\-fno\-ident\fR" 4
11372 .IX Item "-fno-ident"
11373 Ignore the \fB#ident\fR directive.
11374 .IP "\fB\-finhibit\-size\-directive\fR" 4
11375 .IX Item "-finhibit-size-directive"
11376 Don't output a \f(CW\*(C`.size\*(C'\fR assembler directive, or anything else that
11377 would cause trouble if the function is split in the middle, and the
11378 two halves are placed at locations far apart in memory.  This option is
11379 used when compiling \fIcrtstuff.c\fR; you should not need to use it
11380 for anything else.
11381 .IP "\fB\-fverbose\-asm\fR" 4
11382 .IX Item "-fverbose-asm"
11383 Put extra commentary information in the generated assembly code to
11384 make it more readable.  This option is generally only of use to those
11385 who actually need to read the generated assembly code (perhaps while
11386 debugging the compiler itself).
11387 .Sp
11388 \&\fB\-fno\-verbose\-asm\fR, the default, causes the
11389 extra information to be omitted and is useful when comparing two assembler
11390 files.
11391 .IP "\fB\-fpic\fR" 4
11392 .IX Item "-fpic"
11393 Generate position-independent code (\s-1PIC\s0) suitable for use in a shared
11394 library, if supported for the target machine.  Such code accesses all
11395 constant addresses through a global offset table (\s-1GOT\s0).  The dynamic
11396 loader resolves the \s-1GOT\s0 entries when the program starts (the dynamic
11397 loader is not part of \s-1GCC\s0; it is part of the operating system).  If
11398 the \s-1GOT\s0 size for the linked executable exceeds a machine-specific
11399 maximum size, you get an error message from the linker indicating that
11400 \&\fB\-fpic\fR does not work; in that case, recompile with \fB\-fPIC\fR
11401 instead.  (These maximums are 8k on the \s-1SPARC\s0 and 32k
11402 on the m68k and \s-1RS/6000\s0.  The 386 has no such limit.)
11403 .Sp
11404 Position-independent code requires special support, and therefore works
11405 only on certain machines.  For the 386, \s-1GCC\s0 supports \s-1PIC\s0 for System V
11406 but not for the Sun 386i.  Code generated for the \s-1IBM\s0 \s-1RS/6000\s0 is always
11407 position\-independent.
11408 .IP "\fB\-fPIC\fR" 4
11409 .IX Item "-fPIC"
11410 If supported for the target machine, emit position-independent code,
11411 suitable for dynamic linking and avoiding any limit on the size of the
11412 global offset table.  This option makes a difference on the m68k,
11413 PowerPC and \s-1SPARC\s0.
11414 .Sp
11415 Position-independent code requires special support, and therefore works
11416 only on certain machines.
11417 .IP "\fB\-fpie\fR" 4
11418 .IX Item "-fpie"
11419 .PD 0
11420 .IP "\fB\-fPIE\fR" 4
11421 .IX Item "-fPIE"
11422 .PD
11423 These options are similar to \fB\-fpic\fR and \fB\-fPIC\fR, but
11424 generated position independent code can be only linked into executables.
11425 Usually these options are used when \fB\-pie\fR \s-1GCC\s0 option will be
11426 used during linking.
11427 .IP "\fB\-ffixed\-\fR\fIreg\fR" 4
11428 .IX Item "-ffixed-reg"
11429 Treat the register named \fIreg\fR as a fixed register; generated code
11430 should never refer to it (except perhaps as a stack pointer, frame
11431 pointer or in some other fixed role).
11432 .Sp
11433 \&\fIreg\fR must be the name of a register.  The register names accepted
11434 are machine-specific and are defined in the \f(CW\*(C`REGISTER_NAMES\*(C'\fR
11435 macro in the machine description macro file.
11436 .Sp
11437 This flag does not have a negative form, because it specifies a
11438 three-way choice.
11439 .IP "\fB\-fcall\-used\-\fR\fIreg\fR" 4
11440 .IX Item "-fcall-used-reg"
11441 Treat the register named \fIreg\fR as an allocable register that is
11442 clobbered by function calls.  It may be allocated for temporaries or
11443 variables that do not live across a call.  Functions compiled this way
11444 will not save and restore the register \fIreg\fR.
11445 .Sp
11446 It is an error to used this flag with the frame pointer or stack pointer.
11447 Use of this flag for other registers that have fixed pervasive roles in
11448 the machine's execution model will produce disastrous results.
11449 .Sp
11450 This flag does not have a negative form, because it specifies a
11451 three-way choice.
11452 .IP "\fB\-fcall\-saved\-\fR\fIreg\fR" 4
11453 .IX Item "-fcall-saved-reg"
11454 Treat the register named \fIreg\fR as an allocable register saved by
11455 functions.  It may be allocated even for temporaries or variables that
11456 live across a call.  Functions compiled this way will save and restore
11457 the register \fIreg\fR if they use it.
11458 .Sp
11459 It is an error to used this flag with the frame pointer or stack pointer.
11460 Use of this flag for other registers that have fixed pervasive roles in
11461 the machine's execution model will produce disastrous results.
11462 .Sp
11463 A different sort of disaster will result from the use of this flag for
11464 a register in which function values may be returned.
11465 .Sp
11466 This flag does not have a negative form, because it specifies a
11467 three-way choice.
11468 .IP "\fB\-fpack\-struct[=\fR\fIn\fR\fB]\fR" 4
11469 .IX Item "-fpack-struct[=n]"
11470 Without a value specified, pack all structure members together without
11471 holes.  When a value is specified (which must be a small power of two), pack
11472 structure members according to this value, representing the maximum
11473 alignment (that is, objects with default alignment requirements larger than
11474 this will be output potentially unaligned at the next fitting location.
11475 .Sp
11476 \&\fBWarning:\fR the \fB\-fpack\-struct\fR switch causes \s-1GCC\s0 to generate
11477 code that is not binary compatible with code generated without that switch.
11478 Additionally, it makes the code suboptimal.
11479 Use it to conform to a non-default application binary interface.
11480 .IP "\fB\-finstrument\-functions\fR" 4
11481 .IX Item "-finstrument-functions"
11482 Generate instrumentation calls for entry and exit to functions.  Just
11483 after function entry and just before function exit, the following
11484 profiling functions will be called with the address of the current
11485 function and its call site.  (On some platforms,
11486 \&\f(CW\*(C`_\|_builtin_return_address\*(C'\fR does not work beyond the current
11487 function, so the call site information may not be available to the
11488 profiling functions otherwise.)
11489 .Sp
11490 .Vb 4
11491 \&        void __cyg_profile_func_enter (void *this_fn,
11492 \&                                       void *call_site);
11493 \&        void __cyg_profile_func_exit  (void *this_fn,
11494 \&                                       void *call_site);
11495 .Ve
11496 .Sp
11497 The first argument is the address of the start of the current function,
11498 which may be looked up exactly in the symbol table.
11499 .Sp
11500 This instrumentation is also done for functions expanded inline in other
11501 functions.  The profiling calls will indicate where, conceptually, the
11502 inline function is entered and exited.  This means that addressable
11503 versions of such functions must be available.  If all your uses of a
11504 function are expanded inline, this may mean an additional expansion of
11505 code size.  If you use \fBextern inline\fR in your C code, an
11506 addressable version of such functions must be provided.  (This is
11507 normally the case anyways, but if you get lucky and the optimizer always
11508 expands the functions inline, you might have gotten away without
11509 providing static copies.)
11510 .Sp
11511 A function may be given the attribute \f(CW\*(C`no_instrument_function\*(C'\fR, in
11512 which case this instrumentation will not be done.  This can be used, for
11513 example, for the profiling functions listed above, high-priority
11514 interrupt routines, and any functions from which the profiling functions
11515 cannot safely be called (perhaps signal handlers, if the profiling
11516 routines generate output or allocate memory).
11517 .IP "\fB\-fstack\-check\fR" 4
11518 .IX Item "-fstack-check"
11519 Generate code to verify that you do not go beyond the boundary of the
11520 stack.  You should specify this flag if you are running in an
11521 environment with multiple threads, but only rarely need to specify it in
11522 a single-threaded environment since stack overflow is automatically
11523 detected on nearly all systems if there is only one stack.
11524 .Sp
11525 Note that this switch does not actually cause checking to be done; the
11526 operating system must do that.  The switch causes generation of code
11527 to ensure that the operating system sees the stack being extended.
11528 .IP "\fB\-fstack\-limit\-register=\fR\fIreg\fR" 4
11529 .IX Item "-fstack-limit-register=reg"
11530 .PD 0
11531 .IP "\fB\-fstack\-limit\-symbol=\fR\fIsym\fR" 4
11532 .IX Item "-fstack-limit-symbol=sym"
11533 .IP "\fB\-fno\-stack\-limit\fR" 4
11534 .IX Item "-fno-stack-limit"
11535 .PD
11536 Generate code to ensure that the stack does not grow beyond a certain value,
11537 either the value of a register or the address of a symbol.  If the stack
11538 would grow beyond the value, a signal is raised.  For most targets,
11539 the signal is raised before the stack overruns the boundary, so
11540 it is possible to catch the signal without taking special precautions.
11541 .Sp
11542 For instance, if the stack starts at absolute address \fB0x80000000\fR
11543 and grows downwards, you can use the flags
11544 \&\fB\-fstack\-limit\-symbol=_\|_stack_limit\fR and
11545 \&\fB\-Wl,\-\-defsym,_\|_stack_limit=0x7ffe0000\fR to enforce a stack limit
11546 of 128KB.  Note that this may only work with the \s-1GNU\s0 linker.
11547 .IP "\fB\-fargument\-alias\fR" 4
11548 .IX Item "-fargument-alias"
11549 .PD 0
11550 .IP "\fB\-fargument\-noalias\fR" 4
11551 .IX Item "-fargument-noalias"
11552 .IP "\fB\-fargument\-noalias\-global\fR" 4
11553 .IX Item "-fargument-noalias-global"
11554 .PD
11555 Specify the possible relationships among parameters and between
11556 parameters and global data.
11557 .Sp
11558 \&\fB\-fargument\-alias\fR specifies that arguments (parameters) may
11559 alias each other and may alias global storage.\fB\-fargument\-noalias\fR specifies that arguments do not alias
11560 each other, but may alias global storage.\fB\-fargument\-noalias\-global\fR specifies that arguments do not
11561 alias each other and do not alias global storage.
11562 .Sp
11563 Each language will automatically use whatever option is required by
11564 the language standard.  You should not need to use these options yourself.
11565 .IP "\fB\-fleading\-underscore\fR" 4
11566 .IX Item "-fleading-underscore"
11567 This option and its counterpart, \fB\-fno\-leading\-underscore\fR, forcibly
11568 change the way C symbols are represented in the object file.  One use
11569 is to help link with legacy assembly code.
11570 .Sp
11571 \&\fBWarning:\fR the \fB\-fleading\-underscore\fR switch causes \s-1GCC\s0 to
11572 generate code that is not binary compatible with code generated without that
11573 switch.  Use it to conform to a non-default application binary interface.
11574 Not all targets provide complete support for this switch.
11575 .IP "\fB\-ftls\-model=\fR\fImodel\fR" 4
11576 .IX Item "-ftls-model=model"
11577 Alter the thread-local storage model to be used.
11578 The \fImodel\fR argument should be one of \f(CW\*(C`global\-dynamic\*(C'\fR,
11579 \&\f(CW\*(C`local\-dynamic\*(C'\fR, \f(CW\*(C`initial\-exec\*(C'\fR or \f(CW\*(C`local\-exec\*(C'\fR.
11580 .Sp
11581 The default without \fB\-fpic\fR is \f(CW\*(C`initial\-exec\*(C'\fR; with
11582 \&\fB\-fpic\fR the default is \f(CW\*(C`global\-dynamic\*(C'\fR.
11583 .IP "\fB\-fvisibility=\fR\fIdefault|internal|hidden|protected\fR" 4
11584 .IX Item "-fvisibility=default|internal|hidden|protected"
11585 Set the default \s-1ELF\s0 image symbol visibility to the specified option\-\-\-all
11586 symbols will be marked with this unless overridden within the code.
11587 Using this feature can very substantially improve linking and
11588 load times of shared object libraries, produce more optimized
11589 code, provide near-perfect \s-1API\s0 export and prevent symbol clashes.
11590 It is \fBstrongly\fR recommended that you use this in any shared objects
11591 you distribute.
11592 .Sp
11593 Despite the nomenclature, \f(CW\*(C`default\*(C'\fR always means public ie;
11594 available to be linked against from outside the shared object.
11595 \&\f(CW\*(C`protected\*(C'\fR and \f(CW\*(C`internal\*(C'\fR are pretty useless in real-world
11596 usage so the only other commonly used option will be \f(CW\*(C`hidden\*(C'\fR.
11597 The default if \fB\-fvisibility\fR isn't specified is
11598 \&\f(CW\*(C`default\*(C'\fR, i.e., make every
11599 symbol public\-\-\-this causes the same behavior as previous versions of
11600 \&\s-1GCC\s0.
11601 .Sp
11602 A good explanation of the benefits offered by ensuring \s-1ELF\s0
11603 symbols have the correct visibility is given by ``How To Write
11604 Shared Libraries'' by Ulrich Drepper (which can be found at
11605 <\fBhttp://people.redhat.com/~drepper/\fR>)\-\-\-however a superior
11606 solution made possible by this option to marking things hidden when
11607 the default is public is to make the default hidden and mark things
11608 public.  This is the norm with \s-1DLL\s0's on Windows and with \fB\-fvisibility=hidden\fR
11609 and \f(CW\*(C`_\|_attribute_\|_ ((visibility("default")))\*(C'\fR instead of
11610 \&\f(CW\*(C`_\|_declspec(dllexport)\*(C'\fR you get almost identical semantics with
11611 identical syntax.  This is a great boon to those working with
11612 cross-platform projects.
11613 .Sp
11614 For those adding visibility support to existing code, you may find
11615 \&\fB#pragma \s-1GCC\s0 visibility\fR of use.  This works by you enclosing
11616 the declarations you wish to set visibility for with (for example)
11617 \&\fB#pragma \s-1GCC\s0 visibility push(hidden)\fR and
11618 \&\fB#pragma \s-1GCC\s0 visibility pop\fR.  These can be nested up to sixteen
11619 times.  Bear in mind that symbol visibility should be viewed \fBas
11620 part of the \s-1API\s0 interface contract\fR and thus all new code should
11621 always specify visibility when it is not the default ie; declarations
11622 only for use within the local \s-1DSO\s0 should \fBalways\fR be marked explicitly
11623 as hidden as so to avoid \s-1PLT\s0 indirection overheads\-\-\-making this
11624 abundantly clear also aids readability and self-documentation of the code.
11625 Note that due to \s-1ISO\s0 \*(C+ specification requirements, operator new and
11626 operator delete must always be of default visibility.
11627 .Sp
11628 An overview of these techniques, their benefits and how to use them
11629 is at <\fBhttp://www.nedprod.com/programs/gccvisibility.html\fR>.
11630 .SH "ENVIRONMENT"
11631 .IX Header "ENVIRONMENT"
11632 This section describes several environment variables that affect how \s-1GCC\s0
11633 operates.  Some of them work by specifying directories or prefixes to use
11634 when searching for various kinds of files.  Some are used to specify other
11635 aspects of the compilation environment.
11636 .PP
11637 Note that you can also specify places to search using options such as
11638 \&\fB\-B\fR, \fB\-I\fR and \fB\-L\fR.  These
11639 take precedence over places specified using environment variables, which
11640 in turn take precedence over those specified by the configuration of \s-1GCC\s0.
11641 .IP "\fB\s-1LANG\s0\fR" 4
11642 .IX Item "LANG"
11643 .PD 0
11644 .IP "\fB\s-1LC_CTYPE\s0\fR" 4
11645 .IX Item "LC_CTYPE"
11646 .IP "\fB\s-1LC_MESSAGES\s0\fR" 4
11647 .IX Item "LC_MESSAGES"
11648 .IP "\fB\s-1LC_ALL\s0\fR" 4
11649 .IX Item "LC_ALL"
11650 .PD
11651 These environment variables control the way that \s-1GCC\s0 uses
11652 localization information that allow \s-1GCC\s0 to work with different
11653 national conventions.  \s-1GCC\s0 inspects the locale categories
11654 \&\fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR if it has been configured to do
11655 so.  These locale categories can be set to any value supported by your
11656 installation.  A typical value is \fBen_GB.UTF\-8\fR for English in the United
11657 Kingdom encoded in \s-1UTF\-8\s0.
11658 .Sp
11659 The \fB\s-1LC_CTYPE\s0\fR environment variable specifies character
11660 classification.  \s-1GCC\s0 uses it to determine the character boundaries in
11661 a string; this is needed for some multibyte encodings that contain quote
11662 and escape characters that would otherwise be interpreted as a string
11663 end or escape.
11664 .Sp
11665 The \fB\s-1LC_MESSAGES\s0\fR environment variable specifies the language to
11666 use in diagnostic messages.
11667 .Sp
11668 If the \fB\s-1LC_ALL\s0\fR environment variable is set, it overrides the value
11669 of \fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR; otherwise, \fB\s-1LC_CTYPE\s0\fR
11670 and \fB\s-1LC_MESSAGES\s0\fR default to the value of the \fB\s-1LANG\s0\fR
11671 environment variable.  If none of these variables are set, \s-1GCC\s0
11672 defaults to traditional C English behavior.
11673 .IP "\fB\s-1TMPDIR\s0\fR" 4
11674 .IX Item "TMPDIR"
11675 If \fB\s-1TMPDIR\s0\fR is set, it specifies the directory to use for temporary
11676 files.  \s-1GCC\s0 uses temporary files to hold the output of one stage of
11677 compilation which is to be used as input to the next stage: for example,
11678 the output of the preprocessor, which is the input to the compiler
11679 proper.
11680 .IP "\fB\s-1GCC_EXEC_PREFIX\s0\fR" 4
11681 .IX Item "GCC_EXEC_PREFIX"
11682 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is set, it specifies a prefix to use in the
11683 names of the subprograms executed by the compiler.  No slash is added
11684 when this prefix is combined with the name of a subprogram, but you can
11685 specify a prefix that ends with a slash if you wish.
11686 .Sp
11687 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is not set, \s-1GCC\s0 will attempt to figure out
11688 an appropriate prefix to use based on the pathname it was invoked with.
11689 .Sp
11690 If \s-1GCC\s0 cannot find the subprogram using the specified prefix, it
11691 tries looking in the usual places for the subprogram.
11692 .Sp
11693 The default value of \fB\s-1GCC_EXEC_PREFIX\s0\fR is
11694 \&\fI\fIprefix\fI/lib/gcc/\fR where \fIprefix\fR is the value
11695 of \f(CW\*(C`prefix\*(C'\fR when you ran the \fIconfigure\fR script.
11696 .Sp
11697 Other prefixes specified with \fB\-B\fR take precedence over this prefix.
11698 .Sp
11699 This prefix is also used for finding files such as \fIcrt0.o\fR that are
11700 used for linking.
11701 .Sp
11702 In addition, the prefix is used in an unusual way in finding the
11703 directories to search for header files.  For each of the standard
11704 directories whose name normally begins with \fB/usr/local/lib/gcc\fR
11705 (more precisely, with the value of \fB\s-1GCC_INCLUDE_DIR\s0\fR), \s-1GCC\s0 tries
11706 replacing that beginning with the specified prefix to produce an
11707 alternate directory name.  Thus, with \fB\-Bfoo/\fR, \s-1GCC\s0 will search
11708 \&\fIfoo/bar\fR where it would normally search \fI/usr/local/lib/bar\fR.
11709 These alternate directories are searched first; the standard directories
11710 come next.
11711 .IP "\fB\s-1COMPILER_PATH\s0\fR" 4
11712 .IX Item "COMPILER_PATH"
11713 The value of \fB\s-1COMPILER_PATH\s0\fR is a colon-separated list of
11714 directories, much like \fB\s-1PATH\s0\fR.  \s-1GCC\s0 tries the directories thus
11715 specified when searching for subprograms, if it can't find the
11716 subprograms using \fB\s-1GCC_EXEC_PREFIX\s0\fR.
11717 .IP "\fB\s-1LIBRARY_PATH\s0\fR" 4
11718 .IX Item "LIBRARY_PATH"
11719 The value of \fB\s-1LIBRARY_PATH\s0\fR is a colon-separated list of
11720 directories, much like \fB\s-1PATH\s0\fR.  When configured as a native compiler,
11721 \&\s-1GCC\s0 tries the directories thus specified when searching for special
11722 linker files, if it can't find them using \fB\s-1GCC_EXEC_PREFIX\s0\fR.  Linking
11723 using \s-1GCC\s0 also uses these directories when searching for ordinary
11724 libraries for the \fB\-l\fR option (but directories specified with
11725 \&\fB\-L\fR come first).
11726 .IP "\fB\s-1LANG\s0\fR" 4
11727 .IX Item "LANG"
11728 This variable is used to pass locale information to the compiler.  One way in
11729 which this information is used is to determine the character set to be used
11730 when character literals, string literals and comments are parsed in C and \*(C+.
11731 When the compiler is configured to allow multibyte characters,
11732 the following values for \fB\s-1LANG\s0\fR are recognized:
11733 .RS 4
11734 .IP "\fBC\-JIS\fR" 4
11735 .IX Item "C-JIS"
11736 Recognize \s-1JIS\s0 characters.
11737 .IP "\fBC\-SJIS\fR" 4
11738 .IX Item "C-SJIS"
11739 Recognize \s-1SJIS\s0 characters.
11740 .IP "\fBC\-EUCJP\fR" 4
11741 .IX Item "C-EUCJP"
11742 Recognize \s-1EUCJP\s0 characters.
11743 .RE
11744 .RS 4
11745 .Sp
11746 If \fB\s-1LANG\s0\fR is not defined, or if it has some other value, then the
11747 compiler will use mblen and mbtowc as defined by the default locale to
11748 recognize and translate multibyte characters.
11749 .RE
11750 .PP
11751 Some additional environments variables affect the behavior of the
11752 preprocessor.
11753 .IP "\fB\s-1CPATH\s0\fR" 4
11754 .IX Item "CPATH"
11755 .PD 0
11756 .IP "\fBC_INCLUDE_PATH\fR" 4
11757 .IX Item "C_INCLUDE_PATH"
11758 .IP "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4
11759 .IX Item "CPLUS_INCLUDE_PATH"
11760 .IP "\fB\s-1OBJC_INCLUDE_PATH\s0\fR" 4
11761 .IX Item "OBJC_INCLUDE_PATH"
11762 .PD
11763 Each variable's value is a list of directories separated by a special
11764 character, much like \fB\s-1PATH\s0\fR, in which to look for header files.
11765 The special character, \f(CW\*(C`PATH_SEPARATOR\*(C'\fR, is target-dependent and
11766 determined at \s-1GCC\s0 build time.  For Microsoft Windows-based targets it is a
11767 semicolon, and for almost all other targets it is a colon.
11768 .Sp
11769 \&\fB\s-1CPATH\s0\fR specifies a list of directories to be searched as if
11770 specified with \fB\-I\fR, but after any paths given with \fB\-I\fR
11771 options on the command line.  This environment variable is used
11772 regardless of which language is being preprocessed.
11773 .Sp
11774 The remaining environment variables apply only when preprocessing the
11775 particular language indicated.  Each specifies a list of directories
11776 to be searched as if specified with \fB\-isystem\fR, but after any
11777 paths given with \fB\-isystem\fR options on the command line.
11778 .Sp
11779 In all these variables, an empty element instructs the compiler to
11780 search its current working directory.  Empty elements can appear at the
11781 beginning or end of a path.  For instance, if the value of
11782 \&\fB\s-1CPATH\s0\fR is \f(CW\*(C`:/special/include\*(C'\fR, that has the same
11783 effect as \fB\-I.\ \-I/special/include\fR.
11784 .IP "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4
11785 .IX Item "DEPENDENCIES_OUTPUT"
11786 If this variable is set, its value specifies how to output
11787 dependencies for Make based on the non-system header files processed
11788 by the compiler.  System header files are ignored in the dependency
11789 output.
11790 .Sp
11791 The value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, in
11792 which case the Make rules are written to that file, guessing the target
11793 name from the source file name.  Or the value can have the form
11794 \&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written to
11795 file \fIfile\fR using \fItarget\fR as the target name.
11796 .Sp
11797 In other words, this environment variable is equivalent to combining
11798 the options \fB\-MM\fR and \fB\-MF\fR,
11799 with an optional \fB\-MT\fR switch too.
11800 .IP "\fB\s-1SUNPRO_DEPENDENCIES\s0\fR" 4
11801 .IX Item "SUNPRO_DEPENDENCIES"
11802 This variable is the same as \fB\s-1DEPENDENCIES_OUTPUT\s0\fR (see above),
11803 except that system header files are not ignored, so it implies
11804 \&\fB\-M\fR rather than \fB\-MM\fR.  However, the dependence on the
11805 main input file is omitted.
11806 .SH "BUGS"
11807 .IX Header "BUGS"
11808 For instructions on reporting bugs, see
11809 <\fBhttp://gcc.gnu.org/bugs.html\fR>.
11810 .SH "FOOTNOTES"
11811 .IX Header "FOOTNOTES"
11812 .IP "1." 4
11813 On some systems, \fBgcc \-shared\fR
11814 needs to build supplementary stub code for constructors to work.  On
11815 multi-libbed systems, \fBgcc \-shared\fR must select the correct support
11816 libraries to link against.  Failing to supply the correct flags may lead
11817 to subtle defects.  Supplying them in cases where they are not necessary
11818 is innocuous.
11819 .SH "SEE ALSO"
11820 .IX Header "SEE ALSO"
11821 \&\fIgpl\fR\|(7), \fIgfdl\fR\|(7), \fIfsf\-funding\fR\|(7),
11822 \&\fIcpp40\fR\|(1), \fIgcov40\fR\|(1), \fIas\fR\|(1), \fIld\fR\|(1), \fIgdb\fR\|(1), \fIadb\fR\|(1), \fIdbx\fR\|(1), \fIsdb\fR\|(1)
11823 and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIas\fR,
11824 \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
11825 .SH "AUTHOR"
11826 .IX Header "AUTHOR"
11827 See the Info entry for \fBgcc\fR, or
11828 <\fBhttp://gcc.gnu.org/onlinedocs/gcc/Contributors.html\fR>,
11829 for contributors to \s-1GCC\s0.
11830 .SH "COPYRIGHT"
11831 .IX Header "COPYRIGHT"
11832 Copyright (c) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997,
11833 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
11834 .PP
11835 Permission is granted to copy, distribute and/or modify this document
11836 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.2 or
11837 any later version published by the Free Software Foundation; with the
11838 Invariant Sections being ``\s-1GNU\s0 General Public License'' and ``Funding
11839 Free Software'', the Front-Cover texts being (a) (see below), and with
11840 the Back-Cover Texts being (b) (see below).  A copy of the license is
11841 included in the \fIgfdl\fR\|(7) man page.
11842 .PP
11843 (a) The \s-1FSF\s0's Front-Cover Text is:
11844 .PP
11845 .Vb 1
11846 \&     A GNU Manual
11847 .Ve
11848 .PP
11849 (b) The \s-1FSF\s0's Back-Cover Text is:
11850 .PP
11851 .Vb 3
11852 \&     You have freedom to copy and modify this GNU Manual, like GNU
11853 \&     software.  Copies published by the Free Software Foundation raise
11854 \&     funds for GNU development.
11855 .Ve