diff mbox series

testsuite/s390: Silence warning in pr80725.c

Message ID 2c3d62b2-d5f3-297d-76ef-1a659842eac1@linux.ibm.com
State New
Headers show
Series testsuite/s390: Silence warning in pr80725.c | expand

Commit Message

Robin Dapp April 13, 2022, 7:35 a.m. UTC
Hi,

this test case checks that we do not ICE but FAILs because of
-Wint-to-pointer-cast.  Silence this warning.

Is it OK?

Regards
 Robin

gcc/testsuite/ChangeLog:

	* gcc.target/s390/pr80725.c: Add -Wno-int-to-pointer-cast.

---
 gcc/testsuite/gcc.target/s390/pr80725.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andreas Krebbel April 14, 2022, 6:06 a.m. UTC | #1
On 4/13/22 09:35, Robin Dapp wrote:
> Hi,
> 
> this test case checks that we do not ICE but FAILs because of
> -Wint-to-pointer-cast.  Silence this warning.
> 
> Is it OK?

Ok. Thanks!

Andreas
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.target/s390/pr80725.c
b/gcc/testsuite/gcc.target/s390/pr80725.c
index d556e6ba7ca..18f1427b25e 100644
--- a/gcc/testsuite/gcc.target/s390/pr80725.c
+++ b/gcc/testsuite/gcc.target/s390/pr80725.c
@@ -1,7 +1,7 @@ 
 /* Regression test for PR/80725.  */

 /* { dg-do compile } */
-/* { dg-options "-O2 -march=zEC12" } */
+/* { dg-options "-O2 -march=zEC12 -Wno-int-to-pointer-cast" } */

 int a, e;
 const char b;