]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - contrib/llvm/tools/clang/include/clang/Driver/Options.td
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.git] / contrib / llvm / tools / clang / include / clang / Driver / Options.td
1 //===--- DriverOptions.td - Options for clang -----------------------------===//
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.
11 //
12 //===----------------------------------------------------------------------===//
13
14 // Include the common option parsing interfaces.
15 include "OptParser.td"
16
17 /////////
18 // Groups
19
20 // Meta-group which defines
21 def CompileOnly_Group     : OptionGroup<"<CompileOnly group>">;
22
23 def I_Group               : OptionGroup<"<I group>">, Group<CompileOnly_Group>;
24 def M_Group               : OptionGroup<"<M group>">, Group<CompileOnly_Group>;
25 def T_Group               : OptionGroup<"<T group>">;
26 def O_Group               : OptionGroup<"<O group>">, Group<CompileOnly_Group>;
27 def W_Group               : OptionGroup<"<W group>">, Group<CompileOnly_Group>;
28 def X_Group               : OptionGroup<"<X group>">;
29 def a_Group               : OptionGroup<"<a group>">;
30 def d_Group               : OptionGroup<"<d group>">;
31 def f_Group               : OptionGroup<"<f group>">, Group<CompileOnly_Group>;
32 def f_clang_Group         : OptionGroup<"<f (clang-only) group>">, Group<CompileOnly_Group>;
33 def g_Group               : OptionGroup<"<g group>">;
34 def i_Group               : OptionGroup<"<i group>">, Group<CompileOnly_Group>;
35 def clang_i_Group         : OptionGroup<"<clang i group>">, Group<i_Group>;
36 def m_Group               : OptionGroup<"<m group>">, Group<CompileOnly_Group>;
37 def m_x86_Features_Group  : OptionGroup<"<m x86 features group>">, Group<m_Group>;
38 def u_Group               : OptionGroup<"<u group>">;
39
40 def pedantic_Group        : OptionGroup<"<pedantic group>">,
41   Group<CompileOnly_Group>;
42 def reserved_lib_Group   : OptionGroup<"<reserved libs group>">;
43
44 // Temporary groups for clang options which we know we don't support,
45 // but don't want to verbosely warn the user about.
46 def clang_ignored_f_Group : OptionGroup<"<clang ignored f group>">,
47   Group<f_Group>;
48 def clang_ignored_m_Group : OptionGroup<"<clang ignored m group>">,
49   Group<m_Group>;
50
51 /////////
52 // Options
53
54 // The internal option ID must be a valid C++ identifier and results in a
55 // clang::driver::options::OPT_XX enum constant for XX.
56 //
57 // We want to unambiguously be able to refer to options from the driver source
58 // code, for this reason the option name is mangled into an ID. This mangling
59 // isn't guaranteed to have an inverse, but for practical purposes it does.
60 //
61 // The mangling scheme is to ignore the leading '-', and perform the following
62 // substitutions:
63 //   _ => __
64 //   - => _
65 //   # => _HASH
66 //   , => _COMMA
67 //   = => _EQ
68 //   C++ => CXX
69 //   . => _
70
71 // Developer Driver Options
72
73 def ccc_Group : OptionGroup<"<clang internal options>">;
74 def ccc_driver_Group : OptionGroup<"<clang driver internal options>">,
75   Group<ccc_Group>, HelpText<"DRIVER OPTIONS">;
76 def ccc_debug_Group : OptionGroup<"<clang debug/development internal options>">,
77   Group<ccc_Group>, HelpText<"DEBUG/DEVELOPMENT OPTIONS">;
78
79 class CCCDriverOpt : Group<ccc_driver_Group>, Flags<[DriverOption, HelpHidden]>;
80 def ccc_cxx : Flag<"-ccc-cxx">, CCCDriverOpt,
81   HelpText<"Act as a C++ driver">;
82 def ccc_echo : Flag<"-ccc-echo">, CCCDriverOpt,
83   HelpText<"Echo commands before running them">;
84 def ccc_gcc_name : Separate<"-ccc-gcc-name">, CCCDriverOpt,
85   HelpText<"Name for native GCC compiler">,
86   MetaVarName<"<gcc-path>">;
87 def ccc_clang_cxx : Flag<"-ccc-clang-cxx">, CCCDriverOpt,
88   HelpText<"Enable the clang compiler for C++">;
89 def ccc_no_clang_cxx : Flag<"-ccc-no-clang-cxx">, CCCDriverOpt,
90   HelpText<"Disable the clang compiler for C++">;
91 def ccc_no_clang : Flag<"-ccc-no-clang">, CCCDriverOpt,
92   HelpText<"Disable the clang compiler">;
93 def ccc_no_clang_cpp : Flag<"-ccc-no-clang-cpp">, CCCDriverOpt,
94   HelpText<"Disable the clang preprocessor">;
95 def ccc_clang_archs : Separate<"-ccc-clang-archs">, CCCDriverOpt,
96   HelpText<"Comma separate list of architectures to use the clang compiler for">,
97   MetaVarName<"<arch-list>">;
98 def ccc_pch_is_pch : Flag<"-ccc-pch-is-pch">, CCCDriverOpt,
99   HelpText<"Use lazy PCH for precompiled headers">;
100 def ccc_pch_is_pth : Flag<"-ccc-pch-is-pth">, CCCDriverOpt,
101   HelpText<"Use pretokenized headers for precompiled headers">;
102
103 class CCCDebugOpt : Group<ccc_debug_Group>, Flags<[DriverOption, HelpHidden]>;
104 def ccc_host_triple : Separate<"-ccc-host-triple">, CCCDebugOpt,
105   HelpText<"Simulate running on the given target">;
106 def ccc_install_dir : Separate<"-ccc-install-dir">, CCCDebugOpt,
107   HelpText<"Simulate installation in the given directory">;
108 def ccc_print_options : Flag<"-ccc-print-options">, CCCDebugOpt,
109   HelpText<"Dump parsed command line arguments">;
110 def ccc_print_phases : Flag<"-ccc-print-phases">, CCCDebugOpt,
111   HelpText<"Dump list of actions to perform">;
112 def ccc_print_bindings : Flag<"-ccc-print-bindings">, CCCDebugOpt,
113   HelpText<"Show bindings of tools to actions">;
114
115 def ccc_arcmt_check : Flag<"-ccc-arcmt-check">, CCCDriverOpt,
116   HelpText<"Check for ARC migration issues that need manual handling">;
117 def ccc_arcmt_modify : Flag<"-ccc-arcmt-modify">, CCCDriverOpt,
118   HelpText<"Apply modifications to files to conform to ARC">;
119 def ccc_arrmt_check : Flag<"-ccc-arrmt-check">, Alias<ccc_arcmt_check>;
120 def ccc_arrmt_modify : Flag<"-ccc-arrmt-modify">, Alias<ccc_arcmt_modify>;
121 def ccc_arcmt_migrate : Separate<"-ccc-arcmt-migrate">, CCCDriverOpt,
122   HelpText<"Apply modifications and produces temporary files that conform to ARC">;
123 def ccc_arcmt_migrate_EQ : Joined<"-ccc-arcmt-migrate=">, CCCDriverOpt,
124   Alias<ccc_arcmt_migrate>;
125 def arcmt_migrate_report_output : Separate<"-arcmt-migrate-report-output">,
126   HelpText<"Output path for the plist report">;
127 def arcmt_migrate_emit_arc_errors : Flag<"-arcmt-migrate-emit-errors">,
128   HelpText<"Emit ARC errors even if the migrator can fix them">;
129
130 // Make sure all other -ccc- options are rejected.
131 def ccc_ : Joined<"-ccc-">, Group<ccc_Group>, Flags<[Unsupported]>;
132
133 // Standard Options
134
135 def _HASH_HASH_HASH : Flag<"-###">, Flags<[DriverOption]>,
136     HelpText<"Print the commands to run for this compilation">;
137 // The '--' option is here for the sake of compatibility with gcc, but is 
138 // being ignored by the driver.
139 def _DASH_DASH : Flag<"--">, Flags<[DriverOption]>;
140 def A : JoinedOrSeparate<"-A">;
141 def B : JoinedOrSeparate<"-B">;
142 def CC : Flag<"-CC">;
143 def C : Flag<"-C">;
144 def D : JoinedOrSeparate<"-D">, Group<CompileOnly_Group>;
145 def E : Flag<"-E">, Flags<[DriverOption]>,
146   HelpText<"Only run the preprocessor">;
147 def F : JoinedOrSeparate<"-F">, Flags<[RenderJoined]>;
148 def H : Flag<"-H">;
149 def I_ : Flag<"-I-">, Group<I_Group>;
150 def I : JoinedOrSeparate<"-I">, Group<I_Group>;
151 def L : JoinedOrSeparate<"-L">, Flags<[RenderJoined]>;
152 def MD : Flag<"-MD">, Group<M_Group>;
153 def MF : JoinedOrSeparate<"-MF">, Group<M_Group>;
154 def MG : Flag<"-MG">, Group<M_Group>;
155 def MMD : Flag<"-MMD">, Group<M_Group>;
156 def MM : Flag<"-MM">, Group<M_Group>;
157 def MP : Flag<"-MP">, Group<M_Group>;
158 def MQ : JoinedOrSeparate<"-MQ">, Group<M_Group>;
159 def MT : JoinedOrSeparate<"-MT">, Group<M_Group>;
160 def Mach : Flag<"-Mach">;
161 def M : Flag<"-M">, Group<M_Group>;
162 def O0 : Joined<"-O0">, Group<O_Group>;
163 def O4 : Joined<"-O4">, Group<O_Group>;
164 def ObjCXX : Flag<"-ObjC++">, Flags<[DriverOption]>,
165   HelpText<"Treat source input files as Objective-C++ inputs">;
166 def ObjC : Flag<"-ObjC">, Flags<[DriverOption]>,
167   HelpText<"Treat source input files as Objective-C inputs">;
168 def O : Joined<"-O">, Group<O_Group>;
169 def P : Flag<"-P">;
170 def Qn : Flag<"-Qn">;
171 def Qunused_arguments : Flag<"-Qunused-arguments">, Flags<[DriverOption]>,
172   HelpText<"Don't emit warning for unused driver arguments">;
173 def Q : Flag<"-Q">;
174 def R : Flag<"-R">;
175 def S : Flag<"-S">, Flags<[DriverOption]>,
176   HelpText<"Only run preprocess and compilation steps">;
177 def Tbss : JoinedOrSeparate<"-Tbss">, Group<T_Group>;
178 def Tdata : JoinedOrSeparate<"-Tdata">, Group<T_Group>;
179 def Ttext : JoinedOrSeparate<"-Ttext">, Group<T_Group>;
180 def T : JoinedOrSeparate<"-T">, Group<T_Group>;
181 def U : JoinedOrSeparate<"-U">, Group<CompileOnly_Group>;
182 def V : JoinedOrSeparate<"-V">, Flags<[DriverOption, Unsupported]>;
183 def Wa_COMMA : CommaJoined<"-Wa,">,
184   HelpText<"Pass the comma separated arguments in <arg> to the assembler">,
185   MetaVarName<"<arg>">;
186 def Wall : Flag<"-Wall">, Group<W_Group>;
187 def Wdeprecated : Flag<"-Wdeprecated">, Group<W_Group>;
188 def Wno_deprecated : Flag<"-Wno-deprecated">, Group<W_Group>;
189 def Wextra : Flag<"-Wextra">, Group<W_Group>;
190 def Wl_COMMA : CommaJoined<"-Wl,">, Flags<[LinkerInput, RenderAsInput]>,
191   HelpText<"Pass the comma separated arguments in <arg> to the linker">,
192   MetaVarName<"<arg>">;
193 def Wno_nonportable_cfstrings : Joined<"-Wno-nonportable-cfstrings">, Group<W_Group>;
194 def Wnonportable_cfstrings : Joined<"-Wnonportable-cfstrings">, Group<W_Group>;
195 def Wp_COMMA : CommaJoined<"-Wp,">,
196   HelpText<"Pass the comma separated arguments in <arg> to the preprocessor">,
197   MetaVarName<"<arg>">;
198 def Wwrite_strings : Flag<"-Wwrite-strings">, Group<W_Group>;
199 def Wno_write_strings : Flag<"-Wno-write-strings">, Group<W_Group>;
200 def W_Joined : Joined<"-W">, Group<W_Group>;
201 def Xanalyzer : Separate<"-Xanalyzer">,
202   HelpText<"Pass <arg> to the static analyzer">, MetaVarName<"<arg>">;
203 def Xarch__ : JoinedAndSeparate<"-Xarch_">, Flags<[DriverOption]>;
204 def Xassembler : Separate<"-Xassembler">,
205   HelpText<"Pass <arg> to the assembler">, MetaVarName<"<arg>">;
206 def Xclang : Separate<"-Xclang">,
207   HelpText<"Pass <arg> to the clang compiler">, MetaVarName<"<arg>">,
208   Flags<[NoForward]>;
209 def Xlinker : Separate<"-Xlinker">, Flags<[LinkerInput, RenderAsInput]>,
210   HelpText<"Pass <arg> to the linker">, MetaVarName<"<arg>">;
211 def Xpreprocessor : Separate<"-Xpreprocessor">,
212   HelpText<"Pass <arg> to the preprocessor">, MetaVarName<"<arg>">;
213 def X_Flag : Flag<"-X">;
214 def X_Joined : Joined<"-X">;
215 def Z_Flag : Flag<"-Z">;
216 def Z_Joined : Joined<"-Z">;
217 def all__load : Flag<"-all_load">;
218 def allowable__client : Separate<"-allowable_client">;
219 def ansi : Flag<"-ansi">, Group<a_Group>;
220 def arch__errors__fatal : Flag<"-arch_errors_fatal">;
221 def arch : Separate<"-arch">, Flags<[DriverOption]>;
222 def arch__only : Separate<"-arch_only">;
223 def a : Joined<"-a">, Group<a_Group>;
224 def bind__at__load : Flag<"-bind_at_load">;
225 def bundle__loader : Separate<"-bundle_loader">;
226 def bundle : Flag<"-bundle">;
227 def b : JoinedOrSeparate<"-b">, Flags<[Unsupported]>;
228 def client__name : JoinedOrSeparate<"-client_name">;
229 def combine : Flag<"-combine">, Flags<[DriverOption, Unsupported]>;
230 def compatibility__version : JoinedOrSeparate<"-compatibility_version">;
231 def coverage : Flag<"-coverage">;
232 def cpp_precomp : Flag<"-cpp-precomp">;
233 def current__version : JoinedOrSeparate<"-current_version">;
234 def cxx_isystem : JoinedOrSeparate<"-cxx-isystem">, Group<clang_i_Group>;
235 def c : Flag<"-c">, Flags<[DriverOption]>,
236   HelpText<"Only run preprocess, compile, and assemble steps">;
237 def dA : Flag<"-dA">, Group<d_Group>;
238 def dD : Flag<"-dD">, Group<d_Group>;
239 def dM : Flag<"-dM">, Group<d_Group>;
240 def dead__strip : Flag<"-dead_strip">;
241 def dependency_file : Separate<"-dependency-file">;
242 def dumpmachine : Flag<"-dumpmachine">;
243 def dumpspecs : Flag<"-dumpspecs">, Flags<[Unsupported]>;
244 def dumpversion : Flag<"-dumpversion">;
245 def dylib__file : Separate<"-dylib_file">;
246 def dylinker__install__name : JoinedOrSeparate<"-dylinker_install_name">;
247 def dylinker : Flag<"-dylinker">;
248 def dynamiclib : Flag<"-dynamiclib">;
249 def dynamic : Flag<"-dynamic">, Flags<[NoArgumentUnused]>;
250 def d_Flag : Flag<"-d">, Group<d_Group>;
251 def d_Joined : Joined<"-d">, Group<d_Group>;
252 def emit_ast : Flag<"-emit-ast">,
253   HelpText<"Emit Clang AST files for source inputs">;
254 def emit_llvm : Flag<"-emit-llvm">,
255   HelpText<"Use the LLVM representation for assembler and object files">;
256 def exported__symbols__list : Separate<"-exported_symbols_list">;
257 def e : JoinedOrSeparate<"-e">;
258 def fPIC : Flag<"-fPIC">, Group<f_Group>;
259 def fPIE : Flag<"-fPIE">, Group<f_Group>, Flags<[NoArgumentUnused]>;
260 def fno_PIE : Flag<"-fno-PIE">, Group<f_Group>, Flags<[NoArgumentUnused]>;
261 def faccess_control : Flag<"-faccess-control">, Group<f_Group>;
262 def fallow_unsupported : Flag<"-fallow-unsupported">, Group<f_Group>;
263 def fapple_kext : Flag<"-fapple-kext">, Group<f_Group>;
264 def fasm : Flag<"-fasm">, Group<f_Group>;
265
266 def fasm_blocks : Flag<"-fasm-blocks">, Group<f_Group>;
267 def fno_asm_blocks : Flag<"-fno-asm-blocks">, Group<f_Group>;
268
269 def fassume_sane_operator_new : Flag<"-fassume-sane-operator-new">, Group<f_Group>;
270 def fastcp : Flag<"-fastcp">, Group<f_Group>;
271 def fastf : Flag<"-fastf">, Group<f_Group>;
272 def fast : Flag<"-fast">, Group<f_Group>;
273 def fasynchronous_unwind_tables : Flag<"-fasynchronous-unwind-tables">, Group<f_Group>;
274 def fblocks : Flag<"-fblocks">, Group<f_Group>;
275 def fbootclasspath_EQ : Joined<"-fbootclasspath=">, Group<f_Group>;
276 def fborland_extensions : Flag<"-fborland-extensions">, Group<f_Group>;
277 def fbuiltin_strcat : Flag<"-fbuiltin-strcat">, Group<f_Group>;
278 def fbuiltin_strcpy : Flag<"-fbuiltin-strcpy">, Group<f_Group>;
279 def fbuiltin : Flag<"-fbuiltin">, Group<f_Group>;
280 def fcaret_diagnostics : Flag<"-fcaret-diagnostics">, Group<f_Group>;
281 def fcatch_undefined_behavior : Flag<"-fcatch-undefined-behavior">,
282     Group<f_Group>, HelpText<"Generate runtime checks for undefined behavior.">;
283 def fclasspath_EQ : Joined<"-fclasspath=">, Group<f_Group>;
284 def fcolor_diagnostics : Flag<"-fcolor-diagnostics">, Group<f_Group>;
285 def fcommon : Flag<"-fcommon">, Group<f_Group>;
286 def fcompile_resource_EQ : Joined<"-fcompile-resource=">, Group<f_Group>;
287 def fconstant_cfstrings : Flag<"-fconstant-cfstrings">, Group<f_Group>;
288 def fconstant_string_class_EQ : Joined<"-fconstant-string-class=">, Group<f_Group>;
289 def fcreate_profile : Flag<"-fcreate-profile">, Group<f_Group>;
290 def fcxx_exceptions: Flag<"-fcxx-exceptions">, Group<f_Group>;
291 def fdebug_pass_arguments : Flag<"-fdebug-pass-arguments">, Group<f_Group>;
292 def fdebug_pass_structure : Flag<"-fdebug-pass-structure">, Group<f_Group>;
293 def fdiagnostics_fixit_info : Flag<"-fdiagnostics-fixit-info">, Group<f_clang_Group>;
294 def fdiagnostics_print_source_range_info : Flag<"-fdiagnostics-print-source-range-info">, Group<f_clang_Group>;
295 def fdiagnostics_parseable_fixits : Flag<"-fdiagnostics-parseable-fixits">, Group<f_clang_Group>;
296 def fdiagnostics_show_option : Flag<"-fdiagnostics-show-option">, Group<f_Group>;
297 def fdiagnostics_show_name : Flag<"-fdiagnostics-show-name">, Group<f_Group>;
298 def fdiagnostics_show_note_include_stack : Flag<"-fdiagnostics-show-note-include-stack">, Group<f_Group>;
299 def fdiagnostics_format_EQ : Joined<"-fdiagnostics-format=">, Group<f_clang_Group>;
300 def fdiagnostics_show_category_EQ : Joined<"-fdiagnostics-show-category=">, Group<f_clang_Group>;
301 def fdollars_in_identifiers : Flag<"-fdollars-in-identifiers">, Group<f_Group>;
302 def fdwarf2_cfi_asm : Flag<"-fdwarf2-cfi-asm">, Group<f_Group>;
303 def fno_dwarf2_cfi_asm : Flag<"-fno-dwarf2-cfi-asm">, Group<f_Group>;
304 def felide_constructors : Flag<"-felide-constructors">, Group<f_Group>;
305 def feliminate_unused_debug_symbols : Flag<"-feliminate-unused-debug-symbols">, Group<f_Group>;
306 def femit_all_decls : Flag<"-femit-all-decls">, Group<f_Group>;
307 def fencoding_EQ : Joined<"-fencoding=">, Group<f_Group>;
308 def ferror_limit_EQ : Joined<"-ferror-limit=">, Group<f_Group>;
309 def fexceptions : Flag<"-fexceptions">, Group<f_Group>;
310 def fextdirs_EQ : Joined<"-fextdirs=">, Group<f_Group>;
311 def fhosted : Flag<"-fhosted">, Group<f_Group>;
312 def ffast_math : Flag<"-ffast-math">, Group<clang_ignored_f_Group>;
313 def ffinite_math_only : Flag<"-ffinite-math-only">, Group<clang_ignored_f_Group>;
314
315 def ffor_scope : Flag<"-ffor-scope">, Group<f_Group>;
316 def fno_for_scope : Flag<"-fno-for-scope">, Group<f_Group>;
317
318 def ffreestanding : Flag<"-ffreestanding">, Group<f_Group>;
319 def fformat_extensions: Flag<"-fformat-extensions">;
320 def fgnu_keywords : Flag<"-fgnu-keywords">, Group<f_Group>;
321 def fgnu89_inline : Flag<"-fgnu89-inline">, Group<f_Group>;
322 def fno_gnu89_inline : Flag<"-fno-gnu89-inline">, Group<f_Group>;
323 def fgnu_runtime : Flag<"-fgnu-runtime">, Group<f_Group>;
324 def fheinous_gnu_extensions : Flag<"-fheinous-gnu-extensions">;
325 def filelist : Separate<"-filelist">, Flags<[LinkerInput]>;
326 def findirect_virtual_calls : Flag<"-findirect-virtual-calls">, Alias<fapple_kext>;
327 def finline_functions : Flag<"-finline-functions">, Group<clang_ignored_f_Group>;
328 def finline : Flag<"-finline">, Group<clang_ignored_f_Group>;
329 def finstrument_functions : Flag<"-finstrument-functions">, Group<f_Group>;
330 def fkeep_inline_functions : Flag<"-fkeep-inline-functions">, Group<clang_ignored_f_Group>;
331 def flat__namespace : Flag<"-flat_namespace">;
332 def flax_vector_conversions : Flag<"-flax-vector-conversions">, Group<f_Group>;
333 def flimit_debug_info : Flag<"-flimit-debug-info">, Group<f_Group>,
334   HelpText<"Limit debug information produced to reduce size of debug binary">;
335 def flimited_precision_EQ : Joined<"-flimited-precision=">, Group<f_Group>;
336 def flto : Flag<"-flto">, Group<f_Group>;
337 def fno_lto : Flag<"-fno-lto">, Group<f_Group>;
338 def fmacro_backtrace_limit_EQ : Joined<"-fmacro-backtrace-limit=">,
339                                 Group<f_Group>;
340 def fmath_errno : Flag<"-fmath-errno">, Group<f_Group>;
341 def fmerge_all_constants : Flag<"-fmerge-all-constants">, Group<f_Group>;
342 def fmessage_length_EQ : Joined<"-fmessage-length=">, Group<f_Group>;
343 def fms_extensions : Flag<"-fms-extensions">, Group<f_Group>;
344 def fms_compatibility : Flag<"-fms-compatibility">, Group<f_Group>;
345 def fmsc_version : Joined<"-fmsc-version=">, Group<f_Group>;
346 def fdelayed_template_parsing : Flag<"-fdelayed-template-parsing">, Group<f_Group>;
347 def fmodule_cache_path : Separate<"-fmodule-cache-path">, Group<i_Group>, 
348   Flags<[NoForward]>;
349 def fauto_module_import : Flag <"-fauto-module-import">, Group<f_Group>,
350   Flags<[NoForward]>;
351   
352 def fmudflapth : Flag<"-fmudflapth">, Group<f_Group>;
353 def fmudflap : Flag<"-fmudflap">, Group<f_Group>;
354 def fnested_functions : Flag<"-fnested-functions">, Group<f_Group>;
355 def fnext_runtime : Flag<"-fnext-runtime">, Group<f_Group>;
356 def fno_access_control : Flag<"-fno-access-control">, Group<f_Group>;
357 def fno_asm : Flag<"-fno-asm">, Group<f_Group>;
358 def fno_asynchronous_unwind_tables : Flag<"-fno-asynchronous-unwind-tables">, Group<f_Group>;
359 def fno_assume_sane_operator_new : Flag<"-fno-assume-sane-operator-new">, Group<f_Group>;
360 def fno_blocks : Flag<"-fno-blocks">, Group<f_Group>;
361 def fno_borland_extensions : Flag<"-fno-borland-extensions">, Group<f_Group>;
362 def fno_builtin_strcat : Flag<"-fno-builtin-strcat">, Group<f_Group>;
363 def fno_builtin_strcpy : Flag<"-fno-builtin-strcpy">, Group<f_Group>;
364 def fno_builtin : Flag<"-fno-builtin">, Group<f_Group>;
365 def fno_caret_diagnostics : Flag<"-fno-caret-diagnostics">, Group<f_Group>;
366 def fno_color_diagnostics : Flag<"-fno-color-diagnostics">, Group<f_Group>;
367 def fno_common : Flag<"-fno-common">, Group<f_Group>;
368 def fno_constant_cfstrings : Flag<"-fno-constant-cfstrings">, Group<f_Group>;
369 def fno_cxx_exceptions: Flag<"-fno-cxx-exceptions">, Group<f_Group>;
370 def fno_diagnostics_fixit_info : Flag<"-fno-diagnostics-fixit-info">, Group<f_Group>;
371 def fno_diagnostics_show_name : Flag<"-fno-diagnostics-show-name">, Group<f_Group>;
372 def fno_diagnostics_show_option : Flag<"-fno-diagnostics-show-option">, Group<f_Group>;
373 def fno_diagnostics_show_note_include_stack : Flag<"-fno-diagnostics-show-note-include-stack">, Group<f_Group>;
374 def fno_dollars_in_identifiers : Flag<"-fno-dollars-in-identifiers">, Group<f_Group>;
375 def fno_elide_constructors : Flag<"-fno-elide-constructors">, Group<f_Group>;
376 def fno_eliminate_unused_debug_symbols : Flag<"-fno-eliminate-unused-debug-symbols">, Group<f_Group>;
377 def fno_exceptions : Flag<"-fno-exceptions">, Group<f_Group>;
378 def fno_finite_math_only : Flag<"-fno-finite-math-only">, Group<clang_ignored_f_Group>;
379 def fno_gnu_keywords : Flag<"-fno-gnu-keywords">, Group<f_Group>;
380 def fno_inline_functions : Flag<"-fno-inline-functions">, Group<clang_ignored_f_Group>;
381 def fno_inline : Flag<"-fno-inline">, Group<clang_ignored_f_Group>;
382 def fno_keep_inline_functions : Flag<"-fno-keep-inline-functions">, Group<clang_ignored_f_Group>;
383 def fno_lax_vector_conversions : Flag<"-fno-lax-vector-conversions">, Group<f_Group>;
384 def fno_math_errno : Flag<"-fno-math-errno">, Group<f_Group>;
385 def fno_merge_all_constants : Flag<"-fno-merge-all-constants">, Group<f_Group>;
386 def fno_ms_extensions : Flag<"-fno-ms-extensions">, Group<f_Group>;
387 def fno_ms_compatibility : Flag<"-fno-ms-compatibility">, Group<f_Group>;
388 def fno_delayed_template_parsing : Flag<"-fno-delayed-template-parsing">, Group<f_Group>;
389 def fno_objc_default_synthesize_properties 
390   : Flag<"-fno-objc-default-synthesize-properties">, Group<f_Group>;
391 def fno_objc_exceptions: Flag<"-fno-objc-exceptions">, Group<f_Group>;
392 def fno_objc_legacy_dispatch : Flag<"-fno-objc-legacy-dispatch">, Group<f_Group>;
393 def fno_omit_frame_pointer : Flag<"-fno-omit-frame-pointer">, Group<f_Group>;
394 def fno_pascal_strings : Flag<"-fno-pascal-strings">, Group<f_Group>;
395 def fno_rtti : Flag<"-fno-rtti">, Group<f_Group>;
396 def fno_short_enums : Flag<"-fno-short-enums">, Group<f_Group>;
397 def fno_show_column : Flag<"-fno-show-column">, Group<f_Group>;
398 def fno_show_source_location : Flag<"-fno-show-source-location">, Group<f_Group>;
399 def fno_spell_checking : Flag<"-fno-spell-checking">, Group<f_Group>;
400 def fno_stack_protector : Flag<"-fno-stack-protector">, Group<f_Group>;
401 def fno_strict_aliasing : Flag<"-fno-strict-aliasing">, Group<f_Group>;
402 def fno_strict_overflow : Flag<"-fno-strict-overflow">, Group<f_Group>;
403 def fno_threadsafe_statics : Flag<"-fno-threadsafe-statics">, Group<f_Group>;
404 def fno_use_cxa_atexit : Flag<"-fno-use-cxa-atexit">, Group<f_Group>;
405 def fno_unit_at_a_time : Flag<"-fno-unit-at-a-time">, Group<f_Group>;
406 def fno_unwind_tables : Flag<"-fno-unwind-tables">, Group<f_Group>;
407 def fno_verbose_asm : Flag<"-fno-verbose-asm">, Group<f_Group>;
408 def fno_working_directory : Flag<"-fno-working-directory">, Group<f_Group>;
409 def fno_wrapv : Flag<"-fno-wrapv">, Group<f_Group>;
410 def fno_zero_initialized_in_bss : Flag<"-fno-zero-initialized-in-bss">, Group<f_Group>;
411 def fobjc_arc : Flag<"-fobjc-arc">, Group<f_Group>;
412 def fno_objc_arc : Flag<"-fno-objc-arc">, Group<f_Group>;
413 def fobjc_arc_exceptions : Flag<"-fobjc-arc-exceptions">, Group<f_Group>;
414 def fno_objc_arc_exceptions : Flag<"-fno-objc-arc-exceptions">, Group<f_Group>;
415 def fobjc_atdefs : Flag<"-fobjc-atdefs">, Group<clang_ignored_f_Group>;
416 def fobjc_call_cxx_cdtors : Flag<"-fobjc-call-cxx-cdtors">, Group<clang_ignored_f_Group>;
417 def fobjc_default_synthesize_properties : 
418   Flag<"-fobjc-default-synthesize-properties">, Group<f_Group>;
419 def fobjc_exceptions: Flag<"-fobjc-exceptions">, Group<f_Group>;
420
421 def fobjc_gc_only : Flag<"-fobjc-gc-only">, Group<f_Group>;
422 def fobjc_gc : Flag<"-fobjc-gc">, Group<f_Group>;
423 def fobjc_legacy_dispatch : Flag<"-fobjc-legacy-dispatch">, Group<f_Group>;
424 def fobjc_new_property : Flag<"-fobjc-new-property">, Group<clang_ignored_f_Group>;
425 def fobjc_infer_related_result_type : Flag<"-fobjc-infer-related-result-type">, 
426                                       Group<f_Group>;
427 def fno_objc_infer_related_result_type : Flag<
428   "-fno-objc-infer-related-result-type">, Group<f_Group>;
429
430 // Objective-C ABI options.
431 def fobjc_abi_version_EQ : Joined<"-fobjc-abi-version=">, Group<f_Group>;
432 def fobjc_nonfragile_abi_version_EQ : Joined<"-fobjc-nonfragile-abi-version=">, Group<f_Group>;
433 def fobjc_nonfragile_abi : Flag<"-fobjc-nonfragile-abi">, Group<f_Group>;
434 def fno_objc_nonfragile_abi : Flag<"-fno-objc-nonfragile-abi">, Group<f_Group>;
435
436 def fobjc_sender_dependent_dispatch : Flag<"-fobjc-sender-dependent-dispatch">, Group<f_Group>;
437 def fobjc : Flag<"-fobjc">, Group<f_Group>;
438 def fomit_frame_pointer : Flag<"-fomit-frame-pointer">, Group<f_Group>;
439 def fopenmp : Flag<"-fopenmp">, Group<f_Group>;
440 def force__cpusubtype__ALL : Flag<"-force_cpusubtype_ALL">;
441 def force__flat__namespace : Flag<"-force_flat_namespace">;
442 def force__load : Separate<"-force_load">;
443 def foutput_class_dir_EQ : Joined<"-foutput-class-dir=">, Group<f_Group>;
444 def fpack_struct : Flag<"-fpack-struct">, Group<f_Group>;
445 def fno_pack_struct : Flag<"-fno-pack-struct">, Group<f_Group>;
446 def fpack_struct_EQ : Joined<"-fpack-struct=">, Group<f_Group>;
447 def fpascal_strings : Flag<"-fpascal-strings">, Group<f_Group>;
448 def fpch_preprocess : Flag<"-fpch-preprocess">, Group<f_Group>;
449 def fpic : Flag<"-fpic">, Group<f_Group>;
450 def fpie : Flag<"-fpie">, Group<f_Group>, Flags<[NoArgumentUnused]>;
451 def fno_pie : Flag<"-fno-pie">, Group<f_Group>, Flags<[NoArgumentUnused]>;
452 def fprofile_arcs : Flag<"-fprofile-arcs">, Group<f_Group>;
453 def fprofile_generate : Flag<"-fprofile-generate">, Group<f_Group>;
454 def framework : Separate<"-framework">, Flags<[LinkerInput]>;
455 def frandom_seed_EQ : Joined<"-frandom-seed=">, Group<clang_ignored_f_Group>;
456 def frtti : Flag<"-frtti">, Group<f_Group>;
457 def fsched_interblock : Flag<"-fsched-interblock">, Group<clang_ignored_f_Group>;
458 def fshort_enums : Flag<"-fshort-enums">, Group<f_Group>;
459 def freorder_blocks : Flag<"-freorder-blocks">, Group<clang_ignored_f_Group>;
460 def fshort_wchar : Flag<"-fshort-wchar">, Group<f_Group>;
461 def fshow_overloads_EQ : Joined<"-fshow-overloads=">, Group<f_Group>;
462 def fshow_column : Flag<"-fshow-column">, Group<f_Group>;
463 def fshow_source_location : Flag<"-fshow-source-location">, Group<f_Group>;
464 def fspell_checking : Flag<"-fspell-checking">, Group<f_Group>;
465 def fsigned_bitfields : Flag<"-fsigned-bitfields">, Group<f_Group>;
466 def fsigned_char : Flag<"-fsigned-char">, Group<f_Group>;
467 def fstack_protector_all : Flag<"-fstack-protector-all">, Group<f_Group>;
468 def fstack_protector : Flag<"-fstack-protector">, Group<f_Group>;
469 def fstrict_aliasing : Flag<"-fstrict-aliasing">, Group<f_Group>;
470 def fstrict_overflow : Flag<"-fstrict-overflow">, Group<f_Group>;
471 def fsyntax_only : Flag<"-fsyntax-only">, Flags<[DriverOption]>;
472 def ftabstop_EQ : Joined<"-ftabstop=">, Group<f_Group>;
473 def ftemplate_depth_ : Joined<"-ftemplate-depth-">, Group<f_Group>;
474 def ftemplate_backtrace_limit_EQ : Joined<"-ftemplate-backtrace-limit=">,
475                                    Group<f_Group>;
476 def ftest_coverage : Flag<"-ftest-coverage">, Group<f_Group>;
477 def Wlarge_by_value_copy_def : Flag<"-Wlarge-by-value-copy">;
478 def Wlarge_by_value_copy_EQ : Joined<"-Wlarge-by-value-copy=">;
479
480 // Just silence warnings about -Wlarger-than,  -Wframe-larger-than for now.
481 def Wlarger_than : Separate<"-Wlarger-than">, Group<clang_ignored_f_Group>;
482 def Wlarger_than_EQ : Joined<"-Wlarger-than=">, Alias<Wlarger_than>;
483 def Wlarger_than_ : Joined<"-Wlarger-than-">, Alias<Wlarger_than>;
484 def Wframe_larger_than : Separate<"-Wframe-larger-than">, Group<clang_ignored_f_Group>;
485 def Wframe_larger_than_EQ : Joined<"-Wframe-larger-than=">, Alias<Wframe_larger_than>;
486
487 def fterminated_vtables : Flag<"-fterminated-vtables">, Alias<fapple_kext>;
488 def fthreadsafe_statics : Flag<"-fthreadsafe-statics">, Group<f_Group>;
489 def ftime_report : Flag<"-ftime-report">, Group<f_Group>;
490 def ftrapv : Flag<"-ftrapv">, Group<f_Group>;
491 def ftrapv_handler_EQ : Joined<"-ftrapv-handler=">, Group<f_Group>;
492 def ftrap_function_EQ : Joined<"-ftrap-function=">, Group<f_Group>,
493   HelpText<"Issue call to specified function rather than a trap instruction">;
494 def funit_at_a_time : Flag<"-funit-at-a-time">, Group<f_Group>;
495 def funroll_loops : Flag<"-funroll-loops">, Group<f_Group>;
496 def funsigned_bitfields : Flag<"-funsigned-bitfields">, Group<f_Group>;
497 def funsigned_char : Flag<"-funsigned-char">, Group<f_Group>;
498 def funwind_tables : Flag<"-funwind-tables">, Group<f_Group>;
499 def fuse_cxa_atexit : Flag<"-fuse-cxa-atexit">, Group<f_Group>;
500 def fverbose_asm : Flag<"-fverbose-asm">, Group<f_Group>;
501 def fvisibility_EQ : Joined<"-fvisibility=">, Group<f_Group>;
502 def fvisibility_inlines_hidden : Flag<"-fvisibility-inlines-hidden">, Group<f_Group>;
503 def fwrapv : Flag<"-fwrapv">, Group<f_Group>;
504 def fwritable_strings : Flag<"-fwritable-strings">, Group<f_Group>;
505 def fzero_initialized_in_bss : Flag<"-fzero-initialized-in-bss">, Group<f_Group>;
506 def ffunction_sections: Flag <"-ffunction-sections">, Group<f_Group>;
507 def fdata_sections : Flag <"-fdata-sections">, Group<f_Group>;
508 def f : Joined<"-f">, Group<f_Group>;
509 def g0 : Joined<"-g0">, Group<g_Group>;
510 def g3 : Joined<"-g3">, Group<g_Group>;
511 def gfull : Joined<"-gfull">, Group<g_Group>;
512 def gstabs : Joined<"-gstabs">, Group<g_Group>;
513 def gused : Joined<"-gused">, Group<g_Group>;
514 def g_Flag : Flag<"-g">, Group<g_Group>;
515 def g_Joined : Joined<"-g">, Group<g_Group>;
516 def headerpad__max__install__names : Joined<"-headerpad_max_install_names">;
517 def index_header_map : Flag<"-index-header-map">;
518 def idirafter : JoinedOrSeparate<"-idirafter">, Group<clang_i_Group>;
519 def iframework : JoinedOrSeparate<"-iframework">, Group<clang_i_Group>;
520 def imacros : JoinedOrSeparate<"-imacros">, Group<clang_i_Group>;
521 def image__base : Separate<"-image_base">;
522 def include_ : JoinedOrSeparate<"-include">, Group<clang_i_Group>, EnumName<"include">;
523 def include_pch : Separate<"-include-pch">, Group<clang_i_Group>;
524 def init : Separate<"-init">;
525 def install__name : Separate<"-install_name">;
526 def integrated_as : Flag<"-integrated-as">, Flags<[DriverOption]>;
527 def iprefix : JoinedOrSeparate<"-iprefix">, Group<clang_i_Group>;
528 def iquote : JoinedOrSeparate<"-iquote">, Group<clang_i_Group>;
529 def isysroot : JoinedOrSeparate<"-isysroot">, Group<clang_i_Group>;
530 def isystem : JoinedOrSeparate<"-isystem">, Group<clang_i_Group>;
531 def iwithprefixbefore : JoinedOrSeparate<"-iwithprefixbefore">, Group<clang_i_Group>;
532 def iwithprefix : JoinedOrSeparate<"-iwithprefix">, Group<clang_i_Group>;
533 def iwithsysroot : JoinedOrSeparate<"-iwithsysroot">, Group<clang_i_Group>;
534 def i : Joined<"-i">, Group<i_Group>;
535 def keep__private__externs : Flag<"-keep_private_externs">;
536 def l : JoinedOrSeparate<"-l">, Flags<[LinkerInput, RenderJoined]>;
537 def m32 : Flag<"-m32">, Group<m_Group>, Flags<[DriverOption]>;
538 def m3dnowa : Flag<"-m3dnowa">, Group<m_x86_Features_Group>;
539 def m3dnow : Flag<"-m3dnow">, Group<m_x86_Features_Group>;
540 def m64 : Flag<"-m64">, Group<m_Group>, Flags<[DriverOption]>;
541 def mabi_EQ : Joined<"-mabi=">, Group<m_Group>;
542 def march_EQ : Joined<"-march=">, Group<m_Group>;
543 def mcmodel_EQ : Joined<"-mcmodel=">, Group<m_Group>;
544 def mconstant_cfstrings : Flag<"-mconstant-cfstrings">, Group<clang_ignored_m_Group>;
545 def mcpu_EQ : Joined<"-mcpu=">, Group<m_Group>;
546 def mdynamic_no_pic : Joined<"-mdynamic-no-pic">, Group<m_Group>, Flags<[NoArgumentUnused]>;
547 def mfix_and_continue : Flag<"-mfix-and-continue">, Group<clang_ignored_m_Group>;
548 def mfloat_abi_EQ : Joined<"-mfloat-abi=">, Group<m_Group>;
549 def mfpu_EQ : Joined<"-mfpu=">, Group<m_Group>;
550 def mglobal_merge : Flag<"-mglobal-merge">, Group<m_Group>;
551 def mhard_float : Flag<"-mhard-float">, Group<m_Group>;
552 def miphoneos_version_min_EQ : Joined<"-miphoneos-version-min=">, Group<m_Group>;
553 def mios_version_min_EQ : Joined<"-mios-version-min=">, Alias<miphoneos_version_min_EQ>;
554 def mios_simulator_version_min_EQ : Joined<"-mios-simulator-version-min=">, Group<m_Group>;
555 def mkernel : Flag<"-mkernel">, Group<m_Group>;
556 def mlinker_version_EQ : Joined<"-mlinker-version=">, Flags<[NoForward]>;
557 def mllvm : Separate<"-mllvm">;
558 def mmacosx_version_min_EQ : Joined<"-mmacosx-version-min=">, Group<m_Group>;
559 def mms_bitfields : Flag<"-mms-bitfields">, Group<m_Group>;
560 def mstackrealign : Flag<"-mstackrealign">, Group<m_Group>;
561 def mmmx : Flag<"-mmmx">, Group<m_x86_Features_Group>;
562 def mno_3dnowa : Flag<"-mno-3dnowa">, Group<m_x86_Features_Group>;
563 def mno_3dnow : Flag<"-mno-3dnow">, Group<m_x86_Features_Group>;
564 def mno_constant_cfstrings : Flag<"-mno-constant-cfstrings">, Group<m_Group>;
565 def mno_global_merge : Flag<"-mno-global-merge">, Group<m_Group>;
566 def mno_mmx : Flag<"-mno-mmx">, Group<m_x86_Features_Group>;
567 def mno_pascal_strings : Flag<"-mno-pascal-strings">, Group<m_Group>;
568 def mno_red_zone : Flag<"-mno-red-zone">, Group<m_Group>;
569 def mno_relax_all : Flag<"-mno-relax-all">, Group<m_Group>;
570 def mno_rtd: Flag<"-mno-rtd">, Group<m_Group>;
571 def mno_soft_float : Flag<"-mno-soft-float">, Group<m_Group>;
572 def mno_sse2 : Flag<"-mno-sse2">, Group<m_x86_Features_Group>;
573 def mno_sse3 : Flag<"-mno-sse3">, Group<m_x86_Features_Group>;
574 def mno_sse4a : Flag<"-mno-sse4a">, Group<m_x86_Features_Group>;
575 def mno_sse4 : Flag<"-mno-sse4">, Group<m_x86_Features_Group>;
576 def mno_sse4_1 : Flag<"-mno-sse4.1">, Group<m_x86_Features_Group>;
577 def mno_sse4_2 : Flag<"-mno-sse4.2">, Group<m_x86_Features_Group>;
578 def mno_sse : Flag<"-mno-sse">, Group<m_x86_Features_Group>;
579 def mno_ssse3 : Flag<"-mno-ssse3">, Group<m_x86_Features_Group>;
580 def mno_aes : Flag<"-mno-aes">, Group<m_x86_Features_Group>;
581 def mno_avx : Flag<"-mno-avx">, Group<m_x86_Features_Group>;
582
583 def mno_thumb : Flag<"-mno-thumb">, Group<m_Group>;
584 def marm : Flag<"-marm">, Alias<mno_thumb>;
585
586 def mno_warn_nonportable_cfstrings : Flag<"-mno-warn-nonportable-cfstrings">, Group<m_Group>;
587 def mno_omit_leaf_frame_pointer : Flag<"-mno-omit-leaf-frame-pointer">, Group<f_Group>;
588 def momit_leaf_frame_pointer : Flag<"-momit-leaf-frame-pointer">, Group<f_Group>;
589 def mpascal_strings : Flag<"-mpascal-strings">, Group<m_Group>;
590 def mred_zone : Flag<"-mred-zone">, Group<m_Group>;
591 def mregparm_EQ : Joined<"-mregparm=">, Group<m_Group>;
592 def mrelax_all : Flag<"-mrelax-all">, Group<m_Group>;
593 def mrtd: Flag<"-mrtd">, Group<m_Group>;
594 def msoft_float : Flag<"-msoft-float">, Group<m_Group>;
595 def msse2 : Flag<"-msse2">, Group<m_x86_Features_Group>;
596 def msse3 : Flag<"-msse3">, Group<m_x86_Features_Group>;
597 def msse4a : Flag<"-msse4a">, Group<m_x86_Features_Group>;
598 def msse4 : Flag<"-msse4">, Group<m_x86_Features_Group>;
599 def msse4_1 : Flag<"-msse4.1">, Group<m_x86_Features_Group>;
600 def msse4_2 : Flag<"-msse4.2">, Group<m_x86_Features_Group>;
601 def msse : Flag<"-msse">, Group<m_x86_Features_Group>;
602 def mssse3 : Flag<"-mssse3">, Group<m_x86_Features_Group>;
603 def maes : Flag<"-maes">, Group<m_x86_Features_Group>;
604 def mavx : Flag<"-mavx">, Group<m_x86_Features_Group>;
605 def mthumb : Flag<"-mthumb">, Group<m_Group>;
606 def mtune_EQ : Joined<"-mtune=">, Group<m_Group>;
607 def multi__module : Flag<"-multi_module">;
608 def multiply__defined__unused : Separate<"-multiply_defined_unused">;
609 def multiply__defined : Separate<"-multiply_defined">;
610 def mwarn_nonportable_cfstrings : Flag<"-mwarn-nonportable-cfstrings">, Group<m_Group>;
611 def m_Separate : Separate<"-m">, Group<m_Group>;
612 def m_Joined : Joined<"-m">, Group<m_Group>;
613 def no_canonical_prefixes : Flag<"-no-canonical-prefixes">, Flags<[HelpHidden]>,
614   HelpText<"Use relative instead of canonical paths">;
615 def no_cpp_precomp : Flag<"-no-cpp-precomp">;
616 def no_integrated_as : Flag<"-no-integrated-as">, Flags<[DriverOption]>;
617 def no_integrated_cpp : Flag<"-no-integrated-cpp">, Flags<[DriverOption]>;
618 def no__dead__strip__inits__and__terms : Flag<"-no_dead_strip_inits_and_terms">;
619 def nobuiltininc : Flag<"-nobuiltininc">;
620 def nodefaultlibs : Flag<"-nodefaultlibs">;
621 def nofixprebinding : Flag<"-nofixprebinding">;
622 def nolibc : Flag<"-nolibc">;
623 def nomultidefs : Flag<"-nomultidefs">;
624 def noprebind : Flag<"-noprebind">;
625 def noseglinkedit : Flag<"-noseglinkedit">;
626 def nostartfiles : Flag<"-nostartfiles">;
627 def nostdinc : Flag<"-nostdinc">;
628 def nostdlibinc : Flag<"-nostdlibinc">;
629 def nostdincxx : Flag<"-nostdinc++">;
630 def nostdlib : Flag<"-nostdlib">;
631 def object : Flag<"-object">;
632 def o : JoinedOrSeparate<"-o">, Flags<[DriverOption, RenderAsInput]>,
633   HelpText<"Write output to <file>">, MetaVarName<"<file>">;
634 def pagezero__size : JoinedOrSeparate<"-pagezero_size">;
635 def pass_exit_codes : Flag<"-pass-exit-codes">, Flags<[Unsupported]>;
636 def pedantic_errors : Flag<"-pedantic-errors">, Group<pedantic_Group>;
637 def pedantic : Flag<"-pedantic">, Group<pedantic_Group>;
638 def pg : Flag<"-pg">;
639 def pipe : Flag<"-pipe">,
640   HelpText<"Use pipes between commands, when possible">;
641 def prebind__all__twolevel__modules : Flag<"-prebind_all_twolevel_modules">;
642 def prebind : Flag<"-prebind">;
643 def preload : Flag<"-preload">;
644 def print_file_name_EQ : Joined<"-print-file-name=">,
645   HelpText<"Print the full library path of <file>">, MetaVarName<"<file>">;
646 def print_ivar_layout : Flag<"-print-ivar-layout">;
647 def print_libgcc_file_name : Flag<"-print-libgcc-file-name">,
648   HelpText<"Print the library path for \"libgcc.a\"">;
649 def print_multi_directory : Flag<"-print-multi-directory">;
650 def print_multi_lib : Flag<"-print-multi-lib">;
651 def print_multi_os_directory : Flag<"-print-multi-os-directory">;
652 def print_prog_name_EQ : Joined<"-print-prog-name=">,
653   HelpText<"Print the full program path of <name>">, MetaVarName<"<name>">;
654 def print_search_dirs : Flag<"-print-search-dirs">,
655   HelpText<"Print the paths used for finding libraries and programs">;
656 def private__bundle : Flag<"-private_bundle">;
657 def pthreads : Flag<"-pthreads">;
658 def pthread : Flag<"-pthread">;
659 def p : Flag<"-p">;
660 def pie : Flag<"-pie">;
661 def read__only__relocs : Separate<"-read_only_relocs">;
662 def remap : Flag<"-remap">;
663 def rewrite_objc : Flag<"-rewrite-objc">, Flags<[DriverOption]>,
664   HelpText<"Rewrite Objective-C source to C++">;
665 def rdynamic : Flag<"-rdynamic">;
666 def rpath : Separate<"-rpath">, Flags<[LinkerInput]>;
667 def r : Flag<"-r">;
668 def save_temps : Flag<"-save-temps">, Flags<[DriverOption]>,
669   HelpText<"Save intermediate compilation results">;
670 def sectalign : MultiArg<"-sectalign", 3>;
671 def sectcreate : MultiArg<"-sectcreate", 3>;
672 def sectobjectsymbols : MultiArg<"-sectobjectsymbols", 2>;
673 def sectorder : MultiArg<"-sectorder", 3>;
674 def seg1addr : JoinedOrSeparate<"-seg1addr">;
675 def seg__addr__table__filename : Separate<"-seg_addr_table_filename">;
676 def seg__addr__table : Separate<"-seg_addr_table">;
677 def segaddr : MultiArg<"-segaddr", 2>;
678 def segcreate : MultiArg<"-segcreate", 3>;
679 def seglinkedit : Flag<"-seglinkedit">;
680 def segprot : MultiArg<"-segprot", 3>;
681 def segs__read__only__addr : Separate<"-segs_read_only_addr">;
682 def segs__read__write__addr : Separate<"-segs_read_write_addr">;
683 def segs__read__ : Joined<"-segs_read_">;
684 def shared_libgcc : Flag<"-shared-libgcc">;
685 def shared : Flag<"-shared">;
686 def single__module : Flag<"-single_module">;
687 def specs_EQ : Joined<"-specs=">;
688 def specs : Separate<"-specs">, Flags<[Unsupported]>;
689 def static_libgcc : Flag<"-static-libgcc">;
690 def static : Flag<"-static">, Flags<[NoArgumentUnused]>;
691 def std_default_EQ : Joined<"-std-default=">;
692 def std_EQ : Joined<"-std=">;
693 def stdlib_EQ : Joined<"-stdlib=">;
694 def sub__library : JoinedOrSeparate<"-sub_library">;
695 def sub__umbrella : JoinedOrSeparate<"-sub_umbrella">;
696 def s : Flag<"-s">;
697 def time : Flag<"-time">,
698   HelpText<"Time individual commands">;
699 def traditional_cpp : Flag<"-traditional-cpp">;
700 def traditional : Flag<"-traditional">;
701 def trigraphs : Flag<"-trigraphs">;
702 def twolevel__namespace__hints : Flag<"-twolevel_namespace_hints">;
703 def twolevel__namespace : Flag<"-twolevel_namespace">;
704 def t : Flag<"-t">;
705 def umbrella : Separate<"-umbrella">;
706 def undefined : JoinedOrSeparate<"-undefined">, Group<u_Group>;
707 def undef : Flag<"-undef">, Group<u_Group>;
708 def unexported__symbols__list : Separate<"-unexported_symbols_list">;
709 def u : JoinedOrSeparate<"-u">, Group<u_Group>;
710 def use_gold_plugin : Flag<"-use-gold-plugin">;
711 def v : Flag<"-v">,
712   HelpText<"Show commands to run and use verbose output">;
713 def verify : Flag<"-verify">, Flags<[DriverOption]>,
714   HelpText<"Verify output using a verifier.">;
715 def weak_l : Joined<"-weak-l">, Flags<[LinkerInput]>;
716 def weak__framework : Separate<"-weak_framework">, Flags<[LinkerInput]>;
717 def weak__library : Separate<"-weak_library">, Flags<[LinkerInput]>;
718 def weak__reference__mismatches : Separate<"-weak_reference_mismatches">;
719 def whatsloaded : Flag<"-whatsloaded">;
720 def whyload : Flag<"-whyload">;
721 def w : Flag<"-w">;
722 def x : JoinedOrSeparate<"-x">, Flags<[DriverOption]>,
723   HelpText<"Treat subsequent input files as having type <language>">,
724   MetaVarName<"<language>">;
725 def y : Joined<"-y">;
726
727 def working_directory : Separate<"-working-directory">,
728   HelpText<"Resolve file paths relative to the specified directory">;
729 def working_directory_EQ : Joined<"-working-directory=">,
730   Alias<working_directory>;
731
732 // Double dash options, which are usually an alias for one of the previous
733 // options.
734
735 def _CLASSPATH_EQ : Joined<"--CLASSPATH=">, Alias<fclasspath_EQ>;
736 def _CLASSPATH : Separate<"--CLASSPATH">, Alias<fclasspath_EQ>;
737 def _all_warnings : Flag<"--all-warnings">, Alias<Wall>;
738 def _analyze_auto : Flag<"--analyze-auto">, Flags<[DriverOption]>;
739 def _analyzer_no_default_checks : Flag<"--analyzer-no-default-checks">, Flags<[DriverOption]>;
740 def _analyzer_output : JoinedOrSeparate<"--analyzer-output">, Flags<[DriverOption]>;
741 def _analyze : Flag<"--analyze">, Flags<[DriverOption]>,
742   HelpText<"Run the static analyzer">;
743 def _ansi : Flag<"--ansi">, Alias<ansi>;
744 def _assemble : Flag<"--assemble">, Alias<S>;
745 def _assert_EQ : Joined<"--assert=">, Alias<A>;
746 def _assert : Separate<"--assert">, Alias<A>;
747 def _bootclasspath_EQ : Joined<"--bootclasspath=">, Alias<fbootclasspath_EQ>;
748 def _bootclasspath : Separate<"--bootclasspath">, Alias<fbootclasspath_EQ>;
749 def _classpath_EQ : Joined<"--classpath=">, Alias<fclasspath_EQ>;
750 def _classpath : Separate<"--classpath">, Alias<fclasspath_EQ>;
751 def _combine : Flag<"--combine">, Alias<combine>;
752 def _comments_in_macros : Flag<"--comments-in-macros">, Alias<CC>;
753 def _comments : Flag<"--comments">, Alias<C>;
754 def _compile : Flag<"--compile">, Alias<c>;
755 def _constant_cfstrings : Flag<"--constant-cfstrings">;
756 def _coverage : Flag<"--coverage">, Alias<coverage>;
757 def _debug_EQ : Joined<"--debug=">, Alias<g_Flag>;
758 def _debug : Flag<"--debug">, Alias<g_Flag>;
759 def _define_macro_EQ : Joined<"--define-macro=">, Alias<D>;
760 def _define_macro : Separate<"--define-macro">, Alias<D>;
761 def _dependencies : Flag<"--dependencies">, Alias<M>;
762 def _encoding_EQ : Joined<"--encoding=">, Alias<fencoding_EQ>;
763 def _encoding : Separate<"--encoding">, Alias<fencoding_EQ>;
764 def _entry : Flag<"--entry">, Alias<e>;
765 def _extdirs_EQ : Joined<"--extdirs=">, Alias<fextdirs_EQ>;
766 def _extdirs : Separate<"--extdirs">, Alias<fextdirs_EQ>;
767 def _extra_warnings : Flag<"--extra-warnings">, Alias<W_Joined>;
768 def _for_linker_EQ : Joined<"--for-linker=">, Alias<Xlinker>;
769 def _for_linker : Separate<"--for-linker">, Alias<Xlinker>;
770 def _force_link_EQ : Joined<"--force-link=">, Alias<u>;
771 def _force_link : Separate<"--force-link">, Alias<u>;
772 def _help_hidden : Flag<"--help-hidden">;
773 def _help : Flag<"--help">,
774   HelpText<"Display available options">;
775 def _imacros_EQ : Joined<"--imacros=">, Alias<imacros>;
776 def _imacros : Separate<"--imacros">, Alias<imacros>;
777 def _include_barrier : Flag<"--include-barrier">, Alias<I_>;
778 def _include_directory_after_EQ : Joined<"--include-directory-after=">, Alias<idirafter>;
779 def _include_directory_after : Separate<"--include-directory-after">, Alias<idirafter>;
780 def _include_directory_EQ : Joined<"--include-directory=">, Alias<I>;
781 def _include_directory : Separate<"--include-directory">, Alias<I>;
782 def _include_prefix_EQ : Joined<"--include-prefix=">, Alias<iprefix>;
783 def _include_prefix : Separate<"--include-prefix">, Alias<iprefix>;
784 def _include_with_prefix_after_EQ : Joined<"--include-with-prefix-after=">, Alias<iwithprefix>;
785 def _include_with_prefix_after : Separate<"--include-with-prefix-after">, Alias<iwithprefix>;
786 def _include_with_prefix_before_EQ : Joined<"--include-with-prefix-before=">, Alias<iwithprefixbefore>;
787 def _include_with_prefix_before : Separate<"--include-with-prefix-before">, Alias<iwithprefixbefore>;
788 def _include_with_prefix_EQ : Joined<"--include-with-prefix=">, Alias<iwithprefix>;
789 def _include_with_prefix : Separate<"--include-with-prefix">, Alias<iwithprefix>;
790 def _include_EQ : Joined<"--include=">, Alias<include_>;
791 def _include : Separate<"--include">, Alias<include_>;
792 def _language_EQ : Joined<"--language=">, Alias<x>;
793 def _language : Separate<"--language">, Alias<x>;
794 def _library_directory_EQ : Joined<"--library-directory=">, Alias<L>;
795 def _library_directory : Separate<"--library-directory">, Alias<L>;
796 def _machine__EQ : Joined<"--machine-=">, Alias<m_Joined>;
797 def _machine_ : Joined<"--machine-">, Alias<m_Joined>;
798 def _machine_EQ : Joined<"--machine=">, Alias<m_Joined>;
799 def _machine : Separate<"--machine">, Alias<m_Joined>;
800 def _no_integrated_cpp : Flag<"--no-integrated-cpp">, Alias<no_integrated_cpp>;
801 def _no_line_commands : Flag<"--no-line-commands">, Alias<P>;
802 def _no_standard_includes : Flag<"--no-standard-includes">, Alias<nostdinc>;
803 def _no_standard_libraries : Flag<"--no-standard-libraries">, Alias<nostdlib>;
804 def _no_undefined : Flag<"--no-undefined">, Flags<[LinkerInput]>;
805 def _no_warnings : Flag<"--no-warnings">, Alias<w>;
806 def _optimize_EQ : Joined<"--optimize=">, Alias<O>;
807 def _optimize : Flag<"--optimize">, Alias<O>;
808 def _output_class_directory_EQ : Joined<"--output-class-directory=">, Alias<foutput_class_dir_EQ>;
809 def _output_class_directory : Separate<"--output-class-directory">, Alias<foutput_class_dir_EQ>;
810 def _output_EQ : Joined<"--output=">, Alias<o>;
811 def _output : Separate<"--output">, Alias<o>;
812 def _param : Separate<"--param">;
813 def _param_EQ : Joined<"--param=">, Alias<_param>;
814 def _pass_exit_codes : Flag<"--pass-exit-codes">, Alias<pass_exit_codes>;
815 def _pedantic_errors : Flag<"--pedantic-errors">, Alias<pedantic_errors>;
816 def _pedantic : Flag<"--pedantic">, Alias<pedantic>;
817 def _pipe : Flag<"--pipe">, Alias<pipe>;
818 def _prefix_EQ : Joined<"--prefix=">, Alias<B>;
819 def _prefix : Separate<"--prefix">, Alias<B>;
820 def _preprocess : Flag<"--preprocess">, Alias<E>;
821 def _print_diagnostic_categories : Flag<"--print-diagnostic-categories">;
822 def _print_file_name_EQ : Joined<"--print-file-name=">, Alias<print_file_name_EQ>;
823 def _print_file_name : Separate<"--print-file-name">, Alias<print_file_name_EQ>;
824 def _print_libgcc_file_name : Flag<"--print-libgcc-file-name">, Alias<print_libgcc_file_name>;
825 def _print_missing_file_dependencies : Flag<"--print-missing-file-dependencies">, Alias<MG>;
826 def _print_multi_directory : Flag<"--print-multi-directory">, Alias<print_multi_directory>;
827 def _print_multi_lib : Flag<"--print-multi-lib">, Alias<print_multi_lib>;
828 def _print_multi_os_directory : Flag<"--print-multi-os-directory">, Alias<print_multi_os_directory>;
829 def _print_prog_name_EQ : Joined<"--print-prog-name=">, Alias<print_prog_name_EQ>;
830 def _print_prog_name : Separate<"--print-prog-name">, Alias<print_prog_name_EQ>;
831 def _print_search_dirs : Flag<"--print-search-dirs">, Alias<print_search_dirs>;
832 def _profile_blocks : Flag<"--profile-blocks">, Alias<a>;
833 def _profile : Flag<"--profile">, Alias<p>;
834 def _relocatable_pch : Flag<"--relocatable-pch">,
835   HelpText<"Build a relocatable precompiled header">;
836 def _resource_EQ : Joined<"--resource=">, Alias<fcompile_resource_EQ>;
837 def _resource : Separate<"--resource">, Alias<fcompile_resource_EQ>;
838 def _save_temps : Flag<"--save-temps">, Alias<save_temps>;
839 def _shared : Flag<"--shared">, Alias<shared>;
840 def _signed_char : Flag<"--signed-char">, Alias<fsigned_char>;
841 def _specs_EQ : Joined<"--specs=">, Alias<specs_EQ>;
842 def _specs : Separate<"--specs">, Alias<specs_EQ>;
843 def _static : Flag<"--static">, Alias<static>;
844 def _std_EQ : Joined<"--std=">, Alias<std_EQ>;
845 def _std : Separate<"--std">, Alias<std_EQ>;
846 def _stdlib_EQ : Joined<"--stdlib=">, Alias<stdlib_EQ>;
847 def _stdlib : Separate<"--stdlib">, Alias<stdlib_EQ>;
848 def _sysroot_EQ : Joined<"--sysroot=">;
849 def _sysroot : Separate<"--sysroot">, Alias<_sysroot_EQ>;
850 def _target_help : Flag<"--target-help">;
851 def _trace_includes : Flag<"--trace-includes">, Alias<H>;
852 def _traditional_cpp : Flag<"--traditional-cpp">, Alias<traditional_cpp>;
853 def _traditional : Flag<"--traditional">, Alias<traditional>;
854 def _trigraphs : Flag<"--trigraphs">, Alias<trigraphs>;
855 def _undefine_macro_EQ : Joined<"--undefine-macro=">, Alias<U>;
856 def _undefine_macro : Separate<"--undefine-macro">, Alias<U>;
857 def _unsigned_char : Flag<"--unsigned-char">, Alias<funsigned_char>;
858 def _user_dependencies : Flag<"--user-dependencies">, Alias<MM>;
859 def _verbose : Flag<"--verbose">, Alias<v>;
860 def _version : Flag<"--version">;
861 def _warn__EQ : Joined<"--warn-=">, Alias<W_Joined>;
862 def _warn_ : Joined<"--warn-">, Alias<W_Joined>;
863 def _write_dependencies : Flag<"--write-dependencies">, Alias<MD>;
864 def _write_user_dependencies : Flag<"--write-user-dependencies">, Alias<MMD>;
865 def _ : Joined<"--">, Flags<[Unsupported]>;
866
867 // Special internal option to handle -Xlinker --no-demangle.
868 def Z_Xlinker__no_demangle : Flag<"-Z-Xlinker-no-demangle">,
869     Flags<[Unsupported, NoArgumentUnused]>;
870
871 // Special internal option to allow forwarding arbitrary arguments to linker.
872 def Zlinker_input : Separate<"-Zlinker-input">,
873     Flags<[Unsupported, NoArgumentUnused]>;
874
875 // Reserved library options.
876 def Z_reserved_lib_stdcxx : Flag<"-Z-reserved-lib-stdc++">,
877     Flags<[LinkerInput, NoArgumentUnused, Unsupported]>, Group<reserved_lib_Group>;
878 def Z_reserved_lib_cckext : Flag<"-Z-reserved-lib-cckext">,
879     Flags<[LinkerInput, NoArgumentUnused, Unsupported]>, Group<reserved_lib_Group>;