diff options
author | Joseph Myers <joseph@codesourcery.com> | 2010-05-28 14:03:31 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2010-05-28 14:03:31 +0100 |
commit | 7ca92787862d1b6cae3fbda685c1ddf2009e73b3 (patch) | |
tree | 065aff3d1d01e48c7777eadaa47358832eb00cb5 /gcc/gengtype.c | |
parent | 8bf85f21b3a0180e286e2e32de3dd7f266729baf (diff) | |
download | gcc-7ca92787862d1b6cae3fbda685c1ddf2009e73b3.tar.gz |
final.c (rest_of_clean_state): Use %m in errors instead of strerror (errno).
* final.c (rest_of_clean_state): Use %m in errors instead of
strerror (errno).
* gengtype.c (read_input_list, close_output_files): Use xstrerror
instead of strerror.
* toplev.c (process_options): Use %m in errors instead of strerror
(errno).
* tree-dump.c (dump_begin): Use %m in errors instead of strerror
(errno).
fortran:
* cpp.c (gfc_cpp_init_0): Use xstrerror instead of strerror.
* module.c (write_char, gfc_dump_module, gfc_use_module): Use
xstrerror instead of strerror.
lto:
* lto-coff.c (coff_errmsg): Remove.
(lto_coff_begin_section_with_type, lto_obj_append_data): Use %m in
errors instead of coff_errmsg (-1).
* lto-macho.c (mach_o_errmsg): Remove.
(lto_obj_begin_section, lto_obj_append_data): Use %m in errors
instead of mach_o_errmsg (-1).
* lto.c (read_cgraph_and_symbols): Use %m in errors instead of
xstrerror (errno).
From-SVN: r159969
Diffstat (limited to 'gcc/gengtype.c')
-rw-r--r-- | gcc/gengtype.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/gengtype.c b/gcc/gengtype.c index cb3d9bbf221..65bb8d1cfc8 100644 --- a/gcc/gengtype.c +++ b/gcc/gengtype.c @@ -1,5 +1,5 @@ /* Process source files and output type information. - Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 + Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. This file is part of GCC. @@ -392,7 +392,7 @@ read_input_list (const char *listname) { FILE *list = fopen (listname, "r"); if (!list) - fatal ("cannot open %s: %s", listname, strerror (errno)); + fatal ("cannot open %s: %s", listname, xstrerror (errno)); else { struct fileloc epos; @@ -508,7 +508,7 @@ read_input_list (const char *listname) } if (ferror (list)) - fatal ("error reading %s: %s", listname, strerror (errno)); + fatal ("error reading %s: %s", listname, xstrerror (errno)); fclose (list); } @@ -1838,11 +1838,11 @@ close_output_files (void) { FILE *newfile = fopen (of->name, "w"); if (newfile == NULL) - fatal ("opening output file %s: %s", of->name, strerror (errno)); + fatal ("opening output file %s: %s", of->name, xstrerror (errno)); if (fwrite (of->buf, 1, of->bufused, newfile) != of->bufused) - fatal ("writing output file %s: %s", of->name, strerror (errno)); + fatal ("writing output file %s: %s", of->name, xstrerror (errno)); if (fclose (newfile) != 0) - fatal ("closing output file %s: %s", of->name, strerror (errno)); + fatal ("closing output file %s: %s", of->name, xstrerror (errno)); } free(of->buf); of->buf = NULL; |