From: Richard Biener Date: Mon, 6 Mar 2017 08:54:57 +0000 (+0000) Subject: lto-streamer.c (lto_check_version): Use %qs in diagnostics. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8467170571d48d8c0f34b72a3b2d0f50c8f689b2;p=gcc.git lto-streamer.c (lto_check_version): Use %qs in diagnostics. 2017-03-06 Richard Biener * lto-streamer.c (lto_check_version): Use %qs in diagnostics. * plugin.c (register_plugin_info): Likewise. * tree-chkp.c (chkp_make_static_const_bounds): Likewise. From-SVN: r245909 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 343241118ad..8c9396795c4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-03-06 Richard Biener + + * lto-streamer.c (lto_check_version): Use %qs in diagnostics. + * plugin.c (register_plugin_info): Likewise. + * tree-chkp.c (chkp_make_static_const_bounds): Likewise. + 2017-03-05 Jakub Jelinek * config/i386/sse.md (sse_storehps, sse_storelps, diff --git a/gcc/lto-streamer.c b/gcc/lto-streamer.c index 5fb387132fb..04d733024d8 100644 --- a/gcc/lto-streamer.c +++ b/gcc/lto-streamer.c @@ -380,7 +380,7 @@ lto_check_version (int major, int minor, const char *file_name) { if (major != LTO_major_version || minor != LTO_minor_version) fatal_error (input_location, - "bytecode stream in file '%s' generated with LTO version " + "bytecode stream in file %qs generated with LTO version " "%d.%d instead of the expected %d.%d", file_name, major, minor, diff --git a/gcc/plugin.c b/gcc/plugin.c index 0ea00273566..1996c9af43f 100644 --- a/gcc/plugin.c +++ b/gcc/plugin.c @@ -334,7 +334,7 @@ register_plugin_info (const char* name, struct plugin_info *info) if (slot == NULL) { - error ("unable to register info for plugin '%s' - plugin name not found", + error ("unable to register info for plugin %qs - plugin name not found", name); return; } diff --git a/gcc/tree-chkp.c b/gcc/tree-chkp.c index 7eecbc8972d..02ae2d2d2c7 100644 --- a/gcc/tree-chkp.c +++ b/gcc/tree-chkp.c @@ -1991,7 +1991,7 @@ chkp_make_static_const_bounds (HOST_WIDE_INT lb, /* We don't allow this symbol usage for non bounds. */ if (snode->type != SYMTAB_VARIABLE || !POINTER_BOUNDS_P (snode->decl)) - sorry ("-fcheck-pointer-bounds requires '%s' " + sorry ("-fcheck-pointer-bounds requires %qs " "name for internal usage", IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (var)));