[Bug tree-optimization/82732] malloc+zeroing other than memset not optimized to calloc, so asm output is malloc+memset
glisse at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Oct 26 11:17:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82732
--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> ---
If you use size_t consistently (for size and i), then the resulting code is a
call to calloc.
More information about the Gcc-bugs
mailing list