From 1a413677093aca39a9a51c40bdead14d9a06593e Mon Sep 17 00:00:00 2001
From: Martin Sebor <msebor@redhat.com>
Date: Mon, 16 Jan 2017 17:08:42 +0000
Subject: [PATCH] gimple-ssa-sprintf.c (format_directive): Correct a typo in a
 warning message.

gcc/ChangeLog:
	* gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
	message.

From-SVN: r244500
---
 gcc/ChangeLog            | 5 +++++
 gcc/gimple-ssa-sprintf.c | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7520de88a3ca..9c33999911ac 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2017-01-16  Martin Sebor  <msebor@redhat.com>
+
+	* gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
+	message.
+
 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
 
 	* config/rs6000/rs6000.c (rtx_is_swappable_p): Change
diff --git a/gcc/gimple-ssa-sprintf.c b/gcc/gimple-ssa-sprintf.c
index e6a6a80c27b4..262857c64ded 100644
--- a/gcc/gimple-ssa-sprintf.c
+++ b/gcc/gimple-ssa-sprintf.c
@@ -2049,7 +2049,8 @@ format_directive (const pass_sprintf_length::call_info &info,
 		  const char* fmtstr
 		    = (info.bounded
 		       ? G_("%<%.*s%> directive output may be truncated "
-			    "writing %wu or more bytes a region of size %wu")
+			    "writing %wu or more bytes into a region "
+			    "of size %wu")
 		       : G_("%<%.*s%> directive writing %wu or more bytes "
 			    "into a region of size %wu"));
 		  warned = fmtwarn (dirloc, pargrange, NULL,
-- 
GitLab