https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95186
Bug ID: 95186 Summary: Optimize allocate(..., source=0) or allocate(..., source=[0.0, 0.0, ...]) to use calloc instead of malloc Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- calloc returns zeroed memory, hence, for "source=0.0" or "source=0" (or the array equivalent, if ever used), calloc instead of malloc could be used.