aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2019-10-29 16:14:18 +0000
committerMartin Sebor <msebor@gcc.gnu.org>2019-10-29 10:14:18 -0600
commit668ca0509c74782ace9449ccb6605a6dddeec338 (patch)
tree603b4ec2358bd0a8717aca72dde5be51a8a884ae
parent1c40e11956eff80fd9ec305206ea5aaf73ce4fd9 (diff)
downloadgcc-668ca0509c74782ace9449ccb6605a6dddeec338.zip
gcc-668ca0509c74782ace9449ccb6605a6dddeec338.tar.gz
gcc-668ca0509c74782ace9449ccb6605a6dddeec338.tar.bz2
re PR testsuite/92144 (c-c++-common/Warray-bounds-4.c still fails after r277080)
gcc/testsuite/ChangeLog: PR testsuite/92144 * c-c++-common/Warray-bounds-4.c: Disable test to avoid failures due to PR 83543. From-SVN: r277576
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/c-c++-common/Warray-bounds-4.c13
2 files changed, 13 insertions, 6 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 24861e4..aba9922 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2019-10-29 Martin Sebor <msebor@redhat.com>
+
+ PR testsuite/92144
+ * c-c++-common/Warray-bounds-4.c: Disable test to avoid failures
+ due to PR 83543.
+
2019-10-29 Richard Biener <rguenther@suse.de>
PR tree-optimization/92260
diff --git a/gcc/testsuite/c-c++-common/Warray-bounds-4.c b/gcc/testsuite/c-c++-common/Warray-bounds-4.c
index a09a08d..22a23a1 100644
--- a/gcc/testsuite/c-c++-common/Warray-bounds-4.c
+++ b/gcc/testsuite/c-c++-common/Warray-bounds-4.c
@@ -48,6 +48,10 @@ void test_memcpy_bounds_memarray_range (void)
TM (ma.a5, ma.a5 + j, ma.a5, 9); /* { dg-warning "offset \\\[5, 9] from the object at .ma. is out of the bounds of referenced subobject .\(MA::\)?a5. with type .char ?\\\[5]. at offset 0" } */
}
+#if __i386__ || __x86_64__
+
+/* Disabled for non-x86 targets due to bug 83543. */
+
void test_strcpy_bounds_memarray_range (void)
{
#undef TM
@@ -63,11 +67,8 @@ void test_strcpy_bounds_memarray_range (void)
TM ("0", "", ma.a5 + i, ma.a5);
TM ("01", "", ma.a5 + i, ma.a5);
TM ("012", "", ma.a5 + i, ma.a5);
- TM ("0123", "", ma.a5 + i, ma.a5); /* { dg-warning "offset 5 from the object at .ma. is out of the bounds of referenced subobject .\(MA::\)?a5. with type .char *\\\[5]. at offset 0" "strcpy" } */
-
-#if __i386__ || __x86_64__
- /* Disabled for non-x86 targets due to bug 83462. */
- TM ("", "012345", ma.a7 + i, ma.a7); /* { dg-warning "offset 12 from the object at .ma. is out of the bounds of referenced subobject .\(MA::\)?a7. with type .char ?\\\[7]. at offset 5" "strcpy" { xfail { ! { i?86-*-* x86_64-*-* } } } } */
-#endif
+ TM ("0123", "", ma.a5 + i, ma.a5); /* { dg-warning "offset 5 from the object at .ma. is out of the bounds of referenced subobject .\(MA::\)?a5. with type .char *\\\[5]. at offset 0" "pr83543" { xfail { ! { i?86-*-* x86_64-*-* } } } } */
+ TM ("", "012345", ma.a7 + i, ma.a7); /* { dg-warning "offset 12 from the object at .ma. is out of the bounds of referenced subobject .\(MA::\)?a7. with type .char ?\\\[7]. at offset 5" "pr83543" { xfail { ! { i?86-*-* x86_64-*-* } } } } */
}
+#endif