]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - usr.bin/clang/clang/clang.1
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / usr.bin / clang / clang / clang.1
1 .\" $FreeBSD$
2 .\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28)
3 .\"
4 .\" Standard preamble:
5 .\" ========================================================================
6 .de Sp \" Vertical space (when we can't use .PP)
7 .if t .sp .5v
8 .if n .sp
9 ..
10 .de Vb \" Begin verbatim text
11 .ft CW
12 .nf
13 .ne \\$1
14 ..
15 .de Ve \" End verbatim text
16 .ft R
17 .fi
18 ..
19 .\" Set up some character translations and predefined strings.  \*(-- will
20 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
21 .\" double quote, and \*(R" will give a right double quote.  \*(C+ will
22 .\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
23 .\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
24 .\" nothing in troff, for use with C<>.
25 .tr \(*W-
26 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
27 .ie n \{\
28 .    ds -- \(*W-
29 .    ds PI pi
30 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
31 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
32 .    ds L" ""
33 .    ds R" ""
34 .    ds C` ""
35 .    ds C' ""
36 'br\}
37 .el\{\
38 .    ds -- \|\(em\|
39 .    ds PI \(*p
40 .    ds L" ``
41 .    ds R" ''
42 .    ds C`
43 .    ds C'
44 'br\}
45 .\"
46 .\" Escape single quotes in literal strings from groff's Unicode transform.
47 .ie \n(.g .ds Aq \(aq
48 .el       .ds Aq '
49 .\"
50 .\" If the F register is turned on, we'll generate index entries on stderr for
51 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
52 .\" entries marked with X<> in POD.  Of course, you'll have to process the
53 .\" output yourself in some meaningful fashion.
54 .\"
55 .\" Avoid warning from groff about undefined register 'F'.
56 .de IX
57 ..
58 .nr rF 0
59 .if \n(.g .if rF .nr rF 1
60 .if (\n(rF:(\n(.g==0)) \{
61 .    if \nF \{
62 .        de IX
63 .        tm Index:\\$1\t\\n%\t"\\$2"
64 ..
65 .        if !\nF==2 \{
66 .            nr % 0
67 .            nr F 2
68 .        \}
69 .    \}
70 .\}
71 .rr rF
72 .\"
73 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
74 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
75 .    \" fudge factors for nroff and troff
76 .if n \{\
77 .    ds #H 0
78 .    ds #V .8m
79 .    ds #F .3m
80 .    ds #[ \f1
81 .    ds #] \fP
82 .\}
83 .if t \{\
84 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
85 .    ds #V .6m
86 .    ds #F 0
87 .    ds #[ \&
88 .    ds #] \&
89 .\}
90 .    \" simple accents for nroff and troff
91 .if n \{\
92 .    ds ' \&
93 .    ds ` \&
94 .    ds ^ \&
95 .    ds , \&
96 .    ds ~ ~
97 .    ds /
98 .\}
99 .if t \{\
100 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
101 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
102 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
103 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
104 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
105 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
106 .\}
107 .    \" troff and (daisy-wheel) nroff accents
108 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
109 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
110 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
111 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
112 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
113 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
114 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
115 .ds ae a\h'-(\w'a'u*4/10)'e
116 .ds Ae A\h'-(\w'A'u*4/10)'E
117 .    \" corrections for vroff
118 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
119 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
120 .    \" for low resolution devices (crt and lpr)
121 .if \n(.H>23 .if \n(.V>19 \
122 \{\
123 .    ds : e
124 .    ds 8 ss
125 .    ds o a
126 .    ds d- d\h'-1'\(ga
127 .    ds D- D\h'-1'\(hy
128 .    ds th \o'bp'
129 .    ds Th \o'LP'
130 .    ds ae ae
131 .    ds Ae AE
132 .\}
133 .rm #[ #] #H #V #F C
134 .\" ========================================================================
135 .\"
136 .IX Title "CLANG 1"
137 .TH CLANG 1 "2014-01-01" "clang 3.4" "Clang Tools Documentation"
138 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
139 .\" way too many mistakes in technical documents.
140 .if n .ad l
141 .nh
142 .SH "NAME"
143 clang \- the Clang C, C++, and Objective\-C compiler
144 .SH "SYNOPSIS"
145 .IX Header "SYNOPSIS"
146 \&\fBclang\fR [\fB\-c\fR|\fB\-S\fR|\fB\-E\fR] \fB\-std=\fR\fIstandard\fR \fB\-g\fR
147   [\fB\-O0\fR|\fB\-O1\fR|\fB\-O2\fR|\fB\-O3\fR|\fB\-Ofast\fR|\fB\-Os\fR|\fB\-Oz\fR|\fB\-O\fR|\fB\-O4\fR]
148   \fB\-W\fR\fIwarnings...\fR \fB\-pedantic\fR
149   \fB\-I\fR\fIdir...\fR \fB\-L\fR\fIdir...\fR
150   \fB\-D\fR\fImacro[=defn]\fR
151   \fB\-f\fR\fIfeature-option...\fR
152   \fB\-m\fR\fImachine-option...\fR
153   \fB\-o\fR \fIoutput-file\fR
154   \fB\-stdlib=\fR\fIlibrary\fR 
155   \fIinput-filenames\fR
156 .SH "DESCRIPTION"
157 .IX Header "DESCRIPTION"
158 \&\fBclang\fR is a C, \*(C+, and Objective-C compiler which encompasses preprocessing,
159 parsing, optimization, code generation, assembly, and linking.  Depending on
160 which high-level mode setting is passed, Clang will stop before doing a full
161 link.  While Clang is highly integrated, it is important to understand the
162 stages of compilation, to understand how to invoke it.  These stages are:
163 .IP "\fBDriver\fR" 4
164 .IX Item "Driver"
165 The \fBclang\fR executable is actually a small driver which controls the overall
166 execution of other tools such as the compiler, assembler and linker.  Typically
167 you do not need to interact with the driver, but you transparently use it to run
168 the other tools.
169 .IP "\fBPreprocessing\fR" 4
170 .IX Item "Preprocessing"
171 This stage handles tokenization of the input source file, macro expansion,
172 #include expansion and handling of other preprocessor directives.  The output of
173 this stage is typically called a \*(L".i\*(R" (for C), \*(L".ii\*(R" (for \*(C+), \*(L".mi\*(R" (for 
174 Objective-C) , or \*(L".mii\*(R" (for Objective\-\*(C+) file.
175 .IP "\fBParsing and Semantic Analysis\fR" 4
176 .IX Item "Parsing and Semantic Analysis"
177 This stage parses the input file, translating preprocessor tokens into a parse
178 tree.  Once in the form of a parser tree, it applies semantic analysis to compute
179 types for expressions as well and determine whether the code is well formed. This
180 stage is responsible for generating most of the compiler warnings as well as
181 parse errors.  The output of this stage is an \*(L"Abstract Syntax Tree\*(R" (\s-1AST\s0).
182 .IP "\fBCode Generation and Optimization\fR" 4
183 .IX Item "Code Generation and Optimization"
184 This stage translates an \s-1AST\s0 into low-level intermediate code (known as \*(L"\s-1LLVM
185 IR\*(R"\s0) and ultimately to machine code.  This phase is responsible for optimizing
186 the generated code and handling target-specific code generation.  The output of
187 this stage is typically called a \*(L".s\*(R" file or \*(L"assembly\*(R" file.
188 .Sp
189 Clang also supports the use of an integrated assembler, in which the code
190 generator produces object files directly. This avoids the overhead of generating
191 the \*(L".s\*(R" file and of calling the target assembler.
192 .IP "\fBAssembler\fR" 4
193 .IX Item "Assembler"
194 This stage runs the target assembler to translate the output of the compiler
195 into a target object file.  The output of this stage is typically called a \*(L".o\*(R"
196 file or \*(L"object\*(R" file.
197 .IP "\fBLinker\fR" 4
198 .IX Item "Linker"
199 This stage runs the target linker to merge multiple object files into an
200 executable or dynamic library.  The output of this stage is typically called an
201 \&\*(L"a.out\*(R", \*(L".dylib\*(R" or \*(L".so\*(R" file.
202 .PP
203 The Clang compiler supports a large number of options to control each of these
204 stages.  In addition to compilation of code, Clang also supports other tools:
205 .PP
206 \&\fBClang Static Analyzer\fR
207 .PP
208 The Clang Static Analyzer is a tool that scans source code to try to find bugs
209 through code analysis.  This tool uses many parts of Clang and is built into the
210 same driver.  Please see <http://clang\-analyzer.llvm.org> for more details
211 on how to use the static analyzer.
212 .SH "OPTIONS"
213 .IX Header "OPTIONS"
214 .SS "Stage Selection Options"
215 .IX Subsection "Stage Selection Options"
216 .IP "\fB\-E\fR" 4
217 .IX Item "-E"
218 Run the preprocessor stage.
219 .IP "\fB\-fsyntax\-only\fR" 4
220 .IX Item "-fsyntax-only"
221 Run the preprocessor, parser and type checking stages.
222 .IP "\fB\-S\fR" 4
223 .IX Item "-S"
224 Run the previous stages as well as \s-1LLVM\s0 generation and optimization stages and
225 target-specific code generation, producing an assembly file.
226 .IP "\fB\-c\fR" 4
227 .IX Item "-c"
228 Run all of the above, plus the assembler, generating a target \*(L".o\*(R" object file.
229 .IP "\fBno stage selection option\fR" 4
230 .IX Item "no stage selection option"
231 If no stage selection option is specified, all stages above are run, and the
232 linker is run to combine the results into an executable or shared library.
233 .SS "Language Selection and Mode Options"
234 .IX Subsection "Language Selection and Mode Options"
235 .IP "\fB\-x\fR \fIlanguage\fR" 4
236 .IX Item "-x language"
237 Treat subsequent input files as having type \fIlanguage\fR.
238 .IP "\fB\-std\fR=\fIlanguage\fR" 4
239 .IX Item "-std=language"
240 Specify the language standard to compile for.
241 .IP "\fB\-stdlib\fR=\fIlibrary\fR" 4
242 .IX Item "-stdlib=library"
243 Specify the \*(C+ standard library to use; supported options are libstdc++ and
244 libc++.
245 .IP "\fB\-ansi\fR" 4
246 .IX Item "-ansi"
247 Same as \fB\-std=c89\fR.
248 .IP "\fB\-ObjC++\fR" 4
249 .IX Item "-ObjC++"
250 Treat source input files as Objective\-\*(C+ inputs.
251 .IP "\fB\-ObjC\fR" 4
252 .IX Item "-ObjC"
253 Treat source input files as Objective-C inputs.
254 .IP "\fB\-trigraphs\fR" 4
255 .IX Item "-trigraphs"
256 Enable trigraphs.
257 .IP "\fB\-ffreestanding\fR" 4
258 .IX Item "-ffreestanding"
259 Indicate that the file should be compiled for a freestanding, not a hosted,
260 environment.
261 .IP "\fB\-fno\-builtin\fR" 4
262 .IX Item "-fno-builtin"
263 Disable special handling and optimizations of builtin functions like strlen and
264 malloc.
265 .IP "\fB\-fmath\-errno\fR" 4
266 .IX Item "-fmath-errno"
267 Indicate that math functions should be treated as updating errno.
268 .IP "\fB\-fpascal\-strings\fR" 4
269 .IX Item "-fpascal-strings"
270 Enable support for Pascal-style strings with \*(L"\epfoo\*(R".
271 .IP "\fB\-fms\-extensions\fR" 4
272 .IX Item "-fms-extensions"
273 Enable support for Microsoft extensions.
274 .IP "\fB\-fmsc\-version=\fR" 4
275 .IX Item "-fmsc-version="
276 Set _MSC_VER. Defaults to 1300 on Windows. Not set otherwise.
277 .IP "\fB\-fborland\-extensions\fR" 4
278 .IX Item "-fborland-extensions"
279 Enable support for Borland extensions.
280 .IP "\fB\-fwritable\-strings\fR" 4
281 .IX Item "-fwritable-strings"
282 Make all string literals default to writable.  This disables uniquing of
283 strings and other optimizations.
284 .IP "\fB\-flax\-vector\-conversions\fR" 4
285 .IX Item "-flax-vector-conversions"
286 Allow loose type checking rules for implicit vector conversions.
287 .IP "\fB\-fblocks\fR" 4
288 .IX Item "-fblocks"
289 Enable the \*(L"Blocks\*(R" language feature.
290 .IP "\fB\-fobjc\-gc\-only\fR" 4
291 .IX Item "-fobjc-gc-only"
292 Indicate that Objective-C code should be compiled in GC-only mode, which only
293 works when Objective-C Garbage Collection is enabled.
294 .IP "\fB\-fobjc\-gc\fR" 4
295 .IX Item "-fobjc-gc"
296 Indicate that Objective-C code should be compiled in hybrid-GC mode, which works
297 with both \s-1GC\s0 and non-GC mode.
298 .IP "\fB\-fobjc\-abi\-version\fR=\fIversion\fR" 4
299 .IX Item "-fobjc-abi-version=version"
300 Select the Objective-C \s-1ABI\s0 version to use. Available versions are 1 (legacy
301 \&\*(L"fragile\*(R" \s-1ABI\s0), 2 (non-fragile \s-1ABI 1\s0), and 3 (non-fragile \s-1ABI 2\s0).
302 .IP "\fB\-fobjc\-nonfragile\-abi\-version\fR=\fIversion\fR" 4
303 .IX Item "-fobjc-nonfragile-abi-version=version"
304 Select the Objective-C non-fragile \s-1ABI\s0 version to use by default. This will only
305 be used as the Objective-C \s-1ABI\s0 when the non-fragile \s-1ABI\s0 is enabled (either via
306 \&\-fobjc\-nonfragile\-abi, or because it is the platform default).
307 .IP "\fB\-fobjc\-nonfragile\-abi\fR" 4
308 .IX Item "-fobjc-nonfragile-abi"
309 Enable use of the Objective-C non-fragile \s-1ABI.\s0 On platforms for which this is
310 the default \s-1ABI,\s0 it can be disabled with \fB\-fno\-objc\-nonfragile\-abi\fR.
311 .SS "Target Selection Options"
312 .IX Subsection "Target Selection Options"
313 Clang fully supports cross compilation as an inherent part of its design.
314 Depending on how your version of Clang is configured, it may have support for
315 a number of cross compilers, or may only support a native target.
316 .IP "\fB\-arch\fR \fIarchitecture\fR" 4
317 .IX Item "-arch architecture"
318 Specify the architecture to build for.
319 .IP "\fB\-mmacosx\-version\-min\fR=\fIversion\fR" 4
320 .IX Item "-mmacosx-version-min=version"
321 When building for Mac \s-1OS/X,\s0 specify the minimum version supported by your
322 application.
323 .IP "\fB\-miphoneos\-version\-min\fR" 4
324 .IX Item "-miphoneos-version-min"
325 When building for iPhone \s-1OS,\s0 specify the minimum version supported by your
326 application.
327 .IP "\fB\-march\fR=\fIcpu\fR" 4
328 .IX Item "-march=cpu"
329 Specify that Clang should generate code for a specific processor family member
330 and later.  For example, if you specify \-march=i486, the compiler is allowed to
331 generate instructions that are valid on i486 and later processors, but which
332 may not exist on earlier ones.
333 .SS "Code Generation Options"
334 .IX Subsection "Code Generation Options"
335 .IP "\fB\-O0\fR \fB\-O1\fR \fB\-O2\fR \fB\-O3\fR \fB\-Ofast\fR \fB\-Os\fR \fB\-Oz\fR \fB\-O\fR \fB\-O4\fR" 4
336 .IX Item "-O0 -O1 -O2 -O3 -Ofast -Os -Oz -O -O4"
337 Specify which optimization level to use:
338 .RS 4
339 .IP "\fB\-O0\fR" 4
340 .IX Item "-O0"
341 Means \*(L"no optimization\*(R": this level compiles the fastest and
342 generates the most debuggable code.
343 .IP "\fB\-O1\fR" 4
344 .IX Item "-O1"
345 Somewhere between \fB\-O0\fR and \fB\-O2\fR.
346 .IP "\fB\-O2\fR" 4
347 .IX Item "-O2"
348 Moderate level of optimization which enables most optimizations.
349 .IP "\fB\-O3\fR" 4
350 .IX Item "-O3"
351 Like \fB\-O2\fR, except that it enables optimizations that take longer to perform
352 or that may generate larger code (in an attempt to make the program run faster).
353 .IP "\fB\-Ofast\fR" 4
354 .IX Item "-Ofast"
355 Enables all the optimizations from \fB\-O3\fR along with other aggressive
356 optimizations that may violate strict compliance with language standards.
357 .IP "\fB\-Os\fR" 4
358 .IX Item "-Os"
359 Like \fB\-O2\fR with extra optimizations to reduce code size.
360 .IP "\fB\-Oz\fR" 4
361 .IX Item "-Oz"
362 Like \fB\-Os\fR (and thus \fB\-O2\fR), but reduces code size further.
363 .IP "\fB\-O\fR" 4
364 .IX Item "-O"
365 Equivalent to \fB\-O2\fR.
366 .IP "\fB\-O4\fR and higher" 4
367 .IX Item "-O4 and higher"
368 Currently equivalent to \fB\-O3\fR
369 .RE
370 .RS 4
371 .RE
372 .IP "\fB\-g\fR" 4
373 .IX Item "-g"
374 Generate debug information.  Note that Clang debug information works best at
375 \&\fB\-O0\fR.  At higher optimization levels, only line number information is
376 currently available.
377 .IP "\fB\-fexceptions\fR" 4
378 .IX Item "-fexceptions"
379 Enable generation of unwind information, this allows exceptions to be thrown
380 through Clang compiled stack frames.  This is on by default in x86\-64.
381 .IP "\fB\-ftrapv\fR" 4
382 .IX Item "-ftrapv"
383 Generate code to catch integer overflow errors.  Signed integer overflow is
384 undefined in C, with this flag, extra code is generated to detect this and abort
385 when it happens.
386 .IP "\fB\-fvisibility\fR" 4
387 .IX Item "-fvisibility"
388 This flag sets the default visibility level.
389 .IP "\fB\-fcommon\fR" 4
390 .IX Item "-fcommon"
391 This flag specifies that variables without initializers get common linkage.  It
392 can be disabled with \fB\-fno\-common\fR.
393 .IP "\fB\-ftls\-model\fR" 4
394 .IX Item "-ftls-model"
395 Set the default thread-local storage (\s-1TLS\s0) model to use for thread-local
396 variables. Valid values are: \*(L"global-dynamic\*(R", \*(L"local-dynamic\*(R", \*(L"initial-exec\*(R"
397 and \*(L"local-exec\*(R". The default is \*(L"global-dynamic\*(R". The default model can be
398 overridden with the tls_model attribute. The compiler will try to choose a more
399 efficient model if possible.
400 .IP "\fB\-flto\fR \fB\-emit\-llvm\fR" 4
401 .IX Item "-flto -emit-llvm"
402 Generate output files in \s-1LLVM\s0 formats, suitable for link time optimization. When
403 used with \fB\-S\fR this generates \s-1LLVM\s0 intermediate language assembly files,
404 otherwise this generates \s-1LLVM\s0 bitcode format object files (which may be passed
405 to the linker depending on the stage selection options).
406 .SS "Driver Options"
407 .IX Subsection "Driver Options"
408 .IP "\fB\-###\fR" 4
409 .IX Item "-###"
410 Print the commands to run for this compilation.
411 .IP "\fB\-\-help\fR" 4
412 .IX Item "--help"
413 Display available options.
414 .IP "\fB\-Qunused\-arguments\fR" 4
415 .IX Item "-Qunused-arguments"
416 Don't emit warning for unused driver arguments.
417 .IP "\fB\-Wa,\fR\fIargs\fR" 4
418 .IX Item "-Wa,args"
419 Pass the comma separated arguments in \fIargs\fR to the assembler.
420 .IP "\fB\-Wl,\fR\fIargs\fR" 4
421 .IX Item "-Wl,args"
422 Pass the comma separated arguments in \fIargs\fR to the linker.
423 .IP "\fB\-Wp,\fR\fIargs\fR" 4
424 .IX Item "-Wp,args"
425 Pass the comma separated arguments in \fIargs\fR to the preprocessor.
426 .IP "\fB\-Xanalyzer\fR \fIarg\fR" 4
427 .IX Item "-Xanalyzer arg"
428 Pass \fIarg\fR to the static analyzer.
429 .IP "\fB\-Xassembler\fR \fIarg\fR" 4
430 .IX Item "-Xassembler arg"
431 Pass \fIarg\fR to the assembler.
432 .IP "\fB\-Xlinker\fR \fIarg\fR" 4
433 .IX Item "-Xlinker arg"
434 Pass \fIarg\fR to the linker.
435 .IP "\fB\-Xpreprocessor\fR \fIarg\fR" 4
436 .IX Item "-Xpreprocessor arg"
437 Pass \fIarg\fR to the preprocessor.
438 .IP "\fB\-o\fR \fIfile\fR" 4
439 .IX Item "-o file"
440 Write output to \fIfile\fR.
441 .IP "\fB\-print\-file\-name\fR=\fIfile\fR" 4
442 .IX Item "-print-file-name=file"
443 Print the full library path of \fIfile\fR.
444 .IP "\fB\-print\-libgcc\-file\-name\fR" 4
445 .IX Item "-print-libgcc-file-name"
446 Print the library path for \*(L"libgcc.a\*(R".
447 .IP "\fB\-print\-prog\-name\fR=\fIname\fR" 4
448 .IX Item "-print-prog-name=name"
449 Print the full program path of \fIname\fR.
450 .IP "\fB\-print\-search\-dirs\fR" 4
451 .IX Item "-print-search-dirs"
452 Print the paths used for finding libraries and programs.
453 .IP "\fB\-save\-temps\fR" 4
454 .IX Item "-save-temps"
455 Save intermediate compilation results.
456 .IP "\fB\-integrated\-as\fR \fB\-no\-integrated\-as\fR" 4
457 .IX Item "-integrated-as -no-integrated-as"
458 Used to enable and disable, respectively, the use of the integrated
459 assembler. Whether the integrated assembler is on by default is target
460 dependent.
461 .IP "\fB\-time\fR" 4
462 .IX Item "-time"
463 Time individual commands.
464 .IP "\fB\-ftime\-report\fR" 4
465 .IX Item "-ftime-report"
466 Print timing summary of each stage of compilation.
467 .IP "\fB\-v\fR" 4
468 .IX Item "-v"
469 Show commands to run and use verbose output.
470 .SS "Diagnostics Options"
471 .IX Subsection "Diagnostics Options"
472 .IP "\fB\-fshow\-column\fR \fB\-fshow\-source\-location\fR \fB\-fcaret\-diagnostics\fR \fB\-fdiagnostics\-fixit\-info\fR \fB\-fdiagnostics\-parseable\-fixits\fR \fB\-fdiagnostics\-print\-source\-range\-info\fR \fB\-fprint\-source\-range\-info\fR \fB\-fdiagnostics\-show\-option\fR \fB\-fmessage\-length\fR" 4
473 .IX Item "-fshow-column -fshow-source-location -fcaret-diagnostics -fdiagnostics-fixit-info -fdiagnostics-parseable-fixits -fdiagnostics-print-source-range-info -fprint-source-range-info -fdiagnostics-show-option -fmessage-length"
474 These options control how Clang prints out information about diagnostics (errors
475 and warnings).  Please see the Clang User's Manual for more information.
476 .SS "Preprocessor Options"
477 .IX Subsection "Preprocessor Options"
478 .IP "\fB\-D\fR\fImacroname=value\fR" 4
479 .IX Item "-Dmacroname=value"
480 Adds an implicit #define into the predefines buffer which is read before the
481 source file is preprocessed.
482 .IP "\fB\-U\fR\fImacroname\fR" 4
483 .IX Item "-Umacroname"
484 Adds an implicit #undef into the predefines buffer which is read before the
485 source file is preprocessed.
486 .IP "\fB\-include\fR \fIfilename\fR" 4
487 .IX Item "-include filename"
488 Adds an implicit #include into the predefines buffer which is read before the
489 source file is preprocessed.
490 .IP "\fB\-I\fR\fIdirectory\fR" 4
491 .IX Item "-Idirectory"
492 Add the specified directory to the search path for include files.
493 .IP "\fB\-F\fR\fIdirectory\fR" 4
494 .IX Item "-Fdirectory"
495 Add the specified directory to the search path for framework include files.
496 .IP "\fB\-nostdinc\fR" 4
497 .IX Item "-nostdinc"
498 Do not search the standard system directories or compiler builtin directories
499 for include files.
500 .IP "\fB\-nostdlibinc\fR" 4
501 .IX Item "-nostdlibinc"
502 Do not search the standard system directories for include files, but do search
503 compiler builtin include directories.
504 .IP "\fB\-nobuiltininc\fR" 4
505 .IX Item "-nobuiltininc"
506 Do not search clang's builtin directory for include files.
507 .SH "ENVIRONMENT"
508 .IX Header "ENVIRONMENT"
509 .IP "\fB\s-1TMPDIR\s0\fR, \fB\s-1TEMP\s0\fR, \fB\s-1TMP\s0\fR" 4
510 .IX Item "TMPDIR, TEMP, TMP"
511 These environment variables are checked, in order, for the location to
512 write temporary files used during the compilation process.
513 .IP "\fB\s-1CPATH\s0\fR" 4
514 .IX Item "CPATH"
515 If this environment variable is present, it is treated as a delimited
516 list of paths to be added to the default system include path list. The
517 delimiter is the platform dependent delimiter, as used in the \fI\s-1PATH\s0\fR
518 environment variable.
519 .Sp
520 Empty components in the environment variable are ignored.
521 .IP "\fBC_INCLUDE_PATH\fR, \fB\s-1OBJC_INCLUDE_PATH\s0\fR, \fB\s-1CPLUS_INCLUDE_PATH\s0\fR, \fB\s-1OBJCPLUS_INCLUDE_PATH\s0\fR" 4
522 .IX Item "C_INCLUDE_PATH, OBJC_INCLUDE_PATH, CPLUS_INCLUDE_PATH, OBJCPLUS_INCLUDE_PATH"
523 These environment variables specify additional paths, as for \s-1CPATH,\s0
524 which are only used when processing the appropriate language.
525 .IP "\fB\s-1MACOSX_DEPLOYMENT_TARGET\s0\fR" 4
526 .IX Item "MACOSX_DEPLOYMENT_TARGET"
527 If \-mmacosx\-version\-min is unspecified, the default deployment target
528 is read from this environment variable.  This option only affects darwin
529 targets.
530 .SH "BUGS"
531 .IX Header "BUGS"
532 To report bugs, please visit <http://llvm.org/bugs/>.  Most bug reports should
533 include preprocessed source files (use the \fB\-E\fR option) and the full output of 
534 the compiler, along with information to reproduce.
535 .SH "SEE ALSO"
536 .IX Header "SEE ALSO"
537 .Vb 1
538 \& as(1), ld(1)
539 .Ve
540 .SH "AUTHOR"
541 .IX Header "AUTHOR"
542 Maintained by the Clang / \s-1LLVM\s0 Team (<http://clang.llvm.org>).