From 12c763c68a28d0c002b382b15ec138a8bc01e3bf Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 12 Feb 2020 10:03:09 +0100 Subject: [PATCH] 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. --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/pr93661.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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); } -- 2.30.2