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