This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [lto][patch] Add a program to read IL symbol tables


> 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.

I not sure if we can do this little by little. We would have to start
coding liblto to read and write the full IL and then port gcc to use
it.

> 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.

That already exist. We have a section with the decls, but it is
impractical to parse trees out of gcc.

How about:

1) Commit a reviewed version of this.
2) Create the first part of the plugin (reading the symbols).
3) Start liblto.

I wouldn't start 3 until lto is fully capable. At least a bootstrap in
lto mode. We can start it earlier, but it will not get a lot of work
until gcc is ready to move to have its IL being handled by a library.

> Diego.
>

Cheers,
-- 
Rafael Avila de Espindola

Google Ireland Ltd.
Gordon House
Barrow Street
Dublin 4
Ireland

Registered in Dublin, Ireland
Registration Number: 368047


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]