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] LTO breaks if debug info is stripped from object files


>>>>> Diego Novillo writes:

Diego> I'm not sure if it's intended, but I don't think it's desirable.  The 
Diego> information needed to do LTO optimizations should be independent from 
Diego> the debugging information.

Diego> We could have a --strip-lto option for strip, but I don't think 
Diego> --strip-debug should remove LTO data.

	Having LTO dwarf information dependent on debugging section may
not be great, but is the alternative better?  If we place the lto dwarf
info in another section, should debuggers also look there?  Or should we
duplicate info in both .debug and .lto, which bloats the file?  Or should
binutils look for .to and not strip .debug or warn about stripping .debug
affecting LTO?

David


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