https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68041
--- Comment #2 from Maxim Ostapenko <chefmax at gcc dot gnu.org> --- Created attachment 36555 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36555&action=edit First version of the fix. Dominique, I'm sorry about that. Could you please try attached patch? There may be other errors for Darwin in libsanitizer build (I didn't make proper testing because of lack of target) and it would be great to fix them here too.