From: Richard Biener Date: Wed, 12 Feb 2020 09:03:09 +0000 (+0100) Subject: testsuite/93697 fix inconsistent warning in testcase X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=12c763c68a28d0c002b382b15ec138a8bc01e3bf;p=gcc.git testsuite/93697 fix inconsistent warning in testcase The warning was emitted inconsistently on targets, so disable it since the testcase was for an ICE. 2020-02-12 Richard Biener PR testsuite/93697 * gcc.dg/pr93661.c: Pass -w, remove dg-warning. --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e7e630bdb74..7ac9328d608 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-02-12 Richard Biener + + PR testsuite/93697 + * gcc.dg/pr93661.c: Pass -w, remove dg-warning. + 2020-02-11 David Malcolm PR analyzer/93288 diff --git a/gcc/testsuite/gcc.dg/pr93661.c b/gcc/testsuite/gcc.dg/pr93661.c index e311ba545c4..bc77fcab69e 100644 --- a/gcc/testsuite/gcc.dg/pr93661.c +++ b/gcc/testsuite/gcc.dg/pr93661.c @@ -1,9 +1,9 @@ /* { dg-do compile } */ -/* { dg-options "-O2" } */ +/* { dg-options "-O2 -w" } */ int f () { unsigned x = 0xffffffff; - __builtin_memset (1+(char *) &x, 0, -1); /* { dg-warning "maximum object size" } */ + __builtin_memset (1+(char *) &x, 0, -1); return (x != 0xf0000000); }