From 642402204d3e8c53a9cfefd0c7040da1cb1b076c Mon Sep 17 00:00:00 2001 From: ebotcazou Date: Wed, 17 Jan 2018 09:11:07 +0000 Subject: [PATCH] * c-c++-common/Wrestrict.c (test_strcpy_range): Revert latest change. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256778 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/c-c++-common/Wrestrict.c | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 29b9cb8faec..5401be1cbde 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2018-01-16 Eric Botcazou + + * c-c++-common/Wrestrict.c (test_strcpy_range): Revert latest change. + 2018-01-16 Sebastian Peryt PR target/83546 diff --git a/gcc/testsuite/c-c++-common/Wrestrict.c b/gcc/testsuite/c-c++-common/Wrestrict.c index 5fcbbfd169a..671497ea3e6 100644 --- a/gcc/testsuite/c-c++-common/Wrestrict.c +++ b/gcc/testsuite/c-c++-common/Wrestrict.c @@ -758,8 +758,7 @@ void test_strcpy_range (void) T (8, "012", a + r, a); /* { dg-warning "accessing 4 bytes at offsets \\\[3, \[0-9\]+] and 0 may overlap 1 byte at offset 3" "strcpy" } */ r = SR (DIFF_MAX - 2, DIFF_MAX - 1); - T (8, "0123", a + r, a); /* { dg-warning "accessing 5 bytes at offsets \\\[\[0-9\]+, \[0-9\]+] and 0 overlaps" "strcpy" } */ - /* { dg-warning "writing 5 bytes into a region of size 0 overflows" "memcpy" { target *-*-* } .-1 } */ + T (8, "012", a + r, a); /* { dg-warning "accessing 4 bytes at offsets \\\[\[0-9\]+, \[0-9\]+] and 0 overlaps" "strcpy" } */ /* Exercise the full range of ptrdiff_t. */ r = signed_value (); -- 2.11.4.GIT