https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66240
--- Comment #3 from Josh Triplett <josh at joshtriplett dot org> --- (In reply to Denis Vlasenko from comment #2) > (In reply to Josh Triplett from comment #1) > > Another alternative discussed in that thread, which seems near-ideal: align > > functions to a given size (for instance, 64 bytes), pack them into that size > > if they fit, but avoid splitting a function across that boundary unless it's > > larger than that boundary. > > Josh, I would be more than happy to see gcc/ld becoming clever enough to > pack functions intelligently (say, align big ones to cacheline boundaries, > and fit tiny ones into the resulting padding "holes"). I'm afraid in the > current state of gcc code, that'll be a very tall order to fulfil. > > In this BZ, I'm asking for something easy-ish to be done. Fair enough; just wanted to get the notion on the radar. Not because we have to wait for the perfect solution, but because the design for improved alignment options should take into account the possibility of additional future expansion.