]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/gcc/doc/gcc.1
This commit was generated by cvs2svn to compensate for changes in r162017,
[FreeBSD/FreeBSD.git] / contrib / gcc / doc / gcc.1
1 .\" Automatically generated by Pod::Man version 1.15
2 .\" Wed Feb  5 03:13:56 2003
3 .\"
4 .\" Standard preamble:
5 .\" ======================================================================
6 .de Sh \" Subsection heading
7 .br
8 .if t .Sp
9 .ne 5
10 .PP
11 \fB\\$1\fR
12 .PP
13 ..
14 .de Sp \" Vertical space (when we can't use .PP)
15 .if t .sp .5v
16 .if n .sp
17 ..
18 .de Ip \" List item
19 .br
20 .ie \\n(.$>=3 .ne \\$3
21 .el .ne 3
22 .IP "\\$1" \\$2
23 ..
24 .de Vb \" Begin verbatim text
25 .ft CW
26 .nf
27 .ne \\$1
28 ..
29 .de Ve \" End verbatim text
30 .ft R
31
32 .fi
33 ..
34 .\" Set up some character translations and predefined strings.  \*(-- will
35 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
36 .\" double quote, and \*(R" will give a right double quote.  | will give a
37 .\" real vertical bar.  \*(C+ will give a nicer C++.  Capital omega is used
38 .\" to do unbreakable dashes and therefore won't be available.  \*(C` and
39 .\" \*(C' expand to `' in nroff, nothing in troff, for use with C<>
40 .tr \(*W-|\(bv\*(Tr
41 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
42 .ie n \{\
43 .    ds -- \(*W-
44 .    ds PI pi
45 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
46 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
47 .    ds L" ""
48 .    ds R" ""
49 .    ds C` ""
50 .    ds C' ""
51 'br\}
52 .el\{\
53 .    ds -- \|\(em\|
54 .    ds PI \(*p
55 .    ds L" ``
56 .    ds R" ''
57 'br\}
58 .\"
59 .\" If the F register is turned on, we'll generate index entries on stderr
60 .\" for titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and
61 .\" index entries marked with X<> in POD.  Of course, you'll have to process
62 .\" the output yourself in some meaningful fashion.
63 .if \nF \{\
64 .    de IX
65 .    tm Index:\\$1\t\\n%\t"\\$2"
66 ..
67 .    nr % 0
68 .    rr F
69 .\}
70 .\"
71 .\" For nroff, turn off justification.  Always turn off hyphenation; it
72 .\" makes way too many mistakes in technical documents.
73 .hy 0
74 .if n .na
75 .\"
76 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
77 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
78 .bd B 3
79 .    \" fudge factors for nroff and troff
80 .if n \{\
81 .    ds #H 0
82 .    ds #V .8m
83 .    ds #F .3m
84 .    ds #[ \f1
85 .    ds #] \fP
86 .\}
87 .if t \{\
88 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
89 .    ds #V .6m
90 .    ds #F 0
91 .    ds #[ \&
92 .    ds #] \&
93 .\}
94 .    \" simple accents for nroff and troff
95 .if n \{\
96 .    ds ' \&
97 .    ds ` \&
98 .    ds ^ \&
99 .    ds , \&
100 .    ds ~ ~
101 .    ds /
102 .\}
103 .if t \{\
104 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
105 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
106 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
107 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
108 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
109 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
110 .\}
111 .    \" troff and (daisy-wheel) nroff accents
112 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
113 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
114 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
115 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
116 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
117 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
118 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
119 .ds ae a\h'-(\w'a'u*4/10)'e
120 .ds Ae A\h'-(\w'A'u*4/10)'E
121 .    \" corrections for vroff
122 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
123 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
124 .    \" for low resolution devices (crt and lpr)
125 .if \n(.H>23 .if \n(.V>19 \
126 \{\
127 .    ds : e
128 .    ds 8 ss
129 .    ds o a
130 .    ds d- d\h'-1'\(ga
131 .    ds D- D\h'-1'\(hy
132 .    ds th \o'bp'
133 .    ds Th \o'LP'
134 .    ds ae ae
135 .    ds Ae AE
136 .\}
137 .rm #[ #] #H #V #F C
138 .\" ======================================================================
139 .\"
140 .IX Title "GCC 1"
141 .TH GCC 1 "gcc-3.2.2" "2003-02-05" "GNU"
142 .UC
143 .SH "NAME"
144 gcc \- \s-1GNU\s0 project C and \*(C+ compiler
145 .SH "SYNOPSIS"
146 .IX Header "SYNOPSIS"
147 gcc [\fB\-c\fR|\fB\-S\fR|\fB\-E\fR] [\fB\-std=\fR\fIstandard\fR]
148     [\fB\-g\fR] [\fB\-pg\fR] [\fB\-O\fR\fIlevel\fR]
149     [\fB\-W\fR\fIwarn\fR...] [\fB\-pedantic\fR]
150     [\fB\-I\fR\fIdir\fR...] [\fB\-L\fR\fIdir\fR...]
151     [\fB\-D\fR\fImacro\fR[=\fIdefn\fR]...] [\fB\-U\fR\fImacro\fR]
152     [\fB\-f\fR\fIoption\fR...] [\fB\-m\fR\fImachine-option\fR...]
153     [\fB\-o\fR \fIoutfile\fR] \fIinfile\fR...
154 .PP
155 Only the most useful options are listed here; see below for the
156 remainder.  \fBg++\fR accepts mostly the same options as \fBgcc\fR.
157 .SH "DESCRIPTION"
158 .IX Header "DESCRIPTION"
159 When you invoke \s-1GCC\s0, it normally does preprocessing, compilation,
160 assembly and linking.  The ``overall options'' allow you to stop this
161 process at an intermediate stage.  For example, the \fB\-c\fR option
162 says not to run the linker.  Then the output consists of object files
163 output by the assembler.
164 .PP
165 Other options are passed on to one stage of processing.  Some options
166 control the preprocessor and others the compiler itself.  Yet other
167 options control the assembler and linker; most of these are not
168 documented here, since you rarely need to use any of them.
169 .PP
170 Most of the command line options that you can use with \s-1GCC\s0 are useful
171 for C programs; when an option is only useful with another language
172 (usually \*(C+), the explanation says so explicitly.  If the description
173 for a particular option does not mention a source language, you can use
174 that option with all supported languages.
175 .PP
176 The \fBgcc\fR program accepts options and file names as operands.  Many
177 options have multi-letter names; therefore multiple single-letter options
178 may \fInot\fR be grouped: \fB\-dr\fR is very different from \fB\-d\ \-r\fR.
179 .PP
180 You can mix options and other arguments.  For the most part, the order
181 you use doesn't matter.  Order does matter when you use several options
182 of the same kind; for example, if you specify \fB\-L\fR more than once,
183 the directories are searched in the order specified.
184 .PP
185 Many options have long names starting with \fB\-f\fR or with
186 \&\fB\-W\fR\-\-\-for example, \fB\-fforce-mem\fR,
187 \&\fB\-fstrength-reduce\fR, \fB\-Wformat\fR and so on.  Most of
188 these have both positive and negative forms; the negative form of
189 \&\fB\-ffoo\fR would be \fB\-fno-foo\fR.  This manual documents
190 only one of these two forms, whichever one is not the default.
191 .SH "OPTIONS"
192 .IX Header "OPTIONS"
193 .Sh "Option Summary"
194 .IX Subsection "Option Summary"
195 Here is a summary of all the options, grouped by type.  Explanations are
196 in the following sections.
197 .Ip "\fIOverall Options\fR" 4
198 .IX Item "Overall Options"
199 \&\fB\-c  \-S  \-E  \-o\fR \fIfile\fR  \fB\-pipe  \-pass-exit-codes  \-x\fR \fIlanguage\fR 
200 \&\fB\-v  \-###  \-\-help  \-\-target-help  \-\-version\fR
201 .Ip "\fIC Language Options\fR" 4
202 .IX Item "C Language Options"
203 \&\fB\-ansi  \-std=\fR\fIstandard\fR  \fB\-aux-info\fR \fIfilename\fR 
204 \&\fB\-fno-asm  \-fno-builtin \-fno-builtin-\fR\fIfunction\fR 
205 \&\fB\-fhosted  \-ffreestanding 
206 \&\-trigraphs  \-no-integrated-cpp  \-traditional  \-traditional-cpp 
207 \&\-fallow-single-precision  \-fcond-mismatch 
208 \&\-fsigned-bitfields  \-fsigned-char 
209 \&\-funsigned-bitfields  \-funsigned-char 
210 \&\-fwritable-strings\fR
211 .Ip "\fI\*(C+ Language Options\fR" 4
212 .IX Item " Language Options"
213 \&\fB\-fno-access-control  \-fcheck-new  \-fconserve-space 
214 \&\-fno-const-strings  \-fdollars-in-identifiers 
215 \&\-fno-elide-constructors 
216 \&\-fno-enforce-eh-specs  \-fexternal-templates 
217 \&\-falt-external-templates 
218 \&\-ffor-scope  \-fno-for-scope  \-fno-gnu-keywords 
219 \&\-fno-implicit-templates 
220 \&\-fno-implicit-inline-templates 
221 \&\-fno-implement-inlines  \-fms-extensions 
222 \&\-fno-nonansi-builtins  \-fno-operator-names 
223 \&\-fno-optional-diags  \-fpermissive 
224 \&\-frepo  \-fno-rtti  \-fstats  \-ftemplate-depth-\fR\fIn\fR 
225 \&\fB\-fuse-cxa-atexit  \-fvtable-gc  \-fno-weak  \-nostdinc++ 
226 \&\-fno-default-inline \-Wabi \-Wctor-dtor-privacy 
227 \&\-Wnon-virtual-dtor  \-Wreorder 
228 \&\-Weffc++  \-Wno-deprecated 
229 \&\-Wno-non-template-friend  \-Wold-style-cast 
230 \&\-Woverloaded-virtual  \-Wno-pmf-conversions 
231 \&\-Wsign-promo  \-Wsynth\fR
232 .Ip "\fIObjective-C Language Options\fR" 4
233 .IX Item "Objective-C Language Options"
234 \&\fB\-fconstant-string-class=\fR\fIclass-name\fR 
235 \&\fB\-fgnu-runtime  \-fnext-runtime  \-gen-decls 
236 \&\-Wno-protocol  \-Wselector\fR
237 .Ip "\fILanguage Independent Options\fR" 4
238 .IX Item "Language Independent Options"
239 \&\fB\-fmessage-length=\fR\fIn\fR  
240 \&\fB\-fdiagnostics-show-location=\fR[\fBonce\fR|\fBevery-line\fR]
241 .Ip "\fIWarning Options\fR" 4
242 .IX Item "Warning Options"
243 \&\fB\-fsyntax-only  \-pedantic  \-pedantic-errors 
244 \&\-w  \-W  \-Wall \-Waggregate-return 
245 \&\-Wcast-align  \-Wcast-qual  \-Wchar-subscripts  \-Wcomment 
246 \&\-Wconversion  \-Wno-deprecated-declarations 
247 \&\-Wdisabled-optimization  \-Wdiv-by-zero  \-Werror 
248 \&\-Wfloat-equal  \-Wformat  \-Wformat=2 
249 \&\-Wformat-nonliteral  \-Wformat-security 
250 \&\-Wimplicit  \-Wimplicit-int  
251 \&\-Wimplicit-function-declaration 
252 \&\-Werror-implicit-function-declaration 
253 \&\-Wimport  \-Winline 
254 \&\-Wlarger-than-\fR\fIlen\fR  \fB\-Wlong-long 
255 \&\-Wmain  \-Wmissing-braces 
256 \&\-Wmissing-format-attribute  \-Wmissing-noreturn 
257 \&\-Wmultichar  \-Wno-format-extra-args  \-Wno-format-y2k 
258 \&\-Wno-import  \-Wpacked  \-Wpadded 
259 \&\-Wparentheses  \-Wpointer-arith  \-Wredundant-decls 
260 \&\-Wreturn-type  \-Wsequence-point  \-Wshadow 
261 \&\-Wsign-compare  \-Wswitch  \-Wsystem-headers 
262 \&\-Wtrigraphs  \-Wundef  \-Wuninitialized 
263 \&\-Wunknown-pragmas  \-Wunreachable-code 
264 \&\-Wunused  \-Wunused-function  \-Wunused-label  \-Wunused-parameter 
265 \&\-Wunused-value  \-Wunused-variable  \-Wwrite-strings\fR
266 .Ip "\fIC-only Warning Options\fR" 4
267 .IX Item "C-only Warning Options"
268 \&\fB\-Wbad-function-cast  \-Wmissing-declarations 
269 \&\-Wmissing-prototypes  \-Wnested-externs 
270 \&\-Wstrict-prototypes  \-Wtraditional\fR
271 .Ip "\fIDebugging Options\fR" 4
272 .IX Item "Debugging Options"
273 \&\fB\-d\fR\fIletters\fR  \fB\-dumpspecs  \-dumpmachine  \-dumpversion 
274 \&\-fdump-unnumbered \-fdump-translation-unit\fR[\fB-\fR\fIn\fR] 
275 \&\fB\-fdump-class-hierarchy\fR[\fB-\fR\fIn\fR] 
276 \&\fB\-fdump-tree-original\fR[\fB-\fR\fIn\fR] \fB\-fdump-tree-optimized\fR[\fB-\fR\fIn\fR] 
277 \&\fB\-fdump-tree-inlined\fR[\fB-\fR\fIn\fR] 
278 \&\fB\-fmem-report  \-fpretend-float 
279 \&\-fprofile-arcs  \-fsched-verbose=\fR\fIn\fR 
280 \&\fB\-ftest-coverage  \-ftime-report 
281 \&\-g  \-g\fR\fIlevel\fR  \fB\-gcoff  \-gdwarf  \-gdwarf-1  \-gdwarf-1+  \-gdwarf-2 
282 \&\-ggdb  \-gstabs  \-gstabs+  \-gvms  \-gxcoff  \-gxcoff+ 
283 \&\-p  \-pg  \-print-file-name=\fR\fIlibrary\fR  \fB\-print-libgcc-file-name 
284 \&\-print-multi-directory  \-print-multi-lib 
285 \&\-print-prog-name=\fR\fIprogram\fR  \fB\-print-search-dirs  \-Q 
286 \&\-save-temps  \-time\fR
287 .Ip "\fIOptimization Options\fR" 4
288 .IX Item "Optimization Options"
289 \&\fB\-falign-functions=\fR\fIn\fR  \fB\-falign-jumps=\fR\fIn\fR 
290 \&\fB\-falign-labels=\fR\fIn\fR  \fB\-falign-loops=\fR\fIn\fR  
291 \&\fB\-fbounds-check 
292 \&\-fbranch-probabilities  \-fcaller-saves \-fcprop-registers 
293 \&\-fcse-follow-jumps  \-fcse-skip-blocks  \-fdata-sections 
294 \&\-fdelayed-branch  \-fdelete-null-pointer-checks 
295 \&\-fexpensive-optimizations  \-ffast-math  \-ffloat-store 
296 \&\-fforce-addr  \-fforce-mem  \-ffunction-sections 
297 \&\-fgcse  \-fgcse-lm  \-fgcse-sm 
298 \&\-finline-functions  \-finline-limit=\fR\fIn\fR  \fB\-fkeep-inline-functions 
299 \&\-fkeep-static-consts  \-fmerge-constants  \-fmerge-all-constants 
300 \&\-fmove-all-movables  \-fno-branch-count-reg 
301 \&\-fno-default-inline  \-fno-defer-pop 
302 \&\-fno-function-cse  \-fno-guess-branch-probability 
303 \&\-fno-inline  \-fno-math-errno  \-fno-peephole  \-fno-peephole2 
304 \&\-funsafe-math-optimizations \-fno-trapping-math 
305 \&\-fomit-frame-pointer  \-foptimize-register-move 
306 \&\-foptimize-sibling-calls  \-fprefetch-loop-arrays 
307 \&\-freduce-all-givs \-fregmove  \-frename-registers 
308 \&\-frerun-cse-after-loop  \-frerun-loop-opt 
309 \&\-fschedule-insns  \-fschedule-insns2 
310 \&\-fno-sched-interblock  \-fno-sched-spec 
311 \&\-fsched-spec-load  \-fsched-spec-load-dangerous 
312 \&\-fsingle-precision-constant  \-fssa \-fssa-ccp \-fssa-dce 
313 \&\-fstrength-reduce  \-fstrict-aliasing  \-fthread-jumps 
314 \&\-ftrapv \-funroll-all-loops  \-funroll-loops  
315 \&\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR
316 \&\fB\-O  \-O0  \-O1  \-O2  \-O3  \-Os\fR
317 .Ip "\fIPreprocessor Options\fR" 4
318 .IX Item "Preprocessor Options"
319 \&\fB\-$  \-A\fR\fIquestion\fR\fB=\fR\fIanswer\fR  \fB\-A-\fR\fIquestion\fR[\fB=\fR\fIanswer\fR] 
320 \&\fB\-C  \-dD  \-dI  \-dM  \-dN 
321 \&\-D\fR\fImacro\fR[\fB=\fR\fIdefn\fR]  \fB\-E  \-H 
322 \&\-idirafter\fR \fIdir\fR 
323 \&\fB\-include\fR \fIfile\fR  \fB\-imacros\fR \fIfile\fR 
324 \&\fB\-iprefix\fR \fIfile\fR  \fB\-iwithprefix\fR \fIdir\fR 
325 \&\fB\-iwithprefixbefore\fR \fIdir\fR  \fB\-isystem\fR \fIdir\fR 
326 \&\fB\-M  \-MM  \-MF  \-MG  \-MP  \-MQ  \-MT  \-nostdinc  \-P  \-remap 
327 \&\-trigraphs  \-undef  \-U\fR\fImacro\fR  \fB\-Wp,\fR\fIoption\fR
328 .Ip "\fIAssembler Option\fR" 4
329 .IX Item "Assembler Option"
330 \&\fB\-Wa,\fR\fIoption\fR
331 .Ip "\fILinker Options\fR" 4
332 .IX Item "Linker Options"
333 \&\fB
334 \&\fR\fIobject-file-name\fR  \fB\-l\fR\fIlibrary\fR 
335 \&\fB\-nostartfiles  \-nodefaultlibs  \-nostdlib 
336 \&\-s  \-static  \-static-libgcc  \-shared  \-shared-libgcc  \-symbolic 
337 \&\-Wl,\fR\fIoption\fR  \fB\-Xlinker\fR \fIoption\fR 
338 \&\fB\-u\fR \fIsymbol\fR
339 .Ip "\fIDirectory Options\fR" 4
340 .IX Item "Directory Options"
341 \&\fB\-B\fR\fIprefix\fR  \fB\-I\fR\fIdir\fR  \fB\-I-  \-L\fR\fIdir\fR  \fB\-specs=\fR\fIfile\fR
342 .Ip "\fITarget Options\fR" 4
343 .IX Item "Target Options"
344 \&\fB\-b\fR \fImachine\fR  \fB\-V\fR \fIversion\fR
345 .Ip "\fIMachine Dependent Options\fR" 4
346 .IX Item "Machine Dependent Options"
347 \&\fIM680x0 Options\fR
348 .Sp
349 \&\fB\-m68000  \-m68020  \-m68020\-40  \-m68020\-60  \-m68030  \-m68040 
350 \&\-m68060  \-mcpu32  \-m5200  \-m68881  \-mbitfield  \-mc68000  \-mc68020   
351 \&\-mfpa  \-mnobitfield  \-mrtd  \-mshort  \-msoft-float  \-mpcrel 
352 \&\-malign-int  \-mstrict-align\fR
353 .Sp
354 \&\fIM68hc1x Options\fR
355 .Sp
356 \&\fB\-m6811  \-m6812  \-m68hc11  \-m68hc12 
357 \&\-mauto-incdec  \-mshort  \-msoft-reg-count=\fR\fIcount\fR
358 .Sp
359 \&\fI\s-1VAX\s0 Options\fR
360 .Sp
361 \&\fB\-mg  \-mgnu  \-munix\fR
362 .Sp
363 \&\fI\s-1SPARC\s0 Options\fR
364 .Sp
365 \&\fB\-mcpu=\fR\fIcpu-type\fR 
366 \&\fB\-mtune=\fR\fIcpu-type\fR 
367 \&\fB\-mcmodel=\fR\fIcode-model\fR 
368 \&\fB\-m32  \-m64 
369 \&\-mapp-regs  \-mbroken-saverestore  \-mcypress 
370 \&\-mfaster-structs  \-mflat 
371 \&\-mfpu  \-mhard-float  \-mhard-quad-float 
372 \&\-mimpure-text  \-mlive-g0  \-mno-app-regs 
373 \&\-mno-faster-structs  \-mno-flat  \-mno-fpu 
374 \&\-mno-impure-text  \-mno-stack-bias  \-mno-unaligned-doubles 
375 \&\-msoft-float  \-msoft-quad-float  \-msparclite  \-mstack-bias 
376 \&\-msupersparc  \-munaligned-doubles  \-mv8\fR
377 .Sp
378 \&\fIConvex Options\fR
379 .Sp
380 \&\fB\-mc1  \-mc2  \-mc32  \-mc34  \-mc38 
381 \&\-margcount  \-mnoargcount 
382 \&\-mlong32  \-mlong64 
383 \&\-mvolatile-cache  \-mvolatile-nocache\fR
384 .Sp
385 \&\fI\s-1AMD29K\s0 Options\fR
386 .Sp
387 \&\fB\-m29000  \-m29050  \-mbw  \-mnbw  \-mdw  \-mndw 
388 \&\-mlarge  \-mnormal  \-msmall 
389 \&\-mkernel-registers  \-mno-reuse-arg-regs 
390 \&\-mno-stack-check  \-mno-storem-bug 
391 \&\-mreuse-arg-regs  \-msoft-float  \-mstack-check 
392 \&\-mstorem-bug  \-muser-registers\fR
393 .Sp
394 \&\fI\s-1ARM\s0 Options\fR
395 .Sp
396 \&\fB\-mapcs-frame  \-mno-apcs-frame 
397 \&\-mapcs-26  \-mapcs-32 
398 \&\-mapcs-stack-check  \-mno-apcs-stack-check 
399 \&\-mapcs-float  \-mno-apcs-float 
400 \&\-mapcs-reentrant  \-mno-apcs-reentrant 
401 \&\-msched-prolog  \-mno-sched-prolog 
402 \&\-mlittle-endian  \-mbig-endian  \-mwords-little-endian 
403 \&\-malignment-traps  \-mno-alignment-traps 
404 \&\-msoft-float  \-mhard-float  \-mfpe 
405 \&\-mthumb-interwork  \-mno-thumb-interwork 
406 \&\-mcpu=\fR\fIname\fR  \fB\-march=\fR\fIname\fR  \fB\-mfpe=\fR\fIname\fR  
407 \&\fB\-mstructure-size-boundary=\fR\fIn\fR 
408 \&\fB\-mbsd \-mxopen  \-mno-symrename 
409 \&\-mabort-on-noreturn 
410 \&\-mlong-calls  \-mno-long-calls 
411 \&\-msingle-pic-base  \-mno-single-pic-base 
412 \&\-mpic-register=\fR\fIreg\fR 
413 \&\fB\-mnop-fun-dllimport 
414 \&\-mpoke-function-name 
415 \&\-mthumb  \-marm 
416 \&\-mtpcs-frame  \-mtpcs-leaf-frame 
417 \&\-mcaller-super-interworking  \-mcallee-super-interworking\fR 
418 .Sp
419 \&\fI\s-1MN10200\s0 Options\fR
420 .Sp
421 \&\fB\-mrelax\fR
422 .Sp
423 \&\fI\s-1MN10300\s0 Options\fR
424 .Sp
425 \&\fB\-mmult-bug  \-mno-mult-bug 
426 \&\-mam33  \-mno-am33 
427 \&\-mno-crt0  \-mrelax\fR
428 .Sp
429 \&\fIM32R/D Options\fR
430 .Sp
431 \&\fB\-m32rx \-m32r \-mcode-model=\fR\fImodel-type\fR  \fB\-msdata=\fR\fIsdata-type\fR 
432 \&\fB\-G\fR \fInum\fR
433 .Sp
434 \&\fIM88K Options\fR
435 .Sp
436 \&\fB\-m88000  \-m88100  \-m88110  \-mbig-pic 
437 \&\-mcheck-zero-division  \-mhandle-large-shift 
438 \&\-midentify-revision  \-mno-check-zero-division 
439 \&\-mno-ocs-debug-info  \-mno-ocs-frame-position 
440 \&\-mno-optimize-arg-area  \-mno-serialize-volatile 
441 \&\-mno-underscores  \-mocs-debug-info 
442 \&\-mocs-frame-position  \-moptimize-arg-area 
443 \&\-mserialize-volatile  \-mshort-data-\fR\fInum\fR  \fB\-msvr3 
444 \&\-msvr4  \-mtrap-large-shift  \-muse-div-instruction 
445 \&\-mversion-03.00  \-mwarn-passed-structs\fR
446 .Sp
447 \&\fI\s-1RS/6000\s0 and PowerPC Options\fR
448 .Sp
449 \&\fB\-mcpu=\fR\fIcpu-type\fR 
450 \&\fB\-mtune=\fR\fIcpu-type\fR 
451 \&\fB\-mpower  \-mno-power  \-mpower2  \-mno-power2 
452 \&\-mpowerpc  \-mpowerpc64  \-mno-powerpc 
453 \&\-maltivec \-mno-altivec 
454 \&\-mpowerpc-gpopt  \-mno-powerpc-gpopt 
455 \&\-mpowerpc-gfxopt  \-mno-powerpc-gfxopt 
456 \&\-mnew-mnemonics  \-mold-mnemonics 
457 \&\-mfull-toc   \-mminimal-toc  \-mno-fp-in-toc  \-mno-sum-in-toc 
458 \&\-m64  \-m32  \-mxl-call  \-mno-xl-call  \-mpe 
459 \&\-msoft-float  \-mhard-float  \-mmultiple  \-mno-multiple 
460 \&\-mstring  \-mno-string  \-mupdate  \-mno-update 
461 \&\-mfused-madd  \-mno-fused-madd  \-mbit-align  \-mno-bit-align 
462 \&\-mstrict-align  \-mno-strict-align  \-mrelocatable 
463 \&\-mno-relocatable  \-mrelocatable-lib  \-mno-relocatable-lib 
464 \&\-mtoc  \-mno-toc \-mlittle  \-mlittle-endian  \-mbig  \-mbig-endian 
465 \&\-mcall-aix \-mcall-sysv \-mcall-netbsd 
466 \&\-maix-struct-return \-msvr4\-struct-return 
467 \&\-mabi=altivec \-mabi=no-altivec 
468 \&\-mprototype  \-mno-prototype 
469 \&\-msim  \-mmvme  \-mads  \-myellowknife  \-memb \-msdata 
470 \&\-msdata=\fR\fIopt\fR  \fB\-mvxworks \-G\fR \fInum\fR \fB\-pthread\fR
471 .Sp
472 \&\fI\s-1RT\s0 Options\fR
473 .Sp
474 \&\fB\-mcall-lib-mul  \-mfp-arg-in-fpregs  \-mfp-arg-in-gregs 
475 \&\-mfull-fp-blocks  \-mhc-struct-return  \-min-line-mul 
476 \&\-mminimum-fp-blocks  \-mnohc-struct-return\fR
477 .Sp
478 \&\fI\s-1MIPS\s0 Options\fR
479 .Sp
480 \&\fB\-mabicalls \-march=\fR\fIcpu-type\fR \fB\-mtune=\fR\fIcpu=type\fR 
481 \&\fB\-mcpu=\fR\fIcpu-type\fR \fB\-membedded-data  \-muninit-const-in-rodata 
482 \&\-membedded-pic  \-mfp32  \-mfp64  \-mfused-madd  \-mno-fused-madd 
483 \&\-mgas  \-mgp32  \-mgp64 
484 \&\-mgpopt  \-mhalf-pic  \-mhard-float  \-mint64  \-mips1 
485 \&\-mips2  \-mips3  \-mips4  \-mlong64  \-mlong32  \-mlong-calls  \-mmemcpy 
486 \&\-mmips-as  \-mmips-tfile  \-mno-abicalls 
487 \&\-mno-embedded-data  \-mno-uninit-const-in-rodata 
488 \&\-mno-embedded-pic  \-mno-gpopt  \-mno-long-calls 
489 \&\-mno-memcpy  \-mno-mips-tfile  \-mno-rnames  \-mno-stats 
490 \&\-mrnames  \-msoft-float 
491 \&\-m4650  \-msingle-float  \-mmad 
492 \&\-mstats  \-EL  \-EB  \-G\fR \fInum\fR  \fB\-nocpp 
493 \&\-mabi=32  \-mabi=n32  \-mabi=64  \-mabi=eabi 
494 \&\-mfix7000  \-mno-crt0 \-mflush-func=\fR\fIfunc\fR \fB\-mno-flush-func\fR
495 .Sp
496 \&\fIi386 and x86\-64 Options\fR
497 .Sp
498 \&\fB\-mcpu=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR \fB\-mfpmath=\fR\fIunit\fR 
499 \&\fB\-masm=\fR\fIdialect\fR  \fB\-mno-fancy-math-387 
500 \&\-mno-fp-ret-in-387  \-msoft-float  \-msvr3\-shlib 
501 \&\-mno-wide-multiply  \-mrtd  \-malign-double 
502 \&\-mpreferred-stack-boundary=\fR\fInum\fR 
503 \&\fB\-mmmx  \-msse \-msse2 \-m3dnow 
504 \&\-mthreads  \-mno-align-stringops  \-minline-all-stringops 
505 \&\-mpush-args  \-maccumulate-outgoing-args  \-m128bit-long-double 
506 \&\-m96bit-long-double  \-mregparm=\fR\fInum\fR  \fB\-momit-leaf-frame-pointer 
507 \&\-mno-red-zone
508 \&\-mcmodel=\fR\fIcode-model\fR 
509 \&\fB\-m32 \-m64\fR
510 .Sp
511 \&\fI\s-1HPPA\s0 Options\fR
512 .Sp
513 \&\fB\-march=\fR\fIarchitecture-type\fR 
514 \&\fB\-mbig-switch  \-mdisable-fpregs  \-mdisable-indexing 
515 \&\-mfast-indirect-calls  \-mgas  \-mjump-in-delay 
516 \&\-mlong-load-store  \-mno-big-switch  \-mno-disable-fpregs 
517 \&\-mno-disable-indexing  \-mno-fast-indirect-calls  \-mno-gas 
518 \&\-mno-jump-in-delay  \-mno-long-load-store 
519 \&\-mno-portable-runtime  \-mno-soft-float 
520 \&\-mno-space-regs  \-msoft-float  \-mpa-risc-1\-0 
521 \&\-mpa-risc-1\-1  \-mpa-risc-2\-0  \-mportable-runtime 
522 \&\-mschedule=\fR\fIcpu-type\fR  \fB\-mspace-regs\fR
523 .Sp
524 \&\fIIntel 960 Options\fR
525 .Sp
526 \&\fB\-m\fR\fIcpu-type\fR  \fB\-masm-compat  \-mclean-linkage 
527 \&\-mcode-align  \-mcomplex-addr  \-mleaf-procedures 
528 \&\-mic-compat  \-mic2.0\-compat  \-mic3.0\-compat 
529 \&\-mintel-asm  \-mno-clean-linkage  \-mno-code-align 
530 \&\-mno-complex-addr  \-mno-leaf-procedures 
531 \&\-mno-old-align  \-mno-strict-align  \-mno-tail-call 
532 \&\-mnumerics  \-mold-align  \-msoft-float  \-mstrict-align 
533 \&\-mtail-call\fR
534 .Sp
535 \&\fI\s-1DEC\s0 Alpha Options\fR
536 .Sp
537 \&\fB\-mno-fp-regs  \-msoft-float  \-malpha-as  \-mgas 
538 \&\-mieee  \-mieee-with-inexact  \-mieee-conformant 
539 \&\-mfp-trap-mode=\fR\fImode\fR  \fB\-mfp-rounding-mode=\fR\fImode\fR 
540 \&\fB\-mtrap-precision=\fR\fImode\fR  \fB\-mbuild-constants 
541 \&\-mcpu=\fR\fIcpu-type\fR  \fB\-mtune=\fR\fIcpu-type\fR 
542 \&\fB\-mbwx  \-mmax  \-mfix  \-mcix 
543 \&\-mfloat-vax  \-mfloat-ieee 
544 \&\-mexplicit-relocs  \-msmall-data  \-mlarge-data 
545 \&\-mmemory-latency=\fR\fItime\fR
546 .Sp
547 \&\fI\s-1DEC\s0 Alpha/VMS Options\fR
548 .Sp
549 \&\fB\-mvms-return-codes\fR
550 .Sp
551 \&\fIClipper Options\fR
552 .Sp
553 \&\fB\-mc300  \-mc400\fR
554 .Sp
555 \&\fIH8/300 Options\fR
556 .Sp
557 \&\fB\-mrelax  \-mh  \-ms  \-mint32  \-malign-300\fR
558 .Sp
559 \&\fI\s-1SH\s0 Options\fR
560 .Sp
561 \&\fB\-m1  \-m2  \-m3  \-m3e 
562 \&\-m4\-nofpu  \-m4\-single-only  \-m4\-single  \-m4 
563 \&\-m5\-64media \-m5\-64media-nofpu 
564 \&\-m5\-32media \-m5\-32media-nofpu 
565 \&\-m5\-compact \-m5\-compact-nofpu 
566 \&\-mb  \-ml  \-mdalign  \-mrelax 
567 \&\-mbigtable  \-mfmovd  \-mhitachi  \-mnomacsave 
568 \&\-mieee  \-misize  \-mpadstruct  \-mspace 
569 \&\-mprefergot  \-musermode\fR
570 .Sp
571 \&\fISystem V Options\fR
572 .Sp
573 \&\fB\-Qy  \-Qn  \-YP,\fR\fIpaths\fR  \fB\-Ym,\fR\fIdir\fR
574 .Sp
575 \&\fI\s-1ARC\s0 Options\fR
576 .Sp
577 \&\fB\-EB  \-EL 
578 \&\-mmangle-cpu  \-mcpu=\fR\fIcpu\fR  \fB\-mtext=\fR\fItext-section\fR 
579 \&\fB\-mdata=\fR\fIdata-section\fR  \fB\-mrodata=\fR\fIreadonly-data-section\fR
580 .Sp
581 \&\fITMS320C3x/C4x Options\fR
582 .Sp
583 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-mbig  \-msmall  \-mregparm  \-mmemparm 
584 \&\-mfast-fix  \-mmpyi  \-mbk  \-mti  \-mdp-isr-reload 
585 \&\-mrpts=\fR\fIcount\fR  \fB\-mrptb  \-mdb  \-mloop-unsigned 
586 \&\-mparallel-insns  \-mparallel-mpy  \-mpreserve-float\fR
587 .Sp
588 \&\fIV850 Options\fR
589 .Sp
590 \&\fB\-mlong-calls  \-mno-long-calls  \-mep  \-mno-ep 
591 \&\-mprolog-function  \-mno-prolog-function  \-mspace 
592 \&\-mtda=\fR\fIn\fR  \fB\-msda=\fR\fIn\fR  \fB\-mzda=\fR\fIn\fR 
593 \&\fB\-mv850  \-mbig-switch\fR
594 .Sp
595 \&\fI\s-1NS32K\s0 Options\fR
596 .Sp
597 \&\fB\-m32032  \-m32332  \-m32532  \-m32081  \-m32381 
598 \&\-mmult-add  \-mnomult-add  \-msoft-float  \-mrtd  \-mnortd 
599 \&\-mregparam  \-mnoregparam  \-msb  \-mnosb 
600 \&\-mbitfield  \-mnobitfield  \-mhimem  \-mnohimem\fR
601 .Sp
602 \&\fI\s-1AVR\s0 Options\fR
603 .Sp
604 \&\fB\-mmcu=\fR\fImcu\fR  \fB\-msize  \-minit-stack=\fR\fIn\fR  \fB\-mno-interrupts 
605 \&\-mcall-prologues  \-mno-tablejump  \-mtiny-stack\fR
606 .Sp
607 \&\fIMCore Options\fR
608 .Sp
609 \&\fB\-mhardlit  \-mno-hardlit  \-mdiv  \-mno-div  \-mrelax-immediates 
610 \&\-mno-relax-immediates  \-mwide-bitfields  \-mno-wide-bitfields 
611 \&\-m4byte-functions  \-mno-4byte-functions  \-mcallgraph-data 
612 \&\-mno-callgraph-data  \-mslow-bytes  \-mno-slow-bytes  \-mno-lsim 
613 \&\-mlittle-endian  \-mbig-endian  \-m210  \-m340  \-mstack-increment\fR
614 .Sp
615 \&\fI\s-1MMIX\s0 Options\fR
616 .Sp
617 \&\fB\-mlibfuncs \-mno-libfuncs \-mepsilon \-mno-epsilon \-mabi=gnu 
618 \&\-mabi=mmixware \-mzero-extend \-mknuthdiv \-mtoplevel-symbols 
619 \&\-melf \-mbranch-predict \-mno-branch-predict \-mbase-addresses 
620 \&\-mno-base-addresses\fR
621 .Sp
622 \&\fI\s-1IA-64\s0 Options\fR
623 .Sp
624 \&\fB\-mbig-endian  \-mlittle-endian  \-mgnu-as  \-mgnu-ld  \-mno-pic 
625 \&\-mvolatile-asm-stop  \-mb-step  \-mregister-names  \-mno-sdata 
626 \&\-mconstant-gp  \-mauto-pic  \-minline-divide-min-latency 
627 \&\-minline-divide-max-throughput  \-mno-dwarf2\-asm 
628 \&\-mfixed-range=\fR\fIregister-range\fR
629 .Sp
630 \&\fID30V Options\fR
631 .Sp
632 \&\fB\-mextmem  \-mextmemory  \-monchip  \-mno-asm-optimize 
633 \&\-masm-optimize \-mbranch-cost=\fR\fIn\fR \fB\-mcond-exec=\fR\fIn\fR
634 .Sp
635 \&\fIS/390 and zSeries Options\fR
636 .Sp
637 \&\fB\-mhard-float  \-msoft-float  \-mbackchain  \-mno-backchain 
638 \&\-msmall-exec  \-mno-small-exec  \-mmvcle \-mno-mvcle 
639 \&\-m64 \-m31 \-mdebug \-mno-debug\fR
640 .Sp
641 \&\fI\s-1CRIS\s0 Options\fR
642 .Sp
643 \&\fB\-mcpu=\fR\fIcpu\fR \fB\-march=\fR\fIcpu\fR \fB\-mtune=\fR\fIcpu\fR 
644 \&\fB\-mmax-stack-frame=\fR\fIn\fR \fB\-melinux-stacksize=\fR\fIn\fR 
645 \&\fB\-metrax4 \-metrax100 \-mpdebug \-mcc-init \-mno-side-effects 
646 \&\-mstack-align \-mdata-align \-mconst-align 
647 \&\-m32\-bit \-m16\-bit \-m8\-bit \-mno-prologue-epilogue \-mno-gotplt 
648 \&\-melf \-maout \-melinux \-mlinux \-sim \-sim2\fR
649 .Sp
650 \&\fI\s-1PDP-11\s0 Options\fR
651 .Sp
652 \&\fB\-mfpu  \-msoft-float  \-mac0  \-mno-ac0  \-m40  \-m45  \-m10 
653 \&\-mbcopy  \-mbcopy-builtin  \-mint32  \-mno-int16 
654 \&\-mint16  \-mno-int32  \-mfloat32  \-mno-float64 
655 \&\-mfloat64  \-mno-float32  \-mabshi  \-mno-abshi 
656 \&\-mbranch-expensive  \-mbranch-cheap 
657 \&\-msplit  \-mno-split  \-munix-asm  \-mdec-asm\fR
658 .Sp
659 \&\fIXstormy16 Options\fR
660 .Sp
661 \&\fB\-msim\fR
662 .Sp
663 \&\fIXtensa Options\fR
664 .Sp
665 \&\fB\-mbig-endian \-mlittle-endian 
666 \&\-mdensity \-mno-density 
667 \&\-mmac16 \-mno-mac16 
668 \&\-mmul16 \-mno-mul16 
669 \&\-mmul32 \-mno-mul32 
670 \&\-mnsa \-mno-nsa 
671 \&\-mminmax \-mno-minmax 
672 \&\-msext \-mno-sext 
673 \&\-mbooleans \-mno-booleans 
674 \&\-mhard-float \-msoft-float 
675 \&\-mfused-madd \-mno-fused-madd 
676 \&\-mserialize-volatile \-mno-serialize-volatile 
677 \&\-mtext-section-literals \-mno-text-section-literals 
678 \&\-mtarget-align \-mno-target-align 
679 \&\-mlongcalls \-mno-longcalls\fR
680 .Ip "\fICode Generation Options\fR" 4
681 .IX Item "Code Generation Options"
682 \&\fB\-fcall-saved-\fR\fIreg\fR  \fB\-fcall-used-\fR\fIreg\fR 
683 \&\fB\-ffixed-\fR\fIreg\fR \fB\-fexceptions 
684 \&\-fnon-call-exceptions  \-funwind-tables 
685 \&\-fasynchronous-unwind-tables 
686 \&\-finhibit-size-directive  \-finstrument-functions 
687 \&\-fno-common  \-fno-ident  \-fno-gnu-linker 
688 \&\-fpcc-struct-return  \-fpic  \-fPIC 
689 \&\-freg-struct-return  \-fshared-data  \-fshort-enums 
690 \&\-fshort-double  \-fshort-wchar \-fvolatile 
691 \&\-fvolatile-global  \-fvolatile-static 
692 \&\-fverbose-asm  \-fpack-struct  \-fstack-check 
693 \&\-fstack-limit-register=\fR\fIreg\fR  \fB\-fstack-limit-symbol=\fR\fIsym\fR 
694 \&\fB\-fargument-alias  \-fargument-noalias 
695 \&\-fargument-noalias-global  \-fleading-underscore\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.  The first three
700 stages apply to an individual source file, and end by producing an
701 object file; linking combines all the object files (those newly
702 compiled, and those specified as input) into an executable file.
703 .PP
704 For any given input file, the file name suffix determines what kind of
705 compilation is done:
706 .Ip "\fIfile\fR\fB.c\fR" 4
707 .IX Item "file.c"
708 C source code which must be preprocessed.
709 .Ip "\fIfile\fR\fB.i\fR" 4
710 .IX Item "file.i"
711 C source code which should not be preprocessed.
712 .Ip "\fIfile\fR\fB.ii\fR" 4
713 .IX Item "file.ii"
714 \&\*(C+ source code which should not be preprocessed.
715 .Ip "\fIfile\fR\fB.m\fR" 4
716 .IX Item "file.m"
717 Objective-C source code.  Note that you must link with the library
718 \&\fIlibobjc.a\fR to make an Objective-C program work.
719 .Ip "\fIfile\fR\fB.mi\fR" 4
720 .IX Item "file.mi"
721 Objective-C source code which should not be preprocessed.
722 .Ip "\fIfile\fR\fB.h\fR" 4
723 .IX Item "file.h"
724 C header file (not to be compiled or linked).
725 .Ip "\fIfile\fR\fB.cc\fR" 4
726 .IX Item "file.cc"
727 .PD 0
728 .Ip "\fIfile\fR\fB.cp\fR" 4
729 .IX Item "file.cp"
730 .Ip "\fIfile\fR\fB.cxx\fR" 4
731 .IX Item "file.cxx"
732 .Ip "\fIfile\fR\fB.cpp\fR" 4
733 .IX Item "file.cpp"
734 .Ip "\fIfile\fR\fB.c++\fR" 4
735 .IX Item "file.c++"
736 .Ip "\fIfile\fR\fB.C\fR" 4
737 .IX Item "file.C"
738 .PD
739 \&\*(C+ source code which must be preprocessed.  Note that in \fB.cxx\fR,
740 the last two letters must both be literally \fBx\fR.  Likewise,
741 \&\fB.C\fR refers to a literal capital C.
742 .Ip "\fIfile\fR\fB.f\fR" 4
743 .IX Item "file.f"
744 .PD 0
745 .Ip "\fIfile\fR\fB.for\fR" 4
746 .IX Item "file.for"
747 .Ip "\fIfile\fR\fB.FOR\fR" 4
748 .IX Item "file.FOR"
749 .PD
750 Fortran source code which should not be preprocessed.
751 .Ip "\fIfile\fR\fB.F\fR" 4
752 .IX Item "file.F"
753 .PD 0
754 .Ip "\fIfile\fR\fB.fpp\fR" 4
755 .IX Item "file.fpp"
756 .Ip "\fIfile\fR\fB.FPP\fR" 4
757 .IX Item "file.FPP"
758 .PD
759 Fortran source code which must be preprocessed (with the traditional
760 preprocessor).
761 .Ip "\fIfile\fR\fB.r\fR" 4
762 .IX Item "file.r"
763 Fortran source code which must be preprocessed with a \s-1RATFOR\s0
764 preprocessor (not included with \s-1GCC\s0).
765 .Ip "\fIfile\fR\fB.ads\fR" 4
766 .IX Item "file.ads"
767 Ada source code file which contains a library unit declaration (a
768 declaration of a package, subprogram, or generic, or a generic
769 instantiation), or a library unit renaming declaration (a package,
770 generic, or subprogram renaming declaration).  Such files are also
771 called \fIspecs\fR.
772 .Ip "\fIfile\fR\fB.adb\fR" 4
773 .IX Item "file.adb"
774 Ada source code file containing a library unit body (a subprogram or
775 package body).  Such files are also called \fIbodies\fR.
776 .Ip "\fIfile\fR\fB.s\fR" 4
777 .IX Item "file.s"
778 Assembler code.
779 .Ip "\fIfile\fR\fB.S\fR" 4
780 .IX Item "file.S"
781 Assembler code which must be preprocessed.
782 .Ip "\fIother\fR" 4
783 .IX Item "other"
784 An object file to be fed straight into linking.
785 Any file name with no recognized suffix is treated this way.
786 .PP
787 You can specify the input language explicitly with the \fB\-x\fR option:
788 .Ip "\fB\-x\fR \fIlanguage\fR" 4
789 .IX Item "-x language"
790 Specify explicitly the \fIlanguage\fR for the following input files
791 (rather than letting the compiler choose a default based on the file
792 name suffix).  This option applies to all following input files until
793 the next \fB\-x\fR option.  Possible values for \fIlanguage\fR are:
794 .Sp
795 .Vb 7
796 \&        c  c-header  cpp-output
797 \&        c++  c++-cpp-output
798 \&        objective-c  objc-cpp-output
799 \&        assembler  assembler-with-cpp
800 \&        ada
801 \&        f77  f77-cpp-input  ratfor
802 \&        java
803 .Ve
804 .Ip "\fB\-x none\fR" 4
805 .IX Item "-x none"
806 Turn off any specification of a language, so that subsequent files are
807 handled according to their file name suffixes (as they are if \fB\-x\fR
808 has not been used at all).
809 .Ip "\fB\-pass-exit-codes\fR" 4
810 .IX Item "-pass-exit-codes"
811 Normally the \fBgcc\fR program will exit with the code of 1 if any
812 phase of the compiler returns a non-success return code.  If you specify
813 \&\fB\-pass-exit-codes\fR, the \fBgcc\fR program will instead return with
814 numerically highest error produced by any phase that returned an error
815 indication.
816 .PP
817 If you only want some of the stages of compilation, you can use
818 \&\fB\-x\fR (or filename suffixes) to tell \fBgcc\fR where to start, and
819 one of the options \fB\-c\fR, \fB\-S\fR, or \fB\-E\fR to say where
820 \&\fBgcc\fR is to stop.  Note that some combinations (for example,
821 \&\fB\-x cpp-output \-E\fR) instruct \fBgcc\fR to do nothing at all.
822 .Ip "\fB\-c\fR" 4
823 .IX Item "-c"
824 Compile or assemble the source files, but do not link.  The linking
825 stage simply is not done.  The ultimate output is in the form of an
826 object file for each source file.
827 .Sp
828 By default, the object file name for a source file is made by replacing
829 the suffix \fB.c\fR, \fB.i\fR, \fB.s\fR, etc., with \fB.o\fR.
830 .Sp
831 Unrecognized input files, not requiring compilation or assembly, are
832 ignored.
833 .Ip "\fB\-S\fR" 4
834 .IX Item "-S"
835 Stop after the stage of compilation proper; do not assemble.  The output
836 is in the form of an assembler code file for each non-assembler input
837 file specified.
838 .Sp
839 By default, the assembler file name for a source file is made by
840 replacing the suffix \fB.c\fR, \fB.i\fR, etc., with \fB.s\fR.
841 .Sp
842 Input files that don't require compilation are ignored.
843 .Ip "\fB\-E\fR" 4
844 .IX Item "-E"
845 Stop after the preprocessing stage; do not run the compiler proper.  The
846 output is in the form of preprocessed source code, which is sent to the
847 standard output.
848 .Sp
849 Input files which don't require preprocessing are ignored.
850 .Ip "\fB\-o\fR \fIfile\fR" 4
851 .IX Item "-o file"
852 Place output in file \fIfile\fR.  This applies regardless to whatever
853 sort of output is being produced, whether it be an executable file,
854 an object file, an assembler file or preprocessed C code.
855 .Sp
856 Since only one output file can be specified, it does not make sense to
857 use \fB\-o\fR when compiling more than one input file, unless you are
858 producing an executable file as output.
859 .Sp
860 If \fB\-o\fR is not specified, the default is to put an executable file
861 in \fIa.out\fR, the object file for \fI\fIsource\fI.\fIsuffix\fI\fR in
862 \&\fI\fIsource\fI.o\fR, its assembler file in \fI\fIsource\fI.s\fR, and
863 all preprocessed C source on standard output.
864 .Ip "\fB\-v\fR" 4
865 .IX Item "-v"
866 Print (on standard error output) the commands executed to run the stages
867 of compilation.  Also print the version number of the compiler driver
868 program and of the preprocessor and the compiler proper.
869 .Ip "\fB\-###\fR" 4
870 .IX Item "-###"
871 Like \fB\-v\fR except the commands are not executed and all command
872 arguments are quoted.  This is useful for shell scripts to capture the
873 driver-generated command lines.
874 .Ip "\fB\-pipe\fR" 4
875 .IX Item "-pipe"
876 Use pipes rather than temporary files for communication between the
877 various stages of compilation.  This fails to work on some systems where
878 the assembler is unable to read from a pipe; but the \s-1GNU\s0 assembler has
879 no trouble.
880 .Ip "\fB\*(--help\fR" 4
881 .IX Item "help"
882 Print (on the standard output) a description of the command line options
883 understood by \fBgcc\fR.  If the \fB\-v\fR option is also specified
884 then \fB\*(--help\fR will also be passed on to the various processes
885 invoked by \fBgcc\fR, so that they can display the command line options
886 they accept.  If the \fB\-W\fR option is also specified then command
887 line options which have no documentation associated with them will also
888 be displayed.
889 .Ip "\fB\*(--target-help\fR" 4
890 .IX Item "target-help"
891 Print (on the standard output) a description of target specific command
892 line options for each tool.
893 .Ip "\fB\*(--version\fR" 4
894 .IX Item "version"
895 Display the version number and copyrights of the invoked \s-1GCC\s0.
896 .Sh "Compiling \*(C+ Programs"
897 .IX Subsection "Compiling  Programs"
898 \&\*(C+ source files conventionally use one of the suffixes \fB.C\fR,
899 \&\fB.cc\fR, \fB.cpp\fR, \fB.c++\fR, \fB.cp\fR, or \fB.cxx\fR;
900 preprocessed \*(C+ files use the suffix \fB.ii\fR.  \s-1GCC\s0 recognizes
901 files with these names and compiles them as \*(C+ programs even if you
902 call the compiler the same way as for compiling C programs (usually with
903 the name \fBgcc\fR).
904 .PP
905 However, \*(C+ programs often require class libraries as well as a
906 compiler that understands the \*(C+ language\-\-\-and under some
907 circumstances, you might want to compile programs from standard input,
908 or otherwise without a suffix that flags them as \*(C+ programs.
909 \&\fBg++\fR is a program that calls \s-1GCC\s0 with the default language
910 set to \*(C+, and automatically specifies linking against the \*(C+
911 library.  On many systems, \fBg++\fR is also
912 installed with the name \fBc++\fR.
913 .PP
914 When you compile \*(C+ programs, you may specify many of the same
915 command-line options that you use for compiling programs in any
916 language; or command-line options meaningful for C and related
917 languages; or options that are meaningful only for \*(C+ programs.
918 .Sh "Options Controlling C Dialect"
919 .IX Subsection "Options Controlling C Dialect"
920 The following options control the dialect of C (or languages derived
921 from C, such as \*(C+ and Objective-C) that the compiler accepts:
922 .Ip "\fB\-ansi\fR" 4
923 .IX Item "-ansi"
924 In C mode, support all \s-1ISO\s0 C89 programs.  In \*(C+ mode,
925 remove \s-1GNU\s0 extensions that conflict with \s-1ISO\s0 \*(C+.
926 .Sp
927 This turns off certain features of \s-1GCC\s0 that are incompatible with \s-1ISO\s0
928 C89 (when compiling C code), or of standard \*(C+ (when compiling \*(C+ code),
929 such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, and
930 predefined macros such as \f(CW\*(C`unix\*(C'\fR and \f(CW\*(C`vax\*(C'\fR that identify the
931 type of system you are using.  It also enables the undesirable and
932 rarely used \s-1ISO\s0 trigraph feature.  For the C compiler,
933 it disables recognition of \*(C+ style \fB//\fR comments as well as
934 the \f(CW\*(C`inline\*(C'\fR keyword.
935 .Sp
936 The alternate keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_extension_\|_\*(C'\fR,
937 \&\f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR continue to work despite
938 \&\fB\-ansi\fR.  You would not want to use them in an \s-1ISO\s0 C program, of
939 course, but it is useful to put them in header files that might be included
940 in compilations done with \fB\-ansi\fR.  Alternate predefined macros
941 such as \f(CW\*(C`_\|_unix_\|_\*(C'\fR and \f(CW\*(C`_\|_vax_\|_\*(C'\fR are also available, with or
942 without \fB\-ansi\fR.
943 .Sp
944 The \fB\-ansi\fR option does not cause non-ISO programs to be
945 rejected gratuitously.  For that, \fB\-pedantic\fR is required in
946 addition to \fB\-ansi\fR.  
947 .Sp
948 The macro \f(CW\*(C`_\|_STRICT_ANSI_\|_\*(C'\fR is predefined when the \fB\-ansi\fR
949 option is used.  Some header files may notice this macro and refrain
950 from declaring certain functions or defining certain macros that the
951 \&\s-1ISO\s0 standard doesn't call for; this is to avoid interfering with any
952 programs that might use these names for other things.
953 .Sp
954 Functions which would normally be built in but do not have semantics
955 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
956 functions with \fB\-ansi\fR is used.  
957 .Ip "\fB\-std=\fR" 4
958 .IX Item "-std="
959 Determine the language standard.  This option is currently only
960 supported when compiling C.  A value for this option must be provided;
961 possible values are
962 .RS 4
963 .Ip "\fBc89\fR" 4
964 .IX Item "c89"
965 .PD 0
966 .Ip "\fBiso9899:1990\fR" 4
967 .IX Item "iso9899:1990"
968 .PD
969 \&\s-1ISO\s0 C89 (same as \fB\-ansi\fR).
970 .Ip "\fBiso9899:199409\fR" 4
971 .IX Item "iso9899:199409"
972 \&\s-1ISO\s0 C89 as modified in amendment 1.
973 .Ip "\fBc99\fR" 4
974 .IX Item "c99"
975 .PD 0
976 .Ip "\fBc9x\fR" 4
977 .IX Item "c9x"
978 .Ip "\fBiso9899:1999\fR" 4
979 .IX Item "iso9899:1999"
980 .Ip "\fBiso9899:199x\fR" 4
981 .IX Item "iso9899:199x"
982 .PD
983 \&\s-1ISO\s0 C99.  Note that this standard is not yet fully supported; see
984 <\fBhttp://gcc.gnu.org/gcc-3.1/c99status.html\fR> for more information.  The
985 names \fBc9x\fR and \fBiso9899:199x\fR are deprecated.
986 .Ip "\fBgnu89\fR" 4
987 .IX Item "gnu89"
988 Default, \s-1ISO\s0 C89 plus \s-1GNU\s0 extensions (including some C99 features).
989 .Ip "\fBgnu99\fR" 4
990 .IX Item "gnu99"
991 .PD 0
992 .Ip "\fBgnu9x\fR" 4
993 .IX Item "gnu9x"
994 .PD
995 \&\s-1ISO\s0 C99 plus \s-1GNU\s0 extensions.  When \s-1ISO\s0 C99 is fully implemented in \s-1GCC\s0,
996 this will become the default.  The name \fBgnu9x\fR is deprecated.
997 .RE
998 .RS 4
999 .Sp
1000 Even when this option is not specified, you can still use some of the
1001 features of newer standards in so far as they do not conflict with
1002 previous C standards.  For example, you may use \f(CW\*(C`_\|_restrict_\|_\*(C'\fR even
1003 when \fB\-std=c99\fR is not specified.
1004 .Sp
1005 The \fB\-std\fR options specifying some version of \s-1ISO\s0 C have the same
1006 effects as \fB\-ansi\fR, except that features that were not in \s-1ISO\s0 C89
1007 but are in the specified version (for example, \fB//\fR comments and
1008 the \f(CW\*(C`inline\*(C'\fR keyword in \s-1ISO\s0 C99) are not disabled.
1009 .RE
1010 .Ip "\fB\-aux-info\fR \fIfilename\fR" 4
1011 .IX Item "-aux-info filename"
1012 Output to the given filename prototyped declarations for all functions
1013 declared and/or defined in a translation unit, including those in header
1014 files.  This option is silently ignored in any language other than C.
1015 .Sp
1016 Besides declarations, the file indicates, in comments, the origin of
1017 each declaration (source file and line), whether the declaration was
1018 implicit, prototyped or unprototyped (\fBI\fR, \fBN\fR for new or
1019 \&\fBO\fR for old, respectively, in the first character after the line
1020 number and the colon), and whether it came from a declaration or a
1021 definition (\fBC\fR or \fBF\fR, respectively, in the following
1022 character).  In the case of function definitions, a K&R-style list of
1023 arguments followed by their declarations is also provided, inside
1024 comments, after the declaration.
1025 .Ip "\fB\-fno-asm\fR" 4
1026 .IX Item "-fno-asm"
1027 Do not recognize \f(CW\*(C`asm\*(C'\fR, \f(CW\*(C`inline\*(C'\fR or \f(CW\*(C`typeof\*(C'\fR as a
1028 keyword, so that code can use these words as identifiers.  You can use
1029 the keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR
1030 instead.  \fB\-ansi\fR implies \fB\-fno-asm\fR.
1031 .Sp
1032 In \*(C+, this switch only affects the \f(CW\*(C`typeof\*(C'\fR keyword, since
1033 \&\f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`inline\*(C'\fR are standard keywords.  You may want to
1034 use the \fB\-fno-gnu-keywords\fR flag instead, which has the same
1035 effect.  In C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this
1036 switch only affects the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, since
1037 \&\f(CW\*(C`inline\*(C'\fR is a standard keyword in \s-1ISO\s0 C99.
1038 .Ip "\fB\-fno-builtin\fR" 4
1039 .IX Item "-fno-builtin"
1040 .PD 0
1041 .Ip "\fB\-fno-builtin-\fR\fIfunction\fR\fB \fR(C and Objective-C only)" 4
1042 .IX Item "-fno-builtin-function (C and Objective-C only)"
1043 .PD
1044 Don't recognize built-in functions that do not begin with
1045 \&\fB_\|_builtin_\fR as prefix.  
1046 .Sp
1047 \&\s-1GCC\s0 normally generates special code to handle certain built-in functions
1048 more efficiently; for instance, calls to \f(CW\*(C`alloca\*(C'\fR may become single
1049 instructions that adjust the stack directly, and calls to \f(CW\*(C`memcpy\*(C'\fR
1050 may become inline copy loops.  The resulting code is often both smaller
1051 and faster, but since the function calls no longer appear as such, you
1052 cannot set a breakpoint on those calls, nor can you change the behavior
1053 of the functions by linking with a different library.
1054 .Sp
1055 In \*(C+, \fB\-fno-builtin\fR is always in effect.  The \fB\-fbuiltin\fR
1056 option has no effect.  Therefore, in \*(C+, the only way to get the
1057 optimization benefits of built-in functions is to call the function
1058 using the \fB_\|_builtin_\fR prefix.  The \s-1GNU\s0 \*(C+ Standard Library uses
1059 built-in functions to implement many functions (like
1060 \&\f(CW\*(C`std::strchr\*(C'\fR), so that you automatically get efficient code.
1061 .Sp
1062 With the \fB\-fno-builtin-\fR\fIfunction\fR option, not available
1063 when compiling \*(C+, only the built-in function \fIfunction\fR is
1064 disabled.  \fIfunction\fR must not begin with \fB_\|_builtin_\fR.  If a
1065 function is named this is not built-in in this version of \s-1GCC\s0, this
1066 option is ignored.  There is no corresponding
1067 \&\fB\-fbuiltin-\fR\fIfunction\fR option; if you wish to enable
1068 built-in functions selectively when using \fB\-fno-builtin\fR or
1069 \&\fB\-ffreestanding\fR, you may define macros such as:
1070 .Sp
1071 .Vb 2
1072 \&        #define abs(n)          __builtin_abs ((n))
1073 \&        #define strcpy(d, s)    __builtin_strcpy ((d), (s))
1074 .Ve
1075 .Ip "\fB\-fhosted\fR" 4
1076 .IX Item "-fhosted"
1077 Assert that compilation takes place in a hosted environment.  This implies
1078 \&\fB\-fbuiltin\fR.  A hosted environment is one in which the
1079 entire standard library is available, and in which \f(CW\*(C`main\*(C'\fR has a return
1080 type of \f(CW\*(C`int\*(C'\fR.  Examples are nearly everything except a kernel.
1081 This is equivalent to \fB\-fno-freestanding\fR.
1082 .Ip "\fB\-ffreestanding\fR" 4
1083 .IX Item "-ffreestanding"
1084 Assert that compilation takes place in a freestanding environment.  This
1085 implies \fB\-fno-builtin\fR.  A freestanding environment
1086 is one in which the standard library may not exist, and program startup may
1087 not necessarily be at \f(CW\*(C`main\*(C'\fR.  The most obvious example is an \s-1OS\s0 kernel.
1088 This is equivalent to \fB\-fno-hosted\fR.
1089 .Ip "\fB\-trigraphs\fR" 4
1090 .IX Item "-trigraphs"
1091 Support \s-1ISO\s0 C trigraphs.  The \fB\-ansi\fR option (and \fB\-std\fR
1092 options for strict \s-1ISO\s0 C conformance) implies \fB\-trigraphs\fR.
1093 .Ip "\fB\-no-integrated-cpp\fR" 4
1094 .IX Item "-no-integrated-cpp"
1095 Invoke the external cpp during compilation.  The default is to use the
1096 integrated cpp (internal cpp).  This option also allows a
1097 user-supplied cpp via the \fB\-B\fR option.  This flag is applicable
1098 in both C and \*(C+ modes.
1099 .Sp
1100 We do not guarantee to retain this option in future, and we may change
1101 its semantics.
1102 .Ip "\fB\-traditional\fR" 4
1103 .IX Item "-traditional"
1104 Attempt to support some aspects of traditional C compilers.
1105 Specifically:
1106 .RS 4
1107 .Ip "\(bu" 4
1108 All \f(CW\*(C`extern\*(C'\fR declarations take effect globally even if they
1109 are written inside of a function definition.  This includes implicit
1110 declarations of functions.
1111 .Ip "\(bu" 4
1112 The newer keywords \f(CW\*(C`typeof\*(C'\fR, \f(CW\*(C`inline\*(C'\fR, \f(CW\*(C`signed\*(C'\fR, \f(CW\*(C`const\*(C'\fR
1113 and \f(CW\*(C`volatile\*(C'\fR are not recognized.  (You can still use the
1114 alternative keywords such as \f(CW\*(C`_\|_typeof_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR, and
1115 so on.)
1116 .Ip "\(bu" 4
1117 Comparisons between pointers and integers are always allowed.
1118 .Ip "\(bu" 4
1119 Integer types \f(CW\*(C`unsigned short\*(C'\fR and \f(CW\*(C`unsigned char\*(C'\fR promote
1120 to \f(CW\*(C`unsigned int\*(C'\fR.
1121 .Ip "\(bu" 4
1122 Out-of-range floating point literals are not an error.
1123 .Ip "\(bu" 4
1124 Certain constructs which \s-1ISO\s0 regards as a single invalid preprocessing
1125 number, such as \fB0xe-0xd\fR, are treated as expressions instead.
1126 .Ip "\(bu" 4
1127 String ``constants'' are not necessarily constant; they are stored in
1128 writable space, and identical looking constants are allocated
1129 separately.  (This is the same as the effect of
1130 \&\fB\-fwritable-strings\fR.)
1131 .Ip "\(bu" 4
1132 All automatic variables not declared \f(CW\*(C`register\*(C'\fR are preserved by
1133 \&\f(CW\*(C`longjmp\*(C'\fR.  Ordinarily, \s-1GNU\s0 C follows \s-1ISO\s0 C: automatic variables
1134 not declared \f(CW\*(C`volatile\*(C'\fR may be clobbered.
1135 .Ip "\(bu" 4
1136 The character escape sequences \fB\ex\fR and \fB\ea\fR evaluate as the
1137 literal characters \fBx\fR and \fBa\fR respectively.  Without
1138 \&\fB\-traditional\fR, \fB\ex\fR is a prefix for the hexadecimal
1139 representation of a character, and \fB\ea\fR produces a bell.
1140 .RE
1141 .RS 4
1142 .Sp
1143 This option is deprecated and may be removed.
1144 .Sp
1145 You may wish to use \fB\-fno-builtin\fR as well as \fB\-traditional\fR
1146 if your program uses names that are normally \s-1GNU\s0 C built-in functions for
1147 other purposes of its own.
1148 .Sp
1149 You cannot use \fB\-traditional\fR if you include any header files that
1150 rely on \s-1ISO\s0 C features.  Some vendors are starting to ship systems with
1151 \&\s-1ISO\s0 C header files and you cannot use \fB\-traditional\fR on such
1152 systems to compile files that include any system headers.
1153 .Sp
1154 The \fB\-traditional\fR option also enables \fB\-traditional-cpp\fR.
1155 .RE
1156 .Ip "\fB\-traditional-cpp\fR" 4
1157 .IX Item "-traditional-cpp"
1158 Attempt to support some aspects of traditional C preprocessors.
1159 See the \s-1GNU\s0 \s-1CPP\s0 manual for details.
1160 .Ip "\fB\-fcond-mismatch\fR" 4
1161 .IX Item "-fcond-mismatch"
1162 Allow conditional expressions with mismatched types in the second and
1163 third arguments.  The value of such an expression is void.  This option
1164 is not supported for \*(C+.
1165 .Ip "\fB\-funsigned-char\fR" 4
1166 .IX Item "-funsigned-char"
1167 Let the type \f(CW\*(C`char\*(C'\fR be unsigned, like \f(CW\*(C`unsigned char\*(C'\fR.
1168 .Sp
1169 Each kind of machine has a default for what \f(CW\*(C`char\*(C'\fR should
1170 be.  It is either like \f(CW\*(C`unsigned char\*(C'\fR by default or like
1171 \&\f(CW\*(C`signed char\*(C'\fR by default.
1172 .Sp
1173 Ideally, a portable program should always use \f(CW\*(C`signed char\*(C'\fR or
1174 \&\f(CW\*(C`unsigned char\*(C'\fR when it depends on the signedness of an object.
1175 But many programs have been written to use plain \f(CW\*(C`char\*(C'\fR and
1176 expect it to be signed, or expect it to be unsigned, depending on the
1177 machines they were written for.  This option, and its inverse, let you
1178 make such a program work with the opposite default.
1179 .Sp
1180 The type \f(CW\*(C`char\*(C'\fR is always a distinct type from each of
1181 \&\f(CW\*(C`signed char\*(C'\fR or \f(CW\*(C`unsigned char\*(C'\fR, even though its behavior
1182 is always just like one of those two.
1183 .Ip "\fB\-fsigned-char\fR" 4
1184 .IX Item "-fsigned-char"
1185 Let the type \f(CW\*(C`char\*(C'\fR be signed, like \f(CW\*(C`signed char\*(C'\fR.
1186 .Sp
1187 Note that this is equivalent to \fB\-fno-unsigned-char\fR, which is
1188 the negative form of \fB\-funsigned-char\fR.  Likewise, the option
1189 \&\fB\-fno-signed-char\fR is equivalent to \fB\-funsigned-char\fR.
1190 .Ip "\fB\-fsigned-bitfields\fR" 4
1191 .IX Item "-fsigned-bitfields"
1192 .PD 0
1193 .Ip "\fB\-funsigned-bitfields\fR" 4
1194 .IX Item "-funsigned-bitfields"
1195 .Ip "\fB\-fno-signed-bitfields\fR" 4
1196 .IX Item "-fno-signed-bitfields"
1197 .Ip "\fB\-fno-unsigned-bitfields\fR" 4
1198 .IX Item "-fno-unsigned-bitfields"
1199 .PD
1200 These options control whether a bit-field is signed or unsigned, when the
1201 declaration does not use either \f(CW\*(C`signed\*(C'\fR or \f(CW\*(C`unsigned\*(C'\fR.  By
1202 default, such a bit-field is signed, because this is consistent: the
1203 basic integer types such as \f(CW\*(C`int\*(C'\fR are signed types.
1204 .Sp
1205 However, when \fB\-traditional\fR is used, bit-fields are all unsigned
1206 no matter what.
1207 .Ip "\fB\-fwritable-strings\fR" 4
1208 .IX Item "-fwritable-strings"
1209 Store string constants in the writable data segment and don't uniquize
1210 them.  This is for compatibility with old programs which assume they can
1211 write into string constants.  The option \fB\-traditional\fR also has
1212 this effect.
1213 .Sp
1214 Writing into string constants is a very bad idea; ``constants'' should
1215 be constant.
1216 .Ip "\fB\-fallow-single-precision\fR" 4
1217 .IX Item "-fallow-single-precision"
1218 Do not promote single precision math operations to double precision,
1219 even when compiling with \fB\-traditional\fR.
1220 .Sp
1221 Traditional K&R C promotes all floating point operations to double
1222 precision, regardless of the sizes of the operands.   On the
1223 architecture for which you are compiling, single precision may be faster
1224 than double precision.   If you must use \fB\-traditional\fR, but want
1225 to use single precision operations when the operands are single
1226 precision, use this option.   This option has no effect when compiling
1227 with \s-1ISO\s0 or \s-1GNU\s0 C conventions (the default).
1228 .Sh "Options Controlling \*(C+ Dialect"
1229 .IX Subsection "Options Controlling  Dialect"
1230 This section describes the command-line options that are only meaningful
1231 for \*(C+ programs; but you can also use most of the \s-1GNU\s0 compiler options
1232 regardless of what language your program is in.  For example, you
1233 might compile a file \f(CW\*(C`firstClass.C\*(C'\fR like this:
1234 .PP
1235 .Vb 1
1236 \&        g++ -g -frepo -O -c firstClass.C
1237 .Ve
1238 In this example, only \fB\-frepo\fR is an option meant
1239 only for \*(C+ programs; you can use the other options with any
1240 language supported by \s-1GCC\s0.
1241 .PP
1242 Here is a list of options that are \fIonly\fR for compiling \*(C+ programs:
1243 .Ip "\fB\-fno-access-control\fR" 4
1244 .IX Item "-fno-access-control"
1245 Turn off all access checking.  This switch is mainly useful for working
1246 around bugs in the access control code.
1247 .Ip "\fB\-fcheck-new\fR" 4
1248 .IX Item "-fcheck-new"
1249 Check that the pointer returned by \f(CW\*(C`operator new\*(C'\fR is non-null
1250 before attempting to modify the storage allocated.  The current Working
1251 Paper requires that \f(CW\*(C`operator new\*(C'\fR never return a null pointer, so
1252 this check is normally unnecessary.
1253 .Sp
1254 An alternative to using this option is to specify that your
1255 \&\f(CW\*(C`operator new\*(C'\fR does not throw any exceptions; if you declare it
1256 \&\fB\f(BIthrow()\fB\fR, G++ will check the return value.  See also \fBnew
1257 (nothrow)\fR.
1258 .Ip "\fB\-fconserve-space\fR" 4
1259 .IX Item "-fconserve-space"
1260 Put uninitialized or runtime-initialized global variables into the
1261 common segment, as C does.  This saves space in the executable at the
1262 cost of not diagnosing duplicate definitions.  If you compile with this
1263 flag and your program mysteriously crashes after \f(CW\*(C`main()\*(C'\fR has
1264 completed, you may have an object that is being destroyed twice because
1265 two definitions were merged.
1266 .Sp
1267 This option is no longer useful on most targets, now that support has
1268 been added for putting variables into \s-1BSS\s0 without making them common.
1269 .Ip "\fB\-fno-const-strings\fR" 4
1270 .IX Item "-fno-const-strings"
1271 Give string constants type \f(CW\*(C`char *\*(C'\fR instead of type \f(CW\*(C`const
1272 char *\*(C'\fR.  By default, G++ uses type \f(CW\*(C`const char *\*(C'\fR as required by
1273 the standard.  Even if you use \fB\-fno-const-strings\fR, you cannot
1274 actually modify the value of a string constant, unless you also use
1275 \&\fB\-fwritable-strings\fR.
1276 .Sp
1277 This option might be removed in a future release of G++.  For maximum
1278 portability, you should structure your code so that it works with
1279 string constants that have type \f(CW\*(C`const char *\*(C'\fR.
1280 .Ip "\fB\-fdollars-in-identifiers\fR" 4
1281 .IX Item "-fdollars-in-identifiers"
1282 Accept \fB$\fR in identifiers.  You can also explicitly prohibit use of
1283 \&\fB$\fR with the option \fB\-fno-dollars-in-identifiers\fR.  (\s-1GNU\s0 C allows
1284 \&\fB$\fR by default on most target systems, but there are a few exceptions.)
1285 Traditional C allowed the character \fB$\fR to form part of
1286 identifiers.  However, \s-1ISO\s0 C and \*(C+ forbid \fB$\fR in identifiers.
1287 .Ip "\fB\-fno-elide-constructors\fR" 4
1288 .IX Item "-fno-elide-constructors"
1289 The \*(C+ standard allows an implementation to omit creating a temporary
1290 which is only used to initialize another object of the same type.
1291 Specifying this option disables that optimization, and forces G++ to
1292 call the copy constructor in all cases.
1293 .Ip "\fB\-fno-enforce-eh-specs\fR" 4
1294 .IX Item "-fno-enforce-eh-specs"
1295 Don't check for violation of exception specifications at runtime.  This
1296 option violates the \*(C+ standard, but may be useful for reducing code
1297 size in production builds, much like defining \fB\s-1NDEBUG\s0\fR.  The compiler
1298 will still optimize based on the exception specifications.
1299 .Ip "\fB\-fexternal-templates\fR" 4
1300 .IX Item "-fexternal-templates"
1301 Cause \fB#pragma interface\fR and \fBimplementation\fR to apply to
1302 template instantiation; template instances are emitted or not according
1303 to the location of the template definition.  
1304 .Sp
1305 This option is deprecated.
1306 .Ip "\fB\-falt-external-templates\fR" 4
1307 .IX Item "-falt-external-templates"
1308 Similar to \fB\-fexternal-templates\fR, but template instances are
1309 emitted or not according to the place where they are first instantiated.
1310 .Sp
1311 This option is deprecated.
1312 .Ip "\fB\-ffor-scope\fR" 4
1313 .IX Item "-ffor-scope"
1314 .PD 0
1315 .Ip "\fB\-fno-for-scope\fR" 4
1316 .IX Item "-fno-for-scope"
1317 .PD
1318 If \fB\-ffor-scope\fR is specified, the scope of variables declared in
1319 a \fIfor-init-statement\fR is limited to the \fBfor\fR loop itself,
1320 as specified by the \*(C+ standard.
1321 If \fB\-fno-for-scope\fR is specified, the scope of variables declared in
1322 a \fIfor-init-statement\fR extends to the end of the enclosing scope,
1323 as was the case in old versions of G++, and other (traditional)
1324 implementations of \*(C+.
1325 .Sp
1326 The default if neither flag is given to follow the standard,
1327 but to allow and give a warning for old-style code that would
1328 otherwise be invalid, or have different behavior.
1329 .Ip "\fB\-fno-gnu-keywords\fR" 4
1330 .IX Item "-fno-gnu-keywords"
1331 Do not recognize \f(CW\*(C`typeof\*(C'\fR as a keyword, so that code can use this
1332 word as an identifier.  You can use the keyword \f(CW\*(C`_\|_typeof_\|_\*(C'\fR instead.
1333 \&\fB\-ansi\fR implies \fB\-fno-gnu-keywords\fR.
1334 .Ip "\fB\-fno-implicit-templates\fR" 4
1335 .IX Item "-fno-implicit-templates"
1336 Never emit code for non-inline templates which are instantiated
1337 implicitly (i.e. by use); only emit code for explicit instantiations.
1338 .Ip "\fB\-fno-implicit-inline-templates\fR" 4
1339 .IX Item "-fno-implicit-inline-templates"
1340 Don't emit code for implicit instantiations of inline templates, either.
1341 The default is to handle inlines differently so that compiles with and
1342 without optimization will need the same set of explicit instantiations.
1343 .Ip "\fB\-fno-implement-inlines\fR" 4
1344 .IX Item "-fno-implement-inlines"
1345 To save space, do not emit out-of-line copies of inline functions
1346 controlled by \fB#pragma implementation\fR.  This will cause linker
1347 errors if these functions are not inlined everywhere they are called.
1348 .Ip "\fB\-fms-extensions\fR" 4
1349 .IX Item "-fms-extensions"
1350 Disable pedantic warnings about constructs used in \s-1MFC\s0, such as implicit
1351 int and getting a pointer to member function via non-standard syntax.
1352 .Ip "\fB\-fno-nonansi-builtins\fR" 4
1353 .IX Item "-fno-nonansi-builtins"
1354 Disable built-in declarations of functions that are not mandated by
1355 \&\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,
1356 \&\f(CW\*(C`index\*(C'\fR, \f(CW\*(C`bzero\*(C'\fR, \f(CW\*(C`conjf\*(C'\fR, and other related functions.
1357 .Ip "\fB\-fno-operator-names\fR" 4
1358 .IX Item "-fno-operator-names"
1359 Do not treat the operator name keywords \f(CW\*(C`and\*(C'\fR, \f(CW\*(C`bitand\*(C'\fR,
1360 \&\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
1361 synonyms as keywords.
1362 .Ip "\fB\-fno-optional-diags\fR" 4
1363 .IX Item "-fno-optional-diags"
1364 Disable diagnostics that the standard says a compiler does not need to
1365 issue.  Currently, the only such diagnostic issued by G++ is the one for
1366 a name having multiple meanings within a class.
1367 .Ip "\fB\-fpermissive\fR" 4
1368 .IX Item "-fpermissive"
1369 Downgrade messages about nonconformant code from errors to warnings.  By
1370 default, G++ effectively sets \fB\-pedantic-errors\fR without
1371 \&\fB\-pedantic\fR; this option reverses that.  This behavior and this
1372 option are superseded by \fB\-pedantic\fR, which works as it does for \s-1GNU\s0 C.
1373 .Ip "\fB\-frepo\fR" 4
1374 .IX Item "-frepo"
1375 Enable automatic template instantiation at link time.  This option also
1376 implies \fB\-fno-implicit-templates\fR.  
1377 .Ip "\fB\-fno-rtti\fR" 4
1378 .IX Item "-fno-rtti"
1379 Disable generation of information about every class with virtual
1380 functions for use by the \*(C+ runtime type identification features
1381 (\fBdynamic_cast\fR and \fBtypeid\fR).  If you don't use those parts
1382 of the language, you can save some space by using this flag.  Note that
1383 exception handling uses the same information, but it will generate it as
1384 needed.
1385 .Ip "\fB\-fstats\fR" 4
1386 .IX Item "-fstats"
1387 Emit statistics about front-end processing at the end of the compilation.
1388 This information is generally only useful to the G++ development team.
1389 .Ip "\fB\-ftemplate-depth-\fR\fIn\fR" 4
1390 .IX Item "-ftemplate-depth-n"
1391 Set the maximum instantiation depth for template classes to \fIn\fR.
1392 A limit on the template instantiation depth is needed to detect
1393 endless recursions during template class instantiation.  \s-1ANSI/ISO\s0 \*(C+
1394 conforming programs must not rely on a maximum depth greater than 17.
1395 .Ip "\fB\-fuse-cxa-atexit\fR" 4
1396 .IX Item "-fuse-cxa-atexit"
1397 Register destructors for objects with static storage duration with the
1398 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR function rather than the \f(CW\*(C`atexit\*(C'\fR function.
1399 This option is required for fully standards-compliant handling of static
1400 destructors, but will only work if your C library supports
1401 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR.
1402 .Ip "\fB\-fvtable-gc\fR" 4
1403 .IX Item "-fvtable-gc"
1404 Emit special relocations for vtables and virtual function references
1405 so that the linker can identify unused virtual functions and zero out
1406 vtable slots that refer to them.  This is most useful with
1407 \&\fB\-ffunction-sections\fR and \fB\-Wl,\-\-gc-sections\fR, in order to
1408 also discard the functions themselves.
1409 .Sp
1410 This optimization requires \s-1GNU\s0 as and \s-1GNU\s0 ld.  Not all systems support
1411 this option.  \fB\-Wl,\-\-gc-sections\fR is ignored without \fB\-static\fR.
1412 .Ip "\fB\-fno-weak\fR" 4
1413 .IX Item "-fno-weak"
1414 Do not use weak symbol support, even if it is provided by the linker.
1415 By default, G++ will use weak symbols if they are available.  This
1416 option exists only for testing, and should not be used by end-users;
1417 it will result in inferior code and has no benefits.  This option may
1418 be removed in a future release of G++.
1419 .Ip "\fB\-nostdinc++\fR" 4
1420 .IX Item "-nostdinc++"
1421 Do not search for header files in the standard directories specific to
1422 \&\*(C+, but do still search the other standard directories.  (This option
1423 is used when building the \*(C+ library.)
1424 .PP
1425 In addition, these optimization, warning, and code generation options
1426 have meanings only for \*(C+ programs:
1427 .Ip "\fB\-fno-default-inline\fR" 4
1428 .IX Item "-fno-default-inline"
1429 Do not assume \fBinline\fR for functions defined inside a class scope.
1430   Note that these
1431 functions will have linkage like inline functions; they just won't be
1432 inlined by default.
1433 .Ip "\fB\-Wabi\fR (\*(C+ only)" 4
1434 .IX Item "-Wabi ( only)"
1435 Warn when G++ generates code that is probably not compatible with the
1436 vendor-neutral \*(C+ \s-1ABI\s0.  Although an effort has been made to warn about
1437 all such cases, there are probably some cases that are not warned about, 
1438 even though G++ is generating incompatible code.  There may also be
1439 cases where warnings are emitted even though the code that is generated
1440 will be compatible.
1441 .Sp
1442 You should rewrite your code to avoid these warnings if you are
1443 concerned about the fact that code generated by G++ may not be binary
1444 compatible with code generated by other compilers.
1445 .Sp
1446 The known incompatibilites at this point include:
1447 .RS 4
1448 .Ip "\(bu" 4
1449 Incorrect handling of tail-padding for bit-fields.  G++ may attempt to
1450 pack data into the same byte as a base class.  For example:
1451 .Sp
1452 .Vb 2
1453 \&        struct A { virtual void f(); int f1 : 1; };
1454 \&        struct B : public A { int f2 : 1; };
1455 .Ve
1456 In this case, G++ will place \f(CW\*(C`B::f2\*(C'\fR into the same byte
1457 as\f(CW\*(C`A::f1\*(C'\fR; other compilers will not.  You can avoid this problem 
1458 by explicitly padding \f(CW\*(C`A\*(C'\fR so that its size is a multiple of the
1459 byte size on your platform; that will cause G++ and other compilers to
1460 layout \f(CW\*(C`B\*(C'\fR identically.
1461 .Ip "\(bu" 4
1462 Incorrect handling of tail-padding for virtual bases.  G++ does not use
1463 tail padding when laying out virtual bases.  For example:
1464 .Sp
1465 .Vb 3
1466 \&        struct A { virtual void f(); char c1; };
1467 \&        struct B { B(); char c2; };
1468 \&        struct C : public A, public virtual B {};
1469 .Ve
1470 In this case, G++ will not place \f(CW\*(C`B\*(C'\fR into the tail-padding for
1471 \&\f(CW\*(C`A\*(C'\fR; other compilers will.  You can avoid this problem by
1472 explicitly padding \f(CW\*(C`A\*(C'\fR so that its size is a multiple of its
1473 alignment (ignoring virtual base classes); that will cause G++ and other
1474 compilers to layout \f(CW\*(C`C\*(C'\fR identically.
1475 .RE
1476 .RS 4
1477 .RE
1478 .Ip "\fB\-Wctor-dtor-privacy\fR (\*(C+ only)" 4
1479 .IX Item "-Wctor-dtor-privacy ( only)"
1480 Warn when a class seems unusable, because all the constructors or
1481 destructors in a class are private and the class has no friends or
1482 public static member functions.
1483 .Ip "\fB\-Wnon-virtual-dtor\fR (\*(C+ only)" 4
1484 .IX Item "-Wnon-virtual-dtor ( only)"
1485 Warn when a class declares a non-virtual destructor that should probably
1486 be virtual, because it looks like the class will be used polymorphically.
1487 .Ip "\fB\-Wreorder\fR (\*(C+ only)" 4
1488 .IX Item "-Wreorder ( only)"
1489 Warn when the order of member initializers given in the code does not
1490 match the order in which they must be executed.  For instance:
1491 .Sp
1492 .Vb 5
1493 \&        struct A {
1494 \&          int i;
1495 \&          int j;
1496 \&          A(): j (0), i (1) { }
1497 \&        };
1498 .Ve
1499 Here the compiler will warn that the member initializers for \fBi\fR
1500 and \fBj\fR will be rearranged to match the declaration order of the
1501 members.
1502 .PP
1503 The following \fB\-W...\fR options are not affected by \fB\-Wall\fR.
1504 .Ip "\fB\-Weffc++\fR (\*(C+ only)" 4
1505 .IX Item "-Weffc++ ( only)"
1506 Warn about violations of the following style guidelines from Scott Meyers'
1507 \&\fIEffective \*(C+\fR book:
1508 .RS 4
1509 .Ip "\(bu" 4
1510 Item 11:  Define a copy constructor and an assignment operator for classes
1511 with dynamically allocated memory.
1512 .Ip "\(bu" 4
1513 Item 12:  Prefer initialization to assignment in constructors.
1514 .Ip "\(bu" 4
1515 Item 14:  Make destructors virtual in base classes.
1516 .Ip "\(bu" 4
1517 Item 15:  Have \f(CW\*(C`operator=\*(C'\fR return a reference to \f(CW\*(C`*this\*(C'\fR.
1518 .Ip "\(bu" 4
1519 Item 23:  Don't try to return a reference when you must return an object.
1520 .RE
1521 .RS 4
1522 .Sp
1523 and about violations of the following style guidelines from Scott Meyers'
1524 \&\fIMore Effective \*(C+\fR book:
1525 .RS 4
1526 .RE
1527 .Ip "\(bu" 4
1528 Item 6:  Distinguish between prefix and postfix forms of increment and
1529 decrement operators.
1530 .Ip "\(bu" 4
1531 Item 7:  Never overload \f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`||\*(C'\fR, or \f(CW\*(C`,\*(C'\fR.
1532 .RE
1533 .RS 4
1534 .Sp
1535 If you use this option, you should be aware that the standard library
1536 headers do not obey all of these guidelines; you can use \fBgrep \-v\fR
1537 to filter out those warnings.
1538 .RE
1539 .Ip "\fB\-Wno-deprecated\fR (\*(C+ only)" 4
1540 .IX Item "-Wno-deprecated ( only)"
1541 Do not warn about usage of deprecated features.  
1542 .Ip "\fB\-Wno-non-template-friend\fR (\*(C+ only)" 4
1543 .IX Item "-Wno-non-template-friend ( only)"
1544 Disable warnings when non-templatized friend functions are declared
1545 within a template.  With the advent of explicit template specification
1546 support in G++, if the name of the friend is an unqualified-id (i.e.,
1547 \&\fBfriend foo(int)\fR), the \*(C+ language specification demands that the
1548 friend declare or define an ordinary, nontemplate function.  (Section
1549 14.5.3).  Before G++ implemented explicit specification, unqualified-ids
1550 could be interpreted as a particular specialization of a templatized
1551 function.  Because this non-conforming behavior is no longer the default
1552 behavior for G++, \fB\-Wnon-template-friend\fR allows the compiler to
1553 check existing code for potential trouble spots, and is on by default.
1554 This new compiler behavior can be turned off with
1555 \&\fB\-Wno-non-template-friend\fR which keeps the conformant compiler code
1556 but disables the helpful warning.
1557 .Ip "\fB\-Wold-style-cast\fR (\*(C+ only)" 4
1558 .IX Item "-Wold-style-cast ( only)"
1559 Warn if an old-style (C-style) cast to a non-void type is used within
1560 a \*(C+ program.  The new-style casts (\fBstatic_cast\fR,
1561 \&\fBreinterpret_cast\fR, and \fBconst_cast\fR) are less vulnerable to
1562 unintended effects, and much easier to grep for.
1563 .Ip "\fB\-Woverloaded-virtual\fR (\*(C+ only)" 4
1564 .IX Item "-Woverloaded-virtual ( only)"
1565 Warn when a function declaration hides virtual functions from a
1566 base class.  For example, in:
1567 .Sp
1568 .Vb 3
1569 \&        struct A {
1570 \&          virtual void f();
1571 \&        };
1572 .Ve
1573 .Vb 3
1574 \&        struct B: public A {
1575 \&          void f(int);
1576 \&        };
1577 .Ve
1578 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
1579 like this:
1580 .Sp
1581 .Vb 2
1582 \&        B* b;
1583 \&        b->f();
1584 .Ve
1585 will fail to compile.
1586 .Ip "\fB\-Wno-pmf-conversions\fR (\*(C+ only)" 4
1587 .IX Item "-Wno-pmf-conversions ( only)"
1588 Disable the diagnostic for converting a bound pointer to member function
1589 to a plain pointer.
1590 .Ip "\fB\-Wsign-promo\fR (\*(C+ only)" 4
1591 .IX Item "-Wsign-promo ( only)"
1592 Warn when overload resolution chooses a promotion from unsigned or
1593 enumeral type to a signed type over a conversion to an unsigned type of
1594 the same size.  Previous versions of G++ would try to preserve
1595 unsignedness, but the standard mandates the current behavior.
1596 .Ip "\fB\-Wsynth\fR (\*(C+ only)" 4
1597 .IX Item "-Wsynth ( only)"
1598 Warn when G++'s synthesis behavior does not match that of cfront.  For
1599 instance:
1600 .Sp
1601 .Vb 4
1602 \&        struct A {
1603 \&          operator int ();
1604 \&          A& operator = (int);
1605 \&        };
1606 .Ve
1607 .Vb 5
1608 \&        main ()
1609 \&        {
1610 \&          A a,b;
1611 \&          a = b;
1612 \&        }
1613 .Ve
1614 In this example, G++ will synthesize a default \fBA& operator =
1615 (const A&);\fR, while cfront will use the user-defined \fBoperator =\fR.
1616 .Sh "Options Controlling Objective-C Dialect"
1617 .IX Subsection "Options Controlling Objective-C Dialect"
1618 This section describes the command-line options that are only meaningful
1619 for Objective-C programs; but you can also use most of the \s-1GNU\s0 compiler
1620 options regardless of what language your program is in.  For example,
1621 you might compile a file \f(CW\*(C`some_class.m\*(C'\fR like this:
1622 .PP
1623 .Vb 1
1624 \&        gcc -g -fgnu-runtime -O -c some_class.m
1625 .Ve
1626 In this example, only \fB\-fgnu-runtime\fR is an option meant only for
1627 Objective-C programs; you can use the other options with any language
1628 supported by \s-1GCC\s0.
1629 .PP
1630 Here is a list of options that are \fIonly\fR for compiling Objective-C
1631 programs:
1632 .Ip "\fB\-fconstant-string-class=\fR\fIclass-name\fR" 4
1633 .IX Item "-fconstant-string-class=class-name"
1634 Use \fIclass-name\fR as the name of the class to instantiate for each
1635 literal string specified with the syntax \f(CW\*(C`@"..."\*(C'\fR.  The default
1636 class name is \f(CW\*(C`NXConstantString\*(C'\fR.
1637 .Ip "\fB\-fgnu-runtime\fR" 4
1638 .IX Item "-fgnu-runtime"
1639 Generate object code compatible with the standard \s-1GNU\s0 Objective-C
1640 runtime.  This is the default for most types of systems.
1641 .Ip "\fB\-fnext-runtime\fR" 4
1642 .IX Item "-fnext-runtime"
1643 Generate output compatible with the NeXT runtime.  This is the default
1644 for NeXT-based systems, including Darwin and Mac \s-1OS\s0 X.
1645 .Ip "\fB\-gen-decls\fR" 4
1646 .IX Item "-gen-decls"
1647 Dump interface declarations for all classes seen in the source file to a
1648 file named \fI\fIsourcename\fI.decl\fR.
1649 .Ip "\fB\-Wno-protocol\fR" 4
1650 .IX Item "-Wno-protocol"
1651 Do not warn if methods required by a protocol are not implemented
1652 in the class adopting it.
1653 .Ip "\fB\-Wselector\fR" 4
1654 .IX Item "-Wselector"
1655 Warn if a selector has multiple methods of different types defined.
1656 .Sh "Options to Control Diagnostic Messages Formatting"
1657 .IX Subsection "Options to Control Diagnostic Messages Formatting"
1658 Traditionally, diagnostic messages have been formatted irrespective of
1659 the output device's aspect (e.g. its width, ...).  The options described
1660 below can be used to control the diagnostic messages formatting
1661 algorithm, e.g. how many characters per line, how often source location
1662 information should be reported.  Right now, only the \*(C+ front end can
1663 honor these options.  However it is expected, in the near future, that
1664 the remaining front ends would be able to digest them correctly.
1665 .Ip "\fB\-fmessage-length=\fR\fIn\fR" 4
1666 .IX Item "-fmessage-length=n"
1667 Try to format error messages so that they fit on lines of about \fIn\fR
1668 characters.  The default is 72 characters for \fBg++\fR and 0 for the rest of
1669 the front ends supported by \s-1GCC\s0.  If \fIn\fR is zero, then no
1670 line-wrapping will be done; each error message will appear on a single
1671 line.
1672 .Ip "\fB\-fdiagnostics-show-location=once\fR" 4
1673 .IX Item "-fdiagnostics-show-location=once"
1674 Only meaningful in line-wrapping mode.  Instructs the diagnostic messages
1675 reporter to emit \fIonce\fR source location information; that is, in
1676 case the message is too long to fit on a single physical line and has to
1677 be wrapped, the source location won't be emitted (as prefix) again,
1678 over and over, in subsequent continuation lines.  This is the default
1679 behavior.
1680 .Ip "\fB\-fdiagnostics-show-location=every-line\fR" 4
1681 .IX Item "-fdiagnostics-show-location=every-line"
1682 Only meaningful in line-wrapping mode.  Instructs the diagnostic
1683 messages reporter to emit the same source location information (as
1684 prefix) for physical lines that result from the process of breaking
1685 a message which is too long to fit on a single line.
1686 .Sh "Options to Request or Suppress Warnings"
1687 .IX Subsection "Options to Request or Suppress Warnings"
1688 Warnings are diagnostic messages that report constructions which
1689 are not inherently erroneous but which are risky or suggest there
1690 may have been an error.
1691 .PP
1692 You can request many specific warnings with options beginning \fB\-W\fR,
1693 for example \fB\-Wimplicit\fR to request warnings on implicit
1694 declarations.  Each of these specific warning options also has a
1695 negative form beginning \fB\-Wno-\fR to turn off warnings;
1696 for example, \fB\-Wno-implicit\fR.  This manual lists only one of the
1697 two forms, whichever is not the default.
1698 .PP
1699 The following options control the amount and kinds of warnings produced
1700 by \s-1GCC\s0; for further, language-specific options also refer to
1701 \&\f(CW@ref\fR{\*(C+ Dialect Options} and \f(CW@ref\fR{Objective-C Dialect Options}.
1702 .Ip "\fB\-fsyntax-only\fR" 4
1703 .IX Item "-fsyntax-only"
1704 Check the code for syntax errors, but don't do anything beyond that.
1705 .Ip "\fB\-pedantic\fR" 4
1706 .IX Item "-pedantic"
1707 Issue all the warnings demanded by strict \s-1ISO\s0 C and \s-1ISO\s0 \*(C+;
1708 reject all programs that use forbidden extensions, and some other
1709 programs that do not follow \s-1ISO\s0 C and \s-1ISO\s0 \*(C+.  For \s-1ISO\s0 C, follows the
1710 version of the \s-1ISO\s0 C standard specified by any \fB\-std\fR option used.
1711 .Sp
1712 Valid \s-1ISO\s0 C and \s-1ISO\s0 \*(C+ programs should compile properly with or without
1713 this option (though a rare few will require \fB\-ansi\fR or a
1714 \&\fB\-std\fR option specifying the required version of \s-1ISO\s0 C).  However,
1715 without this option, certain \s-1GNU\s0 extensions and traditional C and \*(C+
1716 features are supported as well.  With this option, they are rejected.
1717 .Sp
1718 \&\fB\-pedantic\fR does not cause warning messages for use of the
1719 alternate keywords whose names begin and end with \fB_\|_\fR.  Pedantic
1720 warnings are also disabled in the expression that follows
1721 \&\f(CW\*(C`_\|_extension_\|_\*(C'\fR.  However, only system header files should use
1722 these escape routes; application programs should avoid them.
1723 .Sp
1724 Some users try to use \fB\-pedantic\fR to check programs for strict \s-1ISO\s0
1725 C conformance.  They soon find that it does not do quite what they want:
1726 it finds some non-ISO practices, but not all\-\-\-only those for which
1727 \&\s-1ISO\s0 C \fIrequires\fR a diagnostic, and some others for which
1728 diagnostics have been added.
1729 .Sp
1730 A feature to report any failure to conform to \s-1ISO\s0 C might be useful in
1731 some instances, but would require considerable additional work and would
1732 be quite different from \fB\-pedantic\fR.  We don't have plans to
1733 support such a feature in the near future.
1734 .Sp
1735 Where the standard specified with \fB\-std\fR represents a \s-1GNU\s0
1736 extended dialect of C, such as \fBgnu89\fR or \fBgnu99\fR, there is a
1737 corresponding \fIbase standard\fR, the version of \s-1ISO\s0 C on which the \s-1GNU\s0
1738 extended dialect is based.  Warnings from \fB\-pedantic\fR are given
1739 where they are required by the base standard.  (It would not make sense
1740 for such warnings to be given only for features not in the specified \s-1GNU\s0
1741 C dialect, since by definition the \s-1GNU\s0 dialects of C include all
1742 features the compiler supports with the given option, and there would be
1743 nothing to warn about.)
1744 .Ip "\fB\-pedantic-errors\fR" 4
1745 .IX Item "-pedantic-errors"
1746 Like \fB\-pedantic\fR, except that errors are produced rather than
1747 warnings.
1748 .Ip "\fB\-w\fR" 4
1749 .IX Item "-w"
1750 Inhibit all warning messages.
1751 .Ip "\fB\-Wno-import\fR" 4
1752 .IX Item "-Wno-import"
1753 Inhibit warning messages about the use of \fB#import\fR.
1754 .Ip "\fB\-Wchar-subscripts\fR" 4
1755 .IX Item "-Wchar-subscripts"
1756 Warn if an array subscript has type \f(CW\*(C`char\*(C'\fR.  This is a common cause
1757 of error, as programmers often forget that this type is signed on some
1758 machines.
1759 .Ip "\fB\-Wcomment\fR" 4
1760 .IX Item "-Wcomment"
1761 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
1762 comment, or whenever a Backslash-Newline appears in a \fB//\fR comment.
1763 .Ip "\fB\-Wformat\fR" 4
1764 .IX Item "-Wformat"
1765 Check calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR, etc., to make sure that
1766 the arguments supplied have types appropriate to the format string
1767 specified, and that the conversions specified in the format string make
1768 sense.  This includes standard functions, and others specified by format
1769 attributes, in the \f(CW\*(C`printf\*(C'\fR,
1770 \&\f(CW\*(C`scanf\*(C'\fR, \f(CW\*(C`strftime\*(C'\fR and \f(CW\*(C`strfmon\*(C'\fR (an X/Open extension,
1771 not in the C standard) families.
1772 .Sp
1773 The formats are checked against the format features supported by \s-1GNU\s0
1774 libc version 2.2.  These include all \s-1ISO\s0 C89 and C99 features, as well
1775 as features from the Single Unix Specification and some \s-1BSD\s0 and \s-1GNU\s0
1776 extensions.  Other library implementations may not support all these
1777 features; \s-1GCC\s0 does not support warning about features that go beyond a
1778 particular library's limitations.  However, if \fB\-pedantic\fR is used
1779 with \fB\-Wformat\fR, warnings will be given about format features not
1780 in the selected standard version (but not for \f(CW\*(C`strfmon\*(C'\fR formats,
1781 since those are not in any version of the C standard).  
1782 .Sp
1783 \&\fB\-Wformat\fR is included in \fB\-Wall\fR.  For more control over some
1784 aspects of format checking, the options \fB\-Wno-format-y2k\fR,
1785 \&\fB\-Wno-format-extra-args\fR, \fB\-Wformat-nonliteral\fR,
1786 \&\fB\-Wformat-security\fR and \fB\-Wformat=2\fR are available, but are
1787 not included in \fB\-Wall\fR.
1788 .Ip "\fB\-Wno-format-y2k\fR" 4
1789 .IX Item "-Wno-format-y2k"
1790 If \fB\-Wformat\fR is specified, do not warn about \f(CW\*(C`strftime\*(C'\fR
1791 formats which may yield only a two-digit year.
1792 .Ip "\fB\-Wno-format-extra-args\fR" 4
1793 .IX Item "-Wno-format-extra-args"
1794 If \fB\-Wformat\fR is specified, do not warn about excess arguments to a
1795 \&\f(CW\*(C`printf\*(C'\fR or \f(CW\*(C`scanf\*(C'\fR format function.  The C standard specifies
1796 that such arguments are ignored.
1797 .Sp
1798 Where the unused arguments lie between used arguments that are
1799 specified with \fB$\fR operand number specifications, normally
1800 warnings are still given, since the implementation could not know what
1801 type to pass to \f(CW\*(C`va_arg\*(C'\fR to skip the unused arguments.  However,
1802 in the case of \f(CW\*(C`scanf\*(C'\fR formats, this option will suppress the
1803 warning if the unused arguments are all pointers, since the Single
1804 Unix Specification says that such unused arguments are allowed.
1805 .Ip "\fB\-Wformat-nonliteral\fR" 4
1806 .IX Item "-Wformat-nonliteral"
1807 If \fB\-Wformat\fR is specified, also warn if the format string is not a
1808 string literal and so cannot be checked, unless the format function
1809 takes its format arguments as a \f(CW\*(C`va_list\*(C'\fR.
1810 .Ip "\fB\-Wformat-security\fR" 4
1811 .IX Item "-Wformat-security"
1812 If \fB\-Wformat\fR is specified, also warn about uses of format
1813 functions that represent possible security problems.  At present, this
1814 warns about calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR functions where the
1815 format string is not a string literal and there are no format arguments,
1816 as in \f(CW\*(C`printf (foo);\*(C'\fR.  This may be a security hole if the format
1817 string came from untrusted input and contains \fB%n\fR.  (This is
1818 currently a subset of what \fB\-Wformat-nonliteral\fR warns about, but
1819 in future warnings may be added to \fB\-Wformat-security\fR that are not
1820 included in \fB\-Wformat-nonliteral\fR.)
1821 .Ip "\fB\-Wformat=2\fR" 4
1822 .IX Item "-Wformat=2"
1823 Enable \fB\-Wformat\fR plus format checks not included in
1824 \&\fB\-Wformat\fR.  Currently equivalent to \fB\-Wformat
1825 \&\-Wformat-nonliteral \-Wformat-security\fR.
1826 .Ip "\fB\-Wimplicit-int\fR" 4
1827 .IX Item "-Wimplicit-int"
1828 Warn when a declaration does not specify a type.
1829 .Ip "\fB\-Wimplicit-function-declaration\fR" 4
1830 .IX Item "-Wimplicit-function-declaration"
1831 .PD 0
1832 .Ip "\fB\-Werror-implicit-function-declaration\fR" 4
1833 .IX Item "-Werror-implicit-function-declaration"
1834 .PD
1835 Give a warning (or error) whenever a function is used before being
1836 declared.
1837 .Ip "\fB\-Wimplicit\fR" 4
1838 .IX Item "-Wimplicit"
1839 Same as \fB\-Wimplicit-int\fR and \fB\-Wimplicit-function-declaration\fR.
1840 .Ip "\fB\-Wmain\fR" 4
1841 .IX Item "-Wmain"
1842 Warn if the type of \fBmain\fR is suspicious.  \fBmain\fR should be a
1843 function with external linkage, returning int, taking either zero
1844 arguments, two, or three arguments of appropriate types.
1845 .Ip "\fB\-Wmissing-braces\fR" 4
1846 .IX Item "-Wmissing-braces"
1847 Warn if an aggregate or union initializer is not fully bracketed.  In
1848 the following example, the initializer for \fBa\fR is not fully
1849 bracketed, but that for \fBb\fR is fully bracketed.
1850 .Sp
1851 .Vb 2
1852 \&        int a[2][2] = { 0, 1, 2, 3 };
1853 \&        int b[2][2] = { { 0, 1 }, { 2, 3 } };
1854 .Ve
1855 .Ip "\fB\-Wparentheses\fR" 4
1856 .IX Item "-Wparentheses"
1857 Warn if parentheses are omitted in certain contexts, such
1858 as when there is an assignment in a context where a truth value
1859 is expected, or when operators are nested whose precedence people
1860 often get confused about.
1861 .Sp
1862 Also warn about constructions where there may be confusion to which
1863 \&\f(CW\*(C`if\*(C'\fR statement an \f(CW\*(C`else\*(C'\fR branch belongs.  Here is an example of
1864 such a case:
1865 .Sp
1866 .Vb 7
1867 \&        {
1868 \&          if (a)
1869 \&            if (b)
1870 \&              foo ();
1871 \&          else
1872 \&            bar ();
1873 \&        }
1874 .Ve
1875 In C, every \f(CW\*(C`else\*(C'\fR branch belongs to the innermost possible \f(CW\*(C`if\*(C'\fR
1876 statement, which in this example is \f(CW\*(C`if (b)\*(C'\fR.  This is often not
1877 what the programmer expected, as illustrated in the above example by
1878 indentation the programmer chose.  When there is the potential for this
1879 confusion, \s-1GCC\s0 will issue a warning when this flag is specified.
1880 To eliminate the warning, add explicit braces around the innermost
1881 \&\f(CW\*(C`if\*(C'\fR statement so there is no way the \f(CW\*(C`else\*(C'\fR could belong to
1882 the enclosing \f(CW\*(C`if\*(C'\fR.  The resulting code would look like this:
1883 .Sp
1884 .Vb 9
1885 \&        {
1886 \&          if (a)
1887 \&            {
1888 \&              if (b)
1889 \&                foo ();
1890 \&              else
1891 \&                bar ();
1892 \&            }
1893 \&        }
1894 .Ve
1895 .Ip "\fB\-Wsequence-point\fR" 4
1896 .IX Item "-Wsequence-point"
1897 Warn about code that may have undefined semantics because of violations
1898 of sequence point rules in the C standard.
1899 .Sp
1900 The C standard defines the order in which expressions in a C program are
1901 evaluated in terms of \fIsequence points\fR, which represent a partial
1902 ordering between the execution of parts of the program: those executed
1903 before the sequence point, and those executed after it.  These occur
1904 after the evaluation of a full expression (one which is not part of a
1905 larger expression), after the evaluation of the first operand of a
1906 \&\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
1907 function is called (but after the evaluation of its arguments and the
1908 expression denoting the called function), and in certain other places.
1909 Other than as expressed by the sequence point rules, the order of
1910 evaluation of subexpressions of an expression is not specified.  All
1911 these rules describe only a partial order rather than a total order,
1912 since, for example, if two functions are called within one expression
1913 with no sequence point between them, the order in which the functions
1914 are called is not specified.  However, the standards committee have
1915 ruled that function calls do not overlap.
1916 .Sp
1917 It is not specified when between sequence points modifications to the
1918 values of objects take effect.  Programs whose behavior depends on this
1919 have undefined behavior; the C standard specifies that ``Between the
1920 previous and next sequence point an object shall have its stored value
1921 modified at most once by the evaluation of an expression.  Furthermore,
1922 the prior value shall be read only to determine the value to be
1923 stored.''.  If a program breaks these rules, the results on any
1924 particular implementation are entirely unpredictable.
1925 .Sp
1926 Examples of code with undefined behavior are \f(CW\*(C`a = a++;\*(C'\fR, \f(CW\*(C`a[n]
1927 = b[n++]\*(C'\fR and \f(CW\*(C`a[i++] = i;\*(C'\fR.  Some more complicated cases are not
1928 diagnosed by this option, and it may give an occasional false positive
1929 result, but in general it has been found fairly effective at detecting
1930 this sort of problem in programs.
1931 .Sp
1932 The present implementation of this option only works for C programs.  A
1933 future implementation may also work for \*(C+ programs.
1934 .Sp
1935 The C standard is worded confusingly, therefore there is some debate
1936 over the precise meaning of the sequence point rules in subtle cases.
1937 Links to discussions of the problem, including proposed formal
1938 definitions, may be found on our readings page, at
1939 <\fBhttp://gcc.gnu.org/readings.html\fR>.
1940 .Ip "\fB\-Wreturn-type\fR" 4
1941 .IX Item "-Wreturn-type"
1942 Warn whenever a function is defined with a return-type that defaults to
1943 \&\f(CW\*(C`int\*(C'\fR.  Also warn about any \f(CW\*(C`return\*(C'\fR statement with no
1944 return-value in a function whose return-type is not \f(CW\*(C`void\*(C'\fR.
1945 .Sp
1946 For \*(C+, a function without return type always produces a diagnostic
1947 message, even when \fB\-Wno-return-type\fR is specified.  The only
1948 exceptions are \fBmain\fR and functions defined in system headers.
1949 .Ip "\fB\-Wswitch\fR" 4
1950 .IX Item "-Wswitch"
1951 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumeral type
1952 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
1953 enumeration.  (The presence of a \f(CW\*(C`default\*(C'\fR label prevents this
1954 warning.)  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
1955 provoke warnings when this option is used.
1956 .Ip "\fB\-Wtrigraphs\fR" 4
1957 .IX Item "-Wtrigraphs"
1958 Warn if any trigraphs are encountered that might change the meaning of
1959 the program (trigraphs within comments are not warned about).
1960 .Ip "\fB\-Wunused-function\fR" 4
1961 .IX Item "-Wunused-function"
1962 Warn whenever a static function is declared but not defined or a
1963 non\e-inline static function is unused.
1964 .Ip "\fB\-Wunused-label\fR" 4
1965 .IX Item "-Wunused-label"
1966 Warn whenever a label is declared but not used.
1967 .Sp
1968 To suppress this warning use the \fBunused\fR attribute.
1969 .Ip "\fB\-Wunused-parameter\fR" 4
1970 .IX Item "-Wunused-parameter"
1971 Warn whenever a function parameter is unused aside from its declaration.
1972 .Sp
1973 To suppress this warning use the \fBunused\fR attribute.
1974 .Ip "\fB\-Wunused-variable\fR" 4
1975 .IX Item "-Wunused-variable"
1976 Warn whenever a local variable or non-constant static variable is unused
1977 aside from its declaration
1978 .Sp
1979 To suppress this warning use the \fBunused\fR attribute.
1980 .Ip "\fB\-Wunused-value\fR" 4
1981 .IX Item "-Wunused-value"
1982 Warn whenever a statement computes a result that is explicitly not used.
1983 .Sp
1984 To suppress this warning cast the expression to \fBvoid\fR.
1985 .Ip "\fB\-Wunused\fR" 4
1986 .IX Item "-Wunused"
1987 All all the above \fB\-Wunused\fR options combined.
1988 .Sp
1989 In order to get a warning about an unused function parameter, you must
1990 either specify \fB\-W \-Wunused\fR or separately specify
1991 \&\fB\-Wunused-parameter\fR.
1992 .Ip "\fB\-Wuninitialized\fR" 4
1993 .IX Item "-Wuninitialized"
1994 Warn if an automatic variable is used without first being initialized or
1995 if a variable may be clobbered by a \f(CW\*(C`setjmp\*(C'\fR call.
1996 .Sp
1997 These warnings are possible only in optimizing compilation,
1998 because they require data flow information that is computed only
1999 when optimizing.  If you don't specify \fB\-O\fR, you simply won't
2000 get these warnings.
2001 .Sp
2002 These warnings occur only for variables that are candidates for
2003 register allocation.  Therefore, they do not occur for a variable that
2004 is declared \f(CW\*(C`volatile\*(C'\fR, or whose address is taken, or whose size
2005 is other than 1, 2, 4 or 8 bytes.  Also, they do not occur for
2006 structures, unions or arrays, even when they are in registers.
2007 .Sp
2008 Note that there may be no warning about a variable that is used only
2009 to compute a value that itself is never used, because such
2010 computations may be deleted by data flow analysis before the warnings
2011 are printed.
2012 .Sp
2013 These warnings are made optional because \s-1GCC\s0 is not smart
2014 enough to see all the reasons why the code might be correct
2015 despite appearing to have an error.  Here is one example of how
2016 this can happen:
2017 .Sp
2018 .Vb 12
2019 \&        {
2020 \&          int x;
2021 \&          switch (y)
2022 \&            {
2023 \&            case 1: x = 1;
2024 \&              break;
2025 \&            case 2: x = 4;
2026 \&              break;
2027 \&            case 3: x = 5;
2028 \&            }
2029 \&          foo (x);
2030 \&        }
2031 .Ve
2032 If the value of \f(CW\*(C`y\*(C'\fR is always 1, 2 or 3, then \f(CW\*(C`x\*(C'\fR is
2033 always initialized, but \s-1GCC\s0 doesn't know this.  Here is
2034 another common case:
2035 .Sp
2036 .Vb 6
2037 \&        {
2038 \&          int save_y;
2039 \&          if (change_y) save_y = y, y = new_y;
2040 \&          ...
2041 \&          if (change_y) y = save_y;
2042 \&        }
2043 .Ve
2044 This has no bug because \f(CW\*(C`save_y\*(C'\fR is used only if it is set.
2045 .Sp
2046 This option also warns when a non-volatile automatic variable might be
2047 changed by a call to \f(CW\*(C`longjmp\*(C'\fR.  These warnings as well are possible
2048 only in optimizing compilation.
2049 .Sp
2050 The compiler sees only the calls to \f(CW\*(C`setjmp\*(C'\fR.  It cannot know
2051 where \f(CW\*(C`longjmp\*(C'\fR will be called; in fact, a signal handler could
2052 call it at any point in the code.  As a result, you may get a warning
2053 even when there is in fact no problem because \f(CW\*(C`longjmp\*(C'\fR cannot
2054 in fact be called at the place which would cause a problem.
2055 .Sp
2056 Some spurious warnings can be avoided if you declare all the functions
2057 you use that never return as \f(CW\*(C`noreturn\*(C'\fR.  
2058 .Ip "\fB\-Wreorder\fR (\*(C+ only)" 4
2059 .IX Item "-Wreorder ( only)"
2060 Warn when the order of member initializers given in the code does not
2061 match the order in which they must be executed.  For instance:
2062 .Ip "\fB\-Wunknown-pragmas\fR" 4
2063 .IX Item "-Wunknown-pragmas"
2064 Warn when a #pragma directive is encountered which is not understood by
2065 \&\s-1GCC\s0.  If this command line option is used, warnings will even be issued
2066 for unknown pragmas in system header files.  This is not the case if
2067 the warnings were only enabled by the \fB\-Wall\fR command line option.
2068 .Ip "\fB\-Wall\fR" 4
2069 .IX Item "-Wall"
2070 All of the above \fB\-W\fR options combined.  This enables all the
2071 warnings about constructions that some users consider questionable, and
2072 that are easy to avoid (or modify to prevent the warning), even in
2073 conjunction with macros.
2074 .Ip "\fB\-Wdiv-by-zero\fR" 4
2075 .IX Item "-Wdiv-by-zero"
2076 Warn about compile-time integer division by zero.  This is default.  To
2077 inhibit the warning messages, use \fB\-Wno-div-by-zero\fR.  Floating
2078 point division by zero is not warned about, as it can be a legitimate
2079 way of obtaining infinities and NaNs.
2080 .Ip "\fB\-Wmultichar\fR" 4
2081 .IX Item "-Wmultichar"
2082 Warn if a multicharacter constant (\fB'\s-1FOOF\s0'\fR) is used.  This is
2083 default.  To inhibit the warning messages, use \fB\-Wno-multichar\fR.
2084 Usually they indicate a typo in the user's code, as they have
2085 implementation-defined values, and should not be used in portable code.
2086 .Ip "\fB\-Wsystem-headers\fR" 4
2087 .IX Item "-Wsystem-headers"
2088 Print warning messages for constructs found in system header files.
2089 Warnings from system headers are normally suppressed, on the assumption
2090 that they usually do not indicate real problems and would only make the
2091 compiler output harder to read.  Using this command line option tells
2092 \&\s-1GCC\s0 to emit warnings from system headers as if they occurred in user
2093 code.  However, note that using \fB\-Wall\fR in conjunction with this
2094 option will \fInot\fR warn about unknown pragmas in system
2095 headers\-\-\-for that, \fB\-Wunknown-pragmas\fR must also be used.
2096 .PP
2097 The following \fB\-W...\fR options are not implied by \fB\-Wall\fR.
2098 Some of them warn about constructions that users generally do not
2099 consider questionable, but which occasionally you might wish to check
2100 for; others warn about constructions that are necessary or hard to avoid
2101 in some cases, and there is no simple way to modify the code to suppress
2102 the warning.
2103 .Ip "\fB\-W\fR" 4
2104 .IX Item "-W"
2105 Print extra warning messages for these events:
2106 .RS 4
2107 .Ip "\(bu" 4
2108 A function can return either with or without a value.  (Falling
2109 off the end of the function body is considered returning without
2110 a value.)  For example, this function would evoke such a
2111 warning:
2112 .Sp
2113 .Vb 5
2114 \&        foo (a)
2115 \&        {
2116 \&          if (a > 0)
2117 \&            return a;
2118 \&        }
2119 .Ve
2120 .Ip "\(bu" 4
2121 An expression-statement or the left-hand side of a comma expression
2122 contains no side effects.
2123 To suppress the warning, cast the unused expression to void.
2124 For example, an expression such as \fBx[i,j]\fR will cause a warning,
2125 but \fBx[(void)i,j]\fR will not.
2126 .Ip "\(bu" 4
2127 An unsigned value is compared against zero with \fB<\fR or \fB<=\fR.
2128 .Ip "\(bu" 4
2129 A comparison like \fBx<=y<=z\fR appears; this is equivalent to
2130 \&\fB(x<=y ? 1 : 0) <= z\fR, which is a different interpretation from
2131 that of ordinary mathematical notation.
2132 .Ip "\(bu" 4
2133 Storage-class specifiers like \f(CW\*(C`static\*(C'\fR are not the first things in
2134 a declaration.  According to the C Standard, this usage is obsolescent.
2135 .Ip "\(bu" 4
2136 The return type of a function has a type qualifier such as \f(CW\*(C`const\*(C'\fR.
2137 Such a type qualifier has no effect, since the value returned by a
2138 function is not an lvalue.  (But don't warn about the \s-1GNU\s0 extension of
2139 \&\f(CW\*(C`volatile void\*(C'\fR return types.  That extension will be warned about
2140 if \fB\-pedantic\fR is specified.)
2141 .Ip "\(bu" 4
2142 If \fB\-Wall\fR or \fB\-Wunused\fR is also specified, warn about unused
2143 arguments.
2144 .Ip "\(bu" 4
2145 A comparison between signed and unsigned values could produce an
2146 incorrect result when the signed value is converted to unsigned.
2147 (But don't warn if \fB\-Wno-sign-compare\fR is also specified.)
2148 .Ip "\(bu" 4
2149 An aggregate has a partly bracketed initializer.
2150 For example, the following code would evoke such a warning,
2151 because braces are missing around the initializer for \f(CW\*(C`x.h\*(C'\fR:
2152 .Sp
2153 .Vb 3
2154 \&        struct s { int f, g; };
2155 \&        struct t { struct s h; int i; };
2156 \&        struct t x = { 1, 2, 3 };
2157 .Ve
2158 .Ip "\(bu" 4
2159 An aggregate has an initializer which does not initialize all members.
2160 For example, the following code would cause such a warning, because
2161 \&\f(CW\*(C`x.h\*(C'\fR would be implicitly initialized to zero:
2162 .Sp
2163 .Vb 2
2164 \&        struct s { int f, g, h; };
2165 \&        struct s x = { 3, 4 };
2166 .Ve
2167 .RE
2168 .RS 4
2169 .RE
2170 .Ip "\fB\-Wfloat-equal\fR" 4
2171 .IX Item "-Wfloat-equal"
2172 Warn if floating point values are used in equality comparisons.
2173 .Sp
2174 The idea behind this is that sometimes it is convenient (for the
2175 programmer) to consider floating-point values as approximations to
2176 infinitely precise real numbers.  If you are doing this, then you need
2177 to compute (by analysing the code, or in some other way) the maximum or
2178 likely maximum error that the computation introduces, and allow for it
2179 when performing comparisons (and when producing output, but that's a
2180 different problem).  In particular, instead of testing for equality, you
2181 would check to see whether the two values have ranges that overlap; and
2182 this is done with the relational operators, so equality comparisons are
2183 probably mistaken.
2184 .Ip "\fB\-Wtraditional\fR (C only)" 4
2185 .IX Item "-Wtraditional (C only)"
2186 Warn about certain constructs that behave differently in traditional and
2187 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
2188 equivalent, and/or problematic constructs which should be avoided.
2189 .RS 4
2190 .Ip "\(bu" 4
2191 Macro parameters that appear within string literals in the macro body.
2192 In traditional C macro replacement takes place within string literals,
2193 but does not in \s-1ISO\s0 C.
2194 .Ip "\(bu" 4
2195 In traditional C, some preprocessor directives did not exist.
2196 Traditional preprocessors would only consider a line to be a directive
2197 if the \fB#\fR appeared in column 1 on the line.  Therefore
2198 \&\fB\-Wtraditional\fR warns about directives that traditional C
2199 understands but would ignore because the \fB#\fR does not appear as the
2200 first character on the line.  It also suggests you hide directives like
2201 \&\fB#pragma\fR not understood by traditional C by indenting them.  Some
2202 traditional implementations would not recognize \fB#elif\fR, so it
2203 suggests avoiding it altogether.
2204 .Ip "\(bu" 4
2205 A function-like macro that appears without arguments.
2206 .Ip "\(bu" 4
2207 The unary plus operator.
2208 .Ip "\(bu" 4
2209 The \fBU\fR integer constant suffix, or the \fBF\fR or \fBL\fR floating point
2210 constant suffixes.  (Traditional C does support the \fBL\fR suffix on integer
2211 constants.)  Note, these suffixes appear in macros defined in the system
2212 headers of most modern systems, e.g. the \fB_MIN\fR/\fB_MAX\fR macros in \f(CW\*(C`<limits.h>\*(C'\fR.
2213 Use of these macros in user code might normally lead to spurious
2214 warnings, however gcc's integrated preprocessor has enough context to
2215 avoid warning in these cases.
2216 .Ip "\(bu" 4
2217 A function declared external in one block and then used after the end of
2218 the block.
2219 .Ip "\(bu" 4
2220 A \f(CW\*(C`switch\*(C'\fR statement has an operand of type \f(CW\*(C`long\*(C'\fR.
2221 .Ip "\(bu" 4
2222 A non-\f(CW\*(C`static\*(C'\fR function declaration follows a \f(CW\*(C`static\*(C'\fR one.
2223 This construct is not accepted by some traditional C compilers.
2224 .Ip "\(bu" 4
2225 The \s-1ISO\s0 type of an integer constant has a different width or
2226 signedness from its traditional type.  This warning is only issued if
2227 the base of the constant is ten.  I.e. hexadecimal or octal values, which
2228 typically represent bit patterns, are not warned about.
2229 .Ip "\(bu" 4
2230 Usage of \s-1ISO\s0 string concatenation is detected.
2231 .Ip "\(bu" 4
2232 Initialization of automatic aggregates.
2233 .Ip "\(bu" 4
2234 Identifier conflicts with labels.  Traditional C lacks a separate
2235 namespace for labels.
2236 .Ip "\(bu" 4
2237 Initialization of unions.  If the initializer is zero, the warning is
2238 omitted.  This is done under the assumption that the zero initializer in
2239 user code appears conditioned on e.g. \f(CW\*(C`_\|_STDC_\|_\*(C'\fR to avoid missing
2240 initializer warnings and relies on default initialization to zero in the
2241 traditional C case.
2242 .Ip "\(bu" 4
2243 Conversions by prototypes between fixed/floating point values and vice
2244 versa.  The absence of these prototypes when compiling with traditional
2245 C would cause serious problems.  This is a subset of the possible
2246 conversion warnings, for the full set use \fB\-Wconversion\fR.
2247 .RE
2248 .RS 4
2249 .RE
2250 .Ip "\fB\-Wundef\fR" 4
2251 .IX Item "-Wundef"
2252 Warn if an undefined identifier is evaluated in an \fB#if\fR directive.
2253 .Ip "\fB\-Wshadow\fR" 4
2254 .IX Item "-Wshadow"
2255 Warn whenever a local variable shadows another local variable, parameter or
2256 global variable or whenever a built-in function is shadowed.
2257 .Ip "\fB\-Wlarger-than-\fR\fIlen\fR" 4
2258 .IX Item "-Wlarger-than-len"
2259 Warn whenever an object of larger than \fIlen\fR bytes is defined.
2260 .Ip "\fB\-Wpointer-arith\fR" 4
2261 .IX Item "-Wpointer-arith"
2262 Warn about anything that depends on the ``size of'' a function type or
2263 of \f(CW\*(C`void\*(C'\fR.  \s-1GNU\s0 C assigns these types a size of 1, for
2264 convenience in calculations with \f(CW\*(C`void *\*(C'\fR pointers and pointers
2265 to functions.
2266 .Ip "\fB\-Wbad-function-cast\fR (C only)" 4
2267 .IX Item "-Wbad-function-cast (C only)"
2268 Warn whenever a function call is cast to a non-matching type.
2269 For example, warn if \f(CW\*(C`int malloc()\*(C'\fR is cast to \f(CW\*(C`anything *\*(C'\fR.
2270 .Ip "\fB\-Wcast-qual\fR" 4
2271 .IX Item "-Wcast-qual"
2272 Warn whenever a pointer is cast so as to remove a type qualifier from
2273 the target type.  For example, warn if a \f(CW\*(C`const char *\*(C'\fR is cast
2274 to an ordinary \f(CW\*(C`char *\*(C'\fR.
2275 .Ip "\fB\-Wcast-align\fR" 4
2276 .IX Item "-Wcast-align"
2277 Warn whenever a pointer is cast such that the required alignment of the
2278 target is increased.  For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
2279 an \f(CW\*(C`int *\*(C'\fR on machines where integers can only be accessed at
2280 two- or four-byte boundaries.
2281 .Ip "\fB\-Wwrite-strings\fR" 4
2282 .IX Item "-Wwrite-strings"
2283 When compiling C, give string constants the type \f(CW\*(C`const
2284 char[\f(CIlength\f(CW]\*(C'\fR so that
2285 copying the address of one into a non-\f(CW\*(C`const\*(C'\fR \f(CW\*(C`char *\*(C'\fR
2286 pointer will get a warning; when compiling \*(C+, warn about the
2287 deprecated conversion from string constants to \f(CW\*(C`char *\*(C'\fR.
2288 These warnings will help you find at
2289 compile time code that can try to write into a string constant, but
2290 only if you have been very careful about using \f(CW\*(C`const\*(C'\fR in
2291 declarations and prototypes.  Otherwise, it will just be a nuisance;
2292 this is why we did not make \fB\-Wall\fR request these warnings.
2293 .Ip "\fB\-Wconversion\fR" 4
2294 .IX Item "-Wconversion"
2295 Warn if a prototype causes a type conversion that is different from what
2296 would happen to the same argument in the absence of a prototype.  This
2297 includes conversions of fixed point to floating and vice versa, and
2298 conversions changing the width or signedness of a fixed point argument
2299 except when the same as the default promotion.
2300 .Sp
2301 Also, warn if a negative integer constant expression is implicitly
2302 converted to an unsigned type.  For example, warn about the assignment
2303 \&\f(CW\*(C`x = \-1\*(C'\fR if \f(CW\*(C`x\*(C'\fR is unsigned.  But do not warn about explicit
2304 casts like \f(CW\*(C`(unsigned) \-1\*(C'\fR.
2305 .Ip "\fB\-Wsign-compare\fR" 4
2306 .IX Item "-Wsign-compare"
2307 Warn when a comparison between signed and unsigned values could produce
2308 an incorrect result when the signed value is converted to unsigned.
2309 This warning is also enabled by \fB\-W\fR; to get the other warnings
2310 of \fB\-W\fR without this warning, use \fB\-W \-Wno-sign-compare\fR.
2311 .Ip "\fB\-Waggregate-return\fR" 4
2312 .IX Item "-Waggregate-return"
2313 Warn if any functions that return structures or unions are defined or
2314 called.  (In languages where you can return an array, this also elicits
2315 a warning.)
2316 .Ip "\fB\-Wstrict-prototypes\fR (C only)" 4
2317 .IX Item "-Wstrict-prototypes (C only)"
2318 Warn if a function is declared or defined without specifying the
2319 argument types.  (An old-style function definition is permitted without
2320 a warning if preceded by a declaration which specifies the argument
2321 types.)
2322 .Ip "\fB\-Wmissing-prototypes\fR (C only)" 4
2323 .IX Item "-Wmissing-prototypes (C only)"
2324 Warn if a global function is defined without a previous prototype
2325 declaration.  This warning is issued even if the definition itself
2326 provides a prototype.  The aim is to detect global functions that fail
2327 to be declared in header files.
2328 .Ip "\fB\-Wmissing-declarations\fR" 4
2329 .IX Item "-Wmissing-declarations"
2330 Warn if a global function is defined without a previous declaration.
2331 Do so even if the definition itself provides a prototype.
2332 Use this option to detect global functions that are not declared in
2333 header files.
2334 .Ip "\fB\-Wmissing-noreturn\fR" 4
2335 .IX Item "-Wmissing-noreturn"
2336 Warn about functions which might be candidates for attribute \f(CW\*(C`noreturn\*(C'\fR.
2337 Note these are only possible candidates, not absolute ones.  Care should
2338 be taken to manually verify functions actually do not ever return before
2339 adding the \f(CW\*(C`noreturn\*(C'\fR attribute, otherwise subtle code generation
2340 bugs could be introduced.  You will not get a warning for \f(CW\*(C`main\*(C'\fR in
2341 hosted C environments.
2342 .Ip "\fB\-Wmissing-format-attribute\fR" 4
2343 .IX Item "-Wmissing-format-attribute"
2344 If \fB\-Wformat\fR is enabled, also warn about functions which might be
2345 candidates for \f(CW\*(C`format\*(C'\fR attributes.  Note these are only possible
2346 candidates, not absolute ones.  \s-1GCC\s0 will guess that \f(CW\*(C`format\*(C'\fR
2347 attributes might be appropriate for any function that calls a function
2348 like \f(CW\*(C`vprintf\*(C'\fR or \f(CW\*(C`vscanf\*(C'\fR, but this might not always be the
2349 case, and some functions for which \f(CW\*(C`format\*(C'\fR attributes are
2350 appropriate may not be detected.  This option has no effect unless
2351 \&\fB\-Wformat\fR is enabled (possibly by \fB\-Wall\fR).
2352 .Ip "\fB\-Wno-deprecated-declarations\fR" 4
2353 .IX Item "-Wno-deprecated-declarations"
2354 Do not warn about uses of functions, variables, and types marked as
2355 deprecated by using the \f(CW\*(C`deprecated\*(C'\fR attribute.
2356 (@pxref{Function Attributes}, \f(CW@pxref\fR{Variable Attributes},
2357 \&\f(CW@pxref\fR{Type Attributes}.)
2358 .Ip "\fB\-Wpacked\fR" 4
2359 .IX Item "-Wpacked"
2360 Warn if a structure is given the packed attribute, but the packed
2361 attribute has no effect on the layout or size of the structure.
2362 Such structures may be mis-aligned for little benefit.  For
2363 instance, in this code, the variable \f(CW\*(C`f.x\*(C'\fR in \f(CW\*(C`struct bar\*(C'\fR
2364 will be misaligned even though \f(CW\*(C`struct bar\*(C'\fR does not itself
2365 have the packed attribute:
2366 .Sp
2367 .Vb 8
2368 \&        struct foo {
2369 \&          int x;
2370 \&          char a, b, c, d;
2371 \&        } __attribute__((packed));
2372 \&        struct bar {
2373 \&          char z;
2374 \&          struct foo f;
2375 \&        };
2376 .Ve
2377 .Ip "\fB\-Wpadded\fR" 4
2378 .IX Item "-Wpadded"
2379 Warn if padding is included in a structure, either to align an element
2380 of the structure or to align the whole structure.  Sometimes when this
2381 happens it is possible to rearrange the fields of the structure to
2382 reduce the padding and so make the structure smaller.
2383 .Ip "\fB\-Wredundant-decls\fR" 4
2384 .IX Item "-Wredundant-decls"
2385 Warn if anything is declared more than once in the same scope, even in
2386 cases where multiple declaration is valid and changes nothing.
2387 .Ip "\fB\-Wnested-externs\fR (C only)" 4
2388 .IX Item "-Wnested-externs (C only)"
2389 Warn if an \f(CW\*(C`extern\*(C'\fR declaration is encountered within a function.
2390 .Ip "\fB\-Wunreachable-code\fR" 4
2391 .IX Item "-Wunreachable-code"
2392 Warn if the compiler detects that code will never be executed.
2393 .Sp
2394 This option is intended to warn when the compiler detects that at
2395 least a whole line of source code will never be executed, because
2396 some condition is never satisfied or because it is after a
2397 procedure that never returns.
2398 .Sp
2399 It is possible for this option to produce a warning even though there
2400 are circumstances under which part of the affected line can be executed,
2401 so care should be taken when removing apparently-unreachable code.
2402 .Sp
2403 For instance, when a function is inlined, a warning may mean that the
2404 line is unreachable in only one inlined copy of the function.
2405 .Sp
2406 This option is not made part of \fB\-Wall\fR because in a debugging
2407 version of a program there is often substantial code which checks
2408 correct functioning of the program and is, hopefully, unreachable
2409 because the program does work.  Another common use of unreachable
2410 code is to provide behavior which is selectable at compile-time.
2411 .Ip "\fB\-Winline\fR" 4
2412 .IX Item "-Winline"
2413 Warn if a function can not be inlined and it was declared as inline.
2414 .Ip "\fB\-Wlong-long\fR" 4
2415 .IX Item "-Wlong-long"
2416 Warn if \fBlong long\fR type is used.  This is default.  To inhibit
2417 the warning messages, use \fB\-Wno-long-long\fR.  Flags
2418 \&\fB\-Wlong-long\fR and \fB\-Wno-long-long\fR are taken into account
2419 only when \fB\-pedantic\fR flag is used.
2420 .Ip "\fB\-Wdisabled-optimization\fR" 4
2421 .IX Item "-Wdisabled-optimization"
2422 Warn if a requested optimization pass is disabled.  This warning does
2423 not generally indicate that there is anything wrong with your code; it
2424 merely indicates that \s-1GCC\s0's optimizers were unable to handle the code
2425 effectively.  Often, the problem is that your code is too big or too
2426 complex; \s-1GCC\s0 will refuse to optimize programs when the optimization
2427 itself is likely to take inordinate amounts of time.
2428 .Ip "\fB\-Werror\fR" 4
2429 .IX Item "-Werror"
2430 Make all warnings into errors.
2431 .Sh "Options for Debugging Your Program or \s-1GCC\s0"
2432 .IX Subsection "Options for Debugging Your Program or GCC"
2433 \&\s-1GCC\s0 has various special options that are used for debugging
2434 either your program or \s-1GCC:\s0
2435 .Ip "\fB\-g\fR" 4
2436 .IX Item "-g"
2437 Produce debugging information in the operating system's native format
2438 (stabs, \s-1COFF\s0, \s-1XCOFF\s0, or \s-1DWARF\s0).  \s-1GDB\s0 can work with this debugging
2439 information.
2440 .Sp
2441 On most systems that use stabs format, \fB\-g\fR enables use of extra
2442 debugging information that only \s-1GDB\s0 can use; this extra information
2443 makes debugging work better in \s-1GDB\s0 but will probably make other debuggers
2444 crash or
2445 refuse to read the program.  If you want to control for certain whether
2446 to generate the extra information, use \fB\-gstabs+\fR, \fB\-gstabs\fR,
2447 \&\fB\-gxcoff+\fR, \fB\-gxcoff\fR, \fB\-gdwarf-1+\fR, \fB\-gdwarf-1\fR,
2448 or \fB\-gvms\fR (see below).
2449 .Sp
2450 Unlike most other C compilers, \s-1GCC\s0 allows you to use \fB\-g\fR with
2451 \&\fB\-O\fR.  The shortcuts taken by optimized code may occasionally
2452 produce surprising results: some variables you declared may not exist
2453 at all; flow of control may briefly move where you did not expect it;
2454 some statements may not be executed because they compute constant
2455 results or their values were already at hand; some statements may
2456 execute in different places because they were moved out of loops.
2457 .Sp
2458 Nevertheless it proves possible to debug optimized output.  This makes
2459 it reasonable to use the optimizer for programs that might have bugs.
2460 .Sp
2461 The following options are useful when \s-1GCC\s0 is generated with the
2462 capability for more than one debugging format.
2463 .Ip "\fB\-ggdb\fR" 4
2464 .IX Item "-ggdb"
2465 Produce debugging information for use by \s-1GDB\s0.  This means to use the
2466 most expressive format available (\s-1DWARF\s0 2, stabs, or the native format
2467 if neither of those are supported), including \s-1GDB\s0 extensions if at all
2468 possible.
2469 .Ip "\fB\-gstabs\fR" 4
2470 .IX Item "-gstabs"
2471 Produce debugging information in stabs format (if that is supported),
2472 without \s-1GDB\s0 extensions.  This is the format used by \s-1DBX\s0 on most \s-1BSD\s0
2473 systems.  On \s-1MIPS\s0, Alpha and System V Release 4 systems this option
2474 produces stabs debugging output which is not understood by \s-1DBX\s0 or \s-1SDB\s0.
2475 On System V Release 4 systems this option requires the \s-1GNU\s0 assembler.
2476 .Ip "\fB\-gstabs+\fR" 4
2477 .IX Item "-gstabs+"
2478 Produce debugging information in stabs format (if that is supported),
2479 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
2480 use of these extensions is likely to make other debuggers crash or
2481 refuse to read the program.
2482 .Ip "\fB\-gcoff\fR" 4
2483 .IX Item "-gcoff"
2484 Produce debugging information in \s-1COFF\s0 format (if that is supported).
2485 This is the format used by \s-1SDB\s0 on most System V systems prior to
2486 System V Release 4.
2487 .Ip "\fB\-gxcoff\fR" 4
2488 .IX Item "-gxcoff"
2489 Produce debugging information in \s-1XCOFF\s0 format (if that is supported).
2490 This is the format used by the \s-1DBX\s0 debugger on \s-1IBM\s0 \s-1RS/6000\s0 systems.
2491 .Ip "\fB\-gxcoff+\fR" 4
2492 .IX Item "-gxcoff+"
2493 Produce debugging information in \s-1XCOFF\s0 format (if that is supported),
2494 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
2495 use of these extensions is likely to make other debuggers crash or
2496 refuse to read the program, and may cause assemblers other than the \s-1GNU\s0
2497 assembler (\s-1GAS\s0) to fail with an error.
2498 .Ip "\fB\-gdwarf\fR" 4
2499 .IX Item "-gdwarf"
2500 Produce debugging information in \s-1DWARF\s0 version 1 format (if that is
2501 supported).  This is the format used by \s-1SDB\s0 on most System V Release 4
2502 systems.
2503 .Ip "\fB\-gdwarf+\fR" 4
2504 .IX Item "-gdwarf+"
2505 Produce debugging information in \s-1DWARF\s0 version 1 format (if that is
2506 supported), using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger
2507 (\s-1GDB\s0).  The use of these extensions is likely to make other debuggers
2508 crash or refuse to read the program.
2509 .Ip "\fB\-gdwarf-2\fR" 4
2510 .IX Item "-gdwarf-2"
2511 Produce debugging information in \s-1DWARF\s0 version 2 format (if that is
2512 supported).  This is the format used by \s-1DBX\s0 on \s-1IRIX\s0 6.
2513 .Ip "\fB\-gvms\fR" 4
2514 .IX Item "-gvms"
2515 Produce debugging information in \s-1VMS\s0 debug format (if that is
2516 supported).  This is the format used by \s-1DEBUG\s0 on \s-1VMS\s0 systems.
2517 .Ip "\fB\-g\fR\fIlevel\fR" 4
2518 .IX Item "-glevel"
2519 .PD 0
2520 .Ip "\fB\-ggdb\fR\fIlevel\fR" 4
2521 .IX Item "-ggdblevel"
2522 .Ip "\fB\-gstabs\fR\fIlevel\fR" 4
2523 .IX Item "-gstabslevel"
2524 .Ip "\fB\-gcoff\fR\fIlevel\fR" 4
2525 .IX Item "-gcofflevel"
2526 .Ip "\fB\-gxcoff\fR\fIlevel\fR" 4
2527 .IX Item "-gxcofflevel"
2528 .Ip "\fB\-gvms\fR\fIlevel\fR" 4
2529 .IX Item "-gvmslevel"
2530 .PD
2531 Request debugging information and also use \fIlevel\fR to specify how
2532 much information.  The default level is 2.
2533 .Sp
2534 Level 1 produces minimal information, enough for making backtraces in
2535 parts of the program that you don't plan to debug.  This includes
2536 descriptions of functions and external variables, but no information
2537 about local variables and no line numbers.
2538 .Sp
2539 Level 3 includes extra information, such as all the macro definitions
2540 present in the program.  Some debuggers support macro expansion when
2541 you use \fB\-g3\fR.
2542 .Sp
2543 Note that in order to avoid confusion between \s-1DWARF1\s0 debug level 2,
2544 and \s-1DWARF2\s0, neither \fB\-gdwarf\fR nor \fB\-gdwarf-2\fR accept
2545 a concatenated debug level.  Instead use an additional \fB\-g\fR\fIlevel\fR
2546 option to change the debug level for \s-1DWARF1\s0 or \s-1DWARF2\s0.
2547 .Ip "\fB\-p\fR" 4
2548 .IX Item "-p"
2549 Generate extra code to write profile information suitable for the
2550 analysis program \f(CW\*(C`prof\*(C'\fR.  You must use this option when compiling
2551 the source files you want data about, and you must also use it when
2552 linking.
2553 .Ip "\fB\-pg\fR" 4
2554 .IX Item "-pg"
2555 Generate extra code to write profile information suitable for the
2556 analysis program \f(CW\*(C`gprof\*(C'\fR.  You must use this option when compiling
2557 the source files you want data about, and you must also use it when
2558 linking.
2559 .Ip "\fB\-Q\fR" 4
2560 .IX Item "-Q"
2561 Makes the compiler print out each function name as it is compiled, and
2562 print some statistics about each pass when it finishes.
2563 .Ip "\fB\-ftime-report\fR" 4
2564 .IX Item "-ftime-report"
2565 Makes the compiler print some statistics about the time consumed by each
2566 pass when it finishes.
2567 .Ip "\fB\-fmem-report\fR" 4
2568 .IX Item "-fmem-report"
2569 Makes the compiler print some statistics about permanent memory
2570 allocation when it finishes.
2571 .Ip "\fB\-fprofile-arcs\fR" 4
2572 .IX Item "-fprofile-arcs"
2573 Instrument \fIarcs\fR during compilation to generate coverage data
2574 or for profile-directed block ordering.  During execution the program
2575 records how many times each branch is executed and how many times it is
2576 taken.  When the compiled program exits it saves this data to a file
2577 called \fI\fIsourcename\fI.da\fR for each source file.
2578 .Sp
2579 For profile-directed block ordering, compile the program with
2580 \&\fB\-fprofile-arcs\fR plus optimization and code generation options,
2581 generate the arc profile information by running the program on a
2582 selected workload, and then compile the program again with the same
2583 optimization and code generation options plus
2584 \&\fB\-fbranch-probabilities\fR.
2585 .Sp
2586 The other use of \fB\-fprofile-arcs\fR is for use with \f(CW\*(C`gcov\*(C'\fR,
2587 when it is used with the \fB\-ftest-coverage\fR option.
2588 .Sp
2589 With \fB\-fprofile-arcs\fR, for each function of your program \s-1GCC\s0
2590 creates a program flow graph, then finds a spanning tree for the graph.
2591 Only arcs that are not on the spanning tree have to be instrumented: the
2592 compiler adds code to count the number of times that these arcs are
2593 executed.  When an arc is the only exit or only entrance to a block, the
2594 instrumentation code can be added to the block; otherwise, a new basic
2595 block must be created to hold the instrumentation code.
2596 .Ip "\fB\-ftest-coverage\fR" 4
2597 .IX Item "-ftest-coverage"
2598 Create data files for the \fBgcov\fR code-coverage utility.
2599 The data file names begin with the name of your source file:
2600 .RS 4
2601 .Ip "\fIsourcename\fR\fB.bb\fR" 4
2602 .IX Item "sourcename.bb"
2603 A mapping from basic blocks to line numbers, which \f(CW\*(C`gcov\*(C'\fR uses to
2604 associate basic block execution counts with line numbers.
2605 .Ip "\fIsourcename\fR\fB.bbg\fR" 4
2606 .IX Item "sourcename.bbg"
2607 A list of all arcs in the program flow graph.  This allows \f(CW\*(C`gcov\*(C'\fR
2608 to reconstruct the program flow graph, so that it can compute all basic
2609 block and arc execution counts from the information in the
2610 \&\f(CW\*(C`\f(CIsourcename\f(CW.da\*(C'\fR file.
2611 .RE
2612 .RS 4
2613 .Sp
2614 Use \fB\-ftest-coverage\fR with \fB\-fprofile-arcs\fR; the latter
2615 option adds instrumentation to the program, which then writes
2616 execution counts to another data file:
2617 .RS 4
2618 .RE
2619 .Ip "\fIsourcename\fR\fB.da\fR" 4
2620 .IX Item "sourcename.da"
2621 Runtime arc execution counts, used in conjunction with the arc
2622 information in the file \f(CW\*(C`\f(CIsourcename\f(CW.bbg\*(C'\fR.
2623 .RE
2624 .RS 4
2625 .Sp
2626 Coverage data will map better to the source files if
2627 \&\fB\-ftest-coverage\fR is used without optimization.
2628 .RE
2629 .Ip "\fB\-d\fR\fIletters\fR" 4
2630 .IX Item "-dletters"
2631 Says to make debugging dumps during compilation at times specified by
2632 \&\fIletters\fR.  This is used for debugging the compiler.  The file names
2633 for most of the dumps are made by appending a pass number and a word to
2634 the source file name (e.g.  \fIfoo.c.00.rtl\fR or \fIfoo.c.01.sibling\fR).
2635 Here are the possible letters for use in \fIletters\fR, and their meanings:
2636 .RS 4
2637 .Ip "\fBA\fR" 4
2638 .IX Item "A"
2639 Annotate the assembler output with miscellaneous debugging information.
2640 .Ip "\fBb\fR" 4
2641 .IX Item "b"
2642 Dump after computing branch probabilities, to \fI\fIfile\fI.14.bp\fR.
2643 .Ip "\fBB\fR" 4
2644 .IX Item "B"
2645 Dump after block reordering, to \fI\fIfile\fI.29.bbro\fR.
2646 .Ip "\fBc\fR" 4
2647 .IX Item "c"
2648 Dump after instruction combination, to the file \fI\fIfile\fI.16.combine\fR.
2649 .Ip "\fBC\fR" 4
2650 .IX Item "C"
2651 Dump after the first if conversion, to the file \fI\fIfile\fI.17.ce\fR.
2652 .Ip "\fBd\fR" 4
2653 .IX Item "d"
2654 Dump after delayed branch scheduling, to \fI\fIfile\fI.31.dbr\fR.
2655 .Ip "\fBD\fR" 4
2656 .IX Item "D"
2657 Dump all macro definitions, at the end of preprocessing, in addition to
2658 normal output.
2659 .Ip "\fBe\fR" 4
2660 .IX Item "e"
2661 Dump after \s-1SSA\s0 optimizations, to \fI\fIfile\fI.04.ssa\fR and
2662 \&\fI\fIfile\fI.07.ussa\fR.
2663 .Ip "\fBE\fR" 4
2664 .IX Item "E"
2665 Dump after the second if conversion, to \fI\fIfile\fI.26.ce2\fR.
2666 .Ip "\fBf\fR" 4
2667 .IX Item "f"
2668 Dump after life analysis, to \fI\fIfile\fI.15.life\fR.
2669 .Ip "\fBF\fR" 4
2670 .IX Item "F"
2671 Dump after purging \f(CW\*(C`ADDRESSOF\*(C'\fR codes, to \fI\fIfile\fI.09.addressof\fR.
2672 .Ip "\fBg\fR" 4
2673 .IX Item "g"
2674 Dump after global register allocation, to \fI\fIfile\fI.21.greg\fR.
2675 .Ip "\fBh\fR" 4
2676 .IX Item "h"
2677 Dump after finalization of \s-1EH\s0 handling code, to \fI\fIfile\fI.02.eh\fR.
2678 .Ip "\fBk\fR" 4
2679 .IX Item "k"
2680 Dump after reg-to-stack conversion, to \fI\fIfile\fI.28.stack\fR.
2681 .Ip "\fBo\fR" 4
2682 .IX Item "o"
2683 Dump after post-reload optimizations, to \fI\fIfile\fI.22.postreload\fR.
2684 .Ip "\fBG\fR" 4
2685 .IX Item "G"
2686 Dump after \s-1GCSE\s0, to \fI\fIfile\fI.10.gcse\fR.
2687 .Ip "\fBi\fR" 4
2688 .IX Item "i"
2689 Dump after sibling call optimizations, to \fI\fIfile\fI.01.sibling\fR.
2690 .Ip "\fBj\fR" 4
2691 .IX Item "j"
2692 Dump after the first jump optimization, to \fI\fIfile\fI.03.jump\fR.
2693 .Ip "\fBk\fR" 4
2694 .IX Item "k"
2695 Dump after conversion from registers to stack, to \fI\fIfile\fI.32.stack\fR.
2696 .Ip "\fBl\fR" 4
2697 .IX Item "l"
2698 Dump after local register allocation, to \fI\fIfile\fI.20.lreg\fR.
2699 .Ip "\fBL\fR" 4
2700 .IX Item "L"
2701 Dump after loop optimization, to \fI\fIfile\fI.11.loop\fR.
2702 .Ip "\fBM\fR" 4
2703 .IX Item "M"
2704 Dump after performing the machine dependent reorganisation pass, to
2705 \&\fI\fIfile\fI.30.mach\fR.
2706 .Ip "\fBn\fR" 4
2707 .IX Item "n"
2708 Dump after register renumbering, to \fI\fIfile\fI.25.rnreg\fR.
2709 .Ip "\fBN\fR" 4
2710 .IX Item "N"
2711 Dump after the register move pass, to \fI\fIfile\fI.18.regmove\fR.
2712 .Ip "\fBr\fR" 4
2713 .IX Item "r"
2714 Dump after \s-1RTL\s0 generation, to \fI\fIfile\fI.00.rtl\fR.
2715 .Ip "\fBR\fR" 4
2716 .IX Item "R"
2717 Dump after the second scheduling pass, to \fI\fIfile\fI.27.sched2\fR.
2718 .Ip "\fBs\fR" 4
2719 .IX Item "s"
2720 Dump after \s-1CSE\s0 (including the jump optimization that sometimes follows
2721 \&\s-1CSE\s0), to \fI\fIfile\fI.08.cse\fR.
2722 .Ip "\fBS\fR" 4
2723 .IX Item "S"
2724 Dump after the first scheduling pass, to \fI\fIfile\fI.19.sched\fR.
2725 .Ip "\fBt\fR" 4
2726 .IX Item "t"
2727 Dump after the second \s-1CSE\s0 pass (including the jump optimization that
2728 sometimes follows \s-1CSE\s0), to \fI\fIfile\fI.12.cse2\fR.
2729 .Ip "\fBw\fR" 4
2730 .IX Item "w"
2731 Dump after the second flow pass, to \fI\fIfile\fI.23.flow2\fR.
2732 .Ip "\fBX\fR" 4
2733 .IX Item "X"
2734 Dump after \s-1SSA\s0 dead code elimination, to \fI\fIfile\fI.06.ssadce\fR.
2735 .Ip "\fBz\fR" 4
2736 .IX Item "z"
2737 Dump after the peephole pass, to \fI\fIfile\fI.24.peephole2\fR.
2738 .Ip "\fBa\fR" 4
2739 .IX Item "a"
2740 Produce all the dumps listed above.
2741 .Ip "\fBm\fR" 4
2742 .IX Item "m"
2743 Print statistics on memory usage, at the end of the run, to
2744 standard error.
2745 .Ip "\fBp\fR" 4
2746 .IX Item "p"
2747 Annotate the assembler output with a comment indicating which
2748 pattern and alternative was used.  The length of each instruction is
2749 also printed.
2750 .Ip "\fBP\fR" 4
2751 .IX Item "P"
2752 Dump the \s-1RTL\s0 in the assembler output as a comment before each instruction.
2753 Also turns on \fB\-dp\fR annotation.
2754 .Ip "\fBv\fR" 4
2755 .IX Item "v"
2756 For each of the other indicated dump files (except for
2757 \&\fI\fIfile\fI.00.rtl\fR), dump a representation of the control flow graph
2758 suitable for viewing with \s-1VCG\s0 to \fI\fIfile\fI.\fIpass\fI.vcg\fR.
2759 .Ip "\fBx\fR" 4
2760 .IX Item "x"
2761 Just generate \s-1RTL\s0 for a function instead of compiling it.  Usually used
2762 with \fBr\fR.
2763 .Ip "\fBy\fR" 4
2764 .IX Item "y"
2765 Dump debugging information during parsing, to standard error.
2766 .RE
2767 .RS 4
2768 .RE
2769 .Ip "\fB\-fdump-unnumbered\fR" 4
2770 .IX Item "-fdump-unnumbered"
2771 When doing debugging dumps (see \fB\-d\fR option above), suppress instruction
2772 numbers and line number note output.  This makes it more feasible to
2773 use diff on debugging dumps for compiler invocations with different
2774 options, in particular with and without \fB\-g\fR.
2775 .Ip "\fB\-fdump-translation-unit\fR (C and \*(C+ only)" 4
2776 .IX Item "-fdump-translation-unit (C and  only)"
2777 .PD 0
2778 .Ip "\fB\-fdump-translation-unit-\fR\fIoptions\fR\fB \fR(C and \*(C+ only)" 4
2779 .IX Item "-fdump-translation-unit-options (C and  only)"
2780 .PD
2781 Dump a representation of the tree structure for the entire translation
2782 unit to a file.  The file name is made by appending \fI.tu\fR to the
2783 source file name.  If the \fB-\fR\fIoptions\fR form is used, \fIoptions\fR
2784 controls the details of the dump as described for the
2785 \&\fB\-fdump-tree\fR options.
2786 .Ip "\fB\-fdump-class-hierarchy\fR (\*(C+ only)" 4
2787 .IX Item "-fdump-class-hierarchy ( only)"
2788 .PD 0
2789 .Ip "\fB\-fdump-class-hierarchy-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
2790 .IX Item "-fdump-class-hierarchy-options ( only)"
2791 .PD
2792 Dump a representation of each class's hierarchy and virtual function
2793 table layout to a file.  The file name is made by appending \fI.class\fR
2794 to the source file name.  If the \fB-\fR\fIoptions\fR form is used,
2795 \&\fIoptions\fR controls the details of the dump as described for the
2796 \&\fB\-fdump-tree\fR options.
2797 .Ip "\fB\-fdump-tree-\fR\fIswitch\fR\fB \fR(\*(C+ only)" 4
2798 .IX Item "-fdump-tree-switch ( only)"
2799 .PD 0
2800 .Ip "\fB\-fdump-tree-\fR\fIswitch\fR\fB-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
2801 .IX Item "-fdump-tree-switch-options ( only)"
2802 .PD
2803 Control the dumping at various stages of processing the intermediate
2804 language tree to a file.  The file name is generated by appending a switch
2805 specific suffix to the source file name.  If the \fB-\fR\fIoptions\fR
2806 form is used, \fIoptions\fR is a list of \fB-\fR separated options that
2807 control the details of the dump. Not all options are applicable to all
2808 dumps, those which are not meaningful will be ignored. The following
2809 options are available
2810 .RS 4
2811 .Ip "\fBaddress\fR" 4
2812 .IX Item "address"
2813 Print the address of each node.  Usually this is not meaningful as it
2814 changes according to the environment and source file. Its primary use
2815 is for tying up a dump file with a debug environment.
2816 .Ip "\fBslim\fR" 4
2817 .IX Item "slim"
2818 Inhibit dumping of members of a scope or body of a function merely
2819 because that scope has been reached. Only dump such items when they
2820 are directly reachable by some other path.
2821 .Ip "\fBall\fR" 4
2822 .IX Item "all"
2823 Turn on all options.
2824 .RE
2825 .RS 4
2826 .Sp
2827 The following tree dumps are possible:
2828 .RS 4
2829 .RE
2830 .Ip "\fBoriginal\fR" 4
2831 .IX Item "original"
2832 Dump before any tree based optimization, to \fI\fIfile\fI.original\fR.
2833 .Ip "\fBoptimized\fR" 4
2834 .IX Item "optimized"
2835 Dump after all tree based optimization, to \fI\fIfile\fI.optimized\fR.
2836 .Ip "\fBinlined\fR" 4
2837 .IX Item "inlined"
2838 Dump after function inlining, to \fI\fIfile\fI.inlined\fR.
2839 .RE
2840 .RS 4
2841 .RE
2842 .Ip "\fB\-fsched-verbose=\fR\fIn\fR" 4
2843 .IX Item "-fsched-verbose=n"
2844 On targets that use instruction scheduling, this option controls the
2845 amount of debugging output the scheduler prints.  This information is
2846 written to standard error, unless \fB\-dS\fR or \fB\-dR\fR is
2847 specified, in which case it is output to the usual dump
2848 listing file, \fI.sched\fR or \fI.sched2\fR respectively.  However
2849 for \fIn\fR greater than nine, the output is always printed to standard
2850 error.
2851 .Sp
2852 For \fIn\fR greater than zero, \fB\-fsched-verbose\fR outputs the
2853 same information as \fB\-dRS\fR.  For \fIn\fR greater than one, it
2854 also output basic block probabilities, detailed ready list information
2855 and unit/insn info.  For \fIn\fR greater than two, it includes \s-1RTL\s0
2856 at abort point, control-flow and regions info.  And for \fIn\fR over
2857 four, \fB\-fsched-verbose\fR also includes dependence info.
2858 .Ip "\fB\-fpretend-float\fR" 4
2859 .IX Item "-fpretend-float"
2860 When running a cross-compiler, pretend that the target machine uses the
2861 same floating point format as the host machine.  This causes incorrect
2862 output of the actual floating constants, but the actual instruction
2863 sequence will probably be the same as \s-1GCC\s0 would make when running on
2864 the target machine.
2865 .Ip "\fB\-save-temps\fR" 4
2866 .IX Item "-save-temps"
2867 Store the usual ``temporary'' intermediate files permanently; place them
2868 in the current directory and name them based on the source file.  Thus,
2869 compiling \fIfoo.c\fR with \fB\-c \-save-temps\fR would produce files
2870 \&\fIfoo.i\fR and \fIfoo.s\fR, as well as \fIfoo.o\fR.  This creates a
2871 preprocessed \fIfoo.i\fR output file even though the compiler now
2872 normally uses an integrated preprocessor.
2873 .Ip "\fB\-time\fR" 4
2874 .IX Item "-time"
2875 Report the \s-1CPU\s0 time taken by each subprocess in the compilation
2876 sequence.  For C source files, this is the compiler proper and assembler
2877 (plus the linker if linking is done).  The output looks like this:
2878 .Sp
2879 .Vb 2
2880 \&        # cc1 0.12 0.01
2881 \&        # as 0.00 0.01
2882 .Ve
2883 The first number on each line is the ``user time,'' that is time spent
2884 executing the program itself.  The second number is ``system time,''
2885 time spent executing operating system routines on behalf of the program.
2886 Both numbers are in seconds.
2887 .Ip "\fB\-print-file-name=\fR\fIlibrary\fR" 4
2888 .IX Item "-print-file-name=library"
2889 Print the full absolute name of the library file \fIlibrary\fR that
2890 would be used when linking\-\-\-and don't do anything else.  With this
2891 option, \s-1GCC\s0 does not compile or link anything; it just prints the
2892 file name.
2893 .Ip "\fB\-print-multi-directory\fR" 4
2894 .IX Item "-print-multi-directory"
2895 Print the directory name corresponding to the multilib selected by any
2896 other switches present in the command line.  This directory is supposed
2897 to exist in \fB\s-1GCC_EXEC_PREFIX\s0\fR.
2898 .Ip "\fB\-print-multi-lib\fR" 4
2899 .IX Item "-print-multi-lib"
2900 Print the mapping from multilib directory names to compiler switches
2901 that enable them.  The directory name is separated from the switches by
2902 \&\fB;\fR, and each switch starts with an \fB@} instead of the
2903 \&\f(CB@samp\fB{-\fR, without spaces between multiple switches.  This is supposed to
2904 ease shell-processing.
2905 .Ip "\fB\-print-prog-name=\fR\fIprogram\fR" 4
2906 .IX Item "-print-prog-name=program"
2907 Like \fB\-print-file-name\fR, but searches for a program such as \fBcpp\fR.
2908 .Ip "\fB\-print-libgcc-file-name\fR" 4
2909 .IX Item "-print-libgcc-file-name"
2910 Same as \fB\-print-file-name=libgcc.a\fR.
2911 .Sp
2912 This is useful when you use \fB\-nostdlib\fR or \fB\-nodefaultlibs\fR
2913 but you do want to link with \fIlibgcc.a\fR.  You can do
2914 .Sp
2915 .Vb 1
2916 \&        gcc -nostdlib <files>... `gcc -print-libgcc-file-name`
2917 .Ve
2918 .Ip "\fB\-print-search-dirs\fR" 4
2919 .IX Item "-print-search-dirs"
2920 Print the name of the configured installation directory and a list of
2921 program and library directories gcc will search\-\-\-and don't do anything else.
2922 .Sp
2923 This is useful when gcc prints the error message
2924 \&\fBinstallation problem, cannot exec cpp0: No such file or directory\fR.
2925 To resolve this you either need to put \fIcpp0\fR and the other compiler
2926 components where gcc expects to find them, or you can set the environment
2927 variable \fB\s-1GCC_EXEC_PREFIX\s0\fR to the directory where you installed them.
2928 Don't forget the trailing '/'.
2929 .Ip "\fB\-dumpmachine\fR" 4
2930 .IX Item "-dumpmachine"
2931 Print the compiler's target machine (for example,
2932 \&\fBi686\-pc-linux-gnu\fR)\-\-\-and don't do anything else.
2933 .Ip "\fB\-dumpversion\fR" 4
2934 .IX Item "-dumpversion"
2935 Print the compiler version (for example, \fB3.0\fR)\-\-\-and don't do
2936 anything else.
2937 .Ip "\fB\-dumpspecs\fR" 4
2938 .IX Item "-dumpspecs"
2939 Print the compiler's built-in specs\-\-\-and don't do anything else.  (This
2940 is used when \s-1GCC\s0 itself is being built.)  
2941 .Sh "Options That Control Optimization"
2942 .IX Subsection "Options That Control Optimization"
2943 These options control various sorts of optimizations:
2944 .Ip "\fB\-O\fR" 4
2945 .IX Item "-O"
2946 .PD 0
2947 .Ip "\fB\-O1\fR" 4
2948 .IX Item "-O1"
2949 .PD
2950 Optimize.  Optimizing compilation takes somewhat more time, and a lot
2951 more memory for a large function.
2952 .Sp
2953 Without \fB\-O\fR, the compiler's goal is to reduce the cost of
2954 compilation and to make debugging produce the expected results.
2955 Statements are independent: if you stop the program with a breakpoint
2956 between statements, you can then assign a new value to any variable or
2957 change the program counter to any other statement in the function and
2958 get exactly the results you would expect from the source code.
2959 .Sp
2960 With \fB\-O\fR, the compiler tries to reduce code size and execution
2961 time, without performing any optimizations that take a great deal of
2962 compilation time.
2963 .Ip "\fB\-O2\fR" 4
2964 .IX Item "-O2"
2965 Optimize even more.  \s-1GCC\s0 performs nearly all supported optimizations
2966 that do not involve a space-speed tradeoff.  The compiler does not
2967 perform loop unrolling or function inlining when you specify \fB\-O2\fR.
2968 As compared to \fB\-O\fR, this option increases both compilation time
2969 and the performance of the generated code.
2970 .Sp
2971 \&\fB\-O2\fR turns on all optional optimizations except for loop unrolling,
2972 function inlining, and register renaming.  It also turns on the
2973 \&\fB\-fforce-mem\fR option on all machines and frame pointer elimination
2974 on machines where doing so does not interfere with debugging.
2975 .Sp
2976 Please note the warning under \fB\-fgcse\fR about
2977 invoking \fB\-O2\fR on programs that use computed gotos.
2978 .Ip "\fB\-O3\fR" 4
2979 .IX Item "-O3"
2980 Optimize yet more.  \fB\-O3\fR turns on all optimizations specified by
2981 \&\fB\-O2\fR and also turns on the \fB\-finline-functions\fR and
2982 \&\fB\-frename-registers\fR options.
2983 .Ip "\fB\-O0\fR" 4
2984 .IX Item "-O0"
2985 Do not optimize.
2986 .Ip "\fB\-Os\fR" 4
2987 .IX Item "-Os"
2988 Optimize for size.  \fB\-Os\fR enables all \fB\-O2\fR optimizations that
2989 do not typically increase code size.  It also performs further
2990 optimizations designed to reduce code size.
2991 .Sp
2992 If you use multiple \fB\-O\fR options, with or without level numbers,
2993 the last such option is the one that is effective.
2994 .PP
2995 Options of the form \fB\-f\fR\fIflag\fR specify machine-independent
2996 flags.  Most flags have both positive and negative forms; the negative
2997 form of \fB\-ffoo\fR would be \fB\-fno-foo\fR.  In the table below,
2998 only one of the forms is listed\-\-\-the one which is not the default.
2999 You can figure out the other form by either removing \fBno-\fR or
3000 adding it.
3001 .Ip "\fB\-ffloat-store\fR" 4
3002 .IX Item "-ffloat-store"
3003 Do not store floating point variables in registers, and inhibit other
3004 options that might change whether a floating point value is taken from a
3005 register or memory.
3006 .Sp
3007 This option prevents undesirable excess precision on machines such as
3008 the 68000 where the floating registers (of the 68881) keep more
3009 precision than a \f(CW\*(C`double\*(C'\fR is supposed to have.  Similarly for the
3010 x86 architecture.  For most programs, the excess precision does only
3011 good, but a few programs rely on the precise definition of \s-1IEEE\s0 floating
3012 point.  Use \fB\-ffloat-store\fR for such programs, after modifying
3013 them to store all pertinent intermediate computations into variables.
3014 .Ip "\fB\-fno-default-inline\fR" 4
3015 .IX Item "-fno-default-inline"
3016 Do not make member functions inline by default merely because they are
3017 defined inside the class scope (\*(C+ only).  Otherwise, when you specify
3018 \&\fB\-O\fR, member functions defined inside class scope are compiled
3019 inline by default; i.e., you don't need to add \fBinline\fR in front of
3020 the member function name.
3021 .Ip "\fB\-fno-defer-pop\fR" 4
3022 .IX Item "-fno-defer-pop"
3023 Always pop the arguments to each function call as soon as that function
3024 returns.  For machines which must pop arguments after a function call,
3025 the compiler normally lets arguments accumulate on the stack for several
3026 function calls and pops them all at once.
3027 .Ip "\fB\-fforce-mem\fR" 4
3028 .IX Item "-fforce-mem"
3029 Force memory operands to be copied into registers before doing
3030 arithmetic on them.  This produces better code by making all memory
3031 references potential common subexpressions.  When they are not common
3032 subexpressions, instruction combination should eliminate the separate
3033 register-load.  The \fB\-O2\fR option turns on this option.
3034 .Ip "\fB\-fforce-addr\fR" 4
3035 .IX Item "-fforce-addr"
3036 Force memory address constants to be copied into registers before
3037 doing arithmetic on them.  This may produce better code just as
3038 \&\fB\-fforce-mem\fR may.
3039 .Ip "\fB\-fomit-frame-pointer\fR" 4
3040 .IX Item "-fomit-frame-pointer"
3041 Don't keep the frame pointer in a register for functions that
3042 don't need one.  This avoids the instructions to save, set up and
3043 restore frame pointers; it also makes an extra register available
3044 in many functions.  \fBIt also makes debugging impossible on
3045 some machines.\fR
3046 .Sp
3047 On some machines, such as the \s-1VAX\s0, this flag has no effect, because
3048 the standard calling sequence automatically handles the frame pointer
3049 and nothing is saved by pretending it doesn't exist.  The
3050 machine-description macro \f(CW\*(C`FRAME_POINTER_REQUIRED\*(C'\fR controls
3051 whether a target machine supports this flag.  
3052 .Ip "\fB\-foptimize-sibling-calls\fR" 4
3053 .IX Item "-foptimize-sibling-calls"
3054 Optimize sibling and tail recursive calls.
3055 .Ip "\fB\-ftrapv\fR" 4
3056 .IX Item "-ftrapv"
3057 This option generates traps for signed overflow on addition, subtraction,
3058 multiplication operations.
3059 .Ip "\fB\-fno-inline\fR" 4
3060 .IX Item "-fno-inline"
3061 Don't pay attention to the \f(CW\*(C`inline\*(C'\fR keyword.  Normally this option
3062 is used to keep the compiler from expanding any functions inline.
3063 Note that if you are not optimizing, no functions can be expanded inline.
3064 .Ip "\fB\-finline-functions\fR" 4
3065 .IX Item "-finline-functions"
3066 Integrate all simple functions into their callers.  The compiler
3067 heuristically decides which functions are simple enough to be worth
3068 integrating in this way.
3069 .Sp
3070 If all calls to a given function are integrated, and the function is
3071 declared \f(CW\*(C`static\*(C'\fR, then the function is normally not output as
3072 assembler code in its own right.
3073 .Ip "\fB\-finline-limit=\fR\fIn\fR" 4
3074 .IX Item "-finline-limit=n"
3075 By default, gcc limits the size of functions that can be inlined.  This flag
3076 allows the control of this limit for functions that are explicitly marked as
3077 inline (ie marked with the inline keyword or defined within the class
3078 definition in c++).  \fIn\fR is the size of functions that can be inlined in
3079 number of pseudo instructions (not counting parameter handling).  The default
3080 value of \fIn\fR is 600.
3081 Increasing this value can result in more inlined code at
3082 the cost of compilation time and memory consumption.  Decreasing usually makes
3083 the compilation faster and less code will be inlined (which presumably
3084 means slower programs).  This option is particularly useful for programs that
3085 use inlining heavily such as those based on recursive templates with \*(C+.
3086 .Sp
3087 \&\fINote:\fR pseudo instruction represents, in this particular context, an
3088 abstract measurement of function's size.  In no way, it represents a count
3089 of assembly instructions and as such its exact meaning might change from one
3090 release to an another.
3091 .Ip "\fB\-fkeep-inline-functions\fR" 4
3092 .IX Item "-fkeep-inline-functions"
3093 Even if all calls to a given function are integrated, and the function
3094 is declared \f(CW\*(C`static\*(C'\fR, nevertheless output a separate run-time
3095 callable version of the function.  This switch does not affect
3096 \&\f(CW\*(C`extern inline\*(C'\fR functions.
3097 .Ip "\fB\-fkeep-static-consts\fR" 4
3098 .IX Item "-fkeep-static-consts"
3099 Emit variables declared \f(CW\*(C`static const\*(C'\fR when optimization isn't turned
3100 on, even if the variables aren't referenced.
3101 .Sp
3102 \&\s-1GCC\s0 enables this option by default.  If you want to force the compiler to
3103 check if the variable was referenced, regardless of whether or not
3104 optimization is turned on, use the \fB\-fno-keep-static-consts\fR option.
3105 .Ip "\fB\-fmerge-constants\fR" 4
3106 .IX Item "-fmerge-constants"
3107 Attempt to merge identical constants (string constants and floating point
3108 constants) accross compilation units.
3109 .Sp
3110 This option is default for optimized compilation if assembler and linker
3111 support it.  Use \fB\-fno-merge-constants\fR to inhibit this behavior.
3112 .Ip "\fB\-fmerge-all-constants\fR" 4
3113 .IX Item "-fmerge-all-constants"
3114 Attempt to merge identical constants and identical variables.
3115 .Sp
3116 This option implies \fB\-fmerge-constants\fR.  In addition to
3117 \&\fB\-fmerge-constants\fR this considers e.g. even constant initialized
3118 arrays or initialized constant variables with integral or floating point
3119 types.  Languages like C or \*(C+ require each non-automatic variable to
3120 have distinct location, so using this option will result in non-conforming
3121 behavior.
3122 .Ip "\fB\-fno-branch-count-reg\fR" 4
3123 .IX Item "-fno-branch-count-reg"
3124 Do not use ``decrement and branch'' instructions on a count register,
3125 but instead generate a sequence of instructions that decrement a
3126 register, compare it against zero, then branch based upon the result.
3127 This option is only meaningful on architectures that support such
3128 instructions, which include x86, PowerPC, \s-1IA-64\s0 and S/390.
3129 .Ip "\fB\-fno-function-cse\fR" 4
3130 .IX Item "-fno-function-cse"
3131 Do not put function addresses in registers; make each instruction that
3132 calls a constant function contain the function's address explicitly.
3133 .Sp
3134 This option results in less efficient code, but some strange hacks
3135 that alter the assembler output may be confused by the optimizations
3136 performed when this option is not used.
3137 .Ip "\fB\-ffast-math\fR" 4
3138 .IX Item "-ffast-math"
3139 Sets \fB\-fno-math-errno\fR, \fB\-funsafe-math-optimizations\fR, and \fB\-fno-trapping-math\fR.
3140 .Sp
3141 This option causes the preprocessor macro \f(CW\*(C`_\|_FAST_MATH_\|_\*(C'\fR to be defined.
3142 .Sp
3143 This option should never be turned on by any \fB\-O\fR option since
3144 it can result in incorrect output for programs which depend on
3145 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
3146 math functions.
3147 .Ip "\fB\-fno-math-errno\fR" 4
3148 .IX Item "-fno-math-errno"
3149 Do not set \s-1ERRNO\s0 after calling math functions that are executed
3150 with a single instruction, e.g., sqrt.  A program that relies on
3151 \&\s-1IEEE\s0 exceptions for math error handling may want to use this flag
3152 for speed while maintaining \s-1IEEE\s0 arithmetic compatibility.
3153 .Sp
3154 This option should never be turned on by any \fB\-O\fR option since
3155 it can result in incorrect output for programs which depend on
3156 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
3157 math functions.
3158 .Sp
3159 The default is \fB\-fmath-errno\fR.
3160 .Ip "\fB\-funsafe-math-optimizations\fR" 4
3161 .IX Item "-funsafe-math-optimizations"
3162 Allow optimizations for floating-point arithmetic that (a) assume
3163 that arguments and results are valid and (b) may violate \s-1IEEE\s0 or
3164 \&\s-1ANSI\s0 standards.  When used at link-time, it may include libraries
3165 or startup files that change the default \s-1FPU\s0 control word or other
3166 similar optimizations.
3167 .Sp
3168 This option should never be turned on by any \fB\-O\fR option since
3169 it can result in incorrect output for programs which depend on
3170 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
3171 math functions.
3172 .Sp
3173 The default is \fB\-fno-unsafe-math-optimizations\fR.
3174 .Ip "\fB\-fno-trapping-math\fR" 4
3175 .IX Item "-fno-trapping-math"
3176 Compile code assuming that floating-point operations cannot generate
3177 user-visible traps.  Setting this option may allow faster code
3178 if one relies on ``non-stop'' \s-1IEEE\s0 arithmetic, for example.
3179 .Sp
3180 This option should never be turned on by any \fB\-O\fR option since
3181 it can result in incorrect output for programs which depend on
3182 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
3183 math functions.
3184 .Sp
3185 The default is \fB\-ftrapping-math\fR.
3186 .Ip "\fB\-fbounds-check\fR" 4
3187 .IX Item "-fbounds-check"
3188 For front-ends that support it, generate additional code to check that
3189 indices used to access arrays are within the declared range.  This is
3190 currenly only supported by the Java and Fortran 77 front-ends, where
3191 this option defaults to true and false respectively.
3192 .PP
3193 The following options control specific optimizations.  The \fB\-O2\fR
3194 option turns on all of these optimizations except \fB\-funroll-loops\fR
3195 and \fB\-funroll-all-loops\fR.  On most machines, the \fB\-O\fR option
3196 turns on the \fB\-fthread-jumps\fR and \fB\-fdelayed-branch\fR options,
3197 but specific machines may handle it differently.
3198 .PP
3199 You can use the following flags in the rare cases when ``fine-tuning''
3200 of optimizations to be performed is desired.
3201 .PP
3202 Not all of the optimizations performed by \s-1GCC\s0 have \fB\-f\fR options
3203 to control them.
3204 .Ip "\fB\-fstrength-reduce\fR" 4
3205 .IX Item "-fstrength-reduce"
3206 Perform the optimizations of loop strength reduction and
3207 elimination of iteration variables.
3208 .Ip "\fB\-fthread-jumps\fR" 4
3209 .IX Item "-fthread-jumps"
3210 Perform optimizations where we check to see if a jump branches to a
3211 location where another comparison subsumed by the first is found.  If
3212 so, the first branch is redirected to either the destination of the
3213 second branch or a point immediately following it, depending on whether
3214 the condition is known to be true or false.
3215 .Ip "\fB\-fcse-follow-jumps\fR" 4
3216 .IX Item "-fcse-follow-jumps"
3217 In common subexpression elimination, scan through jump instructions
3218 when the target of the jump is not reached by any other path.  For
3219 example, when \s-1CSE\s0 encounters an \f(CW\*(C`if\*(C'\fR statement with an
3220 \&\f(CW\*(C`else\*(C'\fR clause, \s-1CSE\s0 will follow the jump when the condition
3221 tested is false.
3222 .Ip "\fB\-fcse-skip-blocks\fR" 4
3223 .IX Item "-fcse-skip-blocks"
3224 This is similar to \fB\-fcse-follow-jumps\fR, but causes \s-1CSE\s0 to
3225 follow jumps which conditionally skip over blocks.  When \s-1CSE\s0
3226 encounters a simple \f(CW\*(C`if\*(C'\fR statement with no else clause,
3227 \&\fB\-fcse-skip-blocks\fR causes \s-1CSE\s0 to follow the jump around the
3228 body of the \f(CW\*(C`if\*(C'\fR.
3229 .Ip "\fB\-frerun-cse-after-loop\fR" 4
3230 .IX Item "-frerun-cse-after-loop"
3231 Re-run common subexpression elimination after loop optimizations has been
3232 performed.
3233 .Ip "\fB\-frerun-loop-opt\fR" 4
3234 .IX Item "-frerun-loop-opt"
3235 Run the loop optimizer twice.
3236 .Ip "\fB\-fgcse\fR" 4
3237 .IX Item "-fgcse"
3238 Perform a global common subexpression elimination pass.
3239 This pass also performs global constant and copy propagation.
3240 .Sp
3241 \&\fINote:\fR When compiling a program using computed gotos, a \s-1GCC\s0
3242 extension, you may get better runtime performance if you disable
3243 the global common subexpression elmination pass by adding
3244 \&\fB\-fno-gcse\fR to the command line.
3245 .Ip "\fB\-fgcse-lm\fR" 4
3246 .IX Item "-fgcse-lm"
3247 When \fB\-fgcse-lm\fR is enabled, global common subexpression elimination will
3248 attempt to move loads which are only killed by stores into themselves.  This
3249 allows a loop containing a load/store sequence to be changed to a load outside
3250 the loop, and a copy/store within the loop.
3251 .Ip "\fB\-fgcse-sm\fR" 4
3252 .IX Item "-fgcse-sm"
3253 When \fB\-fgcse-sm\fR is enabled, A store motion pass is run after global common
3254 subexpression elimination.  This pass will attempt to move stores out of loops.
3255 When used in conjunction with \fB\-fgcse-lm\fR, loops containing a load/store sequence
3256 can be changed to a load before the loop and a store after the loop.
3257 .Ip "\fB\-fdelete-null-pointer-checks\fR" 4
3258 .IX Item "-fdelete-null-pointer-checks"
3259 Use global dataflow analysis to identify and eliminate useless checks
3260 for null pointers.  The compiler assumes that dereferencing a null
3261 pointer would have halted the program.  If a pointer is checked after
3262 it has already been dereferenced, it cannot be null.
3263 .Sp
3264 In some environments, this assumption is not true, and programs can
3265 safely dereference null pointers.  Use
3266 \&\fB\-fno-delete-null-pointer-checks\fR to disable this optimization
3267 for programs which depend on that behavior.
3268 .Ip "\fB\-fexpensive-optimizations\fR" 4
3269 .IX Item "-fexpensive-optimizations"
3270 Perform a number of minor optimizations that are relatively expensive.
3271 .Ip "\fB\-foptimize-register-move\fR" 4
3272 .IX Item "-foptimize-register-move"
3273 .PD 0
3274 .Ip "\fB\-fregmove\fR" 4
3275 .IX Item "-fregmove"
3276 .PD
3277 Attempt to reassign register numbers in move instructions and as
3278 operands of other simple instructions in order to maximize the amount of
3279 register tying.  This is especially helpful on machines with two-operand
3280 instructions.  \s-1GCC\s0 enables this optimization by default with \fB\-O2\fR
3281 or higher.
3282 .Sp
3283 Note \fB\-fregmove\fR and \fB\-foptimize-register-move\fR are the same
3284 optimization.
3285 .Ip "\fB\-fdelayed-branch\fR" 4
3286 .IX Item "-fdelayed-branch"
3287 If supported for the target machine, attempt to reorder instructions
3288 to exploit instruction slots available after delayed branch
3289 instructions.
3290 .Ip "\fB\-fschedule-insns\fR" 4
3291 .IX Item "-fschedule-insns"
3292 If supported for the target machine, attempt to reorder instructions to
3293 eliminate execution stalls due to required data being unavailable.  This
3294 helps machines that have slow floating point or memory load instructions
3295 by allowing other instructions to be issued until the result of the load
3296 or floating point instruction is required.
3297 .Ip "\fB\-fschedule-insns2\fR" 4
3298 .IX Item "-fschedule-insns2"
3299 Similar to \fB\-fschedule-insns\fR, but requests an additional pass of
3300 instruction scheduling after register allocation has been done.  This is
3301 especially useful on machines with a relatively small number of
3302 registers and where memory load instructions take more than one cycle.
3303 .Ip "\fB\-fno-sched-interblock\fR" 4
3304 .IX Item "-fno-sched-interblock"
3305 Don't schedule instructions across basic blocks.  This is normally
3306 enabled by default when scheduling before register allocation, i.e.
3307 with \fB\-fschedule-insns\fR or at \fB\-O2\fR or higher.
3308 .Ip "\fB\-fno-sched-spec\fR" 4
3309 .IX Item "-fno-sched-spec"
3310 Don't allow speculative motion of non-load instructions.  This is normally
3311 enabled by default when scheduling before register allocation, i.e.
3312 with \fB\-fschedule-insns\fR or at \fB\-O2\fR or higher.
3313 .Ip "\fB\-fsched-spec-load\fR" 4
3314 .IX Item "-fsched-spec-load"
3315 Allow speculative motion of some load instructions.  This only makes
3316 sense when scheduling before register allocation, i.e. with
3317 \&\fB\-fschedule-insns\fR or at \fB\-O2\fR or higher.
3318 .Ip "\fB\-fsched-spec-load-dangerous\fR" 4
3319 .IX Item "-fsched-spec-load-dangerous"
3320 Allow speculative motion of more load instructions.  This only makes
3321 sense when scheduling before register allocation, i.e. with
3322 \&\fB\-fschedule-insns\fR or at \fB\-O2\fR or higher.
3323 .Ip "\fB\-ffunction-sections\fR" 4
3324 .IX Item "-ffunction-sections"
3325 .PD 0
3326 .Ip "\fB\-fdata-sections\fR" 4
3327 .IX Item "-fdata-sections"
3328 .PD
3329 Place each function or data item into its own section in the output
3330 file if the target supports arbitrary sections.  The name of the
3331 function or the name of the data item determines the section's name
3332 in the output file.
3333 .Sp
3334 Use these options on systems where the linker can perform optimizations
3335 to improve locality of reference in the instruction space.  \s-1HPPA\s0
3336 processors running \s-1HP-UX\s0 and Sparc processors running Solaris 2 have
3337 linkers with such optimizations.  Other systems using the \s-1ELF\s0 object format
3338 as well as \s-1AIX\s0 may have these optimizations in the future.
3339 .Sp
3340 Only use these options when there are significant benefits from doing
3341 so.  When you specify these options, the assembler and linker will
3342 create larger object and executable files and will also be slower.
3343 You will not be able to use \f(CW\*(C`gprof\*(C'\fR on all systems if you
3344 specify this option and you may have problems with debugging if
3345 you specify both this option and \fB\-g\fR.
3346 .Ip "\fB\-fcaller-saves\fR" 4
3347 .IX Item "-fcaller-saves"
3348 Enable values to be allocated in registers that will be clobbered by
3349 function calls, by emitting extra instructions to save and restore the
3350 registers around such calls.  Such allocation is done only when it
3351 seems to result in better code than would otherwise be produced.
3352 .Sp
3353 This option is always enabled by default on certain machines, usually
3354 those which have no call-preserved registers to use instead.
3355 .Sp
3356 For all machines, optimization level 2 and higher enables this flag by
3357 default.
3358 .Ip "\fB\-funroll-loops\fR" 4
3359 .IX Item "-funroll-loops"
3360 Unroll loops whose number of iterations can be determined at compile
3361 time or upon entry to the loop.  \fB\-funroll-loops\fR implies both
3362 \&\fB\-fstrength-reduce\fR and \fB\-frerun-cse-after-loop\fR.  This
3363 option makes code larger, and may or may not make it run faster.
3364 .Ip "\fB\-funroll-all-loops\fR" 4
3365 .IX Item "-funroll-all-loops"
3366 Unroll all loops, even if their number of iterations is uncertain when
3367 the loop is entered.  This usually makes programs run more slowly.
3368 \&\fB\-funroll-all-loops\fR implies the same options as
3369 \&\fB\-funroll-loops\fR,
3370 .Ip "\fB\-fprefetch-loop-arrays\fR" 4
3371 .IX Item "-fprefetch-loop-arrays"
3372 If supported by the target machine, generate instructions to prefetch
3373 memory to improve the performance of loops that access large arrays.
3374 .Ip "\fB\-fmove-all-movables\fR" 4
3375 .IX Item "-fmove-all-movables"
3376 Forces all invariant computations in loops to be moved
3377 outside the loop.
3378 .Ip "\fB\-freduce-all-givs\fR" 4
3379 .IX Item "-freduce-all-givs"
3380 Forces all general-induction variables in loops to be
3381 strength-reduced.
3382 .Sp
3383 \&\fINote:\fR When compiling programs written in Fortran,
3384 \&\fB\-fmove-all-movables\fR and \fB\-freduce-all-givs\fR are enabled
3385 by default when you use the optimizer.
3386 .Sp
3387 These options may generate better or worse code; results are highly
3388 dependent on the structure of loops within the source code.
3389 .Sp
3390 These two options are intended to be removed someday, once
3391 they have helped determine the efficacy of various
3392 approaches to improving loop optimizations.
3393 .Sp
3394 Please let us (<\fBgcc@gcc.gnu.org\fR> and <\fBfortran@gnu.org\fR>)
3395 know how use of these options affects
3396 the performance of your production code.
3397 We're very interested in code that runs \fIslower\fR
3398 when these options are \fIenabled\fR.
3399 .Ip "\fB\-fno-peephole\fR" 4
3400 .IX Item "-fno-peephole"
3401 .PD 0
3402 .Ip "\fB\-fno-peephole2\fR" 4
3403 .IX Item "-fno-peephole2"
3404 .PD
3405 Disable any machine-specific peephole optimizations.  The difference
3406 between \fB\-fno-peephole\fR and \fB\-fno-peephole2\fR is in how they
3407 are implemented in the compiler; some targets use one, some use the
3408 other, a few use both.
3409 .Ip "\fB\-fbranch-probabilities\fR" 4
3410 .IX Item "-fbranch-probabilities"
3411 After running a program compiled with \fB\-fprofile-arcs\fR, you can compile it a second time using
3412 \&\fB\-fbranch-probabilities\fR, to improve optimizations based on
3413 the number of times each branch was taken.  When the program
3414 compiled with \fB\-fprofile-arcs\fR exits it saves arc execution
3415 counts to a file called \fI\fIsourcename\fI.da\fR for each source
3416 file  The information in this data file is very dependent on the
3417 structure of the generated code, so you must use the same source code
3418 and the same optimization options for both compilations.
3419 .Sp
3420 With \fB\-fbranch-probabilities\fR, \s-1GCC\s0 puts a \fB\s-1REG_EXEC_COUNT\s0\fR
3421 note on the first instruction of each basic block, and a
3422 \&\fB\s-1REG_BR_PROB\s0\fR note on each \fB\s-1JUMP_INSN\s0\fR and \fB\s-1CALL_INSN\s0\fR.
3423 These can be used to improve optimization.  Currently, they are only
3424 used in one place: in \fIreorg.c\fR, instead of guessing which path a
3425 branch is mostly to take, the \fB\s-1REG_BR_PROB\s0\fR values are used to
3426 exactly determine which path is taken more often.
3427 .Ip "\fB\-fno-guess-branch-probability\fR" 4
3428 .IX Item "-fno-guess-branch-probability"
3429 Do not guess branch probabilities using a randomized model.
3430 .Sp
3431 Sometimes gcc will opt to use a randomized model to guess branch
3432 probabilities, when none are available from either profiling feedback
3433 (\fB\-fprofile-arcs\fR) or \fB_\|_builtin_expect\fR.  This means that
3434 different runs of the compiler on the same program may produce different
3435 object code.
3436 .Sp
3437 In a hard real-time system, people don't want different runs of the
3438 compiler to produce code that has different behavior; minimizing
3439 non-determinism is of paramount import.  This switch allows users to
3440 reduce non-determinism, possibly at the expense of inferior
3441 optimization.
3442 .Ip "\fB\-fstrict-aliasing\fR" 4
3443 .IX Item "-fstrict-aliasing"
3444 Allows the compiler to assume the strictest aliasing rules applicable to
3445 the language being compiled.  For C (and \*(C+), this activates
3446 optimizations based on the type of expressions.  In particular, an
3447 object of one type is assumed never to reside at the same address as an
3448 object of a different type, unless the types are almost the same.  For
3449 example, an \f(CW\*(C`unsigned int\*(C'\fR can alias an \f(CW\*(C`int\*(C'\fR, but not a
3450 \&\f(CW\*(C`void*\*(C'\fR or a \f(CW\*(C`double\*(C'\fR.  A character type may alias any other
3451 type.
3452 .Sp
3453 Pay special attention to code like this:
3454 .Sp
3455 .Vb 4
3456 \&        union a_union {
3457 \&          int i;
3458 \&          double d;
3459 \&        };
3460 .Ve
3461 .Vb 5
3462 \&        int f() {
3463 \&          a_union t;
3464 \&          t.d = 3.0;
3465 \&          return t.i;
3466 \&        }
3467 .Ve
3468 The practice of reading from a different union member than the one most
3469 recently written to (called ``type-punning'') is common.  Even with
3470 \&\fB\-fstrict-aliasing\fR, type-punning is allowed, provided the memory
3471 is accessed through the union type.  So, the code above will work as
3472 expected.  However, this code might not:
3473 .Sp
3474 .Vb 7
3475 \&        int f() {
3476 \&          a_union t;
3477 \&          int* ip;
3478 \&          t.d = 3.0;
3479 \&          ip = &t.i;
3480 \&          return *ip;
3481 \&        }
3482 .Ve
3483 Every language that wishes to perform language-specific alias analysis
3484 should define a function that computes, given an \f(CW\*(C`tree\*(C'\fR
3485 node, an alias set for the node.  Nodes in different alias sets are not
3486 allowed to alias.  For an example, see the C front-end function
3487 \&\f(CW\*(C`c_get_alias_set\*(C'\fR.
3488 .Ip "\fB\-falign-functions\fR" 4
3489 .IX Item "-falign-functions"
3490 .PD 0
3491 .Ip "\fB\-falign-functions=\fR\fIn\fR" 4
3492 .IX Item "-falign-functions=n"
3493 .PD
3494 Align the start of functions to the next power-of-two greater than
3495 \&\fIn\fR, skipping up to \fIn\fR bytes.  For instance,
3496 \&\fB\-falign-functions=32\fR aligns functions to the next 32\-byte
3497 boundary, but \fB\-falign-functions=24\fR would align to the next
3498 32\-byte boundary only if this can be done by skipping 23 bytes or less.
3499 .Sp
3500 \&\fB\-fno-align-functions\fR and \fB\-falign-functions=1\fR are
3501 equivalent and mean that functions will not be aligned.
3502 .Sp
3503 Some assemblers only support this flag when \fIn\fR is a power of two;
3504 in that case, it is rounded up.
3505 .Sp
3506 If \fIn\fR is not specified, use a machine-dependent default.
3507 .Ip "\fB\-falign-labels\fR" 4
3508 .IX Item "-falign-labels"
3509 .PD 0
3510 .Ip "\fB\-falign-labels=\fR\fIn\fR" 4
3511 .IX Item "-falign-labels=n"
3512 .PD
3513 Align all branch targets to a power-of-two boundary, skipping up to
3514 \&\fIn\fR bytes like \fB\-falign-functions\fR.  This option can easily
3515 make code slower, because it must insert dummy operations for when the
3516 branch target is reached in the usual flow of the code.
3517 .Sp
3518 If \fB\-falign-loops\fR or \fB\-falign-jumps\fR are applicable and
3519 are greater than this value, then their values are used instead.
3520 .Sp
3521 If \fIn\fR is not specified, use a machine-dependent default which is
3522 very likely to be \fB1\fR, meaning no alignment.
3523 .Ip "\fB\-falign-loops\fR" 4
3524 .IX Item "-falign-loops"
3525 .PD 0
3526 .Ip "\fB\-falign-loops=\fR\fIn\fR" 4
3527 .IX Item "-falign-loops=n"
3528 .PD
3529 Align loops to a power-of-two boundary, skipping up to \fIn\fR bytes
3530 like \fB\-falign-functions\fR.  The hope is that the loop will be
3531 executed many times, which will make up for any execution of the dummy
3532 operations.
3533 .Sp
3534 If \fIn\fR is not specified, use a machine-dependent default.
3535 .Ip "\fB\-falign-jumps\fR" 4
3536 .IX Item "-falign-jumps"
3537 .PD 0
3538 .Ip "\fB\-falign-jumps=\fR\fIn\fR" 4
3539 .IX Item "-falign-jumps=n"
3540 .PD
3541 Align branch targets to a power-of-two boundary, for branch targets
3542 where the targets can only be reached by jumping, skipping up to \fIn\fR
3543 bytes like \fB\-falign-functions\fR.  In this case, no dummy operations
3544 need be executed.
3545 .Sp
3546 If \fIn\fR is not specified, use a machine-dependent default.
3547 .Ip "\fB\-fssa\fR" 4
3548 .IX Item "-fssa"
3549 Perform optimizations in static single assignment form.  Each function's
3550 flow graph is translated into \s-1SSA\s0 form, optimizations are performed, and
3551 the flow graph is translated back from \s-1SSA\s0 form.  Users should not
3552 specify this option, since it is not yet ready for production use.
3553 .Ip "\fB\-fssa-ccp\fR" 4
3554 .IX Item "-fssa-ccp"
3555 Perform Sparse Conditional Constant Propagation in \s-1SSA\s0 form.  Requires
3556 \&\fB\-fssa\fR.  Like \fB\-fssa\fR, this is an experimental feature.
3557 .Ip "\fB\-fssa-dce\fR" 4
3558 .IX Item "-fssa-dce"
3559 Perform aggressive dead-code elimination in \s-1SSA\s0 form.  Requires \fB\-fssa\fR.
3560 Like \fB\-fssa\fR, this is an experimental feature.
3561 .Ip "\fB\-fsingle-precision-constant\fR" 4
3562 .IX Item "-fsingle-precision-constant"
3563 Treat floating point constant as single precision constant instead of
3564 implicitly converting it to double precision constant.
3565 .Ip "\fB\-frename-registers\fR" 4
3566 .IX Item "-frename-registers"
3567 Attempt to avoid false dependencies in scheduled code by making use
3568 of registers left over after register allocation.  This optimization
3569 will most benefit processors with lots of registers.  It can, however,
3570 make debugging impossible, since variables will no longer stay in
3571 a ``home register''.
3572 .Ip "\fB\-fno-cprop-registers\fR" 4
3573 .IX Item "-fno-cprop-registers"
3574 After register allocation and post-register allocation instruction splitting,
3575 we perform a copy-propagation pass to try to reduce scheduling dependencies
3576 and occasionally eliminate the copy.
3577 .Ip "\fB\*(--param\fR \fIname\fR\fB=\fR\fIvalue\fR" 4
3578 .IX Item "param name=value"
3579 In some places, \s-1GCC\s0 uses various constants to control the amount of
3580 optimization that is done.  For example, \s-1GCC\s0 will not inline functions
3581 that contain more that a certain number of instructions.  You can
3582 control some of these constants on the command-line using the
3583 \&\fB\*(--param\fR option.
3584 .Sp
3585 In each case, the \fIvalue\fR is an integer.  The allowable choices for
3586 \&\fIname\fR are given in the following table:
3587 .RS 4
3588 .Ip "\fBmax-delay-slot-insn-search\fR" 4
3589 .IX Item "max-delay-slot-insn-search"
3590 The maximum number of instructions to consider when looking for an
3591 instruction to fill a delay slot.  If more than this arbitrary number of
3592 instructions is searched, the time savings from filling the delay slot
3593 will be minimal so stop searching.  Increasing values mean more
3594 aggressive optimization, making the compile time increase with probably
3595 small improvement in executable run time.
3596 .Ip "\fBmax-delay-slot-live-search\fR" 4
3597 .IX Item "max-delay-slot-live-search"
3598 When trying to fill delay slots, the maximum number of instructions to
3599 consider when searching for a block with valid live register
3600 information.  Increasing this arbitrarily chosen value means more
3601 aggressive optimization, increasing the compile time.  This parameter
3602 should be removed when the delay slot code is rewritten to maintain the
3603 control-flow graph.
3604 .Ip "\fBmax-gcse-memory\fR" 4
3605 .IX Item "max-gcse-memory"
3606 The approximate maximum amount of memory that will be allocated in
3607 order to perform the global common subexpression elimination
3608 optimization.  If more memory than specified is required, the
3609 optimization will not be done.
3610 .Ip "\fBmax-gcse-passes\fR" 4
3611 .IX Item "max-gcse-passes"
3612 The maximum number of passes of \s-1GCSE\s0 to run.
3613 .Ip "\fBmax-pending-list-length\fR" 4
3614 .IX Item "max-pending-list-length"
3615 The maximum number of pending dependencies scheduling will allow
3616 before flushing the current state and starting over.  Large functions
3617 with few branches or calls can create excessively large lists which
3618 needlessly consume memory and resources.
3619 .Ip "\fBmax-inline-insns\fR" 4
3620 .IX Item "max-inline-insns"
3621 If an function contains more than this many instructions, it
3622 will not be inlined.  This option is precisely equivalent to
3623 \&\fB\-finline-limit\fR.
3624 .RE
3625 .RS 4
3626 .RE
3627 .Sh "Options Controlling the Preprocessor"
3628 .IX Subsection "Options Controlling the Preprocessor"
3629 These options control the C preprocessor, which is run on each C source
3630 file before actual compilation.
3631 .PP
3632 If you use the \fB\-E\fR option, nothing is done except preprocessing.
3633 Some of these options make sense only together with \fB\-E\fR because
3634 they cause the preprocessor output to be unsuitable for actual
3635 compilation.
3636 .PP
3637 You can use \fB\-Wp,\fR\fIoption\fR to bypass the compiler driver
3638 and pass \fIoption\fR directly through to the preprocessor.  If
3639 \&\fIoption\fR contains commas, it is split into multiple options at the
3640 commas.  However, many options are modified, translated or interpreted
3641 by the compiler driver before being passed to the preprocessor, and
3642 \&\fB\-Wp\fR forcibly bypasses this phase.  The preprocessor's direct
3643 interface is undocumented and subject to change, so whenever possible
3644 you should avoid using \fB\-Wp\fR and let the driver handle the
3645 options instead.
3646 .Ip "\fB\-D\fR \fIname\fR" 4
3647 .IX Item "-D name"
3648 Predefine \fIname\fR as a macro, with definition \f(CW\*(C`1\*(C'\fR.
3649 .Ip "\fB\-D\fR \fIname\fR\fB=\fR\fIdefinition\fR" 4
3650 .IX Item "-D name=definition"
3651 Predefine \fIname\fR as a macro, with definition \fIdefinition\fR.
3652 There are no restrictions on the contents of \fIdefinition\fR, but if
3653 you are invoking the preprocessor from a shell or shell-like program you
3654 may need to use the shell's quoting syntax to protect characters such as
3655 spaces that have a meaning in the shell syntax.
3656 .Sp
3657 If you wish to define a function-like macro on the command line, write
3658 its argument list with surrounding parentheses before the equals sign
3659 (if any).  Parentheses are meaningful to most shells, so you will need
3660 to quote the option.  With \fBsh\fR and \fBcsh\fR,
3661 \&\fB\-D'\fR\fIname\fR\fB(\fR\fIargs...\fR\fB)=\fR\fIdefinition\fR\fB'\fR works.
3662 .Sp
3663 \&\fB\-D\fR and \fB\-U\fR options are processed in the order they
3664 are given on the command line.  All \fB\-imacros\fR \fIfile\fR and
3665 \&\fB\-include\fR \fIfile\fR options are processed after all
3666 \&\fB\-D\fR and \fB\-U\fR options.
3667 .Ip "\fB\-U\fR \fIname\fR" 4
3668 .IX Item "-U name"
3669 Cancel any previous definition of \fIname\fR, either built in or
3670 provided with a \fB\-D\fR option.
3671 .Ip "\fB\-undef\fR" 4
3672 .IX Item "-undef"
3673 Do not predefine any system-specific macros.  The common predefined
3674 macros remain defined.
3675 .Ip "\fB\-I\fR \fIdir\fR" 4
3676 .IX Item "-I dir"
3677 Add the directory \fIdir\fR to the list of directories to be searched
3678 for header files.
3679 Directories named by \fB\-I\fR are searched before the standard
3680 system include directories.
3681 .Sp
3682 It is dangerous to specify a standard system include directory in an
3683 \&\fB\-I\fR option.  This defeats the special treatment of system
3684 headers
3685 \&.  It can also defeat the repairs to buggy system headers which \s-1GCC\s0
3686 makes when it is installed.
3687 .Ip "\fB\-o\fR \fIfile\fR" 4
3688 .IX Item "-o file"
3689 Write output to \fIfile\fR.  This is the same as specifying \fIfile\fR
3690 as the second non-option argument to \fBcpp\fR.  \fBgcc\fR has a
3691 different interpretation of a second non-option argument, so you must
3692 use \fB\-o\fR to specify the output file.
3693 .Ip "\fB\-Wall\fR" 4
3694 .IX Item "-Wall"
3695 Turns on all optional warnings which are desirable for normal code.  At
3696 present this is \fB\-Wcomment\fR and \fB\-Wtrigraphs\fR.  Note that
3697 many of the preprocessor's warnings are on by default and have no
3698 options to control them.
3699 .Ip "\fB\-Wcomment\fR" 4
3700 .IX Item "-Wcomment"
3701 .PD 0
3702 .Ip "\fB\-Wcomments\fR" 4
3703 .IX Item "-Wcomments"
3704 .PD
3705 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
3706 comment, or whenever a backslash-newline appears in a \fB//\fR comment.
3707 (Both forms have the same effect.)
3708 .Ip "\fB\-Wtrigraphs\fR" 4
3709 .IX Item "-Wtrigraphs"
3710 Warn if any trigraphs are encountered.  This option used to take effect
3711 only if \fB\-trigraphs\fR was also specified, but now works
3712 independently.  Warnings are not given for trigraphs within comments, as
3713 they do not affect the meaning of the program.
3714 .Ip "\fB\-Wtraditional\fR" 4
3715 .IX Item "-Wtraditional"
3716 Warn about certain constructs that behave differently in traditional and
3717 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
3718 equivalent, and problematic constructs which should be avoided.
3719 .Ip "\fB\-Wimport\fR" 4
3720 .IX Item "-Wimport"
3721 Warn the first time \fB#import\fR is used.
3722 .Ip "\fB\-Wundef\fR" 4
3723 .IX Item "-Wundef"
3724 Warn whenever an identifier which is not a macro is encountered in an
3725 \&\fB#if\fR directive, outside of \fBdefined\fR.  Such identifiers are
3726 replaced with zero.
3727 .Ip "\fB\-Werror\fR" 4
3728 .IX Item "-Werror"
3729 Make all warnings into hard errors.  Source code which triggers warnings
3730 will be rejected.
3731 .Ip "\fB\-Wsystem-headers\fR" 4
3732 .IX Item "-Wsystem-headers"
3733 Issue warnings for code in system headers.  These are normally unhelpful
3734 in finding bugs in your own code, therefore suppressed.  If you are
3735 responsible for the system library, you may want to see them.
3736 .Ip "\fB\-w\fR" 4
3737 .IX Item "-w"
3738 Suppress all warnings, including those which \s-1GNU\s0 \s-1CPP\s0 issues by default.
3739 .Ip "\fB\-pedantic\fR" 4
3740 .IX Item "-pedantic"
3741 Issue all the mandatory diagnostics listed in the C standard.  Some of
3742 them are left out by default, since they trigger frequently on harmless
3743 code.
3744 .Ip "\fB\-pedantic-errors\fR" 4
3745 .IX Item "-pedantic-errors"
3746 Issue all the mandatory diagnostics, and make all mandatory diagnostics
3747 into errors.  This includes mandatory diagnostics that \s-1GCC\s0 issues
3748 without \fB\-pedantic\fR but treats as warnings.
3749 .Ip "\fB\-M\fR" 4
3750 .IX Item "-M"
3751 Instead of outputting the result of preprocessing, output a rule
3752 suitable for \fBmake\fR describing the dependencies of the main
3753 source file.  The preprocessor outputs one \fBmake\fR rule containing
3754 the object file name for that source file, a colon, and the names of all
3755 the included files, including those coming from \fB\-include\fR or
3756 \&\fB\-imacros\fR command line options.
3757 .Sp
3758 Unless specified explicitly (with \fB\-MT\fR or \fB\-MQ\fR), the
3759 object file name consists of the basename of the source file with any
3760 suffix replaced with object file suffix.  If there are many included
3761 files then the rule is split into several lines using \fB\e\fR\-newline.
3762 The rule has no commands.
3763 .Sp
3764 This option does not suppress the preprocessor's debug output, such as
3765 \&\fB\-dM\fR.  To avoid mixing such debug output with the dependency
3766 rules you should explicitly specify the dependency output file with
3767 \&\fB\-MF\fR, or use an environment variable like
3768 \&\fB\s-1DEPENDENCIES_OUTPUT\s0\fR.  Debug output
3769 will still be sent to the regular output stream as normal.
3770 .Sp
3771 Passing \fB\-M\fR to the driver implies \fB\-E\fR.
3772 .Ip "\fB\-MM\fR" 4
3773 .IX Item "-MM"
3774 Like \fB\-M\fR but do not mention header files that are found in
3775 system header directories, nor header files that are included,
3776 directly or indirectly, from such a header.
3777 .Sp
3778 This implies that the choice of angle brackets or double quotes in an
3779 \&\fB#include\fR directive does not in itself determine whether that
3780 header will appear in \fB\-MM\fR dependency output.  This is a
3781 slight change in semantics from \s-1GCC\s0 versions 3.0 and earlier.
3782 .Ip "\fB\-MF\fR \fIfile\fR" 4
3783 .IX Item "-MF file"
3784 @anchor{\-MF}
3785 When used with \fB\-M\fR or \fB\-MM\fR, specifies a
3786 file to write the dependencies to.  If no \fB\-MF\fR switch is given
3787 the preprocessor sends the rules to the same place it would have sent
3788 preprocessed output.
3789 .Sp
3790 When used with the driver options \fB\-MD\fR or \fB\-MMD\fR,
3791 \&\fB\-MF\fR overrides the default dependency output file.
3792 .Ip "\fB\-MG\fR" 4
3793 .IX Item "-MG"
3794 When used with \fB\-M\fR or \fB\-MM\fR, \fB\-MG\fR says to treat missing
3795 header files as generated files and assume they live in the same
3796 directory as the source file.  It suppresses preprocessed output, as a
3797 missing header file is ordinarily an error.
3798 .Sp
3799 This feature is used in automatic updating of makefiles.
3800 .Ip "\fB\-MP\fR" 4
3801 .IX Item "-MP"
3802 This option instructs \s-1CPP\s0 to add a phony target for each dependency
3803 other than the main file, causing each to depend on nothing.  These
3804 dummy rules work around errors \fBmake\fR gives if you remove header
3805 files without updating the \fIMakefile\fR to match.
3806 .Sp
3807 This is typical output:
3808 .Sp
3809 .Vb 1
3810 \&        test.o: test.c test.h
3811 .Ve
3812 .Vb 1
3813 \&        test.h:
3814 .Ve
3815 .Ip "\fB\-MT\fR \fItarget\fR" 4
3816 .IX Item "-MT target"
3817 Change the target of the rule emitted by dependency generation.  By
3818 default \s-1CPP\s0 takes the name of the main input file, including any path,
3819 deletes any file suffix such as \fB.c\fR, and appends the platform's
3820 usual object suffix.  The result is the target.
3821 .Sp
3822 An \fB\-MT\fR option will set the target to be exactly the string you
3823 specify.  If you want multiple targets, you can specify them as a single
3824 argument to \fB\-MT\fR, or use multiple \fB\-MT\fR options.
3825 .Sp
3826 For example, \fB\-MT\ '$(objpfx)foo.o'\fR might give
3827 .Sp
3828 .Vb 1
3829 \&        $(objpfx)foo.o: foo.c
3830 .Ve
3831 .Ip "\fB\-MQ\fR \fItarget\fR" 4
3832 .IX Item "-MQ target"
3833 Same as \fB\-MT\fR, but it quotes any characters which are special to
3834 Make.  \fB\-MQ\ '$(objpfx)foo.o'\fR gives
3835 .Sp
3836 .Vb 1
3837 \&        $$(objpfx)foo.o: foo.c
3838 .Ve
3839 The default target is automatically quoted, as if it were given with
3840 \&\fB\-MQ\fR.
3841 .Ip "\fB\-MD\fR" 4
3842 .IX Item "-MD"
3843 \&\fB\-MD\fR is equivalent to \fB\-M \-MF\fR \fIfile\fR, except that
3844 \&\fB\-E\fR is not implied.  The driver determines \fIfile\fR based on
3845 whether an \fB\-o\fR option is given.  If it is, the driver uses its
3846 argument but with a suffix of \fI.d\fR, otherwise it take the
3847 basename of the input file and applies a \fI.d\fR suffix.
3848 .Sp
3849 If \fB\-MD\fR is used in conjunction with \fB\-E\fR, any
3850 \&\fB\-o\fR switch is understood to specify the dependency output file
3851 (but \f(CW@pxref\fR{\-MF}), but if used without \fB\-E\fR, each \fB\-o\fR
3852 is understood to specify a target object file.
3853 .Sp
3854 Since \fB\-E\fR is not implied, \fB\-MD\fR can be used to generate
3855 a dependency output file as a side-effect of the compilation process.
3856 .Ip "\fB\-MMD\fR" 4
3857 .IX Item "-MMD"
3858 Like \fB\-MD\fR except mention only user header files, not system
3859 \&\-header files.
3860 .Ip "\fB\-x c\fR" 4
3861 .IX Item "-x c"
3862 .PD 0
3863 .Ip "\fB\-x c++\fR" 4
3864 .IX Item "-x c++"
3865 .Ip "\fB\-x objective-c\fR" 4
3866 .IX Item "-x objective-c"
3867 .Ip "\fB\-x assembler-with-cpp\fR" 4
3868 .IX Item "-x assembler-with-cpp"
3869 .PD
3870 Specify the source language: C, \*(C+, Objective-C, or assembly.  This has
3871 nothing to do with standards conformance or extensions; it merely
3872 selects which base syntax to expect.  If you give none of these options,
3873 cpp will deduce the language from the extension of the source file:
3874 \&\fB.c\fR, \fB.cc\fR, \fB.m\fR, or \fB.S\fR.  Some other common
3875 extensions for \*(C+ and assembly are also recognized.  If cpp does not
3876 recognize the extension, it will treat the file as C; this is the most
3877 generic mode.
3878 .Sp
3879 \&\fBNote:\fR Previous versions of cpp accepted a \fB\-lang\fR option
3880 which selected both the language and the standards conformance level.
3881 This option has been removed, because it conflicts with the \fB\-l\fR
3882 option.
3883 .Ip "\fB\-std=\fR\fIstandard\fR" 4
3884 .IX Item "-std=standard"
3885 .PD 0
3886 .Ip "\fB\-ansi\fR" 4
3887 .IX Item "-ansi"
3888 .PD
3889 Specify the standard to which the code should conform.  Currently cpp
3890 only knows about the standards for C; other language standards will be
3891 added in the future.
3892 .Sp
3893 \&\fIstandard\fR
3894 may be one of:
3895 .RS 4
3896 .if n .Ip "\f(CW""""iso9899:1990""""\fR" 4
3897 .el .Ip "\f(CWiso9899:1990\fR" 4
3898 .IX Item "iso9899:1990"
3899 .PD 0
3900 .if n .Ip "\f(CW""""c89""""\fR" 4
3901 .el .Ip "\f(CWc89\fR" 4
3902 .IX Item "c89"
3903 .PD
3904 The \s-1ISO\s0 C standard from 1990.  \fBc89\fR is the customary shorthand for
3905 this version of the standard.
3906 .Sp
3907 The \fB\-ansi\fR option is equivalent to \fB\-std=c89\fR.
3908 .if n .Ip "\f(CW""""iso9899:199409""""\fR" 4
3909 .el .Ip "\f(CWiso9899:199409\fR" 4
3910 .IX Item "iso9899:199409"
3911 The 1990 C standard, as amended in 1994.
3912 .if n .Ip "\f(CW""""iso9899:1999""""\fR" 4
3913 .el .Ip "\f(CWiso9899:1999\fR" 4
3914 .IX Item "iso9899:1999"
3915 .PD 0
3916 .if n .Ip "\f(CW""""c99""""\fR" 4
3917 .el .Ip "\f(CWc99\fR" 4
3918 .IX Item "c99"
3919 .if n .Ip "\f(CW""""iso9899:199x""""\fR" 4
3920 .el .Ip "\f(CWiso9899:199x\fR" 4
3921 .IX Item "iso9899:199x"
3922 .if n .Ip "\f(CW""""c9x""""\fR" 4
3923 .el .Ip "\f(CWc9x\fR" 4
3924 .IX Item "c9x"
3925 .PD
3926 The revised \s-1ISO\s0 C standard, published in December 1999.  Before
3927 publication, this was known as C9X.
3928 .if n .Ip "\f(CW""""gnu89""""\fR" 4
3929 .el .Ip "\f(CWgnu89\fR" 4
3930 .IX Item "gnu89"
3931 The 1990 C standard plus \s-1GNU\s0 extensions.  This is the default.
3932 .if n .Ip "\f(CW""""gnu99""""\fR" 4
3933 .el .Ip "\f(CWgnu99\fR" 4
3934 .IX Item "gnu99"
3935 .PD 0
3936 .if n .Ip "\f(CW""""gnu9x""""\fR" 4
3937 .el .Ip "\f(CWgnu9x\fR" 4
3938 .IX Item "gnu9x"
3939 .PD
3940 The 1999 C standard plus \s-1GNU\s0 extensions.
3941 .RE
3942 .RS 4
3943 .RE
3944 .Ip "\fB\-I-\fR" 4
3945 .IX Item "-I-"
3946 Split the include path.  Any directories specified with \fB\-I\fR
3947 options before \fB\-I-\fR are searched only for headers requested with
3948 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
3949 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR.  If additional directories are
3950 specified with \fB\-I\fR options after the \fB\-I-\fR, those
3951 directories are searched for all \fB#include\fR directives.
3952 .Sp
3953 In addition, \fB\-I-\fR inhibits the use of the directory of the current
3954 file directory as the first search directory for \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR.
3955 .Ip "\fB\-nostdinc\fR" 4
3956 .IX Item "-nostdinc"
3957 Do not search the standard system directories for header files.
3958 Only the directories you have specified with \fB\-I\fR options
3959 (and the directory of the current file, if appropriate) are searched.
3960 .Ip "\fB\-nostdinc++\fR" 4
3961 .IX Item "-nostdinc++"
3962 Do not search for header files in the \*(C+\-specific standard directories,
3963 but do still search the other standard directories.  (This option is
3964 used when building the \*(C+ library.)
3965 .Ip "\fB\-include\fR \fIfile\fR" 4
3966 .IX Item "-include file"
3967 Process \fIfile\fR as if \f(CW\*(C`#include "file"\*(C'\fR appeared as the first
3968 line of the primary source file.  However, the first directory searched
3969 for \fIfile\fR is the preprocessor's working directory \fIinstead of\fR
3970 the directory containing the main source file.  If not found there, it
3971 is searched for in the remainder of the \f(CW\*(C`#include "..."\*(C'\fR search
3972 chain as normal.
3973 .Sp
3974 If multiple \fB\-include\fR options are given, the files are included
3975 in the order they appear on the command line.
3976 .Ip "\fB\-imacros\fR \fIfile\fR" 4
3977 .IX Item "-imacros file"
3978 Exactly like \fB\-include\fR, except that any output produced by
3979 scanning \fIfile\fR is thrown away.  Macros it defines remain defined.
3980 This allows you to acquire all the macros from a header without also
3981 processing its declarations.
3982 .Sp
3983 All files specified by \fB\-imacros\fR are processed before all files
3984 specified by \fB\-include\fR.
3985 .Ip "\fB\-idirafter\fR \fIdir\fR" 4
3986 .IX Item "-idirafter dir"
3987 Search \fIdir\fR for header files, but do it \fIafter\fR all
3988 directories specified with \fB\-I\fR and the standard system directories
3989 have been exhausted.  \fIdir\fR is treated as a system include directory.
3990 .Ip "\fB\-iprefix\fR \fIprefix\fR" 4
3991 .IX Item "-iprefix prefix"
3992 Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
3993 options.  If the prefix represents a directory, you should include the
3994 final \fB/\fR.
3995 .Ip "\fB\-iwithprefix\fR \fIdir\fR" 4
3996 .IX Item "-iwithprefix dir"
3997 .PD 0
3998 .Ip "\fB\-iwithprefixbefore\fR \fIdir\fR" 4
3999 .IX Item "-iwithprefixbefore dir"
4000 .PD
4001 Append \fIdir\fR to the prefix specified previously with
4002 \&\fB\-iprefix\fR, and add the resulting directory to the include search
4003 path.  \fB\-iwithprefixbefore\fR puts it in the same place \fB\-I\fR
4004 would; \fB\-iwithprefix\fR puts it where \fB\-idirafter\fR would.
4005 .Sp
4006 Use of these options is discouraged.
4007 .Ip "\fB\-isystem\fR \fIdir\fR" 4
4008 .IX Item "-isystem dir"
4009 Search \fIdir\fR for header files, after all directories specified by
4010 \&\fB\-I\fR but before the standard system directories.  Mark it
4011 as a system directory, so that it gets the same special treatment as
4012 is applied to the standard system directories.
4013 .Ip "\fB\-fpreprocessed\fR" 4
4014 .IX Item "-fpreprocessed"
4015 Indicate to the preprocessor that the input file has already been
4016 preprocessed.  This suppresses things like macro expansion, trigraph
4017 conversion, escaped newline splicing, and processing of most directives.
4018 The preprocessor still recognizes and removes comments, so that you can
4019 pass a file preprocessed with \fB\-C\fR to the compiler without
4020 problems.  In this mode the integrated preprocessor is little more than
4021 a tokenizer for the front ends.
4022 .Sp
4023 \&\fB\-fpreprocessed\fR is implicit if the input file has one of the
4024 extensions \fB.i\fR, \fB.ii\fR or \fB.mi\fR.  These are the
4025 extensions that \s-1GCC\s0 uses for preprocessed files created by
4026 \&\fB\-save-temps\fR.
4027 .Ip "\fB\-ftabstop=\fR\fIwidth\fR" 4
4028 .IX Item "-ftabstop=width"
4029 Set the distance between tab stops.  This helps the preprocessor report
4030 correct column numbers in warnings or errors, even if tabs appear on the
4031 line.  If the value is less than 1 or greater than 100, the option is
4032 ignored.  The default is 8.
4033 .Ip "\fB\-fno-show-column\fR" 4
4034 .IX Item "-fno-show-column"
4035 Do not print column numbers in diagnostics.  This may be necessary if
4036 diagnostics are being scanned by a program that does not understand the
4037 column numbers, such as \fBdejagnu\fR.
4038 .Ip "\fB\-A\fR \fIpredicate\fR\fB=\fR\fIanswer\fR" 4
4039 .IX Item "-A predicate=answer"
4040 Make an assertion with the predicate \fIpredicate\fR and answer
4041 \&\fIanswer\fR.  This form is preferred to the older form \fB\-A\fR
4042 \&\fIpredicate\fR\fB(\fR\fIanswer\fR\fB)\fR, which is still supported, because
4043 it does not use shell special characters.
4044 .Ip "\fB\-A -\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4
4045 .IX Item "-A -predicate=answer"
4046 Cancel an assertion with the predicate \fIpredicate\fR and answer
4047 \&\fIanswer\fR.
4048 .Ip "\fB\-A-\fR" 4
4049 .IX Item "-A-"
4050 Cancel all predefined assertions and all assertions preceding it on
4051 the command line.  Also, undefine all predefined macros and all
4052 macros preceding it on the command line.  (This is a historical wart and
4053 may change in the future.)
4054 .Ip "\fB\-dCHARS\fR" 4
4055 .IX Item "-dCHARS"
4056 \&\fI\s-1CHARS\s0\fR is a sequence of one or more of the following characters,
4057 and must not be preceded by a space.  Other characters are interpreted
4058 by the compiler proper, or reserved for future versions of \s-1GCC\s0, and so
4059 are silently ignored.  If you specify characters whose behavior
4060 conflicts, the result is undefined.
4061 .RS 4
4062 .Ip "\fBM\fR" 4
4063 .IX Item "M"
4064 Instead of the normal output, generate a list of \fB#define\fR
4065 directives for all the macros defined during the execution of the
4066 preprocessor, including predefined macros.  This gives you a way of
4067 finding out what is predefined in your version of the preprocessor.
4068 Assuming you have no file \fIfoo.h\fR, the command
4069 .Sp
4070 .Vb 1
4071 \&        touch foo.h; cpp -dM foo.h
4072 .Ve
4073 will show all the predefined macros.
4074 .Ip "\fBD\fR" 4
4075 .IX Item "D"
4076 Like \fBM\fR except in two respects: it does \fInot\fR include the
4077 predefined macros, and it outputs \fIboth\fR the \fB#define\fR
4078 directives and the result of preprocessing.  Both kinds of output go to
4079 the standard output file.
4080 .Ip "\fBN\fR" 4
4081 .IX Item "N"
4082 Like \fBD\fR, but emit only the macro names, not their expansions.
4083 .Ip "\fBI\fR" 4
4084 .IX Item "I"
4085 Output \fB#include\fR directives in addition to the result of
4086 preprocessing.
4087 .RE
4088 .RS 4
4089 .RE
4090 .Ip "\fB\-P\fR" 4
4091 .IX Item "-P"
4092 Inhibit generation of linemarkers in the output from the preprocessor.
4093 This might be useful when running the preprocessor on something that is
4094 not C code, and will be sent to a program which might be confused by the
4095 linemarkers.
4096 .Ip "\fB\-C\fR" 4
4097 .IX Item "-C"
4098 Do not discard comments.  All comments are passed through to the output
4099 file, except for comments in processed directives, which are deleted
4100 along with the directive.
4101 .Sp
4102 You should be prepared for side effects when using \fB\-C\fR; it
4103 causes the preprocessor to treat comments as tokens in their own right.
4104 For example, comments appearing at the start of what would be a
4105 directive line have the effect of turning that line into an ordinary
4106 source line, since the first token on the line is no longer a \fB#\fR.
4107 .Ip "\fB\-gcc\fR" 4
4108 .IX Item "-gcc"
4109 Define the macros _\|_GNUC_\|_, _\|_GNUC_MINOR_\|_ and
4110 _\|_GNUC_PATCHLEVEL_\|_.  These are defined automatically when you use
4111 \&\fBgcc \-E\fR; you can turn them off in that case with
4112 \&\fB\-no-gcc\fR.
4113 .Ip "\fB\-traditional\fR" 4
4114 .IX Item "-traditional"
4115 Try to imitate the behavior of old-fashioned C, as opposed to \s-1ISO\s0
4116 C.
4117 .Ip "\fB\-trigraphs\fR" 4
4118 .IX Item "-trigraphs"
4119 Process trigraph sequences.
4120 These are three-character sequences, all starting with \fB??\fR, that
4121 are defined by \s-1ISO\s0 C to stand for single characters.  For example,
4122 \&\fB??/\fR stands for \fB\e\fR, so \fB'??/n'\fR is a character
4123 constant for a newline.  By default, \s-1GCC\s0 ignores trigraphs, but in
4124 standard-conforming modes it converts them.  See the \fB\-std\fR and
4125 \&\fB\-ansi\fR options.
4126 .Sp
4127 The nine trigraphs and their replacements are
4128 .Sp
4129 .Vb 2
4130 \&        Trigraph:       ??(  ??)  ??<  ??>  ??=  ??/  ??'  ??!  ??-
4131 \&        Replacement:      [    ]    {    }    #    \e    ^    |    ~
4132 .Ve
4133 .Ip "\fB\-remap\fR" 4
4134 .IX Item "-remap"
4135 Enable special code to work around file systems which only permit very
4136 short file names, such as \s-1MS-DOS\s0.
4137 .Ip "\fB\-$\fR" 4
4138 .IX Item "-$"
4139 Forbid the use of \fB$\fR in identifiers.  The C standard allows
4140 implementations to define extra characters that can appear in
4141 identifiers.  By default \s-1GNU\s0 \s-1CPP\s0 permits \fB$\fR, a common extension.
4142 .Ip "\fB\-h\fR" 4
4143 .IX Item "-h"
4144 .PD 0
4145 .Ip "\fB\*(--help\fR" 4
4146 .IX Item "help"
4147 .Ip "\fB\*(--target-help\fR" 4
4148 .IX Item "target-help"
4149 .PD
4150 Print text describing all the command line options instead of
4151 preprocessing anything.
4152 .Ip "\fB\-v\fR" 4
4153 .IX Item "-v"
4154 Verbose mode.  Print out \s-1GNU\s0 \s-1CPP\s0's version number at the beginning of
4155 execution, and report the final form of the include path.
4156 .Ip "\fB\-H\fR" 4
4157 .IX Item "-H"
4158 Print the name of each header file used, in addition to other normal
4159 activities.  Each name is indented to show how deep in the
4160 \&\fB#include\fR stack it is.
4161 .Ip "\fB\-version\fR" 4
4162 .IX Item "-version"
4163 .PD 0
4164 .Ip "\fB\*(--version\fR" 4
4165 .IX Item "version"
4166 .PD
4167 Print out \s-1GNU\s0 \s-1CPP\s0's version number.  With one dash, proceed to
4168 preprocess as normal.  With two dashes, exit immediately.
4169 .Sh "Passing Options to the Assembler"
4170 .IX Subsection "Passing Options to the Assembler"
4171 You can pass options to the assembler.
4172 .Ip "\fB\-Wa,\fR\fIoption\fR" 4
4173 .IX Item "-Wa,option"
4174 Pass \fIoption\fR as an option to the assembler.  If \fIoption\fR
4175 contains commas, it is split into multiple options at the commas.
4176 .Sh "Options for Linking"
4177 .IX Subsection "Options for Linking"
4178 These options come into play when the compiler links object files into
4179 an executable output file.  They are meaningless if the compiler is
4180 not doing a link step.
4181 .Ip "\fIobject-file-name\fR" 4
4182 .IX Item "object-file-name"
4183 A file name that does not end in a special recognized suffix is
4184 considered to name an object file or library.  (Object files are
4185 distinguished from libraries by the linker according to the file
4186 contents.)  If linking is done, these object files are used as input
4187 to the linker.
4188 .Ip "\fB\-c\fR" 4
4189 .IX Item "-c"
4190 .PD 0
4191 .Ip "\fB\-S\fR" 4
4192 .IX Item "-S"
4193 .Ip "\fB\-E\fR" 4
4194 .IX Item "-E"
4195 .PD
4196 If any of these options is used, then the linker is not run, and
4197 object file names should not be used as arguments.  
4198 .Ip "\fB\-l\fR\fIlibrary\fR" 4
4199 .IX Item "-llibrary"
4200 .PD 0
4201 .Ip "\fB\-l\fR \fIlibrary\fR" 4
4202 .IX Item "-l library"
4203 .PD
4204 Search the library named \fIlibrary\fR when linking.  (The second
4205 alternative with the library as a separate argument is only for
4206 \&\s-1POSIX\s0 compliance and is not recommended.)
4207 .Sp
4208 It makes a difference where in the command you write this option; the
4209 linker searches and processes libraries and object files in the order they
4210 are specified.  Thus, \fBfoo.o \-lz bar.o\fR searches library \fBz\fR
4211 after file \fIfoo.o\fR but before \fIbar.o\fR.  If \fIbar.o\fR refers
4212 to functions in \fBz\fR, those functions may not be loaded.
4213 .Sp
4214 The linker searches a standard list of directories for the library,
4215 which is actually a file named \fIlib\fIlibrary\fI.a\fR.  The linker
4216 then uses this file as if it had been specified precisely by name.
4217 .Sp
4218 The directories searched include several standard system directories
4219 plus any that you specify with \fB\-L\fR.
4220 .Sp
4221 Normally the files found this way are library files\-\-\-archive files
4222 whose members are object files.  The linker handles an archive file by
4223 scanning through it for members which define symbols that have so far
4224 been referenced but not defined.  But if the file that is found is an
4225 ordinary object file, it is linked in the usual fashion.  The only
4226 difference between using an \fB\-l\fR option and specifying a file name
4227 is that \fB\-l\fR surrounds \fIlibrary\fR with \fBlib\fR and \fB.a\fR
4228 and searches several directories.
4229 .Ip "\fB\-lobjc\fR" 4
4230 .IX Item "-lobjc"
4231 You need this special case of the \fB\-l\fR option in order to
4232 link an Objective-C program.
4233 .Ip "\fB\-nostartfiles\fR" 4
4234 .IX Item "-nostartfiles"
4235 Do not use the standard system startup files when linking.
4236 The standard system libraries are used normally, unless \fB\-nostdlib\fR
4237 or \fB\-nodefaultlibs\fR is used.
4238 .Ip "\fB\-nodefaultlibs\fR" 4
4239 .IX Item "-nodefaultlibs"
4240 Do not use the standard system libraries when linking.
4241 Only the libraries you specify will be passed to the linker.
4242 The standard startup files are used normally, unless \fB\-nostartfiles\fR
4243 is used.  The compiler may generate calls to memcmp, memset, and memcpy
4244 for System V (and \s-1ISO\s0 C) environments or to bcopy and bzero for
4245 \&\s-1BSD\s0 environments.  These entries are usually resolved by entries in
4246 libc.  These entry points should be supplied through some other
4247 mechanism when this option is specified.
4248 .Ip "\fB\-nostdlib\fR" 4
4249 .IX Item "-nostdlib"
4250 Do not use the standard system startup files or libraries when linking.
4251 No startup files and only the libraries you specify will be passed to
4252 the linker.  The compiler may generate calls to memcmp, memset, and memcpy
4253 for System V (and \s-1ISO\s0 C) environments or to bcopy and bzero for
4254 \&\s-1BSD\s0 environments.  These entries are usually resolved by entries in
4255 libc.  These entry points should be supplied through some other
4256 mechanism when this option is specified.
4257 .Sp
4258 One of the standard libraries bypassed by \fB\-nostdlib\fR and
4259 \&\fB\-nodefaultlibs\fR is \fIlibgcc.a\fR, a library of internal subroutines
4260 that \s-1GCC\s0 uses to overcome shortcomings of particular machines, or special
4261 needs for some languages.
4262 .Sp
4263 In most cases, you need \fIlibgcc.a\fR even when you want to avoid
4264 other standard libraries.  In other words, when you specify \fB\-nostdlib\fR
4265 or \fB\-nodefaultlibs\fR you should usually specify \fB\-lgcc\fR as well.
4266 This ensures that you have no unresolved references to internal \s-1GCC\s0
4267 library subroutines.  (For example, \fB_\|_main\fR, used to ensure \*(C+
4268 constructors will be called.)
4269 .Ip "\fB\-s\fR" 4
4270 .IX Item "-s"
4271 Remove all symbol table and relocation information from the executable.
4272 .Ip "\fB\-static\fR" 4
4273 .IX Item "-static"
4274 On systems that support dynamic linking, this prevents linking with the shared
4275 libraries.  On other systems, this option has no effect.
4276 .Ip "\fB\-shared\fR" 4
4277 .IX Item "-shared"
4278 Produce a shared object which can then be linked with other objects to
4279 form an executable.  Not all systems support this option.  For predictable
4280 results, you must also specify the same set of options that were used to
4281 generate code (\fB\-fpic\fR, \fB\-fPIC\fR, or model suboptions)
4282 when you specify this option.[1]
4283 .Ip "\fB\-shared-libgcc\fR" 4
4284 .IX Item "-shared-libgcc"
4285 .PD 0
4286 .Ip "\fB\-static-libgcc\fR" 4
4287 .IX Item "-static-libgcc"
4288 .PD
4289 On systems that provide \fIlibgcc\fR as a shared library, these options
4290 force the use of either the shared or static version respectively.
4291 If no shared version of \fIlibgcc\fR was built when the compiler was
4292 configured, these options have no effect.
4293 .Sp
4294 There are several situations in which an application should use the
4295 shared \fIlibgcc\fR instead of the static version.  The most common
4296 of these is when the application wishes to throw and catch exceptions
4297 across different shared libraries.  In that case, each of the libraries
4298 as well as the application itself should use the shared \fIlibgcc\fR.
4299 .Sp
4300 Therefore, the G++ and \s-1GCJ\s0 drivers automatically add
4301 \&\fB\-shared-libgcc\fR whenever you build a shared library or a main
4302 executable, because \*(C+ and Java programs typically use exceptions, so
4303 this is the right thing to do.
4304 .Sp
4305 If, instead, you use the \s-1GCC\s0 driver to create shared libraries, you may
4306 find that they will not always be linked with the shared \fIlibgcc\fR.
4307 If \s-1GCC\s0 finds, at its configuration time, that you have a \s-1GNU\s0 linker that
4308 does not support option \fB\*(--eh-frame-hdr\fR, it will link the shared
4309 version of \fIlibgcc\fR into shared libraries by default.  Otherwise,
4310 it will take advantage of the linker and optimize away the linking with
4311 the shared version of \fIlibgcc\fR, linking with the static version of
4312 libgcc by default.  This allows exceptions to propagate through such
4313 shared libraries, without incurring relocation costs at library load
4314 time.
4315 .Sp
4316 However, if a library or main executable is supposed to throw or catch
4317 exceptions, you must link it using the G++ or \s-1GCJ\s0 driver, as appropriate
4318 for the languages used in the program, or using the option
4319 \&\fB\-shared-libgcc\fR, such that it is linked with the shared
4320 \&\fIlibgcc\fR.
4321 .Ip "\fB\-symbolic\fR" 4
4322 .IX Item "-symbolic"
4323 Bind references to global symbols when building a shared object.  Warn
4324 about any unresolved references (unless overridden by the link editor
4325 option \fB\-Xlinker \-z \-Xlinker defs\fR).  Only a few systems support
4326 this option.
4327 .Ip "\fB\-Xlinker\fR \fIoption\fR" 4
4328 .IX Item "-Xlinker option"
4329 Pass \fIoption\fR as an option to the linker.  You can use this to
4330 supply system-specific linker options which \s-1GCC\s0 does not know how to
4331 recognize.
4332 .Sp
4333 If you want to pass an option that takes an argument, you must use
4334 \&\fB\-Xlinker\fR twice, once for the option and once for the argument.
4335 For example, to pass \fB\-assert definitions\fR, you must write
4336 \&\fB\-Xlinker \-assert \-Xlinker definitions\fR.  It does not work to write
4337 \&\fB\-Xlinker \*(L"\-assert definitions\*(R"\fR, because this passes the entire
4338 string as a single argument, which is not what the linker expects.
4339 .Ip "\fB\-Wl,\fR\fIoption\fR" 4
4340 .IX Item "-Wl,option"
4341 Pass \fIoption\fR as an option to the linker.  If \fIoption\fR contains
4342 commas, it is split into multiple options at the commas.
4343 .Ip "\fB\-u\fR \fIsymbol\fR" 4
4344 .IX Item "-u symbol"
4345 Pretend the symbol \fIsymbol\fR is undefined, to force linking of
4346 library modules to define it.  You can use \fB\-u\fR multiple times with
4347 different symbols to force loading of additional library modules.
4348 .Sh "Options for Directory Search"
4349 .IX Subsection "Options for Directory Search"
4350 These options specify directories to search for header files, for
4351 libraries and for parts of the compiler:
4352 .Ip "\fB\-I\fR\fIdir\fR" 4
4353 .IX Item "-Idir"
4354 Add the directory \fIdir\fR to the head of the list of directories to be
4355 searched for header files.  This can be used to override a system header
4356 file, substituting your own version, since these directories are
4357 searched before the system header file directories.  However, you should
4358 not use this option to add directories that contain vendor-supplied
4359 system header files (use \fB\-isystem\fR for that).  If you use more than
4360 one \fB\-I\fR option, the directories are scanned in left-to-right
4361 order; the standard system directories come after.
4362 .Sp
4363 If a standard system include directory, or a directory specified with
4364 \&\fB\-isystem\fR, is also specified with \fB\-I\fR, the \fB\-I\fR
4365 option will be ignored.  The directory will still be searched but as a
4366 system directory at its normal position in the system include chain.
4367 This is to ensure that \s-1GCC\s0's procedure to fix buggy system headers and
4368 the ordering for the include_next directive are not inadvertantly changed.
4369 If you really need to change the search order for system directories,
4370 use the \fB\-nostdinc\fR and/or \fB\-isystem\fR options.
4371 .Ip "\fB\-I-\fR" 4
4372 .IX Item "-I-"
4373 Any directories you specify with \fB\-I\fR options before the \fB\-I-\fR
4374 option are searched only for the case of \fB#include "\fR\fIfile\fR\fB"\fR;
4375 they are not searched for \fB#include <\fR\fIfile\fR\fB>\fR.
4376 .Sp
4377 If additional directories are specified with \fB\-I\fR options after
4378 the \fB\-I-\fR, these directories are searched for all \fB#include\fR
4379 directives.  (Ordinarily \fIall\fR \fB\-I\fR directories are used
4380 this way.)
4381 .Sp
4382 In addition, the \fB\-I-\fR option inhibits the use of the current
4383 directory (where the current input file came from) as the first search
4384 directory for \fB#include "\fR\fIfile\fR\fB"\fR.  There is no way to
4385 override this effect of \fB\-I-\fR.  With \fB\-I.\fR you can specify
4386 searching the directory which was current when the compiler was
4387 invoked.  That is not exactly the same as what the preprocessor does
4388 by default, but it is often satisfactory.
4389 .Sp
4390 \&\fB\-I-\fR does not inhibit the use of the standard system directories
4391 for header files.  Thus, \fB\-I-\fR and \fB\-nostdinc\fR are
4392 independent.
4393 .Ip "\fB\-L\fR\fIdir\fR" 4
4394 .IX Item "-Ldir"
4395 Add directory \fIdir\fR to the list of directories to be searched
4396 for \fB\-l\fR.
4397 .Ip "\fB\-B\fR\fIprefix\fR" 4
4398 .IX Item "-Bprefix"
4399 This option specifies where to find the executables, libraries,
4400 include files, and data files of the compiler itself.
4401 .Sp
4402 The compiler driver program runs one or more of the subprograms
4403 \&\fIcpp\fR, \fIcc1\fR, \fIas\fR and \fIld\fR.  It tries
4404 \&\fIprefix\fR as a prefix for each program it tries to run, both with and
4405 without \fImachine\fR\fB/\fR\fIversion\fR\fB/\fR.
4406 .Sp
4407 For each subprogram to be run, the compiler driver first tries the
4408 \&\fB\-B\fR prefix, if any.  If that name is not found, or if \fB\-B\fR
4409 was not specified, the driver tries two standard prefixes, which are
4410 \&\fI/usr/lib/gcc/\fR and \fI/usr/local/lib/gcc-lib/\fR.  If neither of
4411 those results in a file name that is found, the unmodified program
4412 name is searched for using the directories specified in your
4413 \&\fB\s-1PATH\s0\fR environment variable.
4414 .Sp
4415 The compiler will check to see if the path provided by the \fB\-B\fR
4416 refers to a directory, and if necessary it will add a directory
4417 separator character at the end of the path.
4418 .Sp
4419 \&\fB\-B\fR prefixes that effectively specify directory names also apply
4420 to libraries in the linker, because the compiler translates these
4421 options into \fB\-L\fR options for the linker.  They also apply to
4422 includes files in the preprocessor, because the compiler translates these
4423 options into \fB\-isystem\fR options for the preprocessor.  In this case,
4424 the compiler appends \fBinclude\fR to the prefix.
4425 .Sp
4426 The run-time support file \fIlibgcc.a\fR can also be searched for using
4427 the \fB\-B\fR prefix, if needed.  If it is not found there, the two
4428 standard prefixes above are tried, and that is all.  The file is left
4429 out of the link if it is not found by those means.
4430 .Sp
4431 Another way to specify a prefix much like the \fB\-B\fR prefix is to use
4432 the environment variable \fB\s-1GCC_EXEC_PREFIX\s0\fR.  
4433 .Sp
4434 As a special kludge, if the path provided by \fB\-B\fR is
4435 \&\fI[dir/]stage\fIN\fI/\fR, where \fIN\fR is a number in the range 0 to
4436 9, then it will be replaced by \fI[dir/]include\fR.  This is to help
4437 with boot-strapping the compiler.
4438 .Ip "\fB\-specs=\fR\fIfile\fR" 4
4439 .IX Item "-specs=file"
4440 Process \fIfile\fR after the compiler reads in the standard \fIspecs\fR
4441 file, in order to override the defaults that the \fIgcc\fR driver
4442 program uses when determining what switches to pass to \fIcc1\fR,
4443 \&\fIcc1plus\fR, \fIas\fR, \fIld\fR, etc.  More than one
4444 \&\fB\-specs=\fR\fIfile\fR can be specified on the command line, and they
4445 are processed in order, from left to right.
4446 .Sh "Specifying Target Machine and Compiler Version"
4447 .IX Subsection "Specifying Target Machine and Compiler Version"
4448 By default, \s-1GCC\s0 compiles code for the same type of machine that you
4449 are using.  However, it can also be installed as a cross-compiler, to
4450 compile for some other type of machine.  In fact, several different
4451 configurations of \s-1GCC\s0, for different target machines, can be
4452 installed side by side.  Then you specify which one to use with the
4453 \&\fB\-b\fR option.
4454 .PP
4455 In addition, older and newer versions of \s-1GCC\s0 can be installed side
4456 by side.  One of them (probably the newest) will be the default, but
4457 you may sometimes wish to use another.
4458 .Ip "\fB\-b\fR \fImachine\fR" 4
4459 .IX Item "-b machine"
4460 The argument \fImachine\fR specifies the target machine for compilation.
4461 This is useful when you have installed \s-1GCC\s0 as a cross-compiler.
4462 .Sp
4463 The value to use for \fImachine\fR is the same as was specified as the
4464 machine type when configuring \s-1GCC\s0 as a cross-compiler.  For
4465 example, if a cross-compiler was configured with \fBconfigure
4466 i386v\fR, meaning to compile for an 80386 running System V, then you
4467 would specify \fB\-b i386v\fR to run that cross compiler.
4468 .Sp
4469 When you do not specify \fB\-b\fR, it normally means to compile for
4470 the same type of machine that you are using.
4471 .Ip "\fB\-V\fR \fIversion\fR" 4
4472 .IX Item "-V version"
4473 The argument \fIversion\fR specifies which version of \s-1GCC\s0 to run.
4474 This is useful when multiple versions are installed.  For example,
4475 \&\fIversion\fR might be \fB2.0\fR, meaning to run \s-1GCC\s0 version 2.0.
4476 .Sp
4477 The default version, when you do not specify \fB\-V\fR, is the last
4478 version of \s-1GCC\s0 that you installed.
4479 .PP
4480 The \fB\-b\fR and \fB\-V\fR options actually work by controlling part of
4481 the file name used for the executable files and libraries used for
4482 compilation.  A given version of \s-1GCC\s0, for a given target machine, is
4483 normally kept in the directory \fI/usr/local/lib/gcc-lib/\fImachine\fI/\fIversion\fI\fR.
4484 .PP
4485 Thus, sites can customize the effect of \fB\-b\fR or \fB\-V\fR either by
4486 changing the names of these directories or adding alternate names (or
4487 symbolic links).  If in directory \fI/usr/local/lib/gcc-lib/\fR the
4488 file \fI80386\fR is a link to the file \fIi386v\fR, then \fB\-b
4489 80386\fR becomes an alias for \fB\-b i386v\fR.
4490 .PP
4491 In one respect, the \fB\-b\fR or \fB\-V\fR do not completely change
4492 to a different compiler: the top-level driver program \fBgcc\fR
4493 that you originally invoked continues to run and invoke the other
4494 executables (preprocessor, compiler per se, assembler and linker)
4495 that do the real work.  However, since no real work is done in the
4496 driver program, it usually does not matter that the driver program
4497 in use is not the one for the specified target.  It is common for the
4498 interface to the other executables to change incompatibly between
4499 compiler versions, so unless the version specified is very close to that
4500 of the driver (for example, \fB\-V 3.0\fR with a driver program from \s-1GCC\s0
4501 version 3.0.1), use of \fB\-V\fR may not work; for example, using
4502 \&\fB\-V 2.95.2\fR will not work with a driver program from \s-1GCC\s0 3.0.
4503 .PP
4504 The only way that the driver program depends on the target machine is
4505 in the parsing and handling of special machine-specific options.
4506 However, this is controlled by a file which is found, along with the
4507 other executables, in the directory for the specified version and
4508 target machine.  As a result, a single installed driver program adapts
4509 to any specified target machine, and sufficiently similar compiler
4510 versions.
4511 .PP
4512 The driver program executable does control one significant thing,
4513 however: the default version and target machine.  Therefore, you can
4514 install different instances of the driver program, compiled for
4515 different targets or versions, under different names.
4516 .PP
4517 For example, if the driver for version 2.0 is installed as \fBogcc\fR
4518 and that for version 2.1 is installed as \fBgcc\fR, then the command
4519 \&\fBgcc\fR will use version 2.1 by default, while \fBogcc\fR will use
4520 2.0 by default.  However, you can choose either version with either
4521 command with the \fB\-V\fR option.
4522 .Sh "Hardware Models and Configurations"
4523 .IX Subsection "Hardware Models and Configurations"
4524 Earlier we discussed the standard option \fB\-b\fR which chooses among
4525 different installed compilers for completely different target
4526 machines, such as \s-1VAX\s0 vs. 68000 vs. 80386.
4527 .PP
4528 In addition, each of these target machine types can have its own
4529 special options, starting with \fB\-m\fR, to choose among various
4530 hardware models or configurations\-\-\-for example, 68010 vs 68020,
4531 floating coprocessor or none.  A single installed version of the
4532 compiler can compile for any model or configuration, according to the
4533 options specified.
4534 .PP
4535 Some configurations of the compiler also support additional special
4536 options, usually for compatibility with other compilers on the same
4537 platform.
4538 .PP
4539 These options are defined by the macro \f(CW\*(C`TARGET_SWITCHES\*(C'\fR in the
4540 machine description.  The default for the options is also defined by
4541 that macro, which enables you to change the defaults.
4542 .PP
4543 .I "M680x0 Options"
4544 .IX Subsection "M680x0 Options"
4545 .PP
4546 These are the \fB\-m\fR options defined for the 68000 series.  The default
4547 values for these options depends on which style of 68000 was selected when
4548 the compiler was configured; the defaults for the most common choices are
4549 given below.
4550 .Ip "\fB\-m68000\fR" 4
4551 .IX Item "-m68000"
4552 .PD 0
4553 .Ip "\fB\-mc68000\fR" 4
4554 .IX Item "-mc68000"
4555 .PD
4556 Generate output for a 68000.  This is the default
4557 when the compiler is configured for 68000\-based systems.
4558 .Sp
4559 Use this option for microcontrollers with a 68000 or \s-1EC000\s0 core,
4560 including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
4561 .Ip "\fB\-m68020\fR" 4
4562 .IX Item "-m68020"
4563 .PD 0
4564 .Ip "\fB\-mc68020\fR" 4
4565 .IX Item "-mc68020"
4566 .PD
4567 Generate output for a 68020.  This is the default
4568 when the compiler is configured for 68020\-based systems.
4569 .Ip "\fB\-m68881\fR" 4
4570 .IX Item "-m68881"
4571 Generate output containing 68881 instructions for floating point.
4572 This is the default for most 68020 systems unless \fB\*(--nfp\fR was
4573 specified when the compiler was configured.
4574 .Ip "\fB\-m68030\fR" 4
4575 .IX Item "-m68030"
4576 Generate output for a 68030.  This is the default when the compiler is
4577 configured for 68030\-based systems.
4578 .Ip "\fB\-m68040\fR" 4
4579 .IX Item "-m68040"
4580 Generate output for a 68040.  This is the default when the compiler is
4581 configured for 68040\-based systems.
4582 .Sp
4583 This option inhibits the use of 68881/68882 instructions that have to be
4584 emulated by software on the 68040.  Use this option if your 68040 does not
4585 have code to emulate those instructions.
4586 .Ip "\fB\-m68060\fR" 4
4587 .IX Item "-m68060"
4588 Generate output for a 68060.  This is the default when the compiler is
4589 configured for 68060\-based systems.
4590 .Sp
4591 This option inhibits the use of 68020 and 68881/68882 instructions that
4592 have to be emulated by software on the 68060.  Use this option if your 68060
4593 does not have code to emulate those instructions.
4594 .Ip "\fB\-mcpu32\fR" 4
4595 .IX Item "-mcpu32"
4596 Generate output for a \s-1CPU32\s0.  This is the default
4597 when the compiler is configured for CPU32\-based systems.
4598 .Sp
4599 Use this option for microcontrollers with a
4600 \&\s-1CPU32\s0 or \s-1CPU32+\s0 core, including the 68330, 68331, 68332, 68333, 68334,
4601 68336, 68340, 68341, 68349 and 68360.
4602 .Ip "\fB\-m5200\fR" 4
4603 .IX Item "-m5200"
4604 Generate output for a 520X ``coldfire'' family cpu.  This is the default
4605 when the compiler is configured for 520X-based systems.
4606 .Sp
4607 Use this option for microcontroller with a 5200 core, including
4608 the \s-1MCF5202\s0, \s-1MCF5203\s0, \s-1MCF5204\s0 and \s-1MCF5202\s0.
4609 .Ip "\fB\-m68020\-40\fR" 4
4610 .IX Item "-m68020-40"
4611 Generate output for a 68040, without using any of the new instructions.
4612 This results in code which can run relatively efficiently on either a
4613 68020/68881 or a 68030 or a 68040.  The generated code does use the
4614 68881 instructions that are emulated on the 68040.
4615 .Ip "\fB\-m68020\-60\fR" 4
4616 .IX Item "-m68020-60"
4617 Generate output for a 68060, without using any of the new instructions.
4618 This results in code which can run relatively efficiently on either a
4619 68020/68881 or a 68030 or a 68040.  The generated code does use the
4620 68881 instructions that are emulated on the 68060.
4621 .Ip "\fB\-mfpa\fR" 4
4622 .IX Item "-mfpa"
4623 Generate output containing Sun \s-1FPA\s0 instructions for floating point.
4624 .Ip "\fB\-msoft-float\fR" 4
4625 .IX Item "-msoft-float"
4626 Generate output containing library calls for floating point.
4627 \&\fBWarning:\fR the requisite libraries are not available for all m68k
4628 targets.  Normally the facilities of the machine's usual C compiler are
4629 used, but this can't be done directly in cross-compilation.  You must
4630 make your own arrangements to provide suitable library functions for
4631 cross-compilation.  The embedded targets \fBm68k-*\-aout\fR and
4632 \&\fBm68k-*\-coff\fR do provide software floating point support.
4633 .Ip "\fB\-mshort\fR" 4
4634 .IX Item "-mshort"
4635 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
4636 .Ip "\fB\-mnobitfield\fR" 4
4637 .IX Item "-mnobitfield"
4638 Do not use the bit-field instructions.  The \fB\-m68000\fR, \fB\-mcpu32\fR
4639 and \fB\-m5200\fR options imply \fB\-mnobitfield\fR.
4640 .Ip "\fB\-mbitfield\fR" 4
4641 .IX Item "-mbitfield"
4642 Do use the bit-field instructions.  The \fB\-m68020\fR option implies
4643 \&\fB\-mbitfield\fR.  This is the default if you use a configuration
4644 designed for a 68020.
4645 .Ip "\fB\-mrtd\fR" 4
4646 .IX Item "-mrtd"
4647 Use a different function-calling convention, in which functions
4648 that take a fixed number of arguments return with the \f(CW\*(C`rtd\*(C'\fR
4649 instruction, which pops their arguments while returning.  This
4650 saves one instruction in the caller since there is no need to pop
4651 the arguments there.
4652 .Sp
4653 This calling convention is incompatible with the one normally
4654 used on Unix, so you cannot use it if you need to call libraries
4655 compiled with the Unix compiler.
4656 .Sp
4657 Also, you must provide function prototypes for all functions that
4658 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
4659 otherwise incorrect code will be generated for calls to those
4660 functions.
4661 .Sp
4662 In addition, seriously incorrect code will result if you call a
4663 function with too many arguments.  (Normally, extra arguments are
4664 harmlessly ignored.)
4665 .Sp
4666 The \f(CW\*(C`rtd\*(C'\fR instruction is supported by the 68010, 68020, 68030,
4667 68040, 68060 and \s-1CPU32\s0 processors, but not by the 68000 or 5200.
4668 .Ip "\fB\-malign-int\fR" 4
4669 .IX Item "-malign-int"
4670 .PD 0
4671 .Ip "\fB\-mno-align-int\fR" 4
4672 .IX Item "-mno-align-int"
4673 .PD
4674 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,
4675 \&\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
4676 boundary (\fB\-malign-int\fR) or a 16\-bit boundary (\fB\-mno-align-int\fR).
4677 Aligning variables on 32\-bit boundaries produces code that runs somewhat
4678 faster on processors with 32\-bit busses at the expense of more memory.
4679 .Sp
4680 \&\fBWarning:\fR if you use the \fB\-malign-int\fR switch, \s-1GCC\s0 will
4681 align structures containing the above types  differently than
4682 most published application binary interface specifications for the m68k.
4683 .Ip "\fB\-mpcrel\fR" 4
4684 .IX Item "-mpcrel"
4685 Use the pc-relative addressing mode of the 68000 directly, instead of
4686 using a global offset table.  At present, this option implies \fB\-fpic\fR,
4687 allowing at most a 16\-bit offset for pc-relative addressing.  \fB\-fPIC\fR is
4688 not presently supported with \fB\-mpcrel\fR, though this could be supported for
4689 68020 and higher processors.
4690 .Ip "\fB\-mno-strict-align\fR" 4
4691 .IX Item "-mno-strict-align"
4692 .PD 0
4693 .Ip "\fB\-mstrict-align\fR" 4
4694 .IX Item "-mstrict-align"
4695 .PD
4696 Do not (do) assume that unaligned memory references will be handled by
4697 the system.
4698 .PP
4699 .I "M68hc1x Options"
4700 .IX Subsection "M68hc1x Options"
4701 .PP
4702 These are the \fB\-m\fR options defined for the 68hc11 and 68hc12
4703 microcontrollers.  The default values for these options depends on
4704 which style of microcontroller was selected when the compiler was configured;
4705 the defaults for the most common choices are given below.
4706 .Ip "\fB\-m6811\fR" 4
4707 .IX Item "-m6811"
4708 .PD 0
4709 .Ip "\fB\-m68hc11\fR" 4
4710 .IX Item "-m68hc11"
4711 .PD
4712 Generate output for a 68HC11.  This is the default
4713 when the compiler is configured for 68HC11\-based systems.
4714 .Ip "\fB\-m6812\fR" 4
4715 .IX Item "-m6812"
4716 .PD 0
4717 .Ip "\fB\-m68hc12\fR" 4
4718 .IX Item "-m68hc12"
4719 .PD
4720 Generate output for a 68HC12.  This is the default
4721 when the compiler is configured for 68HC12\-based systems.
4722 .Ip "\fB\-mauto-incdec\fR" 4
4723 .IX Item "-mauto-incdec"
4724 Enable the use of 68HC12 pre and post auto-increment and auto-decrement
4725 addressing modes.
4726 .Ip "\fB\-mshort\fR" 4
4727 .IX Item "-mshort"
4728 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
4729 .Ip "\fB\-msoft-reg-count=\fR\fIcount\fR" 4
4730 .IX Item "-msoft-reg-count=count"
4731 Specify the number of pseudo-soft registers which are used for the
4732 code generation.  The maximum number is 32.  Using more pseudo-soft
4733 register may or may not result in better code depending on the program.
4734 The default is 4 for 68HC11 and 2 for 68HC12.
4735 .PP
4736 .I "\s-1VAX\s0 Options"
4737 .IX Subsection "VAX Options"
4738 .PP
4739 These \fB\-m\fR options are defined for the \s-1VAX:\s0
4740 .Ip "\fB\-munix\fR" 4
4741 .IX Item "-munix"
4742 Do not output certain jump instructions (\f(CW\*(C`aobleq\*(C'\fR and so on)
4743 that the Unix assembler for the \s-1VAX\s0 cannot handle across long
4744 ranges.
4745 .Ip "\fB\-mgnu\fR" 4
4746 .IX Item "-mgnu"
4747 Do output those jump instructions, on the assumption that you
4748 will assemble with the \s-1GNU\s0 assembler.
4749 .Ip "\fB\-mg\fR" 4
4750 .IX Item "-mg"
4751 Output code for g-format floating point numbers instead of d-format.
4752 .PP
4753 .I "\s-1SPARC\s0 Options"
4754 .IX Subsection "SPARC Options"
4755 .PP
4756 These \fB\-m\fR switches are supported on the \s-1SPARC:\s0
4757 .Ip "\fB\-mno-app-regs\fR" 4
4758 .IX Item "-mno-app-regs"
4759 .PD 0
4760 .Ip "\fB\-mapp-regs\fR" 4
4761 .IX Item "-mapp-regs"
4762 .PD
4763 Specify \fB\-mapp-regs\fR to generate output using the global registers
4764 2 through 4, which the \s-1SPARC\s0 \s-1SVR4\s0 \s-1ABI\s0 reserves for applications.  This
4765 is the default.
4766 .Sp
4767 To be fully \s-1SVR4\s0 \s-1ABI\s0 compliant at the cost of some performance loss,
4768 specify \fB\-mno-app-regs\fR.  You should compile libraries and system
4769 software with this option.
4770 .Ip "\fB\-mfpu\fR" 4
4771 .IX Item "-mfpu"
4772 .PD 0
4773 .Ip "\fB\-mhard-float\fR" 4
4774 .IX Item "-mhard-float"
4775 .PD
4776 Generate output containing floating point instructions.  This is the
4777 default.
4778 .Ip "\fB\-mno-fpu\fR" 4
4779 .IX Item "-mno-fpu"
4780 .PD 0
4781 .Ip "\fB\-msoft-float\fR" 4
4782 .IX Item "-msoft-float"
4783 .PD
4784 Generate output containing library calls for floating point.
4785 \&\fBWarning:\fR the requisite libraries are not available for all \s-1SPARC\s0
4786 targets.  Normally the facilities of the machine's usual C compiler are
4787 used, but this cannot be done directly in cross-compilation.  You must make
4788 your own arrangements to provide suitable library functions for
4789 cross-compilation.  The embedded targets \fBsparc-*\-aout\fR and
4790 \&\fBsparclite-*\-*\fR do provide software floating point support.
4791 .Sp
4792 \&\fB\-msoft-float\fR changes the calling convention in the output file;
4793 therefore, it is only useful if you compile \fIall\fR of a program with
4794 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
4795 library that comes with \s-1GCC\s0, with \fB\-msoft-float\fR in order for
4796 this to work.
4797 .Ip "\fB\-mhard-quad-float\fR" 4
4798 .IX Item "-mhard-quad-float"
4799 Generate output containing quad-word (long double) floating point
4800 instructions.
4801 .Ip "\fB\-msoft-quad-float\fR" 4
4802 .IX Item "-msoft-quad-float"
4803 Generate output containing library calls for quad-word (long double)
4804 floating point instructions.  The functions called are those specified
4805 in the \s-1SPARC\s0 \s-1ABI\s0.  This is the default.
4806 .Sp
4807 As of this writing, there are no sparc implementations that have hardware
4808 support for the quad-word floating point instructions.  They all invoke
4809 a trap handler for one of these instructions, and then the trap handler
4810 emulates the effect of the instruction.  Because of the trap handler overhead,
4811 this is much slower than calling the \s-1ABI\s0 library routines.  Thus the
4812 \&\fB\-msoft-quad-float\fR option is the default.
4813 .Ip "\fB\-mno-flat\fR" 4
4814 .IX Item "-mno-flat"
4815 .PD 0
4816 .Ip "\fB\-mflat\fR" 4
4817 .IX Item "-mflat"
4818 .PD
4819 With \fB\-mflat\fR, the compiler does not generate save/restore instructions
4820 and will use a ``flat'' or single register window calling convention.
4821 This model uses \f(CW%i7\fR as the frame pointer and is compatible with the normal
4822 register window model.  Code from either may be intermixed.
4823 The local registers and the input registers (0\*(--5) are still treated as
4824 ``call saved'' registers and will be saved on the stack as necessary.
4825 .Sp
4826 With \fB\-mno-flat\fR (the default), the compiler emits save/restore
4827 instructions (except for leaf functions) and is the normal mode of operation.
4828 .Ip "\fB\-mno-unaligned-doubles\fR" 4
4829 .IX Item "-mno-unaligned-doubles"
4830 .PD 0
4831 .Ip "\fB\-munaligned-doubles\fR" 4
4832 .IX Item "-munaligned-doubles"
4833 .PD
4834 Assume that doubles have 8 byte alignment.  This is the default.
4835 .Sp
4836 With \fB\-munaligned-doubles\fR, \s-1GCC\s0 assumes that doubles have 8 byte
4837 alignment only if they are contained in another type, or if they have an
4838 absolute address.  Otherwise, it assumes they have 4 byte alignment.
4839 Specifying this option avoids some rare compatibility problems with code
4840 generated by other compilers.  It is not the default because it results
4841 in a performance loss, especially for floating point code.
4842 .Ip "\fB\-mno-faster-structs\fR" 4
4843 .IX Item "-mno-faster-structs"
4844 .PD 0
4845 .Ip "\fB\-mfaster-structs\fR" 4
4846 .IX Item "-mfaster-structs"
4847 .PD
4848 With \fB\-mfaster-structs\fR, the compiler assumes that structures
4849 should have 8 byte alignment.  This enables the use of pairs of
4850 \&\f(CW\*(C`ldd\*(C'\fR and \f(CW\*(C`std\*(C'\fR instructions for copies in structure
4851 assignment, in place of twice as many \f(CW\*(C`ld\*(C'\fR and \f(CW\*(C`st\*(C'\fR pairs.
4852 However, the use of this changed alignment directly violates the Sparc
4853 \&\s-1ABI\s0.  Thus, it's intended only for use on targets where the developer
4854 acknowledges that their resulting code will not be directly in line with
4855 the rules of the \s-1ABI\s0.
4856 .Ip "\fB\-mv8\fR" 4
4857 .IX Item "-mv8"
4858 .PD 0
4859 .Ip "\fB\-msparclite\fR" 4
4860 .IX Item "-msparclite"
4861 .PD
4862 These two options select variations on the \s-1SPARC\s0 architecture.
4863 .Sp
4864 By default (unless specifically configured for the Fujitsu SPARClite),
4865 \&\s-1GCC\s0 generates code for the v7 variant of the \s-1SPARC\s0 architecture.
4866 .Sp
4867 \&\fB\-mv8\fR will give you \s-1SPARC\s0 v8 code.  The only difference from v7
4868 code is that the compiler emits the integer multiply and integer
4869 divide instructions which exist in \s-1SPARC\s0 v8 but not in \s-1SPARC\s0 v7.
4870 .Sp
4871 \&\fB\-msparclite\fR will give you SPARClite code.  This adds the integer
4872 multiply, integer divide step and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which
4873 exist in SPARClite but not in \s-1SPARC\s0 v7.
4874 .Sp
4875 These options are deprecated and will be deleted in a future \s-1GCC\s0 release.
4876 They have been replaced with \fB\-mcpu=xxx\fR.
4877 .Ip "\fB\-mcypress\fR" 4
4878 .IX Item "-mcypress"
4879 .PD 0
4880 .Ip "\fB\-msupersparc\fR" 4
4881 .IX Item "-msupersparc"
4882 .PD
4883 These two options select the processor for which the code is optimized.
4884 .Sp
4885 With \fB\-mcypress\fR (the default), the compiler optimizes code for the
4886 Cypress \s-1CY7C602\s0 chip, as used in the SparcStation/SparcServer 3xx series.
4887 This is also appropriate for the older SparcStation 1, 2, \s-1IPX\s0 etc.
4888 .Sp
4889 With \fB\-msupersparc\fR the compiler optimizes code for the SuperSparc cpu, as
4890 used in the SparcStation 10, 1000 and 2000 series.  This flag also enables use
4891 of the full \s-1SPARC\s0 v8 instruction set.
4892 .Sp
4893 These options are deprecated and will be deleted in a future \s-1GCC\s0 release.
4894 They have been replaced with \fB\-mcpu=xxx\fR.
4895 .Ip "\fB\-mcpu=\fR\fIcpu_type\fR" 4
4896 .IX Item "-mcpu=cpu_type"
4897 Set the instruction set, register set, and instruction scheduling parameters
4898 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
4899 \&\fBv7\fR, \fBcypress\fR, \fBv8\fR, \fBsupersparc\fR, \fBsparclite\fR,
4900 \&\fBhypersparc\fR, \fBsparclite86x\fR, \fBf930\fR, \fBf934\fR,
4901 \&\fBsparclet\fR, \fBtsc701\fR, \fBv9\fR, and \fBultrasparc\fR.
4902 .Sp
4903 Default instruction scheduling parameters are used for values that select
4904 an architecture and not an implementation.  These are \fBv7\fR, \fBv8\fR,
4905 \&\fBsparclite\fR, \fBsparclet\fR, \fBv9\fR.
4906 .Sp
4907 Here is a list of each supported architecture and their supported
4908 implementations.
4909 .Sp
4910 .Vb 5
4911 \&            v7:             cypress
4912 \&            v8:             supersparc, hypersparc
4913 \&            sparclite:      f930, f934, sparclite86x
4914 \&            sparclet:       tsc701
4915 \&            v9:             ultrasparc
4916 .Ve
4917 .Ip "\fB\-mtune=\fR\fIcpu_type\fR" 4
4918 .IX Item "-mtune=cpu_type"
4919 Set the instruction scheduling parameters for machine type
4920 \&\fIcpu_type\fR, but do not set the instruction set or register set that the
4921 option \fB\-mcpu=\fR\fIcpu_type\fR would.
4922 .Sp
4923 The same values for \fB\-mcpu=\fR\fIcpu_type\fR can be used for
4924 \&\fB\-mtune=\fR\fIcpu_type\fR, but the only useful values are those
4925 that select a particular cpu implementation.  Those are \fBcypress\fR,
4926 \&\fBsupersparc\fR, \fBhypersparc\fR, \fBf930\fR, \fBf934\fR,
4927 \&\fBsparclite86x\fR, \fBtsc701\fR, and \fBultrasparc\fR.
4928 .PP
4929 These \fB\-m\fR switches are supported in addition to the above
4930 on the \s-1SPARCLET\s0 processor.
4931 .Ip "\fB\-mlittle-endian\fR" 4
4932 .IX Item "-mlittle-endian"
4933 Generate code for a processor running in little-endian mode.
4934 .Ip "\fB\-mlive-g0\fR" 4
4935 .IX Item "-mlive-g0"
4936 Treat register \f(CW\*(C`%g0\*(C'\fR as a normal register.
4937 \&\s-1GCC\s0 will continue to clobber it as necessary but will not assume
4938 it always reads as 0.
4939 .Ip "\fB\-mbroken-saverestore\fR" 4
4940 .IX Item "-mbroken-saverestore"
4941 Generate code that does not use non-trivial forms of the \f(CW\*(C`save\*(C'\fR and
4942 \&\f(CW\*(C`restore\*(C'\fR instructions.  Early versions of the \s-1SPARCLET\s0 processor do
4943 not correctly handle \f(CW\*(C`save\*(C'\fR and \f(CW\*(C`restore\*(C'\fR instructions used with
4944 arguments.  They correctly handle them used without arguments.  A \f(CW\*(C`save\*(C'\fR
4945 instruction used without arguments increments the current window pointer
4946 but does not allocate a new stack frame.  It is assumed that the window
4947 overflow trap handler will properly handle this case as will interrupt
4948 handlers.
4949 .PP
4950 These \fB\-m\fR switches are supported in addition to the above
4951 on \s-1SPARC\s0 V9 processors in 64\-bit environments.
4952 .Ip "\fB\-mlittle-endian\fR" 4
4953 .IX Item "-mlittle-endian"
4954 Generate code for a processor running in little-endian mode.
4955 .Ip "\fB\-m32\fR" 4
4956 .IX Item "-m32"
4957 .PD 0
4958 .Ip "\fB\-m64\fR" 4
4959 .IX Item "-m64"
4960 .PD
4961 Generate code for a 32\-bit or 64\-bit environment.
4962 The 32\-bit environment sets int, long and pointer to 32 bits.
4963 The 64\-bit environment sets int to 32 bits and long and pointer
4964 to 64 bits.
4965 .Ip "\fB\-mcmodel=medlow\fR" 4
4966 .IX Item "-mcmodel=medlow"
4967 Generate code for the Medium/Low code model: the program must be linked
4968 in the low 32 bits of the address space.  Pointers are 64 bits.
4969 Programs can be statically or dynamically linked.
4970 .Ip "\fB\-mcmodel=medmid\fR" 4
4971 .IX Item "-mcmodel=medmid"
4972 Generate code for the Medium/Middle code model: the program must be linked
4973 in the low 44 bits of the address space, the text segment must be less than
4974 2G bytes, and data segment must be within 2G of the text segment.
4975 Pointers are 64 bits.
4976 .Ip "\fB\-mcmodel=medany\fR" 4
4977 .IX Item "-mcmodel=medany"
4978 Generate code for the Medium/Anywhere code model: the program may be linked
4979 anywhere in the address space, the text segment must be less than
4980 2G bytes, and data segment must be within 2G of the text segment.
4981 Pointers are 64 bits.
4982 .Ip "\fB\-mcmodel=embmedany\fR" 4
4983 .IX Item "-mcmodel=embmedany"
4984 Generate code for the Medium/Anywhere code model for embedded systems:
4985 assume a 32\-bit text and a 32\-bit data segment, both starting anywhere
4986 (determined at link time).  Register \f(CW%g4\fR points to the base of the
4987 data segment.  Pointers are still 64 bits.
4988 Programs are statically linked, \s-1PIC\s0 is not supported.
4989 .Ip "\fB\-mstack-bias\fR" 4
4990 .IX Item "-mstack-bias"
4991 .PD 0
4992 .Ip "\fB\-mno-stack-bias\fR" 4
4993 .IX Item "-mno-stack-bias"
4994 .PD
4995 With \fB\-mstack-bias\fR, \s-1GCC\s0 assumes that the stack pointer, and
4996 frame pointer if present, are offset by \-2047 which must be added back
4997 when making stack frame references.
4998 Otherwise, assume no such offset is present.
4999 .PP
5000 .I "Convex Options"
5001 .IX Subsection "Convex Options"
5002 .PP
5003 These \fB\-m\fR options are defined for Convex:
5004 .Ip "\fB\-mc1\fR" 4
5005 .IX Item "-mc1"
5006 Generate output for C1.  The code will run on any Convex machine.
5007 The preprocessor symbol \f(CW\*(C`_\|_convex_\|_c1_\|_\*(C'\fR is defined.
5008 .Ip "\fB\-mc2\fR" 4
5009 .IX Item "-mc2"
5010 Generate output for C2.  Uses instructions not available on C1.
5011 Scheduling and other optimizations are chosen for max performance on C2.
5012 The preprocessor symbol \f(CW\*(C`_\|_convex_c2_\|_\*(C'\fR is defined.
5013 .Ip "\fB\-mc32\fR" 4
5014 .IX Item "-mc32"
5015 Generate output for C32xx.  Uses instructions not available on C1.
5016 Scheduling and other optimizations are chosen for max performance on C32.
5017 The preprocessor symbol \f(CW\*(C`_\|_convex_c32_\|_\*(C'\fR is defined.
5018 .Ip "\fB\-mc34\fR" 4
5019 .IX Item "-mc34"
5020 Generate output for C34xx.  Uses instructions not available on C1.
5021 Scheduling and other optimizations are chosen for max performance on C34.
5022 The preprocessor symbol \f(CW\*(C`_\|_convex_c34_\|_\*(C'\fR is defined.
5023 .Ip "\fB\-mc38\fR" 4
5024 .IX Item "-mc38"
5025 Generate output for C38xx.  Uses instructions not available on C1.
5026 Scheduling and other optimizations are chosen for max performance on C38.
5027 The preprocessor symbol \f(CW\*(C`_\|_convex_c38_\|_\*(C'\fR is defined.
5028 .Ip "\fB\-margcount\fR" 4
5029 .IX Item "-margcount"
5030 Generate code which puts an argument count in the word preceding each
5031 argument list.  This is compatible with regular \s-1CC\s0, and a few programs
5032 may need the argument count word.  \s-1GDB\s0 and other source-level debuggers
5033 do not need it; this info is in the symbol table.
5034 .Ip "\fB\-mnoargcount\fR" 4
5035 .IX Item "-mnoargcount"
5036 Omit the argument count word.  This is the default.
5037 .Ip "\fB\-mvolatile-cache\fR" 4
5038 .IX Item "-mvolatile-cache"
5039 Allow volatile references to be cached.  This is the default.
5040 .Ip "\fB\-mvolatile-nocache\fR" 4
5041 .IX Item "-mvolatile-nocache"
5042 Volatile references bypass the data cache, going all the way to memory.
5043 This is only needed for multi-processor code that does not use standard
5044 synchronization instructions.  Making non-volatile references to volatile
5045 locations will not necessarily work.
5046 .Ip "\fB\-mlong32\fR" 4
5047 .IX Item "-mlong32"
5048 Type long is 32 bits, the same as type int.  This is the default.
5049 .Ip "\fB\-mlong64\fR" 4
5050 .IX Item "-mlong64"
5051 Type long is 64 bits, the same as type long long.  This option is useless,
5052 because no library support exists for it.
5053 .PP
5054 .I "\s-1AMD29K\s0 Options"
5055 .IX Subsection "AMD29K Options"
5056 .PP
5057 These \fB\-m\fR options are defined for the \s-1AMD\s0 Am29000:
5058 .Ip "\fB\-mdw\fR" 4
5059 .IX Item "-mdw"
5060 Generate code that assumes the \f(CW\*(C`DW\*(C'\fR bit is set, i.e., that byte and
5061 halfword operations are directly supported by the hardware.  This is the
5062 default.
5063 .Ip "\fB\-mndw\fR" 4
5064 .IX Item "-mndw"
5065 Generate code that assumes the \f(CW\*(C`DW\*(C'\fR bit is not set.
5066 .Ip "\fB\-mbw\fR" 4
5067 .IX Item "-mbw"
5068 Generate code that assumes the system supports byte and halfword write
5069 operations.  This is the default.
5070 .Ip "\fB\-mnbw\fR" 4
5071 .IX Item "-mnbw"
5072 Generate code that assumes the systems does not support byte and
5073 halfword write operations.  \fB\-mnbw\fR implies \fB\-mndw\fR.
5074 .Ip "\fB\-msmall\fR" 4
5075 .IX Item "-msmall"
5076 Use a small memory model that assumes that all function addresses are
5077 either within a single 256 \s-1KB\s0 segment or at an absolute address of less
5078 than 256k.  This allows the \f(CW\*(C`call\*(C'\fR instruction to be used instead
5079 of a \f(CW\*(C`const\*(C'\fR, \f(CW\*(C`consth\*(C'\fR, \f(CW\*(C`calli\*(C'\fR sequence.
5080 .Ip "\fB\-mnormal\fR" 4
5081 .IX Item "-mnormal"
5082 Use the normal memory model: Generate \f(CW\*(C`call\*(C'\fR instructions only when
5083 calling functions in the same file and \f(CW\*(C`calli\*(C'\fR instructions
5084 otherwise.  This works if each file occupies less than 256 \s-1KB\s0 but allows
5085 the entire executable to be larger than 256 \s-1KB\s0.  This is the default.
5086 .Ip "\fB\-mlarge\fR" 4
5087 .IX Item "-mlarge"
5088 Always use \f(CW\*(C`calli\*(C'\fR instructions.  Specify this option if you expect
5089 a single file to compile into more than 256 \s-1KB\s0 of code.
5090 .Ip "\fB\-m29050\fR" 4
5091 .IX Item "-m29050"
5092 Generate code for the Am29050.
5093 .Ip "\fB\-m29000\fR" 4
5094 .IX Item "-m29000"
5095 Generate code for the Am29000.  This is the default.
5096 .Ip "\fB\-mkernel-registers\fR" 4
5097 .IX Item "-mkernel-registers"
5098 Generate references to registers \f(CW\*(C`gr64\-gr95\*(C'\fR instead of to
5099 registers \f(CW\*(C`gr96\-gr127\*(C'\fR.  This option can be used when compiling
5100 kernel code that wants a set of global registers disjoint from that used
5101 by user-mode code.
5102 .Sp
5103 Note that when this option is used, register names in \fB\-f\fR flags
5104 must use the normal, user-mode, names.
5105 .Ip "\fB\-muser-registers\fR" 4
5106 .IX Item "-muser-registers"
5107 Use the normal set of global registers, \f(CW\*(C`gr96\-gr127\*(C'\fR.  This is the
5108 default.
5109 .Ip "\fB\-mstack-check\fR" 4
5110 .IX Item "-mstack-check"
5111 .PD 0
5112 .Ip "\fB\-mno-stack-check\fR" 4
5113 .IX Item "-mno-stack-check"
5114 .PD
5115 Insert (or do not insert) a call to \f(CW\*(C`_\|_msp_check\*(C'\fR after each stack
5116 adjustment.  This is often used for kernel code.
5117 .Ip "\fB\-mstorem-bug\fR" 4
5118 .IX Item "-mstorem-bug"
5119 .PD 0
5120 .Ip "\fB\-mno-storem-bug\fR" 4
5121 .IX Item "-mno-storem-bug"
5122 .PD
5123 \&\fB\-mstorem-bug\fR handles 29k processors which cannot handle the
5124 separation of a mtsrim insn and a storem instruction (most 29000 chips
5125 to date, but not the 29050).
5126 .Ip "\fB\-mno-reuse-arg-regs\fR" 4
5127 .IX Item "-mno-reuse-arg-regs"
5128 .PD 0
5129 .Ip "\fB\-mreuse-arg-regs\fR" 4
5130 .IX Item "-mreuse-arg-regs"
5131 .PD
5132 \&\fB\-mno-reuse-arg-regs\fR tells the compiler to only use incoming argument
5133 registers for copying out arguments.  This helps detect calling a function
5134 with fewer arguments than it was declared with.
5135 .Ip "\fB\-mno-impure-text\fR" 4
5136 .IX Item "-mno-impure-text"
5137 .PD 0
5138 .Ip "\fB\-mimpure-text\fR" 4
5139 .IX Item "-mimpure-text"
5140 .PD
5141 \&\fB\-mimpure-text\fR, used in addition to \fB\-shared\fR, tells the compiler to
5142 not pass \fB\-assert pure-text\fR to the linker when linking a shared object.
5143 .Ip "\fB\-msoft-float\fR" 4
5144 .IX Item "-msoft-float"
5145 Generate output containing library calls for floating point.
5146 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC\s0.
5147 Normally the facilities of the machine's usual C compiler are used, but
5148 this can't be done directly in cross-compilation.  You must make your
5149 own arrangements to provide suitable library functions for
5150 cross-compilation.
5151 .Ip "\fB\-mno-multm\fR" 4
5152 .IX Item "-mno-multm"
5153 Do not generate multm or multmu instructions.  This is useful for some embedded
5154 systems which do not have trap handlers for these instructions.
5155 .PP
5156 .I "\s-1ARM\s0 Options"
5157 .IX Subsection "ARM Options"
5158 .PP
5159 These \fB\-m\fR options are defined for Advanced \s-1RISC\s0 Machines (\s-1ARM\s0)
5160 architectures:
5161 .Ip "\fB\-mapcs-frame\fR" 4
5162 .IX Item "-mapcs-frame"
5163 Generate a stack frame that is compliant with the \s-1ARM\s0 Procedure Call
5164 Standard for all functions, even if this is not strictly necessary for
5165 correct execution of the code.  Specifying \fB\-fomit-frame-pointer\fR
5166 with this option will cause the stack frames not to be generated for
5167 leaf functions.  The default is \fB\-mno-apcs-frame\fR.
5168 .Ip "\fB\-mapcs\fR" 4
5169 .IX Item "-mapcs"
5170 This is a synonym for \fB\-mapcs-frame\fR.
5171 .Ip "\fB\-mapcs-26\fR" 4
5172 .IX Item "-mapcs-26"
5173 Generate code for a processor running with a 26\-bit program counter,
5174 and conforming to the function calling standards for the \s-1APCS\s0 26\-bit
5175 option.  This option replaces the \fB\-m2\fR and \fB\-m3\fR options
5176 of previous releases of the compiler.
5177 .Ip "\fB\-mapcs-32\fR" 4
5178 .IX Item "-mapcs-32"
5179 Generate code for a processor running with a 32\-bit program counter,
5180 and conforming to the function calling standards for the \s-1APCS\s0 32\-bit
5181 option.  This option replaces the \fB\-m6\fR option of previous releases
5182 of the compiler.
5183 .Ip "\fB\-mthumb-interwork\fR" 4
5184 .IX Item "-mthumb-interwork"
5185 Generate code which supports calling between the \s-1ARM\s0 and Thumb
5186 instruction sets.  Without this option the two instruction sets cannot
5187 be reliably used inside one program.  The default is
5188 \&\fB\-mno-thumb-interwork\fR, since slightly larger code is generated
5189 when \fB\-mthumb-interwork\fR is specified.
5190 .Ip "\fB\-mno-sched-prolog\fR" 4
5191 .IX Item "-mno-sched-prolog"
5192 Prevent the reordering of instructions in the function prolog, or the
5193 merging of those instruction with the instructions in the function's
5194 body.  This means that all functions will start with a recognizable set
5195 of instructions (or in fact one of a choice from a small set of
5196 different function prologues), and this information can be used to
5197 locate the start if functions inside an executable piece of code.  The
5198 default is \fB\-msched-prolog\fR.
5199 .Ip "\fB\-mhard-float\fR" 4
5200 .IX Item "-mhard-float"
5201 Generate output containing floating point instructions.  This is the
5202 default.
5203 .Ip "\fB\-msoft-float\fR" 4
5204 .IX Item "-msoft-float"
5205 Generate output containing library calls for floating point.
5206 \&\fBWarning:\fR the requisite libraries are not available for all \s-1ARM\s0
5207 targets.  Normally the facilities of the machine's usual C compiler are
5208 used, but this cannot be done directly in cross-compilation.  You must make
5209 your own arrangements to provide suitable library functions for
5210 cross-compilation.
5211 .Sp
5212 \&\fB\-msoft-float\fR changes the calling convention in the output file;
5213 therefore, it is only useful if you compile \fIall\fR of a program with
5214 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
5215 library that comes with \s-1GCC\s0, with \fB\-msoft-float\fR in order for
5216 this to work.
5217 .Ip "\fB\-mlittle-endian\fR" 4
5218 .IX Item "-mlittle-endian"
5219 Generate code for a processor running in little-endian mode.  This is
5220 the default for all standard configurations.
5221 .Ip "\fB\-mbig-endian\fR" 4
5222 .IX Item "-mbig-endian"
5223 Generate code for a processor running in big-endian mode; the default is
5224 to compile code for a little-endian processor.
5225 .Ip "\fB\-mwords-little-endian\fR" 4
5226 .IX Item "-mwords-little-endian"
5227 This option only applies when generating code for big-endian processors.
5228 Generate code for a little-endian word order but a big-endian byte
5229 order.  That is, a byte order of the form \fB32107654\fR.  Note: this
5230 option should only be used if you require compatibility with code for
5231 big-endian \s-1ARM\s0 processors generated by versions of the compiler prior to
5232 2.8.
5233 .Ip "\fB\-malignment-traps\fR" 4
5234 .IX Item "-malignment-traps"
5235 Generate code that will not trap if the \s-1MMU\s0 has alignment traps enabled.
5236 On \s-1ARM\s0 architectures prior to ARMv4, there were no instructions to
5237 access half-word objects stored in memory.  However, when reading from
5238 memory a feature of the \s-1ARM\s0 architecture allows a word load to be used,
5239 even if the address is unaligned, and the processor core will rotate the
5240 data as it is being loaded.  This option tells the compiler that such
5241 misaligned accesses will cause a \s-1MMU\s0 trap and that it should instead
5242 synthesise the access as a series of byte accesses.  The compiler can
5243 still use word accesses to load half-word data if it knows that the
5244 address is aligned to a word boundary.
5245 .Sp
5246 This option is ignored when compiling for \s-1ARM\s0 architecture 4 or later,
5247 since these processors have instructions to directly access half-word
5248 objects in memory.
5249 .Ip "\fB\-mno-alignment-traps\fR" 4
5250 .IX Item "-mno-alignment-traps"
5251 Generate code that assumes that the \s-1MMU\s0 will not trap unaligned
5252 accesses.  This produces better code when the target instruction set
5253 does not have half-word memory operations (i.e. implementations prior to
5254 ARMv4).
5255 .Sp
5256 Note that you cannot use this option to access unaligned word objects,
5257 since the processor will only fetch one 32\-bit aligned object from
5258 memory.
5259 .Sp
5260 The default setting for most targets is \fB\-mno-alignment-traps\fR, since
5261 this produces better code when there are no half-word memory
5262 instructions available.
5263 .Ip "\fB\-mshort-load-bytes\fR" 4
5264 .IX Item "-mshort-load-bytes"
5265 .PD 0
5266 .Ip "\fB\-mno-short-load-words\fR" 4
5267 .IX Item "-mno-short-load-words"
5268 .PD
5269 These are deprecated aliases for \fB\-malignment-traps\fR.
5270 .Ip "\fB\-mno-short-load-bytes\fR" 4
5271 .IX Item "-mno-short-load-bytes"
5272 .PD 0
5273 .Ip "\fB\-mshort-load-words\fR" 4
5274 .IX Item "-mshort-load-words"
5275 .PD
5276 This are deprecated aliases for \fB\-mno-alignment-traps\fR.
5277 .Ip "\fB\-mbsd\fR" 4
5278 .IX Item "-mbsd"
5279 This option only applies to \s-1RISC\s0 iX.  Emulate the native BSD-mode
5280 compiler.  This is the default if \fB\-ansi\fR is not specified.
5281 .Ip "\fB\-mxopen\fR" 4
5282 .IX Item "-mxopen"
5283 This option only applies to \s-1RISC\s0 iX.  Emulate the native X/Open-mode
5284 compiler.
5285 .Ip "\fB\-mno-symrename\fR" 4
5286 .IX Item "-mno-symrename"
5287 This option only applies to \s-1RISC\s0 iX.  Do not run the assembler
5288 post-processor, \fBsymrename\fR, after code has been assembled.
5289 Normally it is necessary to modify some of the standard symbols in
5290 preparation for linking with the \s-1RISC\s0 iX C library; this option
5291 suppresses this pass.  The post-processor is never run when the
5292 compiler is built for cross-compilation.
5293 .Ip "\fB\-mcpu=\fR\fIname\fR" 4
5294 .IX Item "-mcpu=name"
5295 This specifies the name of the target \s-1ARM\s0 processor.  \s-1GCC\s0 uses this name
5296 to determine what kind of instructions it can emit when generating
5297 assembly code.  Permissible names are: \fBarm2\fR, \fBarm250\fR,
5298 \&\fBarm3\fR, \fBarm6\fR, \fBarm60\fR, \fBarm600\fR, \fBarm610\fR,
5299 \&\fBarm620\fR, \fBarm7\fR, \fBarm7m\fR, \fBarm7d\fR, \fBarm7dm\fR,
5300 \&\fBarm7di\fR, \fBarm7dmi\fR, \fBarm70\fR, \fBarm700\fR,
5301 \&\fBarm700i\fR, \fBarm710\fR, \fBarm710c\fR, \fBarm7100\fR,
5302 \&\fBarm7500\fR, \fBarm7500fe\fR, \fBarm7tdmi\fR, \fBarm8\fR,
5303 \&\fBstrongarm\fR, \fBstrongarm110\fR, \fBstrongarm1100\fR,
5304 \&\fBarm8\fR, \fBarm810\fR, \fBarm9\fR, \fBarm9e\fR, \fBarm920\fR,
5305 \&\fBarm920t\fR, \fBarm940t\fR, \fBarm9tdmi\fR, \fBarm10tdmi\fR,
5306 \&\fBarm1020t\fR, \fBxscale\fR.
5307 .Ip "\fB\-mtune=\fR\fIname\fR" 4
5308 .IX Item "-mtune=name"
5309 This option is very similar to the \fB\-mcpu=\fR option, except that
5310 instead of specifying the actual target processor type, and hence
5311 restricting which instructions can be used, it specifies that \s-1GCC\s0 should
5312 tune the performance of the code as if the target were of the type
5313 specified in this option, but still choosing the instructions that it
5314 will generate based on the cpu specified by a \fB\-mcpu=\fR option.
5315 For some \s-1ARM\s0 implementations better performance can be obtained by using
5316 this option.
5317 .Ip "\fB\-march=\fR\fIname\fR" 4
5318 .IX Item "-march=name"
5319 This specifies the name of the target \s-1ARM\s0 architecture.  \s-1GCC\s0 uses this
5320 name to determine what kind of instructions it can emit when generating
5321 assembly code.  This option can be used in conjunction with or instead
5322 of the \fB\-mcpu=\fR option.  Permissible names are: \fBarmv2\fR,
5323 \&\fBarmv2a\fR, \fBarmv3\fR, \fBarmv3m\fR, \fBarmv4\fR, \fBarmv4t\fR,
5324 \&\fBarmv5\fR, \fBarmv5t\fR, \fBarmv5te\fR.
5325 .Ip "\fB\-mfpe=\fR\fInumber\fR" 4
5326 .IX Item "-mfpe=number"
5327 .PD 0
5328 .Ip "\fB\-mfp=\fR\fInumber\fR" 4
5329 .IX Item "-mfp=number"
5330 .PD
5331 This specifies the version of the floating point emulation available on
5332 the target.  Permissible values are 2 and 3.  \fB\-mfp=\fR is a synonym
5333 for \fB\-mfpe=\fR, for compatibility with older versions of \s-1GCC\s0.
5334 .Ip "\fB\-mstructure-size-boundary=\fR\fIn\fR" 4
5335 .IX Item "-mstructure-size-boundary=n"
5336 The size of all structures and unions will be rounded up to a multiple
5337 of the number of bits set by this option.  Permissible values are 8 and
5338 32.  The default value varies for different toolchains.  For the \s-1COFF\s0
5339 targeted toolchain the default value is 8.  Specifying the larger number
5340 can produce faster, more efficient code, but can also increase the size
5341 of the program.  The two values are potentially incompatible.  Code
5342 compiled with one value cannot necessarily expect to work with code or
5343 libraries compiled with the other value, if they exchange information
5344 using structures or unions.
5345 .Ip "\fB\-mabort-on-noreturn\fR" 4
5346 .IX Item "-mabort-on-noreturn"
5347 Generate a call to the function \f(CW\*(C`abort\*(C'\fR at the end of a
5348 \&\f(CW\*(C`noreturn\*(C'\fR function.  It will be executed if the function tries to
5349 return.
5350 .Ip "\fB\-mlong-calls\fR" 4
5351 .IX Item "-mlong-calls"
5352 .PD 0
5353 .Ip "\fB\-mno-long-calls\fR" 4
5354 .IX Item "-mno-long-calls"
5355 .PD
5356 Tells the compiler to perform function calls by first loading the
5357 address of the function into a register and then performing a subroutine
5358 call on this register.  This switch is needed if the target function
5359 will lie outside of the 64 megabyte addressing range of the offset based
5360 version of subroutine call instruction.
5361 .Sp
5362 Even if this switch is enabled, not all function calls will be turned
5363 into long calls.  The heuristic is that static functions, functions
5364 which have the \fBshort-call\fR attribute, functions that are inside
5365 the scope of a \fB#pragma no_long_calls\fR directive and functions whose
5366 definitions have already been compiled within the current compilation
5367 unit, will not be turned into long calls.  The exception to this rule is
5368 that weak function definitions, functions with the \fBlong-call\fR
5369 attribute or the \fBsection\fR attribute, and functions that are within
5370 the scope of a \fB#pragma long_calls\fR directive, will always be
5371 turned into long calls.
5372 .Sp
5373 This feature is not enabled by default.  Specifying
5374 \&\fB\-mno-long-calls\fR will restore the default behavior, as will
5375 placing the function calls within the scope of a \fB#pragma
5376 long_calls_off\fR directive.  Note these switches have no effect on how
5377 the compiler generates code to handle function calls via function
5378 pointers.
5379 .Ip "\fB\-mnop-fun-dllimport\fR" 4
5380 .IX Item "-mnop-fun-dllimport"
5381 Disable support for the \f(CW\*(C`dllimport\*(C'\fR attribute.
5382 .Ip "\fB\-msingle-pic-base\fR" 4
5383 .IX Item "-msingle-pic-base"
5384 Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
5385 loading it in the prologue for each function.  The run-time system is
5386 responsible for initializing this register with an appropriate value
5387 before execution begins.
5388 .Ip "\fB\-mpic-register=\fR\fIreg\fR" 4
5389 .IX Item "-mpic-register=reg"
5390 Specify the register to be used for \s-1PIC\s0 addressing.  The default is R10
5391 unless stack-checking is enabled, when R9 is used.
5392 .Ip "\fB\-mpoke-function-name\fR" 4
5393 .IX Item "-mpoke-function-name"
5394 Write the name of each function into the text section, directly
5395 preceding the function prologue.  The generated code is similar to this:
5396 .Sp
5397 .Vb 9
5398 \&             t0
5399 \&                 .ascii "arm_poke_function_name", 0
5400 \&                 .align
5401 \&             t1
5402 \&                 .word 0xff000000 + (t1 - t0)
5403 \&             arm_poke_function_name
5404 \&                 mov     ip, sp
5405 \&                 stmfd   sp!, {fp, ip, lr, pc}
5406 \&                 sub     fp, ip, #4
5407 .Ve
5408 When performing a stack backtrace, code can inspect the value of
5409 \&\f(CW\*(C`pc\*(C'\fR stored at \f(CW\*(C`fp + 0\*(C'\fR.  If the trace function then looks at
5410 location \f(CW\*(C`pc \- 12\*(C'\fR and the top 8 bits are set, then we know that
5411 there is a function name embedded immediately preceding this location
5412 and has length \f(CW\*(C`((pc[\-3]) & 0xff000000)\*(C'\fR.
5413 .Ip "\fB\-mthumb\fR" 4
5414 .IX Item "-mthumb"
5415 Generate code for the 16\-bit Thumb instruction set.  The default is to
5416 use the 32\-bit \s-1ARM\s0 instruction set.
5417 .Ip "\fB\-mtpcs-frame\fR" 4
5418 .IX Item "-mtpcs-frame"
5419 Generate a stack frame that is compliant with the Thumb Procedure Call
5420 Standard for all non-leaf functions.  (A leaf function is one that does
5421 not call any other functions.)  The default is \fB\-mno-tpcs-frame\fR.
5422 .Ip "\fB\-mtpcs-leaf-frame\fR" 4
5423 .IX Item "-mtpcs-leaf-frame"
5424 Generate a stack frame that is compliant with the Thumb Procedure Call
5425 Standard for all leaf functions.  (A leaf function is one that does
5426 not call any other functions.)  The default is \fB\-mno-apcs-leaf-frame\fR.
5427 .Ip "\fB\-mcallee-super-interworking\fR" 4
5428 .IX Item "-mcallee-super-interworking"
5429 Gives all externally visible functions in the file being compiled an \s-1ARM\s0
5430 instruction set header which switches to Thumb mode before executing the
5431 rest of the function.  This allows these functions to be called from
5432 non-interworking code.
5433 .Ip "\fB\-mcaller-super-interworking\fR" 4
5434 .IX Item "-mcaller-super-interworking"
5435 Allows calls via function pointers (including virtual functions) to
5436 execute correctly regardless of whether the target code has been
5437 compiled for interworking or not.  There is a small overhead in the cost
5438 of executing a function pointer if this option is enabled.
5439 .PP
5440 .I "\s-1MN10200\s0 Options"
5441 .IX Subsection "MN10200 Options"
5442 .PP
5443 These \fB\-m\fR options are defined for Matsushita \s-1MN10200\s0 architectures:
5444 .Ip "\fB\-mrelax\fR" 4
5445 .IX Item "-mrelax"
5446 Indicate to the linker that it should perform a relaxation optimization pass
5447 to shorten branches, calls and absolute memory addresses.  This option only
5448 has an effect when used on the command line for the final link step.
5449 .Sp
5450 This option makes symbolic debugging impossible.
5451 .PP
5452 .I "\s-1MN10300\s0 Options"
5453 .IX Subsection "MN10300 Options"
5454 .PP
5455 These \fB\-m\fR options are defined for Matsushita \s-1MN10300\s0 architectures:
5456 .Ip "\fB\-mmult-bug\fR" 4
5457 .IX Item "-mmult-bug"
5458 Generate code to avoid bugs in the multiply instructions for the \s-1MN10300\s0
5459 processors.  This is the default.
5460 .Ip "\fB\-mno-mult-bug\fR" 4
5461 .IX Item "-mno-mult-bug"
5462 Do not generate code to avoid bugs in the multiply instructions for the
5463 \&\s-1MN10300\s0 processors.
5464 .Ip "\fB\-mam33\fR" 4
5465 .IX Item "-mam33"
5466 Generate code which uses features specific to the \s-1AM33\s0 processor.
5467 .Ip "\fB\-mno-am33\fR" 4
5468 .IX Item "-mno-am33"
5469 Do not generate code which uses features specific to the \s-1AM33\s0 processor.  This
5470 is the default.
5471 .Ip "\fB\-mno-crt0\fR" 4
5472 .IX Item "-mno-crt0"
5473 Do not link in the C run-time initialization object file.
5474 .Ip "\fB\-mrelax\fR" 4
5475 .IX Item "-mrelax"
5476 Indicate to the linker that it should perform a relaxation optimization pass
5477 to shorten branches, calls and absolute memory addresses.  This option only
5478 has an effect when used on the command line for the final link step.
5479 .Sp
5480 This option makes symbolic debugging impossible.
5481 .PP
5482 .I "M32R/D Options"
5483 .IX Subsection "M32R/D Options"
5484 .PP
5485 These \fB\-m\fR options are defined for Mitsubishi M32R/D architectures:
5486 .Ip "\fB\-m32rx\fR" 4
5487 .IX Item "-m32rx"
5488 Generate code for the M32R/X.
5489 .Ip "\fB\-m32r\fR" 4
5490 .IX Item "-m32r"
5491 Generate code for the M32R.  This is the default.
5492 .Ip "\fB\-mcode-model=small\fR" 4
5493 .IX Item "-mcode-model=small"
5494 Assume all objects live in the lower 16MB of memory (so that their addresses
5495 can be loaded with the \f(CW\*(C`ld24\*(C'\fR instruction), and assume all subroutines
5496 are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
5497 This is the default.
5498 .Sp
5499 The addressability of a particular object can be set with the
5500 \&\f(CW\*(C`model\*(C'\fR attribute.
5501 .Ip "\fB\-mcode-model=medium\fR" 4
5502 .IX Item "-mcode-model=medium"
5503 Assume objects may be anywhere in the 32\-bit address space (the compiler
5504 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
5505 assume all subroutines are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
5506 .Ip "\fB\-mcode-model=large\fR" 4
5507 .IX Item "-mcode-model=large"
5508 Assume objects may be anywhere in the 32\-bit address space (the compiler
5509 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
5510 assume subroutines may not be reachable with the \f(CW\*(C`bl\*(C'\fR instruction
5511 (the compiler will generate the much slower \f(CW\*(C`seth/add3/jl\*(C'\fR
5512 instruction sequence).
5513 .Ip "\fB\-msdata=none\fR" 4
5514 .IX Item "-msdata=none"
5515 Disable use of the small data area.  Variables will be put into
5516 one of \fB.data\fR, \fBbss\fR, or \fB.rodata\fR (unless the
5517 \&\f(CW\*(C`section\*(C'\fR attribute has been specified).
5518 This is the default.
5519 .Sp
5520 The small data area consists of sections \fB.sdata\fR and \fB.sbss\fR.
5521 Objects may be explicitly put in the small data area with the
5522 \&\f(CW\*(C`section\*(C'\fR attribute using one of these sections.
5523 .Ip "\fB\-msdata=sdata\fR" 4
5524 .IX Item "-msdata=sdata"
5525 Put small global and static data in the small data area, but do not
5526 generate special code to reference them.
5527 .Ip "\fB\-msdata=use\fR" 4
5528 .IX Item "-msdata=use"
5529 Put small global and static data in the small data area, and generate
5530 special instructions to reference them.
5531 .Ip "\fB\-G\fR \fInum\fR" 4
5532 .IX Item "-G num"
5533 Put global and static objects less than or equal to \fInum\fR bytes
5534 into the small data or bss sections instead of the normal data or bss
5535 sections.  The default value of \fInum\fR is 8.
5536 The \fB\-msdata\fR option must be set to one of \fBsdata\fR or \fBuse\fR
5537 for this option to have any effect.
5538 .Sp
5539 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
5540 Compiling with different values of \fInum\fR may or may not work; if it
5541 doesn't the linker will give an error message\-\-\-incorrect code will not be
5542 generated.
5543 .PP
5544 .I "M88K Options"
5545 .IX Subsection "M88K Options"
5546 .PP
5547 These \fB\-m\fR options are defined for Motorola 88k architectures:
5548 .Ip "\fB\-m88000\fR" 4
5549 .IX Item "-m88000"
5550 Generate code that works well on both the m88100 and the
5551 m88110.
5552 .Ip "\fB\-m88100\fR" 4
5553 .IX Item "-m88100"
5554 Generate code that works best for the m88100, but that also
5555 runs on the m88110.
5556 .Ip "\fB\-m88110\fR" 4
5557 .IX Item "-m88110"
5558 Generate code that works best for the m88110, and may not run
5559 on the m88100.
5560 .Ip "\fB\-mbig-pic\fR" 4
5561 .IX Item "-mbig-pic"
5562 Obsolete option to be removed from the next revision.
5563 Use \fB\-fPIC\fR.
5564 .Ip "\fB\-midentify-revision\fR" 4
5565 .IX Item "-midentify-revision"
5566 Include an \f(CW\*(C`ident\*(C'\fR directive in the assembler output recording the
5567 source file name, compiler name and version, timestamp, and compilation
5568 flags used.
5569 .Ip "\fB\-mno-underscores\fR" 4
5570 .IX Item "-mno-underscores"
5571 In assembler output, emit symbol names without adding an underscore
5572 character at the beginning of each name.  The default is to use an
5573 underscore as prefix on each name.
5574 .Ip "\fB\-mocs-debug-info\fR" 4
5575 .IX Item "-mocs-debug-info"
5576 .PD 0
5577 .Ip "\fB\-mno-ocs-debug-info\fR" 4
5578 .IX Item "-mno-ocs-debug-info"
5579 .PD
5580 Include (or omit) additional debugging information (about registers used
5581 in each stack frame) as specified in the 88open Object Compatibility
5582 Standard, ``\s-1OCS\s0''.  This extra information allows debugging of code that
5583 has had the frame pointer eliminated.  The default for \s-1DG/UX\s0, SVr4, and
5584 Delta 88 SVr3.2 is to include this information; other 88k configurations
5585 omit this information by default.
5586 .Ip "\fB\-mocs-frame-position\fR" 4
5587 .IX Item "-mocs-frame-position"
5588 When emitting \s-1COFF\s0 debugging information for automatic variables and
5589 parameters stored on the stack, use the offset from the canonical frame
5590 address, which is the stack pointer (register 31) on entry to the
5591 function.  The \s-1DG/UX\s0, SVr4, Delta88 SVr3.2, and \s-1BCS\s0 configurations use
5592 \&\fB\-mocs-frame-position\fR; other 88k configurations have the default
5593 \&\fB\-mno-ocs-frame-position\fR.
5594 .Ip "\fB\-mno-ocs-frame-position\fR" 4
5595 .IX Item "-mno-ocs-frame-position"
5596 When emitting \s-1COFF\s0 debugging information for automatic variables and
5597 parameters stored on the stack, use the offset from the frame pointer
5598 register (register 30).  When this option is in effect, the frame
5599 pointer is not eliminated when debugging information is selected by the
5600 \&\-g switch.
5601 .Ip "\fB\-moptimize-arg-area\fR" 4
5602 .IX Item "-moptimize-arg-area"
5603 Save space by reorganizing the stack frame.  This option generates code
5604 that does not agree with the 88open specifications, but uses less
5605 memory.
5606 .Ip "\fB\-mno-optimize-arg-area\fR" 4
5607 .IX Item "-mno-optimize-arg-area"
5608 Do not reorganize the stack frame to save space.  This is the default.
5609 The generated conforms to the specification, but uses more memory.
5610 .Ip "\fB\-mshort-data-\fR\fInum\fR" 4
5611 .IX Item "-mshort-data-num"
5612 Generate smaller data references by making them relative to \f(CW\*(C`r0\*(C'\fR,
5613 which allows loading a value using a single instruction (rather than the
5614 usual two).  You control which data references are affected by
5615 specifying \fInum\fR with this option.  For example, if you specify
5616 \&\fB\-mshort-data-512\fR, then the data references affected are those
5617 involving displacements of less than 512 bytes.
5618 \&\fB\-mshort-data-\fR\fInum\fR is not effective for \fInum\fR greater
5619 than 64k.
5620 .Ip "\fB\-mserialize-volatile\fR" 4
5621 .IX Item "-mserialize-volatile"
5622 .PD 0
5623 .Ip "\fB\-mno-serialize-volatile\fR" 4
5624 .IX Item "-mno-serialize-volatile"
5625 .PD
5626 Do, or don't, generate code to guarantee sequential consistency
5627 of volatile memory references.  By default, consistency is
5628 guaranteed.
5629 .Sp
5630 The order of memory references made by the \s-1MC88110\s0 processor does
5631 not always match the order of the instructions requesting those
5632 references.  In particular, a load instruction may execute before
5633 a preceding store instruction.  Such reordering violates
5634 sequential consistency of volatile memory references, when there
5635 are multiple processors.   When consistency must be guaranteed,
5636 \&\s-1GCC\s0 generates special instructions, as needed, to force
5637 execution in the proper order.
5638 .Sp
5639 The \s-1MC88100\s0 processor does not reorder memory references and so
5640 always provides sequential consistency.  However, by default, \s-1GCC\s0
5641 generates the special instructions to guarantee consistency
5642 even when you use \fB\-m88100\fR, so that the code may be run on an
5643 \&\s-1MC88110\s0 processor.  If you intend to run your code only on the
5644 \&\s-1MC88100\s0 processor, you may use \fB\-mno-serialize-volatile\fR.
5645 .Sp
5646 The extra code generated to guarantee consistency may affect the
5647 performance of your application.  If you know that you can safely
5648 forgo this guarantee, you may use \fB\-mno-serialize-volatile\fR.
5649 .Ip "\fB\-msvr4\fR" 4
5650 .IX Item "-msvr4"
5651 .PD 0
5652 .Ip "\fB\-msvr3\fR" 4
5653 .IX Item "-msvr3"
5654 .PD
5655 Turn on (\fB\-msvr4\fR) or off (\fB\-msvr3\fR) compiler extensions
5656 related to System V release 4 (SVr4).  This controls the following:
5657 .RS 4
5658 .Ip "1." 4
5659 Which variant of the assembler syntax to emit.
5660 .Ip "2." 4
5661 \&\fB\-msvr4\fR makes the C preprocessor recognize \fB#pragma weak\fR
5662 that is used on System V release 4.
5663 .Ip "3." 4
5664 \&\fB\-msvr4\fR makes \s-1GCC\s0 issue additional declaration directives used in
5665 SVr4.
5666 .RE
5667 .RS 4
5668 .Sp
5669 \&\fB\-msvr4\fR is the default for the m88k-motorola-sysv4 and
5670 m88k-dg-dgux m88k configurations.  \fB\-msvr3\fR is the default for all
5671 other m88k configurations.
5672 .RE
5673 .Ip "\fB\-mversion-03.00\fR" 4
5674 .IX Item "-mversion-03.00"
5675 This option is obsolete, and is ignored.
5676 .Ip "\fB\-mno-check-zero-division\fR" 4
5677 .IX Item "-mno-check-zero-division"
5678 .PD 0
5679 .Ip "\fB\-mcheck-zero-division\fR" 4
5680 .IX Item "-mcheck-zero-division"
5681 .PD
5682 Do, or don't, generate code to guarantee that integer division by
5683 zero will be detected.  By default, detection is guaranteed.
5684 .Sp
5685 Some models of the \s-1MC88100\s0 processor fail to trap upon integer
5686 division by zero under certain conditions.  By default, when
5687 compiling code that might be run on such a processor, \s-1GCC\s0
5688 generates code that explicitly checks for zero-valued divisors
5689 and traps with exception number 503 when one is detected.  Use of
5690 \&\fB\-mno-check-zero-division\fR suppresses such checking for code
5691 generated to run on an \s-1MC88100\s0 processor.
5692 .Sp
5693 \&\s-1GCC\s0 assumes that the \s-1MC88110\s0 processor correctly detects all instances
5694 of integer division by zero.  When \fB\-m88110\fR is specified, no
5695 explicit checks for zero-valued divisors are generated, and both
5696 \&\fB\-mcheck-zero-division\fR and \fB\-mno-check-zero-division\fR are
5697 ignored.
5698 .Ip "\fB\-muse-div-instruction\fR" 4
5699 .IX Item "-muse-div-instruction"
5700 Use the div instruction for signed integer division on the
5701 \&\s-1MC88100\s0 processor.  By default, the div instruction is not used.
5702 .Sp
5703 On the \s-1MC88100\s0 processor the signed integer division instruction
5704 div) traps to the operating system on a negative operand.  The
5705 operating system transparently completes the operation, but at a
5706 large cost in execution time.  By default, when compiling code
5707 that might be run on an \s-1MC88100\s0 processor, \s-1GCC\s0 emulates signed
5708 integer division using the unsigned integer division instruction
5709 divu), thereby avoiding the large penalty of a trap to the
5710 operating system.  Such emulation has its own, smaller, execution
5711 cost in both time and space.  To the extent that your code's
5712 important signed integer division operations are performed on two
5713 nonnegative operands, it may be desirable to use the div
5714 instruction directly.
5715 .Sp
5716 On the \s-1MC88110\s0 processor the div instruction (also known as the
5717 divs instruction) processes negative operands without trapping to
5718 the operating system.  When \fB\-m88110\fR is specified,
5719 \&\fB\-muse-div-instruction\fR is ignored, and the div instruction is used
5720 for signed integer division.
5721 .Sp
5722 Note that the result of dividing \f(CW\*(C`INT_MIN\*(C'\fR by \-1 is undefined.  In
5723 particular, the behavior of such a division with and without
5724 \&\fB\-muse-div-instruction\fR may differ.
5725 .Ip "\fB\-mtrap-large-shift\fR" 4
5726 .IX Item "-mtrap-large-shift"
5727 .PD 0
5728 .Ip "\fB\-mhandle-large-shift\fR" 4
5729 .IX Item "-mhandle-large-shift"
5730 .PD
5731 Include code to detect bit-shifts of more than 31 bits; respectively,
5732 trap such shifts or emit code to handle them properly.  By default \s-1GCC\s0
5733 makes no special provision for large bit shifts.
5734 .Ip "\fB\-mwarn-passed-structs\fR" 4
5735 .IX Item "-mwarn-passed-structs"
5736 Warn when a function passes a struct as an argument or result.
5737 Structure-passing conventions have changed during the evolution of the C
5738 language, and are often the source of portability problems.  By default,
5739 \&\s-1GCC\s0 issues no such warning.
5740 .PP
5741 .I "\s-1IBM\s0 \s-1RS/6000\s0 and PowerPC Options"
5742 .IX Subsection "IBM RS/6000 and PowerPC Options"
5743 .PP
5744 These \fB\-m\fR options are defined for the \s-1IBM\s0 \s-1RS/6000\s0 and PowerPC:
5745 .Ip "\fB\-mpower\fR" 4
5746 .IX Item "-mpower"
5747 .PD 0
5748 .Ip "\fB\-mno-power\fR" 4
5749 .IX Item "-mno-power"
5750 .Ip "\fB\-mpower2\fR" 4
5751 .IX Item "-mpower2"
5752 .Ip "\fB\-mno-power2\fR" 4
5753 .IX Item "-mno-power2"
5754 .Ip "\fB\-mpowerpc\fR" 4
5755 .IX Item "-mpowerpc"
5756 .Ip "\fB\-mno-powerpc\fR" 4
5757 .IX Item "-mno-powerpc"
5758 .Ip "\fB\-mpowerpc-gpopt\fR" 4
5759 .IX Item "-mpowerpc-gpopt"
5760 .Ip "\fB\-mno-powerpc-gpopt\fR" 4
5761 .IX Item "-mno-powerpc-gpopt"
5762 .Ip "\fB\-mpowerpc-gfxopt\fR" 4
5763 .IX Item "-mpowerpc-gfxopt"
5764 .Ip "\fB\-mno-powerpc-gfxopt\fR" 4
5765 .IX Item "-mno-powerpc-gfxopt"
5766 .Ip "\fB\-mpowerpc64\fR" 4
5767 .IX Item "-mpowerpc64"
5768 .Ip "\fB\-mno-powerpc64\fR" 4
5769 .IX Item "-mno-powerpc64"
5770 .PD
5771 \&\s-1GCC\s0 supports two related instruction set architectures for the
5772 \&\s-1RS/6000\s0 and PowerPC.  The \fI\s-1POWER\s0\fR instruction set are those
5773 instructions supported by the \fBrios\fR chip set used in the original
5774 \&\s-1RS/6000\s0 systems and the \fIPowerPC\fR instruction set is the
5775 architecture of the Motorola MPC5xx, MPC6xx, MPC8xx microprocessors, and
5776 the \s-1IBM\s0 4xx microprocessors.
5777 .Sp
5778 Neither architecture is a subset of the other.  However there is a
5779 large common subset of instructions supported by both.  An \s-1MQ\s0
5780 register is included in processors supporting the \s-1POWER\s0 architecture.
5781 .Sp
5782 You use these options to specify which instructions are available on the
5783 processor you are using.  The default value of these options is
5784 determined when configuring \s-1GCC\s0.  Specifying the
5785 \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
5786 options.  We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
5787 rather than the options listed above.
5788 .Sp
5789 The \fB\-mpower\fR option allows \s-1GCC\s0 to generate instructions that
5790 are found only in the \s-1POWER\s0 architecture and to use the \s-1MQ\s0 register.
5791 Specifying \fB\-mpower2\fR implies \fB\-power\fR and also allows \s-1GCC\s0
5792 to generate instructions that are present in the \s-1POWER2\s0 architecture but
5793 not the original \s-1POWER\s0 architecture.
5794 .Sp
5795 The \fB\-mpowerpc\fR option allows \s-1GCC\s0 to generate instructions that
5796 are found only in the 32\-bit subset of the PowerPC architecture.
5797 Specifying \fB\-mpowerpc-gpopt\fR implies \fB\-mpowerpc\fR and also allows
5798 \&\s-1GCC\s0 to use the optional PowerPC architecture instructions in the
5799 General Purpose group, including floating-point square root.  Specifying
5800 \&\fB\-mpowerpc-gfxopt\fR implies \fB\-mpowerpc\fR and also allows \s-1GCC\s0 to
5801 use the optional PowerPC architecture instructions in the Graphics
5802 group, including floating-point select.
5803 .Sp
5804 The \fB\-mpowerpc64\fR option allows \s-1GCC\s0 to generate the additional
5805 64\-bit instructions that are found in the full PowerPC64 architecture
5806 and to treat GPRs as 64\-bit, doubleword quantities.  \s-1GCC\s0 defaults to
5807 \&\fB\-mno-powerpc64\fR.
5808 .Sp
5809 If you specify both \fB\-mno-power\fR and \fB\-mno-powerpc\fR, \s-1GCC\s0
5810 will use only the instructions in the common subset of both
5811 architectures plus some special \s-1AIX\s0 common-mode calls, and will not use
5812 the \s-1MQ\s0 register.  Specifying both \fB\-mpower\fR and \fB\-mpowerpc\fR
5813 permits \s-1GCC\s0 to use any instruction from either architecture and to
5814 allow use of the \s-1MQ\s0 register; specify this for the Motorola \s-1MPC601\s0.
5815 .Ip "\fB\-mnew-mnemonics\fR" 4
5816 .IX Item "-mnew-mnemonics"
5817 .PD 0
5818 .Ip "\fB\-mold-mnemonics\fR" 4
5819 .IX Item "-mold-mnemonics"
5820 .PD
5821 Select which mnemonics to use in the generated assembler code.  With
5822 \&\fB\-mnew-mnemonics\fR, \s-1GCC\s0 uses the assembler mnemonics defined for
5823 the PowerPC architecture.  With \fB\-mold-mnemonics\fR it uses the
5824 assembler mnemonics defined for the \s-1POWER\s0 architecture.  Instructions
5825 defined in only one architecture have only one mnemonic; \s-1GCC\s0 uses that
5826 mnemonic irrespective of which of these options is specified.
5827 .Sp
5828 \&\s-1GCC\s0 defaults to the mnemonics appropriate for the architecture in
5829 use.  Specifying \fB\-mcpu=\fR\fIcpu_type\fR sometimes overrides the
5830 value of these option.  Unless you are building a cross-compiler, you
5831 should normally not specify either \fB\-mnew-mnemonics\fR or
5832 \&\fB\-mold-mnemonics\fR, but should instead accept the default.
5833 .Ip "\fB\-mcpu=\fR\fIcpu_type\fR" 4
5834 .IX Item "-mcpu=cpu_type"
5835 Set architecture type, register usage, choice of mnemonics, and
5836 instruction scheduling parameters for machine type \fIcpu_type\fR.
5837 Supported values for \fIcpu_type\fR are \fBrios\fR, \fBrios1\fR,
5838 \&\fBrsc\fR, \fBrios2\fR, \fBrs64a\fR, \fB601\fR, \fB602\fR,
5839 \&\fB603\fR, \fB603e\fR, \fB604\fR, \fB604e\fR, \fB620\fR,
5840 \&\fB630\fR, \fB740\fR, \fB7400\fR, \fB7450\fR, \fB750\fR,
5841 \&\fBpower\fR, \fBpower2\fR, \fBpowerpc\fR, \fB403\fR, \fB505\fR,
5842 \&\fB801\fR, \fB821\fR, \fB823\fR, and \fB860\fR and \fBcommon\fR.
5843 .Sp
5844 \&\fB\-mcpu=common\fR selects a completely generic processor.  Code
5845 generated under this option will run on any \s-1POWER\s0 or PowerPC processor.
5846 \&\s-1GCC\s0 will use only the instructions in the common subset of both
5847 architectures, and will not use the \s-1MQ\s0 register.  \s-1GCC\s0 assumes a generic
5848 processor model for scheduling purposes.
5849 .Sp
5850 \&\fB\-mcpu=power\fR, \fB\-mcpu=power2\fR, \fB\-mcpu=powerpc\fR, and
5851 \&\fB\-mcpu=powerpc64\fR specify generic \s-1POWER\s0, \s-1POWER2\s0, pure 32\-bit
5852 PowerPC (i.e., not \s-1MPC601\s0), and 64\-bit PowerPC architecture machine
5853 types, with an appropriate, generic processor model assumed for
5854 scheduling purposes.
5855 .Sp
5856 The other options specify a specific processor.  Code generated under
5857 those options will run best on that processor, and may not run at all on
5858 others.
5859 .Sp
5860 The \fB\-mcpu\fR options automatically enable or disable other
5861 \&\fB\-m\fR options as follows:
5862 .RS 4
5863 .Ip "\fBcommon\fR" 4
5864 .IX Item "common"
5865 \&\fB\-mno-power\fR, \fB\-mno-powerc\fR
5866 .Ip "\fBpower\fR" 4
5867 .IX Item "power"
5868 .PD 0
5869 .Ip "\fBpower2\fR" 4
5870 .IX Item "power2"
5871 .Ip "\fBrios1\fR" 4
5872 .IX Item "rios1"
5873 .Ip "\fBrios2\fR" 4
5874 .IX Item "rios2"
5875 .Ip "\fBrsc\fR" 4
5876 .IX Item "rsc"
5877 .PD
5878 \&\fB\-mpower\fR, \fB\-mno-powerpc\fR, \fB\-mno-new-mnemonics\fR
5879 .Ip "\fBpowerpc\fR" 4
5880 .IX Item "powerpc"
5881 .PD 0
5882 .Ip "\fBrs64a\fR" 4
5883 .IX Item "rs64a"
5884 .Ip "\fB602\fR" 4
5885 .IX Item "602"
5886 .Ip "\fB603\fR" 4
5887 .IX Item "603"
5888 .Ip "\fB603e\fR" 4
5889 .IX Item "603e"
5890 .Ip "\fB604\fR" 4
5891 .IX Item "604"
5892 .Ip "\fB620\fR" 4
5893 .IX Item "620"
5894 .Ip "\fB630\fR" 4
5895 .IX Item "630"
5896 .Ip "\fB740\fR" 4
5897 .IX Item "740"
5898 .Ip "\fB7400\fR" 4
5899 .IX Item "7400"
5900 .Ip "\fB7450\fR" 4
5901 .IX Item "7450"
5902 .Ip "\fB750\fR" 4
5903 .IX Item "750"
5904 .Ip "\fB505\fR" 4
5905 .IX Item "505"
5906 .PD
5907 \&\fB\-mno-power\fR, \fB\-mpowerpc\fR, \fB\-mnew-mnemonics\fR
5908 .Ip "\fB601\fR" 4
5909 .IX Item "601"
5910 \&\fB\-mpower\fR, \fB\-mpowerpc\fR, \fB\-mnew-mnemonics\fR
5911 .Ip "\fB403\fR" 4
5912 .IX Item "403"
5913 .PD 0
5914 .Ip "\fB821\fR" 4
5915 .IX Item "821"
5916 .Ip "\fB860\fR" 4
5917 .IX Item "860"
5918 .PD
5919 \&\fB\-mno-power\fR, \fB\-mpowerpc\fR, \fB\-mnew-mnemonics\fR, \fB\-msoft-float\fR
5920 .RE
5921 .RS 4
5922 .RE
5923 .Ip "\fB\-mtune=\fR\fIcpu_type\fR" 4
5924 .IX Item "-mtune=cpu_type"
5925 Set the instruction scheduling parameters for machine type
5926 \&\fIcpu_type\fR, but do not set the architecture type, register usage, or
5927 choice of mnemonics, as \fB\-mcpu=\fR\fIcpu_type\fR would.  The same
5928 values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
5929 \&\fB\-mcpu\fR.  If both are specified, the code generated will use the
5930 architecture, registers, and mnemonics set by \fB\-mcpu\fR, but the
5931 scheduling parameters set by \fB\-mtune\fR.
5932 .Ip "\fB\-maltivec\fR" 4
5933 .IX Item "-maltivec"
5934 .PD 0
5935 .Ip "\fB\-mno-altivec\fR" 4
5936 .IX Item "-mno-altivec"
5937 .PD
5938 These switches enable or disable the use of built-in functions that
5939 allow access to the AltiVec instruction set.  You may also need to set
5940 \&\fB\-mabi=altivec\fR to adjust the current \s-1ABI\s0 with AltiVec \s-1ABI\s0
5941 enhancements.
5942 .Ip "\fB\-mfull-toc\fR" 4
5943 .IX Item "-mfull-toc"
5944 .PD 0
5945 .Ip "\fB\-mno-fp-in-toc\fR" 4
5946 .IX Item "-mno-fp-in-toc"
5947 .Ip "\fB\-mno-sum-in-toc\fR" 4
5948 .IX Item "-mno-sum-in-toc"
5949 .Ip "\fB\-mminimal-toc\fR" 4
5950 .IX Item "-mminimal-toc"
5951 .PD
5952 Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
5953 every executable file.  The \fB\-mfull-toc\fR option is selected by
5954 default.  In that case, \s-1GCC\s0 will allocate at least one \s-1TOC\s0 entry for
5955 each unique non-automatic variable reference in your program.  \s-1GCC\s0
5956 will also place floating-point constants in the \s-1TOC\s0.  However, only
5957 16,384 entries are available in the \s-1TOC\s0.
5958 .Sp
5959 If you receive a linker error message that saying you have overflowed
5960 the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
5961 with the \fB\-mno-fp-in-toc\fR and \fB\-mno-sum-in-toc\fR options.
5962 \&\fB\-mno-fp-in-toc\fR prevents \s-1GCC\s0 from putting floating-point
5963 constants in the \s-1TOC\s0 and \fB\-mno-sum-in-toc\fR forces \s-1GCC\s0 to
5964 generate code to calculate the sum of an address and a constant at
5965 run-time instead of putting that sum into the \s-1TOC\s0.  You may specify one
5966 or both of these options.  Each causes \s-1GCC\s0 to produce very slightly
5967 slower and larger code at the expense of conserving \s-1TOC\s0 space.
5968 .Sp
5969 If you still run out of space in the \s-1TOC\s0 even when you specify both of
5970 these options, specify \fB\-mminimal-toc\fR instead.  This option causes
5971 \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file.  When you specify this
5972 option, \s-1GCC\s0 will produce code that is slower and larger but which
5973 uses extremely little \s-1TOC\s0 space.  You may wish to use this option
5974 only on files that contain less frequently executed code.
5975 .Ip "\fB\-maix64\fR" 4
5976 .IX Item "-maix64"
5977 .PD 0
5978 .Ip "\fB\-maix32\fR" 4
5979 .IX Item "-maix32"
5980 .PD
5981 Enable 64\-bit \s-1AIX\s0 \s-1ABI\s0 and calling convention: 64\-bit pointers, 64\-bit
5982 \&\f(CW\*(C`long\*(C'\fR type, and the infrastructure needed to support them.
5983 Specifying \fB\-maix64\fR implies \fB\-mpowerpc64\fR and
5984 \&\fB\-mpowerpc\fR, while \fB\-maix32\fR disables the 64\-bit \s-1ABI\s0 and
5985 implies \fB\-mno-powerpc64\fR.  \s-1GCC\s0 defaults to \fB\-maix32\fR.
5986 .Ip "\fB\-mxl-call\fR" 4
5987 .IX Item "-mxl-call"
5988 .PD 0
5989 .Ip "\fB\-mno-xl-call\fR" 4
5990 .IX Item "-mno-xl-call"
5991 .PD
5992 On \s-1AIX\s0, pass floating-point arguments to prototyped functions beyond the
5993 register save area (\s-1RSA\s0) on the stack in addition to argument FPRs.  The
5994 \&\s-1AIX\s0 calling convention was extended but not initially documented to
5995 handle an obscure K&R C case of calling a function that takes the
5996 address of its arguments with fewer arguments than declared.  \s-1AIX\s0 \s-1XL\s0
5997 compilers access floating point arguments which do not fit in the
5998 \&\s-1RSA\s0 from the stack when a subroutine is compiled without
5999 optimization.  Because always storing floating-point arguments on the
6000 stack is inefficient and rarely needed, this option is not enabled by
6001 default and only is necessary when calling subroutines compiled by \s-1AIX\s0
6002 \&\s-1XL\s0 compilers without optimization.
6003 .Ip "\fB\-mpe\fR" 4
6004 .IX Item "-mpe"
6005 Support \fI\s-1IBM\s0 \s-1RS/6000\s0 \s-1SP\s0\fR \fIParallel Environment\fR (\s-1PE\s0).  Link an
6006 application written to use message passing with special startup code to
6007 enable the application to run.  The system must have \s-1PE\s0 installed in the
6008 standard location (\fI/usr/lpp/ppe.poe/\fR), or the \fIspecs\fR file
6009 must be overridden with the \fB\-specs=\fR option to specify the
6010 appropriate directory location.  The Parallel Environment does not
6011 support threads, so the \fB\-mpe\fR option and the \fB\-pthread\fR
6012 option are incompatible.
6013 .Ip "\fB\-msoft-float\fR" 4
6014 .IX Item "-msoft-float"
6015 .PD 0
6016 .Ip "\fB\-mhard-float\fR" 4
6017 .IX Item "-mhard-float"
6018 .PD
6019 Generate code that does not use (uses) the floating-point register set.
6020 Software floating point emulation is provided if you use the
6021 \&\fB\-msoft-float\fR option, and pass the option to \s-1GCC\s0 when linking.
6022 .Ip "\fB\-mmultiple\fR" 4
6023 .IX Item "-mmultiple"
6024 .PD 0
6025 .Ip "\fB\-mno-multiple\fR" 4
6026 .IX Item "-mno-multiple"
6027 .PD
6028 Generate code that uses (does not use) the load multiple word
6029 instructions and the store multiple word instructions.  These
6030 instructions are generated by default on \s-1POWER\s0 systems, and not
6031 generated on PowerPC systems.  Do not use \fB\-mmultiple\fR on little
6032 endian PowerPC systems, since those instructions do not work when the
6033 processor is in little endian mode.  The exceptions are \s-1PPC740\s0 and
6034 \&\s-1PPC750\s0 which permit the instructions usage in little endian mode.
6035 .Ip "\fB\-mstring\fR" 4
6036 .IX Item "-mstring"
6037 .PD 0
6038 .Ip "\fB\-mno-string\fR" 4
6039 .IX Item "-mno-string"
6040 .PD
6041 Generate code that uses (does not use) the load string instructions
6042 and the store string word instructions to save multiple registers and
6043 do small block moves.  These instructions are generated by default on
6044 \&\s-1POWER\s0 systems, and not generated on PowerPC systems.  Do not use
6045 \&\fB\-mstring\fR on little endian PowerPC systems, since those
6046 instructions do not work when the processor is in little endian mode.
6047 The exceptions are \s-1PPC740\s0 and \s-1PPC750\s0 which permit the instructions
6048 usage in little endian mode.
6049 .Ip "\fB\-mupdate\fR" 4
6050 .IX Item "-mupdate"
6051 .PD 0
6052 .Ip "\fB\-mno-update\fR" 4
6053 .IX Item "-mno-update"
6054 .PD
6055 Generate code that uses (does not use) the load or store instructions
6056 that update the base register to the address of the calculated memory
6057 location.  These instructions are generated by default.  If you use
6058 \&\fB\-mno-update\fR, there is a small window between the time that the
6059 stack pointer is updated and the address of the previous frame is
6060 stored, which means code that walks the stack frame across interrupts or
6061 signals may get corrupted data.
6062 .Ip "\fB\-mfused-madd\fR" 4
6063 .IX Item "-mfused-madd"
6064 .PD 0
6065 .Ip "\fB\-mno-fused-madd\fR" 4
6066 .IX Item "-mno-fused-madd"
6067 .PD
6068 Generate code that uses (does not use) the floating point multiply and
6069 accumulate instructions.  These instructions are generated by default if
6070 hardware floating is used.
6071 .Ip "\fB\-mno-bit-align\fR" 4
6072 .IX Item "-mno-bit-align"
6073 .PD 0
6074 .Ip "\fB\-mbit-align\fR" 4
6075 .IX Item "-mbit-align"
6076 .PD
6077 On System V.4 and embedded PowerPC systems do not (do) force structures
6078 and unions that contain bit-fields to be aligned to the base type of the
6079 bit-field.
6080 .Sp
6081 For example, by default a structure containing nothing but 8
6082 \&\f(CW\*(C`unsigned\*(C'\fR bit-fields of length 1 would be aligned to a 4 byte
6083 boundary and have a size of 4 bytes.  By using \fB\-mno-bit-align\fR,
6084 the structure would be aligned to a 1 byte boundary and be one byte in
6085 size.
6086 .Ip "\fB\-mno-strict-align\fR" 4
6087 .IX Item "-mno-strict-align"
6088 .PD 0
6089 .Ip "\fB\-mstrict-align\fR" 4
6090 .IX Item "-mstrict-align"
6091 .PD
6092 On System V.4 and embedded PowerPC systems do not (do) assume that
6093 unaligned memory references will be handled by the system.
6094 .Ip "\fB\-mrelocatable\fR" 4
6095 .IX Item "-mrelocatable"
6096 .PD 0
6097 .Ip "\fB\-mno-relocatable\fR" 4
6098 .IX Item "-mno-relocatable"
6099 .PD
6100 On embedded PowerPC systems generate code that allows (does not allow)
6101 the program to be relocated to a different address at runtime.  If you
6102 use \fB\-mrelocatable\fR on any module, all objects linked together must
6103 be compiled with \fB\-mrelocatable\fR or \fB\-mrelocatable-lib\fR.
6104 .Ip "\fB\-mrelocatable-lib\fR" 4
6105 .IX Item "-mrelocatable-lib"
6106 .PD 0
6107 .Ip "\fB\-mno-relocatable-lib\fR" 4
6108 .IX Item "-mno-relocatable-lib"
6109 .PD
6110 On embedded PowerPC systems generate code that allows (does not allow)
6111 the program to be relocated to a different address at runtime.  Modules
6112 compiled with \fB\-mrelocatable-lib\fR can be linked with either modules
6113 compiled without \fB\-mrelocatable\fR and \fB\-mrelocatable-lib\fR or
6114 with modules compiled with the \fB\-mrelocatable\fR options.
6115 .Ip "\fB\-mno-toc\fR" 4
6116 .IX Item "-mno-toc"
6117 .PD 0
6118 .Ip "\fB\-mtoc\fR" 4
6119 .IX Item "-mtoc"
6120 .PD
6121 On System V.4 and embedded PowerPC systems do not (do) assume that
6122 register 2 contains a pointer to a global area pointing to the addresses
6123 used in the program.
6124 .Ip "\fB\-mlittle\fR" 4
6125 .IX Item "-mlittle"
6126 .PD 0
6127 .Ip "\fB\-mlittle-endian\fR" 4
6128 .IX Item "-mlittle-endian"
6129 .PD
6130 On System V.4 and embedded PowerPC systems compile code for the
6131 processor in little endian mode.  The \fB\-mlittle-endian\fR option is
6132 the same as \fB\-mlittle\fR.
6133 .Ip "\fB\-mbig\fR" 4
6134 .IX Item "-mbig"
6135 .PD 0
6136 .Ip "\fB\-mbig-endian\fR" 4
6137 .IX Item "-mbig-endian"
6138 .PD
6139 On System V.4 and embedded PowerPC systems compile code for the
6140 processor in big endian mode.  The \fB\-mbig-endian\fR option is
6141 the same as \fB\-mbig\fR.
6142 .Ip "\fB\-mcall-sysv\fR" 4
6143 .IX Item "-mcall-sysv"
6144 On System V.4 and embedded PowerPC systems compile code using calling
6145 conventions that adheres to the March 1995 draft of the System V
6146 Application Binary Interface, PowerPC processor supplement.  This is the
6147 default unless you configured \s-1GCC\s0 using \fBpowerpc-*\-eabiaix\fR.
6148 .Ip "\fB\-mcall-sysv-eabi\fR" 4
6149 .IX Item "-mcall-sysv-eabi"
6150 Specify both \fB\-mcall-sysv\fR and \fB\-meabi\fR options.
6151 .Ip "\fB\-mcall-sysv-noeabi\fR" 4
6152 .IX Item "-mcall-sysv-noeabi"
6153 Specify both \fB\-mcall-sysv\fR and \fB\-mno-eabi\fR options.
6154 .Ip "\fB\-mcall-aix\fR" 4
6155 .IX Item "-mcall-aix"
6156 On System V.4 and embedded PowerPC systems compile code using calling
6157 conventions that are similar to those used on \s-1AIX\s0.  This is the
6158 default if you configured \s-1GCC\s0 using \fBpowerpc-*\-eabiaix\fR.
6159 .Ip "\fB\-mcall-solaris\fR" 4
6160 .IX Item "-mcall-solaris"
6161 On System V.4 and embedded PowerPC systems compile code for the Solaris
6162 operating system.
6163 .Ip "\fB\-mcall-linux\fR" 4
6164 .IX Item "-mcall-linux"
6165 On System V.4 and embedded PowerPC systems compile code for the
6166 Linux-based \s-1GNU\s0 system.
6167 .Ip "\fB\-mcall-gnu\fR" 4
6168 .IX Item "-mcall-gnu"
6169 On System V.4 and embedded PowerPC systems compile code for the
6170 Hurd-based \s-1GNU\s0 system.
6171 .Ip "\fB\-mcall-netbsd\fR" 4
6172 .IX Item "-mcall-netbsd"
6173 On System V.4 and embedded PowerPC systems compile code for the
6174 NetBSD operating system.
6175 .Ip "\fB\-maix-struct-return\fR" 4
6176 .IX Item "-maix-struct-return"
6177 Return all structures in memory (as specified by the \s-1AIX\s0 \s-1ABI\s0).
6178 .Ip "\fB\-msvr4\-struct-return\fR" 4
6179 .IX Item "-msvr4-struct-return"
6180 Return structures smaller than 8 bytes in registers (as specified by the
6181 \&\s-1SVR4\s0 \s-1ABI\s0).
6182 .Ip "\fB\-mabi=altivec\fR" 4
6183 .IX Item "-mabi=altivec"
6184 Extend the current \s-1ABI\s0 with AltiVec \s-1ABI\s0 extensions.  This does not
6185 change the default \s-1ABI\s0, instead it adds the AltiVec \s-1ABI\s0 extensions to
6186 the current \s-1ABI\s0.
6187 .Ip "\fB\-mabi=no-altivec\fR" 4
6188 .IX Item "-mabi=no-altivec"
6189 Disable AltiVec \s-1ABI\s0 extensions for the current \s-1ABI\s0.
6190 .Ip "\fB\-mprototype\fR" 4
6191 .IX Item "-mprototype"
6192 .PD 0
6193 .Ip "\fB\-mno-prototype\fR" 4
6194 .IX Item "-mno-prototype"
6195 .PD
6196 On System V.4 and embedded PowerPC systems assume that all calls to
6197 variable argument functions are properly prototyped.  Otherwise, the
6198 compiler must insert an instruction before every non prototyped call to
6199 set or clear bit 6 of the condition code register (\fI\s-1CR\s0\fR) to
6200 indicate whether floating point values were passed in the floating point
6201 registers in case the function takes a variable arguments.  With
6202 \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
6203 will set or clear the bit.
6204 .Ip "\fB\-msim\fR" 4
6205 .IX Item "-msim"
6206 On embedded PowerPC systems, assume that the startup module is called
6207 \&\fIsim-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
6208 \&\fIlibc.a\fR.  This is the default for \fBpowerpc-*\-eabisim\fR.
6209 configurations.
6210 .Ip "\fB\-mmvme\fR" 4
6211 .IX Item "-mmvme"
6212 On embedded PowerPC systems, assume that the startup module is called
6213 \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
6214 \&\fIlibc.a\fR.
6215 .Ip "\fB\-mads\fR" 4
6216 .IX Item "-mads"
6217 On embedded PowerPC systems, assume that the startup module is called
6218 \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
6219 \&\fIlibc.a\fR.
6220 .Ip "\fB\-myellowknife\fR" 4
6221 .IX Item "-myellowknife"
6222 On embedded PowerPC systems, assume that the startup module is called
6223 \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
6224 \&\fIlibc.a\fR.
6225 .Ip "\fB\-mvxworks\fR" 4
6226 .IX Item "-mvxworks"
6227 On System V.4 and embedded PowerPC systems, specify that you are
6228 compiling for a VxWorks system.
6229 .Ip "\fB\-memb\fR" 4
6230 .IX Item "-memb"
6231 On embedded PowerPC systems, set the \fI\s-1PPC_EMB\s0\fR bit in the \s-1ELF\s0 flags
6232 header to indicate that \fBeabi\fR extended relocations are used.
6233 .Ip "\fB\-meabi\fR" 4
6234 .IX Item "-meabi"
6235 .PD 0
6236 .Ip "\fB\-mno-eabi\fR" 4
6237 .IX Item "-mno-eabi"
6238 .PD
6239 On System V.4 and embedded PowerPC systems do (do not) adhere to the
6240 Embedded Applications Binary Interface (eabi) which is a set of
6241 modifications to the System V.4 specifications.  Selecting \fB\-meabi\fR
6242 means that the stack is aligned to an 8 byte boundary, a function
6243 \&\f(CW\*(C`_\|_eabi\*(C'\fR is called to from \f(CW\*(C`main\*(C'\fR to set up the eabi
6244 environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
6245 \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas.  Selecting
6246 \&\fB\-mno-eabi\fR means that the stack is aligned to a 16 byte boundary,
6247 do not call an initialization function from \f(CW\*(C`main\*(C'\fR, and the
6248 \&\fB\-msdata\fR option will only use \f(CW\*(C`r13\*(C'\fR to point to a single
6249 small data area.  The \fB\-meabi\fR option is on by default if you
6250 configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
6251 .Ip "\fB\-msdata=eabi\fR" 4
6252 .IX Item "-msdata=eabi"
6253 On System V.4 and embedded PowerPC systems, put small initialized
6254 \&\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata2\fR section, which
6255 is pointed to by register \f(CW\*(C`r2\*(C'\fR.  Put small initialized
6256 non-\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata\fR section,
6257 which is pointed to by register \f(CW\*(C`r13\*(C'\fR.  Put small uninitialized
6258 global and static data in the \fB.sbss\fR section, which is adjacent to
6259 the \fB.sdata\fR section.  The \fB\-msdata=eabi\fR option is
6260 incompatible with the \fB\-mrelocatable\fR option.  The
6261 \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
6262 .Ip "\fB\-msdata=sysv\fR" 4
6263 .IX Item "-msdata=sysv"
6264 On System V.4 and embedded PowerPC systems, put small global and static
6265 data in the \fB.sdata\fR section, which is pointed to by register
6266 \&\f(CW\*(C`r13\*(C'\fR.  Put small uninitialized global and static data in the
6267 \&\fB.sbss\fR section, which is adjacent to the \fB.sdata\fR section.
6268 The \fB\-msdata=sysv\fR option is incompatible with the
6269 \&\fB\-mrelocatable\fR option.
6270 .Ip "\fB\-msdata=default\fR" 4
6271 .IX Item "-msdata=default"
6272 .PD 0
6273 .Ip "\fB\-msdata\fR" 4
6274 .IX Item "-msdata"
6275 .PD
6276 On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
6277 compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
6278 same as \fB\-msdata=sysv\fR.
6279 .Ip "\fB\-msdata-data\fR" 4
6280 .IX Item "-msdata-data"
6281 On System V.4 and embedded PowerPC systems, put small global and static
6282 data in the \fB.sdata\fR section.  Put small uninitialized global and
6283 static data in the \fB.sbss\fR section.  Do not use register \f(CW\*(C`r13\*(C'\fR
6284 to address small data however.  This is the default behavior unless
6285 other \fB\-msdata\fR options are used.
6286 .Ip "\fB\-msdata=none\fR" 4
6287 .IX Item "-msdata=none"
6288 .PD 0
6289 .Ip "\fB\-mno-sdata\fR" 4
6290 .IX Item "-mno-sdata"
6291 .PD
6292 On embedded PowerPC systems, put all initialized global and static data
6293 in the \fB.data\fR section, and all uninitialized data in the
6294 \&\fB.bss\fR section.
6295 .Ip "\fB\-G\fR \fInum\fR" 4
6296 .IX Item "-G num"
6297 On embedded PowerPC systems, put global and static items less than or
6298 equal to \fInum\fR bytes into the small data or bss sections instead of
6299 the normal data or bss section.  By default, \fInum\fR is 8.  The
6300 \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
6301 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
6302 .Ip "\fB\-mregnames\fR" 4
6303 .IX Item "-mregnames"
6304 .PD 0
6305 .Ip "\fB\-mno-regnames\fR" 4
6306 .IX Item "-mno-regnames"
6307 .PD
6308 On System V.4 and embedded PowerPC systems do (do not) emit register
6309 names in the assembly language output using symbolic forms.
6310 .Ip "\fB\-pthread\fR" 4
6311 .IX Item "-pthread"
6312 Adds support for multithreading with the \fIpthreads\fR library.
6313 This option sets flags for both the preprocessor and linker.
6314 .PP
6315 .I "\s-1IBM\s0 \s-1RT\s0 Options"
6316 .IX Subsection "IBM RT Options"
6317 .PP
6318 These \fB\-m\fR options are defined for the \s-1IBM\s0 \s-1RT\s0 \s-1PC:\s0
6319 .Ip "\fB\-min-line-mul\fR" 4
6320 .IX Item "-min-line-mul"
6321 Use an in-line code sequence for integer multiplies.  This is the
6322 default.
6323 .Ip "\fB\-mcall-lib-mul\fR" 4
6324 .IX Item "-mcall-lib-mul"
6325 Call \f(CW\*(C`lmul$$\*(C'\fR for integer multiples.
6326 .Ip "\fB\-mfull-fp-blocks\fR" 4
6327 .IX Item "-mfull-fp-blocks"
6328 Generate full-size floating point data blocks, including the minimum
6329 amount of scratch space recommended by \s-1IBM\s0.  This is the default.
6330 .Ip "\fB\-mminimum-fp-blocks\fR" 4
6331 .IX Item "-mminimum-fp-blocks"
6332 Do not include extra scratch space in floating point data blocks.  This
6333 results in smaller code, but slower execution, since scratch space must
6334 be allocated dynamically.
6335 .Ip "\fB\-mfp-arg-in-fpregs\fR" 4
6336 .IX Item "-mfp-arg-in-fpregs"
6337 Use a calling sequence incompatible with the \s-1IBM\s0 calling convention in
6338 which floating point arguments are passed in floating point registers.
6339 Note that \f(CW\*(C`varargs.h\*(C'\fR and \f(CW\*(C`stdarg.h\*(C'\fR will not work with
6340 floating point operands if this option is specified.
6341 .Ip "\fB\-mfp-arg-in-gregs\fR" 4
6342 .IX Item "-mfp-arg-in-gregs"
6343 Use the normal calling convention for floating point arguments.  This is
6344 the default.
6345 .Ip "\fB\-mhc-struct-return\fR" 4
6346 .IX Item "-mhc-struct-return"
6347 Return structures of more than one word in memory, rather than in a
6348 register.  This provides compatibility with the MetaWare HighC (hc)
6349 compiler.  Use the option \fB\-fpcc-struct-return\fR for compatibility
6350 with the Portable C Compiler (pcc).
6351 .Ip "\fB\-mnohc-struct-return\fR" 4
6352 .IX Item "-mnohc-struct-return"
6353 Return some structures of more than one word in registers, when
6354 convenient.  This is the default.  For compatibility with the
6355 IBM-supplied compilers, use the option \fB\-fpcc-struct-return\fR or the
6356 option \fB\-mhc-struct-return\fR.
6357 .PP
6358 .I "\s-1MIPS\s0 Options"
6359 .IX Subsection "MIPS Options"
6360 .PP
6361 These \fB\-m\fR options are defined for the \s-1MIPS\s0 family of computers:
6362 .Ip "\fB\-march=\fR\fIcpu-type\fR" 4
6363 .IX Item "-march=cpu-type"
6364 Assume the defaults for the machine type \fIcpu-type\fR when generating
6365 instructions.  The choices for \fIcpu-type\fR are  \fBr2000\fR, \fBr3000\fR,
6366 \&\fBr3900\fR, \fBr4000\fR, \fBr4100\fR, \fBr4300\fR, \fBr4400\fR,
6367 \&\fBr4600\fR, \fBr4650\fR, \fBr5000\fR, \fBr6000\fR, \fBr8000\fR,
6368 and \fBorion\fR.  Additionally, the \fBr2000\fR, \fBr3000\fR,
6369 \&\fBr4000\fR, \fBr5000\fR, and \fBr6000\fR can be abbreviated as
6370 \&\fBr2k\fR (or \fBr2K\fR), \fBr3k\fR, etc.
6371 .Ip "\fB\-mtune=\fR\fIcpu-type\fR" 4
6372 .IX Item "-mtune=cpu-type"
6373 Assume the defaults for the machine type \fIcpu-type\fR when scheduling
6374 instructions.  The choices for \fIcpu-type\fR are \fBr2000\fR, \fBr3000\fR,
6375 \&\fBr3900\fR, \fBr4000\fR, \fBr4100\fR, \fBr4300\fR, \fBr4400\fR,
6376 \&\fBr4600\fR, \fBr4650\fR, \fBr5000\fR, \fBr6000\fR, \fBr8000\fR,
6377 and \fBorion\fR.  Additionally, the \fBr2000\fR, \fBr3000\fR,
6378 \&\fBr4000\fR, \fBr5000\fR, and \fBr6000\fR can be abbreviated as
6379 \&\fBr2k\fR (or \fBr2K\fR), \fBr3k\fR, etc.  While picking a specific
6380 \&\fIcpu-type\fR will schedule things appropriately for that particular
6381 chip, the compiler will not generate any code that does not meet level 1
6382 of the \s-1MIPS\s0 \s-1ISA\s0 (instruction set architecture) without a \fB\-mipsX\fR
6383 or \fB\-mabi\fR switch being used.
6384 .Ip "\fB\-mcpu=\fR\fIcpu-type\fR" 4
6385 .IX Item "-mcpu=cpu-type"
6386 This is identical to specifying both \fB\-march\fR and \fB\-mtune\fR.
6387 .Ip "\fB\-mips1\fR" 4
6388 .IX Item "-mips1"
6389 Issue instructions from level 1 of the \s-1MIPS\s0 \s-1ISA\s0.  This is the default.
6390 \&\fBr3000\fR is the default \fIcpu-type\fR at this \s-1ISA\s0 level.
6391 .Ip "\fB\-mips2\fR" 4
6392 .IX Item "-mips2"
6393 Issue instructions from level 2 of the \s-1MIPS\s0 \s-1ISA\s0 (branch likely, square
6394 root instructions).  \fBr6000\fR is the default \fIcpu-type\fR at this
6395 \&\s-1ISA\s0 level.
6396 .Ip "\fB\-mips3\fR" 4
6397 .IX Item "-mips3"
6398 Issue instructions from level 3 of the \s-1MIPS\s0 \s-1ISA\s0 (64\-bit instructions).
6399 \&\fBr4000\fR is the default \fIcpu-type\fR at this \s-1ISA\s0 level.
6400 .Ip "\fB\-mips4\fR" 4
6401 .IX Item "-mips4"
6402 Issue instructions from level 4 of the \s-1MIPS\s0 \s-1ISA\s0 (conditional move,
6403 prefetch, enhanced \s-1FPU\s0 instructions).  \fBr8000\fR is the default
6404 \&\fIcpu-type\fR at this \s-1ISA\s0 level.
6405 .Ip "\fB\-mfp32\fR" 4
6406 .IX Item "-mfp32"
6407 Assume that 32 32\-bit floating point registers are available.  This is
6408 the default.
6409 .Ip "\fB\-mfp64\fR" 4
6410 .IX Item "-mfp64"
6411 Assume that 32 64\-bit floating point registers are available.  This is
6412 the default when the \fB\-mips3\fR option is used.
6413 .Ip "\fB\-mfused-madd\fR" 4
6414 .IX Item "-mfused-madd"
6415 .PD 0
6416 .Ip "\fB\-mno-fused-madd\fR" 4
6417 .IX Item "-mno-fused-madd"
6418 .PD
6419 Generate code that uses (does not use) the floating point multiply and
6420 accumulate instructions, when they are available.  These instructions
6421 are generated by default if they are available, but this may be
6422 undesirable if the extra precision causes problems or on certain chips
6423 in the mode where denormals are rounded to zero where denormals
6424 generated by multiply and accumulate instructions cause exceptions
6425 anyway.
6426 .Ip "\fB\-mgp32\fR" 4
6427 .IX Item "-mgp32"
6428 Assume that 32 32\-bit general purpose registers are available.  This is
6429 the default.
6430 .Ip "\fB\-mgp64\fR" 4
6431 .IX Item "-mgp64"
6432 Assume that 32 64\-bit general purpose registers are available.  This is
6433 the default when the \fB\-mips3\fR option is used.
6434 .Ip "\fB\-mint64\fR" 4
6435 .IX Item "-mint64"
6436 Force int and long types to be 64 bits wide.  See \fB\-mlong32\fR for an
6437 explanation of the default, and the width of pointers.
6438 .Ip "\fB\-mlong64\fR" 4
6439 .IX Item "-mlong64"
6440 Force long types to be 64 bits wide.  See \fB\-mlong32\fR for an
6441 explanation of the default, and the width of pointers.
6442 .Ip "\fB\-mlong32\fR" 4
6443 .IX Item "-mlong32"
6444 Force long, int, and pointer types to be 32 bits wide.
6445 .Sp
6446 If none of \fB\-mlong32\fR, \fB\-mlong64\fR, or \fB\-mint64\fR are set,
6447 the size of ints, longs, and pointers depends on the \s-1ABI\s0 and \s-1ISA\s0 chosen.
6448 For \fB\-mabi=32\fR, and \fB\-mabi=n32\fR, ints and longs are 32 bits
6449 wide.  For \fB\-mabi=64\fR, ints are 32 bits, and longs are 64 bits wide.
6450 For \fB\-mabi=eabi\fR and either \fB\-mips1\fR or \fB\-mips2\fR, ints
6451 and longs are 32 bits wide.  For \fB\-mabi=eabi\fR and higher ISAs, ints
6452 are 32 bits, and longs are 64 bits wide.  The width of pointer types is
6453 the smaller of the width of longs or the width of general purpose
6454 registers (which in turn depends on the \s-1ISA\s0).
6455 .Ip "\fB\-mabi=32\fR" 4
6456 .IX Item "-mabi=32"
6457 .PD 0
6458 .Ip "\fB\-mabi=o64\fR" 4
6459 .IX Item "-mabi=o64"
6460 .Ip "\fB\-mabi=n32\fR" 4
6461 .IX Item "-mabi=n32"
6462 .Ip "\fB\-mabi=64\fR" 4
6463 .IX Item "-mabi=64"
6464 .Ip "\fB\-mabi=eabi\fR" 4
6465 .IX Item "-mabi=eabi"
6466 .PD
6467 Generate code for the indicated \s-1ABI\s0.  The default instruction level is
6468 \&\fB\-mips1\fR for \fB32\fR, \fB\-mips3\fR for \fBn32\fR, and
6469 \&\fB\-mips4\fR otherwise.  Conversely, with \fB\-mips1\fR or
6470 \&\fB\-mips2\fR, the default \s-1ABI\s0 is \fB32\fR; otherwise, the default \s-1ABI\s0
6471 is \fB64\fR.
6472 .Ip "\fB\-mmips-as\fR" 4
6473 .IX Item "-mmips-as"
6474 Generate code for the \s-1MIPS\s0 assembler, and invoke \fImips-tfile\fR to
6475 add normal debug information.  This is the default for all
6476 platforms except for the \s-1OSF/1\s0 reference platform, using the OSF/rose
6477 object format.  If the either of the \fB\-gstabs\fR or \fB\-gstabs+\fR
6478 switches are used, the \fImips-tfile\fR program will encapsulate the
6479 stabs within \s-1MIPS\s0 \s-1ECOFF\s0.
6480 .Ip "\fB\-mgas\fR" 4
6481 .IX Item "-mgas"
6482 Generate code for the \s-1GNU\s0 assembler.  This is the default on the \s-1OSF/1\s0
6483 reference platform, using the OSF/rose object format.  Also, this is
6484 the default if the configure option \fB\*(--with-gnu-as\fR is used.
6485 .Ip "\fB\-msplit-addresses\fR" 4
6486 .IX Item "-msplit-addresses"
6487 .PD 0
6488 .Ip "\fB\-mno-split-addresses\fR" 4
6489 .IX Item "-mno-split-addresses"
6490 .PD
6491 Generate code to load the high and low parts of address constants separately.
6492 This allows \s-1GCC\s0 to optimize away redundant loads of the high order
6493 bits of addresses.  This optimization requires \s-1GNU\s0 as and \s-1GNU\s0 ld.
6494 This optimization is enabled by default for some embedded targets where
6495 \&\s-1GNU\s0 as and \s-1GNU\s0 ld are standard.
6496 .Ip "\fB\-mrnames\fR" 4
6497 .IX Item "-mrnames"
6498 .PD 0
6499 .Ip "\fB\-mno-rnames\fR" 4
6500 .IX Item "-mno-rnames"
6501 .PD
6502 The \fB\-mrnames\fR switch says to output code using the \s-1MIPS\s0 software
6503 names for the registers, instead of the hardware names (ie, \fIa0\fR
6504 instead of \fI$4\fR).  The only known assembler that supports this option
6505 is the Algorithmics assembler.
6506 .Ip "\fB\-mgpopt\fR" 4
6507 .IX Item "-mgpopt"
6508 .PD 0
6509 .Ip "\fB\-mno-gpopt\fR" 4
6510 .IX Item "-mno-gpopt"
6511 .PD
6512 The \fB\-mgpopt\fR switch says to write all of the data declarations
6513 before the instructions in the text section, this allows the \s-1MIPS\s0
6514 assembler to generate one word memory references instead of using two
6515 words for short global or static data items.  This is on by default if
6516 optimization is selected.
6517 .Ip "\fB\-mstats\fR" 4
6518 .IX Item "-mstats"
6519 .PD 0
6520 .Ip "\fB\-mno-stats\fR" 4
6521 .IX Item "-mno-stats"
6522 .PD
6523 For each non-inline function processed, the \fB\-mstats\fR switch
6524 causes the compiler to emit one line to the standard error file to
6525 print statistics about the program (number of registers saved, stack
6526 size, etc.).
6527 .Ip "\fB\-mmemcpy\fR" 4
6528 .IX Item "-mmemcpy"
6529 .PD 0
6530 .Ip "\fB\-mno-memcpy\fR" 4
6531 .IX Item "-mno-memcpy"
6532 .PD
6533 The \fB\-mmemcpy\fR switch makes all block moves call the appropriate
6534 string function (\fBmemcpy\fR or \fBbcopy\fR) instead of possibly
6535 generating inline code.
6536 .Ip "\fB\-mmips-tfile\fR" 4
6537 .IX Item "-mmips-tfile"
6538 .PD 0
6539 .Ip "\fB\-mno-mips-tfile\fR" 4
6540 .IX Item "-mno-mips-tfile"
6541 .PD
6542 The \fB\-mno-mips-tfile\fR switch causes the compiler not
6543 postprocess the object file with the \fImips-tfile\fR program,
6544 after the \s-1MIPS\s0 assembler has generated it to add debug support.  If
6545 \&\fImips-tfile\fR is not run, then no local variables will be
6546 available to the debugger.  In addition, \fIstage2\fR and
6547 \&\fIstage3\fR objects will have the temporary file names passed to the
6548 assembler embedded in the object file, which means the objects will
6549 not compare the same.  The \fB\-mno-mips-tfile\fR switch should only
6550 be used when there are bugs in the \fImips-tfile\fR program that
6551 prevents compilation.
6552 .Ip "\fB\-msoft-float\fR" 4
6553 .IX Item "-msoft-float"
6554 Generate output containing library calls for floating point.
6555 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC\s0.
6556 Normally the facilities of the machine's usual C compiler are used, but
6557 this can't be done directly in cross-compilation.  You must make your
6558 own arrangements to provide suitable library functions for
6559 cross-compilation.
6560 .Ip "\fB\-mhard-float\fR" 4
6561 .IX Item "-mhard-float"
6562 Generate output containing floating point instructions.  This is the
6563 default if you use the unmodified sources.
6564 .Ip "\fB\-mabicalls\fR" 4
6565 .IX Item "-mabicalls"
6566 .PD 0
6567 .Ip "\fB\-mno-abicalls\fR" 4
6568 .IX Item "-mno-abicalls"
6569 .PD
6570 Emit (or do not emit) the pseudo operations \fB.abicalls\fR,
6571 \&\fB.cpload\fR, and \fB.cprestore\fR that some System V.4 ports use for
6572 position independent code.
6573 .Ip "\fB\-mlong-calls\fR" 4
6574 .IX Item "-mlong-calls"
6575 .PD 0
6576 .Ip "\fB\-mno-long-calls\fR" 4
6577 .IX Item "-mno-long-calls"
6578 .PD
6579 Do all calls with the \fB\s-1JALR\s0\fR instruction, which requires
6580 loading up a function's address into a register before the call.
6581 You need to use this switch, if you call outside of the current
6582 512 megabyte segment to functions that are not through pointers.
6583 .Ip "\fB\-mhalf-pic\fR" 4
6584 .IX Item "-mhalf-pic"
6585 .PD 0
6586 .Ip "\fB\-mno-half-pic\fR" 4
6587 .IX Item "-mno-half-pic"
6588 .PD
6589 Put pointers to extern references into the data section and load them
6590 up, rather than put the references in the text section.
6591 .Ip "\fB\-membedded-pic\fR" 4
6592 .IX Item "-membedded-pic"
6593 .PD 0
6594 .Ip "\fB\-mno-embedded-pic\fR" 4
6595 .IX Item "-mno-embedded-pic"
6596 .PD
6597 Generate \s-1PIC\s0 code suitable for some embedded systems.  All calls are
6598 made using \s-1PC\s0 relative address, and all data is addressed using the \f(CW$gp\fR
6599 register.  No more than 65536 bytes of global data may be used.  This
6600 requires \s-1GNU\s0 as and \s-1GNU\s0 ld which do most of the work.  This currently
6601 only works on targets which use \s-1ECOFF\s0; it does not work with \s-1ELF\s0.
6602 .Ip "\fB\-membedded-data\fR" 4
6603 .IX Item "-membedded-data"
6604 .PD 0
6605 .Ip "\fB\-mno-embedded-data\fR" 4
6606 .IX Item "-mno-embedded-data"
6607 .PD
6608 Allocate variables to the read-only data section first if possible, then
6609 next in the small data section if possible, otherwise in data.  This gives
6610 slightly slower code than the default, but reduces the amount of \s-1RAM\s0 required
6611 when executing, and thus may be preferred for some embedded systems.
6612 .Ip "\fB\-muninit-const-in-rodata\fR" 4
6613 .IX Item "-muninit-const-in-rodata"
6614 .PD 0
6615 .Ip "\fB\-mno-uninit-const-in-rodata\fR" 4
6616 .IX Item "-mno-uninit-const-in-rodata"
6617 .PD
6618 When used together with \fB\-membedded-data\fR, it will always store uninitialized
6619 const variables in the read-only data section.
6620 .Ip "\fB\-msingle-float\fR" 4
6621 .IX Item "-msingle-float"
6622 .PD 0
6623 .Ip "\fB\-mdouble-float\fR" 4
6624 .IX Item "-mdouble-float"
6625 .PD
6626 The \fB\-msingle-float\fR switch tells gcc to assume that the floating
6627 point coprocessor only supports single precision operations, as on the
6628 \&\fBr4650\fR chip.  The \fB\-mdouble-float\fR switch permits gcc to use
6629 double precision operations.  This is the default.
6630 .Ip "\fB\-mmad\fR" 4
6631 .IX Item "-mmad"
6632 .PD 0
6633 .Ip "\fB\-mno-mad\fR" 4
6634 .IX Item "-mno-mad"
6635 .PD
6636 Permit use of the \fBmad\fR, \fBmadu\fR and \fBmul\fR instructions,
6637 as on the \fBr4650\fR chip.
6638 .Ip "\fB\-m4650\fR" 4
6639 .IX Item "-m4650"
6640 Turns on \fB\-msingle-float\fR, \fB\-mmad\fR, and, at least for now,
6641 \&\fB\-mcpu=r4650\fR.
6642 .Ip "\fB\-mips16\fR" 4
6643 .IX Item "-mips16"
6644 .PD 0
6645 .Ip "\fB\-mno-mips16\fR" 4
6646 .IX Item "-mno-mips16"
6647 .PD
6648 Enable 16\-bit instructions.
6649 .Ip "\fB\-mentry\fR" 4
6650 .IX Item "-mentry"
6651 Use the entry and exit pseudo ops.  This option can only be used with
6652 \&\fB\-mips16\fR.
6653 .Ip "\fB\-EL\fR" 4
6654 .IX Item "-EL"
6655 Compile code for the processor in little endian mode.
6656 The requisite libraries are assumed to exist.
6657 .Ip "\fB\-EB\fR" 4
6658 .IX Item "-EB"
6659 Compile code for the processor in big endian mode.
6660 The requisite libraries are assumed to exist.
6661 .Ip "\fB\-G\fR \fInum\fR" 4
6662 .IX Item "-G num"
6663 Put global and static items less than or equal to \fInum\fR bytes into
6664 the small data or bss sections instead of the normal data or bss
6665 section.  This allows the assembler to emit one word memory reference
6666 instructions based on the global pointer (\fIgp\fR or \fI$28\fR),
6667 instead of the normal two words used.  By default, \fInum\fR is 8 when
6668 the \s-1MIPS\s0 assembler is used, and 0 when the \s-1GNU\s0 assembler is used.  The
6669 \&\fB\-G\fR \fInum\fR switch is also passed to the assembler and linker.
6670 All modules should be compiled with the same \fB\-G\fR \fInum\fR
6671 value.
6672 .Ip "\fB\-nocpp\fR" 4
6673 .IX Item "-nocpp"
6674 Tell the \s-1MIPS\s0 assembler to not run its preprocessor over user
6675 assembler files (with a \fB.s\fR suffix) when assembling them.
6676 .Ip "\fB\-mfix7000\fR" 4
6677 .IX Item "-mfix7000"
6678 Pass an option to gas which will cause nops to be inserted if
6679 the read of the destination register of an mfhi or mflo instruction
6680 occurs in the following two instructions.
6681 .Ip "\fB\-no-crt0\fR" 4
6682 .IX Item "-no-crt0"
6683 Do not include the default crt0.
6684 .Ip "\fB\-mflush-func=\fR\fIfunc\fR" 4
6685 .IX Item "-mflush-func=func"
6686 .PD 0
6687 .Ip "\fB\-mno-flush-func\fR" 4
6688 .IX Item "-mno-flush-func"
6689 .PD
6690 Specifies the function to call to flush the I and D caches, or to not
6691 call any such function.  If called, the function must take the same
6692 arguments as the common \f(CW\*(C`_flush_func()\*(C'\fR, that is, the address of the
6693 memory range for which the cache is being flushed, the size of the
6694 memory range, and the number 3 (to flush both caches).  The default
6695 depends on the target gcc was configured for, but commonly is either
6696 \&\fB_flush_func\fR or \fB_\|_cpu_flush\fR.
6697 .PP
6698 These options are defined by the macro
6699 \&\f(CW\*(C`TARGET_SWITCHES\*(C'\fR in the machine description.  The default for the
6700 options is also defined by that macro, which enables you to change the
6701 defaults.
6702 .PP
6703 .I "Intel 386 and \s-1AMD\s0 x86\-64 Options"
6704 .IX Subsection "Intel 386 and AMD x86-64 Options"
6705 .PP
6706 These \fB\-m\fR options are defined for the i386 and x86\-64 family of
6707 computers:
6708 .Ip "\fB\-mcpu=\fR\fIcpu-type\fR" 4
6709 .IX Item "-mcpu=cpu-type"
6710 Tune to \fIcpu-type\fR everything applicable about the generated code, except
6711 for the \s-1ABI\s0 and the set of available instructions.  The choices for
6712 \&\fIcpu-type\fR are \fBi386\fR, \fBi486\fR, \fBi586\fR, \fBi686\fR,
6713 \&\fBpentium\fR, \fBpentium-mmx\fR, \fBpentiumpro\fR, \fBpentium2\fR,
6714 \&\fBpentium3\fR, \fBpentium4\fR, \fBk6\fR, \fBk6\-2\fR, \fBk6\-3\fR,
6715 \&\fBathlon\fR, \fBathlon-tbird\fR, \fBathlon-4\fR, \fBathlon-xp\fR
6716 and \fBathlon-mp\fR.
6717 .Sp
6718 While picking a specific \fIcpu-type\fR will schedule things appropriately
6719 for that particular chip, the compiler will not generate any code that
6720 does not run on the i386 without the \fB\-march=\fR\fIcpu-type\fR option
6721 being used.  \fBi586\fR is equivalent to \fBpentium\fR and \fBi686\fR
6722 is equivalent to \fBpentiumpro\fR.  \fBk6\fR and \fBathlon\fR are the
6723 \&\s-1AMD\s0 chips as opposed to the Intel ones.
6724 .Ip "\fB\-march=\fR\fIcpu-type\fR" 4
6725 .IX Item "-march=cpu-type"
6726 Generate instructions for the machine type \fIcpu-type\fR.  The choices
6727 for \fIcpu-type\fR are the same as for \fB\-mcpu\fR.  Moreover,
6728 specifying \fB\-march=\fR\fIcpu-type\fR implies \fB\-mcpu=\fR\fIcpu-type\fR.
6729 .Ip "\fB\-m386\fR" 4
6730 .IX Item "-m386"
6731 .PD 0
6732 .Ip "\fB\-m486\fR" 4
6733 .IX Item "-m486"
6734 .Ip "\fB\-mpentium\fR" 4
6735 .IX Item "-mpentium"
6736 .Ip "\fB\-mpentiumpro\fR" 4
6737 .IX Item "-mpentiumpro"
6738 .PD
6739 These options are synonyms for \fB\-mcpu=i386\fR, \fB\-mcpu=i486\fR,
6740 \&\fB\-mcpu=pentium\fR, and \fB\-mcpu=pentiumpro\fR respectively.
6741 These synonyms are deprecated.
6742 .Ip "\fB\-mfpmath=\fR\fIunit\fR" 4
6743 .IX Item "-mfpmath=unit"
6744 generate floating point arithmetics for selected unit \fIunit\fR.  the choices
6745 for \fIunit\fR are:
6746 .RS 4
6747 .Ip "\fB387\fR" 4
6748 .IX Item "387"
6749 Use the standard 387 floating point coprocessor present majority of chips and
6750 emulated otherwise.  Code compiled with this option will run almost everywhere.
6751 The temporary results are computed in 80bit precesion instead of precision
6752 specified by the type resulting in slightly different results compared to most
6753 of other chips. See \fB\-ffloat-store\fR for more detailed description.
6754 .Sp
6755 This is the default choice for i386 compiler.
6756 .Ip "\fBsse\fR" 4
6757 .IX Item "sse"
6758 Use scalar floating point instructions present in the \s-1SSE\s0 instruction set.
6759 This instruction set is supported by Pentium3 and newer chips, in the \s-1AMD\s0 line
6760 by Athlon-4, Athlon-xp and Athlon-mp chips.  The earlier version of \s-1SSE\s0
6761 instruction set supports only single precision arithmetics, thus the double and
6762 extended precision arithmetics is still done using 387.  Later version, present
6763 only in Pentium4 and the future \s-1AMD\s0 x86\-64 chips supports double precision
6764 arithmetics too.
6765 .Sp
6766 For i387 you need to use \fB\-march=\fR\fIcpu-type\fR, \fB\-msse\fR or
6767 \&\fB\-msse2\fR switches to enable \s-1SSE\s0 extensions and make this option
6768 effective.  For x86\-64 compiler, these extensions are enabled by default.
6769 .Sp
6770 The resulting code should be considerably faster in majority of cases and avoid
6771 the numerical instability problems of 387 code, but may break some existing
6772 code that expects temporaries to be 80bit.
6773 .Sp
6774 This is the default choice for x86\-64 compiler.
6775 .Ip "\fBsse,387\fR" 4
6776 .IX Item "sse,387"
6777 Attempt to utilize both instruction sets at once.  This effectivly double the
6778 amount of available registers and on chips with separate execution units for
6779 387 and \s-1SSE\s0 the execution resources too.  Use this option with care, as it is
6780 still experimental, because gcc register allocator does not model separate
6781 functional units well resulting in instable performance.
6782 .RE
6783 .RS 4
6784 .RE
6785 .Ip "\fB\-masm=\fR\fIdialect\fR" 4
6786 .IX Item "-masm=dialect"
6787 Output asm instructions using selected \fIdialect\fR. Supported choices are
6788 \&\fBintel\fR or \fBatt\fR (the default one).
6789 .Ip "\fB\-mieee-fp\fR" 4
6790 .IX Item "-mieee-fp"
6791 .PD 0
6792 .Ip "\fB\-mno-ieee-fp\fR" 4
6793 .IX Item "-mno-ieee-fp"
6794 .PD
6795 Control whether or not the compiler uses \s-1IEEE\s0 floating point
6796 comparisons.  These handle correctly the case where the result of a
6797 comparison is unordered.
6798 .Ip "\fB\-msoft-float\fR" 4
6799 .IX Item "-msoft-float"
6800 Generate output containing library calls for floating point.
6801 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC\s0.
6802 Normally the facilities of the machine's usual C compiler are used, but
6803 this can't be done directly in cross-compilation.  You must make your
6804 own arrangements to provide suitable library functions for
6805 cross-compilation.
6806 .Sp
6807 On machines where a function returns floating point results in the 80387
6808 register stack, some floating point opcodes may be emitted even if
6809 \&\fB\-msoft-float\fR is used.
6810 .Ip "\fB\-mno-fp-ret-in-387\fR" 4
6811 .IX Item "-mno-fp-ret-in-387"
6812 Do not use the \s-1FPU\s0 registers for return values of functions.
6813 .Sp
6814 The usual calling convention has functions return values of types
6815 \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR in an \s-1FPU\s0 register, even if there
6816 is no \s-1FPU\s0.  The idea is that the operating system should emulate
6817 an \s-1FPU\s0.
6818 .Sp
6819 The option \fB\-mno-fp-ret-in-387\fR causes such values to be returned
6820 in ordinary \s-1CPU\s0 registers instead.
6821 .Ip "\fB\-mno-fancy-math-387\fR" 4
6822 .IX Item "-mno-fancy-math-387"
6823 Some 387 emulators do not support the \f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR and
6824 \&\f(CW\*(C`sqrt\*(C'\fR instructions for the 387.  Specify this option to avoid
6825 generating those instructions.  This option is the default on FreeBSD,
6826 OpenBSD and NetBSD.  This option is overridden when \fB\-march\fR
6827 indicates that the target cpu will always have an \s-1FPU\s0 and so the
6828 instruction will not need emulation.  As of revision 2.6.1, these
6829 instructions are not generated unless you also use the
6830 \&\fB\-funsafe-math-optimizations\fR switch.
6831 .Ip "\fB\-malign-double\fR" 4
6832 .IX Item "-malign-double"
6833 .PD 0
6834 .Ip "\fB\-mno-align-double\fR" 4
6835 .IX Item "-mno-align-double"
6836 .PD
6837 Control whether \s-1GCC\s0 aligns \f(CW\*(C`double\*(C'\fR, \f(CW\*(C`long double\*(C'\fR, and
6838 \&\f(CW\*(C`long long\*(C'\fR variables on a two word boundary or a one word
6839 boundary.  Aligning \f(CW\*(C`double\*(C'\fR variables on a two word boundary will
6840 produce code that runs somewhat faster on a \fBPentium\fR at the
6841 expense of more memory.
6842 .Sp
6843 \&\fBWarning:\fR if you use the \fB\-malign-double\fR switch,
6844 structures containing the above types will be aligned differently than
6845 the published application binary interface specifications for the 386
6846 and will not be binary compatible with structures in code compiled
6847 without that switch.
6848 .Ip "\fB\-m128bit-long-double\fR" 4
6849 .IX Item "-m128bit-long-double"
6850 Control the size of \f(CW\*(C`long double\*(C'\fR type. i386 application binary interface
6851 specify the size to be 12 bytes, while modern architectures (Pentium and newer)
6852 prefer \f(CW\*(C`long double\*(C'\fR aligned to 8 or 16 byte boundary.  This is
6853 impossible to reach with 12 byte long doubles in the array accesses.
6854 .Sp
6855 \&\fBWarning:\fR if you use the \fB\-m128bit-long-double\fR switch, the
6856 structures and arrays containing \f(CW\*(C`long double\*(C'\fR will change their size as
6857 well as function calling convention for function taking \f(CW\*(C`long double\*(C'\fR
6858 will be modified.
6859 .Ip "\fB\-m96bit-long-double\fR" 4
6860 .IX Item "-m96bit-long-double"
6861 Set the size of \f(CW\*(C`long double\*(C'\fR to 96 bits as required by the i386
6862 application binary interface.  This is the default.
6863 .Ip "\fB\-msvr3\-shlib\fR" 4
6864 .IX Item "-msvr3-shlib"
6865 .PD 0
6866 .Ip "\fB\-mno-svr3\-shlib\fR" 4
6867 .IX Item "-mno-svr3-shlib"
6868 .PD
6869 Control whether \s-1GCC\s0 places uninitialized local variables into the
6870 \&\f(CW\*(C`bss\*(C'\fR or \f(CW\*(C`data\*(C'\fR segments.  \fB\-msvr3\-shlib\fR places them
6871 into \f(CW\*(C`bss\*(C'\fR.  These options are meaningful only on System V Release 3.
6872 .Ip "\fB\-mrtd\fR" 4
6873 .IX Item "-mrtd"
6874 Use a different function-calling convention, in which functions that
6875 take a fixed number of arguments return with the \f(CW\*(C`ret\*(C'\fR \fInum\fR
6876 instruction, which pops their arguments while returning.  This saves one
6877 instruction in the caller since there is no need to pop the arguments
6878 there.
6879 .Sp
6880 You can specify that an individual function is called with this calling
6881 sequence with the function attribute \fBstdcall\fR.  You can also
6882 override the \fB\-mrtd\fR option by using the function attribute
6883 \&\fBcdecl\fR.  
6884 .Sp
6885 \&\fBWarning:\fR this calling convention is incompatible with the one
6886 normally used on Unix, so you cannot use it if you need to call
6887 libraries compiled with the Unix compiler.
6888 .Sp
6889 Also, you must provide function prototypes for all functions that
6890 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
6891 otherwise incorrect code will be generated for calls to those
6892 functions.
6893 .Sp
6894 In addition, seriously incorrect code will result if you call a
6895 function with too many arguments.  (Normally, extra arguments are
6896 harmlessly ignored.)
6897 .Ip "\fB\-mregparm=\fR\fInum\fR" 4
6898 .IX Item "-mregparm=num"
6899 Control how many registers are used to pass integer arguments.  By
6900 default, no registers are used to pass arguments, and at most 3
6901 registers can be used.  You can control this behavior for a specific
6902 function by using the function attribute \fBregparm\fR.
6903 .Sp
6904 \&\fBWarning:\fR if you use this switch, and
6905 \&\fInum\fR is nonzero, then you must build all modules with the same
6906 value, including any libraries.  This includes the system libraries and
6907 startup modules.
6908 .Ip "\fB\-mpreferred-stack-boundary=\fR\fInum\fR" 4
6909 .IX Item "-mpreferred-stack-boundary=num"
6910 Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
6911 byte boundary.  If \fB\-mpreferred-stack-boundary\fR is not specified,
6912 the default is 4 (16 bytes or 128 bits), except when optimizing for code
6913 size (\fB\-Os\fR), in which case the default is the minimum correct
6914 alignment (4 bytes for x86, and 8 bytes for x86\-64).
6915 .Sp
6916 On Pentium and PentiumPro, \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long double\*(C'\fR values
6917 should be aligned to an 8 byte boundary (see \fB\-malign-double\fR) or
6918 suffer significant run time performance penalties.  On Pentium \s-1III\s0, the
6919 Streaming \s-1SIMD\s0 Extension (\s-1SSE\s0) data type \f(CW\*(C`_\|_m128\*(C'\fR suffers similar
6920 penalties if it is not 16 byte aligned.
6921 .Sp
6922 To ensure proper alignment of this values on the stack, the stack boundary
6923 must be as aligned as that required by any value stored on the stack.
6924 Further, every function must be generated such that it keeps the stack
6925 aligned.  Thus calling a function compiled with a higher preferred
6926 stack boundary from a function compiled with a lower preferred stack
6927 boundary will most likely misalign the stack.  It is recommended that
6928 libraries that use callbacks always use the default setting.
6929 .Sp
6930 This extra alignment does consume extra stack space, and generally
6931 increases code size.  Code that is sensitive to stack space usage, such
6932 as embedded systems and operating system kernels, may want to reduce the
6933 preferred alignment to \fB\-mpreferred-stack-boundary=2\fR.
6934 .Ip "\fB\-mmmx\fR" 4
6935 .IX Item "-mmmx"
6936 .PD 0
6937 .Ip "\fB\-mno-mmx\fR" 4
6938 .IX Item "-mno-mmx"
6939 .Ip "\fB\-msse\fR" 4
6940 .IX Item "-msse"
6941 .Ip "\fB\-mno-sse\fR" 4
6942 .IX Item "-mno-sse"
6943 .Ip "\fB\-msse2\fR" 4
6944 .IX Item "-msse2"
6945 .Ip "\fB\-mno-sse2\fR" 4
6946 .IX Item "-mno-sse2"
6947 .Ip "\fB\-m3dnow\fR" 4
6948 .IX Item "-m3dnow"
6949 .Ip "\fB\-mno-3dnow\fR" 4
6950 .IX Item "-mno-3dnow"
6951 .PD
6952 These switches enable or disable the use of built-in functions that allow
6953 direct access to the \s-1MMX\s0, \s-1SSE\s0 and 3Dnow extensions of the instruction set.
6954 .Sp
6955 To have \s-1SSE/SSE2\s0 instructions generated automatically from floating-point code,
6956 see \fB\-mfpmath=sse\fR.
6957 .Ip "\fB\-mpush-args\fR" 4
6958 .IX Item "-mpush-args"
6959 .PD 0
6960 .Ip "\fB\-mno-push-args\fR" 4
6961 .IX Item "-mno-push-args"
6962 .PD
6963 Use \s-1PUSH\s0 operations to store outgoing parameters.  This method is shorter
6964 and usually equally fast as method using \s-1SUB/MOV\s0 operations and is enabled
6965 by default.  In some cases disabling it may improve performance because of
6966 improved scheduling and reduced dependencies.
6967 .Ip "\fB\-maccumulate-outgoing-args\fR" 4
6968 .IX Item "-maccumulate-outgoing-args"
6969 If enabled, the maximum amount of space required for outgoing arguments will be
6970 computed in the function prologue.  This is faster on most modern CPUs
6971 because of reduced dependencies, improved scheduling and reduced stack usage
6972 when preferred stack boundary is not equal to 2.  The drawback is a notable
6973 increase in code size.  This switch implies \fB\-mno-push-args\fR.
6974 .Ip "\fB\-mthreads\fR" 4
6975 .IX Item "-mthreads"
6976 Support thread-safe exception handling on \fBMingw32\fR.  Code that relies
6977 on thread-safe exception handling must compile and link all code with the
6978 \&\fB\-mthreads\fR option.  When compiling, \fB\-mthreads\fR defines
6979 \&\fB\-D_MT\fR; when linking, it links in a special thread helper library
6980 \&\fB\-lmingwthrd\fR which cleans up per thread exception handling data.
6981 .Ip "\fB\-mno-align-stringops\fR" 4
6982 .IX Item "-mno-align-stringops"
6983 Do not align destination of inlined string operations.  This switch reduces
6984 code size and improves performance in case the destination is already aligned,
6985 but gcc don't know about it.
6986 .Ip "\fB\-minline-all-stringops\fR" 4
6987 .IX Item "-minline-all-stringops"
6988 By default \s-1GCC\s0 inlines string operations only when destination is known to be
6989 aligned at least to 4 byte boundary.  This enables more inlining, increase code
6990 size, but may improve performance of code that depends on fast memcpy, strlen
6991 and memset for short lengths.
6992 .Ip "\fB\-momit-leaf-frame-pointer\fR" 4
6993 .IX Item "-momit-leaf-frame-pointer"
6994 Don't keep the frame pointer in a register for leaf functions.  This
6995 avoids the instructions to save, set up and restore frame pointers and
6996 makes an extra register available in leaf functions.  The option
6997 \&\fB\-fomit-frame-pointer\fR removes the frame pointer for all functions
6998 which might make debugging harder.
6999 .PP
7000 These \fB\-m\fR switches are supported in addition to the above
7001 on \s-1AMD\s0 x86\-64 processors in 64\-bit environments.
7002 .Ip "\fB\-m32\fR" 4
7003 .IX Item "-m32"
7004 .PD 0
7005 .Ip "\fB\-m64\fR" 4
7006 .IX Item "-m64"
7007 .PD
7008 Generate code for a 32\-bit or 64\-bit environment.
7009 The 32\-bit environment sets int, long and pointer to 32 bits and
7010 generates code that runs on any i386 system.
7011 The 64\-bit environment sets int to 32 bits and long and pointer
7012 to 64 bits and generates code for \s-1AMD\s0's x86\-64 architecture.
7013 .Ip "\fB\-mno-red-zone\fR" 4
7014 .IX Item "-mno-red-zone"
7015 Do not use a so called red zone for x86\-64 code.  The red zone is mandated
7016 by the x86\-64 \s-1ABI\s0, it is a 128\-byte area beyond the location of the
7017 stack pointer that will not be modified by signal or interrupt handlers
7018 and therefore can be used for temporary data without adjusting the stack
7019 pointer.  The flag \fB\-mno-red-zone\fR disables this red zone.
7020 .Ip "\fB\-mcmodel=small\fR" 4
7021 .IX Item "-mcmodel=small"
7022 Generate code for the small code model: the program and its symbols must
7023 be linked in the lower 2 \s-1GB\s0 of the address space.  Pointers are 64 bits.
7024 Programs can be statically or dynamically linked.  This is the default
7025 code model.
7026 .Ip "\fB\-mcmodel=kernel\fR" 4
7027 .IX Item "-mcmodel=kernel"
7028 Generate code for the kernel code model.  The kernel runs in the
7029 negative 2 \s-1GB\s0 of the address space.
7030 This model has to be used for Linux kernel code.
7031 .Ip "\fB\-mcmodel=medium\fR" 4
7032 .IX Item "-mcmodel=medium"
7033 Generate code for the medium model: The program is linked in the lower 2
7034 \&\s-1GB\s0 of the address space but symbols can be located anywhere in the
7035 address space.  Programs can be statically or dynamically linked, but
7036 building of shared libraries are not supported with the medium model.
7037 .Ip "\fB\-mcmodel=large\fR" 4
7038 .IX Item "-mcmodel=large"
7039 Generate code for the large model: This model makes no assumptions
7040 about addresses and sizes of sections.  Currently \s-1GCC\s0 does not implement
7041 this model.
7042 .PP
7043 .I "\s-1HPPA\s0 Options"
7044 .IX Subsection "HPPA Options"
7045 .PP
7046 These \fB\-m\fR options are defined for the \s-1HPPA\s0 family of computers:
7047 .Ip "\fB\-march=\fR\fIarchitecture-type\fR" 4
7048 .IX Item "-march=architecture-type"
7049 Generate code for the specified architecture.  The choices for
7050 \&\fIarchitecture-type\fR are \fB1.0\fR for \s-1PA\s0 1.0, \fB1.1\fR for \s-1PA\s0
7051 1.1, and \fB2.0\fR for \s-1PA\s0 2.0 processors.  Refer to
7052 \&\fI/usr/lib/sched.models\fR on an \s-1HP-UX\s0 system to determine the proper
7053 architecture option for your machine.  Code compiled for lower numbered
7054 architectures will run on higher numbered architectures, but not the
7055 other way around.
7056 .Sp
7057 \&\s-1PA\s0 2.0 support currently requires gas snapshot 19990413 or later.  The
7058 next release of binutils (current is 2.9.1) will probably contain \s-1PA\s0 2.0
7059 support.
7060 .Ip "\fB\-mpa-risc-1\-0\fR" 4
7061 .IX Item "-mpa-risc-1-0"
7062 .PD 0
7063 .Ip "\fB\-mpa-risc-1\-1\fR" 4
7064 .IX Item "-mpa-risc-1-1"
7065 .Ip "\fB\-mpa-risc-2\-0\fR" 4
7066 .IX Item "-mpa-risc-2-0"
7067 .PD
7068 Synonyms for \fB\-march=1.0\fR, \fB\-march=1.1\fR, and \fB\-march=2.0\fR respectively.
7069 .Ip "\fB\-mbig-switch\fR" 4
7070 .IX Item "-mbig-switch"
7071 Generate code suitable for big switch tables.  Use this option only if
7072 the assembler/linker complain about out of range branches within a switch
7073 table.
7074 .Ip "\fB\-mjump-in-delay\fR" 4
7075 .IX Item "-mjump-in-delay"
7076 Fill delay slots of function calls with unconditional jump instructions
7077 by modifying the return pointer for the function call to be the target
7078 of the conditional jump.
7079 .Ip "\fB\-mdisable-fpregs\fR" 4
7080 .IX Item "-mdisable-fpregs"
7081 Prevent floating point registers from being used in any manner.  This is
7082 necessary for compiling kernels which perform lazy context switching of
7083 floating point registers.  If you use this option and attempt to perform
7084 floating point operations, the compiler will abort.
7085 .Ip "\fB\-mdisable-indexing\fR" 4
7086 .IX Item "-mdisable-indexing"
7087 Prevent the compiler from using indexing address modes.  This avoids some
7088 rather obscure problems when compiling \s-1MIG\s0 generated code under \s-1MACH\s0.
7089 .Ip "\fB\-mno-space-regs\fR" 4
7090 .IX Item "-mno-space-regs"
7091 Generate code that assumes the target has no space registers.  This allows
7092 \&\s-1GCC\s0 to generate faster indirect calls and use unscaled index address modes.
7093 .Sp
7094 Such code is suitable for level 0 \s-1PA\s0 systems and kernels.
7095 .Ip "\fB\-mfast-indirect-calls\fR" 4
7096 .IX Item "-mfast-indirect-calls"
7097 Generate code that assumes calls never cross space boundaries.  This
7098 allows \s-1GCC\s0 to emit code which performs faster indirect calls.
7099 .Sp
7100 This option will not work in the presence of shared libraries or nested
7101 functions.
7102 .Ip "\fB\-mlong-load-store\fR" 4
7103 .IX Item "-mlong-load-store"
7104 Generate 3\-instruction load and store sequences as sometimes required by
7105 the \s-1HP-UX\s0 10 linker.  This is equivalent to the \fB+k\fR option to
7106 the \s-1HP\s0 compilers.
7107 .Ip "\fB\-mportable-runtime\fR" 4
7108 .IX Item "-mportable-runtime"
7109 Use the portable calling conventions proposed by \s-1HP\s0 for \s-1ELF\s0 systems.
7110 .Ip "\fB\-mgas\fR" 4
7111 .IX Item "-mgas"
7112 Enable the use of assembler directives only \s-1GAS\s0 understands.
7113 .Ip "\fB\-mschedule=\fR\fIcpu-type\fR" 4
7114 .IX Item "-mschedule=cpu-type"
7115 Schedule code according to the constraints for the machine type
7116 \&\fIcpu-type\fR.  The choices for \fIcpu-type\fR are \fB700\fR
7117 \&\fB7100\fR, \fB7100LC\fR, \fB7200\fR, and \fB8000\fR.  Refer to
7118 \&\fI/usr/lib/sched.models\fR on an \s-1HP-UX\s0 system to determine the
7119 proper scheduling option for your machine.
7120 .Ip "\fB\-mlinker-opt\fR" 4
7121 .IX Item "-mlinker-opt"
7122 Enable the optimization pass in the \s-1HPUX\s0 linker.  Note this makes symbolic
7123 debugging impossible.  It also triggers a bug in the \s-1HPUX\s0 8 and \s-1HPUX\s0 9 linkers
7124 in which they give bogus error messages when linking some programs.
7125 .Ip "\fB\-msoft-float\fR" 4
7126 .IX Item "-msoft-float"
7127 Generate output containing library calls for floating point.
7128 \&\fBWarning:\fR the requisite libraries are not available for all \s-1HPPA\s0
7129 targets.  Normally the facilities of the machine's usual C compiler are
7130 used, but this cannot be done directly in cross-compilation.  You must make
7131 your own arrangements to provide suitable library functions for
7132 cross-compilation.  The embedded target \fBhppa1.1\-*\-pro\fR
7133 does provide software floating point support.
7134 .Sp
7135 \&\fB\-msoft-float\fR changes the calling convention in the output file;
7136 therefore, it is only useful if you compile \fIall\fR of a program with
7137 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
7138 library that comes with \s-1GCC\s0, with \fB\-msoft-float\fR in order for
7139 this to work.
7140 .PP
7141 .I "Intel 960 Options"
7142 .IX Subsection "Intel 960 Options"
7143 .PP
7144 These \fB\-m\fR options are defined for the Intel 960 implementations:
7145 .Ip "\fB\-m\fR\fIcpu-type\fR" 4
7146 .IX Item "-mcpu-type"
7147 Assume the defaults for the machine type \fIcpu-type\fR for some of
7148 the other options, including instruction scheduling, floating point
7149 support, and addressing modes.  The choices for \fIcpu-type\fR are
7150 \&\fBka\fR, \fBkb\fR, \fBmc\fR, \fBca\fR, \fBcf\fR,
7151 \&\fBsa\fR, and \fBsb\fR.
7152 The default is
7153 \&\fBkb\fR.
7154 .Ip "\fB\-mnumerics\fR" 4
7155 .IX Item "-mnumerics"
7156 .PD 0
7157 .Ip "\fB\-msoft-float\fR" 4
7158 .IX Item "-msoft-float"
7159 .PD
7160 The \fB\-mnumerics\fR option indicates that the processor does support
7161 floating-point instructions.  The \fB\-msoft-float\fR option indicates
7162 that floating-point support should not be assumed.
7163 .Ip "\fB\-mleaf-procedures\fR" 4
7164 .IX Item "-mleaf-procedures"
7165 .PD 0
7166 .Ip "\fB\-mno-leaf-procedures\fR" 4
7167 .IX Item "-mno-leaf-procedures"
7168 .PD
7169 Do (or do not) attempt to alter leaf procedures to be callable with the
7170 \&\f(CW\*(C`bal\*(C'\fR instruction as well as \f(CW\*(C`call\*(C'\fR.  This will result in more
7171 efficient code for explicit calls when the \f(CW\*(C`bal\*(C'\fR instruction can be
7172 substituted by the assembler or linker, but less efficient code in other
7173 cases, such as calls via function pointers, or using a linker that doesn't
7174 support this optimization.
7175 .Ip "\fB\-mtail-call\fR" 4
7176 .IX Item "-mtail-call"
7177 .PD 0
7178 .Ip "\fB\-mno-tail-call\fR" 4
7179 .IX Item "-mno-tail-call"
7180 .PD
7181 Do (or do not) make additional attempts (beyond those of the
7182 machine-independent portions of the compiler) to optimize tail-recursive
7183 calls into branches.  You may not want to do this because the detection of
7184 cases where this is not valid is not totally complete.  The default is
7185 \&\fB\-mno-tail-call\fR.
7186 .Ip "\fB\-mcomplex-addr\fR" 4
7187 .IX Item "-mcomplex-addr"
7188 .PD 0
7189 .Ip "\fB\-mno-complex-addr\fR" 4
7190 .IX Item "-mno-complex-addr"
7191 .PD
7192 Assume (or do not assume) that the use of a complex addressing mode is a
7193 win on this implementation of the i960.  Complex addressing modes may not
7194 be worthwhile on the K-series, but they definitely are on the C-series.
7195 The default is currently \fB\-mcomplex-addr\fR for all processors except
7196 the \s-1CB\s0 and \s-1CC\s0.
7197 .Ip "\fB\-mcode-align\fR" 4
7198 .IX Item "-mcode-align"
7199 .PD 0
7200 .Ip "\fB\-mno-code-align\fR" 4
7201 .IX Item "-mno-code-align"
7202 .PD
7203 Align code to 8\-byte boundaries for faster fetching (or don't bother).
7204 Currently turned on by default for C-series implementations only.
7205 .Ip "\fB\-mic-compat\fR" 4
7206 .IX Item "-mic-compat"
7207 .PD 0
7208 .Ip "\fB\-mic2.0\-compat\fR" 4
7209 .IX Item "-mic2.0-compat"
7210 .Ip "\fB\-mic3.0\-compat\fR" 4
7211 .IX Item "-mic3.0-compat"
7212 .PD
7213 Enable compatibility with iC960 v2.0 or v3.0.
7214 .Ip "\fB\-masm-compat\fR" 4
7215 .IX Item "-masm-compat"
7216 .PD 0
7217 .Ip "\fB\-mintel-asm\fR" 4
7218 .IX Item "-mintel-asm"
7219 .PD
7220 Enable compatibility with the iC960 assembler.
7221 .Ip "\fB\-mstrict-align\fR" 4
7222 .IX Item "-mstrict-align"
7223 .PD 0
7224 .Ip "\fB\-mno-strict-align\fR" 4
7225 .IX Item "-mno-strict-align"
7226 .PD
7227 Do not permit (do permit) unaligned accesses.
7228 .Ip "\fB\-mold-align\fR" 4
7229 .IX Item "-mold-align"
7230 Enable structure-alignment compatibility with Intel's gcc release version
7231 1.3 (based on gcc 1.37).  This option implies \fB\-mstrict-align\fR.
7232 .Ip "\fB\-mlong-double-64\fR" 4
7233 .IX Item "-mlong-double-64"
7234 Implement type \fBlong double\fR as 64\-bit floating point numbers.
7235 Without the option \fBlong double\fR is implemented by 80\-bit
7236 floating point numbers.  The only reason we have it because there is
7237 no 128\-bit \fBlong double\fR support in \fBfp-bit.c\fR yet.  So it
7238 is only useful for people using soft-float targets.  Otherwise, we
7239 should recommend against use of it.
7240 .PP
7241 .I "\s-1DEC\s0 Alpha Options"
7242 .IX Subsection "DEC Alpha Options"
7243 .PP
7244 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha implementations:
7245 .Ip "\fB\-mno-soft-float\fR" 4
7246 .IX Item "-mno-soft-float"
7247 .PD 0
7248 .Ip "\fB\-msoft-float\fR" 4
7249 .IX Item "-msoft-float"
7250 .PD
7251 Use (do not use) the hardware floating-point instructions for
7252 floating-point operations.  When \fB\-msoft-float\fR is specified,
7253 functions in \fIlibgcc.a\fR will be used to perform floating-point
7254 operations.  Unless they are replaced by routines that emulate the
7255 floating-point operations, or compiled in such a way as to call such
7256 emulations routines, these routines will issue floating-point
7257 operations.   If you are compiling for an Alpha without floating-point
7258 operations, you must ensure that the library is built so as not to call
7259 them.
7260 .Sp
7261 Note that Alpha implementations without floating-point operations are
7262 required to have floating-point registers.
7263 .Ip "\fB\-mfp-reg\fR" 4
7264 .IX Item "-mfp-reg"
7265 .PD 0
7266 .Ip "\fB\-mno-fp-regs\fR" 4
7267 .IX Item "-mno-fp-regs"
7268 .PD
7269 Generate code that uses (does not use) the floating-point register set.
7270 \&\fB\-mno-fp-regs\fR implies \fB\-msoft-float\fR.  If the floating-point
7271 register set is not used, floating point operands are passed in integer
7272 registers as if they were integers and floating-point results are passed
7273 in \f(CW\*(C`$0\*(C'\fR instead of \f(CW\*(C`$f0\*(C'\fR.  This is a non-standard calling sequence,
7274 so any function with a floating-point argument or return value called by code
7275 compiled with \fB\-mno-fp-regs\fR must also be compiled with that
7276 option.
7277 .Sp
7278 A typical use of this option is building a kernel that does not use,
7279 and hence need not save and restore, any floating-point registers.
7280 .Ip "\fB\-mieee\fR" 4
7281 .IX Item "-mieee"
7282 The Alpha architecture implements floating-point hardware optimized for
7283 maximum performance.  It is mostly compliant with the \s-1IEEE\s0 floating
7284 point standard.  However, for full compliance, software assistance is
7285 required.  This option generates code fully \s-1IEEE\s0 compliant code
7286 \&\fIexcept\fR that the \fIinexact-flag\fR is not maintained (see below).
7287 If this option is turned on, the preprocessor macro \f(CW\*(C`_IEEE_FP\*(C'\fR is
7288 defined during compilation.  The resulting code is less efficient but is
7289 able to correctly support denormalized numbers and exceptional \s-1IEEE\s0
7290 values such as not-a-number and plus/minus infinity.  Other Alpha
7291 compilers call this option \fB\-ieee_with_no_inexact\fR.
7292 .Ip "\fB\-mieee-with-inexact\fR" 4
7293 .IX Item "-mieee-with-inexact"
7294 This is like \fB\-mieee\fR except the generated code also maintains
7295 the \s-1IEEE\s0 \fIinexact-flag\fR.  Turning on this option causes the
7296 generated code to implement fully-compliant \s-1IEEE\s0 math.  In addition to
7297 \&\f(CW\*(C`_IEEE_FP\*(C'\fR, \f(CW\*(C`_IEEE_FP_EXACT\*(C'\fR is defined as a preprocessor
7298 macro.  On some Alpha implementations the resulting code may execute
7299 significantly slower than the code generated by default.  Since there is
7300 very little code that depends on the \fIinexact-flag\fR, you should
7301 normally not specify this option.  Other Alpha compilers call this
7302 option \fB\-ieee_with_inexact\fR.
7303 .Ip "\fB\-mfp-trap-mode=\fR\fItrap-mode\fR" 4
7304 .IX Item "-mfp-trap-mode=trap-mode"
7305 This option controls what floating-point related traps are enabled.
7306 Other Alpha compilers call this option \fB\-fptm\fR \fItrap-mode\fR.
7307 The trap mode can be set to one of four values:
7308 .RS 4
7309 .Ip "\fBn\fR" 4
7310 .IX Item "n"
7311 This is the default (normal) setting.  The only traps that are enabled
7312 are the ones that cannot be disabled in software (e.g., division by zero
7313 trap).
7314 .Ip "\fBu\fR" 4
7315 .IX Item "u"
7316 In addition to the traps enabled by \fBn\fR, underflow traps are enabled
7317 as well.
7318 .Ip "\fBsu\fR" 4
7319 .IX Item "su"
7320 Like \fBsu\fR, but the instructions are marked to be safe for software
7321 completion (see Alpha architecture manual for details).
7322 .Ip "\fBsui\fR" 4
7323 .IX Item "sui"
7324 Like \fBsu\fR, but inexact traps are enabled as well.
7325 .RE
7326 .RS 4
7327 .RE
7328 .Ip "\fB\-mfp-rounding-mode=\fR\fIrounding-mode\fR" 4
7329 .IX Item "-mfp-rounding-mode=rounding-mode"
7330 Selects the \s-1IEEE\s0 rounding mode.  Other Alpha compilers call this option
7331 \&\fB\-fprm\fR \fIrounding-mode\fR.  The \fIrounding-mode\fR can be one
7332 of:
7333 .RS 4
7334 .Ip "\fBn\fR" 4
7335 .IX Item "n"
7336 Normal \s-1IEEE\s0 rounding mode.  Floating point numbers are rounded towards
7337 the nearest machine number or towards the even machine number in case
7338 of a tie.
7339 .Ip "\fBm\fR" 4
7340 .IX Item "m"
7341 Round towards minus infinity.
7342 .Ip "\fBc\fR" 4
7343 .IX Item "c"
7344 Chopped rounding mode.  Floating point numbers are rounded towards zero.
7345 .Ip "\fBd\fR" 4
7346 .IX Item "d"
7347 Dynamic rounding mode.  A field in the floating point control register
7348 (\fIfpcr\fR, see Alpha architecture reference manual) controls the
7349 rounding mode in effect.  The C library initializes this register for
7350 rounding towards plus infinity.  Thus, unless your program modifies the
7351 \&\fIfpcr\fR, \fBd\fR corresponds to round towards plus infinity.
7352 .RE
7353 .RS 4
7354 .RE
7355 .Ip "\fB\-mtrap-precision=\fR\fItrap-precision\fR" 4
7356 .IX Item "-mtrap-precision=trap-precision"
7357 In the Alpha architecture, floating point traps are imprecise.  This
7358 means without software assistance it is impossible to recover from a
7359 floating trap and program execution normally needs to be terminated.
7360 \&\s-1GCC\s0 can generate code that can assist operating system trap handlers
7361 in determining the exact location that caused a floating point trap.
7362 Depending on the requirements of an application, different levels of
7363 precisions can be selected:
7364 .RS 4
7365 .Ip "\fBp\fR" 4
7366 .IX Item "p"
7367 Program precision.  This option is the default and means a trap handler
7368 can only identify which program caused a floating point exception.
7369 .Ip "\fBf\fR" 4
7370 .IX Item "f"
7371 Function precision.  The trap handler can determine the function that
7372 caused a floating point exception.
7373 .Ip "\fBi\fR" 4
7374 .IX Item "i"
7375 Instruction precision.  The trap handler can determine the exact
7376 instruction that caused a floating point exception.
7377 .RE
7378 .RS 4
7379 .Sp
7380 Other Alpha compilers provide the equivalent options called
7381 \&\fB\-scope_safe\fR and \fB\-resumption_safe\fR.
7382 .RE
7383 .Ip "\fB\-mieee-conformant\fR" 4
7384 .IX Item "-mieee-conformant"
7385 This option marks the generated code as \s-1IEEE\s0 conformant.  You must not
7386 use this option unless you also specify \fB\-mtrap-precision=i\fR and either
7387 \&\fB\-mfp-trap-mode=su\fR or \fB\-mfp-trap-mode=sui\fR.  Its only effect
7388 is to emit the line \fB.eflag 48\fR in the function prologue of the
7389 generated assembly file.  Under \s-1DEC\s0 Unix, this has the effect that
7390 IEEE-conformant math library routines will be linked in.
7391 .Ip "\fB\-mbuild-constants\fR" 4
7392 .IX Item "-mbuild-constants"
7393 Normally \s-1GCC\s0 examines a 32\- or 64\-bit integer constant to
7394 see if it can construct it from smaller constants in two or three
7395 instructions.  If it cannot, it will output the constant as a literal and
7396 generate code to load it from the data segment at runtime.
7397 .Sp
7398 Use this option to require \s-1GCC\s0 to construct \fIall\fR integer constants
7399 using code, even if it takes more instructions (the maximum is six).
7400 .Sp
7401 You would typically use this option to build a shared library dynamic
7402 loader.  Itself a shared library, it must relocate itself in memory
7403 before it can find the variables and constants in its own data segment.
7404 .Ip "\fB\-malpha-as\fR" 4
7405 .IX Item "-malpha-as"
7406 .PD 0
7407 .Ip "\fB\-mgas\fR" 4
7408 .IX Item "-mgas"
7409 .PD
7410 Select whether to generate code to be assembled by the vendor-supplied
7411 assembler (\fB\-malpha-as\fR) or by the \s-1GNU\s0 assembler \fB\-mgas\fR.
7412 .Ip "\fB\-mbwx\fR" 4
7413 .IX Item "-mbwx"
7414 .PD 0
7415 .Ip "\fB\-mno-bwx\fR" 4
7416 .IX Item "-mno-bwx"
7417 .Ip "\fB\-mcix\fR" 4
7418 .IX Item "-mcix"
7419 .Ip "\fB\-mno-cix\fR" 4
7420 .IX Item "-mno-cix"
7421 .Ip "\fB\-mfix\fR" 4
7422 .IX Item "-mfix"
7423 .Ip "\fB\-mno-fix\fR" 4
7424 .IX Item "-mno-fix"
7425 .Ip "\fB\-mmax\fR" 4
7426 .IX Item "-mmax"
7427 .Ip "\fB\-mno-max\fR" 4
7428 .IX Item "-mno-max"
7429 .PD
7430 Indicate whether \s-1GCC\s0 should generate code to use the optional \s-1BWX\s0,
7431 \&\s-1CIX\s0, \s-1FIX\s0 and \s-1MAX\s0 instruction sets.  The default is to use the instruction
7432 sets supported by the \s-1CPU\s0 type specified via \fB\-mcpu=\fR option or that
7433 of the \s-1CPU\s0 on which \s-1GCC\s0 was built if none was specified.
7434 .Ip "\fB\-mfloat-vax\fR" 4
7435 .IX Item "-mfloat-vax"
7436 .PD 0
7437 .Ip "\fB\-mfloat-ieee\fR" 4
7438 .IX Item "-mfloat-ieee"
7439 .PD
7440 Generate code that uses (does not use) \s-1VAX\s0 F and G floating point
7441 arithmetic instead of \s-1IEEE\s0 single and double precision.
7442 .Ip "\fB\-mexplicit-relocs\fR" 4
7443 .IX Item "-mexplicit-relocs"
7444 .PD 0
7445 .Ip "\fB\-mno-explicit-relocs\fR" 4
7446 .IX Item "-mno-explicit-relocs"
7447 .PD
7448 Older Alpha assemblers provided no way to generate symbol relocations
7449 except via assembler macros.  Use of these macros does not allow
7450 optimial instruction scheduling.  \s-1GNU\s0 binutils as of version 2.12
7451 supports a new syntax that allows the compiler to explicitly mark
7452 which relocations should apply to which instructions.  This option
7453 is mostly useful for debugging, as \s-1GCC\s0 detects the capabilities of
7454 the assembler when it is built and sets the default accordingly.
7455 .Ip "\fB\-msmall-data\fR" 4
7456 .IX Item "-msmall-data"
7457 .PD 0
7458 .Ip "\fB\-mlarge-data\fR" 4
7459 .IX Item "-mlarge-data"
7460 .PD
7461 When \fB\-mexplicit-relocs\fR is in effect, static data is
7462 accessed via \fIgp-relative\fR relocations.  When \fB\-msmall-data\fR
7463 is used, objects 8 bytes long or smaller are placed in a \fIsmall data area\fR
7464 (the \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR sections) and are accessed via
7465 16\-bit relocations off of the \f(CW\*(C`$gp\*(C'\fR register.  This limits the
7466 size of the small data area to 64KB, but allows the variables to be
7467 directly accessed via a single instruction.
7468 .Sp
7469 The default is \fB\-mlarge-data\fR.  With this option the data area
7470 is limited to just below 2GB.  Programs that require more than 2GB of
7471 data must use \f(CW\*(C`malloc\*(C'\fR or \f(CW\*(C`mmap\*(C'\fR to allocate the data in the
7472 heap instead of in the program's data segment.
7473 .Sp
7474 When generating code for shared libraries, \fB\-fpic\fR implies
7475 \&\fB\-msmall-data\fR and \fB\-fPIC\fR implies \fB\-mlarge-data\fR.
7476 .Ip "\fB\-mcpu=\fR\fIcpu_type\fR" 4
7477 .IX Item "-mcpu=cpu_type"
7478 Set the instruction set and instruction scheduling parameters for
7479 machine type \fIcpu_type\fR.  You can specify either the \fB\s-1EV\s0\fR
7480 style name or the corresponding chip number.  \s-1GCC\s0 supports scheduling
7481 parameters for the \s-1EV4\s0, \s-1EV5\s0 and \s-1EV6\s0 family of processors and will
7482 choose the default values for the instruction set from the processor
7483 you specify.  If you do not specify a processor type, \s-1GCC\s0 will default
7484 to the processor on which the compiler was built.
7485 .Sp
7486 Supported values for \fIcpu_type\fR are
7487 .RS 4
7488 .Ip "\fBev4\fR" 4
7489 .IX Item "ev4"
7490 .PD 0
7491 .Ip "\fBev45\fR" 4
7492 .IX Item "ev45"
7493 .Ip "\fB21064\fR" 4
7494 .IX Item "21064"
7495 .PD
7496 Schedules as an \s-1EV4\s0 and has no instruction set extensions.
7497 .Ip "\fBev5\fR" 4
7498 .IX Item "ev5"
7499 .PD 0
7500 .Ip "\fB21164\fR" 4
7501 .IX Item "21164"
7502 .PD
7503 Schedules as an \s-1EV5\s0 and has no instruction set extensions.
7504 .Ip "\fBev56\fR" 4
7505 .IX Item "ev56"
7506 .PD 0
7507 .Ip "\fB21164a\fR" 4
7508 .IX Item "21164a"
7509 .PD
7510 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 extension.
7511 .Ip "\fBpca56\fR" 4
7512 .IX Item "pca56"
7513 .PD 0
7514 .Ip "\fB21164pc\fR" 4
7515 .IX Item "21164pc"
7516 .Ip "\fB21164PC\fR" 4
7517 .IX Item "21164PC"
7518 .PD
7519 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 and \s-1MAX\s0 extensions.
7520 .Ip "\fBev6\fR" 4
7521 .IX Item "ev6"
7522 .PD 0
7523 .Ip "\fB21264\fR" 4
7524 .IX Item "21264"
7525 .PD
7526 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
7527 .Ip "\fBev67\fR" 4
7528 .IX Item "ev67"
7529 .PD 0
7530 .Ip "\fB21264a\fR" 4
7531 .IX Item "21264a"
7532 .PD
7533 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1CIX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
7534 .RE
7535 .RS 4
7536 .RE
7537 .Ip "\fB\-mtune=\fR\fIcpu_type\fR" 4
7538 .IX Item "-mtune=cpu_type"
7539 Set only the instruction scheduling parameters for machine type
7540 \&\fIcpu_type\fR.  The instruction set is not changed.
7541 .Ip "\fB\-mmemory-latency=\fR\fItime\fR" 4
7542 .IX Item "-mmemory-latency=time"
7543 Sets the latency the scheduler should assume for typical memory
7544 references as seen by the application.  This number is highly
7545 dependent on the memory access patterns used by the application
7546 and the size of the external cache on the machine.
7547 .Sp
7548 Valid options for \fItime\fR are
7549 .RS 4
7550 .Ip "\fInumber\fR" 4
7551 .IX Item "number"
7552 A decimal number representing clock cycles.
7553 .Ip "\fBL1\fR" 4
7554 .IX Item "L1"
7555 .PD 0
7556 .Ip "\fBL2\fR" 4
7557 .IX Item "L2"
7558 .Ip "\fBL3\fR" 4
7559 .IX Item "L3"
7560 .Ip "\fBmain\fR" 4
7561 .IX Item "main"
7562 .PD
7563 The compiler contains estimates of the number of clock cycles for
7564 ``typical'' \s-1EV4\s0 & \s-1EV5\s0 hardware for the Level 1, 2 & 3 caches
7565 (also called Dcache, Scache, and Bcache), as well as to main memory.
7566 Note that L3 is only valid for \s-1EV5\s0.
7567 .RE
7568 .RS 4
7569 .RE
7570 .PP
7571 .I "\s-1DEC\s0 Alpha/VMS Options"
7572 .IX Subsection "DEC Alpha/VMS Options"
7573 .PP
7574 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha/VMS implementations:
7575 .Ip "\fB\-mvms-return-codes\fR" 4
7576 .IX Item "-mvms-return-codes"
7577 Return \s-1VMS\s0 condition codes from main.  The default is to return \s-1POSIX\s0
7578 style condition (e.g. error) codes.
7579 .PP
7580 .I "Clipper Options"
7581 .IX Subsection "Clipper Options"
7582 .PP
7583 These \fB\-m\fR options are defined for the Clipper implementations:
7584 .Ip "\fB\-mc300\fR" 4
7585 .IX Item "-mc300"
7586 Produce code for a C300 Clipper processor.  This is the default.
7587 .Ip "\fB\-mc400\fR" 4
7588 .IX Item "-mc400"
7589 Produce code for a C400 Clipper processor, i.e. use floating point
7590 registers f8\*(--f15.
7591 .PP
7592 .I "H8/300 Options"
7593 .IX Subsection "H8/300 Options"
7594 .PP
7595 These \fB\-m\fR options are defined for the H8/300 implementations:
7596 .Ip "\fB\-mrelax\fR" 4
7597 .IX Item "-mrelax"
7598 Shorten some address references at link time, when possible; uses the
7599 linker option \fB\-relax\fR.  
7600 .Ip "\fB\-mh\fR" 4
7601 .IX Item "-mh"
7602 Generate code for the H8/300H.
7603 .Ip "\fB\-ms\fR" 4
7604 .IX Item "-ms"
7605 Generate code for the H8/S.
7606 .Ip "\fB\-ms2600\fR" 4
7607 .IX Item "-ms2600"
7608 Generate code for the H8/S2600.  This switch must be used with \fB\-ms\fR.
7609 .Ip "\fB\-mint32\fR" 4
7610 .IX Item "-mint32"
7611 Make \f(CW\*(C`int\*(C'\fR data 32 bits by default.
7612 .Ip "\fB\-malign-300\fR" 4
7613 .IX Item "-malign-300"
7614 On the H8/300H and H8/S, use the same alignment rules as for the H8/300.
7615 The default for the H8/300H and H8/S is to align longs and floats on 4
7616 byte boundaries.
7617 \&\fB\-malign-300\fR causes them to be aligned on 2 byte boundaries.
7618 This option has no effect on the H8/300.
7619 .PP
7620 .I "\s-1SH\s0 Options"
7621 .IX Subsection "SH Options"
7622 .PP
7623 These \fB\-m\fR options are defined for the \s-1SH\s0 implementations:
7624 .Ip "\fB\-m1\fR" 4
7625 .IX Item "-m1"
7626 Generate code for the \s-1SH1\s0.
7627 .Ip "\fB\-m2\fR" 4
7628 .IX Item "-m2"
7629 Generate code for the \s-1SH2\s0.
7630 .Ip "\fB\-m3\fR" 4
7631 .IX Item "-m3"
7632 Generate code for the \s-1SH3\s0.
7633 .Ip "\fB\-m3e\fR" 4
7634 .IX Item "-m3e"
7635 Generate code for the SH3e.
7636 .Ip "\fB\-m4\-nofpu\fR" 4
7637 .IX Item "-m4-nofpu"
7638 Generate code for the \s-1SH4\s0 without a floating-point unit.
7639 .Ip "\fB\-m4\-single-only\fR" 4
7640 .IX Item "-m4-single-only"
7641 Generate code for the \s-1SH4\s0 with a floating-point unit that only
7642 supports single-precision arithmetic.
7643 .Ip "\fB\-m4\-single\fR" 4
7644 .IX Item "-m4-single"
7645 Generate code for the \s-1SH4\s0 assuming the floating-point unit is in
7646 single-precision mode by default.
7647 .Ip "\fB\-m4\fR" 4
7648 .IX Item "-m4"
7649 Generate code for the \s-1SH4\s0.
7650 .Ip "\fB\-mb\fR" 4
7651 .IX Item "-mb"
7652 Compile code for the processor in big endian mode.
7653 .Ip "\fB\-ml\fR" 4
7654 .IX Item "-ml"
7655 Compile code for the processor in little endian mode.
7656 .Ip "\fB\-mdalign\fR" 4
7657 .IX Item "-mdalign"
7658 Align doubles at 64\-bit boundaries.  Note that this changes the calling
7659 conventions, and thus some functions from the standard C library will
7660 not work unless you recompile it first with \fB\-mdalign\fR.
7661 .Ip "\fB\-mrelax\fR" 4
7662 .IX Item "-mrelax"
7663 Shorten some address references at link time, when possible; uses the
7664 linker option \fB\-relax\fR.
7665 .Ip "\fB\-mbigtable\fR" 4
7666 .IX Item "-mbigtable"
7667 Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables.  The default is to use
7668 16\-bit offsets.
7669 .Ip "\fB\-mfmovd\fR" 4
7670 .IX Item "-mfmovd"
7671 Enable the use of the instruction \f(CW\*(C`fmovd\*(C'\fR.
7672 .Ip "\fB\-mhitachi\fR" 4
7673 .IX Item "-mhitachi"
7674 Comply with the calling conventions defined by Hitachi.
7675 .Ip "\fB\-mnomacsave\fR" 4
7676 .IX Item "-mnomacsave"
7677 Mark the \f(CW\*(C`MAC\*(C'\fR register as call-clobbered, even if
7678 \&\fB\-mhitachi\fR is given.
7679 .Ip "\fB\-mieee\fR" 4
7680 .IX Item "-mieee"
7681 Increase IEEE-compliance of floating-point code.
7682 .Ip "\fB\-misize\fR" 4
7683 .IX Item "-misize"
7684 Dump instruction size and location in the assembly code.
7685 .Ip "\fB\-mpadstruct\fR" 4
7686 .IX Item "-mpadstruct"
7687 This option is deprecated.  It pads structures to multiple of 4 bytes,
7688 which is incompatible with the \s-1SH\s0 \s-1ABI\s0.
7689 .Ip "\fB\-mspace\fR" 4
7690 .IX Item "-mspace"
7691 Optimize for space instead of speed.  Implied by \fB\-Os\fR.
7692 .Ip "\fB\-mprefergot\fR" 4
7693 .IX Item "-mprefergot"
7694 When generating position-independent code, emit function calls using
7695 the Global Offset Table instead of the Procedure Linkage Table.
7696 .Ip "\fB\-musermode\fR" 4
7697 .IX Item "-musermode"
7698 Generate a library function call to invalidate instruction cache
7699 entries, after fixing up a trampoline.  This library function call
7700 doesn't assume it can write to the whole memory address space.  This
7701 is the default when the target is \f(CW\*(C`sh\-*\-linux*\*(C'\fR.
7702 .PP
7703 .I "Options for System V"
7704 .IX Subsection "Options for System V"
7705 .PP
7706 These additional options are available on System V Release 4 for
7707 compatibility with other compilers on those systems:
7708 .Ip "\fB\-G\fR" 4
7709 .IX Item "-G"
7710 Create a shared object.
7711 It is recommended that \fB\-symbolic\fR or \fB\-shared\fR be used instead.
7712 .Ip "\fB\-Qy\fR" 4
7713 .IX Item "-Qy"
7714 Identify the versions of each tool used by the compiler, in a
7715 \&\f(CW\*(C`.ident\*(C'\fR assembler directive in the output.
7716 .Ip "\fB\-Qn\fR" 4
7717 .IX Item "-Qn"
7718 Refrain from adding \f(CW\*(C`.ident\*(C'\fR directives to the output file (this is
7719 the default).
7720 .Ip "\fB\-YP,\fR\fIdirs\fR" 4
7721 .IX Item "-YP,dirs"
7722 Search the directories \fIdirs\fR, and no others, for libraries
7723 specified with \fB\-l\fR.
7724 .Ip "\fB\-Ym,\fR\fIdir\fR" 4
7725 .IX Item "-Ym,dir"
7726 Look in the directory \fIdir\fR to find the M4 preprocessor.
7727 The assembler uses this option.
7728 .PP
7729 .I "TMS320C3x/C4x Options"
7730 .IX Subsection "TMS320C3x/C4x Options"
7731 .PP
7732 These \fB\-m\fR options are defined for TMS320C3x/C4x implementations:
7733 .Ip "\fB\-mcpu=\fR\fIcpu_type\fR" 4
7734 .IX Item "-mcpu=cpu_type"
7735 Set the instruction set, register set, and instruction scheduling
7736 parameters for machine type \fIcpu_type\fR.  Supported values for
7737 \&\fIcpu_type\fR are \fBc30\fR, \fBc31\fR, \fBc32\fR, \fBc40\fR, and
7738 \&\fBc44\fR.  The default is \fBc40\fR to generate code for the
7739 \&\s-1TMS320C40\s0.
7740 .Ip "\fB\-mbig-memory\fR" 4
7741 .IX Item "-mbig-memory"
7742 .PD 0
7743 .Ip "\fB\-mbig\fR" 4
7744 .IX Item "-mbig"
7745 .Ip "\fB\-msmall-memory\fR" 4
7746 .IX Item "-msmall-memory"
7747 .Ip "\fB\-msmall\fR" 4
7748 .IX Item "-msmall"
7749 .PD
7750 Generates code for the big or small memory model.  The small memory
7751 model assumed that all data fits into one 64K word page.  At run-time
7752 the data page (\s-1DP\s0) register must be set to point to the 64K page
7753 containing the .bss and .data program sections.  The big memory model is
7754 the default and requires reloading of the \s-1DP\s0 register for every direct
7755 memory access.
7756 .Ip "\fB\-mbk\fR" 4
7757 .IX Item "-mbk"
7758 .PD 0
7759 .Ip "\fB\-mno-bk\fR" 4
7760 .IX Item "-mno-bk"
7761 .PD
7762 Allow (disallow) allocation of general integer operands into the block
7763 count register \s-1BK\s0.
7764 .Ip "\fB\-mdb\fR" 4
7765 .IX Item "-mdb"
7766 .PD 0
7767 .Ip "\fB\-mno-db\fR" 4
7768 .IX Item "-mno-db"
7769 .PD
7770 Enable (disable) generation of code using decrement and branch,
7771 \&\fIDBcond\fR\|(D), instructions.  This is enabled by default for the C4x.  To be
7772 on the safe side, this is disabled for the C3x, since the maximum
7773 iteration count on the C3x is 2^{23 + 1} (but who iterates loops more than
7774 2^{23} times on the C3x?).  Note that \s-1GCC\s0 will try to reverse a loop so
7775 that it can utilise the decrement and branch instruction, but will give
7776 up if there is more than one memory reference in the loop.  Thus a loop
7777 where the loop counter is decremented can generate slightly more
7778 efficient code, in cases where the \s-1RPTB\s0 instruction cannot be utilised.
7779 .Ip "\fB\-mdp-isr-reload\fR" 4
7780 .IX Item "-mdp-isr-reload"
7781 .PD 0
7782 .Ip "\fB\-mparanoid\fR" 4
7783 .IX Item "-mparanoid"
7784 .PD
7785 Force the \s-1DP\s0 register to be saved on entry to an interrupt service
7786 routine (\s-1ISR\s0), reloaded to point to the data section, and restored on
7787 exit from the \s-1ISR\s0.  This should not be required unless someone has
7788 violated the small memory model by modifying the \s-1DP\s0 register, say within
7789 an object library.
7790 .Ip "\fB\-mmpyi\fR" 4
7791 .IX Item "-mmpyi"
7792 .PD 0
7793 .Ip "\fB\-mno-mpyi\fR" 4
7794 .IX Item "-mno-mpyi"
7795 .PD
7796 For the C3x use the 24\-bit \s-1MPYI\s0 instruction for integer multiplies
7797 instead of a library call to guarantee 32\-bit results.  Note that if one
7798 of the operands is a constant, then the multiplication will be performed
7799 using shifts and adds.  If the \fB\-mmpyi\fR option is not specified for the C3x,
7800 then squaring operations are performed inline instead of a library call.
7801 .Ip "\fB\-mfast-fix\fR" 4
7802 .IX Item "-mfast-fix"
7803 .PD 0
7804 .Ip "\fB\-mno-fast-fix\fR" 4
7805 .IX Item "-mno-fast-fix"
7806 .PD
7807 The C3x/C4x \s-1FIX\s0 instruction to convert a floating point value to an
7808 integer value chooses the nearest integer less than or equal to the
7809 floating point value rather than to the nearest integer.  Thus if the
7810 floating point number is negative, the result will be incorrectly
7811 truncated an additional code is necessary to detect and correct this
7812 case.  This option can be used to disable generation of the additional
7813 code required to correct the result.
7814 .Ip "\fB\-mrptb\fR" 4
7815 .IX Item "-mrptb"
7816 .PD 0
7817 .Ip "\fB\-mno-rptb\fR" 4
7818 .IX Item "-mno-rptb"
7819 .PD
7820 Enable (disable) generation of repeat block sequences using the \s-1RPTB\s0
7821 instruction for zero overhead looping.  The \s-1RPTB\s0 construct is only used
7822 for innermost loops that do not call functions or jump across the loop
7823 boundaries.  There is no advantage having nested \s-1RPTB\s0 loops due to the
7824 overhead required to save and restore the \s-1RC\s0, \s-1RS\s0, and \s-1RE\s0 registers.
7825 This is enabled by default with \fB\-O2\fR.
7826 .Ip "\fB\-mrpts=\fR\fIcount\fR" 4
7827 .IX Item "-mrpts=count"
7828 .PD 0
7829 .Ip "\fB\-mno-rpts\fR" 4
7830 .IX Item "-mno-rpts"
7831 .PD
7832 Enable (disable) the use of the single instruction repeat instruction
7833 \&\s-1RPTS\s0.  If a repeat block contains a single instruction, and the loop
7834 count can be guaranteed to be less than the value \fIcount\fR, \s-1GCC\s0 will
7835 emit a \s-1RPTS\s0 instruction instead of a \s-1RPTB\s0.  If no value is specified,
7836 then a \s-1RPTS\s0 will be emitted even if the loop count cannot be determined
7837 at compile time.  Note that the repeated instruction following \s-1RPTS\s0 does
7838 not have to be reloaded from memory each iteration, thus freeing up the
7839 \&\s-1CPU\s0 buses for operands.  However, since interrupts are blocked by this
7840 instruction, it is disabled by default.
7841 .Ip "\fB\-mloop-unsigned\fR" 4
7842 .IX Item "-mloop-unsigned"
7843 .PD 0
7844 .Ip "\fB\-mno-loop-unsigned\fR" 4
7845 .IX Item "-mno-loop-unsigned"
7846 .PD
7847 The maximum iteration count when using \s-1RPTS\s0 and \s-1RPTB\s0 (and \s-1DB\s0 on the C40)
7848 is 2^{31 + 1} since these instructions test if the iteration count is
7849 negative to terminate the loop.  If the iteration count is unsigned
7850 there is a possibility than the 2^{31 + 1} maximum iteration count may be
7851 exceeded.  This switch allows an unsigned iteration count.
7852 .Ip "\fB\-mti\fR" 4
7853 .IX Item "-mti"
7854 Try to emit an assembler syntax that the \s-1TI\s0 assembler (asm30) is happy
7855 with.  This also enforces compatibility with the \s-1API\s0 employed by the \s-1TI\s0
7856 C3x C compiler.  For example, long doubles are passed as structures
7857 rather than in floating point registers.
7858 .Ip "\fB\-mregparm\fR" 4
7859 .IX Item "-mregparm"
7860 .PD 0
7861 .Ip "\fB\-mmemparm\fR" 4
7862 .IX Item "-mmemparm"
7863 .PD
7864 Generate code that uses registers (stack) for passing arguments to functions.
7865 By default, arguments are passed in registers where possible rather
7866 than by pushing arguments on to the stack.
7867 .Ip "\fB\-mparallel-insns\fR" 4
7868 .IX Item "-mparallel-insns"
7869 .PD 0
7870 .Ip "\fB\-mno-parallel-insns\fR" 4
7871 .IX Item "-mno-parallel-insns"
7872 .PD
7873 Allow the generation of parallel instructions.  This is enabled by
7874 default with \fB\-O2\fR.
7875 .Ip "\fB\-mparallel-mpy\fR" 4
7876 .IX Item "-mparallel-mpy"
7877 .PD 0
7878 .Ip "\fB\-mno-parallel-mpy\fR" 4
7879 .IX Item "-mno-parallel-mpy"
7880 .PD
7881 Allow the generation of MPY||ADD and MPY||SUB parallel instructions,
7882 provided \fB\-mparallel-insns\fR is also specified.  These instructions have
7883 tight register constraints which can pessimize the code generation
7884 of large functions.
7885 .PP
7886 .I "V850 Options"
7887 .IX Subsection "V850 Options"
7888 .PP
7889 These \fB\-m\fR options are defined for V850 implementations:
7890 .Ip "\fB\-mlong-calls\fR" 4
7891 .IX Item "-mlong-calls"
7892 .PD 0
7893 .Ip "\fB\-mno-long-calls\fR" 4
7894 .IX Item "-mno-long-calls"
7895 .PD
7896 Treat all calls as being far away (near).  If calls are assumed to be
7897 far away, the compiler will always load the functions address up into a
7898 register, and call indirect through the pointer.
7899 .Ip "\fB\-mno-ep\fR" 4
7900 .IX Item "-mno-ep"
7901 .PD 0
7902 .Ip "\fB\-mep\fR" 4
7903 .IX Item "-mep"
7904 .PD
7905 Do not optimize (do optimize) basic blocks that use the same index
7906 pointer 4 or more times to copy pointer into the \f(CW\*(C`ep\*(C'\fR register, and
7907 use the shorter \f(CW\*(C`sld\*(C'\fR and \f(CW\*(C`sst\*(C'\fR instructions.  The \fB\-mep\fR
7908 option is on by default if you optimize.
7909 .Ip "\fB\-mno-prolog-function\fR" 4
7910 .IX Item "-mno-prolog-function"
7911 .PD 0
7912 .Ip "\fB\-mprolog-function\fR" 4
7913 .IX Item "-mprolog-function"
7914 .PD
7915 Do not use (do use) external functions to save and restore registers at
7916 the prolog and epilog of a function.  The external functions are slower,
7917 but use less code space if more than one function saves the same number
7918 of registers.  The \fB\-mprolog-function\fR option is on by default if
7919 you optimize.
7920 .Ip "\fB\-mspace\fR" 4
7921 .IX Item "-mspace"
7922 Try to make the code as small as possible.  At present, this just turns
7923 on the \fB\-mep\fR and \fB\-mprolog-function\fR options.
7924 .Ip "\fB\-mtda=\fR\fIn\fR" 4
7925 .IX Item "-mtda=n"
7926 Put static or global variables whose size is \fIn\fR bytes or less into
7927 the tiny data area that register \f(CW\*(C`ep\*(C'\fR points to.  The tiny data
7928 area can hold up to 256 bytes in total (128 bytes for byte references).
7929 .Ip "\fB\-msda=\fR\fIn\fR" 4
7930 .IX Item "-msda=n"
7931 Put static or global variables whose size is \fIn\fR bytes or less into
7932 the small data area that register \f(CW\*(C`gp\*(C'\fR points to.  The small data
7933 area can hold up to 64 kilobytes.
7934 .Ip "\fB\-mzda=\fR\fIn\fR" 4
7935 .IX Item "-mzda=n"
7936 Put static or global variables whose size is \fIn\fR bytes or less into
7937 the first 32 kilobytes of memory.
7938 .Ip "\fB\-mv850\fR" 4
7939 .IX Item "-mv850"
7940 Specify that the target processor is the V850.
7941 .Ip "\fB\-mbig-switch\fR" 4
7942 .IX Item "-mbig-switch"
7943 Generate code suitable for big switch tables.  Use this option only if
7944 the assembler/linker complain about out of range branches within a switch
7945 table.
7946 .PP
7947 .I "\s-1ARC\s0 Options"
7948 .IX Subsection "ARC Options"
7949 .PP
7950 These options are defined for \s-1ARC\s0 implementations:
7951 .Ip "\fB\-EL\fR" 4
7952 .IX Item "-EL"
7953 Compile code for little endian mode.  This is the default.
7954 .Ip "\fB\-EB\fR" 4
7955 .IX Item "-EB"
7956 Compile code for big endian mode.
7957 .Ip "\fB\-mmangle-cpu\fR" 4
7958 .IX Item "-mmangle-cpu"
7959 Prepend the name of the cpu to all public symbol names.
7960 In multiple-processor systems, there are many \s-1ARC\s0 variants with different
7961 instruction and register set characteristics.  This flag prevents code
7962 compiled for one cpu to be linked with code compiled for another.
7963 No facility exists for handling variants that are ``almost identical''.
7964 This is an all or nothing option.
7965 .Ip "\fB\-mcpu=\fR\fIcpu\fR" 4
7966 .IX Item "-mcpu=cpu"
7967 Compile code for \s-1ARC\s0 variant \fIcpu\fR.
7968 Which variants are supported depend on the configuration.
7969 All variants support \fB\-mcpu=base\fR, this is the default.
7970 .Ip "\fB\-mtext=\fR\fItext-section\fR" 4
7971 .IX Item "-mtext=text-section"
7972 .PD 0
7973 .Ip "\fB\-mdata=\fR\fIdata-section\fR" 4
7974 .IX Item "-mdata=data-section"
7975 .Ip "\fB\-mrodata=\fR\fIreadonly-data-section\fR" 4
7976 .IX Item "-mrodata=readonly-data-section"
7977 .PD
7978 Put functions, data, and readonly data in \fItext-section\fR,
7979 \&\fIdata-section\fR, and \fIreadonly-data-section\fR respectively
7980 by default.  This can be overridden with the \f(CW\*(C`section\*(C'\fR attribute.
7981 .PP
7982 .I "\s-1NS32K\s0 Options"
7983 .IX Subsection "NS32K Options"
7984 .PP
7985 These are the \fB\-m\fR options defined for the 32000 series.  The default
7986 values for these options depends on which style of 32000 was selected when
7987 the compiler was configured; the defaults for the most common choices are
7988 given below.
7989 .Ip "\fB\-m32032\fR" 4
7990 .IX Item "-m32032"
7991 .PD 0
7992 .Ip "\fB\-m32032\fR" 4
7993 .IX Item "-m32032"
7994 .PD
7995 Generate output for a 32032.  This is the default
7996 when the compiler is configured for 32032 and 32016 based systems.
7997 .Ip "\fB\-m32332\fR" 4
7998 .IX Item "-m32332"
7999 .PD 0
8000 .Ip "\fB\-m32332\fR" 4
8001 .IX Item "-m32332"
8002 .PD
8003 Generate output for a 32332.  This is the default
8004 when the compiler is configured for 32332\-based systems.
8005 .Ip "\fB\-m32532\fR" 4
8006 .IX Item "-m32532"
8007 .PD 0
8008 .Ip "\fB\-m32532\fR" 4
8009 .IX Item "-m32532"
8010 .PD
8011 Generate output for a 32532.  This is the default
8012 when the compiler is configured for 32532\-based systems.
8013 .Ip "\fB\-m32081\fR" 4
8014 .IX Item "-m32081"
8015 Generate output containing 32081 instructions for floating point.
8016 This is the default for all systems.
8017 .Ip "\fB\-m32381\fR" 4
8018 .IX Item "-m32381"
8019 Generate output containing 32381 instructions for floating point.  This
8020 also implies \fB\-m32081\fR.  The 32381 is only compatible with the 32332
8021 and 32532 cpus.  This is the default for the pc532\-netbsd configuration.
8022 .Ip "\fB\-mmulti-add\fR" 4
8023 .IX Item "-mmulti-add"
8024 Try and generate multiply-add floating point instructions \f(CW\*(C`polyF\*(C'\fR
8025 and \f(CW\*(C`dotF\*(C'\fR.  This option is only available if the \fB\-m32381\fR
8026 option is in effect.  Using these instructions requires changes to
8027 register allocation which generally has a negative impact on
8028 performance.  This option should only be enabled when compiling code
8029 particularly likely to make heavy use of multiply-add instructions.
8030 .Ip "\fB\-mnomulti-add\fR" 4
8031 .IX Item "-mnomulti-add"
8032 Do not try and generate multiply-add floating point instructions
8033 \&\f(CW\*(C`polyF\*(C'\fR and \f(CW\*(C`dotF\*(C'\fR.  This is the default on all platforms.
8034 .Ip "\fB\-msoft-float\fR" 4
8035 .IX Item "-msoft-float"
8036 Generate output containing library calls for floating point.
8037 \&\fBWarning:\fR the requisite libraries may not be available.
8038 .Ip "\fB\-mnobitfield\fR" 4
8039 .IX Item "-mnobitfield"
8040 Do not use the bit-field instructions.  On some machines it is faster to
8041 use shifting and masking operations.  This is the default for the pc532.
8042 .Ip "\fB\-mbitfield\fR" 4
8043 .IX Item "-mbitfield"
8044 Do use the bit-field instructions.  This is the default for all platforms
8045 except the pc532.
8046 .Ip "\fB\-mrtd\fR" 4
8047 .IX Item "-mrtd"
8048 Use a different function-calling convention, in which functions
8049 that take a fixed number of arguments return pop their
8050 arguments on return with the \f(CW\*(C`ret\*(C'\fR instruction.
8051 .Sp
8052 This calling convention is incompatible with the one normally
8053 used on Unix, so you cannot use it if you need to call libraries
8054 compiled with the Unix compiler.
8055 .Sp
8056 Also, you must provide function prototypes for all functions that
8057 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
8058 otherwise incorrect code will be generated for calls to those
8059 functions.
8060 .Sp
8061 In addition, seriously incorrect code will result if you call a
8062 function with too many arguments.  (Normally, extra arguments are
8063 harmlessly ignored.)
8064 .Sp
8065 This option takes its name from the 680x0 \f(CW\*(C`rtd\*(C'\fR instruction.
8066 .Ip "\fB\-mregparam\fR" 4
8067 .IX Item "-mregparam"
8068 Use a different function-calling convention where the first two arguments
8069 are passed in registers.
8070 .Sp
8071 This calling convention is incompatible with the one normally
8072 used on Unix, so you cannot use it if you need to call libraries
8073 compiled with the Unix compiler.
8074 .Ip "\fB\-mnoregparam\fR" 4
8075 .IX Item "-mnoregparam"
8076 Do not pass any arguments in registers.  This is the default for all
8077 targets.
8078 .Ip "\fB\-msb\fR" 4
8079 .IX Item "-msb"
8080 It is \s-1OK\s0 to use the sb as an index register which is always loaded with
8081 zero.  This is the default for the pc532\-netbsd target.
8082 .Ip "\fB\-mnosb\fR" 4
8083 .IX Item "-mnosb"
8084 The sb register is not available for use or has not been initialized to
8085 zero by the run time system.  This is the default for all targets except
8086 the pc532\-netbsd.  It is also implied whenever \fB\-mhimem\fR or
8087 \&\fB\-fpic\fR is set.
8088 .Ip "\fB\-mhimem\fR" 4
8089 .IX Item "-mhimem"
8090 Many ns32000 series addressing modes use displacements of up to 512MB.
8091 If an address is above 512MB then displacements from zero can not be used.
8092 This option causes code to be generated which can be loaded above 512MB.
8093 This may be useful for operating systems or \s-1ROM\s0 code.
8094 .Ip "\fB\-mnohimem\fR" 4
8095 .IX Item "-mnohimem"
8096 Assume code will be loaded in the first 512MB of virtual address space.
8097 This is the default for all platforms.
8098 .PP
8099 .I "\s-1AVR\s0 Options"
8100 .IX Subsection "AVR Options"
8101 .PP
8102 These options are defined for \s-1AVR\s0 implementations:
8103 .Ip "\fB\-mmcu=\fR\fImcu\fR" 4
8104 .IX Item "-mmcu=mcu"
8105 Specify \s-1ATMEL\s0 \s-1AVR\s0 instruction set or \s-1MCU\s0 type.
8106 .Sp
8107 Instruction set avr1 is for the minimal \s-1AVR\s0 core, not supported by the C
8108 compiler, only for assembler programs (\s-1MCU\s0 types: at90s1200, attiny10,
8109 attiny11, attiny12, attiny15, attiny28).
8110 .Sp
8111 Instruction set avr2 (default) is for the classic \s-1AVR\s0 core with up to
8112 8K program memory space (\s-1MCU\s0 types: at90s2313, at90s2323, attiny22,
8113 at90s2333, at90s2343, at90s4414, at90s4433, at90s4434, at90s8515,
8114 at90c8534, at90s8535).
8115 .Sp
8116 Instruction set avr3 is for the classic \s-1AVR\s0 core with up to 128K program
8117 memory space (\s-1MCU\s0 types: atmega103, atmega603, at43usb320, at76c711).
8118 .Sp
8119 Instruction set avr4 is for the enhanced \s-1AVR\s0 core with up to 8K program
8120 memory space (\s-1MCU\s0 types: atmega8, atmega83, atmega85).
8121 .Sp
8122 Instruction set avr5 is for the enhanced \s-1AVR\s0 core with up to 128K program
8123 memory space (\s-1MCU\s0 types: atmega16, atmega161, atmega163, atmega32, atmega323,
8124 atmega64, atmega128, at43usb355, at94k).
8125 .Ip "\fB\-msize\fR" 4
8126 .IX Item "-msize"
8127 Output instruction sizes to the asm file.
8128 .Ip "\fB\-minit-stack=\fR\fIN\fR" 4
8129 .IX Item "-minit-stack=N"
8130 Specify the initial stack address, which may be a symbol or numeric value,
8131 \&\fB_\|_stack\fR is the default.
8132 .Ip "\fB\-mno-interrupts\fR" 4
8133 .IX Item "-mno-interrupts"
8134 Generated code is not compatible with hardware interrupts.
8135 Code size will be smaller.
8136 .Ip "\fB\-mcall-prologues\fR" 4
8137 .IX Item "-mcall-prologues"
8138 Functions prologues/epilogues expanded as call to appropriate
8139 subroutines.  Code size will be smaller.
8140 .Ip "\fB\-mno-tablejump\fR" 4
8141 .IX Item "-mno-tablejump"
8142 Do not generate tablejump insns which sometimes increase code size.
8143 .Ip "\fB\-mtiny-stack\fR" 4
8144 .IX Item "-mtiny-stack"
8145 Change only the low 8 bits of the stack pointer.
8146 .PP
8147 .I "MCore Options"
8148 .IX Subsection "MCore Options"
8149 .PP
8150 These are the \fB\-m\fR options defined for the Motorola M*Core
8151 processors.
8152 .Ip "\fB\-mhardlit\fR" 4
8153 .IX Item "-mhardlit"
8154 .PD 0
8155 .Ip "\fB\-mhardlit\fR" 4
8156 .IX Item "-mhardlit"
8157 .Ip "\fB\-mno-hardlit\fR" 4
8158 .IX Item "-mno-hardlit"
8159 .PD
8160 Inline constants into the code stream if it can be done in two
8161 instructions or less.
8162 .Ip "\fB\-mdiv\fR" 4
8163 .IX Item "-mdiv"
8164 .PD 0
8165 .Ip "\fB\-mdiv\fR" 4
8166 .IX Item "-mdiv"
8167 .Ip "\fB\-mno-div\fR" 4
8168 .IX Item "-mno-div"
8169 .PD
8170 Use the divide instruction.  (Enabled by default).
8171 .Ip "\fB\-mrelax-immediate\fR" 4
8172 .IX Item "-mrelax-immediate"
8173 .PD 0
8174 .Ip "\fB\-mrelax-immediate\fR" 4
8175 .IX Item "-mrelax-immediate"
8176 .Ip "\fB\-mno-relax-immediate\fR" 4
8177 .IX Item "-mno-relax-immediate"
8178 .PD
8179 Allow arbitrary sized immediates in bit operations.
8180 .Ip "\fB\-mwide-bitfields\fR" 4
8181 .IX Item "-mwide-bitfields"
8182 .PD 0
8183 .Ip "\fB\-mwide-bitfields\fR" 4
8184 .IX Item "-mwide-bitfields"
8185 .Ip "\fB\-mno-wide-bitfields\fR" 4
8186 .IX Item "-mno-wide-bitfields"
8187 .PD
8188 Always treat bit-fields as int-sized.
8189 .Ip "\fB\-m4byte-functions\fR" 4
8190 .IX Item "-m4byte-functions"
8191 .PD 0
8192 .Ip "\fB\-m4byte-functions\fR" 4
8193 .IX Item "-m4byte-functions"
8194 .Ip "\fB\-mno-4byte-functions\fR" 4
8195 .IX Item "-mno-4byte-functions"
8196 .PD
8197 Force all functions to be aligned to a four byte boundary.
8198 .Ip "\fB\-mcallgraph-data\fR" 4
8199 .IX Item "-mcallgraph-data"
8200 .PD 0
8201 .Ip "\fB\-mcallgraph-data\fR" 4
8202 .IX Item "-mcallgraph-data"
8203 .Ip "\fB\-mno-callgraph-data\fR" 4
8204 .IX Item "-mno-callgraph-data"
8205 .PD
8206 Emit callgraph information.
8207 .Ip "\fB\-mslow-bytes\fR" 4
8208 .IX Item "-mslow-bytes"
8209 .PD 0
8210 .Ip "\fB\-mslow-bytes\fR" 4
8211 .IX Item "-mslow-bytes"
8212 .Ip "\fB\-mno-slow-bytes\fR" 4
8213 .IX Item "-mno-slow-bytes"
8214 .PD
8215 Prefer word access when reading byte quantities.
8216 .Ip "\fB\-mlittle-endian\fR" 4
8217 .IX Item "-mlittle-endian"
8218 .PD 0
8219 .Ip "\fB\-mlittle-endian\fR" 4
8220 .IX Item "-mlittle-endian"
8221 .Ip "\fB\-mbig-endian\fR" 4
8222 .IX Item "-mbig-endian"
8223 .PD
8224 Generate code for a little endian target.
8225 .Ip "\fB\-m210\fR" 4
8226 .IX Item "-m210"
8227 .PD 0
8228 .Ip "\fB\-m210\fR" 4
8229 .IX Item "-m210"
8230 .Ip "\fB\-m340\fR" 4
8231 .IX Item "-m340"
8232 .PD
8233 Generate code for the 210 processor.
8234 .PP
8235 .I "\s-1IA-64\s0 Options"
8236 .IX Subsection "IA-64 Options"
8237 .PP
8238 These are the \fB\-m\fR options defined for the Intel \s-1IA-64\s0 architecture.
8239 .Ip "\fB\-mbig-endian\fR" 4
8240 .IX Item "-mbig-endian"
8241 Generate code for a big endian target.  This is the default for \s-1HPUX\s0.
8242 .Ip "\fB\-mlittle-endian\fR" 4
8243 .IX Item "-mlittle-endian"
8244 Generate code for a little endian target.  This is the default for \s-1AIX5\s0
8245 and Linux.
8246 .Ip "\fB\-mgnu-as\fR" 4
8247 .IX Item "-mgnu-as"
8248 .PD 0
8249 .Ip "\fB\-mno-gnu-as\fR" 4
8250 .IX Item "-mno-gnu-as"
8251 .PD
8252 Generate (or don't) code for the \s-1GNU\s0 assembler.  This is the default.
8253 .Ip "\fB\-mgnu-ld\fR" 4
8254 .IX Item "-mgnu-ld"
8255 .PD 0
8256 .Ip "\fB\-mno-gnu-ld\fR" 4
8257 .IX Item "-mno-gnu-ld"
8258 .PD
8259 Generate (or don't) code for the \s-1GNU\s0 linker.  This is the default.
8260 .Ip "\fB\-mno-pic\fR" 4
8261 .IX Item "-mno-pic"
8262 Generate code that does not use a global pointer register.  The result
8263 is not position independent code, and violates the \s-1IA-64\s0 \s-1ABI\s0.
8264 .Ip "\fB\-mvolatile-asm-stop\fR" 4
8265 .IX Item "-mvolatile-asm-stop"
8266 .PD 0
8267 .Ip "\fB\-mno-volatile-asm-stop\fR" 4
8268 .IX Item "-mno-volatile-asm-stop"
8269 .PD
8270 Generate (or don't) a stop bit immediately before and after volatile asm
8271 statements.
8272 .Ip "\fB\-mb-step\fR" 4
8273 .IX Item "-mb-step"
8274 Generate code that works around Itanium B step errata.
8275 .Ip "\fB\-mregister-names\fR" 4
8276 .IX Item "-mregister-names"
8277 .PD 0
8278 .Ip "\fB\-mno-register-names\fR" 4
8279 .IX Item "-mno-register-names"
8280 .PD
8281 Generate (or don't) \fBin\fR, \fBloc\fR, and \fBout\fR register names for
8282 the stacked registers.  This may make assembler output more readable.
8283 .Ip "\fB\-mno-sdata\fR" 4
8284 .IX Item "-mno-sdata"
8285 .PD 0
8286 .Ip "\fB\-msdata\fR" 4
8287 .IX Item "-msdata"
8288 .PD
8289 Disable (or enable) optimizations that use the small data section.  This may
8290 be useful for working around optimizer bugs.
8291 .Ip "\fB\-mconstant-gp\fR" 4
8292 .IX Item "-mconstant-gp"
8293 Generate code that uses a single constant global pointer value.  This is
8294 useful when compiling kernel code.
8295 .Ip "\fB\-mauto-pic\fR" 4
8296 .IX Item "-mauto-pic"
8297 Generate code that is self-relocatable.  This implies \fB\-mconstant-gp\fR.
8298 This is useful when compiling firmware code.
8299 .Ip "\fB\-minline-divide-min-latency\fR" 4
8300 .IX Item "-minline-divide-min-latency"
8301 Generate code for inline divides using the minimum latency algorithm.
8302 .Ip "\fB\-minline-divide-max-throughput\fR" 4
8303 .IX Item "-minline-divide-max-throughput"
8304 Generate code for inline divides using the maximum throughput algorithm.
8305 .Ip "\fB\-mno-dwarf2\-asm\fR" 4
8306 .IX Item "-mno-dwarf2-asm"
8307 .PD 0
8308 .Ip "\fB\-mdwarf2\-asm\fR" 4
8309 .IX Item "-mdwarf2-asm"
8310 .PD
8311 Don't (or do) generate assembler code for the \s-1DWARF2\s0 line number debugging
8312 info.  This may be useful when not using the \s-1GNU\s0 assembler.
8313 .Ip "\fB\-mfixed-range=\fR\fIregister-range\fR" 4
8314 .IX Item "-mfixed-range=register-range"
8315 Generate code treating the given register range as fixed registers.
8316 A fixed register is one that the register allocator can not use.  This is
8317 useful when compiling kernel code.  A register range is specified as
8318 two registers separated by a dash.  Multiple register ranges can be
8319 specified separated by a comma.
8320 .PP
8321 .I "D30V Options"
8322 .IX Subsection "D30V Options"
8323 .PP
8324 These \fB\-m\fR options are defined for D30V implementations:
8325 .Ip "\fB\-mextmem\fR" 4
8326 .IX Item "-mextmem"
8327 Link the \fB.text\fR, \fB.data\fR, \fB.bss\fR, \fB.strings\fR,
8328 \&\fB.rodata\fR, \fB.rodata1\fR, \fB.data1\fR sections into external
8329 memory, which starts at location \f(CW\*(C`0x80000000\*(C'\fR.
8330 .Ip "\fB\-mextmemory\fR" 4
8331 .IX Item "-mextmemory"
8332 Same as the \fB\-mextmem\fR switch.
8333 .Ip "\fB\-monchip\fR" 4
8334 .IX Item "-monchip"
8335 Link the \fB.text\fR section into onchip text memory, which starts at
8336 location \f(CW\*(C`0x0\*(C'\fR.  Also link \fB.data\fR, \fB.bss\fR,
8337 \&\fB.strings\fR, \fB.rodata\fR, \fB.rodata1\fR, \fB.data1\fR sections
8338 into onchip data memory, which starts at location \f(CW\*(C`0x20000000\*(C'\fR.
8339 .Ip "\fB\-mno-asm-optimize\fR" 4
8340 .IX Item "-mno-asm-optimize"
8341 .PD 0
8342 .Ip "\fB\-masm-optimize\fR" 4
8343 .IX Item "-masm-optimize"
8344 .PD
8345 Disable (enable) passing \fB\-O\fR to the assembler when optimizing.
8346 The assembler uses the \fB\-O\fR option to automatically parallelize
8347 adjacent short instructions where possible.
8348 .Ip "\fB\-mbranch-cost=\fR\fIn\fR" 4
8349 .IX Item "-mbranch-cost=n"
8350 Increase the internal costs of branches to \fIn\fR.  Higher costs means
8351 that the compiler will issue more instructions to avoid doing a branch.
8352 The default is 2.
8353 .Ip "\fB\-mcond-exec=\fR\fIn\fR" 4
8354 .IX Item "-mcond-exec=n"
8355 Specify the maximum number of conditionally executed instructions that
8356 replace a branch.  The default is 4.
8357 .PP
8358 .I "S/390 and zSeries Options"
8359 .IX Subsection "S/390 and zSeries Options"
8360 .PP
8361 These are the \fB\-m\fR options defined for the S/390 and zSeries architecture.
8362 .Ip "\fB\-mhard-float\fR" 4
8363 .IX Item "-mhard-float"
8364 .PD 0
8365 .Ip "\fB\-msoft-float\fR" 4
8366 .IX Item "-msoft-float"
8367 .PD
8368 Use (do not use) the hardware floating-point instructions and registers
8369 for floating-point operations.  When \fB\-msoft-float\fR is specified,
8370 functions in \fIlibgcc.a\fR will be used to perform floating-point
8371 operations.  When \fB\-mhard-float\fR is specified, the compiler
8372 generates \s-1IEEE\s0 floating-point instructions.  This is the default.
8373 .Ip "\fB\-mbackchain\fR" 4
8374 .IX Item "-mbackchain"
8375 .PD 0
8376 .Ip "\fB\-mno-backchain\fR" 4
8377 .IX Item "-mno-backchain"
8378 .PD
8379 Generate (or do not generate) code which maintains an explicit
8380 backchain within the stack frame that points to the caller's frame.
8381 This is currently needed to allow debugging.  The default is to
8382 generate the backchain.
8383 .Ip "\fB\-msmall-exec\fR" 4
8384 .IX Item "-msmall-exec"
8385 .PD 0
8386 .Ip "\fB\-mno-small-exec\fR" 4
8387 .IX Item "-mno-small-exec"
8388 .PD
8389 Generate (or do not generate) code using the \f(CW\*(C`bras\*(C'\fR instruction
8390 to do subroutine calls.
8391 This only works reliably if the total executable size does not
8392 exceed 64k.  The default is to use the \f(CW\*(C`basr\*(C'\fR instruction instead,
8393 which does not have this limitation.
8394 .Ip "\fB\-m64\fR" 4
8395 .IX Item "-m64"
8396 .PD 0
8397 .Ip "\fB\-m31\fR" 4
8398 .IX Item "-m31"
8399 .PD
8400 When \fB\-m31\fR is specified, generate code compliant to the
8401 Linux for S/390 \s-1ABI\s0.  When \fB\-m64\fR is specified, generate
8402 code compliant to the Linux for zSeries \s-1ABI\s0.  This allows \s-1GCC\s0 in
8403 particular to generate 64\-bit instructions.  For the \fBs390\fR
8404 targets, the default is \fB\-m31\fR, while the \fBs390x\fR
8405 targets default to \fB\-m64\fR.
8406 .Ip "\fB\-mmvcle\fR" 4
8407 .IX Item "-mmvcle"
8408 .PD 0
8409 .Ip "\fB\-mno-mvcle\fR" 4
8410 .IX Item "-mno-mvcle"
8411 .PD
8412 Generate (or do not generate) code using the \f(CW\*(C`mvcle\*(C'\fR instruction
8413 to perform block moves.  When \fB\-mno-mvcle\fR is specifed,
8414 use a \f(CW\*(C`mvc\*(C'\fR loop instead.  This is the default.
8415 .Ip "\fB\-mdebug\fR" 4
8416 .IX Item "-mdebug"
8417 .PD 0
8418 .Ip "\fB\-mno-debug\fR" 4
8419 .IX Item "-mno-debug"
8420 .PD
8421 Print (or do not print) additional debug information when compiling.
8422 The default is to not print debug information.
8423 .PP
8424 .I "\s-1CRIS\s0 Options"
8425 .IX Subsection "CRIS Options"
8426 .PP
8427 These options are defined specifically for the \s-1CRIS\s0 ports.
8428 .Ip "\fB\-march=\fR\fIarchitecture-type\fR" 4
8429 .IX Item "-march=architecture-type"
8430 .PD 0
8431 .Ip "\fB\-mcpu=\fR\fIarchitecture-type\fR" 4
8432 .IX Item "-mcpu=architecture-type"
8433 .PD
8434 Generate code for the specified architecture.  The choices for
8435 \&\fIarchitecture-type\fR are \fBv3\fR, \fBv8\fR and \fBv10\fR for
8436 respectively \s-1ETRAX\s0\ 4, \s-1ETRAX\s0\ 100, and \s-1ETRAX\s0\ 100\ \s-1LX\s0.
8437 Default is \fBv0\fR except for cris-axis-linux-gnu, where the default is
8438 \&\fBv10\fR.
8439 .Ip "\fB\-mtune=\fR\fIarchitecture-type\fR" 4
8440 .IX Item "-mtune=architecture-type"
8441 Tune to \fIarchitecture-type\fR everything applicable about the generated
8442 code, except for the \s-1ABI\s0 and the set of available instructions.  The
8443 choices for \fIarchitecture-type\fR are the same as for
8444 \&\fB\-march=\fR\fIarchitecture-type\fR.
8445 .Ip "\fB\-mmax-stack-frame=\fR\fIn\fR" 4
8446 .IX Item "-mmax-stack-frame=n"
8447 Warn when the stack frame of a function exceeds \fIn\fR bytes.
8448 .Ip "\fB\-melinux-stacksize=\fR\fIn\fR" 4
8449 .IX Item "-melinux-stacksize=n"
8450 Only available with the \fBcris-axis-aout\fR target.  Arranges for
8451 indications in the program to the kernel loader that the stack of the
8452 program should be set to \fIn\fR bytes.
8453 .Ip "\fB\-metrax4\fR" 4
8454 .IX Item "-metrax4"
8455 .PD 0
8456 .Ip "\fB\-metrax100\fR" 4
8457 .IX Item "-metrax100"
8458 .PD
8459 The options \fB\-metrax4\fR and \fB\-metrax100\fR are synonyms for
8460 \&\fB\-march=v3\fR and \fB\-march=v8\fR respectively.
8461 .Ip "\fB\-mpdebug\fR" 4
8462 .IX Item "-mpdebug"
8463 Enable CRIS-specific verbose debug-related information in the assembly
8464 code.  This option also has the effect to turn off the \fB#NO_APP\fR
8465 formatted-code indicator to the assembler at the beginning of the
8466 assembly file.
8467 .Ip "\fB\-mcc-init\fR" 4
8468 .IX Item "-mcc-init"
8469 Do not use condition-code results from previous instruction; always emit
8470 compare and test instructions before use of condition codes.
8471 .Ip "\fB\-mno-side-effects\fR" 4
8472 .IX Item "-mno-side-effects"
8473 Do not emit instructions with side-effects in addressing modes other than
8474 post-increment.
8475 .Ip "\fB\-mstack-align\fR" 4
8476 .IX Item "-mstack-align"
8477 .PD 0
8478 .Ip "\fB\-mno-stack-align\fR" 4
8479 .IX Item "-mno-stack-align"
8480 .Ip "\fB\-mdata-align\fR" 4
8481 .IX Item "-mdata-align"
8482 .Ip "\fB\-mno-data-align\fR" 4
8483 .IX Item "-mno-data-align"
8484 .Ip "\fB\-mconst-align\fR" 4
8485 .IX Item "-mconst-align"
8486 .Ip "\fB\-mno-const-align\fR" 4
8487 .IX Item "-mno-const-align"
8488 .PD
8489 These options (no-options) arranges (eliminate arrangements) for the
8490 stack-frame, individual data and constants to be aligned for the maximum
8491 single data access size for the chosen \s-1CPU\s0 model.  The default is to
8492 arrange for 32\-bit alignment.  \s-1ABI\s0 details such as structure layout are
8493 not affected by these options.
8494 .Ip "\fB\-m32\-bit\fR" 4
8495 .IX Item "-m32-bit"
8496 .PD 0
8497 .Ip "\fB\-m16\-bit\fR" 4
8498 .IX Item "-m16-bit"
8499 .Ip "\fB\-m8\-bit\fR" 4
8500 .IX Item "-m8-bit"
8501 .PD
8502 Similar to the stack- data- and const-align options above, these options
8503 arrange for stack-frame, writable data and constants to all be 32\-bit,
8504 16\-bit or 8\-bit aligned.  The default is 32\-bit alignment.
8505 .Ip "\fB\-mno-prologue-epilogue\fR" 4
8506 .IX Item "-mno-prologue-epilogue"
8507 .PD 0
8508 .Ip "\fB\-mprologue-epilogue\fR" 4
8509 .IX Item "-mprologue-epilogue"
8510 .PD
8511 With \fB\-mno-prologue-epilogue\fR, the normal function prologue and
8512 epilogue that sets up the stack-frame are omitted and no return
8513 instructions or return sequences are generated in the code.  Use this
8514 option only together with visual inspection of the compiled code: no
8515 warnings or errors are generated when call-saved registers must be saved,
8516 or storage for local variable needs to be allocated.
8517 .Ip "\fB\-mno-gotplt\fR" 4
8518 .IX Item "-mno-gotplt"
8519 .PD 0
8520 .Ip "\fB\-mgotplt\fR" 4
8521 .IX Item "-mgotplt"
8522 .PD
8523 With \fB\-fpic\fR and \fB\-fPIC\fR, don't generate (do generate)
8524 instruction sequences that load addresses for functions from the \s-1PLT\s0 part
8525 of the \s-1GOT\s0 rather than (traditional on other architectures) calls to the
8526 \&\s-1PLT\s0.  The default is \fB\-mgotplt\fR.
8527 .Ip "\fB\-maout\fR" 4
8528 .IX Item "-maout"
8529 Legacy no-op option only recognized with the cris-axis-aout target.
8530 .Ip "\fB\-melf\fR" 4
8531 .IX Item "-melf"
8532 Legacy no-op option only recognized with the cris-axis-elf and
8533 cris-axis-linux-gnu targets.
8534 .Ip "\fB\-melinux\fR" 4
8535 .IX Item "-melinux"
8536 Only recognized with the cris-axis-aout target, where it selects a
8537 GNU/linux-like multilib, include files and instruction set for
8538 \&\fB\-march=v8\fR.
8539 .Ip "\fB\-mlinux\fR" 4
8540 .IX Item "-mlinux"
8541 Legacy no-op option only recognized with the cris-axis-linux-gnu target.
8542 .Ip "\fB\-sim\fR" 4
8543 .IX Item "-sim"
8544 This option, recognized for the cris-axis-aout and cris-axis-elf arranges
8545 to link with input-output functions from a simulator library.  Code,
8546 initialized data and zero-initialized data are allocated consecutively.
8547 .Ip "\fB\-sim2\fR" 4
8548 .IX Item "-sim2"
8549 Like \fB\-sim\fR, but pass linker options to locate initialized data at
8550 0x40000000 and zero-initialized data at 0x80000000.
8551 .PP
8552 .I "\s-1MMIX\s0 Options"
8553 .IX Subsection "MMIX Options"
8554 .PP
8555 These options are defined for the \s-1MMIX:\s0
8556 .Ip "\fB\-mlibfuncs\fR" 4
8557 .IX Item "-mlibfuncs"
8558 .PD 0
8559 .Ip "\fB\-mno-libfuncs\fR" 4
8560 .IX Item "-mno-libfuncs"
8561 .PD
8562 Specify that intrinsic library functions are being compiled, passing all
8563 values in registers, no matter the size.
8564 .Ip "\fB\-mepsilon\fR" 4
8565 .IX Item "-mepsilon"
8566 .PD 0
8567 .Ip "\fB\-mno-epsilon\fR" 4
8568 .IX Item "-mno-epsilon"
8569 .PD
8570 Generate floating-point comparison instructions that compare with respect
8571 to the \f(CW\*(C`rE\*(C'\fR epsilon register.
8572 .Ip "\fB\-mabi=mmixware\fR" 4
8573 .IX Item "-mabi=mmixware"
8574 .PD 0
8575 .Ip "\fB\-mabi=gnu\fR" 4
8576 .IX Item "-mabi=gnu"
8577 .PD
8578 Generate code that passes function parameters and return values that (in
8579 the called function) are seen as registers \f(CW\*(C`$0\*(C'\fR and up, as opposed to
8580 the \s-1GNU\s0 \s-1ABI\s0 which uses global registers \f(CW\*(C`$231\*(C'\fR and up.
8581 .Ip "\fB\-mzero-extend\fR" 4
8582 .IX Item "-mzero-extend"
8583 .PD 0
8584 .Ip "\fB\-mno-zero-extend\fR" 4
8585 .IX Item "-mno-zero-extend"
8586 .PD
8587 When reading data from memory in sizes shorter than 64 bits, use (do not
8588 use) zero-extending load instructions by default, rather than
8589 sign-extending ones.
8590 .Ip "\fB\-mknuthdiv\fR" 4
8591 .IX Item "-mknuthdiv"
8592 .PD 0
8593 .Ip "\fB\-mno-knuthdiv\fR" 4
8594 .IX Item "-mno-knuthdiv"
8595 .PD
8596 Make the result of a division yielding a remainder have the same sign as
8597 the divisor.  With the default, \fB\-mno-knuthdiv\fR, the sign of the
8598 remainder follows the sign of the dividend.  Both methods are
8599 arithmetically valid, the latter being almost exclusively used.
8600 .Ip "\fB\-mtoplevel-symbols\fR" 4
8601 .IX Item "-mtoplevel-symbols"
8602 .PD 0
8603 .Ip "\fB\-mno-toplevel-symbols\fR" 4
8604 .IX Item "-mno-toplevel-symbols"
8605 .PD
8606 Prepend (do not prepend) a \fB:\fR to all global symbols, so the assembly
8607 code can be used with the \f(CW\*(C`PREFIX\*(C'\fR assembly directive.
8608 .Ip "\fB\-melf\fR" 4
8609 .IX Item "-melf"
8610 Generate an executable in the \s-1ELF\s0 format, rather than the default
8611 \&\fBmmo\fR format used by the \fBmmix\fR simulator.
8612 .Ip "\fB\-mbranch-predict\fR" 4
8613 .IX Item "-mbranch-predict"
8614 .PD 0
8615 .Ip "\fB\-mno-branch-predict\fR" 4
8616 .IX Item "-mno-branch-predict"
8617 .PD
8618 Use (do not use) the probable-branch instructions, when static branch
8619 prediction indicates a probable branch.
8620 .Ip "\fB\-mbase-addresses\fR" 4
8621 .IX Item "-mbase-addresses"
8622 .PD 0
8623 .Ip "\fB\-mno-base-addresses\fR" 4
8624 .IX Item "-mno-base-addresses"
8625 .PD
8626 Generate (do not generate) code that uses \fIbase addresses\fR.  Using a
8627 base address automatically generates a request (handled by the assembler
8628 and the linker) for a constant to be set up in a global register.  The
8629 register is used for one or more base address requests within the range 0
8630 to 255 from the value held in the register.  The generally leads to short
8631 and fast code, but the number of different data items that can be
8632 addressed is limited.  This means that a program that uses lots of static
8633 data may require \fB\-mno-base-addresses\fR.
8634 .PP
8635 .I "\s-1PDP-11\s0 Options"
8636 .IX Subsection "PDP-11 Options"
8637 .PP
8638 These options are defined for the \s-1PDP-11:\s0
8639 .Ip "\fB\-mfpu\fR" 4
8640 .IX Item "-mfpu"
8641 Use hardware \s-1FPP\s0 floating point.  This is the default.  (\s-1FIS\s0 floating
8642 point on the \s-1PDP-11/40\s0 is not supported.)
8643 .Ip "\fB\-msoft-float\fR" 4
8644 .IX Item "-msoft-float"
8645 Do not use hardware floating point.
8646 .Ip "\fB\-mac0\fR" 4
8647 .IX Item "-mac0"
8648 Return floating-point results in ac0 (fr0 in Unix assembler syntax).
8649 .Ip "\fB\-mno-ac0\fR" 4
8650 .IX Item "-mno-ac0"
8651 Return floating-point results in memory.  This is the default.
8652 .Ip "\fB\-m40\fR" 4
8653 .IX Item "-m40"
8654 Generate code for a \s-1PDP-11/40\s0.
8655 .Ip "\fB\-m45\fR" 4
8656 .IX Item "-m45"
8657 Generate code for a \s-1PDP-11/45\s0.  This is the default.
8658 .Ip "\fB\-m10\fR" 4
8659 .IX Item "-m10"
8660 Generate code for a \s-1PDP-11/10\s0.
8661 .Ip "\fB\-mbcopy-builtin\fR" 4
8662 .IX Item "-mbcopy-builtin"
8663 Use inline \f(CW\*(C`movstrhi\*(C'\fR patterns for copying memory.  This is the
8664 default.
8665 .Ip "\fB\-mbcopy\fR" 4
8666 .IX Item "-mbcopy"
8667 Do not use inline \f(CW\*(C`movstrhi\*(C'\fR patterns for copying memory.
8668 .Ip "\fB\-mint16\fR" 4
8669 .IX Item "-mint16"
8670 .PD 0
8671 .Ip "\fB\-mno-int32\fR" 4
8672 .IX Item "-mno-int32"
8673 .PD
8674 Use 16\-bit \f(CW\*(C`int\*(C'\fR.  This is the default.
8675 .Ip "\fB\-mint32\fR" 4
8676 .IX Item "-mint32"
8677 .PD 0
8678 .Ip "\fB\-mno-int16\fR" 4
8679 .IX Item "-mno-int16"
8680 .PD
8681 Use 32\-bit \f(CW\*(C`int\*(C'\fR.
8682 .Ip "\fB\-mfloat64\fR" 4
8683 .IX Item "-mfloat64"
8684 .PD 0
8685 .Ip "\fB\-mno-float32\fR" 4
8686 .IX Item "-mno-float32"
8687 .PD
8688 Use 64\-bit \f(CW\*(C`float\*(C'\fR.  This is the default.
8689 .Ip "\fB\-mfloat32\fR" 4
8690 .IX Item "-mfloat32"
8691 .PD 0
8692 .Ip "\fB\-mno-float64\fR" 4
8693 .IX Item "-mno-float64"
8694 .PD
8695 Use 32\-bit \f(CW\*(C`float\*(C'\fR.
8696 .Ip "\fB\-mabshi\fR" 4
8697 .IX Item "-mabshi"
8698 Use \f(CW\*(C`abshi2\*(C'\fR pattern.  This is the default.
8699 .Ip "\fB\-mno-abshi\fR" 4
8700 .IX Item "-mno-abshi"
8701 Do not use \f(CW\*(C`abshi2\*(C'\fR pattern.
8702 .Ip "\fB\-mbranch-expensive\fR" 4
8703 .IX Item "-mbranch-expensive"
8704 Pretend that branches are expensive.  This is for experimenting with
8705 code generation only.
8706 .Ip "\fB\-mbranch-cheap\fR" 4
8707 .IX Item "-mbranch-cheap"
8708 Do not pretend that branches are expensive.  This is the default.
8709 .Ip "\fB\-msplit\fR" 4
8710 .IX Item "-msplit"
8711 Generate code for a system with split I&D.
8712 .Ip "\fB\-mno-split\fR" 4
8713 .IX Item "-mno-split"
8714 Generate code for a system without split I&D.  This is the default.
8715 .Ip "\fB\-munix-asm\fR" 4
8716 .IX Item "-munix-asm"
8717 Use Unix assembler syntax.  This is the default when configured for
8718 \&\fBpdp11\-*\-bsd\fR.
8719 .Ip "\fB\-mdec-asm\fR" 4
8720 .IX Item "-mdec-asm"
8721 Use \s-1DEC\s0 assembler syntax.  This is the default when configured for any
8722 \&\s-1PDP-11\s0 target other than \fBpdp11\-*\-bsd\fR.
8723 .PP
8724 .I "Xstormy16 Options"
8725 .IX Subsection "Xstormy16 Options"
8726 .PP
8727 These options are defined for Xstormy16:
8728 .Ip "\fB\-msim\fR" 4
8729 .IX Item "-msim"
8730 Choose startup files and linker script suitable for the simulator.
8731 .PP
8732 .I "Xtensa Options"
8733 .IX Subsection "Xtensa Options"
8734 .PP
8735 The Xtensa architecture is designed to support many different
8736 configurations.  The compiler's default options can be set to match a
8737 particular Xtensa configuration by copying a configuration file into the
8738 \&\s-1GCC\s0 sources when building \s-1GCC\s0.  The options below may be used to
8739 override the default options.
8740 .Ip "\fB\-mbig-endian\fR" 4
8741 .IX Item "-mbig-endian"
8742 .PD 0
8743 .Ip "\fB\-mlittle-endian\fR" 4
8744 .IX Item "-mlittle-endian"
8745 .PD
8746 Specify big-endian or little-endian byte ordering for the target Xtensa
8747 processor.
8748 .Ip "\fB\-mdensity\fR" 4
8749 .IX Item "-mdensity"
8750 .PD 0
8751 .Ip "\fB\-mno-density\fR" 4
8752 .IX Item "-mno-density"
8753 .PD
8754 Enable or disable use of the optional Xtensa code density instructions.
8755 .Ip "\fB\-mmac16\fR" 4
8756 .IX Item "-mmac16"
8757 .PD 0
8758 .Ip "\fB\-mno-mac16\fR" 4
8759 .IX Item "-mno-mac16"
8760 .PD
8761 Enable or disable use of the Xtensa \s-1MAC16\s0 option.  When enabled, \s-1GCC\s0
8762 will generate \s-1MAC16\s0 instructions from standard C code, with the
8763 limitation that it will use neither the \s-1MR\s0 register file nor any
8764 instruction that operates on the \s-1MR\s0 registers.  When this option is
8765 disabled, \s-1GCC\s0 will translate 16\-bit multiply/accumulate operations to a
8766 combination of core instructions and library calls, depending on whether
8767 any other multiplier options are enabled.
8768 .Ip "\fB\-mmul16\fR" 4
8769 .IX Item "-mmul16"
8770 .PD 0
8771 .Ip "\fB\-mno-mul16\fR" 4
8772 .IX Item "-mno-mul16"
8773 .PD
8774 Enable or disable use of the 16\-bit integer multiplier option.  When
8775 enabled, the compiler will generate 16\-bit multiply instructions for
8776 multiplications of 16 bits or smaller in standard C code.  When this
8777 option is disabled, the compiler will either use 32\-bit multiply or
8778 \&\s-1MAC16\s0 instructions if they are available or generate library calls to
8779 perform the multiply operations using shifts and adds.
8780 .Ip "\fB\-mmul32\fR" 4
8781 .IX Item "-mmul32"
8782 .PD 0
8783 .Ip "\fB\-mno-mul32\fR" 4
8784 .IX Item "-mno-mul32"
8785 .PD
8786 Enable or disable use of the 32\-bit integer multiplier option.  When
8787 enabled, the compiler will generate 32\-bit multiply instructions for
8788 multiplications of 32 bits or smaller in standard C code.  When this
8789 option is disabled, the compiler will generate library calls to perform
8790 the multiply operations using either shifts and adds or 16\-bit multiply
8791 instructions if they are available.
8792 .Ip "\fB\-mnsa\fR" 4
8793 .IX Item "-mnsa"
8794 .PD 0
8795 .Ip "\fB\-mno-nsa\fR" 4
8796 .IX Item "-mno-nsa"
8797 .PD
8798 Enable or disable use of the optional normalization shift amount
8799 (\f(CW\*(C`NSA\*(C'\fR) instructions to implement the built-in \f(CW\*(C`ffs\*(C'\fR function.
8800 .Ip "\fB\-mminmax\fR" 4
8801 .IX Item "-mminmax"
8802 .PD 0
8803 .Ip "\fB\-mno-minmax\fR" 4
8804 .IX Item "-mno-minmax"
8805 .PD
8806 Enable or disable use of the optional minimum and maximum value
8807 instructions.
8808 .Ip "\fB\-msext\fR" 4
8809 .IX Item "-msext"
8810 .PD 0
8811 .Ip "\fB\-mno-sext\fR" 4
8812 .IX Item "-mno-sext"
8813 .PD
8814 Enable or disable use of the optional sign extend (\f(CW\*(C`SEXT\*(C'\fR)
8815 instruction.
8816 .Ip "\fB\-mbooleans\fR" 4
8817 .IX Item "-mbooleans"
8818 .PD 0
8819 .Ip "\fB\-mno-booleans\fR" 4
8820 .IX Item "-mno-booleans"
8821 .PD
8822 Enable or disable support for the boolean register file used by Xtensa
8823 coprocessors.  This is not typically useful by itself but may be
8824 required for other options that make use of the boolean registers (e.g.,
8825 the floating-point option).
8826 .Ip "\fB\-mhard-float\fR" 4
8827 .IX Item "-mhard-float"
8828 .PD 0
8829 .Ip "\fB\-msoft-float\fR" 4
8830 .IX Item "-msoft-float"
8831 .PD
8832 Enable or disable use of the floating-point option.  When enabled, \s-1GCC\s0
8833 generates floating-point instructions for 32\-bit \f(CW\*(C`float\*(C'\fR
8834 operations.  When this option is disabled, \s-1GCC\s0 generates library calls
8835 to emulate 32\-bit floating-point operations using integer instructions.
8836 Regardless of this option, 64\-bit \f(CW\*(C`double\*(C'\fR operations are always
8837 emulated with calls to library functions.
8838 .Ip "\fB\-mfused-madd\fR" 4
8839 .IX Item "-mfused-madd"
8840 .PD 0
8841 .Ip "\fB\-mno-fused-madd\fR" 4
8842 .IX Item "-mno-fused-madd"
8843 .PD
8844 Enable or disable use of fused multiply/add and multiply/subtract
8845 instructions in the floating-point option.  This has no effect if the
8846 floating-point option is not also enabled.  Disabling fused multiply/add
8847 and multiply/subtract instructions forces the compiler to use separate
8848 instructions for the multiply and add/subtract operations.  This may be
8849 desirable in some cases where strict \s-1IEEE\s0 754\-compliant results are
8850 required: the fused multiply add/subtract instructions do not round the
8851 intermediate result, thereby producing results with \fImore\fR bits of
8852 precision than specified by the \s-1IEEE\s0 standard.  Disabling fused multiply
8853 add/subtract instructions also ensures that the program output is not
8854 sensitive to the compiler's ability to combine multiply and add/subtract
8855 operations.
8856 .Ip "\fB\-mserialize-volatile\fR" 4
8857 .IX Item "-mserialize-volatile"
8858 .PD 0
8859 .Ip "\fB\-mno-serialize-volatile\fR" 4
8860 .IX Item "-mno-serialize-volatile"
8861 .PD
8862 When this option is enabled, \s-1GCC\s0 inserts \f(CW\*(C`MEMW\*(C'\fR instructions before
8863 \&\f(CW\*(C`volatile\*(C'\fR memory references to guarantee sequential consistency.
8864 The default is \fB\-mserialize-volatile\fR.  Use
8865 \&\fB\-mno-serialize-volatile\fR to omit the \f(CW\*(C`MEMW\*(C'\fR instructions.
8866 .Ip "\fB\-mtext-section-literals\fR" 4
8867 .IX Item "-mtext-section-literals"
8868 .PD 0
8869 .Ip "\fB\-mno-text-section-literals\fR" 4
8870 .IX Item "-mno-text-section-literals"
8871 .PD
8872 Control the treatment of literal pools.  The default is
8873 \&\fB\-mno-text-section-literals\fR, which places literals in a separate
8874 section in the output file.  This allows the literal pool to be placed
8875 in a data \s-1RAM/ROM\s0, and it also allows the linker to combine literal
8876 pools from separate object files to remove redundant literals and
8877 improve code size.  With \fB\-mtext-section-literals\fR, the literals
8878 are interspersed in the text section in order to keep them as close as
8879 possible to their references.  This may be necessary for large assembly
8880 files.
8881 .Ip "\fB\-mtarget-align\fR" 4
8882 .IX Item "-mtarget-align"
8883 .PD 0
8884 .Ip "\fB\-mno-target-align\fR" 4
8885 .IX Item "-mno-target-align"
8886 .PD
8887 When this option is enabled, \s-1GCC\s0 instructs the assembler to
8888 automatically align instructions to reduce branch penalties at the
8889 expense of some code density.  The assembler attempts to widen density
8890 instructions to align branch targets and the instructions following call
8891 instructions.  If there are not enough preceding safe density
8892 instructions to align a target, no widening will be performed.  The
8893 default is \fB\-mtarget-align\fR.  These options do not affect the
8894 treatment of auto-aligned instructions like \f(CW\*(C`LOOP\*(C'\fR, which the
8895 assembler will always align, either by widening density instructions or
8896 by inserting no-op instructions.
8897 .Ip "\fB\-mlongcalls\fR" 4
8898 .IX Item "-mlongcalls"
8899 .PD 0
8900 .Ip "\fB\-mno-longcalls\fR" 4
8901 .IX Item "-mno-longcalls"
8902 .PD
8903 When this option is enabled, \s-1GCC\s0 instructs the assembler to translate
8904 direct calls to indirect calls unless it can determine that the target
8905 of a direct call is in the range allowed by the call instruction.  This
8906 translation typically occurs for calls to functions in other source
8907 files.  Specifically, the assembler translates a direct \f(CW\*(C`CALL\*(C'\fR
8908 instruction into an \f(CW\*(C`L32R\*(C'\fR followed by a \f(CW\*(C`CALLX\*(C'\fR instruction.
8909 The default is \fB\-mno-longcalls\fR.  This option should be used in
8910 programs where the call target can potentially be out of range.  This
8911 option is implemented in the assembler, not the compiler, so the
8912 assembly code generated by \s-1GCC\s0 will still show direct call
8913 instructions\-\-\-look at the disassembled object code to see the actual
8914 instructions.  Note that the assembler will use an indirect call for
8915 every cross-file call, not just those that really will be out of range.
8916 .Sh "Options for Code Generation Conventions"
8917 .IX Subsection "Options for Code Generation Conventions"
8918 These machine-independent options control the interface conventions
8919 used in code generation.
8920 .PP
8921 Most of them have both positive and negative forms; the negative form
8922 of \fB\-ffoo\fR would be \fB\-fno-foo\fR.  In the table below, only
8923 one of the forms is listed\-\-\-the one which is not the default.  You
8924 can figure out the other form by either removing \fBno-\fR or adding
8925 it.
8926 .Ip "\fB\-fexceptions\fR" 4
8927 .IX Item "-fexceptions"
8928 Enable exception handling.  Generates extra code needed to propagate
8929 exceptions.  For some targets, this implies \s-1GCC\s0 will generate frame
8930 unwind information for all functions, which can produce significant data
8931 size overhead, although it does not affect execution.  If you do not
8932 specify this option, \s-1GCC\s0 will enable it by default for languages like
8933 \&\*(C+ which normally require exception handling, and disable it for
8934 languages like C that do not normally require it.  However, you may need
8935 to enable this option when compiling C code that needs to interoperate
8936 properly with exception handlers written in \*(C+.  You may also wish to
8937 disable this option if you are compiling older \*(C+ programs that don't
8938 use exception handling.
8939 .Ip "\fB\-fnon-call-exceptions\fR" 4
8940 .IX Item "-fnon-call-exceptions"
8941 Generate code that allows trapping instructions to throw exceptions.
8942 Note that this requires platform-specific runtime support that does
8943 not exist everywhere.  Moreover, it only allows \fItrapping\fR
8944 instructions to throw exceptions, i.e. memory references or floating
8945 point instructions.  It does not allow exceptions to be thrown from
8946 arbitrary signal handlers such as \f(CW\*(C`SIGALRM\*(C'\fR.
8947 .Ip "\fB\-funwind-tables\fR" 4
8948 .IX Item "-funwind-tables"
8949 Similar to \fB\-fexceptions\fR, except that it will just generate any needed
8950 static data, but will not affect the generated code in any other way.
8951 You will normally not enable this option; instead, a language processor
8952 that needs this handling would enable it on your behalf.
8953 .Ip "\fB\-fasynchronous-unwind-tables\fR" 4
8954 .IX Item "-fasynchronous-unwind-tables"
8955 Generate unwind table in dwarf2 format, if supported by target machine.  The
8956 table is exact at each instruction boundary, so it can be used for stack
8957 unwinding from asynchronous events (such as debugger or garbage collector).
8958 .Ip "\fB\-fpcc-struct-return\fR" 4
8959 .IX Item "-fpcc-struct-return"
8960 Return ``short'' \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in memory like
8961 longer ones, rather than in registers.  This convention is less
8962 efficient, but it has the advantage of allowing intercallability between
8963 GCC-compiled files and files compiled with other compilers, particularly
8964 the Portable C Compiler (pcc).
8965 .Sp
8966 The precise convention for returning structures in memory depends
8967 on the target configuration macros.
8968 .Sp
8969 Short structures and unions are those whose size and alignment match
8970 that of some integer type.
8971 .Sp
8972 \&\fBWarning:\fR code compiled with the \fB\-fpcc-struct-return\fR
8973 switch is not binary compatible with code compiled with the
8974 \&\fB\-freg-struct-return\fR switch.
8975 Use it to conform to a non-default application binary interface.
8976 .Ip "\fB\-freg-struct-return\fR" 4
8977 .IX Item "-freg-struct-return"
8978 Return \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in registers when possible.
8979 This is more efficient for small structures than
8980 \&\fB\-fpcc-struct-return\fR.
8981 .Sp
8982 If you specify neither \fB\-fpcc-struct-return\fR nor
8983 \&\fB\-freg-struct-return\fR, \s-1GCC\s0 defaults to whichever convention is
8984 standard for the target.  If there is no standard convention, \s-1GCC\s0
8985 defaults to \fB\-fpcc-struct-return\fR, except on targets where \s-1GCC\s0 is
8986 the principal compiler.  In those cases, we can choose the standard, and
8987 we chose the more efficient register return alternative.
8988 .Sp
8989 \&\fBWarning:\fR code compiled with the \fB\-freg-struct-return\fR
8990 switch is not binary compatible with code compiled with the
8991 \&\fB\-fpcc-struct-return\fR switch.
8992 Use it to conform to a non-default application binary interface.
8993 .Ip "\fB\-fshort-enums\fR" 4
8994 .IX Item "-fshort-enums"
8995 Allocate to an \f(CW\*(C`enum\*(C'\fR type only as many bytes as it needs for the
8996 declared range of possible values.  Specifically, the \f(CW\*(C`enum\*(C'\fR type
8997 will be equivalent to the smallest integer type which has enough room.
8998 .Sp
8999 \&\fBWarning:\fR the \fB\-fshort-enums\fR switch causes \s-1GCC\s0 to generate
9000 code that is not binary compatible with code generated without that switch.
9001 Use it to conform to a non-default application binary interface.
9002 .Ip "\fB\-fshort-double\fR" 4
9003 .IX Item "-fshort-double"
9004 Use the same size for \f(CW\*(C`double\*(C'\fR as for \f(CW\*(C`float\*(C'\fR.
9005 .Sp
9006 \&\fBWarning:\fR the \fB\-fshort-double\fR switch causes \s-1GCC\s0 to generate
9007 code that is not binary compatible with code generated without that switch.
9008 Use it to conform to a non-default application binary interface.
9009 .Ip "\fB\-fshort-wchar\fR" 4
9010 .IX Item "-fshort-wchar"
9011 Override the underlying type for \fBwchar_t\fR to be \fBshort
9012 unsigned int\fR instead of the default for the target.  This option is
9013 useful for building programs to run under \s-1WINE\s0.
9014 .Sp
9015 \&\fBWarning:\fR the \fB\-fshort-wchar\fR switch causes \s-1GCC\s0 to generate
9016 code that is not binary compatible with code generated without that switch.
9017 Use it to conform to a non-default application binary interface.
9018 .Ip "\fB\-fshared-data\fR" 4
9019 .IX Item "-fshared-data"
9020 Requests that the data and non-\f(CW\*(C`const\*(C'\fR variables of this
9021 compilation be shared data rather than private data.  The distinction
9022 makes sense only on certain operating systems, where shared data is
9023 shared between processes running the same program, while private data
9024 exists in one copy per process.
9025 .Ip "\fB\-fno-common\fR" 4
9026 .IX Item "-fno-common"
9027 In C, allocate even uninitialized global variables in the data section of the
9028 object file, rather than generating them as common blocks.  This has the
9029 effect that if the same variable is declared (without \f(CW\*(C`extern\*(C'\fR) in
9030 two different compilations, you will get an error when you link them.
9031 The only reason this might be useful is if you wish to verify that the
9032 program will work on other systems which always work this way.
9033 .Ip "\fB\-fno-ident\fR" 4
9034 .IX Item "-fno-ident"
9035 Ignore the \fB#ident\fR directive.
9036 .Ip "\fB\-fno-gnu-linker\fR" 4
9037 .IX Item "-fno-gnu-linker"
9038 Do not output global initializations (such as \*(C+ constructors and
9039 destructors) in the form used by the \s-1GNU\s0 linker (on systems where the \s-1GNU\s0
9040 linker is the standard method of handling them).  Use this option when
9041 you want to use a non-GNU linker, which also requires using the
9042 \&\fBcollect2\fR program to make sure the system linker includes
9043 constructors and destructors.  (\fBcollect2\fR is included in the \s-1GCC\s0
9044 distribution.)  For systems which \fImust\fR use \fBcollect2\fR, the
9045 compiler driver \fBgcc\fR is configured to do this automatically.
9046 .Ip "\fB\-finhibit-size-directive\fR" 4
9047 .IX Item "-finhibit-size-directive"
9048 Don't output a \f(CW\*(C`.size\*(C'\fR assembler directive, or anything else that
9049 would cause trouble if the function is split in the middle, and the
9050 two halves are placed at locations far apart in memory.  This option is
9051 used when compiling \fIcrtstuff.c\fR; you should not need to use it
9052 for anything else.
9053 .Ip "\fB\-fverbose-asm\fR" 4
9054 .IX Item "-fverbose-asm"
9055 Put extra commentary information in the generated assembly code to
9056 make it more readable.  This option is generally only of use to those
9057 who actually need to read the generated assembly code (perhaps while
9058 debugging the compiler itself).
9059 .Sp
9060 \&\fB\-fno-verbose-asm\fR, the default, causes the
9061 extra information to be omitted and is useful when comparing two assembler
9062 files.
9063 .Ip "\fB\-fvolatile\fR" 4
9064 .IX Item "-fvolatile"
9065 Consider all memory references through pointers to be volatile.
9066 .Ip "\fB\-fvolatile-global\fR" 4
9067 .IX Item "-fvolatile-global"
9068 Consider all memory references to extern and global data items to
9069 be volatile.  \s-1GCC\s0 does not consider static data items to be volatile
9070 because of this switch.
9071 .Ip "\fB\-fvolatile-static\fR" 4
9072 .IX Item "-fvolatile-static"
9073 Consider all memory references to static data to be volatile.
9074 .Ip "\fB\-fpic\fR" 4
9075 .IX Item "-fpic"
9076 Generate position-independent code (\s-1PIC\s0) suitable for use in a shared
9077 library, if supported for the target machine.  Such code accesses all
9078 constant addresses through a global offset table (\s-1GOT\s0).  The dynamic
9079 loader resolves the \s-1GOT\s0 entries when the program starts (the dynamic
9080 loader is not part of \s-1GCC\s0; it is part of the operating system).  If
9081 the \s-1GOT\s0 size for the linked executable exceeds a machine-specific
9082 maximum size, you get an error message from the linker indicating that
9083 \&\fB\-fpic\fR does not work; in that case, recompile with \fB\-fPIC\fR
9084 instead.  (These maximums are 16k on the m88k, 8k on the Sparc, and 32k
9085 on the m68k and \s-1RS/6000\s0.  The 386 has no such limit.)
9086 .Sp
9087 Position-independent code requires special support, and therefore works
9088 only on certain machines.  For the 386, \s-1GCC\s0 supports \s-1PIC\s0 for System V
9089 but not for the Sun 386i.  Code generated for the \s-1IBM\s0 \s-1RS/6000\s0 is always
9090 position-independent.
9091 .Ip "\fB\-fPIC\fR" 4
9092 .IX Item "-fPIC"
9093 If supported for the target machine, emit position-independent code,
9094 suitable for dynamic linking and avoiding any limit on the size of the
9095 global offset table.  This option makes a difference on the m68k, m88k,
9096 and the Sparc.
9097 .Sp
9098 Position-independent code requires special support, and therefore works
9099 only on certain machines.
9100 .Ip "\fB\-ffixed-\fR\fIreg\fR" 4
9101 .IX Item "-ffixed-reg"
9102 Treat the register named \fIreg\fR as a fixed register; generated code
9103 should never refer to it (except perhaps as a stack pointer, frame
9104 pointer or in some other fixed role).
9105 .Sp
9106 \&\fIreg\fR must be the name of a register.  The register names accepted
9107 are machine-specific and are defined in the \f(CW\*(C`REGISTER_NAMES\*(C'\fR
9108 macro in the machine description macro file.
9109 .Sp
9110 This flag does not have a negative form, because it specifies a
9111 three-way choice.
9112 .Ip "\fB\-fcall-used-\fR\fIreg\fR" 4
9113 .IX Item "-fcall-used-reg"
9114 Treat the register named \fIreg\fR as an allocable register that is
9115 clobbered by function calls.  It may be allocated for temporaries or
9116 variables that do not live across a call.  Functions compiled this way
9117 will not save and restore the register \fIreg\fR.
9118 .Sp
9119 It is an error to used this flag with the frame pointer or stack pointer.
9120 Use of this flag for other registers that have fixed pervasive roles in
9121 the machine's execution model will produce disastrous results.
9122 .Sp
9123 This flag does not have a negative form, because it specifies a
9124 three-way choice.
9125 .Ip "\fB\-fcall-saved-\fR\fIreg\fR" 4
9126 .IX Item "-fcall-saved-reg"
9127 Treat the register named \fIreg\fR as an allocable register saved by
9128 functions.  It may be allocated even for temporaries or variables that
9129 live across a call.  Functions compiled this way will save and restore
9130 the register \fIreg\fR if they use it.
9131 .Sp
9132 It is an error to used this flag with the frame pointer or stack pointer.
9133 Use of this flag for other registers that have fixed pervasive roles in
9134 the machine's execution model will produce disastrous results.
9135 .Sp
9136 A different sort of disaster will result from the use of this flag for
9137 a register in which function values may be returned.
9138 .Sp
9139 This flag does not have a negative form, because it specifies a
9140 three-way choice.
9141 .Ip "\fB\-fpack-struct\fR" 4
9142 .IX Item "-fpack-struct"
9143 Pack all structure members together without holes.
9144 .Sp
9145 \&\fBWarning:\fR the \fB\-fpack-struct\fR switch causes \s-1GCC\s0 to generate
9146 code that is not binary compatible with code generated without that switch.
9147 Additionally, it makes the code suboptimial.
9148 Use it to conform to a non-default application binary interface.
9149 .Ip "\fB\-finstrument-functions\fR" 4
9150 .IX Item "-finstrument-functions"
9151 Generate instrumentation calls for entry and exit to functions.  Just
9152 after function entry and just before function exit, the following
9153 profiling functions will be called with the address of the current
9154 function and its call site.  (On some platforms,
9155 \&\f(CW\*(C`_\|_builtin_return_address\*(C'\fR does not work beyond the current
9156 function, so the call site information may not be available to the
9157 profiling functions otherwise.)
9158 .Sp
9159 .Vb 4
9160 \&        void __cyg_profile_func_enter (void *this_fn,
9161 \&                                       void *call_site);
9162 \&        void __cyg_profile_func_exit  (void *this_fn,
9163 \&                                       void *call_site);
9164 .Ve
9165 The first argument is the address of the start of the current function,
9166 which may be looked up exactly in the symbol table.
9167 .Sp
9168 This instrumentation is also done for functions expanded inline in other
9169 functions.  The profiling calls will indicate where, conceptually, the
9170 inline function is entered and exited.  This means that addressable
9171 versions of such functions must be available.  If all your uses of a
9172 function are expanded inline, this may mean an additional expansion of
9173 code size.  If you use \fBextern inline\fR in your C code, an
9174 addressable version of such functions must be provided.  (This is
9175 normally the case anyways, but if you get lucky and the optimizer always
9176 expands the functions inline, you might have gotten away without
9177 providing static copies.)
9178 .Sp
9179 A function may be given the attribute \f(CW\*(C`no_instrument_function\*(C'\fR, in
9180 which case this instrumentation will not be done.  This can be used, for
9181 example, for the profiling functions listed above, high-priority
9182 interrupt routines, and any functions from which the profiling functions
9183 cannot safely be called (perhaps signal handlers, if the profiling
9184 routines generate output or allocate memory).
9185 .Ip "\fB\-fstack-check\fR" 4
9186 .IX Item "-fstack-check"
9187 Generate code to verify that you do not go beyond the boundary of the
9188 stack.  You should specify this flag if you are running in an
9189 environment with multiple threads, but only rarely need to specify it in
9190 a single-threaded environment since stack overflow is automatically
9191 detected on nearly all systems if there is only one stack.
9192 .Sp
9193 Note that this switch does not actually cause checking to be done; the
9194 operating system must do that.  The switch causes generation of code
9195 to ensure that the operating system sees the stack being extended.
9196 .Ip "\fB\-fstack-limit-register=\fR\fIreg\fR" 4
9197 .IX Item "-fstack-limit-register=reg"
9198 .PD 0
9199 .Ip "\fB\-fstack-limit-symbol=\fR\fIsym\fR" 4
9200 .IX Item "-fstack-limit-symbol=sym"
9201 .Ip "\fB\-fno-stack-limit\fR" 4
9202 .IX Item "-fno-stack-limit"
9203 .PD
9204 Generate code to ensure that the stack does not grow beyond a certain value,
9205 either the value of a register or the address of a symbol.  If the stack
9206 would grow beyond the value, a signal is raised.  For most targets,
9207 the signal is raised before the stack overruns the boundary, so
9208 it is possible to catch the signal without taking special precautions.
9209 .Sp
9210 For instance, if the stack starts at absolute address \fB0x80000000\fR
9211 and grows downwards, you can use the flags
9212 \&\fB\-fstack-limit-symbol=_\|_stack_limit\fR and
9213 \&\fB\-Wl,\-\-defsym,_\|_stack_limit=0x7ffe0000\fR to enforce a stack limit
9214 of 128KB.  Note that this may only work with the \s-1GNU\s0 linker.
9215 .Ip "\fB\-fargument-alias\fR" 4
9216 .IX Item "-fargument-alias"
9217 .PD 0
9218 .Ip "\fB\-fargument-noalias\fR" 4
9219 .IX Item "-fargument-noalias"
9220 .Ip "\fB\-fargument-noalias-global\fR" 4
9221 .IX Item "-fargument-noalias-global"
9222 .PD
9223 Specify the possible relationships among parameters and between
9224 parameters and global data.
9225 .Sp
9226 \&\fB\-fargument-alias\fR specifies that arguments (parameters) may
9227 alias each other and may alias global storage.\fB\-fargument-noalias\fR specifies that arguments do not alias
9228 each other, but may alias global storage.\fB\-fargument-noalias-global\fR specifies that arguments do not
9229 alias each other and do not alias global storage.
9230 .Sp
9231 Each language will automatically use whatever option is required by
9232 the language standard.  You should not need to use these options yourself.
9233 .Ip "\fB\-fleading-underscore\fR" 4
9234 .IX Item "-fleading-underscore"
9235 This option and its counterpart, \fB\-fno-leading-underscore\fR, forcibly
9236 change the way C symbols are represented in the object file.  One use
9237 is to help link with legacy assembly code.
9238 .Sp
9239 \&\fBWarning:\fR the \fB\-fleading-underscore\fR switch causes \s-1GCC\s0 to
9240 generate code that is not binary compatible with code generated without that
9241 switch.  Use it to conform to a non-default application binary interface.
9242 Not all targets provide complete support for this switch.
9243 .SH "ENVIRONMENT"
9244 .IX Header "ENVIRONMENT"
9245 This section describes several environment variables that affect how \s-1GCC\s0
9246 operates.  Some of them work by specifying directories or prefixes to use
9247 when searching for various kinds of files.  Some are used to specify other
9248 aspects of the compilation environment.
9249 .PP
9250 Note that you can also specify places to search using options such as
9251 \&\fB\-B\fR, \fB\-I\fR and \fB\-L\fR.  These
9252 take precedence over places specified using environment variables, which
9253 in turn take precedence over those specified by the configuration of \s-1GCC\s0.
9254 .Ip "\fB\s-1LANG\s0\fR" 4
9255 .IX Item "LANG"
9256 .PD 0
9257 .Ip "\fB\s-1LC_CTYPE\s0\fR" 4
9258 .IX Item "LC_CTYPE"
9259 .Ip "\fB\s-1LC_MESSAGES\s0\fR" 4
9260 .IX Item "LC_MESSAGES"
9261 .Ip "\fB\s-1LC_ALL\s0\fR" 4
9262 .IX Item "LC_ALL"
9263 .PD
9264 These environment variables control the way that \s-1GCC\s0 uses
9265 localization information that allow \s-1GCC\s0 to work with different
9266 national conventions.  \s-1GCC\s0 inspects the locale categories
9267 \&\fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR if it has been configured to do
9268 so.  These locale categories can be set to any value supported by your
9269 installation.  A typical value is \fBen_UK\fR for English in the United
9270 Kingdom.
9271 .Sp
9272 The \fB\s-1LC_CTYPE\s0\fR environment variable specifies character
9273 classification.  \s-1GCC\s0 uses it to determine the character boundaries in
9274 a string; this is needed for some multibyte encodings that contain quote
9275 and escape characters that would otherwise be interpreted as a string
9276 end or escape.
9277 .Sp
9278 The \fB\s-1LC_MESSAGES\s0\fR environment variable specifies the language to
9279 use in diagnostic messages.
9280 .Sp
9281 If the \fB\s-1LC_ALL\s0\fR environment variable is set, it overrides the value
9282 of \fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR; otherwise, \fB\s-1LC_CTYPE\s0\fR
9283 and \fB\s-1LC_MESSAGES\s0\fR default to the value of the \fB\s-1LANG\s0\fR
9284 environment variable.  If none of these variables are set, \s-1GCC\s0
9285 defaults to traditional C English behavior.
9286 .Ip "\fB\s-1TMPDIR\s0\fR" 4
9287 .IX Item "TMPDIR"
9288 If \fB\s-1TMPDIR\s0\fR is set, it specifies the directory to use for temporary
9289 files.  \s-1GCC\s0 uses temporary files to hold the output of one stage of
9290 compilation which is to be used as input to the next stage: for example,
9291 the output of the preprocessor, which is the input to the compiler
9292 proper.
9293 .Ip "\fB\s-1GCC_EXEC_PREFIX\s0\fR" 4
9294 .IX Item "GCC_EXEC_PREFIX"
9295 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is set, it specifies a prefix to use in the
9296 names of the subprograms executed by the compiler.  No slash is added
9297 when this prefix is combined with the name of a subprogram, but you can
9298 specify a prefix that ends with a slash if you wish.
9299 .Sp
9300 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is not set, \s-1GCC\s0 will attempt to figure out
9301 an appropriate prefix to use based on the pathname it was invoked with.
9302 .Sp
9303 If \s-1GCC\s0 cannot find the subprogram using the specified prefix, it
9304 tries looking in the usual places for the subprogram.
9305 .Sp
9306 The default value of \fB\s-1GCC_EXEC_PREFIX\s0\fR is
9307 \&\fI\fIprefix\fI/lib/gcc-lib/\fR where \fIprefix\fR is the value
9308 of \f(CW\*(C`prefix\*(C'\fR when you ran the \fIconfigure\fR script.
9309 .Sp
9310 Other prefixes specified with \fB\-B\fR take precedence over this prefix.
9311 .Sp
9312 This prefix is also used for finding files such as \fIcrt0.o\fR that are
9313 used for linking.
9314 .Sp
9315 In addition, the prefix is used in an unusual way in finding the
9316 directories to search for header files.  For each of the standard
9317 directories whose name normally begins with \fB/usr/local/lib/gcc-lib\fR
9318 (more precisely, with the value of \fB\s-1GCC_INCLUDE_DIR\s0\fR), \s-1GCC\s0 tries
9319 replacing that beginning with the specified prefix to produce an
9320 alternate directory name.  Thus, with \fB\-Bfoo/\fR, \s-1GCC\s0 will search
9321 \&\fIfoo/bar\fR where it would normally search \fI/usr/local/lib/bar\fR.
9322 These alternate directories are searched first; the standard directories
9323 come next.
9324 .Ip "\fB\s-1COMPILER_PATH\s0\fR" 4
9325 .IX Item "COMPILER_PATH"
9326 The value of \fB\s-1COMPILER_PATH\s0\fR is a colon-separated list of
9327 directories, much like \fB\s-1PATH\s0\fR.  \s-1GCC\s0 tries the directories thus
9328 specified when searching for subprograms, if it can't find the
9329 subprograms using \fB\s-1GCC_EXEC_PREFIX\s0\fR.
9330 .Ip "\fB\s-1LIBRARY_PATH\s0\fR" 4
9331 .IX Item "LIBRARY_PATH"
9332 The value of \fB\s-1LIBRARY_PATH\s0\fR is a colon-separated list of
9333 directories, much like \fB\s-1PATH\s0\fR.  When configured as a native compiler,
9334 \&\s-1GCC\s0 tries the directories thus specified when searching for special
9335 linker files, if it can't find them using \fB\s-1GCC_EXEC_PREFIX\s0\fR.  Linking
9336 using \s-1GCC\s0 also uses these directories when searching for ordinary
9337 libraries for the \fB\-l\fR option (but directories specified with
9338 \&\fB\-L\fR come first).
9339 .Ip "\fB\s-1LANG\s0\fR" 4
9340 .IX Item "LANG"
9341 This variable is used to pass locale information to the compiler.  One way in
9342 which this information is used is to determine the character set to be used
9343 when character literals, string literals and comments are parsed in C and \*(C+.
9344 When the compiler is configured to allow multibyte characters,
9345 the following values for \fB\s-1LANG\s0\fR are recognized:
9346 .RS 4
9347 .Ip "\fBC-JIS\fR" 4
9348 .IX Item "C-JIS"
9349 Recognize \s-1JIS\s0 characters.
9350 .Ip "\fBC-SJIS\fR" 4
9351 .IX Item "C-SJIS"
9352 Recognize \s-1SJIS\s0 characters.
9353 .Ip "\fBC-EUCJP\fR" 4
9354 .IX Item "C-EUCJP"
9355 Recognize \s-1EUCJP\s0 characters.
9356 .RE
9357 .RS 4
9358 .Sp
9359 If \fB\s-1LANG\s0\fR is not defined, or if it has some other value, then the
9360 compiler will use mblen and mbtowc as defined by the default locale to
9361 recognize and translate multibyte characters.
9362 .RE
9363 .PP
9364 Some additional environments variables affect the behavior of the
9365 preprocessor.
9366 .Ip "\fB\s-1CPATH\s0\fR" 4
9367 .IX Item "CPATH"
9368 .PD 0
9369 .Ip "\fBC_INCLUDE_PATH\fR" 4
9370 .IX Item "C_INCLUDE_PATH"
9371 .Ip "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4
9372 .IX Item "CPLUS_INCLUDE_PATH"
9373 .Ip "\fB\s-1OBJC_INCLUDE_PATH\s0\fR" 4
9374 .IX Item "OBJC_INCLUDE_PATH"
9375 .PD
9376 Each variable's value is a list of directories separated by a special
9377 character, much like \fB\s-1PATH\s0\fR, in which to look for header files.
9378 The special character, \f(CW\*(C`PATH_SEPARATOR\*(C'\fR, is target-dependent and
9379 determined at \s-1GCC\s0 build time.  For Windows-based targets it is a
9380 semicolon, and for almost all other targets it is a colon.
9381 .Sp
9382 \&\fB\s-1CPATH\s0\fR specifies a list of directories to be searched as if
9383 specified with \fB\-I\fR, but after any paths given with \fB\-I\fR
9384 options on the command line.  The environment variable is used
9385 regardless of which language is being preprocessed.
9386 .Sp
9387 The remaining environment variables apply only when preprocessing the
9388 particular language indicated.  Each specifies a list of directories
9389 to be searched as if specified with \fB\-isystem\fR, but after any
9390 paths given with \fB\-isystem\fR options on the command line.
9391 .Ip "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4
9392 .IX Item "DEPENDENCIES_OUTPUT"
9393 @anchor{\s-1DEPENDENCIES_OUTPUT\s0}
9394 If this variable is set, its value specifies how to output
9395 dependencies for Make based on the non-system header files processed
9396 by the compiler.  System header files are ignored in the dependency
9397 output.
9398 .Sp
9399 The value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, in
9400 which case the Make rules are written to that file, guessing the target
9401 name from the source file name.  Or the value can have the form
9402 \&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written to
9403 file \fIfile\fR using \fItarget\fR as the target name.
9404 .Sp
9405 In other words, this environment variable is equivalent to combining
9406 the options \fB\-MM\fR and \fB\-MF\fR,
9407 with an optional \fB\-MT\fR switch too.
9408 .Ip "\fB\s-1SUNPRO_DEPENDENCIES\s0\fR" 4
9409 .IX Item "SUNPRO_DEPENDENCIES"
9410 This variable is the same as the environment variable
9411 \&\fB\s-1DEPENDENCIES_OUTPUT\s0\fR, except that
9412 system header files are not ignored, so it implies \fB\-M\fR rather
9413 than \fB\-MM\fR.  However, the dependence on the main input file is
9414 omitted.
9415 .SH "BUGS"
9416 .IX Header "BUGS"
9417 For instructions on reporting bugs, see
9418 <\fBhttp://gcc.gnu.org/bugs.html\fR>.  Use of the \fBgccbug\fR
9419 script to report bugs is recommended.
9420 .SH "FOOTNOTES"
9421 .IX Header "FOOTNOTES"
9422 .Ip "1." 4
9423 On some systems, \fBgcc \-shared\fR
9424 needs to build supplementary stub code for constructors to work.  On
9425 multi-libbed systems, \fBgcc \-shared\fR must select the correct support
9426 libraries to link against.  Failing to supply the correct flags may lead
9427 to subtle defects.  Supplying them in cases where they are not necessary
9428 is innocuous.
9429 .SH "SEE ALSO"
9430 .IX Header "SEE ALSO"
9431 \&\fIgpl\fR\|(7), \fIgfdl\fR\|(7), \fIfsf-funding\fR\|(7),
9432 \&\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)
9433 and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIg77\fR, \fIas\fR,
9434 \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
9435 .SH "AUTHOR"
9436 .IX Header "AUTHOR"
9437 See the Info entry for \fBgcc\fR, or
9438 <\fBhttp://gcc.gnu.org/onlinedocs/gcc/Contributors.html\fR>,
9439 for contributors to \s-1GCC\s0.
9440 .SH "COPYRIGHT"
9441 .IX Header "COPYRIGHT"
9442 Copyright (c) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997,
9443 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
9444 .PP
9445 Permission is granted to copy, distribute and/or modify this document
9446 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.1 or
9447 any later version published by the Free Software Foundation; with the
9448 Invariant Sections being ``\s-1GNU\s0 General Public License'' and ``Funding
9449 Free Software'', the Front-Cover texts being (a) (see below), and with
9450 the Back-Cover Texts being (b) (see below).  A copy of the license is
9451 included in the \fIgfdl\fR\|(7) man page.
9452 .PP
9453 (a) The \s-1FSF\s0's Front-Cover Text is:
9454 .PP
9455 .Vb 1
9456 \&     A GNU Manual
9457 .Ve
9458 (b) The \s-1FSF\s0's Back-Cover Text is:
9459 .PP
9460 .Vb 3
9461 \&     You have freedom to copy and modify this GNU Manual, like GNU
9462 \&     software.  Copies published by the Free Software Foundation raise
9463 \&     funds for GNU development.
9464 .Ve