]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/gcc/doc/gcc.1
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / gcc / doc / gcc.1
1 .\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.14
2 .\"
3 .\" Standard preamble:
4 .\" ========================================================================
5 .de Sh \" Subsection heading
6 .br
7 .if t .Sp
8 .ne 5
9 .PP
10 \fB\\$1\fR
11 .PP
12 ..
13 .de Sp \" Vertical space (when we can't use .PP)
14 .if t .sp .5v
15 .if n .sp
16 ..
17 .de Vb \" Begin verbatim text
18 .ft CW
19 .nf
20 .ne \\$1
21 ..
22 .de Ve \" End verbatim text
23 .ft R
24 .fi
25 ..
26 .\" Set up some character translations and predefined strings.  \*(-- will
27 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
28 .\" double quote, and \*(R" will give a right double quote.  | will give a
29 .\" real vertical bar.  \*(C+ will give a nicer C++.  Capital omega is used to
30 .\" do unbreakable dashes and therefore won't be available.  \*(C` and \*(C'
31 .\" expand to `' in nroff, nothing in troff, for use with C<>.
32 .tr \(*W-|\(bv\*(Tr
33 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
34 .ie n \{\
35 .    ds -- \(*W-
36 .    ds PI pi
37 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
38 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
39 .    ds L" ""
40 .    ds R" ""
41 .    ds C` ""
42 .    ds C' ""
43 'br\}
44 .el\{\
45 .    ds -- \|\(em\|
46 .    ds PI \(*p
47 .    ds L" ``
48 .    ds R" ''
49 'br\}
50 .\"
51 .\" If the F register is turned on, we'll generate index entries on stderr for
52 .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
53 .\" entries marked with X<> in POD.  Of course, you'll have to process the
54 .\" output yourself in some meaningful fashion.
55 .if \nF \{\
56 .    de IX
57 .    tm Index:\\$1\t\\n%\t"\\$2"
58 ..
59 .    nr % 0
60 .    rr F
61 .\}
62 .\"
63 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
64 .\" way too many mistakes in technical documents.
65 .hy 0
66 .if n .na
67 .\"
68 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
69 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
70 .    \" fudge factors for nroff and troff
71 .if n \{\
72 .    ds #H 0
73 .    ds #V .8m
74 .    ds #F .3m
75 .    ds #[ \f1
76 .    ds #] \fP
77 .\}
78 .if t \{\
79 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
80 .    ds #V .6m
81 .    ds #F 0
82 .    ds #[ \&
83 .    ds #] \&
84 .\}
85 .    \" simple accents for nroff and troff
86 .if n \{\
87 .    ds ' \&
88 .    ds ` \&
89 .    ds ^ \&
90 .    ds , \&
91 .    ds ~ ~
92 .    ds /
93 .\}
94 .if t \{\
95 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
96 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
97 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
98 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
99 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
100 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
101 .\}
102 .    \" troff and (daisy-wheel) nroff accents
103 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
104 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
105 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
106 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
107 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
108 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
109 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
110 .ds ae a\h'-(\w'a'u*4/10)'e
111 .ds Ae A\h'-(\w'A'u*4/10)'E
112 .    \" corrections for vroff
113 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
114 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
115 .    \" for low resolution devices (crt and lpr)
116 .if \n(.H>23 .if \n(.V>19 \
117 \{\
118 .    ds : e
119 .    ds 8 ss
120 .    ds o a
121 .    ds d- d\h'-1'\(ga
122 .    ds D- D\h'-1'\(hy
123 .    ds th \o'bp'
124 .    ds Th \o'LP'
125 .    ds ae ae
126 .    ds Ae AE
127 .\}
128 .rm #[ #] #H #V #F C
129 .\" ========================================================================
130 .\"
131 .IX Title "GCC 1"
132 .TH GCC 1 "2011-03-07" "gcc-4.2.1" "GNU"
133 .SH "NAME"
134 gcc \- GNU project C and C++ compiler
135 .SH "SYNOPSIS"
136 .IX Header "SYNOPSIS"
137 gcc [\fB\-c\fR|\fB\-S\fR|\fB\-E\fR] [\fB\-std=\fR\fIstandard\fR]
138     [\fB\-g\fR] [\fB\-pg\fR] [\fB\-O\fR\fIlevel\fR]
139     [\fB\-W\fR\fIwarn\fR...] [\fB\-pedantic\fR]
140     [\fB\-I\fR\fIdir\fR...] [\fB\-L\fR\fIdir\fR...]
141     [\fB\-D\fR\fImacro\fR[=\fIdefn\fR]...] [\fB\-U\fR\fImacro\fR]
142     [\fB\-f\fR\fIoption\fR...] [\fB\-m\fR\fImachine-option\fR...]
143     [\fB\-o\fR \fIoutfile\fR] [@\fIfile\fR] \fIinfile\fR...
144 .PP
145 Only the most useful options are listed here; see below for the
146 remainder.  \fBg++\fR accepts mostly the same options as \fBgcc\fR.
147 .SH "DESCRIPTION"
148 .IX Header "DESCRIPTION"
149 When you invoke \s-1GCC\s0, it normally does preprocessing, compilation,
150 assembly and linking.  The \*(L"overall options\*(R" allow you to stop this
151 process at an intermediate stage.  For example, the \fB\-c\fR option
152 says not to run the linker.  Then the output consists of object files
153 output by the assembler.
154 .PP
155 Other options are passed on to one stage of processing.  Some options
156 control the preprocessor and others the compiler itself.  Yet other
157 options control the assembler and linker; most of these are not
158 documented here, since you rarely need to use any of them.
159 .PP
160 Most of the command line options that you can use with \s-1GCC\s0 are useful
161 for C programs; when an option is only useful with another language
162 (usually \*(C+), the explanation says so explicitly.  If the description
163 for a particular option does not mention a source language, you can use
164 that option with all supported languages.
165 .PP
166 The \fBgcc\fR program accepts options and file names as operands.  Many
167 options have multi-letter names; therefore multiple single-letter options
168 may \fInot\fR be grouped: \fB\-dr\fR is very different from \fB\-d\ \-r\fR.
169 .PP
170 You can mix options and other arguments.  For the most part, the order
171 you use doesn't matter.  Order does matter when you use several options
172 of the same kind; for example, if you specify \fB\-L\fR more than once,
173 the directories are searched in the order specified.
174 .PP
175 Many options have long names starting with \fB\-f\fR or with
176 \&\fB\-W\fR\-\-\-for example, 
177 \&\fB\-fmove\-loop\-invariants\fR, \fB\-Wformat\fR and so on.  Most of
178 these have both positive and negative forms; the negative form of
179 \&\fB\-ffoo\fR would be \fB\-fno\-foo\fR.  This manual documents
180 only one of these two forms, whichever one is not the default.
181 .SH "OPTIONS"
182 .IX Header "OPTIONS"
183 .Sh "Option Summary"
184 .IX Subsection "Option Summary"
185 Here is a summary of all the options, grouped by type.  Explanations are
186 in the following sections.
187 .IP "\fIOverall Options\fR" 4
188 .IX Item "Overall Options"
189 \&\fB\-c  \-S  \-E  \-o\fR \fIfile\fR  \fB\-combine \-pipe  \-pass\-exit\-codes  
190 \&\-x\fR \fIlanguage\fR  \fB\-v  \-###  \-\-help  \-\-target\-help  \-\-version @\fR\fIfile\fR
191 .IP "\fIC Language Options\fR" 4
192 .IX Item "C Language Options"
193 \&\fB\-ansi  \-std=\fR\fIstandard\fR  \fB\-fgnu89\-inline 
194 \&\-aux\-info\fR \fIfilename\fR 
195 \&\fB\-fno\-asm  \-fno\-builtin  \-fno\-builtin\-\fR\fIfunction\fR 
196 \&\fB\-fhosted  \-ffreestanding \-fopenmp \-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  \-ffriend\-injection 
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  \-Wstrict\-null\-sentinel 
219 \&\-Wno\-non\-template\-friend  \-Wold\-style\-cast 
220 \&\-Woverloaded\-virtual  \-Wno\-pmf\-conversions 
221 \&\-Wsign\-promo\fR
222 .IP "\fILanguage Independent Options\fR" 4
223 .IX Item "Language Independent Options"
224 \&\fB\-fmessage\-length=\fR\fIn\fR  
225 \&\fB\-fdiagnostics\-show\-location=\fR[\fBonce\fR|\fBevery-line\fR]  
226 \&\fB\-fdiagnostics\-show\-option\fR
227 .IP "\fIWarning Options\fR" 4
228 .IX Item "Warning Options"
229 \&\fB\-fsyntax\-only  \-pedantic  \-pedantic\-errors 
230 \&\-w  \-Wextra  \-Wall  \-Waddress  \-Waggregate\-return \-Wno\-attributes 
231 \&\-Wc++\-compat \-Wcast\-align  \-Wcast\-qual  \-Wchar\-subscripts  \-Wcomment 
232 \&\-Wconversion  \-Wno\-deprecated\-declarations 
233 \&\-Wdisabled\-optimization  \-Wno\-div\-by\-zero  \-Wno\-endif\-labels 
234 \&\-Werror  \-Werror=* \-Werror\-implicit\-function\-declaration 
235 \&\-Wfatal\-errors  \-Wfloat\-equal  \-Wformat  \-Wformat=2 
236 \&\-Wno\-format\-extra\-args \-Wformat\-nonliteral 
237 \&\-Wformat\-security  \-Wformat\-y2k 
238 \&\-Wimplicit  \-Wimplicit\-function\-declaration  \-Wimplicit\-int 
239 \&\-Wimport  \-Wno\-import  \-Winit\-self  \-Winline 
240 \&\-Wno\-int\-to\-pointer\-cast 
241 \&\-Wno\-invalid\-offsetof  \-Winvalid\-pch 
242 \&\-Wlarger\-than\-\fR\fIlen\fR  \fB\-Wunsafe\-loop\-optimizations  \-Wlong\-long 
243 \&\-Wmain  \-Wmissing\-braces  \-Wmissing\-field\-initializers 
244 \&\-Wmissing\-format\-attribute  \-Wmissing\-include\-dirs 
245 \&\-Wmissing\-noreturn 
246 \&\-Wno\-multichar  \-Wnonnull  \-Wno\-overflow 
247 \&\-Woverlength\-strings  \-Wpacked  \-Wpadded 
248 \&\-Wparentheses  \-Wpointer\-arith  \-Wno\-pointer\-to\-int\-cast 
249 \&\-Wredundant\-decls 
250 \&\-Wreturn\-type  \-Wsequence\-point  \-Wshadow 
251 \&\-Wsign\-compare  \-Wstack\-protector 
252 \&\-Wstrict\-aliasing \-Wstrict\-aliasing=2 
253 \&\-Wstrict\-overflow \-Wstrict\-overflow=\fR\fIn\fR 
254 \&\fB\-Wswitch  \-Wswitch\-default  \-Wswitch\-enum 
255 \&\-Wsystem\-headers  \-Wtrigraphs  \-Wundef  \-Wuninitialized 
256 \&\-Wunknown\-pragmas  \-Wno\-pragmas \-Wunreachable\-code 
257 \&\-Wunused  \-Wunused\-function  \-Wunused\-label  \-Wunused\-parameter 
258 \&\-Wunused\-value  \-Wunused\-variable  \-Wvariadic\-macros 
259 \&\-Wvolatile\-register\-var  \-Wwrite\-strings\fR
260 .IP "\fIC\-only Warning Options\fR" 4
261 .IX Item "C-only Warning Options"
262 \&\fB\-Wbad\-function\-cast  \-Wmissing\-declarations 
263 \&\-Wmissing\-prototypes  \-Wnested\-externs  \-Wold\-style\-definition 
264 \&\-Wstrict\-prototypes  \-Wtraditional 
265 \&\-Wdeclaration\-after\-statement \-Wpointer\-sign\fR
266 .IP "\fIDebugging Options\fR" 4
267 .IX Item "Debugging Options"
268 \&\fB\-d\fR\fIletters\fR  \fB\-dumpspecs  \-dumpmachine  \-dumpversion 
269 \&\-fdump\-noaddr \-fdump\-unnumbered  \-fdump\-translation\-unit\fR[\fB\-\fR\fIn\fR] 
270 \&\fB\-fdump\-class\-hierarchy\fR[\fB\-\fR\fIn\fR] 
271 \&\fB\-fdump\-ipa\-all \-fdump\-ipa\-cgraph 
272 \&\-fdump\-tree\-all 
273 \&\-fdump\-tree\-original\fR[\fB\-\fR\fIn\fR]  
274 \&\fB\-fdump\-tree\-optimized\fR[\fB\-\fR\fIn\fR] 
275 \&\fB\-fdump\-tree\-inlined\fR[\fB\-\fR\fIn\fR] 
276 \&\fB\-fdump\-tree\-cfg \-fdump\-tree\-vcg \-fdump\-tree\-alias 
277 \&\-fdump\-tree\-ch 
278 \&\-fdump\-tree\-ssa\fR[\fB\-\fR\fIn\fR] \fB\-fdump\-tree\-pre\fR[\fB\-\fR\fIn\fR] 
279 \&\fB\-fdump\-tree\-ccp\fR[\fB\-\fR\fIn\fR] \fB\-fdump\-tree\-dce\fR[\fB\-\fR\fIn\fR] 
280 \&\fB\-fdump\-tree\-gimple\fR[\fB\-raw\fR] \fB\-fdump\-tree\-mudflap\fR[\fB\-\fR\fIn\fR] 
281 \&\fB\-fdump\-tree\-dom\fR[\fB\-\fR\fIn\fR] 
282 \&\fB\-fdump\-tree\-dse\fR[\fB\-\fR\fIn\fR] 
283 \&\fB\-fdump\-tree\-phiopt\fR[\fB\-\fR\fIn\fR] 
284 \&\fB\-fdump\-tree\-forwprop\fR[\fB\-\fR\fIn\fR] 
285 \&\fB\-fdump\-tree\-copyrename\fR[\fB\-\fR\fIn\fR] 
286 \&\fB\-fdump\-tree\-nrv \-fdump\-tree\-vect 
287 \&\-fdump\-tree\-sink 
288 \&\-fdump\-tree\-sra\fR[\fB\-\fR\fIn\fR] 
289 \&\fB\-fdump\-tree\-salias 
290 \&\-fdump\-tree\-fre\fR[\fB\-\fR\fIn\fR] 
291 \&\fB\-fdump\-tree\-vrp\fR[\fB\-\fR\fIn\fR] 
292 \&\fB\-ftree\-vectorizer\-verbose=\fR\fIn\fR 
293 \&\fB\-fdump\-tree\-storeccp\fR[\fB\-\fR\fIn\fR] 
294 \&\fB\-feliminate\-dwarf2\-dups \-feliminate\-unused\-debug\-types 
295 \&\-feliminate\-unused\-debug\-symbols \-femit\-class\-debug\-always 
296 \&\-fmem\-report \-fprofile\-arcs 
297 \&\-frandom\-seed=\fR\fIstring\fR \fB\-fsched\-verbose=\fR\fIn\fR 
298 \&\fB\-ftest\-coverage  \-ftime\-report \-fvar\-tracking 
299 \&\-g  \-g\fR\fIlevel\fR  \fB\-gcoff \-gdwarf\-2 
300 \&\-ggdb  \-gstabs  \-gstabs+  \-gvms  \-gxcoff  \-gxcoff+ 
301 \&\-p  \-pg  \-print\-file\-name=\fR\fIlibrary\fR  \fB\-print\-libgcc\-file\-name 
302 \&\-print\-multi\-directory  \-print\-multi\-lib 
303 \&\-print\-prog\-name=\fR\fIprogram\fR  \fB\-print\-search\-dirs  \-Q 
304 \&\-save\-temps  \-time\fR
305 .IP "\fIOptimization Options\fR" 4
306 .IX Item "Optimization Options"
307 \&\fB\-falign\-functions=\fR\fIn\fR  \fB\-falign\-jumps=\fR\fIn\fR 
308 \&\fB\-falign\-labels=\fR\fIn\fR  \fB\-falign\-loops=\fR\fIn\fR  
309 \&\fB\-fbounds\-check \-fmudflap \-fmudflapth \-fmudflapir 
310 \&\-fbranch\-probabilities \-fprofile\-values \-fvpt \-fbranch\-target\-load\-optimize 
311 \&\-fbranch\-target\-load\-optimize2 \-fbtr\-bb\-exclusive 
312 \&\-fcaller\-saves  \-fcprop\-registers  \-fcse\-follow\-jumps 
313 \&\-fcse\-skip\-blocks  \-fcx\-limited\-range  \-fdata\-sections 
314 \&\-fdelayed\-branch  \-fdelete\-null\-pointer\-checks \-fearly\-inlining 
315 \&\-fexpensive\-optimizations  \-ffast\-math  \-ffloat\-store 
316 \&\-fforce\-addr  \-ffunction\-sections 
317 \&\-fgcse  \-fgcse\-lm  \-fgcse\-sm  \-fgcse\-las  \-fgcse\-after\-reload 
318 \&\-fcrossjumping  \-fif\-conversion  \-fif\-conversion2 
319 \&\-finline\-functions  \-finline\-functions\-called\-once 
320 \&\-finline\-limit=\fR\fIn\fR  \fB\-fkeep\-inline\-functions 
321 \&\-fkeep\-static\-consts  \-fmerge\-constants  \-fmerge\-all\-constants 
322 \&\-fmodulo\-sched \-fno\-branch\-count\-reg 
323 \&\-fno\-default\-inline  \-fno\-defer\-pop \-fmove\-loop\-invariants 
324 \&\-fno\-function\-cse  \-fno\-guess\-branch\-probability 
325 \&\-fno\-inline  \-fno\-math\-errno  \-fno\-peephole  \-fno\-peephole2 
326 \&\-funsafe\-math\-optimizations  \-funsafe\-loop\-optimizations  \-ffinite\-math\-only 
327 \&\-fno\-toplevel\-reorder \-fno\-trapping\-math  \-fno\-zero\-initialized\-in\-bss 
328 \&\-fomit\-frame\-pointer  \-foptimize\-register\-move 
329 \&\-foptimize\-sibling\-calls  \-fprefetch\-loop\-arrays 
330 \&\-fprofile\-generate \-fprofile\-use 
331 \&\-fregmove  \-frename\-registers 
332 \&\-freorder\-blocks  \-freorder\-blocks\-and\-partition \-freorder\-functions 
333 \&\-frerun\-cse\-after\-loop 
334 \&\-frounding\-math \-frtl\-abstract\-sequences 
335 \&\-fschedule\-insns  \-fschedule\-insns2 
336 \&\-fno\-sched\-interblock  \-fno\-sched\-spec  \-fsched\-spec\-load 
337 \&\-fsched\-spec\-load\-dangerous  
338 \&\-fsched\-stalled\-insns=\fR\fIn\fR \fB\-fsched\-stalled\-insns\-dep=\fR\fIn\fR 
339 \&\fB\-fsched2\-use\-superblocks 
340 \&\-fsched2\-use\-traces \-fsee \-freschedule\-modulo\-scheduled\-loops 
341 \&\-fsection\-anchors  \-fsignaling\-nans  \-fsingle\-precision\-constant 
342 \&\-fstack\-protector  \-fstack\-protector\-all 
343 \&\-fstrict\-aliasing  \-fstrict\-overflow  \-ftracer  \-fthread\-jumps 
344 \&\-funroll\-all\-loops  \-funroll\-loops  \-fpeel\-loops 
345 \&\-fsplit\-ivs\-in\-unroller \-funswitch\-loops 
346 \&\-fvariable\-expansion\-in\-unroller 
347 \&\-ftree\-pre  \-ftree\-ccp  \-ftree\-dce \-ftree\-loop\-optimize 
348 \&\-ftree\-loop\-linear \-ftree\-loop\-im \-ftree\-loop\-ivcanon \-fivopts 
349 \&\-ftree\-dominator\-opts \-ftree\-dse \-ftree\-copyrename \-ftree\-sink 
350 \&\-ftree\-ch \-ftree\-sra \-ftree\-ter \-ftree\-lrs \-ftree\-fre \-ftree\-vectorize 
351 \&\-ftree\-vect\-loop\-version \-ftree\-salias \-fipa\-pta \-fweb 
352 \&\-ftree\-copy\-prop \-ftree\-store\-ccp \-ftree\-store\-copy\-prop \-fwhole\-program 
353 \&\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR
354 \&\fB\-O  \-O0  \-O1  \-O2  \-O3  \-Os\fR
355 .IP "\fIPreprocessor Options\fR" 4
356 .IX Item "Preprocessor Options"
357 \&\fB\-A\fR\fIquestion\fR\fB=\fR\fIanswer\fR 
358 \&\fB\-A\-\fR\fIquestion\fR[\fB=\fR\fIanswer\fR] 
359 \&\fB\-C  \-dD  \-dI  \-dM  \-dN 
360 \&\-D\fR\fImacro\fR[\fB=\fR\fIdefn\fR]  \fB\-E  \-H 
361 \&\-idirafter\fR \fIdir\fR 
362 \&\fB\-include\fR \fIfile\fR  \fB\-imacros\fR \fIfile\fR 
363 \&\fB\-iprefix\fR \fIfile\fR  \fB\-iwithprefix\fR \fIdir\fR 
364 \&\fB\-iwithprefixbefore\fR \fIdir\fR  \fB\-isystem\fR \fIdir\fR 
365 \&\fB\-imultilib\fR \fIdir\fR \fB\-isysroot\fR \fIdir\fR 
366 \&\fB\-M  \-MM  \-MF  \-MG  \-MP  \-MQ  \-MT  \-nostdinc  
367 \&\-P  \-fworking\-directory  \-remap 
368 \&\-trigraphs  \-undef  \-U\fR\fImacro\fR  \fB\-Wp,\fR\fIoption\fR 
369 \&\fB\-Xpreprocessor\fR \fIoption\fR
370 .IP "\fIAssembler Option\fR" 4
371 .IX Item "Assembler Option"
372 \&\fB\-Wa,\fR\fIoption\fR  \fB\-Xassembler\fR \fIoption\fR
373 .IP "\fILinker Options\fR" 4
374 .IX Item "Linker Options"
375 \&\fIobject-file-name\fR  \fB\-l\fR\fIlibrary\fR 
376 \&\fB\-nostartfiles  \-nodefaultlibs  \-nostdlib \-pie \-rdynamic 
377 \&\-s  \-static  \-static\-libgcc  \-shared  \-shared\-libgcc  \-symbolic 
378 \&\-Wl,\fR\fIoption\fR  \fB\-Xlinker\fR \fIoption\fR 
379 \&\fB\-u\fR \fIsymbol\fR
380 .IP "\fIDirectory Options\fR" 4
381 .IX Item "Directory Options"
382 \&\fB\-B\fR\fIprefix\fR  \fB\-I\fR\fIdir\fR  \fB\-iquote\fR\fIdir\fR  \fB\-L\fR\fIdir\fR
383 \&\fB\-specs=\fR\fIfile\fR  \fB\-I\- \-\-sysroot=\fR\fIdir\fR
384 .IP "\fITarget Options\fR" 4
385 .IX Item "Target Options"
386 \&\fB\-V\fR \fIversion\fR  \fB\-b\fR \fImachine\fR
387 .IP "\fIMachine Dependent Options\fR" 4
388 .IX Item "Machine Dependent Options"
389 \&\fI\s-1ARC\s0 Options\fR
390 \&\fB\-EB  \-EL 
391 \&\-mmangle\-cpu  \-mcpu=\fR\fIcpu\fR  \fB\-mtext=\fR\fItext-section\fR 
392 \&\fB\-mdata=\fR\fIdata-section\fR  \fB\-mrodata=\fR\fIreadonly-data-section\fR
393 .Sp
394 \&\fI\s-1ARM\s0 Options\fR
395 \&\fB\-mapcs\-frame  \-mno\-apcs\-frame 
396 \&\-mabi=\fR\fIname\fR 
397 \&\fB\-mapcs\-stack\-check  \-mno\-apcs\-stack\-check 
398 \&\-mapcs\-float  \-mno\-apcs\-float 
399 \&\-mapcs\-reentrant  \-mno\-apcs\-reentrant 
400 \&\-msched\-prolog  \-mno\-sched\-prolog 
401 \&\-mlittle\-endian  \-mbig\-endian  \-mwords\-little\-endian 
402 \&\-mfloat\-abi=\fR\fIname\fR  \fB\-msoft\-float  \-mhard\-float  \-mfpe 
403 \&\-mthumb\-interwork  \-mno\-thumb\-interwork 
404 \&\-mcpu=\fR\fIname\fR  \fB\-march=\fR\fIname\fR  \fB\-mfpu=\fR\fIname\fR  
405 \&\fB\-mstructure\-size\-boundary=\fR\fIn\fR 
406 \&\fB\-mabort\-on\-noreturn 
407 \&\-mlong\-calls  \-mno\-long\-calls 
408 \&\-msingle\-pic\-base  \-mno\-single\-pic\-base 
409 \&\-mpic\-register=\fR\fIreg\fR 
410 \&\fB\-mnop\-fun\-dllimport 
411 \&\-mcirrus\-fix\-invalid\-insns \-mno\-cirrus\-fix\-invalid\-insns 
412 \&\-mpoke\-function\-name 
413 \&\-mthumb  \-marm 
414 \&\-mtpcs\-frame  \-mtpcs\-leaf\-frame 
415 \&\-mcaller\-super\-interworking  \-mcallee\-super\-interworking 
416 \&\-mtp=\fR\fIname\fR
417 .Sp
418 \&\fI\s-1AVR\s0 Options\fR
419 \&\fB\-mmcu=\fR\fImcu\fR  \fB\-msize  \-minit\-stack=\fR\fIn\fR  \fB\-mno\-interrupts 
420 \&\-mcall\-prologues  \-mno\-tablejump  \-mtiny\-stack  \-mint8\fR
421 .Sp
422 \&\fIBlackfin Options\fR
423 \&\fB\-momit\-leaf\-frame\-pointer \-mno\-omit\-leaf\-frame\-pointer 
424 \&\-mspecld\-anomaly \-mno\-specld\-anomaly \-mcsync\-anomaly \-mno\-csync\-anomaly 
425 \&\-mlow\-64k \-mno\-low64k \-mid\-shared\-library 
426 \&\-mno\-id\-shared\-library \-mshared\-library\-id=\fR\fIn\fR 
427 \&\fB\-mlong\-calls  \-mno\-long\-calls\fR
428 .Sp
429 \&\fI\s-1CRIS\s0 Options\fR
430 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-march=\fR\fIcpu\fR  \fB\-mtune=\fR\fIcpu\fR 
431 \&\fB\-mmax\-stack\-frame=\fR\fIn\fR  \fB\-melinux\-stacksize=\fR\fIn\fR 
432 \&\fB\-metrax4  \-metrax100  \-mpdebug  \-mcc\-init  \-mno\-side\-effects 
433 \&\-mstack\-align  \-mdata\-align  \-mconst\-align 
434 \&\-m32\-bit  \-m16\-bit  \-m8\-bit  \-mno\-prologue\-epilogue  \-mno\-gotplt 
435 \&\-melf  \-maout  \-melinux  \-mlinux  \-sim  \-sim2 
436 \&\-mmul\-bug\-workaround  \-mno\-mul\-bug\-workaround\fR
437 .Sp
438 \&\fI\s-1CRX\s0 Options\fR
439 \&\fB\-mmac \-mpush\-args\fR
440 .Sp
441 \&\fIDarwin Options\fR
442 \&\fB\-all_load  \-allowable_client  \-arch  \-arch_errors_fatal 
443 \&\-arch_only  \-bind_at_load  \-bundle  \-bundle_loader 
444 \&\-client_name  \-compatibility_version  \-current_version 
445 \&\-dead_strip 
446 \&\-dependency\-file  \-dylib_file  \-dylinker_install_name 
447 \&\-dynamic  \-dynamiclib  \-exported_symbols_list 
448 \&\-filelist  \-flat_namespace  \-force_cpusubtype_ALL 
449 \&\-force_flat_namespace  \-headerpad_max_install_names 
450 \&\-image_base  \-init  \-install_name  \-keep_private_externs 
451 \&\-multi_module  \-multiply_defined  \-multiply_defined_unused 
452 \&\-noall_load   \-no_dead_strip_inits_and_terms 
453 \&\-nofixprebinding \-nomultidefs  \-noprebind  \-noseglinkedit 
454 \&\-pagezero_size  \-prebind  \-prebind_all_twolevel_modules 
455 \&\-private_bundle  \-read_only_relocs  \-sectalign 
456 \&\-sectobjectsymbols  \-whyload  \-seg1addr 
457 \&\-sectcreate  \-sectobjectsymbols  \-sectorder 
458 \&\-segaddr \-segs_read_only_addr \-segs_read_write_addr 
459 \&\-seg_addr_table  \-seg_addr_table_filename  \-seglinkedit 
460 \&\-segprot  \-segs_read_only_addr  \-segs_read_write_addr 
461 \&\-single_module  \-static  \-sub_library  \-sub_umbrella 
462 \&\-twolevel_namespace  \-umbrella  \-undefined 
463 \&\-unexported_symbols_list  \-weak_reference_mismatches 
464 \&\-whatsloaded \-F \-gused \-gfull \-mmacosx\-version\-min=\fR\fIversion\fR 
465 \&\fB\-mkernel \-mone\-byte\-bool\fR
466 .Sp
467 \&\fI\s-1DEC\s0 Alpha Options\fR
468 \&\fB\-mno\-fp\-regs  \-msoft\-float  \-malpha\-as  \-mgas 
469 \&\-mieee  \-mieee\-with\-inexact  \-mieee\-conformant 
470 \&\-mfp\-trap\-mode=\fR\fImode\fR  \fB\-mfp\-rounding\-mode=\fR\fImode\fR 
471 \&\fB\-mtrap\-precision=\fR\fImode\fR  \fB\-mbuild\-constants 
472 \&\-mcpu=\fR\fIcpu-type\fR  \fB\-mtune=\fR\fIcpu-type\fR 
473 \&\fB\-mbwx  \-mmax  \-mfix  \-mcix 
474 \&\-mfloat\-vax  \-mfloat\-ieee 
475 \&\-mexplicit\-relocs  \-msmall\-data  \-mlarge\-data 
476 \&\-msmall\-text  \-mlarge\-text 
477 \&\-mmemory\-latency=\fR\fItime\fR
478 .Sp
479 \&\fI\s-1DEC\s0 Alpha/VMS Options\fR
480 \&\fB\-mvms\-return\-codes\fR
481 .Sp
482 \&\fI\s-1FRV\s0 Options\fR
483 \&\fB\-mgpr\-32  \-mgpr\-64  \-mfpr\-32  \-mfpr\-64 
484 \&\-mhard\-float  \-msoft\-float 
485 \&\-malloc\-cc  \-mfixed\-cc  \-mdword  \-mno\-dword 
486 \&\-mdouble  \-mno\-double 
487 \&\-mmedia  \-mno\-media  \-mmuladd  \-mno\-muladd 
488 \&\-mfdpic  \-minline\-plt \-mgprel\-ro  \-multilib\-library\-pic 
489 \&\-mlinked\-fp  \-mlong\-calls  \-malign\-labels 
490 \&\-mlibrary\-pic  \-macc\-4  \-macc\-8 
491 \&\-mpack  \-mno\-pack  \-mno\-eflags  \-mcond\-move  \-mno\-cond\-move 
492 \&\-moptimize\-membar \-mno\-optimize\-membar 
493 \&\-mscc  \-mno\-scc  \-mcond\-exec  \-mno\-cond\-exec 
494 \&\-mvliw\-branch  \-mno\-vliw\-branch 
495 \&\-mmulti\-cond\-exec  \-mno\-multi\-cond\-exec  \-mnested\-cond\-exec 
496 \&\-mno\-nested\-cond\-exec  \-mtomcat\-stats 
497 \&\-mTLS \-mtls 
498 \&\-mcpu=\fR\fIcpu\fR
499 .Sp
500 \&\fIGNU/Linux Options\fR
501 \&\fB\-muclibc\fR
502 .Sp
503 \&\fIH8/300 Options\fR
504 \&\fB\-mrelax  \-mh  \-ms  \-mn  \-mint32  \-malign\-300\fR
505 .Sp
506 \&\fI\s-1HPPA\s0 Options\fR
507 \&\fB\-march=\fR\fIarchitecture-type\fR 
508 \&\fB\-mbig\-switch  \-mdisable\-fpregs  \-mdisable\-indexing 
509 \&\-mfast\-indirect\-calls  \-mgas  \-mgnu\-ld   \-mhp\-ld 
510 \&\-mfixed\-range=\fR\fIregister-range\fR 
511 \&\fB\-mjump\-in\-delay \-mlinker\-opt \-mlong\-calls 
512 \&\-mlong\-load\-store  \-mno\-big\-switch  \-mno\-disable\-fpregs 
513 \&\-mno\-disable\-indexing  \-mno\-fast\-indirect\-calls  \-mno\-gas 
514 \&\-mno\-jump\-in\-delay  \-mno\-long\-load\-store 
515 \&\-mno\-portable\-runtime  \-mno\-soft\-float 
516 \&\-mno\-space\-regs  \-msoft\-float  \-mpa\-risc\-1\-0 
517 \&\-mpa\-risc\-1\-1  \-mpa\-risc\-2\-0  \-mportable\-runtime 
518 \&\-mschedule=\fR\fIcpu-type\fR  \fB\-mspace\-regs  \-msio  \-mwsio 
519 \&\-munix=\fR\fIunix-std\fR  \fB\-nolibdld  \-static  \-threads\fR
520 .Sp
521 \&\fIi386 and x86\-64 Options\fR
522 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
523 \&\fB\-mfpmath=\fR\fIunit\fR 
524 \&\fB\-masm=\fR\fIdialect\fR  \fB\-mno\-fancy\-math\-387 
525 \&\-mno\-fp\-ret\-in\-387  \-msoft\-float  \-msvr3\-shlib 
526 \&\-mno\-wide\-multiply  \-mrtd  \-malign\-double 
527 \&\-mpreferred\-stack\-boundary=\fR\fInum\fR 
528 \&\fB\-mmmx  \-msse  \-msse2 \-msse3 \-mssse3 \-m3dnow 
529 \&\-mthreads  \-mno\-align\-stringops  \-minline\-all\-stringops 
530 \&\-mpush\-args  \-maccumulate\-outgoing\-args  \-m128bit\-long\-double 
531 \&\-m96bit\-long\-double  \-mregparm=\fR\fInum\fR  \fB\-msseregparm 
532 \&\-mstackrealign 
533 \&\-momit\-leaf\-frame\-pointer  \-mno\-red\-zone \-mno\-tls\-direct\-seg\-refs 
534 \&\-mcmodel=\fR\fIcode-model\fR 
535 \&\fB\-m32  \-m64 \-mlarge\-data\-threshold=\fR\fInum\fR
536 .Sp
537 \&\fI\s-1IA\-64\s0 Options\fR
538 \&\fB\-mbig\-endian  \-mlittle\-endian  \-mgnu\-as  \-mgnu\-ld  \-mno\-pic 
539 \&\-mvolatile\-asm\-stop  \-mregister\-names  \-mno\-sdata 
540 \&\-mconstant\-gp  \-mauto\-pic  \-minline\-float\-divide\-min\-latency 
541 \&\-minline\-float\-divide\-max\-throughput 
542 \&\-minline\-int\-divide\-min\-latency 
543 \&\-minline\-int\-divide\-max\-throughput  
544 \&\-minline\-sqrt\-min\-latency \-minline\-sqrt\-max\-throughput 
545 \&\-mno\-dwarf2\-asm \-mearly\-stop\-bits 
546 \&\-mfixed\-range=\fR\fIregister-range\fR \fB\-mtls\-size=\fR\fItls-size\fR 
547 \&\fB\-mtune=\fR\fIcpu-type\fR \fB\-mt \-pthread \-milp32 \-mlp64 
548 \&\-mno\-sched\-br\-data\-spec \-msched\-ar\-data\-spec \-mno\-sched\-control\-spec 
549 \&\-msched\-br\-in\-data\-spec \-msched\-ar\-in\-data\-spec \-msched\-in\-control\-spec 
550 \&\-msched\-ldc \-mno\-sched\-control\-ldc \-mno\-sched\-spec\-verbose 
551 \&\-mno\-sched\-prefer\-non\-data\-spec\-insns 
552 \&\-mno\-sched\-prefer\-non\-control\-spec\-insns 
553 \&\-mno\-sched\-count\-spec\-in\-critical\-path\fR
554 .Sp
555 \&\fIM32R/D Options\fR
556 \&\fB\-m32r2 \-m32rx \-m32r 
557 \&\-mdebug 
558 \&\-malign\-loops \-mno\-align\-loops 
559 \&\-missue\-rate=\fR\fInumber\fR 
560 \&\fB\-mbranch\-cost=\fR\fInumber\fR 
561 \&\fB\-mmodel=\fR\fIcode-size-model-type\fR 
562 \&\fB\-msdata=\fR\fIsdata-type\fR 
563 \&\fB\-mno\-flush\-func \-mflush\-func=\fR\fIname\fR 
564 \&\fB\-mno\-flush\-trap \-mflush\-trap=\fR\fInumber\fR 
565 \&\fB\-G\fR \fInum\fR
566 .Sp
567 \&\fIM32C Options\fR
568 \&\fB\-mcpu=\fR\fIcpu\fR \fB\-msim \-memregs=\fR\fInumber\fR
569 .Sp
570 \&\fIM680x0 Options\fR
571 \&\fB\-m68000  \-m68020  \-m68020\-40  \-m68020\-60  \-m68030  \-m68040 
572 \&\-m68060  \-mcpu32  \-m5200  \-mcfv4e \-m68881  \-mbitfield  
573 \&\-mc68000  \-mc68020   
574 \&\-mnobitfield  \-mrtd  \-mshort  \-msoft\-float  \-mpcrel 
575 \&\-malign\-int  \-mstrict\-align  \-msep\-data  \-mno\-sep\-data 
576 \&\-mshared\-library\-id=n  \-mid\-shared\-library  \-mno\-id\-shared\-library\fR
577 .Sp
578 \&\fIM68hc1x Options\fR
579 \&\fB\-m6811  \-m6812  \-m68hc11  \-m68hc12   \-m68hcs12 
580 \&\-mauto\-incdec  \-minmax  \-mlong\-calls  \-mshort 
581 \&\-msoft\-reg\-count=\fR\fIcount\fR
582 .Sp
583 \&\fIMCore Options\fR
584 \&\fB\-mhardlit  \-mno\-hardlit  \-mdiv  \-mno\-div  \-mrelax\-immediates 
585 \&\-mno\-relax\-immediates  \-mwide\-bitfields  \-mno\-wide\-bitfields 
586 \&\-m4byte\-functions  \-mno\-4byte\-functions  \-mcallgraph\-data 
587 \&\-mno\-callgraph\-data  \-mslow\-bytes  \-mno\-slow\-bytes  \-mno\-lsim 
588 \&\-mlittle\-endian  \-mbig\-endian  \-m210  \-m340  \-mstack\-increment\fR
589 .Sp
590 \&\fI\s-1MIPS\s0 Options\fR
591 \&\fB\-EL  \-EB  \-march=\fR\fIarch\fR  \fB\-mtune=\fR\fIarch\fR 
592 \&\fB\-mips1  \-mips2  \-mips3  \-mips4  \-mips32  \-mips32r2  \-mips64 
593 \&\-mips16  \-mno\-mips16  \-mabi=\fR\fIabi\fR  \fB\-mabicalls  \-mno\-abicalls 
594 \&\-mshared  \-mno\-shared  \-mxgot  \-mno\-xgot  \-mgp32  \-mgp64  
595 \&\-mfp32  \-mfp64  \-mhard\-float  \-msoft\-float  
596 \&\-msingle\-float  \-mdouble\-float  \-mdsp  \-mpaired\-single  \-mips3d 
597 \&\-mlong64  \-mlong32  \-msym32  \-mno\-sym32 
598 \&\-G\fR\fInum\fR  \fB\-membedded\-data  \-mno\-embedded\-data 
599 \&\-muninit\-const\-in\-rodata  \-mno\-uninit\-const\-in\-rodata 
600 \&\-msplit\-addresses  \-mno\-split\-addresses  
601 \&\-mexplicit\-relocs  \-mno\-explicit\-relocs  
602 \&\-mcheck\-zero\-division  \-mno\-check\-zero\-division 
603 \&\-mdivide\-traps  \-mdivide\-breaks 
604 \&\-mmemcpy  \-mno\-memcpy  \-mlong\-calls  \-mno\-long\-calls 
605 \&\-mmad  \-mno\-mad  \-mfused\-madd  \-mno\-fused\-madd  \-nocpp 
606 \&\-mfix\-r4000  \-mno\-fix\-r4000  \-mfix\-r4400  \-mno\-fix\-r4400 
607 \&\-mfix\-vr4120  \-mno\-fix\-vr4120  \-mfix\-vr4130 
608 \&\-mfix\-sb1  \-mno\-fix\-sb1 
609 \&\-mflush\-func=\fR\fIfunc\fR  \fB\-mno\-flush\-func 
610 \&\-mbranch\-likely  \-mno\-branch\-likely 
611 \&\-mfp\-exceptions \-mno\-fp\-exceptions 
612 \&\-mvr4130\-align \-mno\-vr4130\-align\fR
613 .Sp
614 \&\fI\s-1MMIX\s0 Options\fR
615 \&\fB\-mlibfuncs  \-mno\-libfuncs  \-mepsilon  \-mno\-epsilon  \-mabi=gnu 
616 \&\-mabi=mmixware  \-mzero\-extend  \-mknuthdiv  \-mtoplevel\-symbols 
617 \&\-melf  \-mbranch\-predict  \-mno\-branch\-predict  \-mbase\-addresses 
618 \&\-mno\-base\-addresses  \-msingle\-exit  \-mno\-single\-exit\fR
619 .Sp
620 \&\fI\s-1MN10300\s0 Options\fR
621 \&\fB\-mmult\-bug  \-mno\-mult\-bug 
622 \&\-mam33  \-mno\-am33 
623 \&\-mam33\-2  \-mno\-am33\-2 
624 \&\-mreturn\-pointer\-on\-d0 
625 \&\-mno\-crt0  \-mrelax\fR
626 .Sp
627 \&\fI\s-1MT\s0 Options\fR
628 \&\fB\-mno\-crt0 \-mbacc \-msim 
629 \&\-march=\fR\fIcpu-type\fR\fB \fR
630 .Sp
631 \&\fI\s-1PDP\-11\s0 Options\fR
632 \&\fB\-mfpu  \-msoft\-float  \-mac0  \-mno\-ac0  \-m40  \-m45  \-m10 
633 \&\-mbcopy  \-mbcopy\-builtin  \-mint32  \-mno\-int16 
634 \&\-mint16  \-mno\-int32  \-mfloat32  \-mno\-float64 
635 \&\-mfloat64  \-mno\-float32  \-mabshi  \-mno\-abshi 
636 \&\-mbranch\-expensive  \-mbranch\-cheap 
637 \&\-msplit  \-mno\-split  \-munix\-asm  \-mdec\-asm\fR
638 .Sp
639 \&\fIPowerPC Options\fR
640 See \s-1RS/6000\s0 and PowerPC Options.
641 .Sp
642 \&\fI\s-1RS/6000\s0 and PowerPC Options\fR
643 \&\fB\-mcpu=\fR\fIcpu-type\fR 
644 \&\fB\-mtune=\fR\fIcpu-type\fR 
645 \&\fB\-mpower  \-mno\-power  \-mpower2  \-mno\-power2 
646 \&\-mpowerpc  \-mpowerpc64  \-mno\-powerpc 
647 \&\-maltivec  \-mno\-altivec 
648 \&\-mpowerpc\-gpopt  \-mno\-powerpc\-gpopt 
649 \&\-mpowerpc\-gfxopt  \-mno\-powerpc\-gfxopt 
650 \&\-mmfcrf  \-mno\-mfcrf  \-mpopcntb  \-mno\-popcntb  \-mfprnd  \-mno\-fprnd 
651 \&\-mnew\-mnemonics  \-mold\-mnemonics 
652 \&\-mfull\-toc   \-mminimal\-toc  \-mno\-fp\-in\-toc  \-mno\-sum\-in\-toc 
653 \&\-m64  \-m32  \-mxl\-compat  \-mno\-xl\-compat  \-mpe 
654 \&\-malign\-power  \-malign\-natural 
655 \&\-msoft\-float  \-mhard\-float  \-mmultiple  \-mno\-multiple 
656 \&\-mstring  \-mno\-string  \-mupdate  \-mno\-update 
657 \&\-mfused\-madd  \-mno\-fused\-madd  \-mbit\-align  \-mno\-bit\-align 
658 \&\-mstrict\-align  \-mno\-strict\-align  \-mrelocatable 
659 \&\-mno\-relocatable  \-mrelocatable\-lib  \-mno\-relocatable\-lib 
660 \&\-mtoc  \-mno\-toc  \-mlittle  \-mlittle\-endian  \-mbig  \-mbig\-endian 
661 \&\-mdynamic\-no\-pic  \-maltivec  \-mswdiv 
662 \&\-mprioritize\-restricted\-insns=\fR\fIpriority\fR 
663 \&\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR 
664 \&\fB\-minsert\-sched\-nops=\fR\fIscheme\fR 
665 \&\fB\-mcall\-sysv  \-mcall\-netbsd 
666 \&\-maix\-struct\-return  \-msvr4\-struct\-return 
667 \&\-mabi=\fR\fIabi-type\fR \fB\-msecure\-plt \-mbss\-plt 
668 \&\-misel \-mno\-isel 
669 \&\-misel=yes  \-misel=no 
670 \&\-mspe \-mno\-spe 
671 \&\-mspe=yes  \-mspe=no 
672 \&\-mvrsave \-mno\-vrsave 
673 \&\-mmulhw \-mno\-mulhw 
674 \&\-mdlmzb \-mno\-dlmzb 
675 \&\-mfloat\-gprs=yes  \-mfloat\-gprs=no \-mfloat\-gprs=single \-mfloat\-gprs=double 
676 \&\-mprototype  \-mno\-prototype 
677 \&\-msim  \-mmvme  \-mads  \-myellowknife  \-memb  \-msdata 
678 \&\-msdata=\fR\fIopt\fR  \fB\-mvxworks  \-mwindiss  \-G\fR \fInum\fR  \fB\-pthread\fR
679 .Sp
680 \&\fIS/390 and zSeries Options\fR
681 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
682 \&\fB\-mhard\-float  \-msoft\-float \-mlong\-double\-64 \-mlong\-double\-128 
683 \&\-mbackchain  \-mno\-backchain \-mpacked\-stack  \-mno\-packed\-stack 
684 \&\-msmall\-exec  \-mno\-small\-exec  \-mmvcle \-mno\-mvcle 
685 \&\-m64  \-m31  \-mdebug  \-mno\-debug  \-mesa  \-mzarch 
686 \&\-mtpf\-trace \-mno\-tpf\-trace  \-mfused\-madd  \-mno\-fused\-madd 
687 \&\-mwarn\-framesize  \-mwarn\-dynamicstack  \-mstack\-size \-mstack\-guard\fR
688 .Sp
689 \&\fIScore Options\fR
690 \&\fB\-meb \-mel 
691 \&\-mnhwloop 
692 \&\-muls 
693 \&\-mmac 
694 \&\-mscore5 \-mscore5u \-mscore7 \-mscore7d\fR
695 .Sp
696 \&\fI\s-1SH\s0 Options\fR
697 \&\fB\-m1  \-m2  \-m2e  \-m3  \-m3e 
698 \&\-m4\-nofpu  \-m4\-single\-only  \-m4\-single  \-m4 
699 \&\-m4a\-nofpu \-m4a\-single\-only \-m4a\-single \-m4a \-m4al 
700 \&\-m5\-64media  \-m5\-64media\-nofpu 
701 \&\-m5\-32media  \-m5\-32media\-nofpu 
702 \&\-m5\-compact  \-m5\-compact\-nofpu 
703 \&\-mb  \-ml  \-mdalign  \-mrelax 
704 \&\-mbigtable  \-mfmovd  \-mhitachi \-mrenesas \-mno\-renesas \-mnomacsave 
705 \&\-mieee  \-misize  \-mpadstruct  \-mspace 
706 \&\-mprefergot  \-musermode \-multcost=\fR\fInumber\fR \fB\-mdiv=\fR\fIstrategy\fR 
707 \&\fB\-mdivsi3_libfunc=\fR\fIname\fR  
708 \&\fB\-madjust\-unroll \-mindexed\-addressing \-mgettrcost=\fR\fInumber\fR \fB\-mpt\-fixed 
709  \-minvalid\-symbols\fR
710 .Sp
711 \&\fI\s-1SPARC\s0 Options\fR
712 \&\fB\-mcpu=\fR\fIcpu-type\fR 
713 \&\fB\-mtune=\fR\fIcpu-type\fR 
714 \&\fB\-mcmodel=\fR\fIcode-model\fR 
715 \&\fB\-m32  \-m64  \-mapp\-regs  \-mno\-app\-regs 
716 \&\-mfaster\-structs  \-mno\-faster\-structs 
717 \&\-mfpu  \-mno\-fpu  \-mhard\-float  \-msoft\-float 
718 \&\-mhard\-quad\-float  \-msoft\-quad\-float 
719 \&\-mimpure\-text  \-mno\-impure\-text  \-mlittle\-endian 
720 \&\-mstack\-bias  \-mno\-stack\-bias 
721 \&\-munaligned\-doubles  \-mno\-unaligned\-doubles 
722 \&\-mv8plus  \-mno\-v8plus  \-mvis  \-mno\-vis
723 \&\-threads \-pthreads \-pthread\fR
724 .Sp
725 \&\fISystem V Options\fR
726 \&\fB\-Qy  \-Qn  \-YP,\fR\fIpaths\fR  \fB\-Ym,\fR\fIdir\fR
727 .Sp
728 \&\fITMS320C3x/C4x Options\fR
729 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-mbig  \-msmall  \-mregparm  \-mmemparm 
730 \&\-mfast\-fix  \-mmpyi  \-mbk  \-mti  \-mdp\-isr\-reload 
731 \&\-mrpts=\fR\fIcount\fR  \fB\-mrptb  \-mdb  \-mloop\-unsigned 
732 \&\-mparallel\-insns  \-mparallel\-mpy  \-mpreserve\-float\fR
733 .Sp
734 \&\fIV850 Options\fR
735 \&\fB\-mlong\-calls  \-mno\-long\-calls  \-mep  \-mno\-ep 
736 \&\-mprolog\-function  \-mno\-prolog\-function  \-mspace 
737 \&\-mtda=\fR\fIn\fR  \fB\-msda=\fR\fIn\fR  \fB\-mzda=\fR\fIn\fR 
738 \&\fB\-mapp\-regs  \-mno\-app\-regs 
739 \&\-mdisable\-callt  \-mno\-disable\-callt 
740 \&\-mv850e1 
741 \&\-mv850e 
742 \&\-mv850  \-mbig\-switch\fR
743 .Sp
744 \&\fI\s-1VAX\s0 Options\fR
745 \&\fB\-mg  \-mgnu  \-munix\fR
746 .Sp
747 \&\fIx86\-64 Options\fR
748 See i386 and x86\-64 Options.
749 .Sp
750 \&\fIXstormy16 Options\fR
751 \&\fB\-msim\fR
752 .Sp
753 \&\fIXtensa Options\fR
754 \&\fB\-mconst16 \-mno\-const16 
755 \&\-mfused\-madd  \-mno\-fused\-madd 
756 \&\-mtext\-section\-literals  \-mno\-text\-section\-literals 
757 \&\-mtarget\-align  \-mno\-target\-align 
758 \&\-mlongcalls  \-mno\-longcalls\fR
759 .Sp
760 \&\fIzSeries Options\fR
761 See S/390 and zSeries Options.
762 .IP "\fICode Generation Options\fR" 4
763 .IX Item "Code Generation Options"
764 \&\fB\-fcall\-saved\-\fR\fIreg\fR  \fB\-fcall\-used\-\fR\fIreg\fR 
765 \&\fB\-ffixed\-\fR\fIreg\fR  \fB\-fexceptions 
766 \&\-fnon\-call\-exceptions  \-funwind\-tables 
767 \&\-fasynchronous\-unwind\-tables 
768 \&\-finhibit\-size\-directive  \-finstrument\-functions 
769 \&\-fno\-common  \-fno\-ident 
770 \&\-fpcc\-struct\-return  \-fpic  \-fPIC \-fpie \-fPIE 
771 \&\-fno\-jump\-tables 
772 \&\-freg\-struct\-return  \-fshort\-enums 
773 \&\-fshort\-double  \-fshort\-wchar 
774 \&\-fverbose\-asm  \-fpack\-struct[=\fR\fIn\fR\fB]  \-fstack\-check 
775 \&\-fstack\-limit\-register=\fR\fIreg\fR  \fB\-fstack\-limit\-symbol=\fR\fIsym\fR 
776 \&\fB\-fargument\-alias  \-fargument\-noalias 
777 \&\-fargument\-noalias\-global  \-fargument\-noalias\-anything
778 \&\-fleading\-underscore  \-ftls\-model=\fR\fImodel\fR 
779 \&\fB\-ftrapv  \-fwrapv  \-fbounds\-check 
780 \&\-fvisibility\fR
781 .Sh "Options Controlling the Kind of Output"
782 .IX Subsection "Options Controlling the Kind of Output"
783 Compilation can involve up to four stages: preprocessing, compilation
784 proper, assembly and linking, always in that order.  \s-1GCC\s0 is capable of
785 preprocessing and compiling several files either into several
786 assembler input files, or into one assembler input file; then each
787 assembler input file produces an object file, and linking combines all
788 the object files (those newly compiled, and those specified as input)
789 into an executable file.
790 .PP
791 For any given input file, the file name suffix determines what kind of
792 compilation is done:
793 .IP "\fIfile\fR\fB.c\fR" 4
794 .IX Item "file.c"
795 C source code which must be preprocessed.
796 .IP "\fIfile\fR\fB.i\fR" 4
797 .IX Item "file.i"
798 C source code which should not be preprocessed.
799 .IP "\fIfile\fR\fB.ii\fR" 4
800 .IX Item "file.ii"
801 \&\*(C+ source code which should not be preprocessed.
802 .IP "\fIfile\fR\fB.h\fR" 4
803 .IX Item "file.h"
804 C, or \*(C+ header file to be turned into a precompiled header.
805 .IP "\fIfile\fR\fB.cc\fR" 4
806 .IX Item "file.cc"
807 .PD 0
808 .IP "\fIfile\fR\fB.cp\fR" 4
809 .IX Item "file.cp"
810 .IP "\fIfile\fR\fB.cxx\fR" 4
811 .IX Item "file.cxx"
812 .IP "\fIfile\fR\fB.cpp\fR" 4
813 .IX Item "file.cpp"
814 .IP "\fIfile\fR\fB.CPP\fR" 4
815 .IX Item "file.CPP"
816 .IP "\fIfile\fR\fB.c++\fR" 4
817 .IX Item "file.c++"
818 .IP "\fIfile\fR\fB.C\fR" 4
819 .IX Item "file.C"
820 .PD
821 \&\*(C+ source code which must be preprocessed.  Note that in \fB.cxx\fR,
822 the last two letters must both be literally \fBx\fR.  Likewise,
823 \&\fB.C\fR refers to a literal capital C.
824 .IP "\fIfile\fR\fB.hh\fR" 4
825 .IX Item "file.hh"
826 .PD 0
827 .IP "\fIfile\fR\fB.H\fR" 4
828 .IX Item "file.H"
829 .PD
830 \&\*(C+ header file to be turned into a precompiled header.
831 .IP "\fIfile\fR\fB.f\fR" 4
832 .IX Item "file.f"
833 .PD 0
834 .IP "\fIfile\fR\fB.for\fR" 4
835 .IX Item "file.for"
836 .IP "\fIfile\fR\fB.FOR\fR" 4
837 .IX Item "file.FOR"
838 .PD
839 Fixed form Fortran source code which should not be preprocessed.
840 .IP "\fIfile\fR\fB.F\fR" 4
841 .IX Item "file.F"
842 .PD 0
843 .IP "\fIfile\fR\fB.fpp\fR" 4
844 .IX Item "file.fpp"
845 .IP "\fIfile\fR\fB.FPP\fR" 4
846 .IX Item "file.FPP"
847 .PD
848 Fixed form Fortran source code which must be preprocessed (with the traditional
849 preprocessor).
850 .IP "\fIfile\fR\fB.f90\fR" 4
851 .IX Item "file.f90"
852 .PD 0
853 .IP "\fIfile\fR\fB.f95\fR" 4
854 .IX Item "file.f95"
855 .PD
856 Free form Fortran source code which should not be preprocessed.
857 .IP "\fIfile\fR\fB.F90\fR" 4
858 .IX Item "file.F90"
859 .PD 0
860 .IP "\fIfile\fR\fB.F95\fR" 4
861 .IX Item "file.F95"
862 .PD
863 Free form Fortran source code which must be preprocessed (with the
864 traditional preprocessor).
865 .IP "\fIfile\fR\fB.ads\fR" 4
866 .IX Item "file.ads"
867 Ada source code file which contains a library unit declaration (a
868 declaration of a package, subprogram, or generic, or a generic
869 instantiation), or a library unit renaming declaration (a package,
870 generic, or subprogram renaming declaration).  Such files are also
871 called \fIspecs\fR.
872 .IP "\fIfile\fR\fB.adb\fR" 4
873 .IX Item "file.adb"
874 Ada source code file containing a library unit body (a subprogram or
875 package body).  Such files are also called \fIbodies\fR.
876 .IP "\fIfile\fR\fB.s\fR" 4
877 .IX Item "file.s"
878 Assembler code.
879 .IP "\fIfile\fR\fB.S\fR" 4
880 .IX Item "file.S"
881 Assembler code which must be preprocessed.
882 .IP "\fIother\fR" 4
883 .IX Item "other"
884 An object file to be fed straight into linking.
885 Any file name with no recognized suffix is treated this way.
886 .PP
887 You can specify the input language explicitly with the \fB\-x\fR option:
888 .IP "\fB\-x\fR \fIlanguage\fR" 4
889 .IX Item "-x language"
890 Specify explicitly the \fIlanguage\fR for the following input files
891 (rather than letting the compiler choose a default based on the file
892 name suffix).  This option applies to all following input files until
893 the next \fB\-x\fR option.  Possible values for \fIlanguage\fR are:
894 .Sp
895 .Vb 9
896 \&        c  c-header  c-cpp-output
897 \&        c++  c++-header  c++-cpp-output
898 \&        assembler  assembler-with-cpp
899 \&        ada
900 \&        f95  f95-cpp-input
901 \&        java
902 \&        treelang
903 .Ve
904 .IP "\fB\-x none\fR" 4
905 .IX Item "-x none"
906 Turn off any specification of a language, so that subsequent files are
907 handled according to their file name suffixes (as they are if \fB\-x\fR
908 has not been used at all).
909 .IP "\fB\-pass\-exit\-codes\fR" 4
910 .IX Item "-pass-exit-codes"
911 Normally the \fBgcc\fR program will exit with the code of 1 if any
912 phase of the compiler returns a non-success return code.  If you specify
913 \&\fB\-pass\-exit\-codes\fR, the \fBgcc\fR program will instead return with
914 numerically highest error produced by any phase that returned an error
915 indication.  The C, \*(C+, and Fortran frontends return 4, if an internal
916 compiler error is encountered.
917 .PP
918 If you only want some of the stages of compilation, you can use
919 \&\fB\-x\fR (or filename suffixes) to tell \fBgcc\fR where to start, and
920 one of the options \fB\-c\fR, \fB\-S\fR, or \fB\-E\fR to say where
921 \&\fBgcc\fR is to stop.  Note that some combinations (for example,
922 \&\fB\-x cpp-output \-E\fR) instruct \fBgcc\fR to do nothing at all.
923 .IP "\fB\-c\fR" 4
924 .IX Item "-c"
925 Compile or assemble the source files, but do not link.  The linking
926 stage simply is not done.  The ultimate output is in the form of an
927 object file for each source file.
928 .Sp
929 By default, the object file name for a source file is made by replacing
930 the suffix \fB.c\fR, \fB.i\fR, \fB.s\fR, etc., with \fB.o\fR.
931 .Sp
932 Unrecognized input files, not requiring compilation or assembly, are
933 ignored.
934 .IP "\fB\-S\fR" 4
935 .IX Item "-S"
936 Stop after the stage of compilation proper; do not assemble.  The output
937 is in the form of an assembler code file for each non-assembler input
938 file specified.
939 .Sp
940 By default, the assembler file name for a source file is made by
941 replacing the suffix \fB.c\fR, \fB.i\fR, etc., with \fB.s\fR.
942 .Sp
943 Input files that don't require compilation are ignored.
944 .IP "\fB\-E\fR" 4
945 .IX Item "-E"
946 Stop after the preprocessing stage; do not run the compiler proper.  The
947 output is in the form of preprocessed source code, which is sent to the
948 standard output.
949 .Sp
950 Input files which don't require preprocessing are ignored.
951 .IP "\fB\-o\fR \fIfile\fR" 4
952 .IX Item "-o file"
953 Place output in file \fIfile\fR.  This applies regardless to whatever
954 sort of output is being produced, whether it be an executable file,
955 an object file, an assembler file or preprocessed C code.
956 .Sp
957 If \fB\-o\fR is not specified, the default is to put an executable
958 file in \fIa.out\fR, the object file for
959 \&\fI\fIsource\fI.\fIsuffix\fI\fR in \fI\fIsource\fI.o\fR, its
960 assembler file in \fI\fIsource\fI.s\fR, a precompiled header file in
961 \&\fI\fIsource\fI.\fIsuffix\fI.gch\fR, and all preprocessed C source on
962 standard output.
963 .IP "\fB\-v\fR" 4
964 .IX Item "-v"
965 Print (on standard error output) the commands executed to run the stages
966 of compilation.  Also print the version number of the compiler driver
967 program and of the preprocessor and the compiler proper.
968 .IP "\fB\-###\fR" 4
969 .IX Item "-###"
970 Like \fB\-v\fR except the commands are not executed and all command
971 arguments are quoted.  This is useful for shell scripts to capture the
972 driver-generated command lines.
973 .IP "\fB\-pipe\fR" 4
974 .IX Item "-pipe"
975 Use pipes rather than temporary files for communication between the
976 various stages of compilation.  This fails to work on some systems where
977 the assembler is unable to read from a pipe; but the \s-1GNU\s0 assembler has
978 no trouble.
979 .IP "\fB\-combine\fR" 4
980 .IX Item "-combine"
981 If you are compiling multiple source files, this option tells the driver
982 to pass all the source files to the compiler at once (for those
983 languages for which the compiler can handle this).  This will allow
984 intermodule analysis (\s-1IMA\s0) to be performed by the compiler.  Currently the only
985 language for which this is supported is C.  If you pass source files for
986 multiple languages to the driver, using this option, the driver will invoke
987 the compiler(s) that support \s-1IMA\s0 once each, passing each compiler all the
988 source files appropriate for it.  For those languages that do not support
989 \&\s-1IMA\s0 this option will be ignored, and the compiler will be invoked once for
990 each source file in that language.  If you use this option in conjunction
991 with \fB\-save\-temps\fR, the compiler will generate multiple
992 pre-processed files
993 (one for each source file), but only one (combined) \fI.o\fR or
994 \&\fI.s\fR file.
995 .IP "\fB\-\-help\fR" 4
996 .IX Item "--help"
997 Print (on the standard output) a description of the command line options
998 understood by \fBgcc\fR.  If the \fB\-v\fR option is also specified
999 then \fB\-\-help\fR will also be passed on to the various processes
1000 invoked by \fBgcc\fR, so that they can display the command line options
1001 they accept.  If the \fB\-Wextra\fR option is also specified then command
1002 line options which have no documentation associated with them will also
1003 be displayed.
1004 .IP "\fB\-\-target\-help\fR" 4
1005 .IX Item "--target-help"
1006 Print (on the standard output) a description of target specific command
1007 line options for each tool.
1008 .IP "\fB\-\-version\fR" 4
1009 .IX Item "--version"
1010 Display the version number and copyrights of the invoked \s-1GCC\s0.
1011 .IP "\fB@\fR\fIfile\fR" 4
1012 .IX Item "@file"
1013 Read command-line options from \fIfile\fR.  The options read are
1014 inserted in place of the original @\fIfile\fR option.  If \fIfile\fR
1015 does not exist, or cannot be read, then the option will be treated
1016 literally, and not removed.  
1017 .Sp
1018 Options in \fIfile\fR are separated by whitespace.  A whitespace
1019 character may be included in an option by surrounding the entire
1020 option in either single or double quotes.  Any character (including a
1021 backslash) may be included by prefixing the character to be included
1022 with a backslash.  The \fIfile\fR may itself contain additional
1023 @\fIfile\fR options; any such options will be processed recursively.
1024 .Sh "Compiling \*(C+ Programs"
1025 .IX Subsection "Compiling  Programs"
1026 \&\*(C+ source files conventionally use one of the suffixes \fB.C\fR,
1027 \&\fB.cc\fR, \fB.cpp\fR, \fB.CPP\fR, \fB.c++\fR, \fB.cp\fR, or
1028 \&\fB.cxx\fR; \*(C+ header files often use \fB.hh\fR or \fB.H\fR; and
1029 preprocessed \*(C+ files use the suffix \fB.ii\fR.  \s-1GCC\s0 recognizes
1030 files with these names and compiles them as \*(C+ programs even if you
1031 call the compiler the same way as for compiling C programs (usually
1032 with the name \fBgcc\fR).
1033 .PP
1034 However, the use of \fBgcc\fR does not add the \*(C+ library.
1035 \&\fBg++\fR is a program that calls \s-1GCC\s0 and treats \fB.c\fR,
1036 \&\fB.h\fR and \fB.i\fR files as \*(C+ source files instead of C source
1037 files unless \fB\-x\fR is used, and automatically specifies linking
1038 against the \*(C+ library.  This program is also useful when
1039 precompiling a C header file with a \fB.h\fR extension for use in \*(C+
1040 compilations.  On many systems, \fBg++\fR is also installed with
1041 the name \fBc++\fR.
1042 .PP
1043 When you compile \*(C+ programs, you may specify many of the same
1044 command-line options that you use for compiling programs in any
1045 language; or command-line options meaningful for C and related
1046 languages; or options that are meaningful only for \*(C+ programs.
1047 .Sh "Options Controlling C Dialect"
1048 .IX Subsection "Options Controlling C Dialect"
1049 The following options control the dialect of C (or languages derived
1050 from C, such as \*(C+) that the compiler accepts:
1051 .IP "\fB\-ansi\fR" 4
1052 .IX Item "-ansi"
1053 In C mode, support all \s-1ISO\s0 C90 programs.  In \*(C+ mode,
1054 remove \s-1GNU\s0 extensions that conflict with \s-1ISO\s0 \*(C+.
1055 .Sp
1056 This turns off certain features of \s-1GCC\s0 that are incompatible with \s-1ISO\s0
1057 C90 (when compiling C code), or of standard \*(C+ (when compiling \*(C+ code),
1058 such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, and
1059 predefined macros such as \f(CW\*(C`unix\*(C'\fR and \f(CW\*(C`vax\*(C'\fR that identify the
1060 type of system you are using.  It also enables the undesirable and
1061 rarely used \s-1ISO\s0 trigraph feature.  For the C compiler,
1062 it disables recognition of \*(C+ style \fB//\fR comments as well as
1063 the \f(CW\*(C`inline\*(C'\fR keyword.
1064 .Sp
1065 The alternate keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_extension_\|_\*(C'\fR,
1066 \&\f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR continue to work despite
1067 \&\fB\-ansi\fR.  You would not want to use them in an \s-1ISO\s0 C program, of
1068 course, but it is useful to put them in header files that might be included
1069 in compilations done with \fB\-ansi\fR.  Alternate predefined macros
1070 such as \f(CW\*(C`_\|_unix_\|_\*(C'\fR and \f(CW\*(C`_\|_vax_\|_\*(C'\fR are also available, with or
1071 without \fB\-ansi\fR.
1072 .Sp
1073 The \fB\-ansi\fR option does not cause non-ISO programs to be
1074 rejected gratuitously.  For that, \fB\-pedantic\fR is required in
1075 addition to \fB\-ansi\fR.  
1076 .Sp
1077 The macro \f(CW\*(C`_\|_STRICT_ANSI_\|_\*(C'\fR is predefined when the \fB\-ansi\fR
1078 option is used.  Some header files may notice this macro and refrain
1079 from declaring certain functions or defining certain macros that the
1080 \&\s-1ISO\s0 standard doesn't call for; this is to avoid interfering with any
1081 programs that might use these names for other things.
1082 .Sp
1083 Functions which would normally be built in but do not have semantics
1084 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
1085 functions with \fB\-ansi\fR is used.  
1086 .IP "\fB\-std=\fR" 4
1087 .IX Item "-std="
1088 Determine the language standard.  This option is currently only
1089 supported when compiling C or \*(C+.  A value for this option must be
1090 provided; possible values are
1091 .RS 4
1092 .IP "\fBc89\fR" 4
1093 .IX Item "c89"
1094 .PD 0
1095 .IP "\fBiso9899:1990\fR" 4
1096 .IX Item "iso9899:1990"
1097 .PD
1098 \&\s-1ISO\s0 C90 (same as \fB\-ansi\fR).
1099 .IP "\fBiso9899:199409\fR" 4
1100 .IX Item "iso9899:199409"
1101 \&\s-1ISO\s0 C90 as modified in amendment 1.
1102 .IP "\fBc99\fR" 4
1103 .IX Item "c99"
1104 .PD 0
1105 .IP "\fBc9x\fR" 4
1106 .IX Item "c9x"
1107 .IP "\fBiso9899:1999\fR" 4
1108 .IX Item "iso9899:1999"
1109 .IP "\fBiso9899:199x\fR" 4
1110 .IX Item "iso9899:199x"
1111 .PD
1112 \&\s-1ISO\s0 C99.  Note that this standard is not yet fully supported; see
1113 <\fBhttp://gcc.gnu.org/gcc\-4.2/c99status.html\fR> for more information.  The
1114 names \fBc9x\fR and \fBiso9899:199x\fR are deprecated.
1115 .IP "\fBgnu89\fR" 4
1116 .IX Item "gnu89"
1117 Default, \s-1ISO\s0 C90 plus \s-1GNU\s0 extensions (including some C99 features).
1118 .IP "\fBgnu99\fR" 4
1119 .IX Item "gnu99"
1120 .PD 0
1121 .IP "\fBgnu9x\fR" 4
1122 .IX Item "gnu9x"
1123 .PD
1124 \&\s-1ISO\s0 C99 plus \s-1GNU\s0 extensions.  When \s-1ISO\s0 C99 is fully implemented in \s-1GCC\s0,
1125 this will become the default.  The name \fBgnu9x\fR is deprecated.
1126 .IP "\fBc++98\fR" 4
1127 .IX Item "c++98"
1128 The 1998 \s-1ISO\s0 \*(C+ standard plus amendments.
1129 .IP "\fBgnu++98\fR" 4
1130 .IX Item "gnu++98"
1131 The same as \fB\-std=c++98\fR plus \s-1GNU\s0 extensions.  This is the
1132 default for \*(C+ code.
1133 .RE
1134 .RS 4
1135 .Sp
1136 Even when this option is not specified, you can still use some of the
1137 features of newer standards in so far as they do not conflict with
1138 previous C standards.  For example, you may use \f(CW\*(C`_\|_restrict_\|_\*(C'\fR even
1139 when \fB\-std=c99\fR is not specified.
1140 .Sp
1141 The \fB\-std\fR options specifying some version of \s-1ISO\s0 C have the same
1142 effects as \fB\-ansi\fR, except that features that were not in \s-1ISO\s0 C90
1143 but are in the specified version (for example, \fB//\fR comments and
1144 the \f(CW\*(C`inline\*(C'\fR keyword in \s-1ISO\s0 C99) are not disabled.
1145 .RE
1146 .IP "\fB\-fgnu89\-inline\fR" 4
1147 .IX Item "-fgnu89-inline"
1148 The option \fB\-fgnu89\-inline\fR tells \s-1GCC\s0 to use the traditional
1149 \&\s-1GNU\s0 semantics for \f(CW\*(C`inline\*(C'\fR functions when in C99 mode.
1150   Using this
1151 option is roughly equivalent to adding the \f(CW\*(C`gnu_inline\*(C'\fR function
1152 attribute to all inline functions.
1153 .Sp
1154 This option is accepted by \s-1GCC\s0 versions 4.1.3 and up.  In \s-1GCC\s0 versions
1155 prior to 4.3, C99 inline semantics are not supported, and thus this
1156 option is effectively assumed to be present regardless of whether or not
1157 it is specified; the only effect of specifying it explicitly is to
1158 disable warnings about using inline functions in C99 mode.  Likewise,
1159 the option \fB\-fno\-gnu89\-inline\fR is not supported in versions of
1160 \&\s-1GCC\s0 before 4.3.  It will be supported only in C99 or gnu99 mode, not in
1161 C89 or gnu89 mode.
1162 .Sp
1163 The preprocesor macros \f(CW\*(C`_\|_GNUC_GNU_INLINE_\|_\*(C'\fR and
1164 \&\f(CW\*(C`_\|_GNUC_STDC_INLINE_\|_\*(C'\fR may be used to check which semantics are
1165 in effect for \f(CW\*(C`inline\*(C'\fR functions.  
1166 .IP "\fB\-aux\-info\fR \fIfilename\fR" 4
1167 .IX Item "-aux-info filename"
1168 Output to the given filename prototyped declarations for all functions
1169 declared and/or defined in a translation unit, including those in header
1170 files.  This option is silently ignored in any language other than C.
1171 .Sp
1172 Besides declarations, the file indicates, in comments, the origin of
1173 each declaration (source file and line), whether the declaration was
1174 implicit, prototyped or unprototyped (\fBI\fR, \fBN\fR for new or
1175 \&\fBO\fR for old, respectively, in the first character after the line
1176 number and the colon), and whether it came from a declaration or a
1177 definition (\fBC\fR or \fBF\fR, respectively, in the following
1178 character).  In the case of function definitions, a K&R\-style list of
1179 arguments followed by their declarations is also provided, inside
1180 comments, after the declaration.
1181 .IP "\fB\-fno\-asm\fR" 4
1182 .IX Item "-fno-asm"
1183 Do not recognize \f(CW\*(C`asm\*(C'\fR, \f(CW\*(C`inline\*(C'\fR or \f(CW\*(C`typeof\*(C'\fR as a
1184 keyword, so that code can use these words as identifiers.  You can use
1185 the keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR
1186 instead.  \fB\-ansi\fR implies \fB\-fno\-asm\fR.
1187 .Sp
1188 In \*(C+, this switch only affects the \f(CW\*(C`typeof\*(C'\fR keyword, since
1189 \&\f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`inline\*(C'\fR are standard keywords.  You may want to
1190 use the \fB\-fno\-gnu\-keywords\fR flag instead, which has the same
1191 effect.  In C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this
1192 switch only affects the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, since
1193 \&\f(CW\*(C`inline\*(C'\fR is a standard keyword in \s-1ISO\s0 C99.
1194 .IP "\fB\-fno\-builtin\fR" 4
1195 .IX Item "-fno-builtin"
1196 .PD 0
1197 .IP "\fB\-fno\-builtin\-\fR\fIfunction\fR" 4
1198 .IX Item "-fno-builtin-function"
1199 .PD
1200 Don't recognize built-in functions that do not begin with
1201 \&\fB_\|_builtin_\fR as prefix.  
1202 .Sp
1203 \&\s-1GCC\s0 normally generates special code to handle certain built-in functions
1204 more efficiently; for instance, calls to \f(CW\*(C`alloca\*(C'\fR may become single
1205 instructions that adjust the stack directly, and calls to \f(CW\*(C`memcpy\*(C'\fR
1206 may become inline copy loops.  The resulting code is often both smaller
1207 and faster, but since the function calls no longer appear as such, you
1208 cannot set a breakpoint on those calls, nor can you change the behavior
1209 of the functions by linking with a different library.  In addition,
1210 when a function is recognized as a built-in function, \s-1GCC\s0 may use
1211 information about that function to warn about problems with calls to
1212 that function, or to generate more efficient code, even if the
1213 resulting code still contains calls to that function.  For example,
1214 warnings are given with \fB\-Wformat\fR for bad calls to
1215 \&\f(CW\*(C`printf\*(C'\fR, when \f(CW\*(C`printf\*(C'\fR is built in, and \f(CW\*(C`strlen\*(C'\fR is
1216 known not to modify global memory.
1217 .Sp
1218 With the \fB\-fno\-builtin\-\fR\fIfunction\fR option
1219 only the built-in function \fIfunction\fR is
1220 disabled.  \fIfunction\fR must not begin with \fB_\|_builtin_\fR.  If a
1221 function is named this is not built-in in this version of \s-1GCC\s0, this
1222 option is ignored.  There is no corresponding
1223 \&\fB\-fbuiltin\-\fR\fIfunction\fR option; if you wish to enable
1224 built-in functions selectively when using \fB\-fno\-builtin\fR or
1225 \&\fB\-ffreestanding\fR, you may define macros such as:
1226 .Sp
1227 .Vb 2
1228 \&        #define abs(n)          __builtin_abs ((n))
1229 \&        #define strcpy(d, s)    __builtin_strcpy ((d), (s))
1230 .Ve
1231 .IP "\fB\-fhosted\fR" 4
1232 .IX Item "-fhosted"
1233 Assert that compilation takes place in a hosted environment.  This implies
1234 \&\fB\-fbuiltin\fR.  A hosted environment is one in which the
1235 entire standard library is available, and in which \f(CW\*(C`main\*(C'\fR has a return
1236 type of \f(CW\*(C`int\*(C'\fR.  Examples are nearly everything except a kernel.
1237 This is equivalent to \fB\-fno\-freestanding\fR.
1238 .IP "\fB\-ffreestanding\fR" 4
1239 .IX Item "-ffreestanding"
1240 Assert that compilation takes place in a freestanding environment.  This
1241 implies \fB\-fno\-builtin\fR.  A freestanding environment
1242 is one in which the standard library may not exist, and program startup may
1243 not necessarily be at \f(CW\*(C`main\*(C'\fR.  The most obvious example is an \s-1OS\s0 kernel.
1244 This is equivalent to \fB\-fno\-hosted\fR.
1245 .IP "\fB\-fopenmp\fR" 4
1246 .IX Item "-fopenmp"
1247 Enable handling of OpenMP directives \f(CW\*(C`#pragma omp\*(C'\fR in C/\*(C+ and
1248 \&\f(CW\*(C`!$omp\*(C'\fR in Fortran.  When \fB\-fopenmp\fR is specified, the
1249 compiler generates parallel code according to the OpenMP Application
1250 Program Interface v2.5 <\fBhttp://www.openmp.org/\fR>.
1251 .IP "\fB\-fms\-extensions\fR" 4
1252 .IX Item "-fms-extensions"
1253 Accept some non-standard constructs used in Microsoft header files.
1254 .Sp
1255 Some cases of unnamed fields in structures and unions are only
1256 accepted with this option.  
1257 .IP "\fB\-trigraphs\fR" 4
1258 .IX Item "-trigraphs"
1259 Support \s-1ISO\s0 C trigraphs.  The \fB\-ansi\fR option (and \fB\-std\fR
1260 options for strict \s-1ISO\s0 C conformance) implies \fB\-trigraphs\fR.
1261 .IP "\fB\-no\-integrated\-cpp\fR" 4
1262 .IX Item "-no-integrated-cpp"
1263 Performs a compilation in two passes: preprocessing and compiling.  This
1264 option allows a user supplied \*(L"cc1\*(R", \*(L"cc1plus\*(R", or \*(L"cc1obj\*(R" via the
1265 \&\fB\-B\fR option.  The user supplied compilation step can then add in
1266 an additional preprocessing step after normal preprocessing but before
1267 compiling.  The default is to use the integrated cpp (internal cpp)
1268 .Sp
1269 The semantics of this option will change if \*(L"cc1\*(R", \*(L"cc1plus\*(R", and
1270 \&\*(L"cc1obj\*(R" are merged.
1271 .IP "\fB\-traditional\fR" 4
1272 .IX Item "-traditional"
1273 .PD 0
1274 .IP "\fB\-traditional\-cpp\fR" 4
1275 .IX Item "-traditional-cpp"
1276 .PD
1277 Formerly, these options caused \s-1GCC\s0 to attempt to emulate a pre-standard
1278 C compiler.  They are now only supported with the \fB\-E\fR switch.
1279 The preprocessor continues to support a pre-standard mode.  See the \s-1GNU\s0
1280 \&\s-1CPP\s0 manual for details.
1281 .IP "\fB\-fcond\-mismatch\fR" 4
1282 .IX Item "-fcond-mismatch"
1283 Allow conditional expressions with mismatched types in the second and
1284 third arguments.  The value of such an expression is void.  This option
1285 is not supported for \*(C+.
1286 .IP "\fB\-funsigned\-char\fR" 4
1287 .IX Item "-funsigned-char"
1288 Let the type \f(CW\*(C`char\*(C'\fR be unsigned, like \f(CW\*(C`unsigned char\*(C'\fR.
1289 .Sp
1290 Each kind of machine has a default for what \f(CW\*(C`char\*(C'\fR should
1291 be.  It is either like \f(CW\*(C`unsigned char\*(C'\fR by default or like
1292 \&\f(CW\*(C`signed char\*(C'\fR by default.
1293 .Sp
1294 Ideally, a portable program should always use \f(CW\*(C`signed char\*(C'\fR or
1295 \&\f(CW\*(C`unsigned char\*(C'\fR when it depends on the signedness of an object.
1296 But many programs have been written to use plain \f(CW\*(C`char\*(C'\fR and
1297 expect it to be signed, or expect it to be unsigned, depending on the
1298 machines they were written for.  This option, and its inverse, let you
1299 make such a program work with the opposite default.
1300 .Sp
1301 The type \f(CW\*(C`char\*(C'\fR is always a distinct type from each of
1302 \&\f(CW\*(C`signed char\*(C'\fR or \f(CW\*(C`unsigned char\*(C'\fR, even though its behavior
1303 is always just like one of those two.
1304 .IP "\fB\-fsigned\-char\fR" 4
1305 .IX Item "-fsigned-char"
1306 Let the type \f(CW\*(C`char\*(C'\fR be signed, like \f(CW\*(C`signed char\*(C'\fR.
1307 .Sp
1308 Note that this is equivalent to \fB\-fno\-unsigned\-char\fR, which is
1309 the negative form of \fB\-funsigned\-char\fR.  Likewise, the option
1310 \&\fB\-fno\-signed\-char\fR is equivalent to \fB\-funsigned\-char\fR.
1311 .IP "\fB\-fsigned\-bitfields\fR" 4
1312 .IX Item "-fsigned-bitfields"
1313 .PD 0
1314 .IP "\fB\-funsigned\-bitfields\fR" 4
1315 .IX Item "-funsigned-bitfields"
1316 .IP "\fB\-fno\-signed\-bitfields\fR" 4
1317 .IX Item "-fno-signed-bitfields"
1318 .IP "\fB\-fno\-unsigned\-bitfields\fR" 4
1319 .IX Item "-fno-unsigned-bitfields"
1320 .PD
1321 These options control whether a bit-field is signed or unsigned, when the
1322 declaration does not use either \f(CW\*(C`signed\*(C'\fR or \f(CW\*(C`unsigned\*(C'\fR.  By
1323 default, such a bit-field is signed, because this is consistent: the
1324 basic integer types such as \f(CW\*(C`int\*(C'\fR are signed types.
1325 .Sh "Options Controlling \*(C+ Dialect"
1326 .IX Subsection "Options Controlling  Dialect"
1327 This section describes the command-line options that are only meaningful
1328 for \*(C+ programs; but you can also use most of the \s-1GNU\s0 compiler options
1329 regardless of what language your program is in.  For example, you
1330 might compile a file \f(CW\*(C`firstClass.C\*(C'\fR like this:
1331 .PP
1332 .Vb 1
1333 \&        g++ -g -frepo -O -c firstClass.C
1334 .Ve
1335 .PP
1336 In this example, only \fB\-frepo\fR is an option meant
1337 only for \*(C+ programs; you can use the other options with any
1338 language supported by \s-1GCC\s0.
1339 .PP
1340 Here is a list of options that are \fIonly\fR for compiling \*(C+ programs:
1341 .IP "\fB\-fabi\-version=\fR\fIn\fR" 4
1342 .IX Item "-fabi-version=n"
1343 Use version \fIn\fR of the \*(C+ \s-1ABI\s0.  Version 2 is the version of the
1344 \&\*(C+ \s-1ABI\s0 that first appeared in G++ 3.4.  Version 1 is the version of
1345 the \*(C+ \s-1ABI\s0 that first appeared in G++ 3.2.  Version 0 will always be
1346 the version that conforms most closely to the \*(C+ \s-1ABI\s0 specification.
1347 Therefore, the \s-1ABI\s0 obtained using version 0 will change as \s-1ABI\s0 bugs
1348 are fixed.
1349 .Sp
1350 The default is version 2.
1351 .IP "\fB\-fno\-access\-control\fR" 4
1352 .IX Item "-fno-access-control"
1353 Turn off all access checking.  This switch is mainly useful for working
1354 around bugs in the access control code.
1355 .IP "\fB\-fcheck\-new\fR" 4
1356 .IX Item "-fcheck-new"
1357 Check that the pointer returned by \f(CW\*(C`operator new\*(C'\fR is non-null
1358 before attempting to modify the storage allocated.  This check is
1359 normally unnecessary because the \*(C+ standard specifies that
1360 \&\f(CW\*(C`operator new\*(C'\fR will only return \f(CW0\fR if it is declared
1361 \&\fB\f(BIthrow()\fB\fR, in which case the compiler will always check the
1362 return value even without this option.  In all other cases, when
1363 \&\f(CW\*(C`operator new\*(C'\fR has a non-empty exception specification, memory
1364 exhaustion is signalled by throwing \f(CW\*(C`std::bad_alloc\*(C'\fR.  See also
1365 \&\fBnew (nothrow)\fR.
1366 .IP "\fB\-fconserve\-space\fR" 4
1367 .IX Item "-fconserve-space"
1368 Put uninitialized or runtime-initialized global variables into the
1369 common segment, as C does.  This saves space in the executable at the
1370 cost of not diagnosing duplicate definitions.  If you compile with this
1371 flag and your program mysteriously crashes after \f(CW\*(C`main()\*(C'\fR has
1372 completed, you may have an object that is being destroyed twice because
1373 two definitions were merged.
1374 .Sp
1375 This option is no longer useful on most targets, now that support has
1376 been added for putting variables into \s-1BSS\s0 without making them common.
1377 .IP "\fB\-ffriend\-injection\fR" 4
1378 .IX Item "-ffriend-injection"
1379 Inject friend functions into the enclosing namespace, so that they are
1380 visible outside the scope of the class in which they are declared.
1381 Friend functions were documented to work this way in the old Annotated
1382 \&\*(C+ Reference Manual, and versions of G++ before 4.1 always worked
1383 that way.  However, in \s-1ISO\s0 \*(C+ a friend function which is not declared
1384 in an enclosing scope can only be found using argument dependent
1385 lookup.  This option causes friends to be injected as they were in
1386 earlier releases.
1387 .Sp
1388 This option is for compatibility, and may be removed in a future
1389 release of G++.
1390 .IP "\fB\-fno\-elide\-constructors\fR" 4
1391 .IX Item "-fno-elide-constructors"
1392 The \*(C+ standard allows an implementation to omit creating a temporary
1393 which is only used to initialize another object of the same type.
1394 Specifying this option disables that optimization, and forces G++ to
1395 call the copy constructor in all cases.
1396 .IP "\fB\-fno\-enforce\-eh\-specs\fR" 4
1397 .IX Item "-fno-enforce-eh-specs"
1398 Don't generate code to check for violation of exception specifications
1399 at runtime.  This option violates the \*(C+ standard, but may be useful
1400 for reducing code size in production builds, much like defining
1401 \&\fB\s-1NDEBUG\s0\fR.  This does not give user code permission to throw
1402 exceptions in violation of the exception specifications; the compiler
1403 will still optimize based on the specifications, so throwing an
1404 unexpected exception will result in undefined behavior.
1405 .IP "\fB\-ffor\-scope\fR" 4
1406 .IX Item "-ffor-scope"
1407 .PD 0
1408 .IP "\fB\-fno\-for\-scope\fR" 4
1409 .IX Item "-fno-for-scope"
1410 .PD
1411 If \fB\-ffor\-scope\fR is specified, the scope of variables declared in
1412 a \fIfor-init-statement\fR is limited to the \fBfor\fR loop itself,
1413 as specified by the \*(C+ standard.
1414 If \fB\-fno\-for\-scope\fR is specified, the scope of variables declared in
1415 a \fIfor-init-statement\fR extends to the end of the enclosing scope,
1416 as was the case in old versions of G++, and other (traditional)
1417 implementations of \*(C+.
1418 .Sp
1419 The default if neither flag is given to follow the standard,
1420 but to allow and give a warning for old-style code that would
1421 otherwise be invalid, or have different behavior.
1422 .IP "\fB\-fno\-gnu\-keywords\fR" 4
1423 .IX Item "-fno-gnu-keywords"
1424 Do not recognize \f(CW\*(C`typeof\*(C'\fR as a keyword, so that code can use this
1425 word as an identifier.  You can use the keyword \f(CW\*(C`_\|_typeof_\|_\*(C'\fR instead.
1426 \&\fB\-ansi\fR implies \fB\-fno\-gnu\-keywords\fR.
1427 .IP "\fB\-fno\-implicit\-templates\fR" 4
1428 .IX Item "-fno-implicit-templates"
1429 Never emit code for non-inline templates which are instantiated
1430 implicitly (i.e. by use); only emit code for explicit instantiations.
1431 .IP "\fB\-fno\-implicit\-inline\-templates\fR" 4
1432 .IX Item "-fno-implicit-inline-templates"
1433 Don't emit code for implicit instantiations of inline templates, either.
1434 The default is to handle inlines differently so that compiles with and
1435 without optimization will need the same set of explicit instantiations.
1436 .IP "\fB\-fno\-implement\-inlines\fR" 4
1437 .IX Item "-fno-implement-inlines"
1438 To save space, do not emit out-of-line copies of inline functions
1439 controlled by \fB#pragma implementation\fR.  This will cause linker
1440 errors if these functions are not inlined everywhere they are called.
1441 .IP "\fB\-fms\-extensions\fR" 4
1442 .IX Item "-fms-extensions"
1443 Disable pedantic warnings about constructs used in \s-1MFC\s0, such as implicit
1444 int and getting a pointer to member function via non-standard syntax.
1445 .IP "\fB\-fno\-nonansi\-builtins\fR" 4
1446 .IX Item "-fno-nonansi-builtins"
1447 Disable built-in declarations of functions that are not mandated by
1448 \&\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,
1449 \&\f(CW\*(C`index\*(C'\fR, \f(CW\*(C`bzero\*(C'\fR, \f(CW\*(C`conjf\*(C'\fR, and other related functions.
1450 .IP "\fB\-fno\-operator\-names\fR" 4
1451 .IX Item "-fno-operator-names"
1452 Do not treat the operator name keywords \f(CW\*(C`and\*(C'\fR, \f(CW\*(C`bitand\*(C'\fR,
1453 \&\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
1454 synonyms as keywords.
1455 .IP "\fB\-fno\-optional\-diags\fR" 4
1456 .IX Item "-fno-optional-diags"
1457 Disable diagnostics that the standard says a compiler does not need to
1458 issue.  Currently, the only such diagnostic issued by G++ is the one for
1459 a name having multiple meanings within a class.
1460 .IP "\fB\-fpermissive\fR" 4
1461 .IX Item "-fpermissive"
1462 Downgrade some diagnostics about nonconformant code from errors to
1463 warnings.  Thus, using \fB\-fpermissive\fR will allow some
1464 nonconforming code to compile.
1465 .IP "\fB\-frepo\fR" 4
1466 .IX Item "-frepo"
1467 Enable automatic template instantiation at link time.  This option also
1468 implies \fB\-fno\-implicit\-templates\fR.  
1469 .IP "\fB\-fno\-rtti\fR" 4
1470 .IX Item "-fno-rtti"
1471 Disable generation of information about every class with virtual
1472 functions for use by the \*(C+ runtime type identification features
1473 (\fBdynamic_cast\fR and \fBtypeid\fR).  If you don't use those parts
1474 of the language, you can save some space by using this flag.  Note that
1475 exception handling uses the same information, but it will generate it as
1476 needed. The \fBdynamic_cast\fR operator can still be used for casts that
1477 do not require runtime type information, i.e. casts to \f(CW\*(C`void *\*(C'\fR or to
1478 unambiguous base classes.
1479 .IP "\fB\-fstats\fR" 4
1480 .IX Item "-fstats"
1481 Emit statistics about front-end processing at the end of the compilation.
1482 This information is generally only useful to the G++ development team.
1483 .IP "\fB\-ftemplate\-depth\-\fR\fIn\fR" 4
1484 .IX Item "-ftemplate-depth-n"
1485 Set the maximum instantiation depth for template classes to \fIn\fR.
1486 A limit on the template instantiation depth is needed to detect
1487 endless recursions during template class instantiation.  \s-1ANSI/ISO\s0 \*(C+
1488 conforming programs must not rely on a maximum depth greater than 17.
1489 .IP "\fB\-fno\-threadsafe\-statics\fR" 4
1490 .IX Item "-fno-threadsafe-statics"
1491 Do not emit the extra code to use the routines specified in the \*(C+
1492 \&\s-1ABI\s0 for thread-safe initialization of local statics.  You can use this
1493 option to reduce code size slightly in code that doesn't need to be
1494 thread\-safe.
1495 .IP "\fB\-fuse\-cxa\-atexit\fR" 4
1496 .IX Item "-fuse-cxa-atexit"
1497 Register destructors for objects with static storage duration with the
1498 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR function rather than the \f(CW\*(C`atexit\*(C'\fR function.
1499 This option is required for fully standards-compliant handling of static
1500 destructors, but will only work if your C library supports
1501 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR.
1502 .IP "\fB\-fno\-use\-cxa\-get\-exception\-ptr\fR" 4
1503 .IX Item "-fno-use-cxa-get-exception-ptr"
1504 Don't use the \f(CW\*(C`_\|_cxa_get_exception_ptr\*(C'\fR runtime routine.  This
1505 will cause \f(CW\*(C`std::uncaught_exception\*(C'\fR to be incorrect, but is necessary
1506 if the runtime routine is not available.
1507 .IP "\fB\-fvisibility\-inlines\-hidden\fR" 4
1508 .IX Item "-fvisibility-inlines-hidden"
1509 This switch declares that the user does not attempt to compare
1510 pointers to inline methods where the addresses of the two functions
1511 were taken in different shared objects.
1512 .Sp
1513 The effect of this is that \s-1GCC\s0 may, effectively, mark inline methods with
1514 \&\f(CW\*(C`_\|_attribute_\|_ ((visibility ("hidden")))\*(C'\fR so that they do not
1515 appear in the export table of a \s-1DSO\s0 and do not require a \s-1PLT\s0 indirection
1516 when used within the \s-1DSO\s0.  Enabling this option can have a dramatic effect
1517 on load and link times of a \s-1DSO\s0 as it massively reduces the size of the
1518 dynamic export table when the library makes heavy use of templates.
1519 .Sp
1520 The behaviour of this switch is not quite the same as marking the
1521 methods as hidden directly, because it does not affect static variables
1522 local to the function or cause the compiler to deduce that
1523 the function is defined in only one shared object.
1524 .Sp
1525 You may mark a method as having a visibility explicitly to negate the
1526 effect of the switch for that method.  For example, if you do want to
1527 compare pointers to a particular inline method, you might mark it as
1528 having default visibility.  Marking the enclosing class with explicit
1529 visibility will have no effect.
1530 .Sp
1531 Explicitly instantiated inline methods are unaffected by this option
1532 as their linkage might otherwise cross a shared library boundary.
1533 .IP "\fB\-fno\-weak\fR" 4
1534 .IX Item "-fno-weak"
1535 Do not use weak symbol support, even if it is provided by the linker.
1536 By default, G++ will use weak symbols if they are available.  This
1537 option exists only for testing, and should not be used by end\-users;
1538 it will result in inferior code and has no benefits.  This option may
1539 be removed in a future release of G++.
1540 .IP "\fB\-nostdinc++\fR" 4
1541 .IX Item "-nostdinc++"
1542 Do not search for header files in the standard directories specific to
1543 \&\*(C+, but do still search the other standard directories.  (This option
1544 is used when building the \*(C+ library.)
1545 .PP
1546 In addition, these optimization, warning, and code generation options
1547 have meanings only for \*(C+ programs:
1548 .IP "\fB\-fno\-default\-inline\fR" 4
1549 .IX Item "-fno-default-inline"
1550 Do not assume \fBinline\fR for functions defined inside a class scope.
1551   Note that these
1552 functions will have linkage like inline functions; they just won't be
1553 inlined by default.
1554 .IP "\fB\-Wabi\fR (\*(C+ only)" 4
1555 .IX Item "-Wabi ( only)"
1556 Warn when G++ generates code that is probably not compatible with the
1557 vendor-neutral \*(C+ \s-1ABI\s0.  Although an effort has been made to warn about
1558 all such cases, there are probably some cases that are not warned about,
1559 even though G++ is generating incompatible code.  There may also be
1560 cases where warnings are emitted even though the code that is generated
1561 will be compatible.
1562 .Sp
1563 You should rewrite your code to avoid these warnings if you are
1564 concerned about the fact that code generated by G++ may not be binary
1565 compatible with code generated by other compilers.
1566 .Sp
1567 The known incompatibilities at this point include:
1568 .RS 4
1569 .IP "*" 4
1570 Incorrect handling of tail-padding for bit\-fields.  G++ may attempt to
1571 pack data into the same byte as a base class.  For example:
1572 .Sp
1573 .Vb 2
1574 \&        struct A { virtual void f(); int f1 : 1; };
1575 \&        struct B : public A { int f2 : 1; };
1576 .Ve
1577 .Sp
1578 In this case, G++ will place \f(CW\*(C`B::f2\*(C'\fR into the same byte
1579 as\f(CW\*(C`A::f1\*(C'\fR; other compilers will not.  You can avoid this problem
1580 by explicitly padding \f(CW\*(C`A\*(C'\fR so that its size is a multiple of the
1581 byte size on your platform; that will cause G++ and other compilers to
1582 layout \f(CW\*(C`B\*(C'\fR identically.
1583 .IP "*" 4
1584 Incorrect handling of tail-padding for virtual bases.  G++ does not use
1585 tail padding when laying out virtual bases.  For example:
1586 .Sp
1587 .Vb 3
1588 \&        struct A { virtual void f(); char c1; };
1589 \&        struct B { B(); char c2; };
1590 \&        struct C : public A, public virtual B {};
1591 .Ve
1592 .Sp
1593 In this case, G++ will not place \f(CW\*(C`B\*(C'\fR into the tail-padding for
1594 \&\f(CW\*(C`A\*(C'\fR; other compilers will.  You can avoid this problem by
1595 explicitly padding \f(CW\*(C`A\*(C'\fR so that its size is a multiple of its
1596 alignment (ignoring virtual base classes); that will cause G++ and other
1597 compilers to layout \f(CW\*(C`C\*(C'\fR identically.
1598 .IP "*" 4
1599 Incorrect handling of bit-fields with declared widths greater than that
1600 of their underlying types, when the bit-fields appear in a union.  For
1601 example:
1602 .Sp
1603 .Vb 1
1604 \&        union U { int i : 4096; };
1605 .Ve
1606 .Sp
1607 Assuming that an \f(CW\*(C`int\*(C'\fR does not have 4096 bits, G++ will make the
1608 union too small by the number of bits in an \f(CW\*(C`int\*(C'\fR.
1609 .IP "*" 4
1610 Empty classes can be placed at incorrect offsets.  For example:
1611 .Sp
1612 .Vb 1
1613 \&        struct A {};
1614 .Ve
1615 .Sp
1616 .Vb 4
1617 \&        struct B {
1618 \&          A a;
1619 \&          virtual void f ();
1620 \&        };
1621 .Ve
1622 .Sp
1623 .Vb 1
1624 \&        struct C : public B, public A {};
1625 .Ve
1626 .Sp
1627 G++ will place the \f(CW\*(C`A\*(C'\fR base class of \f(CW\*(C`C\*(C'\fR at a nonzero offset;
1628 it should be placed at offset zero.  G++ mistakenly believes that the
1629 \&\f(CW\*(C`A\*(C'\fR data member of \f(CW\*(C`B\*(C'\fR is already at offset zero.
1630 .IP "*" 4
1631 Names of template functions whose types involve \f(CW\*(C`typename\*(C'\fR or
1632 template template parameters can be mangled incorrectly.
1633 .Sp
1634 .Vb 2
1635 \&        template <typename Q>
1636 \&        void f(typename Q::X) {}
1637 .Ve
1638 .Sp
1639 .Vb 2
1640 \&        template <template <typename> class Q>
1641 \&        void f(typename Q<int>::X) {}
1642 .Ve
1643 .Sp
1644 Instantiations of these templates may be mangled incorrectly.
1645 .RE
1646 .RS 4
1647 .RE
1648 .IP "\fB\-Wctor\-dtor\-privacy\fR (\*(C+ only)" 4
1649 .IX Item "-Wctor-dtor-privacy ( only)"
1650 Warn when a class seems unusable because all the constructors or
1651 destructors in that class are private, and it has neither friends nor
1652 public static member functions.
1653 .IP "\fB\-Wnon\-virtual\-dtor\fR (\*(C+ only)" 4
1654 .IX Item "-Wnon-virtual-dtor ( only)"
1655 Warn when a class appears to be polymorphic, thereby requiring a virtual
1656 destructor, yet it declares a non-virtual one.  This warning is also
1657 enabled if \-Weffc++ is specified.
1658 .IP "\fB\-Wreorder\fR (\*(C+ only)" 4
1659 .IX Item "-Wreorder ( only)"
1660 Warn when the order of member initializers given in the code does not
1661 match the order in which they must be executed.  For instance:
1662 .Sp
1663 .Vb 5
1664 \&        struct A {
1665 \&          int i;
1666 \&          int j;
1667 \&          A(): j (0), i (1) { }
1668 \&        };
1669 .Ve
1670 .Sp
1671 The compiler will rearrange the member initializers for \fBi\fR
1672 and \fBj\fR to match the declaration order of the members, emitting
1673 a warning to that effect.  This warning is enabled by \fB\-Wall\fR.
1674 .PP
1675 The following \fB\-W...\fR options are not affected by \fB\-Wall\fR.
1676 .IP "\fB\-Weffc++\fR (\*(C+ only)" 4
1677 .IX Item "-Weffc++ ( only)"
1678 Warn about violations of the following style guidelines from Scott Meyers'
1679 \&\fIEffective \*(C+\fR book:
1680 .RS 4
1681 .IP "*" 4
1682 Item 11:  Define a copy constructor and an assignment operator for classes
1683 with dynamically allocated memory.
1684 .IP "*" 4
1685 Item 12:  Prefer initialization to assignment in constructors.
1686 .IP "*" 4
1687 Item 14:  Make destructors virtual in base classes.
1688 .IP "*" 4
1689 Item 15:  Have \f(CW\*(C`operator=\*(C'\fR return a reference to \f(CW*this\fR.
1690 .IP "*" 4
1691 Item 23:  Don't try to return a reference when you must return an object.
1692 .RE
1693 .RS 4
1694 .Sp
1695 Also warn about violations of the following style guidelines from
1696 Scott Meyers' \fIMore Effective \*(C+\fR book:
1697 .IP "*" 4
1698 Item 6:  Distinguish between prefix and postfix forms of increment and
1699 decrement operators.
1700 .IP "*" 4
1701 Item 7:  Never overload \f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`||\*(C'\fR, or \f(CW\*(C`,\*(C'\fR.
1702 .RE
1703 .RS 4
1704 .Sp
1705 When selecting this option, be aware that the standard library
1706 headers do not obey all of these guidelines; use \fBgrep \-v\fR
1707 to filter out those warnings.
1708 .RE
1709 .IP "\fB\-Wno\-deprecated\fR (\*(C+ only)" 4
1710 .IX Item "-Wno-deprecated ( only)"
1711 Do not warn about usage of deprecated features.  
1712 .IP "\fB\-Wstrict\-null\-sentinel\fR (\*(C+ only)" 4
1713 .IX Item "-Wstrict-null-sentinel ( only)"
1714 Warn also about the use of an uncasted \f(CW\*(C`NULL\*(C'\fR as sentinel.  When
1715 compiling only with \s-1GCC\s0 this is a valid sentinel, as \f(CW\*(C`NULL\*(C'\fR is defined
1716 to \f(CW\*(C`_\|_null\*(C'\fR.  Although it is a null pointer constant not a null pointer,
1717 it is guaranteed to of the same size as a pointer.  But this use is
1718 not portable across different compilers.
1719 .IP "\fB\-Wno\-non\-template\-friend\fR (\*(C+ only)" 4
1720 .IX Item "-Wno-non-template-friend ( only)"
1721 Disable warnings when non-templatized friend functions are declared
1722 within a template.  Since the advent of explicit template specification
1723 support in G++, if the name of the friend is an unqualified-id (i.e.,
1724 \&\fBfriend foo(int)\fR), the \*(C+ language specification demands that the
1725 friend declare or define an ordinary, nontemplate function.  (Section
1726 14.5.3).  Before G++ implemented explicit specification, unqualified-ids
1727 could be interpreted as a particular specialization of a templatized
1728 function.  Because this non-conforming behavior is no longer the default
1729 behavior for G++, \fB\-Wnon\-template\-friend\fR allows the compiler to
1730 check existing code for potential trouble spots and is on by default.
1731 This new compiler behavior can be turned off with
1732 \&\fB\-Wno\-non\-template\-friend\fR which keeps the conformant compiler code
1733 but disables the helpful warning.
1734 .IP "\fB\-Wold\-style\-cast\fR (\*(C+ only)" 4
1735 .IX Item "-Wold-style-cast ( only)"
1736 Warn if an old-style (C\-style) cast to a non-void type is used within
1737 a \*(C+ program.  The new-style casts (\fBdynamic_cast\fR,
1738 \&\fBstatic_cast\fR, \fBreinterpret_cast\fR, and \fBconst_cast\fR) are
1739 less vulnerable to unintended effects and much easier to search for.
1740 .IP "\fB\-Woverloaded\-virtual\fR (\*(C+ only)" 4
1741 .IX Item "-Woverloaded-virtual ( only)"
1742 Warn when a function declaration hides virtual functions from a
1743 base class.  For example, in:
1744 .Sp
1745 .Vb 3
1746 \&        struct A {
1747 \&          virtual void f();
1748 \&        };
1749 .Ve
1750 .Sp
1751 .Vb 3
1752 \&        struct B: public A {
1753 \&          void f(int);
1754 \&        };
1755 .Ve
1756 .Sp
1757 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
1758 like:
1759 .Sp
1760 .Vb 2
1761 \&        B* b;
1762 \&        b->f();
1763 .Ve
1764 .Sp
1765 will fail to compile.
1766 .IP "\fB\-Wno\-pmf\-conversions\fR (\*(C+ only)" 4
1767 .IX Item "-Wno-pmf-conversions ( only)"
1768 Disable the diagnostic for converting a bound pointer to member function
1769 to a plain pointer.
1770 .IP "\fB\-Wsign\-promo\fR (\*(C+ only)" 4
1771 .IX Item "-Wsign-promo ( only)"
1772 Warn when overload resolution chooses a promotion from unsigned or
1773 enumerated type to a signed type, over a conversion to an unsigned type of
1774 the same size.  Previous versions of G++ would try to preserve
1775 unsignedness, but the standard mandates the current behavior.
1776 .Sp
1777 .Vb 4
1778 \&        struct A {
1779 \&          operator int ();
1780 \&          A& operator = (int);
1781 \&        };
1782 .Ve
1783 .Sp
1784 .Vb 5
1785 \&        main ()
1786 \&        {
1787 \&          A a,b;
1788 \&          a = b;
1789 \&        }
1790 .Ve
1791 .Sp
1792 In this example, G++ will synthesize a default \fBA& operator =
1793 (const A&);\fR, while cfront will use the user-defined \fBoperator =\fR.
1794 .Sh "Options to Control Diagnostic Messages Formatting"
1795 .IX Subsection "Options to Control Diagnostic Messages Formatting"
1796 Traditionally, diagnostic messages have been formatted irrespective of
1797 the output device's aspect (e.g. its width, ...).  The options described
1798 below can be used to control the diagnostic messages formatting
1799 algorithm, e.g. how many characters per line, how often source location
1800 information should be reported.  Right now, only the \*(C+ front end can
1801 honor these options.  However it is expected, in the near future, that
1802 the remaining front ends would be able to digest them correctly.
1803 .IP "\fB\-fmessage\-length=\fR\fIn\fR" 4
1804 .IX Item "-fmessage-length=n"
1805 Try to format error messages so that they fit on lines of about \fIn\fR
1806 characters.  The default is 72 characters for \fBg++\fR and 0 for the rest of
1807 the front ends supported by \s-1GCC\s0.  If \fIn\fR is zero, then no
1808 line-wrapping will be done; each error message will appear on a single
1809 line.
1810 .IP "\fB\-fdiagnostics\-show\-location=once\fR" 4
1811 .IX Item "-fdiagnostics-show-location=once"
1812 Only meaningful in line-wrapping mode.  Instructs the diagnostic messages
1813 reporter to emit \fIonce\fR source location information; that is, in
1814 case the message is too long to fit on a single physical line and has to
1815 be wrapped, the source location won't be emitted (as prefix) again,
1816 over and over, in subsequent continuation lines.  This is the default
1817 behavior.
1818 .IP "\fB\-fdiagnostics\-show\-location=every\-line\fR" 4
1819 .IX Item "-fdiagnostics-show-location=every-line"
1820 Only meaningful in line-wrapping mode.  Instructs the diagnostic
1821 messages reporter to emit the same source location information (as
1822 prefix) for physical lines that result from the process of breaking
1823 a message which is too long to fit on a single line.
1824 .IP "\fB\-fdiagnostics\-show\-option\fR" 4
1825 .IX Item "-fdiagnostics-show-option"
1826 This option instructs the diagnostic machinery to add text to each
1827 diagnostic emitted, which indicates which command line option directly
1828 controls that diagnostic, when such an option is known to the
1829 diagnostic machinery.
1830 .Sh "Options to Request or Suppress Warnings"
1831 .IX Subsection "Options to Request or Suppress Warnings"
1832 Warnings are diagnostic messages that report constructions which
1833 are not inherently erroneous but which are risky or suggest there
1834 may have been an error.
1835 .PP
1836 You can request many specific warnings with options beginning \fB\-W\fR,
1837 for example \fB\-Wimplicit\fR to request warnings on implicit
1838 declarations.  Each of these specific warning options also has a
1839 negative form beginning \fB\-Wno\-\fR to turn off warnings;
1840 for example, \fB\-Wno\-implicit\fR.  This manual lists only one of the
1841 two forms, whichever is not the default.
1842 .PP
1843 The following options control the amount and kinds of warnings produced
1844 by \s-1GCC\s0; for further, language-specific options also refer to
1845 \&\fB\*(C+ Dialect Options\fR.
1846 .IP "\fB\-fsyntax\-only\fR" 4
1847 .IX Item "-fsyntax-only"
1848 Check the code for syntax errors, but don't do anything beyond that.
1849 .IP "\fB\-pedantic\fR" 4
1850 .IX Item "-pedantic"
1851 Issue all the warnings demanded by strict \s-1ISO\s0 C and \s-1ISO\s0 \*(C+;
1852 reject all programs that use forbidden extensions, and some other
1853 programs that do not follow \s-1ISO\s0 C and \s-1ISO\s0 \*(C+.  For \s-1ISO\s0 C, follows the
1854 version of the \s-1ISO\s0 C standard specified by any \fB\-std\fR option used.
1855 .Sp
1856 Valid \s-1ISO\s0 C and \s-1ISO\s0 \*(C+ programs should compile properly with or without
1857 this option (though a rare few will require \fB\-ansi\fR or a
1858 \&\fB\-std\fR option specifying the required version of \s-1ISO\s0 C).  However,
1859 without this option, certain \s-1GNU\s0 extensions and traditional C and \*(C+
1860 features are supported as well.  With this option, they are rejected.
1861 .Sp
1862 \&\fB\-pedantic\fR does not cause warning messages for use of the
1863 alternate keywords whose names begin and end with \fB_\|_\fR.  Pedantic
1864 warnings are also disabled in the expression that follows
1865 \&\f(CW\*(C`_\|_extension_\|_\*(C'\fR.  However, only system header files should use
1866 these escape routes; application programs should avoid them.
1867 .Sp
1868 Some users try to use \fB\-pedantic\fR to check programs for strict \s-1ISO\s0
1869 C conformance.  They soon find that it does not do quite what they want:
1870 it finds some non-ISO practices, but not all\-\-\-only those for which
1871 \&\s-1ISO\s0 C \fIrequires\fR a diagnostic, and some others for which
1872 diagnostics have been added.
1873 .Sp
1874 A feature to report any failure to conform to \s-1ISO\s0 C might be useful in
1875 some instances, but would require considerable additional work and would
1876 be quite different from \fB\-pedantic\fR.  We don't have plans to
1877 support such a feature in the near future.
1878 .Sp
1879 Where the standard specified with \fB\-std\fR represents a \s-1GNU\s0
1880 extended dialect of C, such as \fBgnu89\fR or \fBgnu99\fR, there is a
1881 corresponding \fIbase standard\fR, the version of \s-1ISO\s0 C on which the \s-1GNU\s0
1882 extended dialect is based.  Warnings from \fB\-pedantic\fR are given
1883 where they are required by the base standard.  (It would not make sense
1884 for such warnings to be given only for features not in the specified \s-1GNU\s0
1885 C dialect, since by definition the \s-1GNU\s0 dialects of C include all
1886 features the compiler supports with the given option, and there would be
1887 nothing to warn about.)
1888 .IP "\fB\-pedantic\-errors\fR" 4
1889 .IX Item "-pedantic-errors"
1890 Like \fB\-pedantic\fR, except that errors are produced rather than
1891 warnings.
1892 .IP "\fB\-w\fR" 4
1893 .IX Item "-w"
1894 Inhibit all warning messages.
1895 .IP "\fB\-Wno\-import\fR" 4
1896 .IX Item "-Wno-import"
1897 Inhibit warning messages about the use of \fB#import\fR.
1898 .IP "\fB\-Wchar\-subscripts\fR" 4
1899 .IX Item "-Wchar-subscripts"
1900 Warn if an array subscript has type \f(CW\*(C`char\*(C'\fR.  This is a common cause
1901 of error, as programmers often forget that this type is signed on some
1902 machines.
1903 This warning is enabled by \fB\-Wall\fR.
1904 .IP "\fB\-Wcomment\fR" 4
1905 .IX Item "-Wcomment"
1906 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
1907 comment, or whenever a Backslash-Newline appears in a \fB//\fR comment.
1908 This warning is enabled by \fB\-Wall\fR.
1909 .IP "\fB\-Wfatal\-errors\fR" 4
1910 .IX Item "-Wfatal-errors"
1911 This option causes the compiler to abort compilation on the first error
1912 occurred rather than trying to keep going and printing further error
1913 messages.
1914 .IP "\fB\-Wformat\fR" 4
1915 .IX Item "-Wformat"
1916 Check calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR, etc., to make sure that
1917 the arguments supplied have types appropriate to the format string
1918 specified, and that the conversions specified in the format string make
1919 sense.  This includes standard functions, and others specified by format
1920 attributes, in the \f(CW\*(C`printf\*(C'\fR,
1921 \&\f(CW\*(C`scanf\*(C'\fR, \f(CW\*(C`strftime\*(C'\fR and \f(CW\*(C`strfmon\*(C'\fR (an X/Open extension,
1922 not in the C standard) families (or other target-specific families).
1923 Which functions are checked without format attributes having been
1924 specified depends on the standard version selected, and such checks of
1925 functions without the attribute specified are disabled by
1926 \&\fB\-ffreestanding\fR or \fB\-fno\-builtin\fR.
1927 .Sp
1928 The formats are checked against the format features supported by \s-1GNU\s0
1929 libc version 2.2.  These include all \s-1ISO\s0 C90 and C99 features, as well
1930 as features from the Single Unix Specification and some \s-1BSD\s0 and \s-1GNU\s0
1931 extensions.  Other library implementations may not support all these
1932 features; \s-1GCC\s0 does not support warning about features that go beyond a
1933 particular library's limitations.  However, if \fB\-pedantic\fR is used
1934 with \fB\-Wformat\fR, warnings will be given about format features not
1935 in the selected standard version (but not for \f(CW\*(C`strfmon\*(C'\fR formats,
1936 since those are not in any version of the C standard).  
1937 .Sp
1938 Since \fB\-Wformat\fR also checks for null format arguments for
1939 several functions, \fB\-Wformat\fR also implies \fB\-Wnonnull\fR.
1940 .Sp
1941 \&\fB\-Wformat\fR is included in \fB\-Wall\fR.  For more control over some
1942 aspects of format checking, the options \fB\-Wformat\-y2k\fR,
1943 \&\fB\-Wno\-format\-extra\-args\fR, \fB\-Wno\-format\-zero\-length\fR,
1944 \&\fB\-Wformat\-nonliteral\fR, \fB\-Wformat\-security\fR, and
1945 \&\fB\-Wformat=2\fR are available, but are not included in \fB\-Wall\fR.
1946 .IP "\fB\-Wformat\-y2k\fR" 4
1947 .IX Item "-Wformat-y2k"
1948 If \fB\-Wformat\fR is specified, also warn about \f(CW\*(C`strftime\*(C'\fR
1949 formats which may yield only a two-digit year.
1950 .IP "\fB\-Wno\-format\-extra\-args\fR" 4
1951 .IX Item "-Wno-format-extra-args"
1952 If \fB\-Wformat\fR is specified, do not warn about excess arguments to a
1953 \&\f(CW\*(C`printf\*(C'\fR or \f(CW\*(C`scanf\*(C'\fR format function.  The C standard specifies
1954 that such arguments are ignored.
1955 .Sp
1956 Where the unused arguments lie between used arguments that are
1957 specified with \fB$\fR operand number specifications, normally
1958 warnings are still given, since the implementation could not know what
1959 type to pass to \f(CW\*(C`va_arg\*(C'\fR to skip the unused arguments.  However,
1960 in the case of \f(CW\*(C`scanf\*(C'\fR formats, this option will suppress the
1961 warning if the unused arguments are all pointers, since the Single
1962 Unix Specification says that such unused arguments are allowed.
1963 .IP "\fB\-Wno\-format\-zero\-length\fR" 4
1964 .IX Item "-Wno-format-zero-length"
1965 If \fB\-Wformat\fR is specified, do not warn about zero-length formats.
1966 The C standard specifies that zero-length formats are allowed.
1967 .IP "\fB\-Wformat\-nonliteral\fR" 4
1968 .IX Item "-Wformat-nonliteral"
1969 If \fB\-Wformat\fR is specified, also warn if the format string is not a
1970 string literal and so cannot be checked, unless the format function
1971 takes its format arguments as a \f(CW\*(C`va_list\*(C'\fR.
1972 .IP "\fB\-Wformat\-security\fR" 4
1973 .IX Item "-Wformat-security"
1974 If \fB\-Wformat\fR is specified, also warn about uses of format
1975 functions that represent possible security problems.  At present, this
1976 warns about calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR functions where the
1977 format string is not a string literal and there are no format arguments,
1978 as in \f(CW\*(C`printf (foo);\*(C'\fR.  This may be a security hole if the format
1979 string came from untrusted input and contains \fB%n\fR.  (This is
1980 currently a subset of what \fB\-Wformat\-nonliteral\fR warns about, but
1981 in future warnings may be added to \fB\-Wformat\-security\fR that are not
1982 included in \fB\-Wformat\-nonliteral\fR.)
1983 .IP "\fB\-Wformat=2\fR" 4
1984 .IX Item "-Wformat=2"
1985 Enable \fB\-Wformat\fR plus format checks not included in
1986 \&\fB\-Wformat\fR.  Currently equivalent to \fB\-Wformat
1987 \&\-Wformat\-nonliteral \-Wformat\-security \-Wformat\-y2k\fR.
1988 .IP "\fB\-Wnonnull\fR" 4
1989 .IX Item "-Wnonnull"
1990 Warn about passing a null pointer for arguments marked as
1991 requiring a non-null value by the \f(CW\*(C`nonnull\*(C'\fR function attribute.
1992 .Sp
1993 \&\fB\-Wnonnull\fR is included in \fB\-Wall\fR and \fB\-Wformat\fR.  It
1994 can be disabled with the \fB\-Wno\-nonnull\fR option.
1995 .IP "\fB\-Winit\-self\fR (C, \*(C+ only)" 4
1996 .IX Item "-Winit-self (C, only)"
1997 Warn about uninitialized variables which are initialized with themselves.
1998 Note this option can only be used with the \fB\-Wuninitialized\fR option,
1999 which in turn only works with \fB\-O1\fR and above.
2000 .Sp
2001 For example, \s-1GCC\s0 will warn about \f(CW\*(C`i\*(C'\fR being uninitialized in the
2002 following snippet only when \fB\-Winit\-self\fR has been specified:
2003 .Sp
2004 .Vb 5
2005 \&        int f()
2006 \&        {
2007 \&          int i = i;
2008 \&          return i;
2009 \&        }
2010 .Ve
2011 .IP "\fB\-Wimplicit\-int\fR" 4
2012 .IX Item "-Wimplicit-int"
2013 Warn when a declaration does not specify a type.
2014 This warning is enabled by \fB\-Wall\fR.
2015 .IP "\fB\-Wimplicit\-function\-declaration\fR" 4
2016 .IX Item "-Wimplicit-function-declaration"
2017 .PD 0
2018 .IP "\fB\-Werror\-implicit\-function\-declaration\fR" 4
2019 .IX Item "-Werror-implicit-function-declaration"
2020 .PD
2021 Give a warning (or error) whenever a function is used before being
2022 declared.  The form \fB\-Wno\-error\-implicit\-function\-declaration\fR
2023 is not supported.
2024 This warning is enabled by \fB\-Wall\fR (as a warning, not an error).
2025 .IP "\fB\-Wimplicit\fR" 4
2026 .IX Item "-Wimplicit"
2027 Same as \fB\-Wimplicit\-int\fR and \fB\-Wimplicit\-function\-declaration\fR.
2028 This warning is enabled by \fB\-Wall\fR.
2029 .IP "\fB\-Wmain\fR" 4
2030 .IX Item "-Wmain"
2031 Warn if the type of \fBmain\fR is suspicious.  \fBmain\fR should be a
2032 function with external linkage, returning int, taking either zero
2033 arguments, two, or three arguments of appropriate types.
2034 This warning is enabled by \fB\-Wall\fR.
2035 .IP "\fB\-Wmissing\-braces\fR" 4
2036 .IX Item "-Wmissing-braces"
2037 Warn if an aggregate or union initializer is not fully bracketed.  In
2038 the following example, the initializer for \fBa\fR is not fully
2039 bracketed, but that for \fBb\fR is fully bracketed.
2040 .Sp
2041 .Vb 2
2042 \&        int a[2][2] = { 0, 1, 2, 3 };
2043 \&        int b[2][2] = { { 0, 1 }, { 2, 3 } };
2044 .Ve
2045 .Sp
2046 This warning is enabled by \fB\-Wall\fR.
2047 .IP "\fB\-Wmissing\-include\-dirs\fR (C and \*(C+ only)" 4
2048 .IX Item "-Wmissing-include-dirs (C, only)"
2049 Warn if a user-supplied include directory does not exist.
2050 .IP "\fB\-Wparentheses\fR" 4
2051 .IX Item "-Wparentheses"
2052 Warn if parentheses are omitted in certain contexts, such
2053 as when there is an assignment in a context where a truth value
2054 is expected, or when operators are nested whose precedence people
2055 often get confused about.  Only the warning for an assignment used as
2056 a truth value is supported when compiling \*(C+; the other warnings are
2057 only supported when compiling C.
2058 .Sp
2059 Also warn if a comparison like \fBx<=y<=z\fR appears; this is
2060 equivalent to \fB(x<=y ? 1 : 0) <= z\fR, which is a different
2061 interpretation from that of ordinary mathematical notation.
2062 .Sp
2063 Also warn about constructions where there may be confusion to which
2064 \&\f(CW\*(C`if\*(C'\fR statement an \f(CW\*(C`else\*(C'\fR branch belongs.  Here is an example of
2065 such a case:
2066 .Sp
2067 .Vb 7
2068 \&        {
2069 \&          if (a)
2070 \&            if (b)
2071 \&              foo ();
2072 \&          else
2073 \&            bar ();
2074 \&        }
2075 .Ve
2076 .Sp
2077 In C, every \f(CW\*(C`else\*(C'\fR branch belongs to the innermost possible \f(CW\*(C`if\*(C'\fR
2078 statement, which in this example is \f(CW\*(C`if (b)\*(C'\fR.  This is often not
2079 what the programmer expected, as illustrated in the above example by
2080 indentation the programmer chose.  When there is the potential for this
2081 confusion, \s-1GCC\s0 will issue a warning when this flag is specified.
2082 To eliminate the warning, add explicit braces around the innermost
2083 \&\f(CW\*(C`if\*(C'\fR statement so there is no way the \f(CW\*(C`else\*(C'\fR could belong to
2084 the enclosing \f(CW\*(C`if\*(C'\fR.  The resulting code would look like this:
2085 .Sp
2086 .Vb 9
2087 \&        {
2088 \&          if (a)
2089 \&            {
2090 \&              if (b)
2091 \&                foo ();
2092 \&              else
2093 \&                bar ();
2094 \&            }
2095 \&        }
2096 .Ve
2097 .Sp
2098 This warning is enabled by \fB\-Wall\fR.
2099 .IP "\fB\-Wsequence\-point\fR" 4
2100 .IX Item "-Wsequence-point"
2101 Warn about code that may have undefined semantics because of violations
2102 of sequence point rules in the C and \*(C+ standards.
2103 .Sp
2104 The C and \*(C+ standards defines the order in which expressions in a C/\*(C+
2105 program are evaluated in terms of \fIsequence points\fR, which represent
2106 a partial ordering between the execution of parts of the program: those
2107 executed before the sequence point, and those executed after it.  These
2108 occur after the evaluation of a full expression (one which is not part
2109 of a larger expression), after the evaluation of the first operand of a
2110 \&\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
2111 function is called (but after the evaluation of its arguments and the
2112 expression denoting the called function), and in certain other places.
2113 Other than as expressed by the sequence point rules, the order of
2114 evaluation of subexpressions of an expression is not specified.  All
2115 these rules describe only a partial order rather than a total order,
2116 since, for example, if two functions are called within one expression
2117 with no sequence point between them, the order in which the functions
2118 are called is not specified.  However, the standards committee have
2119 ruled that function calls do not overlap.
2120 .Sp
2121 It is not specified when between sequence points modifications to the
2122 values of objects take effect.  Programs whose behavior depends on this
2123 have undefined behavior; the C and \*(C+ standards specify that \*(L"Between
2124 the previous and next sequence point an object shall have its stored
2125 value modified at most once by the evaluation of an expression.  
2126 Furthermore, the prior value shall be read only to determine the value
2127 to be stored.\*(R".  If a program breaks these rules, the results on any
2128 particular implementation are entirely unpredictable.
2129 .Sp
2130 Examples of code with undefined behavior are \f(CW\*(C`a = a++;\*(C'\fR, \f(CW\*(C`a[n]
2131 = b[n++]\*(C'\fR and \f(CW\*(C`a[i++] = i;\*(C'\fR.  Some more complicated cases are not
2132 diagnosed by this option, and it may give an occasional false positive
2133 result, but in general it has been found fairly effective at detecting
2134 this sort of problem in programs.
2135 .Sp
2136 The standard is worded confusingly, therefore there is some debate
2137 over the precise meaning of the sequence point rules in subtle cases.
2138 Links to discussions of the problem, including proposed formal
2139 definitions, may be found on the \s-1GCC\s0 readings page, at
2140 <\fBhttp://gcc.gnu.org/readings.html\fR>.
2141 .Sp
2142 This warning is enabled by \fB\-Wall\fR for C and \*(C+.
2143 .IP "\fB\-Wreturn\-type\fR" 4
2144 .IX Item "-Wreturn-type"
2145 Warn whenever a function is defined with a return-type that defaults to
2146 \&\f(CW\*(C`int\*(C'\fR.  Also warn about any \f(CW\*(C`return\*(C'\fR statement with no
2147 return-value in a function whose return-type is not \f(CW\*(C`void\*(C'\fR.
2148 .Sp
2149 For C, also warn if the return type of a function has a type qualifier
2150 such as \f(CW\*(C`const\*(C'\fR.  Such a type qualifier has no effect, since the
2151 value returned by a function is not an lvalue.  \s-1ISO\s0 C prohibits
2152 qualified \f(CW\*(C`void\*(C'\fR return types on function definitions, so such
2153 return types always receive a warning even without this option.
2154 .Sp
2155 For \*(C+, a function without return type always produces a diagnostic
2156 message, even when \fB\-Wno\-return\-type\fR is specified.  The only
2157 exceptions are \fBmain\fR and functions defined in system headers.
2158 .Sp
2159 This warning is enabled by \fB\-Wall\fR.
2160 .IP "\fB\-Wswitch\fR" 4
2161 .IX Item "-Wswitch"
2162 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
2163 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
2164 enumeration.  (The presence of a \f(CW\*(C`default\*(C'\fR label prevents this
2165 warning.)  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
2166 provoke warnings when this option is used.
2167 This warning is enabled by \fB\-Wall\fR.
2168 .IP "\fB\-Wswitch\-default\fR" 4
2169 .IX Item "-Wswitch-default"
2170 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement does not have a \f(CW\*(C`default\*(C'\fR
2171 case.
2172 .IP "\fB\-Wswitch\-enum\fR" 4
2173 .IX Item "-Wswitch-enum"
2174 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
2175 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
2176 enumeration.  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
2177 provoke warnings when this option is used.
2178 .IP "\fB\-Wtrigraphs\fR" 4
2179 .IX Item "-Wtrigraphs"
2180 Warn if any trigraphs are encountered that might change the meaning of
2181 the program (trigraphs within comments are not warned about).
2182 This warning is enabled by \fB\-Wall\fR.
2183 .IP "\fB\-Wunused\-function\fR" 4
2184 .IX Item "-Wunused-function"
2185 Warn whenever a static function is declared but not defined or a
2186 non-inline static function is unused.
2187 This warning is enabled by \fB\-Wall\fR.
2188 .IP "\fB\-Wunused\-label\fR" 4
2189 .IX Item "-Wunused-label"
2190 Warn whenever a label is declared but not used.
2191 This warning is enabled by \fB\-Wall\fR.
2192 .Sp
2193 To suppress this warning use the \fBunused\fR attribute.
2194 .IP "\fB\-Wunused\-parameter\fR" 4
2195 .IX Item "-Wunused-parameter"
2196 Warn whenever a function parameter is unused aside from its declaration.
2197 .Sp
2198 To suppress this warning use the \fBunused\fR attribute.
2199 .IP "\fB\-Wunused\-variable\fR" 4
2200 .IX Item "-Wunused-variable"
2201 Warn whenever a local variable or non-constant static variable is unused
2202 aside from its declaration.
2203 This warning is enabled by \fB\-Wall\fR.
2204 .Sp
2205 To suppress this warning use the \fBunused\fR attribute.
2206 .IP "\fB\-Wunused\-value\fR" 4
2207 .IX Item "-Wunused-value"
2208 Warn whenever a statement computes a result that is explicitly not used.
2209 This warning is enabled by \fB\-Wall\fR.
2210 .Sp
2211 To suppress this warning cast the expression to \fBvoid\fR.
2212 .IP "\fB\-Wunused\fR" 4
2213 .IX Item "-Wunused"
2214 All the above \fB\-Wunused\fR options combined.
2215 .Sp
2216 In order to get a warning about an unused function parameter, you must
2217 either specify \fB\-Wextra \-Wunused\fR (note that \fB\-Wall\fR implies
2218 \&\fB\-Wunused\fR), or separately specify \fB\-Wunused\-parameter\fR.
2219 .IP "\fB\-Wuninitialized\fR" 4
2220 .IX Item "-Wuninitialized"
2221 Warn if an automatic variable is used without first being initialized or
2222 if a variable may be clobbered by a \f(CW\*(C`setjmp\*(C'\fR call.
2223 .Sp
2224 These warnings are possible only in optimizing compilation,
2225 because they require data flow information that is computed only
2226 when optimizing.  If you do not specify \fB\-O\fR, you will not get 
2227 these warnings. Instead, \s-1GCC\s0 will issue a warning about \fB\-Wuninitialized\fR
2228 requiring \fB\-O\fR.
2229 .Sp
2230 If you want to warn about code which uses the uninitialized value of the
2231 variable in its own initializer, use the \fB\-Winit\-self\fR option.
2232 .Sp
2233 These warnings occur for individual uninitialized or clobbered
2234 elements of structure, union or array variables as well as for
2235 variables which are uninitialized or clobbered as a whole.  They do
2236 not occur for variables or elements declared \f(CW\*(C`volatile\*(C'\fR.  Because
2237 these warnings depend on optimization, the exact variables or elements
2238 for which there are warnings will depend on the precise optimization
2239 options and version of \s-1GCC\s0 used.
2240 .Sp
2241 Note that there may be no warning about a variable that is used only
2242 to compute a value that itself is never used, because such
2243 computations may be deleted by data flow analysis before the warnings
2244 are printed.
2245 .Sp
2246 These warnings are made optional because \s-1GCC\s0 is not smart
2247 enough to see all the reasons why the code might be correct
2248 despite appearing to have an error.  Here is one example of how
2249 this can happen:
2250 .Sp
2251 .Vb 12
2252 \&        {
2253 \&          int x;
2254 \&          switch (y)
2255 \&            {
2256 \&            case 1: x = 1;
2257 \&              break;
2258 \&            case 2: x = 4;
2259 \&              break;
2260 \&            case 3: x = 5;
2261 \&            }
2262 \&          foo (x);
2263 \&        }
2264 .Ve
2265 .Sp
2266 If the value of \f(CW\*(C`y\*(C'\fR is always 1, 2 or 3, then \f(CW\*(C`x\*(C'\fR is
2267 always initialized, but \s-1GCC\s0 doesn't know this.  Here is
2268 another common case:
2269 .Sp
2270 .Vb 6
2271 \&        {
2272 \&          int save_y;
2273 \&          if (change_y) save_y = y, y = new_y;
2274 \&          ...
2275 \&          if (change_y) y = save_y;
2276 \&        }
2277 .Ve
2278 .Sp
2279 This has no bug because \f(CW\*(C`save_y\*(C'\fR is used only if it is set.
2280 .Sp
2281 This option also warns when a non-volatile automatic variable might be
2282 changed by a call to \f(CW\*(C`longjmp\*(C'\fR.  These warnings as well are possible
2283 only in optimizing compilation.
2284 .Sp
2285 The compiler sees only the calls to \f(CW\*(C`setjmp\*(C'\fR.  It cannot know
2286 where \f(CW\*(C`longjmp\*(C'\fR will be called; in fact, a signal handler could
2287 call it at any point in the code.  As a result, you may get a warning
2288 even when there is in fact no problem because \f(CW\*(C`longjmp\*(C'\fR cannot
2289 in fact be called at the place which would cause a problem.
2290 .Sp
2291 Some spurious warnings can be avoided if you declare all the functions
2292 you use that never return as \f(CW\*(C`noreturn\*(C'\fR.  
2293 .Sp
2294 This warning is enabled by \fB\-Wall\fR.
2295 .IP "\fB\-Wunknown\-pragmas\fR" 4
2296 .IX Item "-Wunknown-pragmas"
2297 Warn when a #pragma directive is encountered which is not understood by
2298 \&\s-1GCC\s0.  If this command line option is used, warnings will even be issued
2299 for unknown pragmas in system header files.  This is not the case if
2300 the warnings were only enabled by the \fB\-Wall\fR command line option.
2301 .IP "\fB\-Wno\-pragmas\fR" 4
2302 .IX Item "-Wno-pragmas"
2303 Do not warn about misuses of pragmas, such as incorrect parameters,
2304 invalid syntax, or conflicts between pragmas.  See also
2305 \&\fB\-Wunknown\-pragmas\fR.
2306 .IP "\fB\-Wstrict\-aliasing\fR" 4
2307 .IX Item "-Wstrict-aliasing"
2308 This option is only active when \fB\-fstrict\-aliasing\fR is active.
2309 It warns about code which might break the strict aliasing rules that the
2310 compiler is using for optimization.  The warning does not catch all
2311 cases, but does attempt to catch the more common pitfalls.  It is
2312 included in \fB\-Wall\fR.
2313 .IP "\fB\-Wstrict\-aliasing=2\fR" 4
2314 .IX Item "-Wstrict-aliasing=2"
2315 This option is only active when \fB\-fstrict\-aliasing\fR is active.
2316 It warns about code which might break the strict aliasing rules that the
2317 compiler is using for optimization.  This warning catches more cases than
2318 \&\fB\-Wstrict\-aliasing\fR, but it will also give a warning for some ambiguous
2319 cases that are safe.
2320 .IP "\fB\-Wstrict\-overflow\fR" 4
2321 .IX Item "-Wstrict-overflow"
2322 .PD 0
2323 .IP "\fB\-Wstrict\-overflow=\fR\fIn\fR" 4
2324 .IX Item "-Wstrict-overflow=n"
2325 .PD
2326 This option is only active when \fB\-fstrict\-overflow\fR is active.
2327 It warns about cases where the compiler optimizes based on the
2328 assumption that signed overflow does not occur.  Note that it does not
2329 warn about all cases where the code might overflow: it only warns
2330 about cases where the compiler implements some optimization.  Thus
2331 this warning depends on the optimization level.
2332 .Sp
2333 An optimization which assumes that signed overflow does not occur is
2334 perfectly safe if the values of the variables involved are such that
2335 overflow never does, in fact, occur.  Therefore this warning can
2336 easily give a false positive: a warning about code which is not
2337 actually a problem.  To help focus on important issues, several
2338 warning levels are defined.  No warnings are issued for the use of
2339 undefined signed overflow when estimating how many iterations a loop
2340 will require, in particular when determining whether a loop will be
2341 executed at all.
2342 .RS 4
2343 .IP "@option<\-Wstrict\-overflow=1>" 4
2344 .IX Item "@option<-Wstrict-overflow=1>"
2345 Warn about cases which are both questionable and easy to avoid.  For
2346 example: \f(CW\*(C`x + 1 > x\*(C'\fR; with \fB\-fstrict\-overflow\fR, the
2347 compiler will simplify this to \f(CW1\fR.  This level of
2348 \&\fB\-Wstrict\-overflow\fR is enabled by \fB\-Wall\fR; higher levels
2349 are not, and must be explicitly requested.
2350 .IP "@option<\-Wstrict\-overflow=2>" 4
2351 .IX Item "@option<-Wstrict-overflow=2>"
2352 Also warn about other cases where a comparison is simplified to a
2353 constant.  For example: \f(CW\*(C`abs (x) >= 0\*(C'\fR.  This can only be
2354 simplified when \fB\-fstrict\-overflow\fR is in effect, because
2355 \&\f(CW\*(C`abs (INT_MIN)\*(C'\fR overflows to \f(CW\*(C`INT_MIN\*(C'\fR, which is less than
2356 zero.  \fB\-Wstrict\-overflow\fR (with no level) is the same as
2357 \&\fB\-Wstrict\-overflow=2\fR.
2358 .IP "@option<\-Wstrict\-overflow=3>" 4
2359 .IX Item "@option<-Wstrict-overflow=3>"
2360 Also warn about other cases where a comparison is simplified.  For
2361 example: \f(CW\*(C`x + 1 > 1\*(C'\fR will be simplified to \f(CW\*(C`x > 0\*(C'\fR.
2362 .IP "@option<\-Wstrict\-overflow=4>" 4
2363 .IX Item "@option<-Wstrict-overflow=4>"
2364 Also warn about other simplifications not covered by the above cases.
2365 For example: \f(CW\*(C`(x * 10) / 5\*(C'\fR will be simplified to \f(CW\*(C`x * 2\*(C'\fR.
2366 .IP "@option<\-Wstrict\-overflow=5>" 4
2367 .IX Item "@option<-Wstrict-overflow=5>"
2368 Also warn about cases where the compiler reduces the magnitude of a
2369 constant involved in a comparison.  For example: \f(CW\*(C`x + 2 > y\*(C'\fR will
2370 be simplified to \f(CW\*(C`x + 1 >= y\*(C'\fR.  This is reported only at the
2371 highest warning level because this simplification applies to many
2372 comparisons, so this warning level will give a very large number of
2373 false positives.
2374 .RE
2375 .RS 4
2376 .RE
2377 .IP "\fB\-Wall\fR" 4
2378 .IX Item "-Wall"
2379 All of the above \fB\-W\fR options combined.  This enables all the
2380 warnings about constructions that some users consider questionable, and
2381 that are easy to avoid (or modify to prevent the warning), even in
2382 conjunction with macros.  This also enables some language-specific
2383 warnings described in \fB\*(C+ Dialect Options\fR.
2384 .PP
2385 The following \fB\-W...\fR options are not implied by \fB\-Wall\fR.
2386 Some of them warn about constructions that users generally do not
2387 consider questionable, but which occasionally you might wish to check
2388 for; others warn about constructions that are necessary or hard to avoid
2389 in some cases, and there is no simple way to modify the code to suppress
2390 the warning.
2391 .IP "\fB\-Wextra\fR" 4
2392 .IX Item "-Wextra"
2393 (This option used to be called \fB\-W\fR.  The older name is still
2394 supported, but the newer name is more descriptive.)  Print extra warning
2395 messages for these events:
2396 .RS 4
2397 .IP "*" 4
2398 A function can return either with or without a value.  (Falling
2399 off the end of the function body is considered returning without
2400 a value.)  For example, this function would evoke such a
2401 warning:
2402 .Sp
2403 .Vb 5
2404 \&        foo (a)
2405 \&        {
2406 \&          if (a > 0)
2407 \&            return a;
2408 \&        }
2409 .Ve
2410 .IP "*" 4
2411 An expression-statement or the left-hand side of a comma expression
2412 contains no side effects.
2413 To suppress the warning, cast the unused expression to void.
2414 For example, an expression such as \fBx[i,j]\fR will cause a warning,
2415 but \fBx[(void)i,j]\fR will not.
2416 .IP "*" 4
2417 An unsigned value is compared against zero with \fB<\fR or \fB>=\fR.
2418 .IP "*" 4
2419 Storage-class specifiers like \f(CW\*(C`static\*(C'\fR are not the first things in
2420 a declaration.  According to the C Standard, this usage is obsolescent.
2421 .IP "*" 4
2422 If \fB\-Wall\fR or \fB\-Wunused\fR is also specified, warn about unused
2423 arguments.
2424 .IP "*" 4
2425 A comparison between signed and unsigned values could produce an
2426 incorrect result when the signed value is converted to unsigned.
2427 (But don't warn if \fB\-Wno\-sign\-compare\fR is also specified.)
2428 .IP "*" 4
2429 An aggregate has an initializer which does not initialize all members.
2430 This warning can be independently controlled by
2431 \&\fB\-Wmissing\-field\-initializers\fR.
2432 .IP "*" 4
2433 An initialized field without side effects is overridden when using
2434 designated initializers.  This warning can be independently controlled by
2435 \&\fB\-Woverride\-init\fR.
2436 .IP "*" 4
2437 A function parameter is declared without a type specifier in K&R\-style
2438 functions:
2439 .Sp
2440 .Vb 1
2441 \&        void foo(bar) { }
2442 .Ve
2443 .IP "*" 4
2444 An empty body occurs in an \fBif\fR or \fBelse\fR statement.
2445 .IP "*" 4
2446 A pointer is compared against integer zero with \fB<\fR, \fB<=\fR,
2447 \&\fB>\fR, or \fB>=\fR.
2448 .IP "*" 4
2449 A variable might be changed by \fBlongjmp\fR or \fBvfork\fR.
2450 .IP "*<(\*(C+ only)>" 4
2451 .IX Item "*<( only)>"
2452 An enumerator and a non-enumerator both appear in a conditional expression.
2453 .IP "*<(\*(C+ only)>" 4
2454 .IX Item "*<( only)>"
2455 A non-static reference or non-static \fBconst\fR member appears in a
2456 class without constructors.
2457 .IP "*<(\*(C+ only)>" 4
2458 .IX Item "*<( only)>"
2459 Ambiguous virtual bases.
2460 .IP "*<(\*(C+ only)>" 4
2461 .IX Item "*<( only)>"
2462 Subscripting an array which has been declared \fBregister\fR.
2463 .IP "*<(\*(C+ only)>" 4
2464 .IX Item "*<( only)>"
2465 Taking the address of a variable which has been declared \fBregister\fR.
2466 .IP "*<(\*(C+ only)>" 4
2467 .IX Item "*<( only)>"
2468 A base class is not initialized in a derived class' copy constructor.
2469 .RE
2470 .RS 4
2471 .RE
2472 .IP "\fB\-Wno\-div\-by\-zero\fR" 4
2473 .IX Item "-Wno-div-by-zero"
2474 Do not warn about compile-time integer division by zero.  Floating point
2475 division by zero is not warned about, as it can be a legitimate way of
2476 obtaining infinities and NaNs.
2477 .IP "\fB\-Wsystem\-headers\fR" 4
2478 .IX Item "-Wsystem-headers"
2479 Print warning messages for constructs found in system header files.
2480 Warnings from system headers are normally suppressed, on the assumption
2481 that they usually do not indicate real problems and would only make the
2482 compiler output harder to read.  Using this command line option tells
2483 \&\s-1GCC\s0 to emit warnings from system headers as if they occurred in user
2484 code.  However, note that using \fB\-Wall\fR in conjunction with this
2485 option will \fInot\fR warn about unknown pragmas in system
2486 headers\-\-\-for that, \fB\-Wunknown\-pragmas\fR must also be used.
2487 .IP "\fB\-Wfloat\-equal\fR" 4
2488 .IX Item "-Wfloat-equal"
2489 Warn if floating point values are used in equality comparisons.
2490 .Sp
2491 The idea behind this is that sometimes it is convenient (for the
2492 programmer) to consider floating-point values as approximations to
2493 infinitely precise real numbers.  If you are doing this, then you need
2494 to compute (by analyzing the code, or in some other way) the maximum or
2495 likely maximum error that the computation introduces, and allow for it
2496 when performing comparisons (and when producing output, but that's a
2497 different problem).  In particular, instead of testing for equality, you
2498 would check to see whether the two values have ranges that overlap; and
2499 this is done with the relational operators, so equality comparisons are
2500 probably mistaken.
2501 .IP "\fB\-Wtraditional\fR (C only)" 4
2502 .IX Item "-Wtraditional (C only)"
2503 Warn about certain constructs that behave differently in traditional and
2504 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
2505 equivalent, and/or problematic constructs which should be avoided.
2506 .RS 4
2507 .IP "*" 4
2508 Macro parameters that appear within string literals in the macro body.
2509 In traditional C macro replacement takes place within string literals,
2510 but does not in \s-1ISO\s0 C.
2511 .IP "*" 4
2512 In traditional C, some preprocessor directives did not exist.
2513 Traditional preprocessors would only consider a line to be a directive
2514 if the \fB#\fR appeared in column 1 on the line.  Therefore
2515 \&\fB\-Wtraditional\fR warns about directives that traditional C
2516 understands but would ignore because the \fB#\fR does not appear as the
2517 first character on the line.  It also suggests you hide directives like
2518 \&\fB#pragma\fR not understood by traditional C by indenting them.  Some
2519 traditional implementations would not recognize \fB#elif\fR, so it
2520 suggests avoiding it altogether.
2521 .IP "*" 4
2522 A function-like macro that appears without arguments.
2523 .IP "*" 4
2524 The unary plus operator.
2525 .IP "*" 4
2526 The \fBU\fR integer constant suffix, or the \fBF\fR or \fBL\fR floating point
2527 constant suffixes.  (Traditional C does support the \fBL\fR suffix on integer
2528 constants.)  Note, these suffixes appear in macros defined in the system
2529 headers of most modern systems, e.g. the \fB_MIN\fR/\fB_MAX\fR macros in \f(CW\*(C`<limits.h>\*(C'\fR.
2530 Use of these macros in user code might normally lead to spurious
2531 warnings, however \s-1GCC\s0's integrated preprocessor has enough context to
2532 avoid warning in these cases.
2533 .IP "*" 4
2534 A function declared external in one block and then used after the end of
2535 the block.
2536 .IP "*" 4
2537 A \f(CW\*(C`switch\*(C'\fR statement has an operand of type \f(CW\*(C`long\*(C'\fR.
2538 .IP "*" 4
2539 A non\-\f(CW\*(C`static\*(C'\fR function declaration follows a \f(CW\*(C`static\*(C'\fR one.
2540 This construct is not accepted by some traditional C compilers.
2541 .IP "*" 4
2542 The \s-1ISO\s0 type of an integer constant has a different width or
2543 signedness from its traditional type.  This warning is only issued if
2544 the base of the constant is ten.  I.e. hexadecimal or octal values, which
2545 typically represent bit patterns, are not warned about.
2546 .IP "*" 4
2547 Usage of \s-1ISO\s0 string concatenation is detected.
2548 .IP "*" 4
2549 Initialization of automatic aggregates.
2550 .IP "*" 4
2551 Identifier conflicts with labels.  Traditional C lacks a separate
2552 namespace for labels.
2553 .IP "*" 4
2554 Initialization of unions.  If the initializer is zero, the warning is
2555 omitted.  This is done under the assumption that the zero initializer in
2556 user code appears conditioned on e.g. \f(CW\*(C`_\|_STDC_\|_\*(C'\fR to avoid missing
2557 initializer warnings and relies on default initialization to zero in the
2558 traditional C case.
2559 .IP "*" 4
2560 Conversions by prototypes between fixed/floating point values and vice
2561 versa.  The absence of these prototypes when compiling with traditional
2562 C would cause serious problems.  This is a subset of the possible
2563 conversion warnings, for the full set use \fB\-Wconversion\fR.
2564 .IP "*" 4
2565 Use of \s-1ISO\s0 C style function definitions.  This warning intentionally is
2566 \&\fInot\fR issued for prototype declarations or variadic functions
2567 because these \s-1ISO\s0 C features will appear in your code when using
2568 libiberty's traditional C compatibility macros, \f(CW\*(C`PARAMS\*(C'\fR and
2569 \&\f(CW\*(C`VPARAMS\*(C'\fR.  This warning is also bypassed for nested functions
2570 because that feature is already a \s-1GCC\s0 extension and thus not relevant to
2571 traditional C compatibility.
2572 .RE
2573 .RS 4
2574 .RE
2575 .IP "\fB\-Wdeclaration\-after\-statement\fR (C only)" 4
2576 .IX Item "-Wdeclaration-after-statement (C only)"
2577 Warn when a declaration is found after a statement in a block.  This
2578 construct, known from \*(C+, was introduced with \s-1ISO\s0 C99 and is by default
2579 allowed in \s-1GCC\s0.  It is not supported by \s-1ISO\s0 C90 and was not supported by
2580 \&\s-1GCC\s0 versions before \s-1GCC\s0 3.0.  
2581 .IP "\fB\-Wundef\fR" 4
2582 .IX Item "-Wundef"
2583 Warn if an undefined identifier is evaluated in an \fB#if\fR directive.
2584 .IP "\fB\-Wno\-endif\-labels\fR" 4
2585 .IX Item "-Wno-endif-labels"
2586 Do not warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
2587 .IP "\fB\-Wshadow\fR" 4
2588 .IX Item "-Wshadow"
2589 Warn whenever a local variable shadows another local variable, parameter or
2590 global variable or whenever a built-in function is shadowed.
2591 .IP "\fB\-Wlarger\-than\-\fR\fIlen\fR" 4
2592 .IX Item "-Wlarger-than-len"
2593 Warn whenever an object of larger than \fIlen\fR bytes is defined.
2594 .IP "\fB\-Wunsafe\-loop\-optimizations\fR" 4
2595 .IX Item "-Wunsafe-loop-optimizations"
2596 Warn if the loop cannot be optimized because the compiler could not
2597 assume anything on the bounds of the loop indices.  With
2598 \&\fB\-funsafe\-loop\-optimizations\fR warn if the compiler made
2599 such assumptions.
2600 .IP "\fB\-Wpointer\-arith\fR" 4
2601 .IX Item "-Wpointer-arith"
2602 Warn about anything that depends on the \*(L"size of\*(R" a function type or
2603 of \f(CW\*(C`void\*(C'\fR.  \s-1GNU\s0 C assigns these types a size of 1, for
2604 convenience in calculations with \f(CW\*(C`void *\*(C'\fR pointers and pointers
2605 to functions.
2606 .IP "\fB\-Wbad\-function\-cast\fR (C only)" 4
2607 .IX Item "-Wbad-function-cast (C only)"
2608 Warn whenever a function call is cast to a non-matching type.
2609 For example, warn if \f(CW\*(C`int malloc()\*(C'\fR is cast to \f(CW\*(C`anything *\*(C'\fR.
2610 .IP "\fB\-Wc++\-compat\fR" 4
2611 .IX Item "-Wc++-compat"
2612 Warn about \s-1ISO\s0 C constructs that are outside of the common subset of
2613 \&\s-1ISO\s0 C and \s-1ISO\s0 \*(C+, e.g. request for implicit conversion from
2614 \&\f(CW\*(C`void *\*(C'\fR to a pointer to non\-\f(CW\*(C`void\*(C'\fR type.
2615 .IP "\fB\-Wcast\-qual\fR" 4
2616 .IX Item "-Wcast-qual"
2617 Warn whenever a pointer is cast so as to remove a type qualifier from
2618 the target type.  For example, warn if a \f(CW\*(C`const char *\*(C'\fR is cast
2619 to an ordinary \f(CW\*(C`char *\*(C'\fR.
2620 .IP "\fB\-Wcast\-align\fR" 4
2621 .IX Item "-Wcast-align"
2622 Warn whenever a pointer is cast such that the required alignment of the
2623 target is increased.  For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
2624 an \f(CW\*(C`int *\*(C'\fR on machines where integers can only be accessed at
2625 two\- or four-byte boundaries.
2626 .IP "\fB\-Wwrite\-strings\fR" 4
2627 .IX Item "-Wwrite-strings"
2628 When compiling C, give string constants the type \f(CW\*(C`const
2629 char[\f(CIlength\f(CW]\*(C'\fR so that
2630 copying the address of one into a non\-\f(CW\*(C`const\*(C'\fR \f(CW\*(C`char *\*(C'\fR
2631 pointer will get a warning; when compiling \*(C+, warn about the
2632 deprecated conversion from string literals to \f(CW\*(C`char *\*(C'\fR.  This
2633 warning, by default, is enabled for \*(C+ programs.
2634 These warnings will help you find at
2635 compile time code that can try to write into a string constant, but
2636 only if you have been very careful about using \f(CW\*(C`const\*(C'\fR in
2637 declarations and prototypes.  Otherwise, it will just be a nuisance;
2638 this is why we did not make \fB\-Wall\fR request these warnings.
2639 .IP "\fB\-Wconversion\fR" 4
2640 .IX Item "-Wconversion"
2641 Warn if a prototype causes a type conversion that is different from what
2642 would happen to the same argument in the absence of a prototype.  This
2643 includes conversions of fixed point to floating and vice versa, and
2644 conversions changing the width or signedness of a fixed point argument
2645 except when the same as the default promotion.
2646 .Sp
2647 Also, warn if a negative integer constant expression is implicitly
2648 converted to an unsigned type.  For example, warn about the assignment
2649 \&\f(CW\*(C`x = \-1\*(C'\fR if \f(CW\*(C`x\*(C'\fR is unsigned.  But do not warn about explicit
2650 casts like \f(CW\*(C`(unsigned) \-1\*(C'\fR.
2651 .IP "\fB\-Wsign\-compare\fR" 4
2652 .IX Item "-Wsign-compare"
2653 Warn when a comparison between signed and unsigned values could produce
2654 an incorrect result when the signed value is converted to unsigned.
2655 This warning is also enabled by \fB\-Wextra\fR; to get the other warnings
2656 of \fB\-Wextra\fR without this warning, use \fB\-Wextra \-Wno\-sign\-compare\fR.
2657 .IP "\fB\-Waddress\fR" 4
2658 .IX Item "-Waddress"
2659 Warn about suspicious uses of memory addresses. These include using
2660 the address of a function in a conditional expression, such as
2661 \&\f(CW\*(C`void func(void); if (func)\*(C'\fR, and comparisons against the memory
2662 address of a string literal, such as \f(CW\*(C`if (x == "abc")\*(C'\fR.  Such
2663 uses typically indicate a programmer error: the address of a function
2664 always evaluates to true, so their use in a conditional usually
2665 indicate that the programmer forgot the parentheses in a function
2666 call; and comparisons against string literals result in unspecified
2667 behavior and are not portable in C, so they usually indicate that the
2668 programmer intended to use \f(CW\*(C`strcmp\*(C'\fR.  This warning is enabled by
2669 \&\fB\-Wall\fR.
2670 .IP "\fB\-Waggregate\-return\fR" 4
2671 .IX Item "-Waggregate-return"
2672 Warn if any functions that return structures or unions are defined or
2673 called.  (In languages where you can return an array, this also elicits
2674 a warning.)
2675 .IP "\fB\-Wno\-attributes\fR" 4
2676 .IX Item "-Wno-attributes"
2677 Do not warn if an unexpected \f(CW\*(C`_\|_attribute_\|_\*(C'\fR is used, such as
2678 unrecognized attributes, function attributes applied to variables,
2679 etc.  This will not stop errors for incorrect use of supported
2680 attributes.
2681 .IP "\fB\-Wstrict\-prototypes\fR (C only)" 4
2682 .IX Item "-Wstrict-prototypes (C only)"
2683 Warn if a function is declared or defined without specifying the
2684 argument types.  (An old-style function definition is permitted without
2685 a warning if preceded by a declaration which specifies the argument
2686 types.)
2687 .IP "\fB\-Wold\-style\-definition\fR (C only)" 4
2688 .IX Item "-Wold-style-definition (C only)"
2689 Warn if an old-style function definition is used.  A warning is given
2690 even if there is a previous prototype.
2691 .IP "\fB\-Wmissing\-prototypes\fR (C only)" 4
2692 .IX Item "-Wmissing-prototypes (C only)"
2693 Warn if a global function is defined without a previous prototype
2694 declaration.  This warning is issued even if the definition itself
2695 provides a prototype.  The aim is to detect global functions that fail
2696 to be declared in header files.
2697 .IP "\fB\-Wmissing\-declarations\fR (C only)" 4
2698 .IX Item "-Wmissing-declarations (C only)"
2699 Warn if a global function is defined without a previous declaration.
2700 Do so even if the definition itself provides a prototype.
2701 Use this option to detect global functions that are not declared in
2702 header files.
2703 .IP "\fB\-Wmissing\-field\-initializers\fR" 4
2704 .IX Item "-Wmissing-field-initializers"
2705 Warn if a structure's initializer has some fields missing.  For
2706 example, the following code would cause such a warning, because
2707 \&\f(CW\*(C`x.h\*(C'\fR is implicitly zero:
2708 .Sp
2709 .Vb 2
2710 \&        struct s { int f, g, h; };
2711 \&        struct s x = { 3, 4 };
2712 .Ve
2713 .Sp
2714 This option does not warn about designated initializers, so the following
2715 modification would not trigger a warning:
2716 .Sp
2717 .Vb 2
2718 \&        struct s { int f, g, h; };
2719 \&        struct s x = { .f = 3, .g = 4 };
2720 .Ve
2721 .Sp
2722 This warning is included in \fB\-Wextra\fR.  To get other \fB\-Wextra\fR
2723 warnings without this one, use \fB\-Wextra \-Wno\-missing\-field\-initializers\fR.
2724 .IP "\fB\-Wmissing\-noreturn\fR" 4
2725 .IX Item "-Wmissing-noreturn"
2726 Warn about functions which might be candidates for attribute \f(CW\*(C`noreturn\*(C'\fR.
2727 Note these are only possible candidates, not absolute ones.  Care should
2728 be taken to manually verify functions actually do not ever return before
2729 adding the \f(CW\*(C`noreturn\*(C'\fR attribute, otherwise subtle code generation
2730 bugs could be introduced.  You will not get a warning for \f(CW\*(C`main\*(C'\fR in
2731 hosted C environments.
2732 .IP "\fB\-Wmissing\-format\-attribute\fR" 4
2733 .IX Item "-Wmissing-format-attribute"
2734 Warn about function pointers which might be candidates for \f(CW\*(C`format\*(C'\fR
2735 attributes.  Note these are only possible candidates, not absolute ones.
2736 \&\s-1GCC\s0 will guess that function pointers with \f(CW\*(C`format\*(C'\fR attributes that
2737 are used in assignment, initialization, parameter passing or return
2738 statements should have a corresponding \f(CW\*(C`format\*(C'\fR attribute in the
2739 resulting type.  I.e. the left-hand side of the assignment or
2740 initialization, the type of the parameter variable, or the return type
2741 of the containing function respectively should also have a \f(CW\*(C`format\*(C'\fR
2742 attribute to avoid the warning.
2743 .Sp
2744 \&\s-1GCC\s0 will also warn about function definitions which might be
2745 candidates for \f(CW\*(C`format\*(C'\fR attributes.  Again, these are only
2746 possible candidates.  \s-1GCC\s0 will guess that \f(CW\*(C`format\*(C'\fR attributes
2747 might be appropriate for any function that calls a function like
2748 \&\f(CW\*(C`vprintf\*(C'\fR or \f(CW\*(C`vscanf\*(C'\fR, but this might not always be the
2749 case, and some functions for which \f(CW\*(C`format\*(C'\fR attributes are
2750 appropriate may not be detected.
2751 .IP "\fB\-Wno\-multichar\fR" 4
2752 .IX Item "-Wno-multichar"
2753 Do not warn if a multicharacter constant (\fB'\s-1FOOF\s0'\fR) is used.
2754 Usually they indicate a typo in the user's code, as they have
2755 implementation-defined values, and should not be used in portable code.
2756 .IP "\fB\-Wnormalized=<none|id|nfc|nfkc>\fR" 4
2757 .IX Item "-Wnormalized=<none|id|nfc|nfkc>"
2758 In \s-1ISO\s0 C and \s-1ISO\s0 \*(C+, two identifiers are different if they are
2759 different sequences of characters.  However, sometimes when characters
2760 outside the basic \s-1ASCII\s0 character set are used, you can have two
2761 different character sequences that look the same.  To avoid confusion,
2762 the \s-1ISO\s0 10646 standard sets out some \fInormalization rules\fR which
2763 when applied ensure that two sequences that look the same are turned into
2764 the same sequence.  \s-1GCC\s0 can warn you if you are using identifiers which
2765 have not been normalized; this option controls that warning.
2766 .Sp
2767 There are four levels of warning that \s-1GCC\s0 supports.  The default is
2768 \&\fB\-Wnormalized=nfc\fR, which warns about any identifier which is
2769 not in the \s-1ISO\s0 10646 \*(L"C\*(R" normalized form, \fI\s-1NFC\s0\fR.  \s-1NFC\s0 is the
2770 recommended form for most uses.
2771 .Sp
2772 Unfortunately, there are some characters which \s-1ISO\s0 C and \s-1ISO\s0 \*(C+ allow
2773 in identifiers that when turned into \s-1NFC\s0 aren't allowable as
2774 identifiers.  That is, there's no way to use these symbols in portable
2775 \&\s-1ISO\s0 C or \*(C+ and have all your identifiers in \s-1NFC\s0.
2776 \&\fB\-Wnormalized=id\fR suppresses the warning for these characters.
2777 It is hoped that future versions of the standards involved will correct
2778 this, which is why this option is not the default.
2779 .Sp
2780 You can switch the warning off for all characters by writing
2781 \&\fB\-Wnormalized=none\fR.  You would only want to do this if you
2782 were using some other normalization scheme (like \*(L"D\*(R"), because
2783 otherwise you can easily create bugs that are literally impossible to see.
2784 .Sp
2785 Some characters in \s-1ISO\s0 10646 have distinct meanings but look identical
2786 in some fonts or display methodologies, especially once formatting has
2787 been applied.  For instance \f(CW\*(C`\eu207F\*(C'\fR, \*(L"\s-1SUPERSCRIPT\s0 \s-1LATIN\s0 \s-1SMALL\s0
2788 \&\s-1LETTER\s0 N\*(R", will display just like a regular \f(CW\*(C`n\*(C'\fR which has been
2789 placed in a superscript.  \s-1ISO\s0 10646 defines the \fI\s-1NFKC\s0\fR
2790 normalization scheme to convert all these into a standard form as
2791 well, and \s-1GCC\s0 will warn if your code is not in \s-1NFKC\s0 if you use
2792 \&\fB\-Wnormalized=nfkc\fR.  This warning is comparable to warning
2793 about every identifier that contains the letter O because it might be
2794 confused with the digit 0, and so is not the default, but may be
2795 useful as a local coding convention if the programming environment is
2796 unable to be fixed to display these characters distinctly.
2797 .IP "\fB\-Wno\-deprecated\-declarations\fR" 4
2798 .IX Item "-Wno-deprecated-declarations"
2799 Do not warn about uses of functions,
2800 variables, and types marked as deprecated by using the \f(CW\*(C`deprecated\*(C'\fR
2801 attribute.
2802 .IP "\fB\-Wno\-overflow\fR" 4
2803 .IX Item "-Wno-overflow"
2804 Do not warn about compile-time overflow in constant expressions.
2805 .IP "\fB\-Woverride\-init\fR" 4
2806 .IX Item "-Woverride-init"
2807 Warn if an initialized field without side effects is overridden when
2808 using designated initializers.
2809 .Sp
2810 This warning is included in \fB\-Wextra\fR.  To get other
2811 \&\fB\-Wextra\fR warnings without this one, use \fB\-Wextra
2812 \&\-Wno\-override\-init\fR.
2813 .IP "\fB\-Wpacked\fR" 4
2814 .IX Item "-Wpacked"
2815 Warn if a structure is given the packed attribute, but the packed
2816 attribute has no effect on the layout or size of the structure.
2817 Such structures may be mis-aligned for little benefit.  For
2818 instance, in this code, the variable \f(CW\*(C`f.x\*(C'\fR in \f(CW\*(C`struct bar\*(C'\fR
2819 will be misaligned even though \f(CW\*(C`struct bar\*(C'\fR does not itself
2820 have the packed attribute:
2821 .Sp
2822 .Vb 8
2823 \&        struct foo {
2824 \&          int x;
2825 \&          char a, b, c, d;
2826 \&        } __attribute__((packed));
2827 \&        struct bar {
2828 \&          char z;
2829 \&          struct foo f;
2830 \&        };
2831 .Ve
2832 .IP "\fB\-Wpadded\fR" 4
2833 .IX Item "-Wpadded"
2834 Warn if padding is included in a structure, either to align an element
2835 of the structure or to align the whole structure.  Sometimes when this
2836 happens it is possible to rearrange the fields of the structure to
2837 reduce the padding and so make the structure smaller.
2838 .IP "\fB\-Wredundant\-decls\fR" 4
2839 .IX Item "-Wredundant-decls"
2840 Warn if anything is declared more than once in the same scope, even in
2841 cases where multiple declaration is valid and changes nothing.
2842 .IP "\fB\-Wnested\-externs\fR (C only)" 4
2843 .IX Item "-Wnested-externs (C only)"
2844 Warn if an \f(CW\*(C`extern\*(C'\fR declaration is encountered within a function.
2845 .IP "\fB\-Wunreachable\-code\fR" 4
2846 .IX Item "-Wunreachable-code"
2847 Warn if the compiler detects that code will never be executed.
2848 .Sp
2849 This option is intended to warn when the compiler detects that at
2850 least a whole line of source code will never be executed, because
2851 some condition is never satisfied or because it is after a
2852 procedure that never returns.
2853 .Sp
2854 It is possible for this option to produce a warning even though there
2855 are circumstances under which part of the affected line can be executed,
2856 so care should be taken when removing apparently-unreachable code.
2857 .Sp
2858 For instance, when a function is inlined, a warning may mean that the
2859 line is unreachable in only one inlined copy of the function.
2860 .Sp
2861 This option is not made part of \fB\-Wall\fR because in a debugging
2862 version of a program there is often substantial code which checks
2863 correct functioning of the program and is, hopefully, unreachable
2864 because the program does work.  Another common use of unreachable
2865 code is to provide behavior which is selectable at compile\-time.
2866 .IP "\fB\-Winline\fR" 4
2867 .IX Item "-Winline"
2868 Warn if a function can not be inlined and it was declared as inline.
2869 Even with this option, the compiler will not warn about failures to
2870 inline functions declared in system headers.
2871 .Sp
2872 The compiler uses a variety of heuristics to determine whether or not
2873 to inline a function.  For example, the compiler takes into account
2874 the size of the function being inlined and the amount of inlining
2875 that has already been done in the current function.  Therefore,
2876 seemingly insignificant changes in the source program can cause the
2877 warnings produced by \fB\-Winline\fR to appear or disappear.
2878 .IP "\fB\-Wno\-invalid\-offsetof\fR (\*(C+ only)" 4
2879 .IX Item "-Wno-invalid-offsetof ( only)"
2880 Suppress warnings from applying the \fBoffsetof\fR macro to a non-POD
2881 type.  According to the 1998 \s-1ISO\s0 \*(C+ standard, applying \fBoffsetof\fR
2882 to a non-POD type is undefined.  In existing \*(C+ implementations,
2883 however, \fBoffsetof\fR typically gives meaningful results even when
2884 applied to certain kinds of non-POD types. (Such as a simple
2885 \&\fBstruct\fR that fails to be a \s-1POD\s0 type only by virtue of having a
2886 constructor.)  This flag is for users who are aware that they are
2887 writing nonportable code and who have deliberately chosen to ignore the
2888 warning about it.
2889 .Sp
2890 The restrictions on \fBoffsetof\fR may be relaxed in a future version
2891 of the \*(C+ standard.
2892 .IP "\fB\-Wno\-int\-to\-pointer\-cast\fR (C only)" 4
2893 .IX Item "-Wno-int-to-pointer-cast (C only)"
2894 Suppress warnings from casts to pointer type of an integer of a
2895 different size.
2896 .IP "\fB\-Wno\-pointer\-to\-int\-cast\fR (C only)" 4
2897 .IX Item "-Wno-pointer-to-int-cast (C only)"
2898 Suppress warnings from casts from a pointer to an integer type of a
2899 different size.
2900 .IP "\fB\-Winvalid\-pch\fR" 4
2901 .IX Item "-Winvalid-pch"
2902 Warn if a precompiled header is found in
2903 the search path but can't be used.
2904 .IP "\fB\-Wlong\-long\fR" 4
2905 .IX Item "-Wlong-long"
2906 Warn if \fBlong long\fR type is used.  This is default.  To inhibit
2907 the warning messages, use \fB\-Wno\-long\-long\fR.  Flags
2908 \&\fB\-Wlong\-long\fR and \fB\-Wno\-long\-long\fR are taken into account
2909 only when \fB\-pedantic\fR flag is used.
2910 .IP "\fB\-Wvariadic\-macros\fR" 4
2911 .IX Item "-Wvariadic-macros"
2912 Warn if variadic macros are used in pedantic \s-1ISO\s0 C90 mode, or the \s-1GNU\s0
2913 alternate syntax when in pedantic \s-1ISO\s0 C99 mode.  This is default.
2914 To inhibit the warning messages, use \fB\-Wno\-variadic\-macros\fR.
2915 .IP "\fB\-Wvolatile\-register\-var\fR" 4
2916 .IX Item "-Wvolatile-register-var"
2917 Warn if a register variable is declared volatile.  The volatile
2918 modifier does not inhibit all optimizations that may eliminate reads
2919 and/or writes to register variables.
2920 .IP "\fB\-Wdisabled\-optimization\fR" 4
2921 .IX Item "-Wdisabled-optimization"
2922 Warn if a requested optimization pass is disabled.  This warning does
2923 not generally indicate that there is anything wrong with your code; it
2924 merely indicates that \s-1GCC\s0's optimizers were unable to handle the code
2925 effectively.  Often, the problem is that your code is too big or too
2926 complex; \s-1GCC\s0 will refuse to optimize programs when the optimization
2927 itself is likely to take inordinate amounts of time.
2928 .IP "\fB\-Wpointer\-sign\fR" 4
2929 .IX Item "-Wpointer-sign"
2930 Warn for pointer argument passing or assignment with different signedness.
2931 This option is only supported for C.  It is implied by \&\fB\-Wall\fR
2932 and by \fB\-pedantic\fR, which can be disabled with
2933 \&\fB\-Wno\-pointer\-sign\fR.
2934 .IP "\fB\-Werror\fR" 4
2935 .IX Item "-Werror"
2936 Make all warnings into errors.
2937 .IP "\fB\-Werror=\fR" 4
2938 .IX Item "-Werror="
2939 Make the specified warning into an errors.  The specifier for a
2940 warning is appended, for example \fB\-Werror=switch\fR turns the
2941 warnings controlled by \fB\-Wswitch\fR into errors.  This switch
2942 takes a negative form, to be used to negate \fB\-Werror\fR for
2943 specific warnings, for example \fB\-Wno\-error=switch\fR makes
2944 \&\fB\-Wswitch\fR warnings not be errors, even when \fB\-Werror\fR
2945 is in effect.  You can use the \fB\-fdiagnostics\-show\-option\fR
2946 option to have each controllable warning amended with the option which
2947 controls it, to determine what to use with this option.
2948 .Sp
2949 Note that specifying \fB\-Werror=\fR\fIfoo\fR automatically implies
2950 \&\fB\-W\fR\fIfoo\fR.  However, \fB\-Wno\-error=\fR\fIfoo\fR does not
2951 imply anything.
2952 .IP "\fB\-Wstack\-protector\fR" 4
2953 .IX Item "-Wstack-protector"
2954 This option is only active when \fB\-fstack\-protector\fR is active.  It
2955 warns about functions that will not be protected against stack smashing.
2956 .IP "\fB\-Woverlength\-strings\fR" 4
2957 .IX Item "-Woverlength-strings"
2958 Warn about string constants which are longer than the \*(L"minimum
2959 maximum\*(R" length specified in the C standard.  Modern compilers
2960 generally allow string constants which are much longer than the
2961 standard's minimum limit, but very portable programs should avoid
2962 using longer strings.
2963 .Sp
2964 The limit applies \fIafter\fR string constant concatenation, and does
2965 not count the trailing \s-1NUL\s0.  In C89, the limit was 509 characters; in
2966 C99, it was raised to 4095.  \*(C+98 does not specify a normative
2967 minimum maximum, so we do not diagnose overlength strings in \*(C+.
2968 .Sp
2969 This option is implied by \fB\-pedantic\fR, and can be disabled with
2970 \&\fB\-Wno\-overlength\-strings\fR.
2971 .Sh "Options for Debugging Your Program or \s-1GCC\s0"
2972 .IX Subsection "Options for Debugging Your Program or GCC"
2973 \&\s-1GCC\s0 has various special options that are used for debugging
2974 either your program or \s-1GCC:\s0
2975 .IP "\fB\-g\fR" 4
2976 .IX Item "-g"
2977 Produce debugging information in the operating system's native format
2978 (stabs, \s-1COFF\s0, \s-1XCOFF\s0, or \s-1DWARF\s0 2).  \s-1GDB\s0 can work with this debugging
2979 information.
2980 .Sp
2981 On most systems that use stabs format, \fB\-g\fR enables use of extra
2982 debugging information that only \s-1GDB\s0 can use; this extra information
2983 makes debugging work better in \s-1GDB\s0 but will probably make other debuggers
2984 crash or
2985 refuse to read the program.  If you want to control for certain whether
2986 to generate the extra information, use \fB\-gstabs+\fR, \fB\-gstabs\fR,
2987 \&\fB\-gxcoff+\fR, \fB\-gxcoff\fR, or \fB\-gvms\fR (see below).
2988 .Sp
2989 \&\s-1GCC\s0 allows you to use \fB\-g\fR with
2990 \&\fB\-O\fR.  The shortcuts taken by optimized code may occasionally
2991 produce surprising results: some variables you declared may not exist
2992 at all; flow of control may briefly move where you did not expect it;
2993 some statements may not be executed because they compute constant
2994 results or their values were already at hand; some statements may
2995 execute in different places because they were moved out of loops.
2996 .Sp
2997 Nevertheless it proves possible to debug optimized output.  This makes
2998 it reasonable to use the optimizer for programs that might have bugs.
2999 .Sp
3000 The following options are useful when \s-1GCC\s0 is generated with the
3001 capability for more than one debugging format.
3002 .IP "\fB\-ggdb\fR" 4
3003 .IX Item "-ggdb"
3004 Produce debugging information for use by \s-1GDB\s0.  This means to use the
3005 most expressive format available (\s-1DWARF\s0 2, stabs, or the native format
3006 if neither of those are supported), including \s-1GDB\s0 extensions if at all
3007 possible.
3008 .IP "\fB\-gstabs\fR" 4
3009 .IX Item "-gstabs"
3010 Produce debugging information in stabs format (if that is supported),
3011 without \s-1GDB\s0 extensions.  This is the format used by \s-1DBX\s0 on most \s-1BSD\s0
3012 systems.  On \s-1MIPS\s0, Alpha and System V Release 4 systems this option
3013 produces stabs debugging output which is not understood by \s-1DBX\s0 or \s-1SDB\s0.
3014 On System V Release 4 systems this option requires the \s-1GNU\s0 assembler.
3015 .IP "\fB\-feliminate\-unused\-debug\-symbols\fR" 4
3016 .IX Item "-feliminate-unused-debug-symbols"
3017 Produce debugging information in stabs format (if that is supported),
3018 for only symbols that are actually used.
3019 .IP "\fB\-femit\-class\-debug\-always\fR" 4
3020 .IX Item "-femit-class-debug-always"
3021 Instead of emitting debugging information for a \*(C+ class in only one
3022 object file, emit it in all object files using the class.  This option
3023 should be used only with debuggers that are unable to handle the way \s-1GCC\s0
3024 normally emits debugging information for classes because using this
3025 option will increase the size of debugging information by as much as a
3026 factor of two.
3027 .IP "\fB\-gstabs+\fR" 4
3028 .IX Item "-gstabs+"
3029 Produce debugging information in stabs format (if that is supported),
3030 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
3031 use of these extensions is likely to make other debuggers crash or
3032 refuse to read the program.
3033 .IP "\fB\-gcoff\fR" 4
3034 .IX Item "-gcoff"
3035 Produce debugging information in \s-1COFF\s0 format (if that is supported).
3036 This is the format used by \s-1SDB\s0 on most System V systems prior to
3037 System V Release 4.
3038 .IP "\fB\-gxcoff\fR" 4
3039 .IX Item "-gxcoff"
3040 Produce debugging information in \s-1XCOFF\s0 format (if that is supported).
3041 This is the format used by the \s-1DBX\s0 debugger on \s-1IBM\s0 \s-1RS/6000\s0 systems.
3042 .IP "\fB\-gxcoff+\fR" 4
3043 .IX Item "-gxcoff+"
3044 Produce debugging information in \s-1XCOFF\s0 format (if that is supported),
3045 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
3046 use of these extensions is likely to make other debuggers crash or
3047 refuse to read the program, and may cause assemblers other than the \s-1GNU\s0
3048 assembler (\s-1GAS\s0) to fail with an error.
3049 .IP "\fB\-gdwarf\-2\fR" 4
3050 .IX Item "-gdwarf-2"
3051 Produce debugging information in \s-1DWARF\s0 version 2 format (if that is
3052 supported).  This is the format used by \s-1DBX\s0 on \s-1IRIX\s0 6.  With this
3053 option, \s-1GCC\s0 uses features of \s-1DWARF\s0 version 3 when they are useful;
3054 version 3 is upward compatible with version 2, but may still cause
3055 problems for older debuggers.
3056 .IP "\fB\-gvms\fR" 4
3057 .IX Item "-gvms"
3058 Produce debugging information in \s-1VMS\s0 debug format (if that is
3059 supported).  This is the format used by \s-1DEBUG\s0 on \s-1VMS\s0 systems.
3060 .IP "\fB\-g\fR\fIlevel\fR" 4
3061 .IX Item "-glevel"
3062 .PD 0
3063 .IP "\fB\-ggdb\fR\fIlevel\fR" 4
3064 .IX Item "-ggdblevel"
3065 .IP "\fB\-gstabs\fR\fIlevel\fR" 4
3066 .IX Item "-gstabslevel"
3067 .IP "\fB\-gcoff\fR\fIlevel\fR" 4
3068 .IX Item "-gcofflevel"
3069 .IP "\fB\-gxcoff\fR\fIlevel\fR" 4
3070 .IX Item "-gxcofflevel"
3071 .IP "\fB\-gvms\fR\fIlevel\fR" 4
3072 .IX Item "-gvmslevel"
3073 .PD
3074 Request debugging information and also use \fIlevel\fR to specify how
3075 much information.  The default level is 2.
3076 .Sp
3077 Level 1 produces minimal information, enough for making backtraces in
3078 parts of the program that you don't plan to debug.  This includes
3079 descriptions of functions and external variables, but no information
3080 about local variables and no line numbers.
3081 .Sp
3082 Level 3 includes extra information, such as all the macro definitions
3083 present in the program.  Some debuggers support macro expansion when
3084 you use \fB\-g3\fR.
3085 .Sp
3086 \&\fB\-gdwarf\-2\fR does not accept a concatenated debug level, because
3087 \&\s-1GCC\s0 used to support an option \fB\-gdwarf\fR that meant to generate
3088 debug information in version 1 of the \s-1DWARF\s0 format (which is very
3089 different from version 2), and it would have been too confusing.  That
3090 debug format is long obsolete, but the option cannot be changed now.
3091 Instead use an additional \fB\-g\fR\fIlevel\fR option to change the
3092 debug level for \s-1DWARF2\s0.
3093 .IP "\fB\-feliminate\-dwarf2\-dups\fR" 4
3094 .IX Item "-feliminate-dwarf2-dups"
3095 Compress \s-1DWARF2\s0 debugging information by eliminating duplicated
3096 information about each symbol.  This option only makes sense when
3097 generating \s-1DWARF2\s0 debugging information with \fB\-gdwarf\-2\fR.
3098 .IP "\fB\-p\fR" 4
3099 .IX Item "-p"
3100 Generate extra code to write profile information suitable for the
3101 analysis program \fBprof\fR.  You must use this option when compiling
3102 the source files you want data about, and you must also use it when
3103 linking.
3104 .IP "\fB\-pg\fR" 4
3105 .IX Item "-pg"
3106 Generate extra code to write profile information suitable for the
3107 analysis program \fBgprof\fR.  You must use this option when compiling
3108 the source files you want data about, and you must also use it when
3109 linking.
3110 .IP "\fB\-Q\fR" 4
3111 .IX Item "-Q"
3112 Makes the compiler print out each function name as it is compiled, and
3113 print some statistics about each pass when it finishes.
3114 .IP "\fB\-ftime\-report\fR" 4
3115 .IX Item "-ftime-report"
3116 Makes the compiler print some statistics about the time consumed by each
3117 pass when it finishes.
3118 .IP "\fB\-fmem\-report\fR" 4
3119 .IX Item "-fmem-report"
3120 Makes the compiler print some statistics about permanent memory
3121 allocation when it finishes.
3122 .IP "\fB\-fprofile\-arcs\fR" 4
3123 .IX Item "-fprofile-arcs"
3124 Add code so that program flow \fIarcs\fR are instrumented.  During
3125 execution the program records how many times each branch and call is
3126 executed and how many times it is taken or returns.  When the compiled
3127 program exits it saves this data to a file called
3128 \&\fI\fIauxname\fI.gcda\fR for each source file.  The data may be used for
3129 profile-directed optimizations (\fB\-fbranch\-probabilities\fR), or for
3130 test coverage analysis (\fB\-ftest\-coverage\fR).  Each object file's
3131 \&\fIauxname\fR is generated from the name of the output file, if
3132 explicitly specified and it is not the final executable, otherwise it is
3133 the basename of the source file.  In both cases any suffix is removed
3134 (e.g. \fIfoo.gcda\fR for input file \fIdir/foo.c\fR, or
3135 \&\fIdir/foo.gcda\fR for output file specified as \fB\-o dir/foo.o\fR).
3136 .IP "\fB\-\-coverage\fR" 4
3137 .IX Item "--coverage"
3138 This option is used to compile and link code instrumented for coverage
3139 analysis.  The option is a synonym for \fB\-fprofile\-arcs\fR
3140 \&\fB\-ftest\-coverage\fR (when compiling) and \fB\-lgcov\fR (when
3141 linking).  See the documentation for those options for more details.
3142 .RS 4
3143 .IP "*" 4
3144 Compile the source files with \fB\-fprofile\-arcs\fR plus optimization
3145 and code generation options.  For test coverage analysis, use the
3146 additional \fB\-ftest\-coverage\fR option.  You do not need to profile
3147 every source file in a program.
3148 .IP "*" 4
3149 Link your object files with \fB\-lgcov\fR or \fB\-fprofile\-arcs\fR
3150 (the latter implies the former).
3151 .IP "*" 4
3152 Run the program on a representative workload to generate the arc profile
3153 information.  This may be repeated any number of times.  You can run
3154 concurrent instances of your program, and provided that the file system
3155 supports locking, the data files will be correctly updated.  Also
3156 \&\f(CW\*(C`fork\*(C'\fR calls are detected and correctly handled (double counting
3157 will not happen).
3158 .IP "*" 4
3159 For profile-directed optimizations, compile the source files again with
3160 the same optimization and code generation options plus
3161 \&\fB\-fbranch\-probabilities\fR.
3162 .IP "*" 4
3163 For test coverage analysis, use \fBgcov\fR to produce human readable
3164 information from the \fI.gcno\fR and \fI.gcda\fR files.  Refer to the
3165 \&\fBgcov\fR documentation for further information.
3166 .RE
3167 .RS 4
3168 .Sp
3169 With \fB\-fprofile\-arcs\fR, for each function of your program \s-1GCC\s0
3170 creates a program flow graph, then finds a spanning tree for the graph.
3171 Only arcs that are not on the spanning tree have to be instrumented: the
3172 compiler adds code to count the number of times that these arcs are
3173 executed.  When an arc is the only exit or only entrance to a block, the
3174 instrumentation code can be added to the block; otherwise, a new basic
3175 block must be created to hold the instrumentation code.
3176 .RE
3177 .IP "\fB\-ftest\-coverage\fR" 4
3178 .IX Item "-ftest-coverage"
3179 Produce a notes file that the \fBgcov\fR code-coverage utility can use to
3180 show program coverage.  Each source file's note file is called
3181 \&\fI\fIauxname\fI.gcno\fR.  Refer to the \fB\-fprofile\-arcs\fR option
3182 above for a description of \fIauxname\fR and instructions on how to
3183 generate test coverage data.  Coverage data will match the source files
3184 more closely, if you do not optimize.
3185 .IP "\fB\-d\fR\fIletters\fR" 4
3186 .IX Item "-dletters"
3187 .PD 0
3188 .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR" 4
3189 .IX Item "-fdump-rtl-pass"
3190 .PD
3191 Says to make debugging dumps during compilation at times specified by
3192 \&\fIletters\fR.    This is used for debugging the RTL-based passes of the
3193 compiler.  The file names for most of the dumps are made by appending a
3194 pass number and a word to the \fIdumpname\fR.  \fIdumpname\fR is generated
3195 from the name of the output file, if explicitly specified and it is not
3196 an executable, otherwise it is the basename of the source file.
3197 .Sp
3198 Most debug dumps can be enabled either passing a letter to the \fB\-d\fR
3199 option, or with a long \fB\-fdump\-rtl\fR switch; here are the possible
3200 letters for use in \fIletters\fR and \fIpass\fR, and their meanings:
3201 .RS 4
3202 .IP "\fB\-dA\fR" 4
3203 .IX Item "-dA"
3204 Annotate the assembler output with miscellaneous debugging information.
3205 .IP "\fB\-dB\fR" 4
3206 .IX Item "-dB"
3207 .PD 0
3208 .IP "\fB\-fdump\-rtl\-bbro\fR" 4
3209 .IX Item "-fdump-rtl-bbro"
3210 .PD
3211 Dump after block reordering, to \fI\fIfile\fI.148r.bbro\fR.
3212 .IP "\fB\-dc\fR" 4
3213 .IX Item "-dc"
3214 .PD 0
3215 .IP "\fB\-fdump\-rtl\-combine\fR" 4
3216 .IX Item "-fdump-rtl-combine"
3217 .PD
3218 Dump after instruction combination, to the file \fI\fIfile\fI.129r.combine\fR.
3219 .IP "\fB\-dC\fR" 4
3220 .IX Item "-dC"
3221 .PD 0
3222 .IP "\fB\-fdump\-rtl\-ce1\fR" 4
3223 .IX Item "-fdump-rtl-ce1"
3224 .IP "\fB\-fdump\-rtl\-ce2\fR" 4
3225 .IX Item "-fdump-rtl-ce2"
3226 .PD
3227 \&\fB\-dC\fR and \fB\-fdump\-rtl\-ce1\fR enable dumping after the
3228 first if conversion, to the file \fI\fIfile\fI.117r.ce1\fR.  \fB\-dC\fR
3229 and \fB\-fdump\-rtl\-ce2\fR enable dumping after the second if
3230 conversion, to the file \fI\fIfile\fI.130r.ce2\fR.
3231 .IP "\fB\-dd\fR" 4
3232 .IX Item "-dd"
3233 .PD 0
3234 .IP "\fB\-fdump\-rtl\-btl\fR" 4
3235 .IX Item "-fdump-rtl-btl"
3236 .IP "\fB\-fdump\-rtl\-dbr\fR" 4
3237 .IX Item "-fdump-rtl-dbr"
3238 .PD
3239 \&\fB\-dd\fR and \fB\-fdump\-rtl\-btl\fR enable dumping after branch
3240 target load optimization, to \fI\fIfile\fI.31.btl\fR.  \fB\-dd\fR
3241 and \fB\-fdump\-rtl\-dbr\fR enable dumping after delayed branch
3242 scheduling, to \fI\fIfile\fI.36.dbr\fR.
3243 .IP "\fB\-dD\fR" 4
3244 .IX Item "-dD"
3245 Dump all macro definitions, at the end of preprocessing, in addition to
3246 normal output.
3247 .IP "\fB\-dE\fR" 4
3248 .IX Item "-dE"
3249 .PD 0
3250 .IP "\fB\-fdump\-rtl\-ce3\fR" 4
3251 .IX Item "-fdump-rtl-ce3"
3252 .PD
3253 Dump after the third if conversion, to \fI\fIfile\fI.146r.ce3\fR.
3254 .IP "\fB\-df\fR" 4
3255 .IX Item "-df"
3256 .PD 0
3257 .IP "\fB\-fdump\-rtl\-cfg\fR" 4
3258 .IX Item "-fdump-rtl-cfg"
3259 .IP "\fB\-fdump\-rtl\-life\fR" 4
3260 .IX Item "-fdump-rtl-life"
3261 .PD
3262 \&\fB\-df\fR and \fB\-fdump\-rtl\-cfg\fR enable dumping after control
3263 and data flow analysis, to \fI\fIfile\fI.116r.cfg\fR.  \fB\-df\fR
3264 and \fB\-fdump\-rtl\-cfg\fR enable dumping dump after life analysis,
3265 to \fI\fIfile\fI.128r.life1\fR and \fI\fIfile\fI.135r.life2\fR.
3266 .IP "\fB\-dg\fR" 4
3267 .IX Item "-dg"
3268 .PD 0
3269 .IP "\fB\-fdump\-rtl\-greg\fR" 4
3270 .IX Item "-fdump-rtl-greg"
3271 .PD
3272 Dump after global register allocation, to \fI\fIfile\fI.139r.greg\fR.
3273 .IP "\fB\-dG\fR" 4
3274 .IX Item "-dG"
3275 .PD 0
3276 .IP "\fB\-fdump\-rtl\-gcse\fR" 4
3277 .IX Item "-fdump-rtl-gcse"
3278 .IP "\fB\-fdump\-rtl\-bypass\fR" 4
3279 .IX Item "-fdump-rtl-bypass"
3280 .PD
3281 \&\fB\-dG\fR and \fB\-fdump\-rtl\-gcse\fR enable dumping after \s-1GCSE\s0, to
3282 \&\fI\fIfile\fI.114r.gcse\fR.  \fB\-dG\fR and \fB\-fdump\-rtl\-bypass\fR
3283 enable dumping after jump bypassing and control flow optimizations, to
3284 \&\fI\fIfile\fI.115r.bypass\fR.
3285 .IP "\fB\-dh\fR" 4
3286 .IX Item "-dh"
3287 .PD 0
3288 .IP "\fB\-fdump\-rtl\-eh\fR" 4
3289 .IX Item "-fdump-rtl-eh"
3290 .PD
3291 Dump after finalization of \s-1EH\s0 handling code, to \fI\fIfile\fI.02.eh\fR.
3292 .IP "\fB\-di\fR" 4
3293 .IX Item "-di"
3294 .PD 0
3295 .IP "\fB\-fdump\-rtl\-sibling\fR" 4
3296 .IX Item "-fdump-rtl-sibling"
3297 .PD
3298 Dump after sibling call optimizations, to \fI\fIfile\fI.106r.sibling\fR.
3299 .IP "\fB\-dj\fR" 4
3300 .IX Item "-dj"
3301 .PD 0
3302 .IP "\fB\-fdump\-rtl\-jump\fR" 4
3303 .IX Item "-fdump-rtl-jump"
3304 .PD
3305 Dump after the first jump optimization, to \fI\fIfile\fI.112r.jump\fR.
3306 .IP "\fB\-dk\fR" 4
3307 .IX Item "-dk"
3308 .PD 0
3309 .IP "\fB\-fdump\-rtl\-stack\fR" 4
3310 .IX Item "-fdump-rtl-stack"
3311 .PD
3312 Dump after conversion from registers to stack, to \fI\fIfile\fI.152r.stack\fR.
3313 .IP "\fB\-dl\fR" 4
3314 .IX Item "-dl"
3315 .PD 0
3316 .IP "\fB\-fdump\-rtl\-lreg\fR" 4
3317 .IX Item "-fdump-rtl-lreg"
3318 .PD
3319 Dump after local register allocation, to \fI\fIfile\fI.138r.lreg\fR.
3320 .IP "\fB\-dL\fR" 4
3321 .IX Item "-dL"
3322 .PD 0
3323 .IP "\fB\-fdump\-rtl\-loop2\fR" 4
3324 .IX Item "-fdump-rtl-loop2"
3325 .PD
3326 \&\fB\-dL\fR and \fB\-fdump\-rtl\-loop2\fR enable dumping after the
3327 loop optimization pass, to \fI\fIfile\fI.119r.loop2\fR,
3328 \&\fI\fIfile\fI.120r.loop2_init\fR,
3329 \&\fI\fIfile\fI.121r.loop2_invariant\fR, and
3330 \&\fI\fIfile\fI.125r.loop2_done\fR.
3331 .IP "\fB\-dm\fR" 4
3332 .IX Item "-dm"
3333 .PD 0
3334 .IP "\fB\-fdump\-rtl\-sms\fR" 4
3335 .IX Item "-fdump-rtl-sms"
3336 .PD
3337 Dump after modulo scheduling, to \fI\fIfile\fI.136r.sms\fR.
3338 .IP "\fB\-dM\fR" 4
3339 .IX Item "-dM"
3340 .PD 0
3341 .IP "\fB\-fdump\-rtl\-mach\fR" 4
3342 .IX Item "-fdump-rtl-mach"
3343 .PD
3344 Dump after performing the machine dependent reorganization pass, to
3345 \&\fI\fIfile\fI.155r.mach\fR.
3346 .IP "\fB\-dn\fR" 4
3347 .IX Item "-dn"
3348 .PD 0
3349 .IP "\fB\-fdump\-rtl\-rnreg\fR" 4
3350 .IX Item "-fdump-rtl-rnreg"
3351 .PD
3352 Dump after register renumbering, to \fI\fIfile\fI.147r.rnreg\fR.
3353 .IP "\fB\-dN\fR" 4
3354 .IX Item "-dN"
3355 .PD 0
3356 .IP "\fB\-fdump\-rtl\-regmove\fR" 4
3357 .IX Item "-fdump-rtl-regmove"
3358 .PD
3359 Dump after the register move pass, to \fI\fIfile\fI.132r.regmove\fR.
3360 .IP "\fB\-do\fR" 4
3361 .IX Item "-do"
3362 .PD 0
3363 .IP "\fB\-fdump\-rtl\-postreload\fR" 4
3364 .IX Item "-fdump-rtl-postreload"
3365 .PD
3366 Dump after post-reload optimizations, to \fI\fIfile\fI.24.postreload\fR.
3367 .IP "\fB\-dr\fR" 4
3368 .IX Item "-dr"
3369 .PD 0
3370 .IP "\fB\-fdump\-rtl\-expand\fR" 4
3371 .IX Item "-fdump-rtl-expand"
3372 .PD
3373 Dump after \s-1RTL\s0 generation, to \fI\fIfile\fI.104r.expand\fR.
3374 .IP "\fB\-dR\fR" 4
3375 .IX Item "-dR"
3376 .PD 0
3377 .IP "\fB\-fdump\-rtl\-sched2\fR" 4
3378 .IX Item "-fdump-rtl-sched2"
3379 .PD
3380 Dump after the second scheduling pass, to \fI\fIfile\fI.150r.sched2\fR.
3381 .IP "\fB\-ds\fR" 4
3382 .IX Item "-ds"
3383 .PD 0
3384 .IP "\fB\-fdump\-rtl\-cse\fR" 4
3385 .IX Item "-fdump-rtl-cse"
3386 .PD
3387 Dump after \s-1CSE\s0 (including the jump optimization that sometimes follows
3388 \&\s-1CSE\s0), to \fI\fIfile\fI.113r.cse\fR.
3389 .IP "\fB\-dS\fR" 4
3390 .IX Item "-dS"
3391 .PD 0
3392 .IP "\fB\-fdump\-rtl\-sched\fR" 4
3393 .IX Item "-fdump-rtl-sched"
3394 .PD
3395 Dump after the first scheduling pass, to \fI\fIfile\fI.21.sched\fR.
3396 .IP "\fB\-dt\fR" 4
3397 .IX Item "-dt"
3398 .PD 0
3399 .IP "\fB\-fdump\-rtl\-cse2\fR" 4
3400 .IX Item "-fdump-rtl-cse2"
3401 .PD
3402 Dump after the second \s-1CSE\s0 pass (including the jump optimization that
3403 sometimes follows \s-1CSE\s0), to \fI\fIfile\fI.127r.cse2\fR.
3404 .IP "\fB\-dT\fR" 4
3405 .IX Item "-dT"
3406 .PD 0
3407 .IP "\fB\-fdump\-rtl\-tracer\fR" 4
3408 .IX Item "-fdump-rtl-tracer"
3409 .PD
3410 Dump after running tracer, to \fI\fIfile\fI.118r.tracer\fR.
3411 .IP "\fB\-dV\fR" 4
3412 .IX Item "-dV"
3413 .PD 0
3414 .IP "\fB\-fdump\-rtl\-vpt\fR" 4
3415 .IX Item "-fdump-rtl-vpt"
3416 .IP "\fB\-fdump\-rtl\-vartrack\fR" 4
3417 .IX Item "-fdump-rtl-vartrack"
3418 .PD
3419 \&\fB\-dV\fR and \fB\-fdump\-rtl\-vpt\fR enable dumping after the value
3420 profile transformations, to \fI\fIfile\fI.10.vpt\fR.  \fB\-dV\fR
3421 and \fB\-fdump\-rtl\-vartrack\fR enable dumping after variable tracking,
3422 to \fI\fIfile\fI.154r.vartrack\fR.
3423 .IP "\fB\-dw\fR" 4
3424 .IX Item "-dw"
3425 .PD 0
3426 .IP "\fB\-fdump\-rtl\-flow2\fR" 4
3427 .IX Item "-fdump-rtl-flow2"
3428 .PD
3429 Dump after the second flow pass, to \fI\fIfile\fI.142r.flow2\fR.
3430 .IP "\fB\-dz\fR" 4
3431 .IX Item "-dz"
3432 .PD 0
3433 .IP "\fB\-fdump\-rtl\-peephole2\fR" 4
3434 .IX Item "-fdump-rtl-peephole2"
3435 .PD
3436 Dump after the peephole pass, to \fI\fIfile\fI.145r.peephole2\fR.
3437 .IP "\fB\-dZ\fR" 4
3438 .IX Item "-dZ"
3439 .PD 0
3440 .IP "\fB\-fdump\-rtl\-web\fR" 4
3441 .IX Item "-fdump-rtl-web"
3442 .PD
3443 Dump after live range splitting, to \fI\fIfile\fI.126r.web\fR.
3444 .IP "\fB\-da\fR" 4
3445 .IX Item "-da"
3446 .PD 0
3447 .IP "\fB\-fdump\-rtl\-all\fR" 4
3448 .IX Item "-fdump-rtl-all"
3449 .PD
3450 Produce all the dumps listed above.
3451 .IP "\fB\-dH\fR" 4
3452 .IX Item "-dH"
3453 Produce a core dump whenever an error occurs.
3454 .IP "\fB\-dm\fR" 4
3455 .IX Item "-dm"
3456 Print statistics on memory usage, at the end of the run, to
3457 standard error.
3458 .IP "\fB\-dp\fR" 4
3459 .IX Item "-dp"
3460 Annotate the assembler output with a comment indicating which
3461 pattern and alternative was used.  The length of each instruction is
3462 also printed.
3463 .IP "\fB\-dP\fR" 4
3464 .IX Item "-dP"
3465 Dump the \s-1RTL\s0 in the assembler output as a comment before each instruction.
3466 Also turns on \fB\-dp\fR annotation.
3467 .IP "\fB\-dv\fR" 4
3468 .IX Item "-dv"
3469 For each of the other indicated dump files (either with \fB\-d\fR or
3470 \&\fB\-fdump\-rtl\-\fR\fIpass\fR), dump a representation of the control flow
3471 graph suitable for viewing with \s-1VCG\s0 to \fI\fIfile\fI.\fIpass\fI.vcg\fR.
3472 .IP "\fB\-dx\fR" 4
3473 .IX Item "-dx"
3474 Just generate \s-1RTL\s0 for a function instead of compiling it.  Usually used
3475 with \fBr\fR (\fB\-fdump\-rtl\-expand\fR).
3476 .IP "\fB\-dy\fR" 4
3477 .IX Item "-dy"
3478 Dump debugging information during parsing, to standard error.
3479 .RE
3480 .RS 4
3481 .RE
3482 .IP "\fB\-fdump\-noaddr\fR" 4
3483 .IX Item "-fdump-noaddr"
3484 When doing debugging dumps (see \fB\-d\fR option above), suppress
3485 address output.  This makes it more feasible to use diff on debugging
3486 dumps for compiler invocations with different compiler binaries and/or
3487 different text / bss / data / heap / stack / dso start locations.
3488 .IP "\fB\-fdump\-unnumbered\fR" 4
3489 .IX Item "-fdump-unnumbered"
3490 When doing debugging dumps (see \fB\-d\fR option above), suppress instruction
3491 numbers, line number note and address output.  This makes it more feasible to
3492 use diff on debugging dumps for compiler invocations with different
3493 options, in particular with and without \fB\-g\fR.
3494 .IP "\fB\-fdump\-translation\-unit\fR (\*(C+ only)" 4
3495 .IX Item "-fdump-translation-unit ( only)"
3496 .PD 0
3497 .IP "\fB\-fdump\-translation\-unit\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
3498 .IX Item "-fdump-translation-unit-options ( only)"
3499 .PD
3500 Dump a representation of the tree structure for the entire translation
3501 unit to a file.  The file name is made by appending \fI.tu\fR to the
3502 source file name.  If the \fB\-\fR\fIoptions\fR form is used, \fIoptions\fR
3503 controls the details of the dump as described for the
3504 \&\fB\-fdump\-tree\fR options.
3505 .IP "\fB\-fdump\-class\-hierarchy\fR (\*(C+ only)" 4
3506 .IX Item "-fdump-class-hierarchy ( only)"
3507 .PD 0
3508 .IP "\fB\-fdump\-class\-hierarchy\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
3509 .IX Item "-fdump-class-hierarchy-options ( only)"
3510 .PD
3511 Dump a representation of each class's hierarchy and virtual function
3512 table layout to a file.  The file name is made by appending \fI.class\fR
3513 to the source file name.  If the \fB\-\fR\fIoptions\fR form is used,
3514 \&\fIoptions\fR controls the details of the dump as described for the
3515 \&\fB\-fdump\-tree\fR options.
3516 .IP "\fB\-fdump\-ipa\-\fR\fIswitch\fR" 4
3517 .IX Item "-fdump-ipa-switch"
3518 Control the dumping at various stages of inter-procedural analysis
3519 language tree to a file.  The file name is generated by appending a switch
3520 specific suffix to the source file name.  The following dumps are possible:
3521 .RS 4
3522 .IP "\fBall\fR" 4
3523 .IX Item "all"
3524 Enables all inter-procedural analysis dumps; currently the only produced
3525 dump is the \fBcgraph\fR dump.
3526 .IP "\fBcgraph\fR" 4
3527 .IX Item "cgraph"
3528 Dumps information about call-graph optimization, unused function removal,
3529 and inlining decisions.
3530 .RE
3531 .RS 4
3532 .RE
3533 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR" 4
3534 .IX Item "-fdump-tree-switch"
3535 .PD 0
3536 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR" 4
3537 .IX Item "-fdump-tree-switch-options"
3538 .PD
3539 Control the dumping at various stages of processing the intermediate
3540 language tree to a file.  The file name is generated by appending a switch
3541 specific suffix to the source file name.  If the \fB\-\fR\fIoptions\fR
3542 form is used, \fIoptions\fR is a list of \fB\-\fR separated options that
3543 control the details of the dump.  Not all options are applicable to all
3544 dumps, those which are not meaningful will be ignored.  The following
3545 options are available
3546 .RS 4
3547 .IP "\fBaddress\fR" 4
3548 .IX Item "address"
3549 Print the address of each node.  Usually this is not meaningful as it
3550 changes according to the environment and source file.  Its primary use
3551 is for tying up a dump file with a debug environment.
3552 .IP "\fBslim\fR" 4
3553 .IX Item "slim"
3554 Inhibit dumping of members of a scope or body of a function merely
3555 because that scope has been reached.  Only dump such items when they
3556 are directly reachable by some other path.  When dumping pretty-printed
3557 trees, this option inhibits dumping the bodies of control structures.
3558 .IP "\fBraw\fR" 4
3559 .IX Item "raw"
3560 Print a raw representation of the tree.  By default, trees are
3561 pretty-printed into a C\-like representation.
3562 .IP "\fBdetails\fR" 4
3563 .IX Item "details"
3564 Enable more detailed dumps (not honored by every dump option).
3565 .IP "\fBstats\fR" 4
3566 .IX Item "stats"
3567 Enable dumping various statistics about the pass (not honored by every dump
3568 option).
3569 .IP "\fBblocks\fR" 4
3570 .IX Item "blocks"
3571 Enable showing basic block boundaries (disabled in raw dumps).
3572 .IP "\fBvops\fR" 4
3573 .IX Item "vops"
3574 Enable showing virtual operands for every statement.
3575 .IP "\fBlineno\fR" 4
3576 .IX Item "lineno"
3577 Enable showing line numbers for statements.
3578 .IP "\fBuid\fR" 4
3579 .IX Item "uid"
3580 Enable showing the unique \s-1ID\s0 (\f(CW\*(C`DECL_UID\*(C'\fR) for each variable.
3581 .IP "\fBall\fR" 4
3582 .IX Item "all"
3583 Turn on all options, except \fBraw\fR, \fBslim\fR and \fBlineno\fR.
3584 .RE
3585 .RS 4
3586 .Sp
3587 The following tree dumps are possible:
3588 .IP "\fBoriginal\fR" 4
3589 .IX Item "original"
3590 Dump before any tree based optimization, to \fI\fIfile\fI.original\fR.
3591 .IP "\fBoptimized\fR" 4
3592 .IX Item "optimized"
3593 Dump after all tree based optimization, to \fI\fIfile\fI.optimized\fR.
3594 .IP "\fBinlined\fR" 4
3595 .IX Item "inlined"
3596 Dump after function inlining, to \fI\fIfile\fI.inlined\fR.
3597 .IP "\fBgimple\fR" 4
3598 .IX Item "gimple"
3599 Dump each function before and after the gimplification pass to a file.  The
3600 file name is made by appending \fI.gimple\fR to the source file name.
3601 .IP "\fBcfg\fR" 4
3602 .IX Item "cfg"
3603 Dump the control flow graph of each function to a file.  The file name is
3604 made by appending \fI.cfg\fR to the source file name.
3605 .IP "\fBvcg\fR" 4
3606 .IX Item "vcg"
3607 Dump the control flow graph of each function to a file in \s-1VCG\s0 format.  The
3608 file name is made by appending \fI.vcg\fR to the source file name.  Note
3609 that if the file contains more than one function, the generated file cannot
3610 be used directly by \s-1VCG\s0.  You will need to cut and paste each function's
3611 graph into its own separate file first.
3612 .IP "\fBch\fR" 4
3613 .IX Item "ch"
3614 Dump each function after copying loop headers.  The file name is made by
3615 appending \fI.ch\fR to the source file name.
3616 .IP "\fBssa\fR" 4
3617 .IX Item "ssa"
3618 Dump \s-1SSA\s0 related information to a file.  The file name is made by appending
3619 \&\fI.ssa\fR to the source file name.
3620 .IP "\fBsalias\fR" 4
3621 .IX Item "salias"
3622 Dump structure aliasing variable information to a file.  This file name
3623 is made by appending \fI.salias\fR to the source file name.
3624 .IP "\fBalias\fR" 4
3625 .IX Item "alias"
3626 Dump aliasing information for each function.  The file name is made by
3627 appending \fI.alias\fR to the source file name.
3628 .IP "\fBccp\fR" 4
3629 .IX Item "ccp"
3630 Dump each function after \s-1CCP\s0.  The file name is made by appending
3631 \&\fI.ccp\fR to the source file name.
3632 .IP "\fBstoreccp\fR" 4
3633 .IX Item "storeccp"
3634 Dump each function after \s-1STORE\-CCP\s0.  The file name is made by appending
3635 \&\fI.storeccp\fR to the source file name.
3636 .IP "\fBpre\fR" 4
3637 .IX Item "pre"
3638 Dump trees after partial redundancy elimination.  The file name is made
3639 by appending \fI.pre\fR to the source file name.
3640 .IP "\fBfre\fR" 4
3641 .IX Item "fre"
3642 Dump trees after full redundancy elimination.  The file name is made
3643 by appending \fI.fre\fR to the source file name.
3644 .IP "\fBcopyprop\fR" 4
3645 .IX Item "copyprop"
3646 Dump trees after copy propagation.  The file name is made
3647 by appending \fI.copyprop\fR to the source file name.
3648 .IP "\fBstore_copyprop\fR" 4
3649 .IX Item "store_copyprop"
3650 Dump trees after store copy\-propagation.  The file name is made
3651 by appending \fI.store_copyprop\fR to the source file name.
3652 .IP "\fBdce\fR" 4
3653 .IX Item "dce"
3654 Dump each function after dead code elimination.  The file name is made by
3655 appending \fI.dce\fR to the source file name.
3656 .IP "\fBmudflap\fR" 4
3657 .IX Item "mudflap"
3658 Dump each function after adding mudflap instrumentation.  The file name is
3659 made by appending \fI.mudflap\fR to the source file name.
3660 .IP "\fBsra\fR" 4
3661 .IX Item "sra"
3662 Dump each function after performing scalar replacement of aggregates.  The
3663 file name is made by appending \fI.sra\fR to the source file name.
3664 .IP "\fBsink\fR" 4
3665 .IX Item "sink"
3666 Dump each function after performing code sinking.  The file name is made
3667 by appending \fI.sink\fR to the source file name. 
3668 .IP "\fBdom\fR" 4
3669 .IX Item "dom"
3670 Dump each function after applying dominator tree optimizations.  The file
3671 name is made by appending \fI.dom\fR to the source file name.
3672 .IP "\fBdse\fR" 4
3673 .IX Item "dse"
3674 Dump each function after applying dead store elimination.  The file
3675 name is made by appending \fI.dse\fR to the source file name.
3676 .IP "\fBphiopt\fR" 4
3677 .IX Item "phiopt"
3678 Dump each function after optimizing \s-1PHI\s0 nodes into straightline code.  The file
3679 name is made by appending \fI.phiopt\fR to the source file name.
3680 .IP "\fBforwprop\fR" 4
3681 .IX Item "forwprop"
3682 Dump each function after forward propagating single use variables.  The file
3683 name is made by appending \fI.forwprop\fR to the source file name.
3684 .IP "\fBcopyrename\fR" 4
3685 .IX Item "copyrename"
3686 Dump each function after applying the copy rename optimization.  The file
3687 name is made by appending \fI.copyrename\fR to the source file name.
3688 .IP "\fBnrv\fR" 4
3689 .IX Item "nrv"
3690 Dump each function after applying the named return value optimization on
3691 generic trees.  The file name is made by appending \fI.nrv\fR to the source
3692 file name.
3693 .IP "\fBvect\fR" 4
3694 .IX Item "vect"
3695 Dump each function after applying vectorization of loops.  The file name is
3696 made by appending \fI.vect\fR to the source file name.
3697 .IP "\fBvrp\fR" 4
3698 .IX Item "vrp"
3699 Dump each function after Value Range Propagation (\s-1VRP\s0).  The file name
3700 is made by appending \fI.vrp\fR to the source file name.
3701 .IP "\fBall\fR" 4
3702 .IX Item "all"
3703 Enable all the available tree dumps with the flags provided in this option.
3704 .RE
3705 .RS 4
3706 .RE
3707 .IP "\fB\-ftree\-vectorizer\-verbose=\fR\fIn\fR" 4
3708 .IX Item "-ftree-vectorizer-verbose=n"
3709 This option controls the amount of debugging output the vectorizer prints.
3710 This information is written to standard error, unless 
3711 \&\fB\-fdump\-tree\-all\fR or \fB\-fdump\-tree\-vect\fR is specified, 
3712 in which case it is output to the usual dump listing file, \fI.vect\fR.
3713 For \fIn\fR=0 no diagnostic information is reported.
3714 If \fIn\fR=1 the vectorizer reports each loop that got vectorized, 
3715 and the total number of loops that got vectorized.
3716 If \fIn\fR=2 the vectorizer also reports non-vectorized loops that passed 
3717 the first analysis phase (vect_analyze_loop_form) \- i.e. countable, 
3718 inner\-most, single\-bb, single\-entry/exit loops.  This is the same verbosity 
3719 level that \fB\-fdump\-tree\-vect\-stats\fR uses.
3720 Higher verbosity levels mean either more information dumped for each 
3721 reported loop, or same amount of information reported for more loops:
3722 If \fIn\fR=3, alignment related information is added to the reports.
3723 If \fIn\fR=4, data-references related information (e.g. memory dependences, 
3724 memory access\-patterns) is added to the reports.
3725 If \fIn\fR=5, the vectorizer reports also non-vectorized inner-most loops 
3726 that did not pass the first analysis phase (i.e. may not be countable, or 
3727 may have complicated control\-flow).
3728 If \fIn\fR=6, the vectorizer reports also non-vectorized nested loops.
3729 For \fIn\fR=7, all the information the vectorizer generates during its 
3730 analysis and transformation is reported.  This is the same verbosity level
3731 that \fB\-fdump\-tree\-vect\-details\fR uses.
3732 .IP "\fB\-frandom\-seed=\fR\fIstring\fR" 4
3733 .IX Item "-frandom-seed=string"
3734 This option provides a seed that \s-1GCC\s0 uses when it would otherwise use
3735 random numbers.  It is used to generate certain symbol names
3736 that have to be different in every compiled file.  It is also used to
3737 place unique stamps in coverage data files and the object files that
3738 produce them.  You can use the \fB\-frandom\-seed\fR option to produce
3739 reproducibly identical object files.
3740 .Sp
3741 The \fIstring\fR should be different for every file you compile.
3742 .IP "\fB\-fsched\-verbose=\fR\fIn\fR" 4
3743 .IX Item "-fsched-verbose=n"
3744 On targets that use instruction scheduling, this option controls the
3745 amount of debugging output the scheduler prints.  This information is
3746 written to standard error, unless \fB\-dS\fR or \fB\-dR\fR is
3747 specified, in which case it is output to the usual dump
3748 listing file, \fI.sched\fR or \fI.sched2\fR respectively.  However
3749 for \fIn\fR greater than nine, the output is always printed to standard
3750 error.
3751 .Sp
3752 For \fIn\fR greater than zero, \fB\-fsched\-verbose\fR outputs the
3753 same information as \fB\-dRS\fR.  For \fIn\fR greater than one, it
3754 also output basic block probabilities, detailed ready list information
3755 and unit/insn info.  For \fIn\fR greater than two, it includes \s-1RTL\s0
3756 at abort point, control-flow and regions info.  And for \fIn\fR over
3757 four, \fB\-fsched\-verbose\fR also includes dependence info.
3758 .IP "\fB\-save\-temps\fR" 4
3759 .IX Item "-save-temps"
3760 Store the usual \*(L"temporary\*(R" intermediate files permanently; place them
3761 in the current directory and name them based on the source file.  Thus,
3762 compiling \fIfoo.c\fR with \fB\-c \-save\-temps\fR would produce files
3763 \&\fIfoo.i\fR and \fIfoo.s\fR, as well as \fIfoo.o\fR.  This creates a
3764 preprocessed \fIfoo.i\fR output file even though the compiler now
3765 normally uses an integrated preprocessor.
3766 .Sp
3767 When used in combination with the \fB\-x\fR command line option,
3768 \&\fB\-save\-temps\fR is sensible enough to avoid over writing an
3769 input source file with the same extension as an intermediate file.
3770 The corresponding intermediate file may be obtained by renaming the
3771 source file before using \fB\-save\-temps\fR.
3772 .IP "\fB\-time\fR" 4
3773 .IX Item "-time"
3774 Report the \s-1CPU\s0 time taken by each subprocess in the compilation
3775 sequence.  For C source files, this is the compiler proper and assembler
3776 (plus the linker if linking is done).  The output looks like this:
3777 .Sp
3778 .Vb 2
3779 \&        # cc1 0.12 0.01
3780 \&        # as 0.00 0.01
3781 .Ve
3782 .Sp
3783 The first number on each line is the \*(L"user time\*(R", that is time spent
3784 executing the program itself.  The second number is \*(L"system time\*(R",
3785 time spent executing operating system routines on behalf of the program.
3786 Both numbers are in seconds.
3787 .IP "\fB\-fvar\-tracking\fR" 4
3788 .IX Item "-fvar-tracking"
3789 Run variable tracking pass.  It computes where variables are stored at each
3790 position in code.  Better debugging information is then generated
3791 (if the debugging information format supports this information).
3792 .Sp
3793 It is enabled by default when compiling with optimization (\fB\-Os\fR,
3794 \&\fB\-O\fR, \fB\-O2\fR, ...), debugging information (\fB\-g\fR) and
3795 the debug info format supports it.
3796 .IP "\fB\-print\-file\-name=\fR\fIlibrary\fR" 4
3797 .IX Item "-print-file-name=library"
3798 Print the full absolute name of the library file \fIlibrary\fR that
3799 would be used when linking\-\-\-and don't do anything else.  With this
3800 option, \s-1GCC\s0 does not compile or link anything; it just prints the
3801 file name.
3802 .IP "\fB\-print\-multi\-directory\fR" 4
3803 .IX Item "-print-multi-directory"
3804 Print the directory name corresponding to the multilib selected by any
3805 other switches present in the command line.  This directory is supposed
3806 to exist in \fB\s-1GCC_EXEC_PREFIX\s0\fR.
3807 .IP "\fB\-print\-multi\-lib\fR" 4
3808 .IX Item "-print-multi-lib"
3809 Print the mapping from multilib directory names to compiler switches
3810 that enable them.  The directory name is separated from the switches by
3811 \&\fB;\fR, and each switch starts with an \fB@} instead of the
3812 \&\f(CB@samp\fB{\-\fR, without spaces between multiple switches.  This is supposed to
3813 ease shell\-processing.
3814 .IP "\fB\-print\-prog\-name=\fR\fIprogram\fR" 4
3815 .IX Item "-print-prog-name=program"
3816 Like \fB\-print\-file\-name\fR, but searches for a program such as \fBcpp\fR.
3817 .IP "\fB\-print\-libgcc\-file\-name\fR" 4
3818 .IX Item "-print-libgcc-file-name"
3819 Same as \fB\-print\-file\-name=libgcc.a\fR.
3820 .Sp
3821 This is useful when you use \fB\-nostdlib\fR or \fB\-nodefaultlibs\fR
3822 but you do want to link with \fIlibgcc.a\fR.  You can do
3823 .Sp
3824 .Vb 1
3825 \&        gcc -nostdlib <files>... `gcc -print-libgcc-file-name`
3826 .Ve
3827 .IP "\fB\-print\-search\-dirs\fR" 4
3828 .IX Item "-print-search-dirs"
3829 Print the name of the configured installation directory and a list of
3830 program and library directories \fBgcc\fR will search\-\-\-and don't do anything else.
3831 .Sp
3832 This is useful when \fBgcc\fR prints the error message
3833 \&\fBinstallation problem, cannot exec cpp0: No such file or directory\fR.
3834 To resolve this you either need to put \fIcpp0\fR and the other compiler
3835 components where \fBgcc\fR expects to find them, or you can set the environment
3836 variable \fB\s-1GCC_EXEC_PREFIX\s0\fR to the directory where you installed them.
3837 Don't forget the trailing \fB/\fR.
3838 .IP "\fB\-dumpmachine\fR" 4
3839 .IX Item "-dumpmachine"
3840 Print the compiler's target machine (for example,
3841 \&\fBi686\-pc\-linux\-gnu\fR)\-\-\-and don't do anything else.
3842 .IP "\fB\-dumpversion\fR" 4
3843 .IX Item "-dumpversion"
3844 Print the compiler version (for example, \fB3.0\fR)\-\-\-and don't do
3845 anything else.
3846 .IP "\fB\-dumpspecs\fR" 4
3847 .IX Item "-dumpspecs"
3848 Print the compiler's built-in specs\-\-\-and don't do anything else.  (This
3849 is used when \s-1GCC\s0 itself is being built.)  
3850 .IP "\fB\-feliminate\-unused\-debug\-types\fR" 4
3851 .IX Item "-feliminate-unused-debug-types"
3852 Normally, when producing \s-1DWARF2\s0 output, \s-1GCC\s0 will emit debugging
3853 information for all types declared in a compilation
3854 unit, regardless of whether or not they are actually used
3855 in that compilation unit.  Sometimes this is useful, such as
3856 if, in the debugger, you want to cast a value to a type that is
3857 not actually used in your program (but is declared).  More often,
3858 however, this results in a significant amount of wasted space.
3859 With this option, \s-1GCC\s0 will avoid producing debug symbol output
3860 for types that are nowhere used in the source file being compiled.
3861 .Sh "Options That Control Optimization"
3862 .IX Subsection "Options That Control Optimization"
3863 These options control various sorts of optimizations.
3864 .PP
3865 Without any optimization option, the compiler's goal is to reduce the
3866 cost of compilation and to make debugging produce the expected
3867 results.  Statements are independent: if you stop the program with a
3868 breakpoint between statements, you can then assign a new value to any
3869 variable or change the program counter to any other statement in the
3870 function and get exactly the results you would expect from the source
3871 code.
3872 .PP
3873 Turning on optimization flags makes the compiler attempt to improve
3874 the performance and/or code size at the expense of compilation time
3875 and possibly the ability to debug the program.
3876 .PP
3877 The compiler performs optimization based on the knowledge it has of
3878 the program.  Optimization levels \fB\-O\fR and above, in
3879 particular, enable \fIunit-at-a-time\fR mode, which allows the
3880 compiler to consider information gained from later functions in
3881 the file when compiling a function.  Compiling multiple files at
3882 once to a single output file in \fIunit-at-a-time\fR mode allows
3883 the compiler to use information gained from all of the files when
3884 compiling each of them.
3885 .PP
3886 Not all optimizations are controlled directly by a flag.  Only
3887 optimizations that have a flag are listed.
3888 .IP "\fB\-O\fR" 4
3889 .IX Item "-O"
3890 .PD 0
3891 .IP "\fB\-O1\fR" 4
3892 .IX Item "-O1"
3893 .PD
3894 Optimize.  Optimizing compilation takes somewhat more time, and a lot
3895 more memory for a large function.
3896 .Sp
3897 With \fB\-O\fR, the compiler tries to reduce code size and execution
3898 time, without performing any optimizations that take a great deal of
3899 compilation time.
3900 .Sp
3901 \&\fB\-O\fR turns on the following optimization flags:
3902 \&\fB\-fdefer\-pop 
3903 \&\-fdelayed\-branch 
3904 \&\-fguess\-branch\-probability 
3905 \&\-fcprop\-registers 
3906 \&\-fif\-conversion 
3907 \&\-fif\-conversion2 
3908 \&\-ftree\-ccp 
3909 \&\-ftree\-dce 
3910 \&\-ftree\-dominator\-opts 
3911 \&\-ftree\-dse 
3912 \&\-ftree\-ter 
3913 \&\-ftree\-lrs 
3914 \&\-ftree\-sra 
3915 \&\-ftree\-copyrename 
3916 \&\-ftree\-fre 
3917 \&\-ftree\-ch 
3918 \&\-funit\-at\-a\-time 
3919 \&\-fmerge\-constants\fR
3920 .Sp
3921 \&\fB\-O\fR also turns on \fB\-fomit\-frame\-pointer\fR on machines
3922 where doing so does not interfere with debugging.
3923 .IP "\fB\-O2\fR" 4
3924 .IX Item "-O2"
3925 Optimize even more.  \s-1GCC\s0 performs nearly all supported optimizations
3926 that do not involve a space-speed tradeoff.  The compiler does not
3927 perform loop unrolling or function inlining when you specify \fB\-O2\fR.
3928 As compared to \fB\-O\fR, this option increases both compilation time
3929 and the performance of the generated code.
3930 .Sp
3931 \&\fB\-O2\fR turns on all optimization flags specified by \fB\-O\fR.  It
3932 also turns on the following optimization flags:
3933 \&\fB\-fthread\-jumps 
3934 \&\-fcrossjumping 
3935 \&\-foptimize\-sibling\-calls 
3936 \&\-fcse\-follow\-jumps  \-fcse\-skip\-blocks 
3937 \&\-fgcse  \-fgcse\-lm  
3938 \&\-fexpensive\-optimizations 
3939 \&\-frerun\-cse\-after\-loop  
3940 \&\-fcaller\-saves 
3941 \&\-fpeephole2 
3942 \&\-fschedule\-insns  \-fschedule\-insns2 
3943 \&\-fsched\-interblock  \-fsched\-spec 
3944 \&\-fregmove 
3945 \&\-fstrict\-aliasing \-fstrict\-overflow 
3946 \&\-fdelete\-null\-pointer\-checks 
3947 \&\-freorder\-blocks  \-freorder\-functions 
3948 \&\-falign\-functions  \-falign\-jumps 
3949 \&\-falign\-loops  \-falign\-labels 
3950 \&\-ftree\-vrp 
3951 \&\-ftree\-pre\fR
3952 .Sp
3953 Please note the warning under \fB\-fgcse\fR about
3954 invoking \fB\-O2\fR on programs that use computed gotos.
3955 .Sp
3956 \&\fB\-O2\fR doesn't turn on \fB\-ftree\-vrp\fR for the Ada compiler.
3957 This option must be explicitly specified on the command line to be
3958 enabled for the Ada compiler.
3959 .IP "\fB\-O3\fR" 4
3960 .IX Item "-O3"
3961 Optimize yet more.  \fB\-O3\fR turns on all optimizations specified by
3962 \&\fB\-O2\fR and also turns on the \fB\-finline\-functions\fR,
3963 \&\fB\-funswitch\-loops\fR and \fB\-fgcse\-after\-reload\fR options.
3964 .IP "\fB\-O0\fR" 4
3965 .IX Item "-O0"
3966 Do not optimize.  This is the default.
3967 .IP "\fB\-Os\fR" 4
3968 .IX Item "-Os"
3969 Optimize for size.  \fB\-Os\fR enables all \fB\-O2\fR optimizations that
3970 do not typically increase code size.  It also performs further
3971 optimizations designed to reduce code size.
3972 .Sp
3973 \&\fB\-Os\fR disables the following optimization flags:
3974 \&\fB\-falign\-functions  \-falign\-jumps  \-falign\-loops 
3975 \&\-falign\-labels  \-freorder\-blocks  \-freorder\-blocks\-and\-partition 
3976 \&\-fprefetch\-loop\-arrays  \-ftree\-vect\-loop\-version\fR
3977 .Sp
3978 If you use multiple \fB\-O\fR options, with or without level numbers,
3979 the last such option is the one that is effective.
3980 .PP
3981 Options of the form \fB\-f\fR\fIflag\fR specify machine-independent
3982 flags.  Most flags have both positive and negative forms; the negative
3983 form of \fB\-ffoo\fR would be \fB\-fno\-foo\fR.  In the table
3984 below, only one of the forms is listed\-\-\-the one you typically will
3985 use.  You can figure out the other form by either removing \fBno\-\fR
3986 or adding it.
3987 .PP
3988 The following options control specific optimizations.  They are either
3989 activated by \fB\-O\fR options or are related to ones that are.  You
3990 can use the following flags in the rare cases when \*(L"fine\-tuning\*(R" of
3991 optimizations to be performed is desired.
3992 .IP "\fB\-fno\-default\-inline\fR" 4
3993 .IX Item "-fno-default-inline"
3994 Do not make member functions inline by default merely because they are
3995 defined inside the class scope (\*(C+ only).  Otherwise, when you specify
3996 \&\fB\-O\fR, member functions defined inside class scope are compiled
3997 inline by default; i.e., you don't need to add \fBinline\fR in front of
3998 the member function name.
3999 .IP "\fB\-fno\-defer\-pop\fR" 4
4000 .IX Item "-fno-defer-pop"
4001 Always pop the arguments to each function call as soon as that function
4002 returns.  For machines which must pop arguments after a function call,
4003 the compiler normally lets arguments accumulate on the stack for several
4004 function calls and pops them all at once.
4005 .Sp
4006 Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4007 .IP "\fB\-fforce\-mem\fR" 4
4008 .IX Item "-fforce-mem"
4009 Force memory operands to be copied into registers before doing
4010 arithmetic on them.  This produces better code by making all memory
4011 references potential common subexpressions.  When they are not common
4012 subexpressions, instruction combination should eliminate the separate
4013 register\-load. This option is now a nop and will be removed in 4.3.
4014 .IP "\fB\-fforce\-addr\fR" 4
4015 .IX Item "-fforce-addr"
4016 Force memory address constants to be copied into registers before
4017 doing arithmetic on them.
4018 .IP "\fB\-fomit\-frame\-pointer\fR" 4
4019 .IX Item "-fomit-frame-pointer"
4020 Don't keep the frame pointer in a register for functions that
4021 don't need one.  This avoids the instructions to save, set up and
4022 restore frame pointers; it also makes an extra register available
4023 in many functions.  \fBIt also makes debugging impossible on
4024 some machines.\fR
4025 .Sp
4026 On some machines, such as the \s-1VAX\s0, this flag has no effect, because
4027 the standard calling sequence automatically handles the frame pointer
4028 and nothing is saved by pretending it doesn't exist.  The
4029 machine-description macro \f(CW\*(C`FRAME_POINTER_REQUIRED\*(C'\fR controls
4030 whether a target machine supports this flag.  
4031 .Sp
4032 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4033 .IP "\fB\-foptimize\-sibling\-calls\fR" 4
4034 .IX Item "-foptimize-sibling-calls"
4035 Optimize sibling and tail recursive calls.
4036 .Sp
4037 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4038 .IP "\fB\-fno\-inline\fR" 4
4039 .IX Item "-fno-inline"
4040 Don't pay attention to the \f(CW\*(C`inline\*(C'\fR keyword.  Normally this option
4041 is used to keep the compiler from expanding any functions inline.
4042 Note that if you are not optimizing, no functions can be expanded inline.
4043 .IP "\fB\-finline\-functions\fR" 4
4044 .IX Item "-finline-functions"
4045 Integrate all simple functions into their callers.  The compiler
4046 heuristically decides which functions are simple enough to be worth
4047 integrating in this way.
4048 .Sp
4049 If all calls to a given function are integrated, and the function is
4050 declared \f(CW\*(C`static\*(C'\fR, then the function is normally not output as
4051 assembler code in its own right.
4052 .Sp
4053 Enabled at level \fB\-O3\fR.
4054 .IP "\fB\-finline\-functions\-called\-once\fR" 4
4055 .IX Item "-finline-functions-called-once"
4056 Consider all \f(CW\*(C`static\*(C'\fR functions called once for inlining into their
4057 caller even if they are not marked \f(CW\*(C`inline\*(C'\fR.  If a call to a given
4058 function is integrated, then the function is not output as assembler code
4059 in its own right.
4060 .Sp
4061 Enabled if \fB\-funit\-at\-a\-time\fR is enabled.
4062 .IP "\fB\-fearly\-inlining\fR" 4
4063 .IX Item "-fearly-inlining"
4064 Inline functions marked by \f(CW\*(C`always_inline\*(C'\fR and functions whose body seems
4065 smaller than the function call overhead early before doing
4066 \&\fB\-fprofile\-generate\fR instrumentation and real inlining pass.  Doing so
4067 makes profiling significantly cheaper and usually inlining faster on programs
4068 having large chains of nested wrapper functions.
4069 .Sp
4070 Enabled by default.
4071 .IP "\fB\-finline\-limit=\fR\fIn\fR" 4
4072 .IX Item "-finline-limit=n"
4073 By default, \s-1GCC\s0 limits the size of functions that can be inlined.  This flag
4074 allows the control of this limit for functions that are explicitly marked as
4075 inline (i.e., marked with the inline keyword or defined within the class
4076 definition in c++).  \fIn\fR is the size of functions that can be inlined in
4077 number of pseudo instructions (not counting parameter handling).  The default
4078 value of \fIn\fR is 600.
4079 Increasing this value can result in more inlined code at
4080 the cost of compilation time and memory consumption.  Decreasing usually makes
4081 the compilation faster and less code will be inlined (which presumably
4082 means slower programs).  This option is particularly useful for programs that
4083 use inlining heavily such as those based on recursive templates with \*(C+.
4084 .Sp
4085 Inlining is actually controlled by a number of parameters, which may be
4086 specified individually by using \fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR.
4087 The \fB\-finline\-limit=\fR\fIn\fR option sets some of these parameters
4088 as follows:
4089 .RS 4
4090 .IP "\fBmax-inline-insns-single\fR" 4
4091 .IX Item "max-inline-insns-single"
4092 .Vb 1
4093 \& is set to I<n>/2.
4094 .Ve
4095 .IP "\fBmax-inline-insns-auto\fR" 4
4096 .IX Item "max-inline-insns-auto"
4097 .Vb 1
4098 \& is set to I<n>/2.
4099 .Ve
4100 .IP "\fBmin-inline-insns\fR" 4
4101 .IX Item "min-inline-insns"
4102 .Vb 1
4103 \& is set to 130 or I<n>/4, whichever is smaller.
4104 .Ve
4105 .IP "\fBmax-inline-insns-rtl\fR" 4
4106 .IX Item "max-inline-insns-rtl"
4107 .Vb 1
4108 \& is set to I<n>.
4109 .Ve
4110 .RE
4111 .RS 4
4112 .Sp
4113 See below for a documentation of the individual
4114 parameters controlling inlining.
4115 .Sp
4116 \&\fINote:\fR pseudo instruction represents, in this particular context, an
4117 abstract measurement of function's size.  In no way does it represent a count
4118 of assembly instructions and as such its exact meaning might change from one
4119 release to an another.
4120 .RE
4121 .IP "\fB\-fkeep\-inline\-functions\fR" 4
4122 .IX Item "-fkeep-inline-functions"
4123 In C, emit \f(CW\*(C`static\*(C'\fR functions that are declared \f(CW\*(C`inline\*(C'\fR
4124 into the object file, even if the function has been inlined into all
4125 of its callers.  This switch does not affect functions using the
4126 \&\f(CW\*(C`extern inline\*(C'\fR extension in \s-1GNU\s0 C.  In \*(C+, emit any and all
4127 inline functions into the object file.
4128 .IP "\fB\-fkeep\-static\-consts\fR" 4
4129 .IX Item "-fkeep-static-consts"
4130 Emit variables declared \f(CW\*(C`static const\*(C'\fR when optimization isn't turned
4131 on, even if the variables aren't referenced.
4132 .Sp
4133 \&\s-1GCC\s0 enables this option by default.  If you want to force the compiler to
4134 check if the variable was referenced, regardless of whether or not
4135 optimization is turned on, use the \fB\-fno\-keep\-static\-consts\fR option.
4136 .IP "\fB\-fmerge\-constants\fR" 4
4137 .IX Item "-fmerge-constants"
4138 Attempt to merge identical constants (string constants and floating point
4139 constants) across compilation units.
4140 .Sp
4141 This option is the default for optimized compilation if the assembler and
4142 linker support it.  Use \fB\-fno\-merge\-constants\fR to inhibit this
4143 behavior.
4144 .Sp
4145 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4146 .IP "\fB\-fmerge\-all\-constants\fR" 4
4147 .IX Item "-fmerge-all-constants"
4148 Attempt to merge identical constants and identical variables.
4149 .Sp
4150 This option implies \fB\-fmerge\-constants\fR.  In addition to
4151 \&\fB\-fmerge\-constants\fR this considers e.g. even constant initialized
4152 arrays or initialized constant variables with integral or floating point
4153 types.  Languages like C or \*(C+ require each non-automatic variable to
4154 have distinct location, so using this option will result in non-conforming
4155 behavior.
4156 .IP "\fB\-fmodulo\-sched\fR" 4
4157 .IX Item "-fmodulo-sched"
4158 Perform swing modulo scheduling immediately before the first scheduling
4159 pass.  This pass looks at innermost loops and reorders their
4160 instructions by overlapping different iterations.
4161 .IP "\fB\-fno\-branch\-count\-reg\fR" 4
4162 .IX Item "-fno-branch-count-reg"
4163 Do not use \*(L"decrement and branch\*(R" instructions on a count register,
4164 but instead generate a sequence of instructions that decrement a
4165 register, compare it against zero, then branch based upon the result.
4166 This option is only meaningful on architectures that support such
4167 instructions, which include x86, PowerPC, \s-1IA\-64\s0 and S/390.
4168 .Sp
4169 The default is \fB\-fbranch\-count\-reg\fR.
4170 .IP "\fB\-fno\-function\-cse\fR" 4
4171 .IX Item "-fno-function-cse"
4172 Do not put function addresses in registers; make each instruction that
4173 calls a constant function contain the function's address explicitly.
4174 .Sp
4175 This option results in less efficient code, but some strange hacks
4176 that alter the assembler output may be confused by the optimizations
4177 performed when this option is not used.
4178 .Sp
4179 The default is \fB\-ffunction\-cse\fR
4180 .IP "\fB\-fno\-zero\-initialized\-in\-bss\fR" 4
4181 .IX Item "-fno-zero-initialized-in-bss"
4182 If the target supports a \s-1BSS\s0 section, \s-1GCC\s0 by default puts variables that
4183 are initialized to zero into \s-1BSS\s0.  This can save space in the resulting
4184 code.
4185 .Sp
4186 This option turns off this behavior because some programs explicitly
4187 rely on variables going to the data section.  E.g., so that the
4188 resulting executable can find the beginning of that section and/or make
4189 assumptions based on that.
4190 .Sp
4191 The default is \fB\-fzero\-initialized\-in\-bss\fR.
4192 .IP "\fB\-fbounds\-check\fR" 4
4193 .IX Item "-fbounds-check"
4194 For front-ends that support it, generate additional code to check that
4195 indices used to access arrays are within the declared range.  This is
4196 currently only supported by the Java and Fortran front\-ends, where
4197 this option defaults to true and false respectively.
4198 .IP "\fB\-fmudflap \-fmudflapth \-fmudflapir\fR" 4
4199 .IX Item "-fmudflap -fmudflapth -fmudflapir"
4200 For front-ends that support it (C and \*(C+), instrument all risky
4201 pointer/array dereferencing operations, some standard library
4202 string/heap functions, and some other associated constructs with
4203 range/validity tests.  Modules so instrumented should be immune to
4204 buffer overflows, invalid heap use, and some other classes of C/\*(C+
4205 programming errors.  The instrumentation relies on a separate runtime
4206 library (\fIlibmudflap\fR), which will be linked into a program if
4207 \&\fB\-fmudflap\fR is given at link time.  Run-time behavior of the
4208 instrumented program is controlled by the \fB\s-1MUDFLAP_OPTIONS\s0\fR
4209 environment variable.  See \f(CW\*(C`env MUDFLAP_OPTIONS=\-help a.out\*(C'\fR
4210 for its options.
4211 .Sp
4212 Use \fB\-fmudflapth\fR instead of \fB\-fmudflap\fR to compile and to
4213 link if your program is multi\-threaded.  Use \fB\-fmudflapir\fR, in
4214 addition to \fB\-fmudflap\fR or \fB\-fmudflapth\fR, if
4215 instrumentation should ignore pointer reads.  This produces less
4216 instrumentation (and therefore faster execution) and still provides
4217 some protection against outright memory corrupting writes, but allows
4218 erroneously read data to propagate within a program.
4219 .IP "\fB\-fthread\-jumps\fR" 4
4220 .IX Item "-fthread-jumps"
4221 Perform optimizations where we check to see if a jump branches to a
4222 location where another comparison subsumed by the first is found.  If
4223 so, the first branch is redirected to either the destination of the
4224 second branch or a point immediately following it, depending on whether
4225 the condition is known to be true or false.
4226 .Sp
4227 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4228 .IP "\fB\-fcse\-follow\-jumps\fR" 4
4229 .IX Item "-fcse-follow-jumps"
4230 In common subexpression elimination, scan through jump instructions
4231 when the target of the jump is not reached by any other path.  For
4232 example, when \s-1CSE\s0 encounters an \f(CW\*(C`if\*(C'\fR statement with an
4233 \&\f(CW\*(C`else\*(C'\fR clause, \s-1CSE\s0 will follow the jump when the condition
4234 tested is false.
4235 .Sp
4236 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4237 .IP "\fB\-fcse\-skip\-blocks\fR" 4
4238 .IX Item "-fcse-skip-blocks"
4239 This is similar to \fB\-fcse\-follow\-jumps\fR, but causes \s-1CSE\s0 to
4240 follow jumps which conditionally skip over blocks.  When \s-1CSE\s0
4241 encounters a simple \f(CW\*(C`if\*(C'\fR statement with no else clause,
4242 \&\fB\-fcse\-skip\-blocks\fR causes \s-1CSE\s0 to follow the jump around the
4243 body of the \f(CW\*(C`if\*(C'\fR.
4244 .Sp
4245 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4246 .IP "\fB\-frerun\-cse\-after\-loop\fR" 4
4247 .IX Item "-frerun-cse-after-loop"
4248 Re-run common subexpression elimination after loop optimizations has been
4249 performed.
4250 .Sp
4251 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4252 .IP "\fB\-fgcse\fR" 4
4253 .IX Item "-fgcse"
4254 Perform a global common subexpression elimination pass.
4255 This pass also performs global constant and copy propagation.
4256 .Sp
4257 \&\fINote:\fR When compiling a program using computed gotos, a \s-1GCC\s0
4258 extension, you may get better runtime performance if you disable
4259 the global common subexpression elimination pass by adding
4260 \&\fB\-fno\-gcse\fR to the command line.
4261 .Sp
4262 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4263 .IP "\fB\-fgcse\-lm\fR" 4
4264 .IX Item "-fgcse-lm"
4265 When \fB\-fgcse\-lm\fR is enabled, global common subexpression elimination will
4266 attempt to move loads which are only killed by stores into themselves.  This
4267 allows a loop containing a load/store sequence to be changed to a load outside
4268 the loop, and a copy/store within the loop.
4269 .Sp
4270 Enabled by default when gcse is enabled.
4271 .IP "\fB\-fgcse\-sm\fR" 4
4272 .IX Item "-fgcse-sm"
4273 When \fB\-fgcse\-sm\fR is enabled, a store motion pass is run after
4274 global common subexpression elimination.  This pass will attempt to move
4275 stores out of loops.  When used in conjunction with \fB\-fgcse\-lm\fR,
4276 loops containing a load/store sequence can be changed to a load before
4277 the loop and a store after the loop.
4278 .Sp
4279 Not enabled at any optimization level.
4280 .IP "\fB\-fgcse\-las\fR" 4
4281 .IX Item "-fgcse-las"
4282 When \fB\-fgcse\-las\fR is enabled, the global common subexpression
4283 elimination pass eliminates redundant loads that come after stores to the
4284 same memory location (both partial and full redundancies).
4285 .Sp
4286 Not enabled at any optimization level.
4287 .IP "\fB\-fgcse\-after\-reload\fR" 4
4288 .IX Item "-fgcse-after-reload"
4289 When \fB\-fgcse\-after\-reload\fR is enabled, a redundant load elimination
4290 pass is performed after reload.  The purpose of this pass is to cleanup
4291 redundant spilling.
4292 .IP "\fB\-funsafe\-loop\-optimizations\fR" 4
4293 .IX Item "-funsafe-loop-optimizations"
4294 If given, the loop optimizer will assume that loop indices do not
4295 overflow, and that the loops with nontrivial exit condition are not
4296 infinite.  This enables a wider range of loop optimizations even if
4297 the loop optimizer itself cannot prove that these assumptions are valid.
4298 Using \fB\-Wunsafe\-loop\-optimizations\fR, the compiler will warn you
4299 if it finds this kind of loop.
4300 .IP "\fB\-fcrossjumping\fR" 4
4301 .IX Item "-fcrossjumping"
4302 Perform cross-jumping transformation.  This transformation unifies equivalent code and save code size.  The
4303 resulting code may or may not perform better than without cross\-jumping.
4304 .Sp
4305 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4306 .IP "\fB\-fif\-conversion\fR" 4
4307 .IX Item "-fif-conversion"
4308 Attempt to transform conditional jumps into branch-less equivalents.  This
4309 include use of conditional moves, min, max, set flags and abs instructions, and
4310 some tricks doable by standard arithmetics.  The use of conditional execution
4311 on chips where it is available is controlled by \f(CW\*(C`if\-conversion2\*(C'\fR.
4312 .Sp
4313 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4314 .IP "\fB\-fif\-conversion2\fR" 4
4315 .IX Item "-fif-conversion2"
4316 Use conditional execution (where available) to transform conditional jumps into
4317 branch-less equivalents.
4318 .Sp
4319 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4320 .IP "\fB\-fdelete\-null\-pointer\-checks\fR" 4
4321 .IX Item "-fdelete-null-pointer-checks"
4322 Use global dataflow analysis to identify and eliminate useless checks
4323 for null pointers.  The compiler assumes that dereferencing a null
4324 pointer would have halted the program.  If a pointer is checked after
4325 it has already been dereferenced, it cannot be null.
4326 .Sp
4327 In some environments, this assumption is not true, and programs can
4328 safely dereference null pointers.  Use
4329 \&\fB\-fno\-delete\-null\-pointer\-checks\fR to disable this optimization
4330 for programs which depend on that behavior.
4331 .Sp
4332 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4333 .IP "\fB\-fexpensive\-optimizations\fR" 4
4334 .IX Item "-fexpensive-optimizations"
4335 Perform a number of minor optimizations that are relatively expensive.
4336 .Sp
4337 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4338 .IP "\fB\-foptimize\-register\-move\fR" 4
4339 .IX Item "-foptimize-register-move"
4340 .PD 0
4341 .IP "\fB\-fregmove\fR" 4
4342 .IX Item "-fregmove"
4343 .PD
4344 Attempt to reassign register numbers in move instructions and as
4345 operands of other simple instructions in order to maximize the amount of
4346 register tying.  This is especially helpful on machines with two-operand
4347 instructions.
4348 .Sp
4349 Note \fB\-fregmove\fR and \fB\-foptimize\-register\-move\fR are the same
4350 optimization.
4351 .Sp
4352 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4353 .IP "\fB\-fdelayed\-branch\fR" 4
4354 .IX Item "-fdelayed-branch"
4355 If supported for the target machine, attempt to reorder instructions
4356 to exploit instruction slots available after delayed branch
4357 instructions.
4358 .Sp
4359 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4360 .IP "\fB\-fschedule\-insns\fR" 4
4361 .IX Item "-fschedule-insns"
4362 If supported for the target machine, attempt to reorder instructions to
4363 eliminate execution stalls due to required data being unavailable.  This
4364 helps machines that have slow floating point or memory load instructions
4365 by allowing other instructions to be issued until the result of the load
4366 or floating point instruction is required.
4367 .Sp
4368 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4369 .IP "\fB\-fschedule\-insns2\fR" 4
4370 .IX Item "-fschedule-insns2"
4371 Similar to \fB\-fschedule\-insns\fR, but requests an additional pass of
4372 instruction scheduling after register allocation has been done.  This is
4373 especially useful on machines with a relatively small number of
4374 registers and where memory load instructions take more than one cycle.
4375 .Sp
4376 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4377 .IP "\fB\-fno\-sched\-interblock\fR" 4
4378 .IX Item "-fno-sched-interblock"
4379 Don't schedule instructions across basic blocks.  This is normally
4380 enabled by default when scheduling before register allocation, i.e.
4381 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
4382 .IP "\fB\-fno\-sched\-spec\fR" 4
4383 .IX Item "-fno-sched-spec"
4384 Don't allow speculative motion of non-load instructions.  This is normally
4385 enabled by default when scheduling before register allocation, i.e.
4386 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
4387 .IP "\fB\-fsched\-spec\-load\fR" 4
4388 .IX Item "-fsched-spec-load"
4389 Allow speculative motion of some load instructions.  This only makes
4390 sense when scheduling before register allocation, i.e. with
4391 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
4392 .IP "\fB\-fsched\-spec\-load\-dangerous\fR" 4
4393 .IX Item "-fsched-spec-load-dangerous"
4394 Allow speculative motion of more load instructions.  This only makes
4395 sense when scheduling before register allocation, i.e. with
4396 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
4397 .IP "\fB\-fsched\-stalled\-insns=\fR\fIn\fR" 4
4398 .IX Item "-fsched-stalled-insns=n"
4399 Define how many insns (if any) can be moved prematurely from the queue
4400 of stalled insns into the ready list, during the second scheduling pass.
4401 .IP "\fB\-fsched\-stalled\-insns\-dep=\fR\fIn\fR" 4
4402 .IX Item "-fsched-stalled-insns-dep=n"
4403 Define how many insn groups (cycles) will be examined for a dependency
4404 on a stalled insn that is candidate for premature removal from the queue
4405 of stalled insns.  Has an effect only during the second scheduling pass,
4406 and only if \fB\-fsched\-stalled\-insns\fR is used and its value is not zero.
4407 .IP "\fB\-fsched2\-use\-superblocks\fR" 4
4408 .IX Item "-fsched2-use-superblocks"
4409 When scheduling after register allocation, do use superblock scheduling
4410 algorithm.  Superblock scheduling allows motion across basic block boundaries
4411 resulting on faster schedules.  This option is experimental, as not all machine
4412 descriptions used by \s-1GCC\s0 model the \s-1CPU\s0 closely enough to avoid unreliable
4413 results from the algorithm.
4414 .Sp
4415 This only makes sense when scheduling after register allocation, i.e. with
4416 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
4417 .IP "\fB\-fsched2\-use\-traces\fR" 4
4418 .IX Item "-fsched2-use-traces"
4419 Use \fB\-fsched2\-use\-superblocks\fR algorithm when scheduling after register
4420 allocation and additionally perform code duplication in order to increase the
4421 size of superblocks using tracer pass.  See \fB\-ftracer\fR for details on
4422 trace formation.
4423 .Sp
4424 This mode should produce faster but significantly longer programs.  Also
4425 without \fB\-fbranch\-probabilities\fR the traces constructed may not
4426 match the reality and hurt the performance.  This only makes
4427 sense when scheduling after register allocation, i.e. with
4428 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
4429 .IP "\fB\-fsee\fR" 4
4430 .IX Item "-fsee"
4431 Eliminates redundant extension instructions and move the non redundant
4432 ones to optimal placement using \s-1LCM\s0.
4433 .IP "\fB\-freschedule\-modulo\-scheduled\-loops\fR" 4
4434 .IX Item "-freschedule-modulo-scheduled-loops"
4435 The modulo scheduling comes before the traditional scheduling, if a loop was modulo scheduled
4436 we may want to prevent the later scheduling passes from changing its schedule, we use this
4437 option to control that.
4438 .IP "\fB\-fcaller\-saves\fR" 4
4439 .IX Item "-fcaller-saves"
4440 Enable values to be allocated in registers that will be clobbered by
4441 function calls, by emitting extra instructions to save and restore the
4442 registers around such calls.  Such allocation is done only when it
4443 seems to result in better code than would otherwise be produced.
4444 .Sp
4445 This option is always enabled by default on certain machines, usually
4446 those which have no call-preserved registers to use instead.
4447 .Sp
4448 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4449 .IP "\fB\-ftree\-pre\fR" 4
4450 .IX Item "-ftree-pre"
4451 Perform Partial Redundancy Elimination (\s-1PRE\s0) on trees.  This flag is
4452 enabled by default at \fB\-O2\fR and \fB\-O3\fR.
4453 .IP "\fB\-ftree\-fre\fR" 4
4454 .IX Item "-ftree-fre"
4455 Perform Full Redundancy Elimination (\s-1FRE\s0) on trees.  The difference
4456 between \s-1FRE\s0 and \s-1PRE\s0 is that \s-1FRE\s0 only considers expressions
4457 that are computed on all paths leading to the redundant computation.
4458 This analysis faster than \s-1PRE\s0, though it exposes fewer redundancies.
4459 This flag is enabled by default at \fB\-O\fR and higher.
4460 .IP "\fB\-ftree\-copy\-prop\fR" 4
4461 .IX Item "-ftree-copy-prop"
4462 Perform copy propagation on trees.  This pass eliminates unnecessary
4463 copy operations.  This flag is enabled by default at \fB\-O\fR and
4464 higher.
4465 .IP "\fB\-ftree\-store\-copy\-prop\fR" 4
4466 .IX Item "-ftree-store-copy-prop"
4467 Perform copy propagation of memory loads and stores.  This pass
4468 eliminates unnecessary copy operations in memory references
4469 (structures, global variables, arrays, etc).  This flag is enabled by
4470 default at \fB\-O2\fR and higher.
4471 .IP "\fB\-ftree\-salias\fR" 4
4472 .IX Item "-ftree-salias"
4473 Perform structural alias analysis on trees.  This flag
4474 is enabled by default at \fB\-O\fR and higher.
4475 .IP "\fB\-fipa\-pta\fR" 4
4476 .IX Item "-fipa-pta"
4477 Perform interprocedural pointer analysis.
4478 .IP "\fB\-ftree\-sink\fR" 4
4479 .IX Item "-ftree-sink"
4480 Perform forward store motion  on trees.  This flag is
4481 enabled by default at \fB\-O\fR and higher.
4482 .IP "\fB\-ftree\-ccp\fR" 4
4483 .IX Item "-ftree-ccp"
4484 Perform sparse conditional constant propagation (\s-1CCP\s0) on trees.  This
4485 pass only operates on local scalar variables and is enabled by default
4486 at \fB\-O\fR and higher.
4487 .IP "\fB\-ftree\-store\-ccp\fR" 4
4488 .IX Item "-ftree-store-ccp"
4489 Perform sparse conditional constant propagation (\s-1CCP\s0) on trees.  This
4490 pass operates on both local scalar variables and memory stores and
4491 loads (global variables, structures, arrays, etc).  This flag is
4492 enabled by default at \fB\-O2\fR and higher.
4493 .IP "\fB\-ftree\-dce\fR" 4
4494 .IX Item "-ftree-dce"
4495 Perform dead code elimination (\s-1DCE\s0) on trees.  This flag is enabled by
4496 default at \fB\-O\fR and higher.
4497 .IP "\fB\-ftree\-dominator\-opts\fR" 4
4498 .IX Item "-ftree-dominator-opts"
4499 Perform a variety of simple scalar cleanups (constant/copy
4500 propagation, redundancy elimination, range propagation and expression
4501 simplification) based on a dominator tree traversal.  This also
4502 performs jump threading (to reduce jumps to jumps). This flag is
4503 enabled by default at \fB\-O\fR and higher.
4504 .IP "\fB\-ftree\-ch\fR" 4
4505 .IX Item "-ftree-ch"
4506 Perform loop header copying on trees.  This is beneficial since it increases
4507 effectiveness of code motion optimizations.  It also saves one jump.  This flag
4508 is enabled by default at \fB\-O\fR and higher.  It is not enabled
4509 for \fB\-Os\fR, since it usually increases code size.
4510 .IP "\fB\-ftree\-loop\-optimize\fR" 4
4511 .IX Item "-ftree-loop-optimize"
4512 Perform loop optimizations on trees.  This flag is enabled by default
4513 at \fB\-O\fR and higher.
4514 .IP "\fB\-ftree\-loop\-linear\fR" 4
4515 .IX Item "-ftree-loop-linear"
4516 Perform linear loop transformations on tree.  This flag can improve cache
4517 performance and allow further loop optimizations to take place.
4518 .IP "\fB\-ftree\-loop\-im\fR" 4
4519 .IX Item "-ftree-loop-im"
4520 Perform loop invariant motion on trees.  This pass moves only invariants that
4521 would be hard to handle at \s-1RTL\s0 level (function calls, operations that expand to
4522 nontrivial sequences of insns).  With \fB\-funswitch\-loops\fR it also moves
4523 operands of conditions that are invariant out of the loop, so that we can use
4524 just trivial invariantness analysis in loop unswitching.  The pass also includes
4525 store motion.
4526 .IP "\fB\-ftree\-loop\-ivcanon\fR" 4
4527 .IX Item "-ftree-loop-ivcanon"
4528 Create a canonical counter for number of iterations in the loop for that
4529 determining number of iterations requires complicated analysis.  Later
4530 optimizations then may determine the number easily.  Useful especially
4531 in connection with unrolling.
4532 .IP "\fB\-fivopts\fR" 4
4533 .IX Item "-fivopts"
4534 Perform induction variable optimizations (strength reduction, induction
4535 variable merging and induction variable elimination) on trees.
4536 .IP "\fB\-ftree\-sra\fR" 4
4537 .IX Item "-ftree-sra"
4538 Perform scalar replacement of aggregates.  This pass replaces structure
4539 references with scalars to prevent committing structures to memory too
4540 early.  This flag is enabled by default at \fB\-O\fR and higher.
4541 .IP "\fB\-ftree\-copyrename\fR" 4
4542 .IX Item "-ftree-copyrename"
4543 Perform copy renaming on trees.  This pass attempts to rename compiler
4544 temporaries to other variables at copy locations, usually resulting in
4545 variable names which more closely resemble the original variables.  This flag
4546 is enabled by default at \fB\-O\fR and higher.
4547 .IP "\fB\-ftree\-ter\fR" 4
4548 .IX Item "-ftree-ter"
4549 Perform temporary expression replacement during the \s-1SSA\-\s0>normal phase.  Single
4550 use/single def temporaries are replaced at their use location with their
4551 defining expression.  This results in non-GIMPLE code, but gives the expanders
4552 much more complex trees to work on resulting in better \s-1RTL\s0 generation.  This is
4553 enabled by default at \fB\-O\fR and higher.
4554 .IP "\fB\-ftree\-lrs\fR" 4
4555 .IX Item "-ftree-lrs"
4556 Perform live range splitting during the \s-1SSA\-\s0>normal phase.  Distinct live
4557 ranges of a variable are split into unique variables, allowing for better
4558 optimization later.  This is enabled by default at \fB\-O\fR and higher.
4559 .IP "\fB\-ftree\-vectorize\fR" 4
4560 .IX Item "-ftree-vectorize"
4561 Perform loop vectorization on trees.
4562 .IP "\fB\-ftree\-vect\-loop\-version\fR" 4
4563 .IX Item "-ftree-vect-loop-version"
4564 Perform loop versioning when doing loop vectorization on trees.  When a loop
4565 appears to be vectorizable except that data alignment or data dependence cannot
4566 be determined at compile time then vectorized and non-vectorized versions of
4567 the loop are generated along with runtime checks for alignment or dependence
4568 to control which version is executed.  This option is enabled by default
4569 except at level \fB\-Os\fR where it is disabled.
4570 .IP "\fB\-ftree\-vrp\fR" 4
4571 .IX Item "-ftree-vrp"
4572 Perform Value Range Propagation on trees.  This is similar to the
4573 constant propagation pass, but instead of values, ranges of values are
4574 propagated.  This allows the optimizers to remove unnecessary range
4575 checks like array bound checks and null pointer checks.  This is
4576 enabled by default at \fB\-O2\fR and higher.  Null pointer check
4577 elimination is only done if \fB\-fdelete\-null\-pointer\-checks\fR is
4578 enabled.
4579 .IP "\fB\-ftracer\fR" 4
4580 .IX Item "-ftracer"
4581 Perform tail duplication to enlarge superblock size.  This transformation
4582 simplifies the control flow of the function allowing other optimizations to do
4583 better job.
4584 .IP "\fB\-funroll\-loops\fR" 4
4585 .IX Item "-funroll-loops"
4586 Unroll loops whose number of iterations can be determined at compile
4587 time or upon entry to the loop.  \fB\-funroll\-loops\fR implies
4588 \&\fB\-frerun\-cse\-after\-loop\fR.  This option makes code larger,
4589 and may or may not make it run faster.
4590 .IP "\fB\-funroll\-all\-loops\fR" 4
4591 .IX Item "-funroll-all-loops"
4592 Unroll all loops, even if their number of iterations is uncertain when
4593 the loop is entered.  This usually makes programs run more slowly.
4594 \&\fB\-funroll\-all\-loops\fR implies the same options as
4595 \&\fB\-funroll\-loops\fR,
4596 .IP "\fB\-fsplit\-ivs\-in\-unroller\fR" 4
4597 .IX Item "-fsplit-ivs-in-unroller"
4598 Enables expressing of values of induction variables in later iterations
4599 of the unrolled loop using the value in the first iteration.  This breaks
4600 long dependency chains, thus improving efficiency of the scheduling passes.
4601 .Sp
4602 Combination of \fB\-fweb\fR and \s-1CSE\s0 is often sufficient to obtain the
4603 same effect.  However in cases the loop body is more complicated than
4604 a single basic block, this is not reliable.  It also does not work at all
4605 on some of the architectures due to restrictions in the \s-1CSE\s0 pass.
4606 .Sp
4607 This optimization is enabled by default.
4608 .IP "\fB\-fvariable\-expansion\-in\-unroller\fR" 4
4609 .IX Item "-fvariable-expansion-in-unroller"
4610 With this option, the compiler will create multiple copies of some
4611 local variables when unrolling a loop which can result in superior code.
4612 .IP "\fB\-fprefetch\-loop\-arrays\fR" 4
4613 .IX Item "-fprefetch-loop-arrays"
4614 If supported by the target machine, generate instructions to prefetch
4615 memory to improve the performance of loops that access large arrays.
4616 .Sp
4617 This option may generate better or worse code; results are highly
4618 dependent on the structure of loops within the source code.
4619 .Sp
4620 Disabled at level \fB\-Os\fR.
4621 .IP "\fB\-fno\-peephole\fR" 4
4622 .IX Item "-fno-peephole"
4623 .PD 0
4624 .IP "\fB\-fno\-peephole2\fR" 4
4625 .IX Item "-fno-peephole2"
4626 .PD
4627 Disable any machine-specific peephole optimizations.  The difference
4628 between \fB\-fno\-peephole\fR and \fB\-fno\-peephole2\fR is in how they
4629 are implemented in the compiler; some targets use one, some use the
4630 other, a few use both.
4631 .Sp
4632 \&\fB\-fpeephole\fR is enabled by default.
4633 \&\fB\-fpeephole2\fR enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4634 .IP "\fB\-fno\-guess\-branch\-probability\fR" 4
4635 .IX Item "-fno-guess-branch-probability"
4636 Do not guess branch probabilities using heuristics.
4637 .Sp
4638 \&\s-1GCC\s0 will use heuristics to guess branch probabilities if they are
4639 not provided by profiling feedback (\fB\-fprofile\-arcs\fR).  These
4640 heuristics are based on the control flow graph.  If some branch probabilities
4641 are specified by \fB_\|_builtin_expect\fR, then the heuristics will be
4642 used to guess branch probabilities for the rest of the control flow graph,
4643 taking the \fB_\|_builtin_expect\fR info into account.  The interactions
4644 between the heuristics and \fB_\|_builtin_expect\fR can be complex, and in
4645 some cases, it may be useful to disable the heuristics so that the effects
4646 of \fB_\|_builtin_expect\fR are easier to understand.
4647 .Sp
4648 The default is \fB\-fguess\-branch\-probability\fR at levels
4649 \&\fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4650 .IP "\fB\-freorder\-blocks\fR" 4
4651 .IX Item "-freorder-blocks"
4652 Reorder basic blocks in the compiled function in order to reduce number of
4653 taken branches and improve code locality.
4654 .Sp
4655 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4656 .IP "\fB\-freorder\-blocks\-and\-partition\fR" 4
4657 .IX Item "-freorder-blocks-and-partition"
4658 In addition to reordering basic blocks in the compiled function, in order
4659 to reduce number of taken branches, partitions hot and cold basic blocks
4660 into separate sections of the assembly and .o files, to improve
4661 paging and cache locality performance.
4662 .Sp
4663 This optimization is automatically turned off in the presence of
4664 exception handling, for linkonce sections, for functions with a user-defined
4665 section attribute and on any architecture that does not support named
4666 sections.
4667 .IP "\fB\-freorder\-functions\fR" 4
4668 .IX Item "-freorder-functions"
4669 Reorder functions in the object file in order to
4670 improve code locality.  This is implemented by using special
4671 subsections \f(CW\*(C`.text.hot\*(C'\fR for most frequently executed functions and
4672 \&\f(CW\*(C`.text.unlikely\*(C'\fR for unlikely executed functions.  Reordering is done by
4673 the linker so object file format must support named sections and linker must
4674 place them in a reasonable way.
4675 .Sp
4676 Also profile feedback must be available in to make this option effective.  See
4677 \&\fB\-fprofile\-arcs\fR for details.
4678 .Sp
4679 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4680 .IP "\fB\-fstrict\-aliasing\fR" 4
4681 .IX Item "-fstrict-aliasing"
4682 Allows the compiler to assume the strictest aliasing rules applicable to
4683 the language being compiled.  For C (and \*(C+), this activates
4684 optimizations based on the type of expressions.  In particular, an
4685 object of one type is assumed never to reside at the same address as an
4686 object of a different type, unless the types are almost the same.  For
4687 example, an \f(CW\*(C`unsigned int\*(C'\fR can alias an \f(CW\*(C`int\*(C'\fR, but not a
4688 \&\f(CW\*(C`void*\*(C'\fR or a \f(CW\*(C`double\*(C'\fR.  A character type may alias any other
4689 type.
4690 .Sp
4691 Pay special attention to code like this:
4692 .Sp
4693 .Vb 4
4694 \&        union a_union {
4695 \&          int i;
4696 \&          double d;
4697 \&        };
4698 .Ve
4699 .Sp
4700 .Vb 5
4701 \&        int f() {
4702 \&          a_union t;
4703 \&          t.d = 3.0;
4704 \&          return t.i;
4705 \&        }
4706 .Ve
4707 .Sp
4708 The practice of reading from a different union member than the one most
4709 recently written to (called \*(L"type\-punning\*(R") is common.  Even with
4710 \&\fB\-fstrict\-aliasing\fR, type-punning is allowed, provided the memory
4711 is accessed through the union type.  So, the code above will work as
4712 expected.  However, this code might not:
4713 .Sp
4714 .Vb 7
4715 \&        int f() {
4716 \&          a_union t;
4717 \&          int* ip;
4718 \&          t.d = 3.0;
4719 \&          ip = &t.i;
4720 \&          return *ip;
4721 \&        }
4722 .Ve
4723 .Sp
4724 Every language that wishes to perform language-specific alias analysis
4725 should define a function that computes, given an \f(CW\*(C`tree\*(C'\fR
4726 node, an alias set for the node.  Nodes in different alias sets are not
4727 allowed to alias.  For an example, see the C front-end function
4728 \&\f(CW\*(C`c_get_alias_set\*(C'\fR.
4729 .Sp
4730 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4731 .IP "\fB\-fstrict\-overflow\fR" 4
4732 .IX Item "-fstrict-overflow"
4733 Allow the compiler to assume strict signed overflow rules, depending
4734 on the language being compiled.  For C (and \*(C+) this means that
4735 overflow when doing arithmetic with signed numbers is undefined, which
4736 means that the compiler may assume that it will not happen.  This
4737 permits various optimizations.  For example, the compiler will assume
4738 that an expression like \f(CW\*(C`i + 10 > i\*(C'\fR will always be true for
4739 signed \f(CW\*(C`i\*(C'\fR.  This assumption is only valid if signed overflow is
4740 undefined, as the expression is false if \f(CW\*(C`i + 10\*(C'\fR overflows when
4741 using twos complement arithmetic.  When this option is in effect any
4742 attempt to determine whether an operation on signed numbers will
4743 overflow must be written carefully to not actually involve overflow.
4744 .Sp
4745 See also the \fB\-fwrapv\fR option.  Using \fB\-fwrapv\fR means
4746 that signed overflow is fully defined: it wraps.  When
4747 \&\fB\-fwrapv\fR is used, there is no difference between
4748 \&\fB\-fstrict\-overflow\fR and \fB\-fno\-strict\-overflow\fR.  With
4749 \&\fB\-fwrapv\fR certain types of overflow are permitted.  For
4750 example, if the compiler gets an overflow when doing arithmetic on
4751 constants, the overflowed value can still be used with
4752 \&\fB\-fwrapv\fR, but not otherwise.
4753 .Sp
4754 The \fB\-fstrict\-overflow\fR option is enabled at levels
4755 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4756 .IP "\fB\-falign\-functions\fR" 4
4757 .IX Item "-falign-functions"
4758 .PD 0
4759 .IP "\fB\-falign\-functions=\fR\fIn\fR" 4
4760 .IX Item "-falign-functions=n"
4761 .PD
4762 Align the start of functions to the next power-of-two greater than
4763 \&\fIn\fR, skipping up to \fIn\fR bytes.  For instance,
4764 \&\fB\-falign\-functions=32\fR aligns functions to the next 32\-byte
4765 boundary, but \fB\-falign\-functions=24\fR would align to the next
4766 32\-byte boundary only if this can be done by skipping 23 bytes or less.
4767 .Sp
4768 \&\fB\-fno\-align\-functions\fR and \fB\-falign\-functions=1\fR are
4769 equivalent and mean that functions will not be aligned.
4770 .Sp
4771 Some assemblers only support this flag when \fIn\fR is a power of two;
4772 in that case, it is rounded up.
4773 .Sp
4774 If \fIn\fR is not specified or is zero, use a machine-dependent default.
4775 .Sp
4776 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4777 .IP "\fB\-falign\-labels\fR" 4
4778 .IX Item "-falign-labels"
4779 .PD 0
4780 .IP "\fB\-falign\-labels=\fR\fIn\fR" 4
4781 .IX Item "-falign-labels=n"
4782 .PD
4783 Align all branch targets to a power-of-two boundary, skipping up to
4784 \&\fIn\fR bytes like \fB\-falign\-functions\fR.  This option can easily
4785 make code slower, because it must insert dummy operations for when the
4786 branch target is reached in the usual flow of the code.
4787 .Sp
4788 \&\fB\-fno\-align\-labels\fR and \fB\-falign\-labels=1\fR are
4789 equivalent and mean that labels will not be aligned.
4790 .Sp
4791 If \fB\-falign\-loops\fR or \fB\-falign\-jumps\fR are applicable and
4792 are greater than this value, then their values are used instead.
4793 .Sp
4794 If \fIn\fR is not specified or is zero, use a machine-dependent default
4795 which is very likely to be \fB1\fR, meaning no alignment.
4796 .Sp
4797 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4798 .IP "\fB\-falign\-loops\fR" 4
4799 .IX Item "-falign-loops"
4800 .PD 0
4801 .IP "\fB\-falign\-loops=\fR\fIn\fR" 4
4802 .IX Item "-falign-loops=n"
4803 .PD
4804 Align loops to a power-of-two boundary, skipping up to \fIn\fR bytes
4805 like \fB\-falign\-functions\fR.  The hope is that the loop will be
4806 executed many times, which will make up for any execution of the dummy
4807 operations.
4808 .Sp
4809 \&\fB\-fno\-align\-loops\fR and \fB\-falign\-loops=1\fR are
4810 equivalent and mean that loops will not be aligned.
4811 .Sp
4812 If \fIn\fR is not specified or is zero, use a machine-dependent default.
4813 .Sp
4814 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4815 .IP "\fB\-falign\-jumps\fR" 4
4816 .IX Item "-falign-jumps"
4817 .PD 0
4818 .IP "\fB\-falign\-jumps=\fR\fIn\fR" 4
4819 .IX Item "-falign-jumps=n"
4820 .PD
4821 Align branch targets to a power-of-two boundary, for branch targets
4822 where the targets can only be reached by jumping, skipping up to \fIn\fR
4823 bytes like \fB\-falign\-functions\fR.  In this case, no dummy operations
4824 need be executed.
4825 .Sp
4826 \&\fB\-fno\-align\-jumps\fR and \fB\-falign\-jumps=1\fR are
4827 equivalent and mean that loops will not be aligned.
4828 .Sp
4829 If \fIn\fR is not specified or is zero, use a machine-dependent default.
4830 .Sp
4831 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
4832 .IP "\fB\-funit\-at\-a\-time\fR" 4
4833 .IX Item "-funit-at-a-time"
4834 Parse the whole compilation unit before starting to produce code.
4835 This allows some extra optimizations to take place but consumes
4836 more memory (in general).  There are some compatibility issues
4837 with \fIunit-at-a-time\fR mode:
4838 .RS 4
4839 .IP "*" 4
4840 enabling \fIunit-at-a-time\fR mode may change the order
4841 in which functions, variables, and top-level \f(CW\*(C`asm\*(C'\fR statements
4842 are emitted, and will likely break code relying on some particular
4843 ordering.  The majority of such top-level \f(CW\*(C`asm\*(C'\fR statements,
4844 though, can be replaced by \f(CW\*(C`section\*(C'\fR attributes.  The
4845 \&\fBfno-toplevel-reorder\fR option may be used to keep the ordering
4846 used in the input file, at the cost of some optimizations.
4847 .IP "*" 4
4848 \&\fIunit-at-a-time\fR mode removes unreferenced static variables
4849 and functions.  This may result in undefined references
4850 when an \f(CW\*(C`asm\*(C'\fR statement refers directly to variables or functions
4851 that are otherwise unused.  In that case either the variable/function
4852 shall be listed as an operand of the \f(CW\*(C`asm\*(C'\fR statement operand or,
4853 in the case of top-level \f(CW\*(C`asm\*(C'\fR statements the attribute \f(CW\*(C`used\*(C'\fR
4854 shall be used on the declaration.
4855 .IP "*" 4
4856 Static functions now can use non-standard passing conventions that
4857 may break \f(CW\*(C`asm\*(C'\fR statements calling functions directly.  Again,
4858 attribute \f(CW\*(C`used\*(C'\fR will prevent this behavior.
4859 .RE
4860 .RS 4
4861 .Sp
4862 As a temporary workaround, \fB\-fno\-unit\-at\-a\-time\fR can be used,
4863 but this scheme may not be supported by future releases of \s-1GCC\s0.
4864 .Sp
4865 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4866 .RE
4867 .IP "\fB\-fno\-toplevel\-reorder\fR" 4
4868 .IX Item "-fno-toplevel-reorder"
4869 Do not reorder top-level functions, variables, and \f(CW\*(C`asm\*(C'\fR
4870 statements.  Output them in the same order that they appear in the
4871 input file.  When this option is used, unreferenced static variables
4872 will not be removed.  This option is intended to support existing code
4873 which relies on a particular ordering.  For new code, it is better to
4874 use attributes.
4875 .IP "\fB\-fweb\fR" 4
4876 .IX Item "-fweb"
4877 Constructs webs as commonly used for register allocation purposes and assign
4878 each web individual pseudo register.  This allows the register allocation pass
4879 to operate on pseudos directly, but also strengthens several other optimization
4880 passes, such as \s-1CSE\s0, loop optimizer and trivial dead code remover.  It can,
4881 however, make debugging impossible, since variables will no longer stay in a
4882 \&\*(L"home register\*(R".
4883 .Sp
4884 Enabled by default with \fB\-funroll\-loops\fR.
4885 .IP "\fB\-fwhole\-program\fR" 4
4886 .IX Item "-fwhole-program"
4887 Assume that the current compilation unit represents whole program being
4888 compiled.  All public functions and variables with the exception of \f(CW\*(C`main\*(C'\fR
4889 and those merged by attribute \f(CW\*(C`externally_visible\*(C'\fR become static functions
4890 and in a affect gets more aggressively optimized by interprocedural optimizers.
4891 While this option is equivalent to proper use of \f(CW\*(C`static\*(C'\fR keyword for
4892 programs consisting of single file, in combination with option
4893 \&\fB\-\-combine\fR this flag can be used to compile most of smaller scale C
4894 programs since the functions and variables become local for the whole combined
4895 compilation unit, not for the single source file itself.
4896 .IP "\fB\-fno\-cprop\-registers\fR" 4
4897 .IX Item "-fno-cprop-registers"
4898 After register allocation and post-register allocation instruction splitting,
4899 we perform a copy-propagation pass to try to reduce scheduling dependencies
4900 and occasionally eliminate the copy.
4901 .Sp
4902 Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4903 .IP "\fB\-fprofile\-generate\fR" 4
4904 .IX Item "-fprofile-generate"
4905 Enable options usually used for instrumenting application to produce
4906 profile useful for later recompilation with profile feedback based
4907 optimization.  You must use \fB\-fprofile\-generate\fR both when
4908 compiling and when linking your program.
4909 .Sp
4910 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.
4911 .IP "\fB\-fprofile\-use\fR" 4
4912 .IX Item "-fprofile-use"
4913 Enable profile feedback directed optimizations, and optimizations
4914 generally profitable only with profile feedback available.
4915 .Sp
4916 The following options are enabled: \f(CW\*(C`\-fbranch\-probabilities\*(C'\fR, \f(CW\*(C`\-fvpt\*(C'\fR,
4917 \&\f(CW\*(C`\-funroll\-loops\*(C'\fR, \f(CW\*(C`\-fpeel\-loops\*(C'\fR, \f(CW\*(C`\-ftracer\*(C'\fR
4918 .PP
4919 The following options control compiler behavior regarding floating
4920 point arithmetic.  These options trade off between speed and
4921 correctness.  All must be specifically enabled.
4922 .IP "\fB\-ffloat\-store\fR" 4
4923 .IX Item "-ffloat-store"
4924 Do not store floating point variables in registers, and inhibit other
4925 options that might change whether a floating point value is taken from a
4926 register or memory.
4927 .Sp
4928 This option prevents undesirable excess precision on machines such as
4929 the 68000 where the floating registers (of the 68881) keep more
4930 precision than a \f(CW\*(C`double\*(C'\fR is supposed to have.  Similarly for the
4931 x86 architecture.  For most programs, the excess precision does only
4932 good, but a few programs rely on the precise definition of \s-1IEEE\s0 floating
4933 point.  Use \fB\-ffloat\-store\fR for such programs, after modifying
4934 them to store all pertinent intermediate computations into variables.
4935 .IP "\fB\-ffast\-math\fR" 4
4936 .IX Item "-ffast-math"
4937 Sets \fB\-fno\-math\-errno\fR, \fB\-funsafe\-math\-optimizations\fR, \fB\-fno\-trapping\-math\fR, \fB\-ffinite\-math\-only\fR,
4938 \&\fB\-fno\-rounding\-math\fR, \fB\-fno\-signaling\-nans\fR
4939 and \fBfcx-limited-range\fR.
4940 .Sp
4941 This option causes the preprocessor macro \f(CW\*(C`_\|_FAST_MATH_\|_\*(C'\fR to be defined.
4942 .Sp
4943 This option should never be turned on by any \fB\-O\fR option since
4944 it can result in incorrect output for programs which depend on
4945 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
4946 math functions.
4947 .IP "\fB\-fno\-math\-errno\fR" 4
4948 .IX Item "-fno-math-errno"
4949 Do not set \s-1ERRNO\s0 after calling math functions that are executed
4950 with a single instruction, e.g., sqrt.  A program that relies on
4951 \&\s-1IEEE\s0 exceptions for math error handling may want to use this flag
4952 for speed while maintaining \s-1IEEE\s0 arithmetic compatibility.
4953 .Sp
4954 This option should never be turned on by any \fB\-O\fR option since
4955 it can result in incorrect output for programs which depend on
4956 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
4957 math functions.
4958 .Sp
4959 The default is \fB\-fmath\-errno\fR.
4960 .Sp
4961 On Darwin systems, the math library never sets \f(CW\*(C`errno\*(C'\fR.  There is therefore
4962 no reason for the compiler to consider the possibility that it might,
4963 and \fB\-fno\-math\-errno\fR is the default.
4964 .IP "\fB\-funsafe\-math\-optimizations\fR" 4
4965 .IX Item "-funsafe-math-optimizations"
4966 Allow optimizations for floating-point arithmetic that (a) assume
4967 that arguments and results are valid and (b) may violate \s-1IEEE\s0 or
4968 \&\s-1ANSI\s0 standards.  When used at link\-time, it may include libraries
4969 or startup files that change the default \s-1FPU\s0 control word or other
4970 similar optimizations.
4971 .Sp
4972 This option should never be turned on by any \fB\-O\fR option since
4973 it can result in incorrect output for programs which depend on
4974 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
4975 math functions.
4976 .Sp
4977 The default is \fB\-fno\-unsafe\-math\-optimizations\fR.
4978 .IP "\fB\-ffinite\-math\-only\fR" 4
4979 .IX Item "-ffinite-math-only"
4980 Allow optimizations for floating-point arithmetic that assume
4981 that arguments and results are not NaNs or +\-Infs.
4982 .Sp
4983 This option should never be turned on by any \fB\-O\fR option since
4984 it can result in incorrect output for programs which depend on
4985 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications.
4986 .Sp
4987 The default is \fB\-fno\-finite\-math\-only\fR.
4988 .IP "\fB\-fno\-trapping\-math\fR" 4
4989 .IX Item "-fno-trapping-math"
4990 Compile code assuming that floating-point operations cannot generate
4991 user-visible traps.  These traps include division by zero, overflow,
4992 underflow, inexact result and invalid operation.  This option implies
4993 \&\fB\-fno\-signaling\-nans\fR.  Setting this option may allow faster
4994 code if one relies on \*(L"non\-stop\*(R" \s-1IEEE\s0 arithmetic, for example.
4995 .Sp
4996 This option should never be turned on by any \fB\-O\fR option since
4997 it can result in incorrect output for programs which depend on
4998 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
4999 math functions.
5000 .Sp
5001 The default is \fB\-ftrapping\-math\fR.
5002 .IP "\fB\-frounding\-math\fR" 4
5003 .IX Item "-frounding-math"
5004 Disable transformations and optimizations that assume default floating
5005 point rounding behavior.  This is round-to-zero for all floating point
5006 to integer conversions, and round-to-nearest for all other arithmetic
5007 truncations.  This option should be specified for programs that change
5008 the \s-1FP\s0 rounding mode dynamically, or that may be executed with a
5009 non-default rounding mode.  This option disables constant folding of
5010 floating point expressions at compile-time (which may be affected by
5011 rounding mode) and arithmetic transformations that are unsafe in the
5012 presence of sign-dependent rounding modes.
5013 .Sp
5014 The default is \fB\-fno\-rounding\-math\fR.
5015 .Sp
5016 This option is experimental and does not currently guarantee to
5017 disable all \s-1GCC\s0 optimizations that are affected by rounding mode.
5018 Future versions of \s-1GCC\s0 may provide finer control of this setting
5019 using C99's \f(CW\*(C`FENV_ACCESS\*(C'\fR pragma.  This command line option
5020 will be used to specify the default state for \f(CW\*(C`FENV_ACCESS\*(C'\fR.
5021 .IP "\fB\-frtl\-abstract\-sequences\fR" 4
5022 .IX Item "-frtl-abstract-sequences"
5023 It is a size optimization method. This option is to find identical
5024 sequences of code, which can be turned into pseudo-procedures  and
5025 then  replace  all  occurrences with  calls to  the  newly created
5026 subroutine. It is kind of an opposite of \fB\-finline\-functions\fR.
5027 This optimization runs at \s-1RTL\s0 level.
5028 .IP "\fB\-fsignaling\-nans\fR" 4
5029 .IX Item "-fsignaling-nans"
5030 Compile code assuming that \s-1IEEE\s0 signaling NaNs may generate user-visible
5031 traps during floating-point operations.  Setting this option disables
5032 optimizations that may change the number of exceptions visible with
5033 signaling NaNs.  This option implies \fB\-ftrapping\-math\fR.
5034 .Sp
5035 This option causes the preprocessor macro \f(CW\*(C`_\|_SUPPORT_SNAN_\|_\*(C'\fR to
5036 be defined.
5037 .Sp
5038 The default is \fB\-fno\-signaling\-nans\fR.
5039 .Sp
5040 This option is experimental and does not currently guarantee to
5041 disable all \s-1GCC\s0 optimizations that affect signaling NaN behavior.
5042 .IP "\fB\-fsingle\-precision\-constant\fR" 4
5043 .IX Item "-fsingle-precision-constant"
5044 Treat floating point constant as single precision constant instead of
5045 implicitly converting it to double precision constant.
5046 .IP "\fB\-fcx\-limited\-range\fR" 4
5047 .IX Item "-fcx-limited-range"
5048 .PD 0
5049 .IP "\fB\-fno\-cx\-limited\-range\fR" 4
5050 .IX Item "-fno-cx-limited-range"
5051 .PD
5052 When enabled, this option states that a range reduction step is not
5053 needed when performing complex division.  The default is
5054 \&\fB\-fno\-cx\-limited\-range\fR, but is enabled by \fB\-ffast\-math\fR.
5055 .Sp
5056 This option controls the default setting of the \s-1ISO\s0 C99 
5057 \&\f(CW\*(C`CX_LIMITED_RANGE\*(C'\fR pragma.  Nevertheless, the option applies to
5058 all languages.
5059 .PP
5060 The following options control optimizations that may improve
5061 performance, but are not enabled by any \fB\-O\fR options.  This
5062 section includes experimental options that may produce broken code.
5063 .IP "\fB\-fbranch\-probabilities\fR" 4
5064 .IX Item "-fbranch-probabilities"
5065 After running a program compiled with \fB\-fprofile\-arcs\fR, you can compile it a second time using
5066 \&\fB\-fbranch\-probabilities\fR, to improve optimizations based on
5067 the number of times each branch was taken.  When the program
5068 compiled with \fB\-fprofile\-arcs\fR exits it saves arc execution
5069 counts to a file called \fI\fIsourcename\fI.gcda\fR for each source
5070 file  The information in this data file is very dependent on the
5071 structure of the generated code, so you must use the same source code
5072 and the same optimization options for both compilations.
5073 .Sp
5074 With \fB\-fbranch\-probabilities\fR, \s-1GCC\s0 puts a
5075 \&\fB\s-1REG_BR_PROB\s0\fR note on each \fB\s-1JUMP_INSN\s0\fR and \fB\s-1CALL_INSN\s0\fR.
5076 These can be used to improve optimization.  Currently, they are only
5077 used in one place: in \fIreorg.c\fR, instead of guessing which path a
5078 branch is mostly to take, the \fB\s-1REG_BR_PROB\s0\fR values are used to
5079 exactly determine which path is taken more often.
5080 .IP "\fB\-fprofile\-values\fR" 4
5081 .IX Item "-fprofile-values"
5082 If combined with \fB\-fprofile\-arcs\fR, it adds code so that some
5083 data about values of expressions in the program is gathered.
5084 .Sp
5085 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
5086 from profiling values of expressions and adds \fB\s-1REG_VALUE_PROFILE\s0\fR
5087 notes to instructions for their later usage in optimizations.
5088 .Sp
5089 Enabled with \fB\-fprofile\-generate\fR and \fB\-fprofile\-use\fR.
5090 .IP "\fB\-fvpt\fR" 4
5091 .IX Item "-fvpt"
5092 If combined with \fB\-fprofile\-arcs\fR, it instructs the compiler to add
5093 a code to gather information about values of expressions.
5094 .Sp
5095 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
5096 and actually performs the optimizations based on them.
5097 Currently the optimizations include specialization of division operation
5098 using the knowledge about the value of the denominator.
5099 .IP "\fB\-frename\-registers\fR" 4
5100 .IX Item "-frename-registers"
5101 Attempt to avoid false dependencies in scheduled code by making use
5102 of registers left over after register allocation.  This optimization
5103 will most benefit processors with lots of registers.  Depending on the
5104 debug information format adopted by the target, however, it can
5105 make debugging impossible, since variables will no longer stay in
5106 a \*(L"home register\*(R".
5107 .Sp
5108 Enabled by default with \fB\-funroll\-loops\fR.
5109 .IP "\fB\-ftracer\fR" 4
5110 .IX Item "-ftracer"
5111 Perform tail duplication to enlarge superblock size.  This transformation
5112 simplifies the control flow of the function allowing other optimizations to do
5113 better job.
5114 .Sp
5115 Enabled with \fB\-fprofile\-use\fR.
5116 .IP "\fB\-funroll\-loops\fR" 4
5117 .IX Item "-funroll-loops"
5118 Unroll loops whose number of iterations can be determined at compile time or
5119 upon entry to the loop.  \fB\-funroll\-loops\fR implies
5120 \&\fB\-frerun\-cse\-after\-loop\fR, \fB\-fweb\fR and \fB\-frename\-registers\fR. 
5121 It also turns on complete loop peeling (i.e. complete removal of loops with
5122 small constant number of iterations).  This option makes code larger, and may
5123 or may not make it run faster.
5124 .Sp
5125 Enabled with \fB\-fprofile\-use\fR.
5126 .IP "\fB\-funroll\-all\-loops\fR" 4
5127 .IX Item "-funroll-all-loops"
5128 Unroll all loops, even if their number of iterations is uncertain when
5129 the loop is entered.  This usually makes programs run more slowly.
5130 \&\fB\-funroll\-all\-loops\fR implies the same options as
5131 \&\fB\-funroll\-loops\fR.
5132 .IP "\fB\-fpeel\-loops\fR" 4
5133 .IX Item "-fpeel-loops"
5134 Peels the loops for that there is enough information that they do not
5135 roll much (from profile feedback).  It also turns on complete loop peeling
5136 (i.e. complete removal of loops with small constant number of iterations).
5137 .Sp
5138 Enabled with \fB\-fprofile\-use\fR.
5139 .IP "\fB\-fmove\-loop\-invariants\fR" 4
5140 .IX Item "-fmove-loop-invariants"
5141 Enables the loop invariant motion pass in the \s-1RTL\s0 loop optimizer.  Enabled
5142 at level \fB\-O1\fR
5143 .IP "\fB\-funswitch\-loops\fR" 4
5144 .IX Item "-funswitch-loops"
5145 Move branches with loop invariant conditions out of the loop, with duplicates
5146 of the loop on both branches (modified according to result of the condition).
5147 .IP "\fB\-ffunction\-sections\fR" 4
5148 .IX Item "-ffunction-sections"
5149 .PD 0
5150 .IP "\fB\-fdata\-sections\fR" 4
5151 .IX Item "-fdata-sections"
5152 .PD
5153 Place each function or data item into its own section in the output
5154 file if the target supports arbitrary sections.  The name of the
5155 function or the name of the data item determines the section's name
5156 in the output file.
5157 .Sp
5158 Use these options on systems where the linker can perform optimizations
5159 to improve locality of reference in the instruction space.  Most systems
5160 using the \s-1ELF\s0 object format and \s-1SPARC\s0 processors running Solaris 2 have
5161 linkers with such optimizations.  \s-1AIX\s0 may have these optimizations in
5162 the future.
5163 .Sp
5164 Only use these options when there are significant benefits from doing
5165 so.  When you specify these options, the assembler and linker will
5166 create larger object and executable files and will also be slower.
5167 You will not be able to use \f(CW\*(C`gprof\*(C'\fR on all systems if you
5168 specify this option and you may have problems with debugging if
5169 you specify both this option and \fB\-g\fR.
5170 .IP "\fB\-fbranch\-target\-load\-optimize\fR" 4
5171 .IX Item "-fbranch-target-load-optimize"
5172 Perform branch target register load optimization before prologue / epilogue
5173 threading.
5174 The use of target registers can typically be exposed only during reload,
5175 thus hoisting loads out of loops and doing inter-block scheduling needs
5176 a separate optimization pass.
5177 .IP "\fB\-fbranch\-target\-load\-optimize2\fR" 4
5178 .IX Item "-fbranch-target-load-optimize2"
5179 Perform branch target register load optimization after prologue / epilogue
5180 threading.
5181 .IP "\fB\-fbtr\-bb\-exclusive\fR" 4
5182 .IX Item "-fbtr-bb-exclusive"
5183 When performing branch target register load optimization, don't reuse
5184 branch target registers in within any basic block.
5185 .IP "\fB\-fstack\-protector\fR" 4
5186 .IX Item "-fstack-protector"
5187 Emit extra code to check for buffer overflows, such as stack smashing
5188 attacks.  This is done by adding a guard variable to functions with
5189 vulnerable objects.  This includes functions that call alloca, and
5190 functions with buffers larger than 8 bytes.  The guards are initialized
5191 when a function is entered and then checked when the function exits.
5192 If a guard check fails, an error message is printed and the program exits.
5193 .IP "\fB\-fstack\-protector\-all\fR" 4
5194 .IX Item "-fstack-protector-all"
5195 Like \fB\-fstack\-protector\fR except that all functions are protected.
5196 .IP "\fB\-fsection\-anchors\fR" 4
5197 .IX Item "-fsection-anchors"
5198 Try to reduce the number of symbolic address calculations by using
5199 shared \*(L"anchor\*(R" symbols to address nearby objects.  This transformation
5200 can help to reduce the number of \s-1GOT\s0 entries and \s-1GOT\s0 accesses on some
5201 targets.
5202 .Sp
5203 For example, the implementation of the following function \f(CW\*(C`foo\*(C'\fR:
5204 .Sp
5205 .Vb 2
5206 \&        static int a, b, c;
5207 \&        int foo (void) { return a + b + c; }
5208 .Ve
5209 .Sp
5210 would usually calculate the addresses of all three variables, but if you
5211 compile it with \fB\-fsection\-anchors\fR, it will access the variables
5212 from a common anchor point instead.  The effect is similar to the
5213 following pseudocode (which isn't valid C):
5214 .Sp
5215 .Vb 5
5216 \&        int foo (void)
5217 \&        {
5218 \&          register int *xr = &x;
5219 \&          return xr[&a - &x] + xr[&b - &x] + xr[&c - &x];
5220 \&        }
5221 .Ve
5222 .Sp
5223 Not all targets support this option.
5224 .IP "\fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR" 4
5225 .IX Item "--param name=value"
5226 In some places, \s-1GCC\s0 uses various constants to control the amount of
5227 optimization that is done.  For example, \s-1GCC\s0 will not inline functions
5228 that contain more that a certain number of instructions.  You can
5229 control some of these constants on the command-line using the
5230 \&\fB\-\-param\fR option.
5231 .Sp
5232 The names of specific parameters, and the meaning of the values, are
5233 tied to the internals of the compiler, and are subject to change
5234 without notice in future releases.
5235 .Sp
5236 In each case, the \fIvalue\fR is an integer.  The allowable choices for
5237 \&\fIname\fR are given in the following table:
5238 .RS 4
5239 .IP "\fBsalias-max-implicit-fields\fR" 4
5240 .IX Item "salias-max-implicit-fields"
5241 The maximum number of fields in a variable without direct
5242 structure accesses for which structure aliasing will consider trying 
5243 to track each field.  The default is 5
5244 .IP "\fBsalias-max-array-elements\fR" 4
5245 .IX Item "salias-max-array-elements"
5246 The maximum number of elements an array can have and its elements
5247 still be tracked individually by structure aliasing. The default is 4
5248 .IP "\fBsra-max-structure-size\fR" 4
5249 .IX Item "sra-max-structure-size"
5250 The maximum structure size, in bytes, at which the scalar replacement
5251 of aggregates (\s-1SRA\s0) optimization will perform block copies.  The
5252 default value, 0, implies that \s-1GCC\s0 will select the most appropriate
5253 size itself.
5254 .IP "\fBsra-field-structure-ratio\fR" 4
5255 .IX Item "sra-field-structure-ratio"
5256 The threshold ratio (as a percentage) between instantiated fields and
5257 the complete structure size.  We say that if the ratio of the number
5258 of bytes in instantiated fields to the number of bytes in the complete
5259 structure exceeds this parameter, then block copies are not used.  The
5260 default is 75.
5261 .IP "\fBmax-crossjump-edges\fR" 4
5262 .IX Item "max-crossjump-edges"
5263 The maximum number of incoming edges to consider for crossjumping.
5264 The algorithm used by \fB\-fcrossjumping\fR is O(N^2) in
5265 the number of edges incoming to each block.  Increasing values mean
5266 more aggressive optimization, making the compile time increase with
5267 probably small improvement in executable size.
5268 .IP "\fBmin-crossjump-insns\fR" 4
5269 .IX Item "min-crossjump-insns"
5270 The minimum number of instructions which must be matched at the end
5271 of two blocks before crossjumping will be performed on them.  This
5272 value is ignored in the case where all instructions in the block being
5273 crossjumped from are matched.  The default value is 5.
5274 .IP "\fBmax-grow-copy-bb-insns\fR" 4
5275 .IX Item "max-grow-copy-bb-insns"
5276 The maximum code size expansion factor when copying basic blocks
5277 instead of jumping.  The expansion is relative to a jump instruction.
5278 The default value is 8.
5279 .IP "\fBmax-goto-duplication-insns\fR" 4
5280 .IX Item "max-goto-duplication-insns"
5281 The maximum number of instructions to duplicate to a block that jumps
5282 to a computed goto.  To avoid O(N^2) behavior in a number of
5283 passes, \s-1GCC\s0 factors computed gotos early in the compilation process,
5284 and unfactors them as late as possible.  Only computed jumps at the
5285 end of a basic blocks with no more than max-goto-duplication-insns are
5286 unfactored.  The default value is 8.
5287 .IP "\fBmax-delay-slot-insn-search\fR" 4
5288 .IX Item "max-delay-slot-insn-search"
5289 The maximum number of instructions to consider when looking for an
5290 instruction to fill a delay slot.  If more than this arbitrary number of
5291 instructions is searched, the time savings from filling the delay slot
5292 will be minimal so stop searching.  Increasing values mean more
5293 aggressive optimization, making the compile time increase with probably
5294 small improvement in executable run time.
5295 .IP "\fBmax-delay-slot-live-search\fR" 4
5296 .IX Item "max-delay-slot-live-search"
5297 When trying to fill delay slots, the maximum number of instructions to
5298 consider when searching for a block with valid live register
5299 information.  Increasing this arbitrarily chosen value means more
5300 aggressive optimization, increasing the compile time.  This parameter
5301 should be removed when the delay slot code is rewritten to maintain the
5302 control-flow graph.
5303 .IP "\fBmax-gcse-memory\fR" 4
5304 .IX Item "max-gcse-memory"
5305 The approximate maximum amount of memory that will be allocated in
5306 order to perform the global common subexpression elimination
5307 optimization.  If more memory than specified is required, the
5308 optimization will not be done.
5309 .IP "\fBmax-gcse-passes\fR" 4
5310 .IX Item "max-gcse-passes"
5311 The maximum number of passes of \s-1GCSE\s0 to run.  The default is 1.
5312 .IP "\fBmax-pending-list-length\fR" 4
5313 .IX Item "max-pending-list-length"
5314 The maximum number of pending dependencies scheduling will allow
5315 before flushing the current state and starting over.  Large functions
5316 with few branches or calls can create excessively large lists which
5317 needlessly consume memory and resources.
5318 .IP "\fBmax-inline-insns-single\fR" 4
5319 .IX Item "max-inline-insns-single"
5320 Several parameters control the tree inliner used in gcc.
5321 This number sets the maximum number of instructions (counted in \s-1GCC\s0's
5322 internal representation) in a single function that the tree inliner
5323 will consider for inlining.  This only affects functions declared
5324 inline and methods implemented in a class declaration (\*(C+).
5325 The default value is 450.
5326 .IP "\fBmax-inline-insns-auto\fR" 4
5327 .IX Item "max-inline-insns-auto"
5328 When you use \fB\-finline\-functions\fR (included in \fB\-O3\fR),
5329 a lot of functions that would otherwise not be considered for inlining
5330 by the compiler will be investigated.  To those functions, a different
5331 (more restrictive) limit compared to functions declared inline can
5332 be applied.
5333 The default value is 90.
5334 .IP "\fBlarge-function-insns\fR" 4
5335 .IX Item "large-function-insns"
5336 The limit specifying really large functions.  For functions larger than this
5337 limit after inlining inlining is constrained by
5338 \&\fB\-\-param large-function-growth\fR.  This parameter is useful primarily
5339 to avoid extreme compilation time caused by non-linear algorithms used by the
5340 backend.
5341 This parameter is ignored when \fB\-funit\-at\-a\-time\fR is not used.
5342 The default value is 2700.
5343 .IP "\fBlarge-function-growth\fR" 4
5344 .IX Item "large-function-growth"
5345 Specifies maximal growth of large function caused by inlining in percents.
5346 This parameter is ignored when \fB\-funit\-at\-a\-time\fR is not used.
5347 The default value is 100 which limits large function growth to 2.0 times
5348 the original size.
5349 .IP "\fBlarge-unit-insns\fR" 4
5350 .IX Item "large-unit-insns"
5351 The limit specifying large translation unit.  Growth caused by inlining of
5352 units larger than this limit is limited by \fB\-\-param inline-unit-growth\fR.
5353 For small units this might be too tight (consider unit consisting of function A
5354 that is inline and B that just calls A three time.  If B is small relative to
5355 A, the growth of unit is 300\e% and yet such inlining is very sane.  For very
5356 large units consisting of small inlininable functions however the overall unit
5357 growth limit is needed to avoid exponential explosion of code size.  Thus for
5358 smaller units, the size is increased to \fB\-\-param large-unit-insns\fR
5359 before applying \fB\-\-param inline-unit-growth\fR.  The default is 10000
5360 .IP "\fBinline-unit-growth\fR" 4
5361 .IX Item "inline-unit-growth"
5362 Specifies maximal overall growth of the compilation unit caused by inlining.
5363 This parameter is ignored when \fB\-funit\-at\-a\-time\fR is not used.
5364 The default value is 50 which limits unit growth to 1.5 times the original
5365 size.
5366 .IP "\fBmax-inline-insns-recursive\fR" 4
5367 .IX Item "max-inline-insns-recursive"
5368 .PD 0
5369 .IP "\fBmax-inline-insns-recursive-auto\fR" 4
5370 .IX Item "max-inline-insns-recursive-auto"
5371 .PD
5372 Specifies maximum number of instructions out-of-line copy of self recursive inline
5373 function can grow into by performing recursive inlining.
5374 .Sp
5375 For functions declared inline \fB\-\-param max-inline-insns-recursive\fR is
5376 taken into account.  For function not declared inline, recursive inlining
5377 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
5378 enabled and \fB\-\-param max-inline-insns-recursive-auto\fR is used.  The
5379 default value is 450.
5380 .IP "\fBmax-inline-recursive-depth\fR" 4
5381 .IX Item "max-inline-recursive-depth"
5382 .PD 0
5383 .IP "\fBmax-inline-recursive-depth-auto\fR" 4
5384 .IX Item "max-inline-recursive-depth-auto"
5385 .PD
5386 Specifies maximum recursion depth used by the recursive inlining.
5387 .Sp
5388 For functions declared inline \fB\-\-param max-inline-recursive-depth\fR is
5389 taken into account.  For function not declared inline, recursive inlining
5390 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
5391 enabled and \fB\-\-param max-inline-recursive-depth-auto\fR is used.  The
5392 default value is 450.
5393 .IP "\fBmin-inline-recursive-probability\fR" 4
5394 .IX Item "min-inline-recursive-probability"
5395 Recursive inlining is profitable only for function having deep recursion
5396 in average and can hurt for function having little recursion depth by
5397 increasing the prologue size or complexity of function body to other
5398 optimizers.
5399 .Sp
5400 When profile feedback is available (see \fB\-fprofile\-generate\fR) the actual
5401 recursion depth can be guessed from probability that function will recurse via
5402 given call expression.  This parameter limits inlining only to call expression
5403 whose probability exceeds given threshold (in percents).  The default value is
5404 10.
5405 .IP "\fBinline-call-cost\fR" 4
5406 .IX Item "inline-call-cost"
5407 Specify cost of call instruction relative to simple arithmetics operations
5408 (having cost of 1).  Increasing this cost disqualifies inlining of non-leaf
5409 functions and at the same time increases size of leaf function that is believed to
5410 reduce function size by being inlined.  In effect it increases amount of
5411 inlining for code having large abstraction penalty (many functions that just
5412 pass the arguments to other functions) and decrease inlining for code with low
5413 abstraction penalty.  The default value is 16.
5414 .IP "\fBmax-unrolled-insns\fR" 4
5415 .IX Item "max-unrolled-insns"
5416 The maximum number of instructions that a loop should have if that loop
5417 is unrolled, and if the loop is unrolled, it determines how many times
5418 the loop code is unrolled.
5419 .IP "\fBmax-average-unrolled-insns\fR" 4
5420 .IX Item "max-average-unrolled-insns"
5421 The maximum number of instructions biased by probabilities of their execution
5422 that a loop should have if that loop is unrolled, and if the loop is unrolled,
5423 it determines how many times the loop code is unrolled.
5424 .IP "\fBmax-unroll-times\fR" 4
5425 .IX Item "max-unroll-times"
5426 The maximum number of unrollings of a single loop.
5427 .IP "\fBmax-peeled-insns\fR" 4
5428 .IX Item "max-peeled-insns"
5429 The maximum number of instructions that a loop should have if that loop
5430 is peeled, and if the loop is peeled, it determines how many times
5431 the loop code is peeled.
5432 .IP "\fBmax-peel-times\fR" 4
5433 .IX Item "max-peel-times"
5434 The maximum number of peelings of a single loop.
5435 .IP "\fBmax-completely-peeled-insns\fR" 4
5436 .IX Item "max-completely-peeled-insns"
5437 The maximum number of insns of a completely peeled loop.
5438 .IP "\fBmax-completely-peel-times\fR" 4
5439 .IX Item "max-completely-peel-times"
5440 The maximum number of iterations of a loop to be suitable for complete peeling.
5441 .IP "\fBmax-unswitch-insns\fR" 4
5442 .IX Item "max-unswitch-insns"
5443 The maximum number of insns of an unswitched loop.
5444 .IP "\fBmax-unswitch-level\fR" 4
5445 .IX Item "max-unswitch-level"
5446 The maximum number of branches unswitched in a single loop.
5447 .IP "\fBlim-expensive\fR" 4
5448 .IX Item "lim-expensive"
5449 The minimum cost of an expensive expression in the loop invariant motion.
5450 .IP "\fBiv-consider-all-candidates-bound\fR" 4
5451 .IX Item "iv-consider-all-candidates-bound"
5452 Bound on number of candidates for induction variables below that
5453 all candidates are considered for each use in induction variable
5454 optimizations.  Only the most relevant candidates are considered
5455 if there are more candidates, to avoid quadratic time complexity.
5456 .IP "\fBiv-max-considered-uses\fR" 4
5457 .IX Item "iv-max-considered-uses"
5458 The induction variable optimizations give up on loops that contain more
5459 induction variable uses.
5460 .IP "\fBiv-always-prune-cand-set-bound\fR" 4
5461 .IX Item "iv-always-prune-cand-set-bound"
5462 If number of candidates in the set is smaller than this value,
5463 we always try to remove unnecessary ivs from the set during its
5464 optimization when a new iv is added to the set.
5465 .IP "\fBscev-max-expr-size\fR" 4
5466 .IX Item "scev-max-expr-size"
5467 Bound on size of expressions used in the scalar evolutions analyzer.
5468 Large expressions slow the analyzer.
5469 .IP "\fBvect-max-version-checks\fR" 4
5470 .IX Item "vect-max-version-checks"
5471 The maximum number of runtime checks that can be performed when doing
5472 loop versioning in the vectorizer.  See option ftree-vect-loop-version
5473 for more information.
5474 .IP "\fBmax-iterations-to-track\fR" 4
5475 .IX Item "max-iterations-to-track"
5476 The maximum number of iterations of a loop the brute force algorithm
5477 for analysis of # of iterations of the loop tries to evaluate.
5478 .IP "\fBhot-bb-count-fraction\fR" 4
5479 .IX Item "hot-bb-count-fraction"
5480 Select fraction of the maximal count of repetitions of basic block in program
5481 given basic block needs to have to be considered hot.
5482 .IP "\fBhot-bb-frequency-fraction\fR" 4
5483 .IX Item "hot-bb-frequency-fraction"
5484 Select fraction of the maximal frequency of executions of basic block in
5485 function given basic block needs to have to be considered hot
5486 .IP "\fBmax-predicted-iterations\fR" 4
5487 .IX Item "max-predicted-iterations"
5488 The maximum number of loop iterations we predict statically.  This is useful
5489 in cases where function contain single loop with known bound and other loop
5490 with unknown.  We predict the known number of iterations correctly, while
5491 the unknown number of iterations average to roughly 10.  This means that the
5492 loop without bounds would appear artificially cold relative to the other one.
5493 .IP "\fBtracer-dynamic-coverage\fR" 4
5494 .IX Item "tracer-dynamic-coverage"
5495 .PD 0
5496 .IP "\fBtracer-dynamic-coverage-feedback\fR" 4
5497 .IX Item "tracer-dynamic-coverage-feedback"
5498 .PD
5499 This value is used to limit superblock formation once the given percentage of
5500 executed instructions is covered.  This limits unnecessary code size
5501 expansion.
5502 .Sp
5503 The \fBtracer-dynamic-coverage-feedback\fR is used only when profile
5504 feedback is available.  The real profiles (as opposed to statically estimated
5505 ones) are much less balanced allowing the threshold to be larger value.
5506 .IP "\fBtracer-max-code-growth\fR" 4
5507 .IX Item "tracer-max-code-growth"
5508 Stop tail duplication once code growth has reached given percentage.  This is
5509 rather hokey argument, as most of the duplicates will be eliminated later in
5510 cross jumping, so it may be set to much higher values than is the desired code
5511 growth.
5512 .IP "\fBtracer-min-branch-ratio\fR" 4
5513 .IX Item "tracer-min-branch-ratio"
5514 Stop reverse growth when the reverse probability of best edge is less than this
5515 threshold (in percent).
5516 .IP "\fBtracer-min-branch-ratio\fR" 4
5517 .IX Item "tracer-min-branch-ratio"
5518 .PD 0
5519 .IP "\fBtracer-min-branch-ratio-feedback\fR" 4
5520 .IX Item "tracer-min-branch-ratio-feedback"
5521 .PD
5522 Stop forward growth if the best edge do have probability lower than this
5523 threshold.
5524 .Sp
5525 Similarly to \fBtracer-dynamic-coverage\fR two values are present, one for
5526 compilation for profile feedback and one for compilation without.  The value
5527 for compilation with profile feedback needs to be more conservative (higher) in
5528 order to make tracer effective.
5529 .IP "\fBmax-cse-path-length\fR" 4
5530 .IX Item "max-cse-path-length"
5531 Maximum number of basic blocks on path that cse considers.  The default is 10.
5532 .IP "\fBmax-cse-insns\fR" 4
5533 .IX Item "max-cse-insns"
5534 The maximum instructions \s-1CSE\s0 process before flushing. The default is 1000.
5535 .IP "\fBglobal-var-threshold\fR" 4
5536 .IX Item "global-var-threshold"
5537 Counts the number of function calls (\fIn\fR) and the number of
5538 call-clobbered variables (\fIv\fR).  If \fIn\fRx\fIv\fR is larger than this limit, a
5539 single artificial variable will be created to represent all the
5540 call-clobbered variables at function call sites.  This artificial
5541 variable will then be made to alias every call-clobbered variable.
5542 (done as \f(CW\*(C`int * size_t\*(C'\fR on the host machine; beware overflow).
5543 .IP "\fBmax-aliased-vops\fR" 4
5544 .IX Item "max-aliased-vops"
5545 Maximum number of virtual operands allowed to represent aliases
5546 before triggering the alias grouping heuristic.  Alias grouping
5547 reduces compile times and memory consumption needed for aliasing at
5548 the expense of precision loss in alias information.
5549 .IP "\fBggc-min-expand\fR" 4
5550 .IX Item "ggc-min-expand"
5551 \&\s-1GCC\s0 uses a garbage collector to manage its own memory allocation.  This
5552 parameter specifies the minimum percentage by which the garbage
5553 collector's heap should be allowed to expand between collections.
5554 Tuning this may improve compilation speed; it has no effect on code
5555 generation.
5556 .Sp
5557 The default is 30% + 70% * (\s-1RAM/1GB\s0) with an upper bound of 100% when
5558 \&\s-1RAM\s0 >= 1GB.  If \f(CW\*(C`getrlimit\*(C'\fR is available, the notion of \*(L"\s-1RAM\s0\*(R" is
5559 the smallest of actual \s-1RAM\s0 and \f(CW\*(C`RLIMIT_DATA\*(C'\fR or \f(CW\*(C`RLIMIT_AS\*(C'\fR.  If
5560 \&\s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a particular platform, the lower
5561 bound of 30% is used.  Setting this parameter and
5562 \&\fBggc-min-heapsize\fR to zero causes a full collection to occur at
5563 every opportunity.  This is extremely slow, but can be useful for
5564 debugging.
5565 .IP "\fBggc-min-heapsize\fR" 4
5566 .IX Item "ggc-min-heapsize"
5567 Minimum size of the garbage collector's heap before it begins bothering
5568 to collect garbage.  The first collection occurs after the heap expands
5569 by \fBggc-min-expand\fR% beyond \fBggc-min-heapsize\fR.  Again,
5570 tuning this may improve compilation speed, and has no effect on code
5571 generation.
5572 .Sp
5573 The default is the smaller of \s-1RAM/8\s0, \s-1RLIMIT_RSS\s0, or a limit which
5574 tries to ensure that \s-1RLIMIT_DATA\s0 or \s-1RLIMIT_AS\s0 are not exceeded, but
5575 with a lower bound of 4096 (four megabytes) and an upper bound of
5576 131072 (128 megabytes).  If \s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a
5577 particular platform, the lower bound is used.  Setting this parameter
5578 very large effectively disables garbage collection.  Setting this
5579 parameter and \fBggc-min-expand\fR to zero causes a full collection
5580 to occur at every opportunity.
5581 .IP "\fBmax-reload-search-insns\fR" 4
5582 .IX Item "max-reload-search-insns"
5583 The maximum number of instruction reload should look backward for equivalent
5584 register.  Increasing values mean more aggressive optimization, making the
5585 compile time increase with probably slightly better performance.  The default
5586 value is 100.
5587 .IP "\fBmax-cselib-memory-locations\fR" 4
5588 .IX Item "max-cselib-memory-locations"
5589 The maximum number of memory locations cselib should take into account.
5590 Increasing values mean more aggressive optimization, making the compile time
5591 increase with probably slightly better performance.  The default value is 500.
5592 .IP "\fBmax-flow-memory-locations\fR" 4
5593 .IX Item "max-flow-memory-locations"
5594 Similar as \fBmax-cselib-memory-locations\fR but for dataflow liveness.
5595 The default value is 100.
5596 .IP "\fBreorder-blocks-duplicate\fR" 4
5597 .IX Item "reorder-blocks-duplicate"
5598 .PD 0
5599 .IP "\fBreorder-blocks-duplicate-feedback\fR" 4
5600 .IX Item "reorder-blocks-duplicate-feedback"
5601 .PD
5602 Used by basic block reordering pass to decide whether to use unconditional
5603 branch or duplicate the code on its destination.  Code is duplicated when its
5604 estimated size is smaller than this value multiplied by the estimated size of
5605 unconditional jump in the hot spots of the program.
5606 .Sp
5607 The \fBreorder-block-duplicate-feedback\fR is used only when profile
5608 feedback is available and may be set to higher values than
5609 \&\fBreorder-block-duplicate\fR since information about the hot spots is more
5610 accurate.
5611 .IP "\fBmax-sched-ready-insns\fR" 4
5612 .IX Item "max-sched-ready-insns"
5613 The maximum number of instructions ready to be issued the scheduler should
5614 consider at any given time during the first scheduling pass.  Increasing
5615 values mean more thorough searches, making the compilation time increase
5616 with probably little benefit.  The default value is 100.
5617 .IP "\fBmax-sched-region-blocks\fR" 4
5618 .IX Item "max-sched-region-blocks"
5619 The maximum number of blocks in a region to be considered for
5620 interblock scheduling.  The default value is 10.
5621 .IP "\fBmax-sched-region-insns\fR" 4
5622 .IX Item "max-sched-region-insns"
5623 The maximum number of insns in a region to be considered for
5624 interblock scheduling.  The default value is 100.
5625 .IP "\fBmin-spec-prob\fR" 4
5626 .IX Item "min-spec-prob"
5627 The minimum probability (in percents) of reaching a source block
5628 for interblock speculative scheduling.  The default value is 40.
5629 .IP "\fBmax-sched-extend-regions-iters\fR" 4
5630 .IX Item "max-sched-extend-regions-iters"
5631 The maximum number of iterations through \s-1CFG\s0 to extend regions.
5632 0 \- disable region extension,
5633 N \- do at most N iterations.
5634 The default value is 0.
5635 .IP "\fBmax-sched-insn-conflict-delay\fR" 4
5636 .IX Item "max-sched-insn-conflict-delay"
5637 The maximum conflict delay for an insn to be considered for speculative motion.
5638 The default value is 3.
5639 .IP "\fBsched-spec-prob-cutoff\fR" 4
5640 .IX Item "sched-spec-prob-cutoff"
5641 The minimal probability of speculation success (in percents), so that
5642 speculative insn will be scheduled.
5643 The default value is 40.
5644 .IP "\fBmax-last-value-rtl\fR" 4
5645 .IX Item "max-last-value-rtl"
5646 The maximum size measured as number of RTLs that can be recorded in an expression
5647 in combiner for a pseudo register as last known value of that register.  The default
5648 is 10000.
5649 .IP "\fBinteger-share-limit\fR" 4
5650 .IX Item "integer-share-limit"
5651 Small integer constants can use a shared data structure, reducing the
5652 compiler's memory usage and increasing its speed.  This sets the maximum
5653 value of a shared integer constant's.  The default value is 256.
5654 .IP "\fBmin-virtual-mappings\fR" 4
5655 .IX Item "min-virtual-mappings"
5656 Specifies the minimum number of virtual mappings in the incremental
5657 \&\s-1SSA\s0 updater that should be registered to trigger the virtual mappings
5658 heuristic defined by virtual\-mappings\-ratio.  The default value is
5659 100.
5660 .IP "\fBvirtual-mappings-ratio\fR" 4
5661 .IX Item "virtual-mappings-ratio"
5662 If the number of virtual mappings is virtual-mappings-ratio bigger
5663 than the number of virtual symbols to be updated, then the incremental
5664 \&\s-1SSA\s0 updater switches to a full update for those symbols.  The default
5665 ratio is 3.
5666 .IP "\fBssp-buffer-size\fR" 4
5667 .IX Item "ssp-buffer-size"
5668 The minimum size of buffers (i.e. arrays) that will receive stack smashing
5669 protection when \fB\-fstack\-protection\fR is used.
5670 .IP "\fBmax-jump-thread-duplication-stmts\fR" 4
5671 .IX Item "max-jump-thread-duplication-stmts"
5672 Maximum number of statements allowed in a block that needs to be
5673 duplicated when threading jumps.
5674 .IP "\fBmax-fields-for-field-sensitive\fR" 4
5675 .IX Item "max-fields-for-field-sensitive"
5676 Maximum number of fields in a structure we will treat in
5677 a field sensitive manner during pointer analysis.
5678 .RE
5679 .RS 4
5680 .RE
5681 .Sh "Options Controlling the Preprocessor"
5682 .IX Subsection "Options Controlling the Preprocessor"
5683 These options control the C preprocessor, which is run on each C source
5684 file before actual compilation.
5685 .PP
5686 If you use the \fB\-E\fR option, nothing is done except preprocessing.
5687 Some of these options make sense only together with \fB\-E\fR because
5688 they cause the preprocessor output to be unsuitable for actual
5689 compilation.
5690 .Sp
5691 .RS 4
5692 You can use \fB\-Wp,\fR\fIoption\fR to bypass the compiler driver
5693 and pass \fIoption\fR directly through to the preprocessor.  If
5694 \&\fIoption\fR contains commas, it is split into multiple options at the
5695 commas.  However, many options are modified, translated or interpreted
5696 by the compiler driver before being passed to the preprocessor, and
5697 \&\fB\-Wp\fR forcibly bypasses this phase.  The preprocessor's direct
5698 interface is undocumented and subject to change, so whenever possible
5699 you should avoid using \fB\-Wp\fR and let the driver handle the
5700 options instead.
5701 .RE
5702 .IP "\fB\-Xpreprocessor\fR \fIoption\fR" 4
5703 .IX Item "-Xpreprocessor option"
5704 Pass \fIoption\fR as an option to the preprocessor.  You can use this to
5705 supply system-specific preprocessor options which \s-1GCC\s0 does not know how to
5706 recognize.
5707 .Sp
5708 If you want to pass an option that takes an argument, you must use
5709 \&\fB\-Xpreprocessor\fR twice, once for the option and once for the argument.
5710 .IP "\fB\-D\fR \fIname\fR" 4
5711 .IX Item "-D name"
5712 Predefine \fIname\fR as a macro, with definition \f(CW1\fR.
5713 .IP "\fB\-D\fR \fIname\fR\fB=\fR\fIdefinition\fR" 4
5714 .IX Item "-D name=definition"
5715 The contents of \fIdefinition\fR are tokenized and processed as if
5716 they appeared during translation phase three in a \fB#define\fR
5717 directive.  In particular, the definition will be truncated by
5718 embedded newline characters.
5719 .Sp
5720 If you are invoking the preprocessor from a shell or shell-like
5721 program you may need to use the shell's quoting syntax to protect
5722 characters such as spaces that have a meaning in the shell syntax.
5723 .Sp
5724 If you wish to define a function-like macro on the command line, write
5725 its argument list with surrounding parentheses before the equals sign
5726 (if any).  Parentheses are meaningful to most shells, so you will need
5727 to quote the option.  With \fBsh\fR and \fBcsh\fR,
5728 \&\fB\-D'\fR\fIname\fR\fB(\fR\fIargs...\fR\fB)=\fR\fIdefinition\fR\fB'\fR works.
5729 .Sp
5730 \&\fB\-D\fR and \fB\-U\fR options are processed in the order they
5731 are given on the command line.  All \fB\-imacros\fR \fIfile\fR and
5732 \&\fB\-include\fR \fIfile\fR options are processed after all
5733 \&\fB\-D\fR and \fB\-U\fR options.
5734 .IP "\fB\-U\fR \fIname\fR" 4
5735 .IX Item "-U name"
5736 Cancel any previous definition of \fIname\fR, either built in or
5737 provided with a \fB\-D\fR option.
5738 .IP "\fB\-undef\fR" 4
5739 .IX Item "-undef"
5740 Do not predefine any system-specific or GCC-specific macros.  The
5741 standard predefined macros remain defined.
5742 .IP "\fB\-I\fR \fIdir\fR" 4
5743 .IX Item "-I dir"
5744 Add the directory \fIdir\fR to the list of directories to be searched
5745 for header files.
5746 Directories named by \fB\-I\fR are searched before the standard
5747 system include directories.  If the directory \fIdir\fR is a standard
5748 system include directory, the option is ignored to ensure that the
5749 default search order for system directories and the special treatment
5750 of system headers are not defeated
5751 \&.
5752 .IP "\fB\-o\fR \fIfile\fR" 4
5753 .IX Item "-o file"
5754 Write output to \fIfile\fR.  This is the same as specifying \fIfile\fR
5755 as the second non-option argument to \fBcpp\fR.  \fBgcc\fR has a
5756 different interpretation of a second non-option argument, so you must
5757 use \fB\-o\fR to specify the output file.
5758 .IP "\fB\-Wall\fR" 4
5759 .IX Item "-Wall"
5760 Turns on all optional warnings which are desirable for normal code.
5761 At present this is \fB\-Wcomment\fR, \fB\-Wtrigraphs\fR,
5762 \&\fB\-Wmultichar\fR and a warning about integer promotion causing a
5763 change of sign in \f(CW\*(C`#if\*(C'\fR expressions.  Note that many of the
5764 preprocessor's warnings are on by default and have no options to
5765 control them.
5766 .IP "\fB\-Wcomment\fR" 4
5767 .IX Item "-Wcomment"
5768 .PD 0
5769 .IP "\fB\-Wcomments\fR" 4
5770 .IX Item "-Wcomments"
5771 .PD
5772 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
5773 comment, or whenever a backslash-newline appears in a \fB//\fR comment.
5774 (Both forms have the same effect.)
5775 .IP "\fB\-Wtrigraphs\fR" 4
5776 .IX Item "-Wtrigraphs"
5777 Most trigraphs in comments cannot affect the meaning of the program.
5778 However, a trigraph that would form an escaped newline (\fB??/\fR at
5779 the end of a line) can, by changing where the comment begins or ends.
5780 Therefore, only trigraphs that would form escaped newlines produce
5781 warnings inside a comment.
5782 .Sp
5783 This option is implied by \fB\-Wall\fR.  If \fB\-Wall\fR is not
5784 given, this option is still enabled unless trigraphs are enabled.  To
5785 get trigraph conversion without warnings, but get the other
5786 \&\fB\-Wall\fR warnings, use \fB\-trigraphs \-Wall \-Wno\-trigraphs\fR.
5787 .IP "\fB\-Wtraditional\fR" 4
5788 .IX Item "-Wtraditional"
5789 Warn about certain constructs that behave differently in traditional and
5790 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
5791 equivalent, and problematic constructs which should be avoided.
5792 .IP "\fB\-Wimport\fR" 4
5793 .IX Item "-Wimport"
5794 Warn the first time \fB#import\fR is used.
5795 .IP "\fB\-Wundef\fR" 4
5796 .IX Item "-Wundef"
5797 Warn whenever an identifier which is not a macro is encountered in an
5798 \&\fB#if\fR directive, outside of \fBdefined\fR.  Such identifiers are
5799 replaced with zero.
5800 .IP "\fB\-Wunused\-macros\fR" 4
5801 .IX Item "-Wunused-macros"
5802 Warn about macros defined in the main file that are unused.  A macro
5803 is \fIused\fR if it is expanded or tested for existence at least once.
5804 The preprocessor will also warn if the macro has not been used at the
5805 time it is redefined or undefined.
5806 .Sp
5807 Built-in macros, macros defined on the command line, and macros
5808 defined in include files are not warned about.
5809 .Sp
5810 \&\fINote:\fR If a macro is actually used, but only used in skipped
5811 conditional blocks, then \s-1CPP\s0 will report it as unused.  To avoid the
5812 warning in such a case, you might improve the scope of the macro's
5813 definition by, for example, moving it into the first skipped block.
5814 Alternatively, you could provide a dummy use with something like:
5815 .Sp
5816 .Vb 2
5817 \&        #if defined the_macro_causing_the_warning
5818 \&        #endif
5819 .Ve
5820 .IP "\fB\-Wendif\-labels\fR" 4
5821 .IX Item "-Wendif-labels"
5822 Warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
5823 This usually happens in code of the form
5824 .Sp
5825 .Vb 5
5826 \&        #if FOO
5827 \&        ...
5828 \&        #else FOO
5829 \&        ...
5830 \&        #endif FOO
5831 .Ve
5832 .Sp
5833 The second and third \f(CW\*(C`FOO\*(C'\fR should be in comments, but often are not
5834 in older programs.  This warning is on by default.
5835 .IP "\fB\-Werror\fR" 4
5836 .IX Item "-Werror"
5837 Make all warnings into hard errors.  Source code which triggers warnings
5838 will be rejected.
5839 .IP "\fB\-Wsystem\-headers\fR" 4
5840 .IX Item "-Wsystem-headers"
5841 Issue warnings for code in system headers.  These are normally unhelpful
5842 in finding bugs in your own code, therefore suppressed.  If you are
5843 responsible for the system library, you may want to see them.
5844 .IP "\fB\-w\fR" 4
5845 .IX Item "-w"
5846 Suppress all warnings, including those which \s-1GNU\s0 \s-1CPP\s0 issues by default.
5847 .IP "\fB\-pedantic\fR" 4
5848 .IX Item "-pedantic"
5849 Issue all the mandatory diagnostics listed in the C standard.  Some of
5850 them are left out by default, since they trigger frequently on harmless
5851 code.
5852 .IP "\fB\-pedantic\-errors\fR" 4
5853 .IX Item "-pedantic-errors"
5854 Issue all the mandatory diagnostics, and make all mandatory diagnostics
5855 into errors.  This includes mandatory diagnostics that \s-1GCC\s0 issues
5856 without \fB\-pedantic\fR but treats as warnings.
5857 .IP "\fB\-M\fR" 4
5858 .IX Item "-M"
5859 Instead of outputting the result of preprocessing, output a rule
5860 suitable for \fBmake\fR describing the dependencies of the main
5861 source file.  The preprocessor outputs one \fBmake\fR rule containing
5862 the object file name for that source file, a colon, and the names of all
5863 the included files, including those coming from \fB\-include\fR or
5864 \&\fB\-imacros\fR command line options.
5865 .Sp
5866 Unless specified explicitly (with \fB\-MT\fR or \fB\-MQ\fR), the
5867 object file name consists of the basename of the source file with any
5868 suffix replaced with object file suffix.  If there are many included
5869 files then the rule is split into several lines using \fB\e\fR\-newline.
5870 The rule has no commands.
5871 .Sp
5872 This option does not suppress the preprocessor's debug output, such as
5873 \&\fB\-dM\fR.  To avoid mixing such debug output with the dependency
5874 rules you should explicitly specify the dependency output file with
5875 \&\fB\-MF\fR, or use an environment variable like
5876 \&\fB\s-1DEPENDENCIES_OUTPUT\s0\fR.  Debug output
5877 will still be sent to the regular output stream as normal.
5878 .Sp
5879 Passing \fB\-M\fR to the driver implies \fB\-E\fR, and suppresses
5880 warnings with an implicit \fB\-w\fR.
5881 .IP "\fB\-MM\fR" 4
5882 .IX Item "-MM"
5883 Like \fB\-M\fR but do not mention header files that are found in
5884 system header directories, nor header files that are included,
5885 directly or indirectly, from such a header.
5886 .Sp
5887 This implies that the choice of angle brackets or double quotes in an
5888 \&\fB#include\fR directive does not in itself determine whether that
5889 header will appear in \fB\-MM\fR dependency output.  This is a
5890 slight change in semantics from \s-1GCC\s0 versions 3.0 and earlier.
5891 .IP "\fB\-MF\fR \fIfile\fR" 4
5892 .IX Item "-MF file"
5893 When used with \fB\-M\fR or \fB\-MM\fR, specifies a
5894 file to write the dependencies to.  If no \fB\-MF\fR switch is given
5895 the preprocessor sends the rules to the same place it would have sent
5896 preprocessed output.
5897 .Sp
5898 When used with the driver options \fB\-MD\fR or \fB\-MMD\fR,
5899 \&\fB\-MF\fR overrides the default dependency output file.
5900 .IP "\fB\-MG\fR" 4
5901 .IX Item "-MG"
5902 In conjunction with an option such as \fB\-M\fR requesting
5903 dependency generation, \fB\-MG\fR assumes missing header files are
5904 generated files and adds them to the dependency list without raising
5905 an error.  The dependency filename is taken directly from the
5906 \&\f(CW\*(C`#include\*(C'\fR directive without prepending any path.  \fB\-MG\fR
5907 also suppresses preprocessed output, as a missing header file renders
5908 this useless.
5909 .Sp
5910 This feature is used in automatic updating of makefiles.
5911 .IP "\fB\-MP\fR" 4
5912 .IX Item "-MP"
5913 This option instructs \s-1CPP\s0 to add a phony target for each dependency
5914 other than the main file, causing each to depend on nothing.  These
5915 dummy rules work around errors \fBmake\fR gives if you remove header
5916 files without updating the \fIMakefile\fR to match.
5917 .Sp
5918 This is typical output:
5919 .Sp
5920 .Vb 1
5921 \&        test.o: test.c test.h
5922 .Ve
5923 .Sp
5924 .Vb 1
5925 \&        test.h:
5926 .Ve
5927 .IP "\fB\-MT\fR \fItarget\fR" 4
5928 .IX Item "-MT target"
5929 Change the target of the rule emitted by dependency generation.  By
5930 default \s-1CPP\s0 takes the name of the main input file, including any path,
5931 deletes any file suffix such as \fB.c\fR, and appends the platform's
5932 usual object suffix.  The result is the target.
5933 .Sp
5934 An \fB\-MT\fR option will set the target to be exactly the string you
5935 specify.  If you want multiple targets, you can specify them as a single
5936 argument to \fB\-MT\fR, or use multiple \fB\-MT\fR options.
5937 .Sp
5938 For example, \fB\-MT\ '$(objpfx)foo.o'\fR might give
5939 .Sp
5940 .Vb 1
5941 \&        $(objpfx)foo.o: foo.c
5942 .Ve
5943 .IP "\fB\-MQ\fR \fItarget\fR" 4
5944 .IX Item "-MQ target"
5945 Same as \fB\-MT\fR, but it quotes any characters which are special to
5946 Make.  \fB\-MQ\ '$(objpfx)foo.o'\fR gives
5947 .Sp
5948 .Vb 1
5949 \&        $$(objpfx)foo.o: foo.c
5950 .Ve
5951 .Sp
5952 The default target is automatically quoted, as if it were given with
5953 \&\fB\-MQ\fR.
5954 .IP "\fB\-MD\fR" 4
5955 .IX Item "-MD"
5956 \&\fB\-MD\fR is equivalent to \fB\-M \-MF\fR \fIfile\fR, except that
5957 \&\fB\-E\fR is not implied.  The driver determines \fIfile\fR based on
5958 whether an \fB\-o\fR option is given.  If it is, the driver uses its
5959 argument but with a suffix of \fI.d\fR, otherwise it take the
5960 basename of the input file and applies a \fI.d\fR suffix.
5961 .Sp
5962 If \fB\-MD\fR is used in conjunction with \fB\-E\fR, any
5963 \&\fB\-o\fR switch is understood to specify the dependency output file, but if used without \fB\-E\fR, each \fB\-o\fR
5964 is understood to specify a target object file.
5965 .Sp
5966 Since \fB\-E\fR is not implied, \fB\-MD\fR can be used to generate
5967 a dependency output file as a side-effect of the compilation process.
5968 .IP "\fB\-MMD\fR" 4
5969 .IX Item "-MMD"
5970 Like \fB\-MD\fR except mention only user header files, not system
5971 header files.
5972 .IP "\fB\-fpch\-deps\fR" 4
5973 .IX Item "-fpch-deps"
5974 When using precompiled headers, this flag
5975 will cause the dependency-output flags to also list the files from the
5976 precompiled header's dependencies.  If not specified only the
5977 precompiled header would be listed and not the files that were used to
5978 create it because those files are not consulted when a precompiled
5979 header is used.
5980 .IP "\fB\-fpch\-preprocess\fR" 4
5981 .IX Item "-fpch-preprocess"
5982 This option allows use of a precompiled header together with \fB\-E\fR.  It inserts a special \f(CW\*(C`#pragma\*(C'\fR,
5983 \&\f(CW\*(C`#pragma GCC pch_preprocess "<filename>"\*(C'\fR in the output to mark
5984 the place where the precompiled header was found, and its filename.  When
5985 \&\fB\-fpreprocessed\fR is in use, \s-1GCC\s0 recognizes this \f(CW\*(C`#pragma\*(C'\fR and
5986 loads the \s-1PCH\s0.
5987 .Sp
5988 This option is off by default, because the resulting preprocessed output
5989 is only really suitable as input to \s-1GCC\s0.  It is switched on by
5990 \&\fB\-save\-temps\fR.
5991 .Sp
5992 You should not write this \f(CW\*(C`#pragma\*(C'\fR in your own code, but it is
5993 safe to edit the filename if the \s-1PCH\s0 file is available in a different
5994 location.  The filename may be absolute or it may be relative to \s-1GCC\s0's
5995 current directory.
5996 .IP "\fB\-x c\fR" 4
5997 .IX Item "-x c"
5998 .PD 0
5999 .IP "\fB\-x c++\fR" 4
6000 .IX Item "-x c++"
6001 .IP "\fB\-x assembler-with-cpp\fR" 4
6002 .IX Item "-x assembler-with-cpp"
6003 .PD
6004 Specify the source language: C, \*(C+, or assembly.  This has
6005 nothing to do with standards conformance or extensions; it merely
6006 selects which base syntax to expect.  If you give none of these options,
6007 cpp will deduce the language from the extension of the source file:
6008 \&\fB.c\fR, \fB.cc\fR, \fB.m\fR, or \fB.S\fR.  Some other common
6009 extensions for \*(C+ and assembly are also recognized.  If cpp does not
6010 recognize the extension, it will treat the file as C; this is the most
6011 generic mode.
6012 .Sp
6013 \&\fINote:\fR Previous versions of cpp accepted a \fB\-lang\fR option
6014 which selected both the language and the standards conformance level.
6015 This option has been removed, because it conflicts with the \fB\-l\fR
6016 option.
6017 .IP "\fB\-std=\fR\fIstandard\fR" 4
6018 .IX Item "-std=standard"
6019 .PD 0
6020 .IP "\fB\-ansi\fR" 4
6021 .IX Item "-ansi"
6022 .PD
6023 Specify the standard to which the code should conform.  Currently \s-1CPP\s0
6024 knows about C and \*(C+ standards; others may be added in the future.
6025 .Sp
6026 \&\fIstandard\fR
6027 may be one of:
6028 .RS 4
6029 .ie n .IP """iso9899:1990""" 4
6030 .el .IP "\f(CWiso9899:1990\fR" 4
6031 .IX Item "iso9899:1990"
6032 .PD 0
6033 .ie n .IP """c89""" 4
6034 .el .IP "\f(CWc89\fR" 4
6035 .IX Item "c89"
6036 .PD
6037 The \s-1ISO\s0 C standard from 1990.  \fBc89\fR is the customary shorthand for
6038 this version of the standard.
6039 .Sp
6040 The \fB\-ansi\fR option is equivalent to \fB\-std=c89\fR.
6041 .ie n .IP """iso9899:199409""" 4
6042 .el .IP "\f(CWiso9899:199409\fR" 4
6043 .IX Item "iso9899:199409"
6044 The 1990 C standard, as amended in 1994.
6045 .ie n .IP """iso9899:1999""" 4
6046 .el .IP "\f(CWiso9899:1999\fR" 4
6047 .IX Item "iso9899:1999"
6048 .PD 0
6049 .ie n .IP """c99""" 4
6050 .el .IP "\f(CWc99\fR" 4
6051 .IX Item "c99"
6052 .ie n .IP """iso9899:199x""" 4
6053 .el .IP "\f(CWiso9899:199x\fR" 4
6054 .IX Item "iso9899:199x"
6055 .ie n .IP """c9x""" 4
6056 .el .IP "\f(CWc9x\fR" 4
6057 .IX Item "c9x"
6058 .PD
6059 The revised \s-1ISO\s0 C standard, published in December 1999.  Before
6060 publication, this was known as C9X.
6061 .ie n .IP """gnu89""" 4
6062 .el .IP "\f(CWgnu89\fR" 4
6063 .IX Item "gnu89"
6064 The 1990 C standard plus \s-1GNU\s0 extensions.  This is the default.
6065 .ie n .IP """gnu99""" 4
6066 .el .IP "\f(CWgnu99\fR" 4
6067 .IX Item "gnu99"
6068 .PD 0
6069 .ie n .IP """gnu9x""" 4
6070 .el .IP "\f(CWgnu9x\fR" 4
6071 .IX Item "gnu9x"
6072 .PD
6073 The 1999 C standard plus \s-1GNU\s0 extensions.
6074 .ie n .IP """c++98""" 4
6075 .el .IP "\f(CWc++98\fR" 4
6076 .IX Item "c++98"
6077 The 1998 \s-1ISO\s0 \*(C+ standard plus amendments.
6078 .ie n .IP """gnu++98""" 4
6079 .el .IP "\f(CWgnu++98\fR" 4
6080 .IX Item "gnu++98"
6081 The same as \fB\-std=c++98\fR plus \s-1GNU\s0 extensions.  This is the
6082 default for \*(C+ code.
6083 .RE
6084 .RS 4
6085 .RE
6086 .IP "\fB\-I\-\fR" 4
6087 .IX Item "-I-"
6088 Split the include path.  Any directories specified with \fB\-I\fR
6089 options before \fB\-I\-\fR are searched only for headers requested with
6090 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
6091 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR.  If additional directories are
6092 specified with \fB\-I\fR options after the \fB\-I\-\fR, those
6093 directories are searched for all \fB#include\fR directives.
6094 .Sp
6095 In addition, \fB\-I\-\fR inhibits the use of the directory of the current
6096 file directory as the first search directory for \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR.
6097 This option has been deprecated.
6098 .IP "\fB\-nostdinc\fR" 4
6099 .IX Item "-nostdinc"
6100 Do not search the standard system directories for header files.
6101 Only the directories you have specified with \fB\-I\fR options
6102 (and the directory of the current file, if appropriate) are searched.
6103 .IP "\fB\-nostdinc++\fR" 4
6104 .IX Item "-nostdinc++"
6105 Do not search for header files in the \*(C+\-specific standard directories,
6106 but do still search the other standard directories.  (This option is
6107 used when building the \*(C+ library.)
6108 .IP "\fB\-include\fR \fIfile\fR" 4
6109 .IX Item "-include file"
6110 Process \fIfile\fR as if \f(CW\*(C`#include "file"\*(C'\fR appeared as the first
6111 line of the primary source file.  However, the first directory searched
6112 for \fIfile\fR is the preprocessor's working directory \fIinstead of\fR
6113 the directory containing the main source file.  If not found there, it
6114 is searched for in the remainder of the \f(CW\*(C`#include "..."\*(C'\fR search
6115 chain as normal.
6116 .Sp
6117 If multiple \fB\-include\fR options are given, the files are included
6118 in the order they appear on the command line.
6119 .IP "\fB\-imacros\fR \fIfile\fR" 4
6120 .IX Item "-imacros file"
6121 Exactly like \fB\-include\fR, except that any output produced by
6122 scanning \fIfile\fR is thrown away.  Macros it defines remain defined.
6123 This allows you to acquire all the macros from a header without also
6124 processing its declarations.
6125 .Sp
6126 All files specified by \fB\-imacros\fR are processed before all files
6127 specified by \fB\-include\fR.
6128 .IP "\fB\-idirafter\fR \fIdir\fR" 4
6129 .IX Item "-idirafter dir"
6130 Search \fIdir\fR for header files, but do it \fIafter\fR all
6131 directories specified with \fB\-I\fR and the standard system directories
6132 have been exhausted.  \fIdir\fR is treated as a system include directory.
6133 .IP "\fB\-iprefix\fR \fIprefix\fR" 4
6134 .IX Item "-iprefix prefix"
6135 Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
6136 options.  If the prefix represents a directory, you should include the
6137 final \fB/\fR.
6138 .IP "\fB\-iwithprefix\fR \fIdir\fR" 4
6139 .IX Item "-iwithprefix dir"
6140 .PD 0
6141 .IP "\fB\-iwithprefixbefore\fR \fIdir\fR" 4
6142 .IX Item "-iwithprefixbefore dir"
6143 .PD
6144 Append \fIdir\fR to the prefix specified previously with
6145 \&\fB\-iprefix\fR, and add the resulting directory to the include search
6146 path.  \fB\-iwithprefixbefore\fR puts it in the same place \fB\-I\fR
6147 would; \fB\-iwithprefix\fR puts it where \fB\-idirafter\fR would.
6148 .IP "\fB\-isysroot\fR \fIdir\fR" 4
6149 .IX Item "-isysroot dir"
6150 This option is like the \fB\-\-sysroot\fR option, but applies only to
6151 header files.  See the \fB\-\-sysroot\fR option for more information.
6152 .IP "\fB\-imultilib\fR \fIdir\fR" 4
6153 .IX Item "-imultilib dir"
6154 Use \fIdir\fR as a subdirectory of the directory containing
6155 target-specific \*(C+ headers.
6156 .IP "\fB\-isystem\fR \fIdir\fR" 4
6157 .IX Item "-isystem dir"
6158 Search \fIdir\fR for header files, after all directories specified by
6159 \&\fB\-I\fR but before the standard system directories.  Mark it
6160 as a system directory, so that it gets the same special treatment as
6161 is applied to the standard system directories.
6162 .IP "\fB\-iquote\fR \fIdir\fR" 4
6163 .IX Item "-iquote dir"
6164 Search \fIdir\fR only for header files requested with
6165 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
6166 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR, before all directories specified by
6167 \&\fB\-I\fR and before the standard system directories.
6168 .IP "\fB\-fdollars\-in\-identifiers\fR" 4
6169 .IX Item "-fdollars-in-identifiers"
6170 Accept \fB$\fR in identifiers.
6171 .IP "\fB\-fextended\-identifiers\fR" 4
6172 .IX Item "-fextended-identifiers"
6173 Accept universal character names in identifiers.  This option is
6174 experimental; in a future version of \s-1GCC\s0, it will be enabled by
6175 default for C99 and \*(C+.
6176 .IP "\fB\-fpreprocessed\fR" 4
6177 .IX Item "-fpreprocessed"
6178 Indicate to the preprocessor that the input file has already been
6179 preprocessed.  This suppresses things like macro expansion, trigraph
6180 conversion, escaped newline splicing, and processing of most directives.
6181 The preprocessor still recognizes and removes comments, so that you can
6182 pass a file preprocessed with \fB\-C\fR to the compiler without
6183 problems.  In this mode the integrated preprocessor is little more than
6184 a tokenizer for the front ends.
6185 .Sp
6186 \&\fB\-fpreprocessed\fR is implicit if the input file has one of the
6187 extensions \fB.i\fR, \fB.ii\fR or \fB.mi\fR.  These are the
6188 extensions that \s-1GCC\s0 uses for preprocessed files created by
6189 \&\fB\-save\-temps\fR.
6190 .IP "\fB\-ftabstop=\fR\fIwidth\fR" 4
6191 .IX Item "-ftabstop=width"
6192 Set the distance between tab stops.  This helps the preprocessor report
6193 correct column numbers in warnings or errors, even if tabs appear on the
6194 line.  If the value is less than 1 or greater than 100, the option is
6195 ignored.  The default is 8.
6196 .IP "\fB\-fexec\-charset=\fR\fIcharset\fR" 4
6197 .IX Item "-fexec-charset=charset"
6198 Set the execution character set, used for string and character
6199 constants.  The default is \s-1UTF\-8\s0.  \fIcharset\fR can be any encoding
6200 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
6201 .IP "\fB\-fwide\-exec\-charset=\fR\fIcharset\fR" 4
6202 .IX Item "-fwide-exec-charset=charset"
6203 Set the wide execution character set, used for wide string and
6204 character constants.  The default is \s-1UTF\-32\s0 or \s-1UTF\-16\s0, whichever
6205 corresponds to the width of \f(CW\*(C`wchar_t\*(C'\fR.  As with
6206 \&\fB\-fexec\-charset\fR, \fIcharset\fR can be any encoding supported
6207 by the system's \f(CW\*(C`iconv\*(C'\fR library routine; however, you will have
6208 problems with encodings that do not fit exactly in \f(CW\*(C`wchar_t\*(C'\fR.
6209 .IP "\fB\-finput\-charset=\fR\fIcharset\fR" 4
6210 .IX Item "-finput-charset=charset"
6211 Set the input character set, used for translation from the character
6212 set of the input file to the source character set used by \s-1GCC\s0.  If the
6213 locale does not specify, or \s-1GCC\s0 cannot get this information from the
6214 locale, the default is \s-1UTF\-8\s0.  This can be overridden by either the locale
6215 or this command line option.  Currently the command line option takes
6216 precedence if there's a conflict.  \fIcharset\fR can be any encoding
6217 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
6218 .IP "\fB\-fworking\-directory\fR" 4
6219 .IX Item "-fworking-directory"
6220 Enable generation of linemarkers in the preprocessor output that will
6221 let the compiler know the current working directory at the time of
6222 preprocessing.  When this option is enabled, the preprocessor will
6223 emit, after the initial linemarker, a second linemarker with the
6224 current working directory followed by two slashes.  \s-1GCC\s0 will use this
6225 directory, when it's present in the preprocessed input, as the
6226 directory emitted as the current working directory in some debugging
6227 information formats.  This option is implicitly enabled if debugging
6228 information is enabled, but this can be inhibited with the negated
6229 form \fB\-fno\-working\-directory\fR.  If the \fB\-P\fR flag is
6230 present in the command line, this option has no effect, since no
6231 \&\f(CW\*(C`#line\*(C'\fR directives are emitted whatsoever.
6232 .IP "\fB\-fno\-show\-column\fR" 4
6233 .IX Item "-fno-show-column"
6234 Do not print column numbers in diagnostics.  This may be necessary if
6235 diagnostics are being scanned by a program that does not understand the
6236 column numbers, such as \fBdejagnu\fR.
6237 .IP "\fB\-A\fR \fIpredicate\fR\fB=\fR\fIanswer\fR" 4
6238 .IX Item "-A predicate=answer"
6239 Make an assertion with the predicate \fIpredicate\fR and answer
6240 \&\fIanswer\fR.  This form is preferred to the older form \fB\-A\fR
6241 \&\fIpredicate\fR\fB(\fR\fIanswer\fR\fB)\fR, which is still supported, because
6242 it does not use shell special characters.
6243 .IP "\fB\-A \-\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4
6244 .IX Item "-A -predicate=answer"
6245 Cancel an assertion with the predicate \fIpredicate\fR and answer
6246 \&\fIanswer\fR.
6247 .IP "\fB\-dCHARS\fR" 4
6248 .IX Item "-dCHARS"
6249 \&\fI\s-1CHARS\s0\fR is a sequence of one or more of the following characters,
6250 and must not be preceded by a space.  Other characters are interpreted
6251 by the compiler proper, or reserved for future versions of \s-1GCC\s0, and so
6252 are silently ignored.  If you specify characters whose behavior
6253 conflicts, the result is undefined.
6254 .RS 4
6255 .IP "\fBM\fR" 4
6256 .IX Item "M"
6257 Instead of the normal output, generate a list of \fB#define\fR
6258 directives for all the macros defined during the execution of the
6259 preprocessor, including predefined macros.  This gives you a way of
6260 finding out what is predefined in your version of the preprocessor.
6261 Assuming you have no file \fIfoo.h\fR, the command
6262 .Sp
6263 .Vb 1
6264 \&        touch foo.h; cpp -dM foo.h
6265 .Ve
6266 .Sp
6267 will show all the predefined macros.
6268 .IP "\fBD\fR" 4
6269 .IX Item "D"
6270 Like \fBM\fR except in two respects: it does \fInot\fR include the
6271 predefined macros, and it outputs \fIboth\fR the \fB#define\fR
6272 directives and the result of preprocessing.  Both kinds of output go to
6273 the standard output file.
6274 .IP "\fBN\fR" 4
6275 .IX Item "N"
6276 Like \fBD\fR, but emit only the macro names, not their expansions.
6277 .IP "\fBI\fR" 4
6278 .IX Item "I"
6279 Output \fB#include\fR directives in addition to the result of
6280 preprocessing.
6281 .RE
6282 .RS 4
6283 .RE
6284 .IP "\fB\-P\fR" 4
6285 .IX Item "-P"
6286 Inhibit generation of linemarkers in the output from the preprocessor.
6287 This might be useful when running the preprocessor on something that is
6288 not C code, and will be sent to a program which might be confused by the
6289 linemarkers.
6290 .IP "\fB\-C\fR" 4
6291 .IX Item "-C"
6292 Do not discard comments.  All comments are passed through to the output
6293 file, except for comments in processed directives, which are deleted
6294 along with the directive.
6295 .Sp
6296 You should be prepared for side effects when using \fB\-C\fR; it
6297 causes the preprocessor to treat comments as tokens in their own right.
6298 For example, comments appearing at the start of what would be a
6299 directive line have the effect of turning that line into an ordinary
6300 source line, since the first token on the line is no longer a \fB#\fR.
6301 .IP "\fB\-CC\fR" 4
6302 .IX Item "-CC"
6303 Do not discard comments, including during macro expansion.  This is
6304 like \fB\-C\fR, except that comments contained within macros are
6305 also passed through to the output file where the macro is expanded.
6306 .Sp
6307 In addition to the side-effects of the \fB\-C\fR option, the
6308 \&\fB\-CC\fR option causes all \*(C+\-style comments inside a macro
6309 to be converted to C\-style comments.  This is to prevent later use
6310 of that macro from inadvertently commenting out the remainder of
6311 the source line.
6312 .Sp
6313 The \fB\-CC\fR option is generally used to support lint comments.
6314 .IP "\fB\-traditional\-cpp\fR" 4
6315 .IX Item "-traditional-cpp"
6316 Try to imitate the behavior of old-fashioned C preprocessors, as
6317 opposed to \s-1ISO\s0 C preprocessors.
6318 .IP "\fB\-trigraphs\fR" 4
6319 .IX Item "-trigraphs"
6320 Process trigraph sequences.
6321 These are three-character sequences, all starting with \fB??\fR, that
6322 are defined by \s-1ISO\s0 C to stand for single characters.  For example,
6323 \&\fB??/\fR stands for \fB\e\fR, so \fB'??/n'\fR is a character
6324 constant for a newline.  By default, \s-1GCC\s0 ignores trigraphs, but in
6325 standard-conforming modes it converts them.  See the \fB\-std\fR and
6326 \&\fB\-ansi\fR options.
6327 .Sp
6328 The nine trigraphs and their replacements are
6329 .Sp
6330 .Vb 2
6331 \&        Trigraph:       ??(  ??)  ??<  ??>  ??=  ??/  ??'  ??!  ??-
6332 \&        Replacement:      [    ]    {    }    #    \e    ^    |    ~
6333 .Ve
6334 .IP "\fB\-remap\fR" 4
6335 .IX Item "-remap"
6336 Enable special code to work around file systems which only permit very
6337 short file names, such as \s-1MS\-DOS\s0.
6338 .IP "\fB\-\-help\fR" 4
6339 .IX Item "--help"
6340 .PD 0
6341 .IP "\fB\-\-target\-help\fR" 4
6342 .IX Item "--target-help"
6343 .PD
6344 Print text describing all the command line options instead of
6345 preprocessing anything.
6346 .IP "\fB\-v\fR" 4
6347 .IX Item "-v"
6348 Verbose mode.  Print out \s-1GNU\s0 \s-1CPP\s0's version number at the beginning of
6349 execution, and report the final form of the include path.
6350 .IP "\fB\-H\fR" 4
6351 .IX Item "-H"
6352 Print the name of each header file used, in addition to other normal
6353 activities.  Each name is indented to show how deep in the
6354 \&\fB#include\fR stack it is.  Precompiled header files are also
6355 printed, even if they are found to be invalid; an invalid precompiled
6356 header file is printed with \fB...x\fR and a valid one with \fB...!\fR .
6357 .IP "\fB\-version\fR" 4
6358 .IX Item "-version"
6359 .PD 0
6360 .IP "\fB\-\-version\fR" 4
6361 .IX Item "--version"
6362 .PD
6363 Print out \s-1GNU\s0 \s-1CPP\s0's version number.  With one dash, proceed to
6364 preprocess as normal.  With two dashes, exit immediately.
6365 .Sh "Passing Options to the Assembler"
6366 .IX Subsection "Passing Options to the Assembler"
6367 You can pass options to the assembler.
6368 .IP "\fB\-Wa,\fR\fIoption\fR" 4
6369 .IX Item "-Wa,option"
6370 Pass \fIoption\fR as an option to the assembler.  If \fIoption\fR
6371 contains commas, it is split into multiple options at the commas.
6372 .IP "\fB\-Xassembler\fR \fIoption\fR" 4
6373 .IX Item "-Xassembler option"
6374 Pass \fIoption\fR as an option to the assembler.  You can use this to
6375 supply system-specific assembler options which \s-1GCC\s0 does not know how to
6376 recognize.
6377 .Sp
6378 If you want to pass an option that takes an argument, you must use
6379 \&\fB\-Xassembler\fR twice, once for the option and once for the argument.
6380 .Sh "Options for Linking"
6381 .IX Subsection "Options for Linking"
6382 These options come into play when the compiler links object files into
6383 an executable output file.  They are meaningless if the compiler is
6384 not doing a link step.
6385 .IP "\fIobject-file-name\fR" 4
6386 .IX Item "object-file-name"
6387 A file name that does not end in a special recognized suffix is
6388 considered to name an object file or library.  (Object files are
6389 distinguished from libraries by the linker according to the file
6390 contents.)  If linking is done, these object files are used as input
6391 to the linker.
6392 .IP "\fB\-c\fR" 4
6393 .IX Item "-c"
6394 .PD 0
6395 .IP "\fB\-S\fR" 4
6396 .IX Item "-S"
6397 .IP "\fB\-E\fR" 4
6398 .IX Item "-E"
6399 .PD
6400 If any of these options is used, then the linker is not run, and
6401 object file names should not be used as arguments.  
6402 .IP "\fB\-l\fR\fIlibrary\fR" 4
6403 .IX Item "-llibrary"
6404 .PD 0
6405 .IP "\fB\-l\fR \fIlibrary\fR" 4
6406 .IX Item "-l library"
6407 .PD
6408 Search the library named \fIlibrary\fR when linking.  (The second
6409 alternative with the library as a separate argument is only for
6410 \&\s-1POSIX\s0 compliance and is not recommended.)
6411 .Sp
6412 It makes a difference where in the command you write this option; the
6413 linker searches and processes libraries and object files in the order they
6414 are specified.  Thus, \fBfoo.o \-lz bar.o\fR searches library \fBz\fR
6415 after file \fIfoo.o\fR but before \fIbar.o\fR.  If \fIbar.o\fR refers
6416 to functions in \fBz\fR, those functions may not be loaded.
6417 .Sp
6418 The linker searches a standard list of directories for the library,
6419 which is actually a file named \fIlib\fIlibrary\fI.a\fR.  The linker
6420 then uses this file as if it had been specified precisely by name.
6421 .Sp
6422 The directories searched include several standard system directories
6423 plus any that you specify with \fB\-L\fR.
6424 .Sp
6425 Normally the files found this way are library files\-\-\-archive files
6426 whose members are object files.  The linker handles an archive file by
6427 scanning through it for members which define symbols that have so far
6428 been referenced but not defined.  But if the file that is found is an
6429 ordinary object file, it is linked in the usual fashion.  The only
6430 difference between using an \fB\-l\fR option and specifying a file name
6431 is that \fB\-l\fR surrounds \fIlibrary\fR with \fBlib\fR and \fB.a\fR
6432 and searches several directories.
6433 .IP "\fB\-nostartfiles\fR" 4
6434 .IX Item "-nostartfiles"
6435 Do not use the standard system startup files when linking.
6436 The standard system libraries are used normally, unless \fB\-nostdlib\fR
6437 or \fB\-nodefaultlibs\fR is used.
6438 .IP "\fB\-nodefaultlibs\fR" 4
6439 .IX Item "-nodefaultlibs"
6440 Do not use the standard system libraries when linking.
6441 Only the libraries you specify will be passed to the linker.
6442 The standard startup files are used normally, unless \fB\-nostartfiles\fR
6443 is used.  The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR,
6444 \&\f(CW\*(C`memset\*(C'\fR, \f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
6445 These entries are usually resolved by entries in
6446 libc.  These entry points should be supplied through some other
6447 mechanism when this option is specified.
6448 .IP "\fB\-nostdlib\fR" 4
6449 .IX Item "-nostdlib"
6450 Do not use the standard system startup files or libraries when linking.
6451 No startup files and only the libraries you specify will be passed to
6452 the linker.  The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR, \f(CW\*(C`memset\*(C'\fR,
6453 \&\f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
6454 These entries are usually resolved by entries in
6455 libc.  These entry points should be supplied through some other
6456 mechanism when this option is specified.
6457 .Sp
6458 One of the standard libraries bypassed by \fB\-nostdlib\fR and
6459 \&\fB\-nodefaultlibs\fR is \fIlibgcc.a\fR, a library of internal subroutines
6460 that \s-1GCC\s0 uses to overcome shortcomings of particular machines, or special
6461 needs for some languages.
6462 .Sp
6463 In most cases, you need \fIlibgcc.a\fR even when you want to avoid
6464 other standard libraries.  In other words, when you specify \fB\-nostdlib\fR
6465 or \fB\-nodefaultlibs\fR you should usually specify \fB\-lgcc\fR as well.
6466 This ensures that you have no unresolved references to internal \s-1GCC\s0
6467 library subroutines.  (For example, \fB_\|_main\fR, used to ensure \*(C+
6468 constructors will be called.)
6469 .IP "\fB\-pie\fR" 4
6470 .IX Item "-pie"
6471 Produce a position independent executable on targets which support it.
6472 For predictable results, you must also specify the same set of options
6473 that were used to generate code (\fB\-fpie\fR, \fB\-fPIE\fR,
6474 or model suboptions) when you specify this option.
6475 .IP "\fB\-rdynamic\fR" 4
6476 .IX Item "-rdynamic"
6477 Pass the flag \fB\-export\-dynamic\fR to the \s-1ELF\s0 linker, on targets
6478 that support it. This instructs the linker to add all symbols, not
6479 only used ones, to the dynamic symbol table. This option is needed
6480 for some uses of \f(CW\*(C`dlopen\*(C'\fR or to allow obtaining backtraces
6481 from within a program.
6482 .IP "\fB\-s\fR" 4
6483 .IX Item "-s"
6484 Remove all symbol table and relocation information from the executable.
6485 .IP "\fB\-static\fR" 4
6486 .IX Item "-static"
6487 On systems that support dynamic linking, this prevents linking with the shared
6488 libraries.  On other systems, this option has no effect.
6489 .IP "\fB\-shared\fR" 4
6490 .IX Item "-shared"
6491 Produce a shared object which can then be linked with other objects to
6492 form an executable.  Not all systems support this option.  For predictable
6493 results, you must also specify the same set of options that were used to
6494 generate code (\fB\-fpic\fR, \fB\-fPIC\fR, or model suboptions)
6495 when you specify this option.[1]
6496 .IP "\fB\-shared\-libgcc\fR" 4
6497 .IX Item "-shared-libgcc"
6498 .PD 0
6499 .IP "\fB\-static\-libgcc\fR" 4
6500 .IX Item "-static-libgcc"
6501 .PD
6502 On systems that provide \fIlibgcc\fR as a shared library, these options
6503 force the use of either the shared or static version respectively.
6504 If no shared version of \fIlibgcc\fR was built when the compiler was
6505 configured, these options have no effect.
6506 .Sp
6507 There are several situations in which an application should use the
6508 shared \fIlibgcc\fR instead of the static version.  The most common
6509 of these is when the application wishes to throw and catch exceptions
6510 across different shared libraries.  In that case, each of the libraries
6511 as well as the application itself should use the shared \fIlibgcc\fR.
6512 .Sp
6513 Therefore, the G++ and \s-1GCJ\s0 drivers automatically add
6514 \&\fB\-shared\-libgcc\fR whenever you build a shared library or a main
6515 executable, because \*(C+ and Java programs typically use exceptions, so
6516 this is the right thing to do.
6517 .Sp
6518 If, instead, you use the \s-1GCC\s0 driver to create shared libraries, you may
6519 find that they will not always be linked with the shared \fIlibgcc\fR.
6520 If \s-1GCC\s0 finds, at its configuration time, that you have a non-GNU linker
6521 or a \s-1GNU\s0 linker that does not support option \fB\-\-eh\-frame\-hdr\fR,
6522 it will link the shared version of \fIlibgcc\fR into shared libraries
6523 by default.  Otherwise, it will take advantage of the linker and optimize
6524 away the linking with the shared version of \fIlibgcc\fR, linking with
6525 the static version of libgcc by default.  This allows exceptions to
6526 propagate through such shared libraries, without incurring relocation
6527 costs at library load time.
6528 .Sp
6529 However, if a library or main executable is supposed to throw or catch
6530 exceptions, you must link it using the G++ or \s-1GCJ\s0 driver, as appropriate
6531 for the languages used in the program, or using the option
6532 \&\fB\-shared\-libgcc\fR, such that it is linked with the shared
6533 \&\fIlibgcc\fR.
6534 .IP "\fB\-symbolic\fR" 4
6535 .IX Item "-symbolic"
6536 Bind references to global symbols when building a shared object.  Warn
6537 about any unresolved references (unless overridden by the link editor
6538 option \fB\-Xlinker \-z \-Xlinker defs\fR).  Only a few systems support
6539 this option.
6540 .IP "\fB\-Xlinker\fR \fIoption\fR" 4
6541 .IX Item "-Xlinker option"
6542 Pass \fIoption\fR as an option to the linker.  You can use this to
6543 supply system-specific linker options which \s-1GCC\s0 does not know how to
6544 recognize.
6545 .Sp
6546 If you want to pass an option that takes an argument, you must use
6547 \&\fB\-Xlinker\fR twice, once for the option and once for the argument.
6548 For example, to pass \fB\-assert definitions\fR, you must write
6549 \&\fB\-Xlinker \-assert \-Xlinker definitions\fR.  It does not work to write
6550 \&\fB\-Xlinker \*(L"\-assert definitions\*(R"\fR, because this passes the entire
6551 string as a single argument, which is not what the linker expects.
6552 .IP "\fB\-Wl,\fR\fIoption\fR" 4
6553 .IX Item "-Wl,option"
6554 Pass \fIoption\fR as an option to the linker.  If \fIoption\fR contains
6555 commas, it is split into multiple options at the commas.
6556 .IP "\fB\-u\fR \fIsymbol\fR" 4
6557 .IX Item "-u symbol"
6558 Pretend the symbol \fIsymbol\fR is undefined, to force linking of
6559 library modules to define it.  You can use \fB\-u\fR multiple times with
6560 different symbols to force loading of additional library modules.
6561 .Sh "Options for Directory Search"
6562 .IX Subsection "Options for Directory Search"
6563 These options specify directories to search for header files, for
6564 libraries and for parts of the compiler:
6565 .IP "\fB\-I\fR\fIdir\fR" 4
6566 .IX Item "-Idir"
6567 Add the directory \fIdir\fR to the head of the list of directories to be
6568 searched for header files.  This can be used to override a system header
6569 file, substituting your own version, since these directories are
6570 searched before the system header file directories.  However, you should
6571 not use this option to add directories that contain vendor-supplied
6572 system header files (use \fB\-isystem\fR for that).  If you use more than
6573 one \fB\-I\fR option, the directories are scanned in left-to-right
6574 order; the standard system directories come after.
6575 .Sp
6576 If a standard system include directory, or a directory specified with
6577 \&\fB\-isystem\fR, is also specified with \fB\-I\fR, the \fB\-I\fR
6578 option will be ignored.  The directory will still be searched but as a
6579 system directory at its normal position in the system include chain.
6580 This is to ensure that \s-1GCC\s0's procedure to fix buggy system headers and
6581 the ordering for the include_next directive are not inadvertently changed.
6582 If you really need to change the search order for system directories,
6583 use the \fB\-nostdinc\fR and/or \fB\-isystem\fR options.
6584 .IP "\fB\-iquote\fR\fIdir\fR" 4
6585 .IX Item "-iquotedir"
6586 Add the directory \fIdir\fR to the head of the list of directories to
6587 be searched for header files only for the case of \fB#include
6588 "\fR\fIfile\fR\fB"\fR; they are not searched for \fB#include <\fR\fIfile\fR\fB>\fR,
6589 otherwise just like \fB\-I\fR.
6590 .IP "\fB\-L\fR\fIdir\fR" 4
6591 .IX Item "-Ldir"
6592 Add directory \fIdir\fR to the list of directories to be searched
6593 for \fB\-l\fR.
6594 .IP "\fB\-B\fR\fIprefix\fR" 4
6595 .IX Item "-Bprefix"
6596 This option specifies where to find the executables, libraries,
6597 include files, and data files of the compiler itself.
6598 .Sp
6599 The compiler driver program runs one or more of the subprograms
6600 \&\fIcpp\fR, \fIcc1\fR, \fIas\fR and \fIld\fR.  It tries
6601 \&\fIprefix\fR as a prefix for each program it tries to run, both with and
6602 without \fImachine\fR\fB/\fR\fIversion\fR\fB/\fR.
6603 .Sp
6604 For each subprogram to be run, the compiler driver first tries the
6605 \&\fB\-B\fR prefix, if any.  If that name is not found, or if \fB\-B\fR
6606 was not specified, the driver tries two standard prefixes, which are
6607 \&\fI/usr/lib/gcc/\fR and \fI/usr/local/lib/gcc/\fR.  If neither of
6608 those results in a file name that is found, the unmodified program
6609 name is searched for using the directories specified in your
6610 \&\fB\s-1PATH\s0\fR environment variable.
6611 .Sp
6612 The compiler will check to see if the path provided by the \fB\-B\fR
6613 refers to a directory, and if necessary it will add a directory
6614 separator character at the end of the path.
6615 .Sp
6616 \&\fB\-B\fR prefixes that effectively specify directory names also apply
6617 to libraries in the linker, because the compiler translates these
6618 options into \fB\-L\fR options for the linker.  They also apply to
6619 includes files in the preprocessor, because the compiler translates these
6620 options into \fB\-isystem\fR options for the preprocessor.  In this case,
6621 the compiler appends \fBinclude\fR to the prefix.
6622 .Sp
6623 The run-time support file \fIlibgcc.a\fR can also be searched for using
6624 the \fB\-B\fR prefix, if needed.  If it is not found there, the two
6625 standard prefixes above are tried, and that is all.  The file is left
6626 out of the link if it is not found by those means.
6627 .Sp
6628 Another way to specify a prefix much like the \fB\-B\fR prefix is to use
6629 the environment variable \fB\s-1GCC_EXEC_PREFIX\s0\fR.  
6630 .Sp
6631 As a special kludge, if the path provided by \fB\-B\fR is
6632 \&\fI[dir/]stage\fIN\fI/\fR, where \fIN\fR is a number in the range 0 to
6633 9, then it will be replaced by \fI[dir/]include\fR.  This is to help
6634 with boot-strapping the compiler.
6635 .IP "\fB\-specs=\fR\fIfile\fR" 4
6636 .IX Item "-specs=file"
6637 Process \fIfile\fR after the compiler reads in the standard \fIspecs\fR
6638 file, in order to override the defaults that the \fIgcc\fR driver
6639 program uses when determining what switches to pass to \fIcc1\fR,
6640 \&\fIcc1plus\fR, \fIas\fR, \fIld\fR, etc.  More than one
6641 \&\fB\-specs=\fR\fIfile\fR can be specified on the command line, and they
6642 are processed in order, from left to right.
6643 .IP "\fB\-\-sysroot=\fR\fIdir\fR" 4
6644 .IX Item "--sysroot=dir"
6645 Use \fIdir\fR as the logical root directory for headers and libraries.
6646 For example, if the compiler would normally search for headers in
6647 \&\fI/usr/include\fR and libraries in \fI/usr/lib\fR, it will instead
6648 search \fI\fIdir\fI/usr/include\fR and \fI\fIdir\fI/usr/lib\fR.  
6649 .Sp
6650 If you use both this option and the \fB\-isysroot\fR option, then
6651 the \fB\-\-sysroot\fR option will apply to libraries, but the
6652 \&\fB\-isysroot\fR option will apply to header files.
6653 .Sp
6654 The \s-1GNU\s0 linker (beginning with version 2.16) has the necessary support
6655 for this option.  If your linker does not support this option, the
6656 header file aspect of \fB\-\-sysroot\fR will still work, but the
6657 library aspect will not.
6658 .IP "\fB\-I\-\fR" 4
6659 .IX Item "-I-"
6660 This option has been deprecated.  Please use \fB\-iquote\fR instead for
6661 \&\fB\-I\fR directories before the \fB\-I\-\fR and remove the \fB\-I\-\fR.
6662 Any directories you specify with \fB\-I\fR options before the \fB\-I\-\fR
6663 option are searched only for the case of \fB#include "\fR\fIfile\fR\fB"\fR;
6664 they are not searched for \fB#include <\fR\fIfile\fR\fB>\fR.
6665 .Sp
6666 If additional directories are specified with \fB\-I\fR options after
6667 the \fB\-I\-\fR, these directories are searched for all \fB#include\fR
6668 directives.  (Ordinarily \fIall\fR \fB\-I\fR directories are used
6669 this way.)
6670 .Sp
6671 In addition, the \fB\-I\-\fR option inhibits the use of the current
6672 directory (where the current input file came from) as the first search
6673 directory for \fB#include "\fR\fIfile\fR\fB"\fR.  There is no way to
6674 override this effect of \fB\-I\-\fR.  With \fB\-I.\fR you can specify
6675 searching the directory which was current when the compiler was
6676 invoked.  That is not exactly the same as what the preprocessor does
6677 by default, but it is often satisfactory.
6678 .Sp
6679 \&\fB\-I\-\fR does not inhibit the use of the standard system directories
6680 for header files.  Thus, \fB\-I\-\fR and \fB\-nostdinc\fR are
6681 independent.
6682 .Sh "Specifying Target Machine and Compiler Version"
6683 .IX Subsection "Specifying Target Machine and Compiler Version"
6684 The usual way to run \s-1GCC\s0 is to run the executable called \fIgcc\fR, or
6685 \&\fI<machine>\-gcc\fR when cross\-compiling, or
6686 \&\fI<machine>\-gcc\-<version>\fR to run a version other than the one that
6687 was installed last.  Sometimes this is inconvenient, so \s-1GCC\s0 provides
6688 options that will switch to another cross-compiler or version.
6689 .IP "\fB\-b\fR \fImachine\fR" 4
6690 .IX Item "-b machine"
6691 The argument \fImachine\fR specifies the target machine for compilation.
6692 .Sp
6693 The value to use for \fImachine\fR is the same as was specified as the
6694 machine type when configuring \s-1GCC\s0 as a cross\-compiler.  For
6695 example, if a cross-compiler was configured with \fBconfigure
6696 arm-elf\fR, meaning to compile for an arm processor with elf binaries,
6697 then you would specify \fB\-b arm-elf\fR to run that cross compiler.
6698 Because there are other options beginning with \fB\-b\fR, the
6699 configuration must contain a hyphen. 
6700 .IP "\fB\-V\fR \fIversion\fR" 4
6701 .IX Item "-V version"
6702 The argument \fIversion\fR specifies which version of \s-1GCC\s0 to run.
6703 This is useful when multiple versions are installed.  For example,
6704 \&\fIversion\fR might be \fB4.0\fR, meaning to run \s-1GCC\s0 version 4.0.
6705 .PP
6706 The \fB\-V\fR and \fB\-b\fR options work by running the
6707 \&\fI<machine>\-gcc\-<version>\fR executable, so there's no real reason to
6708 use them if you can just run that directly.
6709 .Sh "Hardware Models and Configurations"
6710 .IX Subsection "Hardware Models and Configurations"
6711 Earlier we discussed the standard option \fB\-b\fR which chooses among
6712 different installed compilers for completely different target
6713 machines, such as \s-1VAX\s0 vs. 68000 vs. 80386.
6714 .PP
6715 In addition, each of these target machine types can have its own
6716 special options, starting with \fB\-m\fR, to choose among various
6717 hardware models or configurations\-\-\-for example, 68010 vs 68020,
6718 floating coprocessor or none.  A single installed version of the
6719 compiler can compile for any model or configuration, according to the
6720 options specified.
6721 .PP
6722 Some configurations of the compiler also support additional special
6723 options, usually for compatibility with other compilers on the same
6724 platform.
6725 .PP
6726 \fI\s-1ARC\s0 Options\fR
6727 .IX Subsection "ARC Options"
6728 .PP
6729 These options are defined for \s-1ARC\s0 implementations:
6730 .IP "\fB\-EL\fR" 4
6731 .IX Item "-EL"
6732 Compile code for little endian mode.  This is the default.
6733 .IP "\fB\-EB\fR" 4
6734 .IX Item "-EB"
6735 Compile code for big endian mode.
6736 .IP "\fB\-mmangle\-cpu\fR" 4
6737 .IX Item "-mmangle-cpu"
6738 Prepend the name of the cpu to all public symbol names.
6739 In multiple-processor systems, there are many \s-1ARC\s0 variants with different
6740 instruction and register set characteristics.  This flag prevents code
6741 compiled for one cpu to be linked with code compiled for another.
6742 No facility exists for handling variants that are \*(L"almost identical\*(R".
6743 This is an all or nothing option.
6744 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
6745 .IX Item "-mcpu=cpu"
6746 Compile code for \s-1ARC\s0 variant \fIcpu\fR.
6747 Which variants are supported depend on the configuration.
6748 All variants support \fB\-mcpu=base\fR, this is the default.
6749 .IP "\fB\-mtext=\fR\fItext-section\fR" 4
6750 .IX Item "-mtext=text-section"
6751 .PD 0
6752 .IP "\fB\-mdata=\fR\fIdata-section\fR" 4
6753 .IX Item "-mdata=data-section"
6754 .IP "\fB\-mrodata=\fR\fIreadonly-data-section\fR" 4
6755 .IX Item "-mrodata=readonly-data-section"
6756 .PD
6757 Put functions, data, and readonly data in \fItext-section\fR,
6758 \&\fIdata-section\fR, and \fIreadonly-data-section\fR respectively
6759 by default.  This can be overridden with the \f(CW\*(C`section\*(C'\fR attribute.
6760 .PP
6761 \fI\s-1ARM\s0 Options\fR
6762 .IX Subsection "ARM Options"
6763 .PP
6764 These \fB\-m\fR options are defined for Advanced \s-1RISC\s0 Machines (\s-1ARM\s0)
6765 architectures:
6766 .IP "\fB\-mabi=\fR\fIname\fR" 4
6767 .IX Item "-mabi=name"
6768 Generate code for the specified \s-1ABI\s0.  Permissible values are: \fBapcs-gnu\fR,
6769 \&\fBatpcs\fR, \fBaapcs\fR, \fBaapcs-linux\fR and \fBiwmmxt\fR.
6770 .IP "\fB\-mapcs\-frame\fR" 4
6771 .IX Item "-mapcs-frame"
6772 Generate a stack frame that is compliant with the \s-1ARM\s0 Procedure Call
6773 Standard for all functions, even if this is not strictly necessary for
6774 correct execution of the code.  Specifying \fB\-fomit\-frame\-pointer\fR
6775 with this option will cause the stack frames not to be generated for
6776 leaf functions.  The default is \fB\-mno\-apcs\-frame\fR.
6777 .IP "\fB\-mapcs\fR" 4
6778 .IX Item "-mapcs"
6779 This is a synonym for \fB\-mapcs\-frame\fR.
6780 .IP "\fB\-mthumb\-interwork\fR" 4
6781 .IX Item "-mthumb-interwork"
6782 Generate code which supports calling between the \s-1ARM\s0 and Thumb
6783 instruction sets.  Without this option the two instruction sets cannot
6784 be reliably used inside one program.  The default is
6785 \&\fB\-mno\-thumb\-interwork\fR, since slightly larger code is generated
6786 when \fB\-mthumb\-interwork\fR is specified.
6787 .IP "\fB\-mno\-sched\-prolog\fR" 4
6788 .IX Item "-mno-sched-prolog"
6789 Prevent the reordering of instructions in the function prolog, or the
6790 merging of those instruction with the instructions in the function's
6791 body.  This means that all functions will start with a recognizable set
6792 of instructions (or in fact one of a choice from a small set of
6793 different function prologues), and this information can be used to
6794 locate the start if functions inside an executable piece of code.  The
6795 default is \fB\-msched\-prolog\fR.
6796 .IP "\fB\-mhard\-float\fR" 4
6797 .IX Item "-mhard-float"
6798 Generate output containing floating point instructions.  This is the
6799 default.
6800 .IP "\fB\-msoft\-float\fR" 4
6801 .IX Item "-msoft-float"
6802 Generate output containing library calls for floating point.
6803 \&\fBWarning:\fR the requisite libraries are not available for all \s-1ARM\s0
6804 targets.  Normally the facilities of the machine's usual C compiler are
6805 used, but this cannot be done directly in cross\-compilation.  You must make
6806 your own arrangements to provide suitable library functions for
6807 cross\-compilation.
6808 .Sp
6809 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
6810 therefore, it is only useful if you compile \fIall\fR of a program with
6811 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
6812 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
6813 this to work.
6814 .IP "\fB\-mfloat\-abi=\fR\fIname\fR" 4
6815 .IX Item "-mfloat-abi=name"
6816 Specifies which \s-1ABI\s0 to use for floating point values.  Permissible values
6817 are: \fBsoft\fR, \fBsoftfp\fR and \fBhard\fR.
6818 .Sp
6819 \&\fBsoft\fR and \fBhard\fR are equivalent to \fB\-msoft\-float\fR
6820 and \fB\-mhard\-float\fR respectively.  \fBsoftfp\fR allows the generation
6821 of floating point instructions, but still uses the soft-float calling
6822 conventions.
6823 .IP "\fB\-mlittle\-endian\fR" 4
6824 .IX Item "-mlittle-endian"
6825 Generate code for a processor running in little-endian mode.  This is
6826 the default for all standard configurations.
6827 .IP "\fB\-mbig\-endian\fR" 4
6828 .IX Item "-mbig-endian"
6829 Generate code for a processor running in big-endian mode; the default is
6830 to compile code for a little-endian processor.
6831 .IP "\fB\-mwords\-little\-endian\fR" 4
6832 .IX Item "-mwords-little-endian"
6833 This option only applies when generating code for big-endian processors.
6834 Generate code for a little-endian word order but a big-endian byte
6835 order.  That is, a byte order of the form \fB32107654\fR.  Note: this
6836 option should only be used if you require compatibility with code for
6837 big-endian \s-1ARM\s0 processors generated by versions of the compiler prior to
6838 2.8.
6839 .IP "\fB\-mcpu=\fR\fIname\fR" 4
6840 .IX Item "-mcpu=name"
6841 This specifies the name of the target \s-1ARM\s0 processor.  \s-1GCC\s0 uses this name
6842 to determine what kind of instructions it can emit when generating
6843 assembly code.  Permissible names are: \fBarm2\fR, \fBarm250\fR,
6844 \&\fBarm3\fR, \fBarm6\fR, \fBarm60\fR, \fBarm600\fR, \fBarm610\fR,
6845 \&\fBarm620\fR, \fBarm7\fR, \fBarm7m\fR, \fBarm7d\fR, \fBarm7dm\fR,
6846 \&\fBarm7di\fR, \fBarm7dmi\fR, \fBarm70\fR, \fBarm700\fR,
6847 \&\fBarm700i\fR, \fBarm710\fR, \fBarm710c\fR, \fBarm7100\fR,
6848 \&\fBarm7500\fR, \fBarm7500fe\fR, \fBarm7tdmi\fR, \fBarm7tdmi\-s\fR,
6849 \&\fBarm8\fR, \fBstrongarm\fR, \fBstrongarm110\fR, \fBstrongarm1100\fR,
6850 \&\fBarm8\fR, \fBarm810\fR, \fBarm9\fR, \fBarm9e\fR, \fBarm920\fR,
6851 \&\fBarm920t\fR, \fBarm922t\fR, \fBarm946e\-s\fR, \fBarm966e\-s\fR,
6852 \&\fBarm968e\-s\fR, \fBarm926ej\-s\fR, \fBarm940t\fR, \fBarm9tdmi\fR,
6853 \&\fBarm10tdmi\fR, \fBarm1020t\fR, \fBarm1026ej\-s\fR,
6854 \&\fBarm10e\fR, \fBarm1020e\fR, \fBarm1022e\fR,
6855 \&\fBarm1136j\-s\fR, \fBarm1136jf\-s\fR, \fBmpcore\fR, \fBmpcorenovfp\fR,
6856 \&\fBarm1176jz\-s\fR, \fBarm1176jzf\-s\fR, \fBxscale\fR, \fBiwmmxt\fR,
6857 \&\fBep9312\fR.
6858 .IP "\fB\-mtune=\fR\fIname\fR" 4
6859 .IX Item "-mtune=name"
6860 This option is very similar to the \fB\-mcpu=\fR option, except that
6861 instead of specifying the actual target processor type, and hence
6862 restricting which instructions can be used, it specifies that \s-1GCC\s0 should
6863 tune the performance of the code as if the target were of the type
6864 specified in this option, but still choosing the instructions that it
6865 will generate based on the cpu specified by a \fB\-mcpu=\fR option.
6866 For some \s-1ARM\s0 implementations better performance can be obtained by using
6867 this option.
6868 .IP "\fB\-march=\fR\fIname\fR" 4
6869 .IX Item "-march=name"
6870 This specifies the name of the target \s-1ARM\s0 architecture.  \s-1GCC\s0 uses this
6871 name to determine what kind of instructions it can emit when generating
6872 assembly code.  This option can be used in conjunction with or instead
6873 of the \fB\-mcpu=\fR option.  Permissible names are: \fBarmv2\fR,
6874 \&\fBarmv2a\fR, \fBarmv3\fR, \fBarmv3m\fR, \fBarmv4\fR, \fBarmv4t\fR,
6875 \&\fBarmv5\fR, \fBarmv5t\fR, \fBarmv5te\fR, \fBarmv6\fR, \fBarmv6j\fR,
6876 \&\fBiwmmxt\fR, \fBep9312\fR.
6877 .IP "\fB\-mfpu=\fR\fIname\fR" 4
6878 .IX Item "-mfpu=name"
6879 .PD 0
6880 .IP "\fB\-mfpe=\fR\fInumber\fR" 4
6881 .IX Item "-mfpe=number"
6882 .IP "\fB\-mfp=\fR\fInumber\fR" 4
6883 .IX Item "-mfp=number"
6884 .PD
6885 This specifies what floating point hardware (or hardware emulation) is
6886 available on the target.  Permissible names are: \fBfpa\fR, \fBfpe2\fR,
6887 \&\fBfpe3\fR, \fBmaverick\fR, \fBvfp\fR.  \fB\-mfp\fR and \fB\-mfpe\fR
6888 are synonyms for \fB\-mfpu\fR=\fBfpe\fR\fInumber\fR, for compatibility
6889 with older versions of \s-1GCC\s0.
6890 .Sp
6891 If \fB\-msoft\-float\fR is specified this specifies the format of
6892 floating point values.
6893 .IP "\fB\-mstructure\-size\-boundary=\fR\fIn\fR" 4
6894 .IX Item "-mstructure-size-boundary=n"
6895 The size of all structures and unions will be rounded up to a multiple
6896 of the number of bits set by this option.  Permissible values are 8, 32
6897 and 64.  The default value varies for different toolchains.  For the \s-1COFF\s0
6898 targeted toolchain the default value is 8.  A value of 64 is only allowed
6899 if the underlying \s-1ABI\s0 supports it.
6900 .Sp
6901 Specifying the larger number can produce faster, more efficient code, but
6902 can also increase the size of the program.  Different values are potentially
6903 incompatible.  Code compiled with one value cannot necessarily expect to
6904 work with code or libraries compiled with another value, if they exchange
6905 information using structures or unions.
6906 .IP "\fB\-mabort\-on\-noreturn\fR" 4
6907 .IX Item "-mabort-on-noreturn"
6908 Generate a call to the function \f(CW\*(C`abort\*(C'\fR at the end of a
6909 \&\f(CW\*(C`noreturn\*(C'\fR function.  It will be executed if the function tries to
6910 return.
6911 .IP "\fB\-mlong\-calls\fR" 4
6912 .IX Item "-mlong-calls"
6913 .PD 0
6914 .IP "\fB\-mno\-long\-calls\fR" 4
6915 .IX Item "-mno-long-calls"
6916 .PD
6917 Tells the compiler to perform function calls by first loading the
6918 address of the function into a register and then performing a subroutine
6919 call on this register.  This switch is needed if the target function
6920 will lie outside of the 64 megabyte addressing range of the offset based
6921 version of subroutine call instruction.
6922 .Sp
6923 Even if this switch is enabled, not all function calls will be turned
6924 into long calls.  The heuristic is that static functions, functions
6925 which have the \fBshort-call\fR attribute, functions that are inside
6926 the scope of a \fB#pragma no_long_calls\fR directive and functions whose
6927 definitions have already been compiled within the current compilation
6928 unit, will not be turned into long calls.  The exception to this rule is
6929 that weak function definitions, functions with the \fBlong-call\fR
6930 attribute or the \fBsection\fR attribute, and functions that are within
6931 the scope of a \fB#pragma long_calls\fR directive, will always be
6932 turned into long calls.
6933 .Sp
6934 This feature is not enabled by default.  Specifying
6935 \&\fB\-mno\-long\-calls\fR will restore the default behavior, as will
6936 placing the function calls within the scope of a \fB#pragma
6937 long_calls_off\fR directive.  Note these switches have no effect on how
6938 the compiler generates code to handle function calls via function
6939 pointers.
6940 .IP "\fB\-mnop\-fun\-dllimport\fR" 4
6941 .IX Item "-mnop-fun-dllimport"
6942 Disable support for the \f(CW\*(C`dllimport\*(C'\fR attribute.
6943 .IP "\fB\-msingle\-pic\-base\fR" 4
6944 .IX Item "-msingle-pic-base"
6945 Treat the register used for \s-1PIC\s0 addressing as read\-only, rather than
6946 loading it in the prologue for each function.  The run-time system is
6947 responsible for initializing this register with an appropriate value
6948 before execution begins.
6949 .IP "\fB\-mpic\-register=\fR\fIreg\fR" 4
6950 .IX Item "-mpic-register=reg"
6951 Specify the register to be used for \s-1PIC\s0 addressing.  The default is R10
6952 unless stack-checking is enabled, when R9 is used.
6953 .IP "\fB\-mcirrus\-fix\-invalid\-insns\fR" 4
6954 .IX Item "-mcirrus-fix-invalid-insns"
6955 Insert NOPs into the instruction stream to in order to work around
6956 problems with invalid Maverick instruction combinations.  This option
6957 is only valid if the \fB\-mcpu=ep9312\fR option has been used to
6958 enable generation of instructions for the Cirrus Maverick floating
6959 point co\-processor.  This option is not enabled by default, since the
6960 problem is only present in older Maverick implementations.  The default
6961 can be re-enabled by use of the \fB\-mno\-cirrus\-fix\-invalid\-insns\fR
6962 switch.
6963 .IP "\fB\-mpoke\-function\-name\fR" 4
6964 .IX Item "-mpoke-function-name"
6965 Write the name of each function into the text section, directly
6966 preceding the function prologue.  The generated code is similar to this:
6967 .Sp
6968 .Vb 9
6969 \&             t0
6970 \&                 .ascii "arm_poke_function_name", 0
6971 \&                 .align
6972 \&             t1
6973 \&                 .word 0xff000000 + (t1 - t0)
6974 \&             arm_poke_function_name
6975 \&                 mov     ip, sp
6976 \&                 stmfd   sp!, {fp, ip, lr, pc}
6977 \&                 sub     fp, ip, #4
6978 .Ve
6979 .Sp
6980 When performing a stack backtrace, code can inspect the value of
6981 \&\f(CW\*(C`pc\*(C'\fR stored at \f(CW\*(C`fp + 0\*(C'\fR.  If the trace function then looks at
6982 location \f(CW\*(C`pc \- 12\*(C'\fR and the top 8 bits are set, then we know that
6983 there is a function name embedded immediately preceding this location
6984 and has length \f(CW\*(C`((pc[\-3]) & 0xff000000)\*(C'\fR.
6985 .IP "\fB\-mthumb\fR" 4
6986 .IX Item "-mthumb"
6987 Generate code for the 16\-bit Thumb instruction set.  The default is to
6988 use the 32\-bit \s-1ARM\s0 instruction set.
6989 .IP "\fB\-mtpcs\-frame\fR" 4
6990 .IX Item "-mtpcs-frame"
6991 Generate a stack frame that is compliant with the Thumb Procedure Call
6992 Standard for all non-leaf functions.  (A leaf function is one that does
6993 not call any other functions.)  The default is \fB\-mno\-tpcs\-frame\fR.
6994 .IP "\fB\-mtpcs\-leaf\-frame\fR" 4
6995 .IX Item "-mtpcs-leaf-frame"
6996 Generate a stack frame that is compliant with the Thumb Procedure Call
6997 Standard for all leaf functions.  (A leaf function is one that does
6998 not call any other functions.)  The default is \fB\-mno\-apcs\-leaf\-frame\fR.
6999 .IP "\fB\-mcallee\-super\-interworking\fR" 4
7000 .IX Item "-mcallee-super-interworking"
7001 Gives all externally visible functions in the file being compiled an \s-1ARM\s0
7002 instruction set header which switches to Thumb mode before executing the
7003 rest of the function.  This allows these functions to be called from
7004 non-interworking code.
7005 .IP "\fB\-mcaller\-super\-interworking\fR" 4
7006 .IX Item "-mcaller-super-interworking"
7007 Allows calls via function pointers (including virtual functions) to
7008 execute correctly regardless of whether the target code has been
7009 compiled for interworking or not.  There is a small overhead in the cost
7010 of executing a function pointer if this option is enabled.
7011 .IP "\fB\-mtp=\fR\fIname\fR" 4
7012 .IX Item "-mtp=name"
7013 Specify the access model for the thread local storage pointer.  The valid
7014 models are \fBsoft\fR, which generates calls to \f(CW\*(C`_\|_aeabi_read_tp\*(C'\fR,
7015 \&\fBcp15\fR, which fetches the thread pointer from \f(CW\*(C`cp15\*(C'\fR directly
7016 (supported in the arm6k architecture), and \fBauto\fR, which uses the
7017 best available method for the selected processor.  The default setting is
7018 \&\fBauto\fR.
7019 .PP
7020 \fI\s-1AVR\s0 Options\fR
7021 .IX Subsection "AVR Options"
7022 .PP
7023 These options are defined for \s-1AVR\s0 implementations:
7024 .IP "\fB\-mmcu=\fR\fImcu\fR" 4
7025 .IX Item "-mmcu=mcu"
7026 Specify \s-1ATMEL\s0 \s-1AVR\s0 instruction set or \s-1MCU\s0 type.
7027 .Sp
7028 Instruction set avr1 is for the minimal \s-1AVR\s0 core, not supported by the C
7029 compiler, only for assembler programs (\s-1MCU\s0 types: at90s1200, attiny10,
7030 attiny11, attiny12, attiny15, attiny28).
7031 .Sp
7032 Instruction set avr2 (default) is for the classic \s-1AVR\s0 core with up to
7033 8K program memory space (\s-1MCU\s0 types: at90s2313, at90s2323, attiny22,
7034 at90s2333, at90s2343, at90s4414, at90s4433, at90s4434, at90s8515,
7035 at90c8534, at90s8535).
7036 .Sp
7037 Instruction set avr3 is for the classic \s-1AVR\s0 core with up to 128K program
7038 memory space (\s-1MCU\s0 types: atmega103, atmega603, at43usb320, at76c711).
7039 .Sp
7040 Instruction set avr4 is for the enhanced \s-1AVR\s0 core with up to 8K program
7041 memory space (\s-1MCU\s0 types: atmega8, atmega83, atmega85).
7042 .Sp
7043 Instruction set avr5 is for the enhanced \s-1AVR\s0 core with up to 128K program
7044 memory space (\s-1MCU\s0 types: atmega16, atmega161, atmega163, atmega32, atmega323,
7045 atmega64, atmega128, at43usb355, at94k).
7046 .IP "\fB\-msize\fR" 4
7047 .IX Item "-msize"
7048 Output instruction sizes to the asm file.
7049 .IP "\fB\-minit\-stack=\fR\fIN\fR" 4
7050 .IX Item "-minit-stack=N"
7051 Specify the initial stack address, which may be a symbol or numeric value,
7052 \&\fB_\|_stack\fR is the default.
7053 .IP "\fB\-mno\-interrupts\fR" 4
7054 .IX Item "-mno-interrupts"
7055 Generated code is not compatible with hardware interrupts.
7056 Code size will be smaller.
7057 .IP "\fB\-mcall\-prologues\fR" 4
7058 .IX Item "-mcall-prologues"
7059 Functions prologues/epilogues expanded as call to appropriate
7060 subroutines.  Code size will be smaller.
7061 .IP "\fB\-mno\-tablejump\fR" 4
7062 .IX Item "-mno-tablejump"
7063 Do not generate tablejump insns which sometimes increase code size.
7064 .IP "\fB\-mtiny\-stack\fR" 4
7065 .IX Item "-mtiny-stack"
7066 Change only the low 8 bits of the stack pointer.
7067 .IP "\fB\-mint8\fR" 4
7068 .IX Item "-mint8"
7069 Assume int to be 8 bit integer.  This affects the sizes of all types: A
7070 char will be 1 byte, an int will be 1 byte, an long will be 2 bytes
7071 and long long will be 4 bytes.  Please note that this option does not
7072 comply to the C standards, but it will provide you with smaller code
7073 size.
7074 .PP
7075 \fIBlackfin Options\fR
7076 .IX Subsection "Blackfin Options"
7077 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
7078 .IX Item "-momit-leaf-frame-pointer"
7079 Don't keep the frame pointer in a register for leaf functions.  This
7080 avoids the instructions to save, set up and restore frame pointers and
7081 makes an extra register available in leaf functions.  The option
7082 \&\fB\-fomit\-frame\-pointer\fR removes the frame pointer for all functions
7083 which might make debugging harder.
7084 .IP "\fB\-mspecld\-anomaly\fR" 4
7085 .IX Item "-mspecld-anomaly"
7086 When enabled, the compiler will ensure that the generated code does not
7087 contain speculative loads after jump instructions.  This option is enabled
7088 by default.
7089 .IP "\fB\-mno\-specld\-anomaly\fR" 4
7090 .IX Item "-mno-specld-anomaly"
7091 Don't generate extra code to prevent speculative loads from occurring.
7092 .IP "\fB\-mcsync\-anomaly\fR" 4
7093 .IX Item "-mcsync-anomaly"
7094 When enabled, the compiler will ensure that the generated code does not
7095 contain \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions too soon after conditional branches.
7096 This option is enabled by default.
7097 .IP "\fB\-mno\-csync\-anomaly\fR" 4
7098 .IX Item "-mno-csync-anomaly"
7099 Don't generate extra code to prevent \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions from
7100 occurring too soon after a conditional branch.
7101 .IP "\fB\-mlow\-64k\fR" 4
7102 .IX Item "-mlow-64k"
7103 When enabled, the compiler is free to take advantage of the knowledge that
7104 the entire program fits into the low 64k of memory.
7105 .IP "\fB\-mno\-low\-64k\fR" 4
7106 .IX Item "-mno-low-64k"
7107 Assume that the program is arbitrarily large.  This is the default.
7108 .IP "\fB\-mid\-shared\-library\fR" 4
7109 .IX Item "-mid-shared-library"
7110 Generate code that supports shared libraries via the library \s-1ID\s0 method.
7111 This allows for execute in place and shared libraries in an environment
7112 without virtual memory management.  This option implies \fB\-fPIC\fR.
7113 .IP "\fB\-mno\-id\-shared\-library\fR" 4
7114 .IX Item "-mno-id-shared-library"
7115 Generate code that doesn't assume \s-1ID\s0 based shared libraries are being used.
7116 This is the default.
7117 .IP "\fB\-mshared\-library\-id=n\fR" 4
7118 .IX Item "-mshared-library-id=n"
7119 Specified the identification number of the \s-1ID\s0 based shared library being
7120 compiled.  Specifying a value of 0 will generate more compact code, specifying
7121 other values will force the allocation of that number to the current
7122 library but is no more space or time efficient than omitting this option.
7123 .IP "\fB\-mlong\-calls\fR" 4
7124 .IX Item "-mlong-calls"
7125 .PD 0
7126 .IP "\fB\-mno\-long\-calls\fR" 4
7127 .IX Item "-mno-long-calls"
7128 .PD
7129 Tells the compiler to perform function calls by first loading the
7130 address of the function into a register and then performing a subroutine
7131 call on this register.  This switch is needed if the target function
7132 will lie outside of the 24 bit addressing range of the offset based
7133 version of subroutine call instruction.
7134 .Sp
7135 This feature is not enabled by default.  Specifying
7136 \&\fB\-mno\-long\-calls\fR will restore the default behavior.  Note these
7137 switches have no effect on how the compiler generates code to handle
7138 function calls via function pointers.
7139 .PP
7140 \fI\s-1CRIS\s0 Options\fR
7141 .IX Subsection "CRIS Options"
7142 .PP
7143 These options are defined specifically for the \s-1CRIS\s0 ports.
7144 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
7145 .IX Item "-march=architecture-type"
7146 .PD 0
7147 .IP "\fB\-mcpu=\fR\fIarchitecture-type\fR" 4
7148 .IX Item "-mcpu=architecture-type"
7149 .PD
7150 Generate code for the specified architecture.  The choices for
7151 \&\fIarchitecture-type\fR are \fBv3\fR, \fBv8\fR and \fBv10\fR for
7152 respectively \s-1ETRAX\s0\ 4, \s-1ETRAX\s0\ 100, and \s-1ETRAX\s0\ 100\ \s-1LX\s0.
7153 Default is \fBv0\fR except for cris\-axis\-linux\-gnu, where the default is
7154 \&\fBv10\fR.
7155 .IP "\fB\-mtune=\fR\fIarchitecture-type\fR" 4
7156 .IX Item "-mtune=architecture-type"
7157 Tune to \fIarchitecture-type\fR everything applicable about the generated
7158 code, except for the \s-1ABI\s0 and the set of available instructions.  The
7159 choices for \fIarchitecture-type\fR are the same as for
7160 \&\fB\-march=\fR\fIarchitecture-type\fR.
7161 .IP "\fB\-mmax\-stack\-frame=\fR\fIn\fR" 4
7162 .IX Item "-mmax-stack-frame=n"
7163 Warn when the stack frame of a function exceeds \fIn\fR bytes.
7164 .IP "\fB\-melinux\-stacksize=\fR\fIn\fR" 4
7165 .IX Item "-melinux-stacksize=n"
7166 Only available with the \fBcris-axis-aout\fR target.  Arranges for
7167 indications in the program to the kernel loader that the stack of the
7168 program should be set to \fIn\fR bytes.
7169 .IP "\fB\-metrax4\fR" 4
7170 .IX Item "-metrax4"
7171 .PD 0
7172 .IP "\fB\-metrax100\fR" 4
7173 .IX Item "-metrax100"
7174 .PD
7175 The options \fB\-metrax4\fR and \fB\-metrax100\fR are synonyms for
7176 \&\fB\-march=v3\fR and \fB\-march=v8\fR respectively.
7177 .IP "\fB\-mmul\-bug\-workaround\fR" 4
7178 .IX Item "-mmul-bug-workaround"
7179 .PD 0
7180 .IP "\fB\-mno\-mul\-bug\-workaround\fR" 4
7181 .IX Item "-mno-mul-bug-workaround"
7182 .PD
7183 Work around a bug in the \f(CW\*(C`muls\*(C'\fR and \f(CW\*(C`mulu\*(C'\fR instructions for \s-1CPU\s0
7184 models where it applies.  This option is active by default.
7185 .IP "\fB\-mpdebug\fR" 4
7186 .IX Item "-mpdebug"
7187 Enable CRIS-specific verbose debug-related information in the assembly
7188 code.  This option also has the effect to turn off the \fB#NO_APP\fR
7189 formatted-code indicator to the assembler at the beginning of the
7190 assembly file.
7191 .IP "\fB\-mcc\-init\fR" 4
7192 .IX Item "-mcc-init"
7193 Do not use condition-code results from previous instruction; always emit
7194 compare and test instructions before use of condition codes.
7195 .IP "\fB\-mno\-side\-effects\fR" 4
7196 .IX Item "-mno-side-effects"
7197 Do not emit instructions with side-effects in addressing modes other than
7198 post\-increment.
7199 .IP "\fB\-mstack\-align\fR" 4
7200 .IX Item "-mstack-align"
7201 .PD 0
7202 .IP "\fB\-mno\-stack\-align\fR" 4
7203 .IX Item "-mno-stack-align"
7204 .IP "\fB\-mdata\-align\fR" 4
7205 .IX Item "-mdata-align"
7206 .IP "\fB\-mno\-data\-align\fR" 4
7207 .IX Item "-mno-data-align"
7208 .IP "\fB\-mconst\-align\fR" 4
7209 .IX Item "-mconst-align"
7210 .IP "\fB\-mno\-const\-align\fR" 4
7211 .IX Item "-mno-const-align"
7212 .PD
7213 These options (no\-options) arranges (eliminate arrangements) for the
7214 stack\-frame, individual data and constants to be aligned for the maximum
7215 single data access size for the chosen \s-1CPU\s0 model.  The default is to
7216 arrange for 32\-bit alignment.  \s-1ABI\s0 details such as structure layout are
7217 not affected by these options.
7218 .IP "\fB\-m32\-bit\fR" 4
7219 .IX Item "-m32-bit"
7220 .PD 0
7221 .IP "\fB\-m16\-bit\fR" 4
7222 .IX Item "-m16-bit"
7223 .IP "\fB\-m8\-bit\fR" 4
7224 .IX Item "-m8-bit"
7225 .PD
7226 Similar to the stack\- data\- and const-align options above, these options
7227 arrange for stack\-frame, writable data and constants to all be 32\-bit,
7228 16\-bit or 8\-bit aligned.  The default is 32\-bit alignment.
7229 .IP "\fB\-mno\-prologue\-epilogue\fR" 4
7230 .IX Item "-mno-prologue-epilogue"
7231 .PD 0
7232 .IP "\fB\-mprologue\-epilogue\fR" 4
7233 .IX Item "-mprologue-epilogue"
7234 .PD
7235 With \fB\-mno\-prologue\-epilogue\fR, the normal function prologue and
7236 epilogue that sets up the stack-frame are omitted and no return
7237 instructions or return sequences are generated in the code.  Use this
7238 option only together with visual inspection of the compiled code: no
7239 warnings or errors are generated when call-saved registers must be saved,
7240 or storage for local variable needs to be allocated.
7241 .IP "\fB\-mno\-gotplt\fR" 4
7242 .IX Item "-mno-gotplt"
7243 .PD 0
7244 .IP "\fB\-mgotplt\fR" 4
7245 .IX Item "-mgotplt"
7246 .PD
7247 With \fB\-fpic\fR and \fB\-fPIC\fR, don't generate (do generate)
7248 instruction sequences that load addresses for functions from the \s-1PLT\s0 part
7249 of the \s-1GOT\s0 rather than (traditional on other architectures) calls to the
7250 \&\s-1PLT\s0.  The default is \fB\-mgotplt\fR.
7251 .IP "\fB\-maout\fR" 4
7252 .IX Item "-maout"
7253 Legacy no-op option only recognized with the cris-axis-aout target.
7254 .IP "\fB\-melf\fR" 4
7255 .IX Item "-melf"
7256 Legacy no-op option only recognized with the cris-axis-elf and
7257 cris-axis-linux-gnu targets.
7258 .IP "\fB\-melinux\fR" 4
7259 .IX Item "-melinux"
7260 Only recognized with the cris-axis-aout target, where it selects a
7261 GNU/linux\-like multilib, include files and instruction set for
7262 \&\fB\-march=v8\fR.
7263 .IP "\fB\-mlinux\fR" 4
7264 .IX Item "-mlinux"
7265 Legacy no-op option only recognized with the cris-axis-linux-gnu target.
7266 .IP "\fB\-sim\fR" 4
7267 .IX Item "-sim"
7268 This option, recognized for the cris-axis-aout and cris-axis-elf arranges
7269 to link with input-output functions from a simulator library.  Code,
7270 initialized data and zero-initialized data are allocated consecutively.
7271 .IP "\fB\-sim2\fR" 4
7272 .IX Item "-sim2"
7273 Like \fB\-sim\fR, but pass linker options to locate initialized data at
7274 0x40000000 and zero-initialized data at 0x80000000.
7275 .PP
7276 \fI\s-1CRX\s0 Options\fR
7277 .IX Subsection "CRX Options"
7278 .PP
7279 These options are defined specifically for the \s-1CRX\s0 ports.
7280 .IP "\fB\-mmac\fR" 4
7281 .IX Item "-mmac"
7282 Enable the use of multiply-accumulate instructions. Disabled by default.
7283 .IP "\fB\-mpush\-args\fR" 4
7284 .IX Item "-mpush-args"
7285 Push instructions will be used to pass outgoing arguments when functions
7286 are called. Enabled by default.
7287 .PP
7288 \fIDarwin Options\fR
7289 .IX Subsection "Darwin Options"
7290 .PP
7291 These options are defined for all architectures running the Darwin operating
7292 system.
7293 .PP
7294 \&\s-1FSF\s0 \s-1GCC\s0 on Darwin does not create \*(L"fat\*(R" object files; it will create
7295 an object file for the single architecture that it was built to
7296 target.  Apple's \s-1GCC\s0 on Darwin does create \*(L"fat\*(R" files if multiple
7297 \&\fB\-arch\fR options are used; it does so by running the compiler or
7298 linker multiple times and joining the results together with
7299 \&\fIlipo\fR.
7300 .PP
7301 The subtype of the file created (like \fBppc7400\fR or \fBppc970\fR or
7302 \&\fBi686\fR) is determined by the flags that specify the \s-1ISA\s0
7303 that \s-1GCC\s0 is targetting, like \fB\-mcpu\fR or \fB\-march\fR.  The
7304 \&\fB\-force_cpusubtype_ALL\fR option can be used to override this.
7305 .PP
7306 The Darwin tools vary in their behavior when presented with an \s-1ISA\s0
7307 mismatch.  The assembler, \fIas\fR, will only permit instructions to
7308 be used that are valid for the subtype of the file it is generating,
7309 so you cannot put 64\-bit instructions in an \fBppc750\fR object file.
7310 The linker for shared libraries, \fI/usr/bin/libtool\fR, will fail
7311 and print an error if asked to create a shared library with a less
7312 restrictive subtype than its input files (for instance, trying to put
7313 a \fBppc970\fR object file in a \fBppc7400\fR library).  The linker
7314 for executables, \fIld\fR, will quietly give the executable the most
7315 restrictive subtype of any of its input files.
7316 .IP "\fB\-F\fR\fIdir\fR" 4
7317 .IX Item "-Fdir"
7318 Add the framework directory \fIdir\fR to the head of the list of
7319 directories to be searched for header files.  These directories are
7320 interleaved with those specified by \fB\-I\fR options and are
7321 scanned in a left-to-right order.
7322 .Sp
7323 A framework directory is a directory with frameworks in it.  A
7324 framework is a directory with a \fB\*(L"Headers\*(R"\fR and/or
7325 \&\fB\*(L"PrivateHeaders\*(R"\fR directory contained directly in it that ends
7326 in \fB\*(L".framework\*(R"\fR.  The name of a framework is the name of this
7327 directory excluding the \fB\*(L".framework\*(R"\fR.  Headers associated with
7328 the framework are found in one of those two directories, with
7329 \&\fB\*(L"Headers\*(R"\fR being searched first.  A subframework is a framework
7330 directory that is in a framework's \fB\*(L"Frameworks\*(R"\fR directory.
7331 Includes of subframework headers can only appear in a header of a
7332 framework that contains the subframework, or in a sibling subframework
7333 header.  Two subframeworks are siblings if they occur in the same
7334 framework.  A subframework should not have the same name as a
7335 framework, a warning will be issued if this is violated.  Currently a
7336 subframework cannot have subframeworks, in the future, the mechanism
7337 may be extended to support this.  The standard frameworks can be found
7338 in \fB\*(L"/System/Library/Frameworks\*(R"\fR and
7339 \&\fB\*(L"/Library/Frameworks\*(R"\fR.  An example include looks like
7340 \&\f(CW\*(C`#include <Framework/header.h>\*(C'\fR, where \fBFramework\fR denotes
7341 the name of the framework and header.h is found in the
7342 \&\fB\*(L"PrivateHeaders\*(R"\fR or \fB\*(L"Headers\*(R"\fR directory.
7343 .IP "\fB\-gused\fR" 4
7344 .IX Item "-gused"
7345 Emit debugging information for symbols that are used.  For \s-1STABS\s0
7346 debugging format, this enables \fB\-feliminate\-unused\-debug\-symbols\fR.
7347 This is by default \s-1ON\s0.
7348 .IP "\fB\-gfull\fR" 4
7349 .IX Item "-gfull"
7350 Emit debugging information for all symbols and types.
7351 .IP "\fB\-mmacosx\-version\-min=\fR\fIversion\fR" 4
7352 .IX Item "-mmacosx-version-min=version"
7353 The earliest version of MacOS X that this executable will run on
7354 is \fIversion\fR.  Typical values of \fIversion\fR include \f(CW10.1\fR,
7355 \&\f(CW10.2\fR, and \f(CW10.3.9\fR.
7356 .Sp
7357 The default for this option is to make choices that seem to be most
7358 useful.  
7359 .IP "\fB\-mkernel\fR" 4
7360 .IX Item "-mkernel"
7361 Enable kernel development mode.  The \fB\-mkernel\fR option sets
7362 \&\fB\-static\fR, \fB\-fno\-common\fR, \fB\-fno\-cxa\-atexit\fR,
7363 \&\fB\-fno\-exceptions\fR, \fB\-fno\-non\-call\-exceptions\fR,
7364 \&\fB\-fapple\-kext\fR, \fB\-fno\-weak\fR and \fB\-fno\-rtti\fR where
7365 applicable.  This mode also sets \fB\-mno\-altivec\fR,
7366 \&\fB\-msoft\-float\fR, \fB\-fno\-builtin\fR and
7367 \&\fB\-mlong\-branch\fR for PowerPC targets.
7368 .IP "\fB\-mone\-byte\-bool\fR" 4
7369 .IX Item "-mone-byte-bool"
7370 Override the defaults for \fBbool\fR so that \fBsizeof(bool)==1\fR.
7371 By default \fBsizeof(bool)\fR is \fB4\fR when compiling for
7372 Darwin/PowerPC and \fB1\fR when compiling for Darwin/x86, so this
7373 option has no effect on x86.
7374 .Sp
7375 \&\fBWarning:\fR The \fB\-mone\-byte\-bool\fR switch causes \s-1GCC\s0
7376 to generate code that is not binary compatible with code generated
7377 without that switch.  Using this switch may require recompiling all
7378 other modules in a program, including system libraries.  Use this
7379 switch to conform to a non-default data model.
7380 .IP "\fB\-mfix\-and\-continue\fR" 4
7381 .IX Item "-mfix-and-continue"
7382 .PD 0
7383 .IP "\fB\-ffix\-and\-continue\fR" 4
7384 .IX Item "-ffix-and-continue"
7385 .IP "\fB\-findirect\-data\fR" 4
7386 .IX Item "-findirect-data"
7387 .PD
7388 Generate code suitable for fast turn around development.  Needed to
7389 enable gdb to dynamically load \f(CW\*(C`.o\*(C'\fR files into already running
7390 programs.  \fB\-findirect\-data\fR and \fB\-ffix\-and\-continue\fR
7391 are provided for backwards compatibility.
7392 .IP "\fB\-all_load\fR" 4
7393 .IX Item "-all_load"
7394 Loads all members of static archive libraries.
7395 See man \fIld\fR\|(1) for more information.
7396 .IP "\fB\-arch_errors_fatal\fR" 4
7397 .IX Item "-arch_errors_fatal"
7398 Cause the errors having to do with files that have the wrong architecture
7399 to be fatal.
7400 .IP "\fB\-bind_at_load\fR" 4
7401 .IX Item "-bind_at_load"
7402 Causes the output file to be marked such that the dynamic linker will
7403 bind all undefined references when the file is loaded or launched.
7404 .IP "\fB\-bundle\fR" 4
7405 .IX Item "-bundle"
7406 Produce a Mach-o bundle format file.
7407 See man \fIld\fR\|(1) for more information.
7408 .IP "\fB\-bundle_loader\fR \fIexecutable\fR" 4
7409 .IX Item "-bundle_loader executable"
7410 This option specifies the \fIexecutable\fR that will be loading the build
7411 output file being linked.  See man \fIld\fR\|(1) for more information.
7412 .IP "\fB\-dynamiclib\fR" 4
7413 .IX Item "-dynamiclib"
7414 When passed this option, \s-1GCC\s0 will produce a dynamic library instead of
7415 an executable when linking, using the Darwin \fIlibtool\fR command.
7416 .IP "\fB\-force_cpusubtype_ALL\fR" 4
7417 .IX Item "-force_cpusubtype_ALL"
7418 This causes \s-1GCC\s0's output file to have the \fI\s-1ALL\s0\fR subtype, instead of
7419 one controlled by the \fB\-mcpu\fR or \fB\-march\fR option.
7420 .IP "\fB\-allowable_client\fR  \fIclient_name\fR" 4
7421 .IX Item "-allowable_client  client_name"
7422 .PD 0
7423 .IP "\fB\-client_name\fR" 4
7424 .IX Item "-client_name"
7425 .IP "\fB\-compatibility_version\fR" 4
7426 .IX Item "-compatibility_version"
7427 .IP "\fB\-current_version\fR" 4
7428 .IX Item "-current_version"
7429 .IP "\fB\-dead_strip\fR" 4
7430 .IX Item "-dead_strip"
7431 .IP "\fB\-dependency\-file\fR" 4
7432 .IX Item "-dependency-file"
7433 .IP "\fB\-dylib_file\fR" 4
7434 .IX Item "-dylib_file"
7435 .IP "\fB\-dylinker_install_name\fR" 4
7436 .IX Item "-dylinker_install_name"
7437 .IP "\fB\-dynamic\fR" 4
7438 .IX Item "-dynamic"
7439 .IP "\fB\-exported_symbols_list\fR" 4
7440 .IX Item "-exported_symbols_list"
7441 .IP "\fB\-filelist\fR" 4
7442 .IX Item "-filelist"
7443 .IP "\fB\-flat_namespace\fR" 4
7444 .IX Item "-flat_namespace"
7445 .IP "\fB\-force_flat_namespace\fR" 4
7446 .IX Item "-force_flat_namespace"
7447 .IP "\fB\-headerpad_max_install_names\fR" 4
7448 .IX Item "-headerpad_max_install_names"
7449 .IP "\fB\-image_base\fR" 4
7450 .IX Item "-image_base"
7451 .IP "\fB\-init\fR" 4
7452 .IX Item "-init"
7453 .IP "\fB\-install_name\fR" 4
7454 .IX Item "-install_name"
7455 .IP "\fB\-keep_private_externs\fR" 4
7456 .IX Item "-keep_private_externs"
7457 .IP "\fB\-multi_module\fR" 4
7458 .IX Item "-multi_module"
7459 .IP "\fB\-multiply_defined\fR" 4
7460 .IX Item "-multiply_defined"
7461 .IP "\fB\-multiply_defined_unused\fR" 4
7462 .IX Item "-multiply_defined_unused"
7463 .IP "\fB\-noall_load\fR" 4
7464 .IX Item "-noall_load"
7465 .IP "\fB\-no_dead_strip_inits_and_terms\fR" 4
7466 .IX Item "-no_dead_strip_inits_and_terms"
7467 .IP "\fB\-nofixprebinding\fR" 4
7468 .IX Item "-nofixprebinding"
7469 .IP "\fB\-nomultidefs\fR" 4
7470 .IX Item "-nomultidefs"
7471 .IP "\fB\-noprebind\fR" 4
7472 .IX Item "-noprebind"
7473 .IP "\fB\-noseglinkedit\fR" 4
7474 .IX Item "-noseglinkedit"
7475 .IP "\fB\-pagezero_size\fR" 4
7476 .IX Item "-pagezero_size"
7477 .IP "\fB\-prebind\fR" 4
7478 .IX Item "-prebind"
7479 .IP "\fB\-prebind_all_twolevel_modules\fR" 4
7480 .IX Item "-prebind_all_twolevel_modules"
7481 .IP "\fB\-private_bundle\fR" 4
7482 .IX Item "-private_bundle"
7483 .IP "\fB\-read_only_relocs\fR" 4
7484 .IX Item "-read_only_relocs"
7485 .IP "\fB\-sectalign\fR" 4
7486 .IX Item "-sectalign"
7487 .IP "\fB\-sectobjectsymbols\fR" 4
7488 .IX Item "-sectobjectsymbols"
7489 .IP "\fB\-whyload\fR" 4
7490 .IX Item "-whyload"
7491 .IP "\fB\-seg1addr\fR" 4
7492 .IX Item "-seg1addr"
7493 .IP "\fB\-sectcreate\fR" 4
7494 .IX Item "-sectcreate"
7495 .IP "\fB\-sectobjectsymbols\fR" 4
7496 .IX Item "-sectobjectsymbols"
7497 .IP "\fB\-sectorder\fR" 4
7498 .IX Item "-sectorder"
7499 .IP "\fB\-segaddr\fR" 4
7500 .IX Item "-segaddr"
7501 .IP "\fB\-segs_read_only_addr\fR" 4
7502 .IX Item "-segs_read_only_addr"
7503 .IP "\fB\-segs_read_write_addr\fR" 4
7504 .IX Item "-segs_read_write_addr"
7505 .IP "\fB\-seg_addr_table\fR" 4
7506 .IX Item "-seg_addr_table"
7507 .IP "\fB\-seg_addr_table_filename\fR" 4
7508 .IX Item "-seg_addr_table_filename"
7509 .IP "\fB\-seglinkedit\fR" 4
7510 .IX Item "-seglinkedit"
7511 .IP "\fB\-segprot\fR" 4
7512 .IX Item "-segprot"
7513 .IP "\fB\-segs_read_only_addr\fR" 4
7514 .IX Item "-segs_read_only_addr"
7515 .IP "\fB\-segs_read_write_addr\fR" 4
7516 .IX Item "-segs_read_write_addr"
7517 .IP "\fB\-single_module\fR" 4
7518 .IX Item "-single_module"
7519 .IP "\fB\-static\fR" 4
7520 .IX Item "-static"
7521 .IP "\fB\-sub_library\fR" 4
7522 .IX Item "-sub_library"
7523 .IP "\fB\-sub_umbrella\fR" 4
7524 .IX Item "-sub_umbrella"
7525 .IP "\fB\-twolevel_namespace\fR" 4
7526 .IX Item "-twolevel_namespace"
7527 .IP "\fB\-umbrella\fR" 4
7528 .IX Item "-umbrella"
7529 .IP "\fB\-undefined\fR" 4
7530 .IX Item "-undefined"
7531 .IP "\fB\-unexported_symbols_list\fR" 4
7532 .IX Item "-unexported_symbols_list"
7533 .IP "\fB\-weak_reference_mismatches\fR" 4
7534 .IX Item "-weak_reference_mismatches"
7535 .IP "\fB\-whatsloaded\fR" 4
7536 .IX Item "-whatsloaded"
7537 .PD
7538 These options are passed to the Darwin linker.  The Darwin linker man page
7539 describes them in detail.
7540 .PP
7541 \fI\s-1DEC\s0 Alpha Options\fR
7542 .IX Subsection "DEC Alpha Options"
7543 .PP
7544 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha implementations:
7545 .IP "\fB\-mno\-soft\-float\fR" 4
7546 .IX Item "-mno-soft-float"
7547 .PD 0
7548 .IP "\fB\-msoft\-float\fR" 4
7549 .IX Item "-msoft-float"
7550 .PD
7551 Use (do not use) the hardware floating-point instructions for
7552 floating-point operations.  When \fB\-msoft\-float\fR is specified,
7553 functions in \fIlibgcc.a\fR will be used to perform floating-point
7554 operations.  Unless they are replaced by routines that emulate the
7555 floating-point operations, or compiled in such a way as to call such
7556 emulations routines, these routines will issue floating-point
7557 operations.   If you are compiling for an Alpha without floating-point
7558 operations, you must ensure that the library is built so as not to call
7559 them.
7560 .Sp
7561 Note that Alpha implementations without floating-point operations are
7562 required to have floating-point registers.
7563 .IP "\fB\-mfp\-reg\fR" 4
7564 .IX Item "-mfp-reg"
7565 .PD 0
7566 .IP "\fB\-mno\-fp\-regs\fR" 4
7567 .IX Item "-mno-fp-regs"
7568 .PD
7569 Generate code that uses (does not use) the floating-point register set.
7570 \&\fB\-mno\-fp\-regs\fR implies \fB\-msoft\-float\fR.  If the floating-point
7571 register set is not used, floating point operands are passed in integer
7572 registers as if they were integers and floating-point results are passed
7573 in \f(CW$0\fR instead of \f(CW$f0\fR.  This is a non-standard calling sequence,
7574 so any function with a floating-point argument or return value called by code
7575 compiled with \fB\-mno\-fp\-regs\fR must also be compiled with that
7576 option.
7577 .Sp
7578 A typical use of this option is building a kernel that does not use,
7579 and hence need not save and restore, any floating-point registers.
7580 .IP "\fB\-mieee\fR" 4
7581 .IX Item "-mieee"
7582 The Alpha architecture implements floating-point hardware optimized for
7583 maximum performance.  It is mostly compliant with the \s-1IEEE\s0 floating
7584 point standard.  However, for full compliance, software assistance is
7585 required.  This option generates code fully \s-1IEEE\s0 compliant code
7586 \&\fIexcept\fR that the \fIinexact-flag\fR is not maintained (see below).
7587 If this option is turned on, the preprocessor macro \f(CW\*(C`_IEEE_FP\*(C'\fR is
7588 defined during compilation.  The resulting code is less efficient but is
7589 able to correctly support denormalized numbers and exceptional \s-1IEEE\s0
7590 values such as not-a-number and plus/minus infinity.  Other Alpha
7591 compilers call this option \fB\-ieee_with_no_inexact\fR.
7592 .IP "\fB\-mieee\-with\-inexact\fR" 4
7593 .IX Item "-mieee-with-inexact"
7594 This is like \fB\-mieee\fR except the generated code also maintains
7595 the \s-1IEEE\s0 \fIinexact-flag\fR.  Turning on this option causes the
7596 generated code to implement fully-compliant \s-1IEEE\s0 math.  In addition to
7597 \&\f(CW\*(C`_IEEE_FP\*(C'\fR, \f(CW\*(C`_IEEE_FP_EXACT\*(C'\fR is defined as a preprocessor
7598 macro.  On some Alpha implementations the resulting code may execute
7599 significantly slower than the code generated by default.  Since there is
7600 very little code that depends on the \fIinexact-flag\fR, you should
7601 normally not specify this option.  Other Alpha compilers call this
7602 option \fB\-ieee_with_inexact\fR.
7603 .IP "\fB\-mfp\-trap\-mode=\fR\fItrap-mode\fR" 4
7604 .IX Item "-mfp-trap-mode=trap-mode"
7605 This option controls what floating-point related traps are enabled.
7606 Other Alpha compilers call this option \fB\-fptm\fR \fItrap-mode\fR.
7607 The trap mode can be set to one of four values:
7608 .RS 4
7609 .IP "\fBn\fR" 4
7610 .IX Item "n"
7611 This is the default (normal) setting.  The only traps that are enabled
7612 are the ones that cannot be disabled in software (e.g., division by zero
7613 trap).
7614 .IP "\fBu\fR" 4
7615 .IX Item "u"
7616 In addition to the traps enabled by \fBn\fR, underflow traps are enabled
7617 as well.
7618 .IP "\fBsu\fR" 4
7619 .IX Item "su"
7620 Like \fBu\fR, but the instructions are marked to be safe for software
7621 completion (see Alpha architecture manual for details).
7622 .IP "\fBsui\fR" 4
7623 .IX Item "sui"
7624 Like \fBsu\fR, but inexact traps are enabled as well.
7625 .RE
7626 .RS 4
7627 .RE
7628 .IP "\fB\-mfp\-rounding\-mode=\fR\fIrounding-mode\fR" 4
7629 .IX Item "-mfp-rounding-mode=rounding-mode"
7630 Selects the \s-1IEEE\s0 rounding mode.  Other Alpha compilers call this option
7631 \&\fB\-fprm\fR \fIrounding-mode\fR.  The \fIrounding-mode\fR can be one
7632 of:
7633 .RS 4
7634 .IP "\fBn\fR" 4
7635 .IX Item "n"
7636 Normal \s-1IEEE\s0 rounding mode.  Floating point numbers are rounded towards
7637 the nearest machine number or towards the even machine number in case
7638 of a tie.
7639 .IP "\fBm\fR" 4
7640 .IX Item "m"
7641 Round towards minus infinity.
7642 .IP "\fBc\fR" 4
7643 .IX Item "c"
7644 Chopped rounding mode.  Floating point numbers are rounded towards zero.
7645 .IP "\fBd\fR" 4
7646 .IX Item "d"
7647 Dynamic rounding mode.  A field in the floating point control register
7648 (\fIfpcr\fR, see Alpha architecture reference manual) controls the
7649 rounding mode in effect.  The C library initializes this register for
7650 rounding towards plus infinity.  Thus, unless your program modifies the
7651 \&\fIfpcr\fR, \fBd\fR corresponds to round towards plus infinity.
7652 .RE
7653 .RS 4
7654 .RE
7655 .IP "\fB\-mtrap\-precision=\fR\fItrap-precision\fR" 4
7656 .IX Item "-mtrap-precision=trap-precision"
7657 In the Alpha architecture, floating point traps are imprecise.  This
7658 means without software assistance it is impossible to recover from a
7659 floating trap and program execution normally needs to be terminated.
7660 \&\s-1GCC\s0 can generate code that can assist operating system trap handlers
7661 in determining the exact location that caused a floating point trap.
7662 Depending on the requirements of an application, different levels of
7663 precisions can be selected:
7664 .RS 4
7665 .IP "\fBp\fR" 4
7666 .IX Item "p"
7667 Program precision.  This option is the default and means a trap handler
7668 can only identify which program caused a floating point exception.
7669 .IP "\fBf\fR" 4
7670 .IX Item "f"
7671 Function precision.  The trap handler can determine the function that
7672 caused a floating point exception.
7673 .IP "\fBi\fR" 4
7674 .IX Item "i"
7675 Instruction precision.  The trap handler can determine the exact
7676 instruction that caused a floating point exception.
7677 .RE
7678 .RS 4
7679 .Sp
7680 Other Alpha compilers provide the equivalent options called
7681 \&\fB\-scope_safe\fR and \fB\-resumption_safe\fR.
7682 .RE
7683 .IP "\fB\-mieee\-conformant\fR" 4
7684 .IX Item "-mieee-conformant"
7685 This option marks the generated code as \s-1IEEE\s0 conformant.  You must not
7686 use this option unless you also specify \fB\-mtrap\-precision=i\fR and either
7687 \&\fB\-mfp\-trap\-mode=su\fR or \fB\-mfp\-trap\-mode=sui\fR.  Its only effect
7688 is to emit the line \fB.eflag 48\fR in the function prologue of the
7689 generated assembly file.  Under \s-1DEC\s0 Unix, this has the effect that
7690 IEEE-conformant math library routines will be linked in.
7691 .IP "\fB\-mbuild\-constants\fR" 4
7692 .IX Item "-mbuild-constants"
7693 Normally \s-1GCC\s0 examines a 32\- or 64\-bit integer constant to
7694 see if it can construct it from smaller constants in two or three
7695 instructions.  If it cannot, it will output the constant as a literal and
7696 generate code to load it from the data segment at runtime.
7697 .Sp
7698 Use this option to require \s-1GCC\s0 to construct \fIall\fR integer constants
7699 using code, even if it takes more instructions (the maximum is six).
7700 .Sp
7701 You would typically use this option to build a shared library dynamic
7702 loader.  Itself a shared library, it must relocate itself in memory
7703 before it can find the variables and constants in its own data segment.
7704 .IP "\fB\-malpha\-as\fR" 4
7705 .IX Item "-malpha-as"
7706 .PD 0
7707 .IP "\fB\-mgas\fR" 4
7708 .IX Item "-mgas"
7709 .PD
7710 Select whether to generate code to be assembled by the vendor-supplied
7711 assembler (\fB\-malpha\-as\fR) or by the \s-1GNU\s0 assembler \fB\-mgas\fR.
7712 .IP "\fB\-mbwx\fR" 4
7713 .IX Item "-mbwx"
7714 .PD 0
7715 .IP "\fB\-mno\-bwx\fR" 4
7716 .IX Item "-mno-bwx"
7717 .IP "\fB\-mcix\fR" 4
7718 .IX Item "-mcix"
7719 .IP "\fB\-mno\-cix\fR" 4
7720 .IX Item "-mno-cix"
7721 .IP "\fB\-mfix\fR" 4
7722 .IX Item "-mfix"
7723 .IP "\fB\-mno\-fix\fR" 4
7724 .IX Item "-mno-fix"
7725 .IP "\fB\-mmax\fR" 4
7726 .IX Item "-mmax"
7727 .IP "\fB\-mno\-max\fR" 4
7728 .IX Item "-mno-max"
7729 .PD
7730 Indicate whether \s-1GCC\s0 should generate code to use the optional \s-1BWX\s0,
7731 \&\s-1CIX\s0, \s-1FIX\s0 and \s-1MAX\s0 instruction sets.  The default is to use the instruction
7732 sets supported by the \s-1CPU\s0 type specified via \fB\-mcpu=\fR option or that
7733 of the \s-1CPU\s0 on which \s-1GCC\s0 was built if none was specified.
7734 .IP "\fB\-mfloat\-vax\fR" 4
7735 .IX Item "-mfloat-vax"
7736 .PD 0
7737 .IP "\fB\-mfloat\-ieee\fR" 4
7738 .IX Item "-mfloat-ieee"
7739 .PD
7740 Generate code that uses (does not use) \s-1VAX\s0 F and G floating point
7741 arithmetic instead of \s-1IEEE\s0 single and double precision.
7742 .IP "\fB\-mexplicit\-relocs\fR" 4
7743 .IX Item "-mexplicit-relocs"
7744 .PD 0
7745 .IP "\fB\-mno\-explicit\-relocs\fR" 4
7746 .IX Item "-mno-explicit-relocs"
7747 .PD
7748 Older Alpha assemblers provided no way to generate symbol relocations
7749 except via assembler macros.  Use of these macros does not allow
7750 optimal instruction scheduling.  \s-1GNU\s0 binutils as of version 2.12
7751 supports a new syntax that allows the compiler to explicitly mark
7752 which relocations should apply to which instructions.  This option
7753 is mostly useful for debugging, as \s-1GCC\s0 detects the capabilities of
7754 the assembler when it is built and sets the default accordingly.
7755 .IP "\fB\-msmall\-data\fR" 4
7756 .IX Item "-msmall-data"
7757 .PD 0
7758 .IP "\fB\-mlarge\-data\fR" 4
7759 .IX Item "-mlarge-data"
7760 .PD
7761 When \fB\-mexplicit\-relocs\fR is in effect, static data is
7762 accessed via \fIgp-relative\fR relocations.  When \fB\-msmall\-data\fR
7763 is used, objects 8 bytes long or smaller are placed in a \fIsmall data area\fR
7764 (the \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR sections) and are accessed via
7765 16\-bit relocations off of the \f(CW$gp\fR register.  This limits the
7766 size of the small data area to 64KB, but allows the variables to be
7767 directly accessed via a single instruction.
7768 .Sp
7769 The default is \fB\-mlarge\-data\fR.  With this option the data area
7770 is limited to just below 2GB.  Programs that require more than 2GB of
7771 data must use \f(CW\*(C`malloc\*(C'\fR or \f(CW\*(C`mmap\*(C'\fR to allocate the data in the
7772 heap instead of in the program's data segment.
7773 .Sp
7774 When generating code for shared libraries, \fB\-fpic\fR implies
7775 \&\fB\-msmall\-data\fR and \fB\-fPIC\fR implies \fB\-mlarge\-data\fR.
7776 .IP "\fB\-msmall\-text\fR" 4
7777 .IX Item "-msmall-text"
7778 .PD 0
7779 .IP "\fB\-mlarge\-text\fR" 4
7780 .IX Item "-mlarge-text"
7781 .PD
7782 When \fB\-msmall\-text\fR is used, the compiler assumes that the
7783 code of the entire program (or shared library) fits in 4MB, and is
7784 thus reachable with a branch instruction.  When \fB\-msmall\-data\fR
7785 is used, the compiler can assume that all local symbols share the
7786 same \f(CW$gp\fR value, and thus reduce the number of instructions
7787 required for a function call from 4 to 1.
7788 .Sp
7789 The default is \fB\-mlarge\-text\fR.
7790 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
7791 .IX Item "-mcpu=cpu_type"
7792 Set the instruction set and instruction scheduling parameters for
7793 machine type \fIcpu_type\fR.  You can specify either the \fB\s-1EV\s0\fR
7794 style name or the corresponding chip number.  \s-1GCC\s0 supports scheduling
7795 parameters for the \s-1EV4\s0, \s-1EV5\s0 and \s-1EV6\s0 family of processors and will
7796 choose the default values for the instruction set from the processor
7797 you specify.  If you do not specify a processor type, \s-1GCC\s0 will default
7798 to the processor on which the compiler was built.
7799 .Sp
7800 Supported values for \fIcpu_type\fR are
7801 .RS 4
7802 .IP "\fBev4\fR" 4
7803 .IX Item "ev4"
7804 .PD 0
7805 .IP "\fBev45\fR" 4
7806 .IX Item "ev45"
7807 .IP "\fB21064\fR" 4
7808 .IX Item "21064"
7809 .PD
7810 Schedules as an \s-1EV4\s0 and has no instruction set extensions.
7811 .IP "\fBev5\fR" 4
7812 .IX Item "ev5"
7813 .PD 0
7814 .IP "\fB21164\fR" 4
7815 .IX Item "21164"
7816 .PD
7817 Schedules as an \s-1EV5\s0 and has no instruction set extensions.
7818 .IP "\fBev56\fR" 4
7819 .IX Item "ev56"
7820 .PD 0
7821 .IP "\fB21164a\fR" 4
7822 .IX Item "21164a"
7823 .PD
7824 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 extension.
7825 .IP "\fBpca56\fR" 4
7826 .IX Item "pca56"
7827 .PD 0
7828 .IP "\fB21164pc\fR" 4
7829 .IX Item "21164pc"
7830 .IP "\fB21164PC\fR" 4
7831 .IX Item "21164PC"
7832 .PD
7833 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 and \s-1MAX\s0 extensions.
7834 .IP "\fBev6\fR" 4
7835 .IX Item "ev6"
7836 .PD 0
7837 .IP "\fB21264\fR" 4
7838 .IX Item "21264"
7839 .PD
7840 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
7841 .IP "\fBev67\fR" 4
7842 .IX Item "ev67"
7843 .PD 0
7844 .IP "\fB21264a\fR" 4
7845 .IX Item "21264a"
7846 .PD
7847 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1CIX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
7848 .RE
7849 .RS 4
7850 .RE
7851 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
7852 .IX Item "-mtune=cpu_type"
7853 Set only the instruction scheduling parameters for machine type
7854 \&\fIcpu_type\fR.  The instruction set is not changed.
7855 .IP "\fB\-mmemory\-latency=\fR\fItime\fR" 4
7856 .IX Item "-mmemory-latency=time"
7857 Sets the latency the scheduler should assume for typical memory
7858 references as seen by the application.  This number is highly
7859 dependent on the memory access patterns used by the application
7860 and the size of the external cache on the machine.
7861 .Sp
7862 Valid options for \fItime\fR are
7863 .RS 4
7864 .IP "\fInumber\fR" 4
7865 .IX Item "number"
7866 A decimal number representing clock cycles.
7867 .IP "\fBL1\fR" 4
7868 .IX Item "L1"
7869 .PD 0
7870 .IP "\fBL2\fR" 4
7871 .IX Item "L2"
7872 .IP "\fBL3\fR" 4
7873 .IX Item "L3"
7874 .IP "\fBmain\fR" 4
7875 .IX Item "main"
7876 .PD
7877 The compiler contains estimates of the number of clock cycles for
7878 \&\*(L"typical\*(R" \s-1EV4\s0 & \s-1EV5\s0 hardware for the Level 1, 2 & 3 caches
7879 (also called Dcache, Scache, and Bcache), as well as to main memory.
7880 Note that L3 is only valid for \s-1EV5\s0.
7881 .RE
7882 .RS 4
7883 .RE
7884 .PP
7885 \fI\s-1DEC\s0 Alpha/VMS Options\fR
7886 .IX Subsection "DEC Alpha/VMS Options"
7887 .PP
7888 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha/VMS implementations:
7889 .IP "\fB\-mvms\-return\-codes\fR" 4
7890 .IX Item "-mvms-return-codes"
7891 Return \s-1VMS\s0 condition codes from main.  The default is to return \s-1POSIX\s0
7892 style condition (e.g. error) codes.
7893 .PP
7894 \fI\s-1FRV\s0 Options\fR
7895 .IX Subsection "FRV Options"
7896 .IP "\fB\-mgpr\-32\fR" 4
7897 .IX Item "-mgpr-32"
7898 Only use the first 32 general purpose registers.
7899 .IP "\fB\-mgpr\-64\fR" 4
7900 .IX Item "-mgpr-64"
7901 Use all 64 general purpose registers.
7902 .IP "\fB\-mfpr\-32\fR" 4
7903 .IX Item "-mfpr-32"
7904 Use only the first 32 floating point registers.
7905 .IP "\fB\-mfpr\-64\fR" 4
7906 .IX Item "-mfpr-64"
7907 Use all 64 floating point registers
7908 .IP "\fB\-mhard\-float\fR" 4
7909 .IX Item "-mhard-float"
7910 Use hardware instructions for floating point operations.
7911 .IP "\fB\-msoft\-float\fR" 4
7912 .IX Item "-msoft-float"
7913 Use library routines for floating point operations.
7914 .IP "\fB\-malloc\-cc\fR" 4
7915 .IX Item "-malloc-cc"
7916 Dynamically allocate condition code registers.
7917 .IP "\fB\-mfixed\-cc\fR" 4
7918 .IX Item "-mfixed-cc"
7919 Do not try to dynamically allocate condition code registers, only
7920 use \f(CW\*(C`icc0\*(C'\fR and \f(CW\*(C`fcc0\*(C'\fR.
7921 .IP "\fB\-mdword\fR" 4
7922 .IX Item "-mdword"
7923 Change \s-1ABI\s0 to use double word insns.
7924 .IP "\fB\-mno\-dword\fR" 4
7925 .IX Item "-mno-dword"
7926 Do not use double word instructions.
7927 .IP "\fB\-mdouble\fR" 4
7928 .IX Item "-mdouble"
7929 Use floating point double instructions.
7930 .IP "\fB\-mno\-double\fR" 4
7931 .IX Item "-mno-double"
7932 Do not use floating point double instructions.
7933 .IP "\fB\-mmedia\fR" 4
7934 .IX Item "-mmedia"
7935 Use media instructions.
7936 .IP "\fB\-mno\-media\fR" 4
7937 .IX Item "-mno-media"
7938 Do not use media instructions.
7939 .IP "\fB\-mmuladd\fR" 4
7940 .IX Item "-mmuladd"
7941 Use multiply and add/subtract instructions.
7942 .IP "\fB\-mno\-muladd\fR" 4
7943 .IX Item "-mno-muladd"
7944 Do not use multiply and add/subtract instructions.
7945 .IP "\fB\-mfdpic\fR" 4
7946 .IX Item "-mfdpic"
7947 Select the \s-1FDPIC\s0 \s-1ABI\s0, that uses function descriptors to represent
7948 pointers to functions.  Without any PIC/PIE\-related options, it
7949 implies \fB\-fPIE\fR.  With \fB\-fpic\fR or \fB\-fpie\fR, it
7950 assumes \s-1GOT\s0 entries and small data are within a 12\-bit range from the
7951 \&\s-1GOT\s0 base address; with \fB\-fPIC\fR or \fB\-fPIE\fR, \s-1GOT\s0 offsets
7952 are computed with 32 bits.
7953 .IP "\fB\-minline\-plt\fR" 4
7954 .IX Item "-minline-plt"
7955 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
7956 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
7957 It's enabled by default if optimizing for speed and compiling for
7958 shared libraries (i.e., \fB\-fPIC\fR or \fB\-fpic\fR), or when an
7959 optimization option such as \fB\-O3\fR or above is present in the
7960 command line.
7961 .IP "\fB\-mTLS\fR" 4
7962 .IX Item "-mTLS"
7963 Assume a large \s-1TLS\s0 segment when generating thread-local code.
7964 .IP "\fB\-mtls\fR" 4
7965 .IX Item "-mtls"
7966 Do not assume a large \s-1TLS\s0 segment when generating thread-local code.
7967 .IP "\fB\-mgprel\-ro\fR" 4
7968 .IX Item "-mgprel-ro"
7969 Enable the use of \f(CW\*(C`GPREL\*(C'\fR relocations in the \s-1FDPIC\s0 \s-1ABI\s0 for data
7970 that is known to be in read-only sections.  It's enabled by default,
7971 except for \fB\-fpic\fR or \fB\-fpie\fR: even though it may help
7972 make the global offset table smaller, it trades 1 instruction for 4.
7973 With \fB\-fPIC\fR or \fB\-fPIE\fR, it trades 3 instructions for 4,
7974 one of which may be shared by multiple symbols, and it avoids the need
7975 for a \s-1GOT\s0 entry for the referenced symbol, so it's more likely to be a
7976 win.  If it is not, \fB\-mno\-gprel\-ro\fR can be used to disable it.
7977 .IP "\fB\-multilib\-library\-pic\fR" 4
7978 .IX Item "-multilib-library-pic"
7979 Link with the (library, not \s-1FD\s0) pic libraries.  It's implied by
7980 \&\fB\-mlibrary\-pic\fR, as well as by \fB\-fPIC\fR and
7981 \&\fB\-fpic\fR without \fB\-mfdpic\fR.  You should never have to use
7982 it explicitly.
7983 .IP "\fB\-mlinked\-fp\fR" 4
7984 .IX Item "-mlinked-fp"
7985 Follow the \s-1EABI\s0 requirement of always creating a frame pointer whenever
7986 a stack frame is allocated.  This option is enabled by default and can
7987 be disabled with \fB\-mno\-linked\-fp\fR.
7988 .IP "\fB\-mlong\-calls\fR" 4
7989 .IX Item "-mlong-calls"
7990 Use indirect addressing to call functions outside the current
7991 compilation unit.  This allows the functions to be placed anywhere
7992 within the 32\-bit address space.
7993 .IP "\fB\-malign\-labels\fR" 4
7994 .IX Item "-malign-labels"
7995 Try to align labels to an 8\-byte boundary by inserting nops into the
7996 previous packet.  This option only has an effect when \s-1VLIW\s0 packing
7997 is enabled.  It doesn't create new packets; it merely adds nops to
7998 existing ones.
7999 .IP "\fB\-mlibrary\-pic\fR" 4
8000 .IX Item "-mlibrary-pic"
8001 Generate position-independent \s-1EABI\s0 code.
8002 .IP "\fB\-macc\-4\fR" 4
8003 .IX Item "-macc-4"
8004 Use only the first four media accumulator registers.
8005 .IP "\fB\-macc\-8\fR" 4
8006 .IX Item "-macc-8"
8007 Use all eight media accumulator registers.
8008 .IP "\fB\-mpack\fR" 4
8009 .IX Item "-mpack"
8010 Pack \s-1VLIW\s0 instructions.
8011 .IP "\fB\-mno\-pack\fR" 4
8012 .IX Item "-mno-pack"
8013 Do not pack \s-1VLIW\s0 instructions.
8014 .IP "\fB\-mno\-eflags\fR" 4
8015 .IX Item "-mno-eflags"
8016 Do not mark \s-1ABI\s0 switches in e_flags.
8017 .IP "\fB\-mcond\-move\fR" 4
8018 .IX Item "-mcond-move"
8019 Enable the use of conditional-move instructions (default).
8020 .Sp
8021 This switch is mainly for debugging the compiler and will likely be removed
8022 in a future version.
8023 .IP "\fB\-mno\-cond\-move\fR" 4
8024 .IX Item "-mno-cond-move"
8025 Disable the use of conditional-move instructions.
8026 .Sp
8027 This switch is mainly for debugging the compiler and will likely be removed
8028 in a future version.
8029 .IP "\fB\-mscc\fR" 4
8030 .IX Item "-mscc"
8031 Enable the use of conditional set instructions (default).
8032 .Sp
8033 This switch is mainly for debugging the compiler and will likely be removed
8034 in a future version.
8035 .IP "\fB\-mno\-scc\fR" 4
8036 .IX Item "-mno-scc"
8037 Disable the use of conditional set instructions.
8038 .Sp
8039 This switch is mainly for debugging the compiler and will likely be removed
8040 in a future version.
8041 .IP "\fB\-mcond\-exec\fR" 4
8042 .IX Item "-mcond-exec"
8043 Enable the use of conditional execution (default).
8044 .Sp
8045 This switch is mainly for debugging the compiler and will likely be removed
8046 in a future version.
8047 .IP "\fB\-mno\-cond\-exec\fR" 4
8048 .IX Item "-mno-cond-exec"
8049 Disable the use of conditional execution.
8050 .Sp
8051 This switch is mainly for debugging the compiler and will likely be removed
8052 in a future version.
8053 .IP "\fB\-mvliw\-branch\fR" 4
8054 .IX Item "-mvliw-branch"
8055 Run a pass to pack branches into \s-1VLIW\s0 instructions (default).
8056 .Sp
8057 This switch is mainly for debugging the compiler and will likely be removed
8058 in a future version.
8059 .IP "\fB\-mno\-vliw\-branch\fR" 4
8060 .IX Item "-mno-vliw-branch"
8061 Do not run a pass to pack branches into \s-1VLIW\s0 instructions.
8062 .Sp
8063 This switch is mainly for debugging the compiler and will likely be removed
8064 in a future version.
8065 .IP "\fB\-mmulti\-cond\-exec\fR" 4
8066 .IX Item "-mmulti-cond-exec"
8067 Enable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution
8068 (default).
8069 .Sp
8070 This switch is mainly for debugging the compiler and will likely be removed
8071 in a future version.
8072 .IP "\fB\-mno\-multi\-cond\-exec\fR" 4
8073 .IX Item "-mno-multi-cond-exec"
8074 Disable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution.
8075 .Sp
8076 This switch is mainly for debugging the compiler and will likely be removed
8077 in a future version.
8078 .IP "\fB\-mnested\-cond\-exec\fR" 4
8079 .IX Item "-mnested-cond-exec"
8080 Enable nested conditional execution optimizations (default).
8081 .Sp
8082 This switch is mainly for debugging the compiler and will likely be removed
8083 in a future version.
8084 .IP "\fB\-mno\-nested\-cond\-exec\fR" 4
8085 .IX Item "-mno-nested-cond-exec"
8086 Disable nested conditional execution optimizations.
8087 .Sp
8088 This switch is mainly for debugging the compiler and will likely be removed
8089 in a future version.
8090 .IP "\fB\-moptimize\-membar\fR" 4
8091 .IX Item "-moptimize-membar"
8092 This switch removes redundant \f(CW\*(C`membar\*(C'\fR instructions from the
8093 compiler generated code.  It is enabled by default.
8094 .IP "\fB\-mno\-optimize\-membar\fR" 4
8095 .IX Item "-mno-optimize-membar"
8096 This switch disables the automatic removal of redundant \f(CW\*(C`membar\*(C'\fR
8097 instructions from the generated code.
8098 .IP "\fB\-mtomcat\-stats\fR" 4
8099 .IX Item "-mtomcat-stats"
8100 Cause gas to print out tomcat statistics.
8101 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
8102 .IX Item "-mcpu=cpu"
8103 Select the processor type for which to generate code.  Possible values are
8104 \&\fBfrv\fR, \fBfr550\fR, \fBtomcat\fR, \fBfr500\fR, \fBfr450\fR,
8105 \&\fBfr405\fR, \fBfr400\fR, \fBfr300\fR and \fBsimple\fR.
8106 .PP
8107 \fIGNU/Linux Options\fR
8108 .IX Subsection "GNU/Linux Options"
8109 .PP
8110 These \fB\-m\fR options are defined for GNU/Linux targets:
8111 .IP "\fB\-mglibc\fR" 4
8112 .IX Item "-mglibc"
8113 Use the \s-1GNU\s0 C library instead of uClibc.  This is the default except
8114 on \fB*\-*\-linux\-*uclibc*\fR targets.
8115 .IP "\fB\-muclibc\fR" 4
8116 .IX Item "-muclibc"
8117 Use uClibc instead of the \s-1GNU\s0 C library.  This is the default on
8118 \&\fB*\-*\-linux\-*uclibc*\fR targets.
8119 .PP
8120 \fIH8/300 Options\fR
8121 .IX Subsection "H8/300 Options"
8122 .PP
8123 These \fB\-m\fR options are defined for the H8/300 implementations:
8124 .IP "\fB\-mrelax\fR" 4
8125 .IX Item "-mrelax"
8126 Shorten some address references at link time, when possible; uses the
8127 linker option \fB\-relax\fR.  
8128 .IP "\fB\-mh\fR" 4
8129 .IX Item "-mh"
8130 Generate code for the H8/300H.
8131 .IP "\fB\-ms\fR" 4
8132 .IX Item "-ms"
8133 Generate code for the H8S.
8134 .IP "\fB\-mn\fR" 4
8135 .IX Item "-mn"
8136 Generate code for the H8S and H8/300H in the normal mode.  This switch
8137 must be used either with \fB\-mh\fR or \fB\-ms\fR.
8138 .IP "\fB\-ms2600\fR" 4
8139 .IX Item "-ms2600"
8140 Generate code for the H8S/2600.  This switch must be used with \fB\-ms\fR.
8141 .IP "\fB\-mint32\fR" 4
8142 .IX Item "-mint32"
8143 Make \f(CW\*(C`int\*(C'\fR data 32 bits by default.
8144 .IP "\fB\-malign\-300\fR" 4
8145 .IX Item "-malign-300"
8146 On the H8/300H and H8S, use the same alignment rules as for the H8/300.
8147 The default for the H8/300H and H8S is to align longs and floats on 4
8148 byte boundaries.
8149 \&\fB\-malign\-300\fR causes them to be aligned on 2 byte boundaries.
8150 This option has no effect on the H8/300.
8151 .PP
8152 \fI\s-1HPPA\s0 Options\fR
8153 .IX Subsection "HPPA Options"
8154 .PP
8155 These \fB\-m\fR options are defined for the \s-1HPPA\s0 family of computers:
8156 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
8157 .IX Item "-march=architecture-type"
8158 Generate code for the specified architecture.  The choices for
8159 \&\fIarchitecture-type\fR are \fB1.0\fR for \s-1PA\s0 1.0, \fB1.1\fR for \s-1PA\s0
8160 1.1, and \fB2.0\fR for \s-1PA\s0 2.0 processors.  Refer to
8161 \&\fI/usr/lib/sched.models\fR on an HP-UX system to determine the proper
8162 architecture option for your machine.  Code compiled for lower numbered
8163 architectures will run on higher numbered architectures, but not the
8164 other way around.
8165 .IP "\fB\-mpa\-risc\-1\-0\fR" 4
8166 .IX Item "-mpa-risc-1-0"
8167 .PD 0
8168 .IP "\fB\-mpa\-risc\-1\-1\fR" 4
8169 .IX Item "-mpa-risc-1-1"
8170 .IP "\fB\-mpa\-risc\-2\-0\fR" 4
8171 .IX Item "-mpa-risc-2-0"
8172 .PD
8173 Synonyms for \fB\-march=1.0\fR, \fB\-march=1.1\fR, and \fB\-march=2.0\fR respectively.
8174 .IP "\fB\-mbig\-switch\fR" 4
8175 .IX Item "-mbig-switch"
8176 Generate code suitable for big switch tables.  Use this option only if
8177 the assembler/linker complain about out of range branches within a switch
8178 table.
8179 .IP "\fB\-mjump\-in\-delay\fR" 4
8180 .IX Item "-mjump-in-delay"
8181 Fill delay slots of function calls with unconditional jump instructions
8182 by modifying the return pointer for the function call to be the target
8183 of the conditional jump.
8184 .IP "\fB\-mdisable\-fpregs\fR" 4
8185 .IX Item "-mdisable-fpregs"
8186 Prevent floating point registers from being used in any manner.  This is
8187 necessary for compiling kernels which perform lazy context switching of
8188 floating point registers.  If you use this option and attempt to perform
8189 floating point operations, the compiler will abort.
8190 .IP "\fB\-mdisable\-indexing\fR" 4
8191 .IX Item "-mdisable-indexing"
8192 Prevent the compiler from using indexing address modes.  This avoids some
8193 rather obscure problems when compiling \s-1MIG\s0 generated code under \s-1MACH\s0.
8194 .IP "\fB\-mno\-space\-regs\fR" 4
8195 .IX Item "-mno-space-regs"
8196 Generate code that assumes the target has no space registers.  This allows
8197 \&\s-1GCC\s0 to generate faster indirect calls and use unscaled index address modes.
8198 .Sp
8199 Such code is suitable for level 0 \s-1PA\s0 systems and kernels.
8200 .IP "\fB\-mfast\-indirect\-calls\fR" 4
8201 .IX Item "-mfast-indirect-calls"
8202 Generate code that assumes calls never cross space boundaries.  This
8203 allows \s-1GCC\s0 to emit code which performs faster indirect calls.
8204 .Sp
8205 This option will not work in the presence of shared libraries or nested
8206 functions.
8207 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
8208 .IX Item "-mfixed-range=register-range"
8209 Generate code treating the given register range as fixed registers.
8210 A fixed register is one that the register allocator can not use.  This is
8211 useful when compiling kernel code.  A register range is specified as
8212 two registers separated by a dash.  Multiple register ranges can be
8213 specified separated by a comma.
8214 .IP "\fB\-mlong\-load\-store\fR" 4
8215 .IX Item "-mlong-load-store"
8216 Generate 3\-instruction load and store sequences as sometimes required by
8217 the HP-UX 10 linker.  This is equivalent to the \fB+k\fR option to
8218 the \s-1HP\s0 compilers.
8219 .IP "\fB\-mportable\-runtime\fR" 4
8220 .IX Item "-mportable-runtime"
8221 Use the portable calling conventions proposed by \s-1HP\s0 for \s-1ELF\s0 systems.
8222 .IP "\fB\-mgas\fR" 4
8223 .IX Item "-mgas"
8224 Enable the use of assembler directives only \s-1GAS\s0 understands.
8225 .IP "\fB\-mschedule=\fR\fIcpu-type\fR" 4
8226 .IX Item "-mschedule=cpu-type"
8227 Schedule code according to the constraints for the machine type
8228 \&\fIcpu-type\fR.  The choices for \fIcpu-type\fR are \fB700\fR
8229 \&\fB7100\fR, \fB7100LC\fR, \fB7200\fR, \fB7300\fR and \fB8000\fR.  Refer
8230 to \fI/usr/lib/sched.models\fR on an HP-UX system to determine the
8231 proper scheduling option for your machine.  The default scheduling is
8232 \&\fB8000\fR.
8233 .IP "\fB\-mlinker\-opt\fR" 4
8234 .IX Item "-mlinker-opt"
8235 Enable the optimization pass in the HP-UX linker.  Note this makes symbolic
8236 debugging impossible.  It also triggers a bug in the HP-UX 8 and HP-UX 9
8237 linkers in which they give bogus error messages when linking some programs.
8238 .IP "\fB\-msoft\-float\fR" 4
8239 .IX Item "-msoft-float"
8240 Generate output containing library calls for floating point.
8241 \&\fBWarning:\fR the requisite libraries are not available for all \s-1HPPA\s0
8242 targets.  Normally the facilities of the machine's usual C compiler are
8243 used, but this cannot be done directly in cross\-compilation.  You must make
8244 your own arrangements to provide suitable library functions for
8245 cross\-compilation.  The embedded target \fBhppa1.1\-*\-pro\fR
8246 does provide software floating point support.
8247 .Sp
8248 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
8249 therefore, it is only useful if you compile \fIall\fR of a program with
8250 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
8251 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
8252 this to work.
8253 .IP "\fB\-msio\fR" 4
8254 .IX Item "-msio"
8255 Generate the predefine, \f(CW\*(C`_SIO\*(C'\fR, for server \s-1IO\s0.  The default is
8256 \&\fB\-mwsio\fR.  This generates the predefines, \f(CW\*(C`_\|_hp9000s700\*(C'\fR,
8257 \&\f(CW\*(C`_\|_hp9000s700_\|_\*(C'\fR and \f(CW\*(C`_WSIO\*(C'\fR, for workstation \s-1IO\s0.  These
8258 options are available under HP-UX and \s-1HI\-UX\s0.
8259 .IP "\fB\-mgnu\-ld\fR" 4
8260 .IX Item "-mgnu-ld"
8261 Use \s-1GNU\s0 ld specific options.  This passes \fB\-shared\fR to ld when
8262 building a shared library.  It is the default when \s-1GCC\s0 is configured,
8263 explicitly or implicitly, with the \s-1GNU\s0 linker.  This option does not
8264 have any affect on which ld is called, it only changes what parameters
8265 are passed to that ld.  The ld that is called is determined by the
8266 \&\fB\-\-with\-ld\fR configure option, \s-1GCC\s0's program search path, and
8267 finally by the user's \fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed
8268 using \fBwhich `gcc \-print\-prog\-name=ld`\fR.  This option is only available
8269 on the 64 bit HP-UX \s-1GCC\s0, i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
8270 .IP "\fB\-mhp\-ld\fR" 4
8271 .IX Item "-mhp-ld"
8272 Use \s-1HP\s0 ld specific options.  This passes \fB\-b\fR to ld when building
8273 a shared library and passes \fB+Accept TypeMismatch\fR to ld on all
8274 links.  It is the default when \s-1GCC\s0 is configured, explicitly or
8275 implicitly, with the \s-1HP\s0 linker.  This option does not have any affect on
8276 which ld is called, it only changes what parameters are passed to that
8277 ld.  The ld that is called is determined by the \fB\-\-with\-ld\fR
8278 configure option, \s-1GCC\s0's program search path, and finally by the user's
8279 \&\fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed using \fBwhich
8280 `gcc \-print\-prog\-name=ld`\fR.  This option is only available on the 64 bit
8281 HP-UX \s-1GCC\s0, i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
8282 .IP "\fB\-mlong\-calls\fR" 4
8283 .IX Item "-mlong-calls"
8284 Generate code that uses long call sequences.  This ensures that a call
8285 is always able to reach linker generated stubs.  The default is to generate
8286 long calls only when the distance from the call site to the beginning
8287 of the function or translation unit, as the case may be, exceeds a
8288 predefined limit set by the branch type being used.  The limits for
8289 normal calls are 7,600,000 and 240,000 bytes, respectively for the
8290 \&\s-1PA\s0 2.0 and \s-1PA\s0 1.X architectures.  Sibcalls are always limited at
8291 240,000 bytes.
8292 .Sp
8293 Distances are measured from the beginning of functions when using the
8294 \&\fB\-ffunction\-sections\fR option, or when using the \fB\-mgas\fR
8295 and \fB\-mno\-portable\-runtime\fR options together under HP-UX with
8296 the \s-1SOM\s0 linker.
8297 .Sp
8298 It is normally not desirable to use this option as it will degrade
8299 performance.  However, it may be useful in large applications,
8300 particularly when partial linking is used to build the application.
8301 .Sp
8302 The types of long calls used depends on the capabilities of the
8303 assembler and linker, and the type of code being generated.  The
8304 impact on systems that support long absolute calls, and long pic
8305 symbol-difference or pc-relative calls should be relatively small.
8306 However, an indirect call is used on 32\-bit \s-1ELF\s0 systems in pic code
8307 and it is quite long.
8308 .IP "\fB\-munix=\fR\fIunix-std\fR" 4
8309 .IX Item "-munix=unix-std"
8310 Generate compiler predefines and select a startfile for the specified
8311 \&\s-1UNIX\s0 standard.  The choices for \fIunix-std\fR are \fB93\fR, \fB95\fR
8312 and \fB98\fR.  \fB93\fR is supported on all HP-UX versions.  \fB95\fR
8313 is available on HP-UX 10.10 and later.  \fB98\fR is available on HP-UX
8314 11.11 and later.  The default values are \fB93\fR for HP-UX 10.00,
8315 \&\fB95\fR for HP-UX 10.10 though to 11.00, and \fB98\fR for HP-UX 11.11
8316 and later.
8317 .Sp
8318 \&\fB\-munix=93\fR provides the same predefines as \s-1GCC\s0 3.3 and 3.4.
8319 \&\fB\-munix=95\fR provides additional predefines for \f(CW\*(C`XOPEN_UNIX\*(C'\fR
8320 and \f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, and the startfile \fIunix95.o\fR.
8321 \&\fB\-munix=98\fR provides additional predefines for \f(CW\*(C`_XOPEN_UNIX\*(C'\fR,
8322 \&\f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, \f(CW\*(C`_INCLUDE_\|_STDC_A1_SOURCE\*(C'\fR and
8323 \&\f(CW\*(C`_INCLUDE_XOPEN_SOURCE_500\*(C'\fR, and the startfile \fIunix98.o\fR.
8324 .Sp
8325 It is \fIimportant\fR to note that this option changes the interfaces
8326 for various library routines.  It also affects the operational behavior
8327 of the C library.  Thus, \fIextreme\fR care is needed in using this
8328 option.
8329 .Sp
8330 Library code that is intended to operate with more than one \s-1UNIX\s0
8331 standard must test, set and restore the variable \fI_\|_xpg4_extended_mask\fR
8332 as appropriate.  Most \s-1GNU\s0 software doesn't provide this capability.
8333 .IP "\fB\-nolibdld\fR" 4
8334 .IX Item "-nolibdld"
8335 Suppress the generation of link options to search libdld.sl when the
8336 \&\fB\-static\fR option is specified on HP-UX 10 and later.
8337 .IP "\fB\-static\fR" 4
8338 .IX Item "-static"
8339 The HP-UX implementation of setlocale in libc has a dependency on
8340 libdld.sl.  There isn't an archive version of libdld.sl.  Thus,
8341 when the \fB\-static\fR option is specified, special link options
8342 are needed to resolve this dependency.
8343 .Sp
8344 On HP-UX 10 and later, the \s-1GCC\s0 driver adds the necessary options to
8345 link with libdld.sl when the \fB\-static\fR option is specified.
8346 This causes the resulting binary to be dynamic.  On the 64\-bit port,
8347 the linkers generate dynamic binaries by default in any case.  The
8348 \&\fB\-nolibdld\fR option can be used to prevent the \s-1GCC\s0 driver from
8349 adding these link options.
8350 .IP "\fB\-threads\fR" 4
8351 .IX Item "-threads"
8352 Add support for multithreading with the \fIdce thread\fR library
8353 under \s-1HP\-UX\s0.  This option sets flags for both the preprocessor and
8354 linker.
8355 .PP
8356 \fIIntel 386 and \s-1AMD\s0 x86\-64 Options\fR
8357 .IX Subsection "Intel 386 and AMD x86-64 Options"
8358 .PP
8359 These \fB\-m\fR options are defined for the i386 and x86\-64 family of
8360 computers:
8361 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
8362 .IX Item "-mtune=cpu-type"
8363 Tune to \fIcpu-type\fR everything applicable about the generated code, except
8364 for the \s-1ABI\s0 and the set of available instructions.  The choices for
8365 \&\fIcpu-type\fR are:
8366 .RS 4
8367 .IP "\fIgeneric\fR" 4
8368 .IX Item "generic"
8369 Produce code optimized for the most common \s-1IA32/AMD64/EM64T\s0 processors.
8370 If you know the \s-1CPU\s0 on which your code will run, then you should use
8371 the corresponding \fB\-mtune\fR option instead of
8372 \&\fB\-mtune=generic\fR.  But, if you do not know exactly what \s-1CPU\s0 users
8373 of your application will have, then you should use this option.
8374 .Sp
8375 As new processors are deployed in the marketplace, the behavior of this
8376 option will change.  Therefore, if you upgrade to a newer version of
8377 \&\s-1GCC\s0, the code generated option will change to reflect the processors
8378 that were most common when that version of \s-1GCC\s0 was released.
8379 .Sp
8380 There is no \fB\-march=generic\fR option because \fB\-march\fR
8381 indicates the instruction set the compiler can use, and there is no
8382 generic instruction set applicable to all processors.  In contrast,
8383 \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
8384 processors) for which the code is optimized.
8385 .IP "\fInative\fR" 4
8386 .IX Item "native"
8387 This selects the \s-1CPU\s0 to tune for at compilation time by determining
8388 the processor type of the compiling machine.  Using \fB\-mtune=native\fR
8389 will produce code optimized for the local machine under the constraints
8390 of the selected instruction set.  Using \fB\-march=native\fR will
8391 enable all instruction subsets supported by the local machine (hence
8392 the result might not run on different machines).
8393 .IP "\fIi386\fR" 4
8394 .IX Item "i386"
8395 Original Intel's i386 \s-1CPU\s0.
8396 .IP "\fIi486\fR" 4
8397 .IX Item "i486"
8398 Intel's i486 \s-1CPU\s0.  (No scheduling is implemented for this chip.)
8399 .IP "\fIi586, pentium\fR" 4
8400 .IX Item "i586, pentium"
8401 Intel Pentium \s-1CPU\s0 with no \s-1MMX\s0 support.
8402 .IP "\fIpentium-mmx\fR" 4
8403 .IX Item "pentium-mmx"
8404 Intel PentiumMMX \s-1CPU\s0 based on Pentium core with \s-1MMX\s0 instruction set support.
8405 .IP "\fIpentiumpro\fR" 4
8406 .IX Item "pentiumpro"
8407 Intel PentiumPro \s-1CPU\s0.
8408 .IP "\fIi686\fR" 4
8409 .IX Item "i686"
8410 Same as \f(CW\*(C`generic\*(C'\fR, but when used as \f(CW\*(C`march\*(C'\fR option, PentiumPro
8411 instruction set will be used, so the code will run on all i686 family chips.
8412 .IP "\fIpentium2\fR" 4
8413 .IX Item "pentium2"
8414 Intel Pentium2 \s-1CPU\s0 based on PentiumPro core with \s-1MMX\s0 instruction set support.
8415 .IP "\fIpentium3, pentium3m\fR" 4
8416 .IX Item "pentium3, pentium3m"
8417 Intel Pentium3 \s-1CPU\s0 based on PentiumPro core with \s-1MMX\s0 and \s-1SSE\s0 instruction set
8418 support.
8419 .IP "\fIpentium-m\fR" 4
8420 .IX Item "pentium-m"
8421 Low power version of Intel Pentium3 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set
8422 support.  Used by Centrino notebooks.
8423 .IP "\fIpentium4, pentium4m\fR" 4
8424 .IX Item "pentium4, pentium4m"
8425 Intel Pentium4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set support.
8426 .IP "\fIprescott\fR" 4
8427 .IX Item "prescott"
8428 Improved version of Intel Pentium4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0 and \s-1SSE3\s0 instruction
8429 set support.
8430 .IP "\fInocona\fR" 4
8431 .IX Item "nocona"
8432 Improved version of Intel Pentium4 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0,
8433 \&\s-1SSE2\s0 and \s-1SSE3\s0 instruction set support.
8434 .IP "\fIcore2\fR" 4
8435 .IX Item "core2"
8436 Intel Core2 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0 and \s-1SSSE3\s0
8437 instruction set support.
8438 .IP "\fIk6\fR" 4
8439 .IX Item "k6"
8440 \&\s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 instruction set support.
8441 .IP "\fIk6\-2, k6\-3\fR" 4
8442 .IX Item "k6-2, k6-3"
8443 Improved versions of \s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 and 3dNOW! instruction set support.
8444 .IP "\fIathlon, athlon-tbird\fR" 4
8445 .IX Item "athlon, athlon-tbird"
8446 \&\s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3dNOW!, enhanced 3dNOW! and \s-1SSE\s0 prefetch instructions
8447 support.
8448 .IP "\fIathlon\-4, athlon\-xp, athlon-mp\fR" 4
8449 .IX Item "athlon-4, athlon-xp, athlon-mp"
8450 Improved \s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3dNOW!, enhanced 3dNOW! and full \s-1SSE\s0
8451 instruction set support.
8452 .IP "\fIk8, opteron, athlon64, athlon-fx\fR" 4
8453 .IX Item "k8, opteron, athlon64, athlon-fx"
8454 \&\s-1AMD\s0 K8 core based CPUs with x86\-64 instruction set support.  (This supersets
8455 \&\s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, 3dNOW!, enhanced 3dNOW! and 64\-bit instruction set extensions.)
8456 .IP "\fIk8-sse3, opteron-sse3, athlon64-sse3\fR" 4
8457 .IX Item "k8-sse3, opteron-sse3, athlon64-sse3"
8458 Improved versions of k8, opteron and athlon64 with \s-1SSE3\s0 instruction set support.
8459 .IP "\fIwinchip\-c6\fR" 4
8460 .IX Item "winchip-c6"
8461 \&\s-1IDT\s0 Winchip C6 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 instruction
8462 set support.
8463 .IP "\fIwinchip2\fR" 4
8464 .IX Item "winchip2"
8465 \&\s-1IDT\s0 Winchip2 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 and 3dNOW!
8466 instruction set support.
8467 .IP "\fIc3\fR" 4
8468 .IX Item "c3"
8469 Via C3 \s-1CPU\s0 with \s-1MMX\s0 and 3dNOW! instruction set support.  (No scheduling is
8470 implemented for this chip.)
8471 .IP "\fIc3\-2\fR" 4
8472 .IX Item "c3-2"
8473 Via C3\-2 \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.  (No scheduling is
8474 implemented for this chip.)
8475 .IP "\fIgeode\fR" 4
8476 .IX Item "geode"
8477 Embedded AMD \s-1CPU\s0 with \s-1MMX\s0 and 3dNOW! instruction set support.
8478 .RE
8479 .RS 4
8480 .Sp
8481 While picking a specific \fIcpu-type\fR will schedule things appropriately
8482 for that particular chip, the compiler will not generate any code that
8483 does not run on the i386 without the \fB\-march=\fR\fIcpu-type\fR option
8484 being used.
8485 .RE
8486 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
8487 .IX Item "-march=cpu-type"
8488 Generate instructions for the machine type \fIcpu-type\fR.  The choices
8489 for \fIcpu-type\fR are the same as for \fB\-mtune\fR.  Moreover,
8490 specifying \fB\-march=\fR\fIcpu-type\fR implies \fB\-mtune=\fR\fIcpu-type\fR.
8491 .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
8492 .IX Item "-mcpu=cpu-type"
8493 A deprecated synonym for \fB\-mtune\fR.
8494 .IP "\fB\-m386\fR" 4
8495 .IX Item "-m386"
8496 .PD 0
8497 .IP "\fB\-m486\fR" 4
8498 .IX Item "-m486"
8499 .IP "\fB\-mpentium\fR" 4
8500 .IX Item "-mpentium"
8501 .IP "\fB\-mpentiumpro\fR" 4
8502 .IX Item "-mpentiumpro"
8503 .PD
8504 These options are synonyms for \fB\-mtune=i386\fR, \fB\-mtune=i486\fR,
8505 \&\fB\-mtune=pentium\fR, and \fB\-mtune=pentiumpro\fR respectively.
8506 These synonyms are deprecated.
8507 .IP "\fB\-mfpmath=\fR\fIunit\fR" 4
8508 .IX Item "-mfpmath=unit"
8509 Generate floating point arithmetics for selected unit \fIunit\fR.  The choices
8510 for \fIunit\fR are:
8511 .RS 4
8512 .IP "\fB387\fR" 4
8513 .IX Item "387"
8514 Use the standard 387 floating point coprocessor present majority of chips and
8515 emulated otherwise.  Code compiled with this option will run almost everywhere.
8516 The temporary results are computed in 80bit precision instead of precision
8517 specified by the type resulting in slightly different results compared to most
8518 of other chips.  See \fB\-ffloat\-store\fR for more detailed description.
8519 .Sp
8520 This is the default choice for i386 compiler.
8521 .IP "\fBsse\fR" 4
8522 .IX Item "sse"
8523 Use scalar floating point instructions present in the \s-1SSE\s0 instruction set.
8524 This instruction set is supported by Pentium3 and newer chips, in the \s-1AMD\s0 line
8525 by Athlon\-4, Athlon-xp and Athlon-mp chips.  The earlier version of \s-1SSE\s0
8526 instruction set supports only single precision arithmetics, thus the double and
8527 extended precision arithmetics is still done using 387.  Later version, present
8528 only in Pentium4 and the future \s-1AMD\s0 x86\-64 chips supports double precision
8529 arithmetics too.
8530 .Sp
8531 For the i386 compiler, you need to use \fB\-march=\fR\fIcpu-type\fR, \fB\-msse\fR
8532 or \fB\-msse2\fR switches to enable \s-1SSE\s0 extensions and make this option
8533 effective.  For the x86\-64 compiler, these extensions are enabled by default.
8534 .Sp
8535 The resulting code should be considerably faster in the majority of cases and avoid
8536 the numerical instability problems of 387 code, but may break some existing
8537 code that expects temporaries to be 80bit.
8538 .Sp
8539 This is the default choice for the x86\-64 compiler.
8540 .IP "\fBsse,387\fR" 4
8541 .IX Item "sse,387"
8542 Attempt to utilize both instruction sets at once.  This effectively double the
8543 amount of available registers and on chips with separate execution units for
8544 387 and \s-1SSE\s0 the execution resources too.  Use this option with care, as it is
8545 still experimental, because the \s-1GCC\s0 register allocator does not model separate
8546 functional units well resulting in instable performance.
8547 .RE
8548 .RS 4
8549 .RE
8550 .IP "\fB\-masm=\fR\fIdialect\fR" 4
8551 .IX Item "-masm=dialect"
8552 Output asm instructions using selected \fIdialect\fR.  Supported
8553 choices are \fBintel\fR or \fBatt\fR (the default one).  Darwin does
8554 not support \fBintel\fR.
8555 .IP "\fB\-mieee\-fp\fR" 4
8556 .IX Item "-mieee-fp"
8557 .PD 0
8558 .IP "\fB\-mno\-ieee\-fp\fR" 4
8559 .IX Item "-mno-ieee-fp"
8560 .PD
8561 Control whether or not the compiler uses \s-1IEEE\s0 floating point
8562 comparisons.  These handle correctly the case where the result of a
8563 comparison is unordered.
8564 .IP "\fB\-msoft\-float\fR" 4
8565 .IX Item "-msoft-float"
8566 Generate output containing library calls for floating point.
8567 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC\s0.
8568 Normally the facilities of the machine's usual C compiler are used, but
8569 this can't be done directly in cross\-compilation.  You must make your
8570 own arrangements to provide suitable library functions for
8571 cross\-compilation.
8572 .Sp
8573 On machines where a function returns floating point results in the 80387
8574 register stack, some floating point opcodes may be emitted even if
8575 \&\fB\-msoft\-float\fR is used.
8576 .IP "\fB\-mno\-fp\-ret\-in\-387\fR" 4
8577 .IX Item "-mno-fp-ret-in-387"
8578 Do not use the \s-1FPU\s0 registers for return values of functions.
8579 .Sp
8580 The usual calling convention has functions return values of types
8581 \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR in an \s-1FPU\s0 register, even if there
8582 is no \s-1FPU\s0.  The idea is that the operating system should emulate
8583 an \s-1FPU\s0.
8584 .Sp
8585 The option \fB\-mno\-fp\-ret\-in\-387\fR causes such values to be returned
8586 in ordinary \s-1CPU\s0 registers instead.
8587 .IP "\fB\-mno\-fancy\-math\-387\fR" 4
8588 .IX Item "-mno-fancy-math-387"
8589 Some 387 emulators do not support the \f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR and
8590 \&\f(CW\*(C`sqrt\*(C'\fR instructions for the 387.  Specify this option to avoid
8591 generating those instructions.  This option is the default on FreeBSD,
8592 OpenBSD and NetBSD.  This option is overridden when \fB\-march\fR
8593 indicates that the target cpu will always have an \s-1FPU\s0 and so the
8594 instruction will not need emulation.  As of revision 2.6.1, these
8595 instructions are not generated unless you also use the
8596 \&\fB\-funsafe\-math\-optimizations\fR switch.
8597 .IP "\fB\-malign\-double\fR" 4
8598 .IX Item "-malign-double"
8599 .PD 0
8600 .IP "\fB\-mno\-align\-double\fR" 4
8601 .IX Item "-mno-align-double"
8602 .PD
8603 Control whether \s-1GCC\s0 aligns \f(CW\*(C`double\*(C'\fR, \f(CW\*(C`long double\*(C'\fR, and
8604 \&\f(CW\*(C`long long\*(C'\fR variables on a two word boundary or a one word
8605 boundary.  Aligning \f(CW\*(C`double\*(C'\fR variables on a two word boundary will
8606 produce code that runs somewhat faster on a \fBPentium\fR at the
8607 expense of more memory.
8608 .Sp
8609 On x86\-64, \fB\-malign\-double\fR is enabled by default.
8610 .Sp
8611 \&\fBWarning:\fR if you use the \fB\-malign\-double\fR switch,
8612 structures containing the above types will be aligned differently than
8613 the published application binary interface specifications for the 386
8614 and will not be binary compatible with structures in code compiled
8615 without that switch.
8616 .IP "\fB\-m96bit\-long\-double\fR" 4
8617 .IX Item "-m96bit-long-double"
8618 .PD 0
8619 .IP "\fB\-m128bit\-long\-double\fR" 4
8620 .IX Item "-m128bit-long-double"
8621 .PD
8622 These switches control the size of \f(CW\*(C`long double\*(C'\fR type.  The i386
8623 application binary interface specifies the size to be 96 bits,
8624 so \fB\-m96bit\-long\-double\fR is the default in 32 bit mode.
8625 .Sp
8626 Modern architectures (Pentium and newer) would prefer \f(CW\*(C`long double\*(C'\fR
8627 to be aligned to an 8 or 16 byte boundary.  In arrays or structures
8628 conforming to the \s-1ABI\s0, this would not be possible.  So specifying a
8629 \&\fB\-m128bit\-long\-double\fR will align \f(CW\*(C`long double\*(C'\fR
8630 to a 16 byte boundary by padding the \f(CW\*(C`long double\*(C'\fR with an additional
8631 32 bit zero.
8632 .Sp
8633 In the x86\-64 compiler, \fB\-m128bit\-long\-double\fR is the default choice as
8634 its \s-1ABI\s0 specifies that \f(CW\*(C`long double\*(C'\fR is to be aligned on 16 byte boundary.
8635 .Sp
8636 Notice that neither of these options enable any extra precision over the x87
8637 standard of 80 bits for a \f(CW\*(C`long double\*(C'\fR.
8638 .Sp
8639 \&\fBWarning:\fR if you override the default value for your target \s-1ABI\s0, the
8640 structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables will change
8641 their size as well as function calling convention for function taking
8642 \&\f(CW\*(C`long double\*(C'\fR will be modified.  Hence they will not be binary
8643 compatible with arrays or structures in code compiled without that switch.
8644 .IP "\fB\-mmlarge\-data\-threshold=\fR\fInumber\fR" 4
8645 .IX Item "-mmlarge-data-threshold=number"
8646 When \fB\-mcmodel=medium\fR is specified, the data greater than
8647 \&\fIthreshold\fR are placed in large data section.  This value must be the
8648 same across all object linked into the binary and defaults to 65535.
8649 .IP "\fB\-msvr3\-shlib\fR" 4
8650 .IX Item "-msvr3-shlib"
8651 .PD 0
8652 .IP "\fB\-mno\-svr3\-shlib\fR" 4
8653 .IX Item "-mno-svr3-shlib"
8654 .PD
8655 Control whether \s-1GCC\s0 places uninitialized local variables into the
8656 \&\f(CW\*(C`bss\*(C'\fR or \f(CW\*(C`data\*(C'\fR segments.  \fB\-msvr3\-shlib\fR places them
8657 into \f(CW\*(C`bss\*(C'\fR.  These options are meaningful only on System V Release 3.
8658 .IP "\fB\-mrtd\fR" 4
8659 .IX Item "-mrtd"
8660 Use a different function-calling convention, in which functions that
8661 take a fixed number of arguments return with the \f(CW\*(C`ret\*(C'\fR \fInum\fR
8662 instruction, which pops their arguments while returning.  This saves one
8663 instruction in the caller since there is no need to pop the arguments
8664 there.
8665 .Sp
8666 You can specify that an individual function is called with this calling
8667 sequence with the function attribute \fBstdcall\fR.  You can also
8668 override the \fB\-mrtd\fR option by using the function attribute
8669 \&\fBcdecl\fR.  
8670 .Sp
8671 \&\fBWarning:\fR this calling convention is incompatible with the one
8672 normally used on Unix, so you cannot use it if you need to call
8673 libraries compiled with the Unix compiler.
8674 .Sp
8675 Also, you must provide function prototypes for all functions that
8676 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
8677 otherwise incorrect code will be generated for calls to those
8678 functions.
8679 .Sp
8680 In addition, seriously incorrect code will result if you call a
8681 function with too many arguments.  (Normally, extra arguments are
8682 harmlessly ignored.)
8683 .IP "\fB\-mregparm=\fR\fInum\fR" 4
8684 .IX Item "-mregparm=num"
8685 Control how many registers are used to pass integer arguments.  By
8686 default, no registers are used to pass arguments, and at most 3
8687 registers can be used.  You can control this behavior for a specific
8688 function by using the function attribute \fBregparm\fR.
8689 .Sp
8690 \&\fBWarning:\fR if you use this switch, and
8691 \&\fInum\fR is nonzero, then you must build all modules with the same
8692 value, including any libraries.  This includes the system libraries and
8693 startup modules.
8694 .IP "\fB\-msseregparm\fR" 4
8695 .IX Item "-msseregparm"
8696 Use \s-1SSE\s0 register passing conventions for float and double arguments
8697 and return values.  You can control this behavior for a specific
8698 function by using the function attribute \fBsseregparm\fR.
8699 .Sp
8700 \&\fBWarning:\fR if you use this switch then you must build all
8701 modules with the same value, including any libraries.  This includes
8702 the system libraries and startup modules.
8703 .IP "\fB\-mstackrealign\fR" 4
8704 .IX Item "-mstackrealign"
8705 Realign the stack at entry.  On the Intel x86, the
8706 \&\fB\-mstackrealign\fR option will generate an alternate prologue and
8707 epilogue that realigns the runtime stack.  This supports mixing legacy
8708 codes that keep a 4\-byte aligned stack with modern codes that keep a
8709 16\-byte stack for \s-1SSE\s0 compatibility.  The alternate prologue and
8710 epilogue are slower and bigger than the regular ones, and the
8711 alternate prologue requires an extra scratch register; this lowers the
8712 number of registers available if used in conjunction with the
8713 \&\f(CW\*(C`regparm\*(C'\fR attribute.  The \fB\-mstackrealign\fR option is
8714 incompatible with the nested function prologue; this is considered a
8715 hard error.  See also the attribute \f(CW\*(C`force_align_arg_pointer\*(C'\fR,
8716 applicable to individual functions.
8717 .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
8718 .IX Item "-mpreferred-stack-boundary=num"
8719 Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
8720 byte boundary.  If \fB\-mpreferred\-stack\-boundary\fR is not specified,
8721 the default is 4 (16 bytes or 128 bits).
8722 .Sp
8723 On Pentium and PentiumPro, \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long double\*(C'\fR values
8724 should be aligned to an 8 byte boundary (see \fB\-malign\-double\fR) or
8725 suffer significant run time performance penalties.  On Pentium \s-1III\s0, the
8726 Streaming \s-1SIMD\s0 Extension (\s-1SSE\s0) data type \f(CW\*(C`_\|_m128\*(C'\fR may not work
8727 properly if it is not 16 byte aligned.
8728 .Sp
8729 To ensure proper alignment of this values on the stack, the stack boundary
8730 must be as aligned as that required by any value stored on the stack.
8731 Further, every function must be generated such that it keeps the stack
8732 aligned.  Thus calling a function compiled with a higher preferred
8733 stack boundary from a function compiled with a lower preferred stack
8734 boundary will most likely misalign the stack.  It is recommended that
8735 libraries that use callbacks always use the default setting.
8736 .Sp
8737 This extra alignment does consume extra stack space, and generally
8738 increases code size.  Code that is sensitive to stack space usage, such
8739 as embedded systems and operating system kernels, may want to reduce the
8740 preferred alignment to \fB\-mpreferred\-stack\-boundary=2\fR.
8741 .IP "\fB\-mmmx\fR" 4
8742 .IX Item "-mmmx"
8743 .PD 0
8744 .IP "\fB\-mno\-mmx\fR" 4
8745 .IX Item "-mno-mmx"
8746 .IP "\fB\-msse\fR" 4
8747 .IX Item "-msse"
8748 .IP "\fB\-mno\-sse\fR" 4
8749 .IX Item "-mno-sse"
8750 .IP "\fB\-msse2\fR" 4
8751 .IX Item "-msse2"
8752 .IP "\fB\-mno\-sse2\fR" 4
8753 .IX Item "-mno-sse2"
8754 .IP "\fB\-msse3\fR" 4
8755 .IX Item "-msse3"
8756 .IP "\fB\-mno\-sse3\fR" 4
8757 .IX Item "-mno-sse3"
8758 .IP "\fB\-mssse3\fR" 4
8759 .IX Item "-mssse3"
8760 .IP "\fB\-mno\-ssse3\fR" 4
8761 .IX Item "-mno-ssse3"
8762 .IP "\fB\-m3dnow\fR" 4
8763 .IX Item "-m3dnow"
8764 .IP "\fB\-mno\-3dnow\fR" 4
8765 .IX Item "-mno-3dnow"
8766 .PD
8767 These switches enable or disable the use of instructions in the \s-1MMX\s0,
8768 \&\s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0, \s-1SSSE3\s0 or 3DNow! extended instruction sets.
8769 These extensions are also available as built-in functions: see
8770 \fBX86 Built-in Functions\fR, for details of the functions enabled and
8771 disabled by these switches.
8772 .Sp
8773 To have \s-1SSE/SSE2\s0 instructions generated automatically from floating-point
8774 code (as opposed to 387 instructions), see \fB\-mfpmath=sse\fR.
8775 .Sp
8776 These options will enable \s-1GCC\s0 to use these extended instructions in
8777 generated code, even without \fB\-mfpmath=sse\fR.  Applications which
8778 perform runtime \s-1CPU\s0 detection must compile separate files for each
8779 supported architecture, using the appropriate flags.  In particular,
8780 the file containing the \s-1CPU\s0 detection code should be compiled without
8781 these options.
8782 .IP "\fB\-mpush\-args\fR" 4
8783 .IX Item "-mpush-args"
8784 .PD 0
8785 .IP "\fB\-mno\-push\-args\fR" 4
8786 .IX Item "-mno-push-args"
8787 .PD
8788 Use \s-1PUSH\s0 operations to store outgoing parameters.  This method is shorter
8789 and usually equally fast as method using \s-1SUB/MOV\s0 operations and is enabled
8790 by default.  In some cases disabling it may improve performance because of
8791 improved scheduling and reduced dependencies.
8792 .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
8793 .IX Item "-maccumulate-outgoing-args"
8794 If enabled, the maximum amount of space required for outgoing arguments will be
8795 computed in the function prologue.  This is faster on most modern CPUs
8796 because of reduced dependencies, improved scheduling and reduced stack usage
8797 when preferred stack boundary is not equal to 2.  The drawback is a notable
8798 increase in code size.  This switch implies \fB\-mno\-push\-args\fR.
8799 .IP "\fB\-mthreads\fR" 4
8800 .IX Item "-mthreads"
8801 Support thread-safe exception handling on \fBMingw32\fR.  Code that relies
8802 on thread-safe exception handling must compile and link all code with the
8803 \&\fB\-mthreads\fR option.  When compiling, \fB\-mthreads\fR defines
8804 \&\fB\-D_MT\fR; when linking, it links in a special thread helper library
8805 \&\fB\-lmingwthrd\fR which cleans up per thread exception handling data.
8806 .IP "\fB\-mno\-align\-stringops\fR" 4
8807 .IX Item "-mno-align-stringops"
8808 Do not align destination of inlined string operations.  This switch reduces
8809 code size and improves performance in case the destination is already aligned,
8810 but \s-1GCC\s0 doesn't know about it.
8811 .IP "\fB\-minline\-all\-stringops\fR" 4
8812 .IX Item "-minline-all-stringops"
8813 By default \s-1GCC\s0 inlines string operations only when destination is known to be
8814 aligned at least to 4 byte boundary.  This enables more inlining, increase code
8815 size, but may improve performance of code that depends on fast memcpy, strlen
8816 and memset for short lengths.
8817 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
8818 .IX Item "-momit-leaf-frame-pointer"
8819 Don't keep the frame pointer in a register for leaf functions.  This
8820 avoids the instructions to save, set up and restore frame pointers and
8821 makes an extra register available in leaf functions.  The option
8822 \&\fB\-fomit\-frame\-pointer\fR removes the frame pointer for all functions
8823 which might make debugging harder.
8824 .IP "\fB\-mtls\-direct\-seg\-refs\fR" 4
8825 .IX Item "-mtls-direct-seg-refs"
8826 .PD 0
8827 .IP "\fB\-mno\-tls\-direct\-seg\-refs\fR" 4
8828 .IX Item "-mno-tls-direct-seg-refs"
8829 .PD
8830 Controls whether \s-1TLS\s0 variables may be accessed with offsets from the
8831 \&\s-1TLS\s0 segment register (\f(CW%gs\fR for 32\-bit, \f(CW%fs\fR for 64\-bit),
8832 or whether the thread base pointer must be added.  Whether or not this
8833 is legal depends on the operating system, and whether it maps the
8834 segment to cover the entire \s-1TLS\s0 area.
8835 .Sp
8836 For systems that use \s-1GNU\s0 libc, the default is on.
8837 .PP
8838 These \fB\-m\fR switches are supported in addition to the above
8839 on \s-1AMD\s0 x86\-64 processors in 64\-bit environments.
8840 .IP "\fB\-m32\fR" 4
8841 .IX Item "-m32"
8842 .PD 0
8843 .IP "\fB\-m64\fR" 4
8844 .IX Item "-m64"
8845 .PD
8846 Generate code for a 32\-bit or 64\-bit environment.
8847 The 32\-bit environment sets int, long and pointer to 32 bits and
8848 generates code that runs on any i386 system.
8849 The 64\-bit environment sets int to 32 bits and long and pointer
8850 to 64 bits and generates code for \s-1AMD\s0's x86\-64 architecture. For
8851 darwin only the \-m64 option turns off the \fB\-fno\-pic\fR and
8852 \&\fB\-mdynamic\-no\-pic\fR options.
8853 .IP "\fB\-mno\-red\-zone\fR" 4
8854 .IX Item "-mno-red-zone"
8855 Do not use a so called red zone for x86\-64 code.  The red zone is mandated
8856 by the x86\-64 \s-1ABI\s0, it is a 128\-byte area beyond the location of the
8857 stack pointer that will not be modified by signal or interrupt handlers
8858 and therefore can be used for temporary data without adjusting the stack
8859 pointer.  The flag \fB\-mno\-red\-zone\fR disables this red zone.
8860 .IP "\fB\-mcmodel=small\fR" 4
8861 .IX Item "-mcmodel=small"
8862 Generate code for the small code model: the program and its symbols must
8863 be linked in the lower 2 \s-1GB\s0 of the address space.  Pointers are 64 bits.
8864 Programs can be statically or dynamically linked.  This is the default
8865 code model.
8866 .IP "\fB\-mcmodel=kernel\fR" 4
8867 .IX Item "-mcmodel=kernel"
8868 Generate code for the kernel code model.  The kernel runs in the
8869 negative 2 \s-1GB\s0 of the address space.
8870 This model has to be used for Linux kernel code.
8871 .IP "\fB\-mcmodel=medium\fR" 4
8872 .IX Item "-mcmodel=medium"
8873 Generate code for the medium model: The program is linked in the lower 2
8874 \&\s-1GB\s0 of the address space but symbols can be located anywhere in the
8875 address space.  Programs can be statically or dynamically linked, but
8876 building of shared libraries are not supported with the medium model.
8877 .IP "\fB\-mcmodel=large\fR" 4
8878 .IX Item "-mcmodel=large"
8879 Generate code for the large model: This model makes no assumptions
8880 about addresses and sizes of sections.  Currently \s-1GCC\s0 does not implement
8881 this model.
8882 .PP
8883 \fI\s-1IA\-64\s0 Options\fR
8884 .IX Subsection "IA-64 Options"
8885 .PP
8886 These are the \fB\-m\fR options defined for the Intel \s-1IA\-64\s0 architecture.
8887 .IP "\fB\-mbig\-endian\fR" 4
8888 .IX Item "-mbig-endian"
8889 Generate code for a big endian target.  This is the default for \s-1HP\-UX\s0.
8890 .IP "\fB\-mlittle\-endian\fR" 4
8891 .IX Item "-mlittle-endian"
8892 Generate code for a little endian target.  This is the default for \s-1AIX5\s0
8893 and GNU/Linux.
8894 .IP "\fB\-mgnu\-as\fR" 4
8895 .IX Item "-mgnu-as"
8896 .PD 0
8897 .IP "\fB\-mno\-gnu\-as\fR" 4
8898 .IX Item "-mno-gnu-as"
8899 .PD
8900 Generate (or don't) code for the \s-1GNU\s0 assembler.  This is the default.
8901 .IP "\fB\-mgnu\-ld\fR" 4
8902 .IX Item "-mgnu-ld"
8903 .PD 0
8904 .IP "\fB\-mno\-gnu\-ld\fR" 4
8905 .IX Item "-mno-gnu-ld"
8906 .PD
8907 Generate (or don't) code for the \s-1GNU\s0 linker.  This is the default.
8908 .IP "\fB\-mno\-pic\fR" 4
8909 .IX Item "-mno-pic"
8910 Generate code that does not use a global pointer register.  The result
8911 is not position independent code, and violates the \s-1IA\-64\s0 \s-1ABI\s0.
8912 .IP "\fB\-mvolatile\-asm\-stop\fR" 4
8913 .IX Item "-mvolatile-asm-stop"
8914 .PD 0
8915 .IP "\fB\-mno\-volatile\-asm\-stop\fR" 4
8916 .IX Item "-mno-volatile-asm-stop"
8917 .PD
8918 Generate (or don't) a stop bit immediately before and after volatile asm
8919 statements.
8920 .IP "\fB\-mregister\-names\fR" 4
8921 .IX Item "-mregister-names"
8922 .PD 0
8923 .IP "\fB\-mno\-register\-names\fR" 4
8924 .IX Item "-mno-register-names"
8925 .PD
8926 Generate (or don't) \fBin\fR, \fBloc\fR, and \fBout\fR register names for
8927 the stacked registers.  This may make assembler output more readable.
8928 .IP "\fB\-mno\-sdata\fR" 4
8929 .IX Item "-mno-sdata"
8930 .PD 0
8931 .IP "\fB\-msdata\fR" 4
8932 .IX Item "-msdata"
8933 .PD
8934 Disable (or enable) optimizations that use the small data section.  This may
8935 be useful for working around optimizer bugs.
8936 .IP "\fB\-mconstant\-gp\fR" 4
8937 .IX Item "-mconstant-gp"
8938 Generate code that uses a single constant global pointer value.  This is
8939 useful when compiling kernel code.
8940 .IP "\fB\-mauto\-pic\fR" 4
8941 .IX Item "-mauto-pic"
8942 Generate code that is self\-relocatable.  This implies \fB\-mconstant\-gp\fR.
8943 This is useful when compiling firmware code.
8944 .IP "\fB\-minline\-float\-divide\-min\-latency\fR" 4
8945 .IX Item "-minline-float-divide-min-latency"
8946 Generate code for inline divides of floating point values
8947 using the minimum latency algorithm.
8948 .IP "\fB\-minline\-float\-divide\-max\-throughput\fR" 4
8949 .IX Item "-minline-float-divide-max-throughput"
8950 Generate code for inline divides of floating point values
8951 using the maximum throughput algorithm.
8952 .IP "\fB\-minline\-int\-divide\-min\-latency\fR" 4
8953 .IX Item "-minline-int-divide-min-latency"
8954 Generate code for inline divides of integer values
8955 using the minimum latency algorithm.
8956 .IP "\fB\-minline\-int\-divide\-max\-throughput\fR" 4
8957 .IX Item "-minline-int-divide-max-throughput"
8958 Generate code for inline divides of integer values
8959 using the maximum throughput algorithm.
8960 .IP "\fB\-minline\-sqrt\-min\-latency\fR" 4
8961 .IX Item "-minline-sqrt-min-latency"
8962 Generate code for inline square roots
8963 using the minimum latency algorithm.
8964 .IP "\fB\-minline\-sqrt\-max\-throughput\fR" 4
8965 .IX Item "-minline-sqrt-max-throughput"
8966 Generate code for inline square roots
8967 using the maximum throughput algorithm.
8968 .IP "\fB\-mno\-dwarf2\-asm\fR" 4
8969 .IX Item "-mno-dwarf2-asm"
8970 .PD 0
8971 .IP "\fB\-mdwarf2\-asm\fR" 4
8972 .IX Item "-mdwarf2-asm"
8973 .PD
8974 Don't (or do) generate assembler code for the \s-1DWARF2\s0 line number debugging
8975 info.  This may be useful when not using the \s-1GNU\s0 assembler.
8976 .IP "\fB\-mearly\-stop\-bits\fR" 4
8977 .IX Item "-mearly-stop-bits"
8978 .PD 0
8979 .IP "\fB\-mno\-early\-stop\-bits\fR" 4
8980 .IX Item "-mno-early-stop-bits"
8981 .PD
8982 Allow stop bits to be placed earlier than immediately preceding the
8983 instruction that triggered the stop bit.  This can improve instruction
8984 scheduling, but does not always do so.
8985 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
8986 .IX Item "-mfixed-range=register-range"
8987 Generate code treating the given register range as fixed registers.
8988 A fixed register is one that the register allocator can not use.  This is
8989 useful when compiling kernel code.  A register range is specified as
8990 two registers separated by a dash.  Multiple register ranges can be
8991 specified separated by a comma.
8992 .IP "\fB\-mtls\-size=\fR\fItls-size\fR" 4
8993 .IX Item "-mtls-size=tls-size"
8994 Specify bit size of immediate \s-1TLS\s0 offsets.  Valid values are 14, 22, and
8995 64.
8996 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
8997 .IX Item "-mtune=cpu-type"
8998 Tune the instruction scheduling for a particular \s-1CPU\s0, Valid values are
8999 itanium, itanium1, merced, itanium2, and mckinley.
9000 .IP "\fB\-mt\fR" 4
9001 .IX Item "-mt"
9002 .PD 0
9003 .IP "\fB\-pthread\fR" 4
9004 .IX Item "-pthread"
9005 .PD
9006 Add support for multithreading using the \s-1POSIX\s0 threads library.  This
9007 option sets flags for both the preprocessor and linker.  It does
9008 not affect the thread safety of object code produced by the compiler or
9009 that of libraries supplied with it.  These are HP-UX specific flags.
9010 .IP "\fB\-milp32\fR" 4
9011 .IX Item "-milp32"
9012 .PD 0
9013 .IP "\fB\-mlp64\fR" 4
9014 .IX Item "-mlp64"
9015 .PD
9016 Generate code for a 32\-bit or 64\-bit environment.
9017 The 32\-bit environment sets int, long and pointer to 32 bits.
9018 The 64\-bit environment sets int to 32 bits and long and pointer
9019 to 64 bits.  These are HP-UX specific flags.
9020 .IP "\fB\-mno\-sched\-br\-data\-spec\fR" 4
9021 .IX Item "-mno-sched-br-data-spec"
9022 .PD 0
9023 .IP "\fB\-msched\-br\-data\-spec\fR" 4
9024 .IX Item "-msched-br-data-spec"
9025 .PD
9026 (Dis/En)able data speculative scheduling before reload.
9027 This will result in generation of the ld.a instructions and
9028 the corresponding check instructions (ld.c / chk.a).
9029 The default is 'disable'.
9030 .IP "\fB\-msched\-ar\-data\-spec\fR" 4
9031 .IX Item "-msched-ar-data-spec"
9032 .PD 0
9033 .IP "\fB\-mno\-sched\-ar\-data\-spec\fR" 4
9034 .IX Item "-mno-sched-ar-data-spec"
9035 .PD
9036 (En/Dis)able data speculative scheduling after reload.
9037 This will result in generation of the ld.a instructions and
9038 the corresponding check instructions (ld.c / chk.a).
9039 The default is 'enable'.
9040 .IP "\fB\-mno\-sched\-control\-spec\fR" 4
9041 .IX Item "-mno-sched-control-spec"
9042 .PD 0
9043 .IP "\fB\-msched\-control\-spec\fR" 4
9044 .IX Item "-msched-control-spec"
9045 .PD
9046 (Dis/En)able control speculative scheduling.  This feature is
9047 available only during region scheduling (i.e. before reload).
9048 This will result in generation of the ld.s instructions and
9049 the corresponding check instructions chk.s .
9050 The default is 'disable'.
9051 .IP "\fB\-msched\-br\-in\-data\-spec\fR" 4
9052 .IX Item "-msched-br-in-data-spec"
9053 .PD 0
9054 .IP "\fB\-mno\-sched\-br\-in\-data\-spec\fR" 4
9055 .IX Item "-mno-sched-br-in-data-spec"
9056 .PD
9057 (En/Dis)able speculative scheduling of the instructions that
9058 are dependent on the data speculative loads before reload.
9059 This is effective only with \fB\-msched\-br\-data\-spec\fR enabled.
9060 The default is 'enable'.
9061 .IP "\fB\-msched\-ar\-in\-data\-spec\fR" 4
9062 .IX Item "-msched-ar-in-data-spec"
9063 .PD 0
9064 .IP "\fB\-mno\-sched\-ar\-in\-data\-spec\fR" 4
9065 .IX Item "-mno-sched-ar-in-data-spec"
9066 .PD
9067 (En/Dis)able speculative scheduling of the instructions that
9068 are dependent on the data speculative loads after reload.
9069 This is effective only with \fB\-msched\-ar\-data\-spec\fR enabled.
9070 The default is 'enable'.
9071 .IP "\fB\-msched\-in\-control\-spec\fR" 4
9072 .IX Item "-msched-in-control-spec"
9073 .PD 0
9074 .IP "\fB\-mno\-sched\-in\-control\-spec\fR" 4
9075 .IX Item "-mno-sched-in-control-spec"
9076 .PD
9077 (En/Dis)able speculative scheduling of the instructions that
9078 are dependent on the control speculative loads.
9079 This is effective only with \fB\-msched\-control\-spec\fR enabled.
9080 The default is 'enable'.
9081 .IP "\fB\-msched\-ldc\fR" 4
9082 .IX Item "-msched-ldc"
9083 .PD 0
9084 .IP "\fB\-mno\-sched\-ldc\fR" 4
9085 .IX Item "-mno-sched-ldc"
9086 .PD
9087 (En/Dis)able use of simple data speculation checks ld.c .
9088 If disabled, only chk.a instructions will be emitted to check
9089 data speculative loads.
9090 The default is 'enable'.
9091 .IP "\fB\-mno\-sched\-control\-ldc\fR" 4
9092 .IX Item "-mno-sched-control-ldc"
9093 .PD 0
9094 .IP "\fB\-msched\-control\-ldc\fR" 4
9095 .IX Item "-msched-control-ldc"
9096 .PD
9097 (Dis/En)able use of ld.c instructions to check control speculative loads.
9098 If enabled, in case of control speculative load with no speculatively
9099 scheduled dependent instructions this load will be emitted as ld.sa and
9100 ld.c will be used to check it.
9101 The default is 'disable'.
9102 .IP "\fB\-mno\-sched\-spec\-verbose\fR" 4
9103 .IX Item "-mno-sched-spec-verbose"
9104 .PD 0
9105 .IP "\fB\-msched\-spec\-verbose\fR" 4
9106 .IX Item "-msched-spec-verbose"
9107 .PD
9108 (Dis/En)able printing of the information about speculative motions.
9109 .IP "\fB\-mno\-sched\-prefer\-non\-data\-spec\-insns\fR" 4
9110 .IX Item "-mno-sched-prefer-non-data-spec-insns"
9111 .PD 0
9112 .IP "\fB\-msched\-prefer\-non\-data\-spec\-insns\fR" 4
9113 .IX Item "-msched-prefer-non-data-spec-insns"
9114 .PD
9115 If enabled, data speculative instructions will be chosen for schedule
9116 only if there are no other choices at the moment.  This will make
9117 the use of the data speculation much more conservative.
9118 The default is 'disable'.
9119 .IP "\fB\-mno\-sched\-prefer\-non\-control\-spec\-insns\fR" 4
9120 .IX Item "-mno-sched-prefer-non-control-spec-insns"
9121 .PD 0
9122 .IP "\fB\-msched\-prefer\-non\-control\-spec\-insns\fR" 4
9123 .IX Item "-msched-prefer-non-control-spec-insns"
9124 .PD
9125 If enabled, control speculative instructions will be chosen for schedule
9126 only if there are no other choices at the moment.  This will make
9127 the use of the control speculation much more conservative.
9128 The default is 'disable'.
9129 .IP "\fB\-mno\-sched\-count\-spec\-in\-critical\-path\fR" 4
9130 .IX Item "-mno-sched-count-spec-in-critical-path"
9131 .PD 0
9132 .IP "\fB\-msched\-count\-spec\-in\-critical\-path\fR" 4
9133 .IX Item "-msched-count-spec-in-critical-path"
9134 .PD
9135 If enabled, speculative dependencies will be considered during
9136 computation of the instructions priorities.  This will make the use of the
9137 speculation a bit more conservative.
9138 The default is 'disable'.
9139 .PP
9140 \fIM32C Options\fR
9141 .IX Subsection "M32C Options"
9142 .IP "\fB\-mcpu=\fR\fIname\fR" 4
9143 .IX Item "-mcpu=name"
9144 Select the \s-1CPU\s0 for which code is generated.  \fIname\fR may be one of
9145 \&\fBr8c\fR for the R8C/Tiny series, \fBm16c\fR for the M16C (up to
9146 /60) series, \fBm32cm\fR for the M16C/80 series, or \fBm32c\fR for
9147 the M32C/80 series.
9148 .IP "\fB\-msim\fR" 4
9149 .IX Item "-msim"
9150 Specifies that the program will be run on the simulator.  This causes
9151 an alternate runtime library to be linked in which supports, for
9152 example, file I/O.  You must not use this option when generating
9153 programs that will run on real hardware; you must provide your own
9154 runtime library for whatever I/O functions are needed.
9155 .IP "\fB\-memregs=\fR\fInumber\fR" 4
9156 .IX Item "-memregs=number"
9157 Specifies the number of memory-based pseudo-registers \s-1GCC\s0 will use
9158 during code generation.  These pseudo-registers will be used like real
9159 registers, so there is a tradeoff between \s-1GCC\s0's ability to fit the
9160 code into available registers, and the performance penalty of using
9161 memory instead of registers.  Note that all modules in a program must
9162 be compiled with the same value for this option.  Because of that, you
9163 must not use this option with the default runtime libraries gcc
9164 builds.
9165 .PP
9166 \fIM32R/D Options\fR
9167 .IX Subsection "M32R/D Options"
9168 .PP
9169 These \fB\-m\fR options are defined for Renesas M32R/D architectures:
9170 .IP "\fB\-m32r2\fR" 4
9171 .IX Item "-m32r2"
9172 Generate code for the M32R/2.
9173 .IP "\fB\-m32rx\fR" 4
9174 .IX Item "-m32rx"
9175 Generate code for the M32R/X.
9176 .IP "\fB\-m32r\fR" 4
9177 .IX Item "-m32r"
9178 Generate code for the M32R.  This is the default.
9179 .IP "\fB\-mmodel=small\fR" 4
9180 .IX Item "-mmodel=small"
9181 Assume all objects live in the lower 16MB of memory (so that their addresses
9182 can be loaded with the \f(CW\*(C`ld24\*(C'\fR instruction), and assume all subroutines
9183 are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
9184 This is the default.
9185 .Sp
9186 The addressability of a particular object can be set with the
9187 \&\f(CW\*(C`model\*(C'\fR attribute.
9188 .IP "\fB\-mmodel=medium\fR" 4
9189 .IX Item "-mmodel=medium"
9190 Assume objects may be anywhere in the 32\-bit address space (the compiler
9191 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
9192 assume all subroutines are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
9193 .IP "\fB\-mmodel=large\fR" 4
9194 .IX Item "-mmodel=large"
9195 Assume objects may be anywhere in the 32\-bit address space (the compiler
9196 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
9197 assume subroutines may not be reachable with the \f(CW\*(C`bl\*(C'\fR instruction
9198 (the compiler will generate the much slower \f(CW\*(C`seth/add3/jl\*(C'\fR
9199 instruction sequence).
9200 .IP "\fB\-msdata=none\fR" 4
9201 .IX Item "-msdata=none"
9202 Disable use of the small data area.  Variables will be put into
9203 one of \fB.data\fR, \fBbss\fR, or \fB.rodata\fR (unless the
9204 \&\f(CW\*(C`section\*(C'\fR attribute has been specified).
9205 This is the default.
9206 .Sp
9207 The small data area consists of sections \fB.sdata\fR and \fB.sbss\fR.
9208 Objects may be explicitly put in the small data area with the
9209 \&\f(CW\*(C`section\*(C'\fR attribute using one of these sections.
9210 .IP "\fB\-msdata=sdata\fR" 4
9211 .IX Item "-msdata=sdata"
9212 Put small global and static data in the small data area, but do not
9213 generate special code to reference them.
9214 .IP "\fB\-msdata=use\fR" 4
9215 .IX Item "-msdata=use"
9216 Put small global and static data in the small data area, and generate
9217 special instructions to reference them.
9218 .IP "\fB\-G\fR \fInum\fR" 4
9219 .IX Item "-G num"
9220 Put global and static objects less than or equal to \fInum\fR bytes
9221 into the small data or bss sections instead of the normal data or bss
9222 sections.  The default value of \fInum\fR is 8.
9223 The \fB\-msdata\fR option must be set to one of \fBsdata\fR or \fBuse\fR
9224 for this option to have any effect.
9225 .Sp
9226 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
9227 Compiling with different values of \fInum\fR may or may not work; if it
9228 doesn't the linker will give an error message\-\-\-incorrect code will not be
9229 generated.
9230 .IP "\fB\-mdebug\fR" 4
9231 .IX Item "-mdebug"
9232 Makes the M32R specific code in the compiler display some statistics
9233 that might help in debugging programs.
9234 .IP "\fB\-malign\-loops\fR" 4
9235 .IX Item "-malign-loops"
9236 Align all loops to a 32\-byte boundary.
9237 .IP "\fB\-mno\-align\-loops\fR" 4
9238 .IX Item "-mno-align-loops"
9239 Do not enforce a 32\-byte alignment for loops.  This is the default.
9240 .IP "\fB\-missue\-rate=\fR\fInumber\fR" 4
9241 .IX Item "-missue-rate=number"
9242 Issue \fInumber\fR instructions per cycle.  \fInumber\fR can only be 1
9243 or 2.
9244 .IP "\fB\-mbranch\-cost=\fR\fInumber\fR" 4
9245 .IX Item "-mbranch-cost=number"
9246 \&\fInumber\fR can only be 1 or 2.  If it is 1 then branches will be
9247 preferred over conditional code, if it is 2, then the opposite will
9248 apply.
9249 .IP "\fB\-mflush\-trap=\fR\fInumber\fR" 4
9250 .IX Item "-mflush-trap=number"
9251 Specifies the trap number to use to flush the cache.  The default is
9252 12.  Valid numbers are between 0 and 15 inclusive.
9253 .IP "\fB\-mno\-flush\-trap\fR" 4
9254 .IX Item "-mno-flush-trap"
9255 Specifies that the cache cannot be flushed by using a trap.
9256 .IP "\fB\-mflush\-func=\fR\fIname\fR" 4
9257 .IX Item "-mflush-func=name"
9258 Specifies the name of the operating system function to call to flush
9259 the cache.  The default is \fI_flush_cache\fR, but a function call
9260 will only be used if a trap is not available.
9261 .IP "\fB\-mno\-flush\-func\fR" 4
9262 .IX Item "-mno-flush-func"
9263 Indicates that there is no \s-1OS\s0 function for flushing the cache.
9264 .PP
9265 \fIM680x0 Options\fR
9266 .IX Subsection "M680x0 Options"
9267 .PP
9268 These are the \fB\-m\fR options defined for the 68000 series.  The default
9269 values for these options depends on which style of 68000 was selected when
9270 the compiler was configured; the defaults for the most common choices are
9271 given below.
9272 .IP "\fB\-m68000\fR" 4
9273 .IX Item "-m68000"
9274 .PD 0
9275 .IP "\fB\-mc68000\fR" 4
9276 .IX Item "-mc68000"
9277 .PD
9278 Generate output for a 68000.  This is the default
9279 when the compiler is configured for 68000\-based systems.
9280 .Sp
9281 Use this option for microcontrollers with a 68000 or \s-1EC000\s0 core,
9282 including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
9283 .IP "\fB\-m68020\fR" 4
9284 .IX Item "-m68020"
9285 .PD 0
9286 .IP "\fB\-mc68020\fR" 4
9287 .IX Item "-mc68020"
9288 .PD
9289 Generate output for a 68020.  This is the default
9290 when the compiler is configured for 68020\-based systems.
9291 .IP "\fB\-m68881\fR" 4
9292 .IX Item "-m68881"
9293 Generate output containing 68881 instructions for floating point.
9294 This is the default for most 68020 systems unless \fB\-\-nfp\fR was
9295 specified when the compiler was configured.
9296 .IP "\fB\-m68030\fR" 4
9297 .IX Item "-m68030"
9298 Generate output for a 68030.  This is the default when the compiler is
9299 configured for 68030\-based systems.
9300 .IP "\fB\-m68040\fR" 4
9301 .IX Item "-m68040"
9302 Generate output for a 68040.  This is the default when the compiler is
9303 configured for 68040\-based systems.
9304 .Sp
9305 This option inhibits the use of 68881/68882 instructions that have to be
9306 emulated by software on the 68040.  Use this option if your 68040 does not
9307 have code to emulate those instructions.
9308 .IP "\fB\-m68060\fR" 4
9309 .IX Item "-m68060"
9310 Generate output for a 68060.  This is the default when the compiler is
9311 configured for 68060\-based systems.
9312 .Sp
9313 This option inhibits the use of 68020 and 68881/68882 instructions that
9314 have to be emulated by software on the 68060.  Use this option if your 68060
9315 does not have code to emulate those instructions.
9316 .IP "\fB\-mcpu32\fR" 4
9317 .IX Item "-mcpu32"
9318 Generate output for a \s-1CPU32\s0.  This is the default
9319 when the compiler is configured for CPU32\-based systems.
9320 .Sp
9321 Use this option for microcontrollers with a
9322 \&\s-1CPU32\s0 or \s-1CPU32+\s0 core, including the 68330, 68331, 68332, 68333, 68334,
9323 68336, 68340, 68341, 68349 and 68360.
9324 .IP "\fB\-m5200\fR" 4
9325 .IX Item "-m5200"
9326 Generate output for a 520X \*(L"coldfire\*(R" family cpu.  This is the default
9327 when the compiler is configured for 520X\-based systems.
9328 .Sp
9329 Use this option for microcontroller with a 5200 core, including
9330 the \s-1MCF5202\s0, \s-1MCF5203\s0, \s-1MCF5204\s0 and \s-1MCF5202\s0.
9331 .IP "\fB\-mcfv4e\fR" 4
9332 .IX Item "-mcfv4e"
9333 Generate output for a ColdFire V4e family cpu (e.g. 547x/548x).
9334 This includes use of hardware floating point instructions.
9335 .IP "\fB\-m68020\-40\fR" 4
9336 .IX Item "-m68020-40"
9337 Generate output for a 68040, without using any of the new instructions.
9338 This results in code which can run relatively efficiently on either a
9339 68020/68881 or a 68030 or a 68040.  The generated code does use the
9340 68881 instructions that are emulated on the 68040.
9341 .IP "\fB\-m68020\-60\fR" 4
9342 .IX Item "-m68020-60"
9343 Generate output for a 68060, without using any of the new instructions.
9344 This results in code which can run relatively efficiently on either a
9345 68020/68881 or a 68030 or a 68040.  The generated code does use the
9346 68881 instructions that are emulated on the 68060.
9347 .IP "\fB\-msoft\-float\fR" 4
9348 .IX Item "-msoft-float"
9349 Generate output containing library calls for floating point.
9350 \&\fBWarning:\fR the requisite libraries are not available for all m68k
9351 targets.  Normally the facilities of the machine's usual C compiler are
9352 used, but this can't be done directly in cross\-compilation.  You must
9353 make your own arrangements to provide suitable library functions for
9354 cross\-compilation.  The embedded targets \fBm68k\-*\-aout\fR and
9355 \&\fBm68k\-*\-coff\fR do provide software floating point support.
9356 .IP "\fB\-mshort\fR" 4
9357 .IX Item "-mshort"
9358 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
9359 Additionally, parameters passed on the stack are also aligned to a
9360 16\-bit boundary even on targets whose \s-1API\s0 mandates promotion to 32\-bit.
9361 .IP "\fB\-mnobitfield\fR" 4
9362 .IX Item "-mnobitfield"
9363 Do not use the bit-field instructions.  The \fB\-m68000\fR, \fB\-mcpu32\fR
9364 and \fB\-m5200\fR options imply \fB\-mnobitfield\fR.
9365 .IP "\fB\-mbitfield\fR" 4
9366 .IX Item "-mbitfield"
9367 Do use the bit-field instructions.  The \fB\-m68020\fR option implies
9368 \&\fB\-mbitfield\fR.  This is the default if you use a configuration
9369 designed for a 68020.
9370 .IP "\fB\-mrtd\fR" 4
9371 .IX Item "-mrtd"
9372 Use a different function-calling convention, in which functions
9373 that take a fixed number of arguments return with the \f(CW\*(C`rtd\*(C'\fR
9374 instruction, which pops their arguments while returning.  This
9375 saves one instruction in the caller since there is no need to pop
9376 the arguments there.
9377 .Sp
9378 This calling convention is incompatible with the one normally
9379 used on Unix, so you cannot use it if you need to call libraries
9380 compiled with the Unix compiler.
9381 .Sp
9382 Also, you must provide function prototypes for all functions that
9383 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
9384 otherwise incorrect code will be generated for calls to those
9385 functions.
9386 .Sp
9387 In addition, seriously incorrect code will result if you call a
9388 function with too many arguments.  (Normally, extra arguments are
9389 harmlessly ignored.)
9390 .Sp
9391 The \f(CW\*(C`rtd\*(C'\fR instruction is supported by the 68010, 68020, 68030,
9392 68040, 68060 and \s-1CPU32\s0 processors, but not by the 68000 or 5200.
9393 .IP "\fB\-malign\-int\fR" 4
9394 .IX Item "-malign-int"
9395 .PD 0
9396 .IP "\fB\-mno\-align\-int\fR" 4
9397 .IX Item "-mno-align-int"
9398 .PD
9399 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,
9400 \&\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
9401 boundary (\fB\-malign\-int\fR) or a 16\-bit boundary (\fB\-mno\-align\-int\fR).
9402 Aligning variables on 32\-bit boundaries produces code that runs somewhat
9403 faster on processors with 32\-bit busses at the expense of more memory.
9404 .Sp
9405 \&\fBWarning:\fR if you use the \fB\-malign\-int\fR switch, \s-1GCC\s0 will
9406 align structures containing the above types  differently than
9407 most published application binary interface specifications for the m68k.
9408 .IP "\fB\-mpcrel\fR" 4
9409 .IX Item "-mpcrel"
9410 Use the pc-relative addressing mode of the 68000 directly, instead of
9411 using a global offset table.  At present, this option implies \fB\-fpic\fR,
9412 allowing at most a 16\-bit offset for pc-relative addressing.  \fB\-fPIC\fR is
9413 not presently supported with \fB\-mpcrel\fR, though this could be supported for
9414 68020 and higher processors.
9415 .IP "\fB\-mno\-strict\-align\fR" 4
9416 .IX Item "-mno-strict-align"
9417 .PD 0
9418 .IP "\fB\-mstrict\-align\fR" 4
9419 .IX Item "-mstrict-align"
9420 .PD
9421 Do not (do) assume that unaligned memory references will be handled by
9422 the system.
9423 .IP "\fB\-msep\-data\fR" 4
9424 .IX Item "-msep-data"
9425 Generate code that allows the data segment to be located in a different
9426 area of memory from the text segment.  This allows for execute in place in
9427 an environment without virtual memory management.  This option implies
9428 \&\fB\-fPIC\fR.
9429 .IP "\fB\-mno\-sep\-data\fR" 4
9430 .IX Item "-mno-sep-data"
9431 Generate code that assumes that the data segment follows the text segment.
9432 This is the default.
9433 .IP "\fB\-mid\-shared\-library\fR" 4
9434 .IX Item "-mid-shared-library"
9435 Generate code that supports shared libraries via the library \s-1ID\s0 method.
9436 This allows for execute in place and shared libraries in an environment
9437 without virtual memory management.  This option implies \fB\-fPIC\fR.
9438 .IP "\fB\-mno\-id\-shared\-library\fR" 4
9439 .IX Item "-mno-id-shared-library"
9440 Generate code that doesn't assume \s-1ID\s0 based shared libraries are being used.
9441 This is the default.
9442 .IP "\fB\-mshared\-library\-id=n\fR" 4
9443 .IX Item "-mshared-library-id=n"
9444 Specified the identification number of the \s-1ID\s0 based shared library being
9445 compiled.  Specifying a value of 0 will generate more compact code, specifying
9446 other values will force the allocation of that number to the current
9447 library but is no more space or time efficient than omitting this option.
9448 .PP
9449 \fIM68hc1x Options\fR
9450 .IX Subsection "M68hc1x Options"
9451 .PP
9452 These are the \fB\-m\fR options defined for the 68hc11 and 68hc12
9453 microcontrollers.  The default values for these options depends on
9454 which style of microcontroller was selected when the compiler was configured;
9455 the defaults for the most common choices are given below.
9456 .IP "\fB\-m6811\fR" 4
9457 .IX Item "-m6811"
9458 .PD 0
9459 .IP "\fB\-m68hc11\fR" 4
9460 .IX Item "-m68hc11"
9461 .PD
9462 Generate output for a 68HC11.  This is the default
9463 when the compiler is configured for 68HC11\-based systems.
9464 .IP "\fB\-m6812\fR" 4
9465 .IX Item "-m6812"
9466 .PD 0
9467 .IP "\fB\-m68hc12\fR" 4
9468 .IX Item "-m68hc12"
9469 .PD
9470 Generate output for a 68HC12.  This is the default
9471 when the compiler is configured for 68HC12\-based systems.
9472 .IP "\fB\-m68S12\fR" 4
9473 .IX Item "-m68S12"
9474 .PD 0
9475 .IP "\fB\-m68hcs12\fR" 4
9476 .IX Item "-m68hcs12"
9477 .PD
9478 Generate output for a 68HCS12.
9479 .IP "\fB\-mauto\-incdec\fR" 4
9480 .IX Item "-mauto-incdec"
9481 Enable the use of 68HC12 pre and post auto-increment and auto-decrement
9482 addressing modes.
9483 .IP "\fB\-minmax\fR" 4
9484 .IX Item "-minmax"
9485 .PD 0
9486 .IP "\fB\-nominmax\fR" 4
9487 .IX Item "-nominmax"
9488 .PD
9489 Enable the use of 68HC12 min and max instructions.
9490 .IP "\fB\-mlong\-calls\fR" 4
9491 .IX Item "-mlong-calls"
9492 .PD 0
9493 .IP "\fB\-mno\-long\-calls\fR" 4
9494 .IX Item "-mno-long-calls"
9495 .PD
9496 Treat all calls as being far away (near).  If calls are assumed to be
9497 far away, the compiler will use the \f(CW\*(C`call\*(C'\fR instruction to
9498 call a function and the \f(CW\*(C`rtc\*(C'\fR instruction for returning.
9499 .IP "\fB\-mshort\fR" 4
9500 .IX Item "-mshort"
9501 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
9502 .IP "\fB\-msoft\-reg\-count=\fR\fIcount\fR" 4
9503 .IX Item "-msoft-reg-count=count"
9504 Specify the number of pseudo-soft registers which are used for the
9505 code generation.  The maximum number is 32.  Using more pseudo-soft
9506 register may or may not result in better code depending on the program.
9507 The default is 4 for 68HC11 and 2 for 68HC12.
9508 .PP
9509 \fIMCore Options\fR
9510 .IX Subsection "MCore Options"
9511 .PP
9512 These are the \fB\-m\fR options defined for the Motorola M*Core
9513 processors.
9514 .IP "\fB\-mhardlit\fR" 4
9515 .IX Item "-mhardlit"
9516 .PD 0
9517 .IP "\fB\-mno\-hardlit\fR" 4
9518 .IX Item "-mno-hardlit"
9519 .PD
9520 Inline constants into the code stream if it can be done in two
9521 instructions or less.
9522 .IP "\fB\-mdiv\fR" 4
9523 .IX Item "-mdiv"
9524 .PD 0
9525 .IP "\fB\-mno\-div\fR" 4
9526 .IX Item "-mno-div"
9527 .PD
9528 Use the divide instruction.  (Enabled by default).
9529 .IP "\fB\-mrelax\-immediate\fR" 4
9530 .IX Item "-mrelax-immediate"
9531 .PD 0
9532 .IP "\fB\-mno\-relax\-immediate\fR" 4
9533 .IX Item "-mno-relax-immediate"
9534 .PD
9535 Allow arbitrary sized immediates in bit operations.
9536 .IP "\fB\-mwide\-bitfields\fR" 4
9537 .IX Item "-mwide-bitfields"
9538 .PD 0
9539 .IP "\fB\-mno\-wide\-bitfields\fR" 4
9540 .IX Item "-mno-wide-bitfields"
9541 .PD
9542 Always treat bit-fields as int\-sized.
9543 .IP "\fB\-m4byte\-functions\fR" 4
9544 .IX Item "-m4byte-functions"
9545 .PD 0
9546 .IP "\fB\-mno\-4byte\-functions\fR" 4
9547 .IX Item "-mno-4byte-functions"
9548 .PD
9549 Force all functions to be aligned to a four byte boundary.
9550 .IP "\fB\-mcallgraph\-data\fR" 4
9551 .IX Item "-mcallgraph-data"
9552 .PD 0
9553 .IP "\fB\-mno\-callgraph\-data\fR" 4
9554 .IX Item "-mno-callgraph-data"
9555 .PD
9556 Emit callgraph information.
9557 .IP "\fB\-mslow\-bytes\fR" 4
9558 .IX Item "-mslow-bytes"
9559 .PD 0
9560 .IP "\fB\-mno\-slow\-bytes\fR" 4
9561 .IX Item "-mno-slow-bytes"
9562 .PD
9563 Prefer word access when reading byte quantities.
9564 .IP "\fB\-mlittle\-endian\fR" 4
9565 .IX Item "-mlittle-endian"
9566 .PD 0
9567 .IP "\fB\-mbig\-endian\fR" 4
9568 .IX Item "-mbig-endian"
9569 .PD
9570 Generate code for a little endian target.
9571 .IP "\fB\-m210\fR" 4
9572 .IX Item "-m210"
9573 .PD 0
9574 .IP "\fB\-m340\fR" 4
9575 .IX Item "-m340"
9576 .PD
9577 Generate code for the 210 processor.
9578 .PP
9579 \fI\s-1MIPS\s0 Options\fR
9580 .IX Subsection "MIPS Options"
9581 .IP "\fB\-EB\fR" 4
9582 .IX Item "-EB"
9583 Generate big-endian code.
9584 .IP "\fB\-EL\fR" 4
9585 .IX Item "-EL"
9586 Generate little-endian code.  This is the default for \fBmips*el\-*\-*\fR
9587 configurations.
9588 .IP "\fB\-march=\fR\fIarch\fR" 4
9589 .IX Item "-march=arch"
9590 Generate code that will run on \fIarch\fR, which can be the name of a
9591 generic \s-1MIPS\s0 \s-1ISA\s0, or the name of a particular processor.
9592 The \s-1ISA\s0 names are:
9593 \&\fBmips1\fR, \fBmips2\fR, \fBmips3\fR, \fBmips4\fR,
9594 \&\fBmips32\fR, \fBmips32r2\fR, and \fBmips64\fR.
9595 The processor names are:
9596 \&\fB4kc\fR, \fB4km\fR, \fB4kp\fR,
9597 \&\fB5kc\fR, \fB5kf\fR,
9598 \&\fB20kc\fR,
9599 \&\fB24k\fR, \fB24kc\fR, \fB24kf\fR, \fB24kx\fR,
9600 \&\fBm4k\fR,
9601 \&\fBorion\fR,
9602 \&\fBr2000\fR, \fBr3000\fR, \fBr3900\fR, \fBr4000\fR, \fBr4400\fR,
9603 \&\fBr4600\fR, \fBr4650\fR, \fBr6000\fR, \fBr8000\fR,
9604 \&\fBrm7000\fR, \fBrm9000\fR,
9605 \&\fBsb1\fR,
9606 \&\fBsr71000\fR,
9607 \&\fBvr4100\fR, \fBvr4111\fR, \fBvr4120\fR, \fBvr4130\fR, \fBvr4300\fR,
9608 \&\fBvr5000\fR, \fBvr5400\fR and \fBvr5500\fR.
9609 The special value \fBfrom-abi\fR selects the
9610 most compatible architecture for the selected \s-1ABI\s0 (that is,
9611 \&\fBmips1\fR for 32\-bit ABIs and \fBmips3\fR for 64\-bit ABIs).
9612 .Sp
9613 In processor names, a final \fB000\fR can be abbreviated as \fBk\fR
9614 (for example, \fB\-march=r2k\fR).  Prefixes are optional, and
9615 \&\fBvr\fR may be written \fBr\fR.
9616 .Sp
9617 \&\s-1GCC\s0 defines two macros based on the value of this option.  The first
9618 is \fB_MIPS_ARCH\fR, which gives the name of target architecture, as
9619 a string.  The second has the form \fB_MIPS_ARCH_\fR\fIfoo\fR,
9620 where \fIfoo\fR is the capitalized value of \fB_MIPS_ARCH\fR.
9621 For example, \fB\-march=r2000\fR will set \fB_MIPS_ARCH\fR
9622 to \fB\*(L"r2000\*(R"\fR and define the macro \fB_MIPS_ARCH_R2000\fR.
9623 .Sp
9624 Note that the \fB_MIPS_ARCH\fR macro uses the processor names given
9625 above.  In other words, it will have the full prefix and will not
9626 abbreviate \fB000\fR as \fBk\fR.  In the case of \fBfrom-abi\fR,
9627 the macro names the resolved architecture (either \fB\*(L"mips1\*(R"\fR or
9628 \&\fB\*(L"mips3\*(R"\fR).  It names the default architecture when no
9629 \&\fB\-march\fR option is given.
9630 .IP "\fB\-mtune=\fR\fIarch\fR" 4
9631 .IX Item "-mtune=arch"
9632 Optimize for \fIarch\fR.  Among other things, this option controls
9633 the way instructions are scheduled, and the perceived cost of arithmetic
9634 operations.  The list of \fIarch\fR values is the same as for
9635 \&\fB\-march\fR.
9636 .Sp
9637 When this option is not used, \s-1GCC\s0 will optimize for the processor
9638 specified by \fB\-march\fR.  By using \fB\-march\fR and
9639 \&\fB\-mtune\fR together, it is possible to generate code that will
9640 run on a family of processors, but optimize the code for one
9641 particular member of that family.
9642 .Sp
9643 \&\fB\-mtune\fR defines the macros \fB_MIPS_TUNE\fR and
9644 \&\fB_MIPS_TUNE_\fR\fIfoo\fR, which work in the same way as the
9645 \&\fB\-march\fR ones described above.
9646 .IP "\fB\-mips1\fR" 4
9647 .IX Item "-mips1"
9648 Equivalent to \fB\-march=mips1\fR.
9649 .IP "\fB\-mips2\fR" 4
9650 .IX Item "-mips2"
9651 Equivalent to \fB\-march=mips2\fR.
9652 .IP "\fB\-mips3\fR" 4
9653 .IX Item "-mips3"
9654 Equivalent to \fB\-march=mips3\fR.
9655 .IP "\fB\-mips4\fR" 4
9656 .IX Item "-mips4"
9657 Equivalent to \fB\-march=mips4\fR.
9658 .IP "\fB\-mips32\fR" 4
9659 .IX Item "-mips32"
9660 Equivalent to \fB\-march=mips32\fR.
9661 .IP "\fB\-mips32r2\fR" 4
9662 .IX Item "-mips32r2"
9663 Equivalent to \fB\-march=mips32r2\fR.
9664 .IP "\fB\-mips64\fR" 4
9665 .IX Item "-mips64"
9666 Equivalent to \fB\-march=mips64\fR.
9667 .IP "\fB\-mips16\fR" 4
9668 .IX Item "-mips16"
9669 .PD 0
9670 .IP "\fB\-mno\-mips16\fR" 4
9671 .IX Item "-mno-mips16"
9672 .PD
9673 Generate (do not generate) \s-1MIPS16\s0 code.  If \s-1GCC\s0 is targetting a
9674 \&\s-1MIPS32\s0 or \s-1MIPS64\s0 architecture, it will make use of the MIPS16e \s-1ASE\s0.
9675 .IP "\fB\-mabi=32\fR" 4
9676 .IX Item "-mabi=32"
9677 .PD 0
9678 .IP "\fB\-mabi=o64\fR" 4
9679 .IX Item "-mabi=o64"
9680 .IP "\fB\-mabi=n32\fR" 4
9681 .IX Item "-mabi=n32"
9682 .IP "\fB\-mabi=64\fR" 4
9683 .IX Item "-mabi=64"
9684 .IP "\fB\-mabi=eabi\fR" 4
9685 .IX Item "-mabi=eabi"
9686 .PD
9687 Generate code for the given \s-1ABI\s0.
9688 .Sp
9689 Note that the \s-1EABI\s0 has a 32\-bit and a 64\-bit variant.  \s-1GCC\s0 normally
9690 generates 64\-bit code when you select a 64\-bit architecture, but you
9691 can use \fB\-mgp32\fR to get 32\-bit code instead.
9692 .Sp
9693 For information about the O64 \s-1ABI\s0, see
9694 <\fBhttp://gcc.gnu.org/projects/mipso64\-abi.html\fR>.
9695 .IP "\fB\-mabicalls\fR" 4
9696 .IX Item "-mabicalls"
9697 .PD 0
9698 .IP "\fB\-mno\-abicalls\fR" 4
9699 .IX Item "-mno-abicalls"
9700 .PD
9701 Generate (do not generate) code that is suitable for SVR4\-style
9702 dynamic objects.  \fB\-mabicalls\fR is the default for SVR4\-based
9703 systems.
9704 .IP "\fB\-mshared\fR" 4
9705 .IX Item "-mshared"
9706 .PD 0
9707 .IP "\fB\-mno\-shared\fR" 4
9708 .IX Item "-mno-shared"
9709 .PD
9710 Generate (do not generate) code that is fully position\-independent,
9711 and that can therefore be linked into shared libraries.  This option
9712 only affects \fB\-mabicalls\fR.
9713 .Sp
9714 All \fB\-mabicalls\fR code has traditionally been position\-independent,
9715 regardless of options like \fB\-fPIC\fR and \fB\-fpic\fR.  However,
9716 as an extension, the \s-1GNU\s0 toolchain allows executables to use absolute
9717 accesses for locally-binding symbols.  It can also use shorter \s-1GP\s0
9718 initialization sequences and generate direct calls to locally-defined
9719 functions.  This mode is selected by \fB\-mno\-shared\fR.
9720 .Sp
9721 \&\fB\-mno\-shared\fR depends on binutils 2.16 or higher and generates
9722 objects that can only be linked by the \s-1GNU\s0 linker.  However, the option
9723 does not affect the \s-1ABI\s0 of the final executable; it only affects the \s-1ABI\s0
9724 of relocatable objects.  Using \fB\-mno\-shared\fR will generally make
9725 executables both smaller and quicker.
9726 .Sp
9727 \&\fB\-mshared\fR is the default.
9728 .IP "\fB\-mxgot\fR" 4
9729 .IX Item "-mxgot"
9730 .PD 0
9731 .IP "\fB\-mno\-xgot\fR" 4
9732 .IX Item "-mno-xgot"
9733 .PD
9734 Lift (do not lift) the usual restrictions on the size of the global
9735 offset table.
9736 .Sp
9737 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT\s0.
9738 While this is relatively efficient, it will only work if the \s-1GOT\s0
9739 is smaller than about 64k.  Anything larger will cause the linker
9740 to report an error such as:
9741 .Sp
9742 .Vb 1
9743 \&        relocation truncated to fit: R_MIPS_GOT16 foobar
9744 .Ve
9745 .Sp
9746 If this happens, you should recompile your code with \fB\-mxgot\fR.
9747 It should then work with very large GOTs, although it will also be
9748 less efficient, since it will take three instructions to fetch the
9749 value of a global symbol.
9750 .Sp
9751 Note that some linkers can create multiple GOTs.  If you have such a
9752 linker, you should only need to use \fB\-mxgot\fR when a single object
9753 file accesses more than 64k's worth of \s-1GOT\s0 entries.  Very few do.
9754 .Sp
9755 These options have no effect unless \s-1GCC\s0 is generating position
9756 independent code.
9757 .IP "\fB\-mgp32\fR" 4
9758 .IX Item "-mgp32"
9759 Assume that general-purpose registers are 32 bits wide.
9760 .IP "\fB\-mgp64\fR" 4
9761 .IX Item "-mgp64"
9762 Assume that general-purpose registers are 64 bits wide.
9763 .IP "\fB\-mfp32\fR" 4
9764 .IX Item "-mfp32"
9765 Assume that floating-point registers are 32 bits wide.
9766 .IP "\fB\-mfp64\fR" 4
9767 .IX Item "-mfp64"
9768 Assume that floating-point registers are 64 bits wide.
9769 .IP "\fB\-mhard\-float\fR" 4
9770 .IX Item "-mhard-float"
9771 Use floating-point coprocessor instructions.
9772 .IP "\fB\-msoft\-float\fR" 4
9773 .IX Item "-msoft-float"
9774 Do not use floating-point coprocessor instructions.  Implement
9775 floating-point calculations using library calls instead.
9776 .IP "\fB\-msingle\-float\fR" 4
9777 .IX Item "-msingle-float"
9778 Assume that the floating-point coprocessor only supports single-precision
9779 operations.
9780 .IP "\fB\-mdouble\-float\fR" 4
9781 .IX Item "-mdouble-float"
9782 Assume that the floating-point coprocessor supports double-precision
9783 operations.  This is the default.
9784 .IP "\fB\-mdsp\fR" 4
9785 .IX Item "-mdsp"
9786 .PD 0
9787 .IP "\fB\-mno\-dsp\fR" 4
9788 .IX Item "-mno-dsp"
9789 .PD
9790 Use (do not use) the \s-1MIPS\s0 \s-1DSP\s0 \s-1ASE\s0.  
9791 .IP "\fB\-mpaired\-single\fR" 4
9792 .IX Item "-mpaired-single"
9793 .PD 0
9794 .IP "\fB\-mno\-paired\-single\fR" 4
9795 .IX Item "-mno-paired-single"
9796 .PD
9797 Use (do not use) paired-single floating-point instructions.
9798   This option can only be used
9799 when generating 64\-bit code and requires hardware floating-point
9800 support to be enabled.
9801 .IP "\fB\-mips3d\fR" 4
9802 .IX Item "-mips3d"
9803 .PD 0
9804 .IP "\fB\-mno\-mips3d\fR" 4
9805 .IX Item "-mno-mips3d"
9806 .PD
9807 Use (do not use) the \s-1MIPS\-3D\s0 \s-1ASE\s0.  
9808 The option \fB\-mips3d\fR implies \fB\-mpaired\-single\fR.
9809 .IP "\fB\-mlong64\fR" 4
9810 .IX Item "-mlong64"
9811 Force \f(CW\*(C`long\*(C'\fR types to be 64 bits wide.  See \fB\-mlong32\fR for
9812 an explanation of the default and the way that the pointer size is
9813 determined.
9814 .IP "\fB\-mlong32\fR" 4
9815 .IX Item "-mlong32"
9816 Force \f(CW\*(C`long\*(C'\fR, \f(CW\*(C`int\*(C'\fR, and pointer types to be 32 bits wide.
9817 .Sp
9818 The default size of \f(CW\*(C`int\*(C'\fRs, \f(CW\*(C`long\*(C'\fRs and pointers depends on
9819 the \s-1ABI\s0.  All the supported ABIs use 32\-bit \f(CW\*(C`int\*(C'\fRs.  The n64 \s-1ABI\s0
9820 uses 64\-bit \f(CW\*(C`long\*(C'\fRs, as does the 64\-bit \s-1EABI\s0; the others use
9821 32\-bit \f(CW\*(C`long\*(C'\fRs.  Pointers are the same size as \f(CW\*(C`long\*(C'\fRs,
9822 or the same size as integer registers, whichever is smaller.
9823 .IP "\fB\-msym32\fR" 4
9824 .IX Item "-msym32"
9825 .PD 0
9826 .IP "\fB\-mno\-sym32\fR" 4
9827 .IX Item "-mno-sym32"
9828 .PD
9829 Assume (do not assume) that all symbols have 32\-bit values, regardless
9830 of the selected \s-1ABI\s0.  This option is useful in combination with
9831 \&\fB\-mabi=64\fR and \fB\-mno\-abicalls\fR because it allows \s-1GCC\s0
9832 to generate shorter and faster references to symbolic addresses.
9833 .IP "\fB\-G\fR \fInum\fR" 4
9834 .IX Item "-G num"
9835 Put global and static items less than or equal to \fInum\fR bytes into
9836 the small data or bss section instead of the normal data or bss section.
9837 This allows the data to be accessed using a single instruction.
9838 .Sp
9839 All modules should be compiled with the same \fB\-G\fR \fInum\fR
9840 value.
9841 .IP "\fB\-membedded\-data\fR" 4
9842 .IX Item "-membedded-data"
9843 .PD 0
9844 .IP "\fB\-mno\-embedded\-data\fR" 4
9845 .IX Item "-mno-embedded-data"
9846 .PD
9847 Allocate variables to the read-only data section first if possible, then
9848 next in the small data section if possible, otherwise in data.  This gives
9849 slightly slower code than the default, but reduces the amount of \s-1RAM\s0 required
9850 when executing, and thus may be preferred for some embedded systems.
9851 .IP "\fB\-muninit\-const\-in\-rodata\fR" 4
9852 .IX Item "-muninit-const-in-rodata"
9853 .PD 0
9854 .IP "\fB\-mno\-uninit\-const\-in\-rodata\fR" 4
9855 .IX Item "-mno-uninit-const-in-rodata"
9856 .PD
9857 Put uninitialized \f(CW\*(C`const\*(C'\fR variables in the read-only data section.
9858 This option is only meaningful in conjunction with \fB\-membedded\-data\fR.
9859 .IP "\fB\-msplit\-addresses\fR" 4
9860 .IX Item "-msplit-addresses"
9861 .PD 0
9862 .IP "\fB\-mno\-split\-addresses\fR" 4
9863 .IX Item "-mno-split-addresses"
9864 .PD
9865 Enable (disable) use of the \f(CW\*(C`%hi()\*(C'\fR and \f(CW\*(C`%lo()\*(C'\fR assembler
9866 relocation operators.  This option has been superseded by
9867 \&\fB\-mexplicit\-relocs\fR but is retained for backwards compatibility.
9868 .IP "\fB\-mexplicit\-relocs\fR" 4
9869 .IX Item "-mexplicit-relocs"
9870 .PD 0
9871 .IP "\fB\-mno\-explicit\-relocs\fR" 4
9872 .IX Item "-mno-explicit-relocs"
9873 .PD
9874 Use (do not use) assembler relocation operators when dealing with symbolic
9875 addresses.  The alternative, selected by \fB\-mno\-explicit\-relocs\fR,
9876 is to use assembler macros instead.
9877 .Sp
9878 \&\fB\-mexplicit\-relocs\fR is the default if \s-1GCC\s0 was configured
9879 to use an assembler that supports relocation operators.
9880 .IP "\fB\-mcheck\-zero\-division\fR" 4
9881 .IX Item "-mcheck-zero-division"
9882 .PD 0
9883 .IP "\fB\-mno\-check\-zero\-division\fR" 4
9884 .IX Item "-mno-check-zero-division"
9885 .PD
9886 Trap (do not trap) on integer division by zero.  The default is
9887 \&\fB\-mcheck\-zero\-division\fR.
9888 .IP "\fB\-mdivide\-traps\fR" 4
9889 .IX Item "-mdivide-traps"
9890 .PD 0
9891 .IP "\fB\-mdivide\-breaks\fR" 4
9892 .IX Item "-mdivide-breaks"
9893 .PD
9894 \&\s-1MIPS\s0 systems check for division by zero by generating either a
9895 conditional trap or a break instruction.  Using traps results in
9896 smaller code, but is only supported on \s-1MIPS\s0 \s-1II\s0 and later.  Also, some
9897 versions of the Linux kernel have a bug that prevents trap from
9898 generating the proper signal (\f(CW\*(C`SIGFPE\*(C'\fR).  Use \fB\-mdivide\-traps\fR to
9899 allow conditional traps on architectures that support them and
9900 \&\fB\-mdivide\-breaks\fR to force the use of breaks.
9901 .Sp
9902 The default is usually \fB\-mdivide\-traps\fR, but this can be
9903 overridden at configure time using \fB\-\-with\-divide=breaks\fR.
9904 Divide-by-zero checks can be completely disabled using
9905 \&\fB\-mno\-check\-zero\-division\fR.
9906 .IP "\fB\-mmemcpy\fR" 4
9907 .IX Item "-mmemcpy"
9908 .PD 0
9909 .IP "\fB\-mno\-memcpy\fR" 4
9910 .IX Item "-mno-memcpy"
9911 .PD
9912 Force (do not force) the use of \f(CW\*(C`memcpy()\*(C'\fR for non-trivial block
9913 moves.  The default is \fB\-mno\-memcpy\fR, which allows \s-1GCC\s0 to inline
9914 most constant-sized copies.
9915 .IP "\fB\-mlong\-calls\fR" 4
9916 .IX Item "-mlong-calls"
9917 .PD 0
9918 .IP "\fB\-mno\-long\-calls\fR" 4
9919 .IX Item "-mno-long-calls"
9920 .PD
9921 Disable (do not disable) use of the \f(CW\*(C`jal\*(C'\fR instruction.  Calling
9922 functions using \f(CW\*(C`jal\*(C'\fR is more efficient but requires the caller
9923 and callee to be in the same 256 megabyte segment.
9924 .Sp
9925 This option has no effect on abicalls code.  The default is
9926 \&\fB\-mno\-long\-calls\fR.
9927 .IP "\fB\-mmad\fR" 4
9928 .IX Item "-mmad"
9929 .PD 0
9930 .IP "\fB\-mno\-mad\fR" 4
9931 .IX Item "-mno-mad"
9932 .PD
9933 Enable (disable) use of the \f(CW\*(C`mad\*(C'\fR, \f(CW\*(C`madu\*(C'\fR and \f(CW\*(C`mul\*(C'\fR
9934 instructions, as provided by the R4650 \s-1ISA\s0.
9935 .IP "\fB\-mfused\-madd\fR" 4
9936 .IX Item "-mfused-madd"
9937 .PD 0
9938 .IP "\fB\-mno\-fused\-madd\fR" 4
9939 .IX Item "-mno-fused-madd"
9940 .PD
9941 Enable (disable) use of the floating point multiply-accumulate
9942 instructions, when they are available.  The default is
9943 \&\fB\-mfused\-madd\fR.
9944 .Sp
9945 When multiply-accumulate instructions are used, the intermediate
9946 product is calculated to infinite precision and is not subject to
9947 the \s-1FCSR\s0 Flush to Zero bit.  This may be undesirable in some
9948 circumstances.
9949 .IP "\fB\-nocpp\fR" 4
9950 .IX Item "-nocpp"
9951 Tell the \s-1MIPS\s0 assembler to not run its preprocessor over user
9952 assembler files (with a \fB.s\fR suffix) when assembling them.
9953 .IP "\fB\-mfix\-r4000\fR" 4
9954 .IX Item "-mfix-r4000"
9955 .PD 0
9956 .IP "\fB\-mno\-fix\-r4000\fR" 4
9957 .IX Item "-mno-fix-r4000"
9958 .PD
9959 Work around certain R4000 \s-1CPU\s0 errata:
9960 .RS 4
9961 .IP "\-" 4
9962 A double-word or a variable shift may give an incorrect result if executed
9963 immediately after starting an integer division.
9964 .IP "\-" 4
9965 A double-word or a variable shift may give an incorrect result if executed
9966 while an integer multiplication is in progress.
9967 .IP "\-" 4
9968 An integer division may give an incorrect result if started in a delay slot
9969 of a taken branch or a jump.
9970 .RE
9971 .RS 4
9972 .RE
9973 .IP "\fB\-mfix\-r4400\fR" 4
9974 .IX Item "-mfix-r4400"
9975 .PD 0
9976 .IP "\fB\-mno\-fix\-r4400\fR" 4
9977 .IX Item "-mno-fix-r4400"
9978 .PD
9979 Work around certain R4400 \s-1CPU\s0 errata:
9980 .RS 4
9981 .IP "\-" 4
9982 A double-word or a variable shift may give an incorrect result if executed
9983 immediately after starting an integer division.
9984 .RE
9985 .RS 4
9986 .RE
9987 .IP "\fB\-mfix\-vr4120\fR" 4
9988 .IX Item "-mfix-vr4120"
9989 .PD 0
9990 .IP "\fB\-mno\-fix\-vr4120\fR" 4
9991 .IX Item "-mno-fix-vr4120"
9992 .PD
9993 Work around certain \s-1VR4120\s0 errata:
9994 .RS 4
9995 .IP "\-" 4
9996 \&\f(CW\*(C`dmultu\*(C'\fR does not always produce the correct result.
9997 .IP "\-" 4
9998 \&\f(CW\*(C`div\*(C'\fR and \f(CW\*(C`ddiv\*(C'\fR do not always produce the correct result if one
9999 of the operands is negative.
10000 .RE
10001 .RS 4
10002 .Sp
10003 The workarounds for the division errata rely on special functions in
10004 \&\fIlibgcc.a\fR.  At present, these functions are only provided by
10005 the \f(CW\*(C`mips64vr*\-elf\*(C'\fR configurations.
10006 .Sp
10007 Other \s-1VR4120\s0 errata require a nop to be inserted between certain pairs of
10008 instructions.  These errata are handled by the assembler, not by \s-1GCC\s0 itself.
10009 .RE
10010 .IP "\fB\-mfix\-vr4130\fR" 4
10011 .IX Item "-mfix-vr4130"
10012 Work around the \s-1VR4130\s0 \f(CW\*(C`mflo\*(C'\fR/\f(CW\*(C`mfhi\*(C'\fR errata.  The
10013 workarounds are implemented by the assembler rather than by \s-1GCC\s0,
10014 although \s-1GCC\s0 will avoid using \f(CW\*(C`mflo\*(C'\fR and \f(CW\*(C`mfhi\*(C'\fR if the
10015 \&\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
10016 instructions are available instead.
10017 .IP "\fB\-mfix\-sb1\fR" 4
10018 .IX Item "-mfix-sb1"
10019 .PD 0
10020 .IP "\fB\-mno\-fix\-sb1\fR" 4
10021 .IX Item "-mno-fix-sb1"
10022 .PD
10023 Work around certain \s-1SB\-1\s0 \s-1CPU\s0 core errata.
10024 (This flag currently works around the \s-1SB\-1\s0 revision 2
10025 \&\*(L"F1\*(R" and \*(L"F2\*(R" floating point errata.)
10026 .IP "\fB\-mflush\-func=\fR\fIfunc\fR" 4
10027 .IX Item "-mflush-func=func"
10028 .PD 0
10029 .IP "\fB\-mno\-flush\-func\fR" 4
10030 .IX Item "-mno-flush-func"
10031 .PD
10032 Specifies the function to call to flush the I and D caches, or to not
10033 call any such function.  If called, the function must take the same
10034 arguments as the common \f(CW\*(C`_flush_func()\*(C'\fR, that is, the address of the
10035 memory range for which the cache is being flushed, the size of the
10036 memory range, and the number 3 (to flush both caches).  The default
10037 depends on the target \s-1GCC\s0 was configured for, but commonly is either
10038 \&\fB_flush_func\fR or \fB_\|_cpu_flush\fR.
10039 .IP "\fB\-mbranch\-likely\fR" 4
10040 .IX Item "-mbranch-likely"
10041 .PD 0
10042 .IP "\fB\-mno\-branch\-likely\fR" 4
10043 .IX Item "-mno-branch-likely"
10044 .PD
10045 Enable or disable use of Branch Likely instructions, regardless of the
10046 default for the selected architecture.  By default, Branch Likely
10047 instructions may be generated if they are supported by the selected
10048 architecture.  An exception is for the \s-1MIPS32\s0 and \s-1MIPS64\s0 architectures
10049 and processors which implement those architectures; for those, Branch
10050 Likely instructions will not be generated by default because the \s-1MIPS32\s0
10051 and \s-1MIPS64\s0 architectures specifically deprecate their use.
10052 .IP "\fB\-mfp\-exceptions\fR" 4
10053 .IX Item "-mfp-exceptions"
10054 .PD 0
10055 .IP "\fB\-mno\-fp\-exceptions\fR" 4
10056 .IX Item "-mno-fp-exceptions"
10057 .PD
10058 Specifies whether \s-1FP\s0 exceptions are enabled.  This affects how we schedule
10059 \&\s-1FP\s0 instructions for some processors.  The default is that \s-1FP\s0 exceptions are
10060 enabled.
10061 .Sp
10062 For instance, on the \s-1SB\-1\s0, if \s-1FP\s0 exceptions are disabled, and we are emitting
10063 64\-bit code, then we can use both \s-1FP\s0 pipes.  Otherwise, we can only use one
10064 \&\s-1FP\s0 pipe.
10065 .IP "\fB\-mvr4130\-align\fR" 4
10066 .IX Item "-mvr4130-align"
10067 .PD 0
10068 .IP "\fB\-mno\-vr4130\-align\fR" 4
10069 .IX Item "-mno-vr4130-align"
10070 .PD
10071 The \s-1VR4130\s0 pipeline is two-way superscalar, but can only issue two
10072 instructions together if the first one is 8\-byte aligned.  When this
10073 option is enabled, \s-1GCC\s0 will align pairs of instructions that it
10074 thinks should execute in parallel.
10075 .Sp
10076 This option only has an effect when optimizing for the \s-1VR4130\s0.
10077 It normally makes code faster, but at the expense of making it bigger.
10078 It is enabled by default at optimization level \fB\-O3\fR.
10079 .PP
10080 \fI\s-1MMIX\s0 Options\fR
10081 .IX Subsection "MMIX Options"
10082 .PP
10083 These options are defined for the \s-1MMIX:\s0
10084 .IP "\fB\-mlibfuncs\fR" 4
10085 .IX Item "-mlibfuncs"
10086 .PD 0
10087 .IP "\fB\-mno\-libfuncs\fR" 4
10088 .IX Item "-mno-libfuncs"
10089 .PD
10090 Specify that intrinsic library functions are being compiled, passing all
10091 values in registers, no matter the size.
10092 .IP "\fB\-mepsilon\fR" 4
10093 .IX Item "-mepsilon"
10094 .PD 0
10095 .IP "\fB\-mno\-epsilon\fR" 4
10096 .IX Item "-mno-epsilon"
10097 .PD
10098 Generate floating-point comparison instructions that compare with respect
10099 to the \f(CW\*(C`rE\*(C'\fR epsilon register.
10100 .IP "\fB\-mabi=mmixware\fR" 4
10101 .IX Item "-mabi=mmixware"
10102 .PD 0
10103 .IP "\fB\-mabi=gnu\fR" 4
10104 .IX Item "-mabi=gnu"
10105 .PD
10106 Generate code that passes function parameters and return values that (in
10107 the called function) are seen as registers \f(CW$0\fR and up, as opposed to
10108 the \s-1GNU\s0 \s-1ABI\s0 which uses global registers \f(CW$231\fR and up.
10109 .IP "\fB\-mzero\-extend\fR" 4
10110 .IX Item "-mzero-extend"
10111 .PD 0
10112 .IP "\fB\-mno\-zero\-extend\fR" 4
10113 .IX Item "-mno-zero-extend"
10114 .PD
10115 When reading data from memory in sizes shorter than 64 bits, use (do not
10116 use) zero-extending load instructions by default, rather than
10117 sign-extending ones.
10118 .IP "\fB\-mknuthdiv\fR" 4
10119 .IX Item "-mknuthdiv"
10120 .PD 0
10121 .IP "\fB\-mno\-knuthdiv\fR" 4
10122 .IX Item "-mno-knuthdiv"
10123 .PD
10124 Make the result of a division yielding a remainder have the same sign as
10125 the divisor.  With the default, \fB\-mno\-knuthdiv\fR, the sign of the
10126 remainder follows the sign of the dividend.  Both methods are
10127 arithmetically valid, the latter being almost exclusively used.
10128 .IP "\fB\-mtoplevel\-symbols\fR" 4
10129 .IX Item "-mtoplevel-symbols"
10130 .PD 0
10131 .IP "\fB\-mno\-toplevel\-symbols\fR" 4
10132 .IX Item "-mno-toplevel-symbols"
10133 .PD
10134 Prepend (do not prepend) a \fB:\fR to all global symbols, so the assembly
10135 code can be used with the \f(CW\*(C`PREFIX\*(C'\fR assembly directive.
10136 .IP "\fB\-melf\fR" 4
10137 .IX Item "-melf"
10138 Generate an executable in the \s-1ELF\s0 format, rather than the default
10139 \&\fBmmo\fR format used by the \fBmmix\fR simulator.
10140 .IP "\fB\-mbranch\-predict\fR" 4
10141 .IX Item "-mbranch-predict"
10142 .PD 0
10143 .IP "\fB\-mno\-branch\-predict\fR" 4
10144 .IX Item "-mno-branch-predict"
10145 .PD
10146 Use (do not use) the probable-branch instructions, when static branch
10147 prediction indicates a probable branch.
10148 .IP "\fB\-mbase\-addresses\fR" 4
10149 .IX Item "-mbase-addresses"
10150 .PD 0
10151 .IP "\fB\-mno\-base\-addresses\fR" 4
10152 .IX Item "-mno-base-addresses"
10153 .PD
10154 Generate (do not generate) code that uses \fIbase addresses\fR.  Using a
10155 base address automatically generates a request (handled by the assembler
10156 and the linker) for a constant to be set up in a global register.  The
10157 register is used for one or more base address requests within the range 0
10158 to 255 from the value held in the register.  The generally leads to short
10159 and fast code, but the number of different data items that can be
10160 addressed is limited.  This means that a program that uses lots of static
10161 data may require \fB\-mno\-base\-addresses\fR.
10162 .IP "\fB\-msingle\-exit\fR" 4
10163 .IX Item "-msingle-exit"
10164 .PD 0
10165 .IP "\fB\-mno\-single\-exit\fR" 4
10166 .IX Item "-mno-single-exit"
10167 .PD
10168 Force (do not force) generated code to have a single exit point in each
10169 function.
10170 .PP
10171 \fI\s-1MN10300\s0 Options\fR
10172 .IX Subsection "MN10300 Options"
10173 .PP
10174 These \fB\-m\fR options are defined for Matsushita \s-1MN10300\s0 architectures:
10175 .IP "\fB\-mmult\-bug\fR" 4
10176 .IX Item "-mmult-bug"
10177 Generate code to avoid bugs in the multiply instructions for the \s-1MN10300\s0
10178 processors.  This is the default.
10179 .IP "\fB\-mno\-mult\-bug\fR" 4
10180 .IX Item "-mno-mult-bug"
10181 Do not generate code to avoid bugs in the multiply instructions for the
10182 \&\s-1MN10300\s0 processors.
10183 .IP "\fB\-mam33\fR" 4
10184 .IX Item "-mam33"
10185 Generate code which uses features specific to the \s-1AM33\s0 processor.
10186 .IP "\fB\-mno\-am33\fR" 4
10187 .IX Item "-mno-am33"
10188 Do not generate code which uses features specific to the \s-1AM33\s0 processor.  This
10189 is the default.
10190 .IP "\fB\-mreturn\-pointer\-on\-d0\fR" 4
10191 .IX Item "-mreturn-pointer-on-d0"
10192 When generating a function which returns a pointer, return the pointer
10193 in both \f(CW\*(C`a0\*(C'\fR and \f(CW\*(C`d0\*(C'\fR.  Otherwise, the pointer is returned
10194 only in a0, and attempts to call such functions without a prototype
10195 would result in errors.  Note that this option is on by default; use
10196 \&\fB\-mno\-return\-pointer\-on\-d0\fR to disable it.
10197 .IP "\fB\-mno\-crt0\fR" 4
10198 .IX Item "-mno-crt0"
10199 Do not link in the C run-time initialization object file.
10200 .IP "\fB\-mrelax\fR" 4
10201 .IX Item "-mrelax"
10202 Indicate to the linker that it should perform a relaxation optimization pass
10203 to shorten branches, calls and absolute memory addresses.  This option only
10204 has an effect when used on the command line for the final link step.
10205 .Sp
10206 This option makes symbolic debugging impossible.
10207 .PP
10208 \fI\s-1MT\s0 Options\fR
10209 .IX Subsection "MT Options"
10210 .PP
10211 These \fB\-m\fR options are defined for Morpho \s-1MT\s0 architectures:
10212 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
10213 .IX Item "-march=cpu-type"
10214 Generate code that will run on \fIcpu-type\fR, which is the name of a system
10215 representing a certain processor type.  Possible values for
10216 \&\fIcpu-type\fR are \fBms1\-64\-001\fR, \fBms1\-16\-002\fR,
10217 \&\fBms1\-16\-003\fR and \fBms2\fR.
10218 .Sp
10219 When this option is not used, the default is \fB\-march=ms1\-16\-002\fR.
10220 .IP "\fB\-mbacc\fR" 4
10221 .IX Item "-mbacc"
10222 Use byte loads and stores when generating code.
10223 .IP "\fB\-mno\-bacc\fR" 4
10224 .IX Item "-mno-bacc"
10225 Do not use byte loads and stores when generating code.
10226 .IP "\fB\-msim\fR" 4
10227 .IX Item "-msim"
10228 Use simulator runtime
10229 .IP "\fB\-mno\-crt0\fR" 4
10230 .IX Item "-mno-crt0"
10231 Do not link in the C run-time initialization object file
10232 \&\fIcrti.o\fR.  Other run-time initialization and termination files
10233 such as \fIstartup.o\fR and \fIexit.o\fR are still included on the
10234 linker command line.
10235 .PP
10236 \fI\s-1PDP\-11\s0 Options\fR
10237 .IX Subsection "PDP-11 Options"
10238 .PP
10239 These options are defined for the \s-1PDP\-11:\s0
10240 .IP "\fB\-mfpu\fR" 4
10241 .IX Item "-mfpu"
10242 Use hardware \s-1FPP\s0 floating point.  This is the default.  (\s-1FIS\s0 floating
10243 point on the \s-1PDP\-11/40\s0 is not supported.)
10244 .IP "\fB\-msoft\-float\fR" 4
10245 .IX Item "-msoft-float"
10246 Do not use hardware floating point.
10247 .IP "\fB\-mac0\fR" 4
10248 .IX Item "-mac0"
10249 Return floating-point results in ac0 (fr0 in Unix assembler syntax).
10250 .IP "\fB\-mno\-ac0\fR" 4
10251 .IX Item "-mno-ac0"
10252 Return floating-point results in memory.  This is the default.
10253 .IP "\fB\-m40\fR" 4
10254 .IX Item "-m40"
10255 Generate code for a \s-1PDP\-11/40\s0.
10256 .IP "\fB\-m45\fR" 4
10257 .IX Item "-m45"
10258 Generate code for a \s-1PDP\-11/45\s0.  This is the default.
10259 .IP "\fB\-m10\fR" 4
10260 .IX Item "-m10"
10261 Generate code for a \s-1PDP\-11/10\s0.
10262 .IP "\fB\-mbcopy\-builtin\fR" 4
10263 .IX Item "-mbcopy-builtin"
10264 Use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.  This is the
10265 default.
10266 .IP "\fB\-mbcopy\fR" 4
10267 .IX Item "-mbcopy"
10268 Do not use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.
10269 .IP "\fB\-mint16\fR" 4
10270 .IX Item "-mint16"
10271 .PD 0
10272 .IP "\fB\-mno\-int32\fR" 4
10273 .IX Item "-mno-int32"
10274 .PD
10275 Use 16\-bit \f(CW\*(C`int\*(C'\fR.  This is the default.
10276 .IP "\fB\-mint32\fR" 4
10277 .IX Item "-mint32"
10278 .PD 0
10279 .IP "\fB\-mno\-int16\fR" 4
10280 .IX Item "-mno-int16"
10281 .PD
10282 Use 32\-bit \f(CW\*(C`int\*(C'\fR.
10283 .IP "\fB\-mfloat64\fR" 4
10284 .IX Item "-mfloat64"
10285 .PD 0
10286 .IP "\fB\-mno\-float32\fR" 4
10287 .IX Item "-mno-float32"
10288 .PD
10289 Use 64\-bit \f(CW\*(C`float\*(C'\fR.  This is the default.
10290 .IP "\fB\-mfloat32\fR" 4
10291 .IX Item "-mfloat32"
10292 .PD 0
10293 .IP "\fB\-mno\-float64\fR" 4
10294 .IX Item "-mno-float64"
10295 .PD
10296 Use 32\-bit \f(CW\*(C`float\*(C'\fR.
10297 .IP "\fB\-mabshi\fR" 4
10298 .IX Item "-mabshi"
10299 Use \f(CW\*(C`abshi2\*(C'\fR pattern.  This is the default.
10300 .IP "\fB\-mno\-abshi\fR" 4
10301 .IX Item "-mno-abshi"
10302 Do not use \f(CW\*(C`abshi2\*(C'\fR pattern.
10303 .IP "\fB\-mbranch\-expensive\fR" 4
10304 .IX Item "-mbranch-expensive"
10305 Pretend that branches are expensive.  This is for experimenting with
10306 code generation only.
10307 .IP "\fB\-mbranch\-cheap\fR" 4
10308 .IX Item "-mbranch-cheap"
10309 Do not pretend that branches are expensive.  This is the default.
10310 .IP "\fB\-msplit\fR" 4
10311 .IX Item "-msplit"
10312 Generate code for a system with split I&D.
10313 .IP "\fB\-mno\-split\fR" 4
10314 .IX Item "-mno-split"
10315 Generate code for a system without split I&D.  This is the default.
10316 .IP "\fB\-munix\-asm\fR" 4
10317 .IX Item "-munix-asm"
10318 Use Unix assembler syntax.  This is the default when configured for
10319 \&\fBpdp11\-*\-bsd\fR.
10320 .IP "\fB\-mdec\-asm\fR" 4
10321 .IX Item "-mdec-asm"
10322 Use \s-1DEC\s0 assembler syntax.  This is the default when configured for any
10323 \&\s-1PDP\-11\s0 target other than \fBpdp11\-*\-bsd\fR.
10324 .PP
10325 \fIPowerPC Options\fR
10326 .IX Subsection "PowerPC Options"
10327 .PP
10328 These are listed under 
10329 .PP
10330 \fI\s-1IBM\s0 \s-1RS/6000\s0 and PowerPC Options\fR
10331 .IX Subsection "IBM RS/6000 and PowerPC Options"
10332 .PP
10333 These \fB\-m\fR options are defined for the \s-1IBM\s0 \s-1RS/6000\s0 and PowerPC:
10334 .IP "\fB\-mpower\fR" 4
10335 .IX Item "-mpower"
10336 .PD 0
10337 .IP "\fB\-mno\-power\fR" 4
10338 .IX Item "-mno-power"
10339 .IP "\fB\-mpower2\fR" 4
10340 .IX Item "-mpower2"
10341 .IP "\fB\-mno\-power2\fR" 4
10342 .IX Item "-mno-power2"
10343 .IP "\fB\-mpowerpc\fR" 4
10344 .IX Item "-mpowerpc"
10345 .IP "\fB\-mno\-powerpc\fR" 4
10346 .IX Item "-mno-powerpc"
10347 .IP "\fB\-mpowerpc\-gpopt\fR" 4
10348 .IX Item "-mpowerpc-gpopt"
10349 .IP "\fB\-mno\-powerpc\-gpopt\fR" 4
10350 .IX Item "-mno-powerpc-gpopt"
10351 .IP "\fB\-mpowerpc\-gfxopt\fR" 4
10352 .IX Item "-mpowerpc-gfxopt"
10353 .IP "\fB\-mno\-powerpc\-gfxopt\fR" 4
10354 .IX Item "-mno-powerpc-gfxopt"
10355 .IP "\fB\-mpowerpc64\fR" 4
10356 .IX Item "-mpowerpc64"
10357 .IP "\fB\-mno\-powerpc64\fR" 4
10358 .IX Item "-mno-powerpc64"
10359 .IP "\fB\-mmfcrf\fR" 4
10360 .IX Item "-mmfcrf"
10361 .IP "\fB\-mno\-mfcrf\fR" 4
10362 .IX Item "-mno-mfcrf"
10363 .IP "\fB\-mpopcntb\fR" 4
10364 .IX Item "-mpopcntb"
10365 .IP "\fB\-mno\-popcntb\fR" 4
10366 .IX Item "-mno-popcntb"
10367 .IP "\fB\-mfprnd\fR" 4
10368 .IX Item "-mfprnd"
10369 .IP "\fB\-mno\-fprnd\fR" 4
10370 .IX Item "-mno-fprnd"
10371 .PD
10372 \&\s-1GCC\s0 supports two related instruction set architectures for the
10373 \&\s-1RS/6000\s0 and PowerPC.  The \fI\s-1POWER\s0\fR instruction set are those
10374 instructions supported by the \fBrios\fR chip set used in the original
10375 \&\s-1RS/6000\s0 systems and the \fIPowerPC\fR instruction set is the
10376 architecture of the Freescale MPC5xx, MPC6xx, MPC8xx microprocessors, and
10377 the \s-1IBM\s0 4xx, 6xx, and follow-on microprocessors.
10378 .Sp
10379 Neither architecture is a subset of the other.  However there is a
10380 large common subset of instructions supported by both.  An \s-1MQ\s0
10381 register is included in processors supporting the \s-1POWER\s0 architecture.
10382 .Sp
10383 You use these options to specify which instructions are available on the
10384 processor you are using.  The default value of these options is
10385 determined when configuring \s-1GCC\s0.  Specifying the
10386 \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
10387 options.  We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
10388 rather than the options listed above.
10389 .Sp
10390 The \fB\-mpower\fR option allows \s-1GCC\s0 to generate instructions that
10391 are found only in the \s-1POWER\s0 architecture and to use the \s-1MQ\s0 register.
10392 Specifying \fB\-mpower2\fR implies \fB\-power\fR and also allows \s-1GCC\s0
10393 to generate instructions that are present in the \s-1POWER2\s0 architecture but
10394 not the original \s-1POWER\s0 architecture.
10395 .Sp
10396 The \fB\-mpowerpc\fR option allows \s-1GCC\s0 to generate instructions that
10397 are found only in the 32\-bit subset of the PowerPC architecture.
10398 Specifying \fB\-mpowerpc\-gpopt\fR implies \fB\-mpowerpc\fR and also allows
10399 \&\s-1GCC\s0 to use the optional PowerPC architecture instructions in the
10400 General Purpose group, including floating-point square root.  Specifying
10401 \&\fB\-mpowerpc\-gfxopt\fR implies \fB\-mpowerpc\fR and also allows \s-1GCC\s0 to
10402 use the optional PowerPC architecture instructions in the Graphics
10403 group, including floating-point select.
10404 .Sp
10405 The \fB\-mmfcrf\fR option allows \s-1GCC\s0 to generate the move from
10406 condition register field instruction implemented on the \s-1POWER4\s0
10407 processor and other processors that support the PowerPC V2.01
10408 architecture.
10409 The \fB\-mpopcntb\fR option allows \s-1GCC\s0 to generate the popcount and
10410 double precision \s-1FP\s0 reciprocal estimate instruction implemented on the
10411 \&\s-1POWER5\s0 processor and other processors that support the PowerPC V2.02
10412 architecture.
10413 The \fB\-mfprnd\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 round to
10414 integer instructions implemented on the \s-1POWER5+\s0 processor and other
10415 processors that support the PowerPC V2.03 architecture.
10416 .Sp
10417 The \fB\-mpowerpc64\fR option allows \s-1GCC\s0 to generate the additional
10418 64\-bit instructions that are found in the full PowerPC64 architecture
10419 and to treat GPRs as 64\-bit, doubleword quantities.  \s-1GCC\s0 defaults to
10420 \&\fB\-mno\-powerpc64\fR.
10421 .Sp
10422 If you specify both \fB\-mno\-power\fR and \fB\-mno\-powerpc\fR, \s-1GCC\s0
10423 will use only the instructions in the common subset of both
10424 architectures plus some special \s-1AIX\s0 common-mode calls, and will not use
10425 the \s-1MQ\s0 register.  Specifying both \fB\-mpower\fR and \fB\-mpowerpc\fR
10426 permits \s-1GCC\s0 to use any instruction from either architecture and to
10427 allow use of the \s-1MQ\s0 register; specify this for the Motorola \s-1MPC601\s0.
10428 .IP "\fB\-mnew\-mnemonics\fR" 4
10429 .IX Item "-mnew-mnemonics"
10430 .PD 0
10431 .IP "\fB\-mold\-mnemonics\fR" 4
10432 .IX Item "-mold-mnemonics"
10433 .PD
10434 Select which mnemonics to use in the generated assembler code.  With
10435 \&\fB\-mnew\-mnemonics\fR, \s-1GCC\s0 uses the assembler mnemonics defined for
10436 the PowerPC architecture.  With \fB\-mold\-mnemonics\fR it uses the
10437 assembler mnemonics defined for the \s-1POWER\s0 architecture.  Instructions
10438 defined in only one architecture have only one mnemonic; \s-1GCC\s0 uses that
10439 mnemonic irrespective of which of these options is specified.
10440 .Sp
10441 \&\s-1GCC\s0 defaults to the mnemonics appropriate for the architecture in
10442 use.  Specifying \fB\-mcpu=\fR\fIcpu_type\fR sometimes overrides the
10443 value of these option.  Unless you are building a cross\-compiler, you
10444 should normally not specify either \fB\-mnew\-mnemonics\fR or
10445 \&\fB\-mold\-mnemonics\fR, but should instead accept the default.
10446 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
10447 .IX Item "-mcpu=cpu_type"
10448 Set architecture type, register usage, choice of mnemonics, and
10449 instruction scheduling parameters for machine type \fIcpu_type\fR.
10450 Supported values for \fIcpu_type\fR are \fB401\fR, \fB403\fR,
10451 \&\fB405\fR, \fB405fp\fR, \fB440\fR, \fB440fp\fR, \fB505\fR,
10452 \&\fB601\fR, \fB602\fR, \fB603\fR, \fB603e\fR, \fB604\fR,
10453 \&\fB604e\fR, \fB620\fR, \fB630\fR, \fB740\fR, \fB7400\fR,
10454 \&\fB7450\fR, \fB750\fR, \fB801\fR, \fB821\fR, \fB823\fR,
10455 \&\fB860\fR, \fB970\fR, \fB8540\fR, \fBec603e\fR, \fBG3\fR,
10456 \&\fBG4\fR, \fBG5\fR, \fBpower\fR, \fBpower2\fR, \fBpower3\fR,
10457 \&\fBpower4\fR, \fBpower5\fR, \fBpower5+\fR, \fBpower6\fR,
10458 \&\fBcommon\fR, \fBpowerpc\fR, \fBpowerpc64\fR,
10459 \&\fBrios\fR, \fBrios1\fR, \fBrios2\fR, \fBrsc\fR, and \fBrs64\fR.
10460 .Sp
10461 \&\fB\-mcpu=common\fR selects a completely generic processor.  Code
10462 generated under this option will run on any \s-1POWER\s0 or PowerPC processor.
10463 \&\s-1GCC\s0 will use only the instructions in the common subset of both
10464 architectures, and will not use the \s-1MQ\s0 register.  \s-1GCC\s0 assumes a generic
10465 processor model for scheduling purposes.
10466 .Sp
10467 \&\fB\-mcpu=power\fR, \fB\-mcpu=power2\fR, \fB\-mcpu=powerpc\fR, and
10468 \&\fB\-mcpu=powerpc64\fR specify generic \s-1POWER\s0, \s-1POWER2\s0, pure 32\-bit
10469 PowerPC (i.e., not \s-1MPC601\s0), and 64\-bit PowerPC architecture machine
10470 types, with an appropriate, generic processor model assumed for
10471 scheduling purposes.
10472 .Sp
10473 The other options specify a specific processor.  Code generated under
10474 those options will run best on that processor, and may not run at all on
10475 others.
10476 .Sp
10477 The \fB\-mcpu\fR options automatically enable or disable the
10478 following options: \fB\-maltivec\fR, \fB\-mfprnd\fR,
10479 \&\fB\-mhard\-float\fR, \fB\-mmfcrf\fR, \fB\-mmultiple\fR,
10480 \&\fB\-mnew\-mnemonics\fR, \fB\-mpopcntb\fR, \fB\-mpower\fR,
10481 \&\fB\-mpower2\fR, \fB\-mpowerpc64\fR, \fB\-mpowerpc\-gpopt\fR,
10482 \&\fB\-mpowerpc\-gfxopt\fR, \fB\-mstring\fR, \fB\-mmulhw\fR, \fB\-mdlmzb\fR.
10483 The particular options
10484 set for any particular \s-1CPU\s0 will vary between compiler versions,
10485 depending on what setting seems to produce optimal code for that \s-1CPU\s0;
10486 it doesn't necessarily reflect the actual hardware's capabilities.  If
10487 you wish to set an individual option to a particular value, you may
10488 specify it after the \fB\-mcpu\fR option, like \fB\-mcpu=970
10489 \&\-mno\-altivec\fR.
10490 .Sp
10491 On \s-1AIX\s0, the \fB\-maltivec\fR and \fB\-mpowerpc64\fR options are
10492 not enabled or disabled by the \fB\-mcpu\fR option at present because
10493 \&\s-1AIX\s0 does not have full support for these options.  You may still
10494 enable or disable them individually if you're sure it'll work in your
10495 environment.
10496 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
10497 .IX Item "-mtune=cpu_type"
10498 Set the instruction scheduling parameters for machine type
10499 \&\fIcpu_type\fR, but do not set the architecture type, register usage, or
10500 choice of mnemonics, as \fB\-mcpu=\fR\fIcpu_type\fR would.  The same
10501 values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
10502 \&\fB\-mcpu\fR.  If both are specified, the code generated will use the
10503 architecture, registers, and mnemonics set by \fB\-mcpu\fR, but the
10504 scheduling parameters set by \fB\-mtune\fR.
10505 .IP "\fB\-mswdiv\fR" 4
10506 .IX Item "-mswdiv"
10507 .PD 0
10508 .IP "\fB\-mno\-swdiv\fR" 4
10509 .IX Item "-mno-swdiv"
10510 .PD
10511 Generate code to compute division as reciprocal estimate and iterative
10512 refinement, creating opportunities for increased throughput.  This
10513 feature requires: optional PowerPC Graphics instruction set for single
10514 precision and \s-1FRE\s0 instruction for double precision, assuming divides
10515 cannot generate user-visible traps, and the domain values not include
10516 Infinities, denormals or zero denominator.
10517 .IP "\fB\-maltivec\fR" 4
10518 .IX Item "-maltivec"
10519 .PD 0
10520 .IP "\fB\-mno\-altivec\fR" 4
10521 .IX Item "-mno-altivec"
10522 .PD
10523 Generate code that uses (does not use) AltiVec instructions, and also
10524 enable the use of built-in functions that allow more direct access to
10525 the AltiVec instruction set.  You may also need to set
10526 \&\fB\-mabi=altivec\fR to adjust the current \s-1ABI\s0 with AltiVec \s-1ABI\s0
10527 enhancements.
10528 .IP "\fB\-mvrsave\fR" 4
10529 .IX Item "-mvrsave"
10530 .PD 0
10531 .IP "\fB\-mno\-vrsave\fR" 4
10532 .IX Item "-mno-vrsave"
10533 .PD
10534 Generate \s-1VRSAVE\s0 instructions when generating AltiVec code.
10535 .IP "\fB\-msecure\-plt\fR" 4
10536 .IX Item "-msecure-plt"
10537 Generate code that allows ld and ld.so to build executables and shared
10538 libraries with non-exec .plt and .got sections.  This is a PowerPC
10539 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
10540 .IP "\fB\-mbss\-plt\fR" 4
10541 .IX Item "-mbss-plt"
10542 Generate code that uses a \s-1BSS\s0 .plt section that ld.so fills in, and
10543 requires .plt and .got sections that are both writable and executable.
10544 This is a PowerPC 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
10545 .IP "\fB\-misel\fR" 4
10546 .IX Item "-misel"
10547 .PD 0
10548 .IP "\fB\-mno\-isel\fR" 4
10549 .IX Item "-mno-isel"
10550 .PD
10551 This switch enables or disables the generation of \s-1ISEL\s0 instructions.
10552 .IP "\fB\-misel=\fR\fIyes/no\fR" 4
10553 .IX Item "-misel=yes/no"
10554 This switch has been deprecated.  Use \fB\-misel\fR and
10555 \&\fB\-mno\-isel\fR instead.
10556 .IP "\fB\-mspe\fR" 4
10557 .IX Item "-mspe"
10558 .PD 0
10559 .IP "\fB\-mno\-spe\fR" 4
10560 .IX Item "-mno-spe"
10561 .PD
10562 This switch enables or disables the generation of \s-1SPE\s0 simd
10563 instructions.
10564 .IP "\fB\-mspe=\fR\fIyes/no\fR" 4
10565 .IX Item "-mspe=yes/no"
10566 This option has been deprecated.  Use \fB\-mspe\fR and
10567 \&\fB\-mno\-spe\fR instead.
10568 .IP "\fB\-mfloat\-gprs=\fR\fIyes/single/double/no\fR" 4
10569 .IX Item "-mfloat-gprs=yes/single/double/no"
10570 .PD 0
10571 .IP "\fB\-mfloat\-gprs\fR" 4
10572 .IX Item "-mfloat-gprs"
10573 .PD
10574 This switch enables or disables the generation of floating point
10575 operations on the general purpose registers for architectures that
10576 support it.
10577 .Sp
10578 The argument \fIyes\fR or \fIsingle\fR enables the use of
10579 single-precision floating point operations.
10580 .Sp
10581 The argument \fIdouble\fR enables the use of single and
10582 double-precision floating point operations.
10583 .Sp
10584 The argument \fIno\fR disables floating point operations on the
10585 general purpose registers.
10586 .Sp
10587 This option is currently only available on the MPC854x.
10588 .IP "\fB\-m32\fR" 4
10589 .IX Item "-m32"
10590 .PD 0
10591 .IP "\fB\-m64\fR" 4
10592 .IX Item "-m64"
10593 .PD
10594 Generate code for 32\-bit or 64\-bit environments of Darwin and \s-1SVR4\s0
10595 targets (including GNU/Linux).  The 32\-bit environment sets int, long
10596 and pointer to 32 bits and generates code that runs on any PowerPC
10597 variant.  The 64\-bit environment sets int to 32 bits and long and
10598 pointer to 64 bits, and generates code for PowerPC64, as for
10599 \&\fB\-mpowerpc64\fR.
10600 .IP "\fB\-mfull\-toc\fR" 4
10601 .IX Item "-mfull-toc"
10602 .PD 0
10603 .IP "\fB\-mno\-fp\-in\-toc\fR" 4
10604 .IX Item "-mno-fp-in-toc"
10605 .IP "\fB\-mno\-sum\-in\-toc\fR" 4
10606 .IX Item "-mno-sum-in-toc"
10607 .IP "\fB\-mminimal\-toc\fR" 4
10608 .IX Item "-mminimal-toc"
10609 .PD
10610 Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
10611 every executable file.  The \fB\-mfull\-toc\fR option is selected by
10612 default.  In that case, \s-1GCC\s0 will allocate at least one \s-1TOC\s0 entry for
10613 each unique non-automatic variable reference in your program.  \s-1GCC\s0
10614 will also place floating-point constants in the \s-1TOC\s0.  However, only
10615 16,384 entries are available in the \s-1TOC\s0.
10616 .Sp
10617 If you receive a linker error message that saying you have overflowed
10618 the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
10619 with the \fB\-mno\-fp\-in\-toc\fR and \fB\-mno\-sum\-in\-toc\fR options.
10620 \&\fB\-mno\-fp\-in\-toc\fR prevents \s-1GCC\s0 from putting floating-point
10621 constants in the \s-1TOC\s0 and \fB\-mno\-sum\-in\-toc\fR forces \s-1GCC\s0 to
10622 generate code to calculate the sum of an address and a constant at
10623 run-time instead of putting that sum into the \s-1TOC\s0.  You may specify one
10624 or both of these options.  Each causes \s-1GCC\s0 to produce very slightly
10625 slower and larger code at the expense of conserving \s-1TOC\s0 space.
10626 .Sp
10627 If you still run out of space in the \s-1TOC\s0 even when you specify both of
10628 these options, specify \fB\-mminimal\-toc\fR instead.  This option causes
10629 \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file.  When you specify this
10630 option, \s-1GCC\s0 will produce code that is slower and larger but which
10631 uses extremely little \s-1TOC\s0 space.  You may wish to use this option
10632 only on files that contain less frequently executed code.
10633 .IP "\fB\-maix64\fR" 4
10634 .IX Item "-maix64"
10635 .PD 0
10636 .IP "\fB\-maix32\fR" 4
10637 .IX Item "-maix32"
10638 .PD
10639 Enable 64\-bit \s-1AIX\s0 \s-1ABI\s0 and calling convention: 64\-bit pointers, 64\-bit
10640 \&\f(CW\*(C`long\*(C'\fR type, and the infrastructure needed to support them.
10641 Specifying \fB\-maix64\fR implies \fB\-mpowerpc64\fR and
10642 \&\fB\-mpowerpc\fR, while \fB\-maix32\fR disables the 64\-bit \s-1ABI\s0 and
10643 implies \fB\-mno\-powerpc64\fR.  \s-1GCC\s0 defaults to \fB\-maix32\fR.
10644 .IP "\fB\-mxl\-compat\fR" 4
10645 .IX Item "-mxl-compat"
10646 .PD 0
10647 .IP "\fB\-mno\-xl\-compat\fR" 4
10648 .IX Item "-mno-xl-compat"
10649 .PD
10650 Produce code that conforms more closely to \s-1IBM\s0 \s-1XL\s0 compiler semantics
10651 when using AIX-compatible \s-1ABI\s0.  Pass floating-point arguments to
10652 prototyped functions beyond the register save area (\s-1RSA\s0) on the stack
10653 in addition to argument FPRs.  Do not assume that most significant
10654 double in 128\-bit long double value is properly rounded when comparing
10655 values and converting to double.  Use \s-1XL\s0 symbol names for long double
10656 support routines.
10657 .Sp
10658 The \s-1AIX\s0 calling convention was extended but not initially documented to
10659 handle an obscure K&R C case of calling a function that takes the
10660 address of its arguments with fewer arguments than declared.  \s-1IBM\s0 \s-1XL\s0
10661 compilers access floating point arguments which do not fit in the
10662 \&\s-1RSA\s0 from the stack when a subroutine is compiled without
10663 optimization.  Because always storing floating-point arguments on the
10664 stack is inefficient and rarely needed, this option is not enabled by
10665 default and only is necessary when calling subroutines compiled by \s-1IBM\s0
10666 \&\s-1XL\s0 compilers without optimization.
10667 .IP "\fB\-mpe\fR" 4
10668 .IX Item "-mpe"
10669 Support \fI\s-1IBM\s0 \s-1RS/6000\s0 \s-1SP\s0\fR \fIParallel Environment\fR (\s-1PE\s0).  Link an
10670 application written to use message passing with special startup code to
10671 enable the application to run.  The system must have \s-1PE\s0 installed in the
10672 standard location (\fI/usr/lpp/ppe.poe/\fR), or the \fIspecs\fR file
10673 must be overridden with the \fB\-specs=\fR option to specify the
10674 appropriate directory location.  The Parallel Environment does not
10675 support threads, so the \fB\-mpe\fR option and the \fB\-pthread\fR
10676 option are incompatible.
10677 .IP "\fB\-malign\-natural\fR" 4
10678 .IX Item "-malign-natural"
10679 .PD 0
10680 .IP "\fB\-malign\-power\fR" 4
10681 .IX Item "-malign-power"
10682 .PD
10683 On \s-1AIX\s0, 32\-bit Darwin, and 64\-bit PowerPC GNU/Linux, the option
10684 \&\fB\-malign\-natural\fR overrides the ABI-defined alignment of larger
10685 types, such as floating-point doubles, on their natural size-based boundary.
10686 The option \fB\-malign\-power\fR instructs \s-1GCC\s0 to follow the ABI-specified
10687 alignment rules.  \s-1GCC\s0 defaults to the standard alignment defined in the \s-1ABI\s0.
10688 .Sp
10689 On 64\-bit Darwin, natural alignment is the default, and \fB\-malign\-power\fR
10690 is not supported.
10691 .IP "\fB\-msoft\-float\fR" 4
10692 .IX Item "-msoft-float"
10693 .PD 0
10694 .IP "\fB\-mhard\-float\fR" 4
10695 .IX Item "-mhard-float"
10696 .PD
10697 Generate code that does not use (uses) the floating-point register set.
10698 Software floating point emulation is provided if you use the
10699 \&\fB\-msoft\-float\fR option, and pass the option to \s-1GCC\s0 when linking.
10700 .IP "\fB\-mmultiple\fR" 4
10701 .IX Item "-mmultiple"
10702 .PD 0
10703 .IP "\fB\-mno\-multiple\fR" 4
10704 .IX Item "-mno-multiple"
10705 .PD
10706 Generate code that uses (does not use) the load multiple word
10707 instructions and the store multiple word instructions.  These
10708 instructions are generated by default on \s-1POWER\s0 systems, and not
10709 generated on PowerPC systems.  Do not use \fB\-mmultiple\fR on little
10710 endian PowerPC systems, since those instructions do not work when the
10711 processor is in little endian mode.  The exceptions are \s-1PPC740\s0 and
10712 \&\s-1PPC750\s0 which permit the instructions usage in little endian mode.
10713 .IP "\fB\-mstring\fR" 4
10714 .IX Item "-mstring"
10715 .PD 0
10716 .IP "\fB\-mno\-string\fR" 4
10717 .IX Item "-mno-string"
10718 .PD
10719 Generate code that uses (does not use) the load string instructions
10720 and the store string word instructions to save multiple registers and
10721 do small block moves.  These instructions are generated by default on
10722 \&\s-1POWER\s0 systems, and not generated on PowerPC systems.  Do not use
10723 \&\fB\-mstring\fR on little endian PowerPC systems, since those
10724 instructions do not work when the processor is in little endian mode.
10725 The exceptions are \s-1PPC740\s0 and \s-1PPC750\s0 which permit the instructions
10726 usage in little endian mode.
10727 .IP "\fB\-mupdate\fR" 4
10728 .IX Item "-mupdate"
10729 .PD 0
10730 .IP "\fB\-mno\-update\fR" 4
10731 .IX Item "-mno-update"
10732 .PD
10733 Generate code that uses (does not use) the load or store instructions
10734 that update the base register to the address of the calculated memory
10735 location.  These instructions are generated by default.  If you use
10736 \&\fB\-mno\-update\fR, there is a small window between the time that the
10737 stack pointer is updated and the address of the previous frame is
10738 stored, which means code that walks the stack frame across interrupts or
10739 signals may get corrupted data.
10740 .IP "\fB\-mfused\-madd\fR" 4
10741 .IX Item "-mfused-madd"
10742 .PD 0
10743 .IP "\fB\-mno\-fused\-madd\fR" 4
10744 .IX Item "-mno-fused-madd"
10745 .PD
10746 Generate code that uses (does not use) the floating point multiply and
10747 accumulate instructions.  These instructions are generated by default if
10748 hardware floating is used.
10749 .IP "\fB\-mmulhw\fR" 4
10750 .IX Item "-mmulhw"
10751 .PD 0
10752 .IP "\fB\-mno\-mulhw\fR" 4
10753 .IX Item "-mno-mulhw"
10754 .PD
10755 Generate code that uses (does not use) the half-word multiply and
10756 multiply-accumulate instructions on the \s-1IBM\s0 405 and 440 processors.
10757 These instructions are generated by default when targetting those
10758 processors.
10759 .IP "\fB\-mdlmzb\fR" 4
10760 .IX Item "-mdlmzb"
10761 .PD 0
10762 .IP "\fB\-mno\-dlmzb\fR" 4
10763 .IX Item "-mno-dlmzb"
10764 .PD
10765 Generate code that uses (does not use) the string-search \fBdlmzb\fR
10766 instruction on the \s-1IBM\s0 405 and 440 processors.  This instruction is
10767 generated by default when targetting those processors.
10768 .IP "\fB\-mno\-bit\-align\fR" 4
10769 .IX Item "-mno-bit-align"
10770 .PD 0
10771 .IP "\fB\-mbit\-align\fR" 4
10772 .IX Item "-mbit-align"
10773 .PD
10774 On System V.4 and embedded PowerPC systems do not (do) force structures
10775 and unions that contain bit-fields to be aligned to the base type of the
10776 bit\-field.
10777 .Sp
10778 For example, by default a structure containing nothing but 8
10779 \&\f(CW\*(C`unsigned\*(C'\fR bit-fields of length 1 would be aligned to a 4 byte
10780 boundary and have a size of 4 bytes.  By using \fB\-mno\-bit\-align\fR,
10781 the structure would be aligned to a 1 byte boundary and be one byte in
10782 size.
10783 .IP "\fB\-mno\-strict\-align\fR" 4
10784 .IX Item "-mno-strict-align"
10785 .PD 0
10786 .IP "\fB\-mstrict\-align\fR" 4
10787 .IX Item "-mstrict-align"
10788 .PD
10789 On System V.4 and embedded PowerPC systems do not (do) assume that
10790 unaligned memory references will be handled by the system.
10791 .IP "\fB\-mrelocatable\fR" 4
10792 .IX Item "-mrelocatable"
10793 .PD 0
10794 .IP "\fB\-mno\-relocatable\fR" 4
10795 .IX Item "-mno-relocatable"
10796 .PD
10797 On embedded PowerPC systems generate code that allows (does not allow)
10798 the program to be relocated to a different address at runtime.  If you
10799 use \fB\-mrelocatable\fR on any module, all objects linked together must
10800 be compiled with \fB\-mrelocatable\fR or \fB\-mrelocatable\-lib\fR.
10801 .IP "\fB\-mrelocatable\-lib\fR" 4
10802 .IX Item "-mrelocatable-lib"
10803 .PD 0
10804 .IP "\fB\-mno\-relocatable\-lib\fR" 4
10805 .IX Item "-mno-relocatable-lib"
10806 .PD
10807 On embedded PowerPC systems generate code that allows (does not allow)
10808 the program to be relocated to a different address at runtime.  Modules
10809 compiled with \fB\-mrelocatable\-lib\fR can be linked with either modules
10810 compiled without \fB\-mrelocatable\fR and \fB\-mrelocatable\-lib\fR or
10811 with modules compiled with the \fB\-mrelocatable\fR options.
10812 .IP "\fB\-mno\-toc\fR" 4
10813 .IX Item "-mno-toc"
10814 .PD 0
10815 .IP "\fB\-mtoc\fR" 4
10816 .IX Item "-mtoc"
10817 .PD
10818 On System V.4 and embedded PowerPC systems do not (do) assume that
10819 register 2 contains a pointer to a global area pointing to the addresses
10820 used in the program.
10821 .IP "\fB\-mlittle\fR" 4
10822 .IX Item "-mlittle"
10823 .PD 0
10824 .IP "\fB\-mlittle\-endian\fR" 4
10825 .IX Item "-mlittle-endian"
10826 .PD
10827 On System V.4 and embedded PowerPC systems compile code for the
10828 processor in little endian mode.  The \fB\-mlittle\-endian\fR option is
10829 the same as \fB\-mlittle\fR.
10830 .IP "\fB\-mbig\fR" 4
10831 .IX Item "-mbig"
10832 .PD 0
10833 .IP "\fB\-mbig\-endian\fR" 4
10834 .IX Item "-mbig-endian"
10835 .PD
10836 On System V.4 and embedded PowerPC systems compile code for the
10837 processor in big endian mode.  The \fB\-mbig\-endian\fR option is
10838 the same as \fB\-mbig\fR.
10839 .IP "\fB\-mdynamic\-no\-pic\fR" 4
10840 .IX Item "-mdynamic-no-pic"
10841 On Darwin and Mac \s-1OS\s0 X systems, compile code so that it is not
10842 relocatable, but that its external references are relocatable.  The
10843 resulting code is suitable for applications, but not shared
10844 libraries.
10845 .IP "\fB\-mprioritize\-restricted\-insns=\fR\fIpriority\fR" 4
10846 .IX Item "-mprioritize-restricted-insns=priority"
10847 This option controls the priority that is assigned to
10848 dispatch-slot restricted instructions during the second scheduling
10849 pass.  The argument \fIpriority\fR takes the value \fI0/1/2\fR to assign
10850 \&\fIno/highest/second\-highest\fR priority to dispatch slot restricted
10851 instructions.
10852 .IP "\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR" 4
10853 .IX Item "-msched-costly-dep=dependence_type"
10854 This option controls which dependences are considered costly
10855 by the target during instruction scheduling.  The argument
10856 \&\fIdependence_type\fR takes one of the following values:
10857 \&\fIno\fR: no dependence is costly,
10858 \&\fIall\fR: all dependences are costly,
10859 \&\fItrue_store_to_load\fR: a true dependence from store to load is costly,
10860 \&\fIstore_to_load\fR: any dependence from store to load is costly,
10861 \&\fInumber\fR: any dependence which latency >= \fInumber\fR is costly.
10862 .IP "\fB\-minsert\-sched\-nops=\fR\fIscheme\fR" 4
10863 .IX Item "-minsert-sched-nops=scheme"
10864 This option controls which nop insertion scheme will be used during
10865 the second scheduling pass.  The argument \fIscheme\fR takes one of the
10866 following values:
10867 \&\fIno\fR: Don't insert nops.
10868 \&\fIpad\fR: Pad with nops any dispatch group which has vacant issue slots,
10869 according to the scheduler's grouping.
10870 \&\fIregroup_exact\fR: Insert nops to force costly dependent insns into
10871 separate groups.  Insert exactly as many nops as needed to force an insn
10872 to a new group, according to the estimated processor grouping.
10873 \&\fInumber\fR: Insert nops to force costly dependent insns into
10874 separate groups.  Insert \fInumber\fR nops to force an insn to a new group.
10875 .IP "\fB\-mcall\-sysv\fR" 4
10876 .IX Item "-mcall-sysv"
10877 On System V.4 and embedded PowerPC systems compile code using calling
10878 conventions that adheres to the March 1995 draft of the System V
10879 Application Binary Interface, PowerPC processor supplement.  This is the
10880 default unless you configured \s-1GCC\s0 using \fBpowerpc\-*\-eabiaix\fR.
10881 .IP "\fB\-mcall\-sysv\-eabi\fR" 4
10882 .IX Item "-mcall-sysv-eabi"
10883 Specify both \fB\-mcall\-sysv\fR and \fB\-meabi\fR options.
10884 .IP "\fB\-mcall\-sysv\-noeabi\fR" 4
10885 .IX Item "-mcall-sysv-noeabi"
10886 Specify both \fB\-mcall\-sysv\fR and \fB\-mno\-eabi\fR options.
10887 .IP "\fB\-mcall\-solaris\fR" 4
10888 .IX Item "-mcall-solaris"
10889 On System V.4 and embedded PowerPC systems compile code for the Solaris
10890 operating system.
10891 .IP "\fB\-mcall\-linux\fR" 4
10892 .IX Item "-mcall-linux"
10893 On System V.4 and embedded PowerPC systems compile code for the
10894 Linux-based \s-1GNU\s0 system.
10895 .IP "\fB\-mcall\-gnu\fR" 4
10896 .IX Item "-mcall-gnu"
10897 On System V.4 and embedded PowerPC systems compile code for the
10898 Hurd-based \s-1GNU\s0 system.
10899 .IP "\fB\-mcall\-netbsd\fR" 4
10900 .IX Item "-mcall-netbsd"
10901 On System V.4 and embedded PowerPC systems compile code for the
10902 NetBSD operating system.
10903 .IP "\fB\-maix\-struct\-return\fR" 4
10904 .IX Item "-maix-struct-return"
10905 Return all structures in memory (as specified by the \s-1AIX\s0 \s-1ABI\s0).
10906 .IP "\fB\-msvr4\-struct\-return\fR" 4
10907 .IX Item "-msvr4-struct-return"
10908 Return structures smaller than 8 bytes in registers (as specified by the
10909 \&\s-1SVR4\s0 \s-1ABI\s0).
10910 .IP "\fB\-mabi=\fR\fIabi-type\fR" 4
10911 .IX Item "-mabi=abi-type"
10912 Extend the current \s-1ABI\s0 with a particular extension, or remove such extension.
10913 Valid values are \fIaltivec\fR, \fIno-altivec\fR, \fIspe\fR,
10914 \&\fIno-spe\fR, \fIibmlongdouble\fR, \fIieeelongdouble\fR.
10915 .IP "\fB\-mabi=spe\fR" 4
10916 .IX Item "-mabi=spe"
10917 Extend the current \s-1ABI\s0 with \s-1SPE\s0 \s-1ABI\s0 extensions.  This does not change
10918 the default \s-1ABI\s0, instead it adds the \s-1SPE\s0 \s-1ABI\s0 extensions to the current
10919 \&\s-1ABI\s0.
10920 .IP "\fB\-mabi=no\-spe\fR" 4
10921 .IX Item "-mabi=no-spe"
10922 Disable Booke \s-1SPE\s0 \s-1ABI\s0 extensions for the current \s-1ABI\s0.
10923 .IP "\fB\-mabi=ibmlongdouble\fR" 4
10924 .IX Item "-mabi=ibmlongdouble"
10925 Change the current \s-1ABI\s0 to use \s-1IBM\s0 extended precision long double.
10926 This is a PowerPC 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
10927 .IP "\fB\-mabi=ieeelongdouble\fR" 4
10928 .IX Item "-mabi=ieeelongdouble"
10929 Change the current \s-1ABI\s0 to use \s-1IEEE\s0 extended precision long double.
10930 This is a PowerPC 32\-bit Linux \s-1ABI\s0 option.
10931 .IP "\fB\-mprototype\fR" 4
10932 .IX Item "-mprototype"
10933 .PD 0
10934 .IP "\fB\-mno\-prototype\fR" 4
10935 .IX Item "-mno-prototype"
10936 .PD
10937 On System V.4 and embedded PowerPC systems assume that all calls to
10938 variable argument functions are properly prototyped.  Otherwise, the
10939 compiler must insert an instruction before every non prototyped call to
10940 set or clear bit 6 of the condition code register (\fI\s-1CR\s0\fR) to
10941 indicate whether floating point values were passed in the floating point
10942 registers in case the function takes a variable arguments.  With
10943 \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
10944 will set or clear the bit.
10945 .IP "\fB\-msim\fR" 4
10946 .IX Item "-msim"
10947 On embedded PowerPC systems, assume that the startup module is called
10948 \&\fIsim\-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
10949 \&\fIlibc.a\fR.  This is the default for \fBpowerpc\-*\-eabisim\fR.
10950 configurations.
10951 .IP "\fB\-mmvme\fR" 4
10952 .IX Item "-mmvme"
10953 On embedded PowerPC systems, assume that the startup module is called
10954 \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
10955 \&\fIlibc.a\fR.
10956 .IP "\fB\-mads\fR" 4
10957 .IX Item "-mads"
10958 On embedded PowerPC systems, assume that the startup module is called
10959 \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
10960 \&\fIlibc.a\fR.
10961 .IP "\fB\-myellowknife\fR" 4
10962 .IX Item "-myellowknife"
10963 On embedded PowerPC systems, assume that the startup module is called
10964 \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
10965 \&\fIlibc.a\fR.
10966 .IP "\fB\-mvxworks\fR" 4
10967 .IX Item "-mvxworks"
10968 On System V.4 and embedded PowerPC systems, specify that you are
10969 compiling for a VxWorks system.
10970 .IP "\fB\-mwindiss\fR" 4
10971 .IX Item "-mwindiss"
10972 Specify that you are compiling for the WindISS simulation environment.
10973 .IP "\fB\-memb\fR" 4
10974 .IX Item "-memb"
10975 On embedded PowerPC systems, set the \fI\s-1PPC_EMB\s0\fR bit in the \s-1ELF\s0 flags
10976 header to indicate that \fBeabi\fR extended relocations are used.
10977 .IP "\fB\-meabi\fR" 4
10978 .IX Item "-meabi"
10979 .PD 0
10980 .IP "\fB\-mno\-eabi\fR" 4
10981 .IX Item "-mno-eabi"
10982 .PD
10983 On System V.4 and embedded PowerPC systems do (do not) adhere to the
10984 Embedded Applications Binary Interface (eabi) which is a set of
10985 modifications to the System V.4 specifications.  Selecting \fB\-meabi\fR
10986 means that the stack is aligned to an 8 byte boundary, a function
10987 \&\f(CW\*(C`_\|_eabi\*(C'\fR is called to from \f(CW\*(C`main\*(C'\fR to set up the eabi
10988 environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
10989 \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas.  Selecting
10990 \&\fB\-mno\-eabi\fR means that the stack is aligned to a 16 byte boundary,
10991 do not call an initialization function from \f(CW\*(C`main\*(C'\fR, and the
10992 \&\fB\-msdata\fR option will only use \f(CW\*(C`r13\*(C'\fR to point to a single
10993 small data area.  The \fB\-meabi\fR option is on by default if you
10994 configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
10995 .IP "\fB\-msdata=eabi\fR" 4
10996 .IX Item "-msdata=eabi"
10997 On System V.4 and embedded PowerPC systems, put small initialized
10998 \&\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata2\fR section, which
10999 is pointed to by register \f(CW\*(C`r2\*(C'\fR.  Put small initialized
11000 non\-\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata\fR section,
11001 which is pointed to by register \f(CW\*(C`r13\*(C'\fR.  Put small uninitialized
11002 global and static data in the \fB.sbss\fR section, which is adjacent to
11003 the \fB.sdata\fR section.  The \fB\-msdata=eabi\fR option is
11004 incompatible with the \fB\-mrelocatable\fR option.  The
11005 \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
11006 .IP "\fB\-msdata=sysv\fR" 4
11007 .IX Item "-msdata=sysv"
11008 On System V.4 and embedded PowerPC systems, put small global and static
11009 data in the \fB.sdata\fR section, which is pointed to by register
11010 \&\f(CW\*(C`r13\*(C'\fR.  Put small uninitialized global and static data in the
11011 \&\fB.sbss\fR section, which is adjacent to the \fB.sdata\fR section.
11012 The \fB\-msdata=sysv\fR option is incompatible with the
11013 \&\fB\-mrelocatable\fR option.
11014 .IP "\fB\-msdata=default\fR" 4
11015 .IX Item "-msdata=default"
11016 .PD 0
11017 .IP "\fB\-msdata\fR" 4
11018 .IX Item "-msdata"
11019 .PD
11020 On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
11021 compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
11022 same as \fB\-msdata=sysv\fR.
11023 .IP "\fB\-msdata\-data\fR" 4
11024 .IX Item "-msdata-data"
11025 On System V.4 and embedded PowerPC systems, put small global
11026 data in the \fB.sdata\fR section.  Put small uninitialized global
11027 data in the \fB.sbss\fR section.  Do not use register \f(CW\*(C`r13\*(C'\fR
11028 to address small data however.  This is the default behavior unless
11029 other \fB\-msdata\fR options are used.
11030 .IP "\fB\-msdata=none\fR" 4
11031 .IX Item "-msdata=none"
11032 .PD 0
11033 .IP "\fB\-mno\-sdata\fR" 4
11034 .IX Item "-mno-sdata"
11035 .PD
11036 On embedded PowerPC systems, put all initialized global and static data
11037 in the \fB.data\fR section, and all uninitialized data in the
11038 \&\fB.bss\fR section.
11039 .IP "\fB\-G\fR \fInum\fR" 4
11040 .IX Item "-G num"
11041 On embedded PowerPC systems, put global and static items less than or
11042 equal to \fInum\fR bytes into the small data or bss sections instead of
11043 the normal data or bss section.  By default, \fInum\fR is 8.  The
11044 \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
11045 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
11046 .IP "\fB\-mregnames\fR" 4
11047 .IX Item "-mregnames"
11048 .PD 0
11049 .IP "\fB\-mno\-regnames\fR" 4
11050 .IX Item "-mno-regnames"
11051 .PD
11052 On System V.4 and embedded PowerPC systems do (do not) emit register
11053 names in the assembly language output using symbolic forms.
11054 .IP "\fB\-mlongcall\fR" 4
11055 .IX Item "-mlongcall"
11056 .PD 0
11057 .IP "\fB\-mno\-longcall\fR" 4
11058 .IX Item "-mno-longcall"
11059 .PD
11060 By default assume that all calls are far away so that a longer more
11061 expensive calling sequence is required.  This is required for calls
11062 further than 32 megabytes (33,554,432 bytes) from the current location.
11063 A short call will be generated if the compiler knows
11064 the call cannot be that far away.  This setting can be overridden by
11065 the \f(CW\*(C`shortcall\*(C'\fR function attribute, or by \f(CW\*(C`#pragma
11066 longcall(0)\*(C'\fR.
11067 .Sp
11068 Some linkers are capable of detecting out-of-range calls and generating
11069 glue code on the fly.  On these systems, long calls are unnecessary and
11070 generate slower code.  As of this writing, the \s-1AIX\s0 linker can do this,
11071 as can the \s-1GNU\s0 linker for PowerPC/64.  It is planned to add this feature
11072 to the \s-1GNU\s0 linker for 32\-bit PowerPC systems as well.
11073 .Sp
11074 On Darwin/PPC systems, \f(CW\*(C`#pragma longcall\*(C'\fR will generate \*(L"jbsr
11075 callee, L42\*(R", plus a \*(L"branch island\*(R" (glue code).  The two target
11076 addresses represent the callee and the \*(L"branch island\*(R".  The
11077 Darwin/PPC linker will prefer the first address and generate a \*(L"bl
11078 callee\*(R" if the \s-1PPC\s0 \*(L"bl\*(R" instruction will reach the callee directly;
11079 otherwise, the linker will generate \*(L"bl L42\*(R" to call the \*(L"branch
11080 island\*(R".  The \*(L"branch island\*(R" is appended to the body of the
11081 calling function; it computes the full 32\-bit address of the callee
11082 and jumps to it.
11083 .Sp
11084 On Mach-O (Darwin) systems, this option directs the compiler emit to
11085 the glue for every direct call, and the Darwin linker decides whether
11086 to use or discard it.
11087 .Sp
11088 In the future, we may cause \s-1GCC\s0 to ignore all longcall specifications
11089 when the linker is known to generate glue.
11090 .IP "\fB\-pthread\fR" 4
11091 .IX Item "-pthread"
11092 Adds support for multithreading with the \fIpthreads\fR library.
11093 This option sets flags for both the preprocessor and linker.
11094 .PP
11095 \fIS/390 and zSeries Options\fR
11096 .IX Subsection "S/390 and zSeries Options"
11097 .PP
11098 These are the \fB\-m\fR options defined for the S/390 and zSeries architecture.
11099 .IP "\fB\-mhard\-float\fR" 4
11100 .IX Item "-mhard-float"
11101 .PD 0
11102 .IP "\fB\-msoft\-float\fR" 4
11103 .IX Item "-msoft-float"
11104 .PD
11105 Use (do not use) the hardware floating-point instructions and registers
11106 for floating-point operations.  When \fB\-msoft\-float\fR is specified,
11107 functions in \fIlibgcc.a\fR will be used to perform floating-point
11108 operations.  When \fB\-mhard\-float\fR is specified, the compiler
11109 generates \s-1IEEE\s0 floating-point instructions.  This is the default.
11110 .IP "\fB\-mlong\-double\-64\fR" 4
11111 .IX Item "-mlong-double-64"
11112 .PD 0
11113 .IP "\fB\-mlong\-double\-128\fR" 4
11114 .IX Item "-mlong-double-128"
11115 .PD
11116 These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
11117 of 64bit makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
11118 type. This is the default.
11119 .IP "\fB\-mbackchain\fR" 4
11120 .IX Item "-mbackchain"
11121 .PD 0
11122 .IP "\fB\-mno\-backchain\fR" 4
11123 .IX Item "-mno-backchain"
11124 .PD
11125 Store (do not store) the address of the caller's frame as backchain pointer
11126 into the callee's stack frame.
11127 A backchain may be needed to allow debugging using tools that do not understand
11128 \&\s-1DWARF\-2\s0 call frame information.
11129 When \fB\-mno\-packed\-stack\fR is in effect, the backchain pointer is stored
11130 at the bottom of the stack frame; when \fB\-mpacked\-stack\fR is in effect,
11131 the backchain is placed into the topmost word of the 96/160 byte register
11132 save area.
11133 .Sp
11134 In general, code compiled with \fB\-mbackchain\fR is call-compatible with
11135 code compiled with \fB\-mmo\-backchain\fR; however, use of the backchain
11136 for debugging purposes usually requires that the whole binary is built with
11137 \&\fB\-mbackchain\fR.  Note that the combination of \fB\-mbackchain\fR,
11138 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
11139 to build a linux kernel use \fB\-msoft\-float\fR.
11140 .Sp
11141 The default is to not maintain the backchain.
11142 .IP "\fB\-mpacked\-stack\fR" 4
11143 .IX Item "-mpacked-stack"
11144 .PD 0
11145 .IP "\fB\-mno\-packed\-stack\fR" 4
11146 .IX Item "-mno-packed-stack"
11147 .PD
11148 Use (do not use) the packed stack layout.  When \fB\-mno\-packed\-stack\fR is
11149 specified, the compiler uses the all fields of the 96/160 byte register save
11150 area only for their default purpose; unused fields still take up stack space.
11151 When \fB\-mpacked\-stack\fR is specified, register save slots are densely
11152 packed at the top of the register save area; unused space is reused for other
11153 purposes, allowing for more efficient use of the available stack space.
11154 However, when \fB\-mbackchain\fR is also in effect, the topmost word of
11155 the save area is always used to store the backchain, and the return address
11156 register is always saved two words below the backchain.
11157 .Sp
11158 As long as the stack frame backchain is not used, code generated with
11159 \&\fB\-mpacked\-stack\fR is call-compatible with code generated with
11160 \&\fB\-mno\-packed\-stack\fR.  Note that some non-FSF releases of \s-1GCC\s0 2.95 for
11161 S/390 or zSeries generated code that uses the stack frame backchain at run
11162 time, not just for debugging purposes.  Such code is not call-compatible
11163 with code compiled with \fB\-mpacked\-stack\fR.  Also, note that the
11164 combination of \fB\-mbackchain\fR,
11165 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
11166 to build a linux kernel use \fB\-msoft\-float\fR.
11167 .Sp
11168 The default is to not use the packed stack layout.
11169 .IP "\fB\-msmall\-exec\fR" 4
11170 .IX Item "-msmall-exec"
11171 .PD 0
11172 .IP "\fB\-mno\-small\-exec\fR" 4
11173 .IX Item "-mno-small-exec"
11174 .PD
11175 Generate (or do not generate) code using the \f(CW\*(C`bras\*(C'\fR instruction
11176 to do subroutine calls.
11177 This only works reliably if the total executable size does not
11178 exceed 64k.  The default is to use the \f(CW\*(C`basr\*(C'\fR instruction instead,
11179 which does not have this limitation.
11180 .IP "\fB\-m64\fR" 4
11181 .IX Item "-m64"
11182 .PD 0
11183 .IP "\fB\-m31\fR" 4
11184 .IX Item "-m31"
11185 .PD
11186 When \fB\-m31\fR is specified, generate code compliant to the
11187 GNU/Linux for S/390 \s-1ABI\s0.  When \fB\-m64\fR is specified, generate
11188 code compliant to the GNU/Linux for zSeries \s-1ABI\s0.  This allows \s-1GCC\s0 in
11189 particular to generate 64\-bit instructions.  For the \fBs390\fR
11190 targets, the default is \fB\-m31\fR, while the \fBs390x\fR
11191 targets default to \fB\-m64\fR.
11192 .IP "\fB\-mzarch\fR" 4
11193 .IX Item "-mzarch"
11194 .PD 0
11195 .IP "\fB\-mesa\fR" 4
11196 .IX Item "-mesa"
11197 .PD
11198 When \fB\-mzarch\fR is specified, generate code using the
11199 instructions available on z/Architecture.
11200 When \fB\-mesa\fR is specified, generate code using the
11201 instructions available on \s-1ESA/390\s0.  Note that \fB\-mesa\fR is
11202 not possible with \fB\-m64\fR.
11203 When generating code compliant to the GNU/Linux for S/390 \s-1ABI\s0,
11204 the default is \fB\-mesa\fR.  When generating code compliant
11205 to the GNU/Linux for zSeries \s-1ABI\s0, the default is \fB\-mzarch\fR.
11206 .IP "\fB\-mmvcle\fR" 4
11207 .IX Item "-mmvcle"
11208 .PD 0
11209 .IP "\fB\-mno\-mvcle\fR" 4
11210 .IX Item "-mno-mvcle"
11211 .PD
11212 Generate (or do not generate) code using the \f(CW\*(C`mvcle\*(C'\fR instruction
11213 to perform block moves.  When \fB\-mno\-mvcle\fR is specified,
11214 use a \f(CW\*(C`mvc\*(C'\fR loop instead.  This is the default unless optimizing for
11215 size.
11216 .IP "\fB\-mdebug\fR" 4
11217 .IX Item "-mdebug"
11218 .PD 0
11219 .IP "\fB\-mno\-debug\fR" 4
11220 .IX Item "-mno-debug"
11221 .PD
11222 Print (or do not print) additional debug information when compiling.
11223 The default is to not print debug information.
11224 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
11225 .IX Item "-march=cpu-type"
11226 Generate code that will run on \fIcpu-type\fR, which is the name of a system
11227 representing a certain processor type.  Possible values for
11228 \&\fIcpu-type\fR are \fBg5\fR, \fBg6\fR, \fBz900\fR, and \fBz990\fR.
11229 When generating code using the instructions available on z/Architecture,
11230 the default is \fB\-march=z900\fR.  Otherwise, the default is
11231 \&\fB\-march=g5\fR.
11232 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
11233 .IX Item "-mtune=cpu-type"
11234 Tune to \fIcpu-type\fR everything applicable about the generated code,
11235 except for the \s-1ABI\s0 and the set of available instructions.
11236 The list of \fIcpu-type\fR values is the same as for \fB\-march\fR.
11237 The default is the value used for \fB\-march\fR.
11238 .IP "\fB\-mtpf\-trace\fR" 4
11239 .IX Item "-mtpf-trace"
11240 .PD 0
11241 .IP "\fB\-mno\-tpf\-trace\fR" 4
11242 .IX Item "-mno-tpf-trace"
11243 .PD
11244 Generate code that adds (does not add) in \s-1TPF\s0 \s-1OS\s0 specific branches to trace
11245 routines in the operating system.  This option is off by default, even
11246 when compiling for the \s-1TPF\s0 \s-1OS\s0.
11247 .IP "\fB\-mfused\-madd\fR" 4
11248 .IX Item "-mfused-madd"
11249 .PD 0
11250 .IP "\fB\-mno\-fused\-madd\fR" 4
11251 .IX Item "-mno-fused-madd"
11252 .PD
11253 Generate code that uses (does not use) the floating point multiply and
11254 accumulate instructions.  These instructions are generated by default if
11255 hardware floating point is used.
11256 .IP "\fB\-mwarn\-framesize=\fR\fIframesize\fR" 4
11257 .IX Item "-mwarn-framesize=framesize"
11258 Emit a warning if the current function exceeds the given frame size.  Because
11259 this is a compile time check it doesn't need to be a real problem when the program
11260 runs.  It is intended to identify functions which most probably cause
11261 a stack overflow.  It is useful to be used in an environment with limited stack
11262 size e.g. the linux kernel.
11263 .IP "\fB\-mwarn\-dynamicstack\fR" 4
11264 .IX Item "-mwarn-dynamicstack"
11265 Emit a warning if the function calls alloca or uses dynamically
11266 sized arrays.  This is generally a bad idea with a limited stack size.
11267 .IP "\fB\-mstack\-guard=\fR\fIstack-guard\fR" 4
11268 .IX Item "-mstack-guard=stack-guard"
11269 .PD 0
11270 .IP "\fB\-mstack\-size=\fR\fIstack-size\fR" 4
11271 .IX Item "-mstack-size=stack-size"
11272 .PD
11273 These arguments always have to be used in conjunction.  If they are present the s390
11274 back end emits additional instructions in the function prologue which trigger a trap
11275 if the stack size is \fIstack-guard\fR bytes above the \fIstack-size\fR
11276 (remember that the stack on s390 grows downward).  These options are intended to
11277 be used to help debugging stack overflow problems.  The additionally emitted code
11278 causes only little overhead and hence can also be used in production like systems
11279 without greater performance degradation.  The given values have to be exact
11280 powers of 2 and \fIstack-size\fR has to be greater than \fIstack-guard\fR without
11281 exceeding 64k.
11282 In order to be efficient the extra code makes the assumption that the stack starts
11283 at an address aligned to the value given by \fIstack-size\fR.
11284 .PP
11285 \fIScore Options\fR
11286 .IX Subsection "Score Options"
11287 .PP
11288 These options are defined for Score implementations:
11289 .IP "\fB\-meb\fR" 4
11290 .IX Item "-meb"
11291 Compile code for big endian mode.  This is the default.
11292 .IP "\fB\-mel\fR" 4
11293 .IX Item "-mel"
11294 Compile code for little endian mode. 
11295 .IP "\fB\-mnhwloop\fR" 4
11296 .IX Item "-mnhwloop"
11297 Disable generate bcnz instruction.
11298 .IP "\fB\-muls\fR" 4
11299 .IX Item "-muls"
11300 Enable generate unaligned load and store instruction.
11301 .IP "\fB\-mmac\fR" 4
11302 .IX Item "-mmac"
11303 Enable the use of multiply-accumulate instructions. Disabled by default. 
11304 .IP "\fB\-mscore5\fR" 4
11305 .IX Item "-mscore5"
11306 Specify the \s-1SCORE5\s0 as the target architecture.
11307 .IP "\fB\-mscore5u\fR" 4
11308 .IX Item "-mscore5u"
11309 Specify the \s-1SCORE5U\s0 of the target architecture.
11310 .IP "\fB\-mscore7\fR" 4
11311 .IX Item "-mscore7"
11312 Specify the \s-1SCORE7\s0 as the target architecture. This is the default.
11313 .IP "\fB\-mscore7d\fR" 4
11314 .IX Item "-mscore7d"
11315 Specify the \s-1SCORE7D\s0 as the target architecture.
11316 .PP
11317 \fI\s-1SH\s0 Options\fR
11318 .IX Subsection "SH Options"
11319 .PP
11320 These \fB\-m\fR options are defined for the \s-1SH\s0 implementations:
11321 .IP "\fB\-m1\fR" 4
11322 .IX Item "-m1"
11323 Generate code for the \s-1SH1\s0.
11324 .IP "\fB\-m2\fR" 4
11325 .IX Item "-m2"
11326 Generate code for the \s-1SH2\s0.
11327 .IP "\fB\-m2e\fR" 4
11328 .IX Item "-m2e"
11329 Generate code for the SH2e.
11330 .IP "\fB\-m3\fR" 4
11331 .IX Item "-m3"
11332 Generate code for the \s-1SH3\s0.
11333 .IP "\fB\-m3e\fR" 4
11334 .IX Item "-m3e"
11335 Generate code for the SH3e.
11336 .IP "\fB\-m4\-nofpu\fR" 4
11337 .IX Item "-m4-nofpu"
11338 Generate code for the \s-1SH4\s0 without a floating-point unit.
11339 .IP "\fB\-m4\-single\-only\fR" 4
11340 .IX Item "-m4-single-only"
11341 Generate code for the \s-1SH4\s0 with a floating-point unit that only
11342 supports single-precision arithmetic.
11343 .IP "\fB\-m4\-single\fR" 4
11344 .IX Item "-m4-single"
11345 Generate code for the \s-1SH4\s0 assuming the floating-point unit is in
11346 single-precision mode by default.
11347 .IP "\fB\-m4\fR" 4
11348 .IX Item "-m4"
11349 Generate code for the \s-1SH4\s0.
11350 .IP "\fB\-m4a\-nofpu\fR" 4
11351 .IX Item "-m4a-nofpu"
11352 Generate code for the SH4al\-dsp, or for a SH4a in such a way that the
11353 floating-point unit is not used.
11354 .IP "\fB\-m4a\-single\-only\fR" 4
11355 .IX Item "-m4a-single-only"
11356 Generate code for the SH4a, in such a way that no double-precision
11357 floating point operations are used.
11358 .IP "\fB\-m4a\-single\fR" 4
11359 .IX Item "-m4a-single"
11360 Generate code for the SH4a assuming the floating-point unit is in
11361 single-precision mode by default.
11362 .IP "\fB\-m4a\fR" 4
11363 .IX Item "-m4a"
11364 Generate code for the SH4a.
11365 .IP "\fB\-m4al\fR" 4
11366 .IX Item "-m4al"
11367 Same as \fB\-m4a\-nofpu\fR, except that it implicitly passes
11368 \&\fB\-dsp\fR to the assembler.  \s-1GCC\s0 doesn't generate any \s-1DSP\s0
11369 instructions at the moment.
11370 .IP "\fB\-mb\fR" 4
11371 .IX Item "-mb"
11372 Compile code for the processor in big endian mode.
11373 .IP "\fB\-ml\fR" 4
11374 .IX Item "-ml"
11375 Compile code for the processor in little endian mode.
11376 .IP "\fB\-mdalign\fR" 4
11377 .IX Item "-mdalign"
11378 Align doubles at 64\-bit boundaries.  Note that this changes the calling
11379 conventions, and thus some functions from the standard C library will
11380 not work unless you recompile it first with \fB\-mdalign\fR.
11381 .IP "\fB\-mrelax\fR" 4
11382 .IX Item "-mrelax"
11383 Shorten some address references at link time, when possible; uses the
11384 linker option \fB\-relax\fR.
11385 .IP "\fB\-mbigtable\fR" 4
11386 .IX Item "-mbigtable"
11387 Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables.  The default is to use
11388 16\-bit offsets.
11389 .IP "\fB\-mfmovd\fR" 4
11390 .IX Item "-mfmovd"
11391 Enable the use of the instruction \f(CW\*(C`fmovd\*(C'\fR.
11392 .IP "\fB\-mhitachi\fR" 4
11393 .IX Item "-mhitachi"
11394 Comply with the calling conventions defined by Renesas.
11395 .IP "\fB\-mrenesas\fR" 4
11396 .IX Item "-mrenesas"
11397 Comply with the calling conventions defined by Renesas.
11398 .IP "\fB\-mno\-renesas\fR" 4
11399 .IX Item "-mno-renesas"
11400 Comply with the calling conventions defined for \s-1GCC\s0 before the Renesas
11401 conventions were available.  This option is the default for all
11402 targets of the \s-1SH\s0 toolchain except for \fBsh-symbianelf\fR.
11403 .IP "\fB\-mnomacsave\fR" 4
11404 .IX Item "-mnomacsave"
11405 Mark the \f(CW\*(C`MAC\*(C'\fR register as call\-clobbered, even if
11406 \&\fB\-mhitachi\fR is given.
11407 .IP "\fB\-mieee\fR" 4
11408 .IX Item "-mieee"
11409 Increase IEEE-compliance of floating-point code.
11410 At the moment, this is equivalent to \fB\-fno\-finite\-math\-only\fR.
11411 When generating 16 bit \s-1SH\s0 opcodes, getting IEEE-conforming results for
11412 comparisons of NANs / infinities incurs extra overhead in every
11413 floating point comparison, therefore the default is set to
11414 \&\fB\-ffinite\-math\-only\fR.
11415 .IP "\fB\-misize\fR" 4
11416 .IX Item "-misize"
11417 Dump instruction size and location in the assembly code.
11418 .IP "\fB\-mpadstruct\fR" 4
11419 .IX Item "-mpadstruct"
11420 This option is deprecated.  It pads structures to multiple of 4 bytes,
11421 which is incompatible with the \s-1SH\s0 \s-1ABI\s0.
11422 .IP "\fB\-mspace\fR" 4
11423 .IX Item "-mspace"
11424 Optimize for space instead of speed.  Implied by \fB\-Os\fR.
11425 .IP "\fB\-mprefergot\fR" 4
11426 .IX Item "-mprefergot"
11427 When generating position-independent code, emit function calls using
11428 the Global Offset Table instead of the Procedure Linkage Table.
11429 .IP "\fB\-musermode\fR" 4
11430 .IX Item "-musermode"
11431 Generate a library function call to invalidate instruction cache
11432 entries, after fixing up a trampoline.  This library function call
11433 doesn't assume it can write to the whole memory address space.  This
11434 is the default when the target is \f(CW\*(C`sh\-*\-linux*\*(C'\fR.
11435 .IP "\fB\-multcost=\fR\fInumber\fR" 4
11436 .IX Item "-multcost=number"
11437 Set the cost to assume for a multiply insn.
11438 .IP "\fB\-mdiv=\fR\fIstrategy\fR" 4
11439 .IX Item "-mdiv=strategy"
11440 Set the division strategy to use for SHmedia code.  \fIstrategy\fR must be
11441 one of: call, call2, fp, inv, inv:minlat, inv20u, inv20l, inv:call,
11442 inv:call2, inv:fp .
11443 \&\*(L"fp\*(R" performs the operation in floating point.  This has a very high latency,
11444 but needs only a few instructions, so it might be a good choice if
11445 your code has enough easily exploitable \s-1ILP\s0 to allow the compiler to
11446 schedule the floating point instructions together with other instructions.
11447 Division by zero causes a floating point exception.
11448 \&\*(L"inv\*(R" uses integer operations to calculate the inverse of the divisor,
11449 and then multiplies the dividend with the inverse.  This strategy allows
11450 cse and hoisting of the inverse calculation.  Division by zero calculates
11451 an unspecified result, but does not trap.
11452 \&\*(L"inv:minlat\*(R" is a variant of \*(L"inv\*(R" where if no cse / hoisting opportunities
11453 have been found, or if the entire operation has been hoisted to the same
11454 place, the last stages of the inverse calculation are intertwined with the
11455 final multiply to reduce the overall latency, at the expense of using a few
11456 more instructions, and thus offering fewer scheduling opportunities with
11457 other code.
11458 \&\*(L"call\*(R" calls a library function that usually implements the inv:minlat
11459 strategy.
11460 This gives high code density for m5\-*media\-nofpu compilations.
11461 \&\*(L"call2\*(R" uses a different entry point of the same library function, where it
11462 assumes that a pointer to a lookup table has already been set up, which
11463 exposes the pointer load to cse / code hoisting optimizations.
11464 \&\*(L"inv:call\*(R", \*(L"inv:call2\*(R" and \*(L"inv:fp\*(R" all use the \*(L"inv\*(R" algorithm for initial
11465 code generation, but if the code stays unoptimized, revert to the \*(L"call\*(R",
11466 \&\*(L"call2\*(R", or \*(L"fp\*(R" strategies, respectively.  Note that the
11467 potentially-trapping side effect of division by zero is carried by a
11468 separate instruction, so it is possible that all the integer instructions
11469 are hoisted out, but the marker for the side effect stays where it is.
11470 A recombination to fp operations or a call is not possible in that case.
11471 \&\*(L"inv20u\*(R" and \*(L"inv20l\*(R" are variants of the \*(L"inv:minlat\*(R" strategy.  In the case
11472 that the inverse calculation was nor separated from the multiply, they speed
11473 up division where the dividend fits into 20 bits (plus sign where applicable),
11474 by inserting a test to skip a number of operations in this case; this test
11475 slows down the case of larger dividends.  inv20u assumes the case of a such
11476 a small dividend to be unlikely, and inv20l assumes it to be likely.
11477 .IP "\fB\-mdivsi3_libfunc=\fR\fIname\fR" 4
11478 .IX Item "-mdivsi3_libfunc=name"
11479 Set the name of the library function used for 32 bit signed division to
11480 \&\fIname\fR.  This only affect the name used in the call and inv:call
11481 division strategies, and the compiler will still expect the same
11482 sets of input/output/clobbered registers as if this option was not present.
11483 .IP "\fB\-madjust\-unroll\fR" 4
11484 .IX Item "-madjust-unroll"
11485 Throttle unrolling to avoid thrashing target registers.
11486 This option only has an effect if the gcc code base supports the
11487 \&\s-1TARGET_ADJUST_UNROLL_MAX\s0 target hook.
11488 .IP "\fB\-mindexed\-addressing\fR" 4
11489 .IX Item "-mindexed-addressing"
11490 Enable the use of the indexed addressing mode for SHmedia32/SHcompact.
11491 This is only safe if the hardware and/or \s-1OS\s0 implement 32 bit wrap-around
11492 semantics for the indexed addressing mode.  The architecture allows the
11493 implementation of processors with 64 bit \s-1MMU\s0, which the \s-1OS\s0 could use to
11494 get 32 bit addressing, but since no current hardware implementation supports
11495 this or any other way to make the indexed addressing mode safe to use in
11496 the 32 bit \s-1ABI\s0, the default is \-mno\-indexed\-addressing.
11497 .IP "\fB\-mgettrcost=\fR\fInumber\fR" 4
11498 .IX Item "-mgettrcost=number"
11499 Set the cost assumed for the gettr instruction to \fInumber\fR.
11500 The default is 2 if \fB\-mpt\-fixed\fR is in effect, 100 otherwise.
11501 .IP "\fB\-mpt\-fixed\fR" 4
11502 .IX Item "-mpt-fixed"
11503 Assume pt* instructions won't trap.  This will generally generate better
11504 scheduled code, but is unsafe on current hardware.  The current architecture
11505 definition says that ptabs and ptrel trap when the target anded with 3 is 3.
11506 This has the unintentional effect of making it unsafe to schedule ptabs /
11507 ptrel before a branch, or hoist it out of a loop.  For example,
11508 _\|_do_global_ctors, a part of libgcc that runs constructors at program
11509 startup, calls functions in a list which is delimited by \-1.  With the
11510 \&\-mpt\-fixed option, the ptabs will be done before testing against \-1.
11511 That means that all the constructors will be run a bit quicker, but when
11512 the loop comes to the end of the list, the program crashes because ptabs
11513 loads \-1 into a target register.  Since this option is unsafe for any
11514 hardware implementing the current architecture specification, the default
11515 is \-mno\-pt\-fixed.  Unless the user specifies a specific cost with
11516 \&\fB\-mgettrcost\fR, \-mno\-pt\-fixed also implies \fB\-mgettrcost=100\fR;
11517 this deters register allocation using target registers for storing
11518 ordinary integers.
11519 .IP "\fB\-minvalid\-symbols\fR" 4
11520 .IX Item "-minvalid-symbols"
11521 Assume symbols might be invalid.  Ordinary function symbols generated by
11522 the compiler will always be valid to load with movi/shori/ptabs or
11523 movi/shori/ptrel, but with assembler and/or linker tricks it is possible
11524 to generate symbols that will cause ptabs / ptrel to trap.
11525 This option is only meaningful when \fB\-mno\-pt\-fixed\fR is in effect.
11526 It will then prevent cross-basic-block cse, hoisting and most scheduling
11527 of symbol loads.  The default is \fB\-mno\-invalid\-symbols\fR.
11528 .PP
11529 \fI\s-1SPARC\s0 Options\fR
11530 .IX Subsection "SPARC Options"
11531 .PP
11532 These \fB\-m\fR options are supported on the \s-1SPARC:\s0
11533 .IP "\fB\-mno\-app\-regs\fR" 4
11534 .IX Item "-mno-app-regs"
11535 .PD 0
11536 .IP "\fB\-mapp\-regs\fR" 4
11537 .IX Item "-mapp-regs"
11538 .PD
11539 Specify \fB\-mapp\-regs\fR to generate output using the global registers
11540 2 through 4, which the \s-1SPARC\s0 \s-1SVR4\s0 \s-1ABI\s0 reserves for applications.  This
11541 is the default.
11542 .Sp
11543 To be fully \s-1SVR4\s0 \s-1ABI\s0 compliant at the cost of some performance loss,
11544 specify \fB\-mno\-app\-regs\fR.  You should compile libraries and system
11545 software with this option.
11546 .IP "\fB\-mfpu\fR" 4
11547 .IX Item "-mfpu"
11548 .PD 0
11549 .IP "\fB\-mhard\-float\fR" 4
11550 .IX Item "-mhard-float"
11551 .PD
11552 Generate output containing floating point instructions.  This is the
11553 default.
11554 .IP "\fB\-mno\-fpu\fR" 4
11555 .IX Item "-mno-fpu"
11556 .PD 0
11557 .IP "\fB\-msoft\-float\fR" 4
11558 .IX Item "-msoft-float"
11559 .PD
11560 Generate output containing library calls for floating point.
11561 \&\fBWarning:\fR the requisite libraries are not available for all \s-1SPARC\s0
11562 targets.  Normally the facilities of the machine's usual C compiler are
11563 used, but this cannot be done directly in cross\-compilation.  You must make
11564 your own arrangements to provide suitable library functions for
11565 cross\-compilation.  The embedded targets \fBsparc\-*\-aout\fR and
11566 \&\fBsparclite\-*\-*\fR do provide software floating point support.
11567 .Sp
11568 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
11569 therefore, it is only useful if you compile \fIall\fR of a program with
11570 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
11571 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
11572 this to work.
11573 .IP "\fB\-mhard\-quad\-float\fR" 4
11574 .IX Item "-mhard-quad-float"
11575 Generate output containing quad-word (long double) floating point
11576 instructions.
11577 .IP "\fB\-msoft\-quad\-float\fR" 4
11578 .IX Item "-msoft-quad-float"
11579 Generate output containing library calls for quad-word (long double)
11580 floating point instructions.  The functions called are those specified
11581 in the \s-1SPARC\s0 \s-1ABI\s0.  This is the default.
11582 .Sp
11583 As of this writing, there are no \s-1SPARC\s0 implementations that have hardware
11584 support for the quad-word floating point instructions.  They all invoke
11585 a trap handler for one of these instructions, and then the trap handler
11586 emulates the effect of the instruction.  Because of the trap handler overhead,
11587 this is much slower than calling the \s-1ABI\s0 library routines.  Thus the
11588 \&\fB\-msoft\-quad\-float\fR option is the default.
11589 .IP "\fB\-mno\-unaligned\-doubles\fR" 4
11590 .IX Item "-mno-unaligned-doubles"
11591 .PD 0
11592 .IP "\fB\-munaligned\-doubles\fR" 4
11593 .IX Item "-munaligned-doubles"
11594 .PD
11595 Assume that doubles have 8 byte alignment.  This is the default.
11596 .Sp
11597 With \fB\-munaligned\-doubles\fR, \s-1GCC\s0 assumes that doubles have 8 byte
11598 alignment only if they are contained in another type, or if they have an
11599 absolute address.  Otherwise, it assumes they have 4 byte alignment.
11600 Specifying this option avoids some rare compatibility problems with code
11601 generated by other compilers.  It is not the default because it results
11602 in a performance loss, especially for floating point code.
11603 .IP "\fB\-mno\-faster\-structs\fR" 4
11604 .IX Item "-mno-faster-structs"
11605 .PD 0
11606 .IP "\fB\-mfaster\-structs\fR" 4
11607 .IX Item "-mfaster-structs"
11608 .PD
11609 With \fB\-mfaster\-structs\fR, the compiler assumes that structures
11610 should have 8 byte alignment.  This enables the use of pairs of
11611 \&\f(CW\*(C`ldd\*(C'\fR and \f(CW\*(C`std\*(C'\fR instructions for copies in structure
11612 assignment, in place of twice as many \f(CW\*(C`ld\*(C'\fR and \f(CW\*(C`st\*(C'\fR pairs.
11613 However, the use of this changed alignment directly violates the \s-1SPARC\s0
11614 \&\s-1ABI\s0.  Thus, it's intended only for use on targets where the developer
11615 acknowledges that their resulting code will not be directly in line with
11616 the rules of the \s-1ABI\s0.
11617 .IP "\fB\-mimpure\-text\fR" 4
11618 .IX Item "-mimpure-text"
11619 \&\fB\-mimpure\-text\fR, used in addition to \fB\-shared\fR, tells
11620 the compiler to not pass \fB\-z text\fR to the linker when linking a
11621 shared object.  Using this option, you can link position-dependent
11622 code into a shared object.
11623 .Sp
11624 \&\fB\-mimpure\-text\fR suppresses the \*(L"relocations remain against
11625 allocatable but non-writable sections\*(R" linker error message.
11626 However, the necessary relocations will trigger copy\-on\-write, and the
11627 shared object is not actually shared across processes.  Instead of
11628 using \fB\-mimpure\-text\fR, you should compile all source code with
11629 \&\fB\-fpic\fR or \fB\-fPIC\fR.
11630 .Sp
11631 This option is only available on SunOS and Solaris.
11632 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
11633 .IX Item "-mcpu=cpu_type"
11634 Set the instruction set, register set, and instruction scheduling parameters
11635 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
11636 \&\fBv7\fR, \fBcypress\fR, \fBv8\fR, \fBsupersparc\fR, \fBsparclite\fR,
11637 \&\fBf930\fR, \fBf934\fR, \fBhypersparc\fR, \fBsparclite86x\fR,
11638 \&\fBsparclet\fR, \fBtsc701\fR, \fBv9\fR, \fBultrasparc\fR,
11639 \&\fBultrasparc3\fR, and \fBniagara\fR.
11640 .Sp
11641 Default instruction scheduling parameters are used for values that select
11642 an architecture and not an implementation.  These are \fBv7\fR, \fBv8\fR,
11643 \&\fBsparclite\fR, \fBsparclet\fR, \fBv9\fR.
11644 .Sp
11645 Here is a list of each supported architecture and their supported
11646 implementations.
11647 .Sp
11648 .Vb 5
11649 \&            v7:             cypress
11650 \&            v8:             supersparc, hypersparc
11651 \&            sparclite:      f930, f934, sparclite86x
11652 \&            sparclet:       tsc701
11653 \&            v9:             ultrasparc, ultrasparc3, niagara
11654 .Ve
11655 .Sp
11656 By default (unless configured otherwise), \s-1GCC\s0 generates code for the V7
11657 variant of the \s-1SPARC\s0 architecture.  With \fB\-mcpu=cypress\fR, the compiler
11658 additionally optimizes it for the Cypress \s-1CY7C602\s0 chip, as used in the
11659 SPARCStation/SPARCServer 3xx series.  This is also appropriate for the older
11660 SPARCStation 1, 2, \s-1IPX\s0 etc.
11661 .Sp
11662 With \fB\-mcpu=v8\fR, \s-1GCC\s0 generates code for the V8 variant of the \s-1SPARC\s0
11663 architecture.  The only difference from V7 code is that the compiler emits
11664 the integer multiply and integer divide instructions which exist in \s-1SPARC\-V8\s0
11665 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=supersparc\fR, the compiler additionally
11666 optimizes it for the SuperSPARC chip, as used in the SPARCStation 10, 1000 and
11667 2000 series.
11668 .Sp
11669 With \fB\-mcpu=sparclite\fR, \s-1GCC\s0 generates code for the SPARClite variant of
11670 the \s-1SPARC\s0 architecture.  This adds the integer multiply, integer divide step
11671 and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClite but not in \s-1SPARC\-V7\s0.
11672 With \fB\-mcpu=f930\fR, the compiler additionally optimizes it for the
11673 Fujitsu \s-1MB86930\s0 chip, which is the original SPARClite, with no \s-1FPU\s0.  With
11674 \&\fB\-mcpu=f934\fR, the compiler additionally optimizes it for the Fujitsu
11675 \&\s-1MB86934\s0 chip, which is the more recent SPARClite with \s-1FPU\s0.
11676 .Sp
11677 With \fB\-mcpu=sparclet\fR, \s-1GCC\s0 generates code for the SPARClet variant of
11678 the \s-1SPARC\s0 architecture.  This adds the integer multiply, multiply/accumulate,
11679 integer divide step and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClet
11680 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=tsc701\fR, the compiler additionally
11681 optimizes it for the \s-1TEMIC\s0 SPARClet chip.
11682 .Sp
11683 With \fB\-mcpu=v9\fR, \s-1GCC\s0 generates code for the V9 variant of the \s-1SPARC\s0
11684 architecture.  This adds 64\-bit integer and floating-point move instructions,
11685 3 additional floating-point condition code registers and conditional move
11686 instructions.  With \fB\-mcpu=ultrasparc\fR, the compiler additionally
11687 optimizes it for the Sun UltraSPARC I/II/IIi chips.  With
11688 \&\fB\-mcpu=ultrasparc3\fR, the compiler additionally optimizes it for the
11689 Sun UltraSPARC III/III+/IIIi/IIIi+/IV/IV+ chips.  With
11690 \&\fB\-mcpu=niagara\fR, the compiler additionally optimizes it for
11691 Sun UltraSPARC T1 chips.
11692 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
11693 .IX Item "-mtune=cpu_type"
11694 Set the instruction scheduling parameters for machine type
11695 \&\fIcpu_type\fR, but do not set the instruction set or register set that the
11696 option \fB\-mcpu=\fR\fIcpu_type\fR would.
11697 .Sp
11698 The same values for \fB\-mcpu=\fR\fIcpu_type\fR can be used for
11699 \&\fB\-mtune=\fR\fIcpu_type\fR, but the only useful values are those
11700 that select a particular cpu implementation.  Those are \fBcypress\fR,
11701 \&\fBsupersparc\fR, \fBhypersparc\fR, \fBf930\fR, \fBf934\fR,
11702 \&\fBsparclite86x\fR, \fBtsc701\fR, \fBultrasparc\fR,
11703 \&\fBultrasparc3\fR, and \fBniagara\fR.
11704 .IP "\fB\-mv8plus\fR" 4
11705 .IX Item "-mv8plus"
11706 .PD 0
11707 .IP "\fB\-mno\-v8plus\fR" 4
11708 .IX Item "-mno-v8plus"
11709 .PD
11710 With \fB\-mv8plus\fR, \s-1GCC\s0 generates code for the \s-1SPARC\-V8+\s0 \s-1ABI\s0.  The
11711 difference from the V8 \s-1ABI\s0 is that the global and out registers are
11712 considered 64\-bit wide.  This is enabled by default on Solaris in 32\-bit
11713 mode for all \s-1SPARC\-V9\s0 processors.
11714 .IP "\fB\-mvis\fR" 4
11715 .IX Item "-mvis"
11716 .PD 0
11717 .IP "\fB\-mno\-vis\fR" 4
11718 .IX Item "-mno-vis"
11719 .PD
11720 With \fB\-mvis\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
11721 Visual Instruction Set extensions.  The default is \fB\-mno\-vis\fR.
11722 .PP
11723 These \fB\-m\fR options are supported in addition to the above
11724 on \s-1SPARC\-V9\s0 processors in 64\-bit environments:
11725 .IP "\fB\-mlittle\-endian\fR" 4
11726 .IX Item "-mlittle-endian"
11727 Generate code for a processor running in little-endian mode.  It is only
11728 available for a few configurations and most notably not on Solaris and Linux.
11729 .IP "\fB\-m32\fR" 4
11730 .IX Item "-m32"
11731 .PD 0
11732 .IP "\fB\-m64\fR" 4
11733 .IX Item "-m64"
11734 .PD
11735 Generate code for a 32\-bit or 64\-bit environment.
11736 The 32\-bit environment sets int, long and pointer to 32 bits.
11737 The 64\-bit environment sets int to 32 bits and long and pointer
11738 to 64 bits.
11739 .IP "\fB\-mcmodel=medlow\fR" 4
11740 .IX Item "-mcmodel=medlow"
11741 Generate code for the Medium/Low code model: 64\-bit addresses, programs
11742 must be linked in the low 32 bits of memory.  Programs can be statically
11743 or dynamically linked.
11744 .IP "\fB\-mcmodel=medmid\fR" 4
11745 .IX Item "-mcmodel=medmid"
11746 Generate code for the Medium/Middle code model: 64\-bit addresses, programs
11747 must be linked in the low 44 bits of memory, the text and data segments must
11748 be less than 2GB in size and the data segment must be located within 2GB of
11749 the text segment.
11750 .IP "\fB\-mcmodel=medany\fR" 4
11751 .IX Item "-mcmodel=medany"
11752 Generate code for the Medium/Anywhere code model: 64\-bit addresses, programs
11753 may be linked anywhere in memory, the text and data segments must be less
11754 than 2GB in size and the data segment must be located within 2GB of the
11755 text segment.
11756 .IP "\fB\-mcmodel=embmedany\fR" 4
11757 .IX Item "-mcmodel=embmedany"
11758 Generate code for the Medium/Anywhere code model for embedded systems:
11759 64\-bit addresses, the text and data segments must be less than 2GB in
11760 size, both starting anywhere in memory (determined at link time).  The
11761 global register \f(CW%g4\fR points to the base of the data segment.  Programs
11762 are statically linked and \s-1PIC\s0 is not supported.
11763 .IP "\fB\-mstack\-bias\fR" 4
11764 .IX Item "-mstack-bias"
11765 .PD 0
11766 .IP "\fB\-mno\-stack\-bias\fR" 4
11767 .IX Item "-mno-stack-bias"
11768 .PD
11769 With \fB\-mstack\-bias\fR, \s-1GCC\s0 assumes that the stack pointer, and
11770 frame pointer if present, are offset by \-2047 which must be added back
11771 when making stack frame references.  This is the default in 64\-bit mode.
11772 Otherwise, assume no such offset is present.
11773 .PP
11774 These switches are supported in addition to the above on Solaris:
11775 .IP "\fB\-threads\fR" 4
11776 .IX Item "-threads"
11777 Add support for multithreading using the Solaris threads library.  This
11778 option sets flags for both the preprocessor and linker.  This option does
11779 not affect the thread safety of object code produced by the compiler or
11780 that of libraries supplied with it.
11781 .IP "\fB\-pthreads\fR" 4
11782 .IX Item "-pthreads"
11783 Add support for multithreading using the \s-1POSIX\s0 threads library.  This
11784 option sets flags for both the preprocessor and linker.  This option does
11785 not affect the thread safety of object code produced  by the compiler or
11786 that of libraries supplied with it.
11787 .IP "\fB\-pthread\fR" 4
11788 .IX Item "-pthread"
11789 This is a synonym for \fB\-pthreads\fR.
11790 .PP
11791 \fIOptions for System V\fR
11792 .IX Subsection "Options for System V"
11793 .PP
11794 These additional options are available on System V Release 4 for
11795 compatibility with other compilers on those systems:
11796 .IP "\fB\-G\fR" 4
11797 .IX Item "-G"
11798 Create a shared object.
11799 It is recommended that \fB\-symbolic\fR or \fB\-shared\fR be used instead.
11800 .IP "\fB\-Qy\fR" 4
11801 .IX Item "-Qy"
11802 Identify the versions of each tool used by the compiler, in a
11803 \&\f(CW\*(C`.ident\*(C'\fR assembler directive in the output.
11804 .IP "\fB\-Qn\fR" 4
11805 .IX Item "-Qn"
11806 Refrain from adding \f(CW\*(C`.ident\*(C'\fR directives to the output file (this is
11807 the default).
11808 .IP "\fB\-YP,\fR\fIdirs\fR" 4
11809 .IX Item "-YP,dirs"
11810 Search the directories \fIdirs\fR, and no others, for libraries
11811 specified with \fB\-l\fR.
11812 .IP "\fB\-Ym,\fR\fIdir\fR" 4
11813 .IX Item "-Ym,dir"
11814 Look in the directory \fIdir\fR to find the M4 preprocessor.
11815 The assembler uses this option.
11816 .PP
11817 \fITMS320C3x/C4x Options\fR
11818 .IX Subsection "TMS320C3x/C4x Options"
11819 .PP
11820 These \fB\-m\fR options are defined for TMS320C3x/C4x implementations:
11821 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
11822 .IX Item "-mcpu=cpu_type"
11823 Set the instruction set, register set, and instruction scheduling
11824 parameters for machine type \fIcpu_type\fR.  Supported values for
11825 \&\fIcpu_type\fR are \fBc30\fR, \fBc31\fR, \fBc32\fR, \fBc40\fR, and
11826 \&\fBc44\fR.  The default is \fBc40\fR to generate code for the
11827 \&\s-1TMS320C40\s0.
11828 .IP "\fB\-mbig\-memory\fR" 4
11829 .IX Item "-mbig-memory"
11830 .PD 0
11831 .IP "\fB\-mbig\fR" 4
11832 .IX Item "-mbig"
11833 .IP "\fB\-msmall\-memory\fR" 4
11834 .IX Item "-msmall-memory"
11835 .IP "\fB\-msmall\fR" 4
11836 .IX Item "-msmall"
11837 .PD
11838 Generates code for the big or small memory model.  The small memory
11839 model assumed that all data fits into one 64K word page.  At run-time
11840 the data page (\s-1DP\s0) register must be set to point to the 64K page
11841 containing the .bss and .data program sections.  The big memory model is
11842 the default and requires reloading of the \s-1DP\s0 register for every direct
11843 memory access.
11844 .IP "\fB\-mbk\fR" 4
11845 .IX Item "-mbk"
11846 .PD 0
11847 .IP "\fB\-mno\-bk\fR" 4
11848 .IX Item "-mno-bk"
11849 .PD
11850 Allow (disallow) allocation of general integer operands into the block
11851 count register \s-1BK\s0.
11852 .IP "\fB\-mdb\fR" 4
11853 .IX Item "-mdb"
11854 .PD 0
11855 .IP "\fB\-mno\-db\fR" 4
11856 .IX Item "-mno-db"
11857 .PD
11858 Enable (disable) generation of code using decrement and branch,
11859 DBcond(D), instructions.  This is enabled by default for the C4x.  To be
11860 on the safe side, this is disabled for the C3x, since the maximum
11861 iteration count on the C3x is 2^{23 + 1} (but who iterates loops more than
11862 2^{23} times on the C3x?).  Note that \s-1GCC\s0 will try to reverse a loop so
11863 that it can utilize the decrement and branch instruction, but will give
11864 up if there is more than one memory reference in the loop.  Thus a loop
11865 where the loop counter is decremented can generate slightly more
11866 efficient code, in cases where the \s-1RPTB\s0 instruction cannot be utilized.
11867 .IP "\fB\-mdp\-isr\-reload\fR" 4
11868 .IX Item "-mdp-isr-reload"
11869 .PD 0
11870 .IP "\fB\-mparanoid\fR" 4
11871 .IX Item "-mparanoid"
11872 .PD
11873 Force the \s-1DP\s0 register to be saved on entry to an interrupt service
11874 routine (\s-1ISR\s0), reloaded to point to the data section, and restored on
11875 exit from the \s-1ISR\s0.  This should not be required unless someone has
11876 violated the small memory model by modifying the \s-1DP\s0 register, say within
11877 an object library.
11878 .IP "\fB\-mmpyi\fR" 4
11879 .IX Item "-mmpyi"
11880 .PD 0
11881 .IP "\fB\-mno\-mpyi\fR" 4
11882 .IX Item "-mno-mpyi"
11883 .PD
11884 For the C3x use the 24\-bit \s-1MPYI\s0 instruction for integer multiplies
11885 instead of a library call to guarantee 32\-bit results.  Note that if one
11886 of the operands is a constant, then the multiplication will be performed
11887 using shifts and adds.  If the \fB\-mmpyi\fR option is not specified for the C3x,
11888 then squaring operations are performed inline instead of a library call.
11889 .IP "\fB\-mfast\-fix\fR" 4
11890 .IX Item "-mfast-fix"
11891 .PD 0
11892 .IP "\fB\-mno\-fast\-fix\fR" 4
11893 .IX Item "-mno-fast-fix"
11894 .PD
11895 The C3x/C4x \s-1FIX\s0 instruction to convert a floating point value to an
11896 integer value chooses the nearest integer less than or equal to the
11897 floating point value rather than to the nearest integer.  Thus if the
11898 floating point number is negative, the result will be incorrectly
11899 truncated an additional code is necessary to detect and correct this
11900 case.  This option can be used to disable generation of the additional
11901 code required to correct the result.
11902 .IP "\fB\-mrptb\fR" 4
11903 .IX Item "-mrptb"
11904 .PD 0
11905 .IP "\fB\-mno\-rptb\fR" 4
11906 .IX Item "-mno-rptb"
11907 .PD
11908 Enable (disable) generation of repeat block sequences using the \s-1RPTB\s0
11909 instruction for zero overhead looping.  The \s-1RPTB\s0 construct is only used
11910 for innermost loops that do not call functions or jump across the loop
11911 boundaries.  There is no advantage having nested \s-1RPTB\s0 loops due to the
11912 overhead required to save and restore the \s-1RC\s0, \s-1RS\s0, and \s-1RE\s0 registers.
11913 This is enabled by default with \fB\-O2\fR.
11914 .IP "\fB\-mrpts=\fR\fIcount\fR" 4
11915 .IX Item "-mrpts=count"
11916 .PD 0
11917 .IP "\fB\-mno\-rpts\fR" 4
11918 .IX Item "-mno-rpts"
11919 .PD
11920 Enable (disable) the use of the single instruction repeat instruction
11921 \&\s-1RPTS\s0.  If a repeat block contains a single instruction, and the loop
11922 count can be guaranteed to be less than the value \fIcount\fR, \s-1GCC\s0 will
11923 emit a \s-1RPTS\s0 instruction instead of a \s-1RPTB\s0.  If no value is specified,
11924 then a \s-1RPTS\s0 will be emitted even if the loop count cannot be determined
11925 at compile time.  Note that the repeated instruction following \s-1RPTS\s0 does
11926 not have to be reloaded from memory each iteration, thus freeing up the
11927 \&\s-1CPU\s0 buses for operands.  However, since interrupts are blocked by this
11928 instruction, it is disabled by default.
11929 .IP "\fB\-mloop\-unsigned\fR" 4
11930 .IX Item "-mloop-unsigned"
11931 .PD 0
11932 .IP "\fB\-mno\-loop\-unsigned\fR" 4
11933 .IX Item "-mno-loop-unsigned"
11934 .PD
11935 The maximum iteration count when using \s-1RPTS\s0 and \s-1RPTB\s0 (and \s-1DB\s0 on the C40)
11936 is 2^{31 + 1} since these instructions test if the iteration count is
11937 negative to terminate the loop.  If the iteration count is unsigned
11938 there is a possibility than the 2^{31 + 1} maximum iteration count may be
11939 exceeded.  This switch allows an unsigned iteration count.
11940 .IP "\fB\-mti\fR" 4
11941 .IX Item "-mti"
11942 Try to emit an assembler syntax that the \s-1TI\s0 assembler (asm30) is happy
11943 with.  This also enforces compatibility with the \s-1API\s0 employed by the \s-1TI\s0
11944 C3x C compiler.  For example, long doubles are passed as structures
11945 rather than in floating point registers.
11946 .IP "\fB\-mregparm\fR" 4
11947 .IX Item "-mregparm"
11948 .PD 0
11949 .IP "\fB\-mmemparm\fR" 4
11950 .IX Item "-mmemparm"
11951 .PD
11952 Generate code that uses registers (stack) for passing arguments to functions.
11953 By default, arguments are passed in registers where possible rather
11954 than by pushing arguments on to the stack.
11955 .IP "\fB\-mparallel\-insns\fR" 4
11956 .IX Item "-mparallel-insns"
11957 .PD 0
11958 .IP "\fB\-mno\-parallel\-insns\fR" 4
11959 .IX Item "-mno-parallel-insns"
11960 .PD
11961 Allow the generation of parallel instructions.  This is enabled by
11962 default with \fB\-O2\fR.
11963 .IP "\fB\-mparallel\-mpy\fR" 4
11964 .IX Item "-mparallel-mpy"
11965 .PD 0
11966 .IP "\fB\-mno\-parallel\-mpy\fR" 4
11967 .IX Item "-mno-parallel-mpy"
11968 .PD
11969 Allow the generation of MPY||ADD and MPY||SUB parallel instructions,
11970 provided \fB\-mparallel\-insns\fR is also specified.  These instructions have
11971 tight register constraints which can pessimize the code generation
11972 of large functions.
11973 .PP
11974 \fIV850 Options\fR
11975 .IX Subsection "V850 Options"
11976 .PP
11977 These \fB\-m\fR options are defined for V850 implementations:
11978 .IP "\fB\-mlong\-calls\fR" 4
11979 .IX Item "-mlong-calls"
11980 .PD 0
11981 .IP "\fB\-mno\-long\-calls\fR" 4
11982 .IX Item "-mno-long-calls"
11983 .PD
11984 Treat all calls as being far away (near).  If calls are assumed to be
11985 far away, the compiler will always load the functions address up into a
11986 register, and call indirect through the pointer.
11987 .IP "\fB\-mno\-ep\fR" 4
11988 .IX Item "-mno-ep"
11989 .PD 0
11990 .IP "\fB\-mep\fR" 4
11991 .IX Item "-mep"
11992 .PD
11993 Do not optimize (do optimize) basic blocks that use the same index
11994 pointer 4 or more times to copy pointer into the \f(CW\*(C`ep\*(C'\fR register, and
11995 use the shorter \f(CW\*(C`sld\*(C'\fR and \f(CW\*(C`sst\*(C'\fR instructions.  The \fB\-mep\fR
11996 option is on by default if you optimize.
11997 .IP "\fB\-mno\-prolog\-function\fR" 4
11998 .IX Item "-mno-prolog-function"
11999 .PD 0
12000 .IP "\fB\-mprolog\-function\fR" 4
12001 .IX Item "-mprolog-function"
12002 .PD
12003 Do not use (do use) external functions to save and restore registers
12004 at the prologue and epilogue of a function.  The external functions
12005 are slower, but use less code space if more than one function saves
12006 the same number of registers.  The \fB\-mprolog\-function\fR option
12007 is on by default if you optimize.
12008 .IP "\fB\-mspace\fR" 4
12009 .IX Item "-mspace"
12010 Try to make the code as small as possible.  At present, this just turns
12011 on the \fB\-mep\fR and \fB\-mprolog\-function\fR options.
12012 .IP "\fB\-mtda=\fR\fIn\fR" 4
12013 .IX Item "-mtda=n"
12014 Put static or global variables whose size is \fIn\fR bytes or less into
12015 the tiny data area that register \f(CW\*(C`ep\*(C'\fR points to.  The tiny data
12016 area can hold up to 256 bytes in total (128 bytes for byte references).
12017 .IP "\fB\-msda=\fR\fIn\fR" 4
12018 .IX Item "-msda=n"
12019 Put static or global variables whose size is \fIn\fR bytes or less into
12020 the small data area that register \f(CW\*(C`gp\*(C'\fR points to.  The small data
12021 area can hold up to 64 kilobytes.
12022 .IP "\fB\-mzda=\fR\fIn\fR" 4
12023 .IX Item "-mzda=n"
12024 Put static or global variables whose size is \fIn\fR bytes or less into
12025 the first 32 kilobytes of memory.
12026 .IP "\fB\-mv850\fR" 4
12027 .IX Item "-mv850"
12028 Specify that the target processor is the V850.
12029 .IP "\fB\-mbig\-switch\fR" 4
12030 .IX Item "-mbig-switch"
12031 Generate code suitable for big switch tables.  Use this option only if
12032 the assembler/linker complain about out of range branches within a switch
12033 table.
12034 .IP "\fB\-mapp\-regs\fR" 4
12035 .IX Item "-mapp-regs"
12036 This option will cause r2 and r5 to be used in the code generated by
12037 the compiler.  This setting is the default.
12038 .IP "\fB\-mno\-app\-regs\fR" 4
12039 .IX Item "-mno-app-regs"
12040 This option will cause r2 and r5 to be treated as fixed registers.
12041 .IP "\fB\-mv850e1\fR" 4
12042 .IX Item "-mv850e1"
12043 Specify that the target processor is the V850E1.  The preprocessor
12044 constants \fB_\|_v850e1_\|_\fR and \fB_\|_v850e_\|_\fR will be defined if
12045 this option is used.
12046 .IP "\fB\-mv850e\fR" 4
12047 .IX Item "-mv850e"
12048 Specify that the target processor is the V850E.  The preprocessor
12049 constant \fB_\|_v850e_\|_\fR will be defined if this option is used.
12050 .Sp
12051 If neither \fB\-mv850\fR nor \fB\-mv850e\fR nor \fB\-mv850e1\fR
12052 are defined then a default target processor will be chosen and the
12053 relevant \fB_\|_v850*_\|_\fR preprocessor constant will be defined.
12054 .Sp
12055 The preprocessor constants \fB_\|_v850\fR and \fB_\|_v851_\|_\fR are always
12056 defined, regardless of which processor variant is the target.
12057 .IP "\fB\-mdisable\-callt\fR" 4
12058 .IX Item "-mdisable-callt"
12059 This option will suppress generation of the \s-1CALLT\s0 instruction for the
12060 v850e and v850e1 flavors of the v850 architecture.  The default is
12061 \&\fB\-mno\-disable\-callt\fR which allows the \s-1CALLT\s0 instruction to be used.
12062 .PP
12063 \fI\s-1VAX\s0 Options\fR
12064 .IX Subsection "VAX Options"
12065 .PP
12066 These \fB\-m\fR options are defined for the \s-1VAX:\s0
12067 .IP "\fB\-munix\fR" 4
12068 .IX Item "-munix"
12069 Do not output certain jump instructions (\f(CW\*(C`aobleq\*(C'\fR and so on)
12070 that the Unix assembler for the \s-1VAX\s0 cannot handle across long
12071 ranges.
12072 .IP "\fB\-mgnu\fR" 4
12073 .IX Item "-mgnu"
12074 Do output those jump instructions, on the assumption that you
12075 will assemble with the \s-1GNU\s0 assembler.
12076 .IP "\fB\-mg\fR" 4
12077 .IX Item "-mg"
12078 Output code for g\-format floating point numbers instead of d\-format.
12079 .PP
12080 \fIx86\-64 Options\fR
12081 .IX Subsection "x86-64 Options"
12082 .PP
12083 These are listed under 
12084 .PP
12085 \fIXstormy16 Options\fR
12086 .IX Subsection "Xstormy16 Options"
12087 .PP
12088 These options are defined for Xstormy16:
12089 .IP "\fB\-msim\fR" 4
12090 .IX Item "-msim"
12091 Choose startup files and linker script suitable for the simulator.
12092 .PP
12093 \fIXtensa Options\fR
12094 .IX Subsection "Xtensa Options"
12095 .PP
12096 These options are supported for Xtensa targets:
12097 .IP "\fB\-mconst16\fR" 4
12098 .IX Item "-mconst16"
12099 .PD 0
12100 .IP "\fB\-mno\-const16\fR" 4
12101 .IX Item "-mno-const16"
12102 .PD
12103 Enable or disable use of \f(CW\*(C`CONST16\*(C'\fR instructions for loading
12104 constant values.  The \f(CW\*(C`CONST16\*(C'\fR instruction is currently not a
12105 standard option from Tensilica.  When enabled, \f(CW\*(C`CONST16\*(C'\fR
12106 instructions are always used in place of the standard \f(CW\*(C`L32R\*(C'\fR
12107 instructions.  The use of \f(CW\*(C`CONST16\*(C'\fR is enabled by default only if
12108 the \f(CW\*(C`L32R\*(C'\fR instruction is not available.
12109 .IP "\fB\-mfused\-madd\fR" 4
12110 .IX Item "-mfused-madd"
12111 .PD 0
12112 .IP "\fB\-mno\-fused\-madd\fR" 4
12113 .IX Item "-mno-fused-madd"
12114 .PD
12115 Enable or disable use of fused multiply/add and multiply/subtract
12116 instructions in the floating-point option.  This has no effect if the
12117 floating-point option is not also enabled.  Disabling fused multiply/add
12118 and multiply/subtract instructions forces the compiler to use separate
12119 instructions for the multiply and add/subtract operations.  This may be
12120 desirable in some cases where strict \s-1IEEE\s0 754\-compliant results are
12121 required: the fused multiply add/subtract instructions do not round the
12122 intermediate result, thereby producing results with \fImore\fR bits of
12123 precision than specified by the \s-1IEEE\s0 standard.  Disabling fused multiply
12124 add/subtract instructions also ensures that the program output is not
12125 sensitive to the compiler's ability to combine multiply and add/subtract
12126 operations.
12127 .IP "\fB\-mtext\-section\-literals\fR" 4
12128 .IX Item "-mtext-section-literals"
12129 .PD 0
12130 .IP "\fB\-mno\-text\-section\-literals\fR" 4
12131 .IX Item "-mno-text-section-literals"
12132 .PD
12133 Control the treatment of literal pools.  The default is
12134 \&\fB\-mno\-text\-section\-literals\fR, which places literals in a separate
12135 section in the output file.  This allows the literal pool to be placed
12136 in a data \s-1RAM/ROM\s0, and it also allows the linker to combine literal
12137 pools from separate object files to remove redundant literals and
12138 improve code size.  With \fB\-mtext\-section\-literals\fR, the literals
12139 are interspersed in the text section in order to keep them as close as
12140 possible to their references.  This may be necessary for large assembly
12141 files.
12142 .IP "\fB\-mtarget\-align\fR" 4
12143 .IX Item "-mtarget-align"
12144 .PD 0
12145 .IP "\fB\-mno\-target\-align\fR" 4
12146 .IX Item "-mno-target-align"
12147 .PD
12148 When this option is enabled, \s-1GCC\s0 instructs the assembler to
12149 automatically align instructions to reduce branch penalties at the
12150 expense of some code density.  The assembler attempts to widen density
12151 instructions to align branch targets and the instructions following call
12152 instructions.  If there are not enough preceding safe density
12153 instructions to align a target, no widening will be performed.  The
12154 default is \fB\-mtarget\-align\fR.  These options do not affect the
12155 treatment of auto-aligned instructions like \f(CW\*(C`LOOP\*(C'\fR, which the
12156 assembler will always align, either by widening density instructions or
12157 by inserting no-op instructions.
12158 .IP "\fB\-mlongcalls\fR" 4
12159 .IX Item "-mlongcalls"
12160 .PD 0
12161 .IP "\fB\-mno\-longcalls\fR" 4
12162 .IX Item "-mno-longcalls"
12163 .PD
12164 When this option is enabled, \s-1GCC\s0 instructs the assembler to translate
12165 direct calls to indirect calls unless it can determine that the target
12166 of a direct call is in the range allowed by the call instruction.  This
12167 translation typically occurs for calls to functions in other source
12168 files.  Specifically, the assembler translates a direct \f(CW\*(C`CALL\*(C'\fR
12169 instruction into an \f(CW\*(C`L32R\*(C'\fR followed by a \f(CW\*(C`CALLX\*(C'\fR instruction.
12170 The default is \fB\-mno\-longcalls\fR.  This option should be used in
12171 programs where the call target can potentially be out of range.  This
12172 option is implemented in the assembler, not the compiler, so the
12173 assembly code generated by \s-1GCC\s0 will still show direct call
12174 instructions\-\-\-look at the disassembled object code to see the actual
12175 instructions.  Note that the assembler will use an indirect call for
12176 every cross-file call, not just those that really will be out of range.
12177 .PP
12178 \fIzSeries Options\fR
12179 .IX Subsection "zSeries Options"
12180 .PP
12181 These are listed under 
12182 .Sh "Options for Code Generation Conventions"
12183 .IX Subsection "Options for Code Generation Conventions"
12184 These machine-independent options control the interface conventions
12185 used in code generation.
12186 .PP
12187 Most of them have both positive and negative forms; the negative form
12188 of \fB\-ffoo\fR would be \fB\-fno\-foo\fR.  In the table below, only
12189 one of the forms is listed\-\-\-the one which is not the default.  You
12190 can figure out the other form by either removing \fBno\-\fR or adding
12191 it.
12192 .IP "\fB\-fbounds\-check\fR" 4
12193 .IX Item "-fbounds-check"
12194 For front-ends that support it, generate additional code to check that
12195 indices used to access arrays are within the declared range.  This is
12196 currently only supported by the Java and Fortran front\-ends, where
12197 this option defaults to true and false respectively.
12198 .IP "\fB\-ftrapv\fR" 4
12199 .IX Item "-ftrapv"
12200 This option generates traps for signed overflow on addition, subtraction,
12201 multiplication operations.
12202 .IP "\fB\-fwrapv\fR" 4
12203 .IX Item "-fwrapv"
12204 This option instructs the compiler to assume that signed arithmetic
12205 overflow of addition, subtraction and multiplication wraps around
12206 using twos-complement representation.  This flag enables some optimizations
12207 and disables others.  This option is enabled by default for the Java
12208 front\-end, as required by the Java language specification.
12209 .IP "\fB\-fexceptions\fR" 4
12210 .IX Item "-fexceptions"
12211 Enable exception handling.  Generates extra code needed to propagate
12212 exceptions.  For some targets, this implies \s-1GCC\s0 will generate frame
12213 unwind information for all functions, which can produce significant data
12214 size overhead, although it does not affect execution.  If you do not
12215 specify this option, \s-1GCC\s0 will enable it by default for languages like
12216 \&\*(C+ which normally require exception handling, and disable it for
12217 languages like C that do not normally require it.  However, you may need
12218 to enable this option when compiling C code that needs to interoperate
12219 properly with exception handlers written in \*(C+.  You may also wish to
12220 disable this option if you are compiling older \*(C+ programs that don't
12221 use exception handling.
12222 .IP "\fB\-fnon\-call\-exceptions\fR" 4
12223 .IX Item "-fnon-call-exceptions"
12224 Generate code that allows trapping instructions to throw exceptions.
12225 Note that this requires platform-specific runtime support that does
12226 not exist everywhere.  Moreover, it only allows \fItrapping\fR
12227 instructions to throw exceptions, i.e. memory references or floating
12228 point instructions.  It does not allow exceptions to be thrown from
12229 arbitrary signal handlers such as \f(CW\*(C`SIGALRM\*(C'\fR.
12230 .IP "\fB\-funwind\-tables\fR" 4
12231 .IX Item "-funwind-tables"
12232 Similar to \fB\-fexceptions\fR, except that it will just generate any needed
12233 static data, but will not affect the generated code in any other way.
12234 You will normally not enable this option; instead, a language processor
12235 that needs this handling would enable it on your behalf.
12236 .IP "\fB\-fasynchronous\-unwind\-tables\fR" 4
12237 .IX Item "-fasynchronous-unwind-tables"
12238 Generate unwind table in dwarf2 format, if supported by target machine.  The
12239 table is exact at each instruction boundary, so it can be used for stack
12240 unwinding from asynchronous events (such as debugger or garbage collector).
12241 .IP "\fB\-fpcc\-struct\-return\fR" 4
12242 .IX Item "-fpcc-struct-return"
12243 Return \*(L"short\*(R" \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in memory like
12244 longer ones, rather than in registers.  This convention is less
12245 efficient, but it has the advantage of allowing intercallability between
12246 GCC-compiled files and files compiled with other compilers, particularly
12247 the Portable C Compiler (pcc).
12248 .Sp
12249 The precise convention for returning structures in memory depends
12250 on the target configuration macros.
12251 .Sp
12252 Short structures and unions are those whose size and alignment match
12253 that of some integer type.
12254 .Sp
12255 \&\fBWarning:\fR code compiled with the \fB\-fpcc\-struct\-return\fR
12256 switch is not binary compatible with code compiled with the
12257 \&\fB\-freg\-struct\-return\fR switch.
12258 Use it to conform to a non-default application binary interface.
12259 .IP "\fB\-freg\-struct\-return\fR" 4
12260 .IX Item "-freg-struct-return"
12261 Return \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in registers when possible.
12262 This is more efficient for small structures than
12263 \&\fB\-fpcc\-struct\-return\fR.
12264 .Sp
12265 If you specify neither \fB\-fpcc\-struct\-return\fR nor
12266 \&\fB\-freg\-struct\-return\fR, \s-1GCC\s0 defaults to whichever convention is
12267 standard for the target.  If there is no standard convention, \s-1GCC\s0
12268 defaults to \fB\-fpcc\-struct\-return\fR, except on targets where \s-1GCC\s0 is
12269 the principal compiler.  In those cases, we can choose the standard, and
12270 we chose the more efficient register return alternative.
12271 .Sp
12272 \&\fBWarning:\fR code compiled with the \fB\-freg\-struct\-return\fR
12273 switch is not binary compatible with code compiled with the
12274 \&\fB\-fpcc\-struct\-return\fR switch.
12275 Use it to conform to a non-default application binary interface.
12276 .IP "\fB\-fshort\-enums\fR" 4
12277 .IX Item "-fshort-enums"
12278 Allocate to an \f(CW\*(C`enum\*(C'\fR type only as many bytes as it needs for the
12279 declared range of possible values.  Specifically, the \f(CW\*(C`enum\*(C'\fR type
12280 will be equivalent to the smallest integer type which has enough room.
12281 .Sp
12282 \&\fBWarning:\fR the \fB\-fshort\-enums\fR switch causes \s-1GCC\s0 to generate
12283 code that is not binary compatible with code generated without that switch.
12284 Use it to conform to a non-default application binary interface.
12285 .IP "\fB\-fshort\-double\fR" 4
12286 .IX Item "-fshort-double"
12287 Use the same size for \f(CW\*(C`double\*(C'\fR as for \f(CW\*(C`float\*(C'\fR.
12288 .Sp
12289 \&\fBWarning:\fR the \fB\-fshort\-double\fR switch causes \s-1GCC\s0 to generate
12290 code that is not binary compatible with code generated without that switch.
12291 Use it to conform to a non-default application binary interface.
12292 .IP "\fB\-fshort\-wchar\fR" 4
12293 .IX Item "-fshort-wchar"
12294 Override the underlying type for \fBwchar_t\fR to be \fBshort
12295 unsigned int\fR instead of the default for the target.  This option is
12296 useful for building programs to run under \s-1WINE\s0.
12297 .Sp
12298 \&\fBWarning:\fR the \fB\-fshort\-wchar\fR switch causes \s-1GCC\s0 to generate
12299 code that is not binary compatible with code generated without that switch.
12300 Use it to conform to a non-default application binary interface.
12301 .IP "\fB\-fno\-common\fR" 4
12302 .IX Item "-fno-common"
12303 In C, allocate even uninitialized global variables in the data section of the
12304 object file, rather than generating them as common blocks.  This has the
12305 effect that if the same variable is declared (without \f(CW\*(C`extern\*(C'\fR) in
12306 two different compilations, you will get an error when you link them.
12307 The only reason this might be useful is if you wish to verify that the
12308 program will work on other systems which always work this way.
12309 .IP "\fB\-fno\-ident\fR" 4
12310 .IX Item "-fno-ident"
12311 Ignore the \fB#ident\fR directive.
12312 .IP "\fB\-finhibit\-size\-directive\fR" 4
12313 .IX Item "-finhibit-size-directive"
12314 Don't output a \f(CW\*(C`.size\*(C'\fR assembler directive, or anything else that
12315 would cause trouble if the function is split in the middle, and the
12316 two halves are placed at locations far apart in memory.  This option is
12317 used when compiling \fIcrtstuff.c\fR; you should not need to use it
12318 for anything else.
12319 .IP "\fB\-fverbose\-asm\fR" 4
12320 .IX Item "-fverbose-asm"
12321 Put extra commentary information in the generated assembly code to
12322 make it more readable.  This option is generally only of use to those
12323 who actually need to read the generated assembly code (perhaps while
12324 debugging the compiler itself).
12325 .Sp
12326 \&\fB\-fno\-verbose\-asm\fR, the default, causes the
12327 extra information to be omitted and is useful when comparing two assembler
12328 files.
12329 .IP "\fB\-fpic\fR" 4
12330 .IX Item "-fpic"
12331 Generate position-independent code (\s-1PIC\s0) suitable for use in a shared
12332 library, if supported for the target machine.  Such code accesses all
12333 constant addresses through a global offset table (\s-1GOT\s0).  The dynamic
12334 loader resolves the \s-1GOT\s0 entries when the program starts (the dynamic
12335 loader is not part of \s-1GCC\s0; it is part of the operating system).  If
12336 the \s-1GOT\s0 size for the linked executable exceeds a machine-specific
12337 maximum size, you get an error message from the linker indicating that
12338 \&\fB\-fpic\fR does not work; in that case, recompile with \fB\-fPIC\fR
12339 instead.  (These maximums are 8k on the \s-1SPARC\s0 and 32k
12340 on the m68k and \s-1RS/6000\s0.  The 386 has no such limit.)
12341 .Sp
12342 Position-independent code requires special support, and therefore works
12343 only on certain machines.  For the 386, \s-1GCC\s0 supports \s-1PIC\s0 for System V
12344 but not for the Sun 386i.  Code generated for the \s-1IBM\s0 \s-1RS/6000\s0 is always
12345 position\-independent.
12346 .Sp
12347 When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
12348 are defined to 1.
12349 .IP "\fB\-fPIC\fR" 4
12350 .IX Item "-fPIC"
12351 If supported for the target machine, emit position-independent code,
12352 suitable for dynamic linking and avoiding any limit on the size of the
12353 global offset table.  This option makes a difference on the m68k,
12354 PowerPC and \s-1SPARC\s0.
12355 .Sp
12356 Position-independent code requires special support, and therefore works
12357 only on certain machines.
12358 .Sp
12359 When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
12360 are defined to 2.
12361 .IP "\fB\-fpie\fR" 4
12362 .IX Item "-fpie"
12363 .PD 0
12364 .IP "\fB\-fPIE\fR" 4
12365 .IX Item "-fPIE"
12366 .PD
12367 These options are similar to \fB\-fpic\fR and \fB\-fPIC\fR, but
12368 generated position independent code can be only linked into executables.
12369 Usually these options are used when \fB\-pie\fR \s-1GCC\s0 option will be
12370 used during linking.
12371 .IP "\fB\-fno\-jump\-tables\fR" 4
12372 .IX Item "-fno-jump-tables"
12373 Do not use jump tables for switch statements even where it would be
12374 more efficient than other code generation strategies.  This option is
12375 of use in conjunction with \fB\-fpic\fR or \fB\-fPIC\fR for
12376 building code which forms part of a dynamic linker and cannot
12377 reference the address of a jump table.  On some targets, jump tables
12378 do not require a \s-1GOT\s0 and this option is not needed.
12379 .IP "\fB\-ffixed\-\fR\fIreg\fR" 4
12380 .IX Item "-ffixed-reg"
12381 Treat the register named \fIreg\fR as a fixed register; generated code
12382 should never refer to it (except perhaps as a stack pointer, frame
12383 pointer or in some other fixed role).
12384 .Sp
12385 \&\fIreg\fR must be the name of a register.  The register names accepted
12386 are machine-specific and are defined in the \f(CW\*(C`REGISTER_NAMES\*(C'\fR
12387 macro in the machine description macro file.
12388 .Sp
12389 This flag does not have a negative form, because it specifies a
12390 three-way choice.
12391 .IP "\fB\-fcall\-used\-\fR\fIreg\fR" 4
12392 .IX Item "-fcall-used-reg"
12393 Treat the register named \fIreg\fR as an allocable register that is
12394 clobbered by function calls.  It may be allocated for temporaries or
12395 variables that do not live across a call.  Functions compiled this way
12396 will not save and restore the register \fIreg\fR.
12397 .Sp
12398 It is an error to used this flag with the frame pointer or stack pointer.
12399 Use of this flag for other registers that have fixed pervasive roles in
12400 the machine's execution model will produce disastrous results.
12401 .Sp
12402 This flag does not have a negative form, because it specifies a
12403 three-way choice.
12404 .IP "\fB\-fcall\-saved\-\fR\fIreg\fR" 4
12405 .IX Item "-fcall-saved-reg"
12406 Treat the register named \fIreg\fR as an allocable register saved by
12407 functions.  It may be allocated even for temporaries or variables that
12408 live across a call.  Functions compiled this way will save and restore
12409 the register \fIreg\fR if they use it.
12410 .Sp
12411 It is an error to used this flag with the frame pointer or stack pointer.
12412 Use of this flag for other registers that have fixed pervasive roles in
12413 the machine's execution model will produce disastrous results.
12414 .Sp
12415 A different sort of disaster will result from the use of this flag for
12416 a register in which function values may be returned.
12417 .Sp
12418 This flag does not have a negative form, because it specifies a
12419 three-way choice.
12420 .IP "\fB\-fpack\-struct[=\fR\fIn\fR\fB]\fR" 4
12421 .IX Item "-fpack-struct[=n]"
12422 Without a value specified, pack all structure members together without
12423 holes.  When a value is specified (which must be a small power of two), pack
12424 structure members according to this value, representing the maximum
12425 alignment (that is, objects with default alignment requirements larger than
12426 this will be output potentially unaligned at the next fitting location.
12427 .Sp
12428 \&\fBWarning:\fR the \fB\-fpack\-struct\fR switch causes \s-1GCC\s0 to generate
12429 code that is not binary compatible with code generated without that switch.
12430 Additionally, it makes the code suboptimal.
12431 Use it to conform to a non-default application binary interface.
12432 .IP "\fB\-finstrument\-functions\fR" 4
12433 .IX Item "-finstrument-functions"
12434 Generate instrumentation calls for entry and exit to functions.  Just
12435 after function entry and just before function exit, the following
12436 profiling functions will be called with the address of the current
12437 function and its call site.  (On some platforms,
12438 \&\f(CW\*(C`_\|_builtin_return_address\*(C'\fR does not work beyond the current
12439 function, so the call site information may not be available to the
12440 profiling functions otherwise.)
12441 .Sp
12442 .Vb 4
12443 \&        void __cyg_profile_func_enter (void *this_fn,
12444 \&                                       void *call_site);
12445 \&        void __cyg_profile_func_exit  (void *this_fn,
12446 \&                                       void *call_site);
12447 .Ve
12448 .Sp
12449 The first argument is the address of the start of the current function,
12450 which may be looked up exactly in the symbol table.
12451 .Sp
12452 This instrumentation is also done for functions expanded inline in other
12453 functions.  The profiling calls will indicate where, conceptually, the
12454 inline function is entered and exited.  This means that addressable
12455 versions of such functions must be available.  If all your uses of a
12456 function are expanded inline, this may mean an additional expansion of
12457 code size.  If you use \fBextern inline\fR in your C code, an
12458 addressable version of such functions must be provided.  (This is
12459 normally the case anyways, but if you get lucky and the optimizer always
12460 expands the functions inline, you might have gotten away without
12461 providing static copies.)
12462 .Sp
12463 A function may be given the attribute \f(CW\*(C`no_instrument_function\*(C'\fR, in
12464 which case this instrumentation will not be done.  This can be used, for
12465 example, for the profiling functions listed above, high-priority
12466 interrupt routines, and any functions from which the profiling functions
12467 cannot safely be called (perhaps signal handlers, if the profiling
12468 routines generate output or allocate memory).
12469 .IP "\fB\-fstack\-check\fR" 4
12470 .IX Item "-fstack-check"
12471 Generate code to verify that you do not go beyond the boundary of the
12472 stack.  You should specify this flag if you are running in an
12473 environment with multiple threads, but only rarely need to specify it in
12474 a single-threaded environment since stack overflow is automatically
12475 detected on nearly all systems if there is only one stack.
12476 .Sp
12477 Note that this switch does not actually cause checking to be done; the
12478 operating system must do that.  The switch causes generation of code
12479 to ensure that the operating system sees the stack being extended.
12480 .IP "\fB\-fstack\-limit\-register=\fR\fIreg\fR" 4
12481 .IX Item "-fstack-limit-register=reg"
12482 .PD 0
12483 .IP "\fB\-fstack\-limit\-symbol=\fR\fIsym\fR" 4
12484 .IX Item "-fstack-limit-symbol=sym"
12485 .IP "\fB\-fno\-stack\-limit\fR" 4
12486 .IX Item "-fno-stack-limit"
12487 .PD
12488 Generate code to ensure that the stack does not grow beyond a certain value,
12489 either the value of a register or the address of a symbol.  If the stack
12490 would grow beyond the value, a signal is raised.  For most targets,
12491 the signal is raised before the stack overruns the boundary, so
12492 it is possible to catch the signal without taking special precautions.
12493 .Sp
12494 For instance, if the stack starts at absolute address \fB0x80000000\fR
12495 and grows downwards, you can use the flags
12496 \&\fB\-fstack\-limit\-symbol=_\|_stack_limit\fR and
12497 \&\fB\-Wl,\-\-defsym,_\|_stack_limit=0x7ffe0000\fR to enforce a stack limit
12498 of 128KB.  Note that this may only work with the \s-1GNU\s0 linker.
12499 .IP "\fB\-fargument\-alias\fR" 4
12500 .IX Item "-fargument-alias"
12501 .PD 0
12502 .IP "\fB\-fargument\-noalias\fR" 4
12503 .IX Item "-fargument-noalias"
12504 .IP "\fB\-fargument\-noalias\-global\fR" 4
12505 .IX Item "-fargument-noalias-global"
12506 .IP "\fB\-fargument\-noalias\-anything\fR" 4
12507 .IX Item "-fargument-noalias-anything"
12508 .PD
12509 Specify the possible relationships among parameters and between
12510 parameters and global data.
12511 .Sp
12512 \&\fB\-fargument\-alias\fR specifies that arguments (parameters) may
12513 alias each other and may alias global storage.\fB\-fargument\-noalias\fR specifies that arguments do not alias
12514 each other, but may alias global storage.\fB\-fargument\-noalias\-global\fR specifies that arguments do not
12515 alias each other and do not alias global storage.
12516 \&\fB\-fargument\-noalias\-anything\fR specifies that arguments do not
12517 alias any other storage.
12518 .Sp
12519 Each language will automatically use whatever option is required by
12520 the language standard.  You should not need to use these options yourself.
12521 .IP "\fB\-fleading\-underscore\fR" 4
12522 .IX Item "-fleading-underscore"
12523 This option and its counterpart, \fB\-fno\-leading\-underscore\fR, forcibly
12524 change the way C symbols are represented in the object file.  One use
12525 is to help link with legacy assembly code.
12526 .Sp
12527 \&\fBWarning:\fR the \fB\-fleading\-underscore\fR switch causes \s-1GCC\s0 to
12528 generate code that is not binary compatible with code generated without that
12529 switch.  Use it to conform to a non-default application binary interface.
12530 Not all targets provide complete support for this switch.
12531 .IP "\fB\-ftls\-model=\fR\fImodel\fR" 4
12532 .IX Item "-ftls-model=model"
12533 Alter the thread-local storage model to be used.
12534 The \fImodel\fR argument should be one of \f(CW\*(C`global\-dynamic\*(C'\fR,
12535 \&\f(CW\*(C`local\-dynamic\*(C'\fR, \f(CW\*(C`initial\-exec\*(C'\fR or \f(CW\*(C`local\-exec\*(C'\fR.
12536 .Sp
12537 The default without \fB\-fpic\fR is \f(CW\*(C`initial\-exec\*(C'\fR; with
12538 \&\fB\-fpic\fR the default is \f(CW\*(C`global\-dynamic\*(C'\fR.
12539 .IP "\fB\-fvisibility=\fR\fIdefault|internal|hidden|protected\fR" 4
12540 .IX Item "-fvisibility=default|internal|hidden|protected"
12541 Set the default \s-1ELF\s0 image symbol visibility to the specified option\-\-\-all
12542 symbols will be marked with this unless overridden within the code.
12543 Using this feature can very substantially improve linking and
12544 load times of shared object libraries, produce more optimized
12545 code, provide near-perfect \s-1API\s0 export and prevent symbol clashes.
12546 It is \fBstrongly\fR recommended that you use this in any shared objects
12547 you distribute.
12548 .Sp
12549 Despite the nomenclature, \f(CW\*(C`default\*(C'\fR always means public ie;
12550 available to be linked against from outside the shared object.
12551 \&\f(CW\*(C`protected\*(C'\fR and \f(CW\*(C`internal\*(C'\fR are pretty useless in real-world
12552 usage so the only other commonly used option will be \f(CW\*(C`hidden\*(C'\fR.
12553 The default if \fB\-fvisibility\fR isn't specified is
12554 \&\f(CW\*(C`default\*(C'\fR, i.e., make every
12555 symbol public\-\-\-this causes the same behavior as previous versions of
12556 \&\s-1GCC\s0.
12557 .Sp
12558 A good explanation of the benefits offered by ensuring \s-1ELF\s0
12559 symbols have the correct visibility is given by \*(L"How To Write
12560 Shared Libraries\*(R" by Ulrich Drepper (which can be found at
12561 <\fBhttp://people.redhat.com/~drepper/\fR>)\-\-\-however a superior
12562 solution made possible by this option to marking things hidden when
12563 the default is public is to make the default hidden and mark things
12564 public.  This is the norm with \s-1DLL\s0's on Windows and with \fB\-fvisibility=hidden\fR
12565 and \f(CW\*(C`_\|_attribute_\|_ ((visibility("default")))\*(C'\fR instead of
12566 \&\f(CW\*(C`_\|_declspec(dllexport)\*(C'\fR you get almost identical semantics with
12567 identical syntax.  This is a great boon to those working with
12568 cross-platform projects.
12569 .Sp
12570 For those adding visibility support to existing code, you may find
12571 \&\fB#pragma \s-1GCC\s0 visibility\fR of use.  This works by you enclosing
12572 the declarations you wish to set visibility for with (for example)
12573 \&\fB#pragma \s-1GCC\s0 visibility push(hidden)\fR and
12574 \&\fB#pragma \s-1GCC\s0 visibility pop\fR.
12575 Bear in mind that symbol visibility should be viewed \fBas
12576 part of the \s-1API\s0 interface contract\fR and thus all new code should
12577 always specify visibility when it is not the default ie; declarations
12578 only for use within the local \s-1DSO\s0 should \fBalways\fR be marked explicitly
12579 as hidden as so to avoid \s-1PLT\s0 indirection overheads\-\-\-making this
12580 abundantly clear also aids readability and self-documentation of the code.
12581 Note that due to \s-1ISO\s0 \*(C+ specification requirements, operator new and
12582 operator delete must always be of default visibility.
12583 .Sp
12584 Be aware that headers from outside your project, in particular system
12585 headers and headers from any other library you use, may not be
12586 expecting to be compiled with visibility other than the default.  You
12587 may need to explicitly say \fB#pragma \s-1GCC\s0 visibility push(default)\fR
12588 before including any such headers.
12589 .Sp
12590 \&\fBextern\fR declarations are not affected by \fB\-fvisibility\fR, so
12591 a lot of code can be recompiled with \fB\-fvisibility=hidden\fR with
12592 no modifications.  However, this means that calls to \fBextern\fR
12593 functions with no explicit visibility will use the \s-1PLT\s0, so it is more
12594 effective to use \fB_\|_attribute ((visibility))\fR and/or
12595 \&\fB#pragma \s-1GCC\s0 visibility\fR to tell the compiler which \fBextern\fR
12596 declarations should be treated as hidden.
12597 .Sp
12598 Note that \fB\-fvisibility\fR does affect \*(C+ vague linkage
12599 entities. This means that, for instance, an exception class that will
12600 be thrown between DSOs must be explicitly marked with default
12601 visibility so that the \fBtype_info\fR nodes will be unified between
12602 the DSOs.
12603 .Sp
12604 An overview of these techniques, their benefits and how to use them
12605 is at <\fBhttp://gcc.gnu.org/wiki/Visibility\fR>.
12606 .SH "ENVIRONMENT"
12607 .IX Header "ENVIRONMENT"
12608 This section describes several environment variables that affect how \s-1GCC\s0
12609 operates.  Some of them work by specifying directories or prefixes to use
12610 when searching for various kinds of files.  Some are used to specify other
12611 aspects of the compilation environment.
12612 .PP
12613 Note that you can also specify places to search using options such as
12614 \&\fB\-B\fR, \fB\-I\fR and \fB\-L\fR.  These
12615 take precedence over places specified using environment variables, which
12616 in turn take precedence over those specified by the configuration of \s-1GCC\s0.
12617 .IP "\fB\s-1LANG\s0\fR" 4
12618 .IX Item "LANG"
12619 .PD 0
12620 .IP "\fB\s-1LC_CTYPE\s0\fR" 4
12621 .IX Item "LC_CTYPE"
12622 .IP "\fB\s-1LC_MESSAGES\s0\fR" 4
12623 .IX Item "LC_MESSAGES"
12624 .IP "\fB\s-1LC_ALL\s0\fR" 4
12625 .IX Item "LC_ALL"
12626 .PD
12627 These environment variables control the way that \s-1GCC\s0 uses
12628 localization information that allow \s-1GCC\s0 to work with different
12629 national conventions.  \s-1GCC\s0 inspects the locale categories
12630 \&\fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR if it has been configured to do
12631 so.  These locale categories can be set to any value supported by your
12632 installation.  A typical value is \fBen_GB.UTF\-8\fR for English in the United
12633 Kingdom encoded in \s-1UTF\-8\s0.
12634 .Sp
12635 The \fB\s-1LC_CTYPE\s0\fR environment variable specifies character
12636 classification.  \s-1GCC\s0 uses it to determine the character boundaries in
12637 a string; this is needed for some multibyte encodings that contain quote
12638 and escape characters that would otherwise be interpreted as a string
12639 end or escape.
12640 .Sp
12641 The \fB\s-1LC_MESSAGES\s0\fR environment variable specifies the language to
12642 use in diagnostic messages.
12643 .Sp
12644 If the \fB\s-1LC_ALL\s0\fR environment variable is set, it overrides the value
12645 of \fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR; otherwise, \fB\s-1LC_CTYPE\s0\fR
12646 and \fB\s-1LC_MESSAGES\s0\fR default to the value of the \fB\s-1LANG\s0\fR
12647 environment variable.  If none of these variables are set, \s-1GCC\s0
12648 defaults to traditional C English behavior.
12649 .IP "\fB\s-1TMPDIR\s0\fR" 4
12650 .IX Item "TMPDIR"
12651 If \fB\s-1TMPDIR\s0\fR is set, it specifies the directory to use for temporary
12652 files.  \s-1GCC\s0 uses temporary files to hold the output of one stage of
12653 compilation which is to be used as input to the next stage: for example,
12654 the output of the preprocessor, which is the input to the compiler
12655 proper.
12656 .IP "\fB\s-1GCC_EXEC_PREFIX\s0\fR" 4
12657 .IX Item "GCC_EXEC_PREFIX"
12658 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is set, it specifies a prefix to use in the
12659 names of the subprograms executed by the compiler.  No slash is added
12660 when this prefix is combined with the name of a subprogram, but you can
12661 specify a prefix that ends with a slash if you wish.
12662 .Sp
12663 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is not set, \s-1GCC\s0 will attempt to figure out
12664 an appropriate prefix to use based on the pathname it was invoked with.
12665 .Sp
12666 If \s-1GCC\s0 cannot find the subprogram using the specified prefix, it
12667 tries looking in the usual places for the subprogram.
12668 .Sp
12669 The default value of \fB\s-1GCC_EXEC_PREFIX\s0\fR is
12670 \&\fI\fIprefix\fI/lib/gcc/\fR where \fIprefix\fR is the value
12671 of \f(CW\*(C`prefix\*(C'\fR when you ran the \fIconfigure\fR script.
12672 .Sp
12673 Other prefixes specified with \fB\-B\fR take precedence over this prefix.
12674 .Sp
12675 This prefix is also used for finding files such as \fIcrt0.o\fR that are
12676 used for linking.
12677 .Sp
12678 In addition, the prefix is used in an unusual way in finding the
12679 directories to search for header files.  For each of the standard
12680 directories whose name normally begins with \fB/usr/local/lib/gcc\fR
12681 (more precisely, with the value of \fB\s-1GCC_INCLUDE_DIR\s0\fR), \s-1GCC\s0 tries
12682 replacing that beginning with the specified prefix to produce an
12683 alternate directory name.  Thus, with \fB\-Bfoo/\fR, \s-1GCC\s0 will search
12684 \&\fIfoo/bar\fR where it would normally search \fI/usr/local/lib/bar\fR.
12685 These alternate directories are searched first; the standard directories
12686 come next.
12687 .IP "\fB\s-1COMPILER_PATH\s0\fR" 4
12688 .IX Item "COMPILER_PATH"
12689 The value of \fB\s-1COMPILER_PATH\s0\fR is a colon-separated list of
12690 directories, much like \fB\s-1PATH\s0\fR.  \s-1GCC\s0 tries the directories thus
12691 specified when searching for subprograms, if it can't find the
12692 subprograms using \fB\s-1GCC_EXEC_PREFIX\s0\fR.
12693 .IP "\fB\s-1LIBRARY_PATH\s0\fR" 4
12694 .IX Item "LIBRARY_PATH"
12695 The value of \fB\s-1LIBRARY_PATH\s0\fR is a colon-separated list of
12696 directories, much like \fB\s-1PATH\s0\fR.  When configured as a native compiler,
12697 \&\s-1GCC\s0 tries the directories thus specified when searching for special
12698 linker files, if it can't find them using \fB\s-1GCC_EXEC_PREFIX\s0\fR.  Linking
12699 using \s-1GCC\s0 also uses these directories when searching for ordinary
12700 libraries for the \fB\-l\fR option (but directories specified with
12701 \&\fB\-L\fR come first).
12702 .IP "\fB\s-1LANG\s0\fR" 4
12703 .IX Item "LANG"
12704 This variable is used to pass locale information to the compiler.  One way in
12705 which this information is used is to determine the character set to be used
12706 when character literals, string literals and comments are parsed in C and \*(C+.
12707 When the compiler is configured to allow multibyte characters,
12708 the following values for \fB\s-1LANG\s0\fR are recognized:
12709 .RS 4
12710 .IP "\fBC\-JIS\fR" 4
12711 .IX Item "C-JIS"
12712 Recognize \s-1JIS\s0 characters.
12713 .IP "\fBC\-SJIS\fR" 4
12714 .IX Item "C-SJIS"
12715 Recognize \s-1SJIS\s0 characters.
12716 .IP "\fBC\-EUCJP\fR" 4
12717 .IX Item "C-EUCJP"
12718 Recognize \s-1EUCJP\s0 characters.
12719 .RE
12720 .RS 4
12721 .Sp
12722 If \fB\s-1LANG\s0\fR is not defined, or if it has some other value, then the
12723 compiler will use mblen and mbtowc as defined by the default locale to
12724 recognize and translate multibyte characters.
12725 .RE
12726 .PP
12727 Some additional environments variables affect the behavior of the
12728 preprocessor.
12729 .IP "\fB\s-1CPATH\s0\fR" 4
12730 .IX Item "CPATH"
12731 .PD 0
12732 .IP "\fBC_INCLUDE_PATH\fR" 4
12733 .IX Item "C_INCLUDE_PATH"
12734 .IP "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4
12735 .IX Item "CPLUS_INCLUDE_PATH"
12736 .PD
12737 Each variable's value is a list of directories separated by a special
12738 character, much like \fB\s-1PATH\s0\fR, in which to look for header files.
12739 The special character, \f(CW\*(C`PATH_SEPARATOR\*(C'\fR, is target-dependent and
12740 determined at \s-1GCC\s0 build time.  For Microsoft Windows-based targets it is a
12741 semicolon, and for almost all other targets it is a colon.
12742 .Sp
12743 \&\fB\s-1CPATH\s0\fR specifies a list of directories to be searched as if
12744 specified with \fB\-I\fR, but after any paths given with \fB\-I\fR
12745 options on the command line.  This environment variable is used
12746 regardless of which language is being preprocessed.
12747 .Sp
12748 The remaining environment variables apply only when preprocessing the
12749 particular language indicated.  Each specifies a list of directories
12750 to be searched as if specified with \fB\-isystem\fR, but after any
12751 paths given with \fB\-isystem\fR options on the command line.
12752 .Sp
12753 In all these variables, an empty element instructs the compiler to
12754 search its current working directory.  Empty elements can appear at the
12755 beginning or end of a path.  For instance, if the value of
12756 \&\fB\s-1CPATH\s0\fR is \f(CW\*(C`:/special/include\*(C'\fR, that has the same
12757 effect as \fB\-I.\ \-I/special/include\fR.
12758 .IP "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4
12759 .IX Item "DEPENDENCIES_OUTPUT"
12760 If this variable is set, its value specifies how to output
12761 dependencies for Make based on the non-system header files processed
12762 by the compiler.  System header files are ignored in the dependency
12763 output.
12764 .Sp
12765 The value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, in
12766 which case the Make rules are written to that file, guessing the target
12767 name from the source file name.  Or the value can have the form
12768 \&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written to
12769 file \fIfile\fR using \fItarget\fR as the target name.
12770 .Sp
12771 In other words, this environment variable is equivalent to combining
12772 the options \fB\-MM\fR and \fB\-MF\fR,
12773 with an optional \fB\-MT\fR switch too.
12774 .IP "\fB\s-1SUNPRO_DEPENDENCIES\s0\fR" 4
12775 .IX Item "SUNPRO_DEPENDENCIES"
12776 This variable is the same as \fB\s-1DEPENDENCIES_OUTPUT\s0\fR (see above),
12777 except that system header files are not ignored, so it implies
12778 \&\fB\-M\fR rather than \fB\-MM\fR.  However, the dependence on the
12779 main input file is omitted.
12780 .SH "BUGS"
12781 .IX Header "BUGS"
12782 For instructions on reporting bugs, see
12783 <\fBhttp://gcc.gnu.org/bugs.html\fR>.
12784 .SH "FOOTNOTES"
12785 .IX Header "FOOTNOTES"
12786 .IP "1." 4
12787 On some systems, \fBgcc \-shared\fR
12788 needs to build supplementary stub code for constructors to work.  On
12789 multi-libbed systems, \fBgcc \-shared\fR must select the correct support
12790 libraries to link against.  Failing to supply the correct flags may lead
12791 to subtle defects.  Supplying them in cases where they are not necessary
12792 is innocuous.
12793 .SH "SEE ALSO"
12794 .IX Header "SEE ALSO"
12795 \&\fIgpl\fR\|(7), \fIgfdl\fR\|(7), \fIfsf\-funding\fR\|(7),
12796 \&\fIcpp\fR\|(1), \fIgcov\fR\|(1), \fIas\fR\|(1), \fIld\fR\|(1), \fIgdb\fR\|(1), \fIadb\fR\|(1), \fIdbx\fR\|(1), \fIsdb\fR\|(1)
12797 and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIas\fR,
12798 \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
12799 .SH "AUTHOR"
12800 .IX Header "AUTHOR"
12801 See the Info entry for \fBgcc\fR, or
12802 <\fBhttp://gcc.gnu.org/onlinedocs/gcc/Contributors.html\fR>,
12803 for contributors to \s-1GCC\s0.
12804 .SH "COPYRIGHT"
12805 .IX Header "COPYRIGHT"
12806 Copyright (c) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
12807 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
12808 .PP
12809 Permission is granted to copy, distribute and/or modify this document
12810 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.2 or
12811 any later version published by the Free Software Foundation; with the
12812 Invariant Sections being \*(L"\s-1GNU\s0 General Public License\*(R" and \*(L"Funding
12813 Free Software\*(R", the Front-Cover texts being (a) (see below), and with
12814 the Back-Cover Texts being (b) (see below).  A copy of the license is
12815 included in the \fIgfdl\fR\|(7) man page.
12816 .PP
12817 (a) The \s-1FSF\s0's Front-Cover Text is:
12818 .PP
12819 .Vb 1
12820 \&     A GNU Manual
12821 .Ve
12822 .PP
12823 (b) The \s-1FSF\s0's Back-Cover Text is:
12824 .PP
12825 .Vb 3
12826 \&     You have freedom to copy and modify this GNU Manual, like GNU
12827 \&     software.  Copies published by the Free Software Foundation raise
12828 \&     funds for GNU development.
12829 .Ve