2001-01-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
[official-gcc.git] / gcc / gcc.1
blob532dfd82f27365ba851f106d7cf980f091d24709
1 .\" Automatically generated by Pod::Man version 1.1
2 .\" Fri Jan 12 20:37:33 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-2.97" "2001-01-12" "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\-fno-asm  \-fno-builtin 
204 \&\-fhosted  \-ffreestanding 
205 \&\-trigraphs  \-traditional  \-traditional-cpp 
206 \&\-fallow-single-precision  \-fcond-mismatch 
207 \&\-fsigned-bitfields  \-fsigned-char 
208 \&\-funsigned-bitfields  \-funsigned-char 
209 \&\-fwritable-strings  \-fshort-wchar\fR
210 .Ip "\fI\*(C+ Language Options\fR" 4
211 .IX Item " Language Options"
212 \&\fB\-fno-access-control  \-fcheck-new  \-fconserve-space 
213 \&\-fdollars-in-identifiers  \-fno-elide-constructors 
214 \&\-fno-enforce-eh-specs  \-fexternal-templates 
215 \&\-falt-external-templates 
216 \&\-ffor-scope  \-fno-for-scope  \-fno-gnu-keywords  \-fhonor-std 
217 \&\-fhuge-objects  \-fno-implicit-templates 
218 \&\-fno-implicit-inline-templates 
219 \&\-fno-implement-inlines  \-fms-extensions 
220 \&\-fname-mangling-version-\fR\fIn\fR  \fB\-fno-operator-names 
221 \&\-fno-optional-diags  \-fpermissive 
222 \&\-frepo  \-fno-rtti  \-fsquangle  \-ftemplate-depth-\fR\fIn\fR 
223 \&\fB\-fuse-cxa-atexit  \-fvtable-thunks  \-nostdinc++ 
224 \&\-fno-default-inline  \-Wctor-dtor-privacy 
225 \&\-Wnon-virtual-dtor  \-Wreorder 
226 \&\-Weffc++  \-Wno-deprecated 
227 \&\-Wno-non-template-friend  \-Wold-style-cast 
228 \&\-Woverloaded-virtual  \-Wno-pmf-conversions 
229 \&\-Wsign-promo  \-Wsynth\fR
230 .Ip "\fILanguage Independent Options\fR" 4
231 .IX Item "Language Independent Options"
232 \&\fB\-fmessage-length=\fR\fIn\fR  
233 \&\fB\-fdiagnostics-show-location=\fR[\fBonce\fR|\fBevery-line\fR]
234 .Ip "\fIWarning Options\fR" 4
235 .IX Item "Warning Options"
236 \&\fB\-fsyntax-only  \-pedantic  \-pedantic-errors 
237 \&\-w  \-W  \-Wall  \-Waggregate-return 
238 \&\-Wcast-align  \-Wcast-qual  \-Wchar-subscripts  \-Wcomment 
239 \&\-Wconversion  \-Wdisabled-optimization \-Werror 
240 \&\-Wfloat-equal  \-Wformat  \-Wformat=2 
241 \&\-Wformat-nonliteral \-Wformat-security 
242 \&\-Wid-clash-\fR\fIlen\fR  \fB\-Wimplicit \-Wimplicit-int  
243 \&\-Wimplicit-function-declaration 
244 \&\-Werror-implicit-function-declaration 
245 \&\-Wimport  \-Winline 
246 \&\-Wlarger-than-\fR\fIlen\fR  \fB\-Wlong-long 
247 \&\-Wmain  \-Wmissing-declarations 
248 \&\-Wmissing-format-attribute  \-Wmissing-noreturn 
249 \&\-Wmultichar  \-Wno-format-extra-args \-Wno-format-y2k 
250 \&\-Wno-import  \-Wpacked  \-Wpadded 
251 \&\-Wparentheses \-Wpointer-arith  \-Wredundant-decls 
252 \&\-Wreturn-type  \-Wsequence-point  \-Wshadow 
253 \&\-Wsign-compare  \-Wswitch  \-Wsystem-headers 
254 \&\-Wtrigraphs  \-Wundef  \-Wuninitialized 
255 \&\-Wunknown-pragmas  \-Wunreachable-code 
256 \&\-Wunused  \-Wunused-function  \-Wunused-label  \-Wunused-parameter 
257 \&\-Wunused-value  \-Wunused-variable  \-Wwrite-strings\fR
258 .Ip "\fIC-only Warning Options\fR" 4
259 .IX Item "C-only Warning Options"
260 \&\fB\-Wbad-function-cast \-Wmissing-prototypes \-Wnested-externs 
261 \&\-Wstrict-prototypes \-Wtraditional\fR
262 .Ip "\fIDebugging Options\fR" 4
263 .IX Item "Debugging Options"
264 \&\fB\-a  \-ax  \-d\fR\fIletters\fR  \fB\-fdump-unnumbered \-fdump-translation-unit-\fR\fIfile\fR 
265 \&\fB\-fpretend-float \-fprofile-arcs  \-ftest-coverage 
266 \&\-g  \-g\fR\fIlevel\fR  \fB\-gcoff  \-gdwarf  \-gdwarf-1  \-gdwarf-1+  \-gdwarf-2 
267 \&\-ggdb  \-gstabs  \-gstabs+  \-gxcoff  \-gxcoff+ 
268 \&\-p  \-pg  \-print-file-name=\fR\fIlibrary\fR  \fB\-print-libgcc-file-name 
269 \&\-print-prog-name=\fR\fIprogram\fR  \fB\-print-search-dirs  \-Q 
270 \&\-save-temps  \-time\fR
271 .Ip "\fIOptimization Options\fR" 4
272 .IX Item "Optimization Options"
273 \&\fB\-falign-functions=\fR\fIn\fR  \fB\-falign-jumps=\fR\fIn\fR 
274 \&\fB\-falign-labels=\fR\fIn\fR  \fB\-falign-loops=\fR\fIn\fR  
275 \&\fB\-fbranch-probabilities  \-fcaller-saves 
276 \&\-fcse-follow-jumps  \-fcse-skip-blocks  \-fdata-sections  \-fdce 
277 \&\-fdelayed-branch  \-fdelete-null-pointer-checks 
278 \&\-fexpensive-optimizations  \-ffast-math  \-ffloat-store 
279 \&\-fforce-addr  \-fforce-mem  \-ffunction-sections  \-fgcse  
280 \&\-finline-functions  \-finline-limit=\fR\fIn\fR  \fB\-fkeep-inline-functions 
281 \&\-fkeep-static-consts  \-fmove-all-movables 
282 \&\-fno-default-inline  \-fno-defer-pop 
283 \&\-fno-function-cse  \-fno-inline  \-fno-math-errno  \-fno-peephole 
284 \&\-fomit-frame-pointer  \-foptimize-register-move 
285 \&\-foptimize-sibling-calls  \-freduce-all-givs 
286 \&\-fregmove  \-frename-registers 
287 \&\-frerun-cse-after-loop  \-frerun-loop-opt 
288 \&\-fschedule-insns  \-fschedule-insns2 
289 \&\-fsingle-precision-constant  \-fssa 
290 \&\-fstrength-reduce  \-fstrict-aliasing  \-fthread-jumps  \-ftrapv 
291 \&\-funroll-all-loops  \-funroll-loops  
292 \&\-O  \-O0  \-O1  \-O2  \-O3  \-Os\fR
293 .Ip "\fIPreprocessor Options\fR" 4
294 .IX Item "Preprocessor Options"
295 \&\fB\-$  \-A\fR\fIquestion\fR\fB=\fR\fIanswer\fR  \fB\-A-\fR\fIquestion\fR[\fB=\fR\fIanswer\fR] 
296 \&\fB\-C  \-dD  \-dI  \-dM  \-dN 
297 \&\-D\fR\fImacro\fR[\fB=\fR\fIdefn\fR]  \fB\-E  \-H 
298 \&\-idirafter\fR \fIdir\fR 
299 \&\fB\-include\fR \fIfile\fR  \fB\-imacros\fR \fIfile\fR 
300 \&\fB\-iprefix\fR \fIfile\fR  \fB\-iwithprefix\fR \fIdir\fR 
301 \&\fB\-iwithprefixbefore\fR \fIdir\fR  \fB\-isystem\fR \fIdir\fR \fB\-isystem-c++\fR \fIdir\fR 
302 \&\fB\-M  \-MM  \-MF  \-MG  \-MP  \-MQ  \-MT  \-nostdinc  \-P  \-remap 
303 \&\-trigraphs  \-undef  \-U\fR\fImacro\fR  \fB\-Wp,\fR\fIoption\fR
304 .Ip "\fIAssembler Option\fR" 4
305 .IX Item "Assembler Option"
306 \&\fB\-Wa,\fR\fIoption\fR
307 .Ip "\fILinker Options\fR" 4
308 .IX Item "Linker Options"
309 \&\fB
310 \&\fR\fIobject-file-name\fR  \fB\-l\fR\fIlibrary\fR 
311 \&\fB\-nostartfiles  \-nodefaultlibs  \-nostdlib 
312 \&\-s  \-static  \-static-libgcc  \-shared  \-shared-libgcc  \-symbolic 
313 \&\-Wl,\fR\fIoption\fR  \fB\-Xlinker\fR \fIoption\fR 
314 \&\fB\-u\fR \fIsymbol\fR
315 .Ip "\fIDirectory Options\fR" 4
316 .IX Item "Directory Options"
317 \&\fB\-B\fR\fIprefix\fR  \fB\-I\fR\fIdir\fR  \fB\-I-  \-L\fR\fIdir\fR  \fB\-specs=\fR\fIfile\fR
318 .Ip "\fITarget Options\fR" 4
319 .IX Item "Target Options"
320 \&\fB\-b\fR \fImachine\fR  \fB\-V\fR \fIversion\fR
321 .Ip "\fIMachine Dependent Options\fR" 4
322 .IX Item "Machine Dependent Options"
323 \&\fIM680x0 Options\fR
325 \&\fB\-m68000  \-m68020  \-m68020\-40  \-m68020\-60  \-m68030  \-m68040 
326 \&\-m68060  \-mcpu32 \-m5200  \-m68881  \-mbitfield  \-mc68000  \-mc68020   
327 \&\-mfpa \-mnobitfield  \-mrtd  \-mshort  \-msoft-float  \-mpcrel 
328 \&\-malign-int \-mstrict-align\fR
330 \&\fIM68hc1x Options\fR
332 \&\fB\-m6811  \-m6812  \-m68hc11  \-m68hc12 
333 \&\-mauto-incdec  \-mshort  \-msoft-reg-count=\fR\fIcount\fR
335 \&\fI\s-1VAX\s0 Options\fR
337 \&\fB\-mg  \-mgnu  \-munix\fR
339 \&\fI\s-1SPARC\s0 Options\fR
341 \&\fB\-mcpu=\fR\fIcpu type\fR 
342 \&\fB\-mtune=\fR\fIcpu type\fR 
343 \&\fB\-mcmodel=\fR\fIcode model\fR 
344 \&\fB\-m32  \-m64 
345 \&\-mapp-regs  \-mbroken-saverestore  \-mcypress 
346 \&\-mepilogue \-mfaster-structs \-mflat 
347 \&\-mfpu  \-mhard-float  \-mhard-quad-float 
348 \&\-mimpure-text  \-mlive-g0  \-mno-app-regs 
349 \&\-mno-epilogue \-mno-faster-structs \-mno-flat  \-mno-fpu 
350 \&\-mno-impure-text \-mno-stack-bias  \-mno-unaligned-doubles 
351 \&\-msoft-float  \-msoft-quad-float  \-msparclite  \-mstack-bias 
352 \&\-msupersparc  \-munaligned-doubles  \-mv8\fR
354 \&\fIConvex Options\fR
356 \&\fB\-mc1  \-mc2  \-mc32  \-mc34  \-mc38 
357 \&\-margcount  \-mnoargcount 
358 \&\-mlong32  \-mlong64 
359 \&\-mvolatile-cache  \-mvolatile-nocache\fR
361 \&\fI\s-1AMD29K\s0 Options\fR
363 \&\fB\-m29000  \-m29050  \-mbw  \-mnbw  \-mdw  \-mndw 
364 \&\-mlarge  \-mnormal  \-msmall 
365 \&\-mkernel-registers  \-mno-reuse-arg-regs 
366 \&\-mno-stack-check  \-mno-storem-bug 
367 \&\-mreuse-arg-regs  \-msoft-float  \-mstack-check 
368 \&\-mstorem-bug  \-muser-registers\fR
370 \&\fI\s-1ARM\s0 Options\fR
372 \&\fB\-mapcs-frame \-mno-apcs-frame 
373 \&\-mapcs-26 \-mapcs-32 
374 \&\-mapcs-stack-check \-mno-apcs-stack-check 
375 \&\-mapcs-float \-mno-apcs-float 
376 \&\-mapcs-reentrant \-mno-apcs-reentrant 
377 \&\-msched-prolog \-mno-sched-prolog 
378 \&\-mlittle-endian \-mbig-endian \-mwords-little-endian 
379 \&\-malignment-traps \-mno-alignment-traps 
380 \&\-msoft-float \-mhard-float \-mfpe 
381 \&\-mthumb-interwork \-mno-thumb-interwork 
382 \&\-mcpu= \-march= \-mfpe=  
383 \&\-mstructure-size-boundary= 
384 \&\-mbsd \-mxopen \-mno-symrename 
385 \&\-mabort-on-noreturn 
386 \&\-mlong-calls \-mno-long-calls 
387 \&\-mnop-fun-dllimport \-mno-nop-fun-dllimport 
388 \&\-msingle-pic-base \-mno-single-pic-base 
389 \&\-mpic-register=\fR
391 \&\fIThumb Options\fR
393 \&\fB\-mtpcs-frame \-mno-tpcs-frame 
394 \&\-mtpcs-leaf-frame \-mno-tpcs-leaf-frame 
395 \&\-mlittle-endian  \-mbig-endian 
396 \&\-mthumb-interwork \-mno-thumb-interwork 
397 \&\-mstructure-size-boundary= 
398 \&\-mnop-fun-dllimport \-mno-nop-fun-dllimport 
399 \&\-mcallee-super-interworking \-mno-callee-super-interworking 
400 \&\-mcaller-super-interworking \-mno-caller-super-interworking 
401 \&\-msingle-pic-base \-mno-single-pic-base 
402 \&\-mpic-register=\fR
404 \&\fI\s-1MN10200\s0 Options\fR
406 \&\fB\-mrelax\fR
408 \&\fI\s-1MN10300\s0 Options\fR
410 \&\fB\-mmult-bug 
411 \&\-mno-mult-bug 
412 \&\-mam33 
413 \&\-mno-am33 
414 \&\-mrelax\fR
416 \&\fIM32R/D Options\fR
418 \&\fB\-mcode-model=\fR\fImodel type\fR  \fB\-msdata=\fR\fIsdata type\fR 
419 \&\fB\-G\fR \fInum\fR
421 \&\fIM88K Options\fR
423 \&\fB\-m88000  \-m88100  \-m88110  \-mbig-pic 
424 \&\-mcheck-zero-division  \-mhandle-large-shift 
425 \&\-midentify-revision  \-mno-check-zero-division 
426 \&\-mno-ocs-debug-info  \-mno-ocs-frame-position 
427 \&\-mno-optimize-arg-area  \-mno-serialize-volatile 
428 \&\-mno-underscores  \-mocs-debug-info 
429 \&\-mocs-frame-position  \-moptimize-arg-area 
430 \&\-mserialize-volatile  \-mshort-data-\fR\fInum\fR  \fB\-msvr3 
431 \&\-msvr4  \-mtrap-large-shift  \-muse-div-instruction 
432 \&\-mversion-03.00  \-mwarn-passed-structs\fR
434 \&\fI\s-1RS/6000\s0 and PowerPC Options\fR
436 \&\fB\-mcpu=\fR\fIcpu type\fR 
437 \&\fB\-mtune=\fR\fIcpu type\fR 
438 \&\fB\-mpower  \-mno-power  \-mpower2  \-mno-power2 
439 \&\-mpowerpc  \-mpowerpc64  \-mno-powerpc 
440 \&\-mpowerpc-gpopt  \-mno-powerpc-gpopt 
441 \&\-mpowerpc-gfxopt  \-mno-powerpc-gfxopt 
442 \&\-mnew-mnemonics  \-mold-mnemonics 
443 \&\-mfull-toc   \-mminimal-toc  \-mno-fop-in-toc  \-mno-sum-in-toc 
444 \&\-m64  \-m32  \-mxl-call  \-mno-xl-call  \-mthreads  \-mpe 
445 \&\-msoft-float  \-mhard-float  \-mmultiple  \-mno-multiple 
446 \&\-mstring  \-mno-string  \-mupdate  \-mno-update 
447 \&\-mfused-madd  \-mno-fused-madd  \-mbit-align  \-mno-bit-align 
448 \&\-mstrict-align  \-mno-strict-align  \-mrelocatable 
449 \&\-mno-relocatable  \-mrelocatable-lib  \-mno-relocatable-lib 
450 \&\-mtoc  \-mno-toc \-mlittle  \-mlittle-endian  \-mbig  \-mbig-endian 
451 \&\-mcall-aix  \-mcall-sysv  \-mprototype  \-mno-prototype 
452 \&\-msim  \-mmvme  \-mads  \-myellowknife  \-memb \-msdata 
453 \&\-msdata=\fR\fIopt\fR  \fB\-mvxworks \-G\fR \fInum\fR
455 \&\fI\s-1RT\s0 Options\fR
457 \&\fB\-mcall-lib-mul  \-mfp-arg-in-fpregs  \-mfp-arg-in-gregs 
458 \&\-mfull-fp-blocks  \-mhc-struct-return  \-min-line-mul 
459 \&\-mminimum-fp-blocks  \-mnohc-struct-return\fR
461 \&\fI\s-1MIPS\s0 Options\fR
463 \&\fB\-mabicalls  \-mcpu=\fR\fIcpu type\fR
464 \&\fB\-membedded-data  \-muninit-const-in-rodata 
465 \&\-membedded-pic  \-mfp32  \-mfp64  \-mgas  \-mgp32  \-mgp64 
466 \&\-mgpopt  \-mhalf-pic  \-mhard-float  \-mint64  \-mips1 
467 \&\-mips2  \-mips3 \-mips4 \-mlong64  \-mlong32 \-mlong-calls  \-mmemcpy 
468 \&\-mmips-as  \-mmips-tfile  \-mno-abicalls 
469 \&\-mno-embedded-data  \-mno-uninit-const-in-rodata  \-mno-embedded-pic 
470 \&\-mno-gpopt  \-mno-long-calls 
471 \&\-mno-memcpy  \-mno-mips-tfile  \-mno-rnames  \-mno-stats 
472 \&\-mrnames  \-msoft-float 
473 \&\-m4650  \-msingle-float  \-mmad 
474 \&\-mstats  \-EL  \-EB  \-G\fR \fInum\fR  \fB\-nocpp 
475 \&\-mabi=32 \-mabi=n32 \-mabi=64 \-mabi=eabi 
476 \&\-mfix7000 \-mno-crt0\fR
478 \&\fIi386 Options\fR
480 \&\fB\-mcpu=\fR\fIcpu type\fR \fB\-march=\fR\fIcpu type\fR 
481 \&\fB\-mintel-syntax \-mieee-fp  \-mno-fancy-math-387 
482 \&\-mno-fp-ret-in-387  \-msoft-float  \-msvr3\-shlib 
483 \&\-mno-wide-multiply  \-mrtd  \-malign-double 
484 \&\-mreg-alloc=\fR\fIlist\fR  \fB\-mregparm=\fR\fInum\fR 
485 \&\fB\-malign-jumps=\fR\fInum\fR  \fB\-malign-loops=\fR\fInum\fR 
486 \&\fB\-malign-functions=\fR\fInum\fR \fB\-mpreferred-stack-boundary=\fR\fInum\fR 
487 \&\fB\-mthreads \-mno-align-stringops \-minline-all-stringops 
488 \&\-mpush-args \-maccumulate-outgoing-args \-m128bit-long-double 
489 \&\-m96bit-long-double\fR
491 \&\fI\s-1HPPA\s0 Options\fR
493 \&\fB\-march=\fR\fIarchitecture type\fR 
494 \&\fB\-mbig-switch  \-mdisable-fpregs  \-mdisable-indexing   
495 \&\-mfast-indirect-calls \-mgas  \-mjump-in-delay   
496 \&\-mlong-load-store  \-mno-big-switch  \-mno-disable-fpregs 
497 \&\-mno-disable-indexing  \-mno-fast-indirect-calls  \-mno-gas 
498 \&\-mno-jump-in-delay  \-mno-long-load-store   
499 \&\-mno-portable-runtime  \-mno-soft-float 
500 \&\-mno-space-regs  \-msoft-float  \-mpa-risc-1\-0   
501 \&\-mpa-risc-1\-1  \-mpa-risc-2\-0 \-mportable-runtime 
502 \&\-mschedule=\fR\fIcpu type\fR  \fB\-mspace-regs\fR
504 \&\fIIntel 960 Options\fR
506 \&\fB\-m\fR\fIcpu type\fR  \fB\-masm-compat  \-mclean-linkage 
507 \&\-mcode-align  \-mcomplex-addr  \-mleaf-procedures 
508 \&\-mic-compat  \-mic2.0\-compat  \-mic3.0\-compat 
509 \&\-mintel-asm  \-mno-clean-linkage  \-mno-code-align 
510 \&\-mno-complex-addr  \-mno-leaf-procedures 
511 \&\-mno-old-align  \-mno-strict-align  \-mno-tail-call 
512 \&\-mnumerics  \-mold-align  \-msoft-float  \-mstrict-align 
513 \&\-mtail-call\fR
515 \&\fI\s-1DEC\s0 Alpha Options\fR
517 \&\fB\-mfp-regs  \-mno-fp-regs \-mno-soft-float  \-msoft-float 
518 \&\-malpha-as \-mgas 
519 \&\-mieee  \-mieee-with-inexact  \-mieee-conformant 
520 \&\-mfp-trap-mode=\fR\fImode\fR  \fB\-mfp-rounding-mode=\fR\fImode\fR 
521 \&\fB\-mtrap-precision=\fR\fImode\fR  \fB\-mbuild-constants 
522 \&\-mcpu=\fR\fIcpu type\fR 
523 \&\fB\-mbwx \-mno-bwx \-mcix \-mno-cix \-mmax \-mno-max 
524 \&\-mmemory-latency=\fR\fItime\fR
526 \&\fIClipper Options\fR
528 \&\fB\-mc300  \-mc400\fR
530 \&\fIH8/300 Options\fR
532 \&\fB\-mrelax  \-mh \-ms \-mint32  \-malign-300\fR
534 \&\fI\s-1SH\s0 Options\fR
536 \&\fB\-m1  \-m2  \-m3  \-m3e 
537 \&\-m4\-nofpu  \-m4\-single-only  \-m4\-single  \-m4 
538 \&\-mb  \-ml  \-mdalign  \-mrelax 
539 \&\-mbigtable  \-mfmovd  \-mhitachi  \-mnomacsave 
540 \&\-misize  \-mpadstruct  \-mspace 
541 \&\-mprefergot
542 \&\-musermode\fR
544 \&\fISystem V Options\fR
546 \&\fB\-Qy  \-Qn  \-YP,\fR\fIpaths\fR  \fB\-Ym,\fR\fIdir\fR
548 \&\fI\s-1ARC\s0 Options\fR
550 \&\fB\-EB  \-EL 
551 \&\-mmangle-cpu  \-mcpu=\fR\fIcpu\fR  \fB\-mtext=\fR\fItext section\fR 
552 \&\fB\-mdata=\fR\fIdata section\fR  \fB\-mrodata=\fR\fIreadonly data section\fR
554 \&\fITMS320C3x/C4x Options\fR
556 \&\fB\-mcpu=\fR\fIcpu\fR \fB\-mbig \-msmall \-mregparm \-mmemparm 
557 \&\-mfast-fix \-mmpyi \-mbk \-mti \-mdp-isr-reload 
558 \&\-mrpts=\fR\fIcount\fR  \fB\-mrptb \-mdb \-mloop-unsigned 
559 \&\-mparallel-insns \-mparallel-mpy \-mpreserve-float\fR
561 \&\fIV850 Options\fR
563 \&\fB\-mlong-calls \-mno-long-calls \-mep \-mno-ep 
564 \&\-mprolog-function \-mno-prolog-function \-mspace 
565 \&\-mtda=\fR\fIn\fR \fB\-msda=\fR\fIn\fR \fB\-mzda=\fR\fIn\fR 
566 \&\fB\-mv850 \-mbig-switch\fR
568 \&\fI\s-1NS32K\s0 Options\fR
570 \&\fB\-m32032 \-m32332 \-m32532 \-m32081 \-m32381 \-mmult-add \-mnomult-add 
571 \&\-msoft-float \-mrtd \-mnortd \-mregparam \-mnoregparam \-msb \-mnosb 
572 \&\-mbitfield \-mnobitfield \-mhimem \-mnohimem\fR
574 \&\fI\s-1AVR\s0 Options\fR
576 \&\fB\-mmcu=\fR\fImcu\fR \fB\-msize \-minit-stack=\fR\fIn\fR \fB\-mno-interrupts 
577 \&\-mcall-prologues \-mno-tablejump \-mtiny-stack\fR
579 \&\fIMCore Options\fR
581 \&\fB\-mhardlit, \-mno-hardlit \-mdiv \-mno-div \-mrelax-immediates  
582 \&\-mno-relax-immediates \-mwide-bitfields \-mno-wide-bitfields 
583 \&\-m4byte-functions \-mno-4byte-functions \-mcallgraph-data 
584 \&\-mno-callgraph-data \-mslow-bytes \-mno-slow-bytes \-mno-lsim 
585 \&\-mlittle-endian \-mbig-endian \-m210 \-m340 \-mstack-increment\fR
586 .Ip "\fICode Generation Options\fR" 4
587 .IX Item "Code Generation Options"
588 \&\fB\-fcall-saved-\fR\fIreg\fR  \fB\-fcall-used-\fR\fIreg\fR 
589 \&\fB\-fexceptions  \-funwind-tables  \-ffixed-\fR\fIreg\fR 
590 \&\fB\-finhibit-size-directive  \-finstrument-functions 
591 \&\-fcheck-memory-usage  \-fprefix-function-name 
592 \&\-fno-common  \-fno-ident  \-fno-gnu-linker 
593 \&\-fpcc-struct-return  \-fpic  \-fPIC 
594 \&\-freg-struct-return  \-fshared-data  \-fshort-enums 
595 \&\-fshort-double  \-fvolatile  \-fvolatile-global \-fvolatile-static 
596 \&\-fverbose-asm  \-fpack-struct  \-fstack-check 
597 \&\-fstack-limit-register=\fR\fIreg\fR  \fB\-fstack-limit-symbol=\fR\fIsym\fR 
598 \&\fB\-fargument-alias  \-fargument-noalias 
599 \&\-fargument-noalias-global 
600 \&\-fleading-underscore\fR
601 .Sh "Options Controlling the Kind of Output"
602 .IX Subsection "Options Controlling the Kind of Output"
603 Compilation can involve up to four stages: preprocessing, compilation
604 proper, assembly and linking, always in that order.  The first three
605 stages apply to an individual source file, and end by producing an
606 object file; linking combines all the object files (those newly
607 compiled, and those specified as input) into an executable file.
609 For any given input file, the file name suffix determines what kind of
610 compilation is done:
611 .Ip "\fIfile\fR\fB.c\fR" 4
612 .IX Item "file.c"
613 C source code which must be preprocessed.
614 .Ip "\fIfile\fR\fB.i\fR" 4
615 .IX Item "file.i"
616 C source code which should not be preprocessed.
617 .Ip "\fIfile\fR\fB.ii\fR" 4
618 .IX Item "file.ii"
619 \&\*(C+ source code which should not be preprocessed.
620 .Ip "\fIfile\fR\fB.m\fR" 4
621 .IX Item "file.m"
622 Objective-C source code.  Note that you must link with the library
623 \&\fIlibobjc.a\fR to make an Objective-C program work.
624 .Ip "\fIfile\fR\fB.mi\fR" 4
625 .IX Item "file.mi"
626 Objective-C source code which should not be preprocessed.
627 .Ip "\fIfile\fR\fB.h\fR" 4
628 .IX Item "file.h"
629 C header file (not to be compiled or linked).
630 .Ip "\fIfile\fR\fB.cc\fR" 4
631 .IX Item "file.cc"
632 .PD 0
633 .Ip "\fIfile\fR\fB.cp\fR" 4
634 .IX Item "file.cp"
635 .Ip "\fIfile\fR\fB.cxx\fR" 4
636 .IX Item "file.cxx"
637 .Ip "\fIfile\fR\fB.cpp\fR" 4
638 .IX Item "file.cpp"
639 .Ip "\fIfile\fR\fB.c++\fR" 4
640 .IX Item "file.c++"
641 .Ip "\fIfile\fR\fB.C\fR" 4
642 .IX Item "file.C"
644 \&\*(C+ source code which must be preprocessed.  Note that in \fB.cxx\fR,
645 the last two letters must both be literally \fBx\fR.  Likewise,
646 \&\fB.C\fR refers to a literal capital C.
647 .Ip "\fIfile\fR\fB.f\fR" 4
648 .IX Item "file.f"
649 .PD 0
650 .Ip "\fIfile\fR\fB.for\fR" 4
651 .IX Item "file.for"
652 .Ip "\fIfile\fR\fB.FOR\fR" 4
653 .IX Item "file.FOR"
655 Fortran source code which should not be preprocessed.
656 .Ip "\fIfile\fR\fB.F\fR" 4
657 .IX Item "file.F"
658 .PD 0
659 .Ip "\fIfile\fR\fB.fpp\fR" 4
660 .IX Item "file.fpp"
661 .Ip "\fIfile\fR\fB.FPP\fR" 4
662 .IX Item "file.FPP"
664 Fortran source code which must be preprocessed (with the traditional
665 preprocessor).
666 .Ip "\fIfile\fR\fB.r\fR" 4
667 .IX Item "file.r"
668 Fortran source code which must be preprocessed with a \s-1RATFOR\s0
669 preprocessor (not included with \s-1GCC\s0).
670 .Ip "\fIfile\fR\fB.ch\fR" 4
671 .IX Item "file.ch"
672 .PD 0
673 .Ip "\fIfile\fR\fB.chi\fR" 4
674 .IX Item "file.chi"
676 \&\s-1CHILL\s0 source code (preprocessed with the traditional preprocessor).
677 .Ip "\fIfile\fR\fB.s\fR" 4
678 .IX Item "file.s"
679 Assembler code.
680 .Ip "\fIfile\fR\fB.S\fR" 4
681 .IX Item "file.S"
682 Assembler code which must be preprocessed.
683 .Ip "\fIother\fR" 4
684 .IX Item "other"
685 An object file to be fed straight into linking.
686 Any file name with no recognized suffix is treated this way.
688 You can specify the input language explicitly with the \fB\-x\fR option:
689 .Ip "\fB\-x\fR \fIlanguage\fR" 4
690 .IX Item "-x language"
691 Specify explicitly the \fIlanguage\fR for the following input files
692 (rather than letting the compiler choose a default based on the file
693 name suffix).  This option applies to all following input files until
694 the next \fB\-x\fR option.  Possible values for \fIlanguage\fR are:
696 .Vb 6
697 \&        c  c-header  cpp-output
698 \&        c++  c++-cpp-output
699 \&        objective-c  objc-cpp-output
700 \&        assembler  assembler-with-cpp
701 \&        f77  f77-cpp-input  ratfor
702 \&        java  chill
704 .Ip "\fB\-x none\fR" 4
705 .IX Item "-x none"
706 Turn off any specification of a language, so that subsequent files are
707 handled according to their file name suffixes (as they are if \fB\-x\fR
708 has not been used at all).
709 .Ip "\fB\-pass-exit-codes\fR" 4
710 .IX Item "-pass-exit-codes"
711 Normally the \fBgcc\fR program will exit with the code of 1 if any
712 phase of the compiler returns a non-success return code.  If you specify
713 \&\fB\-pass-exit-codes\fR, the \fBgcc\fR program will instead return with
714 numerically highest error produced by any phase that returned an error
715 indication.
717 If you only want some of the stages of compilation, you can use
718 \&\fB\-x\fR (or filename suffixes) to tell \fBgcc\fR where to start, and
719 one of the options \fB\-c\fR, \fB\-S\fR, or \fB\-E\fR to say where
720 \&\fBgcc\fR is to stop.  Note that some combinations (for example,
721 \&\fB\-x cpp-output \-E\fR) instruct \fBgcc\fR to do nothing at all.
722 .Ip "\fB\-c\fR" 4
723 .IX Item "-c"
724 Compile or assemble the source files, but do not link.  The linking
725 stage simply is not done.  The ultimate output is in the form of an
726 object file for each source file.
728 By default, the object file name for a source file is made by replacing
729 the suffix \fB.c\fR, \fB.i\fR, \fB.s\fR, etc., with \fB.o\fR.
731 Unrecognized input files, not requiring compilation or assembly, are
732 ignored.
733 .Ip "\fB\-S\fR" 4
734 .IX Item "-S"
735 Stop after the stage of compilation proper; do not assemble.  The output
736 is in the form of an assembler code file for each non-assembler input
737 file specified.
739 By default, the assembler file name for a source file is made by
740 replacing the suffix \fB.c\fR, \fB.i\fR, etc., with \fB.s\fR.
742 Input files that don't require compilation are ignored.
743 .Ip "\fB\-E\fR" 4
744 .IX Item "-E"
745 Stop after the preprocessing stage; do not run the compiler proper.  The
746 output is in the form of preprocessed source code, which is sent to the
747 standard output.
749 Input files which don't require preprocessing are ignored.
750 .Ip "\fB\-o\fR \fIfile\fR" 4
751 .IX Item "-o file"
752 Place output in file \fIfile\fR.  This applies regardless to whatever
753 sort of output is being produced, whether it be an executable file,
754 an object file, an assembler file or preprocessed C code.
756 Since only one output file can be specified, it does not make sense to
757 use \fB\-o\fR when compiling more than one input file, unless you are
758 producing an executable file as output.
760 If \fB\-o\fR is not specified, the default is to put an executable file
761 in \fIa.out\fR, the object file for \fI\fIsource\fI.\fIsuffix\fI\fR in
762 \&\fI\fIsource\fI.o\fR, its assembler file in \fI\fIsource\fI.s\fR, and
763 all preprocessed C source on standard output.
764 .Ip "\fB\-v\fR" 4
765 .IX Item "-v"
766 Print (on standard error output) the commands executed to run the stages
767 of compilation.  Also print the version number of the compiler driver
768 program and of the preprocessor and the compiler proper.
769 .Ip "\fB\-pipe\fR" 4
770 .IX Item "-pipe"
771 Use pipes rather than temporary files for communication between the
772 various stages of compilation.  This fails to work on some systems where
773 the assembler is unable to read from a pipe; but the \s-1GNU\s0 assembler has
774 no trouble.
775 .Ip "\fB\*(--help\fR" 4
776 .IX Item "help"
777 Print (on the standard output) a description of the command line options
778 understood by \fBgcc\fR.  If the \fB\-v\fR option is also specified
779 then \fB\*(--help\fR will also be passed on to the various processes
780 invoked by \fBgcc\fR, so that they can display the command line options
781 they accept.  If the \fB\-W\fR option is also specified then command
782 line options which have no documentation associated with them will also
783 be displayed.
784 .Ip "\fB\*(--target-help\fR" 4
785 .IX Item "target-help"
786 Print (on the standard output) a description of target specific command
787 line options for each tool.
788 .Sh "Compiling \*(C+ Programs"
789 .IX Subsection "Compiling  Programs"
790 \&\*(C+ source files conventionally use one of the suffixes \fB.C\fR,
791 \&\fB.cc\fR, \fB.cpp\fR, \fB.c++\fR, \fB.cp\fR, or \fB.cxx\fR;
792 preprocessed \*(C+ files use the suffix \fB.ii\fR.  \s-1GCC\s0 recognizes
793 files with these names and compiles them as \*(C+ programs even if you
794 call the compiler the same way as for compiling C programs (usually with
795 the name \fBgcc\fR).
797 However, \*(C+ programs often require class libraries as well as a
798 compiler that understands the \*(C+ language\-\-\-and under some
799 circumstances, you might want to compile programs from standard input,
800 or otherwise without a suffix that flags them as \*(C+ programs.
801 \&\fBg++\fR is a program that calls \s-1GCC\s0 with the default language
802 set to \*(C+, and automatically specifies linking against the \*(C+
803 library.  On many systems, \fBg++\fR is also
804 installed with the name \fBc++\fR.
806 When you compile \*(C+ programs, you may specify many of the same
807 command-line options that you use for compiling programs in any
808 language; or command-line options meaningful for C and related
809 languages; or options that are meaningful only for \*(C+ programs.
810 .Sh "Options Controlling C Dialect"
811 .IX Subsection "Options Controlling C Dialect"
812 The following options control the dialect of C (or languages derived
813 from C, such as \*(C+ and Objective C) that the compiler accepts:
814 .Ip "\fB\-ansi\fR" 4
815 .IX Item "-ansi"
816 In C mode, support all \s-1ISO\s0 C89 programs.  In \*(C+ mode,
817 remove \s-1GNU\s0 extensions that conflict with \s-1ISO\s0 \*(C+.
819 This turns off certain features of \s-1GCC\s0 that are incompatible with \s-1ISO\s0
820 C (when compiling C code), or of standard \*(C+ (when compiling \*(C+ code),
821 such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, and
822 predefined macros such as \f(CW\*(C`unix\*(C'\fR and \f(CW\*(C`vax\*(C'\fR that identify the
823 type of system you are using.  It also enables the undesirable and
824 rarely used \s-1ISO\s0 trigraph feature.  For the C compiler, 
825 it disables recognition of \*(C+ style \fB//\fR comments as well as
826 the \f(CW\*(C`inline\*(C'\fR keyword.
828 The alternate keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_extension_\|_\*(C'\fR,
829 \&\f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR continue to work despite
830 \&\fB\-ansi\fR.  You would not want to use them in an \s-1ISO\s0 C program, of
831 course, but it is useful to put them in header files that might be included
832 in compilations done with \fB\-ansi\fR.  Alternate predefined macros
833 such as \f(CW\*(C`_\|_unix_\|_\*(C'\fR and \f(CW\*(C`_\|_vax_\|_\*(C'\fR are also available, with or
834 without \fB\-ansi\fR.
836 The \fB\-ansi\fR option does not cause non-ISO programs to be
837 rejected gratuitously.  For that, \fB\-pedantic\fR is required in
838 addition to \fB\-ansi\fR.  
840 The macro \f(CW\*(C`_\|_STRICT_ANSI_\|_\*(C'\fR is predefined when the \fB\-ansi\fR
841 option is used.  Some header files may notice this macro and refrain
842 from declaring certain functions or defining certain macros that the
843 \&\s-1ISO\s0 standard doesn't call for; this is to avoid interfering with any
844 programs that might use these names for other things.
846 Functions which would normally be builtin but do not have semantics
847 defined by \s-1ISO\s0 C (such as \f(CW\*(C`alloca\*(C'\fR and \f(CW\*(C`ffs\*(C'\fR) are not builtin
848 functions with \fB\-ansi\fR is used.  
849 .Ip "\fB\-std=\fR" 4
850 .IX Item "-std="
851 Determine the language standard.  A value for this option must be provided;
852 possible values are 
853 .RS 4
854 .Ip "\fBiso9899:1990\fR" 4
855 .IX Item "iso9899:1990"
856 Same as \fB\-ansi\fR
857 .Ip "\fBiso9899:199409\fR" 4
858 .IX Item "iso9899:199409"
859 \&\s-1ISO\s0 C as modified in amend. 1
860 .Ip "\fBiso9899:1999\fR" 4
861 .IX Item "iso9899:1999"
862 \&\s-1ISO\s0 C99.  Note that this standard is not yet fully supported; see
863 <\fBhttp://gcc.gnu.org/c99status.html\fR> for more information.
864 .Ip "\fBc89\fR" 4
865 .IX Item "c89"
866 same as \fB\-std=iso9899:1990\fR
867 .Ip "\fBc99\fR" 4
868 .IX Item "c99"
869 same as \fB\-std=iso9899:1999\fR
870 .Ip "\fBgnu89\fR" 4
871 .IX Item "gnu89"
872 default, iso9899:1990 + gnu extensions
873 .Ip "\fBgnu99\fR" 4
874 .IX Item "gnu99"
875 iso9899:1999 + gnu extensions
876 .Ip "\fBiso9899:199x\fR" 4
877 .IX Item "iso9899:199x"
878 same as \fB\-std=iso9899:1999\fR, deprecated
879 .Ip "\fBc9x\fR" 4
880 .IX Item "c9x"
881 same as \fB\-std=iso9899:1999\fR, deprecated
882 .Ip "\fBgnu9x\fR" 4
883 .IX Item "gnu9x"
884 same as \fB\-std=gnu99\fR, deprecated
886 .RS 4
888 Even when this option is not specified, you can still use some of the
889 features of newer standards in so far as they do not conflict with
890 previous C standards.  For example, you may use \f(CW\*(C`_\|_restrict_\|_\*(C'\fR even
891 when \fB\-std=c99\fR is not specified.
893 The \fB\-std\fR options specifying some version of \s-1ISO\s0 C have the same
894 effects as \fB\-ansi\fR, except that features that were not in \s-1ISO\s0 C89
895 but are in the specified version (for example, \fB//\fR comments and
896 the \f(CW\*(C`inline\*(C'\fR keyword in \s-1ISO\s0 C99) are not disabled.
898 .Ip "\fB\-fno-asm\fR" 4
899 .IX Item "-fno-asm"
900 Do not recognize \f(CW\*(C`asm\*(C'\fR, \f(CW\*(C`inline\*(C'\fR or \f(CW\*(C`typeof\*(C'\fR as a
901 keyword, so that code can use these words as identifiers.  You can use
902 the keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR
903 instead.  \fB\-ansi\fR implies \fB\-fno-asm\fR.
905 In \*(C+, this switch only affects the \f(CW\*(C`typeof\*(C'\fR keyword, since
906 \&\f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`inline\*(C'\fR are standard keywords.  You may want to
907 use the \fB\-fno-gnu-keywords\fR flag instead, which has the same
908 effect.  In C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this
909 switch only affects the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, since
910 \&\f(CW\*(C`inline\*(C'\fR is a standard keyword in \s-1ISO\s0 C99.
911 .Ip "\fB\-fno-builtin\fR" 4
912 .IX Item "-fno-builtin"
913 Don't recognize builtin functions that do not begin with
914 \&\fB_\|_builtin_\fR as prefix.  
916 \&\s-1GCC\s0 normally generates special code to handle certain builtin functions
917 more efficiently; for instance, calls to \f(CW\*(C`alloca\*(C'\fR may become single
918 instructions that adjust the stack directly, and calls to \f(CW\*(C`memcpy\*(C'\fR
919 may become inline copy loops.  The resulting code is often both smaller
920 and faster, but since the function calls no longer appear as such, you
921 cannot set a breakpoint on those calls, nor can you change the behavior
922 of the functions by linking with a different library.
923 .Ip "\fB\-fhosted\fR" 4
924 .IX Item "-fhosted"
925 Assert that compilation takes place in a hosted environment.  This implies
926 \&\fB\-fbuiltin\fR.  A hosted environment is one in which the
927 entire standard library is available, and in which \f(CW\*(C`main\*(C'\fR has a return
928 type of \f(CW\*(C`int\*(C'\fR.  Examples are nearly everything except a kernel.
929 This is equivalent to \fB\-fno-freestanding\fR.
930 .Ip "\fB\-ffreestanding\fR" 4
931 .IX Item "-ffreestanding"
932 Assert that compilation takes place in a freestanding environment.  This
933 implies \fB\-fno-builtin\fR.  A freestanding environment
934 is one in which the standard library may not exist, and program startup may
935 not necessarily be at \f(CW\*(C`main\*(C'\fR.  The most obvious example is an \s-1OS\s0 kernel.
936 This is equivalent to \fB\-fno-hosted\fR.
937 .Ip "\fB\-trigraphs\fR" 4
938 .IX Item "-trigraphs"
939 Support \s-1ISO\s0 C trigraphs.  You don't want to know about this
940 brain-damage.  The \fB\-ansi\fR option (and \fB\-std\fR options for
941 strict \s-1ISO\s0 C conformance) implies \fB\-trigraphs\fR.
942 .Ip "\fB\-traditional\fR" 4
943 .IX Item "-traditional"
944 Attempt to support some aspects of traditional C compilers.
945 Specifically:
946 .RS 4
947 .Ip "\(bu" 4
948 All \f(CW\*(C`extern\*(C'\fR declarations take effect globally even if they
949 are written inside of a function definition.  This includes implicit
950 declarations of functions.
951 .Ip "\(bu" 4
952 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
953 and \f(CW\*(C`volatile\*(C'\fR are not recognized.  (You can still use the
954 alternative keywords such as \f(CW\*(C`_\|_typeof_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR, and
955 so on.)
956 .Ip "\(bu" 4
957 Comparisons between pointers and integers are always allowed.
958 .Ip "\(bu" 4
959 Integer types \f(CW\*(C`unsigned short\*(C'\fR and \f(CW\*(C`unsigned char\*(C'\fR promote
960 to \f(CW\*(C`unsigned int\*(C'\fR.
961 .Ip "\(bu" 4
962 Out-of-range floating point literals are not an error.
963 .Ip "\(bu" 4
964 Certain constructs which \s-1ISO\s0 regards as a single invalid preprocessing
965 number, such as \fB0xe-0xd\fR, are treated as expressions instead.
966 .Ip "\(bu" 4
967 String ``constants'' are not necessarily constant; they are stored in
968 writable space, and identical looking constants are allocated
969 separately.  (This is the same as the effect of
970 \&\fB\-fwritable-strings\fR.)
971 .Ip "\(bu" 4
972 All automatic variables not declared \f(CW\*(C`register\*(C'\fR are preserved by
973 \&\f(CW\*(C`longjmp\*(C'\fR.  Ordinarily, \s-1GNU\s0 C follows \s-1ISO\s0 C: automatic variables
974 not declared \f(CW\*(C`volatile\*(C'\fR may be clobbered.
975 .Ip "\(bu" 4
976 The character escape sequences \fB\ex\fR and \fB\ea\fR evaluate as the
977 literal characters \fBx\fR and \fBa\fR respectively.  Without
978 \&\fB\-traditional\fR, \fB\ex\fR is a prefix for the hexadecimal
979 representation of a character, and \fB\ea\fR produces a bell.
981 .RS 4
983 You may wish to use \fB\-fno-builtin\fR as well as \fB\-traditional\fR
984 if your program uses names that are normally \s-1GNU\s0 C builtin functions for
985 other purposes of its own.
987 You cannot use \fB\-traditional\fR if you include any header files that
988 rely on \s-1ISO\s0 C features.  Some vendors are starting to ship systems with
989 \&\s-1ISO\s0 C header files and you cannot use \fB\-traditional\fR on such
990 systems to compile files that include any system headers.
992 The \fB\-traditional\fR option also enables \fB\-traditional-cpp\fR,
993 which is described next.
995 .Ip "\fB\-traditional-cpp\fR" 4
996 .IX Item "-traditional-cpp"
997 Attempt to support some aspects of traditional C preprocessors.
998 Specifically:
999 .RS 4
1000 .Ip "\(bu" 4
1001 Comments convert to nothing at all, rather than to a space.  This allows
1002 traditional token concatenation.
1003 .Ip "\(bu" 4
1004 In a preprocessing directive, the \fB#\fR symbol must appear as the first
1005 character of a line.
1006 .Ip "\(bu" 4
1007 Macro arguments are recognized within string constants in a macro
1008 definition (and their values are stringified, though without additional
1009 quote marks, when they appear in such a context).  The preprocessor
1010 always considers a string constant to end at a newline.
1011 .Ip "\(bu" 4
1012 The predefined macro \f(CW\*(C`_\|_STDC_\|_\*(C'\fR is not defined when you use
1013 \&\fB\-traditional\fR, but \f(CW\*(C`_\|_GNUC_\|_\*(C'\fR is (since the \s-1GNU\s0 extensions
1014 which \f(CW\*(C`_\|_GNUC_\|_\*(C'\fR indicates are not affected by
1015 \&\fB\-traditional\fR).  If you need to write header files that work
1016 differently depending on whether \fB\-traditional\fR is in use, by
1017 testing both of these predefined macros you can distinguish four
1018 situations: \s-1GNU\s0 C, traditional \s-1GNU\s0 C, other \s-1ISO\s0 C compilers, and other
1019 old C compilers.  The predefined macro \f(CW\*(C`_\|_STDC_VERSION_\|_\*(C'\fR is also
1020 not defined when you use \fB\-traditional\fR.  
1021 .Ip "\(bu" 4
1022 The preprocessor considers a string constant to end at a newline (unless
1023 the newline is escaped with \fB\e\fR).  (Without \fB\-traditional\fR,
1024 string constants can contain the newline character as typed.)
1026 .RS 4
1028 .Ip "\fB\-fcond-mismatch\fR" 4
1029 .IX Item "-fcond-mismatch"
1030 Allow conditional expressions with mismatched types in the second and
1031 third arguments.  The value of such an expression is void.  This option
1032 is not supported for \*(C+.
1033 .Ip "\fB\-funsigned-char\fR" 4
1034 .IX Item "-funsigned-char"
1035 Let the type \f(CW\*(C`char\*(C'\fR be unsigned, like \f(CW\*(C`unsigned char\*(C'\fR.
1037 Each kind of machine has a default for what \f(CW\*(C`char\*(C'\fR should
1038 be.  It is either like \f(CW\*(C`unsigned char\*(C'\fR by default or like
1039 \&\f(CW\*(C`signed char\*(C'\fR by default.
1041 Ideally, a portable program should always use \f(CW\*(C`signed char\*(C'\fR or
1042 \&\f(CW\*(C`unsigned char\*(C'\fR when it depends on the signedness of an object.
1043 But many programs have been written to use plain \f(CW\*(C`char\*(C'\fR and
1044 expect it to be signed, or expect it to be unsigned, depending on the
1045 machines they were written for.  This option, and its inverse, let you
1046 make such a program work with the opposite default.
1048 The type \f(CW\*(C`char\*(C'\fR is always a distinct type from each of
1049 \&\f(CW\*(C`signed char\*(C'\fR or \f(CW\*(C`unsigned char\*(C'\fR, even though its behavior
1050 is always just like one of those two.
1051 .Ip "\fB\-fsigned-char\fR" 4
1052 .IX Item "-fsigned-char"
1053 Let the type \f(CW\*(C`char\*(C'\fR be signed, like \f(CW\*(C`signed char\*(C'\fR.
1055 Note that this is equivalent to \fB\-fno-unsigned-char\fR, which is
1056 the negative form of \fB\-funsigned-char\fR.  Likewise, the option
1057 \&\fB\-fno-signed-char\fR is equivalent to \fB\-funsigned-char\fR.
1059 You may wish to use \fB\-fno-builtin\fR as well as \fB\-traditional\fR
1060 if your program uses names that are normally \s-1GNU\s0 C builtin functions for
1061 other purposes of its own.
1063 You cannot use \fB\-traditional\fR if you include any header files that
1064 rely on \s-1ISO\s0 C features.  Some vendors are starting to ship systems with
1065 \&\s-1ISO\s0 C header files and you cannot use \fB\-traditional\fR on such
1066 systems to compile files that include any system headers.
1067 .Ip "\fB\-fsigned-bitfields\fR" 4
1068 .IX Item "-fsigned-bitfields"
1069 .PD 0
1070 .Ip "\fB\-funsigned-bitfields\fR" 4
1071 .IX Item "-funsigned-bitfields"
1072 .Ip "\fB\-fno-signed-bitfields\fR" 4
1073 .IX Item "-fno-signed-bitfields"
1074 .Ip "\fB\-fno-unsigned-bitfields\fR" 4
1075 .IX Item "-fno-unsigned-bitfields"
1077 These options control whether a bitfield is signed or unsigned, when the
1078 declaration does not use either \f(CW\*(C`signed\*(C'\fR or \f(CW\*(C`unsigned\*(C'\fR.  By
1079 default, such a bitfield is signed, because this is consistent: the
1080 basic integer types such as \f(CW\*(C`int\*(C'\fR are signed types.
1082 However, when \fB\-traditional\fR is used, bitfields are all unsigned
1083 no matter what.
1084 .Ip "\fB\-fwritable-strings\fR" 4
1085 .IX Item "-fwritable-strings"
1086 Store string constants in the writable data segment and don't uniquize
1087 them.  This is for compatibility with old programs which assume they can
1088 write into string constants.  The option \fB\-traditional\fR also has
1089 this effect.
1091 Writing into string constants is a very bad idea; ``constants'' should
1092 be constant.
1093 .Ip "\fB\-fallow-single-precision\fR" 4
1094 .IX Item "-fallow-single-precision"
1095 Do not promote single precision math operations to double precision,
1096 even when compiling with \fB\-traditional\fR.
1098 Traditional K&R C promotes all floating point operations to double
1099 precision, regardless of the sizes of the operands.   On the
1100 architecture for which you are compiling, single precision may be faster
1101 than double precision.   If you must use \fB\-traditional\fR, but want
1102 to use single precision operations when the operands are single
1103 precision, use this option.   This option has no effect when compiling
1104 with \s-1ISO\s0 or \s-1GNU\s0 C conventions (the default).
1105 .Ip "\fB\-fshort-wchar\fR" 4
1106 .IX Item "-fshort-wchar"
1107 Override the underlying type for \fBwchar_t\fR to be \fBshort
1108 unsigned int\fR instead of the default for the target.  This option is
1109 useful for building programs to run under \s-1WINE\s0.
1110 .Sh "Options Controlling \*(C+ Dialect"
1111 .IX Subsection "Options Controlling  Dialect"
1112 This section describes the command-line options that are only meaningful
1113 for \*(C+ programs; but you can also use most of the \s-1GNU\s0 compiler options
1114 regardless of what language your program is in.  For example, you
1115 might compile a file \f(CW\*(C`firstClass.C\*(C'\fR like this:
1117 .Vb 1
1118 \&        g++ -g -frepo -O -c firstClass.C
1120 In this example, only \fB\-frepo\fR is an option meant
1121 only for \*(C+ programs; you can use the other options with any
1122 language supported by \s-1GCC\s0.
1124 Here is a list of options that are \fIonly\fR for compiling \*(C+ programs:
1125 .Ip "\fB\-fno-access-control\fR" 4
1126 .IX Item "-fno-access-control"
1127 Turn off all access checking.  This switch is mainly useful for working
1128 around bugs in the access control code.
1129 .Ip "\fB\-fcheck-new\fR" 4
1130 .IX Item "-fcheck-new"
1131 Check that the pointer returned by \f(CW\*(C`operator new\*(C'\fR is non-null
1132 before attempting to modify the storage allocated.  The current Working
1133 Paper requires that \f(CW\*(C`operator new\*(C'\fR never return a null pointer, so
1134 this check is normally unnecessary.
1136 An alternative to using this option is to specify that your
1137 \&\f(CW\*(C`operator new\*(C'\fR does not throw any exceptions; if you declare it
1138 \&\fB\f(BIthrow()\fB\fR, g++ will check the return value.  See also \fBnew
1139 (nothrow)\fR.
1140 .Ip "\fB\-fconserve-space\fR" 4
1141 .IX Item "-fconserve-space"
1142 Put uninitialized or runtime-initialized global variables into the
1143 common segment, as C does.  This saves space in the executable at the
1144 cost of not diagnosing duplicate definitions.  If you compile with this
1145 flag and your program mysteriously crashes after \f(CW\*(C`main()\*(C'\fR has
1146 completed, you may have an object that is being destroyed twice because
1147 two definitions were merged.
1149 This option is no longer useful on most targets, now that support has
1150 been added for putting variables into \s-1BSS\s0 without making them common.
1151 .Ip "\fB\-fdollars-in-identifiers\fR" 4
1152 .IX Item "-fdollars-in-identifiers"
1153 Accept \fB$\fR in identifiers.  You can also explicitly prohibit use of
1154 \&\fB$\fR with the option \fB\-fno-dollars-in-identifiers\fR.  (\s-1GNU\s0 C allows
1155 \&\fB$\fR by default on most target systems, but there are a few exceptions.)
1156 Traditional C allowed the character \fB$\fR to form part of
1157 identifiers.  However, \s-1ISO\s0 C and \*(C+ forbid \fB$\fR in identifiers.
1158 .Ip "\fB\-fno-elide-constructors\fR" 4
1159 .IX Item "-fno-elide-constructors"
1160 The \*(C+ standard allows an implementation to omit creating a temporary
1161 which is only used to initialize another object of the same type.
1162 Specifying this option disables that optimization, and forces g++ to
1163 call the copy constructor in all cases.
1164 .Ip "\fB\-fno-enforce-eh-specs\fR" 4
1165 .IX Item "-fno-enforce-eh-specs"
1166 Don't check for violation of exception specifications at runtime.  This
1167 option violates the \*(C+ standard, but may be useful for reducing code
1168 size in production builds, much like defining \fB\s-1NDEBUG\s0\fR.  The compiler
1169 will still optimize based on the exception specifications.
1170 .Ip "\fB\-fexternal-templates\fR" 4
1171 .IX Item "-fexternal-templates"
1172 Cause template instantiations to obey \fB#pragma interface\fR and
1173 \&\fBimplementation\fR; template instances are emitted or not according
1174 to the location of the template definition.  
1176 This option is deprecated.
1177 .Ip "\fB\-falt-external-templates\fR" 4
1178 .IX Item "-falt-external-templates"
1179 Similar to \-fexternal-templates, but template instances are emitted or
1180 not according to the place where they are first instantiated.
1182 This option is deprecated.
1183 .Ip "\fB\-ffor-scope\fR" 4
1184 .IX Item "-ffor-scope"
1185 .PD 0
1186 .Ip "\fB\-fno-for-scope\fR" 4
1187 .IX Item "-fno-for-scope"
1189 If \-ffor-scope is specified, the scope of variables declared in
1190 a \fIfor-init-statement\fR is limited to the \fBfor\fR loop itself,
1191 as specified by the \*(C+ standard.
1192 If \-fno-for-scope is specified, the scope of variables declared in
1193 a \fIfor-init-statement\fR extends to the end of the enclosing scope,
1194 as was the case in old versions of gcc, and other (traditional)
1195 implementations of \*(C+.
1197 The default if neither flag is given to follow the standard,
1198 but to allow and give a warning for old-style code that would
1199 otherwise be invalid, or have different behavior.
1200 .Ip "\fB\-fno-gnu-keywords\fR" 4
1201 .IX Item "-fno-gnu-keywords"
1202 Do not recognize \f(CW\*(C`typeof\*(C'\fR as a keyword, so that code can use this
1203 word as an identifier. You can use the keyword \f(CW\*(C`_\|_typeof_\|_\*(C'\fR instead.  
1204 \&\fB\-ansi\fR implies \fB\-fno-gnu-keywords\fR.
1205 .Ip "\fB\-fhonor-std\fR" 4
1206 .IX Item "-fhonor-std"
1207 Treat the \f(CW\*(C`namespace std\*(C'\fR as a namespace, instead of ignoring
1208 it. For compatibility with earlier versions of g++, the compiler will,
1209 by default, ignore \f(CW\*(C`namespace\-declarations\*(C'\fR,
1210 \&\f(CW\*(C`using\-declarations\*(C'\fR, \f(CW\*(C`using\-directives\*(C'\fR, and
1211 \&\f(CW\*(C`namespace\-names\*(C'\fR, if they involve \f(CW\*(C`std\*(C'\fR.
1212 .Ip "\fB\-fhuge-objects\fR" 4
1213 .IX Item "-fhuge-objects"
1214 Support virtual function calls for objects that exceed the size
1215 representable by a \fBshort int\fR.  Users should not use this flag by
1216 default; if you need to use it, the compiler will tell you so.
1218 This flag is not useful when compiling with \-fvtable-thunks.
1220 Like all options that change the \s-1ABI\s0, all \*(C+ code, \fIincluding
1221 libgcc\fR must be built with the same setting of this option.
1222 .Ip "\fB\-fno-implicit-templates\fR" 4
1223 .IX Item "-fno-implicit-templates"
1224 Never emit code for non-inline templates which are instantiated
1225 implicitly (i.e. by use); only emit code for explicit instantiations.
1226 .Ip "\fB\-fno-implicit-inline-templates\fR" 4
1227 .IX Item "-fno-implicit-inline-templates"
1228 Don't emit code for implicit instantiations of inline templates, either.
1229 The default is to handle inlines differently so that compiles with and
1230 without optimization will need the same set of explicit instantiations.
1231 .Ip "\fB\-fno-implement-inlines\fR" 4
1232 .IX Item "-fno-implement-inlines"
1233 To save space, do not emit out-of-line copies of inline functions
1234 controlled by \fB#pragma implementation\fR.  This will cause linker
1235 errors if these functions are not inlined everywhere they are called.
1236 .Ip "\fB\-fms-extensions\fR" 4
1237 .IX Item "-fms-extensions"
1238 Disable pedantic warnings about constructs used in \s-1MFC\s0, such as implicit
1239 int and getting a pointer to member function via non-standard syntax.
1240 .Ip "\fB\-fname-mangling-version-\fR\fIn\fR" 4
1241 .IX Item "-fname-mangling-version-n"
1242 Control the way in which names are mangled.  Version 0 is compatible
1243 with versions of g++ before 2.8.  Version 1 is the default.  Version 1
1244 will allow correct mangling of function templates.  For example, 
1245 version 0 mangling does not mangle foo<int, double> and foo<int, char>
1246 given this declaration:
1248 .Vb 1
1249 \&        template <class T, class U> void foo(T t);
1251 Like all options that change the \s-1ABI\s0, all \*(C+ code, \fIincluding
1252 libgcc\fR must be built with the same setting of this option.
1253 .Ip "\fB\-fno-operator-names\fR" 4
1254 .IX Item "-fno-operator-names"
1255 Do not treat the operator name keywords \f(CW\*(C`and\*(C'\fR, \f(CW\*(C`bitand\*(C'\fR,
1256 \&\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
1257 synonyms as keywords.
1258 .Ip "\fB\-fno-optional-diags\fR" 4
1259 .IX Item "-fno-optional-diags"
1260 Disable diagnostics that the standard says a compiler does not need to
1261 issue.  Currently, the only such diagnostic issued by g++ is the one for
1262 a name having multiple meanings within a class.
1263 .Ip "\fB\-fpermissive\fR" 4
1264 .IX Item "-fpermissive"
1265 Downgrade messages about nonconformant code from errors to warnings.  By
1266 default, g++ effectively sets \fB\-pedantic-errors\fR without
1267 \&\fB\-pedantic\fR; this option reverses that.  This behavior and this
1268 option are superseded by \fB\-pedantic\fR, which works as it does for \s-1GNU\s0 C.
1269 .Ip "\fB\-frepo\fR" 4
1270 .IX Item "-frepo"
1271 Enable automatic template instantiation.  This option also implies
1272 \&\fB\-fno-implicit-templates\fR.  
1273 .Ip "\fB\-fno-rtti\fR" 4
1274 .IX Item "-fno-rtti"
1275 Disable generation of information about every class with virtual
1276 functions for use by the \*(C+ runtime type identification features
1277 (\fBdynamic_cast\fR and \fBtypeid\fR).  If you don't use those parts
1278 of the language, you can save some space by using this flag.  Note that
1279 exception handling uses the same information, but it will generate it as
1280 needed.
1281 .Ip "\fB\-fsquangle\fR" 4
1282 .IX Item "-fsquangle"
1283 .PD 0
1284 .Ip "\fB\-fno-squangle\fR" 4
1285 .IX Item "-fno-squangle"
1287 \&\fB\-fsquangle\fR will enable a compressed form of name mangling for
1288 identifiers. In particular, it helps to shorten very long names by recognizing
1289 types and class names which occur more than once, replacing them with special
1290 short \s-1ID\s0 codes.  This option also requires any \*(C+ libraries being used to
1291 be compiled with this option as well.  The compiler has this disabled (the
1292 equivalent of \fB\-fno-squangle\fR) by default.
1294 Like all options that change the \s-1ABI\s0, all \*(C+ code, \fIincluding
1295 libgcc.a\fR must be built with the same setting of this option.
1296 .Ip "\fB\-ftemplate-depth-\fR\fIn\fR" 4
1297 .IX Item "-ftemplate-depth-n"
1298 Set the maximum instantiation depth for template classes to \fIn\fR.
1299 A limit on the template instantiation depth is needed to detect
1300 endless recursions during template class instantiation. \s-1ANSI/ISO\s0 \*(C+
1301 conforming programs must not rely on a maximum depth greater than 17.
1302 .Ip "\fB\-fuse-cxa-atexit\fR" 4
1303 .IX Item "-fuse-cxa-atexit"
1304 Register destructors for objects with static storage duration with the
1305 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR function rather than the \f(CW\*(C`atexit\*(C'\fR function.
1306 This option is required for fully standards-compliant handling of static
1307 destructors, but will only work if your C library supports
1308 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR.
1309 .Ip "\fB\-fvtable-thunks\fR" 4
1310 .IX Item "-fvtable-thunks"
1311 Use \fBthunks\fR to implement the virtual function dispatch table
1312 (\fBvtable\fR).  The traditional (cfront-style) approach to
1313 implementing vtables was to store a pointer to the function and two
1314 offsets for adjusting the \fBthis\fR pointer at the call site.  Newer
1315 implementations store a single pointer to a \fBthunk\fR function which
1316 does any necessary adjustment and then calls the target function.
1318 This option also enables a heuristic for controlling emission of
1319 vtables; if a class has any non-inline virtual functions, the vtable
1320 will be emitted in the translation unit containing the first one of
1321 those.
1323 Like all options that change the \s-1ABI\s0, all \*(C+ code, \fIincluding
1324 libgcc.a\fR must be built with the same setting of this option.
1325 .Ip "\fB\-nostdinc++\fR" 4
1326 .IX Item "-nostdinc++"
1327 Do not search for header files in the standard directories specific to
1328 \&\*(C+, but do still search the other standard directories.  (This option
1329 is used when building the \*(C+ library.)
1331 In addition, these optimization, warning, and code generation options
1332 have meanings only for \*(C+ programs:
1333 .Ip "\fB\-fno-default-inline\fR" 4
1334 .IX Item "-fno-default-inline"
1335 Do not assume \fBinline\fR for functions defined inside a class scope.
1336   Note that these
1337 functions will have linkage like inline functions; they just won't be
1338 inlined by default.
1339 .Ip "\fB\-Wctor-dtor-privacy (\*(C+ only)\fR" 4
1340 .IX Item "-Wctor-dtor-privacy ( only)"
1341 Warn when a class seems unusable, because all the constructors or
1342 destructors in a class are private and the class has no friends or
1343 public static member functions.
1344 .Ip "\fB\-Wnon-virtual-dtor (\*(C+ only)\fR" 4
1345 .IX Item "-Wnon-virtual-dtor ( only)"
1346 Warn when a class declares a non-virtual destructor that should probably
1347 be virtual, because it looks like the class will be used polymorphically.
1348 .Ip "\fB\-Wreorder (\*(C+ only)\fR" 4
1349 .IX Item "-Wreorder ( only)"
1350 Warn when the order of member initializers given in the code does not
1351 match the order in which they must be executed.  For instance:
1353 .Vb 5
1354 \&        struct A {
1355 \&          int i;
1356 \&          int j;
1357 \&          A(): j (0), i (1) { }
1358 \&        };
1360 Here the compiler will warn that the member initializers for \fBi\fR
1361 and \fBj\fR will be rearranged to match the declaration order of the
1362 members.
1364 The following \fB\-W...\fR options are not affected by \fB\-Wall\fR.
1365 .Ip "\fB\-Weffc++ (\*(C+ only)\fR" 4
1366 .IX Item "-Weffc++ ( only)"
1367 Warn about violations of various style guidelines from Scott Meyers'
1368 \&\fIEffective \*(C+\fR books.  If you use this option, you should be aware
1369 that the standard library headers do not obey all of these guidelines;
1370 you can use \fBgrep \-v\fR to filter out those warnings.
1371 .Ip "\fB\-Wno-deprecated (\*(C+ only)\fR" 4
1372 .IX Item "-Wno-deprecated ( only)"
1373 Do not warn about usage of deprecated features. 
1374 .Ip "\fB\-Wno-non-template-friend (\*(C+ only)\fR" 4
1375 .IX Item "-Wno-non-template-friend ( only)"
1376 Disable warnings when non-templatized friend functions are declared
1377 within a template. With the advent of explicit template specification
1378 support in g++, if the name of the friend is an unqualified-id (ie,
1379 \&\fBfriend foo(int)\fR), the \*(C+ language specification demands that the
1380 friend declare or define an ordinary, nontemplate function. (Section
1381 14.5.3). Before g++ implemented explicit specification, unqualified-ids
1382 could be interpreted as a particular specialization of a templatized
1383 function. Because this non-conforming behavior is no longer the default
1384 behavior for g++, \fB\-Wnon-template-friend\fR allows the compiler to
1385 check existing code for potential trouble spots, and is on by default.
1386 This new compiler behavior can be turned off with
1387 \&\fB\-Wno-non-template-friend\fR which keeps the conformant compiler code
1388 but disables the helpful warning.
1389 .Ip "\fB\-Wold-style-cast (\*(C+ only)\fR" 4
1390 .IX Item "-Wold-style-cast ( only)"
1391 Warn if an old-style (C-style) cast is used within a \*(C+ program.  The
1392 new-style casts (\fBstatic_cast\fR, \fBreinterpret_cast\fR, and
1393 \&\fBconst_cast\fR) are less vulnerable to unintended effects.
1394 .Ip "\fB\-Woverloaded-virtual (\*(C+ only)\fR" 4
1395 .IX Item "-Woverloaded-virtual ( only)"
1396 Warn when a derived class function declaration may be an error in
1397 defining a virtual function.  In a derived class, the
1398 definitions of virtual functions must match the type signature of a
1399 virtual function declared in the base class.  With this option, the
1400 compiler warns when you define a function with the same name as a
1401 virtual function, but with a type signature that does not match any
1402 declarations from the base class.
1403 .Ip "\fB\-Wno-pmf-conversions (\*(C+ only)\fR" 4
1404 .IX Item "-Wno-pmf-conversions ( only)"
1405 Disable the diagnostic for converting a bound pointer to member function
1406 to a plain pointer.
1407 .Ip "\fB\-Wsign-promo (\*(C+ only)\fR" 4
1408 .IX Item "-Wsign-promo ( only)"
1409 Warn when overload resolution chooses a promotion from unsigned or
1410 enumeral type to a signed type over a conversion to an unsigned type of
1411 the same size.  Previous versions of g++ would try to preserve
1412 unsignedness, but the standard mandates the current behavior.
1413 .Ip "\fB\-Wsynth (\*(C+ only)\fR" 4
1414 .IX Item "-Wsynth ( only)"
1415 Warn when g++'s synthesis behavior does not match that of cfront.  For
1416 instance:
1418 .Vb 4
1419 \&        struct A {
1420 \&          operator int ();
1421 \&          A& operator = (int);
1422 \&        };
1424 .Vb 5
1425 \&        main ()
1426 \&        {
1427 \&          A a,b;
1428 \&          a = b;
1429 \&        }
1431 In this example, g++ will synthesize a default \fBA& operator =
1432 (const A&);\fR, while cfront will use the user-defined \fBoperator =\fR.
1433 .Sh "Options to Control Diagnostic Messages Formatting"
1434 .IX Subsection "Options to Control Diagnostic Messages Formatting"
1435 Traditionally, diagnostic messages have been formatted irrespective of
1436 the output device's aspect (e.g. its width, ...).  The options described
1437 below can be used to control the diagnostic messages formatting
1438 algorithm, e.g. how many characters per line, how often source location
1439 information should be reported.  Right now, only the \*(C+ front-end can
1440 honor these options.  However it is expected, in the near future, that
1441 the remaining front-ends would be able to digest them correctly. 
1442 .Ip "\fB\-fmessage-length=\fR\fIn\fR" 4
1443 .IX Item "-fmessage-length=n"
1444 Try to format error messages so that they fit on lines of about \fIn\fR
1445 characters.  The default is 72 characters for g++ and 0 for the rest of
1446 the front-ends supported by \s-1GCC\s0.  If \fIn\fR is zero, then no
1447 line-wrapping will be done; each error message will appear on a single 
1448 line.
1449 .Ip "\fB\-fdiagnostics-show-location=once\fR" 4
1450 .IX Item "-fdiagnostics-show-location=once"
1451 Only meaningful in line-wrapping mode.  Instructs the diagnostic messages
1452 reporter to emit \fIonce\fR source location information; that is, in
1453 case the message is too long to fit on a single physical line and has to
1454 be wrapped, the source location won't be emitted (as prefix) again,
1455 over and over, in subsequent continuation lines.  This is the default
1456 behaviour. 
1457 .Ip "\fB\-fdiagnostics-show-location=every-line\fR" 4
1458 .IX Item "-fdiagnostics-show-location=every-line"
1459 Only meaningful in line-wrapping mode.  Instructs the diagnostic
1460 messages reporter to emit the same source location information (as
1461 prefix) for physical lines that result from the process of breaking a
1462 a message which is too long to fit on a single line.
1463 .Sh "Options to Request or Suppress Warnings"
1464 .IX Subsection "Options to Request or Suppress Warnings"
1465 Warnings are diagnostic messages that report constructions which
1466 are not inherently erroneous but which are risky or suggest there
1467 may have been an error.
1469 You can request many specific warnings with options beginning \fB\-W\fR,
1470 for example \fB\-Wimplicit\fR to request warnings on implicit
1471 declarations.  Each of these specific warning options also has a
1472 negative form beginning \fB\-Wno-\fR to turn off warnings;
1473 for example, \fB\-Wno-implicit\fR.  This manual lists only one of the
1474 two forms, whichever is not the default.
1476 These options control the amount and kinds of warnings produced by \s-1GCC:\s0
1477 .Ip "\fB\-fsyntax-only\fR" 4
1478 .IX Item "-fsyntax-only"
1479 Check the code for syntax errors, but don't do anything beyond that.
1480 .Ip "\fB\-pedantic\fR" 4
1481 .IX Item "-pedantic"
1482 Issue all the warnings demanded by strict \s-1ISO\s0 C and \s-1ISO\s0 \*(C+;
1483 reject all programs that use forbidden extensions, and some other
1484 programs that do not follow \s-1ISO\s0 C and \s-1ISO\s0 \*(C+.  For \s-1ISO\s0 C, follows the
1485 version of the \s-1ISO\s0 C standard specified by any \fB\-std\fR option used.
1487 Valid \s-1ISO\s0 C and \s-1ISO\s0 \*(C+ programs should compile properly with or without
1488 this option (though a rare few will require \fB\-ansi\fR or a
1489 \&\fB\-std\fR option specifying the required version of \s-1ISO\s0 C).  However,
1490 without this option, certain \s-1GNU\s0 extensions and traditional C and \*(C+
1491 features are supported as well.  With this option, they are rejected.
1493 \&\fB\-pedantic\fR does not cause warning messages for use of the
1494 alternate keywords whose names begin and end with \fB_\|_\fR.  Pedantic
1495 warnings are also disabled in the expression that follows
1496 \&\f(CW\*(C`_\|_extension_\|_\*(C'\fR.  However, only system header files should use
1497 these escape routes; application programs should avoid them.
1499 Some users try to use \fB\-pedantic\fR to check programs for strict \s-1ISO\s0
1500 C conformance.  They soon find that it does not do quite what they want:
1501 it finds some non-ISO practices, but not all\-\-\-only those for which
1502 \&\s-1ISO\s0 C \fIrequires\fR a diagnostic, and some others for which
1503 diagnostics have been added.
1505 A feature to report any failure to conform to \s-1ISO\s0 C might be useful in
1506 some instances, but would require considerable additional work and would
1507 be quite different from \fB\-pedantic\fR.  We don't have plans to
1508 support such a feature in the near future.
1509 .Ip "\fB\-pedantic-errors\fR" 4
1510 .IX Item "-pedantic-errors"
1511 Like \fB\-pedantic\fR, except that errors are produced rather than
1512 warnings.
1513 .Ip "\fB\-w\fR" 4
1514 .IX Item "-w"
1515 Inhibit all warning messages.
1516 .Ip "\fB\-Wno-import\fR" 4
1517 .IX Item "-Wno-import"
1518 Inhibit warning messages about the use of \fB#import\fR.
1519 .Ip "\fB\-Wchar-subscripts\fR" 4
1520 .IX Item "-Wchar-subscripts"
1521 Warn if an array subscript has type \f(CW\*(C`char\*(C'\fR.  This is a common cause
1522 of error, as programmers often forget that this type is signed on some
1523 machines.
1524 .Ip "\fB\-Wcomment\fR" 4
1525 .IX Item "-Wcomment"
1526 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
1527 comment, or whenever a Backslash-Newline appears in a \fB//\fR comment.
1528 .Ip "\fB\-Wformat\fR" 4
1529 .IX Item "-Wformat"
1530 Check calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR, etc., to make sure that
1531 the arguments supplied have types appropriate to the format string
1532 specified, and that the conversions specified in the format string make
1533 sense.  This includes standard functions, and others specified by format
1534 attributes, in the \f(CW\*(C`printf\*(C'\fR,
1535 \&\f(CW\*(C`scanf\*(C'\fR, \f(CW\*(C`strftime\*(C'\fR and \f(CW\*(C`strfmon\*(C'\fR (an X/Open extension,
1536 not in the C standard) families.
1538 The formats are checked against the format features supported by \s-1GNU\s0
1539 libc version 2.2.  These include all \s-1ISO\s0 C89 and C99 features, as well
1540 as features from the Single Unix Specification and some \s-1BSD\s0 and \s-1GNU\s0
1541 extensions.  Other library implementations may not support all these
1542 features; \s-1GCC\s0 does not support warning about features that go beyond a
1543 particular library's limitations.  However, if \fB\-pedantic\fR is used
1544 with \fB\-Wformat\fR, warnings will be given about format features not
1545 in the selected standard version (but not for \f(CW\*(C`strfmon\*(C'\fR formats,
1546 since those are not in any version of the C standard).  
1548 \&\fB\-Wformat\fR is included in \fB\-Wall\fR.  For more control over some
1549 aspects of format checking, the options \fB\-Wno-format-y2k\fR,
1550 \&\fB\-Wno-format-extra-args\fR, \fB\-Wformat-nonliteral\fR,
1551 \&\fB\-Wformat-security\fR and \fB\-Wformat=2\fR are available, but are
1552 not included in \fB\-Wall\fR.
1553 .Ip "\fB\-Wno-format-y2k\fR" 4
1554 .IX Item "-Wno-format-y2k"
1555 If \fB\-Wformat\fR is specified, do not warn about \f(CW\*(C`strftime\*(C'\fR
1556 formats which may yield only a two-digit year.
1557 .Ip "\fB\-Wno-format-extra-args\fR" 4
1558 .IX Item "-Wno-format-extra-args"
1559 If \fB\-Wformat\fR is specified, do not warn about excess arguments to a
1560 \&\f(CW\*(C`printf\*(C'\fR or \f(CW\*(C`scanf\*(C'\fR format function.  The C standard specifies
1561 that such arguments are ignored.
1562 .Ip "\fB\-Wformat-nonliteral\fR" 4
1563 .IX Item "-Wformat-nonliteral"
1564 If \fB\-Wformat\fR is specified, also warn if the format string is not a
1565 string literal and so cannot be checked, unless the format function
1566 takes its format arguments as a \f(CW\*(C`va_list\*(C'\fR.
1567 .Ip "\fB\-Wformat-security\fR" 4
1568 .IX Item "-Wformat-security"
1569 If \fB\-Wformat\fR is specified, also warn about uses of format
1570 functions that represent possible security problems.  At present, this
1571 warns about calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR functions where the
1572 format string is not a string literal and there are no format arguments,
1573 as in \f(CW\*(C`printf (foo);\*(C'\fR.  This may be a security hole if the format
1574 string came from untrusted input and contains \fB%n\fR.  (This is
1575 currently a subset of what \fB\-Wformat-nonliteral\fR warns about, but
1576 in future warnings may be added to \fB\-Wformat-security\fR that are not
1577 included in \fB\-Wformat-nonliteral\fR.)
1578 .Ip "\fB\-Wformat=2\fR" 4
1579 .IX Item "-Wformat=2"
1580 Enable \fB\-Wformat\fR plus format checks not included in
1581 \&\fB\-Wformat\fR.  Currently equivalent to \fB\-Wformat
1582 \&\-Wformat-nonliteral \-Wformat-security\fR.
1583 .Ip "\fB\-Wimplicit-int\fR" 4
1584 .IX Item "-Wimplicit-int"
1585 Warn when a declaration does not specify a type.
1586 .Ip "\fB\-Wimplicit-function-declaration\fR" 4
1587 .IX Item "-Wimplicit-function-declaration"
1588 .PD 0
1589 .Ip "\fB\-Werror-implicit-function-declaration\fR" 4
1590 .IX Item "-Werror-implicit-function-declaration"
1592 Give a warning (or error) whenever a function is used before being
1593 declared.
1594 .Ip "\fB\-Wimplicit\fR" 4
1595 .IX Item "-Wimplicit"
1596 Same as \fB\-Wimplicit-int\fR and \fB\-Wimplicit-function-\fR\fBdeclaration\fR.
1597 .Ip "\fB\-Wmain\fR" 4
1598 .IX Item "-Wmain"
1599 Warn if the type of \fBmain\fR is suspicious.  \fBmain\fR should be a
1600 function with external linkage, returning int, taking either zero
1601 arguments, two, or three arguments of appropriate types.
1602 .Ip "\fB\-Wmultichar\fR" 4
1603 .IX Item "-Wmultichar"
1604 Warn if a multicharacter constant (\fB'\s-1FOOF\s0'\fR) is used.  Usually they
1605 indicate a typo in the user's code, as they have implementation-defined
1606 values, and should not be used in portable code.
1607 .Ip "\fB\-Wparentheses\fR" 4
1608 .IX Item "-Wparentheses"
1609 Warn if parentheses are omitted in certain contexts, such
1610 as when there is an assignment in a context where a truth value
1611 is expected, or when operators are nested whose precedence people
1612 often get confused about.
1614 Also warn about constructions where there may be confusion to which
1615 \&\f(CW\*(C`if\*(C'\fR statement an \f(CW\*(C`else\*(C'\fR branch belongs.  Here is an example of
1616 such a case:
1618 .Vb 7
1619 \&        {
1620 \&          if (a)
1621 \&            if (b)
1622 \&              foo ();
1623 \&          else
1624 \&            bar ();
1625 \&        }
1627 In C, every \f(CW\*(C`else\*(C'\fR branch belongs to the innermost possible \f(CW\*(C`if\*(C'\fR
1628 statement, which in this example is \f(CW\*(C`if (b)\*(C'\fR.  This is often not
1629 what the programmer expected, as illustrated in the above example by
1630 indentation the programmer chose.  When there is the potential for this
1631 confusion, \s-1GNU\s0 C will issue a warning when this flag is specified.
1632 To eliminate the warning, add explicit braces around the innermost
1633 \&\f(CW\*(C`if\*(C'\fR statement so there is no way the \f(CW\*(C`else\*(C'\fR could belong to
1634 the enclosing \f(CW\*(C`if\*(C'\fR.  The resulting code would look like this:
1636 .Vb 9
1637 \&        {
1638 \&          if (a)
1639 \&            {
1640 \&              if (b)
1641 \&                foo ();
1642 \&              else
1643 \&                bar ();
1644 \&            }
1645 \&        }
1647 .Ip "\fB\-Wsequence-point\fR" 4
1648 .IX Item "-Wsequence-point"
1649 Warn about code that may have undefined semantics because of violations
1650 of sequence point rules in the C standard.
1652 The C standard defines the order in which expressions in a C program are
1653 evaluated in terms of \fIsequence points\fR, which represent a partial
1654 ordering between the execution of parts of the program: those executed
1655 before the sequence point, and those executed after it.  These occur
1656 after the evaluation of a full expression (one which is not part of a
1657 larger expression), after the evaluation of the first operand of a
1658 \&\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
1659 function is called (but after the evaluation of its arguments and the
1660 expression denoting the called function), and in certain other places.
1661 Other than as expressed by the sequence point rules, the order of
1662 evaluation of subexpressions of an expression is not specified.  All
1663 these rules describe only a partial order rather than a total order,
1664 since, for example, if two functions are called within one expression
1665 with no sequence point between them, the order in which the functions
1666 are called is not specified.  However, the standards committee have
1667 ruled that function calls do not overlap.
1669 It is not specified when between sequence points modifications to the
1670 values of objects take effect.  Programs whose behavior depends on this
1671 have undefined behavior; the C standard specifies that ``Between the
1672 previous and next sequence point an object shall have its stored value
1673 modified at most once by the evaluation of an expression.  Furthermore,
1674 the prior value shall be read only to determine the value to be
1675 stored.''.  If a program breaks these rules, the results on any
1676 particular implementation are entirely unpredictable.
1678 Examples of code with undefined behavior are \f(CW\*(C`a = a++;\*(C'\fR, \f(CW\*(C`a[n]
1679 = b[n++]\*(C'\fR and \f(CW\*(C`a[i++] = i;\*(C'\fR.  Some more complicated cases are not
1680 diagnosed by this option, and it may give an occasional false positive
1681 result, but in general it has been found fairly effective at detecting
1682 this sort of problem in programs.
1684 The present implementation of this option only works for C programs.  A
1685 future implementation may also work for \*(C+ programs.
1687 There is some controversy over the precise meaning of the sequence point
1688 rules in subtle cases.  Alternative formal definitions may be found in
1689 Clive Feather's ``Annex S''
1690 <\fBhttp://wwwold.dkuug.dk/JTC1/SC22/WG14/www/docs/n925.htm\fR> and in
1691 Michael Norrish's thesis
1692 <\fBhttp://www.cl.cam.ac.uk/users/mn200/PhD/thesis-report.ps.gz\fR>.
1693 Other discussions are by Raymond Mak
1694 <\fBhttp://wwwold.dkuug.dk/JTC1/SC22/WG14/www/docs/n926.htm\fR> and
1695 D. Hugh Redelmeier
1696 <\fBhttp://wwwold.dkuug.dk/JTC1/SC22/WG14/www/docs/n927.htm\fR>.
1697 .Ip "\fB\-Wreturn-type\fR" 4
1698 .IX Item "-Wreturn-type"
1699 Warn whenever a function is defined with a return-type that defaults to
1700 \&\f(CW\*(C`int\*(C'\fR.  Also warn about any \f(CW\*(C`return\*(C'\fR statement with no
1701 return-value in a function whose return-type is not \f(CW\*(C`void\*(C'\fR. 
1703 For \*(C+, a function without return type always produces a diagnostic
1704 message, even when \fB\-Wno-return-type\fR is specified. The only
1705 exceptions are \fBmain\fR and functions defined in system headers.
1706 .Ip "\fB\-Wswitch\fR" 4
1707 .IX Item "-Wswitch"
1708 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumeral type
1709 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
1710 enumeration.  (The presence of a \f(CW\*(C`default\*(C'\fR label prevents this
1711 warning.)  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
1712 provoke warnings when this option is used.
1713 .Ip "\fB\-Wtrigraphs\fR" 4
1714 .IX Item "-Wtrigraphs"
1715 Warn if any trigraphs are encountered that might change the meaning of
1716 the program (trigraphs within comments are not warned about).
1717 .Ip "\fB\-Wunused-function\fR" 4
1718 .IX Item "-Wunused-function"
1719 Warn whenever a static function is declared but not defined or a
1720 non\e-inline static function is unused.
1721 .Ip "\fB\-Wunused-label\fR" 4
1722 .IX Item "-Wunused-label"
1723 Warn whenever a label is declared but not used.
1725 To suppress this warning use the \fBunused\fR attribute.
1726 .Ip "\fB\-Wunused-parameter\fR" 4
1727 .IX Item "-Wunused-parameter"
1728 Warn whenever a function parameter is unused aside from its declaration.
1730 To suppress this warning use the \fBunused\fR attribute.
1731 .Ip "\fB\-Wunused-variable\fR" 4
1732 .IX Item "-Wunused-variable"
1733 Warn whenever a local variable or non-constant static variable is unused
1734 aside from its declaration
1736 To suppress this warning use the \fBunused\fR attribute.
1737 .Ip "\fB\-Wunused-value\fR" 4
1738 .IX Item "-Wunused-value"
1739 Warn whenever a statement computes a result that is explicitly not used.
1741 To suppress this warning cast the expression to \fBvoid\fR.
1742 .Ip "\fB\-Wunused\fR" 4
1743 .IX Item "-Wunused"
1744 All all the above \fB\-Wunused\fR options combined.
1746 In order to get a warning about an unused function parameter, you must
1747 either specify \fB\-W \-Wunused\fR or separately specify
1748 \&\fB\-Wunused-parameter\fR.
1749 .Ip "\fB\-Wuninitialized\fR" 4
1750 .IX Item "-Wuninitialized"
1751 Warn if an automatic variable is used without first being initialized or
1752 if a variable may be clobbered by a \f(CW\*(C`setjmp\*(C'\fR call.
1754 These warnings are possible only in optimizing compilation,
1755 because they require data flow information that is computed only
1756 when optimizing.  If you don't specify \fB\-O\fR, you simply won't
1757 get these warnings.
1759 These warnings occur only for variables that are candidates for
1760 register allocation.  Therefore, they do not occur for a variable that
1761 is declared \f(CW\*(C`volatile\*(C'\fR, or whose address is taken, or whose size
1762 is other than 1, 2, 4 or 8 bytes.  Also, they do not occur for
1763 structures, unions or arrays, even when they are in registers.
1765 Note that there may be no warning about a variable that is used only
1766 to compute a value that itself is never used, because such
1767 computations may be deleted by data flow analysis before the warnings
1768 are printed.
1770 These warnings are made optional because \s-1GCC\s0 is not smart
1771 enough to see all the reasons why the code might be correct
1772 despite appearing to have an error.  Here is one example of how
1773 this can happen:
1775 .Vb 12
1776 \&        {
1777 \&          int x;
1778 \&          switch (y)
1779 \&            {
1780 \&            case 1: x = 1;
1781 \&              break;
1782 \&            case 2: x = 4;
1783 \&              break;
1784 \&            case 3: x = 5;
1785 \&            }
1786 \&          foo (x);
1787 \&        }
1789 If the value of \f(CW\*(C`y\*(C'\fR is always 1, 2 or 3, then \f(CW\*(C`x\*(C'\fR is
1790 always initialized, but \s-1GCC\s0 doesn't know this.  Here is
1791 another common case:
1793 .Vb 6
1794 \&        {
1795 \&          int save_y;
1796 \&          if (change_y) save_y = y, y = new_y;
1797 \&          ...
1798 \&          if (change_y) y = save_y;
1799 \&        }
1801 This has no bug because \f(CW\*(C`save_y\*(C'\fR is used only if it is set.
1803 This option also warns when a non-volatile automatic variable might be
1804 changed by a call to \f(CW\*(C`longjmp\*(C'\fR.  These warnings as well are possible
1805 only in optimizing compilation.
1807 The compiler sees only the calls to \f(CW\*(C`setjmp\*(C'\fR.  It cannot know
1808 where \f(CW\*(C`longjmp\*(C'\fR will be called; in fact, a signal handler could
1809 call it at any point in the code.  As a result, you may get a warning
1810 even when there is in fact no problem because \f(CW\*(C`longjmp\*(C'\fR cannot
1811 in fact be called at the place which would cause a problem.
1813 Some spurious warnings can be avoided if you declare all the functions
1814 you use that never return as \f(CW\*(C`noreturn\*(C'\fR.  
1815 .Ip "\fB\-Wreorder (\*(C+ only)\fR" 4
1816 .IX Item "-Wreorder ( only)"
1817 Warn when the order of member initializers given in the code does not
1818 match the order in which they must be executed.  For instance:
1819 .Ip "\fB\-Wunknown-pragmas\fR" 4
1820 .IX Item "-Wunknown-pragmas"
1821 Warn when a #pragma directive is encountered which is not understood by
1822 \&\s-1GCC\s0.  If this command line option is used, warnings will even be issued
1823 for unknown pragmas in system header files.  This is not the case if
1824 the warnings were only enabled by the \fB\-Wall\fR command line option.
1825 .Ip "\fB\-Wall\fR" 4
1826 .IX Item "-Wall"
1827 All of the above \fB\-W\fR options combined.  This enables all the
1828 warnings about constructions that some users consider questionable, and
1829 that are easy to avoid (or modify to prevent the warning), even in
1830 conjunction with macros.
1831 .Ip "\fB\-Wsystem-headers\fR" 4
1832 .IX Item "-Wsystem-headers"
1833 Print warning messages for constructs found in system header files.
1834 Warnings from system headers are normally suppressed, on the assumption
1835 that they usually do not indicate real problems and would only make the
1836 compiler output harder to read.  Using this command line option tells
1837 \&\s-1GCC\s0 to emit warnings from system headers as if they occurred in user
1838 code.  However, note that using \fB\-Wall\fR in conjunction with this
1839 option will \fInot\fR warn about unknown pragmas in system
1840 headers\-\-\-for that, \fB\-Wunknown-pragmas\fR must also be used.
1842 The following \fB\-W...\fR options are not implied by \fB\-Wall\fR.
1843 Some of them warn about constructions that users generally do not
1844 consider questionable, but which occasionally you might wish to check
1845 for; others warn about constructions that are necessary or hard to avoid
1846 in some cases, and there is no simple way to modify the code to suppress
1847 the warning.
1848 .Ip "\fB\-W\fR" 4
1849 .IX Item "-W"
1850 Print extra warning messages for these events:
1851 .RS 4
1852 .Ip "\(bu" 4
1853 A function can return either with or without a value.  (Falling
1854 off the end of the function body is considered returning without
1855 a value.)  For example, this function would evoke such a
1856 warning:
1858 .Vb 5
1859 \&        foo (a)
1860 \&        {
1861 \&          if (a > 0)
1862 \&            return a;
1863 \&        }
1865 .Ip "\(bu" 4
1866 An expression-statement or the left-hand side of a comma expression
1867 contains no side effects.
1868 To suppress the warning, cast the unused expression to void.
1869 For example, an expression such as \fBx[i,j]\fR will cause a warning,
1870 but \fBx[(void)i,j]\fR will not.
1871 .Ip "\(bu" 4
1872 An unsigned value is compared against zero with \fB<\fR or \fB<=\fR.
1873 .Ip "\(bu" 4
1874 A comparison like \fBx<=y<=z\fR appears; this is equivalent to
1875 \&\fB(x<=y ? 1 : 0) <= z\fR, which is a different interpretation from
1876 that of ordinary mathematical notation.
1877 .Ip "\(bu" 4
1878 Storage-class specifiers like \f(CW\*(C`static\*(C'\fR are not the first things in
1879 a declaration.  According to the C Standard, this usage is obsolescent.
1880 .Ip "\(bu" 4
1881 The return type of a function has a type qualifier such as \f(CW\*(C`const\*(C'\fR.
1882 Such a type qualifier has no effect, since the value returned by a
1883 function is not an lvalue.  (But don't warn about the \s-1GNU\s0 extension of
1884 \&\f(CW\*(C`volatile void\*(C'\fR return types.  That extension will be warned about
1885 if \fB\-pedantic\fR is specified.)
1886 .Ip "\(bu" 4
1887 If \fB\-Wall\fR or \fB\-Wunused\fR is also specified, warn about unused
1888 arguments.
1889 .Ip "\(bu" 4
1890 A comparison between signed and unsigned values could produce an
1891 incorrect result when the signed value is converted to unsigned.
1892 (But don't warn if \fB\-Wno-sign-compare\fR is also specified.)
1893 .Ip "\(bu" 4
1894 An aggregate has a partly bracketed initializer.
1895 For example, the following code would evoke such a warning,
1896 because braces are missing around the initializer for \f(CW\*(C`x.h\*(C'\fR:
1898 .Vb 3
1899 \&        struct s { int f, g; };
1900 \&        struct t { struct s h; int i; };
1901 \&        struct t x = { 1, 2, 3 };
1903 .Ip "\(bu" 4
1904 An aggregate has an initializer which does not initialize all members.
1905 For example, the following code would cause such a warning, because
1906 \&\f(CW\*(C`x.h\*(C'\fR would be implicitly initialized to zero:
1908 .Vb 2
1909 \&        struct s { int f, g, h; };
1910 \&        struct s x = { 3, 4 };
1913 .RS 4
1915 .Ip "\fB\-Wfloat-equal\fR" 4
1916 .IX Item "-Wfloat-equal"
1917 Warn if floating point values are used in equality comparisons.
1919 The idea behind this is that sometimes it is convenient (for the
1920 programmer) to consider floating-point values as approximations to
1921 infinitely precise real numbers.  If you are doing this, then you need
1922 to compute (by analysing the code, or in some other way) the maximum or
1923 likely maximum error that the computation introduces, and allow for it
1924 when performing comparisons (and when producing output, but that's a
1925 different problem).  In particular, instead of testing for equality, you
1926 would check to see whether the two values have ranges that overlap; and
1927 this is done with the relational operators, so equality comparisons are
1928 probably mistaken.
1929 .Ip "\fB\-Wtraditional (C only)\fR" 4
1930 .IX Item "-Wtraditional (C only)"
1931 Warn about certain constructs that behave differently in traditional and
1932 \&\s-1ISO\s0 C.
1933 .RS 4
1934 .Ip "\(bu" 4
1935 Macro arguments occurring within string constants in the macro body.
1936 These would substitute the argument in traditional C, but are part of
1937 the constant in \s-1ISO\s0 C.
1938 .Ip "\(bu" 4
1939 A function declared external in one block and then used after the end of
1940 the block.
1941 .Ip "\(bu" 4
1942 A \f(CW\*(C`switch\*(C'\fR statement has an operand of type \f(CW\*(C`long\*(C'\fR.
1943 .Ip "\(bu" 4
1944 A non-\f(CW\*(C`static\*(C'\fR function declaration follows a \f(CW\*(C`static\*(C'\fR one.
1945 This construct is not accepted by some traditional C compilers.
1946 .Ip "\(bu" 4
1947 The \s-1ISO\s0 type of an integer constant has a different width or
1948 signedness from its traditional type.  This warning is only issued if
1949 the base of the constant is ten.  I.e. hexadecimal or octal values, which
1950 typically represent bit patterns, are not warned about.
1951 .Ip "\(bu" 4
1952 Usage of \s-1ISO\s0 string concatenation is detected.
1953 .Ip "\(bu" 4
1954 A function macro appears without arguments.
1955 .Ip "\(bu" 4
1956 The unary plus operator.
1957 .Ip "\(bu" 4
1958 Initialization of automatic aggregates.
1959 .Ip "\(bu" 4
1960 Identifier conflicts with labels.  Traditional C lacks a separate
1961 namespace for labels.
1962 .Ip "\(bu" 4
1963 Initialization of unions.  If the initializer is zero, the warning is
1964 omitted.  This is done under the assumption that the zero initializer in
1965 user code appears conditioned on e.g. \f(CW\*(C`_\|_STDC_\|_\*(C'\fR to avoid missing
1966 initializer warnings and relies on default initialization to zero in the
1967 traditional C case.
1968 .Ip "\(bu" 4
1969 The `U' integer constant suffix, or the `F' or `L' floating point
1970 constant suffixes.  (Traditonal C does support the `L' suffix on integer
1971 constants.)  Note, these suffixes appear in macros defined in the system
1972 headers of most modern systems, e.g. the _MIN/_MAX macros in limits.h.
1973 Use of these macros can lead to spurious warnings as they do not
1974 necessarily reflect whether the code in question is any less portable to
1975 traditional C given that suitable backup definitions are provided.
1977 .RS 4
1979 .Ip "\fB\-Wundef\fR" 4
1980 .IX Item "-Wundef"
1981 Warn if an undefined identifier is evaluated in an \fB#if\fR directive.
1982 .Ip "\fB\-Wshadow\fR" 4
1983 .IX Item "-Wshadow"
1984 Warn whenever a local variable shadows another local variable.
1985 .Ip "\fB\-Wid-clash-\fR\fIlen\fR" 4
1986 .IX Item "-Wid-clash-len"
1987 Warn whenever two distinct identifiers match in the first \fIlen\fR
1988 characters.  This may help you prepare a program that will compile
1989 with certain obsolete, brain-damaged compilers.
1990 .Ip "\fB\-Wlarger-than-\fR\fIlen\fR" 4
1991 .IX Item "-Wlarger-than-len"
1992 Warn whenever an object of larger than \fIlen\fR bytes is defined.
1993 .Ip "\fB\-Wpointer-arith\fR" 4
1994 .IX Item "-Wpointer-arith"
1995 Warn about anything that depends on the ``size of'' a function type or
1996 of \f(CW\*(C`void\*(C'\fR.  \s-1GNU\s0 C assigns these types a size of 1, for
1997 convenience in calculations with \f(CW\*(C`void *\*(C'\fR pointers and pointers
1998 to functions.
1999 .Ip "\fB\-Wbad-function-cast (C only)\fR" 4
2000 .IX Item "-Wbad-function-cast (C only)"
2001 Warn whenever a function call is cast to a non-matching type.
2002 For example, warn if \f(CW\*(C`int malloc()\*(C'\fR is cast to \f(CW\*(C`anything *\*(C'\fR.
2003 .Ip "\fB\-Wcast-qual\fR" 4
2004 .IX Item "-Wcast-qual"
2005 Warn whenever a pointer is cast so as to remove a type qualifier from
2006 the target type.  For example, warn if a \f(CW\*(C`const char *\*(C'\fR is cast
2007 to an ordinary \f(CW\*(C`char *\*(C'\fR.
2008 .Ip "\fB\-Wcast-align\fR" 4
2009 .IX Item "-Wcast-align"
2010 Warn whenever a pointer is cast such that the required alignment of the
2011 target is increased.  For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
2012 an \f(CW\*(C`int *\*(C'\fR on machines where integers can only be accessed at
2013 two- or four-byte boundaries.
2014 .Ip "\fB\-Wwrite-strings\fR" 4
2015 .IX Item "-Wwrite-strings"
2016 Give string constants the type \f(CW\*(C`const char[\f(CIlength\f(CW]\*(C'\fR so that
2017 copying the address of one into a non-\f(CW\*(C`const\*(C'\fR \f(CW\*(C`char *\*(C'\fR
2018 pointer will get a warning.  These warnings will help you find at
2019 compile time code that can try to write into a string constant, but
2020 only if you have been very careful about using \f(CW\*(C`const\*(C'\fR in
2021 declarations and prototypes.  Otherwise, it will just be a nuisance;
2022 this is why we did not make \fB\-Wall\fR request these warnings.
2023 .Ip "\fB\-Wconversion\fR" 4
2024 .IX Item "-Wconversion"
2025 Warn if a prototype causes a type conversion that is different from what
2026 would happen to the same argument in the absence of a prototype.  This
2027 includes conversions of fixed point to floating and vice versa, and
2028 conversions changing the width or signedness of a fixed point argument
2029 except when the same as the default promotion.
2031 Also, warn if a negative integer constant expression is implicitly
2032 converted to an unsigned type.  For example, warn about the assignment
2033 \&\f(CW\*(C`x = \-1\*(C'\fR if \f(CW\*(C`x\*(C'\fR is unsigned.  But do not warn about explicit
2034 casts like \f(CW\*(C`(unsigned) \-1\*(C'\fR.
2035 .Ip "\fB\-Wsign-compare\fR" 4
2036 .IX Item "-Wsign-compare"
2037 Warn when a comparison between signed and unsigned values could produce
2038 an incorrect result when the signed value is converted to unsigned.
2039 This warning is also enabled by \fB\-W\fR; to get the other warnings
2040 of \fB\-W\fR without this warning, use \fB\-W \-Wno-sign-compare\fR.
2041 .Ip "\fB\-Waggregate-return\fR" 4
2042 .IX Item "-Waggregate-return"
2043 Warn if any functions that return structures or unions are defined or
2044 called.  (In languages where you can return an array, this also elicits
2045 a warning.)
2046 .Ip "\fB\-Wstrict-prototypes (C only)\fR" 4
2047 .IX Item "-Wstrict-prototypes (C only)"
2048 Warn if a function is declared or defined without specifying the
2049 argument types.  (An old-style function definition is permitted without
2050 a warning if preceded by a declaration which specifies the argument
2051 types.)
2052 .Ip "\fB\-Wmissing-prototypes (C only)\fR" 4
2053 .IX Item "-Wmissing-prototypes (C only)"
2054 Warn if a global function is defined without a previous prototype
2055 declaration.  This warning is issued even if the definition itself
2056 provides a prototype.  The aim is to detect global functions that fail
2057 to be declared in header files.
2058 .Ip "\fB\-Wmissing-declarations\fR" 4
2059 .IX Item "-Wmissing-declarations"
2060 Warn if a global function is defined without a previous declaration.
2061 Do so even if the definition itself provides a prototype.
2062 Use this option to detect global functions that are not declared in
2063 header files.
2064 .Ip "\fB\-Wmissing-noreturn\fR" 4
2065 .IX Item "-Wmissing-noreturn"
2066 Warn about functions which might be candidates for attribute \f(CW\*(C`noreturn\*(C'\fR.
2067 Note these are only possible candidates, not absolute ones.  Care should
2068 be taken to manually verify functions actually do not ever return before
2069 adding the \f(CW\*(C`noreturn\*(C'\fR attribute, otherwise subtle code generation
2070 bugs could be introduced.  You will not get a warning for \f(CW\*(C`main\*(C'\fR in
2071 hosted C environments.
2072 .Ip "\fB\-Wmissing-format-attribute\fR" 4
2073 .IX Item "-Wmissing-format-attribute"
2074 If \fB\-Wformat\fR is enabled, also warn about functions which might be
2075 candidates for \f(CW\*(C`format\*(C'\fR attributes.  Note these are only possible
2076 candidates, not absolute ones.  \s-1GCC\s0 will guess that \f(CW\*(C`format\*(C'\fR
2077 attributes might be appropriate for any function that calls a function
2078 like \f(CW\*(C`vprintf\*(C'\fR or \f(CW\*(C`vscanf\*(C'\fR, but this might not always be the
2079 case, and some functions for which \f(CW\*(C`format\*(C'\fR attributes are
2080 appropriate may not be detected.  This option has no effect unless
2081 \&\fB\-Wformat\fR is enabled (possibly by \fB\-Wall\fR).
2082 .Ip "\fB\-Wpacked\fR" 4
2083 .IX Item "-Wpacked"
2084 Warn if a structure is given the packed attribute, but the packed
2085 attribute has no effect on the layout or size of the structure.  
2086 Such structures may be mis-aligned for little benefit.  For
2087 instance, in this code, the variable \f(CW\*(C`f.x\*(C'\fR in \f(CW\*(C`struct bar\*(C'\fR
2088 will be misaligned even though \f(CW\*(C`struct bar\*(C'\fR does not itself
2089 have the packed attribute:
2091 .Vb 8
2092 \&        struct foo {
2093 \&          int x;
2094 \&          char a, b, c, d;
2095 \&        } __attribute__((packed));
2096 \&        struct bar {
2097 \&          char z;
2098 \&          struct foo f;
2099 \&        };
2101 .Ip "\fB\-Wpadded\fR" 4
2102 .IX Item "-Wpadded"
2103 Warn if padding is included in a structure, either to align an element
2104 of the structure or to align the whole structure.  Sometimes when this
2105 happens it is possible to rearrange the fields of the structure to
2106 reduce the padding and so make the structure smaller.
2107 .Ip "\fB\-Wredundant-decls\fR" 4
2108 .IX Item "-Wredundant-decls"
2109 Warn if anything is declared more than once in the same scope, even in
2110 cases where multiple declaration is valid and changes nothing.
2111 .Ip "\fB\-Wnested-externs (C only)\fR" 4
2112 .IX Item "-Wnested-externs (C only)"
2113 Warn if an \f(CW\*(C`extern\*(C'\fR declaration is encountered within a function.
2114 .Ip "\fB\-Wunreachable-code\fR" 4
2115 .IX Item "-Wunreachable-code"
2116 Warn if the compiler detects that code will never be executed.
2118 This option is intended to warn when the compiler detects that at
2119 least a whole line of source code will never be executed, because
2120 some condition is never satisfied or because it is after a
2121 procedure that never returns.
2123 It is possible for this option to produce a warning even though there
2124 are circumstances under which part of the affected line can be executed,
2125 so care should be taken when removing apparently-unreachable code.
2127 For instance, when a function is inlined, a warning may mean that the
2128 line is unreachable in only one inlined copy of the function.  
2130 This option is not made part of \fB\-Wall\fR because in a debugging
2131 version of a program there is often substantial code which checks
2132 correct functioning of the program and is, hopefully, unreachable
2133 because the program does work.  Another common use of unreachable
2134 code is to provide behaviour which is selectable at compile-time.
2135 .Ip "\fB\-Winline\fR" 4
2136 .IX Item "-Winline"
2137 Warn if a function can not be inlined and it was declared as inline.
2138 .Ip "\fB\-Wlong-long\fR" 4
2139 .IX Item "-Wlong-long"
2140 Warn if \fBlong long\fR type is used.  This is default.  To inhibit
2141 the warning messages, use \fB\-Wno-long-long\fR.  Flags
2142 \&\fB\-Wlong-long\fR and \fB\-Wno-long-long\fR are taken into account
2143 only when \fB\-pedantic\fR flag is used.
2144 .Ip "\fB\-Wdisabled-optimization\fR" 4
2145 .IX Item "-Wdisabled-optimization"
2146 Warn if a requested optimization pass is disabled.  This warning does
2147 not generally indicate that there is anything wrong with your code; it
2148 merely indicates that \s-1GCC\s0's optimizers were unable to handle the code
2149 effectively.  Often, the problem is that your code is too big or too
2150 complex; \s-1GCC\s0 will refuse to optimize programs when the optimization
2151 itself is likely to take inordinate amounts of time.
2152 .Ip "\fB\-Werror\fR" 4
2153 .IX Item "-Werror"
2154 Make all warnings into errors.
2155 .Sh "Options for Debugging Your Program or \s-1GCC\s0"
2156 .IX Subsection "Options for Debugging Your Program or GCC"
2157 \&\s-1GCC\s0 has various special options that are used for debugging
2158 either your program or \s-1GCC:\s0
2159 .Ip "\fB\-g\fR" 4
2160 .IX Item "-g"
2161 Produce debugging information in the operating system's native format
2162 (stabs, \s-1COFF\s0, \s-1XCOFF\s0, or \s-1DWARF\s0).  \s-1GDB\s0 can work with this debugging
2163 information.
2165 On most systems that use stabs format, \fB\-g\fR enables use of extra
2166 debugging information that only \s-1GDB\s0 can use; this extra information
2167 makes debugging work better in \s-1GDB\s0 but will probably make other debuggers
2168 crash or
2169 refuse to read the program.  If you want to control for certain whether
2170 to generate the extra information, use \fB\-gstabs+\fR, \fB\-gstabs\fR,
2171 \&\fB\-gxcoff+\fR, \fB\-gxcoff\fR, \fB\-gdwarf-1+\fR, or \fB\-gdwarf-1\fR
2172 (see below).
2174 Unlike most other C compilers, \s-1GCC\s0 allows you to use \fB\-g\fR with
2175 \&\fB\-O\fR.  The shortcuts taken by optimized code may occasionally
2176 produce surprising results: some variables you declared may not exist
2177 at all; flow of control may briefly move where you did not expect it;
2178 some statements may not be executed because they compute constant
2179 results or their values were already at hand; some statements may
2180 execute in different places because they were moved out of loops.
2182 Nevertheless it proves possible to debug optimized output.  This makes
2183 it reasonable to use the optimizer for programs that might have bugs.
2185 The following options are useful when \s-1GCC\s0 is generated with the
2186 capability for more than one debugging format.
2187 .Ip "\fB\-ggdb\fR" 4
2188 .IX Item "-ggdb"
2189 Produce debugging information for use by \s-1GDB\s0.  This means to use the
2190 most expressive format available (\s-1DWARF\s0 2, stabs, or the native format
2191 if neither of those are supported), including \s-1GDB\s0 extensions if at all
2192 possible.
2193 .Ip "\fB\-gstabs\fR" 4
2194 .IX Item "-gstabs"
2195 Produce debugging information in stabs format (if that is supported),
2196 without \s-1GDB\s0 extensions.  This is the format used by \s-1DBX\s0 on most \s-1BSD\s0
2197 systems.  On \s-1MIPS\s0, Alpha and System V Release 4 systems this option
2198 produces stabs debugging output which is not understood by \s-1DBX\s0 or \s-1SDB\s0.
2199 On System V Release 4 systems this option requires the \s-1GNU\s0 assembler.
2200 .Ip "\fB\-gstabs+\fR" 4
2201 .IX Item "-gstabs+"
2202 Produce debugging information in stabs format (if that is supported),
2203 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
2204 use of these extensions is likely to make other debuggers crash or
2205 refuse to read the program.
2206 .Ip "\fB\-gcoff\fR" 4
2207 .IX Item "-gcoff"
2208 Produce debugging information in \s-1COFF\s0 format (if that is supported).
2209 This is the format used by \s-1SDB\s0 on most System V systems prior to
2210 System V Release 4.
2211 .Ip "\fB\-gxcoff\fR" 4
2212 .IX Item "-gxcoff"
2213 Produce debugging information in \s-1XCOFF\s0 format (if that is supported).
2214 This is the format used by the \s-1DBX\s0 debugger on \s-1IBM\s0 \s-1RS/6000\s0 systems.
2215 .Ip "\fB\-gxcoff+\fR" 4
2216 .IX Item "-gxcoff+"
2217 Produce debugging information in \s-1XCOFF\s0 format (if that is supported),
2218 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
2219 use of these extensions is likely to make other debuggers crash or
2220 refuse to read the program, and may cause assemblers other than the \s-1GNU\s0
2221 assembler (\s-1GAS\s0) to fail with an error.
2222 .Ip "\fB\-gdwarf\fR" 4
2223 .IX Item "-gdwarf"
2224 Produce debugging information in \s-1DWARF\s0 version 1 format (if that is
2225 supported).  This is the format used by \s-1SDB\s0 on most System V Release 4
2226 systems.
2227 .Ip "\fB\-gdwarf+\fR" 4
2228 .IX Item "-gdwarf+"
2229 Produce debugging information in \s-1DWARF\s0 version 1 format (if that is
2230 supported), using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger
2231 (\s-1GDB\s0).  The use of these extensions is likely to make other debuggers
2232 crash or refuse to read the program.
2233 .Ip "\fB\-gdwarf-2\fR" 4
2234 .IX Item "-gdwarf-2"
2235 Produce debugging information in \s-1DWARF\s0 version 2 format (if that is
2236 supported).  This is the format used by \s-1DBX\s0 on \s-1IRIX\s0 6.
2237 .Ip "\fB\-g\fR\fIlevel\fR" 4
2238 .IX Item "-glevel"
2239 .PD 0
2240 .Ip "\fB\-ggdb\fR\fIlevel\fR" 4
2241 .IX Item "-ggdblevel"
2242 .Ip "\fB\-gstabs\fR\fIlevel\fR" 4
2243 .IX Item "-gstabslevel"
2244 .Ip "\fB\-gcoff\fR\fIlevel\fR" 4
2245 .IX Item "-gcofflevel"
2246 .Ip "\fB\-gxcoff\fR\fIlevel\fR" 4
2247 .IX Item "-gxcofflevel"
2248 .Ip "\fB\-gdwarf\fR\fIlevel\fR" 4
2249 .IX Item "-gdwarflevel"
2250 .Ip "\fB\-gdwarf-2\fR\fIlevel\fR" 4
2251 .IX Item "-gdwarf-2level"
2253 Request debugging information and also use \fIlevel\fR to specify how
2254 much information.  The default level is 2.
2256 Level 1 produces minimal information, enough for making backtraces in
2257 parts of the program that you don't plan to debug.  This includes
2258 descriptions of functions and external variables, but no information
2259 about local variables and no line numbers.
2261 Level 3 includes extra information, such as all the macro definitions
2262 present in the program.  Some debuggers support macro expansion when
2263 you use \fB\-g3\fR.
2264 .Ip "\fB\-p\fR" 4
2265 .IX Item "-p"
2266 Generate extra code to write profile information suitable for the
2267 analysis program \f(CW\*(C`prof\*(C'\fR.  You must use this option when compiling
2268 the source files you want data about, and you must also use it when
2269 linking.
2270 .Ip "\fB\-pg\fR" 4
2271 .IX Item "-pg"
2272 Generate extra code to write profile information suitable for the
2273 analysis program \f(CW\*(C`gprof\*(C'\fR.  You must use this option when compiling
2274 the source files you want data about, and you must also use it when
2275 linking.
2276 .Ip "\fB\-a\fR" 4
2277 .IX Item "-a"
2278 Generate extra code to write profile information for basic blocks, which will
2279 record the number of times each basic block is executed, the basic block start
2280 address, and the function name containing the basic block.  If \fB\-g\fR is
2281 used, the line number and filename of the start of the basic block will also be
2282 recorded.  If not overridden by the machine description, the default action is
2283 to append to the text file \fIbb.out\fR.
2285 This data could be analyzed by a program like \f(CW\*(C`tcov\*(C'\fR.  Note,
2286 however, that the format of the data is not what \f(CW\*(C`tcov\*(C'\fR expects.
2287 Eventually \s-1GNU\s0 \f(CW\*(C`gprof\*(C'\fR should be extended to process this data.
2288 .Ip "\fB\-Q\fR" 4
2289 .IX Item "-Q"
2290 Makes the compiler print out each function name as it is compiled, and
2291 print some statistics about each pass when it finishes.
2292 .Ip "\fB\-ax\fR" 4
2293 .IX Item "-ax"
2294 Generate extra code to profile basic blocks.  Your executable will
2295 produce output that is a superset of that produced when \fB\-a\fR is
2296 used.  Additional output is the source and target address of the basic
2297 blocks where a jump takes place, the number of times a jump is executed,
2298 and (optionally) the complete sequence of basic blocks being executed.
2299 The output is appended to file \fIbb.out\fR.
2301 You can examine different profiling aspects without recompilation.  Your
2302 executable will read a list of function names from file \fIbb.in\fR.
2303 Profiling starts when a function on the list is entered and stops when
2304 that invocation is exited.  To exclude a function from profiling, prefix
2305 its name with `\-'.  If a function name is not unique, you can
2306 disambiguate it by writing it in the form
2307 \&\fB/path/filename.d:functionname\fR.  Your executable will write the
2308 available paths and filenames in file \fIbb.out\fR.
2310 Several function names have a special meaning:
2311 .RS 4
2312 .if n .Ip "\f(CW""_\|_bb_jumps_\|_""\fR" 4
2313 .el .Ip "\f(CW_\|_bb_jumps_\|_\fR" 4
2314 .IX Item "__bb_jumps__"
2315 Write source, target and frequency of jumps to file \fIbb.out\fR.
2316 .if n .Ip "\f(CW""_\|_bb_hidecall_\|_""\fR" 4
2317 .el .Ip "\f(CW_\|_bb_hidecall_\|_\fR" 4
2318 .IX Item "__bb_hidecall__"
2319 Exclude function calls from frequency count.
2320 .if n .Ip "\f(CW""_\|_bb_showret_\|_""\fR" 4
2321 .el .Ip "\f(CW_\|_bb_showret_\|_\fR" 4
2322 .IX Item "__bb_showret__"
2323 Include function returns in frequency count.
2324 .if n .Ip "\f(CW""_\|_bb_trace_\|_""\fR" 4
2325 .el .Ip "\f(CW_\|_bb_trace_\|_\fR" 4
2326 .IX Item "__bb_trace__"
2327 Write the sequence of basic blocks executed to file \fIbbtrace.gz\fR.
2328 The file will be compressed using the program \fBgzip\fR, which must
2329 exist in your \fB\s-1PATH\s0\fR.  On systems without the \fBpopen\fR
2330 function, the file will be named \fIbbtrace\fR and will not be
2331 compressed.  \fBProfiling for even a few seconds on these systems
2332 will produce a very large file.\fR  Note: \f(CW\*(C`_\|_bb_hidecall_\|_\*(C'\fR and
2333 \&\f(CW\*(C`_\|_bb_showret_\|_\*(C'\fR will not affect the sequence written to
2334 \&\fIbbtrace.gz\fR.
2336 .RS 4
2338 Here's a short example using different profiling parameters
2339 in file \fIbb.in\fR.  Assume function \f(CW\*(C`foo\*(C'\fR consists of basic blocks
2340 1 and 2 and is called twice from block 3 of function \f(CW\*(C`main\*(C'\fR.  After
2341 the calls, block 3 transfers control to block 4 of \f(CW\*(C`main\*(C'\fR.
2343 With \f(CW\*(C`_\|_bb_trace_\|_\*(C'\fR and \f(CW\*(C`main\*(C'\fR contained in file \fIbb.in\fR,
2344 the following sequence of blocks is written to file \fIbbtrace.gz\fR:
2345 0 3 1 2 1 2 4.  The return from block 2 to block 3 is not shown, because
2346 the return is to a point inside the block and not to the top.  The
2347 block address 0 always indicates, that control is transferred
2348 to the trace from somewhere outside the observed functions.  With
2349 \&\fB\-foo\fR added to \fIbb.in\fR, the blocks of function
2350 \&\f(CW\*(C`foo\*(C'\fR are removed from the trace, so only 0 3 4 remains.
2352 With \f(CW\*(C`_\|_bb_jumps_\|_\*(C'\fR and \f(CW\*(C`main\*(C'\fR contained in file \fIbb.in\fR,
2353 jump frequencies will be written to file \fIbb.out\fR.  The
2354 frequencies are obtained by constructing a trace of blocks
2355 and incrementing a counter for every neighbouring pair of blocks
2356 in the trace.  The trace 0 3 1 2 1 2 4 displays the following
2357 frequencies:
2359 .Vb 5
2360 \&        Jump from block 0x0 to block 0x3 executed 1 time(s)
2361 \&        Jump from block 0x3 to block 0x1 executed 1 time(s)
2362 \&        Jump from block 0x1 to block 0x2 executed 2 time(s)
2363 \&        Jump from block 0x2 to block 0x1 executed 1 time(s)
2364 \&        Jump from block 0x2 to block 0x4 executed 1 time(s)
2366 With \f(CW\*(C`_\|_bb_hidecall_\|_\*(C'\fR, control transfer due to call instructions
2367 is removed from the trace, that is the trace is cut into three parts: 0
2368 3 4, 0 1 2 and 0 1 2.  With \f(CW\*(C`_\|_bb_showret_\|_\*(C'\fR, control transfer due
2369 to return instructions is added to the trace.  The trace becomes: 0 3 1
2370 2 3 1 2 3 4.  Note, that this trace is not the same, as the sequence
2371 written to \fIbbtrace.gz\fR.  It is solely used for counting jump
2372 frequencies.
2374 .Ip "\fB\-fprofile-arcs\fR" 4
2375 .IX Item "-fprofile-arcs"
2376 Instrument \fIarcs\fR during compilation.  For each function of your
2377 program, \s-1GCC\s0 creates a program flow graph, then finds a spanning tree
2378 for the graph.  Only arcs that are not on the spanning tree have to be
2379 instrumented: the compiler adds code to count the number of times that these
2380 arcs are executed.  When an arc is the only exit or only entrance to a
2381 block, the instrumentation code can be added to the block; otherwise, a
2382 new basic block must be created to hold the instrumentation code.
2384 Since not every arc in the program must be instrumented, programs
2385 compiled with this option run faster than programs compiled with
2386 \&\fB\-a\fR, which adds instrumentation code to every basic block in the
2387 program.  The tradeoff: since \f(CW\*(C`gcov\*(C'\fR does not have
2388 execution counts for all branches, it must start with the execution
2389 counts for the instrumented branches, and then iterate over the program
2390 flow graph until the entire graph has been solved.  Hence, \f(CW\*(C`gcov\*(C'\fR
2391 runs a little more slowly than a program which uses information from
2392 \&\fB\-a\fR.
2394 \&\fB\-fprofile-arcs\fR also makes it possible to estimate branch
2395 probabilities, and to calculate basic block execution counts.  In
2396 general, basic block execution counts do not give enough information to
2397 estimate all branch probabilities.  When the compiled program exits, it
2398 saves the arc execution counts to a file called
2399 \&\fI\fIsourcename\fI.da\fR.  Use the compiler option
2400 \&\fB\-fbranch-probabilities\fR when recompiling, to optimize using estimated
2401 branch probabilities.
2402 .Ip "\fB\-ftest-coverage\fR" 4
2403 .IX Item "-ftest-coverage"
2404 Create data files for the \f(CW\*(C`gcov\*(C'\fR code-coverage utility.
2405 The data file names begin with the name of your source file:
2406 .RS 4
2407 .Ip "\fIsourcename\fR\fB.bb\fR" 4
2408 .IX Item "sourcename.bb"
2409 A mapping from basic blocks to line numbers, which \f(CW\*(C`gcov\*(C'\fR uses to
2410 associate basic block execution counts with line numbers.
2411 .Ip "\fIsourcename\fR\fB.bbg\fR" 4
2412 .IX Item "sourcename.bbg"
2413 A list of all arcs in the program flow graph.  This allows \f(CW\*(C`gcov\*(C'\fR
2414 to reconstruct the program flow graph, so that it can compute all basic
2415 block and arc execution counts from the information in the
2416 \&\f(CW\*(C`\f(CIsourcename\f(CW.da\*(C'\fR file (this last file is the output from
2417 \&\fB\-fprofile-arcs\fR).
2419 .RS 4
2421 .Ip "\fB\-d\fR\fIletters\fR" 4
2422 .IX Item "-dletters"
2423 Says to make debugging dumps during compilation at times specified by
2424 \&\fIletters\fR.  This is used for debugging the compiler.  The file names
2425 for most of the dumps are made by appending a pass number and a word to
2426 the source file name (e.g.  \fIfoo.c.00.rtl\fR or \fIfoo.c.01.sibling\fR). 
2427 Here are the possible letters for use in \fIletters\fR, and their meanings:
2428 .RS 4
2429 .Ip "\fBA\fR" 4
2430 .IX Item "A"
2431 Annotate the assembler output with miscellaneous debugging information.
2432 .Ip "\fBb\fR" 4
2433 .IX Item "b"
2434 Dump after computing branch probabilities, to \fI\fIfile\fI.11.bp\fR.
2435 .Ip "\fBB\fR" 4
2436 .IX Item "B"
2437 Dump after block reordering, to \fI\fIfile\fI.26.bbro\fR.
2438 .Ip "\fBc\fR" 4
2439 .IX Item "c"
2440 Dump after instruction combination, to the file \fI\fIfile\fI.14.combine\fR.
2441 .Ip "\fBC\fR" 4
2442 .IX Item "C"
2443 Dump after the first if conversion, to the file \fI\fIfile\fI.15.ce\fR.
2444 .Ip "\fBd\fR" 4
2445 .IX Item "d"
2446 Dump after delayed branch scheduling, to \fI\fIfile\fI.29.dbr\fR.
2447 .Ip "\fBD\fR" 4
2448 .IX Item "D"
2449 Dump all macro definitions, at the end of preprocessing, in addition to
2450 normal output.
2451 .Ip "\fBe\fR" 4
2452 .IX Item "e"
2453 Dump after \s-1SSA\s0 optimizations, to \fI\fIfile\fI.05.ssa\fR and
2454 \&\fI\fIfile\fI.06.ussa\fR.
2455 .Ip "\fBE\fR" 4
2456 .IX Item "E"
2457 Dump after the second if conversion, to \fI\fIfile\fI.24.ce2\fR.
2458 .Ip "\fBf\fR" 4
2459 .IX Item "f"
2460 Dump after life analysis, to \fI\fIfile\fI.13.life\fR.
2461 .Ip "\fBF\fR" 4
2462 .IX Item "F"
2463 Dump after purging \f(CW\*(C`ADDRESSOF\*(C'\fR codes, to \fI\fIfile\fI.04.addressof\fR.
2464 .Ip "\fBg\fR" 4
2465 .IX Item "g"
2466 Dump after global register allocation, to \fI\fIfile\fI.19.greg\fR.
2467 .Ip "\fBo\fR" 4
2468 .IX Item "o"
2469 Dump after post-reload \s-1CSE\s0 and other optimizations, to \fI\fIfile\fI.20.postreload\fR.
2470 .Ip "\fBG\fR" 4
2471 .IX Item "G"
2472 Dump after \s-1GCSE\s0, to \fI\fIfile\fI.08.gcse\fR.
2473 .Ip "\fBi\fR" 4
2474 .IX Item "i"
2475 Dump after sibling call optimizations, to \fI\fIfile\fI.01.sibling\fR.
2476 .Ip "\fBj\fR" 4
2477 .IX Item "j"
2478 Dump after the first jump optimization, to \fI\fIfile\fI.02.jump\fR.
2479 .Ip "\fBJ\fR" 4
2480 .IX Item "J"
2481 Dump after the last jump optimization, to \fI\fIfile\fI.27.jump2\fR.
2482 .Ip "\fBk\fR" 4
2483 .IX Item "k"
2484 Dump after conversion from registers to stack, to \fI\fIfile\fI.29.stack\fR.
2485 .Ip "\fBl\fR" 4
2486 .IX Item "l"
2487 Dump after local register allocation, to \fI\fIfile\fI.18.lreg\fR.
2488 .Ip "\fBL\fR" 4
2489 .IX Item "L"
2490 Dump after loop optimization, to \fI\fIfile\fI.09.loop\fR.
2491 .Ip "\fBM\fR" 4
2492 .IX Item "M"
2493 Dump after performing the machine dependent reorganisation pass, to
2494 \&\fI\fIfile\fI.28.mach\fR. 
2495 .Ip "\fBn\fR" 4
2496 .IX Item "n"
2497 Dump after register renumbering, to \fI\fIfile\fI.23.rnreg\fR.
2498 .Ip "\fBN\fR" 4
2499 .IX Item "N"
2500 Dump after the register move pass, to \fI\fIfile\fI.16.regmove\fR.
2501 .Ip "\fBr\fR" 4
2502 .IX Item "r"
2503 Dump after \s-1RTL\s0 generation, to \fI\fIfile\fI.00.rtl\fR.
2504 .Ip "\fBR\fR" 4
2505 .IX Item "R"
2506 Dump after the second instruction scheduling pass, to
2507 \&\fI\fIfile\fI.25.sched2\fR.
2508 .Ip "\fBs\fR" 4
2509 .IX Item "s"
2510 Dump after \s-1CSE\s0 (including the jump optimization that sometimes follows
2511 \&\s-1CSE\s0), to \fI\fIfile\fI.03.cse\fR. 
2512 .Ip "\fBS\fR" 4
2513 .IX Item "S"
2514 Dump after the first instruction scheduling pass, to
2515 \&\fI\fIfile\fI.17.sched\fR.
2516 .Ip "\fBt\fR" 4
2517 .IX Item "t"
2518 Dump after the second \s-1CSE\s0 pass (including the jump optimization that
2519 sometimes follows \s-1CSE\s0), to \fI\fIfile\fI.10.cse2\fR.
2520 .Ip "\fBw\fR" 4
2521 .IX Item "w"
2522 Dump after the second flow pass, to \fI\fIfile\fI.21.flow2\fR.
2523 .Ip "\fBX\fR" 4
2524 .IX Item "X"
2525 Dump after dead code elimination, to \fI\fIfile\fI.06.dce\fR.
2526 .Ip "\fBz\fR" 4
2527 .IX Item "z"
2528 Dump after the peephole pass, to \fI\fIfile\fI.22.peephole2\fR.
2529 .Ip "\fBa\fR" 4
2530 .IX Item "a"
2531 Produce all the dumps listed above.
2532 .Ip "\fBm\fR" 4
2533 .IX Item "m"
2534 Print statistics on memory usage, at the end of the run, to
2535 standard error.
2536 .Ip "\fBp\fR" 4
2537 .IX Item "p"
2538 Annotate the assembler output with a comment indicating which
2539 pattern and alternative was used.  The length of each instruction is
2540 also printed.
2541 .Ip "\fBP\fR" 4
2542 .IX Item "P"
2543 Dump the \s-1RTL\s0 in the assembler output as a comment before each instruction.
2544 Also turns on \fB\-dp\fR annotation.
2545 .Ip "\fBv\fR" 4
2546 .IX Item "v"
2547 For each of the other indicated dump files (except for
2548 \&\fI\fIfile\fI.00.rtl\fR), dump a representation of the control flow graph
2549 suitable for viewing with \s-1VCG\s0 to \fI\fIfile\fI.\fIpass\fI.vcg\fR.
2550 .Ip "\fBx\fR" 4
2551 .IX Item "x"
2552 Just generate \s-1RTL\s0 for a function instead of compiling it.  Usually used
2553 with \fBr\fR.
2554 .Ip "\fBy\fR" 4
2555 .IX Item "y"
2556 Dump debugging information during parsing, to standard error.
2558 .RS 4
2560 .Ip "\fB\-fdump-unnumbered\fR" 4
2561 .IX Item "-fdump-unnumbered"
2562 When doing debugging dumps (see \-d option above), suppress instruction
2563 numbers and line number note output.  This makes it more feasible to
2564 use diff on debugging dumps for compiler invocations with different
2565 options, in particular with and without \-g.
2566 .Ip "\fB\-fdump-translation-unit-\fR\fIfile\fR \fB(C and \*(C+ only)\fR" 4
2567 .IX Item "-fdump-translation-unit-file (C and  only)"
2568 Dump a representation of the tree structure for the entire translation
2569 unit to \fIfile\fR.
2570 .Ip "\fB\-fpretend-float\fR" 4
2571 .IX Item "-fpretend-float"
2572 When running a cross-compiler, pretend that the target machine uses the
2573 same floating point format as the host machine.  This causes incorrect
2574 output of the actual floating constants, but the actual instruction
2575 sequence will probably be the same as \s-1GCC\s0 would make when running on
2576 the target machine.
2577 .Ip "\fB\-save-temps\fR" 4
2578 .IX Item "-save-temps"
2579 Store the usual ``temporary'' intermediate files permanently; place them
2580 in the current directory and name them based on the source file.  Thus,
2581 compiling \fIfoo.c\fR with \fB\-c \-save-temps\fR would produce files
2582 \&\fIfoo.i\fR and \fIfoo.s\fR, as well as \fIfoo.o\fR.  This creates a
2583 preprocessed \fIfoo.i\fR output file even though the compiler now
2584 normally uses an integrated preprocessor.
2585 .Ip "\fB\-time\fR" 4
2586 .IX Item "-time"
2587 Report the \s-1CPU\s0 time taken by each subprocess in the compilation
2588 sequence.  For C source files, this is the compiler proper and assembler
2589 (plus the linker if linking is done).  The output looks like this:
2591 .Vb 2
2592 \&        # cc1 0.12 0.01
2593 \&        # as 0.00 0.01
2595 The first number on each line is the ``user time,'' that is time spent
2596 executing the program itself.  The second number is ``system time,''
2597 time spent executing operating system routines on behalf of the program.
2598 Both numbers are in seconds.
2599 .Ip "\fB\-print-file-name=\fR\fIlibrary\fR" 4
2600 .IX Item "-print-file-name=library"
2601 Print the full absolute name of the library file \fIlibrary\fR that
2602 would be used when linking\-\-\-and don't do anything else.  With this
2603 option, \s-1GCC\s0 does not compile or link anything; it just prints the
2604 file name.
2605 .Ip "\fB\-print-prog-name=\fR\fIprogram\fR" 4
2606 .IX Item "-print-prog-name=program"
2607 Like \fB\-print-file-name\fR, but searches for a program such as \fBcpp\fR.
2608 .Ip "\fB\-print-libgcc-file-name\fR" 4
2609 .IX Item "-print-libgcc-file-name"
2610 Same as \fB\-print-file-name=libgcc.a\fR.
2612 This is useful when you use \fB\-nostdlib\fR or \fB\-nodefaultlibs\fR
2613 but you do want to link with \fIlibgcc.a\fR.  You can do
2615 .Vb 1
2616 \&        gcc -nostdlib I<files>... `gcc -print-libgcc-file-name`
2618 .Ip "\fB\-print-search-dirs\fR" 4
2619 .IX Item "-print-search-dirs"
2620 Print the name of the configured installation directory and a list of
2621 program and library directories gcc will search\-\-\-and don't do anything else.
2623 This is useful when gcc prints the error message
2624 \&\fBinstallation problem, cannot exec cpp0: No such file or directory\fR.
2625 To resolve this you either need to put \fIcpp0\fR and the other compiler
2626 components where gcc expects to find them, or you can set the environment
2627 variable \fB\s-1GCC_EXEC_PREFIX\s0\fR to the directory where you installed them.
2628 Don't forget the trailing '/'.
2629 .Sh "Options That Control Optimization"
2630 .IX Subsection "Options That Control Optimization"
2631 These options control various sorts of optimizations:
2632 .Ip "\fB\-O\fR" 4
2633 .IX Item "-O"
2634 .PD 0
2635 .Ip "\fB\-O1\fR" 4
2636 .IX Item "-O1"
2638 Optimize.  Optimizing compilation takes somewhat more time, and a lot
2639 more memory for a large function.
2641 Without \fB\-O\fR, the compiler's goal is to reduce the cost of
2642 compilation and to make debugging produce the expected results.
2643 Statements are independent: if you stop the program with a breakpoint
2644 between statements, you can then assign a new value to any variable or
2645 change the program counter to any other statement in the function and
2646 get exactly the results you would expect from the source code.
2648 Without \fB\-O\fR, the compiler only allocates variables declared
2649 \&\f(CW\*(C`register\*(C'\fR in registers.  The resulting compiled code is a little
2650 worse than produced by \s-1PCC\s0 without \fB\-O\fR.
2652 With \fB\-O\fR, the compiler tries to reduce code size and execution
2653 time.
2655 When you specify \fB\-O\fR, the compiler turns on \fB\-fthread-jumps\fR
2656 and \fB\-fdefer-pop\fR on all machines.  The compiler turns on
2657 \&\fB\-fdelayed-branch\fR on machines that have delay slots, and
2658 \&\fB\-fomit-frame-pointer\fR on machines that can support debugging even
2659 without a frame pointer.  On some machines the compiler also turns
2660 on other flags.
2661 .Ip "\fB\-O2\fR" 4
2662 .IX Item "-O2"
2663 Optimize even more.  \s-1GCC\s0 performs nearly all supported optimizations
2664 that do not involve a space-speed tradeoff.  The compiler does not
2665 perform loop unrolling or function inlining when you specify \fB\-O2\fR.
2666 As compared to \fB\-O\fR, this option increases both compilation time
2667 and the performance of the generated code.
2669 \&\fB\-O2\fR turns on all optional optimizations except for loop unrolling,
2670 function inlining, and register renaming.  It also turns on the
2671 \&\fB\-fforce-mem\fR option on all machines and frame pointer elimination
2672 on machines where doing so does not interfere with debugging.
2673 .Ip "\fB\-O3\fR" 4
2674 .IX Item "-O3"
2675 Optimize yet more.  \fB\-O3\fR turns on all optimizations specified by
2676 \&\fB\-O2\fR and also turns on the \fB\-finline-functions\fR and
2677 \&\fB\-frename-registers\fR options.
2678 .Ip "\fB\-O0\fR" 4
2679 .IX Item "-O0"
2680 Do not optimize.
2681 .Ip "\fB\-Os\fR" 4
2682 .IX Item "-Os"
2683 Optimize for size.  \fB\-Os\fR enables all \fB\-O2\fR optimizations that
2684 do not typically increase code size.  It also performs further
2685 optimizations designed to reduce code size.
2687 If you use multiple \fB\-O\fR options, with or without level numbers,
2688 the last such option is the one that is effective.
2690 Options of the form \fB\-f\fR\fIflag\fR specify machine-independent
2691 flags.  Most flags have both positive and negative forms; the negative
2692 form of \fB\-ffoo\fR would be \fB\-fno-foo\fR.  In the table below,
2693 only one of the forms is listed\-\-\-the one which is not the default.
2694 You can figure out the other form by either removing \fBno-\fR or
2695 adding it.
2696 .Ip "\fB\-ffloat-store\fR" 4
2697 .IX Item "-ffloat-store"
2698 Do not store floating point variables in registers, and inhibit other
2699 options that might change whether a floating point value is taken from a
2700 register or memory.
2702 This option prevents undesirable excess precision on machines such as
2703 the 68000 where the floating registers (of the 68881) keep more
2704 precision than a \f(CW\*(C`double\*(C'\fR is supposed to have.  Similarly for the
2705 x86 architecture.  For most programs, the excess precision does only
2706 good, but a few programs rely on the precise definition of \s-1IEEE\s0 floating
2707 point.  Use \fB\-ffloat-store\fR for such programs, after modifying
2708 them to store all pertinent intermediate computations into variables.
2709 .Ip "\fB\-fno-default-inline\fR" 4
2710 .IX Item "-fno-default-inline"
2711 Do not make member functions inline by default merely because they are
2712 defined inside the class scope (\*(C+ only).  Otherwise, when you specify
2713 \&\fB\-O\fR, member functions defined inside class scope are compiled
2714 inline by default; i.e., you don't need to add \fBinline\fR in front of
2715 the member function name.
2716 .Ip "\fB\-fno-defer-pop\fR" 4
2717 .IX Item "-fno-defer-pop"
2718 Always pop the arguments to each function call as soon as that function
2719 returns.  For machines which must pop arguments after a function call,
2720 the compiler normally lets arguments accumulate on the stack for several
2721 function calls and pops them all at once.
2722 .Ip "\fB\-fforce-mem\fR" 4
2723 .IX Item "-fforce-mem"
2724 Force memory operands to be copied into registers before doing
2725 arithmetic on them.  This produces better code by making all memory
2726 references potential common subexpressions.  When they are not common
2727 subexpressions, instruction combination should eliminate the separate
2728 register-load.  The \fB\-O2\fR option turns on this option.
2729 .Ip "\fB\-fforce-addr\fR" 4
2730 .IX Item "-fforce-addr"
2731 Force memory address constants to be copied into registers before
2732 doing arithmetic on them.  This may produce better code just as
2733 \&\fB\-fforce-mem\fR may.
2734 .Ip "\fB\-fomit-frame-pointer\fR" 4
2735 .IX Item "-fomit-frame-pointer"
2736 Don't keep the frame pointer in a register for functions that
2737 don't need one.  This avoids the instructions to save, set up and
2738 restore frame pointers; it also makes an extra register available
2739 in many functions.  \fBIt also makes debugging impossible on
2740 some machines.\fR
2742 On some machines, such as the Vax, this flag has no effect, because
2743 the standard calling sequence automatically handles the frame pointer
2744 and nothing is saved by pretending it doesn't exist.  The
2745 machine-description macro \f(CW\*(C`FRAME_POINTER_REQUIRED\*(C'\fR controls
2746 whether a target machine supports this flag.  
2747 .Ip "\fB\-foptimize-sibling-calls\fR" 4
2748 .IX Item "-foptimize-sibling-calls"
2749 Optimize sibling and tail recursive calls.
2750 .Ip "\fB\-ftrapv\fR" 4
2751 .IX Item "-ftrapv"
2752 This option generates traps for signed overflow on addition, subtraction,
2753 multiplication operations.
2754 .Ip "\fB\-fno-inline\fR" 4
2755 .IX Item "-fno-inline"
2756 Don't pay attention to the \f(CW\*(C`inline\*(C'\fR keyword.  Normally this option
2757 is used to keep the compiler from expanding any functions inline.
2758 Note that if you are not optimizing, no functions can be expanded inline.
2759 .Ip "\fB\-finline-functions\fR" 4
2760 .IX Item "-finline-functions"
2761 Integrate all simple functions into their callers.  The compiler
2762 heuristically decides which functions are simple enough to be worth
2763 integrating in this way.
2765 If all calls to a given function are integrated, and the function is
2766 declared \f(CW\*(C`static\*(C'\fR, then the function is normally not output as
2767 assembler code in its own right.
2768 .Ip "\fB\-finline-limit=\fR\fIn\fR" 4
2769 .IX Item "-finline-limit=n"
2770 By default, gcc limits the size of functions that can be inlined.  This flag
2771 allows the control of this limit for functions that are explicitly marked as
2772 inline (ie marked with the inline keyword or defined within the class 
2773 definition in c++).  \fIn\fR is the size of functions that can be inlined in 
2774 number of pseudo instructions (not counting parameter handling).  The default
2775 value of n is 10000.  Increasing this value can result in more inlined code at
2776 the cost of compilation time and memory consumption.  Decreasing usually makes
2777 the compilation faster and less code will be inlined (which presumably 
2778 means slower programs).  This option is particularly useful for programs that 
2779 use inlining heavily such as those based on recursive templates with c++.
2781 \&\fINote:\fR pseudo instruction represents, in this particular context, an
2782 abstract measurement of function's size.  In no way, it represents a count
2783 of assembly instructions and as such its exact meaning might change from one
2784 release to an another.
2785 .Ip "\fB\-fkeep-inline-functions\fR" 4
2786 .IX Item "-fkeep-inline-functions"
2787 Even if all calls to a given function are integrated, and the function
2788 is declared \f(CW\*(C`static\*(C'\fR, nevertheless output a separate run-time
2789 callable version of the function.  This switch does not affect
2790 \&\f(CW\*(C`extern inline\*(C'\fR functions.
2791 .Ip "\fB\-fkeep-static-consts\fR" 4
2792 .IX Item "-fkeep-static-consts"
2793 Emit variables declared \f(CW\*(C`static const\*(C'\fR when optimization isn't turned
2794 on, even if the variables aren't referenced.
2796 \&\s-1GCC\s0 enables this option by default.  If you want to force the compiler to
2797 check if the variable was referenced, regardless of whether or not
2798 optimization is turned on, use the \fB\-fno-keep-static-consts\fR option.
2799 .Ip "\fB\-fno-function-cse\fR" 4
2800 .IX Item "-fno-function-cse"
2801 Do not put function addresses in registers; make each instruction that
2802 calls a constant function contain the function's address explicitly.
2804 This option results in less efficient code, but some strange hacks
2805 that alter the assembler output may be confused by the optimizations
2806 performed when this option is not used.
2807 .Ip "\fB\-ffast-math\fR" 4
2808 .IX Item "-ffast-math"
2809 This option allows \s-1GCC\s0 to violate some \s-1ISO\s0 or \s-1IEEE\s0 rules and/or
2810 specifications in the interest of optimizing code for speed.  For
2811 example, it allows the compiler to assume arguments to the \f(CW\*(C`sqrt\*(C'\fR
2812 function are non-negative numbers and that no floating-point values
2813 are NaNs.
2815 This option should never be turned on by any \fB\-O\fR option since
2816 it can result in incorrect output for programs which depend on
2817 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
2818 math functions.
2819 .Ip "\fB\-fno-math-errno\fR" 4
2820 .IX Item "-fno-math-errno"
2821 Do not set \s-1ERRNO\s0 after calling math functions that are executed
2822 with a single instruction, e.g., sqrt.  A program that relies on
2823 \&\s-1IEEE\s0 exceptions for math error handling may want to use this flag
2824 for speed while maintaining \s-1IEEE\s0 arithmetic compatibility.
2826 The default is \fB\-fmath-errno\fR.  The \fB\-ffast-math\fR option
2827 sets \fB\-fno-math-errno\fR.
2829 The following options control specific optimizations.  The \fB\-O2\fR
2830 option turns on all of these optimizations except \fB\-funroll-loops\fR
2831 and \fB\-funroll-all-loops\fR.  On most machines, the \fB\-O\fR option
2832 turns on the \fB\-fthread-jumps\fR and \fB\-fdelayed-branch\fR options,
2833 but specific machines may handle it differently.
2835 You can use the following flags in the rare cases when ``fine-tuning''
2836 of optimizations to be performed is desired.
2837 .Ip "\fB\-fstrength-reduce\fR" 4
2838 .IX Item "-fstrength-reduce"
2839 Perform the optimizations of loop strength reduction and
2840 elimination of iteration variables.
2841 .Ip "\fB\-fthread-jumps\fR" 4
2842 .IX Item "-fthread-jumps"
2843 Perform optimizations where we check to see if a jump branches to a
2844 location where another comparison subsumed by the first is found.  If
2845 so, the first branch is redirected to either the destination of the
2846 second branch or a point immediately following it, depending on whether
2847 the condition is known to be true or false.
2848 .Ip "\fB\-fcse-follow-jumps\fR" 4
2849 .IX Item "-fcse-follow-jumps"
2850 In common subexpression elimination, scan through jump instructions
2851 when the target of the jump is not reached by any other path.  For
2852 example, when \s-1CSE\s0 encounters an \f(CW\*(C`if\*(C'\fR statement with an
2853 \&\f(CW\*(C`else\*(C'\fR clause, \s-1CSE\s0 will follow the jump when the condition
2854 tested is false.
2855 .Ip "\fB\-fcse-skip-blocks\fR" 4
2856 .IX Item "-fcse-skip-blocks"
2857 This is similar to \fB\-fcse-follow-jumps\fR, but causes \s-1CSE\s0 to
2858 follow jumps which conditionally skip over blocks.  When \s-1CSE\s0
2859 encounters a simple \f(CW\*(C`if\*(C'\fR statement with no else clause,
2860 \&\fB\-fcse-skip-blocks\fR causes \s-1CSE\s0 to follow the jump around the
2861 body of the \f(CW\*(C`if\*(C'\fR.
2862 .Ip "\fB\-frerun-cse-after-loop\fR" 4
2863 .IX Item "-frerun-cse-after-loop"
2864 Re-run common subexpression elimination after loop optimizations has been
2865 performed.
2866 .Ip "\fB\-frerun-loop-opt\fR" 4
2867 .IX Item "-frerun-loop-opt"
2868 Run the loop optimizer twice.
2869 .Ip "\fB\-fgcse\fR" 4
2870 .IX Item "-fgcse"
2871 Perform a global common subexpression elimination pass.
2872 This pass also performs global constant and copy propagation.
2873 .Ip "\fB\-fdelete-null-pointer-checks\fR" 4
2874 .IX Item "-fdelete-null-pointer-checks"
2875 Use global dataflow analysis to identify and eliminate useless null
2876 pointer checks.  Programs which rely on \s-1NULL\s0 pointer dereferences \fInot\fR
2877 halting the program may not work properly with this option.  Use
2878 \&\-fno-delete-null-pointer-checks to disable this optimizing for programs
2879 which depend on that behavior.
2880 .Ip "\fB\-fexpensive-optimizations\fR" 4
2881 .IX Item "-fexpensive-optimizations"
2882 Perform a number of minor optimizations that are relatively expensive.
2883 .Ip "\fB\-foptimize-register-move\fR" 4
2884 .IX Item "-foptimize-register-move"
2885 .PD 0
2886 .Ip "\fB\-fregmove\fR" 4
2887 .IX Item "-fregmove"
2889 Attempt to reassign register numbers in move instructions and as
2890 operands of other simple instructions in order to maximize the amount of
2891 register tying.  This is especially helpful on machines with two-operand
2892 instructions.  \s-1GCC\s0 enables this optimization by default with \fB\-O2\fR
2893 or higher.
2895 Note \fB\-fregmove\fR and \fB\-foptimize-register-move\fR are the same
2896 optimization.
2897 .Ip "\fB\-fdelayed-branch\fR" 4
2898 .IX Item "-fdelayed-branch"
2899 If supported for the target machine, attempt to reorder instructions
2900 to exploit instruction slots available after delayed branch
2901 instructions.
2902 .Ip "\fB\-fschedule-insns\fR" 4
2903 .IX Item "-fschedule-insns"
2904 If supported for the target machine, attempt to reorder instructions to
2905 eliminate execution stalls due to required data being unavailable.  This
2906 helps machines that have slow floating point or memory load instructions
2907 by allowing other instructions to be issued until the result of the load
2908 or floating point instruction is required.
2909 .Ip "\fB\-fschedule-insns2\fR" 4
2910 .IX Item "-fschedule-insns2"
2911 Similar to \fB\-fschedule-insns\fR, but requests an additional pass of
2912 instruction scheduling after register allocation has been done.  This is
2913 especially useful on machines with a relatively small number of
2914 registers and where memory load instructions take more than one cycle.
2915 .Ip "\fB\-ffunction-sections\fR" 4
2916 .IX Item "-ffunction-sections"
2917 .PD 0
2918 .Ip "\fB\-fdata-sections\fR" 4
2919 .IX Item "-fdata-sections"
2921 Place each function or data item into its own section in the output
2922 file if the target supports arbitrary sections.  The name of the
2923 function or the name of the data item determines the section's name
2924 in the output file.
2926 Use these options on systems where the linker can perform optimizations
2927 to improve locality of reference in the instruction space.  \s-1HPPA\s0
2928 processors running \s-1HP-UX\s0 and Sparc processors running Solaris 2 have
2929 linkers with such optimizations.  Other systems using the \s-1ELF\s0 object format
2930 as well as \s-1AIX\s0 may have these optimizations in the future.
2932 Only use these options when there are significant benefits from doing
2933 so.  When you specify these options, the assembler and linker will
2934 create larger object and executable files and will also be slower.
2935 You will not be able to use \f(CW\*(C`gprof\*(C'\fR on all systems if you
2936 specify this option and you may have problems with debugging if
2937 you specify both this option and \fB\-g\fR.
2938 .Ip "\fB\-fcaller-saves\fR" 4
2939 .IX Item "-fcaller-saves"
2940 Enable values to be allocated in registers that will be clobbered by
2941 function calls, by emitting extra instructions to save and restore the
2942 registers around such calls.  Such allocation is done only when it
2943 seems to result in better code than would otherwise be produced.
2945 This option is always enabled by default on certain machines, usually
2946 those which have no call-preserved registers to use instead.
2948 For all machines, optimization level 2 and higher enables this flag by
2949 default.
2950 .Ip "\fB\-funroll-loops\fR" 4
2951 .IX Item "-funroll-loops"
2952 Perform the optimization of loop unrolling.  This is only done for loops
2953 whose number of iterations can be determined at compile time or run time.
2954 \&\fB\-funroll-loops\fR implies both \fB\-fstrength-reduce\fR and
2955 \&\fB\-frerun-cse-after-loop\fR.
2956 .Ip "\fB\-funroll-all-loops\fR" 4
2957 .IX Item "-funroll-all-loops"
2958 Perform the optimization of loop unrolling.  This is done for all loops
2959 and usually makes programs run more slowly.  \fB\-funroll-all-loops\fR
2960 implies \fB\-fstrength-reduce\fR as well as \fB\-frerun-cse-after-loop\fR.
2961 .Ip "\fB\-fmove-all-movables\fR" 4
2962 .IX Item "-fmove-all-movables"
2963 Forces all invariant computations in loops to be moved
2964 outside the loop.
2965 .Ip "\fB\-freduce-all-givs\fR" 4
2966 .IX Item "-freduce-all-givs"
2967 Forces all general-induction variables in loops to be
2968 strength-reduced.
2970 \&\fINote:\fR When compiling programs written in Fortran,
2971 \&\fB\-fmove-all-movables\fR and \fB\-freduce-all-givs\fR are enabled
2972 by default when you use the optimizer.
2974 These options may generate better or worse code; results are highly
2975 dependent on the structure of loops within the source code.
2977 These two options are intended to be removed someday, once
2978 they have helped determine the efficacy of various
2979 approaches to improving loop optimizations.
2981 Please let us (<\fBgcc@gcc.gnu.org\fR> and <\fBfortran@gnu.org\fR>)
2982 know how use of these options affects
2983 the performance of your production code.
2984 We're very interested in code that runs \fIslower\fR
2985 when these options are \fIenabled\fR.
2986 .Ip "\fB\-fno-peephole\fR" 4
2987 .IX Item "-fno-peephole"
2988 Disable any machine-specific peephole optimizations.
2989 .Ip "\fB\-fbranch-probabilities\fR" 4
2990 .IX Item "-fbranch-probabilities"
2991 After running a program compiled with \fB\-fprofile-arcs\fR, you can compile it a second time using
2992 \&\fB\-fbranch-probabilities\fR, to improve optimizations based on
2993 guessing the path a branch might take.
2994 .Ip "\fB\-fstrict-aliasing\fR" 4
2995 .IX Item "-fstrict-aliasing"
2996 Allows the compiler to assume the strictest aliasing rules applicable to
2997 the language being compiled.  For C (and \*(C+), this activates
2998 optimizations based on the type of expressions.  In particular, an
2999 object of one type is assumed never to reside at the same address as an
3000 object of a different type, unless the types are almost the same.  For
3001 example, an \f(CW\*(C`unsigned int\*(C'\fR can alias an \f(CW\*(C`int\*(C'\fR, but not a
3002 \&\f(CW\*(C`void*\*(C'\fR or a \f(CW\*(C`double\*(C'\fR.  A character type may alias any other
3003 type.  
3005 Pay special attention to code like this:
3007 .Vb 4
3008 \&        union a_union { 
3009 \&          int i;
3010 \&          double d;
3011 \&        };
3013 .Vb 5
3014 \&        int f() {
3015 \&          a_union t;
3016 \&          t.d = 3.0;
3017 \&          return t.i;
3018 \&        }
3020 The practice of reading from a different union member than the one most
3021 recently written to (called ``type-punning'') is common.  Even with
3022 \&\fB\-fstrict-aliasing\fR, type-punning is allowed, provided the memory
3023 is accessed through the union type.  So, the code above will work as
3024 expected.  However, this code might not:
3026 .Vb 7
3027 \&        int f() { 
3028 \&          a_union t;
3029 \&          int* ip;
3030 \&          t.d = 3.0;
3031 \&          ip = &t.i;
3032 \&          return *ip;
3033 \&        }
3035 .Ip "\fB\-falign-functions\fR" 4
3036 .IX Item "-falign-functions"
3037 .PD 0
3038 .Ip "\fB\-falign-functions=\fR\fIn\fR" 4
3039 .IX Item "-falign-functions=n"
3041 Align the start of functions to the next power-of-two greater than
3042 \&\fIn\fR, skipping up to \fIn\fR bytes.  For instance,
3043 \&\fB\-falign-functions=32\fR aligns functions to the next 32\-byte
3044 boundary, but \fB\-falign-functions=24\fR would align to the next
3045 32\-byte boundary only if this can be done by skipping 23 bytes or less.
3047 \&\fB\-fno-align-functions\fR and \fB\-falign-functions=1\fR are
3048 equivalent and mean that functions will not be aligned.
3050 Some assemblers only support this flag when \fIn\fR is a power of two;
3051 in that case, it is rounded up.
3053 If \fIn\fR is not specified, use a machine-dependent default.
3054 .Ip "\fB\-falign-labels\fR" 4
3055 .IX Item "-falign-labels"
3056 .PD 0
3057 .Ip "\fB\-falign-labels=\fR\fIn\fR" 4
3058 .IX Item "-falign-labels=n"
3060 Align all branch targets to a power-of-two boundary, skipping up to
3061 \&\fIn\fR bytes like \fB\-falign-functions\fR.  This option can easily
3062 make code slower, because it must insert dummy operations for when the
3063 branch target is reached in the usual flow of the code.
3065 If \fB\-falign-loops\fR or \fB\-falign-jumps\fR are applicable and
3066 are greater than this value, then their values are used instead.
3068 If \fIn\fR is not specified, use a machine-dependent default which is
3069 very likely to be \fB1\fR, meaning no alignment.
3070 .Ip "\fB\-falign-loops\fR" 4
3071 .IX Item "-falign-loops"
3072 .PD 0
3073 .Ip "\fB\-falign-loops=\fR\fIn\fR" 4
3074 .IX Item "-falign-loops=n"
3076 Align loops to a power-of-two boundary, skipping up to \fIn\fR bytes
3077 like \fB\-falign-functions\fR.  The hope is that the loop will be
3078 executed many times, which will make up for any execution of the dummy
3079 operations.
3081 If \fIn\fR is not specified, use a machine-dependent default.
3082 .Ip "\fB\-falign-jumps\fR" 4
3083 .IX Item "-falign-jumps"
3084 .PD 0
3085 .Ip "\fB\-falign-jumps=\fR\fIn\fR" 4
3086 .IX Item "-falign-jumps=n"
3088 Align branch targets to a power-of-two boundary, for branch targets
3089 where the targets can only be reached by jumping, skipping up to \fIn\fR
3090 bytes like \fB\-falign-functions\fR.  In this case, no dummy operations
3091 need be executed.
3093 If \fIn\fR is not specified, use a machine-dependent default.
3094 .Ip "\fB\-fssa\fR" 4
3095 .IX Item "-fssa"
3096 Perform optimizations in static single assignment form.  Each function's
3097 flow graph is translated into \s-1SSA\s0 form, optimizations are performed, and
3098 the flow graph is translated back from \s-1SSA\s0 form.  User's should not
3099 specify this option, since it is not yet ready for production use.
3100 .Ip "\fB\-fdce\fR" 4
3101 .IX Item "-fdce"
3102 Perform dead-code elimination in \s-1SSA\s0 form.  Requires \fB\-fssa\fR.  Like
3103 \&\fB\-fssa\fR, this is an experimental feature.
3104 .Ip "\fB\-fsingle-precision-constant\fR" 4
3105 .IX Item "-fsingle-precision-constant"
3106 Treat floating point constant as single precision constant instead of
3107 implicitly converting it to double precision constant.
3108 .Ip "\fB\-frename-registers\fR" 4
3109 .IX Item "-frename-registers"
3110 Attempt to avoid false dependancies in scheduled code by making use
3111 of registers left over after register allocation.  This optimization
3112 will most benefit processors with lots of registers.  It can, however,
3113 make debugging impossible, since variables will no longer stay in
3114 a ``home register''.
3115 .Sh "Options Controlling the Preprocessor"
3116 .IX Subsection "Options Controlling the Preprocessor"
3117 These options control the C preprocessor, which is run on each C source
3118 file before actual compilation.
3120 If you use the \fB\-E\fR option, nothing is done except preprocessing.
3121 Some of these options make sense only together with \fB\-E\fR because
3122 they cause the preprocessor output to be unsuitable for actual
3123 compilation.
3124 .Ip "\fB\-include\fR \fIfile\fR" 4
3125 .IX Item "-include file"
3126 Process \fIfile\fR as input before processing the regular input file.
3127 In effect, the contents of \fIfile\fR are compiled first.  Any \fB\-D\fR
3128 and \fB\-U\fR options on the command line are always processed before
3129 \&\fB\-include\fR \fIfile\fR, regardless of the order in which they are
3130 written.  All the \fB\-include\fR and \fB\-imacros\fR options are
3131 processed in the order in which they are written.
3132 .Ip "\fB\-imacros\fR \fIfile\fR" 4
3133 .IX Item "-imacros file"
3134 Process \fIfile\fR as input, discarding the resulting output, before
3135 processing the regular input file.  Because the output generated from
3136 \&\fIfile\fR is discarded, the only effect of \fB\-imacros\fR \fIfile\fR
3137 is to make the macros defined in \fIfile\fR available for use in the
3138 main input.  All the \fB\-include\fR and \fB\-imacros\fR options are
3139 processed in the order in which they are written.
3140 .Ip "\fB\-idirafter\fR \fIdir\fR" 4
3141 .IX Item "-idirafter dir"
3142 Add the directory \fIdir\fR to the second include path.  The directories
3143 on the second include path are searched when a header file is not found
3144 in any of the directories in the main include path (the one that
3145 \&\fB\-I\fR adds to).
3146 .Ip "\fB\-iprefix\fR \fIprefix\fR" 4
3147 .IX Item "-iprefix prefix"
3148 Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
3149 options.
3150 .Ip "\fB\-iwithprefix\fR \fIdir\fR" 4
3151 .IX Item "-iwithprefix dir"
3152 Add a directory to the second include path.  The directory's name is
3153 made by concatenating \fIprefix\fR and \fIdir\fR, where \fIprefix\fR was
3154 specified previously with \fB\-iprefix\fR.  If you have not specified a
3155 prefix yet, the directory containing the installed passes of the
3156 compiler is used as the default.
3157 .Ip "\fB\-iwithprefixbefore\fR \fIdir\fR" 4
3158 .IX Item "-iwithprefixbefore dir"
3159 Add a directory to the main include path.  The directory's name is made
3160 by concatenating \fIprefix\fR and \fIdir\fR, as in the case of
3161 \&\fB\-iwithprefix\fR.
3162 .Ip "\fB\-isystem\fR \fIdir\fR" 4
3163 .IX Item "-isystem dir"
3164 Add a directory to the beginning of the second include path, marking it
3165 as a system directory, so that it gets the same special treatment as
3166 is applied to the standard system directories.
3167 .Ip "\fB\-nostdinc\fR" 4
3168 .IX Item "-nostdinc"
3169 Do not search the standard system directories for header files.  Only
3170 the directories you have specified with \fB\-I\fR options (and the
3171 current directory, if appropriate) are searched.  
3173 By using both \fB\-nostdinc\fR and \fB\-I-\fR, you can limit the include-file
3174 search path to only those directories you specify explicitly.
3175 .Ip "\fB\-remap\fR" 4
3176 .IX Item "-remap"
3177 When searching for a header file in a directory, remap file names if a
3178 file named \fIheader.gcc\fR exists in that directory.  This can be used
3179 to work around limitations of file systems with file name restrictions.
3180 The \fIheader.gcc\fR file should contain a series of lines with two
3181 tokens on each line: the first token is the name to map, and the second
3182 token is the actual name to use.
3183 .Ip "\fB\-undef\fR" 4
3184 .IX Item "-undef"
3185 Do not predefine any nonstandard macros.  (Including architecture flags).
3186 .Ip "\fB\-E\fR" 4
3187 .IX Item "-E"
3188 Run only the C preprocessor.  Preprocess all the C source files
3189 specified and output the results to standard output or to the
3190 specified output file.
3191 .Ip "\fB\-C\fR" 4
3192 .IX Item "-C"
3193 Tell the preprocessor not to discard comments.  Used with the
3194 \&\fB\-E\fR option.
3195 .Ip "\fB\-P\fR" 4
3196 .IX Item "-P"
3197 Tell the preprocessor not to generate \fB#line\fR directives.
3198 Used with the \fB\-E\fR option.
3199 .Ip "\fB\-M\fR" 4
3200 .IX Item "-M"
3201 Instead of outputting the result of preprocessing, output a rule
3202 suitable for \f(CW\*(C`make\*(C'\fR describing the dependencies of the main source
3203 file.  The preprocessor outputs one \f(CW\*(C`make\*(C'\fR rule containing the
3204 object file name for that source file, a colon, and the names of all the
3205 included files.  If there are many included files then the rule is split
3206 into several lines using \fB\e\fR\-newline.
3208 \&\fB\-M\fR implies \fB\-E\fR.
3209 .Ip "\fB\-MM\fR" 4
3210 .IX Item "-MM"
3211 Like \fB\-M\fR, but mention only the files included with \fB#include
3212 "\fR\fIfile\fR\fB"\fR.  System header files included with \fB#include
3213 <\fR\fIfile\fR\fB>\fR are omitted.
3214 .Ip "\fB\-MD\fR" 4
3215 .IX Item "-MD"
3216 Like \fB\-M\fR but the dependency information is written to a file
3217 rather than stdout.  \f(CW\*(C`gcc\*(C'\fR will use the same file name and
3218 directory as the object file, but with the suffix \*(L".d\*(R" instead.
3220 This is in addition to compiling the main file as specified \-\-\-
3221 \&\fB\-MD\fR does not inhibit ordinary compilation the way \fB\-M\fR does,
3222 unless you also specify \fB\-MG\fR.
3224 With Mach, you can use the utility \f(CW\*(C`md\*(C'\fR to merge multiple
3225 dependency files into a single dependency file suitable for using with
3226 the \fBmake\fR command.
3227 .Ip "\fB\-MMD\fR" 4
3228 .IX Item "-MMD"
3229 Like \fB\-MD\fR except mention only user header files, not system
3230 \&\-header files.
3231 .Ip "\fB\-MF\fR \fIfile\fR" 4
3232 .IX Item "-MF file"
3233 When used with \fB\-M\fR or \fB\-MM\fR, specifies a file to write the
3234 dependencies to.  This allows the preprocessor to write the preprocessed
3235 file to stdout normally.  If no \fB\-MF\fR switch is given, \s-1CPP\s0 sends
3236 the rules to stdout and suppresses normal preprocessed output.
3238 Another way to specify output of a \f(CW\*(C`make\*(C'\fR rule is by setting
3239 the environment variable \fB\s-1DEPENDENCIES_OUTPUT\s0\fR.
3240 .Ip "\fB\-MG\fR" 4
3241 .IX Item "-MG"
3242 When used with \fB\-M\fR or \fB\-MM\fR, \fB\-MG\fR says to treat missing
3243 header files as generated files and assume they live in the same
3244 directory as the source file.  It suppresses preprocessed output, as a
3245 missing header file is ordinarily an error.
3247 This feature is used in automatic updating of makefiles.
3248 .Ip "\fB\-MP\fR" 4
3249 .IX Item "-MP"
3250 This option instructs \s-1CPP\s0 to add a phony target for each dependency
3251 other than the main file, causing each to depend on nothing.  These
3252 dummy rules work around errors \f(CW\*(C`make\*(C'\fR gives if you remove header
3253 files without updating the \f(CW\*(C`Makefile\*(C'\fR to match.
3255 This is typical output:\-
3257 .Vb 1
3258 \&        /tmp/test.o: /tmp/test.c /tmp/test.h
3260 .Vb 1
3261 \&        /tmp/test.h:
3263 .Ip "\fB\-MQ\fR \fItarget\fR" 4
3264 .IX Item "-MQ target"
3265 .PD 0
3266 .Ip "\fB\-MT\fR \fItarget\fR" 4
3267 .IX Item "-MT target"
3269 By default \s-1CPP\s0 uses the main file name, including any path, and appends
3270 the object suffix, normally ``.o'', to it to obtain the name of the
3271 target for dependency generation.  With \fB\-MT\fR you can specify a
3272 target yourself, overriding the default one.
3274 If you want multiple targets, you can specify them as a single argument
3275 to \fB\-MT\fR, or use multiple \fB\-MT\fR options.
3277 The targets you specify are output in the order they appear on the
3278 command line.  \fB\-MQ\fR is identical to \fB\-MT\fR, except that the
3279 target name is quoted for Make, but with \fB\-MT\fR it isn't.  For
3280 example, \-MT '$(objpfx)foo.o' gives
3282 .Vb 1
3283 \&        $(objpfx)foo.o: /tmp/foo.c
3285 but \-MQ '$(objpfx)foo.o' gives
3287 .Vb 1
3288 \&        $$(objpfx)foo.o: /tmp/foo.c
3290 The default target is automatically quoted, as if it were given with
3291 \&\fB\-MQ\fR.
3292 .Ip "\fB\-H\fR" 4
3293 .IX Item "-H"
3294 Print the name of each header file used, in addition to other normal
3295 activities.
3296 .Ip "\fB\-A\fR\fIquestion\fR\fB(\fR\fIanswer\fR\fB)\fR" 4
3297 .IX Item "-Aquestion(answer)"
3298 Assert the answer \fIanswer\fR for \fIquestion\fR, in case it is tested
3299 with a preprocessing conditional such as \fB#if
3300 #\fR\fIquestion\fR\fB(\fR\fIanswer\fR\fB)\fR.  \fB\-A-\fR disables the standard
3301 assertions that normally describe the target machine.
3302 .Ip "\fB\-D\fR\fImacro\fR" 4
3303 .IX Item "-Dmacro"
3304 Define macro \fImacro\fR with the string \fB1\fR as its definition.
3305 .Ip "\fB\-D\fR\fImacro\fR\fB=\fR\fIdefn\fR" 4
3306 .IX Item "-Dmacro=defn"
3307 Define macro \fImacro\fR as \fIdefn\fR.  All instances of \fB\-D\fR on
3308 the command line are processed before any \fB\-U\fR options.
3310 Any \fB\-D\fR and \fB\-U\fR options on the command line are processed in
3311 order, and always before \fB\-imacros\fR \fIfile\fR, regardless of the
3312 order in which they are written.
3313 .Ip "\fB\-U\fR\fImacro\fR" 4
3314 .IX Item "-Umacro"
3315 Undefine macro \fImacro\fR.  \fB\-U\fR options are evaluated after all
3316 \&\fB\-D\fR options, but before any \fB\-include\fR and \fB\-imacros\fR
3317 options.
3319 Any \fB\-D\fR and \fB\-U\fR options on the command line are processed in
3320 order, and always before \fB\-imacros\fR \fIfile\fR, regardless of the
3321 order in which they are written.
3322 .Ip "\fB\-dM\fR" 4
3323 .IX Item "-dM"
3324 Tell the preprocessor to output only a list of the macro definitions
3325 that are in effect at the end of preprocessing.  Used with the \fB\-E\fR
3326 option.
3327 .Ip "\fB\-dD\fR" 4
3328 .IX Item "-dD"
3329 Tell the preprocessing to pass all macro definitions into the output, in
3330 their proper sequence in the rest of the output.
3331 .Ip "\fB\-dN\fR" 4
3332 .IX Item "-dN"
3333 Like \fB\-dD\fR except that the macro arguments and contents are omitted.
3334 Only \fB#define\fR \fIname\fR is included in the output.
3335 .Ip "\fB\-dI\fR" 4
3336 .IX Item "-dI"
3337 Output \fB#include\fR directives in addition to the result of
3338 preprocessing.
3339 .Ip "\fB\-trigraphs\fR" 4
3340 .IX Item "-trigraphs"
3341 Process \s-1ISO\s0 standard trigraph sequences.  These are three-character
3342 sequences, all starting with \fB??\fR, that are defined by \s-1ISO\s0 C to
3343 stand for single characters.  For example, \fB??/\fR stands for
3344 \&\fB\e\fR, so \fB'??/n'\fR is a character constant for a newline.  By
3345 default, \s-1GCC\s0 ignores trigraphs, but in standard-conforming modes it
3346 converts them.  See the \fB\-std\fR and \fB\-ansi\fR options.
3348 The nine trigraph sequences are
3349 .RS 4
3350 .Ip "\fB??(\fR" 4
3351 .IX Item "??("
3352 -> \fB[\fR
3353 .Ip "\fB??)\fR" 4
3354 .IX Item "??)"
3355 -> \fB]\fR
3356 .Ip "\fB??<\fR" 4
3357 .IX Item "??<"
3358 -> \fB{\fR
3359 .Ip "\fB??>\fR" 4
3360 .IX Item "??>"
3361 -> \fB}\fR
3362 .Ip "\fB??=\fR" 4
3363 .IX Item "??="
3364 -> \fB#\fR
3365 .Ip "\fB??/\fR" 4
3366 .IX Item "??/"
3367 -> \fB\e\fR
3368 .Ip "\fB??'\fR" 4
3369 .IX Item "??'"
3370 -> \fB^\fR
3371 .Ip "\fB??!\fR" 4
3372 .IX Item "??!"
3373 -> \fB|\fR
3374 .Ip "\fB??-\fR" 4
3375 .IX Item "??-"
3376 -> \fB~\fR
3378 .RS 4
3380 Trigraph support is not popular, so many compilers do not implement it
3381 properly.  Portable code should not rely on trigraphs being either
3382 converted or ignored.
3384 .Ip "\fB\-Wp,\fR\fIoption\fR" 4
3385 .IX Item "-Wp,option"
3386 Pass \fIoption\fR as an option to the preprocessor.  If \fIoption\fR
3387 contains commas, it is split into multiple options at the commas.
3388 .Sh "Passing Options to the Assembler"
3389 .IX Subsection "Passing Options to the Assembler"
3390 You can pass options to the assembler.
3391 .Ip "\fB\-Wa,\fR\fIoption\fR" 4
3392 .IX Item "-Wa,option"
3393 Pass \fIoption\fR as an option to the assembler.  If \fIoption\fR
3394 contains commas, it is split into multiple options at the commas.
3395 .Sh "Options for Linking"
3396 .IX Subsection "Options for Linking"
3397 These options come into play when the compiler links object files into
3398 an executable output file.  They are meaningless if the compiler is
3399 not doing a link step.
3400 .Ip "\fIobject-file-name\fR" 4
3401 .IX Item "object-file-name"
3402 A file name that does not end in a special recognized suffix is
3403 considered to name an object file or library.  (Object files are
3404 distinguished from libraries by the linker according to the file
3405 contents.)  If linking is done, these object files are used as input
3406 to the linker.
3407 .Ip "\fB\-c\fR" 4
3408 .IX Item "-c"
3409 .PD 0
3410 .Ip "\fB\-S\fR" 4
3411 .IX Item "-S"
3412 .Ip "\fB\-E\fR" 4
3413 .IX Item "-E"
3415 If any of these options is used, then the linker is not run, and
3416 object file names should not be used as arguments.  
3417 .Ip "\fB\-l\fR\fIlibrary\fR" 4
3418 .IX Item "-llibrary"
3419 Search the library named \fIlibrary\fR when linking.
3421 It makes a difference where in the command you write this option; the
3422 linker searches processes libraries and object files in the order they
3423 are specified.  Thus, \fBfoo.o \-lz bar.o\fR searches library \fBz\fR
3424 after file \fIfoo.o\fR but before \fIbar.o\fR.  If \fIbar.o\fR refers
3425 to functions in \fBz\fR, those functions may not be loaded.
3427 The linker searches a standard list of directories for the library,
3428 which is actually a file named \fIlib\fIlibrary\fI.a\fR.  The linker
3429 then uses this file as if it had been specified precisely by name.
3431 The directories searched include several standard system directories
3432 plus any that you specify with \fB\-L\fR.
3434 Normally the files found this way are library files\-\-\-archive files
3435 whose members are object files.  The linker handles an archive file by
3436 scanning through it for members which define symbols that have so far
3437 been referenced but not defined.  But if the file that is found is an
3438 ordinary object file, it is linked in the usual fashion.  The only
3439 difference between using an \fB\-l\fR option and specifying a file name
3440 is that \fB\-l\fR surrounds \fIlibrary\fR with \fBlib\fR and \fB.a\fR
3441 and searches several directories.
3442 .Ip "\fB\-lobjc\fR" 4
3443 .IX Item "-lobjc"
3444 You need this special case of the \fB\-l\fR option in order to
3445 link an Objective C program.
3446 .Ip "\fB\-nostartfiles\fR" 4
3447 .IX Item "-nostartfiles"
3448 Do not use the standard system startup files when linking.
3449 The standard system libraries are used normally, unless \fB\-nostdlib\fR
3450 or \fB\-nodefaultlibs\fR is used.
3451 .Ip "\fB\-nodefaultlibs\fR" 4
3452 .IX Item "-nodefaultlibs"
3453 Do not use the standard system libraries when linking.
3454 Only the libraries you specify will be passed to the linker.
3455 The standard startup files are used normally, unless \fB\-nostartfiles\fR
3456 is used.  The compiler may generate calls to memcmp, memset, and memcpy
3457 for System V (and \s-1ISO\s0 C) environments or to bcopy and bzero for
3458 \&\s-1BSD\s0 environments.  These entries are usually resolved by entries in
3459 libc.  These entry points should be supplied through some other
3460 mechanism when this option is specified.
3461 .Ip "\fB\-nostdlib\fR" 4
3462 .IX Item "-nostdlib"
3463 Do not use the standard system startup files or libraries when linking.
3464 No startup files and only the libraries you specify will be passed to
3465 the linker. The compiler may generate calls to memcmp, memset, and memcpy
3466 for System V (and \s-1ISO\s0 C) environments or to bcopy and bzero for
3467 \&\s-1BSD\s0 environments.  These entries are usually resolved by entries in
3468 libc.  These entry points should be supplied through some other
3469 mechanism when this option is specified.
3471 One of the standard libraries bypassed by \fB\-nostdlib\fR and
3472 \&\fB\-nodefaultlibs\fR is \fIlibgcc.a\fR, a library of internal subroutines
3473 that \s-1GCC\s0 uses to overcome shortcomings of particular machines, or special
3474 needs for some languages.
3476 In most cases, you need \fIlibgcc.a\fR even when you want to avoid
3477 other standard libraries.  In other words, when you specify \fB\-nostdlib\fR
3478 or \fB\-nodefaultlibs\fR you should usually specify \fB\-lgcc\fR as well.
3479 This ensures that you have no unresolved references to internal \s-1GCC\s0
3480 library subroutines.  (For example, \fB_\|_main\fR, used to ensure \*(C+
3481 constructors will be called.)
3482 .Ip "\fB\-s\fR" 4
3483 .IX Item "-s"
3484 Remove all symbol table and relocation information from the executable.
3485 .Ip "\fB\-static\fR" 4
3486 .IX Item "-static"
3487 On systems that support dynamic linking, this prevents linking with the shared
3488 libraries.  On other systems, this option has no effect.
3489 .Ip "\fB\-shared\fR" 4
3490 .IX Item "-shared"
3491 Produce a shared object which can then be linked with other objects to
3492 form an executable.  Not all systems support this option.  For predictable
3493 results, you must also specify the same set of options that were used to 
3494 generate code (\fB\-fpic\fR, \fB\-fPIC\fR, or model suboptions)
3495 when you specify this option.[1]
3496 .Ip "\fB\-shared-libgcc\fR" 4
3497 .IX Item "-shared-libgcc"
3498 .PD 0
3499 .Ip "\fB\-static-libgcc\fR" 4
3500 .IX Item "-static-libgcc"
3502 On systems that provide \fIlibgcc\fR as a shared library, these options
3503 force the use of either the shared or static version respectively.
3504 If no shared version of \fIlibgcc\fR was built when the compiler was
3505 configured, these options have no effect.
3507 There are several situations in which an application should use the
3508 shared \fIlibgcc\fR instead of the static version.  The most common
3509 of these is when the application wishes to throw and catch exceptions
3510 across different shared libraries.  In that case, each of the libraries
3511 as well as the application itself should use the shared \fIlibgcc\fR.
3513 At present the \s-1GCC\s0 driver makes no attempt to recognize the situations
3514 in which the shared \fIlibgcc\fR should be used, and defaults to using
3515 the static \fIlibgcc\fR always.  This will likely change in the future,
3516 at which time \fB\-static-libgcc\fR becomes useful as a means for 
3517 overriding \s-1GCC\s0's choice.
3518 .Ip "\fB\-symbolic\fR" 4
3519 .IX Item "-symbolic"
3520 Bind references to global symbols when building a shared object.  Warn
3521 about any unresolved references (unless overridden by the link editor
3522 option \fB\-Xlinker \-z \-Xlinker defs\fR).  Only a few systems support
3523 this option.
3524 .Ip "\fB\-Xlinker\fR \fIoption\fR" 4
3525 .IX Item "-Xlinker option"
3526 Pass \fIoption\fR as an option to the linker.  You can use this to
3527 supply system-specific linker options which \s-1GCC\s0 does not know how to
3528 recognize.
3530 If you want to pass an option that takes an argument, you must use
3531 \&\fB\-Xlinker\fR twice, once for the option and once for the argument.
3532 For example, to pass \fB\-assert definitions\fR, you must write
3533 \&\fB\-Xlinker \-assert \-Xlinker definitions\fR.  It does not work to write
3534 \&\fB\-Xlinker \*(L"\-assert definitions\*(R"\fR, because this passes the entire
3535 string as a single argument, which is not what the linker expects.
3536 .Ip "\fB\-Wl,\fR\fIoption\fR" 4
3537 .IX Item "-Wl,option"
3538 Pass \fIoption\fR as an option to the linker.  If \fIoption\fR contains
3539 commas, it is split into multiple options at the commas.
3540 .Ip "\fB\-u\fR \fIsymbol\fR" 4
3541 .IX Item "-u symbol"
3542 Pretend the symbol \fIsymbol\fR is undefined, to force linking of
3543 library modules to define it.  You can use \fB\-u\fR multiple times with
3544 different symbols to force loading of additional library modules.
3545 .Sh "Options for Directory Search"
3546 .IX Subsection "Options for Directory Search"
3547 These options specify directories to search for header files, for
3548 libraries and for parts of the compiler:
3549 .Ip "\fB\-I\fR\fIdir\fR" 4
3550 .IX Item "-Idir"
3551 Add the directory \fIdir\fR to the head of the list of directories to be
3552 searched for header files.  This can be used to override a system header
3553 file, substituting your own version, since these directories are
3554 searched before the system header file directories.  If you use more
3555 than one \fB\-I\fR option, the directories are scanned in left-to-right
3556 order; the standard system directories come after.
3557 .Ip "\fB\-I-\fR" 4
3558 .IX Item "-I-"
3559 Any directories you specify with \fB\-I\fR options before the \fB\-I-\fR
3560 option are searched only for the case of \fB#include "\fR\fIfile\fR\fB"\fR;
3561 they are not searched for \fB#include <\fR\fIfile\fR\fB>\fR.
3563 If additional directories are specified with \fB\-I\fR options after
3564 the \fB\-I-\fR, these directories are searched for all \fB#include\fR
3565 directives.  (Ordinarily \fIall\fR \fB\-I\fR directories are used
3566 this way.)
3568 In addition, the \fB\-I-\fR option inhibits the use of the current
3569 directory (where the current input file came from) as the first search
3570 directory for \fB#include "\fR\fIfile\fR\fB"\fR.  There is no way to
3571 override this effect of \fB\-I-\fR.  With \fB\-I.\fR you can specify
3572 searching the directory which was current when the compiler was
3573 invoked.  That is not exactly the same as what the preprocessor does
3574 by default, but it is often satisfactory.
3576 \&\fB\-I-\fR does not inhibit the use of the standard system directories
3577 for header files.  Thus, \fB\-I-\fR and \fB\-nostdinc\fR are
3578 independent.
3579 .Ip "\fB\-L\fR\fIdir\fR" 4
3580 .IX Item "-Ldir"
3581 Add directory \fIdir\fR to the list of directories to be searched
3582 for \fB\-l\fR.
3583 .Ip "\fB\-B\fR\fIprefix\fR" 4
3584 .IX Item "-Bprefix"
3585 This option specifies where to find the executables, libraries,
3586 include files, and data files of the compiler itself.
3588 The compiler driver program runs one or more of the subprograms
3589 \&\fIcpp\fR, \fIcc1\fR, \fIas\fR and \fIld\fR.  It tries
3590 \&\fIprefix\fR as a prefix for each program it tries to run, both with and
3591 without \fImachine\fR\fB/\fR\fIversion\fR\fB/\fR.
3593 For each subprogram to be run, the compiler driver first tries the
3594 \&\fB\-B\fR prefix, if any.  If that name is not found, or if \fB\-B\fR
3595 was not specified, the driver tries two standard prefixes, which are
3596 \&\fI/usr/lib/gcc/\fR and \fI/usr/local/lib/gcc-lib/\fR.  If neither of
3597 those results in a file name that is found, the unmodified program
3598 name is searched for using the directories specified in your
3599 \&\fB\s-1PATH\s0\fR environment variable.
3601 \&\fB\-B\fR prefixes that effectively specify directory names also apply
3602 to libraries in the linker, because the compiler translates these
3603 options into \fB\-L\fR options for the linker.  They also apply to
3604 includes files in the preprocessor, because the compiler translates these
3605 options into \fB\-isystem\fR options for the preprocessor.  In this case,
3606 the compiler appends \fBinclude\fR to the prefix.
3608 The run-time support file \fIlibgcc.a\fR can also be searched for using
3609 the \fB\-B\fR prefix, if needed.  If it is not found there, the two
3610 standard prefixes above are tried, and that is all.  The file is left
3611 out of the link if it is not found by those means.
3613 Another way to specify a prefix much like the \fB\-B\fR prefix is to use
3614 the environment variable \fB\s-1GCC_EXEC_PREFIX\s0\fR.  
3615 .Ip "\fB\-specs=\fR\fIfile\fR" 4
3616 .IX Item "-specs=file"
3617 Process \fIfile\fR after the compiler reads in the standard \fIspecs\fR
3618 file, in order to override the defaults that the \fIgcc\fR driver
3619 program uses when determining what switches to pass to \fIcc1\fR,
3620 \&\fIcc1plus\fR, \fIas\fR, \fIld\fR, etc.  More than one
3621 \&\fB\-specs=\fR\fIfile\fR can be specified on the command line, and they
3622 are processed in order, from left to right.
3623 .Sh "Specifying Target Machine and Compiler Version"
3624 .IX Subsection "Specifying Target Machine and Compiler Version"
3625 By default, \s-1GCC\s0 compiles code for the same type of machine that you
3626 are using.  However, it can also be installed as a cross-compiler, to
3627 compile for some other type of machine.  In fact, several different
3628 configurations of \s-1GCC\s0, for different target machines, can be
3629 installed side by side.  Then you specify which one to use with the
3630 \&\fB\-b\fR option.
3632 In addition, older and newer versions of \s-1GCC\s0 can be installed side
3633 by side.  One of them (probably the newest) will be the default, but
3634 you may sometimes wish to use another.
3635 .Ip "\fB\-b\fR \fImachine\fR" 4
3636 .IX Item "-b machine"
3637 The argument \fImachine\fR specifies the target machine for compilation.
3638 This is useful when you have installed \s-1GCC\s0 as a cross-compiler.
3640 The value to use for \fImachine\fR is the same as was specified as the
3641 machine type when configuring \s-1GCC\s0 as a cross-compiler.  For
3642 example, if a cross-compiler was configured with \fBconfigure
3643 i386v\fR, meaning to compile for an 80386 running System V, then you
3644 would specify \fB\-b i386v\fR to run that cross compiler.
3646 When you do not specify \fB\-b\fR, it normally means to compile for
3647 the same type of machine that you are using.
3648 .Ip "\fB\-V\fR \fIversion\fR" 4
3649 .IX Item "-V version"
3650 The argument \fIversion\fR specifies which version of \s-1GCC\s0 to run.
3651 This is useful when multiple versions are installed.  For example,
3652 \&\fIversion\fR might be \fB2.0\fR, meaning to run \s-1GCC\s0 version 2.0.
3654 The default version, when you do not specify \fB\-V\fR, is the last
3655 version of \s-1GCC\s0 that you installed.
3657 The \fB\-b\fR and \fB\-V\fR options actually work by controlling part of
3658 the file name used for the executable files and libraries used for
3659 compilation.  A given version of \s-1GCC\s0, for a given target machine, is
3660 normally kept in the directory \fI/usr/local/lib/gcc-lib/\fImachine\fI/\fIversion\fI\fR.
3662 Thus, sites can customize the effect of \fB\-b\fR or \fB\-V\fR either by
3663 changing the names of these directories or adding alternate names (or
3664 symbolic links).  If in directory \fI/usr/local/lib/gcc-lib/\fR the
3665 file \fI80386\fR is a link to the file \fIi386v\fR, then \fB\-b
3666 80386\fR becomes an alias for \fB\-b i386v\fR.
3668 In one respect, the \fB\-b\fR or \fB\-V\fR do not completely change
3669 to a different compiler: the top-level driver program \fBgcc\fR
3670 that you originally invoked continues to run and invoke the other
3671 executables (preprocessor, compiler per se, assembler and linker)
3672 that do the real work.  However, since no real work is done in the
3673 driver program, it usually does not matter that the driver program
3674 in use is not the one for the specified target.  It is common for the
3675 interface to the other executables to change incompatibly between
3676 compiler versions, so unless the version specified is very close to that
3677 of the driver (for example, \fB\-V 3.0\fR with a driver program from \s-1GCC\s0
3678 version 3.0.1), use of \fB\-V\fR may not work; for example, using
3679 \&\fB\-V 2.95.2\fR will not work with a driver program from \s-1GCC\s0 3.0.
3681 The only way that the driver program depends on the target machine is
3682 in the parsing and handling of special machine-specific options.
3683 However, this is controlled by a file which is found, along with the
3684 other executables, in the directory for the specified version and
3685 target machine.  As a result, a single installed driver program adapts
3686 to any specified target machine, and sufficiently similar compiler
3687 versions.
3689 The driver program executable does control one significant thing,
3690 however: the default version and target machine.  Therefore, you can
3691 install different instances of the driver program, compiled for
3692 different targets or versions, under different names.
3694 For example, if the driver for version 2.0 is installed as \fBogcc\fR
3695 and that for version 2.1 is installed as \fBgcc\fR, then the command
3696 \&\fBgcc\fR will use version 2.1 by default, while \fBogcc\fR will use
3697 2.0 by default.  However, you can choose either version with either
3698 command with the \fB\-V\fR option.
3699 .Sh "Hardware Models and Configurations"
3700 .IX Subsection "Hardware Models and Configurations"
3701 Earlier we discussed the standard option \fB\-b\fR which chooses among
3702 different installed compilers for completely different target
3703 machines, such as Vax vs. 68000 vs. 80386.
3705 In addition, each of these target machine types can have its own
3706 special options, starting with \fB\-m\fR, to choose among various
3707 hardware models or configurations\-\-\-for example, 68010 vs 68020,
3708 floating coprocessor or none.  A single installed version of the
3709 compiler can compile for any model or configuration, according to the
3710 options specified.
3712 Some configurations of the compiler also support additional special
3713 options, usually for compatibility with other compilers on the same
3714 platform.
3716 .I "M680x0 Options"
3717 .IX Subsection "M680x0 Options"
3719 These are the \fB\-m\fR options defined for the 68000 series.  The default
3720 values for these options depends on which style of 68000 was selected when
3721 the compiler was configured; the defaults for the most common choices are
3722 given below.
3723 .Ip "\fB\-m68000\fR" 4
3724 .IX Item "-m68000"
3725 .PD 0
3726 .Ip "\fB\-mc68000\fR" 4
3727 .IX Item "-mc68000"
3729 Generate output for a 68000.  This is the default
3730 when the compiler is configured for 68000\-based systems.
3732 Use this option for microcontrollers with a 68000 or \s-1EC000\s0 core,
3733 including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
3734 .Ip "\fB\-m68020\fR" 4
3735 .IX Item "-m68020"
3736 .PD 0
3737 .Ip "\fB\-mc68020\fR" 4
3738 .IX Item "-mc68020"
3740 Generate output for a 68020.  This is the default
3741 when the compiler is configured for 68020\-based systems.
3742 .Ip "\fB\-m68881\fR" 4
3743 .IX Item "-m68881"
3744 Generate output containing 68881 instructions for floating point.
3745 This is the default for most 68020 systems unless \fB\-nfp\fR was
3746 specified when the compiler was configured.
3747 .Ip "\fB\-m68030\fR" 4
3748 .IX Item "-m68030"
3749 Generate output for a 68030.  This is the default when the compiler is
3750 configured for 68030\-based systems.
3751 .Ip "\fB\-m68040\fR" 4
3752 .IX Item "-m68040"
3753 Generate output for a 68040.  This is the default when the compiler is
3754 configured for 68040\-based systems.
3756 This option inhibits the use of 68881/68882 instructions that have to be
3757 emulated by software on the 68040.  Use this option if your 68040 does not
3758 have code to emulate those instructions.
3759 .Ip "\fB\-m68060\fR" 4
3760 .IX Item "-m68060"
3761 Generate output for a 68060.  This is the default when the compiler is
3762 configured for 68060\-based systems.
3764 This option inhibits the use of 68020 and 68881/68882 instructions that
3765 have to be emulated by software on the 68060.  Use this option if your 68060
3766 does not have code to emulate those instructions.
3767 .Ip "\fB\-mcpu32\fR" 4
3768 .IX Item "-mcpu32"
3769 Generate output for a \s-1CPU32\s0. This is the default
3770 when the compiler is configured for CPU32\-based systems.
3772 Use this option for microcontrollers with a
3773 \&\s-1CPU32\s0 or \s-1CPU32+\s0 core, including the 68330, 68331, 68332, 68333, 68334,
3774 68336, 68340, 68341, 68349 and 68360.
3775 .Ip "\fB\-m5200\fR" 4
3776 .IX Item "-m5200"
3777 Generate output for a 520X \*(L"coldfire\*(R" family cpu.  This is the default
3778 when the compiler is configured for 520X-based systems.
3780 Use this option for microcontroller with a 5200 core, including 
3781 the \s-1MCF5202\s0, \s-1MCF5203\s0, \s-1MCF5204\s0 and \s-1MCF5202\s0.
3782 .Ip "\fB\-m68020\-40\fR" 4
3783 .IX Item "-m68020-40"
3784 Generate output for a 68040, without using any of the new instructions.
3785 This results in code which can run relatively efficiently on either a
3786 68020/68881 or a 68030 or a 68040.  The generated code does use the
3787 68881 instructions that are emulated on the 68040.
3788 .Ip "\fB\-m68020\-60\fR" 4
3789 .IX Item "-m68020-60"
3790 Generate output for a 68060, without using any of the new instructions.
3791 This results in code which can run relatively efficiently on either a
3792 68020/68881 or a 68030 or a 68040.  The generated code does use the
3793 68881 instructions that are emulated on the 68060.
3794 .Ip "\fB\-mfpa\fR" 4
3795 .IX Item "-mfpa"
3796 Generate output containing Sun \s-1FPA\s0 instructions for floating point.
3797 .Ip "\fB\-msoft-float\fR" 4
3798 .IX Item "-msoft-float"
3799 Generate output containing library calls for floating point.
3800 \&\fBWarning:\fR the requisite libraries are not available for all m68k
3801 targets.  Normally the facilities of the machine's usual C compiler are
3802 used, but this can't be done directly in cross-compilation.  You must
3803 make your own arrangements to provide suitable library functions for
3804 cross-compilation.  The embedded targets \fBm68k-*\-aout\fR and
3805 \&\fBm68k-*\-coff\fR do provide software floating point support.
3806 .Ip "\fB\-mshort\fR" 4
3807 .IX Item "-mshort"
3808 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
3809 .Ip "\fB\-mnobitfield\fR" 4
3810 .IX Item "-mnobitfield"
3811 Do not use the bit-field instructions.  The \fB\-m68000\fR, \fB\-mcpu32\fR
3812 and \fB\-m5200\fR options imply \fB\-mnobitfield\fR.
3813 .Ip "\fB\-mbitfield\fR" 4
3814 .IX Item "-mbitfield"
3815 Do use the bit-field instructions.  The \fB\-m68020\fR option implies
3816 \&\fB\-mbitfield\fR.  This is the default if you use a configuration
3817 designed for a 68020.
3818 .Ip "\fB\-mrtd\fR" 4
3819 .IX Item "-mrtd"
3820 Use a different function-calling convention, in which functions
3821 that take a fixed number of arguments return with the \f(CW\*(C`rtd\*(C'\fR
3822 instruction, which pops their arguments while returning.  This
3823 saves one instruction in the caller since there is no need to pop
3824 the arguments there.
3826 This calling convention is incompatible with the one normally
3827 used on Unix, so you cannot use it if you need to call libraries
3828 compiled with the Unix compiler.
3830 Also, you must provide function prototypes for all functions that
3831 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
3832 otherwise incorrect code will be generated for calls to those
3833 functions.
3835 In addition, seriously incorrect code will result if you call a
3836 function with too many arguments.  (Normally, extra arguments are
3837 harmlessly ignored.)
3839 The \f(CW\*(C`rtd\*(C'\fR instruction is supported by the 68010, 68020, 68030,
3840 68040, 68060 and \s-1CPU32\s0 processors, but not by the 68000 or 5200.
3841 .Ip "\fB\-malign-int\fR" 4
3842 .IX Item "-malign-int"
3843 .PD 0
3844 .Ip "\fB\-mno-align-int\fR" 4
3845 .IX Item "-mno-align-int"
3847 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, 
3848 \&\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
3849 boundary (\fB\-malign-int\fR) or a 16\-bit boundary (\fB\-mno-align-int\fR).
3850 Aligning variables on 32\-bit boundaries produces code that runs somewhat
3851 faster on processors with 32\-bit busses at the expense of more memory.
3853 \&\fBWarning:\fR if you use the \fB\-malign-int\fR switch, \s-1GCC\s0 will
3854 align structures containing the above types  differently than
3855 most published application binary interface specifications for the m68k.
3856 .Ip "\fB\-mpcrel\fR" 4
3857 .IX Item "-mpcrel"
3858 Use the pc-relative addressing mode of the 68000 directly, instead of
3859 using a global offset table.  At present, this option implies \-fpic,
3860 allowing at most a 16\-bit offset for pc-relative addressing.  \-fPIC is
3861 not presently supported with \-mpcrel, though this could be supported for
3862 68020 and higher processors.
3863 .Ip "\fB\-mno-strict-align\fR" 4
3864 .IX Item "-mno-strict-align"
3865 .PD 0
3866 .Ip "\fB\-mstrict-align\fR" 4
3867 .IX Item "-mstrict-align"
3869 Do not (do) assume that unaligned memory references will be handled by
3870 the system.
3872 .I "M68hc1x Options"
3873 .IX Subsection "M68hc1x Options"
3875 These are the \fB\-m\fR options defined for the 68hc11 and 68hc12
3876 microcontrollers.  The default values for these options depends on 
3877 which style of microcontroller was selected when the compiler was configured;
3878 the defaults for the most common choices are given below.
3879 .Ip "\fB\-m6811\fR" 4
3880 .IX Item "-m6811"
3881 .PD 0
3882 .Ip "\fB\-m68hc11\fR" 4
3883 .IX Item "-m68hc11"
3885 Generate output for a 68HC11.  This is the default
3886 when the compiler is configured for 68HC11\-based systems.
3887 .Ip "\fB\-m6812\fR" 4
3888 .IX Item "-m6812"
3889 .PD 0
3890 .Ip "\fB\-m68hc12\fR" 4
3891 .IX Item "-m68hc12"
3893 Generate output for a 68HC12.  This is the default
3894 when the compiler is configured for 68HC12\-based systems.
3895 .Ip "\fB\-mauto-incdec\fR" 4
3896 .IX Item "-mauto-incdec"
3897 Enable the use of 68HC12 pre and post auto-increment and auto-decrement
3898 addressing modes.
3899 .Ip "\fB\-mshort\fR" 4
3900 .IX Item "-mshort"
3901 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
3902 .Ip "\fB\-msoft-reg-count=\fR\fIcount\fR" 4
3903 .IX Item "-msoft-reg-count=count"
3904 Specify the number of pseudo-soft registers which are used for the
3905 code generation.  The maximum number is 32.  Using more pseudo-soft
3906 register may or may not result in better code depending on the program.
3907 The default is 4 for 68HC11 and 2 for 68HC12.
3909 .I "\s-1VAX\s0 Options"
3910 .IX Subsection "VAX Options"
3912 These \fB\-m\fR options are defined for the Vax:
3913 .Ip "\fB\-munix\fR" 4
3914 .IX Item "-munix"
3915 Do not output certain jump instructions (\f(CW\*(C`aobleq\*(C'\fR and so on)
3916 that the Unix assembler for the Vax cannot handle across long
3917 ranges.
3918 .Ip "\fB\-mgnu\fR" 4
3919 .IX Item "-mgnu"
3920 Do output those jump instructions, on the assumption that you
3921 will assemble with the \s-1GNU\s0 assembler.
3922 .Ip "\fB\-mg\fR" 4
3923 .IX Item "-mg"
3924 Output code for g-format floating point numbers instead of d-format.
3926 .I "\s-1SPARC\s0 Options"
3927 .IX Subsection "SPARC Options"
3929 These \fB\-m\fR switches are supported on the \s-1SPARC:\s0
3930 .Ip "\fB\-mno-app-regs\fR" 4
3931 .IX Item "-mno-app-regs"
3932 .PD 0
3933 .Ip "\fB\-mapp-regs\fR" 4
3934 .IX Item "-mapp-regs"
3936 Specify \fB\-mapp-regs\fR to generate output using the global registers
3937 2 through 4, which the \s-1SPARC\s0 \s-1SVR4\s0 \s-1ABI\s0 reserves for applications.  This
3938 is the default.
3940 To be fully \s-1SVR4\s0 \s-1ABI\s0 compliant at the cost of some performance loss,
3941 specify \fB\-mno-app-regs\fR.  You should compile libraries and system
3942 software with this option.
3943 .Ip "\fB\-mfpu\fR" 4
3944 .IX Item "-mfpu"
3945 .PD 0
3946 .Ip "\fB\-mhard-float\fR" 4
3947 .IX Item "-mhard-float"
3949 Generate output containing floating point instructions.  This is the
3950 default.
3951 .Ip "\fB\-mno-fpu\fR" 4
3952 .IX Item "-mno-fpu"
3953 .PD 0
3954 .Ip "\fB\-msoft-float\fR" 4
3955 .IX Item "-msoft-float"
3957 Generate output containing library calls for floating point.
3958 \&\fBWarning:\fR the requisite libraries are not available for all \s-1SPARC\s0
3959 targets.  Normally the facilities of the machine's usual C compiler are
3960 used, but this cannot be done directly in cross-compilation.  You must make
3961 your own arrangements to provide suitable library functions for
3962 cross-compilation.  The embedded targets \fBsparc-*\-aout\fR and
3963 \&\fBsparclite-*\-*\fR do provide software floating point support.
3965 \&\fB\-msoft-float\fR changes the calling convention in the output file;
3966 therefore, it is only useful if you compile \fIall\fR of a program with
3967 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
3968 library that comes with \s-1GCC\s0, with \fB\-msoft-float\fR in order for
3969 this to work.
3970 .Ip "\fB\-mhard-quad-float\fR" 4
3971 .IX Item "-mhard-quad-float"
3972 Generate output containing quad-word (long double) floating point
3973 instructions.
3974 .Ip "\fB\-msoft-quad-float\fR" 4
3975 .IX Item "-msoft-quad-float"
3976 Generate output containing library calls for quad-word (long double)
3977 floating point instructions.  The functions called are those specified
3978 in the \s-1SPARC\s0 \s-1ABI\s0.  This is the default.
3980 As of this writing, there are no sparc implementations that have hardware
3981 support for the quad-word floating point instructions.  They all invoke
3982 a trap handler for one of these instructions, and then the trap handler
3983 emulates the effect of the instruction.  Because of the trap handler overhead,
3984 this is much slower than calling the \s-1ABI\s0 library routines.  Thus the
3985 \&\fB\-msoft-quad-float\fR option is the default.
3986 .Ip "\fB\-mno-epilogue\fR" 4
3987 .IX Item "-mno-epilogue"
3988 .PD 0
3989 .Ip "\fB\-mepilogue\fR" 4
3990 .IX Item "-mepilogue"
3992 With \fB\-mepilogue\fR (the default), the compiler always emits code for
3993 function exit at the end of each function.  Any function exit in
3994 the middle of the function (such as a return statement in C) will
3995 generate a jump to the exit code at the end of the function.
3997 With \fB\-mno-epilogue\fR, the compiler tries to emit exit code inline
3998 at every function exit.
3999 .Ip "\fB\-mno-flat\fR" 4
4000 .IX Item "-mno-flat"
4001 .PD 0
4002 .Ip "\fB\-mflat\fR" 4
4003 .IX Item "-mflat"
4005 With \fB\-mflat\fR, the compiler does not generate save/restore instructions
4006 and will use a \*(L"flat\*(R" or single register window calling convention.
4007 This model uses \f(CW%i7\fR as the frame pointer and is compatible with the normal
4008 register window model.  Code from either may be intermixed.
4009 The local registers and the input registers (0\-5) are still treated as
4010 \&\*(L"call saved\*(R" registers and will be saved on the stack as necessary.
4012 With \fB\-mno-flat\fR (the default), the compiler emits save/restore
4013 instructions (except for leaf functions) and is the normal mode of operation.
4014 .Ip "\fB\-mno-unaligned-doubles\fR" 4
4015 .IX Item "-mno-unaligned-doubles"
4016 .PD 0
4017 .Ip "\fB\-munaligned-doubles\fR" 4
4018 .IX Item "-munaligned-doubles"
4020 Assume that doubles have 8 byte alignment.  This is the default.
4022 With \fB\-munaligned-doubles\fR, \s-1GCC\s0 assumes that doubles have 8 byte
4023 alignment only if they are contained in another type, or if they have an
4024 absolute address.  Otherwise, it assumes they have 4 byte alignment.
4025 Specifying this option avoids some rare compatibility problems with code
4026 generated by other compilers.  It is not the default because it results
4027 in a performance loss, especially for floating point code.
4028 .Ip "\fB\-mno-faster-structs\fR" 4
4029 .IX Item "-mno-faster-structs"
4030 .PD 0
4031 .Ip "\fB\-mfaster-structs\fR" 4
4032 .IX Item "-mfaster-structs"
4034 With \fB\-mfaster-structs\fR, the compiler assumes that structures
4035 should have 8 byte alignment.  This enables the use of pairs of
4036 \&\f(CW\*(C`ldd\*(C'\fR and \f(CW\*(C`std\*(C'\fR instructions for copies in structure
4037 assignment, in place of twice as many \f(CW\*(C`ld\*(C'\fR and \f(CW\*(C`st\*(C'\fR pairs.
4038 However, the use of this changed alignment directly violates the Sparc
4039 \&\s-1ABI\s0.  Thus, it's intended only for use on targets where the developer
4040 acknowledges that their resulting code will not be directly in line with
4041 the rules of the \s-1ABI\s0.
4042 .Ip "\fB\-mv8\fR" 4
4043 .IX Item "-mv8"
4044 .PD 0
4045 .Ip "\fB\-msparclite\fR" 4
4046 .IX Item "-msparclite"
4048 These two options select variations on the \s-1SPARC\s0 architecture.
4050 By default (unless specifically configured for the Fujitsu SPARClite),
4051 \&\s-1GCC\s0 generates code for the v7 variant of the \s-1SPARC\s0 architecture.
4053 \&\fB\-mv8\fR will give you \s-1SPARC\s0 v8 code.  The only difference from v7
4054 code is that the compiler emits the integer multiply and integer
4055 divide instructions which exist in \s-1SPARC\s0 v8 but not in \s-1SPARC\s0 v7.
4057 \&\fB\-msparclite\fR will give you SPARClite code.  This adds the integer
4058 multiply, integer divide step and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which
4059 exist in SPARClite but not in \s-1SPARC\s0 v7.
4061 These options are deprecated and will be deleted in a future \s-1GCC\s0 release.
4062 They have been replaced with \fB\-mcpu=xxx\fR.
4063 .Ip "\fB\-mcypress\fR" 4
4064 .IX Item "-mcypress"
4065 .PD 0
4066 .Ip "\fB\-msupersparc\fR" 4
4067 .IX Item "-msupersparc"
4069 These two options select the processor for which the code is optimised.
4071 With \fB\-mcypress\fR (the default), the compiler optimizes code for the
4072 Cypress \s-1CY7C602\s0 chip, as used in the SparcStation/SparcServer 3xx series.
4073 This is also appropriate for the older SparcStation 1, 2, \s-1IPX\s0 etc.
4075 With \fB\-msupersparc\fR the compiler optimizes code for the SuperSparc cpu, as
4076 used in the SparcStation 10, 1000 and 2000 series. This flag also enables use
4077 of the full \s-1SPARC\s0 v8 instruction set.
4079 These options are deprecated and will be deleted in a future \s-1GCC\s0 release.
4080 They have been replaced with \fB\-mcpu=xxx\fR.
4081 .Ip "\fB\-mcpu=\fR\fIcpu_type\fR" 4
4082 .IX Item "-mcpu=cpu_type"
4083 Set the instruction set, register set, and instruction scheduling parameters
4084 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
4085 \&\fBv7\fR, \fBcypress\fR, \fBv8\fR, \fBsupersparc\fR, \fBsparclite\fR,
4086 \&\fBhypersparc\fR, \fBsparclite86x\fR, \fBf930\fR, \fBf934\fR,
4087 \&\fBsparclet\fR, \fBtsc701\fR, \fBv9\fR, and \fBultrasparc\fR.
4089 Default instruction scheduling parameters are used for values that select
4090 an architecture and not an implementation.  These are \fBv7\fR, \fBv8\fR,
4091 \&\fBsparclite\fR, \fBsparclet\fR, \fBv9\fR.
4093 Here is a list of each supported architecture and their supported
4094 implementations.
4096 .Vb 5
4097 \&            v7:             cypress
4098 \&            v8:             supersparc, hypersparc
4099 \&            sparclite:      f930, f934, sparclite86x
4100 \&            sparclet:       tsc701
4101 \&            v9:             ultrasparc
4103 .Ip "\fB\-mtune=\fR\fIcpu_type\fR" 4
4104 .IX Item "-mtune=cpu_type"
4105 Set the instruction scheduling parameters for machine type
4106 \&\fIcpu_type\fR, but do not set the instruction set or register set that the
4107 option \fB\-mcpu=\fR\fIcpu_type\fR would.
4109 The same values for \fB\-mcpu=\fR\fIcpu_type\fR are used for
4110 \&\fB\-mtune=\fR\fIcpu_type\fR, though the only useful values are those that
4111 select a particular cpu implementation: \fBcypress\fR, \fBsupersparc\fR,
4112 \&\fBhypersparc\fR, \fBf930\fR, \fBf934\fR, \fBsparclite86x\fR,
4113 \&\fBtsc701\fR, \fBultrasparc\fR.
4115 These \fB\-m\fR switches are supported in addition to the above
4116 on the \s-1SPARCLET\s0 processor.
4117 .Ip "\fB\-mlittle-endian\fR" 4
4118 .IX Item "-mlittle-endian"
4119 Generate code for a processor running in little-endian mode.
4120 .Ip "\fB\-mlive-g0\fR" 4
4121 .IX Item "-mlive-g0"
4122 Treat register \f(CW\*(C`%g0\*(C'\fR as a normal register.
4123 \&\s-1GCC\s0 will continue to clobber it as necessary but will not assume
4124 it always reads as 0.
4125 .Ip "\fB\-mbroken-saverestore\fR" 4
4126 .IX Item "-mbroken-saverestore"
4127 Generate code that does not use non-trivial forms of the \f(CW\*(C`save\*(C'\fR and
4128 \&\f(CW\*(C`restore\*(C'\fR instructions.  Early versions of the \s-1SPARCLET\s0 processor do
4129 not correctly handle \f(CW\*(C`save\*(C'\fR and \f(CW\*(C`restore\*(C'\fR instructions used with
4130 arguments.  They correctly handle them used without arguments.  A \f(CW\*(C`save\*(C'\fR
4131 instruction used without arguments increments the current window pointer
4132 but does not allocate a new stack frame.  It is assumed that the window
4133 overflow trap handler will properly handle this case as will interrupt
4134 handlers.
4136 These \fB\-m\fR switches are supported in addition to the above
4137 on \s-1SPARC\s0 V9 processors in 64 bit environments.
4138 .Ip "\fB\-mlittle-endian\fR" 4
4139 .IX Item "-mlittle-endian"
4140 Generate code for a processor running in little-endian mode.
4141 .Ip "\fB\-m32\fR" 4
4142 .IX Item "-m32"
4143 .PD 0
4144 .Ip "\fB\-m64\fR" 4
4145 .IX Item "-m64"
4147 Generate code for a 32 bit or 64 bit environment.
4148 The 32 bit environment sets int, long and pointer to 32 bits.
4149 The 64 bit environment sets int to 32 bits and long and pointer
4150 to 64 bits.
4151 .Ip "\fB\-mcmodel=medlow\fR" 4
4152 .IX Item "-mcmodel=medlow"
4153 Generate code for the Medium/Low code model: the program must be linked
4154 in the low 32 bits of the address space.  Pointers are 64 bits.
4155 Programs can be statically or dynamically linked.
4156 .Ip "\fB\-mcmodel=medmid\fR" 4
4157 .IX Item "-mcmodel=medmid"
4158 Generate code for the Medium/Middle code model: the program must be linked
4159 in the low 44 bits of the address space, the text segment must be less than
4160 2G bytes, and data segment must be within 2G of the text segment.
4161 Pointers are 64 bits.
4162 .Ip "\fB\-mcmodel=medany\fR" 4
4163 .IX Item "-mcmodel=medany"
4164 Generate code for the Medium/Anywhere code model: the program may be linked
4165 anywhere in the address space, the text segment must be less than
4166 2G bytes, and data segment must be within 2G of the text segment.
4167 Pointers are 64 bits.
4168 .Ip "\fB\-mcmodel=embmedany\fR" 4
4169 .IX Item "-mcmodel=embmedany"
4170 Generate code for the Medium/Anywhere code model for embedded systems:
4171 assume a 32 bit text and a 32 bit data segment, both starting anywhere
4172 (determined at link time).  Register \f(CW%g4\fR points to the base of the
4173 data segment.  Pointers still 64 bits.
4174 Programs are statically linked, \s-1PIC\s0 is not supported.
4175 .Ip "\fB\-mstack-bias\fR" 4
4176 .IX Item "-mstack-bias"
4177 .PD 0
4178 .Ip "\fB\-mno-stack-bias\fR" 4
4179 .IX Item "-mno-stack-bias"
4181 With \fB\-mstack-bias\fR, \s-1GCC\s0 assumes that the stack pointer, and
4182 frame pointer if present, are offset by \-2047 which must be added back
4183 when making stack frame references.
4184 Otherwise, assume no such offset is present.
4186 .I "Convex Options"
4187 .IX Subsection "Convex Options"
4189 These \fB\-m\fR options are defined for Convex:
4190 .Ip "\fB\-mc1\fR" 4
4191 .IX Item "-mc1"
4192 Generate output for C1.  The code will run on any Convex machine.
4193 The preprocessor symbol \f(CW\*(C`_\|_convex_\|_c1_\|_\*(C'\fR is defined.
4194 .Ip "\fB\-mc2\fR" 4
4195 .IX Item "-mc2"
4196 Generate output for C2.  Uses instructions not available on C1.
4197 Scheduling and other optimizations are chosen for max performance on C2.
4198 The preprocessor symbol \f(CW\*(C`_\|_convex_c2_\|_\*(C'\fR is defined.
4199 .Ip "\fB\-mc32\fR" 4
4200 .IX Item "-mc32"
4201 Generate output for C32xx.  Uses instructions not available on C1.
4202 Scheduling and other optimizations are chosen for max performance on C32.
4203 The preprocessor symbol \f(CW\*(C`_\|_convex_c32_\|_\*(C'\fR is defined.
4204 .Ip "\fB\-mc34\fR" 4
4205 .IX Item "-mc34"
4206 Generate output for C34xx.  Uses instructions not available on C1.
4207 Scheduling and other optimizations are chosen for max performance on C34.
4208 The preprocessor symbol \f(CW\*(C`_\|_convex_c34_\|_\*(C'\fR is defined.
4209 .Ip "\fB\-mc38\fR" 4
4210 .IX Item "-mc38"
4211 Generate output for C38xx.  Uses instructions not available on C1.
4212 Scheduling and other optimizations are chosen for max performance on C38.
4213 The preprocessor symbol \f(CW\*(C`_\|_convex_c38_\|_\*(C'\fR is defined.
4214 .Ip "\fB\-margcount\fR" 4
4215 .IX Item "-margcount"
4216 Generate code which puts an argument count in the word preceding each
4217 argument list.  This is compatible with regular \s-1CC\s0, and a few programs
4218 may need the argument count word.  \s-1GDB\s0 and other source-level debuggers
4219 do not need it; this info is in the symbol table.
4220 .Ip "\fB\-mnoargcount\fR" 4
4221 .IX Item "-mnoargcount"
4222 Omit the argument count word.  This is the default.
4223 .Ip "\fB\-mvolatile-cache\fR" 4
4224 .IX Item "-mvolatile-cache"
4225 Allow volatile references to be cached.  This is the default.
4226 .Ip "\fB\-mvolatile-nocache\fR" 4
4227 .IX Item "-mvolatile-nocache"
4228 Volatile references bypass the data cache, going all the way to memory.
4229 This is only needed for multi-processor code that does not use standard
4230 synchronization instructions.  Making non-volatile references to volatile
4231 locations will not necessarily work.
4232 .Ip "\fB\-mlong32\fR" 4
4233 .IX Item "-mlong32"
4234 Type long is 32 bits, the same as type int.  This is the default.
4235 .Ip "\fB\-mlong64\fR" 4
4236 .IX Item "-mlong64"
4237 Type long is 64 bits, the same as type long long.  This option is useless,
4238 because no library support exists for it.
4240 .I "\s-1AMD29K\s0 Options"
4241 .IX Subsection "AMD29K Options"
4243 These \fB\-m\fR options are defined for the \s-1AMD\s0 Am29000:
4244 .Ip "\fB\-mdw\fR" 4
4245 .IX Item "-mdw"
4246 Generate code that assumes the \f(CW\*(C`DW\*(C'\fR bit is set, i.e., that byte and
4247 halfword operations are directly supported by the hardware.  This is the
4248 default.
4249 .Ip "\fB\-mndw\fR" 4
4250 .IX Item "-mndw"
4251 Generate code that assumes the \f(CW\*(C`DW\*(C'\fR bit is not set.
4252 .Ip "\fB\-mbw\fR" 4
4253 .IX Item "-mbw"
4254 Generate code that assumes the system supports byte and halfword write
4255 operations.  This is the default.
4256 .Ip "\fB\-mnbw\fR" 4
4257 .IX Item "-mnbw"
4258 Generate code that assumes the systems does not support byte and
4259 halfword write operations.  \fB\-mnbw\fR implies \fB\-mndw\fR.
4260 .Ip "\fB\-msmall\fR" 4
4261 .IX Item "-msmall"
4262 Use a small memory model that assumes that all function addresses are
4263 either within a single 256 \s-1KB\s0 segment or at an absolute address of less
4264 than 256k.  This allows the \f(CW\*(C`call\*(C'\fR instruction to be used instead
4265 of a \f(CW\*(C`const\*(C'\fR, \f(CW\*(C`consth\*(C'\fR, \f(CW\*(C`calli\*(C'\fR sequence.
4266 .Ip "\fB\-mnormal\fR" 4
4267 .IX Item "-mnormal"
4268 Use the normal memory model: Generate \f(CW\*(C`call\*(C'\fR instructions only when
4269 calling functions in the same file and \f(CW\*(C`calli\*(C'\fR instructions
4270 otherwise.  This works if each file occupies less than 256 \s-1KB\s0 but allows
4271 the entire executable to be larger than 256 \s-1KB\s0.  This is the default.
4272 .Ip "\fB\-mlarge\fR" 4
4273 .IX Item "-mlarge"
4274 Always use \f(CW\*(C`calli\*(C'\fR instructions.  Specify this option if you expect
4275 a single file to compile into more than 256 \s-1KB\s0 of code.
4276 .Ip "\fB\-m29050\fR" 4
4277 .IX Item "-m29050"
4278 Generate code for the Am29050.
4279 .Ip "\fB\-m29000\fR" 4
4280 .IX Item "-m29000"
4281 Generate code for the Am29000.  This is the default.
4282 .Ip "\fB\-mkernel-registers\fR" 4
4283 .IX Item "-mkernel-registers"
4284 Generate references to registers \f(CW\*(C`gr64\-gr95\*(C'\fR instead of to
4285 registers \f(CW\*(C`gr96\-gr127\*(C'\fR.  This option can be used when compiling
4286 kernel code that wants a set of global registers disjoint from that used
4287 by user-mode code.
4289 Note that when this option is used, register names in \fB\-f\fR flags
4290 must use the normal, user-mode, names.
4291 .Ip "\fB\-muser-registers\fR" 4
4292 .IX Item "-muser-registers"
4293 Use the normal set of global registers, \f(CW\*(C`gr96\-gr127\*(C'\fR.  This is the
4294 default.
4295 .Ip "\fB\-mstack-check\fR" 4
4296 .IX Item "-mstack-check"
4297 .PD 0
4298 .Ip "\fB\-mno-stack-check\fR" 4
4299 .IX Item "-mno-stack-check"
4301 Insert (or do not insert) a call to \f(CW\*(C`_\|_msp_check\*(C'\fR after each stack
4302 adjustment.  This is often used for kernel code.
4303 .Ip "\fB\-mstorem-bug\fR" 4
4304 .IX Item "-mstorem-bug"
4305 .PD 0
4306 .Ip "\fB\-mno-storem-bug\fR" 4
4307 .IX Item "-mno-storem-bug"
4309 \&\fB\-mstorem-bug\fR handles 29k processors which cannot handle the
4310 separation of a mtsrim insn and a storem instruction (most 29000 chips
4311 to date, but not the 29050).
4312 .Ip "\fB\-mno-reuse-arg-regs\fR" 4
4313 .IX Item "-mno-reuse-arg-regs"
4314 .PD 0
4315 .Ip "\fB\-mreuse-arg-regs\fR" 4
4316 .IX Item "-mreuse-arg-regs"
4318 \&\fB\-mno-reuse-arg-regs\fR tells the compiler to only use incoming argument
4319 registers for copying out arguments.  This helps detect calling a function
4320 with fewer arguments than it was declared with.
4321 .Ip "\fB\-mno-impure-text\fR" 4
4322 .IX Item "-mno-impure-text"
4323 .PD 0
4324 .Ip "\fB\-mimpure-text\fR" 4
4325 .IX Item "-mimpure-text"
4327 \&\fB\-mimpure-text\fR, used in addition to \fB\-shared\fR, tells the compiler to
4328 not pass \fB\-assert pure-text\fR to the linker when linking a shared object.
4329 .Ip "\fB\-msoft-float\fR" 4
4330 .IX Item "-msoft-float"
4331 Generate output containing library calls for floating point.
4332 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC\s0.
4333 Normally the facilities of the machine's usual C compiler are used, but
4334 this can't be done directly in cross-compilation.  You must make your
4335 own arrangements to provide suitable library functions for
4336 cross-compilation.
4337 .Ip "\fB\-mno-multm\fR" 4
4338 .IX Item "-mno-multm"
4339 Do not generate multm or multmu instructions.  This is useful for some embedded
4340 systems which do not have trap handlers for these instructions.
4342 .I "\s-1ARM\s0 Options"
4343 .IX Subsection "ARM Options"
4345 These \fB\-m\fR options are defined for Advanced \s-1RISC\s0 Machines (\s-1ARM\s0)
4346 architectures:
4347 .Ip "\fB\-mapcs-frame\fR" 4
4348 .IX Item "-mapcs-frame"
4349 Generate a stack frame that is compliant with the \s-1ARM\s0 Procedure Call
4350 Standard for all functions, even if this is not strictly necessary for
4351 correct execution of the code.  Specifying \fB\-fomit-frame-pointer\fR
4352 with this option will cause the stack frames not to be generated for
4353 leaf functions.  The default is \fB\-mno-apcs-frame\fR.
4354 .Ip "\fB\-mapcs\fR" 4
4355 .IX Item "-mapcs"
4356 This is a synonym for \fB\-mapcs-frame\fR.
4357 .Ip "\fB\-mapcs-26\fR" 4
4358 .IX Item "-mapcs-26"
4359 Generate code for a processor running with a 26\-bit program counter,
4360 and conforming to the function calling standards for the \s-1APCS\s0 26\-bit
4361 option.  This option replaces the \fB\-m2\fR and \fB\-m3\fR options
4362 of previous releases of the compiler.
4363 .Ip "\fB\-mapcs-32\fR" 4
4364 .IX Item "-mapcs-32"
4365 Generate code for a processor running with a 32\-bit program counter,
4366 and conforming to the function calling standards for the \s-1APCS\s0 32\-bit
4367 option.  This option replaces the \fB\-m6\fR option of previous releases
4368 of the compiler.
4369 .Ip "\fB\-mapcs-stack-check\fR" 4
4370 .IX Item "-mapcs-stack-check"
4371 Generate code to check the amount of stack space available upon entry to
4372 every function (that actually uses some stack space).  If there is
4373 insufficient space available then either the function
4374 \&\fB_\|_rt_stkovf_split_small\fR or \fB_\|_rt_stkovf_split_big\fR will be
4375 called, depending upon the amount of stack space required.  The run time
4376 system is required to provide these functions.  The default is
4377 \&\fB\-mno-apcs-stack-check\fR, since this produces smaller code.
4378 .Ip "\fB\-mapcs-float\fR" 4
4379 .IX Item "-mapcs-float"
4380 Pass floating point arguments using the float point registers.  This is
4381 one of the variants of the \s-1APCS\s0.  This option is recommended if the
4382 target hardware has a floating point unit or if a lot of floating point
4383 arithmetic is going to be performed by the code.  The default is
4384 \&\fB\-mno-apcs-float\fR, since integer only code is slightly increased in
4385 size if \fB\-mapcs-float\fR is used.
4386 .Ip "\fB\-mapcs-reentrant\fR" 4
4387 .IX Item "-mapcs-reentrant"
4388 Generate reentrant, position independent code.  This is the equivalent
4389 to specifying the \fB\-fpic\fR option.  The default is
4390 \&\fB\-mno-apcs-reentrant\fR.
4391 .Ip "\fB\-mthumb-interwork\fR" 4
4392 .IX Item "-mthumb-interwork"
4393 Generate code which supports calling between the \s-1ARM\s0 and \s-1THUMB\s0
4394 instruction sets.  Without this option the two instruction sets cannot
4395 be reliably used inside one program.  The default is
4396 \&\fB\-mno-thumb-interwork\fR, since slightly larger code is generated
4397 when \fB\-mthumb-interwork\fR is specified.
4398 .Ip "\fB\-mno-sched-prolog\fR" 4
4399 .IX Item "-mno-sched-prolog"
4400 Prevent the reordering of instructions in the function prolog, or the
4401 merging of those instruction with the instructions in the function's
4402 body.  This means that all functions will start with a recognizable set
4403 of instructions (or in fact one of a choice from a small set of
4404 different function prologues), and this information can be used to
4405 locate the start if functions inside an executable piece of code.  The
4406 default is \fB\-msched-prolog\fR.
4407 .Ip "\fB\-mhard-float\fR" 4
4408 .IX Item "-mhard-float"
4409 Generate output containing floating point instructions.  This is the
4410 default.
4411 .Ip "\fB\-msoft-float\fR" 4
4412 .IX Item "-msoft-float"
4413 Generate output containing library calls for floating point.
4414 \&\fBWarning:\fR the requisite libraries are not available for all \s-1ARM\s0
4415 targets.  Normally the facilities of the machine's usual C compiler are
4416 used, but this cannot be done directly in cross-compilation.  You must make
4417 your own arrangements to provide suitable library functions for
4418 cross-compilation.
4420 \&\fB\-msoft-float\fR changes the calling convention in the output file;
4421 therefore, it is only useful if you compile \fIall\fR of a program with
4422 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
4423 library that comes with \s-1GCC\s0, with \fB\-msoft-float\fR in order for
4424 this to work.
4425 .Ip "\fB\-mlittle-endian\fR" 4
4426 .IX Item "-mlittle-endian"
4427 Generate code for a processor running in little-endian mode.  This is
4428 the default for all standard configurations.
4429 .Ip "\fB\-mbig-endian\fR" 4
4430 .IX Item "-mbig-endian"
4431 Generate code for a processor running in big-endian mode; the default is
4432 to compile code for a little-endian processor.
4433 .Ip "\fB\-mwords-little-endian\fR" 4
4434 .IX Item "-mwords-little-endian"
4435 This option only applies when generating code for big-endian processors.
4436 Generate code for a little-endian word order but a big-endian byte
4437 order.  That is, a byte order of the form \fB32107654\fR.  Note: this
4438 option should only be used if you require compatibility with code for
4439 big-endian \s-1ARM\s0 processors generated by versions of the compiler prior to
4440 2.8.
4441 .Ip "\fB\-malignment-traps\fR" 4
4442 .IX Item "-malignment-traps"
4443 Generate code that will not trap if the \s-1MMU\s0 has alignment traps enabled.
4444 On \s-1ARM\s0 architectures prior to ARMv4, there were no instructions to
4445 access half-word objects stored in memory.  However, when reading from
4446 memory a feature of the \s-1ARM\s0 architecture allows a word load to be used,
4447 even if the address is unaligned, and the processor core will rotate the
4448 data as it is being loaded.  This option tells the compiler that such
4449 misaligned accesses will cause a \s-1MMU\s0 trap and that it should instead
4450 synthesise the access as a series of byte accesses.  The compiler can
4451 still use word accesses to load half-word data if it knows that the
4452 address is aligned to a word boundary.
4454 This option is ignored when compiling for \s-1ARM\s0 architecture 4 or later,
4455 since these processors have instructions to directly access half-word
4456 objects in memory. 
4457 .Ip "\fB\-mno-alignment-traps\fR" 4
4458 .IX Item "-mno-alignment-traps"
4459 Generate code that assumes that the \s-1MMU\s0 will not trap unaligned
4460 accesses.  This produces better code when the target instruction set
4461 does not have half-word memory operations (implementations prior to
4462 ARMv4). 
4464 Note that you cannot use this option to access unaligned word objects,
4465 since the processor will only fetch one 32\-bit aligned object from
4466 memory. 
4468 The default setting for most targets is \-mno-alignment-traps, since
4469 this produces better code when there are no half-word memory
4470 instructions available. 
4471 .Ip "\fB\-mshort-load-bytes\fR" 4
4472 .IX Item "-mshort-load-bytes"
4473 This is a deprecated alias for \fB\-malignment-traps\fR.
4474 .Ip "\fB\-mno-short-load-bytes\fR" 4
4475 .IX Item "-mno-short-load-bytes"
4476 This is a deprecated alias for \fB\-mno-alignment-traps\fR.
4477 .Ip "\fB\-mshort-load-words\fR" 4
4478 .IX Item "-mshort-load-words"
4479 This is a deprecated alias for \fB\-mno-alignment-traps\fR.
4480 .Ip "\fB\-mno-short-load-words\fR" 4
4481 .IX Item "-mno-short-load-words"
4482 This is a deprecated alias for \fB\-malignment-traps\fR.
4483 .Ip "\fB\-mbsd\fR" 4
4484 .IX Item "-mbsd"
4485 This option only applies to \s-1RISC\s0 iX.  Emulate the native BSD-mode
4486 compiler.  This is the default if \fB\-ansi\fR is not specified.
4487 .Ip "\fB\-mxopen\fR" 4
4488 .IX Item "-mxopen"
4489 This option only applies to \s-1RISC\s0 iX.  Emulate the native X/Open-mode
4490 compiler.
4491 .Ip "\fB\-mno-symrename\fR" 4
4492 .IX Item "-mno-symrename"
4493 This option only applies to \s-1RISC\s0 iX.  Do not run the assembler
4494 post-processor, \fBsymrename\fR, after code has been assembled.
4495 Normally it is necessary to modify some of the standard symbols in
4496 preparation for linking with the \s-1RISC\s0 iX C library; this option
4497 suppresses this pass.  The post-processor is never run when the
4498 compiler is built for cross-compilation.
4499 .Ip "\fB\-mcpu=<name>\fR" 4
4500 .IX Item "-mcpu=<name>"
4501 This specifies the name of the target \s-1ARM\s0 processor.  \s-1GCC\s0 uses this name
4502 to determine what kind of instructions it can use when generating
4503 assembly code.  Permissible names are: arm2, arm250, arm3, arm6, arm60,
4504 arm600, arm610, arm620, arm7, arm7m, arm7d, arm7dm, arm7di, arm7dmi,
4505 arm70, arm700, arm700i, arm710, arm710c, arm7100, arm7500, arm7500fe,
4506 arm7tdmi, arm8, strongarm, strongarm110, strongarm1100, arm8, arm810,
4507 arm9, arm920, arm920t, arm9tdmi.
4508 .Ip "\fB\-mtune=<name>\fR" 4
4509 .IX Item "-mtune=<name>"
4510 This option is very similar to the \fB\-mcpu=\fR option, except that
4511 instead of specifying the actual target processor type, and hence
4512 restricting which instructions can be used, it specifies that \s-1GCC\s0 should
4513 tune the performance of the code as if the target were of the type
4514 specified in this option, but still choosing the instructions that it
4515 will generate based on the cpu specified by a \fB\-mcpu=\fR option.
4516 For some arm implementations better performance can be obtained by using
4517 this option.
4518 .Ip "\fB\-march=<name>\fR" 4
4519 .IX Item "-march=<name>"
4520 This specifies the name of the target \s-1ARM\s0 architecture.  \s-1GCC\s0 uses this
4521 name to determine what kind of instructions it can use when generating
4522 assembly code.  This option can be used in conjunction with or instead
4523 of the \fB\-mcpu=\fR option.  Permissible names are: armv2, armv2a,
4524 armv3, armv3m, armv4, armv4t, armv5.
4525 .Ip "\fB\-mfpe=<number>\fR" 4
4526 .IX Item "-mfpe=<number>"
4527 .PD 0
4528 .Ip "\fB\-mfp=<number>\fR" 4
4529 .IX Item "-mfp=<number>"
4531 This specifies the version of the floating point emulation available on
4532 the target.  Permissible values are 2 and 3.  \fB\-mfp=\fR is a synonym
4533 for \fB\-mfpe=\fR to support older versions of \s-1GCC\s0.
4534 .Ip "\fB\-mstructure-size-boundary=<n>\fR" 4
4535 .IX Item "-mstructure-size-boundary=<n>"
4536 The size of all structures and unions will be rounded up to a multiple
4537 of the number of bits set by this option.  Permissible values are 8 and
4538 32.  The default value varies for different toolchains.  For the \s-1COFF\s0
4539 targeted toolchain the default value is 8.  Specifying the larger number
4540 can produce faster, more efficient code, but can also increase the size
4541 of the program.  The two values are potentially incompatible.  Code
4542 compiled with one value cannot necessarily expect to work with code or
4543 libraries compiled with the other value, if they exchange information
4544 using structures or unions.  Programmers are encouraged to use the 32
4545 value as future versions of the toolchain may default to this value.
4546 .Ip "\fB\-mabort-on-noreturn\fR" 4
4547 .IX Item "-mabort-on-noreturn"
4548 Generate a call to the function abort at the end of a noreturn function.
4549 It will be executed if the function tries to return.
4550 .Ip "\fB\-mlong-calls\fR" 4
4551 .IX Item "-mlong-calls"
4552 .PD 0
4553 .Ip "\fB\-mno-long-calls\fR" 4
4554 .IX Item "-mno-long-calls"
4556 Tells the compiler to perform function calls by first loading the
4557 address of the function into a register and then performing a subroutine
4558 call on this register.  This switch is needed if the target function
4559 will lie outside of the 64 megabyte addressing range of the offset based
4560 version of subroutine call instruction. 
4562 Even if this switch is enabled, not all function calls will be turned
4563 into long calls.  The heuristic is that static functions, functions
4564 which have the \fBshort-call\fR attribute, functions that are inside
4565 the scope of a \fB#pragma no_long_calls\fR directive and functions whose
4566 definitions have already been compiled within the current compilation
4567 unit, will not be turned into long calls.  The exception to this rule is
4568 that weak function definitions, functions with the \fBlong-call\fR
4569 attribute or the \fBsection\fR attribute, and functions that are within
4570 the scope of a \fB#pragma long_calls\fR directive, will always be
4571 turned into long calls.
4573 This feature is not enabled by default.  Specifying
4574 \&\fB\*(--no-long-calls\fR will restore the default behaviour, as will
4575 placing the function calls within the scope of a \fB#pragma
4576 long_calls_off\fR directive.  Note these switches have no effect on how
4577 the compiler generates code to handle function calls via function
4578 pointers.  
4579 .Ip "\fB\-mnop-fun-dllimport\fR" 4
4580 .IX Item "-mnop-fun-dllimport"
4581 Disable the support for the \fIdllimport\fR attribute.
4582 .Ip "\fB\-msingle-pic-base\fR" 4
4583 .IX Item "-msingle-pic-base"
4584 Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
4585 loading it in the prologue for each function.  The run-time system is
4586 responsible for initialising this register with an appropriate value
4587 before execution begins.
4588 .Ip "\fB\-mpic-register=<reg>\fR" 4
4589 .IX Item "-mpic-register=<reg>"
4590 Specify the register to be used for \s-1PIC\s0 addressing.  The default is R10
4591 unless stack-checking is enabled, when R9 is used.
4593 .I "Thumb Options"
4594 .IX Subsection "Thumb Options"
4595 .Ip "\fB\-mthumb-interwork\fR" 4
4596 .IX Item "-mthumb-interwork"
4597 Generate code which supports calling between the \s-1THUMB\s0 and \s-1ARM\s0
4598 instruction sets.  Without this option the two instruction sets cannot
4599 be reliably used inside one program.  The default is
4600 \&\fB\-mno-thumb-interwork\fR, since slightly smaller code is generated
4601 with this option.
4602 .Ip "\fB\-mtpcs-frame\fR" 4
4603 .IX Item "-mtpcs-frame"
4604 Generate a stack frame that is compliant with the Thumb Procedure Call
4605 Standard for all non-leaf functions.  (A leaf function is one that does
4606 not call any other functions).  The default is \fB\-mno-apcs-frame\fR. 
4607 .Ip "\fB\-mtpcs-leaf-frame\fR" 4
4608 .IX Item "-mtpcs-leaf-frame"
4609 Generate a stack frame that is compliant with the Thumb Procedure Call
4610 Standard for all leaf functions.  (A leaf function is one that does
4611 not call any other functions).  The default is \fB\-mno-apcs-leaf-frame\fR. 
4612 .Ip "\fB\-mlittle-endian\fR" 4
4613 .IX Item "-mlittle-endian"
4614 Generate code for a processor running in little-endian mode.  This is
4615 the default for all standard configurations.
4616 .Ip "\fB\-mbig-endian\fR" 4
4617 .IX Item "-mbig-endian"
4618 Generate code for a processor running in big-endian mode.
4619 .Ip "\fB\-mstructure-size-boundary=<n>\fR" 4
4620 .IX Item "-mstructure-size-boundary=<n>"
4621 The size of all structures and unions will be rounded up to a multiple
4622 of the number of bits set by this option.  Permissible values are 8 and
4623 32.  The default value varies for different toolchains.  For the \s-1COFF\s0
4624 targeted toolchain the default value is 8.  Specifying the larger number
4625 can produced faster, more efficient code, but can also increase the size
4626 of the program.  The two values are potentially incompatible.  Code
4627 compiled with one value cannot necessarily expect to work with code or
4628 libraries compiled with the other value, if they exchange information
4629 using structures or unions.  Programmers are encouraged to use the 32
4630 value as future versions of the toolchain may default to this value.
4631 .Ip "\fB\-mnop-fun-dllimport\fR" 4
4632 .IX Item "-mnop-fun-dllimport"
4633 Disable the support for the \fIdllimport\fR attribute.
4634 .Ip "\fB\-mcallee-super-interworking\fR" 4
4635 .IX Item "-mcallee-super-interworking"
4636 Gives all externally visible functions in the file being compiled an \s-1ARM\s0
4637 instruction set header which switches to Thumb mode before executing the
4638 rest of the function.  This allows these functions to be called from
4639 non-interworking code.
4640 .Ip "\fB\-mcaller-super-interworking\fR" 4
4641 .IX Item "-mcaller-super-interworking"
4642 Allows calls via function pointers (including virtual functions) to
4643 execute correctly regardless of whether the target code has been
4644 compiled for interworking or not.  There is a small overhead in the cost
4645 of executing a function pointer if this option is enabled.
4646 .Ip "\fB\-msingle-pic-base\fR" 4
4647 .IX Item "-msingle-pic-base"
4648 Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
4649 loading it in the prologue for each function.  The run-time system is
4650 responsible for initialising this register with an appropriate value
4651 before execution begins.
4652 .Ip "\fB\-mpic-register=<reg>\fR" 4
4653 .IX Item "-mpic-register=<reg>"
4654 Specify the register to be used for \s-1PIC\s0 addressing.  The default is R10.
4656 .I "\s-1MN10200\s0 Options"
4657 .IX Subsection "MN10200 Options"
4659 These \fB\-m\fR options are defined for Matsushita \s-1MN10200\s0 architectures:
4660 .Ip "\fB\-mrelax\fR" 4
4661 .IX Item "-mrelax"
4662 Indicate to the linker that it should perform a relaxation optimization pass
4663 to shorten branches, calls and absolute memory addresses.  This option only
4664 has an effect when used on the command line for the final link step.
4666 This option makes symbolic debugging impossible. 
4668 .I "\s-1MN10300\s0 Options"
4669 .IX Subsection "MN10300 Options"
4671 These \fB\-m\fR options are defined for Matsushita \s-1MN10300\s0 architectures:
4672 .Ip "\fB\-mmult-bug\fR" 4
4673 .IX Item "-mmult-bug"
4674 Generate code to avoid bugs in the multiply instructions for the \s-1MN10300\s0
4675 processors.  This is the default.
4676 .Ip "\fB\-mno-mult-bug\fR" 4
4677 .IX Item "-mno-mult-bug"
4678 Do not generate code to avoid bugs in the multiply instructions for the
4679 \&\s-1MN10300\s0 processors.
4680 .Ip "\fB\-mam33\fR" 4
4681 .IX Item "-mam33"
4682 Generate code which uses features specific to the \s-1AM33\s0 processor.
4683 .Ip "\fB\-mno-am33\fR" 4
4684 .IX Item "-mno-am33"
4685 Do not generate code which uses features specific to the \s-1AM33\s0 processor.  This
4686 is the default.
4687 .Ip "\fB\-mrelax\fR" 4
4688 .IX Item "-mrelax"
4689 Indicate to the linker that it should perform a relaxation optimization pass
4690 to shorten branches, calls and absolute memory addresses.  This option only
4691 has an effect when used on the command line for the final link step.
4693 This option makes symbolic debugging impossible. 
4695 .I "M32R/D Options"
4696 .IX Subsection "M32R/D Options"
4698 These \fB\-m\fR options are defined for Mitsubishi M32R/D architectures:
4699 .Ip "\fB\-mcode-model=small\fR" 4
4700 .IX Item "-mcode-model=small"
4701 Assume all objects live in the lower 16MB of memory (so that their addresses
4702 can be loaded with the \f(CW\*(C`ld24\*(C'\fR instruction), and assume all subroutines
4703 are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
4704 This is the default.
4706 The addressability of a particular object can be set with the
4707 \&\f(CW\*(C`model\*(C'\fR attribute.
4708 .Ip "\fB\-mcode-model=medium\fR" 4
4709 .IX Item "-mcode-model=medium"
4710 Assume objects may be anywhere in the 32 bit address space (the compiler
4711 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
4712 assume all subroutines are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
4713 .Ip "\fB\-mcode-model=large\fR" 4
4714 .IX Item "-mcode-model=large"
4715 Assume objects may be anywhere in the 32 bit address space (the compiler
4716 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
4717 assume subroutines may not be reachable with the \f(CW\*(C`bl\*(C'\fR instruction
4718 (the compiler will generate the much slower \f(CW\*(C`seth/add3/jl\*(C'\fR
4719 instruction sequence).
4720 .Ip "\fB\-msdata=none\fR" 4
4721 .IX Item "-msdata=none"
4722 Disable use of the small data area.  Variables will be put into
4723 one of \fB.data\fR, \fBbss\fR, or \fB.rodata\fR (unless the
4724 \&\f(CW\*(C`section\*(C'\fR attribute has been specified).
4725 This is the default.
4727 The small data area consists of sections \fB.sdata\fR and \fB.sbss\fR.
4728 Objects may be explicitly put in the small data area with the
4729 \&\f(CW\*(C`section\*(C'\fR attribute using one of these sections.
4730 .Ip "\fB\-msdata=sdata\fR" 4
4731 .IX Item "-msdata=sdata"
4732 Put small global and static data in the small data area, but do not
4733 generate special code to reference them.
4734 .Ip "\fB\-msdata=use\fR" 4
4735 .IX Item "-msdata=use"
4736 Put small global and static data in the small data area, and generate
4737 special instructions to reference them.
4738 .Ip "\fB\-G\fR \fInum\fR" 4
4739 .IX Item "-G num"
4740 Put global and static objects less than or equal to \fInum\fR bytes
4741 into the small data or bss sections instead of the normal data or bss
4742 sections.  The default value of \fInum\fR is 8.
4743 The \fB\-msdata\fR option must be set to one of \fBsdata\fR or \fBuse\fR
4744 for this option to have any effect.
4746 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
4747 Compiling with different values of \fInum\fR may or may not work; if it
4748 doesn't the linker will give an error message \- incorrect code will not be
4749 generated.
4751 .I "M88K Options"
4752 .IX Subsection "M88K Options"
4754 These \fB\-m\fR options are defined for Motorola 88k architectures:
4755 .Ip "\fB\-m88000\fR" 4
4756 .IX Item "-m88000"
4757 Generate code that works well on both the m88100 and the
4758 m88110.
4759 .Ip "\fB\-m88100\fR" 4
4760 .IX Item "-m88100"
4761 Generate code that works best for the m88100, but that also
4762 runs on the m88110.
4763 .Ip "\fB\-m88110\fR" 4
4764 .IX Item "-m88110"
4765 Generate code that works best for the m88110, and may not run
4766 on the m88100.
4767 .Ip "\fB\-mbig-pic\fR" 4
4768 .IX Item "-mbig-pic"
4769 Obsolete option to be removed from the next revision.
4770 Use \fB\-fPIC\fR.
4771 .Ip "\fB\-midentify-revision\fR" 4
4772 .IX Item "-midentify-revision"
4773 Include an \f(CW\*(C`ident\*(C'\fR directive in the assembler output recording the
4774 source file name, compiler name and version, timestamp, and compilation
4775 flags used.
4776 .Ip "\fB\-mno-underscores\fR" 4
4777 .IX Item "-mno-underscores"
4778 In assembler output, emit symbol names without adding an underscore
4779 character at the beginning of each name.  The default is to use an
4780 underscore as prefix on each name.
4781 .Ip "\fB\-mocs-debug-info\fR" 4
4782 .IX Item "-mocs-debug-info"
4783 .PD 0
4784 .Ip "\fB\-mno-ocs-debug-info\fR" 4
4785 .IX Item "-mno-ocs-debug-info"
4787 Include (or omit) additional debugging information (about registers used
4788 in each stack frame) as specified in the 88open Object Compatibility
4789 Standard, ``\s-1OCS\s0''.  This extra information allows debugging of code that
4790 has had the frame pointer eliminated.  The default for \s-1DG/UX\s0, SVr4, and
4791 Delta 88 SVr3.2 is to include this information; other 88k configurations
4792 omit this information by default.
4793 .Ip "\fB\-mocs-frame-position\fR" 4
4794 .IX Item "-mocs-frame-position"
4795 When emitting \s-1COFF\s0 debugging information for automatic variables and
4796 parameters stored on the stack, use the offset from the canonical frame
4797 address, which is the stack pointer (register 31) on entry to the
4798 function.  The \s-1DG/UX\s0, SVr4, Delta88 SVr3.2, and \s-1BCS\s0 configurations use
4799 \&\fB\-mocs-frame-position\fR; other 88k configurations have the default
4800 \&\fB\-mno-ocs-frame-position\fR.
4801 .Ip "\fB\-mno-ocs-frame-position\fR" 4
4802 .IX Item "-mno-ocs-frame-position"
4803 When emitting \s-1COFF\s0 debugging information for automatic variables and
4804 parameters stored on the stack, use the offset from the frame pointer
4805 register (register 30).  When this option is in effect, the frame
4806 pointer is not eliminated when debugging information is selected by the
4807 \&\-g switch.
4808 .Ip "\fB\-moptimize-arg-area\fR" 4
4809 .IX Item "-moptimize-arg-area"
4810 .PD 0
4811 .Ip "\fB\-mno-optimize-arg-area\fR" 4
4812 .IX Item "-mno-optimize-arg-area"
4814 Control how function arguments are stored in stack frames.
4815 \&\fB\-moptimize-arg-area\fR saves space by optimizing them, but this
4816 conflicts with the 88open specifications.  The opposite alternative,
4817 \&\fB\-mno-optimize-arg-area\fR, agrees with 88open standards.  By default
4818 \&\s-1GCC\s0 does not optimize the argument area.
4819 .Ip "\fB\-mshort-data-\fR\fInum\fR" 4
4820 .IX Item "-mshort-data-num"
4821 Generate smaller data references by making them relative to \f(CW\*(C`r0\*(C'\fR,
4822 which allows loading a value using a single instruction (rather than the
4823 usual two).  You control which data references are affected by
4824 specifying \fInum\fR with this option.  For example, if you specify
4825 \&\fB\-mshort-data-512\fR, then the data references affected are those
4826 involving displacements of less than 512 bytes.
4827 \&\fB\-mshort-data-\fR\fInum\fR is not effective for \fInum\fR greater
4828 than 64k.
4829 .Ip "\fB\-mserialize-volatile\fR" 4
4830 .IX Item "-mserialize-volatile"
4831 .PD 0
4832 .Ip "\fB\-mno-serialize-volatile\fR" 4
4833 .IX Item "-mno-serialize-volatile"
4835 Do, or don't, generate code to guarantee sequential consistency
4836 of volatile memory references.  By default, consistency is
4837 guaranteed.
4839 The order of memory references made by the \s-1MC88110\s0 processor does
4840 not always match the order of the instructions requesting those
4841 references.  In particular, a load instruction may execute before
4842 a preceding store instruction.  Such reordering violates
4843 sequential consistency of volatile memory references, when there
4844 are multiple processors.   When consistency must be guaranteed,
4845 \&\s-1GNU\s0 C generates special instructions, as needed, to force
4846 execution in the proper order.
4848 The \s-1MC88100\s0 processor does not reorder memory references and so
4849 always provides sequential consistency.  However, by default, \s-1GNU\s0
4850 C generates the special instructions to guarantee consistency
4851 even when you use \fB\-m88100\fR, so that the code may be run on an
4852 \&\s-1MC88110\s0 processor.  If you intend to run your code only on the
4853 \&\s-1MC88100\s0 processor, you may use \fB\-mno-serialize-volatile\fR.
4855 The extra code generated to guarantee consistency may affect the
4856 performance of your application.  If you know that you can safely
4857 forgo this guarantee, you may use \fB\-mno-serialize-volatile\fR.
4858 .Ip "\fB\-msvr4\fR" 4
4859 .IX Item "-msvr4"
4860 .PD 0
4861 .Ip "\fB\-msvr3\fR" 4
4862 .IX Item "-msvr3"
4864 Turn on (\fB\-msvr4\fR) or off (\fB\-msvr3\fR) compiler extensions
4865 related to System V release 4 (SVr4).  This controls the following:
4866 .RS 4
4867 .Ip "1." 4
4868 Which variant of the assembler syntax to emit.
4869 .Ip "2." 4
4870 \&\fB\-msvr4\fR makes the C preprocessor recognize \fB#pragma weak\fR
4871 that is used on System V release 4.
4872 .Ip "3." 4
4873 \&\fB\-msvr4\fR makes \s-1GCC\s0 issue additional declaration directives used in
4874 SVr4.
4876 .RS 4
4878 \&\fB\-msvr4\fR is the default for the m88k-motorola-sysv4 and
4879 m88k-dg-dgux m88k configurations. \fB\-msvr3\fR is the default for all
4880 other m88k configurations.
4882 .Ip "\fB\-mversion-03.00\fR" 4
4883 .IX Item "-mversion-03.00"
4884 This option is obsolete, and is ignored.
4885 .Ip "\fB\-mno-check-zero-division\fR" 4
4886 .IX Item "-mno-check-zero-division"
4887 .PD 0
4888 .Ip "\fB\-mcheck-zero-division\fR" 4
4889 .IX Item "-mcheck-zero-division"
4891 Do, or don't, generate code to guarantee that integer division by
4892 zero will be detected.  By default, detection is guaranteed.
4894 Some models of the \s-1MC88100\s0 processor fail to trap upon integer
4895 division by zero under certain conditions.  By default, when
4896 compiling code that might be run on such a processor, \s-1GNU\s0 C
4897 generates code that explicitly checks for zero-valued divisors
4898 and traps with exception number 503 when one is detected.  Use of
4899 mno-check-zero-division suppresses such checking for code
4900 generated to run on an \s-1MC88100\s0 processor.
4902 \&\s-1GNU\s0 C assumes that the \s-1MC88110\s0 processor correctly detects all
4903 instances of integer division by zero.  When \fB\-m88110\fR is
4904 specified, both \fB\-mcheck-zero-division\fR and
4905 \&\fB\-mno-check-zero-division\fR are ignored, and no explicit checks for
4906 zero-valued divisors are generated.
4907 .Ip "\fB\-muse-div-instruction\fR" 4
4908 .IX Item "-muse-div-instruction"
4909 Use the div instruction for signed integer division on the
4910 \&\s-1MC88100\s0 processor.  By default, the div instruction is not used.
4912 On the \s-1MC88100\s0 processor the signed integer division instruction
4913 div) traps to the operating system on a negative operand.  The
4914 operating system transparently completes the operation, but at a
4915 large cost in execution time.  By default, when compiling code
4916 that might be run on an \s-1MC88100\s0 processor, \s-1GNU\s0 C emulates signed
4917 integer division using the unsigned integer division instruction
4918 divu), thereby avoiding the large penalty of a trap to the
4919 operating system.  Such emulation has its own, smaller, execution
4920 cost in both time and space.  To the extent that your code's
4921 important signed integer division operations are performed on two
4922 nonnegative operands, it may be desirable to use the div
4923 instruction directly.
4925 On the \s-1MC88110\s0 processor the div instruction (also known as the
4926 divs instruction) processes negative operands without trapping to
4927 the operating system.  When \fB\-m88110\fR is specified,
4928 \&\fB\-muse-div-instruction\fR is ignored, and the div instruction is used
4929 for signed integer division.
4931 Note that the result of dividing \s-1INT_MIN\s0 by \-1 is undefined.  In
4932 particular, the behavior of such a division with and without
4933 \&\fB\-muse-div-instruction\fR  may differ.
4934 .Ip "\fB\-mtrap-large-shift\fR" 4
4935 .IX Item "-mtrap-large-shift"
4936 .PD 0
4937 .Ip "\fB\-mhandle-large-shift\fR" 4
4938 .IX Item "-mhandle-large-shift"
4940 Include code to detect bit-shifts of more than 31 bits; respectively,
4941 trap such shifts or emit code to handle them properly.  By default \s-1GCC\s0
4942 makes no special provision for large bit shifts.
4943 .Ip "\fB\-mwarn-passed-structs\fR" 4
4944 .IX Item "-mwarn-passed-structs"
4945 Warn when a function passes a struct as an argument or result.
4946 Structure-passing conventions have changed during the evolution of the C
4947 language, and are often the source of portability problems.  By default,
4948 \&\s-1GCC\s0 issues no such warning.
4950 .I "\s-1IBM\s0 \s-1RS/6000\s0 and PowerPC Options"
4951 .IX Subsection "IBM RS/6000 and PowerPC Options"
4953 These \fB\-m\fR options are defined for the \s-1IBM\s0 \s-1RS/6000\s0 and PowerPC:
4954 .Ip "\fB\-mpower\fR" 4
4955 .IX Item "-mpower"
4956 .PD 0
4957 .Ip "\fB\-mno-power\fR" 4
4958 .IX Item "-mno-power"
4959 .Ip "\fB\-mpower2\fR" 4
4960 .IX Item "-mpower2"
4961 .Ip "\fB\-mno-power2\fR" 4
4962 .IX Item "-mno-power2"
4963 .Ip "\fB\-mpowerpc\fR" 4
4964 .IX Item "-mpowerpc"
4965 .Ip "\fB\-mno-powerpc\fR" 4
4966 .IX Item "-mno-powerpc"
4967 .Ip "\fB\-mpowerpc-gpopt\fR" 4
4968 .IX Item "-mpowerpc-gpopt"
4969 .Ip "\fB\-mno-powerpc-gpopt\fR" 4
4970 .IX Item "-mno-powerpc-gpopt"
4971 .Ip "\fB\-mpowerpc-gfxopt\fR" 4
4972 .IX Item "-mpowerpc-gfxopt"
4973 .Ip "\fB\-mno-powerpc-gfxopt\fR" 4
4974 .IX Item "-mno-powerpc-gfxopt"
4975 .Ip "\fB\-mpowerpc64\fR" 4
4976 .IX Item "-mpowerpc64"
4977 .Ip "\fB\-mno-powerpc64\fR" 4
4978 .IX Item "-mno-powerpc64"
4980 \&\s-1GCC\s0 supports two related instruction set architectures for the
4981 \&\s-1RS/6000\s0 and PowerPC.  The \fI\s-1POWER\s0\fR instruction set are those
4982 instructions supported by the \fBrios\fR chip set used in the original
4983 \&\s-1RS/6000\s0 systems and the \fIPowerPC\fR instruction set is the
4984 architecture of the Motorola MPC5xx, MPC6xx, MPC8xx microprocessors, and
4985 the \s-1IBM\s0 4xx microprocessors.
4987 Neither architecture is a subset of the other.  However there is a
4988 large common subset of instructions supported by both.  An \s-1MQ\s0
4989 register is included in processors supporting the \s-1POWER\s0 architecture.
4991 You use these options to specify which instructions are available on the
4992 processor you are using.  The default value of these options is
4993 determined when configuring \s-1GCC\s0.  Specifying the
4994 \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
4995 options.  We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
4996 rather than the options listed above.
4998 The \fB\-mpower\fR option allows \s-1GCC\s0 to generate instructions that
4999 are found only in the \s-1POWER\s0 architecture and to use the \s-1MQ\s0 register.
5000 Specifying \fB\-mpower2\fR implies \fB\-power\fR and also allows \s-1GCC\s0
5001 to generate instructions that are present in the \s-1POWER2\s0 architecture but
5002 not the original \s-1POWER\s0 architecture.
5004 The \fB\-mpowerpc\fR option allows \s-1GCC\s0 to generate instructions that
5005 are found only in the 32\-bit subset of the PowerPC architecture.
5006 Specifying \fB\-mpowerpc-gpopt\fR implies \fB\-mpowerpc\fR and also allows
5007 \&\s-1GCC\s0 to use the optional PowerPC architecture instructions in the
5008 General Purpose group, including floating-point square root.  Specifying
5009 \&\fB\-mpowerpc-gfxopt\fR implies \fB\-mpowerpc\fR and also allows \s-1GCC\s0 to
5010 use the optional PowerPC architecture instructions in the Graphics
5011 group, including floating-point select.
5013 The \fB\-mpowerpc64\fR option allows \s-1GCC\s0 to generate the additional
5014 64\-bit instructions that are found in the full PowerPC64 architecture
5015 and to treat GPRs as 64\-bit, doubleword quantities.  \s-1GCC\s0 defaults to
5016 \&\fB\-mno-powerpc64\fR.
5018 If you specify both \fB\-mno-power\fR and \fB\-mno-powerpc\fR, \s-1GCC\s0
5019 will use only the instructions in the common subset of both
5020 architectures plus some special \s-1AIX\s0 common-mode calls, and will not use
5021 the \s-1MQ\s0 register.  Specifying both \fB\-mpower\fR and \fB\-mpowerpc\fR
5022 permits \s-1GCC\s0 to use any instruction from either architecture and to
5023 allow use of the \s-1MQ\s0 register; specify this for the Motorola \s-1MPC601\s0.
5024 .Ip "\fB\-mnew-mnemonics\fR" 4
5025 .IX Item "-mnew-mnemonics"
5026 .PD 0
5027 .Ip "\fB\-mold-mnemonics\fR" 4
5028 .IX Item "-mold-mnemonics"
5030 Select which mnemonics to use in the generated assembler code.
5031 \&\fB\-mnew-mnemonics\fR requests output that uses the assembler mnemonics
5032 defined for the PowerPC architecture, while \fB\-mold-mnemonics\fR
5033 requests the assembler mnemonics defined for the \s-1POWER\s0 architecture.
5034 Instructions defined in only one architecture have only one mnemonic;
5035 \&\s-1GCC\s0 uses that mnemonic irrespective of which of these options is
5036 specified.
5038 \&\s-1GCC\s0 defaults to the mnemonics appropriate for the architecture in
5039 use.  Specifying \fB\-mcpu=\fR\fIcpu_type\fR sometimes overrides the
5040 value of these option.  Unless you are building a cross-compiler, you
5041 should normally not specify either \fB\-mnew-mnemonics\fR or
5042 \&\fB\-mold-mnemonics\fR, but should instead accept the default.
5043 .Ip "\fB\-mcpu=\fR\fIcpu_type\fR" 4
5044 .IX Item "-mcpu=cpu_type"
5045 Set architecture type, register usage, choice of mnemonics, and
5046 instruction scheduling parameters for machine type \fIcpu_type\fR.
5047 Supported values for \fIcpu_type\fR are \fBrios\fR, \fBrios1\fR,
5048 \&\fBrsc\fR, \fBrios2\fR, \fBrs64a\fR, \fB601\fR, \fB602\fR,
5049 \&\fB603\fR, \fB603e\fR, \fB604\fR, \fB604e\fR, \fB620\fR,
5050 \&\fB630\fR, \fB740\fR, \fB750\fR, \fBpower\fR, \fBpower2\fR,
5051 \&\fBpowerpc\fR, \fB403\fR, \fB505\fR, \fB801\fR, \fB821\fR,
5052 \&\fB823\fR, and \fB860\fR and \fBcommon\fR.  \fB\-mcpu=power\fR,
5053 \&\fB\-mcpu=power2\fR, \fB\-mcpu=powerpc\fR, and \fB\-mcpu=powerpc64\fR
5054 specify generic \s-1POWER\s0, \s-1POWER2\s0, pure 32\-bit PowerPC (i.e., not \s-1MPC601\s0),
5055 and 64\-bit PowerPC architecture machine types, with an appropriate,
5056 generic processor model assumed for scheduling purposes.
5058 Specifying any of the following options: 
5059 \&\fB\-mcpu=rios1\fR, \fB\-mcpu=rios2\fR, \fB\-mcpu=rsc\fR,
5060 \&\fB\-mcpu=power\fR, or \fB\-mcpu=power2\fR  
5061 enables the \fB\-mpower\fR option and disables the \fB\-mpowerpc\fR option; 
5062 \&\fB\-mcpu=601\fR enables both the \fB\-mpower\fR and \fB\-mpowerpc\fR options.
5063 All of \fB\-mcpu=rs64a\fR, \fB\-mcpu=602\fR, \fB\-mcpu=603\fR,
5064 \&\fB\-mcpu=603e\fR, \fB\-mcpu=604\fR, \fB\-mcpu=620\fR, \fB\-mcpu=630\fR,
5065 \&\fB\-mcpu=740\fR, and \fB\-mcpu=750\fR
5066 enable the \fB\-mpowerpc\fR option and disable the \fB\-mpower\fR option.  
5067 Exactly similarly, all of \fB\-mcpu=403\fR,
5068 \&\fB\-mcpu=505\fR, \fB\-mcpu=821\fR, \fB\-mcpu=860\fR and \fB\-mcpu=powerpc\fR 
5069 enable the \fB\-mpowerpc\fR option and disable the \fB\-mpower\fR option.
5070 \&\fB\-mcpu=common\fR disables both the 
5071 \&\fB\-mpower\fR and \fB\-mpowerpc\fR options.
5073 \&\s-1AIX\s0 versions 4 or greater selects \fB\-mcpu=common\fR by default, so
5074 that code will operate on all members of the \s-1RS/6000\s0 \s-1POWER\s0 and PowerPC
5075 families.  In that case, \s-1GCC\s0 will use only the instructions in the
5076 common subset of both architectures plus some special \s-1AIX\s0 common-mode
5077 calls, and will not use the \s-1MQ\s0 register.  \s-1GCC\s0 assumes a generic
5078 processor model for scheduling purposes.
5080 Specifying any of the options \fB\-mcpu=rios1\fR, \fB\-mcpu=rios2\fR,
5081 \&\fB\-mcpu=rsc\fR, \fB\-mcpu=power\fR, or \fB\-mcpu=power2\fR also
5082 disables the \fBnew-mnemonics\fR option.  Specifying \fB\-mcpu=601\fR,
5083 \&\fB\-mcpu=602\fR, \fB\-mcpu=603\fR, \fB\-mcpu=603e\fR, \fB\-mcpu=604\fR,
5084 \&\fB\-mcpu=620\fR, \fB\-mcpu=630\fR, \fB\-mcpu=403\fR, \fB\-mcpu=505\fR,
5085 \&\fB\-mcpu=821\fR, \fB\-mcpu=860\fR or \fB\-mcpu=powerpc\fR also enables
5086 the \fBnew-mnemonics\fR option.
5088 Specifying \fB\-mcpu=403\fR, \fB\-mcpu=821\fR, or \fB\-mcpu=860\fR also
5089 enables the \fB\-msoft-float\fR option.
5090 .Ip "\fB\-mtune=\fR\fIcpu_type\fR" 4
5091 .IX Item "-mtune=cpu_type"
5092 Set the instruction scheduling parameters for machine type
5093 \&\fIcpu_type\fR, but do not set the architecture type, register usage,
5094 choice of mnemonics like \fB\-mcpu=\fR\fIcpu_type\fR would.  The same
5095 values for \fIcpu_type\fR are used for \fB\-mtune=\fR\fIcpu_type\fR as
5096 for \fB\-mcpu=\fR\fIcpu_type\fR.  The \fB\-mtune=\fR\fIcpu_type\fR
5097 option overrides the \fB\-mcpu=\fR\fIcpu_type\fR option in terms of
5098 instruction scheduling parameters.
5099 .Ip "\fB\-mfull-toc\fR" 4
5100 .IX Item "-mfull-toc"
5101 .PD 0
5102 .Ip "\fB\-mno-fp-in-toc\fR" 4
5103 .IX Item "-mno-fp-in-toc"
5104 .Ip "\fB\-mno-sum-in-toc\fR" 4
5105 .IX Item "-mno-sum-in-toc"
5106 .Ip "\fB\-mminimal-toc\fR" 4
5107 .IX Item "-mminimal-toc"
5109 Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
5110 every executable file.  The \fB\-mfull-toc\fR option is selected by
5111 default.  In that case, \s-1GCC\s0 will allocate at least one \s-1TOC\s0 entry for
5112 each unique non-automatic variable reference in your program.  \s-1GCC\s0
5113 will also place floating-point constants in the \s-1TOC\s0.  However, only
5114 16,384 entries are available in the \s-1TOC\s0.
5116 If you receive a linker error message that saying you have overflowed
5117 the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
5118 with the \fB\-mno-fp-in-toc\fR and \fB\-mno-sum-in-toc\fR options.
5119 \&\fB\-mno-fp-in-toc\fR prevents \s-1GCC\s0 from putting floating-point
5120 constants in the \s-1TOC\s0 and \fB\-mno-sum-in-toc\fR forces \s-1GCC\s0 to
5121 generate code to calculate the sum of an address and a constant at
5122 run-time instead of putting that sum into the \s-1TOC\s0.  You may specify one
5123 or both of these options.  Each causes \s-1GCC\s0 to produce very slightly
5124 slower and larger code at the expense of conserving \s-1TOC\s0 space.
5126 If you still run out of space in the \s-1TOC\s0 even when you specify both of
5127 these options, specify \fB\-mminimal-toc\fR instead.  This option causes
5128 \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file.  When you specify this
5129 option, \s-1GCC\s0 will produce code that is slower and larger but which
5130 uses extremely little \s-1TOC\s0 space.  You may wish to use this option
5131 only on files that contain less frequently executed code. 
5132 .Ip "\fB\-maix64\fR" 4
5133 .IX Item "-maix64"
5134 .PD 0
5135 .Ip "\fB\-maix32\fR" 4
5136 .IX Item "-maix32"
5138 Enable 64\-bit \s-1AIX\s0 \s-1ABI\s0 and calling convention: 64\-bit pointers, 64\-bit
5139 \&\f(CW\*(C`long\*(C'\fR type, and the infrastructure needed to support them.
5140 Specifying \fB\-maix64\fR implies \fB\-mpowerpc64\fR and
5141 \&\fB\-mpowerpc\fR, while \fB\-maix32\fR disables the 64\-bit \s-1ABI\s0 and
5142 implies \fB\-mno-powerpc64\fR.  \s-1GCC\s0 defaults to \fB\-maix32\fR.
5143 .Ip "\fB\-mxl-call\fR" 4
5144 .IX Item "-mxl-call"
5145 .PD 0
5146 .Ip "\fB\-mno-xl-call\fR" 4
5147 .IX Item "-mno-xl-call"
5149 On \s-1AIX\s0, pass floating-point arguments to prototyped functions beyond the
5150 register save area (\s-1RSA\s0) on the stack in addition to argument FPRs.  The
5151 \&\s-1AIX\s0 calling convention was extended but not initially documented to
5152 handle an obscure K&R C case of calling a function that takes the
5153 address of its arguments with fewer arguments than declared.  \s-1AIX\s0 \s-1XL\s0
5154 compilers access floating point arguments which do not fit in the
5155 \&\s-1RSA\s0 from the stack when a subroutine is compiled without
5156 optimization.  Because always storing floating-point arguments on the
5157 stack is inefficient and rarely needed, this option is not enabled by
5158 default and only is necessary when calling subroutines compiled by \s-1AIX\s0
5159 \&\s-1XL\s0 compilers without optimization.
5160 .Ip "\fB\-mthreads\fR" 4
5161 .IX Item "-mthreads"
5162 Support \fI\s-1AIX\s0 Threads\fR.  Link an application written to use
5163 \&\fIpthreads\fR with special libraries and startup code to enable the
5164 application to run.
5165 .Ip "\fB\-mpe\fR" 4
5166 .IX Item "-mpe"
5167 Support \fI\s-1IBM\s0 \s-1RS/6000\s0 \s-1SP\s0\fR \fIParallel Environment\fR (\s-1PE\s0).  Link an
5168 application written to use message passing with special startup code to
5169 enable the application to run.  The system must have \s-1PE\s0 installed in the
5170 standard location (\fI/usr/lpp/ppe.poe/\fR), or the \fIspecs\fR file
5171 must be overridden with the \fB\-specs=\fR option to specify the
5172 appropriate directory location.  The Parallel Environment does not
5173 support threads, so the \fB\-mpe\fR option and the \fB\-mthreads\fR
5174 option are incompatible.
5175 .Ip "\fB\-msoft-float\fR" 4
5176 .IX Item "-msoft-float"
5177 .PD 0
5178 .Ip "\fB\-mhard-float\fR" 4
5179 .IX Item "-mhard-float"
5181 Generate code that does not use (uses) the floating-point register set.
5182 Software floating point emulation is provided if you use the
5183 \&\fB\-msoft-float\fR option, and pass the option to \s-1GCC\s0 when linking.
5184 .Ip "\fB\-mmultiple\fR" 4
5185 .IX Item "-mmultiple"
5186 .PD 0
5187 .Ip "\fB\-mno-multiple\fR" 4
5188 .IX Item "-mno-multiple"
5190 Generate code that uses (does not use) the load multiple word
5191 instructions and the store multiple word instructions.  These
5192 instructions are generated by default on \s-1POWER\s0 systems, and not
5193 generated on PowerPC systems.  Do not use \fB\-mmultiple\fR on little
5194 endian PowerPC systems, since those instructions do not work when the
5195 processor is in little endian mode.  The exceptions are \s-1PPC740\s0 and
5196 \&\s-1PPC750\s0 which permit the instructions usage in little endian mode.
5197 .Ip "\fB\-mstring\fR" 4
5198 .IX Item "-mstring"
5199 .PD 0
5200 .Ip "\fB\-mno-string\fR" 4
5201 .IX Item "-mno-string"
5203 Generate code that uses (does not use) the load string instructions
5204 and the store string word instructions to save multiple registers and
5205 do small block moves.  These instructions are generated by default on
5206 \&\s-1POWER\s0 systems, and not generated on PowerPC systems.  Do not use
5207 \&\fB\-mstring\fR on little endian PowerPC systems, since those
5208 instructions do not work when the processor is in little endian mode.
5209 The exceptions are \s-1PPC740\s0 and \s-1PPC750\s0 which permit the instructions
5210 usage in little endian mode.
5211 .Ip "\fB\-mupdate\fR" 4
5212 .IX Item "-mupdate"
5213 .PD 0
5214 .Ip "\fB\-mno-update\fR" 4
5215 .IX Item "-mno-update"
5217 Generate code that uses (does not use) the load or store instructions
5218 that update the base register to the address of the calculated memory
5219 location.  These instructions are generated by default.  If you use
5220 \&\fB\-mno-update\fR, there is a small window between the time that the
5221 stack pointer is updated and the address of the previous frame is
5222 stored, which means code that walks the stack frame across interrupts or
5223 signals may get corrupted data.
5224 .Ip "\fB\-mfused-madd\fR" 4
5225 .IX Item "-mfused-madd"
5226 .PD 0
5227 .Ip "\fB\-mno-fused-madd\fR" 4
5228 .IX Item "-mno-fused-madd"
5230 Generate code that uses (does not use) the floating point multiply and
5231 accumulate instructions.  These instructions are generated by default if
5232 hardware floating is used.
5233 .Ip "\fB\-mno-bit-align\fR" 4
5234 .IX Item "-mno-bit-align"
5235 .PD 0
5236 .Ip "\fB\-mbit-align\fR" 4
5237 .IX Item "-mbit-align"
5239 On System V.4 and embedded PowerPC systems do not (do) force structures
5240 and unions that contain bit fields to be aligned to the base type of the
5241 bit field.
5243 For example, by default a structure containing nothing but 8
5244 \&\f(CW\*(C`unsigned\*(C'\fR bitfields of length 1 would be aligned to a 4 byte
5245 boundary and have a size of 4 bytes.  By using \fB\-mno-bit-align\fR,
5246 the structure would be aligned to a 1 byte boundary and be one byte in
5247 size.
5248 .Ip "\fB\-mno-strict-align\fR" 4
5249 .IX Item "-mno-strict-align"
5250 .PD 0
5251 .Ip "\fB\-mstrict-align\fR" 4
5252 .IX Item "-mstrict-align"
5254 On System V.4 and embedded PowerPC systems do not (do) assume that
5255 unaligned memory references will be handled by the system.
5256 .Ip "\fB\-mrelocatable\fR" 4
5257 .IX Item "-mrelocatable"
5258 .PD 0
5259 .Ip "\fB\-mno-relocatable\fR" 4
5260 .IX Item "-mno-relocatable"
5262 On embedded PowerPC systems generate code that allows (does not allow)
5263 the program to be relocated to a different address at runtime.  If you
5264 use \fB\-mrelocatable\fR on any module, all objects linked together must
5265 be compiled with \fB\-mrelocatable\fR or \fB\-mrelocatable-lib\fR.
5266 .Ip "\fB\-mrelocatable-lib\fR" 4
5267 .IX Item "-mrelocatable-lib"
5268 .PD 0
5269 .Ip "\fB\-mno-relocatable-lib\fR" 4
5270 .IX Item "-mno-relocatable-lib"
5272 On embedded PowerPC systems generate code that allows (does not allow)
5273 the program to be relocated to a different address at runtime.  Modules
5274 compiled with \fB\-mrelocatable-lib\fR can be linked with either modules
5275 compiled without \fB\-mrelocatable\fR and \fB\-mrelocatable-lib\fR or
5276 with modules compiled with the \fB\-mrelocatable\fR options.
5277 .Ip "\fB\-mno-toc\fR" 4
5278 .IX Item "-mno-toc"
5279 .PD 0
5280 .Ip "\fB\-mtoc\fR" 4
5281 .IX Item "-mtoc"
5283 On System V.4 and embedded PowerPC systems do not (do) assume that
5284 register 2 contains a pointer to a global area pointing to the addresses
5285 used in the program.
5286 .Ip "\fB\-mlittle\fR" 4
5287 .IX Item "-mlittle"
5288 .PD 0
5289 .Ip "\fB\-mlittle-endian\fR" 4
5290 .IX Item "-mlittle-endian"
5292 On System V.4 and embedded PowerPC systems compile code for the
5293 processor in little endian mode.  The \fB\-mlittle-endian\fR option is
5294 the same as \fB\-mlittle\fR.
5295 .Ip "\fB\-mbig\fR" 4
5296 .IX Item "-mbig"
5297 .PD 0
5298 .Ip "\fB\-mbig-endian\fR" 4
5299 .IX Item "-mbig-endian"
5301 On System V.4 and embedded PowerPC systems compile code for the
5302 processor in big endian mode.  The \fB\-mbig-endian\fR option is
5303 the same as \fB\-mbig\fR.
5304 .Ip "\fB\-mcall-sysv\fR" 4
5305 .IX Item "-mcall-sysv"
5306 On System V.4 and embedded PowerPC systems compile code using calling
5307 conventions that adheres to the March 1995 draft of the System V
5308 Application Binary Interface, PowerPC processor supplement.  This is the
5309 default unless you configured \s-1GCC\s0 using \fBpowerpc-*\-eabiaix\fR.
5310 .Ip "\fB\-mcall-sysv-eabi\fR" 4
5311 .IX Item "-mcall-sysv-eabi"
5312 Specify both \fB\-mcall-sysv\fR and \fB\-meabi\fR options.
5313 .Ip "\fB\-mcall-sysv-noeabi\fR" 4
5314 .IX Item "-mcall-sysv-noeabi"
5315 Specify both \fB\-mcall-sysv\fR and \fB\-mno-eabi\fR options.
5316 .Ip "\fB\-mcall-aix\fR" 4
5317 .IX Item "-mcall-aix"
5318 On System V.4 and embedded PowerPC systems compile code using calling
5319 conventions that are similar to those used on \s-1AIX\s0.  This is the
5320 default if you configured \s-1GCC\s0 using \fBpowerpc-*\-eabiaix\fR.
5321 .Ip "\fB\-mcall-solaris\fR" 4
5322 .IX Item "-mcall-solaris"
5323 On System V.4 and embedded PowerPC systems compile code for the Solaris
5324 operating system.
5325 .Ip "\fB\-mcall-linux\fR" 4
5326 .IX Item "-mcall-linux"
5327 On System V.4 and embedded PowerPC systems compile code for the
5328 Linux-based \s-1GNU\s0 system.
5329 .Ip "\fB\-mprototype\fR" 4
5330 .IX Item "-mprototype"
5331 .PD 0
5332 .Ip "\fB\-mno-prototype\fR" 4
5333 .IX Item "-mno-prototype"
5335 On System V.4 and embedded PowerPC systems assume that all calls to
5336 variable argument functions are properly prototyped.  Otherwise, the
5337 compiler must insert an instruction before every non prototyped call to
5338 set or clear bit 6 of the condition code register (\fI\s-1CR\s0\fR) to
5339 indicate whether floating point values were passed in the floating point
5340 registers in case the function takes a variable arguments.  With
5341 \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
5342 will set or clear the bit.
5343 .Ip "\fB\-msim\fR" 4
5344 .IX Item "-msim"
5345 On embedded PowerPC systems, assume that the startup module is called
5346 \&\fIsim-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
5347 \&\fIlibc.a\fR.  This is the default for \fBpowerpc-*\-eabisim\fR.
5348 configurations.
5349 .Ip "\fB\-mmvme\fR" 4
5350 .IX Item "-mmvme"
5351 On embedded PowerPC systems, assume that the startup module is called
5352 \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
5353 \&\fIlibc.a\fR.
5354 .Ip "\fB\-mads\fR" 4
5355 .IX Item "-mads"
5356 On embedded PowerPC systems, assume that the startup module is called
5357 \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
5358 \&\fIlibc.a\fR.
5359 .Ip "\fB\-myellowknife\fR" 4
5360 .IX Item "-myellowknife"
5361 On embedded PowerPC systems, assume that the startup module is called
5362 \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
5363 \&\fIlibc.a\fR.
5364 .Ip "\fB\-mvxworks\fR" 4
5365 .IX Item "-mvxworks"
5366 On System V.4 and embedded PowerPC systems, specify that you are
5367 compiling for a VxWorks system.
5368 .Ip "\fB\-memb\fR" 4
5369 .IX Item "-memb"
5370 On embedded PowerPC systems, set the \fI\s-1PPC_EMB\s0\fR bit in the \s-1ELF\s0 flags
5371 header to indicate that \fBeabi\fR extended relocations are used.
5372 .Ip "\fB\-meabi\fR" 4
5373 .IX Item "-meabi"
5374 .PD 0
5375 .Ip "\fB\-mno-eabi\fR" 4
5376 .IX Item "-mno-eabi"
5378 On System V.4 and embedded PowerPC systems do (do not) adhere to the
5379 Embedded Applications Binary Interface (eabi) which is a set of
5380 modifications to the System V.4 specifications.  Selecting \fB\-meabi\fR
5381 means that the stack is aligned to an 8 byte boundary, a function
5382 \&\f(CW\*(C`_\|_eabi\*(C'\fR is called to from \f(CW\*(C`main\*(C'\fR to set up the eabi
5383 environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
5384 \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas.  Selecting
5385 \&\fB\-mno-eabi\fR means that the stack is aligned to a 16 byte boundary,
5386 do not call an initialization function from \f(CW\*(C`main\*(C'\fR, and the
5387 \&\fB\-msdata\fR option will only use \f(CW\*(C`r13\*(C'\fR to point to a single
5388 small data area.  The \fB\-meabi\fR option is on by default if you
5389 configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
5390 .Ip "\fB\-msdata=eabi\fR" 4
5391 .IX Item "-msdata=eabi"
5392 On System V.4 and embedded PowerPC systems, put small initialized
5393 \&\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata2\fR section, which
5394 is pointed to by register \f(CW\*(C`r2\*(C'\fR.  Put small initialized
5395 non-\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata\fR section,
5396 which is pointed to by register \f(CW\*(C`r13\*(C'\fR.  Put small uninitialized
5397 global and static data in the \fB.sbss\fR section, which is adjacent to
5398 the \fB.sdata\fR section.  The \fB\-msdata=eabi\fR option is
5399 incompatible with the \fB\-mrelocatable\fR option.  The
5400 \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
5401 .Ip "\fB\-msdata=sysv\fR" 4
5402 .IX Item "-msdata=sysv"
5403 On System V.4 and embedded PowerPC systems, put small global and static
5404 data in the \fB.sdata\fR section, which is pointed to by register
5405 \&\f(CW\*(C`r13\*(C'\fR.  Put small uninitialized global and static data in the
5406 \&\fB.sbss\fR section, which is adjacent to the \fB.sdata\fR section.
5407 The \fB\-msdata=sysv\fR option is incompatible with the
5408 \&\fB\-mrelocatable\fR option.
5409 .Ip "\fB\-msdata=default\fR" 4
5410 .IX Item "-msdata=default"
5411 .PD 0
5412 .Ip "\fB\-msdata\fR" 4
5413 .IX Item "-msdata"
5415 On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
5416 compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
5417 same as \fB\-msdata=sysv\fR.
5418 .Ip "\fB\-msdata-data\fR" 4
5419 .IX Item "-msdata-data"
5420 On System V.4 and embedded PowerPC systems, put small global and static
5421 data in the \fB.sdata\fR section.  Put small uninitialized global and
5422 static data in the \fB.sbss\fR section.  Do not use register \f(CW\*(C`r13\*(C'\fR
5423 to address small data however.  This is the default behavior unless
5424 other \fB\-msdata\fR options are used.
5425 .Ip "\fB\-msdata=none\fR" 4
5426 .IX Item "-msdata=none"
5427 .PD 0
5428 .Ip "\fB\-mno-sdata\fR" 4
5429 .IX Item "-mno-sdata"
5431 On embedded PowerPC systems, put all initialized global and static data
5432 in the \fB.data\fR section, and all uninitialized data in the
5433 \&\fB.bss\fR section.
5434 .Ip "\fB\-G\fR \fInum\fR" 4
5435 .IX Item "-G num"
5436 On embedded PowerPC systems, put global and static items less than or
5437 equal to \fInum\fR bytes into the small data or bss sections instead of
5438 the normal data or bss section.  By default, \fInum\fR is 8.  The
5439 \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
5440 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
5441 .Ip "\fB\-mregnames\fR" 4
5442 .IX Item "-mregnames"
5443 .PD 0
5444 .Ip "\fB\-mno-regnames\fR" 4
5445 .IX Item "-mno-regnames"
5447 On System V.4 and embedded PowerPC systems do (do not) emit register
5448 names in the assembly language output using symbolic forms.
5450 .I "\s-1IBM\s0 \s-1RT\s0 Options"
5451 .IX Subsection "IBM RT Options"
5453 These \fB\-m\fR options are defined for the \s-1IBM\s0 \s-1RT\s0 \s-1PC:\s0
5454 .Ip "\fB\-min-line-mul\fR" 4
5455 .IX Item "-min-line-mul"
5456 Use an in-line code sequence for integer multiplies.  This is the
5457 default.
5458 .Ip "\fB\-mcall-lib-mul\fR" 4
5459 .IX Item "-mcall-lib-mul"
5460 Call \f(CW\*(C`lmul$$\*(C'\fR for integer multiples.
5461 .Ip "\fB\-mfull-fp-blocks\fR" 4
5462 .IX Item "-mfull-fp-blocks"
5463 Generate full-size floating point data blocks, including the minimum
5464 amount of scratch space recommended by \s-1IBM\s0.  This is the default.
5465 .Ip "\fB\-mminimum-fp-blocks\fR" 4
5466 .IX Item "-mminimum-fp-blocks"
5467 Do not include extra scratch space in floating point data blocks.  This
5468 results in smaller code, but slower execution, since scratch space must
5469 be allocated dynamically.
5470 .Ip "\fB\-mfp-arg-in-fpregs\fR" 4
5471 .IX Item "-mfp-arg-in-fpregs"
5472 Use a calling sequence incompatible with the \s-1IBM\s0 calling convention in
5473 which floating point arguments are passed in floating point registers.
5474 Note that \f(CW\*(C`varargs.h\*(C'\fR and \f(CW\*(C`stdargs.h\*(C'\fR will not work with
5475 floating point operands if this option is specified.
5476 .Ip "\fB\-mfp-arg-in-gregs\fR" 4
5477 .IX Item "-mfp-arg-in-gregs"
5478 Use the normal calling convention for floating point arguments.  This is
5479 the default.
5480 .Ip "\fB\-mhc-struct-return\fR" 4
5481 .IX Item "-mhc-struct-return"
5482 Return structures of more than one word in memory, rather than in a
5483 register.  This provides compatibility with the MetaWare HighC (hc)
5484 compiler.  Use the option \fB\-fpcc-struct-return\fR for compatibility
5485 with the Portable C Compiler (pcc).
5486 .Ip "\fB\-mnohc-struct-return\fR" 4
5487 .IX Item "-mnohc-struct-return"
5488 Return some structures of more than one word in registers, when
5489 convenient.  This is the default.  For compatibility with the
5490 IBM-supplied compilers, use the option \fB\-fpcc-struct-return\fR or the
5491 option \fB\-mhc-struct-return\fR.
5493 .I "\s-1MIPS\s0 Options"
5494 .IX Subsection "MIPS Options"
5496 These \fB\-m\fR options are defined for the \s-1MIPS\s0 family of computers:
5497 .Ip "\fB\-mcpu=\fR\fIcpu type\fR" 4
5498 .IX Item "-mcpu=cpu type"
5499 Assume the defaults for the machine type \fIcpu type\fR when scheduling
5500 instructions.  The choices for \fIcpu type\fR are \fBr2000\fR, \fBr3000\fR,
5501 \&\fBr3900\fR, \fBr4000\fR, \fBr4100\fR, \fBr4300\fR, \fBr4400\fR,
5502 \&\fBr4600\fR, \fBr4650\fR, \fBr5000\fR, \fBr6000\fR, \fBr8000\fR,
5503 and \fBorion\fR.  Additionally, the \fBr2000\fR, \fBr3000\fR,
5504 \&\fBr4000\fR, \fBr5000\fR, and \fBr6000\fR can be abbreviated as
5505 \&\fBr2k\fR (or \fBr2K\fR), \fBr3k\fR, etc.  While picking a specific
5506 \&\fIcpu type\fR will schedule things appropriately for that particular
5507 chip, the compiler will not generate any code that does not meet level 1
5508 of the \s-1MIPS\s0 \s-1ISA\s0 (instruction set architecture) without a \fB\-mipsX\fR
5509 or \fB\-mabi\fR switch being used.
5510 .Ip "\fB\-mips1\fR" 4
5511 .IX Item "-mips1"
5512 Issue instructions from level 1 of the \s-1MIPS\s0 \s-1ISA\s0.  This is the default.
5513 \&\fBr3000\fR is the default \fIcpu type\fR at this \s-1ISA\s0 level.
5514 .Ip "\fB\-mips2\fR" 4
5515 .IX Item "-mips2"
5516 Issue instructions from level 2 of the \s-1MIPS\s0 \s-1ISA\s0 (branch likely, square
5517 root instructions).  \fBr6000\fR is the default \fIcpu type\fR at this
5518 \&\s-1ISA\s0 level.
5519 .Ip "\fB\-mips3\fR" 4
5520 .IX Item "-mips3"
5521 Issue instructions from level 3 of the \s-1MIPS\s0 \s-1ISA\s0 (64 bit instructions).
5522 \&\fBr4000\fR is the default \fIcpu type\fR at this \s-1ISA\s0 level.
5523 .Ip "\fB\-mips4\fR" 4
5524 .IX Item "-mips4"
5525 Issue instructions from level 4 of the \s-1MIPS\s0 \s-1ISA\s0 (conditional move,
5526 prefetch, enhanced \s-1FPU\s0 instructions).  \fBr8000\fR is the default
5527 \&\fIcpu type\fR at this \s-1ISA\s0 level.
5528 .Ip "\fB\-mfp32\fR" 4
5529 .IX Item "-mfp32"
5530 Assume that 32 32\-bit floating point registers are available.  This is
5531 the default.
5532 .Ip "\fB\-mfp64\fR" 4
5533 .IX Item "-mfp64"
5534 Assume that 32 64\-bit floating point registers are available.  This is
5535 the default when the \fB\-mips3\fR option is used.
5536 .Ip "\fB\-mgp32\fR" 4
5537 .IX Item "-mgp32"
5538 Assume that 32 32\-bit general purpose registers are available.  This is
5539 the default.
5540 .Ip "\fB\-mgp64\fR" 4
5541 .IX Item "-mgp64"
5542 Assume that 32 64\-bit general purpose registers are available.  This is
5543 the default when the \fB\-mips3\fR option is used.
5544 .Ip "\fB\-mint64\fR" 4
5545 .IX Item "-mint64"
5546 Force int and long types to be 64 bits wide.  See \fB\-mlong32\fR for an
5547 explanation of the default, and the width of pointers.
5548 .Ip "\fB\-mlong64\fR" 4
5549 .IX Item "-mlong64"
5550 Force long types to be 64 bits wide.  See \fB\-mlong32\fR for an
5551 explanation of the default, and the width of pointers.
5552 .Ip "\fB\-mlong32\fR" 4
5553 .IX Item "-mlong32"
5554 Force long, int, and pointer types to be 32 bits wide.
5556 If none of \fB\-mlong32\fR, \fB\-mlong64\fR, or \fB\-mint64\fR are set,
5557 the size of ints, longs, and pointers depends on the \s-1ABI\s0 and \s-1ISA\s0 chosen.
5558 For \fB\-mabi=32\fR, and \fB\-mabi=n32\fR, ints and longs are 32 bits
5559 wide.  For \fB\-mabi=64\fR, ints are 32 bits, and longs are 64 bits wide.
5560 For \fB\-mabi=eabi\fR and either \fB\-mips1\fR or \fB\-mips2\fR, ints
5561 and longs are 32 bits wide.  For \fB\-mabi=eabi\fR and higher ISAs, ints
5562 are 32 bits, and longs are 64 bits wide.  The width of pointer types is
5563 the smaller of the width of longs or the width of general purpose
5564 registers (which in turn depends on the \s-1ISA\s0).
5565 .Ip "\fB\-mabi=32\fR" 4
5566 .IX Item "-mabi=32"
5567 .PD 0
5568 .Ip "\fB\-mabi=o64\fR" 4
5569 .IX Item "-mabi=o64"
5570 .Ip "\fB\-mabi=n32\fR" 4
5571 .IX Item "-mabi=n32"
5572 .Ip "\fB\-mabi=64\fR" 4
5573 .IX Item "-mabi=64"
5574 .Ip "\fB\-mabi=eabi\fR" 4
5575 .IX Item "-mabi=eabi"
5577 Generate code for the indicated \s-1ABI\s0.  The default instruction level is
5578 \&\fB\-mips1\fR for \fB32\fR, \fB\-mips3\fR for \fBn32\fR, and
5579 \&\fB\-mips4\fR otherwise.  Conversely, with \fB\-mips1\fR or
5580 \&\fB\-mips2\fR, the default \s-1ABI\s0 is \fB32\fR; otherwise, the default \s-1ABI\s0
5581 is \fB64\fR.
5582 .Ip "\fB\-mmips-as\fR" 4
5583 .IX Item "-mmips-as"
5584 Generate code for the \s-1MIPS\s0 assembler, and invoke \fImips-tfile\fR to
5585 add normal debug information.  This is the default for all
5586 platforms except for the \s-1OSF/1\s0 reference platform, using the OSF/rose
5587 object format.  If the either of the \fB\-gstabs\fR or \fB\-gstabs+\fR
5588 switches are used, the \fImips-tfile\fR program will encapsulate the
5589 stabs within \s-1MIPS\s0 \s-1ECOFF\s0.
5590 .Ip "\fB\-mgas\fR" 4
5591 .IX Item "-mgas"
5592 Generate code for the \s-1GNU\s0 assembler.  This is the default on the \s-1OSF/1\s0
5593 reference platform, using the OSF/rose object format.  Also, this is
5594 the default if the configure option \fB\*(--with-gnu-as\fR is used.
5595 .Ip "\fB\-msplit-addresses\fR" 4
5596 .IX Item "-msplit-addresses"
5597 .PD 0
5598 .Ip "\fB\-mno-split-addresses\fR" 4
5599 .IX Item "-mno-split-addresses"
5601 Generate code to load the high and low parts of address constants separately.
5602 This allows \f(CW\*(C`gcc\*(C'\fR to optimize away redundant loads of the high order
5603 bits of addresses.  This optimization requires \s-1GNU\s0 as and \s-1GNU\s0 ld.
5604 This optimization is enabled by default for some embedded targets where
5605 \&\s-1GNU\s0 as and \s-1GNU\s0 ld are standard.
5606 .Ip "\fB\-mrnames\fR" 4
5607 .IX Item "-mrnames"
5608 .PD 0
5609 .Ip "\fB\-mno-rnames\fR" 4
5610 .IX Item "-mno-rnames"
5612 The \fB\-mrnames\fR switch says to output code using the \s-1MIPS\s0 software
5613 names for the registers, instead of the hardware names (ie, \fIa0\fR
5614 instead of \fI$4\fR).  The only known assembler that supports this option
5615 is the Algorithmics assembler.
5616 .Ip "\fB\-mgpopt\fR" 4
5617 .IX Item "-mgpopt"
5618 .PD 0
5619 .Ip "\fB\-mno-gpopt\fR" 4
5620 .IX Item "-mno-gpopt"
5622 The \fB\-mgpopt\fR switch says to write all of the data declarations
5623 before the instructions in the text section, this allows the \s-1MIPS\s0
5624 assembler to generate one word memory references instead of using two
5625 words for short global or static data items.  This is on by default if
5626 optimization is selected.
5627 .Ip "\fB\-mstats\fR" 4
5628 .IX Item "-mstats"
5629 .PD 0
5630 .Ip "\fB\-mno-stats\fR" 4
5631 .IX Item "-mno-stats"
5633 For each non-inline function processed, the \fB\-mstats\fR switch
5634 causes the compiler to emit one line to the standard error file to
5635 print statistics about the program (number of registers saved, stack
5636 size, etc.).
5637 .Ip "\fB\-mmemcpy\fR" 4
5638 .IX Item "-mmemcpy"
5639 .PD 0
5640 .Ip "\fB\-mno-memcpy\fR" 4
5641 .IX Item "-mno-memcpy"
5643 The \fB\-mmemcpy\fR switch makes all block moves call the appropriate
5644 string function (\fBmemcpy\fR or \fBbcopy\fR) instead of possibly
5645 generating inline code.
5646 .Ip "\fB\-mmips-tfile\fR" 4
5647 .IX Item "-mmips-tfile"
5648 .PD 0
5649 .Ip "\fB\-mno-mips-tfile\fR" 4
5650 .IX Item "-mno-mips-tfile"
5652 The \fB\-mno-mips-tfile\fR switch causes the compiler not
5653 postprocess the object file with the \fImips-tfile\fR program,
5654 after the \s-1MIPS\s0 assembler has generated it to add debug support.  If
5655 \&\fImips-tfile\fR is not run, then no local variables will be
5656 available to the debugger.  In addition, \fIstage2\fR and
5657 \&\fIstage3\fR objects will have the temporary file names passed to the
5658 assembler embedded in the object file, which means the objects will
5659 not compare the same.  The \fB\-mno-mips-tfile\fR switch should only
5660 be used when there are bugs in the \fImips-tfile\fR program that
5661 prevents compilation.
5662 .Ip "\fB\-msoft-float\fR" 4
5663 .IX Item "-msoft-float"
5664 Generate output containing library calls for floating point.
5665 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC\s0.
5666 Normally the facilities of the machine's usual C compiler are used, but
5667 this can't be done directly in cross-compilation.  You must make your
5668 own arrangements to provide suitable library functions for
5669 cross-compilation.
5670 .Ip "\fB\-mhard-float\fR" 4
5671 .IX Item "-mhard-float"
5672 Generate output containing floating point instructions.  This is the
5673 default if you use the unmodified sources.
5674 .Ip "\fB\-mabicalls\fR" 4
5675 .IX Item "-mabicalls"
5676 .PD 0
5677 .Ip "\fB\-mno-abicalls\fR" 4
5678 .IX Item "-mno-abicalls"
5680 Emit (or do not emit) the pseudo operations \fB.abicalls\fR,
5681 \&\fB.cpload\fR, and \fB.cprestore\fR that some System V.4 ports use for
5682 position independent code.
5683 .Ip "\fB\-mlong-calls\fR" 4
5684 .IX Item "-mlong-calls"
5685 .PD 0
5686 .Ip "\fB\-mno-long-calls\fR" 4
5687 .IX Item "-mno-long-calls"
5689 Do all calls with the \fB\s-1JALR\s0\fR instruction, which requires
5690 loading up a function's address into a register before the call.
5691 You need to use this switch, if you call outside of the current
5692 512 megabyte segment to functions that are not through pointers.
5693 .Ip "\fB\-mhalf-pic\fR" 4
5694 .IX Item "-mhalf-pic"
5695 .PD 0
5696 .Ip "\fB\-mno-half-pic\fR" 4
5697 .IX Item "-mno-half-pic"
5699 Put pointers to extern references into the data section and load them
5700 up, rather than put the references in the text section.
5701 .Ip "\fB\-membedded-pic\fR" 4
5702 .IX Item "-membedded-pic"
5703 .PD 0
5704 .Ip "\fB\-mno-embedded-pic\fR" 4
5705 .IX Item "-mno-embedded-pic"
5707 Generate \s-1PIC\s0 code suitable for some embedded systems.  All calls are
5708 made using \s-1PC\s0 relative address, and all data is addressed using the \f(CW$gp\fR
5709 register.  No more than 65536 bytes of global data may be used.  This
5710 requires \s-1GNU\s0 as and \s-1GNU\s0 ld which do most of the work.  This currently
5711 only works on targets which use \s-1ECOFF\s0; it does not work with \s-1ELF\s0.
5712 .Ip "\fB\-membedded-data\fR" 4
5713 .IX Item "-membedded-data"
5714 .PD 0
5715 .Ip "\fB\-mno-embedded-data\fR" 4
5716 .IX Item "-mno-embedded-data"
5718 Allocate variables to the read-only data section first if possible, then
5719 next in the small data section if possible, otherwise in data.  This gives
5720 slightly slower code than the default, but reduces the amount of \s-1RAM\s0 required
5721 when executing, and thus may be preferred for some embedded systems.
5722 .Ip "\fB\-muninit-const-in-rodata\fR" 4
5723 .IX Item "-muninit-const-in-rodata"
5724 .PD 0
5725 .Ip "\fB\-mno-uninit-const-in-rodata\fR" 4
5726 .IX Item "-mno-uninit-const-in-rodata"
5728 When used together with \-membedded-data, it will always store uninitialized
5729 const variables in the read-only data section.
5730 .Ip "\fB\-msingle-float\fR" 4
5731 .IX Item "-msingle-float"
5732 .PD 0
5733 .Ip "\fB\-mdouble-float\fR" 4
5734 .IX Item "-mdouble-float"
5736 The \fB\-msingle-float\fR switch tells gcc to assume that the floating
5737 point coprocessor only supports single precision operations, as on the
5738 \&\fBr4650\fR chip.  The \fB\-mdouble-float\fR switch permits gcc to use
5739 double precision operations.  This is the default.
5740 .Ip "\fB\-mmad\fR" 4
5741 .IX Item "-mmad"
5742 .PD 0
5743 .Ip "\fB\-mno-mad\fR" 4
5744 .IX Item "-mno-mad"
5746 Permit use of the \fBmad\fR, \fBmadu\fR and \fBmul\fR instructions,
5747 as on the \fBr4650\fR chip.
5748 .Ip "\fB\-m4650\fR" 4
5749 .IX Item "-m4650"
5750 Turns on \fB\-msingle-float\fR, \fB\-mmad\fR, and, at least for now,
5751 \&\fB\-mcpu=r4650\fR.
5752 .Ip "\fB\-mips16\fR" 4
5753 .IX Item "-mips16"
5754 .PD 0
5755 .Ip "\fB\-mno-mips16\fR" 4
5756 .IX Item "-mno-mips16"
5758 Enable 16\-bit instructions.
5759 .Ip "\fB\-mentry\fR" 4
5760 .IX Item "-mentry"
5761 Use the entry and exit pseudo ops.  This option can only be used with
5762 \&\fB\-mips16\fR.
5763 .Ip "\fB\-EL\fR" 4
5764 .IX Item "-EL"
5765 Compile code for the processor in little endian mode.
5766 The requisite libraries are assumed to exist.
5767 .Ip "\fB\-EB\fR" 4
5768 .IX Item "-EB"
5769 Compile code for the processor in big endian mode.
5770 The requisite libraries are assumed to exist.
5771 .Ip "\fB\-G\fR \fInum\fR" 4
5772 .IX Item "-G num"
5773 Put global and static items less than or equal to \fInum\fR bytes into
5774 the small data or bss sections instead of the normal data or bss
5775 section.  This allows the assembler to emit one word memory reference
5776 instructions based on the global pointer (\fIgp\fR or \fI$28\fR),
5777 instead of the normal two words used.  By default, \fInum\fR is 8 when
5778 the \s-1MIPS\s0 assembler is used, and 0 when the \s-1GNU\s0 assembler is used.  The
5779 \&\fB\-G\fR \fInum\fR switch is also passed to the assembler and linker.
5780 All modules should be compiled with the same \fB\-G\fR \fInum\fR
5781 value.
5782 .Ip "\fB\-nocpp\fR" 4
5783 .IX Item "-nocpp"
5784 Tell the \s-1MIPS\s0 assembler to not run its preprocessor over user
5785 assembler files (with a \fB.s\fR suffix) when assembling them.
5786 .Ip "\fB\-mfix7000\fR" 4
5787 .IX Item "-mfix7000"
5788 Pass an option to gas which will cause nops to be inserted if
5789 the read of the destination register of an mfhi or mflo instruction
5790 occurs in the following two instructions.
5791 .Ip "\fB\-no-crt0\fR" 4
5792 .IX Item "-no-crt0"
5793 Do not include the default crt0.
5795 .I "Intel 386 Options"
5796 .IX Subsection "Intel 386 Options"
5798 These \fB\-m\fR options are defined for the i386 family of computers:
5799 .Ip "\fB\-mcpu=\fR\fIcpu type\fR" 4
5800 .IX Item "-mcpu=cpu type"
5801 Assume the defaults for the machine type \fIcpu type\fR when scheduling
5802 instructions.  The choices for \fIcpu type\fR are \fBi386\fR,
5803 \&\fBi486\fR, \fBi586\fR, \fBi686\fR, \fBpentium\fR,
5804 \&\fBpentiumpro\fR, \fBk6\fR, and \fBathlon\fR
5806 While picking a specific \fIcpu type\fR will schedule things appropriately
5807 for that particular chip, the compiler will not generate any code that
5808 does not run on the i386 without the \fB\-march=\fR\fIcpu type\fR option
5809 being used.  \fBi586\fR is equivalent to \fBpentium\fR and \fBi686\fR
5810 is equivalent to \fBpentiumpro\fR.  \fBk6\fR is the \s-1AMD\s0 chip as
5811 opposed to the Intel ones.
5812 .Ip "\fB\-march=\fR\fIcpu type\fR" 4
5813 .IX Item "-march=cpu type"
5814 Generate instructions for the machine type \fIcpu type\fR.  The choices
5815 for \fIcpu type\fR are the same as for \fB\-mcpu\fR.  Moreover, 
5816 specifying \fB\-march=\fR\fIcpu type\fR implies \fB\-mcpu=\fR\fIcpu type\fR.
5817 .Ip "\fB\-m386\fR" 4
5818 .IX Item "-m386"
5819 .PD 0
5820 .Ip "\fB\-m486\fR" 4
5821 .IX Item "-m486"
5822 .Ip "\fB\-mpentium\fR" 4
5823 .IX Item "-mpentium"
5824 .Ip "\fB\-mpentiumpro\fR" 4
5825 .IX Item "-mpentiumpro"
5827 Synonyms for \-mcpu=i386, \-mcpu=i486, \-mcpu=pentium, and \-mcpu=pentiumpro
5828 respectively.  These synonyms are deprecated.
5829 .Ip "\fB\-mintel-syntax\fR" 4
5830 .IX Item "-mintel-syntax"
5831 Emit assembly using Intel syntax opcodes instead of \s-1AT&T\s0 syntax.
5832 .Ip "\fB\-mieee-fp\fR" 4
5833 .IX Item "-mieee-fp"
5834 .PD 0
5835 .Ip "\fB\-mno-ieee-fp\fR" 4
5836 .IX Item "-mno-ieee-fp"
5838 Control whether or not the compiler uses \s-1IEEE\s0 floating point
5839 comparisons.  These handle correctly the case where the result of a
5840 comparison is unordered.
5841 .Ip "\fB\-msoft-float\fR" 4
5842 .IX Item "-msoft-float"
5843 Generate output containing library calls for floating point.
5844 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC\s0.
5845 Normally the facilities of the machine's usual C compiler are used, but
5846 this can't be done directly in cross-compilation.  You must make your
5847 own arrangements to provide suitable library functions for
5848 cross-compilation.
5850 On machines where a function returns floating point results in the 80387
5851 register stack, some floating point opcodes may be emitted even if
5852 \&\fB\-msoft-float\fR is used.
5853 .Ip "\fB\-mno-fp-ret-in-387\fR" 4
5854 .IX Item "-mno-fp-ret-in-387"
5855 Do not use the \s-1FPU\s0 registers for return values of functions.
5857 The usual calling convention has functions return values of types
5858 \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR in an \s-1FPU\s0 register, even if there
5859 is no \s-1FPU\s0.  The idea is that the operating system should emulate
5860 an \s-1FPU\s0.
5862 The option \fB\-mno-fp-ret-in-387\fR causes such values to be returned
5863 in ordinary \s-1CPU\s0 registers instead.
5864 .Ip "\fB\-mno-fancy-math-387\fR" 4
5865 .IX Item "-mno-fancy-math-387"
5866 Some 387 emulators do not support the \f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR and
5867 \&\f(CW\*(C`sqrt\*(C'\fR instructions for the 387.  Specify this option to avoid
5868 generating those instructions. This option is the default on FreeBSD.
5869 As of revision 2.6.1, these instructions are not generated unless you
5870 also use the \fB\-ffast-math\fR switch.
5871 .Ip "\fB\-malign-double\fR" 4
5872 .IX Item "-malign-double"
5873 .PD 0
5874 .Ip "\fB\-mno-align-double\fR" 4
5875 .IX Item "-mno-align-double"
5877 Control whether \s-1GCC\s0 aligns \f(CW\*(C`double\*(C'\fR, \f(CW\*(C`long double\*(C'\fR, and
5878 \&\f(CW\*(C`long long\*(C'\fR variables on a two word boundary or a one word
5879 boundary.  Aligning \f(CW\*(C`double\*(C'\fR variables on a two word boundary will
5880 produce code that runs somewhat faster on a \fBPentium\fR at the
5881 expense of more memory.
5882 .Ip "\fB\-m128bit-long-double\fR" 4
5883 .IX Item "-m128bit-long-double"
5884 .PD 0
5885 .Ip "\fB\-m128bit-long-double\fR" 4
5886 .IX Item "-m128bit-long-double"
5888 Control the size of \f(CW\*(C`long double\*(C'\fR type. i386 application binary interface
5889 specify the size to be 12 bytes, while modern architectures (Pentium and newer)
5890 preffer \f(CW\*(C`long double\*(C'\fR aligned to 8 or 16 byte boundary.  This is
5891 impossible to reach with 12 byte long doubles in the array accesses.
5893 \&\fBWarning:\fR if you use the \fB\-m128bit-long-double\fR switch, the
5894 structures and arrays containing \f(CW\*(C`long double\*(C'\fR will change their size as
5895 well as function calling convention for function taking \f(CW\*(C`long double\*(C'\fR
5896 will be modified. 
5897 .Ip "\fB\-m96bit-long-double\fR" 4
5898 .IX Item "-m96bit-long-double"
5899 .PD 0
5900 .Ip "\fB\-m96bit-long-double\fR" 4
5901 .IX Item "-m96bit-long-double"
5903 Set the size of \f(CW\*(C`long double\*(C'\fR to 96 bits as required by the i386
5904 application binary interface.  This is the default.
5905 .Ip "\fB\-msvr3\-shlib\fR" 4
5906 .IX Item "-msvr3-shlib"
5907 .PD 0
5908 .Ip "\fB\-mno-svr3\-shlib\fR" 4
5909 .IX Item "-mno-svr3-shlib"
5911 Control whether \s-1GCC\s0 places uninitialized locals into \f(CW\*(C`bss\*(C'\fR or
5912 \&\f(CW\*(C`data\*(C'\fR.  \fB\-msvr3\-shlib\fR places these locals into \f(CW\*(C`bss\*(C'\fR.
5913 These options are meaningful only on System V Release 3.
5914 .Ip "\fB\-mno-wide-multiply\fR" 4
5915 .IX Item "-mno-wide-multiply"
5916 .PD 0
5917 .Ip "\fB\-mwide-multiply\fR" 4
5918 .IX Item "-mwide-multiply"
5920 Control whether \s-1GCC\s0 uses the \f(CW\*(C`mul\*(C'\fR and \f(CW\*(C`imul\*(C'\fR that produce
5921 64 bit results in \f(CW\*(C`eax:edx\*(C'\fR from 32 bit operands to do \f(CW\*(C`long
5922 long\*(C'\fR multiplies and 32\-bit division by constants.
5923 .Ip "\fB\-mrtd\fR" 4
5924 .IX Item "-mrtd"
5925 Use a different function-calling convention, in which functions that
5926 take a fixed number of arguments return with the \f(CW\*(C`ret\*(C'\fR \fInum\fR
5927 instruction, which pops their arguments while returning.  This saves one
5928 instruction in the caller since there is no need to pop the arguments
5929 there.
5931 You can specify that an individual function is called with this calling
5932 sequence with the function attribute \fBstdcall\fR.  You can also
5933 override the \fB\-mrtd\fR option by using the function attribute
5934 \&\fBcdecl\fR.  
5936 \&\fBWarning:\fR this calling convention is incompatible with the one
5937 normally used on Unix, so you cannot use it if you need to call
5938 libraries compiled with the Unix compiler.
5940 Also, you must provide function prototypes for all functions that
5941 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
5942 otherwise incorrect code will be generated for calls to those
5943 functions.
5945 In addition, seriously incorrect code will result if you call a
5946 function with too many arguments.  (Normally, extra arguments are
5947 harmlessly ignored.)
5948 .Ip "\fB\-mreg-alloc=\fR\fIregs\fR" 4
5949 .IX Item "-mreg-alloc=regs"
5950 Control the default allocation order of integer registers.  The
5951 string \fIregs\fR is a series of letters specifying a register.  The
5952 supported letters are: \f(CW\*(C`a\*(C'\fR allocate \s-1EAX\s0; \f(CW\*(C`b\*(C'\fR allocate \s-1EBX\s0;
5953 \&\f(CW\*(C`c\*(C'\fR allocate \s-1ECX\s0; \f(CW\*(C`d\*(C'\fR allocate \s-1EDX\s0; \f(CW\*(C`S\*(C'\fR allocate \s-1ESI\s0;
5954 \&\f(CW\*(C`D\*(C'\fR allocate \s-1EDI\s0; \f(CW\*(C`B\*(C'\fR allocate \s-1EBP\s0.
5955 .Ip "\fB\-mregparm=\fR\fInum\fR" 4
5956 .IX Item "-mregparm=num"
5957 Control how many registers are used to pass integer arguments.  By
5958 default, no registers are used to pass arguments, and at most 3
5959 registers can be used.  You can control this behavior for a specific
5960 function by using the function attribute \fBregparm\fR.
5962 \&\fBWarning:\fR if you use this switch, and
5963 \&\fInum\fR is nonzero, then you must build all modules with the same
5964 value, including any libraries.  This includes the system libraries and
5965 startup modules.
5966 .Ip "\fB\-malign-loops=\fR\fInum\fR" 4
5967 .IX Item "-malign-loops=num"
5968 Align loops to a 2 raised to a \fInum\fR byte boundary.  If
5969 \&\fB\-malign-loops\fR is not specified, the default is 2 unless
5970 gas 2.8 (or later) is being used in which case the default is
5971 to align the loop on a 16 byte boundary if it is less than 8
5972 bytes away.
5973 .Ip "\fB\-malign-jumps=\fR\fInum\fR" 4
5974 .IX Item "-malign-jumps=num"
5975 Align instructions that are only jumped to to a 2 raised to a \fInum\fR
5976 byte boundary.  If \fB\-malign-jumps\fR is not specified, the default is
5977 2 if optimizing for a 386, and 4 if optimizing for a 486 unless
5978 gas 2.8 (or later) is being used in which case the default is
5979 to align the instruction on a 16 byte boundary if it is less
5980 than 8 bytes away.
5981 .Ip "\fB\-malign-functions=\fR\fInum\fR" 4
5982 .IX Item "-malign-functions=num"
5983 Align the start of functions to a 2 raised to \fInum\fR byte boundary.
5984 If \fB\-malign-functions\fR is not specified, the default is 2 if optimizing
5985 for a 386, and 4 if optimizing for a 486.
5986 .Ip "\fB\-mpreferred-stack-boundary=\fR\fInum\fR" 4
5987 .IX Item "-mpreferred-stack-boundary=num"
5988 Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
5989 byte boundary.  If \fB\-mpreferred-stack-boundary\fR is not specified,
5990 the default is 4 (16 bytes or 128 bits).
5992 The stack is required to be aligned on a 4 byte boundary.  On Pentium
5993 and PentiumPro, \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long double\*(C'\fR values should be
5994 aligned to an 8 byte boundary (see \fB\-malign-double\fR) or suffer
5995 significant run time performance penalties.  On Pentium \s-1III\s0, the
5996 Streaming \s-1SIMD\s0 Extension (\s-1SSE\s0) data type \f(CW\*(C`_\|_m128\*(C'\fR suffers similar
5997 penalties if it is not 16 byte aligned.
5999 To ensure proper alignment of this values on the stack, the stack boundary
6000 must be as aligned as that required by any value stored on the stack. 
6001 Further, every function must be generated such that it keeps the stack
6002 aligned.  Thus calling a function compiled with a higher preferred
6003 stack boundary from a function compiled with a lower preferred stack
6004 boundary will most likely misalign the stack.  It is recommended that
6005 libraries that use callbacks always use the default setting.
6007 This extra alignment does consume extra stack space.  Code that is sensitive
6008 to stack space usage, such as embedded systems and operating system kernels,
6009 may want to reduce the preferred alignment to
6010 \&\fB\-mpreferred-stack-boundary=2\fR.
6011 .Ip "\fB\-mpush-args\fR" 4
6012 .IX Item "-mpush-args"
6013 Use \s-1PUSH\s0 operations to store outgoing parameters. This method is shorter
6014 and usually equally fast as method using \s-1SUB/MOV\s0 operations and is enabled
6015 by default. In some cases disabling it may improve performance because of
6016 improved scheduling and reduced dependencies.
6017 .Ip "\fB\-maccumulate-outgoing-args\fR" 4
6018 .IX Item "-maccumulate-outgoing-args"
6019 If enabled, the maximum amount of space required for outgoing arguments will be
6020 computed in the function prologue. This in faster on most modern CPUs
6021 because of reduced dependencies, improved scheduling and reduced stack usage
6022 when preferred stack boundary is not equal to 2.  The drawback is a notable
6023 increase in code size. This switch implies \-mno-push-args.
6024 .Ip "\fB\-mthreads\fR" 4
6025 .IX Item "-mthreads"
6026 Support thread-safe exception handling on \fBMingw32\fR. Code that relies 
6027 on thread-safe exception handling must compile and link all code with the 
6028 \&\fB\-mthreads\fR option. When compiling, \fB\-mthreads\fR defines 
6029 \&\fB\-D_MT\fR; when linking, it links in a special thread helper library 
6030 \&\fB\-lmingwthrd\fR which cleans up per thread exception handling data.
6031 .Ip "\fB\-mno-align-stringops\fR" 4
6032 .IX Item "-mno-align-stringops"
6033 Do not align destination of inlined string operations. This switch reduces
6034 code size and improves performance in case the destination is already aligned,
6035 but gcc don't know about it.
6036 .Ip "\fB\-minline-all-stringops\fR" 4
6037 .IX Item "-minline-all-stringops"
6038 By default \s-1GCC\s0 inlines string operations only when destination is known to be
6039 aligned at least to 4 byte boundary. This enables more inlining, increase code
6040 size, but may improve performance of code that depends on fast memcpy, strlen
6041 and memset for short lengths.
6043 .I "\s-1HPPA\s0 Options"
6044 .IX Subsection "HPPA Options"
6046 These \fB\-m\fR options are defined for the \s-1HPPA\s0 family of computers:
6047 .Ip "\fB\-march=\fR\fIarchitecture type\fR" 4
6048 .IX Item "-march=architecture type"
6049 Generate code for the specified architecture.  The choices for
6050 \&\fIarchitecture type\fR are \fB1.0\fR for \s-1PA\s0 1.0, \fB1.1\fR for \s-1PA\s0
6051 1.1, and \fB2.0\fR for \s-1PA\s0 2.0 processors.  Refer to
6052 \&\fI/usr/lib/sched.models\fR on an \s-1HP-UX\s0 system to determine the proper
6053 architecture option for your machine.  Code compiled for lower numbered
6054 architectures will run on higher numbered architectures, but not the
6055 other way around.
6057 \&\s-1PA\s0 2.0 support currently requires gas snapshot 19990413 or later.  The
6058 next release of binutils (current is 2.9.1) will probably contain \s-1PA\s0 2.0
6059 support.  
6060 .Ip "\fB\-mpa-risc-1\-0\fR" 4
6061 .IX Item "-mpa-risc-1-0"
6062 .PD 0
6063 .Ip "\fB\-mpa-risc-1\-1\fR" 4
6064 .IX Item "-mpa-risc-1-1"
6065 .Ip "\fB\-mpa-risc-2\-0\fR" 4
6066 .IX Item "-mpa-risc-2-0"
6068 Synonyms for \-march=1.0, \-march=1.1, and \-march=2.0 respectively.
6069 .Ip "\fB\-mbig-switch\fR" 4
6070 .IX Item "-mbig-switch"
6071 Generate code suitable for big switch tables.  Use this option only if
6072 the assembler/linker complain about out of range branches within a switch
6073 table.
6074 .Ip "\fB\-mjump-in-delay\fR" 4
6075 .IX Item "-mjump-in-delay"
6076 Fill delay slots of function calls with unconditional jump instructions
6077 by modifying the return pointer for the function call to be the target
6078 of the conditional jump.
6079 .Ip "\fB\-mdisable-fpregs\fR" 4
6080 .IX Item "-mdisable-fpregs"
6081 Prevent floating point registers from being used in any manner.  This is
6082 necessary for compiling kernels which perform lazy context switching of
6083 floating point registers.  If you use this option and attempt to perform
6084 floating point operations, the compiler will abort.
6085 .Ip "\fB\-mdisable-indexing\fR" 4
6086 .IX Item "-mdisable-indexing"
6087 Prevent the compiler from using indexing address modes.  This avoids some
6088 rather obscure problems when compiling \s-1MIG\s0 generated code under \s-1MACH\s0.
6089 .Ip "\fB\-mno-space-regs\fR" 4
6090 .IX Item "-mno-space-regs"
6091 Generate code that assumes the target has no space registers.  This allows
6092 \&\s-1GCC\s0 to generate faster indirect calls and use unscaled index address modes.
6094 Such code is suitable for level 0 \s-1PA\s0 systems and kernels.
6095 .Ip "\fB\-mfast-indirect-calls\fR" 4
6096 .IX Item "-mfast-indirect-calls"
6097 Generate code that assumes calls never cross space boundaries.  This
6098 allows \s-1GCC\s0 to emit code which performs faster indirect calls.
6100 This option will not work in the presence of shared libraries or nested
6101 functions.
6102 .Ip "\fB\-mlong-load-store\fR" 4
6103 .IX Item "-mlong-load-store"
6104 Generate 3\-instruction load and store sequences as sometimes required by
6105 the \s-1HP-UX\s0 10 linker.  This is equivalent to the \fB+k\fR option to
6106 the \s-1HP\s0 compilers.
6107 .Ip "\fB\-mportable-runtime\fR" 4
6108 .IX Item "-mportable-runtime"
6109 Use the portable calling conventions proposed by \s-1HP\s0 for \s-1ELF\s0 systems.
6110 .Ip "\fB\-mgas\fR" 4
6111 .IX Item "-mgas"
6112 Enable the use of assembler directives only \s-1GAS\s0 understands.
6113 .Ip "\fB\-mschedule=\fR\fIcpu type\fR" 4
6114 .IX Item "-mschedule=cpu type"
6115 Schedule code according to the constraints for the machine type
6116 \&\fIcpu type\fR.  The choices for \fIcpu type\fR are \fB700\fR 
6117 \&\fB7100\fR, \fB7100LC\fR, \fB7200\fR, and \fB8000\fR.  Refer to 
6118 \&\fI/usr/lib/sched.models\fR on an \s-1HP-UX\s0 system to determine the
6119 proper scheduling option for your machine.
6120 .Ip "\fB\-mlinker-opt\fR" 4
6121 .IX Item "-mlinker-opt"
6122 Enable the optimization pass in the \s-1HPUX\s0 linker.  Note this makes symbolic
6123 debugging impossible.  It also triggers a bug in the \s-1HPUX\s0 8 and \s-1HPUX\s0 9 linkers
6124 in which they give bogus error messages when linking some programs.
6125 .Ip "\fB\-msoft-float\fR" 4
6126 .IX Item "-msoft-float"
6127 Generate output containing library calls for floating point.
6128 \&\fBWarning:\fR the requisite libraries are not available for all \s-1HPPA\s0
6129 targets.  Normally the facilities of the machine's usual C compiler are
6130 used, but this cannot be done directly in cross-compilation.  You must make
6131 your own arrangements to provide suitable library functions for
6132 cross-compilation.  The embedded target \fBhppa1.1\-*\-pro\fR
6133 does provide software floating point support.
6135 \&\fB\-msoft-float\fR changes the calling convention in the output file;
6136 therefore, it is only useful if you compile \fIall\fR of a program with
6137 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
6138 library that comes with \s-1GCC\s0, with \fB\-msoft-float\fR in order for
6139 this to work.
6141 .I "Intel 960 Options"
6142 .IX Subsection "Intel 960 Options"
6144 These \fB\-m\fR options are defined for the Intel 960 implementations:
6145 .Ip "\fB\-m\fR\fIcpu type\fR" 4
6146 .IX Item "-mcpu type"
6147 Assume the defaults for the machine type \fIcpu type\fR for some of
6148 the other options, including instruction scheduling, floating point
6149 support, and addressing modes.  The choices for \fIcpu type\fR are
6150 \&\fBka\fR, \fBkb\fR, \fBmc\fR, \fBca\fR, \fBcf\fR,
6151 \&\fBsa\fR, and \fBsb\fR.
6152 The default is
6153 \&\fBkb\fR.
6154 .Ip "\fB\-mnumerics\fR" 4
6155 .IX Item "-mnumerics"
6156 .PD 0
6157 .Ip "\fB\-msoft-float\fR" 4
6158 .IX Item "-msoft-float"
6160 The \fB\-mnumerics\fR option indicates that the processor does support
6161 floating-point instructions.  The \fB\-msoft-float\fR option indicates
6162 that floating-point support should not be assumed.
6163 .Ip "\fB\-mleaf-procedures\fR" 4
6164 .IX Item "-mleaf-procedures"
6165 .PD 0
6166 .Ip "\fB\-mno-leaf-procedures\fR" 4
6167 .IX Item "-mno-leaf-procedures"
6169 Do (or do not) attempt to alter leaf procedures to be callable with the
6170 \&\f(CW\*(C`bal\*(C'\fR instruction as well as \f(CW\*(C`call\*(C'\fR.  This will result in more
6171 efficient code for explicit calls when the \f(CW\*(C`bal\*(C'\fR instruction can be
6172 substituted by the assembler or linker, but less efficient code in other
6173 cases, such as calls via function pointers, or using a linker that doesn't
6174 support this optimization.
6175 .Ip "\fB\-mtail-call\fR" 4
6176 .IX Item "-mtail-call"
6177 .PD 0
6178 .Ip "\fB\-mno-tail-call\fR" 4
6179 .IX Item "-mno-tail-call"
6181 Do (or do not) make additional attempts (beyond those of the
6182 machine-independent portions of the compiler) to optimize tail-recursive
6183 calls into branches.  You may not want to do this because the detection of
6184 cases where this is not valid is not totally complete.  The default is
6185 \&\fB\-mno-tail-call\fR.
6186 .Ip "\fB\-mcomplex-addr\fR" 4
6187 .IX Item "-mcomplex-addr"
6188 .PD 0
6189 .Ip "\fB\-mno-complex-addr\fR" 4
6190 .IX Item "-mno-complex-addr"
6192 Assume (or do not assume) that the use of a complex addressing mode is a
6193 win on this implementation of the i960.  Complex addressing modes may not
6194 be worthwhile on the K-series, but they definitely are on the C-series.
6195 The default is currently \fB\-mcomplex-addr\fR for all processors except
6196 the \s-1CB\s0 and \s-1CC\s0.
6197 .Ip "\fB\-mcode-align\fR" 4
6198 .IX Item "-mcode-align"
6199 .PD 0
6200 .Ip "\fB\-mno-code-align\fR" 4
6201 .IX Item "-mno-code-align"
6203 Align code to 8\-byte boundaries for faster fetching (or don't bother).
6204 Currently turned on by default for C-series implementations only.
6205 .Ip "\fB\-mic-compat\fR" 4
6206 .IX Item "-mic-compat"
6207 .PD 0
6208 .Ip "\fB\-mic2.0\-compat\fR" 4
6209 .IX Item "-mic2.0-compat"
6210 .Ip "\fB\-mic3.0\-compat\fR" 4
6211 .IX Item "-mic3.0-compat"
6213 Enable compatibility with iC960 v2.0 or v3.0.
6214 .Ip "\fB\-masm-compat\fR" 4
6215 .IX Item "-masm-compat"
6216 .PD 0
6217 .Ip "\fB\-mintel-asm\fR" 4
6218 .IX Item "-mintel-asm"
6220 Enable compatibility with the iC960 assembler.
6221 .Ip "\fB\-mstrict-align\fR" 4
6222 .IX Item "-mstrict-align"
6223 .PD 0
6224 .Ip "\fB\-mno-strict-align\fR" 4
6225 .IX Item "-mno-strict-align"
6227 Do not permit (do permit) unaligned accesses.
6228 .Ip "\fB\-mold-align\fR" 4
6229 .IX Item "-mold-align"
6230 Enable structure-alignment compatibility with Intel's gcc release version
6231 1.3 (based on gcc 1.37).  This option implies \fB\-mstrict-align\fR.
6232 .Ip "\fB\-mlong-double-64\fR" 4
6233 .IX Item "-mlong-double-64"
6234 Implement type \fBlong double\fR as 64\-bit floating point numbers.
6235 Without the option \fBlong double\fR is implemented by 80\-bit
6236 floating point numbers.  The only reason we have it because there is
6237 no 128\-bit \fBlong double\fR support in \fBfp-bit.c\fR yet.  So it
6238 is only useful for people using soft-float targets.  Otherwise, we
6239 should recommend against use of it.
6241 .I "\s-1DEC\s0 Alpha Options"
6242 .IX Subsection "DEC Alpha Options"
6244 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha implementations:
6245 .Ip "\fB\-mno-soft-float\fR" 4
6246 .IX Item "-mno-soft-float"
6247 .PD 0
6248 .Ip "\fB\-msoft-float\fR" 4
6249 .IX Item "-msoft-float"
6251 Use (do not use) the hardware floating-point instructions for
6252 floating-point operations.  When \fB\-msoft-float\fR is specified,
6253 functions in \fIlibgcc1.c\fR will be used to perform floating-point
6254 operations.  Unless they are replaced by routines that emulate the
6255 floating-point operations, or compiled in such a way as to call such
6256 emulations routines, these routines will issue floating-point
6257 operations.   If you are compiling for an Alpha without floating-point
6258 operations, you must ensure that the library is built so as not to call
6259 them.
6261 Note that Alpha implementations without floating-point operations are
6262 required to have floating-point registers.
6263 .Ip "\fB\-mfp-reg\fR" 4
6264 .IX Item "-mfp-reg"
6265 .PD 0
6266 .Ip "\fB\-mno-fp-regs\fR" 4
6267 .IX Item "-mno-fp-regs"
6269 Generate code that uses (does not use) the floating-point register set.
6270 \&\fB\-mno-fp-regs\fR implies \fB\-msoft-float\fR.  If the floating-point
6271 register set is not used, floating point operands are passed in integer
6272 registers as if they were integers and floating-point results are passed
6273 in \f(CW$0\fR instead of \f(CW$f0\fR.  This is a non-standard calling sequence, so any
6274 function with a floating-point argument or return value called by code
6275 compiled with \fB\-mno-fp-regs\fR must also be compiled with that
6276 option.
6278 A typical use of this option is building a kernel that does not use,
6279 and hence need not save and restore, any floating-point registers.
6280 .Ip "\fB\-mieee\fR" 4
6281 .IX Item "-mieee"
6282 The Alpha architecture implements floating-point hardware optimized for
6283 maximum performance.  It is mostly compliant with the \s-1IEEE\s0 floating
6284 point standard.  However, for full compliance, software assistance is
6285 required.  This option generates code fully \s-1IEEE\s0 compliant code
6286 \&\fIexcept\fR that the \fIinexact flag\fR is not maintained (see below).
6287 If this option is turned on, the \s-1CPP\s0 macro \f(CW\*(C`_IEEE_FP\*(C'\fR is defined
6288 during compilation.  The option is a shorthand for: \fB\-D_IEEE_FP
6289 \&\-mfp-trap-mode=su \-mtrap-precision=i \-mieee-conformant\fR.  The resulting
6290 code is less efficient but is able to correctly support denormalized
6291 numbers and exceptional \s-1IEEE\s0 values such as not-a-number and plus/minus
6292 infinity.  Other Alpha compilers call this option
6293 \&\fB\-ieee_with_no_inexact\fR.
6294 .Ip "\fB\-mieee-with-inexact\fR" 4
6295 .IX Item "-mieee-with-inexact"
6296 This is like \fB\-mieee\fR except the generated code also maintains the
6297 \&\s-1IEEE\s0 \fIinexact flag\fR.  Turning on this option causes the generated
6298 code to implement fully-compliant \s-1IEEE\s0 math.  The option is a shorthand
6299 for \fB\-D_IEEE_FP \-D_IEEE_FP_INEXACT\fR plus the three following:
6300 \&\fB\-mieee-conformant\fR,
6301 \&\fB\-mfp-trap-mode=sui\fR, 
6302 and \fB\-mtrap-precision=i\fR.  
6303 On some Alpha implementations the resulting code may execute
6304 significantly slower than the code generated by default.  Since there
6305 is very little code that depends on the \fIinexact flag\fR, you should
6306 normally not specify this option.  Other Alpha compilers call this
6307 option \fB\-ieee_with_inexact\fR.
6308 .Ip "\fB\-mfp-trap-mode=\fR\fItrap mode\fR" 4
6309 .IX Item "-mfp-trap-mode=trap mode"
6310 This option controls what floating-point related traps are enabled.
6311 Other Alpha compilers call this option \fB\-fptm\fR \fItrap mode\fR.
6312 The trap mode can be set to one of four values:
6313 .RS 4
6314 .Ip "\fBn\fR" 4
6315 .IX Item "n"
6316 This is the default (normal) setting.  The only traps that are enabled
6317 are the ones that cannot be disabled in software (e.g., division by zero
6318 trap).
6319 .Ip "\fBu\fR" 4
6320 .IX Item "u"
6321 In addition to the traps enabled by \fBn\fR, underflow traps are enabled
6322 as well.
6323 .Ip "\fBsu\fR" 4
6324 .IX Item "su"
6325 Like \fBsu\fR, but the instructions are marked to be safe for software
6326 completion (see Alpha architecture manual for details).
6327 .Ip "\fBsui\fR" 4
6328 .IX Item "sui"
6329 Like \fBsu\fR, but inexact traps are enabled as well.
6331 .RS 4
6333 .Ip "\fB\-mfp-rounding-mode=\fR\fIrounding mode\fR" 4
6334 .IX Item "-mfp-rounding-mode=rounding mode"
6335 Selects the \s-1IEEE\s0 rounding mode.  Other Alpha compilers call this option
6336 \&\fB\-fprm\fR \fIrounding mode\fR.  The \fIrounding mode\fR can be one
6338 .RS 4
6339 .Ip "\fBn\fR" 4
6340 .IX Item "n"
6341 Normal \s-1IEEE\s0 rounding mode.  Floating point numbers are rounded towards
6342 the nearest machine number or towards the even machine number in case
6343 of a tie.
6344 .Ip "\fBm\fR" 4
6345 .IX Item "m"
6346 Round towards minus infinity.
6347 .Ip "\fBc\fR" 4
6348 .IX Item "c"
6349 Chopped rounding mode.  Floating point numbers are rounded towards zero.
6350 .Ip "\fBd\fR" 4
6351 .IX Item "d"
6352 Dynamic rounding mode.  A field in the floating point control register
6353 (\fIfpcr\fR, see Alpha architecture reference manual) controls the
6354 rounding mode in effect.  The C library initializes this register for
6355 rounding towards plus infinity.  Thus, unless your program modifies the
6356 \&\fIfpcr\fR, \fBd\fR corresponds to round towards plus infinity.
6358 .RS 4
6360 .Ip "\fB\-mtrap-precision=\fR\fItrap precision\fR" 4
6361 .IX Item "-mtrap-precision=trap precision"
6362 In the Alpha architecture, floating point traps are imprecise.  This
6363 means without software assistance it is impossible to recover from a
6364 floating trap and program execution normally needs to be terminated.
6365 \&\s-1GCC\s0 can generate code that can assist operating system trap handlers
6366 in determining the exact location that caused a floating point trap.
6367 Depending on the requirements of an application, different levels of
6368 precisions can be selected:
6369 .RS 4
6370 .Ip "\fBp\fR" 4
6371 .IX Item "p"
6372 Program precision.  This option is the default and means a trap handler
6373 can only identify which program caused a floating point exception.
6374 .Ip "\fBf\fR" 4
6375 .IX Item "f"
6376 Function precision.  The trap handler can determine the function that
6377 caused a floating point exception.
6378 .Ip "\fBi\fR" 4
6379 .IX Item "i"
6380 Instruction precision.  The trap handler can determine the exact
6381 instruction that caused a floating point exception.
6383 .RS 4
6385 Other Alpha compilers provide the equivalent options called
6386 \&\fB\-scope_safe\fR and \fB\-resumption_safe\fR.
6388 .Ip "\fB\-mieee-conformant\fR" 4
6389 .IX Item "-mieee-conformant"
6390 This option marks the generated code as \s-1IEEE\s0 conformant.  You must not
6391 use this option unless you also specify \fB\-mtrap-precision=i\fR and either
6392 \&\fB\-mfp-trap-mode=su\fR or \fB\-mfp-trap-mode=sui\fR.  Its only effect
6393 is to emit the line \fB.eflag 48\fR in the function prologue of the
6394 generated assembly file.  Under \s-1DEC\s0 Unix, this has the effect that
6395 IEEE-conformant math library routines will be linked in.
6396 .Ip "\fB\-mbuild-constants\fR" 4
6397 .IX Item "-mbuild-constants"
6398 Normally \s-1GCC\s0 examines a 32\- or 64\-bit integer constant to
6399 see if it can construct it from smaller constants in two or three
6400 instructions.  If it cannot, it will output the constant as a literal and
6401 generate code to load it from the data segment at runtime.
6403 Use this option to require \s-1GCC\s0 to construct \fIall\fR integer constants
6404 using code, even if it takes more instructions (the maximum is six).
6406 You would typically use this option to build a shared library dynamic
6407 loader.  Itself a shared library, it must relocate itself in memory
6408 before it can find the variables and constants in its own data segment.
6409 .Ip "\fB\-malpha-as\fR" 4
6410 .IX Item "-malpha-as"
6411 .PD 0
6412 .Ip "\fB\-mgas\fR" 4
6413 .IX Item "-mgas"
6415 Select whether to generate code to be assembled by the vendor-supplied
6416 assembler (\fB\-malpha-as\fR) or by the \s-1GNU\s0 assembler \fB\-mgas\fR.
6417 .Ip "\fB\-mbwx\fR" 4
6418 .IX Item "-mbwx"
6419 .PD 0
6420 .Ip "\fB\-mno-bwx\fR" 4
6421 .IX Item "-mno-bwx"
6422 .Ip "\fB\-mcix\fR" 4
6423 .IX Item "-mcix"
6424 .Ip "\fB\-mno-cix\fR" 4
6425 .IX Item "-mno-cix"
6426 .Ip "\fB\-mmax\fR" 4
6427 .IX Item "-mmax"
6428 .Ip "\fB\-mno-max\fR" 4
6429 .IX Item "-mno-max"
6431 Indicate whether \s-1GCC\s0 should generate code to use the optional \s-1BWX\s0,
6432 \&\s-1CIX\s0, and \s-1MAX\s0 instruction sets.  The default is to use the instruction sets
6433 supported by the \s-1CPU\s0 type specified via \fB\-mcpu=\fR option or that
6434 of the \s-1CPU\s0 on which \s-1GCC\s0 was built if none was specified.
6435 .Ip "\fB\-mcpu=\fR\fIcpu_type\fR" 4
6436 .IX Item "-mcpu=cpu_type"
6437 Set the instruction set, register set, and instruction scheduling
6438 parameters for machine type \fIcpu_type\fR.  You can specify either the
6439 \&\fB\s-1EV\s0\fR style name or the corresponding chip number.  \s-1GCC\s0
6440 supports scheduling parameters for the \s-1EV4\s0 and \s-1EV5\s0 family of processors
6441 and will choose the default values for the instruction set from
6442 the processor you specify.  If you do not specify a processor type,
6443 \&\s-1GCC\s0 will default to the processor on which the compiler was built.
6445 Supported values for \fIcpu_type\fR are
6446 .RS 4
6447 .Ip "\fBev4\fR" 4
6448 .IX Item "ev4"
6449 .PD 0
6450 .Ip "\fB21064\fR" 4
6451 .IX Item "21064"
6453 Schedules as an \s-1EV4\s0 and has no instruction set extensions.
6454 .Ip "\fBev5\fR" 4
6455 .IX Item "ev5"
6456 .PD 0
6457 .Ip "\fB21164\fR" 4
6458 .IX Item "21164"
6460 Schedules as an \s-1EV5\s0 and has no instruction set extensions.
6461 .Ip "\fBev56\fR" 4
6462 .IX Item "ev56"
6463 .PD 0
6464 .Ip "\fB21164a\fR" 4
6465 .IX Item "21164a"
6467 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 extension.
6468 .Ip "\fBpca56\fR" 4
6469 .IX Item "pca56"
6470 .PD 0
6471 .Ip "\fB21164pc\fR" 4
6472 .IX Item "21164pc"
6473 .Ip "\fB21164PC\fR" 4
6474 .IX Item "21164PC"
6476 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 and \s-1MAX\s0 extensions.
6477 .Ip "\fBev6\fR" 4
6478 .IX Item "ev6"
6479 .PD 0
6480 .Ip "\fB21264\fR" 4
6481 .IX Item "21264"
6483 Schedules as an \s-1EV5\s0 (until Digital releases the scheduling parameters
6484 for the \s-1EV6\s0) and supports the \s-1BWX\s0, \s-1CIX\s0, and \s-1MAX\s0 extensions.
6486 .RS 4
6488 .Ip "\fB\-mmemory-latency=\fR\fItime\fR" 4
6489 .IX Item "-mmemory-latency=time"
6490 Sets the latency the scheduler should assume for typical memory
6491 references as seen by the application.  This number is highly
6492 dependent on the memory access patterns used by the application
6493 and the size of the external cache on the machine.
6495 Valid options for \fItime\fR are
6496 .RS 4
6497 .Ip "\fInumber\fR" 4
6498 .IX Item "number"
6499 A decimal number representing clock cycles.
6500 .Ip "\fBL1\fR" 4
6501 .IX Item "L1"
6502 .PD 0
6503 .Ip "\fBL2\fR" 4
6504 .IX Item "L2"
6505 .Ip "\fBL3\fR" 4
6506 .IX Item "L3"
6507 .Ip "\fBmain\fR" 4
6508 .IX Item "main"
6510 The compiler contains estimates of the number of clock cycles for
6511 ``typical'' \s-1EV4\s0 & \s-1EV5\s0 hardware for the Level 1, 2 & 3 caches
6512 (also called Dcache, Scache, and Bcache), as well as to main memory.
6513 Note that L3 is only valid for \s-1EV5\s0.
6515 .RS 4
6518 .I "Clipper Options"
6519 .IX Subsection "Clipper Options"
6521 These \fB\-m\fR options are defined for the Clipper implementations:
6522 .Ip "\fB\-mc300\fR" 4
6523 .IX Item "-mc300"
6524 Produce code for a C300 Clipper processor. This is the default.
6525 .Ip "\fB\-mc400\fR" 4
6526 .IX Item "-mc400"
6527 Produce code for a C400 Clipper processor i.e. use floating point
6528 registers f8..f15.
6530 .I "H8/300 Options"
6531 .IX Subsection "H8/300 Options"
6533 These \fB\-m\fR options are defined for the H8/300 implementations:
6534 .Ip "\fB\-mrelax\fR" 4
6535 .IX Item "-mrelax"
6536 Shorten some address references at link time, when possible; uses the
6537 linker option \fB\-relax\fR.  
6538 .Ip "\fB\-mh\fR" 4
6539 .IX Item "-mh"
6540 Generate code for the H8/300H.
6541 .Ip "\fB\-ms\fR" 4
6542 .IX Item "-ms"
6543 Generate code for the H8/S.
6544 .Ip "\fB\-ms2600\fR" 4
6545 .IX Item "-ms2600"
6546 Generate code for the H8/S2600.  This switch must be used with \-ms.
6547 .Ip "\fB\-mint32\fR" 4
6548 .IX Item "-mint32"
6549 Make \f(CW\*(C`int\*(C'\fR data 32 bits by default.
6550 .Ip "\fB\-malign-300\fR" 4
6551 .IX Item "-malign-300"
6552 On the H8/300H and H8/S, use the same alignment rules as for the H8/300.
6553 The default for the H8/300H and H8/S is to align longs and floats on 4
6554 byte boundaries.
6555 \&\fB\-malign-300\fR causes them to be aligned on 2 byte boundaries.
6556 This option has no effect on the H8/300.
6558 .I "\s-1SH\s0 Options"
6559 .IX Subsection "SH Options"
6561 These \fB\-m\fR options are defined for the \s-1SH\s0 implementations:
6562 .Ip "\fB\-m1\fR" 4
6563 .IX Item "-m1"
6564 Generate code for the \s-1SH1\s0.
6565 .Ip "\fB\-m2\fR" 4
6566 .IX Item "-m2"
6567 Generate code for the \s-1SH2\s0.
6568 .Ip "\fB\-m3\fR" 4
6569 .IX Item "-m3"
6570 Generate code for the \s-1SH3\s0.
6571 .Ip "\fB\-m3e\fR" 4
6572 .IX Item "-m3e"
6573 Generate code for the SH3e.
6574 .Ip "\fB\-m4\-nofpu\fR" 4
6575 .IX Item "-m4-nofpu"
6576 Generate code for the \s-1SH4\s0 without a floating-point unit.
6577 .Ip "\fB\-m4\-single-only\fR" 4
6578 .IX Item "-m4-single-only"
6579 Generate code for the \s-1SH4\s0 with a floating-point unit that only
6580 supports single-precision arithmentic.
6581 .Ip "\fB\-m4\-single\fR" 4
6582 .IX Item "-m4-single"
6583 Generate code for the \s-1SH4\s0 assuming the floating-point unit is in
6584 single-precision mode by default.
6585 .Ip "\fB\-m4\fR" 4
6586 .IX Item "-m4"
6587 Generate code for the \s-1SH4\s0.
6588 .Ip "\fB\-mb\fR" 4
6589 .IX Item "-mb"
6590 Compile code for the processor in big endian mode.
6591 .Ip "\fB\-ml\fR" 4
6592 .IX Item "-ml"
6593 Compile code for the processor in little endian mode.
6594 .Ip "\fB\-mdalign\fR" 4
6595 .IX Item "-mdalign"
6596 Align doubles at 64 bit boundaries.  Note that this changes the calling
6597 conventions, and thus some functions from the standard C library will
6598 not work unless you recompile it first with \-mdalign.
6599 .Ip "\fB\-mrelax\fR" 4
6600 .IX Item "-mrelax"
6601 Shorten some address references at link time, when possible; uses the
6602 linker option \fB\-relax\fR.
6603 .Ip "\fB\-mbigtable\fR" 4
6604 .IX Item "-mbigtable"
6605 Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables.  The default is to use
6606 16\-bit offsets.
6607 .Ip "\fB\-mfmovd\fR" 4
6608 .IX Item "-mfmovd"
6609 Enable the use of the instruction \f(CW\*(C`fmovd\*(C'\fR.
6610 .Ip "\fB\-mhitachi\fR" 4
6611 .IX Item "-mhitachi"
6612 Comply with the calling conventions defined by Hitachi.
6613 .Ip "\fB\-mnomacsave\fR" 4
6614 .IX Item "-mnomacsave"
6615 Mark the \f(CW\*(C`MAC\*(C'\fR register as call-clobbered, even if
6616 \&\fB\-mhitachi\fR is given.
6617 .Ip "\fB\-misize\fR" 4
6618 .IX Item "-misize"
6619 Dump instruction size and location in the assembly code.
6620 .Ip "\fB\-mpadstruct\fR" 4
6621 .IX Item "-mpadstruct"
6622 This option is deprecated.  It pads structures to multiple of 4 bytes,
6623 which is incompatible with the \s-1SH\s0 \s-1ABI\s0.
6624 .Ip "\fB\-mspace\fR" 4
6625 .IX Item "-mspace"
6626 Optimize for space instead of speed.  Implied by \fB\-Os\fR.
6627 .Ip "\fB\-mprefergot\fR" 4
6628 .IX Item "-mprefergot"
6629 When generating position-independent code, emit function calls using
6630 the Global Offset Table instead of the Procedure Linkage Table.
6631 .Ip "\fB\-musermode\fR" 4
6632 .IX Item "-musermode"
6633 Generate a library function call to invalidate instruction cache
6634 entries, after fixing up a trampoline.  This library function call
6635 doesn't assume it can write to the whole memory address space.  This
6636 is the default when the target is \f(CW\*(C`sh\-*\-linux*\*(C'\fR.
6638 .I "Options for System V"
6639 .IX Subsection "Options for System V"
6641 These additional options are available on System V Release 4 for
6642 compatibility with other compilers on those systems:
6643 .Ip "\fB\-G\fR" 4
6644 .IX Item "-G"
6645 Create a shared object.
6646 It is recommended that \fB\-symbolic\fR or \fB\-shared\fR be used instead.
6647 .Ip "\fB\-Qy\fR" 4
6648 .IX Item "-Qy"
6649 Identify the versions of each tool used by the compiler, in a
6650 \&\f(CW\*(C`.ident\*(C'\fR assembler directive in the output.
6651 .Ip "\fB\-Qn\fR" 4
6652 .IX Item "-Qn"
6653 Refrain from adding \f(CW\*(C`.ident\*(C'\fR directives to the output file (this is
6654 the default).
6655 .Ip "\fB\-YP,\fR\fIdirs\fR" 4
6656 .IX Item "-YP,dirs"
6657 Search the directories \fIdirs\fR, and no others, for libraries
6658 specified with \fB\-l\fR.
6659 .Ip "\fB\-Ym,\fR\fIdir\fR" 4
6660 .IX Item "-Ym,dir"
6661 Look in the directory \fIdir\fR to find the M4 preprocessor.
6662 The assembler uses this option.
6664 .I "TMS320C3x/C4x Options"
6665 .IX Subsection "TMS320C3x/C4x Options"
6667 These \fB\-m\fR options are defined for TMS320C3x/C4x implementations:
6668 .Ip "\fB\-mcpu=\fR\fIcpu_type\fR" 4
6669 .IX Item "-mcpu=cpu_type"
6670 Set the instruction set, register set, and instruction scheduling
6671 parameters for machine type \fIcpu_type\fR.  Supported values for
6672 \&\fIcpu_type\fR are \fBc30\fR, \fBc31\fR, \fBc32\fR, \fBc40\fR, and
6673 \&\fBc44\fR.  The default is \fBc40\fR to generate code for the
6674 \&\s-1TMS320C40\s0.
6675 .Ip "\fB\-mbig-memory\fR" 4
6676 .IX Item "-mbig-memory"
6677 .PD 0
6678 .Ip "\fB\-mbig\fR" 4
6679 .IX Item "-mbig"
6680 .Ip "\fB\-msmall-memory\fR" 4
6681 .IX Item "-msmall-memory"
6682 .Ip "\fB\-msmall\fR" 4
6683 .IX Item "-msmall"
6685 Generates code for the big or small memory model.  The small memory
6686 model assumed that all data fits into one 64K word page.  At run-time
6687 the data page (\s-1DP\s0) register must be set to point to the 64K page
6688 containing the .bss and .data program sections.  The big memory model is
6689 the default and requires reloading of the \s-1DP\s0 register for every direct
6690 memory access.
6691 .Ip "\fB\-mbk\fR" 4
6692 .IX Item "-mbk"
6693 .PD 0
6694 .Ip "\fB\-mno-bk\fR" 4
6695 .IX Item "-mno-bk"
6697 Allow (disallow) allocation of general integer operands into the block
6698 count register \s-1BK\s0. 
6699 .Ip "\fB\-mdb\fR" 4
6700 .IX Item "-mdb"
6701 .PD 0
6702 .Ip "\fB\-mno-db\fR" 4
6703 .IX Item "-mno-db"
6705 Enable (disable) generation of code using decrement and branch,
6706 \&\fIDBcond\fR\|(D), instructions.  This is enabled by default for the C4x.  To be
6707 on the safe side, this is disabled for the C3x, since the maximum
6708 iteration count on the C3x is 2^23 + 1 (but who iterates loops more than
6709 2^23 times on the C3x?).  Note that \s-1GCC\s0 will try to reverse a loop so
6710 that it can utilise the decrement and branch instruction, but will give
6711 up if there is more than one memory reference in the loop.  Thus a loop
6712 where the loop counter is decremented can generate slightly more
6713 efficient code, in cases where the \s-1RPTB\s0 instruction cannot be utilised.
6714 .Ip "\fB\-mdp-isr-reload\fR" 4
6715 .IX Item "-mdp-isr-reload"
6716 .PD 0
6717 .Ip "\fB\-mparanoid\fR" 4
6718 .IX Item "-mparanoid"
6720 Force the \s-1DP\s0 register to be saved on entry to an interrupt service
6721 routine (\s-1ISR\s0), reloaded to point to the data section, and restored on
6722 exit from the \s-1ISR\s0.  This should not be required unless someone has
6723 violated the small memory model by modifying the \s-1DP\s0 register, say within
6724 an object library.
6725 .Ip "\fB\-mmpyi\fR" 4
6726 .IX Item "-mmpyi"
6727 .PD 0
6728 .Ip "\fB\-mno-mpyi\fR" 4
6729 .IX Item "-mno-mpyi"
6731 For the C3x use the 24\-bit \s-1MPYI\s0 instruction for integer multiplies
6732 instead of a library call to guarantee 32\-bit results.  Note that if one
6733 of the operands is a constant, then the multiplication will be performed
6734 using shifts and adds.  If the \-mmpyi option is not specified for the C3x,
6735 then squaring operations are performed inline instead of a library call.
6736 .Ip "\fB\-mfast-fix\fR" 4
6737 .IX Item "-mfast-fix"
6738 .PD 0
6739 .Ip "\fB\-mno-fast-fix\fR" 4
6740 .IX Item "-mno-fast-fix"
6742 The C3x/C4x \s-1FIX\s0 instruction to convert a floating point value to an
6743 integer value chooses the nearest integer less than or equal to the
6744 floating point value rather than to the nearest integer.  Thus if the
6745 floating point number is negative, the result will be incorrectly
6746 truncated an additional code is necessary to detect and correct this
6747 case.  This option can be used to disable generation of the additional
6748 code required to correct the result.
6749 .Ip "\fB\-mrptb\fR" 4
6750 .IX Item "-mrptb"
6751 .PD 0
6752 .Ip "\fB\-mno-rptb\fR" 4
6753 .IX Item "-mno-rptb"
6755 Enable (disable) generation of repeat block sequences using the \s-1RPTB\s0
6756 instruction for zero overhead looping.  The \s-1RPTB\s0 construct is only used
6757 for innermost loops that do not call functions or jump across the loop
6758 boundaries.  There is no advantage having nested \s-1RPTB\s0 loops due to the
6759 overhead required to save and restore the \s-1RC\s0, \s-1RS\s0, and \s-1RE\s0 registers.
6760 This is enabled by default with \-O2.
6761 .Ip "\fB\-mrpts=\fR\fIcount\fR" 4
6762 .IX Item "-mrpts=count"
6763 .PD 0
6764 .Ip "\fB\-mno-rpts\fR" 4
6765 .IX Item "-mno-rpts"
6767 Enable (disable) the use of the single instruction repeat instruction
6768 \&\s-1RPTS\s0.  If a repeat block contains a single instruction, and the loop
6769 count can be guaranteed to be less than the value \fIcount\fR, \s-1GCC\s0 will
6770 emit a \s-1RPTS\s0 instruction instead of a \s-1RPTB\s0.  If no value is specified,
6771 then a \s-1RPTS\s0 will be emitted even if the loop count cannot be determined
6772 at compile time.  Note that the repeated instruction following \s-1RPTS\s0 does
6773 not have to be reloaded from memory each iteration, thus freeing up the
6774 \&\s-1CPU\s0 buses for operands.  However, since interrupts are blocked by this
6775 instruction, it is disabled by default.
6776 .Ip "\fB\-mloop-unsigned\fR" 4
6777 .IX Item "-mloop-unsigned"
6778 .PD 0
6779 .Ip "\fB\-mno-loop-unsigned\fR" 4
6780 .IX Item "-mno-loop-unsigned"
6782 The maximum iteration count when using \s-1RPTS\s0 and \s-1RPTB\s0 (and \s-1DB\s0 on the C40)
6783 is 2^31 + 1 since these instructions test if the iteration count is
6784 negative to terminate the loop.  If the iteration count is unsigned
6785 there is a possibility than the 2^31 + 1 maximum iteration count may be
6786 exceeded.  This switch allows an unsigned iteration count.
6787 .Ip "\fB\-mti\fR" 4
6788 .IX Item "-mti"
6789 Try to emit an assembler syntax that the \s-1TI\s0 assembler (asm30) is happy
6790 with.  This also enforces compatibility with the \s-1API\s0 employed by the \s-1TI\s0
6791 C3x C compiler.  For example, long doubles are passed as structures
6792 rather than in floating point registers.
6793 .Ip "\fB\-mregparm\fR" 4
6794 .IX Item "-mregparm"
6795 .PD 0
6796 .Ip "\fB\-mmemparm\fR" 4
6797 .IX Item "-mmemparm"
6799 Generate code that uses registers (stack) for passing arguments to functions.
6800 By default, arguments are passed in registers where possible rather
6801 than by pushing arguments on to the stack.
6802 .Ip "\fB\-mparallel-insns\fR" 4
6803 .IX Item "-mparallel-insns"
6804 .PD 0
6805 .Ip "\fB\-mno-parallel-insns\fR" 4
6806 .IX Item "-mno-parallel-insns"
6808 Allow the generation of parallel instructions.  This is enabled by
6809 default with \-O2.
6810 .Ip "\fB\-mparallel-mpy\fR" 4
6811 .IX Item "-mparallel-mpy"
6812 .PD 0
6813 .Ip "\fB\-mno-parallel-mpy\fR" 4
6814 .IX Item "-mno-parallel-mpy"
6816 Allow the generation of MPY||ADD and MPY||SUB parallel instructions,
6817 provided \-mparallel-insns is also specified.  These instructions have
6818 tight register constraints which can pessimize the code generation
6819 of large functions.
6821 .I "V850 Options"
6822 .IX Subsection "V850 Options"
6824 These \fB\-m\fR options are defined for V850 implementations:
6825 .Ip "\fB\-mlong-calls\fR" 4
6826 .IX Item "-mlong-calls"
6827 .PD 0
6828 .Ip "\fB\-mno-long-calls\fR" 4
6829 .IX Item "-mno-long-calls"
6831 Treat all calls as being far away (near).  If calls are assumed to be
6832 far away, the compiler will always load the functions address up into a
6833 register, and call indirect through the pointer.
6834 .Ip "\fB\-mno-ep\fR" 4
6835 .IX Item "-mno-ep"
6836 .PD 0
6837 .Ip "\fB\-mep\fR" 4
6838 .IX Item "-mep"
6840 Do not optimize (do optimize) basic blocks that use the same index
6841 pointer 4 or more times to copy pointer into the \f(CW\*(C`ep\*(C'\fR register, and
6842 use the shorter \f(CW\*(C`sld\*(C'\fR and \f(CW\*(C`sst\*(C'\fR instructions.  The \fB\-mep\fR
6843 option is on by default if you optimize.
6844 .Ip "\fB\-mno-prolog-function\fR" 4
6845 .IX Item "-mno-prolog-function"
6846 .PD 0
6847 .Ip "\fB\-mprolog-function\fR" 4
6848 .IX Item "-mprolog-function"
6850 Do not use (do use) external functions to save and restore registers at
6851 the prolog and epilog of a function.  The external functions are slower,
6852 but use less code space if more than one function saves the same number
6853 of registers.  The \fB\-mprolog-function\fR option is on by default if
6854 you optimize.
6855 .Ip "\fB\-mspace\fR" 4
6856 .IX Item "-mspace"
6857 Try to make the code as small as possible.  At present, this just turns
6858 on the \fB\-mep\fR and \fB\-mprolog-function\fR options.
6859 .Ip "\fB\-mtda=\fR\fIn\fR" 4
6860 .IX Item "-mtda=n"
6861 Put static or global variables whose size is \fIn\fR bytes or less into
6862 the tiny data area that register \f(CW\*(C`ep\*(C'\fR points to.  The tiny data
6863 area can hold up to 256 bytes in total (128 bytes for byte references).
6864 .Ip "\fB\-msda=\fR\fIn\fR" 4
6865 .IX Item "-msda=n"
6866 Put static or global variables whose size is \fIn\fR bytes or less into
6867 the small data area that register \f(CW\*(C`gp\*(C'\fR points to.  The small data
6868 area can hold up to 64 kilobytes.
6869 .Ip "\fB\-mzda=\fR\fIn\fR" 4
6870 .IX Item "-mzda=n"
6871 Put static or global variables whose size is \fIn\fR bytes or less into
6872 the first 32 kilobytes of memory.
6873 .Ip "\fB\-mv850\fR" 4
6874 .IX Item "-mv850"
6875 Specify that the target processor is the V850.
6876 .Ip "\fB\-mbig-switch\fR" 4
6877 .IX Item "-mbig-switch"
6878 Generate code suitable for big switch tables.  Use this option only if
6879 the assembler/linker complain about out of range branches within a switch
6880 table.
6882 .I "\s-1ARC\s0 Options"
6883 .IX Subsection "ARC Options"
6885 These options are defined for \s-1ARC\s0 implementations:
6886 .Ip "\fB\-EL\fR" 4
6887 .IX Item "-EL"
6888 Compile code for little endian mode.  This is the default.
6889 .Ip "\fB\-EB\fR" 4
6890 .IX Item "-EB"
6891 Compile code for big endian mode.
6892 .Ip "\fB\-mmangle-cpu\fR" 4
6893 .IX Item "-mmangle-cpu"
6894 Prepend the name of the cpu to all public symbol names.
6895 In multiple-processor systems, there are many \s-1ARC\s0 variants with different
6896 instruction and register set characteristics.  This flag prevents code
6897 compiled for one cpu to be linked with code compiled for another.
6898 No facility exists for handling variants that are \*(L"almost identical\*(R".
6899 This is an all or nothing option.
6900 .Ip "\fB\-mcpu=\fR\fIcpu\fR" 4
6901 .IX Item "-mcpu=cpu"
6902 Compile code for \s-1ARC\s0 variant \fIcpu\fR.
6903 Which variants are supported depend on the configuration.
6904 All variants support \fB\-mcpu=base\fR, this is the default.
6905 .Ip "\fB\-mtext=\fR\fItext section\fR" 4
6906 .IX Item "-mtext=text section"
6907 .PD 0
6908 .Ip "\fB\-mdata=\fR\fIdata section\fR" 4
6909 .IX Item "-mdata=data section"
6910 .Ip "\fB\-mrodata=\fR\fIreadonly data section\fR" 4
6911 .IX Item "-mrodata=readonly data section"
6913 Put functions, data, and readonly data in \fItext section\fR,
6914 \&\fIdata section\fR, and \fIreadonly data section\fR respectively
6915 by default.  This can be overridden with the \f(CW\*(C`section\*(C'\fR attribute.
6917 .I "\s-1NS32K\s0 Options"
6918 .IX Subsection "NS32K Options"
6920 These are the \fB\-m\fR options defined for the 32000 series.  The default
6921 values for these options depends on which style of 32000 was selected when
6922 the compiler was configured; the defaults for the most common choices are
6923 given below.
6924 .Ip "\fB\-m32032\fR" 4
6925 .IX Item "-m32032"
6926 .PD 0
6927 .Ip "\fB\-m32032\fR" 4
6928 .IX Item "-m32032"
6930 Generate output for a 32032.  This is the default
6931 when the compiler is configured for 32032 and 32016 based systems.
6932 .Ip "\fB\-m32332\fR" 4
6933 .IX Item "-m32332"
6934 .PD 0
6935 .Ip "\fB\-m32332\fR" 4
6936 .IX Item "-m32332"
6938 Generate output for a 32332.  This is the default
6939 when the compiler is configured for 32332\-based systems.
6940 .Ip "\fB\-m32532\fR" 4
6941 .IX Item "-m32532"
6942 .PD 0
6943 .Ip "\fB\-m32532\fR" 4
6944 .IX Item "-m32532"
6946 Generate output for a 32532.  This is the default
6947 when the compiler is configured for 32532\-based systems.
6948 .Ip "\fB\-m32081\fR" 4
6949 .IX Item "-m32081"
6950 Generate output containing 32081 instructions for floating point.
6951 This is the default for all systems.
6952 .Ip "\fB\-m32381\fR" 4
6953 .IX Item "-m32381"
6954 Generate output containing 32381 instructions for floating point.  This
6955 also implies \fB\-m32081\fR. The 32381 is only compatible with the 32332
6956 and 32532 cpus. This is the default for the pc532\-netbsd configuration.
6957 .Ip "\fB\-mmulti-add\fR" 4
6958 .IX Item "-mmulti-add"
6959 Try and generate multiply-add floating point instructions \f(CW\*(C`polyF\*(C'\fR
6960 and \f(CW\*(C`dotF\*(C'\fR. This option is only available if the \fB\-m32381\fR
6961 option is in effect. Using these instructions requires changes to to
6962 register allocation which generally has a negative impact on
6963 performance.  This option should only be enabled when compiling code
6964 particularly likely to make heavy use of multiply-add instructions.
6965 .Ip "\fB\-mnomulti-add\fR" 4
6966 .IX Item "-mnomulti-add"
6967 Do not try and generate multiply-add floating point instructions
6968 \&\f(CW\*(C`polyF\*(C'\fR and \f(CW\*(C`dotF\*(C'\fR. This is the default on all platforms.
6969 .Ip "\fB\-msoft-float\fR" 4
6970 .IX Item "-msoft-float"
6971 Generate output containing library calls for floating point.
6972 \&\fBWarning:\fR the requisite libraries may not be available.
6973 .Ip "\fB\-mnobitfield\fR" 4
6974 .IX Item "-mnobitfield"
6975 Do not use the bit-field instructions. On some machines it is faster to
6976 use shifting and masking operations. This is the default for the pc532.
6977 .Ip "\fB\-mbitfield\fR" 4
6978 .IX Item "-mbitfield"
6979 Do use the bit-field instructions. This is the default for all platforms
6980 except the pc532.
6981 .Ip "\fB\-mrtd\fR" 4
6982 .IX Item "-mrtd"
6983 Use a different function-calling convention, in which functions
6984 that take a fixed number of arguments return pop their
6985 arguments on return with the \f(CW\*(C`ret\*(C'\fR instruction.
6987 This calling convention is incompatible with the one normally
6988 used on Unix, so you cannot use it if you need to call libraries
6989 compiled with the Unix compiler.
6991 Also, you must provide function prototypes for all functions that
6992 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
6993 otherwise incorrect code will be generated for calls to those
6994 functions.
6996 In addition, seriously incorrect code will result if you call a
6997 function with too many arguments.  (Normally, extra arguments are
6998 harmlessly ignored.)
7000 This option takes its name from the 680x0 \f(CW\*(C`rtd\*(C'\fR instruction.
7001 .Ip "\fB\-mregparam\fR" 4
7002 .IX Item "-mregparam"
7003 Use a different function-calling convention where the first two arguments
7004 are passed in registers.
7006 This calling convention is incompatible with the one normally
7007 used on Unix, so you cannot use it if you need to call libraries
7008 compiled with the Unix compiler.
7009 .Ip "\fB\-mnoregparam\fR" 4
7010 .IX Item "-mnoregparam"
7011 Do not pass any arguments in registers. This is the default for all
7012 targets.
7013 .Ip "\fB\-msb\fR" 4
7014 .IX Item "-msb"
7015 It is \s-1OK\s0 to use the sb as an index register which is always loaded with
7016 zero. This is the default for the pc532\-netbsd target.
7017 .Ip "\fB\-mnosb\fR" 4
7018 .IX Item "-mnosb"
7019 The sb register is not available for use or has not been initialized to
7020 zero by the run time system. This is the default for all targets except
7021 the pc532\-netbsd. It is also implied whenever \fB\-mhimem\fR or
7022 \&\fB\-fpic\fR is set.
7023 .Ip "\fB\-mhimem\fR" 4
7024 .IX Item "-mhimem"
7025 Many ns32000 series addressing modes use displacements of up to 512MB.
7026 If an address is above 512MB then displacements from zero can not be used.
7027 This option causes code to be generated which can be loaded above 512MB.
7028 This may be useful for operating systems or \s-1ROM\s0 code.
7029 .Ip "\fB\-mnohimem\fR" 4
7030 .IX Item "-mnohimem"
7031 Assume code will be loaded in the first 512MB of virtual address space.
7032 This is the default for all platforms.
7034 .I "\s-1AVR\s0 Options"
7035 .IX Subsection "AVR Options"
7037 These options are defined for \s-1AVR\s0 implementations:
7038 .Ip "\fB\-mmcu=\fR\fImcu\fR" 4
7039 .IX Item "-mmcu=mcu"
7040 Specify \s-1ATMEL\s0 \s-1AVR\s0 instruction set or \s-1MCU\s0 type.
7042 Instruction set avr1 is for the minimal \s-1AVR\s0 core, not supported by the C
7043 compiler, only for assembler programs (\s-1MCU\s0 types: at90s1200, attiny10,
7044 attiny11, attiny12, attiny15, attiny28).
7046 Instruction set avr2 (default) is for the classic \s-1AVR\s0 core with up to
7047 8K program memory space (\s-1MCU\s0 types: at90s2313, at90s2323, attiny22,
7048 at90s2333, at90s2343, at90s4414, at90s4433, at90s4434, at90s8515,
7049 at90c8534, at90s8535).
7051 Instruction set avr3 is for the classic \s-1AVR\s0 core with up to 128K program
7052 memory space (\s-1MCU\s0 types: atmega103, atmega603).
7054 Instruction set avr4 is for the enhanced \s-1AVR\s0 core with up to 8K program
7055 memory space (\s-1MCU\s0 types: atmega83, atmega85).
7057 Instruction set avr5 is for the enhanced \s-1AVR\s0 core with up to 128K program
7058 memory space (\s-1MCU\s0 types: atmega161, atmega163, atmega32, at94k).
7059 .Ip "\fB\-msize\fR" 4
7060 .IX Item "-msize"
7061 Output instruction sizes to the asm file.
7062 .Ip "\fB\-minit-stack=\fR\fIN\fR" 4
7063 .IX Item "-minit-stack=N"
7064 Specify the initial stack address, which may be a symbol or numeric value,
7065 _\|_stack is the default.
7066 .Ip "\fB\-mno-interrupts\fR" 4
7067 .IX Item "-mno-interrupts"
7068 Generated code is not compatible with hardware interrupts.
7069 Code size will be smaller.
7070 .Ip "\fB\-mcall-prologues\fR" 4
7071 .IX Item "-mcall-prologues"
7072 Functions prologues/epilogues expanded as call to appropriate
7073 subroutines. Code size will be smaller.
7074 .Ip "\fB\-mno-tablejump\fR" 4
7075 .IX Item "-mno-tablejump"
7076 Do not generate tablejump insns which sometimes increase code size.
7077 .Ip "\fB\-mtiny-stack\fR" 4
7078 .IX Item "-mtiny-stack"
7079 Change only the low 8 bits of the stack pointer.
7081 .I "MCore Options"
7082 .IX Subsection "MCore Options"
7084 These are the \fB\-m\fR options defined for the Motorola M*Core
7085 processors.  
7086 .Ip "\fB\-mhardlit\fR" 4
7087 .IX Item "-mhardlit"
7088 .PD 0
7089 .Ip "\fB\-mhardlit\fR" 4
7090 .IX Item "-mhardlit"
7091 .Ip "\fB\-mno-hardlit\fR" 4
7092 .IX Item "-mno-hardlit"
7094 Inline constants into the code stream if it can be done in two
7095 instructions or less.
7096 .Ip "\fB\-mdiv\fR" 4
7097 .IX Item "-mdiv"
7098 .PD 0
7099 .Ip "\fB\-mdiv\fR" 4
7100 .IX Item "-mdiv"
7101 .Ip "\fB\-mno-div\fR" 4
7102 .IX Item "-mno-div"
7104 Use the divide instruction.  (Enabled by default).
7105 .Ip "\fB\-mrelax-immediate\fR" 4
7106 .IX Item "-mrelax-immediate"
7107 .PD 0
7108 .Ip "\fB\-mrelax-immediate\fR" 4
7109 .IX Item "-mrelax-immediate"
7110 .Ip "\fB\-mno-relax-immediate\fR" 4
7111 .IX Item "-mno-relax-immediate"
7113 Allow arbitrary sized immediates in bit operations.
7114 .Ip "\fB\-mwide-bitfields\fR" 4
7115 .IX Item "-mwide-bitfields"
7116 .PD 0
7117 .Ip "\fB\-mwide-bitfields\fR" 4
7118 .IX Item "-mwide-bitfields"
7119 .Ip "\fB\-mno-wide-bitfields\fR" 4
7120 .IX Item "-mno-wide-bitfields"
7122 Always treat bitfields as int-sized.
7123 .Ip "\fB\-m4byte-functions\fR" 4
7124 .IX Item "-m4byte-functions"
7125 .PD 0
7126 .Ip "\fB\-m4byte-functions\fR" 4
7127 .IX Item "-m4byte-functions"
7128 .Ip "\fB\-mno-4byte-functions\fR" 4
7129 .IX Item "-mno-4byte-functions"
7131 Force all functions to be aligned to a four byte boundary.
7132 .Ip "\fB\-mcallgraph-data\fR" 4
7133 .IX Item "-mcallgraph-data"
7134 .PD 0
7135 .Ip "\fB\-mcallgraph-data\fR" 4
7136 .IX Item "-mcallgraph-data"
7137 .Ip "\fB\-mno-callgraph-data\fR" 4
7138 .IX Item "-mno-callgraph-data"
7140 Emit callgraph information.
7141 .Ip "\fB\-mslow-bytes\fR" 4
7142 .IX Item "-mslow-bytes"
7143 .PD 0
7144 .Ip "\fB\-mslow-bytes\fR" 4
7145 .IX Item "-mslow-bytes"
7146 .Ip "\fB\-mno-slow-bytes\fR" 4
7147 .IX Item "-mno-slow-bytes"
7149 Prefer word access when reading byte quantities.
7150 .Ip "\fB\-mlittle-endian\fR" 4
7151 .IX Item "-mlittle-endian"
7152 .PD 0
7153 .Ip "\fB\-mlittle-endian\fR" 4
7154 .IX Item "-mlittle-endian"
7155 .Ip "\fB\-mbig-endian\fR" 4
7156 .IX Item "-mbig-endian"
7158 Generate code for a little endian target.
7159 .Ip "\fB\-m210\fR" 4
7160 .IX Item "-m210"
7161 .PD 0
7162 .Ip "\fB\-m210\fR" 4
7163 .IX Item "-m210"
7164 .Ip "\fB\-m340\fR" 4
7165 .IX Item "-m340"
7167 Generate code for the 210 processor.
7169 .I "D30V Options"
7170 .IX Subsection "D30V Options"
7172 These \fB\-m\fR options are defined for D30V implementations:
7173 .Ip "\fB\-mextmem\fR" 4
7174 .IX Item "-mextmem"
7175 Link the \fB.text\fR, \fB.data\fR, \fB.bss\fR, \fB.strings\fR,
7176 \&\fB.rodata\fR, \fB.rodata1\fR, \fB.data1\fR sections into external
7177 memory, which starts at location \f(CW\*(C`0x80000000\*(C'\fR.
7178 .Ip "\fB\-mextmemory\fR" 4
7179 .IX Item "-mextmemory"
7180 Same as the \fB\-mextmem\fR switch.
7181 .Ip "\fB\-monchip\fR" 4
7182 .IX Item "-monchip"
7183 Link the \fB.text\fR section into onchip text memory, which starts at
7184 location \f(CW\*(C`0x0\*(C'\fR.  Also link \fB.data\fR, \fB.bss\fR,
7185 \&\fB.strings\fR, \fB.rodata\fR, \fB.rodata1\fR, \fB.data1\fR sections
7186 into onchip data memory, which starts at location \f(CW\*(C`0x20000000\*(C'\fR.
7187 .Ip "\fB\-mno-asm-optimize\fR" 4
7188 .IX Item "-mno-asm-optimize"
7189 .PD 0
7190 .Ip "\fB\-masm-optimize\fR" 4
7191 .IX Item "-masm-optimize"
7193 Disable (enable) passing \fB\-O\fR to the assembler when optimizing.
7194 The assembler uses the \fB\-O\fR option to automatically parallelize
7195 adjacent short instructions where possible.
7196 .Ip "\fB\-mbranch-cost=\fR\fIn\fR" 4
7197 .IX Item "-mbranch-cost=n"
7198 Increase the internal costs of branches to \fIn\fR.  Higher costs means
7199 that the compiler will issue more instructions to avoid doing a branch.
7200 The default is 2.
7201 .Ip "\fB\-mcond-exec=\fR\fIn\fR" 4
7202 .IX Item "-mcond-exec=n"
7203 Specify the maximum number of conditionally executed instructions that
7204 replace a branch.  The default is 4.
7205 .Sh "Options for Code Generation Conventions"
7206 .IX Subsection "Options for Code Generation Conventions"
7207 These machine-independent options control the interface conventions
7208 used in code generation.
7210 Most of them have both positive and negative forms; the negative form
7211 of \fB\-ffoo\fR would be \fB\-fno-foo\fR.  In the table below, only
7212 one of the forms is listed\-\-\-the one which is not the default.  You
7213 can figure out the other form by either removing \fBno-\fR or adding
7215 .Ip "\fB\-fexceptions\fR" 4
7216 .IX Item "-fexceptions"
7217 Enable exception handling. Generates extra code needed to propagate
7218 exceptions.  For some targets, this implies \s-1GNU\s0 \s-1CC\s0 will generate frame
7219 unwind information for all functions, which can produce significant data
7220 size overhead, although it does not affect execution.  If you do not
7221 specify this option, \s-1GNU\s0 \s-1CC\s0 will enable it by default for languages like
7222 \&\*(C+ which normally require exception handling, and disable itfor
7223 languages like C that do not normally require it.  However, you may need
7224 to enable this option when compiling C code that needs to interoperate
7225 properly with exception handlers written in \*(C+.  You may also wish to
7226 disable this option if you are compiling older \*(C+ programs that don't
7227 use exception handling.
7228 .Ip "\fB\-funwind-tables\fR" 4
7229 .IX Item "-funwind-tables"
7230 Similar to \fB\-fexceptions\fR, except that it will just generate any needed
7231 static data, but will not affect the generated code in any other way.
7232 You will normally not enable this option; instead, a language processor
7233 that needs this handling would enable it on your behalf.
7234 .Ip "\fB\-fpcc-struct-return\fR" 4
7235 .IX Item "-fpcc-struct-return"
7236 Return ``short'' \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in memory like
7237 longer ones, rather than in registers.  This convention is less
7238 efficient, but it has the advantage of allowing intercallability between
7239 GCC-compiled files and files compiled with other compilers.
7241 The precise convention for returning structures in memory depends
7242 on the target configuration macros.
7244 Short structures and unions are those whose size and alignment match
7245 that of some integer type.
7246 .Ip "\fB\-freg-struct-return\fR" 4
7247 .IX Item "-freg-struct-return"
7248 Use the convention that \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values are
7249 returned in registers when possible.  This is more efficient for small
7250 structures than \fB\-fpcc-struct-return\fR.
7252 If you specify neither \fB\-fpcc-struct-return\fR nor its contrary
7253 \&\fB\-freg-struct-return\fR, \s-1GCC\s0 defaults to whichever convention is
7254 standard for the target.  If there is no standard convention, \s-1GCC\s0
7255 defaults to \fB\-fpcc-struct-return\fR, except on targets where \s-1GCC\s0
7256 is the principal compiler.  In those cases, we can choose the standard,
7257 and we chose the more efficient register return alternative.
7258 .Ip "\fB\-fshort-enums\fR" 4
7259 .IX Item "-fshort-enums"
7260 Allocate to an \f(CW\*(C`enum\*(C'\fR type only as many bytes as it needs for the
7261 declared range of possible values.  Specifically, the \f(CW\*(C`enum\*(C'\fR type
7262 will be equivalent to the smallest integer type which has enough room.
7263 .Ip "\fB\-fshort-double\fR" 4
7264 .IX Item "-fshort-double"
7265 Use the same size for \f(CW\*(C`double\*(C'\fR as for \f(CW\*(C`float\*(C'\fR.
7266 .Ip "\fB\-fshared-data\fR" 4
7267 .IX Item "-fshared-data"
7268 Requests that the data and non-\f(CW\*(C`const\*(C'\fR variables of this
7269 compilation be shared data rather than private data.  The distinction
7270 makes sense only on certain operating systems, where shared data is
7271 shared between processes running the same program, while private data
7272 exists in one copy per process.
7273 .Ip "\fB\-fno-common\fR" 4
7274 .IX Item "-fno-common"
7275 Allocate even uninitialized global variables in the data section of the
7276 object file, rather than generating them as common blocks.  This has the
7277 effect that if the same variable is declared (without \f(CW\*(C`extern\*(C'\fR) in
7278 two different compilations, you will get an error when you link them.
7279 The only reason this might be useful is if you wish to verify that the
7280 program will work on other systems which always work this way.
7281 .Ip "\fB\-fno-ident\fR" 4
7282 .IX Item "-fno-ident"
7283 Ignore the \fB#ident\fR directive.
7284 .Ip "\fB\-fno-gnu-linker\fR" 4
7285 .IX Item "-fno-gnu-linker"
7286 Do not output global initializations (such as \*(C+ constructors and
7287 destructors) in the form used by the \s-1GNU\s0 linker (on systems where the \s-1GNU\s0
7288 linker is the standard method of handling them).  Use this option when
7289 you want to use a non-GNU linker, which also requires using the
7290 \&\fBcollect2\fR program to make sure the system linker includes
7291 constructors and destructors.  (\fBcollect2\fR is included in the \s-1GCC\s0
7292 distribution.)  For systems which \fImust\fR use \fBcollect2\fR, the
7293 compiler driver \fBgcc\fR is configured to do this automatically.
7294 .Ip "\fB\-finhibit-size-directive\fR" 4
7295 .IX Item "-finhibit-size-directive"
7296 Don't output a \f(CW\*(C`.size\*(C'\fR assembler directive, or anything else that
7297 would cause trouble if the function is split in the middle, and the
7298 two halves are placed at locations far apart in memory.  This option is
7299 used when compiling \fIcrtstuff.c\fR; you should not need to use it
7300 for anything else.
7301 .Ip "\fB\-fverbose-asm\fR" 4
7302 .IX Item "-fverbose-asm"
7303 Put extra commentary information in the generated assembly code to
7304 make it more readable.  This option is generally only of use to those
7305 who actually need to read the generated assembly code (perhaps while
7306 debugging the compiler itself).
7308 \&\fB\-fno-verbose-asm\fR, the default, causes the
7309 extra information to be omitted and is useful when comparing two assembler
7310 files.
7311 .Ip "\fB\-fvolatile\fR" 4
7312 .IX Item "-fvolatile"
7313 Consider all memory references through pointers to be volatile.
7314 .Ip "\fB\-fvolatile-global\fR" 4
7315 .IX Item "-fvolatile-global"
7316 Consider all memory references to extern and global data items to
7317 be volatile.  \s-1GCC\s0 does not consider static data items to be volatile
7318 because of this switch.
7319 .Ip "\fB\-fvolatile-static\fR" 4
7320 .IX Item "-fvolatile-static"
7321 Consider all memory references to static data to be volatile.
7322 .Ip "\fB\-fpic\fR" 4
7323 .IX Item "-fpic"
7324 Generate position-independent code (\s-1PIC\s0) suitable for use in a shared
7325 library, if supported for the target machine.  Such code accesses all
7326 constant addresses through a global offset table (\s-1GOT\s0).  The dynamic
7327 loader resolves the \s-1GOT\s0 entries when the program starts (the dynamic
7328 loader is not part of \s-1GCC\s0; it is part of the operating system).  If
7329 the \s-1GOT\s0 size for the linked executable exceeds a machine-specific
7330 maximum size, you get an error message from the linker indicating that
7331 \&\fB\-fpic\fR does not work; in that case, recompile with \fB\-fPIC\fR
7332 instead.  (These maximums are 16k on the m88k, 8k on the Sparc, and 32k
7333 on the m68k and \s-1RS/6000\s0.  The 386 has no such limit.)
7335 Position-independent code requires special support, and therefore works
7336 only on certain machines.  For the 386, \s-1GCC\s0 supports \s-1PIC\s0 for System V
7337 but not for the Sun 386i.  Code generated for the \s-1IBM\s0 \s-1RS/6000\s0 is always
7338 position-independent.
7339 .Ip "\fB\-fPIC\fR" 4
7340 .IX Item "-fPIC"
7341 If supported for the target machine, emit position-independent code,
7342 suitable for dynamic linking and avoiding any limit on the size of the
7343 global offset table.  This option makes a difference on the m68k, m88k,
7344 and the Sparc.
7346 Position-independent code requires special support, and therefore works
7347 only on certain machines.
7348 .Ip "\fB\-ffixed-\fR\fIreg\fR" 4
7349 .IX Item "-ffixed-reg"
7350 Treat the register named \fIreg\fR as a fixed register; generated code
7351 should never refer to it (except perhaps as a stack pointer, frame
7352 pointer or in some other fixed role).
7354 \&\fIreg\fR must be the name of a register.  The register names accepted
7355 are machine-specific and are defined in the \f(CW\*(C`REGISTER_NAMES\*(C'\fR
7356 macro in the machine description macro file.
7358 This flag does not have a negative form, because it specifies a
7359 three-way choice.
7360 .Ip "\fB\-fcall-used-\fR\fIreg\fR" 4
7361 .IX Item "-fcall-used-reg"
7362 Treat the register named \fIreg\fR as an allocable register that is
7363 clobbered by function calls.  It may be allocated for temporaries or
7364 variables that do not live across a call.  Functions compiled this way
7365 will not save and restore the register \fIreg\fR.
7367 It is an error to used this flag with the frame pointer or stack pointer.
7368 Use of this flag for other registers that have fixed pervasive roles in
7369 the machine's execution model will produce disastrous results.
7371 This flag does not have a negative form, because it specifies a
7372 three-way choice.
7373 .Ip "\fB\-fcall-saved-\fR\fIreg\fR" 4
7374 .IX Item "-fcall-saved-reg"
7375 Treat the register named \fIreg\fR as an allocable register saved by
7376 functions.  It may be allocated even for temporaries or variables that
7377 live across a call.  Functions compiled this way will save and restore
7378 the register \fIreg\fR if they use it.
7380 It is an error to used this flag with the frame pointer or stack pointer.
7381 Use of this flag for other registers that have fixed pervasive roles in
7382 the machine's execution model will produce disastrous results.
7384 A different sort of disaster will result from the use of this flag for
7385 a register in which function values may be returned.
7387 This flag does not have a negative form, because it specifies a
7388 three-way choice.
7389 .Ip "\fB\-fpack-struct\fR" 4
7390 .IX Item "-fpack-struct"
7391 Pack all structure members together without holes.  Usually you would
7392 not want to use this option, since it makes the code suboptimal, and
7393 the offsets of structure members won't agree with system libraries.
7394 .Ip "\fB\-fcheck-memory-usage\fR" 4
7395 .IX Item "-fcheck-memory-usage"
7396 Generate extra code to check each memory access.  \s-1GCC\s0 will generate
7397 code that is suitable for a detector of bad memory accesses such as
7398 \&\fIChecker\fR.
7400 Normally, you should compile all, or none, of your code with this option.
7402 If you do mix code compiled with and without this option,
7403 you must ensure that all code that has side effects
7404 and that is called by code compiled with this option
7405 is, itself, compiled with this option.
7406 If you do not, you might get erroneous messages from the detector.
7408 If you use functions from a library that have side-effects (such as
7409 \&\f(CW\*(C`read\*(C'\fR), you might not be able to recompile the library and
7410 specify this option.  In that case, you can enable the
7411 \&\fB\-fprefix-function-name\fR option, which requests \s-1GCC\s0 to encapsulate
7412 your code and make other functions look as if they were compiled with
7413 \&\fB\-fcheck-memory-usage\fR.  This is done by calling ``stubs'',
7414 which are provided by the detector.  If you cannot find or build
7415 stubs for every function you call, you might have to specify
7416 \&\fB\-fcheck-memory-usage\fR without \fB\-fprefix-function-name\fR.
7418 If you specify this option, you can not use the \f(CW\*(C`asm\*(C'\fR or
7419 \&\f(CW\*(C`_\|_asm_\|_\*(C'\fR keywords in functions with memory checking enabled.  \s-1GNU\s0
7420 \&\s-1CC\s0 cannot understand what the \f(CW\*(C`asm\*(C'\fR statement may do, and therefore
7421 cannot generate the appropriate code, so it will reject it.  However, if
7422 you specify the function attribute \f(CW\*(C`no_check_memory_usage\*(C'\fR, \s-1GNU\s0 \s-1CC\s0 will disable memory checking within a
7423 function; you may use \f(CW\*(C`asm\*(C'\fR statements inside such functions.  You
7424 may have an inline expansion of a non-checked function within a checked
7425 function; in that case \s-1GNU\s0 \s-1CC\s0 will not generate checks for the inlined
7426 function's memory accesses.
7428 If you move your \f(CW\*(C`asm\*(C'\fR statements to non-checked inline functions
7429 and they do access memory, you can add calls to the support code in your
7430 inline function, to indicate any reads, writes, or copies being done.
7431 These calls would be similar to those done in the stubs described above.
7432 .Ip "\fB\-fprefix-function-name\fR" 4
7433 .IX Item "-fprefix-function-name"
7434 Request \s-1GCC\s0 to add a prefix to the symbols generated for function names.
7435 \&\s-1GCC\s0 adds a prefix to the names of functions defined as well as
7436 functions called.  Code compiled with this option and code compiled
7437 without the option can't be linked together, unless stubs are used.
7439 If you compile the following code with \fB\-fprefix-function-name\fR
7441 .Vb 6
7442 \&        extern void bar (int);
7443 \&        void
7444 \&        foo (int a)
7445 \&        {
7446 \&          return bar (a + 5);
7447 \&        }
7449 \&\s-1GCC\s0 will compile the code as if it was written:
7451 .Vb 6
7452 \&        extern void prefix_bar (int);
7453 \&        void
7454 \&        prefix_foo (int a)
7455 \&        {
7456 \&          return prefix_bar (a + 5);
7457 \&        }
7459 This option is designed to be used with \fB\-fcheck-memory-usage\fR.
7460 .Ip "\fB\-finstrument-functions\fR" 4
7461 .IX Item "-finstrument-functions"
7462 Generate instrumentation calls for entry and exit to functions.  Just
7463 after function entry and just before function exit, the following
7464 profiling functions will be called with the address of the current
7465 function and its call site.  (On some platforms,
7466 \&\f(CW\*(C`_\|_builtin_return_address\*(C'\fR does not work beyond the current
7467 function, so the call site information may not be available to the
7468 profiling functions otherwise.)
7470 .Vb 2
7471 \&        void __cyg_profile_func_enter (void *this_fn, void *call_site);
7472 \&        void __cyg_profile_func_exit  (void *this_fn, void *call_site);
7474 The first argument is the address of the start of the current function,
7475 which may be looked up exactly in the symbol table.
7477 This instrumentation is also done for functions expanded inline in other
7478 functions.  The profiling calls will indicate where, conceptually, the
7479 inline function is entered and exited.  This means that addressable
7480 versions of such functions must be available.  If all your uses of a
7481 function are expanded inline, this may mean an additional expansion of
7482 code size.  If you use \fBextern inline\fR in your C code, an
7483 addressable version of such functions must be provided.  (This is
7484 normally the case anyways, but if you get lucky and the optimizer always
7485 expands the functions inline, you might have gotten away without
7486 providing static copies.)
7488 A function may be given the attribute \f(CW\*(C`no_instrument_function\*(C'\fR, in
7489 which case this instrumentation will not be done.  This can be used, for
7490 example, for the profiling functions listed above, high-priority
7491 interrupt routines, and any functions from which the profiling functions
7492 cannot safely be called (perhaps signal handlers, if the profiling
7493 routines generate output or allocate memory).
7494 .Ip "\fB\-fstack-check\fR" 4
7495 .IX Item "-fstack-check"
7496 Generate code to verify that you do not go beyond the boundary of the
7497 stack.  You should specify this flag if you are running in an
7498 environment with multiple threads, but only rarely need to specify it in
7499 a single-threaded environment since stack overflow is automatically
7500 detected on nearly all systems if there is only one stack.
7502 Note that this switch does not actually cause checking to be done; the
7503 operating system must do that.  The switch causes generation of code
7504 to ensure that the operating system sees the stack being extended.
7505 .Ip "\fB\-fstack-limit-register=\fR\fIreg\fR" 4
7506 .IX Item "-fstack-limit-register=reg"
7507 .PD 0
7508 .Ip "\fB\-fstack-limit-symbol=\fR\fIsym\fR" 4
7509 .IX Item "-fstack-limit-symbol=sym"
7510 .Ip "\fB\-fno-stack-limit\fR" 4
7511 .IX Item "-fno-stack-limit"
7513 Generate code to ensure that the stack does not grow beyond a certain value,
7514 either the value of a register or the address of a symbol.  If the stack
7515 would grow beyond the value, a signal is raised.  For most targets,
7516 the signal is raised before the stack overruns the boundary, so
7517 it is possible to catch the signal without taking special precautions.
7519 For instance, if the stack starts at address \fB0x80000000\fR and grows
7520 downwards you can use the flags
7521 \&\fB\-fstack-limit-symbol=_\|_stack_limit\fR
7522 \&\fB\-Wl,\-\-defsym,_\|_stack_limit=0x7ffe0000\fR which will enforce a stack
7523 limit of 128K.
7524 .Ip "\fB\-fargument-alias\fR" 4
7525 .IX Item "-fargument-alias"
7526 .PD 0
7527 .Ip "\fB\-fargument-noalias\fR" 4
7528 .IX Item "-fargument-noalias"
7529 .Ip "\fB\-fargument-noalias-global\fR" 4
7530 .IX Item "-fargument-noalias-global"
7532 Specify the possible relationships among parameters and between
7533 parameters and global data.
7535 \&\fB\-fargument-alias\fR specifies that arguments (parameters) may
7536 alias each other and may alias global storage.
7537 \&\fB\-fargument-noalias\fR specifies that arguments do not alias
7538 each other, but may alias global storage.
7539 \&\fB\-fargument-noalias-global\fR specifies that arguments do not
7540 alias each other and do not alias global storage.
7542 Each language will automatically use whatever option is required by
7543 the language standard.  You should not need to use these options yourself.
7544 .Ip "\fB\-fleading-underscore\fR" 4
7545 .IX Item "-fleading-underscore"
7546 This option and its counterpart, \-fno-leading-underscore, forcibly
7547 change the way C symbols are represented in the object file.  One use
7548 is to help link with legacy assembly code.
7550 Be warned that you should know what you are doing when invoking this
7551 option, and that not all targets provide complete support for it.
7552 .SH "ENVIRONMENT"
7553 .IX Header "ENVIRONMENT"
7554 This section describes several environment variables that affect how \s-1GCC\s0
7555 operates.  Some of them work by specifying directories or prefixes to use
7556 when searching for various kinds of files. Some are used to specify other
7557 aspects of the compilation environment.
7559 Note that you can also specify places to search using options such as
7560 \&\fB\-B\fR, \fB\-I\fR and \fB\-L\fR.  These
7561 take precedence over places specified using environment variables, which
7562 in turn take precedence over those specified by the configuration of \s-1GCC\s0.
7563 .Ip "\fB\s-1LANG\s0\fR" 4
7564 .IX Item "LANG"
7565 .PD 0
7566 .Ip "\fB\s-1LC_CTYPE\s0\fR" 4
7567 .IX Item "LC_CTYPE"
7568 .Ip "\fB\s-1LC_MESSAGES\s0\fR" 4
7569 .IX Item "LC_MESSAGES"
7570 .Ip "\fB\s-1LC_ALL\s0\fR" 4
7571 .IX Item "LC_ALL"
7573 These environment variables control the way that \s-1GCC\s0 uses
7574 localization information that allow \s-1GCC\s0 to work with different
7575 national conventions.  \s-1GCC\s0 inspects the locale categories
7576 \&\fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR if it has been configured to do
7577 so.  These locale categories can be set to any value supported by your
7578 installation.  A typical value is \fBen_UK\fR for English in the United
7579 Kingdom.
7581 The \fB\s-1LC_CTYPE\s0\fR environment variable specifies character
7582 classification.  \s-1GCC\s0 uses it to determine the character boundaries in
7583 a string; this is needed for some multibyte encodings that contain quote
7584 and escape characters that would otherwise be interpreted as a string
7585 end or escape.
7587 The \fB\s-1LC_MESSAGES\s0\fR environment variable specifies the language to
7588 use in diagnostic messages.
7590 If the \fB\s-1LC_ALL\s0\fR environment variable is set, it overrides the value
7591 of \fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR; otherwise, \fB\s-1LC_CTYPE\s0\fR
7592 and \fB\s-1LC_MESSAGES\s0\fR default to the value of the \fB\s-1LANG\s0\fR
7593 environment variable.  If none of these variables are set, \s-1GCC\s0
7594 defaults to traditional C English behavior.
7595 .Ip "\fB\s-1TMPDIR\s0\fR" 4
7596 .IX Item "TMPDIR"
7597 If \fB\s-1TMPDIR\s0\fR is set, it specifies the directory to use for temporary
7598 files.  \s-1GCC\s0 uses temporary files to hold the output of one stage of
7599 compilation which is to be used as input to the next stage: for example,
7600 the output of the preprocessor, which is the input to the compiler
7601 proper.
7602 .Ip "\fB\s-1GCC_EXEC_PREFIX\s0\fR" 4
7603 .IX Item "GCC_EXEC_PREFIX"
7604 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is set, it specifies a prefix to use in the
7605 names of the subprograms executed by the compiler.  No slash is added
7606 when this prefix is combined with the name of a subprogram, but you can
7607 specify a prefix that ends with a slash if you wish.
7609 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is not set, \s-1GNU\s0 \s-1CC\s0 will attempt to figure out
7610 an appropriate prefix to use based on the pathname it was invoked with.
7612 If \s-1GCC\s0 cannot find the subprogram using the specified prefix, it
7613 tries looking in the usual places for the subprogram.
7615 The default value of \fB\s-1GCC_EXEC_PREFIX\s0\fR is
7616 \&\fI\fIprefix\fI/lib/gcc-lib/\fR where \fIprefix\fR is the value
7617 of \f(CW\*(C`prefix\*(C'\fR when you ran the \fIconfigure\fR script.
7619 Other prefixes specified with \fB\-B\fR take precedence over this prefix.
7621 This prefix is also used for finding files such as \fIcrt0.o\fR that are
7622 used for linking.
7624 In addition, the prefix is used in an unusual way in finding the
7625 directories to search for header files.  For each of the standard
7626 directories whose name normally begins with \fB/usr/local/lib/gcc-lib\fR
7627 (more precisely, with the value of \fB\s-1GCC_INCLUDE_DIR\s0\fR), \s-1GCC\s0 tries
7628 replacing that beginning with the specified prefix to produce an
7629 alternate directory name.  Thus, with \fB\-Bfoo/\fR, \s-1GCC\s0 will search
7630 \&\fIfoo/bar\fR where it would normally search \fI/usr/local/lib/bar\fR.
7631 These alternate directories are searched first; the standard directories
7632 come next.
7633 .Ip "\fB\s-1COMPILER_PATH\s0\fR" 4
7634 .IX Item "COMPILER_PATH"
7635 The value of \fB\s-1COMPILER_PATH\s0\fR is a colon-separated list of
7636 directories, much like \fB\s-1PATH\s0\fR.  \s-1GCC\s0 tries the directories thus
7637 specified when searching for subprograms, if it can't find the
7638 subprograms using \fB\s-1GCC_EXEC_PREFIX\s0\fR.
7639 .Ip "\fB\s-1LIBRARY_PATH\s0\fR" 4
7640 .IX Item "LIBRARY_PATH"
7641 The value of \fB\s-1LIBRARY_PATH\s0\fR is a colon-separated list of
7642 directories, much like \fB\s-1PATH\s0\fR.  When configured as a native compiler,
7643 \&\s-1GCC\s0 tries the directories thus specified when searching for special
7644 linker files, if it can't find them using \fB\s-1GCC_EXEC_PREFIX\s0\fR.  Linking
7645 using \s-1GCC\s0 also uses these directories when searching for ordinary
7646 libraries for the \fB\-l\fR option (but directories specified with
7647 \&\fB\-L\fR come first).
7648 .Ip "\fBC_INCLUDE_PATH\fR" 4
7649 .IX Item "C_INCLUDE_PATH"
7650 .PD 0
7651 .Ip "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4
7652 .IX Item "CPLUS_INCLUDE_PATH"
7653 .Ip "\fB\s-1OBJC_INCLUDE_PATH\s0\fR" 4
7654 .IX Item "OBJC_INCLUDE_PATH"
7656 These environment variables pertain to particular languages.  Each
7657 variable's value is a colon-separated list of directories, much like
7658 \&\fB\s-1PATH\s0\fR.  When \s-1GCC\s0 searches for header files, it tries the
7659 directories listed in the variable for the language you are using, after
7660 the directories specified with \fB\-I\fR but before the standard header
7661 file directories.
7662 .Ip "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4
7663 .IX Item "DEPENDENCIES_OUTPUT"
7664 If this variable is set, its value specifies how to output dependencies
7665 for Make based on the header files processed by the compiler.  This
7666 output looks much like the output from the \fB\-M\fR option, but it goes to a separate file, and is
7667 in addition to the usual results of compilation.
7669 The value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, in
7670 which case the Make rules are written to that file, guessing the target
7671 name from the source file name.  Or the value can have the form
7672 \&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written to
7673 file \fIfile\fR using \fItarget\fR as the target name.
7674 .Ip "\fB\s-1LANG\s0\fR" 4
7675 .IX Item "LANG"
7676 This variable is used to pass locale information to the compiler. One way in
7677 which this information is used is to determine the character set to be used
7678 when character literals, string literals and comments are parsed in C and \*(C+.
7679 When the compiler is configured to allow multibyte characters,
7680 the following values for \fB\s-1LANG\s0\fR are recognized:
7681 .RS 4
7682 .Ip "\fBC-JIS\fR" 4
7683 .IX Item "C-JIS"
7684 Recognize \s-1JIS\s0 characters.
7685 .Ip "\fBC-SJIS\fR" 4
7686 .IX Item "C-SJIS"
7687 Recognize \s-1SJIS\s0 characters.
7688 .Ip "\fBC-EUCJP\fR" 4
7689 .IX Item "C-EUCJP"
7690 Recognize \s-1EUCJP\s0 characters.
7692 .RS 4
7694 If \fB\s-1LANG\s0\fR is not defined, or if it has some other value, then the
7695 compiler will use mblen and mbtowc as defined by the default locale to
7696 recognize and translate multibyte characters.
7698 .SH "BUGS"
7699 .IX Header "BUGS"
7700 For instructions on reporting bugs, see
7701 <\fBhttp://gcc.gnu.org/bugs.html\fR>.  Use of the \fBgccbug\fR
7702 script to report bugs is recommended.
7703 .SH "FOOTNOTES"
7704 .IX Header "FOOTNOTES"
7705 .Ip "1." 4
7706 On some systems, \fBgcc \-shared\fR
7707 needs to build supplementary stub code for constructors to work. On
7708 multi-libbed systems, \fBgcc \-shared\fR must select the correct support
7709 libraries to link against.  Failing to supply the correct flags may lead
7710 to subtle defects. Supplying them in cases where they are not necessary
7711 is innocuous.
7712 .SH "SEE ALSO"
7713 .IX Header "SEE ALSO"
7714 \&\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)
7715 and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIg77\fR, \fIas\fR,
7716 \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
7717 .SH "AUTHOR"
7718 .IX Header "AUTHOR"
7719 See the Info entry for \fIgcc\fR, or
7720 <\fBhttp://gcc.gnu.org/thanks.html\fR>, for contributors to \s-1GCC\s0.
7721 .SH "COPYRIGHT"
7722 .IX Header "COPYRIGHT"
7723 Copyright (c) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997,
7724 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
7726 Permission is granted to make and distribute verbatim copies of this
7727 manual provided the copyright notice and this permission notice are
7728 preserved on all copies.
7730 Permission is granted to copy and distribute modified versions of this
7731 manual under the conditions for verbatim copying, provided also that the
7732 entire resulting derived work is distributed under the terms of a
7733 permission notice identical to this one.
7735 Permission is granted to copy and distribute translations of this manual
7736 into another language, under the above conditions for modified versions,
7737 except that this permission notice may be included in translations
7738 approved by the Free Software Foundation instead of in the original
7739 English.