From 7ca92787862d1b6cae3fbda685c1ddf2009e73b3 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 28 May 2010 14:03:31 +0100 Subject: 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 --- gcc/gengtype.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gcc/gengtype.c') 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; -- cgit v1.2.1