From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2119) id EC87F3857701; Mon, 18 Sep 2023 18:26:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EC87F3857701 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695061615; bh=ZLzEYc2CyWV7Fno7JWkVp9HO64knFO7tfZ7V29fWbpU=; h=From:To:Subject:Date:From; b=mAuPpyXEEkypdEWOdwgzbvg2LBWbRVzqeKc/2FTMDgoaNg7Pmki3VrPJpFOBn8XqV rFF/RO/23+/keg9sV7eMEBbxqoB9juZNPaWaei0XiHop1qR6aziZu8CBRs385rPHOv 1QDMaJ+r9NdnK/0YHO4Hp99dg2YndiXIoDutjjJI= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Jeff Law To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] test: Remove XPASS for RISCV X-Act-Checkin: gcc X-Git-Author: Juzhe-Zhong X-Git-Refname: refs/vendors/riscv/heads/gcc-13-with-riscv-opts X-Git-Oldrev: cb9953a8aaeef220001f714f2767f6cc87273dd4 X-Git-Newrev: ccacef2e319bd794032401077b9876d1b6658a08 Message-Id: <20230918182655.EC87F3857701@sourceware.org> Date: Mon, 18 Sep 2023 18:26:55 +0000 (GMT) List-Id: https://gcc.gnu.org/g:ccacef2e319bd794032401077b9876d1b6658a08 commit ccacef2e319bd794032401077b9876d1b6658a08 Author: Juzhe-Zhong Date: Fri Sep 15 16:30:04 2023 +0800 test: Remove XPASS for RISCV Like ARM SVE, this test cause FAILs of XPASS: XPASS: gcc.dg/Wstringop-overflow-47.c pr97027 (test for warnings, line 72) XPASS: gcc.dg/Wstringop-overflow-47.c pr97027 (test for warnings, line 77) XPASS: gcc.dg/Wstringop-overflow-47.c pr97027 note (test for warnings, line 68) on RISC-V gcc/testsuite/ChangeLog: * gcc.dg/Wstringop-overflow-47.c: Add riscv. (cherry picked from commit e1ec05b800e2ee9f2dfc8f99b1c5622103f52cd5) Diff: --- gcc/testsuite/gcc.dg/Wstringop-overflow-47.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-47.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-47.c index 968f6ee4ad4..883921b097f 100644 --- a/gcc/testsuite/gcc.dg/Wstringop-overflow-47.c +++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-47.c @@ -65,15 +65,15 @@ void warn_i16_64 (int16_t i) like x86_64 it's a series of BIT_FIELD_REFs. The overflow by the former is detected but the latter is not yet. */ - extern char warn_a64[64]; // { dg-message "at offset (1|128) into destination object 'warn_a64' of size (63|64)" "pr97027 note" { xfail { ! aarch64-*-* } } } + extern char warn_a64[64]; // { dg-message "at offset (1|128) into destination object 'warn_a64' of size (63|64)" "pr97027 note" { xfail { ! { aarch64-*-* riscv*-*-* } } } } void *p = warn_a64 + 1; I16_64 *q = (I16_64*)p; - *q = (I16_64){ i }; // { dg-warning "writing (1 byte|64 bytes) into a region of size (0|63)" "pr97027" { xfail { ! aarch64-*-* } } } + *q = (I16_64){ i }; // { dg-warning "writing (1 byte|64 bytes) into a region of size (0|63)" "pr97027" { xfail { ! { aarch64-*-* riscv*-*-* } } } } char a64[64]; p = a64 + 1; q = (I16_64*)p; - *q = (I16_64){ i }; // { dg-warning "writing (1 byte|64 bytes) into a region of size (0|63)" "pr97027" { xfail { ! aarch64-*-* } } } + *q = (I16_64){ i }; // { dg-warning "writing (1 byte|64 bytes) into a region of size (0|63)" "pr97027" { xfail { ! { aarch64-*-* riscv*-*-* } } } } sink (p); }