diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2018-01-17 09:11:07 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2018-01-17 09:11:07 +0000 |
commit | 67f40e182c78353bfeac90e776e194833659d139 (patch) | |
tree | f422ec01d98f9e33946f83a138cee6795b00c846 /gcc | |
parent | a3ed8bc3e61db12571bee958812b850160bc18b9 (diff) | |
download | gcc-67f40e182c78353bfeac90e776e194833659d139.zip gcc-67f40e182c78353bfeac90e776e194833659d139.tar.gz gcc-67f40e182c78353bfeac90e776e194833659d139.tar.bz2 |
* c-c++-common/Wrestrict.c (test_strcpy_range): Revert latest change.
From-SVN: r256778
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | 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 29b9cb8..5401be1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2018-01-16 Eric Botcazou <ebotcazou@adacore.com> + + * c-c++-common/Wrestrict.c (test_strcpy_range): Revert latest change. + 2018-01-16 Sebastian Peryt <sebastian.peryt@intel.com> PR target/83546 diff --git a/gcc/testsuite/c-c++-common/Wrestrict.c b/gcc/testsuite/c-c++-common/Wrestrict.c index 5fcbbfd..671497e 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 (); |