diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2017-03-10 16:23:06 +0100 |
---|---|---|
committer | Segher Boessenkool <segher@gcc.gnu.org> | 2017-03-10 16:23:06 +0100 |
commit | 730e6e46344099be5deba0811e17d96c1179a2f5 (patch) | |
tree | 899de8b174f9f64873e6f93b4aec01f9c2b05af8 /gcc | |
parent | fc8f6304a9ce1869fd60db6b1863938d85e017d3 (diff) | |
download | gcc-730e6e46344099be5deba0811e17d96c1179a2f5.zip gcc-730e6e46344099be5deba0811e17d96c1179a2f5.tar.gz gcc-730e6e46344099be5deba0811e17d96c1179a2f5.tar.bz2 |
testsuite: attr-alloc_size-11.c (PR79356)
As stated in the PR (and elsewhere), this test now passes on aarch64,
ia64, mips, powerpc, sparc, and s390x. This patch disables the xfails
for those targets.
PR testsuite/79356
* gcc.dg/attr-alloc_size-11.c: Don't xfail on aarch64, ia64, mips,
powerpc, sparc, or s390x.
From-SVN: r246032
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/attr-alloc_size-11.c | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ef5609c..efee7c1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-03-10 Segher Boessenkool <segher@kernel.crashing.org> + + PR testsuite/79356 + * gcc.dg/attr-alloc_size-11.c: Don't xfail on aarch64, ia64, mips, + powerpc, sparc, or s390x. + 2017-03-10 Pat Haugen <pthaugen@us.ibm.com> PR target/79907 diff --git a/gcc/testsuite/gcc.dg/attr-alloc_size-11.c b/gcc/testsuite/gcc.dg/attr-alloc_size-11.c index fac8b18..ccf2c21 100644 --- a/gcc/testsuite/gcc.dg/attr-alloc_size-11.c +++ b/gcc/testsuite/gcc.dg/attr-alloc_size-11.c @@ -45,10 +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 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*-*-* 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*-*-* ia64-*-* mips*-*-* powerpc*-*-* sparc*-*-* s390x-*-* } } } } */ 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" } */ |