public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/marxin-gcc-benchmark-branch)] testsuite/93697 fix inconsistent warning in testcase
@ 2020-03-30 10:59 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2020-03-30 10:59 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:12c763c68a28d0c002b382b15ec138a8bc01e3bf

commit 12c763c68a28d0c002b382b15ec138a8bc01e3bf
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Feb 12 10:03:09 2020 +0100

    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  <rguenther@suse.de>
    
            PR testsuite/93697
            * gcc.dg/pr93661.c: Pass -w, remove dg-warning.

Diff:
---
 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  <rguenther@suse.de>
+
+	PR testsuite/93697
+	* gcc.dg/pr93661.c: Pass -w, remove dg-warning.
+
 2020-02-11  David Malcolm  <dmalcolm@redhat.com>
 
 	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);
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-30 10:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-30 10:59 [gcc(refs/users/marxin/heads/marxin-gcc-benchmark-branch)] testsuite/93697 fix inconsistent warning in testcase Martin Liska

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).