Daniel Dunbar | 4ad4b3e | 2009-03-12 08:55:43 +0000 | [diff] [blame] | 1 | //==--- 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 | |
| 10 | let Component = "Driver" in { |
| 11 | |
Ted Kremenek | 88ef4c4 | 2009-03-13 20:45:13 +0000 | [diff] [blame] | 12 | def err_drv_no_such_file : Error<"no such file or directory: '%0'">; |
| 13 | def err_drv_unsupported_opt : Error<"unsupported option '%0'">; |
Chandler Carruth | 7ce816a | 2012-11-19 03:52:03 +0000 | [diff] [blame] | 14 | def err_drv_unsupported_opt_for_target : Error< |
| 15 | "unsupported option '%0' for target '%1'">; |
Daniel Dunbar | fcec10b | 2010-10-18 22:36:15 +0000 | [diff] [blame] | 16 | def err_drv_unsupported_option_argument : Error< |
| 17 | "unsupported argument '%1' to option '%0'">; |
Daniel Dunbar | 50f4f46 | 2009-03-12 10:14:16 +0000 | [diff] [blame] | 18 | def err_drv_unknown_stdin_type : Error< |
Sebastian Redl | f4dc83c | 2009-03-14 10:09:49 +0000 | [diff] [blame] | 19 | "-E or -x required when input is from standard input">; |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 20 | def err_drv_unknown_stdin_type_clang_cl : Error< |
| 21 | "use /Tc or /Tp to set input type for standard input">; |
Ted Kremenek | 88ef4c4 | 2009-03-13 20:45:13 +0000 | [diff] [blame] | 22 | def err_drv_unknown_language : Error<"language not recognized: '%0'">; |
Daniel Dunbar | 36df290 | 2009-09-08 23:37:30 +0000 | [diff] [blame] | 23 | def err_drv_invalid_arch_name : Error< |
| 24 | "invalid arch name '%0'">; |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 25 | def err_drv_invalid_thread_model_for_target : Error< |
| 26 | "invalid thread model '%0' in '%1' for this target">; |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 27 | def err_drv_invalid_linker_name : Error< |
| 28 | "invalid linker name in argument '%0'">; |
Daniel Dunbar | c24767c | 2011-12-07 23:03:15 +0000 | [diff] [blame] | 29 | def err_drv_invalid_rtlib_name : Error< |
| 30 | "invalid runtime library name in argument '%0'">; |
| 31 | def err_drv_unsupported_rtlib_for_platform : Error< |
| 32 | "unsupported runtime library '%0' for platform '%1'">; |
Daniel Dunbar | 3f16c95 | 2010-09-14 23:12:40 +0000 | [diff] [blame] | 33 | def err_drv_invalid_stdlib_name : Error< |
| 34 | "invalid library name in argument '%0'">; |
Daniel Dunbar | 2fe63e6 | 2009-03-12 18:40:18 +0000 | [diff] [blame] | 35 | def err_drv_invalid_output_with_multiple_archs : Error< |
Sebastian Redl | f4dc83c | 2009-03-14 10:09:49 +0000 | [diff] [blame] | 36 | "cannot use '%0' output with multiple -arch options">; |
| 37 | def err_drv_no_input_files : Error<"no input files">; |
| 38 | def err_drv_use_of_Z_option : Error< |
| 39 | "unsupported use of internal gcc -Z option '%0'">; |
Daniel Dunbar | f353c8c | 2009-03-16 06:56:51 +0000 | [diff] [blame] | 40 | def err_drv_output_argument_with_multiple_files : Error< |
| 41 | "cannot specify -o when generating multiple output files">; |
Hans Wennborg | b405c95 | 2013-10-18 22:49:04 +0000 | [diff] [blame] | 42 | def err_drv_out_file_argument_with_multiple_sources : Error< |
Hans Wennborg | ab50ccd | 2013-08-06 22:11:28 +0000 | [diff] [blame] | 43 | "cannot specify '%0%1' when compiling multiple source files">; |
Bill Wendling | e9a9086 | 2013-11-26 10:24:32 +0000 | [diff] [blame] | 44 | def err_no_external_assembler : Error< |
| 45 | "there is no external assembler that can be used on this platform">; |
Daniel Dunbar | e530ad4 | 2009-03-18 22:16:03 +0000 | [diff] [blame] | 46 | def err_drv_unable_to_remove_file : Error< |
| 47 | "unable to remove file: %0">; |
Daniel Dunbar | 49b98e7 | 2009-03-18 22:44:24 +0000 | [diff] [blame] | 48 | def err_drv_command_failure : Error< |
| 49 | "unable to execute command: %0">; |
Daniel Dunbar | fc6a899 | 2009-03-20 18:21:51 +0000 | [diff] [blame] | 50 | def err_drv_invalid_darwin_version : Error< |
| 51 | "invalid Darwin version number: %0">; |
Daniel Dunbar | b0c4df5 | 2009-03-22 23:26:43 +0000 | [diff] [blame] | 52 | def err_drv_missing_argument : Error< |
Matt Beaumont-Gay | 3538f74 | 2012-03-19 18:36:28 +0000 | [diff] [blame] | 53 | "argument to '%0' is missing (expected %1 value%s1)">; |
Daniel Dunbar | 7e9293b | 2011-04-21 17:32:21 +0000 | [diff] [blame] | 54 | def err_drv_invalid_Xarch_argument_with_args : Error< |
| 55 | "invalid Xarch argument: '%0', options requiring arguments are unsupported">; |
| 56 | def err_drv_invalid_Xarch_argument_isdriver : Error< |
| 57 | "invalid Xarch argument: '%0', cannot change driver behavior inside Xarch argument">; |
Daniel Dunbar | 02633b5 | 2009-03-26 16:23:12 +0000 | [diff] [blame] | 58 | def err_drv_argument_only_allowed_with : Error< |
| 59 | "invalid argument '%0' only allowed with '%1'">; |
| 60 | def err_drv_argument_not_allowed_with : Error< |
| 61 | "invalid argument '%0' not allowed with '%1'">; |
| 62 | def err_drv_invalid_version_number : Error< |
| 63 | "invalid version number in '%0'">; |
Daniel Dunbar | a8304f6 | 2009-05-02 20:14:53 +0000 | [diff] [blame] | 64 | def err_drv_no_linker_llvm_support : Error< |
| 65 | "'%0': unable to pass LLVM bit-code files to linker">; |
Daniel Dunbar | 5915fbf | 2009-09-01 16:57:46 +0000 | [diff] [blame] | 66 | def err_drv_no_ast_support : Error< |
| 67 | "'%0': unable to use AST files with this tool">; |
Douglas Gregor | c544ba0 | 2013-03-27 16:47:18 +0000 | [diff] [blame] | 68 | def err_drv_no_module_support : Error< |
| 69 | "'%0': unable to use module files with this tool">; |
Daniel Dunbar | e027a4b | 2009-05-22 19:02:20 +0000 | [diff] [blame] | 70 | def err_drv_clang_unsupported : Error< |
| 71 | "the clang compiler does not support '%0'">; |
Daniel Dunbar | 25b26eb | 2010-10-18 22:49:46 +0000 | [diff] [blame] | 72 | def err_drv_clang_unsupported_per_platform : Error< |
| 73 | "the clang compiler does not support '%0' on this platform">; |
Daniel Dunbar | b30575c | 2010-05-12 18:19:58 +0000 | [diff] [blame] | 74 | def err_drv_clang_unsupported_opt_cxx_darwin_i386 : Error< |
| 75 | "the clang compiler does not support '%0' for C++ on Darwin/i386">; |
Daniel Dunbar | 31c11eb | 2009-07-01 19:14:39 +0000 | [diff] [blame] | 76 | def err_drv_command_failed : Error< |
| 77 | "%0 command failed with exit code %1 (use -v to see invocation)">; |
| 78 | def err_drv_command_signalled : Error< |
Benjamin Kramer | ecff7c8 | 2011-11-19 10:24:49 +0000 | [diff] [blame] | 79 | "%0 command failed due to signal (use -v to see invocation)">; |
Richard Smith | a57b3b4 | 2012-12-25 21:56:27 +0000 | [diff] [blame] | 80 | def err_drv_force_crash : Error< |
| 81 | "failing because environment variable '%0' is set">; |
Daniel Dunbar | cbd1933 | 2009-09-10 23:00:09 +0000 | [diff] [blame] | 82 | def err_drv_invalid_mfloat_abi : Error< |
| 83 | "invalid float ABI '%0'">; |
Bob Wilson | 163b151 | 2011-10-07 17:54:41 +0000 | [diff] [blame] | 84 | def err_drv_invalid_libcxx_deployment : Error< |
| 85 | "invalid deployment target for -stdlib=libc++ (requires %0 or later)">; |
Alexey Samsonov | f064ad5 | 2013-08-19 13:59:22 +0000 | [diff] [blame] | 86 | def err_drv_malformed_sanitizer_blacklist : Error< |
| 87 | "malformed sanitizer blacklist: '%0'">; |
Ted Kremenek | c06fcdf | 2013-03-12 17:02:12 +0000 | [diff] [blame] | 88 | |
Stephen Hines | 6bcf27b | 2014-05-29 04:14:42 -0700 | [diff] [blame] | 89 | def err_target_unsupported_arch |
| 90 | : Error<"the target architecture '%0' is not supported by the target '%1'">; |
| 91 | |
Daniel Dunbar | 607d7f6 | 2009-10-29 01:53:44 +0000 | [diff] [blame] | 92 | def err_drv_I_dash_not_supported : Error< |
| 93 | "'%0' not supported, please use -iquote instead">; |
Daniel Dunbar | 9e61240 | 2009-11-29 21:52:53 +0000 | [diff] [blame] | 94 | def err_drv_unknown_argument : Error<"unknown argument: '%0'">; |
| 95 | def err_drv_invalid_value : Error<"invalid value '%1' in '%0'">; |
| 96 | def err_drv_invalid_int_value : Error<"invalid integral value '%1' in '%0'">; |
Daniel Dunbar | e14b5f5 | 2009-12-03 05:11:16 +0000 | [diff] [blame] | 97 | def err_drv_invalid_remap_file : Error< |
| 98 | "invalid option '%0' not of the form <from-file>;<to-file>">; |
Daniel Dunbar | 6495250 | 2010-02-11 03:16:21 +0000 | [diff] [blame] | 99 | def err_drv_invalid_gcc_output_type : Error< |
| 100 | "invalid output type '%0' for use with gcc tool">; |
Daniel Dunbar | 4c00fcd | 2010-03-20 08:01:59 +0000 | [diff] [blame] | 101 | def err_drv_cc_print_options_failure : Error< |
| 102 | "unable to open CC_PRINT_OPTIONS file: %0">; |
Douglas Gregor | f4f6c9d | 2010-07-26 21:36:20 +0000 | [diff] [blame] | 103 | def err_drv_preamble_format : Error< |
| 104 | "incorrect format for -preamble-bytes=N,END">; |
John McCall | f85e193 | 2011-06-15 23:02:42 +0000 | [diff] [blame] | 105 | def err_drv_objc_gc_arr : Error< |
| 106 | "cannot specify both '-fobjc-arc' and '%0'">; |
John McCall | 0a7dd78 | 2012-08-21 02:47:43 +0000 | [diff] [blame] | 107 | def err_arc_unsupported_on_runtime : Error< |
| 108 | "-fobjc-arc is not supported on platforms using the legacy runtime">; |
John McCall | 80fd37a | 2012-08-27 01:56:21 +0000 | [diff] [blame] | 109 | def 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 Collingbourne | bb52786 | 2011-07-12 19:35:15 +0000 | [diff] [blame] | 111 | def err_drv_mg_requires_m_or_mm : Error< |
| 112 | "option '-MG' requires '-M' or '-MM'">; |
John McCall | 260611a | 2012-06-20 06:18:46 +0000 | [diff] [blame] | 113 | def err_drv_unknown_objc_runtime : Error< |
| 114 | "unknown or ill-formed Objective-C runtime '%0'">; |
Rafael Espindola | 6db9088 | 2013-08-25 14:27:09 +0000 | [diff] [blame] | 115 | def err_drv_emit_llvm_link : Error< |
| 116 | "-emit-llvm cannot be used when linking">; |
Stephen Hines | 6bcf27b | 2014-05-29 04:14:42 -0700 | [diff] [blame] | 117 | def err_drv_optimization_remark_pattern : Error< |
| 118 | "%0 in '%1'">; |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 119 | def err_drv_no_neon_modifier : Error<"[no]neon is not accepted as modifier, please use [no]simd instead">; |
Sebastian Redl | f4dc83c | 2009-03-14 10:09:49 +0000 | [diff] [blame] | 120 | |
Rafael Espindola | 55ee1eb | 2013-08-27 16:58:15 +0000 | [diff] [blame] | 121 | def warn_O4_is_O3 : Warning<"-O4 is equivalent to -O3">, InGroup<Deprecated>; |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 122 | def warn_drv_optimization_value : Warning<"optimization level '%0' is not supported; using '%1%2' instead">, |
Sylvestre Ledru | 762e567 | 2013-11-18 13:23:07 +0000 | [diff] [blame] | 123 | InGroup<InvalidCommandLineArgument>; |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 124 | def warn_ignored_gcc_optimization : Warning<"optimization flag '%0' is not supported">, |
| 125 | InGroup<IgnoredOptimizationArgument>; |
Fariborz Jahanian | 142f9e9 | 2011-02-04 00:01:24 +0000 | [diff] [blame] | 126 | def warn_c_kext : Warning< |
Jordan Rose | b13291a | 2012-07-19 18:10:18 +0000 | [diff] [blame] | 127 | "ignoring -fapple-kext which is valid for C++ and Objective-C++ only">; |
Sebastian Redl | f4dc83c | 2009-03-14 10:09:49 +0000 | [diff] [blame] | 128 | def warn_drv_input_file_unused : Warning< |
Richard Smith | 04c3a25 | 2012-08-06 04:09:06 +0000 | [diff] [blame] | 129 | "%0: '%1' input unused%select{ when '%3' is present|}2">, |
Jordan Rose | 30f3b45 | 2013-01-10 18:50:51 +0000 | [diff] [blame] | 130 | InGroup<UnusedCommandLineArgument>; |
Richard Smith | 04c3a25 | 2012-08-06 04:09:06 +0000 | [diff] [blame] | 131 | def warn_drv_input_file_unused_by_cpp : Warning< |
| 132 | "%0: '%1' input unused in cpp mode">, |
Jordan Rose | 30f3b45 | 2013-01-10 18:50:51 +0000 | [diff] [blame] | 133 | InGroup<UnusedCommandLineArgument>; |
Daniel Dunbar | 634b245 | 2009-09-17 04:13:26 +0000 | [diff] [blame] | 134 | def warn_drv_preprocessed_input_file_unused : Warning< |
Richard Smith | 04c3a25 | 2012-08-06 04:09:06 +0000 | [diff] [blame] | 135 | "%0: previously preprocessed input%select{ unused when '%2' is present|}1">, |
Jordan Rose | 30f3b45 | 2013-01-10 18:50:51 +0000 | [diff] [blame] | 136 | InGroup<UnusedCommandLineArgument>; |
Sebastian Redl | 8afc3da | 2009-03-15 10:42:31 +0000 | [diff] [blame] | 137 | def warn_drv_unused_argument : Warning< |
Ted Kremenek | cc1af78 | 2011-11-11 03:58:21 +0000 | [diff] [blame] | 138 | "argument unused during compilation: '%0'">, |
Jordan Rose | 30f3b45 | 2013-01-10 18:50:51 +0000 | [diff] [blame] | 139 | InGroup<UnusedCommandLineArgument>; |
Chad Rosier | 2dd17a1 | 2012-02-22 17:55:22 +0000 | [diff] [blame] | 140 | def warn_drv_empty_joined_argument : Warning< |
Chad Rosier | 6e62988 | 2012-05-18 16:56:52 +0000 | [diff] [blame] | 141 | "joined argument expects additional value: '%0'">, |
Jordan Rose | 30f3b45 | 2013-01-10 18:50:51 +0000 | [diff] [blame] | 142 | InGroup<UnusedCommandLineArgument>; |
Daniel Dunbar | 5c1aaaf | 2009-04-07 19:18:24 +0000 | [diff] [blame] | 143 | def warn_drv_clang_unsupported : Warning< |
Daniel Dunbar | e027a4b | 2009-05-22 19:02:20 +0000 | [diff] [blame] | 144 | "the clang compiler does not support '%0'">; |
Pirama Arumuga Nainar | 3ea9e33 | 2015-04-08 08:57:32 -0700 | [diff] [blame] | 145 | def warn_drv_deprecated_arg : Warning< |
| 146 | "argument '%0' is deprecated, use '%1' instead">, InGroup<Deprecated>; |
Daniel Dunbar | cbd1933 | 2009-09-10 23:00:09 +0000 | [diff] [blame] | 147 | def warn_drv_assuming_mfloat_abi_is : Warning< |
| 148 | "unknown platform, assuming -mfloat-abi=%0">; |
Chris Lattner | 52388f9 | 2010-01-13 03:06:50 +0000 | [diff] [blame] | 149 | def warn_ignoring_ftabstop_value : Warning< |
| 150 | "ignoring invalid -ftabstop value '%0', using default value %1">; |
Hans Wennborg | 42ade49 | 2013-09-11 16:38:41 +0000 | [diff] [blame] | 151 | def warn_drv_overriding_flag_option : Warning< |
Hans Wennborg | 4c58753 | 2013-08-06 00:20:31 +0000 | [diff] [blame] | 152 | "overriding '%0' option with '%1'">, |
| 153 | InGroup<DiagGroup<"overriding-t-option">>; |
Daniel Dunbar | 51679c5 | 2010-02-17 20:32:58 +0000 | [diff] [blame] | 154 | def warn_drv_treating_input_as_cxx : Warning< |
Chris Lattner | ffaf4c5 | 2010-03-07 18:50:21 +0000 | [diff] [blame] | 155 | "treating '%0' input as '%1' when in C++ mode, this behavior is deprecated">, |
| 156 | InGroup<Deprecated>; |
Daniel Dunbar | 43a9b32 | 2010-04-10 16:20:23 +0000 | [diff] [blame] | 157 | def warn_drv_objc_gc_unsupported : Warning< |
| 158 | "Objective-C garbage collection is not supported on this platform, ignoring '%0'">; |
Argyrios Kyrtzidis | 990142a | 2010-09-30 16:53:47 +0000 | [diff] [blame] | 159 | def warn_drv_pch_not_first_include : Warning< |
| 160 | "precompiled header '%0' was ignored because '%1' is not first '-include'">; |
Chad Rosier | d7dfd98 | 2012-12-19 23:41:50 +0000 | [diff] [blame] | 161 | def warn_missing_sysroot : Warning<"no such sysroot directory: '%0'">, |
| 162 | InGroup<DiagGroup<"missing-sysroot">>; |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 163 | def warn_debug_compression_unavailable : Warning<"cannot compress debug sections (zlib not installed)">, |
| 164 | InGroup<DiagGroup<"debug-compression-unavailable">>; |
Stephen Hines | 0e2c34f | 2015-03-23 12:09:02 -0700 | [diff] [blame] | 165 | def warn_drv_enabling_rtti_with_exceptions : Warning< |
| 166 | "implicitly enabling rtti for exception handling">, |
| 167 | InGroup<DiagGroup<"rtti-for-exceptions">>; |
| 168 | def 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 Dunbar | 4ad4b3e | 2009-03-12 08:55:43 +0000 | [diff] [blame] | 171 | |
Chad Rosier | 2b81910 | 2011-08-02 17:58:04 +0000 | [diff] [blame] | 172 | def note_drv_command_failed_diag_msg : Note< |
| 173 | "diagnostic msg: %0">; |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 174 | def note_drv_t_option_is_global : Note< |
| 175 | "The last /TC or /TP option takes precedence over earlier instances">; |
| 176 | def note_drv_address_sanitizer_debug_runtime : Note< |
| 177 | "AddressSanitizer doesn't support linking with debug runtime libraries yet">; |
| 178 | |
Ted Kremenek | 7b73e08 | 2012-08-29 05:55:00 +0000 | [diff] [blame] | 179 | def err_analyzer_config_no_value : Error< |
| 180 | "analyzer-config option '%0' has a key but no value">; |
| 181 | def err_analyzer_config_multiple_values : Error< |
Ted Kremenek | 318cc3c | 2012-08-30 05:49:16 +0000 | [diff] [blame] | 182 | "analyzer-config option '%0' should contain only one '='">; |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 183 | |
| 184 | def err_drv_modules_validate_once_requires_timestamp : Error< |
| 185 | "option '-fmodules-validate-once-per-build-session' requires " |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 186 | "'-fbuild-session-timestamp=<seconds since Epoch>' or '-fbuild-session-file=<file>'">; |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 187 | |
| 188 | def warn_drv_invoking_fallback : Warning<"falling back to %0">, |
Stephen Hines | 6bcf27b | 2014-05-29 04:14:42 -0700 | [diff] [blame] | 189 | InGroup<Fallback>; |
Pirama Arumuga Nainar | 33337ca | 2015-05-06 11:48:57 -0700 | [diff] [blame^] | 190 | |
| 191 | def warn_target_unsupported_nan2008 : Warning< |
| 192 | "ignoring '-mnan=2008' option because the '%0' architecture does not support it">, |
| 193 | InGroup<UnsupportedNan>; |
| 194 | def warn_target_unsupported_nanlegacy : Warning< |
| 195 | "ignoring '-mnan=legacy' option because the '%0' architecture does not support it">, |
| 196 | InGroup<UnsupportedNan>; |
Daniel Dunbar | 4ad4b3e | 2009-03-12 08:55:43 +0000 | [diff] [blame] | 197 | } |