testsuite/93697 fix inconsistent warning in testcase
diff mbox series

Message ID nycvar.YFH.7.76.2002121004040.18835@zhemvz.fhfr.qr
State New
Headers show
Series
  • testsuite/93697 fix inconsistent warning in testcase
Related show

Commit Message

Richard Biener Feb. 12, 2020, 9:04 a.m. UTC
The warning was emitted inconsistently on targets, so disable it since
the testcase was for an ICE.

2020-02-12  Richard Biener  <rguenther@suse.de>

	PR testsuite/93697
	* gcc.dg/pr93661.c: Pass -w, remove dg-warning.
---
 gcc/testsuite/gcc.dg/pr93661.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch
diff mbox series

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);
 }