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 9let Component = "Driver" in { 10 11def err_drv_no_such_file : Error<"no such file or directory: '%0'">; 12def err_drv_no_such_file_with_suggestion : Error< 13 "no such file or directory: '%0'; did you mean '%1'?">; 14def err_drv_unsupported_opt : Error<"unsupported option '%0'">; 15def err_drv_unsupported_opt_with_suggestion : Error< 16 "unsupported option '%0'; did you mean '%1'?">; 17def err_drv_unsupported_opt_for_target : Error< 18 "unsupported option '%0' for target '%1'">; 19def err_drv_unsupported_opt_for_language_mode : Error< 20 "unsupported option '%0' for language mode '%1'">; 21def err_drv_unsupported_option_argument : Error< 22 "unsupported argument '%1' to option '-%0'">; 23def err_drv_unknown_stdin_type : Error< 24 "-E or -x required when input is from standard input">; 25def err_drv_unknown_stdin_type_clang_cl : Error< 26 "use /Tc or /Tp to set input type for standard input">; 27def err_drv_unknown_language : Error<"language not recognized: '%0'">; 28def err_drv_invalid_arch_name : Error< 29 "invalid arch name '%0'">; 30def err_drv_invalid_riscv_arch_name : Error< 31 "invalid arch name '%0', %1">; 32def warn_drv_invalid_arch_name_with_suggestion : Warning< 33 "ignoring invalid /arch: argument '%0'; for %select{64|32}1-bit expected one of %2">, 34 InGroup<UnusedCommandLineArgument>; 35def warn_drv_avr_mcu_not_specified : Warning< 36 "no target microcontroller specified on command line, cannot " 37 "link standard libraries, please pass -mmcu=<mcu name>">, 38 InGroup<AVRRtlibLinkingQuirks>; 39def warn_drv_avr_libc_not_found: Warning< 40 "no avr-libc installation can be found on the system, " 41 "cannot link standard libraries">, 42 InGroup<AVRRtlibLinkingQuirks>; 43def warn_drv_avr_family_linking_stdlibs_not_implemented: Warning< 44 "support for linking stdlibs for microcontroller '%0' is not implemented">, 45 InGroup<AVRRtlibLinkingQuirks>; 46def warn_drv_avr_linker_section_addresses_not_implemented: Warning< 47 "support for passing the data section address to the linker for " 48 "microcontroller '%0' is not implemented">, 49 InGroup<AVRRtlibLinkingQuirks>; 50def warn_drv_avr_stdlib_not_linked: Warning< 51 "standard library not linked and so no interrupt vector table or " 52 "compiler runtime routines will be linked">, 53 InGroup<AVRRtlibLinkingQuirks>; 54def err_drv_cuda_bad_gpu_arch : Error<"unsupported CUDA gpu architecture: %0">; 55def err_drv_offload_bad_gpu_arch : Error<"unsupported %0 gpu architecture: %1">; 56def err_drv_no_cuda_installation : Error< 57 "cannot find CUDA installation; provide its path via '--cuda-path', or pass " 58 "'-nocudainc' to build without CUDA includes">; 59def err_drv_no_cuda_libdevice : Error< 60 "cannot find libdevice for %0; provide path to different CUDA installation " 61 "via '--cuda-path', or pass '-nocudalib' to build without linking with " 62 "libdevice">; 63 64def err_drv_no_rocm_device_lib : Error< 65 "cannot find ROCm device library%select{| for %1|for ABI version %1}0; provide its path via " 66 "'--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build " 67 "without ROCm device library">; 68def err_drv_no_hip_runtime : Error< 69 "cannot find HIP runtime; provide its path via '--rocm-path', or pass " 70 "'-nogpuinc' to build without HIP runtime">; 71 72def err_drv_no_hipspv_device_lib : Error< 73 "cannot find HIP device library%select{| for %1}0; provide its path via " 74 "'--hip-path' or '--hip-device-lib-path', or pass '-nogpulib' to build " 75 "without HIP device library">; 76def err_drv_hipspv_no_hip_path : Error< 77 "'--hip-path' must be specified when offloading to " 78 "SPIR-V%select{| unless %1 is given}0.">; 79 80def err_drv_undetermined_amdgpu_arch : Error< 81 "cannot determine AMDGPU architecture: %0; consider passing it via " 82 "'--march'">; 83def err_drv_cuda_version_unsupported : Error< 84 "GPU arch %0 is supported by CUDA versions between %1 and %2 (inclusive), " 85 "but installation at %3 is %4; use '--cuda-path' to specify a different CUDA " 86 "install, pass a different GPU arch with '--cuda-gpu-arch', or pass " 87 "'--no-cuda-version-check'">; 88def warn_drv_new_cuda_version: Warning< 89 "CUDA version%0 is newer than the latest%select{| partially}1 supported version %2">, 90 InGroup<CudaUnknownVersion>; 91def warn_drv_partially_supported_cuda_version: Warning< 92 "CUDA version %0 is only partially supported">, 93 InGroup<CudaUnknownVersion>; 94def err_drv_cuda_host_arch : Error< 95 "unsupported architecture '%0' for host compilation">; 96def err_drv_mix_cuda_hip : Error< 97 "mixed CUDA and HIP compilation is not supported">; 98def err_drv_bad_target_id : Error< 99 "invalid target ID '%0'; format is a processor name followed by an optional " 100 "colon-delimited list of features followed by an enable/disable sign (e.g., " 101 "'gfx908:sramecc+:xnack-')">; 102def err_drv_bad_offload_arch_combo : Error< 103 "invalid offload arch combinations: '%0' and '%1' (for a specific processor, " 104 "a feature should either exist in all offload archs, or not exist in any " 105 "offload archs)">; 106def warn_drv_unsupported_option_for_offload_arch_req_feature : Warning< 107 "ignoring '%0' option for offload arch '%1' as it is not currently supported " 108 "there. Use it with an offload arch containing '%2' instead">, 109 InGroup<OptionIgnored>; 110def warn_drv_unsupported_option_for_target : Warning< 111 "ignoring '%0' option as it is not currently supported for target '%1'">, 112 InGroup<OptionIgnored>; 113 114def err_drv_invalid_thread_model_for_target : Error< 115 "invalid thread model '%0' in '%1' for this target">; 116def err_drv_invalid_linker_name : Error< 117 "invalid linker name in argument '%0'">; 118def err_drv_invalid_rtlib_name : Error< 119 "invalid runtime library name in argument '%0'">; 120def err_drv_unsupported_rtlib_for_platform : Error< 121 "unsupported runtime library '%0' for platform '%1'">; 122def err_drv_invalid_unwindlib_name : Error< 123 "invalid unwind library name in argument '%0'">; 124def err_drv_incompatible_unwindlib : Error< 125 "--rtlib=libgcc requires --unwindlib=libgcc">; 126def err_drv_invalid_stdlib_name : Error< 127 "invalid library name in argument '%0'">; 128def err_drv_invalid_output_with_multiple_archs : Error< 129 "cannot use '%0' output with multiple -arch options">; 130def err_drv_no_input_files : Error<"no input files">; 131def err_drv_use_of_Z_option : Error< 132 "unsupported use of internal gcc -Z option '%0'">; 133def err_drv_output_argument_with_multiple_files : Error< 134 "cannot specify -o when generating multiple output files">; 135def err_drv_out_file_argument_with_multiple_sources : Error< 136 "cannot specify '%0%1' when compiling multiple source files">; 137def err_no_external_assembler : Error< 138 "there is no external assembler that can be used on this platform">; 139def err_drv_unable_to_remove_file : Error< 140 "unable to remove file: %0">; 141def err_drv_unable_to_set_working_directory : Error < 142 "unable to set working directory: %0">; 143def err_drv_command_failure : Error< 144 "unable to execute command: %0">; 145def err_drv_invalid_darwin_version : Error< 146 "invalid Darwin version number: %0">; 147def err_drv_invalid_diagnotics_hotness_threshold : Error< 148 "invalid argument in '%0', only integer or 'auto' is supported">; 149def err_drv_invalid_diagnotics_misexpect_tolerance : Error< 150 "invalid argument in '%0', only integers are supported">; 151def err_drv_missing_argument : Error< 152 "argument to '%0' is missing (expected %1 value%s1)">; 153def err_drv_invalid_Xarch_argument_with_args : Error< 154 "invalid Xarch argument: '%0', options requiring arguments are unsupported">; 155def err_drv_Xopenmp_target_missing_triple : Error< 156 "cannot deduce implicit triple value for -Xopenmp-target, specify triple using -Xopenmp-target=<triple>">; 157def err_drv_invalid_Xopenmp_target_with_args : Error< 158 "invalid -Xopenmp-target argument: '%0', options requiring arguments are unsupported">; 159def err_drv_argument_only_allowed_with : Error< 160 "invalid argument '%0' only allowed with '%1'">; 161def err_drv_minws_unsupported_input_type : Error< 162 "'-fminimize-whitespace' invalid for input of type %0">; 163def err_drv_amdgpu_ieee_without_no_honor_nans : Error< 164 "invalid argument '-mno-amdgpu-ieee' only allowed with relaxed NaN handling">; 165def err_drv_argument_not_allowed_with : Error< 166 "invalid argument '%0' not allowed with '%1'">; 167def err_drv_cannot_open_randomize_layout_seed_file : Error< 168 "cannot read randomize layout seed file '%0'">; 169def err_drv_invalid_version_number : Error< 170 "invalid version number in '%0'">; 171def err_drv_no_linker_llvm_support : Error< 172 "'%0': unable to pass LLVM bit-code files to linker">; 173def err_drv_no_ast_support : Error< 174 "'%0': unable to use AST files with this tool">; 175def err_drv_no_module_support : Error< 176 "'%0': unable to use module files with this tool">; 177def err_drv_clang_unsupported : Error< 178 "the clang compiler does not support '%0'">; 179def err_drv_clang_unsupported_opt_cxx_darwin_i386 : Error< 180 "the clang compiler does not support '%0' for C++ on Darwin/i386">; 181def err_drv_clang_unsupported_opt_pg_darwin: Error< 182 "the clang compiler does not support -pg option on %select{Darwin|versions of OS X 10.9 and later}0">; 183def err_drv_clang_unsupported_opt_faltivec : Error< 184 "the clang compiler does not support '%0', %1">; 185def err_drv_command_failed : Error< 186 "%0 command failed with exit code %1 (use -v to see invocation)">; 187def err_drv_compilationdatabase : Error< 188 "compilation database '%0' could not be opened: %1">; 189def err_drv_command_signalled : Error< 190 "%0 command failed due to signal (use -v to see invocation)">; 191def err_drv_force_crash : Error< 192 "failing because %select{environment variable 'FORCE_CLANG_DIAGNOSTICS_CRASH' is set|'-gen-reproducer' is used}0">; 193def err_drv_invalid_mfloat_abi : Error< 194 "invalid float ABI '%0'">; 195def err_drv_invalid_mtp : Error< 196 "invalid thread pointer reading mode '%0'">; 197def err_drv_missing_arg_mtp : Error< 198 "missing argument to '%0'">; 199def warn_drv_missing_plugin_name : Warning< 200 "missing plugin name in %0">, 201 InGroup<InvalidCommandLineArgument>; 202def warn_drv_missing_plugin_arg : Warning< 203 "missing plugin argument for plugin %0 in %1">, 204 InGroup<InvalidCommandLineArgument>; 205def err_drv_invalid_libcxx_deployment : Error< 206 "invalid deployment target for -stdlib=libc++ (requires %0 or later)">; 207def err_drv_invalid_argument_to_option : Error< 208 "invalid argument '%0' to -%1">; 209def err_drv_missing_sanitizer_ignorelist : Error< 210 "missing sanitizer ignorelist: '%0'">; 211def err_drv_malformed_sanitizer_ignorelist : Error< 212 "malformed sanitizer ignorelist: '%0'">; 213def err_drv_malformed_sanitizer_coverage_allowlist : Error< 214 "malformed sanitizer coverage allowlist: '%0'">; 215def err_drv_malformed_sanitizer_coverage_ignorelist : Error< 216 "malformed sanitizer coverage ignorelist: '%0'">; 217def err_drv_duplicate_config : Error< 218 "no more than one option '--config' is allowed">; 219def err_drv_config_file_not_exist : Error< 220 "configuration file '%0' does not exist">; 221def err_drv_config_file_not_found : Error< 222 "configuration file '%0' cannot be found">; 223def note_drv_config_file_searched_in : Note< 224 "was searched for in the directory: %0">; 225def err_drv_cannot_read_config_file : Error< 226 "cannot read configuration file '%0'">; 227def err_drv_nested_config_file: Error< 228 "option '--config' is not allowed inside configuration file">; 229def err_drv_arg_requires_bitcode_input: Error< 230 "option '%0' requires input to be LLVM bitcode">; 231 232def err_target_unsupported_arch 233 : Error<"the target architecture '%0' is not supported by the target '%1'">; 234def err_cpu_unsupported_isa 235 : Error<"CPU '%0' does not support '%1' execution mode">; 236def err_arch_unsupported_isa 237 : Error<"architecture '%0' does not support '%1' execution mode">; 238 239def err_drv_I_dash_not_supported : Error< 240 "'%0' not supported, please use -iquote instead">; 241def err_drv_unknown_argument : Error<"unknown argument: '%0'">; 242def err_drv_unknown_argument_with_suggestion : Error< 243 "unknown argument '%0'; did you mean '%1'?">; 244def warn_drv_unknown_argument_clang_cl : Warning< 245 "unknown argument ignored in clang-cl: '%0'">, 246 InGroup<UnknownArgument>; 247def warn_drv_unknown_argument_clang_cl_with_suggestion : Warning< 248 "unknown argument ignored in clang-cl '%0'; did you mean '%1'?">, 249 InGroup<UnknownArgument>; 250 251def warn_drv_ycyu_different_arg_clang_cl : Warning< 252 "support for '/Yc' and '/Yu' with different filenames not implemented yet; flags ignored">, 253 InGroup<ClangClPch>; 254def warn_drv_yc_multiple_inputs_clang_cl : Warning< 255 "support for '/Yc' with more than one source file not implemented yet; flag ignored">, 256 InGroup<ClangClPch>; 257 258def err_drv_invalid_value : Error<"invalid value '%1' in '%0'">; 259def err_drv_invalid_int_value : Error<"invalid integral value '%1' in '%0'">; 260def err_drv_invalid_value_with_suggestion : Error< 261 "invalid value '%1' in '%0', expected one of: %2">; 262def err_drv_alignment_not_power_of_two : Error<"alignment is not a power of 2 in '%0'">; 263def err_drv_invalid_remap_file : Error< 264 "invalid option '%0' not of the form <from-file>;<to-file>">; 265def err_drv_invalid_gcc_output_type : Error< 266 "invalid output type '%0' for use with gcc tool">; 267def err_drv_cc_print_options_failure : Error< 268 "unable to open CC_PRINT_OPTIONS file: %0">; 269def err_drv_lto_without_lld : Error<"LTO requires -fuse-ld=lld">; 270def err_drv_preamble_format : Error< 271 "incorrect format for -preamble-bytes=N,END">; 272def err_drv_header_unit_extra_inputs : Error< 273 "multiple inputs are not valid for header units (first extra '%0')">; 274def warn_invalid_ios_deployment_target : Warning< 275 "invalid iOS deployment version '%0', iOS 10 is the maximum deployment " 276 "target for 32-bit targets">, InGroup<InvalidIOSDeploymentTarget>, 277 DefaultError; 278def err_invalid_macos_32bit_deployment_target : Error< 279 "32-bit targets are not supported when building for Mac Catalyst">; 280def err_drv_invalid_os_in_arg : Error<"invalid OS value '%0' in '%1'">; 281def err_drv_conflicting_deployment_targets : Error< 282 "conflicting deployment targets, both '%0' and '%1' are present in environment">; 283def err_arc_unsupported_on_runtime : Error< 284 "-fobjc-arc is not supported on platforms using the legacy runtime">; 285def err_arc_unsupported_on_toolchain : Error< // feel free to generalize this 286 "-fobjc-arc is not supported on versions of OS X prior to 10.6">; 287def err_objc_weak_with_gc : Error< 288 "-fobjc-weak is not supported in Objective-C garbage collection">; 289def err_objc_weak_unsupported : Error< 290 "-fobjc-weak is not supported on the current deployment target">; 291def err_drv_mg_requires_m_or_mm : Error< 292 "option '-MG' requires '-M' or '-MM'">; 293def err_drv_unknown_objc_runtime : Error< 294 "unknown or ill-formed Objective-C runtime '%0'">; 295def err_drv_invalid_cf_runtime_abi 296 : Error<"invalid CoreFoundation Runtime ABI '%0'; must be one of " 297 "'objc', 'standalone', 'swift', 'swift-5.0', 'swift-4.2', 'swift-4.1'">; 298def err_drv_gnustep_objc_runtime_incompatible_binary : Error< 299 "GNUstep Objective-C runtime version %0 incompatible with target binary format">; 300def err_drv_emit_llvm_link : Error< 301 "-emit-llvm cannot be used when linking">; 302def err_drv_optimization_remark_pattern : Error< 303 "in pattern '%1': %0">; 304def err_drv_optimization_remark_format : Error< 305 "unknown remark serializer format: '%0'">; 306def err_drv_no_neon_modifier : Error<"[no]neon is not accepted as modifier, please use [no]simd instead">; 307def err_drv_invalid_omp_target : Error<"OpenMP target is invalid: '%0'">; 308def err_drv_incompatible_omp_arch : Error<"OpenMP target architecture '%0' pointer size is incompatible with host '%1'">; 309def err_drv_omp_host_ir_file_not_found : Error< 310 "provided host compiler IR file '%0' is required to generate code for OpenMP " 311 "target regions but cannot be found">; 312def err_drv_omp_host_target_not_supported : Error< 313 "target '%0' is not a supported OpenMP host target">; 314def err_drv_expecting_fopenmp_with_fopenmp_targets : Error< 315 "'-fopenmp-targets' must be used in conjunction with a '-fopenmp' option " 316 "compatible with offloading; e.g., '-fopenmp=libomp' or '-fopenmp=libiomp5'">; 317def err_drv_failed_to_deduce_target_from_arch : Error< 318 "failed to deduce triple for target architecture '%0'; specify the triple " 319 "using '-fopenmp-targets' and '-Xopenmp-target' instead.">; 320def err_drv_omp_offload_target_missingbcruntime : Error< 321 "no library '%0' found in the default clang lib directory or in LIBRARY_PATH" 322 "; use '--libomptarget-%1-bc-path' to specify %1 bitcode library">; 323def err_drv_omp_offload_target_bcruntime_not_found : Error< 324 "bitcode library '%0' does not exist">; 325def err_drv_omp_offload_target_cuda_version_not_support : Error< 326 "NVPTX target requires CUDA 9.2 or above; CUDA %0 detected">; 327def warn_drv_omp_offload_target_duplicate : Warning< 328 "OpenMP offloading target '%0' is similar to target '%1' already specified; " 329 "will be ignored">, InGroup<OpenMPTarget>; 330def err_drv_unsupported_embed_bitcode 331 : Error<"%0 is not supported with -fembed-bitcode">; 332def err_drv_bitcode_unsupported_on_toolchain : Error< 333 "-fembed-bitcode is not supported on versions of iOS prior to 6.0">; 334def err_drv_negative_columns : Error< 335 "invalid value '%1' in '%0', value must be 'none' or a positive integer">; 336def err_drv_small_columns : Error< 337 "invalid value '%1' in '%0', value must be '%2' or greater">; 338 339def err_drv_invalid_malign_branch_EQ : Error< 340 "invalid argument '%0' to -malign-branch=; each element must be one of: %1">; 341 342def warn_O4_is_O3 : Warning<"-O4 is equivalent to -O3">, InGroup<Deprecated>; 343def warn_drv_optimization_value : Warning<"optimization level '%0' is not supported; using '%1%2' instead">, 344 InGroup<InvalidCommandLineArgument>; 345def warn_ignored_gcc_optimization : Warning<"optimization flag '%0' is not supported">, 346 InGroup<IgnoredOptimizationArgument>; 347def warn_ignored_clang_option : Warning<"the flag '%0' has been deprecated and will be ignored">, 348 InGroup<UnusedCommandLineArgument>; 349def warn_drv_unsupported_opt_for_target : Warning< 350 "optimization flag '%0' is not supported for target '%1'">, 351 InGroup<IgnoredOptimizationArgument>; 352def warn_drv_unsupported_debug_info_opt_for_target : Warning< 353 "debug information option '%0' is not supported for target '%1'">, 354 InGroup<UnsupportedTargetOpt>; 355def warn_drv_dwarf_version_limited_by_target : Warning< 356 "debug information option '%0' is not supported; requires DWARF-%2 but " 357 "target '%1' only provides DWARF-%3">, 358 InGroup<UnsupportedTargetOpt>; 359def warn_c_kext : Warning< 360 "ignoring -fapple-kext which is valid for C++ and Objective-C++ only">; 361def warn_ignoring_fdiscard_for_bitcode : Warning< 362 "ignoring -fdiscard-value-names for LLVM Bitcode">, 363 InGroup<UnusedCommandLineArgument>; 364def warn_drv_input_file_unused : Warning< 365 "%0: '%1' input unused%select{ when '%3' is present|}2">, 366 InGroup<UnusedCommandLineArgument>; 367def warn_drv_input_file_unused_by_cpp : Warning< 368 "%0: '%1' input unused in cpp mode">, 369 InGroup<UnusedCommandLineArgument>; 370def warn_drv_preprocessed_input_file_unused : Warning< 371 "%0: previously preprocessed input%select{ unused when '%2' is present|}1">, 372 InGroup<UnusedCommandLineArgument>; 373def warn_drv_unused_argument : Warning< 374 "argument unused during compilation: '%0'">, 375 InGroup<UnusedCommandLineArgument>; 376def warn_drv_unused_x : Warning< 377 "'-x %0' after last input file has no effect">, 378 InGroup<UnusedCommandLineArgument>; 379def warn_drv_empty_joined_argument : Warning< 380 "joined argument expects additional value: '%0'">, 381 InGroup<UnusedCommandLineArgument>; 382def warn_drv_diagnostics_hotness_requires_pgo : Warning< 383 "argument '%0' requires profile-guided optimization information">, 384 InGroup<UnusedCommandLineArgument>; 385def warn_drv_diagnostics_misexpect_requires_pgo : Warning< 386 "argument '%0' requires profile-guided optimization information">, 387 InGroup<UnusedCommandLineArgument>; 388def warn_drv_clang_unsupported : Warning< 389 "the clang compiler does not support '%0'">; 390def warn_drv_deprecated_arg : Warning< 391 "argument '%0' is deprecated, use '%1' instead">, InGroup<Deprecated>; 392def warn_drv_assuming_mfloat_abi_is : Warning< 393 "unknown platform, assuming -mfloat-abi=%0">; 394def warn_drv_unsupported_float_abi_by_lib : Warning< 395 "float ABI '%0' is not supported by current library">, 396 InGroup<DiagGroup<"unsupported-abi">>; 397def warn_ignoring_ftabstop_value : Warning< 398 "ignoring invalid -ftabstop value '%0', using default value %1">; 399def warn_drv_overriding_flag_option : Warning< 400 "overriding '%0' option with '%1'">, 401 InGroup<DiagGroup<"overriding-t-option">>; 402def warn_drv_treating_input_as_cxx : Warning< 403 "treating '%0' input as '%1' when in C++ mode, this behavior is deprecated">, 404 InGroup<Deprecated>; 405def warn_drv_pch_not_first_include : Warning< 406 "precompiled header '%0' was ignored because '%1' is not first '-include'">; 407def warn_missing_sysroot : Warning<"no such sysroot directory: '%0'">, 408 InGroup<DiagGroup<"missing-sysroot">>; 409def warn_incompatible_sysroot : Warning<"using sysroot for '%0' but targeting '%1'">, 410 InGroup<DiagGroup<"incompatible-sysroot">>; 411def warn_debug_compression_unavailable : Warning<"cannot compress debug sections (zlib not enabled)">, 412 InGroup<DiagGroup<"debug-compression-unavailable">>; 413def warn_drv_disabling_vptr_no_rtti_default : Warning< 414 "implicitly disabling vptr sanitizer because rtti wasn't enabled">, 415 InGroup<AutoDisableVptrSanitizer>; 416def warn_drv_object_size_disabled_O0 : Warning< 417 "the object size sanitizer has no effect at -O0, but is explicitly enabled: %0">, 418 InGroup<InvalidCommandLineArgument>, DefaultWarnNoWerror; 419def warn_ignoring_verify_debuginfo_preserve_export : Warning< 420 "ignoring -fverify-debuginfo-preserve-export=%0 because " 421 "-fverify-debuginfo-preserve wasn't enabled">, 422 InGroup<UnusedCommandLineArgument>; 423def warn_unsupported_branch_protection: Warning < 424 "invalid branch protection option '%0' in '%1'">, InGroup<BranchProtection>; 425def err_sls_hardening_arm_not_supported : Error< 426 "-mharden-sls is only supported on armv7-a or later">; 427 428def note_drv_command_failed_diag_msg : Note< 429 "diagnostic msg: %0">; 430def note_drv_t_option_is_global : Note< 431 "the last '/TC' or '/TP' option takes precedence over earlier instances">; 432def note_drv_address_sanitizer_debug_runtime : Note< 433 "AddressSanitizer doesn't support linking with debug runtime libraries yet">; 434def note_drv_use_standard : Note<"use '%0'" 435 "%select{| or '%3'|, '%3', or '%4'|, '%3', '%4', or '%5'}2 " 436 "for '%1' standard">; 437 438def err_analyzer_config_no_value : Error< 439 "analyzer-config option '%0' has a key but no value">; 440def err_analyzer_config_multiple_values : Error< 441 "analyzer-config option '%0' should contain only one '='">; 442def err_analyzer_config_invalid_input : Error< 443 "invalid input for analyzer-config option '%0', that expects %1 value">; 444def err_analyzer_config_unknown : Error<"unknown analyzer-config '%0'">; 445def err_analyzer_checker_option_unknown : Error< 446 "checker '%0' has no option called '%1'">; 447def err_analyzer_checker_option_invalid_input : Error< 448 "invalid input for checker option '%0', that expects %1">; 449def err_analyzer_checker_incompatible_analyzer_option : Error< 450 "checker cannot be enabled with analyzer option '%0' == %1">; 451def err_analyzer_not_built_with_z3 : Error< 452 "analyzer constraint manager 'z3' is only available if LLVM was built with " 453 "-DLLVM_ENABLE_Z3_SOLVER=ON">; 454def warn_analyzer_deprecated_option : Warning< 455 "analyzer option '%0' is deprecated. This flag will be removed in %1, and " 456 "passing this option will be an error.">, 457 InGroup<DeprecatedStaticAnalyzerFlag>; 458 459def warn_drv_needs_hvx : Warning< 460 "%0 requires HVX, use -mhvx/-mhvx= to enable it">, 461 InGroup<OptionIgnored>; 462def err_drv_needs_hvx : Error< 463 "%0 requires HVX, use -mhvx/-mhvx= to enable it">; 464def err_drv_needs_hvx_version : Error< 465 "%0 is not supported on HVX %1">; 466 467def err_drv_module_header_wrong_kind : Error< 468 "header file '%0' input type '%1' does not match type of prior input " 469 "in module compilation; use '-x %2' to override">; 470def err_drv_modules_validate_once_requires_timestamp : Error< 471 "option '-fmodules-validate-once-per-build-session' requires " 472 "'-fbuild-session-timestamp=<seconds since Epoch>' or '-fbuild-session-file=<file>'">; 473 474def err_test_module_file_extension_format : Error< 475 "-ftest-module-file-extension argument '%0' is not of the required form " 476 "'blockname:major:minor:hashed:user info'">; 477 478def err_drv_extract_api_wrong_kind : Error< 479 "header file '%0' input '%1' does not match the type of prior input " 480 "in api extraction; use '-x %2' to override">; 481 482def warn_slash_u_filename : Warning<"'/U%0' treated as the '/U' option">, 483 InGroup<DiagGroup<"slash-u-filename">>; 484def note_use_dashdash : Note< 485 "use '--' to treat subsequent arguments as filenames">; 486 487def err_drv_ropi_rwpi_incompatible_with_pic : Error< 488 "embedded and GOT-based position independence are incompatible">; 489def err_drv_ropi_incompatible_with_cxx : Error< 490 "ROPI is not compatible with c++">; 491 492def err_stack_tagging_requires_hardware_feature : Error< 493 "'-fsanitize=memtag-stack' requires hardware support (+memtag). For Armv8 or " 494 "Armv9, try compiling with -march=armv8a+memtag or -march=armv9a+memtag">; 495 496def err_cmse_pi_are_incompatible : Error< 497 "cmse is not compatible with %select{RWPI|ROPI}0">; 498 499def warn_target_unsupported_nan2008 : Warning< 500 "ignoring '-mnan=2008' option because the '%0' architecture does not support it">, 501 InGroup<UnsupportedNan>; 502def warn_target_unsupported_nanlegacy : Warning< 503 "ignoring '-mnan=legacy' option because the '%0' architecture does not support it">, 504 InGroup<UnsupportedNan>; 505def warn_target_unsupported_abslegacy : Warning< 506 "ignoring '-mabs=legacy' option because the '%0' architecture does not support it">, 507 InGroup<UnsupportedAbs>; 508def warn_target_unsupported_abs2008 : Warning< 509 "ignoring '-mabs=2008' option because the '%0' architecture does not support it">, 510 InGroup<UnsupportedAbs>; 511def warn_target_unsupported_compact_branches : Warning< 512 "ignoring '-mcompact-branches=' option because the '%0' architecture does not" 513 " support it">, InGroup<UnsupportedCB>; 514def warn_target_unsupported_extension : Warning< 515 "ignoring extension '%0' because the '%1' architecture does not support it">, 516 InGroup<InvalidCommandLineArgument>; 517def warn_drv_unsupported_gpopt : Warning< 518 "ignoring '-mgpopt' option as it cannot be used with %select{|the implicit" 519 " usage of }0-mabicalls">, 520 InGroup<UnsupportedGPOpt>; 521def warn_drv_unsupported_sdata : Warning< 522 "ignoring '-msmall-data-limit=' with -mcmodel=large for -fpic or RV64">, 523 InGroup<OptionIgnored>; 524def warn_drv_unsupported_longcalls : Warning< 525 "ignoring '-mlong-calls' option as it is not currently supported with " 526 "%select{|the implicit usage of }0-mabicalls">, 527 InGroup<OptionIgnored>; 528def warn_drv_unsupported_pic_with_mabicalls : Warning< 529 "ignoring '%0' option as it cannot be used with " 530 "%select{implicit usage of|}1 -mabicalls and the N64 ABI">, 531 InGroup<OptionIgnored>; 532def err_drv_unsupported_noabicalls_pic : Error< 533 "position-independent code requires '-mabicalls'">; 534def err_drv_unsupported_indirect_jump_opt : Error< 535 "'-mindirect-jump=%0' is unsupported with the '%1' architecture">; 536def err_drv_unknown_indirect_jump_opt : Error< 537 "unknown '-mindirect-jump=' option '%0'">; 538def err_drv_unsupported_fpatchable_function_entry_argument : Error< 539 "the second argument of '-fpatchable-function-entry' must be smaller than the first argument">; 540 541def warn_drv_unable_to_find_directory_expected : Warning< 542 "unable to find %0 directory, expected to be in '%1'">, 543 InGroup<InvalidOrNonExistentDirectory>, DefaultIgnore; 544 545def warn_drv_ps_force_pic : Warning< 546 "option '%0' was ignored by the %1 toolchain, using '-fPIC'">, 547 InGroup<OptionIgnored>; 548 549def warn_drv_ps_sdk_dir : Warning< 550 "environment variable '%0' is set, but points to invalid or nonexistent directory '%1'">, 551 InGroup<InvalidOrNonExistentDirectory>; 552 553def err_drv_defsym_invalid_format : Error<"defsym must be of the form: sym=value: %0">; 554def err_drv_defsym_invalid_symval : Error<"value is not an integer: %0">; 555def warn_drv_msvc_not_found : Warning< 556 "unable to find a Visual Studio installation; " 557 "try running Clang from a developer command prompt">, 558 InGroup<DiagGroup<"msvc-not-found">>; 559 560def warn_drv_fuse_ld_path : Warning< 561 "'-fuse-ld=' taking a path is deprecated; use '--ld-path=' instead">, 562 InGroup<FUseLdPath>, DefaultIgnore; 563 564def warn_drv_fine_grained_bitfield_accesses_ignored : Warning< 565 "option '-ffine-grained-bitfield-accesses' cannot be enabled together with a sanitizer; flag ignored">, 566 InGroup<OptionIgnored>; 567 568def note_drv_verify_prefix_spelling : Note< 569 "-verify prefixes must start with a letter and contain only alphanumeric" 570 " characters, hyphens, and underscores">; 571 572def warn_drv_global_isel_incomplete : Warning< 573 "-fglobal-isel support for the '%0' architecture is incomplete">, 574 InGroup<GlobalISel>; 575 576def warn_drv_global_isel_incomplete_opt : Warning< 577 "-fglobal-isel support is incomplete for this architecture at the current optimization level">, 578 InGroup<GlobalISel>; 579 580def warn_drv_moutline_unsupported_opt : Warning< 581 "'%0' does not support '-moutline'; flag ignored">, 582 InGroup<OptionIgnored>; 583 584def warn_drv_moutline_atomics_unsupported_opt : Warning< 585 "'%0' does not support '-%1'; flag ignored">, 586 InGroup<OptionIgnored>; 587 588def warn_drv_darwin_sdk_invalid_settings : Warning< 589 "SDK settings were ignored as 'SDKSettings.json' could not be parsed">, 590 InGroup<DiagGroup<"darwin-sdk-settings">>; 591 592def err_drv_trivial_auto_var_init_zero_disabled : Error< 593 "'-ftrivial-auto-var-init=zero' hasn't been enabled; enable it at your own " 594 "peril for benchmarking purpose only with " 595 "'-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang'">; 596 597def err_drv_trivial_auto_var_init_stop_after_missing_dependency : Error< 598 "'-ftrivial-auto-var-init-stop-after=*' is used without " 599 "'-ftrivial-auto-var-init=zero' or '-ftrivial-auto-var-init=pattern'">; 600 601def err_drv_trivial_auto_var_init_stop_after_invalid_value : Error< 602 "'-ftrivial-auto-var-init-stop-after=*' only accepts positive integers">; 603 604def warn_drv_msp430_hwmult_unsupported : Warning< 605 "the given MCU does not support hardware multiply, but '-mhwmult' is set to " 606 "%0">, InGroup<InvalidCommandLineArgument>; 607def warn_drv_msp430_hwmult_mismatch : Warning< 608 "the given MCU supports %0 hardware multiply, but '-mhwmult' is set to %1">, 609 InGroup<InvalidCommandLineArgument>; 610def warn_drv_msp430_hwmult_no_device : Warning< 611 "no MCU device specified, but '-mhwmult' is set to 'auto', assuming no " 612 "hardware multiply; use '-mmcu' to specify an MSP430 device, or '-mhwmult' " 613 "to set the hardware multiply type explicitly">, 614 InGroup<InvalidCommandLineArgument>; 615 616def warn_drv_libstdcxx_not_found : Warning< 617 "include path for libstdc++ headers not found; pass '-stdlib=libc++' on the " 618 "command line to use the libc++ standard library instead">, 619 InGroup<DiagGroup<"stdlibcxx-not-found">>; 620 621def err_drv_cannot_mix_options : Error<"cannot specify '%1' along with '%0'">; 622 623def err_drv_invalid_object_mode : Error< 624 "OBJECT_MODE setting %0 is not recognized and is not a valid setting">; 625 626def err_aix_unsupported_tls_model : Error<"TLS model '%0' is not yet supported on AIX">; 627 628def err_invalid_cxx_abi : Error<"invalid C++ ABI name '%0'">; 629def err_unsupported_cxx_abi : Error<"C++ ABI '%0' is not supported on target triple '%1'">; 630 631def note_cc1_round_trip_original : Note<"original arguments in round-trip: %0">; 632def note_cc1_round_trip_generated : Note< 633 "generated arguments #%0 in round-trip: %1">; 634def remark_cc1_round_trip_generated : Remark< 635 "generated arguments #%0 in round-trip: %1">, InGroup<RoundTripCC1Args>; 636def err_cc1_round_trip_fail_then_ok : Error< 637 "original arguments parse failed, then succeeded in round-trip">; 638def err_cc1_round_trip_ok_then_fail : Error< 639 "generated arguments parse failed in round-trip">; 640def err_cc1_round_trip_mismatch : Error< 641 "generated arguments do not match in round-trip">; 642def err_cc1_unbounded_vscale_min : Error< 643 "minimum vscale must be an unsigned integer greater than 0">; 644 645def err_drv_ssp_missing_offset_argument : Error< 646 "'%0' is used without '-mstack-protector-guard-offset', and there is no default">; 647 648def err_drv_only_one_offload_target_supported : Error< 649 "only one offload target is supported">; 650def err_drv_invalid_or_unsupported_offload_target : Error< 651 "invalid or unsupported offload target: '%0'">; 652def err_drv_cuda_offload_only_emit_bc : Error< 653 "CUDA offload target is supported only along with --emit-llvm">; 654 655def warn_drv_jmc_requires_debuginfo : Warning< 656 "%0 requires debug info. Use %1 or debug options that enable debugger's " 657 "stepping function; option ignored">, 658 InGroup<OptionIgnored>; 659 660def warn_drv_fjmc_for_elf_only : Warning< 661 "-fjmc works only for ELF; option ignored">, 662 InGroup<OptionIgnored>; 663 664def err_drv_target_variant_invalid : Error< 665 "unsupported '%0' value '%1'; use 'ios-macabi' instead">; 666 667def err_drv_invalid_directx_shader_module : Error< 668 "invalid profile : %0">; 669def err_drv_dxc_missing_target_profile : Error< 670 "target profile option (-T) is missing">; 671 672def err_drv_invalid_range_dxil_validator_version : Error< 673 "invalid validator version : %0\n" 674 "Validator version must be less than or equal to current internal version.">; 675def err_drv_invalid_format_dxil_validator_version : Error< 676 "invalid validator version : %0\n" 677 "Format of validator version is \"<major>.<minor>\" (ex:\"1.4\").">; 678def err_drv_invalid_empty_dxil_validator_version : Error< 679 "invalid validator version : %0\n" 680 "If validator major version is 0, minor version must also be 0.">; 681 682def warn_drv_sarif_format_unstable : Warning< 683 "diagnostic formatting in SARIF mode is currently unstable">, 684 InGroup<DiagGroup<"sarif-format-unstable">>; 685 686def err_drv_riscv_unsupported_with_linker_relaxation : Error< 687 "%0 is unsupported with RISC-V linker relaxation (-mrelax)">; 688} 689