freebsd-src/cddl
Mark Johnston a853b4c425 ctfconvert: Give bitfield types names distinct from the base type
CTF integers have an explicit width and so can be used to represent
bitfields.  Bitfield types emitted by ctfconvert(1) share the name of
the base integer type, so a struct field with type "unsigned int : 15"
will have a type named "unsigned int".

To avoid ambiguity when looking up types by name, add a suffix to names
of bitfield types to distinguish them from the base type.  Then, if
ctfmerge happens to order bitfield types before the corresponding base
type in a CTF file, a name lookup will return the base type, which is
always going to be the desired behaviour.

PR:		265403
Reported by:	cy
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 1165fc9a52)
2022-08-11 10:36:11 -04:00
..
compat/opensolaris Delete obsolete Solaris compat files 2021-06-17 12:40:00 -06:00
contrib/opensolaris ctfconvert: Give bitfield types names distinct from the base type 2022-08-11 10:36:11 -04:00
lib ctf: Import ctf.h from OpenBSD 2022-04-06 20:30:44 -04:00
sbin zfs: merge openzfs/zfs@c3b60eded (zfs-2.1-release) into stable/13 2021-06-13 05:43:03 +02:00
share zfs: merge openzfs/zfs@7d9f3ef0e (zfs-2.1-release) into stable/13 2021-06-08 17:01:18 +02:00
tests
usr.bin ctf: Link CTF toolchain man pages to ctf.5 2022-04-27 20:34:30 -04:00
usr.libexec zfs: attach zpool_influxdb to build 2021-07-10 12:26:42 +02:00
usr.sbin pkgbase: Create a FreeBSD-dwatch package 2022-01-05 18:23:49 +01:00
Makefile zfs: attach zpool_influxdb to build 2021-07-10 12:26:42 +02:00
Makefile.inc Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00