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