This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto][patch] Add a program to read IL symbol tables
On Thu, Aug 21, 2008 at 08:50, Rafael Espindola <espindola@google.com> wrote:
> I would love to see a modular gcc, but having the a symbol table
> library grow in that direction is strange. My strategy would be:
The symbol table is only a tiny part of the information contained in a
.lto file. Today, liblto would only have the symbol table, and little
by little we would add the rest.
> 1) Make lto work in the current environment. This will give us a truly
> complete IL for the first time in the history of GCC.
> 2) Now that gcc has an IL, change it to something we like. At this
> point we can start writing liblto. It should read and write IL and be
> completely independent of GCC (no gc for example).
> 3) With 2 working, this symbol table can be removed, since with an IL
> that can be accessed from a library, we can just read the decls.
Yes, that's exactly what I was proposing. And I would not remove the
symbol table, I would simply convert it into something that has the
actual DECLs in it. The symbol table is always useful.
Diego.