diff options
Diffstat (limited to 'gcc/c-pch.c')
-rw-r--r-- | gcc/c-pch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-pch.c b/gcc/c-pch.c index dd7e5e7940a..1bbcab1193c 100644 --- a/gcc/c-pch.c +++ b/gcc/c-pch.c @@ -187,7 +187,7 @@ c_common_write_pch (void) if (fwrite (&h, sizeof (h), 1, pch_outfile) != 1) fatal_error ("can%'t write %s: %m", pch_file); - buf = xmalloc (16384); + buf = XNEWVEC (char, 16384); if (fseek (asm_out_file, asm_file_startpos, SEEK_SET) != 0) fatal_error ("can%'t seek in %s: %m", asm_file_name); @@ -385,7 +385,7 @@ c_common_read_pch (cpp_reader *pfile, const char *name, if (!flag_preprocess_only) { unsigned long written; - char * buf = xmalloc (16384); + char * buf = XNEWVEC (char, 16384); for (written = 0; written < h.asm_size; ) { |