Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
[dragonfly.git] / contrib / gcc-3.4 / 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 "2006-03-06" "gcc-3.4.6" "GNU"
133 .SH "NAME"
134 gcc \- GNU project C and C++ compiler
135 .SH "SYNOPSIS"
136 .IX Header "SYNOPSIS"
137 gcc [\fB\-c\fR|\fB\-S\fR|\fB\-E\fR] [\fB\-std=\fR\fIstandard\fR]
138     [\fB\-g\fR] [\fB\-pg\fR] [\fB\-O\fR\fIlevel\fR]
139     [\fB\-W\fR\fIwarn\fR...] [\fB\-pedantic\fR]
140     [\fB\-I\fR\fIdir\fR...] [\fB\-L\fR\fIdir\fR...]
141     [\fB\-D\fR\fImacro\fR[=\fIdefn\fR]...] [\fB\-U\fR\fImacro\fR]
142     [\fB\-f\fR\fIoption\fR...] [\fB\-m\fR\fImachine-option\fR...]
143     [\fB\-o\fR \fIoutfile\fR] \fIinfile\fR...
144 .PP
145 Only the most useful options are listed here; see below for the
146 remainder.  \fBg++\fR accepts mostly the same options as \fBgcc\fR.
147 .SH "DESCRIPTION"
148 .IX Header "DESCRIPTION"
149 When you invoke \s-1GCC\s0, it normally does preprocessing, compilation,
150 assembly and linking.  The ``overall options'' allow you to stop this
151 process at an intermediate stage.  For example, the \fB\-c\fR option
152 says not to run the linker.  Then the output consists of object files
153 output by the assembler.
154 .PP
155 Other options are passed on to one stage of processing.  Some options
156 control the preprocessor and others the compiler itself.  Yet other
157 options control the assembler and linker; most of these are not
158 documented here, since you rarely need to use any of them.
159 .PP
160 Most of the command line options that you can use with \s-1GCC\s0 are useful
161 for C programs; when an option is only useful with another language
162 (usually \*(C+), the explanation says so explicitly.  If the description
163 for a particular option does not mention a source language, you can use
164 that option with all supported languages.
165 .PP
166 The \fBgcc\fR program accepts options and file names as operands.  Many
167 options have multi-letter names; therefore multiple single-letter options
168 may \fInot\fR be grouped: \fB\-dr\fR is very different from \fB\-d\ \-r\fR.
169 .PP
170 You can mix options and other arguments.  For the most part, the order
171 you use doesn't matter.  Order does matter when you use several options
172 of the same kind; for example, if you specify \fB\-L\fR more than once,
173 the directories are searched in the order specified.
174 .PP
175 Many options have long names starting with \fB\-f\fR or with
176 \&\fB\-W\fR\-\-\-for example, \fB\-fforce\-mem\fR,
177 \&\fB\-fstrength\-reduce\fR, \fB\-Wformat\fR and so on.  Most of
178 these have both positive and negative forms; the negative form of
179 \&\fB\-ffoo\fR would be \fB\-fno\-foo\fR.  This manual documents
180 only one of these two forms, whichever one is not the default.
181 .SH "OPTIONS"
182 .IX Header "OPTIONS"
183 .Sh "Option Summary"
184 .IX Subsection "Option Summary"
185 Here is a summary of all the options, grouped by type.  Explanations are
186 in the following sections.
187 .IP "\fIOverall Options\fR" 4
188 .IX Item "Overall Options"
189 \&\fB\-c  \-S  \-E  \-o\fR \fIfile\fR  \fB\-pipe  \-pass\-exit\-codes  
190 \&\-x\fR \fIlanguage\fR  \fB\-v  \-###  \-\-help  \-\-target\-help  \-\-version\fR
191 .IP "\fIC Language Options\fR" 4
192 .IX Item "C Language Options"
193 \&\fB\-ansi  \-std=\fR\fIstandard\fR  \fB\-aux\-info\fR \fIfilename\fR 
194 \&\fB\-fno\-asm  \-fno\-builtin  \-fno\-builtin\-\fR\fIfunction\fR 
195 \&\fB\-fhosted  \-ffreestanding  \-fms\-extensions 
196 \&\-trigraphs  \-no\-integrated\-cpp  \-traditional  \-traditional\-cpp 
197 \&\-fallow\-single\-precision  \-fcond\-mismatch 
198 \&\-fsigned\-bitfields  \-fsigned\-char 
199 \&\-funsigned\-bitfields  \-funsigned\-char 
200 \&\-fwritable\-strings\fR
201 .IP "\fI\*(C+ Language Options\fR" 4
202 .IX Item " Language Options"
203 \&\fB\-fabi\-version=\fR\fIn\fR  \fB\-fno\-access\-control  \-fcheck\-new 
204 \&\-fconserve\-space  \-fno\-const\-strings 
205 \&\-fno\-elide\-constructors 
206 \&\-fno\-enforce\-eh\-specs 
207 \&\-ffor\-scope  \-fno\-for\-scope  \-fno\-gnu\-keywords 
208 \&\-fno\-implicit\-templates 
209 \&\-fno\-implicit\-inline\-templates 
210 \&\-fno\-implement\-inlines  \-fms\-extensions 
211 \&\-fno\-nonansi\-builtins  \-fno\-operator\-names 
212 \&\-fno\-optional\-diags  \-fpermissive 
213 \&\-frepo  \-fno\-rtti  \-fstats  \-ftemplate\-depth\-\fR\fIn\fR 
214 \&\fB\-fuse\-cxa\-atexit  \-fno\-weak  \-nostdinc++ 
215 \&\-fno\-default\-inline  \-Wabi  \-Wctor\-dtor\-privacy 
216 \&\-Wnon\-virtual\-dtor  \-Wreorder 
217 \&\-Weffc++  \-Wno\-deprecated 
218 \&\-Wno\-non\-template\-friend  \-Wold\-style\-cast 
219 \&\-Woverloaded\-virtual  \-Wno\-pmf\-conversions 
220 \&\-Wsign\-promo\fR
221 .IP "\fIObjective-C Language Options\fR" 4
222 .IX Item "Objective-C Language Options"
223 \&\fB\-fconstant\-string\-class=\fR\fIclass-name\fR 
224 \&\fB\-fgnu\-runtime  \-fnext\-runtime 
225 \&\-fno\-nil\-receivers 
226 \&\-fobjc\-exceptions 
227 \&\-freplace\-objc\-classes 
228 \&\-fzero\-link 
229 \&\-gen\-decls 
230 \&\-Wno\-protocol  \-Wselector \-Wundeclared\-selector\fR
231 .IP "\fILanguage Independent Options\fR" 4
232 .IX Item "Language Independent Options"
233 \&\fB\-fmessage\-length=\fR\fIn\fR  
234 \&\fB\-fdiagnostics\-show\-location=\fR[\fBonce\fR|\fBevery-line\fR]
235 .IP "\fIWarning Options\fR" 4
236 .IX Item "Warning Options"
237 \&\fB\-fsyntax\-only  \-pedantic  \-pedantic\-errors 
238 \&\-w  \-Wextra  \-Wall  \-Waggregate\-return 
239 \&\-Wcast\-align  \-Wcast\-qual  \-Wchar\-subscripts  \-Wcomment 
240 \&\-Wconversion  \-Wno\-deprecated\-declarations 
241 \&\-Wdisabled\-optimization  \-Wno\-div\-by\-zero  \-Wendif\-labels 
242 \&\-Werror  \-Werror\-implicit\-function\-declaration 
243 \&\-Wfloat\-equal  \-Wformat  \-Wformat=2 
244 \&\-Wno\-format\-extra\-args \-Wformat\-nonliteral 
245 \&\-Wformat\-security  \-Wformat\-y2k 
246 \&\-Wimplicit  \-Wimplicit\-function\-declaration  \-Wimplicit\-int 
247 \&\-Wimport  \-Wno\-import  \-Winit\-self  \-Winline 
248 \&\-Wno\-invalid\-offsetof  \-Winvalid\-pch 
249 \&\-Wlarger\-than\-\fR\fIlen\fR  \fB\-Wlong\-long 
250 \&\-Wmain  \-Wmissing\-braces 
251 \&\-Wmissing\-format\-attribute  \-Wmissing\-noreturn 
252 \&\-Wno\-multichar  \-Wnonnull  \-Wpacked  \-Wpadded 
253 \&\-Wparentheses  \-Wpointer\-arith  \-Wredundant\-decls 
254 \&\-Wreturn\-type  \-Wsequence\-point  \-Wshadow 
255 \&\-Wsign\-compare  \-Wstrict\-aliasing 
256 \&\-Wswitch  \-Wswitch\-default  \-Wswitch\-enum 
257 \&\-Wsystem\-headers  \-Wtrigraphs  \-Wundef  \-Wuninitialized 
258 \&\-Wunknown\-pragmas  \-Wunreachable\-code 
259 \&\-Wunused  \-Wunused\-function  \-Wunused\-label  \-Wunused\-parameter 
260 \&\-Wunused\-value  \-Wunused\-variable  \-Wwrite\-strings\fR
261 .IP "\fIC\-only Warning Options\fR" 4
262 .IX Item "C-only Warning Options"
263 \&\fB\-Wbad\-function\-cast  \-Wmissing\-declarations 
264 \&\-Wmissing\-prototypes  \-Wnested\-externs  \-Wold\-style\-definition 
265 \&\-Wstrict\-prototypes  \-Wtraditional 
266 \&\-Wdeclaration\-after\-statement\fR
267 .IP "\fIDebugging Options\fR" 4
268 .IX Item "Debugging Options"
269 \&\fB\-d\fR\fIletters\fR  \fB\-dumpspecs  \-dumpmachine  \-dumpversion 
270 \&\-fdump\-unnumbered  \-fdump\-translation\-unit\fR[\fB\-\fR\fIn\fR] 
271 \&\fB\-fdump\-class\-hierarchy\fR[\fB\-\fR\fIn\fR] 
272 \&\fB\-fdump\-tree\-original\fR[\fB\-\fR\fIn\fR]  
273 \&\fB\-fdump\-tree\-optimized\fR[\fB\-\fR\fIn\fR] 
274 \&\fB\-fdump\-tree\-inlined\fR[\fB\-\fR\fIn\fR] 
275 \&\fB\-feliminate\-dwarf2\-dups \-feliminate\-unused\-debug\-types 
276 \&\-feliminate\-unused\-debug\-symbols \-fmem\-report \-fprofile\-arcs 
277 \&\-frandom\-seed=\fR\fIstring\fR \fB\-fsched\-verbose=\fR\fIn\fR 
278 \&\fB\-ftest\-coverage  \-ftime\-report 
279 \&\-g  \-g\fR\fIlevel\fR  \fB\-gcoff \-gdwarf\-2 
280 \&\-ggdb  \-gstabs  \-gstabs+  \-gvms  \-gxcoff  \-gxcoff+ 
281 \&\-p  \-pg  \-print\-file\-name=\fR\fIlibrary\fR  \fB\-print\-libgcc\-file\-name 
282 \&\-print\-multi\-directory  \-print\-multi\-lib 
283 \&\-print\-prog\-name=\fR\fIprogram\fR  \fB\-print\-search\-dirs  \-Q 
284 \&\-save\-temps  \-time\fR
285 .IP "\fIOptimization Options\fR" 4
286 .IX Item "Optimization Options"
287 \&\fB\-falign\-functions=\fR\fIn\fR  \fB\-falign\-jumps=\fR\fIn\fR 
288 \&\fB\-falign\-labels=\fR\fIn\fR  \fB\-falign\-loops=\fR\fIn\fR  
289 \&\fB\-fbranch\-probabilities \-fprofile\-values \-fvpt \-fbranch\-target\-load\-optimize 
290 \&\-fbranch\-target\-load\-optimize2 \-fcaller\-saves  \-fcprop\-registers 
291 \&\-fcse\-follow\-jumps  \-fcse\-skip\-blocks  \-fdata\-sections 
292 \&\-fdelayed\-branch  \-fdelete\-null\-pointer\-checks 
293 \&\-fexpensive\-optimizations  \-ffast\-math  \-ffloat\-store 
294 \&\-fforce\-addr  \-fforce\-mem  \-ffunction\-sections 
295 \&\-fgcse  \-fgcse\-lm  \-fgcse\-sm  \-fgcse\-las  \-floop\-optimize 
296 \&\-fcrossjumping  \-fif\-conversion  \-fif\-conversion2 
297 \&\-finline\-functions  \-finline\-limit=\fR\fIn\fR  \fB\-fkeep\-inline\-functions 
298 \&\-fkeep\-static\-consts  \-fmerge\-constants  \-fmerge\-all\-constants 
299 \&\-fmove\-all\-movables  \-fnew\-ra  \-fno\-branch\-count\-reg 
300 \&\-fno\-default\-inline  \-fno\-defer\-pop 
301 \&\-fno\-function\-cse  \-fno\-guess\-branch\-probability 
302 \&\-fno\-inline  \-fno\-math\-errno  \-fno\-peephole  \-fno\-peephole2 
303 \&\-funsafe\-math\-optimizations  \-ffinite\-math\-only 
304 \&\-fno\-trapping\-math  \-fno\-zero\-initialized\-in\-bss 
305 \&\-fomit\-frame\-pointer  \-foptimize\-register\-move 
306 \&\-foptimize\-sibling\-calls  \-fprefetch\-loop\-arrays 
307 \&\-fprofile\-generate \-fprofile\-use 
308 \&\-freduce\-all\-givs  \-fregmove  \-frename\-registers 
309 \&\-freorder\-blocks  \-freorder\-functions 
310 \&\-frerun\-cse\-after\-loop  \-frerun\-loop\-opt 
311 \&\-frounding\-math \-fschedule\-insns  \-fschedule\-insns2 
312 \&\-fno\-sched\-interblock  \-fno\-sched\-spec  \-fsched\-spec\-load 
313 \&\-fsched\-spec\-load\-dangerous  
314 \&\-fsched\-stalled\-insns=\fR\fIn\fR \fB\-sched\-stalled\-insns\-dep=\fR\fIn\fR 
315 \&\fB\-fsched2\-use\-superblocks 
316 \&\-fsched2\-use\-traces  \-fsignaling\-nans 
317 \&\-fsingle\-precision\-constant  
318 \&\-fstrength\-reduce  \-fstrict\-aliasing  \-ftracer  \-fthread\-jumps 
319 \&\-funroll\-all\-loops  \-funroll\-loops  \-fpeel\-loops 
320 \&\-funswitch\-loops  \-fold\-unroll\-loops  \-fold\-unroll\-all\-loops 
321 \&\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR
322 \&\fB\-O  \-O0  \-O1  \-O2  \-O3  \-Os\fR
323 .IP "\fIPreprocessor Options\fR" 4
324 .IX Item "Preprocessor Options"
325 \&\fB\-A\fR\fIquestion\fR\fB=\fR\fIanswer\fR 
326 \&\fB\-A\-\fR\fIquestion\fR[\fB=\fR\fIanswer\fR] 
327 \&\fB\-C  \-dD  \-dI  \-dM  \-dN 
328 \&\-D\fR\fImacro\fR[\fB=\fR\fIdefn\fR]  \fB\-E  \-H 
329 \&\-idirafter\fR \fIdir\fR 
330 \&\fB\-include\fR \fIfile\fR  \fB\-imacros\fR \fIfile\fR 
331 \&\fB\-iprefix\fR \fIfile\fR  \fB\-iwithprefix\fR \fIdir\fR 
332 \&\fB\-iwithprefixbefore\fR \fIdir\fR  \fB\-isystem\fR \fIdir\fR 
333 \&\fB\-M  \-MM  \-MF  \-MG  \-MP  \-MQ  \-MT  \-nostdinc  
334 \&\-P  \-fworking\-directory  \-remap 
335 \&\-trigraphs  \-undef  \-U\fR\fImacro\fR  \fB\-Wp,\fR\fIoption\fR 
336 \&\fB\-Xpreprocessor\fR \fIoption\fR
337 .IP "\fIAssembler Option\fR" 4
338 .IX Item "Assembler Option"
339 \&\fB\-Wa,\fR\fIoption\fR  \fB\-Xassembler\fR \fIoption\fR
340 .IP "\fILinker Options\fR" 4
341 .IX Item "Linker Options"
342 \&\fIobject-file-name\fR  \fB\-l\fR\fIlibrary\fR 
343 \&\fB\-nostartfiles  \-nodefaultlibs  \-nostdlib \-pie 
344 \&\-s  \-static  \-static\-libgcc  \-shared  \-shared\-libgcc  \-symbolic 
345 \&\-Wl,\fR\fIoption\fR  \fB\-Xlinker\fR \fIoption\fR 
346 \&\fB\-u\fR \fIsymbol\fR
347 .IP "\fIDirectory Options\fR" 4
348 .IX Item "Directory Options"
349 \&\fB\-B\fR\fIprefix\fR  \fB\-I\fR\fIdir\fR  \fB\-I\-  \-L\fR\fIdir\fR  \fB\-specs=\fR\fIfile\fR
350 .IP "\fITarget Options\fR" 4
351 .IX Item "Target Options"
352 \&\fB\-V\fR \fIversion\fR  \fB\-b\fR \fImachine\fR
353 .IP "\fIMachine Dependent Options\fR" 4
354 .IX Item "Machine Dependent Options"
355 \&\fIM680x0 Options\fR
356 \&\fB\-m68000  \-m68020  \-m68020\-40  \-m68020\-60  \-m68030  \-m68040 
357 \&\-m68060  \-mcpu32  \-m5200  \-m68881  \-mbitfield  \-mc68000  \-mc68020   
358 \&\-mnobitfield  \-mrtd  \-mshort  \-msoft\-float  \-mpcrel 
359 \&\-malign\-int  \-mstrict\-align  \-msep\-data  \-mno\-sep\-data 
360 \&\-mshared\-library\-id=n  \-mid\-shared\-library  \-mno\-id\-shared\-library\fR
361 .Sp
362 \&\fIM68hc1x Options\fR
363 \&\fB\-m6811  \-m6812  \-m68hc11  \-m68hc12   \-m68hcs12 
364 \&\-mauto\-incdec  \-minmax  \-mlong\-calls  \-mshort 
365 \&\-msoft\-reg\-count=\fR\fIcount\fR
366 .Sp
367 \&\fI\s-1VAX\s0 Options\fR
368 \&\fB\-mg  \-mgnu  \-munix\fR
369 .Sp
370 \&\fI\s-1SPARC\s0 Options\fR
371 \&\fB\-mcpu=\fR\fIcpu-type\fR 
372 \&\fB\-mtune=\fR\fIcpu-type\fR 
373 \&\fB\-mcmodel=\fR\fIcode-model\fR 
374 \&\fB\-m32  \-m64  \-mapp\-regs  \-mno\-app\-regs 
375 \&\-mfaster\-structs  \-mno\-faster\-structs 
376 \&\-mflat  \-mno\-flat  \-mfpu  \-mno\-fpu 
377 \&\-mhard\-float  \-msoft\-float 
378 \&\-mhard\-quad\-float  \-msoft\-quad\-float 
379 \&\-mimpure\-text  \-mno\-impure\-text  \-mlittle\-endian 
380 \&\-mstack\-bias  \-mno\-stack\-bias 
381 \&\-munaligned\-doubles  \-mno\-unaligned\-doubles 
382 \&\-mv8plus  \-mno\-v8plus  \-mvis  \-mno\-vis 
383 \&\-mcypress  \-mf930  \-mf934 
384 \&\-msparclite  \-msupersparc  \-mv8
385 \&\-threads \-pthreads\fR
386 .Sp
387 \&\fI\s-1ARM\s0 Options\fR
388 \&\fB\-mapcs\-frame  \-mno\-apcs\-frame 
389 \&\-mapcs\-26  \-mapcs\-32 
390 \&\-mapcs\-stack\-check  \-mno\-apcs\-stack\-check 
391 \&\-mapcs\-float  \-mno\-apcs\-float 
392 \&\-mapcs\-reentrant  \-mno\-apcs\-reentrant 
393 \&\-msched\-prolog  \-mno\-sched\-prolog 
394 \&\-mlittle\-endian  \-mbig\-endian  \-mwords\-little\-endian 
395 \&\-malignment\-traps  \-mno\-alignment\-traps 
396 \&\-msoft\-float  \-mhard\-float  \-mfpe 
397 \&\-mthumb\-interwork  \-mno\-thumb\-interwork 
398 \&\-mcpu=\fR\fIname\fR  \fB\-march=\fR\fIname\fR  \fB\-mfpe=\fR\fIname\fR  
399 \&\fB\-mstructure\-size\-boundary=\fR\fIn\fR 
400 \&\fB\-mabort\-on\-noreturn 
401 \&\-mlong\-calls  \-mno\-long\-calls 
402 \&\-msingle\-pic\-base  \-mno\-single\-pic\-base 
403 \&\-mpic\-register=\fR\fIreg\fR 
404 \&\fB\-mnop\-fun\-dllimport 
405 \&\-mcirrus\-fix\-invalid\-insns \-mno\-cirrus\-fix\-invalid\-insns 
406 \&\-mpoke\-function\-name 
407 \&\-mthumb  \-marm 
408 \&\-mtpcs\-frame  \-mtpcs\-leaf\-frame 
409 \&\-mcaller\-super\-interworking  \-mcallee\-super\-interworking\fR
410 .Sp
411 \&\fI\s-1MN10300\s0 Options\fR
412 \&\fB\-mmult\-bug  \-mno\-mult\-bug 
413 \&\-mam33  \-mno\-am33 
414 \&\-mam33\-2  \-mno\-am33\-2 
415 \&\-mno\-crt0  \-mrelax\fR
416 .Sp
417 \&\fIM32R/D Options\fR
418 \&\fB\-m32r2 \-m32rx \-m32r 
419 \&\-mdebug 
420 \&\-malign\-loops \-mno\-align\-loops 
421 \&\-missue\-rate=\fR\fInumber\fR 
422 \&\fB\-mbranch\-cost=\fR\fInumber\fR 
423 \&\fB\-mmodel=\fR\fIcode-size-model-type\fR 
424 \&\fB\-msdata=\fR\fIsdata-type\fR 
425 \&\fB\-mno\-flush\-func \-mflush\-func=\fR\fIname\fR 
426 \&\fB\-mno\-flush\-trap \-mflush\-trap=\fR\fInumber\fR 
427 \&\fB\-G\fR \fInum\fR
428 .Sp
429 \&\fI\s-1RS/6000\s0 and PowerPC Options\fR
430 \&\fB\-mcpu=\fR\fIcpu-type\fR 
431 \&\fB\-mtune=\fR\fIcpu-type\fR 
432 \&\fB\-mpower  \-mno\-power  \-mpower2  \-mno\-power2 
433 \&\-mpowerpc  \-mpowerpc64  \-mno\-powerpc 
434 \&\-maltivec  \-mno\-altivec 
435 \&\-mpowerpc\-gpopt  \-mno\-powerpc\-gpopt 
436 \&\-mpowerpc\-gfxopt  \-mno\-powerpc\-gfxopt 
437 \&\-mnew\-mnemonics  \-mold\-mnemonics 
438 \&\-mfull\-toc   \-mminimal\-toc  \-mno\-fp\-in\-toc  \-mno\-sum\-in\-toc 
439 \&\-m64  \-m32  \-mxl\-compat  \-mno\-xl\-compat  \-mpe 
440 \&\-malign\-power  \-malign\-natural 
441 \&\-msoft\-float  \-mhard\-float  \-mmultiple  \-mno\-multiple 
442 \&\-mstring  \-mno\-string  \-mupdate  \-mno\-update 
443 \&\-mfused\-madd  \-mno\-fused\-madd  \-mbit\-align  \-mno\-bit\-align 
444 \&\-mstrict\-align  \-mno\-strict\-align  \-mrelocatable 
445 \&\-mno\-relocatable  \-mrelocatable\-lib  \-mno\-relocatable\-lib 
446 \&\-mtoc  \-mno\-toc  \-mlittle  \-mlittle\-endian  \-mbig  \-mbig\-endian 
447 \&\-mdynamic\-no\-pic 
448 \&\-mprioritize\-restricted\-insns=\fR\fIpriority\fR 
449 \&\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR 
450 \&\fB\-minsert\-sched\-nops=\fR\fIscheme\fR 
451 \&\fB\-mcall\-sysv  \-mcall\-netbsd 
452 \&\-maix\-struct\-return  \-msvr4\-struct\-return 
453 \&\-mabi=altivec  \-mabi=no\-altivec 
454 \&\-mabi=spe  \-mabi=no\-spe 
455 \&\-misel=yes  \-misel=no 
456 \&\-mspe=yes  \-mspe=no 
457 \&\-mfloat\-gprs=yes  \-mfloat\-gprs=no 
458 \&\-mprototype  \-mno\-prototype 
459 \&\-msim  \-mmvme  \-mads  \-myellowknife  \-memb  \-msdata 
460 \&\-msdata=\fR\fIopt\fR  \fB\-mvxworks  \-mwindiss  \-G\fR \fInum\fR  \fB\-pthread\fR
461 .Sp
462 \&\fIDarwin Options\fR
463 \&\fB\-all_load  \-allowable_client  \-arch  \-arch_errors_fatal 
464 \&\-arch_only  \-bind_at_load  \-bundle  \-bundle_loader 
465 \&\-client_name  \-compatibility_version  \-current_version 
466 \&\-dependency\-file  \-dylib_file  \-dylinker_install_name 
467 \&\-dynamic  \-dynamiclib  \-exported_symbols_list 
468 \&\-filelist  \-flat_namespace  \-force_cpusubtype_ALL 
469 \&\-force_flat_namespace  \-headerpad_max_install_names 
470 \&\-image_base  \-init  \-install_name  \-keep_private_externs 
471 \&\-multi_module  \-multiply_defined  \-multiply_defined_unused 
472 \&\-noall_load  \-nofixprebinding \-nomultidefs  \-noprebind  \-noseglinkedit 
473 \&\-pagezero_size  \-prebind  \-prebind_all_twolevel_modules 
474 \&\-private_bundle  \-read_only_relocs  \-sectalign 
475 \&\-sectobjectsymbols  \-whyload  \-seg1addr 
476 \&\-sectcreate  \-sectobjectsymbols  \-sectorder 
477 \&\-seg_addr_table  \-seg_addr_table_filename  \-seglinkedit 
478 \&\-segprot  \-segs_read_only_addr  \-segs_read_write_addr 
479 \&\-single_module  \-static  \-sub_library  \-sub_umbrella 
480 \&\-twolevel_namespace  \-umbrella  \-undefined 
481 \&\-unexported_symbols_list  \-weak_reference_mismatches 
482 \&\-whatsloaded\fR
483 .Sp
484 \&\fI\s-1MIPS\s0 Options\fR
485 \&\fB\-EL  \-EB  \-march=\fR\fIarch\fR  \fB\-mtune=\fR\fIarch\fR 
486 \&\fB\-mips1  \-mips2  \-mips3  \-mips4  \-mips32  \-mips32r2  \-mips64 
487 \&\-mips16  \-mno\-mips16  \-mabi=\fR\fIabi\fR  \fB\-mabicalls  \-mno\-abicalls 
488 \&\-mxgot  \-mno\-xgot  \-membedded\-pic  \-mno\-embedded\-pic 
489 \&\-mgp32  \-mgp64  \-mfp32  \-mfp64  \-mhard\-float  \-msoft\-float 
490 \&\-msingle\-float  \-mdouble\-float  \-mint64  \-mlong64  \-mlong32 
491 \&\-G\fR\fInum\fR  \fB\-membedded\-data  \-mno\-embedded\-data 
492 \&\-muninit\-const\-in\-rodata  \-mno\-uninit\-const\-in\-rodata 
493 \&\-msplit\-addresses  \-mno\-split\-addresses  
494 \&\-mexplicit\-relocs  \-mno\-explicit\-relocs  
495 \&\-mrnames  \-mno\-rnames 
496 \&\-mcheck\-zero\-division  \-mno\-check\-zero\-division 
497 \&\-mmemcpy  \-mno\-memcpy  \-mlong\-calls  \-mno\-long\-calls 
498 \&\-mmad  \-mno\-mad  \-mfused\-madd  \-mno\-fused\-madd  \-nocpp 
499 \&\-mfix\-sb1  \-mno\-fix\-sb1  \-mflush\-func=\fR\fIfunc\fR 
500 \&\fB\-mno\-flush\-func  \-mbranch\-likely  \-mno\-branch\-likely\fR
501 .Sp
502 \&\fIi386 and x86\-64 Options\fR
503 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
504 \&\fB\-mfpmath=\fR\fIunit\fR 
505 \&\fB\-masm=\fR\fIdialect\fR  \fB\-mno\-fancy\-math\-387 
506 \&\-mno\-fp\-ret\-in\-387  \-msoft\-float  \-msvr3\-shlib 
507 \&\-mno\-wide\-multiply  \-mrtd  \-malign\-double 
508 \&\-mpreferred\-stack\-boundary=\fR\fInum\fR 
509 \&\fB\-mmmx  \-msse  \-msse2 \-msse3 \-m3dnow 
510 \&\-mthreads  \-mno\-align\-stringops  \-minline\-all\-stringops 
511 \&\-mpush\-args  \-maccumulate\-outgoing\-args  \-m128bit\-long\-double 
512 \&\-m96bit\-long\-double  \-mregparm=\fR\fInum\fR  \fB\-momit\-leaf\-frame\-pointer 
513 \&\-mno\-red\-zone \-mno\-tls\-direct\-seg\-refs 
514 \&\-mcmodel=\fR\fIcode-model\fR 
515 \&\fB\-m32  \-m64\fR
516 .Sp
517 \&\fI\s-1HPPA\s0 Options\fR
518 \&\fB\-march=\fR\fIarchitecture-type\fR 
519 \&\fB\-mbig\-switch  \-mdisable\-fpregs  \-mdisable\-indexing 
520 \&\-mfast\-indirect\-calls  \-mgas  \-mgnu\-ld   \-mhp\-ld 
521 \&\-mjump\-in\-delay \-mlinker\-opt \-mlong\-calls 
522 \&\-mlong\-load\-store  \-mno\-big\-switch  \-mno\-disable\-fpregs 
523 \&\-mno\-disable\-indexing  \-mno\-fast\-indirect\-calls  \-mno\-gas 
524 \&\-mno\-jump\-in\-delay  \-mno\-long\-load\-store 
525 \&\-mno\-portable\-runtime  \-mno\-soft\-float 
526 \&\-mno\-space\-regs  \-msoft\-float  \-mpa\-risc\-1\-0 
527 \&\-mpa\-risc\-1\-1  \-mpa\-risc\-2\-0  \-mportable\-runtime 
528 \&\-mschedule=\fR\fIcpu-type\fR  \fB\-mspace\-regs  \-msio  \-mwsio 
529 \&\-nolibdld  \-static  \-threads\fR
530 .Sp
531 \&\fIIntel 960 Options\fR
532 \&\fB\-m\fR\fIcpu-type\fR  \fB\-masm\-compat  \-mclean\-linkage 
533 \&\-mcode\-align  \-mcomplex\-addr  \-mleaf\-procedures 
534 \&\-mic\-compat  \-mic2.0\-compat  \-mic3.0\-compat 
535 \&\-mintel\-asm  \-mno\-clean\-linkage  \-mno\-code\-align 
536 \&\-mno\-complex\-addr  \-mno\-leaf\-procedures 
537 \&\-mno\-old\-align  \-mno\-strict\-align  \-mno\-tail\-call 
538 \&\-mnumerics  \-mold\-align  \-msoft\-float  \-mstrict\-align 
539 \&\-mtail\-call\fR
540 .Sp
541 \&\fI\s-1DEC\s0 Alpha Options\fR
542 \&\fB\-mno\-fp\-regs  \-msoft\-float  \-malpha\-as  \-mgas 
543 \&\-mieee  \-mieee\-with\-inexact  \-mieee\-conformant 
544 \&\-mfp\-trap\-mode=\fR\fImode\fR  \fB\-mfp\-rounding\-mode=\fR\fImode\fR 
545 \&\fB\-mtrap\-precision=\fR\fImode\fR  \fB\-mbuild\-constants 
546 \&\-mcpu=\fR\fIcpu-type\fR  \fB\-mtune=\fR\fIcpu-type\fR 
547 \&\fB\-mbwx  \-mmax  \-mfix  \-mcix 
548 \&\-mfloat\-vax  \-mfloat\-ieee 
549 \&\-mexplicit\-relocs  \-msmall\-data  \-mlarge\-data 
550 \&\-msmall\-text  \-mlarge\-text 
551 \&\-mmemory\-latency=\fR\fItime\fR
552 .Sp
553 \&\fI\s-1DEC\s0 Alpha/VMS Options\fR
554 \&\fB\-mvms\-return\-codes\fR
555 .Sp
556 \&\fIH8/300 Options\fR
557 \&\fB\-mrelax  \-mh  \-ms  \-mn  \-mint32  \-malign\-300\fR
558 .Sp
559 \&\fI\s-1SH\s0 Options\fR
560 \&\fB\-m1  \-m2  \-m2e  \-m3  \-m3e 
561 \&\-m4\-nofpu  \-m4\-single\-only  \-m4\-single  \-m4 
562 \&\-m5\-64media  \-m5\-64media\-nofpu 
563 \&\-m5\-32media  \-m5\-32media\-nofpu 
564 \&\-m5\-compact  \-m5\-compact\-nofpu 
565 \&\-mb  \-ml  \-mdalign  \-mrelax 
566 \&\-mbigtable  \-mfmovd  \-mhitachi  \-mnomacsave 
567 \&\-mieee  \-misize  \-mpadstruct  \-mspace 
568 \&\-mprefergot  \-musermode\fR
569 .Sp
570 \&\fISystem V Options\fR
571 \&\fB\-Qy  \-Qn  \-YP,\fR\fIpaths\fR  \fB\-Ym,\fR\fIdir\fR
572 .Sp
573 \&\fI\s-1ARC\s0 Options\fR
574 \&\fB\-EB  \-EL 
575 \&\-mmangle\-cpu  \-mcpu=\fR\fIcpu\fR  \fB\-mtext=\fR\fItext-section\fR 
576 \&\fB\-mdata=\fR\fIdata-section\fR  \fB\-mrodata=\fR\fIreadonly-data-section\fR
577 .Sp
578 \&\fITMS320C3x/C4x Options\fR
579 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-mbig  \-msmall  \-mregparm  \-mmemparm 
580 \&\-mfast\-fix  \-mmpyi  \-mbk  \-mti  \-mdp\-isr\-reload 
581 \&\-mrpts=\fR\fIcount\fR  \fB\-mrptb  \-mdb  \-mloop\-unsigned 
582 \&\-mparallel\-insns  \-mparallel\-mpy  \-mpreserve\-float\fR
583 .Sp
584 \&\fIV850 Options\fR
585 \&\fB\-mlong\-calls  \-mno\-long\-calls  \-mep  \-mno\-ep 
586 \&\-mprolog\-function  \-mno\-prolog\-function  \-mspace 
587 \&\-mtda=\fR\fIn\fR  \fB\-msda=\fR\fIn\fR  \fB\-mzda=\fR\fIn\fR 
588 \&\fB\-mapp\-regs  \-mno\-app\-regs 
589 \&\-mdisable\-callt  \-mno\-disable\-callt 
590 \&\-mv850e1 
591 \&\-mv850e 
592 \&\-mv850  \-mbig\-switch\fR
593 .Sp
594 \&\fI\s-1NS32K\s0 Options\fR
595 \&\fB\-m32032  \-m32332  \-m32532  \-m32081  \-m32381 
596 \&\-mmult\-add  \-mnomult\-add  \-msoft\-float  \-mrtd  \-mnortd 
597 \&\-mregparam  \-mnoregparam  \-msb  \-mnosb 
598 \&\-mbitfield  \-mnobitfield  \-mhimem  \-mnohimem\fR
599 .Sp
600 \&\fI\s-1AVR\s0 Options\fR
601 \&\fB\-mmcu=\fR\fImcu\fR  \fB\-msize  \-minit\-stack=\fR\fIn\fR  \fB\-mno\-interrupts 
602 \&\-mcall\-prologues  \-mno\-tablejump  \-mtiny\-stack\fR
603 .Sp
604 \&\fIMCore Options\fR
605 \&\fB\-mhardlit  \-mno\-hardlit  \-mdiv  \-mno\-div  \-mrelax\-immediates 
606 \&\-mno\-relax\-immediates  \-mwide\-bitfields  \-mno\-wide\-bitfields 
607 \&\-m4byte\-functions  \-mno\-4byte\-functions  \-mcallgraph\-data 
608 \&\-mno\-callgraph\-data  \-mslow\-bytes  \-mno\-slow\-bytes  \-mno\-lsim 
609 \&\-mlittle\-endian  \-mbig\-endian  \-m210  \-m340  \-mstack\-increment\fR
610 .Sp
611 \&\fI\s-1MMIX\s0 Options\fR
612 \&\fB\-mlibfuncs  \-mno\-libfuncs  \-mepsilon  \-mno\-epsilon  \-mabi=gnu 
613 \&\-mabi=mmixware  \-mzero\-extend  \-mknuthdiv  \-mtoplevel\-symbols 
614 \&\-melf  \-mbranch\-predict  \-mno\-branch\-predict  \-mbase\-addresses 
615 \&\-mno\-base\-addresses  \-msingle\-exit  \-mno\-single\-exit\fR
616 .Sp
617 \&\fI\s-1IA\-64\s0 Options\fR
618 \&\fB\-mbig\-endian  \-mlittle\-endian  \-mgnu\-as  \-mgnu\-ld  \-mno\-pic 
619 \&\-mvolatile\-asm\-stop  \-mb\-step  \-mregister\-names  \-mno\-sdata 
620 \&\-mconstant\-gp  \-mauto\-pic  \-minline\-float\-divide\-min\-latency 
621 \&\-minline\-float\-divide\-max\-throughput 
622 \&\-minline\-int\-divide\-min\-latency 
623 \&\-minline\-int\-divide\-max\-throughput  
624 \&\-minline\-sqrt\-min\-latency \-minline\-sqrt\-max\-throughput 
625 \&\-mno\-dwarf2\-asm \-mearly\-stop\-bits 
626 \&\-mfixed\-range=\fR\fIregister-range\fR \fB\-mtls\-size=\fR\fItls-size\fR 
627 \&\fB\-mtune=\fR\fIcpu-type\fR \fB\-mt \-pthread \-milp32 \-mlp64\fR
628 .Sp
629 \&\fID30V Options\fR
630 \&\fB\-mextmem  \-mextmemory  \-monchip  \-mno\-asm\-optimize 
631 \&\-masm\-optimize  \-mbranch\-cost=\fR\fIn\fR  \fB\-mcond\-exec=\fR\fIn\fR
632 .Sp
633 \&\fIS/390 and zSeries Options\fR
634 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
635 \&\fB\-mhard\-float  \-msoft\-float  \-mbackchain  \-mno\-backchain 
636 \&\-msmall\-exec  \-mno\-small\-exec  \-mmvcle \-mno\-mvcle 
637 \&\-m64  \-m31  \-mdebug  \-mno\-debug  \-mesa  \-mzarch  \-mfused\-madd  \-mno\-fused\-madd\fR
638 .Sp
639 \&\fI\s-1CRIS\s0 Options\fR
640 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-march=\fR\fIcpu\fR  \fB\-mtune=\fR\fIcpu\fR 
641 \&\fB\-mmax\-stack\-frame=\fR\fIn\fR  \fB\-melinux\-stacksize=\fR\fIn\fR 
642 \&\fB\-metrax4  \-metrax100  \-mpdebug  \-mcc\-init  \-mno\-side\-effects 
643 \&\-mstack\-align  \-mdata\-align  \-mconst\-align 
644 \&\-m32\-bit  \-m16\-bit  \-m8\-bit  \-mno\-prologue\-epilogue  \-mno\-gotplt 
645 \&\-melf  \-maout  \-melinux  \-mlinux  \-sim  \-sim2 
646 \&\-mmul\-bug\-workaround  \-mno\-mul\-bug\-workaround\fR
647 .Sp
648 \&\fI\s-1PDP\-11\s0 Options\fR
649 \&\fB\-mfpu  \-msoft\-float  \-mac0  \-mno\-ac0  \-m40  \-m45  \-m10 
650 \&\-mbcopy  \-mbcopy\-builtin  \-mint32  \-mno\-int16 
651 \&\-mint16  \-mno\-int32  \-mfloat32  \-mno\-float64 
652 \&\-mfloat64  \-mno\-float32  \-mabshi  \-mno\-abshi 
653 \&\-mbranch\-expensive  \-mbranch\-cheap 
654 \&\-msplit  \-mno\-split  \-munix\-asm  \-mdec\-asm\fR
655 .Sp
656 \&\fIXstormy16 Options\fR
657 \&\fB\-msim\fR
658 .Sp
659 \&\fIXtensa Options\fR
660 \&\fB\-mconst16 \-mno\-const16 
661 \&\-mfused\-madd  \-mno\-fused\-madd 
662 \&\-mtext\-section\-literals  \-mno\-text\-section\-literals 
663 \&\-mtarget\-align  \-mno\-target\-align 
664 \&\-mlongcalls  \-mno\-longcalls\fR
665 .Sp
666 \&\fI\s-1FRV\s0 Options\fR
667 \&\fB\-mgpr\-32  \-mgpr\-64  \-mfpr\-32  \-mfpr\-64 
668 \&\-mhard\-float  \-msoft\-float 
669 \&\-malloc\-cc  \-mfixed\-cc  \-mdword  \-mno\-dword 
670 \&\-mdouble  \-mno\-double 
671 \&\-mmedia  \-mno\-media  \-mmuladd  \-mno\-muladd 
672 \&\-mlibrary\-pic  \-macc\-4 \-macc\-8 
673 \&\-mpack  \-mno\-pack  \-mno\-eflags  \-mcond\-move  \-mno\-cond\-move 
674 \&\-mscc  \-mno\-scc  \-mcond\-exec  \-mno\-cond\-exec 
675 \&\-mvliw\-branch  \-mno\-vliw\-branch 
676 \&\-mmulti\-cond\-exec  \-mno\-multi\-cond\-exec  \-mnested\-cond\-exec 
677 \&\-mno\-nested\-cond\-exec  \-mtomcat\-stats 
678 \&\-mcpu=\fR\fIcpu\fR
679 .IP "\fICode Generation Options\fR" 4
680 .IX Item "Code Generation Options"
681 \&\fB\-fcall\-saved\-\fR\fIreg\fR  \fB\-fcall\-used\-\fR\fIreg\fR 
682 \&\fB\-ffixed\-\fR\fIreg\fR  \fB\-fexceptions 
683 \&\-fnon\-call\-exceptions  \-funwind\-tables 
684 \&\-fasynchronous\-unwind\-tables 
685 \&\-finhibit\-size\-directive  \-finstrument\-functions 
686 \&\-fno\-common  \-fno\-ident 
687 \&\-fpcc\-struct\-return  \-fpic  \-fPIC \-fpie \-fPIE 
688 \&\-freg\-struct\-return  \-fshared\-data  \-fshort\-enums 
689 \&\-fshort\-double  \-fshort\-wchar 
690 \&\-fverbose\-asm  \-fpack\-struct  \-fstack\-check 
691 \&\-fstack\-limit\-register=\fR\fIreg\fR  \fB\-fstack\-limit\-symbol=\fR\fIsym\fR 
692 \&\fB\-fargument\-alias  \-fargument\-noalias 
693 \&\-fargument\-noalias\-global  \-fleading\-underscore 
694 \&\-ftls\-model=\fR\fImodel\fR 
695 \&\fB\-ftrapv  \-fwrapv  \-fbounds\-check\fR
696 .Sh "Options Controlling the Kind of Output"
697 .IX Subsection "Options Controlling the Kind of Output"
698 Compilation can involve up to four stages: preprocessing, compilation
699 proper, assembly and linking, always in that order.  \s-1GCC\s0 is capable of
700 preprocessing and compiling several files either into several
701 assembler input files, or into one assembler input file; then each
702 assembler input file produces an object file, and linking combines all
703 the object files (those newly compiled, and those specified as input)
704 into an executable file.
705 .PP
706 For any given input file, the file name suffix determines what kind of
707 compilation is done:
708 .IP "\fIfile\fR\fB.c\fR" 4
709 .IX Item "file.c"
710 C source code which must be preprocessed.
711 .IP "\fIfile\fR\fB.i\fR" 4
712 .IX Item "file.i"
713 C source code which should not be preprocessed.
714 .IP "\fIfile\fR\fB.ii\fR" 4
715 .IX Item "file.ii"
716 \&\*(C+ source code which should not be preprocessed.
717 .IP "\fIfile\fR\fB.m\fR" 4
718 .IX Item "file.m"
719 Objective-C source code.  Note that you must link with the library
720 \&\fIlibobjc.a\fR to make an Objective-C program work.
721 .IP "\fIfile\fR\fB.mi\fR" 4
722 .IX Item "file.mi"
723 Objective-C source code which should not be preprocessed.
724 .IP "\fIfile\fR\fB.h\fR" 4
725 .IX Item "file.h"
726 C or \*(C+ header file to be turned into a precompiled header.
727 .IP "\fIfile\fR\fB.cc\fR" 4
728 .IX Item "file.cc"
729 .PD 0
730 .IP "\fIfile\fR\fB.cp\fR" 4
731 .IX Item "file.cp"
732 .IP "\fIfile\fR\fB.cxx\fR" 4
733 .IX Item "file.cxx"
734 .IP "\fIfile\fR\fB.cpp\fR" 4
735 .IX Item "file.cpp"
736 .IP "\fIfile\fR\fB.CPP\fR" 4
737 .IX Item "file.CPP"
738 .IP "\fIfile\fR\fB.c++\fR" 4
739 .IX Item "file.c++"
740 .IP "\fIfile\fR\fB.C\fR" 4
741 .IX Item "file.C"
742 .PD
743 \&\*(C+ source code which must be preprocessed.  Note that in \fB.cxx\fR,
744 the last two letters must both be literally \fBx\fR.  Likewise,
745 \&\fB.C\fR refers to a literal capital C.
746 .IP "\fIfile\fR\fB.hh\fR" 4
747 .IX Item "file.hh"
748 .PD 0
749 .IP "\fIfile\fR\fB.H\fR" 4
750 .IX Item "file.H"
751 .PD
752 \&\*(C+ header file to be turned into a precompiled header.
753 .IP "\fIfile\fR\fB.f\fR" 4
754 .IX Item "file.f"
755 .PD 0
756 .IP "\fIfile\fR\fB.for\fR" 4
757 .IX Item "file.for"
758 .IP "\fIfile\fR\fB.FOR\fR" 4
759 .IX Item "file.FOR"
760 .PD
761 Fortran source code which should not be preprocessed.
762 .IP "\fIfile\fR\fB.F\fR" 4
763 .IX Item "file.F"
764 .PD 0
765 .IP "\fIfile\fR\fB.fpp\fR" 4
766 .IX Item "file.fpp"
767 .IP "\fIfile\fR\fB.FPP\fR" 4
768 .IX Item "file.FPP"
769 .PD
770 Fortran source code which must be preprocessed (with the traditional
771 preprocessor).
772 .IP "\fIfile\fR\fB.r\fR" 4
773 .IX Item "file.r"
774 Fortran source code which must be preprocessed with a \s-1RATFOR\s0
775 preprocessor (not included with \s-1GCC\s0).
776 .IP "\fIfile\fR\fB.ads\fR" 4
777 .IX Item "file.ads"
778 Ada source code file which contains a library unit declaration (a
779 declaration of a package, subprogram, or generic, or a generic
780 instantiation), or a library unit renaming declaration (a package,
781 generic, or subprogram renaming declaration).  Such files are also
782 called \fIspecs\fR.
783 .IP "\fIfile\fR\fB.adb\fR" 4
784 .IX Item "file.adb"
785 Ada source code file containing a library unit body (a subprogram or
786 package body).  Such files are also called \fIbodies\fR.
787 .IP "\fIfile\fR\fB.s\fR" 4
788 .IX Item "file.s"
789 Assembler code.
790 .IP "\fIfile\fR\fB.S\fR" 4
791 .IX Item "file.S"
792 Assembler code which must be preprocessed.
793 .IP "\fIother\fR" 4
794 .IX Item "other"
795 An object file to be fed straight into linking.
796 Any file name with no recognized suffix is treated this way.
797 .PP
798 You can specify the input language explicitly with the \fB\-x\fR option:
799 .IP "\fB\-x\fR \fIlanguage\fR" 4
800 .IX Item "-x language"
801 Specify explicitly the \fIlanguage\fR for the following input files
802 (rather than letting the compiler choose a default based on the file
803 name suffix).  This option applies to all following input files until
804 the next \fB\-x\fR option.  Possible values for \fIlanguage\fR are:
805 .Sp
806 .Vb 8
807 \&        c  c-header  cpp-output
808 \&        c++  c++-header  c++-cpp-output
809 \&        objective-c  objective-c-header  objc-cpp-output
810 \&        assembler  assembler-with-cpp
811 \&        ada
812 \&        f77  f77-cpp-input  ratfor
813 \&        java
814 \&        treelang
815 .Ve
816 .IP "\fB\-x none\fR" 4
817 .IX Item "-x none"
818 Turn off any specification of a language, so that subsequent files are
819 handled according to their file name suffixes (as they are if \fB\-x\fR
820 has not been used at all).
821 .IP "\fB\-pass\-exit\-codes\fR" 4
822 .IX Item "-pass-exit-codes"
823 Normally the \fBgcc\fR program will exit with the code of 1 if any
824 phase of the compiler returns a non-success return code.  If you specify
825 \&\fB\-pass\-exit\-codes\fR, the \fBgcc\fR program will instead return with
826 numerically highest error produced by any phase that returned an error
827 indication.
828 .PP
829 If you only want some of the stages of compilation, you can use
830 \&\fB\-x\fR (or filename suffixes) to tell \fBgcc\fR where to start, and
831 one of the options \fB\-c\fR, \fB\-S\fR, or \fB\-E\fR to say where
832 \&\fBgcc\fR is to stop.  Note that some combinations (for example,
833 \&\fB\-x cpp-output \-E\fR) instruct \fBgcc\fR to do nothing at all.
834 .IP "\fB\-c\fR" 4
835 .IX Item "-c"
836 Compile or assemble the source files, but do not link.  The linking
837 stage simply is not done.  The ultimate output is in the form of an
838 object file for each source file.
839 .Sp
840 By default, the object file name for a source file is made by replacing
841 the suffix \fB.c\fR, \fB.i\fR, \fB.s\fR, etc., with \fB.o\fR.
842 .Sp
843 Unrecognized input files, not requiring compilation or assembly, are
844 ignored.
845 .IP "\fB\-S\fR" 4
846 .IX Item "-S"
847 Stop after the stage of compilation proper; do not assemble.  The output
848 is in the form of an assembler code file for each non-assembler input
849 file specified.
850 .Sp
851 By default, the assembler file name for a source file is made by
852 replacing the suffix \fB.c\fR, \fB.i\fR, etc., with \fB.s\fR.
853 .Sp
854 Input files that don't require compilation are ignored.
855 .IP "\fB\-E\fR" 4
856 .IX Item "-E"
857 Stop after the preprocessing stage; do not run the compiler proper.  The
858 output is in the form of preprocessed source code, which is sent to the
859 standard output.
860 .Sp
861 Input files which don't require preprocessing are ignored.
862 .IP "\fB\-o\fR \fIfile\fR" 4
863 .IX Item "-o file"
864 Place output in file \fIfile\fR.  This applies regardless to whatever
865 sort of output is being produced, whether it be an executable file,
866 an object file, an assembler file or preprocessed C code.
867 .Sp
868 If you specify \fB\-o\fR when compiling more than one input file, or
869 you are producing an executable file as output, all the source files
870 on the command line will be compiled at once.
871 .Sp
872 If \fB\-o\fR is not specified, the default is to put an executable file
873 in \fIa.out\fR, the object file for \fI\fIsource\fI.\fIsuffix\fI\fR in
874 \&\fI\fIsource\fI.o\fR, its assembler file in \fI\fIsource\fI.s\fR, and
875 all preprocessed C source on standard output.
876 .IP "\fB\-v\fR" 4
877 .IX Item "-v"
878 Print (on standard error output) the commands executed to run the stages
879 of compilation.  Also print the version number of the compiler driver
880 program and of the preprocessor and the compiler proper.
881 .IP "\fB\-###\fR" 4
882 .IX Item "-###"
883 Like \fB\-v\fR except the commands are not executed and all command
884 arguments are quoted.  This is useful for shell scripts to capture the
885 driver-generated command lines.
886 .IP "\fB\-pipe\fR" 4
887 .IX Item "-pipe"
888 Use pipes rather than temporary files for communication between the
889 various stages of compilation.  This fails to work on some systems where
890 the assembler is unable to read from a pipe; but the \s-1GNU\s0 assembler has
891 no trouble.
892 .IP "\fB\-\-help\fR" 4
893 .IX Item "--help"
894 Print (on the standard output) a description of the command line options
895 understood by \fBgcc\fR.  If the \fB\-v\fR option is also specified
896 then \fB\-\-help\fR will also be passed on to the various processes
897 invoked by \fBgcc\fR, so that they can display the command line options
898 they accept.  If the \fB\-Wextra\fR option is also specified then command
899 line options which have no documentation associated with them will also
900 be displayed.
901 .IP "\fB\-\-target\-help\fR" 4
902 .IX Item "--target-help"
903 Print (on the standard output) a description of target specific command
904 line options for each tool.
905 .IP "\fB\-\-version\fR" 4
906 .IX Item "--version"
907 Display the version number and copyrights of the invoked \s-1GCC\s0.
908 .Sh "Compiling \*(C+ Programs"
909 .IX Subsection "Compiling  Programs"
910 \&\*(C+ source files conventionally use one of the suffixes \fB.C\fR,
911 \&\fB.cc\fR, \fB.cpp\fR, \fB.CPP\fR, \fB.c++\fR, \fB.cp\fR, or
912 \&\fB.cxx\fR; \*(C+ header files often use \fB.hh\fR or \fB.H\fR; and
913 preprocessed \*(C+ files use the suffix \fB.ii\fR.  \s-1GCC\s0 recognizes
914 files with these names and compiles them as \*(C+ programs even if you
915 call the compiler the same way as for compiling C programs (usually
916 with the name \fBgcc\fR).
917 .PP
918 However, \*(C+ programs often require class libraries as well as a
919 compiler that understands the \*(C+ language\-\-\-and under some
920 circumstances, you might want to compile programs or header files from
921 standard input, or otherwise without a suffix that flags them as \*(C+
922 programs.  You might also like to precompile a C header file with a
923 \&\fB.h\fR extension to be used in \*(C+ compilations.  \fBg++\fR is a
924 program that calls \s-1GCC\s0 with the default language set to \*(C+, and
925 automatically specifies linking against the \*(C+ library.  On many
926 systems, \fBg++\fR is also installed with the name \fBc++\fR.
927 .PP
928 When you compile \*(C+ programs, you may specify many of the same
929 command-line options that you use for compiling programs in any
930 language; or command-line options meaningful for C and related
931 languages; or options that are meaningful only for \*(C+ programs.
932 .Sh "Options Controlling C Dialect"
933 .IX Subsection "Options Controlling C Dialect"
934 The following options control the dialect of C (or languages derived
935 from C, such as \*(C+ and Objective\-C) that the compiler accepts:
936 .IP "\fB\-ansi\fR" 4
937 .IX Item "-ansi"
938 In C mode, support all \s-1ISO\s0 C90 programs.  In \*(C+ mode,
939 remove \s-1GNU\s0 extensions that conflict with \s-1ISO\s0 \*(C+.
940 .Sp
941 This turns off certain features of \s-1GCC\s0 that are incompatible with \s-1ISO\s0
942 C90 (when compiling C code), or of standard \*(C+ (when compiling \*(C+ code),
943 such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, and
944 predefined macros such as \f(CW\*(C`unix\*(C'\fR and \f(CW\*(C`vax\*(C'\fR that identify the
945 type of system you are using.  It also enables the undesirable and
946 rarely used \s-1ISO\s0 trigraph feature.  For the C compiler,
947 it disables recognition of \*(C+ style \fB//\fR comments as well as
948 the \f(CW\*(C`inline\*(C'\fR keyword.
949 .Sp
950 The alternate keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_extension_\|_\*(C'\fR,
951 \&\f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR continue to work despite
952 \&\fB\-ansi\fR.  You would not want to use them in an \s-1ISO\s0 C program, of
953 course, but it is useful to put them in header files that might be included
954 in compilations done with \fB\-ansi\fR.  Alternate predefined macros
955 such as \f(CW\*(C`_\|_unix_\|_\*(C'\fR and \f(CW\*(C`_\|_vax_\|_\*(C'\fR are also available, with or
956 without \fB\-ansi\fR.
957 .Sp
958 The \fB\-ansi\fR option does not cause non-ISO programs to be
959 rejected gratuitously.  For that, \fB\-pedantic\fR is required in
960 addition to \fB\-ansi\fR.  
961 .Sp
962 The macro \f(CW\*(C`_\|_STRICT_ANSI_\|_\*(C'\fR is predefined when the \fB\-ansi\fR
963 option is used.  Some header files may notice this macro and refrain
964 from declaring certain functions or defining certain macros that the
965 \&\s-1ISO\s0 standard doesn't call for; this is to avoid interfering with any
966 programs that might use these names for other things.
967 .Sp
968 Functions which would normally be built in but do not have semantics
969 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
970 functions with \fB\-ansi\fR is used.  
971 .IP "\fB\-std=\fR" 4
972 .IX Item "-std="
973 Determine the language standard.  This option is currently only
974 supported when compiling C or \*(C+.  A value for this option must be
975 provided; possible values are
976 .RS 4
977 .IP "\fBc89\fR" 4
978 .IX Item "c89"
979 .PD 0
980 .IP "\fBiso9899:1990\fR" 4
981 .IX Item "iso9899:1990"
982 .PD
983 \&\s-1ISO\s0 C90 (same as \fB\-ansi\fR).
984 .IP "\fBiso9899:199409\fR" 4
985 .IX Item "iso9899:199409"
986 \&\s-1ISO\s0 C90 as modified in amendment 1.
987 .IP "\fBc99\fR" 4
988 .IX Item "c99"
989 .PD 0
990 .IP "\fBc9x\fR" 4
991 .IX Item "c9x"
992 .IP "\fBiso9899:1999\fR" 4
993 .IX Item "iso9899:1999"
994 .IP "\fBiso9899:199x\fR" 4
995 .IX Item "iso9899:199x"
996 .PD
997 \&\s-1ISO\s0 C99.  Note that this standard is not yet fully supported; see
998 <\fBhttp://gcc.gnu.org/gcc\-3.4/c99status.html\fR> for more information.  The
999 names \fBc9x\fR and \fBiso9899:199x\fR are deprecated.
1000 .IP "\fBgnu89\fR" 4
1001 .IX Item "gnu89"
1002 Default, \s-1ISO\s0 C90 plus \s-1GNU\s0 extensions (including some C99 features).
1003 .IP "\fBgnu99\fR" 4
1004 .IX Item "gnu99"
1005 .PD 0
1006 .IP "\fBgnu9x\fR" 4
1007 .IX Item "gnu9x"
1008 .PD
1009 \&\s-1ISO\s0 C99 plus \s-1GNU\s0 extensions.  When \s-1ISO\s0 C99 is fully implemented in \s-1GCC\s0,
1010 this will become the default.  The name \fBgnu9x\fR is deprecated.
1011 .IP "\fBc++98\fR" 4
1012 .IX Item "c++98"
1013 The 1998 \s-1ISO\s0 \*(C+ standard plus amendments.
1014 .IP "\fBgnu++98\fR" 4
1015 .IX Item "gnu++98"
1016 The same as \fB\-std=c++98\fR plus \s-1GNU\s0 extensions.  This is the
1017 default for \*(C+ code.
1018 .RE
1019 .RS 4
1020 .Sp
1021 Even when this option is not specified, you can still use some of the
1022 features of newer standards in so far as they do not conflict with
1023 previous C standards.  For example, you may use \f(CW\*(C`_\|_restrict_\|_\*(C'\fR even
1024 when \fB\-std=c99\fR is not specified.
1025 .Sp
1026 The \fB\-std\fR options specifying some version of \s-1ISO\s0 C have the same
1027 effects as \fB\-ansi\fR, except that features that were not in \s-1ISO\s0 C90
1028 but are in the specified version (for example, \fB//\fR comments and
1029 the \f(CW\*(C`inline\*(C'\fR keyword in \s-1ISO\s0 C99) are not disabled.
1030 .RE
1031 .IP "\fB\-aux\-info\fR \fIfilename\fR" 4
1032 .IX Item "-aux-info filename"
1033 Output to the given filename prototyped declarations for all functions
1034 declared and/or defined in a translation unit, including those in header
1035 files.  This option is silently ignored in any language other than C.
1036 .Sp
1037 Besides declarations, the file indicates, in comments, the origin of
1038 each declaration (source file and line), whether the declaration was
1039 implicit, prototyped or unprototyped (\fBI\fR, \fBN\fR for new or
1040 \&\fBO\fR for old, respectively, in the first character after the line
1041 number and the colon), and whether it came from a declaration or a
1042 definition (\fBC\fR or \fBF\fR, respectively, in the following
1043 character).  In the case of function definitions, a K&R\-style list of
1044 arguments followed by their declarations is also provided, inside
1045 comments, after the declaration.
1046 .IP "\fB\-fno\-asm\fR" 4
1047 .IX Item "-fno-asm"
1048 Do not recognize \f(CW\*(C`asm\*(C'\fR, \f(CW\*(C`inline\*(C'\fR or \f(CW\*(C`typeof\*(C'\fR as a
1049 keyword, so that code can use these words as identifiers.  You can use
1050 the keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR
1051 instead.  \fB\-ansi\fR implies \fB\-fno\-asm\fR.
1052 .Sp
1053 In \*(C+, this switch only affects the \f(CW\*(C`typeof\*(C'\fR keyword, since
1054 \&\f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`inline\*(C'\fR are standard keywords.  You may want to
1055 use the \fB\-fno\-gnu\-keywords\fR flag instead, which has the same
1056 effect.  In C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this
1057 switch only affects the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, since
1058 \&\f(CW\*(C`inline\*(C'\fR is a standard keyword in \s-1ISO\s0 C99.
1059 .IP "\fB\-fno\-builtin\fR" 4
1060 .IX Item "-fno-builtin"
1061 .PD 0
1062 .IP "\fB\-fno\-builtin\-\fR\fIfunction\fR" 4
1063 .IX Item "-fno-builtin-function"
1064 .PD
1065 Don't recognize built-in functions that do not begin with
1066 \&\fB_\|_builtin_\fR as prefix.  
1067 .Sp
1068 \&\s-1GCC\s0 normally generates special code to handle certain built-in functions
1069 more efficiently; for instance, calls to \f(CW\*(C`alloca\*(C'\fR may become single
1070 instructions that adjust the stack directly, and calls to \f(CW\*(C`memcpy\*(C'\fR
1071 may become inline copy loops.  The resulting code is often both smaller
1072 and faster, but since the function calls no longer appear as such, you
1073 cannot set a breakpoint on those calls, nor can you change the behavior
1074 of the functions by linking with a different library.
1075 .Sp
1076 With the \fB\-fno\-builtin\-\fR\fIfunction\fR option
1077 only the built-in function \fIfunction\fR is
1078 disabled.  \fIfunction\fR must not begin with \fB_\|_builtin_\fR.  If a
1079 function is named this is not built-in in this version of \s-1GCC\s0, this
1080 option is ignored.  There is no corresponding
1081 \&\fB\-fbuiltin\-\fR\fIfunction\fR option; if you wish to enable
1082 built-in functions selectively when using \fB\-fno\-builtin\fR or
1083 \&\fB\-ffreestanding\fR, you may define macros such as:
1084 .Sp
1085 .Vb 2
1086 \&        #define abs(n)          __builtin_abs ((n))
1087 \&        #define strcpy(d, s)    __builtin_strcpy ((d), (s))
1088 .Ve
1089 .IP "\fB\-fhosted\fR" 4
1090 .IX Item "-fhosted"
1091 Assert that compilation takes place in a hosted environment.  This implies
1092 \&\fB\-fbuiltin\fR.  A hosted environment is one in which the
1093 entire standard library is available, and in which \f(CW\*(C`main\*(C'\fR has a return
1094 type of \f(CW\*(C`int\*(C'\fR.  Examples are nearly everything except a kernel.
1095 This is equivalent to \fB\-fno\-freestanding\fR.
1096 .IP "\fB\-ffreestanding\fR" 4
1097 .IX Item "-ffreestanding"
1098 Assert that compilation takes place in a freestanding environment.  This
1099 implies \fB\-fno\-builtin\fR.  A freestanding environment
1100 is one in which the standard library may not exist, and program startup may
1101 not necessarily be at \f(CW\*(C`main\*(C'\fR.  The most obvious example is an \s-1OS\s0 kernel.
1102 This is equivalent to \fB\-fno\-hosted\fR.
1103 .IP "\fB\-fms\-extensions\fR" 4
1104 .IX Item "-fms-extensions"
1105 Accept some non-standard constructs used in Microsoft header files.
1106 .IP "\fB\-trigraphs\fR" 4
1107 .IX Item "-trigraphs"
1108 Support \s-1ISO\s0 C trigraphs.  The \fB\-ansi\fR option (and \fB\-std\fR
1109 options for strict \s-1ISO\s0 C conformance) implies \fB\-trigraphs\fR.
1110 .IP "\fB\-no\-integrated\-cpp\fR" 4
1111 .IX Item "-no-integrated-cpp"
1112 Performs a compilation in two passes: preprocessing and compiling.  This
1113 option allows a user supplied \*(L"cc1\*(R", \*(L"cc1plus\*(R", or \*(L"cc1obj\*(R" via the
1114 \&\fB\-B\fR option. The user supplied compilation step can then add in
1115 an additional preprocessing step after normal preprocessing but before
1116 compiling. The default is to use the integrated cpp (internal cpp)
1117 .Sp
1118 The semantics of this option will change if \*(L"cc1\*(R", \*(L"cc1plus\*(R", and
1119 \&\*(L"cc1obj\*(R" are merged.
1120 .IP "\fB\-traditional\fR" 4
1121 .IX Item "-traditional"
1122 .PD 0
1123 .IP "\fB\-traditional\-cpp\fR" 4
1124 .IX Item "-traditional-cpp"
1125 .PD
1126 Formerly, these options caused \s-1GCC\s0 to attempt to emulate a pre-standard
1127 C compiler.  They are now only supported with the \fB\-E\fR switch.
1128 The preprocessor continues to support a pre-standard mode.  See the \s-1GNU\s0
1129 \&\s-1CPP\s0 manual for details.
1130 .IP "\fB\-fcond\-mismatch\fR" 4
1131 .IX Item "-fcond-mismatch"
1132 Allow conditional expressions with mismatched types in the second and
1133 third arguments.  The value of such an expression is void.  This option
1134 is not supported for \*(C+.
1135 .IP "\fB\-funsigned\-char\fR" 4
1136 .IX Item "-funsigned-char"
1137 Let the type \f(CW\*(C`char\*(C'\fR be unsigned, like \f(CW\*(C`unsigned char\*(C'\fR.
1138 .Sp
1139 Each kind of machine has a default for what \f(CW\*(C`char\*(C'\fR should
1140 be.  It is either like \f(CW\*(C`unsigned char\*(C'\fR by default or like
1141 \&\f(CW\*(C`signed char\*(C'\fR by default.
1142 .Sp
1143 Ideally, a portable program should always use \f(CW\*(C`signed char\*(C'\fR or
1144 \&\f(CW\*(C`unsigned char\*(C'\fR when it depends on the signedness of an object.
1145 But many programs have been written to use plain \f(CW\*(C`char\*(C'\fR and
1146 expect it to be signed, or expect it to be unsigned, depending on the
1147 machines they were written for.  This option, and its inverse, let you
1148 make such a program work with the opposite default.
1149 .Sp
1150 The type \f(CW\*(C`char\*(C'\fR is always a distinct type from each of
1151 \&\f(CW\*(C`signed char\*(C'\fR or \f(CW\*(C`unsigned char\*(C'\fR, even though its behavior
1152 is always just like one of those two.
1153 .IP "\fB\-fsigned\-char\fR" 4
1154 .IX Item "-fsigned-char"
1155 Let the type \f(CW\*(C`char\*(C'\fR be signed, like \f(CW\*(C`signed char\*(C'\fR.
1156 .Sp
1157 Note that this is equivalent to \fB\-fno\-unsigned\-char\fR, which is
1158 the negative form of \fB\-funsigned\-char\fR.  Likewise, the option
1159 \&\fB\-fno\-signed\-char\fR is equivalent to \fB\-funsigned\-char\fR.
1160 .IP "\fB\-fsigned\-bitfields\fR" 4
1161 .IX Item "-fsigned-bitfields"
1162 .PD 0
1163 .IP "\fB\-funsigned\-bitfields\fR" 4
1164 .IX Item "-funsigned-bitfields"
1165 .IP "\fB\-fno\-signed\-bitfields\fR" 4
1166 .IX Item "-fno-signed-bitfields"
1167 .IP "\fB\-fno\-unsigned\-bitfields\fR" 4
1168 .IX Item "-fno-unsigned-bitfields"
1169 .PD
1170 These options control whether a bit-field is signed or unsigned, when the
1171 declaration does not use either \f(CW\*(C`signed\*(C'\fR or \f(CW\*(C`unsigned\*(C'\fR.  By
1172 default, such a bit-field is signed, because this is consistent: the
1173 basic integer types such as \f(CW\*(C`int\*(C'\fR are signed types.
1174 .IP "\fB\-fwritable\-strings\fR" 4
1175 .IX Item "-fwritable-strings"
1176 Store string constants in the writable data segment and don't uniquize
1177 them.  This is for compatibility with old programs which assume they can
1178 write into string constants.
1179 .Sp
1180 Writing into string constants is a very bad idea; ``constants'' should
1181 be constant.
1182 .Sp
1183 This option is deprecated.
1184 .Sh "Options Controlling \*(C+ Dialect"
1185 .IX Subsection "Options Controlling  Dialect"
1186 This section describes the command-line options that are only meaningful
1187 for \*(C+ programs; but you can also use most of the \s-1GNU\s0 compiler options
1188 regardless of what language your program is in.  For example, you
1189 might compile a file \f(CW\*(C`firstClass.C\*(C'\fR like this:
1190 .PP
1191 .Vb 1
1192 \&        g++ -g -frepo -O -c firstClass.C
1193 .Ve
1194 .PP
1195 In this example, only \fB\-frepo\fR is an option meant
1196 only for \*(C+ programs; you can use the other options with any
1197 language supported by \s-1GCC\s0.
1198 .PP
1199 Here is a list of options that are \fIonly\fR for compiling \*(C+ programs:
1200 .IP "\fB\-fabi\-version=\fR\fIn\fR" 4
1201 .IX Item "-fabi-version=n"
1202 Use version \fIn\fR of the \*(C+ \s-1ABI\s0.  Version 2 is the version of the
1203 \&\*(C+ \s-1ABI\s0 that first appeared in G++ 3.4.  Version 1 is the version of
1204 the \*(C+ \s-1ABI\s0 that first appeared in G++ 3.2.  Version 0 will always be
1205 the version that conforms most closely to the \*(C+ \s-1ABI\s0 specification.
1206 Therefore, the \s-1ABI\s0 obtained using version 0 will change as \s-1ABI\s0 bugs
1207 are fixed.
1208 .Sp
1209 The default is version 2.
1210 .IP "\fB\-fno\-access\-control\fR" 4
1211 .IX Item "-fno-access-control"
1212 Turn off all access checking.  This switch is mainly useful for working
1213 around bugs in the access control code.
1214 .IP "\fB\-fcheck\-new\fR" 4
1215 .IX Item "-fcheck-new"
1216 Check that the pointer returned by \f(CW\*(C`operator new\*(C'\fR is non-null
1217 before attempting to modify the storage allocated.  This check is
1218 normally unnecessary because the \*(C+ standard specifies that
1219 \&\f(CW\*(C`operator new\*(C'\fR will only return \f(CW0\fR if it is declared
1220 \&\fB\f(BIthrow()\fB\fR, in which case the compiler will always check the
1221 return value even without this option.  In all other cases, when
1222 \&\f(CW\*(C`operator new\*(C'\fR has a non-empty exception specification, memory
1223 exhaustion is signalled by throwing \f(CW\*(C`std::bad_alloc\*(C'\fR.  See also
1224 \&\fBnew (nothrow)\fR.
1225 .IP "\fB\-fconserve\-space\fR" 4
1226 .IX Item "-fconserve-space"
1227 Put uninitialized or runtime-initialized global variables into the
1228 common segment, as C does.  This saves space in the executable at the
1229 cost of not diagnosing duplicate definitions.  If you compile with this
1230 flag and your program mysteriously crashes after \f(CW\*(C`main()\*(C'\fR has
1231 completed, you may have an object that is being destroyed twice because
1232 two definitions were merged.
1233 .Sp
1234 This option is no longer useful on most targets, now that support has
1235 been added for putting variables into \s-1BSS\s0 without making them common.
1236 .IP "\fB\-fno\-const\-strings\fR" 4
1237 .IX Item "-fno-const-strings"
1238 Give string constants type \f(CW\*(C`char *\*(C'\fR instead of type \f(CW\*(C`const
1239 char *\*(C'\fR.  By default, G++ uses type \f(CW\*(C`const char *\*(C'\fR as required by
1240 the standard.  Even if you use \fB\-fno\-const\-strings\fR, you cannot
1241 actually modify the value of a string constant, unless you also use
1242 \&\fB\-fwritable\-strings\fR.
1243 .Sp
1244 This option might be removed in a future release of G++.  For maximum
1245 portability, you should structure your code so that it works with
1246 string constants that have type \f(CW\*(C`const char *\*(C'\fR.
1247 .IP "\fB\-fno\-elide\-constructors\fR" 4
1248 .IX Item "-fno-elide-constructors"
1249 The \*(C+ standard allows an implementation to omit creating a temporary
1250 which is only used to initialize another object of the same type.
1251 Specifying this option disables that optimization, and forces G++ to
1252 call the copy constructor in all cases.
1253 .IP "\fB\-fno\-enforce\-eh\-specs\fR" 4
1254 .IX Item "-fno-enforce-eh-specs"
1255 Don't check for violation of exception specifications at runtime.  This
1256 option violates the \*(C+ standard, but may be useful for reducing code
1257 size in production builds, much like defining \fB\s-1NDEBUG\s0\fR.  The compiler
1258 will still optimize based on the exception specifications.
1259 .IP "\fB\-ffor\-scope\fR" 4
1260 .IX Item "-ffor-scope"
1261 .PD 0
1262 .IP "\fB\-fno\-for\-scope\fR" 4
1263 .IX Item "-fno-for-scope"
1264 .PD
1265 If \fB\-ffor\-scope\fR is specified, the scope of variables declared in
1266 a \fIfor-init-statement\fR is limited to the \fBfor\fR loop itself,
1267 as specified by the \*(C+ standard.
1268 If \fB\-fno\-for\-scope\fR is specified, the scope of variables declared in
1269 a \fIfor-init-statement\fR extends to the end of the enclosing scope,
1270 as was the case in old versions of G++, and other (traditional)
1271 implementations of \*(C+.
1272 .Sp
1273 The default if neither flag is given to follow the standard,
1274 but to allow and give a warning for old-style code that would
1275 otherwise be invalid, or have different behavior.
1276 .IP "\fB\-fno\-gnu\-keywords\fR" 4
1277 .IX Item "-fno-gnu-keywords"
1278 Do not recognize \f(CW\*(C`typeof\*(C'\fR as a keyword, so that code can use this
1279 word as an identifier.  You can use the keyword \f(CW\*(C`_\|_typeof_\|_\*(C'\fR instead.
1280 \&\fB\-ansi\fR implies \fB\-fno\-gnu\-keywords\fR.
1281 .IP "\fB\-fno\-implicit\-templates\fR" 4
1282 .IX Item "-fno-implicit-templates"
1283 Never emit code for non-inline templates which are instantiated
1284 implicitly (i.e. by use); only emit code for explicit instantiations.
1285 .IP "\fB\-fno\-implicit\-inline\-templates\fR" 4
1286 .IX Item "-fno-implicit-inline-templates"
1287 Don't emit code for implicit instantiations of inline templates, either.
1288 The default is to handle inlines differently so that compiles with and
1289 without optimization will need the same set of explicit instantiations.
1290 .IP "\fB\-fno\-implement\-inlines\fR" 4
1291 .IX Item "-fno-implement-inlines"
1292 To save space, do not emit out-of-line copies of inline functions
1293 controlled by \fB#pragma implementation\fR.  This will cause linker
1294 errors if these functions are not inlined everywhere they are called.
1295 .IP "\fB\-fms\-extensions\fR" 4
1296 .IX Item "-fms-extensions"
1297 Disable pedantic warnings about constructs used in \s-1MFC\s0, such as implicit
1298 int and getting a pointer to member function via non-standard syntax.
1299 .IP "\fB\-fno\-nonansi\-builtins\fR" 4
1300 .IX Item "-fno-nonansi-builtins"
1301 Disable built-in declarations of functions that are not mandated by
1302 \&\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,
1303 \&\f(CW\*(C`index\*(C'\fR, \f(CW\*(C`bzero\*(C'\fR, \f(CW\*(C`conjf\*(C'\fR, and other related functions.
1304 .IP "\fB\-fno\-operator\-names\fR" 4
1305 .IX Item "-fno-operator-names"
1306 Do not treat the operator name keywords \f(CW\*(C`and\*(C'\fR, \f(CW\*(C`bitand\*(C'\fR,
1307 \&\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
1308 synonyms as keywords.
1309 .IP "\fB\-fno\-optional\-diags\fR" 4
1310 .IX Item "-fno-optional-diags"
1311 Disable diagnostics that the standard says a compiler does not need to
1312 issue.  Currently, the only such diagnostic issued by G++ is the one for
1313 a name having multiple meanings within a class.
1314 .IP "\fB\-fpermissive\fR" 4
1315 .IX Item "-fpermissive"
1316 Downgrade some diagnostics about nonconformant code from errors to
1317 warnings.  Thus, using \fB\-fpermissive\fR will allow some
1318 nonconforming code to compile.
1319 .IP "\fB\-frepo\fR" 4
1320 .IX Item "-frepo"
1321 Enable automatic template instantiation at link time.  This option also
1322 implies \fB\-fno\-implicit\-templates\fR.  
1323 .IP "\fB\-fno\-rtti\fR" 4
1324 .IX Item "-fno-rtti"
1325 Disable generation of information about every class with virtual
1326 functions for use by the \*(C+ runtime type identification features
1327 (\fBdynamic_cast\fR and \fBtypeid\fR).  If you don't use those parts
1328 of the language, you can save some space by using this flag.  Note that
1329 exception handling uses the same information, but it will generate it as
1330 needed.
1331 .IP "\fB\-fstats\fR" 4
1332 .IX Item "-fstats"
1333 Emit statistics about front-end processing at the end of the compilation.
1334 This information is generally only useful to the G++ development team.
1335 .IP "\fB\-ftemplate\-depth\-\fR\fIn\fR" 4
1336 .IX Item "-ftemplate-depth-n"
1337 Set the maximum instantiation depth for template classes to \fIn\fR.
1338 A limit on the template instantiation depth is needed to detect
1339 endless recursions during template class instantiation.  \s-1ANSI/ISO\s0 \*(C+
1340 conforming programs must not rely on a maximum depth greater than 17.
1341 .IP "\fB\-fuse\-cxa\-atexit\fR" 4
1342 .IX Item "-fuse-cxa-atexit"
1343 Register destructors for objects with static storage duration with the
1344 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR function rather than the \f(CW\*(C`atexit\*(C'\fR function.
1345 This option is required for fully standards-compliant handling of static
1346 destructors, but will only work if your C library supports
1347 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR.
1348 .IP "\fB\-fno\-weak\fR" 4
1349 .IX Item "-fno-weak"
1350 Do not use weak symbol support, even if it is provided by the linker.
1351 By default, G++ will use weak symbols if they are available.  This
1352 option exists only for testing, and should not be used by end\-users;
1353 it will result in inferior code and has no benefits.  This option may
1354 be removed in a future release of G++.
1355 .IP "\fB\-nostdinc++\fR" 4
1356 .IX Item "-nostdinc++"
1357 Do not search for header files in the standard directories specific to
1358 \&\*(C+, but do still search the other standard directories.  (This option
1359 is used when building the \*(C+ library.)
1360 .PP
1361 In addition, these optimization, warning, and code generation options
1362 have meanings only for \*(C+ programs:
1363 .IP "\fB\-fno\-default\-inline\fR" 4
1364 .IX Item "-fno-default-inline"
1365 Do not assume \fBinline\fR for functions defined inside a class scope.
1366   Note that these
1367 functions will have linkage like inline functions; they just won't be
1368 inlined by default.
1369 .IP "\fB\-Wabi\fR (\*(C+ only)" 4
1370 .IX Item "-Wabi ( only)"
1371 Warn when G++ generates code that is probably not compatible with the
1372 vendor-neutral \*(C+ \s-1ABI\s0.  Although an effort has been made to warn about
1373 all such cases, there are probably some cases that are not warned about,
1374 even though G++ is generating incompatible code.  There may also be
1375 cases where warnings are emitted even though the code that is generated
1376 will be compatible.
1377 .Sp
1378 You should rewrite your code to avoid these warnings if you are
1379 concerned about the fact that code generated by G++ may not be binary
1380 compatible with code generated by other compilers.
1381 .Sp
1382 The known incompatibilities at this point include:
1383 .RS 4
1384 .IP "*" 4
1385 Incorrect handling of tail-padding for bit\-fields.  G++ may attempt to
1386 pack data into the same byte as a base class.  For example:
1387 .Sp
1388 .Vb 2
1389 \&        struct A { virtual void f(); int f1 : 1; };
1390 \&        struct B : public A { int f2 : 1; };
1391 .Ve
1392 .Sp
1393 In this case, G++ will place \f(CW\*(C`B::f2\*(C'\fR into the same byte
1394 as\f(CW\*(C`A::f1\*(C'\fR; other compilers will not.  You can avoid this problem
1395 by explicitly padding \f(CW\*(C`A\*(C'\fR so that its size is a multiple of the
1396 byte size on your platform; that will cause G++ and other compilers to
1397 layout \f(CW\*(C`B\*(C'\fR identically.
1398 .IP "*" 4
1399 Incorrect handling of tail-padding for virtual bases.  G++ does not use
1400 tail padding when laying out virtual bases.  For example:
1401 .Sp
1402 .Vb 3
1403 \&        struct A { virtual void f(); char c1; };
1404 \&        struct B { B(); char c2; };
1405 \&        struct C : public A, public virtual B {};
1406 .Ve
1407 .Sp
1408 In this case, G++ will not place \f(CW\*(C`B\*(C'\fR into the tail-padding for
1409 \&\f(CW\*(C`A\*(C'\fR; other compilers will.  You can avoid this problem by
1410 explicitly padding \f(CW\*(C`A\*(C'\fR so that its size is a multiple of its
1411 alignment (ignoring virtual base classes); that will cause G++ and other
1412 compilers to layout \f(CW\*(C`C\*(C'\fR identically.
1413 .IP "*" 4
1414 Incorrect handling of bit-fields with declared widths greater than that
1415 of their underlying types, when the bit-fields appear in a union.  For
1416 example:
1417 .Sp
1418 .Vb 1
1419 \&        union U { int i : 4096; };
1420 .Ve
1421 .Sp
1422 Assuming that an \f(CW\*(C`int\*(C'\fR does not have 4096 bits, G++ will make the
1423 union too small by the number of bits in an \f(CW\*(C`int\*(C'\fR.
1424 .IP "*" 4
1425 Empty classes can be placed at incorrect offsets.  For example:
1426 .Sp
1427 .Vb 1
1428 \&        struct A {};
1429 .Ve
1430 .Sp
1431 .Vb 4
1432 \&        struct B {
1433 \&          A a;
1434 \&          virtual void f ();
1435 \&        };
1436 .Ve
1437 .Sp
1438 .Vb 1
1439 \&        struct C : public B, public A {};
1440 .Ve
1441 .Sp
1442 G++ will place the \f(CW\*(C`A\*(C'\fR base class of \f(CW\*(C`C\*(C'\fR at a nonzero offset;
1443 it should be placed at offset zero.  G++ mistakenly believes that the
1444 \&\f(CW\*(C`A\*(C'\fR data member of \f(CW\*(C`B\*(C'\fR is already at offset zero.
1445 .IP "*" 4
1446 Names of template functions whose types involve \f(CW\*(C`typename\*(C'\fR or
1447 template template parameters can be mangled incorrectly.
1448 .Sp
1449 .Vb 2
1450 \&        template <typename Q>
1451 \&        void f(typename Q::X) {}
1452 .Ve
1453 .Sp
1454 .Vb 2
1455 \&        template <template <typename> class Q>
1456 \&        void f(typename Q<int>::X) {}
1457 .Ve
1458 .Sp
1459 Instantiations of these templates may be mangled incorrectly.
1460 .RE
1461 .RS 4
1462 .RE
1463 .IP "\fB\-Wctor\-dtor\-privacy\fR (\*(C+ only)" 4
1464 .IX Item "-Wctor-dtor-privacy ( only)"
1465 Warn when a class seems unusable because all the constructors or
1466 destructors in that class are private, and it has neither friends nor
1467 public static member functions.
1468 .IP "\fB\-Wnon\-virtual\-dtor\fR (\*(C+ only)" 4
1469 .IX Item "-Wnon-virtual-dtor ( only)"
1470 Warn when a class appears to be polymorphic, thereby requiring a virtual
1471 destructor, yet it declares a non-virtual one.
1472 This warning is enabled by \fB\-Wall\fR.
1473 .IP "\fB\-Wreorder\fR (\*(C+ only)" 4
1474 .IX Item "-Wreorder ( only)"
1475 Warn when the order of member initializers given in the code does not
1476 match the order in which they must be executed.  For instance:
1477 .Sp
1478 .Vb 5
1479 \&        struct A {
1480 \&          int i;
1481 \&          int j;
1482 \&          A(): j (0), i (1) { }
1483 \&        };
1484 .Ve
1485 .Sp
1486 The compiler will rearrange the member initializers for \fBi\fR
1487 and \fBj\fR to match the declaration order of the members, emitting
1488 a warning to that effect.  This warning is enabled by \fB\-Wall\fR.
1489 .PP
1490 The following \fB\-W...\fR options are not affected by \fB\-Wall\fR.
1491 .IP "\fB\-Weffc++\fR (\*(C+ only)" 4
1492 .IX Item "-Weffc++ ( only)"
1493 Warn about violations of the following style guidelines from Scott Meyers'
1494 \&\fIEffective \*(C+\fR book:
1495 .RS 4
1496 .IP "*" 4
1497 Item 11:  Define a copy constructor and an assignment operator for classes
1498 with dynamically allocated memory.
1499 .IP "*" 4
1500 Item 12:  Prefer initialization to assignment in constructors.
1501 .IP "*" 4
1502 Item 14:  Make destructors virtual in base classes.
1503 .IP "*" 4
1504 Item 15:  Have \f(CW\*(C`operator=\*(C'\fR return a reference to \f(CW*this\fR.
1505 .IP "*" 4
1506 Item 23:  Don't try to return a reference when you must return an object.
1507 .RE
1508 .RS 4
1509 .Sp
1510 Also warn about violations of the following style guidelines from
1511 Scott Meyers' \fIMore Effective \*(C+\fR book:
1512 .IP "*" 4
1513 Item 6:  Distinguish between prefix and postfix forms of increment and
1514 decrement operators.
1515 .IP "*" 4
1516 Item 7:  Never overload \f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`||\*(C'\fR, or \f(CW\*(C`,\*(C'\fR.
1517 .RE
1518 .RS 4
1519 .Sp
1520 When selecting this option, be aware that the standard library
1521 headers do not obey all of these guidelines; use \fBgrep \-v\fR
1522 to filter out those warnings.
1523 .RE
1524 .IP "\fB\-Wno\-deprecated\fR (\*(C+ only)" 4
1525 .IX Item "-Wno-deprecated ( only)"
1526 Do not warn about usage of deprecated features.  
1527 .IP "\fB\-Wno\-non\-template\-friend\fR (\*(C+ only)" 4
1528 .IX Item "-Wno-non-template-friend ( only)"
1529 Disable warnings when non-templatized friend functions are declared
1530 within a template.  Since the advent of explicit template specification
1531 support in G++, if the name of the friend is an unqualified-id (i.e.,
1532 \&\fBfriend foo(int)\fR), the \*(C+ language specification demands that the
1533 friend declare or define an ordinary, nontemplate function.  (Section
1534 14.5.3).  Before G++ implemented explicit specification, unqualified-ids
1535 could be interpreted as a particular specialization of a templatized
1536 function.  Because this non-conforming behavior is no longer the default
1537 behavior for G++, \fB\-Wnon\-template\-friend\fR allows the compiler to
1538 check existing code for potential trouble spots and is on by default.
1539 This new compiler behavior can be turned off with
1540 \&\fB\-Wno\-non\-template\-friend\fR which keeps the conformant compiler code
1541 but disables the helpful warning.
1542 .IP "\fB\-Wold\-style\-cast\fR (\*(C+ only)" 4
1543 .IX Item "-Wold-style-cast ( only)"
1544 Warn if an old-style (C\-style) cast to a non-void type is used within
1545 a \*(C+ program.  The new-style casts (\fBstatic_cast\fR,
1546 \&\fBreinterpret_cast\fR, and \fBconst_cast\fR) are less vulnerable to
1547 unintended effects and much easier to search for.
1548 .IP "\fB\-Woverloaded\-virtual\fR (\*(C+ only)" 4
1549 .IX Item "-Woverloaded-virtual ( only)"
1550 Warn when a function declaration hides virtual functions from a
1551 base class.  For example, in:
1552 .Sp
1553 .Vb 3
1554 \&        struct A {
1555 \&          virtual void f();
1556 \&        };
1557 .Ve
1558 .Sp
1559 .Vb 3
1560 \&        struct B: public A {
1561 \&          void f(int);
1562 \&        };
1563 .Ve
1564 .Sp
1565 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
1566 like:
1567 .Sp
1568 .Vb 2
1569 \&        B* b;
1570 \&        b->f();
1571 .Ve
1572 .Sp
1573 will fail to compile.
1574 .IP "\fB\-Wno\-pmf\-conversions\fR (\*(C+ only)" 4
1575 .IX Item "-Wno-pmf-conversions ( only)"
1576 Disable the diagnostic for converting a bound pointer to member function
1577 to a plain pointer.
1578 .IP "\fB\-Wsign\-promo\fR (\*(C+ only)" 4
1579 .IX Item "-Wsign-promo ( only)"
1580 Warn when overload resolution chooses a promotion from unsigned or
1581 enumerated type to a signed type, over a conversion to an unsigned type of
1582 the same size.  Previous versions of G++ would try to preserve
1583 unsignedness, but the standard mandates the current behavior.
1584 .Sp
1585 .Vb 4
1586 \&        struct A {
1587 \&          operator int ();
1588 \&          A& operator = (int);
1589 \&        };
1590 .Ve
1591 .Sp
1592 .Vb 5
1593 \&        main ()
1594 \&        {
1595 \&          A a,b;
1596 \&          a = b;
1597 \&        }
1598 .Ve
1599 .Sp
1600 In this example, G++ will synthesize a default \fBA& operator =
1601 (const A&);\fR, while cfront will use the user-defined \fBoperator =\fR.
1602 .Sh "Options Controlling Objective-C Dialect"
1603 .IX Subsection "Options Controlling Objective-C Dialect"
1604 (\s-1NOTE:\s0 This manual does not describe the Objective-C language itself.  See
1605 <\fBhttp://gcc.gnu.org/readings.html\fR> for references.)
1606 .PP
1607 This section describes the command-line options that are only meaningful
1608 for Objective-C programs, but you can also use most of the \s-1GNU\s0 compiler
1609 options regardless of what language your program is in.  For example,
1610 you might compile a file \f(CW\*(C`some_class.m\*(C'\fR like this:
1611 .PP
1612 .Vb 1
1613 \&        gcc -g -fgnu-runtime -O -c some_class.m
1614 .Ve
1615 .PP
1616 In this example, \fB\-fgnu\-runtime\fR is an option meant only for
1617 Objective-C programs; you can use the other options with any language
1618 supported by \s-1GCC\s0.
1619 .PP
1620 Here is a list of options that are \fIonly\fR for compiling Objective-C
1621 programs:
1622 .IP "\fB\-fconstant\-string\-class=\fR\fIclass-name\fR" 4
1623 .IX Item "-fconstant-string-class=class-name"
1624 Use \fIclass-name\fR as the name of the class to instantiate for each
1625 literal string specified with the syntax \f(CW\*(C`@"..."\*(C'\fR.  The default
1626 class name is \f(CW\*(C`NXConstantString\*(C'\fR if the \s-1GNU\s0 runtime is being used, and
1627 \&\f(CW\*(C`NSConstantString\*(C'\fR if the NeXT runtime is being used (see below).  The
1628 \&\fB\-fconstant\-cfstrings\fR option, if also present, will override the
1629 \&\fB\-fconstant\-string\-class\fR setting and cause \f(CW\*(C`@"..."\*(C'\fR literals
1630 to be laid out as constant CoreFoundation strings.
1631 .IP "\fB\-fgnu\-runtime\fR" 4
1632 .IX Item "-fgnu-runtime"
1633 Generate object code compatible with the standard \s-1GNU\s0 Objective-C
1634 runtime.  This is the default for most types of systems.
1635 .IP "\fB\-fnext\-runtime\fR" 4
1636 .IX Item "-fnext-runtime"
1637 Generate output compatible with the NeXT runtime.  This is the default
1638 for NeXT-based systems, including Darwin and Mac \s-1OS\s0 X.  The macro
1639 \&\f(CW\*(C`_\|_NEXT_RUNTIME_\|_\*(C'\fR is predefined if (and only if) this option is
1640 used.
1641 .IP "\fB\-fno\-nil\-receivers\fR" 4
1642 .IX Item "-fno-nil-receivers"
1643 Assume that all Objective-C message dispatches (e.g.,
1644 \&\f(CW\*(C`[receiver message:arg]\*(C'\fR) in this translation unit ensure that the receiver
1645 is not \f(CW\*(C`nil\*(C'\fR.  This allows for more efficient entry points in the runtime to be
1646 used.  Currently, this option is only available in conjunction with
1647 the NeXT runtime on Mac \s-1OS\s0 X 10.3 and later.
1648 .IP "\fB\-fobjc\-exceptions\fR" 4
1649 .IX Item "-fobjc-exceptions"
1650 Enable syntactic support for structured exception handling in Objective\-C,
1651 similar to what is offered by \*(C+ and Java.  Currently, this option is only
1652 available in conjunction with the NeXT runtime on Mac \s-1OS\s0 X 10.3 and later.
1653 .Sp
1654 .Vb 23
1655 \&          @try {
1656 \&            ...
1657 \&               @throw expr;
1658 \&            ...
1659 \&          }
1660 \&          @catch (AnObjCClass *exc) {
1661 \&            ...
1662 \&              @throw expr;
1663 \&            ...
1664 \&              @throw;
1665 \&            ...
1666 \&          }
1667 \&          @catch (AnotherClass *exc) {
1668 \&            ...
1669 \&          }
1670 \&          @catch (id allOthers) {
1671 \&            ...
1672 \&          }
1673 \&          @finally {
1674 \&            ...
1675 \&              @throw expr;
1676 \&            ...
1677 \&          }
1678 .Ve
1679 .Sp
1680 The \f(CW@throw\fR statement may appear anywhere in an Objective-C or
1681 Objective\-\*(C+ program; when used inside of a \f(CW@catch\fR block, the
1682 \&\f(CW@throw\fR may appear without an argument (as shown above), in which case
1683 the object caught by the \f(CW@catch\fR will be rethrown.
1684 .Sp
1685 Note that only (pointers to) Objective-C objects may be thrown and
1686 caught using this scheme.  When an object is thrown, it will be caught
1687 by the nearest \f(CW@catch\fR clause capable of handling objects of that type,
1688 analogously to how \f(CW\*(C`catch\*(C'\fR blocks work in \*(C+ and Java.  A
1689 \&\f(CW\*(C`@catch(id ...)\*(C'\fR clause (as shown above) may also be provided to catch
1690 any and all Objective-C exceptions not caught by previous \f(CW@catch\fR
1691 clauses (if any).
1692 .Sp
1693 The \f(CW@finally\fR clause, if present, will be executed upon exit from the
1694 immediately preceding \f(CW\*(C`@try ... @catch\*(C'\fR section.  This will happen
1695 regardless of whether any exceptions are thrown, caught or rethrown
1696 inside the \f(CW\*(C`@try ... @catch\*(C'\fR section, analogously to the behavior
1697 of the \f(CW\*(C`finally\*(C'\fR clause in Java.
1698 .Sp
1699 There are several caveats to using the new exception mechanism:
1700 .RS 4
1701 .IP "*" 4
1702 Although currently designed to be binary compatible with \f(CW\*(C`NS_HANDLER\*(C'\fR\-style
1703 idioms provided by the \f(CW\*(C`NSException\*(C'\fR class, the new
1704 exceptions can only be used on Mac \s-1OS\s0 X 10.3 (Panther) and later
1705 systems, due to additional functionality needed in the (NeXT) Objective-C
1706 runtime.
1707 .IP "*" 4
1708 As mentioned above, the new exceptions do not support handling
1709 types other than Objective-C objects.   Furthermore, when used from
1710 Objective\-\*(C+, the Objective-C exception model does not interoperate with \*(C+
1711 exceptions at this time.  This means you cannot \f(CW@throw\fR an exception
1712 from Objective-C and \f(CW\*(C`catch\*(C'\fR it in \*(C+, or vice versa
1713 (i.e., \f(CW\*(C`throw ... @catch\*(C'\fR).
1714 .RE
1715 .RS 4
1716 .Sp
1717 The \fB\-fobjc\-exceptions\fR switch also enables the use of synchronization
1718 blocks for thread-safe execution:
1719 .Sp
1720 .Vb 3
1721 \&          @synchronized (ObjCClass *guard) {
1722 \&            ...
1723 \&          }
1724 .Ve
1725 .Sp
1726 Upon entering the \f(CW@synchronized\fR block, a thread of execution shall
1727 first check whether a lock has been placed on the corresponding \f(CW\*(C`guard\*(C'\fR
1728 object by another thread.  If it has, the current thread shall wait until
1729 the other thread relinquishes its lock.  Once \f(CW\*(C`guard\*(C'\fR becomes available,
1730 the current thread will place its own lock on it, execute the code contained in
1731 the \f(CW@synchronized\fR block, and finally relinquish the lock (thereby
1732 making \f(CW\*(C`guard\*(C'\fR available to other threads).
1733 .Sp
1734 Unlike Java, Objective-C does not allow for entire methods to be marked
1735 \&\f(CW@synchronized\fR.  Note that throwing exceptions out of
1736 \&\f(CW@synchronized\fR blocks is allowed, and will cause the guarding object
1737 to be unlocked properly.
1738 .RE
1739 .IP "\fB\-freplace\-objc\-classes\fR" 4
1740 .IX Item "-freplace-objc-classes"
1741 Emit a special marker instructing \fB\f(BIld\fB\|(1)\fR not to statically link in
1742 the resulting object file, and allow \fB\f(BIdyld\fB\|(1)\fR to load it in at
1743 run time instead.  This is used in conjunction with the Fix-and-Continue
1744 debugging mode, where the object file in question may be recompiled and
1745 dynamically reloaded in the course of program execution, without the need
1746 to restart the program itself.  Currently, Fix-and-Continue functionality
1747 is only available in conjunction with the NeXT runtime on Mac \s-1OS\s0 X 10.3
1748 and later.
1749 .IP "\fB\-fzero\-link\fR" 4
1750 .IX Item "-fzero-link"
1751 When compiling for the NeXT runtime, the compiler ordinarily replaces calls
1752 to \f(CW\*(C`objc_getClass("...")\*(C'\fR (when the name of the class is known at
1753 compile time) with static class references that get initialized at load time,
1754 which improves run-time performance.  Specifying the \fB\-fzero\-link\fR flag
1755 suppresses this behavior and causes calls to \f(CW\*(C`objc_getClass("...")\*(C'\fR
1756 to be retained.  This is useful in Zero-Link debugging mode, since it allows
1757 for individual class implementations to be modified during program execution.
1758 .IP "\fB\-gen\-decls\fR" 4
1759 .IX Item "-gen-decls"
1760 Dump interface declarations for all classes seen in the source file to a
1761 file named \fI\fIsourcename\fI.decl\fR.
1762 .IP "\fB\-Wno\-protocol\fR" 4
1763 .IX Item "-Wno-protocol"
1764 If a class is declared to implement a protocol, a warning is issued for
1765 every method in the protocol that is not implemented by the class.  The
1766 default behavior is to issue a warning for every method not explicitly
1767 implemented in the class, even if a method implementation is inherited
1768 from the superclass.  If you use the \f(CW\*(C`\-Wno\-protocol\*(C'\fR option, then
1769 methods inherited from the superclass are considered to be implemented,
1770 and no warning is issued for them.
1771 .IP "\fB\-Wselector\fR" 4
1772 .IX Item "-Wselector"
1773 Warn if multiple methods of different types for the same selector are
1774 found during compilation.  The check is performed on the list of methods
1775 in the final stage of compilation.  Additionally, a check is performed
1776 for each selector appearing in a \f(CW\*(C`@selector(...)\*(C'\fR
1777 expression, and a corresponding method for that selector has been found
1778 during compilation.  Because these checks scan the method table only at
1779 the end of compilation, these warnings are not produced if the final
1780 stage of compilation is not reached, for example because an error is
1781 found during compilation, or because the \f(CW\*(C`\-fsyntax\-only\*(C'\fR option is
1782 being used.
1783 .IP "\fB\-Wundeclared\-selector\fR" 4
1784 .IX Item "-Wundeclared-selector"
1785 Warn if a \f(CW\*(C`@selector(...)\*(C'\fR expression referring to an
1786 undeclared selector is found.  A selector is considered undeclared if no
1787 method with that name has been declared before the
1788 \&\f(CW\*(C`@selector(...)\*(C'\fR expression, either explicitly in an
1789 \&\f(CW@interface\fR or \f(CW@protocol\fR declaration, or implicitly in
1790 an \f(CW@implementation\fR section.  This option always performs its
1791 checks as soon as a \f(CW\*(C`@selector(...)\*(C'\fR expression is found,
1792 while \f(CW\*(C`\-Wselector\*(C'\fR only performs its checks in the final stage of
1793 compilation.  This also enforces the coding style convention
1794 that methods and selectors must be declared before being used.
1795 .IP "\fB\-print\-objc\-runtime\-info\fR" 4
1796 .IX Item "-print-objc-runtime-info"
1797 Generate C header describing the largest structure that is passed by
1798 value, if any.
1799 .Sh "Options to Control Diagnostic Messages Formatting"
1800 .IX Subsection "Options to Control Diagnostic Messages Formatting"
1801 Traditionally, diagnostic messages have been formatted irrespective of
1802 the output device's aspect (e.g. its width, ...).  The options described
1803 below can be used to control the diagnostic messages formatting
1804 algorithm, e.g. how many characters per line, how often source location
1805 information should be reported.  Right now, only the \*(C+ front end can
1806 honor these options.  However it is expected, in the near future, that
1807 the remaining front ends would be able to digest them correctly.
1808 .IP "\fB\-fmessage\-length=\fR\fIn\fR" 4
1809 .IX Item "-fmessage-length=n"
1810 Try to format error messages so that they fit on lines of about \fIn\fR
1811 characters.  The default is 72 characters for \fBg++\fR and 0 for the rest of
1812 the front ends supported by \s-1GCC\s0.  If \fIn\fR is zero, then no
1813 line-wrapping will be done; each error message will appear on a single
1814 line.
1815 .IP "\fB\-fdiagnostics\-show\-location=once\fR" 4
1816 .IX Item "-fdiagnostics-show-location=once"
1817 Only meaningful in line-wrapping mode.  Instructs the diagnostic messages
1818 reporter to emit \fIonce\fR source location information; that is, in
1819 case the message is too long to fit on a single physical line and has to
1820 be wrapped, the source location won't be emitted (as prefix) again,
1821 over and over, in subsequent continuation lines.  This is the default
1822 behavior.
1823 .IP "\fB\-fdiagnostics\-show\-location=every\-line\fR" 4
1824 .IX Item "-fdiagnostics-show-location=every-line"
1825 Only meaningful in line-wrapping mode.  Instructs the diagnostic
1826 messages reporter to emit the same source location information (as
1827 prefix) for physical lines that result from the process of breaking
1828 a message which is too long to fit on a single line.
1829 .Sh "Options to Request or Suppress Warnings"
1830 .IX Subsection "Options to Request or Suppress Warnings"
1831 Warnings are diagnostic messages that report constructions which
1832 are not inherently erroneous but which are risky or suggest there
1833 may have been an error.
1834 .PP
1835 You can request many specific warnings with options beginning \fB\-W\fR,
1836 for example \fB\-Wimplicit\fR to request warnings on implicit
1837 declarations.  Each of these specific warning options also has a
1838 negative form beginning \fB\-Wno\-\fR to turn off warnings;
1839 for example, \fB\-Wno\-implicit\fR.  This manual lists only one of the
1840 two forms, whichever is not the default.
1841 .PP
1842 The following options control the amount and kinds of warnings produced
1843 by \s-1GCC\s0; for further, language-specific options also refer to
1844 \&\fB\*(C+ Dialect Options\fR and \fBObjective-C Dialect Options\fR.
1845 .IP "\fB\-fsyntax\-only\fR" 4
1846 .IX Item "-fsyntax-only"
1847 Check the code for syntax errors, but don't do anything beyond that.
1848 .IP "\fB\-pedantic\fR" 4
1849 .IX Item "-pedantic"
1850 Issue all the warnings demanded by strict \s-1ISO\s0 C and \s-1ISO\s0 \*(C+;
1851 reject all programs that use forbidden extensions, and some other
1852 programs that do not follow \s-1ISO\s0 C and \s-1ISO\s0 \*(C+.  For \s-1ISO\s0 C, follows the
1853 version of the \s-1ISO\s0 C standard specified by any \fB\-std\fR option used.
1854 .Sp
1855 Valid \s-1ISO\s0 C and \s-1ISO\s0 \*(C+ programs should compile properly with or without
1856 this option (though a rare few will require \fB\-ansi\fR or a
1857 \&\fB\-std\fR option specifying the required version of \s-1ISO\s0 C).  However,
1858 without this option, certain \s-1GNU\s0 extensions and traditional C and \*(C+
1859 features are supported as well.  With this option, they are rejected.
1860 .Sp
1861 \&\fB\-pedantic\fR does not cause warning messages for use of the
1862 alternate keywords whose names begin and end with \fB_\|_\fR.  Pedantic
1863 warnings are also disabled in the expression that follows
1864 \&\f(CW\*(C`_\|_extension_\|_\*(C'\fR.  However, only system header files should use
1865 these escape routes; application programs should avoid them.
1866 .Sp
1867 Some users try to use \fB\-pedantic\fR to check programs for strict \s-1ISO\s0
1868 C conformance.  They soon find that it does not do quite what they want:
1869 it finds some non-ISO practices, but not all\-\-\-only those for which
1870 \&\s-1ISO\s0 C \fIrequires\fR a diagnostic, and some others for which
1871 diagnostics have been added.
1872 .Sp
1873 A feature to report any failure to conform to \s-1ISO\s0 C might be useful in
1874 some instances, but would require considerable additional work and would
1875 be quite different from \fB\-pedantic\fR.  We don't have plans to
1876 support such a feature in the near future.
1877 .Sp
1878 Where the standard specified with \fB\-std\fR represents a \s-1GNU\s0
1879 extended dialect of C, such as \fBgnu89\fR or \fBgnu99\fR, there is a
1880 corresponding \fIbase standard\fR, the version of \s-1ISO\s0 C on which the \s-1GNU\s0
1881 extended dialect is based.  Warnings from \fB\-pedantic\fR are given
1882 where they are required by the base standard.  (It would not make sense
1883 for such warnings to be given only for features not in the specified \s-1GNU\s0
1884 C dialect, since by definition the \s-1GNU\s0 dialects of C include all
1885 features the compiler supports with the given option, and there would be
1886 nothing to warn about.)
1887 .IP "\fB\-pedantic\-errors\fR" 4
1888 .IX Item "-pedantic-errors"
1889 Like \fB\-pedantic\fR, except that errors are produced rather than
1890 warnings.
1891 .IP "\fB\-w\fR" 4
1892 .IX Item "-w"
1893 Inhibit all warning messages.
1894 .IP "\fB\-Wno\-import\fR" 4
1895 .IX Item "-Wno-import"
1896 Inhibit warning messages about the use of \fB#import\fR.
1897 .IP "\fB\-Wchar\-subscripts\fR" 4
1898 .IX Item "-Wchar-subscripts"
1899 Warn if an array subscript has type \f(CW\*(C`char\*(C'\fR.  This is a common cause
1900 of error, as programmers often forget that this type is signed on some
1901 machines.
1902 .IP "\fB\-Wcomment\fR" 4
1903 .IX Item "-Wcomment"
1904 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
1905 comment, or whenever a Backslash-Newline appears in a \fB//\fR comment.
1906 .IP "\fB\-Wformat\fR" 4
1907 .IX Item "-Wformat"
1908 Check calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR, etc., to make sure that
1909 the arguments supplied have types appropriate to the format string
1910 specified, and that the conversions specified in the format string make
1911 sense.  This includes standard functions, and others specified by format
1912 attributes, in the \f(CW\*(C`printf\*(C'\fR,
1913 \&\f(CW\*(C`scanf\*(C'\fR, \f(CW\*(C`strftime\*(C'\fR and \f(CW\*(C`strfmon\*(C'\fR (an X/Open extension,
1914 not in the C standard) families.
1915 .Sp
1916 The formats are checked against the format features supported by \s-1GNU\s0
1917 libc version 2.2.  These include all \s-1ISO\s0 C90 and C99 features, as well
1918 as features from the Single Unix Specification and some \s-1BSD\s0 and \s-1GNU\s0
1919 extensions.  Other library implementations may not support all these
1920 features; \s-1GCC\s0 does not support warning about features that go beyond a
1921 particular library's limitations.  However, if \fB\-pedantic\fR is used
1922 with \fB\-Wformat\fR, warnings will be given about format features not
1923 in the selected standard version (but not for \f(CW\*(C`strfmon\*(C'\fR formats,
1924 since those are not in any version of the C standard).  
1925 .Sp
1926 Since \fB\-Wformat\fR also checks for null format arguments for
1927 several functions, \fB\-Wformat\fR also implies \fB\-Wnonnull\fR.
1928 .Sp
1929 \&\fB\-Wformat\fR is included in \fB\-Wall\fR.  For more control over some
1930 aspects of format checking, the options \fB\-Wformat\-y2k\fR,
1931 \&\fB\-Wno\-format\-extra\-args\fR, \fB\-Wno\-format\-zero\-length\fR,
1932 \&\fB\-Wformat\-nonliteral\fR, \fB\-Wformat\-security\fR, and
1933 \&\fB\-Wformat=2\fR are available, but are not included in \fB\-Wall\fR.
1934 .IP "\fB\-Wformat\-y2k\fR" 4
1935 .IX Item "-Wformat-y2k"
1936 If \fB\-Wformat\fR is specified, also warn about \f(CW\*(C`strftime\*(C'\fR
1937 formats which may yield only a two-digit year.
1938 .IP "\fB\-Wno\-format\-extra\-args\fR" 4
1939 .IX Item "-Wno-format-extra-args"
1940 If \fB\-Wformat\fR is specified, do not warn about excess arguments to a
1941 \&\f(CW\*(C`printf\*(C'\fR or \f(CW\*(C`scanf\*(C'\fR format function.  The C standard specifies
1942 that such arguments are ignored.
1943 .Sp
1944 Where the unused arguments lie between used arguments that are
1945 specified with \fB$\fR operand number specifications, normally
1946 warnings are still given, since the implementation could not know what
1947 type to pass to \f(CW\*(C`va_arg\*(C'\fR to skip the unused arguments.  However,
1948 in the case of \f(CW\*(C`scanf\*(C'\fR formats, this option will suppress the
1949 warning if the unused arguments are all pointers, since the Single
1950 Unix Specification says that such unused arguments are allowed.
1951 .IP "\fB\-Wno\-format\-zero\-length\fR" 4
1952 .IX Item "-Wno-format-zero-length"
1953 If \fB\-Wformat\fR is specified, do not warn about zero-length formats.
1954 The C standard specifies that zero-length formats are allowed.
1955 .IP "\fB\-Wformat\-nonliteral\fR" 4
1956 .IX Item "-Wformat-nonliteral"
1957 If \fB\-Wformat\fR is specified, also warn if the format string is not a
1958 string literal and so cannot be checked, unless the format function
1959 takes its format arguments as a \f(CW\*(C`va_list\*(C'\fR.
1960 .IP "\fB\-Wformat\-security\fR" 4
1961 .IX Item "-Wformat-security"
1962 If \fB\-Wformat\fR is specified, also warn about uses of format
1963 functions that represent possible security problems.  At present, this
1964 warns about calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR functions where the
1965 format string is not a string literal and there are no format arguments,
1966 as in \f(CW\*(C`printf (foo);\*(C'\fR.  This may be a security hole if the format
1967 string came from untrusted input and contains \fB%n\fR.  (This is
1968 currently a subset of what \fB\-Wformat\-nonliteral\fR warns about, but
1969 in future warnings may be added to \fB\-Wformat\-security\fR that are not
1970 included in \fB\-Wformat\-nonliteral\fR.)
1971 .IP "\fB\-Wformat=2\fR" 4
1972 .IX Item "-Wformat=2"
1973 Enable \fB\-Wformat\fR plus format checks not included in
1974 \&\fB\-Wformat\fR.  Currently equivalent to \fB\-Wformat
1975 \&\-Wformat\-nonliteral \-Wformat\-security \-Wformat\-y2k\fR.
1976 .IP "\fB\-Wnonnull\fR" 4
1977 .IX Item "-Wnonnull"
1978 Warn about passing a null pointer for arguments marked as
1979 requiring a non-null value by the \f(CW\*(C`nonnull\*(C'\fR function attribute.
1980 .Sp
1981 \&\fB\-Wnonnull\fR is included in \fB\-Wall\fR and \fB\-Wformat\fR.  It
1982 can be disabled with the \fB\-Wno\-nonnull\fR option.
1983 .IP "\fB\-Winit\-self\fR (C, \*(C+, and Objective-C only)" 4
1984 .IX Item "-Winit-self (C, , and Objective-C only)"
1985 Warn about uninitialized variables which are initialized with themselves.
1986 Note this option can only be used with the \fB\-Wuninitialized\fR option,
1987 which in turn only works with \fB\-O1\fR and above.
1988 .Sp
1989 For example, \s-1GCC\s0 will warn about \f(CW\*(C`i\*(C'\fR being uninitialized in the
1990 following snippet only when \fB\-Winit\-self\fR has been specified:
1991 .Sp
1992 .Vb 5
1993 \&        int f()
1994 \&        {
1995 \&          int i = i;
1996 \&          return i;
1997 \&        }
1998 .Ve
1999 .IP "\fB\-Wimplicit\-int\fR" 4
2000 .IX Item "-Wimplicit-int"
2001 Warn when a declaration does not specify a type.
2002 .IP "\fB\-Wimplicit\-function\-declaration\fR" 4
2003 .IX Item "-Wimplicit-function-declaration"
2004 .PD 0
2005 .IP "\fB\-Werror\-implicit\-function\-declaration\fR" 4
2006 .IX Item "-Werror-implicit-function-declaration"
2007 .PD
2008 Give a warning (or error) whenever a function is used before being
2009 declared.
2010 .IP "\fB\-Wimplicit\fR" 4
2011 .IX Item "-Wimplicit"
2012 Same as \fB\-Wimplicit\-int\fR and \fB\-Wimplicit\-function\-declaration\fR.
2013 .IP "\fB\-Wmain\fR" 4
2014 .IX Item "-Wmain"
2015 Warn if the type of \fBmain\fR is suspicious.  \fBmain\fR should be a
2016 function with external linkage, returning int, taking either zero
2017 arguments, two, or three arguments of appropriate types.
2018 .IP "\fB\-Wmissing\-braces\fR" 4
2019 .IX Item "-Wmissing-braces"
2020 Warn if an aggregate or union initializer is not fully bracketed.  In
2021 the following example, the initializer for \fBa\fR is not fully
2022 bracketed, but that for \fBb\fR is fully bracketed.
2023 .Sp
2024 .Vb 2
2025 \&        int a[2][2] = { 0, 1, 2, 3 };
2026 \&        int b[2][2] = { { 0, 1 }, { 2, 3 } };
2027 .Ve
2028 .IP "\fB\-Wparentheses\fR" 4
2029 .IX Item "-Wparentheses"
2030 Warn if parentheses are omitted in certain contexts, such
2031 as when there is an assignment in a context where a truth value
2032 is expected, or when operators are nested whose precedence people
2033 often get confused about.
2034 .Sp
2035 Also warn about constructions where there may be confusion to which
2036 \&\f(CW\*(C`if\*(C'\fR statement an \f(CW\*(C`else\*(C'\fR branch belongs.  Here is an example of
2037 such a case:
2038 .Sp
2039 .Vb 7
2040 \&        {
2041 \&          if (a)
2042 \&            if (b)
2043 \&              foo ();
2044 \&          else
2045 \&            bar ();
2046 \&        }
2047 .Ve
2048 .Sp
2049 In C, every \f(CW\*(C`else\*(C'\fR branch belongs to the innermost possible \f(CW\*(C`if\*(C'\fR
2050 statement, which in this example is \f(CW\*(C`if (b)\*(C'\fR.  This is often not
2051 what the programmer expected, as illustrated in the above example by
2052 indentation the programmer chose.  When there is the potential for this
2053 confusion, \s-1GCC\s0 will issue a warning when this flag is specified.
2054 To eliminate the warning, add explicit braces around the innermost
2055 \&\f(CW\*(C`if\*(C'\fR statement so there is no way the \f(CW\*(C`else\*(C'\fR could belong to
2056 the enclosing \f(CW\*(C`if\*(C'\fR.  The resulting code would look like this:
2057 .Sp
2058 .Vb 9
2059 \&        {
2060 \&          if (a)
2061 \&            {
2062 \&              if (b)
2063 \&                foo ();
2064 \&              else
2065 \&                bar ();
2066 \&            }
2067 \&        }
2068 .Ve
2069 .IP "\fB\-Wsequence\-point\fR" 4
2070 .IX Item "-Wsequence-point"
2071 Warn about code that may have undefined semantics because of violations
2072 of sequence point rules in the C standard.
2073 .Sp
2074 The C standard defines the order in which expressions in a C program are
2075 evaluated in terms of \fIsequence points\fR, which represent a partial
2076 ordering between the execution of parts of the program: those executed
2077 before the sequence point, and those executed after it.  These occur
2078 after the evaluation of a full expression (one which is not part of a
2079 larger expression), after the evaluation of the first operand of a
2080 \&\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
2081 function is called (but after the evaluation of its arguments and the
2082 expression denoting the called function), and in certain other places.
2083 Other than as expressed by the sequence point rules, the order of
2084 evaluation of subexpressions of an expression is not specified.  All
2085 these rules describe only a partial order rather than a total order,
2086 since, for example, if two functions are called within one expression
2087 with no sequence point between them, the order in which the functions
2088 are called is not specified.  However, the standards committee have
2089 ruled that function calls do not overlap.
2090 .Sp
2091 It is not specified when between sequence points modifications to the
2092 values of objects take effect.  Programs whose behavior depends on this
2093 have undefined behavior; the C standard specifies that ``Between the
2094 previous and next sequence point an object shall have its stored value
2095 modified at most once by the evaluation of an expression.  Furthermore,
2096 the prior value shall be read only to determine the value to be
2097 stored.''.  If a program breaks these rules, the results on any
2098 particular implementation are entirely unpredictable.
2099 .Sp
2100 Examples of code with undefined behavior are \f(CW\*(C`a = a++;\*(C'\fR, \f(CW\*(C`a[n]
2101 = b[n++]\*(C'\fR and \f(CW\*(C`a[i++] = i;\*(C'\fR.  Some more complicated cases are not
2102 diagnosed by this option, and it may give an occasional false positive
2103 result, but in general it has been found fairly effective at detecting
2104 this sort of problem in programs.
2105 .Sp
2106 The present implementation of this option only works for C programs.  A
2107 future implementation may also work for \*(C+ programs.
2108 .Sp
2109 The C standard is worded confusingly, therefore there is some debate
2110 over the precise meaning of the sequence point rules in subtle cases.
2111 Links to discussions of the problem, including proposed formal
2112 definitions, may be found on the \s-1GCC\s0 readings page, at
2113 <\fBhttp://gcc.gnu.org/readings.html\fR>.
2114 .IP "\fB\-Wreturn\-type\fR" 4
2115 .IX Item "-Wreturn-type"
2116 Warn whenever a function is defined with a return-type that defaults to
2117 \&\f(CW\*(C`int\*(C'\fR.  Also warn about any \f(CW\*(C`return\*(C'\fR statement with no
2118 return-value in a function whose return-type is not \f(CW\*(C`void\*(C'\fR.
2119 .Sp
2120 For \*(C+, a function without return type always produces a diagnostic
2121 message, even when \fB\-Wno\-return\-type\fR is specified.  The only
2122 exceptions are \fBmain\fR and functions defined in system headers.
2123 .IP "\fB\-Wswitch\fR" 4
2124 .IX Item "-Wswitch"
2125 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
2126 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
2127 enumeration.  (The presence of a \f(CW\*(C`default\*(C'\fR label prevents this
2128 warning.)  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
2129 provoke warnings when this option is used.
2130 .IP "\fB\-Wswitch\-default\fR" 4
2131 .IX Item "-Wswitch-default"
2132 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement does not have a \f(CW\*(C`default\*(C'\fR
2133 case.
2134 .IP "\fB\-Wswitch\-enum\fR" 4
2135 .IX Item "-Wswitch-enum"
2136 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
2137 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
2138 enumeration.  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
2139 provoke warnings when this option is used.
2140 .IP "\fB\-Wtrigraphs\fR" 4
2141 .IX Item "-Wtrigraphs"
2142 Warn if any trigraphs are encountered that might change the meaning of
2143 the program (trigraphs within comments are not warned about).
2144 .IP "\fB\-Wunused\-function\fR" 4
2145 .IX Item "-Wunused-function"
2146 Warn whenever a static function is declared but not defined or a
2147 non\e\-inline static function is unused.
2148 .IP "\fB\-Wunused\-label\fR" 4
2149 .IX Item "-Wunused-label"
2150 Warn whenever a label is declared but not used.
2151 .Sp
2152 To suppress this warning use the \fBunused\fR attribute.
2153 .IP "\fB\-Wunused\-parameter\fR" 4
2154 .IX Item "-Wunused-parameter"
2155 Warn whenever a function parameter is unused aside from its declaration.
2156 .Sp
2157 To suppress this warning use the \fBunused\fR attribute.
2158 .IP "\fB\-Wunused\-variable\fR" 4
2159 .IX Item "-Wunused-variable"
2160 Warn whenever a local variable or non-constant static variable is unused
2161 aside from its declaration
2162 .Sp
2163 To suppress this warning use the \fBunused\fR attribute.
2164 .IP "\fB\-Wunused\-value\fR" 4
2165 .IX Item "-Wunused-value"
2166 Warn whenever a statement computes a result that is explicitly not used.
2167 .Sp
2168 To suppress this warning cast the expression to \fBvoid\fR.
2169 .IP "\fB\-Wunused\fR" 4
2170 .IX Item "-Wunused"
2171 All the above \fB\-Wunused\fR options combined.
2172 .Sp
2173 In order to get a warning about an unused function parameter, you must
2174 either specify \fB\-Wextra \-Wunused\fR (note that \fB\-Wall\fR implies
2175 \&\fB\-Wunused\fR), or separately specify \fB\-Wunused\-parameter\fR.
2176 .IP "\fB\-Wuninitialized\fR" 4
2177 .IX Item "-Wuninitialized"
2178 Warn if an automatic variable is used without first being initialized or
2179 if a variable may be clobbered by a \f(CW\*(C`setjmp\*(C'\fR call.
2180 .Sp
2181 These warnings are possible only in optimizing compilation,
2182 because they require data flow information that is computed only
2183 when optimizing.  If you don't specify \fB\-O\fR, you simply won't
2184 get these warnings.
2185 .Sp
2186 If you want to warn about code which uses the uninitialized value of the
2187 variable in its own initializer, use the \fB\-Winit\-self\fR option.
2188 .Sp
2189 These warnings occur only for variables that are candidates for
2190 register allocation.  Therefore, they do not occur for a variable that
2191 is declared \f(CW\*(C`volatile\*(C'\fR, or whose address is taken, or whose size
2192 is other than 1, 2, 4 or 8 bytes.  Also, they do not occur for
2193 structures, unions or arrays, even when they are in registers.
2194 .Sp
2195 Note that there may be no warning about a variable that is used only
2196 to compute a value that itself is never used, because such
2197 computations may be deleted by data flow analysis before the warnings
2198 are printed.
2199 .Sp
2200 These warnings are made optional because \s-1GCC\s0 is not smart
2201 enough to see all the reasons why the code might be correct
2202 despite appearing to have an error.  Here is one example of how
2203 this can happen:
2204 .Sp
2205 .Vb 12
2206 \&        {
2207 \&          int x;
2208 \&          switch (y)
2209 \&            {
2210 \&            case 1: x = 1;
2211 \&              break;
2212 \&            case 2: x = 4;
2213 \&              break;
2214 \&            case 3: x = 5;
2215 \&            }
2216 \&          foo (x);
2217 \&        }
2218 .Ve
2219 .Sp
2220 If the value of \f(CW\*(C`y\*(C'\fR is always 1, 2 or 3, then \f(CW\*(C`x\*(C'\fR is
2221 always initialized, but \s-1GCC\s0 doesn't know this.  Here is
2222 another common case:
2223 .Sp
2224 .Vb 6
2225 \&        {
2226 \&          int save_y;
2227 \&          if (change_y) save_y = y, y = new_y;
2228 \&          ...
2229 \&          if (change_y) y = save_y;
2230 \&        }
2231 .Ve
2232 .Sp
2233 This has no bug because \f(CW\*(C`save_y\*(C'\fR is used only if it is set.
2234 .Sp
2235 This option also warns when a non-volatile automatic variable might be
2236 changed by a call to \f(CW\*(C`longjmp\*(C'\fR.  These warnings as well are possible
2237 only in optimizing compilation.
2238 .Sp
2239 The compiler sees only the calls to \f(CW\*(C`setjmp\*(C'\fR.  It cannot know
2240 where \f(CW\*(C`longjmp\*(C'\fR will be called; in fact, a signal handler could
2241 call it at any point in the code.  As a result, you may get a warning
2242 even when there is in fact no problem because \f(CW\*(C`longjmp\*(C'\fR cannot
2243 in fact be called at the place which would cause a problem.
2244 .Sp
2245 Some spurious warnings can be avoided if you declare all the functions
2246 you use that never return as \f(CW\*(C`noreturn\*(C'\fR.  
2247 .IP "\fB\-Wunknown\-pragmas\fR" 4
2248 .IX Item "-Wunknown-pragmas"
2249 Warn when a #pragma directive is encountered which is not understood by
2250 \&\s-1GCC\s0.  If this command line option is used, warnings will even be issued
2251 for unknown pragmas in system header files.  This is not the case if
2252 the warnings were only enabled by the \fB\-Wall\fR command line option.
2253 .IP "\fB\-Wstrict\-aliasing\fR" 4
2254 .IX Item "-Wstrict-aliasing"
2255 This option is only active when \fB\-fstrict\-aliasing\fR is active.
2256 It warns about code which might break the strict aliasing rules that the
2257 compiler is using for optimization. The warning does not catch all
2258 cases, but does attempt to catch the more common pitfalls. It is
2259 included in \fB\-Wall\fR.
2260 .IP "\fB\-Wall\fR" 4
2261 .IX Item "-Wall"
2262 All of the above \fB\-W\fR options combined.  This enables all the
2263 warnings about constructions that some users consider questionable, and
2264 that are easy to avoid (or modify to prevent the warning), even in
2265 conjunction with macros.  This also enables some language-specific
2266 warnings described in \fB\*(C+ Dialect Options\fR and
2267 \&\fBObjective-C Dialect Options\fR.
2268 .PP
2269 The following \fB\-W...\fR options are not implied by \fB\-Wall\fR.
2270 Some of them warn about constructions that users generally do not
2271 consider questionable, but which occasionally you might wish to check
2272 for; others warn about constructions that are necessary or hard to avoid
2273 in some cases, and there is no simple way to modify the code to suppress
2274 the warning.
2275 .IP "\fB\-Wextra\fR" 4
2276 .IX Item "-Wextra"
2277 (This option used to be called \fB\-W\fR.  The older name is still
2278 supported, but the newer name is more descriptive.)  Print extra warning
2279 messages for these events:
2280 .RS 4
2281 .IP "*" 4
2282 A function can return either with or without a value.  (Falling
2283 off the end of the function body is considered returning without
2284 a value.)  For example, this function would evoke such a
2285 warning:
2286 .Sp
2287 .Vb 5
2288 \&        foo (a)
2289 \&        {
2290 \&          if (a > 0)
2291 \&            return a;
2292 \&        }
2293 .Ve
2294 .IP "*" 4
2295 An expression-statement or the left-hand side of a comma expression
2296 contains no side effects.
2297 To suppress the warning, cast the unused expression to void.
2298 For example, an expression such as \fBx[i,j]\fR will cause a warning,
2299 but \fBx[(void)i,j]\fR will not.
2300 .IP "*" 4
2301 An unsigned value is compared against zero with \fB<\fR or \fB>=\fR.
2302 .IP "*" 4
2303 A comparison like \fBx<=y<=z\fR appears; this is equivalent to
2304 \&\fB(x<=y ? 1 : 0) <= z\fR, which is a different interpretation from
2305 that of ordinary mathematical notation.
2306 .IP "*" 4
2307 Storage-class specifiers like \f(CW\*(C`static\*(C'\fR are not the first things in
2308 a declaration.  According to the C Standard, this usage is obsolescent.
2309 .IP "*" 4
2310 The return type of a function has a type qualifier such as \f(CW\*(C`const\*(C'\fR.
2311 Such a type qualifier has no effect, since the value returned by a
2312 function is not an lvalue.  (But don't warn about the \s-1GNU\s0 extension of
2313 \&\f(CW\*(C`volatile void\*(C'\fR return types.  That extension will be warned about
2314 if \fB\-pedantic\fR is specified.)
2315 .IP "*" 4
2316 If \fB\-Wall\fR or \fB\-Wunused\fR is also specified, warn about unused
2317 arguments.
2318 .IP "*" 4
2319 A comparison between signed and unsigned values could produce an
2320 incorrect result when the signed value is converted to unsigned.
2321 (But don't warn if \fB\-Wno\-sign\-compare\fR is also specified.)
2322 .IP "*" 4
2323 An aggregate has an initializer which does not initialize all members.
2324 For example, the following code would cause such a warning, because
2325 \&\f(CW\*(C`x.h\*(C'\fR would be implicitly initialized to zero:
2326 .Sp
2327 .Vb 2
2328 \&        struct s { int f, g, h; };
2329 \&        struct s x = { 3, 4 };
2330 .Ve
2331 .IP "*" 4
2332 A function parameter is declared without a type specifier in K&R\-style
2333 functions:
2334 .Sp
2335 .Vb 1
2336 \&        void foo(bar) { }
2337 .Ve
2338 .IP "*" 4
2339 An empty body occurs in an \fBif\fR or \fBelse\fR statement.
2340 .IP "*" 4
2341 A pointer is compared against integer zero with \fB<\fR, \fB<=\fR,
2342 \&\fB>\fR, or \fB>=\fR.
2343 .IP "*" 4
2344 A variable might be changed by \fBlongjmp\fR or \fBvfork\fR.
2345 .IP "*" 4
2346 Any of several floating-point events that often indicate errors, such as
2347 overflow, underflow, loss of precision, etc.
2348 .IP "*<(\*(C+ only)>" 4
2349 .IX Item "*<( only)>"
2350 An enumerator and a non-enumerator both appear in a conditional expression.
2351 .IP "*<(\*(C+ only)>" 4
2352 .IX Item "*<( only)>"
2353 A non-static reference or non-static \fBconst\fR member appears in a
2354 class without constructors.
2355 .IP "*<(\*(C+ only)>" 4
2356 .IX Item "*<( only)>"
2357 Ambiguous virtual bases.
2358 .IP "*<(\*(C+ only)>" 4
2359 .IX Item "*<( only)>"
2360 Subscripting an array which has been declared \fBregister\fR.
2361 .IP "*<(\*(C+ only)>" 4
2362 .IX Item "*<( only)>"
2363 Taking the address of a variable which has been declared \fBregister\fR.
2364 .IP "*<(\*(C+ only)>" 4
2365 .IX Item "*<( only)>"
2366 A base class is not initialized in a derived class' copy constructor.
2367 .RE
2368 .RS 4
2369 .RE
2370 .IP "\fB\-Wno\-div\-by\-zero\fR" 4
2371 .IX Item "-Wno-div-by-zero"
2372 Do not warn about compile-time integer division by zero.  Floating point
2373 division by zero is not warned about, as it can be a legitimate way of
2374 obtaining infinities and NaNs.
2375 .IP "\fB\-Wsystem\-headers\fR" 4
2376 .IX Item "-Wsystem-headers"
2377 Print warning messages for constructs found in system header files.
2378 Warnings from system headers are normally suppressed, on the assumption
2379 that they usually do not indicate real problems and would only make the
2380 compiler output harder to read.  Using this command line option tells
2381 \&\s-1GCC\s0 to emit warnings from system headers as if they occurred in user
2382 code.  However, note that using \fB\-Wall\fR in conjunction with this
2383 option will \fInot\fR warn about unknown pragmas in system
2384 headers\-\-\-for that, \fB\-Wunknown\-pragmas\fR must also be used.
2385 .IP "\fB\-Wfloat\-equal\fR" 4
2386 .IX Item "-Wfloat-equal"
2387 Warn if floating point values are used in equality comparisons.
2388 .Sp
2389 The idea behind this is that sometimes it is convenient (for the
2390 programmer) to consider floating-point values as approximations to
2391 infinitely precise real numbers.  If you are doing this, then you need
2392 to compute (by analyzing the code, or in some other way) the maximum or
2393 likely maximum error that the computation introduces, and allow for it
2394 when performing comparisons (and when producing output, but that's a
2395 different problem).  In particular, instead of testing for equality, you
2396 would check to see whether the two values have ranges that overlap; and
2397 this is done with the relational operators, so equality comparisons are
2398 probably mistaken.
2399 .IP "\fB\-Wtraditional\fR (C only)" 4
2400 .IX Item "-Wtraditional (C only)"
2401 Warn about certain constructs that behave differently in traditional and
2402 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
2403 equivalent, and/or problematic constructs which should be avoided.
2404 .RS 4
2405 .IP "*" 4
2406 Macro parameters that appear within string literals in the macro body.
2407 In traditional C macro replacement takes place within string literals,
2408 but does not in \s-1ISO\s0 C.
2409 .IP "*" 4
2410 In traditional C, some preprocessor directives did not exist.
2411 Traditional preprocessors would only consider a line to be a directive
2412 if the \fB#\fR appeared in column 1 on the line.  Therefore
2413 \&\fB\-Wtraditional\fR warns about directives that traditional C
2414 understands but would ignore because the \fB#\fR does not appear as the
2415 first character on the line.  It also suggests you hide directives like
2416 \&\fB#pragma\fR not understood by traditional C by indenting them.  Some
2417 traditional implementations would not recognize \fB#elif\fR, so it
2418 suggests avoiding it altogether.
2419 .IP "*" 4
2420 A function-like macro that appears without arguments.
2421 .IP "*" 4
2422 The unary plus operator.
2423 .IP "*" 4
2424 The \fBU\fR integer constant suffix, or the \fBF\fR or \fBL\fR floating point
2425 constant suffixes.  (Traditional C does support the \fBL\fR suffix on integer
2426 constants.)  Note, these suffixes appear in macros defined in the system
2427 headers of most modern systems, e.g. the \fB_MIN\fR/\fB_MAX\fR macros in \f(CW\*(C`<limits.h>\*(C'\fR.
2428 Use of these macros in user code might normally lead to spurious
2429 warnings, however \s-1GCC\s0's integrated preprocessor has enough context to
2430 avoid warning in these cases.
2431 .IP "*" 4
2432 A function declared external in one block and then used after the end of
2433 the block.
2434 .IP "*" 4
2435 A \f(CW\*(C`switch\*(C'\fR statement has an operand of type \f(CW\*(C`long\*(C'\fR.
2436 .IP "*" 4
2437 A non\-\f(CW\*(C`static\*(C'\fR function declaration follows a \f(CW\*(C`static\*(C'\fR one.
2438 This construct is not accepted by some traditional C compilers.
2439 .IP "*" 4
2440 The \s-1ISO\s0 type of an integer constant has a different width or
2441 signedness from its traditional type.  This warning is only issued if
2442 the base of the constant is ten.  I.e. hexadecimal or octal values, which
2443 typically represent bit patterns, are not warned about.
2444 .IP "*" 4
2445 Usage of \s-1ISO\s0 string concatenation is detected.
2446 .IP "*" 4
2447 Initialization of automatic aggregates.
2448 .IP "*" 4
2449 Identifier conflicts with labels.  Traditional C lacks a separate
2450 namespace for labels.
2451 .IP "*" 4
2452 Initialization of unions.  If the initializer is zero, the warning is
2453 omitted.  This is done under the assumption that the zero initializer in
2454 user code appears conditioned on e.g. \f(CW\*(C`_\|_STDC_\|_\*(C'\fR to avoid missing
2455 initializer warnings and relies on default initialization to zero in the
2456 traditional C case.
2457 .IP "*" 4
2458 Conversions by prototypes between fixed/floating point values and vice
2459 versa.  The absence of these prototypes when compiling with traditional
2460 C would cause serious problems.  This is a subset of the possible
2461 conversion warnings, for the full set use \fB\-Wconversion\fR.
2462 .IP "*" 4
2463 Use of \s-1ISO\s0 C style function definitions.  This warning intentionally is
2464 \&\fInot\fR issued for prototype declarations or variadic functions
2465 because these \s-1ISO\s0 C features will appear in your code when using
2466 libiberty's traditional C compatibility macros, \f(CW\*(C`PARAMS\*(C'\fR and
2467 \&\f(CW\*(C`VPARAMS\*(C'\fR.  This warning is also bypassed for nested functions
2468 because that feature is already a \s-1GCC\s0 extension and thus not relevant to
2469 traditional C compatibility.
2470 .RE
2471 .RS 4
2472 .RE
2473 .IP "\fB\-Wdeclaration\-after\-statement\fR (C only)" 4
2474 .IX Item "-Wdeclaration-after-statement (C only)"
2475 Warn when a declaration is found after a statement in a block.  This
2476 construct, known from \*(C+, was introduced with \s-1ISO\s0 C99 and is by default
2477 allowed in \s-1GCC\s0.  It is not supported by \s-1ISO\s0 C90 and was not supported by
2478 \&\s-1GCC\s0 versions before \s-1GCC\s0 3.0.  
2479 .IP "\fB\-Wundef\fR" 4
2480 .IX Item "-Wundef"
2481 Warn if an undefined identifier is evaluated in an \fB#if\fR directive.
2482 .IP "\fB\-Wendif\-labels\fR" 4
2483 .IX Item "-Wendif-labels"
2484 Warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
2485 .IP "\fB\-Wshadow\fR" 4
2486 .IX Item "-Wshadow"
2487 Warn whenever a local variable shadows another local variable, parameter or
2488 global variable or whenever a built-in function is shadowed.
2489 .IP "\fB\-Wlarger\-than\-\fR\fIlen\fR" 4
2490 .IX Item "-Wlarger-than-len"
2491 Warn whenever an object of larger than \fIlen\fR bytes is defined.
2492 .IP "\fB\-Wpointer\-arith\fR" 4
2493 .IX Item "-Wpointer-arith"
2494 Warn about anything that depends on the ``size of'' a function type or
2495 of \f(CW\*(C`void\*(C'\fR.  \s-1GNU\s0 C assigns these types a size of 1, for
2496 convenience in calculations with \f(CW\*(C`void *\*(C'\fR pointers and pointers
2497 to functions.
2498 .IP "\fB\-Wbad\-function\-cast\fR (C only)" 4
2499 .IX Item "-Wbad-function-cast (C only)"
2500 Warn whenever a function call is cast to a non-matching type.
2501 For example, warn if \f(CW\*(C`int malloc()\*(C'\fR is cast to \f(CW\*(C`anything *\*(C'\fR.
2502 .IP "\fB\-Wcast\-qual\fR" 4
2503 .IX Item "-Wcast-qual"
2504 Warn whenever a pointer is cast so as to remove a type qualifier from
2505 the target type.  For example, warn if a \f(CW\*(C`const char *\*(C'\fR is cast
2506 to an ordinary \f(CW\*(C`char *\*(C'\fR.
2507 .IP "\fB\-Wcast\-align\fR" 4
2508 .IX Item "-Wcast-align"
2509 Warn whenever a pointer is cast such that the required alignment of the
2510 target is increased.  For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
2511 an \f(CW\*(C`int *\*(C'\fR on machines where integers can only be accessed at
2512 two\- or four-byte boundaries.
2513 .IP "\fB\-Wwrite\-strings\fR" 4
2514 .IX Item "-Wwrite-strings"
2515 When compiling C, give string constants the type \f(CW\*(C`const
2516 char[\f(CIlength\f(CW]\*(C'\fR so that
2517 copying the address of one into a non\-\f(CW\*(C`const\*(C'\fR \f(CW\*(C`char *\*(C'\fR
2518 pointer will get a warning; when compiling \*(C+, warn about the
2519 deprecated conversion from string constants to \f(CW\*(C`char *\*(C'\fR.
2520 These warnings will help you find at
2521 compile time code that can try to write into a string constant, but
2522 only if you have been very careful about using \f(CW\*(C`const\*(C'\fR in
2523 declarations and prototypes.  Otherwise, it will just be a nuisance;
2524 this is why we did not make \fB\-Wall\fR request these warnings.
2525 .IP "\fB\-Wconversion\fR" 4
2526 .IX Item "-Wconversion"
2527 Warn if a prototype causes a type conversion that is different from what
2528 would happen to the same argument in the absence of a prototype.  This
2529 includes conversions of fixed point to floating and vice versa, and
2530 conversions changing the width or signedness of a fixed point argument
2531 except when the same as the default promotion.
2532 .Sp
2533 Also, warn if a negative integer constant expression is implicitly
2534 converted to an unsigned type.  For example, warn about the assignment
2535 \&\f(CW\*(C`x = \-1\*(C'\fR if \f(CW\*(C`x\*(C'\fR is unsigned.  But do not warn about explicit
2536 casts like \f(CW\*(C`(unsigned) \-1\*(C'\fR.
2537 .IP "\fB\-Wsign\-compare\fR" 4
2538 .IX Item "-Wsign-compare"
2539 Warn when a comparison between signed and unsigned values could produce
2540 an incorrect result when the signed value is converted to unsigned.
2541 This warning is also enabled by \fB\-Wextra\fR; to get the other warnings
2542 of \fB\-Wextra\fR without this warning, use \fB\-Wextra \-Wno\-sign\-compare\fR.
2543 .IP "\fB\-Waggregate\-return\fR" 4
2544 .IX Item "-Waggregate-return"
2545 Warn if any functions that return structures or unions are defined or
2546 called.  (In languages where you can return an array, this also elicits
2547 a warning.)
2548 .IP "\fB\-Wstrict\-prototypes\fR (C only)" 4
2549 .IX Item "-Wstrict-prototypes (C only)"
2550 Warn if a function is declared or defined without specifying the
2551 argument types.  (An old-style function definition is permitted without
2552 a warning if preceded by a declaration which specifies the argument
2553 types.)
2554 .IP "\fB\-Wold\-style\-definition\fR (C only)" 4
2555 .IX Item "-Wold-style-definition (C only)"
2556 Warn if an old-style function definition is used.  A warning is given
2557 even if there is a previous prototype.
2558 .IP "\fB\-Wmissing\-prototypes\fR (C only)" 4
2559 .IX Item "-Wmissing-prototypes (C only)"
2560 Warn if a global function is defined without a previous prototype
2561 declaration.  This warning is issued even if the definition itself
2562 provides a prototype.  The aim is to detect global functions that fail
2563 to be declared in header files.
2564 .IP "\fB\-Wmissing\-declarations\fR (C only)" 4
2565 .IX Item "-Wmissing-declarations (C only)"
2566 Warn if a global function is defined without a previous declaration.
2567 Do so even if the definition itself provides a prototype.
2568 Use this option to detect global functions that are not declared in
2569 header files.
2570 .IP "\fB\-Wmissing\-noreturn\fR" 4
2571 .IX Item "-Wmissing-noreturn"
2572 Warn about functions which might be candidates for attribute \f(CW\*(C`noreturn\*(C'\fR.
2573 Note these are only possible candidates, not absolute ones.  Care should
2574 be taken to manually verify functions actually do not ever return before
2575 adding the \f(CW\*(C`noreturn\*(C'\fR attribute, otherwise subtle code generation
2576 bugs could be introduced.  You will not get a warning for \f(CW\*(C`main\*(C'\fR in
2577 hosted C environments.
2578 .IP "\fB\-Wmissing\-format\-attribute\fR" 4
2579 .IX Item "-Wmissing-format-attribute"
2580 If \fB\-Wformat\fR is enabled, also warn about functions which might be
2581 candidates for \f(CW\*(C`format\*(C'\fR attributes.  Note these are only possible
2582 candidates, not absolute ones.  \s-1GCC\s0 will guess that \f(CW\*(C`format\*(C'\fR
2583 attributes might be appropriate for any function that calls a function
2584 like \f(CW\*(C`vprintf\*(C'\fR or \f(CW\*(C`vscanf\*(C'\fR, but this might not always be the
2585 case, and some functions for which \f(CW\*(C`format\*(C'\fR attributes are
2586 appropriate may not be detected.  This option has no effect unless
2587 \&\fB\-Wformat\fR is enabled (possibly by \fB\-Wall\fR).
2588 .IP "\fB\-Wno\-multichar\fR" 4
2589 .IX Item "-Wno-multichar"
2590 Do not warn if a multicharacter constant (\fB'\s-1FOOF\s0'\fR) is used.
2591 Usually they indicate a typo in the user's code, as they have
2592 implementation-defined values, and should not be used in portable code.
2593 .IP "\fB\-Wno\-deprecated\-declarations\fR" 4
2594 .IX Item "-Wno-deprecated-declarations"
2595 Do not warn about uses of functions, variables, and types marked as
2596 deprecated by using the \f(CW\*(C`deprecated\*(C'\fR attribute.
2597 (@pxref{Function Attributes}, \f(CW@pxref\fR{Variable Attributes},
2598 \&\f(CW@pxref\fR{Type Attributes}.)
2599 .IP "\fB\-Wpacked\fR" 4
2600 .IX Item "-Wpacked"
2601 Warn if a structure is given the packed attribute, but the packed
2602 attribute has no effect on the layout or size of the structure.
2603 Such structures may be mis-aligned for little benefit.  For
2604 instance, in this code, the variable \f(CW\*(C`f.x\*(C'\fR in \f(CW\*(C`struct bar\*(C'\fR
2605 will be misaligned even though \f(CW\*(C`struct bar\*(C'\fR does not itself
2606 have the packed attribute:
2607 .Sp
2608 .Vb 8
2609 \&        struct foo {
2610 \&          int x;
2611 \&          char a, b, c, d;
2612 \&        } __attribute__((packed));
2613 \&        struct bar {
2614 \&          char z;
2615 \&          struct foo f;
2616 \&        };
2617 .Ve
2618 .IP "\fB\-Wpadded\fR" 4
2619 .IX Item "-Wpadded"
2620 Warn if padding is included in a structure, either to align an element
2621 of the structure or to align the whole structure.  Sometimes when this
2622 happens it is possible to rearrange the fields of the structure to
2623 reduce the padding and so make the structure smaller.
2624 .IP "\fB\-Wredundant\-decls\fR" 4
2625 .IX Item "-Wredundant-decls"
2626 Warn if anything is declared more than once in the same scope, even in
2627 cases where multiple declaration is valid and changes nothing.
2628 .IP "\fB\-Wnested\-externs\fR (C only)" 4
2629 .IX Item "-Wnested-externs (C only)"
2630 Warn if an \f(CW\*(C`extern\*(C'\fR declaration is encountered within a function.
2631 .IP "\fB\-Wunreachable\-code\fR" 4
2632 .IX Item "-Wunreachable-code"
2633 Warn if the compiler detects that code will never be executed.
2634 .Sp
2635 This option is intended to warn when the compiler detects that at
2636 least a whole line of source code will never be executed, because
2637 some condition is never satisfied or because it is after a
2638 procedure that never returns.
2639 .Sp
2640 It is possible for this option to produce a warning even though there
2641 are circumstances under which part of the affected line can be executed,
2642 so care should be taken when removing apparently-unreachable code.
2643 .Sp
2644 For instance, when a function is inlined, a warning may mean that the
2645 line is unreachable in only one inlined copy of the function.
2646 .Sp
2647 This option is not made part of \fB\-Wall\fR because in a debugging
2648 version of a program there is often substantial code which checks
2649 correct functioning of the program and is, hopefully, unreachable
2650 because the program does work.  Another common use of unreachable
2651 code is to provide behavior which is selectable at compile\-time.
2652 .IP "\fB\-Winline\fR" 4
2653 .IX Item "-Winline"
2654 Warn if a function can not be inlined and it was declared as inline.
2655 Even with this option, the compiler will not warn about failures to
2656 inline functions declared in system headers.
2657 .Sp
2658 The compiler uses a variety of heuristics to determine whether or not
2659 to inline a function.  For example, the compiler takes into account
2660 the size of the function being inlined and the the amount of inlining
2661 that has already been done in the current function.  Therefore,
2662 seemingly insignificant changes in the source program can cause the
2663 warnings produced by \fB\-Winline\fR to appear or disappear.
2664 .IP "\fB\-Wno\-invalid\-offsetof\fR (\*(C+ only)" 4
2665 .IX Item "-Wno-invalid-offsetof ( only)"
2666 Suppress warnings from applying the \fBoffsetof\fR macro to a non-POD
2667 type.  According to the 1998 \s-1ISO\s0 \*(C+ standard, applying \fBoffsetof\fR
2668 to a non-POD type is undefined.  In existing \*(C+ implementations,
2669 however, \fBoffsetof\fR typically gives meaningful results even when
2670 applied to certain kinds of non-POD types. (Such as a simple
2671 \&\fBstruct\fR that fails to be a \s-1POD\s0 type only by virtue of having a
2672 constructor.)  This flag is for users who are aware that they are
2673 writing nonportable code and who have deliberately chosen to ignore the
2674 warning about it.
2675 .Sp
2676 The restrictions on \fBoffsetof\fR may be relaxed in a future version
2677 of the \*(C+ standard.
2678 .IP "\fB\-Winvalid\-pch\fR" 4
2679 .IX Item "-Winvalid-pch"
2680 Warn if a precompiled header is found in
2681 the search path but can't be used.
2682 .IP "\fB\-Wlong\-long\fR" 4
2683 .IX Item "-Wlong-long"
2684 Warn if \fBlong long\fR type is used.  This is default.  To inhibit
2685 the warning messages, use \fB\-Wno\-long\-long\fR.  Flags
2686 \&\fB\-Wlong\-long\fR and \fB\-Wno\-long\-long\fR are taken into account
2687 only when \fB\-pedantic\fR flag is used.
2688 .IP "\fB\-Wdisabled\-optimization\fR" 4
2689 .IX Item "-Wdisabled-optimization"
2690 Warn if a requested optimization pass is disabled.  This warning does
2691 not generally indicate that there is anything wrong with your code; it
2692 merely indicates that \s-1GCC\s0's optimizers were unable to handle the code
2693 effectively.  Often, the problem is that your code is too big or too
2694 complex; \s-1GCC\s0 will refuse to optimize programs when the optimization
2695 itself is likely to take inordinate amounts of time.
2696 .IP "\fB\-Werror\fR" 4
2697 .IX Item "-Werror"
2698 Make all warnings into errors.
2699 .Sh "Options for Debugging Your Program or \s-1GCC\s0"
2700 .IX Subsection "Options for Debugging Your Program or GCC"
2701 \&\s-1GCC\s0 has various special options that are used for debugging
2702 either your program or \s-1GCC:\s0
2703 .IP "\fB\-g\fR" 4
2704 .IX Item "-g"
2705 Produce debugging information in the operating system's native format
2706 (stabs, \s-1COFF\s0, \s-1XCOFF\s0, or \s-1DWARF\s0).  \s-1GDB\s0 can work with this debugging
2707 information.
2708 .Sp
2709 On most systems that use stabs format, \fB\-g\fR enables use of extra
2710 debugging information that only \s-1GDB\s0 can use; this extra information
2711 makes debugging work better in \s-1GDB\s0 but will probably make other debuggers
2712 crash or
2713 refuse to read the program.  If you want to control for certain whether
2714 to generate the extra information, use \fB\-gstabs+\fR, \fB\-gstabs\fR,
2715 \&\fB\-gxcoff+\fR, \fB\-gxcoff\fR, or \fB\-gvms\fR (see below).
2716 .Sp
2717 Unlike most other C compilers, \s-1GCC\s0 allows you to use \fB\-g\fR with
2718 \&\fB\-O\fR.  The shortcuts taken by optimized code may occasionally
2719 produce surprising results: some variables you declared may not exist
2720 at all; flow of control may briefly move where you did not expect it;
2721 some statements may not be executed because they compute constant
2722 results or their values were already at hand; some statements may
2723 execute in different places because they were moved out of loops.
2724 .Sp
2725 Nevertheless it proves possible to debug optimized output.  This makes
2726 it reasonable to use the optimizer for programs that might have bugs.
2727 .Sp
2728 The following options are useful when \s-1GCC\s0 is generated with the
2729 capability for more than one debugging format.
2730 .IP "\fB\-ggdb\fR" 4
2731 .IX Item "-ggdb"
2732 Produce debugging information for use by \s-1GDB\s0.  This means to use the
2733 most expressive format available (\s-1DWARF\s0 2, stabs, or the native format
2734 if neither of those are supported), including \s-1GDB\s0 extensions if at all
2735 possible.
2736 .IP "\fB\-gstabs\fR" 4
2737 .IX Item "-gstabs"
2738 Produce debugging information in stabs format (if that is supported),
2739 without \s-1GDB\s0 extensions.  This is the format used by \s-1DBX\s0 on most \s-1BSD\s0
2740 systems.  On \s-1MIPS\s0, Alpha and System V Release 4 systems this option
2741 produces stabs debugging output which is not understood by \s-1DBX\s0 or \s-1SDB\s0.
2742 On System V Release 4 systems this option requires the \s-1GNU\s0 assembler.
2743 .IP "\fB\-feliminate\-unused\-debug\-symbols\fR" 4
2744 .IX Item "-feliminate-unused-debug-symbols"
2745 Produce debugging information in stabs format (if that is supported),
2746 for only symbols that are actually used.
2747 .IP "\fB\-gstabs+\fR" 4
2748 .IX Item "-gstabs+"
2749 Produce debugging information in stabs format (if that is supported),
2750 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
2751 use of these extensions is likely to make other debuggers crash or
2752 refuse to read the program.
2753 .IP "\fB\-gcoff\fR" 4
2754 .IX Item "-gcoff"
2755 Produce debugging information in \s-1COFF\s0 format (if that is supported).
2756 This is the format used by \s-1SDB\s0 on most System V systems prior to
2757 System V Release 4.
2758 .IP "\fB\-gxcoff\fR" 4
2759 .IX Item "-gxcoff"
2760 Produce debugging information in \s-1XCOFF\s0 format (if that is supported).
2761 This is the format used by the \s-1DBX\s0 debugger on \s-1IBM\s0 \s-1RS/6000\s0 systems.
2762 .IP "\fB\-gxcoff+\fR" 4
2763 .IX Item "-gxcoff+"
2764 Produce debugging information in \s-1XCOFF\s0 format (if that is supported),
2765 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
2766 use of these extensions is likely to make other debuggers crash or
2767 refuse to read the program, and may cause assemblers other than the \s-1GNU\s0
2768 assembler (\s-1GAS\s0) to fail with an error.
2769 .IP "\fB\-gdwarf\-2\fR" 4
2770 .IX Item "-gdwarf-2"
2771 Produce debugging information in \s-1DWARF\s0 version 2 format (if that is
2772 supported).  This is the format used by \s-1DBX\s0 on \s-1IRIX\s0 6.
2773 .IP "\fB\-gvms\fR" 4
2774 .IX Item "-gvms"
2775 Produce debugging information in \s-1VMS\s0 debug format (if that is
2776 supported).  This is the format used by \s-1DEBUG\s0 on \s-1VMS\s0 systems.
2777 .IP "\fB\-g\fR\fIlevel\fR" 4
2778 .IX Item "-glevel"
2779 .PD 0
2780 .IP "\fB\-ggdb\fR\fIlevel\fR" 4
2781 .IX Item "-ggdblevel"
2782 .IP "\fB\-gstabs\fR\fIlevel\fR" 4
2783 .IX Item "-gstabslevel"
2784 .IP "\fB\-gcoff\fR\fIlevel\fR" 4
2785 .IX Item "-gcofflevel"
2786 .IP "\fB\-gxcoff\fR\fIlevel\fR" 4
2787 .IX Item "-gxcofflevel"
2788 .IP "\fB\-gvms\fR\fIlevel\fR" 4
2789 .IX Item "-gvmslevel"
2790 .PD
2791 Request debugging information and also use \fIlevel\fR to specify how
2792 much information.  The default level is 2.
2793 .Sp
2794 Level 1 produces minimal information, enough for making backtraces in
2795 parts of the program that you don't plan to debug.  This includes
2796 descriptions of functions and external variables, but no information
2797 about local variables and no line numbers.
2798 .Sp
2799 Level 3 includes extra information, such as all the macro definitions
2800 present in the program.  Some debuggers support macro expansion when
2801 you use \fB\-g3\fR.
2802 .Sp
2803 Note that in order to avoid confusion between \s-1DWARF1\s0 debug level 2,
2804 and \s-1DWARF2\s0 \fB\-gdwarf\-2\fR does not accept a concatenated debug
2805 level.  Instead use an additional \fB\-g\fR\fIlevel\fR option to
2806 change the debug level for \s-1DWARF2\s0.
2807 .IP "\fB\-feliminate\-dwarf2\-dups\fR" 4
2808 .IX Item "-feliminate-dwarf2-dups"
2809 Compress \s-1DWARF2\s0 debugging information by eliminating duplicated
2810 information about each symbol.  This option only makes sense when
2811 generating \s-1DWARF2\s0 debugging information with \fB\-gdwarf\-2\fR.
2812 .IP "\fB\-p\fR" 4
2813 .IX Item "-p"
2814 Generate extra code to write profile information suitable for the
2815 analysis program \fBprof\fR.  You must use this option when compiling
2816 the source files you want data about, and you must also use it when
2817 linking.
2818 .IP "\fB\-pg\fR" 4
2819 .IX Item "-pg"
2820 Generate extra code to write profile information suitable for the
2821 analysis program \fBgprof\fR.  You must use this option when compiling
2822 the source files you want data about, and you must also use it when
2823 linking.
2824 .IP "\fB\-Q\fR" 4
2825 .IX Item "-Q"
2826 Makes the compiler print out each function name as it is compiled, and
2827 print some statistics about each pass when it finishes.
2828 .IP "\fB\-ftime\-report\fR" 4
2829 .IX Item "-ftime-report"
2830 Makes the compiler print some statistics about the time consumed by each
2831 pass when it finishes.
2832 .IP "\fB\-fmem\-report\fR" 4
2833 .IX Item "-fmem-report"
2834 Makes the compiler print some statistics about permanent memory
2835 allocation when it finishes.
2836 .IP "\fB\-fprofile\-arcs\fR" 4
2837 .IX Item "-fprofile-arcs"
2838 Add code so that program flow \fIarcs\fR are instrumented.  During
2839 execution the program records how many times each branch and call is
2840 executed and how many times it is taken or returns.  When the compiled
2841 program exits it saves this data to a file called
2842 \&\fI\fIauxname\fI.gcda\fR for each source file. The data may be used for
2843 profile-directed optimizations (\fB\-fbranch\-probabilities\fR), or for
2844 test coverage analysis (\fB\-ftest\-coverage\fR). Each object file's
2845 \&\fIauxname\fR is generated from the name of the output file, if
2846 explicitly specified and it is not the final executable, otherwise it is
2847 the basename of the source file. In both cases any suffix is removed
2848 (e.g.  \fIfoo.gcda\fR for input file \fIdir/foo.c\fR, or
2849 \&\fIdir/foo.gcda\fR for output file specified as \fB\-o dir/foo.o\fR).
2850 .RS 4
2851 .IP "@bullet" 4
2852 .IX Item "@bullet"
2853 Compile the source files with \fB\-fprofile\-arcs\fR plus optimization
2854 and code generation options. For test coverage analysis, use the
2855 additional \fB\-ftest\-coverage\fR option. You do not need to profile
2856 every source file in a program.
2857 .IP "@cvmmfu" 4
2858 .IX Item "@cvmmfu"
2859 Link your object files with \fB\-lgcov\fR or \fB\-fprofile\-arcs\fR
2860 (the latter implies the former).
2861 .IP "@dwnngv" 4
2862 .IX Item "@dwnngv"
2863 Run the program on a representative workload to generate the arc profile
2864 information. This may be repeated any number of times. You can run
2865 concurrent instances of your program, and provided that the file system
2866 supports locking, the data files will be correctly updated. Also
2867 \&\f(CW\*(C`fork\*(C'\fR calls are detected and correctly handled (double counting
2868 will not happen).
2869 .IP "@exoohw" 4
2870 .IX Item "@exoohw"
2871 For profile-directed optimizations, compile the source files again with
2872 the same optimization and code generation options plus
2873 \&\fB\-fbranch\-probabilities\fR.
2874 .IP "@fyppix" 4
2875 .IX Item "@fyppix"
2876 For test coverage analysis, use \fBgcov\fR to produce human readable
2877 information from the \fI.gcno\fR and \fI.gcda\fR files. Refer to the
2878 \&\fBgcov\fR documentation for further information.
2879 .RE
2880 .RS 4
2881 .Sp
2882 With \fB\-fprofile\-arcs\fR, for each function of your program \s-1GCC\s0
2883 creates a program flow graph, then finds a spanning tree for the graph.
2884 Only arcs that are not on the spanning tree have to be instrumented: the
2885 compiler adds code to count the number of times that these arcs are
2886 executed.  When an arc is the only exit or only entrance to a block, the
2887 instrumentation code can be added to the block; otherwise, a new basic
2888 block must be created to hold the instrumentation code.
2889 .RE
2890 .IP "\fB\-ftest\-coverage\fR" 4
2891 .IX Item "-ftest-coverage"
2892 Produce a notes file that the \fBgcov\fR code-coverage utility can use to
2893 show program coverage. Each source file's note file is called
2894 \&\fI\fIauxname\fI.gcno\fR. Refer to the \fB\-fprofile\-arcs\fR option
2895 above for a description of \fIauxname\fR and instructions on how to
2896 generate test coverage data. Coverage data will match the source files
2897 more closely, if you do not optimize.
2898 .IP "\fB\-d\fR\fIletters\fR" 4
2899 .IX Item "-dletters"
2900 Says to make debugging dumps during compilation at times specified by
2901 \&\fIletters\fR.  This is used for debugging the compiler.  The file names
2902 for most of the dumps are made by appending a pass number and a word to
2903 the \fIdumpname\fR. \fIdumpname\fR is generated from the name of the
2904 output file, if explicitly specified and it is not an executable,
2905 otherwise it is the basename of the source file. In both cases any
2906 suffix is removed (e.g.  \fIfoo.01.rtl\fR or \fIfoo.02.sibling\fR).
2907 Here are the possible letters for use in \fIletters\fR, and their
2908 meanings:
2909 .RS 4
2910 .IP "\fBA\fR" 4
2911 .IX Item "A"
2912 Annotate the assembler output with miscellaneous debugging information.
2913 .IP "\fBb\fR" 4
2914 .IX Item "b"
2915 Dump after computing branch probabilities, to \fI\fIfile\fI.12.bp\fR.
2916 .IP "\fBB\fR" 4
2917 .IX Item "B"
2918 Dump after block reordering, to \fI\fIfile\fI.31.bbro\fR.
2919 .IP "\fBc\fR" 4
2920 .IX Item "c"
2921 Dump after instruction combination, to the file \fI\fIfile\fI.20.combine\fR.
2922 .IP "\fBC\fR" 4
2923 .IX Item "C"
2924 Dump after the first if conversion, to the file \fI\fIfile\fI.14.ce1\fR.
2925 Also dump after the second if conversion, to the file \fI\fIfile\fI.21.ce2\fR.
2926 .IP "\fBd\fR" 4
2927 .IX Item "d"
2928 Dump after branch target load optimization, to to \fI\fIfile\fI.32.btl\fR.
2929 Also dump after delayed branch scheduling, to \fI\fIfile\fI.36.dbr\fR.
2930 .IP "\fBD\fR" 4
2931 .IX Item "D"
2932 Dump all macro definitions, at the end of preprocessing, in addition to
2933 normal output.
2934 .IP "\fBE\fR" 4
2935 .IX Item "E"
2936 Dump after the third if conversion, to \fI\fIfile\fI.30.ce3\fR.
2937 .IP "\fBf\fR" 4
2938 .IX Item "f"
2939 Dump after control and data flow analysis, to \fI\fIfile\fI.11.cfg\fR.
2940 Also dump after life analysis, to \fI\fIfile\fI.19.life\fR.
2941 .IP "\fBF\fR" 4
2942 .IX Item "F"
2943 Dump after purging \f(CW\*(C`ADDRESSOF\*(C'\fR codes, to \fI\fIfile\fI.07.addressof\fR.
2944 .IP "\fBg\fR" 4
2945 .IX Item "g"
2946 Dump after global register allocation, to \fI\fIfile\fI.25.greg\fR.
2947 .IP "\fBG\fR" 4
2948 .IX Item "G"
2949 Dump after \s-1GCSE\s0, to \fI\fIfile\fI.08.gcse\fR.
2950 Also dump after jump bypassing and control flow optimizations, to
2951 \&\fI\fIfile\fI.10.bypass\fR.
2952 .IP "\fBh\fR" 4
2953 .IX Item "h"
2954 Dump after finalization of \s-1EH\s0 handling code, to \fI\fIfile\fI.03.eh\fR.
2955 .IP "\fBi\fR" 4
2956 .IX Item "i"
2957 Dump after sibling call optimizations, to \fI\fIfile\fI.02.sibling\fR.
2958 .IP "\fBj\fR" 4
2959 .IX Item "j"
2960 Dump after the first jump optimization, to \fI\fIfile\fI.04.jump\fR.
2961 .IP "\fBk\fR" 4
2962 .IX Item "k"
2963 Dump after conversion from registers to stack, to \fI\fIfile\fI.34.stack\fR.
2964 .IP "\fBl\fR" 4
2965 .IX Item "l"
2966 Dump after local register allocation, to \fI\fIfile\fI.24.lreg\fR.
2967 .IP "\fBL\fR" 4
2968 .IX Item "L"
2969 Dump after loop optimization passes, to \fI\fIfile\fI.09.loop\fR and
2970 \&\fI\fIfile\fI.16.loop2\fR.
2971 .IP "\fBM\fR" 4
2972 .IX Item "M"
2973 Dump after performing the machine dependent reorganization pass, to
2974 \&\fI\fIfile\fI.35.mach\fR.
2975 .IP "\fBn\fR" 4
2976 .IX Item "n"
2977 Dump after register renumbering, to \fI\fIfile\fI.29.rnreg\fR.
2978 .IP "\fBN\fR" 4
2979 .IX Item "N"
2980 Dump after the register move pass, to \fI\fIfile\fI.22.regmove\fR.
2981 .IP "\fBo\fR" 4
2982 .IX Item "o"
2983 Dump after post-reload optimizations, to \fI\fIfile\fI.26.postreload\fR.
2984 .IP "\fBr\fR" 4
2985 .IX Item "r"
2986 Dump after \s-1RTL\s0 generation, to \fI\fIfile\fI.01.rtl\fR.
2987 .IP "\fBR\fR" 4
2988 .IX Item "R"
2989 Dump after the second scheduling pass, to \fI\fIfile\fI.33.sched2\fR.
2990 .IP "\fBs\fR" 4
2991 .IX Item "s"
2992 Dump after \s-1CSE\s0 (including the jump optimization that sometimes follows
2993 \&\s-1CSE\s0), to \fI\fIfile\fI.06.cse\fR.
2994 .IP "\fBS\fR" 4
2995 .IX Item "S"
2996 Dump after the first scheduling pass, to \fI\fIfile\fI.23.sched\fR.
2997 .IP "\fBt\fR" 4
2998 .IX Item "t"
2999 Dump after the second \s-1CSE\s0 pass (including the jump optimization that
3000 sometimes follows \s-1CSE\s0), to \fI\fIfile\fI.18.cse2\fR.
3001 .IP "\fBT\fR" 4
3002 .IX Item "T"
3003 Dump after running tracer, to \fI\fIfile\fI.15.tracer\fR.
3004 .IP "\fBu\fR" 4
3005 .IX Item "u"
3006 Dump after null pointer elimination pass to \fI\fIfile\fI.05.null\fR.
3007 .IP "\fBU\fR" 4
3008 .IX Item "U"
3009 Dump callgraph and unit-at-a-time optimization \fI\fIfile\fI.00.unit\fR.
3010 .IP "\fBV\fR" 4
3011 .IX Item "V"
3012 Dump after the value profile transformations, to \fI\fIfile\fI.13.vpt\fR.
3013 .IP "\fBw\fR" 4
3014 .IX Item "w"
3015 Dump after the second flow pass, to \fI\fIfile\fI.27.flow2\fR.
3016 .IP "\fBz\fR" 4
3017 .IX Item "z"
3018 Dump after the peephole pass, to \fI\fIfile\fI.28.peephole2\fR.
3019 .IP "\fBZ\fR" 4
3020 .IX Item "Z"
3021 Dump after constructing the web, to \fI\fIfile\fI.17.web\fR.
3022 .IP "\fBa\fR" 4
3023 .IX Item "a"
3024 Produce all the dumps listed above.
3025 .IP "\fBH\fR" 4
3026 .IX Item "H"
3027 Produce a core dump whenever an error occurs.
3028 .IP "\fBm\fR" 4
3029 .IX Item "m"
3030 Print statistics on memory usage, at the end of the run, to
3031 standard error.
3032 .IP "\fBp\fR" 4
3033 .IX Item "p"
3034 Annotate the assembler output with a comment indicating which
3035 pattern and alternative was used.  The length of each instruction is
3036 also printed.
3037 .IP "\fBP\fR" 4
3038 .IX Item "P"
3039 Dump the \s-1RTL\s0 in the assembler output as a comment before each instruction.
3040 Also turns on \fB\-dp\fR annotation.
3041 .IP "\fBv\fR" 4
3042 .IX Item "v"
3043 For each of the other indicated dump files (except for
3044 \&\fI\fIfile\fI.01.rtl\fR), dump a representation of the control flow graph
3045 suitable for viewing with \s-1VCG\s0 to \fI\fIfile\fI.\fIpass\fI.vcg\fR.
3046 .IP "\fBx\fR" 4
3047 .IX Item "x"
3048 Just generate \s-1RTL\s0 for a function instead of compiling it.  Usually used
3049 with \fBr\fR.
3050 .IP "\fBy\fR" 4
3051 .IX Item "y"
3052 Dump debugging information during parsing, to standard error.
3053 .RE
3054 .RS 4
3055 .RE
3056 .IP "\fB\-fdump\-unnumbered\fR" 4
3057 .IX Item "-fdump-unnumbered"
3058 When doing debugging dumps (see \fB\-d\fR option above), suppress instruction
3059 numbers and line number note output.  This makes it more feasible to
3060 use diff on debugging dumps for compiler invocations with different
3061 options, in particular with and without \fB\-g\fR.
3062 .IP "\fB\-fdump\-translation\-unit\fR (C and \*(C+ only)" 4
3063 .IX Item "-fdump-translation-unit (C and  only)"
3064 .PD 0
3065 .IP "\fB\-fdump\-translation\-unit\-\fR\fIoptions\fR\fB \fR(C and \*(C+ only)" 4
3066 .IX Item "-fdump-translation-unit-options (C and  only)"
3067 .PD
3068 Dump a representation of the tree structure for the entire translation
3069 unit to a file.  The file name is made by appending \fI.tu\fR to the
3070 source file name.  If the \fB\-\fR\fIoptions\fR form is used, \fIoptions\fR
3071 controls the details of the dump as described for the
3072 \&\fB\-fdump\-tree\fR options.
3073 .IP "\fB\-fdump\-class\-hierarchy\fR (\*(C+ only)" 4
3074 .IX Item "-fdump-class-hierarchy ( only)"
3075 .PD 0
3076 .IP "\fB\-fdump\-class\-hierarchy\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
3077 .IX Item "-fdump-class-hierarchy-options ( only)"
3078 .PD
3079 Dump a representation of each class's hierarchy and virtual function
3080 table layout to a file.  The file name is made by appending \fI.class\fR
3081 to the source file name.  If the \fB\-\fR\fIoptions\fR form is used,
3082 \&\fIoptions\fR controls the details of the dump as described for the
3083 \&\fB\-fdump\-tree\fR options.
3084 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB \fR(\*(C+ only)" 4
3085 .IX Item "-fdump-tree-switch ( only)"
3086 .PD 0
3087 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
3088 .IX Item "-fdump-tree-switch-options ( only)"
3089 .PD
3090 Control the dumping at various stages of processing the intermediate
3091 language tree to a file.  The file name is generated by appending a switch
3092 specific suffix to the source file name.  If the \fB\-\fR\fIoptions\fR
3093 form is used, \fIoptions\fR is a list of \fB\-\fR separated options that
3094 control the details of the dump. Not all options are applicable to all
3095 dumps, those which are not meaningful will be ignored. The following
3096 options are available
3097 .RS 4
3098 .IP "\fBaddress\fR" 4
3099 .IX Item "address"
3100 Print the address of each node.  Usually this is not meaningful as it
3101 changes according to the environment and source file. Its primary use
3102 is for tying up a dump file with a debug environment.
3103 .IP "\fBslim\fR" 4
3104 .IX Item "slim"
3105 Inhibit dumping of members of a scope or body of a function merely
3106 because that scope has been reached. Only dump such items when they
3107 are directly reachable by some other path.
3108 .IP "\fBall\fR" 4
3109 .IX Item "all"
3110 Turn on all options.
3111 .RE
3112 .RS 4
3113 .Sp
3114 The following tree dumps are possible:
3115 .IP "\fBoriginal\fR" 4
3116 .IX Item "original"
3117 Dump before any tree based optimization, to \fI\fIfile\fI.original\fR.
3118 .IP "\fBoptimized\fR" 4
3119 .IX Item "optimized"
3120 Dump after all tree based optimization, to \fI\fIfile\fI.optimized\fR.
3121 .IP "\fBinlined\fR" 4
3122 .IX Item "inlined"
3123 Dump after function inlining, to \fI\fIfile\fI.inlined\fR.
3124 .RE
3125 .RS 4
3126 .RE
3127 .IP "\fB\-frandom\-seed=\fR\fIstring\fR" 4
3128 .IX Item "-frandom-seed=string"
3129 This option provides a seed that \s-1GCC\s0 uses when it would otherwise use
3130 random numbers.  It is used to generate certain symbol names
3131 that have to be different in every compiled file. It is also used to
3132 place unique stamps in coverage data files and the object files that
3133 produce them. You can use the \fB\-frandom\-seed\fR option to produce
3134 reproducibly identical object files.
3135 .Sp
3136 The \fIstring\fR should be different for every file you compile.
3137 .IP "\fB\-fsched\-verbose=\fR\fIn\fR" 4
3138 .IX Item "-fsched-verbose=n"
3139 On targets that use instruction scheduling, this option controls the
3140 amount of debugging output the scheduler prints.  This information is
3141 written to standard error, unless \fB\-dS\fR or \fB\-dR\fR is
3142 specified, in which case it is output to the usual dump
3143 listing file, \fI.sched\fR or \fI.sched2\fR respectively.  However
3144 for \fIn\fR greater than nine, the output is always printed to standard
3145 error.
3146 .Sp
3147 For \fIn\fR greater than zero, \fB\-fsched\-verbose\fR outputs the
3148 same information as \fB\-dRS\fR.  For \fIn\fR greater than one, it
3149 also output basic block probabilities, detailed ready list information
3150 and unit/insn info.  For \fIn\fR greater than two, it includes \s-1RTL\s0
3151 at abort point, control-flow and regions info.  And for \fIn\fR over
3152 four, \fB\-fsched\-verbose\fR also includes dependence info.
3153 .IP "\fB\-save\-temps\fR" 4
3154 .IX Item "-save-temps"
3155 Store the usual ``temporary'' intermediate files permanently; place them
3156 in the current directory and name them based on the source file.  Thus,
3157 compiling \fIfoo.c\fR with \fB\-c \-save\-temps\fR would produce files
3158 \&\fIfoo.i\fR and \fIfoo.s\fR, as well as \fIfoo.o\fR.  This creates a
3159 preprocessed \fIfoo.i\fR output file even though the compiler now
3160 normally uses an integrated preprocessor.
3161 .IP "\fB\-time\fR" 4
3162 .IX Item "-time"
3163 Report the \s-1CPU\s0 time taken by each subprocess in the compilation
3164 sequence.  For C source files, this is the compiler proper and assembler
3165 (plus the linker if linking is done).  The output looks like this:
3166 .Sp
3167 .Vb 2
3168 \&        # cc1 0.12 0.01
3169 \&        # as 0.00 0.01
3170 .Ve
3171 .Sp
3172 The first number on each line is the ``user time,'' that is time spent
3173 executing the program itself.  The second number is ``system time,''
3174 time spent executing operating system routines on behalf of the program.
3175 Both numbers are in seconds.
3176 .IP "\fB\-print\-file\-name=\fR\fIlibrary\fR" 4
3177 .IX Item "-print-file-name=library"
3178 Print the full absolute name of the library file \fIlibrary\fR that
3179 would be used when linking\-\-\-and don't do anything else.  With this
3180 option, \s-1GCC\s0 does not compile or link anything; it just prints the
3181 file name.
3182 .IP "\fB\-print\-multi\-directory\fR" 4
3183 .IX Item "-print-multi-directory"
3184 Print the directory name corresponding to the multilib selected by any
3185 other switches present in the command line.  This directory is supposed
3186 to exist in \fB\s-1GCC_EXEC_PREFIX\s0\fR.
3187 .IP "\fB\-print\-multi\-lib\fR" 4
3188 .IX Item "-print-multi-lib"
3189 Print the mapping from multilib directory names to compiler switches
3190 that enable them.  The directory name is separated from the switches by
3191 \&\fB;\fR, and each switch starts with an \fB@} instead of the
3192 \&\f(CB@samp\fB{\-\fR, without spaces between multiple switches.  This is supposed to
3193 ease shell\-processing.
3194 .IP "\fB\-print\-prog\-name=\fR\fIprogram\fR" 4
3195 .IX Item "-print-prog-name=program"
3196 Like \fB\-print\-file\-name\fR, but searches for a program such as \fBcpp\fR.
3197 .IP "\fB\-print\-libgcc\-file\-name\fR" 4
3198 .IX Item "-print-libgcc-file-name"
3199 Same as \fB\-print\-file\-name=libgcc.a\fR.
3200 .Sp
3201 This is useful when you use \fB\-nostdlib\fR or \fB\-nodefaultlibs\fR
3202 but you do want to link with \fIlibgcc.a\fR.  You can do
3203 .Sp
3204 .Vb 1
3205 \&        gcc -nostdlib <files>... `gcc -print-libgcc-file-name`
3206 .Ve
3207 .IP "\fB\-print\-search\-dirs\fR" 4
3208 .IX Item "-print-search-dirs"
3209 Print the name of the configured installation directory and a list of
3210 program and library directories \fBgcc\fR will search\-\-\-and don't do anything else.
3211 .Sp
3212 This is useful when \fBgcc\fR prints the error message
3213 \&\fBinstallation problem, cannot exec cpp0: No such file or directory\fR.
3214 To resolve this you either need to put \fIcpp0\fR and the other compiler
3215 components where \fBgcc\fR expects to find them, or you can set the environment
3216 variable \fB\s-1GCC_EXEC_PREFIX\s0\fR to the directory where you installed them.
3217 Don't forget the trailing '/'.
3218 .IP "\fB\-dumpmachine\fR" 4
3219 .IX Item "-dumpmachine"
3220 Print the compiler's target machine (for example,
3221 \&\fBi686\-pc\-linux\-gnu\fR)\-\-\-and don't do anything else.
3222 .IP "\fB\-dumpversion\fR" 4
3223 .IX Item "-dumpversion"
3224 Print the compiler version (for example, \fB3.0\fR)\-\-\-and don't do
3225 anything else.
3226 .IP "\fB\-dumpspecs\fR" 4
3227 .IX Item "-dumpspecs"
3228 Print the compiler's built-in specs\-\-\-and don't do anything else.  (This
3229 is used when \s-1GCC\s0 itself is being built.)  
3230 .IP "\fB\-feliminate\-unused\-debug\-types\fR" 4
3231 .IX Item "-feliminate-unused-debug-types"
3232 Normally, when producing \s-1DWARF2\s0 output, \s-1GCC\s0 will emit debugging
3233 information for all types declared in a compilation
3234 unit, regardless of whether or not they are actually used
3235 in that compilation unit.  Sometimes this is useful, such as
3236 if, in the debugger, you want to cast a value to a type that is
3237 not actually used in your program (but is declared).  More often,
3238 however, this results in a significant amount of wasted space.
3239 With this option, \s-1GCC\s0 will avoid producing debug symbol output
3240 for types that are nowhere used in the source file being compiled.
3241 .Sh "Options That Control Optimization"
3242 .IX Subsection "Options That Control Optimization"
3243 These options control various sorts of optimizations.
3244 .PP
3245 Without any optimization option, the compiler's goal is to reduce the
3246 cost of compilation and to make debugging produce the expected
3247 results.  Statements are independent: if you stop the program with a
3248 breakpoint between statements, you can then assign a new value to any
3249 variable or change the program counter to any other statement in the
3250 function and get exactly the results you would expect from the source
3251 code.
3252 .PP
3253 Turning on optimization flags makes the compiler attempt to improve
3254 the performance and/or code size at the expense of compilation time
3255 and possibly the ability to debug the program.
3256 .PP
3257 The compiler performs optimization based on the knowledge it has of
3258 the program.  Using the \fB\-funit\-at\-a\-time\fR flag will allow the
3259 compiler to consider information gained from later functions in the
3260 file when compiling a function.  Compiling multiple files at once to a
3261 single output file (and using \fB\-funit\-at\-a\-time\fR) will allow
3262 the compiler to use information gained from all of the files when
3263 compiling each of them.
3264 .PP
3265 Not all optimizations are controlled directly by a flag.  Only
3266 optimizations that have a flag are listed.
3267 .IP "\fB\-O\fR" 4
3268 .IX Item "-O"
3269 .PD 0
3270 .IP "\fB\-O1\fR" 4
3271 .IX Item "-O1"
3272 .PD
3273 Optimize.  Optimizing compilation takes somewhat more time, and a lot
3274 more memory for a large function.
3275 .Sp
3276 With \fB\-O\fR, the compiler tries to reduce code size and execution
3277 time, without performing any optimizations that take a great deal of
3278 compilation time.
3279 .Sp
3280 \&\fB\-O\fR turns on the following optimization flags:
3281 \&\fB\-fdefer\-pop 
3282 \&\-fmerge\-constants 
3283 \&\-fthread\-jumps 
3284 \&\-floop\-optimize 
3285 \&\-fif\-conversion 
3286 \&\-fif\-conversion2 
3287 \&\-fdelayed\-branch 
3288 \&\-fguess\-branch\-probability 
3289 \&\-fcprop\-registers\fR
3290 .Sp
3291 \&\fB\-O\fR also turns on \fB\-fomit\-frame\-pointer\fR on machines
3292 where doing so does not interfere with debugging.
3293 .IP "\fB\-O2\fR" 4
3294 .IX Item "-O2"
3295 Optimize even more.  \s-1GCC\s0 performs nearly all supported optimizations
3296 that do not involve a space-speed tradeoff.  The compiler does not
3297 perform loop unrolling or function inlining when you specify \fB\-O2\fR.
3298 As compared to \fB\-O\fR, this option increases both compilation time
3299 and the performance of the generated code.
3300 .Sp
3301 \&\fB\-O2\fR turns on all optimization flags specified by \fB\-O\fR.  It
3302 also turns on the following optimization flags:
3303 \&\fB\-fforce\-mem 
3304 \&\-foptimize\-sibling\-calls 
3305 \&\-fstrength\-reduce 
3306 \&\-fcse\-follow\-jumps  \-fcse\-skip\-blocks 
3307 \&\-frerun\-cse\-after\-loop  \-frerun\-loop\-opt 
3308 \&\-fgcse  \-fgcse\-lm  \-fgcse\-sm  \-fgcse\-las 
3309 \&\-fdelete\-null\-pointer\-checks 
3310 \&\-fexpensive\-optimizations 
3311 \&\-fregmove 
3312 \&\-fschedule\-insns  \-fschedule\-insns2 
3313 \&\-fsched\-interblock  \-fsched\-spec 
3314 \&\-fcaller\-saves 
3315 \&\-fpeephole2 
3316 \&\-freorder\-blocks  \-freorder\-functions 
3317 \&\-fstrict\-aliasing 
3318 \&\-funit\-at\-a\-time 
3319 \&\-falign\-functions  \-falign\-jumps 
3320 \&\-falign\-loops  \-falign\-labels 
3321 \&\-fcrossjumping\fR
3322 .Sp
3323 Please note the warning under \fB\-fgcse\fR about
3324 invoking \fB\-O2\fR on programs that use computed gotos.
3325 .IP "\fB\-O3\fR" 4
3326 .IX Item "-O3"
3327 Optimize yet more.  \fB\-O3\fR turns on all optimizations specified by
3328 \&\fB\-O2\fR and also turns on the \fB\-finline\-functions\fR,
3329 \&\fB\-fweb\fR, \fB\-frename\-registers\fR and \fB\-funswitch\-loops\fR
3330 options.
3331 .IP "\fB\-O0\fR" 4
3332 .IX Item "-O0"
3333 Do not optimize.  This is the default.
3334 .IP "\fB\-Os\fR" 4
3335 .IX Item "-Os"
3336 Optimize for size.  \fB\-Os\fR enables all \fB\-O2\fR optimizations that
3337 do not typically increase code size.  It also performs further
3338 optimizations designed to reduce code size.
3339 .Sp
3340 \&\fB\-Os\fR disables the following optimization flags:
3341 \&\fB\-falign\-functions  \-falign\-jumps  \-falign\-loops 
3342 \&\-falign\-labels  \-freorder\-blocks  \-fprefetch\-loop\-arrays\fR
3343 .Sp
3344 If you use multiple \fB\-O\fR options, with or without level numbers,
3345 the last such option is the one that is effective.
3346 .PP
3347 Options of the form \fB\-f\fR\fIflag\fR specify machine-independent
3348 flags.  Most flags have both positive and negative forms; the negative
3349 form of \fB\-ffoo\fR would be \fB\-fno\-foo\fR.  In the table
3350 below, only one of the forms is listed\-\-\-the one you typically will
3351 use.  You can figure out the other form by either removing \fBno\-\fR
3352 or adding it.
3353 .PP
3354 The following options control specific optimizations.  They are either
3355 activated by \fB\-O\fR options or are related to ones that are.  You
3356 can use the following flags in the rare cases when ``fine\-tuning'' of
3357 optimizations to be performed is desired.
3358 .IP "\fB\-fno\-default\-inline\fR" 4
3359 .IX Item "-fno-default-inline"
3360 Do not make member functions inline by default merely because they are
3361 defined inside the class scope (\*(C+ only).  Otherwise, when you specify
3362 \&\fB\-O\fR, member functions defined inside class scope are compiled
3363 inline by default; i.e., you don't need to add \fBinline\fR in front of
3364 the member function name.
3365 .IP "\fB\-fno\-defer\-pop\fR" 4
3366 .IX Item "-fno-defer-pop"
3367 Always pop the arguments to each function call as soon as that function
3368 returns.  For machines which must pop arguments after a function call,
3369 the compiler normally lets arguments accumulate on the stack for several
3370 function calls and pops them all at once.
3371 .Sp
3372 Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3373 .IP "\fB\-fforce\-mem\fR" 4
3374 .IX Item "-fforce-mem"
3375 Force memory operands to be copied into registers before doing
3376 arithmetic on them.  This produces better code by making all memory
3377 references potential common subexpressions.  When they are not common
3378 subexpressions, instruction combination should eliminate the separate
3379 register\-load.
3380 .Sp
3381 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3382 .IP "\fB\-fforce\-addr\fR" 4
3383 .IX Item "-fforce-addr"
3384 Force memory address constants to be copied into registers before
3385 doing arithmetic on them.  This may produce better code just as
3386 \&\fB\-fforce\-mem\fR may.
3387 .IP "\fB\-fomit\-frame\-pointer\fR" 4
3388 .IX Item "-fomit-frame-pointer"
3389 Don't keep the frame pointer in a register for functions that
3390 don't need one.  This avoids the instructions to save, set up and
3391 restore frame pointers; it also makes an extra register available
3392 in many functions.  \fBIt also makes debugging impossible on
3393 some machines.\fR
3394 .Sp
3395 On some machines, such as the \s-1VAX\s0, this flag has no effect, because
3396 the standard calling sequence automatically handles the frame pointer
3397 and nothing is saved by pretending it doesn't exist.  The
3398 machine-description macro \f(CW\*(C`FRAME_POINTER_REQUIRED\*(C'\fR controls
3399 whether a target machine supports this flag.  
3400 .Sp
3401 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3402 .IP "\fB\-foptimize\-sibling\-calls\fR" 4
3403 .IX Item "-foptimize-sibling-calls"
3404 Optimize sibling and tail recursive calls.
3405 .Sp
3406 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3407 .IP "\fB\-fno\-inline\fR" 4
3408 .IX Item "-fno-inline"
3409 Don't pay attention to the \f(CW\*(C`inline\*(C'\fR keyword.  Normally this option
3410 is used to keep the compiler from expanding any functions inline.
3411 Note that if you are not optimizing, no functions can be expanded inline.
3412 .IP "\fB\-finline\-functions\fR" 4
3413 .IX Item "-finline-functions"
3414 Integrate all simple functions into their callers.  The compiler
3415 heuristically decides which functions are simple enough to be worth
3416 integrating in this way.
3417 .Sp
3418 If all calls to a given function are integrated, and the function is
3419 declared \f(CW\*(C`static\*(C'\fR, then the function is normally not output as
3420 assembler code in its own right.
3421 .Sp
3422 Enabled at level \fB\-O3\fR.
3423 .IP "\fB\-finline\-limit=\fR\fIn\fR" 4
3424 .IX Item "-finline-limit=n"
3425 By default, \s-1GCC\s0 limits the size of functions that can be inlined.  This flag
3426 allows the control of this limit for functions that are explicitly marked as
3427 inline (i.e., marked with the inline keyword or defined within the class
3428 definition in c++).  \fIn\fR is the size of functions that can be inlined in
3429 number of pseudo instructions (not counting parameter handling).  The default
3430 value of \fIn\fR is 600.
3431 Increasing this value can result in more inlined code at
3432 the cost of compilation time and memory consumption.  Decreasing usually makes
3433 the compilation faster and less code will be inlined (which presumably
3434 means slower programs).  This option is particularly useful for programs that
3435 use inlining heavily such as those based on recursive templates with \*(C+.
3436 .Sp
3437 Inlining is actually controlled by a number of parameters, which may be
3438 specified individually by using \fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR.
3439 The \fB\-finline\-limit=\fR\fIn\fR option sets some of these parameters
3440 as follows:
3441 .RS 4
3442 .Sp
3443 .Vb 8
3444 \& @item max-inline-insns-single
3445 \&  is set to I<n>/2.
3446 \& @item max-inline-insns-auto
3447 \&  is set to I<n>/2.
3448 \& @item min-inline-insns
3449 \&  is set to 130 or I<n>/4, whichever is smaller.
3450 \& @item max-inline-insns-rtl
3451 \&  is set to I<n>.
3452 .Ve
3453 .RE
3454 .RS 4
3455 .Sp
3456 See below for a documentation of the individual
3457 parameters controlling inlining.
3458 .Sp
3459 \&\fINote:\fR pseudo instruction represents, in this particular context, an
3460 abstract measurement of function's size.  In no way, it represents a count
3461 of assembly instructions and as such its exact meaning might change from one
3462 release to an another.
3463 .RE
3464 .IP "\fB\-fkeep\-inline\-functions\fR" 4
3465 .IX Item "-fkeep-inline-functions"
3466 Even if all calls to a given function are integrated, and the function
3467 is declared \f(CW\*(C`static\*(C'\fR, nevertheless output a separate run-time
3468 callable version of the function.  This switch does not affect
3469 \&\f(CW\*(C`extern inline\*(C'\fR functions.
3470 .IP "\fB\-fkeep\-static\-consts\fR" 4
3471 .IX Item "-fkeep-static-consts"
3472 Emit variables declared \f(CW\*(C`static const\*(C'\fR when optimization isn't turned
3473 on, even if the variables aren't referenced.
3474 .Sp
3475 \&\s-1GCC\s0 enables this option by default.  If you want to force the compiler to
3476 check if the variable was referenced, regardless of whether or not
3477 optimization is turned on, use the \fB\-fno\-keep\-static\-consts\fR option.
3478 .IP "\fB\-fmerge\-constants\fR" 4
3479 .IX Item "-fmerge-constants"
3480 Attempt to merge identical constants (string constants and floating point
3481 constants) across compilation units.
3482 .Sp
3483 This option is the default for optimized compilation if the assembler and
3484 linker support it.  Use \fB\-fno\-merge\-constants\fR to inhibit this
3485 behavior.
3486 .Sp
3487 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3488 .IP "\fB\-fmerge\-all\-constants\fR" 4
3489 .IX Item "-fmerge-all-constants"
3490 Attempt to merge identical constants and identical variables.
3491 .Sp
3492 This option implies \fB\-fmerge\-constants\fR.  In addition to
3493 \&\fB\-fmerge\-constants\fR this considers e.g. even constant initialized
3494 arrays or initialized constant variables with integral or floating point
3495 types.  Languages like C or \*(C+ require each non-automatic variable to
3496 have distinct location, so using this option will result in non-conforming
3497 behavior.
3498 .IP "\fB\-fnew\-ra\fR" 4
3499 .IX Item "-fnew-ra"
3500 Use a graph coloring register allocator.  Currently this option is meant
3501 only for testing.  Users should not specify this option, since it is not
3502 yet ready for production use.
3503 .IP "\fB\-fno\-branch\-count\-reg\fR" 4
3504 .IX Item "-fno-branch-count-reg"
3505 Do not use ``decrement and branch'' instructions on a count register,
3506 but instead generate a sequence of instructions that decrement a
3507 register, compare it against zero, then branch based upon the result.
3508 This option is only meaningful on architectures that support such
3509 instructions, which include x86, PowerPC, \s-1IA\-64\s0 and S/390.
3510 .Sp
3511 The default is \fB\-fbranch\-count\-reg\fR, enabled when
3512 \&\fB\-fstrength\-reduce\fR is enabled.
3513 .IP "\fB\-fno\-function\-cse\fR" 4
3514 .IX Item "-fno-function-cse"
3515 Do not put function addresses in registers; make each instruction that
3516 calls a constant function contain the function's address explicitly.
3517 .Sp
3518 This option results in less efficient code, but some strange hacks
3519 that alter the assembler output may be confused by the optimizations
3520 performed when this option is not used.
3521 .Sp
3522 The default is \fB\-ffunction\-cse\fR
3523 .IP "\fB\-fno\-zero\-initialized\-in\-bss\fR" 4
3524 .IX Item "-fno-zero-initialized-in-bss"
3525 If the target supports a \s-1BSS\s0 section, \s-1GCC\s0 by default puts variables that
3526 are initialized to zero into \s-1BSS\s0.  This can save space in the resulting
3527 code.
3528 .Sp
3529 This option turns off this behavior because some programs explicitly
3530 rely on variables going to the data section.  E.g., so that the
3531 resulting executable can find the beginning of that section and/or make
3532 assumptions based on that.
3533 .Sp
3534 The default is \fB\-fzero\-initialized\-in\-bss\fR.
3535 .IP "\fB\-fstrength\-reduce\fR" 4
3536 .IX Item "-fstrength-reduce"
3537 Perform the optimizations of loop strength reduction and
3538 elimination of iteration variables.
3539 .Sp
3540 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3541 .IP "\fB\-fthread\-jumps\fR" 4
3542 .IX Item "-fthread-jumps"
3543 Perform optimizations where we check to see if a jump branches to a
3544 location where another comparison subsumed by the first is found.  If
3545 so, the first branch is redirected to either the destination of the
3546 second branch or a point immediately following it, depending on whether
3547 the condition is known to be true or false.
3548 .Sp
3549 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3550 .IP "\fB\-fcse\-follow\-jumps\fR" 4
3551 .IX Item "-fcse-follow-jumps"
3552 In common subexpression elimination, scan through jump instructions
3553 when the target of the jump is not reached by any other path.  For
3554 example, when \s-1CSE\s0 encounters an \f(CW\*(C`if\*(C'\fR statement with an
3555 \&\f(CW\*(C`else\*(C'\fR clause, \s-1CSE\s0 will follow the jump when the condition
3556 tested is false.
3557 .Sp
3558 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3559 .IP "\fB\-fcse\-skip\-blocks\fR" 4
3560 .IX Item "-fcse-skip-blocks"
3561 This is similar to \fB\-fcse\-follow\-jumps\fR, but causes \s-1CSE\s0 to
3562 follow jumps which conditionally skip over blocks.  When \s-1CSE\s0
3563 encounters a simple \f(CW\*(C`if\*(C'\fR statement with no else clause,
3564 \&\fB\-fcse\-skip\-blocks\fR causes \s-1CSE\s0 to follow the jump around the
3565 body of the \f(CW\*(C`if\*(C'\fR.
3566 .Sp
3567 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3568 .IP "\fB\-frerun\-cse\-after\-loop\fR" 4
3569 .IX Item "-frerun-cse-after-loop"
3570 Re-run common subexpression elimination after loop optimizations has been
3571 performed.
3572 .Sp
3573 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3574 .IP "\fB\-frerun\-loop\-opt\fR" 4
3575 .IX Item "-frerun-loop-opt"
3576 Run the loop optimizer twice.
3577 .Sp
3578 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3579 .IP "\fB\-fgcse\fR" 4
3580 .IX Item "-fgcse"
3581 Perform a global common subexpression elimination pass.
3582 This pass also performs global constant and copy propagation.
3583 .Sp
3584 \&\fINote:\fR When compiling a program using computed gotos, a \s-1GCC\s0
3585 extension, you may get better runtime performance if you disable
3586 the global common subexpression elimination pass by adding
3587 \&\fB\-fno\-gcse\fR to the command line.
3588 .Sp
3589 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3590 .IP "\fB\-fgcse\-lm\fR" 4
3591 .IX Item "-fgcse-lm"
3592 When \fB\-fgcse\-lm\fR is enabled, global common subexpression elimination will
3593 attempt to move loads which are only killed by stores into themselves.  This
3594 allows a loop containing a load/store sequence to be changed to a load outside
3595 the loop, and a copy/store within the loop.
3596 .Sp
3597 Enabled by default when gcse is enabled.
3598 .IP "\fB\-fgcse\-sm\fR" 4
3599 .IX Item "-fgcse-sm"
3600 When \fB\-fgcse\-sm\fR is enabled, a store motion pass is run after
3601 global common subexpression elimination.  This pass will attempt to move
3602 stores out of loops.  When used in conjunction with \fB\-fgcse\-lm\fR,
3603 loops containing a load/store sequence can be changed to a load before
3604 the loop and a store after the loop.
3605 .Sp
3606 Enabled by default when gcse is enabled.
3607 .IP "\fB\-fgcse\-las\fR" 4
3608 .IX Item "-fgcse-las"
3609 When \fB\-fgcse\-las\fR is enabled, the global common subexpression
3610 elimination pass eliminates redundant loads that come after stores to the
3611 same memory location (both partial and full redundancies).
3612 .Sp
3613 Enabled by default when gcse is enabled.
3614 .IP "\fB\-floop\-optimize\fR" 4
3615 .IX Item "-floop-optimize"
3616 Perform loop optimizations: move constant expressions out of loops, simplify
3617 exit test conditions and optionally do strength-reduction and loop unrolling as
3618 well.
3619 .Sp
3620 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3621 .IP "\fB\-fcrossjumping\fR" 4
3622 .IX Item "-fcrossjumping"
3623 Perform cross-jumping transformation. This transformation unifies equivalent code and save code size. The
3624 resulting code may or may not perform better than without cross\-jumping.
3625 .Sp
3626 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3627 .IP "\fB\-fif\-conversion\fR" 4
3628 .IX Item "-fif-conversion"
3629 Attempt to transform conditional jumps into branch-less equivalents.  This
3630 include use of conditional moves, min, max, set flags and abs instructions, and
3631 some tricks doable by standard arithmetics.  The use of conditional execution
3632 on chips where it is available is controlled by \f(CW\*(C`if\-conversion2\*(C'\fR.
3633 .Sp
3634 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3635 .IP "\fB\-fif\-conversion2\fR" 4
3636 .IX Item "-fif-conversion2"
3637 Use conditional execution (where available) to transform conditional jumps into
3638 branch-less equivalents.
3639 .Sp
3640 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3641 .IP "\fB\-fdelete\-null\-pointer\-checks\fR" 4
3642 .IX Item "-fdelete-null-pointer-checks"
3643 Use global dataflow analysis to identify and eliminate useless checks
3644 for null pointers.  The compiler assumes that dereferencing a null
3645 pointer would have halted the program.  If a pointer is checked after
3646 it has already been dereferenced, it cannot be null.
3647 .Sp
3648 In some environments, this assumption is not true, and programs can
3649 safely dereference null pointers.  Use
3650 \&\fB\-fno\-delete\-null\-pointer\-checks\fR to disable this optimization
3651 for programs which depend on that behavior.
3652 .Sp
3653 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3654 .IP "\fB\-fexpensive\-optimizations\fR" 4
3655 .IX Item "-fexpensive-optimizations"
3656 Perform a number of minor optimizations that are relatively expensive.
3657 .Sp
3658 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3659 .IP "\fB\-foptimize\-register\-move\fR" 4
3660 .IX Item "-foptimize-register-move"
3661 .PD 0
3662 .IP "\fB\-fregmove\fR" 4
3663 .IX Item "-fregmove"
3664 .PD
3665 Attempt to reassign register numbers in move instructions and as
3666 operands of other simple instructions in order to maximize the amount of
3667 register tying.  This is especially helpful on machines with two-operand
3668 instructions.
3669 .Sp
3670 Note \fB\-fregmove\fR and \fB\-foptimize\-register\-move\fR are the same
3671 optimization.
3672 .Sp
3673 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3674 .IP "\fB\-fdelayed\-branch\fR" 4
3675 .IX Item "-fdelayed-branch"
3676 If supported for the target machine, attempt to reorder instructions
3677 to exploit instruction slots available after delayed branch
3678 instructions.
3679 .Sp
3680 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3681 .IP "\fB\-fschedule\-insns\fR" 4
3682 .IX Item "-fschedule-insns"
3683 If supported for the target machine, attempt to reorder instructions to
3684 eliminate execution stalls due to required data being unavailable.  This
3685 helps machines that have slow floating point or memory load instructions
3686 by allowing other instructions to be issued until the result of the load
3687 or floating point instruction is required.
3688 .Sp
3689 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3690 .IP "\fB\-fschedule\-insns2\fR" 4
3691 .IX Item "-fschedule-insns2"
3692 Similar to \fB\-fschedule\-insns\fR, but requests an additional pass of
3693 instruction scheduling after register allocation has been done.  This is
3694 especially useful on machines with a relatively small number of
3695 registers and where memory load instructions take more than one cycle.
3696 .Sp
3697 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3698 .IP "\fB\-fno\-sched\-interblock\fR" 4
3699 .IX Item "-fno-sched-interblock"
3700 Don't schedule instructions across basic blocks.  This is normally
3701 enabled by default when scheduling before register allocation, i.e.
3702 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
3703 .IP "\fB\-fno\-sched\-spec\fR" 4
3704 .IX Item "-fno-sched-spec"
3705 Don't allow speculative motion of non-load instructions.  This is normally
3706 enabled by default when scheduling before register allocation, i.e.
3707 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
3708 .IP "\fB\-fsched\-spec\-load\fR" 4
3709 .IX Item "-fsched-spec-load"
3710 Allow speculative motion of some load instructions.  This only makes
3711 sense when scheduling before register allocation, i.e. with
3712 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
3713 .IP "\fB\-fsched\-spec\-load\-dangerous\fR" 4
3714 .IX Item "-fsched-spec-load-dangerous"
3715 Allow speculative motion of more load instructions.  This only makes
3716 sense when scheduling before register allocation, i.e. with
3717 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
3718 .IP "\fB\-fsched\-stalled\-insns=\fR\fIn\fR" 4
3719 .IX Item "-fsched-stalled-insns=n"
3720 Define how many insns (if any) can be moved prematurely from the queue
3721 of stalled insns into the ready list, during the second scheduling pass.
3722 .IP "\fB\-fsched\-stalled\-insns\-dep=\fR\fIn\fR" 4
3723 .IX Item "-fsched-stalled-insns-dep=n"
3724 Define how many insn groups (cycles) will be examined for a dependency
3725 on a stalled insn that is candidate for premature removal from the queue
3726 of stalled insns.  Has an effect only during the second scheduling pass,
3727 and only if \fB\-fsched\-stalled\-insns\fR is used and its value is not zero.
3728 .IP "\fB\-fsched2\-use\-superblocks\fR" 4
3729 .IX Item "-fsched2-use-superblocks"
3730 When scheduling after register allocation, do use superblock scheduling
3731 algorithm.  Superblock scheduling allows motion across basic block boundaries
3732 resulting on faster schedules.  This option is experimental, as not all machine
3733 descriptions used by \s-1GCC\s0 model the \s-1CPU\s0 closely enough to avoid unreliable
3734 results from the algorithm.
3735 .Sp
3736 This only makes sense when scheduling after register allocation, i.e. with
3737 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
3738 .IP "\fB\-fsched2\-use\-traces\fR" 4
3739 .IX Item "-fsched2-use-traces"
3740 Use \fB\-fsched2\-use\-superblocks\fR algorithm when scheduling after register
3741 allocation and additionally perform code duplication in order to increase the
3742 size of superblocks using tracer pass.  See \fB\-ftracer\fR for details on
3743 trace formation.
3744 .Sp
3745 This mode should produce faster but significantly longer programs.  Also
3746 without \f(CW\*(C`\-fbranch\-probabilities\*(C'\fR the traces constructed may not match the
3747 reality and hurt the performance.  This only makes
3748 sense when scheduling after register allocation, i.e. with
3749 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
3750 .IP "\fB\-fcaller\-saves\fR" 4
3751 .IX Item "-fcaller-saves"
3752 Enable values to be allocated in registers that will be clobbered by
3753 function calls, by emitting extra instructions to save and restore the
3754 registers around such calls.  Such allocation is done only when it
3755 seems to result in better code than would otherwise be produced.
3756 .Sp
3757 This option is always enabled by default on certain machines, usually
3758 those which have no call-preserved registers to use instead.
3759 .Sp
3760 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3761 .IP "\fB\-fmove\-all\-movables\fR" 4
3762 .IX Item "-fmove-all-movables"
3763 Forces all invariant computations in loops to be moved
3764 outside the loop.
3765 .IP "\fB\-freduce\-all\-givs\fR" 4
3766 .IX Item "-freduce-all-givs"
3767 Forces all general-induction variables in loops to be
3768 strength\-reduced.
3769 .Sp
3770 \&\fINote:\fR When compiling programs written in Fortran,
3771 \&\fB\-fmove\-all\-movables\fR and \fB\-freduce\-all\-givs\fR are enabled
3772 by default when you use the optimizer.
3773 .Sp
3774 These options may generate better or worse code; results are highly
3775 dependent on the structure of loops within the source code.
3776 .Sp
3777 These two options are intended to be removed someday, once
3778 they have helped determine the efficacy of various
3779 approaches to improving loop optimizations.
3780 .Sp
3781 Please contact <\fBgcc@gcc.gnu.org\fR>, and describe how use of
3782 these options affects the performance of your production code.
3783 Examples of code that runs \fIslower\fR when these options are
3784 \&\fIenabled\fR are very valuable.
3785 .IP "\fB\-fno\-peephole\fR" 4
3786 .IX Item "-fno-peephole"
3787 .PD 0
3788 .IP "\fB\-fno\-peephole2\fR" 4
3789 .IX Item "-fno-peephole2"
3790 .PD
3791 Disable any machine-specific peephole optimizations.  The difference
3792 between \fB\-fno\-peephole\fR and \fB\-fno\-peephole2\fR is in how they
3793 are implemented in the compiler; some targets use one, some use the
3794 other, a few use both.
3795 .Sp
3796 \&\fB\-fpeephole\fR is enabled by default.
3797 \&\fB\-fpeephole2\fR enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3798 .IP "\fB\-fno\-guess\-branch\-probability\fR" 4
3799 .IX Item "-fno-guess-branch-probability"
3800 Do not guess branch probabilities using a randomized model.
3801 .Sp
3802 Sometimes \s-1GCC\s0 will opt to use a randomized model to guess branch
3803 probabilities, when none are available from either profiling feedback
3804 (\fB\-fprofile\-arcs\fR) or \fB_\|_builtin_expect\fR.  This means that
3805 different runs of the compiler on the same program may produce different
3806 object code.
3807 .Sp
3808 In a hard real-time system, people don't want different runs of the
3809 compiler to produce code that has different behavior; minimizing
3810 non-determinism is of paramount import.  This switch allows users to
3811 reduce non\-determinism, possibly at the expense of inferior
3812 optimization.
3813 .Sp
3814 The default is \fB\-fguess\-branch\-probability\fR at levels
3815 \&\fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3816 .IP "\fB\-freorder\-blocks\fR" 4
3817 .IX Item "-freorder-blocks"
3818 Reorder basic blocks in the compiled function in order to reduce number of
3819 taken branches and improve code locality.
3820 .Sp
3821 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
3822 .IP "\fB\-freorder\-functions\fR" 4
3823 .IX Item "-freorder-functions"
3824 Reorder basic blocks in the compiled function in order to reduce number of
3825 taken branches and improve code locality. This is implemented by using special
3826 subsections \f(CW\*(C`.text.hot\*(C'\fR for most frequently executed functions and
3827 \&\f(CW\*(C`.text.unlikely\*(C'\fR for unlikely executed functions.  Reordering is done by
3828 the linker so object file format must support named sections and linker must
3829 place them in a reasonable way.
3830 .Sp
3831 Also profile feedback must be available in to make this option effective.  See
3832 \&\fB\-fprofile\-arcs\fR for details.
3833 .Sp
3834 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3835 .IP "\fB\-fstrict\-aliasing\fR" 4
3836 .IX Item "-fstrict-aliasing"
3837 Allows the compiler to assume the strictest aliasing rules applicable to
3838 the language being compiled.  For C (and \*(C+), this activates
3839 optimizations based on the type of expressions.  In particular, an
3840 object of one type is assumed never to reside at the same address as an
3841 object of a different type, unless the types are almost the same.  For
3842 example, an \f(CW\*(C`unsigned int\*(C'\fR can alias an \f(CW\*(C`int\*(C'\fR, but not a
3843 \&\f(CW\*(C`void*\*(C'\fR or a \f(CW\*(C`double\*(C'\fR.  A character type may alias any other
3844 type.
3845 .Sp
3846 Pay special attention to code like this:
3847 .Sp
3848 .Vb 4
3849 \&        union a_union {
3850 \&          int i;
3851 \&          double d;
3852 \&        };
3853 .Ve
3854 .Sp
3855 .Vb 5
3856 \&        int f() {
3857 \&          a_union t;
3858 \&          t.d = 3.0;
3859 \&          return t.i;
3860 \&        }
3861 .Ve
3862 .Sp
3863 The practice of reading from a different union member than the one most
3864 recently written to (called ``type\-punning'') is common.  Even with
3865 \&\fB\-fstrict\-aliasing\fR, type-punning is allowed, provided the memory
3866 is accessed through the union type.  So, the code above will work as
3867 expected.  However, this code might not:
3868 .Sp
3869 .Vb 7
3870 \&        int f() {
3871 \&          a_union t;
3872 \&          int* ip;
3873 \&          t.d = 3.0;
3874 \&          ip = &t.i;
3875 \&          return *ip;
3876 \&        }
3877 .Ve
3878 .Sp
3879 Every language that wishes to perform language-specific alias analysis
3880 should define a function that computes, given an \f(CW\*(C`tree\*(C'\fR
3881 node, an alias set for the node.  Nodes in different alias sets are not
3882 allowed to alias.  For an example, see the C front-end function
3883 \&\f(CW\*(C`c_get_alias_set\*(C'\fR.
3884 .Sp
3885 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3886 .IP "\fB\-falign\-functions\fR" 4
3887 .IX Item "-falign-functions"
3888 .PD 0
3889 .IP "\fB\-falign\-functions=\fR\fIn\fR" 4
3890 .IX Item "-falign-functions=n"
3891 .PD
3892 Align the start of functions to the next power-of-two greater than
3893 \&\fIn\fR, skipping up to \fIn\fR bytes.  For instance,
3894 \&\fB\-falign\-functions=32\fR aligns functions to the next 32\-byte
3895 boundary, but \fB\-falign\-functions=24\fR would align to the next
3896 32\-byte boundary only if this can be done by skipping 23 bytes or less.
3897 .Sp
3898 \&\fB\-fno\-align\-functions\fR and \fB\-falign\-functions=1\fR are
3899 equivalent and mean that functions will not be aligned.
3900 .Sp
3901 Some assemblers only support this flag when \fIn\fR is a power of two;
3902 in that case, it is rounded up.
3903 .Sp
3904 If \fIn\fR is not specified or is zero, use a machine-dependent default.
3905 .Sp
3906 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
3907 .IP "\fB\-falign\-labels\fR" 4
3908 .IX Item "-falign-labels"
3909 .PD 0
3910 .IP "\fB\-falign\-labels=\fR\fIn\fR" 4
3911 .IX Item "-falign-labels=n"
3912 .PD
3913 Align all branch targets to a power-of-two boundary, skipping up to
3914 \&\fIn\fR bytes like \fB\-falign\-functions\fR.  This option can easily
3915 make code slower, because it must insert dummy operations for when the
3916 branch target is reached in the usual flow of the code.
3917 .Sp
3918 \&\fB\-fno\-align\-labels\fR and \fB\-falign\-labels=1\fR are
3919 equivalent and mean that labels will not be aligned.
3920 .Sp
3921 If \fB\-falign\-loops\fR or \fB\-falign\-jumps\fR are applicable and
3922 are greater than this value, then their values are used instead.
3923 .Sp
3924 If \fIn\fR is not specified or is zero, use a machine-dependent default
3925 which is very likely to be \fB1\fR, meaning no alignment.
3926 .Sp
3927 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
3928 .IP "\fB\-falign\-loops\fR" 4
3929 .IX Item "-falign-loops"
3930 .PD 0
3931 .IP "\fB\-falign\-loops=\fR\fIn\fR" 4
3932 .IX Item "-falign-loops=n"
3933 .PD
3934 Align loops to a power-of-two boundary, skipping up to \fIn\fR bytes
3935 like \fB\-falign\-functions\fR.  The hope is that the loop will be
3936 executed many times, which will make up for any execution of the dummy
3937 operations.
3938 .Sp
3939 \&\fB\-fno\-align\-loops\fR and \fB\-falign\-loops=1\fR are
3940 equivalent and mean that loops will not be aligned.
3941 .Sp
3942 If \fIn\fR is not specified or is zero, use a machine-dependent default.
3943 .Sp
3944 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
3945 .IP "\fB\-falign\-jumps\fR" 4
3946 .IX Item "-falign-jumps"
3947 .PD 0
3948 .IP "\fB\-falign\-jumps=\fR\fIn\fR" 4
3949 .IX Item "-falign-jumps=n"
3950 .PD
3951 Align branch targets to a power-of-two boundary, for branch targets
3952 where the targets can only be reached by jumping, skipping up to \fIn\fR
3953 bytes like \fB\-falign\-functions\fR.  In this case, no dummy operations
3954 need be executed.
3955 .Sp
3956 \&\fB\-fno\-align\-jumps\fR and \fB\-falign\-jumps=1\fR are
3957 equivalent and mean that loops will not be aligned.
3958 .Sp
3959 If \fIn\fR is not specified or is zero, use a machine-dependent default.
3960 .Sp
3961 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
3962 .IP "\fB\-frename\-registers\fR" 4
3963 .IX Item "-frename-registers"
3964 Attempt to avoid false dependencies in scheduled code by making use
3965 of registers left over after register allocation.  This optimization
3966 will most benefit processors with lots of registers.  It can, however,
3967 make debugging impossible, since variables will no longer stay in
3968 a ``home register''.
3969 .IP "\fB\-fweb\fR" 4
3970 .IX Item "-fweb"
3971 Constructs webs as commonly used for register allocation purposes and assign
3972 each web individual pseudo register.  This allows the register allocation pass
3973 to operate on pseudos directly, but also strengthens several other optimization
3974 passes, such as \s-1CSE\s0, loop optimizer and trivial dead code remover.  It can,
3975 however, make debugging impossible, since variables will no longer stay in a
3976 ``home register''.
3977 .Sp
3978 Enabled at levels \fB\-O3\fR.
3979 .IP "\fB\-fno\-cprop\-registers\fR" 4
3980 .IX Item "-fno-cprop-registers"
3981 After register allocation and post-register allocation instruction splitting,
3982 we perform a copy-propagation pass to try to reduce scheduling dependencies
3983 and occasionally eliminate the copy.
3984 .Sp
3985 Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
3986 .IP "\fB\-fprofile\-generate\fR" 4
3987 .IX Item "-fprofile-generate"
3988 Enable options usually used for instrumenting application to produce
3989 profile useful for later recompilation with profile feedback based
3990 optimization.  You must use \f(CW\*(C`\-fprofile\-generate\*(C'\fR both when
3991 compiling and when linking your program.
3992 .Sp
3993 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.
3994 .IP "\fB\-fprofile\-use\fR" 4
3995 .IX Item "-fprofile-use"
3996 Enable profile feedback directed optimizations, and optimizations
3997 generally profitable only with profile feedback available.
3998 .Sp
3999 The following options are enabled: \f(CW\*(C`\-fbranch\-probabilities\*(C'\fR,
4000 \&\f(CW\*(C`\-fvpt\*(C'\fR, \f(CW\*(C`\-funroll\-loops\*(C'\fR, \f(CW\*(C`\-fpeel\-loops\*(C'\fR, \f(CW\*(C`\-ftracer\*(C'\fR.
4001 .PP
4002 The following options control compiler behavior regarding floating
4003 point arithmetic.  These options trade off between speed and
4004 correctness.  All must be specifically enabled.
4005 .IP "\fB\-ffloat\-store\fR" 4
4006 .IX Item "-ffloat-store"
4007 Do not store floating point variables in registers, and inhibit other
4008 options that might change whether a floating point value is taken from a
4009 register or memory.
4010 .Sp
4011 This option prevents undesirable excess precision on machines such as
4012 the 68000 where the floating registers (of the 68881) keep more
4013 precision than a \f(CW\*(C`double\*(C'\fR is supposed to have.  Similarly for the
4014 x86 architecture.  For most programs, the excess precision does only
4015 good, but a few programs rely on the precise definition of \s-1IEEE\s0 floating
4016 point.  Use \fB\-ffloat\-store\fR for such programs, after modifying
4017 them to store all pertinent intermediate computations into variables.
4018 .IP "\fB\-ffast\-math\fR" 4
4019 .IX Item "-ffast-math"
4020 Sets \fB\-fno\-math\-errno\fR, \fB\-funsafe\-math\-optimizations\fR, \fB\-fno\-trapping\-math\fR, \fB\-ffinite\-math\-only\fR,
4021 \&\fB\-fno\-rounding\-math\fR and \fB\-fno\-signaling\-nans\fR.
4022 .Sp
4023 This option causes the preprocessor macro \f(CW\*(C`_\|_FAST_MATH_\|_\*(C'\fR to be defined.
4024 .Sp
4025 This option should never be turned on by any \fB\-O\fR option since
4026 it can result in incorrect output for programs which depend on
4027 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
4028 math functions.
4029 .IP "\fB\-fno\-math\-errno\fR" 4
4030 .IX Item "-fno-math-errno"
4031 Do not set \s-1ERRNO\s0 after calling math functions that are executed
4032 with a single instruction, e.g., sqrt.  A program that relies on
4033 \&\s-1IEEE\s0 exceptions for math error handling may want to use this flag
4034 for speed while maintaining \s-1IEEE\s0 arithmetic compatibility.
4035 .Sp
4036 This option should never be turned on by any \fB\-O\fR option since
4037 it can result in incorrect output for programs which depend on
4038 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
4039 math functions.
4040 .Sp
4041 The default is \fB\-fmath\-errno\fR.
4042 .IP "\fB\-funsafe\-math\-optimizations\fR" 4
4043 .IX Item "-funsafe-math-optimizations"
4044 Allow optimizations for floating-point arithmetic that (a) assume
4045 that arguments and results are valid and (b) may violate \s-1IEEE\s0 or
4046 \&\s-1ANSI\s0 standards.  When used at link\-time, it may include libraries
4047 or startup files that change the default \s-1FPU\s0 control word or other
4048 similar optimizations.
4049 .Sp
4050 This option should never be turned on by any \fB\-O\fR option since
4051 it can result in incorrect output for programs which depend on
4052 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
4053 math functions.
4054 .Sp
4055 The default is \fB\-fno\-unsafe\-math\-optimizations\fR.
4056 .IP "\fB\-ffinite\-math\-only\fR" 4
4057 .IX Item "-ffinite-math-only"
4058 Allow optimizations for floating-point arithmetic that assume
4059 that arguments and results are not NaNs or +\-Infs.
4060 .Sp
4061 This option should never be turned on by any \fB\-O\fR option since
4062 it can result in incorrect output for programs which depend on
4063 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications.
4064 .Sp
4065 The default is \fB\-fno\-finite\-math\-only\fR.
4066 .IP "\fB\-fno\-trapping\-math\fR" 4
4067 .IX Item "-fno-trapping-math"
4068 Compile code assuming that floating-point operations cannot generate
4069 user-visible traps.  These traps include division by zero, overflow,
4070 underflow, inexact result and invalid operation.  This option implies
4071 \&\fB\-fno\-signaling\-nans\fR.  Setting this option may allow faster
4072 code if one relies on ``non\-stop'' \s-1IEEE\s0 arithmetic, for example.
4073 .Sp
4074 This option should never be turned on by any \fB\-O\fR option since
4075 it can result in incorrect output for programs which depend on
4076 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
4077 math functions.
4078 .Sp
4079 The default is \fB\-ftrapping\-math\fR.
4080 .IP "\fB\-frounding\-math\fR" 4
4081 .IX Item "-frounding-math"
4082 Disable transformations and optimizations that assume default floating
4083 point rounding behavior.  This is round-to-zero for all floating point
4084 to integer conversions, and round-to-nearest for all other arithmetic
4085 truncations.  This option should be specified for programs that change
4086 the \s-1FP\s0 rounding mode dynamically, or that may be executed with a
4087 non-default rounding mode.  This option disables constant folding of
4088 floating point expressions at compile-time (which may be affected by
4089 rounding mode) and arithmetic transformations that are unsafe in the
4090 presence of sign-dependent rounding modes.
4091 .Sp
4092 The default is \fB\-fno\-rounding\-math\fR.
4093 .Sp
4094 This option is experimental and does not currently guarantee to
4095 disable all \s-1GCC\s0 optimizations that are affected by rounding mode.
4096 Future versions of \s-1GCC\s0 may provide finer control of this setting
4097 using C99's \f(CW\*(C`FENV_ACCESS\*(C'\fR pragma.  This command line option
4098 will be used to specify the default state for \f(CW\*(C`FENV_ACCESS\*(C'\fR.
4099 .IP "\fB\-fsignaling\-nans\fR" 4
4100 .IX Item "-fsignaling-nans"
4101 Compile code assuming that \s-1IEEE\s0 signaling NaNs may generate user-visible
4102 traps during floating-point operations.  Setting this option disables
4103 optimizations that may change the number of exceptions visible with
4104 signaling NaNs.  This option implies \fB\-ftrapping\-math\fR.
4105 .Sp
4106 This option causes the preprocessor macro \f(CW\*(C`_\|_SUPPORT_SNAN_\|_\*(C'\fR to
4107 be defined.
4108 .Sp
4109 The default is \fB\-fno\-signaling\-nans\fR.
4110 .Sp
4111 This option is experimental and does not currently guarantee to
4112 disable all \s-1GCC\s0 optimizations that affect signaling NaN behavior.
4113 .IP "\fB\-fsingle\-precision\-constant\fR" 4
4114 .IX Item "-fsingle-precision-constant"
4115 Treat floating point constant as single precision constant instead of
4116 implicitly converting it to double precision constant.
4117 .PP
4118 The following options control optimizations that may improve
4119 performance, but are not enabled by any \fB\-O\fR options.  This
4120 section includes experimental options that may produce broken code.
4121 .IP "\fB\-fbranch\-probabilities\fR" 4
4122 .IX Item "-fbranch-probabilities"
4123 After running a program compiled with \fB\-fprofile\-arcs\fR, you can compile it a second time using
4124 \&\fB\-fbranch\-probabilities\fR, to improve optimizations based on
4125 the number of times each branch was taken.  When the program
4126 compiled with \fB\-fprofile\-arcs\fR exits it saves arc execution
4127 counts to a file called \fI\fIsourcename\fI.gcda\fR for each source
4128 file  The information in this data file is very dependent on the
4129 structure of the generated code, so you must use the same source code
4130 and the same optimization options for both compilations.
4131 .Sp
4132 With \fB\-fbranch\-probabilities\fR, \s-1GCC\s0 puts a
4133 \&\fB\s-1REG_BR_PROB\s0\fR note on each \fB\s-1JUMP_INSN\s0\fR and \fB\s-1CALL_INSN\s0\fR.
4134 These can be used to improve optimization.  Currently, they are only
4135 used in one place: in \fIreorg.c\fR, instead of guessing which path a
4136 branch is mostly to take, the \fB\s-1REG_BR_PROB\s0\fR values are used to
4137 exactly determine which path is taken more often.
4138 .IP "\fB\-fprofile\-values\fR" 4
4139 .IX Item "-fprofile-values"
4140 If combined with \fB\-fprofile\-arcs\fR, it adds code so that some
4141 data about values of expressions in the program is gathered.
4142 .Sp
4143 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
4144 from profiling values of expressions and adds \fB\s-1REG_VALUE_PROFILE\s0\fR
4145 notes to instructions for their later usage in optimizations.
4146 .IP "\fB\-fvpt\fR" 4
4147 .IX Item "-fvpt"
4148 If combined with \fB\-fprofile\-arcs\fR, it instructs the compiler to add
4149 a code to gather information about values of expressions.
4150 .Sp
4151 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
4152 and actually performs the optimizations based on them.
4153 Currently the optimizations include specialization of division operation
4154 using the knowledge about the value of the denominator.
4155 .IP "\fB\-fnew\-ra\fR" 4
4156 .IX Item "-fnew-ra"
4157 Use a graph coloring register allocator.  Currently this option is meant
4158 for testing, so we are interested to hear about miscompilations with
4159 \&\fB\-fnew\-ra\fR.
4160 .IP "\fB\-ftracer\fR" 4
4161 .IX Item "-ftracer"
4162 Perform tail duplication to enlarge superblock size. This transformation
4163 simplifies the control flow of the function allowing other optimizations to do
4164 better job.
4165 .IP "\fB\-funit\-at\-a\-time\fR" 4
4166 .IX Item "-funit-at-a-time"
4167 Parse the whole compilation unit before starting to produce code.
4168 This allows some extra optimizations to take place but consumes more
4169 memory.
4170 .IP "\fB\-funroll\-loops\fR" 4
4171 .IX Item "-funroll-loops"
4172 Unroll loops whose number of iterations can be determined at compile time or
4173 upon entry to the loop.  \fB\-funroll\-loops\fR implies
4174 \&\fB\-frerun\-cse\-after\-loop\fR.  It also turns on complete loop peeling
4175 (i.e. complete removal of loops with small constant number of iterations).
4176 This option makes code larger, and may or may not make it run faster.
4177 .IP "\fB\-funroll\-all\-loops\fR" 4
4178 .IX Item "-funroll-all-loops"
4179 Unroll all loops, even if their number of iterations is uncertain when
4180 the loop is entered.  This usually makes programs run more slowly.
4181 \&\fB\-funroll\-all\-loops\fR implies the same options as
4182 \&\fB\-funroll\-loops\fR.
4183 .IP "\fB\-fpeel\-loops\fR" 4
4184 .IX Item "-fpeel-loops"
4185 Peels the loops for that there is enough information that they do not
4186 roll much (from profile feedback).  It also turns on complete loop peeling
4187 (i.e. complete removal of loops with small constant number of iterations).
4188 .IP "\fB\-funswitch\-loops\fR" 4
4189 .IX Item "-funswitch-loops"
4190 Move branches with loop invariant conditions out of the loop, with duplicates
4191 of the loop on both branches (modified according to result of the condition).
4192 .IP "\fB\-fold\-unroll\-loops\fR" 4
4193 .IX Item "-fold-unroll-loops"
4194 Unroll loops whose number of iterations can be determined at compile
4195 time or upon entry to the loop, using the old loop unroller whose loop
4196 recognition is based on notes from frontend.  \fB\-fold\-unroll\-loops\fR implies
4197 both \fB\-fstrength\-reduce\fR and \fB\-frerun\-cse\-after\-loop\fR.  This
4198 option makes code larger, and may or may not make it run faster.
4199 .IP "\fB\-fold\-unroll\-all\-loops\fR" 4
4200 .IX Item "-fold-unroll-all-loops"
4201 Unroll all loops, even if their number of iterations is uncertain when
4202 the loop is entered. This is done using the old loop unroller whose loop
4203 recognition is based on notes from frontend.  This usually makes programs run more slowly.
4204 \&\fB\-fold\-unroll\-all\-loops\fR implies the same options as
4205 \&\fB\-fold\-unroll\-loops\fR.
4206 .IP "\fB\-funswitch\-loops\fR" 4
4207 .IX Item "-funswitch-loops"
4208 Move branches with loop invariant conditions out of the loop, with duplicates
4209 of the loop on both branches (modified according to result of the condition).
4210 .IP "\fB\-funswitch\-loops\fR" 4
4211 .IX Item "-funswitch-loops"
4212 Move branches with loop invariant conditions out of the loop, with duplicates
4213 of the loop on both branches (modified according to result of the condition).
4214 .IP "\fB\-fprefetch\-loop\-arrays\fR" 4
4215 .IX Item "-fprefetch-loop-arrays"
4216 If supported by the target machine, generate instructions to prefetch
4217 memory to improve the performance of loops that access large arrays.
4218 .Sp
4219 Disabled at level \fB\-Os\fR.
4220 .IP "\fB\-ffunction\-sections\fR" 4
4221 .IX Item "-ffunction-sections"
4222 .PD 0
4223 .IP "\fB\-fdata\-sections\fR" 4
4224 .IX Item "-fdata-sections"
4225 .PD
4226 Place each function or data item into its own section in the output
4227 file if the target supports arbitrary sections.  The name of the
4228 function or the name of the data item determines the section's name
4229 in the output file.
4230 .Sp
4231 Use these options on systems where the linker can perform optimizations
4232 to improve locality of reference in the instruction space.  Most systems
4233 using the \s-1ELF\s0 object format and \s-1SPARC\s0 processors running Solaris 2 have
4234 linkers with such optimizations.  \s-1AIX\s0 may have these optimizations in
4235 the future.
4236 .Sp
4237 Only use these options when there are significant benefits from doing
4238 so.  When you specify these options, the assembler and linker will
4239 create larger object and executable files and will also be slower.
4240 You will not be able to use \f(CW\*(C`gprof\*(C'\fR on all systems if you
4241 specify this option and you may have problems with debugging if
4242 you specify both this option and \fB\-g\fR.
4243 .IP "\fB\-fbranch\-target\-load\-optimize\fR" 4
4244 .IX Item "-fbranch-target-load-optimize"
4245 Perform branch target register load optimization before prologue / epilogue
4246 threading.
4247 The use of target registers can typically be exposed only during reload,
4248 thus hoisting loads out of loops and doing inter-block scheduling needs
4249 a separate optimization pass.
4250 .IP "\fB\-fbranch\-target\-load\-optimize2\fR" 4
4251 .IX Item "-fbranch-target-load-optimize2"
4252 Perform branch target register load optimization after prologue / epilogue
4253 threading.
4254 .IP "\fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR" 4
4255 .IX Item "--param name=value"
4256 In some places, \s-1GCC\s0 uses various constants to control the amount of
4257 optimization that is done.  For example, \s-1GCC\s0 will not inline functions
4258 that contain more that a certain number of instructions.  You can
4259 control some of these constants on the command-line using the
4260 \&\fB\-\-param\fR option.
4261 .Sp
4262 The names of specific parameters, and the meaning of the values, are
4263 tied to the internals of the compiler, and are subject to change
4264 without notice in future releases.
4265 .Sp
4266 In each case, the \fIvalue\fR is an integer.  The allowable choices for
4267 \&\fIname\fR are given in the following table:
4268 .RS 4
4269 .IP "\fBmax-crossjump-edges\fR" 4
4270 .IX Item "max-crossjump-edges"
4271 The maximum number of incoming edges to consider for crossjumping.
4272 The algorithm used by \fB\-fcrossjumping\fR is O(N^2) in
4273 the number of edges incoming to each block.  Increasing values mean
4274 more aggressive optimization, making the compile time increase with
4275 probably small improvement in executable size.
4276 .IP "\fBmax-delay-slot-insn-search\fR" 4
4277 .IX Item "max-delay-slot-insn-search"
4278 The maximum number of instructions to consider when looking for an
4279 instruction to fill a delay slot.  If more than this arbitrary number of
4280 instructions is searched, the time savings from filling the delay slot
4281 will be minimal so stop searching.  Increasing values mean more
4282 aggressive optimization, making the compile time increase with probably
4283 small improvement in executable run time.
4284 .IP "\fBmax-delay-slot-live-search\fR" 4
4285 .IX Item "max-delay-slot-live-search"
4286 When trying to fill delay slots, the maximum number of instructions to
4287 consider when searching for a block with valid live register
4288 information.  Increasing this arbitrarily chosen value means more
4289 aggressive optimization, increasing the compile time.  This parameter
4290 should be removed when the delay slot code is rewritten to maintain the
4291 control-flow graph.
4292 .IP "\fBmax-gcse-memory\fR" 4
4293 .IX Item "max-gcse-memory"
4294 The approximate maximum amount of memory that will be allocated in
4295 order to perform the global common subexpression elimination
4296 optimization.  If more memory than specified is required, the
4297 optimization will not be done.
4298 .IP "\fBmax-gcse-passes\fR" 4
4299 .IX Item "max-gcse-passes"
4300 The maximum number of passes of \s-1GCSE\s0 to run.
4301 .IP "\fBmax-pending-list-length\fR" 4
4302 .IX Item "max-pending-list-length"
4303 The maximum number of pending dependencies scheduling will allow
4304 before flushing the current state and starting over.  Large functions
4305 with few branches or calls can create excessively large lists which
4306 needlessly consume memory and resources.
4307 .IP "\fBmax-inline-insns-single\fR" 4
4308 .IX Item "max-inline-insns-single"
4309 Several parameters control the tree inliner used in gcc.
4310 This number sets the maximum number of instructions (counted in \s-1GCC\s0's
4311 internal representation) in a single function that the tree inliner
4312 will consider for inlining.  This only affects functions declared
4313 inline and methods implemented in a class declaration (\*(C+).
4314 The default value is 500.
4315 .IP "\fBmax-inline-insns-auto\fR" 4
4316 .IX Item "max-inline-insns-auto"
4317 When you use \fB\-finline\-functions\fR (included in \fB\-O3\fR),
4318 a lot of functions that would otherwise not be considered for inlining
4319 by the compiler will be investigated.  To those functions, a different
4320 (more restrictive) limit compared to functions declared inline can
4321 be applied.
4322 The default value is 100.
4323 .IP "\fBlarge-function-insns\fR" 4
4324 .IX Item "large-function-insns"
4325 The limit specifying really large functions.  For functions greater than this
4326 limit inlining is constrained by \fB\-\-param large-function-growth\fR.
4327 This parameter is useful primarily to avoid extreme compilation time caused by non-linear
4328 algorithms used by the backend.
4329 This parameter is ignored when \fB\-funit\-at\-a\-time\fR is not used.
4330 The default value is 3000.
4331 .IP "\fBlarge-function-growth\fR" 4
4332 .IX Item "large-function-growth"
4333 Specifies maximal growth of large function caused by inlining in percents.
4334 This parameter is ignored when \fB\-funit\-at\-a\-time\fR is not used.
4335 The default value is 200.
4336 .IP "\fBinline-unit-growth\fR" 4
4337 .IX Item "inline-unit-growth"
4338 Specifies maximal overall growth of the compilation unit caused by inlining.
4339 This parameter is ignored when \fB\-funit\-at\-a\-time\fR is not used.
4340 The default value is 150.
4341 .IP "\fBmax-inline-insns-rtl\fR" 4
4342 .IX Item "max-inline-insns-rtl"
4343 For languages that use the \s-1RTL\s0 inliner (this happens at a later stage
4344 than tree inlining), you can set the maximum allowable size (counted
4345 in \s-1RTL\s0 instructions) for the \s-1RTL\s0 inliner with this parameter.
4346 The default value is 600.
4347 .IP "\fBmax-unrolled-insns\fR" 4
4348 .IX Item "max-unrolled-insns"
4349 The maximum number of instructions that a loop should have if that loop
4350 is unrolled, and if the loop is unrolled, it determines how many times
4351 the loop code is unrolled.
4352 .IP "\fBmax-average-unrolled-insns\fR" 4
4353 .IX Item "max-average-unrolled-insns"
4354 The maximum number of instructions biased by probabilities of their execution
4355 that a loop should have if that loop is unrolled, and if the loop is unrolled,
4356 it determines how many times the loop code is unrolled.
4357 .IP "\fBmax-unroll-times\fR" 4
4358 .IX Item "max-unroll-times"
4359 The maximum number of unrollings of a single loop.
4360 .IP "\fBmax-peeled-insns\fR" 4
4361 .IX Item "max-peeled-insns"
4362 The maximum number of instructions that a loop should have if that loop
4363 is peeled, and if the loop is peeled, it determines how many times
4364 the loop code is peeled.
4365 .IP "\fBmax-peel-times\fR" 4
4366 .IX Item "max-peel-times"
4367 The maximum number of peelings of a single loop.
4368 .IP "\fBmax-completely-peeled-insns\fR" 4
4369 .IX Item "max-completely-peeled-insns"
4370 The maximum number of insns of a completely peeled loop.
4371 .IP "\fBmax-completely-peel-times\fR" 4
4372 .IX Item "max-completely-peel-times"
4373 The maximum number of iterations of a loop to be suitable for complete peeling.
4374 .IP "\fBmax-unswitch-insns\fR" 4
4375 .IX Item "max-unswitch-insns"
4376 The maximum number of insns of an unswitched loop.
4377 .IP "\fBmax-unswitch-level\fR" 4
4378 .IX Item "max-unswitch-level"
4379 The maximum number of branches unswitched in a single loop.
4380 .IP "\fBhot-bb-count-fraction\fR" 4
4381 .IX Item "hot-bb-count-fraction"
4382 Select fraction of the maximal count of repetitions of basic block in program
4383 given basic block needs to have to be considered hot.
4384 .IP "\fBhot-bb-frequency-fraction\fR" 4
4385 .IX Item "hot-bb-frequency-fraction"
4386 Select fraction of the maximal frequency of executions of basic block in
4387 function given basic block needs to have to be considered hot
4388 .IP "\fBtracer-dynamic-coverage\fR" 4
4389 .IX Item "tracer-dynamic-coverage"
4390 .PD 0
4391 .IP "\fBtracer-dynamic-coverage-feedback\fR" 4
4392 .IX Item "tracer-dynamic-coverage-feedback"
4393 .PD
4394 This value is used to limit superblock formation once the given percentage of
4395 executed instructions is covered.  This limits unnecessary code size
4396 expansion.
4397 .Sp
4398 The \fBtracer-dynamic-coverage-feedback\fR is used only when profile
4399 feedback is available.  The real profiles (as opposed to statically estimated
4400 ones) are much less balanced allowing the threshold to be larger value.
4401 .IP "\fBtracer-max-code-growth\fR" 4
4402 .IX Item "tracer-max-code-growth"
4403 Stop tail duplication once code growth has reached given percentage.  This is
4404 rather hokey argument, as most of the duplicates will be eliminated later in
4405 cross jumping, so it may be set to much higher values than is the desired code
4406 growth.
4407 .IP "\fBtracer-min-branch-ratio\fR" 4
4408 .IX Item "tracer-min-branch-ratio"
4409 Stop reverse growth when the reverse probability of best edge is less than this
4410 threshold (in percent).
4411 .IP "\fBtracer-min-branch-ratio\fR" 4
4412 .IX Item "tracer-min-branch-ratio"
4413 .PD 0
4414 .IP "\fBtracer-min-branch-ratio-feedback\fR" 4
4415 .IX Item "tracer-min-branch-ratio-feedback"
4416 .PD
4417 Stop forward growth if the best edge do have probability lower than this
4418 threshold.
4419 .Sp
4420 Similarly to \fBtracer-dynamic-coverage\fR two values are present, one for
4421 compilation for profile feedback and one for compilation without.  The value
4422 for compilation with profile feedback needs to be more conservative (higher) in
4423 order to make tracer effective.
4424 .IP "\fBmax-cse-path-length\fR" 4
4425 .IX Item "max-cse-path-length"
4426 Maximum number of basic blocks on path that cse considers.
4427 .IP "\fBmax-last-value-rtl\fR" 4
4428 .IX Item "max-last-value-rtl"
4429 The maximum size measured as number of RTLs that can be recorded in an
4430 expression in combiner for a pseudo register as last known value of that
4431 register.  The default is 10000.
4432 .IP "\fBggc-min-expand\fR" 4
4433 .IX Item "ggc-min-expand"
4434 \&\s-1GCC\s0 uses a garbage collector to manage its own memory allocation.  This
4435 parameter specifies the minimum percentage by which the garbage
4436 collector's heap should be allowed to expand between collections.
4437 Tuning this may improve compilation speed; it has no effect on code
4438 generation.
4439 .Sp
4440 The default is 30% + 70% * (\s-1RAM/1GB\s0) with an upper bound of 100% when
4441 \&\s-1RAM\s0 >= 1GB.  If \f(CW\*(C`getrlimit\*(C'\fR is available, the notion of \*(L"\s-1RAM\s0\*(R" is
4442 the smallest of actual \s-1RAM\s0, \s-1RLIMIT_RSS\s0, \s-1RLIMIT_DATA\s0 and \s-1RLIMIT_AS\s0.  If
4443 \&\s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a particular platform, the lower
4444 bound of 30% is used.  Setting this parameter and
4445 \&\fBggc-min-heapsize\fR to zero causes a full collection to occur at
4446 every opportunity.  This is extremely slow, but can be useful for
4447 debugging.
4448 .IP "\fBggc-min-heapsize\fR" 4
4449 .IX Item "ggc-min-heapsize"
4450 Minimum size of the garbage collector's heap before it begins bothering
4451 to collect garbage.  The first collection occurs after the heap expands
4452 by \fBggc-min-expand\fR% beyond \fBggc-min-heapsize\fR.  Again,
4453 tuning this may improve compilation speed, and has no effect on code
4454 generation.
4455 .Sp
4456 The default is \s-1RAM/8\s0, with a lower bound of 4096 (four megabytes) and an
4457 upper bound of 131072 (128 megabytes).  If \f(CW\*(C`getrlimit\*(C'\fR is
4458 available, the notion of \*(L"\s-1RAM\s0\*(R" is the smallest of actual \s-1RAM\s0,
4459 \&\s-1RLIMIT_RSS\s0, \s-1RLIMIT_DATA\s0 and \s-1RLIMIT_AS\s0.  If \s-1GCC\s0 is not able to calculate
4460 \&\s-1RAM\s0 on a particular platform, the lower bound is used.  Setting this
4461 parameter very large effectively disables garbage collection.  Setting
4462 this parameter and \fBggc-min-expand\fR to zero causes a full
4463 collection to occur at every opportunity.
4464 .IP "\fBmax-reload-search-insns\fR" 4
4465 .IX Item "max-reload-search-insns"
4466 The maximum number of instruction reload should look backward for equivalent
4467 register.  Increasing values mean more aggressive optimization, making the
4468 compile time increase with probably slightly better performance.  The default
4469 value is 100.
4470 .IP "\fBmax-cselib-memory-location\fR" 4
4471 .IX Item "max-cselib-memory-location"
4472 The maximum number of memory locations cselib should take into acount.
4473 Increasing values mean more aggressive optimization, making the compile time
4474 increase with probably slightly better performance.  The default value is 500.
4475 .IP "\fBreorder-blocks-duplicate\fR" 4
4476 .IX Item "reorder-blocks-duplicate"
4477 .PD 0
4478 .IP "\fBreorder-blocks-duplicate-feedback\fR" 4
4479 .IX Item "reorder-blocks-duplicate-feedback"
4480 .PD
4481 Used by basic block reordering pass to decide whether to use unconditional
4482 branch or duplicate the code on its destination.  Code is duplicated when its
4483 estimated size is smaller than this value multiplied by the estimated size of
4484 unconditional jump in the hot spots of the program.
4485 .Sp
4486 The \fBreorder-block-duplicate-feedback\fR is used only when profile
4487 feedback is available and may be set to higher values than
4488 \&\fBreorder-block-duplicate\fR since information about the hot spots is more
4489 accurate.
4490 .RE
4491 .RS 4
4492 .RE
4493 .Sh "Options Controlling the Preprocessor"
4494 .IX Subsection "Options Controlling the Preprocessor"
4495 These options control the C preprocessor, which is run on each C source
4496 file before actual compilation.
4497 .PP
4498 If you use the \fB\-E\fR option, nothing is done except preprocessing.
4499 Some of these options make sense only together with \fB\-E\fR because
4500 they cause the preprocessor output to be unsuitable for actual
4501 compilation.
4502 .Sp
4503 .RS 4
4504 You can use \fB\-Wp,\fR\fIoption\fR to bypass the compiler driver
4505 and pass \fIoption\fR directly through to the preprocessor.  If
4506 \&\fIoption\fR contains commas, it is split into multiple options at the
4507 commas.  However, many options are modified, translated or interpreted
4508 by the compiler driver before being passed to the preprocessor, and
4509 \&\fB\-Wp\fR forcibly bypasses this phase.  The preprocessor's direct
4510 interface is undocumented and subject to change, so whenever possible
4511 you should avoid using \fB\-Wp\fR and let the driver handle the
4512 options instead.
4513 .RE
4514 .IP "\fB\-Xpreprocessor\fR \fIoption\fR" 4
4515 .IX Item "-Xpreprocessor option"
4516 Pass \fIoption\fR as an option to the preprocessor.  You can use this to
4517 supply system-specific preprocessor options which \s-1GCC\s0 does not know how to
4518 recognize.
4519 .Sp
4520 If you want to pass an option that takes an argument, you must use
4521 \&\fB\-Xpreprocessor\fR twice, once for the option and once for the argument.
4522 .IP "\fB\-D\fR \fIname\fR" 4
4523 .IX Item "-D name"
4524 Predefine \fIname\fR as a macro, with definition \f(CW1\fR.
4525 .IP "\fB\-D\fR \fIname\fR\fB=\fR\fIdefinition\fR" 4
4526 .IX Item "-D name=definition"
4527 Predefine \fIname\fR as a macro, with definition \fIdefinition\fR.
4528 The contents of \fIdefinition\fR are tokenized and processed as if
4529 they appeared during translation phase three in a \fB#define\fR
4530 directive.  In particular, the definition will be truncated by
4531 embedded newline characters.
4532 .Sp
4533 If you are invoking the preprocessor from a shell or shell-like
4534 program you may need to use the shell's quoting syntax to protect
4535 characters such as spaces that have a meaning in the shell syntax.
4536 .Sp
4537 If you wish to define a function-like macro on the command line, write
4538 its argument list with surrounding parentheses before the equals sign
4539 (if any).  Parentheses are meaningful to most shells, so you will need
4540 to quote the option.  With \fBsh\fR and \fBcsh\fR,
4541 \&\fB\-D'\fR\fIname\fR\fB(\fR\fIargs...\fR\fB)=\fR\fIdefinition\fR\fB'\fR works.
4542 .Sp
4543 \&\fB\-D\fR and \fB\-U\fR options are processed in the order they
4544 are given on the command line.  All \fB\-imacros\fR \fIfile\fR and
4545 \&\fB\-include\fR \fIfile\fR options are processed after all
4546 \&\fB\-D\fR and \fB\-U\fR options.
4547 .IP "\fB\-U\fR \fIname\fR" 4
4548 .IX Item "-U name"
4549 Cancel any previous definition of \fIname\fR, either built in or
4550 provided with a \fB\-D\fR option.
4551 .IP "\fB\-undef\fR" 4
4552 .IX Item "-undef"
4553 Do not predefine any system-specific or GCC-specific macros.  The
4554 standard predefined macros remain defined.
4555 .IP "\fB\-I\fR \fIdir\fR" 4
4556 .IX Item "-I dir"
4557 Add the directory \fIdir\fR to the list of directories to be searched
4558 for header files.
4559 Directories named by \fB\-I\fR are searched before the standard
4560 system include directories.  If the directory \fIdir\fR is a standard
4561 system include directory, the option is ignored to ensure that the
4562 default search order for system directories and the special treatment
4563 of system headers are not defeated
4564 \&.
4565 .IP "\fB\-o\fR \fIfile\fR" 4
4566 .IX Item "-o file"
4567 Write output to \fIfile\fR.  This is the same as specifying \fIfile\fR
4568 as the second non-option argument to \fBcpp\fR.  \fBgcc\fR has a
4569 different interpretation of a second non-option argument, so you must
4570 use \fB\-o\fR to specify the output file.
4571 .IP "\fB\-Wall\fR" 4
4572 .IX Item "-Wall"
4573 Turns on all optional warnings which are desirable for normal code.
4574 At present this is \fB\-Wcomment\fR, \fB\-Wtrigraphs\fR,
4575 \&\fB\-Wmultichar\fR and a warning about integer promotion causing a
4576 change of sign in \f(CW\*(C`#if\*(C'\fR expressions.  Note that many of the
4577 preprocessor's warnings are on by default and have no options to
4578 control them.
4579 .IP "\fB\-Wcomment\fR" 4
4580 .IX Item "-Wcomment"
4581 .PD 0
4582 .IP "\fB\-Wcomments\fR" 4
4583 .IX Item "-Wcomments"
4584 .PD
4585 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
4586 comment, or whenever a backslash-newline appears in a \fB//\fR comment.
4587 (Both forms have the same effect.)
4588 .IP "\fB\-Wtrigraphs\fR" 4
4589 .IX Item "-Wtrigraphs"
4590 @anchor{Wtrigraphs}
4591 Most trigraphs in comments cannot affect the meaning of the program.
4592 However, a trigraph that would form an escaped newline (\fB??/\fR at
4593 the end of a line) can, by changing where the comment begins or ends.
4594 Therefore, only trigraphs that would form escaped newlines produce
4595 warnings inside a comment.
4596 .Sp
4597 This option is implied by \fB\-Wall\fR.  If \fB\-Wall\fR is not
4598 given, this option is still enabled unless trigraphs are enabled.  To
4599 get trigraph conversion without warnings, but get the other
4600 \&\fB\-Wall\fR warnings, use \fB\-trigraphs \-Wall \-Wno\-trigraphs\fR.
4601 .IP "\fB\-Wtraditional\fR" 4
4602 .IX Item "-Wtraditional"
4603 Warn about certain constructs that behave differently in traditional and
4604 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
4605 equivalent, and problematic constructs which should be avoided.
4606 .IP "\fB\-Wimport\fR" 4
4607 .IX Item "-Wimport"
4608 Warn the first time \fB#import\fR is used.
4609 .IP "\fB\-Wundef\fR" 4
4610 .IX Item "-Wundef"
4611 Warn whenever an identifier which is not a macro is encountered in an
4612 \&\fB#if\fR directive, outside of \fBdefined\fR.  Such identifiers are
4613 replaced with zero.
4614 .IP "\fB\-Wunused\-macros\fR" 4
4615 .IX Item "-Wunused-macros"
4616 Warn about macros defined in the main file that are unused.  A macro
4617 is \fIused\fR if it is expanded or tested for existence at least once.
4618 The preprocessor will also warn if the macro has not been used at the
4619 time it is redefined or undefined.
4620 .Sp
4621 Built-in macros, macros defined on the command line, and macros
4622 defined in include files are not warned about.
4623 .Sp
4624 \&\fBNote:\fR If a macro is actually used, but only used in skipped
4625 conditional blocks, then \s-1CPP\s0 will report it as unused.  To avoid the
4626 warning in such a case, you might improve the scope of the macro's
4627 definition by, for example, moving it into the first skipped block.
4628 Alternatively, you could provide a dummy use with something like:
4629 .Sp
4630 .Vb 2
4631 \&        #if defined the_macro_causing_the_warning
4632 \&        #endif
4633 .Ve
4634 .IP "\fB\-Wendif\-labels\fR" 4
4635 .IX Item "-Wendif-labels"
4636 Warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
4637 This usually happens in code of the form
4638 .Sp
4639 .Vb 5
4640 \&        #if FOO
4641 \&        ...
4642 \&        #else FOO
4643 \&        ...
4644 \&        #endif FOO
4645 .Ve
4646 .Sp
4647 The second and third \f(CW\*(C`FOO\*(C'\fR should be in comments, but often are not
4648 in older programs.  This warning is on by default.
4649 .IP "\fB\-Werror\fR" 4
4650 .IX Item "-Werror"
4651 Make all warnings into hard errors.  Source code which triggers warnings
4652 will be rejected.
4653 .IP "\fB\-Wsystem\-headers\fR" 4
4654 .IX Item "-Wsystem-headers"
4655 Issue warnings for code in system headers.  These are normally unhelpful
4656 in finding bugs in your own code, therefore suppressed.  If you are
4657 responsible for the system library, you may want to see them.
4658 .IP "\fB\-w\fR" 4
4659 .IX Item "-w"
4660 Suppress all warnings, including those which \s-1GNU\s0 \s-1CPP\s0 issues by default.
4661 .IP "\fB\-pedantic\fR" 4
4662 .IX Item "-pedantic"
4663 Issue all the mandatory diagnostics listed in the C standard.  Some of
4664 them are left out by default, since they trigger frequently on harmless
4665 code.
4666 .IP "\fB\-pedantic\-errors\fR" 4
4667 .IX Item "-pedantic-errors"
4668 Issue all the mandatory diagnostics, and make all mandatory diagnostics
4669 into errors.  This includes mandatory diagnostics that \s-1GCC\s0 issues
4670 without \fB\-pedantic\fR but treats as warnings.
4671 .IP "\fB\-M\fR" 4
4672 .IX Item "-M"
4673 Instead of outputting the result of preprocessing, output a rule
4674 suitable for \fBmake\fR describing the dependencies of the main
4675 source file.  The preprocessor outputs one \fBmake\fR rule containing
4676 the object file name for that source file, a colon, and the names of all
4677 the included files, including those coming from \fB\-include\fR or
4678 \&\fB\-imacros\fR command line options.
4679 .Sp
4680 Unless specified explicitly (with \fB\-MT\fR or \fB\-MQ\fR), the
4681 object file name consists of the basename of the source file with any
4682 suffix replaced with object file suffix.  If there are many included
4683 files then the rule is split into several lines using \fB\e\fR\-newline.
4684 The rule has no commands.
4685 .Sp
4686 This option does not suppress the preprocessor's debug output, such as
4687 \&\fB\-dM\fR.  To avoid mixing such debug output with the dependency
4688 rules you should explicitly specify the dependency output file with
4689 \&\fB\-MF\fR, or use an environment variable like
4690 \&\fB\s-1DEPENDENCIES_OUTPUT\s0\fR.  Debug output
4691 will still be sent to the regular output stream as normal.
4692 .Sp
4693 Passing \fB\-M\fR to the driver implies \fB\-E\fR, and suppresses
4694 warnings with an implicit \fB\-w\fR.
4695 .IP "\fB\-MM\fR" 4
4696 .IX Item "-MM"
4697 Like \fB\-M\fR but do not mention header files that are found in
4698 system header directories, nor header files that are included,
4699 directly or indirectly, from such a header.
4700 .Sp
4701 This implies that the choice of angle brackets or double quotes in an
4702 \&\fB#include\fR directive does not in itself determine whether that
4703 header will appear in \fB\-MM\fR dependency output.  This is a
4704 slight change in semantics from \s-1GCC\s0 versions 3.0 and earlier.
4705 .Sp
4706 @anchor{dashMF}
4707 .IP "\fB\-MF\fR \fIfile\fR" 4
4708 .IX Item "-MF file"
4709 When used with \fB\-M\fR or \fB\-MM\fR, specifies a
4710 file to write the dependencies to.  If no \fB\-MF\fR switch is given
4711 the preprocessor sends the rules to the same place it would have sent
4712 preprocessed output.
4713 .Sp
4714 When used with the driver options \fB\-MD\fR or \fB\-MMD\fR,
4715 \&\fB\-MF\fR overrides the default dependency output file.
4716 .IP "\fB\-MG\fR" 4
4717 .IX Item "-MG"
4718 In conjunction with an option such as \fB\-M\fR requesting
4719 dependency generation, \fB\-MG\fR assumes missing header files are
4720 generated files and adds them to the dependency list without raising
4721 an error.  The dependency filename is taken directly from the
4722 \&\f(CW\*(C`#include\*(C'\fR directive without prepending any path.  \fB\-MG\fR
4723 also suppresses preprocessed output, as a missing header file renders
4724 this useless.
4725 .Sp
4726 This feature is used in automatic updating of makefiles.
4727 .IP "\fB\-MP\fR" 4
4728 .IX Item "-MP"
4729 This option instructs \s-1CPP\s0 to add a phony target for each dependency
4730 other than the main file, causing each to depend on nothing.  These
4731 dummy rules work around errors \fBmake\fR gives if you remove header
4732 files without updating the \fIMakefile\fR to match.
4733 .Sp
4734 This is typical output:
4735 .Sp
4736 .Vb 1
4737 \&        test.o: test.c test.h
4738 .Ve
4739 .Sp
4740 .Vb 1
4741 \&        test.h:
4742 .Ve
4743 .IP "\fB\-MT\fR \fItarget\fR" 4
4744 .IX Item "-MT target"
4745 Change the target of the rule emitted by dependency generation.  By
4746 default \s-1CPP\s0 takes the name of the main input file, including any path,
4747 deletes any file suffix such as \fB.c\fR, and appends the platform's
4748 usual object suffix.  The result is the target.
4749 .Sp
4750 An \fB\-MT\fR option will set the target to be exactly the string you
4751 specify.  If you want multiple targets, you can specify them as a single
4752 argument to \fB\-MT\fR, or use multiple \fB\-MT\fR options.
4753 .Sp
4754 For example, \fB\-MT\ '$(objpfx)foo.o'\fR might give
4755 .Sp
4756 .Vb 1
4757 \&        $(objpfx)foo.o: foo.c
4758 .Ve
4759 .IP "\fB\-MQ\fR \fItarget\fR" 4
4760 .IX Item "-MQ target"
4761 Same as \fB\-MT\fR, but it quotes any characters which are special to
4762 Make.  \fB\-MQ\ '$(objpfx)foo.o'\fR gives
4763 .Sp
4764 .Vb 1
4765 \&        $$(objpfx)foo.o: foo.c
4766 .Ve
4767 .Sp
4768 The default target is automatically quoted, as if it were given with
4769 \&\fB\-MQ\fR.
4770 .IP "\fB\-MD\fR" 4
4771 .IX Item "-MD"
4772 \&\fB\-MD\fR is equivalent to \fB\-M \-MF\fR \fIfile\fR, except that
4773 \&\fB\-E\fR is not implied.  The driver determines \fIfile\fR based on
4774 whether an \fB\-o\fR option is given.  If it is, the driver uses its
4775 argument but with a suffix of \fI.d\fR, otherwise it take the
4776 basename of the input file and applies a \fI.d\fR suffix.
4777 .Sp
4778 If \fB\-MD\fR is used in conjunction with \fB\-E\fR, any
4779 \&\fB\-o\fR switch is understood to specify the dependency output file
4780 (but \f(CW@pxref\fR{dashMF,,\-MF}), but if used without \fB\-E\fR, each \fB\-o\fR
4781 is understood to specify a target object file.
4782 .Sp
4783 Since \fB\-E\fR is not implied, \fB\-MD\fR can be used to generate
4784 a dependency output file as a side-effect of the compilation process.
4785 .IP "\fB\-MMD\fR" 4
4786 .IX Item "-MMD"
4787 Like \fB\-MD\fR except mention only user header files, not system
4788 \&\-header files.
4789 .IP "\fB\-fpch\-deps\fR" 4
4790 .IX Item "-fpch-deps"
4791 When using precompiled headers, this flag
4792 will cause the dependency-output flags to also list the files from the
4793 precompiled header's dependencies.  If not specified only the
4794 precompiled header would be listed and not the files that were used to
4795 create it because those files are not consulted when a precompiled
4796 header is used.
4797 .IP "\fB\-x c\fR" 4
4798 .IX Item "-x c"
4799 .PD 0
4800 .IP "\fB\-x c++\fR" 4
4801 .IX Item "-x c++"
4802 .IP "\fB\-x objective-c\fR" 4
4803 .IX Item "-x objective-c"
4804 .IP "\fB\-x assembler-with-cpp\fR" 4
4805 .IX Item "-x assembler-with-cpp"
4806 .PD
4807 Specify the source language: C, \*(C+, Objective\-C, or assembly.  This has
4808 nothing to do with standards conformance or extensions; it merely
4809 selects which base syntax to expect.  If you give none of these options,
4810 cpp will deduce the language from the extension of the source file:
4811 \&\fB.c\fR, \fB.cc\fR, \fB.m\fR, or \fB.S\fR.  Some other common
4812 extensions for \*(C+ and assembly are also recognized.  If cpp does not
4813 recognize the extension, it will treat the file as C; this is the most
4814 generic mode.
4815 .Sp
4816 \&\fBNote:\fR Previous versions of cpp accepted a \fB\-lang\fR option
4817 which selected both the language and the standards conformance level.
4818 This option has been removed, because it conflicts with the \fB\-l\fR
4819 option.
4820 .IP "\fB\-std=\fR\fIstandard\fR" 4
4821 .IX Item "-std=standard"
4822 .PD 0
4823 .IP "\fB\-ansi\fR" 4
4824 .IX Item "-ansi"
4825 .PD
4826 Specify the standard to which the code should conform.  Currently \s-1CPP\s0
4827 knows about C and \*(C+ standards; others may be added in the future.
4828 .Sp
4829 \&\fIstandard\fR
4830 may be one of:
4831 .RS 4
4832 .ie n .IP """iso9899:1990""" 4
4833 .el .IP "\f(CWiso9899:1990\fR" 4
4834 .IX Item "iso9899:1990"
4835 .PD 0
4836 .ie n .IP """c89""" 4
4837 .el .IP "\f(CWc89\fR" 4
4838 .IX Item "c89"
4839 .PD
4840 The \s-1ISO\s0 C standard from 1990.  \fBc89\fR is the customary shorthand for
4841 this version of the standard.
4842 .Sp
4843 The \fB\-ansi\fR option is equivalent to \fB\-std=c89\fR.
4844 .ie n .IP """iso9899:199409""" 4
4845 .el .IP "\f(CWiso9899:199409\fR" 4
4846 .IX Item "iso9899:199409"
4847 The 1990 C standard, as amended in 1994.
4848 .ie n .IP """iso9899:1999""" 4
4849 .el .IP "\f(CWiso9899:1999\fR" 4
4850 .IX Item "iso9899:1999"
4851 .PD 0
4852 .ie n .IP """c99""" 4
4853 .el .IP "\f(CWc99\fR" 4
4854 .IX Item "c99"
4855 .ie n .IP """iso9899:199x""" 4
4856 .el .IP "\f(CWiso9899:199x\fR" 4
4857 .IX Item "iso9899:199x"
4858 .ie n .IP """c9x""" 4
4859 .el .IP "\f(CWc9x\fR" 4
4860 .IX Item "c9x"
4861 .PD
4862 The revised \s-1ISO\s0 C standard, published in December 1999.  Before
4863 publication, this was known as C9X.
4864 .ie n .IP """gnu89""" 4
4865 .el .IP "\f(CWgnu89\fR" 4
4866 .IX Item "gnu89"
4867 The 1990 C standard plus \s-1GNU\s0 extensions.  This is the default.
4868 .ie n .IP """gnu99""" 4
4869 .el .IP "\f(CWgnu99\fR" 4
4870 .IX Item "gnu99"
4871 .PD 0
4872 .ie n .IP """gnu9x""" 4
4873 .el .IP "\f(CWgnu9x\fR" 4
4874 .IX Item "gnu9x"
4875 .PD
4876 The 1999 C standard plus \s-1GNU\s0 extensions.
4877 .ie n .IP """c++98""" 4
4878 .el .IP "\f(CWc++98\fR" 4
4879 .IX Item "c++98"
4880 The 1998 \s-1ISO\s0 \*(C+ standard plus amendments.
4881 .ie n .IP """gnu++98""" 4
4882 .el .IP "\f(CWgnu++98\fR" 4
4883 .IX Item "gnu++98"
4884 The same as \fB\-std=c++98\fR plus \s-1GNU\s0 extensions.  This is the
4885 default for \*(C+ code.
4886 .RE
4887 .RS 4
4888 .RE
4889 .IP "\fB\-I\-\fR" 4
4890 .IX Item "-I-"
4891 Split the include path.  Any directories specified with \fB\-I\fR
4892 options before \fB\-I\-\fR are searched only for headers requested with
4893 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
4894 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR.  If additional directories are
4895 specified with \fB\-I\fR options after the \fB\-I\-\fR, those
4896 directories are searched for all \fB#include\fR directives.
4897 .Sp
4898 In addition, \fB\-I\-\fR inhibits the use of the directory of the current
4899 file directory as the first search directory for \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR.
4900 .IP "\fB\-nostdinc\fR" 4
4901 .IX Item "-nostdinc"
4902 Do not search the standard system directories for header files.
4903 Only the directories you have specified with \fB\-I\fR options
4904 (and the directory of the current file, if appropriate) are searched.
4905 .IP "\fB\-nostdinc++\fR" 4
4906 .IX Item "-nostdinc++"
4907 Do not search for header files in the \*(C+\-specific standard directories,
4908 but do still search the other standard directories.  (This option is
4909 used when building the \*(C+ library.)
4910 .IP "\fB\-include\fR \fIfile\fR" 4
4911 .IX Item "-include file"
4912 Process \fIfile\fR as if \f(CW\*(C`#include "file"\*(C'\fR appeared as the first
4913 line of the primary source file.  However, the first directory searched
4914 for \fIfile\fR is the preprocessor's working directory \fIinstead of\fR
4915 the directory containing the main source file.  If not found there, it
4916 is searched for in the remainder of the \f(CW\*(C`#include "..."\*(C'\fR search
4917 chain as normal.
4918 .Sp
4919 If multiple \fB\-include\fR options are given, the files are included
4920 in the order they appear on the command line.
4921 .IP "\fB\-imacros\fR \fIfile\fR" 4
4922 .IX Item "-imacros file"
4923 Exactly like \fB\-include\fR, except that any output produced by
4924 scanning \fIfile\fR is thrown away.  Macros it defines remain defined.
4925 This allows you to acquire all the macros from a header without also
4926 processing its declarations.
4927 .Sp
4928 All files specified by \fB\-imacros\fR are processed before all files
4929 specified by \fB\-include\fR.
4930 .IP "\fB\-idirafter\fR \fIdir\fR" 4
4931 .IX Item "-idirafter dir"
4932 Search \fIdir\fR for header files, but do it \fIafter\fR all
4933 directories specified with \fB\-I\fR and the standard system directories
4934 have been exhausted.  \fIdir\fR is treated as a system include directory.
4935 .IP "\fB\-iprefix\fR \fIprefix\fR" 4
4936 .IX Item "-iprefix prefix"
4937 Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
4938 options.  If the prefix represents a directory, you should include the
4939 final \fB/\fR.
4940 .IP "\fB\-iwithprefix\fR \fIdir\fR" 4
4941 .IX Item "-iwithprefix dir"
4942 .PD 0
4943 .IP "\fB\-iwithprefixbefore\fR \fIdir\fR" 4
4944 .IX Item "-iwithprefixbefore dir"
4945 .PD
4946 Append \fIdir\fR to the prefix specified previously with
4947 \&\fB\-iprefix\fR, and add the resulting directory to the include search
4948 path.  \fB\-iwithprefixbefore\fR puts it in the same place \fB\-I\fR
4949 would; \fB\-iwithprefix\fR puts it where \fB\-idirafter\fR would.
4950 .IP "\fB\-isystem\fR \fIdir\fR" 4
4951 .IX Item "-isystem dir"
4952 Search \fIdir\fR for header files, after all directories specified by
4953 \&\fB\-I\fR but before the standard system directories.  Mark it
4954 as a system directory, so that it gets the same special treatment as
4955 is applied to the standard system directories.
4956 .IP "\fB\-fdollars\-in\-identifiers\fR" 4
4957 .IX Item "-fdollars-in-identifiers"
4958 @anchor{fdollars\-in\-identifiers}
4959 Accept \fB$\fR in identifiers.
4960 .IP "\fB\-fpreprocessed\fR" 4
4961 .IX Item "-fpreprocessed"
4962 Indicate to the preprocessor that the input file has already been
4963 preprocessed.  This suppresses things like macro expansion, trigraph
4964 conversion, escaped newline splicing, and processing of most directives.
4965 The preprocessor still recognizes and removes comments, so that you can
4966 pass a file preprocessed with \fB\-C\fR to the compiler without
4967 problems.  In this mode the integrated preprocessor is little more than
4968 a tokenizer for the front ends.
4969 .Sp
4970 \&\fB\-fpreprocessed\fR is implicit if the input file has one of the
4971 extensions \fB.i\fR, \fB.ii\fR or \fB.mi\fR.  These are the
4972 extensions that \s-1GCC\s0 uses for preprocessed files created by
4973 \&\fB\-save\-temps\fR.
4974 .IP "\fB\-ftabstop=\fR\fIwidth\fR" 4
4975 .IX Item "-ftabstop=width"
4976 Set the distance between tab stops.  This helps the preprocessor report
4977 correct column numbers in warnings or errors, even if tabs appear on the
4978 line.  If the value is less than 1 or greater than 100, the option is
4979 ignored.  The default is 8.
4980 .IP "\fB\-fexec\-charset=\fR\fIcharset\fR" 4
4981 .IX Item "-fexec-charset=charset"
4982 Set the execution character set, used for string and character
4983 constants.  The default is \s-1UTF\-8\s0.  \fIcharset\fR can be any encoding
4984 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
4985 .IP "\fB\-fwide\-exec\-charset=\fR\fIcharset\fR" 4
4986 .IX Item "-fwide-exec-charset=charset"
4987 Set the wide execution character set, used for wide string and
4988 character constants.  The default is \s-1UTF\-32\s0 or \s-1UTF\-16\s0, whichever
4989 corresponds to the width of \f(CW\*(C`wchar_t\*(C'\fR.  As with
4990 \&\fB\-ftarget\-charset\fR, \fIcharset\fR can be any encoding supported
4991 by the system's \f(CW\*(C`iconv\*(C'\fR library routine; however, you will have
4992 problems with encodings that do not fit exactly in \f(CW\*(C`wchar_t\*(C'\fR.
4993 .IP "\fB\-finput\-charset=\fR\fIcharset\fR" 4
4994 .IX Item "-finput-charset=charset"
4995 Set the input character set, used for translation from the character
4996 set of the input file to the source character set used by \s-1GCC\s0. If the
4997 locale does not specify, or \s-1GCC\s0 cannot get this information from the
4998 locale, the default is \s-1UTF\-8\s0. This can be overridden by either the locale
4999 or this command line option. Currently the command line option takes
5000 precedence if there's a conflict. \fIcharset\fR can be any encoding
5001 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
5002 .IP "\fB\-fworking\-directory\fR" 4
5003 .IX Item "-fworking-directory"
5004 Enable generation of linemarkers in the preprocessor output that will
5005 let the compiler know the current working directory at the time of
5006 preprocessing.  When this option is enabled, the preprocessor will
5007 emit, after the initial linemarker, a second linemarker with the
5008 current working directory followed by two slashes.  \s-1GCC\s0 will use this
5009 directory, when it's present in the preprocessed input, as the
5010 directory emitted as the current working directory in some debugging
5011 information formats.  This option is implicitly enabled if debugging
5012 information is enabled, but this can be inhibited with the negated
5013 form \fB\-fno\-working\-directory\fR.  If the \fB\-P\fR flag is
5014 present in the command line, this option has no effect, since no
5015 \&\f(CW\*(C`#line\*(C'\fR directives are emitted whatsoever.
5016 .IP "\fB\-fno\-show\-column\fR" 4
5017 .IX Item "-fno-show-column"
5018 Do not print column numbers in diagnostics.  This may be necessary if
5019 diagnostics are being scanned by a program that does not understand the
5020 column numbers, such as \fBdejagnu\fR.
5021 .IP "\fB\-A\fR \fIpredicate\fR\fB=\fR\fIanswer\fR" 4
5022 .IX Item "-A predicate=answer"
5023 Make an assertion with the predicate \fIpredicate\fR and answer
5024 \&\fIanswer\fR.  This form is preferred to the older form \fB\-A\fR
5025 \&\fIpredicate\fR\fB(\fR\fIanswer\fR\fB)\fR, which is still supported, because
5026 it does not use shell special characters.
5027 .IP "\fB\-A \-\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4
5028 .IX Item "-A -predicate=answer"
5029 Cancel an assertion with the predicate \fIpredicate\fR and answer
5030 \&\fIanswer\fR.
5031 .IP "\fB\-dCHARS\fR" 4
5032 .IX Item "-dCHARS"
5033 \&\fI\s-1CHARS\s0\fR is a sequence of one or more of the following characters,
5034 and must not be preceded by a space.  Other characters are interpreted
5035 by the compiler proper, or reserved for future versions of \s-1GCC\s0, and so
5036 are silently ignored.  If you specify characters whose behavior
5037 conflicts, the result is undefined.
5038 .RS 4
5039 .IP "\fBM\fR" 4
5040 .IX Item "M"
5041 Instead of the normal output, generate a list of \fB#define\fR
5042 directives for all the macros defined during the execution of the
5043 preprocessor, including predefined macros.  This gives you a way of
5044 finding out what is predefined in your version of the preprocessor.
5045 Assuming you have no file \fIfoo.h\fR, the command
5046 .Sp
5047 .Vb 1
5048 \&        touch foo.h; cpp -dM foo.h
5049 .Ve
5050 .Sp
5051 will show all the predefined macros.
5052 .IP "\fBD\fR" 4
5053 .IX Item "D"
5054 Like \fBM\fR except in two respects: it does \fInot\fR include the
5055 predefined macros, and it outputs \fIboth\fR the \fB#define\fR
5056 directives and the result of preprocessing.  Both kinds of output go to
5057 the standard output file.
5058 .IP "\fBN\fR" 4
5059 .IX Item "N"
5060 Like \fBD\fR, but emit only the macro names, not their expansions.
5061 .IP "\fBI\fR" 4
5062 .IX Item "I"
5063 Output \fB#include\fR directives in addition to the result of
5064 preprocessing.
5065 .RE
5066 .RS 4
5067 .RE
5068 .IP "\fB\-P\fR" 4
5069 .IX Item "-P"
5070 Inhibit generation of linemarkers in the output from the preprocessor.
5071 This might be useful when running the preprocessor on something that is
5072 not C code, and will be sent to a program which might be confused by the
5073 linemarkers.
5074 .IP "\fB\-C\fR" 4
5075 .IX Item "-C"
5076 Do not discard comments.  All comments are passed through to the output
5077 file, except for comments in processed directives, which are deleted
5078 along with the directive.
5079 .Sp
5080 You should be prepared for side effects when using \fB\-C\fR; it
5081 causes the preprocessor to treat comments as tokens in their own right.
5082 For example, comments appearing at the start of what would be a
5083 directive line have the effect of turning that line into an ordinary
5084 source line, since the first token on the line is no longer a \fB#\fR.
5085 .IP "\fB\-CC\fR" 4
5086 .IX Item "-CC"
5087 Do not discard comments, including during macro expansion.  This is
5088 like \fB\-C\fR, except that comments contained within macros are
5089 also passed through to the output file where the macro is expanded.
5090 .Sp
5091 In addition to the side-effects of the \fB\-C\fR option, the
5092 \&\fB\-CC\fR option causes all \*(C+\-style comments inside a macro
5093 to be converted to C\-style comments.  This is to prevent later use
5094 of that macro from inadvertently commenting out the remainder of
5095 the source line.
5096 .Sp
5097 The \fB\-CC\fR option is generally used to support lint comments.
5098 .IP "\fB\-traditional\-cpp\fR" 4
5099 .IX Item "-traditional-cpp"
5100 Try to imitate the behavior of old-fashioned C preprocessors, as
5101 opposed to \s-1ISO\s0 C preprocessors.
5102 .IP "\fB\-trigraphs\fR" 4
5103 .IX Item "-trigraphs"
5104 Process trigraph sequences.
5105 These are three-character sequences, all starting with \fB??\fR, that
5106 are defined by \s-1ISO\s0 C to stand for single characters.  For example,
5107 \&\fB??/\fR stands for \fB\e\fR, so \fB'??/n'\fR is a character
5108 constant for a newline.  By default, \s-1GCC\s0 ignores trigraphs, but in
5109 standard-conforming modes it converts them.  See the \fB\-std\fR and
5110 \&\fB\-ansi\fR options.
5111 .Sp
5112 The nine trigraphs and their replacements are
5113 .Sp
5114 .Vb 2
5115 \&        Trigraph:       ??(  ??)  ??<  ??>  ??=  ??/  ??'  ??!  ??-
5116 \&        Replacement:      [    ]    {    }    #    \e    ^    |    ~
5117 .Ve
5118 .IP "\fB\-remap\fR" 4
5119 .IX Item "-remap"
5120 Enable special code to work around file systems which only permit very
5121 short file names, such as \s-1MS\-DOS\s0.
5122 .IP "\fB\-\-help\fR" 4
5123 .IX Item "--help"
5124 .PD 0
5125 .IP "\fB\-\-target\-help\fR" 4
5126 .IX Item "--target-help"
5127 .PD
5128 Print text describing all the command line options instead of
5129 preprocessing anything.
5130 .IP "\fB\-v\fR" 4
5131 .IX Item "-v"
5132 Verbose mode.  Print out \s-1GNU\s0 \s-1CPP\s0's version number at the beginning of
5133 execution, and report the final form of the include path.
5134 .IP "\fB\-H\fR" 4
5135 .IX Item "-H"
5136 Print the name of each header file used, in addition to other normal
5137 activities.  Each name is indented to show how deep in the
5138 \&\fB#include\fR stack it is.  Precompiled header files are also
5139 printed, even if they are found to be invalid; an invalid precompiled
5140 header file is printed with \fB...x\fR and a valid one with \fB...!\fR .
5141 .IP "\fB\-version\fR" 4
5142 .IX Item "-version"
5143 .PD 0
5144 .IP "\fB\-\-version\fR" 4
5145 .IX Item "--version"
5146 .PD
5147 Print out \s-1GNU\s0 \s-1CPP\s0's version number.  With one dash, proceed to
5148 preprocess as normal.  With two dashes, exit immediately.
5149 .Sh "Passing Options to the Assembler"
5150 .IX Subsection "Passing Options to the Assembler"
5151 You can pass options to the assembler.
5152 .IP "\fB\-Wa,\fR\fIoption\fR" 4
5153 .IX Item "-Wa,option"
5154 Pass \fIoption\fR as an option to the assembler.  If \fIoption\fR
5155 contains commas, it is split into multiple options at the commas.
5156 .IP "\fB\-Xassembler\fR \fIoption\fR" 4
5157 .IX Item "-Xassembler option"
5158 Pass \fIoption\fR as an option to the assembler.  You can use this to
5159 supply system-specific assembler options which \s-1GCC\s0 does not know how to
5160 recognize.
5161 .Sp
5162 If you want to pass an option that takes an argument, you must use
5163 \&\fB\-Xassembler\fR twice, once for the option and once for the argument.
5164 .Sh "Options for Linking"
5165 .IX Subsection "Options for Linking"
5166 These options come into play when the compiler links object files into
5167 an executable output file.  They are meaningless if the compiler is
5168 not doing a link step.
5169 .IP "\fIobject-file-name\fR" 4
5170 .IX Item "object-file-name"
5171 A file name that does not end in a special recognized suffix is
5172 considered to name an object file or library.  (Object files are
5173 distinguished from libraries by the linker according to the file
5174 contents.)  If linking is done, these object files are used as input
5175 to the linker.
5176 .IP "\fB\-c\fR" 4
5177 .IX Item "-c"
5178 .PD 0
5179 .IP "\fB\-S\fR" 4
5180 .IX Item "-S"
5181 .IP "\fB\-E\fR" 4
5182 .IX Item "-E"
5183 .PD
5184 If any of these options is used, then the linker is not run, and
5185 object file names should not be used as arguments.  
5186 .IP "\fB\-l\fR\fIlibrary\fR" 4
5187 .IX Item "-llibrary"
5188 .PD 0
5189 .IP "\fB\-l\fR \fIlibrary\fR" 4
5190 .IX Item "-l library"
5191 .PD
5192 Search the library named \fIlibrary\fR when linking.  (The second
5193 alternative with the library as a separate argument is only for
5194 \&\s-1POSIX\s0 compliance and is not recommended.)
5195 .Sp
5196 It makes a difference where in the command you write this option; the
5197 linker searches and processes libraries and object files in the order they
5198 are specified.  Thus, \fBfoo.o \-lz bar.o\fR searches library \fBz\fR
5199 after file \fIfoo.o\fR but before \fIbar.o\fR.  If \fIbar.o\fR refers
5200 to functions in \fBz\fR, those functions may not be loaded.
5201 .Sp
5202 The linker searches a standard list of directories for the library,
5203 which is actually a file named \fIlib\fIlibrary\fI.a\fR.  The linker
5204 then uses this file as if it had been specified precisely by name.
5205 .Sp
5206 The directories searched include several standard system directories
5207 plus any that you specify with \fB\-L\fR.
5208 .Sp
5209 Normally the files found this way are library files\-\-\-archive files
5210 whose members are object files.  The linker handles an archive file by
5211 scanning through it for members which define symbols that have so far
5212 been referenced but not defined.  But if the file that is found is an
5213 ordinary object file, it is linked in the usual fashion.  The only
5214 difference between using an \fB\-l\fR option and specifying a file name
5215 is that \fB\-l\fR surrounds \fIlibrary\fR with \fBlib\fR and \fB.a\fR
5216 and searches several directories.
5217 .IP "\fB\-lobjc\fR" 4
5218 .IX Item "-lobjc"
5219 You need this special case of the \fB\-l\fR option in order to
5220 link an Objective-C program.
5221 .IP "\fB\-nostartfiles\fR" 4
5222 .IX Item "-nostartfiles"
5223 Do not use the standard system startup files when linking.
5224 The standard system libraries are used normally, unless \fB\-nostdlib\fR
5225 or \fB\-nodefaultlibs\fR is used.
5226 .IP "\fB\-nodefaultlibs\fR" 4
5227 .IX Item "-nodefaultlibs"
5228 Do not use the standard system libraries when linking.
5229 Only the libraries you specify will be passed to the linker.
5230 The standard startup files are used normally, unless \fB\-nostartfiles\fR
5231 is used.  The compiler may generate calls to memcmp, memset, and memcpy
5232 for System V (and \s-1ISO\s0 C) environments or to bcopy and bzero for
5233 \&\s-1BSD\s0 environments.  These entries are usually resolved by entries in
5234 libc.  These entry points should be supplied through some other
5235 mechanism when this option is specified.
5236 .IP "\fB\-nostdlib\fR" 4
5237 .IX Item "-nostdlib"
5238 Do not use the standard system startup files or libraries when linking.
5239 No startup files and only the libraries you specify will be passed to
5240 the linker.  The compiler may generate calls to memcmp, memset, and memcpy
5241 for System V (and \s-1ISO\s0 C) environments or to bcopy and bzero for
5242 \&\s-1BSD\s0 environments.  These entries are usually resolved by entries in
5243 libc.  These entry points should be supplied through some other
5244 mechanism when this option is specified.
5245 .Sp
5246 One of the standard libraries bypassed by \fB\-nostdlib\fR and
5247 \&\fB\-nodefaultlibs\fR is \fIlibgcc.a\fR, a library of internal subroutines
5248 that \s-1GCC\s0 uses to overcome shortcomings of particular machines, or special
5249 needs for some languages.
5250 .Sp
5251 In most cases, you need \fIlibgcc.a\fR even when you want to avoid
5252 other standard libraries.  In other words, when you specify \fB\-nostdlib\fR
5253 or \fB\-nodefaultlibs\fR you should usually specify \fB\-lgcc\fR as well.
5254 This ensures that you have no unresolved references to internal \s-1GCC\s0
5255 library subroutines.  (For example, \fB_\|_main\fR, used to ensure \*(C+
5256 constructors will be called.)
5257 .IP "\fB\-pie\fR" 4
5258 .IX Item "-pie"
5259 Produce a position independent executable on targets which support it.
5260 For predictable results, you must also specify the same set of options
5261 that were used to generate code (\fB\-fpie\fR, \fB\-fPIE\fR,
5262 or model suboptions) when you specify this option.
5263 .IP "\fB\-s\fR" 4
5264 .IX Item "-s"
5265 Remove all symbol table and relocation information from the executable.
5266 .IP "\fB\-static\fR" 4
5267 .IX Item "-static"
5268 On systems that support dynamic linking, this prevents linking with the shared
5269 libraries.  On other systems, this option has no effect.
5270 .IP "\fB\-shared\fR" 4
5271 .IX Item "-shared"
5272 Produce a shared object which can then be linked with other objects to
5273 form an executable.  Not all systems support this option.  For predictable
5274 results, you must also specify the same set of options that were used to
5275 generate code (\fB\-fpic\fR, \fB\-fPIC\fR, or model suboptions)
5276 when you specify this option.[1]
5277 .IP "\fB\-shared\-libgcc\fR" 4
5278 .IX Item "-shared-libgcc"
5279 .PD 0
5280 .IP "\fB\-static\-libgcc\fR" 4
5281 .IX Item "-static-libgcc"
5282 .PD
5283 On systems that provide \fIlibgcc\fR as a shared library, these options
5284 force the use of either the shared or static version respectively.
5285 If no shared version of \fIlibgcc\fR was built when the compiler was
5286 configured, these options have no effect.
5287 .Sp
5288 There are several situations in which an application should use the
5289 shared \fIlibgcc\fR instead of the static version.  The most common
5290 of these is when the application wishes to throw and catch exceptions
5291 across different shared libraries.  In that case, each of the libraries
5292 as well as the application itself should use the shared \fIlibgcc\fR.
5293 .Sp
5294 Therefore, the G++ and \s-1GCJ\s0 drivers automatically add
5295 \&\fB\-shared\-libgcc\fR whenever you build a shared library or a main
5296 executable, because \*(C+ and Java programs typically use exceptions, so
5297 this is the right thing to do.
5298 .Sp
5299 If, instead, you use the \s-1GCC\s0 driver to create shared libraries, you may
5300 find that they will not always be linked with the shared \fIlibgcc\fR.
5301 If \s-1GCC\s0 finds, at its configuration time, that you have a non-GNU linker
5302 or a \s-1GNU\s0 linker that does not support option \fB\-\-eh\-frame\-hdr\fR,
5303 it will link the shared version of \fIlibgcc\fR into shared libraries
5304 by default.  Otherwise, it will take advantage of the linker and optimize
5305 away the linking with the shared version of \fIlibgcc\fR, linking with
5306 the static version of libgcc by default.  This allows exceptions to
5307 propagate through such shared libraries, without incurring relocation
5308 costs at library load time.
5309 .Sp
5310 However, if a library or main executable is supposed to throw or catch
5311 exceptions, you must link it using the G++ or \s-1GCJ\s0 driver, as appropriate
5312 for the languages used in the program, or using the option
5313 \&\fB\-shared\-libgcc\fR, such that it is linked with the shared
5314 \&\fIlibgcc\fR.
5315 .IP "\fB\-symbolic\fR" 4
5316 .IX Item "-symbolic"
5317 Bind references to global symbols when building a shared object.  Warn
5318 about any unresolved references (unless overridden by the link editor
5319 option \fB\-Xlinker \-z \-Xlinker defs\fR).  Only a few systems support
5320 this option.
5321 .IP "\fB\-Xlinker\fR \fIoption\fR" 4
5322 .IX Item "-Xlinker option"
5323 Pass \fIoption\fR as an option to the linker.  You can use this to
5324 supply system-specific linker options which \s-1GCC\s0 does not know how to
5325 recognize.
5326 .Sp
5327 If you want to pass an option that takes an argument, you must use
5328 \&\fB\-Xlinker\fR twice, once for the option and once for the argument.
5329 For example, to pass \fB\-assert definitions\fR, you must write
5330 \&\fB\-Xlinker \-assert \-Xlinker definitions\fR.  It does not work to write
5331 \&\fB\-Xlinker \*(L"\-assert definitions\*(R"\fR, because this passes the entire
5332 string as a single argument, which is not what the linker expects.
5333 .IP "\fB\-Wl,\fR\fIoption\fR" 4
5334 .IX Item "-Wl,option"
5335 Pass \fIoption\fR as an option to the linker.  If \fIoption\fR contains
5336 commas, it is split into multiple options at the commas.
5337 .IP "\fB\-u\fR \fIsymbol\fR" 4
5338 .IX Item "-u symbol"
5339 Pretend the symbol \fIsymbol\fR is undefined, to force linking of
5340 library modules to define it.  You can use \fB\-u\fR multiple times with
5341 different symbols to force loading of additional library modules.
5342 .Sh "Options for Directory Search"
5343 .IX Subsection "Options for Directory Search"
5344 These options specify directories to search for header files, for
5345 libraries and for parts of the compiler:
5346 .IP "\fB\-I\fR\fIdir\fR" 4
5347 .IX Item "-Idir"
5348 Add the directory \fIdir\fR to the head of the list of directories to be
5349 searched for header files.  This can be used to override a system header
5350 file, substituting your own version, since these directories are
5351 searched before the system header file directories.  However, you should
5352 not use this option to add directories that contain vendor-supplied
5353 system header files (use \fB\-isystem\fR for that).  If you use more than
5354 one \fB\-I\fR option, the directories are scanned in left-to-right
5355 order; the standard system directories come after.
5356 .Sp
5357 If a standard system include directory, or a directory specified with
5358 \&\fB\-isystem\fR, is also specified with \fB\-I\fR, the \fB\-I\fR
5359 option will be ignored.  The directory will still be searched but as a
5360 system directory at its normal position in the system include chain.
5361 This is to ensure that \s-1GCC\s0's procedure to fix buggy system headers and
5362 the ordering for the include_next directive are not inadvertently changed.
5363 If you really need to change the search order for system directories,
5364 use the \fB\-nostdinc\fR and/or \fB\-isystem\fR options.
5365 .IP "\fB\-I\-\fR" 4
5366 .IX Item "-I-"
5367 Any directories you specify with \fB\-I\fR options before the \fB\-I\-\fR
5368 option are searched only for the case of \fB#include "\fR\fIfile\fR\fB"\fR;
5369 they are not searched for \fB#include <\fR\fIfile\fR\fB>\fR.
5370 .Sp
5371 If additional directories are specified with \fB\-I\fR options after
5372 the \fB\-I\-\fR, these directories are searched for all \fB#include\fR
5373 directives.  (Ordinarily \fIall\fR \fB\-I\fR directories are used
5374 this way.)
5375 .Sp
5376 In addition, the \fB\-I\-\fR option inhibits the use of the current
5377 directory (where the current input file came from) as the first search
5378 directory for \fB#include "\fR\fIfile\fR\fB"\fR.  There is no way to
5379 override this effect of \fB\-I\-\fR.  With \fB\-I.\fR you can specify
5380 searching the directory which was current when the compiler was
5381 invoked.  That is not exactly the same as what the preprocessor does
5382 by default, but it is often satisfactory.
5383 .Sp
5384 \&\fB\-I\-\fR does not inhibit the use of the standard system directories
5385 for header files.  Thus, \fB\-I\-\fR and \fB\-nostdinc\fR are
5386 independent.
5387 .IP "\fB\-L\fR\fIdir\fR" 4
5388 .IX Item "-Ldir"
5389 Add directory \fIdir\fR to the list of directories to be searched
5390 for \fB\-l\fR.
5391 .IP "\fB\-B\fR\fIprefix\fR" 4
5392 .IX Item "-Bprefix"
5393 This option specifies where to find the executables, libraries,
5394 include files, and data files of the compiler itself.
5395 .Sp
5396 The compiler driver program runs one or more of the subprograms
5397 \&\fIcpp\fR, \fIcc1\fR, \fIas\fR and \fIld\fR.  It tries
5398 \&\fIprefix\fR as a prefix for each program it tries to run, both with and
5399 without \fImachine\fR\fB/\fR\fIversion\fR\fB/\fR.
5400 .Sp
5401 For each subprogram to be run, the compiler driver first tries the
5402 \&\fB\-B\fR prefix, if any.  If that name is not found, or if \fB\-B\fR
5403 was not specified, the driver tries two standard prefixes, which are
5404 \&\fI/usr/lib/gcc/\fR and \fI/usr/local/lib/gcc/\fR.  If neither of
5405 those results in a file name that is found, the unmodified program
5406 name is searched for using the directories specified in your
5407 \&\fB\s-1PATH\s0\fR environment variable.
5408 .Sp
5409 The compiler will check to see if the path provided by the \fB\-B\fR
5410 refers to a directory, and if necessary it will add a directory
5411 separator character at the end of the path.
5412 .Sp
5413 \&\fB\-B\fR prefixes that effectively specify directory names also apply
5414 to libraries in the linker, because the compiler translates these
5415 options into \fB\-L\fR options for the linker.  They also apply to
5416 includes files in the preprocessor, because the compiler translates these
5417 options into \fB\-isystem\fR options for the preprocessor.  In this case,
5418 the compiler appends \fBinclude\fR to the prefix.
5419 .Sp
5420 The run-time support file \fIlibgcc.a\fR can also be searched for using
5421 the \fB\-B\fR prefix, if needed.  If it is not found there, the two
5422 standard prefixes above are tried, and that is all.  The file is left
5423 out of the link if it is not found by those means.
5424 .Sp
5425 Another way to specify a prefix much like the \fB\-B\fR prefix is to use
5426 the environment variable \fB\s-1GCC_EXEC_PREFIX\s0\fR.  
5427 .Sp
5428 As a special kludge, if the path provided by \fB\-B\fR is
5429 \&\fI[dir/]stage\fIN\fI/\fR, where \fIN\fR is a number in the range 0 to
5430 9, then it will be replaced by \fI[dir/]include\fR.  This is to help
5431 with boot-strapping the compiler.
5432 .IP "\fB\-specs=\fR\fIfile\fR" 4
5433 .IX Item "-specs=file"
5434 Process \fIfile\fR after the compiler reads in the standard \fIspecs\fR
5435 file, in order to override the defaults that the \fIgcc\fR driver
5436 program uses when determining what switches to pass to \fIcc1\fR,
5437 \&\fIcc1plus\fR, \fIas\fR, \fIld\fR, etc.  More than one
5438 \&\fB\-specs=\fR\fIfile\fR can be specified on the command line, and they
5439 are processed in order, from left to right.
5440 .Sh "Specifying Target Machine and Compiler Version"
5441 .IX Subsection "Specifying Target Machine and Compiler Version"
5442 The usual way to run \s-1GCC\s0 is to run the executable called \fIgcc\fR, or
5443 \&\fI<machine>\-gcc\fR when cross\-compiling, or
5444 \&\fI<machine>\-gcc\-<version>\fR to run a version other than the one that
5445 was installed last.  Sometimes this is inconvenient, so \s-1GCC\s0 provides
5446 options that will switch to another cross-compiler or version.
5447 .IP "\fB\-b\fR \fImachine\fR" 4
5448 .IX Item "-b machine"
5449 The argument \fImachine\fR specifies the target machine for compilation.
5450 .Sp
5451 The value to use for \fImachine\fR is the same as was specified as the
5452 machine type when configuring \s-1GCC\s0 as a cross\-compiler.  For
5453 example, if a cross-compiler was configured with \fBconfigure
5454 i386v\fR, meaning to compile for an 80386 running System V, then you
5455 would specify \fB\-b i386v\fR to run that cross compiler.
5456 .IP "\fB\-V\fR \fIversion\fR" 4
5457 .IX Item "-V version"
5458 The argument \fIversion\fR specifies which version of \s-1GCC\s0 to run.
5459 This is useful when multiple versions are installed.  For example,
5460 \&\fIversion\fR might be \fB2.0\fR, meaning to run \s-1GCC\s0 version 2.0.
5461 .PP
5462 The \fB\-V\fR and \fB\-b\fR options work by running the
5463 \&\fI<machine>\-gcc\-<version>\fR executable, so there's no real reason to
5464 use them if you can just run that directly.
5465 .Sh "Hardware Models and Configurations"
5466 .IX Subsection "Hardware Models and Configurations"
5467 Earlier we discussed the standard option \fB\-b\fR which chooses among
5468 different installed compilers for completely different target
5469 machines, such as \s-1VAX\s0 vs. 68000 vs. 80386.
5470 .PP
5471 In addition, each of these target machine types can have its own
5472 special options, starting with \fB\-m\fR, to choose among various
5473 hardware models or configurations\-\-\-for example, 68010 vs 68020,
5474 floating coprocessor or none.  A single installed version of the
5475 compiler can compile for any model or configuration, according to the
5476 options specified.
5477 .PP
5478 Some configurations of the compiler also support additional special
5479 options, usually for compatibility with other compilers on the same
5480 platform.
5481 .PP
5482 These options are defined by the macro \f(CW\*(C`TARGET_SWITCHES\*(C'\fR in the
5483 machine description.  The default for the options is also defined by
5484 that macro, which enables you to change the defaults.
5485 .PP
5486 \fIM680x0 Options\fR
5487 .IX Subsection "M680x0 Options"
5488 .PP
5489 These are the \fB\-m\fR options defined for the 68000 series.  The default
5490 values for these options depends on which style of 68000 was selected when
5491 the compiler was configured; the defaults for the most common choices are
5492 given below.
5493 .IP "\fB\-m68000\fR" 4
5494 .IX Item "-m68000"
5495 .PD 0
5496 .IP "\fB\-mc68000\fR" 4
5497 .IX Item "-mc68000"
5498 .PD
5499 Generate output for a 68000.  This is the default
5500 when the compiler is configured for 68000\-based systems.
5501 .Sp
5502 Use this option for microcontrollers with a 68000 or \s-1EC000\s0 core,
5503 including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
5504 .IP "\fB\-m68020\fR" 4
5505 .IX Item "-m68020"
5506 .PD 0
5507 .IP "\fB\-mc68020\fR" 4
5508 .IX Item "-mc68020"
5509 .PD
5510 Generate output for a 68020.  This is the default
5511 when the compiler is configured for 68020\-based systems.
5512 .IP "\fB\-m68881\fR" 4
5513 .IX Item "-m68881"
5514 Generate output containing 68881 instructions for floating point.
5515 This is the default for most 68020 systems unless \fB\-\-nfp\fR was
5516 specified when the compiler was configured.
5517 .IP "\fB\-m68030\fR" 4
5518 .IX Item "-m68030"
5519 Generate output for a 68030.  This is the default when the compiler is
5520 configured for 68030\-based systems.
5521 .IP "\fB\-m68040\fR" 4
5522 .IX Item "-m68040"
5523 Generate output for a 68040.  This is the default when the compiler is
5524 configured for 68040\-based systems.
5525 .Sp
5526 This option inhibits the use of 68881/68882 instructions that have to be
5527 emulated by software on the 68040.  Use this option if your 68040 does not
5528 have code to emulate those instructions.
5529 .IP "\fB\-m68060\fR" 4
5530 .IX Item "-m68060"
5531 Generate output for a 68060.  This is the default when the compiler is
5532 configured for 68060\-based systems.
5533 .Sp
5534 This option inhibits the use of 68020 and 68881/68882 instructions that
5535 have to be emulated by software on the 68060.  Use this option if your 68060
5536 does not have code to emulate those instructions.
5537 .IP "\fB\-mcpu32\fR" 4
5538 .IX Item "-mcpu32"
5539 Generate output for a \s-1CPU32\s0.  This is the default
5540 when the compiler is configured for CPU32\-based systems.
5541 .Sp
5542 Use this option for microcontrollers with a
5543 \&\s-1CPU32\s0 or \s-1CPU32+\s0 core, including the 68330, 68331, 68332, 68333, 68334,
5544 68336, 68340, 68341, 68349 and 68360.
5545 .IP "\fB\-m5200\fR" 4
5546 .IX Item "-m5200"
5547 Generate output for a 520X ``coldfire'' family cpu.  This is the default
5548 when the compiler is configured for 520X\-based systems.
5549 .Sp
5550 Use this option for microcontroller with a 5200 core, including
5551 the \s-1MCF5202\s0, \s-1MCF5203\s0, \s-1MCF5204\s0 and \s-1MCF5202\s0.
5552 .IP "\fB\-m68020\-40\fR" 4
5553 .IX Item "-m68020-40"
5554 Generate output for a 68040, without using any of the new instructions.
5555 This results in code which can run relatively efficiently on either a
5556 68020/68881 or a 68030 or a 68040.  The generated code does use the
5557 68881 instructions that are emulated on the 68040.
5558 .IP "\fB\-m68020\-60\fR" 4
5559 .IX Item "-m68020-60"
5560 Generate output for a 68060, without using any of the new instructions.
5561 This results in code which can run relatively efficiently on either a
5562 68020/68881 or a 68030 or a 68040.  The generated code does use the
5563 68881 instructions that are emulated on the 68060.
5564 .IP "\fB\-msoft\-float\fR" 4
5565 .IX Item "-msoft-float"
5566 Generate output containing library calls for floating point.
5567 \&\fBWarning:\fR the requisite libraries are not available for all m68k
5568 targets.  Normally the facilities of the machine's usual C compiler are
5569 used, but this can't be done directly in cross\-compilation.  You must
5570 make your own arrangements to provide suitable library functions for
5571 cross\-compilation.  The embedded targets \fBm68k\-*\-aout\fR and
5572 \&\fBm68k\-*\-coff\fR do provide software floating point support.
5573 .IP "\fB\-mshort\fR" 4
5574 .IX Item "-mshort"
5575 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
5576 .IP "\fB\-mnobitfield\fR" 4
5577 .IX Item "-mnobitfield"
5578 Do not use the bit-field instructions.  The \fB\-m68000\fR, \fB\-mcpu32\fR
5579 and \fB\-m5200\fR options imply \fB\-mnobitfield\fR.
5580 .IP "\fB\-mbitfield\fR" 4
5581 .IX Item "-mbitfield"
5582 Do use the bit-field instructions.  The \fB\-m68020\fR option implies
5583 \&\fB\-mbitfield\fR.  This is the default if you use a configuration
5584 designed for a 68020.
5585 .IP "\fB\-mrtd\fR" 4
5586 .IX Item "-mrtd"
5587 Use a different function-calling convention, in which functions
5588 that take a fixed number of arguments return with the \f(CW\*(C`rtd\*(C'\fR
5589 instruction, which pops their arguments while returning.  This
5590 saves one instruction in the caller since there is no need to pop
5591 the arguments there.
5592 .Sp
5593 This calling convention is incompatible with the one normally
5594 used on Unix, so you cannot use it if you need to call libraries
5595 compiled with the Unix compiler.
5596 .Sp
5597 Also, you must provide function prototypes for all functions that
5598 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
5599 otherwise incorrect code will be generated for calls to those
5600 functions.
5601 .Sp
5602 In addition, seriously incorrect code will result if you call a
5603 function with too many arguments.  (Normally, extra arguments are
5604 harmlessly ignored.)
5605 .Sp
5606 The \f(CW\*(C`rtd\*(C'\fR instruction is supported by the 68010, 68020, 68030,
5607 68040, 68060 and \s-1CPU32\s0 processors, but not by the 68000 or 5200.
5608 .IP "\fB\-malign\-int\fR" 4
5609 .IX Item "-malign-int"
5610 .PD 0
5611 .IP "\fB\-mno\-align\-int\fR" 4
5612 .IX Item "-mno-align-int"
5613 .PD
5614 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,
5615 \&\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
5616 boundary (\fB\-malign\-int\fR) or a 16\-bit boundary (\fB\-mno\-align\-int\fR).
5617 Aligning variables on 32\-bit boundaries produces code that runs somewhat
5618 faster on processors with 32\-bit busses at the expense of more memory.
5619 .Sp
5620 \&\fBWarning:\fR if you use the \fB\-malign\-int\fR switch, \s-1GCC\s0 will
5621 align structures containing the above types  differently than
5622 most published application binary interface specifications for the m68k.
5623 .IP "\fB\-mpcrel\fR" 4
5624 .IX Item "-mpcrel"
5625 Use the pc-relative addressing mode of the 68000 directly, instead of
5626 using a global offset table.  At present, this option implies \fB\-fpic\fR,
5627 allowing at most a 16\-bit offset for pc-relative addressing.  \fB\-fPIC\fR is
5628 not presently supported with \fB\-mpcrel\fR, though this could be supported for
5629 68020 and higher processors.
5630 .IP "\fB\-mno\-strict\-align\fR" 4
5631 .IX Item "-mno-strict-align"
5632 .PD 0
5633 .IP "\fB\-mstrict\-align\fR" 4
5634 .IX Item "-mstrict-align"
5635 .PD
5636 Do not (do) assume that unaligned memory references will be handled by
5637 the system.
5638 .IP "\fB\-msep\-data\fR" 4
5639 .IX Item "-msep-data"
5640 Generate code that allows the data segment to be located in a different
5641 area of memory from the text segment.  This allows for execute in place in
5642 an environment without virtual memory management.  This option implies \-fPIC.
5643 .IP "\fB\-mno\-sep\-data\fR" 4
5644 .IX Item "-mno-sep-data"
5645 Generate code that assumes that the data segment follows the text segment.
5646 This is the default.
5647 .IP "\fB\-mid\-shared\-library\fR" 4
5648 .IX Item "-mid-shared-library"
5649 Generate code that supports shared libraries via the library \s-1ID\s0 method.
5650 This allows for execute in place and shared libraries in an environment
5651 without virtual memory management.  This option implies \-fPIC.
5652 .IP "\fB\-mno\-id\-shared\-library\fR" 4
5653 .IX Item "-mno-id-shared-library"
5654 Generate code that doesn't assume \s-1ID\s0 based shared libraries are being used.
5655 This is the default.
5656 .IP "\fB\-mshared\-library\-id=n\fR" 4
5657 .IX Item "-mshared-library-id=n"
5658 Specified the identification number of the \s-1ID\s0 based shared library being
5659 compiled.  Specifying a value of 0 will generate more compact code, specifying
5660 other values will force the allocation of that number to the current
5661 library but is no more space or time efficient than omitting this option.
5662 .PP
5663 \fIM68hc1x Options\fR
5664 .IX Subsection "M68hc1x Options"
5665 .PP
5666 These are the \fB\-m\fR options defined for the 68hc11 and 68hc12
5667 microcontrollers.  The default values for these options depends on
5668 which style of microcontroller was selected when the compiler was configured;
5669 the defaults for the most common choices are given below.
5670 .IP "\fB\-m6811\fR" 4
5671 .IX Item "-m6811"
5672 .PD 0
5673 .IP "\fB\-m68hc11\fR" 4
5674 .IX Item "-m68hc11"
5675 .PD
5676 Generate output for a 68HC11.  This is the default
5677 when the compiler is configured for 68HC11\-based systems.
5678 .IP "\fB\-m6812\fR" 4
5679 .IX Item "-m6812"
5680 .PD 0
5681 .IP "\fB\-m68hc12\fR" 4
5682 .IX Item "-m68hc12"
5683 .PD
5684 Generate output for a 68HC12.  This is the default
5685 when the compiler is configured for 68HC12\-based systems.
5686 .IP "\fB\-m68S12\fR" 4
5687 .IX Item "-m68S12"
5688 .PD 0
5689 .IP "\fB\-m68hcs12\fR" 4
5690 .IX Item "-m68hcs12"
5691 .PD
5692 Generate output for a 68HCS12.
5693 .IP "\fB\-mauto\-incdec\fR" 4
5694 .IX Item "-mauto-incdec"
5695 Enable the use of 68HC12 pre and post auto-increment and auto-decrement
5696 addressing modes.
5697 .IP "\fB\-minmax\fR" 4
5698 .IX Item "-minmax"
5699 .PD 0
5700 .IP "\fB\-nominmax\fR" 4
5701 .IX Item "-nominmax"
5702 .PD
5703 Enable the use of 68HC12 min and max instructions.
5704 .IP "\fB\-mlong\-calls\fR" 4
5705 .IX Item "-mlong-calls"
5706 .PD 0
5707 .IP "\fB\-mno\-long\-calls\fR" 4
5708 .IX Item "-mno-long-calls"
5709 .PD
5710 Treat all calls as being far away (near).  If calls are assumed to be
5711 far away, the compiler will use the \f(CW\*(C`call\*(C'\fR instruction to
5712 call a function and the \f(CW\*(C`rtc\*(C'\fR instruction for returning.
5713 .IP "\fB\-mshort\fR" 4
5714 .IX Item "-mshort"
5715 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
5716 .IP "\fB\-msoft\-reg\-count=\fR\fIcount\fR" 4
5717 .IX Item "-msoft-reg-count=count"
5718 Specify the number of pseudo-soft registers which are used for the
5719 code generation.  The maximum number is 32.  Using more pseudo-soft
5720 register may or may not result in better code depending on the program.
5721 The default is 4 for 68HC11 and 2 for 68HC12.
5722 .PP
5723 \fI\s-1VAX\s0 Options\fR
5724 .IX Subsection "VAX Options"
5725 .PP
5726 These \fB\-m\fR options are defined for the \s-1VAX:\s0
5727 .IP "\fB\-munix\fR" 4
5728 .IX Item "-munix"
5729 Do not output certain jump instructions (\f(CW\*(C`aobleq\*(C'\fR and so on)
5730 that the Unix assembler for the \s-1VAX\s0 cannot handle across long
5731 ranges.
5732 .IP "\fB\-mgnu\fR" 4
5733 .IX Item "-mgnu"
5734 Do output those jump instructions, on the assumption that you
5735 will assemble with the \s-1GNU\s0 assembler.
5736 .IP "\fB\-mg\fR" 4
5737 .IX Item "-mg"
5738 Output code for g\-format floating point numbers instead of d\-format.
5739 .PP
5740 \fI\s-1SPARC\s0 Options\fR
5741 .IX Subsection "SPARC Options"
5742 .PP
5743 These \fB\-m\fR options are supported on the \s-1SPARC:\s0
5744 .IP "\fB\-mno\-app\-regs\fR" 4
5745 .IX Item "-mno-app-regs"
5746 .PD 0
5747 .IP "\fB\-mapp\-regs\fR" 4
5748 .IX Item "-mapp-regs"
5749 .PD
5750 Specify \fB\-mapp\-regs\fR to generate output using the global registers
5751 2 through 4, which the \s-1SPARC\s0 \s-1SVR4\s0 \s-1ABI\s0 reserves for applications.  This
5752 is the default, except on Solaris.
5753 .Sp
5754 To be fully \s-1SVR4\s0 \s-1ABI\s0 compliant at the cost of some performance loss,
5755 specify \fB\-mno\-app\-regs\fR.  You should compile libraries and system
5756 software with this option.
5757 .IP "\fB\-mfpu\fR" 4
5758 .IX Item "-mfpu"
5759 .PD 0
5760 .IP "\fB\-mhard\-float\fR" 4
5761 .IX Item "-mhard-float"
5762 .PD
5763 Generate output containing floating point instructions.  This is the
5764 default.
5765 .IP "\fB\-mno\-fpu\fR" 4
5766 .IX Item "-mno-fpu"
5767 .PD 0
5768 .IP "\fB\-msoft\-float\fR" 4
5769 .IX Item "-msoft-float"
5770 .PD
5771 Generate output containing library calls for floating point.
5772 \&\fBWarning:\fR the requisite libraries are not available for all \s-1SPARC\s0
5773 targets.  Normally the facilities of the machine's usual C compiler are
5774 used, but this cannot be done directly in cross\-compilation.  You must make
5775 your own arrangements to provide suitable library functions for
5776 cross\-compilation.  The embedded targets \fBsparc\-*\-aout\fR and
5777 \&\fBsparclite\-*\-*\fR do provide software floating point support.
5778 .Sp
5779 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
5780 therefore, it is only useful if you compile \fIall\fR of a program with
5781 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
5782 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
5783 this to work.
5784 .IP "\fB\-mhard\-quad\-float\fR" 4
5785 .IX Item "-mhard-quad-float"
5786 Generate output containing quad-word (long double) floating point
5787 instructions.
5788 .IP "\fB\-msoft\-quad\-float\fR" 4
5789 .IX Item "-msoft-quad-float"
5790 Generate output containing library calls for quad-word (long double)
5791 floating point instructions.  The functions called are those specified
5792 in the \s-1SPARC\s0 \s-1ABI\s0.  This is the default.
5793 .Sp
5794 As of this writing, there are no \s-1SPARC\s0 implementations that have hardware
5795 support for the quad-word floating point instructions.  They all invoke
5796 a trap handler for one of these instructions, and then the trap handler
5797 emulates the effect of the instruction.  Because of the trap handler overhead,
5798 this is much slower than calling the \s-1ABI\s0 library routines.  Thus the
5799 \&\fB\-msoft\-quad\-float\fR option is the default.
5800 .IP "\fB\-mno\-flat\fR" 4
5801 .IX Item "-mno-flat"
5802 .PD 0
5803 .IP "\fB\-mflat\fR" 4
5804 .IX Item "-mflat"
5805 .PD
5806 With \fB\-mflat\fR, the compiler does not generate save/restore instructions
5807 and will use a ``flat'' or single register window calling convention.
5808 This model uses \f(CW%i7\fR as the frame pointer and is compatible with the normal
5809 register window model.  Code from either may be intermixed.
5810 The local registers and the input registers (0\-\-5) are still treated as
5811 ``call saved'' registers and will be saved on the stack as necessary.
5812 .Sp
5813 With \fB\-mno\-flat\fR (the default), the compiler emits save/restore
5814 instructions (except for leaf functions) and is the normal mode of operation.
5815 .Sp
5816 These options are deprecated and will be deleted in a future \s-1GCC\s0 release.
5817 .IP "\fB\-mno\-unaligned\-doubles\fR" 4
5818 .IX Item "-mno-unaligned-doubles"
5819 .PD 0
5820 .IP "\fB\-munaligned\-doubles\fR" 4
5821 .IX Item "-munaligned-doubles"
5822 .PD
5823 Assume that doubles have 8 byte alignment.  This is the default.
5824 .Sp
5825 With \fB\-munaligned\-doubles\fR, \s-1GCC\s0 assumes that doubles have 8 byte
5826 alignment only if they are contained in another type, or if they have an
5827 absolute address.  Otherwise, it assumes they have 4 byte alignment.
5828 Specifying this option avoids some rare compatibility problems with code
5829 generated by other compilers.  It is not the default because it results
5830 in a performance loss, especially for floating point code.
5831 .IP "\fB\-mno\-faster\-structs\fR" 4
5832 .IX Item "-mno-faster-structs"
5833 .PD 0
5834 .IP "\fB\-mfaster\-structs\fR" 4
5835 .IX Item "-mfaster-structs"
5836 .PD
5837 With \fB\-mfaster\-structs\fR, the compiler assumes that structures
5838 should have 8 byte alignment.  This enables the use of pairs of
5839 \&\f(CW\*(C`ldd\*(C'\fR and \f(CW\*(C`std\*(C'\fR instructions for copies in structure
5840 assignment, in place of twice as many \f(CW\*(C`ld\*(C'\fR and \f(CW\*(C`st\*(C'\fR pairs.
5841 However, the use of this changed alignment directly violates the \s-1SPARC\s0
5842 \&\s-1ABI\s0.  Thus, it's intended only for use on targets where the developer
5843 acknowledges that their resulting code will not be directly in line with
5844 the rules of the \s-1ABI\s0.
5845 .IP "\fB\-mimpure\-text\fR" 4
5846 .IX Item "-mimpure-text"
5847 \&\fB\-mimpure\-text\fR, used in addition to \fB\-shared\fR, tells
5848 the compiler to not pass \fB\-z text\fR to the linker when linking a
5849 shared object.  Using this option, you can link position-dependent
5850 code into a shared object.
5851 .Sp
5852 \&\fB\-mimpure\-text\fR suppresses the ``relocations remain against
5853 allocatable but non-writable sections'' linker error message.
5854 However, the necessary relocations will trigger copy\-on\-write, and the
5855 shared object is not actually shared across processes.  Instead of
5856 using \fB\-mimpure\-text\fR, you should compile all source code with
5857 \&\fB\-fpic\fR or \fB\-fPIC\fR.
5858 .Sp
5859 This option is only available on SunOS and Solaris.
5860 .IP "\fB\-mv8\fR" 4
5861 .IX Item "-mv8"
5862 .PD 0
5863 .IP "\fB\-msparclite\fR" 4
5864 .IX Item "-msparclite"
5865 .PD
5866 These two options select variations on the \s-1SPARC\s0 architecture.
5867 These options are deprecated and will be deleted in a future \s-1GCC\s0 release.
5868 They have been replaced with \fB\-mcpu=xxx\fR.
5869 .IP "\fB\-mcypress\fR" 4
5870 .IX Item "-mcypress"
5871 .PD 0
5872 .IP "\fB\-msupersparc\fR" 4
5873 .IX Item "-msupersparc"
5874 .IP "\fB\-mf930\fR" 4
5875 .IX Item "-mf930"
5876 .IP "\fB\-mf934\fR" 4
5877 .IX Item "-mf934"
5878 .PD
5879 These four options select the processor for which the code is optimized.
5880 These options are deprecated and will be deleted in a future \s-1GCC\s0 release.
5881 They have been replaced with \fB\-mcpu=xxx\fR.
5882 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
5883 .IX Item "-mcpu=cpu_type"
5884 Set the instruction set, register set, and instruction scheduling parameters
5885 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
5886 \&\fBv7\fR, \fBcypress\fR, \fBv8\fR, \fBsupersparc\fR, \fBsparclite\fR,
5887 \&\fBf930\fR, \fBf934\fR, \fBhypersparc\fR, \fBsparclite86x\fR,
5888 \&\fBsparclet\fR, \fBtsc701\fR, \fBv9\fR, \fBultrasparc\fR, and
5889 \&\fBultrasparc3\fR.
5890 .Sp
5891 Default instruction scheduling parameters are used for values that select
5892 an architecture and not an implementation.  These are \fBv7\fR, \fBv8\fR,
5893 \&\fBsparclite\fR, \fBsparclet\fR, \fBv9\fR.
5894 .Sp
5895 Here is a list of each supported architecture and their supported
5896 implementations.
5897 .Sp
5898 .Vb 5
5899 \&            v7:             cypress
5900 \&            v8:             supersparc, hypersparc
5901 \&            sparclite:      f930, f934, sparclite86x
5902 \&            sparclet:       tsc701
5903 \&            v9:             ultrasparc, ultrasparc3
5904 .Ve
5905 .Sp
5906 By default (unless configured otherwise), \s-1GCC\s0 generates code for the V7
5907 variant of the \s-1SPARC\s0 architecture.  With \fB\-mcpu=cypress\fR, the compiler
5908 additionally optimizes it for the Cypress \s-1CY7C602\s0 chip, as used in the
5909 SPARCStation/SPARCServer 3xx series.  This is also appropriate for the older
5910 SPARCStation 1, 2, \s-1IPX\s0 etc.
5911 .Sp
5912 With \fB\-mcpu=v8\fR, \s-1GCC\s0 generates code for the V8 variant of the \s-1SPARC\s0
5913 architecture.  The only difference from V7 code is that the compiler emits
5914 the integer multiply and integer divide instructions which exist in \s-1SPARC\-V8\s0
5915 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=supersparc\fR, the compiler additionally
5916 optimizes it for the SuperSPARC chip, as used in the SPARCStation 10, 1000 and
5917 2000 series.
5918 .Sp
5919 With \fB\-mcpu=sparclite\fR, \s-1GCC\s0 generates code for the SPARClite variant of
5920 the \s-1SPARC\s0 architecture.  This adds the integer multiply, integer divide step
5921 and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClite but not in \s-1SPARC\-V7\s0.
5922 With \fB\-mcpu=f930\fR, the compiler additionally optimizes it for the
5923 Fujitsu \s-1MB86930\s0 chip, which is the original SPARClite, with no \s-1FPU\s0.  With
5924 \&\fB\-mcpu=f934\fR, the compiler additionally optimizes it for the Fujitsu
5925 \&\s-1MB86934\s0 chip, which is the more recent SPARClite with \s-1FPU\s0.
5926 .Sp
5927 With \fB\-mcpu=sparclet\fR, \s-1GCC\s0 generates code for the SPARClet variant of
5928 the \s-1SPARC\s0 architecture.  This adds the integer multiply, multiply/accumulate,
5929 integer divide step and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClet
5930 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=tsc701\fR, the compiler additionally
5931 optimizes it for the \s-1TEMIC\s0 SPARClet chip.
5932 .Sp
5933 With \fB\-mcpu=v9\fR, \s-1GCC\s0 generates code for the V9 variant of the \s-1SPARC\s0
5934 architecture.  This adds 64\-bit integer and floating-point move instructions,
5935 3 additional floating-point condition code registers and conditional move
5936 instructions.  With \fB\-mcpu=ultrasparc\fR, the compiler additionally
5937 optimizes it for the Sun UltraSPARC I/II chips.  With
5938 \&\fB\-mcpu=ultrasparc3\fR, the compiler additionally optimizes it for the
5939 Sun UltraSPARC \s-1III\s0 chip.
5940 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
5941 .IX Item "-mtune=cpu_type"
5942 Set the instruction scheduling parameters for machine type
5943 \&\fIcpu_type\fR, but do not set the instruction set or register set that the
5944 option \fB\-mcpu=\fR\fIcpu_type\fR would.
5945 .Sp
5946 The same values for \fB\-mcpu=\fR\fIcpu_type\fR can be used for
5947 \&\fB\-mtune=\fR\fIcpu_type\fR, but the only useful values are those
5948 that select a particular cpu implementation.  Those are \fBcypress\fR,
5949 \&\fBsupersparc\fR, \fBhypersparc\fR, \fBf930\fR, \fBf934\fR,
5950 \&\fBsparclite86x\fR, \fBtsc701\fR, \fBultrasparc\fR, and
5951 \&\fBultrasparc3\fR.
5952 .IP "\fB\-mv8plus\fR" 4
5953 .IX Item "-mv8plus"
5954 .PD 0
5955 .IP "\fB\-mno\-v8plus\fR" 4
5956 .IX Item "-mno-v8plus"
5957 .PD
5958 With \fB\-mv8plus\fR, \s-1GCC\s0 generates code for the \s-1SPARC\-V8+\s0 \s-1ABI\s0.  The
5959 difference from the V8 \s-1ABI\s0 is that the global and out registers are
5960 considered 64\-bit wide.  This is enabled by default on Solaris in 32\-bit
5961 mode for all \s-1SPARC\-V9\s0 processors.
5962 .IP "\fB\-mvis\fR" 4
5963 .IX Item "-mvis"
5964 .PD 0
5965 .IP "\fB\-mno\-vis\fR" 4
5966 .IX Item "-mno-vis"
5967 .PD
5968 With \fB\-mvis\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
5969 Visual Instruction Set extensions.  The default is \fB\-mno\-vis\fR.
5970 .PP
5971 These \fB\-m\fR options are supported in addition to the above
5972 on \s-1SPARC\-V9\s0 processors in 64\-bit environments:
5973 .IP "\fB\-mlittle\-endian\fR" 4
5974 .IX Item "-mlittle-endian"
5975 Generate code for a processor running in little-endian mode. It is only
5976 available for a few configurations and most notably not on Solaris and Linux.
5977 .IP "\fB\-m32\fR" 4
5978 .IX Item "-m32"
5979 .PD 0
5980 .IP "\fB\-m64\fR" 4
5981 .IX Item "-m64"
5982 .PD
5983 Generate code for a 32\-bit or 64\-bit environment.
5984 The 32\-bit environment sets int, long and pointer to 32 bits.
5985 The 64\-bit environment sets int to 32 bits and long and pointer
5986 to 64 bits.
5987 .IP "\fB\-mcmodel=medlow\fR" 4
5988 .IX Item "-mcmodel=medlow"
5989 Generate code for the Medium/Low code model: 64\-bit addresses, programs
5990 must be linked in the low 32 bits of memory.  Programs can be statically
5991 or dynamically linked.
5992 .IP "\fB\-mcmodel=medmid\fR" 4
5993 .IX Item "-mcmodel=medmid"
5994 Generate code for the Medium/Middle code model: 64\-bit addresses, programs
5995 must be linked in the low 44 bits of memory, the text and data segments must
5996 be less than 2GB in size and the data segment must be located within 2GB of
5997 the text segment.
5998 .IP "\fB\-mcmodel=medany\fR" 4
5999 .IX Item "-mcmodel=medany"
6000 Generate code for the Medium/Anywhere code model: 64\-bit addresses, programs
6001 may be linked anywhere in memory, the text and data segments must be less
6002 than 2GB in size and the data segment must be located within 2GB of the
6003 text segment.
6004 .IP "\fB\-mcmodel=embmedany\fR" 4
6005 .IX Item "-mcmodel=embmedany"
6006 Generate code for the Medium/Anywhere code model for embedded systems:
6007 64\-bit addresses, the text and data segments must be less than 2GB in
6008 size, both starting anywhere in memory (determined at link time).  The
6009 global register \f(CW%g4\fR points to the base of the data segment.  Programs
6010 are statically linked and \s-1PIC\s0 is not supported.
6011 .IP "\fB\-mstack\-bias\fR" 4
6012 .IX Item "-mstack-bias"
6013 .PD 0
6014 .IP "\fB\-mno\-stack\-bias\fR" 4
6015 .IX Item "-mno-stack-bias"
6016 .PD
6017 With \fB\-mstack\-bias\fR, \s-1GCC\s0 assumes that the stack pointer, and
6018 frame pointer if present, are offset by \-2047 which must be added back
6019 when making stack frame references.  This is the default in 64\-bit mode.
6020 Otherwise, assume no such offset is present.
6021 .PP
6022 These switches are supported in addition to the above on Solaris:
6023 .IP "\fB\-threads\fR" 4
6024 .IX Item "-threads"
6025 Add support for multithreading using the Solaris threads library.  This
6026 option sets flags for both the preprocessor and linker.  This option does
6027 not affect the thread safety of object code produced by the compiler or
6028 that of libraries supplied with it.
6029 .IP "\fB\-pthreads\fR" 4
6030 .IX Item "-pthreads"
6031 Add support for multithreading using the \s-1POSIX\s0 threads library.  This
6032 option sets flags for both the preprocessor and linker.  This option does
6033 not affect the thread safety of object code produced  by the compiler or
6034 that of libraries supplied with it.
6035 .PP
6036 \fI\s-1ARM\s0 Options\fR
6037 .IX Subsection "ARM Options"
6038 .PP
6039 These \fB\-m\fR options are defined for Advanced \s-1RISC\s0 Machines (\s-1ARM\s0)
6040 architectures:
6041 .IP "\fB\-mapcs\-frame\fR" 4
6042 .IX Item "-mapcs-frame"
6043 Generate a stack frame that is compliant with the \s-1ARM\s0 Procedure Call
6044 Standard for all functions, even if this is not strictly necessary for
6045 correct execution of the code.  Specifying \fB\-fomit\-frame\-pointer\fR
6046 with this option will cause the stack frames not to be generated for
6047 leaf functions.  The default is \fB\-mno\-apcs\-frame\fR.
6048 .IP "\fB\-mapcs\fR" 4
6049 .IX Item "-mapcs"
6050 This is a synonym for \fB\-mapcs\-frame\fR.
6051 .IP "\fB\-mapcs\-26\fR" 4
6052 .IX Item "-mapcs-26"
6053 Generate code for a processor running with a 26\-bit program counter,
6054 and conforming to the function calling standards for the \s-1APCS\s0 26\-bit
6055 option.
6056 .Sp
6057 This option is deprecated.  Future releases of the \s-1GCC\s0 will only support
6058 generating code that runs in apcs\-32 mode.
6059 .IP "\fB\-mapcs\-32\fR" 4
6060 .IX Item "-mapcs-32"
6061 Generate code for a processor running with a 32\-bit program counter,
6062 and conforming to the function calling standards for the \s-1APCS\s0 32\-bit
6063 option.
6064 .Sp
6065 This flag is deprecated.  Future releases of \s-1GCC\s0 will make this flag
6066 unconditional.
6067 .IP "\fB\-mthumb\-interwork\fR" 4
6068 .IX Item "-mthumb-interwork"
6069 Generate code which supports calling between the \s-1ARM\s0 and Thumb
6070 instruction sets.  Without this option the two instruction sets cannot
6071 be reliably used inside one program.  The default is
6072 \&\fB\-mno\-thumb\-interwork\fR, since slightly larger code is generated
6073 when \fB\-mthumb\-interwork\fR is specified.
6074 .IP "\fB\-mno\-sched\-prolog\fR" 4
6075 .IX Item "-mno-sched-prolog"
6076 Prevent the reordering of instructions in the function prolog, or the
6077 merging of those instruction with the instructions in the function's
6078 body.  This means that all functions will start with a recognizable set
6079 of instructions (or in fact one of a choice from a small set of
6080 different function prologues), and this information can be used to
6081 locate the start if functions inside an executable piece of code.  The
6082 default is \fB\-msched\-prolog\fR.
6083 .IP "\fB\-mhard\-float\fR" 4
6084 .IX Item "-mhard-float"
6085 Generate output containing floating point instructions.  This is the
6086 default.
6087 .IP "\fB\-msoft\-float\fR" 4
6088 .IX Item "-msoft-float"
6089 Generate output containing library calls for floating point.
6090 \&\fBWarning:\fR the requisite libraries are not available for all \s-1ARM\s0
6091 targets.  Normally the facilities of the machine's usual C compiler are
6092 used, but this cannot be done directly in cross\-compilation.  You must make
6093 your own arrangements to provide suitable library functions for
6094 cross\-compilation.
6095 .Sp
6096 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
6097 therefore, it is only useful if you compile \fIall\fR of a program with
6098 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
6099 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
6100 this to work.
6101 .IP "\fB\-mlittle\-endian\fR" 4
6102 .IX Item "-mlittle-endian"
6103 Generate code for a processor running in little-endian mode.  This is
6104 the default for all standard configurations.
6105 .IP "\fB\-mbig\-endian\fR" 4
6106 .IX Item "-mbig-endian"
6107 Generate code for a processor running in big-endian mode; the default is
6108 to compile code for a little-endian processor.
6109 .IP "\fB\-mwords\-little\-endian\fR" 4
6110 .IX Item "-mwords-little-endian"
6111 This option only applies when generating code for big-endian processors.
6112 Generate code for a little-endian word order but a big-endian byte
6113 order.  That is, a byte order of the form \fB32107654\fR.  Note: this
6114 option should only be used if you require compatibility with code for
6115 big-endian \s-1ARM\s0 processors generated by versions of the compiler prior to
6116 2.8.
6117 .IP "\fB\-malignment\-traps\fR" 4
6118 .IX Item "-malignment-traps"
6119 Generate code that will not trap if the \s-1MMU\s0 has alignment traps enabled.
6120 On \s-1ARM\s0 architectures prior to ARMv4, there were no instructions to
6121 access half-word objects stored in memory.  However, when reading from
6122 memory a feature of the \s-1ARM\s0 architecture allows a word load to be used,
6123 even if the address is unaligned, and the processor core will rotate the
6124 data as it is being loaded.  This option tells the compiler that such
6125 misaligned accesses will cause a \s-1MMU\s0 trap and that it should instead
6126 synthesize the access as a series of byte accesses.  The compiler can
6127 still use word accesses to load half-word data if it knows that the
6128 address is aligned to a word boundary.
6129 .Sp
6130 This option has no effect when compiling for \s-1ARM\s0 architecture 4 or later,
6131 since these processors have instructions to directly access half-word
6132 objects in memory.
6133 .IP "\fB\-mno\-alignment\-traps\fR" 4
6134 .IX Item "-mno-alignment-traps"
6135 Generate code that assumes that the \s-1MMU\s0 will not trap unaligned
6136 accesses.  This produces better code when the target instruction set
6137 does not have half-word memory operations (i.e. implementations prior to
6138 ARMv4).
6139 .Sp
6140 Note that you cannot use this option to access unaligned word objects,
6141 since the processor will only fetch one 32\-bit aligned object from
6142 memory.
6143 .Sp
6144 The default setting is \fB\-malignment\-traps\fR, since this produces
6145 code that will also run on processors implementing \s-1ARM\s0 architecture
6146 version 6 or later.
6147 .Sp
6148 This option is deprecated and will be removed in the next release of \s-1GCC\s0.
6149 .IP "\fB\-mcpu=\fR\fIname\fR" 4
6150 .IX Item "-mcpu=name"
6151 This specifies the name of the target \s-1ARM\s0 processor.  \s-1GCC\s0 uses this name
6152 to determine what kind of instructions it can emit when generating
6153 assembly code.  Permissible names are: \fBarm2\fR, \fBarm250\fR,
6154 \&\fBarm3\fR, \fBarm6\fR, \fBarm60\fR, \fBarm600\fR, \fBarm610\fR,
6155 \&\fBarm620\fR, \fBarm7\fR, \fBarm7m\fR, \fBarm7d\fR, \fBarm7dm\fR,
6156 \&\fBarm7di\fR, \fBarm7dmi\fR, \fBarm70\fR, \fBarm700\fR,
6157 \&\fBarm700i\fR, \fBarm710\fR, \fBarm710c\fR, \fBarm7100\fR,
6158 \&\fBarm7500\fR, \fBarm7500fe\fR, \fBarm7tdmi\fR, \fBarm8\fR,
6159 \&\fBstrongarm\fR, \fBstrongarm110\fR, \fBstrongarm1100\fR,
6160 \&\fBarm8\fR, \fBarm810\fR, \fBarm9\fR, \fBarm9e\fR, \fBarm920\fR,
6161 \&\fBarm920t\fR, \fBarm926ejs\fR, \fBarm940t\fR, \fBarm9tdmi\fR,
6162 \&\fBarm10tdmi\fR, \fBarm1020t\fR, \fBarm1026ejs\fR,
6163 \&\fBarm1136js\fR, \fBarm1136jfs\fR ,\fBxscale\fR, \fBiwmmxt\fR,
6164 \&\fBep9312\fR.
6165 .IP "\fB\-mtune=\fR\fIname\fR" 4
6166 .IX Item "-mtune=name"
6167 This option is very similar to the \fB\-mcpu=\fR option, except that
6168 instead of specifying the actual target processor type, and hence
6169 restricting which instructions can be used, it specifies that \s-1GCC\s0 should
6170 tune the performance of the code as if the target were of the type
6171 specified in this option, but still choosing the instructions that it
6172 will generate based on the cpu specified by a \fB\-mcpu=\fR option.
6173 For some \s-1ARM\s0 implementations better performance can be obtained by using
6174 this option.
6175 .IP "\fB\-march=\fR\fIname\fR" 4
6176 .IX Item "-march=name"
6177 This specifies the name of the target \s-1ARM\s0 architecture.  \s-1GCC\s0 uses this
6178 name to determine what kind of instructions it can emit when generating
6179 assembly code.  This option can be used in conjunction with or instead
6180 of the \fB\-mcpu=\fR option.  Permissible names are: \fBarmv2\fR,
6181 \&\fBarmv2a\fR, \fBarmv3\fR, \fBarmv3m\fR, \fBarmv4\fR, \fBarmv4t\fR,
6182 \&\fBarmv5\fR, \fBarmv5t\fR, \fBarmv5te\fR, \fBarmv6j\fR,
6183 \&\fBiwmmxt\fR, \fBep9312\fR.
6184 .IP "\fB\-mfpe=\fR\fInumber\fR" 4
6185 .IX Item "-mfpe=number"
6186 .PD 0
6187 .IP "\fB\-mfp=\fR\fInumber\fR" 4
6188 .IX Item "-mfp=number"
6189 .PD
6190 This specifies the version of the floating point emulation available on
6191 the target.  Permissible values are 2 and 3.  \fB\-mfp=\fR is a synonym
6192 for \fB\-mfpe=\fR, for compatibility with older versions of \s-1GCC\s0.
6193 .IP "\fB\-mstructure\-size\-boundary=\fR\fIn\fR" 4
6194 .IX Item "-mstructure-size-boundary=n"
6195 The size of all structures and unions will be rounded up to a multiple
6196 of the number of bits set by this option.  Permissible values are 8 and
6197 32.  The default value varies for different toolchains.  For the \s-1COFF\s0
6198 targeted toolchain the default value is 8.  Specifying the larger number
6199 can produce faster, more efficient code, but can also increase the size
6200 of the program.  The two values are potentially incompatible.  Code
6201 compiled with one value cannot necessarily expect to work with code or
6202 libraries compiled with the other value, if they exchange information
6203 using structures or unions.
6204 .IP "\fB\-mabort\-on\-noreturn\fR" 4
6205 .IX Item "-mabort-on-noreturn"
6206 Generate a call to the function \f(CW\*(C`abort\*(C'\fR at the end of a
6207 \&\f(CW\*(C`noreturn\*(C'\fR function.  It will be executed if the function tries to
6208 return.
6209 .IP "\fB\-mlong\-calls\fR" 4
6210 .IX Item "-mlong-calls"
6211 .PD 0
6212 .IP "\fB\-mno\-long\-calls\fR" 4
6213 .IX Item "-mno-long-calls"
6214 .PD
6215 Tells the compiler to perform function calls by first loading the
6216 address of the function into a register and then performing a subroutine
6217 call on this register.  This switch is needed if the target function
6218 will lie outside of the 64 megabyte addressing range of the offset based
6219 version of subroutine call instruction.
6220 .Sp
6221 Even if this switch is enabled, not all function calls will be turned
6222 into long calls.  The heuristic is that static functions, functions
6223 which have the \fBshort-call\fR attribute, functions that are inside
6224 the scope of a \fB#pragma no_long_calls\fR directive and functions whose
6225 definitions have already been compiled within the current compilation
6226 unit, will not be turned into long calls.  The exception to this rule is
6227 that weak function definitions, functions with the \fBlong-call\fR
6228 attribute or the \fBsection\fR attribute, and functions that are within
6229 the scope of a \fB#pragma long_calls\fR directive, will always be
6230 turned into long calls.
6231 .Sp
6232 This feature is not enabled by default.  Specifying
6233 \&\fB\-mno\-long\-calls\fR will restore the default behavior, as will
6234 placing the function calls within the scope of a \fB#pragma
6235 long_calls_off\fR directive.  Note these switches have no effect on how
6236 the compiler generates code to handle function calls via function
6237 pointers.
6238 .IP "\fB\-mnop\-fun\-dllimport\fR" 4
6239 .IX Item "-mnop-fun-dllimport"
6240 Disable support for the \f(CW\*(C`dllimport\*(C'\fR attribute.
6241 .IP "\fB\-msingle\-pic\-base\fR" 4
6242 .IX Item "-msingle-pic-base"
6243 Treat the register used for \s-1PIC\s0 addressing as read\-only, rather than
6244 loading it in the prologue for each function.  The run-time system is
6245 responsible for initializing this register with an appropriate value
6246 before execution begins.
6247 .IP "\fB\-mpic\-register=\fR\fIreg\fR" 4
6248 .IX Item "-mpic-register=reg"
6249 Specify the register to be used for \s-1PIC\s0 addressing.  The default is R10
6250 unless stack-checking is enabled, when R9 is used.
6251 .IP "\fB\-mcirrus\-fix\-invalid\-insns\fR" 4
6252 .IX Item "-mcirrus-fix-invalid-insns"
6253 Insert NOPs into the instruction stream to in order to work around
6254 problems with invalid Maverick instruction combinations.  This option
6255 is only valid if the \fB\-mcpu=ep9312\fR option has been used to
6256 enable generation of instructions for the Cirrus Maverick floating
6257 point co\-processor.  This option is not enabled by default, since the
6258 problem is only present in older Maverick implementations.  The default
6259 can be re-enabled by use of the \fB\-mno\-cirrus\-fix\-invalid\-insns\fR
6260 switch.
6261 .IP "\fB\-mpoke\-function\-name\fR" 4
6262 .IX Item "-mpoke-function-name"
6263 Write the name of each function into the text section, directly
6264 preceding the function prologue.  The generated code is similar to this:
6265 .Sp
6266 .Vb 9
6267 \&             t0
6268 \&                 .ascii "arm_poke_function_name", 0
6269 \&                 .align
6270 \&             t1
6271 \&                 .word 0xff000000 + (t1 - t0)
6272 \&             arm_poke_function_name
6273 \&                 mov     ip, sp
6274 \&                 stmfd   sp!, {fp, ip, lr, pc}
6275 \&                 sub     fp, ip, #4
6276 .Ve
6277 .Sp
6278 When performing a stack backtrace, code can inspect the value of
6279 \&\f(CW\*(C`pc\*(C'\fR stored at \f(CW\*(C`fp + 0\*(C'\fR.  If the trace function then looks at
6280 location \f(CW\*(C`pc \- 12\*(C'\fR and the top 8 bits are set, then we know that
6281 there is a function name embedded immediately preceding this location
6282 and has length \f(CW\*(C`((pc[\-3]) & 0xff000000)\*(C'\fR.
6283 .IP "\fB\-mthumb\fR" 4
6284 .IX Item "-mthumb"
6285 Generate code for the 16\-bit Thumb instruction set.  The default is to
6286 use the 32\-bit \s-1ARM\s0 instruction set.
6287 .IP "\fB\-mtpcs\-frame\fR" 4
6288 .IX Item "-mtpcs-frame"
6289 Generate a stack frame that is compliant with the Thumb Procedure Call
6290 Standard for all non-leaf functions.  (A leaf function is one that does
6291 not call any other functions.)  The default is \fB\-mno\-tpcs\-frame\fR.
6292 .IP "\fB\-mtpcs\-leaf\-frame\fR" 4
6293 .IX Item "-mtpcs-leaf-frame"
6294 Generate a stack frame that is compliant with the Thumb Procedure Call
6295 Standard for all leaf functions.  (A leaf function is one that does
6296 not call any other functions.)  The default is \fB\-mno\-apcs\-leaf\-frame\fR.
6297 .IP "\fB\-mcallee\-super\-interworking\fR" 4
6298 .IX Item "-mcallee-super-interworking"
6299 Gives all externally visible functions in the file being compiled an \s-1ARM\s0
6300 instruction set header which switches to Thumb mode before executing the
6301 rest of the function.  This allows these functions to be called from
6302 non-interworking code.
6303 .IP "\fB\-mcaller\-super\-interworking\fR" 4
6304 .IX Item "-mcaller-super-interworking"
6305 Allows calls via function pointers (including virtual functions) to
6306 execute correctly regardless of whether the target code has been
6307 compiled for interworking or not.  There is a small overhead in the cost
6308 of executing a function pointer if this option is enabled.
6309 .PP
6310 \fI\s-1MN10300\s0 Options\fR
6311 .IX Subsection "MN10300 Options"
6312 .PP
6313 These \fB\-m\fR options are defined for Matsushita \s-1MN10300\s0 architectures:
6314 .IP "\fB\-mmult\-bug\fR" 4
6315 .IX Item "-mmult-bug"
6316 Generate code to avoid bugs in the multiply instructions for the \s-1MN10300\s0
6317 processors.  This is the default.
6318 .IP "\fB\-mno\-mult\-bug\fR" 4
6319 .IX Item "-mno-mult-bug"
6320 Do not generate code to avoid bugs in the multiply instructions for the
6321 \&\s-1MN10300\s0 processors.
6322 .IP "\fB\-mam33\fR" 4
6323 .IX Item "-mam33"
6324 Generate code which uses features specific to the \s-1AM33\s0 processor.
6325 .IP "\fB\-mno\-am33\fR" 4
6326 .IX Item "-mno-am33"
6327 Do not generate code which uses features specific to the \s-1AM33\s0 processor.  This
6328 is the default.
6329 .IP "\fB\-mno\-crt0\fR" 4
6330 .IX Item "-mno-crt0"
6331 Do not link in the C run-time initialization object file.
6332 .IP "\fB\-mrelax\fR" 4
6333 .IX Item "-mrelax"
6334 Indicate to the linker that it should perform a relaxation optimization pass
6335 to shorten branches, calls and absolute memory addresses.  This option only
6336 has an effect when used on the command line for the final link step.
6337 .Sp
6338 This option makes symbolic debugging impossible.
6339 .PP
6340 \fIM32R/D Options\fR
6341 .IX Subsection "M32R/D Options"
6342 .PP
6343 These \fB\-m\fR options are defined for Renesas M32R/D architectures:
6344 .IP "\fB\-m32r2\fR" 4
6345 .IX Item "-m32r2"
6346 Generate code for the M32R/2.
6347 .IP "\fB\-m32rx\fR" 4
6348 .IX Item "-m32rx"
6349 Generate code for the M32R/X.
6350 .IP "\fB\-m32r\fR" 4
6351 .IX Item "-m32r"
6352 Generate code for the M32R.  This is the default.
6353 .IP "\fB\-mmodel=small\fR" 4
6354 .IX Item "-mmodel=small"
6355 Assume all objects live in the lower 16MB of memory (so that their addresses
6356 can be loaded with the \f(CW\*(C`ld24\*(C'\fR instruction), and assume all subroutines
6357 are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
6358 This is the default.
6359 .Sp
6360 The addressability of a particular object can be set with the
6361 \&\f(CW\*(C`model\*(C'\fR attribute.
6362 .IP "\fB\-mmodel=medium\fR" 4
6363 .IX Item "-mmodel=medium"
6364 Assume objects may be anywhere in the 32\-bit address space (the compiler
6365 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
6366 assume all subroutines are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
6367 .IP "\fB\-mmodel=large\fR" 4
6368 .IX Item "-mmodel=large"
6369 Assume objects may be anywhere in the 32\-bit address space (the compiler
6370 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
6371 assume subroutines may not be reachable with the \f(CW\*(C`bl\*(C'\fR instruction
6372 (the compiler will generate the much slower \f(CW\*(C`seth/add3/jl\*(C'\fR
6373 instruction sequence).
6374 .IP "\fB\-msdata=none\fR" 4
6375 .IX Item "-msdata=none"
6376 Disable use of the small data area.  Variables will be put into
6377 one of \fB.data\fR, \fBbss\fR, or \fB.rodata\fR (unless the
6378 \&\f(CW\*(C`section\*(C'\fR attribute has been specified).
6379 This is the default.
6380 .Sp
6381 The small data area consists of sections \fB.sdata\fR and \fB.sbss\fR.
6382 Objects may be explicitly put in the small data area with the
6383 \&\f(CW\*(C`section\*(C'\fR attribute using one of these sections.
6384 .IP "\fB\-msdata=sdata\fR" 4
6385 .IX Item "-msdata=sdata"
6386 Put small global and static data in the small data area, but do not
6387 generate special code to reference them.
6388 .IP "\fB\-msdata=use\fR" 4
6389 .IX Item "-msdata=use"
6390 Put small global and static data in the small data area, and generate
6391 special instructions to reference them.
6392 .IP "\fB\-G\fR \fInum\fR" 4
6393 .IX Item "-G num"
6394 Put global and static objects less than or equal to \fInum\fR bytes
6395 into the small data or bss sections instead of the normal data or bss
6396 sections.  The default value of \fInum\fR is 8.
6397 The \fB\-msdata\fR option must be set to one of \fBsdata\fR or \fBuse\fR
6398 for this option to have any effect.
6399 .Sp
6400 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
6401 Compiling with different values of \fInum\fR may or may not work; if it
6402 doesn't the linker will give an error message\-\-\-incorrect code will not be
6403 generated.
6404 .IP "\fB\-mdebug\fR" 4
6405 .IX Item "-mdebug"
6406 Makes the M32R specific code in the compiler display some statistics
6407 that might help in debugging programs.
6408 .IP "\fB\-malign\-loops\fR" 4
6409 .IX Item "-malign-loops"
6410 Align all loops to a 32\-byte boundary.
6411 .IP "\fB\-mno\-align\-loops\fR" 4
6412 .IX Item "-mno-align-loops"
6413 Do not enforce a 32\-byte alignment for loops.  This is the default.
6414 .IP "\fB\-missue\-rate=\fR\fInumber\fR" 4
6415 .IX Item "-missue-rate=number"
6416 Issue \fInumber\fR instructions per cycle.  \fInumber\fR can only be 1
6417 or 2.
6418 .IP "\fB\-mbranch\-cost=\fR\fInumber\fR" 4
6419 .IX Item "-mbranch-cost=number"
6420 \&\fInumber\fR can only be 1 or 2.  If it is 1 then branches will be
6421 preferred over conditional code, if it is 2, then the opposite will
6422 apply.
6423 .IP "\fB\-mflush\-trap=\fR\fInumber\fR" 4
6424 .IX Item "-mflush-trap=number"
6425 Specifies the trap number to use to flush the cache.  The default is
6426 12.  Valid numbers are between 0 and 15 inclusive.
6427 .IP "\fB\-mno\-flush\-trap\fR" 4
6428 .IX Item "-mno-flush-trap"
6429 Specifies that the cache cannot be flushed by using a trap.
6430 .IP "\fB\-mflush\-func=\fR\fIname\fR" 4
6431 .IX Item "-mflush-func=name"
6432 Specifies the name of the operating system function to call to flush
6433 the cache.  The default is \fI_flush_cache\fR, but a function call
6434 will only be used if a trap is not available.
6435 .IP "\fB\-mno\-flush\-func\fR" 4
6436 .IX Item "-mno-flush-func"
6437 Indicates that there is no \s-1OS\s0 function for flushing the cache.
6438 .PP
6439 \fI\s-1IBM\s0 \s-1RS/6000\s0 and PowerPC Options\fR
6440 .IX Subsection "IBM RS/6000 and PowerPC Options"
6441 .PP
6442 These \fB\-m\fR options are defined for the \s-1IBM\s0 \s-1RS/6000\s0 and PowerPC:
6443 .IP "\fB\-mpower\fR" 4
6444 .IX Item "-mpower"
6445 .PD 0
6446 .IP "\fB\-mno\-power\fR" 4
6447 .IX Item "-mno-power"
6448 .IP "\fB\-mpower2\fR" 4
6449 .IX Item "-mpower2"
6450 .IP "\fB\-mno\-power2\fR" 4
6451 .IX Item "-mno-power2"
6452 .IP "\fB\-mpowerpc\fR" 4
6453 .IX Item "-mpowerpc"
6454 .IP "\fB\-mno\-powerpc\fR" 4
6455 .IX Item "-mno-powerpc"
6456 .IP "\fB\-mpowerpc\-gpopt\fR" 4
6457 .IX Item "-mpowerpc-gpopt"
6458 .IP "\fB\-mno\-powerpc\-gpopt\fR" 4
6459 .IX Item "-mno-powerpc-gpopt"
6460 .IP "\fB\-mpowerpc\-gfxopt\fR" 4
6461 .IX Item "-mpowerpc-gfxopt"
6462 .IP "\fB\-mno\-powerpc\-gfxopt\fR" 4
6463 .IX Item "-mno-powerpc-gfxopt"
6464 .IP "\fB\-mpowerpc64\fR" 4
6465 .IX Item "-mpowerpc64"
6466 .IP "\fB\-mno\-powerpc64\fR" 4
6467 .IX Item "-mno-powerpc64"
6468 .PD
6469 \&\s-1GCC\s0 supports two related instruction set architectures for the
6470 \&\s-1RS/6000\s0 and PowerPC.  The \fI\s-1POWER\s0\fR instruction set are those
6471 instructions supported by the \fBrios\fR chip set used in the original
6472 \&\s-1RS/6000\s0 systems and the \fIPowerPC\fR instruction set is the
6473 architecture of the Motorola MPC5xx, MPC6xx, MPC8xx microprocessors, and
6474 the \s-1IBM\s0 4xx microprocessors.
6475 .Sp
6476 Neither architecture is a subset of the other.  However there is a
6477 large common subset of instructions supported by both.  An \s-1MQ\s0
6478 register is included in processors supporting the \s-1POWER\s0 architecture.
6479 .Sp
6480 You use these options to specify which instructions are available on the
6481 processor you are using.  The default value of these options is
6482 determined when configuring \s-1GCC\s0.  Specifying the
6483 \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
6484 options.  We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
6485 rather than the options listed above.
6486 .Sp
6487 The \fB\-mpower\fR option allows \s-1GCC\s0 to generate instructions that
6488 are found only in the \s-1POWER\s0 architecture and to use the \s-1MQ\s0 register.
6489 Specifying \fB\-mpower2\fR implies \fB\-power\fR and also allows \s-1GCC\s0
6490 to generate instructions that are present in the \s-1POWER2\s0 architecture but
6491 not the original \s-1POWER\s0 architecture.
6492 .Sp
6493 The \fB\-mpowerpc\fR option allows \s-1GCC\s0 to generate instructions that
6494 are found only in the 32\-bit subset of the PowerPC architecture.
6495 Specifying \fB\-mpowerpc\-gpopt\fR implies \fB\-mpowerpc\fR and also allows
6496 \&\s-1GCC\s0 to use the optional PowerPC architecture instructions in the
6497 General Purpose group, including floating-point square root.  Specifying
6498 \&\fB\-mpowerpc\-gfxopt\fR implies \fB\-mpowerpc\fR and also allows \s-1GCC\s0 to
6499 use the optional PowerPC architecture instructions in the Graphics
6500 group, including floating-point select.
6501 .Sp
6502 The \fB\-mpowerpc64\fR option allows \s-1GCC\s0 to generate the additional
6503 64\-bit instructions that are found in the full PowerPC64 architecture
6504 and to treat GPRs as 64\-bit, doubleword quantities.  \s-1GCC\s0 defaults to
6505 \&\fB\-mno\-powerpc64\fR.
6506 .Sp
6507 If you specify both \fB\-mno\-power\fR and \fB\-mno\-powerpc\fR, \s-1GCC\s0
6508 will use only the instructions in the common subset of both
6509 architectures plus some special \s-1AIX\s0 common-mode calls, and will not use
6510 the \s-1MQ\s0 register.  Specifying both \fB\-mpower\fR and \fB\-mpowerpc\fR
6511 permits \s-1GCC\s0 to use any instruction from either architecture and to
6512 allow use of the \s-1MQ\s0 register; specify this for the Motorola \s-1MPC601\s0.
6513 .IP "\fB\-mnew\-mnemonics\fR" 4
6514 .IX Item "-mnew-mnemonics"
6515 .PD 0
6516 .IP "\fB\-mold\-mnemonics\fR" 4
6517 .IX Item "-mold-mnemonics"
6518 .PD
6519 Select which mnemonics to use in the generated assembler code.  With
6520 \&\fB\-mnew\-mnemonics\fR, \s-1GCC\s0 uses the assembler mnemonics defined for
6521 the PowerPC architecture.  With \fB\-mold\-mnemonics\fR it uses the
6522 assembler mnemonics defined for the \s-1POWER\s0 architecture.  Instructions
6523 defined in only one architecture have only one mnemonic; \s-1GCC\s0 uses that
6524 mnemonic irrespective of which of these options is specified.
6525 .Sp
6526 \&\s-1GCC\s0 defaults to the mnemonics appropriate for the architecture in
6527 use.  Specifying \fB\-mcpu=\fR\fIcpu_type\fR sometimes overrides the
6528 value of these option.  Unless you are building a cross\-compiler, you
6529 should normally not specify either \fB\-mnew\-mnemonics\fR or
6530 \&\fB\-mold\-mnemonics\fR, but should instead accept the default.
6531 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
6532 .IX Item "-mcpu=cpu_type"
6533 Set architecture type, register usage, choice of mnemonics, and
6534 instruction scheduling parameters for machine type \fIcpu_type\fR.
6535 Supported values for \fIcpu_type\fR are \fB401\fR, \fB403\fR,
6536 \&\fB405\fR, \fB405fp\fR, \fB440\fR, \fB440fp\fR, \fB505\fR,
6537 \&\fB601\fR, \fB602\fR, \fB603\fR, \fB603e\fR, \fB604\fR,
6538 \&\fB604e\fR, \fB620\fR, \fB630\fR, \fB740\fR, \fB7400\fR,
6539 \&\fB7450\fR, \fB750\fR, \fB801\fR, \fB821\fR, \fB823\fR,
6540 \&\fB860\fR, \fB970\fR, \fB8540\fR, \fBcommon\fR, \fBec603e\fR, \fBG3\fR,
6541 \&\fBG4\fR, \fBG5\fR, \fBpower\fR, \fBpower2\fR, \fBpower3\fR,
6542 \&\fBpower4\fR, \fBpower5\fR, \fBpowerpc\fR, \fBpowerpc64\fR,
6543 \&\fBrios\fR, \fBrios1\fR, \fBrios2\fR, \fBrsc\fR, and \fBrs64a\fR.
6544 .Sp
6545 \&\fB\-mcpu=common\fR selects a completely generic processor.  Code
6546 generated under this option will run on any \s-1POWER\s0 or PowerPC processor.
6547 \&\s-1GCC\s0 will use only the instructions in the common subset of both
6548 architectures, and will not use the \s-1MQ\s0 register.  \s-1GCC\s0 assumes a generic
6549 processor model for scheduling purposes.
6550 .Sp
6551 \&\fB\-mcpu=power\fR, \fB\-mcpu=power2\fR, \fB\-mcpu=powerpc\fR, and
6552 \&\fB\-mcpu=powerpc64\fR specify generic \s-1POWER\s0, \s-1POWER2\s0, pure 32\-bit
6553 PowerPC (i.e., not \s-1MPC601\s0), and 64\-bit PowerPC architecture machine
6554 types, with an appropriate, generic processor model assumed for
6555 scheduling purposes.
6556 .Sp
6557 The other options specify a specific processor.  Code generated under
6558 those options will run best on that processor, and may not run at all on
6559 others.
6560 .Sp
6561 The \fB\-mcpu\fR options automatically enable or disable the
6562 following options: \fB\-maltivec\fR, \fB\-mhard\-float\fR,
6563 \&\fB\-mmfcrf\fR, \fB\-mmultiple\fR, \fB\-mnew\-mnemonics\fR,
6564 \&\fB\-mpower\fR, \fB\-mpower2\fR, \fB\-mpowerpc64\fR,
6565 \&\fB\-mpowerpc\-gpopt\fR, \fB\-mpowerpc\-gfxopt\fR,
6566 \&\fB\-mstring\fR.  The particular options set for any particular \s-1CPU\s0
6567 will vary between compiler versions, depending on what setting seems
6568 to produce optimal code for that \s-1CPU\s0; it doesn't necessarily reflect
6569 the actual hardware's capabilities.  If you wish to set an individual
6570 option to a particular value, you may specify it after the
6571 \&\fB\-mcpu\fR option, like \fB\-mcpu=970 \-mno\-altivec\fR.
6572 .Sp
6573 On \s-1AIX\s0, the \fB\-maltivec\fR and \fB\-mpowerpc64\fR options are
6574 not enabled or disabled by the \fB\-mcpu\fR option at present, since
6575 \&\s-1AIX\s0 does not have full support for these options.  You may still
6576 enable or disable them individually if you're sure it'll work in your
6577 environment.
6578 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
6579 .IX Item "-mtune=cpu_type"
6580 Set the instruction scheduling parameters for machine type
6581 \&\fIcpu_type\fR, but do not set the architecture type, register usage, or
6582 choice of mnemonics, as \fB\-mcpu=\fR\fIcpu_type\fR would.  The same
6583 values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
6584 \&\fB\-mcpu\fR.  If both are specified, the code generated will use the
6585 architecture, registers, and mnemonics set by \fB\-mcpu\fR, but the
6586 scheduling parameters set by \fB\-mtune\fR.
6587 .IP "\fB\-maltivec\fR" 4
6588 .IX Item "-maltivec"
6589 .PD 0
6590 .IP "\fB\-mno\-altivec\fR" 4
6591 .IX Item "-mno-altivec"
6592 .PD
6593 These switches enable or disable the use of built-in functions that
6594 allow access to the AltiVec instruction set.  You may also need to set
6595 \&\fB\-mabi=altivec\fR to adjust the current \s-1ABI\s0 with AltiVec \s-1ABI\s0
6596 enhancements.
6597 .IP "\fB\-mabi=spe\fR" 4
6598 .IX Item "-mabi=spe"
6599 Extend the current \s-1ABI\s0 with \s-1SPE\s0 \s-1ABI\s0 extensions.  This does not change
6600 the default \s-1ABI\s0, instead it adds the \s-1SPE\s0 \s-1ABI\s0 extensions to the current
6601 \&\s-1ABI\s0.
6602 .IP "\fB\-mabi=no\-spe\fR" 4
6603 .IX Item "-mabi=no-spe"
6604 Disable Booke \s-1SPE\s0 \s-1ABI\s0 extensions for the current \s-1ABI\s0.
6605 .IP "\fB\-misel=\fR\fIyes/no\fR" 4
6606 .IX Item "-misel=yes/no"
6607 .PD 0
6608 .IP "\fB\-misel\fR" 4
6609 .IX Item "-misel"
6610 .PD
6611 This switch enables or disables the generation of \s-1ISEL\s0 instructions.
6612 .IP "\fB\-mspe=\fR\fIyes/no\fR" 4
6613 .IX Item "-mspe=yes/no"
6614 .PD 0
6615 .IP "\fB\-mspe\fR" 4
6616 .IX Item "-mspe"
6617 .PD
6618 This switch enables or disables the generation of \s-1SPE\s0 simd
6619 instructions.
6620 .IP "\fB\-mfloat\-gprs=\fR\fIyes/no\fR" 4
6621 .IX Item "-mfloat-gprs=yes/no"
6622 .PD 0
6623 .IP "\fB\-mfloat\-gprs\fR" 4
6624 .IX Item "-mfloat-gprs"
6625 .PD
6626 This switch enables or disables the generation of floating point
6627 operations on the general purpose registers for architectures that
6628 support it.  This option is currently only available on the \s-1MPC8540\s0.
6629 .IP "\fB\-mfull\-toc\fR" 4
6630 .IX Item "-mfull-toc"
6631 .PD 0
6632 .IP "\fB\-mno\-fp\-in\-toc\fR" 4
6633 .IX Item "-mno-fp-in-toc"
6634 .IP "\fB\-mno\-sum\-in\-toc\fR" 4
6635 .IX Item "-mno-sum-in-toc"
6636 .IP "\fB\-mminimal\-toc\fR" 4
6637 .IX Item "-mminimal-toc"
6638 .PD
6639 Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
6640 every executable file.  The \fB\-mfull\-toc\fR option is selected by
6641 default.  In that case, \s-1GCC\s0 will allocate at least one \s-1TOC\s0 entry for
6642 each unique non-automatic variable reference in your program.  \s-1GCC\s0
6643 will also place floating-point constants in the \s-1TOC\s0.  However, only
6644 16,384 entries are available in the \s-1TOC\s0.
6645 .Sp
6646 If you receive a linker error message that saying you have overflowed
6647 the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
6648 with the \fB\-mno\-fp\-in\-toc\fR and \fB\-mno\-sum\-in\-toc\fR options.
6649 \&\fB\-mno\-fp\-in\-toc\fR prevents \s-1GCC\s0 from putting floating-point
6650 constants in the \s-1TOC\s0 and \fB\-mno\-sum\-in\-toc\fR forces \s-1GCC\s0 to
6651 generate code to calculate the sum of an address and a constant at
6652 run-time instead of putting that sum into the \s-1TOC\s0.  You may specify one
6653 or both of these options.  Each causes \s-1GCC\s0 to produce very slightly
6654 slower and larger code at the expense of conserving \s-1TOC\s0 space.
6655 .Sp
6656 If you still run out of space in the \s-1TOC\s0 even when you specify both of
6657 these options, specify \fB\-mminimal\-toc\fR instead.  This option causes
6658 \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file.  When you specify this
6659 option, \s-1GCC\s0 will produce code that is slower and larger but which
6660 uses extremely little \s-1TOC\s0 space.  You may wish to use this option
6661 only on files that contain less frequently executed code.
6662 .IP "\fB\-maix64\fR" 4
6663 .IX Item "-maix64"
6664 .PD 0
6665 .IP "\fB\-maix32\fR" 4
6666 .IX Item "-maix32"
6667 .PD
6668 Enable 64\-bit \s-1AIX\s0 \s-1ABI\s0 and calling convention: 64\-bit pointers, 64\-bit
6669 \&\f(CW\*(C`long\*(C'\fR type, and the infrastructure needed to support them.
6670 Specifying \fB\-maix64\fR implies \fB\-mpowerpc64\fR and
6671 \&\fB\-mpowerpc\fR, while \fB\-maix32\fR disables the 64\-bit \s-1ABI\s0 and
6672 implies \fB\-mno\-powerpc64\fR.  \s-1GCC\s0 defaults to \fB\-maix32\fR.
6673 .IP "\fB\-mxl\-compat\fR" 4
6674 .IX Item "-mxl-compat"
6675 .PD 0
6676 .IP "\fB\-mno\-xl\-compat\fR" 4
6677 .IX Item "-mno-xl-compat"
6678 .PD
6679 Produce code that conforms more closely to \s-1IBM\s0 \s-1XLC\s0 semantics when using
6680 AIX-compatible \s-1ABI\s0.  Pass floating-point arguments to prototyped
6681 functions beyond the register save area (\s-1RSA\s0) on the stack in addition
6682 to argument FPRs.  Do not assume that most significant double in 128
6683 bit long double value is properly rounded when comparing values.
6684 .Sp
6685 The \s-1AIX\s0 calling convention was extended but not initially documented to
6686 handle an obscure K&R C case of calling a function that takes the
6687 address of its arguments with fewer arguments than declared.  \s-1AIX\s0 \s-1XL\s0
6688 compilers access floating point arguments which do not fit in the
6689 \&\s-1RSA\s0 from the stack when a subroutine is compiled without
6690 optimization.  Because always storing floating-point arguments on the
6691 stack is inefficient and rarely needed, this option is not enabled by
6692 default and only is necessary when calling subroutines compiled by \s-1AIX\s0
6693 \&\s-1XL\s0 compilers without optimization.
6694 .IP "\fB\-mpe\fR" 4
6695 .IX Item "-mpe"
6696 Support \fI\s-1IBM\s0 \s-1RS/6000\s0 \s-1SP\s0\fR \fIParallel Environment\fR (\s-1PE\s0).  Link an
6697 application written to use message passing with special startup code to
6698 enable the application to run.  The system must have \s-1PE\s0 installed in the
6699 standard location (\fI/usr/lpp/ppe.poe/\fR), or the \fIspecs\fR file
6700 must be overridden with the \fB\-specs=\fR option to specify the
6701 appropriate directory location.  The Parallel Environment does not
6702 support threads, so the \fB\-mpe\fR option and the \fB\-pthread\fR
6703 option are incompatible.
6704 .IP "\fB\-malign\-natural\fR" 4
6705 .IX Item "-malign-natural"
6706 .PD 0
6707 .IP "\fB\-malign\-power\fR" 4
6708 .IX Item "-malign-power"
6709 .PD
6710 On \s-1AIX\s0, Darwin, and 64\-bit PowerPC GNU/Linux, the option
6711 \&\fB\-malign\-natural\fR overrides the ABI-defined alignment of larger
6712 types, such as floating-point doubles, on their natural size-based boundary.
6713 The option \fB\-malign\-power\fR instructs \s-1GCC\s0 to follow the ABI-specified
6714 alignment rules.  \s-1GCC\s0 defaults to the standard alignment defined in the \s-1ABI\s0.
6715 .IP "\fB\-msoft\-float\fR" 4
6716 .IX Item "-msoft-float"
6717 .PD 0
6718 .IP "\fB\-mhard\-float\fR" 4
6719 .IX Item "-mhard-float"
6720 .PD
6721 Generate code that does not use (uses) the floating-point register set.
6722 Software floating point emulation is provided if you use the
6723 \&\fB\-msoft\-float\fR option, and pass the option to \s-1GCC\s0 when linking.
6724 .IP "\fB\-mmultiple\fR" 4
6725 .IX Item "-mmultiple"
6726 .PD 0
6727 .IP "\fB\-mno\-multiple\fR" 4
6728 .IX Item "-mno-multiple"
6729 .PD
6730 Generate code that uses (does not use) the load multiple word
6731 instructions and the store multiple word instructions.  These
6732 instructions are generated by default on \s-1POWER\s0 systems, and not
6733 generated on PowerPC systems.  Do not use \fB\-mmultiple\fR on little
6734 endian PowerPC systems, since those instructions do not work when the
6735 processor is in little endian mode.  The exceptions are \s-1PPC740\s0 and
6736 \&\s-1PPC750\s0 which permit the instructions usage in little endian mode.
6737 .IP "\fB\-mstring\fR" 4
6738 .IX Item "-mstring"
6739 .PD 0
6740 .IP "\fB\-mno\-string\fR" 4
6741 .IX Item "-mno-string"
6742 .PD
6743 Generate code that uses (does not use) the load string instructions
6744 and the store string word instructions to save multiple registers and
6745 do small block moves.  These instructions are generated by default on
6746 \&\s-1POWER\s0 systems, and not generated on PowerPC systems.  Do not use
6747 \&\fB\-mstring\fR on little endian PowerPC systems, since those
6748 instructions do not work when the processor is in little endian mode.
6749 The exceptions are \s-1PPC740\s0 and \s-1PPC750\s0 which permit the instructions
6750 usage in little endian mode.
6751 .IP "\fB\-mupdate\fR" 4
6752 .IX Item "-mupdate"
6753 .PD 0
6754 .IP "\fB\-mno\-update\fR" 4
6755 .IX Item "-mno-update"
6756 .PD
6757 Generate code that uses (does not use) the load or store instructions
6758 that update the base register to the address of the calculated memory
6759 location.  These instructions are generated by default.  If you use
6760 \&\fB\-mno\-update\fR, there is a small window between the time that the
6761 stack pointer is updated and the address of the previous frame is
6762 stored, which means code that walks the stack frame across interrupts or
6763 signals may get corrupted data.
6764 .IP "\fB\-mfused\-madd\fR" 4
6765 .IX Item "-mfused-madd"
6766 .PD 0
6767 .IP "\fB\-mno\-fused\-madd\fR" 4
6768 .IX Item "-mno-fused-madd"
6769 .PD
6770 Generate code that uses (does not use) the floating point multiply and
6771 accumulate instructions.  These instructions are generated by default if
6772 hardware floating is used.
6773 .IP "\fB\-mno\-bit\-align\fR" 4
6774 .IX Item "-mno-bit-align"
6775 .PD 0
6776 .IP "\fB\-mbit\-align\fR" 4
6777 .IX Item "-mbit-align"
6778 .PD
6779 On System V.4 and embedded PowerPC systems do not (do) force structures
6780 and unions that contain bit-fields to be aligned to the base type of the
6781 bit\-field.
6782 .Sp
6783 For example, by default a structure containing nothing but 8
6784 \&\f(CW\*(C`unsigned\*(C'\fR bit-fields of length 1 would be aligned to a 4 byte
6785 boundary and have a size of 4 bytes.  By using \fB\-mno\-bit\-align\fR,
6786 the structure would be aligned to a 1 byte boundary and be one byte in
6787 size.
6788 .IP "\fB\-mno\-strict\-align\fR" 4
6789 .IX Item "-mno-strict-align"
6790 .PD 0
6791 .IP "\fB\-mstrict\-align\fR" 4
6792 .IX Item "-mstrict-align"
6793 .PD
6794 On System V.4 and embedded PowerPC systems do not (do) assume that
6795 unaligned memory references will be handled by the system.
6796 .IP "\fB\-mrelocatable\fR" 4
6797 .IX Item "-mrelocatable"
6798 .PD 0
6799 .IP "\fB\-mno\-relocatable\fR" 4
6800 .IX Item "-mno-relocatable"
6801 .PD
6802 On embedded PowerPC systems generate code that allows (does not allow)
6803 the program to be relocated to a different address at runtime.  If you
6804 use \fB\-mrelocatable\fR on any module, all objects linked together must
6805 be compiled with \fB\-mrelocatable\fR or \fB\-mrelocatable\-lib\fR.
6806 .IP "\fB\-mrelocatable\-lib\fR" 4
6807 .IX Item "-mrelocatable-lib"
6808 .PD 0
6809 .IP "\fB\-mno\-relocatable\-lib\fR" 4
6810 .IX Item "-mno-relocatable-lib"
6811 .PD
6812 On embedded PowerPC systems generate code that allows (does not allow)
6813 the program to be relocated to a different address at runtime.  Modules
6814 compiled with \fB\-mrelocatable\-lib\fR can be linked with either modules
6815 compiled without \fB\-mrelocatable\fR and \fB\-mrelocatable\-lib\fR or
6816 with modules compiled with the \fB\-mrelocatable\fR options.
6817 .IP "\fB\-mno\-toc\fR" 4
6818 .IX Item "-mno-toc"
6819 .PD 0
6820 .IP "\fB\-mtoc\fR" 4
6821 .IX Item "-mtoc"
6822 .PD
6823 On System V.4 and embedded PowerPC systems do not (do) assume that
6824 register 2 contains a pointer to a global area pointing to the addresses
6825 used in the program.
6826 .IP "\fB\-mlittle\fR" 4
6827 .IX Item "-mlittle"
6828 .PD 0
6829 .IP "\fB\-mlittle\-endian\fR" 4
6830 .IX Item "-mlittle-endian"
6831 .PD
6832 On System V.4 and embedded PowerPC systems compile code for the
6833 processor in little endian mode.  The \fB\-mlittle\-endian\fR option is
6834 the same as \fB\-mlittle\fR.
6835 .IP "\fB\-mbig\fR" 4
6836 .IX Item "-mbig"
6837 .PD 0
6838 .IP "\fB\-mbig\-endian\fR" 4
6839 .IX Item "-mbig-endian"
6840 .PD
6841 On System V.4 and embedded PowerPC systems compile code for the
6842 processor in big endian mode.  The \fB\-mbig\-endian\fR option is
6843 the same as \fB\-mbig\fR.
6844 .IP "\fB\-mdynamic\-no\-pic\fR" 4
6845 .IX Item "-mdynamic-no-pic"
6846 On Darwin and Mac \s-1OS\s0 X systems, compile code so that it is not
6847 relocatable, but that its external references are relocatable.  The
6848 resulting code is suitable for applications, but not shared
6849 libraries.
6850 .IP "\fB\-mprioritize\-restricted\-insns=\fR\fIpriority\fR" 4
6851 .IX Item "-mprioritize-restricted-insns=priority"
6852 This option controls the priority that is assigned to
6853 dispatch-slot restricted instructions during the second scheduling
6854 pass.  The argument \fIpriority\fR takes the value \fI0/1/2\fR to assign
6855 \&\fIno/highest/second\-highest\fR priority to dispatch slot restricted
6856 instructions.
6857 .IP "\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR" 4
6858 .IX Item "-msched-costly-dep=dependence_type"
6859 This option controls which dependences are considered costly
6860 by the target during instruction scheduling.  The argument
6861 \&\fIdependence_type\fR takes one of the following values:
6862 \&\fIno\fR: no dependence is costly,
6863 \&\fIall\fR: all dependences are costly,
6864 \&\fItrue_store_to_load\fR: a true dependence from store to load is costly,
6865 \&\fIstore_to_load\fR: any dependence from store to load is costly,
6866 \&\fInumber\fR: any dependence which latency >= \fInumber\fR is costly.
6867 .IP "\fB\-minsert\-sched\-nops=\fR\fIscheme\fR" 4
6868 .IX Item "-minsert-sched-nops=scheme"
6869 This option controls which nop insertion scheme will be used during
6870 the second scheduling pass. The argument \fIscheme\fR takes one of the
6871 following values:
6872 \&\fIno\fR: Don't insert nops.
6873 \&\fIpad\fR: Pad with nops any dispatch group which has vacant issue slots,
6874 according to the scheduler's grouping.
6875 \&\fIregroup_exact\fR: Insert nops to force costly dependent insns into
6876 separate groups.  Insert exactly as many nops as needed to force an insn
6877 to a new group, according to the estimated processor grouping.
6878 \&\fInumber\fR: Insert nops to force costly dependent insns into
6879 separate groups.  Insert \fInumber\fR nops to force an insn to a new group.
6880 .IP "\fB\-mcall\-sysv\fR" 4
6881 .IX Item "-mcall-sysv"
6882 On System V.4 and embedded PowerPC systems compile code using calling
6883 conventions that adheres to the March 1995 draft of the System V
6884 Application Binary Interface, PowerPC processor supplement.  This is the
6885 default unless you configured \s-1GCC\s0 using \fBpowerpc\-*\-eabiaix\fR.
6886 .IP "\fB\-mcall\-sysv\-eabi\fR" 4
6887 .IX Item "-mcall-sysv-eabi"
6888 Specify both \fB\-mcall\-sysv\fR and \fB\-meabi\fR options.
6889 .IP "\fB\-mcall\-sysv\-noeabi\fR" 4
6890 .IX Item "-mcall-sysv-noeabi"
6891 Specify both \fB\-mcall\-sysv\fR and \fB\-mno\-eabi\fR options.
6892 .IP "\fB\-mcall\-solaris\fR" 4
6893 .IX Item "-mcall-solaris"
6894 On System V.4 and embedded PowerPC systems compile code for the Solaris
6895 operating system.
6896 .IP "\fB\-mcall\-linux\fR" 4
6897 .IX Item "-mcall-linux"
6898 On System V.4 and embedded PowerPC systems compile code for the
6899 Linux-based \s-1GNU\s0 system.
6900 .IP "\fB\-mcall\-gnu\fR" 4
6901 .IX Item "-mcall-gnu"
6902 On System V.4 and embedded PowerPC systems compile code for the
6903 Hurd-based \s-1GNU\s0 system.
6904 .IP "\fB\-mcall\-netbsd\fR" 4
6905 .IX Item "-mcall-netbsd"
6906 On System V.4 and embedded PowerPC systems compile code for the
6907 NetBSD operating system.
6908 .IP "\fB\-maix\-struct\-return\fR" 4
6909 .IX Item "-maix-struct-return"
6910 Return all structures in memory (as specified by the \s-1AIX\s0 \s-1ABI\s0).
6911 .IP "\fB\-msvr4\-struct\-return\fR" 4
6912 .IX Item "-msvr4-struct-return"
6913 Return structures smaller than 8 bytes in registers (as specified by the
6914 \&\s-1SVR4\s0 \s-1ABI\s0).
6915 .IP "\fB\-mabi=altivec\fR" 4
6916 .IX Item "-mabi=altivec"
6917 Extend the current \s-1ABI\s0 with AltiVec \s-1ABI\s0 extensions.  This does not
6918 change the default \s-1ABI\s0, instead it adds the AltiVec \s-1ABI\s0 extensions to
6919 the current \s-1ABI\s0.
6920 .IP "\fB\-mabi=no\-altivec\fR" 4
6921 .IX Item "-mabi=no-altivec"
6922 Disable AltiVec \s-1ABI\s0 extensions for the current \s-1ABI\s0.
6923 .IP "\fB\-mprototype\fR" 4
6924 .IX Item "-mprototype"
6925 .PD 0
6926 .IP "\fB\-mno\-prototype\fR" 4
6927 .IX Item "-mno-prototype"
6928 .PD
6929 On System V.4 and embedded PowerPC systems assume that all calls to
6930 variable argument functions are properly prototyped.  Otherwise, the
6931 compiler must insert an instruction before every non prototyped call to
6932 set or clear bit 6 of the condition code register (\fI\s-1CR\s0\fR) to
6933 indicate whether floating point values were passed in the floating point
6934 registers in case the function takes a variable arguments.  With
6935 \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
6936 will set or clear the bit.
6937 .IP "\fB\-msim\fR" 4
6938 .IX Item "-msim"
6939 On embedded PowerPC systems, assume that the startup module is called
6940 \&\fIsim\-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
6941 \&\fIlibc.a\fR.  This is the default for \fBpowerpc\-*\-eabisim\fR.
6942 configurations.
6943 .IP "\fB\-mmvme\fR" 4
6944 .IX Item "-mmvme"
6945 On embedded PowerPC systems, assume that the startup module is called
6946 \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
6947 \&\fIlibc.a\fR.
6948 .IP "\fB\-mads\fR" 4
6949 .IX Item "-mads"
6950 On embedded PowerPC systems, assume that the startup module is called
6951 \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
6952 \&\fIlibc.a\fR.
6953 .IP "\fB\-myellowknife\fR" 4
6954 .IX Item "-myellowknife"
6955 On embedded PowerPC systems, assume that the startup module is called
6956 \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
6957 \&\fIlibc.a\fR.
6958 .IP "\fB\-mvxworks\fR" 4
6959 .IX Item "-mvxworks"
6960 On System V.4 and embedded PowerPC systems, specify that you are
6961 compiling for a VxWorks system.
6962 .IP "\fB\-mwindiss\fR" 4
6963 .IX Item "-mwindiss"
6964 Specify that you are compiling for the WindISS simulation environment.
6965 .IP "\fB\-memb\fR" 4
6966 .IX Item "-memb"
6967 On embedded PowerPC systems, set the \fI\s-1PPC_EMB\s0\fR bit in the \s-1ELF\s0 flags
6968 header to indicate that \fBeabi\fR extended relocations are used.
6969 .IP "\fB\-meabi\fR" 4
6970 .IX Item "-meabi"
6971 .PD 0
6972 .IP "\fB\-mno\-eabi\fR" 4
6973 .IX Item "-mno-eabi"
6974 .PD
6975 On System V.4 and embedded PowerPC systems do (do not) adhere to the
6976 Embedded Applications Binary Interface (eabi) which is a set of
6977 modifications to the System V.4 specifications.  Selecting \fB\-meabi\fR
6978 means that the stack is aligned to an 8 byte boundary, a function
6979 \&\f(CW\*(C`_\|_eabi\*(C'\fR is called to from \f(CW\*(C`main\*(C'\fR to set up the eabi
6980 environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
6981 \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas.  Selecting
6982 \&\fB\-mno\-eabi\fR means that the stack is aligned to a 16 byte boundary,
6983 do not call an initialization function from \f(CW\*(C`main\*(C'\fR, and the
6984 \&\fB\-msdata\fR option will only use \f(CW\*(C`r13\*(C'\fR to point to a single
6985 small data area.  The \fB\-meabi\fR option is on by default if you
6986 configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
6987 .IP "\fB\-msdata=eabi\fR" 4
6988 .IX Item "-msdata=eabi"
6989 On System V.4 and embedded PowerPC systems, put small initialized
6990 \&\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata2\fR section, which
6991 is pointed to by register \f(CW\*(C`r2\*(C'\fR.  Put small initialized
6992 non\-\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata\fR section,
6993 which is pointed to by register \f(CW\*(C`r13\*(C'\fR.  Put small uninitialized
6994 global and static data in the \fB.sbss\fR section, which is adjacent to
6995 the \fB.sdata\fR section.  The \fB\-msdata=eabi\fR option is
6996 incompatible with the \fB\-mrelocatable\fR option.  The
6997 \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
6998 .IP "\fB\-msdata=sysv\fR" 4
6999 .IX Item "-msdata=sysv"
7000 On System V.4 and embedded PowerPC systems, put small global and static
7001 data in the \fB.sdata\fR section, which is pointed to by register
7002 \&\f(CW\*(C`r13\*(C'\fR.  Put small uninitialized global and static data in the
7003 \&\fB.sbss\fR section, which is adjacent to the \fB.sdata\fR section.
7004 The \fB\-msdata=sysv\fR option is incompatible with the
7005 \&\fB\-mrelocatable\fR option.
7006 .IP "\fB\-msdata=default\fR" 4
7007 .IX Item "-msdata=default"
7008 .PD 0
7009 .IP "\fB\-msdata\fR" 4
7010 .IX Item "-msdata"
7011 .PD
7012 On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
7013 compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
7014 same as \fB\-msdata=sysv\fR.
7015 .IP "\fB\-msdata\-data\fR" 4
7016 .IX Item "-msdata-data"
7017 On System V.4 and embedded PowerPC systems, put small global and static
7018 data in the \fB.sdata\fR section.  Put small uninitialized global and
7019 static data in the \fB.sbss\fR section.  Do not use register \f(CW\*(C`r13\*(C'\fR
7020 to address small data however.  This is the default behavior unless
7021 other \fB\-msdata\fR options are used.
7022 .IP "\fB\-msdata=none\fR" 4
7023 .IX Item "-msdata=none"
7024 .PD 0
7025 .IP "\fB\-mno\-sdata\fR" 4
7026 .IX Item "-mno-sdata"
7027 .PD
7028 On embedded PowerPC systems, put all initialized global and static data
7029 in the \fB.data\fR section, and all uninitialized data in the
7030 \&\fB.bss\fR section.
7031 .IP "\fB\-G\fR \fInum\fR" 4
7032 .IX Item "-G num"
7033 On embedded PowerPC systems, put global and static items less than or
7034 equal to \fInum\fR bytes into the small data or bss sections instead of
7035 the normal data or bss section.  By default, \fInum\fR is 8.  The
7036 \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
7037 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
7038 .IP "\fB\-mregnames\fR" 4
7039 .IX Item "-mregnames"
7040 .PD 0
7041 .IP "\fB\-mno\-regnames\fR" 4
7042 .IX Item "-mno-regnames"
7043 .PD
7044 On System V.4 and embedded PowerPC systems do (do not) emit register
7045 names in the assembly language output using symbolic forms.
7046 .IP "\fB\-mlongcall\fR" 4
7047 .IX Item "-mlongcall"
7048 .PD 0
7049 .IP "\fB\-mno\-longcall\fR" 4
7050 .IX Item "-mno-longcall"
7051 .PD
7052 Default to making all function calls via pointers, so that functions
7053 which reside further than 64 megabytes (67,108,864 bytes) from the
7054 current location can be called.  This setting can be overridden by the
7055 \&\f(CW\*(C`shortcall\*(C'\fR function attribute, or by \f(CW\*(C`#pragma longcall(0)\*(C'\fR.
7056 .Sp
7057 Some linkers are capable of detecting out-of-range calls and generating
7058 glue code on the fly.  On these systems, long calls are unnecessary and
7059 generate slower code.  As of this writing, the \s-1AIX\s0 linker can do this,
7060 as can the \s-1GNU\s0 linker for PowerPC/64.  It is planned to add this feature
7061 to the \s-1GNU\s0 linker for 32\-bit PowerPC systems as well.
7062 .Sp
7063 On Mach-O (Darwin) systems, this option directs the compiler emit to
7064 the glue for every direct call, and the Darwin linker decides whether
7065 to use or discard it.
7066 .Sp
7067 In the future, we may cause \s-1GCC\s0 to ignore all longcall specifications
7068 when the linker is known to generate glue.
7069 .IP "\fB\-pthread\fR" 4
7070 .IX Item "-pthread"
7071 Adds support for multithreading with the \fIpthreads\fR library.
7072 This option sets flags for both the preprocessor and linker.
7073 .PP
7074 \fIDarwin Options\fR
7075 .IX Subsection "Darwin Options"
7076 .PP
7077 These options are defined for all architectures running the Darwin operating
7078 system.  They are useful for compatibility with other Mac \s-1OS\s0 compilers.
7079 .IP "\fB\-all_load\fR" 4
7080 .IX Item "-all_load"
7081 Loads all members of static archive libraries.
7082 See man \fIld\fR\|(1) for more information.
7083 .IP "\fB\-arch_errors_fatal\fR" 4
7084 .IX Item "-arch_errors_fatal"
7085 Cause the errors having to do with files that have the wrong architecture
7086 to be fatal.
7087 .IP "\fB\-bind_at_load\fR" 4
7088 .IX Item "-bind_at_load"
7089 Causes the output file to be marked such that the dynamic linker will
7090 bind all undefined references when the file is loaded or launched.
7091 .IP "\fB\-bundle\fR" 4
7092 .IX Item "-bundle"
7093 Produce a Mach-o bundle format file.
7094 See man \fIld\fR\|(1) for more information.
7095 .IP "\fB\-bundle_loader\fR \fIexecutable\fR" 4
7096 .IX Item "-bundle_loader executable"
7097 This specifies the \fIexecutable\fR that will be loading the build
7098 output file being linked. See man \fIld\fR\|(1) for more information.
7099 .IP "\fB\-allowable_client\fR  \fIclient_name\fR" 4
7100 .IX Item "-allowable_client  client_name"
7101 .PD 0
7102 .IP "\fB\-arch_only\fR" 4
7103 .IX Item "-arch_only"
7104 .IP "\fB\-client_name\fR" 4
7105 .IX Item "-client_name"
7106 .IP "\fB\-compatibility_version\fR" 4
7107 .IX Item "-compatibility_version"
7108 .IP "\fB\-current_version\fR" 4
7109 .IX Item "-current_version"
7110 .IP "\fB\-dependency\-file\fR" 4
7111 .IX Item "-dependency-file"
7112 .IP "\fB\-dylib_file\fR" 4
7113 .IX Item "-dylib_file"
7114 .IP "\fB\-dylinker_install_name\fR" 4
7115 .IX Item "-dylinker_install_name"
7116 .IP "\fB\-dynamic\fR" 4
7117 .IX Item "-dynamic"
7118 .IP "\fB\-dynamiclib\fR" 4
7119 .IX Item "-dynamiclib"
7120 .IP "\fB\-exported_symbols_list\fR" 4
7121 .IX Item "-exported_symbols_list"
7122 .IP "\fB\-filelist\fR" 4
7123 .IX Item "-filelist"
7124 .IP "\fB\-flat_namespace\fR" 4
7125 .IX Item "-flat_namespace"
7126 .IP "\fB\-force_cpusubtype_ALL\fR" 4
7127 .IX Item "-force_cpusubtype_ALL"
7128 .IP "\fB\-force_flat_namespace\fR" 4
7129 .IX Item "-force_flat_namespace"
7130 .IP "\fB\-headerpad_max_install_names\fR" 4
7131 .IX Item "-headerpad_max_install_names"
7132 .IP "\fB\-image_base\fR" 4
7133 .IX Item "-image_base"
7134 .IP "\fB\-init\fR" 4
7135 .IX Item "-init"
7136 .IP "\fB\-install_name\fR" 4
7137 .IX Item "-install_name"
7138 .IP "\fB\-keep_private_externs\fR" 4
7139 .IX Item "-keep_private_externs"
7140 .IP "\fB\-multi_module\fR" 4
7141 .IX Item "-multi_module"
7142 .IP "\fB\-multiply_defined\fR" 4
7143 .IX Item "-multiply_defined"
7144 .IP "\fB\-multiply_defined_unused\fR" 4
7145 .IX Item "-multiply_defined_unused"
7146 .IP "\fB\-noall_load\fR" 4
7147 .IX Item "-noall_load"
7148 .IP "\fB\-nofixprebinding\fR" 4
7149 .IX Item "-nofixprebinding"
7150 .IP "\fB\-nomultidefs\fR" 4
7151 .IX Item "-nomultidefs"
7152 .IP "\fB\-noprebind\fR" 4
7153 .IX Item "-noprebind"
7154 .IP "\fB\-noseglinkedit\fR" 4
7155 .IX Item "-noseglinkedit"
7156 .IP "\fB\-pagezero_size\fR" 4
7157 .IX Item "-pagezero_size"
7158 .IP "\fB\-prebind\fR" 4
7159 .IX Item "-prebind"
7160 .IP "\fB\-prebind_all_twolevel_modules\fR" 4
7161 .IX Item "-prebind_all_twolevel_modules"
7162 .IP "\fB\-private_bundle\fR" 4
7163 .IX Item "-private_bundle"
7164 .IP "\fB\-read_only_relocs\fR" 4
7165 .IX Item "-read_only_relocs"
7166 .IP "\fB\-sectalign\fR" 4
7167 .IX Item "-sectalign"
7168 .IP "\fB\-sectobjectsymbols\fR" 4
7169 .IX Item "-sectobjectsymbols"
7170 .IP "\fB\-whyload\fR" 4
7171 .IX Item "-whyload"
7172 .IP "\fB\-seg1addr\fR" 4
7173 .IX Item "-seg1addr"
7174 .IP "\fB\-sectcreate\fR" 4
7175 .IX Item "-sectcreate"
7176 .IP "\fB\-sectobjectsymbols\fR" 4
7177 .IX Item "-sectobjectsymbols"
7178 .IP "\fB\-sectorder\fR" 4
7179 .IX Item "-sectorder"
7180 .IP "\fB\-seg_addr_table\fR" 4
7181 .IX Item "-seg_addr_table"
7182 .IP "\fB\-seg_addr_table_filename\fR" 4
7183 .IX Item "-seg_addr_table_filename"
7184 .IP "\fB\-seglinkedit\fR" 4
7185 .IX Item "-seglinkedit"
7186 .IP "\fB\-segprot\fR" 4
7187 .IX Item "-segprot"
7188 .IP "\fB\-segs_read_only_addr\fR" 4
7189 .IX Item "-segs_read_only_addr"
7190 .IP "\fB\-segs_read_write_addr\fR" 4
7191 .IX Item "-segs_read_write_addr"
7192 .IP "\fB\-single_module\fR" 4
7193 .IX Item "-single_module"
7194 .IP "\fB\-static\fR" 4
7195 .IX Item "-static"
7196 .IP "\fB\-sub_library\fR" 4
7197 .IX Item "-sub_library"
7198 .IP "\fB\-sub_umbrella\fR" 4
7199 .IX Item "-sub_umbrella"
7200 .IP "\fB\-twolevel_namespace\fR" 4
7201 .IX Item "-twolevel_namespace"
7202 .IP "\fB\-umbrella\fR" 4
7203 .IX Item "-umbrella"
7204 .IP "\fB\-undefined\fR" 4
7205 .IX Item "-undefined"
7206 .IP "\fB\-unexported_symbols_list\fR" 4
7207 .IX Item "-unexported_symbols_list"
7208 .IP "\fB\-weak_reference_mismatches\fR" 4
7209 .IX Item "-weak_reference_mismatches"
7210 .IP "\fB\-whatsloaded\fR" 4
7211 .IX Item "-whatsloaded"
7212 .PD
7213 These options are available for Darwin linker. Darwin linker man page
7214 describes them in detail.
7215 .PP
7216 \fI\s-1MIPS\s0 Options\fR
7217 .IX Subsection "MIPS Options"
7218 .IP "\fB\-EB\fR" 4
7219 .IX Item "-EB"
7220 Generate big-endian code.
7221 .IP "\fB\-EL\fR" 4
7222 .IX Item "-EL"
7223 Generate little-endian code.  This is the default for \fBmips*el\-*\-*\fR
7224 configurations.
7225 .IP "\fB\-march=\fR\fIarch\fR" 4
7226 .IX Item "-march=arch"
7227 Generate code that will run on \fIarch\fR, which can be the name of a
7228 generic \s-1MIPS\s0 \s-1ISA\s0, or the name of a particular processor.
7229 The \s-1ISA\s0 names are:
7230 \&\fBmips1\fR, \fBmips2\fR, \fBmips3\fR, \fBmips4\fR,
7231 \&\fBmips32\fR, \fBmips32r2\fR, and \fBmips64\fR.
7232 The processor names are:
7233 \&\fB4kc\fR, \fB4kp\fR, \fB5kc\fR, \fB20kc\fR,
7234 \&\fBm4k\fR,
7235 \&\fBr2000\fR, \fBr3000\fR, \fBr3900\fR, \fBr4000\fR, \fBr4400\fR,
7236 \&\fBr4600\fR, \fBr4650\fR, \fBr6000\fR, \fBr8000\fR, \fBrm7000\fR,
7237 \&\fBrm9000\fR,
7238 \&\fBorion\fR,
7239 \&\fBsb1\fR,
7240 \&\fBvr4100\fR, \fBvr4111\fR, \fBvr4120\fR, \fBvr4300\fR,
7241 \&\fBvr5000\fR, \fBvr5400\fR and \fBvr5500\fR.
7242 The special value \fBfrom-abi\fR selects the
7243 most compatible architecture for the selected \s-1ABI\s0 (that is,
7244 \&\fBmips1\fR for 32\-bit ABIs and \fBmips3\fR for 64\-bit ABIs).
7245 .Sp
7246 In processor names, a final \fB000\fR can be abbreviated as \fBk\fR
7247 (for example, \fB\-march=r2k\fR).  Prefixes are optional, and
7248 \&\fBvr\fR may be written \fBr\fR.
7249 .Sp
7250 \&\s-1GCC\s0 defines two macros based on the value of this option.  The first
7251 is \fB_MIPS_ARCH\fR, which gives the name of target architecture, as
7252 a string.  The second has the form \fB_MIPS_ARCH_\fR\fIfoo\fR,
7253 where \fIfoo\fR is the capitalized value of \fB_MIPS_ARCH\fR.
7254 For example, \fB\-march=r2000\fR will set \fB_MIPS_ARCH\fR
7255 to \fB\*(L"r2000\*(R"\fR and define the macro \fB_MIPS_ARCH_R2000\fR.
7256 .Sp
7257 Note that the \fB_MIPS_ARCH\fR macro uses the processor names given
7258 above.  In other words, it will have the full prefix and will not
7259 abbreviate \fB000\fR as \fBk\fR.  In the case of \fBfrom-abi\fR,
7260 the macro names the resolved architecture (either \fB\*(L"mips1\*(R"\fR or
7261 \&\fB\*(L"mips3\*(R"\fR).  It names the default architecture when no
7262 \&\fB\-march\fR option is given.
7263 .IP "\fB\-mtune=\fR\fIarch\fR" 4
7264 .IX Item "-mtune=arch"
7265 Optimize for \fIarch\fR.  Among other things, this option controls
7266 the way instructions are scheduled, and the perceived cost of arithmetic
7267 operations.  The list of \fIarch\fR values is the same as for
7268 \&\fB\-march\fR.
7269 .Sp
7270 When this option is not used, \s-1GCC\s0 will optimize for the processor
7271 specified by \fB\-march\fR.  By using \fB\-march\fR and
7272 \&\fB\-mtune\fR together, it is possible to generate code that will
7273 run on a family of processors, but optimize the code for one
7274 particular member of that family.
7275 .Sp
7276 \&\fB\-mtune\fR defines the macros \fB_MIPS_TUNE\fR and
7277 \&\fB_MIPS_TUNE_\fR\fIfoo\fR, which work in the same way as the
7278 \&\fB\-march\fR ones described above.
7279 .IP "\fB\-mips1\fR" 4
7280 .IX Item "-mips1"
7281 Equivalent to \fB\-march=mips1\fR.
7282 .IP "\fB\-mips2\fR" 4
7283 .IX Item "-mips2"
7284 Equivalent to \fB\-march=mips2\fR.
7285 .IP "\fB\-mips3\fR" 4
7286 .IX Item "-mips3"
7287 Equivalent to \fB\-march=mips3\fR.
7288 .IP "\fB\-mips4\fR" 4
7289 .IX Item "-mips4"
7290 Equivalent to \fB\-march=mips4\fR.
7291 .IP "\fB\-mips32\fR" 4
7292 .IX Item "-mips32"
7293 Equivalent to \fB\-march=mips32\fR.
7294 .IP "\fB\-mips32r2\fR" 4
7295 .IX Item "-mips32r2"
7296 Equivalent to \fB\-march=mips32r2\fR.
7297 .IP "\fB\-mips64\fR" 4
7298 .IX Item "-mips64"
7299 Equivalent to \fB\-march=mips64\fR.
7300 .IP "\fB\-mips16\fR" 4
7301 .IX Item "-mips16"
7302 .PD 0
7303 .IP "\fB\-mno\-mips16\fR" 4
7304 .IX Item "-mno-mips16"
7305 .PD
7306 Use (do not use) the \s-1MIPS16\s0 \s-1ISA\s0.
7307 .IP "\fB\-mabi=32\fR" 4
7308 .IX Item "-mabi=32"
7309 .PD 0
7310 .IP "\fB\-mabi=o64\fR" 4
7311 .IX Item "-mabi=o64"
7312 .IP "\fB\-mabi=n32\fR" 4
7313 .IX Item "-mabi=n32"
7314 .IP "\fB\-mabi=64\fR" 4
7315 .IX Item "-mabi=64"
7316 .IP "\fB\-mabi=eabi\fR" 4
7317 .IX Item "-mabi=eabi"
7318 .PD
7319 Generate code for the given \s-1ABI\s0.
7320 .Sp
7321 Note that the \s-1EABI\s0 has a 32\-bit and a 64\-bit variant.  \s-1GCC\s0 normally
7322 generates 64\-bit code when you select a 64\-bit architecture, but you
7323 can use \fB\-mgp32\fR to get 32\-bit code instead.
7324 .IP "\fB\-mabicalls\fR" 4
7325 .IX Item "-mabicalls"
7326 .PD 0
7327 .IP "\fB\-mno\-abicalls\fR" 4
7328 .IX Item "-mno-abicalls"
7329 .PD
7330 Generate (do not generate) SVR4\-style position-independent code.
7331 \&\fB\-mabicalls\fR is the default for SVR4\-based systems.
7332 .IP "\fB\-mxgot\fR" 4
7333 .IX Item "-mxgot"
7334 .PD 0
7335 .IP "\fB\-mno\-xgot\fR" 4
7336 .IX Item "-mno-xgot"
7337 .PD
7338 Lift (do not lift) the usual restrictions on the size of the global
7339 offset table.
7340 .Sp
7341 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT\s0.
7342 While this is relatively efficient, it will only work if the \s-1GOT\s0
7343 is smaller than about 64k.  Anything larger will cause the linker
7344 to report an error such as:
7345 .Sp
7346 .Vb 1
7347 \&        relocation truncated to fit: R_MIPS_GOT16 foobar
7348 .Ve
7349 .Sp
7350 If this happens, you should recompile your code with \fB\-mxgot\fR.
7351 It should then work with very large GOTs, although it will also be
7352 less efficient, since it will take three instructions to fetch the
7353 value of a global symbol.
7354 .Sp
7355 Note that some linkers can create multiple GOTs.  If you have such a
7356 linker, you should only need to use \fB\-mxgot\fR when a single object
7357 file accesses more than 64k's worth of \s-1GOT\s0 entries.  Very few do.
7358 .Sp
7359 These options have no effect unless \s-1GCC\s0 is generating position
7360 independent code.
7361 .IP "\fB\-membedded\-pic\fR" 4
7362 .IX Item "-membedded-pic"
7363 .PD 0
7364 .IP "\fB\-mno\-embedded\-pic\fR" 4
7365 .IX Item "-mno-embedded-pic"
7366 .PD
7367 Generate (do not generate) position-independent code suitable for some
7368 embedded systems.  All calls are made using \s-1PC\s0 relative addresses, and
7369 all data is addressed using the \f(CW$gp\fR register.  No more than 65536
7370 bytes of global data may be used.  This requires \s-1GNU\s0 as and \s-1GNU\s0 ld,
7371 which do most of the work.
7372 .IP "\fB\-mgp32\fR" 4
7373 .IX Item "-mgp32"
7374 Assume that general-purpose registers are 32 bits wide.
7375 .IP "\fB\-mgp64\fR" 4
7376 .IX Item "-mgp64"
7377 Assume that general-purpose registers are 64 bits wide.
7378 .IP "\fB\-mfp32\fR" 4
7379 .IX Item "-mfp32"
7380 Assume that floating-point registers are 32 bits wide.
7381 .IP "\fB\-mfp64\fR" 4
7382 .IX Item "-mfp64"
7383 Assume that floating-point registers are 64 bits wide.
7384 .IP "\fB\-mhard\-float\fR" 4
7385 .IX Item "-mhard-float"
7386 Use floating-point coprocessor instructions.
7387 .IP "\fB\-msoft\-float\fR" 4
7388 .IX Item "-msoft-float"
7389 Do not use floating-point coprocessor instructions.  Implement
7390 floating-point calculations using library calls instead.
7391 .IP "\fB\-msingle\-float\fR" 4
7392 .IX Item "-msingle-float"
7393 Assume that the floating-point coprocessor only supports single-precision
7394 operations.
7395 .IP "\fB\-mdouble\-float\fR" 4
7396 .IX Item "-mdouble-float"
7397 Assume that the floating-point coprocessor supports double-precision
7398 operations.  This is the default.
7399 .IP "\fB\-mint64\fR" 4
7400 .IX Item "-mint64"
7401 Force \f(CW\*(C`int\*(C'\fR and \f(CW\*(C`long\*(C'\fR types to be 64 bits wide.  See
7402 \&\fB\-mlong32\fR for an explanation of the default and the way
7403 that the pointer size is determined.
7404 .IP "\fB\-mlong64\fR" 4
7405 .IX Item "-mlong64"
7406 Force \f(CW\*(C`long\*(C'\fR types to be 64 bits wide.  See \fB\-mlong32\fR for
7407 an explanation of the default and the way that the pointer size is
7408 determined.
7409 .IP "\fB\-mlong32\fR" 4
7410 .IX Item "-mlong32"
7411 Force \f(CW\*(C`long\*(C'\fR, \f(CW\*(C`int\*(C'\fR, and pointer types to be 32 bits wide.
7412 .Sp
7413 The default size of \f(CW\*(C`int\*(C'\fRs, \f(CW\*(C`long\*(C'\fRs and pointers depends on
7414 the \s-1ABI\s0.  All the supported ABIs use 32\-bit \f(CW\*(C`int\*(C'\fRs.  The n64 \s-1ABI\s0
7415 uses 64\-bit \f(CW\*(C`long\*(C'\fRs, as does the 64\-bit \s-1EABI\s0; the others use
7416 32\-bit \f(CW\*(C`long\*(C'\fRs.  Pointers are the same size as \f(CW\*(C`long\*(C'\fRs,
7417 or the same size as integer registers, whichever is smaller.
7418 .IP "\fB\-G\fR \fInum\fR" 4
7419 .IX Item "-G num"
7420 Put global and static items less than or equal to \fInum\fR bytes into
7421 the small data or bss section instead of the normal data or bss section.
7422 This allows the data to be accessed using a single instruction.
7423 .Sp
7424 All modules should be compiled with the same \fB\-G\fR \fInum\fR
7425 value.
7426 .IP "\fB\-membedded\-data\fR" 4
7427 .IX Item "-membedded-data"
7428 .PD 0
7429 .IP "\fB\-mno\-embedded\-data\fR" 4
7430 .IX Item "-mno-embedded-data"
7431 .PD
7432 Allocate variables to the read-only data section first if possible, then
7433 next in the small data section if possible, otherwise in data.  This gives
7434 slightly slower code than the default, but reduces the amount of \s-1RAM\s0 required
7435 when executing, and thus may be preferred for some embedded systems.
7436 .IP "\fB\-muninit\-const\-in\-rodata\fR" 4
7437 .IX Item "-muninit-const-in-rodata"
7438 .PD 0
7439 .IP "\fB\-mno\-uninit\-const\-in\-rodata\fR" 4
7440 .IX Item "-mno-uninit-const-in-rodata"
7441 .PD
7442 Put uninitialized \f(CW\*(C`const\*(C'\fR variables in the read-only data section.
7443 This option is only meaningful in conjunction with \fB\-membedded\-data\fR.
7444 .IP "\fB\-msplit\-addresses\fR" 4
7445 .IX Item "-msplit-addresses"
7446 .PD 0
7447 .IP "\fB\-mno\-split\-addresses\fR" 4
7448 .IX Item "-mno-split-addresses"
7449 .PD
7450 Enable (disable) use of the \f(CW\*(C`%hi()\*(C'\fR and \f(CW\*(C`%lo()\*(C'\fR assembler
7451 relocation operators.  This option has been superceded by
7452 \&\fB\-mexplicit\-relocs\fR but is retained for backwards compatibility.
7453 .IP "\fB\-mexplicit\-relocs\fR" 4
7454 .IX Item "-mexplicit-relocs"
7455 .PD 0
7456 .IP "\fB\-mno\-explicit\-relocs\fR" 4
7457 .IX Item "-mno-explicit-relocs"
7458 .PD
7459 Use (do not use) assembler relocation operators when dealing with symbolic
7460 addresses.  The alternative, selected by \fB\-mno\-explicit\-relocs\fR,
7461 is to use assembler macros instead.
7462 .Sp
7463 \&\fB\-mexplicit\-relocs\fR is usually the default if \s-1GCC\s0 was
7464 configured to use an assembler that supports relocation operators.
7465 However, there are two exceptions:
7466 .RS 4
7467 .IP "*" 4
7468 \&\s-1GCC\s0 is not yet able to generate explicit relocations for the combination
7469 of \fB\-mabi=64\fR and \fB\-mno\-abicalls\fR.  This will be addressed
7470 in a future release.
7471 .IP "*" 4
7472 The combination of \fB\-mabicalls\fR and \fB\-fno\-unit\-at\-a\-time\fR
7473 implies \fB\-mno\-explicit\-relocs\fR unless explicitly overridden.
7474 This is because, when generating abicalls, the choice of relocation
7475 depends on whether a symbol is local or global.  In some rare cases,
7476 \&\s-1GCC\s0 will not be able to decide this until the whole compilation unit
7477 has been read.
7478 .RE
7479 .RS 4
7480 .RE
7481 .IP "\fB\-mrnames\fR" 4
7482 .IX Item "-mrnames"
7483 .PD 0
7484 .IP "\fB\-mno\-rnames\fR" 4
7485 .IX Item "-mno-rnames"
7486 .PD
7487 Generate (do not generate) code that refers to registers using their
7488 software names.  The default is \fB\-mno\-rnames\fR, which tells \s-1GCC\s0
7489 to use hardware names like \fB$4\fR instead of software names like
7490 \&\fBa0\fR.  The only assembler known to support \fB\-rnames\fR is
7491 the Algorithmics assembler.
7492 .IP "\fB\-mcheck\-zero\-division\fR" 4
7493 .IX Item "-mcheck-zero-division"
7494 .PD 0
7495 .IP "\fB\-mno\-check\-zero\-division\fR" 4
7496 .IX Item "-mno-check-zero-division"
7497 .PD
7498 Trap (do not trap) on integer division by zero.  The default is
7499 \&\fB\-mcheck\-zero\-division\fR.
7500 .IP "\fB\-mmemcpy\fR" 4
7501 .IX Item "-mmemcpy"
7502 .PD 0
7503 .IP "\fB\-mno\-memcpy\fR" 4
7504 .IX Item "-mno-memcpy"
7505 .PD
7506 Force (do not force) the use of \f(CW\*(C`memcpy()\*(C'\fR for non-trivial block
7507 moves.  The default is \fB\-mno\-memcpy\fR, which allows \s-1GCC\s0 to inline
7508 most constant-sized copies.
7509 .IP "\fB\-mlong\-calls\fR" 4
7510 .IX Item "-mlong-calls"
7511 .PD 0
7512 .IP "\fB\-mno\-long\-calls\fR" 4
7513 .IX Item "-mno-long-calls"
7514 .PD
7515 Disable (do not disable) use of the \f(CW\*(C`jal\*(C'\fR instruction.  Calling
7516 functions using \f(CW\*(C`jal\*(C'\fR is more efficient but requires the caller
7517 and callee to be in the same 256 megabyte segment.
7518 .Sp
7519 This option has no effect on abicalls code.  The default is
7520 \&\fB\-mno\-long\-calls\fR.
7521 .IP "\fB\-mmad\fR" 4
7522 .IX Item "-mmad"
7523 .PD 0
7524 .IP "\fB\-mno\-mad\fR" 4
7525 .IX Item "-mno-mad"
7526 .PD
7527 Enable (disable) use of the \f(CW\*(C`mad\*(C'\fR, \f(CW\*(C`madu\*(C'\fR and \f(CW\*(C`mul\*(C'\fR
7528 instructions, as provided by the R4650 \s-1ISA\s0.
7529 .IP "\fB\-mfused\-madd\fR" 4
7530 .IX Item "-mfused-madd"
7531 .PD 0
7532 .IP "\fB\-mno\-fused\-madd\fR" 4
7533 .IX Item "-mno-fused-madd"
7534 .PD
7535 Enable (disable) use of the floating point multiply-accumulate
7536 instructions, when they are available.  The default is
7537 \&\fB\-mfused\-madd\fR.
7538 .Sp
7539 When multiply-accumulate instructions are used, the intermediate
7540 product is calculated to infinite precision and is not subject to
7541 the \s-1FCSR\s0 Flush to Zero bit.  This may be undesirable in some
7542 circumstances.
7543 .IP "\fB\-nocpp\fR" 4
7544 .IX Item "-nocpp"
7545 Tell the \s-1MIPS\s0 assembler to not run its preprocessor over user
7546 assembler files (with a \fB.s\fR suffix) when assembling them.
7547 .IP "\fB\-mfix\-sb1\fR" 4
7548 .IX Item "-mfix-sb1"
7549 .PD 0
7550 .IP "\fB\-mno\-fix\-sb1\fR" 4
7551 .IX Item "-mno-fix-sb1"
7552 .PD
7553 Work around certain \s-1SB\-1\s0 \s-1CPU\s0 core errata.
7554 (This flag currently works around the \s-1SB\-1\s0 revision 2
7555 ``F1'' and ``F2'' floating point errata.)
7556 .IP "\fB\-mflush\-func=\fR\fIfunc\fR" 4
7557 .IX Item "-mflush-func=func"
7558 .PD 0
7559 .IP "\fB\-mno\-flush\-func\fR" 4
7560 .IX Item "-mno-flush-func"
7561 .PD
7562 Specifies the function to call to flush the I and D caches, or to not
7563 call any such function.  If called, the function must take the same
7564 arguments as the common \f(CW\*(C`_flush_func()\*(C'\fR, that is, the address of the
7565 memory range for which the cache is being flushed, the size of the
7566 memory range, and the number 3 (to flush both caches).  The default
7567 depends on the target \s-1GCC\s0 was configured for, but commonly is either
7568 \&\fB_flush_func\fR or \fB_\|_cpu_flush\fR.
7569 .IP "\fB\-mbranch\-likely\fR" 4
7570 .IX Item "-mbranch-likely"
7571 .PD 0
7572 .IP "\fB\-mno\-branch\-likely\fR" 4
7573 .IX Item "-mno-branch-likely"
7574 .PD
7575 Enable or disable use of Branch Likely instructions, regardless of the
7576 default for the selected architecture.  By default, Branch Likely
7577 instructions may be generated if they are supported by the selected
7578 architecture.  An exception is for the \s-1MIPS32\s0 and \s-1MIPS64\s0 architectures
7579 and processors which implement those architectures; for those, Branch
7580 Likely instructions will not be generated by default because the \s-1MIPS32\s0
7581 and \s-1MIPS64\s0 architectures specifically deprecate their use.
7582 .PP
7583 \fIIntel 386 and \s-1AMD\s0 x86\-64 Options\fR
7584 .IX Subsection "Intel 386 and AMD x86-64 Options"
7585 .PP
7586 These \fB\-m\fR options are defined for the i386 and x86\-64 family of
7587 computers:
7588 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
7589 .IX Item "-mtune=cpu-type"
7590 Tune to \fIcpu-type\fR everything applicable about the generated code, except
7591 for the \s-1ABI\s0 and the set of available instructions.  The choices for
7592 \&\fIcpu-type\fR are:
7593 .RS 4
7594 .IP "\fIi386\fR" 4
7595 .IX Item "i386"
7596 Original Intel's i386 \s-1CPU\s0.
7597 .IP "\fIi486\fR" 4
7598 .IX Item "i486"
7599 Intel's i486 \s-1CPU\s0.  (No scheduling is implemented for this chip.)
7600 .IP "\fIi586, pentium\fR" 4
7601 .IX Item "i586, pentium"
7602 Intel Pentium \s-1CPU\s0 with no \s-1MMX\s0 support.
7603 .IP "\fIpentium-mmx\fR" 4
7604 .IX Item "pentium-mmx"
7605 Intel PentiumMMX \s-1CPU\s0 based on Pentium core with \s-1MMX\s0 instruction set support.
7606 .IP "\fIi686, pentiumpro\fR" 4
7607 .IX Item "i686, pentiumpro"
7608 Intel PentiumPro \s-1CPU\s0.
7609 .IP "\fIpentium2\fR" 4
7610 .IX Item "pentium2"
7611 Intel Pentium2 \s-1CPU\s0 based on PentiumPro core with \s-1MMX\s0 instruction set support.
7612 .IP "\fIpentium3, pentium3m\fR" 4
7613 .IX Item "pentium3, pentium3m"
7614 Intel Pentium3 \s-1CPU\s0 based on PentiumPro core with \s-1MMX\s0 and \s-1SSE\s0 instruction set
7615 support.
7616 .IP "\fIpentium-m\fR" 4
7617 .IX Item "pentium-m"
7618 Low power version of Intel Pentium3 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set
7619 support.  Used by Centrino notebooks.
7620 .IP "\fIpentium4, pentium4m\fR" 4
7621 .IX Item "pentium4, pentium4m"
7622 Intel Pentium4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set support.
7623 .IP "\fIprescott\fR" 4
7624 .IX Item "prescott"
7625 Improved version of Intel Pentium4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0 and \s-1SSE3\s0 instruction
7626 set support.
7627 .IP "\fInocona\fR" 4
7628 .IX Item "nocona"
7629 Improved version of Intel Pentium4 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0,
7630 \&\s-1SSE2\s0 and \s-1SSE3\s0 instruction set support.
7631 .IP "\fIk6\fR" 4
7632 .IX Item "k6"
7633 \&\s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 instruction set support.
7634 .IP "\fIk6\-2, k6\-3\fR" 4
7635 .IX Item "k6-2, k6-3"
7636 Improved versions of \s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 and 3dNOW! instruction set support.
7637 .IP "\fIathlon, athlon-tbird\fR" 4
7638 .IX Item "athlon, athlon-tbird"
7639 \&\s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3dNOW!, enhanced 3dNOW! and \s-1SSE\s0 prefetch instructions
7640 support.
7641 .IP "\fIathlon\-4, athlon\-xp, athlon-mp\fR" 4
7642 .IX Item "athlon-4, athlon-xp, athlon-mp"
7643 Improved \s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3dNOW!, enhanced 3dNOW! and full \s-1SSE\s0
7644 instruction set support.
7645 .IP "\fIk8, opteron, athlon64, athlon-fx\fR" 4
7646 .IX Item "k8, opteron, athlon64, athlon-fx"
7647 \&\s-1AMD\s0 K8 core based CPUs with x86\-64 instruction set support.  (This supersets
7648 \&\s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, 3dNOW!, enhanced 3dNOW! and 64\-bit instruction set extensions.)
7649 .IP "\fIwinchip\-c6\fR" 4
7650 .IX Item "winchip-c6"
7651 \&\s-1IDT\s0 Winchip C6 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 instruction
7652 set support.
7653 .IP "\fIwinchip2\fR" 4
7654 .IX Item "winchip2"
7655 \&\s-1IDT\s0 Winchip2 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 and 3dNOW!
7656 instruction set support.
7657 .IP "\fIc3\fR" 4
7658 .IX Item "c3"
7659 Via C3 \s-1CPU\s0 with \s-1MMX\s0 and 3dNOW!  instruction set support.  (No scheduling is
7660 implemented for this chip.)
7661 .IP "\fIc3\-2\fR" 4
7662 .IX Item "c3-2"
7663 Via C3\-2 \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.  (No scheduling is
7664 implemented for this chip.)
7665 .RE
7666 .RS 4
7667 .Sp
7668 While picking a specific \fIcpu-type\fR will schedule things appropriately
7669 for that particular chip, the compiler will not generate any code that
7670 does not run on the i386 without the \fB\-march=\fR\fIcpu-type\fR option
7671 being used.
7672 .RE
7673 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
7674 .IX Item "-march=cpu-type"
7675 Generate instructions for the machine type \fIcpu-type\fR.  The choices
7676 for \fIcpu-type\fR are the same as for \fB\-mtune\fR.  Moreover,
7677 specifying \fB\-march=\fR\fIcpu-type\fR implies \fB\-mtune=\fR\fIcpu-type\fR.
7678 .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
7679 .IX Item "-mcpu=cpu-type"
7680 A deprecated synonym for \fB\-mtune\fR.
7681 .IP "\fB\-m386\fR" 4
7682 .IX Item "-m386"
7683 .PD 0
7684 .IP "\fB\-m486\fR" 4
7685 .IX Item "-m486"
7686 .IP "\fB\-mpentium\fR" 4
7687 .IX Item "-mpentium"
7688 .IP "\fB\-mpentiumpro\fR" 4
7689 .IX Item "-mpentiumpro"
7690 .PD
7691 These options are synonyms for \fB\-mtune=i386\fR, \fB\-mtune=i486\fR,
7692 \&\fB\-mtune=pentium\fR, and \fB\-mtune=pentiumpro\fR respectively.
7693 These synonyms are deprecated.
7694 .IP "\fB\-mfpmath=\fR\fIunit\fR" 4
7695 .IX Item "-mfpmath=unit"
7696 Generate floating point arithmetics for selected unit \fIunit\fR.  The choices
7697 for \fIunit\fR are:
7698 .RS 4
7699 .IP "\fB387\fR" 4
7700 .IX Item "387"
7701 Use the standard 387 floating point coprocessor present majority of chips and
7702 emulated otherwise.  Code compiled with this option will run almost everywhere.
7703 The temporary results are computed in 80bit precision instead of precision
7704 specified by the type resulting in slightly different results compared to most
7705 of other chips. See \fB\-ffloat\-store\fR for more detailed description.
7706 .Sp
7707 This is the default choice for i386 compiler.
7708 .IP "\fBsse\fR" 4
7709 .IX Item "sse"
7710 Use scalar floating point instructions present in the \s-1SSE\s0 instruction set.
7711 This instruction set is supported by Pentium3 and newer chips, in the \s-1AMD\s0 line
7712 by Athlon\-4, Athlon-xp and Athlon-mp chips.  The earlier version of \s-1SSE\s0
7713 instruction set supports only single precision arithmetics, thus the double and
7714 extended precision arithmetics is still done using 387.  Later version, present
7715 only in Pentium4 and the future \s-1AMD\s0 x86\-64 chips supports double precision
7716 arithmetics too.
7717 .Sp
7718 For i387 you need to use \fB\-march=\fR\fIcpu-type\fR, \fB\-msse\fR or
7719 \&\fB\-msse2\fR switches to enable \s-1SSE\s0 extensions and make this option
7720 effective.  For x86\-64 compiler, these extensions are enabled by default.
7721 .Sp
7722 The resulting code should be considerably faster in the majority of cases and avoid
7723 the numerical instability problems of 387 code, but may break some existing
7724 code that expects temporaries to be 80bit.
7725 .Sp
7726 This is the default choice for the x86\-64 compiler.
7727 .IP "\fBsse,387\fR" 4
7728 .IX Item "sse,387"
7729 Attempt to utilize both instruction sets at once.  This effectively double the
7730 amount of available registers and on chips with separate execution units for
7731 387 and \s-1SSE\s0 the execution resources too.  Use this option with care, as it is
7732 still experimental, because the \s-1GCC\s0 register allocator does not model separate
7733 functional units well resulting in instable performance.
7734 .RE
7735 .RS 4
7736 .RE
7737 .IP "\fB\-masm=\fR\fIdialect\fR" 4
7738 .IX Item "-masm=dialect"
7739 Output asm instructions using selected \fIdialect\fR. Supported choices are
7740 \&\fBintel\fR or \fBatt\fR (the default one).
7741 .IP "\fB\-mieee\-fp\fR" 4
7742 .IX Item "-mieee-fp"
7743 .PD 0
7744 .IP "\fB\-mno\-ieee\-fp\fR" 4
7745 .IX Item "-mno-ieee-fp"
7746 .PD
7747 Control whether or not the compiler uses \s-1IEEE\s0 floating point
7748 comparisons.  These handle correctly the case where the result of a
7749 comparison is unordered.
7750 .IP "\fB\-msoft\-float\fR" 4
7751 .IX Item "-msoft-float"
7752 Generate output containing library calls for floating point.
7753 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC\s0.
7754 Normally the facilities of the machine's usual C compiler are used, but
7755 this can't be done directly in cross\-compilation.  You must make your
7756 own arrangements to provide suitable library functions for
7757 cross\-compilation.
7758 .Sp
7759 On machines where a function returns floating point results in the 80387
7760 register stack, some floating point opcodes may be emitted even if
7761 \&\fB\-msoft\-float\fR is used.
7762 .IP "\fB\-mno\-fp\-ret\-in\-387\fR" 4
7763 .IX Item "-mno-fp-ret-in-387"
7764 Do not use the \s-1FPU\s0 registers for return values of functions.
7765 .Sp
7766 The usual calling convention has functions return values of types
7767 \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR in an \s-1FPU\s0 register, even if there
7768 is no \s-1FPU\s0.  The idea is that the operating system should emulate
7769 an \s-1FPU\s0.
7770 .Sp
7771 The option \fB\-mno\-fp\-ret\-in\-387\fR causes such values to be returned
7772 in ordinary \s-1CPU\s0 registers instead.
7773 .IP "\fB\-mno\-fancy\-math\-387\fR" 4
7774 .IX Item "-mno-fancy-math-387"
7775 Some 387 emulators do not support the \f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR and
7776 \&\f(CW\*(C`sqrt\*(C'\fR instructions for the 387.  Specify this option to avoid
7777 generating those instructions.  This option is the default on FreeBSD,
7778 OpenBSD and NetBSD.  This option is overridden when \fB\-march\fR
7779 indicates that the target cpu will always have an \s-1FPU\s0 and so the
7780 instruction will not need emulation.  As of revision 2.6.1, these
7781 instructions are not generated unless you also use the
7782 \&\fB\-funsafe\-math\-optimizations\fR switch.
7783 .IP "\fB\-malign\-double\fR" 4
7784 .IX Item "-malign-double"
7785 .PD 0
7786 .IP "\fB\-mno\-align\-double\fR" 4
7787 .IX Item "-mno-align-double"
7788 .PD
7789 Control whether \s-1GCC\s0 aligns \f(CW\*(C`double\*(C'\fR, \f(CW\*(C`long double\*(C'\fR, and
7790 \&\f(CW\*(C`long long\*(C'\fR variables on a two word boundary or a one word
7791 boundary.  Aligning \f(CW\*(C`double\*(C'\fR variables on a two word boundary will
7792 produce code that runs somewhat faster on a \fBPentium\fR at the
7793 expense of more memory.
7794 .Sp
7795 \&\fBWarning:\fR if you use the \fB\-malign\-double\fR switch,
7796 structures containing the above types will be aligned differently than
7797 the published application binary interface specifications for the 386
7798 and will not be binary compatible with structures in code compiled
7799 without that switch.
7800 .IP "\fB\-m96bit\-long\-double\fR" 4
7801 .IX Item "-m96bit-long-double"
7802 .PD 0
7803 .IP "\fB\-m128bit\-long\-double\fR" 4
7804 .IX Item "-m128bit-long-double"
7805 .PD
7806 These switches control the size of \f(CW\*(C`long double\*(C'\fR type. The i386
7807 application binary interface specifies the size to be 96 bits,
7808 so \fB\-m96bit\-long\-double\fR is the default in 32 bit mode.
7809 .Sp
7810 Modern architectures (Pentium and newer) would prefer \f(CW\*(C`long double\*(C'\fR
7811 to be aligned to an 8 or 16 byte boundary.  In arrays or structures
7812 conforming to the \s-1ABI\s0, this would not be possible.  So specifying a
7813 \&\fB\-m128bit\-long\-double\fR will align \f(CW\*(C`long double\*(C'\fR
7814 to a 16 byte boundary by padding the \f(CW\*(C`long double\*(C'\fR with an additional
7815 32 bit zero.
7816 .Sp
7817 In the x86\-64 compiler, \fB\-m128bit\-long\-double\fR is the default choice as
7818 its \s-1ABI\s0 specifies that \f(CW\*(C`long double\*(C'\fR is to be aligned on 16 byte boundary.
7819 .Sp
7820 Notice that neither of these options enable any extra precision over the x87
7821 standard of 80 bits for a \f(CW\*(C`long double\*(C'\fR.
7822 .Sp
7823 \&\fBWarning:\fR if you override the default value for your target \s-1ABI\s0, the
7824 structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables will change
7825 their size as well as function calling convention for function taking
7826 \&\f(CW\*(C`long double\*(C'\fR will be modified.  Hence they will not be binary
7827 compatible with arrays or structures in code compiled without that switch.
7828 .IP "\fB\-msvr3\-shlib\fR" 4
7829 .IX Item "-msvr3-shlib"
7830 .PD 0
7831 .IP "\fB\-mno\-svr3\-shlib\fR" 4
7832 .IX Item "-mno-svr3-shlib"
7833 .PD
7834 Control whether \s-1GCC\s0 places uninitialized local variables into the
7835 \&\f(CW\*(C`bss\*(C'\fR or \f(CW\*(C`data\*(C'\fR segments.  \fB\-msvr3\-shlib\fR places them
7836 into \f(CW\*(C`bss\*(C'\fR.  These options are meaningful only on System V Release 3.
7837 .IP "\fB\-mrtd\fR" 4
7838 .IX Item "-mrtd"
7839 Use a different function-calling convention, in which functions that
7840 take a fixed number of arguments return with the \f(CW\*(C`ret\*(C'\fR \fInum\fR
7841 instruction, which pops their arguments while returning.  This saves one
7842 instruction in the caller since there is no need to pop the arguments
7843 there.
7844 .Sp
7845 You can specify that an individual function is called with this calling
7846 sequence with the function attribute \fBstdcall\fR.  You can also
7847 override the \fB\-mrtd\fR option by using the function attribute
7848 \&\fBcdecl\fR.  
7849 .Sp
7850 \&\fBWarning:\fR this calling convention is incompatible with the one
7851 normally used on Unix, so you cannot use it if you need to call
7852 libraries compiled with the Unix compiler.
7853 .Sp
7854 Also, you must provide function prototypes for all functions that
7855 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
7856 otherwise incorrect code will be generated for calls to those
7857 functions.
7858 .Sp
7859 In addition, seriously incorrect code will result if you call a
7860 function with too many arguments.  (Normally, extra arguments are
7861 harmlessly ignored.)
7862 .IP "\fB\-mregparm=\fR\fInum\fR" 4
7863 .IX Item "-mregparm=num"
7864 Control how many registers are used to pass integer arguments.  By
7865 default, no registers are used to pass arguments, and at most 3
7866 registers can be used.  You can control this behavior for a specific
7867 function by using the function attribute \fBregparm\fR.
7868 .Sp
7869 \&\fBWarning:\fR if you use this switch, and
7870 \&\fInum\fR is nonzero, then you must build all modules with the same
7871 value, including any libraries.  This includes the system libraries and
7872 startup modules.
7873 .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
7874 .IX Item "-mpreferred-stack-boundary=num"
7875 Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
7876 byte boundary.  If \fB\-mpreferred\-stack\-boundary\fR is not specified,
7877 the default is 4 (16 bytes or 128 bits), except when optimizing for code
7878 size (\fB\-Os\fR), in which case the default is the minimum correct
7879 alignment (4 bytes for x86, and 8 bytes for x86\-64).
7880 .Sp
7881 On Pentium and PentiumPro, \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long double\*(C'\fR values
7882 should be aligned to an 8 byte boundary (see \fB\-malign\-double\fR) or
7883 suffer significant run time performance penalties.  On Pentium \s-1III\s0, the
7884 Streaming \s-1SIMD\s0 Extension (\s-1SSE\s0) data type \f(CW\*(C`_\|_m128\*(C'\fR suffers similar
7885 penalties if it is not 16 byte aligned.
7886 .Sp
7887 To ensure proper alignment of this values on the stack, the stack boundary
7888 must be as aligned as that required by any value stored on the stack.
7889 Further, every function must be generated such that it keeps the stack
7890 aligned.  Thus calling a function compiled with a higher preferred
7891 stack boundary from a function compiled with a lower preferred stack
7892 boundary will most likely misalign the stack.  It is recommended that
7893 libraries that use callbacks always use the default setting.
7894 .Sp
7895 This extra alignment does consume extra stack space, and generally
7896 increases code size.  Code that is sensitive to stack space usage, such
7897 as embedded systems and operating system kernels, may want to reduce the
7898 preferred alignment to \fB\-mpreferred\-stack\-boundary=2\fR.
7899 .IP "\fB\-mmmx\fR" 4
7900 .IX Item "-mmmx"
7901 .PD 0
7902 .IP "\fB\-mno\-mmx\fR" 4
7903 .IX Item "-mno-mmx"
7904 .IP "\fB\-msse\fR" 4
7905 .IX Item "-msse"
7906 .IP "\fB\-mno\-sse\fR" 4
7907 .IX Item "-mno-sse"
7908 .IP "\fB\-msse2\fR" 4
7909 .IX Item "-msse2"
7910 .IP "\fB\-mno\-sse2\fR" 4
7911 .IX Item "-mno-sse2"
7912 .IP "\fB\-msse3\fR" 4
7913 .IX Item "-msse3"
7914 .IP "\fB\-mno\-sse3\fR" 4
7915 .IX Item "-mno-sse3"
7916 .IP "\fB\-m3dnow\fR" 4
7917 .IX Item "-m3dnow"
7918 .IP "\fB\-mno\-3dnow\fR" 4
7919 .IX Item "-mno-3dnow"
7920 .PD
7921 These switches enable or disable the use of built-in functions that allow
7922 direct access to the \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0 and 3Dnow extensions of the
7923 instruction set.
7924 .Sp
7925 To have \s-1SSE/SSE2\s0 instructions generated automatically from floating-point
7926 code, see \fB\-mfpmath=sse\fR.
7927 .IP "\fB\-mpush\-args\fR" 4
7928 .IX Item "-mpush-args"
7929 .PD 0
7930 .IP "\fB\-mno\-push\-args\fR" 4
7931 .IX Item "-mno-push-args"
7932 .PD
7933 Use \s-1PUSH\s0 operations to store outgoing parameters.  This method is shorter
7934 and usually equally fast as method using \s-1SUB/MOV\s0 operations and is enabled
7935 by default.  In some cases disabling it may improve performance because of
7936 improved scheduling and reduced dependencies.
7937 .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
7938 .IX Item "-maccumulate-outgoing-args"
7939 If enabled, the maximum amount of space required for outgoing arguments will be
7940 computed in the function prologue.  This is faster on most modern CPUs
7941 because of reduced dependencies, improved scheduling and reduced stack usage
7942 when preferred stack boundary is not equal to 2.  The drawback is a notable
7943 increase in code size.  This switch implies \fB\-mno\-push\-args\fR.
7944 .IP "\fB\-mthreads\fR" 4
7945 .IX Item "-mthreads"
7946 Support thread-safe exception handling on \fBMingw32\fR.  Code that relies
7947 on thread-safe exception handling must compile and link all code with the
7948 \&\fB\-mthreads\fR option.  When compiling, \fB\-mthreads\fR defines
7949 \&\fB\-D_MT\fR; when linking, it links in a special thread helper library
7950 \&\fB\-lmingwthrd\fR which cleans up per thread exception handling data.
7951 .IP "\fB\-mno\-align\-stringops\fR" 4
7952 .IX Item "-mno-align-stringops"
7953 Do not align destination of inlined string operations.  This switch reduces
7954 code size and improves performance in case the destination is already aligned,
7955 but \s-1GCC\s0 doesn't know about it.
7956 .IP "\fB\-minline\-all\-stringops\fR" 4
7957 .IX Item "-minline-all-stringops"
7958 By default \s-1GCC\s0 inlines string operations only when destination is known to be
7959 aligned at least to 4 byte boundary.  This enables more inlining, increase code
7960 size, but may improve performance of code that depends on fast memcpy, strlen
7961 and memset for short lengths.
7962 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
7963 .IX Item "-momit-leaf-frame-pointer"
7964 Don't keep the frame pointer in a register for leaf functions.  This
7965 avoids the instructions to save, set up and restore frame pointers and
7966 makes an extra register available in leaf functions.  The option
7967 \&\fB\-fomit\-frame\-pointer\fR removes the frame pointer for all functions
7968 which might make debugging harder.
7969 .IP "\fB\-mtls\-direct\-seg\-refs\fR" 4
7970 .IX Item "-mtls-direct-seg-refs"
7971 .PD 0
7972 .IP "\fB\-mno\-tls\-direct\-seg\-refs\fR" 4
7973 .IX Item "-mno-tls-direct-seg-refs"
7974 .PD
7975 Controls whether \s-1TLS\s0 variables may be accessed with offsets from the
7976 \&\s-1TLS\s0 segment register (\f(CW%gs\fR for 32\-bit, \f(CW%fs\fR for 64\-bit),
7977 or whether the thread base pointer must be added.  Whether or not this
7978 is legal depends on the operating system, and whether it maps the
7979 segment to cover the entire \s-1TLS\s0 area.
7980 .Sp
7981 For systems that use \s-1GNU\s0 libc, the default is on.
7982 .PP
7983 These \fB\-m\fR switches are supported in addition to the above
7984 on \s-1AMD\s0 x86\-64 processors in 64\-bit environments.
7985 .IP "\fB\-m32\fR" 4
7986 .IX Item "-m32"
7987 .PD 0
7988 .IP "\fB\-m64\fR" 4
7989 .IX Item "-m64"
7990 .PD
7991 Generate code for a 32\-bit or 64\-bit environment.
7992 The 32\-bit environment sets int, long and pointer to 32 bits and
7993 generates code that runs on any i386 system.
7994 The 64\-bit environment sets int to 32 bits and long and pointer
7995 to 64 bits and generates code for \s-1AMD\s0's x86\-64 architecture.
7996 .IP "\fB\-mno\-red\-zone\fR" 4
7997 .IX Item "-mno-red-zone"
7998 Do not use a so called red zone for x86\-64 code.  The red zone is mandated
7999 by the x86\-64 \s-1ABI\s0, it is a 128\-byte area beyond the location of the
8000 stack pointer that will not be modified by signal or interrupt handlers
8001 and therefore can be used for temporary data without adjusting the stack
8002 pointer.  The flag \fB\-mno\-red\-zone\fR disables this red zone.
8003 .IP "\fB\-mcmodel=small\fR" 4
8004 .IX Item "-mcmodel=small"
8005 Generate code for the small code model: the program and its symbols must
8006 be linked in the lower 2 \s-1GB\s0 of the address space.  Pointers are 64 bits.
8007 Programs can be statically or dynamically linked.  This is the default
8008 code model.
8009 .IP "\fB\-mcmodel=kernel\fR" 4
8010 .IX Item "-mcmodel=kernel"
8011 Generate code for the kernel code model.  The kernel runs in the
8012 negative 2 \s-1GB\s0 of the address space.
8013 This model has to be used for Linux kernel code.
8014 .IP "\fB\-mcmodel=medium\fR" 4
8015 .IX Item "-mcmodel=medium"
8016 Generate code for the medium model: The program is linked in the lower 2
8017 \&\s-1GB\s0 of the address space but symbols can be located anywhere in the
8018 address space.  Programs can be statically or dynamically linked, but
8019 building of shared libraries are not supported with the medium model.
8020 .IP "\fB\-mcmodel=large\fR" 4
8021 .IX Item "-mcmodel=large"
8022 Generate code for the large model: This model makes no assumptions
8023 about addresses and sizes of sections.  Currently \s-1GCC\s0 does not implement
8024 this model.
8025 .PP
8026 \fI\s-1HPPA\s0 Options\fR
8027 .IX Subsection "HPPA Options"
8028 .PP
8029 These \fB\-m\fR options are defined for the \s-1HPPA\s0 family of computers:
8030 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
8031 .IX Item "-march=architecture-type"
8032 Generate code for the specified architecture.  The choices for
8033 \&\fIarchitecture-type\fR are \fB1.0\fR for \s-1PA\s0 1.0, \fB1.1\fR for \s-1PA\s0
8034 1.1, and \fB2.0\fR for \s-1PA\s0 2.0 processors.  Refer to
8035 \&\fI/usr/lib/sched.models\fR on an HP-UX system to determine the proper
8036 architecture option for your machine.  Code compiled for lower numbered
8037 architectures will run on higher numbered architectures, but not the
8038 other way around.
8039 .Sp
8040 \&\s-1PA\s0 2.0 support currently requires gas snapshot 19990413 or later.  The
8041 next release of binutils (current is 2.9.1) will probably contain \s-1PA\s0 2.0
8042 support.
8043 .IP "\fB\-mpa\-risc\-1\-0\fR" 4
8044 .IX Item "-mpa-risc-1-0"
8045 .PD 0
8046 .IP "\fB\-mpa\-risc\-1\-1\fR" 4
8047 .IX Item "-mpa-risc-1-1"
8048 .IP "\fB\-mpa\-risc\-2\-0\fR" 4
8049 .IX Item "-mpa-risc-2-0"
8050 .PD
8051 Synonyms for \fB\-march=1.0\fR, \fB\-march=1.1\fR, and \fB\-march=2.0\fR respectively.
8052 .IP "\fB\-mbig\-switch\fR" 4
8053 .IX Item "-mbig-switch"
8054 Generate code suitable for big switch tables.  Use this option only if
8055 the assembler/linker complain about out of range branches within a switch
8056 table.
8057 .IP "\fB\-mjump\-in\-delay\fR" 4
8058 .IX Item "-mjump-in-delay"
8059 Fill delay slots of function calls with unconditional jump instructions
8060 by modifying the return pointer for the function call to be the target
8061 of the conditional jump.
8062 .IP "\fB\-mdisable\-fpregs\fR" 4
8063 .IX Item "-mdisable-fpregs"
8064 Prevent floating point registers from being used in any manner.  This is
8065 necessary for compiling kernels which perform lazy context switching of
8066 floating point registers.  If you use this option and attempt to perform
8067 floating point operations, the compiler will abort.
8068 .IP "\fB\-mdisable\-indexing\fR" 4
8069 .IX Item "-mdisable-indexing"
8070 Prevent the compiler from using indexing address modes.  This avoids some
8071 rather obscure problems when compiling \s-1MIG\s0 generated code under \s-1MACH\s0.
8072 .IP "\fB\-mno\-space\-regs\fR" 4
8073 .IX Item "-mno-space-regs"
8074 Generate code that assumes the target has no space registers.  This allows
8075 \&\s-1GCC\s0 to generate faster indirect calls and use unscaled index address modes.
8076 .Sp
8077 Such code is suitable for level 0 \s-1PA\s0 systems and kernels.
8078 .IP "\fB\-mfast\-indirect\-calls\fR" 4
8079 .IX Item "-mfast-indirect-calls"
8080 Generate code that assumes calls never cross space boundaries.  This
8081 allows \s-1GCC\s0 to emit code which performs faster indirect calls.
8082 .Sp
8083 This option will not work in the presence of shared libraries or nested
8084 functions.
8085 .IP "\fB\-mlong\-load\-store\fR" 4
8086 .IX Item "-mlong-load-store"
8087 Generate 3\-instruction load and store sequences as sometimes required by
8088 the HP-UX 10 linker.  This is equivalent to the \fB+k\fR option to
8089 the \s-1HP\s0 compilers.
8090 .IP "\fB\-mportable\-runtime\fR" 4
8091 .IX Item "-mportable-runtime"
8092 Use the portable calling conventions proposed by \s-1HP\s0 for \s-1ELF\s0 systems.
8093 .IP "\fB\-mgas\fR" 4
8094 .IX Item "-mgas"
8095 Enable the use of assembler directives only \s-1GAS\s0 understands.
8096 .IP "\fB\-mschedule=\fR\fIcpu-type\fR" 4
8097 .IX Item "-mschedule=cpu-type"
8098 Schedule code according to the constraints for the machine type
8099 \&\fIcpu-type\fR.  The choices for \fIcpu-type\fR are \fB700\fR
8100 \&\fB7100\fR, \fB7100LC\fR, \fB7200\fR, \fB7300\fR and \fB8000\fR.  Refer
8101 to \fI/usr/lib/sched.models\fR on an HP-UX system to determine the
8102 proper scheduling option for your machine.  The default scheduling is
8103 \&\fB8000\fR.
8104 .IP "\fB\-mlinker\-opt\fR" 4
8105 .IX Item "-mlinker-opt"
8106 Enable the optimization pass in the HP-UX linker.  Note this makes symbolic
8107 debugging impossible.  It also triggers a bug in the HP-UX 8 and HP-UX 9
8108 linkers in which they give bogus error messages when linking some programs.
8109 .IP "\fB\-msoft\-float\fR" 4
8110 .IX Item "-msoft-float"
8111 Generate output containing library calls for floating point.
8112 \&\fBWarning:\fR the requisite libraries are not available for all \s-1HPPA\s0
8113 targets.  Normally the facilities of the machine's usual C compiler are
8114 used, but this cannot be done directly in cross\-compilation.  You must make
8115 your own arrangements to provide suitable library functions for
8116 cross\-compilation.  The embedded target \fBhppa1.1\-*\-pro\fR
8117 does provide software floating point support.
8118 .Sp
8119 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
8120 therefore, it is only useful if you compile \fIall\fR of a program with
8121 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
8122 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
8123 this to work.
8124 .IP "\fB\-msio\fR" 4
8125 .IX Item "-msio"
8126 Generate the predefine, \f(CW\*(C`_SIO\*(C'\fR, for server \s-1IO\s0.  The default is
8127 \&\fB\-mwsio\fR.  This generates the predefines, \f(CW\*(C`_\|_hp9000s700\*(C'\fR,
8128 \&\f(CW\*(C`_\|_hp9000s700_\|_\*(C'\fR and \f(CW\*(C`_WSIO\*(C'\fR, for workstation \s-1IO\s0.  These
8129 options are available under HP-UX and \s-1HI\-UX\s0.
8130 .IP "\fB\-mgnu\-ld\fR" 4
8131 .IX Item "-mgnu-ld"
8132 Use \s-1GNU\s0 ld specific options.  This passes \fB\-shared\fR to ld when
8133 building a shared library.  It is the default when \s-1GCC\s0 is configured,
8134 explicitly or implicitly, with the \s-1GNU\s0 linker.  This option does not
8135 have any affect on which ld is called, it only changes what parameters
8136 are passed to that ld.  The ld that is called is determined by the
8137 \&\fB\-\-with\-ld\fR configure option, \s-1GCC\s0's program search path, and
8138 finally by the user's \fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed
8139 using \fBwhich `gcc \-print\-prog\-name=ld`\fR.  This option is only available
8140 on the 64 bit HP-UX \s-1GCC\s0, i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
8141 .IP "\fB\-mhp\-ld\fR" 4
8142 .IX Item "-mhp-ld"
8143 Use \s-1HP\s0 ld specific options.  This passes \fB\-b\fR to ld when building
8144 a shared library and passes \fB+Accept TypeMismatch\fR to ld on all
8145 links.  It is the default when \s-1GCC\s0 is configured, explicitly or
8146 implicitly, with the \s-1HP\s0 linker.  This option does not have any affect on
8147 which ld is called, it only changes what parameters are passed to that
8148 ld.  The ld that is called is determined by the \fB\-\-with\-ld\fR
8149 configure option, \s-1GCC\s0's program search path, and finally by the user's
8150 \&\fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed using \fBwhich
8151 `gcc \-print\-prog\-name=ld`\fR.  This option is only available on the 64 bit
8152 HP-UX \s-1GCC\s0, i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
8153 .IP "\fB\-mlong\-calls\fR" 4
8154 .IX Item "-mlong-calls"
8155 Generate code that uses long call sequences.  This ensures that a call
8156 is always able to reach linker generated stubs.  The default is to generate
8157 long calls only when the distance from the call site to the beginning
8158 of the function or translation unit, as the case may be, exceeds a
8159 predefined limit set by the branch type being used.  The limits for
8160 normal calls are 7,600,000 and 240,000 bytes, respectively for the
8161 \&\s-1PA\s0 2.0 and \s-1PA\s0 1.X architectures.  Sibcalls are always limited at
8162 240,000 bytes.
8163 .Sp
8164 Distances are measured from the beginning of functions when using the
8165 \&\fB\-ffunction\-sections\fR option, or when using the \fB\-mgas\fR
8166 and \fB\-mno\-portable\-runtime\fR options together under HP-UX with
8167 the \s-1SOM\s0 linker.
8168 .Sp
8169 It is normally not desirable to use this option as it will degrade
8170 performance.  However, it may be useful in large applications,
8171 particularly when partial linking is used to build the application.
8172 .Sp
8173 The types of long calls used depends on the capabilities of the
8174 assembler and linker, and the type of code being generated.  The
8175 impact on systems that support long absolute calls, and long pic
8176 symbol-difference or pc-relative calls should be relatively small.
8177 However, an indirect call is used on 32\-bit \s-1ELF\s0 systems in pic code
8178 and it is quite long.
8179 .IP "\fB\-nolibdld\fR" 4
8180 .IX Item "-nolibdld"
8181 Suppress the generation of link options to search libdld.sl when the
8182 \&\fB\-static\fR option is specified on HP-UX 10 and later.
8183 .IP "\fB\-static\fR" 4
8184 .IX Item "-static"
8185 The HP-UX implementation of setlocale in libc has a dependency on
8186 libdld.sl.  There isn't an archive version of libdld.sl.  Thus,
8187 when the \fB\-static\fR option is specified, special link options
8188 are needed to resolve this dependency.
8189 .Sp
8190 On HP-UX 10 and later, the \s-1GCC\s0 driver adds the necessary options to
8191 link with libdld.sl when the \fB\-static\fR option is specified.
8192 This causes the resulting binary to be dynamic.  On the 64\-bit port,
8193 the linkers generate dynamic binaries by default in any case.  The
8194 \&\fB\-nolibdld\fR option can be used to prevent the \s-1GCC\s0 driver from
8195 adding these link options.
8196 .IP "\fB\-threads\fR" 4
8197 .IX Item "-threads"
8198 Add support for multithreading with the \fIdce thread\fR library
8199 under \s-1HP\-UX\s0.  This option sets flags for both the preprocessor and
8200 linker.
8201 .PP
8202 \fIIntel 960 Options\fR
8203 .IX Subsection "Intel 960 Options"
8204 .PP
8205 These \fB\-m\fR options are defined for the Intel 960 implementations:
8206 .IP "\fB\-m\fR\fIcpu-type\fR" 4
8207 .IX Item "-mcpu-type"
8208 Assume the defaults for the machine type \fIcpu-type\fR for some of
8209 the other options, including instruction scheduling, floating point
8210 support, and addressing modes.  The choices for \fIcpu-type\fR are
8211 \&\fBka\fR, \fBkb\fR, \fBmc\fR, \fBca\fR, \fBcf\fR,
8212 \&\fBsa\fR, and \fBsb\fR.
8213 The default is
8214 \&\fBkb\fR.
8215 .IP "\fB\-mnumerics\fR" 4
8216 .IX Item "-mnumerics"
8217 .PD 0
8218 .IP "\fB\-msoft\-float\fR" 4
8219 .IX Item "-msoft-float"
8220 .PD
8221 The \fB\-mnumerics\fR option indicates that the processor does support
8222 floating-point instructions.  The \fB\-msoft\-float\fR option indicates
8223 that floating-point support should not be assumed.
8224 .IP "\fB\-mleaf\-procedures\fR" 4
8225 .IX Item "-mleaf-procedures"
8226 .PD 0
8227 .IP "\fB\-mno\-leaf\-procedures\fR" 4
8228 .IX Item "-mno-leaf-procedures"
8229 .PD
8230 Do (or do not) attempt to alter leaf procedures to be callable with the
8231 \&\f(CW\*(C`bal\*(C'\fR instruction as well as \f(CW\*(C`call\*(C'\fR.  This will result in more
8232 efficient code for explicit calls when the \f(CW\*(C`bal\*(C'\fR instruction can be
8233 substituted by the assembler or linker, but less efficient code in other
8234 cases, such as calls via function pointers, or using a linker that doesn't
8235 support this optimization.
8236 .IP "\fB\-mtail\-call\fR" 4
8237 .IX Item "-mtail-call"
8238 .PD 0
8239 .IP "\fB\-mno\-tail\-call\fR" 4
8240 .IX Item "-mno-tail-call"
8241 .PD
8242 Do (or do not) make additional attempts (beyond those of the
8243 machine-independent portions of the compiler) to optimize tail-recursive
8244 calls into branches.  You may not want to do this because the detection of
8245 cases where this is not valid is not totally complete.  The default is
8246 \&\fB\-mno\-tail\-call\fR.
8247 .IP "\fB\-mcomplex\-addr\fR" 4
8248 .IX Item "-mcomplex-addr"
8249 .PD 0
8250 .IP "\fB\-mno\-complex\-addr\fR" 4
8251 .IX Item "-mno-complex-addr"
8252 .PD
8253 Assume (or do not assume) that the use of a complex addressing mode is a
8254 win on this implementation of the i960.  Complex addressing modes may not
8255 be worthwhile on the K\-series, but they definitely are on the C\-series.
8256 The default is currently \fB\-mcomplex\-addr\fR for all processors except
8257 the \s-1CB\s0 and \s-1CC\s0.
8258 .IP "\fB\-mcode\-align\fR" 4
8259 .IX Item "-mcode-align"
8260 .PD 0
8261 .IP "\fB\-mno\-code\-align\fR" 4
8262 .IX Item "-mno-code-align"
8263 .PD
8264 Align code to 8\-byte boundaries for faster fetching (or don't bother).
8265 Currently turned on by default for C\-series implementations only.
8266 .IP "\fB\-mic\-compat\fR" 4
8267 .IX Item "-mic-compat"
8268 .PD 0
8269 .IP "\fB\-mic2.0\-compat\fR" 4
8270 .IX Item "-mic2.0-compat"
8271 .IP "\fB\-mic3.0\-compat\fR" 4
8272 .IX Item "-mic3.0-compat"
8273 .PD
8274 Enable compatibility with iC960 v2.0 or v3.0.
8275 .IP "\fB\-masm\-compat\fR" 4
8276 .IX Item "-masm-compat"
8277 .PD 0
8278 .IP "\fB\-mintel\-asm\fR" 4
8279 .IX Item "-mintel-asm"
8280 .PD
8281 Enable compatibility with the iC960 assembler.
8282 .IP "\fB\-mstrict\-align\fR" 4
8283 .IX Item "-mstrict-align"
8284 .PD 0
8285 .IP "\fB\-mno\-strict\-align\fR" 4
8286 .IX Item "-mno-strict-align"
8287 .PD
8288 Do not permit (do permit) unaligned accesses.
8289 .IP "\fB\-mold\-align\fR" 4
8290 .IX Item "-mold-align"
8291 Enable structure-alignment compatibility with Intel's gcc release version
8292 1.3 (based on gcc 1.37).  This option implies \fB\-mstrict\-align\fR.
8293 .IP "\fB\-mlong\-double\-64\fR" 4
8294 .IX Item "-mlong-double-64"
8295 Implement type \fBlong double\fR as 64\-bit floating point numbers.
8296 Without the option \fBlong double\fR is implemented by 80\-bit
8297 floating point numbers.  The only reason we have it because there is
8298 no 128\-bit \fBlong double\fR support in \fBfp\-bit.c\fR yet.  So it
8299 is only useful for people using soft-float targets.  Otherwise, we
8300 should recommend against use of it.
8301 .PP
8302 \fI\s-1DEC\s0 Alpha Options\fR
8303 .IX Subsection "DEC Alpha Options"
8304 .PP
8305 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha implementations:
8306 .IP "\fB\-mno\-soft\-float\fR" 4
8307 .IX Item "-mno-soft-float"
8308 .PD 0
8309 .IP "\fB\-msoft\-float\fR" 4
8310 .IX Item "-msoft-float"
8311 .PD
8312 Use (do not use) the hardware floating-point instructions for
8313 floating-point operations.  When \fB\-msoft\-float\fR is specified,
8314 functions in \fIlibgcc.a\fR will be used to perform floating-point
8315 operations.  Unless they are replaced by routines that emulate the
8316 floating-point operations, or compiled in such a way as to call such
8317 emulations routines, these routines will issue floating-point
8318 operations.   If you are compiling for an Alpha without floating-point
8319 operations, you must ensure that the library is built so as not to call
8320 them.
8321 .Sp
8322 Note that Alpha implementations without floating-point operations are
8323 required to have floating-point registers.
8324 .IP "\fB\-mfp\-reg\fR" 4
8325 .IX Item "-mfp-reg"
8326 .PD 0
8327 .IP "\fB\-mno\-fp\-regs\fR" 4
8328 .IX Item "-mno-fp-regs"
8329 .PD
8330 Generate code that uses (does not use) the floating-point register set.
8331 \&\fB\-mno\-fp\-regs\fR implies \fB\-msoft\-float\fR.  If the floating-point
8332 register set is not used, floating point operands are passed in integer
8333 registers as if they were integers and floating-point results are passed
8334 in \f(CW$0\fR instead of \f(CW$f0\fR.  This is a non-standard calling sequence,
8335 so any function with a floating-point argument or return value called by code
8336 compiled with \fB\-mno\-fp\-regs\fR must also be compiled with that
8337 option.
8338 .Sp
8339 A typical use of this option is building a kernel that does not use,
8340 and hence need not save and restore, any floating-point registers.
8341 .IP "\fB\-mieee\fR" 4
8342 .IX Item "-mieee"
8343 The Alpha architecture implements floating-point hardware optimized for
8344 maximum performance.  It is mostly compliant with the \s-1IEEE\s0 floating
8345 point standard.  However, for full compliance, software assistance is
8346 required.  This option generates code fully \s-1IEEE\s0 compliant code
8347 \&\fIexcept\fR that the \fIinexact-flag\fR is not maintained (see below).
8348 If this option is turned on, the preprocessor macro \f(CW\*(C`_IEEE_FP\*(C'\fR is
8349 defined during compilation.  The resulting code is less efficient but is
8350 able to correctly support denormalized numbers and exceptional \s-1IEEE\s0
8351 values such as not-a-number and plus/minus infinity.  Other Alpha
8352 compilers call this option \fB\-ieee_with_no_inexact\fR.
8353 .IP "\fB\-mieee\-with\-inexact\fR" 4
8354 .IX Item "-mieee-with-inexact"
8355 This is like \fB\-mieee\fR except the generated code also maintains
8356 the \s-1IEEE\s0 \fIinexact-flag\fR.  Turning on this option causes the
8357 generated code to implement fully-compliant \s-1IEEE\s0 math.  In addition to
8358 \&\f(CW\*(C`_IEEE_FP\*(C'\fR, \f(CW\*(C`_IEEE_FP_EXACT\*(C'\fR is defined as a preprocessor
8359 macro.  On some Alpha implementations the resulting code may execute
8360 significantly slower than the code generated by default.  Since there is
8361 very little code that depends on the \fIinexact-flag\fR, you should
8362 normally not specify this option.  Other Alpha compilers call this
8363 option \fB\-ieee_with_inexact\fR.
8364 .IP "\fB\-mfp\-trap\-mode=\fR\fItrap-mode\fR" 4
8365 .IX Item "-mfp-trap-mode=trap-mode"
8366 This option controls what floating-point related traps are enabled.
8367 Other Alpha compilers call this option \fB\-fptm\fR \fItrap-mode\fR.
8368 The trap mode can be set to one of four values:
8369 .RS 4
8370 .IP "\fBn\fR" 4
8371 .IX Item "n"
8372 This is the default (normal) setting.  The only traps that are enabled
8373 are the ones that cannot be disabled in software (e.g., division by zero
8374 trap).
8375 .IP "\fBu\fR" 4
8376 .IX Item "u"
8377 In addition to the traps enabled by \fBn\fR, underflow traps are enabled
8378 as well.
8379 .IP "\fBsu\fR" 4
8380 .IX Item "su"
8381 Like \fBsu\fR, but the instructions are marked to be safe for software
8382 completion (see Alpha architecture manual for details).
8383 .IP "\fBsui\fR" 4
8384 .IX Item "sui"
8385 Like \fBsu\fR, but inexact traps are enabled as well.
8386 .RE
8387 .RS 4
8388 .RE
8389 .IP "\fB\-mfp\-rounding\-mode=\fR\fIrounding-mode\fR" 4
8390 .IX Item "-mfp-rounding-mode=rounding-mode"
8391 Selects the \s-1IEEE\s0 rounding mode.  Other Alpha compilers call this option
8392 \&\fB\-fprm\fR \fIrounding-mode\fR.  The \fIrounding-mode\fR can be one
8393 of:
8394 .RS 4
8395 .IP "\fBn\fR" 4
8396 .IX Item "n"
8397 Normal \s-1IEEE\s0 rounding mode.  Floating point numbers are rounded towards
8398 the nearest machine number or towards the even machine number in case
8399 of a tie.
8400 .IP "\fBm\fR" 4
8401 .IX Item "m"
8402 Round towards minus infinity.
8403 .IP "\fBc\fR" 4
8404 .IX Item "c"
8405 Chopped rounding mode.  Floating point numbers are rounded towards zero.
8406 .IP "\fBd\fR" 4
8407 .IX Item "d"
8408 Dynamic rounding mode.  A field in the floating point control register
8409 (\fIfpcr\fR, see Alpha architecture reference manual) controls the
8410 rounding mode in effect.  The C library initializes this register for
8411 rounding towards plus infinity.  Thus, unless your program modifies the
8412 \&\fIfpcr\fR, \fBd\fR corresponds to round towards plus infinity.
8413 .RE
8414 .RS 4
8415 .RE
8416 .IP "\fB\-mtrap\-precision=\fR\fItrap-precision\fR" 4
8417 .IX Item "-mtrap-precision=trap-precision"
8418 In the Alpha architecture, floating point traps are imprecise.  This
8419 means without software assistance it is impossible to recover from a
8420 floating trap and program execution normally needs to be terminated.
8421 \&\s-1GCC\s0 can generate code that can assist operating system trap handlers
8422 in determining the exact location that caused a floating point trap.
8423 Depending on the requirements of an application, different levels of
8424 precisions can be selected:
8425 .RS 4
8426 .IP "\fBp\fR" 4
8427 .IX Item "p"
8428 Program precision.  This option is the default and means a trap handler
8429 can only identify which program caused a floating point exception.
8430 .IP "\fBf\fR" 4
8431 .IX Item "f"
8432 Function precision.  The trap handler can determine the function that
8433 caused a floating point exception.
8434 .IP "\fBi\fR" 4
8435 .IX Item "i"
8436 Instruction precision.  The trap handler can determine the exact
8437 instruction that caused a floating point exception.
8438 .RE
8439 .RS 4
8440 .Sp
8441 Other Alpha compilers provide the equivalent options called
8442 \&\fB\-scope_safe\fR and \fB\-resumption_safe\fR.
8443 .RE
8444 .IP "\fB\-mieee\-conformant\fR" 4
8445 .IX Item "-mieee-conformant"
8446 This option marks the generated code as \s-1IEEE\s0 conformant.  You must not
8447 use this option unless you also specify \fB\-mtrap\-precision=i\fR and either
8448 \&\fB\-mfp\-trap\-mode=su\fR or \fB\-mfp\-trap\-mode=sui\fR.  Its only effect
8449 is to emit the line \fB.eflag 48\fR in the function prologue of the
8450 generated assembly file.  Under \s-1DEC\s0 Unix, this has the effect that
8451 IEEE-conformant math library routines will be linked in.
8452 .IP "\fB\-mbuild\-constants\fR" 4
8453 .IX Item "-mbuild-constants"
8454 Normally \s-1GCC\s0 examines a 32\- or 64\-bit integer constant to
8455 see if it can construct it from smaller constants in two or three
8456 instructions.  If it cannot, it will output the constant as a literal and
8457 generate code to load it from the data segment at runtime.
8458 .Sp
8459 Use this option to require \s-1GCC\s0 to construct \fIall\fR integer constants
8460 using code, even if it takes more instructions (the maximum is six).
8461 .Sp
8462 You would typically use this option to build a shared library dynamic
8463 loader.  Itself a shared library, it must relocate itself in memory
8464 before it can find the variables and constants in its own data segment.
8465 .IP "\fB\-malpha\-as\fR" 4
8466 .IX Item "-malpha-as"
8467 .PD 0
8468 .IP "\fB\-mgas\fR" 4
8469 .IX Item "-mgas"
8470 .PD
8471 Select whether to generate code to be assembled by the vendor-supplied
8472 assembler (\fB\-malpha\-as\fR) or by the \s-1GNU\s0 assembler \fB\-mgas\fR.
8473 .IP "\fB\-mbwx\fR" 4
8474 .IX Item "-mbwx"
8475 .PD 0
8476 .IP "\fB\-mno\-bwx\fR" 4
8477 .IX Item "-mno-bwx"
8478 .IP "\fB\-mcix\fR" 4
8479 .IX Item "-mcix"
8480 .IP "\fB\-mno\-cix\fR" 4
8481 .IX Item "-mno-cix"
8482 .IP "\fB\-mfix\fR" 4
8483 .IX Item "-mfix"
8484 .IP "\fB\-mno\-fix\fR" 4
8485 .IX Item "-mno-fix"
8486 .IP "\fB\-mmax\fR" 4
8487 .IX Item "-mmax"
8488 .IP "\fB\-mno\-max\fR" 4
8489 .IX Item "-mno-max"
8490 .PD
8491 Indicate whether \s-1GCC\s0 should generate code to use the optional \s-1BWX\s0,
8492 \&\s-1CIX\s0, \s-1FIX\s0 and \s-1MAX\s0 instruction sets.  The default is to use the instruction
8493 sets supported by the \s-1CPU\s0 type specified via \fB\-mcpu=\fR option or that
8494 of the \s-1CPU\s0 on which \s-1GCC\s0 was built if none was specified.
8495 .IP "\fB\-mfloat\-vax\fR" 4
8496 .IX Item "-mfloat-vax"
8497 .PD 0
8498 .IP "\fB\-mfloat\-ieee\fR" 4
8499 .IX Item "-mfloat-ieee"
8500 .PD
8501 Generate code that uses (does not use) \s-1VAX\s0 F and G floating point
8502 arithmetic instead of \s-1IEEE\s0 single and double precision.
8503 .IP "\fB\-mexplicit\-relocs\fR" 4
8504 .IX Item "-mexplicit-relocs"
8505 .PD 0
8506 .IP "\fB\-mno\-explicit\-relocs\fR" 4
8507 .IX Item "-mno-explicit-relocs"
8508 .PD
8509 Older Alpha assemblers provided no way to generate symbol relocations
8510 except via assembler macros.  Use of these macros does not allow
8511 optimal instruction scheduling.  \s-1GNU\s0 binutils as of version 2.12
8512 supports a new syntax that allows the compiler to explicitly mark
8513 which relocations should apply to which instructions.  This option
8514 is mostly useful for debugging, as \s-1GCC\s0 detects the capabilities of
8515 the assembler when it is built and sets the default accordingly.
8516 .IP "\fB\-msmall\-data\fR" 4
8517 .IX Item "-msmall-data"
8518 .PD 0
8519 .IP "\fB\-mlarge\-data\fR" 4
8520 .IX Item "-mlarge-data"
8521 .PD
8522 When \fB\-mexplicit\-relocs\fR is in effect, static data is
8523 accessed via \fIgp-relative\fR relocations.  When \fB\-msmall\-data\fR
8524 is used, objects 8 bytes long or smaller are placed in a \fIsmall data area\fR
8525 (the \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR sections) and are accessed via
8526 16\-bit relocations off of the \f(CW$gp\fR register.  This limits the
8527 size of the small data area to 64KB, but allows the variables to be
8528 directly accessed via a single instruction.
8529 .Sp
8530 The default is \fB\-mlarge\-data\fR.  With this option the data area
8531 is limited to just below 2GB.  Programs that require more than 2GB of
8532 data must use \f(CW\*(C`malloc\*(C'\fR or \f(CW\*(C`mmap\*(C'\fR to allocate the data in the
8533 heap instead of in the program's data segment.
8534 .Sp
8535 When generating code for shared libraries, \fB\-fpic\fR implies
8536 \&\fB\-msmall\-data\fR and \fB\-fPIC\fR implies \fB\-mlarge\-data\fR.
8537 .IP "\fB\-msmall\-text\fR" 4
8538 .IX Item "-msmall-text"
8539 .PD 0
8540 .IP "\fB\-mlarge\-text\fR" 4
8541 .IX Item "-mlarge-text"
8542 .PD
8543 When \fB\-msmall\-text\fR is used, the compiler assumes that the
8544 code of the entire program (or shared library) fits in 4MB, and is
8545 thus reachable with a branch instruction.  When \fB\-msmall\-data\fR
8546 is used, the compiler can assume that all local symbols share the
8547 same \f(CW$gp\fR value, and thus reduce the number of instructions
8548 required for a function call from 4 to 1.
8549 .Sp
8550 The default is \fB\-mlarge\-text\fR.
8551 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
8552 .IX Item "-mcpu=cpu_type"
8553 Set the instruction set and instruction scheduling parameters for
8554 machine type \fIcpu_type\fR.  You can specify either the \fB\s-1EV\s0\fR
8555 style name or the corresponding chip number.  \s-1GCC\s0 supports scheduling
8556 parameters for the \s-1EV4\s0, \s-1EV5\s0 and \s-1EV6\s0 family of processors and will
8557 choose the default values for the instruction set from the processor
8558 you specify.  If you do not specify a processor type, \s-1GCC\s0 will default
8559 to the processor on which the compiler was built.
8560 .Sp
8561 Supported values for \fIcpu_type\fR are
8562 .RS 4
8563 .IP "\fBev4\fR" 4
8564 .IX Item "ev4"
8565 .PD 0
8566 .IP "\fBev45\fR" 4
8567 .IX Item "ev45"
8568 .IP "\fB21064\fR" 4
8569 .IX Item "21064"
8570 .PD
8571 Schedules as an \s-1EV4\s0 and has no instruction set extensions.
8572 .IP "\fBev5\fR" 4
8573 .IX Item "ev5"
8574 .PD 0
8575 .IP "\fB21164\fR" 4
8576 .IX Item "21164"
8577 .PD
8578 Schedules as an \s-1EV5\s0 and has no instruction set extensions.
8579 .IP "\fBev56\fR" 4
8580 .IX Item "ev56"
8581 .PD 0
8582 .IP "\fB21164a\fR" 4
8583 .IX Item "21164a"
8584 .PD
8585 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 extension.
8586 .IP "\fBpca56\fR" 4
8587 .IX Item "pca56"
8588 .PD 0
8589 .IP "\fB21164pc\fR" 4
8590 .IX Item "21164pc"
8591 .IP "\fB21164PC\fR" 4
8592 .IX Item "21164PC"
8593 .PD
8594 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 and \s-1MAX\s0 extensions.
8595 .IP "\fBev6\fR" 4
8596 .IX Item "ev6"
8597 .PD 0
8598 .IP "\fB21264\fR" 4
8599 .IX Item "21264"
8600 .PD
8601 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
8602 .IP "\fBev67\fR" 4
8603 .IX Item "ev67"
8604 .PD 0
8605 .IP "\fB21264a\fR" 4
8606 .IX Item "21264a"
8607 .PD
8608 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1CIX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
8609 .RE
8610 .RS 4
8611 .RE
8612 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
8613 .IX Item "-mtune=cpu_type"
8614 Set only the instruction scheduling parameters for machine type
8615 \&\fIcpu_type\fR.  The instruction set is not changed.
8616 .IP "\fB\-mmemory\-latency=\fR\fItime\fR" 4
8617 .IX Item "-mmemory-latency=time"
8618 Sets the latency the scheduler should assume for typical memory
8619 references as seen by the application.  This number is highly
8620 dependent on the memory access patterns used by the application
8621 and the size of the external cache on the machine.
8622 .Sp
8623 Valid options for \fItime\fR are
8624 .RS 4
8625 .IP "\fInumber\fR" 4
8626 .IX Item "number"
8627 A decimal number representing clock cycles.
8628 .IP "\fBL1\fR" 4
8629 .IX Item "L1"
8630 .PD 0
8631 .IP "\fBL2\fR" 4
8632 .IX Item "L2"
8633 .IP "\fBL3\fR" 4
8634 .IX Item "L3"
8635 .IP "\fBmain\fR" 4
8636 .IX Item "main"
8637 .PD
8638 The compiler contains estimates of the number of clock cycles for
8639 ``typical'' \s-1EV4\s0 & \s-1EV5\s0 hardware for the Level 1, 2 & 3 caches
8640 (also called Dcache, Scache, and Bcache), as well as to main memory.
8641 Note that L3 is only valid for \s-1EV5\s0.
8642 .RE
8643 .RS 4
8644 .RE
8645 .PP
8646 \fI\s-1DEC\s0 Alpha/VMS Options\fR
8647 .IX Subsection "DEC Alpha/VMS Options"
8648 .PP
8649 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha/VMS implementations:
8650 .IP "\fB\-mvms\-return\-codes\fR" 4
8651 .IX Item "-mvms-return-codes"
8652 Return \s-1VMS\s0 condition codes from main.  The default is to return \s-1POSIX\s0
8653 style condition (e.g. error) codes.
8654 .PP
8655 \fIH8/300 Options\fR
8656 .IX Subsection "H8/300 Options"
8657 .PP
8658 These \fB\-m\fR options are defined for the H8/300 implementations:
8659 .IP "\fB\-mrelax\fR" 4
8660 .IX Item "-mrelax"
8661 Shorten some address references at link time, when possible; uses the
8662 linker option \fB\-relax\fR.  
8663 .IP "\fB\-mh\fR" 4
8664 .IX Item "-mh"
8665 Generate code for the H8/300H.
8666 .IP "\fB\-ms\fR" 4
8667 .IX Item "-ms"
8668 Generate code for the H8S.
8669 .IP "\fB\-mn\fR" 4
8670 .IX Item "-mn"
8671 Generate code for the H8S and H8/300H in the normal mode.  This switch
8672 must be used either with \-mh or \-ms.
8673 .IP "\fB\-ms2600\fR" 4
8674 .IX Item "-ms2600"
8675 Generate code for the H8S/2600.  This switch must be used with \fB\-ms\fR.
8676 .IP "\fB\-mint32\fR" 4
8677 .IX Item "-mint32"
8678 Make \f(CW\*(C`int\*(C'\fR data 32 bits by default.
8679 .IP "\fB\-malign\-300\fR" 4
8680 .IX Item "-malign-300"
8681 On the H8/300H and H8S, use the same alignment rules as for the H8/300.
8682 The default for the H8/300H and H8S is to align longs and floats on 4
8683 byte boundaries.
8684 \&\fB\-malign\-300\fR causes them to be aligned on 2 byte boundaries.
8685 This option has no effect on the H8/300.
8686 .PP
8687 \fI\s-1SH\s0 Options\fR
8688 .IX Subsection "SH Options"
8689 .PP
8690 These \fB\-m\fR options are defined for the \s-1SH\s0 implementations:
8691 .IP "\fB\-m1\fR" 4
8692 .IX Item "-m1"
8693 Generate code for the \s-1SH1\s0.
8694 .IP "\fB\-m2\fR" 4
8695 .IX Item "-m2"
8696 Generate code for the \s-1SH2\s0.
8697 .IP "\fB\-m2e\fR" 4
8698 .IX Item "-m2e"
8699 Generate code for the SH2e.
8700 .IP "\fB\-m3\fR" 4
8701 .IX Item "-m3"
8702 Generate code for the \s-1SH3\s0.
8703 .IP "\fB\-m3e\fR" 4
8704 .IX Item "-m3e"
8705 Generate code for the SH3e.
8706 .IP "\fB\-m4\-nofpu\fR" 4
8707 .IX Item "-m4-nofpu"
8708 Generate code for the \s-1SH4\s0 without a floating-point unit.
8709 .IP "\fB\-m4\-single\-only\fR" 4
8710 .IX Item "-m4-single-only"
8711 Generate code for the \s-1SH4\s0 with a floating-point unit that only
8712 supports single-precision arithmetic.
8713 .IP "\fB\-m4\-single\fR" 4
8714 .IX Item "-m4-single"
8715 Generate code for the \s-1SH4\s0 assuming the floating-point unit is in
8716 single-precision mode by default.
8717 .IP "\fB\-m4\fR" 4
8718 .IX Item "-m4"
8719 Generate code for the \s-1SH4\s0.
8720 .IP "\fB\-mb\fR" 4
8721 .IX Item "-mb"
8722 Compile code for the processor in big endian mode.
8723 .IP "\fB\-ml\fR" 4
8724 .IX Item "-ml"
8725 Compile code for the processor in little endian mode.
8726 .IP "\fB\-mdalign\fR" 4
8727 .IX Item "-mdalign"
8728 Align doubles at 64\-bit boundaries.  Note that this changes the calling
8729 conventions, and thus some functions from the standard C library will
8730 not work unless you recompile it first with \fB\-mdalign\fR.
8731 .IP "\fB\-mrelax\fR" 4
8732 .IX Item "-mrelax"
8733 Shorten some address references at link time, when possible; uses the
8734 linker option \fB\-relax\fR.
8735 .IP "\fB\-mbigtable\fR" 4
8736 .IX Item "-mbigtable"
8737 Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables.  The default is to use
8738 16\-bit offsets.
8739 .IP "\fB\-mfmovd\fR" 4
8740 .IX Item "-mfmovd"
8741 Enable the use of the instruction \f(CW\*(C`fmovd\*(C'\fR.
8742 .IP "\fB\-mhitachi\fR" 4
8743 .IX Item "-mhitachi"
8744 Comply with the calling conventions defined by Renesas.
8745 .IP "\fB\-mnomacsave\fR" 4
8746 .IX Item "-mnomacsave"
8747 Mark the \f(CW\*(C`MAC\*(C'\fR register as call\-clobbered, even if
8748 \&\fB\-mhitachi\fR is given.
8749 .IP "\fB\-mieee\fR" 4
8750 .IX Item "-mieee"
8751 Increase IEEE-compliance of floating-point code.
8752 .IP "\fB\-misize\fR" 4
8753 .IX Item "-misize"
8754 Dump instruction size and location in the assembly code.
8755 .IP "\fB\-mpadstruct\fR" 4
8756 .IX Item "-mpadstruct"
8757 This option is deprecated.  It pads structures to multiple of 4 bytes,
8758 which is incompatible with the \s-1SH\s0 \s-1ABI\s0.
8759 .IP "\fB\-mspace\fR" 4
8760 .IX Item "-mspace"
8761 Optimize for space instead of speed.  Implied by \fB\-Os\fR.
8762 .IP "\fB\-mprefergot\fR" 4
8763 .IX Item "-mprefergot"
8764 When generating position-independent code, emit function calls using
8765 the Global Offset Table instead of the Procedure Linkage Table.
8766 .IP "\fB\-musermode\fR" 4
8767 .IX Item "-musermode"
8768 Generate a library function call to invalidate instruction cache
8769 entries, after fixing up a trampoline.  This library function call
8770 doesn't assume it can write to the whole memory address space.  This
8771 is the default when the target is \f(CW\*(C`sh\-*\-linux*\*(C'\fR.
8772 .PP
8773 \fIOptions for System V\fR
8774 .IX Subsection "Options for System V"
8775 .PP
8776 These additional options are available on System V Release 4 for
8777 compatibility with other compilers on those systems:
8778 .IP "\fB\-G\fR" 4
8779 .IX Item "-G"
8780 Create a shared object.
8781 It is recommended that \fB\-symbolic\fR or \fB\-shared\fR be used instead.
8782 .IP "\fB\-Qy\fR" 4
8783 .IX Item "-Qy"
8784 Identify the versions of each tool used by the compiler, in a
8785 \&\f(CW\*(C`.ident\*(C'\fR assembler directive in the output.
8786 .IP "\fB\-Qn\fR" 4
8787 .IX Item "-Qn"
8788 Refrain from adding \f(CW\*(C`.ident\*(C'\fR directives to the output file (this is
8789 the default).
8790 .IP "\fB\-YP,\fR\fIdirs\fR" 4
8791 .IX Item "-YP,dirs"
8792 Search the directories \fIdirs\fR, and no others, for libraries
8793 specified with \fB\-l\fR.
8794 .IP "\fB\-Ym,\fR\fIdir\fR" 4
8795 .IX Item "-Ym,dir"
8796 Look in the directory \fIdir\fR to find the M4 preprocessor.
8797 The assembler uses this option.
8798 .PP
8799 \fITMS320C3x/C4x Options\fR
8800 .IX Subsection "TMS320C3x/C4x Options"
8801 .PP
8802 These \fB\-m\fR options are defined for TMS320C3x/C4x implementations:
8803 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
8804 .IX Item "-mcpu=cpu_type"
8805 Set the instruction set, register set, and instruction scheduling
8806 parameters for machine type \fIcpu_type\fR.  Supported values for
8807 \&\fIcpu_type\fR are \fBc30\fR, \fBc31\fR, \fBc32\fR, \fBc40\fR, and
8808 \&\fBc44\fR.  The default is \fBc40\fR to generate code for the
8809 \&\s-1TMS320C40\s0.
8810 .IP "\fB\-mbig\-memory\fR" 4
8811 .IX Item "-mbig-memory"
8812 .PD 0
8813 .IP "\fB\-mbig\fR" 4
8814 .IX Item "-mbig"
8815 .IP "\fB\-msmall\-memory\fR" 4
8816 .IX Item "-msmall-memory"
8817 .IP "\fB\-msmall\fR" 4
8818 .IX Item "-msmall"
8819 .PD
8820 Generates code for the big or small memory model.  The small memory
8821 model assumed that all data fits into one 64K word page.  At run-time
8822 the data page (\s-1DP\s0) register must be set to point to the 64K page
8823 containing the .bss and .data program sections.  The big memory model is
8824 the default and requires reloading of the \s-1DP\s0 register for every direct
8825 memory access.
8826 .IP "\fB\-mbk\fR" 4
8827 .IX Item "-mbk"
8828 .PD 0
8829 .IP "\fB\-mno\-bk\fR" 4
8830 .IX Item "-mno-bk"
8831 .PD
8832 Allow (disallow) allocation of general integer operands into the block
8833 count register \s-1BK\s0.
8834 .IP "\fB\-mdb\fR" 4
8835 .IX Item "-mdb"
8836 .PD 0
8837 .IP "\fB\-mno\-db\fR" 4
8838 .IX Item "-mno-db"
8839 .PD
8840 Enable (disable) generation of code using decrement and branch,
8841 DBcond(D), instructions.  This is enabled by default for the C4x.  To be
8842 on the safe side, this is disabled for the C3x, since the maximum
8843 iteration count on the C3x is 2^{23 + 1} (but who iterates loops more than
8844 2^{23} times on the C3x?).  Note that \s-1GCC\s0 will try to reverse a loop so
8845 that it can utilize the decrement and branch instruction, but will give
8846 up if there is more than one memory reference in the loop.  Thus a loop
8847 where the loop counter is decremented can generate slightly more
8848 efficient code, in cases where the \s-1RPTB\s0 instruction cannot be utilized.
8849 .IP "\fB\-mdp\-isr\-reload\fR" 4
8850 .IX Item "-mdp-isr-reload"
8851 .PD 0
8852 .IP "\fB\-mparanoid\fR" 4
8853 .IX Item "-mparanoid"
8854 .PD
8855 Force the \s-1DP\s0 register to be saved on entry to an interrupt service
8856 routine (\s-1ISR\s0), reloaded to point to the data section, and restored on
8857 exit from the \s-1ISR\s0.  This should not be required unless someone has
8858 violated the small memory model by modifying the \s-1DP\s0 register, say within
8859 an object library.
8860 .IP "\fB\-mmpyi\fR" 4
8861 .IX Item "-mmpyi"
8862 .PD 0
8863 .IP "\fB\-mno\-mpyi\fR" 4
8864 .IX Item "-mno-mpyi"
8865 .PD
8866 For the C3x use the 24\-bit \s-1MPYI\s0 instruction for integer multiplies
8867 instead of a library call to guarantee 32\-bit results.  Note that if one
8868 of the operands is a constant, then the multiplication will be performed
8869 using shifts and adds.  If the \fB\-mmpyi\fR option is not specified for the C3x,
8870 then squaring operations are performed inline instead of a library call.
8871 .IP "\fB\-mfast\-fix\fR" 4
8872 .IX Item "-mfast-fix"
8873 .PD 0
8874 .IP "\fB\-mno\-fast\-fix\fR" 4
8875 .IX Item "-mno-fast-fix"
8876 .PD
8877 The C3x/C4x \s-1FIX\s0 instruction to convert a floating point value to an
8878 integer value chooses the nearest integer less than or equal to the
8879 floating point value rather than to the nearest integer.  Thus if the
8880 floating point number is negative, the result will be incorrectly
8881 truncated an additional code is necessary to detect and correct this
8882 case.  This option can be used to disable generation of the additional
8883 code required to correct the result.
8884 .IP "\fB\-mrptb\fR" 4
8885 .IX Item "-mrptb"
8886 .PD 0
8887 .IP "\fB\-mno\-rptb\fR" 4
8888 .IX Item "-mno-rptb"
8889 .PD
8890 Enable (disable) generation of repeat block sequences using the \s-1RPTB\s0
8891 instruction for zero overhead looping.  The \s-1RPTB\s0 construct is only used
8892 for innermost loops that do not call functions or jump across the loop
8893 boundaries.  There is no advantage having nested \s-1RPTB\s0 loops due to the
8894 overhead required to save and restore the \s-1RC\s0, \s-1RS\s0, and \s-1RE\s0 registers.
8895 This is enabled by default with \fB\-O2\fR.
8896 .IP "\fB\-mrpts=\fR\fIcount\fR" 4
8897 .IX Item "-mrpts=count"
8898 .PD 0
8899 .IP "\fB\-mno\-rpts\fR" 4
8900 .IX Item "-mno-rpts"
8901 .PD
8902 Enable (disable) the use of the single instruction repeat instruction
8903 \&\s-1RPTS\s0.  If a repeat block contains a single instruction, and the loop
8904 count can be guaranteed to be less than the value \fIcount\fR, \s-1GCC\s0 will
8905 emit a \s-1RPTS\s0 instruction instead of a \s-1RPTB\s0.  If no value is specified,
8906 then a \s-1RPTS\s0 will be emitted even if the loop count cannot be determined
8907 at compile time.  Note that the repeated instruction following \s-1RPTS\s0 does
8908 not have to be reloaded from memory each iteration, thus freeing up the
8909 \&\s-1CPU\s0 buses for operands.  However, since interrupts are blocked by this
8910 instruction, it is disabled by default.
8911 .IP "\fB\-mloop\-unsigned\fR" 4
8912 .IX Item "-mloop-unsigned"
8913 .PD 0
8914 .IP "\fB\-mno\-loop\-unsigned\fR" 4
8915 .IX Item "-mno-loop-unsigned"
8916 .PD
8917 The maximum iteration count when using \s-1RPTS\s0 and \s-1RPTB\s0 (and \s-1DB\s0 on the C40)
8918 is 2^{31 + 1} since these instructions test if the iteration count is
8919 negative to terminate the loop.  If the iteration count is unsigned
8920 there is a possibility than the 2^{31 + 1} maximum iteration count may be
8921 exceeded.  This switch allows an unsigned iteration count.
8922 .IP "\fB\-mti\fR" 4
8923 .IX Item "-mti"
8924 Try to emit an assembler syntax that the \s-1TI\s0 assembler (asm30) is happy
8925 with.  This also enforces compatibility with the \s-1API\s0 employed by the \s-1TI\s0
8926 C3x C compiler.  For example, long doubles are passed as structures
8927 rather than in floating point registers.
8928 .IP "\fB\-mregparm\fR" 4
8929 .IX Item "-mregparm"
8930 .PD 0
8931 .IP "\fB\-mmemparm\fR" 4
8932 .IX Item "-mmemparm"
8933 .PD
8934 Generate code that uses registers (stack) for passing arguments to functions.
8935 By default, arguments are passed in registers where possible rather
8936 than by pushing arguments on to the stack.
8937 .IP "\fB\-mparallel\-insns\fR" 4
8938 .IX Item "-mparallel-insns"
8939 .PD 0
8940 .IP "\fB\-mno\-parallel\-insns\fR" 4
8941 .IX Item "-mno-parallel-insns"
8942 .PD
8943 Allow the generation of parallel instructions.  This is enabled by
8944 default with \fB\-O2\fR.
8945 .IP "\fB\-mparallel\-mpy\fR" 4
8946 .IX Item "-mparallel-mpy"
8947 .PD 0
8948 .IP "\fB\-mno\-parallel\-mpy\fR" 4
8949 .IX Item "-mno-parallel-mpy"
8950 .PD
8951 Allow the generation of MPY||ADD and MPY||SUB parallel instructions,
8952 provided \fB\-mparallel\-insns\fR is also specified.  These instructions have
8953 tight register constraints which can pessimize the code generation
8954 of large functions.
8955 .PP
8956 \fIV850 Options\fR
8957 .IX Subsection "V850 Options"
8958 .PP
8959 These \fB\-m\fR options are defined for V850 implementations:
8960 .IP "\fB\-mlong\-calls\fR" 4
8961 .IX Item "-mlong-calls"
8962 .PD 0
8963 .IP "\fB\-mno\-long\-calls\fR" 4
8964 .IX Item "-mno-long-calls"
8965 .PD
8966 Treat all calls as being far away (near).  If calls are assumed to be
8967 far away, the compiler will always load the functions address up into a
8968 register, and call indirect through the pointer.
8969 .IP "\fB\-mno\-ep\fR" 4
8970 .IX Item "-mno-ep"
8971 .PD 0
8972 .IP "\fB\-mep\fR" 4
8973 .IX Item "-mep"
8974 .PD
8975 Do not optimize (do optimize) basic blocks that use the same index
8976 pointer 4 or more times to copy pointer into the \f(CW\*(C`ep\*(C'\fR register, and
8977 use the shorter \f(CW\*(C`sld\*(C'\fR and \f(CW\*(C`sst\*(C'\fR instructions.  The \fB\-mep\fR
8978 option is on by default if you optimize.
8979 .IP "\fB\-mno\-prolog\-function\fR" 4
8980 .IX Item "-mno-prolog-function"
8981 .PD 0
8982 .IP "\fB\-mprolog\-function\fR" 4
8983 .IX Item "-mprolog-function"
8984 .PD
8985 Do not use (do use) external functions to save and restore registers
8986 at the prologue and epilogue of a function.  The external functions
8987 are slower, but use less code space if more than one function saves
8988 the same number of registers.  The \fB\-mprolog\-function\fR option
8989 is on by default if you optimize.
8990 .IP "\fB\-mspace\fR" 4
8991 .IX Item "-mspace"
8992 Try to make the code as small as possible.  At present, this just turns
8993 on the \fB\-mep\fR and \fB\-mprolog\-function\fR options.
8994 .IP "\fB\-mtda=\fR\fIn\fR" 4
8995 .IX Item "-mtda=n"
8996 Put static or global variables whose size is \fIn\fR bytes or less into
8997 the tiny data area that register \f(CW\*(C`ep\*(C'\fR points to.  The tiny data
8998 area can hold up to 256 bytes in total (128 bytes for byte references).
8999 .IP "\fB\-msda=\fR\fIn\fR" 4
9000 .IX Item "-msda=n"
9001 Put static or global variables whose size is \fIn\fR bytes or less into
9002 the small data area that register \f(CW\*(C`gp\*(C'\fR points to.  The small data
9003 area can hold up to 64 kilobytes.
9004 .IP "\fB\-mzda=\fR\fIn\fR" 4
9005 .IX Item "-mzda=n"
9006 Put static or global variables whose size is \fIn\fR bytes or less into
9007 the first 32 kilobytes of memory.
9008 .IP "\fB\-mv850\fR" 4
9009 .IX Item "-mv850"
9010 Specify that the target processor is the V850.
9011 .IP "\fB\-mbig\-switch\fR" 4
9012 .IX Item "-mbig-switch"
9013 Generate code suitable for big switch tables.  Use this option only if
9014 the assembler/linker complain about out of range branches within a switch
9015 table.
9016 .IP "\fB\-mapp\-regs\fR" 4
9017 .IX Item "-mapp-regs"
9018 This option will cause r2 and r5 to be used in the code generated by
9019 the compiler.  This setting is the default.
9020 .IP "\fB\-mno\-app\-regs\fR" 4
9021 .IX Item "-mno-app-regs"
9022 This option will cause r2 and r5 to be treated as fixed registers.
9023 .IP "\fB\-mv850e1\fR" 4
9024 .IX Item "-mv850e1"
9025 Specify that the target processor is the V850E1.  The preprocessor
9026 constants \fB_\|_v850e1_\|_\fR and \fB_\|_v850e_\|_\fR will be defined if
9027 this option is used.
9028 .IP "\fB\-mv850e\fR" 4
9029 .IX Item "-mv850e"
9030 Specify that the target processor is the V850E.  The preprocessor
9031 constant \fB_\|_v850e_\|_\fR will be defined if this option is used.
9032 .Sp
9033 If neither \fB\-mv850\fR nor \fB\-mv850e\fR nor \fB\-mv850e1\fR
9034 are defined then a default target processor will be chosen and the
9035 relevant \fB_\|_v850*_\|_\fR preprocessor constant will be defined.
9036 .Sp
9037 The preprocessor constants \fB_\|_v850\fR and \fB_\|_v851_\|_\fR are always
9038 defined, regardless of which processor variant is the target.
9039 .IP "\fB\-mdisable\-callt\fR" 4
9040 .IX Item "-mdisable-callt"
9041 This option will suppress generation of the \s-1CALLT\s0 instruction for the
9042 v850e and v850e1 flavors of the v850 architecture.  The default is
9043 \&\fB\-mno\-disable\-callt\fR which allows the \s-1CALLT\s0 instruction to be used.
9044 .PP
9045 \fI\s-1ARC\s0 Options\fR
9046 .IX Subsection "ARC Options"
9047 .PP
9048 These options are defined for \s-1ARC\s0 implementations:
9049 .IP "\fB\-EL\fR" 4
9050 .IX Item "-EL"
9051 Compile code for little endian mode.  This is the default.
9052 .IP "\fB\-EB\fR" 4
9053 .IX Item "-EB"
9054 Compile code for big endian mode.
9055 .IP "\fB\-mmangle\-cpu\fR" 4
9056 .IX Item "-mmangle-cpu"
9057 Prepend the name of the cpu to all public symbol names.
9058 In multiple-processor systems, there are many \s-1ARC\s0 variants with different
9059 instruction and register set characteristics.  This flag prevents code
9060 compiled for one cpu to be linked with code compiled for another.
9061 No facility exists for handling variants that are ``almost identical''.
9062 This is an all or nothing option.
9063 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
9064 .IX Item "-mcpu=cpu"
9065 Compile code for \s-1ARC\s0 variant \fIcpu\fR.
9066 Which variants are supported depend on the configuration.
9067 All variants support \fB\-mcpu=base\fR, this is the default.
9068 .IP "\fB\-mtext=\fR\fItext-section\fR" 4
9069 .IX Item "-mtext=text-section"
9070 .PD 0
9071 .IP "\fB\-mdata=\fR\fIdata-section\fR" 4
9072 .IX Item "-mdata=data-section"
9073 .IP "\fB\-mrodata=\fR\fIreadonly-data-section\fR" 4
9074 .IX Item "-mrodata=readonly-data-section"
9075 .PD
9076 Put functions, data, and readonly data in \fItext-section\fR,
9077 \&\fIdata-section\fR, and \fIreadonly-data-section\fR respectively
9078 by default.  This can be overridden with the \f(CW\*(C`section\*(C'\fR attribute.
9079 .PP
9080 \fI\s-1NS32K\s0 Options\fR
9081 .IX Subsection "NS32K Options"
9082 .PP
9083 These are the \fB\-m\fR options defined for the 32000 series.  The default
9084 values for these options depends on which style of 32000 was selected when
9085 the compiler was configured; the defaults for the most common choices are
9086 given below.
9087 .IP "\fB\-m32032\fR" 4
9088 .IX Item "-m32032"
9089 .PD 0
9090 .IP "\fB\-m32032\fR" 4
9091 .IX Item "-m32032"
9092 .PD
9093 Generate output for a 32032.  This is the default
9094 when the compiler is configured for 32032 and 32016 based systems.
9095 .IP "\fB\-m32332\fR" 4
9096 .IX Item "-m32332"
9097 .PD 0
9098 .IP "\fB\-m32332\fR" 4
9099 .IX Item "-m32332"
9100 .PD
9101 Generate output for a 32332.  This is the default
9102 when the compiler is configured for 32332\-based systems.
9103 .IP "\fB\-m32532\fR" 4
9104 .IX Item "-m32532"
9105 .PD 0
9106 .IP "\fB\-m32532\fR" 4
9107 .IX Item "-m32532"
9108 .PD
9109 Generate output for a 32532.  This is the default
9110 when the compiler is configured for 32532\-based systems.
9111 .IP "\fB\-m32081\fR" 4
9112 .IX Item "-m32081"
9113 Generate output containing 32081 instructions for floating point.
9114 This is the default for all systems.
9115 .IP "\fB\-m32381\fR" 4
9116 .IX Item "-m32381"
9117 Generate output containing 32381 instructions for floating point.  This
9118 also implies \fB\-m32081\fR.  The 32381 is only compatible with the 32332
9119 and 32532 cpus.  This is the default for the pc532\-netbsd configuration.
9120 .IP "\fB\-mmulti\-add\fR" 4
9121 .IX Item "-mmulti-add"
9122 Try and generate multiply-add floating point instructions \f(CW\*(C`polyF\*(C'\fR
9123 and \f(CW\*(C`dotF\*(C'\fR.  This option is only available if the \fB\-m32381\fR
9124 option is in effect.  Using these instructions requires changes to
9125 register allocation which generally has a negative impact on
9126 performance.  This option should only be enabled when compiling code
9127 particularly likely to make heavy use of multiply-add instructions.
9128 .IP "\fB\-mnomulti\-add\fR" 4
9129 .IX Item "-mnomulti-add"
9130 Do not try and generate multiply-add floating point instructions
9131 \&\f(CW\*(C`polyF\*(C'\fR and \f(CW\*(C`dotF\*(C'\fR.  This is the default on all platforms.
9132 .IP "\fB\-msoft\-float\fR" 4
9133 .IX Item "-msoft-float"
9134 Generate output containing library calls for floating point.
9135 \&\fBWarning:\fR the requisite libraries may not be available.
9136 .IP "\fB\-mieee\-compare\fR" 4
9137 .IX Item "-mieee-compare"
9138 .PD 0
9139 .IP "\fB\-mno\-ieee\-compare\fR" 4
9140 .IX Item "-mno-ieee-compare"
9141 .PD
9142 Control whether or not the compiler uses \s-1IEEE\s0 floating point
9143 comparisons.  These handle correctly the case where the result of a
9144 comparison is unordered.
9145 \&\fBWarning:\fR the requisite kernel support may not be available.
9146 .IP "\fB\-mnobitfield\fR" 4
9147 .IX Item "-mnobitfield"
9148 Do not use the bit-field instructions.  On some machines it is faster to
9149 use shifting and masking operations.  This is the default for the pc532.
9150 .IP "\fB\-mbitfield\fR" 4
9151 .IX Item "-mbitfield"
9152 Do use the bit-field instructions.  This is the default for all platforms
9153 except the pc532.
9154 .IP "\fB\-mrtd\fR" 4
9155 .IX Item "-mrtd"
9156 Use a different function-calling convention, in which functions
9157 that take a fixed number of arguments return pop their
9158 arguments on return with the \f(CW\*(C`ret\*(C'\fR instruction.
9159 .Sp
9160 This calling convention is incompatible with the one normally
9161 used on Unix, so you cannot use it if you need to call libraries
9162 compiled with the Unix compiler.
9163 .Sp
9164 Also, you must provide function prototypes for all functions that
9165 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
9166 otherwise incorrect code will be generated for calls to those
9167 functions.
9168 .Sp
9169 In addition, seriously incorrect code will result if you call a
9170 function with too many arguments.  (Normally, extra arguments are
9171 harmlessly ignored.)
9172 .Sp
9173 This option takes its name from the 680x0 \f(CW\*(C`rtd\*(C'\fR instruction.
9174 .IP "\fB\-mregparam\fR" 4
9175 .IX Item "-mregparam"
9176 Use a different function-calling convention where the first two arguments
9177 are passed in registers.
9178 .Sp
9179 This calling convention is incompatible with the one normally
9180 used on Unix, so you cannot use it if you need to call libraries
9181 compiled with the Unix compiler.
9182 .IP "\fB\-mnoregparam\fR" 4
9183 .IX Item "-mnoregparam"
9184 Do not pass any arguments in registers.  This is the default for all
9185 targets.
9186 .IP "\fB\-msb\fR" 4
9187 .IX Item "-msb"
9188 It is \s-1OK\s0 to use the sb as an index register which is always loaded with
9189 zero.  This is the default for the pc532\-netbsd target.
9190 .IP "\fB\-mnosb\fR" 4
9191 .IX Item "-mnosb"
9192 The sb register is not available for use or has not been initialized to
9193 zero by the run time system.  This is the default for all targets except
9194 the pc532\-netbsd.  It is also implied whenever \fB\-mhimem\fR or
9195 \&\fB\-fpic\fR is set.
9196 .IP "\fB\-mhimem\fR" 4
9197 .IX Item "-mhimem"
9198 Many ns32000 series addressing modes use displacements of up to 512MB.
9199 If an address is above 512MB then displacements from zero can not be used.
9200 This option causes code to be generated which can be loaded above 512MB.
9201 This may be useful for operating systems or \s-1ROM\s0 code.
9202 .IP "\fB\-mnohimem\fR" 4
9203 .IX Item "-mnohimem"
9204 Assume code will be loaded in the first 512MB of virtual address space.
9205 This is the default for all platforms.
9206 .PP
9207 \fI\s-1AVR\s0 Options\fR
9208 .IX Subsection "AVR Options"
9209 .PP
9210 These options are defined for \s-1AVR\s0 implementations:
9211 .IP "\fB\-mmcu=\fR\fImcu\fR" 4
9212 .IX Item "-mmcu=mcu"
9213 Specify \s-1ATMEL\s0 \s-1AVR\s0 instruction set or \s-1MCU\s0 type.
9214 .Sp
9215 Instruction set avr1 is for the minimal \s-1AVR\s0 core, not supported by the C
9216 compiler, only for assembler programs (\s-1MCU\s0 types: at90s1200, attiny10,
9217 attiny11, attiny12, attiny15, attiny28).
9218 .Sp
9219 Instruction set avr2 (default) is for the classic \s-1AVR\s0 core with up to
9220 8K program memory space (\s-1MCU\s0 types: at90s2313, at90s2323, attiny22,
9221 at90s2333, at90s2343, at90s4414, at90s4433, at90s4434, at90s8515,
9222 at90c8534, at90s8535).
9223 .Sp
9224 Instruction set avr3 is for the classic \s-1AVR\s0 core with up to 128K program
9225 memory space (\s-1MCU\s0 types: atmega103, atmega603, at43usb320, at76c711).
9226 .Sp
9227 Instruction set avr4 is for the enhanced \s-1AVR\s0 core with up to 8K program
9228 memory space (\s-1MCU\s0 types: atmega8, atmega83, atmega85).
9229 .Sp
9230 Instruction set avr5 is for the enhanced \s-1AVR\s0 core with up to 128K program
9231 memory space (\s-1MCU\s0 types: atmega16, atmega161, atmega163, atmega32, atmega323,
9232 atmega64, atmega128, at43usb355, at94k).
9233 .IP "\fB\-msize\fR" 4
9234 .IX Item "-msize"
9235 Output instruction sizes to the asm file.
9236 .IP "\fB\-minit\-stack=\fR\fIN\fR" 4
9237 .IX Item "-minit-stack=N"
9238 Specify the initial stack address, which may be a symbol or numeric value,
9239 \&\fB_\|_stack\fR is the default.
9240 .IP "\fB\-mno\-interrupts\fR" 4
9241 .IX Item "-mno-interrupts"
9242 Generated code is not compatible with hardware interrupts.
9243 Code size will be smaller.
9244 .IP "\fB\-mcall\-prologues\fR" 4
9245 .IX Item "-mcall-prologues"
9246 Functions prologues/epilogues expanded as call to appropriate
9247 subroutines.  Code size will be smaller.
9248 .IP "\fB\-mno\-tablejump\fR" 4
9249 .IX Item "-mno-tablejump"
9250 Do not generate tablejump insns which sometimes increase code size.
9251 .IP "\fB\-mtiny\-stack\fR" 4
9252 .IX Item "-mtiny-stack"
9253 Change only the low 8 bits of the stack pointer.
9254 .PP
9255 \fIMCore Options\fR
9256 .IX Subsection "MCore Options"
9257 .PP
9258 These are the \fB\-m\fR options defined for the Motorola M*Core
9259 processors.
9260 .IP "\fB\-mhardlit\fR" 4
9261 .IX Item "-mhardlit"
9262 .PD 0
9263 .IP "\fB\-mno\-hardlit\fR" 4
9264 .IX Item "-mno-hardlit"
9265 .PD
9266 Inline constants into the code stream if it can be done in two
9267 instructions or less.
9268 .IP "\fB\-mdiv\fR" 4
9269 .IX Item "-mdiv"
9270 .PD 0
9271 .IP "\fB\-mno\-div\fR" 4
9272 .IX Item "-mno-div"
9273 .PD
9274 Use the divide instruction.  (Enabled by default).
9275 .IP "\fB\-mrelax\-immediate\fR" 4
9276 .IX Item "-mrelax-immediate"
9277 .PD 0
9278 .IP "\fB\-mno\-relax\-immediate\fR" 4
9279 .IX Item "-mno-relax-immediate"
9280 .PD
9281 Allow arbitrary sized immediates in bit operations.
9282 .IP "\fB\-mwide\-bitfields\fR" 4
9283 .IX Item "-mwide-bitfields"
9284 .PD 0
9285 .IP "\fB\-mno\-wide\-bitfields\fR" 4
9286 .IX Item "-mno-wide-bitfields"
9287 .PD
9288 Always treat bit-fields as int\-sized.
9289 .IP "\fB\-m4byte\-functions\fR" 4
9290 .IX Item "-m4byte-functions"
9291 .PD 0
9292 .IP "\fB\-mno\-4byte\-functions\fR" 4
9293 .IX Item "-mno-4byte-functions"
9294 .PD
9295 Force all functions to be aligned to a four byte boundary.
9296 .IP "\fB\-mcallgraph\-data\fR" 4
9297 .IX Item "-mcallgraph-data"
9298 .PD 0
9299 .IP "\fB\-mno\-callgraph\-data\fR" 4
9300 .IX Item "-mno-callgraph-data"
9301 .PD
9302 Emit callgraph information.
9303 .IP "\fB\-mslow\-bytes\fR" 4
9304 .IX Item "-mslow-bytes"
9305 .PD 0
9306 .IP "\fB\-mno\-slow\-bytes\fR" 4
9307 .IX Item "-mno-slow-bytes"
9308 .PD
9309 Prefer word access when reading byte quantities.
9310 .IP "\fB\-mlittle\-endian\fR" 4
9311 .IX Item "-mlittle-endian"
9312 .PD 0
9313 .IP "\fB\-mbig\-endian\fR" 4
9314 .IX Item "-mbig-endian"
9315 .PD
9316 Generate code for a little endian target.
9317 .IP "\fB\-m210\fR" 4
9318 .IX Item "-m210"
9319 .PD 0
9320 .IP "\fB\-m340\fR" 4
9321 .IX Item "-m340"
9322 .PD
9323 Generate code for the 210 processor.
9324 .PP
9325 \fI\s-1IA\-64\s0 Options\fR
9326 .IX Subsection "IA-64 Options"
9327 .PP
9328 These are the \fB\-m\fR options defined for the Intel \s-1IA\-64\s0 architecture.
9329 .IP "\fB\-mbig\-endian\fR" 4
9330 .IX Item "-mbig-endian"
9331 Generate code for a big endian target.  This is the default for \s-1HP\-UX\s0.
9332 .IP "\fB\-mlittle\-endian\fR" 4
9333 .IX Item "-mlittle-endian"
9334 Generate code for a little endian target.  This is the default for \s-1AIX5\s0
9335 and GNU/Linux.
9336 .IP "\fB\-mgnu\-as\fR" 4
9337 .IX Item "-mgnu-as"
9338 .PD 0
9339 .IP "\fB\-mno\-gnu\-as\fR" 4
9340 .IX Item "-mno-gnu-as"
9341 .PD
9342 Generate (or don't) code for the \s-1GNU\s0 assembler.  This is the default.
9343 .IP "\fB\-mgnu\-ld\fR" 4
9344 .IX Item "-mgnu-ld"
9345 .PD 0
9346 .IP "\fB\-mno\-gnu\-ld\fR" 4
9347 .IX Item "-mno-gnu-ld"
9348 .PD
9349 Generate (or don't) code for the \s-1GNU\s0 linker.  This is the default.
9350 .IP "\fB\-mno\-pic\fR" 4
9351 .IX Item "-mno-pic"
9352 Generate code that does not use a global pointer register.  The result
9353 is not position independent code, and violates the \s-1IA\-64\s0 \s-1ABI\s0.
9354 .IP "\fB\-mvolatile\-asm\-stop\fR" 4
9355 .IX Item "-mvolatile-asm-stop"
9356 .PD 0
9357 .IP "\fB\-mno\-volatile\-asm\-stop\fR" 4
9358 .IX Item "-mno-volatile-asm-stop"
9359 .PD
9360 Generate (or don't) a stop bit immediately before and after volatile asm
9361 statements.
9362 .IP "\fB\-mb\-step\fR" 4
9363 .IX Item "-mb-step"
9364 Generate code that works around Itanium B step errata.
9365 .IP "\fB\-mregister\-names\fR" 4
9366 .IX Item "-mregister-names"
9367 .PD 0
9368 .IP "\fB\-mno\-register\-names\fR" 4
9369 .IX Item "-mno-register-names"
9370 .PD
9371 Generate (or don't) \fBin\fR, \fBloc\fR, and \fBout\fR register names for
9372 the stacked registers.  This may make assembler output more readable.
9373 .IP "\fB\-mno\-sdata\fR" 4
9374 .IX Item "-mno-sdata"
9375 .PD 0
9376 .IP "\fB\-msdata\fR" 4
9377 .IX Item "-msdata"
9378 .PD
9379 Disable (or enable) optimizations that use the small data section.  This may
9380 be useful for working around optimizer bugs.
9381 .IP "\fB\-mconstant\-gp\fR" 4
9382 .IX Item "-mconstant-gp"
9383 Generate code that uses a single constant global pointer value.  This is
9384 useful when compiling kernel code.
9385 .IP "\fB\-mauto\-pic\fR" 4
9386 .IX Item "-mauto-pic"
9387 Generate code that is self\-relocatable.  This implies \fB\-mconstant\-gp\fR.
9388 This is useful when compiling firmware code.
9389 .IP "\fB\-minline\-float\-divide\-min\-latency\fR" 4
9390 .IX Item "-minline-float-divide-min-latency"
9391 Generate code for inline divides of floating point values
9392 using the minimum latency algorithm.
9393 .IP "\fB\-minline\-float\-divide\-max\-throughput\fR" 4
9394 .IX Item "-minline-float-divide-max-throughput"
9395 Generate code for inline divides of floating point values
9396 using the maximum throughput algorithm.
9397 .IP "\fB\-minline\-int\-divide\-min\-latency\fR" 4
9398 .IX Item "-minline-int-divide-min-latency"
9399 Generate code for inline divides of integer values
9400 using the minimum latency algorithm.
9401 .IP "\fB\-minline\-int\-divide\-max\-throughput\fR" 4
9402 .IX Item "-minline-int-divide-max-throughput"
9403 Generate code for inline divides of integer values
9404 using the maximum throughput algorithm.
9405 .IP "\fB\-minline\-sqrt\-min\-latency\fR" 4
9406 .IX Item "-minline-sqrt-min-latency"
9407 Generate code for inline square roots
9408 using the minimum latency algorithm.
9409 .IP "\fB\-minline\-sqrt\-max\-throughput\fR" 4
9410 .IX Item "-minline-sqrt-max-throughput"
9411 Generate code for inline square roots
9412 using the maximum throughput algorithm.
9413 .IP "\fB\-mno\-dwarf2\-asm\fR" 4
9414 .IX Item "-mno-dwarf2-asm"
9415 .PD 0
9416 .IP "\fB\-mdwarf2\-asm\fR" 4
9417 .IX Item "-mdwarf2-asm"
9418 .PD
9419 Don't (or do) generate assembler code for the \s-1DWARF2\s0 line number debugging
9420 info.  This may be useful when not using the \s-1GNU\s0 assembler.
9421 .IP "\fB\-mearly\-stop\-bits\fR" 4
9422 .IX Item "-mearly-stop-bits"
9423 .PD 0
9424 .IP "\fB\-mno\-early\-stop\-bits\fR" 4
9425 .IX Item "-mno-early-stop-bits"
9426 .PD
9427 Allow stop bits to be placed earlier than immediately preceding the
9428 instruction that triggered the stop bit.  This can improve instruction
9429 scheduling, but does not always do so.
9430 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
9431 .IX Item "-mfixed-range=register-range"
9432 Generate code treating the given register range as fixed registers.
9433 A fixed register is one that the register allocator can not use.  This is
9434 useful when compiling kernel code.  A register range is specified as
9435 two registers separated by a dash.  Multiple register ranges can be
9436 specified separated by a comma.
9437 .IP "\fB\-mtls\-size=\fR\fItls-size\fR" 4
9438 .IX Item "-mtls-size=tls-size"
9439 Specify bit size of immediate \s-1TLS\s0 offsets.  Valid values are 14, 22, and
9440 64.
9441 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
9442 .IX Item "-mtune=cpu-type"
9443 Tune the instruction scheduling for a particular \s-1CPU\s0, Valid values are
9444 itanium, itanium1, merced, itanium2, and mckinley.
9445 .IP "\fB\-mt\fR" 4
9446 .IX Item "-mt"
9447 .PD 0
9448 .IP "\fB\-pthread\fR" 4
9449 .IX Item "-pthread"
9450 .PD
9451 Add support for multithreading using the \s-1POSIX\s0 threads library.  This
9452 option sets flags for both the preprocessor and linker.  It does
9453 not affect the thread safety of object code produced by the compiler or
9454 that of libraries supplied with it.  These are HP-UX specific flags.
9455 .IP "\fB\-milp32\fR" 4
9456 .IX Item "-milp32"
9457 .PD 0
9458 .IP "\fB\-mlp64\fR" 4
9459 .IX Item "-mlp64"
9460 .PD
9461 Generate code for a 32\-bit or 64\-bit environment.
9462 The 32\-bit environment sets int, long and pointer to 32 bits.
9463 The 64\-bit environment sets int to 32 bits and long and pointer
9464 to 64 bits.  These are HP-UX specific flags.
9465 .PP
9466 \fID30V Options\fR
9467 .IX Subsection "D30V Options"
9468 .PP
9469 These \fB\-m\fR options are defined for D30V implementations:
9470 .IP "\fB\-mextmem\fR" 4
9471 .IX Item "-mextmem"
9472 Link the \fB.text\fR, \fB.data\fR, \fB.bss\fR, \fB.strings\fR,
9473 \&\fB.rodata\fR, \fB.rodata1\fR, \fB.data1\fR sections into external
9474 memory, which starts at location \f(CW0x80000000\fR.
9475 .IP "\fB\-mextmemory\fR" 4
9476 .IX Item "-mextmemory"
9477 Same as the \fB\-mextmem\fR switch.
9478 .IP "\fB\-monchip\fR" 4
9479 .IX Item "-monchip"
9480 Link the \fB.text\fR section into onchip text memory, which starts at
9481 location \f(CW0x0\fR.  Also link \fB.data\fR, \fB.bss\fR,
9482 \&\fB.strings\fR, \fB.rodata\fR, \fB.rodata1\fR, \fB.data1\fR sections
9483 into onchip data memory, which starts at location \f(CW0x20000000\fR.
9484 .IP "\fB\-mno\-asm\-optimize\fR" 4
9485 .IX Item "-mno-asm-optimize"
9486 .PD 0
9487 .IP "\fB\-masm\-optimize\fR" 4
9488 .IX Item "-masm-optimize"
9489 .PD
9490 Disable (enable) passing \fB\-O\fR to the assembler when optimizing.
9491 The assembler uses the \fB\-O\fR option to automatically parallelize
9492 adjacent short instructions where possible.
9493 .IP "\fB\-mbranch\-cost=\fR\fIn\fR" 4
9494 .IX Item "-mbranch-cost=n"
9495 Increase the internal costs of branches to \fIn\fR.  Higher costs means
9496 that the compiler will issue more instructions to avoid doing a branch.
9497 The default is 2.
9498 .IP "\fB\-mcond\-exec=\fR\fIn\fR" 4
9499 .IX Item "-mcond-exec=n"
9500 Specify the maximum number of conditionally executed instructions that
9501 replace a branch.  The default is 4.
9502 .PP
9503 \fIS/390 and zSeries Options\fR
9504 .IX Subsection "S/390 and zSeries Options"
9505 .PP
9506 These are the \fB\-m\fR options defined for the S/390 and zSeries architecture.
9507 .IP "\fB\-mhard\-float\fR" 4
9508 .IX Item "-mhard-float"
9509 .PD 0
9510 .IP "\fB\-msoft\-float\fR" 4
9511 .IX Item "-msoft-float"
9512 .PD
9513 Use (do not use) the hardware floating-point instructions and registers
9514 for floating-point operations.  When \fB\-msoft\-float\fR is specified,
9515 functions in \fIlibgcc.a\fR will be used to perform floating-point
9516 operations.  When \fB\-mhard\-float\fR is specified, the compiler
9517 generates \s-1IEEE\s0 floating-point instructions.  This is the default.
9518 .IP "\fB\-mbackchain\fR" 4
9519 .IX Item "-mbackchain"
9520 .PD 0
9521 .IP "\fB\-mno\-backchain\fR" 4
9522 .IX Item "-mno-backchain"
9523 .PD
9524 Generate (or do not generate) code which maintains an explicit
9525 backchain within the stack frame that points to the caller's frame.
9526 This may be needed to allow debugging using tools that do not understand
9527 \&\s-1DWARF\-2\s0 call frame information.  The default is not to generate the
9528 backchain.
9529 .IP "\fB\-msmall\-exec\fR" 4
9530 .IX Item "-msmall-exec"
9531 .PD 0
9532 .IP "\fB\-mno\-small\-exec\fR" 4
9533 .IX Item "-mno-small-exec"
9534 .PD
9535 Generate (or do not generate) code using the \f(CW\*(C`bras\*(C'\fR instruction
9536 to do subroutine calls.
9537 This only works reliably if the total executable size does not
9538 exceed 64k.  The default is to use the \f(CW\*(C`basr\*(C'\fR instruction instead,
9539 which does not have this limitation.
9540 .IP "\fB\-m64\fR" 4
9541 .IX Item "-m64"
9542 .PD 0
9543 .IP "\fB\-m31\fR" 4
9544 .IX Item "-m31"
9545 .PD
9546 When \fB\-m31\fR is specified, generate code compliant to the
9547 GNU/Linux for S/390 \s-1ABI\s0.  When \fB\-m64\fR is specified, generate
9548 code compliant to the GNU/Linux for zSeries \s-1ABI\s0.  This allows \s-1GCC\s0 in
9549 particular to generate 64\-bit instructions.  For the \fBs390\fR
9550 targets, the default is \fB\-m31\fR, while the \fBs390x\fR
9551 targets default to \fB\-m64\fR.
9552 .IP "\fB\-mzarch\fR" 4
9553 .IX Item "-mzarch"
9554 .PD 0
9555 .IP "\fB\-mesa\fR" 4
9556 .IX Item "-mesa"
9557 .PD
9558 When \fB\-mzarch\fR is specified, generate code using the
9559 instructions available on z/Architecture.
9560 When \fB\-mesa\fR is specified, generate code using the
9561 instructions available on \s-1ESA/390\s0. Note that \fB\-mesa\fR is
9562 not possible with \fB\-m64\fR.
9563 When generating code compliant to the GNU/Linux for S/390 \s-1ABI\s0,
9564 the default is \fB\-mesa\fR.  When generating code compliant
9565 to the GNU/Linux for zSeries \s-1ABI\s0, the default is \fB\-mzarch\fR.
9566 .IP "\fB\-mmvcle\fR" 4
9567 .IX Item "-mmvcle"
9568 .PD 0
9569 .IP "\fB\-mno\-mvcle\fR" 4
9570 .IX Item "-mno-mvcle"
9571 .PD
9572 Generate (or do not generate) code using the \f(CW\*(C`mvcle\*(C'\fR instruction
9573 to perform block moves.  When \fB\-mno\-mvcle\fR is specified,
9574 use a \f(CW\*(C`mvc\*(C'\fR loop instead.  This is the default.
9575 .IP "\fB\-mdebug\fR" 4
9576 .IX Item "-mdebug"
9577 .PD 0
9578 .IP "\fB\-mno\-debug\fR" 4
9579 .IX Item "-mno-debug"
9580 .PD
9581 Print (or do not print) additional debug information when compiling.
9582 The default is to not print debug information.
9583 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
9584 .IX Item "-march=cpu-type"
9585 Generate code that will run on \fIcpu-type\fR, which is the name of a system
9586 representing a certain processor type. Possible values for
9587 \&\fIcpu-type\fR are \fBg5\fR, \fBg6\fR, \fBz900\fR, and \fBz990\fR.
9588 When generating code using the instructions available on z/Architecture,
9589 the default is \fB\-march=z900\fR.  Otherwise, the default is
9590 \&\fB\-march=g5\fR.
9591 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
9592 .IX Item "-mtune=cpu-type"
9593 Tune to \fIcpu-type\fR everything applicable about the generated code,
9594 except for the \s-1ABI\s0 and the set of available instructions.
9595 The list of \fIcpu-type\fR values is the same as for \fB\-march\fR.
9596 The default is the value used for \fB\-march\fR.
9597 .IP "\fB\-mfused\-madd\fR" 4
9598 .IX Item "-mfused-madd"
9599 .PD 0
9600 .IP "\fB\-mno\-fused\-madd\fR" 4
9601 .IX Item "-mno-fused-madd"
9602 .PD
9603 Generate code that uses (does not use) the floating point multiply and
9604 accumulate instructions.  These instructions are generated by default if
9605 hardware floating point is used.
9606 .PP
9607 \fI\s-1CRIS\s0 Options\fR
9608 .IX Subsection "CRIS Options"
9609 .PP
9610 These options are defined specifically for the \s-1CRIS\s0 ports.
9611 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
9612 .IX Item "-march=architecture-type"
9613 .PD 0
9614 .IP "\fB\-mcpu=\fR\fIarchitecture-type\fR" 4
9615 .IX Item "-mcpu=architecture-type"
9616 .PD
9617 Generate code for the specified architecture.  The choices for
9618 \&\fIarchitecture-type\fR are \fBv3\fR, \fBv8\fR and \fBv10\fR for
9619 respectively \s-1ETRAX\s0\ 4, \s-1ETRAX\s0\ 100, and \s-1ETRAX\s0\ 100\ \s-1LX\s0.
9620 Default is \fBv0\fR except for cris\-axis\-linux\-gnu, where the default is
9621 \&\fBv10\fR.
9622 .IP "\fB\-mtune=\fR\fIarchitecture-type\fR" 4
9623 .IX Item "-mtune=architecture-type"
9624 Tune to \fIarchitecture-type\fR everything applicable about the generated
9625 code, except for the \s-1ABI\s0 and the set of available instructions.  The
9626 choices for \fIarchitecture-type\fR are the same as for
9627 \&\fB\-march=\fR\fIarchitecture-type\fR.
9628 .IP "\fB\-mmax\-stack\-frame=\fR\fIn\fR" 4
9629 .IX Item "-mmax-stack-frame=n"
9630 Warn when the stack frame of a function exceeds \fIn\fR bytes.
9631 .IP "\fB\-melinux\-stacksize=\fR\fIn\fR" 4
9632 .IX Item "-melinux-stacksize=n"
9633 Only available with the \fBcris-axis-aout\fR target.  Arranges for
9634 indications in the program to the kernel loader that the stack of the
9635 program should be set to \fIn\fR bytes.
9636 .IP "\fB\-metrax4\fR" 4
9637 .IX Item "-metrax4"
9638 .PD 0
9639 .IP "\fB\-metrax100\fR" 4
9640 .IX Item "-metrax100"
9641 .PD
9642 The options \fB\-metrax4\fR and \fB\-metrax100\fR are synonyms for
9643 \&\fB\-march=v3\fR and \fB\-march=v8\fR respectively.
9644 .IP "\fB\-mmul\-bug\-workaround\fR" 4
9645 .IX Item "-mmul-bug-workaround"
9646 .PD 0
9647 .IP "\fB\-mno\-mul\-bug\-workaround\fR" 4
9648 .IX Item "-mno-mul-bug-workaround"
9649 .PD
9650 Work around a bug in the \f(CW\*(C`muls\*(C'\fR and \f(CW\*(C`mulu\*(C'\fR instructions for \s-1CPU\s0
9651 models where it applies.  This option is active by default.
9652 .IP "\fB\-mpdebug\fR" 4
9653 .IX Item "-mpdebug"
9654 Enable CRIS-specific verbose debug-related information in the assembly
9655 code.  This option also has the effect to turn off the \fB#NO_APP\fR
9656 formatted-code indicator to the assembler at the beginning of the
9657 assembly file.
9658 .IP "\fB\-mcc\-init\fR" 4
9659 .IX Item "-mcc-init"
9660 Do not use condition-code results from previous instruction; always emit
9661 compare and test instructions before use of condition codes.
9662 .IP "\fB\-mno\-side\-effects\fR" 4
9663 .IX Item "-mno-side-effects"
9664 Do not emit instructions with side-effects in addressing modes other than
9665 post\-increment.
9666 .IP "\fB\-mstack\-align\fR" 4
9667 .IX Item "-mstack-align"
9668 .PD 0
9669 .IP "\fB\-mno\-stack\-align\fR" 4
9670 .IX Item "-mno-stack-align"
9671 .IP "\fB\-mdata\-align\fR" 4
9672 .IX Item "-mdata-align"
9673 .IP "\fB\-mno\-data\-align\fR" 4
9674 .IX Item "-mno-data-align"
9675 .IP "\fB\-mconst\-align\fR" 4
9676 .IX Item "-mconst-align"
9677 .IP "\fB\-mno\-const\-align\fR" 4
9678 .IX Item "-mno-const-align"
9679 .PD
9680 These options (no\-options) arranges (eliminate arrangements) for the
9681 stack\-frame, individual data and constants to be aligned for the maximum
9682 single data access size for the chosen \s-1CPU\s0 model.  The default is to
9683 arrange for 32\-bit alignment.  \s-1ABI\s0 details such as structure layout are
9684 not affected by these options.
9685 .IP "\fB\-m32\-bit\fR" 4
9686 .IX Item "-m32-bit"
9687 .PD 0
9688 .IP "\fB\-m16\-bit\fR" 4
9689 .IX Item "-m16-bit"
9690 .IP "\fB\-m8\-bit\fR" 4
9691 .IX Item "-m8-bit"
9692 .PD
9693 Similar to the stack\- data\- and const-align options above, these options
9694 arrange for stack\-frame, writable data and constants to all be 32\-bit,
9695 16\-bit or 8\-bit aligned.  The default is 32\-bit alignment.
9696 .IP "\fB\-mno\-prologue\-epilogue\fR" 4
9697 .IX Item "-mno-prologue-epilogue"
9698 .PD 0
9699 .IP "\fB\-mprologue\-epilogue\fR" 4
9700 .IX Item "-mprologue-epilogue"
9701 .PD
9702 With \fB\-mno\-prologue\-epilogue\fR, the normal function prologue and
9703 epilogue that sets up the stack-frame are omitted and no return
9704 instructions or return sequences are generated in the code.  Use this
9705 option only together with visual inspection of the compiled code: no
9706 warnings or errors are generated when call-saved registers must be saved,
9707 or storage for local variable needs to be allocated.
9708 .IP "\fB\-mno\-gotplt\fR" 4
9709 .IX Item "-mno-gotplt"
9710 .PD 0
9711 .IP "\fB\-mgotplt\fR" 4
9712 .IX Item "-mgotplt"
9713 .PD
9714 With \fB\-fpic\fR and \fB\-fPIC\fR, don't generate (do generate)
9715 instruction sequences that load addresses for functions from the \s-1PLT\s0 part
9716 of the \s-1GOT\s0 rather than (traditional on other architectures) calls to the
9717 \&\s-1PLT\s0.  The default is \fB\-mgotplt\fR.
9718 .IP "\fB\-maout\fR" 4
9719 .IX Item "-maout"
9720 Legacy no-op option only recognized with the cris-axis-aout target.
9721 .IP "\fB\-melf\fR" 4
9722 .IX Item "-melf"
9723 Legacy no-op option only recognized with the cris-axis-elf and
9724 cris-axis-linux-gnu targets.
9725 .IP "\fB\-melinux\fR" 4
9726 .IX Item "-melinux"
9727 Only recognized with the cris-axis-aout target, where it selects a
9728 GNU/linux\-like multilib, include files and instruction set for
9729 \&\fB\-march=v8\fR.
9730 .IP "\fB\-mlinux\fR" 4
9731 .IX Item "-mlinux"
9732 Legacy no-op option only recognized with the cris-axis-linux-gnu target.
9733 .IP "\fB\-sim\fR" 4
9734 .IX Item "-sim"
9735 This option, recognized for the cris-axis-aout and cris-axis-elf arranges
9736 to link with input-output functions from a simulator library.  Code,
9737 initialized data and zero-initialized data are allocated consecutively.
9738 .IP "\fB\-sim2\fR" 4
9739 .IX Item "-sim2"
9740 Like \fB\-sim\fR, but pass linker options to locate initialized data at
9741 0x40000000 and zero-initialized data at 0x80000000.
9742 .PP
9743 \fI\s-1MMIX\s0 Options\fR
9744 .IX Subsection "MMIX Options"
9745 .PP
9746 These options are defined for the \s-1MMIX:\s0
9747 .IP "\fB\-mlibfuncs\fR" 4
9748 .IX Item "-mlibfuncs"
9749 .PD 0
9750 .IP "\fB\-mno\-libfuncs\fR" 4
9751 .IX Item "-mno-libfuncs"
9752 .PD
9753 Specify that intrinsic library functions are being compiled, passing all
9754 values in registers, no matter the size.
9755 .IP "\fB\-mepsilon\fR" 4
9756 .IX Item "-mepsilon"
9757 .PD 0
9758 .IP "\fB\-mno\-epsilon\fR" 4
9759 .IX Item "-mno-epsilon"
9760 .PD
9761 Generate floating-point comparison instructions that compare with respect
9762 to the \f(CW\*(C`rE\*(C'\fR epsilon register.
9763 .IP "\fB\-mabi=mmixware\fR" 4
9764 .IX Item "-mabi=mmixware"
9765 .PD 0
9766 .IP "\fB\-mabi=gnu\fR" 4
9767 .IX Item "-mabi=gnu"
9768 .PD
9769 Generate code that passes function parameters and return values that (in
9770 the called function) are seen as registers \f(CW$0\fR and up, as opposed to
9771 the \s-1GNU\s0 \s-1ABI\s0 which uses global registers \f(CW$231\fR and up.
9772 .IP "\fB\-mzero\-extend\fR" 4
9773 .IX Item "-mzero-extend"
9774 .PD 0
9775 .IP "\fB\-mno\-zero\-extend\fR" 4
9776 .IX Item "-mno-zero-extend"
9777 .PD
9778 When reading data from memory in sizes shorter than 64 bits, use (do not
9779 use) zero-extending load instructions by default, rather than
9780 sign-extending ones.
9781 .IP "\fB\-mknuthdiv\fR" 4
9782 .IX Item "-mknuthdiv"
9783 .PD 0
9784 .IP "\fB\-mno\-knuthdiv\fR" 4
9785 .IX Item "-mno-knuthdiv"
9786 .PD
9787 Make the result of a division yielding a remainder have the same sign as
9788 the divisor.  With the default, \fB\-mno\-knuthdiv\fR, the sign of the
9789 remainder follows the sign of the dividend.  Both methods are
9790 arithmetically valid, the latter being almost exclusively used.
9791 .IP "\fB\-mtoplevel\-symbols\fR" 4
9792 .IX Item "-mtoplevel-symbols"
9793 .PD 0
9794 .IP "\fB\-mno\-toplevel\-symbols\fR" 4
9795 .IX Item "-mno-toplevel-symbols"
9796 .PD
9797 Prepend (do not prepend) a \fB:\fR to all global symbols, so the assembly
9798 code can be used with the \f(CW\*(C`PREFIX\*(C'\fR assembly directive.
9799 .IP "\fB\-melf\fR" 4
9800 .IX Item "-melf"
9801 Generate an executable in the \s-1ELF\s0 format, rather than the default
9802 \&\fBmmo\fR format used by the \fBmmix\fR simulator.
9803 .IP "\fB\-mbranch\-predict\fR" 4
9804 .IX Item "-mbranch-predict"
9805 .PD 0
9806 .IP "\fB\-mno\-branch\-predict\fR" 4
9807 .IX Item "-mno-branch-predict"
9808 .PD
9809 Use (do not use) the probable-branch instructions, when static branch
9810 prediction indicates a probable branch.
9811 .IP "\fB\-mbase\-addresses\fR" 4
9812 .IX Item "-mbase-addresses"
9813 .PD 0
9814 .IP "\fB\-mno\-base\-addresses\fR" 4
9815 .IX Item "-mno-base-addresses"
9816 .PD
9817 Generate (do not generate) code that uses \fIbase addresses\fR.  Using a
9818 base address automatically generates a request (handled by the assembler
9819 and the linker) for a constant to be set up in a global register.  The
9820 register is used for one or more base address requests within the range 0
9821 to 255 from the value held in the register.  The generally leads to short
9822 and fast code, but the number of different data items that can be
9823 addressed is limited.  This means that a program that uses lots of static
9824 data may require \fB\-mno\-base\-addresses\fR.
9825 .IP "\fB\-msingle\-exit\fR" 4
9826 .IX Item "-msingle-exit"
9827 .PD 0
9828 .IP "\fB\-mno\-single\-exit\fR" 4
9829 .IX Item "-mno-single-exit"
9830 .PD
9831 Force (do not force) generated code to have a single exit point in each
9832 function.
9833 .PP
9834 \fI\s-1PDP\-11\s0 Options\fR
9835 .IX Subsection "PDP-11 Options"
9836 .PP
9837 These options are defined for the \s-1PDP\-11:\s0
9838 .IP "\fB\-mfpu\fR" 4
9839 .IX Item "-mfpu"
9840 Use hardware \s-1FPP\s0 floating point.  This is the default.  (\s-1FIS\s0 floating
9841 point on the \s-1PDP\-11/40\s0 is not supported.)
9842 .IP "\fB\-msoft\-float\fR" 4
9843 .IX Item "-msoft-float"
9844 Do not use hardware floating point.
9845 .IP "\fB\-mac0\fR" 4
9846 .IX Item "-mac0"
9847 Return floating-point results in ac0 (fr0 in Unix assembler syntax).
9848 .IP "\fB\-mno\-ac0\fR" 4
9849 .IX Item "-mno-ac0"
9850 Return floating-point results in memory.  This is the default.
9851 .IP "\fB\-m40\fR" 4
9852 .IX Item "-m40"
9853 Generate code for a \s-1PDP\-11/40\s0.
9854 .IP "\fB\-m45\fR" 4
9855 .IX Item "-m45"
9856 Generate code for a \s-1PDP\-11/45\s0.  This is the default.
9857 .IP "\fB\-m10\fR" 4
9858 .IX Item "-m10"
9859 Generate code for a \s-1PDP\-11/10\s0.
9860 .IP "\fB\-mbcopy\-builtin\fR" 4
9861 .IX Item "-mbcopy-builtin"
9862 Use inline \f(CW\*(C`movstrhi\*(C'\fR patterns for copying memory.  This is the
9863 default.
9864 .IP "\fB\-mbcopy\fR" 4
9865 .IX Item "-mbcopy"
9866 Do not use inline \f(CW\*(C`movstrhi\*(C'\fR patterns for copying memory.
9867 .IP "\fB\-mint16\fR" 4
9868 .IX Item "-mint16"
9869 .PD 0
9870 .IP "\fB\-mno\-int32\fR" 4
9871 .IX Item "-mno-int32"
9872 .PD
9873 Use 16\-bit \f(CW\*(C`int\*(C'\fR.  This is the default.
9874 .IP "\fB\-mint32\fR" 4
9875 .IX Item "-mint32"
9876 .PD 0
9877 .IP "\fB\-mno\-int16\fR" 4
9878 .IX Item "-mno-int16"
9879 .PD
9880 Use 32\-bit \f(CW\*(C`int\*(C'\fR.
9881 .IP "\fB\-mfloat64\fR" 4
9882 .IX Item "-mfloat64"
9883 .PD 0
9884 .IP "\fB\-mno\-float32\fR" 4
9885 .IX Item "-mno-float32"
9886 .PD
9887 Use 64\-bit \f(CW\*(C`float\*(C'\fR.  This is the default.
9888 .IP "\fB\-mfloat32\fR" 4
9889 .IX Item "-mfloat32"
9890 .PD 0
9891 .IP "\fB\-mno\-float64\fR" 4
9892 .IX Item "-mno-float64"
9893 .PD
9894 Use 32\-bit \f(CW\*(C`float\*(C'\fR.
9895 .IP "\fB\-mabshi\fR" 4
9896 .IX Item "-mabshi"
9897 Use \f(CW\*(C`abshi2\*(C'\fR pattern.  This is the default.
9898 .IP "\fB\-mno\-abshi\fR" 4
9899 .IX Item "-mno-abshi"
9900 Do not use \f(CW\*(C`abshi2\*(C'\fR pattern.
9901 .IP "\fB\-mbranch\-expensive\fR" 4
9902 .IX Item "-mbranch-expensive"
9903 Pretend that branches are expensive.  This is for experimenting with
9904 code generation only.
9905 .IP "\fB\-mbranch\-cheap\fR" 4
9906 .IX Item "-mbranch-cheap"
9907 Do not pretend that branches are expensive.  This is the default.
9908 .IP "\fB\-msplit\fR" 4
9909 .IX Item "-msplit"
9910 Generate code for a system with split I&D.
9911 .IP "\fB\-mno\-split\fR" 4
9912 .IX Item "-mno-split"
9913 Generate code for a system without split I&D.  This is the default.
9914 .IP "\fB\-munix\-asm\fR" 4
9915 .IX Item "-munix-asm"
9916 Use Unix assembler syntax.  This is the default when configured for
9917 \&\fBpdp11\-*\-bsd\fR.
9918 .IP "\fB\-mdec\-asm\fR" 4
9919 .IX Item "-mdec-asm"
9920 Use \s-1DEC\s0 assembler syntax.  This is the default when configured for any
9921 \&\s-1PDP\-11\s0 target other than \fBpdp11\-*\-bsd\fR.
9922 .PP
9923 \fIXstormy16 Options\fR
9924 .IX Subsection "Xstormy16 Options"
9925 .PP
9926 These options are defined for Xstormy16:
9927 .IP "\fB\-msim\fR" 4
9928 .IX Item "-msim"
9929 Choose startup files and linker script suitable for the simulator.
9930 .PP
9931 \fI\s-1FRV\s0 Options\fR
9932 .IX Subsection "FRV Options"
9933 .IP "\fB\-mgpr\-32\fR" 4
9934 .IX Item "-mgpr-32"
9935 Only use the first 32 general purpose registers.
9936 .IP "\fB\-mgpr\-64\fR" 4
9937 .IX Item "-mgpr-64"
9938 Use all 64 general purpose registers.
9939 .IP "\fB\-mfpr\-32\fR" 4
9940 .IX Item "-mfpr-32"
9941 Use only the first 32 floating point registers.
9942 .IP "\fB\-mfpr\-64\fR" 4
9943 .IX Item "-mfpr-64"
9944 Use all 64 floating point registers
9945 .IP "\fB\-mhard\-float\fR" 4
9946 .IX Item "-mhard-float"
9947 Use hardware instructions for floating point operations.
9948 .IP "\fB\-msoft\-float\fR" 4
9949 .IX Item "-msoft-float"
9950 Use library routines for floating point operations.
9951 .IP "\fB\-malloc\-cc\fR" 4
9952 .IX Item "-malloc-cc"
9953 Dynamically allocate condition code registers.
9954 .IP "\fB\-mfixed\-cc\fR" 4
9955 .IX Item "-mfixed-cc"
9956 Do not try to dynamically allocate condition code registers, only
9957 use \f(CW\*(C`icc0\*(C'\fR and \f(CW\*(C`fcc0\*(C'\fR.
9958 .IP "\fB\-mdword\fR" 4
9959 .IX Item "-mdword"
9960 Change \s-1ABI\s0 to use double word insns.
9961 .IP "\fB\-mno\-dword\fR" 4
9962 .IX Item "-mno-dword"
9963 Do not use double word instructions.
9964 .IP "\fB\-mdouble\fR" 4
9965 .IX Item "-mdouble"
9966 Use floating point double instructions.
9967 .IP "\fB\-mno\-double\fR" 4
9968 .IX Item "-mno-double"
9969 Do not use floating point double instructions.
9970 .IP "\fB\-mmedia\fR" 4
9971 .IX Item "-mmedia"
9972 Use media instructions.
9973 .IP "\fB\-mno\-media\fR" 4
9974 .IX Item "-mno-media"
9975 Do not use media instructions.
9976 .IP "\fB\-mmuladd\fR" 4
9977 .IX Item "-mmuladd"
9978 Use multiply and add/subtract instructions.
9979 .IP "\fB\-mno\-muladd\fR" 4
9980 .IX Item "-mno-muladd"
9981 Do not use multiply and add/subtract instructions.
9982 .IP "\fB\-mlibrary\-pic\fR" 4
9983 .IX Item "-mlibrary-pic"
9984 Enable \s-1PIC\s0 support for building libraries
9985 .IP "\fB\-macc\-4\fR" 4
9986 .IX Item "-macc-4"
9987 Use only the first four media accumulator registers.
9988 .IP "\fB\-macc\-8\fR" 4
9989 .IX Item "-macc-8"
9990 Use all eight media accumulator registers.
9991 .IP "\fB\-mpack\fR" 4
9992 .IX Item "-mpack"
9993 Pack \s-1VLIW\s0 instructions.
9994 .IP "\fB\-mno\-pack\fR" 4
9995 .IX Item "-mno-pack"
9996 Do not pack \s-1VLIW\s0 instructions.
9997 .IP "\fB\-mno\-eflags\fR" 4
9998 .IX Item "-mno-eflags"
9999 Do not mark \s-1ABI\s0 switches in e_flags.
10000 .IP "\fB\-mcond\-move\fR" 4
10001 .IX Item "-mcond-move"
10002 Enable the use of conditional-move instructions (default).
10003 .Sp
10004 This switch is mainly for debugging the compiler and will likely be removed
10005 in a future version.
10006 .IP "\fB\-mno\-cond\-move\fR" 4
10007 .IX Item "-mno-cond-move"
10008 Disable the use of conditional-move instructions.
10009 .Sp
10010 This switch is mainly for debugging the compiler and will likely be removed
10011 in a future version.
10012 .IP "\fB\-mscc\fR" 4
10013 .IX Item "-mscc"
10014 Enable the use of conditional set instructions (default).
10015 .Sp
10016 This switch is mainly for debugging the compiler and will likely be removed
10017 in a future version.
10018 .IP "\fB\-mno\-scc\fR" 4
10019 .IX Item "-mno-scc"
10020 Disable the use of conditional set instructions.
10021 .Sp
10022 This switch is mainly for debugging the compiler and will likely be removed
10023 in a future version.
10024 .IP "\fB\-mcond\-exec\fR" 4
10025 .IX Item "-mcond-exec"
10026 Enable the use of conditional execution (default).
10027 .Sp
10028 This switch is mainly for debugging the compiler and will likely be removed
10029 in a future version.
10030 .IP "\fB\-mno\-cond\-exec\fR" 4
10031 .IX Item "-mno-cond-exec"
10032 Disable the use of conditional execution.
10033 .Sp
10034 This switch is mainly for debugging the compiler and will likely be removed
10035 in a future version.
10036 .IP "\fB\-mvliw\-branch\fR" 4
10037 .IX Item "-mvliw-branch"
10038 Run a pass to pack branches into \s-1VLIW\s0 instructions (default).
10039 .Sp
10040 This switch is mainly for debugging the compiler and will likely be removed
10041 in a future version.
10042 .IP "\fB\-mno\-vliw\-branch\fR" 4
10043 .IX Item "-mno-vliw-branch"
10044 Do not run a pass to pack branches into \s-1VLIW\s0 instructions.
10045 .Sp
10046 This switch is mainly for debugging the compiler and will likely be removed
10047 in a future version.
10048 .IP "\fB\-mmulti\-cond\-exec\fR" 4
10049 .IX Item "-mmulti-cond-exec"
10050 Enable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution
10051 (default).
10052 .Sp
10053 This switch is mainly for debugging the compiler and will likely be removed
10054 in a future version.
10055 .IP "\fB\-mno\-multi\-cond\-exec\fR" 4
10056 .IX Item "-mno-multi-cond-exec"
10057 Disable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution.
10058 .Sp
10059 This switch is mainly for debugging the compiler and will likely be removed
10060 in a future version.
10061 .IP "\fB\-mnested\-cond\-exec\fR" 4
10062 .IX Item "-mnested-cond-exec"
10063 Enable nested conditional execution optimizations (default).
10064 .Sp
10065 This switch is mainly for debugging the compiler and will likely be removed
10066 in a future version.
10067 .IP "\fB\-mno\-nested\-cond\-exec\fR" 4
10068 .IX Item "-mno-nested-cond-exec"
10069 Disable nested conditional execution optimizations.
10070 .Sp
10071 This switch is mainly for debugging the compiler and will likely be removed
10072 in a future version.
10073 .IP "\fB\-mtomcat\-stats\fR" 4
10074 .IX Item "-mtomcat-stats"
10075 Cause gas to print out tomcat statistics.
10076 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
10077 .IX Item "-mcpu=cpu"
10078 Select the processor type for which to generate code.  Possible values are
10079 \&\fBsimple\fR, \fBtomcat\fR, \fBfr500\fR, \fBfr400\fR, \fBfr300\fR,
10080 \&\fBfrv\fR.
10081 .PP
10082 \fIXtensa Options\fR
10083 .IX Subsection "Xtensa Options"
10084 .PP
10085 These options are supported for Xtensa targets:
10086 .IP "\fB\-mconst16\fR" 4
10087 .IX Item "-mconst16"
10088 .PD 0
10089 .IP "\fB\-mno\-const16\fR" 4
10090 .IX Item "-mno-const16"
10091 .PD
10092 Enable or disable use of \f(CW\*(C`CONST16\*(C'\fR instructions for loading
10093 constant values.  The \f(CW\*(C`CONST16\*(C'\fR instruction is currently not a
10094 standard option from Tensilica.  When enabled, \f(CW\*(C`CONST16\*(C'\fR
10095 instructions are always used in place of the standard \f(CW\*(C`L32R\*(C'\fR
10096 instructions.  The use of \f(CW\*(C`CONST16\*(C'\fR is enabled by default only if
10097 the \f(CW\*(C`L32R\*(C'\fR instruction is not available.
10098 .IP "\fB\-mfused\-madd\fR" 4
10099 .IX Item "-mfused-madd"
10100 .PD 0
10101 .IP "\fB\-mno\-fused\-madd\fR" 4
10102 .IX Item "-mno-fused-madd"
10103 .PD
10104 Enable or disable use of fused multiply/add and multiply/subtract
10105 instructions in the floating-point option.  This has no effect if the
10106 floating-point option is not also enabled.  Disabling fused multiply/add
10107 and multiply/subtract instructions forces the compiler to use separate
10108 instructions for the multiply and add/subtract operations.  This may be
10109 desirable in some cases where strict \s-1IEEE\s0 754\-compliant results are
10110 required: the fused multiply add/subtract instructions do not round the
10111 intermediate result, thereby producing results with \fImore\fR bits of
10112 precision than specified by the \s-1IEEE\s0 standard.  Disabling fused multiply
10113 add/subtract instructions also ensures that the program output is not
10114 sensitive to the compiler's ability to combine multiply and add/subtract
10115 operations.
10116 .IP "\fB\-mtext\-section\-literals\fR" 4
10117 .IX Item "-mtext-section-literals"
10118 .PD 0
10119 .IP "\fB\-mno\-text\-section\-literals\fR" 4
10120 .IX Item "-mno-text-section-literals"
10121 .PD
10122 Control the treatment of literal pools.  The default is
10123 \&\fB\-mno\-text\-section\-literals\fR, which places literals in a separate
10124 section in the output file.  This allows the literal pool to be placed
10125 in a data \s-1RAM/ROM\s0, and it also allows the linker to combine literal
10126 pools from separate object files to remove redundant literals and
10127 improve code size.  With \fB\-mtext\-section\-literals\fR, the literals
10128 are interspersed in the text section in order to keep them as close as
10129 possible to their references.  This may be necessary for large assembly
10130 files.
10131 .IP "\fB\-mtarget\-align\fR" 4
10132 .IX Item "-mtarget-align"
10133 .PD 0
10134 .IP "\fB\-mno\-target\-align\fR" 4
10135 .IX Item "-mno-target-align"
10136 .PD
10137 When this option is enabled, \s-1GCC\s0 instructs the assembler to
10138 automatically align instructions to reduce branch penalties at the
10139 expense of some code density.  The assembler attempts to widen density
10140 instructions to align branch targets and the instructions following call
10141 instructions.  If there are not enough preceding safe density
10142 instructions to align a target, no widening will be performed.  The
10143 default is \fB\-mtarget\-align\fR.  These options do not affect the
10144 treatment of auto-aligned instructions like \f(CW\*(C`LOOP\*(C'\fR, which the
10145 assembler will always align, either by widening density instructions or
10146 by inserting no-op instructions.
10147 .IP "\fB\-mlongcalls\fR" 4
10148 .IX Item "-mlongcalls"
10149 .PD 0
10150 .IP "\fB\-mno\-longcalls\fR" 4
10151 .IX Item "-mno-longcalls"
10152 .PD
10153 When this option is enabled, \s-1GCC\s0 instructs the assembler to translate
10154 direct calls to indirect calls unless it can determine that the target
10155 of a direct call is in the range allowed by the call instruction.  This
10156 translation typically occurs for calls to functions in other source
10157 files.  Specifically, the assembler translates a direct \f(CW\*(C`CALL\*(C'\fR
10158 instruction into an \f(CW\*(C`L32R\*(C'\fR followed by a \f(CW\*(C`CALLX\*(C'\fR instruction.
10159 The default is \fB\-mno\-longcalls\fR.  This option should be used in
10160 programs where the call target can potentially be out of range.  This
10161 option is implemented in the assembler, not the compiler, so the
10162 assembly code generated by \s-1GCC\s0 will still show direct call
10163 instructions\-\-\-look at the disassembled object code to see the actual
10164 instructions.  Note that the assembler will use an indirect call for
10165 every cross-file call, not just those that really will be out of range.
10166 .Sh "Options for Code Generation Conventions"
10167 .IX Subsection "Options for Code Generation Conventions"
10168 These machine-independent options control the interface conventions
10169 used in code generation.
10170 .PP
10171 Most of them have both positive and negative forms; the negative form
10172 of \fB\-ffoo\fR would be \fB\-fno\-foo\fR.  In the table below, only
10173 one of the forms is listed\-\-\-the one which is not the default.  You
10174 can figure out the other form by either removing \fBno\-\fR or adding
10175 it.
10176 .IP "\fB\-fbounds\-check\fR" 4
10177 .IX Item "-fbounds-check"
10178 For front-ends that support it, generate additional code to check that
10179 indices used to access arrays are within the declared range.  This is
10180 currently only supported by the Java and Fortran 77 front\-ends, where
10181 this option defaults to true and false respectively.
10182 .IP "\fB\-ftrapv\fR" 4
10183 .IX Item "-ftrapv"
10184 This option generates traps for signed overflow on addition, subtraction,
10185 multiplication operations.
10186 .IP "\fB\-fwrapv\fR" 4
10187 .IX Item "-fwrapv"
10188 This option instructs the compiler to assume that signed arithmetic
10189 overflow of addition, subtraction and multiplication wraps around
10190 using twos-complement representation.  This flag enables some optimizations
10191 and disables other.  This option is enabled by default for the Java
10192 front\-end, as required by the Java language specification.
10193 .IP "\fB\-fexceptions\fR" 4
10194 .IX Item "-fexceptions"
10195 Enable exception handling.  Generates extra code needed to propagate
10196 exceptions.  For some targets, this implies \s-1GCC\s0 will generate frame
10197 unwind information for all functions, which can produce significant data
10198 size overhead, although it does not affect execution.  If you do not
10199 specify this option, \s-1GCC\s0 will enable it by default for languages like
10200 \&\*(C+ which normally require exception handling, and disable it for
10201 languages like C that do not normally require it.  However, you may need
10202 to enable this option when compiling C code that needs to interoperate
10203 properly with exception handlers written in \*(C+.  You may also wish to
10204 disable this option if you are compiling older \*(C+ programs that don't
10205 use exception handling.
10206 .IP "\fB\-fnon\-call\-exceptions\fR" 4
10207 .IX Item "-fnon-call-exceptions"
10208 Generate code that allows trapping instructions to throw exceptions.
10209 Note that this requires platform-specific runtime support that does
10210 not exist everywhere.  Moreover, it only allows \fItrapping\fR
10211 instructions to throw exceptions, i.e. memory references or floating
10212 point instructions.  It does not allow exceptions to be thrown from
10213 arbitrary signal handlers such as \f(CW\*(C`SIGALRM\*(C'\fR.
10214 .IP "\fB\-funwind\-tables\fR" 4
10215 .IX Item "-funwind-tables"
10216 Similar to \fB\-fexceptions\fR, except that it will just generate any needed
10217 static data, but will not affect the generated code in any other way.
10218 You will normally not enable this option; instead, a language processor
10219 that needs this handling would enable it on your behalf.
10220 .IP "\fB\-fasynchronous\-unwind\-tables\fR" 4
10221 .IX Item "-fasynchronous-unwind-tables"
10222 Generate unwind table in dwarf2 format, if supported by target machine.  The
10223 table is exact at each instruction boundary, so it can be used for stack
10224 unwinding from asynchronous events (such as debugger or garbage collector).
10225 .IP "\fB\-fpcc\-struct\-return\fR" 4
10226 .IX Item "-fpcc-struct-return"
10227 Return ``short'' \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in memory like
10228 longer ones, rather than in registers.  This convention is less
10229 efficient, but it has the advantage of allowing intercallability between
10230 GCC-compiled files and files compiled with other compilers, particularly
10231 the Portable C Compiler (pcc).
10232 .Sp
10233 The precise convention for returning structures in memory depends
10234 on the target configuration macros.
10235 .Sp
10236 Short structures and unions are those whose size and alignment match
10237 that of some integer type.
10238 .Sp
10239 \&\fBWarning:\fR code compiled with the \fB\-fpcc\-struct\-return\fR
10240 switch is not binary compatible with code compiled with the
10241 \&\fB\-freg\-struct\-return\fR switch.
10242 Use it to conform to a non-default application binary interface.
10243 .IP "\fB\-freg\-struct\-return\fR" 4
10244 .IX Item "-freg-struct-return"
10245 Return \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in registers when possible.
10246 This is more efficient for small structures than
10247 \&\fB\-fpcc\-struct\-return\fR.
10248 .Sp
10249 If you specify neither \fB\-fpcc\-struct\-return\fR nor
10250 \&\fB\-freg\-struct\-return\fR, \s-1GCC\s0 defaults to whichever convention is
10251 standard for the target.  If there is no standard convention, \s-1GCC\s0
10252 defaults to \fB\-fpcc\-struct\-return\fR, except on targets where \s-1GCC\s0 is
10253 the principal compiler.  In those cases, we can choose the standard, and
10254 we chose the more efficient register return alternative.
10255 .Sp
10256 \&\fBWarning:\fR code compiled with the \fB\-freg\-struct\-return\fR
10257 switch is not binary compatible with code compiled with the
10258 \&\fB\-fpcc\-struct\-return\fR switch.
10259 Use it to conform to a non-default application binary interface.
10260 .IP "\fB\-fshort\-enums\fR" 4
10261 .IX Item "-fshort-enums"
10262 Allocate to an \f(CW\*(C`enum\*(C'\fR type only as many bytes as it needs for the
10263 declared range of possible values.  Specifically, the \f(CW\*(C`enum\*(C'\fR type
10264 will be equivalent to the smallest integer type which has enough room.
10265 .Sp
10266 \&\fBWarning:\fR the \fB\-fshort\-enums\fR switch causes \s-1GCC\s0 to generate
10267 code that is not binary compatible with code generated without that switch.
10268 Use it to conform to a non-default application binary interface.
10269 .IP "\fB\-fshort\-double\fR" 4
10270 .IX Item "-fshort-double"
10271 Use the same size for \f(CW\*(C`double\*(C'\fR as for \f(CW\*(C`float\*(C'\fR.
10272 .Sp
10273 \&\fBWarning:\fR the \fB\-fshort\-double\fR switch causes \s-1GCC\s0 to generate
10274 code that is not binary compatible with code generated without that switch.
10275 Use it to conform to a non-default application binary interface.
10276 .IP "\fB\-fshort\-wchar\fR" 4
10277 .IX Item "-fshort-wchar"
10278 Override the underlying type for \fBwchar_t\fR to be \fBshort
10279 unsigned int\fR instead of the default for the target.  This option is
10280 useful for building programs to run under \s-1WINE\s0.
10281 .Sp
10282 \&\fBWarning:\fR the \fB\-fshort\-wchar\fR switch causes \s-1GCC\s0 to generate
10283 code that is not binary compatible with code generated without that switch.
10284 Use it to conform to a non-default application binary interface.
10285 .IP "\fB\-fshared\-data\fR" 4
10286 .IX Item "-fshared-data"
10287 Requests that the data and non\-\f(CW\*(C`const\*(C'\fR variables of this
10288 compilation be shared data rather than private data.  The distinction
10289 makes sense only on certain operating systems, where shared data is
10290 shared between processes running the same program, while private data
10291 exists in one copy per process.
10292 .IP "\fB\-fno\-common\fR" 4
10293 .IX Item "-fno-common"
10294 In C, allocate even uninitialized global variables in the data section of the
10295 object file, rather than generating them as common blocks.  This has the
10296 effect that if the same variable is declared (without \f(CW\*(C`extern\*(C'\fR) in
10297 two different compilations, you will get an error when you link them.
10298 The only reason this might be useful is if you wish to verify that the
10299 program will work on other systems which always work this way.
10300 .IP "\fB\-fno\-ident\fR" 4
10301 .IX Item "-fno-ident"
10302 Ignore the \fB#ident\fR directive.
10303 .IP "\fB\-finhibit\-size\-directive\fR" 4
10304 .IX Item "-finhibit-size-directive"
10305 Don't output a \f(CW\*(C`.size\*(C'\fR assembler directive, or anything else that
10306 would cause trouble if the function is split in the middle, and the
10307 two halves are placed at locations far apart in memory.  This option is
10308 used when compiling \fIcrtstuff.c\fR; you should not need to use it
10309 for anything else.
10310 .IP "\fB\-fverbose\-asm\fR" 4
10311 .IX Item "-fverbose-asm"
10312 Put extra commentary information in the generated assembly code to
10313 make it more readable.  This option is generally only of use to those
10314 who actually need to read the generated assembly code (perhaps while
10315 debugging the compiler itself).
10316 .Sp
10317 \&\fB\-fno\-verbose\-asm\fR, the default, causes the
10318 extra information to be omitted and is useful when comparing two assembler
10319 files.
10320 .IP "\fB\-fpic\fR" 4
10321 .IX Item "-fpic"
10322 Generate position-independent code (\s-1PIC\s0) suitable for use in a shared
10323 library, if supported for the target machine.  Such code accesses all
10324 constant addresses through a global offset table (\s-1GOT\s0).  The dynamic
10325 loader resolves the \s-1GOT\s0 entries when the program starts (the dynamic
10326 loader is not part of \s-1GCC\s0; it is part of the operating system).  If
10327 the \s-1GOT\s0 size for the linked executable exceeds a machine-specific
10328 maximum size, you get an error message from the linker indicating that
10329 \&\fB\-fpic\fR does not work; in that case, recompile with \fB\-fPIC\fR
10330 instead.  (These maximums are 8k on the \s-1SPARC\s0 and 32k
10331 on the m68k and \s-1RS/6000\s0.  The 386 has no such limit.)
10332 .Sp
10333 Position-independent code requires special support, and therefore works
10334 only on certain machines.  For the 386, \s-1GCC\s0 supports \s-1PIC\s0 for System V
10335 but not for the Sun 386i.  Code generated for the \s-1IBM\s0 \s-1RS/6000\s0 is always
10336 position\-independent.
10337 .IP "\fB\-fPIC\fR" 4
10338 .IX Item "-fPIC"
10339 If supported for the target machine, emit position-independent code,
10340 suitable for dynamic linking and avoiding any limit on the size of the
10341 global offset table.  This option makes a difference on the m68k
10342 and the \s-1SPARC\s0.
10343 .Sp
10344 Position-independent code requires special support, and therefore works
10345 only on certain machines.
10346 .IP "\fB\-fpie\fR" 4
10347 .IX Item "-fpie"
10348 .PD 0
10349 .IP "\fB\-fPIE\fR" 4
10350 .IX Item "-fPIE"
10351 .PD
10352 These options are similar to \fB\-fpic\fR and \fB\-fPIC\fR, but
10353 generated position independent code can be only linked into executables.
10354 Usually these options are used when \fB\-pie\fR \s-1GCC\s0 option will be
10355 used during linking.
10356 .IP "\fB\-ffixed\-\fR\fIreg\fR" 4
10357 .IX Item "-ffixed-reg"
10358 Treat the register named \fIreg\fR as a fixed register; generated code
10359 should never refer to it (except perhaps as a stack pointer, frame
10360 pointer or in some other fixed role).
10361 .Sp
10362 \&\fIreg\fR must be the name of a register.  The register names accepted
10363 are machine-specific and are defined in the \f(CW\*(C`REGISTER_NAMES\*(C'\fR
10364 macro in the machine description macro file.
10365 .Sp
10366 This flag does not have a negative form, because it specifies a
10367 three-way choice.
10368 .IP "\fB\-fcall\-used\-\fR\fIreg\fR" 4
10369 .IX Item "-fcall-used-reg"
10370 Treat the register named \fIreg\fR as an allocable register that is
10371 clobbered by function calls.  It may be allocated for temporaries or
10372 variables that do not live across a call.  Functions compiled this way
10373 will not save and restore the register \fIreg\fR.
10374 .Sp
10375 It is an error to used this flag with the frame pointer or stack pointer.
10376 Use of this flag for other registers that have fixed pervasive roles in
10377 the machine's execution model will produce disastrous results.
10378 .Sp
10379 This flag does not have a negative form, because it specifies a
10380 three-way choice.
10381 .IP "\fB\-fcall\-saved\-\fR\fIreg\fR" 4
10382 .IX Item "-fcall-saved-reg"
10383 Treat the register named \fIreg\fR as an allocable register saved by
10384 functions.  It may be allocated even for temporaries or variables that
10385 live across a call.  Functions compiled this way will save and restore
10386 the register \fIreg\fR if they use it.
10387 .Sp
10388 It is an error to used this flag with the frame pointer or stack pointer.
10389 Use of this flag for other registers that have fixed pervasive roles in
10390 the machine's execution model will produce disastrous results.
10391 .Sp
10392 A different sort of disaster will result from the use of this flag for
10393 a register in which function values may be returned.
10394 .Sp
10395 This flag does not have a negative form, because it specifies a
10396 three-way choice.
10397 .IP "\fB\-fpack\-struct\fR" 4
10398 .IX Item "-fpack-struct"
10399 Pack all structure members together without holes.
10400 .Sp
10401 \&\fBWarning:\fR the \fB\-fpack\-struct\fR switch causes \s-1GCC\s0 to generate
10402 code that is not binary compatible with code generated without that switch.
10403 Additionally, it makes the code suboptimal.
10404 Use it to conform to a non-default application binary interface.
10405 .IP "\fB\-finstrument\-functions\fR" 4
10406 .IX Item "-finstrument-functions"
10407 Generate instrumentation calls for entry and exit to functions.  Just
10408 after function entry and just before function exit, the following
10409 profiling functions will be called with the address of the current
10410 function and its call site.  (On some platforms,
10411 \&\f(CW\*(C`_\|_builtin_return_address\*(C'\fR does not work beyond the current
10412 function, so the call site information may not be available to the
10413 profiling functions otherwise.)
10414 .Sp
10415 .Vb 4
10416 \&        void __cyg_profile_func_enter (void *this_fn,
10417 \&                                       void *call_site);
10418 \&        void __cyg_profile_func_exit  (void *this_fn,
10419 \&                                       void *call_site);
10420 .Ve
10421 .Sp
10422 The first argument is the address of the start of the current function,
10423 which may be looked up exactly in the symbol table.
10424 .Sp
10425 This currently disables function inlining.  This restriction is
10426 expected to be removed in future releases.
10427 .Sp
10428 A function may be given the attribute \f(CW\*(C`no_instrument_function\*(C'\fR, in
10429 which case this instrumentation will not be done.  This can be used, for
10430 example, for the profiling functions listed above, high-priority
10431 interrupt routines, and any functions from which the profiling functions
10432 cannot safely be called (perhaps signal handlers, if the profiling
10433 routines generate output or allocate memory).
10434 .IP "\fB\-fstack\-check\fR" 4
10435 .IX Item "-fstack-check"
10436 Generate code to verify that you do not go beyond the boundary of the
10437 stack.  You should specify this flag if you are running in an
10438 environment with multiple threads, but only rarely need to specify it in
10439 a single-threaded environment since stack overflow is automatically
10440 detected on nearly all systems if there is only one stack.
10441 .Sp
10442 Note that this switch does not actually cause checking to be done; the
10443 operating system must do that.  The switch causes generation of code
10444 to ensure that the operating system sees the stack being extended.
10445 .IP "\fB\-fstack\-limit\-register=\fR\fIreg\fR" 4
10446 .IX Item "-fstack-limit-register=reg"
10447 .PD 0
10448 .IP "\fB\-fstack\-limit\-symbol=\fR\fIsym\fR" 4
10449 .IX Item "-fstack-limit-symbol=sym"
10450 .IP "\fB\-fno\-stack\-limit\fR" 4
10451 .IX Item "-fno-stack-limit"
10452 .PD
10453 Generate code to ensure that the stack does not grow beyond a certain value,
10454 either the value of a register or the address of a symbol.  If the stack
10455 would grow beyond the value, a signal is raised.  For most targets,
10456 the signal is raised before the stack overruns the boundary, so
10457 it is possible to catch the signal without taking special precautions.
10458 .Sp
10459 For instance, if the stack starts at absolute address \fB0x80000000\fR
10460 and grows downwards, you can use the flags
10461 \&\fB\-fstack\-limit\-symbol=_\|_stack_limit\fR and
10462 \&\fB\-Wl,\-\-defsym,_\|_stack_limit=0x7ffe0000\fR to enforce a stack limit
10463 of 128KB.  Note that this may only work with the \s-1GNU\s0 linker.
10464 .IP "\fB\-fargument\-alias\fR" 4
10465 .IX Item "-fargument-alias"
10466 .PD 0
10467 .IP "\fB\-fargument\-noalias\fR" 4
10468 .IX Item "-fargument-noalias"
10469 .IP "\fB\-fargument\-noalias\-global\fR" 4
10470 .IX Item "-fargument-noalias-global"
10471 .PD
10472 Specify the possible relationships among parameters and between
10473 parameters and global data.
10474 .Sp
10475 \&\fB\-fargument\-alias\fR specifies that arguments (parameters) may
10476 alias each other and may alias global storage.\fB\-fargument\-noalias\fR specifies that arguments do not alias
10477 each other, but may alias global storage.\fB\-fargument\-noalias\-global\fR specifies that arguments do not
10478 alias each other and do not alias global storage.
10479 .Sp
10480 Each language will automatically use whatever option is required by
10481 the language standard.  You should not need to use these options yourself.
10482 .IP "\fB\-fleading\-underscore\fR" 4
10483 .IX Item "-fleading-underscore"
10484 This option and its counterpart, \fB\-fno\-leading\-underscore\fR, forcibly
10485 change the way C symbols are represented in the object file.  One use
10486 is to help link with legacy assembly code.
10487 .Sp
10488 \&\fBWarning:\fR the \fB\-fleading\-underscore\fR switch causes \s-1GCC\s0 to
10489 generate code that is not binary compatible with code generated without that
10490 switch.  Use it to conform to a non-default application binary interface.
10491 Not all targets provide complete support for this switch.
10492 .IP "\fB\-ftls\-model=\fR\fImodel\fR" 4
10493 .IX Item "-ftls-model=model"
10494 Alter the thread-local storage model to be used.
10495 The \fImodel\fR argument should be one of \f(CW\*(C`global\-dynamic\*(C'\fR,
10496 \&\f(CW\*(C`local\-dynamic\*(C'\fR, \f(CW\*(C`initial\-exec\*(C'\fR or \f(CW\*(C`local\-exec\*(C'\fR.
10497 .Sp
10498 The default without \fB\-fpic\fR is \f(CW\*(C`initial\-exec\*(C'\fR; with
10499 \&\fB\-fpic\fR the default is \f(CW\*(C`global\-dynamic\*(C'\fR.
10500 .SH "ENVIRONMENT"
10501 .IX Header "ENVIRONMENT"
10502 This section describes several environment variables that affect how \s-1GCC\s0
10503 operates.  Some of them work by specifying directories or prefixes to use
10504 when searching for various kinds of files.  Some are used to specify other
10505 aspects of the compilation environment.
10506 .PP
10507 Note that you can also specify places to search using options such as
10508 \&\fB\-B\fR, \fB\-I\fR and \fB\-L\fR.  These
10509 take precedence over places specified using environment variables, which
10510 in turn take precedence over those specified by the configuration of \s-1GCC\s0.
10511 .IP "\fB\s-1LANG\s0\fR" 4
10512 .IX Item "LANG"
10513 .PD 0
10514 .IP "\fB\s-1LC_CTYPE\s0\fR" 4
10515 .IX Item "LC_CTYPE"
10516 .IP "\fB\s-1LC_MESSAGES\s0\fR" 4
10517 .IX Item "LC_MESSAGES"
10518 .IP "\fB\s-1LC_ALL\s0\fR" 4
10519 .IX Item "LC_ALL"
10520 .PD
10521 These environment variables control the way that \s-1GCC\s0 uses
10522 localization information that allow \s-1GCC\s0 to work with different
10523 national conventions.  \s-1GCC\s0 inspects the locale categories
10524 \&\fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR if it has been configured to do
10525 so.  These locale categories can be set to any value supported by your
10526 installation.  A typical value is \fBen_GB.UTF\-8\fR for English in the United
10527 Kingdom encoded in \s-1UTF\-8\s0.
10528 .Sp
10529 The \fB\s-1LC_CTYPE\s0\fR environment variable specifies character
10530 classification.  \s-1GCC\s0 uses it to determine the character boundaries in
10531 a string; this is needed for some multibyte encodings that contain quote
10532 and escape characters that would otherwise be interpreted as a string
10533 end or escape.
10534 .Sp
10535 The \fB\s-1LC_MESSAGES\s0\fR environment variable specifies the language to
10536 use in diagnostic messages.
10537 .Sp
10538 If the \fB\s-1LC_ALL\s0\fR environment variable is set, it overrides the value
10539 of \fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR; otherwise, \fB\s-1LC_CTYPE\s0\fR
10540 and \fB\s-1LC_MESSAGES\s0\fR default to the value of the \fB\s-1LANG\s0\fR
10541 environment variable.  If none of these variables are set, \s-1GCC\s0
10542 defaults to traditional C English behavior.
10543 .IP "\fB\s-1TMPDIR\s0\fR" 4
10544 .IX Item "TMPDIR"
10545 If \fB\s-1TMPDIR\s0\fR is set, it specifies the directory to use for temporary
10546 files.  \s-1GCC\s0 uses temporary files to hold the output of one stage of
10547 compilation which is to be used as input to the next stage: for example,
10548 the output of the preprocessor, which is the input to the compiler
10549 proper.
10550 .IP "\fB\s-1GCC_EXEC_PREFIX\s0\fR" 4
10551 .IX Item "GCC_EXEC_PREFIX"
10552 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is set, it specifies a prefix to use in the
10553 names of the subprograms executed by the compiler.  No slash is added
10554 when this prefix is combined with the name of a subprogram, but you can
10555 specify a prefix that ends with a slash if you wish.
10556 .Sp
10557 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is not set, \s-1GCC\s0 will attempt to figure out
10558 an appropriate prefix to use based on the pathname it was invoked with.
10559 .Sp
10560 If \s-1GCC\s0 cannot find the subprogram using the specified prefix, it
10561 tries looking in the usual places for the subprogram.
10562 .Sp
10563 The default value of \fB\s-1GCC_EXEC_PREFIX\s0\fR is
10564 \&\fI\fIprefix\fI/lib/gcc/\fR where \fIprefix\fR is the value
10565 of \f(CW\*(C`prefix\*(C'\fR when you ran the \fIconfigure\fR script.
10566 .Sp
10567 Other prefixes specified with \fB\-B\fR take precedence over this prefix.
10568 .Sp
10569 This prefix is also used for finding files such as \fIcrt0.o\fR that are
10570 used for linking.
10571 .Sp
10572 In addition, the prefix is used in an unusual way in finding the
10573 directories to search for header files.  For each of the standard
10574 directories whose name normally begins with \fB/usr/local/lib/gcc\fR
10575 (more precisely, with the value of \fB\s-1GCC_INCLUDE_DIR\s0\fR), \s-1GCC\s0 tries
10576 replacing that beginning with the specified prefix to produce an
10577 alternate directory name.  Thus, with \fB\-Bfoo/\fR, \s-1GCC\s0 will search
10578 \&\fIfoo/bar\fR where it would normally search \fI/usr/local/lib/bar\fR.
10579 These alternate directories are searched first; the standard directories
10580 come next.
10581 .IP "\fB\s-1COMPILER_PATH\s0\fR" 4
10582 .IX Item "COMPILER_PATH"
10583 The value of \fB\s-1COMPILER_PATH\s0\fR is a colon-separated list of
10584 directories, much like \fB\s-1PATH\s0\fR.  \s-1GCC\s0 tries the directories thus
10585 specified when searching for subprograms, if it can't find the
10586 subprograms using \fB\s-1GCC_EXEC_PREFIX\s0\fR.
10587 .IP "\fB\s-1LIBRARY_PATH\s0\fR" 4
10588 .IX Item "LIBRARY_PATH"
10589 The value of \fB\s-1LIBRARY_PATH\s0\fR is a colon-separated list of
10590 directories, much like \fB\s-1PATH\s0\fR.  When configured as a native compiler,
10591 \&\s-1GCC\s0 tries the directories thus specified when searching for special
10592 linker files, if it can't find them using \fB\s-1GCC_EXEC_PREFIX\s0\fR.  Linking
10593 using \s-1GCC\s0 also uses these directories when searching for ordinary
10594 libraries for the \fB\-l\fR option (but directories specified with
10595 \&\fB\-L\fR come first).
10596 .IP "\fB\s-1LANG\s0\fR" 4
10597 .IX Item "LANG"
10598 This variable is used to pass locale information to the compiler.  One way in
10599 which this information is used is to determine the character set to be used
10600 when character literals, string literals and comments are parsed in C and \*(C+.
10601 When the compiler is configured to allow multibyte characters,
10602 the following values for \fB\s-1LANG\s0\fR are recognized:
10603 .RS 4
10604 .IP "\fBC\-JIS\fR" 4
10605 .IX Item "C-JIS"
10606 Recognize \s-1JIS\s0 characters.
10607 .IP "\fBC\-SJIS\fR" 4
10608 .IX Item "C-SJIS"
10609 Recognize \s-1SJIS\s0 characters.
10610 .IP "\fBC\-EUCJP\fR" 4
10611 .IX Item "C-EUCJP"
10612 Recognize \s-1EUCJP\s0 characters.
10613 .RE
10614 .RS 4
10615 .Sp
10616 If \fB\s-1LANG\s0\fR is not defined, or if it has some other value, then the
10617 compiler will use mblen and mbtowc as defined by the default locale to
10618 recognize and translate multibyte characters.
10619 .RE
10620 .PP
10621 Some additional environments variables affect the behavior of the
10622 preprocessor.
10623 .IP "\fB\s-1CPATH\s0\fR" 4
10624 .IX Item "CPATH"
10625 .PD 0
10626 .IP "\fBC_INCLUDE_PATH\fR" 4
10627 .IX Item "C_INCLUDE_PATH"
10628 .IP "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4
10629 .IX Item "CPLUS_INCLUDE_PATH"
10630 .IP "\fB\s-1OBJC_INCLUDE_PATH\s0\fR" 4
10631 .IX Item "OBJC_INCLUDE_PATH"
10632 .PD
10633 Each variable's value is a list of directories separated by a special
10634 character, much like \fB\s-1PATH\s0\fR, in which to look for header files.
10635 The special character, \f(CW\*(C`PATH_SEPARATOR\*(C'\fR, is target-dependent and
10636 determined at \s-1GCC\s0 build time.  For Microsoft Windows-based targets it is a
10637 semicolon, and for almost all other targets it is a colon.
10638 .Sp
10639 \&\fB\s-1CPATH\s0\fR specifies a list of directories to be searched as if
10640 specified with \fB\-I\fR, but after any paths given with \fB\-I\fR
10641 options on the command line.  This environment variable is used
10642 regardless of which language is being preprocessed.
10643 .Sp
10644 The remaining environment variables apply only when preprocessing the
10645 particular language indicated.  Each specifies a list of directories
10646 to be searched as if specified with \fB\-isystem\fR, but after any
10647 paths given with \fB\-isystem\fR options on the command line.
10648 .Sp
10649 In all these variables, an empty element instructs the compiler to
10650 search its current working directory.  Empty elements can appear at the
10651 beginning or end of a path.  For instance, if the value of
10652 \&\fB\s-1CPATH\s0\fR is \f(CW\*(C`:/special/include\*(C'\fR, that has the same
10653 effect as \fB\-I.\ \-I/special/include\fR.
10654 .IP "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4
10655 .IX Item "DEPENDENCIES_OUTPUT"
10656 If this variable is set, its value specifies how to output
10657 dependencies for Make based on the non-system header files processed
10658 by the compiler.  System header files are ignored in the dependency
10659 output.
10660 .Sp
10661 The value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, in
10662 which case the Make rules are written to that file, guessing the target
10663 name from the source file name.  Or the value can have the form
10664 \&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written to
10665 file \fIfile\fR using \fItarget\fR as the target name.
10666 .Sp
10667 In other words, this environment variable is equivalent to combining
10668 the options \fB\-MM\fR and \fB\-MF\fR,
10669 with an optional \fB\-MT\fR switch too.
10670 .IP "\fB\s-1SUNPRO_DEPENDENCIES\s0\fR" 4
10671 .IX Item "SUNPRO_DEPENDENCIES"
10672 This variable is the same as \fB\s-1DEPENDENCIES_OUTPUT\s0\fR (see above),
10673 except that system header files are not ignored, so it implies
10674 \&\fB\-M\fR rather than \fB\-MM\fR.  However, the dependence on the
10675 main input file is omitted.
10676 .SH "BUGS"
10677 .IX Header "BUGS"
10678 For instructions on reporting bugs, see
10679 <\fBhttp://gcc.gnu.org/bugs.html\fR>.  Use of the \fBgccbug\fR
10680 script to report bugs is recommended.
10681 .SH "FOOTNOTES"
10682 .IX Header "FOOTNOTES"
10683 .IP "1." 4
10684 On some systems, \fBgcc \-shared\fR
10685 needs to build supplementary stub code for constructors to work.  On
10686 multi-libbed systems, \fBgcc \-shared\fR must select the correct support
10687 libraries to link against.  Failing to supply the correct flags may lead
10688 to subtle defects.  Supplying them in cases where they are not necessary
10689 is innocuous.
10690 .SH "SEE ALSO"
10691 .IX Header "SEE ALSO"
10692 \&\fIgpl\fR\|(7), \fIgfdl\fR\|(7), \fIfsf\-funding\fR\|(7),
10693 \&\fIcpp\fR\|(1), \fIgcov\fR\|(1), \fIg77\fR\|(1), \fIas\fR\|(1), \fIld\fR\|(1), \fIgdb\fR\|(1), \fIadb\fR\|(1), \fIdbx\fR\|(1), \fIsdb\fR\|(1)
10694 and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIg77\fR, \fIas\fR,
10695 \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
10696 .SH "AUTHOR"
10697 .IX Header "AUTHOR"
10698 See the Info entry for \fBgcc\fR, or
10699 <\fBhttp://gcc.gnu.org/onlinedocs/gcc/Contributors.html\fR>,
10700 for contributors to \s-1GCC\s0.
10701 .SH "COPYRIGHT"
10702 .IX Header "COPYRIGHT"
10703 Copyright (c) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997,
10704 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
10705 .PP
10706 Permission is granted to copy, distribute and/or modify this document
10707 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.2 or
10708 any later version published by the Free Software Foundation; with the
10709 Invariant Sections being ``\s-1GNU\s0 General Public License'' and ``Funding
10710 Free Software'', the Front-Cover texts being (a) (see below), and with
10711 the Back-Cover Texts being (b) (see below).  A copy of the license is
10712 included in the \fIgfdl\fR\|(7) man page.
10713 .PP
10714 (a) The \s-1FSF\s0's Front-Cover Text is:
10715 .PP
10716 .Vb 1
10717 \&     A GNU Manual
10718 .Ve
10719 .PP
10720 (b) The \s-1FSF\s0's Back-Cover Text is:
10721 .PP
10722 .Vb 3
10723 \&     You have freedom to copy and modify this GNU Manual, like GNU
10724 \&     software.  Copies published by the Free Software Foundation raise
10725 \&     funds for GNU development.
10726 .Ve