https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67336
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- https://gcc.gnu.org/ml/gcc-patches/2008-01/msg01474.html There might be another thread with a newer version of the patch which uses futex rather than mincore.