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_option_argument : Error< 20 "unsupported argument '%1' to option '%0'">; 21def err_drv_unknown_stdin_type : Error< 22 "-E or -x required when input is from standard input">; 23def err_drv_unknown_stdin_type_clang_cl : Error< 24 "use /Tc or /Tp to set input type for standard input">; 25def err_drv_unknown_language : Error<"language not recognized: '%0'">; 26def err_drv_invalid_arch_name : Error< 27 "invalid arch name '%0'">; 28def err_drv_invalid_riscv_arch_name : Error< 29 "invalid arch name '%0', %1">; 30def err_drv_invalid_riscv_ext_arch_name : Error< 31 "invalid arch name '%0', %1 '%2'">; 32def warn_drv_avr_mcu_not_specified : Warning< 33 "no target microcontroller specified on command line, cannot " 34 "link standard libraries, please pass -mmcu=<mcu name>">, 35 InGroup<AVRRtlibLinkingQuirks>; 36def warn_drv_avr_gcc_not_found: Warning< 37 "no avr-gcc installation can be found on the system, " 38 "cannot link standard libraries">, 39 InGroup<AVRRtlibLinkingQuirks>; 40def warn_drv_avr_libc_not_found: Warning< 41 "no avr-libc installation can be found on the system, " 42 "cannot link standard libraries">, 43 InGroup<AVRRtlibLinkingQuirks>; 44def warn_drv_avr_family_linking_stdlibs_not_implemented: Warning< 45 "support for linking stdlibs for microcontroller '%0' is not implemented">, 46 InGroup<AVRRtlibLinkingQuirks>; 47def warn_drv_avr_linker_section_addresses_not_implemented: Warning< 48 "support for passing the data section address to the linker for " 49 "microcontroller '%0' is not implemented">, 50 InGroup<AVRRtlibLinkingQuirks>; 51def warn_drv_avr_stdlib_not_linked: Warning< 52 "standard library not linked and so no interrupt vector table or " 53 "compiler runtime routines will be linked">, 54 InGroup<AVRRtlibLinkingQuirks>; 55def err_drv_cuda_bad_gpu_arch : Error<"Unsupported CUDA gpu architecture: %0">; 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 libdevice.">; 62 63def err_drv_no_rocm_device_lib : Error< 64 "cannot find ROCm device library%select{| for %1}0. Provide its path via --rocm-path or " 65 "--rocm-device-lib-path, or pass -nogpulib to build without ROCm device library.">; 66def err_drv_no_hip_runtime : Error< 67 "cannot find HIP runtime. Provide its path via --rocm-path, or pass " 68 "-nogpuinc to build without HIP runtime.">; 69 70def err_drv_cuda_version_unsupported : Error< 71 "GPU arch %0 is supported by CUDA versions between %1 and %2 (inclusive), " 72 "but installation at %3 is %4. Use --cuda-path to specify a different CUDA " 73 "install, pass a different GPU arch with --cuda-gpu-arch, or pass " 74 "--no-cuda-version-check.">; 75def warn_drv_unknown_cuda_version: Warning< 76 "Unknown CUDA version. %0 Assuming the latest supported version %1">, 77 InGroup<CudaUnknownVersion>; 78def err_drv_cuda_host_arch : Error<"unsupported architecture '%0' for host compilation.">; 79def err_drv_mix_cuda_hip : Error<"Mixed Cuda and HIP compilation is not supported.">; 80def err_drv_bad_target_id : Error<"Invalid target ID: %0 (A target ID is a processor name " 81 "followed by an optional list of predefined features post-fixed by a plus or minus sign deliminated " 82 "by colon, e.g. 'gfx908:sramecc+:xnack-')">; 83def err_drv_bad_offload_arch_combo : Error<"Invalid offload arch combinations: %0 and %1 (For a specific " 84 "processor, a feature should either exist in all offload archs, or not exist in any offload archs)">; 85def err_drv_invalid_thread_model_for_target : Error< 86 "invalid thread model '%0' in '%1' for this target">; 87def err_drv_invalid_linker_name : Error< 88 "invalid linker name in argument '%0'">; 89def err_drv_invalid_rtlib_name : Error< 90 "invalid runtime library name in argument '%0'">; 91def err_drv_unsupported_rtlib_for_platform : Error< 92 "unsupported runtime library '%0' for platform '%1'">; 93def err_drv_invalid_unwindlib_name : Error< 94 "invalid unwind library name in argument '%0'">; 95def err_drv_incompatible_unwindlib : Error< 96 "--rtlib=libgcc requires --unwindlib=libgcc">; 97def err_drv_invalid_stdlib_name : Error< 98 "invalid library name in argument '%0'">; 99def err_drv_invalid_output_with_multiple_archs : Error< 100 "cannot use '%0' output with multiple -arch options">; 101def err_drv_no_input_files : Error<"no input files">; 102def err_drv_use_of_Z_option : Error< 103 "unsupported use of internal gcc -Z option '%0'">; 104def err_drv_output_argument_with_multiple_files : Error< 105 "cannot specify -o when generating multiple output files">; 106def err_drv_out_file_argument_with_multiple_sources : Error< 107 "cannot specify '%0%1' when compiling multiple source files">; 108def err_no_external_assembler : Error< 109 "there is no external assembler that can be used on this platform">; 110def err_drv_unable_to_remove_file : Error< 111 "unable to remove file: %0">; 112def err_drv_unable_to_set_working_directory : Error < 113 "unable to set working directory: %0">; 114def err_drv_command_failure : Error< 115 "unable to execute command: %0">; 116def err_drv_invalid_darwin_version : Error< 117 "invalid Darwin version number: %0">; 118def err_drv_invalid_diagnotics_hotness_threshold : Error< 119 "invalid argument in '%0', only integer or 'auto' is supported">; 120def err_drv_missing_argument : Error< 121 "argument to '%0' is missing (expected %1 value%s1)">; 122def err_drv_invalid_Xarch_argument_with_args : Error< 123 "invalid Xarch argument: '%0', options requiring arguments are unsupported">; 124def err_drv_Xopenmp_target_missing_triple : Error< 125 "cannot deduce implicit triple value for -Xopenmp-target, specify triple using -Xopenmp-target=<triple>">; 126def err_drv_invalid_Xopenmp_target_with_args : Error< 127 "invalid -Xopenmp-target argument: '%0', options requiring arguments are unsupported">; 128def err_drv_argument_only_allowed_with : Error< 129 "invalid argument '%0' only allowed with '%1'">; 130def err_drv_argument_not_allowed_with : Error< 131 "invalid argument '%0' not allowed with '%1'">; 132def err_drv_invalid_version_number : Error< 133 "invalid version number in '%0'">; 134def err_drv_no_linker_llvm_support : Error< 135 "'%0': unable to pass LLVM bit-code files to linker">; 136def err_drv_no_ast_support : Error< 137 "'%0': unable to use AST files with this tool">; 138def err_drv_no_module_support : Error< 139 "'%0': unable to use module files with this tool">; 140def err_drv_clang_unsupported : Error< 141 "the clang compiler does not support '%0'">; 142def err_drv_clang_unsupported_opt_cxx_darwin_i386 : Error< 143 "the clang compiler does not support '%0' for C++ on Darwin/i386">; 144def err_drv_clang_unsupported_opt_pg_darwin: Error< 145 "the clang compiler does not support -pg option on %select{Darwin|versions of OS X 10.9 and later}0">; 146def err_drv_clang_unsupported_opt_faltivec : Error< 147 "the clang compiler does not support '%0', %1">; 148def err_drv_command_failed : Error< 149 "%0 command failed with exit code %1 (use -v to see invocation)">; 150def err_drv_compilationdatabase : Error< 151 "compilation database '%0' could not be opened: %1">; 152def err_drv_command_signalled : Error< 153 "%0 command failed due to signal (use -v to see invocation)">; 154def err_drv_force_crash : Error< 155 "failing because %select{environment variable 'FORCE_CLANG_DIAGNOSTICS_CRASH' is set|'-gen-reproducer' is used}0">; 156def err_drv_invalid_mfloat_abi : Error< 157 "invalid float ABI '%0'">; 158def err_drv_invalid_mtp : Error< 159 "invalid thread pointer reading mode '%0'">; 160def err_drv_missing_arg_mtp : Error< 161 "missing argument to '%0'">; 162def err_drv_invalid_libcxx_deployment : Error< 163 "invalid deployment target for -stdlib=libc++ (requires %0 or later)">; 164def err_drv_invalid_argument_to_option : Error< 165 "invalid argument '%0' to -%1">; 166def err_drv_malformed_sanitizer_blacklist : Error< 167 "malformed sanitizer blacklist: '%0'">; 168def err_drv_malformed_sanitizer_coverage_whitelist : Error< 169 "malformed sanitizer coverage whitelist: '%0'">; 170def err_drv_malformed_sanitizer_coverage_blacklist : Error< 171 "malformed sanitizer coverage blacklist: '%0'">; 172def err_drv_duplicate_config : Error< 173 "no more than one option '--config' is allowed">; 174def err_drv_config_file_not_exist : Error< 175 "configuration file '%0' does not exist">; 176def err_drv_config_file_not_found : Error< 177 "configuration file '%0' cannot be found">; 178def note_drv_config_file_searched_in : Note< 179 "was searched for in the directory: %0">; 180def err_drv_cannot_read_config_file : Error< 181 "cannot read configuration file '%0'">; 182def err_drv_nested_config_file: Error< 183 "option '--config' is not allowed inside configuration file">; 184def err_drv_arg_requires_bitcode_input: Error< 185 "option '%0' requires input to be LLVM bitcode">; 186 187def err_target_unsupported_arch 188 : Error<"the target architecture '%0' is not supported by the target '%1'">; 189def err_cpu_unsupported_isa 190 : Error<"CPU '%0' does not support '%1' execution mode">; 191def err_arch_unsupported_isa 192 : Error<"Architecture '%0' does not support '%1' execution mode">; 193 194def err_drv_I_dash_not_supported : Error< 195 "'%0' not supported, please use -iquote instead">; 196def err_drv_unknown_argument : Error<"unknown argument: '%0'">; 197def err_drv_unknown_argument_with_suggestion : Error< 198 "unknown argument '%0'; did you mean '%1'?">; 199def warn_drv_unknown_argument_clang_cl : Warning< 200 "unknown argument ignored in clang-cl: '%0'">, 201 InGroup<UnknownArgument>; 202def warn_drv_unknown_argument_clang_cl_with_suggestion : Warning< 203 "unknown argument ignored in clang-cl '%0'; did you mean '%1'?">, 204 InGroup<UnknownArgument>; 205 206def warn_drv_ycyu_different_arg_clang_cl : Warning< 207 "support for '/Yc' and '/Yu' with different filenames not implemented yet; flags ignored">, 208 InGroup<ClangClPch>; 209def warn_drv_yc_multiple_inputs_clang_cl : Warning< 210 "support for '/Yc' with more than one source file not implemented yet; flag ignored">, 211 InGroup<ClangClPch>; 212 213def err_drv_dllexport_inlines_and_fallback : Error< 214 "option '/Zc:dllexportInlines-' is ABI-changing and not compatible with '/fallback'">; 215 216def err_drv_invalid_value : Error<"invalid value '%1' in '%0'">; 217def err_drv_invalid_int_value : Error<"invalid integral value '%1' in '%0'">; 218def err_drv_invalid_value_with_suggestion : Error<"invalid value '%1' in '%0','%2'">; 219def err_drv_invalid_remap_file : Error< 220 "invalid option '%0' not of the form <from-file>;<to-file>">; 221def err_drv_invalid_gcc_output_type : Error< 222 "invalid output type '%0' for use with gcc tool">; 223def err_drv_cc_print_options_failure : Error< 224 "unable to open CC_PRINT_OPTIONS file: %0">; 225def err_drv_lto_without_lld : Error<"LTO requires -fuse-ld=lld">; 226def err_drv_preamble_format : Error< 227 "incorrect format for -preamble-bytes=N,END">; 228def warn_invalid_ios_deployment_target : Warning< 229 "invalid iOS deployment version '%0', iOS 10 is the maximum deployment " 230 "target for 32-bit targets">, InGroup<InvalidIOSDeploymentTarget>, 231 DefaultError; 232def err_drv_conflicting_deployment_targets : Error< 233 "conflicting deployment targets, both '%0' and '%1' are present in environment">; 234def err_arc_unsupported_on_runtime : Error< 235 "-fobjc-arc is not supported on platforms using the legacy runtime">; 236def err_arc_unsupported_on_toolchain : Error< // feel free to generalize this 237 "-fobjc-arc is not supported on versions of OS X prior to 10.6">; 238def err_objc_weak_with_gc : Error< 239 "-fobjc-weak is not supported in Objective-C garbage collection">; 240def err_objc_weak_unsupported : Error< 241 "-fobjc-weak is not supported on the current deployment target">; 242def err_drv_mg_requires_m_or_mm : Error< 243 "option '-MG' requires '-M' or '-MM'">; 244def err_drv_unknown_objc_runtime : Error< 245 "unknown or ill-formed Objective-C runtime '%0'">; 246def err_drv_invalid_cf_runtime_abi 247 : Error<"invalid CoreFoundation Runtime ABI '%0'; must be one of " 248 "'objc', 'standalone', 'swift', 'swift-5.0', 'swift-4.2', 'swift-4.1'">; 249def err_drv_gnustep_objc_runtime_incompatible_binary : Error< 250 "GNUstep Objective-C runtime version %0 incompatible with target binary format">; 251def err_drv_emit_llvm_link : Error< 252 "-emit-llvm cannot be used when linking">; 253def err_drv_optimization_remark_pattern : Error< 254 "in pattern '%1': %0">; 255def err_drv_optimization_remark_format : Error< 256 "unknown remark serializer format: '%0'">; 257def err_drv_no_neon_modifier : Error<"[no]neon is not accepted as modifier, please use [no]simd instead">; 258def err_drv_invalid_omp_target : Error<"OpenMP target is invalid: '%0'">; 259def err_drv_incompatible_omp_arch : Error<"OpenMP target architecture '%0' pointer size is incompatible with host '%1'">; 260def err_drv_omp_host_ir_file_not_found : Error< 261 "The provided host compiler IR file '%0' is required to generate code for OpenMP target regions but cannot be found.">; 262def err_drv_omp_host_target_not_supported : Error< 263 "The target '%0' is not a supported OpenMP host target.">; 264def err_drv_expecting_fopenmp_with_fopenmp_targets : Error< 265 "The option -fopenmp-targets must be used in conjunction with a -fopenmp option compatible with offloading, please use -fopenmp=libomp or -fopenmp=libiomp5.">; 266def err_drv_omp_offload_target_missingbcruntime : Error< 267 "No library '%0' found in the default clang lib directory or in LIBRARY_PATH. Please use --libomptarget-nvptx-bc-path to specify nvptx bitcode library.">; 268def err_drv_omp_offload_target_bcruntime_not_found : Error<"Bitcode library '%0' does not exist.">; 269def warn_drv_omp_offload_target_duplicate : Warning< 270 "The OpenMP offloading target '%0' is similar to target '%1' already specified - will be ignored.">, 271 InGroup<OpenMPTarget>; 272def err_drv_unsupported_embed_bitcode 273 : Error<"%0 is not supported with -fembed-bitcode">; 274def err_drv_bitcode_unsupported_on_toolchain : Error< 275 "-fembed-bitcode is not supported on versions of iOS prior to 6.0">; 276 277def err_drv_invalid_malign_branch_EQ : Error< 278 "invalid argument '%0' to -malign-branch=; each element must be one of: %1">; 279 280def warn_O4_is_O3 : Warning<"-O4 is equivalent to -O3">, InGroup<Deprecated>; 281def warn_drv_optimization_value : Warning<"optimization level '%0' is not supported; using '%1%2' instead">, 282 InGroup<InvalidCommandLineArgument>; 283def warn_ignored_gcc_optimization : Warning<"optimization flag '%0' is not supported">, 284 InGroup<IgnoredOptimizationArgument>; 285def warn_ignored_clang_option : Warning<"the flag '%0' has been deprecated and will be ignored">, 286 InGroup<UnusedCommandLineArgument>; 287def warn_drv_unsupported_opt_for_target : Warning< 288 "optimization flag '%0' is not supported for target '%1'">, 289 InGroup<IgnoredOptimizationArgument>; 290def warn_drv_unsupported_debug_info_opt_for_target : Warning< 291 "debug information option '%0' is not supported for target '%1'">, 292 InGroup<UnsupportedTargetOpt>; 293def warn_drv_dwarf_version_limited_by_target : Warning< 294 "debug information option '%0' is not supported. It needs DWARF-%2 but target '%1' only provides DWARF-%3.">, 295 InGroup<UnsupportedTargetOpt>; 296def warn_c_kext : Warning< 297 "ignoring -fapple-kext which is valid for C++ and Objective-C++ only">; 298def warn_ignoring_fdiscard_for_bitcode : Warning< 299 "ignoring -fdiscard-value-names for LLVM Bitcode">, 300 InGroup<UnusedCommandLineArgument>; 301def warn_drv_input_file_unused : Warning< 302 "%0: '%1' input unused%select{ when '%3' is present|}2">, 303 InGroup<UnusedCommandLineArgument>; 304def warn_drv_input_file_unused_by_cpp : Warning< 305 "%0: '%1' input unused in cpp mode">, 306 InGroup<UnusedCommandLineArgument>; 307def warn_drv_preprocessed_input_file_unused : Warning< 308 "%0: previously preprocessed input%select{ unused when '%2' is present|}1">, 309 InGroup<UnusedCommandLineArgument>; 310def warn_drv_unused_argument : Warning< 311 "argument unused during compilation: '%0'">, 312 InGroup<UnusedCommandLineArgument>; 313def warn_drv_empty_joined_argument : Warning< 314 "joined argument expects additional value: '%0'">, 315 InGroup<UnusedCommandLineArgument>; 316def warn_drv_diagnostics_hotness_requires_pgo : Warning< 317 "argument '%0' requires profile-guided optimization information">, 318 InGroup<UnusedCommandLineArgument>; 319def warn_drv_clang_unsupported : Warning< 320 "the clang compiler does not support '%0'">; 321def warn_drv_deprecated_arg : Warning< 322 "argument '%0' is deprecated, use '%1' instead">, InGroup<Deprecated>; 323def warn_drv_assuming_mfloat_abi_is : Warning< 324 "unknown platform, assuming -mfloat-abi=%0">; 325def warn_ignoring_ftabstop_value : Warning< 326 "ignoring invalid -ftabstop value '%0', using default value %1">; 327def warn_drv_overriding_flag_option : Warning< 328 "overriding '%0' option with '%1'">, 329 InGroup<DiagGroup<"overriding-t-option">>; 330def warn_drv_treating_input_as_cxx : Warning< 331 "treating '%0' input as '%1' when in C++ mode, this behavior is deprecated">, 332 InGroup<Deprecated>; 333def warn_drv_pch_not_first_include : Warning< 334 "precompiled header '%0' was ignored because '%1' is not first '-include'">; 335def warn_missing_sysroot : Warning<"no such sysroot directory: '%0'">, 336 InGroup<DiagGroup<"missing-sysroot">>; 337def warn_incompatible_sysroot : Warning<"using sysroot for '%0' but targeting '%1'">, 338 InGroup<DiagGroup<"incompatible-sysroot">>; 339def warn_debug_compression_unavailable : Warning<"cannot compress debug sections (zlib not installed)">, 340 InGroup<DiagGroup<"debug-compression-unavailable">>; 341def warn_drv_disabling_vptr_no_rtti_default : Warning< 342 "implicitly disabling vptr sanitizer because rtti wasn't enabled">, 343 InGroup<AutoDisableVptrSanitizer>; 344def warn_drv_object_size_disabled_O0 : Warning< 345 "the object size sanitizer has no effect at -O0, but is explicitly enabled: %0">, 346 InGroup<InvalidCommandLineArgument>, DefaultWarnNoWerror; 347def err_invalid_branch_protection: Error < 348 "invalid branch protection option '%0' in '%1'">; 349def err_invalid_sls_hardening : Error< 350 "invalid sls hardening option '%0' in '%1'">; 351def err_sls_hardening_arm_not_supported : Error< 352 "-mharden-sls is only supported on armv7-a or later">; 353 354def note_drv_command_failed_diag_msg : Note< 355 "diagnostic msg: %0">; 356def note_drv_t_option_is_global : Note< 357 "The last /TC or /TP option takes precedence over earlier instances">; 358def note_drv_address_sanitizer_debug_runtime : Note< 359 "AddressSanitizer doesn't support linking with debug runtime libraries yet">; 360def note_drv_use_standard : Note<"use '%0'" 361 "%select{| or '%3'|, '%3', or '%4'|, '%3', '%4', or '%5'}2 " 362 "for '%1' standard">; 363 364def err_analyzer_config_no_value : Error< 365 "analyzer-config option '%0' has a key but no value">; 366def err_analyzer_config_multiple_values : Error< 367 "analyzer-config option '%0' should contain only one '='">; 368def err_analyzer_config_invalid_input : Error< 369 "invalid input for analyzer-config option '%0', that expects %1 value">; 370def err_analyzer_config_unknown : Error<"unknown analyzer-config '%0'">; 371def err_analyzer_checker_option_unknown : Error< 372 "checker '%0' has no option called '%1'">; 373def err_analyzer_checker_option_invalid_input : Error< 374 "invalid input for checker option '%0', that expects %1">; 375def err_analyzer_checker_incompatible_analyzer_option : Error< 376 "checker cannot be enabled with analyzer option '%0' == %1">; 377 378def err_drv_invalid_hvx_length : Error< 379 "-mhvx-length is not supported without a -mhvx/-mhvx= flag">; 380def warn_drv_vectorize_needs_hvx : Warning< 381 "auto-vectorization requires HVX, use -mhvx to enable it">, 382 InGroup<OptionIgnored>; 383 384def err_drv_module_header_wrong_kind : Error< 385 "header file '%0' input type '%1' does not match type of prior input " 386 "in module compilation; use '-x %2' to override">; 387def err_drv_modules_validate_once_requires_timestamp : Error< 388 "option '-fmodules-validate-once-per-build-session' requires " 389 "'-fbuild-session-timestamp=<seconds since Epoch>' or '-fbuild-session-file=<file>'">; 390 391def err_test_module_file_extension_format : Error< 392 "-ftest-module-file-extension argument '%0' is not of the required form " 393 "'blockname:major:minor:hashed:user info'">; 394 395def warn_drv_invoking_fallback : Warning<"falling back to %0">, 396 InGroup<Fallback>; 397 398def warn_slash_u_filename : Warning<"'/U%0' treated as the '/U' option">, 399 InGroup<DiagGroup<"slash-u-filename">>; 400def note_use_dashdash : Note<"Use '--' to treat subsequent arguments as filenames">; 401 402def err_drv_ropi_rwpi_incompatible_with_pic : Error< 403 "embedded and GOT-based position independence are incompatible">; 404def err_drv_ropi_incompatible_with_cxx : Error< 405 "ROPI is not compatible with c++">; 406 407def err_stack_tagging_requires_hardware_feature : Error< 408 "'-fsanitize=memtag' requires hardware support (+memtag)">; 409 410def err_cmse_pi_are_incompatible : Error< 411 "cmse is not compatible with %select{RWPI|ROPI}0">; 412 413def warn_target_unsupported_nan2008 : Warning< 414 "ignoring '-mnan=2008' option because the '%0' architecture does not support it">, 415 InGroup<UnsupportedNan>; 416def warn_target_unsupported_nanlegacy : Warning< 417 "ignoring '-mnan=legacy' option because the '%0' architecture does not support it">, 418 InGroup<UnsupportedNan>; 419def warn_target_unsupported_abslegacy : Warning< 420 "ignoring '-mabs=legacy' option because the '%0' architecture does not support it">, 421 InGroup<UnsupportedAbs>; 422def warn_target_unsupported_abs2008 : Warning< 423 "ignoring '-mabs=2008' option because the '%0' architecture does not support it">, 424 InGroup<UnsupportedAbs>; 425def warn_target_unsupported_compact_branches : Warning< 426 "ignoring '-mcompact-branches=' option because the '%0' architecture does not" 427 " support it">, InGroup<UnsupportedCB>; 428def warn_target_unsupported_extension : Warning< 429 "ignoring extension '%0' because the '%1' architecture does not support it">, 430 InGroup<InvalidCommandLineArgument>; 431def warn_drv_unsupported_gpopt : Warning< 432 "ignoring '-mgpopt' option as it cannot be used with %select{|the implicit" 433 " usage of }0-mabicalls">, 434 InGroup<UnsupportedGPOpt>; 435def warn_drv_unsupported_sdata : Warning< 436 "ignoring '-msmall-data-limit=' with -mcmodel=large for -fpic or RV64">, 437 InGroup<OptionIgnored>; 438def warn_drv_unsupported_longcalls : Warning< 439 "ignoring '-mlong-calls' option as it is not currently supported with " 440 "%select{|the implicit usage of }0-mabicalls">, 441 InGroup<OptionIgnored>; 442def warn_drv_unsupported_pic_with_mabicalls : Warning< 443 "ignoring '%0' option as it cannot be used with " 444 "%select{implicit usage of|}1 -mabicalls and the N64 ABI">, 445 InGroup<OptionIgnored>; 446def err_drv_unsupported_noabicalls_pic : Error< 447 "position-independent code requires '-mabicalls'">; 448def err_drv_unsupported_indirect_jump_opt : Error< 449 "'-mindirect-jump=%0' is unsupported with the '%1' architecture">; 450def err_drv_unknown_indirect_jump_opt : Error< 451 "unknown '-mindirect-jump=' option '%0'">; 452def err_drv_unsupported_fpatchable_function_entry_argument : Error< 453 "the second argument of '-fpatchable-function-entry' must be smaller than the first argument">; 454 455def warn_drv_unable_to_find_directory_expected : Warning< 456 "unable to find %0 directory, expected to be in '%1'">, 457 InGroup<InvalidOrNonExistentDirectory>, DefaultIgnore; 458 459def warn_drv_ps4_force_pic : Warning< 460 "option '%0' was ignored by the PS4 toolchain, using '-fPIC'">, 461 InGroup<OptionIgnored>; 462 463def warn_drv_ps4_sdk_dir : Warning< 464 "environment variable SCE_ORBIS_SDK_DIR is set, but points to invalid or nonexistent directory '%0'">, 465 InGroup<InvalidOrNonExistentDirectory>; 466 467def err_drv_unsupported_linker : Error<"unsupported value '%0' for -linker option">; 468def err_drv_defsym_invalid_format : Error<"defsym must be of the form: sym=value: %0">; 469def err_drv_defsym_invalid_symval : Error<"Value is not an integer: %0">; 470def warn_drv_msvc_not_found : Warning< 471 "unable to find a Visual Studio installation; " 472 "try running Clang from a developer command prompt">, 473 InGroup<DiagGroup<"msvc-not-found">>; 474 475def warn_drv_fuse_ld_path : Warning< 476 "'-fuse-ld=' taking a path is deprecated. Use '--ld-path=' instead">, 477 InGroup<FUseLdPath>, DefaultIgnore; 478 479def warn_drv_fine_grained_bitfield_accesses_ignored : Warning< 480 "option '-ffine-grained-bitfield-accesses' cannot be enabled together with a sanitizer; flag ignored">, 481 InGroup<OptionIgnored>; 482 483def note_drv_verify_prefix_spelling : Note< 484 "-verify prefixes must start with a letter and contain only alphanumeric" 485 " characters, hyphens, and underscores">; 486 487def warn_drv_global_isel_incomplete : Warning< 488 "-fglobal-isel support for the '%0' architecture is incomplete">, 489 InGroup<GlobalISel>; 490 491def warn_drv_global_isel_incomplete_opt : Warning< 492 "-fglobal-isel support is incomplete for this architecture at the current optimization level">, 493 InGroup<GlobalISel>; 494 495def warn_drv_moutline_unsupported_opt : Warning< 496 "The '%0' architecture does not support -moutline; flag ignored">, 497 InGroup<OptionIgnored>; 498 499def warn_drv_moutline_atomics_unsupported_opt : Warning< 500 "The '%0' architecture does not support -moutline-atomics; flag ignored">, 501 InGroup<OptionIgnored>; 502 503def warn_drv_darwin_sdk_invalid_settings : Warning< 504 "SDK settings were ignored as 'SDKSettings.json' could not be parsed">, 505 InGroup<DiagGroup<"darwin-sdk-settings">>; 506 507def err_drv_trivial_auto_var_init_zero_disabled : Error< 508 "-ftrivial-auto-var-init=zero hasn't been enabled. Enable it at your own peril for benchmarking purpose only with " 509 "-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang">; 510 511def err_drv_trivial_auto_var_init_stop_after_missing_dependency : Error< 512 "-ftrivial-auto-var-init-stop-after=* is used without -ftrivial-auto-var-init=zero or -ftrivial-auto-var-init=pattern.">; 513 514def err_drv_trivial_auto_var_init_stop_after_invalid_value : Error< 515 "-ftrivial-auto-var-init-stop-after=* only accepts positive integers.">; 516 517def warn_drv_msp430_hwmult_unsupported : Warning<"the given MCU does not " 518 "support hardware multiply, but -mhwmult is set to %0.">, 519 InGroup<InvalidCommandLineArgument>; 520def warn_drv_msp430_hwmult_mismatch : Warning<"the given MCU supports %0 " 521 "hardware multiply, but -mhwmult is set to %1.">, 522 InGroup<InvalidCommandLineArgument>; 523def warn_drv_msp430_hwmult_no_device : Warning<"no MCU device specified, but " 524 "'-mhwmult' is set to 'auto', assuming no hardware multiply. Use -mmcu to " 525 "specify a MSP430 device, or -mhwmult to set hardware multiply type " 526 "explicitly.">, InGroup<InvalidCommandLineArgument>; 527 528def warn_drv_libstdcxx_not_found : Warning< 529 "include path for libstdc++ headers not found; pass '-stdlib=libc++' on the " 530 "command line to use the libc++ standard library instead">, 531 InGroup<DiagGroup<"stdlibcxx-not-found">>; 532 533def err_drv_cannot_mix_options : Error<"cannot specify '%1' along with '%0'">; 534 535def err_drv_invalid_object_mode : Error<"OBJECT_MODE setting %0 is not recognized and is not a valid setting.">; 536 537def err_aix_default_altivec_abi : Error< 538 "The default Altivec ABI on AIX is not yet supported, use '-mabi=vec-extabi' for the extended Altivec ABI">; 539} 540