On Mon, Jan 30, 2012 at 10:42:13AM -0500, Jason Merrill wrote: > On 01/30/2012 09:23 AM, Jakub Jelinek wrote: > >On Sun, Jan 29, 2012 at 05:08:10PM -0700, Sandra Loosemore wrote: > >>Bootstrapped and regression-tested on i636 linux. OK to check in? > > > >I think that is terribly expensive fix, for larger projects a single > >ld invocation can take several minutes. > > Agreed. What if we always look for .rpo files, and then disable > linker demangling if we find them?
The *.rpo discovery can be many thousands of syscalls too for larger links and I think -frepo is quite rarely used. Can't tlink just take into account that sometimes different symbols mangle the same, and handle those as a group (i.e. if the linker output requests S::~S(), and *.rpo files contain several _ZN1SD[0-9]Ev symbols, mark or tweak them all)? Jakub