* doc/c-tree.texi, doc/contrib.texi, doc/extend.texi,
[official-gcc.git] / gcc / doc / gcc.1
blobfd33750eb2460f19490852d7a8b233f4895c37c2
1 .\" Automatically generated by Pod::Man version 1.16
2 .\" Mon Jun 25 00:14:37 2001
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
14 .de Sp \" Vertical space (when we can't use .PP)
15 .if t .sp .5v
16 .if n .sp
18 .de Ip \" List item
19 .br
20 .ie \\n(.$>=3 .ne \\$3
21 .el .ne 3
22 .IP "\\$1" \\$2
24 .de Vb \" Begin verbatim text
25 .ft CW
26 .nf
27 .ne \\$1
29 .de Ve \" End verbatim text
30 .ft R
32 .fi
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"
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 /
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'
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 \
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
137 .rm #[ #] #H #V #F C
138 .\" ======================================================================
140 .IX Title "GCC 1"
141 .TH GCC 1 "gcc-3.1" "2001-06-25" "GNU"
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...
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.
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.
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.
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.
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.
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  \-\-target-help  \-\-help\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 
205 \&\-fhosted  \-ffreestanding 
206 \&\-trigraphs  \-traditional  \-traditional-cpp 
207 \&\-fallow-single-precision  \-fcond-mismatch 
208 \&\-fsigned-bitfields  \-fsigned-char 
209 \&\-funsigned-bitfields  \-funsigned-char 
210 \&\-fwritable-strings  \-fshort-wchar\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  \-fno-honor-std 
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  \-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  \-Wdisabled-optimization  \-Werror 
247 \&\-Wfloat-equal  \-Wformat  \-Wformat=2 
248 \&\-Wformat-nonliteral  \-Wformat-security 
249 \&\-Wimplicit  \-Wimplicit-int  
250 \&\-Wimplicit-function-declaration 
251 \&\-Werror-implicit-function-declaration 
252 \&\-Wimport  \-Winline 
253 \&\-Wlarger-than-\fR\fIlen\fR  \fB\-Wlong-long 
254 \&\-Wmain  \-Wmissing-braces  \-Wmissing-declarations 
255 \&\-Wmissing-format-attribute  \-Wmissing-noreturn 
256 \&\-Wmultichar  \-Wno-format-extra-args  \-Wno-format-y2k 
257 \&\-Wno-import  \-Wpacked  \-Wpadded 
258 \&\-Wparentheses  \-Wpointer-arith  \-Wredundant-decls 
259 \&\-Wreturn-type  \-Wsequence-point  \-Wshadow 
260 \&\-Wsign-compare  \-Wswitch  \-Wsystem-headers 
261 \&\-Wtrigraphs  \-Wundef  \-Wuninitialized 
262 \&\-Wunknown-pragmas  \-Wunreachable-code 
263 \&\-Wunused  \-Wunused-function  \-Wunused-label  \-Wunused-parameter 
264 \&\-Wunused-value  \-Wunused-variable  \-Wwrite-strings\fR
265 .Ip "\fIC-only Warning Options\fR" 4
266 .IX Item "C-only Warning Options"
267 \&\fB\-Wbad-function-cast  \-Wmissing-prototypes  \-Wnested-externs 
268 \&\-Wstrict-prototypes  \-Wtraditional\fR
269 .Ip "\fIDebugging Options\fR" 4
270 .IX Item "Debugging Options"
271 \&\fB\-a  \-ax  \-d\fR\fIletters\fR  \fB\-dumpspecs  \-dumpmachine  \-dumpversion 
272 \&\-fdump-unnumbered \-fdump-translation-unit\fR[\fB-\fR\fIn\fR] \fB\-fdump-class-hierarchy\fR[\fB-\fR\fIn\fR] 
273 \&\fB\-fdump-ast-original\fR[\fB-\fR\fIn\fR] \fB\-fdump-ast-optimized\fR[\fB-\fR\fIn\fR] 
274 \&\fB\-fmem-report  \-fpretend-float 
275 \&\-fprofile-arcs  \-ftest-coverage  \-ftime-report 
276 \&\-g  \-g\fR\fIlevel\fR  \fB\-gcoff  \-gdwarf  \-gdwarf-1  \-gdwarf-1+  \-gdwarf-2 
277 \&\-ggdb  \-gstabs  \-gstabs+  \-gxcoff  \-gxcoff+ 
278 \&\-p  \-pg  \-print-file-name=\fR\fIlibrary\fR  \fB\-print-libgcc-file-name 
279 \&\-print-multi-directory  \-print-multi-lib 
280 \&\-print-prog-name=\fR\fIprogram\fR  \fB\-print-search-dirs  \-Q 
281 \&\-save-temps  \-time\fR
282 .Ip "\fIOptimization Options\fR" 4
283 .IX Item "Optimization Options"
284 \&\fB\-falign-functions=\fR\fIn\fR  \fB\-falign-jumps=\fR\fIn\fR 
285 \&\fB\-falign-labels=\fR\fIn\fR  \fB\-falign-loops=\fR\fIn\fR  
286 \&\fB\-fbranch-probabilities  \-fcaller-saves 
287 \&\-fcse-follow-jumps  \-fcse-skip-blocks  \-fdata-sections  \-fdce 
288 \&\-fdelayed-branch  \-fdelete-null-pointer-checks 
289 \&\-fexpensive-optimizations  \-ffast-math  \-ffloat-store 
290 \&\-fforce-addr  \-fforce-mem  \-ffunction-sections 
291 \&\-fgcse  \-fgcse-lm  \-fgcse-sm 
292 \&\-finline-functions  \-finline-limit=\fR\fIn\fR  \fB\-fkeep-inline-functions 
293 \&\-fkeep-static-consts  \-fmove-all-movables 
294 \&\-fno-default-inline  \-fno-defer-pop 
295 \&\-fno-function-cse  \-fno-guess-branch-probability 
296 \&\-fno-inline  \-fno-math-errno  \-fno-peephole  \-fno-peephole2 
297 \&\-funsafe-math-optimizations \-fno-trapping-math 
298 \&\-fomit-frame-pointer  \-foptimize-register-move 
299 \&\-foptimize-sibling-calls  \-freduce-all-givs 
300 \&\-fregmove  \-frename-registers 
301 \&\-frerun-cse-after-loop  \-frerun-loop-opt 
302 \&\-fschedule-insns  \-fschedule-insns2 
303 \&\-fsingle-precision-constant  \-fssa 
304 \&\-fstrength-reduce  \-fstrict-aliasing  \-fthread-jumps  \-ftrapv 
305 \&\-funroll-all-loops  \-funroll-loops  
306 \&\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR
307 \&\fB\-O  \-O0  \-O1  \-O2  \-O3  \-Os\fR
308 .Ip "\fIPreprocessor Options\fR" 4
309 .IX Item "Preprocessor Options"
310 \&\fB\-$  \-A\fR\fIquestion\fR\fB=\fR\fIanswer\fR  \fB\-A-\fR\fIquestion\fR[\fB=\fR\fIanswer\fR] 
311 \&\fB\-C  \-dD  \-dI  \-dM  \-dN 
312 \&\-D\fR\fImacro\fR[\fB=\fR\fIdefn\fR]  \fB\-E  \-H 
313 \&\-idirafter\fR \fIdir\fR 
314 \&\fB\-include\fR \fIfile\fR  \fB\-imacros\fR \fIfile\fR 
315 \&\fB\-iprefix\fR \fIfile\fR  \fB\-iwithprefix\fR \fIdir\fR 
316 \&\fB\-iwithprefixbefore\fR \fIdir\fR  \fB\-isystem\fR \fIdir\fR 
317 \&\fB\-M  \-MM  \-MF  \-MG  \-MP  \-MQ  \-MT  \-nostdinc  \-P  \-remap 
318 \&\-trigraphs  \-undef  \-U\fR\fImacro\fR  \fB\-Wp,\fR\fIoption\fR
319 .Ip "\fIAssembler Option\fR" 4
320 .IX Item "Assembler Option"
321 \&\fB\-Wa,\fR\fIoption\fR
322 .Ip "\fILinker Options\fR" 4
323 .IX Item "Linker Options"
324 \&\fB
325 \&\fR\fIobject-file-name\fR  \fB\-l\fR\fIlibrary\fR 
326 \&\fB\-nostartfiles  \-nodefaultlibs  \-nostdlib 
327 \&\-s  \-static  \-static-libgcc  \-shared  \-shared-libgcc  \-symbolic 
328 \&\-Wl,\fR\fIoption\fR  \fB\-Xlinker\fR \fIoption\fR 
329 \&\fB\-u\fR \fIsymbol\fR
330 .Ip "\fIDirectory Options\fR" 4
331 .IX Item "Directory Options"
332 \&\fB\-B\fR\fIprefix\fR  \fB\-I\fR\fIdir\fR  \fB\-I-  \-L\fR\fIdir\fR  \fB\-specs=\fR\fIfile\fR
333 .Ip "\fITarget Options\fR" 4
334 .IX Item "Target Options"
335 \&\fB\-b\fR \fImachine\fR  \fB\-V\fR \fIversion\fR
336 .Ip "\fIMachine Dependent Options\fR" 4
337 .IX Item "Machine Dependent Options"
338 \&\fIM680x0 Options\fR
340 \&\fB\-m68000  \-m68020  \-m68020\-40  \-m68020\-60  \-m68030  \-m68040 
341 \&\-m68060  \-mcpu32  \-m5200  \-m68881  \-mbitfield  \-mc68000  \-mc68020   
342 \&\-mfpa  \-mnobitfield  \-mrtd  \-mshort  \-msoft-float  \-mpcrel 
343 \&\-malign-int  \-mstrict-align\fR
345 \&\fIM68hc1x Options\fR
347 \&\fB\-m6811  \-m6812  \-m68hc11  \-m68hc12 
348 \&\-mauto-incdec  \-mshort  \-msoft-reg-count=\fR\fIcount\fR
350 \&\fI\s-1VAX\s0 Options\fR
352 \&\fB\-mg  \-mgnu  \-munix\fR
354 \&\fI\s-1SPARC\s0 Options\fR
356 \&\fB\-mcpu=\fR\fIcpu-type\fR 
357 \&\fB\-mtune=\fR\fIcpu-type\fR 
358 \&\fB\-mcmodel=\fR\fIcode-model\fR 
359 \&\fB\-m32  \-m64 
360 \&\-mapp-regs  \-mbroken-saverestore  \-mcypress 
361 \&\-mepilogue  \-mfaster-structs  \-mflat 
362 \&\-mfpu  \-mhard-float  \-mhard-quad-float 
363 \&\-mimpure-text  \-mlive-g0  \-mno-app-regs 
364 \&\-mno-epilogue  \-mno-faster-structs  \-mno-flat  \-mno-fpu 
365 \&\-mno-impure-text  \-mno-stack-bias  \-mno-unaligned-doubles 
366 \&\-msoft-float  \-msoft-quad-float  \-msparclite  \-mstack-bias 
367 \&\-msupersparc  \-munaligned-doubles  \-mv8\fR
369 \&\fIConvex Options\fR
371 \&\fB\-mc1  \-mc2  \-mc32  \-mc34  \-mc38 
372 \&\-margcount  \-mnoargcount 
373 \&\-mlong32  \-mlong64 
374 \&\-mvolatile-cache  \-mvolatile-nocache\fR
376 \&\fI\s-1AMD29K\s0 Options\fR
378 \&\fB\-m29000  \-m29050  \-mbw  \-mnbw  \-mdw  \-mndw 
379 \&\-mlarge  \-mnormal  \-msmall 
380 \&\-mkernel-registers  \-mno-reuse-arg-regs 
381 \&\-mno-stack-check  \-mno-storem-bug 
382 \&\-mreuse-arg-regs  \-msoft-float  \-mstack-check 
383 \&\-mstorem-bug  \-muser-registers\fR
385 \&\fI\s-1ARM\s0 Options\fR
387 \&\fB\-mapcs-frame  \-mno-apcs-frame 
388 \&\-mapcs-26  \-mapcs-32 
389 \&\-mapcs-stack-check  \-mno-apcs-stack-check 
390 \&\-mapcs-float  \-mno-apcs-float 
391 \&\-mapcs-reentrant  \-mno-apcs-reentrant 
392 \&\-msched-prolog  \-mno-sched-prolog 
393 \&\-mlittle-endian  \-mbig-endian  \-mwords-little-endian 
394 \&\-malignment-traps  \-mno-alignment-traps 
395 \&\-msoft-float  \-mhard-float  \-mfpe 
396 \&\-mthumb-interwork  \-mno-thumb-interwork 
397 \&\-mcpu=\fR\fIname\fR  \fB\-march=\fR\fIname\fR  \fB\-mfpe=\fR\fIname\fR  
398 \&\fB\-mstructure-size-boundary=\fR\fIn\fR 
399 \&\fB\-mbsd \-mxopen  \-mno-symrename 
400 \&\-mabort-on-noreturn 
401 \&\-mlong-calls  \-mno-long-calls 
402 \&\-msingle-pic-base  \-mno-single-pic-base 
403 \&\-mpic-register=\fR\fIreg\fR 
404 \&\fB\-mnop-fun-dllimport 
405 \&\-mpoke-function-name 
406 \&\-mthumb  \-marm 
407 \&\-mtpcs-frame  \-mtpcs-leaf-frame 
408 \&\-mcaller-super-interworking  \-mcallee-super-interworking\fR 
410 \&\fI\s-1MN10200\s0 Options\fR
412 \&\fB\-mrelax\fR
414 \&\fI\s-1MN10300\s0 Options\fR
416 \&\fB\-mmult-bug  \-mno-mult-bug 
417 \&\-mam33  \-mno-am33 
418 \&\-mno-crt0  \-mrelax\fR
420 \&\fIM32R/D Options\fR
422 \&\fB\-mcode-model=\fR\fImodel-type\fR  \fB\-msdata=\fR\fIsdata-type\fR 
423 \&\fB\-G\fR \fInum\fR
425 \&\fIM88K Options\fR
427 \&\fB\-m88000  \-m88100  \-m88110  \-mbig-pic 
428 \&\-mcheck-zero-division  \-mhandle-large-shift 
429 \&\-midentify-revision  \-mno-check-zero-division 
430 \&\-mno-ocs-debug-info  \-mno-ocs-frame-position 
431 \&\-mno-optimize-arg-area  \-mno-serialize-volatile 
432 \&\-mno-underscores  \-mocs-debug-info 
433 \&\-mocs-frame-position  \-moptimize-arg-area 
434 \&\-mserialize-volatile  \-mshort-data-\fR\fInum\fR  \fB\-msvr3 
435 \&\-msvr4  \-mtrap-large-shift  \-muse-div-instruction 
436 \&\-mversion-03.00  \-mwarn-passed-structs\fR
438 \&\fI\s-1RS/6000\s0 and PowerPC Options\fR
440 \&\fB\-mcpu=\fR\fIcpu-type\fR 
441 \&\fB\-mtune=\fR\fIcpu-type\fR 
442 \&\fB\-mpower  \-mno-power  \-mpower2  \-mno-power2 
443 \&\-mpowerpc  \-mpowerpc64  \-mno-powerpc 
444 \&\-mpowerpc-gpopt  \-mno-powerpc-gpopt 
445 \&\-mpowerpc-gfxopt  \-mno-powerpc-gfxopt 
446 \&\-mnew-mnemonics  \-mold-mnemonics 
447 \&\-mfull-toc   \-mminimal-toc  \-mno-fop-in-toc  \-mno-sum-in-toc 
448 \&\-m64  \-m32  \-mxl-call  \-mno-xl-call  \-mthreads  \-mpe 
449 \&\-msoft-float  \-mhard-float  \-mmultiple  \-mno-multiple 
450 \&\-mstring  \-mno-string  \-mupdate  \-mno-update 
451 \&\-mfused-madd  \-mno-fused-madd  \-mbit-align  \-mno-bit-align 
452 \&\-mstrict-align  \-mno-strict-align  \-mrelocatable 
453 \&\-mno-relocatable  \-mrelocatable-lib  \-mno-relocatable-lib 
454 \&\-mtoc  \-mno-toc \-mlittle  \-mlittle-endian  \-mbig  \-mbig-endian 
455 \&\-mcall-aix  \-mcall-sysv  \-mprototype  \-mno-prototype 
456 \&\-msim  \-mmvme  \-mads  \-myellowknife  \-memb \-msdata 
457 \&\-msdata=\fR\fIopt\fR  \fB\-mvxworks \-G\fR \fInum\fR
459 \&\fI\s-1RT\s0 Options\fR
461 \&\fB\-mcall-lib-mul  \-mfp-arg-in-fpregs  \-mfp-arg-in-gregs 
462 \&\-mfull-fp-blocks  \-mhc-struct-return  \-min-line-mul 
463 \&\-mminimum-fp-blocks  \-mnohc-struct-return\fR
465 \&\fI\s-1MIPS\s0 Options\fR
467 \&\fB\-mabicalls  \-mcpu=\fR\fIcpu-type\fR 
468 \&\fB\-membedded-data  \-muninit-const-in-rodata 
469 \&\-membedded-pic  \-mfp32  \-mfp64  \-mgas  \-mgp32  \-mgp64 
470 \&\-mgpopt  \-mhalf-pic  \-mhard-float  \-mint64  \-mips1 
471 \&\-mips2  \-mips3  \-mips4  \-mlong64  \-mlong32  \-mlong-calls  \-mmemcpy 
472 \&\-mmips-as  \-mmips-tfile  \-mno-abicalls 
473 \&\-mno-embedded-data  \-mno-uninit-const-in-rodata 
474 \&\-mno-embedded-pic  \-mno-gpopt  \-mno-long-calls 
475 \&\-mno-memcpy  \-mno-mips-tfile  \-mno-rnames  \-mno-stats 
476 \&\-mrnames  \-msoft-float 
477 \&\-m4650  \-msingle-float  \-mmad 
478 \&\-mstats  \-EL  \-EB  \-G\fR \fInum\fR  \fB\-nocpp 
479 \&\-mabi=32  \-mabi=n32  \-mabi=64  \-mabi=eabi 
480 \&\-mfix7000  \-mno-crt0\fR
482 \&\fIi386 Options\fR
484 \&\fB\-mcpu=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
485 \&\fB\-mintel-syntax \-mieee-fp  \-mno-fancy-math-387 
486 \&\-mno-fp-ret-in-387  \-msoft-float  \-msvr3\-shlib 
487 \&\-mno-wide-multiply  \-mrtd  \-malign-double 
488 \&\-mpreferred-stack-boundary=\fR\fInum\fR 
489 \&\fB\-mthreads  \-mno-align-stringops  \-minline-all-stringops 
490 \&\-mpush-args  \-maccumulate-outgoing-args  \-m128bit-long-double 
491 \&\-m96bit-long-double  \-mregparm=\fR\fInum\fR  \fB\-momit-leaf-frame-pointer\fR
493 \&\fI\s-1HPPA\s0 Options\fR
495 \&\fB\-march=\fR\fIarchitecture-type\fR 
496 \&\fB\-mbig-switch  \-mdisable-fpregs  \-mdisable-indexing 
497 \&\-mfast-indirect-calls  \-mgas  \-mjump-in-delay 
498 \&\-mlong-load-store  \-mno-big-switch  \-mno-disable-fpregs 
499 \&\-mno-disable-indexing  \-mno-fast-indirect-calls  \-mno-gas 
500 \&\-mno-jump-in-delay  \-mno-long-load-store 
501 \&\-mno-portable-runtime  \-mno-soft-float 
502 \&\-mno-space-regs  \-msoft-float  \-mpa-risc-1\-0 
503 \&\-mpa-risc-1\-1  \-mpa-risc-2\-0  \-mportable-runtime 
504 \&\-mschedule=\fR\fIcpu-type\fR  \fB\-mspace-regs\fR
506 \&\fIIntel 960 Options\fR
508 \&\fB\-m\fR\fIcpu-type\fR  \fB\-masm-compat  \-mclean-linkage 
509 \&\-mcode-align  \-mcomplex-addr  \-mleaf-procedures 
510 \&\-mic-compat  \-mic2.0\-compat  \-mic3.0\-compat 
511 \&\-mintel-asm  \-mno-clean-linkage  \-mno-code-align 
512 \&\-mno-complex-addr  \-mno-leaf-procedures 
513 \&\-mno-old-align  \-mno-strict-align  \-mno-tail-call 
514 \&\-mnumerics  \-mold-align  \-msoft-float  \-mstrict-align 
515 \&\-mtail-call\fR
517 \&\fI\s-1DEC\s0 Alpha Options\fR
519 \&\fB\-mfp-regs  \-mno-fp-regs  \-mno-soft-float  \-msoft-float 
520 \&\-malpha-as  \-mgas 
521 \&\-mieee  \-mieee-with-inexact  \-mieee-conformant 
522 \&\-mfp-trap-mode=\fR\fImode\fR  \fB\-mfp-rounding-mode=\fR\fImode\fR 
523 \&\fB\-mtrap-precision=\fR\fImode\fR  \fB\-mbuild-constants 
524 \&\-mcpu=\fR\fIcpu-type\fR 
525 \&\fB\-mbwx  \-mno-bwx  \-mcix  \-mno-cix  \-mmax  \-mno-max 
526 \&\-mmemory-latency=\fR\fItime\fR
528 \&\fIClipper Options\fR
530 \&\fB\-mc300  \-mc400\fR
532 \&\fIH8/300 Options\fR
534 \&\fB\-mrelax  \-mh  \-ms  \-mint32  \-malign-300\fR
536 \&\fI\s-1SH\s0 Options\fR
538 \&\fB\-m1  \-m2  \-m3  \-m3e 
539 \&\-m4\-nofpu  \-m4\-single-only  \-m4\-single  \-m4 
540 \&\-mb  \-ml  \-mdalign  \-mrelax 
541 \&\-mbigtable  \-mfmovd  \-mhitachi  \-mnomacsave 
542 \&\-mieee  \-misize  \-mpadstruct  \-mspace 
543 \&\-mprefergot  \-musermode\fR
545 \&\fISystem V Options\fR
547 \&\fB\-Qy  \-Qn  \-YP,\fR\fIpaths\fR  \fB\-Ym,\fR\fIdir\fR
549 \&\fI\s-1ARC\s0 Options\fR
551 \&\fB\-EB  \-EL 
552 \&\-mmangle-cpu  \-mcpu=\fR\fIcpu\fR  \fB\-mtext=\fR\fItext-section\fR 
553 \&\fB\-mdata=\fR\fIdata-section\fR  \fB\-mrodata=\fR\fIreadonly-data-section\fR
555 \&\fITMS320C3x/C4x Options\fR
557 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-mbig  \-msmall  \-mregparm  \-mmemparm 
558 \&\-mfast-fix  \-mmpyi  \-mbk  \-mti  \-mdp-isr-reload 
559 \&\-mrpts=\fR\fIcount\fR  \fB\-mrptb  \-mdb  \-mloop-unsigned 
560 \&\-mparallel-insns  \-mparallel-mpy  \-mpreserve-float\fR
562 \&\fIV850 Options\fR
564 \&\fB\-mlong-calls  \-mno-long-calls  \-mep  \-mno-ep 
565 \&\-mprolog-function  \-mno-prolog-function  \-mspace 
566 \&\-mtda=\fR\fIn\fR  \fB\-msda=\fR\fIn\fR  \fB\-mzda=\fR\fIn\fR 
567 \&\fB\-mv850  \-mbig-switch\fR
569 \&\fI\s-1NS32K\s0 Options\fR
571 \&\fB\-m32032  \-m32332  \-m32532  \-m32081  \-m32381 
572 \&\-mmult-add  \-mnomult-add  \-msoft-float  \-mrtd  \-mnortd 
573 \&\-mregparam  \-mnoregparam  \-msb  \-mnosb 
574 \&\-mbitfield  \-mnobitfield  \-mhimem  \-mnohimem\fR
576 \&\fI\s-1AVR\s0 Options\fR
578 \&\fB\-mmcu=\fR\fImcu\fR  \fB\-msize  \-minit-stack=\fR\fIn\fR  \fB\-mno-interrupts 
579 \&\-mcall-prologues  \-mno-tablejump  \-mtiny-stack\fR
581 \&\fIMCore Options\fR
583 \&\fB\-mhardlit  \-mno-hardlit  \-mdiv  \-mno-div  \-mrelax-immediates 
584 \&\-mno-relax-immediates  \-mwide-bitfields  \-mno-wide-bitfields 
585 \&\-m4byte-functions  \-mno-4byte-functions  \-mcallgraph-data 
586 \&\-mno-callgraph-data  \-mslow-bytes  \-mno-slow-bytes  \-mno-lsim 
587 \&\-mlittle-endian  \-mbig-endian  \-m210  \-m340  \-mstack-increment\fR
589 \&\fI\s-1IA-64\s0 Options\fR
591 \&\fB\-mbig-endian  \-mlittle-endian  \-mgnu-as  \-mgnu-ld  \-mno-pic 
592 \&\-mvolatile-asm-stop  \-mb-step  \-mregister-names  \-mno-sdata 
593 \&\-mconstant-gp  \-mauto-pic  \-minline-divide-min-latency 
594 \&\-minline-divide-max-throughput  \-mno-dwarf2\-asm 
595 \&\-mfixed-range=\fR\fIregister-range\fR
596 .Ip "\fICode Generation Options\fR" 4
597 .IX Item "Code Generation Options"
598 \&\fB\-fcall-saved-\fR\fIreg\fR  \fB\-fcall-used-\fR\fIreg\fR 
599 \&\fB\-ffixed-\fR\fIreg\fR \fB\-fexceptions 
600 \&\-fnon-call-exceptions  \-funwind-tables 
601 \&\-finhibit-size-directive  \-finstrument-functions 
602 \&\-fcheck-memory-usage  \-fprefix-function-name 
603 \&\-fno-common  \-fno-ident  \-fno-gnu-linker 
604 \&\-fpcc-struct-return  \-fpic  \-fPIC 
605 \&\-freg-struct-return  \-fshared-data  \-fshort-enums 
606 \&\-fshort-double  \-fvolatile 
607 \&\-fvolatile-global  \-fvolatile-static 
608 \&\-fverbose-asm  \-fpack-struct  \-fstack-check 
609 \&\-fstack-limit-register=\fR\fIreg\fR  \fB\-fstack-limit-symbol=\fR\fIsym\fR 
610 \&\fB\-fargument-alias  \-fargument-noalias 
611 \&\-fargument-noalias-global  \-fleading-underscore\fR
612 .Sh "Options Controlling the Kind of Output"
613 .IX Subsection "Options Controlling the Kind of Output"
614 Compilation can involve up to four stages: preprocessing, compilation
615 proper, assembly and linking, always in that order.  The first three
616 stages apply to an individual source file, and end by producing an
617 object file; linking combines all the object files (those newly
618 compiled, and those specified as input) into an executable file.
620 For any given input file, the file name suffix determines what kind of
621 compilation is done:
622 .Ip "\fIfile\fR\fB.c\fR" 4
623 .IX Item "file.c"
624 C source code which must be preprocessed.
625 .Ip "\fIfile\fR\fB.i\fR" 4
626 .IX Item "file.i"
627 C source code which should not be preprocessed.
628 .Ip "\fIfile\fR\fB.ii\fR" 4
629 .IX Item "file.ii"
630 \&\*(C+ source code which should not be preprocessed.
631 .Ip "\fIfile\fR\fB.m\fR" 4
632 .IX Item "file.m"
633 Objective-C source code.  Note that you must link with the library
634 \&\fIlibobjc.a\fR to make an Objective-C program work.
635 .Ip "\fIfile\fR\fB.mi\fR" 4
636 .IX Item "file.mi"
637 Objective-C source code which should not be preprocessed.
638 .Ip "\fIfile\fR\fB.h\fR" 4
639 .IX Item "file.h"
640 C header file (not to be compiled or linked).
641 .Ip "\fIfile\fR\fB.cc\fR" 4
642 .IX Item "file.cc"
643 .PD 0
644 .Ip "\fIfile\fR\fB.cp\fR" 4
645 .IX Item "file.cp"
646 .Ip "\fIfile\fR\fB.cxx\fR" 4
647 .IX Item "file.cxx"
648 .Ip "\fIfile\fR\fB.cpp\fR" 4
649 .IX Item "file.cpp"
650 .Ip "\fIfile\fR\fB.c++\fR" 4
651 .IX Item "file.c++"
652 .Ip "\fIfile\fR\fB.C\fR" 4
653 .IX Item "file.C"
655 \&\*(C+ source code which must be preprocessed.  Note that in \fB.cxx\fR,
656 the last two letters must both be literally \fBx\fR.  Likewise,
657 \&\fB.C\fR refers to a literal capital C.
658 .Ip "\fIfile\fR\fB.f\fR" 4
659 .IX Item "file.f"
660 .PD 0
661 .Ip "\fIfile\fR\fB.for\fR" 4
662 .IX Item "file.for"
663 .Ip "\fIfile\fR\fB.FOR\fR" 4
664 .IX Item "file.FOR"
666 Fortran source code which should not be preprocessed.
667 .Ip "\fIfile\fR\fB.F\fR" 4
668 .IX Item "file.F"
669 .PD 0
670 .Ip "\fIfile\fR\fB.fpp\fR" 4
671 .IX Item "file.fpp"
672 .Ip "\fIfile\fR\fB.FPP\fR" 4
673 .IX Item "file.FPP"
675 Fortran source code which must be preprocessed (with the traditional
676 preprocessor).
677 .Ip "\fIfile\fR\fB.r\fR" 4
678 .IX Item "file.r"
679 Fortran source code which must be preprocessed with a \s-1RATFOR\s0
680 preprocessor (not included with \s-1GCC\s0).
681 .Ip "\fIfile\fR\fB.ch\fR" 4
682 .IX Item "file.ch"
683 .PD 0
684 .Ip "\fIfile\fR\fB.chi\fR" 4
685 .IX Item "file.chi"
687 \&\s-1CHILL\s0 source code (preprocessed with the traditional preprocessor).
688 .Ip "\fIfile\fR\fB.s\fR" 4
689 .IX Item "file.s"
690 Assembler code.
691 .Ip "\fIfile\fR\fB.S\fR" 4
692 .IX Item "file.S"
693 Assembler code which must be preprocessed.
694 .Ip "\fIother\fR" 4
695 .IX Item "other"
696 An object file to be fed straight into linking.
697 Any file name with no recognized suffix is treated this way.
699 You can specify the input language explicitly with the \fB\-x\fR option:
700 .Ip "\fB\-x\fR \fIlanguage\fR" 4
701 .IX Item "-x language"
702 Specify explicitly the \fIlanguage\fR for the following input files
703 (rather than letting the compiler choose a default based on the file
704 name suffix).  This option applies to all following input files until
705 the next \fB\-x\fR option.  Possible values for \fIlanguage\fR are:
707 .Vb 6
708 \&        c  c-header  cpp-output
709 \&        c++  c++-cpp-output
710 \&        objective-c  objc-cpp-output
711 \&        assembler  assembler-with-cpp
712 \&        f77  f77-cpp-input  ratfor
713 \&        java  chill
715 .Ip "\fB\-x none\fR" 4
716 .IX Item "-x none"
717 Turn off any specification of a language, so that subsequent files are
718 handled according to their file name suffixes (as they are if \fB\-x\fR
719 has not been used at all).
720 .Ip "\fB\-pass-exit-codes\fR" 4
721 .IX Item "-pass-exit-codes"
722 Normally the \fBgcc\fR program will exit with the code of 1 if any
723 phase of the compiler returns a non-success return code.  If you specify
724 \&\fB\-pass-exit-codes\fR, the \fBgcc\fR program will instead return with
725 numerically highest error produced by any phase that returned an error
726 indication.
728 If you only want some of the stages of compilation, you can use
729 \&\fB\-x\fR (or filename suffixes) to tell \fBgcc\fR where to start, and
730 one of the options \fB\-c\fR, \fB\-S\fR, or \fB\-E\fR to say where
731 \&\fBgcc\fR is to stop.  Note that some combinations (for example,
732 \&\fB\-x cpp-output \-E\fR) instruct \fBgcc\fR to do nothing at all.
733 .Ip "\fB\-c\fR" 4
734 .IX Item "-c"
735 Compile or assemble the source files, but do not link.  The linking
736 stage simply is not done.  The ultimate output is in the form of an
737 object file for each source file.
739 By default, the object file name for a source file is made by replacing
740 the suffix \fB.c\fR, \fB.i\fR, \fB.s\fR, etc., with \fB.o\fR.
742 Unrecognized input files, not requiring compilation or assembly, are
743 ignored.
744 .Ip "\fB\-S\fR" 4
745 .IX Item "-S"
746 Stop after the stage of compilation proper; do not assemble.  The output
747 is in the form of an assembler code file for each non-assembler input
748 file specified.
750 By default, the assembler file name for a source file is made by
751 replacing the suffix \fB.c\fR, \fB.i\fR, etc., with \fB.s\fR.
753 Input files that don't require compilation are ignored.
754 .Ip "\fB\-E\fR" 4
755 .IX Item "-E"
756 Stop after the preprocessing stage; do not run the compiler proper.  The
757 output is in the form of preprocessed source code, which is sent to the
758 standard output.
760 Input files which don't require preprocessing are ignored.
761 .Ip "\fB\-o\fR \fIfile\fR" 4
762 .IX Item "-o file"
763 Place output in file \fIfile\fR.  This applies regardless to whatever
764 sort of output is being produced, whether it be an executable file,
765 an object file, an assembler file or preprocessed C code.
767 Since only one output file can be specified, it does not make sense to
768 use \fB\-o\fR when compiling more than one input file, unless you are
769 producing an executable file as output.
771 If \fB\-o\fR is not specified, the default is to put an executable file
772 in \fIa.out\fR, the object file for \fI\fIsource\fI.\fIsuffix\fI\fR in
773 \&\fI\fIsource\fI.o\fR, its assembler file in \fI\fIsource\fI.s\fR, and
774 all preprocessed C source on standard output.
775 .Ip "\fB\-v\fR" 4
776 .IX Item "-v"
777 Print (on standard error output) the commands executed to run the stages
778 of compilation.  Also print the version number of the compiler driver
779 program and of the preprocessor and the compiler proper.
780 .Ip "\fB\-pipe\fR" 4
781 .IX Item "-pipe"
782 Use pipes rather than temporary files for communication between the
783 various stages of compilation.  This fails to work on some systems where
784 the assembler is unable to read from a pipe; but the \s-1GNU\s0 assembler has
785 no trouble.
786 .Ip "\fB\*(--help\fR" 4
787 .IX Item "help"
788 Print (on the standard output) a description of the command line options
789 understood by \fBgcc\fR.  If the \fB\-v\fR option is also specified
790 then \fB\*(--help\fR will also be passed on to the various processes
791 invoked by \fBgcc\fR, so that they can display the command line options
792 they accept.  If the \fB\-W\fR option is also specified then command
793 line options which have no documentation associated with them will also
794 be displayed.
795 .Ip "\fB\*(--target-help\fR" 4
796 .IX Item "target-help"
797 Print (on the standard output) a description of target specific command
798 line options for each tool.
799 .Sh "Compiling \*(C+ Programs"
800 .IX Subsection "Compiling  Programs"
801 \&\*(C+ source files conventionally use one of the suffixes \fB.C\fR,
802 \&\fB.cc\fR, \fB.cpp\fR, \fB.c++\fR, \fB.cp\fR, or \fB.cxx\fR;
803 preprocessed \*(C+ files use the suffix \fB.ii\fR.  \s-1GCC\s0 recognizes
804 files with these names and compiles them as \*(C+ programs even if you
805 call the compiler the same way as for compiling C programs (usually with
806 the name \fBgcc\fR).
808 However, \*(C+ programs often require class libraries as well as a
809 compiler that understands the \*(C+ language\-\-\-and under some
810 circumstances, you might want to compile programs from standard input,
811 or otherwise without a suffix that flags them as \*(C+ programs.
812 \&\fBg++\fR is a program that calls \s-1GCC\s0 with the default language
813 set to \*(C+, and automatically specifies linking against the \*(C+
814 library.  On many systems, \fBg++\fR is also
815 installed with the name \fBc++\fR.
817 When you compile \*(C+ programs, you may specify many of the same
818 command-line options that you use for compiling programs in any
819 language; or command-line options meaningful for C and related
820 languages; or options that are meaningful only for \*(C+ programs.
821 .Sh "Options Controlling C Dialect"
822 .IX Subsection "Options Controlling C Dialect"
823 The following options control the dialect of C (or languages derived
824 from C, such as \*(C+ and Objective-C) that the compiler accepts:
825 .Ip "\fB\-ansi\fR" 4
826 .IX Item "-ansi"
827 In C mode, support all \s-1ISO\s0 C89 programs.  In \*(C+ mode,
828 remove \s-1GNU\s0 extensions that conflict with \s-1ISO\s0 \*(C+.
830 This turns off certain features of \s-1GCC\s0 that are incompatible with \s-1ISO\s0
831 C (when compiling C code), or of standard \*(C+ (when compiling \*(C+ code),
832 such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, and
833 predefined macros such as \f(CW\*(C`unix\*(C'\fR and \f(CW\*(C`vax\*(C'\fR that identify the
834 type of system you are using.  It also enables the undesirable and
835 rarely used \s-1ISO\s0 trigraph feature.  For the C compiler,
836 it disables recognition of \*(C+ style \fB//\fR comments as well as
837 the \f(CW\*(C`inline\*(C'\fR keyword.
839 The alternate keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_extension_\|_\*(C'\fR,
840 \&\f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR continue to work despite
841 \&\fB\-ansi\fR.  You would not want to use them in an \s-1ISO\s0 C program, of
842 course, but it is useful to put them in header files that might be included
843 in compilations done with \fB\-ansi\fR.  Alternate predefined macros
844 such as \f(CW\*(C`_\|_unix_\|_\*(C'\fR and \f(CW\*(C`_\|_vax_\|_\*(C'\fR are also available, with or
845 without \fB\-ansi\fR.
847 The \fB\-ansi\fR option does not cause non-ISO programs to be
848 rejected gratuitously.  For that, \fB\-pedantic\fR is required in
849 addition to \fB\-ansi\fR.  
851 The macro \f(CW\*(C`_\|_STRICT_ANSI_\|_\*(C'\fR is predefined when the \fB\-ansi\fR
852 option is used.  Some header files may notice this macro and refrain
853 from declaring certain functions or defining certain macros that the
854 \&\s-1ISO\s0 standard doesn't call for; this is to avoid interfering with any
855 programs that might use these names for other things.
857 Functions which would normally be built in but do not have semantics
858 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
859 functions with \fB\-ansi\fR is used.  
860 .Ip "\fB\-std=\fR" 4
861 .IX Item "-std="
862 Determine the language standard.  A value for this option must be provided;
863 possible values are
864 .RS 4
865 .Ip "\fBiso9899:1990\fR" 4
866 .IX Item "iso9899:1990"
867 Same as \fB\-ansi\fR
868 .Ip "\fBiso9899:199409\fR" 4
869 .IX Item "iso9899:199409"
870 \&\s-1ISO\s0 C as modified in amend. 1
871 .Ip "\fBiso9899:1999\fR" 4
872 .IX Item "iso9899:1999"
873 \&\s-1ISO\s0 C99.  Note that this standard is not yet fully supported; see
874 <\fBhttp://gcc.gnu.org/c99status.html\fR> for more information.
875 .Ip "\fBc89\fR" 4
876 .IX Item "c89"
877 same as \fB\-std=iso9899:1990\fR
878 .Ip "\fBc99\fR" 4
879 .IX Item "c99"
880 same as \fB\-std=iso9899:1999\fR
881 .Ip "\fBgnu89\fR" 4
882 .IX Item "gnu89"
883 default, iso9899:1990 + gnu extensions
884 .Ip "\fBgnu99\fR" 4
885 .IX Item "gnu99"
886 iso9899:1999 + gnu extensions
887 .Ip "\fBiso9899:199x\fR" 4
888 .IX Item "iso9899:199x"
889 same as \fB\-std=iso9899:1999\fR, deprecated
890 .Ip "\fBc9x\fR" 4
891 .IX Item "c9x"
892 same as \fB\-std=iso9899:1999\fR, deprecated
893 .Ip "\fBgnu9x\fR" 4
894 .IX Item "gnu9x"
895 same as \fB\-std=gnu99\fR, deprecated
897 .RS 4
899 Even when this option is not specified, you can still use some of the
900 features of newer standards in so far as they do not conflict with
901 previous C standards.  For example, you may use \f(CW\*(C`_\|_restrict_\|_\*(C'\fR even
902 when \fB\-std=c99\fR is not specified.
904 The \fB\-std\fR options specifying some version of \s-1ISO\s0 C have the same
905 effects as \fB\-ansi\fR, except that features that were not in \s-1ISO\s0 C89
906 but are in the specified version (for example, \fB//\fR comments and
907 the \f(CW\*(C`inline\*(C'\fR keyword in \s-1ISO\s0 C99) are not disabled.
909 .Ip "\fB\-aux-info\fR \fIfilename\fR" 4
910 .IX Item "-aux-info filename"
911 Output to the given filename prototyped declarations for all functions
912 declared and/or defined in a translation unit, including those in header
913 files.  This option is silently ignored in any language other than C.
915 Besides declarations, the file indicates, in comments, the origin of
916 each declaration (source file and line), whether the declaration was
917 implicit, prototyped or unprototyped (\fBI\fR, \fBN\fR for new or
918 \&\fBO\fR for old, respectively, in the first character after the line
919 number and the colon), and whether it came from a declaration or a
920 definition (\fBC\fR or \fBF\fR, respectively, in the following
921 character).  In the case of function definitions, a K&R-style list of
922 arguments followed by their declarations is also provided, inside
923 comments, after the declaration.
924 .Ip "\fB\-fno-asm\fR" 4
925 .IX Item "-fno-asm"
926 Do not recognize \f(CW\*(C`asm\*(C'\fR, \f(CW\*(C`inline\*(C'\fR or \f(CW\*(C`typeof\*(C'\fR as a
927 keyword, so that code can use these words as identifiers.  You can use
928 the keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR
929 instead.  \fB\-ansi\fR implies \fB\-fno-asm\fR.
931 In \*(C+, this switch only affects the \f(CW\*(C`typeof\*(C'\fR keyword, since
932 \&\f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`inline\*(C'\fR are standard keywords.  You may want to
933 use the \fB\-fno-gnu-keywords\fR flag instead, which has the same
934 effect.  In C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this
935 switch only affects the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, since
936 \&\f(CW\*(C`inline\*(C'\fR is a standard keyword in \s-1ISO\s0 C99.
937 .Ip "\fB\-fno-builtin\fR" 4
938 .IX Item "-fno-builtin"
939 Don't recognize built-in functions that do not begin with
940 \&\fB_\|_builtin_\fR as prefix.  
942 \&\s-1GCC\s0 normally generates special code to handle certain built-in functions
943 more efficiently; for instance, calls to \f(CW\*(C`alloca\*(C'\fR may become single
944 instructions that adjust the stack directly, and calls to \f(CW\*(C`memcpy\*(C'\fR
945 may become inline copy loops.  The resulting code is often both smaller
946 and faster, but since the function calls no longer appear as such, you
947 cannot set a breakpoint on those calls, nor can you change the behavior
948 of the functions by linking with a different library.
950 In \*(C+, \fB\-fno-builtin\fR is always in effect.  The \fB\-fbuiltin\fR
951 option has no effect.  Therefore, in \*(C+, the only way to get the
952 optimization benefits of built-in functions is to call the function
953 using the \fB_\|_builtin_\fR prefix.  The \s-1GNU\s0 \*(C+ Standard Library uses
954 built-in functions to implement many functions (like
955 \&\f(CW\*(C`std::strchr\*(C'\fR), so that you automatically get efficient code.
956 .Ip "\fB\-fhosted\fR" 4
957 .IX Item "-fhosted"
958 Assert that compilation takes place in a hosted environment.  This implies
959 \&\fB\-fbuiltin\fR.  A hosted environment is one in which the
960 entire standard library is available, and in which \f(CW\*(C`main\*(C'\fR has a return
961 type of \f(CW\*(C`int\*(C'\fR.  Examples are nearly everything except a kernel.
962 This is equivalent to \fB\-fno-freestanding\fR.
963 .Ip "\fB\-ffreestanding\fR" 4
964 .IX Item "-ffreestanding"
965 Assert that compilation takes place in a freestanding environment.  This
966 implies \fB\-fno-builtin\fR.  A freestanding environment
967 is one in which the standard library may not exist, and program startup may
968 not necessarily be at \f(CW\*(C`main\*(C'\fR.  The most obvious example is an \s-1OS\s0 kernel.
969 This is equivalent to \fB\-fno-hosted\fR.
970 .Ip "\fB\-trigraphs\fR" 4
971 .IX Item "-trigraphs"
972 Support \s-1ISO\s0 C trigraphs.  The \fB\-ansi\fR option (and \fB\-std\fR
973 options for strict \s-1ISO\s0 C conformance) implies \fB\-trigraphs\fR.
974 .Ip "\fB\-traditional\fR" 4
975 .IX Item "-traditional"
976 Attempt to support some aspects of traditional C compilers.
977 Specifically:
978 .RS 4
979 .Ip "\(bu" 4
980 All \f(CW\*(C`extern\*(C'\fR declarations take effect globally even if they
981 are written inside of a function definition.  This includes implicit
982 declarations of functions.
983 .Ip "\(bu" 4
984 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
985 and \f(CW\*(C`volatile\*(C'\fR are not recognized.  (You can still use the
986 alternative keywords such as \f(CW\*(C`_\|_typeof_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR, and
987 so on.)
988 .Ip "\(bu" 4
989 Comparisons between pointers and integers are always allowed.
990 .Ip "\(bu" 4
991 Integer types \f(CW\*(C`unsigned short\*(C'\fR and \f(CW\*(C`unsigned char\*(C'\fR promote
992 to \f(CW\*(C`unsigned int\*(C'\fR.
993 .Ip "\(bu" 4
994 Out-of-range floating point literals are not an error.
995 .Ip "\(bu" 4
996 Certain constructs which \s-1ISO\s0 regards as a single invalid preprocessing
997 number, such as \fB0xe-0xd\fR, are treated as expressions instead.
998 .Ip "\(bu" 4
999 String ``constants'' are not necessarily constant; they are stored in
1000 writable space, and identical looking constants are allocated
1001 separately.  (This is the same as the effect of
1002 \&\fB\-fwritable-strings\fR.)
1003 .Ip "\(bu" 4
1004 All automatic variables not declared \f(CW\*(C`register\*(C'\fR are preserved by
1005 \&\f(CW\*(C`longjmp\*(C'\fR.  Ordinarily, \s-1GNU\s0 C follows \s-1ISO\s0 C: automatic variables
1006 not declared \f(CW\*(C`volatile\*(C'\fR may be clobbered.
1007 .Ip "\(bu" 4
1008 The character escape sequences \fB\ex\fR and \fB\ea\fR evaluate as the
1009 literal characters \fBx\fR and \fBa\fR respectively.  Without
1010 \&\fB\-traditional\fR, \fB\ex\fR is a prefix for the hexadecimal
1011 representation of a character, and \fB\ea\fR produces a bell.
1013 .RS 4
1015 You may wish to use \fB\-fno-builtin\fR as well as \fB\-traditional\fR
1016 if your program uses names that are normally \s-1GNU\s0 C built-in functions for
1017 other purposes of its own.
1019 You cannot use \fB\-traditional\fR if you include any header files that
1020 rely on \s-1ISO\s0 C features.  Some vendors are starting to ship systems with
1021 \&\s-1ISO\s0 C header files and you cannot use \fB\-traditional\fR on such
1022 systems to compile files that include any system headers.
1024 The \fB\-traditional\fR option also enables \fB\-traditional-cpp\fR,
1025 which is described next.
1027 .Ip "\fB\-traditional-cpp\fR" 4
1028 .IX Item "-traditional-cpp"
1029 Attempt to support some aspects of traditional C preprocessors.
1030 Specifically:
1031 .RS 4
1032 .Ip "\(bu" 4
1033 Comments convert to nothing at all, rather than to a space.  This allows
1034 traditional token concatenation.
1035 .Ip "\(bu" 4
1036 In a preprocessing directive, the \fB#\fR symbol must appear as the first
1037 character of a line.
1038 .Ip "\(bu" 4
1039 Macro arguments are recognized within string constants in a macro
1040 definition (and their values are stringified, though without additional
1041 quote marks, when they appear in such a context).  The preprocessor
1042 always considers a string constant to end at a newline.
1043 .Ip "\(bu" 4
1044 The predefined macro \f(CW\*(C`_\|_STDC_\|_\*(C'\fR is not defined when you use
1045 \&\fB\-traditional\fR, but \f(CW\*(C`_\|_GNUC_\|_\*(C'\fR is (since the \s-1GNU\s0 extensions
1046 which \f(CW\*(C`_\|_GNUC_\|_\*(C'\fR indicates are not affected by
1047 \&\fB\-traditional\fR).  If you need to write header files that work
1048 differently depending on whether \fB\-traditional\fR is in use, by
1049 testing both of these predefined macros you can distinguish four
1050 situations: \s-1GNU\s0 C, traditional \s-1GNU\s0 C, other \s-1ISO\s0 C compilers, and other
1051 old C compilers.  The predefined macro \f(CW\*(C`_\|_STDC_VERSION_\|_\*(C'\fR is also
1052 not defined when you use \fB\-traditional\fR.  
1053 .Ip "\(bu" 4
1054 The preprocessor considers a string constant to end at a newline (unless
1055 the newline is escaped with \fB\e\fR).  (Without \fB\-traditional\fR,
1056 string constants can contain the newline character as typed.)
1058 .RS 4
1060 .Ip "\fB\-fcond-mismatch\fR" 4
1061 .IX Item "-fcond-mismatch"
1062 Allow conditional expressions with mismatched types in the second and
1063 third arguments.  The value of such an expression is void.  This option
1064 is not supported for \*(C+.
1065 .Ip "\fB\-funsigned-char\fR" 4
1066 .IX Item "-funsigned-char"
1067 Let the type \f(CW\*(C`char\*(C'\fR be unsigned, like \f(CW\*(C`unsigned char\*(C'\fR.
1069 Each kind of machine has a default for what \f(CW\*(C`char\*(C'\fR should
1070 be.  It is either like \f(CW\*(C`unsigned char\*(C'\fR by default or like
1071 \&\f(CW\*(C`signed char\*(C'\fR by default.
1073 Ideally, a portable program should always use \f(CW\*(C`signed char\*(C'\fR or
1074 \&\f(CW\*(C`unsigned char\*(C'\fR when it depends on the signedness of an object.
1075 But many programs have been written to use plain \f(CW\*(C`char\*(C'\fR and
1076 expect it to be signed, or expect it to be unsigned, depending on the
1077 machines they were written for.  This option, and its inverse, let you
1078 make such a program work with the opposite default.
1080 The type \f(CW\*(C`char\*(C'\fR is always a distinct type from each of
1081 \&\f(CW\*(C`signed char\*(C'\fR or \f(CW\*(C`unsigned char\*(C'\fR, even though its behavior
1082 is always just like one of those two.
1083 .Ip "\fB\-fsigned-char\fR" 4
1084 .IX Item "-fsigned-char"
1085 Let the type \f(CW\*(C`char\*(C'\fR be signed, like \f(CW\*(C`signed char\*(C'\fR.
1087 Note that this is equivalent to \fB\-fno-unsigned-char\fR, which is
1088 the negative form of \fB\-funsigned-char\fR.  Likewise, the option
1089 \&\fB\-fno-signed-char\fR is equivalent to \fB\-funsigned-char\fR.
1090 .Ip "\fB\-fsigned-bitfields\fR" 4
1091 .IX Item "-fsigned-bitfields"
1092 .PD 0
1093 .Ip "\fB\-funsigned-bitfields\fR" 4
1094 .IX Item "-funsigned-bitfields"
1095 .Ip "\fB\-fno-signed-bitfields\fR" 4
1096 .IX Item "-fno-signed-bitfields"
1097 .Ip "\fB\-fno-unsigned-bitfields\fR" 4
1098 .IX Item "-fno-unsigned-bitfields"
1100 These options control whether a bit-field is signed or unsigned, when the
1101 declaration does not use either \f(CW\*(C`signed\*(C'\fR or \f(CW\*(C`unsigned\*(C'\fR.  By
1102 default, such a bit-field is signed, because this is consistent: the
1103 basic integer types such as \f(CW\*(C`int\*(C'\fR are signed types.
1105 However, when \fB\-traditional\fR is used, bit-fields are all unsigned
1106 no matter what.
1107 .Ip "\fB\-fwritable-strings\fR" 4
1108 .IX Item "-fwritable-strings"
1109 Store string constants in the writable data segment and don't uniquize
1110 them.  This is for compatibility with old programs which assume they can
1111 write into string constants.  The option \fB\-traditional\fR also has
1112 this effect.
1114 Writing into string constants is a very bad idea; ``constants'' should
1115 be constant.
1116 .Ip "\fB\-fallow-single-precision\fR" 4
1117 .IX Item "-fallow-single-precision"
1118 Do not promote single precision math operations to double precision,
1119 even when compiling with \fB\-traditional\fR.
1121 Traditional K&R C promotes all floating point operations to double
1122 precision, regardless of the sizes of the operands.   On the
1123 architecture for which you are compiling, single precision may be faster
1124 than double precision.   If you must use \fB\-traditional\fR, but want
1125 to use single precision operations when the operands are single
1126 precision, use this option.   This option has no effect when compiling
1127 with \s-1ISO\s0 or \s-1GNU\s0 C conventions (the default).
1128 .Ip "\fB\-fshort-wchar\fR" 4
1129 .IX Item "-fshort-wchar"
1130 Override the underlying type for \fBwchar_t\fR to be \fBshort
1131 unsigned int\fR instead of the default for the target.  This option is
1132 useful for building programs to run under \s-1WINE\s0.
1133 .Sh "Options Controlling \*(C+ Dialect"
1134 .IX Subsection "Options Controlling  Dialect"
1135 This section describes the command-line options that are only meaningful
1136 for \*(C+ programs; but you can also use most of the \s-1GNU\s0 compiler options
1137 regardless of what language your program is in.  For example, you
1138 might compile a file \f(CW\*(C`firstClass.C\*(C'\fR like this:
1140 .Vb 1
1141 \&        g++ -g -frepo -O -c firstClass.C
1143 In this example, only \fB\-frepo\fR is an option meant
1144 only for \*(C+ programs; you can use the other options with any
1145 language supported by \s-1GCC\s0.
1147 Here is a list of options that are \fIonly\fR for compiling \*(C+ programs:
1148 .Ip "\fB\-fno-access-control\fR" 4
1149 .IX Item "-fno-access-control"
1150 Turn off all access checking.  This switch is mainly useful for working
1151 around bugs in the access control code.
1152 .Ip "\fB\-fcheck-new\fR" 4
1153 .IX Item "-fcheck-new"
1154 Check that the pointer returned by \f(CW\*(C`operator new\*(C'\fR is non-null
1155 before attempting to modify the storage allocated.  The current Working
1156 Paper requires that \f(CW\*(C`operator new\*(C'\fR never return a null pointer, so
1157 this check is normally unnecessary.
1159 An alternative to using this option is to specify that your
1160 \&\f(CW\*(C`operator new\*(C'\fR does not throw any exceptions; if you declare it
1161 \&\fB\f(BIthrow()\fB\fR, g++ will check the return value.  See also \fBnew
1162 (nothrow)\fR.
1163 .Ip "\fB\-fconserve-space\fR" 4
1164 .IX Item "-fconserve-space"
1165 Put uninitialized or runtime-initialized global variables into the
1166 common segment, as C does.  This saves space in the executable at the
1167 cost of not diagnosing duplicate definitions.  If you compile with this
1168 flag and your program mysteriously crashes after \f(CW\*(C`main()\*(C'\fR has
1169 completed, you may have an object that is being destroyed twice because
1170 two definitions were merged.
1172 This option is no longer useful on most targets, now that support has
1173 been added for putting variables into \s-1BSS\s0 without making them common.
1174 .Ip "\fB\-fno-const-strings\fR" 4
1175 .IX Item "-fno-const-strings"
1176 Give string constants type \f(CW\*(C`char *\*(C'\fR instead of type \f(CW\*(C`const
1177 char *\*(C'\fR.  By default, G++ uses type \f(CW\*(C`const char *\*(C'\fR as required by
1178 the standard.  Even if you use \fB\-fno-const-strings\fR, you cannot
1179 actually modify the value of a string constant, unless you also use
1180 \&\fB\-fwritable-strings\fR.
1182 This option might be removed in a future release of G++.  For maximum
1183 portability, you should structure your code so that it works with
1184 string constants that have type \f(CW\*(C`const char *\*(C'\fR.
1185 .Ip "\fB\-fdollars-in-identifiers\fR" 4
1186 .IX Item "-fdollars-in-identifiers"
1187 Accept \fB$\fR in identifiers.  You can also explicitly prohibit use of
1188 \&\fB$\fR with the option \fB\-fno-dollars-in-identifiers\fR.  (\s-1GNU\s0 C allows
1189 \&\fB$\fR by default on most target systems, but there are a few exceptions.)
1190 Traditional C allowed the character \fB$\fR to form part of
1191 identifiers.  However, \s-1ISO\s0 C and \*(C+ forbid \fB$\fR in identifiers.
1192 .Ip "\fB\-fno-elide-constructors\fR" 4
1193 .IX Item "-fno-elide-constructors"
1194 The \*(C+ standard allows an implementation to omit creating a temporary
1195 which is only used to initialize another object of the same type.
1196 Specifying this option disables that optimization, and forces g++ to
1197 call the copy constructor in all cases.
1198 .Ip "\fB\-fno-enforce-eh-specs\fR" 4
1199 .IX Item "-fno-enforce-eh-specs"
1200 Don't check for violation of exception specifications at runtime.  This
1201 option violates the \*(C+ standard, but may be useful for reducing code
1202 size in production builds, much like defining \fB\s-1NDEBUG\s0\fR.  The compiler
1203 will still optimize based on the exception specifications.
1204 .Ip "\fB\-fexternal-templates\fR" 4
1205 .IX Item "-fexternal-templates"
1206 Cause template instantiations to obey \fB#pragma interface\fR and
1207 \&\fBimplementation\fR; template instances are emitted or not according
1208 to the location of the template definition.  
1210 This option is deprecated.
1211 .Ip "\fB\-falt-external-templates\fR" 4
1212 .IX Item "-falt-external-templates"
1213 Similar to \fB\-fexternal-templates\fR, but template instances are emitted or
1214 not according to the place where they are first instantiated.
1216 This option is deprecated.
1217 .Ip "\fB\-ffor-scope\fR" 4
1218 .IX Item "-ffor-scope"
1219 .PD 0
1220 .Ip "\fB\-fno-for-scope\fR" 4
1221 .IX Item "-fno-for-scope"
1223 If \fB\-ffor-scope\fR is specified, the scope of variables declared in
1224 a \fIfor-init-statement\fR is limited to the \fBfor\fR loop itself,
1225 as specified by the \*(C+ standard.
1226 If \fB\-fno-for-scope\fR is specified, the scope of variables declared in
1227 a \fIfor-init-statement\fR extends to the end of the enclosing scope,
1228 as was the case in old versions of gcc, and other (traditional)
1229 implementations of \*(C+.
1231 The default if neither flag is given to follow the standard,
1232 but to allow and give a warning for old-style code that would
1233 otherwise be invalid, or have different behavior.
1234 .Ip "\fB\-fno-gnu-keywords\fR" 4
1235 .IX Item "-fno-gnu-keywords"
1236 Do not recognize \f(CW\*(C`typeof\*(C'\fR as a keyword, so that code can use this
1237 word as an identifier. You can use the keyword \f(CW\*(C`_\|_typeof_\|_\*(C'\fR instead.
1238 \&\fB\-ansi\fR implies \fB\-fno-gnu-keywords\fR.
1239 .Ip "\fB\-fno-honor-std\fR" 4
1240 .IX Item "-fno-honor-std"
1241 Ignore \f(CW\*(C`namespace std\*(C'\fR, instead of treating it as a real namespace.
1242 With this switch, the compiler will ignore
1243 \&\f(CW\*(C`namespace\-declarations\*(C'\fR, \f(CW\*(C`using\-declarations\*(C'\fR,
1244 \&\f(CW\*(C`using\-directives\*(C'\fR, and \f(CW\*(C`namespace\-names\*(C'\fR, if they involve
1245 \&\f(CW\*(C`std\*(C'\fR.  
1247 This option is only useful if you have manually compiled the \*(C+
1248 run-time library with the same switch.  Otherwise, your programs will
1249 not link.  The use of this option is not recommended, and the option may
1250 be removed from a future version of G++.
1251 .Ip "\fB\-fno-implicit-templates\fR" 4
1252 .IX Item "-fno-implicit-templates"
1253 Never emit code for non-inline templates which are instantiated
1254 implicitly (i.e. by use); only emit code for explicit instantiations.
1255 .Ip "\fB\-fno-implicit-inline-templates\fR" 4
1256 .IX Item "-fno-implicit-inline-templates"
1257 Don't emit code for implicit instantiations of inline templates, either.
1258 The default is to handle inlines differently so that compiles with and
1259 without optimization will need the same set of explicit instantiations.
1260 .Ip "\fB\-fno-implement-inlines\fR" 4
1261 .IX Item "-fno-implement-inlines"
1262 To save space, do not emit out-of-line copies of inline functions
1263 controlled by \fB#pragma implementation\fR.  This will cause linker
1264 errors if these functions are not inlined everywhere they are called.
1265 .Ip "\fB\-fms-extensions\fR" 4
1266 .IX Item "-fms-extensions"
1267 Disable pedantic warnings about constructs used in \s-1MFC\s0, such as implicit
1268 int and getting a pointer to member function via non-standard syntax.
1269 .Ip "\fB\-fno-nonansi-builtins\fR" 4
1270 .IX Item "-fno-nonansi-builtins"
1271 Disable built-in declarations of functions that are not mandated by
1272 \&\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,
1273 \&\f(CW\*(C`index\*(C'\fR, \f(CW\*(C`bzero\*(C'\fR, \f(CW\*(C`conjf\*(C'\fR, and other related functions.
1274 .Ip "\fB\-fno-operator-names\fR" 4
1275 .IX Item "-fno-operator-names"
1276 Do not treat the operator name keywords \f(CW\*(C`and\*(C'\fR, \f(CW\*(C`bitand\*(C'\fR,
1277 \&\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
1278 synonyms as keywords.
1279 .Ip "\fB\-fno-optional-diags\fR" 4
1280 .IX Item "-fno-optional-diags"
1281 Disable diagnostics that the standard says a compiler does not need to
1282 issue.  Currently, the only such diagnostic issued by g++ is the one for
1283 a name having multiple meanings within a class.
1284 .Ip "\fB\-fpermissive\fR" 4
1285 .IX Item "-fpermissive"
1286 Downgrade messages about nonconformant code from errors to warnings.  By
1287 default, g++ effectively sets \fB\-pedantic-errors\fR without
1288 \&\fB\-pedantic\fR; this option reverses that.  This behavior and this
1289 option are superseded by \fB\-pedantic\fR, which works as it does for \s-1GNU\s0 C.
1290 .Ip "\fB\-frepo\fR" 4
1291 .IX Item "-frepo"
1292 Enable automatic template instantiation.  This option also implies
1293 \&\fB\-fno-implicit-templates\fR.  
1294 .Ip "\fB\-fno-rtti\fR" 4
1295 .IX Item "-fno-rtti"
1296 Disable generation of information about every class with virtual
1297 functions for use by the \*(C+ runtime type identification features
1298 (\fBdynamic_cast\fR and \fBtypeid\fR).  If you don't use those parts
1299 of the language, you can save some space by using this flag.  Note that
1300 exception handling uses the same information, but it will generate it as
1301 needed.
1302 .Ip "\fB\-fstats\fR" 4
1303 .IX Item "-fstats"
1304 Emit statistics about front-end processing at the end of the compilation.
1305 This information is generally only useful to the G++ development team.
1306 .Ip "\fB\-ftemplate-depth-\fR\fIn\fR" 4
1307 .IX Item "-ftemplate-depth-n"
1308 Set the maximum instantiation depth for template classes to \fIn\fR.
1309 A limit on the template instantiation depth is needed to detect
1310 endless recursions during template class instantiation. \s-1ANSI/ISO\s0 \*(C+
1311 conforming programs must not rely on a maximum depth greater than 17.
1312 .Ip "\fB\-fuse-cxa-atexit\fR" 4
1313 .IX Item "-fuse-cxa-atexit"
1314 Register destructors for objects with static storage duration with the
1315 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR function rather than the \f(CW\*(C`atexit\*(C'\fR function.
1316 This option is required for fully standards-compliant handling of static
1317 destructors, but will only work if your C library supports
1318 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR.
1319 .Ip "\fB\-fvtable-gc\fR" 4
1320 .IX Item "-fvtable-gc"
1321 Emit special relocations for vtables and virtual function references
1322 so that the linker can identify unused virtual functions and zero out
1323 vtable slots that refer to them.  This is most useful with
1324 \&\fB\-ffunction-sections\fR and \fB\-Wl,\-\-gc-sections\fR, in order to
1325 also discard the functions themselves.
1327 This optimization requires \s-1GNU\s0 as and \s-1GNU\s0 ld.  Not all systems support
1328 this option.  \fB\-Wl,\-\-gc-sections\fR is ignored without \fB\-static\fR.
1329 .Ip "\fB\-fno-weak\fR" 4
1330 .IX Item "-fno-weak"
1331 Do not use weak symbol support, even if it is provided by the linker.
1332 By default, G++ will use weak symbols if they are available.  This
1333 option exists only for testing, and should not be used by end-users;
1334 it will result in inferior code and has no benefits.  This option may
1335 be removed in a future release of G++.
1336 .Ip "\fB\-nostdinc++\fR" 4
1337 .IX Item "-nostdinc++"
1338 Do not search for header files in the standard directories specific to
1339 \&\*(C+, but do still search the other standard directories.  (This option
1340 is used when building the \*(C+ library.)
1342 In addition, these optimization, warning, and code generation options
1343 have meanings only for \*(C+ programs:
1344 .Ip "\fB\-fno-default-inline\fR" 4
1345 .IX Item "-fno-default-inline"
1346 Do not assume \fBinline\fR for functions defined inside a class scope.
1347   Note that these
1348 functions will have linkage like inline functions; they just won't be
1349 inlined by default.
1350 .Ip "\fB\-Wctor-dtor-privacy (\*(C+ only)\fR" 4
1351 .IX Item "-Wctor-dtor-privacy ( only)"
1352 Warn when a class seems unusable, because all the constructors or
1353 destructors in a class are private and the class has no friends or
1354 public static member functions.
1355 .Ip "\fB\-Wnon-virtual-dtor (\*(C+ only)\fR" 4
1356 .IX Item "-Wnon-virtual-dtor ( only)"
1357 Warn when a class declares a non-virtual destructor that should probably
1358 be virtual, because it looks like the class will be used polymorphically.
1359 .Ip "\fB\-Wreorder (\*(C+ only)\fR" 4
1360 .IX Item "-Wreorder ( only)"
1361 Warn when the order of member initializers given in the code does not
1362 match the order in which they must be executed.  For instance:
1364 .Vb 5
1365 \&        struct A {
1366 \&          int i;
1367 \&          int j;
1368 \&          A(): j (0), i (1) { }
1369 \&        };
1371 Here the compiler will warn that the member initializers for \fBi\fR
1372 and \fBj\fR will be rearranged to match the declaration order of the
1373 members.
1375 The following \fB\-W...\fR options are not affected by \fB\-Wall\fR.
1376 .Ip "\fB\-Weffc++ (\*(C+ only)\fR" 4
1377 .IX Item "-Weffc++ ( only)"
1378 Warn about violations of various style guidelines from Scott Meyers'
1379 \&\fIEffective \*(C+\fR books.  If you use this option, you should be aware
1380 that the standard library headers do not obey all of these guidelines;
1381 you can use \fBgrep \-v\fR to filter out those warnings.
1382 .Ip "\fB\-Wno-deprecated (\*(C+ only)\fR" 4
1383 .IX Item "-Wno-deprecated ( only)"
1384 Do not warn about usage of deprecated features. 
1385 .Ip "\fB\-Wno-non-template-friend (\*(C+ only)\fR" 4
1386 .IX Item "-Wno-non-template-friend ( only)"
1387 Disable warnings when non-templatized friend functions are declared
1388 within a template. With the advent of explicit template specification
1389 support in g++, if the name of the friend is an unqualified-id (i.e.,
1390 \&\fBfriend foo(int)\fR), the \*(C+ language specification demands that the
1391 friend declare or define an ordinary, nontemplate function. (Section
1392 14.5.3). Before g++ implemented explicit specification, unqualified-ids
1393 could be interpreted as a particular specialization of a templatized
1394 function. Because this non-conforming behavior is no longer the default
1395 behavior for g++, \fB\-Wnon-template-friend\fR allows the compiler to
1396 check existing code for potential trouble spots, and is on by default.
1397 This new compiler behavior can be turned off with
1398 \&\fB\-Wno-non-template-friend\fR which keeps the conformant compiler code
1399 but disables the helpful warning.
1400 .Ip "\fB\-Wold-style-cast (\*(C+ only)\fR" 4
1401 .IX Item "-Wold-style-cast ( only)"
1402 Warn if an old-style (C-style) cast is used within a \*(C+ program.  The
1403 new-style casts (\fBstatic_cast\fR, \fBreinterpret_cast\fR, and
1404 \&\fBconst_cast\fR) are less vulnerable to unintended effects, and much
1405 easier to grep for.
1406 .Ip "\fB\-Woverloaded-virtual (\*(C+ only)\fR" 4
1407 .IX Item "-Woverloaded-virtual ( only)"
1408 Warn when a function declaration hides virtual functions from a
1409 base class.  For example, in:
1411 .Vb 3
1412 \&        struct A {
1413 \&          virtual void f();
1414 \&        };
1416 .Vb 3
1417 \&        struct B: public A {
1418 \&          void f(int);
1419 \&        };
1421 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
1422 like this:
1424 .Vb 2
1425 \&        B* b;
1426 \&        b->f();
1428 will fail to compile.
1429 .Ip "\fB\-Wno-pmf-conversions (\*(C+ only)\fR" 4
1430 .IX Item "-Wno-pmf-conversions ( only)"
1431 Disable the diagnostic for converting a bound pointer to member function
1432 to a plain pointer.
1433 .Ip "\fB\-Wsign-promo (\*(C+ only)\fR" 4
1434 .IX Item "-Wsign-promo ( only)"
1435 Warn when overload resolution chooses a promotion from unsigned or
1436 enumeral type to a signed type over a conversion to an unsigned type of
1437 the same size.  Previous versions of g++ would try to preserve
1438 unsignedness, but the standard mandates the current behavior.
1439 .Ip "\fB\-Wsynth (\*(C+ only)\fR" 4
1440 .IX Item "-Wsynth ( only)"
1441 Warn when g++'s synthesis behavior does not match that of cfront.  For
1442 instance:
1444 .Vb 4
1445 \&        struct A {
1446 \&          operator int ();
1447 \&          A& operator = (int);
1448 \&        };
1450 .Vb 5
1451 \&        main ()
1452 \&        {
1453 \&          A a,b;
1454 \&          a = b;
1455 \&        }
1457 In this example, g++ will synthesize a default \fBA& operator =
1458 (const A&);\fR, while cfront will use the user-defined \fBoperator =\fR.
1459 .Sh "Options Controlling Objective-C Dialect"
1460 .IX Subsection "Options Controlling Objective-C Dialect"
1461 This section describes the command-line options that are only meaningful
1462 for Objective-C programs; but you can also use most of the \s-1GNU\s0 compiler
1463 options regardless of what language your program is in.  For example,
1464 you might compile a file \f(CW\*(C`some_class.m\*(C'\fR like this:
1466 .Vb 1
1467 \&        gcc -g -fgnu-runtime -O -c some_class.m
1469 In this example, only \fB\-fgnu-runtime\fR is an option meant only for
1470 Objective-C programs; you can use the other options with any language
1471 supported by \s-1GCC\s0.
1473 Here is a list of options that are \fIonly\fR for compiling Objective-C
1474 programs:
1475 .Ip "\fB\-fconstant-string-class=\fR\fIclass-name\fR" 4
1476 .IX Item "-fconstant-string-class=class-name"
1477 Use \fIclass-name\fR as the name of the class to instantiate for each
1478 literal string specified with the syntax \f(CW\*(C`@"..."\*(C'\fR.  The default
1479 class name is \f(CW\*(C`NXConstantString\*(C'\fR.
1480 .Ip "\fB\-fgnu-runtime\fR" 4
1481 .IX Item "-fgnu-runtime"
1482 Generate object code compatible with the standard \s-1GNU\s0 Objective-C
1483 runtime.  This is the default for most types of systems.
1484 .Ip "\fB\-fnext-runtime\fR" 4
1485 .IX Item "-fnext-runtime"
1486 Generate output compatible with the NeXT runtime.  This is the default
1487 for NeXT-based systems, including Darwin and Mac \s-1OS\s0 X.
1488 .Ip "\fB\-gen-decls\fR" 4
1489 .IX Item "-gen-decls"
1490 Dump interface declarations for all classes seen in the source file to a
1491 file named \fI\fIsourcename\fI.decl\fR.
1492 .Ip "\fB\-Wno-protocol\fR" 4
1493 .IX Item "-Wno-protocol"
1494 Do not warn if methods required by a protocol are not implemented
1495 in the class adopting it.
1496 .Ip "\fB\-Wselector\fR" 4
1497 .IX Item "-Wselector"
1498 Warn if a selector has multiple methods of different types defined.
1499 .Sh "Options to Control Diagnostic Messages Formatting"
1500 .IX Subsection "Options to Control Diagnostic Messages Formatting"
1501 Traditionally, diagnostic messages have been formatted irrespective of
1502 the output device's aspect (e.g. its width, ...).  The options described
1503 below can be used to control the diagnostic messages formatting
1504 algorithm, e.g. how many characters per line, how often source location
1505 information should be reported.  Right now, only the \*(C+ front end can
1506 honor these options.  However it is expected, in the near future, that
1507 the remaining front ends would be able to digest them correctly.
1508 .Ip "\fB\-fmessage-length=\fR\fIn\fR" 4
1509 .IX Item "-fmessage-length=n"
1510 Try to format error messages so that they fit on lines of about \fIn\fR
1511 characters.  The default is 72 characters for g++ and 0 for the rest of
1512 the front ends supported by \s-1GCC\s0.  If \fIn\fR is zero, then no
1513 line-wrapping will be done; each error message will appear on a single
1514 line.
1515 .Ip "\fB\-fdiagnostics-show-location=once\fR" 4
1516 .IX Item "-fdiagnostics-show-location=once"
1517 Only meaningful in line-wrapping mode.  Instructs the diagnostic messages
1518 reporter to emit \fIonce\fR source location information; that is, in
1519 case the message is too long to fit on a single physical line and has to
1520 be wrapped, the source location won't be emitted (as prefix) again,
1521 over and over, in subsequent continuation lines.  This is the default
1522 behaviour.
1523 .Ip "\fB\-fdiagnostics-show-location=every-line\fR" 4
1524 .IX Item "-fdiagnostics-show-location=every-line"
1525 Only meaningful in line-wrapping mode.  Instructs the diagnostic
1526 messages reporter to emit the same source location information (as
1527 prefix) for physical lines that result from the process of breaking a
1528 a message which is too long to fit on a single line.
1529 .Sh "Options to Request or Suppress Warnings"
1530 .IX Subsection "Options to Request or Suppress Warnings"
1531 Warnings are diagnostic messages that report constructions which
1532 are not inherently erroneous but which are risky or suggest there
1533 may have been an error.
1535 You can request many specific warnings with options beginning \fB\-W\fR,
1536 for example \fB\-Wimplicit\fR to request warnings on implicit
1537 declarations.  Each of these specific warning options also has a
1538 negative form beginning \fB\-Wno-\fR to turn off warnings;
1539 for example, \fB\-Wno-implicit\fR.  This manual lists only one of the
1540 two forms, whichever is not the default.
1542 These options control the amount and kinds of warnings produced by \s-1GCC:\s0
1543 .Ip "\fB\-fsyntax-only\fR" 4
1544 .IX Item "-fsyntax-only"
1545 Check the code for syntax errors, but don't do anything beyond that.
1546 .Ip "\fB\-pedantic\fR" 4
1547 .IX Item "-pedantic"
1548 Issue all the warnings demanded by strict \s-1ISO\s0 C and \s-1ISO\s0 \*(C+;
1549 reject all programs that use forbidden extensions, and some other
1550 programs that do not follow \s-1ISO\s0 C and \s-1ISO\s0 \*(C+.  For \s-1ISO\s0 C, follows the
1551 version of the \s-1ISO\s0 C standard specified by any \fB\-std\fR option used.
1553 Valid \s-1ISO\s0 C and \s-1ISO\s0 \*(C+ programs should compile properly with or without
1554 this option (though a rare few will require \fB\-ansi\fR or a
1555 \&\fB\-std\fR option specifying the required version of \s-1ISO\s0 C).  However,
1556 without this option, certain \s-1GNU\s0 extensions and traditional C and \*(C+
1557 features are supported as well.  With this option, they are rejected.
1559 \&\fB\-pedantic\fR does not cause warning messages for use of the
1560 alternate keywords whose names begin and end with \fB_\|_\fR.  Pedantic
1561 warnings are also disabled in the expression that follows
1562 \&\f(CW\*(C`_\|_extension_\|_\*(C'\fR.  However, only system header files should use
1563 these escape routes; application programs should avoid them.
1565 Some users try to use \fB\-pedantic\fR to check programs for strict \s-1ISO\s0
1566 C conformance.  They soon find that it does not do quite what they want:
1567 it finds some non-ISO practices, but not all\-\-\-only those for which
1568 \&\s-1ISO\s0 C \fIrequires\fR a diagnostic, and some others for which
1569 diagnostics have been added.
1571 A feature to report any failure to conform to \s-1ISO\s0 C might be useful in
1572 some instances, but would require considerable additional work and would
1573 be quite different from \fB\-pedantic\fR.  We don't have plans to
1574 support such a feature in the near future.
1576 Where the standard specified with \fB\-std\fR represents a \s-1GNU\s0
1577 extended dialect of C, such as \fBgnu89\fR or \fBgnu99\fR, there is a
1578 corresponding \fIbase standard\fR, the version of \s-1ISO\s0 C on which the \s-1GNU\s0
1579 extended dialect is based.  Warnings from \fB\-pedantic\fR are given
1580 where they are required by the base standard.  (It would not make sense
1581 for such warnings to be given only for features not in the specified \s-1GNU\s0
1582 C dialect, since by definition the \s-1GNU\s0 dialects of C include all
1583 features the compiler supports with the given option, and there would be
1584 nothing to warn about.)
1585 .Ip "\fB\-pedantic-errors\fR" 4
1586 .IX Item "-pedantic-errors"
1587 Like \fB\-pedantic\fR, except that errors are produced rather than
1588 warnings.
1589 .Ip "\fB\-w\fR" 4
1590 .IX Item "-w"
1591 Inhibit all warning messages.
1592 .Ip "\fB\-Wno-import\fR" 4
1593 .IX Item "-Wno-import"
1594 Inhibit warning messages about the use of \fB#import\fR.
1595 .Ip "\fB\-Wchar-subscripts\fR" 4
1596 .IX Item "-Wchar-subscripts"
1597 Warn if an array subscript has type \f(CW\*(C`char\*(C'\fR.  This is a common cause
1598 of error, as programmers often forget that this type is signed on some
1599 machines.
1600 .Ip "\fB\-Wcomment\fR" 4
1601 .IX Item "-Wcomment"
1602 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
1603 comment, or whenever a Backslash-Newline appears in a \fB//\fR comment.
1604 .Ip "\fB\-Wformat\fR" 4
1605 .IX Item "-Wformat"
1606 Check calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR, etc., to make sure that
1607 the arguments supplied have types appropriate to the format string
1608 specified, and that the conversions specified in the format string make
1609 sense.  This includes standard functions, and others specified by format
1610 attributes, in the \f(CW\*(C`printf\*(C'\fR,
1611 \&\f(CW\*(C`scanf\*(C'\fR, \f(CW\*(C`strftime\*(C'\fR and \f(CW\*(C`strfmon\*(C'\fR (an X/Open extension,
1612 not in the C standard) families.
1614 The formats are checked against the format features supported by \s-1GNU\s0
1615 libc version 2.2.  These include all \s-1ISO\s0 C89 and C99 features, as well
1616 as features from the Single Unix Specification and some \s-1BSD\s0 and \s-1GNU\s0
1617 extensions.  Other library implementations may not support all these
1618 features; \s-1GCC\s0 does not support warning about features that go beyond a
1619 particular library's limitations.  However, if \fB\-pedantic\fR is used
1620 with \fB\-Wformat\fR, warnings will be given about format features not
1621 in the selected standard version (but not for \f(CW\*(C`strfmon\*(C'\fR formats,
1622 since those are not in any version of the C standard).  
1624 \&\fB\-Wformat\fR is included in \fB\-Wall\fR.  For more control over some
1625 aspects of format checking, the options \fB\-Wno-format-y2k\fR,
1626 \&\fB\-Wno-format-extra-args\fR, \fB\-Wformat-nonliteral\fR,
1627 \&\fB\-Wformat-security\fR and \fB\-Wformat=2\fR are available, but are
1628 not included in \fB\-Wall\fR.
1629 .Ip "\fB\-Wno-format-y2k\fR" 4
1630 .IX Item "-Wno-format-y2k"
1631 If \fB\-Wformat\fR is specified, do not warn about \f(CW\*(C`strftime\*(C'\fR
1632 formats which may yield only a two-digit year.
1633 .Ip "\fB\-Wno-format-extra-args\fR" 4
1634 .IX Item "-Wno-format-extra-args"
1635 If \fB\-Wformat\fR is specified, do not warn about excess arguments to a
1636 \&\f(CW\*(C`printf\*(C'\fR or \f(CW\*(C`scanf\*(C'\fR format function.  The C standard specifies
1637 that such arguments are ignored.
1638 .Ip "\fB\-Wformat-nonliteral\fR" 4
1639 .IX Item "-Wformat-nonliteral"
1640 If \fB\-Wformat\fR is specified, also warn if the format string is not a
1641 string literal and so cannot be checked, unless the format function
1642 takes its format arguments as a \f(CW\*(C`va_list\*(C'\fR.
1643 .Ip "\fB\-Wformat-security\fR" 4
1644 .IX Item "-Wformat-security"
1645 If \fB\-Wformat\fR is specified, also warn about uses of format
1646 functions that represent possible security problems.  At present, this
1647 warns about calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR functions where the
1648 format string is not a string literal and there are no format arguments,
1649 as in \f(CW\*(C`printf (foo);\*(C'\fR.  This may be a security hole if the format
1650 string came from untrusted input and contains \fB%n\fR.  (This is
1651 currently a subset of what \fB\-Wformat-nonliteral\fR warns about, but
1652 in future warnings may be added to \fB\-Wformat-security\fR that are not
1653 included in \fB\-Wformat-nonliteral\fR.)
1654 .Ip "\fB\-Wformat=2\fR" 4
1655 .IX Item "-Wformat=2"
1656 Enable \fB\-Wformat\fR plus format checks not included in
1657 \&\fB\-Wformat\fR.  Currently equivalent to \fB\-Wformat
1658 \&\-Wformat-nonliteral \-Wformat-security\fR.
1659 .Ip "\fB\-Wimplicit-int\fR" 4
1660 .IX Item "-Wimplicit-int"
1661 Warn when a declaration does not specify a type.
1662 .Ip "\fB\-Wimplicit-function-declaration\fR" 4
1663 .IX Item "-Wimplicit-function-declaration"
1664 .PD 0
1665 .Ip "\fB\-Werror-implicit-function-declaration\fR" 4
1666 .IX Item "-Werror-implicit-function-declaration"
1668 Give a warning (or error) whenever a function is used before being
1669 declared.
1670 .Ip "\fB\-Wimplicit\fR" 4
1671 .IX Item "-Wimplicit"
1672 Same as \fB\-Wimplicit-int\fR and \fB\-Wimplicit-function-declaration\fR.
1673 .Ip "\fB\-Wmain\fR" 4
1674 .IX Item "-Wmain"
1675 Warn if the type of \fBmain\fR is suspicious.  \fBmain\fR should be a
1676 function with external linkage, returning int, taking either zero
1677 arguments, two, or three arguments of appropriate types.
1678 .Ip "\fB\-Wmissing-braces\fR" 4
1679 .IX Item "-Wmissing-braces"
1680 Warn if an aggregate or union initializer is not fully bracketed.  In
1681 the following example, the initializer for \fBa\fR is not fully
1682 bracketed, but that for \fBb\fR is fully bracketed.
1684 .Vb 2
1685 \&        int a[2][2] = { 0, 1, 2, 3 };
1686 \&        int b[2][2] = { { 0, 1 }, { 2, 3 } };
1688 .Ip "\fB\-Wmultichar\fR" 4
1689 .IX Item "-Wmultichar"
1690 Warn if a multicharacter constant (\fB'\s-1FOOF\s0'\fR) is used.  Usually they
1691 indicate a typo in the user's code, as they have implementation-defined
1692 values, and should not be used in portable code.
1693 .Ip "\fB\-Wparentheses\fR" 4
1694 .IX Item "-Wparentheses"
1695 Warn if parentheses are omitted in certain contexts, such
1696 as when there is an assignment in a context where a truth value
1697 is expected, or when operators are nested whose precedence people
1698 often get confused about.
1700 Also warn about constructions where there may be confusion to which
1701 \&\f(CW\*(C`if\*(C'\fR statement an \f(CW\*(C`else\*(C'\fR branch belongs.  Here is an example of
1702 such a case:
1704 .Vb 7
1705 \&        {
1706 \&          if (a)
1707 \&            if (b)
1708 \&              foo ();
1709 \&          else
1710 \&            bar ();
1711 \&        }
1713 In C, every \f(CW\*(C`else\*(C'\fR branch belongs to the innermost possible \f(CW\*(C`if\*(C'\fR
1714 statement, which in this example is \f(CW\*(C`if (b)\*(C'\fR.  This is often not
1715 what the programmer expected, as illustrated in the above example by
1716 indentation the programmer chose.  When there is the potential for this
1717 confusion, \s-1GCC\s0 will issue a warning when this flag is specified.
1718 To eliminate the warning, add explicit braces around the innermost
1719 \&\f(CW\*(C`if\*(C'\fR statement so there is no way the \f(CW\*(C`else\*(C'\fR could belong to
1720 the enclosing \f(CW\*(C`if\*(C'\fR.  The resulting code would look like this:
1722 .Vb 9
1723 \&        {
1724 \&          if (a)
1725 \&            {
1726 \&              if (b)
1727 \&                foo ();
1728 \&              else
1729 \&                bar ();
1730 \&            }
1731 \&        }
1733 .Ip "\fB\-Wsequence-point\fR" 4
1734 .IX Item "-Wsequence-point"
1735 Warn about code that may have undefined semantics because of violations
1736 of sequence point rules in the C standard.
1738 The C standard defines the order in which expressions in a C program are
1739 evaluated in terms of \fIsequence points\fR, which represent a partial
1740 ordering between the execution of parts of the program: those executed
1741 before the sequence point, and those executed after it.  These occur
1742 after the evaluation of a full expression (one which is not part of a
1743 larger expression), after the evaluation of the first operand of a
1744 \&\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
1745 function is called (but after the evaluation of its arguments and the
1746 expression denoting the called function), and in certain other places.
1747 Other than as expressed by the sequence point rules, the order of
1748 evaluation of subexpressions of an expression is not specified.  All
1749 these rules describe only a partial order rather than a total order,
1750 since, for example, if two functions are called within one expression
1751 with no sequence point between them, the order in which the functions
1752 are called is not specified.  However, the standards committee have
1753 ruled that function calls do not overlap.
1755 It is not specified when between sequence points modifications to the
1756 values of objects take effect.  Programs whose behavior depends on this
1757 have undefined behavior; the C standard specifies that ``Between the
1758 previous and next sequence point an object shall have its stored value
1759 modified at most once by the evaluation of an expression.  Furthermore,
1760 the prior value shall be read only to determine the value to be
1761 stored.''.  If a program breaks these rules, the results on any
1762 particular implementation are entirely unpredictable.
1764 Examples of code with undefined behavior are \f(CW\*(C`a = a++;\*(C'\fR, \f(CW\*(C`a[n]
1765 = b[n++]\*(C'\fR and \f(CW\*(C`a[i++] = i;\*(C'\fR.  Some more complicated cases are not
1766 diagnosed by this option, and it may give an occasional false positive
1767 result, but in general it has been found fairly effective at detecting
1768 this sort of problem in programs.
1770 The present implementation of this option only works for C programs.  A
1771 future implementation may also work for \*(C+ programs.
1773 There is some controversy over the precise meaning of the sequence point
1774 rules in subtle cases.  Links to papers with alternative formal definitions
1775 and other related discussions may be found on our readings page
1776 <\fBhttp://gcc.gnu.org/readings.html\fR>.
1777 .Ip "\fB\-Wreturn-type\fR" 4
1778 .IX Item "-Wreturn-type"
1779 Warn whenever a function is defined with a return-type that defaults to
1780 \&\f(CW\*(C`int\*(C'\fR.  Also warn about any \f(CW\*(C`return\*(C'\fR statement with no
1781 return-value in a function whose return-type is not \f(CW\*(C`void\*(C'\fR.
1783 For \*(C+, a function without return type always produces a diagnostic
1784 message, even when \fB\-Wno-return-type\fR is specified. The only
1785 exceptions are \fBmain\fR and functions defined in system headers.
1786 .Ip "\fB\-Wswitch\fR" 4
1787 .IX Item "-Wswitch"
1788 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumeral type
1789 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
1790 enumeration.  (The presence of a \f(CW\*(C`default\*(C'\fR label prevents this
1791 warning.)  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
1792 provoke warnings when this option is used.
1793 .Ip "\fB\-Wtrigraphs\fR" 4
1794 .IX Item "-Wtrigraphs"
1795 Warn if any trigraphs are encountered that might change the meaning of
1796 the program (trigraphs within comments are not warned about).
1797 .Ip "\fB\-Wunused-function\fR" 4
1798 .IX Item "-Wunused-function"
1799 Warn whenever a static function is declared but not defined or a
1800 non\e-inline static function is unused.
1801 .Ip "\fB\-Wunused-label\fR" 4
1802 .IX Item "-Wunused-label"
1803 Warn whenever a label is declared but not used.
1805 To suppress this warning use the \fBunused\fR attribute.
1806 .Ip "\fB\-Wunused-parameter\fR" 4
1807 .IX Item "-Wunused-parameter"
1808 Warn whenever a function parameter is unused aside from its declaration.
1810 To suppress this warning use the \fBunused\fR attribute.
1811 .Ip "\fB\-Wunused-variable\fR" 4
1812 .IX Item "-Wunused-variable"
1813 Warn whenever a local variable or non-constant static variable is unused
1814 aside from its declaration
1816 To suppress this warning use the \fBunused\fR attribute.
1817 .Ip "\fB\-Wunused-value\fR" 4
1818 .IX Item "-Wunused-value"
1819 Warn whenever a statement computes a result that is explicitly not used.
1821 To suppress this warning cast the expression to \fBvoid\fR.
1822 .Ip "\fB\-Wunused\fR" 4
1823 .IX Item "-Wunused"
1824 All all the above \fB\-Wunused\fR options combined.
1826 In order to get a warning about an unused function parameter, you must
1827 either specify \fB\-W \-Wunused\fR or separately specify
1828 \&\fB\-Wunused-parameter\fR.
1829 .Ip "\fB\-Wuninitialized\fR" 4
1830 .IX Item "-Wuninitialized"
1831 Warn if an automatic variable is used without first being initialized or
1832 if a variable may be clobbered by a \f(CW\*(C`setjmp\*(C'\fR call.
1834 These warnings are possible only in optimizing compilation,
1835 because they require data flow information that is computed only
1836 when optimizing.  If you don't specify \fB\-O\fR, you simply won't
1837 get these warnings.
1839 These warnings occur only for variables that are candidates for
1840 register allocation.  Therefore, they do not occur for a variable that
1841 is declared \f(CW\*(C`volatile\*(C'\fR, or whose address is taken, or whose size
1842 is other than 1, 2, 4 or 8 bytes.  Also, they do not occur for
1843 structures, unions or arrays, even when they are in registers.
1845 Note that there may be no warning about a variable that is used only
1846 to compute a value that itself is never used, because such
1847 computations may be deleted by data flow analysis before the warnings
1848 are printed.
1850 These warnings are made optional because \s-1GCC\s0 is not smart
1851 enough to see all the reasons why the code might be correct
1852 despite appearing to have an error.  Here is one example of how
1853 this can happen:
1855 .Vb 12
1856 \&        {
1857 \&          int x;
1858 \&          switch (y)
1859 \&            {
1860 \&            case 1: x = 1;
1861 \&              break;
1862 \&            case 2: x = 4;
1863 \&              break;
1864 \&            case 3: x = 5;
1865 \&            }
1866 \&          foo (x);
1867 \&        }
1869 If the value of \f(CW\*(C`y\*(C'\fR is always 1, 2 or 3, then \f(CW\*(C`x\*(C'\fR is
1870 always initialized, but \s-1GCC\s0 doesn't know this.  Here is
1871 another common case:
1873 .Vb 6
1874 \&        {
1875 \&          int save_y;
1876 \&          if (change_y) save_y = y, y = new_y;
1877 \&          ...
1878 \&          if (change_y) y = save_y;
1879 \&        }
1881 This has no bug because \f(CW\*(C`save_y\*(C'\fR is used only if it is set.
1883 This option also warns when a non-volatile automatic variable might be
1884 changed by a call to \f(CW\*(C`longjmp\*(C'\fR.  These warnings as well are possible
1885 only in optimizing compilation.
1887 The compiler sees only the calls to \f(CW\*(C`setjmp\*(C'\fR.  It cannot know
1888 where \f(CW\*(C`longjmp\*(C'\fR will be called; in fact, a signal handler could
1889 call it at any point in the code.  As a result, you may get a warning
1890 even when there is in fact no problem because \f(CW\*(C`longjmp\*(C'\fR cannot
1891 in fact be called at the place which would cause a problem.
1893 Some spurious warnings can be avoided if you declare all the functions
1894 you use that never return as \f(CW\*(C`noreturn\*(C'\fR.  
1895 .Ip "\fB\-Wreorder (\*(C+ only)\fR" 4
1896 .IX Item "-Wreorder ( only)"
1897 Warn when the order of member initializers given in the code does not
1898 match the order in which they must be executed.  For instance:
1899 .Ip "\fB\-Wunknown-pragmas\fR" 4
1900 .IX Item "-Wunknown-pragmas"
1901 Warn when a #pragma directive is encountered which is not understood by
1902 \&\s-1GCC\s0.  If this command line option is used, warnings will even be issued
1903 for unknown pragmas in system header files.  This is not the case if
1904 the warnings were only enabled by the \fB\-Wall\fR command line option.
1905 .Ip "\fB\-Wall\fR" 4
1906 .IX Item "-Wall"
1907 All of the above \fB\-W\fR options combined.  This enables all the
1908 warnings about constructions that some users consider questionable, and
1909 that are easy to avoid (or modify to prevent the warning), even in
1910 conjunction with macros.
1911 .Ip "\fB\-Wsystem-headers\fR" 4
1912 .IX Item "-Wsystem-headers"
1913 Print warning messages for constructs found in system header files.
1914 Warnings from system headers are normally suppressed, on the assumption
1915 that they usually do not indicate real problems and would only make the
1916 compiler output harder to read.  Using this command line option tells
1917 \&\s-1GCC\s0 to emit warnings from system headers as if they occurred in user
1918 code.  However, note that using \fB\-Wall\fR in conjunction with this
1919 option will \fInot\fR warn about unknown pragmas in system
1920 headers\-\-\-for that, \fB\-Wunknown-pragmas\fR must also be used.
1922 The following \fB\-W...\fR options are not implied by \fB\-Wall\fR.
1923 Some of them warn about constructions that users generally do not
1924 consider questionable, but which occasionally you might wish to check
1925 for; others warn about constructions that are necessary or hard to avoid
1926 in some cases, and there is no simple way to modify the code to suppress
1927 the warning.
1928 .Ip "\fB\-W\fR" 4
1929 .IX Item "-W"
1930 Print extra warning messages for these events:
1931 .RS 4
1932 .Ip "\(bu" 4
1933 A function can return either with or without a value.  (Falling
1934 off the end of the function body is considered returning without
1935 a value.)  For example, this function would evoke such a
1936 warning:
1938 .Vb 5
1939 \&        foo (a)
1940 \&        {
1941 \&          if (a > 0)
1942 \&            return a;
1943 \&        }
1945 .Ip "\(bu" 4
1946 An expression-statement or the left-hand side of a comma expression
1947 contains no side effects.
1948 To suppress the warning, cast the unused expression to void.
1949 For example, an expression such as \fBx[i,j]\fR will cause a warning,
1950 but \fBx[(void)i,j]\fR will not.
1951 .Ip "\(bu" 4
1952 An unsigned value is compared against zero with \fB<\fR or \fB<=\fR.
1953 .Ip "\(bu" 4
1954 A comparison like \fBx<=y<=z\fR appears; this is equivalent to
1955 \&\fB(x<=y ? 1 : 0) <= z\fR, which is a different interpretation from
1956 that of ordinary mathematical notation.
1957 .Ip "\(bu" 4
1958 Storage-class specifiers like \f(CW\*(C`static\*(C'\fR are not the first things in
1959 a declaration.  According to the C Standard, this usage is obsolescent.
1960 .Ip "\(bu" 4
1961 The return type of a function has a type qualifier such as \f(CW\*(C`const\*(C'\fR.
1962 Such a type qualifier has no effect, since the value returned by a
1963 function is not an lvalue.  (But don't warn about the \s-1GNU\s0 extension of
1964 \&\f(CW\*(C`volatile void\*(C'\fR return types.  That extension will be warned about
1965 if \fB\-pedantic\fR is specified.)
1966 .Ip "\(bu" 4
1967 If \fB\-Wall\fR or \fB\-Wunused\fR is also specified, warn about unused
1968 arguments.
1969 .Ip "\(bu" 4
1970 A comparison between signed and unsigned values could produce an
1971 incorrect result when the signed value is converted to unsigned.
1972 (But don't warn if \fB\-Wno-sign-compare\fR is also specified.)
1973 .Ip "\(bu" 4
1974 An aggregate has a partly bracketed initializer.
1975 For example, the following code would evoke such a warning,
1976 because braces are missing around the initializer for \f(CW\*(C`x.h\*(C'\fR:
1978 .Vb 3
1979 \&        struct s { int f, g; };
1980 \&        struct t { struct s h; int i; };
1981 \&        struct t x = { 1, 2, 3 };
1983 .Ip "\(bu" 4
1984 An aggregate has an initializer which does not initialize all members.
1985 For example, the following code would cause such a warning, because
1986 \&\f(CW\*(C`x.h\*(C'\fR would be implicitly initialized to zero:
1988 .Vb 2
1989 \&        struct s { int f, g, h; };
1990 \&        struct s x = { 3, 4 };
1993 .RS 4
1995 .Ip "\fB\-Wfloat-equal\fR" 4
1996 .IX Item "-Wfloat-equal"
1997 Warn if floating point values are used in equality comparisons.
1999 The idea behind this is that sometimes it is convenient (for the
2000 programmer) to consider floating-point values as approximations to
2001 infinitely precise real numbers.  If you are doing this, then you need
2002 to compute (by analysing the code, or in some other way) the maximum or
2003 likely maximum error that the computation introduces, and allow for it
2004 when performing comparisons (and when producing output, but that's a
2005 different problem).  In particular, instead of testing for equality, you
2006 would check to see whether the two values have ranges that overlap; and
2007 this is done with the relational operators, so equality comparisons are
2008 probably mistaken.
2009 .Ip "\fB\-Wtraditional (C only)\fR" 4
2010 .IX Item "-Wtraditional (C only)"
2011 Warn about certain constructs that behave differently in traditional and
2012 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
2013 equivalent, and/or problematic constructs which should be avoided.
2014 .RS 4
2015 .Ip "\(bu" 4
2016 Macro parameters that appear within string literals in the macro body.
2017 In traditional C macro replacement takes place within string literals,
2018 but does not in \s-1ISO\s0 C.
2019 .Ip "\(bu" 4
2020 In traditional C, some preprocessor directives did not exist.
2021 Traditional preprocessors would only consider a line to be a directive
2022 if the \fB#\fR appeared in column 1 on the line.  Therefore
2023 \&\fB\-Wtraditional\fR warns about directives that traditional C
2024 understands but would ignore because the \fB#\fR does not appear as the
2025 first character on the line.  It also suggests you hide directives like
2026 \&\fB#pragma\fR not understood by traditional C by indenting them.  Some
2027 traditional implementations would not recognise \fB#elif\fR, so it
2028 suggests avoiding it altogether.
2029 .Ip "\(bu" 4
2030 A function-like macro that appears without arguments.
2031 .Ip "\(bu" 4
2032 The unary plus operator.
2033 .Ip "\(bu" 4
2034 The \fBU\fR integer constant suffix, or the \fBF\fR or \fBL\fR floating point
2035 constant suffixes.  (Traditional C does support the \fBL\fR suffix on integer
2036 constants.)  Note, these suffixes appear in macros defined in the system
2037 headers of most modern systems, e.g. the \fB_MIN\fR/\fB_MAX\fR macros in \f(CW\*(C`<limits.h>\*(C'\fR.
2038 Use of these macros in user code might normally lead to spurious
2039 warnings, however gcc's integrated preprocessor has enough context to
2040 avoid warning in these cases.
2041 .Ip "\(bu" 4
2042 A function declared external in one block and then used after the end of
2043 the block.
2044 .Ip "\(bu" 4
2045 A \f(CW\*(C`switch\*(C'\fR statement has an operand of type \f(CW\*(C`long\*(C'\fR.
2046 .Ip "\(bu" 4
2047 A non-\f(CW\*(C`static\*(C'\fR function declaration follows a \f(CW\*(C`static\*(C'\fR one.
2048 This construct is not accepted by some traditional C compilers.
2049 .Ip "\(bu" 4
2050 The \s-1ISO\s0 type of an integer constant has a different width or
2051 signedness from its traditional type.  This warning is only issued if
2052 the base of the constant is ten.  I.e. hexadecimal or octal values, which
2053 typically represent bit patterns, are not warned about.
2054 .Ip "\(bu" 4
2055 Usage of \s-1ISO\s0 string concatenation is detected.
2056 .Ip "\(bu" 4
2057 Initialization of automatic aggregates.
2058 .Ip "\(bu" 4
2059 Identifier conflicts with labels.  Traditional C lacks a separate
2060 namespace for labels.
2061 .Ip "\(bu" 4
2062 Initialization of unions.  If the initializer is zero, the warning is
2063 omitted.  This is done under the assumption that the zero initializer in
2064 user code appears conditioned on e.g. \f(CW\*(C`_\|_STDC_\|_\*(C'\fR to avoid missing
2065 initializer warnings and relies on default initialization to zero in the
2066 traditional C case.
2067 .Ip "\(bu" 4
2068 Conversions by prototypes between fixed/floating point values and vice
2069 versa.  The absence of these prototypes when compiling with traditional
2070 C would cause serious problems.  This is a subset of the possible
2071 conversion warnings, for the full set use \fB\-Wconversion\fR.
2073 .RS 4
2075 .Ip "\fB\-Wundef\fR" 4
2076 .IX Item "-Wundef"
2077 Warn if an undefined identifier is evaluated in an \fB#if\fR directive.
2078 .Ip "\fB\-Wshadow\fR" 4
2079 .IX Item "-Wshadow"
2080 Warn whenever a local variable shadows another local variable, parameter or
2081 global variable or whenever a built-in function is shadowed.
2082 .Ip "\fB\-Wlarger-than-\fR\fIlen\fR" 4
2083 .IX Item "-Wlarger-than-len"
2084 Warn whenever an object of larger than \fIlen\fR bytes is defined.
2085 .Ip "\fB\-Wpointer-arith\fR" 4
2086 .IX Item "-Wpointer-arith"
2087 Warn about anything that depends on the ``size of'' a function type or
2088 of \f(CW\*(C`void\*(C'\fR.  \s-1GNU\s0 C assigns these types a size of 1, for
2089 convenience in calculations with \f(CW\*(C`void *\*(C'\fR pointers and pointers
2090 to functions.
2091 .Ip "\fB\-Wbad-function-cast (C only)\fR" 4
2092 .IX Item "-Wbad-function-cast (C only)"
2093 Warn whenever a function call is cast to a non-matching type.
2094 For example, warn if \f(CW\*(C`int malloc()\*(C'\fR is cast to \f(CW\*(C`anything *\*(C'\fR.
2095 .Ip "\fB\-Wcast-qual\fR" 4
2096 .IX Item "-Wcast-qual"
2097 Warn whenever a pointer is cast so as to remove a type qualifier from
2098 the target type.  For example, warn if a \f(CW\*(C`const char *\*(C'\fR is cast
2099 to an ordinary \f(CW\*(C`char *\*(C'\fR.
2100 .Ip "\fB\-Wcast-align\fR" 4
2101 .IX Item "-Wcast-align"
2102 Warn whenever a pointer is cast such that the required alignment of the
2103 target is increased.  For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
2104 an \f(CW\*(C`int *\*(C'\fR on machines where integers can only be accessed at
2105 two- or four-byte boundaries.
2106 .Ip "\fB\-Wwrite-strings\fR" 4
2107 .IX Item "-Wwrite-strings"
2108 Give string constants the type \f(CW\*(C`const char[\f(CIlength\f(CW]\*(C'\fR so that
2109 copying the address of one into a non-\f(CW\*(C`const\*(C'\fR \f(CW\*(C`char *\*(C'\fR
2110 pointer will get a warning.  These warnings will help you find at
2111 compile time code that can try to write into a string constant, but
2112 only if you have been very careful about using \f(CW\*(C`const\*(C'\fR in
2113 declarations and prototypes.  Otherwise, it will just be a nuisance;
2114 this is why we did not make \fB\-Wall\fR request these warnings.
2115 .Ip "\fB\-Wconversion\fR" 4
2116 .IX Item "-Wconversion"
2117 Warn if a prototype causes a type conversion that is different from what
2118 would happen to the same argument in the absence of a prototype.  This
2119 includes conversions of fixed point to floating and vice versa, and
2120 conversions changing the width or signedness of a fixed point argument
2121 except when the same as the default promotion.
2123 Also, warn if a negative integer constant expression is implicitly
2124 converted to an unsigned type.  For example, warn about the assignment
2125 \&\f(CW\*(C`x = \-1\*(C'\fR if \f(CW\*(C`x\*(C'\fR is unsigned.  But do not warn about explicit
2126 casts like \f(CW\*(C`(unsigned) \-1\*(C'\fR.
2127 .Ip "\fB\-Wsign-compare\fR" 4
2128 .IX Item "-Wsign-compare"
2129 Warn when a comparison between signed and unsigned values could produce
2130 an incorrect result when the signed value is converted to unsigned.
2131 This warning is also enabled by \fB\-W\fR; to get the other warnings
2132 of \fB\-W\fR without this warning, use \fB\-W \-Wno-sign-compare\fR.
2133 .Ip "\fB\-Waggregate-return\fR" 4
2134 .IX Item "-Waggregate-return"
2135 Warn if any functions that return structures or unions are defined or
2136 called.  (In languages where you can return an array, this also elicits
2137 a warning.)
2138 .Ip "\fB\-Wstrict-prototypes (C only)\fR" 4
2139 .IX Item "-Wstrict-prototypes (C only)"
2140 Warn if a function is declared or defined without specifying the
2141 argument types.  (An old-style function definition is permitted without
2142 a warning if preceded by a declaration which specifies the argument
2143 types.)
2144 .Ip "\fB\-Wmissing-prototypes (C only)\fR" 4
2145 .IX Item "-Wmissing-prototypes (C only)"
2146 Warn if a global function is defined without a previous prototype
2147 declaration.  This warning is issued even if the definition itself
2148 provides a prototype.  The aim is to detect global functions that fail
2149 to be declared in header files.
2150 .Ip "\fB\-Wmissing-declarations\fR" 4
2151 .IX Item "-Wmissing-declarations"
2152 Warn if a global function is defined without a previous declaration.
2153 Do so even if the definition itself provides a prototype.
2154 Use this option to detect global functions that are not declared in
2155 header files.
2156 .Ip "\fB\-Wmissing-noreturn\fR" 4
2157 .IX Item "-Wmissing-noreturn"
2158 Warn about functions which might be candidates for attribute \f(CW\*(C`noreturn\*(C'\fR.
2159 Note these are only possible candidates, not absolute ones.  Care should
2160 be taken to manually verify functions actually do not ever return before
2161 adding the \f(CW\*(C`noreturn\*(C'\fR attribute, otherwise subtle code generation
2162 bugs could be introduced.  You will not get a warning for \f(CW\*(C`main\*(C'\fR in
2163 hosted C environments.
2164 .Ip "\fB\-Wmissing-format-attribute\fR" 4
2165 .IX Item "-Wmissing-format-attribute"
2166 If \fB\-Wformat\fR is enabled, also warn about functions which might be
2167 candidates for \f(CW\*(C`format\*(C'\fR attributes.  Note these are only possible
2168 candidates, not absolute ones.  \s-1GCC\s0 will guess that \f(CW\*(C`format\*(C'\fR
2169 attributes might be appropriate for any function that calls a function
2170 like \f(CW\*(C`vprintf\*(C'\fR or \f(CW\*(C`vscanf\*(C'\fR, but this might not always be the
2171 case, and some functions for which \f(CW\*(C`format\*(C'\fR attributes are
2172 appropriate may not be detected.  This option has no effect unless
2173 \&\fB\-Wformat\fR is enabled (possibly by \fB\-Wall\fR).
2174 .Ip "\fB\-Wpacked\fR" 4
2175 .IX Item "-Wpacked"
2176 Warn if a structure is given the packed attribute, but the packed
2177 attribute has no effect on the layout or size of the structure.
2178 Such structures may be mis-aligned for little benefit.  For
2179 instance, in this code, the variable \f(CW\*(C`f.x\*(C'\fR in \f(CW\*(C`struct bar\*(C'\fR
2180 will be misaligned even though \f(CW\*(C`struct bar\*(C'\fR does not itself
2181 have the packed attribute:
2183 .Vb 8
2184 \&        struct foo {
2185 \&          int x;
2186 \&          char a, b, c, d;
2187 \&        } __attribute__((packed));
2188 \&        struct bar {
2189 \&          char z;
2190 \&          struct foo f;
2191 \&        };
2193 .Ip "\fB\-Wpadded\fR" 4
2194 .IX Item "-Wpadded"
2195 Warn if padding is included in a structure, either to align an element
2196 of the structure or to align the whole structure.  Sometimes when this
2197 happens it is possible to rearrange the fields of the structure to
2198 reduce the padding and so make the structure smaller.
2199 .Ip "\fB\-Wredundant-decls\fR" 4
2200 .IX Item "-Wredundant-decls"
2201 Warn if anything is declared more than once in the same scope, even in
2202 cases where multiple declaration is valid and changes nothing.
2203 .Ip "\fB\-Wnested-externs (C only)\fR" 4
2204 .IX Item "-Wnested-externs (C only)"
2205 Warn if an \f(CW\*(C`extern\*(C'\fR declaration is encountered within a function.
2206 .Ip "\fB\-Wunreachable-code\fR" 4
2207 .IX Item "-Wunreachable-code"
2208 Warn if the compiler detects that code will never be executed.
2210 This option is intended to warn when the compiler detects that at
2211 least a whole line of source code will never be executed, because
2212 some condition is never satisfied or because it is after a
2213 procedure that never returns.
2215 It is possible for this option to produce a warning even though there
2216 are circumstances under which part of the affected line can be executed,
2217 so care should be taken when removing apparently-unreachable code.
2219 For instance, when a function is inlined, a warning may mean that the
2220 line is unreachable in only one inlined copy of the function.
2222 This option is not made part of \fB\-Wall\fR because in a debugging
2223 version of a program there is often substantial code which checks
2224 correct functioning of the program and is, hopefully, unreachable
2225 because the program does work.  Another common use of unreachable
2226 code is to provide behaviour which is selectable at compile-time.
2227 .Ip "\fB\-Winline\fR" 4
2228 .IX Item "-Winline"
2229 Warn if a function can not be inlined and it was declared as inline.
2230 .Ip "\fB\-Wlong-long\fR" 4
2231 .IX Item "-Wlong-long"
2232 Warn if \fBlong long\fR type is used.  This is default.  To inhibit
2233 the warning messages, use \fB\-Wno-long-long\fR.  Flags
2234 \&\fB\-Wlong-long\fR and \fB\-Wno-long-long\fR are taken into account
2235 only when \fB\-pedantic\fR flag is used.
2236 .Ip "\fB\-Wdisabled-optimization\fR" 4
2237 .IX Item "-Wdisabled-optimization"
2238 Warn if a requested optimization pass is disabled.  This warning does
2239 not generally indicate that there is anything wrong with your code; it
2240 merely indicates that \s-1GCC\s0's optimizers were unable to handle the code
2241 effectively.  Often, the problem is that your code is too big or too
2242 complex; \s-1GCC\s0 will refuse to optimize programs when the optimization
2243 itself is likely to take inordinate amounts of time.
2244 .Ip "\fB\-Werror\fR" 4
2245 .IX Item "-Werror"
2246 Make all warnings into errors.
2247 .Sh "Options for Debugging Your Program or \s-1GCC\s0"
2248 .IX Subsection "Options for Debugging Your Program or GCC"
2249 \&\s-1GCC\s0 has various special options that are used for debugging
2250 either your program or \s-1GCC:\s0
2251 .Ip "\fB\-g\fR" 4
2252 .IX Item "-g"
2253 Produce debugging information in the operating system's native format
2254 (stabs, \s-1COFF\s0, \s-1XCOFF\s0, or \s-1DWARF\s0).  \s-1GDB\s0 can work with this debugging
2255 information.
2257 On most systems that use stabs format, \fB\-g\fR enables use of extra
2258 debugging information that only \s-1GDB\s0 can use; this extra information
2259 makes debugging work better in \s-1GDB\s0 but will probably make other debuggers
2260 crash or
2261 refuse to read the program.  If you want to control for certain whether
2262 to generate the extra information, use \fB\-gstabs+\fR, \fB\-gstabs\fR,
2263 \&\fB\-gxcoff+\fR, \fB\-gxcoff\fR, \fB\-gdwarf-1+\fR, or \fB\-gdwarf-1\fR
2264 (see below).
2266 Unlike most other C compilers, \s-1GCC\s0 allows you to use \fB\-g\fR with
2267 \&\fB\-O\fR.  The shortcuts taken by optimized code may occasionally
2268 produce surprising results: some variables you declared may not exist
2269 at all; flow of control may briefly move where you did not expect it;
2270 some statements may not be executed because they compute constant
2271 results or their values were already at hand; some statements may
2272 execute in different places because they were moved out of loops.
2274 Nevertheless it proves possible to debug optimized output.  This makes
2275 it reasonable to use the optimizer for programs that might have bugs.
2277 The following options are useful when \s-1GCC\s0 is generated with the
2278 capability for more than one debugging format.
2279 .Ip "\fB\-ggdb\fR" 4
2280 .IX Item "-ggdb"
2281 Produce debugging information for use by \s-1GDB\s0.  This means to use the
2282 most expressive format available (\s-1DWARF\s0 2, stabs, or the native format
2283 if neither of those are supported), including \s-1GDB\s0 extensions if at all
2284 possible.
2285 .Ip "\fB\-gstabs\fR" 4
2286 .IX Item "-gstabs"
2287 Produce debugging information in stabs format (if that is supported),
2288 without \s-1GDB\s0 extensions.  This is the format used by \s-1DBX\s0 on most \s-1BSD\s0
2289 systems.  On \s-1MIPS\s0, Alpha and System V Release 4 systems this option
2290 produces stabs debugging output which is not understood by \s-1DBX\s0 or \s-1SDB\s0.
2291 On System V Release 4 systems this option requires the \s-1GNU\s0 assembler.
2292 .Ip "\fB\-gstabs+\fR" 4
2293 .IX Item "-gstabs+"
2294 Produce debugging information in stabs format (if that is supported),
2295 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
2296 use of these extensions is likely to make other debuggers crash or
2297 refuse to read the program.
2298 .Ip "\fB\-gcoff\fR" 4
2299 .IX Item "-gcoff"
2300 Produce debugging information in \s-1COFF\s0 format (if that is supported).
2301 This is the format used by \s-1SDB\s0 on most System V systems prior to
2302 System V Release 4.
2303 .Ip "\fB\-gxcoff\fR" 4
2304 .IX Item "-gxcoff"
2305 Produce debugging information in \s-1XCOFF\s0 format (if that is supported).
2306 This is the format used by the \s-1DBX\s0 debugger on \s-1IBM\s0 \s-1RS/6000\s0 systems.
2307 .Ip "\fB\-gxcoff+\fR" 4
2308 .IX Item "-gxcoff+"
2309 Produce debugging information in \s-1XCOFF\s0 format (if that is supported),
2310 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
2311 use of these extensions is likely to make other debuggers crash or
2312 refuse to read the program, and may cause assemblers other than the \s-1GNU\s0
2313 assembler (\s-1GAS\s0) to fail with an error.
2314 .Ip "\fB\-gdwarf\fR" 4
2315 .IX Item "-gdwarf"
2316 Produce debugging information in \s-1DWARF\s0 version 1 format (if that is
2317 supported).  This is the format used by \s-1SDB\s0 on most System V Release 4
2318 systems.
2319 .Ip "\fB\-gdwarf+\fR" 4
2320 .IX Item "-gdwarf+"
2321 Produce debugging information in \s-1DWARF\s0 version 1 format (if that is
2322 supported), using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger
2323 (\s-1GDB\s0).  The use of these extensions is likely to make other debuggers
2324 crash or refuse to read the program.
2325 .Ip "\fB\-gdwarf-2\fR" 4
2326 .IX Item "-gdwarf-2"
2327 Produce debugging information in \s-1DWARF\s0 version 2 format (if that is
2328 supported).  This is the format used by \s-1DBX\s0 on \s-1IRIX\s0 6.
2329 .Ip "\fB\-g\fR\fIlevel\fR" 4
2330 .IX Item "-glevel"
2331 .PD 0
2332 .Ip "\fB\-ggdb\fR\fIlevel\fR" 4
2333 .IX Item "-ggdblevel"
2334 .Ip "\fB\-gstabs\fR\fIlevel\fR" 4
2335 .IX Item "-gstabslevel"
2336 .Ip "\fB\-gcoff\fR\fIlevel\fR" 4
2337 .IX Item "-gcofflevel"
2338 .Ip "\fB\-gxcoff\fR\fIlevel\fR" 4
2339 .IX Item "-gxcofflevel"
2340 .Ip "\fB\-gdwarf\fR\fIlevel\fR" 4
2341 .IX Item "-gdwarflevel"
2342 .Ip "\fB\-gdwarf-2\fR\fIlevel\fR" 4
2343 .IX Item "-gdwarf-2level"
2345 Request debugging information and also use \fIlevel\fR to specify how
2346 much information.  The default level is 2.
2348 Level 1 produces minimal information, enough for making backtraces in
2349 parts of the program that you don't plan to debug.  This includes
2350 descriptions of functions and external variables, but no information
2351 about local variables and no line numbers.
2353 Level 3 includes extra information, such as all the macro definitions
2354 present in the program.  Some debuggers support macro expansion when
2355 you use \fB\-g3\fR.
2356 .Ip "\fB\-p\fR" 4
2357 .IX Item "-p"
2358 Generate extra code to write profile information suitable for the
2359 analysis program \f(CW\*(C`prof\*(C'\fR.  You must use this option when compiling
2360 the source files you want data about, and you must also use it when
2361 linking.
2362 .Ip "\fB\-pg\fR" 4
2363 .IX Item "-pg"
2364 Generate extra code to write profile information suitable for the
2365 analysis program \f(CW\*(C`gprof\*(C'\fR.  You must use this option when compiling
2366 the source files you want data about, and you must also use it when
2367 linking.
2368 .Ip "\fB\-a\fR" 4
2369 .IX Item "-a"
2370 Generate extra code to write profile information for basic blocks, which will
2371 record the number of times each basic block is executed, the basic block start
2372 address, and the function name containing the basic block.  If \fB\-g\fR is
2373 used, the line number and filename of the start of the basic block will also be
2374 recorded.  If not overridden by the machine description, the default action is
2375 to append to the text file \fIbb.out\fR.
2377 This data could be analyzed by a program like \f(CW\*(C`tcov\*(C'\fR.  Note,
2378 however, that the format of the data is not what \f(CW\*(C`tcov\*(C'\fR expects.
2379 Eventually \s-1GNU\s0 \f(CW\*(C`gprof\*(C'\fR should be extended to process this data.
2380 .Ip "\fB\-Q\fR" 4
2381 .IX Item "-Q"
2382 Makes the compiler print out each function name as it is compiled, and
2383 print some statistics about each pass when it finishes.
2384 .Ip "\fB\-ftime-report\fR" 4
2385 .IX Item "-ftime-report"
2386 Makes the compiler print some statistics about the time consumed by each
2387 pass when it finishes.
2388 .Ip "\fB\-fmem-report\fR" 4
2389 .IX Item "-fmem-report"
2390 Makes the compiler print some statistics about permanent memory
2391 allocation when it finishes.
2392 .Ip "\fB\-ax\fR" 4
2393 .IX Item "-ax"
2394 Generate extra code to profile basic blocks.  Your executable will
2395 produce output that is a superset of that produced when \fB\-a\fR is
2396 used.  Additional output is the source and target address of the basic
2397 blocks where a jump takes place, the number of times a jump is executed,
2398 and (optionally) the complete sequence of basic blocks being executed.
2399 The output is appended to file \fIbb.out\fR.
2401 You can examine different profiling aspects without recompilation.  Your
2402 executable will read a list of function names from file \fIbb.in\fR.
2403 Profiling starts when a function on the list is entered and stops when
2404 that invocation is exited.  To exclude a function from profiling, prefix
2405 its name with \fB-\fR.  If a function name is not unique, you can
2406 disambiguate it by writing it in the form
2407 \&\fB/path/filename.d:functionname\fR.  Your executable will write the
2408 available paths and filenames in file \fIbb.out\fR.
2410 Several function names have a special meaning:
2411 .RS 4
2412 .if n .Ip "\f(CW""""_\|_bb_jumps_\|_""""\fR" 4
2413 .el .Ip "\f(CW_\|_bb_jumps_\|_\fR" 4
2414 .IX Item "__bb_jumps__"
2415 Write source, target and frequency of jumps to file \fIbb.out\fR.
2416 .if n .Ip "\f(CW""""_\|_bb_hidecall_\|_""""\fR" 4
2417 .el .Ip "\f(CW_\|_bb_hidecall_\|_\fR" 4
2418 .IX Item "__bb_hidecall__"
2419 Exclude function calls from frequency count.
2420 .if n .Ip "\f(CW""""_\|_bb_showret_\|_""""\fR" 4
2421 .el .Ip "\f(CW_\|_bb_showret_\|_\fR" 4
2422 .IX Item "__bb_showret__"
2423 Include function returns in frequency count.
2424 .if n .Ip "\f(CW""""_\|_bb_trace_\|_""""\fR" 4
2425 .el .Ip "\f(CW_\|_bb_trace_\|_\fR" 4
2426 .IX Item "__bb_trace__"
2427 Write the sequence of basic blocks executed to file \fIbbtrace.gz\fR.
2428 The file will be compressed using the program \fBgzip\fR, which must
2429 exist in your \fB\s-1PATH\s0\fR.  On systems without the \fBpopen\fR
2430 function, the file will be named \fIbbtrace\fR and will not be
2431 compressed.  \fBProfiling for even a few seconds on these systems
2432 will produce a very large file.\fR  Note: \f(CW\*(C`_\|_bb_hidecall_\|_\*(C'\fR and
2433 \&\f(CW\*(C`_\|_bb_showret_\|_\*(C'\fR will not affect the sequence written to
2434 \&\fIbbtrace.gz\fR.
2436 .RS 4
2438 Here's a short example using different profiling parameters
2439 in file \fIbb.in\fR.  Assume function \f(CW\*(C`foo\*(C'\fR consists of basic blocks
2440 1 and 2 and is called twice from block 3 of function \f(CW\*(C`main\*(C'\fR.  After
2441 the calls, block 3 transfers control to block 4 of \f(CW\*(C`main\*(C'\fR.
2443 With \f(CW\*(C`_\|_bb_trace_\|_\*(C'\fR and \f(CW\*(C`main\*(C'\fR contained in file \fIbb.in\fR,
2444 the following sequence of blocks is written to file \fIbbtrace.gz\fR:
2445 0 3 1 2 1 2 4.  The return from block 2 to block 3 is not shown, because
2446 the return is to a point inside the block and not to the top.  The
2447 block address 0 always indicates, that control is transferred
2448 to the trace from somewhere outside the observed functions.  With
2449 \&\fB\-foo\fR added to \fIbb.in\fR, the blocks of function
2450 \&\f(CW\*(C`foo\*(C'\fR are removed from the trace, so only 0 3 4 remains.
2452 With \f(CW\*(C`_\|_bb_jumps_\|_\*(C'\fR and \f(CW\*(C`main\*(C'\fR contained in file \fIbb.in\fR,
2453 jump frequencies will be written to file \fIbb.out\fR.  The
2454 frequencies are obtained by constructing a trace of blocks
2455 and incrementing a counter for every neighbouring pair of blocks
2456 in the trace.  The trace 0 3 1 2 1 2 4 displays the following
2457 frequencies:
2459 .Vb 5
2460 \&        Jump from block 0x0 to block 0x3 executed 1 time(s)
2461 \&        Jump from block 0x3 to block 0x1 executed 1 time(s)
2462 \&        Jump from block 0x1 to block 0x2 executed 2 time(s)
2463 \&        Jump from block 0x2 to block 0x1 executed 1 time(s)
2464 \&        Jump from block 0x2 to block 0x4 executed 1 time(s)
2466 With \f(CW\*(C`_\|_bb_hidecall_\|_\*(C'\fR, control transfer due to call instructions
2467 is removed from the trace, that is the trace is cut into three parts: 0
2468 3 4, 0 1 2 and 0 1 2.  With \f(CW\*(C`_\|_bb_showret_\|_\*(C'\fR, control transfer due
2469 to return instructions is added to the trace.  The trace becomes: 0 3 1
2470 2 3 1 2 3 4.  Note, that this trace is not the same, as the sequence
2471 written to \fIbbtrace.gz\fR.  It is solely used for counting jump
2472 frequencies.
2474 .Ip "\fB\-fprofile-arcs\fR" 4
2475 .IX Item "-fprofile-arcs"
2476 Instrument \fIarcs\fR during compilation.  For each function of your
2477 program, \s-1GCC\s0 creates a program flow graph, then finds a spanning tree
2478 for the graph.  Only arcs that are not on the spanning tree have to be
2479 instrumented: the compiler adds code to count the number of times that these
2480 arcs are executed.  When an arc is the only exit or only entrance to a
2481 block, the instrumentation code can be added to the block; otherwise, a
2482 new basic block must be created to hold the instrumentation code.
2484 Since not every arc in the program must be instrumented, programs
2485 compiled with this option run faster than programs compiled with
2486 \&\fB\-a\fR, which adds instrumentation code to every basic block in the
2487 program.  The tradeoff: since \f(CW\*(C`gcov\*(C'\fR does not have
2488 execution counts for all branches, it must start with the execution
2489 counts for the instrumented branches, and then iterate over the program
2490 flow graph until the entire graph has been solved.  Hence, \f(CW\*(C`gcov\*(C'\fR
2491 runs a little more slowly than a program which uses information from
2492 \&\fB\-a\fR.
2494 \&\fB\-fprofile-arcs\fR also makes it possible to estimate branch
2495 probabilities, and to calculate basic block execution counts.  In
2496 general, basic block execution counts do not give enough information to
2497 estimate all branch probabilities.  When the compiled program exits, it
2498 saves the arc execution counts to a file called
2499 \&\fI\fIsourcename\fI.da\fR.  Use the compiler option
2500 \&\fB\-fbranch-probabilities\fR when recompiling, to optimize using estimated
2501 branch probabilities.
2502 .Ip "\fB\-ftest-coverage\fR" 4
2503 .IX Item "-ftest-coverage"
2504 Create data files for the \f(CW\*(C`gcov\*(C'\fR code-coverage utility.
2505 The data file names begin with the name of your source file:
2506 .RS 4
2507 .Ip "\fIsourcename\fR\fB.bb\fR" 4
2508 .IX Item "sourcename.bb"
2509 A mapping from basic blocks to line numbers, which \f(CW\*(C`gcov\*(C'\fR uses to
2510 associate basic block execution counts with line numbers.
2511 .Ip "\fIsourcename\fR\fB.bbg\fR" 4
2512 .IX Item "sourcename.bbg"
2513 A list of all arcs in the program flow graph.  This allows \f(CW\*(C`gcov\*(C'\fR
2514 to reconstruct the program flow graph, so that it can compute all basic
2515 block and arc execution counts from the information in the
2516 \&\f(CW\*(C`\f(CIsourcename\f(CW.da\*(C'\fR file (this last file is the output from
2517 \&\fB\-fprofile-arcs\fR).
2519 .RS 4
2521 .Ip "\fB\-d\fR\fIletters\fR" 4
2522 .IX Item "-dletters"
2523 Says to make debugging dumps during compilation at times specified by
2524 \&\fIletters\fR.  This is used for debugging the compiler.  The file names
2525 for most of the dumps are made by appending a pass number and a word to
2526 the source file name (e.g.  \fIfoo.c.00.rtl\fR or \fIfoo.c.01.sibling\fR).
2527 Here are the possible letters for use in \fIletters\fR, and their meanings:
2528 .RS 4
2529 .Ip "\fBA\fR" 4
2530 .IX Item "A"
2531 Annotate the assembler output with miscellaneous debugging information.
2532 .Ip "\fBb\fR" 4
2533 .IX Item "b"
2534 Dump after computing branch probabilities, to \fI\fIfile\fI.11.bp\fR.
2535 .Ip "\fBB\fR" 4
2536 .IX Item "B"
2537 Dump after block reordering, to \fI\fIfile\fI.26.bbro\fR.
2538 .Ip "\fBc\fR" 4
2539 .IX Item "c"
2540 Dump after instruction combination, to the file \fI\fIfile\fI.14.combine\fR.
2541 .Ip "\fBC\fR" 4
2542 .IX Item "C"
2543 Dump after the first if conversion, to the file \fI\fIfile\fI.15.ce\fR.
2544 .Ip "\fBd\fR" 4
2545 .IX Item "d"
2546 Dump after delayed branch scheduling, to \fI\fIfile\fI.29.dbr\fR.
2547 .Ip "\fBD\fR" 4
2548 .IX Item "D"
2549 Dump all macro definitions, at the end of preprocessing, in addition to
2550 normal output.
2551 .Ip "\fBe\fR" 4
2552 .IX Item "e"
2553 Dump after \s-1SSA\s0 optimizations, to \fI\fIfile\fI.05.ssa\fR and
2554 \&\fI\fIfile\fI.06.ussa\fR.
2555 .Ip "\fBE\fR" 4
2556 .IX Item "E"
2557 Dump after the second if conversion, to \fI\fIfile\fI.24.ce2\fR.
2558 .Ip "\fBf\fR" 4
2559 .IX Item "f"
2560 Dump after life analysis, to \fI\fIfile\fI.13.life\fR.
2561 .Ip "\fBF\fR" 4
2562 .IX Item "F"
2563 Dump after purging \f(CW\*(C`ADDRESSOF\*(C'\fR codes, to \fI\fIfile\fI.04.addressof\fR.
2564 .Ip "\fBg\fR" 4
2565 .IX Item "g"
2566 Dump after global register allocation, to \fI\fIfile\fI.19.greg\fR.
2567 .Ip "\fBo\fR" 4
2568 .IX Item "o"
2569 Dump after post-reload \s-1CSE\s0 and other optimizations, to \fI\fIfile\fI.20.postreload\fR.
2570 .Ip "\fBG\fR" 4
2571 .IX Item "G"
2572 Dump after \s-1GCSE\s0, to \fI\fIfile\fI.08.gcse\fR.
2573 .Ip "\fBi\fR" 4
2574 .IX Item "i"
2575 Dump after sibling call optimizations, to \fI\fIfile\fI.01.sibling\fR.
2576 .Ip "\fBj\fR" 4
2577 .IX Item "j"
2578 Dump after the first jump optimization, to \fI\fIfile\fI.02.jump\fR.
2579 .Ip "\fBJ\fR" 4
2580 .IX Item "J"
2581 Dump after the last jump optimization, to \fI\fIfile\fI.27.jump2\fR.
2582 .Ip "\fBk\fR" 4
2583 .IX Item "k"
2584 Dump after conversion from registers to stack, to \fI\fIfile\fI.29.stack\fR.
2585 .Ip "\fBl\fR" 4
2586 .IX Item "l"
2587 Dump after local register allocation, to \fI\fIfile\fI.18.lreg\fR.
2588 .Ip "\fBL\fR" 4
2589 .IX Item "L"
2590 Dump after loop optimization, to \fI\fIfile\fI.09.loop\fR.
2591 .Ip "\fBM\fR" 4
2592 .IX Item "M"
2593 Dump after performing the machine dependent reorganisation pass, to
2594 \&\fI\fIfile\fI.28.mach\fR.
2595 .Ip "\fBn\fR" 4
2596 .IX Item "n"
2597 Dump after register renumbering, to \fI\fIfile\fI.23.rnreg\fR.
2598 .Ip "\fBN\fR" 4
2599 .IX Item "N"
2600 Dump after the register move pass, to \fI\fIfile\fI.16.regmove\fR.
2601 .Ip "\fBr\fR" 4
2602 .IX Item "r"
2603 Dump after \s-1RTL\s0 generation, to \fI\fIfile\fI.00.rtl\fR.
2604 .Ip "\fBR\fR" 4
2605 .IX Item "R"
2606 Dump after the second instruction scheduling pass, to
2607 \&\fI\fIfile\fI.25.sched2\fR.
2608 .Ip "\fBs\fR" 4
2609 .IX Item "s"
2610 Dump after \s-1CSE\s0 (including the jump optimization that sometimes follows
2611 \&\s-1CSE\s0), to \fI\fIfile\fI.03.cse\fR.
2612 .Ip "\fBS\fR" 4
2613 .IX Item "S"
2614 Dump after the first instruction scheduling pass, to
2615 \&\fI\fIfile\fI.17.sched\fR.
2616 .Ip "\fBt\fR" 4
2617 .IX Item "t"
2618 Dump after the second \s-1CSE\s0 pass (including the jump optimization that
2619 sometimes follows \s-1CSE\s0), to \fI\fIfile\fI.10.cse2\fR.
2620 .Ip "\fBw\fR" 4
2621 .IX Item "w"
2622 Dump after the second flow pass, to \fI\fIfile\fI.21.flow2\fR.
2623 .Ip "\fBX\fR" 4
2624 .IX Item "X"
2625 Dump after dead code elimination, to \fI\fIfile\fI.06.dce\fR.
2626 .Ip "\fBz\fR" 4
2627 .IX Item "z"
2628 Dump after the peephole pass, to \fI\fIfile\fI.22.peephole2\fR.
2629 .Ip "\fBa\fR" 4
2630 .IX Item "a"
2631 Produce all the dumps listed above.
2632 .Ip "\fBm\fR" 4
2633 .IX Item "m"
2634 Print statistics on memory usage, at the end of the run, to
2635 standard error.
2636 .Ip "\fBp\fR" 4
2637 .IX Item "p"
2638 Annotate the assembler output with a comment indicating which
2639 pattern and alternative was used.  The length of each instruction is
2640 also printed.
2641 .Ip "\fBP\fR" 4
2642 .IX Item "P"
2643 Dump the \s-1RTL\s0 in the assembler output as a comment before each instruction.
2644 Also turns on \fB\-dp\fR annotation.
2645 .Ip "\fBv\fR" 4
2646 .IX Item "v"
2647 For each of the other indicated dump files (except for
2648 \&\fI\fIfile\fI.00.rtl\fR), dump a representation of the control flow graph
2649 suitable for viewing with \s-1VCG\s0 to \fI\fIfile\fI.\fIpass\fI.vcg\fR.
2650 .Ip "\fBx\fR" 4
2651 .IX Item "x"
2652 Just generate \s-1RTL\s0 for a function instead of compiling it.  Usually used
2653 with \fBr\fR.
2654 .Ip "\fBy\fR" 4
2655 .IX Item "y"
2656 Dump debugging information during parsing, to standard error.
2658 .RS 4
2660 .Ip "\fB\-fdump-unnumbered\fR" 4
2661 .IX Item "-fdump-unnumbered"
2662 When doing debugging dumps (see \fB\-d\fR option above), suppress instruction
2663 numbers and line number note output.  This makes it more feasible to
2664 use diff on debugging dumps for compiler invocations with different
2665 options, in particular with and without \fB\-g\fR.
2666 .Ip "\fB\-fdump-translation-unit (C and \*(C+ only)\fR" 4
2667 .IX Item "-fdump-translation-unit (C and  only)"
2668 .PD 0
2669 .Ip "\fB\-fdump-translation-unit-\fR\fInumber\fR \fB(C and \*(C+ only)\fR" 4
2670 .IX Item "-fdump-translation-unit-number (C and  only)"
2672 Dump a representation of the tree structure for the entire translation
2673 unit to a file. The file name is made by appending \fI.tu\fR to the
2674 source file name. If the \fB-\fR\fInumber\fR form is used, \fInumber\fR
2675 controls the details of the dump as described for the \fB\-fdump-tree\fR options.
2676 .Ip "\fB\-fdump-class-hierarchy (\*(C+ only)\fR" 4
2677 .IX Item "-fdump-class-hierarchy ( only)"
2678 .PD 0
2679 .Ip "\fB\-fdump-class-hierarchy-\fR\fInumber\fR \fB(\*(C+ only)\fR" 4
2680 .IX Item "-fdump-class-hierarchy-number ( only)"
2682 Dump a representation of each class's hierarchy and virtual function
2683 table layout to a file. The file name is made by appending \fI.class\fR
2684 to the source file name. If the \fB-\fR\fInumber\fR form is used, \fInumber\fR
2685 controls the details of the dump as described for the \fB\-fdump-tree\fR
2686 options.
2687 .Ip "\fB\-fdump-ast-\fR\fIswitch\fR \fB(\*(C+ only)\fR" 4
2688 .IX Item "-fdump-ast-switch ( only)"
2689 .PD 0
2690 .Ip "\fB\-fdump-ast-\fR\fIswitch\fR\fB-\fR\fInumber\fR \fB(\*(C+ only)\fR" 4
2691 .IX Item "-fdump-ast-switch-number ( only)"
2693 Control the dumping at various stages of processing the abstract syntax
2694 tree to a file. The file name is generated by appending a switch
2695 specific suffix to the source file name. If the \fB-\fR\fInumber\fR form is
2696 used, \fInumber\fR is a bit mask which controls the details of the
2697 dump. The following bits are meaningful (these are not set symbolically,
2698 as the primary function of these dumps is for debugging gcc itself):
2699 .RS 4
2700 .Ip "\fBbit0 (1)\fR" 4
2701 .IX Item "bit0 (1)"
2702 Print the address of each node. Usually this is not meaningful as it
2703 changes according to the environment and source file.
2704 .Ip "\fBbit1 (2)\fR" 4
2705 .IX Item "bit1 (2)"
2706 Inhibit dumping of members of a scope or body of a function, unless they
2707 are reachable by some other path.
2709 .RS 4
2711 The following tree dumps are possible:
2712 .RS 4
2714 .Ip "\fBoriginal\fR" 4
2715 .IX Item "original"
2716 Dump before any tree based optimization, to \fI\fIfile\fI.original\fR.
2717 .Ip "\fBoptimized\fR" 4
2718 .IX Item "optimized"
2719 Dump after all tree based optimization, to \fI\fIfile\fI.optimized\fR.
2721 .RS 4
2723 .Ip "\fB\-fpretend-float\fR" 4
2724 .IX Item "-fpretend-float"
2725 When running a cross-compiler, pretend that the target machine uses the
2726 same floating point format as the host machine.  This causes incorrect
2727 output of the actual floating constants, but the actual instruction
2728 sequence will probably be the same as \s-1GCC\s0 would make when running on
2729 the target machine.
2730 .Ip "\fB\-save-temps\fR" 4
2731 .IX Item "-save-temps"
2732 Store the usual ``temporary'' intermediate files permanently; place them
2733 in the current directory and name them based on the source file.  Thus,
2734 compiling \fIfoo.c\fR with \fB\-c \-save-temps\fR would produce files
2735 \&\fIfoo.i\fR and \fIfoo.s\fR, as well as \fIfoo.o\fR.  This creates a
2736 preprocessed \fIfoo.i\fR output file even though the compiler now
2737 normally uses an integrated preprocessor.
2738 .Ip "\fB\-time\fR" 4
2739 .IX Item "-time"
2740 Report the \s-1CPU\s0 time taken by each subprocess in the compilation
2741 sequence.  For C source files, this is the compiler proper and assembler
2742 (plus the linker if linking is done).  The output looks like this:
2744 .Vb 2
2745 \&        # cc1 0.12 0.01
2746 \&        # as 0.00 0.01
2748 The first number on each line is the ``user time,'' that is time spent
2749 executing the program itself.  The second number is ``system time,''
2750 time spent executing operating system routines on behalf of the program.
2751 Both numbers are in seconds.
2752 .Ip "\fB\-print-file-name=\fR\fIlibrary\fR" 4
2753 .IX Item "-print-file-name=library"
2754 Print the full absolute name of the library file \fIlibrary\fR that
2755 would be used when linking\-\-\-and don't do anything else.  With this
2756 option, \s-1GCC\s0 does not compile or link anything; it just prints the
2757 file name.
2758 .Ip "\fB\-print-multi-directory\fR" 4
2759 .IX Item "-print-multi-directory"
2760 Print the directory name corresponding to the multilib selected by any
2761 other switches present in the command line.  This directory is supposed
2762 to exist in \fB\s-1GCC_EXEC_PREFIX\s0\fR.
2763 .Ip "\fB\-print-multi-lib\fR" 4
2764 .IX Item "-print-multi-lib"
2765 Print the mapping from multilib directory names to compiler switches
2766 that enable them.  The directory name is separated from the switches by
2767 \&\fB;\fR, and each switch starts with an \fB@} instead of the
2768 \&\f(CB@samp\fB{-\fR, without spaces between multiple switches.  This is supposed to
2769 ease shell-processing.
2770 .Ip "\fB\-print-prog-name=\fR\fIprogram\fR" 4
2771 .IX Item "-print-prog-name=program"
2772 Like \fB\-print-file-name\fR, but searches for a program such as \fBcpp\fR.
2773 .Ip "\fB\-print-libgcc-file-name\fR" 4
2774 .IX Item "-print-libgcc-file-name"
2775 Same as \fB\-print-file-name=libgcc.a\fR.
2777 This is useful when you use \fB\-nostdlib\fR or \fB\-nodefaultlibs\fR
2778 but you do want to link with \fIlibgcc.a\fR.  You can do
2780 .Vb 1
2781 \&        gcc -nostdlib I<files>... `gcc -print-libgcc-file-name`
2783 .Ip "\fB\-print-search-dirs\fR" 4
2784 .IX Item "-print-search-dirs"
2785 Print the name of the configured installation directory and a list of
2786 program and library directories gcc will search\-\-\-and don't do anything else.
2788 This is useful when gcc prints the error message
2789 \&\fBinstallation problem, cannot exec cpp0: No such file or directory\fR.
2790 To resolve this you either need to put \fIcpp0\fR and the other compiler
2791 components where gcc expects to find them, or you can set the environment
2792 variable \fB\s-1GCC_EXEC_PREFIX\s0\fR to the directory where you installed them.
2793 Don't forget the trailing '/'.
2794 .Ip "\fB\-dumpmachine\fR" 4
2795 .IX Item "-dumpmachine"
2796 Print the compiler's target machine (for example,
2797 \&\fBi686\-pc-linux-gnu\fR)\-\-\-and don't do anything else.
2798 .Ip "\fB\-dumpversion\fR" 4
2799 .IX Item "-dumpversion"
2800 Print the compiler version (for example, \fB3.0\fR)\-\-\-and don't do
2801 anything else.
2802 .Ip "\fB\-dumpspecs\fR" 4
2803 .IX Item "-dumpspecs"
2804 Print the compiler's built-in specs\-\-\-and don't do anything else.  (This
2805 is used when \s-1GCC\s0 itself is being built.)  
2806 .Sh "Options That Control Optimization"
2807 .IX Subsection "Options That Control Optimization"
2808 These options control various sorts of optimizations:
2809 .Ip "\fB\-O\fR" 4
2810 .IX Item "-O"
2811 .PD 0
2812 .Ip "\fB\-O1\fR" 4
2813 .IX Item "-O1"
2815 Optimize.  Optimizing compilation takes somewhat more time, and a lot
2816 more memory for a large function.
2818 Without \fB\-O\fR, the compiler's goal is to reduce the cost of
2819 compilation and to make debugging produce the expected results.
2820 Statements are independent: if you stop the program with a breakpoint
2821 between statements, you can then assign a new value to any variable or
2822 change the program counter to any other statement in the function and
2823 get exactly the results you would expect from the source code.
2825 Without \fB\-O\fR, the compiler only allocates variables declared
2826 \&\f(CW\*(C`register\*(C'\fR in registers.  The resulting compiled code is a little
2827 worse than produced by \s-1PCC\s0 without \fB\-O\fR.
2829 With \fB\-O\fR, the compiler tries to reduce code size and execution
2830 time.
2832 When you specify \fB\-O\fR, the compiler turns on \fB\-fthread-jumps\fR
2833 and \fB\-fdefer-pop\fR on all machines.  The compiler turns on
2834 \&\fB\-fdelayed-branch\fR on machines that have delay slots, and
2835 \&\fB\-fomit-frame-pointer\fR on machines that can support debugging even
2836 without a frame pointer.  On some machines the compiler also turns
2837 on other flags.
2838 .Ip "\fB\-O2\fR" 4
2839 .IX Item "-O2"
2840 Optimize even more.  \s-1GCC\s0 performs nearly all supported optimizations
2841 that do not involve a space-speed tradeoff.  The compiler does not
2842 perform loop unrolling or function inlining when you specify \fB\-O2\fR.
2843 As compared to \fB\-O\fR, this option increases both compilation time
2844 and the performance of the generated code.
2846 \&\fB\-O2\fR turns on all optional optimizations except for loop unrolling,
2847 function inlining, and register renaming.  It also turns on the
2848 \&\fB\-fforce-mem\fR option on all machines and frame pointer elimination
2849 on machines where doing so does not interfere with debugging.
2850 .Ip "\fB\-O3\fR" 4
2851 .IX Item "-O3"
2852 Optimize yet more.  \fB\-O3\fR turns on all optimizations specified by
2853 \&\fB\-O2\fR and also turns on the \fB\-finline-functions\fR and
2854 \&\fB\-frename-registers\fR options.
2855 .Ip "\fB\-O0\fR" 4
2856 .IX Item "-O0"
2857 Do not optimize.
2858 .Ip "\fB\-Os\fR" 4
2859 .IX Item "-Os"
2860 Optimize for size.  \fB\-Os\fR enables all \fB\-O2\fR optimizations that
2861 do not typically increase code size.  It also performs further
2862 optimizations designed to reduce code size.
2864 If you use multiple \fB\-O\fR options, with or without level numbers,
2865 the last such option is the one that is effective.
2867 Options of the form \fB\-f\fR\fIflag\fR specify machine-independent
2868 flags.  Most flags have both positive and negative forms; the negative
2869 form of \fB\-ffoo\fR would be \fB\-fno-foo\fR.  In the table below,
2870 only one of the forms is listed\-\-\-the one which is not the default.
2871 You can figure out the other form by either removing \fBno-\fR or
2872 adding it.
2873 .Ip "\fB\-ffloat-store\fR" 4
2874 .IX Item "-ffloat-store"
2875 Do not store floating point variables in registers, and inhibit other
2876 options that might change whether a floating point value is taken from a
2877 register or memory.
2879 This option prevents undesirable excess precision on machines such as
2880 the 68000 where the floating registers (of the 68881) keep more
2881 precision than a \f(CW\*(C`double\*(C'\fR is supposed to have.  Similarly for the
2882 x86 architecture.  For most programs, the excess precision does only
2883 good, but a few programs rely on the precise definition of \s-1IEEE\s0 floating
2884 point.  Use \fB\-ffloat-store\fR for such programs, after modifying
2885 them to store all pertinent intermediate computations into variables.
2886 .Ip "\fB\-fno-default-inline\fR" 4
2887 .IX Item "-fno-default-inline"
2888 Do not make member functions inline by default merely because they are
2889 defined inside the class scope (\*(C+ only).  Otherwise, when you specify
2890 \&\fB\-O\fR, member functions defined inside class scope are compiled
2891 inline by default; i.e., you don't need to add \fBinline\fR in front of
2892 the member function name.
2893 .Ip "\fB\-fno-defer-pop\fR" 4
2894 .IX Item "-fno-defer-pop"
2895 Always pop the arguments to each function call as soon as that function
2896 returns.  For machines which must pop arguments after a function call,
2897 the compiler normally lets arguments accumulate on the stack for several
2898 function calls and pops them all at once.
2899 .Ip "\fB\-fforce-mem\fR" 4
2900 .IX Item "-fforce-mem"
2901 Force memory operands to be copied into registers before doing
2902 arithmetic on them.  This produces better code by making all memory
2903 references potential common subexpressions.  When they are not common
2904 subexpressions, instruction combination should eliminate the separate
2905 register-load.  The \fB\-O2\fR option turns on this option.
2906 .Ip "\fB\-fforce-addr\fR" 4
2907 .IX Item "-fforce-addr"
2908 Force memory address constants to be copied into registers before
2909 doing arithmetic on them.  This may produce better code just as
2910 \&\fB\-fforce-mem\fR may.
2911 .Ip "\fB\-fomit-frame-pointer\fR" 4
2912 .IX Item "-fomit-frame-pointer"
2913 Don't keep the frame pointer in a register for functions that
2914 don't need one.  This avoids the instructions to save, set up and
2915 restore frame pointers; it also makes an extra register available
2916 in many functions.  \fBIt also makes debugging impossible on
2917 some machines.\fR
2919 On some machines, such as the Vax, this flag has no effect, because
2920 the standard calling sequence automatically handles the frame pointer
2921 and nothing is saved by pretending it doesn't exist.  The
2922 machine-description macro \f(CW\*(C`FRAME_POINTER_REQUIRED\*(C'\fR controls
2923 whether a target machine supports this flag.  
2924 .Ip "\fB\-foptimize-sibling-calls\fR" 4
2925 .IX Item "-foptimize-sibling-calls"
2926 Optimize sibling and tail recursive calls.
2927 .Ip "\fB\-ftrapv\fR" 4
2928 .IX Item "-ftrapv"
2929 This option generates traps for signed overflow on addition, subtraction,
2930 multiplication operations.
2931 .Ip "\fB\-fno-inline\fR" 4
2932 .IX Item "-fno-inline"
2933 Don't pay attention to the \f(CW\*(C`inline\*(C'\fR keyword.  Normally this option
2934 is used to keep the compiler from expanding any functions inline.
2935 Note that if you are not optimizing, no functions can be expanded inline.
2936 .Ip "\fB\-finline-functions\fR" 4
2937 .IX Item "-finline-functions"
2938 Integrate all simple functions into their callers.  The compiler
2939 heuristically decides which functions are simple enough to be worth
2940 integrating in this way.
2942 If all calls to a given function are integrated, and the function is
2943 declared \f(CW\*(C`static\*(C'\fR, then the function is normally not output as
2944 assembler code in its own right.
2945 .Ip "\fB\-finline-limit=\fR\fIn\fR" 4
2946 .IX Item "-finline-limit=n"
2947 By default, gcc limits the size of functions that can be inlined.  This flag
2948 allows the control of this limit for functions that are explicitly marked as
2949 inline (ie marked with the inline keyword or defined within the class
2950 definition in c++).  \fIn\fR is the size of functions that can be inlined in
2951 number of pseudo instructions (not counting parameter handling).  The default
2952 value of n is 10000.  Increasing this value can result in more inlined code at
2953 the cost of compilation time and memory consumption.  Decreasing usually makes
2954 the compilation faster and less code will be inlined (which presumably
2955 means slower programs).  This option is particularly useful for programs that
2956 use inlining heavily such as those based on recursive templates with c++.
2958 \&\fINote:\fR pseudo instruction represents, in this particular context, an
2959 abstract measurement of function's size.  In no way, it represents a count
2960 of assembly instructions and as such its exact meaning might change from one
2961 release to an another.
2962 .Ip "\fB\-fkeep-inline-functions\fR" 4
2963 .IX Item "-fkeep-inline-functions"
2964 Even if all calls to a given function are integrated, and the function
2965 is declared \f(CW\*(C`static\*(C'\fR, nevertheless output a separate run-time
2966 callable version of the function.  This switch does not affect
2967 \&\f(CW\*(C`extern inline\*(C'\fR functions.
2968 .Ip "\fB\-fkeep-static-consts\fR" 4
2969 .IX Item "-fkeep-static-consts"
2970 Emit variables declared \f(CW\*(C`static const\*(C'\fR when optimization isn't turned
2971 on, even if the variables aren't referenced.
2973 \&\s-1GCC\s0 enables this option by default.  If you want to force the compiler to
2974 check if the variable was referenced, regardless of whether or not
2975 optimization is turned on, use the \fB\-fno-keep-static-consts\fR option.
2976 .Ip "\fB\-fno-function-cse\fR" 4
2977 .IX Item "-fno-function-cse"
2978 Do not put function addresses in registers; make each instruction that
2979 calls a constant function contain the function's address explicitly.
2981 This option results in less efficient code, but some strange hacks
2982 that alter the assembler output may be confused by the optimizations
2983 performed when this option is not used.
2984 .Ip "\fB\-ffast-math\fR" 4
2985 .IX Item "-ffast-math"
2986 Sets \fB\-fno-math-errno\fR, \fB\-funsafe-math-optimizations\fR,
2987 and \fB\-fno-trapping-math\fR.
2989 This option causes the preprocessor macro \f(CW\*(C`_\|_FAST_MATH_\|_\*(C'\fR to be defined.
2991 This option should never be turned on by any \fB\-O\fR option since
2992 it can result in incorrect output for programs which depend on
2993 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
2994 math functions.
2995 .Ip "\fB\-fno-math-errno\fR" 4
2996 .IX Item "-fno-math-errno"
2997 Do not set \s-1ERRNO\s0 after calling math functions that are executed
2998 with a single instruction, e.g., sqrt.  A program that relies on
2999 \&\s-1IEEE\s0 exceptions for math error handling may want to use this flag
3000 for speed while maintaining \s-1IEEE\s0 arithmetic compatibility.
3002 This option should never be turned on by any \fB\-O\fR option since
3003 it can result in incorrect output for programs which depend on
3004 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
3005 math functions.
3007 The default is \fB\-fmath-errno\fR.  The \fB\-ffast-math\fR option
3008 sets \fB\-fno-math-errno\fR.
3009 .Ip "\fB\-funsafe-math-optimizations\fR" 4
3010 .IX Item "-funsafe-math-optimizations"
3011 Allow optimizations for floating-point arithmetic that (a) assume
3012 that arguments and results are valid and (b) may violate \s-1IEEE\s0 or
3013 \&\s-1ANSI\s0 standards.  When used at link-time, it may include libraries
3014 or startup files that change the default \s-1FPU\s0 control word or other
3015 similar optimizations.
3017 This option should never be turned on by any \fB\-O\fR option since
3018 it can result in incorrect output for programs which depend on
3019 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
3020 math functions.
3022 The default is \fB\-fno-unsafe-math-optimizations\fR.  The
3023 \&\fB\-ffast-math\fR option sets \fB\-funsafe-math-optimizations\fR.
3024 .Ip "\fB\-fno-trapping-math\fR" 4
3025 .IX Item "-fno-trapping-math"
3026 Compile code assuming that floating-point operations cannot generate
3027 user-visible traps.  Setting this option may allow faster code
3028 if one relies on ``non-stop'' \s-1IEEE\s0 arithmetic, for example.
3030 This option should never be turned on by any \fB\-O\fR option since
3031 it can result in incorrect output for programs which depend on
3032 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
3033 math functions.
3035 The default is \fB\-ftrapping-math\fR.  The \fB\-ffast-math\fR
3036 option sets \fB\-fno-trapping-math\fR.
3038 The following options control specific optimizations.  The \fB\-O2\fR
3039 option turns on all of these optimizations except \fB\-funroll-loops\fR
3040 and \fB\-funroll-all-loops\fR.  On most machines, the \fB\-O\fR option
3041 turns on the \fB\-fthread-jumps\fR and \fB\-fdelayed-branch\fR options,
3042 but specific machines may handle it differently.
3044 You can use the following flags in the rare cases when ``fine-tuning''
3045 of optimizations to be performed is desired.
3046 .Ip "\fB\-fstrength-reduce\fR" 4
3047 .IX Item "-fstrength-reduce"
3048 Perform the optimizations of loop strength reduction and
3049 elimination of iteration variables.
3050 .Ip "\fB\-fthread-jumps\fR" 4
3051 .IX Item "-fthread-jumps"
3052 Perform optimizations where we check to see if a jump branches to a
3053 location where another comparison subsumed by the first is found.  If
3054 so, the first branch is redirected to either the destination of the
3055 second branch or a point immediately following it, depending on whether
3056 the condition is known to be true or false.
3057 .Ip "\fB\-fcse-follow-jumps\fR" 4
3058 .IX Item "-fcse-follow-jumps"
3059 In common subexpression elimination, scan through jump instructions
3060 when the target of the jump is not reached by any other path.  For
3061 example, when \s-1CSE\s0 encounters an \f(CW\*(C`if\*(C'\fR statement with an
3062 \&\f(CW\*(C`else\*(C'\fR clause, \s-1CSE\s0 will follow the jump when the condition
3063 tested is false.
3064 .Ip "\fB\-fcse-skip-blocks\fR" 4
3065 .IX Item "-fcse-skip-blocks"
3066 This is similar to \fB\-fcse-follow-jumps\fR, but causes \s-1CSE\s0 to
3067 follow jumps which conditionally skip over blocks.  When \s-1CSE\s0
3068 encounters a simple \f(CW\*(C`if\*(C'\fR statement with no else clause,
3069 \&\fB\-fcse-skip-blocks\fR causes \s-1CSE\s0 to follow the jump around the
3070 body of the \f(CW\*(C`if\*(C'\fR.
3071 .Ip "\fB\-frerun-cse-after-loop\fR" 4
3072 .IX Item "-frerun-cse-after-loop"
3073 Re-run common subexpression elimination after loop optimizations has been
3074 performed.
3075 .Ip "\fB\-frerun-loop-opt\fR" 4
3076 .IX Item "-frerun-loop-opt"
3077 Run the loop optimizer twice.
3078 .Ip "\fB\-fgcse\fR" 4
3079 .IX Item "-fgcse"
3080 Perform a global common subexpression elimination pass.
3081 This pass also performs global constant and copy propagation.
3082 .Ip "\fB\-fgcse-lm\fR" 4
3083 .IX Item "-fgcse-lm"
3084 When \fB\-fgcse-lm\fR is enabled, global common subexpression elimination will
3085 attempt to move loads which are only killed by stores into themselves. This
3086 allows a loop containing a load/store sequence to be changed to a load outside
3087 the loop, and a copy/store within the loop.
3088 .Ip "\fB\-fgcse-sm\fR" 4
3089 .IX Item "-fgcse-sm"
3090 When \fB\-fgcse-sm\fR is enabled, A store motion pass is run after global common
3091 subexpression elimination. This pass will attempt to move stores out of loops.
3092 When used in conjunction with \fB\-fgcse-lm\fR, loops containing a load/store sequence
3093 can be changed to a load before the loop and a store after the loop.
3094 .Ip "\fB\-fdelete-null-pointer-checks\fR" 4
3095 .IX Item "-fdelete-null-pointer-checks"
3096 Use global dataflow analysis to identify and eliminate useless null
3097 pointer checks.  Programs which rely on \s-1NULL\s0 pointer dereferences \fInot\fR
3098 halting the program may not work properly with this option.  Use
3099 \&\-fno-delete-null-pointer-checks to disable this optimizing for programs
3100 which depend on that behavior.
3101 .Ip "\fB\-fexpensive-optimizations\fR" 4
3102 .IX Item "-fexpensive-optimizations"
3103 Perform a number of minor optimizations that are relatively expensive.
3104 .Ip "\fB\-foptimize-register-move\fR" 4
3105 .IX Item "-foptimize-register-move"
3106 .PD 0
3107 .Ip "\fB\-fregmove\fR" 4
3108 .IX Item "-fregmove"
3110 Attempt to reassign register numbers in move instructions and as
3111 operands of other simple instructions in order to maximize the amount of
3112 register tying.  This is especially helpful on machines with two-operand
3113 instructions.  \s-1GCC\s0 enables this optimization by default with \fB\-O2\fR
3114 or higher.
3116 Note \fB\-fregmove\fR and \fB\-foptimize-register-move\fR are the same
3117 optimization.
3118 .Ip "\fB\-fdelayed-branch\fR" 4
3119 .IX Item "-fdelayed-branch"
3120 If supported for the target machine, attempt to reorder instructions
3121 to exploit instruction slots available after delayed branch
3122 instructions.
3123 .Ip "\fB\-fschedule-insns\fR" 4
3124 .IX Item "-fschedule-insns"
3125 If supported for the target machine, attempt to reorder instructions to
3126 eliminate execution stalls due to required data being unavailable.  This
3127 helps machines that have slow floating point or memory load instructions
3128 by allowing other instructions to be issued until the result of the load
3129 or floating point instruction is required.
3130 .Ip "\fB\-fschedule-insns2\fR" 4
3131 .IX Item "-fschedule-insns2"
3132 Similar to \fB\-fschedule-insns\fR, but requests an additional pass of
3133 instruction scheduling after register allocation has been done.  This is
3134 especially useful on machines with a relatively small number of
3135 registers and where memory load instructions take more than one cycle.
3136 .Ip "\fB\-ffunction-sections\fR" 4
3137 .IX Item "-ffunction-sections"
3138 .PD 0
3139 .Ip "\fB\-fdata-sections\fR" 4
3140 .IX Item "-fdata-sections"
3142 Place each function or data item into its own section in the output
3143 file if the target supports arbitrary sections.  The name of the
3144 function or the name of the data item determines the section's name
3145 in the output file.
3147 Use these options on systems where the linker can perform optimizations
3148 to improve locality of reference in the instruction space.  \s-1HPPA\s0
3149 processors running \s-1HP-UX\s0 and Sparc processors running Solaris 2 have
3150 linkers with such optimizations.  Other systems using the \s-1ELF\s0 object format
3151 as well as \s-1AIX\s0 may have these optimizations in the future.
3153 Only use these options when there are significant benefits from doing
3154 so.  When you specify these options, the assembler and linker will
3155 create larger object and executable files and will also be slower.
3156 You will not be able to use \f(CW\*(C`gprof\*(C'\fR on all systems if you
3157 specify this option and you may have problems with debugging if
3158 you specify both this option and \fB\-g\fR.
3159 .Ip "\fB\-fcaller-saves\fR" 4
3160 .IX Item "-fcaller-saves"
3161 Enable values to be allocated in registers that will be clobbered by
3162 function calls, by emitting extra instructions to save and restore the
3163 registers around such calls.  Such allocation is done only when it
3164 seems to result in better code than would otherwise be produced.
3166 This option is always enabled by default on certain machines, usually
3167 those which have no call-preserved registers to use instead.
3169 For all machines, optimization level 2 and higher enables this flag by
3170 default.
3171 .Ip "\fB\-funroll-loops\fR" 4
3172 .IX Item "-funroll-loops"
3173 Perform the optimization of loop unrolling.  This is only done for loops
3174 whose number of iterations can be determined at compile time or run time.
3175 \&\fB\-funroll-loops\fR implies both \fB\-fstrength-reduce\fR and
3176 \&\fB\-frerun-cse-after-loop\fR.
3177 .Ip "\fB\-funroll-all-loops\fR" 4
3178 .IX Item "-funroll-all-loops"
3179 Perform the optimization of loop unrolling.  This is done for all loops
3180 and usually makes programs run more slowly.  \fB\-funroll-all-loops\fR
3181 implies \fB\-fstrength-reduce\fR as well as \fB\-frerun-cse-after-loop\fR.
3182 .Ip "\fB\-fmove-all-movables\fR" 4
3183 .IX Item "-fmove-all-movables"
3184 Forces all invariant computations in loops to be moved
3185 outside the loop.
3186 .Ip "\fB\-freduce-all-givs\fR" 4
3187 .IX Item "-freduce-all-givs"
3188 Forces all general-induction variables in loops to be
3189 strength-reduced.
3191 \&\fINote:\fR When compiling programs written in Fortran,
3192 \&\fB\-fmove-all-movables\fR and \fB\-freduce-all-givs\fR are enabled
3193 by default when you use the optimizer.
3195 These options may generate better or worse code; results are highly
3196 dependent on the structure of loops within the source code.
3198 These two options are intended to be removed someday, once
3199 they have helped determine the efficacy of various
3200 approaches to improving loop optimizations.
3202 Please let us (<\fBgcc@gcc.gnu.org\fR> and <\fBfortran@gnu.org\fR>)
3203 know how use of these options affects
3204 the performance of your production code.
3205 We're very interested in code that runs \fIslower\fR
3206 when these options are \fIenabled\fR.
3207 .Ip "\fB\-fno-peephole\fR" 4
3208 .IX Item "-fno-peephole"
3209 .PD 0
3210 .Ip "\fB\-fno-peephole2\fR" 4
3211 .IX Item "-fno-peephole2"
3213 Disable any machine-specific peephole optimizations.  The difference
3214 between \fB\-fno-peephole\fR and \fB\-fno-peephole2\fR is in how they
3215 are implemented in the compiler; some targets use one, some use the
3216 other, a few use both.
3217 .Ip "\fB\-fbranch-probabilities\fR" 4
3218 .IX Item "-fbranch-probabilities"
3219 After running a program compiled with \fB\-fprofile-arcs\fR, you can compile it a second time using
3220 \&\fB\-fbranch-probabilities\fR, to improve optimizations based on
3221 guessing the path a branch might take.
3222 .Ip "\fB\-fno-guess-branch-probability\fR" 4
3223 .IX Item "-fno-guess-branch-probability"
3224 Sometimes gcc will opt to guess branch probabilities when none are
3225 available from either profile directed feedback (\fB\-fprofile-arcs\fR)
3226 or \fB_\|_builtin_expect\fR.  In a hard real-time system, people don't
3227 want different runs of the compiler to produce code that has different
3228 behavior; minimizing non-determinism is of paramount import.  This
3229 switch allows users to reduce non-determinism, possibly at the expense
3230 of inferior optimization.
3231 .Ip "\fB\-fstrict-aliasing\fR" 4
3232 .IX Item "-fstrict-aliasing"
3233 Allows the compiler to assume the strictest aliasing rules applicable to
3234 the language being compiled.  For C (and \*(C+), this activates
3235 optimizations based on the type of expressions.  In particular, an
3236 object of one type is assumed never to reside at the same address as an
3237 object of a different type, unless the types are almost the same.  For
3238 example, an \f(CW\*(C`unsigned int\*(C'\fR can alias an \f(CW\*(C`int\*(C'\fR, but not a
3239 \&\f(CW\*(C`void*\*(C'\fR or a \f(CW\*(C`double\*(C'\fR.  A character type may alias any other
3240 type.
3242 Pay special attention to code like this:
3244 .Vb 4
3245 \&        union a_union {
3246 \&          int i;
3247 \&          double d;
3248 \&        };
3250 .Vb 5
3251 \&        int f() {
3252 \&          a_union t;
3253 \&          t.d = 3.0;
3254 \&          return t.i;
3255 \&        }
3257 The practice of reading from a different union member than the one most
3258 recently written to (called ``type-punning'') is common.  Even with
3259 \&\fB\-fstrict-aliasing\fR, type-punning is allowed, provided the memory
3260 is accessed through the union type.  So, the code above will work as
3261 expected.  However, this code might not:
3263 .Vb 7
3264 \&        int f() {
3265 \&          a_union t;
3266 \&          int* ip;
3267 \&          t.d = 3.0;
3268 \&          ip = &t.i;
3269 \&          return *ip;
3270 \&        }
3272 .Ip "\fB\-falign-functions\fR" 4
3273 .IX Item "-falign-functions"
3274 .PD 0
3275 .Ip "\fB\-falign-functions=\fR\fIn\fR" 4
3276 .IX Item "-falign-functions=n"
3278 Align the start of functions to the next power-of-two greater than
3279 \&\fIn\fR, skipping up to \fIn\fR bytes.  For instance,
3280 \&\fB\-falign-functions=32\fR aligns functions to the next 32\-byte
3281 boundary, but \fB\-falign-functions=24\fR would align to the next
3282 32\-byte boundary only if this can be done by skipping 23 bytes or less.
3284 \&\fB\-fno-align-functions\fR and \fB\-falign-functions=1\fR are
3285 equivalent and mean that functions will not be aligned.
3287 Some assemblers only support this flag when \fIn\fR is a power of two;
3288 in that case, it is rounded up.
3290 If \fIn\fR is not specified, use a machine-dependent default.
3291 .Ip "\fB\-falign-labels\fR" 4
3292 .IX Item "-falign-labels"
3293 .PD 0
3294 .Ip "\fB\-falign-labels=\fR\fIn\fR" 4
3295 .IX Item "-falign-labels=n"
3297 Align all branch targets to a power-of-two boundary, skipping up to
3298 \&\fIn\fR bytes like \fB\-falign-functions\fR.  This option can easily
3299 make code slower, because it must insert dummy operations for when the
3300 branch target is reached in the usual flow of the code.
3302 If \fB\-falign-loops\fR or \fB\-falign-jumps\fR are applicable and
3303 are greater than this value, then their values are used instead.
3305 If \fIn\fR is not specified, use a machine-dependent default which is
3306 very likely to be \fB1\fR, meaning no alignment.
3307 .Ip "\fB\-falign-loops\fR" 4
3308 .IX Item "-falign-loops"
3309 .PD 0
3310 .Ip "\fB\-falign-loops=\fR\fIn\fR" 4
3311 .IX Item "-falign-loops=n"
3313 Align loops to a power-of-two boundary, skipping up to \fIn\fR bytes
3314 like \fB\-falign-functions\fR.  The hope is that the loop will be
3315 executed many times, which will make up for any execution of the dummy
3316 operations.
3318 If \fIn\fR is not specified, use a machine-dependent default.
3319 .Ip "\fB\-falign-jumps\fR" 4
3320 .IX Item "-falign-jumps"
3321 .PD 0
3322 .Ip "\fB\-falign-jumps=\fR\fIn\fR" 4
3323 .IX Item "-falign-jumps=n"
3325 Align branch targets to a power-of-two boundary, for branch targets
3326 where the targets can only be reached by jumping, skipping up to \fIn\fR
3327 bytes like \fB\-falign-functions\fR.  In this case, no dummy operations
3328 need be executed.
3330 If \fIn\fR is not specified, use a machine-dependent default.
3331 .Ip "\fB\-fssa\fR" 4
3332 .IX Item "-fssa"
3333 Perform optimizations in static single assignment form.  Each function's
3334 flow graph is translated into \s-1SSA\s0 form, optimizations are performed, and
3335 the flow graph is translated back from \s-1SSA\s0 form.  Users should not
3336 specify this option, since it is not yet ready for production use.
3337 .Ip "\fB\-fdce\fR" 4
3338 .IX Item "-fdce"
3339 Perform dead-code elimination in \s-1SSA\s0 form.  Requires \fB\-fssa\fR.  Like
3340 \&\fB\-fssa\fR, this is an experimental feature.
3341 .Ip "\fB\-fsingle-precision-constant\fR" 4
3342 .IX Item "-fsingle-precision-constant"
3343 Treat floating point constant as single precision constant instead of
3344 implicitly converting it to double precision constant.
3345 .Ip "\fB\-frename-registers\fR" 4
3346 .IX Item "-frename-registers"
3347 Attempt to avoid false dependencies in scheduled code by making use
3348 of registers left over after register allocation.  This optimization
3349 will most benefit processors with lots of registers.  It can, however,
3350 make debugging impossible, since variables will no longer stay in
3351 a ``home register''.
3352 .Ip "\fB\*(--param\fR \fIname\fR\fB=\fR\fIvalue\fR" 4
3353 .IX Item "param name=value"
3354 In some places, \s-1GCC\s0 uses various constants to control the amount of
3355 optimization that is done.  For example, \s-1GCC\s0 will not inline functions
3356 that contain more that a certain number of instructions.  You can
3357 control some of these constants on the command-line using the
3358 \&\fB\*(--param\fR option.
3360 In each case, the \fIvalue\fR is a integer.  The allowable choices for
3361 \&\fIname\fR are given in the following table:
3362 .RS 4
3363 .Ip "\fBmax-delay-slot-insn-search\fR" 4
3364 .IX Item "max-delay-slot-insn-search"
3365 The maximum number of instructions to consider when looking for an
3366 instruction to fill a delay slot.  If more than this arbitrary number of
3367 instructions is searched, the time savings from filling the delay slot
3368 will be minimal so stop searching.  Increasing values mean more
3369 aggressive optimization, making the compile time increase with probably
3370 small improvement in executable run time.
3371 .Ip "\fBmax-delay-slot-live-search\fR" 4
3372 .IX Item "max-delay-slot-live-search"
3373 When trying to fill delay slots, the maximum number of instructions to
3374 consider when searching for a block with valid live register
3375 information.  Increasing this arbitrarily chosen value means more
3376 aggressive optimization, increasing the compile time.  This parameter
3377 should be removed when the delay slot code is rewritten to maintain the
3378 control-flow graph.
3379 .Ip "\fBmax-gcse-memory\fR" 4
3380 .IX Item "max-gcse-memory"
3381 The approximate maximum amount of memory that will be allocated in
3382 order to perform the global common subexpression elimination
3383 optimization.  If more memory than specified is required, the
3384 optimization will not be done.
3385 .Ip "\fBmax-inline-insns\fR" 4
3386 .IX Item "max-inline-insns"
3387 If an function contains more than this many instructions, it
3388 will not be inlined.  This option is precisely equivalent to
3389 \&\fB\-finline-limit\fR.
3391 .RS 4
3393 .Sh "Options Controlling the Preprocessor"
3394 .IX Subsection "Options Controlling the Preprocessor"
3395 These options control the C preprocessor, which is run on each C source
3396 file before actual compilation.
3398 If you use the \fB\-E\fR option, nothing is done except preprocessing.
3399 Some of these options make sense only together with \fB\-E\fR because
3400 they cause the preprocessor output to be unsuitable for actual
3401 compilation.
3402 .Ip "\fB\-include\fR \fIfile\fR" 4
3403 .IX Item "-include file"
3404 Process \fIfile\fR as input before processing the regular input file.
3405 In effect, the contents of \fIfile\fR are compiled first.  Any \fB\-D\fR
3406 and \fB\-U\fR options on the command line are always processed before
3407 \&\fB\-include\fR \fIfile\fR, regardless of the order in which they are
3408 written.  All the \fB\-include\fR and \fB\-imacros\fR options are
3409 processed in the order in which they are written.
3410 .Ip "\fB\-imacros\fR \fIfile\fR" 4
3411 .IX Item "-imacros file"
3412 Process \fIfile\fR as input, discarding the resulting output, before
3413 processing the regular input file.  Because the output generated from
3414 \&\fIfile\fR is discarded, the only effect of \fB\-imacros\fR \fIfile\fR
3415 is to make the macros defined in \fIfile\fR available for use in the
3416 main input.  All the \fB\-include\fR and \fB\-imacros\fR options are
3417 processed in the order in which they are written.
3418 .Ip "\fB\-idirafter\fR \fIdir\fR" 4
3419 .IX Item "-idirafter dir"
3420 Add the directory \fIdir\fR to the second include path.  The directories
3421 on the second include path are searched when a header file is not found
3422 in any of the directories in the main include path (the one that
3423 \&\fB\-I\fR adds to).
3424 .Ip "\fB\-iprefix\fR \fIprefix\fR" 4
3425 .IX Item "-iprefix prefix"
3426 Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
3427 options.
3428 .Ip "\fB\-iwithprefix\fR \fIdir\fR" 4
3429 .IX Item "-iwithprefix dir"
3430 Add a directory to the second include path.  The directory's name is
3431 made by concatenating \fIprefix\fR and \fIdir\fR, where \fIprefix\fR was
3432 specified previously with \fB\-iprefix\fR.  If you have not specified a
3433 prefix yet, the directory containing the installed passes of the
3434 compiler is used as the default.
3435 .Ip "\fB\-iwithprefixbefore\fR \fIdir\fR" 4
3436 .IX Item "-iwithprefixbefore dir"
3437 Add a directory to the main include path.  The directory's name is made
3438 by concatenating \fIprefix\fR and \fIdir\fR, as in the case of
3439 \&\fB\-iwithprefix\fR.
3440 .Ip "\fB\-isystem\fR \fIdir\fR" 4
3441 .IX Item "-isystem dir"
3442 Add a directory to the beginning of the second include path, marking it
3443 as a system directory, so that it gets the same special treatment as
3444 is applied to the standard system directories.
3445 .Ip "\fB\-nostdinc\fR" 4
3446 .IX Item "-nostdinc"
3447 Do not search the standard system directories for header files.  Only
3448 the directories you have specified with \fB\-I\fR options (and the
3449 current directory, if appropriate) are searched.  
3451 By using both \fB\-nostdinc\fR and \fB\-I-\fR, you can limit the include-file
3452 search path to only those directories you specify explicitly.
3453 .Ip "\fB\-remap\fR" 4
3454 .IX Item "-remap"
3455 When searching for a header file in a directory, remap file names if a
3456 file named \fIheader.gcc\fR exists in that directory.  This can be used
3457 to work around limitations of file systems with file name restrictions.
3458 The \fIheader.gcc\fR file should contain a series of lines with two
3459 tokens on each line: the first token is the name to map, and the second
3460 token is the actual name to use.
3461 .Ip "\fB\-undef\fR" 4
3462 .IX Item "-undef"
3463 Do not predefine any nonstandard macros.  (Including architecture flags).
3464 .Ip "\fB\-E\fR" 4
3465 .IX Item "-E"
3466 Run only the C preprocessor.  Preprocess all the C source files
3467 specified and output the results to standard output or to the
3468 specified output file.
3469 .Ip "\fB\-C\fR" 4
3470 .IX Item "-C"
3471 Tell the preprocessor not to discard comments.  Used with the
3472 \&\fB\-E\fR option.
3473 .Ip "\fB\-P\fR" 4
3474 .IX Item "-P"
3475 Tell the preprocessor not to generate \fB#line\fR directives.
3476 Used with the \fB\-E\fR option.
3477 .Ip "\fB\-M\fR" 4
3478 .IX Item "-M"
3479 Instead of outputting the result of preprocessing, output a rule
3480 suitable for \f(CW\*(C`make\*(C'\fR describing the dependencies of the main source
3481 file.  The preprocessor outputs one \f(CW\*(C`make\*(C'\fR rule containing the
3482 object file name for that source file, a colon, and the names of all the
3483 included files.  Unless overridden explicitly, the object file name
3484 consists of the basename of the source file with any suffix replaced with
3485 object file suffix. If there are many included files then the
3486 rule is split into several lines using \fB\e\fR\-newline.
3488 \&\fB\-M\fR implies \fB\-E\fR.
3489 .Ip "\fB\-MM\fR" 4
3490 .IX Item "-MM"
3491 Like \fB\-M\fR, but mention only the files included with \fB#include
3492 "\fR\fIfile\fR\fB"\fR.  System header files included with \fB#include
3493 <\fR\fIfile\fR\fB>\fR are omitted.
3494 .Ip "\fB\-MD\fR" 4
3495 .IX Item "-MD"
3496 Like \fB\-M\fR but the dependency information is written to a file
3497 rather than stdout.  \f(CW\*(C`gcc\*(C'\fR will use the same file name and
3498 directory as the object file, but with the suffix \fI.d\fR instead.
3500 This is in addition to compiling the main file as specified\-\--\fB\-MD\fR
3501 does not inhibit ordinary compilation the way \fB\-M\fR does,
3502 unless you also specify \fB\-MG\fR.
3504 With Mach, you can use the utility \f(CW\*(C`md\*(C'\fR to merge multiple
3505 dependency files into a single dependency file suitable for using with
3506 the \fBmake\fR command.
3507 .Ip "\fB\-MMD\fR" 4
3508 .IX Item "-MMD"
3509 Like \fB\-MD\fR except mention only user header files, not system
3510 \&\-header files.
3511 .Ip "\fB\-MF\fR \fIfile\fR" 4
3512 .IX Item "-MF file"
3513 When used with \fB\-M\fR or \fB\-MM\fR, specifies a file to write the
3514 dependencies to.  This allows the preprocessor to write the preprocessed
3515 file to stdout normally.  If no \fB\-MF\fR switch is given, \s-1CPP\s0 sends
3516 the rules to stdout and suppresses normal preprocessed output.
3518 Another way to specify output of a \f(CW\*(C`make\*(C'\fR rule is by setting
3519 the environment variable \fB\s-1DEPENDENCIES_OUTPUT\s0\fR.
3520 .Ip "\fB\-MG\fR" 4
3521 .IX Item "-MG"
3522 When used with \fB\-M\fR or \fB\-MM\fR, \fB\-MG\fR says to treat missing
3523 header files as generated files and assume they live in the same
3524 directory as the source file.  It suppresses preprocessed output, as a
3525 missing header file is ordinarily an error.
3527 This feature is used in automatic updating of makefiles.
3528 .Ip "\fB\-MP\fR" 4
3529 .IX Item "-MP"
3530 This option instructs \s-1CPP\s0 to add a phony target for each dependency
3531 other than the main file, causing each to depend on nothing.  These
3532 dummy rules work around errors \f(CW\*(C`make\*(C'\fR gives if you remove header
3533 files without updating the \f(CW\*(C`Makefile\*(C'\fR to match.
3535 This is typical output:\-
3537 .Vb 1
3538 \&        /tmp/test.o: /tmp/test.c /tmp/test.h
3540 .Vb 1
3541 \&        /tmp/test.h:
3543 .Ip "\fB\-MQ\fR \fItarget\fR" 4
3544 .IX Item "-MQ target"
3545 .PD 0
3546 .Ip "\fB\-MT\fR \fItarget\fR" 4
3547 .IX Item "-MT target"
3549 By default \s-1CPP\s0 uses the main file name, including any path, and appends
3550 the object suffix, normally ``.o'', to it to obtain the name of the
3551 target for dependency generation.  With \fB\-MT\fR you can specify a
3552 target yourself, overriding the default one.
3554 If you want multiple targets, you can specify them as a single argument
3555 to \fB\-MT\fR, or use multiple \fB\-MT\fR options.
3557 The targets you specify are output in the order they appear on the
3558 command line.  \fB\-MQ\fR is identical to \fB\-MT\fR, except that the
3559 target name is quoted for Make, but with \fB\-MT\fR it isn't.  For
3560 example, \fB\-MT '$(objpfx)foo.o'\fR gives
3562 .Vb 1
3563 \&        $(objpfx)foo.o: /tmp/foo.c
3565 but \fB\-MQ '$(objpfx)foo.o'\fR gives
3567 .Vb 1
3568 \&        $$(objpfx)foo.o: /tmp/foo.c
3570 The default target is automatically quoted, as if it were given with
3571 \&\fB\-MQ\fR.
3572 .Ip "\fB\-H\fR" 4
3573 .IX Item "-H"
3574 Print the name of each header file used, in addition to other normal
3575 activities.
3576 .Ip "\fB\-A\fR\fIquestion\fR\fB(\fR\fIanswer\fR\fB)\fR" 4
3577 .IX Item "-Aquestion(answer)"
3578 Assert the answer \fIanswer\fR for \fIquestion\fR, in case it is tested
3579 with a preprocessing conditional such as \fB#if
3580 #\fR\fIquestion\fR\fB(\fR\fIanswer\fR\fB)\fR.  \fB\-A-\fR disables the standard
3581 assertions that normally describe the target machine.
3582 .Ip "\fB\-D\fR\fImacro\fR" 4
3583 .IX Item "-Dmacro"
3584 Define macro \fImacro\fR with the string \fB1\fR as its definition.
3585 .Ip "\fB\-D\fR\fImacro\fR\fB=\fR\fIdefn\fR" 4
3586 .IX Item "-Dmacro=defn"
3587 Define macro \fImacro\fR as \fIdefn\fR.  All instances of \fB\-D\fR on
3588 the command line are processed before any \fB\-U\fR options.
3590 Any \fB\-D\fR and \fB\-U\fR options on the command line are processed in
3591 order, and always before \fB\-imacros\fR \fIfile\fR, regardless of the
3592 order in which they are written.
3593 .Ip "\fB\-U\fR\fImacro\fR" 4
3594 .IX Item "-Umacro"
3595 Undefine macro \fImacro\fR.  \fB\-U\fR options are evaluated after all
3596 \&\fB\-D\fR options, but before any \fB\-include\fR and \fB\-imacros\fR
3597 options.
3599 Any \fB\-D\fR and \fB\-U\fR options on the command line are processed in
3600 order, and always before \fB\-imacros\fR \fIfile\fR, regardless of the
3601 order in which they are written.
3602 .Ip "\fB\-dM\fR" 4
3603 .IX Item "-dM"
3604 Tell the preprocessor to output only a list of the macro definitions
3605 that are in effect at the end of preprocessing.  Used with the \fB\-E\fR
3606 option.
3607 .Ip "\fB\-dD\fR" 4
3608 .IX Item "-dD"
3609 Tell the preprocessing to pass all macro definitions into the output, in
3610 their proper sequence in the rest of the output.
3611 .Ip "\fB\-dN\fR" 4
3612 .IX Item "-dN"
3613 Like \fB\-dD\fR except that the macro arguments and contents are omitted.
3614 Only \fB#define\fR \fIname\fR is included in the output.
3615 .Ip "\fB\-dI\fR" 4
3616 .IX Item "-dI"
3617 Output \fB#include\fR directives in addition to the result of
3618 preprocessing.
3619 .Ip "\fB\-fpreprocessed\fR" 4
3620 .IX Item "-fpreprocessed"
3621 Indicate to the preprocessor that the input file has already been
3622 preprocessed.  This suppresses things like macro expansion, trigraph
3623 conversion, escaped newline splicing, and processing of most directives.
3624 The preprocessor still recognizes and removes comments, so that you can
3625 pass a file preprocessed with \fB\-C\fR to the compiler without
3626 problems.  In this mode the integrated preprocessor is little more than
3627 a tokenizer for the front ends.
3629 \&\fB\-fpreprocessed\fR is implicit if the input file has one of the
3630 extensions \fBi\fR, \fBii\fR or \fBmi\fR.  These are the extensions
3631 that \s-1GCC\s0 uses for preprocessed files created by \fB\-save-temps\fR.
3632 .Ip "\fB\-trigraphs\fR" 4
3633 .IX Item "-trigraphs"
3634 Process \s-1ISO\s0 standard trigraph sequences.  These are three-character
3635 sequences, all starting with \fB??\fR, that are defined by \s-1ISO\s0 C to
3636 stand for single characters.  For example, \fB??/\fR stands for
3637 \&\fB\e\fR, so \fB'??/n'\fR is a character constant for a newline.  By
3638 default, \s-1GCC\s0 ignores trigraphs, but in standard-conforming modes it
3639 converts them.  See the \fB\-std\fR and \fB\-ansi\fR options.
3641 The nine trigraph sequences are
3642 .RS 4
3643 .Ip "\fB??(\fR" 4
3644 .IX Item "??("
3645 -> \fB[\fR
3646 .Ip "\fB??)\fR" 4
3647 .IX Item "??)"
3648 -> \fB]\fR
3649 .Ip "\fB??<\fR" 4
3650 .IX Item "??<"
3651 -> \fB{\fR
3652 .Ip "\fB??>\fR" 4
3653 .IX Item "??>"
3654 -> \fB}\fR
3655 .Ip "\fB??=\fR" 4
3656 .IX Item "??="
3657 -> \fB#\fR
3658 .Ip "\fB??/\fR" 4
3659 .IX Item "??/"
3660 -> \fB\e\fR
3661 .Ip "\fB??'\fR" 4
3662 .IX Item "??'"
3663 -> \fB^\fR
3664 .Ip "\fB??!\fR" 4
3665 .IX Item "??!"
3666 -> \fB|\fR
3667 .Ip "\fB??-\fR" 4
3668 .IX Item "??-"
3669 -> \fB~\fR
3671 .RS 4
3673 Trigraph support is not popular, so many compilers do not implement it
3674 properly.  Portable code should not rely on trigraphs being either
3675 converted or ignored.
3677 .Ip "\fB\-Wp,\fR\fIoption\fR" 4
3678 .IX Item "-Wp,option"
3679 Pass \fIoption\fR as an option to the preprocessor.  If \fIoption\fR
3680 contains commas, it is split into multiple options at the commas.
3681 .Sh "Passing Options to the Assembler"
3682 .IX Subsection "Passing Options to the Assembler"
3683 You can pass options to the assembler.
3684 .Ip "\fB\-Wa,\fR\fIoption\fR" 4
3685 .IX Item "-Wa,option"
3686 Pass \fIoption\fR as an option to the assembler.  If \fIoption\fR
3687 contains commas, it is split into multiple options at the commas.
3688 .Sh "Options for Linking"
3689 .IX Subsection "Options for Linking"
3690 These options come into play when the compiler links object files into
3691 an executable output file.  They are meaningless if the compiler is
3692 not doing a link step.
3693 .Ip "\fIobject-file-name\fR" 4
3694 .IX Item "object-file-name"
3695 A file name that does not end in a special recognized suffix is
3696 considered to name an object file or library.  (Object files are
3697 distinguished from libraries by the linker according to the file
3698 contents.)  If linking is done, these object files are used as input
3699 to the linker.
3700 .Ip "\fB\-c\fR" 4
3701 .IX Item "-c"
3702 .PD 0
3703 .Ip "\fB\-S\fR" 4
3704 .IX Item "-S"
3705 .Ip "\fB\-E\fR" 4
3706 .IX Item "-E"
3708 If any of these options is used, then the linker is not run, and
3709 object file names should not be used as arguments.  
3710 .Ip "\fB\-l\fR\fIlibrary\fR" 4
3711 .IX Item "-llibrary"
3712 .PD 0
3713 .Ip "\fB\-l\fR \fIlibrary\fR" 4
3714 .IX Item "-l library"
3716 Search the library named \fIlibrary\fR when linking.  (The second
3717 alternative with the library as a separate argument is only for
3718 \&\s-1POSIX\s0 compliance and is not recommended.)
3720 It makes a difference where in the command you write this option; the
3721 linker searches and processes libraries and object files in the order they
3722 are specified.  Thus, \fBfoo.o \-lz bar.o\fR searches library \fBz\fR
3723 after file \fIfoo.o\fR but before \fIbar.o\fR.  If \fIbar.o\fR refers
3724 to functions in \fBz\fR, those functions may not be loaded.
3726 The linker searches a standard list of directories for the library,
3727 which is actually a file named \fIlib\fIlibrary\fI.a\fR.  The linker
3728 then uses this file as if it had been specified precisely by name.
3730 The directories searched include several standard system directories
3731 plus any that you specify with \fB\-L\fR.
3733 Normally the files found this way are library files\-\-\-archive files
3734 whose members are object files.  The linker handles an archive file by
3735 scanning through it for members which define symbols that have so far
3736 been referenced but not defined.  But if the file that is found is an
3737 ordinary object file, it is linked in the usual fashion.  The only
3738 difference between using an \fB\-l\fR option and specifying a file name
3739 is that \fB\-l\fR surrounds \fIlibrary\fR with \fBlib\fR and \fB.a\fR
3740 and searches several directories.
3741 .Ip "\fB\-lobjc\fR" 4
3742 .IX Item "-lobjc"
3743 You need this special case of the \fB\-l\fR option in order to
3744 link an Objective-C program.
3745 .Ip "\fB\-nostartfiles\fR" 4
3746 .IX Item "-nostartfiles"
3747 Do not use the standard system startup files when linking.
3748 The standard system libraries are used normally, unless \fB\-nostdlib\fR
3749 or \fB\-nodefaultlibs\fR is used.
3750 .Ip "\fB\-nodefaultlibs\fR" 4
3751 .IX Item "-nodefaultlibs"
3752 Do not use the standard system libraries when linking.
3753 Only the libraries you specify will be passed to the linker.
3754 The standard startup files are used normally, unless \fB\-nostartfiles\fR
3755 is used.  The compiler may generate calls to memcmp, memset, and memcpy
3756 for System V (and \s-1ISO\s0 C) environments or to bcopy and bzero for
3757 \&\s-1BSD\s0 environments.  These entries are usually resolved by entries in
3758 libc.  These entry points should be supplied through some other
3759 mechanism when this option is specified.
3760 .Ip "\fB\-nostdlib\fR" 4
3761 .IX Item "-nostdlib"
3762 Do not use the standard system startup files or libraries when linking.
3763 No startup files and only the libraries you specify will be passed to
3764 the linker. The compiler may generate calls to memcmp, memset, and memcpy
3765 for System V (and \s-1ISO\s0 C) environments or to bcopy and bzero for
3766 \&\s-1BSD\s0 environments.  These entries are usually resolved by entries in
3767 libc.  These entry points should be supplied through some other
3768 mechanism when this option is specified.
3770 One of the standard libraries bypassed by \fB\-nostdlib\fR and
3771 \&\fB\-nodefaultlibs\fR is \fIlibgcc.a\fR, a library of internal subroutines
3772 that \s-1GCC\s0 uses to overcome shortcomings of particular machines, or special
3773 needs for some languages.
3775 In most cases, you need \fIlibgcc.a\fR even when you want to avoid
3776 other standard libraries.  In other words, when you specify \fB\-nostdlib\fR
3777 or \fB\-nodefaultlibs\fR you should usually specify \fB\-lgcc\fR as well.
3778 This ensures that you have no unresolved references to internal \s-1GCC\s0
3779 library subroutines.  (For example, \fB_\|_main\fR, used to ensure \*(C+
3780 constructors will be called.)
3781 .Ip "\fB\-s\fR" 4
3782 .IX Item "-s"
3783 Remove all symbol table and relocation information from the executable.
3784 .Ip "\fB\-static\fR" 4
3785 .IX Item "-static"
3786 On systems that support dynamic linking, this prevents linking with the shared
3787 libraries.  On other systems, this option has no effect.
3788 .Ip "\fB\-shared\fR" 4
3789 .IX Item "-shared"
3790 Produce a shared object which can then be linked with other objects to
3791 form an executable.  Not all systems support this option.  For predictable
3792 results, you must also specify the same set of options that were used to
3793 generate code (\fB\-fpic\fR, \fB\-fPIC\fR, or model suboptions)
3794 when you specify this option.[1]
3795 .Ip "\fB\-shared-libgcc\fR" 4
3796 .IX Item "-shared-libgcc"
3797 .PD 0
3798 .Ip "\fB\-static-libgcc\fR" 4
3799 .IX Item "-static-libgcc"
3801 On systems that provide \fIlibgcc\fR as a shared library, these options
3802 force the use of either the shared or static version respectively.
3803 If no shared version of \fIlibgcc\fR was built when the compiler was
3804 configured, these options have no effect.
3806 There are several situations in which an application should use the
3807 shared \fIlibgcc\fR instead of the static version.  The most common
3808 of these is when the application wishes to throw and catch exceptions
3809 across different shared libraries.  In that case, each of the libraries
3810 as well as the application itself should use the shared \fIlibgcc\fR.
3812 Therefore, whenever you specify the \fB\-shared\fR option, the \s-1GCC\s0
3813 driver automatically adds \fB\-shared-libgcc\fR, unless you explicitly
3814 specify \fB\-static-libgcc\fR.  The G++ driver automatically adds
3815 \&\fB\-shared-libgcc\fR when you build a main executable as well because
3816 for \*(C+ programs that is typically the right thing to do.
3817 (Exception-handling will not work reliably otherwise.)
3819 However, when linking a main executable written in C, you must
3820 explicitly say \fB\-shared-libgcc\fR if you want to use the shared
3821 \&\fIlibgcc\fR.
3822 .Ip "\fB\-symbolic\fR" 4
3823 .IX Item "-symbolic"
3824 Bind references to global symbols when building a shared object.  Warn
3825 about any unresolved references (unless overridden by the link editor
3826 option \fB\-Xlinker \-z \-Xlinker defs\fR).  Only a few systems support
3827 this option.
3828 .Ip "\fB\-Xlinker\fR \fIoption\fR" 4
3829 .IX Item "-Xlinker option"
3830 Pass \fIoption\fR as an option to the linker.  You can use this to
3831 supply system-specific linker options which \s-1GCC\s0 does not know how to
3832 recognize.
3834 If you want to pass an option that takes an argument, you must use
3835 \&\fB\-Xlinker\fR twice, once for the option and once for the argument.
3836 For example, to pass \fB\-assert definitions\fR, you must write
3837 \&\fB\-Xlinker \-assert \-Xlinker definitions\fR.  It does not work to write
3838 \&\fB\-Xlinker \*(L"\-assert definitions\*(R"\fR, because this passes the entire
3839 string as a single argument, which is not what the linker expects.
3840 .Ip "\fB\-Wl,\fR\fIoption\fR" 4
3841 .IX Item "-Wl,option"
3842 Pass \fIoption\fR as an option to the linker.  If \fIoption\fR contains
3843 commas, it is split into multiple options at the commas.
3844 .Ip "\fB\-u\fR \fIsymbol\fR" 4
3845 .IX Item "-u symbol"
3846 Pretend the symbol \fIsymbol\fR is undefined, to force linking of
3847 library modules to define it.  You can use \fB\-u\fR multiple times with
3848 different symbols to force loading of additional library modules.
3849 .Sh "Options for Directory Search"
3850 .IX Subsection "Options for Directory Search"
3851 These options specify directories to search for header files, for
3852 libraries and for parts of the compiler:
3853 .Ip "\fB\-I\fR\fIdir\fR" 4
3854 .IX Item "-Idir"
3855 Add the directory \fIdir\fR to the head of the list of directories to be
3856 searched for header files.  This can be used to override a system header
3857 file, substituting your own version, since these directories are
3858 searched before the system header file directories.  However, you should
3859 not use this option to add directories that contain vendor-supplied
3860 system header files (use \fB\-isystem\fR for that). If you use more than
3861 one \fB\-I\fR option, the directories are scanned in left-to-right
3862 order; the standard system directories come after.
3863 .Ip "\fB\-I-\fR" 4
3864 .IX Item "-I-"
3865 Any directories you specify with \fB\-I\fR options before the \fB\-I-\fR
3866 option are searched only for the case of \fB#include "\fR\fIfile\fR\fB"\fR;
3867 they are not searched for \fB#include <\fR\fIfile\fR\fB>\fR.
3869 If additional directories are specified with \fB\-I\fR options after
3870 the \fB\-I-\fR, these directories are searched for all \fB#include\fR
3871 directives.  (Ordinarily \fIall\fR \fB\-I\fR directories are used
3872 this way.)
3874 In addition, the \fB\-I-\fR option inhibits the use of the current
3875 directory (where the current input file came from) as the first search
3876 directory for \fB#include "\fR\fIfile\fR\fB"\fR.  There is no way to
3877 override this effect of \fB\-I-\fR.  With \fB\-I.\fR you can specify
3878 searching the directory which was current when the compiler was
3879 invoked.  That is not exactly the same as what the preprocessor does
3880 by default, but it is often satisfactory.
3882 \&\fB\-I-\fR does not inhibit the use of the standard system directories
3883 for header files.  Thus, \fB\-I-\fR and \fB\-nostdinc\fR are
3884 independent.
3885 .Ip "\fB\-L\fR\fIdir\fR" 4
3886 .IX Item "-Ldir"
3887 Add directory \fIdir\fR to the list of directories to be searched
3888 for \fB\-l\fR.
3889 .Ip "\fB\-B\fR\fIprefix\fR" 4
3890 .IX Item "-Bprefix"
3891 This option specifies where to find the executables, libraries,
3892 include files, and data files of the compiler itself.
3894 The compiler driver program runs one or more of the subprograms
3895 \&\fIcpp\fR, \fIcc1\fR, \fIas\fR and \fIld\fR.  It tries
3896 \&\fIprefix\fR as a prefix for each program it tries to run, both with and
3897 without \fImachine\fR\fB/\fR\fIversion\fR\fB/\fR.
3899 For each subprogram to be run, the compiler driver first tries the
3900 \&\fB\-B\fR prefix, if any.  If that name is not found, or if \fB\-B\fR
3901 was not specified, the driver tries two standard prefixes, which are
3902 \&\fI/usr/lib/gcc/\fR and \fI/usr/local/lib/gcc-lib/\fR.  If neither of
3903 those results in a file name that is found, the unmodified program
3904 name is searched for using the directories specified in your
3905 \&\fB\s-1PATH\s0\fR environment variable.
3907 \&\fB\-B\fR prefixes that effectively specify directory names also apply
3908 to libraries in the linker, because the compiler translates these
3909 options into \fB\-L\fR options for the linker.  They also apply to
3910 includes files in the preprocessor, because the compiler translates these
3911 options into \fB\-isystem\fR options for the preprocessor.  In this case,
3912 the compiler appends \fBinclude\fR to the prefix.
3914 The run-time support file \fIlibgcc.a\fR can also be searched for using
3915 the \fB\-B\fR prefix, if needed.  If it is not found there, the two
3916 standard prefixes above are tried, and that is all.  The file is left
3917 out of the link if it is not found by those means.
3919 Another way to specify a prefix much like the \fB\-B\fR prefix is to use
3920 the environment variable \fB\s-1GCC_EXEC_PREFIX\s0\fR.  
3921 .Ip "\fB\-specs=\fR\fIfile\fR" 4
3922 .IX Item "-specs=file"
3923 Process \fIfile\fR after the compiler reads in the standard \fIspecs\fR
3924 file, in order to override the defaults that the \fIgcc\fR driver
3925 program uses when determining what switches to pass to \fIcc1\fR,
3926 \&\fIcc1plus\fR, \fIas\fR, \fIld\fR, etc.  More than one
3927 \&\fB\-specs=\fR\fIfile\fR can be specified on the command line, and they
3928 are processed in order, from left to right.
3929 .Sh "Specifying Target Machine and Compiler Version"
3930 .IX Subsection "Specifying Target Machine and Compiler Version"
3931 By default, \s-1GCC\s0 compiles code for the same type of machine that you
3932 are using.  However, it can also be installed as a cross-compiler, to
3933 compile for some other type of machine.  In fact, several different
3934 configurations of \s-1GCC\s0, for different target machines, can be
3935 installed side by side.  Then you specify which one to use with the
3936 \&\fB\-b\fR option.
3938 In addition, older and newer versions of \s-1GCC\s0 can be installed side
3939 by side.  One of them (probably the newest) will be the default, but
3940 you may sometimes wish to use another.
3941 .Ip "\fB\-b\fR \fImachine\fR" 4
3942 .IX Item "-b machine"
3943 The argument \fImachine\fR specifies the target machine for compilation.
3944 This is useful when you have installed \s-1GCC\s0 as a cross-compiler.
3946 The value to use for \fImachine\fR is the same as was specified as the
3947 machine type when configuring \s-1GCC\s0 as a cross-compiler.  For
3948 example, if a cross-compiler was configured with \fBconfigure
3949 i386v\fR, meaning to compile for an 80386 running System V, then you
3950 would specify \fB\-b i386v\fR to run that cross compiler.
3952 When you do not specify \fB\-b\fR, it normally means to compile for
3953 the same type of machine that you are using.
3954 .Ip "\fB\-V\fR \fIversion\fR" 4
3955 .IX Item "-V version"
3956 The argument \fIversion\fR specifies which version of \s-1GCC\s0 to run.
3957 This is useful when multiple versions are installed.  For example,
3958 \&\fIversion\fR might be \fB2.0\fR, meaning to run \s-1GCC\s0 version 2.0.
3960 The default version, when you do not specify \fB\-V\fR, is the last
3961 version of \s-1GCC\s0 that you installed.
3963 The \fB\-b\fR and \fB\-V\fR options actually work by controlling part of
3964 the file name used for the executable files and libraries used for
3965 compilation.  A given version of \s-1GCC\s0, for a given target machine, is
3966 normally kept in the directory \fI/usr/local/lib/gcc-lib/\fImachine\fI/\fIversion\fI\fR.
3968 Thus, sites can customize the effect of \fB\-b\fR or \fB\-V\fR either by
3969 changing the names of these directories or adding alternate names (or
3970 symbolic links).  If in directory \fI/usr/local/lib/gcc-lib/\fR the
3971 file \fI80386\fR is a link to the file \fIi386v\fR, then \fB\-b
3972 80386\fR becomes an alias for \fB\-b i386v\fR.
3974 In one respect, the \fB\-b\fR or \fB\-V\fR do not completely change
3975 to a different compiler: the top-level driver program \fBgcc\fR
3976 that you originally invoked continues to run and invoke the other
3977 executables (preprocessor, compiler per se, assembler and linker)
3978 that do the real work.  However, since no real work is done in the
3979 driver program, it usually does not matter that the driver program
3980 in use is not the one for the specified target.  It is common for the
3981 interface to the other executables to change incompatibly between
3982 compiler versions, so unless the version specified is very close to that
3983 of the driver (for example, \fB\-V 3.0\fR with a driver program from \s-1GCC\s0
3984 version 3.0.1), use of \fB\-V\fR may not work; for example, using
3985 \&\fB\-V 2.95.2\fR will not work with a driver program from \s-1GCC\s0 3.0.
3987 The only way that the driver program depends on the target machine is
3988 in the parsing and handling of special machine-specific options.
3989 However, this is controlled by a file which is found, along with the
3990 other executables, in the directory for the specified version and
3991 target machine.  As a result, a single installed driver program adapts
3992 to any specified target machine, and sufficiently similar compiler
3993 versions.
3995 The driver program executable does control one significant thing,
3996 however: the default version and target machine.  Therefore, you can
3997 install different instances of the driver program, compiled for
3998 different targets or versions, under different names.
4000 For example, if the driver for version 2.0 is installed as \fBogcc\fR
4001 and that for version 2.1 is installed as \fBgcc\fR, then the command
4002 \&\fBgcc\fR will use version 2.1 by default, while \fBogcc\fR will use
4003 2.0 by default.  However, you can choose either version with either
4004 command with the \fB\-V\fR option.
4005 .Sh "Hardware Models and Configurations"
4006 .IX Subsection "Hardware Models and Configurations"
4007 Earlier we discussed the standard option \fB\-b\fR which chooses among
4008 different installed compilers for completely different target
4009 machines, such as Vax vs. 68000 vs. 80386.
4011 In addition, each of these target machine types can have its own
4012 special options, starting with \fB\-m\fR, to choose among various
4013 hardware models or configurations\-\-\-for example, 68010 vs 68020,
4014 floating coprocessor or none.  A single installed version of the
4015 compiler can compile for any model or configuration, according to the
4016 options specified.
4018 Some configurations of the compiler also support additional special
4019 options, usually for compatibility with other compilers on the same
4020 platform.
4022 .I "M680x0 Options"
4023 .IX Subsection "M680x0 Options"
4025 These are the \fB\-m\fR options defined for the 68000 series.  The default
4026 values for these options depends on which style of 68000 was selected when
4027 the compiler was configured; the defaults for the most common choices are
4028 given below.
4029 .Ip "\fB\-m68000\fR" 4
4030 .IX Item "-m68000"
4031 .PD 0
4032 .Ip "\fB\-mc68000\fR" 4
4033 .IX Item "-mc68000"
4035 Generate output for a 68000.  This is the default
4036 when the compiler is configured for 68000\-based systems.
4038 Use this option for microcontrollers with a 68000 or \s-1EC000\s0 core,
4039 including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
4040 .Ip "\fB\-m68020\fR" 4
4041 .IX Item "-m68020"
4042 .PD 0
4043 .Ip "\fB\-mc68020\fR" 4
4044 .IX Item "-mc68020"
4046 Generate output for a 68020.  This is the default
4047 when the compiler is configured for 68020\-based systems.
4048 .Ip "\fB\-m68881\fR" 4
4049 .IX Item "-m68881"
4050 Generate output containing 68881 instructions for floating point.
4051 This is the default for most 68020 systems unless \fB\*(--nfp\fR was
4052 specified when the compiler was configured.
4053 .Ip "\fB\-m68030\fR" 4
4054 .IX Item "-m68030"
4055 Generate output for a 68030.  This is the default when the compiler is
4056 configured for 68030\-based systems.
4057 .Ip "\fB\-m68040\fR" 4
4058 .IX Item "-m68040"
4059 Generate output for a 68040.  This is the default when the compiler is
4060 configured for 68040\-based systems.
4062 This option inhibits the use of 68881/68882 instructions that have to be
4063 emulated by software on the 68040.  Use this option if your 68040 does not
4064 have code to emulate those instructions.
4065 .Ip "\fB\-m68060\fR" 4
4066 .IX Item "-m68060"
4067 Generate output for a 68060.  This is the default when the compiler is
4068 configured for 68060\-based systems.
4070 This option inhibits the use of 68020 and 68881/68882 instructions that
4071 have to be emulated by software on the 68060.  Use this option if your 68060
4072 does not have code to emulate those instructions.
4073 .Ip "\fB\-mcpu32\fR" 4
4074 .IX Item "-mcpu32"
4075 Generate output for a \s-1CPU32\s0. This is the default
4076 when the compiler is configured for CPU32\-based systems.
4078 Use this option for microcontrollers with a
4079 \&\s-1CPU32\s0 or \s-1CPU32+\s0 core, including the 68330, 68331, 68332, 68333, 68334,
4080 68336, 68340, 68341, 68349 and 68360.
4081 .Ip "\fB\-m5200\fR" 4
4082 .IX Item "-m5200"
4083 Generate output for a 520X ``coldfire'' family cpu.  This is the default
4084 when the compiler is configured for 520X-based systems.
4086 Use this option for microcontroller with a 5200 core, including
4087 the \s-1MCF5202\s0, \s-1MCF5203\s0, \s-1MCF5204\s0 and \s-1MCF5202\s0.
4088 .Ip "\fB\-m68020\-40\fR" 4
4089 .IX Item "-m68020-40"
4090 Generate output for a 68040, without using any of the new instructions.
4091 This results in code which can run relatively efficiently on either a
4092 68020/68881 or a 68030 or a 68040.  The generated code does use the
4093 68881 instructions that are emulated on the 68040.
4094 .Ip "\fB\-m68020\-60\fR" 4
4095 .IX Item "-m68020-60"
4096 Generate output for a 68060, without using any of the new instructions.
4097 This results in code which can run relatively efficiently on either a
4098 68020/68881 or a 68030 or a 68040.  The generated code does use the
4099 68881 instructions that are emulated on the 68060.
4100 .Ip "\fB\-mfpa\fR" 4
4101 .IX Item "-mfpa"
4102 Generate output containing Sun \s-1FPA\s0 instructions for floating point.
4103 .Ip "\fB\-msoft-float\fR" 4
4104 .IX Item "-msoft-float"
4105 Generate output containing library calls for floating point.
4106 \&\fBWarning:\fR the requisite libraries are not available for all m68k
4107 targets.  Normally the facilities of the machine's usual C compiler are
4108 used, but this can't be done directly in cross-compilation.  You must
4109 make your own arrangements to provide suitable library functions for
4110 cross-compilation.  The embedded targets \fBm68k-*\-aout\fR and
4111 \&\fBm68k-*\-coff\fR do provide software floating point support.
4112 .Ip "\fB\-mshort\fR" 4
4113 .IX Item "-mshort"
4114 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
4115 .Ip "\fB\-mnobitfield\fR" 4
4116 .IX Item "-mnobitfield"
4117 Do not use the bit-field instructions.  The \fB\-m68000\fR, \fB\-mcpu32\fR
4118 and \fB\-m5200\fR options imply \fB\-mnobitfield\fR.
4119 .Ip "\fB\-mbitfield\fR" 4
4120 .IX Item "-mbitfield"
4121 Do use the bit-field instructions.  The \fB\-m68020\fR option implies
4122 \&\fB\-mbitfield\fR.  This is the default if you use a configuration
4123 designed for a 68020.
4124 .Ip "\fB\-mrtd\fR" 4
4125 .IX Item "-mrtd"
4126 Use a different function-calling convention, in which functions
4127 that take a fixed number of arguments return with the \f(CW\*(C`rtd\*(C'\fR
4128 instruction, which pops their arguments while returning.  This
4129 saves one instruction in the caller since there is no need to pop
4130 the arguments there.
4132 This calling convention is incompatible with the one normally
4133 used on Unix, so you cannot use it if you need to call libraries
4134 compiled with the Unix compiler.
4136 Also, you must provide function prototypes for all functions that
4137 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
4138 otherwise incorrect code will be generated for calls to those
4139 functions.
4141 In addition, seriously incorrect code will result if you call a
4142 function with too many arguments.  (Normally, extra arguments are
4143 harmlessly ignored.)
4145 The \f(CW\*(C`rtd\*(C'\fR instruction is supported by the 68010, 68020, 68030,
4146 68040, 68060 and \s-1CPU32\s0 processors, but not by the 68000 or 5200.
4147 .Ip "\fB\-malign-int\fR" 4
4148 .IX Item "-malign-int"
4149 .PD 0
4150 .Ip "\fB\-mno-align-int\fR" 4
4151 .IX Item "-mno-align-int"
4153 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,
4154 \&\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
4155 boundary (\fB\-malign-int\fR) or a 16\-bit boundary (\fB\-mno-align-int\fR).
4156 Aligning variables on 32\-bit boundaries produces code that runs somewhat
4157 faster on processors with 32\-bit busses at the expense of more memory.
4159 \&\fBWarning:\fR if you use the \fB\-malign-int\fR switch, \s-1GCC\s0 will
4160 align structures containing the above types  differently than
4161 most published application binary interface specifications for the m68k.
4162 .Ip "\fB\-mpcrel\fR" 4
4163 .IX Item "-mpcrel"
4164 Use the pc-relative addressing mode of the 68000 directly, instead of
4165 using a global offset table.  At present, this option implies \fB\-fpic\fR,
4166 allowing at most a 16\-bit offset for pc-relative addressing.  \fB\-fPIC\fR is
4167 not presently supported with \fB\-mpcrel\fR, though this could be supported for
4168 68020 and higher processors.
4169 .Ip "\fB\-mno-strict-align\fR" 4
4170 .IX Item "-mno-strict-align"
4171 .PD 0
4172 .Ip "\fB\-mstrict-align\fR" 4
4173 .IX Item "-mstrict-align"
4175 Do not (do) assume that unaligned memory references will be handled by
4176 the system.
4178 .I "M68hc1x Options"
4179 .IX Subsection "M68hc1x Options"
4181 These are the \fB\-m\fR options defined for the 68hc11 and 68hc12
4182 microcontrollers.  The default values for these options depends on
4183 which style of microcontroller was selected when the compiler was configured;
4184 the defaults for the most common choices are given below.
4185 .Ip "\fB\-m6811\fR" 4
4186 .IX Item "-m6811"
4187 .PD 0
4188 .Ip "\fB\-m68hc11\fR" 4
4189 .IX Item "-m68hc11"
4191 Generate output for a 68HC11.  This is the default
4192 when the compiler is configured for 68HC11\-based systems.
4193 .Ip "\fB\-m6812\fR" 4
4194 .IX Item "-m6812"
4195 .PD 0
4196 .Ip "\fB\-m68hc12\fR" 4
4197 .IX Item "-m68hc12"
4199 Generate output for a 68HC12.  This is the default
4200 when the compiler is configured for 68HC12\-based systems.
4201 .Ip "\fB\-mauto-incdec\fR" 4
4202 .IX Item "-mauto-incdec"
4203 Enable the use of 68HC12 pre and post auto-increment and auto-decrement
4204 addressing modes.
4205 .Ip "\fB\-mshort\fR" 4
4206 .IX Item "-mshort"
4207 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
4208 .Ip "\fB\-msoft-reg-count=\fR\fIcount\fR" 4
4209 .IX Item "-msoft-reg-count=count"
4210 Specify the number of pseudo-soft registers which are used for the
4211 code generation.  The maximum number is 32.  Using more pseudo-soft
4212 register may or may not result in better code depending on the program.
4213 The default is 4 for 68HC11 and 2 for 68HC12.
4215 .I "\s-1VAX\s0 Options"
4216 .IX Subsection "VAX Options"
4218 These \fB\-m\fR options are defined for the Vax:
4219 .Ip "\fB\-munix\fR" 4
4220 .IX Item "-munix"
4221 Do not output certain jump instructions (\f(CW\*(C`aobleq\*(C'\fR and so on)
4222 that the Unix assembler for the Vax cannot handle across long
4223 ranges.
4224 .Ip "\fB\-mgnu\fR" 4
4225 .IX Item "-mgnu"
4226 Do output those jump instructions, on the assumption that you
4227 will assemble with the \s-1GNU\s0 assembler.
4228 .Ip "\fB\-mg\fR" 4
4229 .IX Item "-mg"
4230 Output code for g-format floating point numbers instead of d-format.
4232 .I "\s-1SPARC\s0 Options"
4233 .IX Subsection "SPARC Options"
4235 These \fB\-m\fR switches are supported on the \s-1SPARC:\s0
4236 .Ip "\fB\-mno-app-regs\fR" 4
4237 .IX Item "-mno-app-regs"
4238 .PD 0
4239 .Ip "\fB\-mapp-regs\fR" 4
4240 .IX Item "-mapp-regs"
4242 Specify \fB\-mapp-regs\fR to generate output using the global registers
4243 2 through 4, which the \s-1SPARC\s0 \s-1SVR4\s0 \s-1ABI\s0 reserves for applications.  This
4244 is the default.
4246 To be fully \s-1SVR4\s0 \s-1ABI\s0 compliant at the cost of some performance loss,
4247 specify \fB\-mno-app-regs\fR.  You should compile libraries and system
4248 software with this option.
4249 .Ip "\fB\-mfpu\fR" 4
4250 .IX Item "-mfpu"
4251 .PD 0
4252 .Ip "\fB\-mhard-float\fR" 4
4253 .IX Item "-mhard-float"
4255 Generate output containing floating point instructions.  This is the
4256 default.
4257 .Ip "\fB\-mno-fpu\fR" 4
4258 .IX Item "-mno-fpu"
4259 .PD 0
4260 .Ip "\fB\-msoft-float\fR" 4
4261 .IX Item "-msoft-float"
4263 Generate output containing library calls for floating point.
4264 \&\fBWarning:\fR the requisite libraries are not available for all \s-1SPARC\s0
4265 targets.  Normally the facilities of the machine's usual C compiler are
4266 used, but this cannot be done directly in cross-compilation.  You must make
4267 your own arrangements to provide suitable library functions for
4268 cross-compilation.  The embedded targets \fBsparc-*\-aout\fR and
4269 \&\fBsparclite-*\-*\fR do provide software floating point support.
4271 \&\fB\-msoft-float\fR changes the calling convention in the output file;
4272 therefore, it is only useful if you compile \fIall\fR of a program with
4273 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
4274 library that comes with \s-1GCC\s0, with \fB\-msoft-float\fR in order for
4275 this to work.
4276 .Ip "\fB\-mhard-quad-float\fR" 4
4277 .IX Item "-mhard-quad-float"
4278 Generate output containing quad-word (long double) floating point
4279 instructions.
4280 .Ip "\fB\-msoft-quad-float\fR" 4
4281 .IX Item "-msoft-quad-float"
4282 Generate output containing library calls for quad-word (long double)
4283 floating point instructions.  The functions called are those specified
4284 in the \s-1SPARC\s0 \s-1ABI\s0.  This is the default.
4286 As of this writing, there are no sparc implementations that have hardware
4287 support for the quad-word floating point instructions.  They all invoke
4288 a trap handler for one of these instructions, and then the trap handler
4289 emulates the effect of the instruction.  Because of the trap handler overhead,
4290 this is much slower than calling the \s-1ABI\s0 library routines.  Thus the
4291 \&\fB\-msoft-quad-float\fR option is the default.
4292 .Ip "\fB\-mno-epilogue\fR" 4
4293 .IX Item "-mno-epilogue"
4294 .PD 0
4295 .Ip "\fB\-mepilogue\fR" 4
4296 .IX Item "-mepilogue"
4298 With \fB\-mepilogue\fR (the default), the compiler always emits code for
4299 function exit at the end of each function.  Any function exit in
4300 the middle of the function (such as a return statement in C) will
4301 generate a jump to the exit code at the end of the function.
4303 With \fB\-mno-epilogue\fR, the compiler tries to emit exit code inline
4304 at every function exit.
4305 .Ip "\fB\-mno-flat\fR" 4
4306 .IX Item "-mno-flat"
4307 .PD 0
4308 .Ip "\fB\-mflat\fR" 4
4309 .IX Item "-mflat"
4311 With \fB\-mflat\fR, the compiler does not generate save/restore instructions
4312 and will use a ``flat'' or single register window calling convention.
4313 This model uses \f(CW%i7\fR as the frame pointer and is compatible with the normal
4314 register window model.  Code from either may be intermixed.
4315 The local registers and the input registers (0\-5) are still treated as
4316 ``call saved'' registers and will be saved on the stack as necessary.
4318 With \fB\-mno-flat\fR (the default), the compiler emits save/restore
4319 instructions (except for leaf functions) and is the normal mode of operation.
4320 .Ip "\fB\-mno-unaligned-doubles\fR" 4
4321 .IX Item "-mno-unaligned-doubles"
4322 .PD 0
4323 .Ip "\fB\-munaligned-doubles\fR" 4
4324 .IX Item "-munaligned-doubles"
4326 Assume that doubles have 8 byte alignment.  This is the default.
4328 With \fB\-munaligned-doubles\fR, \s-1GCC\s0 assumes that doubles have 8 byte
4329 alignment only if they are contained in another type, or if they have an
4330 absolute address.  Otherwise, it assumes they have 4 byte alignment.
4331 Specifying this option avoids some rare compatibility problems with code
4332 generated by other compilers.  It is not the default because it results
4333 in a performance loss, especially for floating point code.
4334 .Ip "\fB\-mno-faster-structs\fR" 4
4335 .IX Item "-mno-faster-structs"
4336 .PD 0
4337 .Ip "\fB\-mfaster-structs\fR" 4
4338 .IX Item "-mfaster-structs"
4340 With \fB\-mfaster-structs\fR, the compiler assumes that structures
4341 should have 8 byte alignment.  This enables the use of pairs of
4342 \&\f(CW\*(C`ldd\*(C'\fR and \f(CW\*(C`std\*(C'\fR instructions for copies in structure
4343 assignment, in place of twice as many \f(CW\*(C`ld\*(C'\fR and \f(CW\*(C`st\*(C'\fR pairs.
4344 However, the use of this changed alignment directly violates the Sparc
4345 \&\s-1ABI\s0.  Thus, it's intended only for use on targets where the developer
4346 acknowledges that their resulting code will not be directly in line with
4347 the rules of the \s-1ABI\s0.
4348 .Ip "\fB\-mv8\fR" 4
4349 .IX Item "-mv8"
4350 .PD 0
4351 .Ip "\fB\-msparclite\fR" 4
4352 .IX Item "-msparclite"
4354 These two options select variations on the \s-1SPARC\s0 architecture.
4356 By default (unless specifically configured for the Fujitsu SPARClite),
4357 \&\s-1GCC\s0 generates code for the v7 variant of the \s-1SPARC\s0 architecture.
4359 \&\fB\-mv8\fR will give you \s-1SPARC\s0 v8 code.  The only difference from v7
4360 code is that the compiler emits the integer multiply and integer
4361 divide instructions which exist in \s-1SPARC\s0 v8 but not in \s-1SPARC\s0 v7.
4363 \&\fB\-msparclite\fR will give you SPARClite code.  This adds the integer
4364 multiply, integer divide step and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which
4365 exist in SPARClite but not in \s-1SPARC\s0 v7.
4367 These options are deprecated and will be deleted in a future \s-1GCC\s0 release.
4368 They have been replaced with \fB\-mcpu=xxx\fR.
4369 .Ip "\fB\-mcypress\fR" 4
4370 .IX Item "-mcypress"
4371 .PD 0
4372 .Ip "\fB\-msupersparc\fR" 4
4373 .IX Item "-msupersparc"
4375 These two options select the processor for which the code is optimised.
4377 With \fB\-mcypress\fR (the default), the compiler optimizes code for the
4378 Cypress \s-1CY7C602\s0 chip, as used in the SparcStation/SparcServer 3xx series.
4379 This is also appropriate for the older SparcStation 1, 2, \s-1IPX\s0 etc.
4381 With \fB\-msupersparc\fR the compiler optimizes code for the SuperSparc cpu, as
4382 used in the SparcStation 10, 1000 and 2000 series. This flag also enables use
4383 of the full \s-1SPARC\s0 v8 instruction set.
4385 These options are deprecated and will be deleted in a future \s-1GCC\s0 release.
4386 They have been replaced with \fB\-mcpu=xxx\fR.
4387 .Ip "\fB\-mcpu=\fR\fIcpu_type\fR" 4
4388 .IX Item "-mcpu=cpu_type"
4389 Set the instruction set, register set, and instruction scheduling parameters
4390 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
4391 \&\fBv7\fR, \fBcypress\fR, \fBv8\fR, \fBsupersparc\fR, \fBsparclite\fR,
4392 \&\fBhypersparc\fR, \fBsparclite86x\fR, \fBf930\fR, \fBf934\fR,
4393 \&\fBsparclet\fR, \fBtsc701\fR, \fBv9\fR, and \fBultrasparc\fR.
4395 Default instruction scheduling parameters are used for values that select
4396 an architecture and not an implementation.  These are \fBv7\fR, \fBv8\fR,
4397 \&\fBsparclite\fR, \fBsparclet\fR, \fBv9\fR.
4399 Here is a list of each supported architecture and their supported
4400 implementations.
4402 .Vb 5
4403 \&            v7:             cypress
4404 \&            v8:             supersparc, hypersparc
4405 \&            sparclite:      f930, f934, sparclite86x
4406 \&            sparclet:       tsc701
4407 \&            v9:             ultrasparc
4409 .Ip "\fB\-mtune=\fR\fIcpu_type\fR" 4
4410 .IX Item "-mtune=cpu_type"
4411 Set the instruction scheduling parameters for machine type
4412 \&\fIcpu_type\fR, but do not set the instruction set or register set that the
4413 option \fB\-mcpu=\fR\fIcpu_type\fR would.
4415 The same values for \fB\-mcpu=\fR\fIcpu_type\fR are used for
4416 \&\fB\-mtune=\fR\fIcpu_type\fR, though the only useful values are those that
4417 select a particular cpu implementation: \fBcypress\fR, \fBsupersparc\fR,
4418 \&\fBhypersparc\fR, \fBf930\fR, \fBf934\fR, \fBsparclite86x\fR,
4419 \&\fBtsc701\fR, \fBultrasparc\fR.
4421 These \fB\-m\fR switches are supported in addition to the above
4422 on the \s-1SPARCLET\s0 processor.
4423 .Ip "\fB\-mlittle-endian\fR" 4
4424 .IX Item "-mlittle-endian"
4425 Generate code for a processor running in little-endian mode.
4426 .Ip "\fB\-mlive-g0\fR" 4
4427 .IX Item "-mlive-g0"
4428 Treat register \f(CW\*(C`%g0\*(C'\fR as a normal register.
4429 \&\s-1GCC\s0 will continue to clobber it as necessary but will not assume
4430 it always reads as 0.
4431 .Ip "\fB\-mbroken-saverestore\fR" 4
4432 .IX Item "-mbroken-saverestore"
4433 Generate code that does not use non-trivial forms of the \f(CW\*(C`save\*(C'\fR and
4434 \&\f(CW\*(C`restore\*(C'\fR instructions.  Early versions of the \s-1SPARCLET\s0 processor do
4435 not correctly handle \f(CW\*(C`save\*(C'\fR and \f(CW\*(C`restore\*(C'\fR instructions used with
4436 arguments.  They correctly handle them used without arguments.  A \f(CW\*(C`save\*(C'\fR
4437 instruction used without arguments increments the current window pointer
4438 but does not allocate a new stack frame.  It is assumed that the window
4439 overflow trap handler will properly handle this case as will interrupt
4440 handlers.
4442 These \fB\-m\fR switches are supported in addition to the above
4443 on \s-1SPARC\s0 V9 processors in 64\-bit environments.
4444 .Ip "\fB\-mlittle-endian\fR" 4
4445 .IX Item "-mlittle-endian"
4446 Generate code for a processor running in little-endian mode.
4447 .Ip "\fB\-m32\fR" 4
4448 .IX Item "-m32"
4449 .PD 0
4450 .Ip "\fB\-m64\fR" 4
4451 .IX Item "-m64"
4453 Generate code for a 32\-bit or 64\-bit environment.
4454 The 32\-bit environment sets int, long and pointer to 32 bits.
4455 The 64\-bit environment sets int to 32 bits and long and pointer
4456 to 64 bits.
4457 .Ip "\fB\-mcmodel=medlow\fR" 4
4458 .IX Item "-mcmodel=medlow"
4459 Generate code for the Medium/Low code model: the program must be linked
4460 in the low 32 bits of the address space.  Pointers are 64 bits.
4461 Programs can be statically or dynamically linked.
4462 .Ip "\fB\-mcmodel=medmid\fR" 4
4463 .IX Item "-mcmodel=medmid"
4464 Generate code for the Medium/Middle code model: the program must be linked
4465 in the low 44 bits of the address space, the text segment must be less than
4466 2G bytes, and data segment must be within 2G of the text segment.
4467 Pointers are 64 bits.
4468 .Ip "\fB\-mcmodel=medany\fR" 4
4469 .IX Item "-mcmodel=medany"
4470 Generate code for the Medium/Anywhere code model: the program may be linked
4471 anywhere in the address space, the text segment must be less than
4472 2G bytes, and data segment must be within 2G of the text segment.
4473 Pointers are 64 bits.
4474 .Ip "\fB\-mcmodel=embmedany\fR" 4
4475 .IX Item "-mcmodel=embmedany"
4476 Generate code for the Medium/Anywhere code model for embedded systems:
4477 assume a 32\-bit text and a 32\-bit data segment, both starting anywhere
4478 (determined at link time).  Register \f(CW%g4\fR points to the base of the
4479 data segment.  Pointers are still 64 bits.
4480 Programs are statically linked, \s-1PIC\s0 is not supported.
4481 .Ip "\fB\-mstack-bias\fR" 4
4482 .IX Item "-mstack-bias"
4483 .PD 0
4484 .Ip "\fB\-mno-stack-bias\fR" 4
4485 .IX Item "-mno-stack-bias"
4487 With \fB\-mstack-bias\fR, \s-1GCC\s0 assumes that the stack pointer, and
4488 frame pointer if present, are offset by \-2047 which must be added back
4489 when making stack frame references.
4490 Otherwise, assume no such offset is present.
4492 .I "Convex Options"
4493 .IX Subsection "Convex Options"
4495 These \fB\-m\fR options are defined for Convex:
4496 .Ip "\fB\-mc1\fR" 4
4497 .IX Item "-mc1"
4498 Generate output for C1.  The code will run on any Convex machine.
4499 The preprocessor symbol \f(CW\*(C`_\|_convex_\|_c1_\|_\*(C'\fR is defined.
4500 .Ip "\fB\-mc2\fR" 4
4501 .IX Item "-mc2"
4502 Generate output for C2.  Uses instructions not available on C1.
4503 Scheduling and other optimizations are chosen for max performance on C2.
4504 The preprocessor symbol \f(CW\*(C`_\|_convex_c2_\|_\*(C'\fR is defined.
4505 .Ip "\fB\-mc32\fR" 4
4506 .IX Item "-mc32"
4507 Generate output for C32xx.  Uses instructions not available on C1.
4508 Scheduling and other optimizations are chosen for max performance on C32.
4509 The preprocessor symbol \f(CW\*(C`_\|_convex_c32_\|_\*(C'\fR is defined.
4510 .Ip "\fB\-mc34\fR" 4
4511 .IX Item "-mc34"
4512 Generate output for C34xx.  Uses instructions not available on C1.
4513 Scheduling and other optimizations are chosen for max performance on C34.
4514 The preprocessor symbol \f(CW\*(C`_\|_convex_c34_\|_\*(C'\fR is defined.
4515 .Ip "\fB\-mc38\fR" 4
4516 .IX Item "-mc38"
4517 Generate output for C38xx.  Uses instructions not available on C1.
4518 Scheduling and other optimizations are chosen for max performance on C38.
4519 The preprocessor symbol \f(CW\*(C`_\|_convex_c38_\|_\*(C'\fR is defined.
4520 .Ip "\fB\-margcount\fR" 4
4521 .IX Item "-margcount"
4522 Generate code which puts an argument count in the word preceding each
4523 argument list.  This is compatible with regular \s-1CC\s0, and a few programs
4524 may need the argument count word.  \s-1GDB\s0 and other source-level debuggers
4525 do not need it; this info is in the symbol table.
4526 .Ip "\fB\-mnoargcount\fR" 4
4527 .IX Item "-mnoargcount"
4528 Omit the argument count word.  This is the default.
4529 .Ip "\fB\-mvolatile-cache\fR" 4
4530 .IX Item "-mvolatile-cache"
4531 Allow volatile references to be cached.  This is the default.
4532 .Ip "\fB\-mvolatile-nocache\fR" 4
4533 .IX Item "-mvolatile-nocache"
4534 Volatile references bypass the data cache, going all the way to memory.
4535 This is only needed for multi-processor code that does not use standard
4536 synchronization instructions.  Making non-volatile references to volatile
4537 locations will not necessarily work.
4538 .Ip "\fB\-mlong32\fR" 4
4539 .IX Item "-mlong32"
4540 Type long is 32 bits, the same as type int.  This is the default.
4541 .Ip "\fB\-mlong64\fR" 4
4542 .IX Item "-mlong64"
4543 Type long is 64 bits, the same as type long long.  This option is useless,
4544 because no library support exists for it.
4546 .I "\s-1AMD29K\s0 Options"
4547 .IX Subsection "AMD29K Options"
4549 These \fB\-m\fR options are defined for the \s-1AMD\s0 Am29000:
4550 .Ip "\fB\-mdw\fR" 4
4551 .IX Item "-mdw"
4552 Generate code that assumes the \f(CW\*(C`DW\*(C'\fR bit is set, i.e., that byte and
4553 halfword operations are directly supported by the hardware.  This is the
4554 default.
4555 .Ip "\fB\-mndw\fR" 4
4556 .IX Item "-mndw"
4557 Generate code that assumes the \f(CW\*(C`DW\*(C'\fR bit is not set.
4558 .Ip "\fB\-mbw\fR" 4
4559 .IX Item "-mbw"
4560 Generate code that assumes the system supports byte and halfword write
4561 operations.  This is the default.
4562 .Ip "\fB\-mnbw\fR" 4
4563 .IX Item "-mnbw"
4564 Generate code that assumes the systems does not support byte and
4565 halfword write operations.  \fB\-mnbw\fR implies \fB\-mndw\fR.
4566 .Ip "\fB\-msmall\fR" 4
4567 .IX Item "-msmall"
4568 Use a small memory model that assumes that all function addresses are
4569 either within a single 256 \s-1KB\s0 segment or at an absolute address of less
4570 than 256k.  This allows the \f(CW\*(C`call\*(C'\fR instruction to be used instead
4571 of a \f(CW\*(C`const\*(C'\fR, \f(CW\*(C`consth\*(C'\fR, \f(CW\*(C`calli\*(C'\fR sequence.
4572 .Ip "\fB\-mnormal\fR" 4
4573 .IX Item "-mnormal"
4574 Use the normal memory model: Generate \f(CW\*(C`call\*(C'\fR instructions only when
4575 calling functions in the same file and \f(CW\*(C`calli\*(C'\fR instructions
4576 otherwise.  This works if each file occupies less than 256 \s-1KB\s0 but allows
4577 the entire executable to be larger than 256 \s-1KB\s0.  This is the default.
4578 .Ip "\fB\-mlarge\fR" 4
4579 .IX Item "-mlarge"
4580 Always use \f(CW\*(C`calli\*(C'\fR instructions.  Specify this option if you expect
4581 a single file to compile into more than 256 \s-1KB\s0 of code.
4582 .Ip "\fB\-m29050\fR" 4
4583 .IX Item "-m29050"
4584 Generate code for the Am29050.
4585 .Ip "\fB\-m29000\fR" 4
4586 .IX Item "-m29000"
4587 Generate code for the Am29000.  This is the default.
4588 .Ip "\fB\-mkernel-registers\fR" 4
4589 .IX Item "-mkernel-registers"
4590 Generate references to registers \f(CW\*(C`gr64\-gr95\*(C'\fR instead of to
4591 registers \f(CW\*(C`gr96\-gr127\*(C'\fR.  This option can be used when compiling
4592 kernel code that wants a set of global registers disjoint from that used
4593 by user-mode code.
4595 Note that when this option is used, register names in \fB\-f\fR flags
4596 must use the normal, user-mode, names.
4597 .Ip "\fB\-muser-registers\fR" 4
4598 .IX Item "-muser-registers"
4599 Use the normal set of global registers, \f(CW\*(C`gr96\-gr127\*(C'\fR.  This is the
4600 default.
4601 .Ip "\fB\-mstack-check\fR" 4
4602 .IX Item "-mstack-check"
4603 .PD 0
4604 .Ip "\fB\-mno-stack-check\fR" 4
4605 .IX Item "-mno-stack-check"
4607 Insert (or do not insert) a call to \f(CW\*(C`_\|_msp_check\*(C'\fR after each stack
4608 adjustment.  This is often used for kernel code.
4609 .Ip "\fB\-mstorem-bug\fR" 4
4610 .IX Item "-mstorem-bug"
4611 .PD 0
4612 .Ip "\fB\-mno-storem-bug\fR" 4
4613 .IX Item "-mno-storem-bug"
4615 \&\fB\-mstorem-bug\fR handles 29k processors which cannot handle the
4616 separation of a mtsrim insn and a storem instruction (most 29000 chips
4617 to date, but not the 29050).
4618 .Ip "\fB\-mno-reuse-arg-regs\fR" 4
4619 .IX Item "-mno-reuse-arg-regs"
4620 .PD 0
4621 .Ip "\fB\-mreuse-arg-regs\fR" 4
4622 .IX Item "-mreuse-arg-regs"
4624 \&\fB\-mno-reuse-arg-regs\fR tells the compiler to only use incoming argument
4625 registers for copying out arguments.  This helps detect calling a function
4626 with fewer arguments than it was declared with.
4627 .Ip "\fB\-mno-impure-text\fR" 4
4628 .IX Item "-mno-impure-text"
4629 .PD 0
4630 .Ip "\fB\-mimpure-text\fR" 4
4631 .IX Item "-mimpure-text"
4633 \&\fB\-mimpure-text\fR, used in addition to \fB\-shared\fR, tells the compiler to
4634 not pass \fB\-assert pure-text\fR to the linker when linking a shared object.
4635 .Ip "\fB\-msoft-float\fR" 4
4636 .IX Item "-msoft-float"
4637 Generate output containing library calls for floating point.
4638 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC\s0.
4639 Normally the facilities of the machine's usual C compiler are used, but
4640 this can't be done directly in cross-compilation.  You must make your
4641 own arrangements to provide suitable library functions for
4642 cross-compilation.
4643 .Ip "\fB\-mno-multm\fR" 4
4644 .IX Item "-mno-multm"
4645 Do not generate multm or multmu instructions.  This is useful for some embedded
4646 systems which do not have trap handlers for these instructions.
4648 .I "\s-1ARM\s0 Options"
4649 .IX Subsection "ARM Options"
4651 These \fB\-m\fR options are defined for Advanced \s-1RISC\s0 Machines (\s-1ARM\s0)
4652 architectures:
4653 .Ip "\fB\-mapcs-frame\fR" 4
4654 .IX Item "-mapcs-frame"
4655 Generate a stack frame that is compliant with the \s-1ARM\s0 Procedure Call
4656 Standard for all functions, even if this is not strictly necessary for
4657 correct execution of the code.  Specifying \fB\-fomit-frame-pointer\fR
4658 with this option will cause the stack frames not to be generated for
4659 leaf functions.  The default is \fB\-mno-apcs-frame\fR.
4660 .Ip "\fB\-mapcs\fR" 4
4661 .IX Item "-mapcs"
4662 This is a synonym for \fB\-mapcs-frame\fR.
4663 .Ip "\fB\-mapcs-26\fR" 4
4664 .IX Item "-mapcs-26"
4665 Generate code for a processor running with a 26\-bit program counter,
4666 and conforming to the function calling standards for the \s-1APCS\s0 26\-bit
4667 option.  This option replaces the \fB\-m2\fR and \fB\-m3\fR options
4668 of previous releases of the compiler.
4669 .Ip "\fB\-mapcs-32\fR" 4
4670 .IX Item "-mapcs-32"
4671 Generate code for a processor running with a 32\-bit program counter,
4672 and conforming to the function calling standards for the \s-1APCS\s0 32\-bit
4673 option.  This option replaces the \fB\-m6\fR option of previous releases
4674 of the compiler.
4675 .Ip "\fB\-mthumb-interwork\fR" 4
4676 .IX Item "-mthumb-interwork"
4677 Generate code which supports calling between the \s-1ARM\s0 and Thumb
4678 instruction sets.  Without this option the two instruction sets cannot
4679 be reliably used inside one program.  The default is
4680 \&\fB\-mno-thumb-interwork\fR, since slightly larger code is generated
4681 when \fB\-mthumb-interwork\fR is specified.
4682 .Ip "\fB\-mno-sched-prolog\fR" 4
4683 .IX Item "-mno-sched-prolog"
4684 Prevent the reordering of instructions in the function prolog, or the
4685 merging of those instruction with the instructions in the function's
4686 body.  This means that all functions will start with a recognizable set
4687 of instructions (or in fact one of a choice from a small set of
4688 different function prologues), and this information can be used to
4689 locate the start if functions inside an executable piece of code.  The
4690 default is \fB\-msched-prolog\fR.
4691 .Ip "\fB\-mhard-float\fR" 4
4692 .IX Item "-mhard-float"
4693 Generate output containing floating point instructions.  This is the
4694 default.
4695 .Ip "\fB\-msoft-float\fR" 4
4696 .IX Item "-msoft-float"
4697 Generate output containing library calls for floating point.
4698 \&\fBWarning:\fR the requisite libraries are not available for all \s-1ARM\s0
4699 targets.  Normally the facilities of the machine's usual C compiler are
4700 used, but this cannot be done directly in cross-compilation.  You must make
4701 your own arrangements to provide suitable library functions for
4702 cross-compilation.
4704 \&\fB\-msoft-float\fR changes the calling convention in the output file;
4705 therefore, it is only useful if you compile \fIall\fR of a program with
4706 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
4707 library that comes with \s-1GCC\s0, with \fB\-msoft-float\fR in order for
4708 this to work.
4709 .Ip "\fB\-mlittle-endian\fR" 4
4710 .IX Item "-mlittle-endian"
4711 Generate code for a processor running in little-endian mode.  This is
4712 the default for all standard configurations.
4713 .Ip "\fB\-mbig-endian\fR" 4
4714 .IX Item "-mbig-endian"
4715 Generate code for a processor running in big-endian mode; the default is
4716 to compile code for a little-endian processor.
4717 .Ip "\fB\-mwords-little-endian\fR" 4
4718 .IX Item "-mwords-little-endian"
4719 This option only applies when generating code for big-endian processors.
4720 Generate code for a little-endian word order but a big-endian byte
4721 order.  That is, a byte order of the form \fB32107654\fR.  Note: this
4722 option should only be used if you require compatibility with code for
4723 big-endian \s-1ARM\s0 processors generated by versions of the compiler prior to
4724 2.8.
4725 .Ip "\fB\-malignment-traps\fR" 4
4726 .IX Item "-malignment-traps"
4727 Generate code that will not trap if the \s-1MMU\s0 has alignment traps enabled.
4728 On \s-1ARM\s0 architectures prior to ARMv4, there were no instructions to
4729 access half-word objects stored in memory.  However, when reading from
4730 memory a feature of the \s-1ARM\s0 architecture allows a word load to be used,
4731 even if the address is unaligned, and the processor core will rotate the
4732 data as it is being loaded.  This option tells the compiler that such
4733 misaligned accesses will cause a \s-1MMU\s0 trap and that it should instead
4734 synthesise the access as a series of byte accesses.  The compiler can
4735 still use word accesses to load half-word data if it knows that the
4736 address is aligned to a word boundary.
4738 This option is ignored when compiling for \s-1ARM\s0 architecture 4 or later,
4739 since these processors have instructions to directly access half-word
4740 objects in memory.
4741 .Ip "\fB\-mno-alignment-traps\fR" 4
4742 .IX Item "-mno-alignment-traps"
4743 Generate code that assumes that the \s-1MMU\s0 will not trap unaligned
4744 accesses.  This produces better code when the target instruction set
4745 does not have half-word memory operations (i.e. implementations prior to
4746 ARMv4).
4748 Note that you cannot use this option to access unaligned word objects,
4749 since the processor will only fetch one 32\-bit aligned object from
4750 memory.
4752 The default setting for most targets is \fB\-mno-alignment-traps\fR, since
4753 this produces better code when there are no half-word memory
4754 instructions available.
4755 .Ip "\fB\-mshort-load-bytes\fR" 4
4756 .IX Item "-mshort-load-bytes"
4757 .PD 0
4758 .Ip "\fB\-mno-short-load-words\fR" 4
4759 .IX Item "-mno-short-load-words"
4761 These are deprecated aliases for \fB\-malignment-traps\fR.
4762 .Ip "\fB\-mno-short-load-bytes\fR" 4
4763 .IX Item "-mno-short-load-bytes"
4764 .PD 0
4765 .Ip "\fB\-mshort-load-words\fR" 4
4766 .IX Item "-mshort-load-words"
4768 This are deprecated aliases for \fB\-mno-alignment-traps\fR.
4769 .Ip "\fB\-mbsd\fR" 4
4770 .IX Item "-mbsd"
4771 This option only applies to \s-1RISC\s0 iX.  Emulate the native BSD-mode
4772 compiler.  This is the default if \fB\-ansi\fR is not specified.
4773 .Ip "\fB\-mxopen\fR" 4
4774 .IX Item "-mxopen"
4775 This option only applies to \s-1RISC\s0 iX.  Emulate the native X/Open-mode
4776 compiler.
4777 .Ip "\fB\-mno-symrename\fR" 4
4778 .IX Item "-mno-symrename"
4779 This option only applies to \s-1RISC\s0 iX.  Do not run the assembler
4780 post-processor, \fBsymrename\fR, after code has been assembled.
4781 Normally it is necessary to modify some of the standard symbols in
4782 preparation for linking with the \s-1RISC\s0 iX C library; this option
4783 suppresses this pass.  The post-processor is never run when the
4784 compiler is built for cross-compilation.
4785 .Ip "\fB\-mcpu=\fR\fIname\fR" 4
4786 .IX Item "-mcpu=name"
4787 This specifies the name of the target \s-1ARM\s0 processor.  \s-1GCC\s0 uses this name
4788 to determine what kind of instructions it can emit when generating
4789 assembly code.  Permissible names are: arm2, arm250, arm3, arm6, arm60,
4790 arm600, arm610, arm620, arm7, arm7m, arm7d, arm7dm, arm7di, arm7dmi,
4791 arm70, arm700, arm700i, arm710, arm710c, arm7100, arm7500, arm7500fe,
4792 arm7tdmi, arm8, strongarm, strongarm110, strongarm1100, arm8, arm810,
4793 arm9, arm9e, arm920, arm920t, arm940t, arm9tdmi, arm10tdmi, arm1020t,
4794 xscale.
4795 .Ip "\fB\-mtune=\fR\fIname\fR" 4
4796 .IX Item "-mtune=name"
4797 This option is very similar to the \fB\-mcpu=\fR option, except that
4798 instead of specifying the actual target processor type, and hence
4799 restricting which instructions can be used, it specifies that \s-1GCC\s0 should
4800 tune the performance of the code as if the target were of the type
4801 specified in this option, but still choosing the instructions that it
4802 will generate based on the cpu specified by a \fB\-mcpu=\fR option.
4803 For some \s-1ARM\s0 implementations better performance can be obtained by using
4804 this option.
4805 .Ip "\fB\-march=\fR\fIname\fR" 4
4806 .IX Item "-march=name"
4807 This specifies the name of the target \s-1ARM\s0 architecture.  \s-1GCC\s0 uses this
4808 name to determine what kind of instructions it can emit when generating
4809 assembly code.  This option can be used in conjunction with or instead
4810 of the \fB\-mcpu=\fR option.  Permissible names are: armv2, armv2a,
4811 armv3, armv3m, armv4, armv4t, armv5, armv5t, armv5te.
4812 .Ip "\fB\-mfpe=\fR\fInumber\fR" 4
4813 .IX Item "-mfpe=number"
4814 .PD 0
4815 .Ip "\fB\-mfp=\fR\fInumber\fR" 4
4816 .IX Item "-mfp=number"
4818 This specifies the version of the floating point emulation available on
4819 the target.  Permissible values are 2 and 3.  \fB\-mfp=\fR is a synonym
4820 for \fB\-mfpe=\fR, for compatibility with older versions of \s-1GCC\s0.
4821 .Ip "\fB\-mstructure-size-boundary=\fR\fIn\fR" 4
4822 .IX Item "-mstructure-size-boundary=n"
4823 The size of all structures and unions will be rounded up to a multiple
4824 of the number of bits set by this option.  Permissible values are 8 and
4825 32.  The default value varies for different toolchains.  For the \s-1COFF\s0
4826 targeted toolchain the default value is 8.  Specifying the larger number
4827 can produce faster, more efficient code, but can also increase the size
4828 of the program.  The two values are potentially incompatible.  Code
4829 compiled with one value cannot necessarily expect to work with code or
4830 libraries compiled with the other value, if they exchange information
4831 using structures or unions.
4832 .Ip "\fB\-mabort-on-noreturn\fR" 4
4833 .IX Item "-mabort-on-noreturn"
4834 Generate a call to the function \f(CW\*(C`abort\*(C'\fR at the end of a
4835 \&\f(CW\*(C`noreturn\*(C'\fR function.  It will be executed if the function tries to
4836 return.
4837 .Ip "\fB\-mlong-calls\fR" 4
4838 .IX Item "-mlong-calls"
4839 .PD 0
4840 .Ip "\fB\-mno-long-calls\fR" 4
4841 .IX Item "-mno-long-calls"
4843 Tells the compiler to perform function calls by first loading the
4844 address of the function into a register and then performing a subroutine
4845 call on this register.  This switch is needed if the target function
4846 will lie outside of the 64 megabyte addressing range of the offset based
4847 version of subroutine call instruction.
4849 Even if this switch is enabled, not all function calls will be turned
4850 into long calls.  The heuristic is that static functions, functions
4851 which have the \fBshort-call\fR attribute, functions that are inside
4852 the scope of a \fB#pragma no_long_calls\fR directive and functions whose
4853 definitions have already been compiled within the current compilation
4854 unit, will not be turned into long calls.  The exception to this rule is
4855 that weak function definitions, functions with the \fBlong-call\fR
4856 attribute or the \fBsection\fR attribute, and functions that are within
4857 the scope of a \fB#pragma long_calls\fR directive, will always be
4858 turned into long calls.
4860 This feature is not enabled by default.  Specifying
4861 \&\fB\-mno-long-calls\fR will restore the default behaviour, as will
4862 placing the function calls within the scope of a \fB#pragma
4863 long_calls_off\fR directive.  Note these switches have no effect on how
4864 the compiler generates code to handle function calls via function
4865 pointers.
4866 .Ip "\fB\-mnop-fun-dllimport\fR" 4
4867 .IX Item "-mnop-fun-dllimport"
4868 Disable support for the \fIdllimport\fR attribute.
4869 .Ip "\fB\-msingle-pic-base\fR" 4
4870 .IX Item "-msingle-pic-base"
4871 Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
4872 loading it in the prologue for each function.  The run-time system is
4873 responsible for initialising this register with an appropriate value
4874 before execution begins.
4875 .Ip "\fB\-mpic-register=\fR\fIreg\fR" 4
4876 .IX Item "-mpic-register=reg"
4877 Specify the register to be used for \s-1PIC\s0 addressing.  The default is R10
4878 unless stack-checking is enabled, when R9 is used.
4879 .Ip "\fB\-mpoke-function-name\fR" 4
4880 .IX Item "-mpoke-function-name"
4881 Write the name of each function into the text section, directly
4882 preceding the function prologue.  The generated code is similar to this:
4884 .Vb 9
4885 \&             t0
4886 \&                 .ascii "arm_poke_function_name", 0
4887 \&                 .align
4888 \&             t1
4889 \&                 .word 0xff000000 + (t1 - t0)
4890 \&             arm_poke_function_name
4891 \&                 mov     ip, sp
4892 \&                 stmfd   sp!, {fp, ip, lr, pc}
4893 \&                 sub     fp, ip, #4
4895 When performing a stack backtrace, code can inspect the value of
4896 \&\f(CW\*(C`pc\*(C'\fR stored at \f(CW\*(C`fp + 0\*(C'\fR.  If the trace function then looks at
4897 location \f(CW\*(C`pc \- 12\*(C'\fR and the top 8 bits are set, then we know that
4898 there is a function name embedded immediately preceding this location
4899 and has length \f(CW\*(C`((pc[\-3]) & 0xff000000)\*(C'\fR.
4900 .Ip "\fB\-mthumb\fR" 4
4901 .IX Item "-mthumb"
4902 Generate code for the 16\-bit Thumb instruction set.  The default is to
4903 use the 32\-bit \s-1ARM\s0 instruction set.
4904 .Ip "\fB\-mtpcs-frame\fR" 4
4905 .IX Item "-mtpcs-frame"
4906 Generate a stack frame that is compliant with the Thumb Procedure Call
4907 Standard for all non-leaf functions.  (A leaf function is one that does
4908 not call any other functions.)  The default is \fB\-mno-tpcs-frame\fR.
4909 .Ip "\fB\-mtpcs-leaf-frame\fR" 4
4910 .IX Item "-mtpcs-leaf-frame"
4911 Generate a stack frame that is compliant with the Thumb Procedure Call
4912 Standard for all leaf functions.  (A leaf function is one that does
4913 not call any other functions.)  The default is \fB\-mno-apcs-leaf-frame\fR.
4914 .Ip "\fB\-mcallee-super-interworking\fR" 4
4915 .IX Item "-mcallee-super-interworking"
4916 Gives all externally visible functions in the file being compiled an \s-1ARM\s0
4917 instruction set header which switches to Thumb mode before executing the
4918 rest of the function.  This allows these functions to be called from
4919 non-interworking code.
4920 .Ip "\fB\-mcaller-super-interworking\fR" 4
4921 .IX Item "-mcaller-super-interworking"
4922 Allows calls via function pointers (including virtual functions) to
4923 execute correctly regardless of whether the target code has been
4924 compiled for interworking or not.  There is a small overhead in the cost
4925 of executing a function pointer if this option is enabled.
4927 .I "\s-1MN10200\s0 Options"
4928 .IX Subsection "MN10200 Options"
4930 These \fB\-m\fR options are defined for Matsushita \s-1MN10200\s0 architectures:
4931 .Ip "\fB\-mrelax\fR" 4
4932 .IX Item "-mrelax"
4933 Indicate to the linker that it should perform a relaxation optimization pass
4934 to shorten branches, calls and absolute memory addresses.  This option only
4935 has an effect when used on the command line for the final link step.
4937 This option makes symbolic debugging impossible.
4939 .I "\s-1MN10300\s0 Options"
4940 .IX Subsection "MN10300 Options"
4942 These \fB\-m\fR options are defined for Matsushita \s-1MN10300\s0 architectures:
4943 .Ip "\fB\-mmult-bug\fR" 4
4944 .IX Item "-mmult-bug"
4945 Generate code to avoid bugs in the multiply instructions for the \s-1MN10300\s0
4946 processors.  This is the default.
4947 .Ip "\fB\-mno-mult-bug\fR" 4
4948 .IX Item "-mno-mult-bug"
4949 Do not generate code to avoid bugs in the multiply instructions for the
4950 \&\s-1MN10300\s0 processors.
4951 .Ip "\fB\-mam33\fR" 4
4952 .IX Item "-mam33"
4953 Generate code which uses features specific to the \s-1AM33\s0 processor.
4954 .Ip "\fB\-mno-am33\fR" 4
4955 .IX Item "-mno-am33"
4956 Do not generate code which uses features specific to the \s-1AM33\s0 processor.  This
4957 is the default.
4958 .Ip "\fB\-mno-crt0\fR" 4
4959 .IX Item "-mno-crt0"
4960 Do not link in the C run-time initialization object file.
4961 .Ip "\fB\-mrelax\fR" 4
4962 .IX Item "-mrelax"
4963 Indicate to the linker that it should perform a relaxation optimization pass
4964 to shorten branches, calls and absolute memory addresses.  This option only
4965 has an effect when used on the command line for the final link step.
4967 This option makes symbolic debugging impossible.
4969 .I "M32R/D Options"
4970 .IX Subsection "M32R/D Options"
4972 These \fB\-m\fR options are defined for Mitsubishi M32R/D architectures:
4973 .Ip "\fB\-mcode-model=small\fR" 4
4974 .IX Item "-mcode-model=small"
4975 Assume all objects live in the lower 16MB of memory (so that their addresses
4976 can be loaded with the \f(CW\*(C`ld24\*(C'\fR instruction), and assume all subroutines
4977 are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
4978 This is the default.
4980 The addressability of a particular object can be set with the
4981 \&\f(CW\*(C`model\*(C'\fR attribute.
4982 .Ip "\fB\-mcode-model=medium\fR" 4
4983 .IX Item "-mcode-model=medium"
4984 Assume objects may be anywhere in the 32\-bit address space (the compiler
4985 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
4986 assume all subroutines are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
4987 .Ip "\fB\-mcode-model=large\fR" 4
4988 .IX Item "-mcode-model=large"
4989 Assume objects may be anywhere in the 32\-bit address space (the compiler
4990 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
4991 assume subroutines may not be reachable with the \f(CW\*(C`bl\*(C'\fR instruction
4992 (the compiler will generate the much slower \f(CW\*(C`seth/add3/jl\*(C'\fR
4993 instruction sequence).
4994 .Ip "\fB\-msdata=none\fR" 4
4995 .IX Item "-msdata=none"
4996 Disable use of the small data area.  Variables will be put into
4997 one of \fB.data\fR, \fBbss\fR, or \fB.rodata\fR (unless the
4998 \&\f(CW\*(C`section\*(C'\fR attribute has been specified).
4999 This is the default.
5001 The small data area consists of sections \fB.sdata\fR and \fB.sbss\fR.
5002 Objects may be explicitly put in the small data area with the
5003 \&\f(CW\*(C`section\*(C'\fR attribute using one of these sections.
5004 .Ip "\fB\-msdata=sdata\fR" 4
5005 .IX Item "-msdata=sdata"
5006 Put small global and static data in the small data area, but do not
5007 generate special code to reference them.
5008 .Ip "\fB\-msdata=use\fR" 4
5009 .IX Item "-msdata=use"
5010 Put small global and static data in the small data area, and generate
5011 special instructions to reference them.
5012 .Ip "\fB\-G\fR \fInum\fR" 4
5013 .IX Item "-G num"
5014 Put global and static objects less than or equal to \fInum\fR bytes
5015 into the small data or bss sections instead of the normal data or bss
5016 sections.  The default value of \fInum\fR is 8.
5017 The \fB\-msdata\fR option must be set to one of \fBsdata\fR or \fBuse\fR
5018 for this option to have any effect.
5020 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
5021 Compiling with different values of \fInum\fR may or may not work; if it
5022 doesn't the linker will give an error message\-\-\-incorrect code will not be
5023 generated.
5025 .I "M88K Options"
5026 .IX Subsection "M88K Options"
5028 These \fB\-m\fR options are defined for Motorola 88k architectures:
5029 .Ip "\fB\-m88000\fR" 4
5030 .IX Item "-m88000"
5031 Generate code that works well on both the m88100 and the
5032 m88110.
5033 .Ip "\fB\-m88100\fR" 4
5034 .IX Item "-m88100"
5035 Generate code that works best for the m88100, but that also
5036 runs on the m88110.
5037 .Ip "\fB\-m88110\fR" 4
5038 .IX Item "-m88110"
5039 Generate code that works best for the m88110, and may not run
5040 on the m88100.
5041 .Ip "\fB\-mbig-pic\fR" 4
5042 .IX Item "-mbig-pic"
5043 Obsolete option to be removed from the next revision.
5044 Use \fB\-fPIC\fR.
5045 .Ip "\fB\-midentify-revision\fR" 4
5046 .IX Item "-midentify-revision"
5047 Include an \f(CW\*(C`ident\*(C'\fR directive in the assembler output recording the
5048 source file name, compiler name and version, timestamp, and compilation
5049 flags used.
5050 .Ip "\fB\-mno-underscores\fR" 4
5051 .IX Item "-mno-underscores"
5052 In assembler output, emit symbol names without adding an underscore
5053 character at the beginning of each name.  The default is to use an
5054 underscore as prefix on each name.
5055 .Ip "\fB\-mocs-debug-info\fR" 4
5056 .IX Item "-mocs-debug-info"
5057 .PD 0
5058 .Ip "\fB\-mno-ocs-debug-info\fR" 4
5059 .IX Item "-mno-ocs-debug-info"
5061 Include (or omit) additional debugging information (about registers used
5062 in each stack frame) as specified in the 88open Object Compatibility
5063 Standard, ``\s-1OCS\s0''.  This extra information allows debugging of code that
5064 has had the frame pointer eliminated.  The default for \s-1DG/UX\s0, SVr4, and
5065 Delta 88 SVr3.2 is to include this information; other 88k configurations
5066 omit this information by default.
5067 .Ip "\fB\-mocs-frame-position\fR" 4
5068 .IX Item "-mocs-frame-position"
5069 When emitting \s-1COFF\s0 debugging information for automatic variables and
5070 parameters stored on the stack, use the offset from the canonical frame
5071 address, which is the stack pointer (register 31) on entry to the
5072 function.  The \s-1DG/UX\s0, SVr4, Delta88 SVr3.2, and \s-1BCS\s0 configurations use
5073 \&\fB\-mocs-frame-position\fR; other 88k configurations have the default
5074 \&\fB\-mno-ocs-frame-position\fR.
5075 .Ip "\fB\-mno-ocs-frame-position\fR" 4
5076 .IX Item "-mno-ocs-frame-position"
5077 When emitting \s-1COFF\s0 debugging information for automatic variables and
5078 parameters stored on the stack, use the offset from the frame pointer
5079 register (register 30).  When this option is in effect, the frame
5080 pointer is not eliminated when debugging information is selected by the
5081 \&\-g switch.
5082 .Ip "\fB\-moptimize-arg-area\fR" 4
5083 .IX Item "-moptimize-arg-area"
5084 .PD 0
5085 .Ip "\fB\-mno-optimize-arg-area\fR" 4
5086 .IX Item "-mno-optimize-arg-area"
5088 Control how function arguments are stored in stack frames.
5089 \&\fB\-moptimize-arg-area\fR saves space by optimizing them, but this
5090 conflicts with the 88open specifications.  The opposite alternative,
5091 \&\fB\-mno-optimize-arg-area\fR, agrees with 88open standards.  By default
5092 \&\s-1GCC\s0 does not optimize the argument area.
5093 .Ip "\fB\-mshort-data-\fR\fInum\fR" 4
5094 .IX Item "-mshort-data-num"
5095 Generate smaller data references by making them relative to \f(CW\*(C`r0\*(C'\fR,
5096 which allows loading a value using a single instruction (rather than the
5097 usual two).  You control which data references are affected by
5098 specifying \fInum\fR with this option.  For example, if you specify
5099 \&\fB\-mshort-data-512\fR, then the data references affected are those
5100 involving displacements of less than 512 bytes.
5101 \&\fB\-mshort-data-\fR\fInum\fR is not effective for \fInum\fR greater
5102 than 64k.
5103 .Ip "\fB\-mserialize-volatile\fR" 4
5104 .IX Item "-mserialize-volatile"
5105 .PD 0
5106 .Ip "\fB\-mno-serialize-volatile\fR" 4
5107 .IX Item "-mno-serialize-volatile"
5109 Do, or don't, generate code to guarantee sequential consistency
5110 of volatile memory references.  By default, consistency is
5111 guaranteed.
5113 The order of memory references made by the \s-1MC88110\s0 processor does
5114 not always match the order of the instructions requesting those
5115 references.  In particular, a load instruction may execute before
5116 a preceding store instruction.  Such reordering violates
5117 sequential consistency of volatile memory references, when there
5118 are multiple processors.   When consistency must be guaranteed,
5119 \&\s-1GCC\s0 generates special instructions, as needed, to force
5120 execution in the proper order.
5122 The \s-1MC88100\s0 processor does not reorder memory references and so
5123 always provides sequential consistency.  However, by default, \s-1GCC\s0
5124 generates the special instructions to guarantee consistency
5125 even when you use \fB\-m88100\fR, so that the code may be run on an
5126 \&\s-1MC88110\s0 processor.  If you intend to run your code only on the
5127 \&\s-1MC88100\s0 processor, you may use \fB\-mno-serialize-volatile\fR.
5129 The extra code generated to guarantee consistency may affect the
5130 performance of your application.  If you know that you can safely
5131 forgo this guarantee, you may use \fB\-mno-serialize-volatile\fR.
5132 .Ip "\fB\-msvr4\fR" 4
5133 .IX Item "-msvr4"
5134 .PD 0
5135 .Ip "\fB\-msvr3\fR" 4
5136 .IX Item "-msvr3"
5138 Turn on (\fB\-msvr4\fR) or off (\fB\-msvr3\fR) compiler extensions
5139 related to System V release 4 (SVr4).  This controls the following:
5140 .RS 4
5141 .Ip "1." 4
5142 Which variant of the assembler syntax to emit.
5143 .Ip "2." 4
5144 \&\fB\-msvr4\fR makes the C preprocessor recognize \fB#pragma weak\fR
5145 that is used on System V release 4.
5146 .Ip "3." 4
5147 \&\fB\-msvr4\fR makes \s-1GCC\s0 issue additional declaration directives used in
5148 SVr4.
5150 .RS 4
5152 \&\fB\-msvr4\fR is the default for the m88k-motorola-sysv4 and
5153 m88k-dg-dgux m88k configurations. \fB\-msvr3\fR is the default for all
5154 other m88k configurations.
5156 .Ip "\fB\-mversion-03.00\fR" 4
5157 .IX Item "-mversion-03.00"
5158 This option is obsolete, and is ignored.
5159 .Ip "\fB\-mno-check-zero-division\fR" 4
5160 .IX Item "-mno-check-zero-division"
5161 .PD 0
5162 .Ip "\fB\-mcheck-zero-division\fR" 4
5163 .IX Item "-mcheck-zero-division"
5165 Do, or don't, generate code to guarantee that integer division by
5166 zero will be detected.  By default, detection is guaranteed.
5168 Some models of the \s-1MC88100\s0 processor fail to trap upon integer
5169 division by zero under certain conditions.  By default, when
5170 compiling code that might be run on such a processor, \s-1GCC\s0
5171 generates code that explicitly checks for zero-valued divisors
5172 and traps with exception number 503 when one is detected.  Use of
5173 mno-check-zero-division suppresses such checking for code
5174 generated to run on an \s-1MC88100\s0 processor.
5176 \&\s-1GCC\s0 assumes that the \s-1MC88110\s0 processor correctly detects all
5177 instances of integer division by zero.  When \fB\-m88110\fR is
5178 specified, both \fB\-mcheck-zero-division\fR and
5179 \&\fB\-mno-check-zero-division\fR are ignored, and no explicit checks for
5180 zero-valued divisors are generated.
5181 .Ip "\fB\-muse-div-instruction\fR" 4
5182 .IX Item "-muse-div-instruction"
5183 Use the div instruction for signed integer division on the
5184 \&\s-1MC88100\s0 processor.  By default, the div instruction is not used.
5186 On the \s-1MC88100\s0 processor the signed integer division instruction
5187 div) traps to the operating system on a negative operand.  The
5188 operating system transparently completes the operation, but at a
5189 large cost in execution time.  By default, when compiling code
5190 that might be run on an \s-1MC88100\s0 processor, \s-1GCC\s0 emulates signed
5191 integer division using the unsigned integer division instruction
5192 divu), thereby avoiding the large penalty of a trap to the
5193 operating system.  Such emulation has its own, smaller, execution
5194 cost in both time and space.  To the extent that your code's
5195 important signed integer division operations are performed on two
5196 nonnegative operands, it may be desirable to use the div
5197 instruction directly.
5199 On the \s-1MC88110\s0 processor the div instruction (also known as the
5200 divs instruction) processes negative operands without trapping to
5201 the operating system.  When \fB\-m88110\fR is specified,
5202 \&\fB\-muse-div-instruction\fR is ignored, and the div instruction is used
5203 for signed integer division.
5205 Note that the result of dividing \f(CW\*(C`INT_MIN\*(C'\fR by \-1 is undefined.  In
5206 particular, the behavior of such a division with and without
5207 \&\fB\-muse-div-instruction\fR may differ.
5208 .Ip "\fB\-mtrap-large-shift\fR" 4
5209 .IX Item "-mtrap-large-shift"
5210 .PD 0
5211 .Ip "\fB\-mhandle-large-shift\fR" 4
5212 .IX Item "-mhandle-large-shift"
5214 Include code to detect bit-shifts of more than 31 bits; respectively,
5215 trap such shifts or emit code to handle them properly.  By default \s-1GCC\s0
5216 makes no special provision for large bit shifts.
5217 .Ip "\fB\-mwarn-passed-structs\fR" 4
5218 .IX Item "-mwarn-passed-structs"
5219 Warn when a function passes a struct as an argument or result.
5220 Structure-passing conventions have changed during the evolution of the C
5221 language, and are often the source of portability problems.  By default,
5222 \&\s-1GCC\s0 issues no such warning.
5224 .I "\s-1IBM\s0 \s-1RS/6000\s0 and PowerPC Options"
5225 .IX Subsection "IBM RS/6000 and PowerPC Options"
5227 These \fB\-m\fR options are defined for the \s-1IBM\s0 \s-1RS/6000\s0 and PowerPC:
5228 .Ip "\fB\-mpower\fR" 4
5229 .IX Item "-mpower"
5230 .PD 0
5231 .Ip "\fB\-mno-power\fR" 4
5232 .IX Item "-mno-power"
5233 .Ip "\fB\-mpower2\fR" 4
5234 .IX Item "-mpower2"
5235 .Ip "\fB\-mno-power2\fR" 4
5236 .IX Item "-mno-power2"
5237 .Ip "\fB\-mpowerpc\fR" 4
5238 .IX Item "-mpowerpc"
5239 .Ip "\fB\-mno-powerpc\fR" 4
5240 .IX Item "-mno-powerpc"
5241 .Ip "\fB\-mpowerpc-gpopt\fR" 4
5242 .IX Item "-mpowerpc-gpopt"
5243 .Ip "\fB\-mno-powerpc-gpopt\fR" 4
5244 .IX Item "-mno-powerpc-gpopt"
5245 .Ip "\fB\-mpowerpc-gfxopt\fR" 4
5246 .IX Item "-mpowerpc-gfxopt"
5247 .Ip "\fB\-mno-powerpc-gfxopt\fR" 4
5248 .IX Item "-mno-powerpc-gfxopt"
5249 .Ip "\fB\-mpowerpc64\fR" 4
5250 .IX Item "-mpowerpc64"
5251 .Ip "\fB\-mno-powerpc64\fR" 4
5252 .IX Item "-mno-powerpc64"
5254 \&\s-1GCC\s0 supports two related instruction set architectures for the
5255 \&\s-1RS/6000\s0 and PowerPC.  The \fI\s-1POWER\s0\fR instruction set are those
5256 instructions supported by the \fBrios\fR chip set used in the original
5257 \&\s-1RS/6000\s0 systems and the \fIPowerPC\fR instruction set is the
5258 architecture of the Motorola MPC5xx, MPC6xx, MPC8xx microprocessors, and
5259 the \s-1IBM\s0 4xx microprocessors.
5261 Neither architecture is a subset of the other.  However there is a
5262 large common subset of instructions supported by both.  An \s-1MQ\s0
5263 register is included in processors supporting the \s-1POWER\s0 architecture.
5265 You use these options to specify which instructions are available on the
5266 processor you are using.  The default value of these options is
5267 determined when configuring \s-1GCC\s0.  Specifying the
5268 \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
5269 options.  We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
5270 rather than the options listed above.
5272 The \fB\-mpower\fR option allows \s-1GCC\s0 to generate instructions that
5273 are found only in the \s-1POWER\s0 architecture and to use the \s-1MQ\s0 register.
5274 Specifying \fB\-mpower2\fR implies \fB\-power\fR and also allows \s-1GCC\s0
5275 to generate instructions that are present in the \s-1POWER2\s0 architecture but
5276 not the original \s-1POWER\s0 architecture.
5278 The \fB\-mpowerpc\fR option allows \s-1GCC\s0 to generate instructions that
5279 are found only in the 32\-bit subset of the PowerPC architecture.
5280 Specifying \fB\-mpowerpc-gpopt\fR implies \fB\-mpowerpc\fR and also allows
5281 \&\s-1GCC\s0 to use the optional PowerPC architecture instructions in the
5282 General Purpose group, including floating-point square root.  Specifying
5283 \&\fB\-mpowerpc-gfxopt\fR implies \fB\-mpowerpc\fR and also allows \s-1GCC\s0 to
5284 use the optional PowerPC architecture instructions in the Graphics
5285 group, including floating-point select.
5287 The \fB\-mpowerpc64\fR option allows \s-1GCC\s0 to generate the additional
5288 64\-bit instructions that are found in the full PowerPC64 architecture
5289 and to treat GPRs as 64\-bit, doubleword quantities.  \s-1GCC\s0 defaults to
5290 \&\fB\-mno-powerpc64\fR.
5292 If you specify both \fB\-mno-power\fR and \fB\-mno-powerpc\fR, \s-1GCC\s0
5293 will use only the instructions in the common subset of both
5294 architectures plus some special \s-1AIX\s0 common-mode calls, and will not use
5295 the \s-1MQ\s0 register.  Specifying both \fB\-mpower\fR and \fB\-mpowerpc\fR
5296 permits \s-1GCC\s0 to use any instruction from either architecture and to
5297 allow use of the \s-1MQ\s0 register; specify this for the Motorola \s-1MPC601\s0.
5298 .Ip "\fB\-mnew-mnemonics\fR" 4
5299 .IX Item "-mnew-mnemonics"
5300 .PD 0
5301 .Ip "\fB\-mold-mnemonics\fR" 4
5302 .IX Item "-mold-mnemonics"
5304 Select which mnemonics to use in the generated assembler code.
5305 \&\fB\-mnew-mnemonics\fR requests output that uses the assembler mnemonics
5306 defined for the PowerPC architecture, while \fB\-mold-mnemonics\fR
5307 requests the assembler mnemonics defined for the \s-1POWER\s0 architecture.
5308 Instructions defined in only one architecture have only one mnemonic;
5309 \&\s-1GCC\s0 uses that mnemonic irrespective of which of these options is
5310 specified.
5312 \&\s-1GCC\s0 defaults to the mnemonics appropriate for the architecture in
5313 use.  Specifying \fB\-mcpu=\fR\fIcpu_type\fR sometimes overrides the
5314 value of these option.  Unless you are building a cross-compiler, you
5315 should normally not specify either \fB\-mnew-mnemonics\fR or
5316 \&\fB\-mold-mnemonics\fR, but should instead accept the default.
5317 .Ip "\fB\-mcpu=\fR\fIcpu_type\fR" 4
5318 .IX Item "-mcpu=cpu_type"
5319 Set architecture type, register usage, choice of mnemonics, and
5320 instruction scheduling parameters for machine type \fIcpu_type\fR.
5321 Supported values for \fIcpu_type\fR are \fBrios\fR, \fBrios1\fR,
5322 \&\fBrsc\fR, \fBrios2\fR, \fBrs64a\fR, \fB601\fR, \fB602\fR,
5323 \&\fB603\fR, \fB603e\fR, \fB604\fR, \fB604e\fR, \fB620\fR,
5324 \&\fB630\fR, \fB740\fR, \fB750\fR, \fBpower\fR, \fBpower2\fR,
5325 \&\fBpowerpc\fR, \fB403\fR, \fB505\fR, \fB801\fR, \fB821\fR,
5326 \&\fB823\fR, and \fB860\fR and \fBcommon\fR.  \fB\-mcpu=power\fR,
5327 \&\fB\-mcpu=power2\fR, \fB\-mcpu=powerpc\fR, and \fB\-mcpu=powerpc64\fR
5328 specify generic \s-1POWER\s0, \s-1POWER2\s0, pure 32\-bit PowerPC (i.e., not \s-1MPC601\s0),
5329 and 64\-bit PowerPC architecture machine types, with an appropriate,
5330 generic processor model assumed for scheduling purposes.
5332 Specifying any of the following options:
5333 \&\fB\-mcpu=rios1\fR, \fB\-mcpu=rios2\fR, \fB\-mcpu=rsc\fR,
5334 \&\fB\-mcpu=power\fR, or \fB\-mcpu=power2\fR
5335 enables the \fB\-mpower\fR option and disables the \fB\-mpowerpc\fR option;
5336 \&\fB\-mcpu=601\fR enables both the \fB\-mpower\fR and \fB\-mpowerpc\fR options.
5337 All of \fB\-mcpu=rs64a\fR, \fB\-mcpu=602\fR, \fB\-mcpu=603\fR,
5338 \&\fB\-mcpu=603e\fR, \fB\-mcpu=604\fR, \fB\-mcpu=620\fR, \fB\-mcpu=630\fR,
5339 \&\fB\-mcpu=740\fR, and \fB\-mcpu=750\fR
5340 enable the \fB\-mpowerpc\fR option and disable the \fB\-mpower\fR option.
5341 Exactly similarly, all of \fB\-mcpu=403\fR,
5342 \&\fB\-mcpu=505\fR, \fB\-mcpu=821\fR, \fB\-mcpu=860\fR and \fB\-mcpu=powerpc\fR
5343 enable the \fB\-mpowerpc\fR option and disable the \fB\-mpower\fR option.
5344 \&\fB\-mcpu=common\fR disables both the
5345 \&\fB\-mpower\fR and \fB\-mpowerpc\fR options.
5347 \&\s-1AIX\s0 versions 4 or greater selects \fB\-mcpu=common\fR by default, so
5348 that code will operate on all members of the \s-1RS/6000\s0 \s-1POWER\s0 and PowerPC
5349 families.  In that case, \s-1GCC\s0 will use only the instructions in the
5350 common subset of both architectures plus some special \s-1AIX\s0 common-mode
5351 calls, and will not use the \s-1MQ\s0 register.  \s-1GCC\s0 assumes a generic
5352 processor model for scheduling purposes.
5354 Specifying any of the options \fB\-mcpu=rios1\fR, \fB\-mcpu=rios2\fR,
5355 \&\fB\-mcpu=rsc\fR, \fB\-mcpu=power\fR, or \fB\-mcpu=power2\fR also
5356 disables the \fBnew-mnemonics\fR option.  Specifying \fB\-mcpu=601\fR,
5357 \&\fB\-mcpu=602\fR, \fB\-mcpu=603\fR, \fB\-mcpu=603e\fR, \fB\-mcpu=604\fR,
5358 \&\fB\-mcpu=620\fR, \fB\-mcpu=630\fR, \fB\-mcpu=403\fR, \fB\-mcpu=505\fR,
5359 \&\fB\-mcpu=821\fR, \fB\-mcpu=860\fR or \fB\-mcpu=powerpc\fR also enables
5360 the \fBnew-mnemonics\fR option.
5362 Specifying \fB\-mcpu=403\fR, \fB\-mcpu=821\fR, or \fB\-mcpu=860\fR also
5363 enables the \fB\-msoft-float\fR option.
5364 .Ip "\fB\-mtune=\fR\fIcpu_type\fR" 4
5365 .IX Item "-mtune=cpu_type"
5366 Set the instruction scheduling parameters for machine type
5367 \&\fIcpu_type\fR, but do not set the architecture type, register usage,
5368 choice of mnemonics like \fB\-mcpu=\fR\fIcpu_type\fR would.  The same
5369 values for \fIcpu_type\fR are used for \fB\-mtune=\fR\fIcpu_type\fR as
5370 for \fB\-mcpu=\fR\fIcpu_type\fR.  The \fB\-mtune=\fR\fIcpu_type\fR
5371 option overrides the \fB\-mcpu=\fR\fIcpu_type\fR option in terms of
5372 instruction scheduling parameters.
5373 .Ip "\fB\-mfull-toc\fR" 4
5374 .IX Item "-mfull-toc"
5375 .PD 0
5376 .Ip "\fB\-mno-fp-in-toc\fR" 4
5377 .IX Item "-mno-fp-in-toc"
5378 .Ip "\fB\-mno-sum-in-toc\fR" 4
5379 .IX Item "-mno-sum-in-toc"
5380 .Ip "\fB\-mminimal-toc\fR" 4
5381 .IX Item "-mminimal-toc"
5383 Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
5384 every executable file.  The \fB\-mfull-toc\fR option is selected by
5385 default.  In that case, \s-1GCC\s0 will allocate at least one \s-1TOC\s0 entry for
5386 each unique non-automatic variable reference in your program.  \s-1GCC\s0
5387 will also place floating-point constants in the \s-1TOC\s0.  However, only
5388 16,384 entries are available in the \s-1TOC\s0.
5390 If you receive a linker error message that saying you have overflowed
5391 the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
5392 with the \fB\-mno-fp-in-toc\fR and \fB\-mno-sum-in-toc\fR options.
5393 \&\fB\-mno-fp-in-toc\fR prevents \s-1GCC\s0 from putting floating-point
5394 constants in the \s-1TOC\s0 and \fB\-mno-sum-in-toc\fR forces \s-1GCC\s0 to
5395 generate code to calculate the sum of an address and a constant at
5396 run-time instead of putting that sum into the \s-1TOC\s0.  You may specify one
5397 or both of these options.  Each causes \s-1GCC\s0 to produce very slightly
5398 slower and larger code at the expense of conserving \s-1TOC\s0 space.
5400 If you still run out of space in the \s-1TOC\s0 even when you specify both of
5401 these options, specify \fB\-mminimal-toc\fR instead.  This option causes
5402 \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file.  When you specify this
5403 option, \s-1GCC\s0 will produce code that is slower and larger but which
5404 uses extremely little \s-1TOC\s0 space.  You may wish to use this option
5405 only on files that contain less frequently executed code.
5406 .Ip "\fB\-maix64\fR" 4
5407 .IX Item "-maix64"
5408 .PD 0
5409 .Ip "\fB\-maix32\fR" 4
5410 .IX Item "-maix32"
5412 Enable 64\-bit \s-1AIX\s0 \s-1ABI\s0 and calling convention: 64\-bit pointers, 64\-bit
5413 \&\f(CW\*(C`long\*(C'\fR type, and the infrastructure needed to support them.
5414 Specifying \fB\-maix64\fR implies \fB\-mpowerpc64\fR and
5415 \&\fB\-mpowerpc\fR, while \fB\-maix32\fR disables the 64\-bit \s-1ABI\s0 and
5416 implies \fB\-mno-powerpc64\fR.  \s-1GCC\s0 defaults to \fB\-maix32\fR.
5417 .Ip "\fB\-mxl-call\fR" 4
5418 .IX Item "-mxl-call"
5419 .PD 0
5420 .Ip "\fB\-mno-xl-call\fR" 4
5421 .IX Item "-mno-xl-call"
5423 On \s-1AIX\s0, pass floating-point arguments to prototyped functions beyond the
5424 register save area (\s-1RSA\s0) on the stack in addition to argument FPRs.  The
5425 \&\s-1AIX\s0 calling convention was extended but not initially documented to
5426 handle an obscure K&R C case of calling a function that takes the
5427 address of its arguments with fewer arguments than declared.  \s-1AIX\s0 \s-1XL\s0
5428 compilers access floating point arguments which do not fit in the
5429 \&\s-1RSA\s0 from the stack when a subroutine is compiled without
5430 optimization.  Because always storing floating-point arguments on the
5431 stack is inefficient and rarely needed, this option is not enabled by
5432 default and only is necessary when calling subroutines compiled by \s-1AIX\s0
5433 \&\s-1XL\s0 compilers without optimization.
5434 .Ip "\fB\-mthreads\fR" 4
5435 .IX Item "-mthreads"
5436 Support \fI\s-1AIX\s0 Threads\fR.  Link an application written to use
5437 \&\fIpthreads\fR with special libraries and startup code to enable the
5438 application to run.
5439 .Ip "\fB\-mpe\fR" 4
5440 .IX Item "-mpe"
5441 Support \fI\s-1IBM\s0 \s-1RS/6000\s0 \s-1SP\s0\fR \fIParallel Environment\fR (\s-1PE\s0).  Link an
5442 application written to use message passing with special startup code to
5443 enable the application to run.  The system must have \s-1PE\s0 installed in the
5444 standard location (\fI/usr/lpp/ppe.poe/\fR), or the \fIspecs\fR file
5445 must be overridden with the \fB\-specs=\fR option to specify the
5446 appropriate directory location.  The Parallel Environment does not
5447 support threads, so the \fB\-mpe\fR option and the \fB\-mthreads\fR
5448 option are incompatible.
5449 .Ip "\fB\-msoft-float\fR" 4
5450 .IX Item "-msoft-float"
5451 .PD 0
5452 .Ip "\fB\-mhard-float\fR" 4
5453 .IX Item "-mhard-float"
5455 Generate code that does not use (uses) the floating-point register set.
5456 Software floating point emulation is provided if you use the
5457 \&\fB\-msoft-float\fR option, and pass the option to \s-1GCC\s0 when linking.
5458 .Ip "\fB\-mmultiple\fR" 4
5459 .IX Item "-mmultiple"
5460 .PD 0
5461 .Ip "\fB\-mno-multiple\fR" 4
5462 .IX Item "-mno-multiple"
5464 Generate code that uses (does not use) the load multiple word
5465 instructions and the store multiple word instructions.  These
5466 instructions are generated by default on \s-1POWER\s0 systems, and not
5467 generated on PowerPC systems.  Do not use \fB\-mmultiple\fR on little
5468 endian PowerPC systems, since those instructions do not work when the
5469 processor is in little endian mode.  The exceptions are \s-1PPC740\s0 and
5470 \&\s-1PPC750\s0 which permit the instructions usage in little endian mode.
5471 .Ip "\fB\-mstring\fR" 4
5472 .IX Item "-mstring"
5473 .PD 0
5474 .Ip "\fB\-mno-string\fR" 4
5475 .IX Item "-mno-string"
5477 Generate code that uses (does not use) the load string instructions
5478 and the store string word instructions to save multiple registers and
5479 do small block moves.  These instructions are generated by default on
5480 \&\s-1POWER\s0 systems, and not generated on PowerPC systems.  Do not use
5481 \&\fB\-mstring\fR on little endian PowerPC systems, since those
5482 instructions do not work when the processor is in little endian mode.
5483 The exceptions are \s-1PPC740\s0 and \s-1PPC750\s0 which permit the instructions
5484 usage in little endian mode.
5485 .Ip "\fB\-mupdate\fR" 4
5486 .IX Item "-mupdate"
5487 .PD 0
5488 .Ip "\fB\-mno-update\fR" 4
5489 .IX Item "-mno-update"
5491 Generate code that uses (does not use) the load or store instructions
5492 that update the base register to the address of the calculated memory
5493 location.  These instructions are generated by default.  If you use
5494 \&\fB\-mno-update\fR, there is a small window between the time that the
5495 stack pointer is updated and the address of the previous frame is
5496 stored, which means code that walks the stack frame across interrupts or
5497 signals may get corrupted data.
5498 .Ip "\fB\-mfused-madd\fR" 4
5499 .IX Item "-mfused-madd"
5500 .PD 0
5501 .Ip "\fB\-mno-fused-madd\fR" 4
5502 .IX Item "-mno-fused-madd"
5504 Generate code that uses (does not use) the floating point multiply and
5505 accumulate instructions.  These instructions are generated by default if
5506 hardware floating is used.
5507 .Ip "\fB\-mno-bit-align\fR" 4
5508 .IX Item "-mno-bit-align"
5509 .PD 0
5510 .Ip "\fB\-mbit-align\fR" 4
5511 .IX Item "-mbit-align"
5513 On System V.4 and embedded PowerPC systems do not (do) force structures
5514 and unions that contain bit-fields to be aligned to the base type of the
5515 bit-field.
5517 For example, by default a structure containing nothing but 8
5518 \&\f(CW\*(C`unsigned\*(C'\fR bit-fields of length 1 would be aligned to a 4 byte
5519 boundary and have a size of 4 bytes.  By using \fB\-mno-bit-align\fR,
5520 the structure would be aligned to a 1 byte boundary and be one byte in
5521 size.
5522 .Ip "\fB\-mno-strict-align\fR" 4
5523 .IX Item "-mno-strict-align"
5524 .PD 0
5525 .Ip "\fB\-mstrict-align\fR" 4
5526 .IX Item "-mstrict-align"
5528 On System V.4 and embedded PowerPC systems do not (do) assume that
5529 unaligned memory references will be handled by the system.
5530 .Ip "\fB\-mrelocatable\fR" 4
5531 .IX Item "-mrelocatable"
5532 .PD 0
5533 .Ip "\fB\-mno-relocatable\fR" 4
5534 .IX Item "-mno-relocatable"
5536 On embedded PowerPC systems generate code that allows (does not allow)
5537 the program to be relocated to a different address at runtime.  If you
5538 use \fB\-mrelocatable\fR on any module, all objects linked together must
5539 be compiled with \fB\-mrelocatable\fR or \fB\-mrelocatable-lib\fR.
5540 .Ip "\fB\-mrelocatable-lib\fR" 4
5541 .IX Item "-mrelocatable-lib"
5542 .PD 0
5543 .Ip "\fB\-mno-relocatable-lib\fR" 4
5544 .IX Item "-mno-relocatable-lib"
5546 On embedded PowerPC systems generate code that allows (does not allow)
5547 the program to be relocated to a different address at runtime.  Modules
5548 compiled with \fB\-mrelocatable-lib\fR can be linked with either modules
5549 compiled without \fB\-mrelocatable\fR and \fB\-mrelocatable-lib\fR or
5550 with modules compiled with the \fB\-mrelocatable\fR options.
5551 .Ip "\fB\-mno-toc\fR" 4
5552 .IX Item "-mno-toc"
5553 .PD 0
5554 .Ip "\fB\-mtoc\fR" 4
5555 .IX Item "-mtoc"
5557 On System V.4 and embedded PowerPC systems do not (do) assume that
5558 register 2 contains a pointer to a global area pointing to the addresses
5559 used in the program.
5560 .Ip "\fB\-mlittle\fR" 4
5561 .IX Item "-mlittle"
5562 .PD 0
5563 .Ip "\fB\-mlittle-endian\fR" 4
5564 .IX Item "-mlittle-endian"
5566 On System V.4 and embedded PowerPC systems compile code for the
5567 processor in little endian mode.  The \fB\-mlittle-endian\fR option is
5568 the same as \fB\-mlittle\fR.
5569 .Ip "\fB\-mbig\fR" 4
5570 .IX Item "-mbig"
5571 .PD 0
5572 .Ip "\fB\-mbig-endian\fR" 4
5573 .IX Item "-mbig-endian"
5575 On System V.4 and embedded PowerPC systems compile code for the
5576 processor in big endian mode.  The \fB\-mbig-endian\fR option is
5577 the same as \fB\-mbig\fR.
5578 .Ip "\fB\-mcall-sysv\fR" 4
5579 .IX Item "-mcall-sysv"
5580 On System V.4 and embedded PowerPC systems compile code using calling
5581 conventions that adheres to the March 1995 draft of the System V
5582 Application Binary Interface, PowerPC processor supplement.  This is the
5583 default unless you configured \s-1GCC\s0 using \fBpowerpc-*\-eabiaix\fR.
5584 .Ip "\fB\-mcall-sysv-eabi\fR" 4
5585 .IX Item "-mcall-sysv-eabi"
5586 Specify both \fB\-mcall-sysv\fR and \fB\-meabi\fR options.
5587 .Ip "\fB\-mcall-sysv-noeabi\fR" 4
5588 .IX Item "-mcall-sysv-noeabi"
5589 Specify both \fB\-mcall-sysv\fR and \fB\-mno-eabi\fR options.
5590 .Ip "\fB\-mcall-aix\fR" 4
5591 .IX Item "-mcall-aix"
5592 On System V.4 and embedded PowerPC systems compile code using calling
5593 conventions that are similar to those used on \s-1AIX\s0.  This is the
5594 default if you configured \s-1GCC\s0 using \fBpowerpc-*\-eabiaix\fR.
5595 .Ip "\fB\-mcall-solaris\fR" 4
5596 .IX Item "-mcall-solaris"
5597 On System V.4 and embedded PowerPC systems compile code for the Solaris
5598 operating system.
5599 .Ip "\fB\-mcall-linux\fR" 4
5600 .IX Item "-mcall-linux"
5601 On System V.4 and embedded PowerPC systems compile code for the
5602 Linux-based \s-1GNU\s0 system.
5603 .Ip "\fB\-mprototype\fR" 4
5604 .IX Item "-mprototype"
5605 .PD 0
5606 .Ip "\fB\-mno-prototype\fR" 4
5607 .IX Item "-mno-prototype"
5609 On System V.4 and embedded PowerPC systems assume that all calls to
5610 variable argument functions are properly prototyped.  Otherwise, the
5611 compiler must insert an instruction before every non prototyped call to
5612 set or clear bit 6 of the condition code register (\fI\s-1CR\s0\fR) to
5613 indicate whether floating point values were passed in the floating point
5614 registers in case the function takes a variable arguments.  With
5615 \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
5616 will set or clear the bit.
5617 .Ip "\fB\-msim\fR" 4
5618 .IX Item "-msim"
5619 On embedded PowerPC systems, assume that the startup module is called
5620 \&\fIsim-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
5621 \&\fIlibc.a\fR.  This is the default for \fBpowerpc-*\-eabisim\fR.
5622 configurations.
5623 .Ip "\fB\-mmvme\fR" 4
5624 .IX Item "-mmvme"
5625 On embedded PowerPC systems, assume that the startup module is called
5626 \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
5627 \&\fIlibc.a\fR.
5628 .Ip "\fB\-mads\fR" 4
5629 .IX Item "-mads"
5630 On embedded PowerPC systems, assume that the startup module is called
5631 \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
5632 \&\fIlibc.a\fR.
5633 .Ip "\fB\-myellowknife\fR" 4
5634 .IX Item "-myellowknife"
5635 On embedded PowerPC systems, assume that the startup module is called
5636 \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
5637 \&\fIlibc.a\fR.
5638 .Ip "\fB\-mvxworks\fR" 4
5639 .IX Item "-mvxworks"
5640 On System V.4 and embedded PowerPC systems, specify that you are
5641 compiling for a VxWorks system.
5642 .Ip "\fB\-memb\fR" 4
5643 .IX Item "-memb"
5644 On embedded PowerPC systems, set the \fI\s-1PPC_EMB\s0\fR bit in the \s-1ELF\s0 flags
5645 header to indicate that \fBeabi\fR extended relocations are used.
5646 .Ip "\fB\-meabi\fR" 4
5647 .IX Item "-meabi"
5648 .PD 0
5649 .Ip "\fB\-mno-eabi\fR" 4
5650 .IX Item "-mno-eabi"
5652 On System V.4 and embedded PowerPC systems do (do not) adhere to the
5653 Embedded Applications Binary Interface (eabi) which is a set of
5654 modifications to the System V.4 specifications.  Selecting \fB\-meabi\fR
5655 means that the stack is aligned to an 8 byte boundary, a function
5656 \&\f(CW\*(C`_\|_eabi\*(C'\fR is called to from \f(CW\*(C`main\*(C'\fR to set up the eabi
5657 environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
5658 \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas.  Selecting
5659 \&\fB\-mno-eabi\fR means that the stack is aligned to a 16 byte boundary,
5660 do not call an initialization function from \f(CW\*(C`main\*(C'\fR, and the
5661 \&\fB\-msdata\fR option will only use \f(CW\*(C`r13\*(C'\fR to point to a single
5662 small data area.  The \fB\-meabi\fR option is on by default if you
5663 configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
5664 .Ip "\fB\-msdata=eabi\fR" 4
5665 .IX Item "-msdata=eabi"
5666 On System V.4 and embedded PowerPC systems, put small initialized
5667 \&\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata2\fR section, which
5668 is pointed to by register \f(CW\*(C`r2\*(C'\fR.  Put small initialized
5669 non-\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata\fR section,
5670 which is pointed to by register \f(CW\*(C`r13\*(C'\fR.  Put small uninitialized
5671 global and static data in the \fB.sbss\fR section, which is adjacent to
5672 the \fB.sdata\fR section.  The \fB\-msdata=eabi\fR option is
5673 incompatible with the \fB\-mrelocatable\fR option.  The
5674 \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
5675 .Ip "\fB\-msdata=sysv\fR" 4
5676 .IX Item "-msdata=sysv"
5677 On System V.4 and embedded PowerPC systems, put small global and static
5678 data in the \fB.sdata\fR section, which is pointed to by register
5679 \&\f(CW\*(C`r13\*(C'\fR.  Put small uninitialized global and static data in the
5680 \&\fB.sbss\fR section, which is adjacent to the \fB.sdata\fR section.
5681 The \fB\-msdata=sysv\fR option is incompatible with the
5682 \&\fB\-mrelocatable\fR option.
5683 .Ip "\fB\-msdata=default\fR" 4
5684 .IX Item "-msdata=default"
5685 .PD 0
5686 .Ip "\fB\-msdata\fR" 4
5687 .IX Item "-msdata"
5689 On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
5690 compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
5691 same as \fB\-msdata=sysv\fR.
5692 .Ip "\fB\-msdata-data\fR" 4
5693 .IX Item "-msdata-data"
5694 On System V.4 and embedded PowerPC systems, put small global and static
5695 data in the \fB.sdata\fR section.  Put small uninitialized global and
5696 static data in the \fB.sbss\fR section.  Do not use register \f(CW\*(C`r13\*(C'\fR
5697 to address small data however.  This is the default behavior unless
5698 other \fB\-msdata\fR options are used.
5699 .Ip "\fB\-msdata=none\fR" 4
5700 .IX Item "-msdata=none"
5701 .PD 0
5702 .Ip "\fB\-mno-sdata\fR" 4
5703 .IX Item "-mno-sdata"
5705 On embedded PowerPC systems, put all initialized global and static data
5706 in the \fB.data\fR section, and all uninitialized data in the
5707 \&\fB.bss\fR section.
5708 .Ip "\fB\-G\fR \fInum\fR" 4
5709 .IX Item "-G num"
5710 On embedded PowerPC systems, put global and static items less than or
5711 equal to \fInum\fR bytes into the small data or bss sections instead of
5712 the normal data or bss section.  By default, \fInum\fR is 8.  The
5713 \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
5714 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
5715 .Ip "\fB\-mregnames\fR" 4
5716 .IX Item "-mregnames"
5717 .PD 0
5718 .Ip "\fB\-mno-regnames\fR" 4
5719 .IX Item "-mno-regnames"
5721 On System V.4 and embedded PowerPC systems do (do not) emit register
5722 names in the assembly language output using symbolic forms.
5724 .I "\s-1IBM\s0 \s-1RT\s0 Options"
5725 .IX Subsection "IBM RT Options"
5727 These \fB\-m\fR options are defined for the \s-1IBM\s0 \s-1RT\s0 \s-1PC:\s0
5728 .Ip "\fB\-min-line-mul\fR" 4
5729 .IX Item "-min-line-mul"
5730 Use an in-line code sequence for integer multiplies.  This is the
5731 default.
5732 .Ip "\fB\-mcall-lib-mul\fR" 4
5733 .IX Item "-mcall-lib-mul"
5734 Call \f(CW\*(C`lmul$$\*(C'\fR for integer multiples.
5735 .Ip "\fB\-mfull-fp-blocks\fR" 4
5736 .IX Item "-mfull-fp-blocks"
5737 Generate full-size floating point data blocks, including the minimum
5738 amount of scratch space recommended by \s-1IBM\s0.  This is the default.
5739 .Ip "\fB\-mminimum-fp-blocks\fR" 4
5740 .IX Item "-mminimum-fp-blocks"
5741 Do not include extra scratch space in floating point data blocks.  This
5742 results in smaller code, but slower execution, since scratch space must
5743 be allocated dynamically.
5744 .Ip "\fB\-mfp-arg-in-fpregs\fR" 4
5745 .IX Item "-mfp-arg-in-fpregs"
5746 Use a calling sequence incompatible with the \s-1IBM\s0 calling convention in
5747 which floating point arguments are passed in floating point registers.
5748 Note that \f(CW\*(C`varargs.h\*(C'\fR and \f(CW\*(C`stdarg.h\*(C'\fR will not work with
5749 floating point operands if this option is specified.
5750 .Ip "\fB\-mfp-arg-in-gregs\fR" 4
5751 .IX Item "-mfp-arg-in-gregs"
5752 Use the normal calling convention for floating point arguments.  This is
5753 the default.
5754 .Ip "\fB\-mhc-struct-return\fR" 4
5755 .IX Item "-mhc-struct-return"
5756 Return structures of more than one word in memory, rather than in a
5757 register.  This provides compatibility with the MetaWare HighC (hc)
5758 compiler.  Use the option \fB\-fpcc-struct-return\fR for compatibility
5759 with the Portable C Compiler (pcc).
5760 .Ip "\fB\-mnohc-struct-return\fR" 4
5761 .IX Item "-mnohc-struct-return"
5762 Return some structures of more than one word in registers, when
5763 convenient.  This is the default.  For compatibility with the
5764 IBM-supplied compilers, use the option \fB\-fpcc-struct-return\fR or the
5765 option \fB\-mhc-struct-return\fR.
5767 .I "\s-1MIPS\s0 Options"
5768 .IX Subsection "MIPS Options"
5770 These \fB\-m\fR options are defined for the \s-1MIPS\s0 family of computers:
5771 .Ip "\fB\-mcpu=\fR\fIcpu-type\fR" 4
5772 .IX Item "-mcpu=cpu-type"
5773 Assume the defaults for the machine type \fIcpu-type\fR when scheduling
5774 instructions.  The choices for \fIcpu-type\fR are \fBr2000\fR, \fBr3000\fR,
5775 \&\fBr3900\fR, \fBr4000\fR, \fBr4100\fR, \fBr4300\fR, \fBr4400\fR,
5776 \&\fBr4600\fR, \fBr4650\fR, \fBr5000\fR, \fBr6000\fR, \fBr8000\fR,
5777 and \fBorion\fR.  Additionally, the \fBr2000\fR, \fBr3000\fR,
5778 \&\fBr4000\fR, \fBr5000\fR, and \fBr6000\fR can be abbreviated as
5779 \&\fBr2k\fR (or \fBr2K\fR), \fBr3k\fR, etc.  While picking a specific
5780 \&\fIcpu-type\fR will schedule things appropriately for that particular
5781 chip, the compiler will not generate any code that does not meet level 1
5782 of the \s-1MIPS\s0 \s-1ISA\s0 (instruction set architecture) without a \fB\-mipsX\fR
5783 or \fB\-mabi\fR switch being used.
5784 .Ip "\fB\-mips1\fR" 4
5785 .IX Item "-mips1"
5786 Issue instructions from level 1 of the \s-1MIPS\s0 \s-1ISA\s0.  This is the default.
5787 \&\fBr3000\fR is the default \fIcpu-type\fR at this \s-1ISA\s0 level.
5788 .Ip "\fB\-mips2\fR" 4
5789 .IX Item "-mips2"
5790 Issue instructions from level 2 of the \s-1MIPS\s0 \s-1ISA\s0 (branch likely, square
5791 root instructions).  \fBr6000\fR is the default \fIcpu-type\fR at this
5792 \&\s-1ISA\s0 level.
5793 .Ip "\fB\-mips3\fR" 4
5794 .IX Item "-mips3"
5795 Issue instructions from level 3 of the \s-1MIPS\s0 \s-1ISA\s0 (64\-bit instructions).
5796 \&\fBr4000\fR is the default \fIcpu-type\fR at this \s-1ISA\s0 level.
5797 .Ip "\fB\-mips4\fR" 4
5798 .IX Item "-mips4"
5799 Issue instructions from level 4 of the \s-1MIPS\s0 \s-1ISA\s0 (conditional move,
5800 prefetch, enhanced \s-1FPU\s0 instructions).  \fBr8000\fR is the default
5801 \&\fIcpu-type\fR at this \s-1ISA\s0 level.
5802 .Ip "\fB\-mfp32\fR" 4
5803 .IX Item "-mfp32"
5804 Assume that 32 32\-bit floating point registers are available.  This is
5805 the default.
5806 .Ip "\fB\-mfp64\fR" 4
5807 .IX Item "-mfp64"
5808 Assume that 32 64\-bit floating point registers are available.  This is
5809 the default when the \fB\-mips3\fR option is used.
5810 .Ip "\fB\-mgp32\fR" 4
5811 .IX Item "-mgp32"
5812 Assume that 32 32\-bit general purpose registers are available.  This is
5813 the default.
5814 .Ip "\fB\-mgp64\fR" 4
5815 .IX Item "-mgp64"
5816 Assume that 32 64\-bit general purpose registers are available.  This is
5817 the default when the \fB\-mips3\fR option is used.
5818 .Ip "\fB\-mint64\fR" 4
5819 .IX Item "-mint64"
5820 Force int and long types to be 64 bits wide.  See \fB\-mlong32\fR for an
5821 explanation of the default, and the width of pointers.
5822 .Ip "\fB\-mlong64\fR" 4
5823 .IX Item "-mlong64"
5824 Force long types to be 64 bits wide.  See \fB\-mlong32\fR for an
5825 explanation of the default, and the width of pointers.
5826 .Ip "\fB\-mlong32\fR" 4
5827 .IX Item "-mlong32"
5828 Force long, int, and pointer types to be 32 bits wide.
5830 If none of \fB\-mlong32\fR, \fB\-mlong64\fR, or \fB\-mint64\fR are set,
5831 the size of ints, longs, and pointers depends on the \s-1ABI\s0 and \s-1ISA\s0 chosen.
5832 For \fB\-mabi=32\fR, and \fB\-mabi=n32\fR, ints and longs are 32 bits
5833 wide.  For \fB\-mabi=64\fR, ints are 32 bits, and longs are 64 bits wide.
5834 For \fB\-mabi=eabi\fR and either \fB\-mips1\fR or \fB\-mips2\fR, ints
5835 and longs are 32 bits wide.  For \fB\-mabi=eabi\fR and higher ISAs, ints
5836 are 32 bits, and longs are 64 bits wide.  The width of pointer types is
5837 the smaller of the width of longs or the width of general purpose
5838 registers (which in turn depends on the \s-1ISA\s0).
5839 .Ip "\fB\-mabi=32\fR" 4
5840 .IX Item "-mabi=32"
5841 .PD 0
5842 .Ip "\fB\-mabi=o64\fR" 4
5843 .IX Item "-mabi=o64"
5844 .Ip "\fB\-mabi=n32\fR" 4
5845 .IX Item "-mabi=n32"
5846 .Ip "\fB\-mabi=64\fR" 4
5847 .IX Item "-mabi=64"
5848 .Ip "\fB\-mabi=eabi\fR" 4
5849 .IX Item "-mabi=eabi"
5851 Generate code for the indicated \s-1ABI\s0.  The default instruction level is
5852 \&\fB\-mips1\fR for \fB32\fR, \fB\-mips3\fR for \fBn32\fR, and
5853 \&\fB\-mips4\fR otherwise.  Conversely, with \fB\-mips1\fR or
5854 \&\fB\-mips2\fR, the default \s-1ABI\s0 is \fB32\fR; otherwise, the default \s-1ABI\s0
5855 is \fB64\fR.
5856 .Ip "\fB\-mmips-as\fR" 4
5857 .IX Item "-mmips-as"
5858 Generate code for the \s-1MIPS\s0 assembler, and invoke \fImips-tfile\fR to
5859 add normal debug information.  This is the default for all
5860 platforms except for the \s-1OSF/1\s0 reference platform, using the OSF/rose
5861 object format.  If the either of the \fB\-gstabs\fR or \fB\-gstabs+\fR
5862 switches are used, the \fImips-tfile\fR program will encapsulate the
5863 stabs within \s-1MIPS\s0 \s-1ECOFF\s0.
5864 .Ip "\fB\-mgas\fR" 4
5865 .IX Item "-mgas"
5866 Generate code for the \s-1GNU\s0 assembler.  This is the default on the \s-1OSF/1\s0
5867 reference platform, using the OSF/rose object format.  Also, this is
5868 the default if the configure option \fB\*(--with-gnu-as\fR is used.
5869 .Ip "\fB\-msplit-addresses\fR" 4
5870 .IX Item "-msplit-addresses"
5871 .PD 0
5872 .Ip "\fB\-mno-split-addresses\fR" 4
5873 .IX Item "-mno-split-addresses"
5875 Generate code to load the high and low parts of address constants separately.
5876 This allows \f(CW\*(C`gcc\*(C'\fR to optimize away redundant loads of the high order
5877 bits of addresses.  This optimization requires \s-1GNU\s0 as and \s-1GNU\s0 ld.
5878 This optimization is enabled by default for some embedded targets where
5879 \&\s-1GNU\s0 as and \s-1GNU\s0 ld are standard.
5880 .Ip "\fB\-mrnames\fR" 4
5881 .IX Item "-mrnames"
5882 .PD 0
5883 .Ip "\fB\-mno-rnames\fR" 4
5884 .IX Item "-mno-rnames"
5886 The \fB\-mrnames\fR switch says to output code using the \s-1MIPS\s0 software
5887 names for the registers, instead of the hardware names (ie, \fIa0\fR
5888 instead of \fI$4\fR).  The only known assembler that supports this option
5889 is the Algorithmics assembler.
5890 .Ip "\fB\-mgpopt\fR" 4
5891 .IX Item "-mgpopt"
5892 .PD 0
5893 .Ip "\fB\-mno-gpopt\fR" 4
5894 .IX Item "-mno-gpopt"
5896 The \fB\-mgpopt\fR switch says to write all of the data declarations
5897 before the instructions in the text section, this allows the \s-1MIPS\s0
5898 assembler to generate one word memory references instead of using two
5899 words for short global or static data items.  This is on by default if
5900 optimization is selected.
5901 .Ip "\fB\-mstats\fR" 4
5902 .IX Item "-mstats"
5903 .PD 0
5904 .Ip "\fB\-mno-stats\fR" 4
5905 .IX Item "-mno-stats"
5907 For each non-inline function processed, the \fB\-mstats\fR switch
5908 causes the compiler to emit one line to the standard error file to
5909 print statistics about the program (number of registers saved, stack
5910 size, etc.).
5911 .Ip "\fB\-mmemcpy\fR" 4
5912 .IX Item "-mmemcpy"
5913 .PD 0
5914 .Ip "\fB\-mno-memcpy\fR" 4
5915 .IX Item "-mno-memcpy"
5917 The \fB\-mmemcpy\fR switch makes all block moves call the appropriate
5918 string function (\fBmemcpy\fR or \fBbcopy\fR) instead of possibly
5919 generating inline code.
5920 .Ip "\fB\-mmips-tfile\fR" 4
5921 .IX Item "-mmips-tfile"
5922 .PD 0
5923 .Ip "\fB\-mno-mips-tfile\fR" 4
5924 .IX Item "-mno-mips-tfile"
5926 The \fB\-mno-mips-tfile\fR switch causes the compiler not
5927 postprocess the object file with the \fImips-tfile\fR program,
5928 after the \s-1MIPS\s0 assembler has generated it to add debug support.  If
5929 \&\fImips-tfile\fR is not run, then no local variables will be
5930 available to the debugger.  In addition, \fIstage2\fR and
5931 \&\fIstage3\fR objects will have the temporary file names passed to the
5932 assembler embedded in the object file, which means the objects will
5933 not compare the same.  The \fB\-mno-mips-tfile\fR switch should only
5934 be used when there are bugs in the \fImips-tfile\fR program that
5935 prevents compilation.
5936 .Ip "\fB\-msoft-float\fR" 4
5937 .IX Item "-msoft-float"
5938 Generate output containing library calls for floating point.
5939 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC\s0.
5940 Normally the facilities of the machine's usual C compiler are used, but
5941 this can't be done directly in cross-compilation.  You must make your
5942 own arrangements to provide suitable library functions for
5943 cross-compilation.
5944 .Ip "\fB\-mhard-float\fR" 4
5945 .IX Item "-mhard-float"
5946 Generate output containing floating point instructions.  This is the
5947 default if you use the unmodified sources.
5948 .Ip "\fB\-mabicalls\fR" 4
5949 .IX Item "-mabicalls"
5950 .PD 0
5951 .Ip "\fB\-mno-abicalls\fR" 4
5952 .IX Item "-mno-abicalls"
5954 Emit (or do not emit) the pseudo operations \fB.abicalls\fR,
5955 \&\fB.cpload\fR, and \fB.cprestore\fR that some System V.4 ports use for
5956 position independent code.
5957 .Ip "\fB\-mlong-calls\fR" 4
5958 .IX Item "-mlong-calls"
5959 .PD 0
5960 .Ip "\fB\-mno-long-calls\fR" 4
5961 .IX Item "-mno-long-calls"
5963 Do all calls with the \fB\s-1JALR\s0\fR instruction, which requires
5964 loading up a function's address into a register before the call.
5965 You need to use this switch, if you call outside of the current
5966 512 megabyte segment to functions that are not through pointers.
5967 .Ip "\fB\-mhalf-pic\fR" 4
5968 .IX Item "-mhalf-pic"
5969 .PD 0
5970 .Ip "\fB\-mno-half-pic\fR" 4
5971 .IX Item "-mno-half-pic"
5973 Put pointers to extern references into the data section and load them
5974 up, rather than put the references in the text section.
5975 .Ip "\fB\-membedded-pic\fR" 4
5976 .IX Item "-membedded-pic"
5977 .PD 0
5978 .Ip "\fB\-mno-embedded-pic\fR" 4
5979 .IX Item "-mno-embedded-pic"
5981 Generate \s-1PIC\s0 code suitable for some embedded systems.  All calls are
5982 made using \s-1PC\s0 relative address, and all data is addressed using the \f(CW$gp\fR
5983 register.  No more than 65536 bytes of global data may be used.  This
5984 requires \s-1GNU\s0 as and \s-1GNU\s0 ld which do most of the work.  This currently
5985 only works on targets which use \s-1ECOFF\s0; it does not work with \s-1ELF\s0.
5986 .Ip "\fB\-membedded-data\fR" 4
5987 .IX Item "-membedded-data"
5988 .PD 0
5989 .Ip "\fB\-mno-embedded-data\fR" 4
5990 .IX Item "-mno-embedded-data"
5992 Allocate variables to the read-only data section first if possible, then
5993 next in the small data section if possible, otherwise in data.  This gives
5994 slightly slower code than the default, but reduces the amount of \s-1RAM\s0 required
5995 when executing, and thus may be preferred for some embedded systems.
5996 .Ip "\fB\-muninit-const-in-rodata\fR" 4
5997 .IX Item "-muninit-const-in-rodata"
5998 .PD 0
5999 .Ip "\fB\-mno-uninit-const-in-rodata\fR" 4
6000 .IX Item "-mno-uninit-const-in-rodata"
6002 When used together with \fB\-membedded-data\fR, it will always store uninitialized
6003 const variables in the read-only data section.
6004 .Ip "\fB\-msingle-float\fR" 4
6005 .IX Item "-msingle-float"
6006 .PD 0
6007 .Ip "\fB\-mdouble-float\fR" 4
6008 .IX Item "-mdouble-float"
6010 The \fB\-msingle-float\fR switch tells gcc to assume that the floating
6011 point coprocessor only supports single precision operations, as on the
6012 \&\fBr4650\fR chip.  The \fB\-mdouble-float\fR switch permits gcc to use
6013 double precision operations.  This is the default.
6014 .Ip "\fB\-mmad\fR" 4
6015 .IX Item "-mmad"
6016 .PD 0
6017 .Ip "\fB\-mno-mad\fR" 4
6018 .IX Item "-mno-mad"
6020 Permit use of the \fBmad\fR, \fBmadu\fR and \fBmul\fR instructions,
6021 as on the \fBr4650\fR chip.
6022 .Ip "\fB\-m4650\fR" 4
6023 .IX Item "-m4650"
6024 Turns on \fB\-msingle-float\fR, \fB\-mmad\fR, and, at least for now,
6025 \&\fB\-mcpu=r4650\fR.
6026 .Ip "\fB\-mips16\fR" 4
6027 .IX Item "-mips16"
6028 .PD 0
6029 .Ip "\fB\-mno-mips16\fR" 4
6030 .IX Item "-mno-mips16"
6032 Enable 16\-bit instructions.
6033 .Ip "\fB\-mentry\fR" 4
6034 .IX Item "-mentry"
6035 Use the entry and exit pseudo ops.  This option can only be used with
6036 \&\fB\-mips16\fR.
6037 .Ip "\fB\-EL\fR" 4
6038 .IX Item "-EL"
6039 Compile code for the processor in little endian mode.
6040 The requisite libraries are assumed to exist.
6041 .Ip "\fB\-EB\fR" 4
6042 .IX Item "-EB"
6043 Compile code for the processor in big endian mode.
6044 The requisite libraries are assumed to exist.
6045 .Ip "\fB\-G\fR \fInum\fR" 4
6046 .IX Item "-G num"
6047 Put global and static items less than or equal to \fInum\fR bytes into
6048 the small data or bss sections instead of the normal data or bss
6049 section.  This allows the assembler to emit one word memory reference
6050 instructions based on the global pointer (\fIgp\fR or \fI$28\fR),
6051 instead of the normal two words used.  By default, \fInum\fR is 8 when
6052 the \s-1MIPS\s0 assembler is used, and 0 when the \s-1GNU\s0 assembler is used.  The
6053 \&\fB\-G\fR \fInum\fR switch is also passed to the assembler and linker.
6054 All modules should be compiled with the same \fB\-G\fR \fInum\fR
6055 value.
6056 .Ip "\fB\-nocpp\fR" 4
6057 .IX Item "-nocpp"
6058 Tell the \s-1MIPS\s0 assembler to not run its preprocessor over user
6059 assembler files (with a \fB.s\fR suffix) when assembling them.
6060 .Ip "\fB\-mfix7000\fR" 4
6061 .IX Item "-mfix7000"
6062 Pass an option to gas which will cause nops to be inserted if
6063 the read of the destination register of an mfhi or mflo instruction
6064 occurs in the following two instructions.
6065 .Ip "\fB\-no-crt0\fR" 4
6066 .IX Item "-no-crt0"
6067 Do not include the default crt0.
6069 .I "Intel 386 Options"
6070 .IX Subsection "Intel 386 Options"
6072 These \fB\-m\fR options are defined for the i386 family of computers:
6073 .Ip "\fB\-mcpu=\fR\fIcpu-type\fR" 4
6074 .IX Item "-mcpu=cpu-type"
6075 Assume the defaults for the machine type \fIcpu-type\fR when scheduling
6076 instructions.  The choices for \fIcpu-type\fR are \fBi386\fR,
6077 \&\fBi486\fR, \fBi586\fR, \fBi686\fR, \fBpentium\fR,
6078 \&\fBpentiumpro\fR, \fBpentium4\fR, \fBk6\fR, and \fBathlon\fR
6080 While picking a specific \fIcpu-type\fR will schedule things appropriately
6081 for that particular chip, the compiler will not generate any code that
6082 does not run on the i386 without the \fB\-march=\fR\fIcpu-type\fR option
6083 being used.  \fBi586\fR is equivalent to \fBpentium\fR and \fBi686\fR
6084 is equivalent to \fBpentiumpro\fR.  \fBk6\fR and \fBathlon\fR are the
6085 \&\s-1AMD\s0 chips as opposed to the Intel ones.
6086 .Ip "\fB\-march=\fR\fIcpu-type\fR" 4
6087 .IX Item "-march=cpu-type"
6088 Generate instructions for the machine type \fIcpu-type\fR.  The choices
6089 for \fIcpu-type\fR are the same as for \fB\-mcpu\fR.  Moreover,
6090 specifying \fB\-march=\fR\fIcpu-type\fR implies \fB\-mcpu=\fR\fIcpu-type\fR.
6091 .Ip "\fB\-m386\fR" 4
6092 .IX Item "-m386"
6093 .PD 0
6094 .Ip "\fB\-m486\fR" 4
6095 .IX Item "-m486"
6096 .Ip "\fB\-mpentium\fR" 4
6097 .IX Item "-mpentium"
6098 .Ip "\fB\-mpentiumpro\fR" 4
6099 .IX Item "-mpentiumpro"
6101 Synonyms for \fB\-mcpu=i386\fR, \fB\-mcpu=i486\fR, \fB\-mcpu=pentium\fR, and \fB\-mcpu=pentiumpro\fR
6102 respectively.  These synonyms are deprecated.
6103 .Ip "\fB\-mintel-syntax\fR" 4
6104 .IX Item "-mintel-syntax"
6105 Emit assembly using Intel syntax opcodes instead of \s-1AT&T\s0 syntax.
6106 .Ip "\fB\-mieee-fp\fR" 4
6107 .IX Item "-mieee-fp"
6108 .PD 0
6109 .Ip "\fB\-mno-ieee-fp\fR" 4
6110 .IX Item "-mno-ieee-fp"
6112 Control whether or not the compiler uses \s-1IEEE\s0 floating point
6113 comparisons.  These handle correctly the case where the result of a
6114 comparison is unordered.
6115 .Ip "\fB\-msoft-float\fR" 4
6116 .IX Item "-msoft-float"
6117 Generate output containing library calls for floating point.
6118 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC\s0.
6119 Normally the facilities of the machine's usual C compiler are used, but
6120 this can't be done directly in cross-compilation.  You must make your
6121 own arrangements to provide suitable library functions for
6122 cross-compilation.
6124 On machines where a function returns floating point results in the 80387
6125 register stack, some floating point opcodes may be emitted even if
6126 \&\fB\-msoft-float\fR is used.
6127 .Ip "\fB\-mno-fp-ret-in-387\fR" 4
6128 .IX Item "-mno-fp-ret-in-387"
6129 Do not use the \s-1FPU\s0 registers for return values of functions.
6131 The usual calling convention has functions return values of types
6132 \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR in an \s-1FPU\s0 register, even if there
6133 is no \s-1FPU\s0.  The idea is that the operating system should emulate
6134 an \s-1FPU\s0.
6136 The option \fB\-mno-fp-ret-in-387\fR causes such values to be returned
6137 in ordinary \s-1CPU\s0 registers instead.
6138 .Ip "\fB\-mno-fancy-math-387\fR" 4
6139 .IX Item "-mno-fancy-math-387"
6140 Some 387 emulators do not support the \f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR and
6141 \&\f(CW\*(C`sqrt\*(C'\fR instructions for the 387.  Specify this option to avoid
6142 generating those instructions. This option is the default on FreeBSD.
6143 As of revision 2.6.1, these instructions are not generated unless you
6144 also use the \fB\-funsafe-math-optimizations\fR switch.
6145 .Ip "\fB\-malign-double\fR" 4
6146 .IX Item "-malign-double"
6147 .PD 0
6148 .Ip "\fB\-mno-align-double\fR" 4
6149 .IX Item "-mno-align-double"
6151 Control whether \s-1GCC\s0 aligns \f(CW\*(C`double\*(C'\fR, \f(CW\*(C`long double\*(C'\fR, and
6152 \&\f(CW\*(C`long long\*(C'\fR variables on a two word boundary or a one word
6153 boundary.  Aligning \f(CW\*(C`double\*(C'\fR variables on a two word boundary will
6154 produce code that runs somewhat faster on a \fBPentium\fR at the
6155 expense of more memory.
6156 .Ip "\fB\-m128bit-long-double\fR" 4
6157 .IX Item "-m128bit-long-double"
6158 .PD 0
6159 .Ip "\fB\-m128bit-long-double\fR" 4
6160 .IX Item "-m128bit-long-double"
6162 Control the size of \f(CW\*(C`long double\*(C'\fR type. i386 application binary interface
6163 specify the size to be 12 bytes, while modern architectures (Pentium and newer)
6164 prefer \f(CW\*(C`long double\*(C'\fR aligned to 8 or 16 byte boundary.  This is
6165 impossible to reach with 12 byte long doubles in the array accesses.
6167 \&\fBWarning:\fR if you use the \fB\-m128bit-long-double\fR switch, the
6168 structures and arrays containing \f(CW\*(C`long double\*(C'\fR will change their size as
6169 well as function calling convention for function taking \f(CW\*(C`long double\*(C'\fR
6170 will be modified.
6171 .Ip "\fB\-m96bit-long-double\fR" 4
6172 .IX Item "-m96bit-long-double"
6173 .PD 0
6174 .Ip "\fB\-m96bit-long-double\fR" 4
6175 .IX Item "-m96bit-long-double"
6177 Set the size of \f(CW\*(C`long double\*(C'\fR to 96 bits as required by the i386
6178 application binary interface.  This is the default.
6179 .Ip "\fB\-msvr3\-shlib\fR" 4
6180 .IX Item "-msvr3-shlib"
6181 .PD 0
6182 .Ip "\fB\-mno-svr3\-shlib\fR" 4
6183 .IX Item "-mno-svr3-shlib"
6185 Control whether \s-1GCC\s0 places uninitialized locals into \f(CW\*(C`bss\*(C'\fR or
6186 \&\f(CW\*(C`data\*(C'\fR.  \fB\-msvr3\-shlib\fR places these locals into \f(CW\*(C`bss\*(C'\fR.
6187 These options are meaningful only on System V Release 3.
6188 .Ip "\fB\-mno-wide-multiply\fR" 4
6189 .IX Item "-mno-wide-multiply"
6190 .PD 0
6191 .Ip "\fB\-mwide-multiply\fR" 4
6192 .IX Item "-mwide-multiply"
6194 Control whether \s-1GCC\s0 uses the \f(CW\*(C`mul\*(C'\fR and \f(CW\*(C`imul\*(C'\fR that produce
6195 64\-bit results in \f(CW\*(C`eax:edx\*(C'\fR from 32\-bit operands to do \f(CW\*(C`long
6196 long\*(C'\fR multiplies and 32\-bit division by constants.
6197 .Ip "\fB\-mrtd\fR" 4
6198 .IX Item "-mrtd"
6199 Use a different function-calling convention, in which functions that
6200 take a fixed number of arguments return with the \f(CW\*(C`ret\*(C'\fR \fInum\fR
6201 instruction, which pops their arguments while returning.  This saves one
6202 instruction in the caller since there is no need to pop the arguments
6203 there.
6205 You can specify that an individual function is called with this calling
6206 sequence with the function attribute \fBstdcall\fR.  You can also
6207 override the \fB\-mrtd\fR option by using the function attribute
6208 \&\fBcdecl\fR.  
6210 \&\fBWarning:\fR this calling convention is incompatible with the one
6211 normally used on Unix, so you cannot use it if you need to call
6212 libraries compiled with the Unix compiler.
6214 Also, you must provide function prototypes for all functions that
6215 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
6216 otherwise incorrect code will be generated for calls to those
6217 functions.
6219 In addition, seriously incorrect code will result if you call a
6220 function with too many arguments.  (Normally, extra arguments are
6221 harmlessly ignored.)
6222 .Ip "\fB\-mregparm=\fR\fInum\fR" 4
6223 .IX Item "-mregparm=num"
6224 Control how many registers are used to pass integer arguments.  By
6225 default, no registers are used to pass arguments, and at most 3
6226 registers can be used.  You can control this behavior for a specific
6227 function by using the function attribute \fBregparm\fR.
6229 \&\fBWarning:\fR if you use this switch, and
6230 \&\fInum\fR is nonzero, then you must build all modules with the same
6231 value, including any libraries.  This includes the system libraries and
6232 startup modules.
6233 .Ip "\fB\-mpreferred-stack-boundary=\fR\fInum\fR" 4
6234 .IX Item "-mpreferred-stack-boundary=num"
6235 Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
6236 byte boundary.  If \fB\-mpreferred-stack-boundary\fR is not specified,
6237 the default is 4 (16 bytes or 128 bits).
6239 The stack is required to be aligned on a 4 byte boundary.  On Pentium
6240 and PentiumPro, \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long double\*(C'\fR values should be
6241 aligned to an 8 byte boundary (see \fB\-malign-double\fR) or suffer
6242 significant run time performance penalties.  On Pentium \s-1III\s0, the
6243 Streaming \s-1SIMD\s0 Extension (\s-1SSE\s0) data type \f(CW\*(C`_\|_m128\*(C'\fR suffers similar
6244 penalties if it is not 16 byte aligned.
6246 To ensure proper alignment of this values on the stack, the stack boundary
6247 must be as aligned as that required by any value stored on the stack.
6248 Further, every function must be generated such that it keeps the stack
6249 aligned.  Thus calling a function compiled with a higher preferred
6250 stack boundary from a function compiled with a lower preferred stack
6251 boundary will most likely misalign the stack.  It is recommended that
6252 libraries that use callbacks always use the default setting.
6254 This extra alignment does consume extra stack space.  Code that is sensitive
6255 to stack space usage, such as embedded systems and operating system kernels,
6256 may want to reduce the preferred alignment to
6257 \&\fB\-mpreferred-stack-boundary=2\fR.
6258 .Ip "\fB\-mpush-args\fR" 4
6259 .IX Item "-mpush-args"
6260 Use \s-1PUSH\s0 operations to store outgoing parameters. This method is shorter
6261 and usually equally fast as method using \s-1SUB/MOV\s0 operations and is enabled
6262 by default. In some cases disabling it may improve performance because of
6263 improved scheduling and reduced dependencies.
6264 .Ip "\fB\-maccumulate-outgoing-args\fR" 4
6265 .IX Item "-maccumulate-outgoing-args"
6266 If enabled, the maximum amount of space required for outgoing arguments will be
6267 computed in the function prologue. This in faster on most modern CPUs
6268 because of reduced dependencies, improved scheduling and reduced stack usage
6269 when preferred stack boundary is not equal to 2.  The drawback is a notable
6270 increase in code size. This switch implies \fB\-mno-push-args\fR.
6271 .Ip "\fB\-mthreads\fR" 4
6272 .IX Item "-mthreads"
6273 Support thread-safe exception handling on \fBMingw32\fR. Code that relies
6274 on thread-safe exception handling must compile and link all code with the
6275 \&\fB\-mthreads\fR option. When compiling, \fB\-mthreads\fR defines
6276 \&\fB\-D_MT\fR; when linking, it links in a special thread helper library
6277 \&\fB\-lmingwthrd\fR which cleans up per thread exception handling data.
6278 .Ip "\fB\-mno-align-stringops\fR" 4
6279 .IX Item "-mno-align-stringops"
6280 Do not align destination of inlined string operations. This switch reduces
6281 code size and improves performance in case the destination is already aligned,
6282 but gcc don't know about it.
6283 .Ip "\fB\-minline-all-stringops\fR" 4
6284 .IX Item "-minline-all-stringops"
6285 By default \s-1GCC\s0 inlines string operations only when destination is known to be
6286 aligned at least to 4 byte boundary. This enables more inlining, increase code
6287 size, but may improve performance of code that depends on fast memcpy, strlen
6288 and memset for short lengths.
6289 .Ip "\fB\-momit-leaf-frame-pointer\fR" 4
6290 .IX Item "-momit-leaf-frame-pointer"
6291 Don't keep the frame pointer in a register for leaf functions.  This
6292 avoids the instructions to save, set up and restore frame pointers and
6293 makes an extra register available in leaf functions.  The option
6294 \&\fB\-fomit-frame-pointer\fR removes the frame pointer for all functions
6295 which might make debugging harder.
6297 .I "\s-1HPPA\s0 Options"
6298 .IX Subsection "HPPA Options"
6300 These \fB\-m\fR options are defined for the \s-1HPPA\s0 family of computers:
6301 .Ip "\fB\-march=\fR\fIarchitecture-type\fR" 4
6302 .IX Item "-march=architecture-type"
6303 Generate code for the specified architecture.  The choices for
6304 \&\fIarchitecture-type\fR are \fB1.0\fR for \s-1PA\s0 1.0, \fB1.1\fR for \s-1PA\s0
6305 1.1, and \fB2.0\fR for \s-1PA\s0 2.0 processors.  Refer to
6306 \&\fI/usr/lib/sched.models\fR on an \s-1HP-UX\s0 system to determine the proper
6307 architecture option for your machine.  Code compiled for lower numbered
6308 architectures will run on higher numbered architectures, but not the
6309 other way around.
6311 \&\s-1PA\s0 2.0 support currently requires gas snapshot 19990413 or later.  The
6312 next release of binutils (current is 2.9.1) will probably contain \s-1PA\s0 2.0
6313 support.
6314 .Ip "\fB\-mpa-risc-1\-0\fR" 4
6315 .IX Item "-mpa-risc-1-0"
6316 .PD 0
6317 .Ip "\fB\-mpa-risc-1\-1\fR" 4
6318 .IX Item "-mpa-risc-1-1"
6319 .Ip "\fB\-mpa-risc-2\-0\fR" 4
6320 .IX Item "-mpa-risc-2-0"
6322 Synonyms for \fB\-march=1.0\fR, \fB\-march=1.1\fR, and \fB\-march=2.0\fR respectively.
6323 .Ip "\fB\-mbig-switch\fR" 4
6324 .IX Item "-mbig-switch"
6325 Generate code suitable for big switch tables.  Use this option only if
6326 the assembler/linker complain about out of range branches within a switch
6327 table.
6328 .Ip "\fB\-mjump-in-delay\fR" 4
6329 .IX Item "-mjump-in-delay"
6330 Fill delay slots of function calls with unconditional jump instructions
6331 by modifying the return pointer for the function call to be the target
6332 of the conditional jump.
6333 .Ip "\fB\-mdisable-fpregs\fR" 4
6334 .IX Item "-mdisable-fpregs"
6335 Prevent floating point registers from being used in any manner.  This is
6336 necessary for compiling kernels which perform lazy context switching of
6337 floating point registers.  If you use this option and attempt to perform
6338 floating point operations, the compiler will abort.
6339 .Ip "\fB\-mdisable-indexing\fR" 4
6340 .IX Item "-mdisable-indexing"
6341 Prevent the compiler from using indexing address modes.  This avoids some
6342 rather obscure problems when compiling \s-1MIG\s0 generated code under \s-1MACH\s0.
6343 .Ip "\fB\-mno-space-regs\fR" 4
6344 .IX Item "-mno-space-regs"
6345 Generate code that assumes the target has no space registers.  This allows
6346 \&\s-1GCC\s0 to generate faster indirect calls and use unscaled index address modes.
6348 Such code is suitable for level 0 \s-1PA\s0 systems and kernels.
6349 .Ip "\fB\-mfast-indirect-calls\fR" 4
6350 .IX Item "-mfast-indirect-calls"
6351 Generate code that assumes calls never cross space boundaries.  This
6352 allows \s-1GCC\s0 to emit code which performs faster indirect calls.
6354 This option will not work in the presence of shared libraries or nested
6355 functions.
6356 .Ip "\fB\-mlong-load-store\fR" 4
6357 .IX Item "-mlong-load-store"
6358 Generate 3\-instruction load and store sequences as sometimes required by
6359 the \s-1HP-UX\s0 10 linker.  This is equivalent to the \fB+k\fR option to
6360 the \s-1HP\s0 compilers.
6361 .Ip "\fB\-mportable-runtime\fR" 4
6362 .IX Item "-mportable-runtime"
6363 Use the portable calling conventions proposed by \s-1HP\s0 for \s-1ELF\s0 systems.
6364 .Ip "\fB\-mgas\fR" 4
6365 .IX Item "-mgas"
6366 Enable the use of assembler directives only \s-1GAS\s0 understands.
6367 .Ip "\fB\-mschedule=\fR\fIcpu-type\fR" 4
6368 .IX Item "-mschedule=cpu-type"
6369 Schedule code according to the constraints for the machine type
6370 \&\fIcpu-type\fR.  The choices for \fIcpu-type\fR are \fB700\fR
6371 \&\fB7100\fR, \fB7100LC\fR, \fB7200\fR, and \fB8000\fR.  Refer to
6372 \&\fI/usr/lib/sched.models\fR on an \s-1HP-UX\s0 system to determine the
6373 proper scheduling option for your machine.
6374 .Ip "\fB\-mlinker-opt\fR" 4
6375 .IX Item "-mlinker-opt"
6376 Enable the optimization pass in the \s-1HPUX\s0 linker.  Note this makes symbolic
6377 debugging impossible.  It also triggers a bug in the \s-1HPUX\s0 8 and \s-1HPUX\s0 9 linkers
6378 in which they give bogus error messages when linking some programs.
6379 .Ip "\fB\-msoft-float\fR" 4
6380 .IX Item "-msoft-float"
6381 Generate output containing library calls for floating point.
6382 \&\fBWarning:\fR the requisite libraries are not available for all \s-1HPPA\s0
6383 targets.  Normally the facilities of the machine's usual C compiler are
6384 used, but this cannot be done directly in cross-compilation.  You must make
6385 your own arrangements to provide suitable library functions for
6386 cross-compilation.  The embedded target \fBhppa1.1\-*\-pro\fR
6387 does provide software floating point support.
6389 \&\fB\-msoft-float\fR changes the calling convention in the output file;
6390 therefore, it is only useful if you compile \fIall\fR of a program with
6391 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
6392 library that comes with \s-1GCC\s0, with \fB\-msoft-float\fR in order for
6393 this to work.
6395 .I "Intel 960 Options"
6396 .IX Subsection "Intel 960 Options"
6398 These \fB\-m\fR options are defined for the Intel 960 implementations:
6399 .Ip "\fB\-m\fR\fIcpu-type\fR" 4
6400 .IX Item "-mcpu-type"
6401 Assume the defaults for the machine type \fIcpu-type\fR for some of
6402 the other options, including instruction scheduling, floating point
6403 support, and addressing modes.  The choices for \fIcpu-type\fR are
6404 \&\fBka\fR, \fBkb\fR, \fBmc\fR, \fBca\fR, \fBcf\fR,
6405 \&\fBsa\fR, and \fBsb\fR.
6406 The default is
6407 \&\fBkb\fR.
6408 .Ip "\fB\-mnumerics\fR" 4
6409 .IX Item "-mnumerics"
6410 .PD 0
6411 .Ip "\fB\-msoft-float\fR" 4
6412 .IX Item "-msoft-float"
6414 The \fB\-mnumerics\fR option indicates that the processor does support
6415 floating-point instructions.  The \fB\-msoft-float\fR option indicates
6416 that floating-point support should not be assumed.
6417 .Ip "\fB\-mleaf-procedures\fR" 4
6418 .IX Item "-mleaf-procedures"
6419 .PD 0
6420 .Ip "\fB\-mno-leaf-procedures\fR" 4
6421 .IX Item "-mno-leaf-procedures"
6423 Do (or do not) attempt to alter leaf procedures to be callable with the
6424 \&\f(CW\*(C`bal\*(C'\fR instruction as well as \f(CW\*(C`call\*(C'\fR.  This will result in more
6425 efficient code for explicit calls when the \f(CW\*(C`bal\*(C'\fR instruction can be
6426 substituted by the assembler or linker, but less efficient code in other
6427 cases, such as calls via function pointers, or using a linker that doesn't
6428 support this optimization.
6429 .Ip "\fB\-mtail-call\fR" 4
6430 .IX Item "-mtail-call"
6431 .PD 0
6432 .Ip "\fB\-mno-tail-call\fR" 4
6433 .IX Item "-mno-tail-call"
6435 Do (or do not) make additional attempts (beyond those of the
6436 machine-independent portions of the compiler) to optimize tail-recursive
6437 calls into branches.  You may not want to do this because the detection of
6438 cases where this is not valid is not totally complete.  The default is
6439 \&\fB\-mno-tail-call\fR.
6440 .Ip "\fB\-mcomplex-addr\fR" 4
6441 .IX Item "-mcomplex-addr"
6442 .PD 0
6443 .Ip "\fB\-mno-complex-addr\fR" 4
6444 .IX Item "-mno-complex-addr"
6446 Assume (or do not assume) that the use of a complex addressing mode is a
6447 win on this implementation of the i960.  Complex addressing modes may not
6448 be worthwhile on the K-series, but they definitely are on the C-series.
6449 The default is currently \fB\-mcomplex-addr\fR for all processors except
6450 the \s-1CB\s0 and \s-1CC\s0.
6451 .Ip "\fB\-mcode-align\fR" 4
6452 .IX Item "-mcode-align"
6453 .PD 0
6454 .Ip "\fB\-mno-code-align\fR" 4
6455 .IX Item "-mno-code-align"
6457 Align code to 8\-byte boundaries for faster fetching (or don't bother).
6458 Currently turned on by default for C-series implementations only.
6459 .Ip "\fB\-mic-compat\fR" 4
6460 .IX Item "-mic-compat"
6461 .PD 0
6462 .Ip "\fB\-mic2.0\-compat\fR" 4
6463 .IX Item "-mic2.0-compat"
6464 .Ip "\fB\-mic3.0\-compat\fR" 4
6465 .IX Item "-mic3.0-compat"
6467 Enable compatibility with iC960 v2.0 or v3.0.
6468 .Ip "\fB\-masm-compat\fR" 4
6469 .IX Item "-masm-compat"
6470 .PD 0
6471 .Ip "\fB\-mintel-asm\fR" 4
6472 .IX Item "-mintel-asm"
6474 Enable compatibility with the iC960 assembler.
6475 .Ip "\fB\-mstrict-align\fR" 4
6476 .IX Item "-mstrict-align"
6477 .PD 0
6478 .Ip "\fB\-mno-strict-align\fR" 4
6479 .IX Item "-mno-strict-align"
6481 Do not permit (do permit) unaligned accesses.
6482 .Ip "\fB\-mold-align\fR" 4
6483 .IX Item "-mold-align"
6484 Enable structure-alignment compatibility with Intel's gcc release version
6485 1.3 (based on gcc 1.37).  This option implies \fB\-mstrict-align\fR.
6486 .Ip "\fB\-mlong-double-64\fR" 4
6487 .IX Item "-mlong-double-64"
6488 Implement type \fBlong double\fR as 64\-bit floating point numbers.
6489 Without the option \fBlong double\fR is implemented by 80\-bit
6490 floating point numbers.  The only reason we have it because there is
6491 no 128\-bit \fBlong double\fR support in \fBfp-bit.c\fR yet.  So it
6492 is only useful for people using soft-float targets.  Otherwise, we
6493 should recommend against use of it.
6495 .I "\s-1DEC\s0 Alpha Options"
6496 .IX Subsection "DEC Alpha Options"
6498 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha implementations:
6499 .Ip "\fB\-mno-soft-float\fR" 4
6500 .IX Item "-mno-soft-float"
6501 .PD 0
6502 .Ip "\fB\-msoft-float\fR" 4
6503 .IX Item "-msoft-float"
6505 Use (do not use) the hardware floating-point instructions for
6506 floating-point operations.  When \fB\-msoft-float\fR is specified,
6507 functions in \fIlibgcc.a\fR will be used to perform floating-point
6508 operations.  Unless they are replaced by routines that emulate the
6509 floating-point operations, or compiled in such a way as to call such
6510 emulations routines, these routines will issue floating-point
6511 operations.   If you are compiling for an Alpha without floating-point
6512 operations, you must ensure that the library is built so as not to call
6513 them.
6515 Note that Alpha implementations without floating-point operations are
6516 required to have floating-point registers.
6517 .Ip "\fB\-mfp-reg\fR" 4
6518 .IX Item "-mfp-reg"
6519 .PD 0
6520 .Ip "\fB\-mno-fp-regs\fR" 4
6521 .IX Item "-mno-fp-regs"
6523 Generate code that uses (does not use) the floating-point register set.
6524 \&\fB\-mno-fp-regs\fR implies \fB\-msoft-float\fR.  If the floating-point
6525 register set is not used, floating point operands are passed in integer
6526 registers as if they were integers and floating-point results are passed
6527 in \f(CW$0\fR instead of \f(CW$f0\fR.  This is a non-standard calling sequence, so any
6528 function with a floating-point argument or return value called by code
6529 compiled with \fB\-mno-fp-regs\fR must also be compiled with that
6530 option.
6532 A typical use of this option is building a kernel that does not use,
6533 and hence need not save and restore, any floating-point registers.
6534 .Ip "\fB\-mieee\fR" 4
6535 .IX Item "-mieee"
6536 The Alpha architecture implements floating-point hardware optimized for
6537 maximum performance.  It is mostly compliant with the \s-1IEEE\s0 floating
6538 point standard.  However, for full compliance, software assistance is
6539 required.  This option generates code fully \s-1IEEE\s0 compliant code
6540 \&\fIexcept\fR that the \fIinexact-flag\fR is not maintained (see below).
6541 If this option is turned on, the \s-1CPP\s0 macro \f(CW\*(C`_IEEE_FP\*(C'\fR is defined
6542 during compilation.  The option is a shorthand for: \fB\-D_IEEE_FP
6543 \&\-mfp-trap-mode=su \-mtrap-precision=i \-mieee-conformant\fR.  The resulting
6544 code is less efficient but is able to correctly support denormalized
6545 numbers and exceptional \s-1IEEE\s0 values such as not-a-number and plus/minus
6546 infinity.  Other Alpha compilers call this option
6547 \&\fB\-ieee_with_no_inexact\fR.
6548 .Ip "\fB\-mieee-with-inexact\fR" 4
6549 .IX Item "-mieee-with-inexact"
6550 This is like \fB\-mieee\fR except the generated code also maintains the
6551 \&\s-1IEEE\s0 \fIinexact-flag\fR.  Turning on this option causes the generated
6552 code to implement fully-compliant \s-1IEEE\s0 math.  The option is a shorthand
6553 for \fB\-D_IEEE_FP \-D_IEEE_FP_INEXACT\fR plus the three following:
6554 \&\fB\-mieee-conformant\fR,
6555 \&\fB\-mfp-trap-mode=sui\fR,
6556 and \fB\-mtrap-precision=i\fR.
6557 On some Alpha implementations the resulting code may execute
6558 significantly slower than the code generated by default.  Since there
6559 is very little code that depends on the \fIinexact-flag\fR, you should
6560 normally not specify this option.  Other Alpha compilers call this
6561 option \fB\-ieee_with_inexact\fR.
6562 .Ip "\fB\-mfp-trap-mode=\fR\fItrap-mode\fR" 4
6563 .IX Item "-mfp-trap-mode=trap-mode"
6564 This option controls what floating-point related traps are enabled.
6565 Other Alpha compilers call this option \fB\-fptm\fR \fItrap-mode\fR.
6566 The trap mode can be set to one of four values:
6567 .RS 4
6568 .Ip "\fBn\fR" 4
6569 .IX Item "n"
6570 This is the default (normal) setting.  The only traps that are enabled
6571 are the ones that cannot be disabled in software (e.g., division by zero
6572 trap).
6573 .Ip "\fBu\fR" 4
6574 .IX Item "u"
6575 In addition to the traps enabled by \fBn\fR, underflow traps are enabled
6576 as well.
6577 .Ip "\fBsu\fR" 4
6578 .IX Item "su"
6579 Like \fBsu\fR, but the instructions are marked to be safe for software
6580 completion (see Alpha architecture manual for details).
6581 .Ip "\fBsui\fR" 4
6582 .IX Item "sui"
6583 Like \fBsu\fR, but inexact traps are enabled as well.
6585 .RS 4
6587 .Ip "\fB\-mfp-rounding-mode=\fR\fIrounding-mode\fR" 4
6588 .IX Item "-mfp-rounding-mode=rounding-mode"
6589 Selects the \s-1IEEE\s0 rounding mode.  Other Alpha compilers call this option
6590 \&\fB\-fprm\fR \fIrounding-mode\fR.  The \fIrounding-mode\fR can be one
6592 .RS 4
6593 .Ip "\fBn\fR" 4
6594 .IX Item "n"
6595 Normal \s-1IEEE\s0 rounding mode.  Floating point numbers are rounded towards
6596 the nearest machine number or towards the even machine number in case
6597 of a tie.
6598 .Ip "\fBm\fR" 4
6599 .IX Item "m"
6600 Round towards minus infinity.
6601 .Ip "\fBc\fR" 4
6602 .IX Item "c"
6603 Chopped rounding mode.  Floating point numbers are rounded towards zero.
6604 .Ip "\fBd\fR" 4
6605 .IX Item "d"
6606 Dynamic rounding mode.  A field in the floating point control register
6607 (\fIfpcr\fR, see Alpha architecture reference manual) controls the
6608 rounding mode in effect.  The C library initializes this register for
6609 rounding towards plus infinity.  Thus, unless your program modifies the
6610 \&\fIfpcr\fR, \fBd\fR corresponds to round towards plus infinity.
6612 .RS 4
6614 .Ip "\fB\-mtrap-precision=\fR\fItrap-precision\fR" 4
6615 .IX Item "-mtrap-precision=trap-precision"
6616 In the Alpha architecture, floating point traps are imprecise.  This
6617 means without software assistance it is impossible to recover from a
6618 floating trap and program execution normally needs to be terminated.
6619 \&\s-1GCC\s0 can generate code that can assist operating system trap handlers
6620 in determining the exact location that caused a floating point trap.
6621 Depending on the requirements of an application, different levels of
6622 precisions can be selected:
6623 .RS 4
6624 .Ip "\fBp\fR" 4
6625 .IX Item "p"
6626 Program precision.  This option is the default and means a trap handler
6627 can only identify which program caused a floating point exception.
6628 .Ip "\fBf\fR" 4
6629 .IX Item "f"
6630 Function precision.  The trap handler can determine the function that
6631 caused a floating point exception.
6632 .Ip "\fBi\fR" 4
6633 .IX Item "i"
6634 Instruction precision.  The trap handler can determine the exact
6635 instruction that caused a floating point exception.
6637 .RS 4
6639 Other Alpha compilers provide the equivalent options called
6640 \&\fB\-scope_safe\fR and \fB\-resumption_safe\fR.
6642 .Ip "\fB\-mieee-conformant\fR" 4
6643 .IX Item "-mieee-conformant"
6644 This option marks the generated code as \s-1IEEE\s0 conformant.  You must not
6645 use this option unless you also specify \fB\-mtrap-precision=i\fR and either
6646 \&\fB\-mfp-trap-mode=su\fR or \fB\-mfp-trap-mode=sui\fR.  Its only effect
6647 is to emit the line \fB.eflag 48\fR in the function prologue of the
6648 generated assembly file.  Under \s-1DEC\s0 Unix, this has the effect that
6649 IEEE-conformant math library routines will be linked in.
6650 .Ip "\fB\-mbuild-constants\fR" 4
6651 .IX Item "-mbuild-constants"
6652 Normally \s-1GCC\s0 examines a 32\- or 64\-bit integer constant to
6653 see if it can construct it from smaller constants in two or three
6654 instructions.  If it cannot, it will output the constant as a literal and
6655 generate code to load it from the data segment at runtime.
6657 Use this option to require \s-1GCC\s0 to construct \fIall\fR integer constants
6658 using code, even if it takes more instructions (the maximum is six).
6660 You would typically use this option to build a shared library dynamic
6661 loader.  Itself a shared library, it must relocate itself in memory
6662 before it can find the variables and constants in its own data segment.
6663 .Ip "\fB\-malpha-as\fR" 4
6664 .IX Item "-malpha-as"
6665 .PD 0
6666 .Ip "\fB\-mgas\fR" 4
6667 .IX Item "-mgas"
6669 Select whether to generate code to be assembled by the vendor-supplied
6670 assembler (\fB\-malpha-as\fR) or by the \s-1GNU\s0 assembler \fB\-mgas\fR.
6671 .Ip "\fB\-mbwx\fR" 4
6672 .IX Item "-mbwx"
6673 .PD 0
6674 .Ip "\fB\-mno-bwx\fR" 4
6675 .IX Item "-mno-bwx"
6676 .Ip "\fB\-mcix\fR" 4
6677 .IX Item "-mcix"
6678 .Ip "\fB\-mno-cix\fR" 4
6679 .IX Item "-mno-cix"
6680 .Ip "\fB\-mmax\fR" 4
6681 .IX Item "-mmax"
6682 .Ip "\fB\-mno-max\fR" 4
6683 .IX Item "-mno-max"
6685 Indicate whether \s-1GCC\s0 should generate code to use the optional \s-1BWX\s0,
6686 \&\s-1CIX\s0, and \s-1MAX\s0 instruction sets.  The default is to use the instruction sets
6687 supported by the \s-1CPU\s0 type specified via \fB\-mcpu=\fR option or that
6688 of the \s-1CPU\s0 on which \s-1GCC\s0 was built if none was specified.
6689 .Ip "\fB\-mcpu=\fR\fIcpu_type\fR" 4
6690 .IX Item "-mcpu=cpu_type"
6691 Set the instruction set, register set, and instruction scheduling
6692 parameters for machine type \fIcpu_type\fR.  You can specify either the
6693 \&\fB\s-1EV\s0\fR style name or the corresponding chip number.  \s-1GCC\s0
6694 supports scheduling parameters for the \s-1EV4\s0 and \s-1EV5\s0 family of processors
6695 and will choose the default values for the instruction set from
6696 the processor you specify.  If you do not specify a processor type,
6697 \&\s-1GCC\s0 will default to the processor on which the compiler was built.
6699 Supported values for \fIcpu_type\fR are
6700 .RS 4
6701 .Ip "\fBev4\fR" 4
6702 .IX Item "ev4"
6703 .PD 0
6704 .Ip "\fB21064\fR" 4
6705 .IX Item "21064"
6707 Schedules as an \s-1EV4\s0 and has no instruction set extensions.
6708 .Ip "\fBev5\fR" 4
6709 .IX Item "ev5"
6710 .PD 0
6711 .Ip "\fB21164\fR" 4
6712 .IX Item "21164"
6714 Schedules as an \s-1EV5\s0 and has no instruction set extensions.
6715 .Ip "\fBev56\fR" 4
6716 .IX Item "ev56"
6717 .PD 0
6718 .Ip "\fB21164a\fR" 4
6719 .IX Item "21164a"
6721 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 extension.
6722 .Ip "\fBpca56\fR" 4
6723 .IX Item "pca56"
6724 .PD 0
6725 .Ip "\fB21164pc\fR" 4
6726 .IX Item "21164pc"
6727 .Ip "\fB21164PC\fR" 4
6728 .IX Item "21164PC"
6730 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 and \s-1MAX\s0 extensions.
6731 .Ip "\fBev6\fR" 4
6732 .IX Item "ev6"
6733 .PD 0
6734 .Ip "\fB21264\fR" 4
6735 .IX Item "21264"
6737 Schedules as an \s-1EV5\s0 (until Digital releases the scheduling parameters
6738 for the \s-1EV6\s0) and supports the \s-1BWX\s0, \s-1CIX\s0, and \s-1MAX\s0 extensions.
6740 .RS 4
6742 .Ip "\fB\-mmemory-latency=\fR\fItime\fR" 4
6743 .IX Item "-mmemory-latency=time"
6744 Sets the latency the scheduler should assume for typical memory
6745 references as seen by the application.  This number is highly
6746 dependent on the memory access patterns used by the application
6747 and the size of the external cache on the machine.
6749 Valid options for \fItime\fR are
6750 .RS 4
6751 .Ip "\fInumber\fR" 4
6752 .IX Item "number"
6753 A decimal number representing clock cycles.
6754 .Ip "\fBL1\fR" 4
6755 .IX Item "L1"
6756 .PD 0
6757 .Ip "\fBL2\fR" 4
6758 .IX Item "L2"
6759 .Ip "\fBL3\fR" 4
6760 .IX Item "L3"
6761 .Ip "\fBmain\fR" 4
6762 .IX Item "main"
6764 The compiler contains estimates of the number of clock cycles for
6765 ``typical'' \s-1EV4\s0 & \s-1EV5\s0 hardware for the Level 1, 2 & 3 caches
6766 (also called Dcache, Scache, and Bcache), as well as to main memory.
6767 Note that L3 is only valid for \s-1EV5\s0.
6769 .RS 4
6772 .I "Clipper Options"
6773 .IX Subsection "Clipper Options"
6775 These \fB\-m\fR options are defined for the Clipper implementations:
6776 .Ip "\fB\-mc300\fR" 4
6777 .IX Item "-mc300"
6778 Produce code for a C300 Clipper processor. This is the default.
6779 .Ip "\fB\-mc400\fR" 4
6780 .IX Item "-mc400"
6781 Produce code for a C400 Clipper processor i.e. use floating point
6782 registers f8\-\-\-f15.
6784 .I "H8/300 Options"
6785 .IX Subsection "H8/300 Options"
6787 These \fB\-m\fR options are defined for the H8/300 implementations:
6788 .Ip "\fB\-mrelax\fR" 4
6789 .IX Item "-mrelax"
6790 Shorten some address references at link time, when possible; uses the
6791 linker option \fB\-relax\fR.  
6792 .Ip "\fB\-mh\fR" 4
6793 .IX Item "-mh"
6794 Generate code for the H8/300H.
6795 .Ip "\fB\-ms\fR" 4
6796 .IX Item "-ms"
6797 Generate code for the H8/S.
6798 .Ip "\fB\-ms2600\fR" 4
6799 .IX Item "-ms2600"
6800 Generate code for the H8/S2600.  This switch must be used with \fB\-ms\fR.
6801 .Ip "\fB\-mint32\fR" 4
6802 .IX Item "-mint32"
6803 Make \f(CW\*(C`int\*(C'\fR data 32 bits by default.
6804 .Ip "\fB\-malign-300\fR" 4
6805 .IX Item "-malign-300"
6806 On the H8/300H and H8/S, use the same alignment rules as for the H8/300.
6807 The default for the H8/300H and H8/S is to align longs and floats on 4
6808 byte boundaries.
6809 \&\fB\-malign-300\fR causes them to be aligned on 2 byte boundaries.
6810 This option has no effect on the H8/300.
6812 .I "\s-1SH\s0 Options"
6813 .IX Subsection "SH Options"
6815 These \fB\-m\fR options are defined for the \s-1SH\s0 implementations:
6816 .Ip "\fB\-m1\fR" 4
6817 .IX Item "-m1"
6818 Generate code for the \s-1SH1\s0.
6819 .Ip "\fB\-m2\fR" 4
6820 .IX Item "-m2"
6821 Generate code for the \s-1SH2\s0.
6822 .Ip "\fB\-m3\fR" 4
6823 .IX Item "-m3"
6824 Generate code for the \s-1SH3\s0.
6825 .Ip "\fB\-m3e\fR" 4
6826 .IX Item "-m3e"
6827 Generate code for the SH3e.
6828 .Ip "\fB\-m4\-nofpu\fR" 4
6829 .IX Item "-m4-nofpu"
6830 Generate code for the \s-1SH4\s0 without a floating-point unit.
6831 .Ip "\fB\-m4\-single-only\fR" 4
6832 .IX Item "-m4-single-only"
6833 Generate code for the \s-1SH4\s0 with a floating-point unit that only
6834 supports single-precision arithmetic.
6835 .Ip "\fB\-m4\-single\fR" 4
6836 .IX Item "-m4-single"
6837 Generate code for the \s-1SH4\s0 assuming the floating-point unit is in
6838 single-precision mode by default.
6839 .Ip "\fB\-m4\fR" 4
6840 .IX Item "-m4"
6841 Generate code for the \s-1SH4\s0.
6842 .Ip "\fB\-mb\fR" 4
6843 .IX Item "-mb"
6844 Compile code for the processor in big endian mode.
6845 .Ip "\fB\-ml\fR" 4
6846 .IX Item "-ml"
6847 Compile code for the processor in little endian mode.
6848 .Ip "\fB\-mdalign\fR" 4
6849 .IX Item "-mdalign"
6850 Align doubles at 64\-bit boundaries.  Note that this changes the calling
6851 conventions, and thus some functions from the standard C library will
6852 not work unless you recompile it first with \fB\-mdalign\fR.
6853 .Ip "\fB\-mrelax\fR" 4
6854 .IX Item "-mrelax"
6855 Shorten some address references at link time, when possible; uses the
6856 linker option \fB\-relax\fR.
6857 .Ip "\fB\-mbigtable\fR" 4
6858 .IX Item "-mbigtable"
6859 Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables.  The default is to use
6860 16\-bit offsets.
6861 .Ip "\fB\-mfmovd\fR" 4
6862 .IX Item "-mfmovd"
6863 Enable the use of the instruction \f(CW\*(C`fmovd\*(C'\fR.
6864 .Ip "\fB\-mhitachi\fR" 4
6865 .IX Item "-mhitachi"
6866 Comply with the calling conventions defined by Hitachi.
6867 .Ip "\fB\-mnomacsave\fR" 4
6868 .IX Item "-mnomacsave"
6869 Mark the \f(CW\*(C`MAC\*(C'\fR register as call-clobbered, even if
6870 \&\fB\-mhitachi\fR is given.
6871 .Ip "\fB\-mieee\fR" 4
6872 .IX Item "-mieee"
6873 Increase IEEE-compliance of floating-point code.
6874 .Ip "\fB\-misize\fR" 4
6875 .IX Item "-misize"
6876 Dump instruction size and location in the assembly code.
6877 .Ip "\fB\-mpadstruct\fR" 4
6878 .IX Item "-mpadstruct"
6879 This option is deprecated.  It pads structures to multiple of 4 bytes,
6880 which is incompatible with the \s-1SH\s0 \s-1ABI\s0.
6881 .Ip "\fB\-mspace\fR" 4
6882 .IX Item "-mspace"
6883 Optimize for space instead of speed.  Implied by \fB\-Os\fR.
6884 .Ip "\fB\-mprefergot\fR" 4
6885 .IX Item "-mprefergot"
6886 When generating position-independent code, emit function calls using
6887 the Global Offset Table instead of the Procedure Linkage Table.
6888 .Ip "\fB\-musermode\fR" 4
6889 .IX Item "-musermode"
6890 Generate a library function call to invalidate instruction cache
6891 entries, after fixing up a trampoline.  This library function call
6892 doesn't assume it can write to the whole memory address space.  This
6893 is the default when the target is \f(CW\*(C`sh\-*\-linux*\*(C'\fR.
6895 .I "Options for System V"
6896 .IX Subsection "Options for System V"
6898 These additional options are available on System V Release 4 for
6899 compatibility with other compilers on those systems:
6900 .Ip "\fB\-G\fR" 4
6901 .IX Item "-G"
6902 Create a shared object.
6903 It is recommended that \fB\-symbolic\fR or \fB\-shared\fR be used instead.
6904 .Ip "\fB\-Qy\fR" 4
6905 .IX Item "-Qy"
6906 Identify the versions of each tool used by the compiler, in a
6907 \&\f(CW\*(C`.ident\*(C'\fR assembler directive in the output.
6908 .Ip "\fB\-Qn\fR" 4
6909 .IX Item "-Qn"
6910 Refrain from adding \f(CW\*(C`.ident\*(C'\fR directives to the output file (this is
6911 the default).
6912 .Ip "\fB\-YP,\fR\fIdirs\fR" 4
6913 .IX Item "-YP,dirs"
6914 Search the directories \fIdirs\fR, and no others, for libraries
6915 specified with \fB\-l\fR.
6916 .Ip "\fB\-Ym,\fR\fIdir\fR" 4
6917 .IX Item "-Ym,dir"
6918 Look in the directory \fIdir\fR to find the M4 preprocessor.
6919 The assembler uses this option.
6921 .I "TMS320C3x/C4x Options"
6922 .IX Subsection "TMS320C3x/C4x Options"
6924 These \fB\-m\fR options are defined for TMS320C3x/C4x implementations:
6925 .Ip "\fB\-mcpu=\fR\fIcpu_type\fR" 4
6926 .IX Item "-mcpu=cpu_type"
6927 Set the instruction set, register set, and instruction scheduling
6928 parameters for machine type \fIcpu_type\fR.  Supported values for
6929 \&\fIcpu_type\fR are \fBc30\fR, \fBc31\fR, \fBc32\fR, \fBc40\fR, and
6930 \&\fBc44\fR.  The default is \fBc40\fR to generate code for the
6931 \&\s-1TMS320C40\s0.
6932 .Ip "\fB\-mbig-memory\fR" 4
6933 .IX Item "-mbig-memory"
6934 .PD 0
6935 .Ip "\fB\-mbig\fR" 4
6936 .IX Item "-mbig"
6937 .Ip "\fB\-msmall-memory\fR" 4
6938 .IX Item "-msmall-memory"
6939 .Ip "\fB\-msmall\fR" 4
6940 .IX Item "-msmall"
6942 Generates code for the big or small memory model.  The small memory
6943 model assumed that all data fits into one 64K word page.  At run-time
6944 the data page (\s-1DP\s0) register must be set to point to the 64K page
6945 containing the .bss and .data program sections.  The big memory model is
6946 the default and requires reloading of the \s-1DP\s0 register for every direct
6947 memory access.
6948 .Ip "\fB\-mbk\fR" 4
6949 .IX Item "-mbk"
6950 .PD 0
6951 .Ip "\fB\-mno-bk\fR" 4
6952 .IX Item "-mno-bk"
6954 Allow (disallow) allocation of general integer operands into the block
6955 count register \s-1BK\s0.
6956 .Ip "\fB\-mdb\fR" 4
6957 .IX Item "-mdb"
6958 .PD 0
6959 .Ip "\fB\-mno-db\fR" 4
6960 .IX Item "-mno-db"
6962 Enable (disable) generation of code using decrement and branch,
6963 DBcond(D), instructions.  This is enabled by default for the C4x.  To be
6964 on the safe side, this is disabled for the C3x, since the maximum
6965 iteration count on the C3x is 2^23 + 1 (but who iterates loops more than
6966 2^23 times on the C3x?).  Note that \s-1GCC\s0 will try to reverse a loop so
6967 that it can utilise the decrement and branch instruction, but will give
6968 up if there is more than one memory reference in the loop.  Thus a loop
6969 where the loop counter is decremented can generate slightly more
6970 efficient code, in cases where the \s-1RPTB\s0 instruction cannot be utilised.
6971 .Ip "\fB\-mdp-isr-reload\fR" 4
6972 .IX Item "-mdp-isr-reload"
6973 .PD 0
6974 .Ip "\fB\-mparanoid\fR" 4
6975 .IX Item "-mparanoid"
6977 Force the \s-1DP\s0 register to be saved on entry to an interrupt service
6978 routine (\s-1ISR\s0), reloaded to point to the data section, and restored on
6979 exit from the \s-1ISR\s0.  This should not be required unless someone has
6980 violated the small memory model by modifying the \s-1DP\s0 register, say within
6981 an object library.
6982 .Ip "\fB\-mmpyi\fR" 4
6983 .IX Item "-mmpyi"
6984 .PD 0
6985 .Ip "\fB\-mno-mpyi\fR" 4
6986 .IX Item "-mno-mpyi"
6988 For the C3x use the 24\-bit \s-1MPYI\s0 instruction for integer multiplies
6989 instead of a library call to guarantee 32\-bit results.  Note that if one
6990 of the operands is a constant, then the multiplication will be performed
6991 using shifts and adds.  If the \fB\-mmpyi\fR option is not specified for the C3x,
6992 then squaring operations are performed inline instead of a library call.
6993 .Ip "\fB\-mfast-fix\fR" 4
6994 .IX Item "-mfast-fix"
6995 .PD 0
6996 .Ip "\fB\-mno-fast-fix\fR" 4
6997 .IX Item "-mno-fast-fix"
6999 The C3x/C4x \s-1FIX\s0 instruction to convert a floating point value to an
7000 integer value chooses the nearest integer less than or equal to the
7001 floating point value rather than to the nearest integer.  Thus if the
7002 floating point number is negative, the result will be incorrectly
7003 truncated an additional code is necessary to detect and correct this
7004 case.  This option can be used to disable generation of the additional
7005 code required to correct the result.
7006 .Ip "\fB\-mrptb\fR" 4
7007 .IX Item "-mrptb"
7008 .PD 0
7009 .Ip "\fB\-mno-rptb\fR" 4
7010 .IX Item "-mno-rptb"
7012 Enable (disable) generation of repeat block sequences using the \s-1RPTB\s0
7013 instruction for zero overhead looping.  The \s-1RPTB\s0 construct is only used
7014 for innermost loops that do not call functions or jump across the loop
7015 boundaries.  There is no advantage having nested \s-1RPTB\s0 loops due to the
7016 overhead required to save and restore the \s-1RC\s0, \s-1RS\s0, and \s-1RE\s0 registers.
7017 This is enabled by default with \fB\-O2\fR.
7018 .Ip "\fB\-mrpts=\fR\fIcount\fR" 4
7019 .IX Item "-mrpts=count"
7020 .PD 0
7021 .Ip "\fB\-mno-rpts\fR" 4
7022 .IX Item "-mno-rpts"
7024 Enable (disable) the use of the single instruction repeat instruction
7025 \&\s-1RPTS\s0.  If a repeat block contains a single instruction, and the loop
7026 count can be guaranteed to be less than the value \fIcount\fR, \s-1GCC\s0 will
7027 emit a \s-1RPTS\s0 instruction instead of a \s-1RPTB\s0.  If no value is specified,
7028 then a \s-1RPTS\s0 will be emitted even if the loop count cannot be determined
7029 at compile time.  Note that the repeated instruction following \s-1RPTS\s0 does
7030 not have to be reloaded from memory each iteration, thus freeing up the
7031 \&\s-1CPU\s0 buses for operands.  However, since interrupts are blocked by this
7032 instruction, it is disabled by default.
7033 .Ip "\fB\-mloop-unsigned\fR" 4
7034 .IX Item "-mloop-unsigned"
7035 .PD 0
7036 .Ip "\fB\-mno-loop-unsigned\fR" 4
7037 .IX Item "-mno-loop-unsigned"
7039 The maximum iteration count when using \s-1RPTS\s0 and \s-1RPTB\s0 (and \s-1DB\s0 on the C40)
7040 is 2^31 + 1 since these instructions test if the iteration count is
7041 negative to terminate the loop.  If the iteration count is unsigned
7042 there is a possibility than the 2^31 + 1 maximum iteration count may be
7043 exceeded.  This switch allows an unsigned iteration count.
7044 .Ip "\fB\-mti\fR" 4
7045 .IX Item "-mti"
7046 Try to emit an assembler syntax that the \s-1TI\s0 assembler (asm30) is happy
7047 with.  This also enforces compatibility with the \s-1API\s0 employed by the \s-1TI\s0
7048 C3x C compiler.  For example, long doubles are passed as structures
7049 rather than in floating point registers.
7050 .Ip "\fB\-mregparm\fR" 4
7051 .IX Item "-mregparm"
7052 .PD 0
7053 .Ip "\fB\-mmemparm\fR" 4
7054 .IX Item "-mmemparm"
7056 Generate code that uses registers (stack) for passing arguments to functions.
7057 By default, arguments are passed in registers where possible rather
7058 than by pushing arguments on to the stack.
7059 .Ip "\fB\-mparallel-insns\fR" 4
7060 .IX Item "-mparallel-insns"
7061 .PD 0
7062 .Ip "\fB\-mno-parallel-insns\fR" 4
7063 .IX Item "-mno-parallel-insns"
7065 Allow the generation of parallel instructions.  This is enabled by
7066 default with \fB\-O2\fR.
7067 .Ip "\fB\-mparallel-mpy\fR" 4
7068 .IX Item "-mparallel-mpy"
7069 .PD 0
7070 .Ip "\fB\-mno-parallel-mpy\fR" 4
7071 .IX Item "-mno-parallel-mpy"
7073 Allow the generation of MPY||ADD and MPY||SUB parallel instructions,
7074 provided \fB\-mparallel-insns\fR is also specified.  These instructions have
7075 tight register constraints which can pessimize the code generation
7076 of large functions.
7078 .I "V850 Options"
7079 .IX Subsection "V850 Options"
7081 These \fB\-m\fR options are defined for V850 implementations:
7082 .Ip "\fB\-mlong-calls\fR" 4
7083 .IX Item "-mlong-calls"
7084 .PD 0
7085 .Ip "\fB\-mno-long-calls\fR" 4
7086 .IX Item "-mno-long-calls"
7088 Treat all calls as being far away (near).  If calls are assumed to be
7089 far away, the compiler will always load the functions address up into a
7090 register, and call indirect through the pointer.
7091 .Ip "\fB\-mno-ep\fR" 4
7092 .IX Item "-mno-ep"
7093 .PD 0
7094 .Ip "\fB\-mep\fR" 4
7095 .IX Item "-mep"
7097 Do not optimize (do optimize) basic blocks that use the same index
7098 pointer 4 or more times to copy pointer into the \f(CW\*(C`ep\*(C'\fR register, and
7099 use the shorter \f(CW\*(C`sld\*(C'\fR and \f(CW\*(C`sst\*(C'\fR instructions.  The \fB\-mep\fR
7100 option is on by default if you optimize.
7101 .Ip "\fB\-mno-prolog-function\fR" 4
7102 .IX Item "-mno-prolog-function"
7103 .PD 0
7104 .Ip "\fB\-mprolog-function\fR" 4
7105 .IX Item "-mprolog-function"
7107 Do not use (do use) external functions to save and restore registers at
7108 the prolog and epilog of a function.  The external functions are slower,
7109 but use less code space if more than one function saves the same number
7110 of registers.  The \fB\-mprolog-function\fR option is on by default if
7111 you optimize.
7112 .Ip "\fB\-mspace\fR" 4
7113 .IX Item "-mspace"
7114 Try to make the code as small as possible.  At present, this just turns
7115 on the \fB\-mep\fR and \fB\-mprolog-function\fR options.
7116 .Ip "\fB\-mtda=\fR\fIn\fR" 4
7117 .IX Item "-mtda=n"
7118 Put static or global variables whose size is \fIn\fR bytes or less into
7119 the tiny data area that register \f(CW\*(C`ep\*(C'\fR points to.  The tiny data
7120 area can hold up to 256 bytes in total (128 bytes for byte references).
7121 .Ip "\fB\-msda=\fR\fIn\fR" 4
7122 .IX Item "-msda=n"
7123 Put static or global variables whose size is \fIn\fR bytes or less into
7124 the small data area that register \f(CW\*(C`gp\*(C'\fR points to.  The small data
7125 area can hold up to 64 kilobytes.
7126 .Ip "\fB\-mzda=\fR\fIn\fR" 4
7127 .IX Item "-mzda=n"
7128 Put static or global variables whose size is \fIn\fR bytes or less into
7129 the first 32 kilobytes of memory.
7130 .Ip "\fB\-mv850\fR" 4
7131 .IX Item "-mv850"
7132 Specify that the target processor is the V850.
7133 .Ip "\fB\-mbig-switch\fR" 4
7134 .IX Item "-mbig-switch"
7135 Generate code suitable for big switch tables.  Use this option only if
7136 the assembler/linker complain about out of range branches within a switch
7137 table.
7139 .I "\s-1ARC\s0 Options"
7140 .IX Subsection "ARC Options"
7142 These options are defined for \s-1ARC\s0 implementations:
7143 .Ip "\fB\-EL\fR" 4
7144 .IX Item "-EL"
7145 Compile code for little endian mode.  This is the default.
7146 .Ip "\fB\-EB\fR" 4
7147 .IX Item "-EB"
7148 Compile code for big endian mode.
7149 .Ip "\fB\-mmangle-cpu\fR" 4
7150 .IX Item "-mmangle-cpu"
7151 Prepend the name of the cpu to all public symbol names.
7152 In multiple-processor systems, there are many \s-1ARC\s0 variants with different
7153 instruction and register set characteristics.  This flag prevents code
7154 compiled for one cpu to be linked with code compiled for another.
7155 No facility exists for handling variants that are ``almost identical''.
7156 This is an all or nothing option.
7157 .Ip "\fB\-mcpu=\fR\fIcpu\fR" 4
7158 .IX Item "-mcpu=cpu"
7159 Compile code for \s-1ARC\s0 variant \fIcpu\fR.
7160 Which variants are supported depend on the configuration.
7161 All variants support \fB\-mcpu=base\fR, this is the default.
7162 .Ip "\fB\-mtext=\fR\fItext-section\fR" 4
7163 .IX Item "-mtext=text-section"
7164 .PD 0
7165 .Ip "\fB\-mdata=\fR\fIdata-section\fR" 4
7166 .IX Item "-mdata=data-section"
7167 .Ip "\fB\-mrodata=\fR\fIreadonly-data-section\fR" 4
7168 .IX Item "-mrodata=readonly-data-section"
7170 Put functions, data, and readonly data in \fItext-section\fR,
7171 \&\fIdata-section\fR, and \fIreadonly-data-section\fR respectively
7172 by default.  This can be overridden with the \f(CW\*(C`section\*(C'\fR attribute.
7174 .I "\s-1NS32K\s0 Options"
7175 .IX Subsection "NS32K Options"
7177 These are the \fB\-m\fR options defined for the 32000 series.  The default
7178 values for these options depends on which style of 32000 was selected when
7179 the compiler was configured; the defaults for the most common choices are
7180 given below.
7181 .Ip "\fB\-m32032\fR" 4
7182 .IX Item "-m32032"
7183 .PD 0
7184 .Ip "\fB\-m32032\fR" 4
7185 .IX Item "-m32032"
7187 Generate output for a 32032.  This is the default
7188 when the compiler is configured for 32032 and 32016 based systems.
7189 .Ip "\fB\-m32332\fR" 4
7190 .IX Item "-m32332"
7191 .PD 0
7192 .Ip "\fB\-m32332\fR" 4
7193 .IX Item "-m32332"
7195 Generate output for a 32332.  This is the default
7196 when the compiler is configured for 32332\-based systems.
7197 .Ip "\fB\-m32532\fR" 4
7198 .IX Item "-m32532"
7199 .PD 0
7200 .Ip "\fB\-m32532\fR" 4
7201 .IX Item "-m32532"
7203 Generate output for a 32532.  This is the default
7204 when the compiler is configured for 32532\-based systems.
7205 .Ip "\fB\-m32081\fR" 4
7206 .IX Item "-m32081"
7207 Generate output containing 32081 instructions for floating point.
7208 This is the default for all systems.
7209 .Ip "\fB\-m32381\fR" 4
7210 .IX Item "-m32381"
7211 Generate output containing 32381 instructions for floating point.  This
7212 also implies \fB\-m32081\fR. The 32381 is only compatible with the 32332
7213 and 32532 cpus. This is the default for the pc532\-netbsd configuration.
7214 .Ip "\fB\-mmulti-add\fR" 4
7215 .IX Item "-mmulti-add"
7216 Try and generate multiply-add floating point instructions \f(CW\*(C`polyF\*(C'\fR
7217 and \f(CW\*(C`dotF\*(C'\fR. This option is only available if the \fB\-m32381\fR
7218 option is in effect. Using these instructions requires changes to to
7219 register allocation which generally has a negative impact on
7220 performance.  This option should only be enabled when compiling code
7221 particularly likely to make heavy use of multiply-add instructions.
7222 .Ip "\fB\-mnomulti-add\fR" 4
7223 .IX Item "-mnomulti-add"
7224 Do not try and generate multiply-add floating point instructions
7225 \&\f(CW\*(C`polyF\*(C'\fR and \f(CW\*(C`dotF\*(C'\fR. This is the default on all platforms.
7226 .Ip "\fB\-msoft-float\fR" 4
7227 .IX Item "-msoft-float"
7228 Generate output containing library calls for floating point.
7229 \&\fBWarning:\fR the requisite libraries may not be available.
7230 .Ip "\fB\-mnobitfield\fR" 4
7231 .IX Item "-mnobitfield"
7232 Do not use the bit-field instructions. On some machines it is faster to
7233 use shifting and masking operations. This is the default for the pc532.
7234 .Ip "\fB\-mbitfield\fR" 4
7235 .IX Item "-mbitfield"
7236 Do use the bit-field instructions. This is the default for all platforms
7237 except the pc532.
7238 .Ip "\fB\-mrtd\fR" 4
7239 .IX Item "-mrtd"
7240 Use a different function-calling convention, in which functions
7241 that take a fixed number of arguments return pop their
7242 arguments on return with the \f(CW\*(C`ret\*(C'\fR instruction.
7244 This calling convention is incompatible with the one normally
7245 used on Unix, so you cannot use it if you need to call libraries
7246 compiled with the Unix compiler.
7248 Also, you must provide function prototypes for all functions that
7249 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
7250 otherwise incorrect code will be generated for calls to those
7251 functions.
7253 In addition, seriously incorrect code will result if you call a
7254 function with too many arguments.  (Normally, extra arguments are
7255 harmlessly ignored.)
7257 This option takes its name from the 680x0 \f(CW\*(C`rtd\*(C'\fR instruction.
7258 .Ip "\fB\-mregparam\fR" 4
7259 .IX Item "-mregparam"
7260 Use a different function-calling convention where the first two arguments
7261 are passed in registers.
7263 This calling convention is incompatible with the one normally
7264 used on Unix, so you cannot use it if you need to call libraries
7265 compiled with the Unix compiler.
7266 .Ip "\fB\-mnoregparam\fR" 4
7267 .IX Item "-mnoregparam"
7268 Do not pass any arguments in registers. This is the default for all
7269 targets.
7270 .Ip "\fB\-msb\fR" 4
7271 .IX Item "-msb"
7272 It is \s-1OK\s0 to use the sb as an index register which is always loaded with
7273 zero. This is the default for the pc532\-netbsd target.
7274 .Ip "\fB\-mnosb\fR" 4
7275 .IX Item "-mnosb"
7276 The sb register is not available for use or has not been initialized to
7277 zero by the run time system. This is the default for all targets except
7278 the pc532\-netbsd. It is also implied whenever \fB\-mhimem\fR or
7279 \&\fB\-fpic\fR is set.
7280 .Ip "\fB\-mhimem\fR" 4
7281 .IX Item "-mhimem"
7282 Many ns32000 series addressing modes use displacements of up to 512MB.
7283 If an address is above 512MB then displacements from zero can not be used.
7284 This option causes code to be generated which can be loaded above 512MB.
7285 This may be useful for operating systems or \s-1ROM\s0 code.
7286 .Ip "\fB\-mnohimem\fR" 4
7287 .IX Item "-mnohimem"
7288 Assume code will be loaded in the first 512MB of virtual address space.
7289 This is the default for all platforms.
7291 .I "\s-1AVR\s0 Options"
7292 .IX Subsection "AVR Options"
7294 These options are defined for \s-1AVR\s0 implementations:
7295 .Ip "\fB\-mmcu=\fR\fImcu\fR" 4
7296 .IX Item "-mmcu=mcu"
7297 Specify \s-1ATMEL\s0 \s-1AVR\s0 instruction set or \s-1MCU\s0 type.
7299 Instruction set avr1 is for the minimal \s-1AVR\s0 core, not supported by the C
7300 compiler, only for assembler programs (\s-1MCU\s0 types: at90s1200, attiny10,
7301 attiny11, attiny12, attiny15, attiny28).
7303 Instruction set avr2 (default) is for the classic \s-1AVR\s0 core with up to
7304 8K program memory space (\s-1MCU\s0 types: at90s2313, at90s2323, attiny22,
7305 at90s2333, at90s2343, at90s4414, at90s4433, at90s4434, at90s8515,
7306 at90c8534, at90s8535).
7308 Instruction set avr3 is for the classic \s-1AVR\s0 core with up to 128K program
7309 memory space (\s-1MCU\s0 types: atmega103, atmega603).
7311 Instruction set avr4 is for the enhanced \s-1AVR\s0 core with up to 8K program
7312 memory space (\s-1MCU\s0 types: atmega83, atmega85).
7314 Instruction set avr5 is for the enhanced \s-1AVR\s0 core with up to 128K program
7315 memory space (\s-1MCU\s0 types: atmega161, atmega163, atmega32, at94k).
7316 .Ip "\fB\-msize\fR" 4
7317 .IX Item "-msize"
7318 Output instruction sizes to the asm file.
7319 .Ip "\fB\-minit-stack=\fR\fIN\fR" 4
7320 .IX Item "-minit-stack=N"
7321 Specify the initial stack address, which may be a symbol or numeric value,
7322 _\|_stack is the default.
7323 .Ip "\fB\-mno-interrupts\fR" 4
7324 .IX Item "-mno-interrupts"
7325 Generated code is not compatible with hardware interrupts.
7326 Code size will be smaller.
7327 .Ip "\fB\-mcall-prologues\fR" 4
7328 .IX Item "-mcall-prologues"
7329 Functions prologues/epilogues expanded as call to appropriate
7330 subroutines. Code size will be smaller.
7331 .Ip "\fB\-mno-tablejump\fR" 4
7332 .IX Item "-mno-tablejump"
7333 Do not generate tablejump insns which sometimes increase code size.
7334 .Ip "\fB\-mtiny-stack\fR" 4
7335 .IX Item "-mtiny-stack"
7336 Change only the low 8 bits of the stack pointer.
7338 .I "MCore Options"
7339 .IX Subsection "MCore Options"
7341 These are the \fB\-m\fR options defined for the Motorola M*Core
7342 processors.
7343 .Ip "\fB\-mhardlit\fR" 4
7344 .IX Item "-mhardlit"
7345 .PD 0
7346 .Ip "\fB\-mhardlit\fR" 4
7347 .IX Item "-mhardlit"
7348 .Ip "\fB\-mno-hardlit\fR" 4
7349 .IX Item "-mno-hardlit"
7351 Inline constants into the code stream if it can be done in two
7352 instructions or less.
7353 .Ip "\fB\-mdiv\fR" 4
7354 .IX Item "-mdiv"
7355 .PD 0
7356 .Ip "\fB\-mdiv\fR" 4
7357 .IX Item "-mdiv"
7358 .Ip "\fB\-mno-div\fR" 4
7359 .IX Item "-mno-div"
7361 Use the divide instruction.  (Enabled by default).
7362 .Ip "\fB\-mrelax-immediate\fR" 4
7363 .IX Item "-mrelax-immediate"
7364 .PD 0
7365 .Ip "\fB\-mrelax-immediate\fR" 4
7366 .IX Item "-mrelax-immediate"
7367 .Ip "\fB\-mno-relax-immediate\fR" 4
7368 .IX Item "-mno-relax-immediate"
7370 Allow arbitrary sized immediates in bit operations.
7371 .Ip "\fB\-mwide-bitfields\fR" 4
7372 .IX Item "-mwide-bitfields"
7373 .PD 0
7374 .Ip "\fB\-mwide-bitfields\fR" 4
7375 .IX Item "-mwide-bitfields"
7376 .Ip "\fB\-mno-wide-bitfields\fR" 4
7377 .IX Item "-mno-wide-bitfields"
7379 Always treat bit-fields as int-sized.
7380 .Ip "\fB\-m4byte-functions\fR" 4
7381 .IX Item "-m4byte-functions"
7382 .PD 0
7383 .Ip "\fB\-m4byte-functions\fR" 4
7384 .IX Item "-m4byte-functions"
7385 .Ip "\fB\-mno-4byte-functions\fR" 4
7386 .IX Item "-mno-4byte-functions"
7388 Force all functions to be aligned to a four byte boundary.
7389 .Ip "\fB\-mcallgraph-data\fR" 4
7390 .IX Item "-mcallgraph-data"
7391 .PD 0
7392 .Ip "\fB\-mcallgraph-data\fR" 4
7393 .IX Item "-mcallgraph-data"
7394 .Ip "\fB\-mno-callgraph-data\fR" 4
7395 .IX Item "-mno-callgraph-data"
7397 Emit callgraph information.
7398 .Ip "\fB\-mslow-bytes\fR" 4
7399 .IX Item "-mslow-bytes"
7400 .PD 0
7401 .Ip "\fB\-mslow-bytes\fR" 4
7402 .IX Item "-mslow-bytes"
7403 .Ip "\fB\-mno-slow-bytes\fR" 4
7404 .IX Item "-mno-slow-bytes"
7406 Prefer word access when reading byte quantities.
7407 .Ip "\fB\-mlittle-endian\fR" 4
7408 .IX Item "-mlittle-endian"
7409 .PD 0
7410 .Ip "\fB\-mlittle-endian\fR" 4
7411 .IX Item "-mlittle-endian"
7412 .Ip "\fB\-mbig-endian\fR" 4
7413 .IX Item "-mbig-endian"
7415 Generate code for a little endian target.
7416 .Ip "\fB\-m210\fR" 4
7417 .IX Item "-m210"
7418 .PD 0
7419 .Ip "\fB\-m210\fR" 4
7420 .IX Item "-m210"
7421 .Ip "\fB\-m340\fR" 4
7422 .IX Item "-m340"
7424 Generate code for the 210 processor.
7426 .I "\s-1IA-64\s0 Options"
7427 .IX Subsection "IA-64 Options"
7429 These are the \fB\-m\fR options defined for the Intel \s-1IA-64\s0 architecture.
7430 .Ip "\fB\-mbig-endian\fR" 4
7431 .IX Item "-mbig-endian"
7432 Generate code for a big endian target.  This is the default for \s-1HPUX\s0.
7433 .Ip "\fB\-mlittle-endian\fR" 4
7434 .IX Item "-mlittle-endian"
7435 Generate code for a little endian target.  This is the default for \s-1AIX5\s0
7436 and Linux.
7437 .Ip "\fB\-mgnu-as\fR" 4
7438 .IX Item "-mgnu-as"
7439 .PD 0
7440 .Ip "\fB\-mno-gnu-as\fR" 4
7441 .IX Item "-mno-gnu-as"
7443 Generate (or don't) code for the \s-1GNU\s0 assembler.  This is the default.
7444 .Ip "\fB\-mgnu-ld\fR" 4
7445 .IX Item "-mgnu-ld"
7446 .PD 0
7447 .Ip "\fB\-mno-gnu-ld\fR" 4
7448 .IX Item "-mno-gnu-ld"
7450 Generate (or don't) code for the \s-1GNU\s0 linker.  This is the default.
7451 .Ip "\fB\-mno-pic\fR" 4
7452 .IX Item "-mno-pic"
7453 Generate code that does not use a global pointer register.  The result
7454 is not position independent code, and violates the \s-1IA-64\s0 \s-1ABI\s0.
7455 .Ip "\fB\-mvolatile-asm-stop\fR" 4
7456 .IX Item "-mvolatile-asm-stop"
7457 .PD 0
7458 .Ip "\fB\-mno-volatile-asm-stop\fR" 4
7459 .IX Item "-mno-volatile-asm-stop"
7461 Generate (or don't) a stop bit immediately before and after volatile asm
7462 statements.
7463 .Ip "\fB\-mb-step\fR" 4
7464 .IX Item "-mb-step"
7465 Generate code that works around Itanium B step errata.
7466 .Ip "\fB\-mregister-names\fR" 4
7467 .IX Item "-mregister-names"
7468 .PD 0
7469 .Ip "\fB\-mno-register-names\fR" 4
7470 .IX Item "-mno-register-names"
7472 Generate (or don't) \fBin\fR, \fBloc\fR, and \fBout\fR register names for
7473 the stacked registers.  This may make assembler output more readable.
7474 .Ip "\fB\-mno-sdata\fR" 4
7475 .IX Item "-mno-sdata"
7476 .PD 0
7477 .Ip "\fB\-msdata\fR" 4
7478 .IX Item "-msdata"
7480 Disable (or enable) optimizations that use the small data section.  This may
7481 be useful for working around optimizer bugs.
7482 .Ip "\fB\-mconstant-gp\fR" 4
7483 .IX Item "-mconstant-gp"
7484 Generate code that uses a single constant global pointer value.  This is
7485 useful when compiling kernel code.
7486 .Ip "\fB\-mauto-pic\fR" 4
7487 .IX Item "-mauto-pic"
7488 Generate code that is self-relocatable.  This implies \fB\-mconstant-gp\fR.
7489 This is useful when compiling firmware code.
7490 .Ip "\fB\-minline-divide-min-latency\fR" 4
7491 .IX Item "-minline-divide-min-latency"
7492 Generate code for inline divides using the minimum latency algorithm.
7493 .Ip "\fB\-minline-divide-max-throughput\fR" 4
7494 .IX Item "-minline-divide-max-throughput"
7495 Generate code for inline divides using the maximum throughput algorithm.
7496 .Ip "\fB\-mno-dwarf2\-asm\fR" 4
7497 .IX Item "-mno-dwarf2-asm"
7498 .PD 0
7499 .Ip "\fB\-mdwarf2\-asm\fR" 4
7500 .IX Item "-mdwarf2-asm"
7502 Don't (or do) generate assembler code for the \s-1DWARF2\s0 line number debugging
7503 info.  This may be useful when not using the \s-1GNU\s0 assembler.
7504 .Ip "\fB\-mfixed-range=\fR\fIregister-range\fR" 4
7505 .IX Item "-mfixed-range=register-range"
7506 Generate code treating the given register range as fixed registers.
7507 A fixed register is one that the register allocator can not use.  This is
7508 useful when compiling kernel code.  A register range is specified as
7509 two registers separated by a dash.  Multiple register ranges can be
7510 specified separated by a comma.
7512 .I "D30V Options"
7513 .IX Subsection "D30V Options"
7515 These \fB\-m\fR options are defined for D30V implementations:
7516 .Ip "\fB\-mextmem\fR" 4
7517 .IX Item "-mextmem"
7518 Link the \fB.text\fR, \fB.data\fR, \fB.bss\fR, \fB.strings\fR,
7519 \&\fB.rodata\fR, \fB.rodata1\fR, \fB.data1\fR sections into external
7520 memory, which starts at location \f(CW\*(C`0x80000000\*(C'\fR.
7521 .Ip "\fB\-mextmemory\fR" 4
7522 .IX Item "-mextmemory"
7523 Same as the \fB\-mextmem\fR switch.
7524 .Ip "\fB\-monchip\fR" 4
7525 .IX Item "-monchip"
7526 Link the \fB.text\fR section into onchip text memory, which starts at
7527 location \f(CW\*(C`0x0\*(C'\fR.  Also link \fB.data\fR, \fB.bss\fR,
7528 \&\fB.strings\fR, \fB.rodata\fR, \fB.rodata1\fR, \fB.data1\fR sections
7529 into onchip data memory, which starts at location \f(CW\*(C`0x20000000\*(C'\fR.
7530 .Ip "\fB\-mno-asm-optimize\fR" 4
7531 .IX Item "-mno-asm-optimize"
7532 .PD 0
7533 .Ip "\fB\-masm-optimize\fR" 4
7534 .IX Item "-masm-optimize"
7536 Disable (enable) passing \fB\-O\fR to the assembler when optimizing.
7537 The assembler uses the \fB\-O\fR option to automatically parallelize
7538 adjacent short instructions where possible.
7539 .Ip "\fB\-mbranch-cost=\fR\fIn\fR" 4
7540 .IX Item "-mbranch-cost=n"
7541 Increase the internal costs of branches to \fIn\fR.  Higher costs means
7542 that the compiler will issue more instructions to avoid doing a branch.
7543 The default is 2.
7544 .Ip "\fB\-mcond-exec=\fR\fIn\fR" 4
7545 .IX Item "-mcond-exec=n"
7546 Specify the maximum number of conditionally executed instructions that
7547 replace a branch.  The default is 4.
7548 .Sh "Options for Code Generation Conventions"
7549 .IX Subsection "Options for Code Generation Conventions"
7550 These machine-independent options control the interface conventions
7551 used in code generation.
7553 Most of them have both positive and negative forms; the negative form
7554 of \fB\-ffoo\fR would be \fB\-fno-foo\fR.  In the table below, only
7555 one of the forms is listed\-\-\-the one which is not the default.  You
7556 can figure out the other form by either removing \fBno-\fR or adding
7558 .Ip "\fB\-fexceptions\fR" 4
7559 .IX Item "-fexceptions"
7560 Enable exception handling. Generates extra code needed to propagate
7561 exceptions.  For some targets, this implies \s-1GCC\s0 will generate frame
7562 unwind information for all functions, which can produce significant data
7563 size overhead, although it does not affect execution.  If you do not
7564 specify this option, \s-1GCC\s0 will enable it by default for languages like
7565 \&\*(C+ which normally require exception handling, and disable it for
7566 languages like C that do not normally require it.  However, you may need
7567 to enable this option when compiling C code that needs to interoperate
7568 properly with exception handlers written in \*(C+.  You may also wish to
7569 disable this option if you are compiling older \*(C+ programs that don't
7570 use exception handling.
7571 .Ip "\fB\-fnon-call-exceptions\fR" 4
7572 .IX Item "-fnon-call-exceptions"
7573 Generate code that allows trapping instructions to throw exceptions.
7574 Note that this requires platform-specific runtime support that does
7575 not exist everywhere.  Moreover, it only allows \fItrapping\fR
7576 instructions to throw exceptions, i.e. memory references or floating
7577 point instructions.  It does not allow exceptions to be thrown from
7578 arbitrary signal handlers such as \f(CW\*(C`SIGALRM\*(C'\fR.
7579 .Ip "\fB\-funwind-tables\fR" 4
7580 .IX Item "-funwind-tables"
7581 Similar to \fB\-fexceptions\fR, except that it will just generate any needed
7582 static data, but will not affect the generated code in any other way.
7583 You will normally not enable this option; instead, a language processor
7584 that needs this handling would enable it on your behalf.
7585 .Ip "\fB\-fpcc-struct-return\fR" 4
7586 .IX Item "-fpcc-struct-return"
7587 Return ``short'' \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in memory like
7588 longer ones, rather than in registers.  This convention is less
7589 efficient, but it has the advantage of allowing intercallability between
7590 GCC-compiled files and files compiled with other compilers.
7592 The precise convention for returning structures in memory depends
7593 on the target configuration macros.
7595 Short structures and unions are those whose size and alignment match
7596 that of some integer type.
7597 .Ip "\fB\-freg-struct-return\fR" 4
7598 .IX Item "-freg-struct-return"
7599 Use the convention that \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values are
7600 returned in registers when possible.  This is more efficient for small
7601 structures than \fB\-fpcc-struct-return\fR.
7603 If you specify neither \fB\-fpcc-struct-return\fR nor its contrary
7604 \&\fB\-freg-struct-return\fR, \s-1GCC\s0 defaults to whichever convention is
7605 standard for the target.  If there is no standard convention, \s-1GCC\s0
7606 defaults to \fB\-fpcc-struct-return\fR, except on targets where \s-1GCC\s0
7607 is the principal compiler.  In those cases, we can choose the standard,
7608 and we chose the more efficient register return alternative.
7609 .Ip "\fB\-fshort-enums\fR" 4
7610 .IX Item "-fshort-enums"
7611 Allocate to an \f(CW\*(C`enum\*(C'\fR type only as many bytes as it needs for the
7612 declared range of possible values.  Specifically, the \f(CW\*(C`enum\*(C'\fR type
7613 will be equivalent to the smallest integer type which has enough room.
7614 .Ip "\fB\-fshort-double\fR" 4
7615 .IX Item "-fshort-double"
7616 Use the same size for \f(CW\*(C`double\*(C'\fR as for \f(CW\*(C`float\*(C'\fR.
7617 .Ip "\fB\-fshared-data\fR" 4
7618 .IX Item "-fshared-data"
7619 Requests that the data and non-\f(CW\*(C`const\*(C'\fR variables of this
7620 compilation be shared data rather than private data.  The distinction
7621 makes sense only on certain operating systems, where shared data is
7622 shared between processes running the same program, while private data
7623 exists in one copy per process.
7624 .Ip "\fB\-fno-common\fR" 4
7625 .IX Item "-fno-common"
7626 In C, allocate even uninitialized global variables in the data section of the
7627 object file, rather than generating them as common blocks.  This has the
7628 effect that if the same variable is declared (without \f(CW\*(C`extern\*(C'\fR) in
7629 two different compilations, you will get an error when you link them.
7630 The only reason this might be useful is if you wish to verify that the
7631 program will work on other systems which always work this way.
7632 .Ip "\fB\-fno-ident\fR" 4
7633 .IX Item "-fno-ident"
7634 Ignore the \fB#ident\fR directive.
7635 .Ip "\fB\-fno-gnu-linker\fR" 4
7636 .IX Item "-fno-gnu-linker"
7637 Do not output global initializations (such as \*(C+ constructors and
7638 destructors) in the form used by the \s-1GNU\s0 linker (on systems where the \s-1GNU\s0
7639 linker is the standard method of handling them).  Use this option when
7640 you want to use a non-GNU linker, which also requires using the
7641 \&\fBcollect2\fR program to make sure the system linker includes
7642 constructors and destructors.  (\fBcollect2\fR is included in the \s-1GCC\s0
7643 distribution.)  For systems which \fImust\fR use \fBcollect2\fR, the
7644 compiler driver \fBgcc\fR is configured to do this automatically.
7645 .Ip "\fB\-finhibit-size-directive\fR" 4
7646 .IX Item "-finhibit-size-directive"
7647 Don't output a \f(CW\*(C`.size\*(C'\fR assembler directive, or anything else that
7648 would cause trouble if the function is split in the middle, and the
7649 two halves are placed at locations far apart in memory.  This option is
7650 used when compiling \fIcrtstuff.c\fR; you should not need to use it
7651 for anything else.
7652 .Ip "\fB\-fverbose-asm\fR" 4
7653 .IX Item "-fverbose-asm"
7654 Put extra commentary information in the generated assembly code to
7655 make it more readable.  This option is generally only of use to those
7656 who actually need to read the generated assembly code (perhaps while
7657 debugging the compiler itself).
7659 \&\fB\-fno-verbose-asm\fR, the default, causes the
7660 extra information to be omitted and is useful when comparing two assembler
7661 files.
7662 .Ip "\fB\-fvolatile\fR" 4
7663 .IX Item "-fvolatile"
7664 Consider all memory references through pointers to be volatile.
7665 .Ip "\fB\-fvolatile-global\fR" 4
7666 .IX Item "-fvolatile-global"
7667 Consider all memory references to extern and global data items to
7668 be volatile.  \s-1GCC\s0 does not consider static data items to be volatile
7669 because of this switch.
7670 .Ip "\fB\-fvolatile-static\fR" 4
7671 .IX Item "-fvolatile-static"
7672 Consider all memory references to static data to be volatile.
7673 .Ip "\fB\-fpic\fR" 4
7674 .IX Item "-fpic"
7675 Generate position-independent code (\s-1PIC\s0) suitable for use in a shared
7676 library, if supported for the target machine.  Such code accesses all
7677 constant addresses through a global offset table (\s-1GOT\s0).  The dynamic
7678 loader resolves the \s-1GOT\s0 entries when the program starts (the dynamic
7679 loader is not part of \s-1GCC\s0; it is part of the operating system).  If
7680 the \s-1GOT\s0 size for the linked executable exceeds a machine-specific
7681 maximum size, you get an error message from the linker indicating that
7682 \&\fB\-fpic\fR does not work; in that case, recompile with \fB\-fPIC\fR
7683 instead.  (These maximums are 16k on the m88k, 8k on the Sparc, and 32k
7684 on the m68k and \s-1RS/6000\s0.  The 386 has no such limit.)
7686 Position-independent code requires special support, and therefore works
7687 only on certain machines.  For the 386, \s-1GCC\s0 supports \s-1PIC\s0 for System V
7688 but not for the Sun 386i.  Code generated for the \s-1IBM\s0 \s-1RS/6000\s0 is always
7689 position-independent.
7690 .Ip "\fB\-fPIC\fR" 4
7691 .IX Item "-fPIC"
7692 If supported for the target machine, emit position-independent code,
7693 suitable for dynamic linking and avoiding any limit on the size of the
7694 global offset table.  This option makes a difference on the m68k, m88k,
7695 and the Sparc.
7697 Position-independent code requires special support, and therefore works
7698 only on certain machines.
7699 .Ip "\fB\-ffixed-\fR\fIreg\fR" 4
7700 .IX Item "-ffixed-reg"
7701 Treat the register named \fIreg\fR as a fixed register; generated code
7702 should never refer to it (except perhaps as a stack pointer, frame
7703 pointer or in some other fixed role).
7705 \&\fIreg\fR must be the name of a register.  The register names accepted
7706 are machine-specific and are defined in the \f(CW\*(C`REGISTER_NAMES\*(C'\fR
7707 macro in the machine description macro file.
7709 This flag does not have a negative form, because it specifies a
7710 three-way choice.
7711 .Ip "\fB\-fcall-used-\fR\fIreg\fR" 4
7712 .IX Item "-fcall-used-reg"
7713 Treat the register named \fIreg\fR as an allocable register that is
7714 clobbered by function calls.  It may be allocated for temporaries or
7715 variables that do not live across a call.  Functions compiled this way
7716 will not save and restore the register \fIreg\fR.
7718 It is an error to used this flag with the frame pointer or stack pointer.
7719 Use of this flag for other registers that have fixed pervasive roles in
7720 the machine's execution model will produce disastrous results.
7722 This flag does not have a negative form, because it specifies a
7723 three-way choice.
7724 .Ip "\fB\-fcall-saved-\fR\fIreg\fR" 4
7725 .IX Item "-fcall-saved-reg"
7726 Treat the register named \fIreg\fR as an allocable register saved by
7727 functions.  It may be allocated even for temporaries or variables that
7728 live across a call.  Functions compiled this way will save and restore
7729 the register \fIreg\fR if they use it.
7731 It is an error to used this flag with the frame pointer or stack pointer.
7732 Use of this flag for other registers that have fixed pervasive roles in
7733 the machine's execution model will produce disastrous results.
7735 A different sort of disaster will result from the use of this flag for
7736 a register in which function values may be returned.
7738 This flag does not have a negative form, because it specifies a
7739 three-way choice.
7740 .Ip "\fB\-fpack-struct\fR" 4
7741 .IX Item "-fpack-struct"
7742 Pack all structure members together without holes.  Usually you would
7743 not want to use this option, since it makes the code suboptimal, and
7744 the offsets of structure members won't agree with system libraries.
7745 .Ip "\fB\-fcheck-memory-usage\fR" 4
7746 .IX Item "-fcheck-memory-usage"
7747 Generate extra code to check each memory access.  \s-1GCC\s0 will generate
7748 code that is suitable for a detector of bad memory accesses such as
7749 \&\fIChecker\fR.
7751 Normally, you should compile all, or none, of your code with this option.
7753 If you do mix code compiled with and without this option,
7754 you must ensure that all code that has side effects
7755 and that is called by code compiled with this option
7756 is, itself, compiled with this option.
7757 If you do not, you might get erroneous messages from the detector.
7759 If you use functions from a library that have side-effects (such as
7760 \&\f(CW\*(C`read\*(C'\fR), you might not be able to recompile the library and
7761 specify this option.  In that case, you can enable the
7762 \&\fB\-fprefix-function-name\fR option, which requests \s-1GCC\s0 to encapsulate
7763 your code and make other functions look as if they were compiled with
7764 \&\fB\-fcheck-memory-usage\fR.  This is done by calling ``stubs'',
7765 which are provided by the detector.  If you cannot find or build
7766 stubs for every function you call, you might have to specify
7767 \&\fB\-fcheck-memory-usage\fR without \fB\-fprefix-function-name\fR.
7769 If you specify this option, you can not use the \f(CW\*(C`asm\*(C'\fR or
7770 \&\f(CW\*(C`_\|_asm_\|_\*(C'\fR keywords in functions with memory checking enabled.  \s-1GCC\s0
7771 cannot understand what the \f(CW\*(C`asm\*(C'\fR statement may do, and therefore
7772 cannot generate the appropriate code, so it will reject it.  However, if
7773 you specify the function attribute \f(CW\*(C`no_check_memory_usage\*(C'\fR, \s-1GCC\s0 will disable memory checking within a
7774 function; you may use \f(CW\*(C`asm\*(C'\fR statements inside such functions.  You
7775 may have an inline expansion of a non-checked function within a checked
7776 function; in that case \s-1GCC\s0 will not generate checks for the inlined
7777 function's memory accesses.
7779 If you move your \f(CW\*(C`asm\*(C'\fR statements to non-checked inline functions
7780 and they do access memory, you can add calls to the support code in your
7781 inline function, to indicate any reads, writes, or copies being done.
7782 These calls would be similar to those done in the stubs described above.
7783 .Ip "\fB\-fprefix-function-name\fR" 4
7784 .IX Item "-fprefix-function-name"
7785 Request \s-1GCC\s0 to add a prefix to the symbols generated for function names.
7786 \&\s-1GCC\s0 adds a prefix to the names of functions defined as well as
7787 functions called.  Code compiled with this option and code compiled
7788 without the option can't be linked together, unless stubs are used.
7790 If you compile the following code with \fB\-fprefix-function-name\fR
7792 .Vb 6
7793 \&        extern void bar (int);
7794 \&        void
7795 \&        foo (int a)
7796 \&        {
7797 \&          return bar (a + 5);
7798 \&        }
7800 \&\s-1GCC\s0 will compile the code as if it was written:
7802 .Vb 6
7803 \&        extern void prefix_bar (int);
7804 \&        void
7805 \&        prefix_foo (int a)
7806 \&        {
7807 \&          return prefix_bar (a + 5);
7808 \&        }
7810 This option is designed to be used with \fB\-fcheck-memory-usage\fR.
7811 .Ip "\fB\-finstrument-functions\fR" 4
7812 .IX Item "-finstrument-functions"
7813 Generate instrumentation calls for entry and exit to functions.  Just
7814 after function entry and just before function exit, the following
7815 profiling functions will be called with the address of the current
7816 function and its call site.  (On some platforms,
7817 \&\f(CW\*(C`_\|_builtin_return_address\*(C'\fR does not work beyond the current
7818 function, so the call site information may not be available to the
7819 profiling functions otherwise.)
7821 .Vb 4
7822 \&        void __cyg_profile_func_enter (void *this_fn,
7823 \&                                       void *call_site);
7824 \&        void __cyg_profile_func_exit  (void *this_fn,
7825 \&                                       void *call_site);
7827 The first argument is the address of the start of the current function,
7828 which may be looked up exactly in the symbol table.
7830 This instrumentation is also done for functions expanded inline in other
7831 functions.  The profiling calls will indicate where, conceptually, the
7832 inline function is entered and exited.  This means that addressable
7833 versions of such functions must be available.  If all your uses of a
7834 function are expanded inline, this may mean an additional expansion of
7835 code size.  If you use \fBextern inline\fR in your C code, an
7836 addressable version of such functions must be provided.  (This is
7837 normally the case anyways, but if you get lucky and the optimizer always
7838 expands the functions inline, you might have gotten away without
7839 providing static copies.)
7841 A function may be given the attribute \f(CW\*(C`no_instrument_function\*(C'\fR, in
7842 which case this instrumentation will not be done.  This can be used, for
7843 example, for the profiling functions listed above, high-priority
7844 interrupt routines, and any functions from which the profiling functions
7845 cannot safely be called (perhaps signal handlers, if the profiling
7846 routines generate output or allocate memory).
7847 .Ip "\fB\-fstack-check\fR" 4
7848 .IX Item "-fstack-check"
7849 Generate code to verify that you do not go beyond the boundary of the
7850 stack.  You should specify this flag if you are running in an
7851 environment with multiple threads, but only rarely need to specify it in
7852 a single-threaded environment since stack overflow is automatically
7853 detected on nearly all systems if there is only one stack.
7855 Note that this switch does not actually cause checking to be done; the
7856 operating system must do that.  The switch causes generation of code
7857 to ensure that the operating system sees the stack being extended.
7858 .Ip "\fB\-fstack-limit-register=\fR\fIreg\fR" 4
7859 .IX Item "-fstack-limit-register=reg"
7860 .PD 0
7861 .Ip "\fB\-fstack-limit-symbol=\fR\fIsym\fR" 4
7862 .IX Item "-fstack-limit-symbol=sym"
7863 .Ip "\fB\-fno-stack-limit\fR" 4
7864 .IX Item "-fno-stack-limit"
7866 Generate code to ensure that the stack does not grow beyond a certain value,
7867 either the value of a register or the address of a symbol.  If the stack
7868 would grow beyond the value, a signal is raised.  For most targets,
7869 the signal is raised before the stack overruns the boundary, so
7870 it is possible to catch the signal without taking special precautions.
7872 For instance, if the stack starts at address \fB0x80000000\fR and grows
7873 downwards you can use the flags
7874 \&\fB\-fstack-limit-symbol=_\|_stack_limit
7875 \&\-Wl,\-\-defsym,_\|_stack_limit=0x7ffe0000\fR which will enforce a stack
7876 limit of 128K.
7877 .Ip "\fB\-fargument-alias\fR" 4
7878 .IX Item "-fargument-alias"
7879 .PD 0
7880 .Ip "\fB\-fargument-noalias\fR" 4
7881 .IX Item "-fargument-noalias"
7882 .Ip "\fB\-fargument-noalias-global\fR" 4
7883 .IX Item "-fargument-noalias-global"
7885 Specify the possible relationships among parameters and between
7886 parameters and global data.
7888 \&\fB\-fargument-alias\fR specifies that arguments (parameters) may
7889 alias each other and may alias global storage.
7890 \&\fB\-fargument-noalias\fR specifies that arguments do not alias
7891 each other, but may alias global storage.
7892 \&\fB\-fargument-noalias-global\fR specifies that arguments do not
7893 alias each other and do not alias global storage.
7895 Each language will automatically use whatever option is required by
7896 the language standard.  You should not need to use these options yourself.
7897 .Ip "\fB\-fleading-underscore\fR" 4
7898 .IX Item "-fleading-underscore"
7899 This option and its counterpart, \fB\-fno-leading-underscore\fR, forcibly
7900 change the way C symbols are represented in the object file.  One use
7901 is to help link with legacy assembly code.
7903 Be warned that you should know what you are doing when invoking this
7904 option, and that not all targets provide complete support for it.
7905 .SH "ENVIRONMENT"
7906 .IX Header "ENVIRONMENT"
7907 This section describes several environment variables that affect how \s-1GCC\s0
7908 operates.  Some of them work by specifying directories or prefixes to use
7909 when searching for various kinds of files. Some are used to specify other
7910 aspects of the compilation environment.
7912 Note that you can also specify places to search using options such as
7913 \&\fB\-B\fR, \fB\-I\fR and \fB\-L\fR.  These
7914 take precedence over places specified using environment variables, which
7915 in turn take precedence over those specified by the configuration of \s-1GCC\s0.
7916 .Ip "\fB\s-1LANG\s0\fR" 4
7917 .IX Item "LANG"
7918 .PD 0
7919 .Ip "\fB\s-1LC_CTYPE\s0\fR" 4
7920 .IX Item "LC_CTYPE"
7921 .Ip "\fB\s-1LC_MESSAGES\s0\fR" 4
7922 .IX Item "LC_MESSAGES"
7923 .Ip "\fB\s-1LC_ALL\s0\fR" 4
7924 .IX Item "LC_ALL"
7926 These environment variables control the way that \s-1GCC\s0 uses
7927 localization information that allow \s-1GCC\s0 to work with different
7928 national conventions.  \s-1GCC\s0 inspects the locale categories
7929 \&\fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR if it has been configured to do
7930 so.  These locale categories can be set to any value supported by your
7931 installation.  A typical value is \fBen_UK\fR for English in the United
7932 Kingdom.
7934 The \fB\s-1LC_CTYPE\s0\fR environment variable specifies character
7935 classification.  \s-1GCC\s0 uses it to determine the character boundaries in
7936 a string; this is needed for some multibyte encodings that contain quote
7937 and escape characters that would otherwise be interpreted as a string
7938 end or escape.
7940 The \fB\s-1LC_MESSAGES\s0\fR environment variable specifies the language to
7941 use in diagnostic messages.
7943 If the \fB\s-1LC_ALL\s0\fR environment variable is set, it overrides the value
7944 of \fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR; otherwise, \fB\s-1LC_CTYPE\s0\fR
7945 and \fB\s-1LC_MESSAGES\s0\fR default to the value of the \fB\s-1LANG\s0\fR
7946 environment variable.  If none of these variables are set, \s-1GCC\s0
7947 defaults to traditional C English behavior.
7948 .Ip "\fB\s-1TMPDIR\s0\fR" 4
7949 .IX Item "TMPDIR"
7950 If \fB\s-1TMPDIR\s0\fR is set, it specifies the directory to use for temporary
7951 files.  \s-1GCC\s0 uses temporary files to hold the output of one stage of
7952 compilation which is to be used as input to the next stage: for example,
7953 the output of the preprocessor, which is the input to the compiler
7954 proper.
7955 .Ip "\fB\s-1GCC_EXEC_PREFIX\s0\fR" 4
7956 .IX Item "GCC_EXEC_PREFIX"
7957 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is set, it specifies a prefix to use in the
7958 names of the subprograms executed by the compiler.  No slash is added
7959 when this prefix is combined with the name of a subprogram, but you can
7960 specify a prefix that ends with a slash if you wish.
7962 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is not set, \s-1GCC\s0 will attempt to figure out
7963 an appropriate prefix to use based on the pathname it was invoked with.
7965 If \s-1GCC\s0 cannot find the subprogram using the specified prefix, it
7966 tries looking in the usual places for the subprogram.
7968 The default value of \fB\s-1GCC_EXEC_PREFIX\s0\fR is
7969 \&\fI\fIprefix\fI/lib/gcc-lib/\fR where \fIprefix\fR is the value
7970 of \f(CW\*(C`prefix\*(C'\fR when you ran the \fIconfigure\fR script.
7972 Other prefixes specified with \fB\-B\fR take precedence over this prefix.
7974 This prefix is also used for finding files such as \fIcrt0.o\fR that are
7975 used for linking.
7977 In addition, the prefix is used in an unusual way in finding the
7978 directories to search for header files.  For each of the standard
7979 directories whose name normally begins with \fB/usr/local/lib/gcc-lib\fR
7980 (more precisely, with the value of \fB\s-1GCC_INCLUDE_DIR\s0\fR), \s-1GCC\s0 tries
7981 replacing that beginning with the specified prefix to produce an
7982 alternate directory name.  Thus, with \fB\-Bfoo/\fR, \s-1GCC\s0 will search
7983 \&\fIfoo/bar\fR where it would normally search \fI/usr/local/lib/bar\fR.
7984 These alternate directories are searched first; the standard directories
7985 come next.
7986 .Ip "\fB\s-1COMPILER_PATH\s0\fR" 4
7987 .IX Item "COMPILER_PATH"
7988 The value of \fB\s-1COMPILER_PATH\s0\fR is a colon-separated list of
7989 directories, much like \fB\s-1PATH\s0\fR.  \s-1GCC\s0 tries the directories thus
7990 specified when searching for subprograms, if it can't find the
7991 subprograms using \fB\s-1GCC_EXEC_PREFIX\s0\fR.
7992 .Ip "\fB\s-1LIBRARY_PATH\s0\fR" 4
7993 .IX Item "LIBRARY_PATH"
7994 The value of \fB\s-1LIBRARY_PATH\s0\fR is a colon-separated list of
7995 directories, much like \fB\s-1PATH\s0\fR.  When configured as a native compiler,
7996 \&\s-1GCC\s0 tries the directories thus specified when searching for special
7997 linker files, if it can't find them using \fB\s-1GCC_EXEC_PREFIX\s0\fR.  Linking
7998 using \s-1GCC\s0 also uses these directories when searching for ordinary
7999 libraries for the \fB\-l\fR option (but directories specified with
8000 \&\fB\-L\fR come first).
8001 .Ip "\fBC_INCLUDE_PATH\fR" 4
8002 .IX Item "C_INCLUDE_PATH"
8003 .PD 0
8004 .Ip "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4
8005 .IX Item "CPLUS_INCLUDE_PATH"
8006 .Ip "\fB\s-1OBJC_INCLUDE_PATH\s0\fR" 4
8007 .IX Item "OBJC_INCLUDE_PATH"
8009 These environment variables pertain to particular languages.  Each
8010 variable's value is a colon-separated list of directories, much like
8011 \&\fB\s-1PATH\s0\fR.  When \s-1GCC\s0 searches for header files, it tries the
8012 directories listed in the variable for the language you are using, after
8013 the directories specified with \fB\-I\fR but before the standard header
8014 file directories.
8015 .Ip "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4
8016 .IX Item "DEPENDENCIES_OUTPUT"
8017 If this variable is set, its value specifies how to output dependencies
8018 for Make based on the header files processed by the compiler.  This
8019 output looks much like the output from the \fB\-M\fR option, but it goes to a separate file, and is
8020 in addition to the usual results of compilation.
8022 The value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, in
8023 which case the Make rules are written to that file, guessing the target
8024 name from the source file name.  Or the value can have the form
8025 \&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written to
8026 file \fIfile\fR using \fItarget\fR as the target name.
8027 .Ip "\fB\s-1LANG\s0\fR" 4
8028 .IX Item "LANG"
8029 This variable is used to pass locale information to the compiler. One way in
8030 which this information is used is to determine the character set to be used
8031 when character literals, string literals and comments are parsed in C and \*(C+.
8032 When the compiler is configured to allow multibyte characters,
8033 the following values for \fB\s-1LANG\s0\fR are recognized:
8034 .RS 4
8035 .Ip "\fBC-JIS\fR" 4
8036 .IX Item "C-JIS"
8037 Recognize \s-1JIS\s0 characters.
8038 .Ip "\fBC-SJIS\fR" 4
8039 .IX Item "C-SJIS"
8040 Recognize \s-1SJIS\s0 characters.
8041 .Ip "\fBC-EUCJP\fR" 4
8042 .IX Item "C-EUCJP"
8043 Recognize \s-1EUCJP\s0 characters.
8045 .RS 4
8047 If \fB\s-1LANG\s0\fR is not defined, or if it has some other value, then the
8048 compiler will use mblen and mbtowc as defined by the default locale to
8049 recognize and translate multibyte characters.
8051 .SH "BUGS"
8052 .IX Header "BUGS"
8053 For instructions on reporting bugs, see
8054 <\fBhttp://gcc.gnu.org/bugs.html\fR>.  Use of the \fBgccbug\fR
8055 script to report bugs is recommended.
8056 .SH "FOOTNOTES"
8057 .IX Header "FOOTNOTES"
8058 .Ip "1." 4
8059 On some systems, \fBgcc \-shared\fR
8060 needs to build supplementary stub code for constructors to work. On
8061 multi-libbed systems, \fBgcc \-shared\fR must select the correct support
8062 libraries to link against.  Failing to supply the correct flags may lead
8063 to subtle defects. Supplying them in cases where they are not necessary
8064 is innocuous.
8065 .SH "SEE ALSO"
8066 .IX Header "SEE ALSO"
8067 \&\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)
8068 and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIg77\fR, \fIas\fR,
8069 \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
8070 .SH "AUTHOR"
8071 .IX Header "AUTHOR"
8072 See the Info entry for \fIgcc\fR, or
8073 <\fBhttp://gcc.gnu.org/thanks.html\fR>, for contributors to \s-1GCC\s0.
8074 .SH "COPYRIGHT"
8075 .IX Header "COPYRIGHT"
8076 Copyright (c) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997,
8077 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
8079 Permission is granted to make and distribute verbatim copies of this
8080 manual provided the copyright notice and this permission notice are
8081 preserved on all copies.
8083 Permission is granted to copy and distribute modified versions of this
8084 manual under the conditions for verbatim copying, provided also that the
8085 entire resulting derived work is distributed under the terms of a
8086 permission notice identical to this one.
8088 Permission is granted to copy and distribute translations of this manual
8089 into another language, under the above conditions for modified versions,
8090 except that this permission notice may be included in translations
8091 approved by the Free Software Foundation instead of in the original
8092 English.