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/tree-dump.c | |
parent | 8bf85f21b3a0180e286e2e32de3dd7f266729baf (diff) | |
download | gcc-7ca92787862d1b6cae3fbda685c1ddf2009e73b3.zip gcc-7ca92787862d1b6cae3fbda685c1ddf2009e73b3.tar.gz gcc-7ca92787862d1b6cae3fbda685c1ddf2009e73b3.tar.bz2 |
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/tree-dump.c')
-rw-r--r-- | gcc/tree-dump.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-dump.c b/gcc/tree-dump.c index 90b8990..c159fca 100644 --- a/gcc/tree-dump.c +++ b/gcc/tree-dump.c @@ -1,6 +1,6 @@ /* Tree-dumping functionality for intermediate representation. - Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 - Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, + 2010 Free Software Foundation, Inc. Written by Mark Mitchell <mark@codesourcery.com> This file is part of GCC. @@ -926,7 +926,7 @@ dump_begin (int phase, int *flag_ptr) dfi = get_dump_file_info (phase); stream = fopen (name, dfi->state < 0 ? "w" : "a"); if (!stream) - error ("could not open dump file %qs: %s", name, strerror (errno)); + error ("could not open dump file %qs: %m", name); else dfi->state = 1; free (name); |