This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, libgfortran, committed] Introduce xrealloc, use it


Hi,

libgfortran has malloc and calloc wrappers, but so far the equivalent
realloc wrapper has been missing. The attached patch corrects this,
and converts existing realloc users. Committed r210948 to trunk as
obvious after regtesting on x86_64-unknown-linux-gnu.

2014-05-26  Janne Blomqvist  <jb@gcc.gnu.org>

    * libgfortran.h (xrealloc): New prototype.
    * runtime/memory.c (xrealloc): New function.
    * io/fbuf.c (fbuf_alloc): Use xrealloc.
    * io/list_read.c (push_char_default): Likewise.
    (push_char4): Likewise.


-- 
Janne Blomqvist

Attachment: xrealloc.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]