From fa6ef81367f0c24ec0b04e753313cdb023e10217 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Tue, 13 May 2003 18:06:52 +0000 Subject: diagnostic.c (output_format): Add support for %m. * diagnostic.c (output_format): Add support for %m. (output_printf, output_verbatim, diagnostic_set_info, verbatim): Set err_no field of the text_info structure being initialized. (fatal_io_error): Delete function. * diagnostic.h (text_info): Add err_no field. * toplev.h (fatal_io_error): Delete prototype. * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c * f/com.c, java/jcf-parse.c, java/jcf-write.c, java/lex.c * objc/objc-act.c: Replace all calls to fatal_io_error with calls to fatal_error; add ": %m" to the end of all the affected error messages. From-SVN: r66769 --- gcc/graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/graph.c') diff --git a/gcc/graph.c b/gcc/graph.c index e56ef93..5b660be 100644 --- a/gcc/graph.c +++ b/gcc/graph.c @@ -419,7 +419,7 @@ clean_graph_dump_file (base, suffix) fp = fopen (buf, "w"); if (fp == NULL) - fatal_io_error ("can't open %s", buf); + fatal_error ("can't open %s: %m", buf); switch (graph_dump_format) { -- cgit v1.1