[Bug tree-optimization/57742] memset(malloc(n),0,n) -> calloc(n,1)
Joost.VandeVondele at mat dot ethz.ch
gcc-bugzilla@gcc.gnu.org
Mon Oct 14 09:51:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57742
Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Joost.VandeVondele at mat dot ethz
| |.ch
--- Comment #3 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> ---
just wondering if this would also catch a Fortran testcase, which compiles into
malloc and memset:
MODULE M
REAL*8, DIMENSION(:), ALLOCATABLE, SAVE :: data
INTEGER, PARAMETER :: n=2**16
CONTAINS
SUBROUTINE TEST
ALLOCATE(data(n))
data(:)=0
END SUBROUTINE
END MODULE
More information about the Gcc-bugs
mailing list