diff mbox series

[committed] remove stray warning text (PR 99276)

Message ID 58bc5d84-24f5-8711-80c5-c13c06a8d613@gmail.com
State New
Headers show
Series [committed] remove stray warning text (PR 99276) | expand

Commit Message

Martin Sebor March 2, 2021, 8:44 p.m. UTC
In PR 99276 a translator points out malformed warning message newly
introduced into GCC 11.  In r11-7460 I have committed the attached
patch to remove the stray text.

Martin
diff mbox series

Patch

commit e7ca37649e4f322e7512c6d11813992c61b0a4b3
Author: Martin Sebor <msebor@redhat.com>
Date:   Tue Mar 2 13:37:01 2021 -0700

    PR middle-end/99276 - grammar in diagnostics for overflowing the destination
    
    gcc/ChangeLog:
    
            PR middle-end/99276
            * builtins.c (warn_for_access): Remove stray warning text.

diff --git a/gcc/builtins.c b/gcc/builtins.c
index 18be93c0f3b..da6dac8048e 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -4237,8 +4237,7 @@  warn_for_access (location_t loc, tree func, tree exp, int opt, tree range[2],
 		    ? warning_at (loc, opt,
 				  (maybe
 				   ? G_("%K%qD may write %E or more bytes "
-					"into a region of size %E "
-					"the destination")
+					"into a region of size %E")
 				   : G_("%K%qD writing %E or more bytes "
 					"into a region of size %E overflows "
 					"the destination")),