From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2093) id 668EF3852744; Thu, 30 Jun 2022 02:15:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 668EF3852744 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Kito Cheng To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-1357] testsuite/102690: Only check warning for lp64 in Warray-bounds-16.C X-Act-Checkin: gcc X-Git-Author: Kito Cheng X-Git-Refname: refs/heads/master X-Git-Oldrev: 918ccccbb0e78ae42bfcf808a1e93a8f6b9d02ea X-Git-Newrev: 0f6eef398045deb2a62d18b526831719c7c20c8a Message-Id: <20220630021511.668EF3852744@sourceware.org> Date: Thu, 30 Jun 2022 02:15:11 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2022 02:15:11 -0000 https://gcc.gnu.org/g:0f6eef398045deb2a62d18b526831719c7c20c8a commit r13-1357-g0f6eef398045deb2a62d18b526831719c7c20c8a Author: Kito Cheng Date: Tue Jun 28 18:43:42 2022 +0800 testsuite/102690: Only check warning for lp64 in Warray-bounds-16.C 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. Diff: --- 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 } } */ } };