Commit f7d2e5d4 by Janne Blomqvist

Use XCNEWVAR instead of xcalloc

From-SVN: r172730
parent 6c13c5f2
2011-04-19 Janne Blomqvist <jb@gcc.gnu.org>
* scanner.c (load_file): Use XCNEWVAR instead of xcalloc.
2011-04-19 Janne Blomqvist <jb@gcc.gnu.org>
* frontend-passes.c (gfc_run_passes): Use XDELETEVEC instead of
free.
......
......@@ -2012,8 +2012,8 @@ load_file (const char *realfilename, const char *displayedname, bool initial)
/* Add line. */
b = (gfc_linebuf *) xcalloc (1, gfc_linebuf_header_size
+ (len + 1) * sizeof (gfc_char_t));
b = XCNEWVAR (gfc_linebuf, gfc_linebuf_header_size
+ (len + 1) * sizeof (gfc_char_t));
b->location
= linemap_line_start (line_table, current_file->line++, 120);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment