| 1 | //==--- DiagnosticDriverKinds.td - libdriver diagnostics ------------------===// |
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | let Component = "Driver" in { |
| 10 | |
| 11 | def err_drv_no_such_file : Error<"no such file or directory: '%0'">; |
| 12 | def err_drv_unsupported_opt : Error<"unsupported option '%0'">; |
| 13 | def err_drv_unsupported_opt_with_suggestion |
| 14 | : Error<"unsupported option '%0', did you mean '%1'?">; |
| 15 | def err_drv_unsupported_opt_for_target : Error< |
| 16 | "unsupported option '%0' for target '%1'">; |
| 17 | def err_drv_unsupported_option_argument : Error< |
| 18 | "unsupported argument '%1' to option '%0'">; |
| 19 | def err_drv_unknown_stdin_type : Error< |
| 20 | "-E or -x required when input is from standard input">; |
| 21 | def err_drv_unknown_stdin_type_clang_cl : Error< |
| 22 | "use /Tc or /Tp to set input type for standard input">; |
| 23 | def err_drv_unknown_language : Error<"language not recognized: '%0'">; |
| 24 | def err_drv_invalid_arch_name : Error< |
| 25 | "invalid arch name '%0'">; |
| 26 | def err_drv_invalid_riscv_arch_name : Error< |
| 27 | "invalid arch name '%0', %1">; |
| 28 | def err_drv_invalid_riscv_ext_arch_name : Error< |
| 29 | "invalid arch name '%0', %1 '%2'">; |
| 30 | def err_drv_cuda_bad_gpu_arch : Error<"Unsupported CUDA gpu architecture: %0">; |
| 31 | def err_drv_no_cuda_installation : Error< |
| 32 | "cannot find CUDA installation. Provide its path via --cuda-path, or pass " |
| 33 | "-nocudainc to build without CUDA includes.">; |
| 34 | def err_drv_no_cuda_libdevice : Error< |
| 35 | "cannot find libdevice for %0. Provide path to different CUDA installation " |
| 36 | "via --cuda-path, or pass -nocudalib to build without linking with libdevice.">; |
| 37 | def err_drv_cuda_version_unsupported : Error< |
| 38 | "GPU arch %0 is supported by CUDA versions between %1 and %2 (inclusive), " |
| 39 | "but installation at %3 is %4. Use --cuda-path to specify a different CUDA " |
| 40 | "install, pass a different GPU arch with --cuda-gpu-arch, or pass " |
| 41 | "--no-cuda-version-check.">; |
| 42 | def err_drv_cuda_host_arch : Error<"unsupported architecture '%0' for host compilation.">; |
| 43 | def err_drv_mix_cuda_hip : Error<"Mixed Cuda and HIP compilation is not supported.">; |
| 44 | def err_drv_invalid_thread_model_for_target : Error< |
| 45 | "invalid thread model '%0' in '%1' for this target">; |
| 46 | def err_drv_invalid_linker_name : Error< |
| 47 | "invalid linker name in argument '%0'">; |
| 48 | def err_drv_invalid_pgo_instrumentor : Error< |
| 49 | "invalid PGO instrumentor in argument '%0'">; |
| 50 | def err_drv_invalid_rtlib_name : Error< |
| 51 | "invalid runtime library name in argument '%0'">; |
| 52 | def err_drv_unsupported_rtlib_for_platform : Error< |
| 53 | "unsupported runtime library '%0' for platform '%1'">; |
| 54 | def err_drv_invalid_unwindlib_name : Error< |
| 55 | "invalid unwind library name in argument '%0'">; |
| 56 | def err_drv_incompatible_unwindlib : Error< |
| 57 | "--rtlib=libgcc requires --unwindlib=libgcc">; |
| 58 | def err_drv_invalid_stdlib_name : Error< |
| 59 | "invalid library name in argument '%0'">; |
| 60 | def err_drv_invalid_output_with_multiple_archs : Error< |
| 61 | "cannot use '%0' output with multiple -arch options">; |
| 62 | def err_drv_no_input_files : Error<"no input files">; |
| 63 | def err_drv_use_of_Z_option : Error< |
| 64 | "unsupported use of internal gcc -Z option '%0'">; |
| 65 | def err_drv_output_argument_with_multiple_files : Error< |
| 66 | "cannot specify -o when generating multiple output files">; |
| 67 | def err_drv_out_file_argument_with_multiple_sources : Error< |
| 68 | "cannot specify '%0%1' when compiling multiple source files">; |
| 69 | def err_no_external_assembler : Error< |
| 70 | "there is no external assembler that can be used on this platform">; |
| 71 | def err_drv_unable_to_remove_file : Error< |
| 72 | "unable to remove file: %0">; |
| 73 | def err_drv_command_failure : Error< |
| 74 | "unable to execute command: %0">; |
| 75 | def err_drv_invalid_darwin_version : Error< |
| 76 | "invalid Darwin version number: %0">; |
| 77 | def err_drv_missing_argument : Error< |
| 78 | "argument to '%0' is missing (expected %1 value%s1)">; |
| 79 | def err_drv_invalid_Xarch_argument_with_args : Error< |
| 80 | "invalid Xarch argument: '%0', options requiring arguments are unsupported">; |
| 81 | def err_drv_invalid_Xarch_argument_isdriver : Error< |
| 82 | "invalid Xarch argument: '%0', cannot change driver behavior inside Xarch argument">; |
| 83 | def err_drv_Xopenmp_target_missing_triple : Error< |
| 84 | "cannot deduce implicit triple value for -Xopenmp-target, specify triple using -Xopenmp-target=<triple>">; |
| 85 | def err_drv_invalid_Xopenmp_target_with_args : Error< |
| 86 | "invalid -Xopenmp-target argument: '%0', options requiring arguments are unsupported">; |
| 87 | def err_drv_argument_only_allowed_with : Error< |
| 88 | "invalid argument '%0' only allowed with '%1'">; |
| 89 | def err_drv_argument_not_allowed_with : Error< |
| 90 | "invalid argument '%0' not allowed with '%1'">; |
| 91 | def err_drv_invalid_version_number : Error< |
| 92 | "invalid version number in '%0'">; |
| 93 | def err_drv_no_linker_llvm_support : Error< |
| 94 | "'%0': unable to pass LLVM bit-code files to linker">; |
| 95 | def err_drv_no_ast_support : Error< |
| 96 | "'%0': unable to use AST files with this tool">; |
| 97 | def err_drv_no_module_support : Error< |
| 98 | "'%0': unable to use module files with this tool">; |
| 99 | def err_drv_clang_unsupported : Error< |
| 100 | "the clang compiler does not support '%0'">; |
| 101 | def err_drv_clang_unsupported_opt_cxx_darwin_i386 : Error< |
| 102 | "the clang compiler does not support '%0' for C++ on Darwin/i386">; |
| 103 | def err_drv_clang_unsupported_opt_pg_darwin: Error< |
| 104 | "the clang compiler does not support -pg option on %select{Darwin|versions of OS X 10.9 and later}0">; |
| 105 | def err_drv_clang_unsupported_opt_faltivec : Error< |
| 106 | "the clang compiler does not support '%0', %1">; |
| 107 | def err_drv_command_failed : Error< |
| 108 | "%0 command failed with exit code %1 (use -v to see invocation)">; |
| 109 | def err_drv_compilationdatabase : Error< |
| 110 | "compilation database '%0' could not be opened: %1">; |
| 111 | def err_drv_command_signalled : Error< |
| 112 | "%0 command failed due to signal (use -v to see invocation)">; |
| 113 | def err_drv_force_crash : Error< |
| 114 | "failing because %select{environment variable 'FORCE_CLANG_DIAGNOSTICS_CRASH' is set|'-gen-reproducer' is used}0">; |
| 115 | def err_drv_invalid_mfloat_abi : Error< |
| 116 | "invalid float ABI '%0'">; |
| 117 | def err_drv_invalid_mtp : Error< |
| 118 | "invalid thread pointer reading mode '%0'">; |
| 119 | def err_drv_missing_arg_mtp : Error< |
| 120 | "missing argument to '%0'">; |
| 121 | def err_drv_invalid_libcxx_deployment : Error< |
| 122 | "invalid deployment target for -stdlib=libc++ (requires %0 or later)">; |
| 123 | def err_drv_invalid_argument_to_fdebug_prefix_map : Error< |
| 124 | "invalid argument '%0' to -fdebug-prefix-map">; |
| 125 | def err_drv_malformed_sanitizer_blacklist : Error< |
| 126 | "malformed sanitizer blacklist: '%0'">; |
| 127 | def err_drv_duplicate_config : Error< |
| 128 | "no more than one option '--config' is allowed">; |
| 129 | def err_drv_config_file_not_exist : Error< |
| 130 | "configuration file '%0' does not exist">; |
| 131 | def err_drv_config_file_not_found : Error< |
| 132 | "configuration file '%0' cannot be found">; |
| 133 | def note_drv_config_file_searched_in : Note< |
| 134 | "was searched for in the directory: %0">; |
| 135 | def err_drv_cannot_read_config_file : Error< |
| 136 | "cannot read configuration file '%0'">; |
| 137 | def err_drv_nested_config_file: Error< |
| 138 | "option '--config' is not allowed inside configuration file">; |
| 139 | |
| 140 | def err_target_unsupported_arch |
| 141 | : Error<"the target architecture '%0' is not supported by the target '%1'">; |
| 142 | def err_cpu_unsupported_isa |
| 143 | : Error<"CPU '%0' does not support '%1' execution mode">; |
| 144 | def err_arch_unsupported_isa |
| 145 | : Error<"Architecture '%0' does not support '%1' execution mode">; |
| 146 | |
| 147 | def err_drv_I_dash_not_supported : Error< |
| 148 | "'%0' not supported, please use -iquote instead">; |
| 149 | def err_drv_unknown_argument : Error<"unknown argument: '%0'">; |
| 150 | def err_drv_unknown_argument_with_suggestion |
| 151 | : Error<"unknown argument '%0', did you mean '%1'?">; |
| 152 | def warn_drv_unknown_argument_clang_cl : Warning< |
| 153 | "unknown argument ignored in clang-cl: '%0'">, |
| 154 | InGroup<UnknownArgument>; |
| 155 | def warn_drv_unknown_argument_clang_cl_with_suggestion : Warning< |
| 156 | "unknown argument ignored in clang-cl '%0' (did you mean '%1'?)">, |
| 157 | InGroup<UnknownArgument>; |
| 158 | |
| 159 | def warn_drv_ycyu_different_arg_clang_cl : Warning< |
| 160 | "support for '/Yc' and '/Yu' with different filenames not implemented yet; flags ignored">, |
| 161 | InGroup<ClangClPch>; |
| 162 | def warn_drv_ycyu_no_fi_arg_clang_cl : Warning< |
| 163 | "support for '%0' without a corresponding /FI flag not implemented yet; flag ignored">, |
| 164 | InGroup<ClangClPch>; |
| 165 | def warn_drv_yc_multiple_inputs_clang_cl : Warning< |
| 166 | "support for '/Yc' with more than one source file not implemented yet; flag ignored">, |
| 167 | InGroup<ClangClPch>; |
| 168 | |
| 169 | def err_drv_dllexport_inlines_and_fallback : Error< |
| 170 | "option '/Zc:dllexportInlines-' is ABI-changing and not compatible with '/fallback'">; |
| 171 | |
| 172 | def err_drv_invalid_value : Error<"invalid value '%1' in '%0'">; |
| 173 | def err_drv_invalid_int_value : Error<"invalid integral value '%1' in '%0'">; |
| 174 | def err_drv_invalid_remap_file : Error< |
| 175 | "invalid option '%0' not of the form <from-file>;<to-file>">; |
| 176 | def err_drv_invalid_gcc_output_type : Error< |
| 177 | "invalid output type '%0' for use with gcc tool">; |
| 178 | def err_drv_cc_print_options_failure : Error< |
| 179 | "unable to open CC_PRINT_OPTIONS file: %0">; |
| 180 | def err_drv_lto_without_lld : Error<"LTO requires -fuse-ld=lld">; |
| 181 | def err_drv_preamble_format : Error< |
| 182 | "incorrect format for -preamble-bytes=N,END">; |
| 183 | def warn_invalid_ios_deployment_target : Warning< |
| 184 | "invalid iOS deployment version '%0', iOS 10 is the maximum deployment " |
| 185 | "target for 32-bit targets">, InGroup<InvalidIOSDeploymentTarget>, |
| 186 | DefaultError; |
| 187 | def err_drv_conflicting_deployment_targets : Error< |
| 188 | "conflicting deployment targets, both '%0' and '%1' are present in environment">; |
| 189 | def err_arc_unsupported_on_runtime : Error< |
| 190 | "-fobjc-arc is not supported on platforms using the legacy runtime">; |
| 191 | def err_arc_unsupported_on_toolchain : Error< // feel free to generalize this |
| 192 | "-fobjc-arc is not supported on versions of OS X prior to 10.6">; |
| 193 | def err_objc_weak_with_gc : Error< |
| 194 | "-fobjc-weak is not supported in Objective-C garbage collection">; |
| 195 | def err_objc_weak_unsupported : Error< |
| 196 | "-fobjc-weak is not supported on the current deployment target">; |
| 197 | def err_drv_mg_requires_m_or_mm : Error< |
| 198 | "option '-MG' requires '-M' or '-MM'">; |
| 199 | def err_drv_unknown_objc_runtime : Error< |
| 200 | "unknown or ill-formed Objective-C runtime '%0'">; |
| 201 | def err_drv_invalid_cf_runtime_abi |
| 202 | : Error<"invalid CoreFoundation Runtime ABI '%0'; must be one of " |
| 203 | "'objc', 'standalone', 'swift', 'swift-5.0', 'swift-4.2', 'swift-4.1'">; |
| 204 | def err_drv_gnustep_objc_runtime_incompatible_binary : Error< |
| 205 | "GNUstep Objective-C runtime version %0 incompatible with target binary format">; |
| 206 | def err_drv_emit_llvm_link : Error< |
| 207 | "-emit-llvm cannot be used when linking">; |
| 208 | def err_drv_optimization_remark_pattern : Error< |
| 209 | "%0 in '%1'">; |
| 210 | def err_drv_no_neon_modifier : Error<"[no]neon is not accepted as modifier, please use [no]simd instead">; |
| 211 | def err_drv_invalid_omp_target : Error<"OpenMP target is invalid: '%0'">; |
| 212 | def err_drv_omp_host_ir_file_not_found : Error< |
| 213 | "The provided host compiler IR file '%0' is required to generate code for OpenMP target regions but cannot be found.">; |
| 214 | def err_drv_omp_host_target_not_supported : Error< |
| 215 | "The target '%0' is not a supported OpenMP host target.">; |
| 216 | def err_drv_expecting_fopenmp_with_fopenmp_targets : Error< |
| 217 | "The option -fopenmp-targets must be used in conjunction with a -fopenmp option compatible with offloading, please use -fopenmp=libomp or -fopenmp=libiomp5.">; |
| 218 | def warn_drv_omp_offload_target_duplicate : Warning< |
| 219 | "The OpenMP offloading target '%0' is similar to target '%1' already specified - will be ignored.">, |
| 220 | InGroup<OpenMPTarget>; |
| 221 | def warn_drv_omp_offload_target_missingbcruntime : Warning< |
| 222 | "No library '%0' found in the default clang lib directory or in LIBRARY_PATH. Expect degraded performance due to no inlining of runtime functions on target devices.">, |
| 223 | InGroup<OpenMPTarget>; |
| 224 | def err_drv_unsupported_embed_bitcode |
| 225 | : Error<"%0 is not supported with -fembed-bitcode">; |
| 226 | def err_drv_bitcode_unsupported_on_toolchain : Error< |
| 227 | "-fembed-bitcode is not supported on versions of iOS prior to 6.0">; |
| 228 | |
| 229 | def warn_O4_is_O3 : Warning<"-O4 is equivalent to -O3">, InGroup<Deprecated>; |
| 230 | def warn_drv_optimization_value : Warning<"optimization level '%0' is not supported; using '%1%2' instead">, |
| 231 | InGroup<InvalidCommandLineArgument>; |
| 232 | def warn_ignored_gcc_optimization : Warning<"optimization flag '%0' is not supported">, |
| 233 | InGroup<IgnoredOptimizationArgument>; |
| 234 | def warn_ignored_clang_option : Warning<"the flag '%0' has been deprecated and will be ignored">, |
| 235 | InGroup<UnusedCommandLineArgument>; |
| 236 | def warn_drv_unsupported_opt_for_target : Warning< |
| 237 | "optimization flag '%0' is not supported for target '%1'">, |
| 238 | InGroup<IgnoredOptimizationArgument>; |
| 239 | def warn_drv_unsupported_debug_info_opt_for_target : Warning< |
| 240 | "debug information option '%0' is not supported for target '%1'">, |
| 241 | InGroup<UnsupportedTargetOpt>; |
| 242 | def warn_c_kext : Warning< |
| 243 | "ignoring -fapple-kext which is valid for C++ and Objective-C++ only">; |
| 244 | def warn_drv_input_file_unused : Warning< |
| 245 | "%0: '%1' input unused%select{ when '%3' is present|}2">, |
| 246 | InGroup<UnusedCommandLineArgument>; |
| 247 | def warn_drv_input_file_unused_by_cpp : Warning< |
| 248 | "%0: '%1' input unused in cpp mode">, |
| 249 | InGroup<UnusedCommandLineArgument>; |
| 250 | def warn_drv_preprocessed_input_file_unused : Warning< |
| 251 | "%0: previously preprocessed input%select{ unused when '%2' is present|}1">, |
| 252 | InGroup<UnusedCommandLineArgument>; |
| 253 | def warn_drv_unused_argument : Warning< |
| 254 | "argument unused during compilation: '%0'">, |
| 255 | InGroup<UnusedCommandLineArgument>; |
| 256 | def warn_drv_empty_joined_argument : Warning< |
| 257 | "joined argument expects additional value: '%0'">, |
| 258 | InGroup<UnusedCommandLineArgument>; |
| 259 | def warn_drv_diagnostics_hotness_requires_pgo : Warning< |
| 260 | "argument '%0' requires profile-guided optimization information">, |
| 261 | InGroup<UnusedCommandLineArgument>; |
| 262 | def warn_drv_clang_unsupported : Warning< |
| 263 | "the clang compiler does not support '%0'">; |
| 264 | def warn_drv_deprecated_arg : Warning< |
| 265 | "argument '%0' is deprecated, use '%1' instead">, InGroup<Deprecated>; |
| 266 | def warn_drv_assuming_mfloat_abi_is : Warning< |
| 267 | "unknown platform, assuming -mfloat-abi=%0">; |
| 268 | def warn_ignoring_ftabstop_value : Warning< |
| 269 | "ignoring invalid -ftabstop value '%0', using default value %1">; |
| 270 | def warn_drv_overriding_flag_option : Warning< |
| 271 | "overriding '%0' option with '%1'">, |
| 272 | InGroup<DiagGroup<"overriding-t-option">>; |
| 273 | def warn_drv_treating_input_as_cxx : Warning< |
| 274 | "treating '%0' input as '%1' when in C++ mode, this behavior is deprecated">, |
| 275 | InGroup<Deprecated>; |
| 276 | def warn_drv_pch_not_first_include : Warning< |
| 277 | "precompiled header '%0' was ignored because '%1' is not first '-include'">; |
| 278 | def warn_missing_sysroot : Warning<"no such sysroot directory: '%0'">, |
| 279 | InGroup<DiagGroup<"missing-sysroot">>; |
| 280 | def warn_incompatible_sysroot : Warning<"using sysroot for '%0' but targeting '%1'">, |
| 281 | InGroup<DiagGroup<"incompatible-sysroot">>; |
| 282 | def warn_debug_compression_unavailable : Warning<"cannot compress debug sections (zlib not installed)">, |
| 283 | InGroup<DiagGroup<"debug-compression-unavailable">>; |
| 284 | def warn_drv_disabling_vptr_no_rtti_default : Warning< |
| 285 | "implicitly disabling vptr sanitizer because rtti wasn't enabled">, |
| 286 | InGroup<AutoDisableVptrSanitizer>; |
| 287 | def warn_drv_object_size_disabled_O0 : Warning< |
| 288 | "the object size sanitizer has no effect at -O0, but is explicitly enabled: %0">, |
| 289 | InGroup<InvalidCommandLineArgument>, DefaultWarnNoWerror; |
| 290 | def err_invalid_branch_protection: Error < |
| 291 | "invalid branch protection option '%0' in '%1'">; |
| 292 | |
| 293 | def note_drv_command_failed_diag_msg : Note< |
| 294 | "diagnostic msg: %0">; |
| 295 | def note_drv_t_option_is_global : Note< |
| 296 | "The last /TC or /TP option takes precedence over earlier instances">; |
| 297 | def note_drv_address_sanitizer_debug_runtime : Note< |
| 298 | "AddressSanitizer doesn't support linking with debug runtime libraries yet">; |
| 299 | def note_drv_use_standard : Note<"use '%0'" |
| 300 | "%select{| or '%3'|, '%3', or '%4'|, '%3', '%4', or '%5'}2 " |
| 301 | "for '%1' standard">; |
| 302 | |
| 303 | def err_analyzer_config_no_value : Error< |
| 304 | "analyzer-config option '%0' has a key but no value">; |
| 305 | def err_analyzer_config_multiple_values : Error< |
| 306 | "analyzer-config option '%0' should contain only one '='">; |
| 307 | def err_analyzer_config_invalid_input : Error< |
| 308 | "invalid input for analyzer-config option '%0', that expects %1 value">; |
| 309 | def err_analyzer_config_unknown : Error<"unknown analyzer-config '%0'">; |
| 310 | def err_analyzer_checker_option_invalid_input : Error< |
| 311 | "invalid input for checker option '%0', that expects %1">; |
| 312 | |
| 313 | def err_drv_invalid_hvx_length : Error< |
| 314 | "-mhvx-length is not supported without a -mhvx/-mhvx= flag">; |
| 315 | def warn_drv_vectorize_needs_hvx : Warning< |
| 316 | "auto-vectorization requires HVX, use -mhvx to enable it">, |
| 317 | InGroup<OptionIgnored>; |
| 318 | |
| 319 | def err_drv_module_header_wrong_kind : Error< |
| 320 | "header file '%0' input type '%1' does not match type of prior input " |
| 321 | "in module compilation; use '-x %2' to override">; |
| 322 | def err_drv_modules_validate_once_requires_timestamp : Error< |
| 323 | "option '-fmodules-validate-once-per-build-session' requires " |
| 324 | "'-fbuild-session-timestamp=<seconds since Epoch>' or '-fbuild-session-file=<file>'">; |
| 325 | |
| 326 | def err_test_module_file_extension_format : Error< |
| 327 | "-ftest-module-file-extension argument '%0' is not of the required form " |
| 328 | "'blockname:major:minor:hashed:user info'">; |
| 329 | |
| 330 | def warn_drv_invoking_fallback : Warning<"falling back to %0">, |
| 331 | InGroup<Fallback>; |
| 332 | |
| 333 | def warn_slash_u_filename : Warning<"'/U%0' treated as the '/U' option">, |
| 334 | InGroup<DiagGroup<"slash-u-filename">>; |
| 335 | def note_use_dashdash : Note<"Use '--' to treat subsequent arguments as filenames">; |
| 336 | |
| 337 | def err_drv_ropi_rwpi_incompatible_with_pic : Error< |
| 338 | "embedded and GOT-based position independence are incompatible">; |
| 339 | def err_drv_ropi_incompatible_with_cxx : Error< |
| 340 | "ROPI is not compatible with c++">; |
| 341 | |
| 342 | def warn_target_unsupported_nan2008 : Warning< |
| 343 | "ignoring '-mnan=2008' option because the '%0' architecture does not support it">, |
| 344 | InGroup<UnsupportedNan>; |
| 345 | def warn_target_unsupported_nanlegacy : Warning< |
| 346 | "ignoring '-mnan=legacy' option because the '%0' architecture does not support it">, |
| 347 | InGroup<UnsupportedNan>; |
| 348 | def warn_target_unsupported_abslegacy : Warning< |
| 349 | "ignoring '-mabs=legacy' option because the '%0' architecture does not support it">, |
| 350 | InGroup<UnsupportedAbs>; |
| 351 | def warn_target_unsupported_abs2008 : Warning< |
| 352 | "ignoring '-mabs=2008' option because the '%0' architecture does not support it">, |
| 353 | InGroup<UnsupportedAbs>; |
| 354 | def warn_target_unsupported_compact_branches : Warning< |
| 355 | "ignoring '-mcompact-branches=' option because the '%0' architecture does not" |
| 356 | " support it">, InGroup<UnsupportedCB>; |
| 357 | def warn_drv_unsupported_gpopt : Warning< |
| 358 | "ignoring '-mgpopt' option as it cannot be used with %select{|the implicit" |
| 359 | " usage of }0-mabicalls">, |
| 360 | InGroup<UnsupportedGPOpt>; |
| 361 | def warn_drv_unsupported_longcalls : Warning< |
| 362 | "ignoring '-mlong-calls' option as it is not currently supported with " |
| 363 | "%select{|the implicit usage of }0-mabicalls">, |
| 364 | InGroup<OptionIgnored>; |
| 365 | def warn_drv_unsupported_pic_with_mabicalls : Warning< |
| 366 | "ignoring '%0' option as it cannot be used with " |
| 367 | "%select{implicit usage of|}1 -mabicalls and the N64 ABI">, |
| 368 | InGroup<OptionIgnored>; |
| 369 | def err_drv_unsupported_noabicalls_pic : Error< |
| 370 | "position-independent code requires '-mabicalls'">; |
| 371 | def err_drv_unsupported_indirect_jump_opt : Error< |
| 372 | "'-mindirect-jump=%0' is unsupported with the '%1' architecture">; |
| 373 | def err_drv_unknown_indirect_jump_opt : Error< |
| 374 | "unknown '-mindirect-jump=' option '%0'">; |
| 375 | |
| 376 | def warn_drv_unable_to_find_directory_expected : Warning< |
| 377 | "unable to find %0 directory, expected to be in '%1'">, |
| 378 | InGroup<InvalidOrNonExistentDirectory>, DefaultIgnore; |
| 379 | |
| 380 | def warn_drv_ps4_force_pic : Warning< |
| 381 | "option '%0' was ignored by the PS4 toolchain, using '-fPIC'">, |
| 382 | InGroup<OptionIgnored>; |
| 383 | |
| 384 | def warn_drv_ps4_sdk_dir : Warning< |
| 385 | "environment variable SCE_ORBIS_SDK_DIR is set, but points to invalid or nonexistent directory '%0'">, |
| 386 | InGroup<InvalidOrNonExistentDirectory>; |
| 387 | |
| 388 | def err_drv_unsupported_linker : Error<"unsupported value '%0' for -linker option">; |
| 389 | def err_drv_defsym_invalid_format : Error<"defsym must be of the form: sym=value: %0">; |
| 390 | def err_drv_defsym_invalid_symval : Error<"Value is not an integer: %0">; |
| 391 | def warn_drv_msvc_not_found : Warning< |
| 392 | "unable to find a Visual Studio installation; " |
| 393 | "try running Clang from a developer command prompt">, |
| 394 | InGroup<DiagGroup<"msvc-not-found">>; |
| 395 | |
| 396 | def warn_drv_fine_grained_bitfield_accesses_ignored : Warning< |
| 397 | "option '-ffine-grained-bitfield-accesses' cannot be enabled together with a sanitizer; flag ignored">, |
| 398 | InGroup<OptionIgnored>; |
| 399 | |
| 400 | def note_drv_verify_prefix_spelling : Note< |
| 401 | "-verify prefixes must start with a letter and contain only alphanumeric" |
| 402 | " characters, hyphens, and underscores">; |
| 403 | |
| 404 | def warn_drv_experimental_isel_incomplete : Warning< |
| 405 | "-fexperimental-isel support for the '%0' architecture is incomplete">, |
| 406 | InGroup<ExperimentalISel>; |
| 407 | |
| 408 | def warn_drv_experimental_isel_incomplete_opt : Warning< |
| 409 | "-fexperimental-isel support is incomplete for this architecture at the current optimization level">, |
| 410 | InGroup<ExperimentalISel>; |
| 411 | |
| 412 | def warn_drv_moutline_unsupported_opt : Warning< |
| 413 | "The '%0' architecture does not support -moutline; flag ignored">, |
| 414 | InGroup<OptionIgnored>; |
| 415 | |
| 416 | def warn_drv_darwin_sdk_invalid_settings : Warning< |
| 417 | "SDK settings were ignored as 'SDKSettings.json' could not be parsed">, |
| 418 | InGroup<DiagGroup<"darwin-sdk-settings">>; |
| 419 | |
| 420 | def err_drv_trivial_auto_var_init_zero_disabled : Error< |
| 421 | "-ftrivial-auto-var-init=zero hasn't been enabled. Enable it at your own peril for benchmarking purpose only with " |
| 422 | "-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang">; |
| 423 | |
| 424 | def warn_drv_msp430_hwmult_unsupported : Warning<"the given MCU does not " |
| 425 | "support hardware multiply, but -mhwmult is set to %0.">, |
| 426 | InGroup<InvalidCommandLineArgument>; |
| 427 | def warn_drv_msp430_hwmult_mismatch : Warning<"the given MCU supports %0 " |
| 428 | "hardware multiply, but -mhwmult is set to %1.">, |
| 429 | InGroup<InvalidCommandLineArgument>; |
| 430 | def warn_drv_msp430_hwmult_no_device : Warning<"no MCU device specified, but " |
| 431 | "'-mhwmult' is set to 'auto', assuming no hardware multiply. Use -mmcu to " |
| 432 | "specify a MSP430 device, or -mhwmult to set hardware multiply type " |
| 433 | "explicitly.">, InGroup<InvalidCommandLineArgument>; |
| 434 | |
| 435 | } |
| 436 | |