blob: 7c0696a1b92249ee6d0c1c3499df6ff4d585303b [file] [log] [blame]
Daniel Dunbar4ad4b3e2009-03-12 08:55:43 +00001//==--- DiagnosticDriverKinds.td - libdriver diagnostics ------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10let Component = "Driver" in {
11
Ted Kremenek88ef4c42009-03-13 20:45:13 +000012def err_drv_no_such_file : Error<"no such file or directory: '%0'">;
13def err_drv_unsupported_opt : Error<"unsupported option '%0'">;
Chandler Carruth7ce816a2012-11-19 03:52:03 +000014def err_drv_unsupported_opt_for_target : Error<
15 "unsupported option '%0' for target '%1'">;
Daniel Dunbarfcec10b2010-10-18 22:36:15 +000016def err_drv_unsupported_option_argument : Error<
17 "unsupported argument '%1' to option '%0'">;
Daniel Dunbar50f4f462009-03-12 10:14:16 +000018def err_drv_unknown_stdin_type : Error<
Sebastian Redlf4dc83c2009-03-14 10:09:49 +000019 "-E or -x required when input is from standard input">;
Stephen Hines651f13c2014-04-23 16:59:28 -070020def err_drv_unknown_stdin_type_clang_cl : Error<
21 "use /Tc or /Tp to set input type for standard input">;
Ted Kremenek88ef4c42009-03-13 20:45:13 +000022def err_drv_unknown_language : Error<"language not recognized: '%0'">;
Daniel Dunbar36df2902009-09-08 23:37:30 +000023def err_drv_invalid_arch_name : Error<
24 "invalid arch name '%0'">;
Stephen Hines176edba2014-12-01 14:53:08 -080025def err_drv_invalid_thread_model_for_target : Error<
26 "invalid thread model '%0' in '%1' for this target">;
Stephen Hinesc568f1e2014-07-21 00:47:37 -070027def err_drv_invalid_linker_name : Error<
28 "invalid linker name in argument '%0'">;
Daniel Dunbarc24767c2011-12-07 23:03:15 +000029def err_drv_invalid_rtlib_name : Error<
30 "invalid runtime library name in argument '%0'">;
31def err_drv_unsupported_rtlib_for_platform : Error<
32 "unsupported runtime library '%0' for platform '%1'">;
Daniel Dunbar3f16c952010-09-14 23:12:40 +000033def err_drv_invalid_stdlib_name : Error<
34 "invalid library name in argument '%0'">;
Daniel Dunbar2fe63e62009-03-12 18:40:18 +000035def err_drv_invalid_output_with_multiple_archs : Error<
Sebastian Redlf4dc83c2009-03-14 10:09:49 +000036 "cannot use '%0' output with multiple -arch options">;
37def err_drv_no_input_files : Error<"no input files">;
38def err_drv_use_of_Z_option : Error<
39 "unsupported use of internal gcc -Z option '%0'">;
Daniel Dunbarf353c8c2009-03-16 06:56:51 +000040def err_drv_output_argument_with_multiple_files : Error<
41 "cannot specify -o when generating multiple output files">;
Hans Wennborgb405c952013-10-18 22:49:04 +000042def err_drv_out_file_argument_with_multiple_sources : Error<
Hans Wennborgab50ccd2013-08-06 22:11:28 +000043 "cannot specify '%0%1' when compiling multiple source files">;
Bill Wendlinge9a90862013-11-26 10:24:32 +000044def err_no_external_assembler : Error<
45 "there is no external assembler that can be used on this platform">;
Daniel Dunbare530ad42009-03-18 22:16:03 +000046def err_drv_unable_to_remove_file : Error<
47 "unable to remove file: %0">;
Daniel Dunbar49b98e72009-03-18 22:44:24 +000048def err_drv_command_failure : Error<
49 "unable to execute command: %0">;
Daniel Dunbarfc6a8992009-03-20 18:21:51 +000050def err_drv_invalid_darwin_version : Error<
51 "invalid Darwin version number: %0">;
Daniel Dunbarb0c4df52009-03-22 23:26:43 +000052def err_drv_missing_argument : Error<
Matt Beaumont-Gay3538f742012-03-19 18:36:28 +000053 "argument to '%0' is missing (expected %1 value%s1)">;
Daniel Dunbar7e9293b2011-04-21 17:32:21 +000054def err_drv_invalid_Xarch_argument_with_args : Error<
55 "invalid Xarch argument: '%0', options requiring arguments are unsupported">;
56def err_drv_invalid_Xarch_argument_isdriver : Error<
57 "invalid Xarch argument: '%0', cannot change driver behavior inside Xarch argument">;
Daniel Dunbar02633b52009-03-26 16:23:12 +000058def err_drv_argument_only_allowed_with : Error<
59 "invalid argument '%0' only allowed with '%1'">;
60def err_drv_argument_not_allowed_with : Error<
61 "invalid argument '%0' not allowed with '%1'">;
62def err_drv_invalid_version_number : Error<
63 "invalid version number in '%0'">;
Daniel Dunbara8304f62009-05-02 20:14:53 +000064def err_drv_no_linker_llvm_support : Error<
65 "'%0': unable to pass LLVM bit-code files to linker">;
Daniel Dunbar5915fbf2009-09-01 16:57:46 +000066def err_drv_no_ast_support : Error<
67 "'%0': unable to use AST files with this tool">;
Douglas Gregorc544ba02013-03-27 16:47:18 +000068def err_drv_no_module_support : Error<
69 "'%0': unable to use module files with this tool">;
Daniel Dunbare027a4b2009-05-22 19:02:20 +000070def err_drv_clang_unsupported : Error<
71 "the clang compiler does not support '%0'">;
Daniel Dunbar25b26eb2010-10-18 22:49:46 +000072def err_drv_clang_unsupported_per_platform : Error<
73 "the clang compiler does not support '%0' on this platform">;
Daniel Dunbarb30575c2010-05-12 18:19:58 +000074def err_drv_clang_unsupported_opt_cxx_darwin_i386 : Error<
75 "the clang compiler does not support '%0' for C++ on Darwin/i386">;
Daniel Dunbar31c11eb2009-07-01 19:14:39 +000076def err_drv_command_failed : Error<
77 "%0 command failed with exit code %1 (use -v to see invocation)">;
78def err_drv_command_signalled : Error<
Benjamin Kramerecff7c82011-11-19 10:24:49 +000079 "%0 command failed due to signal (use -v to see invocation)">;
Richard Smitha57b3b42012-12-25 21:56:27 +000080def err_drv_force_crash : Error<
81 "failing because environment variable '%0' is set">;
Daniel Dunbarcbd19332009-09-10 23:00:09 +000082def err_drv_invalid_mfloat_abi : Error<
83 "invalid float ABI '%0'">;
Bob Wilson163b1512011-10-07 17:54:41 +000084def err_drv_invalid_libcxx_deployment : Error<
85 "invalid deployment target for -stdlib=libc++ (requires %0 or later)">;
Alexey Samsonovf064ad52013-08-19 13:59:22 +000086def err_drv_malformed_sanitizer_blacklist : Error<
87 "malformed sanitizer blacklist: '%0'">;
Ted Kremenekc06fcdf2013-03-12 17:02:12 +000088
Stephen Hines6bcf27b2014-05-29 04:14:42 -070089def err_target_unsupported_arch
90 : Error<"the target architecture '%0' is not supported by the target '%1'">;
91
Daniel Dunbar607d7f62009-10-29 01:53:44 +000092def err_drv_I_dash_not_supported : Error<
93 "'%0' not supported, please use -iquote instead">;
Daniel Dunbar9e612402009-11-29 21:52:53 +000094def err_drv_unknown_argument : Error<"unknown argument: '%0'">;
95def err_drv_invalid_value : Error<"invalid value '%1' in '%0'">;
96def err_drv_invalid_int_value : Error<"invalid integral value '%1' in '%0'">;
Daniel Dunbare14b5f52009-12-03 05:11:16 +000097def err_drv_invalid_remap_file : Error<
98 "invalid option '%0' not of the form <from-file>;<to-file>">;
Daniel Dunbar64952502010-02-11 03:16:21 +000099def err_drv_invalid_gcc_output_type : Error<
100 "invalid output type '%0' for use with gcc tool">;
Daniel Dunbar4c00fcd2010-03-20 08:01:59 +0000101def err_drv_cc_print_options_failure : Error<
102 "unable to open CC_PRINT_OPTIONS file: %0">;
Douglas Gregorf4f6c9d2010-07-26 21:36:20 +0000103def err_drv_preamble_format : Error<
104 "incorrect format for -preamble-bytes=N,END">;
John McCallf85e1932011-06-15 23:02:42 +0000105def err_drv_objc_gc_arr : Error<
106 "cannot specify both '-fobjc-arc' and '%0'">;
John McCall0a7dd782012-08-21 02:47:43 +0000107def err_arc_unsupported_on_runtime : Error<
108 "-fobjc-arc is not supported on platforms using the legacy runtime">;
John McCall80fd37a2012-08-27 01:56:21 +0000109def err_arc_unsupported_on_toolchain : Error< // feel free to generalize this
110 "-fobjc-arc is not supported on versions of OS X prior to 10.6">;
Peter Collingbournebb527862011-07-12 19:35:15 +0000111def err_drv_mg_requires_m_or_mm : Error<
112 "option '-MG' requires '-M' or '-MM'">;
John McCall260611a2012-06-20 06:18:46 +0000113def err_drv_unknown_objc_runtime : Error<
114 "unknown or ill-formed Objective-C runtime '%0'">;
Rafael Espindola6db90882013-08-25 14:27:09 +0000115def err_drv_emit_llvm_link : Error<
116 "-emit-llvm cannot be used when linking">;
Stephen Hines6bcf27b2014-05-29 04:14:42 -0700117def err_drv_optimization_remark_pattern : Error<
118 "%0 in '%1'">;
Stephen Hines176edba2014-12-01 14:53:08 -0800119def err_drv_no_neon_modifier : Error<"[no]neon is not accepted as modifier, please use [no]simd instead">;
Sebastian Redlf4dc83c2009-03-14 10:09:49 +0000120
Rafael Espindola55ee1eb2013-08-27 16:58:15 +0000121def warn_O4_is_O3 : Warning<"-O4 is equivalent to -O3">, InGroup<Deprecated>;
Stephen Hines176edba2014-12-01 14:53:08 -0800122def warn_drv_optimization_value : Warning<"optimization level '%0' is not supported; using '%1%2' instead">,
Sylvestre Ledru762e5672013-11-18 13:23:07 +0000123 InGroup<InvalidCommandLineArgument>;
Stephen Hines176edba2014-12-01 14:53:08 -0800124def warn_ignored_gcc_optimization : Warning<"optimization flag '%0' is not supported">,
125 InGroup<IgnoredOptimizationArgument>;
Fariborz Jahanian142f9e92011-02-04 00:01:24 +0000126def warn_c_kext : Warning<
Jordan Roseb13291a2012-07-19 18:10:18 +0000127 "ignoring -fapple-kext which is valid for C++ and Objective-C++ only">;
Sebastian Redlf4dc83c2009-03-14 10:09:49 +0000128def warn_drv_input_file_unused : Warning<
Richard Smith04c3a252012-08-06 04:09:06 +0000129 "%0: '%1' input unused%select{ when '%3' is present|}2">,
Jordan Rose30f3b452013-01-10 18:50:51 +0000130 InGroup<UnusedCommandLineArgument>;
Richard Smith04c3a252012-08-06 04:09:06 +0000131def warn_drv_input_file_unused_by_cpp : Warning<
132 "%0: '%1' input unused in cpp mode">,
Jordan Rose30f3b452013-01-10 18:50:51 +0000133 InGroup<UnusedCommandLineArgument>;
Daniel Dunbar634b2452009-09-17 04:13:26 +0000134def warn_drv_preprocessed_input_file_unused : Warning<
Richard Smith04c3a252012-08-06 04:09:06 +0000135 "%0: previously preprocessed input%select{ unused when '%2' is present|}1">,
Jordan Rose30f3b452013-01-10 18:50:51 +0000136 InGroup<UnusedCommandLineArgument>;
Sebastian Redl8afc3da2009-03-15 10:42:31 +0000137def warn_drv_unused_argument : Warning<
Ted Kremenekcc1af782011-11-11 03:58:21 +0000138 "argument unused during compilation: '%0'">,
Jordan Rose30f3b452013-01-10 18:50:51 +0000139 InGroup<UnusedCommandLineArgument>;
Chad Rosier2dd17a12012-02-22 17:55:22 +0000140def warn_drv_empty_joined_argument : Warning<
Chad Rosier6e629882012-05-18 16:56:52 +0000141 "joined argument expects additional value: '%0'">,
Jordan Rose30f3b452013-01-10 18:50:51 +0000142 InGroup<UnusedCommandLineArgument>;
Daniel Dunbar5c1aaaf2009-04-07 19:18:24 +0000143def warn_drv_clang_unsupported : Warning<
Daniel Dunbare027a4b2009-05-22 19:02:20 +0000144 "the clang compiler does not support '%0'">;
Pirama Arumuga Nainar3ea9e332015-04-08 08:57:32 -0700145def warn_drv_deprecated_arg : Warning<
146 "argument '%0' is deprecated, use '%1' instead">, InGroup<Deprecated>;
Daniel Dunbarcbd19332009-09-10 23:00:09 +0000147def warn_drv_assuming_mfloat_abi_is : Warning<
148 "unknown platform, assuming -mfloat-abi=%0">;
Chris Lattner52388f92010-01-13 03:06:50 +0000149def warn_ignoring_ftabstop_value : Warning<
150 "ignoring invalid -ftabstop value '%0', using default value %1">;
Hans Wennborg42ade492013-09-11 16:38:41 +0000151def warn_drv_overriding_flag_option : Warning<
Hans Wennborg4c587532013-08-06 00:20:31 +0000152 "overriding '%0' option with '%1'">,
153 InGroup<DiagGroup<"overriding-t-option">>;
Daniel Dunbar51679c52010-02-17 20:32:58 +0000154def warn_drv_treating_input_as_cxx : Warning<
Chris Lattnerffaf4c52010-03-07 18:50:21 +0000155 "treating '%0' input as '%1' when in C++ mode, this behavior is deprecated">,
156 InGroup<Deprecated>;
Daniel Dunbar43a9b322010-04-10 16:20:23 +0000157def warn_drv_objc_gc_unsupported : Warning<
158 "Objective-C garbage collection is not supported on this platform, ignoring '%0'">;
Argyrios Kyrtzidis990142a2010-09-30 16:53:47 +0000159def warn_drv_pch_not_first_include : Warning<
160 "precompiled header '%0' was ignored because '%1' is not first '-include'">;
Chad Rosierd7dfd982012-12-19 23:41:50 +0000161def warn_missing_sysroot : Warning<"no such sysroot directory: '%0'">,
162 InGroup<DiagGroup<"missing-sysroot">>;
Stephen Hines651f13c2014-04-23 16:59:28 -0700163def warn_debug_compression_unavailable : Warning<"cannot compress debug sections (zlib not installed)">,
164 InGroup<DiagGroup<"debug-compression-unavailable">>;
Stephen Hines0e2c34f2015-03-23 12:09:02 -0700165def warn_drv_enabling_rtti_with_exceptions : Warning<
166 "implicitly enabling rtti for exception handling">,
167 InGroup<DiagGroup<"rtti-for-exceptions">>;
168def warn_drv_disabling_vptr_no_rtti_default : Warning<
169 "implicitly disabling vptr sanitizer because rtti wasn't enabled">,
170 InGroup<DiagGroup<"auto-disable-vptr-sanitizer">>;
Daniel Dunbar4ad4b3e2009-03-12 08:55:43 +0000171
Chad Rosier2b819102011-08-02 17:58:04 +0000172def note_drv_command_failed_diag_msg : Note<
173 "diagnostic msg: %0">;
Stephen Hines176edba2014-12-01 14:53:08 -0800174def note_drv_t_option_is_global : Note<
175 "The last /TC or /TP option takes precedence over earlier instances">;
176def note_drv_address_sanitizer_debug_runtime : Note<
177 "AddressSanitizer doesn't support linking with debug runtime libraries yet">;
178
Ted Kremenek7b73e082012-08-29 05:55:00 +0000179def err_analyzer_config_no_value : Error<
180 "analyzer-config option '%0' has a key but no value">;
181def err_analyzer_config_multiple_values : Error<
Ted Kremenek318cc3c2012-08-30 05:49:16 +0000182 "analyzer-config option '%0' should contain only one '='">;
Stephen Hines651f13c2014-04-23 16:59:28 -0700183
184def err_drv_modules_validate_once_requires_timestamp : Error<
185 "option '-fmodules-validate-once-per-build-session' requires "
Stephen Hines176edba2014-12-01 14:53:08 -0800186 "'-fbuild-session-timestamp=<seconds since Epoch>' or '-fbuild-session-file=<file>'">;
Stephen Hines651f13c2014-04-23 16:59:28 -0700187
188def warn_drv_invoking_fallback : Warning<"falling back to %0">,
Stephen Hines6bcf27b2014-05-29 04:14:42 -0700189 InGroup<Fallback>;
Pirama Arumuga Nainar33337ca2015-05-06 11:48:57 -0700190
191def warn_target_unsupported_nan2008 : Warning<
192 "ignoring '-mnan=2008' option because the '%0' architecture does not support it">,
193 InGroup<UnsupportedNan>;
194def warn_target_unsupported_nanlegacy : Warning<
195 "ignoring '-mnan=legacy' option because the '%0' architecture does not support it">,
196 InGroup<UnsupportedNan>;
Daniel Dunbar4ad4b3e2009-03-12 08:55:43 +0000197}