https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117315
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |alias --- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Since malloc attribute is required, I am suspecting the issue is GCC thinks the return address of the allocated does not alias some other memory and that goes wrong with some things being inlined.