This is the mail archive of the gcc@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 and adding extra information from extra passes


Richard Guenther wrote:
On Wed, Sep 2, 2009 at 10:06 PM, Basile
STARYNKEVITCH<basile@starynkevitch.net> wrote:
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.
[...]


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.

The IPA pass infrastructure has all the necessary bits for this.

How do you deal with several compilation units?


I was thinking LTO is designed for that?

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} ***


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