Commit ae0c28bb by Martin Sebor Committed by Martin Sebor

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
parent f84b3c0b
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> 2018-03-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
PR target/83009 PR target/83009
......
...@@ -64,5 +64,10 @@ void test_strcpy_bounds_memarray_range (void) ...@@ -64,5 +64,10 @@ void test_strcpy_bounds_memarray_range (void)
TM ("01", "", ma.a5 + i, ma.a5); TM ("01", "", ma.a5 + i, ma.a5);
TM ("012", "", 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 ("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
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment