]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix grammar in error message.
authorMartin Liska <mliska@suse.cz>
Mon, 17 Feb 2020 12:21:34 +0000 (13:21 +0100)
committerMartin Liska <mliska@suse.cz>
Mon, 17 Feb 2020 12:21:34 +0000 (13:21 +0100)
PR ipa/93760
* ipa-devirt.c (odr_types_equivalent_p): Fix grammar.
PR ipa/93760
* g++.dg/lto/odr-8_1.C: Fix grammar.

gcc/ChangeLog
gcc/ipa-devirt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/odr-8_1.C

index 8af3c2ae4ae1cce6124114cb4f2d2376e2047f48..ef968492ee12be6e87a668cd21bf86723bec2cbe 100644 (file)
@@ -1,3 +1,8 @@
+2020-02-17  Martin Liska  <mliska@suse.cz>
+
+       PR ipa/93760
+       * ipa-devirt.c (odr_types_equivalent_p): Fix grammar.
+
 2020-02-17  Martin Liska  <mliska@suse.cz>
 
        PR translation/93755
index b04cae704f9bc06b1ff79b5831db8dab797da7f1..bd9f3441773332af53fd3ca5d99df0a5b9004b2a 100644 (file)
@@ -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;
     }
index b326529ac75ec32ee8f3c94fcb3043199fb22004..0de8adf70e34ab4e12f6f7e6bb34ebee6781f6b6 100644 (file)
@@ -1,3 +1,8 @@
+2020-02-17  Martin Liska  <mliska@suse.cz>
+
+       PR ipa/93760
+       * g++.dg/lto/odr-8_1.C: Fix grammar.
+
 2020-02-17  Richard Biener  <rguenther@suse.de>
 
        PR c/86134
index cbcd15d76ad10ae9c7ded18ef488597862c709f7..501dbbdd1b2800df95156c448021b1c3ebf92048 100644 (file)
@@ -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()