diff options
author | Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de> | 2004-07-11 15:04:32 +0200 |
---|---|---|
committer | Tobias Schlüter <tobi@gcc.gnu.org> | 2004-07-11 15:04:32 +0200 |
commit | 87bdc5f8fd0b48e0548d49d87fb7744afeadb439 (patch) | |
tree | 08385eca3bb94704e500c7f0bbdacc4df7cef163 /gcc/fortran | |
parent | 6ac4b58e49308aa3717a640d66277c93e267f78c (diff) | |
download | gcc-87bdc5f8fd0b48e0548d49d87fb7744afeadb439.zip gcc-87bdc5f8fd0b48e0548d49d87fb7744afeadb439.tar.gz gcc-87bdc5f8fd0b48e0548d49d87fb7744afeadb439.tar.bz2 |
re PR fortran/16455 (print the location of a missing module fatal error)
PR fortran/15455
* module.c (gfc_dump_module, gfc_use_module): Print locus
when opening of module file fails.
From-SVN: r84508
Diffstat (limited to 'gcc/fortran')
-rw-r--r-- | gcc/fortran/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/fortran/module.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index f8d176c..cf1bf3b 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2004-07-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de> + + PR fortran/15455 + * module.c (gfc_dump_module, gfc_use_module): Print locus + when opening of module file fails. + 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk> * f95-lang.c (set_block): Remove. diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c index 33f050b..17254ce 100644 --- a/gcc/fortran/module.c +++ b/gcc/fortran/module.c @@ -3415,7 +3415,7 @@ gfc_dump_module (const char *name, int dump_flag) module_fp = fopen (filename, "w"); if (module_fp == NULL) - gfc_fatal_error ("Can't open module file '%s' for writing: %s", + gfc_fatal_error ("Can't open module file '%s' for writing at %C: %s", filename, strerror (errno)); now = time (NULL); @@ -3459,7 +3459,7 @@ gfc_use_module (void) module_fp = gfc_open_included_file (filename); if (module_fp == NULL) - gfc_fatal_error ("Can't open module file '%s' for reading: %s", + gfc_fatal_error ("Can't open module file '%s' for reading at %C: %s", filename, strerror (errno)); iomode = IO_INPUT; |