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