From 5e2dae50d2dced9896048e036e2c8bebfc65472c Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 17 Feb 2020 13:21:34 +0100 Subject: [PATCH] Fix grammar in error message. 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 | 5 +++++ gcc/ipa-devirt.c | 2 +- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/lto/odr-8_1.C | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8af3c2a..ef96849 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2020-02-17 Martin Liska + PR ipa/93760 + * ipa-devirt.c (odr_types_equivalent_p): Fix grammar. + +2020-02-17 Martin Liska + PR translation/93755 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix double quotes. diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index b04cae7..bd9f344 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/ChangeLog b/gcc/testsuite/ChangeLog index b326529..0de8adf 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-02-17 Martin Liska + + PR ipa/93760 + * g++.dg/lto/odr-8_1.C: Fix grammar. + 2020-02-17 Richard Biener PR c/86134 diff --git a/gcc/testsuite/g++.dg/lto/odr-8_1.C b/gcc/testsuite/g++.dg/lto/odr-8_1.C index cbcd15d..501dbbd 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() -- 2.7.4