Skip to content
Snippets Groups Projects
Commit cf2ba924 authored by Hans-Peter Nilsson's avatar Hans-Peter Nilsson Committed by Hans-Peter Nilsson
Browse files

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.
parent cdbcd46c
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment