From ae0c28bb271ab63aef76e77eacf57bbc23a45564 Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Tue, 27 Mar 2018 17:08:41 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/c-c++-common/Warray-bounds-4.c | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) 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 + + PR testsuite/83462 + * c-c++-common/Warray-bounds-4.c: Disable assertion for targets + other than x86. + 2018-03-27 Kyrylo Tkachov 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 + } -- 2.7.4