From 940242cd07ef363026e6b231395edd2316b4c36a Mon Sep 17 00:00:00 2001
From: Martin Sebor <msebor@redhat.com>
Date: Thu, 12 Jan 2017 18:50:26 +0000
Subject: [PATCH] re PR testsuite/79051 (FAIL: gcc.dg/attr-alloc_size-4.c 
 (test for warnings, line 140))

PR testsuite/79051

gcc/testsuite/ChangeLog:
	* gcc.dg/attr-alloc_size-4.c: Work harder to avoid false negatives
	due to bug 79054.

From-SVN: r244382
---
 gcc/testsuite/ChangeLog                  | 3 ++-
 gcc/testsuite/gcc.dg/attr-alloc_size-4.c | 4 +---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 69c959c12e84..7952521525ba 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,7 +1,8 @@
 2017-01-12  Martin Sebor  <msebor@redhat.com>
 
 	PR testsuite/79051
-	* gcc.dg/attr-alloc_size-4.c: Avoid false negatives due to bug 79054.
+	* gcc.dg/attr-alloc_size-4.c: Work harder to avoid false negatives
+	due to bug 79054.
 
 2017-01-12  David Edelsohn  <dje.gcc@gmail.com>
 
diff --git a/gcc/testsuite/gcc.dg/attr-alloc_size-4.c b/gcc/testsuite/gcc.dg/attr-alloc_size-4.c
index d50b436b26d6..f133aa8b0965 100644
--- a/gcc/testsuite/gcc.dg/attr-alloc_size-4.c
+++ b/gcc/testsuite/gcc.dg/attr-alloc_size-4.c
@@ -138,10 +138,8 @@ 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 __SIZEOF_LONG__ == 8
   /* 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 { lp64 } } } */
-#endif
+  sink (f_int_1 (SAR (min + 2, 1235)));   /* { dg-warning "argument 1 range \\\[1236, \[0-9\]+\\\] exceeds maximum object size 1234" "" { target { x86_64-*-* } } } */
 
   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