diff options
| author | tobi <tobi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-11 13:04:32 +0000 |
|---|---|---|
| committer | tobi <tobi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-11 13:04:32 +0000 |
| commit | 770253119209b1d1eda931590b22e76678d072a2 (patch) | |
| tree | 08385eca3bb94704e500c7f0bbdacc4df7cef163 /gcc/fortran/module.c | |
| parent | 132360c172050813059464b8a5effbde0430db5d (diff) | |
| download | ppe42-gcc-770253119209b1d1eda931590b22e76678d072a2.tar.gz ppe42-gcc-770253119209b1d1eda931590b22e76678d072a2.zip | |
PR fortran/15455
* module.c (gfc_dump_module, gfc_use_module): Print locus
when opening of module file fails.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84508 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/module.c')
| -rw-r--r-- | gcc/fortran/module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c index 33f050b91dc..17254ce0f54 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; |

