summaryrefslogtreecommitdiff
path: root/gcc/f
diff options
context:
space:
mode:
authorZack Weinberg <zack@codesourcery.com>2003-05-13 18:06:52 +0000
committerZack Weinberg <zack@gcc.gnu.org>2003-05-13 18:06:52 +0000
commitfa6ef81367f0c24ec0b04e753313cdb023e10217 (patch)
treefd24969394b3b9dffb1cc037cebd35f54276e5b8 /gcc/f
parent3bec3c0c9cadc98f39f7072cb77a1c1b90ada59b (diff)
downloadgcc-fa6ef81367f0c24ec0b04e753313cdb023e10217.tar.gz
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
Diffstat (limited to 'gcc/f')
-rw-r--r--gcc/f/ChangeLog6
-rw-r--r--gcc/f/com.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog
index 94d1eb10780..c016f31901e 100644
--- a/gcc/f/ChangeLog
+++ b/gcc/f/ChangeLog
@@ -1,3 +1,9 @@
+2003-05-13 Zack Weinberg <zack@codesourcery.com>
+
+ * com.c: Replace all calls to fatal_io_error with calls to
+ fatal_error; add ": %m" to the end of all the affected error
+ messages.
+
2003-05-12 Zack Weinberg <zack@codesourcery.com>
* bad.c: Don't call diagnostic_count_diagnostic.
diff --git a/gcc/f/com.c b/gcc/f/com.c
index bb093e3b201..951ef448d4b 100644
--- a/gcc/f/com.c
+++ b/gcc/f/com.c
@@ -14269,7 +14269,7 @@ ffe_post_options (pfilename)
finput = fopen (filename, "r");
if (finput == 0)
- fatal_io_error ("can't open %s", filename);
+ fatal_error ("can't open %s: %m", filename);
return false;
}