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