Re:Why Does Calloc Exist?
by leoetlino on Sunday November 13, 2022 @06:54AM
(#33582222)
Tried -fno-builtin-malloc on a hunch and it does seem to prevent the zero-initialisation logic from getting optimised away: https://godbolt.org/z/xWbEqcenn
musl probably uses -fno-builtin to disable any special handling of "builtin" library functions like malloc and memcpy?
musl probably uses -fno-builtin to disable any special handling of "builtin" library functions like malloc and memcpy?