This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix some PR79851 issues


Built on x86_64-unknown-linux-gnu, applied.

Richard.

2017-03-06  Richard Biener  <rguenther@suse.de>

	* 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.

Index: gcc/lto-streamer.c
===================================================================
--- gcc/lto-streamer.c	(revision 245908)
+++ gcc/lto-streamer.c	(working copy)
@@ -380,7 +380,7 @@ lto_check_version (int major, int minor,
 {
   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,
Index: gcc/plugin.c
===================================================================
--- gcc/plugin.c	(revision 245908)
+++ gcc/plugin.c	(working copy)
@@ -334,7 +334,7 @@ register_plugin_info (const char* name,
 
   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;
     }
Index: gcc/tree-chkp.c
===================================================================
--- gcc/tree-chkp.c	(revision 245908)
+++ gcc/tree-chkp.c	(working copy)
@@ -1991,7 +1991,7 @@ chkp_make_static_const_bounds (HOST_WIDE
       /* 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)));
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]