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/fortran/cpp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gcc/fortran/cpp.c') diff --git a/gcc/fortran/cpp.c b/gcc/fortran/cpp.c index 6361085..8dbd157 100644 --- a/gcc/fortran/cpp.c +++ b/gcc/fortran/cpp.c @@ -523,7 +523,8 @@ gfc_cpp_init_0 (void) print.outf = fopen (gfc_cpp_option.output_filename, "w"); if (print.outf == NULL) gfc_fatal_error ("opening output file %s: %s", - gfc_cpp_option.output_filename, strerror(errno)); + gfc_cpp_option.output_filename, + xstrerror (errno)); } else print.outf = stdout; @@ -533,7 +534,7 @@ gfc_cpp_init_0 (void) print.outf = fopen (gfc_cpp_option.temporary_filename, "w"); if (print.outf == NULL) gfc_fatal_error ("opening output file %s: %s", - gfc_cpp_option.temporary_filename, strerror(errno)); + gfc_cpp_option.temporary_filename, xstrerror (errno)); } gcc_assert(cpp_in); -- cgit v1.1