diff options
author | Martin Sebor <msebor@redhat.com> | 2018-03-27 17:08:41 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2018-03-27 11:08:41 -0600 |
commit | ae0c28bb271ab63aef76e77eacf57bbc23a45564 (patch) | |
tree | af377752e7275c0c46f52f1cc2c3353f34ef097d /gcc | |
parent | f84b3c0bb84d976ef74829eb514671c8a88a8c40 (diff) | |
download | gcc-ae0c28bb271ab63aef76e77eacf57bbc23a45564.zip gcc-ae0c28bb271ab63aef76e77eacf57bbc23a45564.tar.gz gcc-ae0c28bb271ab63aef76e77eacf57bbc23a45564.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/Warray-bounds-4.c | 7 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 269df7a..a87d8a1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/c-c++-common/Warray-bounds-4.c b/gcc/testsuite/c-c++-common/Warray-bounds-4.c index 9c434eb..7a39b23 100644 --- a/gcc/testsuite/c-c++-common/Warray-bounds-4.c +++ b/gcc/testsuite/c-c++-common/Warray-bounds-4.c @@ -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 + } |