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