diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2023-02-27 20:44:46 +0100 |
---|---|---|
committer | Hans-Peter Nilsson <hp@bitrange.com> | 2023-02-28 02:30:38 +0100 |
commit | cf2ba92481d56ab923ccae96f29764e871979451 (patch) | |
tree | de273da934562a6c66e28a6084634789940f0122 /gcc | |
parent | cdbcd46c1b521c57637af6d001241aa658e96651 (diff) | |
download | gcc-cf2ba92481d56ab923ccae96f29764e871979451.zip gcc-cf2ba92481d56ab923ccae96f29764e871979451.tar.gz gcc-cf2ba92481d56ab923ccae96f29764e871979451.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/plugin/infoleak-vfio_iommu_type1.c | 6 |
1 files 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 51ad5db..af320b6 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 } |