https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109289
--- Comment #3 from Florian Weimer <fw at gcc dot gnu.org> --- Jan, do you actually experience a build failure? The part you quoted only shows warnings. Thomas, the safe thing to do would be to use __builtin_calloc and __builtin_realloc in those spots because it avoids a dependency on an external header that might not exist at this point.