PR testsuite/83462 - c-c++-common/Warray-bounds-3.c fails on arm-none-eabi

gcc/testsuite/ChangeLog:
	* c-c++-common/Warray-bounds-4.c: Disable assertion for targets
	other than x86.

From-SVN: r258896
This commit is contained in:
Martin Sebor 2018-03-27 17:08:41 +00:00 committed by Martin Sebor
parent f84b3c0bb8
commit ae0c28bb27
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2018-03-27 Martin Sebor <msebor@redhat.com>
PR testsuite/83462
* c-c++-common/Warray-bounds-4.c: Disable assertion for targets
other than x86.
2018-03-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
PR target/83009

View File

@ -64,5 +64,10 @@ void test_strcpy_bounds_memarray_range (void)
TM ("01", "", ma.a5 + i, ma.a5);
TM ("012", "", ma.a5 + i, ma.a5);
TM ("0123", "", ma.a5 + i, ma.a5); /* { dg-warning "offset 6 from the object at .ma. is out of the bounds of referenced subobject .a5. with type .char\\\[5]. at offset 0" "strcpy" { xfail *-*-* } } */
TM ("", "012345", ma.a7 + i, ma.a7); /* { dg-warning "offset 13 from the object at .ma. is out of the bounds of referenced subobject .\(MA::\)?a7. with type .char ?\\\[7]. at offset 5" "strcpy" { xfail sparc*-*-* visium-*-* } } */
#if __i386__ || __x86_64__
/* Disabled for non-x86 targets due to bug 83462. */
TM ("", "012345", ma.a7 + i, ma.a7); /* { dg-warning "offset 13 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
}