]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/llvm/tools/clang/include/clang/Driver/Options.td
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.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 flimited_precision_EQ : Joined<["-"], "flimited-precision=">, Group<f_Group>;
553 def flto : Flag<["-"], "flto">, Group<f_Group>;
554 def fno_lto : Flag<["-"], "fno-lto">, Group<f_Group>;
555 def fmacro_backtrace_limit_EQ : Joined<["-"], "fmacro-backtrace-limit=">,
556                                 Group<f_Group>;
557 def fmerge_all_constants : Flag<["-"], "fmerge-all-constants">, Group<f_Group>;
558 def fmessage_length_EQ : Joined<["-"], "fmessage-length=">, Group<f_Group>;
559 def fms_extensions : Flag<["-"], "fms-extensions">, Group<f_Group>, Flags<[CC1Option]>,
560   HelpText<"Accept some non-standard constructs supported by the Microsoft compiler">;
561 def fms_compatibility : Flag<["-"], "fms-compatibility">, Group<f_Group>, Flags<[CC1Option]>,
562   HelpText<"Enable Microsoft compatibility mode">;
563 def fmsc_version : Joined<["-"], "fmsc-version=">, Group<f_Group>, Flags<[CC1Option, CoreOption]>,
564   HelpText<"Version of the Microsoft C/C++ compiler to report in _MSC_VER (0 = don't define it (default))">;
565 def fdelayed_template_parsing : Flag<["-"], "fdelayed-template-parsing">, Group<f_Group>,
566   HelpText<"Parse templated function definitions at the end of the "
567            "translation unit ">,  Flags<[CC1Option]>;
568 def fmodules_cache_path : Joined<["-"], "fmodules-cache-path=">, Group<i_Group>,
569   Flags<[DriverOption, CC1Option]>, MetaVarName<"<directory>">,
570   HelpText<"Specify the module cache path">;
571 def fmodules_prune_interval : Joined<["-"], "fmodules-prune-interval=">, Group<i_Group>,
572   Flags<[CC1Option]>, MetaVarName<"<seconds>">,
573   HelpText<"Specify the interval (in seconds) between attempts to prune the module cache">;
574 def fmodules_prune_after : Joined<["-"], "fmodules-prune-after=">, Group<i_Group>,
575   Flags<[CC1Option]>, MetaVarName<"<seconds>">,
576   HelpText<"Specify the interval (in seconds) after which a module file will be considered unused">;
577 def fmodules : Flag <["-"], "fmodules">, Group<f_Group>,
578   Flags<[DriverOption, CC1Option]>,
579   HelpText<"Enable the 'modules' language feature">;
580 def fmodule_maps : Flag <["-"], "fmodule-maps">, Group<f_Group>,
581   Flags<[DriverOption,CC1Option]>,
582   HelpText<"Read module maps to understand the structure of library headers">;
583 def fmodule_name : JoinedOrSeparate<["-"], "fmodule-name=">, Group<f_Group>,
584   Flags<[DriverOption,CC1Option]>, MetaVarName<"<name>">,
585   HelpText<"Specify the name of the module to build">;
586 def fmodule_map_file : JoinedOrSeparate<["-"], "fmodule-map-file=">,
587   Group<f_Group>, Flags<[DriverOption,CC1Option]>, MetaVarName<"<file>">,
588   HelpText<"Load this module map file">;
589 def fmodules_ignore_macro : Joined<["-"], "fmodules-ignore-macro=">, Group<f_Group>, Flags<[CC1Option]>,
590   HelpText<"Ignore the definition of the given macro when building and loading modules">;
591 def fmodules_decluse : Flag <["-"], "fmodules-decluse">, Group<f_Group>,
592   Flags<[DriverOption,CC1Option]>,
593   HelpText<"Require declaration of modules used within a module">;
594 def fretain_comments_from_system_headers : Flag<["-"], "fretain-comments-from-system-headers">, Group<f_Group>, Flags<[CC1Option]>;
595
596 def fmudflapth : Flag<["-"], "fmudflapth">, Group<f_Group>;
597 def fmudflap : Flag<["-"], "fmudflap">, Group<f_Group>;
598 def fnested_functions : Flag<["-"], "fnested-functions">, Group<f_Group>;
599 def fnext_runtime : Flag<["-"], "fnext-runtime">, Group<f_Group>;
600 def fno_access_control : Flag<["-"], "fno-access-control">, Group<f_Group>, Flags<[CC1Option]>,
601   HelpText<"Disable C++ access control">;
602 def fno_apple_pragma_pack : Flag<["-"], "fno-apple-pragma-pack">, Group<f_Group>;
603 def fno_asm : Flag<["-"], "fno-asm">, Group<f_Group>;
604 def fno_asynchronous_unwind_tables : Flag<["-"], "fno-asynchronous-unwind-tables">, Group<f_Group>;
605 def fno_assume_sane_operator_new : Flag<["-"], "fno-assume-sane-operator-new">, Group<f_Group>,
606   HelpText<"Don't assume that C++'s global operator new can't alias any pointer">,
607   Flags<[CC1Option]>;
608 def fno_blocks : Flag<["-"], "fno-blocks">, Group<f_Group>;
609 def fno_borland_extensions : Flag<["-"], "fno-borland-extensions">, Group<f_Group>;
610 def fno_builtin : Flag<["-"], "fno-builtin">, Group<f_Group>, Flags<[CC1Option]>,
611   HelpText<"Disable implicit builtin knowledge of functions">;
612 def fno_builtin_ : Joined<["-"], "fno-builtin-">, Group<clang_ignored_f_Group>,
613   HelpText<"Disable implicit builtin knowledge of a specific function">;
614 def fno_math_builtin : Flag<["-"], "fno-math-builtin">, Group<f_Group>, Flags<[CC1Option]>,
615   HelpText<"Disable implicit builtin knowledge of math functions">;
616 def fno_caret_diagnostics : Flag<["-"], "fno-caret-diagnostics">, Group<f_Group>,
617  Flags<[CC1Option]>;
618 def fno_color_diagnostics : Flag<["-"], "fno-color-diagnostics">, Group<f_Group>;
619 def fno_diagnostics_color : Flag<["-"], "fno-diagnostics-color">, Group<f_Group>;
620 def fno_common : Flag<["-"], "fno-common">, Group<f_Group>, Flags<[CC1Option]>,
621     HelpText<"Compile common globals like normal definitions">;
622 def fno_constant_cfstrings : Flag<["-"], "fno-constant-cfstrings">, Group<f_Group>,
623   Flags<[CC1Option]>,
624   HelpText<"Disable creation of CodeFoundation-type constant strings">;
625 def fno_cxx_exceptions: Flag<["-"], "fno-cxx-exceptions">, Group<f_Group>;
626 def fno_cxx_modules : Flag <["-"], "fno-cxx-modules">, Group<f_Group>,
627   Flags<[DriverOption]>;
628 def fno_diagnostics_fixit_info : Flag<["-"], "fno-diagnostics-fixit-info">, Group<f_Group>,
629   Flags<[CC1Option]>, HelpText<"Do not include fixit information in diagnostics">;
630 def fno_diagnostics_show_name : Flag<["-"], "fno-diagnostics-show-name">, Group<f_Group>;
631 def fno_diagnostics_show_option : Flag<["-"], "fno-diagnostics-show-option">, Group<f_Group>;
632 def fno_diagnostics_show_note_include_stack : Flag<["-"], "fno-diagnostics-show-note-include-stack">,
633     Flags<[CC1Option]>, Group<f_Group>;
634 def fno_dollars_in_identifiers : Flag<["-"], "fno-dollars-in-identifiers">, Group<f_Group>,
635   HelpText<"Disallow '$' in identifiers">, Flags<[CC1Option]>;
636 def fno_elide_constructors : Flag<["-"], "fno-elide-constructors">, Group<f_Group>,
637   HelpText<"Disable C++ copy constructor elision">, Flags<[CC1Option]>;
638 def fno_eliminate_unused_debug_symbols : Flag<["-"], "fno-eliminate-unused-debug-symbols">, Group<f_Group>;
639 def fno_exceptions : Flag<["-"], "fno-exceptions">, Group<f_Group>;
640 def fno_gnu_keywords : Flag<["-"], "fno-gnu-keywords">, Group<f_Group>, Flags<[CC1Option]>;
641 def fno_inline_functions : Flag<["-"], "fno-inline-functions">, Group<f_clang_Group>, Flags<[CC1Option]>;
642 def fno_inline : Flag<["-"], "fno-inline">, Group<f_clang_Group>, Flags<[CC1Option]>;
643 def fno_keep_inline_functions : Flag<["-"], "fno-keep-inline-functions">, Group<clang_ignored_f_Group>;
644 def fno_lax_vector_conversions : Flag<["-"], "fno-lax-vector-conversions">, Group<f_Group>,
645   HelpText<"Disallow implicit conversions between vectors with a different number of elements or different element types">, Flags<[CC1Option]>;
646 def fno_merge_all_constants : Flag<["-"], "fno-merge-all-constants">, Group<f_Group>,
647     Flags<[CC1Option]>, HelpText<"Disallow merging of constants">;
648 def fno_modules : Flag <["-"], "fno-modules">, Group<f_Group>,
649   Flags<[DriverOption]>;
650 def fno_module_maps : Flag <["-"], "fno-module-maps">, Group<f_Group>,
651   Flags<[DriverOption]>;
652 def fno_modules_decluse : Flag <["-"], "fno-modules-decluse">, Group<f_Group>,
653   Flags<[DriverOption]>;
654 def fno_ms_extensions : Flag<["-"], "fno-ms-extensions">, Group<f_Group>;
655 def fno_ms_compatibility : Flag<["-"], "fno-ms-compatibility">, Group<f_Group>;
656 def fno_delayed_template_parsing : Flag<["-"], "fno-delayed-template-parsing">, Group<f_Group>;
657 def fno_objc_exceptions: Flag<["-"], "fno-objc-exceptions">, Group<f_Group>;
658 def fno_objc_legacy_dispatch : Flag<["-"], "fno-objc-legacy-dispatch">, Group<f_Group>;
659 def fno_omit_frame_pointer : Flag<["-"], "fno-omit-frame-pointer">, Group<f_Group>;
660 def fno_operator_names : Flag<["-"], "fno-operator-names">, Group<f_Group>,
661   HelpText<"Do not treat C++ operator name keywords as synonyms for operators">,
662   Flags<[CC1Option]>;
663 def fno_pascal_strings : Flag<["-"], "fno-pascal-strings">, Group<f_Group>;
664 def fno_rtti : Flag<["-"], "fno-rtti">, Group<f_Group>, Flags<[CC1Option]>,
665   HelpText<"Disable generation of rtti information">;
666 def fno_short_enums : Flag<["-"], "fno-short-enums">, Group<f_Group>;
667 def fno_show_column : Flag<["-"], "fno-show-column">, Group<f_Group>, Flags<[CC1Option]>,
668   HelpText<"Do not include column number on diagnostics">;
669 def fno_show_source_location : Flag<["-"], "fno-show-source-location">, Group<f_Group>,
670   Flags<[CC1Option]>, HelpText<"Do not include source location information with diagnostics">;
671 def fno_spell_checking : Flag<["-"], "fno-spell-checking">, Group<f_Group>,
672   Flags<[CC1Option]>, HelpText<"Disable spell-checking">;
673 def fno_stack_protector : Flag<["-"], "fno-stack-protector">, Group<f_Group>;
674 def fno_strict_aliasing : Flag<["-"], "fno-strict-aliasing">, Group<f_Group>;
675 def fstruct_path_tbaa : Flag<["-"], "fstruct-path-tbaa">, Group<f_Group>;
676 def fno_struct_path_tbaa : Flag<["-"], "fno-struct-path-tbaa">, Group<f_Group>;
677 def fno_strict_enums : Flag<["-"], "fno-strict-enums">, Group<f_Group>;
678 def fno_strict_overflow : Flag<["-"], "fno-strict-overflow">, Group<f_Group>;
679 def fno_threadsafe_statics : Flag<["-"], "fno-threadsafe-statics">, Group<f_Group>,
680   Flags<[CC1Option]>, HelpText<"Do not emit code to make initialization of local statics thread safe">;
681 def fno_use_cxa_atexit : Flag<["-"], "fno-use-cxa-atexit">, Group<f_Group>, Flags<[CC1Option]>,
682   HelpText<"Don't use __cxa_atexit for calling destructors">;
683 def fno_use_init_array : Flag<["-"], "fno-use-init-array">, Group<f_Group>, Flags<[CC1Option]>,
684   HelpText<"Don't use .init_array instead of .ctors">;
685 def fno_unit_at_a_time : Flag<["-"], "fno-unit-at-a-time">, Group<f_Group>;
686 def fno_unwind_tables : Flag<["-"], "fno-unwind-tables">, Group<f_Group>;
687 def fno_verbose_asm : Flag<["-"], "fno-verbose-asm">, Group<f_Group>;
688 def fno_working_directory : Flag<["-"], "fno-working-directory">, Group<f_Group>;
689 def fno_wrapv : Flag<["-"], "fno-wrapv">, Group<f_Group>;
690 def fno_zero_initialized_in_bss : Flag<["-"], "fno-zero-initialized-in-bss">, Group<f_Group>;
691 def fobjc_arc : Flag<["-"], "fobjc-arc">, Group<f_Group>, Flags<[CC1Option]>,
692   HelpText<"Synthesize retain and release calls for Objective-C pointers">;
693 def fno_objc_arc : Flag<["-"], "fno-objc-arc">, Group<f_Group>;
694 def fobjc_arc_exceptions : Flag<["-"], "fobjc-arc-exceptions">, Group<f_Group>, Flags<[CC1Option]>,
695   HelpText<"Use EH-safe code when synthesizing retains and releases in -fobjc-arc">;
696 def fno_objc_arc_exceptions : Flag<["-"], "fno-objc-arc-exceptions">, Group<f_Group>;
697 def fobjc_atdefs : Flag<["-"], "fobjc-atdefs">, Group<clang_ignored_f_Group>;
698 def fobjc_call_cxx_cdtors : Flag<["-"], "fobjc-call-cxx-cdtors">, Group<clang_ignored_f_Group>;
699 def fobjc_exceptions: Flag<["-"], "fobjc-exceptions">, Group<f_Group>,
700   HelpText<"Enable Objective-C exceptions">, Flags<[CC1Option]>;
701
702 def fobjc_gc_only : Flag<["-"], "fobjc-gc-only">, Group<f_Group>, Flags<[CC1Option]>,
703   HelpText<"Use GC exclusively for Objective-C related memory management">;
704 def fobjc_gc : Flag<["-"], "fobjc-gc">, Group<f_Group>, Flags<[CC1Option]>,
705   HelpText<"Enable Objective-C garbage collection">;
706 def fobjc_legacy_dispatch : Flag<["-"], "fobjc-legacy-dispatch">, Group<f_Group>;
707 def fobjc_new_property : Flag<["-"], "fobjc-new-property">, Group<clang_ignored_f_Group>;
708 def fobjc_infer_related_result_type : Flag<["-"], "fobjc-infer-related-result-type">, 
709                                       Group<f_Group>;
710 def fno_objc_infer_related_result_type : Flag<["-"],
711   "fno-objc-infer-related-result-type">, Group<f_Group>,
712   HelpText<
713     "do not infer Objective-C related result type based on method family">,
714   Flags<[CC1Option]>;
715 def fobjc_link_runtime: Flag<["-"], "fobjc-link-runtime">, Group<f_Group>;
716
717 // Objective-C ABI options.
718 def fobjc_runtime_EQ : Joined<["-"], "fobjc-runtime=">, Group<f_Group>, Flags<[CC1Option]>,
719   HelpText<"Specify the target Objective-C runtime kind and version">;
720 def fobjc_abi_version_EQ : Joined<["-"], "fobjc-abi-version=">, Group<f_Group>;
721 def fobjc_nonfragile_abi_version_EQ : Joined<["-"], "fobjc-nonfragile-abi-version=">, Group<f_Group>;
722 def fobjc_nonfragile_abi : Flag<["-"], "fobjc-nonfragile-abi">, Group<f_Group>;
723 def fno_objc_nonfragile_abi : Flag<["-"], "fno-objc-nonfragile-abi">, Group<f_Group>;
724
725 def fobjc_sender_dependent_dispatch : Flag<["-"], "fobjc-sender-dependent-dispatch">, Group<f_Group>;
726 def fomit_frame_pointer : Flag<["-"], "fomit-frame-pointer">, Group<f_Group>;
727 def fopenmp : Flag<["-"], "fopenmp">, Group<f_Group>, Flags<[CC1Option]>;
728 def fno_optimize_sibling_calls : Flag<["-"], "fno-optimize-sibling-calls">, Group<f_Group>;
729 def foptimize_sibling_calls : Flag<["-"], "foptimize-sibling-calls">, Group<f_Group>;
730 def force__cpusubtype__ALL : Flag<["-"], "force_cpusubtype_ALL">;
731 def force__flat__namespace : Flag<["-"], "force_flat_namespace">;
732 def force__load : Separate<["-"], "force_load">;
733 def foutput_class_dir_EQ : Joined<["-"], "foutput-class-dir=">, Group<f_Group>;
734 def fpack_struct : Flag<["-"], "fpack-struct">, Group<f_Group>;
735 def fno_pack_struct : Flag<["-"], "fno-pack-struct">, Group<f_Group>;
736 def fpack_struct_EQ : Joined<["-"], "fpack-struct=">, Group<f_Group>, Flags<[CC1Option]>,
737   HelpText<"Specify the default maximum struct packing alignment">;
738 def fpascal_strings : Flag<["-"], "fpascal-strings">, Group<f_Group>, Flags<[CC1Option]>,
739   HelpText<"Recognize and construct Pascal-style string literals">;
740 def fpcc_struct_return : Flag<["-"], "fpcc-struct-return">, Group<f_Group>, Flags<[CC1Option]>,
741   HelpText<"Override the default ABI to return all structs on the stack">;
742 def fpch_preprocess : Flag<["-"], "fpch-preprocess">, Group<f_Group>;
743 def fpic : Flag<["-"], "fpic">, Group<f_Group>;
744 def fno_pic : Flag<["-"], "fno-pic">, Group<f_Group>;
745 def fpie : Flag<["-"], "fpie">, Group<f_Group>;
746 def fno_pie : Flag<["-"], "fno-pie">, Group<f_Group>;
747 def fprofile_arcs : Flag<["-"], "fprofile-arcs">, Group<f_Group>;
748 def fprofile_generate : Flag<["-"], "fprofile-generate">, Group<f_Group>;
749 def framework : Separate<["-"], "framework">, Flags<[LinkerInput]>;
750 def frandom_seed_EQ : Joined<["-"], "frandom-seed=">, Group<clang_ignored_f_Group>;
751 def freg_struct_return : Flag<["-"], "freg-struct-return">, Group<f_Group>, Flags<[CC1Option]>,
752   HelpText<"Override the default ABI to return small structs in registers">;
753 def frtti : Flag<["-"], "frtti">, Group<f_Group>;
754 def fsched_interblock : Flag<["-"], "fsched-interblock">, Group<clang_ignored_f_Group>;
755 def fshort_enums : Flag<["-"], "fshort-enums">, Group<f_Group>, Flags<[CC1Option]>,
756   HelpText<"Allocate to an enum type only as many bytes as it needs for the declared range of possible values">;
757 def freorder_blocks : Flag<["-"], "freorder-blocks">, Group<clang_ignored_f_Group>;
758 def fshort_wchar : Flag<["-"], "fshort-wchar">, Group<f_Group>, Flags<[CC1Option]>,
759   HelpText<"Force wchar_t to be a short unsigned int">;
760 def fshow_overloads_EQ : Joined<["-"], "fshow-overloads=">, Group<f_Group>, Flags<[CC1Option]>,
761   HelpText<"Which overload candidates to show when overload resolution fails: "
762            "best|all; defaults to all">;
763 def fshow_column : Flag<["-"], "fshow-column">, Group<f_Group>, Flags<[CC1Option]>;
764 def fshow_source_location : Flag<["-"], "fshow-source-location">, Group<f_Group>;
765 def fspell_checking : Flag<["-"], "fspell-checking">, Group<f_Group>;
766 def fsigned_bitfields : Flag<["-"], "fsigned-bitfields">, Group<f_Group>;
767 def fsigned_char : Flag<["-"], "fsigned-char">, Group<f_Group>;
768 def fno_signed_char : Flag<["-"], "fno-signed-char">, Flags<[CC1Option]>,
769     Group<clang_ignored_f_Group>, HelpText<"Char is unsigned">;
770 def fsplit_stack : Flag<["-"], "fsplit-stack">, Group<f_Group>;
771 def fstack_protector_all : Flag<["-"], "fstack-protector-all">, Group<f_Group>;
772 def fstack_protector : Flag<["-"], "fstack-protector">, Group<f_Group>;
773 def fstandalone_debug : Flag<["-"], "fstandalone-debug">, Group<f_Group>, Flags<[CC1Option]>,
774   HelpText<"Emit full debug info for all types used by the program">;
775 def fno_standalone_debug : Flag<["-"], "fno-standalone-debug">, Group<f_Group>, Flags<[CC1Option]>,
776   HelpText<"Limit debug information produced to reduce size of debug binary">;
777 def flimit_debug_info : Flag<["-"], "flimit-debug-info">, Alias<fno_standalone_debug>;
778 def fno_limit_debug_info : Flag<["-"], "fno-limit-debug-info">, Alias<fstandalone_debug>;
779 def fstrict_aliasing : Flag<["-"], "fstrict-aliasing">, Group<f_Group>;
780 def fstrict_enums : Flag<["-"], "fstrict-enums">, Group<f_Group>, Flags<[CC1Option]>,
781   HelpText<"Enable optimizations based on the strict definition of an enum's "
782            "value range">;
783 def fstrict_overflow : Flag<["-"], "fstrict-overflow">, Group<f_Group>;
784 def fsyntax_only : Flag<["-"], "fsyntax-only">, Flags<[DriverOption,CC1Option]>, Group<Action_Group>;
785 def ftabstop_EQ : Joined<["-"], "ftabstop=">, Group<f_Group>;
786 def ftemplate_depth_EQ : Joined<["-"], "ftemplate-depth=">, Group<f_Group>;
787 def ftemplate_depth_ : Joined<["-"], "ftemplate-depth-">, Group<f_Group>;
788 def ftemplate_backtrace_limit_EQ : Joined<["-"], "ftemplate-backtrace-limit=">,
789                                    Group<f_Group>;
790 def foperator_arrow_depth_EQ : Joined<["-"], "foperator-arrow-depth=">,
791                                Group<f_Group>;
792 def ftest_coverage : Flag<["-"], "ftest-coverage">, Group<f_Group>;
793 def fvectorize : Flag<["-"], "fvectorize">, Group<f_Group>,
794   HelpText<"Enable the loop vectorization passes">;
795 def fno_vectorize : Flag<["-"], "fno-vectorize">, Group<f_Group>;
796 def ftree_vectorize : Flag<["-"], "ftree-vectorize">, Alias<fvectorize>;
797 def fno_tree_vectorize : Flag<["-"], "fno-tree-vectorize">, Alias<fno_vectorize>;
798 def fslp_vectorize : Flag<["-"], "fslp-vectorize">, Group<f_Group>,
799   HelpText<"Enable the superword-level parallelism vectorization passes">;
800 def fno_slp_vectorize : Flag<["-"], "fno-slp-vectorize">, Group<f_Group>;
801 def fslp_vectorize_aggressive : Flag<["-"], "fslp-vectorize-aggressive">, Group<f_Group>,
802   HelpText<"Enable the BB vectorization passes">;
803 def fno_slp_vectorize_aggressive : Flag<["-"], "fno-slp-vectorize-aggressive">, Group<f_Group>;
804 def ftree_slp_vectorize : Flag<["-"], "ftree-slp-vectorize">, Alias<fslp_vectorize>;
805 def fno_tree_slp_vectorize : Flag<["-"], "fno-tree-slp-vectorize">, Alias<fno_slp_vectorize>;
806 def Wlarge_by_value_copy_def : Flag<["-"], "Wlarge-by-value-copy">,
807   HelpText<"Warn if a function definition returns or accepts an object larger "
808            "in bytes than a given value">, Flags<[HelpHidden]>;
809 def Wlarge_by_value_copy_EQ : Joined<["-"], "Wlarge-by-value-copy=">, Flags<[CC1Option]>;
810
811 // Just silence warnings about -Wlarger-than,  -Wframe-larger-than for now.
812 def Wlarger_than : Separate<["-"], "Wlarger-than">, Group<clang_ignored_f_Group>;
813 def Wlarger_than_EQ : Joined<["-"], "Wlarger-than=">, Alias<Wlarger_than>;
814 def Wlarger_than_ : Joined<["-"], "Wlarger-than-">, Alias<Wlarger_than>;
815 def Wframe_larger_than : Separate<["-"], "Wframe-larger-than">, Group<clang_ignored_f_Group>;
816 def Wframe_larger_than_EQ : Joined<["-"], "Wframe-larger-than=">, Alias<Wframe_larger_than>;
817
818 def fterminated_vtables : Flag<["-"], "fterminated-vtables">, Alias<fapple_kext>;
819 def fthreadsafe_statics : Flag<["-"], "fthreadsafe-statics">, Group<f_Group>;
820 def ftime_report : Flag<["-"], "ftime-report">, Group<f_Group>, Flags<[CC1Option]>;
821 def ftlsmodel_EQ : Joined<["-"], "ftls-model=">, Group<f_Group>, Flags<[CC1Option]>;
822 def ftrapv : Flag<["-"], "ftrapv">, Group<f_Group>, Flags<[CC1Option]>,
823   HelpText<"Trap on integer overflow">;
824 def ftrapv_handler_EQ : Joined<["-"], "ftrapv-handler=">, Group<f_Group>,
825   MetaVarName<"<function name>">,
826   HelpText<"Specify the function to be called on overflow">;
827 def ftrapv_handler : Separate<["-"], "ftrapv-handler">, Group<f_Group>, Flags<[CC1Option]>;
828 def ftrap_function_EQ : Joined<["-"], "ftrap-function=">, Group<f_Group>, Flags<[CC1Option]>,
829   HelpText<"Issue call to specified function rather than a trap instruction">;
830 def funit_at_a_time : Flag<["-"], "funit-at-a-time">, Group<f_Group>;
831 def funroll_loops : Flag<["-"], "funroll-loops">, Group<f_Group>,
832   HelpText<"Turn on loop unroller">, Flags<[CC1Option]>;
833 def fno_unroll_loops : Flag<["-"], "fno-unroll-loops">, Group<f_Group>,
834   HelpText<"Turn off loop unroller">, Flags<[CC1Option]>;
835 def freroll_loops : Flag<["-"], "freroll-loops">, Group<f_Group>,
836   HelpText<"Turn on loop reroller">, Flags<[CC1Option]>;
837 def fno_reroll_loops : Flag<["-"], "fno-reroll-loops">, Group<f_Group>,
838   HelpText<"Turn off loop reroller">;
839 def funsigned_bitfields : Flag<["-"], "funsigned-bitfields">, Group<f_Group>;
840 def funsigned_char : Flag<["-"], "funsigned-char">, Group<f_Group>;
841 def fno_unsigned_char : Flag<["-"], "fno-unsigned-char">, Group<clang_ignored_f_Group>;
842 def funwind_tables : Flag<["-"], "funwind-tables">, Group<f_Group>;
843 def fuse_cxa_atexit : Flag<["-"], "fuse-cxa-atexit">, Group<f_Group>;
844 def fuse_init_array : Flag<["-"], "fuse-init-array">, Group<f_Group>, Flags<[CC1Option]>,
845   HelpText<"Use .init_array instead of .ctors">;
846 def fno_var_tracking : Flag<["-"], "fno-var-tracking">,
847   Group<clang_ignored_f_Group>;
848 def fverbose_asm : Flag<["-"], "fverbose-asm">, Group<f_Group>;
849 def fvisibility_EQ : Joined<["-"], "fvisibility=">, Group<f_Group>,
850   HelpText<"Set the default symbol visibility for all global declarations">;
851 def fvisibility_inlines_hidden : Flag<["-"], "fvisibility-inlines-hidden">, Group<f_Group>,
852   HelpText<"Give inline C++ member functions default visibility by default">,
853   Flags<[CC1Option]>;
854 def fvisibility_ms_compat : Flag<["-"], "fvisibility-ms-compat">, Group<f_Group>,
855   HelpText<"Give global types 'default' visibility and global functions and "
856            "variables 'hidden' visibility by default">;
857 def fwrapv : Flag<["-"], "fwrapv">, Group<f_Group>, Flags<[CC1Option]>,
858   HelpText<"Treat signed integer overflow as two's complement">;
859 def fwritable_strings : Flag<["-"], "fwritable-strings">, Group<f_Group>, Flags<[CC1Option]>,
860   HelpText<"Store string literals as writable data">;
861 def fzero_initialized_in_bss : Flag<["-"], "fzero-initialized-in-bss">, Group<f_Group>;
862 def ffunction_sections : Flag<["-"], "ffunction-sections">, Group<f_Group>,
863   Flags<[CC1Option]>,
864   HelpText<"Place each function in its own section (ELF Only)">;
865 def fno_function_sections : Flag<["-"], "fno-function-sections">,
866   Group<f_Group>, Flags<[CC1Option]>;
867 def fdata_sections : Flag <["-"], "fdata-sections">, Group<f_Group>,
868  Flags<[CC1Option]>, HelpText<"Place each data in its own section (ELF Only)">;
869 def fno_data_sections : Flag <["-"], "fno-data-sections">, Group<f_Group>,
870   Flags<[CC1Option]>;
871 def fdebug_types_section: Flag <["-"], "fdebug-types-section">, Group<f_Group>,
872   Flags<[CC1Option]>, HelpText<"Place debug types in their own section (ELF Only)">;
873 def g_Flag : Flag<["-"], "g">, Group<g_Group>,
874   HelpText<"Generate source level debug information">, Flags<[CC1Option]>;
875 def gline_tables_only : Flag<["-"], "gline-tables-only">, Group<g_Group>,
876   HelpText<"Emit debug line number tables only">, Flags<[CC1Option]>;
877 def g0 : Flag<["-"], "g0">, Group<g_Group>;
878 def g1 : Flag<["-"], "g1">, Group<g_Group>;
879 def g2 : Flag<["-"], "g2">, Group<g_Group>;
880 def g3 : Flag<["-"], "g3">, Group<g_Group>;
881 def ggdb : Flag<["-"], "ggdb">, Group<g_Group>;
882 def ggdb0 : Flag<["-"], "ggdb0">, Group<g_Group>;
883 def ggdb1 : Flag<["-"], "ggdb1">, Group<g_Group>;
884 def ggdb2 : Flag<["-"], "ggdb2">, Group<g_Group>;
885 def ggdb3 : Flag<["-"], "ggdb3">, Group<g_Group>;
886 def gdwarf_2 : Flag<["-"], "gdwarf-2">, Group<g_Group>,
887   HelpText<"Generate source level debug information with dwarf version 2">, Flags<[CC1Option]>;
888 def gdwarf_3 : Flag<["-"], "gdwarf-3">, Group<g_Group>,
889   HelpText<"Generate source level debug information with dwarf version 3">, Flags<[CC1Option]>;
890 def gdwarf_4 : Flag<["-"], "gdwarf-4">, Group<g_Group>,
891   HelpText<"Generate source level debug information with dwarf version 4">, Flags<[CC1Option]>;
892 def gfull : Flag<["-"], "gfull">, Group<g_Group>;
893 def gused : Flag<["-"], "gused">, Group<g_Group>;
894 def gstabs : Joined<["-"], "gstabs">, Group<g_Group>, Flags<[Unsupported]>;
895 def gcoff : Joined<["-"], "gcoff">, Group<g_Group>, Flags<[Unsupported]>;
896 def gxcoff : Joined<["-"], "gxcoff">, Group<g_Group>, Flags<[Unsupported]>;
897 def gvms : Joined<["-"], "gvms">, Group<g_Group>, Flags<[Unsupported]>;
898 def gtoggle : Flag<["-"], "gtoggle">, Group<g_flags_Group>, Flags<[Unsupported]>;
899 def grecord_gcc_switches : Flag<["-"], "grecord-gcc-switches">, Group<g_flags_Group>;
900 def gno_record_gcc_switches : Flag<["-"], "gno-record-gcc-switches">,
901   Group<g_flags_Group>;
902 def gstrict_dwarf : Flag<["-"], "gstrict-dwarf">, Group<g_flags_Group>;
903 def gno_strict_dwarf : Flag<["-"], "gno-strict-dwarf">, Group<g_flags_Group>;
904 def gcolumn_info : Flag<["-"], "gcolumn-info">, Group<g_flags_Group>;
905 def gsplit_dwarf : Flag<["-"], "gsplit-dwarf">, Group<g_flags_Group>;
906 def ggnu_pubnames : Flag<["-"], "ggnu-pubnames">, Group<g_flags_Group>;
907 def headerpad__max__install__names : Joined<["-"], "headerpad_max_install_names">;
908 def help : Flag<["-", "--"], "help">, Flags<[CC1Option]>,
909   HelpText<"Display available options">;
910 def index_header_map : Flag<["-"], "index-header-map">, Flags<[CC1Option]>,
911   HelpText<"Make the next included directory (-I or -F) an indexer header map">;
912 def idirafter : JoinedOrSeparate<["-"], "idirafter">, Group<clang_i_Group>, Flags<[CC1Option]>,
913   HelpText<"Add directory to AFTER include search path">;
914 def iframework : JoinedOrSeparate<["-"], "iframework">, Group<clang_i_Group>, Flags<[CC1Option]>,
915   HelpText<"Add directory to SYSTEM framework search path">;
916 def imacros : JoinedOrSeparate<["-", "--"], "imacros">, Group<clang_i_Group>, Flags<[CC1Option]>,
917   HelpText<"Include macros from file before parsing">, MetaVarName<"<file>">;
918 def image__base : Separate<["-"], "image_base">;
919 def include_ : JoinedOrSeparate<["-", "--"], "include">, Group<clang_i_Group>, EnumName<"include">,
920     MetaVarName<"<file>">, HelpText<"Include file before parsing">, Flags<[CC1Option]>;
921 def include_pch : Separate<["-"], "include-pch">, Group<clang_i_Group>, Flags<[CC1Option]>,
922   HelpText<"Include precompiled header file">, MetaVarName<"<file>">;
923 def relocatable_pch : Flag<["-", "--"], "relocatable-pch">, Flags<[CC1Option]>,
924   HelpText<"Whether to build a relocatable precompiled header">;
925 def init : Separate<["-"], "init">;
926 def install__name : Separate<["-"], "install_name">;
927 def integrated_as : Flag<["-"], "integrated-as">, Flags<[DriverOption]>;
928 def iprefix : JoinedOrSeparate<["-"], "iprefix">, Group<clang_i_Group>, Flags<[CC1Option]>,
929   HelpText<"Set the -iwithprefix/-iwithprefixbefore prefix">, MetaVarName<"<dir>">;
930 def iquote : JoinedOrSeparate<["-"], "iquote">, Group<clang_i_Group>, Flags<[CC1Option]>,
931   HelpText<"Add directory to QUOTE include search path">, MetaVarName<"<directory>">;
932 def isysroot : JoinedOrSeparate<["-"], "isysroot">, Group<clang_i_Group>, Flags<[CC1Option]>,
933   HelpText<"Set the system root directory (usually /)">, MetaVarName<"<dir>">;
934 def isystem : JoinedOrSeparate<["-"], "isystem">, Group<clang_i_Group>, Flags<[CC1Option]>,
935   HelpText<"Add directory to SYSTEM include search path">, MetaVarName<"<directory>">;
936 def iwithprefixbefore : JoinedOrSeparate<["-"], "iwithprefixbefore">, Group<clang_i_Group>,
937   HelpText<"Set directory to include search path with prefix">, MetaVarName<"<dir>">,
938   Flags<[CC1Option]>;
939 def iwithprefix : JoinedOrSeparate<["-"], "iwithprefix">, Group<clang_i_Group>, Flags<[CC1Option]>,
940   HelpText<"Set directory to SYSTEM include search path with prefix">, MetaVarName<"<dir>">;
941 def iwithsysroot : JoinedOrSeparate<["-"], "iwithsysroot">, Group<clang_i_Group>,
942   HelpText<"Add directory to SYSTEM include search path, "
943            "absolute paths are relative to -isysroot">, MetaVarName<"<directory>">,
944   Flags<[CC1Option]>;
945 def i : Joined<["-"], "i">, Group<i_Group>;
946 def keep__private__externs : Flag<["-"], "keep_private_externs">;
947 def l : JoinedOrSeparate<["-"], "l">, Flags<[LinkerInput, RenderJoined]>;
948 def lazy__framework : Separate<["-"], "lazy_framework">, Flags<[LinkerInput]>;
949 def lazy__library : Separate<["-"], "lazy_library">, Flags<[LinkerInput]>;
950 def EL : Flag<["-"], "EL">, Flags<[DriverOption]>;
951 def EB : Flag<["-"], "EB">, Flags<[DriverOption]>;
952 def m32 : Flag<["-"], "m32">, Group<m_Group>, Flags<[DriverOption, CoreOption]>;
953 def mqdsp6_compat : Flag<["-"], "mqdsp6-compat">, Group<m_Group>, Flags<[DriverOption,CC1Option]>,
954   HelpText<"Enable hexagon-qdsp6 backward compatibility">;
955 def m3dnowa : Flag<["-"], "m3dnowa">, Group<m_x86_Features_Group>;
956 def m3dnow : Flag<["-"], "m3dnow">, Group<m_x86_Features_Group>;
957 def m64 : Flag<["-"], "m64">, Group<m_Group>, Flags<[DriverOption, CoreOption]>;
958 def mabi_EQ : Joined<["-"], "mabi=">, Group<m_Group>;
959 def march_EQ : Joined<["-"], "march=">, Group<m_Group>;
960 def mcmodel_EQ : Joined<["-"], "mcmodel=">, Group<m_Group>;
961 def mconstant_cfstrings : Flag<["-"], "mconstant-cfstrings">, Group<clang_ignored_m_Group>;
962 def mcpu_EQ : Joined<["-"], "mcpu=">, Group<m_Group>;
963 def mdynamic_no_pic : Joined<["-"], "mdynamic-no-pic">, Group<m_Group>;
964 def mfix_and_continue : Flag<["-"], "mfix-and-continue">, Group<clang_ignored_m_Group>;
965 def mieee_fp : Flag<["-"], "mieee-fp">, Group<clang_ignored_m_Group>;
966 def minline_all_stringops : Flag<["-"], "minline-all-stringops">, Group<clang_ignored_m_Group>;
967 def mno_inline_all_stringops : Flag<["-"], "mno-inline-all-stringops">, Group<clang_ignored_m_Group>;
968 def mfloat_abi_EQ : Joined<["-"], "mfloat-abi=">, Group<m_Group>;
969 def mfpmath_EQ : Joined<["-"], "mfpmath=">, Group<m_Group>;
970 def mfpu_EQ : Joined<["-"], "mfpu=">, Group<m_Group>;
971 def mhwdiv_EQ : Joined<["-"], "mhwdiv=">, Group<m_Group>;
972 def mglobal_merge : Flag<["-"], "mglobal-merge">, Group<m_Group>;
973 def mhard_float : Flag<["-"], "mhard-float">, Group<m_Group>;
974 def miphoneos_version_min_EQ : Joined<["-"], "miphoneos-version-min=">, Group<m_Group>;
975 def mios_version_min_EQ : Joined<["-"], "mios-version-min=">, Alias<miphoneos_version_min_EQ>;
976 def mios_simulator_version_min_EQ : Joined<["-"], "mios-simulator-version-min=">, Group<m_Group>;
977 def mkernel : Flag<["-"], "mkernel">, Group<m_Group>;
978 def mlinker_version_EQ : Joined<["-"], "mlinker-version=">,
979   Flags<[DriverOption]>;
980 def mllvm : Separate<["-"], "mllvm">, Flags<[CC1Option]>,
981   HelpText<"Additional arguments to forward to LLVM's option processing">;
982 def mmacosx_version_min_EQ : Joined<["-"], "mmacosx-version-min=">, Group<m_Group>;
983 def mms_bitfields : Flag<["-"], "mms-bitfields">, Group<m_Group>, Flags<[CC1Option]>,
984   HelpText<"Set the default structure layout to be compatible with the Microsoft compiler standard">;
985 def mstackrealign : Flag<["-"], "mstackrealign">, Group<m_Group>, Flags<[CC1Option]>,
986   HelpText<"Force realign the stack at entry to every function">;
987 def mstack_alignment : Joined<["-"], "mstack-alignment=">, Group<m_Group>, Flags<[CC1Option]>,
988   HelpText<"Set the stack alignment">;
989 def mmmx : Flag<["-"], "mmmx">, Group<m_x86_Features_Group>;
990 def mno_3dnowa : Flag<["-"], "mno-3dnowa">, Group<m_x86_Features_Group>;
991 def mno_3dnow : Flag<["-"], "mno-3dnow">, Group<m_x86_Features_Group>;
992 def mno_constant_cfstrings : Flag<["-"], "mno-constant-cfstrings">, Group<m_Group>;
993 def mno_global_merge : Flag<["-"], "mno-global-merge">, Group<m_Group>, Flags<[CC1Option]>,
994   HelpText<"Disable merging of globals">;
995 def mno_mmx : Flag<["-"], "mno-mmx">, Group<m_x86_Features_Group>;
996 def mno_pascal_strings : Flag<["-"], "mno-pascal-strings">,
997   Alias<fno_pascal_strings>;
998 def mno_red_zone : Flag<["-"], "mno-red-zone">, Group<m_Group>;
999 def mno_relax_all : Flag<["-"], "mno-relax-all">, Group<m_Group>;
1000 def mno_rtd: Flag<["-"], "mno-rtd">, Group<m_Group>;
1001 def mno_soft_float : Flag<["-"], "mno-soft-float">, Group<m_Group>;
1002 def mno_stackrealign : Flag<["-"], "mno-stackrealign">, Group<m_Group>;
1003 def mno_sse2 : Flag<["-"], "mno-sse2">, Group<m_x86_Features_Group>;
1004 def mno_sse3 : Flag<["-"], "mno-sse3">, Group<m_x86_Features_Group>;
1005 def mno_sse4a : Flag<["-"], "mno-sse4a">, Group<m_x86_Features_Group>;
1006 def mno_sse4 : Flag<["-"], "mno-sse4">, Group<m_x86_Features_Group>;
1007 def mno_sse4_1 : Flag<["-"], "mno-sse4.1">, Group<m_x86_Features_Group>;
1008 def mno_sse4_2 : Flag<["-"], "mno-sse4.2">, Group<m_x86_Features_Group>;
1009 def mno_sse : Flag<["-"], "mno-sse">, Group<m_x86_Features_Group>;
1010 def mno_ssse3 : Flag<["-"], "mno-ssse3">, Group<m_x86_Features_Group>;
1011 def mno_aes : Flag<["-"], "mno-aes">, Group<m_x86_Features_Group>;
1012 def mno_avx : Flag<["-"], "mno-avx">, Group<m_x86_Features_Group>;
1013 def mno_avx2 : Flag<["-"], "mno-avx2">, Group<m_x86_Features_Group>;
1014 def mno_avx512f : Flag<["-"], "mno-avx512f">, Group<m_x86_Features_Group>;
1015 def mno_avx512cd : Flag<["-"], "mno-avx512cd">, Group<m_x86_Features_Group>;
1016 def mno_avx512er : Flag<["-"], "mno-avx512er">, Group<m_x86_Features_Group>;
1017 def mno_avx512pf : Flag<["-"], "mno-avx512pf">, Group<m_x86_Features_Group>;
1018 def mno_pclmul : Flag<["-"], "mno-pclmul">, Group<m_x86_Features_Group>;
1019 def mno_lzcnt : Flag<["-"], "mno-lzcnt">, Group<m_x86_Features_Group>;
1020 def mno_rdrnd : Flag<["-"], "mno-rdrnd">, Group<m_x86_Features_Group>;
1021 def mno_bmi : Flag<["-"], "mno-bmi">, Group<m_x86_Features_Group>;
1022 def mno_bmi2 : Flag<["-"], "mno-bmi2">, Group<m_x86_Features_Group>;
1023 def mno_popcnt : Flag<["-"], "mno-popcnt">, Group<m_x86_Features_Group>;
1024 def mno_tbm : Flag<["-"], "mno-tbm">, Group<m_x86_Features_Group>;
1025 def mno_fma4 : Flag<["-"], "mno-fma4">, Group<m_x86_Features_Group>;
1026 def mno_fma : Flag<["-"], "mno-fma">, Group<m_x86_Features_Group>;
1027 def mno_xop : Flag<["-"], "mno-xop">, Group<m_x86_Features_Group>;
1028 def mno_f16c : Flag<["-"], "mno-f16c">, Group<m_x86_Features_Group>;
1029 def mno_rtm : Flag<["-"], "mno-rtm">, Group<m_x86_Features_Group>;
1030 def mno_prfchw : Flag<["-"], "mno-prfchw">, Group<m_x86_Features_Group>;
1031 def mno_rdseed : Flag<["-"], "mno-rdseed">, Group<m_x86_Features_Group>;
1032 def mno_sha : Flag<["-"], "mno-sha">, Group<m_x86_Features_Group>;
1033
1034 def munaligned_access : Flag<["-"], "munaligned-access">, Group<m_arm_Features_Group>,
1035   HelpText<"Allow memory accesses to be unaligned (ARM only)">;
1036 def mno_unaligned_access : Flag<["-"], "mno-unaligned-access">, Group<m_arm_Features_Group>,
1037   HelpText<"Force all memory accesses to be aligned (ARM only)">;
1038 def mstrict_align : Flag<["-"], "mstrict-align">, Alias<mno_unaligned_access>, Flags<[CC1Option,HelpHidden]>,
1039   HelpText<"Force all memory accesses to be aligned (ARM only, same as mno-unaligned-access)">;
1040 def mno_thumb : Flag<["-"], "mno-thumb">, Group<m_arm_Features_Group>;
1041 def mrestrict_it: Flag<["-"], "mrestrict-it">, Group<m_arm_Features_Group>,
1042   HelpText<"Disallow generation of deprecated IT blocks for ARMv8. It is on by default for ARMv8 Thumb mode.">;
1043 def mno_restrict_it: Flag<["-"], "mno-restrict-it">, Group<m_arm_Features_Group>,
1044   HelpText<"Allow generation of deprecated IT blocks for ARMv8. It is off by default for ARMv8 Thumb mode">;
1045 def marm : Flag<["-"], "marm">, Alias<mno_thumb>;
1046 def ffixed_r9 : Flag<["-"], "ffixed-r9">, Group<m_arm_Features_Group>,
1047   HelpText<"Reserve the r9 register (ARM only)">;
1048 def mcrc : Flag<["-"], "mcrc">, Group<m_arm_Features_Group>,
1049   HelpText<"Allow use of CRC instructions (ARM only)">;
1050 def mnocrc : Flag<["-"], "mnocrc">, Group<m_arm_Features_Group>,
1051   HelpText<"Disallow use of CRC instructions (ARM only)">;
1052
1053 def mvsx : Flag<["-"], "mvsx">, Group<m_ppc_Features_Group>;
1054 def mno_vsx : Flag<["-"], "mno-vsx">, Group<m_ppc_Features_Group>;
1055 def mfprnd : Flag<["-"], "mfprnd">, Group<m_ppc_Features_Group>;
1056 def mno_fprnd : Flag<["-"], "mno-fprnd">, Group<m_ppc_Features_Group>;
1057 def mmfcrf : Flag<["-"], "mmfcrf">, Group<m_ppc_Features_Group>;
1058 def mno_mfcrf : Flag<["-"], "mno-mfcrf">, Group<m_ppc_Features_Group>;
1059 def mpopcntd : Flag<["-"], "mpopcntd">, Group<m_ppc_Features_Group>;
1060 def mno_popcntd : Flag<["-"], "mno-popcntd">, Group<m_ppc_Features_Group>;
1061 def mqpx : Flag<["-"], "mqpx">, Group<m_ppc_Features_Group>;
1062 def mno_qpx : Flag<["-"], "mno-qpx">, Group<m_ppc_Features_Group>;
1063
1064 def faltivec : Flag<["-"], "faltivec">, Group<f_Group>, Flags<[CC1Option]>,
1065   HelpText<"Enable AltiVec vector initializer syntax">;
1066 def fno_altivec : Flag<["-"], "fno-altivec">, Group<f_Group>, Flags<[CC1Option]>;
1067 def maltivec : Flag<["-"], "maltivec">, Alias<faltivec>;
1068 def mno_altivec : Flag<["-"], "mno-altivec">, Alias<fno_altivec>;
1069
1070 def mno_warn_nonportable_cfstrings : Flag<["-"], "mno-warn-nonportable-cfstrings">, Group<m_Group>;
1071 def mno_omit_leaf_frame_pointer : Flag<["-"], "mno-omit-leaf-frame-pointer">, Group<m_Group>;
1072 def momit_leaf_frame_pointer : Flag<["-"], "momit-leaf-frame-pointer">, Group<m_Group>,
1073   HelpText<"Omit frame pointer setup for leaf functions">, Flags<[CC1Option]>;
1074 def moslib_EQ : Joined<["-"], "moslib=">, Group<m_Group>;
1075 def mpascal_strings : Flag<["-"], "mpascal-strings">, Alias<fpascal_strings>;
1076 def mred_zone : Flag<["-"], "mred-zone">, Group<m_Group>;
1077 def mregparm_EQ : Joined<["-"], "mregparm=">, Group<m_Group>;
1078 def mrelax_all : Flag<["-"], "mrelax-all">, Group<m_Group>, Flags<[CC1Option]>,
1079   HelpText<"(integrated-as) Relax all machine instructions">;
1080 def mrtd : Flag<["-"], "mrtd">, Group<m_Group>, Flags<[CC1Option]>,
1081   HelpText<"Make StdCall calling convention the default">;
1082 def msmall_data_threshold_EQ : Joined <["-"], "msmall-data-threshold=">, Group<m_Group>;
1083 def msoft_float : Flag<["-"], "msoft-float">, Group<m_Group>, Flags<[CC1Option]>,
1084   HelpText<"Use software floating point">;
1085 def mno_implicit_float : Flag<["-"], "mno-implicit-float">, Group<m_Group>,
1086   HelpText<"Don't generate implicit floating point instructions">;
1087 def mimplicit_float : Flag<["-"], "mimplicit-float">, Group<m_Group>;
1088 def msse2 : Flag<["-"], "msse2">, Group<m_x86_Features_Group>;
1089 def msse3 : Flag<["-"], "msse3">, Group<m_x86_Features_Group>;
1090 def msse4a : Flag<["-"], "msse4a">, Group<m_x86_Features_Group>;
1091 def msse4 : Flag<["-"], "msse4">, Group<m_x86_Features_Group>;
1092 def msse4_1 : Flag<["-"], "msse4.1">, Group<m_x86_Features_Group>;
1093 def msse4_2 : Flag<["-"], "msse4.2">, Group<m_x86_Features_Group>;
1094 def msse : Flag<["-"], "msse">, Group<m_x86_Features_Group>;
1095 def mssse3 : Flag<["-"], "mssse3">, Group<m_x86_Features_Group>;
1096 def maes : Flag<["-"], "maes">, Group<m_x86_Features_Group>;
1097 def mavx : Flag<["-"], "mavx">, Group<m_x86_Features_Group>;
1098 def mavx2 : Flag<["-"], "mavx2">, Group<m_x86_Features_Group>;
1099 def mavx512f : Flag<["-"], "mavx512f">, Group<m_x86_Features_Group>;
1100 def mavx512cd : Flag<["-"], "mavx512cd">, Group<m_x86_Features_Group>;
1101 def mavx512er : Flag<["-"], "mavx512er">, Group<m_x86_Features_Group>;
1102 def mavx512pf : Flag<["-"], "mavx512pf">, Group<m_x86_Features_Group>;
1103 def mpclmul : Flag<["-"], "mpclmul">, Group<m_x86_Features_Group>;
1104 def mlzcnt : Flag<["-"], "mlzcnt">, Group<m_x86_Features_Group>;
1105 def mrdrnd : Flag<["-"], "mrdrnd">, Group<m_x86_Features_Group>;
1106 def mbmi : Flag<["-"], "mbmi">, Group<m_x86_Features_Group>;
1107 def mbmi2 : Flag<["-"], "mbmi2">, Group<m_x86_Features_Group>;
1108 def mpopcnt : Flag<["-"], "mpopcnt">, Group<m_x86_Features_Group>;
1109 def mtbm : Flag<["-"], "mtbm">, Group<m_x86_Features_Group>;
1110 def mfma4 : Flag<["-"], "mfma4">, Group<m_x86_Features_Group>;
1111 def mfma : Flag<["-"], "mfma">, Group<m_x86_Features_Group>;
1112 def mxop : Flag<["-"], "mxop">, Group<m_x86_Features_Group>;
1113 def mf16c : Flag<["-"], "mf16c">, Group<m_x86_Features_Group>;
1114 def mrtm : Flag<["-"], "mrtm">, Group<m_x86_Features_Group>;
1115 def mprfchw : Flag<["-"], "mprfchw">, Group<m_x86_Features_Group>;
1116 def mrdseed : Flag<["-"], "mrdseed">, Group<m_x86_Features_Group>;
1117 def msha : Flag<["-"], "msha">, Group<m_x86_Features_Group>;
1118 def mcx16 : Flag<["-"], "mcx16">, Group<m_x86_Features_Group>;
1119 def mips16 : Flag<["-"], "mips16">, Group<m_Group>;
1120 def mno_mips16 : Flag<["-"], "mno-mips16">, Group<m_Group>;
1121 def mmicromips : Flag<["-"], "mmicromips">, Group<m_Group>;
1122 def mno_micromips : Flag<["-"], "mno-micromips">, Group<m_Group>;
1123 def mxgot : Flag<["-"], "mxgot">, Group<m_Group>;
1124 def mno_xgot : Flag<["-"], "mno-xgot">, Group<m_Group>;
1125 def mldc1_sdc1 : Flag<["-"], "mldc1-sdc1">, Group<m_Group>;
1126 def mno_ldc1_sdc1 : Flag<["-"], "mno-ldc1-sdc1">, Group<m_Group>;
1127 def mcheck_zero_division : Flag<["-"], "mcheck-zero-division">, Group<m_Group>;
1128 def mno_check_zero_division : Flag<["-"], "mno-check-zero-division">,
1129                               Group<m_Group>;
1130 def mdsp : Flag<["-"], "mdsp">, Group<m_Group>;
1131 def mno_dsp : Flag<["-"], "mno-dsp">, Group<m_Group>;
1132 def mdspr2 : Flag<["-"], "mdspr2">, Group<m_Group>;
1133 def mno_dspr2 : Flag<["-"], "mno-dspr2">, Group<m_Group>;
1134 def msingle_float : Flag<["-"], "msingle-float">, Group<m_Group>;
1135 def mdouble_float : Flag<["-"], "mdouble-float">, Group<m_Group>;
1136 def mmsa : Flag<["-"], "mmsa">, Group<m_Group>,
1137   HelpText<"Enable MSA ASE (MIPS only)">;
1138 def mno_msa : Flag<["-"], "mno-msa">, Group<m_Group>,
1139   HelpText<"Disable MSA ASE (MIPS only)">;
1140 def mfp64 : Flag<["-"], "mfp64">, Group<m_Group>,
1141   HelpText<"Use 64-bit floating point registers (MIPS only)">;
1142 def mfp32 : Flag<["-"], "mfp32">, Group<m_Group>,
1143   HelpText<"Use 32-bit floating point registers (MIPS only)">;
1144 def mnan_EQ : Joined<["-"], "mnan=">, Group<m_Group>;
1145 def mips32 : Flag<["-"], "mips32">,
1146   Alias<march_EQ>, AliasArgs<["mips32"]>,
1147   HelpText<"Equivalent to -march=mips32">, Flags<[HelpHidden]>;
1148 def mips32r2 : Flag<["-"], "mips32r2">,
1149   Alias<march_EQ>, AliasArgs<["mips32r2"]>,
1150   HelpText<"Equivalent to -march=mips32r2">, Flags<[HelpHidden]>;
1151 def mips64 : Flag<["-"], "mips64">,
1152   Alias<march_EQ>, AliasArgs<["mips64"]>,
1153   HelpText<"Equivalent to -march=mips64">, Flags<[HelpHidden]>;
1154 def mips64r2 : Flag<["-"], "mips64r2">,
1155   Alias<march_EQ>, AliasArgs<["mips64r2"]>,
1156   HelpText<"Equivalent to -march=mips64r2">, Flags<[HelpHidden]>;
1157 def module_file_info : Flag<["-"], "module-file-info">, Flags<[DriverOption,CC1Option]>, Group<Action_Group>;
1158 def mthumb : Flag<["-"], "mthumb">, Group<m_Group>;
1159 def mtune_EQ : Joined<["-"], "mtune=">, Group<m_Group>;
1160 def multi__module : Flag<["-"], "multi_module">;
1161 def multiply__defined__unused : Separate<["-"], "multiply_defined_unused">;
1162 def multiply__defined : Separate<["-"], "multiply_defined">;
1163 def mwarn_nonportable_cfstrings : Flag<["-"], "mwarn-nonportable-cfstrings">, Group<m_Group>;
1164 def no_canonical_prefixes : Flag<["-"], "no-canonical-prefixes">, Flags<[HelpHidden]>,
1165   HelpText<"Use relative instead of canonical paths">;
1166 def no_cpp_precomp : Flag<["-"], "no-cpp-precomp">, Group<clang_ignored_f_Group>;
1167 def no_integrated_as : Flag<["-"], "no-integrated-as">, Flags<[DriverOption]>;
1168 def no_integrated_cpp : Flag<["-", "--"], "no-integrated-cpp">, Flags<[DriverOption]>;
1169 def no_pedantic : Flag<["-", "--"], "no-pedantic">, Group<pedantic_Group>;
1170 def no__dead__strip__inits__and__terms : Flag<["-"], "no_dead_strip_inits_and_terms">;
1171 def nobuiltininc : Flag<["-"], "nobuiltininc">, Flags<[CC1Option]>,
1172   HelpText<"Disable builtin #include directories">;
1173 def nodefaultlibs : Flag<["-"], "nodefaultlibs">;
1174 def nofixprebinding : Flag<["-"], "nofixprebinding">;
1175 def nolibc : Flag<["-"], "nolibc">;
1176 def nomultidefs : Flag<["-"], "nomultidefs">;
1177 def nopie : Flag<["-"], "nopie">;
1178 def noprebind : Flag<["-"], "noprebind">;
1179 def noseglinkedit : Flag<["-"], "noseglinkedit">;
1180 def nostartfiles : Flag<["-"], "nostartfiles">;
1181 def nostdinc : Flag<["-"], "nostdinc">;
1182 def nostdlibinc : Flag<["-"], "nostdlibinc">;
1183 def nostdincxx : Flag<["-"], "nostdinc++">, Flags<[CC1Option]>,
1184   HelpText<"Disable standard #include directories for the C++ standard library">;
1185 def nostdlib : Flag<["-"], "nostdlib">;
1186 def object : Flag<["-"], "object">;
1187 def o : JoinedOrSeparate<["-"], "o">, Flags<[DriverOption, RenderAsInput, CC1Option]>,
1188   HelpText<"Write output to <file>">, MetaVarName<"<file>">;
1189 def pagezero__size : JoinedOrSeparate<["-"], "pagezero_size">;
1190 def pass_exit_codes : Flag<["-", "--"], "pass-exit-codes">, Flags<[Unsupported]>;
1191 def pedantic_errors : Flag<["-", "--"], "pedantic-errors">, Group<pedantic_Group>, Flags<[CC1Option]>;
1192 def pedantic : Flag<["-", "--"], "pedantic">, Group<pedantic_Group>, Flags<[CC1Option]>;
1193 def pg : Flag<["-"], "pg">, HelpText<"Enable mcount instrumentation">, Flags<[CC1Option]>;
1194 def pipe : Flag<["-", "--"], "pipe">,
1195   HelpText<"Use pipes between commands, when possible">;
1196 def prebind__all__twolevel__modules : Flag<["-"], "prebind_all_twolevel_modules">;
1197 def prebind : Flag<["-"], "prebind">;
1198 def preload : Flag<["-"], "preload">;
1199 def print_file_name_EQ : Joined<["-", "--"], "print-file-name=">,
1200   HelpText<"Print the full library path of <file>">, MetaVarName<"<file>">;
1201 def print_ivar_layout : Flag<["-"], "print-ivar-layout">, Flags<[CC1Option]>,
1202   HelpText<"Enable Objective-C Ivar layout bitmap print trace">;
1203 def print_libgcc_file_name : Flag<["-", "--"], "print-libgcc-file-name">,
1204   HelpText<"Print the library path for \"libgcc.a\"">;
1205 def print_multi_directory : Flag<["-", "--"], "print-multi-directory">;
1206 def print_multi_lib : Flag<["-", "--"], "print-multi-lib">;
1207 def print_multi_os_directory : Flag<["-", "--"], "print-multi-os-directory">;
1208 def print_prog_name_EQ : Joined<["-", "--"], "print-prog-name=">,
1209   HelpText<"Print the full program path of <name>">, MetaVarName<"<name>">;
1210 def print_search_dirs : Flag<["-", "--"], "print-search-dirs">,
1211   HelpText<"Print the paths used for finding libraries and programs">;
1212 def private__bundle : Flag<["-"], "private_bundle">;
1213 def pthreads : Flag<["-"], "pthreads">;
1214 def pthread : Flag<["-"], "pthread">, Flags<[CC1Option]>,
1215   HelpText<"Support POSIX threads in generated code">;
1216 def p : Flag<["-"], "p">;
1217 def pie : Flag<["-"], "pie">;
1218 def read__only__relocs : Separate<["-"], "read_only_relocs">;
1219 def remap : Flag<["-"], "remap">;
1220 def rewrite_objc : Flag<["-"], "rewrite-objc">, Flags<[DriverOption,CC1Option]>,
1221   HelpText<"Rewrite Objective-C source to C++">, Group<Action_Group>;
1222 def rewrite_legacy_objc : Flag<["-"], "rewrite-legacy-objc">, Flags<[DriverOption]>,
1223   HelpText<"Rewrite Legacy Objective-C source to C++">;
1224 def rdynamic : Flag<["-"], "rdynamic">;
1225 def resource_dir : Separate<["-"], "resource-dir">,
1226   Flags<[DriverOption, CC1Option, HelpHidden]>,
1227   HelpText<"The directory which holds the compiler resource files">;
1228 def resource_dir_EQ : Joined<["-"], "resource-dir=">, Flags<[DriverOption]>,
1229   Alias<resource_dir>;
1230 def rpath : Separate<["-"], "rpath">, Flags<[LinkerInput]>;
1231 def rtlib_EQ : Joined<["-", "--"], "rtlib=">;
1232 def r : Flag<["-"], "r">;
1233 def save_temps : Flag<["-", "--"], "save-temps">, Flags<[DriverOption]>,
1234   HelpText<"Save intermediate compilation results">;
1235 def sectalign : MultiArg<["-"], "sectalign", 3>;
1236 def sectcreate : MultiArg<["-"], "sectcreate", 3>;
1237 def sectobjectsymbols : MultiArg<["-"], "sectobjectsymbols", 2>;
1238 def sectorder : MultiArg<["-"], "sectorder", 3>;
1239 def seg1addr : JoinedOrSeparate<["-"], "seg1addr">;
1240 def seg__addr__table__filename : Separate<["-"], "seg_addr_table_filename">;
1241 def seg__addr__table : Separate<["-"], "seg_addr_table">;
1242 def segaddr : MultiArg<["-"], "segaddr", 2>;
1243 def segcreate : MultiArg<["-"], "segcreate", 3>;
1244 def seglinkedit : Flag<["-"], "seglinkedit">;
1245 def segprot : MultiArg<["-"], "segprot", 3>;
1246 def segs__read__only__addr : Separate<["-"], "segs_read_only_addr">;
1247 def segs__read__write__addr : Separate<["-"], "segs_read_write_addr">;
1248 def segs__read__ : Joined<["-"], "segs_read_">;
1249 def shared_libgcc : Flag<["-"], "shared-libgcc">;
1250 def shared : Flag<["-", "--"], "shared">;
1251 def single__module : Flag<["-"], "single_module">;
1252 def specs_EQ : Joined<["-", "--"], "specs=">;
1253 def specs : Separate<["-", "--"], "specs">, Flags<[Unsupported]>;
1254 def static_libgcc : Flag<["-"], "static-libgcc">;
1255 def static_libstdcxx : Flag<["-"], "static-libstdc++">;
1256 def static : Flag<["-", "--"], "static">, Flags<[NoArgumentUnused]>;
1257 def std_default_EQ : Joined<["-"], "std-default=">;
1258 def std_EQ : Joined<["-", "--"], "std=">, Flags<[CC1Option]>,
1259   Group<CompileOnly_Group>, HelpText<"Language standard to compile for">;
1260 def stdlib_EQ : Joined<["-", "--"], "stdlib=">, Flags<[CC1Option]>,
1261   HelpText<"C++ standard library to use">;
1262 def sub__library : JoinedOrSeparate<["-"], "sub_library">;
1263 def sub__umbrella : JoinedOrSeparate<["-"], "sub_umbrella">;
1264 def s : Flag<["-"], "s">;
1265 def target : Joined<["--"], "target=">, Flags<[DriverOption]>,
1266   HelpText<"Generate code for the given target">;
1267 def gcc_toolchain : Joined<["--"], "gcc-toolchain=">, Flags<[DriverOption]>,
1268   HelpText<"Use the gcc toolchain at the given directory">;
1269 def time : Flag<["-"], "time">,
1270   HelpText<"Time individual commands">;
1271 def traditional_cpp : Flag<["-", "--"], "traditional-cpp">, Flags<[CC1Option]>,
1272   HelpText<"Enable some traditional CPP emulation">;
1273 def traditional : Flag<["-", "--"], "traditional">;
1274 def trigraphs : Flag<["-", "--"], "trigraphs">, Flags<[CC1Option]>,
1275   HelpText<"Process trigraph sequences">;
1276 def twolevel__namespace__hints : Flag<["-"], "twolevel_namespace_hints">;
1277 def twolevel__namespace : Flag<["-"], "twolevel_namespace">;
1278 def t : Flag<["-"], "t">;
1279 def umbrella : Separate<["-"], "umbrella">;
1280 def undefined : JoinedOrSeparate<["-"], "undefined">, Group<u_Group>;
1281 def undef : Flag<["-"], "undef">, Group<u_Group>, Flags<[CC1Option]>,
1282   HelpText<"undef all system defines">;
1283 def unexported__symbols__list : Separate<["-"], "unexported_symbols_list">;
1284 def u : JoinedOrSeparate<["-"], "u">, Group<u_Group>;
1285 def v : Flag<["-"], "v">, Flags<[CC1Option]>,
1286   HelpText<"Show commands to run and use verbose output">;
1287 def verify : Flag<["-"], "verify">, Flags<[DriverOption,CC1Option]>,
1288   HelpText<"Verify output using a verifier">;
1289 def weak_l : Joined<["-"], "weak-l">, Flags<[LinkerInput]>;
1290 def weak__framework : Separate<["-"], "weak_framework">, Flags<[LinkerInput]>;
1291 def weak__library : Separate<["-"], "weak_library">, Flags<[LinkerInput]>;
1292 def weak__reference__mismatches : Separate<["-"], "weak_reference_mismatches">;
1293 def whatsloaded : Flag<["-"], "whatsloaded">;
1294 def whyload : Flag<["-"], "whyload">;
1295 def w : Flag<["-"], "w">, HelpText<"Suppress all warnings">, Flags<[CC1Option]>;
1296 def x : JoinedOrSeparate<["-"], "x">, Flags<[DriverOption,CC1Option]>,
1297   HelpText<"Treat subsequent input files as having type <language>">,
1298   MetaVarName<"<language>">;
1299 def y : Joined<["-"], "y">;
1300
1301 def working_directory : JoinedOrSeparate<["-"], "working-directory">, Flags<[CC1Option]>,
1302   HelpText<"Resolve file paths relative to the specified directory">;
1303 def working_directory_EQ : Joined<["-"], "working-directory=">, Flags<[CC1Option]>,
1304   Alias<working_directory>;
1305
1306 // Double dash options, which are usually an alias for one of the previous
1307 // options.
1308
1309 def _mhwdiv_EQ : Separate<["--"], "mhwdiv">, Alias<mhwdiv_EQ>;
1310 def _CLASSPATH_EQ : Joined<["--"], "CLASSPATH=">, Alias<fclasspath_EQ>;
1311 def _CLASSPATH : Separate<["--"], "CLASSPATH">, Alias<fclasspath_EQ>;
1312 def _all_warnings : Flag<["--"], "all-warnings">, Alias<Wall>;
1313 def _analyze_auto : Flag<["--"], "analyze-auto">, Flags<[DriverOption]>;
1314 def _analyzer_no_default_checks : Flag<["--"], "analyzer-no-default-checks">, Flags<[DriverOption]>;
1315 def _analyzer_output : JoinedOrSeparate<["--"], "analyzer-output">, Flags<[DriverOption]>;
1316 def _analyze : Flag<["--"], "analyze">, Flags<[DriverOption]>,
1317   HelpText<"Run the static analyzer">;
1318 def _assemble : Flag<["--"], "assemble">, Alias<S>;
1319 def _assert_EQ : Joined<["--"], "assert=">, Alias<A>;
1320 def _assert : Separate<["--"], "assert">, Alias<A>;
1321 def _bootclasspath_EQ : Joined<["--"], "bootclasspath=">, Alias<fbootclasspath_EQ>;
1322 def _bootclasspath : Separate<["--"], "bootclasspath">, Alias<fbootclasspath_EQ>;
1323 def _classpath_EQ : Joined<["--"], "classpath=">, Alias<fclasspath_EQ>;
1324 def _classpath : Separate<["--"], "classpath">, Alias<fclasspath_EQ>;
1325 def _comments_in_macros : Flag<["--"], "comments-in-macros">, Alias<CC>;
1326 def _comments : Flag<["--"], "comments">, Alias<C>;
1327 def _compile : Flag<["--"], "compile">, Alias<c>;
1328 def _constant_cfstrings : Flag<["--"], "constant-cfstrings">;
1329 def _debug_EQ : Joined<["--"], "debug=">, Alias<g_Flag>;
1330 def _debug : Flag<["--"], "debug">, Alias<g_Flag>;
1331 def _define_macro_EQ : Joined<["--"], "define-macro=">, Alias<D>;
1332 def _define_macro : Separate<["--"], "define-macro">, Alias<D>;
1333 def _dependencies : Flag<["--"], "dependencies">, Alias<M>;
1334 def _dyld_prefix_EQ : Joined<["--"], "dyld-prefix=">;
1335 def _dyld_prefix : Separate<["--"], "dyld-prefix">, Alias<_dyld_prefix_EQ>;
1336 def _encoding_EQ : Joined<["--"], "encoding=">, Alias<fencoding_EQ>;
1337 def _encoding : Separate<["--"], "encoding">, Alias<fencoding_EQ>;
1338 def _entry : Flag<["--"], "entry">, Alias<e>;
1339 def _extdirs_EQ : Joined<["--"], "extdirs=">, Alias<fextdirs_EQ>;
1340 def _extdirs : Separate<["--"], "extdirs">, Alias<fextdirs_EQ>;
1341 def _extra_warnings : Flag<["--"], "extra-warnings">, Alias<W_Joined>;
1342 def _for_linker_EQ : Joined<["--"], "for-linker=">, Alias<Xlinker>;
1343 def _for_linker : Separate<["--"], "for-linker">, Alias<Xlinker>;
1344 def _force_link_EQ : Joined<["--"], "force-link=">, Alias<u>;
1345 def _force_link : Separate<["--"], "force-link">, Alias<u>;
1346 def _help_hidden : Flag<["--"], "help-hidden">;
1347 def _imacros_EQ : Joined<["--"], "imacros=">, Alias<imacros>;
1348 def _include_barrier : Flag<["--"], "include-barrier">, Alias<I_>;
1349 def _include_directory_after_EQ : Joined<["--"], "include-directory-after=">, Alias<idirafter>;
1350 def _include_directory_after : Separate<["--"], "include-directory-after">, Alias<idirafter>;
1351 def _include_directory_EQ : Joined<["--"], "include-directory=">, Alias<I>;
1352 def _include_directory : Separate<["--"], "include-directory">, Alias<I>;
1353 def _include_prefix_EQ : Joined<["--"], "include-prefix=">, Alias<iprefix>;
1354 def _include_prefix : Separate<["--"], "include-prefix">, Alias<iprefix>;
1355 def _include_with_prefix_after_EQ : Joined<["--"], "include-with-prefix-after=">, Alias<iwithprefix>;
1356 def _include_with_prefix_after : Separate<["--"], "include-with-prefix-after">, Alias<iwithprefix>;
1357 def _include_with_prefix_before_EQ : Joined<["--"], "include-with-prefix-before=">, Alias<iwithprefixbefore>;
1358 def _include_with_prefix_before : Separate<["--"], "include-with-prefix-before">, Alias<iwithprefixbefore>;
1359 def _include_with_prefix_EQ : Joined<["--"], "include-with-prefix=">, Alias<iwithprefix>;
1360 def _include_with_prefix : Separate<["--"], "include-with-prefix">, Alias<iwithprefix>;
1361 def _include_EQ : Joined<["--"], "include=">, Alias<include_>;
1362 def _language_EQ : Joined<["--"], "language=">, Alias<x>;
1363 def _language : Separate<["--"], "language">, Alias<x>;
1364 def _library_directory_EQ : Joined<["--"], "library-directory=">, Alias<L>;
1365 def _library_directory : Separate<["--"], "library-directory">, Alias<L>;
1366 def _no_line_commands : Flag<["--"], "no-line-commands">, Alias<P>;
1367 def _no_standard_includes : Flag<["--"], "no-standard-includes">, Alias<nostdinc>;
1368 def _no_standard_libraries : Flag<["--"], "no-standard-libraries">, Alias<nostdlib>;
1369 def _no_undefined : Flag<["--"], "no-undefined">, Flags<[LinkerInput]>;
1370 def _no_warnings : Flag<["--"], "no-warnings">, Alias<w>;
1371 def _optimize_EQ : Joined<["--"], "optimize=">, Alias<O>;
1372 def _optimize : Flag<["--"], "optimize">, Alias<O>;
1373 def _output_class_directory_EQ : Joined<["--"], "output-class-directory=">, Alias<foutput_class_dir_EQ>;
1374 def _output_class_directory : Separate<["--"], "output-class-directory">, Alias<foutput_class_dir_EQ>;
1375 def _output_EQ : Joined<["--"], "output=">, Alias<o>;
1376 def _output : Separate<["--"], "output">, Alias<o>;
1377 def _param : Separate<["--"], "param">, Group<CompileOnly_Group>;
1378 def _param_EQ : Joined<["--"], "param=">, Alias<_param>;
1379 def _prefix_EQ : Joined<["--"], "prefix=">, Alias<B>;
1380 def _prefix : Separate<["--"], "prefix">, Alias<B>;
1381 def _preprocess : Flag<["--"], "preprocess">, Alias<E>;
1382 def _print_diagnostic_categories : Flag<["--"], "print-diagnostic-categories">;
1383 def _print_file_name : Separate<["--"], "print-file-name">, Alias<print_file_name_EQ>;
1384 def _print_missing_file_dependencies : Flag<["--"], "print-missing-file-dependencies">, Alias<MG>;
1385 def _print_prog_name : Separate<["--"], "print-prog-name">, Alias<print_prog_name_EQ>;
1386 def _profile_blocks : Flag<["--"], "profile-blocks">, Alias<a>;
1387 def _profile : Flag<["--"], "profile">, Alias<p>;
1388 def _resource_EQ : Joined<["--"], "resource=">, Alias<fcompile_resource_EQ>;
1389 def _resource : Separate<["--"], "resource">, Alias<fcompile_resource_EQ>;
1390 def _rtlib : Separate<["--"], "rtlib">, Alias<rtlib_EQ>;
1391 def _serialize_diags : Separate<["-", "--"], "serialize-diagnostics">, Flags<[DriverOption]>,
1392   HelpText<"Serialize compiler diagnostics to a file">;
1393 // We give --version different semantics from -version.
1394 def _version : Flag<["--"], "version">,  Flags<[CC1Option]>;
1395 def _signed_char : Flag<["--"], "signed-char">, Alias<fsigned_char>;
1396 def _std : Separate<["--"], "std">, Alias<std_EQ>;
1397 def _stdlib : Separate<["--"], "stdlib">, Alias<stdlib_EQ>;
1398 def _sysroot_EQ : Joined<["--"], "sysroot=">;
1399 def _sysroot : Separate<["--"], "sysroot">, Alias<_sysroot_EQ>;
1400 def _target_help : Flag<["--"], "target-help">;
1401 def _trace_includes : Flag<["--"], "trace-includes">, Alias<H>;
1402 def _undefine_macro_EQ : Joined<["--"], "undefine-macro=">, Alias<U>;
1403 def _undefine_macro : Separate<["--"], "undefine-macro">, Alias<U>;
1404 def _unsigned_char : Flag<["--"], "unsigned-char">, Alias<funsigned_char>;
1405 def _user_dependencies : Flag<["--"], "user-dependencies">, Alias<MM>;
1406 def _verbose : Flag<["--"], "verbose">, Alias<v>;
1407 def _warn__EQ : Joined<["--"], "warn-=">, Alias<W_Joined>;
1408 def _warn_ : Joined<["--"], "warn-">, Alias<W_Joined>;
1409 def _write_dependencies : Flag<["--"], "write-dependencies">, Alias<MD>;
1410 def _write_user_dependencies : Flag<["--"], "write-user-dependencies">, Alias<MMD>;
1411 def _ : Joined<["--"], "">, Flags<[Unsupported]>;
1412 def mieee_rnd_near : Flag<["-"], "mieee-rnd-near">, Group<m_hexagon_Features_Group>;
1413 def mv1 : Flag<["-"], "mv1">, Group<m_hexagon_Features_Group>, Alias<march_EQ>,
1414           AliasArgs<["v1"]>;
1415 def mv2 : Flag<["-"], "mv2">, Group<m_hexagon_Features_Group>, Alias<march_EQ>,
1416           AliasArgs<["v2"]>;
1417 def mv3 : Flag<["-"], "mv3">, Group<m_hexagon_Features_Group>, Alias<march_EQ>,
1418           AliasArgs<["v3"]>;
1419 def mv4 : Flag<["-"], "mv4">, Group<m_hexagon_Features_Group>, Alias<march_EQ>,
1420           AliasArgs<["v4"]>;
1421 def mv5 : Flag<["-"], "mv5">, Group<m_hexagon_Features_Group>, Alias<march_EQ>,
1422           AliasArgs<["v5"]>;
1423
1424 // These are legacy user-facing driver-level option spellings. They are always
1425 // aliases for options that are spelled using the more common Unix / GNU flag
1426 // style of double-dash and equals-joined flags.
1427 def gcc_toolchain_legacy_spelling : Separate<["-"], "gcc-toolchain">, Alias<gcc_toolchain>;
1428 def target_legacy_spelling : Separate<["-"], "target">, Alias<target>;
1429
1430 // Special internal option to handle -Xlinker --no-demangle.
1431 def Z_Xlinker__no_demangle : Flag<["-"], "Z-Xlinker-no-demangle">,
1432     Flags<[Unsupported, NoArgumentUnused]>;
1433
1434 // Special internal option to allow forwarding arbitrary arguments to linker.
1435 def Zlinker_input : Separate<["-"], "Zlinker-input">,
1436     Flags<[Unsupported, NoArgumentUnused]>;
1437
1438 // Reserved library options.
1439 def Z_reserved_lib_stdcxx : Flag<["-"], "Z-reserved-lib-stdc++">,
1440     Flags<[LinkerInput, NoArgumentUnused, Unsupported]>, Group<reserved_lib_Group>;
1441 def Z_reserved_lib_cckext : Flag<["-"], "Z-reserved-lib-cckext">,
1442     Flags<[LinkerInput, NoArgumentUnused, Unsupported]>, Group<reserved_lib_Group>;
1443
1444 // Ignored options
1445 // FIXME: multiclasess produce suffixes, not prefixes. This is fine for now
1446 // since it is only used in ignored options.
1447 multiclass BooleanFFlag<string name> {
1448   def _f : Flag<["-"], "f"#name>;
1449   def _fno : Flag<["-"], "fno-"#name>;
1450 }
1451
1452 def fprofile_dir : Joined<["-"], "fprofile-dir=">, Group<clang_ignored_f_Group>;
1453
1454 defm profile_use : BooleanFFlag<"profile-use">, Group<clang_ignored_f_Group>;
1455 def fprofile_use_EQ : Joined<["-"], "fprofile-use=">, Group<clang_ignored_f_Group>;
1456 def fuse_ld_EQ : Joined<["-"], "fuse-ld=">, Group<f_Group>;
1457
1458 defm align_functions : BooleanFFlag<"align-functions">, Group<clang_ignored_f_Group>;
1459 def falign_functions_EQ : Joined<["-"], "falign-functions=">, Group<clang_ignored_f_Group>;
1460
1461 // FIXME: This option should be supported and wired up to our diognostics, but
1462 // ignore it for now to avoid breaking builds that use it.
1463 def fdiagnostics_show_location_EQ : Joined<["-"], "fdiagnostics-show-location=">, Group<clang_ignored_f_Group>;
1464
1465 defm eliminate_unused_debug_types : BooleanFFlag<"eliminate-unused-debug-types">, Group<clang_ignored_f_Group>;
1466 defm float_store : BooleanFFlag<"float-store">, Group<clang_ignored_f_Group>;
1467 defm function_attribute_list : BooleanFFlag<"function-attribute-list">, Group<clang_ignored_f_Group>;
1468 defm gcse : BooleanFFlag<"gcse">, Group<clang_ignored_f_Group>;
1469 defm gnu : BooleanFFlag<"gnu">, Group<clang_ignored_f_Group>;
1470 defm ident : BooleanFFlag<"ident">, Group<clang_ignored_f_Group>;
1471 defm implicit_templates : BooleanFFlag<"implicit-templates">, Group<clang_ignored_f_Group>;
1472 defm inline_limit : BooleanFFlag<"inline-limit">, Group<clang_ignored_f_Group>;
1473 defm ivopts : BooleanFFlag<"ivopts">, Group<clang_ignored_f_Group>;
1474 defm non_call_exceptions : BooleanFFlag<"non-call-exceptions">, Group<clang_ignored_f_Group>;
1475 defm permissive : BooleanFFlag<"permissive">, Group<clang_ignored_f_Group>;
1476 defm prefetch_loop_arrays : BooleanFFlag<"prefetch-loop-arrays">, Group<clang_ignored_f_Group>;
1477 defm printf : BooleanFFlag<"printf">, Group<clang_ignored_f_Group>;
1478 defm profile : BooleanFFlag<"profile">, Group<clang_ignored_f_Group>;
1479 defm profile_correction : BooleanFFlag<"profile-correction">, Group<clang_ignored_f_Group>;
1480 defm profile_generate_sampling : BooleanFFlag<"profile-generate-sampling">, Group<clang_ignored_f_Group>;
1481 defm profile_reusedist : BooleanFFlag<"profile-reusedist">, Group<clang_ignored_f_Group>;
1482 defm profile_values : BooleanFFlag<"profile-values">, Group<clang_ignored_f_Group>;
1483 defm regs_graph : BooleanFFlag<"regs-graph">, Group<clang_ignored_f_Group>;
1484 defm ripa : BooleanFFlag<"ripa">, Group<clang_ignored_f_Group>;
1485 defm rounding_math : BooleanFFlag<"rounding-math">, Group<clang_ignored_f_Group>;
1486 defm schedule_insns : BooleanFFlag<"schedule-insns">, Group<clang_ignored_f_Group>;
1487 defm see : BooleanFFlag<"see">, Group<clang_ignored_f_Group>;
1488 defm signaling_nans : BooleanFFlag<"signaling-nans">, Group<clang_ignored_f_Group>;
1489 defm spec_constr_count : BooleanFFlag<"spec-constr-count">, Group<clang_ignored_f_Group>;
1490 defm strength_reduce :
1491     BooleanFFlag<"strength-reduce">, Group<clang_ignored_f_Group>;
1492 defm tls_model : BooleanFFlag<"tls-model">, Group<clang_ignored_f_Group>;
1493 defm tracer : BooleanFFlag<"tracer">, Group<clang_ignored_f_Group>;
1494 defm tree_salias : BooleanFFlag<"tree-salias">, Group<clang_ignored_f_Group>;
1495 defm tree_vectorizer_verbose : BooleanFFlag<"tree-vectorizer-verbose">, Group<clang_ignored_f_Group>;
1496 defm unroll_all_loops : BooleanFFlag<"unroll-all-loops">, Group<clang_ignored_f_Group>;
1497 defm unswitch_loops : BooleanFFlag<"unswitch-loops">, Group<clang_ignored_f_Group>;
1498
1499
1500 // gfortran options that we recognize in the driver and pass along when
1501 // invoking GCC to compile Fortran code.
1502 def gfortran_Group : OptionGroup<"gfortran Group">;
1503
1504 // Generic gfortran options.
1505 def A_DASH : Joined<["-"], "A-">, Group<gfortran_Group>;
1506 def J : JoinedOrSeparate<["-"], "J">, Flags<[RenderJoined]>, Group<gfortran_Group>;
1507 def cpp : Flag<["-"], "cpp">, Group<gfortran_Group>;
1508 def nocpp : Flag<["-"], "nocpp">, Group<gfortran_Group>;
1509 def static_libgfortran : Flag<["-"], "static-libgfortran">, Group<gfortran_Group>;
1510
1511 // "f" options with values for gfortran.
1512 def fblas_matmul_limit_EQ : Joined<["-"], "fblas-matmul-limit=">, Group<gfortran_Group>;
1513 def fcheck_EQ : Joined<["-"], "fcheck=">, Group<gfortran_Group>;
1514 def fcoarray_EQ : Joined<["-"], "fcoarray=">, Group<gfortran_Group>;
1515 def fconvert_EQ : Joined<["-"], "fconvert=">, Group<gfortran_Group>;
1516 def ffixed_line_length_VALUE : Joined<["-"], "ffixed-line-length-">, Group<gfortran_Group>;
1517 def ffpe_trap_EQ : Joined<["-"], "ffpe-trap=">, Group<gfortran_Group>;
1518 def ffree_line_length_VALUE : Joined<["-"], "ffree-line-length-">, Group<gfortran_Group>;
1519 def finit_character_EQ : Joined<["-"], "finit-character=">, Group<gfortran_Group>;
1520 def finit_integer_EQ : Joined<["-"], "finit-integer=">, Group<gfortran_Group>;
1521 def finit_logical_EQ : Joined<["-"], "finit-logical=">, Group<gfortran_Group>;
1522 def finit_real_EQ : Joined<["-"], "finit-real=">, Group<gfortran_Group>;
1523 def fmax_array_constructor_EQ : Joined<["-"], "fmax-array-constructor=">, Group<gfortran_Group>;
1524 def fmax_errors_EQ : Joined<["-"], "fmax-errors=">, Group<gfortran_Group>;
1525 def fmax_stack_var_size_EQ : Joined<["-"], "fmax-stack-var-size=">, Group<gfortran_Group>;
1526 def fmax_subrecord_length_EQ : Joined<["-"], "fmax-subrecord-length=">, Group<gfortran_Group>;
1527 def frecord_marker_EQ : Joined<["-"], "frecord-marker=">, Group<gfortran_Group>;
1528
1529 // "f" flags for gfortran.
1530 defm aggressive_function_elimination : BooleanFFlag<"aggressive-function-elimination">, Group<gfortran_Group>;
1531 defm align_commons : BooleanFFlag<"align-commons">, Group<gfortran_Group>;
1532 defm all_intrinsics : BooleanFFlag<"all-intrinsics">, Group<gfortran_Group>;
1533 defm automatic : BooleanFFlag<"automatic">, Group<gfortran_Group>;
1534 defm backslash : BooleanFFlag<"backslash">, Group<gfortran_Group>;
1535 defm backtrace : BooleanFFlag<"backtrace">, Group<gfortran_Group>;
1536 defm bounds_check : BooleanFFlag<"bounds-check">, Group<gfortran_Group>;
1537 defm check_array_temporaries : BooleanFFlag<"check-array-temporaries">, Group<gfortran_Group>;
1538 defm cray_pointer : BooleanFFlag<"cray-pointer">, Group<gfortran_Group>;
1539 defm d_lines_as_code : BooleanFFlag<"d-lines-as-code">, Group<gfortran_Group>;
1540 defm d_lines_as_comments : BooleanFFlag<"d-lines-as-comments">, Group<gfortran_Group>;
1541 defm default_double_8 : BooleanFFlag<"default-double-8">, Group<gfortran_Group>;
1542 defm default_integer_8 : BooleanFFlag<"default-integer-8">, Group<gfortran_Group>;
1543 defm default_real_8 : BooleanFFlag<"default-real-8">, Group<gfortran_Group>;
1544 defm dollar_ok : BooleanFFlag<"dollar-ok">, Group<gfortran_Group>;
1545 defm dump_fortran_optimized : BooleanFFlag<"dump-fortran-optimized">, Group<gfortran_Group>;
1546 defm dump_fortran_original : BooleanFFlag<"dump-fortran-original">, Group<gfortran_Group>;
1547 defm dump_parse_tree : BooleanFFlag<"dump-parse-tree">, Group<gfortran_Group>;
1548 defm external_blas : BooleanFFlag<"external-blas">, Group<gfortran_Group>;
1549 defm f2c : BooleanFFlag<"f2c">, Group<gfortran_Group>;
1550 defm fixed_form : BooleanFFlag<"fixed-form">, Group<gfortran_Group>;
1551 defm free_form : BooleanFFlag<"free-form">, Group<gfortran_Group>;
1552 defm frontend_optimize : BooleanFFlag<"frontend-optimize">, Group<gfortran_Group>;
1553 defm implicit_none : BooleanFFlag<"implicit-none">, Group<gfortran_Group>;
1554 defm init_local_zero : BooleanFFlag<"init-local-zero">, Group<gfortran_Group>;
1555 defm integer_4_integer_8 : BooleanFFlag<"integer-4-integer-8">, Group<gfortran_Group>;
1556 defm intrinsic_modules_path : BooleanFFlag<"intrinsic-modules-path">, Group<gfortran_Group>;
1557 defm max_identifier_length : BooleanFFlag<"max-identifier-length">, Group<gfortran_Group>;
1558 defm module_private : BooleanFFlag<"module-private">, Group<gfortran_Group>;
1559 defm pack_derived : BooleanFFlag<"pack-derived">, Group<gfortran_Group>;
1560 defm protect_parens : BooleanFFlag<"protect-parens">, Group<gfortran_Group>;
1561 defm range_check : BooleanFFlag<"range-check">, Group<gfortran_Group>;
1562 defm real_4_real_10 : BooleanFFlag<"real-4-real-10">, Group<gfortran_Group>;
1563 defm real_4_real_16 : BooleanFFlag<"real-4-real-16">, Group<gfortran_Group>;
1564 defm real_4_real_8 : BooleanFFlag<"real-4-real-8">, Group<gfortran_Group>;
1565 defm real_8_real_10 : BooleanFFlag<"real-8-real-10">, Group<gfortran_Group>;
1566 defm real_8_real_16 : BooleanFFlag<"real-8-real-16">, Group<gfortran_Group>;
1567 defm real_8_real_4 : BooleanFFlag<"real-8-real-4">, Group<gfortran_Group>;
1568 defm realloc_lhs : BooleanFFlag<"realloc-lhs">, Group<gfortran_Group>;
1569 defm recursive : BooleanFFlag<"recursive">, Group<gfortran_Group>;
1570 defm repack_arrays : BooleanFFlag<"repack-arrays">, Group<gfortran_Group>;
1571 defm second_underscore : BooleanFFlag<"second-underscore">, Group<gfortran_Group>;
1572 defm sign_zero : BooleanFFlag<"sign-zero">, Group<gfortran_Group>;
1573 defm stack_arrays : BooleanFFlag<"stack-arrays">, Group<gfortran_Group>;
1574 defm underscoring : BooleanFFlag<"underscoring">, Group<gfortran_Group>;
1575 defm whole_file : BooleanFFlag<"whole-file">, Group<gfortran_Group>;
1576
1577
1578 include "CC1Options.td"
1579
1580 include "CLCompatOptions.td"