https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84995

--- Comment #17 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Jan Hubicka from comment #16)
> 
> Plugin interface should be good enough to allow LTO optimizing one
> binary with multiple compilers (multiple versions of GCC or GCC+LLVM
> combination) where obviously no cross-module optimization between
> compilers will happen but still each compiler will get acurate
> resolution data that will let it to optimize well within the portion of
> binary it understands.
> 
> We are missing way to specify multiple plugins to linker and some other
> supporting bits I believe.

Yes, the main issue is how we find lto-wrapper (COLLECT_GCC*
environment) and that lto-wrapper does _not_ work across GCC versions.

I guess lto-plugin would ideally partition the set of files according
to the LTO byte-code version and we'd have a way to lookup gcc and
lto-wrapper by LTO byte-code version.

> Honza

Reply via email to