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 ^_^ ^_^
--
Dominik Vogt
IBM Germany
gcc/testsuite/ChangeLog-pr79356
PR 79356
* gcc.dg/attr-alloc_size-11.c: Remove xfail for aarch64, ia64*,
powerpc*, sparc* and s390*.
>From 8486df212e3284e5fbdfb3f47bff59652e1e55a7 Mon Sep 17 00:00:00 2001
From: Dominik Vogt <[email protected]>
Date: Wed, 15 Feb 2017 17:39:07 +0100
Subject: [PATCH] PR 79356: Do not xfail attr-alloc_size-11.c on some
targets.
---
gcc/testsuite/gcc.dg/attr-alloc_size-11.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
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" } */
--
2.3.0