public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] testsuite/102690: Only check warning for lp64 in Warray-bounds-16.C
@ 2022-06-28 13:39 Kito Cheng
  2022-06-29  9:00 ` Richard Biener
  0 siblings, 1 reply; 4+ messages in thread
From: Kito Cheng @ 2022-06-28 13:39 UTC (permalink / raw)
  To: gcc-patches, kito.cheng, Martin Sebor, Richard Biener; +Cc: Kito Cheng

That warning won't happen on ilp32 targets, seems like Andrew Pinski
already mention that[1] before.

Verified on riscv32-unknown-elf and riscv64-unknown-elf.

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92879#c1

gcc/testsuite/ChangeLog:

	PR testsuite/102690
	* g++.dg/warn/Warray-bounds-16.C: XFAIL only on lp64 for the
	warning.
---
 gcc/testsuite/g++.dg/warn/Warray-bounds-16.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/g++.dg/warn/Warray-bounds-16.C b/gcc/testsuite/g++.dg/warn/Warray-bounds-16.C
index 89cbadb91c7..45a14b19ea3 100644
--- a/gcc/testsuite/g++.dg/warn/Warray-bounds-16.C
+++ b/gcc/testsuite/g++.dg/warn/Warray-bounds-16.C
@@ -19,7 +19,7 @@ struct S
     p = (int*) new unsigned char [sizeof (int) * m];
 
     for (int i = 0; i < m; i++)
-      new (p + i) int (); /* { dg-bogus "bounds" "pr102690" { xfail *-*-* } } */
+      new (p + i) int (); /* { dg-bogus "bounds" "pr102690" { xfail lp64 } } */
   }
 };
 
-- 
2.34.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-30  6:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-28 13:39 [PATCH] testsuite/102690: Only check warning for lp64 in Warray-bounds-16.C Kito Cheng
2022-06-29  9:00 ` Richard Biener
2022-06-30  2:16   ` Kito Cheng
2022-06-30  6:52     ` Richard Biener

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).