+2017-01-12 Martin Sebor <msebor@redhat.com>
+
+ PR testsuite/791051
+ * gcc.dg/attr-alloc_size-4.c: Avoid false negatives due to bug 79054.
+
2017-01-12 David Edelsohn <dje.gcc@gmail.com>
* gcc.dg/pr78768.c: Require LTO.
sink (f_int_1 (SAR (-3, 123)));
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)));
- sink (f_int_1 (SAR (min + 2, 1235))); /* { dg-warning "argument 1 range \\\[1236, \[0-9\]+\\\] exceeds maximum object size 1234" } */
+
+#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 (0, max))); /* { dg-warning "argument 1 range \\\[-\[0-9\]*, -1\\\] is negative" } */
/* The range below includes zero which would be diagnosed by
-Walloc-size-zero but since all other values are negative it