r185773 - in /trunk/libgfortran: ChangeLog io/l...
jb@gcc.gnu.org
jb@gcc.gnu.org
Sun Mar 25 05:48:00 GMT 2012
Author: jb
Date: Sun Mar 25 05:48:49 2012
New Revision: 185773
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185773
Log:
Use calloc instead of malloc and memset.
2012-03-25 Janne Blomqvist <jb@gcc.gnu.org>
* runtime/memory.c (xcalloc): New function.
* libgfortran.h (xcalloc): New prototype.
* io/list_read.c (push_char): Use xcalloc instead of get_mem and
memset.
(l_push_char): Likewise.
* io/unit.c (insert_unit): Likewise.
(get_internal_unit): Likewise.
* io/unix.c (open_internal): Likewise.
(open_internal4): Likewise.
(fd_to_stream): Likewise.
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/list_read.c
trunk/libgfortran/io/unit.c
trunk/libgfortran/io/unix.c
trunk/libgfortran/libgfortran.h
trunk/libgfortran/runtime/memory.c
More information about the Gcc-cvs
mailing list