]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/llvm/tools/clang/include/clang/Driver/Options.td
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / llvm / tools / clang / include / clang / Driver / Options.td
1 //===--- Options.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 def Action_Group          : OptionGroup<"<action group>">;
23
24 def I_Group               : OptionGroup<"<I group>">, Group<CompileOnly_Group>;
25 def L_Group               : OptionGroup<"<L group>">, Group<CompileOnly_Group>;
26 def M_Group               : OptionGroup<"<M group>">, Group<CompileOnly_Group>;
27 def T_Group               : OptionGroup<"<T group>">;
28 def O_Group               : OptionGroup<"<O group>">, Group<CompileOnly_Group>;
29 def W_Group               : OptionGroup<"<W group>">, Group<CompileOnly_Group>;
30 def X_Group               : OptionGroup<"<X group>">;
31 def a_Group               : OptionGroup<"<a group>">;
32 def d_Group               : OptionGroup<"<d group>">;
33 def f_Group               : OptionGroup<"<f group>">, Group<CompileOnly_Group>;
34 def f_clang_Group         : OptionGroup<"<f (clang-only) group>">, Group<CompileOnly_Group>;
35 def g_Group               : OptionGroup<"<g group>">;
36 def g_flags_Group         : OptionGroup<"<g flags group>">;
37 def i_Group               : OptionGroup<"<i group>">, Group<CompileOnly_Group>;
38 def clang_i_Group         : OptionGroup<"<clang i group>">, Group<i_Group>;
39 def m_Group               : OptionGroup<"<m group>">, Group<CompileOnly_Group>;
40 def m_x86_Features_Group  : OptionGroup<"<m x86 features group>">, Group<m_Group>;
41 def m_hexagon_Features_Group  : OptionGroup<"<m hexagon features group>">, Group<m_Group>;
42 def opencl_Group          : OptionGroup<"<opencl group>">;
43 def u_Group               : OptionGroup<"<u group>">;
44 def mips_CPUs_Group       : OptionGroup<"<MIPS CPU aliases group>">,
45   Group<CompileOnly_Group>;
46
47 def pedantic_Group        : OptionGroup<"<pedantic group>">,
48   Group<CompileOnly_Group>;
49 def reserved_lib_Group   : OptionGroup<"<reserved libs group>">;
50
51 // Temporary groups for clang options which we know we don't support,
52 // but don't want to verbosely warn the user about.
53 def clang_ignored_f_Group : OptionGroup<"<clang ignored f group>">,
54   Group<f_Group>;
55 def clang_ignored_m_Group : OptionGroup<"<clang ignored m group>">,
56   Group<m_Group>;
57
58 /////////
59 // Options
60
61 // The internal option ID must be a valid C++ identifier and results in a
62 // clang::driver::options::OPT_XX enum constant for XX.
63 //
64 // We want to unambiguously be able to refer to options from the driver source
65 // code, for this reason the option name is mangled into an ID. This mangling
66 // isn't guaranteed to have an inverse, but for practical purposes it does.
67 //
68 // The mangling scheme is to ignore the leading '-', and perform the following
69 // substitutions:
70 //   _ => __
71 //   - => _
72 //   # => _HASH
73 //   , => _COMMA
74 //   = => _EQ
75 //   C++ => CXX
76 //   . => _
77
78 // Developer Driver Options
79
80 def ccc_Group : OptionGroup<"<clang internal options>">;
81 def ccc_driver_Group : OptionGroup<"<clang driver internal options>">,
82   Group<ccc_Group>, HelpText<"DRIVER OPTIONS">;
83 def ccc_debug_Group : OptionGroup<"<clang debug/development internal options>">,
84   Group<ccc_Group>, HelpText<"DEBUG/DEVELOPMENT OPTIONS">;
85
86 class CCCDriverOpt : Group<ccc_driver_Group>, Flags<[DriverOption, HelpHidden]>;
87 def ccc_cxx : Flag<["-"], "ccc-cxx">, CCCDriverOpt,
88   HelpText<"Act as a C++ driver">;
89 def ccc_echo : Flag<["-"], "ccc-echo">, CCCDriverOpt,
90   HelpText<"Echo commands before running them">;
91 def ccc_gcc_name : Separate<["-"], "ccc-gcc-name">, CCCDriverOpt,
92   HelpText<"Name for native GCC compiler">,
93   MetaVarName<"<gcc-path>">;
94 def ccc_clang_archs : Separate<["-"], "ccc-clang-archs">, CCCDriverOpt,
95   HelpText<"Comma separate list of architectures to use the clang compiler for">,
96   MetaVarName<"<arch-list>">;
97 def ccc_pch_is_pch : Flag<["-"], "ccc-pch-is-pch">, CCCDriverOpt,
98   HelpText<"Use lazy PCH for precompiled headers">;
99 def ccc_pch_is_pth : Flag<["-"], "ccc-pch-is-pth">, CCCDriverOpt,
100   HelpText<"Use pretokenized headers for precompiled headers">;
101
102 class CCCDebugOpt : Group<ccc_debug_Group>, Flags<[DriverOption, HelpHidden]>;
103 def ccc_install_dir : Separate<["-"], "ccc-install-dir">, CCCDebugOpt,
104   HelpText<"Simulate installation in the given directory">;
105 def ccc_print_options : Flag<["-"], "ccc-print-options">, CCCDebugOpt,
106   HelpText<"Dump parsed command line arguments">;
107 def ccc_print_phases : Flag<["-"], "ccc-print-phases">, CCCDebugOpt,
108   HelpText<"Dump list of actions to perform">;
109 def ccc_print_bindings : Flag<["-"], "ccc-print-bindings">, CCCDebugOpt,
110   HelpText<"Show bindings of tools to actions">;
111
112 def ccc_arcmt_check : Flag<["-"], "ccc-arcmt-check">, CCCDriverOpt,
113   HelpText<"Check for ARC migration issues that need manual handling">;
114 def ccc_arcmt_modify : Flag<["-"], "ccc-arcmt-modify">, CCCDriverOpt,
115   HelpText<"Apply modifications to files to conform to ARC">;
116 def ccc_arrmt_check : Flag<["-"], "ccc-arrmt-check">, Alias<ccc_arcmt_check>;
117 def ccc_arrmt_modify : Flag<["-"], "ccc-arrmt-modify">, Alias<ccc_arcmt_modify>;
118 def ccc_arcmt_migrate : Separate<["-"], "ccc-arcmt-migrate">, CCCDriverOpt,
119   HelpText<"Apply modifications and produces temporary files that conform to ARC">;
120 def arcmt_migrate_report_output : Separate<["-"], "arcmt-migrate-report-output">,
121   HelpText<"Output path for the plist report">,  Flags<[CC1Option]>;
122 def arcmt_migrate_emit_arc_errors : Flag<["-"], "arcmt-migrate-emit-errors">,
123   HelpText<"Emit ARC errors even if the migrator can fix them">,
124   Flags<[CC1Option]>;
125
126 def _migrate : Flag<["--"], "migrate">, Flags<[DriverOption]>,
127   HelpText<"Run the migrator">;
128 def ccc_objcmt_migrate : Separate<["-"], "ccc-objcmt-migrate">, CCCDriverOpt,
129   HelpText<"Apply modifications and produces temporary files to migrate to "
130    "modern ObjC syntax">;
131 def objcmt_migrate_literals : Flag<["-"], "objcmt-migrate-literals">, Flags<[CC1Option]>,
132   HelpText<"Enable migration to modern ObjC literals">;
133 def objcmt_migrate_subscripting : Flag<["-"], "objcmt-migrate-subscripting">, Flags<[CC1Option]>,
134   HelpText<"Enable migration to modern ObjC subscripting">;
135
136 // Make sure all other -ccc- options are rejected.
137 def ccc_ : Joined<["-"], "ccc-">, Group<ccc_Group>, Flags<[Unsupported]>;
138
139 // Standard Options
140
141 def _HASH_HASH_HASH : Flag<["-"], "###">, Flags<[DriverOption]>,
142     HelpText<"Print the commands to run for this compilation">;
143 // The '--' option is here for the sake of compatibility with gcc, but is 
144 // being ignored by the driver.
145 def _DASH_DASH : Flag<["--"], "">, Flags<[DriverOption]>;
146 def A : JoinedOrSeparate<["-"], "A">;
147 def B : JoinedOrSeparate<["-"], "B">;
148 def CC : Flag<["-"], "CC">, Flags<[CC1Option]>;
149 def C : Flag<["-"], "C">, Flags<[CC1Option]>;
150 def D : JoinedOrSeparate<["-"], "D">, Group<CompileOnly_Group>, Flags<[CC1Option]>;
151 def E : Flag<["-"], "E">, Flags<[DriverOption,CC1Option]>, Group<Action_Group>,
152   HelpText<"Only run the preprocessor">;
153 def F : JoinedOrSeparate<["-"], "F">, Flags<[RenderJoined,CC1Option]>,
154     HelpText<"Add directory to framework include search path">;
155 def G : JoinedOrSeparate<["-"], "G">, Flags<[DriverOption]>;
156 def G_EQ : Joined<["-"], "G=">, Flags<[DriverOption]>;
157 def H : Flag<["-"], "H">, Flags<[CC1Option]>,
158     HelpText<"Show header includes and nesting depth">;
159 def I_ : Flag<["-"], "I-">, Group<I_Group>;
160 def I : JoinedOrSeparate<["-"], "I">, Group<I_Group>, Flags<[CC1Option]>,
161     HelpText<"Add directory to include search path">;
162 def L : JoinedOrSeparate<["-"], "L">, Flags<[RenderJoined]>;
163 def MD : Flag<["-"], "MD">, Group<M_Group>;
164 def MF : JoinedOrSeparate<["-"], "MF">, Group<M_Group>;
165 def MG : Flag<["-"], "MG">, Group<M_Group>, Flags<[CC1Option]>,
166     HelpText<"Add missing headers to dependency list">;
167 def MMD : Flag<["-"], "MMD">, Group<M_Group>;
168 def MM : Flag<["-"], "MM">, Group<M_Group>;
169 def MP : Flag<["-"], "MP">, Group<M_Group>, Flags<[CC1Option]>,
170     HelpText<"Create phony target for each dependency (other than main file)">;
171 def MQ : JoinedOrSeparate<["-"], "MQ">, Group<M_Group>, Flags<[CC1Option]>,
172     HelpText<"Specify target to quote for dependency">;
173 def MT : JoinedOrSeparate<["-"], "MT">, Group<M_Group>, Flags<[CC1Option]>,
174     HelpText<"Specify target for dependency">;
175 def Mach : Flag<["-"], "Mach">;
176 def M : Flag<["-"], "M">, Group<M_Group>;
177 def O0 : Joined<["-"], "O0">, Group<O_Group>, Flags<[CC1Option]>;
178 def O4 : Joined<["-"], "O4">, Group<O_Group>, Flags<[CC1Option]>;
179 def ObjCXX : Flag<["-"], "ObjC++">, Flags<[DriverOption]>,
180   HelpText<"Treat source input files as Objective-C++ inputs">;
181 def ObjC : Flag<["-"], "ObjC">, Flags<[DriverOption]>,
182   HelpText<"Treat source input files as Objective-C inputs">;
183 def O : Joined<["-"], "O">, Group<O_Group>, Flags<[CC1Option]>;
184 def Ofast : Joined<["-"], "Ofast">, Group<O_Group>, Flags<[CC1Option]>;
185 def P : Flag<["-"], "P">, Flags<[CC1Option]>,
186   HelpText<"Disable linemarker output in -E mode">;
187 def Qn : Flag<["-"], "Qn">;
188 def Qunused_arguments : Flag<["-"], "Qunused-arguments">, Flags<[DriverOption]>,
189   HelpText<"Don't emit warning for unused driver arguments">;
190 def Q : Flag<["-"], "Q">;
191 def R : Flag<["-"], "R">;
192 def S : Flag<["-"], "S">, Flags<[DriverOption,CC1Option]>, Group<Action_Group>,
193   HelpText<"Only run preprocess and compilation steps">;
194 def Tbss : JoinedOrSeparate<["-"], "Tbss">, Group<T_Group>;
195 def Tdata : JoinedOrSeparate<["-"], "Tdata">, Group<T_Group>;
196 def Ttext : JoinedOrSeparate<["-"], "Ttext">, Group<T_Group>;
197 def T : JoinedOrSeparate<["-"], "T">, Group<T_Group>;
198 def U : JoinedOrSeparate<["-"], "U">, Group<CompileOnly_Group>, Flags<[CC1Option]>;
199 def V : JoinedOrSeparate<["-"], "V">, Flags<[DriverOption, Unsupported]>;
200 def Wa_COMMA : CommaJoined<["-"], "Wa,">,
201   HelpText<"Pass the comma separated arguments in <arg> to the assembler">,
202   MetaVarName<"<arg>">;
203 def Wall : Flag<["-"], "Wall">, Group<W_Group>, Flags<[CC1Option]>;
204 def Wdeprecated : Flag<["-"], "Wdeprecated">, Group<W_Group>, Flags<[CC1Option]>;
205 def Wno_deprecated : Flag<["-"], "Wno-deprecated">, Group<W_Group>, Flags<[CC1Option]>;
206 def Wextra : Flag<["-"], "Wextra">, Group<W_Group>, Flags<[CC1Option]>;
207 def Wl_COMMA : CommaJoined<["-"], "Wl,">, Flags<[LinkerInput, RenderAsInput]>,
208   HelpText<"Pass the comma separated arguments in <arg> to the linker">,
209   MetaVarName<"<arg>">;
210 def Wno_nonportable_cfstrings : Joined<["-"], "Wno-nonportable-cfstrings">, Group<W_Group>,
211   Flags<[CC1Option]>;
212 def Wnonportable_cfstrings : Joined<["-"], "Wnonportable-cfstrings">, Group<W_Group>,
213   Flags<[CC1Option]>;
214 def Wp_COMMA : CommaJoined<["-"], "Wp,">,
215   HelpText<"Pass the comma separated arguments in <arg> to the preprocessor">,
216   MetaVarName<"<arg>">;
217 def Wwrite_strings : Flag<["-"], "Wwrite-strings">, Group<W_Group>, Flags<[CC1Option]>;
218 def Wno_write_strings : Flag<["-"], "Wno-write-strings">, Group<W_Group>, Flags<[CC1Option]>;
219 def W_Joined : Joined<["-"], "W">, Group<W_Group>, Flags<[CC1Option]>,
220   MetaVarName<"<warning>">, HelpText<"Enable the specified warning">;
221 def Xanalyzer : Separate<["-"], "Xanalyzer">,
222   HelpText<"Pass <arg> to the static analyzer">, MetaVarName<"<arg>">;
223 def Xarch__ : JoinedAndSeparate<["-"], "Xarch_">, Flags<[DriverOption]>;
224 def Xassembler : Separate<["-"], "Xassembler">,
225   HelpText<"Pass <arg> to the assembler">, MetaVarName<"<arg>">;
226 def Xclang : Separate<["-"], "Xclang">,
227   HelpText<"Pass <arg> to the clang compiler">, MetaVarName<"<arg>">,
228   Flags<[NoForward]>;
229 def Xlinker : Separate<["-"], "Xlinker">, Flags<[LinkerInput, RenderAsInput]>,
230   HelpText<"Pass <arg> to the linker">, MetaVarName<"<arg>">;
231 def Xpreprocessor : Separate<["-"], "Xpreprocessor">,
232   HelpText<"Pass <arg> to the preprocessor">, MetaVarName<"<arg>">;
233 def X_Flag : Flag<["-"], "X">;
234 def X_Joined : Joined<["-"], "X">;
235 def Z_Flag : Flag<["-"], "Z">;
236 def Z_Joined : Joined<["-"], "Z">;
237 def all__load : Flag<["-"], "all_load">;
238 def allowable__client : Separate<["-"], "allowable_client">;
239 def ansi : Flag<["-", "--"], "ansi">, Group<a_Group>;
240 def arch__errors__fatal : Flag<["-"], "arch_errors_fatal">;
241 def arch : Separate<["-"], "arch">, Flags<[DriverOption]>;
242 def arch__only : Separate<["-"], "arch_only">;
243 def a : Joined<["-"], "a">, Group<a_Group>;
244 def bind__at__load : Flag<["-"], "bind_at_load">;
245 def bundle__loader : Separate<["-"], "bundle_loader">;
246 def bundle : Flag<["-"], "bundle">;
247 def b : JoinedOrSeparate<["-"], "b">, Flags<[Unsupported]>;
248 def cl_kernel_arg_info : Flag<["-"], "cl-kernel-arg-info">, Flags<[CC1Option]>, Group<opencl_Group>,
249 HelpText<"OpenCL only. This option allows the compiler to store information about the arguments of a kernel(s)"> ;
250 def client__name : JoinedOrSeparate<["-"], "client_name">;
251 def combine : Flag<["-", "--"], "combine">, Flags<[DriverOption, Unsupported]>;
252 def compatibility__version : JoinedOrSeparate<["-"], "compatibility_version">;
253 def coverage : Flag<["-", "--"], "coverage">;
254 def cpp_precomp : Flag<["-"], "cpp-precomp">, Group<clang_ignored_f_Group>;
255 def current__version : JoinedOrSeparate<["-"], "current_version">;
256 def cxx_isystem : JoinedOrSeparate<["-"], "cxx-isystem">, Group<clang_i_Group>,
257   HelpText<"Add directory to the C++ SYSTEM include search path">, Flags<[CC1Option]>,
258   MetaVarName<"<directory>">;
259 def c : Flag<["-"], "c">, Flags<[DriverOption]>,
260   HelpText<"Only run preprocess, compile, and assemble steps">;
261 def dA : Flag<["-"], "dA">, Group<d_Group>;
262 def dD : Flag<["-"], "dD">, Group<d_Group>, Flags<[CC1Option]>,
263   HelpText<"Print macro definitions in -E mode in addition to normal output">;
264 def dM : Flag<["-"], "dM">, Group<d_Group>, Flags<[CC1Option]>,
265   HelpText<"Print macro definitions in -E mode instead of normal output">;
266 def dead__strip : Flag<["-"], "dead_strip">;
267 def dependency_file : Separate<["-"], "dependency-file">, Flags<[CC1Option]>,
268   HelpText<"Filename (or -) to write dependency output to">;
269 def dependency_dot : Separate<["-"], "dependency-dot">, Flags<[CC1Option]>,
270   HelpText<"Filename to write DOT-formatted header dependencies to">;
271 def dumpmachine : Flag<["-"], "dumpmachine">;
272 def dumpspecs : Flag<["-"], "dumpspecs">, Flags<[Unsupported]>;
273 def dumpversion : Flag<["-"], "dumpversion">;
274 def dylib__file : Separate<["-"], "dylib_file">;
275 def dylinker__install__name : JoinedOrSeparate<["-"], "dylinker_install_name">;
276 def dylinker : Flag<["-"], "dylinker">;
277 def dynamiclib : Flag<["-"], "dynamiclib">;
278 def dynamic : Flag<["-"], "dynamic">, Flags<[NoArgumentUnused]>;
279 def d_Flag : Flag<["-"], "d">, Group<d_Group>;
280 def d_Joined : Joined<["-"], "d">, Group<d_Group>;
281 def emit_ast : Flag<["-"], "emit-ast">,
282   HelpText<"Emit Clang AST files for source inputs">;
283 def emit_llvm : Flag<["-"], "emit-llvm">, Flags<[CC1Option]>, Group<Action_Group>,
284   HelpText<"Use the LLVM representation for assembler and object files">;
285 def exported__symbols__list : Separate<["-"], "exported_symbols_list">;
286 def e : JoinedOrSeparate<["-"], "e">;
287 def fPIC : Flag<["-"], "fPIC">, Group<f_Group>;
288 def fno_PIC : Flag<["-"], "fno-PIC">, Group<f_Group>;
289 def fPIE : Flag<["-"], "fPIE">, Group<f_Group>;
290 def fno_PIE : Flag<["-"], "fno-PIE">, Group<f_Group>;
291 def faccess_control : Flag<["-"], "faccess-control">, Group<f_Group>;
292 def fallow_unsupported : Flag<["-"], "fallow-unsupported">, Group<f_Group>;
293 def faltivec : Flag<["-"], "faltivec">, Group<f_Group>, Flags<[CC1Option]>,
294   HelpText<"Enable AltiVec vector initializer syntax">;
295 def fno_altivec : Flag<["-"], "fno-altivec">, Group<f_Group>, Flags<[CC1Option]>;
296 def fapple_kext : Flag<["-"], "fapple-kext">, Group<f_Group>, Flags<[CC1Option]>,
297   HelpText<"Use Apple's kernel extensions ABI">;
298 def fapple_pragma_pack : Flag<["-"], "fapple-pragma-pack">, Group<f_Group>, Flags<[CC1Option]>,
299   HelpText<"Enable Apple gcc-compatible #pragma pack handling">;
300 def faddress_sanitizer : Flag<["-"], "faddress-sanitizer">, Group<f_Group>;
301 def fno_address_sanitizer : Flag<["-"], "fno-address-sanitizer">, Group<f_Group>;
302 def fthread_sanitizer : Flag<["-"], "fthread-sanitizer">, Group<f_Group>;
303 def fno_thread_sanitizer : Flag<["-"], "fno-thread-sanitizer">, Group<f_Group>;
304 def fasm : Flag<["-"], "fasm">, Group<f_Group>;
305
306 def fasm_blocks : Flag<["-"], "fasm-blocks">, Group<f_Group>, Flags<[CC1Option]>;
307 def fno_asm_blocks : Flag<["-"], "fno-asm-blocks">, Group<f_Group>;
308
309 def fassume_sane_operator_new : Flag<["-"], "fassume-sane-operator-new">, Group<f_Group>;
310 def fastcp : Flag<["-"], "fastcp">, Group<f_Group>;
311 def fastf : Flag<["-"], "fastf">, Group<f_Group>;
312 def fast : Flag<["-"], "fast">, Group<f_Group>;
313 def fasynchronous_unwind_tables : Flag<["-"], "fasynchronous-unwind-tables">, Group<f_Group>;
314
315 def fautolink : Flag <["-"], "fautolink">, Group<f_Group>;
316 def fno_autolink : Flag <["-"], "fno-autolink">, Group<f_Group>, Flags<[NoForward, CC1Option]>,
317   HelpText<"Disable generation of linker directives for automatic library linking">;
318
319 def fblocks : Flag<["-"], "fblocks">, Group<f_Group>, Flags<[CC1Option]>,
320   HelpText<"Enable the 'blocks' language feature">;
321 def fbootclasspath_EQ : Joined<["-"], "fbootclasspath=">, Group<f_Group>;
322 def fborland_extensions : Flag<["-"], "fborland-extensions">, Group<f_Group>, Flags<[CC1Option]>,
323   HelpText<"Accept non-standard constructs supported by the Borland compiler">;
324 def fbounds_checking : Flag<["-"], "fbounds-checking">, Group<f_Group>,
325   HelpText<"Enable run-time bounds checks">;
326 def fbounds_checking_EQ : Joined<["-"], "fbounds-checking=">, Flags<[CC1Option]>,
327   Group<f_Group>;
328 def fbuiltin_strcat : Flag<["-"], "fbuiltin-strcat">, Group<f_Group>;
329 def fbuiltin_strcpy : Flag<["-"], "fbuiltin-strcpy">, Group<f_Group>;
330 def fbuiltin : Flag<["-"], "fbuiltin">, Group<f_Group>;
331 def fcaret_diagnostics : Flag<["-"], "fcaret-diagnostics">, Group<f_Group>;
332 def fcatch_undefined_behavior : Flag<["-"], "fcatch-undefined-behavior">, Group<f_Group>;
333 def fclasspath_EQ : Joined<["-"], "fclasspath=">, Group<f_Group>;
334 def fcolor_diagnostics : Flag<["-"], "fcolor-diagnostics">, Group<f_Group>, Flags<[CC1Option]>,
335   HelpText<"Use colors in diagnostics">;
336 def fdiagnostics_color : Flag<["-"], "fdiagnostics-color">, Group<f_Group>;
337 def fdiagnostics_color_EQ : Joined<["-"], "fdiagnostics-color=">, Group<f_Group>;
338 def fcomment_block_commands : CommaJoined<["-"], "fcomment-block-commands=">, Group<f_clang_Group>, Flags<[CC1Option]>,
339   HelpText<"Treat each comma separated argument in <arg> as a documentation comment block command">,
340   MetaVarName<"<arg>">;
341 def fparse_all_comments : Flag<["-"], "fparse-all-comments">, Group<f_clang_Group>, Flags<[CC1Option]>;
342 def fcommon : Flag<["-"], "fcommon">, Group<f_Group>;
343 def fcompile_resource_EQ : Joined<["-"], "fcompile-resource=">, Group<f_Group>;
344 def fconstant_cfstrings : Flag<["-"], "fconstant-cfstrings">, Group<f_Group>;
345 def fconstant_string_class_EQ : Joined<["-"], "fconstant-string-class=">, Group<f_Group>;
346 def fconstexpr_depth_EQ : Joined<["-"], "fconstexpr-depth=">, Group<f_Group>;
347 def fconstexpr_backtrace_limit_EQ : Joined<["-"], "fconstexpr-backtrace-limit=">,
348                                     Group<f_Group>;
349 def fno_crash_diagnostics : Flag<["-"], "fno-crash-diagnostics">, Group<f_clang_Group>, Flags<[NoArgumentUnused]>;
350 def fcreate_profile : Flag<["-"], "fcreate-profile">, Group<f_Group>;
351 def fcxx_exceptions: Flag<["-"], "fcxx-exceptions">, Group<f_Group>,
352   HelpText<"Enable C++ exceptions">, Flags<[CC1Option]>;
353 def fcxx_modules : Flag <["-"], "fcxx-modules">, Group<f_Group>, Flags<[NoForward]>;
354 def fdebug_pass_arguments : Flag<["-"], "fdebug-pass-arguments">, Group<f_Group>;
355 def fdebug_pass_structure : Flag<["-"], "fdebug-pass-structure">, Group<f_Group>;
356 def fdiagnostics_fixit_info : Flag<["-"], "fdiagnostics-fixit-info">, Group<f_clang_Group>;
357 def fdiagnostics_parseable_fixits : Flag<["-"], "fdiagnostics-parseable-fixits">, Group<f_clang_Group>,
358     Flags<[CC1Option]>, HelpText<"Print fix-its in machine parseable form">;
359 def fdiagnostics_print_source_range_info : Flag<["-"], "fdiagnostics-print-source-range-info">,
360     Group<f_clang_Group>,  Flags<[CC1Option]>,
361     HelpText<"Print source range spans in numeric form">;
362 def fdiagnostics_show_option : Flag<["-"], "fdiagnostics-show-option">, Group<f_Group>,
363     Flags<[CC1Option]>, HelpText<"Print option name with mappable diagnostics">;
364 def fdiagnostics_show_name : Flag<["-"], "fdiagnostics-show-name">, Group<f_Group>,
365     Flags<[CC1Option]>, HelpText<"Print diagnostic name">;
366 def fdiagnostics_show_note_include_stack : Flag<["-"], "fdiagnostics-show-note-include-stack">,
367     Group<f_Group>,  Flags<[CC1Option]>, HelpText<"Display include stacks for diagnostic notes">;
368 def fdiagnostics_format_EQ : Joined<["-"], "fdiagnostics-format=">, Group<f_clang_Group>;
369 def fdiagnostics_show_category_EQ : Joined<["-"], "fdiagnostics-show-category=">, Group<f_clang_Group>;
370 def fdiagnostics_show_template_tree : Flag<["-"], "fdiagnostics-show-template-tree">,
371     Group<f_Group>, Flags<[CC1Option]>,
372     HelpText<"Print a template comparison tree for differing templates">;
373 def fdollars_in_identifiers : Flag<["-"], "fdollars-in-identifiers">, Group<f_Group>,
374   HelpText<"Allow '$' in identifiers">, Flags<[CC1Option]>;
375 def fdwarf2_cfi_asm : Flag<["-"], "fdwarf2-cfi-asm">, Group<f_Group>;
376 def fno_dwarf2_cfi_asm : Flag<["-"], "fno-dwarf2-cfi-asm">, Group<f_Group>,  Flags<[CC1Option]>;
377 def fdwarf_directory_asm : Flag<["-"], "fdwarf-directory-asm">, Group<f_Group>;
378 def fno_dwarf_directory_asm : Flag<["-"], "fno-dwarf-directory-asm">, Group<f_Group>, Flags<[CC1Option]>;
379 def felide_constructors : Flag<["-"], "felide-constructors">, Group<f_Group>;
380 def fno_elide_type : Flag<["-"], "fno-elide-type">, Group<f_Group>,
381     Flags<[CC1Option]>,
382     HelpText<"Do not elide types when printing diagnostics">;
383 def feliminate_unused_debug_symbols : Flag<["-"], "feliminate-unused-debug-symbols">, Group<f_Group>;
384 def femit_all_decls : Flag<["-"], "femit-all-decls">, Group<f_Group>, Flags<[CC1Option]>,
385   HelpText<"Emit all declarations, even if unused">;
386 def fencoding_EQ : Joined<["-"], "fencoding=">, Group<f_Group>;
387 def ferror_limit_EQ : Joined<["-"], "ferror-limit=">, Group<f_Group>;
388 def fexceptions : Flag<["-"], "fexceptions">, Group<f_Group>, Flags<[CC1Option]>,
389   HelpText<"Enable support for exception handling">;
390 def fextdirs_EQ : Joined<["-"], "fextdirs=">, Group<f_Group>;
391 def fextended_identifiers : Flag<["-"], "fextended-identifiers">,
392     Group<clang_ignored_f_Group>;
393 def fno_extended_identifiers : Flag<["-"], "fno-extended-identifiers">,
394     Group<f_Group>, Flags<[Unsupported]>;
395 def fhosted : Flag<["-"], "fhosted">, Group<f_Group>;
396 def ffast_math : Flag<["-"], "ffast-math">, Group<f_Group>, Flags<[CC1Option]>,
397   HelpText<"Enable the *frontend*'s 'fast-math' mode. This has no effect on "
398            "optimizations, but provides a preprocessor macro __FAST_MATH__ the "
399            "same as GCC's -ffast-math flag">;
400 def fno_fast_math : Flag<["-"], "fno-fast-math">, Group<f_Group>;
401 def fmath_errno : Flag<["-"], "fmath-errno">, Group<f_Group>, Flags<[CC1Option]>,
402   HelpText<"Require math functions to indicate errors by setting errno">;
403 def fno_math_errno : Flag<["-"], "fno-math-errno">, Group<f_Group>;
404 def fbracket_depth_EQ : Joined<["-"], "fbracket-depth=">, Group<f_Group>;
405 def fsignaling_math : Flag<["-"], "fsignaling-math">, Group<f_Group>;
406 def fno_signaling_math : Flag<["-"], "fno-signaling-math">, Group<f_Group>;
407 def fsanitize_EQ : CommaJoined<["-"], "fsanitize=">, Group<f_clang_Group>,
408                    Flags<[CC1Option]>, MetaVarName<"<check>">,
409                    HelpText<"Enable runtime instrumentation for bug detection: "
410                             "address (memory errors) | thread (race detection) | "
411                             "undefined (miscellaneous undefined behavior)">;
412 def fno_sanitize_EQ : CommaJoined<["-"], "fno-sanitize=">, Group<f_clang_Group>;
413 def fsanitize_address_zero_base_shadow : Flag<["-"], "fsanitize-address-zero-base-shadow">,
414                                          Group<f_clang_Group>, Flags<[CC1Option]>,
415                                          HelpText<"Make AddressSanitizer map shadow memory "
416                                                   "at zero offset">;
417 def fno_sanitize_address_zero_base_shadow : Flag<["-"], "fno-sanitize-address-zero-base-shadow">,
418                                             Group<f_clang_Group>;
419 def fsanitize_blacklist : Joined<["-"], "fsanitize-blacklist=">,
420                           Group<f_clang_Group>, Flags<[CC1Option]>,
421                           HelpText<"Path to blacklist file for sanitizers">;
422 def fno_sanitize_blacklist : Flag<["-"], "fno-sanitize-blacklist">,
423                              Group<f_clang_Group>,
424                              HelpText<"Don't use blacklist file for sanitizers">;
425 def fsanitize_memory_track_origins : Flag<["-"], "fsanitize-memory-track-origins">,
426                                      Group<f_clang_Group>, Flags<[CC1Option]>,
427                                      HelpText<"Enable origins tracking in MemorySanitizer">;
428 def fno_sanitize_memory_track_origins : Flag<["-"], "fno-sanitize-memory-track-origins">,
429                                         Group<f_clang_Group>;
430 def fsanitize_recover : Flag<["-"], "fsanitize-recover">,
431                         Group<f_clang_Group>;
432 def fno_sanitize_recover : Flag<["-"], "fno-sanitize-recover">,
433                            Group<f_clang_Group>, Flags<[CC1Option]>,
434                            HelpText<"Disable sanitizer check recovery">;
435 def fsanitize_undefined_trap_on_error : Flag<["-"], "fsanitize-undefined-trap-on-error">,
436                                         Group<f_clang_Group>, Flags<[CC1Option]>;
437 def fno_sanitize_undefined_trap_on_error : Flag<["-"], "fno-sanitize-undefined-trap-on-error">,
438                                            Group<f_clang_Group>;
439 def funsafe_math_optimizations : Flag<["-"], "funsafe-math-optimizations">,
440   Group<f_Group>;
441 def fno_unsafe_math_optimizations : Flag<["-"], "fno-unsafe-math-optimizations">,
442   Group<f_Group>;
443 def fassociative_math : Flag<["-"], "fassociative-math">, Group<f_Group>;
444 def fno_associative_math : Flag<["-"], "fno-associative-math">, Group<f_Group>;
445 def freciprocal_math : Flag<["-"], "freciprocal-math">, Group<f_Group>;
446 def fno_reciprocal_math : Flag<["-"], "fno-reciprocal-math">, Group<f_Group>;
447 def ffinite_math_only : Flag<["-"], "ffinite-math-only">, Group<f_Group>, Flags<[CC1Option]>;
448 def fno_finite_math_only : Flag<["-"], "fno-finite-math-only">, Group<f_Group>;
449 def fsigned_zeros : Flag<["-"], "fsigned-zeros">, Group<f_Group>;
450 def fno_signed_zeros : Flag<["-"], "fno-signed-zeros">, Group<f_Group>;
451 def fhonor_nans : Flag<["-"], "fhonor-nans">, Group<f_Group>;
452 def fno_honor_nans : Flag<["-"], "fno-honor-nans">, Group<f_Group>;
453 def fhonor_infinities : Flag<["-"], "fhonor-infinities">, Group<f_Group>;
454 def fno_honor_infinities : Flag<["-"], "fno-honor-infinities">, Group<f_Group>;
455 // Sic. This option was misspelled originally.
456 def fhonor_infinites : Flag<["-"], "fhonor-infinites">, Alias<fhonor_infinities>;
457 def fno_honor_infinites : Flag<["-"], "fno-honor-infinites">, Alias<fno_honor_infinities>;
458 def ftrapping_math : Flag<["-"], "ftrapping-math">, Group<f_Group>;
459 def fno_trapping_math : Flag<["-"], "fno-trapping-math">, Group<f_Group>;
460 def ffp_contract : Joined<["-"], "ffp-contract=">, Group<f_Group>,
461   Flags<[CC1Option]>, HelpText<"Form fused FP ops (e.g. FMAs): fast (everywhere)"
462   " | on (according to FP_CONTRACT pragma, default) | off (never fuse)">;
463
464 def ffor_scope : Flag<["-"], "ffor-scope">, Group<f_Group>;
465 def fno_for_scope : Flag<["-"], "fno-for-scope">, Group<f_Group>;
466
467 def frewrite_includes : Flag<["-"], "frewrite-includes">, Group<f_Group>,
468   Flags<[CC1Option]>;
469 def fno_rewrite_includes : Flag<["-"], "fno-rewrite-includes">, Group<f_Group>;
470
471 def ffreestanding : Flag<["-"], "ffreestanding">, Group<f_Group>, Flags<[CC1Option]>,
472   HelpText<"Assert that the compilation takes place in a freestanding environment">;
473 def fformat_extensions: Flag<["-"], "fformat-extensions">, Group<f_Group>, Flags<[CC1Option]>,
474   HelpText<"Enable FreeBSD kernel specific format string extensions">;
475 def fgnu_keywords : Flag<["-"], "fgnu-keywords">, Group<f_Group>, Flags<[CC1Option]>,
476   HelpText<"Allow GNU-extension keywords regardless of language standard">;
477 def fgnu89_inline : Flag<["-"], "fgnu89-inline">, Group<f_Group>, Flags<[CC1Option]>,
478   HelpText<"Use the gnu89 inline semantics">;
479 def fno_gnu89_inline : Flag<["-"], "fno-gnu89-inline">, Group<f_Group>;
480 def fgnu_runtime : Flag<["-"], "fgnu-runtime">, Group<f_Group>,
481   HelpText<"Generate output compatible with the standard GNU Objective-C runtime">;
482 def fheinous_gnu_extensions : Flag<["-"], "fheinous-gnu-extensions">, Flags<[CC1Option]>;
483 def filelist : Separate<["-"], "filelist">, Flags<[LinkerInput]>;
484 def findirect_virtual_calls : Flag<["-"], "findirect-virtual-calls">, Alias<fapple_kext>;
485 def finline_functions : Flag<["-"], "finline-functions">, Group<clang_ignored_f_Group>;
486 def finline : Flag<["-"], "finline">, Group<clang_ignored_f_Group>;
487 def finstrument_functions : Flag<["-"], "finstrument-functions">, Group<f_Group>, Flags<[CC1Option]>,
488   HelpText<"Generate calls to instrument function entry and exit">;
489 def fkeep_inline_functions : Flag<["-"], "fkeep-inline-functions">, Group<clang_ignored_f_Group>;
490 def flat__namespace : Flag<["-"], "flat_namespace">;
491 def flax_vector_conversions : Flag<["-"], "flax-vector-conversions">, Group<f_Group>;
492 def flimit_debug_info : Flag<["-"], "flimit-debug-info">, Group<f_Group>, Flags<[CC1Option]>,
493   HelpText<"Limit debug information produced to reduce size of debug binary">;
494 def flimited_precision_EQ : Joined<["-"], "flimited-precision=">, Group<f_Group>;
495 def flto : Flag<["-"], "flto">, Group<f_Group>;
496 def fno_lto : Flag<["-"], "fno-lto">, Group<f_Group>;
497 def fmacro_backtrace_limit_EQ : Joined<["-"], "fmacro-backtrace-limit=">,
498                                 Group<f_Group>;
499 def fmerge_all_constants : Flag<["-"], "fmerge-all-constants">, Group<f_Group>;
500 def fmessage_length_EQ : Joined<["-"], "fmessage-length=">, Group<f_Group>;
501 def fms_extensions : Flag<["-"], "fms-extensions">, Group<f_Group>, Flags<[CC1Option]>,
502   HelpText<"Accept some non-standard constructs supported by the Microsoft compiler">;
503 def fms_compatibility : Flag<["-"], "fms-compatibility">, Group<f_Group>, Flags<[CC1Option]>,
504   HelpText<"Enable Microsoft compatibility mode">;
505 def fmsc_version : Joined<["-"], "fmsc-version=">, Group<f_Group>, Flags<[CC1Option]>,
506   HelpText<"Version of the Microsoft C/C++ compiler to report in _MSC_VER (0 = don't define it (default))">;
507 def fdelayed_template_parsing : Flag<["-"], "fdelayed-template-parsing">, Group<f_Group>,
508   HelpText<"Parse templated function definitions at the end of the "
509            "translation unit ">,  Flags<[CC1Option]>;
510 def fmodules_cache_path : Joined<["-"], "fmodules-cache-path=">, Group<i_Group>,
511   Flags<[NoForward,CC1Option]>, MetaVarName<"<directory>">,
512   HelpText<"Specify the module cache path">;
513 def fmodules_prune_interval : Joined<["-"], "fmodules-prune-interval=">, Group<i_Group>,
514   Flags<[CC1Option]>, MetaVarName<"<seconds>">,
515   HelpText<"Specify the interval (in seconds) between attempts to prune the module cache">;
516 def fmodules_prune_after : Joined<["-"], "fmodules-prune-after=">, Group<i_Group>,
517   Flags<[CC1Option]>, MetaVarName<"<seconds>">,
518   HelpText<"Specify the interval (in seconds) after which a module file will be considered unused">;
519 def fmodules : Flag <["-"], "fmodules">, Group<f_Group>, Flags<[NoForward,CC1Option]>,
520   HelpText<"Enable the 'modules' language feature">;
521 def fmodules_ignore_macro : Joined<["-"], "fmodules-ignore-macro=">, Group<f_Group>, Flags<[CC1Option]>,
522   HelpText<"Ignore the definition of the given macro when building and loading modules">;
523 def fretain_comments_from_system_headers : Flag<["-"], "fretain-comments-from-system-headers">, Group<f_Group>, Flags<[CC1Option]>;
524
525 def fmudflapth : Flag<["-"], "fmudflapth">, Group<f_Group>;
526 def fmudflap : Flag<["-"], "fmudflap">, Group<f_Group>;
527 def fnested_functions : Flag<["-"], "fnested-functions">, Group<f_Group>;
528 def fnext_runtime : Flag<["-"], "fnext-runtime">, Group<f_Group>;
529 def fno_access_control : Flag<["-"], "fno-access-control">, Group<f_Group>, Flags<[CC1Option]>,
530   HelpText<"Disable C++ access control">;
531 def fno_apple_pragma_pack : Flag<["-"], "fno-apple-pragma-pack">, Group<f_Group>;
532 def fno_asm : Flag<["-"], "fno-asm">, Group<f_Group>;
533 def fno_asynchronous_unwind_tables : Flag<["-"], "fno-asynchronous-unwind-tables">, Group<f_Group>;
534 def fno_assume_sane_operator_new : Flag<["-"], "fno-assume-sane-operator-new">, Group<f_Group>,
535   HelpText<"Don't assume that C++'s global operator new can't alias any pointer">,
536   Flags<[CC1Option]>;
537 def fno_blocks : Flag<["-"], "fno-blocks">, Group<f_Group>;
538 def fno_borland_extensions : Flag<["-"], "fno-borland-extensions">, Group<f_Group>;
539 def fno_builtin_strcat : Flag<["-"], "fno-builtin-strcat">, Group<f_Group>;
540 def fno_builtin_strcpy : Flag<["-"], "fno-builtin-strcpy">, Group<f_Group>;
541 def fno_builtin : Flag<["-"], "fno-builtin">, Group<f_Group>, Flags<[CC1Option]>,
542   HelpText<"Disable implicit builtin knowledge of functions">;
543 def fno_caret_diagnostics : Flag<["-"], "fno-caret-diagnostics">, Group<f_Group>,
544  Flags<[CC1Option]>;
545 def fno_color_diagnostics : Flag<["-"], "fno-color-diagnostics">, Group<f_Group>;
546 def fno_diagnostics_color : Flag<["-"], "fno-diagnostics-color">, Group<f_Group>;
547 def fno_common : Flag<["-"], "fno-common">, Group<f_Group>, Flags<[CC1Option]>,
548     HelpText<"Compile common globals like normal definitions">;
549 def fno_constant_cfstrings : Flag<["-"], "fno-constant-cfstrings">, Group<f_Group>,
550   Flags<[CC1Option]>,
551   HelpText<"Disable creation of CodeFoundation-type constant strings">;
552 def fno_cxx_exceptions: Flag<["-"], "fno-cxx-exceptions">, Group<f_Group>;
553 def fno_cxx_modules : Flag <["-"], "fno-cxx-modules">, Group<f_Group>, Flags<[NoForward]>;
554 def fno_diagnostics_fixit_info : Flag<["-"], "fno-diagnostics-fixit-info">, Group<f_Group>,
555   Flags<[CC1Option]>, HelpText<"Do not include fixit information in diagnostics">;
556 def fno_diagnostics_show_name : Flag<["-"], "fno-diagnostics-show-name">, Group<f_Group>;
557 def fno_diagnostics_show_option : Flag<["-"], "fno-diagnostics-show-option">, Group<f_Group>;
558 def fno_diagnostics_show_note_include_stack : Flag<["-"], "fno-diagnostics-show-note-include-stack">,
559     Flags<[CC1Option]>, Group<f_Group>, HelpText<"Display include stacks for diagnostic notes">;
560 def fno_dollars_in_identifiers : Flag<["-"], "fno-dollars-in-identifiers">, Group<f_Group>,
561   HelpText<"Disallow '$' in identifiers">, Flags<[CC1Option]>;
562 def fno_elide_constructors : Flag<["-"], "fno-elide-constructors">, Group<f_Group>,
563   HelpText<"Disable C++ copy constructor elision">, Flags<[CC1Option]>;
564 def fno_eliminate_unused_debug_symbols : Flag<["-"], "fno-eliminate-unused-debug-symbols">, Group<f_Group>;
565 def fno_exceptions : Flag<["-"], "fno-exceptions">, Group<f_Group>;
566 def fno_gnu_keywords : Flag<["-"], "fno-gnu-keywords">, Group<f_Group>, Flags<[CC1Option]>;
567 def fno_inline_functions : Flag<["-"], "fno-inline-functions">, Group<f_clang_Group>, Flags<[CC1Option]>;
568 def fno_inline : Flag<["-"], "fno-inline">, Group<f_clang_Group>, Flags<[CC1Option]>;
569 def fno_keep_inline_functions : Flag<["-"], "fno-keep-inline-functions">, Group<clang_ignored_f_Group>;
570 def fno_lax_vector_conversions : Flag<["-"], "fno-lax-vector-conversions">, Group<f_Group>,
571   HelpText<"Disallow implicit conversions between vectors with a different number of elements or different element types">, Flags<[CC1Option]>;
572 def fno_limit_debug_info : Flag<["-"], "fno-limit-debug-info">, Group<f_Group>, Flags<[CC1Option]>,
573   HelpText<"Do not limit debug information produced to reduce size of debug binary">;
574 def fno_merge_all_constants : Flag<["-"], "fno-merge-all-constants">, Group<f_Group>,
575     Flags<[CC1Option]>, HelpText<"Disallow merging of constants">;
576 def fno_modules : Flag <["-"], "fno-modules">, Group<f_Group>, Flags<[NoForward]>;
577 def fno_ms_extensions : Flag<["-"], "fno-ms-extensions">, Group<f_Group>;
578 def fno_ms_compatibility : Flag<["-"], "fno-ms-compatibility">, Group<f_Group>;
579 def fno_delayed_template_parsing : Flag<["-"], "fno-delayed-template-parsing">, Group<f_Group>;
580 def fno_objc_exceptions: Flag<["-"], "fno-objc-exceptions">, Group<f_Group>;
581 def fno_objc_legacy_dispatch : Flag<["-"], "fno-objc-legacy-dispatch">, Group<f_Group>;
582 def fno_omit_frame_pointer : Flag<["-"], "fno-omit-frame-pointer">, Group<f_Group>;
583 def fno_operator_names : Flag<["-"], "fno-operator-names">, Group<f_Group>,
584   HelpText<"Do not treat C++ operator name keywords as synonyms for operators">,
585   Flags<[CC1Option]>;
586 def fno_pascal_strings : Flag<["-"], "fno-pascal-strings">, Group<f_Group>;
587 def fno_rtti : Flag<["-"], "fno-rtti">, Group<f_Group>, Flags<[CC1Option]>,
588   HelpText<"Disable generation of rtti information">;
589 def fno_short_enums : Flag<["-"], "fno-short-enums">, Group<f_Group>;
590 def fno_show_column : Flag<["-"], "fno-show-column">, Group<f_Group>, Flags<[CC1Option]>,
591   HelpText<"Do not include column number on diagnostics">;
592 def fno_show_source_location : Flag<["-"], "fno-show-source-location">, Group<f_Group>,
593   Flags<[CC1Option]>, HelpText<"Do not include source location information with diagnostics">;
594 def fno_spell_checking : Flag<["-"], "fno-spell-checking">, Group<f_Group>,
595   Flags<[CC1Option]>, HelpText<"Disable spell-checking">;
596 def fno_stack_protector : Flag<["-"], "fno-stack-protector">, Group<f_Group>;
597 def fno_strict_aliasing : Flag<["-"], "fno-strict-aliasing">, Group<f_Group>;
598 def fstruct_path_tbaa : Flag<["-"], "fstruct-path-tbaa">, Group<f_Group>;
599 def fno_strict_enums : Flag<["-"], "fno-strict-enums">, Group<f_Group>;
600 def fno_strict_overflow : Flag<["-"], "fno-strict-overflow">, Group<f_Group>;
601 def fno_threadsafe_statics : Flag<["-"], "fno-threadsafe-statics">, Group<f_Group>,
602   Flags<[CC1Option]>, HelpText<"Do not emit code to make initialization of local statics thread safe">;
603 def fno_use_cxa_atexit : Flag<["-"], "fno-use-cxa-atexit">, Group<f_Group>, Flags<[CC1Option]>,
604   HelpText<"Don't use __cxa_atexit for calling destructors">;
605 def fno_use_init_array : Flag<["-"], "fno-use-init-array">, Group<f_Group>, Flags<[CC1Option]>,
606   HelpText<"Don't use .init_array instead of .ctors">;
607 def fno_unit_at_a_time : Flag<["-"], "fno-unit-at-a-time">, Group<f_Group>;
608 def fno_unwind_tables : Flag<["-"], "fno-unwind-tables">, Group<f_Group>;
609 def fno_verbose_asm : Flag<["-"], "fno-verbose-asm">, Group<f_Group>;
610 def fno_working_directory : Flag<["-"], "fno-working-directory">, Group<f_Group>;
611 def fno_wrapv : Flag<["-"], "fno-wrapv">, Group<f_Group>;
612 def fno_zero_initialized_in_bss : Flag<["-"], "fno-zero-initialized-in-bss">, Group<f_Group>;
613 def fobjc_arc : Flag<["-"], "fobjc-arc">, Group<f_Group>, Flags<[CC1Option]>,
614   HelpText<"Synthesize retain and release calls for Objective-C pointers">;
615 def fno_objc_arc : Flag<["-"], "fno-objc-arc">, Group<f_Group>;
616 def fobjc_arc_exceptions : Flag<["-"], "fobjc-arc-exceptions">, Group<f_Group>, Flags<[CC1Option]>,
617   HelpText<"Use EH-safe code when synthesizing retains and releases in -fobjc-arc">;
618 def fno_objc_arc_exceptions : Flag<["-"], "fno-objc-arc-exceptions">, Group<f_Group>;
619 def fobjc_atdefs : Flag<["-"], "fobjc-atdefs">, Group<clang_ignored_f_Group>;
620 def fobjc_call_cxx_cdtors : Flag<["-"], "fobjc-call-cxx-cdtors">, Group<clang_ignored_f_Group>;
621 def fobjc_exceptions: Flag<["-"], "fobjc-exceptions">, Group<f_Group>,
622   HelpText<"Enable Objective-C exceptions">, Flags<[CC1Option]>;
623
624 def fobjc_gc_only : Flag<["-"], "fobjc-gc-only">, Group<f_Group>, Flags<[CC1Option]>,
625   HelpText<"Use GC exclusively for Objective-C related memory management">;
626 def fobjc_gc : Flag<["-"], "fobjc-gc">, Group<f_Group>, Flags<[CC1Option]>,
627   HelpText<"Enable Objective-C garbage collection">;
628 def fobjc_legacy_dispatch : Flag<["-"], "fobjc-legacy-dispatch">, Group<f_Group>;
629 def fobjc_new_property : Flag<["-"], "fobjc-new-property">, Group<clang_ignored_f_Group>;
630 def fobjc_infer_related_result_type : Flag<["-"], "fobjc-infer-related-result-type">, 
631                                       Group<f_Group>;
632 def fno_objc_infer_related_result_type : Flag<["-"],
633   "fno-objc-infer-related-result-type">, Group<f_Group>,
634   HelpText<
635     "do not infer Objective-C related result type based on method family">,
636   Flags<[CC1Option]>;
637 def fobjc_link_runtime: Flag<["-"], "fobjc-link-runtime">, Group<f_Group>;
638
639 // Objective-C ABI options.
640 def fobjc_runtime_EQ : Joined<["-"], "fobjc-runtime=">, Group<f_Group>, Flags<[CC1Option]>,
641   HelpText<"Specify the target Objective-C runtime kind and version">;
642 def fobjc_abi_version_EQ : Joined<["-"], "fobjc-abi-version=">, Group<f_Group>;
643 def fobjc_nonfragile_abi_version_EQ : Joined<["-"], "fobjc-nonfragile-abi-version=">, Group<f_Group>;
644 def fobjc_nonfragile_abi : Flag<["-"], "fobjc-nonfragile-abi">, Group<f_Group>;
645 def fno_objc_nonfragile_abi : Flag<["-"], "fno-objc-nonfragile-abi">, Group<f_Group>;
646
647 def fobjc_sender_dependent_dispatch : Flag<["-"], "fobjc-sender-dependent-dispatch">, Group<f_Group>;
648 def fobjc : Flag<["-"], "fobjc">, Group<f_Group>;
649 def fomit_frame_pointer : Flag<["-"], "fomit-frame-pointer">, Group<f_Group>;
650 def fopenmp : Flag<["-"], "fopenmp">, Group<f_Group>, Flags<[CC1Option]>;
651 def fno_optimize_sibling_calls : Flag<["-"], "fno-optimize-sibling-calls">, Group<f_Group>;
652 def foptimize_sibling_calls : Flag<["-"], "foptimize-sibling-calls">, Group<f_Group>;
653 def force__cpusubtype__ALL : Flag<["-"], "force_cpusubtype_ALL">;
654 def force__flat__namespace : Flag<["-"], "force_flat_namespace">;
655 def force__load : Separate<["-"], "force_load">;
656 def foutput_class_dir_EQ : Joined<["-"], "foutput-class-dir=">, Group<f_Group>;
657 def fpack_struct : Flag<["-"], "fpack-struct">, Group<f_Group>;
658 def fno_pack_struct : Flag<["-"], "fno-pack-struct">, Group<f_Group>;
659 def fpack_struct_EQ : Joined<["-"], "fpack-struct=">, Group<f_Group>, Flags<[CC1Option]>,
660   HelpText<"Specify the default maximum struct packing alignment">;
661 def fpascal_strings : Flag<["-"], "fpascal-strings">, Group<f_Group>, Flags<[CC1Option]>,
662   HelpText<"Recognize and construct Pascal-style string literals">;
663 def fpch_preprocess : Flag<["-"], "fpch-preprocess">, Group<f_Group>;
664 def fpic : Flag<["-"], "fpic">, Group<f_Group>;
665 def fno_pic : Flag<["-"], "fno-pic">, Group<f_Group>;
666 def fpie : Flag<["-"], "fpie">, Group<f_Group>;
667 def fno_pie : Flag<["-"], "fno-pie">, Group<f_Group>;
668 def fprofile_arcs : Flag<["-"], "fprofile-arcs">, Group<f_Group>;
669 def fprofile_generate : Flag<["-"], "fprofile-generate">, Group<f_Group>;
670 def framework : Separate<["-"], "framework">, Flags<[LinkerInput]>;
671 def frandom_seed_EQ : Joined<["-"], "frandom-seed=">, Group<clang_ignored_f_Group>;
672 def frtti : Flag<["-"], "frtti">, Group<f_Group>;
673 def fsched_interblock : Flag<["-"], "fsched-interblock">, Group<clang_ignored_f_Group>;
674 def fshort_enums : Flag<["-"], "fshort-enums">, Group<f_Group>, Flags<[CC1Option]>,
675   HelpText<"Allocate to an enum type only as many bytes as it needs for the declared range of possible values">;
676 def freorder_blocks : Flag<["-"], "freorder-blocks">, Group<clang_ignored_f_Group>;
677 def fshort_wchar : Flag<["-"], "fshort-wchar">, Group<f_Group>, Flags<[CC1Option]>,
678   HelpText<"Force wchar_t to be a short unsigned int">;
679 def fshow_overloads_EQ : Joined<["-"], "fshow-overloads=">, Group<f_Group>, Flags<[CC1Option]>,
680   HelpText<"Which overload candidates to show when overload resolution fails: "
681            "best|all; defaults to all">;
682 def fshow_column : Flag<["-"], "fshow-column">, Group<f_Group>, Flags<[CC1Option]>;
683 def fshow_source_location : Flag<["-"], "fshow-source-location">, Group<f_Group>;
684 def fspell_checking : Flag<["-"], "fspell-checking">, Group<f_Group>;
685 def fsigned_bitfields : Flag<["-"], "fsigned-bitfields">, Group<f_Group>;
686 def fsigned_char : Flag<["-"], "fsigned-char">, Group<f_Group>;
687 def fsplit_stack : Flag<["-"], "fsplit-stack">, Group<f_Group>;
688 def fstack_protector_all : Flag<["-"], "fstack-protector-all">, Group<f_Group>;
689 def fstack_protector : Flag<["-"], "fstack-protector">, Group<f_Group>;
690 def fstrict_aliasing : Flag<["-"], "fstrict-aliasing">, Group<f_Group>;
691 def fstrict_enums : Flag<["-"], "fstrict-enums">, Group<f_Group>, Flags<[CC1Option]>,
692   HelpText<"Enable optimizations based on the strict definition of an enum's "
693            "value range">;
694 def fstrict_overflow : Flag<["-"], "fstrict-overflow">, Group<f_Group>;
695 def fsyntax_only : Flag<["-"], "fsyntax-only">, Flags<[DriverOption,CC1Option]>, Group<Action_Group>;
696 def ftabstop_EQ : Joined<["-"], "ftabstop=">, Group<f_Group>;
697 def ftemplate_depth_EQ : Joined<["-"], "ftemplate-depth=">, Group<f_Group>;
698 def ftemplate_depth_ : Joined<["-"], "ftemplate-depth-">, Group<f_Group>;
699 def ftemplate_backtrace_limit_EQ : Joined<["-"], "ftemplate-backtrace-limit=">,
700                                    Group<f_Group>;
701 def ftest_coverage : Flag<["-"], "ftest-coverage">, Group<f_Group>;
702 def fvectorize : Flag<["-"], "fvectorize">, Group<f_Group>,
703   HelpText<"Enable the loop vectorization passes">;
704 def fno_vectorize : Flag<["-"], "fno-vectorize">, Group<f_Group>;
705 def ftree_vectorize : Flag<["-"], "ftree-vectorize">, Alias<fvectorize>;
706 def fno_tree_vectorize : Flag<["-"], "fno-tree-vectorize">, Alias<fno_vectorize>;
707 def fslp_vectorize : Flag<["-"], "fslp-vectorize">, Group<f_Group>,
708   HelpText<"Enable the superword-level parallelism vectorization passes">;
709 def fno_slp_vectorize : Flag<["-"], "fno-slp-vectorize">, Group<f_Group>;
710 def fslp_vectorize_aggressive : Flag<["-"], "fslp-vectorize-aggressive">, Group<f_Group>,
711   HelpText<"Enable the BB vectorization passes">;
712 def fno_slp_vectorize_aggressive : Flag<["-"], "fno-slp-vectorize-aggressive">, Group<f_Group>;
713 def ftree_slp_vectorize : Flag<["-"], "ftree-slp-vectorize">, Alias<fslp_vectorize>;
714 def fno_tree_slp_vectorize : Flag<["-"], "fno-tree-slp-vectorize">, Alias<fno_slp_vectorize>;
715 def Wlarge_by_value_copy_def : Flag<["-"], "Wlarge-by-value-copy">,
716   HelpText<"Warn if a function definition returns or accepts an object larger "
717            "in bytes than a given value">, Flags<[HelpHidden]>;
718 def Wlarge_by_value_copy_EQ : Joined<["-"], "Wlarge-by-value-copy=">, Flags<[CC1Option]>;
719
720 // Just silence warnings about -Wlarger-than,  -Wframe-larger-than for now.
721 def Wlarger_than : Separate<["-"], "Wlarger-than">, Group<clang_ignored_f_Group>;
722 def Wlarger_than_EQ : Joined<["-"], "Wlarger-than=">, Alias<Wlarger_than>;
723 def Wlarger_than_ : Joined<["-"], "Wlarger-than-">, Alias<Wlarger_than>;
724 def Wframe_larger_than : Separate<["-"], "Wframe-larger-than">, Group<clang_ignored_f_Group>;
725 def Wframe_larger_than_EQ : Joined<["-"], "Wframe-larger-than=">, Alias<Wframe_larger_than>;
726
727 def fterminated_vtables : Flag<["-"], "fterminated-vtables">, Alias<fapple_kext>;
728 def fthreadsafe_statics : Flag<["-"], "fthreadsafe-statics">, Group<f_Group>;
729 def ftime_report : Flag<["-"], "ftime-report">, Group<f_Group>, Flags<[CC1Option]>;
730 def ftlsmodel_EQ : Joined<["-"], "ftls-model=">, Group<f_Group>, Flags<[CC1Option]>;
731 def ftrapv : Flag<["-"], "ftrapv">, Group<f_Group>, Flags<[CC1Option]>,
732   HelpText<"Trap on integer overflow">;
733 def ftrapv_handler_EQ : Joined<["-"], "ftrapv-handler=">, Group<f_Group>,
734   MetaVarName<"<function name>">,
735   HelpText<"Specify the function to be called on overflow">;
736 def ftrapv_handler : Separate<["-"], "ftrapv-handler">, Group<f_Group>, Flags<[CC1Option]>;
737 def ftrap_function_EQ : Joined<["-"], "ftrap-function=">, Group<f_Group>, Flags<[CC1Option]>,
738   HelpText<"Issue call to specified function rather than a trap instruction">;
739 def funit_at_a_time : Flag<["-"], "funit-at-a-time">, Group<f_Group>;
740 def funroll_loops : Flag<["-"], "funroll-loops">, Group<f_Group>,
741   HelpText<"Turn on loop unroller">, Flags<[CC1Option]>;
742 def funsigned_bitfields : Flag<["-"], "funsigned-bitfields">, Group<f_Group>;
743 def funsigned_char : Flag<["-"], "funsigned-char">, Group<f_Group>;
744 def funwind_tables : Flag<["-"], "funwind-tables">, Group<f_Group>;
745 def fuse_cxa_atexit : Flag<["-"], "fuse-cxa-atexit">, Group<f_Group>;
746 def fuse_init_array : Flag<["-"], "fuse-init-array">, Group<f_Group>, Flags<[CC1Option]>,
747   HelpText<"Use .init_array instead of .ctors">;
748 def fverbose_asm : Flag<["-"], "fverbose-asm">, Group<f_Group>;
749 def fvisibility_EQ : Joined<["-"], "fvisibility=">, Group<f_Group>,
750   HelpText<"Set the default symbol visibility for all global declarations">;
751 def fvisibility_inlines_hidden : Flag<["-"], "fvisibility-inlines-hidden">, Group<f_Group>,
752   HelpText<"Give inline C++ member functions default visibility by default">,
753   Flags<[CC1Option]>;
754 def fvisibility_ms_compat : Flag<["-"], "fvisibility-ms-compat">, Group<f_Group>,
755   HelpText<"Give global types 'default' visibility and global functions and "
756            "variables 'hidden' visibility by default">;
757 def fwrapv : Flag<["-"], "fwrapv">, Group<f_Group>, Flags<[CC1Option]>,
758   HelpText<"Treat signed integer overflow as two's complement">;
759 def fwritable_strings : Flag<["-"], "fwritable-strings">, Group<f_Group>, Flags<[CC1Option]>,
760   HelpText<"Store string literals as writable data">;
761 def fzero_initialized_in_bss : Flag<["-"], "fzero-initialized-in-bss">, Group<f_Group>;
762 def ffunction_sections: Flag <["-"], "ffunction-sections">, Group<f_Group>,
763   Flags<[CC1Option]>, HelpText<"Place each function in its own section (ELF Only)">;
764 def fdata_sections : Flag <["-"], "fdata-sections">, Group<f_Group>, Flags<[CC1Option]>,
765   HelpText<"Place each data in its own section (ELF Only)">;
766 def f : Joined<["-"], "f">, Group<f_Group>;
767 def g_Flag : Flag<["-"], "g">, Group<g_Group>,
768   HelpText<"Generate source level debug information">, Flags<[CC1Option]>;
769 def gline_tables_only : Flag<["-"], "gline-tables-only">, Group<g_Group>,
770   HelpText<"Emit debug line number tables only">, Flags<[CC1Option]>;
771 def g0 : Flag<["-"], "g0">, Group<g_Group>;
772 def g1 : Flag<["-"], "g1">, Group<g_Group>;
773 def g2 : Flag<["-"], "g2">, Group<g_Group>;
774 def g3 : Flag<["-"], "g3">, Group<g_Group>;
775 def ggdb : Flag<["-"], "ggdb">, Group<g_Group>;
776 def ggdb0 : Flag<["-"], "ggdb0">, Group<g_Group>;
777 def ggdb1 : Flag<["-"], "ggdb1">, Group<g_Group>;
778 def ggdb2 : Flag<["-"], "ggdb2">, Group<g_Group>;
779 def ggdb3 : Flag<["-"], "ggdb3">, Group<g_Group>;
780 def gdwarf_2 : Flag<["-"], "gdwarf-2">, Group<g_Group>;
781 def gdwarf_3 : Flag<["-"], "gdwarf-3">, Group<g_Group>;
782 def gdwarf_4 : Flag<["-"], "gdwarf-4">, Group<g_Group>;
783 def gfull : Flag<["-"], "gfull">, Group<g_Group>;
784 def gused : Flag<["-"], "gused">, Group<g_Group>;
785 def gstabs : Joined<["-"], "gstabs">, Group<g_Group>, Flags<[Unsupported]>;
786 def gcoff : Joined<["-"], "gcoff">, Group<g_Group>, Flags<[Unsupported]>;
787 def gxcoff : Joined<["-"], "gxcoff">, Group<g_Group>, Flags<[Unsupported]>;
788 def gvms : Joined<["-"], "gvms">, Group<g_Group>, Flags<[Unsupported]>;
789 def gtoggle : Flag<["-"], "gtoggle">, Group<g_flags_Group>, Flags<[Unsupported]>;
790 def grecord_gcc_switches : Flag<["-"], "grecord-gcc-switches">, Group<g_flags_Group>;
791 def gno_record_gcc_switches : Flag<["-"], "gno-record-gcc-switches">,
792   Group<g_flags_Group>;
793 def gstrict_dwarf : Flag<["-"], "gstrict-dwarf">, Group<g_flags_Group>;
794 def gno_strict_dwarf : Flag<["-"], "gno-strict-dwarf">, Group<g_flags_Group>;
795 def gcolumn_info : Flag<["-"], "gcolumn-info">, Group<g_flags_Group>;
796 def gsplit_dwarf : Flag<["-"], "gsplit-dwarf">, Group<g_flags_Group>;
797 def headerpad__max__install__names : Joined<["-"], "headerpad_max_install_names">;
798 def help : Flag<["-", "--"], "help">, Flags<[CC1Option]>,
799   HelpText<"Display available options">;
800 def index_header_map : Flag<["-"], "index-header-map">, Flags<[CC1Option]>,
801   HelpText<"Make the next included directory (-I or -F) an indexer header map">;
802 def idirafter : JoinedOrSeparate<["-"], "idirafter">, Group<clang_i_Group>, Flags<[CC1Option]>,
803   HelpText<"Add directory to AFTER include search path">;
804 def iframework : JoinedOrSeparate<["-"], "iframework">, Group<clang_i_Group>, Flags<[CC1Option]>,
805   HelpText<"Add directory to SYSTEM framework search path">;
806 def imacros : JoinedOrSeparate<["-", "--"], "imacros">, Group<clang_i_Group>, Flags<[CC1Option]>,
807   HelpText<"Include macros from file before parsing">, MetaVarName<"<file>">;
808 def image__base : Separate<["-"], "image_base">;
809 def include_ : JoinedOrSeparate<["-", "--"], "include">, Group<clang_i_Group>, EnumName<"include">,
810     MetaVarName<"<file>">, HelpText<"Include file before parsing">, Flags<[CC1Option]>;
811 def include_pch : Separate<["-"], "include-pch">, Group<clang_i_Group>, Flags<[CC1Option]>,
812   HelpText<"Include precompiled header file">, MetaVarName<"<file>">;
813 def init : Separate<["-"], "init">;
814 def install__name : Separate<["-"], "install_name">;
815 def integrated_as : Flag<["-"], "integrated-as">, Flags<[DriverOption]>;
816 def iprefix : JoinedOrSeparate<["-"], "iprefix">, Group<clang_i_Group>, Flags<[CC1Option]>,
817   HelpText<"Set the -iwithprefix/-iwithprefixbefore prefix">, MetaVarName<"<dir>">;
818 def iquote : JoinedOrSeparate<["-"], "iquote">, Group<clang_i_Group>, Flags<[CC1Option]>,
819   HelpText<"Add directory to QUOTE include search path">, MetaVarName<"<directory>">;
820 def isysroot : JoinedOrSeparate<["-"], "isysroot">, Group<clang_i_Group>, Flags<[CC1Option]>,
821   HelpText<"Set the system root directory (usually /)">, MetaVarName<"<dir>">;
822 def isystem : JoinedOrSeparate<["-"], "isystem">, Group<clang_i_Group>, Flags<[CC1Option]>,
823   HelpText<"Add directory to SYSTEM include search path">, MetaVarName<"<directory>">;
824 def iwithprefixbefore : JoinedOrSeparate<["-"], "iwithprefixbefore">, Group<clang_i_Group>,
825   HelpText<"Set directory to include search path with prefix">, MetaVarName<"<dir>">,
826   Flags<[CC1Option]>;
827 def iwithprefix : JoinedOrSeparate<["-"], "iwithprefix">, Group<clang_i_Group>, Flags<[CC1Option]>,
828   HelpText<"Set directory to SYSTEM include search path with prefix">, MetaVarName<"<dir>">;
829 def iwithsysroot : JoinedOrSeparate<["-"], "iwithsysroot">, Group<clang_i_Group>,
830   HelpText<"Add directory to SYSTEM include search path, "
831            "absolute paths are relative to -isysroot">, MetaVarName<"<directory>">,
832   Flags<[CC1Option]>;
833 def i : Joined<["-"], "i">, Group<i_Group>;
834 def keep__private__externs : Flag<["-"], "keep_private_externs">;
835 def l : JoinedOrSeparate<["-"], "l">, Flags<[LinkerInput, RenderJoined]>;
836 def lazy__framework : Separate<["-"], "lazy_framework">, Flags<[LinkerInput]>;
837 def lazy__library : Separate<["-"], "lazy_library">, Flags<[LinkerInput]>;
838 def EL : Flag<["-"], "EL">, Flags<[DriverOption]>;
839 def EB : Flag<["-"], "EB">, Flags<[DriverOption]>;
840 def m32 : Flag<["-"], "m32">, Group<m_Group>, Flags<[DriverOption]>;
841 def mqdsp6_compat : Flag<["-"], "mqdsp6-compat">, Group<m_Group>, Flags<[DriverOption,CC1Option]>,
842   HelpText<"Enable hexagon-qdsp6 backward compatibility">;
843 def m3dnowa : Flag<["-"], "m3dnowa">, Group<m_x86_Features_Group>;
844 def m3dnow : Flag<["-"], "m3dnow">, Group<m_x86_Features_Group>;
845 def m64 : Flag<["-"], "m64">, Group<m_Group>, Flags<[DriverOption]>;
846 def mabi_EQ : Joined<["-"], "mabi=">, Group<m_Group>;
847 def march_EQ : Joined<["-"], "march=">, Group<m_Group>;
848 def maltivec : Flag<["-"], "maltivec">, Alias<faltivec>;
849 def mno_altivec : Flag<["-"], "mno-altivec">, Alias<fno_altivec>;
850 def mfprnd : Flag<["-"], "mfprnd">, Group<m_Group>;
851 def mno_fprnd : Flag<["-"], "mno-fprnd">, Group<m_Group>;
852 def mmfcrf : Flag<["-"], "mmfcrf">, Group<m_Group>;
853 def mno_mfcrf : Flag<["-"], "mno-mfcrf">, Group<m_Group>;
854 def mpopcntd : Flag<["-"], "mpopcntd">, Group<m_Group>;
855 def mno_popcntd : Flag<["-"], "mno-popcntd">, Group<m_Group>;
856 def mqpx : Flag<["-"], "mqpx">, Group<m_Group>;
857 def mno_qpx : Flag<["-"], "mno-qpx">, Group<m_Group>;
858 def mcmodel_EQ : Joined<["-"], "mcmodel=">, Group<m_Group>;
859 def mconstant_cfstrings : Flag<["-"], "mconstant-cfstrings">, Group<clang_ignored_m_Group>;
860 def mcpu_EQ : Joined<["-"], "mcpu=">, Group<m_Group>;
861 def mdynamic_no_pic : Joined<["-"], "mdynamic-no-pic">, Group<m_Group>;
862 def mfix_and_continue : Flag<["-"], "mfix-and-continue">, Group<clang_ignored_m_Group>;
863 def mfloat_abi_EQ : Joined<["-"], "mfloat-abi=">, Group<m_Group>;
864 def mfpmath_EQ : Joined<["-"], "mfpmath=">, Group<m_Group>;
865 def mfpu_EQ : Joined<["-"], "mfpu=">, Group<m_Group>;
866 def mglobal_merge : Flag<["-"], "mglobal-merge">, Group<m_Group>;
867 def mhard_float : Flag<["-"], "mhard-float">, Group<m_Group>;
868 def miphoneos_version_min_EQ : Joined<["-"], "miphoneos-version-min=">, Group<m_Group>;
869 def mios_version_min_EQ : Joined<["-"], "mios-version-min=">, Alias<miphoneos_version_min_EQ>;
870 def mios_simulator_version_min_EQ : Joined<["-"], "mios-simulator-version-min=">, Group<m_Group>;
871 def mkernel : Flag<["-"], "mkernel">, Group<m_Group>;
872 def mlinker_version_EQ : Joined<["-"], "mlinker-version=">, Flags<[NoForward]>;
873 def mllvm : Separate<["-"], "mllvm">, Flags<[CC1Option]>,
874   HelpText<"Additional arguments to forward to LLVM's option processing">;
875 def mmacosx_version_min_EQ : Joined<["-"], "mmacosx-version-min=">, Group<m_Group>;
876 def mms_bitfields : Flag<["-"], "mms-bitfields">, Group<m_Group>, Flags<[CC1Option]>,
877   HelpText<"Set the default structure layout to be compatible with the Microsoft compiler standard">;
878 def mstackrealign : Flag<["-"], "mstackrealign">, Group<m_Group>, Flags<[CC1Option]>,
879   HelpText<"Force realign the stack at entry to every function">;
880 def mstack_alignment : Joined<["-"], "mstack-alignment=">, Group<m_Group>, Flags<[CC1Option]>,
881   HelpText<"Set the stack alignment">;
882 def mstrict_align : Flag<["-"], "mstrict-align">, Group<m_Group>, Flags<[CC1Option]>,
883   HelpText<"Force all memory accesses to be aligned (ARM only)">;
884 def mmmx : Flag<["-"], "mmmx">, Group<m_x86_Features_Group>;
885 def mno_3dnowa : Flag<["-"], "mno-3dnowa">, Group<m_x86_Features_Group>;
886 def mno_3dnow : Flag<["-"], "mno-3dnow">, Group<m_x86_Features_Group>;
887 def mno_constant_cfstrings : Flag<["-"], "mno-constant-cfstrings">, Group<m_Group>;
888 def mno_global_merge : Flag<["-"], "mno-global-merge">, Group<m_Group>, Flags<[CC1Option]>,
889   HelpText<"Disable merging of globals">;
890 def mno_mmx : Flag<["-"], "mno-mmx">, Group<m_x86_Features_Group>;
891 def mno_pascal_strings : Flag<["-"], "mno-pascal-strings">, Group<m_Group>;
892 def mno_red_zone : Flag<["-"], "mno-red-zone">, Group<m_Group>;
893 def mno_relax_all : Flag<["-"], "mno-relax-all">, Group<m_Group>;
894 def mno_rtd: Flag<["-"], "mno-rtd">, Group<m_Group>;
895 def mno_soft_float : Flag<["-"], "mno-soft-float">, Group<m_Group>;
896 def mno_stackrealign : Flag<["-"], "mno-stackrealign">, Group<m_Group>;
897 def mno_sse2 : Flag<["-"], "mno-sse2">, Group<m_x86_Features_Group>;
898 def mno_sse3 : Flag<["-"], "mno-sse3">, Group<m_x86_Features_Group>;
899 def mno_sse4a : Flag<["-"], "mno-sse4a">, Group<m_x86_Features_Group>;
900 def mno_sse4 : Flag<["-"], "mno-sse4">, Group<m_x86_Features_Group>;
901 def mno_sse4_1 : Flag<["-"], "mno-sse4.1">, Group<m_x86_Features_Group>;
902 def mno_sse4_2 : Flag<["-"], "mno-sse4.2">, Group<m_x86_Features_Group>;
903 def mno_sse : Flag<["-"], "mno-sse">, Group<m_x86_Features_Group>;
904 def mno_ssse3 : Flag<["-"], "mno-ssse3">, Group<m_x86_Features_Group>;
905 def mno_aes : Flag<["-"], "mno-aes">, Group<m_x86_Features_Group>;
906 def mno_avx : Flag<["-"], "mno-avx">, Group<m_x86_Features_Group>;
907 def mno_avx2 : Flag<["-"], "mno-avx2">, Group<m_x86_Features_Group>;
908 def mno_pclmul : Flag<["-"], "mno-pclmul">, Group<m_x86_Features_Group>;
909 def mno_lzcnt : Flag<["-"], "mno-lzcnt">, Group<m_x86_Features_Group>;
910 def mno_rdrnd : Flag<["-"], "mno-rdrnd">, Group<m_x86_Features_Group>;
911 def mno_bmi : Flag<["-"], "mno-bmi">, Group<m_x86_Features_Group>;
912 def mno_bmi2 : Flag<["-"], "mno-bmi2">, Group<m_x86_Features_Group>;
913 def mno_popcnt : Flag<["-"], "mno-popcnt">, Group<m_x86_Features_Group>;
914 def mno_fma4 : Flag<["-"], "mno-fma4">, Group<m_x86_Features_Group>;
915 def mno_fma : Flag<["-"], "mno-fma">, Group<m_x86_Features_Group>;
916 def mno_xop : Flag<["-"], "mno-xop">, Group<m_x86_Features_Group>;
917 def mno_f16c : Flag<["-"], "mno-f16c">, Group<m_x86_Features_Group>;
918 def mno_rtm : Flag<["-"], "mno-rtm">, Group<m_x86_Features_Group>;
919 def mno_prfchw : Flag<["-"], "mno-prfchw">, Group<m_x86_Features_Group>;
920 def mno_rdseed : Flag<["-"], "mno-rdseed">, Group<m_x86_Features_Group>;
921
922 def mno_thumb : Flag<["-"], "mno-thumb">, Group<m_Group>;
923 def marm : Flag<["-"], "marm">, Alias<mno_thumb>;
924
925 def mno_warn_nonportable_cfstrings : Flag<["-"], "mno-warn-nonportable-cfstrings">, Group<m_Group>;
926 def mno_omit_leaf_frame_pointer : Flag<["-"], "mno-omit-leaf-frame-pointer">, Group<m_Group>;
927 def momit_leaf_frame_pointer : Flag<["-"], "momit-leaf-frame-pointer">, Group<m_Group>,
928   HelpText<"Omit frame pointer setup for leaf functions">, Flags<[CC1Option]>;
929 def moslib_EQ : Joined<["-"], "moslib=">, Group<m_Group>;
930 def mpascal_strings : Flag<["-"], "mpascal-strings">, Group<m_Group>;
931 def mred_zone : Flag<["-"], "mred-zone">, Group<m_Group>;
932 def mregparm_EQ : Joined<["-"], "mregparm=">, Group<m_Group>;
933 def mrelax_all : Flag<["-"], "mrelax-all">, Group<m_Group>, Flags<[CC1Option]>,
934   HelpText<"(integrated-as) Relax all machine instructions">;
935 def mrtd : Flag<["-"], "mrtd">, Group<m_Group>, Flags<[CC1Option]>,
936   HelpText<"Make StdCall calling convention the default">;
937 def msmall_data_threshold_EQ : Joined <["-"], "msmall-data-threshold=">, Group<m_Group>;
938 def msoft_float : Flag<["-"], "msoft-float">, Group<m_Group>, Flags<[CC1Option]>,
939   HelpText<"Use software floating point">;
940 def mno_implicit_float : Flag<["-"], "mno-implicit-float">, Group<m_Group>,
941   HelpText<"Don't generate implicit floating point instructions">;
942 def mimplicit_float : Flag<["-"], "mimplicit-float">, Group<m_Group>;
943 def msse2 : Flag<["-"], "msse2">, Group<m_x86_Features_Group>;
944 def msse3 : Flag<["-"], "msse3">, Group<m_x86_Features_Group>;
945 def msse4a : Flag<["-"], "msse4a">, Group<m_x86_Features_Group>;
946 def msse4 : Flag<["-"], "msse4">, Group<m_x86_Features_Group>;
947 def msse4_1 : Flag<["-"], "msse4.1">, Group<m_x86_Features_Group>;
948 def msse4_2 : Flag<["-"], "msse4.2">, Group<m_x86_Features_Group>;
949 def msse : Flag<["-"], "msse">, Group<m_x86_Features_Group>;
950 def mssse3 : Flag<["-"], "mssse3">, Group<m_x86_Features_Group>;
951 def maes : Flag<["-"], "maes">, Group<m_x86_Features_Group>;
952 def mavx : Flag<["-"], "mavx">, Group<m_x86_Features_Group>;
953 def mavx2 : Flag<["-"], "mavx2">, Group<m_x86_Features_Group>;
954 def mpclmul : Flag<["-"], "mpclmul">, Group<m_x86_Features_Group>;
955 def mlzcnt : Flag<["-"], "mlzcnt">, Group<m_x86_Features_Group>;
956 def mrdrnd : Flag<["-"], "mrdrnd">, Group<m_x86_Features_Group>;
957 def mbmi : Flag<["-"], "mbmi">, Group<m_x86_Features_Group>;
958 def mbmi2 : Flag<["-"], "mbmi2">, Group<m_x86_Features_Group>;
959 def mpopcnt : Flag<["-"], "mpopcnt">, Group<m_x86_Features_Group>;
960 def mfma4 : Flag<["-"], "mfma4">, Group<m_x86_Features_Group>;
961 def mfma : Flag<["-"], "mfma">, Group<m_x86_Features_Group>;
962 def mxop : Flag<["-"], "mxop">, Group<m_x86_Features_Group>;
963 def mf16c : Flag<["-"], "mf16c">, Group<m_x86_Features_Group>;
964 def mrtm : Flag<["-"], "mrtm">, Group<m_x86_Features_Group>;
965 def mprfchw : Flag<["-"], "mprfchw">, Group<m_x86_Features_Group>;
966 def mrdseed : Flag<["-"], "mrdseed">, Group<m_x86_Features_Group>;
967 def mips16 : Flag<["-"], "mips16">, Group<m_Group>;
968 def mno_mips16 : Flag<["-"], "mno-mips16">, Group<m_Group>;
969 def mmicromips : Flag<["-"], "mmicromips">, Group<m_Group>;
970 def mno_micromips : Flag<["-"], "mno-micromips">, Group<m_Group>;
971 def mxgot : Flag<["-"], "mxgot">, Group<m_Group>;
972 def mno_xgot : Flag<["-"], "mno-xgot">, Group<m_Group>;
973 def mdsp : Flag<["-"], "mdsp">, Group<m_Group>;
974 def mno_dsp : Flag<["-"], "mno-dsp">, Group<m_Group>;
975 def mdspr2 : Flag<["-"], "mdspr2">, Group<m_Group>;
976 def mno_dspr2 : Flag<["-"], "mno-dspr2">, Group<m_Group>;
977 def msingle_float : Flag<["-"], "msingle-float">, Group<m_Group>;
978 def mdouble_float : Flag<["-"], "mdouble-float">, Group<m_Group>;
979 def mips32 : Flag<["-"], "mips32">, Group<mips_CPUs_Group>,
980   HelpText<"Equivalent to -march=mips32">, Flags<[HelpHidden]>;
981 def mips32r2 : Flag<["-"], "mips32r2">, Group<mips_CPUs_Group>,
982   HelpText<"Equivalent to -march=mips32r2">, Flags<[HelpHidden]>;
983 def mips64 : Flag<["-"], "mips64">, Group<mips_CPUs_Group>,
984   HelpText<"Equivalent to -march=mips64">, Flags<[HelpHidden]>;
985 def mips64r2 : Flag<["-"], "mips64r2">, Group<mips_CPUs_Group>,
986   HelpText<"Equivalent to -march=mips64r2">, Flags<[HelpHidden]>;
987 def module_file_info : Flag<["-"], "module-file-info">, Flags<[DriverOption,CC1Option]>, Group<Action_Group>;
988 def mthumb : Flag<["-"], "mthumb">, Group<m_Group>;
989 def mtune_EQ : Joined<["-"], "mtune=">, Group<m_Group>;
990 def multi__module : Flag<["-"], "multi_module">;
991 def multiply__defined__unused : Separate<["-"], "multiply_defined_unused">;
992 def multiply__defined : Separate<["-"], "multiply_defined">;
993 def mwarn_nonportable_cfstrings : Flag<["-"], "mwarn-nonportable-cfstrings">, Group<m_Group>;
994 def m_Separate : Separate<["-"], "m">, Group<m_Group>;
995 def m_Joined : Joined<["-"], "m">, Group<m_Group>;
996 def no_canonical_prefixes : Flag<["-"], "no-canonical-prefixes">, Flags<[HelpHidden]>,
997   HelpText<"Use relative instead of canonical paths">;
998 def no_cpp_precomp : Flag<["-"], "no-cpp-precomp">, Group<clang_ignored_f_Group>;
999 def no_integrated_as : Flag<["-"], "no-integrated-as">, Flags<[DriverOption]>;
1000 def no_integrated_cpp : Flag<["-", "--"], "no-integrated-cpp">, Flags<[DriverOption]>;
1001 def no_pedantic : Flag<["-", "--"], "no-pedantic">, Group<pedantic_Group>;
1002 def no__dead__strip__inits__and__terms : Flag<["-"], "no_dead_strip_inits_and_terms">;
1003 def nobuiltininc : Flag<["-"], "nobuiltininc">, Flags<[CC1Option]>,
1004   HelpText<"Disable builtin #include directories">;
1005 def nodefaultlibs : Flag<["-"], "nodefaultlibs">;
1006 def nofixprebinding : Flag<["-"], "nofixprebinding">;
1007 def nolibc : Flag<["-"], "nolibc">;
1008 def nomultidefs : Flag<["-"], "nomultidefs">;
1009 def noprebind : Flag<["-"], "noprebind">;
1010 def noseglinkedit : Flag<["-"], "noseglinkedit">;
1011 def nostartfiles : Flag<["-"], "nostartfiles">;
1012 def nostdinc : Flag<["-"], "nostdinc">;
1013 def nostdlibinc : Flag<["-"], "nostdlibinc">;
1014 def nostdincxx : Flag<["-"], "nostdinc++">, Flags<[CC1Option]>,
1015   HelpText<"Disable standard #include directories for the C++ standard library">;
1016 def nostdlib : Flag<["-"], "nostdlib">;
1017 def object : Flag<["-"], "object">;
1018 def o : JoinedOrSeparate<["-"], "o">, Flags<[DriverOption, RenderAsInput, CC1Option]>,
1019   HelpText<"Write output to <file>">, MetaVarName<"<file>">;
1020 def pagezero__size : JoinedOrSeparate<["-"], "pagezero_size">;
1021 def pass_exit_codes : Flag<["-", "--"], "pass-exit-codes">, Flags<[Unsupported]>;
1022 def pedantic_errors : Flag<["-", "--"], "pedantic-errors">, Group<pedantic_Group>, Flags<[CC1Option]>;
1023 def pedantic : Flag<["-", "--"], "pedantic">, Group<pedantic_Group>, Flags<[CC1Option]>;
1024 def pg : Flag<["-"], "pg">, HelpText<"Enable mcount instrumentation">, Flags<[CC1Option]>;
1025 def pipe : Flag<["-", "--"], "pipe">,
1026   HelpText<"Use pipes between commands, when possible">;
1027 def prebind__all__twolevel__modules : Flag<["-"], "prebind_all_twolevel_modules">;
1028 def prebind : Flag<["-"], "prebind">;
1029 def preload : Flag<["-"], "preload">;
1030 def print_file_name_EQ : Joined<["-", "--"], "print-file-name=">,
1031   HelpText<"Print the full library path of <file>">, MetaVarName<"<file>">;
1032 def print_ivar_layout : Flag<["-"], "print-ivar-layout">, Flags<[CC1Option]>,
1033   HelpText<"Enable Objective-C Ivar layout bitmap print trace">;
1034 def print_libgcc_file_name : Flag<["-", "--"], "print-libgcc-file-name">,
1035   HelpText<"Print the library path for \"libgcc.a\"">;
1036 def print_multi_directory : Flag<["-", "--"], "print-multi-directory">;
1037 def print_multi_lib : Flag<["-", "--"], "print-multi-lib">;
1038 def print_multi_os_directory : Flag<["-", "--"], "print-multi-os-directory">;
1039 def print_prog_name_EQ : Joined<["-", "--"], "print-prog-name=">,
1040   HelpText<"Print the full program path of <name>">, MetaVarName<"<name>">;
1041 def print_search_dirs : Flag<["-", "--"], "print-search-dirs">,
1042   HelpText<"Print the paths used for finding libraries and programs">;
1043 def private__bundle : Flag<["-"], "private_bundle">;
1044 def pthreads : Flag<["-"], "pthreads">;
1045 def pthread : Flag<["-"], "pthread">, Flags<[CC1Option]>,
1046   HelpText<"Support POSIX threads in generated code">;
1047 def p : Flag<["-"], "p">;
1048 def pie : Flag<["-"], "pie">;
1049 def read__only__relocs : Separate<["-"], "read_only_relocs">;
1050 def remap : Flag<["-"], "remap">;
1051 def rewrite_objc : Flag<["-"], "rewrite-objc">, Flags<[DriverOption,CC1Option]>,
1052   HelpText<"Rewrite Objective-C source to C++">, Group<Action_Group>;
1053 def rewrite_legacy_objc : Flag<["-"], "rewrite-legacy-objc">, Flags<[DriverOption]>,
1054   HelpText<"Rewrite Legacy Objective-C source to C++">;
1055 def rdynamic : Flag<["-"], "rdynamic">;
1056 def resource_dir : Separate<["-"], "resource-dir">,
1057   Flags<[DriverOption, CC1Option, HelpHidden]>,
1058   HelpText<"The directory which holds the compiler resource files">;
1059 def resource_dir_EQ : Joined<["-"], "resource-dir=">, Flags<[DriverOption]>,
1060   Alias<resource_dir>;
1061 def rpath : Separate<["-"], "rpath">, Flags<[LinkerInput]>;
1062 def rtlib_EQ : Joined<["-", "--"], "rtlib=">;
1063 def r : Flag<["-"], "r">;
1064 def save_temps : Flag<["-", "--"], "save-temps">, Flags<[DriverOption]>,
1065   HelpText<"Save intermediate compilation results">;
1066 def sectalign : MultiArg<["-"], "sectalign", 3>;
1067 def sectcreate : MultiArg<["-"], "sectcreate", 3>;
1068 def sectobjectsymbols : MultiArg<["-"], "sectobjectsymbols", 2>;
1069 def sectorder : MultiArg<["-"], "sectorder", 3>;
1070 def seg1addr : JoinedOrSeparate<["-"], "seg1addr">;
1071 def seg__addr__table__filename : Separate<["-"], "seg_addr_table_filename">;
1072 def seg__addr__table : Separate<["-"], "seg_addr_table">;
1073 def segaddr : MultiArg<["-"], "segaddr", 2>;
1074 def segcreate : MultiArg<["-"], "segcreate", 3>;
1075 def seglinkedit : Flag<["-"], "seglinkedit">;
1076 def segprot : MultiArg<["-"], "segprot", 3>;
1077 def segs__read__only__addr : Separate<["-"], "segs_read_only_addr">;
1078 def segs__read__write__addr : Separate<["-"], "segs_read_write_addr">;
1079 def segs__read__ : Joined<["-"], "segs_read_">;
1080 def shared_libgcc : Flag<["-"], "shared-libgcc">;
1081 def shared : Flag<["-", "--"], "shared">;
1082 def single__module : Flag<["-"], "single_module">;
1083 def specs_EQ : Joined<["-", "--"], "specs=">;
1084 def specs : Separate<["-", "--"], "specs">, Flags<[Unsupported]>;
1085 def static_libgcc : Flag<["-"], "static-libgcc">;
1086 def static_libstdcxx : Flag<["-"], "static-libstdc++">;
1087 def static : Flag<["-", "--"], "static">, Flags<[NoArgumentUnused]>;
1088 def std_default_EQ : Joined<["-"], "std-default=">;
1089 def std_EQ : Joined<["-", "--"], "std=">, Flags<[CC1Option]>, Group<L_Group>,
1090   HelpText<"Language standard to compile for">;
1091 def stdlib_EQ : Joined<["-", "--"], "stdlib=">, Flags<[CC1Option]>,
1092   HelpText<"C++ standard library to use">;
1093 def sub__library : JoinedOrSeparate<["-"], "sub_library">;
1094 def sub__umbrella : JoinedOrSeparate<["-"], "sub_umbrella">;
1095 def s : Flag<["-"], "s">;
1096 def target : Separate<["-"], "target">, Flags<[DriverOption]>,
1097   HelpText<"Generate code for the given target">;
1098 def gcc_toolchain : Separate<["-"], "gcc-toolchain">, Flags<[DriverOption]>,
1099   HelpText<"Use the gcc toolchain at the given directory">;
1100 def time : Flag<["-"], "time">,
1101   HelpText<"Time individual commands">;
1102 def traditional_cpp : Flag<["-", "--"], "traditional-cpp">, Flags<[CC1Option]>,
1103   HelpText<"Enable some traditional CPP emulation">;
1104 def traditional : Flag<["-", "--"], "traditional">;
1105 def trigraphs : Flag<["-", "--"], "trigraphs">, Flags<[CC1Option]>,
1106   HelpText<"Process trigraph sequences">;
1107 def twolevel__namespace__hints : Flag<["-"], "twolevel_namespace_hints">;
1108 def twolevel__namespace : Flag<["-"], "twolevel_namespace">;
1109 def t : Flag<["-"], "t">;
1110 def umbrella : Separate<["-"], "umbrella">;
1111 def undefined : JoinedOrSeparate<["-"], "undefined">, Group<u_Group>;
1112 def undef : Flag<["-"], "undef">, Group<u_Group>, Flags<[CC1Option]>,
1113   HelpText<"undef all system defines">;
1114 def unexported__symbols__list : Separate<["-"], "unexported_symbols_list">;
1115 def u : JoinedOrSeparate<["-"], "u">, Group<u_Group>;
1116 def use_gold_plugin : Flag<["-"], "use-gold-plugin">;
1117 def v : Flag<["-"], "v">, Flags<[CC1Option]>,
1118   HelpText<"Show commands to run and use verbose output">;
1119 def verify : Flag<["-"], "verify">, Flags<[DriverOption,CC1Option]>,
1120   HelpText<"Verify output using a verifier">;
1121 def weak_l : Joined<["-"], "weak-l">, Flags<[LinkerInput]>;
1122 def weak__framework : Separate<["-"], "weak_framework">, Flags<[LinkerInput]>;
1123 def weak__library : Separate<["-"], "weak_library">, Flags<[LinkerInput]>;
1124 def weak__reference__mismatches : Separate<["-"], "weak_reference_mismatches">;
1125 def whatsloaded : Flag<["-"], "whatsloaded">;
1126 def whyload : Flag<["-"], "whyload">;
1127 def w : Flag<["-"], "w">, HelpText<"Suppress all warnings">, Flags<[CC1Option]>;
1128 def x : JoinedOrSeparate<["-"], "x">, Flags<[DriverOption,CC1Option]>,
1129   HelpText<"Treat subsequent input files as having type <language>">,
1130   MetaVarName<"<language>">;
1131 def y : Joined<["-"], "y">;
1132
1133 def working_directory : JoinedOrSeparate<["-"], "working-directory">, Flags<[CC1Option]>,
1134   HelpText<"Resolve file paths relative to the specified directory">;
1135 def working_directory_EQ : Joined<["-"], "working-directory=">, Flags<[CC1Option]>,
1136   Alias<working_directory>;
1137
1138 // Double dash options, which are usually an alias for one of the previous
1139 // options.
1140
1141 def _CLASSPATH_EQ : Joined<["--"], "CLASSPATH=">, Alias<fclasspath_EQ>;
1142 def _CLASSPATH : Separate<["--"], "CLASSPATH">, Alias<fclasspath_EQ>;
1143 def _all_warnings : Flag<["--"], "all-warnings">, Alias<Wall>;
1144 def _analyze_auto : Flag<["--"], "analyze-auto">, Flags<[DriverOption]>;
1145 def _analyzer_no_default_checks : Flag<["--"], "analyzer-no-default-checks">, Flags<[DriverOption]>;
1146 def _analyzer_output : JoinedOrSeparate<["--"], "analyzer-output">, Flags<[DriverOption]>;
1147 def _analyze : Flag<["--"], "analyze">, Flags<[DriverOption]>,
1148   HelpText<"Run the static analyzer">;
1149 def _assemble : Flag<["--"], "assemble">, Alias<S>;
1150 def _assert_EQ : Joined<["--"], "assert=">, Alias<A>;
1151 def _assert : Separate<["--"], "assert">, Alias<A>;
1152 def _bootclasspath_EQ : Joined<["--"], "bootclasspath=">, Alias<fbootclasspath_EQ>;
1153 def _bootclasspath : Separate<["--"], "bootclasspath">, Alias<fbootclasspath_EQ>;
1154 def _classpath_EQ : Joined<["--"], "classpath=">, Alias<fclasspath_EQ>;
1155 def _classpath : Separate<["--"], "classpath">, Alias<fclasspath_EQ>;
1156 def _comments_in_macros : Flag<["--"], "comments-in-macros">, Alias<CC>;
1157 def _comments : Flag<["--"], "comments">, Alias<C>;
1158 def _compile : Flag<["--"], "compile">, Alias<c>;
1159 def _constant_cfstrings : Flag<["--"], "constant-cfstrings">;
1160 def _debug_EQ : Joined<["--"], "debug=">, Alias<g_Flag>;
1161 def _debug : Flag<["--"], "debug">, Alias<g_Flag>;
1162 def _define_macro_EQ : Joined<["--"], "define-macro=">, Alias<D>;
1163 def _define_macro : Separate<["--"], "define-macro">, Alias<D>;
1164 def _dependencies : Flag<["--"], "dependencies">, Alias<M>;
1165 def _encoding_EQ : Joined<["--"], "encoding=">, Alias<fencoding_EQ>;
1166 def _encoding : Separate<["--"], "encoding">, Alias<fencoding_EQ>;
1167 def _entry : Flag<["--"], "entry">, Alias<e>;
1168 def _extdirs_EQ : Joined<["--"], "extdirs=">, Alias<fextdirs_EQ>;
1169 def _extdirs : Separate<["--"], "extdirs">, Alias<fextdirs_EQ>;
1170 def _extra_warnings : Flag<["--"], "extra-warnings">, Alias<W_Joined>;
1171 def _for_linker_EQ : Joined<["--"], "for-linker=">, Alias<Xlinker>;
1172 def _for_linker : Separate<["--"], "for-linker">, Alias<Xlinker>;
1173 def _force_link_EQ : Joined<["--"], "force-link=">, Alias<u>;
1174 def _force_link : Separate<["--"], "force-link">, Alias<u>;
1175 def _help_hidden : Flag<["--"], "help-hidden">;
1176 def _imacros_EQ : Joined<["--"], "imacros=">, Alias<imacros>;
1177 def _include_barrier : Flag<["--"], "include-barrier">, Alias<I_>;
1178 def _include_directory_after_EQ : Joined<["--"], "include-directory-after=">, Alias<idirafter>;
1179 def _include_directory_after : Separate<["--"], "include-directory-after">, Alias<idirafter>;
1180 def _include_directory_EQ : Joined<["--"], "include-directory=">, Alias<I>;
1181 def _include_directory : Separate<["--"], "include-directory">, Alias<I>;
1182 def _include_prefix_EQ : Joined<["--"], "include-prefix=">, Alias<iprefix>;
1183 def _include_prefix : Separate<["--"], "include-prefix">, Alias<iprefix>;
1184 def _include_with_prefix_after_EQ : Joined<["--"], "include-with-prefix-after=">, Alias<iwithprefix>;
1185 def _include_with_prefix_after : Separate<["--"], "include-with-prefix-after">, Alias<iwithprefix>;
1186 def _include_with_prefix_before_EQ : Joined<["--"], "include-with-prefix-before=">, Alias<iwithprefixbefore>;
1187 def _include_with_prefix_before : Separate<["--"], "include-with-prefix-before">, Alias<iwithprefixbefore>;
1188 def _include_with_prefix_EQ : Joined<["--"], "include-with-prefix=">, Alias<iwithprefix>;
1189 def _include_with_prefix : Separate<["--"], "include-with-prefix">, Alias<iwithprefix>;
1190 def _include_EQ : Joined<["--"], "include=">, Alias<include_>;
1191 def _language_EQ : Joined<["--"], "language=">, Alias<x>;
1192 def _language : Separate<["--"], "language">, Alias<x>;
1193 def _library_directory_EQ : Joined<["--"], "library-directory=">, Alias<L>;
1194 def _library_directory : Separate<["--"], "library-directory">, Alias<L>;
1195 def _machine__EQ : Joined<["--"], "machine-=">, Alias<m_Joined>;
1196 def _machine_ : Joined<["--"], "machine-">, Alias<m_Joined>;
1197 def _machine_EQ : Joined<["--"], "machine=">, Alias<m_Joined>;
1198 def _machine : Separate<["--"], "machine">, Alias<m_Joined>;
1199 def _no_line_commands : Flag<["--"], "no-line-commands">, Alias<P>;
1200 def _no_standard_includes : Flag<["--"], "no-standard-includes">, Alias<nostdinc>;
1201 def _no_standard_libraries : Flag<["--"], "no-standard-libraries">, Alias<nostdlib>;
1202 def _no_undefined : Flag<["--"], "no-undefined">, Flags<[LinkerInput]>;
1203 def _no_warnings : Flag<["--"], "no-warnings">, Alias<w>;
1204 def _optimize_EQ : Joined<["--"], "optimize=">, Alias<O>;
1205 def _optimize : Flag<["--"], "optimize">, Alias<O>;
1206 def _output_class_directory_EQ : Joined<["--"], "output-class-directory=">, Alias<foutput_class_dir_EQ>;
1207 def _output_class_directory : Separate<["--"], "output-class-directory">, Alias<foutput_class_dir_EQ>;
1208 def _output_EQ : Joined<["--"], "output=">, Alias<o>;
1209 def _output : Separate<["--"], "output">, Alias<o>;
1210 def _param : Separate<["--"], "param">, Group<CompileOnly_Group>;
1211 def _param_EQ : Joined<["--"], "param=">, Alias<_param>;
1212 def _prefix_EQ : Joined<["--"], "prefix=">, Alias<B>;
1213 def _prefix : Separate<["--"], "prefix">, Alias<B>;
1214 def _preprocess : Flag<["--"], "preprocess">, Alias<E>;
1215 def _print_diagnostic_categories : Flag<["--"], "print-diagnostic-categories">;
1216 def _print_file_name : Separate<["--"], "print-file-name">, Alias<print_file_name_EQ>;
1217 def _print_missing_file_dependencies : Flag<["--"], "print-missing-file-dependencies">, Alias<MG>;
1218 def _print_prog_name : Separate<["--"], "print-prog-name">, Alias<print_prog_name_EQ>;
1219 def _profile_blocks : Flag<["--"], "profile-blocks">, Alias<a>;
1220 def _profile : Flag<["--"], "profile">, Alias<p>;
1221 def _resource_EQ : Joined<["--"], "resource=">, Alias<fcompile_resource_EQ>;
1222 def _resource : Separate<["--"], "resource">, Alias<fcompile_resource_EQ>;
1223 def _rtlib : Separate<["--"], "rtlib">, Alias<rtlib_EQ>;
1224 def _serialize_diags : Separate<["-", "--"], "serialize-diagnostics">, Flags<[DriverOption]>,
1225   HelpText<"Serialize compiler diagnostics to a file">;
1226 // We give --version different semantics from -version.
1227 def _version : Flag<["--"], "version">,  Flags<[CC1Option]>;
1228 def _signed_char : Flag<["--"], "signed-char">, Alias<fsigned_char>;
1229 def _std : Separate<["--"], "std">, Alias<std_EQ>;
1230 def _stdlib : Separate<["--"], "stdlib">, Alias<stdlib_EQ>;
1231 def _sysroot_EQ : Joined<["--"], "sysroot=">;
1232 def _sysroot : Separate<["--"], "sysroot">, Alias<_sysroot_EQ>;
1233 def _target_help : Flag<["--"], "target-help">;
1234 def _trace_includes : Flag<["--"], "trace-includes">, Alias<H>;
1235 def _undefine_macro_EQ : Joined<["--"], "undefine-macro=">, Alias<U>;
1236 def _undefine_macro : Separate<["--"], "undefine-macro">, Alias<U>;
1237 def _unsigned_char : Flag<["--"], "unsigned-char">, Alias<funsigned_char>;
1238 def _user_dependencies : Flag<["--"], "user-dependencies">, Alias<MM>;
1239 def _verbose : Flag<["--"], "verbose">, Alias<v>;
1240 def _warn__EQ : Joined<["--"], "warn-=">, Alias<W_Joined>;
1241 def _warn_ : Joined<["--"], "warn-">, Alias<W_Joined>;
1242 def _write_dependencies : Flag<["--"], "write-dependencies">, Alias<MD>;
1243 def _write_user_dependencies : Flag<["--"], "write-user-dependencies">, Alias<MMD>;
1244 def _ : Joined<["--"], "">, Flags<[Unsupported]>;
1245 def mieee_rnd_near : Flag<["-"], "mieee-rnd-near">, Group<m_hexagon_Features_Group>;
1246
1247 // Special internal option to handle -Xlinker --no-demangle.
1248 def Z_Xlinker__no_demangle : Flag<["-"], "Z-Xlinker-no-demangle">,
1249     Flags<[Unsupported, NoArgumentUnused]>;
1250
1251 // Special internal option to allow forwarding arbitrary arguments to linker.
1252 def Zlinker_input : Separate<["-"], "Zlinker-input">,
1253     Flags<[Unsupported, NoArgumentUnused]>;
1254
1255 // Reserved library options.
1256 def Z_reserved_lib_stdcxx : Flag<["-"], "Z-reserved-lib-stdc++">,
1257     Flags<[LinkerInput, NoArgumentUnused, Unsupported]>, Group<reserved_lib_Group>;
1258 def Z_reserved_lib_cckext : Flag<["-"], "Z-reserved-lib-cckext">,
1259     Flags<[LinkerInput, NoArgumentUnused, Unsupported]>, Group<reserved_lib_Group>;
1260
1261 include "CC1Options.td"