http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58996
--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Why the aclocal.m4 removals? Also, while the rest of the HAVE_PTHREAD_AFFINITY_NP addition is one desirable step, I've said that it is not sufficient (but of course can be done incrementally). Why the source uses sched_getaffinity + gettid when it can use pthread_getaffinity_np which will do the same thing and be less Linux OS details dependent? The code as is will not handle > 1024 CPU systems, see PR57298.