[rfa] libiberty: splay tree performance improvement

Frank Ch. Eigler fche@redhat.com
Mon Jun 28 21:43:00 GMT 2004


Hi -

> [...]
> > There are no references to the type name outside libiberty in
> > either gcc or gdb code bases.  Can you suggest another
> > nonexistence assurance test?
> 
> Hmm... I wonder if we can tag the structure such that it has an
> indeterminate size when used outside of libiberty/splay-tree.c, so
> that attempts to take sizeof(splay_tree_s) fail?

Well, the canonical method is to not have the declarations of these
structs within the public header at all, just to use opaque pointers
within the API, which by the way the code looks quite ready for.

With the GDB nonuse news, is the patch ok to commit (with the struct
field additions moved to the bottom as requested)?


- FChE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040628/4a704d2a/attachment.sig>


More information about the Gcc-patches mailing list