]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - include/ChangeLog
libctf: prohibit nameless ints, floats, typedefs and forwards
authorNick Alcock <nick.alcock@oracle.com>
Wed, 27 Jan 2021 19:55:45 +0000 (19:55 +0000)
committerNick Alcock <nick.alcock@oracle.com>
Thu, 4 Feb 2021 16:01:53 +0000 (16:01 +0000)
commitcaa170493e884215af4d07ea891ed1e2eeeb0578
tree0d247c34146921550f50dd93081922fc2096132c
parent78f28b89e8c7a2c9e262e2819f0da5629f226efc
libctf: prohibit nameless ints, floats, typedefs and forwards

Now that "anonymous typedef nodes" have been extirpated, we can mandate
that things that have names in C must have names in CTF too.  (Unlike
the no-forwards embarrassment, the deduplicator does nothing special
with names: types that have names in C will have the same name in CTF.
So we can assume that the CTF rules and the C rules are the same.)

include/ChangeLog
2021-01-27  Nick Alcock  <nick.alcock@oracle.com>

* ctf-api.h (ECTF_NONAME): New.
(ECTF_NERR): Adjust.

libctf/ChangeLog
2021-01-27  Nick Alcock  <nick.alcock@oracle.com>

* ctf-create.c (ctf_add_encoded): Add check for non-empty name.
(ctf_add_forward): Likewise.
(ctf_add_typedef): Likewise.
include/ChangeLog
include/ctf-api.h
libctf/ChangeLog
libctf/ctf-create.c