If you know GCC well, please consider looking at the file treetree.c and resolving any questions marked "???".
Go to the first, previous, next, last section, table of contents.