]> CyberLeo.Net >> Repos - FreeBSD/releng/9.3.git/blob - contrib/llvm/tools/clang/include/clang/Driver/Options.td
Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.
[FreeBSD/releng/9.3.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 "llvm/Option/OptParser.td"
16
17 /////////
18 // Flags
19
20 // DriverOption - The option is a "driver" option, and should not be forwarded
21 // to other tools.
22 def DriverOption : OptionFlag;
23
24 // LinkerInput - The option is a linker input.
25 def LinkerInput : OptionFlag;
26
27 // NoArgumentUnused - Don't report argument unused warnings for this option; this
28 // is useful for options like -static or -dynamic which a user may always end up
29 // passing, even if the platform defaults to (or only supports) that option.
30 def NoArgumentUnused : OptionFlag;
31
32 // Unsupported - The option is unsupported, and the driver will reject command
33 // lines that use it.
34 def Unsupported : OptionFlag;
35
36 // CoreOption - This is considered a "core" Clang option, available in both
37 // clang and clang-cl modes.
38 def CoreOption : OptionFlag;
39
40 // CLOption - This is a cl.exe compatibility option. Options with this flag
41 // are made available when the driver is running in CL compatibility mode.
42 def CLOption : OptionFlag;
43
44 // CC1Option - This option should be accepted by clang -cc1.
45 def CC1Option : OptionFlag;
46
47 // NoDriverOption - This option should not be accepted by the driver.
48 def NoDriverOption : OptionFlag;
49
50 /////////
51 // Groups
52
53 // Meta-group for options which are only used for compilation,
54 // and not linking etc.
55 def CompileOnly_Group     : OptionGroup<"<CompileOnly group>">;
56
57 def Action_Group          : OptionGroup<"<action group>">;
58
59 def I_Group               : OptionGroup<"<I group>">, Group<CompileOnly_Group>;
60 def M_Group               : OptionGroup<"<M group>">, Group<CompileOnly_Group>;
61 def T_Group               : OptionGroup<"<T group>">;
62 def O_Group               : OptionGroup<"<O group>">, Group<CompileOnly_Group>;
63 def W_Group               : OptionGroup<"<W group>">, Group<CompileOnly_Group>;
64 def d_Group               : OptionGroup<"<d group>">;
65 def f_Group               : OptionGroup<"<f group>">, Group<CompileOnly_Group>;
66 def f_clang_Group         : OptionGroup<"<f (clang-only) group>">, Group<CompileOnly_Group>;
67 def g_Group               : OptionGroup<"<g group>">;
68 def g_flags_Group         : OptionGroup<"<g flags group>">;
69 def i_Group               : OptionGroup<"<i group>">, Group<CompileOnly_Group>;
70 def clang_i_Group         : OptionGroup<"<clang i group>">, Group<i_Group>;
71 def m_Group               : OptionGroup<"<m group>">, Group<CompileOnly_Group>;
72 def m_x86_Features_Group  : OptionGroup<"<m x86 features group>">, Group<m_Group>;
73 def m_hexagon_Features_Group  : OptionGroup<"<m hexagon features group>">, Group<m_Group>;
74 def m_arm_Features_Group  : OptionGroup<"<m arm features group>">, Group<m_Group>;
75 def m_ppc_Features_Group  : OptionGroup<"<m ppc features group>">, Group<m_Group>;
76 def opencl_Group          : OptionGroup<"<opencl group>">;
77 def u_Group               : OptionGroup<"<u group>">;
78
79 def pedantic_Group        : OptionGroup<"<pedantic group>">,
80   Group<CompileOnly_Group>;
81 def reserved_lib_Group   : OptionGroup<"<reserved libs group>">;
82
83 // Temporary groups for clang options which we know we don't support,
84 // but don't want to verbosely warn the user about.
85 def clang_ignored_f_Group : OptionGroup<"<clang ignored f group>">,
86   Group<f_Group>;
87 def clang_ignored_m_Group : OptionGroup<"<clang ignored m group>">,
88   Group<m_Group>;
89
90 /////////
91 // Options
92
93 // The internal option ID must be a valid C++ identifier and results in a
94 // clang::driver::options::OPT_XX enum constant for XX.
95 //
96 // We want to unambiguously be able to refer to options from the driver source
97 // code, for this reason the option name is mangled into an ID. This mangling
98 // isn't guaranteed to have an inverse, but for practical purposes it does.
99 //
100 // The mangling scheme is to ignore the leading '-', and perform the following
101 // substitutions:
102 //   _ => __
103 //   - => _
104 //   / => _SLASH
105 //   # => _HASH
106 //   ? => _QUESTION
107 //   , => _COMMA
108 //   = => _EQ
109 //   C++ => CXX
110 //   . => _
111
112 // Developer Driver Options
113
114 def internal_Group : OptionGroup<"<clang internal options>">;
115 def internal_driver_Group : OptionGroup<"<clang driver internal options>">,
116   Group<internal_Group>, HelpText<"DRIVER OPTIONS">;
117 def internal_debug_Group :
118   OptionGroup<"<clang debug/development internal options>">,
119   Group<internal_Group>, HelpText<"DEBUG/DEVELOPMENT OPTIONS">;
120
121 class InternalDriverOpt : Group<internal_driver_Group>,
122   Flags<[DriverOption, HelpHidden]>;
123 def driver_mode : Joined<["--"], "driver-mode=">, Group<internal_driver_Group>,
124   Flags<[CoreOption, DriverOption, HelpHidden]>,
125   HelpText<"Set the driver mode to either 'gcc', 'g++', 'cpp', or 'cl'">;
126 def ccc_gcc_name : Separate<["-"], "ccc-gcc-name">, InternalDriverOpt,
127   HelpText<"Name for native GCC compiler">,
128   MetaVarName<"<gcc-path>">;
129 def ccc_pch_is_pch : Flag<["-"], "ccc-pch-is-pch">, InternalDriverOpt,
130   HelpText<"Use lazy PCH for precompiled headers">;
131 def ccc_pch_is_pth : Flag<["-"], "ccc-pch-is-pth">, InternalDriverOpt,
132   HelpText<"Use pretokenized headers for precompiled headers">;
133
134 class InternalDebugOpt : Group<internal_debug_Group>,
135   Flags<[DriverOption, HelpHidden]>;
136 def ccc_install_dir : Separate<["-"], "ccc-install-dir">, InternalDebugOpt,
137   HelpText<"Simulate installation in the given directory">;
138 def ccc_print_phases : Flag<["-"], "ccc-print-phases">, InternalDebugOpt,
139   HelpText<"Dump list of actions to perform">;
140 def ccc_print_bindings : Flag<["-"], "ccc-print-bindings">, InternalDebugOpt,
141   HelpText<"Show bindings of tools to actions">;
142
143 def ccc_arcmt_check : Flag<["-"], "ccc-arcmt-check">, InternalDriverOpt,
144   HelpText<"Check for ARC migration issues that need manual handling">;
145 def ccc_arcmt_modify : Flag<["-"], "ccc-arcmt-modify">, InternalDriverOpt,
146   HelpText<"Apply modifications to files to conform to ARC">;
147 def ccc_arcmt_migrate : Separate<["-"], "ccc-arcmt-migrate">, InternalDriverOpt,
148   HelpText<"Apply modifications and produces temporary files that conform to ARC">;
149 def arcmt_migrate_report_output : Separate<["-"], "arcmt-migrate-report-output">,
150   HelpText<"Output path for the plist report">,  Flags<[CC1Option]>;
151 def arcmt_migrate_emit_arc_errors : Flag<["-"], "arcmt-migrate-emit-errors">,
152   HelpText<"Emit ARC errors even if the migrator can fix them">,
153   Flags<[CC1Option]>;
154
155 def _migrate : Flag<["--"], "migrate">, Flags<[DriverOption]>,
156   HelpText<"Run the migrator">;
157 def ccc_objcmt_migrate : Separate<["-"], "ccc-objcmt-migrate">,
158   InternalDriverOpt,
159   HelpText<"Apply modifications and produces temporary files to migrate to "
160    "modern ObjC syntax">;
161 def objcmt_migrate_literals : Flag<["-"], "objcmt-migrate-literals">, Flags<[CC1Option]>,
162   HelpText<"Enable migration to modern ObjC literals">;
163 def objcmt_migrate_subscripting : Flag<["-"], "objcmt-migrate-subscripting">, Flags<[CC1Option]>,
164   HelpText<"Enable migration to modern ObjC subscripting">;
165 def objcmt_migrate_property : Flag<["-"], "objcmt-migrate-property">, Flags<[CC1Option]>,
166   HelpText<"Enable migration to modern ObjC property">;
167 def objcmt_migrate_all : Flag<["-"], "objcmt-migrate-all">, Flags<[CC1Option]>,
168   HelpText<"Enable migration to modern ObjC">;
169 def objcmt_migrate_readonly_property : Flag<["-"], "objcmt-migrate-readonly-property">, Flags<[CC1Option]>,
170   HelpText<"Enable migration to modern ObjC readonly property">;
171 def objcmt_migrate_readwrite_property : Flag<["-"], "objcmt-migrate-readwrite-property">, Flags<[CC1Option]>,
172   HelpText<"Enable migration to modern ObjC readwrite property">;
173 def objcmt_migrate_annotation : Flag<["-"], "objcmt-migrate-annotation">, Flags<[CC1Option]>,
174   HelpText<"Enable migration to property and method annotations">;
175 def objcmt_migrate_instancetype : Flag<["-"], "objcmt-migrate-instancetype">, Flags<[CC1Option]>,
176   HelpText<"Enable migration to infer instancetype for method result type">;
177 def objcmt_migrate_nsmacros : Flag<["-"], "objcmt-migrate-ns-macros">, Flags<[CC1Option]>,
178   HelpText<"Enable migration to NS_ENUM/NS_OPTIONS macros">;
179 def objcmt_migrate_protocol_conformance : Flag<["-"], "objcmt-migrate-protocol-conformance">, Flags<[CC1Option]>,
180   HelpText<"Enable migration to add protocol conformance on classes">;
181 def objcmt_atomic_property : Flag<["-"], "objcmt-atomic-property">, Flags<[CC1Option]>,
182   HelpText<"Make migration to 'atomic' properties">;
183 def objcmt_returns_innerpointer_property : Flag<["-"], "objcmt-returns-innerpointer-property">, Flags<[CC1Option]>,
184   HelpText<"Enable migration to annotate property with NS_RETURNS_INNER_POINTER">;
185 def objcmt_ns_nonatomic_iosonly: Flag<["-"], "objcmt-ns-nonatomic-iosonly">, Flags<[CC1Option]>,
186   HelpText<"Enable migration to use NS_NONATOMIC_IOSONLY macro for setting property's 'atomic' attribute">;
187 def objcmt_white_list_dir_path: Joined<["-"], "objcmt-white-list-dir-path=">, Flags<[CC1Option]>,
188   HelpText<"Only modify files with a filename contained in the provided directory path">;
189
190 // Make sure all other -ccc- options are rejected.
191 def ccc_ : Joined<["-"], "ccc-">, Group<internal_Group>, Flags<[Unsupported]>;
192
193 // Standard Options
194
195 def _HASH_HASH_HASH : Flag<["-"], "###">, Flags<[DriverOption, CoreOption]>,
196     HelpText<"Print the commands to run for this compilation">;
197 def _DASH_DASH : Option<["--"], "", KIND_REMAINING_ARGS>,
198     Flags<[DriverOption, CoreOption]>;
199 def A : JoinedOrSeparate<["-"], "A">, Flags<[RenderJoined]>;
200 def B : JoinedOrSeparate<["-"], "B">;
201 def CC : Flag<["-"], "CC">, Flags<[CC1Option]>;
202 def C : Flag<["-"], "C">, Flags<[CC1Option]>;
203 def D : JoinedOrSeparate<["-"], "D">, Group<CompileOnly_Group>, Flags<[CC1Option]>;
204 def E : Flag<["-"], "E">, Flags<[DriverOption,CC1Option]>, Group<Action_Group>,
205   HelpText<"Only run the preprocessor">;
206 def F : JoinedOrSeparate<["-"], "F">, Flags<[RenderJoined,CC1Option]>,
207     HelpText<"Add directory to framework include search path">;
208 def G : JoinedOrSeparate<["-"], "G">, Flags<[DriverOption]>;
209 def G_EQ : Joined<["-"], "G=">, Flags<[DriverOption]>;
210 def H : Flag<["-"], "H">, Flags<[CC1Option]>,
211     HelpText<"Show header includes and nesting depth">;
212 def I_ : Flag<["-"], "I-">, Group<I_Group>;
213 def I : JoinedOrSeparate<["-"], "I">, Group<I_Group>, Flags<[CC1Option]>,
214     HelpText<"Add directory to include search path">;
215 def L : JoinedOrSeparate<["-"], "L">, Flags<[RenderJoined]>;
216 def MD : Flag<["-"], "MD">, Group<M_Group>;
217 def MF : JoinedOrSeparate<["-"], "MF">, Group<M_Group>;
218 def MG : Flag<["-"], "MG">, Group<M_Group>, Flags<[CC1Option]>,
219     HelpText<"Add missing headers to dependency list">;
220 def MMD : Flag<["-"], "MMD">, Group<M_Group>;
221 def MM : Flag<["-"], "MM">, Group<M_Group>;
222 def MP : Flag<["-"], "MP">, Group<M_Group>, Flags<[CC1Option]>,
223     HelpText<"Create phony target for each dependency (other than main file)">;
224 def MQ : JoinedOrSeparate<["-"], "MQ">, Group<M_Group>, Flags<[CC1Option]>,
225     HelpText<"Specify target to quote for dependency">;
226 def MT : JoinedOrSeparate<["-"], "MT">, Group<M_Group>, Flags<[CC1Option]>,
227     HelpText<"Specify target for dependency">;
228 def Mach : Flag<["-"], "Mach">;
229 def M : Flag<["-"], "M">, Group<M_Group>;
230 def O0 : Flag<["-"], "O0">, Group<O_Group>, Flags<[CC1Option]>;
231 def O4 : Flag<["-"], "O4">, Group<O_Group>, Flags<[CC1Option]>;
232 def ObjCXX : Flag<["-"], "ObjC++">, Flags<[DriverOption]>,
233   HelpText<"Treat source input files as Objective-C++ inputs">;
234 def ObjC : Flag<["-"], "ObjC">, Flags<[DriverOption]>,
235   HelpText<"Treat source input files as Objective-C inputs">;
236 def O : Joined<["-"], "O">, Group<O_Group>, Flags<[CC1Option]>;
237 def O_flag : Flag<["-"], "O">, Flags<[CC1Option]>, Alias<O>, AliasArgs<["2"]>;
238 def Ofast : Joined<["-"], "Ofast">, Group<O_Group>, Flags<[CC1Option]>;
239 def P : Flag<["-"], "P">, Flags<[CC1Option]>,
240   HelpText<"Disable linemarker output in -E mode">;
241 def Qn : Flag<["-"], "Qn">;
242 def Qunused_arguments : Flag<["-"], "Qunused-arguments">, Flags<[DriverOption, CoreOption]>,
243   HelpText<"Don't emit warning for unused driver arguments">;
244 def Q : Flag<["-"], "Q">;
245 def R : Flag<["-"], "R">;
246 def S : Flag<["-"], "S">, Flags<[DriverOption,CC1Option]>, Group<Action_Group>,
247   HelpText<"Only run preprocess and compilation steps">;
248 def Tbss : JoinedOrSeparate<["-"], "Tbss">, Group<T_Group>;
249 def Tdata : JoinedOrSeparate<["-"], "Tdata">, Group<T_Group>;
250 def Ttext : JoinedOrSeparate<["-"], "Ttext">, Group<T_Group>;
251 def T : JoinedOrSeparate<["-"], "T">, Group<T_Group>;
252 def U : JoinedOrSeparate<["-"], "U">, Group<CompileOnly_Group>, Flags<[CC1Option]>;
253 def V : JoinedOrSeparate<["-"], "V">, Flags<[DriverOption, Unsupported]>;
254 def Wa_COMMA : CommaJoined<["-"], "Wa,">,
255   HelpText<"Pass the comma separated arguments in <arg> to the assembler">,
256   MetaVarName<"<arg>">;
257 def Wall : Flag<["-"], "Wall">, Group<W_Group>, Flags<[CC1Option]>;
258 def Wdeprecated : Flag<["-"], "Wdeprecated">, Group<W_Group>, Flags<[CC1Option]>;
259 def Wno_deprecated : Flag<["-"], "Wno-deprecated">, Group<W_Group>, Flags<[CC1Option]>;
260 def Wextra : Flag<["-"], "Wextra">, Group<W_Group>, Flags<[CC1Option]>;
261 def Wl_COMMA : CommaJoined<["-"], "Wl,">, Flags<[LinkerInput, RenderAsInput]>,
262   HelpText<"Pass the comma separated arguments in <arg> to the linker">,
263   MetaVarName<"<arg>">;
264 def Wno_nonportable_cfstrings : Joined<["-"], "Wno-nonportable-cfstrings">, Group<W_Group>,
265   Flags<[CC1Option]>;
266 def Wnonportable_cfstrings : Joined<["-"], "Wnonportable-cfstrings">, Group<W_Group>,
267   Flags<[CC1Option]>;
268 def Wp_COMMA : CommaJoined<["-"], "Wp,">,
269   HelpText<"Pass the comma separated arguments in <arg> to the preprocessor">,
270   MetaVarName<"<arg>">;
271 def W_Joined : Joined<["-"], "W">, Group<W_Group>, Flags<[CC1Option, CoreOption]>,
272   MetaVarName<"<warning>">, HelpText<"Enable the specified warning">;
273 def Xanalyzer : Separate<["-"], "Xanalyzer">,
274   HelpText<"Pass <arg> to the static analyzer">, MetaVarName<"<arg>">;
275 def Xarch__ : JoinedAndSeparate<["-"], "Xarch_">, Flags<[DriverOption]>;
276 def Xassembler : Separate<["-"], "Xassembler">,
277   HelpText<"Pass <arg> to the assembler">, MetaVarName<"<arg>">;
278 def Xclang : Separate<["-"], "Xclang">,
279   HelpText<"Pass <arg> to the clang compiler">, MetaVarName<"<arg>">,
280   Flags<[DriverOption, CoreOption]>;
281 def Xlinker : Separate<["-"], "Xlinker">, Flags<[LinkerInput, RenderAsInput]>,
282   HelpText<"Pass <arg> to the linker">, MetaVarName<"<arg>">;
283 def Xpreprocessor : Separate<["-"], "Xpreprocessor">,
284   HelpText<"Pass <arg> to the preprocessor">, MetaVarName<"<arg>">;
285 def X_Flag : Flag<["-"], "X">;
286 def X_Joined : Joined<["-"], "X">;
287 def Z_Flag : Flag<["-"], "Z">;
288 def Z_Joined : Joined<["-"], "Z">;
289 def all__load : Flag<["-"], "all_load">;
290 def allowable__client : Separate<["-"], "allowable_client">;
291 def ansi : Flag<["-", "--"], "ansi">;
292 def arch__errors__fatal : Flag<["-"], "arch_errors_fatal">;
293 def arch : Separate<["-"], "arch">, Flags<[DriverOption]>;
294 def arch__only : Separate<["-"], "arch_only">;
295 def a : Joined<["-"], "a">;
296 def bind__at__load : Flag<["-"], "bind_at_load">;
297 def bundle__loader : Separate<["-"], "bundle_loader">;
298 def bundle : Flag<["-"], "bundle">;
299 def b : JoinedOrSeparate<["-"], "b">, Flags<[Unsupported]>;
300 def cl_kernel_arg_info : Flag<["-"], "cl-kernel-arg-info">, Flags<[CC1Option]>, Group<opencl_Group>,
301 HelpText<"OpenCL only. This option allows the compiler to store information about the arguments of a kernel(s)"> ;
302 def client__name : JoinedOrSeparate<["-"], "client_name">;
303 def combine : Flag<["-", "--"], "combine">, Flags<[DriverOption, Unsupported]>;
304 def compatibility__version : JoinedOrSeparate<["-"], "compatibility_version">;
305 def coverage : Flag<["-", "--"], "coverage">;
306 def cpp_precomp : Flag<["-"], "cpp-precomp">, Group<clang_ignored_f_Group>;
307 def current__version : JoinedOrSeparate<["-"], "current_version">;
308 def cxx_isystem : JoinedOrSeparate<["-"], "cxx-isystem">, Group<clang_i_Group>,
309   HelpText<"Add directory to the C++ SYSTEM include search path">, Flags<[CC1Option]>,
310   MetaVarName<"<directory>">;
311 def c : Flag<["-"], "c">, Flags<[DriverOption]>,
312   HelpText<"Only run preprocess, compile, and assemble steps">;
313 def dA : Flag<["-"], "dA">, Group<d_Group>;
314 def dD : Flag<["-"], "dD">, Group<d_Group>, Flags<[CC1Option]>,
315   HelpText<"Print macro definitions in -E mode in addition to normal output">;
316 def dM : Flag<["-"], "dM">, Group<d_Group>, Flags<[CC1Option]>,
317   HelpText<"Print macro definitions in -E mode instead of normal output">;
318 def dead__strip : Flag<["-"], "dead_strip">;
319 def dependency_file : Separate<["-"], "dependency-file">, Flags<[CC1Option]>,
320   HelpText<"Filename (or -) to write dependency output to">;
321 def dependency_dot : Separate<["-"], "dependency-dot">, Flags<[CC1Option]>,
322   HelpText<"Filename to write DOT-formatted header dependencies to">;
323 def dumpmachine : Flag<["-"], "dumpmachine">;
324 def dumpspecs : Flag<["-"], "dumpspecs">, Flags<[Unsupported]>;
325 def dumpversion : Flag<["-"], "dumpversion">;
326 def dylib__file : Separate<["-"], "dylib_file">;
327 def dylinker__install__name : JoinedOrSeparate<["-"], "dylinker_install_name">;
328 def dylinker : Flag<["-"], "dylinker">;
329 def dynamiclib : Flag<["-"], "dynamiclib">;
330 def dynamic : Flag<["-"], "dynamic">, Flags<[NoArgumentUnused]>;
331 def d_Flag : Flag<["-"], "d">, Group<d_Group>;
332 def d_Joined : Joined<["-"], "d">, Group<d_Group>;
333 def emit_ast : Flag<["-"], "emit-ast">,
334   HelpText<"Emit Clang AST files for source inputs">;
335 def emit_llvm : Flag<["-"], "emit-llvm">, Flags<[CC1Option]>, Group<Action_Group>,
336   HelpText<"Use the LLVM representation for assembler and object files">;
337 def exported__symbols__list : Separate<["-"], "exported_symbols_list">;
338 def e : JoinedOrSeparate<["-"], "e">;
339 def fPIC : Flag<["-"], "fPIC">, Group<f_Group>;
340 def fno_PIC : Flag<["-"], "fno-PIC">, Group<f_Group>;
341 def fPIE : Flag<["-"], "fPIE">, Group<f_Group>;
342 def fno_PIE : Flag<["-"], "fno-PIE">, Group<f_Group>;
343 def faccess_control : Flag<["-"], "faccess-control">, Group<f_Group>;
344 def fallow_unsupported : Flag<["-"], "fallow-unsupported">, Group<f_Group>;
345 def fapple_kext : Flag<["-"], "fapple-kext">, Group<f_Group>, Flags<[CC1Option]>,
346   HelpText<"Use Apple's kernel extensions ABI">;
347 def fapple_pragma_pack : Flag<["-"], "fapple-pragma-pack">, Group<f_Group>, Flags<[CC1Option]>,
348   HelpText<"Enable Apple gcc-compatible #pragma pack handling">;
349 def faddress_sanitizer : Flag<["-"], "faddress-sanitizer">, Group<f_Group>;
350 def fno_address_sanitizer : Flag<["-"], "fno-address-sanitizer">, Group<f_Group>;
351 def fthread_sanitizer : Flag<["-"], "fthread-sanitizer">, Group<f_Group>;
352 def fno_thread_sanitizer : Flag<["-"], "fno-thread-sanitizer">, Group<f_Group>;
353 def fasm : Flag<["-"], "fasm">, Group<f_Group>;
354
355 def fasm_blocks : Flag<["-"], "fasm-blocks">, Group<f_Group>, Flags<[CC1Option]>;
356 def fno_asm_blocks : Flag<["-"], "fno-asm-blocks">, Group<f_Group>;
357
358 def fassume_sane_operator_new : Flag<["-"], "fassume-sane-operator-new">, Group<f_Group>;
359 def fastcp : Flag<["-"], "fastcp">, Group<f_Group>;
360 def fastf : Flag<["-"], "fastf">, Group<f_Group>;
361 def fast : Flag<["-"], "fast">, Group<f_Group>;
362 def fasynchronous_unwind_tables : Flag<["-"], "fasynchronous-unwind-tables">, Group<f_Group>;
363
364 def fautolink : Flag <["-"], "fautolink">, Group<f_Group>;
365 def fno_autolink : Flag <["-"], "fno-autolink">, Group<f_Group>,
366   Flags<[DriverOption, CC1Option]>,
367   HelpText<"Disable generation of linker directives for automatic library linking">;
368
369 def fprofile_sample_use_EQ : Joined<["-"], "fprofile-sample-use=">,
370     Group<f_Group>, Flags<[DriverOption, CC1Option]>,
371     HelpText<"Enable sample-based profile guided optimizations">;
372
373 def fblocks : Flag<["-"], "fblocks">, Group<f_Group>, Flags<[CC1Option]>,
374   HelpText<"Enable the 'blocks' language feature">;
375 def fbootclasspath_EQ : Joined<["-"], "fbootclasspath=">, Group<f_Group>;
376 def fborland_extensions : Flag<["-"], "fborland-extensions">, Group<f_Group>, Flags<[CC1Option]>,
377   HelpText<"Accept non-standard constructs supported by the Borland compiler">;
378 def fbounds_checking : Flag<["-"], "fbounds-checking">, Group<f_Group>,
379   HelpText<"Enable run-time bounds checks">;
380 def fbounds_checking_EQ : Joined<["-"], "fbounds-checking=">, Flags<[CC1Option]>,
381   Group<f_Group>;
382 def fbuiltin : Flag<["-"], "fbuiltin">, Group<f_Group>;
383 def fcaret_diagnostics : Flag<["-"], "fcaret-diagnostics">, Group<f_Group>;
384 def fcatch_undefined_behavior : Flag<["-"], "fcatch-undefined-behavior">, Group<f_Group>;
385 def fclasspath_EQ : Joined<["-"], "fclasspath=">, Group<f_Group>;
386 def fcolor_diagnostics : Flag<["-"], "fcolor-diagnostics">, Group<f_Group>, Flags<[CC1Option]>,
387   HelpText<"Use colors in diagnostics">;
388 def fdiagnostics_color : Flag<["-"], "fdiagnostics-color">, Group<f_Group>;
389 def fdiagnostics_color_EQ : Joined<["-"], "fdiagnostics-color=">, Group<f_Group>;
390 def fansi_escape_codes : Flag<["-"], "fansi-escape-codes">, Group<f_Group>, Flags<[CC1Option]>,
391   HelpText<"Use ANSI escape codes for diagnostics">;
392 def fcomment_block_commands : CommaJoined<["-"], "fcomment-block-commands=">, Group<f_clang_Group>, Flags<[CC1Option]>,
393   HelpText<"Treat each comma separated argument in <arg> as a documentation comment block command">,
394   MetaVarName<"<arg>">;
395 def fparse_all_comments : Flag<["-"], "fparse-all-comments">, Group<f_clang_Group>, Flags<[CC1Option]>;
396 def fcommon : Flag<["-"], "fcommon">, Group<f_Group>;
397 def fcompile_resource_EQ : Joined<["-"], "fcompile-resource=">, Group<f_Group>;
398 def fconstant_cfstrings : Flag<["-"], "fconstant-cfstrings">, Group<f_Group>;
399 def fconstant_string_class_EQ : Joined<["-"], "fconstant-string-class=">, Group<f_Group>;
400 def fconstexpr_depth_EQ : Joined<["-"], "fconstexpr-depth=">, Group<f_Group>;
401 def fconstexpr_steps_EQ : Joined<["-"], "fconstexpr-steps=">, Group<f_Group>;
402 def fconstexpr_backtrace_limit_EQ : Joined<["-"], "fconstexpr-backtrace-limit=">,
403                                     Group<f_Group>;
404 def fno_crash_diagnostics : Flag<["-"], "fno-crash-diagnostics">, Group<f_clang_Group>, Flags<[NoArgumentUnused]>;
405 def fcreate_profile : Flag<["-"], "fcreate-profile">, Group<f_Group>;
406 def fcxx_exceptions: Flag<["-"], "fcxx-exceptions">, Group<f_Group>,
407   HelpText<"Enable C++ exceptions">, Flags<[CC1Option]>;
408 def fcxx_modules : Flag <["-"], "fcxx-modules">, Group<f_Group>,
409   Flags<[DriverOption]>;
410 def fdebug_pass_arguments : Flag<["-"], "fdebug-pass-arguments">, Group<f_Group>;
411 def fdebug_pass_structure : Flag<["-"], "fdebug-pass-structure">, Group<f_Group>;
412 def fdiagnostics_fixit_info : Flag<["-"], "fdiagnostics-fixit-info">, Group<f_clang_Group>;
413 def fdiagnostics_parseable_fixits : Flag<["-"], "fdiagnostics-parseable-fixits">, Group<f_clang_Group>,
414     Flags<[CC1Option]>, HelpText<"Print fix-its in machine parseable form">;
415 def fdiagnostics_print_source_range_info : Flag<["-"], "fdiagnostics-print-source-range-info">,
416     Group<f_clang_Group>,  Flags<[CC1Option]>,
417     HelpText<"Print source range spans in numeric form">;
418 def fdiagnostics_show_option : Flag<["-"], "fdiagnostics-show-option">, Group<f_Group>,
419     Flags<[CC1Option]>, HelpText<"Print option name with mappable diagnostics">;
420 def fdiagnostics_show_name : Flag<["-"], "fdiagnostics-show-name">, Group<f_Group>,
421     Flags<[CC1Option]>, HelpText<"Print diagnostic name">;
422 def fdiagnostics_show_note_include_stack : Flag<["-"], "fdiagnostics-show-note-include-stack">,
423     Group<f_Group>,  Flags<[CC1Option]>, HelpText<"Display include stacks for diagnostic notes">;
424 def fdiagnostics_format_EQ : Joined<["-"], "fdiagnostics-format=">, Group<f_clang_Group>;
425 def fdiagnostics_show_category_EQ : Joined<["-"], "fdiagnostics-show-category=">, Group<f_clang_Group>;
426 def fdiagnostics_show_template_tree : Flag<["-"], "fdiagnostics-show-template-tree">,
427     Group<f_Group>, Flags<[CC1Option]>,
428     HelpText<"Print a template comparison tree for differing templates">;
429 def fdollars_in_identifiers : Flag<["-"], "fdollars-in-identifiers">, Group<f_Group>,
430   HelpText<"Allow '$' in identifiers">, Flags<[CC1Option]>;
431 def fdwarf2_cfi_asm : Flag<["-"], "fdwarf2-cfi-asm">, Group<f_Group>;
432 def fno_dwarf2_cfi_asm : Flag<["-"], "fno-dwarf2-cfi-asm">, Group<f_Group>,  Flags<[CC1Option]>;
433 def fdwarf_directory_asm : Flag<["-"], "fdwarf-directory-asm">, Group<f_Group>;
434 def fno_dwarf_directory_asm : Flag<["-"], "fno-dwarf-directory-asm">, Group<f_Group>, Flags<[CC1Option]>;
435 def felide_constructors : Flag<["-"], "felide-constructors">, Group<f_Group>;
436 def fno_elide_type : Flag<["-"], "fno-elide-type">, Group<f_Group>,
437     Flags<[CC1Option]>,
438     HelpText<"Do not elide types when printing diagnostics">;
439 def feliminate_unused_debug_symbols : Flag<["-"], "feliminate-unused-debug-symbols">, Group<f_Group>;
440 def femit_all_decls : Flag<["-"], "femit-all-decls">, Group<f_Group>, Flags<[CC1Option]>,
441   HelpText<"Emit all declarations, even if unused">;
442 def fencoding_EQ : Joined<["-"], "fencoding=">, Group<f_Group>;
443 def ferror_limit_EQ : Joined<["-"], "ferror-limit=">, Group<f_Group>;
444 def fexceptions : Flag<["-"], "fexceptions">, Group<f_Group>, Flags<[CC1Option]>,
445   HelpText<"Enable support for exception handling">;
446 def fexpensive_optimizations : Flag<["-"], "fexpensive-optimizations">,
447   Group<clang_ignored_f_Group>;
448 def fno_expensive_optimizations : Flag<["-"], "fno-expensive-optimizations">,
449   Group<clang_ignored_f_Group>;
450 def fextdirs_EQ : Joined<["-"], "fextdirs=">, Group<f_Group>;
451 def fextended_identifiers : Flag<["-"], "fextended-identifiers">,
452     Group<clang_ignored_f_Group>;
453 def fno_extended_identifiers : Flag<["-"], "fno-extended-identifiers">,
454     Group<f_Group>, Flags<[Unsupported]>;
455 def fhosted : Flag<["-"], "fhosted">, Group<f_Group>;
456 def ffast_math : Flag<["-"], "ffast-math">, Group<f_Group>, Flags<[CC1Option]>,
457   HelpText<"Enable the *frontend*'s 'fast-math' mode. This has no effect on "
458            "optimizations, but provides a preprocessor macro __FAST_MATH__ the "
459            "same as GCC's -ffast-math flag">;
460 def fno_fast_math : Flag<["-"], "fno-fast-math">, Group<f_Group>;
461 def fmath_errno : Flag<["-"], "fmath-errno">, Group<f_Group>, Flags<[CC1Option]>,
462   HelpText<"Require math functions to indicate errors by setting errno">;
463 def fno_math_errno : Flag<["-"], "fno-math-errno">, Group<f_Group>;
464 def fbracket_depth_EQ : Joined<["-"], "fbracket-depth=">, Group<f_Group>;
465 def fsignaling_math : Flag<["-"], "fsignaling-math">, Group<f_Group>;
466 def fno_signaling_math : Flag<["-"], "fno-signaling-math">, Group<f_Group>;
467 def fsanitize_EQ : CommaJoined<["-"], "fsanitize=">, Group<f_clang_Group>,
468                    Flags<[CC1Option, CoreOption]>, MetaVarName<"<check>">,
469                    HelpText<"Enable runtime instrumentation for bug detection: "
470                             "address (memory errors) | thread (race detection) | "
471                             "undefined (miscellaneous undefined behavior)">;
472 def fno_sanitize_EQ : CommaJoined<["-"], "fno-sanitize=">, Group<f_clang_Group>;
473 def fsanitize_address_zero_base_shadow : Flag<["-"], "fsanitize-address-zero-base-shadow">,
474                                          Group<f_clang_Group>, Flags<[CC1Option]>,
475                                          HelpText<"Make AddressSanitizer map shadow memory "
476                                                   "at zero offset">;
477 def fno_sanitize_address_zero_base_shadow : Flag<["-"], "fno-sanitize-address-zero-base-shadow">,
478                                             Group<f_clang_Group>;
479 def fsanitize_blacklist : Joined<["-"], "fsanitize-blacklist=">,
480                           Group<f_clang_Group>, Flags<[CC1Option]>,
481                           HelpText<"Path to blacklist file for sanitizers">;
482 def fno_sanitize_blacklist : Flag<["-"], "fno-sanitize-blacklist">,
483                              Group<f_clang_Group>,
484                              HelpText<"Don't use blacklist file for sanitizers">;
485 def fsanitize_memory_track_origins : Flag<["-"], "fsanitize-memory-track-origins">,
486                                      Group<f_clang_Group>, Flags<[CC1Option]>,
487                                      HelpText<"Enable origins tracking in MemorySanitizer">;
488 def fno_sanitize_memory_track_origins : Flag<["-"], "fno-sanitize-memory-track-origins">,
489                                         Group<f_clang_Group>;
490 def fsanitize_recover : Flag<["-"], "fsanitize-recover">,
491                         Group<f_clang_Group>;
492 def fno_sanitize_recover : Flag<["-"], "fno-sanitize-recover">,
493                            Group<f_clang_Group>, Flags<[CC1Option]>,
494                            HelpText<"Disable sanitizer check recovery">;
495 def fsanitize_undefined_trap_on_error : Flag<["-"], "fsanitize-undefined-trap-on-error">,
496                                         Group<f_clang_Group>, Flags<[CC1Option]>;
497 def fno_sanitize_undefined_trap_on_error : Flag<["-"], "fno-sanitize-undefined-trap-on-error">,
498                                            Group<f_clang_Group>;
499 def funsafe_math_optimizations : Flag<["-"], "funsafe-math-optimizations">,
500   Group<f_Group>;
501 def fno_unsafe_math_optimizations : Flag<["-"], "fno-unsafe-math-optimizations">,
502   Group<f_Group>;
503 def fassociative_math : Flag<["-"], "fassociative-math">, Group<f_Group>;
504 def fno_associative_math : Flag<["-"], "fno-associative-math">, Group<f_Group>;
505 def freciprocal_math : Flag<["-"], "freciprocal-math">, Group<f_Group>;
506 def fno_reciprocal_math : Flag<["-"], "fno-reciprocal-math">, Group<f_Group>;
507 def ffinite_math_only : Flag<["-"], "ffinite-math-only">, Group<f_Group>, Flags<[CC1Option]>;
508 def fno_finite_math_only : Flag<["-"], "fno-finite-math-only">, Group<f_Group>;
509 def fsigned_zeros : Flag<["-"], "fsigned-zeros">, Group<f_Group>;
510 def fno_signed_zeros : Flag<["-"], "fno-signed-zeros">, Group<f_Group>;
511 def fhonor_nans : Flag<["-"], "fhonor-nans">, Group<f_Group>;
512 def fno_honor_nans : Flag<["-"], "fno-honor-nans">, Group<f_Group>;
513 def fhonor_infinities : Flag<["-"], "fhonor-infinities">, Group<f_Group>;
514 def fno_honor_infinities : Flag<["-"], "fno-honor-infinities">, Group<f_Group>;
515 // Sic. This option was misspelled originally.
516 def fhonor_infinites : Flag<["-"], "fhonor-infinites">, Alias<fhonor_infinities>;
517 def fno_honor_infinites : Flag<["-"], "fno-honor-infinites">, Alias<fno_honor_infinities>;
518 def ftrapping_math : Flag<["-"], "ftrapping-math">, Group<f_Group>;
519 def fno_trapping_math : Flag<["-"], "fno-trapping-math">, Group<f_Group>;
520 def ffp_contract : Joined<["-"], "ffp-contract=">, Group<f_Group>,
521   Flags<[CC1Option]>, HelpText<"Form fused FP ops (e.g. FMAs): fast (everywhere)"
522   " | on (according to FP_CONTRACT pragma, default) | off (never fuse)">;
523
524 def ffor_scope : Flag<["-"], "ffor-scope">, Group<f_Group>;
525 def fno_for_scope : Flag<["-"], "fno-for-scope">, Group<f_Group>;
526
527 def frewrite_includes : Flag<["-"], "frewrite-includes">, Group<f_Group>,
528   Flags<[CC1Option]>;
529 def fno_rewrite_includes : Flag<["-"], "fno-rewrite-includes">, Group<f_Group>;
530
531 def ffreestanding : Flag<["-"], "ffreestanding">, Group<f_Group>, Flags<[CC1Option]>,
532   HelpText<"Assert that the compilation takes place in a freestanding environment">;
533 def fformat_extensions: Flag<["-"], "fformat-extensions">, Group<f_Group>, Flags<[CC1Option]>,
534   HelpText<"Enable FreeBSD kernel specific format string extensions">;
535 def fgnu_keywords : Flag<["-"], "fgnu-keywords">, Group<f_Group>, Flags<[CC1Option]>,
536   HelpText<"Allow GNU-extension keywords regardless of language standard">;
537 def fgnu89_inline : Flag<["-"], "fgnu89-inline">, Group<f_Group>, Flags<[CC1Option]>,
538   HelpText<"Use the gnu89 inline semantics">;
539 def fno_gnu89_inline : Flag<["-"], "fno-gnu89-inline">, Group<f_Group>;
540 def fgnu_runtime : Flag<["-"], "fgnu-runtime">, Group<f_Group>,
541   HelpText<"Generate output compatible with the standard GNU Objective-C runtime">;
542 def fheinous_gnu_extensions : Flag<["-"], "fheinous-gnu-extensions">, Flags<[CC1Option]>;
543 def filelist : Separate<["-"], "filelist">, Flags<[LinkerInput]>;
544 def findirect_virtual_calls : Flag<["-"], "findirect-virtual-calls">, Alias<fapple_kext>;
545 def finline_functions : Flag<["-"], "finline-functions">, Group<clang_ignored_f_Group>;
546 def finline : Flag<["-"], "finline">, Group<clang_ignored_f_Group>;
547 def finstrument_functions : Flag<["-"], "finstrument-functions">, Group<f_Group>, Flags<[CC1Option]>,
548   HelpText<"Generate calls to instrument function entry and exit">;
549 def fkeep_inline_functions : Flag<["-"], "fkeep-inline-functions">, Group<clang_ignored_f_Group>;
550 def flat__namespace : Flag<["-"], "flat_namespace">;
551 def flax_vector_conversions : Flag<["-"], "flax-vector-conversions">, Group<f_Group>;
552 def flimit_debug_info : Flag<["-"], "flimit-debug-info">, Group<f_Group>, Flags<[CC1Option]>,
553   HelpText<"Limit debug information produced to reduce size of debug binary">;
554 def flimited_precision_EQ : Joined<["-"], "flimited-precision=">, Group<f_Group>;
555 def flto : Flag<["-"], "flto">, Group<f_Group>;
556 def fno_lto : Flag<["-"], "fno-lto">, Group<f_Group>;
557 def fmacro_backtrace_limit_EQ : Joined<["-"], "fmacro-backtrace-limit=">,
558                                 Group<f_Group>;
559 def fmerge_all_constants : Flag<["-"], "fmerge-all-constants">, Group<f_Group>;
560 def fmessage_length_EQ : Joined<["-"], "fmessage-length=">, Group<f_Group>;
561 def fms_extensions : Flag<["-"], "fms-extensions">, Group<f_Group>, Flags<[CC1Option]>,
562   HelpText<"Accept some non-standard constructs supported by the Microsoft compiler">;
563 def fms_compatibility : Flag<["-"], "fms-compatibility">, Group<f_Group>, Flags<[CC1Option]>,
564   HelpText<"Enable Microsoft compatibility mode">;
565 def fmsc_version : Joined<["-"], "fmsc-version=">, Group<f_Group>, Flags<[CC1Option, CoreOption]>,
566   HelpText<"Version of the Microsoft C/C++ compiler to report in _MSC_VER (0 = don't define it (default))">;
567 def fdelayed_template_parsing : Flag<["-"], "fdelayed-template-parsing">, Group<f_Group>,
568   HelpText<"Parse templated function definitions at the end of the "
569            "translation unit ">,  Flags<[CC1Option]>;
570 def fmodules_cache_path : Joined<["-"], "fmodules-cache-path=">, Group<i_Group>,
571   Flags<[DriverOption, CC1Option]>, MetaVarName<"<directory>">,
572   HelpText<"Specify the module cache path">;
573 def fmodules_prune_interval : Joined<["-"], "fmodules-prune-interval=">, Group<i_Group>,
574   Flags<[CC1Option]>, MetaVarName<"<seconds>">,
575   HelpText<"Specify the interval (in seconds) between attempts to prune the module cache">;
576 def fmodules_prune_after : Joined<["-"], "fmodules-prune-after=">, Group<i_Group>,
577   Flags<[CC1Option]>, MetaVarName<"<seconds>">,
578   HelpText<"Specify the interval (in seconds) after which a module file will be considered unused">;
579 def fmodules : Flag <["-"], "fmodules">, Group<f_Group>,
580   Flags<[DriverOption, CC1Option]>,
581   HelpText<"Enable the 'modules' language feature">;
582 def fmodule_maps : Flag <["-"], "fmodule-maps">, Group<f_Group>,
583   Flags<[DriverOption,CC1Option]>,
584   HelpText<"Read module maps to understand the structure of library headers">;
585 def fmodule_name : JoinedOrSeparate<["-"], "fmodule-name=">, Group<f_Group>,
586   Flags<[DriverOption,CC1Option]>, MetaVarName<"<name>">,
587   HelpText<"Specify the name of the module to build">;
588 def fmodule_map_file : JoinedOrSeparate<["-"], "fmodule-map-file=">,
589   Group<f_Group>, Flags<[DriverOption,CC1Option]>, MetaVarName<"<file>">,
590   HelpText<"Load this module map file">;
591 def fmodules_ignore_macro : Joined<["-"], "fmodules-ignore-macro=">, Group<f_Group>, Flags<[CC1Option]>,
592   HelpText<"Ignore the definition of the given macro when building and loading modules">;
593 def fmodules_decluse : Flag <["-"], "fmodules-decluse">, Group<f_Group>,
594   Flags<[DriverOption,CC1Option]>,
595   HelpText<"Require declaration of modules used within a module">;
596 def fretain_comments_from_system_headers : Flag<["-"], "fretain-comments-from-system-headers">, Group<f_Group>, Flags<[CC1Option]>;
597
598 def fmudflapth : Flag<["-"], "fmudflapth">, Group<f_Group>;
599 def fmudflap : Flag<["-"], "fmudflap">, Group<f_Group>;
600 def fnested_functions : Flag<["-"], "fnested-functions">, Group<f_Group>;
601 def fnext_runtime : Flag<["-"], "fnext-runtime">, Group<f_Group>;
602 def fno_access_control : Flag<["-"], "fno-access-control">, Group<f_Group>, Flags<[CC1Option]>,
603   HelpText<"Disable C++ access control">;
604 def fno_apple_pragma_pack : Flag<["-"], "fno-apple-pragma-pack">, Group<f_Group>;
605 def fno_asm : Flag<["-"], "fno-asm">, Group<f_Group>;
606 def fno_asynchronous_unwind_tables : Flag<["-"], "fno-asynchronous-unwind-tables">, Group<f_Group>;
607 def fno_assume_sane_operator_new : Flag<["-"], "fno-assume-sane-operator-new">, Group<f_Group>,
608   HelpText<"Don't assume that C++'s global operator new can't alias any pointer">,
609   Flags<[CC1Option]>;
610 def fno_blocks : Flag<["-"], "fno-blocks">, Group<f_Group>;
611 def fno_borland_extensions : Flag<["-"], "fno-borland-extensions">, Group<f_Group>;
612 def fno_builtin : Flag<["-"], "fno-builtin">, Group<f_Group>, Flags<[CC1Option]>,
613   HelpText<"Disable implicit builtin knowledge of functions">;
614 def fno_builtin_ : Joined<["-"], "fno-builtin-">, Group<clang_ignored_f_Group>,
615   HelpText<"Disable implicit builtin knowledge of a specific function">;
616 def fno_math_builtin : Flag<["-"], "fno-math-builtin">, Group<f_Group>, Flags<[CC1Option]>,
617   HelpText<"Disable implicit builtin knowledge of math functions">;
618 def fno_caret_diagnostics : Flag<["-"], "fno-caret-diagnostics">, Group<f_Group>,
619  Flags<[CC1Option]>;
620 def fno_color_diagnostics : Flag<["-"], "fno-color-diagnostics">, Group<f_Group>;
621 def fno_diagnostics_color : Flag<["-"], "fno-diagnostics-color">, Group<f_Group>;
622 def fno_common : Flag<["-"], "fno-common">, Group<f_Group>, Flags<[CC1Option]>,
623     HelpText<"Compile common globals like normal definitions">;
624 def fno_constant_cfstrings : Flag<["-"], "fno-constant-cfstrings">, Group<f_Group>,
625   Flags<[CC1Option]>,
626   HelpText<"Disable creation of CodeFoundation-type constant strings">;
627 def fno_cxx_exceptions: Flag<["-"], "fno-cxx-exceptions">, Group<f_Group>;
628 def fno_cxx_modules : Flag <["-"], "fno-cxx-modules">, Group<f_Group>,
629   Flags<[DriverOption]>;
630 def fno_diagnostics_fixit_info : Flag<["-"], "fno-diagnostics-fixit-info">, Group<f_Group>,
631   Flags<[CC1Option]>, HelpText<"Do not include fixit information in diagnostics">;
632 def fno_diagnostics_show_name : Flag<["-"], "fno-diagnostics-show-name">, Group<f_Group>;
633 def fno_diagnostics_show_option : Flag<["-"], "fno-diagnostics-show-option">, Group<f_Group>;
634 def fno_diagnostics_show_note_include_stack : Flag<["-"], "fno-diagnostics-show-note-include-stack">,
635     Flags<[CC1Option]>, Group<f_Group>;
636 def fno_dollars_in_identifiers : Flag<["-"], "fno-dollars-in-identifiers">, Group<f_Group>,
637   HelpText<"Disallow '$' in identifiers">, Flags<[CC1Option]>;
638 def fno_elide_constructors : Flag<["-"], "fno-elide-constructors">, Group<f_Group>,
639   HelpText<"Disable C++ copy constructor elision">, Flags<[CC1Option]>;
640 def fno_eliminate_unused_debug_symbols : Flag<["-"], "fno-eliminate-unused-debug-symbols">, Group<f_Group>;
641 def fno_exceptions : Flag<["-"], "fno-exceptions">, Group<f_Group>;
642 def fno_gnu_keywords : Flag<["-"], "fno-gnu-keywords">, Group<f_Group>, Flags<[CC1Option]>;
643 def fno_inline_functions : Flag<["-"], "fno-inline-functions">, Group<f_clang_Group>, Flags<[CC1Option]>;
644 def fno_inline : Flag<["-"], "fno-inline">, Group<f_clang_Group>, Flags<[CC1Option]>;
645 def fno_keep_inline_functions : Flag<["-"], "fno-keep-inline-functions">, Group<clang_ignored_f_Group>;
646 def fno_lax_vector_conversions : Flag<["-"], "fno-lax-vector-conversions">, Group<f_Group>,
647   HelpText<"Disallow implicit conversions between vectors with a different number of elements or different element types">, Flags<[CC1Option]>;
648 def fno_limit_debug_info : Flag<["-"], "fno-limit-debug-info">, Group<f_Group>, Flags<[CC1Option]>,
649   HelpText<"Do not limit debug information produced to reduce size of debug binary">;
650 def fno_merge_all_constants : Flag<["-"], "fno-merge-all-constants">, Group<f_Group>,
651     Flags<[CC1Option]>, HelpText<"Disallow merging of constants">;
652 def fno_modules : Flag <["-"], "fno-modules">, Group<f_Group>,
653   Flags<[DriverOption]>;
654 def fno_module_maps : Flag <["-"], "fno-module-maps">, Group<f_Group>,
655   Flags<[DriverOption]>;
656 def fno_modules_decluse : Flag <["-"], "fno-modules-decluse">, Group<f_Group>,
657   Flags<[DriverOption]>;
658 def fno_ms_extensions : Flag<["-"], "fno-ms-extensions">, Group<f_Group>;
659 def fno_ms_compatibility : Flag<["-"], "fno-ms-compatibility">, Group<f_Group>;
660 def fno_delayed_template_parsing : Flag<["-"], "fno-delayed-template-parsing">, Group<f_Group>;
661 def fno_objc_exceptions: Flag<["-"], "fno-objc-exceptions">, Group<f_Group>;
662 def fno_objc_legacy_dispatch : Flag<["-"], "fno-objc-legacy-dispatch">, Group<f_Group>;
663 def fno_omit_frame_pointer : Flag<["-"], "fno-omit-frame-pointer">, Group<f_Group>;
664 def fno_operator_names : Flag<["-"], "fno-operator-names">, Group<f_Group>,
665   HelpText<"Do not treat C++ operator name keywords as synonyms for operators">,
666   Flags<[CC1Option]>;
667 def fno_pascal_strings : Flag<["-"], "fno-pascal-strings">, Group<f_Group>;
668 def fno_rtti : Flag<["-"], "fno-rtti">, Group<f_Group>, Flags<[CC1Option]>,
669   HelpText<"Disable generation of rtti information">;
670 def fno_short_enums : Flag<["-"], "fno-short-enums">, Group<f_Group>;
671 def fno_show_column : Flag<["-"], "fno-show-column">, Group<f_Group>, Flags<[CC1Option]>,
672   HelpText<"Do not include column number on diagnostics">;
673 def fno_show_source_location : Flag<["-"], "fno-show-source-location">, Group<f_Group>,
674   Flags<[CC1Option]>, HelpText<"Do not include source location information with diagnostics">;
675 def fno_spell_checking : Flag<["-"], "fno-spell-checking">, Group<f_Group>,
676   Flags<[CC1Option]>, HelpText<"Disable spell-checking">;
677 def fno_stack_protector : Flag<["-"], "fno-stack-protector">, Group<f_Group>;
678 def fno_strict_aliasing : Flag<["-"], "fno-strict-aliasing">, Group<f_Group>;
679 def fstruct_path_tbaa : Flag<["-"], "fstruct-path-tbaa">, Group<f_Group>;
680 def fno_struct_path_tbaa : Flag<["-"], "fno-struct-path-tbaa">, Group<f_Group>;
681 def fno_strict_enums : Flag<["-"], "fno-strict-enums">, Group<f_Group>;
682 def fno_strict_overflow : Flag<["-"], "fno-strict-overflow">, Group<f_Group>;
683 def fno_threadsafe_statics : Flag<["-"], "fno-threadsafe-statics">, Group<f_Group>,
684   Flags<[CC1Option]>, HelpText<"Do not emit code to make initialization of local statics thread safe">;
685 def fno_use_cxa_atexit : Flag<["-"], "fno-use-cxa-atexit">, Group<f_Group>, Flags<[CC1Option]>,
686   HelpText<"Don't use __cxa_atexit for calling destructors">;
687 def fno_use_init_array : Flag<["-"], "fno-use-init-array">, Group<f_Group>, Flags<[CC1Option]>,
688   HelpText<"Don't use .init_array instead of .ctors">;
689 def fno_unit_at_a_time : Flag<["-"], "fno-unit-at-a-time">, Group<f_Group>;
690 def fno_unwind_tables : Flag<["-"], "fno-unwind-tables">, Group<f_Group>;
691 def fno_verbose_asm : Flag<["-"], "fno-verbose-asm">, Group<f_Group>;
692 def fno_working_directory : Flag<["-"], "fno-working-directory">, Group<f_Group>;
693 def fno_wrapv : Flag<["-"], "fno-wrapv">, Group<f_Group>;
694 def fno_zero_initialized_in_bss : Flag<["-"], "fno-zero-initialized-in-bss">, Group<f_Group>;
695 def fobjc_arc : Flag<["-"], "fobjc-arc">, Group<f_Group>, Flags<[CC1Option]>,
696   HelpText<"Synthesize retain and release calls for Objective-C pointers">;
697 def fno_objc_arc : Flag<["-"], "fno-objc-arc">, Group<f_Group>;
698 def fobjc_arc_exceptions : Flag<["-"], "fobjc-arc-exceptions">, Group<f_Group>, Flags<[CC1Option]>,
699   HelpText<"Use EH-safe code when synthesizing retains and releases in -fobjc-arc">;
700 def fno_objc_arc_exceptions : Flag<["-"], "fno-objc-arc-exceptions">, Group<f_Group>;
701 def fobjc_atdefs : Flag<["-"], "fobjc-atdefs">, Group<clang_ignored_f_Group>;
702 def fobjc_call_cxx_cdtors : Flag<["-"], "fobjc-call-cxx-cdtors">, Group<clang_ignored_f_Group>;
703 def fobjc_exceptions: Flag<["-"], "fobjc-exceptions">, Group<f_Group>,
704   HelpText<"Enable Objective-C exceptions">, Flags<[CC1Option]>;
705
706 def fobjc_gc_only : Flag<["-"], "fobjc-gc-only">, Group<f_Group>, Flags<[CC1Option]>,
707   HelpText<"Use GC exclusively for Objective-C related memory management">;
708 def fobjc_gc : Flag<["-"], "fobjc-gc">, Group<f_Group>, Flags<[CC1Option]>,
709   HelpText<"Enable Objective-C garbage collection">;
710 def fobjc_legacy_dispatch : Flag<["-"], "fobjc-legacy-dispatch">, Group<f_Group>;
711 def fobjc_new_property : Flag<["-"], "fobjc-new-property">, Group<clang_ignored_f_Group>;
712 def fobjc_infer_related_result_type : Flag<["-"], "fobjc-infer-related-result-type">, 
713                                       Group<f_Group>;
714 def fno_objc_infer_related_result_type : Flag<["-"],
715   "fno-objc-infer-related-result-type">, Group<f_Group>,
716   HelpText<
717     "do not infer Objective-C related result type based on method family">,
718   Flags<[CC1Option]>;
719 def fobjc_link_runtime: Flag<["-"], "fobjc-link-runtime">, Group<f_Group>;
720
721 // Objective-C ABI options.
722 def fobjc_runtime_EQ : Joined<["-"], "fobjc-runtime=">, Group<f_Group>, Flags<[CC1Option]>,
723   HelpText<"Specify the target Objective-C runtime kind and version">;
724 def fobjc_abi_version_EQ : Joined<["-"], "fobjc-abi-version=">, Group<f_Group>;
725 def fobjc_nonfragile_abi_version_EQ : Joined<["-"], "fobjc-nonfragile-abi-version=">, Group<f_Group>;
726 def fobjc_nonfragile_abi : Flag<["-"], "fobjc-nonfragile-abi">, Group<f_Group>;
727 def fno_objc_nonfragile_abi : Flag<["-"], "fno-objc-nonfragile-abi">, Group<f_Group>;
728
729 def fobjc_sender_dependent_dispatch : Flag<["-"], "fobjc-sender-dependent-dispatch">, Group<f_Group>;
730 def fomit_frame_pointer : Flag<["-"], "fomit-frame-pointer">, Group<f_Group>;
731 def fopenmp : Flag<["-"], "fopenmp">, Group<f_Group>, Flags<[CC1Option]>;
732 def fno_optimize_sibling_calls : Flag<["-"], "fno-optimize-sibling-calls">, Group<f_Group>;
733 def foptimize_sibling_calls : Flag<["-"], "foptimize-sibling-calls">, Group<f_Group>;
734 def force__cpusubtype__ALL : Flag<["-"], "force_cpusubtype_ALL">;
735 def force__flat__namespace : Flag<["-"], "force_flat_namespace">;
736 def force__load : Separate<["-"], "force_load">;
737 def foutput_class_dir_EQ : Joined<["-"], "foutput-class-dir=">, Group<f_Group>;
738 def fpack_struct : Flag<["-"], "fpack-struct">, Group<f_Group>;
739 def fno_pack_struct : Flag<["-"], "fno-pack-struct">, Group<f_Group>;
740 def fpack_struct_EQ : Joined<["-"], "fpack-struct=">, Group<f_Group>, Flags<[CC1Option]>,
741   HelpText<"Specify the default maximum struct packing alignment">;
742 def fpascal_strings : Flag<["-"], "fpascal-strings">, Group<f_Group>, Flags<[CC1Option]>,
743   HelpText<"Recognize and construct Pascal-style string literals">;
744 def fpcc_struct_return : Flag<["-"], "fpcc-struct-return">, Group<f_Group>, Flags<[CC1Option]>,
745   HelpText<"Override the default ABI to return all structs on the stack">;
746 def fpch_preprocess : Flag<["-"], "fpch-preprocess">, Group<f_Group>;
747 def fpic : Flag<["-"], "fpic">, Group<f_Group>;
748 def fno_pic : Flag<["-"], "fno-pic">, Group<f_Group>;
749 def fpie : Flag<["-"], "fpie">, Group<f_Group>;
750 def fno_pie : Flag<["-"], "fno-pie">, Group<f_Group>;
751 def fprofile_arcs : Flag<["-"], "fprofile-arcs">, Group<f_Group>;
752 def fprofile_generate : Flag<["-"], "fprofile-generate">, Group<f_Group>;
753 def framework : Separate<["-"], "framework">, Flags<[LinkerInput]>;
754 def frandom_seed_EQ : Joined<["-"], "frandom-seed=">, Group<clang_ignored_f_Group>;
755 def freg_struct_return : Flag<["-"], "freg-struct-return">, Group<f_Group>, Flags<[CC1Option]>,
756   HelpText<"Override the default ABI to return small structs in registers">;
757 def frtti : Flag<["-"], "frtti">, Group<f_Group>;
758 def fsched_interblock : Flag<["-"], "fsched-interblock">, Group<clang_ignored_f_Group>;
759 def fshort_enums : Flag<["-"], "fshort-enums">, Group<f_Group>, Flags<[CC1Option]>,
760   HelpText<"Allocate to an enum type only as many bytes as it needs for the declared range of possible values">;
761 def freorder_blocks : Flag<["-"], "freorder-blocks">, Group<clang_ignored_f_Group>;
762 def fshort_wchar : Flag<["-"], "fshort-wchar">, Group<f_Group>, Flags<[CC1Option]>,
763   HelpText<"Force wchar_t to be a short unsigned int">;
764 def fshow_overloads_EQ : Joined<["-"], "fshow-overloads=">, Group<f_Group>, Flags<[CC1Option]>,
765   HelpText<"Which overload candidates to show when overload resolution fails: "
766            "best|all; defaults to all">;
767 def fshow_column : Flag<["-"], "fshow-column">, Group<f_Group>, Flags<[CC1Option]>;
768 def fshow_source_location : Flag<["-"], "fshow-source-location">, Group<f_Group>;
769 def fspell_checking : Flag<["-"], "fspell-checking">, Group<f_Group>;
770 def fsigned_bitfields : Flag<["-"], "fsigned-bitfields">, Group<f_Group>;
771 def fsigned_char : Flag<["-"], "fsigned-char">, Group<f_Group>;
772 def fno_signed_char : Flag<["-"], "fno-signed-char">, Flags<[CC1Option]>,
773     Group<clang_ignored_f_Group>, HelpText<"Char is unsigned">;
774 def fsplit_stack : Flag<["-"], "fsplit-stack">, Group<f_Group>;
775 def fstack_protector_all : Flag<["-"], "fstack-protector-all">, Group<f_Group>;
776 def fstack_protector : Flag<["-"], "fstack-protector">, Group<f_Group>;
777 def fstrict_aliasing : Flag<["-"], "fstrict-aliasing">, Group<f_Group>;
778 def fstrict_enums : Flag<["-"], "fstrict-enums">, Group<f_Group>, Flags<[CC1Option]>,
779   HelpText<"Enable optimizations based on the strict definition of an enum's "
780            "value range">;
781 def fstrict_overflow : Flag<["-"], "fstrict-overflow">, Group<f_Group>;
782 def fsyntax_only : Flag<["-"], "fsyntax-only">, Flags<[DriverOption,CC1Option]>, Group<Action_Group>;
783 def ftabstop_EQ : Joined<["-"], "ftabstop=">, Group<f_Group>;
784 def ftemplate_depth_EQ : Joined<["-"], "ftemplate-depth=">, Group<f_Group>;
785 def ftemplate_depth_ : Joined<["-"], "ftemplate-depth-">, Group<f_Group>;
786 def ftemplate_backtrace_limit_EQ : Joined<["-"], "ftemplate-backtrace-limit=">,
787                                    Group<f_Group>;
788 def foperator_arrow_depth_EQ : Joined<["-"], "foperator-arrow-depth=">,
789                                Group<f_Group>;
790 def ftest_coverage : Flag<["-"], "ftest-coverage">, Group<f_Group>;
791 def fvectorize : Flag<["-"], "fvectorize">, Group<f_Group>,
792   HelpText<"Enable the loop vectorization passes">;
793 def fno_vectorize : Flag<["-"], "fno-vectorize">, Group<f_Group>;
794 def ftree_vectorize : Flag<["-"], "ftree-vectorize">, Alias<fvectorize>;
795 def fno_tree_vectorize : Flag<["-"], "fno-tree-vectorize">, Alias<fno_vectorize>;
796 def fslp_vectorize : Flag<["-"], "fslp-vectorize">, Group<f_Group>,
797   HelpText<"Enable the superword-level parallelism vectorization passes">;
798 def fno_slp_vectorize : Flag<["-"], "fno-slp-vectorize">, Group<f_Group>;
799 def fslp_vectorize_aggressive : Flag<["-"], "fslp-vectorize-aggressive">, Group<f_Group>,
800   HelpText<"Enable the BB vectorization passes">;
801 def fno_slp_vectorize_aggressive : Flag<["-"], "fno-slp-vectorize-aggressive">, Group<f_Group>;
802 def ftree_slp_vectorize : Flag<["-"], "ftree-slp-vectorize">, Alias<fslp_vectorize>;
803 def fno_tree_slp_vectorize : Flag<["-"], "fno-tree-slp-vectorize">, Alias<fno_slp_vectorize>;
804 def Wlarge_by_value_copy_def : Flag<["-"], "Wlarge-by-value-copy">,
805   HelpText<"Warn if a function definition returns or accepts an object larger "
806            "in bytes than a given value">, Flags<[HelpHidden]>;
807 def Wlarge_by_value_copy_EQ : Joined<["-"], "Wlarge-by-value-copy=">, Flags<[CC1Option]>;
808
809 // Just silence warnings about -Wlarger-than,  -Wframe-larger-than for now.
810 def Wlarger_than : Separate<["-"], "Wlarger-than">, Group<clang_ignored_f_Group>;
811 def Wlarger_than_EQ : Joined<["-"], "Wlarger-than=">, Alias<Wlarger_than>;
812 def Wlarger_than_ : Joined<["-"], "Wlarger-than-">, Alias<Wlarger_than>;
813 def Wframe_larger_than : Separate<["-"], "Wframe-larger-than">, Group<clang_ignored_f_Group>;
814 def Wframe_larger_than_EQ : Joined<["-"], "Wframe-larger-than=">, Alias<Wframe_larger_than>;
815
816 def fterminated_vtables : Flag<["-"], "fterminated-vtables">, Alias<fapple_kext>;
817 def fthreadsafe_statics : Flag<["-"], "fthreadsafe-statics">, Group<f_Group>;
818 def ftime_report : Flag<["-"], "ftime-report">, Group<f_Group>, Flags<[CC1Option]>;
819 def ftlsmodel_EQ : Joined<["-"], "ftls-model=">, Group<f_Group>, Flags<[CC1Option]>;
820 def ftrapv : Flag<["-"], "ftrapv">, Group<f_Group>, Flags<[CC1Option]>,
821   HelpText<"Trap on integer overflow">;
822 def ftrapv_handler_EQ : Joined<["-"], "ftrapv-handler=">, Group<f_Group>,
823   MetaVarName<"<function name>">,
824   HelpText<"Specify the function to be called on overflow">;
825 def ftrapv_handler : Separate<["-"], "ftrapv-handler">, Group<f_Group>, Flags<[CC1Option]>;
826 def ftrap_function_EQ : Joined<["-"], "ftrap-function=">, Group<f_Group>, Flags<[CC1Option]>,
827   HelpText<"Issue call to specified function rather than a trap instruction">;
828 def funit_at_a_time : Flag<["-"], "funit-at-a-time">, Group<f_Group>;
829 def funroll_loops : Flag<["-"], "funroll-loops">, Group<f_Group>,
830   HelpText<"Turn on loop unroller">, Flags<[CC1Option]>;
831 def fno_unroll_loops : Flag<["-"], "fno-unroll-loops">, Group<f_Group>,
832   HelpText<"Turn off loop unroller">, Flags<[CC1Option]>;
833 def freroll_loops : Flag<["-"], "freroll-loops">, Group<f_Group>,
834   HelpText<"Turn on loop reroller">, Flags<[CC1Option]>;
835 def fno_reroll_loops : Flag<["-"], "fno-reroll-loops">, Group<f_Group>,
836   HelpText<"Turn off loop reroller">;
837 def funsigned_bitfields : Flag<["-"], "funsigned-bitfields">, Group<f_Group>;
838 def funsigned_char : Flag<["-"], "funsigned-char">, Group<f_Group>;
839 def fno_unsigned_char : Flag<["-"], "fno-unsigned-char">, Group<clang_ignored_f_Group>;
840 def funwind_tables : Flag<["-"], "funwind-tables">, Group<f_Group>;
841 def fuse_cxa_atexit : Flag<["-"], "fuse-cxa-atexit">, Group<f_Group>;
842 def fuse_init_array : Flag<["-"], "fuse-init-array">, Group<f_Group>, Flags<[CC1Option]>,
843   HelpText<"Use .init_array instead of .ctors">;
844 def fno_var_tracking : Flag<["-"], "fno-var-tracking">,
845   Group<clang_ignored_f_Group>;
846 def fverbose_asm : Flag<["-"], "fverbose-asm">, Group<f_Group>;
847 def fvisibility_EQ : Joined<["-"], "fvisibility=">, Group<f_Group>,
848   HelpText<"Set the default symbol visibility for all global declarations">;
849 def fvisibility_inlines_hidden : Flag<["-"], "fvisibility-inlines-hidden">, Group<f_Group>,
850   HelpText<"Give inline C++ member functions default visibility by default">,
851   Flags<[CC1Option]>;
852 def fvisibility_ms_compat : Flag<["-"], "fvisibility-ms-compat">, Group<f_Group>,
853   HelpText<"Give global types 'default' visibility and global functions and "
854            "variables 'hidden' visibility by default">;
855 def fwrapv : Flag<["-"], "fwrapv">, Group<f_Group>, Flags<[CC1Option]>,
856   HelpText<"Treat signed integer overflow as two's complement">;
857 def fwritable_strings : Flag<["-"], "fwritable-strings">, Group<f_Group>, Flags<[CC1Option]>,
858   HelpText<"Store string literals as writable data">;
859 def fzero_initialized_in_bss : Flag<["-"], "fzero-initialized-in-bss">, Group<f_Group>;
860 def ffunction_sections : Flag<["-"], "ffunction-sections">, Group<f_Group>,
861   Flags<[CC1Option]>,
862   HelpText<"Place each function in its own section (ELF Only)">;
863 def fno_function_sections : Flag<["-"], "fno-function-sections">,
864   Group<f_Group>, Flags<[CC1Option]>;
865 def fdata_sections : Flag <["-"], "fdata-sections">, Group<f_Group>,
866  Flags<[CC1Option]>, HelpText<"Place each data in its own section (ELF Only)">;
867 def fno_data_sections : Flag <["-"], "fno-data-sections">, Group<f_Group>,
868   Flags<[CC1Option]>;
869 def fdebug_types_section: Flag <["-"], "fdebug-types-section">, Group<f_Group>,
870   Flags<[CC1Option]>, HelpText<"Place debug types in their own section (ELF Only)">;
871 def g_Flag : Flag<["-"], "g">, Group<g_Group>,
872   HelpText<"Generate source level debug information">, Flags<[CC1Option]>;
873 def gline_tables_only : Flag<["-"], "gline-tables-only">, Group<g_Group>,
874   HelpText<"Emit debug line number tables only">, Flags<[CC1Option]>;
875 def g0 : Flag<["-"], "g0">, Group<g_Group>;
876 def g1 : Flag<["-"], "g1">, Group<g_Group>;
877 def g2 : Flag<["-"], "g2">, Group<g_Group>;
878 def g3 : Flag<["-"], "g3">, Group<g_Group>;
879 def ggdb : Flag<["-"], "ggdb">, Group<g_Group>;
880 def ggdb0 : Flag<["-"], "ggdb0">, Group<g_Group>;
881 def ggdb1 : Flag<["-"], "ggdb1">, Group<g_Group>;
882 def ggdb2 : Flag<["-"], "ggdb2">, Group<g_Group>;
883 def ggdb3 : Flag<["-"], "ggdb3">, Group<g_Group>;
884 def gdwarf_2 : Flag<["-"], "gdwarf-2">, Group<g_Group>,
885   HelpText<"Generate source level debug information with dwarf version 2">, Flags<[CC1Option]>;
886 def gdwarf_3 : Flag<["-"], "gdwarf-3">, Group<g_Group>,
887   HelpText<"Generate source level debug information with dwarf version 3">, Flags<[CC1Option]>;
888 def gdwarf_4 : Flag<["-"], "gdwarf-4">, Group<g_Group>,
889   HelpText<"Generate source level debug information with dwarf version 4">, Flags<[CC1Option]>;
890 def gfull : Flag<["-"], "gfull">, Group<g_Group>;
891 def gused : Flag<["-"], "gused">, Group<g_Group>;
892 def gstabs : Joined<["-"], "gstabs">, Group<g_Group>, Flags<[Unsupported]>;
893 def gcoff : Joined<["-"], "gcoff">, Group<g_Group>, Flags<[Unsupported]>;
894 def gxcoff : Joined<["-"], "gxcoff">, Group<g_Group>, Flags<[Unsupported]>;
895 def gvms : Joined<["-"], "gvms">, Group<g_Group>, Flags<[Unsupported]>;
896 def gtoggle : Flag<["-"], "gtoggle">, Group<g_flags_Group>, Flags<[Unsupported]>;
897 def grecord_gcc_switches : Flag<["-"], "grecord-gcc-switches">, Group<g_flags_Group>;
898 def gno_record_gcc_switches : Flag<["-"], "gno-record-gcc-switches">,
899   Group<g_flags_Group>;
900 def gstrict_dwarf : Flag<["-"], "gstrict-dwarf">, Group<g_flags_Group>;
901 def gno_strict_dwarf : Flag<["-"], "gno-strict-dwarf">, Group<g_flags_Group>;
902 def gcolumn_info : Flag<["-"], "gcolumn-info">, Group<g_flags_Group>;
903 def gsplit_dwarf : Flag<["-"], "gsplit-dwarf">, Group<g_flags_Group>;
904 def ggnu_pubnames : Flag<["-"], "ggnu-pubnames">, Group<g_flags_Group>;
905 def headerpad__max__install__names : Joined<["-"], "headerpad_max_install_names">;
906 def help : Flag<["-", "--"], "help">, Flags<[CC1Option]>,
907   HelpText<"Display available options">;
908 def index_header_map : Flag<["-"], "index-header-map">, Flags<[CC1Option]>,
909   HelpText<"Make the next included directory (-I or -F) an indexer header map">;
910 def idirafter : JoinedOrSeparate<["-"], "idirafter">, Group<clang_i_Group>, Flags<[CC1Option]>,
911   HelpText<"Add directory to AFTER include search path">;
912 def iframework : JoinedOrSeparate<["-"], "iframework">, Group<clang_i_Group>, Flags<[CC1Option]>,
913   HelpText<"Add directory to SYSTEM framework search path">;
914 def imacros : JoinedOrSeparate<["-", "--"], "imacros">, Group<clang_i_Group>, Flags<[CC1Option]>,
915   HelpText<"Include macros from file before parsing">, MetaVarName<"<file>">;
916 def image__base : Separate<["-"], "image_base">;
917 def include_ : JoinedOrSeparate<["-", "--"], "include">, Group<clang_i_Group>, EnumName<"include">,
918     MetaVarName<"<file>">, HelpText<"Include file before parsing">, Flags<[CC1Option]>;
919 def include_pch : Separate<["-"], "include-pch">, Group<clang_i_Group>, Flags<[CC1Option]>,
920   HelpText<"Include precompiled header file">, MetaVarName<"<file>">;
921 def relocatable_pch : Flag<["-", "--"], "relocatable-pch">, Flags<[CC1Option]>,
922   HelpText<"Whether to build a relocatable precompiled header">;
923 def init : Separate<["-"], "init">;
924 def install__name : Separate<["-"], "install_name">;
925 def integrated_as : Flag<["-"], "integrated-as">, Flags<[DriverOption]>;
926 def iprefix : JoinedOrSeparate<["-"], "iprefix">, Group<clang_i_Group>, Flags<[CC1Option]>,
927   HelpText<"Set the -iwithprefix/-iwithprefixbefore prefix">, MetaVarName<"<dir>">;
928 def iquote : JoinedOrSeparate<["-"], "iquote">, Group<clang_i_Group>, Flags<[CC1Option]>,
929   HelpText<"Add directory to QUOTE include search path">, MetaVarName<"<directory>">;
930 def isysroot : JoinedOrSeparate<["-"], "isysroot">, Group<clang_i_Group>, Flags<[CC1Option]>,
931   HelpText<"Set the system root directory (usually /)">, MetaVarName<"<dir>">;
932 def isystem : JoinedOrSeparate<["-"], "isystem">, Group<clang_i_Group>, Flags<[CC1Option]>,
933   HelpText<"Add directory to SYSTEM include search path">, MetaVarName<"<directory>">;
934 def iwithprefixbefore : JoinedOrSeparate<["-"], "iwithprefixbefore">, Group<clang_i_Group>,
935   HelpText<"Set directory to include search path with prefix">, MetaVarName<"<dir>">,
936   Flags<[CC1Option]>;
937 def iwithprefix : JoinedOrSeparate<["-"], "iwithprefix">, Group<clang_i_Group>, Flags<[CC1Option]>,
938   HelpText<"Set directory to SYSTEM include search path with prefix">, MetaVarName<"<dir>">;
939 def iwithsysroot : JoinedOrSeparate<["-"], "iwithsysroot">, Group<clang_i_Group>,
940   HelpText<"Add directory to SYSTEM include search path, "
941            "absolute paths are relative to -isysroot">, MetaVarName<"<directory>">,
942   Flags<[CC1Option]>;
943 def i : Joined<["-"], "i">, Group<i_Group>;
944 def keep__private__externs : Flag<["-"], "keep_private_externs">;
945 def l : JoinedOrSeparate<["-"], "l">, Flags<[LinkerInput, RenderJoined]>;
946 def lazy__framework : Separate<["-"], "lazy_framework">, Flags<[LinkerInput]>;
947 def lazy__library : Separate<["-"], "lazy_library">, Flags<[LinkerInput]>;
948 def EL : Flag<["-"], "EL">, Flags<[DriverOption]>;
949 def EB : Flag<["-"], "EB">, Flags<[DriverOption]>;
950 def m32 : Flag<["-"], "m32">, Group<m_Group>, Flags<[DriverOption, CoreOption]>;
951 def mqdsp6_compat : Flag<["-"], "mqdsp6-compat">, Group<m_Group>, Flags<[DriverOption,CC1Option]>,
952   HelpText<"Enable hexagon-qdsp6 backward compatibility">;
953 def m3dnowa : Flag<["-"], "m3dnowa">, Group<m_x86_Features_Group>;
954 def m3dnow : Flag<["-"], "m3dnow">, Group<m_x86_Features_Group>;
955 def m64 : Flag<["-"], "m64">, Group<m_Group>, Flags<[DriverOption, CoreOption]>;
956 def mabi_EQ : Joined<["-"], "mabi=">, Group<m_Group>;
957 def march_EQ : Joined<["-"], "march=">, Group<m_Group>;
958 def mcmodel_EQ : Joined<["-"], "mcmodel=">, Group<m_Group>;
959 def mconstant_cfstrings : Flag<["-"], "mconstant-cfstrings">, Group<clang_ignored_m_Group>;
960 def mcpu_EQ : Joined<["-"], "mcpu=">, Group<m_Group>;
961 def mdynamic_no_pic : Joined<["-"], "mdynamic-no-pic">, Group<m_Group>;
962 def mfix_and_continue : Flag<["-"], "mfix-and-continue">, Group<clang_ignored_m_Group>;
963 def mieee_fp : Flag<["-"], "mieee-fp">, Group<clang_ignored_m_Group>;
964 def minline_all_stringops : Flag<["-"], "minline-all-stringops">, Group<clang_ignored_m_Group>;
965 def mno_inline_all_stringops : Flag<["-"], "mno-inline-all-stringops">, Group<clang_ignored_m_Group>;
966 def mfloat_abi_EQ : Joined<["-"], "mfloat-abi=">, Group<m_Group>;
967 def mfpmath_EQ : Joined<["-"], "mfpmath=">, Group<m_Group>;
968 def mfpu_EQ : Joined<["-"], "mfpu=">, Group<m_Group>;
969 def mhwdiv_EQ : Joined<["-"], "mhwdiv=">, Group<m_Group>;
970 def mglobal_merge : Flag<["-"], "mglobal-merge">, Group<m_Group>;
971 def mhard_float : Flag<["-"], "mhard-float">, Group<m_Group>;
972 def miphoneos_version_min_EQ : Joined<["-"], "miphoneos-version-min=">, Group<m_Group>;
973 def mios_version_min_EQ : Joined<["-"], "mios-version-min=">, Alias<miphoneos_version_min_EQ>;
974 def mios_simulator_version_min_EQ : Joined<["-"], "mios-simulator-version-min=">, Group<m_Group>;
975 def mkernel : Flag<["-"], "mkernel">, Group<m_Group>;
976 def mlinker_version_EQ : Joined<["-"], "mlinker-version=">,
977   Flags<[DriverOption]>;
978 def mllvm : Separate<["-"], "mllvm">, Flags<[CC1Option]>,
979   HelpText<"Additional arguments to forward to LLVM's option processing">;
980 def mmacosx_version_min_EQ : Joined<["-"], "mmacosx-version-min=">, Group<m_Group>;
981 def mms_bitfields : Flag<["-"], "mms-bitfields">, Group<m_Group>, Flags<[CC1Option]>,
982   HelpText<"Set the default structure layout to be compatible with the Microsoft compiler standard">;
983 def mstackrealign : Flag<["-"], "mstackrealign">, Group<m_Group>, Flags<[CC1Option]>,
984   HelpText<"Force realign the stack at entry to every function">;
985 def mstack_alignment : Joined<["-"], "mstack-alignment=">, Group<m_Group>, Flags<[CC1Option]>,
986   HelpText<"Set the stack alignment">;
987 def mmmx : Flag<["-"], "mmmx">, Group<m_x86_Features_Group>;
988 def mno_3dnowa : Flag<["-"], "mno-3dnowa">, Group<m_x86_Features_Group>;
989 def mno_3dnow : Flag<["-"], "mno-3dnow">, Group<m_x86_Features_Group>;
990 def mno_constant_cfstrings : Flag<["-"], "mno-constant-cfstrings">, Group<m_Group>;
991 def mno_global_merge : Flag<["-"], "mno-global-merge">, Group<m_Group>, Flags<[CC1Option]>,
992   HelpText<"Disable merging of globals">;
993 def mno_mmx : Flag<["-"], "mno-mmx">, Group<m_x86_Features_Group>;
994 def mno_pascal_strings : Flag<["-"], "mno-pascal-strings">,
995   Alias<fno_pascal_strings>;
996 def mno_red_zone : Flag<["-"], "mno-red-zone">, Group<m_Group>;
997 def mno_relax_all : Flag<["-"], "mno-relax-all">, Group<m_Group>;
998 def mno_rtd: Flag<["-"], "mno-rtd">, Group<m_Group>;
999 def mno_soft_float : Flag<["-"], "mno-soft-float">, Group<m_Group>;
1000 def mno_stackrealign : Flag<["-"], "mno-stackrealign">, Group<m_Group>;
1001 def mno_sse2 : Flag<["-"], "mno-sse2">, Group<m_x86_Features_Group>;
1002 def mno_sse3 : Flag<["-"], "mno-sse3">, Group<m_x86_Features_Group>;
1003 def mno_sse4a : Flag<["-"], "mno-sse4a">, Group<m_x86_Features_Group>;
1004 def mno_sse4 : Flag<["-"], "mno-sse4">, Group<m_x86_Features_Group>;
1005 def mno_sse4_1 : Flag<["-"], "mno-sse4.1">, Group<m_x86_Features_Group>;
1006 def mno_sse4_2 : Flag<["-"], "mno-sse4.2">, Group<m_x86_Features_Group>;
1007 def mno_sse : Flag<["-"], "mno-sse">, Group<m_x86_Features_Group>;
1008 def mno_ssse3 : Flag<["-"], "mno-ssse3">, Group<m_x86_Features_Group>;
1009 def mno_aes : Flag<["-"], "mno-aes">, Group<m_x86_Features_Group>;
1010 def mno_avx : Flag<["-"], "mno-avx">, Group<m_x86_Features_Group>;
1011 def mno_avx2 : Flag<["-"], "mno-avx2">, Group<m_x86_Features_Group>;
1012 def mno_avx512f : Flag<["-"], "mno-avx512f">, Group<m_x86_Features_Group>;
1013 def mno_avx512cd : Flag<["-"], "mno-avx512cd">, Group<m_x86_Features_Group>;
1014 def mno_avx512er : Flag<["-"], "mno-avx512er">, Group<m_x86_Features_Group>;
1015 def mno_avx512pf : Flag<["-"], "mno-avx512pf">, Group<m_x86_Features_Group>;
1016 def mno_pclmul : Flag<["-"], "mno-pclmul">, Group<m_x86_Features_Group>;
1017 def mno_lzcnt : Flag<["-"], "mno-lzcnt">, Group<m_x86_Features_Group>;
1018 def mno_rdrnd : Flag<["-"], "mno-rdrnd">, Group<m_x86_Features_Group>;
1019 def mno_bmi : Flag<["-"], "mno-bmi">, Group<m_x86_Features_Group>;
1020 def mno_bmi2 : Flag<["-"], "mno-bmi2">, Group<m_x86_Features_Group>;
1021 def mno_popcnt : Flag<["-"], "mno-popcnt">, Group<m_x86_Features_Group>;
1022 def mno_tbm : Flag<["-"], "mno-tbm">, Group<m_x86_Features_Group>;
1023 def mno_fma4 : Flag<["-"], "mno-fma4">, Group<m_x86_Features_Group>;
1024 def mno_fma : Flag<["-"], "mno-fma">, Group<m_x86_Features_Group>;
1025 def mno_xop : Flag<["-"], "mno-xop">, Group<m_x86_Features_Group>;
1026 def mno_f16c : Flag<["-"], "mno-f16c">, Group<m_x86_Features_Group>;
1027 def mno_rtm : Flag<["-"], "mno-rtm">, Group<m_x86_Features_Group>;
1028 def mno_prfchw : Flag<["-"], "mno-prfchw">, Group<m_x86_Features_Group>;
1029 def mno_rdseed : Flag<["-"], "mno-rdseed">, Group<m_x86_Features_Group>;
1030 def mno_sha : Flag<["-"], "mno-sha">, Group<m_x86_Features_Group>;
1031
1032 def munaligned_access : Flag<["-"], "munaligned-access">, Group<m_arm_Features_Group>,
1033   HelpText<"Allow memory accesses to be unaligned (ARM only)">;
1034 def mno_unaligned_access : Flag<["-"], "mno-unaligned-access">, Group<m_arm_Features_Group>,
1035   HelpText<"Force all memory accesses to be aligned (ARM only)">;
1036 def mstrict_align : Flag<["-"], "mstrict-align">, Alias<mno_unaligned_access>, Flags<[CC1Option,HelpHidden]>,
1037   HelpText<"Force all memory accesses to be aligned (ARM only, same as mno-unaligned-access)">;
1038 def mno_thumb : Flag<["-"], "mno-thumb">, Group<m_arm_Features_Group>;
1039 def mrestrict_it: Flag<["-"], "mrestrict-it">, Group<m_arm_Features_Group>,
1040   HelpText<"Disallow generation of deprecated IT blocks for ARMv8. It is on by default for ARMv8 Thumb mode.">;
1041 def mno_restrict_it: Flag<["-"], "mno-restrict-it">, Group<m_arm_Features_Group>,
1042   HelpText<"Allow generation of deprecated IT blocks for ARMv8. It is off by default for ARMv8 Thumb mode">;
1043 def marm : Flag<["-"], "marm">, Alias<mno_thumb>;
1044 def ffixed_r9 : Flag<["-"], "ffixed-r9">, Group<m_arm_Features_Group>,
1045   HelpText<"Reserve the r9 register (ARM only)">;
1046 def mcrc : Flag<["-"], "mcrc">, Group<m_arm_Features_Group>,
1047   HelpText<"Allow use of CRC instructions (ARM only)">;
1048 def mnocrc : Flag<["-"], "mnocrc">, Group<m_arm_Features_Group>,
1049   HelpText<"Disallow use of CRC instructions (ARM only)">;
1050
1051 def mvsx : Flag<["-"], "mvsx">, Group<m_ppc_Features_Group>;
1052 def mno_vsx : Flag<["-"], "mno-vsx">, Group<m_ppc_Features_Group>;
1053 def mfprnd : Flag<["-"], "mfprnd">, Group<m_ppc_Features_Group>;
1054 def mno_fprnd : Flag<["-"], "mno-fprnd">, Group<m_ppc_Features_Group>;
1055 def mmfcrf : Flag<["-"], "mmfcrf">, Group<m_ppc_Features_Group>;
1056 def mno_mfcrf : Flag<["-"], "mno-mfcrf">, Group<m_ppc_Features_Group>;
1057 def mpopcntd : Flag<["-"], "mpopcntd">, Group<m_ppc_Features_Group>;
1058 def mno_popcntd : Flag<["-"], "mno-popcntd">, Group<m_ppc_Features_Group>;
1059 def mqpx : Flag<["-"], "mqpx">, Group<m_ppc_Features_Group>;
1060 def mno_qpx : Flag<["-"], "mno-qpx">, Group<m_ppc_Features_Group>;
1061
1062 def faltivec : Flag<["-"], "faltivec">, Group<f_Group>, Flags<[CC1Option]>,
1063   HelpText<"Enable AltiVec vector initializer syntax">;
1064 def fno_altivec : Flag<["-"], "fno-altivec">, Group<f_Group>, Flags<[CC1Option]>;
1065 def maltivec : Flag<["-"], "maltivec">, Alias<faltivec>;
1066 def mno_altivec : Flag<["-"], "mno-altivec">, Alias<fno_altivec>;
1067
1068 def mno_warn_nonportable_cfstrings : Flag<["-"], "mno-warn-nonportable-cfstrings">, Group<m_Group>;
1069 def mno_omit_leaf_frame_pointer : Flag<["-"], "mno-omit-leaf-frame-pointer">, Group<m_Group>;
1070 def momit_leaf_frame_pointer : Flag<["-"], "momit-leaf-frame-pointer">, Group<m_Group>,
1071   HelpText<"Omit frame pointer setup for leaf functions">, Flags<[CC1Option]>;
1072 def moslib_EQ : Joined<["-"], "moslib=">, Group<m_Group>;
1073 def mpascal_strings : Flag<["-"], "mpascal-strings">, Alias<fpascal_strings>;
1074 def mred_zone : Flag<["-"], "mred-zone">, Group<m_Group>;
1075 def mregparm_EQ : Joined<["-"], "mregparm=">, Group<m_Group>;
1076 def mrelax_all : Flag<["-"], "mrelax-all">, Group<m_Group>, Flags<[CC1Option]>,
1077   HelpText<"(integrated-as) Relax all machine instructions">;
1078 def mrtd : Flag<["-"], "mrtd">, Group<m_Group>, Flags<[CC1Option]>,
1079   HelpText<"Make StdCall calling convention the default">;
1080 def msmall_data_threshold_EQ : Joined <["-"], "msmall-data-threshold=">, Group<m_Group>;
1081 def msoft_float : Flag<["-"], "msoft-float">, Group<m_Group>, Flags<[CC1Option]>,
1082   HelpText<"Use software floating point">;
1083 def mno_implicit_float : Flag<["-"], "mno-implicit-float">, Group<m_Group>,
1084   HelpText<"Don't generate implicit floating point instructions">;
1085 def mimplicit_float : Flag<["-"], "mimplicit-float">, Group<m_Group>;
1086 def msse2 : Flag<["-"], "msse2">, Group<m_x86_Features_Group>;
1087 def msse3 : Flag<["-"], "msse3">, Group<m_x86_Features_Group>;
1088 def msse4a : Flag<["-"], "msse4a">, Group<m_x86_Features_Group>;
1089 def msse4 : Flag<["-"], "msse4">, Group<m_x86_Features_Group>;
1090 def msse4_1 : Flag<["-"], "msse4.1">, Group<m_x86_Features_Group>;
1091 def msse4_2 : Flag<["-"], "msse4.2">, Group<m_x86_Features_Group>;
1092 def msse : Flag<["-"], "msse">, Group<m_x86_Features_Group>;
1093 def mssse3 : Flag<["-"], "mssse3">, Group<m_x86_Features_Group>;
1094 def maes : Flag<["-"], "maes">, Group<m_x86_Features_Group>;
1095 def mavx : Flag<["-"], "mavx">, Group<m_x86_Features_Group>;
1096 def mavx2 : Flag<["-"], "mavx2">, Group<m_x86_Features_Group>;
1097 def mavx512f : Flag<["-"], "mavx512f">, Group<m_x86_Features_Group>;
1098 def mavx512cd : Flag<["-"], "mavx512cd">, Group<m_x86_Features_Group>;
1099 def mavx512er : Flag<["-"], "mavx512er">, Group<m_x86_Features_Group>;
1100 def mavx512pf : Flag<["-"], "mavx512pf">, Group<m_x86_Features_Group>;
1101 def mpclmul : Flag<["-"], "mpclmul">, Group<m_x86_Features_Group>;
1102 def mlzcnt : Flag<["-"], "mlzcnt">, Group<m_x86_Features_Group>;
1103 def mrdrnd : Flag<["-"], "mrdrnd">, Group<m_x86_Features_Group>;
1104 def mbmi : Flag<["-"], "mbmi">, Group<m_x86_Features_Group>;
1105 def mbmi2 : Flag<["-"], "mbmi2">, Group<m_x86_Features_Group>;
1106 def mpopcnt : Flag<["-"], "mpopcnt">, Group<m_x86_Features_Group>;
1107 def mtbm : Flag<["-"], "mtbm">, Group<m_x86_Features_Group>;
1108 def mfma4 : Flag<["-"], "mfma4">, Group<m_x86_Features_Group>;
1109 def mfma : Flag<["-"], "mfma">, Group<m_x86_Features_Group>;
1110 def mxop : Flag<["-"], "mxop">, Group<m_x86_Features_Group>;
1111 def mf16c : Flag<["-"], "mf16c">, Group<m_x86_Features_Group>;
1112 def mrtm : Flag<["-"], "mrtm">, Group<m_x86_Features_Group>;
1113 def mprfchw : Flag<["-"], "mprfchw">, Group<m_x86_Features_Group>;
1114 def mrdseed : Flag<["-"], "mrdseed">, Group<m_x86_Features_Group>;
1115 def msha : Flag<["-"], "msha">, Group<m_x86_Features_Group>;
1116 def mcx16 : Flag<["-"], "mcx16">, Group<m_x86_Features_Group>;
1117 def mips16 : Flag<["-"], "mips16">, Group<m_Group>;
1118 def mno_mips16 : Flag<["-"], "mno-mips16">, Group<m_Group>;
1119 def mmicromips : Flag<["-"], "mmicromips">, Group<m_Group>;
1120 def mno_micromips : Flag<["-"], "mno-micromips">, Group<m_Group>;
1121 def mxgot : Flag<["-"], "mxgot">, Group<m_Group>;
1122 def mno_xgot : Flag<["-"], "mno-xgot">, Group<m_Group>;
1123 def mldc1_sdc1 : Flag<["-"], "mldc1-sdc1">, Group<m_Group>;
1124 def mno_ldc1_sdc1 : Flag<["-"], "mno-ldc1-sdc1">, Group<m_Group>;
1125 def mcheck_zero_division : Flag<["-"], "mcheck-zero-division">, Group<m_Group>;
1126 def mno_check_zero_division : Flag<["-"], "mno-check-zero-division">,
1127                               Group<m_Group>;
1128 def mdsp : Flag<["-"], "mdsp">, Group<m_Group>;
1129 def mno_dsp : Flag<["-"], "mno-dsp">, Group<m_Group>;
1130 def mdspr2 : Flag<["-"], "mdspr2">, Group<m_Group>;
1131 def mno_dspr2 : Flag<["-"], "mno-dspr2">, Group<m_Group>;
1132 def msingle_float : Flag<["-"], "msingle-float">, Group<m_Group>;
1133 def mdouble_float : Flag<["-"], "mdouble-float">, Group<m_Group>;
1134 def mmsa : Flag<["-"], "mmsa">, Group<m_Group>,
1135   HelpText<"Enable MSA ASE (MIPS only)">;
1136 def mno_msa : Flag<["-"], "mno-msa">, Group<m_Group>,
1137   HelpText<"Disable MSA ASE (MIPS only)">;
1138 def mfp64 : Flag<["-"], "mfp64">, Group<m_Group>,
1139   HelpText<"Use 64-bit floating point registers (MIPS only)">;
1140 def mfp32 : Flag<["-"], "mfp32">, Group<m_Group>,
1141   HelpText<"Use 32-bit floating point registers (MIPS only)">;
1142 def mnan_EQ : Joined<["-"], "mnan=">, Group<m_Group>;
1143 def mips32 : Flag<["-"], "mips32">,
1144   Alias<march_EQ>, AliasArgs<["mips32"]>,
1145   HelpText<"Equivalent to -march=mips32">, Flags<[HelpHidden]>;
1146 def mips32r2 : Flag<["-"], "mips32r2">,
1147   Alias<march_EQ>, AliasArgs<["mips32r2"]>,
1148   HelpText<"Equivalent to -march=mips32r2">, Flags<[HelpHidden]>;
1149 def mips64 : Flag<["-"], "mips64">,
1150   Alias<march_EQ>, AliasArgs<["mips64"]>,
1151   HelpText<"Equivalent to -march=mips64">, Flags<[HelpHidden]>;
1152 def mips64r2 : Flag<["-"], "mips64r2">,
1153   Alias<march_EQ>, AliasArgs<["mips64r2"]>,
1154   HelpText<"Equivalent to -march=mips64r2">, Flags<[HelpHidden]>;
1155 def module_file_info : Flag<["-"], "module-file-info">, Flags<[DriverOption,CC1Option]>, Group<Action_Group>;
1156 def mthumb : Flag<["-"], "mthumb">, Group<m_Group>;
1157 def mtune_EQ : Joined<["-"], "mtune=">, Group<m_Group>;
1158 def multi__module : Flag<["-"], "multi_module">;
1159 def multiply__defined__unused : Separate<["-"], "multiply_defined_unused">;
1160 def multiply__defined : Separate<["-"], "multiply_defined">;
1161 def mwarn_nonportable_cfstrings : Flag<["-"], "mwarn-nonportable-cfstrings">, Group<m_Group>;
1162 def no_canonical_prefixes : Flag<["-"], "no-canonical-prefixes">, Flags<[HelpHidden]>,
1163   HelpText<"Use relative instead of canonical paths">;
1164 def no_cpp_precomp : Flag<["-"], "no-cpp-precomp">, Group<clang_ignored_f_Group>;
1165 def no_integrated_as : Flag<["-"], "no-integrated-as">, Flags<[DriverOption]>;
1166 def no_integrated_cpp : Flag<["-", "--"], "no-integrated-cpp">, Flags<[DriverOption]>;
1167 def no_pedantic : Flag<["-", "--"], "no-pedantic">, Group<pedantic_Group>;
1168 def no__dead__strip__inits__and__terms : Flag<["-"], "no_dead_strip_inits_and_terms">;
1169 def nobuiltininc : Flag<["-"], "nobuiltininc">, Flags<[CC1Option]>,
1170   HelpText<"Disable builtin #include directories">;
1171 def nodefaultlibs : Flag<["-"], "nodefaultlibs">;
1172 def nofixprebinding : Flag<["-"], "nofixprebinding">;
1173 def nolibc : Flag<["-"], "nolibc">;
1174 def nomultidefs : Flag<["-"], "nomultidefs">;
1175 def nopie : Flag<["-"], "nopie">;
1176 def noprebind : Flag<["-"], "noprebind">;
1177 def noseglinkedit : Flag<["-"], "noseglinkedit">;
1178 def nostartfiles : Flag<["-"], "nostartfiles">;
1179 def nostdinc : Flag<["-"], "nostdinc">;
1180 def nostdlibinc : Flag<["-"], "nostdlibinc">;
1181 def nostdincxx : Flag<["-"], "nostdinc++">, Flags<[CC1Option]>,
1182   HelpText<"Disable standard #include directories for the C++ standard library">;
1183 def nostdlib : Flag<["-"], "nostdlib">;
1184 def object : Flag<["-"], "object">;
1185 def o : JoinedOrSeparate<["-"], "o">, Flags<[DriverOption, RenderAsInput, CC1Option]>,
1186   HelpText<"Write output to <file>">, MetaVarName<"<file>">;
1187 def pagezero__size : JoinedOrSeparate<["-"], "pagezero_size">;
1188 def pass_exit_codes : Flag<["-", "--"], "pass-exit-codes">, Flags<[Unsupported]>;
1189 def pedantic_errors : Flag<["-", "--"], "pedantic-errors">, Group<pedantic_Group>, Flags<[CC1Option]>;
1190 def pedantic : Flag<["-", "--"], "pedantic">, Group<pedantic_Group>, Flags<[CC1Option]>;
1191 def pg : Flag<["-"], "pg">, HelpText<"Enable mcount instrumentation">, Flags<[CC1Option]>;
1192 def pipe : Flag<["-", "--"], "pipe">,
1193   HelpText<"Use pipes between commands, when possible">;
1194 def prebind__all__twolevel__modules : Flag<["-"], "prebind_all_twolevel_modules">;
1195 def prebind : Flag<["-"], "prebind">;
1196 def preload : Flag<["-"], "preload">;
1197 def print_file_name_EQ : Joined<["-", "--"], "print-file-name=">,
1198   HelpText<"Print the full library path of <file>">, MetaVarName<"<file>">;
1199 def print_ivar_layout : Flag<["-"], "print-ivar-layout">, Flags<[CC1Option]>,
1200   HelpText<"Enable Objective-C Ivar layout bitmap print trace">;
1201 def print_libgcc_file_name : Flag<["-", "--"], "print-libgcc-file-name">,
1202   HelpText<"Print the library path for \"libgcc.a\"">;
1203 def print_multi_directory : Flag<["-", "--"], "print-multi-directory">;
1204 def print_multi_lib : Flag<["-", "--"], "print-multi-lib">;
1205 def print_multi_os_directory : Flag<["-", "--"], "print-multi-os-directory">;
1206 def print_prog_name_EQ : Joined<["-", "--"], "print-prog-name=">,
1207   HelpText<"Print the full program path of <name>">, MetaVarName<"<name>">;
1208 def print_search_dirs : Flag<["-", "--"], "print-search-dirs">,
1209   HelpText<"Print the paths used for finding libraries and programs">;
1210 def private__bundle : Flag<["-"], "private_bundle">;
1211 def pthreads : Flag<["-"], "pthreads">;
1212 def pthread : Flag<["-"], "pthread">, Flags<[CC1Option]>,
1213   HelpText<"Support POSIX threads in generated code">;
1214 def p : Flag<["-"], "p">;
1215 def pie : Flag<["-"], "pie">;
1216 def read__only__relocs : Separate<["-"], "read_only_relocs">;
1217 def remap : Flag<["-"], "remap">;
1218 def rewrite_objc : Flag<["-"], "rewrite-objc">, Flags<[DriverOption,CC1Option]>,
1219   HelpText<"Rewrite Objective-C source to C++">, Group<Action_Group>;
1220 def rewrite_legacy_objc : Flag<["-"], "rewrite-legacy-objc">, Flags<[DriverOption]>,
1221   HelpText<"Rewrite Legacy Objective-C source to C++">;
1222 def rdynamic : Flag<["-"], "rdynamic">;
1223 def resource_dir : Separate<["-"], "resource-dir">,
1224   Flags<[DriverOption, CC1Option, HelpHidden]>,
1225   HelpText<"The directory which holds the compiler resource files">;
1226 def resource_dir_EQ : Joined<["-"], "resource-dir=">, Flags<[DriverOption]>,
1227   Alias<resource_dir>;
1228 def rpath : Separate<["-"], "rpath">, Flags<[LinkerInput]>;
1229 def rtlib_EQ : Joined<["-", "--"], "rtlib=">;
1230 def r : Flag<["-"], "r">;
1231 def save_temps : Flag<["-", "--"], "save-temps">, Flags<[DriverOption]>,
1232   HelpText<"Save intermediate compilation results">;
1233 def sectalign : MultiArg<["-"], "sectalign", 3>;
1234 def sectcreate : MultiArg<["-"], "sectcreate", 3>;
1235 def sectobjectsymbols : MultiArg<["-"], "sectobjectsymbols", 2>;
1236 def sectorder : MultiArg<["-"], "sectorder", 3>;
1237 def seg1addr : JoinedOrSeparate<["-"], "seg1addr">;
1238 def seg__addr__table__filename : Separate<["-"], "seg_addr_table_filename">;
1239 def seg__addr__table : Separate<["-"], "seg_addr_table">;
1240 def segaddr : MultiArg<["-"], "segaddr", 2>;
1241 def segcreate : MultiArg<["-"], "segcreate", 3>;
1242 def seglinkedit : Flag<["-"], "seglinkedit">;
1243 def segprot : MultiArg<["-"], "segprot", 3>;
1244 def segs__read__only__addr : Separate<["-"], "segs_read_only_addr">;
1245 def segs__read__write__addr : Separate<["-"], "segs_read_write_addr">;
1246 def segs__read__ : Joined<["-"], "segs_read_">;
1247 def shared_libgcc : Flag<["-"], "shared-libgcc">;
1248 def shared : Flag<["-", "--"], "shared">;
1249 def single__module : Flag<["-"], "single_module">;
1250 def specs_EQ : Joined<["-", "--"], "specs=">;
1251 def specs : Separate<["-", "--"], "specs">, Flags<[Unsupported]>;
1252 def static_libgcc : Flag<["-"], "static-libgcc">;
1253 def static_libstdcxx : Flag<["-"], "static-libstdc++">;
1254 def static : Flag<["-", "--"], "static">, Flags<[NoArgumentUnused]>;
1255 def std_default_EQ : Joined<["-"], "std-default=">;
1256 def std_EQ : Joined<["-", "--"], "std=">, Flags<[CC1Option]>,
1257   Group<CompileOnly_Group>, HelpText<"Language standard to compile for">;
1258 def stdlib_EQ : Joined<["-", "--"], "stdlib=">, Flags<[CC1Option]>,
1259   HelpText<"C++ standard library to use">;
1260 def sub__library : JoinedOrSeparate<["-"], "sub_library">;
1261 def sub__umbrella : JoinedOrSeparate<["-"], "sub_umbrella">;
1262 def s : Flag<["-"], "s">;
1263 def target : Joined<["--"], "target=">, Flags<[DriverOption]>,
1264   HelpText<"Generate code for the given target">;
1265 def gcc_toolchain : Joined<["--"], "gcc-toolchain=">, Flags<[DriverOption]>,
1266   HelpText<"Use the gcc toolchain at the given directory">;
1267 def time : Flag<["-"], "time">,
1268   HelpText<"Time individual commands">;
1269 def traditional_cpp : Flag<["-", "--"], "traditional-cpp">, Flags<[CC1Option]>,
1270   HelpText<"Enable some traditional CPP emulation">;
1271 def traditional : Flag<["-", "--"], "traditional">;
1272 def trigraphs : Flag<["-", "--"], "trigraphs">, Flags<[CC1Option]>,
1273   HelpText<"Process trigraph sequences">;
1274 def twolevel__namespace__hints : Flag<["-"], "twolevel_namespace_hints">;
1275 def twolevel__namespace : Flag<["-"], "twolevel_namespace">;
1276 def t : Flag<["-"], "t">;
1277 def umbrella : Separate<["-"], "umbrella">;
1278 def undefined : JoinedOrSeparate<["-"], "undefined">, Group<u_Group>;
1279 def undef : Flag<["-"], "undef">, Group<u_Group>, Flags<[CC1Option]>,
1280   HelpText<"undef all system defines">;
1281 def unexported__symbols__list : Separate<["-"], "unexported_symbols_list">;
1282 def u : JoinedOrSeparate<["-"], "u">, Group<u_Group>;
1283 def v : Flag<["-"], "v">, Flags<[CC1Option]>,
1284   HelpText<"Show commands to run and use verbose output">;
1285 def verify : Flag<["-"], "verify">, Flags<[DriverOption,CC1Option]>,
1286   HelpText<"Verify output using a verifier">;
1287 def weak_l : Joined<["-"], "weak-l">, Flags<[LinkerInput]>;
1288 def weak__framework : Separate<["-"], "weak_framework">, Flags<[LinkerInput]>;
1289 def weak__library : Separate<["-"], "weak_library">, Flags<[LinkerInput]>;
1290 def weak__reference__mismatches : Separate<["-"], "weak_reference_mismatches">;
1291 def whatsloaded : Flag<["-"], "whatsloaded">;
1292 def whyload : Flag<["-"], "whyload">;
1293 def w : Flag<["-"], "w">, HelpText<"Suppress all warnings">, Flags<[CC1Option]>;
1294 def x : JoinedOrSeparate<["-"], "x">, Flags<[DriverOption,CC1Option]>,
1295   HelpText<"Treat subsequent input files as having type <language>">,
1296   MetaVarName<"<language>">;
1297 def y : Joined<["-"], "y">;
1298
1299 def working_directory : JoinedOrSeparate<["-"], "working-directory">, Flags<[CC1Option]>,
1300   HelpText<"Resolve file paths relative to the specified directory">;
1301 def working_directory_EQ : Joined<["-"], "working-directory=">, Flags<[CC1Option]>,
1302   Alias<working_directory>;
1303
1304 // Double dash options, which are usually an alias for one of the previous
1305 // options.
1306
1307 def _mhwdiv_EQ : Separate<["--"], "mhwdiv">, Alias<mhwdiv_EQ>;
1308 def _CLASSPATH_EQ : Joined<["--"], "CLASSPATH=">, Alias<fclasspath_EQ>;
1309 def _CLASSPATH : Separate<["--"], "CLASSPATH">, Alias<fclasspath_EQ>;
1310 def _all_warnings : Flag<["--"], "all-warnings">, Alias<Wall>;
1311 def _analyze_auto : Flag<["--"], "analyze-auto">, Flags<[DriverOption]>;
1312 def _analyzer_no_default_checks : Flag<["--"], "analyzer-no-default-checks">, Flags<[DriverOption]>;
1313 def _analyzer_output : JoinedOrSeparate<["--"], "analyzer-output">, Flags<[DriverOption]>;
1314 def _analyze : Flag<["--"], "analyze">, Flags<[DriverOption]>,
1315   HelpText<"Run the static analyzer">;
1316 def _assemble : Flag<["--"], "assemble">, Alias<S>;
1317 def _assert_EQ : Joined<["--"], "assert=">, Alias<A>;
1318 def _assert : Separate<["--"], "assert">, Alias<A>;
1319 def _bootclasspath_EQ : Joined<["--"], "bootclasspath=">, Alias<fbootclasspath_EQ>;
1320 def _bootclasspath : Separate<["--"], "bootclasspath">, Alias<fbootclasspath_EQ>;
1321 def _classpath_EQ : Joined<["--"], "classpath=">, Alias<fclasspath_EQ>;
1322 def _classpath : Separate<["--"], "classpath">, Alias<fclasspath_EQ>;
1323 def _comments_in_macros : Flag<["--"], "comments-in-macros">, Alias<CC>;
1324 def _comments : Flag<["--"], "comments">, Alias<C>;
1325 def _compile : Flag<["--"], "compile">, Alias<c>;
1326 def _constant_cfstrings : Flag<["--"], "constant-cfstrings">;
1327 def _debug_EQ : Joined<["--"], "debug=">, Alias<g_Flag>;
1328 def _debug : Flag<["--"], "debug">, Alias<g_Flag>;
1329 def _define_macro_EQ : Joined<["--"], "define-macro=">, Alias<D>;
1330 def _define_macro : Separate<["--"], "define-macro">, Alias<D>;
1331 def _dependencies : Flag<["--"], "dependencies">, Alias<M>;
1332 def _dyld_prefix_EQ : Joined<["--"], "dyld-prefix=">;
1333 def _dyld_prefix : Separate<["--"], "dyld-prefix">, Alias<_dyld_prefix_EQ>;
1334 def _encoding_EQ : Joined<["--"], "encoding=">, Alias<fencoding_EQ>;
1335 def _encoding : Separate<["--"], "encoding">, Alias<fencoding_EQ>;
1336 def _entry : Flag<["--"], "entry">, Alias<e>;
1337 def _extdirs_EQ : Joined<["--"], "extdirs=">, Alias<fextdirs_EQ>;
1338 def _extdirs : Separate<["--"], "extdirs">, Alias<fextdirs_EQ>;
1339 def _extra_warnings : Flag<["--"], "extra-warnings">, Alias<W_Joined>;
1340 def _for_linker_EQ : Joined<["--"], "for-linker=">, Alias<Xlinker>;
1341 def _for_linker : Separate<["--"], "for-linker">, Alias<Xlinker>;
1342 def _force_link_EQ : Joined<["--"], "force-link=">, Alias<u>;
1343 def _force_link : Separate<["--"], "force-link">, Alias<u>;
1344 def _help_hidden : Flag<["--"], "help-hidden">;
1345 def _imacros_EQ : Joined<["--"], "imacros=">, Alias<imacros>;
1346 def _include_barrier : Flag<["--"], "include-barrier">, Alias<I_>;
1347 def _include_directory_after_EQ : Joined<["--"], "include-directory-after=">, Alias<idirafter>;
1348 def _include_directory_after : Separate<["--"], "include-directory-after">, Alias<idirafter>;
1349 def _include_directory_EQ : Joined<["--"], "include-directory=">, Alias<I>;
1350 def _include_directory : Separate<["--"], "include-directory">, Alias<I>;
1351 def _include_prefix_EQ : Joined<["--"], "include-prefix=">, Alias<iprefix>;
1352 def _include_prefix : Separate<["--"], "include-prefix">, Alias<iprefix>;
1353 def _include_with_prefix_after_EQ : Joined<["--"], "include-with-prefix-after=">, Alias<iwithprefix>;
1354 def _include_with_prefix_after : Separate<["--"], "include-with-prefix-after">, Alias<iwithprefix>;
1355 def _include_with_prefix_before_EQ : Joined<["--"], "include-with-prefix-before=">, Alias<iwithprefixbefore>;
1356 def _include_with_prefix_before : Separate<["--"], "include-with-prefix-before">, Alias<iwithprefixbefore>;
1357 def _include_with_prefix_EQ : Joined<["--"], "include-with-prefix=">, Alias<iwithprefix>;
1358 def _include_with_prefix : Separate<["--"], "include-with-prefix">, Alias<iwithprefix>;
1359 def _include_EQ : Joined<["--"], "include=">, Alias<include_>;
1360 def _language_EQ : Joined<["--"], "language=">, Alias<x>;
1361 def _language : Separate<["--"], "language">, Alias<x>;
1362 def _library_directory_EQ : Joined<["--"], "library-directory=">, Alias<L>;
1363 def _library_directory : Separate<["--"], "library-directory">, Alias<L>;
1364 def _no_line_commands : Flag<["--"], "no-line-commands">, Alias<P>;
1365 def _no_standard_includes : Flag<["--"], "no-standard-includes">, Alias<nostdinc>;
1366 def _no_standard_libraries : Flag<["--"], "no-standard-libraries">, Alias<nostdlib>;
1367 def _no_undefined : Flag<["--"], "no-undefined">, Flags<[LinkerInput]>;
1368 def _no_warnings : Flag<["--"], "no-warnings">, Alias<w>;
1369 def _optimize_EQ : Joined<["--"], "optimize=">, Alias<O>;
1370 def _optimize : Flag<["--"], "optimize">, Alias<O>;
1371 def _output_class_directory_EQ : Joined<["--"], "output-class-directory=">, Alias<foutput_class_dir_EQ>;
1372 def _output_class_directory : Separate<["--"], "output-class-directory">, Alias<foutput_class_dir_EQ>;
1373 def _output_EQ : Joined<["--"], "output=">, Alias<o>;
1374 def _output : Separate<["--"], "output">, Alias<o>;
1375 def _param : Separate<["--"], "param">, Group<CompileOnly_Group>;
1376 def _param_EQ : Joined<["--"], "param=">, Alias<_param>;
1377 def _prefix_EQ : Joined<["--"], "prefix=">, Alias<B>;
1378 def _prefix : Separate<["--"], "prefix">, Alias<B>;
1379 def _preprocess : Flag<["--"], "preprocess">, Alias<E>;
1380 def _print_diagnostic_categories : Flag<["--"], "print-diagnostic-categories">;
1381 def _print_file_name : Separate<["--"], "print-file-name">, Alias<print_file_name_EQ>;
1382 def _print_missing_file_dependencies : Flag<["--"], "print-missing-file-dependencies">, Alias<MG>;
1383 def _print_prog_name : Separate<["--"], "print-prog-name">, Alias<print_prog_name_EQ>;
1384 def _profile_blocks : Flag<["--"], "profile-blocks">, Alias<a>;
1385 def _profile : Flag<["--"], "profile">, Alias<p>;
1386 def _resource_EQ : Joined<["--"], "resource=">, Alias<fcompile_resource_EQ>;
1387 def _resource : Separate<["--"], "resource">, Alias<fcompile_resource_EQ>;
1388 def _rtlib : Separate<["--"], "rtlib">, Alias<rtlib_EQ>;
1389 def _serialize_diags : Separate<["-", "--"], "serialize-diagnostics">, Flags<[DriverOption]>,
1390   HelpText<"Serialize compiler diagnostics to a file">;
1391 // We give --version different semantics from -version.
1392 def _version : Flag<["--"], "version">,  Flags<[CC1Option]>;
1393 def _signed_char : Flag<["--"], "signed-char">, Alias<fsigned_char>;
1394 def _std : Separate<["--"], "std">, Alias<std_EQ>;
1395 def _stdlib : Separate<["--"], "stdlib">, Alias<stdlib_EQ>;
1396 def _sysroot_EQ : Joined<["--"], "sysroot=">;
1397 def _sysroot : Separate<["--"], "sysroot">, Alias<_sysroot_EQ>;
1398 def _target_help : Flag<["--"], "target-help">;
1399 def _trace_includes : Flag<["--"], "trace-includes">, Alias<H>;
1400 def _undefine_macro_EQ : Joined<["--"], "undefine-macro=">, Alias<U>;
1401 def _undefine_macro : Separate<["--"], "undefine-macro">, Alias<U>;
1402 def _unsigned_char : Flag<["--"], "unsigned-char">, Alias<funsigned_char>;
1403 def _user_dependencies : Flag<["--"], "user-dependencies">, Alias<MM>;
1404 def _verbose : Flag<["--"], "verbose">, Alias<v>;
1405 def _warn__EQ : Joined<["--"], "warn-=">, Alias<W_Joined>;
1406 def _warn_ : Joined<["--"], "warn-">, Alias<W_Joined>;
1407 def _write_dependencies : Flag<["--"], "write-dependencies">, Alias<MD>;
1408 def _write_user_dependencies : Flag<["--"], "write-user-dependencies">, Alias<MMD>;
1409 def _ : Joined<["--"], "">, Flags<[Unsupported]>;
1410 def mieee_rnd_near : Flag<["-"], "mieee-rnd-near">, Group<m_hexagon_Features_Group>;
1411 def mv1 : Flag<["-"], "mv1">, Group<m_hexagon_Features_Group>, Alias<march_EQ>,
1412           AliasArgs<["v1"]>;
1413 def mv2 : Flag<["-"], "mv2">, Group<m_hexagon_Features_Group>, Alias<march_EQ>,
1414           AliasArgs<["v2"]>;
1415 def mv3 : Flag<["-"], "mv3">, Group<m_hexagon_Features_Group>, Alias<march_EQ>,
1416           AliasArgs<["v3"]>;
1417 def mv4 : Flag<["-"], "mv4">, Group<m_hexagon_Features_Group>, Alias<march_EQ>,
1418           AliasArgs<["v4"]>;
1419 def mv5 : Flag<["-"], "mv5">, Group<m_hexagon_Features_Group>, Alias<march_EQ>,
1420           AliasArgs<["v5"]>;
1421
1422 // These are legacy user-facing driver-level option spellings. They are always
1423 // aliases for options that are spelled using the more common Unix / GNU flag
1424 // style of double-dash and equals-joined flags.
1425 def gcc_toolchain_legacy_spelling : Separate<["-"], "gcc-toolchain">, Alias<gcc_toolchain>;
1426 def target_legacy_spelling : Separate<["-"], "target">, Alias<target>;
1427
1428 // Special internal option to handle -Xlinker --no-demangle.
1429 def Z_Xlinker__no_demangle : Flag<["-"], "Z-Xlinker-no-demangle">,
1430     Flags<[Unsupported, NoArgumentUnused]>;
1431
1432 // Special internal option to allow forwarding arbitrary arguments to linker.
1433 def Zlinker_input : Separate<["-"], "Zlinker-input">,
1434     Flags<[Unsupported, NoArgumentUnused]>;
1435
1436 // Reserved library options.
1437 def Z_reserved_lib_stdcxx : Flag<["-"], "Z-reserved-lib-stdc++">,
1438     Flags<[LinkerInput, NoArgumentUnused, Unsupported]>, Group<reserved_lib_Group>;
1439 def Z_reserved_lib_cckext : Flag<["-"], "Z-reserved-lib-cckext">,
1440     Flags<[LinkerInput, NoArgumentUnused, Unsupported]>, Group<reserved_lib_Group>;
1441
1442 // Ignored options
1443 // FIXME: multiclasess produce suffixes, not prefixes. This is fine for now
1444 // since it is only used in ignored options.
1445 multiclass BooleanFFlag<string name> {
1446   def _f : Flag<["-"], "f"#name>;
1447   def _fno : Flag<["-"], "fno-"#name>;
1448 }
1449
1450 def fprofile_dir : Joined<["-"], "fprofile-dir=">, Group<clang_ignored_f_Group>;
1451
1452 defm profile_use : BooleanFFlag<"profile-use">, Group<clang_ignored_f_Group>;
1453 def fprofile_use_EQ : Joined<["-"], "fprofile-use=">, Group<clang_ignored_f_Group>;
1454 def fuse_ld_EQ : Joined<["-"], "fuse-ld=">, Group<clang_ignored_f_Group>;
1455
1456 defm align_functions : BooleanFFlag<"align-functions">, Group<clang_ignored_f_Group>;
1457 def falign_functions_EQ : Joined<["-"], "falign-functions=">, Group<clang_ignored_f_Group>;
1458
1459 // FIXME: This option should be supported and wired up to our diognostics, but
1460 // ignore it for now to avoid breaking builds that use it.
1461 def fdiagnostics_show_location_EQ : Joined<["-"], "fdiagnostics-show-location=">, Group<clang_ignored_f_Group>;
1462
1463 defm eliminate_unused_debug_types : BooleanFFlag<"eliminate-unused-debug-types">, Group<clang_ignored_f_Group>;
1464 defm float_store : BooleanFFlag<"float-store">, Group<clang_ignored_f_Group>;
1465 defm function_attribute_list : BooleanFFlag<"function-attribute-list">, Group<clang_ignored_f_Group>;
1466 defm gcse : BooleanFFlag<"gcse">, Group<clang_ignored_f_Group>;
1467 defm gnu : BooleanFFlag<"gnu">, Group<clang_ignored_f_Group>;
1468 defm ident : BooleanFFlag<"ident">, Group<clang_ignored_f_Group>;
1469 defm implicit_templates : BooleanFFlag<"implicit-templates">, Group<clang_ignored_f_Group>;
1470 defm inline_limit : BooleanFFlag<"inline-limit">, Group<clang_ignored_f_Group>;
1471 defm ivopts : BooleanFFlag<"ivopts">, Group<clang_ignored_f_Group>;
1472 defm non_call_exceptions : BooleanFFlag<"non-call-exceptions">, Group<clang_ignored_f_Group>;
1473 defm permissive : BooleanFFlag<"permissive">, Group<clang_ignored_f_Group>;
1474 defm prefetch_loop_arrays : BooleanFFlag<"prefetch-loop-arrays">, Group<clang_ignored_f_Group>;
1475 defm printf : BooleanFFlag<"printf">, Group<clang_ignored_f_Group>;
1476 defm profile : BooleanFFlag<"profile">, Group<clang_ignored_f_Group>;
1477 defm profile_correction : BooleanFFlag<"profile-correction">, Group<clang_ignored_f_Group>;
1478 defm profile_generate_sampling : BooleanFFlag<"profile-generate-sampling">, Group<clang_ignored_f_Group>;
1479 defm profile_reusedist : BooleanFFlag<"profile-reusedist">, Group<clang_ignored_f_Group>;
1480 defm profile_values : BooleanFFlag<"profile-values">, Group<clang_ignored_f_Group>;
1481 defm regs_graph : BooleanFFlag<"regs-graph">, Group<clang_ignored_f_Group>;
1482 defm ripa : BooleanFFlag<"ripa">, Group<clang_ignored_f_Group>;
1483 defm rounding_math : BooleanFFlag<"rounding-math">, Group<clang_ignored_f_Group>;
1484 defm schedule_insns : BooleanFFlag<"schedule-insns">, Group<clang_ignored_f_Group>;
1485 defm see : BooleanFFlag<"see">, Group<clang_ignored_f_Group>;
1486 defm signaling_nans : BooleanFFlag<"signaling-nans">, Group<clang_ignored_f_Group>;
1487 defm spec_constr_count : BooleanFFlag<"spec-constr-count">, Group<clang_ignored_f_Group>;
1488 defm strength_reduce :
1489     BooleanFFlag<"strength-reduce">, Group<clang_ignored_f_Group>;
1490 defm tls_model : BooleanFFlag<"tls-model">, Group<clang_ignored_f_Group>;
1491 defm tracer : BooleanFFlag<"tracer">, Group<clang_ignored_f_Group>;
1492 defm tree_salias : BooleanFFlag<"tree-salias">, Group<clang_ignored_f_Group>;
1493 defm tree_vectorizer_verbose : BooleanFFlag<"tree-vectorizer-verbose">, Group<clang_ignored_f_Group>;
1494 defm unroll_all_loops : BooleanFFlag<"unroll-all-loops">, Group<clang_ignored_f_Group>;
1495 defm unswitch_loops : BooleanFFlag<"unswitch-loops">, Group<clang_ignored_f_Group>;
1496
1497
1498 // gfortran options that we recognize in the driver and pass along when
1499 // invoking GCC to compile Fortran code.
1500 def gfortran_Group : OptionGroup<"gfortran Group">;
1501
1502 // Generic gfortran options.
1503 def A_DASH : Joined<["-"], "A-">, Group<gfortran_Group>;
1504 def J : JoinedOrSeparate<["-"], "J">, Flags<[RenderJoined]>, Group<gfortran_Group>;
1505 def cpp : Flag<["-"], "cpp">, Group<gfortran_Group>;
1506 def nocpp : Flag<["-"], "nocpp">, Group<gfortran_Group>;
1507 def static_libgfortran : Flag<["-"], "static-libgfortran">, Group<gfortran_Group>;
1508
1509 // "f" options with values for gfortran.
1510 def fblas_matmul_limit_EQ : Joined<["-"], "fblas-matmul-limit=">, Group<gfortran_Group>;
1511 def fcheck_EQ : Joined<["-"], "fcheck=">, Group<gfortran_Group>;
1512 def fcoarray_EQ : Joined<["-"], "fcoarray=">, Group<gfortran_Group>;
1513 def fconvert_EQ : Joined<["-"], "fconvert=">, Group<gfortran_Group>;
1514 def ffixed_line_length_VALUE : Joined<["-"], "ffixed-line-length-">, Group<gfortran_Group>;
1515 def ffpe_trap_EQ : Joined<["-"], "ffpe-trap=">, Group<gfortran_Group>;
1516 def ffree_line_length_VALUE : Joined<["-"], "ffree-line-length-">, Group<gfortran_Group>;
1517 def finit_character_EQ : Joined<["-"], "finit-character=">, Group<gfortran_Group>;
1518 def finit_integer_EQ : Joined<["-"], "finit-integer=">, Group<gfortran_Group>;
1519 def finit_logical_EQ : Joined<["-"], "finit-logical=">, Group<gfortran_Group>;
1520 def finit_real_EQ : Joined<["-"], "finit-real=">, Group<gfortran_Group>;
1521 def fmax_array_constructor_EQ : Joined<["-"], "fmax-array-constructor=">, Group<gfortran_Group>;
1522 def fmax_errors_EQ : Joined<["-"], "fmax-errors=">, Group<gfortran_Group>;
1523 def fmax_stack_var_size_EQ : Joined<["-"], "fmax-stack-var-size=">, Group<gfortran_Group>;
1524 def fmax_subrecord_length_EQ : Joined<["-"], "fmax-subrecord-length=">, Group<gfortran_Group>;
1525 def frecord_marker_EQ : Joined<["-"], "frecord-marker=">, Group<gfortran_Group>;
1526
1527 // "f" flags for gfortran.
1528 defm aggressive_function_elimination : BooleanFFlag<"aggressive-function-elimination">, Group<gfortran_Group>;
1529 defm align_commons : BooleanFFlag<"align-commons">, Group<gfortran_Group>;
1530 defm all_intrinsics : BooleanFFlag<"all-intrinsics">, Group<gfortran_Group>;
1531 defm automatic : BooleanFFlag<"automatic">, Group<gfortran_Group>;
1532 defm backslash : BooleanFFlag<"backslash">, Group<gfortran_Group>;
1533 defm backtrace : BooleanFFlag<"backtrace">, Group<gfortran_Group>;
1534 defm bounds_check : BooleanFFlag<"bounds-check">, Group<gfortran_Group>;
1535 defm check_array_temporaries : BooleanFFlag<"check-array-temporaries">, Group<gfortran_Group>;
1536 defm cray_pointer : BooleanFFlag<"cray-pointer">, Group<gfortran_Group>;
1537 defm d_lines_as_code : BooleanFFlag<"d-lines-as-code">, Group<gfortran_Group>;
1538 defm d_lines_as_comments : BooleanFFlag<"d-lines-as-comments">, Group<gfortran_Group>;
1539 defm default_double_8 : BooleanFFlag<"default-double-8">, Group<gfortran_Group>;
1540 defm default_integer_8 : BooleanFFlag<"default-integer-8">, Group<gfortran_Group>;
1541 defm default_real_8 : BooleanFFlag<"default-real-8">, Group<gfortran_Group>;
1542 defm dollar_ok : BooleanFFlag<"dollar-ok">, Group<gfortran_Group>;
1543 defm dump_fortran_optimized : BooleanFFlag<"dump-fortran-optimized">, Group<gfortran_Group>;
1544 defm dump_fortran_original : BooleanFFlag<"dump-fortran-original">, Group<gfortran_Group>;
1545 defm dump_parse_tree : BooleanFFlag<"dump-parse-tree">, Group<gfortran_Group>;
1546 defm external_blas : BooleanFFlag<"external-blas">, Group<gfortran_Group>;
1547 defm f2c : BooleanFFlag<"f2c">, Group<gfortran_Group>;
1548 defm fixed_form : BooleanFFlag<"fixed-form">, Group<gfortran_Group>;
1549 defm free_form : BooleanFFlag<"free-form">, Group<gfortran_Group>;
1550 defm frontend_optimize : BooleanFFlag<"frontend-optimize">, Group<gfortran_Group>;
1551 defm implicit_none : BooleanFFlag<"implicit-none">, Group<gfortran_Group>;
1552 defm init_local_zero : BooleanFFlag<"init-local-zero">, Group<gfortran_Group>;
1553 defm integer_4_integer_8 : BooleanFFlag<"integer-4-integer-8">, Group<gfortran_Group>;
1554 defm intrinsic_modules_path : BooleanFFlag<"intrinsic-modules-path">, Group<gfortran_Group>;
1555 defm max_identifier_length : BooleanFFlag<"max-identifier-length">, Group<gfortran_Group>;
1556 defm module_private : BooleanFFlag<"module-private">, Group<gfortran_Group>;
1557 defm pack_derived : BooleanFFlag<"pack-derived">, Group<gfortran_Group>;
1558 defm protect_parens : BooleanFFlag<"protect-parens">, Group<gfortran_Group>;
1559 defm range_check : BooleanFFlag<"range-check">, Group<gfortran_Group>;
1560 defm real_4_real_10 : BooleanFFlag<"real-4-real-10">, Group<gfortran_Group>;
1561 defm real_4_real_16 : BooleanFFlag<"real-4-real-16">, Group<gfortran_Group>;
1562 defm real_4_real_8 : BooleanFFlag<"real-4-real-8">, Group<gfortran_Group>;
1563 defm real_8_real_10 : BooleanFFlag<"real-8-real-10">, Group<gfortran_Group>;
1564 defm real_8_real_16 : BooleanFFlag<"real-8-real-16">, Group<gfortran_Group>;
1565 defm real_8_real_4 : BooleanFFlag<"real-8-real-4">, Group<gfortran_Group>;
1566 defm realloc_lhs : BooleanFFlag<"realloc-lhs">, Group<gfortran_Group>;
1567 defm recursive : BooleanFFlag<"recursive">, Group<gfortran_Group>;
1568 defm repack_arrays : BooleanFFlag<"repack-arrays">, Group<gfortran_Group>;
1569 defm second_underscore : BooleanFFlag<"second-underscore">, Group<gfortran_Group>;
1570 defm sign_zero : BooleanFFlag<"sign-zero">, Group<gfortran_Group>;
1571 defm stack_arrays : BooleanFFlag<"stack-arrays">, Group<gfortran_Group>;
1572 defm underscoring : BooleanFFlag<"underscoring">, Group<gfortran_Group>;
1573 defm whole_file : BooleanFFlag<"whole-file">, Group<gfortran_Group>;
1574
1575
1576 include "CC1Options.td"
1577
1578 include "CLCompatOptions.td"