From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2152) id EE09D3858D32; Tue, 28 Feb 2023 01:31:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE09D3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677547868; bh=rIB8dWaavVZ0x6eDvxgL0YJUFqKSmQ+R7SWhBYijb/M=; h=From:To:Subject:Date:From; b=WwdNeQPJx8gJXPNC+ebzVVgBVz70AkjeneP0p7VAAN/e2Yzw2KXLlpxFWUf/ewxcx 6zxsyY2MQcEFOb/uBhVIV/3dmXqpC1jrqtfQeSD4y1xIaIYtOvVHZ/kVgwtvDzdoHe x345U4tMfH4ArVEjqSiaGlGYlPz+KI3Isui55Npw= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Hans-Peter Nilsson To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-6369] testsuite: No xfail infoleak-vfio_iommu_type1.c bogus for default_packed X-Act-Checkin: gcc X-Git-Author: Hans-Peter Nilsson X-Git-Refname: refs/heads/master X-Git-Oldrev: cdbcd46c1b521c57637af6d001241aa658e96651 X-Git-Newrev: cf2ba92481d56ab923ccae96f29764e871979451 Message-Id: <20230228013108.EE09D3858D32@sourceware.org> Date: Tue, 28 Feb 2023 01:31:08 +0000 (GMT) List-Id: https://gcc.gnu.org/g:cf2ba92481d56ab923ccae96f29764e871979451 commit r13-6369-gcf2ba92481d56ab923ccae96f29764e871979451 Author: Hans-Peter Nilsson Date: Mon Feb 27 20:44:46 2023 +0100 testsuite: No xfail infoleak-vfio_iommu_type1.c bogus for default_packed There are no messages about padding for targets that don't pad, i.e. default_packed. Noticed for cris-elf, verified for pru-elf at gcc-testresults@. testsuite: * gcc.dg/plugin/infoleak-vfio_iommu_type1.c: Don't xfail bogus message for "default_packed" targets. Diff: --- gcc/testsuite/gcc.dg/plugin/infoleak-vfio_iommu_type1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.dg/plugin/infoleak-vfio_iommu_type1.c b/gcc/testsuite/gcc.dg/plugin/infoleak-vfio_iommu_type1.c index 51ad5db2bab..af320b6b17e 100644 --- a/gcc/testsuite/gcc.dg/plugin/infoleak-vfio_iommu_type1.c +++ b/gcc/testsuite/gcc.dg/plugin/infoleak-vfio_iommu_type1.c @@ -37,8 +37,8 @@ int vfio_iommu_type1_get_info(unsigned long arg) info.cap_offset = 0; } - /* The padding bytes (20-23) are uninitialized, but can't be written - back, since minsz is either 16 or 20. */ - return copy_to_user((void *)arg, &info, minsz) ? -14 : 0; /* { dg-bogus "exposure" "" { xfail *-*-* } } */ + /* The padding bytes (20-23, but applicable just for targets with padding) are + uninitialized, but can't be written back, since minsz is either 16 or 20. */ + return copy_to_user((void *)arg, &info, minsz) ? -14 : 0; /* { dg-bogus "exposure" "" { xfail { ! default_packed } } } */ // TODO: false +ve due to not handling minsz being either 16 or 20 }