Martin L. (CC'd) pointed out to me that the introduction
of the -Wstringop-overflow option has changed the text of
the warning but failed to adjust a couple of dg-bogus
directives in existing tests that used the previous text
as the pattern.  r246827 adjusts the pattern to match
the new diagnostic.  I committed it as obvious.

Martin

commit c3f84aee68366cf40d9b62eb768bcf08c05eecb1
Author: msebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Mon Apr 10 23:26:17 2017 +0000

    Adjust dg-bogus pattern to match the text of the changed diagnostic.

    gcc/testsuite:
            * gcc.dg/pr40340-3.c: Adjust directive pattern.
            * gcc.dg/pr40340-4.c: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246827 138bc75d-0d04-0410-961f-82ee72b054a4

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 2104392..8da9f09 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,6 +1,11 @@
+2017-04-10  Martin Sebor  <mse...@redhat.com>
+
+       * gcc.dg/pr40340-3.c: Adjust directive pattern.
+       * gcc.dg/pr40340-4.c: Same.
+
 2017-04-10  Nicolas Koenig  <koeni...@student.ethz.ch>

-       PR fortran/69498
+       PR fortran/69498
        * gfortran.dg/submodule_unexp.f90: Modified test
        to account for new error.
        * gfortran.dg/submodule_twice.f90: New Test
diff --git a/gcc/testsuite/gcc.dg/pr40340-3.c b/gcc/testsuite/gcc.dg/pr40340-3.c
index 5ef09e0..f771a00 100644
--- a/gcc/testsuite/gcc.dg/pr40340-3.c
+++ b/gcc/testsuite/gcc.dg/pr40340-3.c
@@ -12,4 +12,4 @@ main (void)
   return 0;
 }

-/* { dg-bogus "will always overflow destination buffer" "" { target *-*-* } 10 } */
+/* { dg-bogus "overflow" "" { target *-*-* } 10 } */
diff --git a/gcc/testsuite/gcc.dg/pr40340-4.c b/gcc/testsuite/gcc.dg/pr40340-4.c
index d3f020c..695d0ac 100644
--- a/gcc/testsuite/gcc.dg/pr40340-4.c
+++ b/gcc/testsuite/gcc.dg/pr40340-4.c
@@ -13,4 +13,4 @@ main (void)
   return 0;
 }

-/* { dg-bogus "will always overflow destination buffer" "" { target *-*-* } 10 } */
+/* { dg-bogus "overflow" "" { target *-*-* } 10 } */

Reply via email to