]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/clang/include/clang/Driver/CC1Options.td
Import LLVM/clang from vendor stripped of docs/ test/ website/ www/ examples/
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / clang / include / clang / Driver / CC1Options.td
1 //===--- CC1Options.td - Options for clang -cc1 ---------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 //  This file defines the options accepted by clang -cc1.
11 //
12 //===----------------------------------------------------------------------===//
13
14 // Include the common option parsing interfaces.
15 include "OptParser.td"
16
17 //===----------------------------------------------------------------------===//
18 // Target Options
19 //===----------------------------------------------------------------------===//
20
21 def target_abi : Separate<"-target-abi">,
22   HelpText<"Target a particular ABI type">;
23 def target_cpu : Separate<"-target-cpu">,
24   HelpText<"Target a specific cpu type">;
25 def target_feature : Separate<"-target-feature">,
26   HelpText<"Target specific attributes">;
27 def triple : Separate<"-triple">,
28   HelpText<"Specify target triple (e.g. i686-apple-darwin9)">;
29 def triple_EQ : Joined<"-triple=">, Alias<triple>;
30
31 //===----------------------------------------------------------------------===//
32 // Analyzer Options
33 //===----------------------------------------------------------------------===//
34
35 def analysis_CFGDump : Flag<"-cfg-dump">,
36   HelpText<"Display Control-Flow Graphs">;
37 def analysis_CFGView : Flag<"-cfg-view">,
38   HelpText<"View Control-Flow Graphs using GraphViz">;
39 def analysis_DisplayLiveVariables : Flag<"-dump-live-variables">,
40   HelpText<"Print results of live variable analysis">;
41 def analysis_LLVMConventionChecker : Flag<"-analyzer-check-llvm-conventions">,
42   HelpText<"Check code for LLVM codebase conventions (domain-specific)">;
43 def analysis_SecuritySyntacticChecks : Flag<"-analyzer-check-security-syntactic">,
44   HelpText<"Perform quick security checks that require no data flow">;
45 def analysis_WarnDeadStores : Flag<"-analyzer-check-dead-stores">,
46   HelpText<"Warn about stores to dead variables">;
47 def analysis_WarnUninitVals : Flag<"-warn-uninit-values">,
48   HelpText<"Warn about uses of uninitialized variables">;
49 def analysis_WarnObjCMethSigs : Flag<"-analyzer-check-objc-methodsigs">,
50   HelpText<"Warn about Objective-C method signatures with type incompatibilities">;
51 def analysis_WarnObjCDealloc : Flag<"-analyzer-check-objc-missing-dealloc">,
52   HelpText<"Warn about Objective-C classes that lack a correct implementation of -dealloc">;
53 def analysis_WarnObjCUnusedIvars : Flag<"-analyzer-check-objc-unused-ivars">,
54   HelpText<"Warn about private ivars that are never used">;
55 def analysis_ObjCMemChecker : Flag<"-analyzer-check-objc-mem">,
56   HelpText<"Run the [Core] Foundation reference count checker">;
57 def analysis_WarnSizeofPointer : Flag<"-warn-sizeof-pointer">,
58   HelpText<"Warn about unintended use of sizeof() on pointer expressions">;
59
60 def analyzer_store : Separate<"-analyzer-store">,
61   HelpText<"Source Code Analysis - Abstract Memory Store Models">;
62 def analyzer_store_EQ : Joined<"-analyzer-store=">, Alias<analyzer_store>;
63
64 def analyzer_constraints : Separate<"-analyzer-constraints">,
65   HelpText<"Source Code Analysis - Symbolic Constraint Engines">;
66 def analyzer_constraints_EQ : Joined<"-analyzer-constraints=">,
67   Alias<analyzer_constraints>;
68
69 def analyzer_output : Separate<"-analyzer-output">,
70   HelpText<"Source Code Analysis - Output Options">;
71 def analyzer_output_EQ : Joined<"-analyzer-output=">,
72   Alias<analyzer_output>;
73
74 def analyzer_opt_analyze_headers : Flag<"-analyzer-opt-analyze-headers">,
75   HelpText<"Force the static analyzer to analyze functions defined in header files">;
76 def analyzer_opt_analyze_nested_blocks : Flag<"-analyzer-opt-analyze-nested-blocks">,
77   HelpText<"Analyze the definitions of blocks in addition to functions">;  
78 def analyzer_display_progress : Flag<"-analyzer-display-progress">,
79   HelpText<"Emit verbose output about the analyzer's progress">;
80 def analyzer_experimental_checks : Flag<"-analyzer-experimental-checks">,
81   HelpText<"Use experimental path-sensitive checks">;
82 def analyzer_experimental_internal_checks :
83   Flag<"-analyzer-experimental-internal-checks">,
84   HelpText<"Use new default path-sensitive checks currently in testing">;
85 def analyze_function : Separate<"-analyze-function">,
86   HelpText<"Run analysis on specific function">;
87 def analyze_function_EQ : Joined<"-analyze-function=">, Alias<analyze_function>;
88 def analyzer_eagerly_assume : Flag<"-analyzer-eagerly-assume">,
89   HelpText<"Eagerly assume the truth/falseness of some symbolic constraints">;
90 def analyzer_no_purge_dead : Flag<"-analyzer-no-purge-dead">,
91   HelpText<"Don't remove dead symbols, bindings, and constraints before processing a statement">;
92 def trim_egraph : Flag<"-trim-egraph">,
93   HelpText<"Only show error-related paths in the analysis graph">;
94 def analyzer_viz_egraph_graphviz : Flag<"-analyzer-viz-egraph-graphviz">,
95   HelpText<"Display exploded graph using GraphViz">;
96 def analyzer_viz_egraph_ubigraph : Flag<"-analyzer-viz-egraph-ubigraph">,
97   HelpText<"Display exploded graph using Ubigraph">;
98 def analyzer_inline_call : Flag<"-analyzer-inline-call">,
99   HelpText<"Experimental transfer function inlining callees when its definition is available.">;
100 def analyzer_max_nodes : Separate<"-analyzer-max-nodes">,
101   HelpText<"The maximum number of nodes the analyzer can generate">;
102 def analyzer_max_loop : Separate<"-analyzer-max-loop">,
103   HelpText<"The maximum number of times the analyzer will go through a loop">;
104
105 //===----------------------------------------------------------------------===//
106 // CodeGen Options
107 //===----------------------------------------------------------------------===//
108
109 def disable_llvm_optzns : Flag<"-disable-llvm-optzns">,
110   HelpText<"Don't run LLVM optimization passes">;
111 def disable_llvm_verifier : Flag<"-disable-llvm-verifier">,
112   HelpText<"Don't run the LLVM IR verifier pass">;
113 def disable_red_zone : Flag<"-disable-red-zone">,
114   HelpText<"Do not emit code that uses the red zone.">;
115 def dwarf_debug_flags : Separate<"-dwarf-debug-flags">,
116   HelpText<"The string to embed in the Dwarf debug flags record.">;
117 def g : Flag<"-g">, HelpText<"Generate source level debug information">;
118 def fcatch_undefined_behavior : Flag<"-fcatch-undefined-behavior">,
119     HelpText<"Generate runtime checks for undefined behavior.">;
120 def fno_common : Flag<"-fno-common">,
121   HelpText<"Compile common globals like normal definitions">;
122 def no_implicit_float : Flag<"-no-implicit-float">,
123   HelpText<"Don't generate implicit floating point instructions (x86-only)">;
124 def fno_merge_all_constants : Flag<"-fno-merge-all-constants">,
125   HelpText<"Disallow merging of constants.">;
126 def fno_threadsafe_statics : Flag<"-fno-threadsafe-statics">,
127   HelpText<"Do not emit code to make initialization of local statics thread safe">;
128 def fdump_vtable_layouts : Flag<"-fdump-vtable-layouts">,
129   HelpText<"Dump the layouts of all vtables that will be emitted in a translation unit">;
130 def ffunction_sections : Flag<"-ffunction-sections">,
131   HelpText<"Place each function in its own section (ELF Only)">;
132 def fdata_sections : Flag<"-fdata-sections">,
133   HelpText<"Place each data in its own section (ELF Only)">;
134 def masm_verbose : Flag<"-masm-verbose">,
135   HelpText<"Generate verbose assembly output">;
136 def mcode_model : Separate<"-mcode-model">,
137   HelpText<"The code model to use">;
138 def mdebug_pass : Separate<"-mdebug-pass">,
139   HelpText<"Enable additional debug output">;
140 def mdisable_fp_elim : Flag<"-mdisable-fp-elim">,
141   HelpText<"Disable frame pointer elimination optimization">;
142 def mfloat_abi : Separate<"-mfloat-abi">,
143   HelpText<"The float ABI to use">;
144 def mlimit_float_precision : Separate<"-mlimit-float-precision">,
145   HelpText<"Limit float precision to the given value">;
146 def mno_zero_initialized_in_bss : Flag<"-mno-zero-initialized-in-bss">,
147   HelpText<"Do not put zero initialized data in the BSS">;
148 def msoft_float : Flag<"-msoft-float">,
149   HelpText<"Use software floating point">;
150 def mrelax_all : Flag<"-mrelax-all">,
151   HelpText<"Relax all machine instructions">;
152 def mrelocation_model : Separate<"-mrelocation-model">,
153   HelpText<"The relocation model to use">;
154 def munwind_tables : Flag<"-munwind-tables">,
155   HelpText<"Generate unwinding tables for all functions">;
156 def mconstructor_aliases : Flag<"-mconstructor-aliases">,
157   HelpText<"Emit complete constructors and destructors as aliases when possible">;
158 def O : Joined<"-O">, HelpText<"Optimization level">;
159 def Os : Flag<"-Os">, HelpText<"Optimize for size">;
160
161 //===----------------------------------------------------------------------===//
162 // Dependency Output Options
163 //===----------------------------------------------------------------------===//
164
165 def dependency_file : Separate<"-dependency-file">,
166   HelpText<"Filename (or -) to write dependency output to">;
167 def sys_header_deps : Flag<"-sys-header-deps">,
168   HelpText<"Include system headers in dependency output">;
169 def MQ : Separate<"-MQ">, HelpText<"Specify target to quote for dependency">;
170 def MT : Separate<"-MT">, HelpText<"Specify target for dependency">;
171 def MP : Flag<"-MP">,
172   HelpText<"Create phony target for each dependency (other than main file)">;
173
174 //===----------------------------------------------------------------------===//
175 // Diagnostic Options
176 //===----------------------------------------------------------------------===//
177
178 def dump_build_information : Separate<"-dump-build-information">,
179   MetaVarName<"<filename>">,
180   HelpText<"output a dump of some build information to a file">;
181 def fno_show_column : Flag<"-fno-show-column">,
182   HelpText<"Do not include column number on diagnostics">;
183 def fno_show_source_location : Flag<"-fno-show-source-location">,
184   HelpText<"Do not include source location information with diagnostics">;
185 def fno_caret_diagnostics : Flag<"-fno-caret-diagnostics">,
186   HelpText<"Do not include source line and caret with diagnostics">;
187 def fno_diagnostics_fixit_info : Flag<"-fno-diagnostics-fixit-info">,
188   HelpText<"Do not include fixit information in diagnostics">;
189 def fdiagnostics_binary : Flag<"-fdiagnostics-binary">;
190 def w : Flag<"-w">, HelpText<"Suppress all warnings">;
191 def pedantic : Flag<"-pedantic">;
192 def pedantic_errors : Flag<"-pedantic-errors">;
193
194 // This gets all -W options, including -Werror, -W[no-]system-headers, etc.  The
195 // driver has stripped off -Wa,foo etc.  The driver has also translated -W to
196 // -Wextra, so we don't need to worry about it.
197 def W : Joined<"-W">;
198
199 def fdiagnostics_print_source_range_info : Flag<"-fdiagnostics-print-source-range-info">,
200   HelpText<"Print source range spans in numeric form">;
201 def fdiagnostics_show_option : Flag<"-fdiagnostics-show-option">,
202   HelpText<"Print diagnostic name with mappable diagnostics">;
203 def fdiagnostics_show_category : Separate<"-fdiagnostics-show-category">,
204   HelpText<"Print diagnostic category">;
205   
206 def ftabstop : Separate<"-ftabstop">, MetaVarName<"<N>">,
207   HelpText<"Set the tab stop distance.">;
208 def ferror_limit : Separate<"-ferror-limit">, MetaVarName<"<N>">,
209   HelpText<"Set the maximum number of errors to emit before stopping (0 = no limit).">;
210 def fmacro_backtrace_limit : Separate<"-fmacro-backtrace-limit">, MetaVarName<"<N>">,
211   HelpText<"Set the maximum number of entries to print in a macro instantiation backtrace (0 = no limit).">;
212 def ftemplate_backtrace_limit : Separate<"-ftemplate-backtrace-limit">, MetaVarName<"<N>">,
213   HelpText<"Set the maximum number of entries to print in a template instantiation backtrace (0 = no limit).">;
214 def fmessage_length : Separate<"-fmessage-length">, MetaVarName<"<N>">,
215   HelpText<"Format message diagnostics so that they fit within N columns or fewer, when possible.">;
216 def fcolor_diagnostics : Flag<"-fcolor-diagnostics">,
217   HelpText<"Use colors in diagnostics">;
218 def Wno_rewrite_macros : Flag<"-Wno-rewrite-macros">,
219   HelpText<"Silence ObjC rewriting warnings">;
220 def Wwrite_strings : Flag<"-Wwrite-strings">,
221   HelpText<"Add const qualifier to string literals">;
222 def verify : Flag<"-verify">,
223   HelpText<"Verify emitted diagnostics and warnings">;
224
225 //===----------------------------------------------------------------------===//
226 // Frontend Options
227 //===----------------------------------------------------------------------===//
228
229 // This isn't normally used, it is just here so we can parse a
230 // CompilerInvocation out of a driver-derived argument vector.
231 def cc1 : Flag<"-cc1">;
232
233 def ast_merge : Separate<"-ast-merge">,
234   MetaVarName<"<ast file>">,
235   HelpText<"Merge the given AST file into the translation unit being compiled.">;
236 def code_completion_at : Separate<"-code-completion-at">,
237   MetaVarName<"<file>:<line>:<column>">,
238   HelpText<"Dump code-completion information at a location">;
239 def remap_file : Separate<"-remap-file">,
240   MetaVarName<"<from>;<to>">,
241   HelpText<"Replace the contents of the <from> file with the contents of the <to> file">;
242 def code_completion_at_EQ : Joined<"-code-completion-at=">,
243   Alias<code_completion_at>;
244 def no_code_completion_debug_printer : Flag<"-no-code-completion-debug-printer">,
245   HelpText<"Don't use the \"debug\" code-completion print">;
246 def code_completion_macros : Flag<"-code-completion-macros">,
247   HelpText<"Include macros in code-completion results">;
248 def code_completion_patterns : Flag<"-code-completion-patterns">,
249   HelpText<"Include code patterns in code-completion results">;
250 def disable_free : Flag<"-disable-free">,
251   HelpText<"Disable freeing of memory on exit">;
252 def help : Flag<"-help">,
253   HelpText<"Print this help text">;
254 def _help : Flag<"--help">, Alias<help>;
255 def x : Separate<"-x">, HelpText<"Input language type">;
256 def cxx_inheritance_view : Separate<"-cxx-inheritance-view">,
257   MetaVarName<"<class name>">,
258   HelpText<"View C++ inheritance for a specified class">;
259 def o : Separate<"-o">, MetaVarName<"<path>">, HelpText<"Specify output file">;
260 def load : Separate<"-load">, MetaVarName<"<dsopath>">,
261   HelpText<"Load the named plugin (dynamic shared object)">;
262 def plugin : Separate<"-plugin">,
263   HelpText<"Use the named plugin action (use \"help\" to list available options)">;
264 def resource_dir : Separate<"-resource-dir">,
265   HelpText<"The directory which holds the compiler resource files">;
266 def version : Flag<"-version">,
267   HelpText<"Print the compiler version">;
268 def _version : Flag<"--version">, Alias<version>;
269
270 def Action_Group : OptionGroup<"<action group>">;
271 let Group = Action_Group in {
272
273 def Eonly : Flag<"-Eonly">,
274   HelpText<"Just run preprocessor, no output (for timings)">;
275 def E : Flag<"-E">,
276   HelpText<"Run preprocessor, emit preprocessed file">;
277 def dump_raw_tokens : Flag<"-dump-raw-tokens">,
278   HelpText<"Lex file in raw mode and dump raw tokens">;
279 def analyze : Flag<"-analyze">,
280   HelpText<"Run static analysis engine">;
281 def dump_tokens : Flag<"-dump-tokens">,
282   HelpText<"Run preprocessor, dump internal rep of tokens">;
283 def init_only : Flag<"-init-only">,
284   HelpText<"Only execute frontend initialization">;
285 def parse_noop : Flag<"-parse-noop">,
286   HelpText<"Run parser with noop callbacks (for timings)">;
287 def fsyntax_only : Flag<"-fsyntax-only">,
288   HelpText<"Run parser and perform semantic analysis">;
289 def fixit : Flag<"-fixit">,
290   HelpText<"Apply fix-it advice to the input source">;
291 def fixit_EQ : Joined<"-fixit=">,
292   HelpText<"Apply fix-it advice creating a file with the given suffix">;
293 def parse_print_callbacks : Flag<"-parse-print-callbacks">,
294   HelpText<"Run parser and print each callback invoked">;
295 def emit_html : Flag<"-emit-html">,
296   HelpText<"Output input source as HTML">;
297 def ast_print : Flag<"-ast-print">,
298   HelpText<"Build ASTs and then pretty-print them">;
299 def ast_print_xml : Flag<"-ast-print-xml">,
300   HelpText<"Build ASTs and then print them in XML format">;
301 def ast_dump : Flag<"-ast-dump">,
302   HelpText<"Build ASTs and then debug dump them">;
303 def ast_view : Flag<"-ast-view">,
304   HelpText<"Build ASTs and view them with GraphViz">;
305 def boostcon : Flag<"-boostcon">,
306   HelpText<"BoostCon workshop mode">;
307 def print_decl_contexts : Flag<"-print-decl-contexts">,
308   HelpText<"Print DeclContexts and their Decls">;
309 def emit_pth : Flag<"-emit-pth">,
310   HelpText<"Generate pre-tokenized header file">;
311 def emit_pch : Flag<"-emit-pch">,
312   HelpText<"Generate pre-compiled header file">;
313 def S : Flag<"-S">,
314   HelpText<"Emit native assembly code">;
315 def emit_llvm : Flag<"-emit-llvm">,
316   HelpText<"Build ASTs then convert to LLVM, emit .ll file">;
317 def emit_llvm_bc : Flag<"-emit-llvm-bc">,
318   HelpText<"Build ASTs then convert to LLVM, emit .bc file">;
319 def emit_llvm_only : Flag<"-emit-llvm-only">,
320   HelpText<"Build ASTs and convert to LLVM, discarding output">;
321 def emit_codegen_only : Flag<"-emit-codegen-only">,
322   HelpText<"Generate machine code, but discard output">;
323 def emit_obj : Flag<"-emit-obj">,
324   HelpText<"Emit native object files">;
325 def rewrite_test : Flag<"-rewrite-test">,
326   HelpText<"Rewriter playground">;
327 def rewrite_objc : Flag<"-rewrite-objc">,
328   HelpText<"Rewrite ObjC into C (code rewriter example)">;
329 def rewrite_macros : Flag<"-rewrite-macros">,
330   HelpText<"Expand macros without full preprocessing">;
331
332 }
333
334 def relocatable_pch : Flag<"-relocatable-pch">,
335   HelpText<"Whether to build a relocatable precompiled header">;
336 def print_stats : Flag<"-print-stats">,
337   HelpText<"Print performance metrics and statistics">;
338 def ftime_report : Flag<"-ftime-report">,
339   HelpText<"Print the amount of time each phase of compilation takes">;
340
341 def fdump_record_layouts : Flag<"-fdump-record-layouts">,
342   HelpText<"Dump record layout information">;
343
344 // Generic forwarding to LLVM options. This should only be used for debugging
345 // and experimental features.
346 def mllvm : Separate<"-mllvm">,
347   HelpText<"Additional arguments to forward to LLVM's option processing">;
348
349 //===----------------------------------------------------------------------===//
350 // Language Options
351 //===----------------------------------------------------------------------===//
352
353 def fno_builtin : Flag<"-fno-builtin">,
354   HelpText<"Disable implicit builtin knowledge of functions">;
355 def faltivec : Flag<"-faltivec">,
356   HelpText<"Enable AltiVec vector initializer syntax">;
357 def fno_access_control : Flag<"-fno-access-control">,
358   HelpText<"Disable C++ access control">;
359 def fno_assume_sane_operator_new : Flag<"-fno-assume-sane-operator-new">,
360   HelpText<"Don't assume that C++'s global operator new can't alias any pointer">;
361 def fgnu_keywords : Flag<"-fgnu-keywords">,
362   HelpText<"Allow GNU-extension keywords regardless of language standard">;
363 def fno_gnu_keywords : Flag<"-fno-gnu-keywords">,
364   HelpText<"Disallow GNU-extension keywords regardless of language standard">;
365 def fdollars_in_identifiers : Flag<"-fdollars-in-identifiers">,
366   HelpText<"Allow '$' in identifiers">;
367 def fno_dollars_in_identifiers : Flag<"-fno-dollars-in-identifiers">,
368   HelpText<"Disallow '$' in identifiers">;
369 def femit_all_decls : Flag<"-femit-all-decls">,
370   HelpText<"Emit all declarations, even if unused">;
371 def fblocks : Flag<"-fblocks">,
372   HelpText<"enable the 'blocks' language feature">;
373 def fheinous_gnu_extensions : Flag<"-fheinous-gnu-extensions">;  
374 def fexceptions : Flag<"-fexceptions">,
375   HelpText<"Enable support for exception handling">;
376 def fsjlj_exceptions : Flag<"-fsjlj-exceptions">,
377   HelpText<"Use SjLj style exceptions">;
378 def ffreestanding : Flag<"-ffreestanding">,
379   HelpText<"Assert that the compilation takes place in a freestanding environment">;
380 def fgnu_runtime : Flag<"-fgnu-runtime">,
381   HelpText<"Generate output compatible with the standard GNU Objective-C runtime">;
382 def std_EQ : Joined<"-std=">,
383   HelpText<"Language standard to compile for">;
384 def fmath_errno : Flag<"-fmath-errno">,
385   HelpText<"Require math functions to indicate errors by setting errno">;
386 def fms_extensions : Flag<"-fms-extensions">,
387   HelpText<"Accept some non-standard constructs used in Microsoft header files ">;
388 def main_file_name : Separate<"-main-file-name">,
389   HelpText<"Main file name to use for debug info">;
390 def fno_elide_constructors : Flag<"-fno-elide-constructors">,
391   HelpText<"Disable C++ copy constructor elision">;
392 def fno_lax_vector_conversions : Flag<"-fno-lax-vector-conversions">,
393   HelpText<"Disallow implicit conversions between vectors with a different number of elements or different element types">;
394 def fno_operator_names : Flag<"-fno-operator-names">,
395   HelpText<"Do not treat C++ operator name keywords as synonyms for operators">;
396 def fno_signed_char : Flag<"-fno-signed-char">,
397   HelpText<"Char is unsigned">;
398 def fno_use_cxa_atexit : Flag<"-fno-use-cxa-atexit">,
399   HelpText<"Don't use __cxa_atexit for calling destructors">;
400 def fconstant_string_class : Separate<"-fconstant-string-class">,
401   MetaVarName<"<class name>">,
402   HelpText<"Specify the class to use for constant Objective-C string objects.">;
403 def fno_constant_cfstrings : Flag<"-fno-constant-cfstrings">,
404   HelpText<"Enable creation of CodeFoundation-type constant strings">;
405 def fobjc_gc : Flag<"-fobjc-gc">,
406   HelpText<"Enable Objective-C garbage collection">;
407 def fobjc_gc_only : Flag<"-fobjc-gc-only">,
408   HelpText<"Use GC exclusively for Objective-C related memory management">;
409 def fobjc_dispatch_method_EQ : Joined<"-fobjc-dispatch-method=">,
410   HelpText<"Objective-C dispatch method to use">;
411 def print_ivar_layout : Flag<"-print-ivar-layout">,
412   HelpText<"Enable Objective-C Ivar layout bitmap print trace">;
413 def fobjc_nonfragile_abi : Flag<"-fobjc-nonfragile-abi">,
414   HelpText<"enable objective-c's nonfragile abi">;
415 def fobjc_nonfragile_abi2 : Flag<"-fobjc-nonfragile-abi2">,
416   HelpText<"enable objective-c's enhanced nonfragile abi">;
417 def ftrapv : Flag<"-ftrapv">,
418   HelpText<"Trap on integer overflow">;
419 def pic_level : Separate<"-pic-level">,
420   HelpText<"Value for __PIC__">;
421 def pthread : Flag<"-pthread">,
422   HelpText<"Support POSIX threads in generated code">;
423 def fpascal_strings : Flag<"-fpascal-strings">,
424   HelpText<"Recognize and construct Pascal-style string literals">;
425 def fno_rtti : Flag<"-fno-rtti">,
426   HelpText<"Disable generation of rtti information">;
427 def fshort_wchar : Flag<"-fshort-wchar">,
428   HelpText<"Force wchar_t to be a short unsigned int">;
429 def static_define : Flag<"-static-define">,
430   HelpText<"Should __STATIC__ be defined">;
431 def stack_protector : Separate<"-stack-protector">,
432   HelpText<"Enable stack protectors">;
433 def fvisibility : Separate<"-fvisibility">,
434   HelpText<"Default symbol visibility">;
435 def ftemplate_depth : Separate<"-ftemplate-depth">,
436   HelpText<"Maximum depth of recursive template instantiation">;
437 def trigraphs : Flag<"-trigraphs">,
438   HelpText<"Process trigraph sequences">;
439 def fwritable_strings : Flag<"-fwritable-strings">,
440   HelpText<"Store string literals as writable data">;
441 def fno_bitfield_type_align : Flag<"-fno-bitfield-type-align">,
442   HelpText<"Ignore bit-field types when aligning structures">;
443
444 //===----------------------------------------------------------------------===//
445 // Header Search Options
446 //===----------------------------------------------------------------------===//
447
448 def nostdinc : Flag<"-nostdinc">,
449   HelpText<"Disable standard #include directories">;
450 def nostdincxx : Flag<"-nostdinc++">,
451   HelpText<"Disable standard #include directories for the C++ standard library">;
452 def nobuiltininc : Flag<"-nobuiltininc">,
453   HelpText<"Disable builtin #include directories">;
454 def F : JoinedOrSeparate<"-F">, MetaVarName<"<directory>">,
455   HelpText<"Add directory to framework include search path">;
456 def I : JoinedOrSeparate<"-I">, MetaVarName<"<directory>">,
457   HelpText<"Add directory to include search path">;
458 def idirafter : JoinedOrSeparate<"-idirafter">, MetaVarName<"<directory>">,
459   HelpText<"Add directory to AFTER include search path">;
460 def iquote : JoinedOrSeparate<"-iquote">, MetaVarName<"<directory>">,
461   HelpText<"Add directory to QUOTE include search path">;
462 def isystem : JoinedOrSeparate<"-isystem">, MetaVarName<"<directory>">,
463   HelpText<"Add directory to SYSTEM include search path">;
464 def iprefix : JoinedOrSeparate<"-iprefix">, MetaVarName<"<prefix>">,
465   HelpText<"Set the -iwithprefix/-iwithprefixbefore prefix">;
466 def iwithprefix : JoinedOrSeparate<"-iwithprefix">, MetaVarName<"<dir>">,
467   HelpText<"Set directory to SYSTEM include search path with prefix">;
468 def iwithprefixbefore : JoinedOrSeparate<"-iwithprefixbefore">,
469   MetaVarName<"<dir>">,
470   HelpText<"Set directory to include search path with prefix">;
471 def isysroot : JoinedOrSeparate<"-isysroot">, MetaVarName<"<dir>">,
472   HelpText<"Set the system root directory (usually /)">;
473 def v : Flag<"-v">, HelpText<"Enable verbose output">;
474
475 //===----------------------------------------------------------------------===//
476 // Preprocessor Options
477 //===----------------------------------------------------------------------===//
478
479 def D : JoinedOrSeparate<"-D">, MetaVarName<"<macro>">,
480   HelpText<"Predefine the specified macro">;
481 def include_ : JoinedOrSeparate<"-include">, MetaVarName<"<file>">, EnumName<"include">,
482   HelpText<"Include file before parsing">;
483 def imacros : JoinedOrSeparate<"-imacros">, MetaVarName<"<file>">,
484   HelpText<"Include macros from file before parsing">;
485 def include_pch : Separate<"-include-pch">, MetaVarName<"<file>">,
486   HelpText<"Include precompiled header file">;
487 def include_pth : Separate<"-include-pth">, MetaVarName<"<file>">,
488   HelpText<"Include file before parsing">;
489 def token_cache : Separate<"-token-cache">, MetaVarName<"<path>">,
490   HelpText<"Use specified token cache file">;
491 def U : JoinedOrSeparate<"-U">, MetaVarName<"<macro>">,
492   HelpText<"Undefine the specified macro">;
493 def undef : Flag<"-undef">, MetaVarName<"<macro>">,
494   HelpText<"undef all system defines">;
495 def detailed_preprocessing_record : Flag<"-detailed-preprocessing-record">,
496   HelpText<"include a detailed record of preprocessing actions">;
497   
498 //===----------------------------------------------------------------------===//
499 // Preprocessed Output Options
500 //===----------------------------------------------------------------------===//
501
502 def P : Flag<"-P">,
503   HelpText<"Disable linemarker output in -E mode">;
504 def C : Flag<"-C">,
505   HelpText<"Enable comment output in -E mode">;
506 def CC : Flag<"-CC">,
507   HelpText<"Enable comment output in -E mode, even from macro expansions">;
508 def dM : Flag<"-dM">,
509   HelpText<"Print macro definitions in -E mode instead of normal output">;
510 def dD : Flag<"-dD">,
511   HelpText<"Print macro definitions in -E mode in addition to normal output">;