diff mbox

PR 79356: Do not xfail attr-alloc_size-11.c on some targets.

Message ID 20170215170154.GA4895@linux.vnet.ibm.com
State New
Headers show

Commit Message

Dominik Vogt Feb. 15, 2017, 5:01 p.m. UTC
The attached patch removes the xfail on two sub tests of
attr-alloc_size-11.c for the targets who were reported to produce
an XPASS:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79356

Tested on s390x biarch and s390.  Please check if the strings for
the other targets are correct.

Ciao

Dominik ^_^  ^_^

Comments

Rainer Orth Feb. 16, 2017, 10:38 a.m. UTC | #1
Hi Dominik,

> The attached patch removes the xfail on two sub tests of
> attr-alloc_size-11.c for the targets who were reported to produce
> an XPASS:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79356
>
> Tested on s390x biarch and s390.  Please check if the strings for
> the other targets are correct.

successfully tested on sparc-sun-solaris2.12.

Thanks.
        Rainer
diff mbox

Patch

diff --git a/gcc/testsuite/gcc.dg/attr-alloc_size-11.c b/gcc/testsuite/gcc.dg/attr-alloc_size-11.c
index fac8b18..077b725 100644
--- a/gcc/testsuite/gcc.dg/attr-alloc_size-11.c
+++ b/gcc/testsuite/gcc.dg/attr-alloc_size-11.c
@@ -45,9 +45,10 @@  typedef __SIZE_TYPE__    size_t;
     return CAT (alloc_anti_range_, __LINE__)(n);		\
   } typedef void dummy   /* Require a semicolon.  */
 
-/* The following tests fail because of missing range information.  */
-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 *-*-* } } */
-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 *-*-* } } */
+/* The following tests fail on some targets because of missing range
+   information.  */
+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-*-* ia64*-*-* powerpc*-*-* s390*-*-* sparc*-*-*" } } } */
+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-*-* ia64*-*-* powerpc*-*-* s390*-*-* sparc*-*-*" } } } */
 
 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" } */