diff mbox series

[OBVIOUS] Fix grammar in error message.

Message ID a9935347-cd2d-97fd-aa91-c6de3a453d06@suse.cz
State New
Headers show
Series [OBVIOUS] Fix grammar in error message. | expand

Commit Message

Martin Liška Feb. 17, 2020, 12:18 p.m. UTC
Hi.

One obvious fix suggested by Andrew P.

Martin

gcc/ChangeLog:

2020-02-17  Martin Liska  <mliska@suse.cz>

	PR ipa/93760
	* ipa-devirt.c (odr_types_equivalent_p): Fix grammar.

gcc/testsuite/ChangeLog:

2020-02-17  Martin Liska  <mliska@suse.cz>

	PR ipa/93760
	* g++.dg/lto/odr-8_1.C: Fix grammar.
---
  gcc/ipa-devirt.c                   | 2 +-
  gcc/testsuite/g++.dg/lto/odr-8_1.C | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c
index b04cae704f9..bd9f3441773 100644
--- a/gcc/ipa-devirt.c
+++ b/gcc/ipa-devirt.c
@@ -1548,7 +1548,7 @@  odr_types_equivalent_p (tree t1, tree t2, bool warn, bool *warned,
       && COMPLETE_TYPE_P (t1) && COMPLETE_TYPE_P (t2))
     {
       warn_odr (t1, t2, NULL, NULL, warn, warned,
-		G_("one type needs to be constructed while other not"));
+		G_("one type needs to be constructed while the other does not"));
       gcc_checking_assert (RECORD_OR_UNION_TYPE_P (t1));
       return false;
     }
diff --git a/gcc/testsuite/g++.dg/lto/odr-8_1.C b/gcc/testsuite/g++.dg/lto/odr-8_1.C
index cbcd15d76ad..501dbbdd1b2 100644
--- a/gcc/testsuite/g++.dg/lto/odr-8_1.C
+++ b/gcc/testsuite/g++.dg/lto/odr-8_1.C
@@ -1,4 +1,4 @@ 
-struct a {char c; a() {} a(struct a &) {}}; // { dg-lto-message "one type needs to be constructed while other not" }
+struct a {char c; a() {} a(struct a &) {}}; // { dg-lto-message "one type needs to be constructed while the other does not" }
 extern int test (struct a *a);
 int
 main()