On Fri, Mar 31, 2017 at 03:37:33PM -0600, Martin Sebor wrote: > On 03/29/2017 04:23 AM, Dominik Vogt wrote: > >The attached patch removes the XFAIL in attr-alloc_size-11.c on > >s390. (PR 79356). > >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79356 > > > >Untested. > > It looks like the only target the test does fail on is x86. > > The attached patch simplifies the test to XFAIL just those. > It passes with cross-compilers for arm-linux-gnueabi-*-*, > i386-pc-solaris2.11, powerpc64le-*-*, sparcv9-solaris2.11, > and s360*-*-*. > > I don't have ready access to an s390 machine. I assume you > do. Does it work for you?
Yes. > diff --git a/gcc/testsuite/gcc.dg/attr-alloc_size-11.c > b/gcc/testsuite/gcc.dg/attr-alloc_size-11.c > index e5f2157..19e8680 100644 > --- a/gcc/testsuite/gcc.dg/attr-alloc_size-11.c > +++ b/gcc/testsuite/gcc.dg/attr-alloc_size-11.c > @@ -47,8 +47,8 @@ typedef __SIZE_TYPE__ size_t; > > /* The following tests fail because of missing range information. The xfail > exclusions are PR79356. */ > -TEST (signed char, SCHAR_MIN + 2, ALLOC_MAX); /* { dg-warning "argument 1 > range \\\[13, \[0-9\]+\\\] exceeds maximum object size 12" "missing range > info for signed char" { xfail { ! { aarch64*-*-* arm*-*-* ia64-*-* mips*-*-* > powerpc*-*-* sparc*-*-* s390x-*-* } } } } */ > -TEST (short, SHRT_MIN + 2, ALLOC_MAX); /* { dg-warning "argument 1 range > \\\[13, \[0-9\]+\\\] exceeds maximum object size 12" "missing range info for > short" { xfail { ! { aarch64*-*-* arm*-*-* ia64-*-* mips*-*-* powerpc*-*-* > sparc*-*-* s390x-*-* } } } } */ > +TEST (signed char, SCHAR_MIN + 2, ALLOC_MAX); /* { dg-warning "argument 1 > range \\\[13, \[0-9\]+\\\] exceeds maximum object size 12" "bug 80086" { > xfail { i?86-*-* x86_64-*-* } } } */ > +TEST (short, SHRT_MIN + 2, ALLOC_MAX); /* { dg-warning "argument 1 range > \\\[13, \[0-9\]+\\\] exceeds maximum object size 12" "bug 80086" { xfail { > i?86-*-* x86_64-*-* } } } */ > TEST (int, INT_MIN + 2, ALLOC_MAX); /* { dg-warning "argument 1 range > \\\[13, \[0-9\]+\\\] exceeds maximum object size 12" } */ > TEST (int, -3, ALLOC_MAX); /* { dg-warning "argument 1 range > \\\[13, \[0-9\]+\\\] exceeds maximum object size 12" } */ > TEST (int, -2, ALLOC_MAX); /* { dg-warning "argument 1 range > \\\[13, \[0-9\]+\\\] exceeds maximum object size 12" } */ Ciao Dominik ^_^ ^_^ -- Dominik Vogt IBM Germany