Latest gcc optimizes ptr = malloc(size); memset(ptr, 0, size); to a calloc call. Guess how I implement calloc?
@SortieCat "Inside calloc" is not something the compiler can know. calloc could call an extern func (or func ptr) that does malloc+memset.
-
-
@RichFelker A reasonable approximation is just to limit that to functions named calloc, and required other code to disable the optimization.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.