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 10let Component = "Driver" in { 11 12def err_drv_no_such_file : Error<"no such file or directory: '%0'">; 13def err_drv_unsupported_opt : Error<"unsupported option '%0'">; 14def err_drv_unsupported_opt_for_target : Error< 15 "unsupported option '%0' for target '%1'">; 16def err_drv_unsupported_option_argument : Error< 17 "unsupported argument '%1' to option '%0'">; 18def err_drv_unknown_stdin_type : Error< 19 "-E or -x required when input is from standard input">; 20def err_drv_unknown_stdin_type_clang_cl : Error< 21 "use /Tc or /Tp to set input type for standard input">; 22def err_drv_unknown_language : Error<"language not recognized: '%0'">; 23def err_drv_invalid_arch_name : Error< 24 "invalid arch name '%0'">; 25def err_drv_invalid_thread_model_for_target : Error< 26 "invalid thread model '%0' in '%1' for this target">; 27def err_drv_invalid_linker_name : Error< 28 "invalid linker name in argument '%0'">; 29def 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'">; 33def err_drv_invalid_stdlib_name : Error< 34 "invalid library name in argument '%0'">; 35def err_drv_invalid_output_with_multiple_archs : Error< 36 "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'">; 40def err_drv_output_argument_with_multiple_files : Error< 41 "cannot specify -o when generating multiple output files">; 42def err_drv_out_file_argument_with_multiple_sources : Error< 43 "cannot specify '%0%1' when compiling multiple source files">; 44def err_no_external_assembler : Error< 45 "there is no external assembler that can be used on this platform">; 46def err_drv_unable_to_remove_file : Error< 47 "unable to remove file: %0">; 48def err_drv_command_failure : Error< 49 "unable to execute command: %0">; 50def err_drv_invalid_darwin_version : Error< 51 "invalid Darwin version number: %0">; 52def err_drv_missing_argument : Error< 53 "argument to '%0' is missing (expected %1 value%s1)">; 54def 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">; 58def 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'">; 64def err_drv_no_linker_llvm_support : Error< 65 "'%0': unable to pass LLVM bit-code files to linker">; 66def err_drv_no_ast_support : Error< 67 "'%0': unable to use AST files with this tool">; 68def err_drv_no_module_support : Error< 69 "'%0': unable to use module files with this tool">; 70def err_drv_clang_unsupported : Error< 71 "the clang compiler does not support '%0'">; 72def err_drv_clang_unsupported_opt_cxx_darwin_i386 : Error< 73 "the clang compiler does not support '%0' for C++ on Darwin/i386">; 74def err_drv_command_failed : Error< 75 "%0 command failed with exit code %1 (use -v to see invocation)">; 76def err_drv_command_signalled : Error< 77 "%0 command failed due to signal (use -v to see invocation)">; 78def err_drv_force_crash : Error< 79 "failing because environment variable '%0' is set">; 80def err_drv_invalid_mfloat_abi : Error< 81 "invalid float ABI '%0'">; 82def err_drv_invalid_libcxx_deployment : Error< 83 "invalid deployment target for -stdlib=libc++ (requires %0 or later)">; 84def err_drv_invalid_argument_to_fdebug_prefix_map : Error< 85 "invalid argument '%0' to -fdebug-prefix-map">; 86def err_drv_malformed_sanitizer_blacklist : Error< 87 "malformed sanitizer blacklist: '%0'">; 88 89def err_target_unsupported_arch 90 : Error<"the target architecture '%0' is not supported by the target '%1'">; 91 92def err_drv_I_dash_not_supported : Error< 93 "'%0' not supported, please use -iquote instead">; 94def 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'">; 97def err_drv_invalid_remap_file : Error< 98 "invalid option '%0' not of the form <from-file>;<to-file>">; 99def err_drv_invalid_gcc_output_type : Error< 100 "invalid output type '%0' for use with gcc tool">; 101def err_drv_cc_print_options_failure : Error< 102 "unable to open CC_PRINT_OPTIONS file: %0">; 103def err_drv_preamble_format : Error< 104 "incorrect format for -preamble-bytes=N,END">; 105def err_drv_conflicting_deployment_targets : Error< 106 "conflicting deployment targets, both '%0' and '%1' are present in environment">; 107def err_drv_objc_gc_arr : Error< 108 "cannot specify both '-fobjc-arc' and '%0'">; 109def err_arc_unsupported_on_runtime : Error< 110 "-fobjc-arc is not supported on platforms using the legacy runtime">; 111def err_arc_unsupported_on_toolchain : Error< // feel free to generalize this 112 "-fobjc-arc is not supported on versions of OS X prior to 10.6">; 113def err_objc_weak_with_gc : Error< 114 "-fobjc-weak is not supported in Objective-C garbage collection">; 115def err_objc_weak_unsupported : Error< 116 "-fobjc-weak is not supported on the current deployment target">; 117def err_drv_mg_requires_m_or_mm : Error< 118 "option '-MG' requires '-M' or '-MM'">; 119def err_drv_unknown_objc_runtime : Error< 120 "unknown or ill-formed Objective-C runtime '%0'">; 121def err_drv_emit_llvm_link : Error< 122 "-emit-llvm cannot be used when linking">; 123def err_drv_optimization_remark_pattern : Error< 124 "%0 in '%1'">; 125def err_drv_no_neon_modifier : Error<"[no]neon is not accepted as modifier, please use [no]simd instead">; 126 127def warn_O4_is_O3 : Warning<"-O4 is equivalent to -O3">, InGroup<Deprecated>; 128def warn_drv_lto_libpath : Warning<"libLTO.dylib relative to clang installed dir not found; using 'ld' default search path instead">, 129 InGroup<LibLTO>; 130def warn_drv_optimization_value : Warning<"optimization level '%0' is not supported; using '%1%2' instead">, 131 InGroup<InvalidCommandLineArgument>; 132def warn_ignored_gcc_optimization : Warning<"optimization flag '%0' is not supported">, 133 InGroup<IgnoredOptimizationArgument>; 134def warn_c_kext : Warning< 135 "ignoring -fapple-kext which is valid for C++ and Objective-C++ only">; 136def warn_drv_input_file_unused : Warning< 137 "%0: '%1' input unused%select{ when '%3' is present|}2">, 138 InGroup<UnusedCommandLineArgument>; 139def warn_drv_input_file_unused_by_cpp : Warning< 140 "%0: '%1' input unused in cpp mode">, 141 InGroup<UnusedCommandLineArgument>; 142def warn_drv_preprocessed_input_file_unused : Warning< 143 "%0: previously preprocessed input%select{ unused when '%2' is present|}1">, 144 InGroup<UnusedCommandLineArgument>; 145def warn_drv_unused_argument : Warning< 146 "argument unused during compilation: '%0'">, 147 InGroup<UnusedCommandLineArgument>; 148def warn_drv_empty_joined_argument : Warning< 149 "joined argument expects additional value: '%0'">, 150 InGroup<UnusedCommandLineArgument>; 151def warn_drv_clang_unsupported : Warning< 152 "the clang compiler does not support '%0'">; 153def warn_drv_deprecated_arg : Warning< 154 "argument '%0' is deprecated, use '%1' instead">, InGroup<Deprecated>; 155def warn_drv_assuming_mfloat_abi_is : Warning< 156 "unknown platform, assuming -mfloat-abi=%0">; 157def warn_ignoring_ftabstop_value : Warning< 158 "ignoring invalid -ftabstop value '%0', using default value %1">; 159def warn_drv_overriding_flag_option : Warning< 160 "overriding '%0' option with '%1'">, 161 InGroup<DiagGroup<"overriding-t-option">>; 162def warn_drv_treating_input_as_cxx : Warning< 163 "treating '%0' input as '%1' when in C++ mode, this behavior is deprecated">, 164 InGroup<Deprecated>; 165def warn_drv_objc_gc_unsupported : Warning< 166 "Objective-C garbage collection is not supported on this platform, ignoring '%0'">; 167def warn_drv_pch_not_first_include : Warning< 168 "precompiled header '%0' was ignored because '%1' is not first '-include'">; 169def warn_missing_sysroot : Warning<"no such sysroot directory: '%0'">, 170 InGroup<DiagGroup<"missing-sysroot">>; 171def warn_debug_compression_unavailable : Warning<"cannot compress debug sections (zlib not installed)">, 172 InGroup<DiagGroup<"debug-compression-unavailable">>; 173def warn_drv_enabling_rtti_with_exceptions : Warning< 174 "implicitly enabling rtti for exception handling">, 175 InGroup<DiagGroup<"rtti-for-exceptions">>; 176def warn_drv_disabling_vptr_no_rtti_default : Warning< 177 "implicitly disabling vptr sanitizer because rtti wasn't enabled">, 178 InGroup<DiagGroup<"auto-disable-vptr-sanitizer">>; 179 180def note_drv_command_failed_diag_msg : Note< 181 "diagnostic msg: %0">; 182def note_drv_t_option_is_global : Note< 183 "The last /TC or /TP option takes precedence over earlier instances">; 184def note_drv_address_sanitizer_debug_runtime : Note< 185 "AddressSanitizer doesn't support linking with debug runtime libraries yet">; 186 187def err_analyzer_config_no_value : Error< 188 "analyzer-config option '%0' has a key but no value">; 189def err_analyzer_config_multiple_values : Error< 190 "analyzer-config option '%0' should contain only one '='">; 191 192def err_drv_modules_validate_once_requires_timestamp : Error< 193 "option '-fmodules-validate-once-per-build-session' requires " 194 "'-fbuild-session-timestamp=<seconds since Epoch>' or '-fbuild-session-file=<file>'">; 195 196def err_test_module_file_extension_format : Error< 197 "-ftest-module-file-extension argument '%0' is not of the required form " 198 "'blockname:major:minor:hashed:user info'">; 199 200def warn_drv_invoking_fallback : Warning<"falling back to %0">, 201 InGroup<Fallback>; 202 203def warn_target_unsupported_nan2008 : Warning< 204 "ignoring '-mnan=2008' option because the '%0' architecture does not support it">, 205 InGroup<UnsupportedNan>; 206def warn_target_unsupported_nanlegacy : Warning< 207 "ignoring '-mnan=legacy' option because the '%0' architecture does not support it">, 208 InGroup<UnsupportedNan>; 209 210def warn_drv_unable_to_find_directory_expected : Warning< 211 "unable to find %0 directory, expected to be in '%1'">, 212 InGroup<InvalidOrNonExistentDirectory>, DefaultIgnore; 213 214def warn_drv_ps4_force_pic : Warning< 215 "option '%0' was ignored by the PS4 toolchain, using '-fPIC'">, 216 InGroup<OptionIgnored>; 217 218def warn_drv_ps4_sdk_dir : Warning< 219 "environment variable SCE_PS4_SDK_DIR is set, but points to invalid or nonexistent directory '%0'">, 220 InGroup<InvalidOrNonExistentDirectory>; 221 222def err_drv_unsupported_linker : Error<"unsupported value '%0' for -linker option">; 223} 224