> > We should also use a faster compressor Yep, at least once it arrives higher in profiles. So far other stuff is a lot slower. > > > For -flto=jobserver I simply fork all 32 processes. It may not be a > > disaster, > > but perhaps we should figure out how to communicate with jobserver. At > > first > > glance on document on how it works, it seems easy to add. Perhaps we can > > even > > convicne GNU Make folks to put simple helpers to libiberty? > > lto=jobserver is still broken and confuses tokens on large builds (ends > with a 0 read) I did some debugging recently, and I suspect a Linux kernel > bug now. Still haven't tracked it down. > > Any workarounds would need make changs unfortunately. > > > > > We also may figure out number of CPUs (is it available i.e. from libgomp) > > sysconf(_SC_NPROCESSORS_ONLN) ?
OK, thanks :) > > > > +fparallelism= > > +LTO Joined > > +Run the link-time optimizer in whole program analysis (WPA) mode. > > The description does not make sense Yup, a psto. > > Rest of patch looks good from a quick read, although I would prefer to > do the waiting for children in the "parent", not the "last one" The parent process does all the forking + waiting. Only the last section is streamed by the parent process since I do not see reason for forking for it. Honza