public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* LTO and adding extra information from extra passes
@ 2009-09-02 20:06 Basile STARYNKEVITCH
  2009-09-02 20:18 ` Richard Guenther
  2009-09-03 12:50 ` Diego Novillo
  0 siblings, 2 replies; 6+ messages in thread
From: Basile STARYNKEVITCH @ 2009-09-02 20:06 UTC (permalink / raw)
  To: GCC Mailing List

Hello All,

My feeling is that the Link Time Optimisation (LTO) effort should be 
soon (=is expected to be, or is already) merged inside GCC trunk (future 
4.5).

Several years ago, I asked if there is any possibility for an additional 
pass to profit of LTO infrastructure to add some extra data into LTO 
stuff (which is probably DWARF related inside ELF object files, but I am 
not sure) and to retrieve it. I remember that the answer was of course not.

Now we have a working plugin infrastructure, and I believe it would be 
very sensible for some plugin to register passes which add persistent 
information (as does LTO with its Gimple related representation) into 
object files and to retrieve it.

Is there is still a major objection against that, or is there some API 
usable from plguins for that purpose?

Even the mere ability to add inside the LTO data a chunk of bytes 
identified by the name of the plugin would be great. Of course, some 
more features could be welcome (e.g. the ability to add data specific to 
each compiled function or cgraph_node or whatever, or even to each 
gimple...).

I could imagine that a plugin might be interested in adding say some 
information into the object file (when ordinary compilation for LTO of a 
single compilation unit happens) and later retrieve it (when link time 
optimisation occur merging several object files.)

A dream case example would be a plugin for whole program static analysis.

Regards.
-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-09-03 12:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-02 20:06 LTO and adding extra information from extra passes Basile STARYNKEVITCH
2009-09-02 20:18 ` Richard Guenther
2009-09-02 20:24   ` Basile STARYNKEVITCH
2009-09-02 20:35     ` Richard Guenther
2009-09-02 20:37       ` Basile STARYNKEVITCH
2009-09-03 12:50 ` Diego Novillo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).