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_drv_conflicting_deployment_targets : Error<
235 "conflicting deployment targets, both '%0' and '%1' are present in environment">;
236def err_arc_unsupported_on_runtime : Error<
237 "-fobjc-arc is not supported on platforms using the legacy runtime">;
238def err_arc_unsupported_on_toolchain : Error< // feel free to generalize this
239 "-fobjc-arc is not supported on versions of OS X prior to 10.6">;
240def err_objc_weak_with_gc : Error<
241 "-fobjc-weak is not supported in Objective-C garbage collection">;
242def err_objc_weak_unsupported : Error<
243 "-fobjc-weak is not supported on the current deployment target">;
244def err_drv_mg_requires_m_or_mm : Error<
245 "option '-MG' requires '-M' or '-MM'">;
246def err_drv_unknown_objc_runtime : Error<
247 "unknown or ill-formed Objective-C runtime '%0'">;
248def err_drv_invalid_cf_runtime_abi
249 : Error<"invalid CoreFoundation Runtime ABI '%0'; must be one of "
250 "'objc', 'standalone', 'swift', 'swift-5.0', 'swift-4.2', 'swift-4.1'">;
251def err_drv_gnustep_objc_runtime_incompatible_binary : Error<
252 "GNUstep Objective-C runtime version %0 incompatible with target binary format">;
253def err_drv_emit_llvm_link : Error<
254 "-emit-llvm cannot be used when linking">;
255def err_drv_optimization_remark_pattern : Error<
256 "in pattern '%1': %0">;
257def err_drv_optimization_remark_format : Error<
258 "unknown remark serializer format: '%0'">;
259def err_drv_no_neon_modifier : Error<"[no]neon is not accepted as modifier, please use [no]simd instead">;
260def err_drv_invalid_omp_target : Error<"OpenMP target is invalid: '%0'">;
261def err_drv_incompatible_omp_arch : Error<"OpenMP target architecture '%0' pointer size is incompatible with host '%1'">;
262def err_drv_omp_host_ir_file_not_found : Error<
263 "The provided host compiler IR file '%0' is required to generate code for OpenMP target regions but cannot be found.">;
264def err_drv_omp_host_target_not_supported : Error<
265 "The target '%0' is not a supported OpenMP host target.">;
266def err_drv_expecting_fopenmp_with_fopenmp_targets : Error<
267 "The option -fopenmp-targets must be used in conjunction with a -fopenmp option compatible with offloading, please use -fopenmp=libomp or -fopenmp=libiomp5.">;
268def err_drv_omp_offload_target_missingbcruntime : Error<
269 "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.">;
270def err_drv_omp_offload_target_bcruntime_not_found : Error<"Bitcode library '%0' does not exist.">;
271def err_drv_omp_offload_target_cuda_version_not_support : Error<"NVPTX target requires CUDA 9.2 or above. CUDA %0 is detected.">;
272def warn_drv_omp_offload_target_duplicate : Warning<
273 "The OpenMP offloading target '%0' is similar to target '%1' already specified - will be ignored.">,
274 InGroup<OpenMPTarget>;
275def err_drv_unsupported_embed_bitcode
276 : Error<"%0 is not supported with -fembed-bitcode">;
277def err_drv_bitcode_unsupported_on_toolchain : Error<
278 "-fembed-bitcode is not supported on versions of iOS prior to 6.0">;
279def err_drv_negative_columns : Error<
280 "invalid value '%1' in '%0', value must be 'none' or a positive integer">;
281def err_drv_small_columns : Error<
282 "invalid value '%1' in '%0', value must be '%2' or greater">;
283
284def err_drv_invalid_malign_branch_EQ : Error<
285 "invalid argument '%0' to -malign-branch=; each element must be one of: %1">;
286
287def warn_O4_is_O3 : Warning<"-O4 is equivalent to -O3">, InGroup<Deprecated>;
288def warn_drv_optimization_value : Warning<"optimization level '%0' is not supported; using '%1%2' instead">,
289 InGroup<InvalidCommandLineArgument>;
290def warn_ignored_gcc_optimization : Warning<"optimization flag '%0' is not supported">,
291 InGroup<IgnoredOptimizationArgument>;
292def warn_ignored_clang_option : Warning<"the flag '%0' has been deprecated and will be ignored">,
293 InGroup<UnusedCommandLineArgument>;
294def warn_drv_unsupported_opt_for_target : Warning<
295 "optimization flag '%0' is not supported for target '%1'">,
296 InGroup<IgnoredOptimizationArgument>;
297def warn_drv_unsupported_debug_info_opt_for_target : Warning<
298 "debug information option '%0' is not supported for target '%1'">,
299 InGroup<UnsupportedTargetOpt>;
300def warn_drv_dwarf_version_limited_by_target : Warning<
301 "debug information option '%0' is not supported. It needs DWARF-%2 but target '%1' only provides DWARF-%3.">,
302 InGroup<UnsupportedTargetOpt>;
303def warn_c_kext : Warning<
304 "ignoring -fapple-kext which is valid for C++ and Objective-C++ only">;
305def warn_ignoring_fdiscard_for_bitcode : Warning<
306 "ignoring -fdiscard-value-names for LLVM Bitcode">,
307 InGroup<UnusedCommandLineArgument>;
308def warn_drv_input_file_unused : Warning<
309 "%0: '%1' input unused%select{ when '%3' is present|}2">,
310 InGroup<UnusedCommandLineArgument>;
311def warn_drv_input_file_unused_by_cpp : Warning<
312 "%0: '%1' input unused in cpp mode">,
313 InGroup<UnusedCommandLineArgument>;
314def warn_drv_preprocessed_input_file_unused : Warning<
315 "%0: previously preprocessed input%select{ unused when '%2' is present|}1">,
316 InGroup<UnusedCommandLineArgument>;
317def warn_drv_unused_argument : Warning<
318 "argument unused during compilation: '%0'">,
319 InGroup<UnusedCommandLineArgument>;
320def warn_drv_empty_joined_argument : Warning<
321 "joined argument expects additional value: '%0'">,
322 InGroup<UnusedCommandLineArgument>;
323def warn_drv_diagnostics_hotness_requires_pgo : Warning<
324 "argument '%0' requires profile-guided optimization information">,
325 InGroup<UnusedCommandLineArgument>;
326def warn_drv_clang_unsupported : Warning<
327 "the clang compiler does not support '%0'">;
328def warn_drv_deprecated_arg : Warning<
329 "argument '%0' is deprecated, use '%1' instead">, InGroup<Deprecated>;
330def warn_drv_assuming_mfloat_abi_is : Warning<
331 "unknown platform, assuming -mfloat-abi=%0">;
332def warn_ignoring_ftabstop_value : Warning<
333 "ignoring invalid -ftabstop value '%0', using default value %1">;
334def warn_drv_overriding_flag_option : Warning<
335 "overriding '%0' option with '%1'">,
336 InGroup<DiagGroup<"overriding-t-option">>;
337def warn_drv_treating_input_as_cxx : Warning<
338 "treating '%0' input as '%1' when in C++ mode, this behavior is deprecated">,
339 InGroup<Deprecated>;
340def warn_drv_pch_not_first_include : Warning<
341 "precompiled header '%0' was ignored because '%1' is not first '-include'">;
342def warn_missing_sysroot : Warning<"no such sysroot directory: '%0'">,
343 InGroup<DiagGroup<"missing-sysroot">>;
344def warn_incompatible_sysroot : Warning<"using sysroot for '%0' but targeting '%1'">,
345 InGroup<DiagGroup<"incompatible-sysroot">>;
346def warn_debug_compression_unavailable : Warning<"cannot compress debug sections (zlib not installed)">,
347 InGroup<DiagGroup<"debug-compression-unavailable">>;
348def warn_drv_disabling_vptr_no_rtti_default : Warning<
349 "implicitly disabling vptr sanitizer because rtti wasn't enabled">,
350 InGroup<AutoDisableVptrSanitizer>;
351def warn_drv_object_size_disabled_O0 : Warning<
352 "the object size sanitizer has no effect at -O0, but is explicitly enabled: %0">,
353 InGroup<InvalidCommandLineArgument>, DefaultWarnNoWerror;
354def warn_ignoring_verify_debuginfo_preserve_export : Warning<
355 "ignoring -fverify-debuginfo-preserve-export=%0 because "
356 "-fverify-debuginfo-preserve wasn't enabled">,
357 InGroup<UnusedCommandLineArgument>;
358def err_invalid_branch_protection: Error <
359 "invalid branch protection option '%0' in '%1'">;
360def err_invalid_sls_hardening : Error<
361 "invalid sls hardening option '%0' in '%1'">;
362def err_sls_hardening_arm_not_supported : Error<
363 "-mharden-sls is only supported on armv7-a or later">;
364
365def note_drv_command_failed_diag_msg : Note<
366 "diagnostic msg: %0">;
367def note_drv_t_option_is_global : Note<
368 "The last /TC or /TP option takes precedence over earlier instances">;
369def note_drv_address_sanitizer_debug_runtime : Note<
370 "AddressSanitizer doesn't support linking with debug runtime libraries yet">;
371def note_drv_use_standard : Note<"use '%0'"
372 "%select{| or '%3'|, '%3', or '%4'|, '%3', '%4', or '%5'}2 "
373 "for '%1' standard">;
374
375def err_analyzer_config_no_value : Error<
376 "analyzer-config option '%0' has a key but no value">;
377def err_analyzer_config_multiple_values : Error<
378 "analyzer-config option '%0' should contain only one '='">;
379def err_analyzer_config_invalid_input : Error<
380 "invalid input for analyzer-config option '%0', that expects %1 value">;
381def err_analyzer_config_unknown : Error<"unknown analyzer-config '%0'">;
382def err_analyzer_checker_option_unknown : Error<
383 "checker '%0' has no option called '%1'">;
384def err_analyzer_checker_option_invalid_input : Error<
385 "invalid input for checker option '%0', that expects %1">;
386def err_analyzer_checker_incompatible_analyzer_option : Error<
387 "checker cannot be enabled with analyzer option '%0' == %1">;
388
389def err_drv_invalid_hvx_length : Error<
390 "-mhvx-length is not supported without a -mhvx/-mhvx= flag">;
391def warn_drv_vectorize_needs_hvx : Warning<
392 "auto-vectorization requires HVX, use -mhvx to enable it">,
393 InGroup<OptionIgnored>;
394
395def err_drv_module_header_wrong_kind : Error<
396 "header file '%0' input type '%1' does not match type of prior input "
397 "in module compilation; use '-x %2' to override">;
398def err_drv_modules_validate_once_requires_timestamp : Error<
399 "option '-fmodules-validate-once-per-build-session' requires "
400 "'-fbuild-session-timestamp=<seconds since Epoch>' or '-fbuild-session-file=<file>'">;
401
402def err_test_module_file_extension_format : Error<
403 "-ftest-module-file-extension argument '%0' is not of the required form "
404 "'blockname:major:minor:hashed:user info'">;
405
406def warn_slash_u_filename : Warning<"'/U%0' treated as the '/U' option">,
407 InGroup<DiagGroup<"slash-u-filename">>;
408def note_use_dashdash : Note<"Use '--' to treat subsequent arguments as filenames">;
409
410def err_drv_ropi_rwpi_incompatible_with_pic : Error<
411 "embedded and GOT-based position independence are incompatible">;
412def err_drv_ropi_incompatible_with_cxx : Error<
413 "ROPI is not compatible with c++">;
414
415def err_stack_tagging_requires_hardware_feature : Error<
416 "'-fsanitize=memtag' requires hardware support (+memtag)">;
417
418def err_cmse_pi_are_incompatible : Error<
419 "cmse is not compatible with %select{RWPI|ROPI}0">;
420
421def warn_target_unsupported_nan2008 : Warning<
422 "ignoring '-mnan=2008' option because the '%0' architecture does not support it">,
423 InGroup<UnsupportedNan>;
424def warn_target_unsupported_nanlegacy : Warning<
425 "ignoring '-mnan=legacy' option because the '%0' architecture does not support it">,
426 InGroup<UnsupportedNan>;
427def warn_target_unsupported_abslegacy : Warning<
428 "ignoring '-mabs=legacy' option because the '%0' architecture does not support it">,
429 InGroup<UnsupportedAbs>;
430def warn_target_unsupported_abs2008 : Warning<
431 "ignoring '-mabs=2008' option because the '%0' architecture does not support it">,
432 InGroup<UnsupportedAbs>;
433def warn_target_unsupported_compact_branches : Warning<
434 "ignoring '-mcompact-branches=' option because the '%0' architecture does not"
435 " support it">, InGroup<UnsupportedCB>;
436def warn_target_unsupported_extension : Warning<
437 "ignoring extension '%0' because the '%1' architecture does not support it">,
438 InGroup<InvalidCommandLineArgument>;
439def warn_drv_unsupported_gpopt : Warning<
440 "ignoring '-mgpopt' option as it cannot be used with %select{|the implicit"
441 " usage of }0-mabicalls">,
442 InGroup<UnsupportedGPOpt>;
443def warn_drv_unsupported_sdata : Warning<
444 "ignoring '-msmall-data-limit=' with -mcmodel=large for -fpic or RV64">,
445 InGroup<OptionIgnored>;
446def warn_drv_unsupported_longcalls : Warning<
447 "ignoring '-mlong-calls' option as it is not currently supported with "
448 "%select{|the implicit usage of }0-mabicalls">,
449 InGroup<OptionIgnored>;
450def warn_drv_unsupported_pic_with_mabicalls : Warning<
451 "ignoring '%0' option as it cannot be used with "
452 "%select{implicit usage of|}1 -mabicalls and the N64 ABI">,
453 InGroup<OptionIgnored>;
454def err_drv_unsupported_noabicalls_pic : Error<
455 "position-independent code requires '-mabicalls'">;
456def err_drv_unsupported_indirect_jump_opt : Error<
457 "'-mindirect-jump=%0' is unsupported with the '%1' architecture">;
458def err_drv_unknown_indirect_jump_opt : Error<
459 "unknown '-mindirect-jump=' option '%0'">;
460def err_drv_unsupported_fpatchable_function_entry_argument : Error<
461 "the second argument of '-fpatchable-function-entry' must be smaller than the first argument">;
462
463def warn_drv_unable_to_find_directory_expected : Warning<
464 "unable to find %0 directory, expected to be in '%1'">,
465 InGroup<InvalidOrNonExistentDirectory>, DefaultIgnore;
466
467def warn_drv_ps4_force_pic : Warning<
468 "option '%0' was ignored by the PS4 toolchain, using '-fPIC'">,
469 InGroup<OptionIgnored>;
470
471def warn_drv_ps4_sdk_dir : Warning<
472 "environment variable SCE_ORBIS_SDK_DIR is set, but points to invalid or nonexistent directory '%0'">,
473 InGroup<InvalidOrNonExistentDirectory>;
474
475def err_drv_unsupported_linker : Error<"unsupported value '%0' for -linker option">;
476def err_drv_defsym_invalid_format : Error<"defsym must be of the form: sym=value: %0">;
477def err_drv_defsym_invalid_symval : Error<"Value is not an integer: %0">;
478def warn_drv_msvc_not_found : Warning<
479 "unable to find a Visual Studio installation; "
480 "try running Clang from a developer command prompt">,
481 InGroup<DiagGroup<"msvc-not-found">>;
482
483def warn_drv_fuse_ld_path : Warning<
484 "'-fuse-ld=' taking a path is deprecated. Use '--ld-path=' instead">,
485 InGroup<FUseLdPath>, DefaultIgnore;
486
487def warn_drv_fine_grained_bitfield_accesses_ignored : Warning<
488 "option '-ffine-grained-bitfield-accesses' cannot be enabled together with a sanitizer; flag ignored">,
489 InGroup<OptionIgnored>;
490
491def note_drv_verify_prefix_spelling : Note<
492 "-verify prefixes must start with a letter and contain only alphanumeric"
493 " characters, hyphens, and underscores">;
494
495def warn_drv_global_isel_incomplete : Warning<
496 "-fglobal-isel support for the '%0' architecture is incomplete">,
497 InGroup<GlobalISel>;
498
499def warn_drv_global_isel_incomplete_opt : Warning<
500 "-fglobal-isel support is incomplete for this architecture at the current optimization level">,
501 InGroup<GlobalISel>;
502
503def warn_drv_moutline_unsupported_opt : Warning<
504 "The '%0' architecture does not support -moutline; flag ignored">,
505 InGroup<OptionIgnored>;
506
507def warn_drv_moutline_atomics_unsupported_opt : Warning<
508 "The '%0' architecture does not support -moutline-atomics; flag ignored">,
509 InGroup<OptionIgnored>;
510
511def warn_drv_darwin_sdk_invalid_settings : Warning<
512 "SDK settings were ignored as 'SDKSettings.json' could not be parsed">,
513 InGroup<DiagGroup<"darwin-sdk-settings">>;
514
515def err_drv_trivial_auto_var_init_zero_disabled : Error<
516 "-ftrivial-auto-var-init=zero hasn't been enabled. Enable it at your own peril for benchmarking purpose only with "
517 "-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang">;
518
519def err_drv_trivial_auto_var_init_stop_after_missing_dependency : Error<
520 "-ftrivial-auto-var-init-stop-after=* is used without -ftrivial-auto-var-init=zero or -ftrivial-auto-var-init=pattern.">;
521
522def err_drv_trivial_auto_var_init_stop_after_invalid_value : Error<
523 "-ftrivial-auto-var-init-stop-after=* only accepts positive integers.">;
524
525def warn_drv_msp430_hwmult_unsupported : Warning<"the given MCU does not "
526 "support hardware multiply, but -mhwmult is set to %0.">,
527 InGroup<InvalidCommandLineArgument>;
528def warn_drv_msp430_hwmult_mismatch : Warning<"the given MCU supports %0 "
529 "hardware multiply, but -mhwmult is set to %1.">,
530 InGroup<InvalidCommandLineArgument>;
531def warn_drv_msp430_hwmult_no_device : Warning<"no MCU device specified, but "
532 "'-mhwmult' is set to 'auto', assuming no hardware multiply. Use -mmcu to "
533 "specify a MSP430 device, or -mhwmult to set hardware multiply type "
534 "explicitly.">, InGroup<InvalidCommandLineArgument>;
535
536def warn_drv_libstdcxx_not_found : Warning<
537 "include path for libstdc++ headers not found; pass '-stdlib=libc++' on the "
538 "command line to use the libc++ standard library instead">,
539 InGroup<DiagGroup<"stdlibcxx-not-found">>;
540
541def err_drv_cannot_mix_options : Error<"cannot specify '%1' along with '%0'">;
542
543def err_drv_invalid_object_mode : Error<"OBJECT_MODE setting %0 is not recognized and is not a valid setting.">;
544
545def err_aix_default_altivec_abi : Error<
546 "The default Altivec ABI on AIX is not yet supported, use '-mabi=vec-extabi' for the extended Altivec ABI">;
547
548def err_invalid_cxx_abi : Error<"Invalid C++ ABI name '%0'">;
549def err_unsupported_cxx_abi : Error<"C++ ABI '%0' is not supported on target triple '%1'">;
550
551def note_cc1_round_trip_original : Note<"Original arguments in round-trip: %0">;
552def note_cc1_round_trip_generated : Note<"Generated arguments #%0 in round-trip: %1">;
553def remark_cc1_round_trip_generated : Remark<"Generated arguments #%0 in round-trip: %1">, InGroup<RoundTripCC1Args>;
554def err_cc1_round_trip_fail_then_ok : Error<"Original arguments parse failed, then succeeded in round-trip">;
555def err_cc1_round_trip_ok_then_fail : Error<"Generated arguments parse failed in round-trip">;
556def err_cc1_round_trip_mismatch : Error<"Generated arguments do not match in round-trip">;
557}
558