public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] C-family: Replace "may may" with "may" in warning message
@ 2019-01-13  5:00 H.J. Lu
  2019-01-13  9:21 ` Jakub Jelinek
  0 siblings, 1 reply; 2+ messages in thread
From: H.J. Lu @ 2019-01-13  5:00 UTC (permalink / raw)
  To: gcc-patches

gcc/c-family/

	* c-warn.c (warn_for_address_or_pointer_of_packed_member):
	Replace "may may" with "may" in warning message.

gcc/c-family/testsuite/

	* gcc.dg/pr51628-20.c: Updated.
	* gcc.dg/pr51628-21.c: Likewise.
	* gcc.dg/pr51628-25.c: Likewise.
---
 gcc/c-family/c-warn.c             | 2 +-
 gcc/testsuite/gcc.dg/pr51628-20.c | 2 +-
 gcc/testsuite/gcc.dg/pr51628-21.c | 2 +-
 gcc/testsuite/gcc.dg/pr51628-25.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gcc/c-family/c-warn.c b/gcc/c-family/c-warn.c
index f84736716b6..79b2d8ad449 100644
--- a/gcc/c-family/c-warn.c
+++ b/gcc/c-family/c-warn.c
@@ -2828,7 +2828,7 @@ warn_for_address_or_pointer_of_packed_member (bool convert_p, tree type,
 	      location_t location = EXPR_LOC_OR_LOC (rhs, input_location);
 	      warning_at (location, OPT_Waddress_of_packed_member,
 			  "converting a packed %qT pointer (alignment %d) "
-			  "to %qT (alignment %d) may may result in an "
+			  "to %qT (alignment %d) may result in an "
 			  "unaligned pointer value",
 			  rhstype, rhs_align, type, type_align);
 	      tree decl = TYPE_STUB_DECL (TREE_TYPE (rhstype));
diff --git a/gcc/testsuite/gcc.dg/pr51628-20.c b/gcc/testsuite/gcc.dg/pr51628-20.c
index 80888283b73..bcdbff1e554 100644
--- a/gcc/testsuite/gcc.dg/pr51628-20.c
+++ b/gcc/testsuite/gcc.dg/pr51628-20.c
@@ -8,4 +8,4 @@ struct C { struct B b; } __attribute__ ((packed));
 extern struct C *p;
 
 long* g8 (void) { return p; }
-/* { dg-warning "may may result in an unaligned pointer value" "" { target *-*-* } .-1 } */
+/* { dg-warning "may result in an unaligned pointer value" "" { target *-*-* } .-1 } */
diff --git a/gcc/testsuite/gcc.dg/pr51628-21.c b/gcc/testsuite/gcc.dg/pr51628-21.c
index 3077e72c8d5..0c7fab75d8a 100644
--- a/gcc/testsuite/gcc.dg/pr51628-21.c
+++ b/gcc/testsuite/gcc.dg/pr51628-21.c
@@ -8,4 +8,4 @@ struct C { struct B b; } __attribute__ ((packed));
 extern struct C p[];
 
 long* g8 (void) { return p; }
-/* { dg-warning "may may result in an unaligned pointer value" "" { target *-*-* } .-1 } */
+/* { dg-warning "may result in an unaligned pointer value" "" { target *-*-* } .-1 } */
diff --git a/gcc/testsuite/gcc.dg/pr51628-25.c b/gcc/testsuite/gcc.dg/pr51628-25.c
index 2fc5c028711..94a3a8fbaf2 100644
--- a/gcc/testsuite/gcc.dg/pr51628-25.c
+++ b/gcc/testsuite/gcc.dg/pr51628-25.c
@@ -6,4 +6,4 @@ struct B { int i; };
 struct C { struct B b; } __attribute__ ((packed));
 
 long* g8 (struct C *p) { return p; }
-/* { dg-warning "may may result in an unaligned pointer value" "" { target *-*-* } .-1 } */
+/* { dg-warning "may result in an unaligned pointer value" "" { target *-*-* } .-1 } */
-- 
2.20.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] C-family: Replace "may may" with "may" in warning message
  2019-01-13  5:00 [PATCH] C-family: Replace "may may" with "may" in warning message H.J. Lu
@ 2019-01-13  9:21 ` Jakub Jelinek
  0 siblings, 0 replies; 2+ messages in thread
From: Jakub Jelinek @ 2019-01-13  9:21 UTC (permalink / raw)
  To: H.J. Lu; +Cc: gcc-patches

On Sat, Jan 12, 2019 at 09:00:04PM -0800, H.J. Lu wrote:
> gcc/c-family/
> 
> 	* c-warn.c (warn_for_address_or_pointer_of_packed_member):
> 	Replace "may may" with "may" in warning message.
> 
> gcc/c-family/testsuite/
> 
> 	* gcc.dg/pr51628-20.c: Updated.
> 	* gcc.dg/pr51628-21.c: Likewise.
> 	* gcc.dg/pr51628-25.c: Likewise.

This is obvious.

	Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-13  9:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-13  5:00 [PATCH] C-family: Replace "may may" with "may" in warning message H.J. Lu
2019-01-13  9:21 ` Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).