libctf: rip out dead code handling typedefs with no name
authorNick Alcock <nick.alcock@oracle.com>
Wed, 27 Jan 2021 19:41:49 +0000 (19:41 +0000)
committerNick Alcock <nick.alcock@oracle.com>
Thu, 4 Feb 2021 16:01:53 +0000 (16:01 +0000)
commit78f28b89e8c7a2c9e262e2819f0da5629f226efc
treee900c4a1676fdcb53141054e68160a844b58ad7d
parent35a01a045442f6860abba7246f215adefc9dfa5b
libctf: rip out dead code handling typedefs with no name

There is special code in libctf to handle typedefs with no name, which
the code calls "anonymous typedef nodes".

These monsters are obviously not something C programs can include: the
whole point of a ttypedef is to introduce a new name.  Looking back at
the history of DWARF in GCC, the only thing (outside C++ anonymous
namespaces) which can generate a DW_TAG_typedef without a DW_AT_name is
obsolete code to handle the long-removed -feliminate-dwarf2-dups option.
Looking at OpenSolaris, typedef nodes with no name couldn't be generated
by the DWARF->CTF converter at all (and its deduplicator barfed on
them): the only reason for the existence of this code is a special case
working around a peculiarity of stabs whereby types could sometimes be
referenced before they were introduced.

We don't need to carry code in libctf to handle special cases in an
obsolete OpenSolaris converter (that yields a format that isn't readable
by libctf anyway).  So drop it.

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

* ctf-open.c (init_types): Rip out code to check anonymous typedef
nodes.
* ctf-create.c (ctf_add_reftype): Likewise.
* ctf-lookup.c (refresh_pptrtab): Likewise.
libctf/ChangeLog
libctf/ctf-create.c
libctf/ctf-lookup.c
libctf/ctf-open.c
This page took 0.026312 seconds and 4 git commands to generate.