From b336037ddc6dc67f4dc93a996ab2bfa93b24e0fd Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Mon, 16 Jan 2017 15:50:47 +0000 Subject: [PATCH] PR testsuite/79051 - FAIL: gcc.dg/attr-alloc_size-4.c (test for warnings, line 140) gcc/testsuite/ChangeLog: * gcc.dg/attr-alloc_size-4.c: Avoid exercising a test case except on x86. From-SVN: r244497 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/attr-alloc_size-4.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f25ba45e2da..bc924e4a873 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-01-16 Martin Sebor + + PR testsuite/79051 + * gcc.dg/attr-alloc_size-4.c: Avoid exercising a test case except + on x86. + 2017-01-16 Paolo Carlini Revert: diff --git a/gcc/testsuite/gcc.dg/attr-alloc_size-4.c b/gcc/testsuite/gcc.dg/attr-alloc_size-4.c index f133aa8b096..7c33a1dd600 100644 --- a/gcc/testsuite/gcc.dg/attr-alloc_size-4.c +++ b/gcc/testsuite/gcc.dg/attr-alloc_size-4.c @@ -138,8 +138,10 @@ test_int_range (int n) sink (f_int_1 (SAR (-4, 1234))); /* { dg-warning "argument 1 range \\\[1235, \[0-9\]+\\\] exceeds maximum object size 1234" } */ sink (f_int_1 (SAR (min + 1, 1233))); +#if __i386__ || __x86_64__ /* Avoid failures described in bug 79051. */ sink (f_int_1 (SAR (min + 2, 1235))); /* { dg-warning "argument 1 range \\\[1236, \[0-9\]+\\\] exceeds maximum object size 1234" "" { target { x86_64-*-* } } } */ +#endif sink (f_int_1 (SAR (0, max))); /* { dg-warning "argument 1 range \\\[-\[0-9\]*, -1\\\] is negative" } */ /* The range below includes zero which would be diagnosed by -- 2.30.2